@incodetech/web 0.0.0-dev-20260508-9f627e9 → 0.0.0-dev-20260508-a05aa65
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/base.css +60 -2
- package/dist/consent/consent.es.js +7 -7
- package/dist/countrySelector-B_dpv3Ku.js +58 -0
- package/dist/{cpfOcr-BYlfZY40.js → cpfOcr-BzoRvWuh.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-BraeAxZp.js → customFields-DMNKnPeF.js} +6 -6
- package/dist/{customWatchlist-CFFQpv_v.js → customWatchlist-BT1PQfoG.js} +4 -4
- package/dist/dateInputComposed-BpAGsjN6.js +55 -0
- package/dist/dateInputComposed-DU3o6PAV.js +1 -0
- package/dist/{documentCapture-DPlR8XwV.js → documentCapture-C2ShzJz0.js} +6 -6
- package/dist/dropdownComposed-DwTzc2YU.js +1 -0
- package/dist/{dynamicForms-iowHKj2D.js → dynamicForms-BskEgMp6.js} +9 -9
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-B7UFEkEF.js +2 -0
- package/dist/{ekybModule-BFOWbi7v.js → ekybModule-C-ai_jbO.js} +51 -40
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-BPi7gpEg.js → ekycModule-D8hE3f2j.js} +11 -11
- package/dist/ekycModule-DiBt3eF8.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-Cio3QpBY.js → electronic-signature-BeiUCIMV.js} +6 -6
- package/dist/email/email.es.js +5 -5
- package/dist/{emailInput-1AO-Fmsw.js → emailInput-DVWYLpWZ.js} +2 -2
- package/dist/{extensibility-CL6pOTDM.js → extensibility-DLD2ewgY.js} +465 -154
- package/dist/extensibility.es.js +15 -15
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +9 -0
- package/dist/{faceMatch-BtHZNJ0A.js → faceMatch-B6hGcl2-.js} +5 -5
- package/dist/faceMatch-Dh01E8Zv.js +2 -0
- package/dist/flow/flow.es.js +6 -6
- package/dist/flow/styles.css +11 -0
- package/dist/{formField-DHnOQD0l.js → formField-BkU7EVsS.js} +1 -1
- package/dist/geolocation/geolocation.es.js +4 -4
- package/dist/governmentValidation/governmentValidation.es.js +5 -5
- package/dist/{homeScreen-CmsrGndM.js → homeScreen-DprCAAmv.js} +3 -3
- package/dist/{i18n-D6pCC7RL.js → i18n-BnVa5Y-_.js} +1 -1
- package/dist/id/id.es.js +10 -10
- package/dist/{idOcr-DQtsITAI.js → idOcr-jPSf8Tqv.js} +31 -30
- package/dist/identity-reuse/identity-reuse.es.js +3 -3
- package/dist/{incodeComponent-BRtpx7iO.js → incodeComponent-9ZUPvQgC.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/inputComposed-XYrarFxS.js +1 -0
- package/dist/{mandatoryConsent-CCXO_vxQ.js → mandatoryConsent-BVUiGOKK.js} +6 -6
- package/dist/{optionAccessibleLabel-D-791Qve.js → optionAccessibleLabel-BNqnKbwB.js} +3 -3
- package/dist/{otpInput-S08V9UR2.js → otpInput-CLo5__yb.js} +2 -1
- package/dist/{pdf-DL0w_-nc.js → pdf-BK9eYHAw.js} +1 -1
- package/dist/phone/phone.es.js +6 -6
- package/dist/{phoneInputComposed-Dl4rnkJh.js → phoneInputComposed-bvWhGLFZ.js} +1 -1
- package/dist/{processing-Byt0PHxP.js → processing-c8ep-KSh.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{redirectToMobile-CDqR2ADA.js → redirectToMobile-Cg-BpzrT.js} +8 -8
- package/dist/{richText-oCMMhPa2.js → richText-gJTUJEMX.js} +1 -1
- package/dist/selfie/selfie.es.js +6 -6
- package/dist/selfie/styles.css +9 -0
- package/dist/signature/signature.es.js +6 -6
- package/dist/{transitionSpinner-DHelnP9m.js → transitionSpinner-av72n-l1.js} +1 -1
- package/dist/{tutorial-CpB1q1y3.js → tutorial-BvRU4P4P.js} +5 -5
- package/dist/types/extensibility.d.ts +8 -0
- package/dist/{useModuleLoader-DR_UitYZ.js → useModuleLoader-Ba3tFoor.js} +15 -15
- package/dist/{verificationResult-Boi07OiG.js → verificationResult-9weGpvn5.js} +1 -1
- package/dist/watchlist/watchlist.es.js +4 -4
- package/dist/watchlist-for-business/styles.css +2 -0
- package/dist/{watchlistForBusiness-k2IqUCN_.js → watchlistForBusiness-CmUsOcQQ.js} +9 -6
- package/dist/workflow/styles.css +9 -0
- package/dist/workflow/workflow.es.js +7 -7
- package/package.json +2 -2
- package/dist/countrySelector-CoffOdbC.js +0 -52
- package/dist/dropdownComposed-BvVIyMBo.js +0 -1
- package/dist/ekybModule-VFeaId2k.js +0 -2
- package/dist/ekycModule-DvRBzbaa.js +0 -2
- package/dist/faceMatch-Drzy4xup.js +0 -2
- package/dist/segmentedDateInput-DIZb0ruK.js +0 -348
- package/dist/segmentedDateInput-DI_bDhHG.js +0 -1
- /package/dist/{aligndevicelottie-Dfs3Ku2-.js → aligndevicelottie-CpAPbotJ.js} +0 -0
- /package/dist/{autoFocusTitle-CZoNkxcF.js → autoFocusTitle-C01okScG.js} +0 -0
- /package/dist/{back-horizontal-hint-Cch8dR2s.js → back-horizontal-hint-C_wAUpW0.js} +0 -0
- /package/dist/{back-tutorial-DCeMC-YK.js → back-tutorial-H9SCe0gx.js} +0 -0
- /package/dist/{back-vertical-hint-Dzn5uXKH.js → back-vertical-hint-C9xK0aN8.js} +0 -0
- /package/dist/{backdevicelottie-B4ve1L_u.js → backdevicelottie-Dx1dP2K0.js} +0 -0
- /package/dist/{blurdevicelottie-DIQrsw9H.js → blurdevicelottie-DCVb3_MF.js} +0 -0
- /package/dist/{bottomSheet-DE_8TFEC.js → bottomSheet-CLMmiBQS.js} +0 -0
- /package/dist/{browser-ponyfill-Dqca0y49.js → browser-ponyfill-Dxc09_1M.js} +0 -0
- /package/dist/{checkbox-CfusZiOJ.js → checkbox-Cl57ltq_.js} +0 -0
- /package/dist/{defineProperty-CplHoz4_.js → defineProperty-CqT6YdHJ.js} +0 -0
- /package/dist/{dropdownComposed-Cmj-HO0i.js → dropdownComposed-DFRBG22E.js} +0 -0
- /package/dist/{flip-animation-B1zV6oY9.js → flip-animation-CviBXTS-.js} +0 -0
- /package/dist/{front-horizontal-hint-CNu99K_l.js → front-horizontal-hint-SvDdygvL.js} +0 -0
- /package/dist/{front-vertical-hint-CpQjOGpU.js → front-vertical-hint-vIniWZ_9.js} +0 -0
- /package/dist/{frontdevicelottie-D3Gw7Qab.js → frontdevicelottie-6sxr3oQH.js} +0 -0
- /package/dist/{glaredevicelottie-BPRxXRbG.js → glaredevicelottie--PlYPjZt.js} +0 -0
- /package/dist/{id-laser-h-BUV5ROmy.js → id-laser-h-D0KN9qFd.js} +0 -0
- /package/dist/{id-laser-v-DzsdfzVM.js → id-laser-v-BLY6XMRK.js} +0 -0
- /package/dist/{id-tutorial-B2d6DkZv.js → id-tutorial-Dnuu_ZUb.js} +0 -0
- /package/dist/{incodeModule-grHfB1zI.js → incodeModule-D_r2n18O.js} +0 -0
- /package/dist/{numberedStep-CT-alrK5.js → numberedStep-CR4w_BpM.js} +0 -0
- /package/dist/{passport-horizontal-hint-WqdYMc9Y.js → passport-horizontal-hint-Bxb4tVrA.js} +0 -0
- /package/dist/{passport-tutorial-DYBRCYAN.js → passport-tutorial-CFp2zeDJ.js} +0 -0
- /package/dist/{passport-vertical-hint-rNP6GykM.js → passport-vertical-hint-D6hgaXKT.js} +0 -0
- /package/dist/{radioGroupComposed-CEw7kuBy.js → radioGroupComposed-B74fc1L3.js} +0 -0
- /package/dist/{requiredLabelHint-DF0yOi3G.js → requiredLabelHint-J9rEJWcF.js} +0 -0
- /package/dist/{selfieTutorial-CMc0HW_O.js → selfieTutorial-1QMt37Us.js} +0 -0
- /package/dist/{snackbar-B3hIVhgk.js → snackbar-BVeXpux9.js} +0 -0
- /package/dist/{statusPage-DXmurxxX.js → statusPage-BvmC0O1t.js} +0 -0
- /package/dist/{tabs-D-xvkepW.js → tabs-MPYTnMQG.js} +0 -0
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-BnVa5Y-_.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-9ZUPvQgC.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-c8ep-KSh.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
|
|
17
|
-
import "./verificationResult-
|
|
18
|
-
import
|
|
19
|
-
import "./
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
16
|
+
import { a as O, i as k } from "./tutorial-BvRU4P4P.js";
|
|
17
|
+
import "./verificationResult-9weGpvn5.js";
|
|
18
|
+
import "./inputComposed-APSw8C7o.js";
|
|
19
|
+
import "./inputComposed-XYrarFxS.js";
|
|
20
|
+
import "./otpInput-CLo5__yb.js";
|
|
21
|
+
import "./checkbox-Cl57ltq_.js";
|
|
22
|
+
import "./formField-BkU7EVsS.js";
|
|
23
|
+
import "./phoneInputComposed-bvWhGLFZ.js";
|
|
24
|
+
import "./dropdownComposed-DwTzc2YU.js";
|
|
25
|
+
import "./dateInputComposed-DU3o6PAV.js";
|
|
26
|
+
import "./radioGroupComposed-B74fc1L3.js";
|
|
27
|
+
import "./bottomSheet-CLMmiBQS.js";
|
|
27
28
|
import "@incodetech/core/id";
|
|
28
29
|
//#region src/shared/overlay/overlay.tsx
|
|
29
|
-
var
|
|
30
|
+
var ee = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("div", {
|
|
30
31
|
class: `IncodeOverlay ${n ?? ""}`,
|
|
31
32
|
role: "dialog",
|
|
32
33
|
"aria-modal": "true",
|
|
@@ -55,45 +56,355 @@ var te = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u(
|
|
|
55
56
|
class: "IncodeProgressBarLabel",
|
|
56
57
|
children: n
|
|
57
58
|
})] }) : null]
|
|
58
|
-
}),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
}), te = /^(\d{4})-(\d{2})-(\d{2})$/, ne = /^(\d{1,2})\/(\d{1,2})\/(\d{4})$/, j = {
|
|
60
|
+
mm: "",
|
|
61
|
+
dd: "",
|
|
62
|
+
yyyy: ""
|
|
63
|
+
}, M = (e) => {
|
|
64
|
+
if (!e) return j;
|
|
65
|
+
let t = te.exec(e);
|
|
66
|
+
return t ? {
|
|
67
|
+
yyyy: t[1],
|
|
68
|
+
mm: t[2],
|
|
69
|
+
dd: t[3]
|
|
70
|
+
} : j;
|
|
71
|
+
}, N = (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
|
+
}, re = (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
|
+
}, ie = ({ 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 N(r, i, a) ? `${n}-${String(i).padStart(2, "0")}-${String(a).padStart(2, "0")}` : "";
|
|
84
|
+
}, ae = (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
|
+
}, oe = (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
|
+
}, P = {
|
|
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
|
+
}, se = {
|
|
128
|
+
mm: 1,
|
|
129
|
+
dd: 3,
|
|
130
|
+
yyyy: 9
|
|
131
|
+
}, F = (e, t) => String(t).padStart(P[e].pad, "0"), ce = (e, t, n) => {
|
|
132
|
+
let { min: r, max: i } = P[e];
|
|
133
|
+
if (t === "") return e === "yyyy" ? F(e, (/* @__PURE__ */ new Date()).getFullYear()) : F(e, n === 1 ? r : i);
|
|
134
|
+
let a = Number(t);
|
|
135
|
+
if (Number.isNaN(a)) return F(e, r);
|
|
136
|
+
let o = a + n;
|
|
137
|
+
return o > i && (o = r), o < r && (o = i), F(e, o);
|
|
138
|
+
}, I = 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: k, ...ee }, A) => {
|
|
139
|
+
let { i18n: j } = e(), N = a(() => ae(j.language), [j.language]), I = a(() => oe(N), [N]), L = typeof k == "string" ? k : typeof O == "string" ? O : void 0, le = (e) => L ? L === "bday" ? e === "mm" ? "bday-month" : e === "dd" ? "bday-day" : "bday-year" : L : "off", R = L ?? void 0, z = s(null), B = s(null), V = {
|
|
140
|
+
mm: s(null),
|
|
141
|
+
dd: s(null),
|
|
142
|
+
yyyy: s(null)
|
|
143
|
+
}, [H, U] = l(() => M(y));
|
|
144
|
+
n(() => {
|
|
145
|
+
U((e) => ie(e) === (y ?? "") ? e : M(y));
|
|
146
|
+
}, [y]), n(() => {
|
|
147
|
+
let e = z.current;
|
|
148
|
+
if (!e) return;
|
|
149
|
+
let t = y ?? "";
|
|
150
|
+
e.value !== t && (e.value = t);
|
|
151
|
+
}, [y]);
|
|
152
|
+
let W = (e) => {
|
|
153
|
+
z.current = e, typeof A == "function" ? A(e) : A && (A.current = e);
|
|
154
|
+
}, G = `${r}-label`, K = `${r}-helper`, q = `${r}-error`, ue = `${r}-format-hint`, de = a(() => {
|
|
155
|
+
let e = {
|
|
156
|
+
mm: "month",
|
|
157
|
+
dd: "day",
|
|
158
|
+
yyyy: "year"
|
|
159
|
+
};
|
|
160
|
+
return `Date format: ${N.map((t) => e[t]).join(", ")}.`;
|
|
161
|
+
}, [N]), fe = [
|
|
162
|
+
ue,
|
|
163
|
+
!_ && m ? K : null,
|
|
164
|
+
!_ && d ? q : null
|
|
165
|
+
].filter(Boolean).join(" "), pe = (e) => {
|
|
166
|
+
let t = ie(e), n = z.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
|
+
}, J = (e, t) => {
|
|
175
|
+
let n = {
|
|
176
|
+
...H,
|
|
177
|
+
[e]: t
|
|
178
|
+
};
|
|
179
|
+
if (n.dd && n.mm) {
|
|
180
|
+
let e = re(n.mm, n.yyyy), t = Number(n.dd);
|
|
181
|
+
Number.isFinite(t) && t > e && (n = {
|
|
182
|
+
...n,
|
|
183
|
+
dd: F("dd", e)
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
U(n), pe(n);
|
|
187
|
+
}, Y = (e) => {
|
|
188
|
+
if (!e) return;
|
|
189
|
+
let t = V[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
|
+
}, me = (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) > se[e] && (i = F(e, Number(i)), a = !0), i.length === t) {
|
|
199
|
+
let t = Number(i), { max: n } = P[e];
|
|
200
|
+
Number.isFinite(t) && t > n && (i = F(e, n)), a = !0;
|
|
68
201
|
}
|
|
69
|
-
|
|
202
|
+
i !== r.value && (r.value = i), J(e, i), a && Y(I.next[e]);
|
|
203
|
+
}, he = (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 = ce(e, n.value, r);
|
|
208
|
+
n.value = i, J(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(), Y(I.prev[e])) : t.key === "ArrowRight" && r === n.value.length ? (t.preventDefault(), Y(I.next[e])) : (t.key === "/" || t.key === "-" || t.key === " ") && (n.value.length > 0 ? (t.preventDefault(), Y(I.next[e])) : t.preventDefault());
|
|
213
|
+
}, ge = (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 } = P[e];
|
|
217
|
+
Number.isFinite(a) && (a < o ? i = F(e, o) : a > s && (i = F(e, s))), i !== r && J(e, i);
|
|
218
|
+
}, _e = (e) => {
|
|
219
|
+
let t = e.target;
|
|
220
|
+
try {
|
|
221
|
+
t.select();
|
|
222
|
+
} catch {}
|
|
223
|
+
}, ve = (e) => {
|
|
224
|
+
let t = e.clipboardData?.getData("text")?.trim() ?? "";
|
|
225
|
+
if (!t) return;
|
|
226
|
+
let n = te.exec(t), r = ne.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(), U(i), pe(i), Y("yyyy"));
|
|
236
|
+
}, X = (e) => {
|
|
237
|
+
let t = e.target;
|
|
238
|
+
U(M(t.value)), x(e);
|
|
239
|
+
let n = B.current;
|
|
240
|
+
if (n && document.activeElement === t) try {
|
|
241
|
+
n.focus();
|
|
242
|
+
} catch {}
|
|
243
|
+
}, Z = (e) => {
|
|
244
|
+
if (C) {
|
|
245
|
+
e.preventDefault();
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
let t = z.current;
|
|
249
|
+
if (t) {
|
|
250
|
+
try {
|
|
251
|
+
t.click();
|
|
252
|
+
} catch {}
|
|
253
|
+
try {
|
|
254
|
+
typeof t.showPicker == "function" && t.showPicker();
|
|
255
|
+
} catch {}
|
|
256
|
+
}
|
|
257
|
+
}, ye = !!ie(H), Q = !!d, be = i ? { "aria-labelledby": G } : c ? { "aria-label": c } : {}, $ = {
|
|
258
|
+
mm: {
|
|
259
|
+
maxLen: 2,
|
|
260
|
+
placeholder: "MM",
|
|
261
|
+
ariaLabel: "Month"
|
|
262
|
+
},
|
|
263
|
+
dd: {
|
|
264
|
+
maxLen: 2,
|
|
265
|
+
placeholder: "DD",
|
|
266
|
+
ariaLabel: "Day"
|
|
267
|
+
},
|
|
268
|
+
yyyy: {
|
|
269
|
+
maxLen: 4,
|
|
270
|
+
placeholder: "YYYY",
|
|
271
|
+
ariaLabel: "Year"
|
|
272
|
+
}
|
|
273
|
+
}, xe = (e) => {
|
|
274
|
+
let { maxLen: t, placeholder: n, ariaLabel: i } = $[e];
|
|
275
|
+
return /* @__PURE__ */ u("input", {
|
|
276
|
+
ref: (t) => {
|
|
277
|
+
V[e].current = t;
|
|
278
|
+
},
|
|
279
|
+
id: `${r}-${e}`,
|
|
280
|
+
class: p("IncodeSegmentedDateInputSegment", `IncodeSegmentedDateInputSegment--${e}`),
|
|
281
|
+
type: "text",
|
|
282
|
+
inputMode: "numeric",
|
|
283
|
+
autoComplete: le(e),
|
|
284
|
+
autoCorrect: "off",
|
|
285
|
+
spellcheck: !1,
|
|
286
|
+
maxLength: t,
|
|
287
|
+
size: t,
|
|
288
|
+
placeholder: n,
|
|
289
|
+
"aria-label": i,
|
|
290
|
+
"aria-required": g ? "true" : void 0,
|
|
291
|
+
"aria-invalid": Q ? "true" : void 0,
|
|
292
|
+
value: H[e],
|
|
293
|
+
disabled: C,
|
|
294
|
+
"data-testid": `${r}-${e}`,
|
|
295
|
+
onInput: me(e, t),
|
|
296
|
+
onKeyDown: he(e),
|
|
297
|
+
onBlur: ge(e, t),
|
|
298
|
+
onFocus: _e,
|
|
299
|
+
onPaste: ve
|
|
300
|
+
});
|
|
70
301
|
};
|
|
71
|
-
return /* @__PURE__ */ u(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
class: "
|
|
87
|
-
children:
|
|
302
|
+
return /* @__PURE__ */ u("div", {
|
|
303
|
+
class: p("IncodeInputComposed IncodeSegmentedDateInput", v),
|
|
304
|
+
children: [
|
|
305
|
+
i && /* @__PURE__ */ u("label", {
|
|
306
|
+
id: G,
|
|
307
|
+
class: "IncodeInputComposedLabel",
|
|
308
|
+
htmlFor: `${r}-${N[0]}`,
|
|
309
|
+
"data-testid": `${r}-label`,
|
|
310
|
+
children: [i, o && /* @__PURE__ */ u("span", {
|
|
311
|
+
class: "IncodeInputComposedLabelHint",
|
|
312
|
+
"data-testid": `${r}-label-hint`,
|
|
313
|
+
children: o
|
|
314
|
+
})]
|
|
315
|
+
}),
|
|
316
|
+
/* @__PURE__ */ u("div", {
|
|
317
|
+
class: "IncodeInputComposedWrapper",
|
|
318
|
+
children: [
|
|
319
|
+
/* @__PURE__ */ u("div", {
|
|
320
|
+
role: "group",
|
|
321
|
+
class: p("IncodeSegmentedDateInputField", Q && "IncodeSegmentedDateInputField--invalid", C && "IncodeSegmentedDateInputField--disabled"),
|
|
322
|
+
"data-has-value": ye ? "true" : void 0,
|
|
323
|
+
"data-disabled": C ? "true" : void 0,
|
|
324
|
+
"aria-invalid": Q ? "true" : void 0,
|
|
325
|
+
"aria-describedby": fe || void 0,
|
|
326
|
+
...be,
|
|
327
|
+
children: N.map((e, n) => /* @__PURE__ */ u(t, { children: [xe(e), n < N.length - 1 && /* @__PURE__ */ u("span", {
|
|
328
|
+
class: "IncodeSegmentedDateInputSeparator",
|
|
329
|
+
"aria-hidden": "true",
|
|
330
|
+
children: "/"
|
|
331
|
+
})] }, e))
|
|
332
|
+
}),
|
|
333
|
+
/* @__PURE__ */ u("span", {
|
|
334
|
+
id: ue,
|
|
335
|
+
class: "IncodeSrOnly",
|
|
336
|
+
"data-testid": `${r}-format-hint`,
|
|
337
|
+
children: de
|
|
338
|
+
}),
|
|
339
|
+
/* @__PURE__ */ u("input", {
|
|
340
|
+
ref: W,
|
|
341
|
+
id: r,
|
|
342
|
+
type: "date",
|
|
343
|
+
name: D,
|
|
344
|
+
defaultValue: y,
|
|
345
|
+
min: w,
|
|
346
|
+
max: T,
|
|
347
|
+
disabled: C,
|
|
348
|
+
required: g,
|
|
349
|
+
"aria-required": g ? "true" : void 0,
|
|
350
|
+
autoComplete: R,
|
|
351
|
+
class: "IncodeSegmentedDateInputHiddenNative",
|
|
352
|
+
tabIndex: -1,
|
|
353
|
+
"aria-hidden": "true",
|
|
354
|
+
"data-has-value": ye ? "true" : void 0,
|
|
355
|
+
"data-testid": `${r}-native`,
|
|
356
|
+
onInput: X,
|
|
357
|
+
onChange: X,
|
|
358
|
+
...ee
|
|
359
|
+
}),
|
|
360
|
+
/* @__PURE__ */ u("button", {
|
|
361
|
+
ref: B,
|
|
362
|
+
type: "button",
|
|
363
|
+
class: "IncodeSegmentedDateInputIconButton",
|
|
364
|
+
onClick: Z,
|
|
365
|
+
onTouchEnd: Z,
|
|
366
|
+
disabled: C,
|
|
367
|
+
"aria-label": "Open date picker",
|
|
368
|
+
"data-testid": `${r}-picker-trigger`,
|
|
369
|
+
children: /* @__PURE__ */ u("span", {
|
|
370
|
+
class: "IncodeSegmentedDateInputIcon",
|
|
371
|
+
children: /* @__PURE__ */ u(S, {})
|
|
372
|
+
})
|
|
373
|
+
})
|
|
374
|
+
]
|
|
375
|
+
}),
|
|
376
|
+
!_ && d && /* @__PURE__ */ u("div", {
|
|
377
|
+
class: "IncodeInputComposedErrorWrapper",
|
|
378
|
+
role: "alert",
|
|
379
|
+
"data-testid": `${r}-error-wrapper`,
|
|
380
|
+
children: [f && /* @__PURE__ */ u("div", {
|
|
381
|
+
class: "IncodeInputComposedIconWrapper",
|
|
382
|
+
children: /* @__PURE__ */ u(b, { size: 16 })
|
|
383
|
+
}), /* @__PURE__ */ u("p", {
|
|
384
|
+
id: q,
|
|
385
|
+
class: "IncodeInputComposedError",
|
|
386
|
+
children: d
|
|
387
|
+
})]
|
|
388
|
+
}),
|
|
389
|
+
!_ && m && !d && /* @__PURE__ */ u("div", {
|
|
390
|
+
class: "IncodeInputComposedHelperWrapper",
|
|
391
|
+
"data-testid": `${r}-helper-wrapper`,
|
|
392
|
+
children: [h && /* @__PURE__ */ u("div", {
|
|
393
|
+
class: "IncodeInputComposedIconWrapper",
|
|
394
|
+
children: /* @__PURE__ */ u(E, { size: 16 })
|
|
395
|
+
}), /* @__PURE__ */ u("p", {
|
|
396
|
+
id: K,
|
|
397
|
+
class: "IncodeInputComposedHelper",
|
|
398
|
+
children: m
|
|
399
|
+
})]
|
|
88
400
|
})
|
|
89
|
-
|
|
90
|
-
...i
|
|
401
|
+
]
|
|
91
402
|
});
|
|
92
403
|
});
|
|
93
|
-
|
|
404
|
+
I.displayName = "SegmentedDateInput";
|
|
94
405
|
//#endregion
|
|
95
406
|
//#region src/shared/textArea/textArea.tsx
|
|
96
|
-
var
|
|
407
|
+
var L = r((e, t) => {
|
|
97
408
|
let { class: n, rows: r = 4, ...i } = e;
|
|
98
409
|
return /* @__PURE__ */ u("textarea", {
|
|
99
410
|
...i,
|
|
@@ -101,7 +412,7 @@ var M = r((e, t) => {
|
|
|
101
412
|
rows: r,
|
|
102
413
|
class: p("IncodeTextArea", n)
|
|
103
414
|
});
|
|
104
|
-
}),
|
|
415
|
+
}), le = 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) => {
|
|
105
416
|
let h = `${e}-helper`, g = `${e}-error`, _ = [o ? h : null, i ? g : null].filter(Boolean).join(" ");
|
|
106
417
|
return /* @__PURE__ */ u("div", {
|
|
107
418
|
class: p("IncodeTextAreaComposed", d),
|
|
@@ -118,7 +429,7 @@ var M = r((e, t) => {
|
|
|
118
429
|
}),
|
|
119
430
|
/* @__PURE__ */ u("div", {
|
|
120
431
|
class: "IncodeTextAreaComposedWrapper",
|
|
121
|
-
children: /* @__PURE__ */ u(
|
|
432
|
+
children: /* @__PURE__ */ u(L, {
|
|
122
433
|
id: e,
|
|
123
434
|
rows: l,
|
|
124
435
|
...f,
|
|
@@ -157,16 +468,16 @@ var M = r((e, t) => {
|
|
|
157
468
|
]
|
|
158
469
|
});
|
|
159
470
|
});
|
|
160
|
-
|
|
471
|
+
le.displayName = "TextAreaComposed";
|
|
161
472
|
//#endregion
|
|
162
473
|
//#region src/shared/card/verificationOption/verificationOptionCard.tsx
|
|
163
|
-
function
|
|
474
|
+
function R({ children: e }) {
|
|
164
475
|
return /* @__PURE__ */ u("div", {
|
|
165
476
|
class: "IncodeVerificationOptionCardList",
|
|
166
477
|
children: e
|
|
167
478
|
});
|
|
168
479
|
}
|
|
169
|
-
function
|
|
480
|
+
function z({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
|
|
170
481
|
return /* @__PURE__ */ u("button", {
|
|
171
482
|
type: "button",
|
|
172
483
|
class: "IncodeVerificationOptionCard",
|
|
@@ -186,7 +497,7 @@ function F({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
|
|
|
186
497
|
children: [/* @__PURE__ */ u("span", {
|
|
187
498
|
class: "IncodeVerificationOptionCardTitle",
|
|
188
499
|
children: t
|
|
189
|
-
}), i && /* @__PURE__ */ u(
|
|
500
|
+
}), i && /* @__PURE__ */ u(B, { label: i })]
|
|
190
501
|
}), /* @__PURE__ */ u("span", {
|
|
191
502
|
class: "IncodeVerificationOptionCardArrow",
|
|
192
503
|
"data-testid": "chevron-right-icon",
|
|
@@ -198,7 +509,7 @@ function F({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
|
|
|
198
509
|
})]
|
|
199
510
|
});
|
|
200
511
|
}
|
|
201
|
-
function
|
|
512
|
+
function B({ label: e }) {
|
|
202
513
|
return /* @__PURE__ */ u("div", {
|
|
203
514
|
class: "IncodeVerificationOptionCardTag",
|
|
204
515
|
children: [/* @__PURE__ */ u(T, {}), /* @__PURE__ */ u("span", { children: e })]
|
|
@@ -206,7 +517,7 @@ function ne({ label: e }) {
|
|
|
206
517
|
}
|
|
207
518
|
//#endregion
|
|
208
519
|
//#region src/shared/cameraOverlay/cameraFrame.tsx
|
|
209
|
-
var
|
|
520
|
+
var V = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameState: r = "idle", className: i, children: a }, o) => {
|
|
210
521
|
let s = `IncodeCameraFrame${r.charAt(0).toUpperCase()}${r.slice(1)}`;
|
|
211
522
|
return /* @__PURE__ */ u("div", {
|
|
212
523
|
ref: o,
|
|
@@ -215,10 +526,10 @@ var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
215
526
|
"aria-hidden": !0,
|
|
216
527
|
children: a
|
|
217
528
|
});
|
|
218
|
-
}),
|
|
529
|
+
}), H = ({ children: e, className: t }) => /* @__PURE__ */ u("div", {
|
|
219
530
|
class: p("IncodeCameraOverlay", t),
|
|
220
531
|
children: e
|
|
221
|
-
}),
|
|
532
|
+
}), U = ({ title: e, subtitle: t, visible: r = !0, className: i, titleId: a }) => {
|
|
222
533
|
let o = s(null);
|
|
223
534
|
return n(() => {
|
|
224
535
|
o.current?.focus();
|
|
@@ -235,7 +546,7 @@ var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
235
546
|
children: t
|
|
236
547
|
})]
|
|
237
548
|
});
|
|
238
|
-
},
|
|
549
|
+
}, W = ({ stream: e, children: t, videoRef: r, onPlaying: i, className: a, ...o }) => {
|
|
239
550
|
let c = s(null), l = (e) => {
|
|
240
551
|
c.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
|
|
241
552
|
};
|
|
@@ -257,7 +568,7 @@ var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
257
568
|
})
|
|
258
569
|
}), t]
|
|
259
570
|
});
|
|
260
|
-
},
|
|
571
|
+
}, G = ({ onOpenHelp: t, onCapture: n, isManualCapture: r, captureAriaLabel: i, captureAriaDescribedBy: a, helpAriaLabel: o, helpButtonRef: s, captureButtonRef: c, encryptionLabel: l, children: d }) => {
|
|
261
572
|
let { t: f } = e();
|
|
262
573
|
return /* @__PURE__ */ u("div", {
|
|
263
574
|
class: "IncodeCaptureFooter",
|
|
@@ -295,14 +606,14 @@ var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
295
606
|
};
|
|
296
607
|
//#endregion
|
|
297
608
|
//#region src/shared/manualCapture/manualCapture.tsx
|
|
298
|
-
function
|
|
609
|
+
function K(e) {
|
|
299
610
|
if (e.readyState < 2 || e.videoWidth === 0 || e.videoHeight === 0) return null;
|
|
300
611
|
let t = document.createElement("canvas");
|
|
301
612
|
t.width = e.videoWidth, t.height = e.videoHeight;
|
|
302
613
|
let n = t.getContext("2d");
|
|
303
614
|
return n ? (n.drawImage(e, 0, 0), t.toDataURL("image/jpeg", .92).split(",")[1] ?? null) : null;
|
|
304
615
|
}
|
|
305
|
-
var
|
|
616
|
+
var q = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
306
617
|
let i = s(null);
|
|
307
618
|
n(() => {
|
|
308
619
|
i.current && e && (i.current.srcObject = e, i.current.play().catch(() => {}));
|
|
@@ -310,7 +621,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
310
621
|
let a = o(() => {
|
|
311
622
|
let e = i.current;
|
|
312
623
|
if (!e || r) return;
|
|
313
|
-
let n =
|
|
624
|
+
let n = K(e);
|
|
314
625
|
n && t(n);
|
|
315
626
|
}, [t, r]);
|
|
316
627
|
return /* @__PURE__ */ u("div", {
|
|
@@ -338,7 +649,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
338
649
|
})
|
|
339
650
|
})]
|
|
340
651
|
});
|
|
341
|
-
},
|
|
652
|
+
}, ue = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
342
653
|
width: "24",
|
|
343
654
|
height: "24",
|
|
344
655
|
viewBox: "0 0 24 24",
|
|
@@ -368,7 +679,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
368
679
|
fill: "currentColor"
|
|
369
680
|
})
|
|
370
681
|
]
|
|
371
|
-
}),
|
|
682
|
+
}), de = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
372
683
|
width: "24",
|
|
373
684
|
height: "24",
|
|
374
685
|
viewBox: "0 0 24 24",
|
|
@@ -394,7 +705,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
394
705
|
fill: "currentColor"
|
|
395
706
|
})
|
|
396
707
|
]
|
|
397
|
-
}),
|
|
708
|
+
}), fe = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
398
709
|
width: "24",
|
|
399
710
|
height: "24",
|
|
400
711
|
viewBox: "0 0 24 24",
|
|
@@ -428,7 +739,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
428
739
|
fill: "currentColor"
|
|
429
740
|
})
|
|
430
741
|
]
|
|
431
|
-
}),
|
|
742
|
+
}), pe = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
432
743
|
width: "64",
|
|
433
744
|
height: "64",
|
|
434
745
|
viewBox: "0 0 64 64",
|
|
@@ -445,7 +756,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
445
756
|
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",
|
|
446
757
|
fill: "white"
|
|
447
758
|
})]
|
|
448
|
-
}),
|
|
759
|
+
}), J = ({ open: t, onClose: n, onTakeManually: r, portalContainer: i }) => {
|
|
449
760
|
let { t: a } = e(), s = o((e) => {
|
|
450
761
|
e?.focus();
|
|
451
762
|
}, []), c = () => {
|
|
@@ -465,7 +776,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
465
776
|
children: [
|
|
466
777
|
/* @__PURE__ */ u(D.Icon, {
|
|
467
778
|
class: "IncodeCommonIssuesQuestionIcon",
|
|
468
|
-
children: /* @__PURE__ */ u(
|
|
779
|
+
children: /* @__PURE__ */ u(pe, {})
|
|
469
780
|
}),
|
|
470
781
|
/* @__PURE__ */ u(D.TitleSection, { children: /* @__PURE__ */ u(g, {
|
|
471
782
|
id: "incode-modal-title",
|
|
@@ -482,7 +793,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
482
793
|
children: [/* @__PURE__ */ u("div", {
|
|
483
794
|
class: "IncodeCommonIssuesCardIcon",
|
|
484
795
|
"aria-hidden": "true",
|
|
485
|
-
children: /* @__PURE__ */ u(
|
|
796
|
+
children: /* @__PURE__ */ u(de, {})
|
|
486
797
|
}), /* @__PURE__ */ u("div", {
|
|
487
798
|
class: "IncodeCommonIssuesCardText",
|
|
488
799
|
children: [/* @__PURE__ */ u("h3", {
|
|
@@ -499,7 +810,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
499
810
|
children: [/* @__PURE__ */ u("div", {
|
|
500
811
|
class: "IncodeCommonIssuesCardIcon",
|
|
501
812
|
"aria-hidden": "true",
|
|
502
|
-
children: /* @__PURE__ */ u(
|
|
813
|
+
children: /* @__PURE__ */ u(ue, {})
|
|
503
814
|
}), /* @__PURE__ */ u("div", {
|
|
504
815
|
class: "IncodeCommonIssuesCardText",
|
|
505
816
|
children: [/* @__PURE__ */ u("h3", {
|
|
@@ -516,7 +827,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
516
827
|
children: [/* @__PURE__ */ u("div", {
|
|
517
828
|
class: "IncodeCommonIssuesCardIcon",
|
|
518
829
|
"aria-hidden": "true",
|
|
519
|
-
children: /* @__PURE__ */ u(
|
|
830
|
+
children: /* @__PURE__ */ u(fe, {})
|
|
520
831
|
}), /* @__PURE__ */ u("div", {
|
|
521
832
|
class: "IncodeCommonIssuesCardText",
|
|
522
833
|
children: [/* @__PURE__ */ u("h3", {
|
|
@@ -546,7 +857,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
546
857
|
]
|
|
547
858
|
})
|
|
548
859
|
});
|
|
549
|
-
},
|
|
860
|
+
}, Y = ({ orientation: e, mode: t, state: n, children: r, className: i }) => {
|
|
550
861
|
let a = e !== "vertical" || t === "passport", o = t === "passport", s = `IncodeCaptureFrame${n.charAt(0).toUpperCase() + n.slice(1)}`;
|
|
551
862
|
return /* @__PURE__ */ u("div", {
|
|
552
863
|
class: p("IncodeCaptureFrame", a ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical", s, o && "IncodeCaptureFramePassport", i),
|
|
@@ -554,7 +865,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
554
865
|
role: "presentation",
|
|
555
866
|
children: r
|
|
556
867
|
});
|
|
557
|
-
},
|
|
868
|
+
}, me = ({ imageUrl: t, orientation: n, mode: r, borderState: i, topContent: a, bottomContent: o, overlayContent: s, blurImage: c }) => {
|
|
558
869
|
let { t: l } = e();
|
|
559
870
|
return /* @__PURE__ */ u(h, {
|
|
560
871
|
hideHeader: !0,
|
|
@@ -568,7 +879,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
568
879
|
class: "IncodeIdProcessingTopArea",
|
|
569
880
|
children: a
|
|
570
881
|
}),
|
|
571
|
-
/* @__PURE__ */ u(
|
|
882
|
+
/* @__PURE__ */ u(Y, {
|
|
572
883
|
orientation: n,
|
|
573
884
|
mode: r === "id" ? "front" : r,
|
|
574
885
|
state: i,
|
|
@@ -594,17 +905,17 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
594
905
|
})
|
|
595
906
|
})
|
|
596
907
|
});
|
|
597
|
-
},
|
|
908
|
+
}, he = ({ imageUrl: t, progress: r, orientation: i, mode: a, blurImage: o }) => {
|
|
598
909
|
let { t: c } = e(), d = s(null), f = i !== "vertical" || a === "passport", [p, m] = l(null);
|
|
599
910
|
return n(() => {
|
|
600
911
|
d.current?.focus();
|
|
601
912
|
}, []), n(() => {
|
|
602
|
-
f ? import("./id-laser-h-
|
|
913
|
+
f ? import("./id-laser-h-D0KN9qFd.js").then((e) => {
|
|
603
914
|
m(e.default);
|
|
604
|
-
}) : import("./id-laser-v-
|
|
915
|
+
}) : import("./id-laser-v-BLY6XMRK.js").then((e) => {
|
|
605
916
|
m(e.default);
|
|
606
917
|
});
|
|
607
|
-
}, [f]), /* @__PURE__ */ u(
|
|
918
|
+
}, [f]), /* @__PURE__ */ u(me, {
|
|
608
919
|
imageUrl: t,
|
|
609
920
|
orientation: i,
|
|
610
921
|
mode: a,
|
|
@@ -626,7 +937,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
626
937
|
className: "IncodeAnalyzingLottie"
|
|
627
938
|
}) : null
|
|
628
939
|
});
|
|
629
|
-
},
|
|
940
|
+
}, ge = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
|
|
630
941
|
class: e,
|
|
631
942
|
width: "32",
|
|
632
943
|
height: "32",
|
|
@@ -639,7 +950,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
639
950
|
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",
|
|
640
951
|
fill: "#189F60"
|
|
641
952
|
})
|
|
642
|
-
}),
|
|
953
|
+
}), _e = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
|
|
643
954
|
class: e,
|
|
644
955
|
width: "33",
|
|
645
956
|
height: "32",
|
|
@@ -652,11 +963,11 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
652
963
|
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",
|
|
653
964
|
fill: "#E71111"
|
|
654
965
|
})
|
|
655
|
-
}),
|
|
966
|
+
}), ve = ({ variant: r, imageUrl: i, orientation: a, mode: o, title: c, subtitle: l, buttonText: d, onButtonClick: f, attemptsRemaining: p, blurImage: h }) => {
|
|
656
967
|
let { t: _ } = e(), y = s(null);
|
|
657
968
|
return n(() => {
|
|
658
969
|
y.current?.focus();
|
|
659
|
-
}, []), /* @__PURE__ */ u(
|
|
970
|
+
}, []), /* @__PURE__ */ u(me, {
|
|
660
971
|
imageUrl: i,
|
|
661
972
|
orientation: a,
|
|
662
973
|
mode: o,
|
|
@@ -666,7 +977,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
666
977
|
class: "IncodeIdProcessingResultContent",
|
|
667
978
|
role: "status",
|
|
668
979
|
children: [
|
|
669
|
-
u(r === "success" ?
|
|
980
|
+
u(r === "success" ? ge : _e, { className: "IncodeIdProcessingResultIcon" }),
|
|
670
981
|
/* @__PURE__ */ u(m, { size: 16 }),
|
|
671
982
|
c && /* @__PURE__ */ u(g, {
|
|
672
983
|
ref: y,
|
|
@@ -692,11 +1003,11 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
692
1003
|
})]
|
|
693
1004
|
})
|
|
694
1005
|
});
|
|
695
|
-
},
|
|
1006
|
+
}, X = ({ manager: t, state: n, blurImage: r }) => {
|
|
696
1007
|
let { t: i } = e();
|
|
697
1008
|
if (!n.previewImageUrl) return null;
|
|
698
1009
|
let a = n.currentMode === "passport" ? "passport" : "id";
|
|
699
|
-
return /* @__PURE__ */ u(
|
|
1010
|
+
return /* @__PURE__ */ u(ve, {
|
|
700
1011
|
variant: "success",
|
|
701
1012
|
imageUrl: n.previewImageUrl,
|
|
702
1013
|
orientation: n.orientation,
|
|
@@ -707,7 +1018,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
707
1018
|
onButtonClick: () => t.nextStep(),
|
|
708
1019
|
blurImage: r
|
|
709
1020
|
});
|
|
710
|
-
},
|
|
1021
|
+
}, Z = ({ manager: t, state: n, blurImage: r, ...i }) => {
|
|
711
1022
|
let { t: a } = e();
|
|
712
1023
|
if (n.status === "error") return /* @__PURE__ */ u("div", {
|
|
713
1024
|
class: "IncodeIdError",
|
|
@@ -722,7 +1033,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
722
1033
|
})]
|
|
723
1034
|
});
|
|
724
1035
|
let o = n.currentMode === "passport" ? "passport" : "id";
|
|
725
|
-
return n.previewImageUrl ? /* @__PURE__ */ u(
|
|
1036
|
+
return n.previewImageUrl ? /* @__PURE__ */ u(ve, {
|
|
726
1037
|
variant: "error",
|
|
727
1038
|
imageUrl: n.previewImageUrl,
|
|
728
1039
|
orientation: n.orientation,
|
|
@@ -734,7 +1045,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
734
1045
|
attemptsRemaining: n.attemptsRemaining,
|
|
735
1046
|
blurImage: r
|
|
736
1047
|
}) : null;
|
|
737
|
-
},
|
|
1048
|
+
}, ye = ({ manager: t }) => {
|
|
738
1049
|
let { t: r } = e(), i = s(null);
|
|
739
1050
|
return n(() => {
|
|
740
1051
|
i.current?.focus();
|
|
@@ -746,7 +1057,7 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
746
1057
|
class: "IncodeIdExpiredContent",
|
|
747
1058
|
role: "alert",
|
|
748
1059
|
children: [
|
|
749
|
-
/* @__PURE__ */ u(
|
|
1060
|
+
/* @__PURE__ */ u(_e, { className: "IncodeIdExpiredIcon" }),
|
|
750
1061
|
/* @__PURE__ */ u(g, {
|
|
751
1062
|
ref: i,
|
|
752
1063
|
tabIndex: -1,
|
|
@@ -771,65 +1082,65 @@ var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
771
1082
|
})
|
|
772
1083
|
})]
|
|
773
1084
|
});
|
|
774
|
-
},
|
|
775
|
-
blur: () => import("./blurdevicelottie-
|
|
776
|
-
glare: () => import("./glaredevicelottie
|
|
777
|
-
align: () => import("./aligndevicelottie-
|
|
778
|
-
front: () => import("./frontdevicelottie-
|
|
779
|
-
back: () => import("./backdevicelottie-
|
|
1085
|
+
}, Q = /* @__PURE__ */ new Map(), be = !1, $ = {
|
|
1086
|
+
blur: () => import("./blurdevicelottie-DCVb3_MF.js"),
|
|
1087
|
+
glare: () => import("./glaredevicelottie--PlYPjZt.js"),
|
|
1088
|
+
align: () => import("./aligndevicelottie-CpAPbotJ.js"),
|
|
1089
|
+
front: () => import("./frontdevicelottie-6sxr3oQH.js"),
|
|
1090
|
+
back: () => import("./backdevicelottie-Dx1dP2K0.js")
|
|
780
1091
|
};
|
|
781
|
-
function
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
1092
|
+
function xe(e) {
|
|
1093
|
+
be || (be = !0, Promise.all([
|
|
1094
|
+
$.blur(),
|
|
1095
|
+
$.glare(),
|
|
1096
|
+
$.align(),
|
|
1097
|
+
$.front(),
|
|
1098
|
+
$.back()
|
|
788
1099
|
]).then(([t, n, r, i, a]) => {
|
|
789
|
-
|
|
1100
|
+
Q.set("blur", t.default), Q.set("glare", n.default), Q.set("align", r.default), Q.set("front", i.default), Q.set("back", a.default), e?.();
|
|
790
1101
|
}).catch(() => {}));
|
|
791
1102
|
}
|
|
792
|
-
function
|
|
793
|
-
|
|
1103
|
+
function Se() {
|
|
1104
|
+
xe();
|
|
794
1105
|
}
|
|
795
|
-
function
|
|
1106
|
+
function Ce() {
|
|
796
1107
|
n(() => {
|
|
797
|
-
|
|
1108
|
+
Se();
|
|
798
1109
|
}, []);
|
|
799
1110
|
}
|
|
800
|
-
function
|
|
1111
|
+
function we(t, r) {
|
|
801
1112
|
let { t: i } = e(), [, a] = l(0);
|
|
802
1113
|
if (n(() => {
|
|
803
|
-
|
|
1114
|
+
xe(() => a((e) => e + 1));
|
|
804
1115
|
}, []), t === "blur") return {
|
|
805
1116
|
title: i("idv2.capture.notifications.blur.title"),
|
|
806
1117
|
description: i("idv2.capture.notifications.blur.description"),
|
|
807
|
-
animationData:
|
|
1118
|
+
animationData: Q.get("blur") ?? null
|
|
808
1119
|
};
|
|
809
1120
|
if (t === "glare") return {
|
|
810
1121
|
title: i("idv2.capture.notifications.glare.title"),
|
|
811
1122
|
description: i("idv2.capture.notifications.glare.description"),
|
|
812
|
-
animationData:
|
|
1123
|
+
animationData: Q.get("glare") ?? null
|
|
813
1124
|
};
|
|
814
1125
|
if (t === "farAway") return {
|
|
815
1126
|
title: i("idv2.capture.notifications.notAligned.title"),
|
|
816
1127
|
description: i("idv2.capture.notifications.notAligned.description"),
|
|
817
|
-
animationData:
|
|
1128
|
+
animationData: Q.get("align") ?? null
|
|
818
1129
|
};
|
|
819
1130
|
if (t === "wrongSide") {
|
|
820
1131
|
let e = r === "back";
|
|
821
1132
|
return {
|
|
822
1133
|
title: i(e ? "idv2.capture.notifications.showBack.title" : "idv2.capture.notifications.showFront.title"),
|
|
823
1134
|
description: i(e ? "idv2.capture.notifications.showBack.description" : "idv2.capture.notifications.showFront.description"),
|
|
824
|
-
animationData:
|
|
1135
|
+
animationData: Q.get(e ? "back" : "front") ?? null
|
|
825
1136
|
};
|
|
826
1137
|
}
|
|
827
1138
|
return null;
|
|
828
1139
|
}
|
|
829
1140
|
//#endregion
|
|
830
1141
|
//#region src/modules/id/capture/captureNotification.tsx
|
|
831
|
-
var
|
|
832
|
-
let { t: c } = e(), l =
|
|
1142
|
+
var Te = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
|
|
1143
|
+
let { t: c } = e(), l = we(r, i), d = s(null), f = s({
|
|
833
1144
|
message: "",
|
|
834
1145
|
at: 0
|
|
835
1146
|
}), 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) => {
|
|
@@ -938,34 +1249,34 @@ var me = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
|
|
|
938
1249
|
]
|
|
939
1250
|
})
|
|
940
1251
|
}) : null] });
|
|
941
|
-
},
|
|
1252
|
+
}, Ee = i(() => import("./front-horizontal-hint-SvDdygvL.js")), De = i(() => import("./front-vertical-hint-vIniWZ_9.js")), Oe = i(() => import("./back-horizontal-hint-C_wAUpW0.js")), ke = i(() => import("./back-vertical-hint-C9xK0aN8.js")), Ae = i(() => import("./passport-horizontal-hint-Bxb4tVrA.js")), je = i(() => import("./passport-vertical-hint-D6hgaXKT.js")), Me = {
|
|
942
1253
|
"front-horizontal": 348,
|
|
943
1254
|
"back-horizontal": 348,
|
|
944
1255
|
"passport-horizontal": 342
|
|
945
|
-
},
|
|
1256
|
+
}, Ne = {
|
|
946
1257
|
"front-vertical": 446,
|
|
947
1258
|
"back-vertical": 446,
|
|
948
1259
|
"passport-vertical": 342
|
|
949
1260
|
};
|
|
950
|
-
function
|
|
951
|
-
let i = `${e}-${t}`, a =
|
|
1261
|
+
function Pe(e, t, n, r) {
|
|
1262
|
+
let i = `${e}-${t}`, a = Me[i];
|
|
952
1263
|
if (a) return n / a;
|
|
953
|
-
let o =
|
|
1264
|
+
let o = Ne[i];
|
|
954
1265
|
return o ? r / o : 1;
|
|
955
1266
|
}
|
|
956
|
-
var
|
|
1267
|
+
var Fe = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
957
1268
|
let i = s(null), [a, o] = l(1);
|
|
958
1269
|
n(() => {
|
|
959
1270
|
let n = i.current;
|
|
960
1271
|
if (!n) return;
|
|
961
1272
|
let r = () => {
|
|
962
|
-
o(
|
|
1273
|
+
o(Pe(e, t, n.clientWidth, n.clientHeight));
|
|
963
1274
|
};
|
|
964
1275
|
r();
|
|
965
1276
|
let a = new ResizeObserver(r);
|
|
966
1277
|
return a.observe(n), () => a.disconnect();
|
|
967
1278
|
}, [e, t]);
|
|
968
|
-
let d = () => e === "front" ? u(t === "horizontal" ?
|
|
1279
|
+
let d = () => e === "front" ? u(t === "horizontal" ? Ee : De, {}) : e === "back" ? u(t === "horizontal" ? Oe : ke, {}) : e === "passport" ? u(t === "horizontal" ? Ae : je, {}) : null;
|
|
969
1280
|
return /* @__PURE__ */ u("div", {
|
|
970
1281
|
ref: i,
|
|
971
1282
|
class: "IncodeIdHint",
|
|
@@ -986,9 +1297,9 @@ var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
986
1297
|
})
|
|
987
1298
|
})
|
|
988
1299
|
});
|
|
989
|
-
},
|
|
1300
|
+
}, Ie = r(({ mode: t, orientation: r, detectionStatus: i, counterValue: o, isCapturing: c, showManualCapture: d, onCapture: f, onOpenHelp: m, helpButtonRef: h, captureButtonRef: g }, _) => {
|
|
990
1301
|
let { t: v } = e();
|
|
991
|
-
|
|
1302
|
+
Ce();
|
|
992
1303
|
let y = s(!1), [b, x] = l(!1);
|
|
993
1304
|
n(() => {
|
|
994
1305
|
if (i === "idNotDetected") {
|
|
@@ -1025,23 +1336,23 @@ var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1025
1336
|
t,
|
|
1026
1337
|
v
|
|
1027
1338
|
]), w = S(), T = t === "passport", E = r !== "vertical" || T ? "horizontal" : "vertical";
|
|
1028
|
-
return /* @__PURE__ */ u(
|
|
1339
|
+
return /* @__PURE__ */ u(H, {
|
|
1029
1340
|
className: "IncodeCaptureOverlayId",
|
|
1030
1341
|
children: [
|
|
1031
1342
|
/* @__PURE__ */ u("div", {
|
|
1032
1343
|
class: "IncodeCaptureTopSection",
|
|
1033
|
-
children: [/* @__PURE__ */ u(
|
|
1344
|
+
children: [/* @__PURE__ */ u(Te, {
|
|
1034
1345
|
detectionStatus: i,
|
|
1035
1346
|
mode: t,
|
|
1036
1347
|
isCapturing: c
|
|
1037
|
-
}), /* @__PURE__ */ u(
|
|
1348
|
+
}), /* @__PURE__ */ u(U, {
|
|
1038
1349
|
title: C?.title ?? "",
|
|
1039
1350
|
subtitle: C?.subtitle,
|
|
1040
1351
|
visible: C !== null,
|
|
1041
1352
|
titleId: "id-capture-heading"
|
|
1042
1353
|
})]
|
|
1043
1354
|
}),
|
|
1044
|
-
/* @__PURE__ */ u(
|
|
1355
|
+
/* @__PURE__ */ u(V, {
|
|
1045
1356
|
ref: _,
|
|
1046
1357
|
variant: "locked",
|
|
1047
1358
|
orientation: E,
|
|
@@ -1050,7 +1361,7 @@ var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1050
1361
|
children: [c && o > 0 && /* @__PURE__ */ u("div", {
|
|
1051
1362
|
class: "IncodeCaptureCounter",
|
|
1052
1363
|
children: o
|
|
1053
|
-
}), b && /* @__PURE__ */ u(
|
|
1364
|
+
}), b && /* @__PURE__ */ u(Fe, {
|
|
1054
1365
|
mode: t,
|
|
1055
1366
|
orientation: r ?? "horizontal",
|
|
1056
1367
|
onAnimationEnd: () => x(!1)
|
|
@@ -1062,7 +1373,7 @@ var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1062
1373
|
"aria-atomic": "true",
|
|
1063
1374
|
children: c && o > 0 ? o : ""
|
|
1064
1375
|
}),
|
|
1065
|
-
/* @__PURE__ */ u(
|
|
1376
|
+
/* @__PURE__ */ u(G, {
|
|
1066
1377
|
onOpenHelp: m,
|
|
1067
1378
|
onCapture: f,
|
|
1068
1379
|
isManualCapture: d,
|
|
@@ -1084,10 +1395,10 @@ var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1084
1395
|
})
|
|
1085
1396
|
]
|
|
1086
1397
|
});
|
|
1087
|
-
}),
|
|
1398
|
+
}), Le = ({ manager: e, state: t }) => {
|
|
1088
1399
|
if (t.captureStatus === "uploading" && t.previewImageUrl) {
|
|
1089
1400
|
let e = t.currentMode === "passport" ? "passport" : "id";
|
|
1090
|
-
return /* @__PURE__ */ u(
|
|
1401
|
+
return /* @__PURE__ */ u(he, {
|
|
1091
1402
|
imageUrl: t.previewImageUrl,
|
|
1092
1403
|
progress: t.uploadProgress ?? 0,
|
|
1093
1404
|
orientation: t.orientation,
|
|
@@ -1095,19 +1406,19 @@ var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1095
1406
|
blurImage: t.ageAssurance
|
|
1096
1407
|
});
|
|
1097
1408
|
}
|
|
1098
|
-
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ u(
|
|
1409
|
+
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ u(X, {
|
|
1099
1410
|
manager: e,
|
|
1100
1411
|
state: t,
|
|
1101
1412
|
blurImage: t.ageAssurance
|
|
1102
|
-
}) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ u(
|
|
1413
|
+
}) : t.captureStatus === "uploadError" && t.previewImageUrl ? /* @__PURE__ */ u(Z, {
|
|
1103
1414
|
manager: e,
|
|
1104
1415
|
state: t,
|
|
1105
1416
|
blurImage: t.ageAssurance
|
|
1106
|
-
}) : /* @__PURE__ */ u(
|
|
1417
|
+
}) : /* @__PURE__ */ u(Re, {
|
|
1107
1418
|
manager: e,
|
|
1108
1419
|
state: t
|
|
1109
1420
|
});
|
|
1110
|
-
},
|
|
1421
|
+
}, Re = ({ manager: e, state: t }) => {
|
|
1111
1422
|
let n = s(null), r = s(null), i = s(null), a = s(null), [c, p] = l(!1), m = o(() => {
|
|
1112
1423
|
let t = n.current;
|
|
1113
1424
|
if (!t) return;
|
|
@@ -1136,11 +1447,11 @@ var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1136
1447
|
hideFooterBranding: !0,
|
|
1137
1448
|
className: "IncodeIdCapturePage",
|
|
1138
1449
|
children: [
|
|
1139
|
-
/* @__PURE__ */ u(
|
|
1450
|
+
/* @__PURE__ */ u(W, {
|
|
1140
1451
|
stream: t.stream,
|
|
1141
1452
|
onPlaying: m,
|
|
1142
1453
|
"aria-hidden": c || void 0,
|
|
1143
|
-
children: /* @__PURE__ */ u(
|
|
1454
|
+
children: /* @__PURE__ */ u(Ie, {
|
|
1144
1455
|
ref: n,
|
|
1145
1456
|
mode: t.currentMode,
|
|
1146
1457
|
orientation: t.orientation,
|
|
@@ -1155,7 +1466,7 @@ var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1155
1466
|
})
|
|
1156
1467
|
}),
|
|
1157
1468
|
/* @__PURE__ */ u("div", { ref: a }),
|
|
1158
|
-
/* @__PURE__ */ u(
|
|
1469
|
+
/* @__PURE__ */ u(J, {
|
|
1159
1470
|
open: c,
|
|
1160
1471
|
onClose: b,
|
|
1161
1472
|
onTakeManually: x,
|
|
@@ -1163,19 +1474,19 @@ var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1163
1474
|
})
|
|
1164
1475
|
]
|
|
1165
1476
|
});
|
|
1166
|
-
},
|
|
1477
|
+
}, ze = ({ manager: t, state: r }) => {
|
|
1167
1478
|
let { t: i } = e(), [a, o] = l(!1), [s, c] = l(null), d = r.selectedDocumentType === "passport", f = r.currentMode === "back";
|
|
1168
1479
|
n(() => {
|
|
1169
|
-
d ? import("./passport-tutorial-
|
|
1480
|
+
d ? import("./passport-tutorial-CFp2zeDJ.js").then((e) => {
|
|
1170
1481
|
c(e.default);
|
|
1171
|
-
}) : f ? import("./back-tutorial-
|
|
1482
|
+
}) : f ? import("./back-tutorial-H9SCe0gx.js").then((e) => {
|
|
1172
1483
|
c(e.default);
|
|
1173
|
-
}) : import("./id-tutorial-
|
|
1484
|
+
}) : import("./id-tutorial-Dnuu_ZUb.js").then((e) => {
|
|
1174
1485
|
c(e.default);
|
|
1175
1486
|
});
|
|
1176
1487
|
}, [d, f]);
|
|
1177
1488
|
let m = i(d ? "idv2.capture.passport.title" : f ? "idv2.backTutorial.title" : "idv2.tutorial.title"), h = i(d ? "idv2.capture.passport.subtitle" : f ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), g = i(f ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
|
|
1178
|
-
return /* @__PURE__ */ u(
|
|
1489
|
+
return /* @__PURE__ */ u(k, {
|
|
1179
1490
|
animationData: s,
|
|
1180
1491
|
title: m,
|
|
1181
1492
|
subtitle: h,
|
|
@@ -1187,7 +1498,7 @@ var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1187
1498
|
isLoading: a,
|
|
1188
1499
|
className: p("IncodeIdTutorial", d ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId")
|
|
1189
1500
|
});
|
|
1190
|
-
},
|
|
1501
|
+
}, Be = {
|
|
1191
1502
|
digitalIdUpload: {
|
|
1192
1503
|
type: "digitalIdUpload",
|
|
1193
1504
|
icon: () => /* @__PURE__ */ u("svg", {
|
|
@@ -2224,16 +2535,16 @@ var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
2224
2535
|
};
|
|
2225
2536
|
//#endregion
|
|
2226
2537
|
//#region src/modules/id/chooser/chooser.helpers.ts
|
|
2227
|
-
function
|
|
2538
|
+
function Ve(e) {
|
|
2228
2539
|
return e.reduce((e, t) => {
|
|
2229
|
-
let n =
|
|
2540
|
+
let n = Be[t];
|
|
2230
2541
|
return n && e.push(n), e;
|
|
2231
2542
|
}, []).sort((e, t) => e.weight - t.weight);
|
|
2232
2543
|
}
|
|
2233
2544
|
//#endregion
|
|
2234
2545
|
//#region src/modules/id/chooser/chooser.tsx
|
|
2235
|
-
var
|
|
2236
|
-
let { t: r } = e(), i = a(() =>
|
|
2546
|
+
var He = ({ manager: t, state: n }) => {
|
|
2547
|
+
let { t: r } = e(), i = a(() => Ve(n.availableDocumentTypes), [n.availableDocumentTypes]), o = (e) => {
|
|
2237
2548
|
t.selectDocument(e);
|
|
2238
2549
|
};
|
|
2239
2550
|
return /* @__PURE__ */ u(h, {
|
|
@@ -2242,7 +2553,7 @@ var Ae = ({ manager: t, state: n }) => {
|
|
|
2242
2553
|
className: "IncodeChooserPage",
|
|
2243
2554
|
children: /* @__PURE__ */ u("div", {
|
|
2244
2555
|
class: "IncodeChooserContainer",
|
|
2245
|
-
children: /* @__PURE__ */ u(
|
|
2556
|
+
children: /* @__PURE__ */ u(R, { children: i.map((e) => /* @__PURE__ */ u(z, {
|
|
2246
2557
|
icon: e.icon,
|
|
2247
2558
|
title: r(e.title),
|
|
2248
2559
|
testId: e.testId,
|
|
@@ -2251,10 +2562,10 @@ var Ae = ({ manager: t, state: n }) => {
|
|
|
2251
2562
|
}, e.type)) })
|
|
2252
2563
|
})
|
|
2253
2564
|
});
|
|
2254
|
-
},
|
|
2565
|
+
}, Ue = ({ manager: t, direction: r }) => {
|
|
2255
2566
|
let [i, a] = l(null), [s, c] = l(!1), { t: d } = e();
|
|
2256
2567
|
n(() => {
|
|
2257
|
-
import("./flip-animation-
|
|
2568
|
+
import("./flip-animation-CviBXTS-.js").then((e) => {
|
|
2258
2569
|
a(e.default);
|
|
2259
2570
|
});
|
|
2260
2571
|
}, []);
|
|
@@ -2283,4 +2594,4 @@ var Ae = ({ manager: t, state: n }) => {
|
|
|
2283
2594
|
}) : null;
|
|
2284
2595
|
};
|
|
2285
2596
|
//#endregion
|
|
2286
|
-
export {
|
|
2597
|
+
export { I as _, ye as a, G as c, H as d, V as f, L as g, le as h, Le as i, W as l, R as m, He as n, Z as o, z as p, ze as r, q as s, Ue as t, U as u, A as v, ee as y };
|