@incodetech/web 0.0.0-dev-20260422-96fafd7 → 0.0.0-dev-20260422-0e68af3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{addressAutocomplete-DgObOJ6o.js → addressAutocomplete-BCTe9jwj.js} +4 -4
- 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/{bottomSheet-D7Bcy6_9.js → bottomSheet-CGGwLnNk.js} +1 -1
- package/dist/consent/consent.es.js +5 -5
- package/dist/cross-document-data-match/cross-document-data-match.es.js +2 -2
- package/dist/curp-validation/curp-validation.es.js +7 -7
- package/dist/{customFields-DVVoO-1L.js → customFields-b8kG_fbg.js} +5 -5
- package/dist/dateInputComposed-Cl0jXQeM.js +1 -0
- package/dist/{documentCapture-DNi_TybD.js → documentCapture-BU03c8_o.js} +6 -6
- package/dist/dropdownComposed-CqGD8hIq.js +1 -0
- package/dist/{dropdownComposed-D33V63q7.js → dropdownComposed-DU_6BWvm.js} +79 -74
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-DV8eZFTA.js → ekybModule-CzoycvEv.js} +53 -47
- package/dist/ekybModule-DZaBZRFw.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-DjNlvez8.js +2 -0
- package/dist/{ekycModule-Dyvfm_Jh.js → ekycModule-Gc2iyiED.js} +89 -84
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-BY_fGpGt.js → electronic-signature-BKwtUgEE.js} +4 -4
- package/dist/email/email.es.js +5 -5
- package/dist/{extensibility-65EUn2O_.js → extensibility-DB2FMvgl.js} +25 -25
- package/dist/extensibility.es.js +14 -14
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-DebacUAf.js +2 -0
- package/dist/{faceMatch-BJCmMX5x.js → faceMatch-h23LiePK.js} +4 -4
- package/dist/flow/flow.es.js +6 -6
- package/dist/{formField-CXgBxbyE.js → formField-ClatQUGJ.js} +1 -1
- package/dist/geolocation/geolocation.es.js +4 -4
- package/dist/governmentValidation/governmentValidation.es.js +4 -4
- package/dist/{homeScreen-DUHiJ4GS.js → homeScreen-Bjhy5dd2.js} +26 -18
- package/dist/{i18n-ntrVdqVv.js → i18n-D6pCC7RL.js} +1 -1
- package/dist/id/id.es.js +10 -10
- package/dist/identity-reuse/identity-reuse.es.js +3 -3
- package/dist/{incodeComponent-pGWsrcca.js → incodeComponent-BWl9Ashv.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{mandatoryConsent-BrkTmUBW.js → mandatoryConsent-CDozBEhf.js} +5 -5
- package/dist/{modal-Cqqyt9fy.js → modal-Bf_qRThy.js} +1 -1
- package/dist/optionAccessibleLabel-BReW7dz0.js +7 -0
- package/dist/{otpInput-qhbE2Zg-.js → otpInput-DxAGjXgh.js} +1 -1
- package/dist/phone/phone.es.js +5 -5
- package/dist/{phoneInputComposed-DpKgzd72.js → phoneInputComposed-DCDOTz3f.js} +3 -2
- package/dist/{processing-CjYwR8Kd.js → processing-xR2O8tqC.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{redirectToMobile-DmpYpZzP.js → redirectToMobile-DxQlNvpk.js} +5 -5
- package/dist/{richText-BNC8z_ah.js → richText-DPdexfgN.js} +1 -1
- package/dist/selfie/selfie.es.js +6 -6
- package/dist/{setup-I7T65zl7.js → setup-ChZeqzsD.js} +1 -1
- package/dist/signature/signature.es.js +4 -4
- package/dist/{transitionSpinner-tJrx3vrs.js → transitionSpinner-sh3UfuCy.js} +1 -1
- package/dist/{tutorial-DcOKYchw.js → tutorial-BOtBSUmR.js} +7 -7
- package/dist/types/extensibility.d.ts +1 -0
- package/dist/{useModuleLoader-DmFt81vp.js → useModuleLoader-z5MVR8Ii.js} +10 -10
- package/dist/{verificationResult-D7grOTth.js → verificationResult-BHMdAEeF.js} +1 -1
- package/dist/watchlist/watchlist.es.js +4 -4
- package/dist/workflow/workflow.es.js +6 -6
- package/package.json +2 -2
- package/dist/dateInputComposed-CUH00OCL.js +0 -1
- package/dist/dropdownComposed-PPsdKIj2.js +0 -1
- package/dist/ekybModule-DLvvDnRl.js +0 -2
- package/dist/ekycModule-CPcoffMp.js +0 -2
- package/dist/faceMatch-BnEBg97b.js +0 -2
- /package/dist/{aligndevicelottie-BhvH4U01.js → aligndevicelottie-DUyHV4eP.js} +0 -0
- /package/dist/{back-horizontal-hint-BEQsJQaS.js → back-horizontal-hint-ZM3I2Su5.js} +0 -0
- /package/dist/{back-tutorial-C4HG-Te-.js → back-tutorial-DhUXausb.js} +0 -0
- /package/dist/{back-vertical-hint-CSLZhIcN.js → back-vertical-hint-BoFBMTQl.js} +0 -0
- /package/dist/{backdevicelottie-D6IX_UYC.js → backdevicelottie-2h0aSor1.js} +0 -0
- /package/dist/{blurdevicelottie-BEU1SUJQ.js → blurdevicelottie-DZ0ZYTB5.js} +0 -0
- /package/dist/{browser-ponyfill-DRrmY6DO.js → browser-ponyfill-Dqca0y49.js} +0 -0
- /package/dist/{dateInputComposed-CvsKvXv5.js → dateInputComposed-CWYfz2YB.js} +0 -0
- /package/dist/{defineProperty-DB5OmvER.js → defineProperty-xczUyn-m.js} +0 -0
- /package/dist/{flip-animation-CRXEefAE.js → flip-animation-D88PnoMb.js} +0 -0
- /package/dist/{front-horizontal-hint-D0Lp8Tc3.js → front-horizontal-hint-BA7UvUjV.js} +0 -0
- /package/dist/{front-vertical-hint-DJQMKe8l.js → front-vertical-hint-RvpOhnkZ.js} +0 -0
- /package/dist/{frontdevicelottie-CL7-XewR.js → frontdevicelottie-J_Zc1ljM.js} +0 -0
- /package/dist/{glaredevicelottie-BDSlWlxa.js → glaredevicelottie-Didb-aCx.js} +0 -0
- /package/dist/{id-laser-h-CDewGAXj.js → id-laser-h-BCzdFxdH.js} +0 -0
- /package/dist/{id-laser-v-B-1IpVK0.js → id-laser-v-CJRj1dvt.js} +0 -0
- /package/dist/{id-tutorial-BOXQEtNg.js → id-tutorial-BhI3Igyz.js} +0 -0
- /package/dist/{incodeModule-BH9gV7jI.js → incodeModule-DcwjDRyJ.js} +0 -0
- /package/dist/{modal.hooks-B9B0KVgR.js → modal.hooks-CBKrvoyb.js} +0 -0
- /package/dist/{numberedStep-CSQrc-lB.js → numberedStep-PCuBJ6Se.js} +0 -0
- /package/dist/{passport-horizontal-hint-jl1fWxGQ.js → passport-horizontal-hint-W3GW8sLP.js} +0 -0
- /package/dist/{passport-tutorial-CEKyiZFm.js → passport-tutorial-DdIJCsab.js} +0 -0
- /package/dist/{passport-vertical-hint-BjR1TP5l.js → passport-vertical-hint-CrYbjg-J.js} +0 -0
- /package/dist/{phoneInput-C6mELMZ6.js → phoneInput-BAp0yrwm.js} +0 -0
- /package/dist/{radioButtonComposed-Db8-Oprl.js → radioButtonComposed-DiEo4Uj1.js} +0 -0
- /package/dist/{selfieTutorial-CZV5edrl.js → selfieTutorial-DewP31sm.js} +0 -0
- /package/dist/{statusPage-BlENJN0V.js → statusPage-DaLOUtil.js} +0 -0
- /package/dist/{tabs-DnpffRKI.js → tabs-BMnWocEX.js} +0 -0
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-D6pCC7RL.js";
|
|
2
2
|
import { S as t, _ as n, d as r, h as i, l as a, p as o, v as s } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { i as c, o as l, t as u } from "./incodeComponent-
|
|
3
|
+
import { i as c, o as l, t as u } from "./incodeComponent-BWl9Ashv.js";
|
|
4
4
|
import { t as d } from "./page-D5Mt-0zn.js";
|
|
5
5
|
import { t as f } from "./spinner-DyRQfsz_.js";
|
|
6
6
|
import { t as p } from "./button-4-ToV5B_.js";
|
|
7
|
-
import { t as m } from "./verificationResult-
|
|
7
|
+
import { t as m } from "./verificationResult-BHMdAEeF.js";
|
|
8
8
|
import { t as h } from "./inputComposed-BXGBX7oR.js";
|
|
9
|
-
import { n as g, t as _ } from "./formField-
|
|
10
|
-
import { t as v } from "./dropdownComposed-
|
|
11
|
-
import { t as y } from "./
|
|
12
|
-
import { t as b } from "./
|
|
13
|
-
import {
|
|
9
|
+
import { n as g, t as _ } from "./formField-ClatQUGJ.js";
|
|
10
|
+
import { t as v } from "./dropdownComposed-DU_6BWvm.js";
|
|
11
|
+
import { t as y } from "./optionAccessibleLabel-BReW7dz0.js";
|
|
12
|
+
import { t as b } from "./incodeModule-DcwjDRyJ.js";
|
|
13
|
+
import { t as x } from "./addressAutocomplete-BCTe9jwj.js";
|
|
14
|
+
import { DEV_ONLY_COUNTRIES as S, SUPPORTED_COUNTRIES as C, computeEkybDisplayErrors as w, createEkybManager as T } from "@incodetech/core/ekyb";
|
|
14
15
|
//#region src/modules/ekyb/countrySelector.tsx
|
|
15
|
-
function
|
|
16
|
+
function E(e) {
|
|
16
17
|
return [...e.toUpperCase()].map((e) => String.fromCodePoint(127462 + e.charCodeAt(0) - 65)).join("");
|
|
17
18
|
}
|
|
18
|
-
var
|
|
19
|
+
var D = {
|
|
19
20
|
BR: "Brazil",
|
|
20
21
|
CM: "Cameroon",
|
|
21
22
|
CN: "China",
|
|
@@ -30,20 +31,21 @@ var E = {
|
|
|
30
31
|
GB: "United Kingdom",
|
|
31
32
|
US: "USA"
|
|
32
33
|
};
|
|
33
|
-
function
|
|
34
|
-
let t =
|
|
34
|
+
function O(e) {
|
|
35
|
+
let t = D[e] ?? e;
|
|
35
36
|
return {
|
|
36
37
|
value: e,
|
|
37
|
-
label: `${
|
|
38
|
+
label: `${E(e)} ${t}`,
|
|
39
|
+
ariaLabel: t
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
|
-
function
|
|
42
|
+
function k() {
|
|
41
43
|
if (typeof window > "u") return !1;
|
|
42
44
|
let { hostname: e } = window.location;
|
|
43
45
|
return e === "localhost" || e.includes("stage") || e.includes("demo");
|
|
44
46
|
}
|
|
45
|
-
var
|
|
46
|
-
let { t: i } = e(), a = r(() => (
|
|
47
|
+
var A = ({ value: t, onChange: n }) => {
|
|
48
|
+
let { t: i } = e(), a = r(() => (k() ? [...C, ...S] : [...C]).map(O).sort((e, t) => e.label.localeCompare(t.label)), []);
|
|
47
49
|
return /* @__PURE__ */ s("div", {
|
|
48
50
|
className: "IncodeEkybCountrySelector",
|
|
49
51
|
children: /* @__PURE__ */ s(v, {
|
|
@@ -55,7 +57,7 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
55
57
|
"data-testid": "ekyb-country-selector"
|
|
56
58
|
})
|
|
57
59
|
});
|
|
58
|
-
},
|
|
60
|
+
}, j = ({ field: t, value: n, error: r, errorParams: i, country: a, onChange: o, onBlur: c }) => {
|
|
59
61
|
let { t: l } = e(), u = !t.required, d = l(t.label);
|
|
60
62
|
if (t.type === "dropdown") {
|
|
61
63
|
let e = u ? `${d} (${l("common.optional")})` : d;
|
|
@@ -64,10 +66,14 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
64
66
|
label: e,
|
|
65
67
|
placeholder: t.placeholder ? l(t.placeholder) : void 0,
|
|
66
68
|
value: n,
|
|
67
|
-
options: (t.options ?? []).map((e) =>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
options: (t.options ?? []).map((e) => {
|
|
70
|
+
let t = l(e.label);
|
|
71
|
+
return {
|
|
72
|
+
...e,
|
|
73
|
+
label: t,
|
|
74
|
+
ariaLabel: y(t)
|
|
75
|
+
};
|
|
76
|
+
}),
|
|
71
77
|
error: g(l, r, i),
|
|
72
78
|
searchable: !0,
|
|
73
79
|
onChange: (e) => o(t.name, e),
|
|
@@ -87,7 +93,7 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
87
93
|
onChange: o,
|
|
88
94
|
onBlur: c
|
|
89
95
|
});
|
|
90
|
-
},
|
|
96
|
+
}, M = ({ ubos: t, errors: n, errorParams: r, canAddUbo: i, onSetField: a, onBlur: o, onAdd: c, onRemove: l }) => {
|
|
91
97
|
let { t: u } = e(), d = (e) => g(u, n[e], r[e]);
|
|
92
98
|
return t.length === 0 ? null : /* @__PURE__ */ s("div", {
|
|
93
99
|
className: "IncodeEkybUbos",
|
|
@@ -132,8 +138,8 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
132
138
|
children: u("ekyb.addAnotherUbo")
|
|
133
139
|
})]
|
|
134
140
|
});
|
|
135
|
-
},
|
|
136
|
-
let { t: i } = e(), [a, o] = l(() =>
|
|
141
|
+
}, N = ({ config: t, onFinish: r }) => {
|
|
142
|
+
let { t: i } = e(), [a, o] = l(() => T({ config: t }));
|
|
137
143
|
return n(() => {
|
|
138
144
|
(a.status === "finished" || a.status === "closed") && r?.();
|
|
139
145
|
}, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ s(m, {
|
|
@@ -146,32 +152,32 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
146
152
|
}) }) : a.status === "success" ? /* @__PURE__ */ s(m, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ s(m, {
|
|
147
153
|
status: "failure",
|
|
148
154
|
onRetry: () => o.retry()
|
|
149
|
-
}) : a.status === "form" ? /* @__PURE__ */ s(
|
|
155
|
+
}) : a.status === "form" ? /* @__PURE__ */ s(I, {
|
|
150
156
|
state: a,
|
|
151
157
|
manager: o
|
|
152
158
|
}) : null;
|
|
153
|
-
},
|
|
159
|
+
}, P = new Set([
|
|
154
160
|
"street",
|
|
155
161
|
"houseNo",
|
|
156
162
|
"addressLine2",
|
|
157
163
|
"city",
|
|
158
164
|
"state",
|
|
159
165
|
"postalCode"
|
|
160
|
-
]),
|
|
166
|
+
]), F = [
|
|
161
167
|
"street",
|
|
162
168
|
"city",
|
|
163
169
|
"state",
|
|
164
170
|
"postalCode",
|
|
165
171
|
"houseNo"
|
|
166
|
-
],
|
|
167
|
-
let { country: f, fields: m, values: h, errors: g, isValid: _, ubos: v, canAddUbo: y, addressSuggestions:
|
|
168
|
-
|
|
172
|
+
], I = ({ state: l, manager: u }) => {
|
|
173
|
+
let { country: f, fields: m, values: h, errors: g, isValid: _, ubos: v, canAddUbo: y, addressSuggestions: b, submitAttempted: S } = l, { t: C } = e(), T = a(null), E = a(null), D = a(void 0), O = c(T, m.length), [k, N] = o({}), I = i((e) => {
|
|
174
|
+
N((t) => t[e] ? t : {
|
|
169
175
|
...t,
|
|
170
176
|
[e]: !0
|
|
171
177
|
});
|
|
172
|
-
}, []), { displayErrors: L, errorParams: R } = r(() =>
|
|
178
|
+
}, []), { displayErrors: L, errorParams: R } = r(() => w(g, k, S, f, m), [
|
|
173
179
|
g,
|
|
174
|
-
|
|
180
|
+
k,
|
|
175
181
|
S,
|
|
176
182
|
f,
|
|
177
183
|
m
|
|
@@ -180,10 +186,10 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
180
186
|
}, [u, I]), V = i((e, t, n) => {
|
|
181
187
|
I(`ubo-${e}-${t}`), u.setUboField(e, t, n);
|
|
182
188
|
}, [u, I]), H = i((e) => {
|
|
183
|
-
for (let e of
|
|
189
|
+
for (let e of F) I(e);
|
|
184
190
|
u.selectAddress(e);
|
|
185
191
|
}, [u, I]), U = i((e) => {
|
|
186
|
-
u.removeUbo(e),
|
|
192
|
+
u.removeUbo(e), N((t) => {
|
|
187
193
|
let n = {};
|
|
188
194
|
for (let [r, i] of Object.entries(t)) {
|
|
189
195
|
let t = r.match(/^ubo-(\d+)-(name|surname)$/);
|
|
@@ -211,19 +217,19 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
211
217
|
});
|
|
212
218
|
return () => cancelAnimationFrame(n);
|
|
213
219
|
}, [L.postalCode]);
|
|
214
|
-
let W = m.filter((e) => !
|
|
220
|
+
let W = m.filter((e) => !P.has(e.name)), G = m.filter((e) => P.has(e.name));
|
|
215
221
|
return /* @__PURE__ */ s(d, {
|
|
216
222
|
className: `IncodeEkybPage${O ? " IncodeEkybPageScrollable" : ""}`,
|
|
217
|
-
title:
|
|
223
|
+
title: C("ekyb.title"),
|
|
218
224
|
children: [/* @__PURE__ */ s("div", {
|
|
219
225
|
ref: T,
|
|
220
226
|
className: "IncodeEkybForm",
|
|
221
227
|
children: [
|
|
222
|
-
/* @__PURE__ */ s(
|
|
228
|
+
/* @__PURE__ */ s(A, {
|
|
223
229
|
value: f,
|
|
224
230
|
onChange: (e) => u.setCountry(e)
|
|
225
231
|
}),
|
|
226
|
-
W.map((e) => /* @__PURE__ */ s(
|
|
232
|
+
W.map((e) => /* @__PURE__ */ s(j, {
|
|
227
233
|
field: e,
|
|
228
234
|
value: h[e.name] ?? "",
|
|
229
235
|
error: L[e.name],
|
|
@@ -232,7 +238,7 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
232
238
|
onChange: B,
|
|
233
239
|
onBlur: z
|
|
234
240
|
}, e.name)),
|
|
235
|
-
/* @__PURE__ */ s(
|
|
241
|
+
/* @__PURE__ */ s(M, {
|
|
236
242
|
ubos: v,
|
|
237
243
|
errors: L,
|
|
238
244
|
errorParams: R,
|
|
@@ -244,13 +250,13 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
244
250
|
}),
|
|
245
251
|
G.length > 0 && /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s("h3", {
|
|
246
252
|
className: "IncodeEkybSectionHeader",
|
|
247
|
-
children:
|
|
248
|
-
}), G.map((e) => e.name === "street" ? /* @__PURE__ */ s(
|
|
253
|
+
children: C("ekyb.addressDetails")
|
|
254
|
+
}), G.map((e) => e.name === "street" ? /* @__PURE__ */ s(x, {
|
|
249
255
|
label: e.label,
|
|
250
256
|
value: h.street ?? "",
|
|
251
257
|
error: L.street,
|
|
252
258
|
errorParams: R.street,
|
|
253
|
-
suggestions:
|
|
259
|
+
suggestions: b,
|
|
254
260
|
optional: !e.required,
|
|
255
261
|
onChange: (e) => B("street", e),
|
|
256
262
|
onSearch: (e) => u.searchAddress(e),
|
|
@@ -258,7 +264,7 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
258
264
|
onBlur: () => z("street")
|
|
259
265
|
}, e.name) : /* @__PURE__ */ s("div", {
|
|
260
266
|
ref: e.name === "postalCode" ? E : void 0,
|
|
261
|
-
children: /* @__PURE__ */ s(
|
|
267
|
+
children: /* @__PURE__ */ s(j, {
|
|
262
268
|
field: e,
|
|
263
269
|
value: h[e.name] ?? "",
|
|
264
270
|
error: L[e.name],
|
|
@@ -275,14 +281,14 @@ var k = ({ value: t, onChange: n }) => {
|
|
|
275
281
|
onClick: () => u.submit(),
|
|
276
282
|
disabled: !_,
|
|
277
283
|
"data-testid": "ekyb-submit",
|
|
278
|
-
children:
|
|
284
|
+
children: C("ekyb.continue")
|
|
279
285
|
})
|
|
280
286
|
})]
|
|
281
287
|
});
|
|
282
|
-
},
|
|
288
|
+
}, L = ({ config: e, onFinish: t }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(N, {
|
|
283
289
|
config: e,
|
|
284
290
|
onFinish: t
|
|
285
291
|
}) : null });
|
|
286
|
-
|
|
292
|
+
b(L, "incode-ekyb");
|
|
287
293
|
//#endregion
|
|
288
|
-
export {
|
|
294
|
+
export { L as t };
|
package/dist/ekyc/ekyc.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../ekycModule-
|
|
1
|
+
import { t as e } from "../ekycModule-Gc2iyiED.js";
|
|
2
2
|
export { e as EkycModule };
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-D6pCC7RL.js";
|
|
2
2
|
import { _ as t, d as n, h as r, l as i, p as a, v as o } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { i as s, o as c, t as l } from "./incodeComponent-
|
|
3
|
+
import { i as s, o as c, t as l } from "./incodeComponent-BWl9Ashv.js";
|
|
4
4
|
import { t as u } from "./page-D5Mt-0zn.js";
|
|
5
5
|
import { t as d } from "./spinner-DyRQfsz_.js";
|
|
6
6
|
import { t as f } from "./button-4-ToV5B_.js";
|
|
7
|
-
import { t as p } from "./verificationResult-
|
|
8
|
-
import { n as m, t as h } from "./formField-
|
|
9
|
-
import { t as g } from "./phoneInputComposed-
|
|
10
|
-
import { t as _ } from "./dropdownComposed-
|
|
11
|
-
import { t as v } from "./
|
|
12
|
-
import { t as y } from "./
|
|
13
|
-
import { t as b } from "./
|
|
14
|
-
import { t as x } from "./
|
|
15
|
-
import {
|
|
7
|
+
import { t as p } from "./verificationResult-BHMdAEeF.js";
|
|
8
|
+
import { n as m, t as h } from "./formField-ClatQUGJ.js";
|
|
9
|
+
import { t as g } from "./phoneInputComposed-DCDOTz3f.js";
|
|
10
|
+
import { t as _ } from "./dropdownComposed-DU_6BWvm.js";
|
|
11
|
+
import { t as v } from "./optionAccessibleLabel-BReW7dz0.js";
|
|
12
|
+
import { t as y } from "./dateInputComposed-CWYfz2YB.js";
|
|
13
|
+
import { t as b } from "./radioButtonComposed-DiEo4Uj1.js";
|
|
14
|
+
import { t as x } from "./incodeModule-DcwjDRyJ.js";
|
|
15
|
+
import { t as S } from "./addressAutocomplete-BCTe9jwj.js";
|
|
16
|
+
import { computeEkycDisplayErrors as C, createEkycManager as w } from "@incodetech/core/ekyc";
|
|
16
17
|
//#region src/modules/ekyc/ekycModule.tsx
|
|
17
|
-
var
|
|
18
|
-
let { t: i } = e(), [a, s] = c(() =>
|
|
18
|
+
var T = ({ config: n, onFinish: r }) => {
|
|
19
|
+
let { t: i } = e(), [a, s] = c(() => w({ config: n }));
|
|
19
20
|
return t(() => {
|
|
20
21
|
(a.status === "finished" || a.status === "closed") && r?.();
|
|
21
22
|
}, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ o(p, {
|
|
@@ -37,126 +38,130 @@ var w = ({ config: n, onFinish: r }) => {
|
|
|
37
38
|
failureTitle: i("verification.noFormFields"),
|
|
38
39
|
onSkip: () => s.close(),
|
|
39
40
|
skipLabel: i("common.close")
|
|
40
|
-
}) : a.status === "form" ? /* @__PURE__ */ o(
|
|
41
|
+
}) : a.status === "form" ? /* @__PURE__ */ o(D, {
|
|
41
42
|
state: a,
|
|
42
43
|
manager: s
|
|
43
44
|
}) : null;
|
|
44
|
-
},
|
|
45
|
+
}, E = [
|
|
45
46
|
"street",
|
|
46
47
|
"city",
|
|
47
48
|
"state",
|
|
48
49
|
"postalCode",
|
|
49
50
|
"houseNo"
|
|
50
|
-
],
|
|
51
|
-
let { fields: d, values: p, errors:
|
|
52
|
-
|
|
51
|
+
], D = ({ state: c, manager: l }) => {
|
|
52
|
+
let { fields: d, values: p, errors: x, isValid: w, addressSuggestions: T, prefilled: D, hideEmail: O, fieldsCountry: k, submitError: A, submitAttempted: j } = c, { t: M } = e(), N = i(null), P = i(null), F = i(void 0), I = s(N, d.length), [L, R] = a({}), z = r((e) => {
|
|
53
|
+
R((t) => t[e] ? t : {
|
|
53
54
|
...t,
|
|
54
55
|
[e]: !0
|
|
55
56
|
});
|
|
56
|
-
}, []), { displayErrors:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
}, []), { displayErrors: B, errorParams: V } = n(() => C(x, L, j, k, d), [
|
|
58
|
+
x,
|
|
59
|
+
L,
|
|
60
|
+
j,
|
|
61
|
+
k,
|
|
61
62
|
d
|
|
62
|
-
]),
|
|
63
|
-
|
|
64
|
-
}, [l,
|
|
65
|
-
for (let e of
|
|
63
|
+
]), H = r((e) => z(e), [z]), U = r((e, t) => {
|
|
64
|
+
z(e), l.setField(e, t);
|
|
65
|
+
}, [l, z]), W = r((e) => {
|
|
66
|
+
for (let e of E) z(e);
|
|
66
67
|
l.selectAddress(e);
|
|
67
|
-
}, [l,
|
|
68
|
+
}, [l, z]);
|
|
68
69
|
t(() => {
|
|
69
|
-
let e =
|
|
70
|
-
if (
|
|
70
|
+
let e = B.postalCode, t = F.current;
|
|
71
|
+
if (F.current = e, !e || t === e) return;
|
|
71
72
|
let n = requestAnimationFrame(() => {
|
|
72
|
-
let e =
|
|
73
|
+
let e = P.current;
|
|
73
74
|
e && (e.querySelector("#postalCode-error") ?? e).scrollIntoView({
|
|
74
75
|
behavior: "smooth",
|
|
75
76
|
block: "nearest"
|
|
76
77
|
});
|
|
77
78
|
});
|
|
78
79
|
return () => cancelAnimationFrame(n);
|
|
79
|
-
}, [
|
|
80
|
-
let
|
|
80
|
+
}, [B.postalCode]);
|
|
81
|
+
let G = (e, t) => m(M, t, V[e]), K;
|
|
81
82
|
return /* @__PURE__ */ o(u, {
|
|
82
|
-
className: `IncodeEkycPage${
|
|
83
|
-
title:
|
|
83
|
+
className: `IncodeEkycPage${I ? " IncodeEkycPageScrollable" : ""}`,
|
|
84
|
+
title: M("verification.title"),
|
|
84
85
|
children: [/* @__PURE__ */ o("div", {
|
|
85
|
-
ref:
|
|
86
|
+
ref: N,
|
|
86
87
|
className: "IncodeEkycForm",
|
|
87
88
|
children: d.map((e) => {
|
|
88
|
-
if (e.name === "email" &&
|
|
89
|
+
if (e.name === "email" && O) return null;
|
|
89
90
|
let t = null;
|
|
90
|
-
e.section && e.section !==
|
|
91
|
+
e.section && e.section !== K && (K = e.section, t = /* @__PURE__ */ o("h3", {
|
|
91
92
|
className: "IncodeEkycSectionHeader",
|
|
92
|
-
children:
|
|
93
|
+
children: M({
|
|
93
94
|
address: "verification.labels.addressDetailsSection",
|
|
94
95
|
driverLicense: "verification.labels.dlDetailsSection"
|
|
95
96
|
}[e.section] ?? e.section)
|
|
96
97
|
}));
|
|
97
|
-
let n = e.readonly ||
|
|
98
|
-
if (e.name === "street" && e.section === "address") return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(
|
|
98
|
+
let n = e.readonly || D[e.name], r = p[e.name] ?? "", i = B[e.name];
|
|
99
|
+
if (e.name === "street" && e.section === "address") return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(S, {
|
|
99
100
|
label: e.label,
|
|
100
101
|
value: r,
|
|
101
102
|
error: i,
|
|
102
|
-
errorParams:
|
|
103
|
-
suggestions:
|
|
103
|
+
errorParams: V[e.name],
|
|
104
|
+
suggestions: T,
|
|
104
105
|
readonly: n,
|
|
105
106
|
optional: !e.required,
|
|
106
|
-
onChange: (e) =>
|
|
107
|
+
onChange: (e) => U("street", e),
|
|
107
108
|
onSearch: (e) => l.searchAddress(e),
|
|
108
|
-
onSelect:
|
|
109
|
-
onBlur: () =>
|
|
109
|
+
onSelect: W,
|
|
110
|
+
onBlur: () => H("street")
|
|
110
111
|
})] }, e.name);
|
|
111
112
|
if (e.type === "dropdown") {
|
|
112
|
-
let a =
|
|
113
|
+
let a = M(e.label);
|
|
113
114
|
return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(_, {
|
|
114
115
|
id: `ekyc-${e.name}`,
|
|
115
116
|
label: a,
|
|
116
|
-
placeholder: e.placeholder ?
|
|
117
|
+
placeholder: e.placeholder ? M(e.placeholder) : void 0,
|
|
117
118
|
value: r,
|
|
118
|
-
options: (e.options ?? []).map((e) =>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
options: (e.options ?? []).map((e) => {
|
|
120
|
+
let t = M(e.label);
|
|
121
|
+
return {
|
|
122
|
+
...e,
|
|
123
|
+
label: t,
|
|
124
|
+
ariaLabel: v(t)
|
|
125
|
+
};
|
|
126
|
+
}),
|
|
127
|
+
error: G(e.name, i),
|
|
123
128
|
disabled: n,
|
|
124
129
|
searchable: !0,
|
|
125
|
-
onChange: (t) =>
|
|
126
|
-
onBlur: () =>
|
|
130
|
+
onChange: (t) => U(e.name, t),
|
|
131
|
+
onBlur: () => H(e.name),
|
|
127
132
|
"data-testid": `ekyc-field-${e.name}`
|
|
128
133
|
})] }, e.name);
|
|
129
134
|
}
|
|
130
135
|
if (e.type === "date") {
|
|
131
|
-
let a =
|
|
132
|
-
return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(
|
|
136
|
+
let a = M(e.label);
|
|
137
|
+
return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(y, {
|
|
133
138
|
id: `ekyc-${e.name}`,
|
|
134
139
|
label: a,
|
|
135
140
|
value: r,
|
|
136
|
-
error:
|
|
141
|
+
error: G(e.name, i),
|
|
137
142
|
disabled: n,
|
|
138
143
|
onInput: (t) => {
|
|
139
144
|
let n = t.target;
|
|
140
|
-
|
|
145
|
+
U(e.name, n.value);
|
|
141
146
|
},
|
|
142
|
-
onBlur: () =>
|
|
147
|
+
onBlur: () => H(e.name),
|
|
143
148
|
"data-testid": `ekyc-field-${e.name}`
|
|
144
149
|
})] }, e.name);
|
|
145
150
|
}
|
|
146
151
|
if (e.type === "phone") {
|
|
147
|
-
let a =
|
|
152
|
+
let a = M(e.label);
|
|
148
153
|
return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(g, {
|
|
149
154
|
id: `ekyc-${e.name}`,
|
|
150
155
|
label: a,
|
|
151
|
-
countryCode:
|
|
156
|
+
countryCode: k,
|
|
152
157
|
value: r,
|
|
153
158
|
placeholder: e.placeholder,
|
|
154
|
-
error:
|
|
159
|
+
error: G(e.name, i),
|
|
155
160
|
disabled: n,
|
|
156
161
|
disableCountrySelector: e.disableCountrySelector,
|
|
157
162
|
required: !1,
|
|
158
|
-
onChange: (t) =>
|
|
159
|
-
onBlur: () =>
|
|
163
|
+
onChange: (t) => U(e.name, t),
|
|
164
|
+
onBlur: () => H(e.name),
|
|
160
165
|
"data-testid": `ekyc-field-${e.name}`
|
|
161
166
|
})] }, e.name);
|
|
162
167
|
}
|
|
@@ -170,18 +175,18 @@ var w = ({ config: n, onFinish: r }) => {
|
|
|
170
175
|
/* @__PURE__ */ o("span", {
|
|
171
176
|
id: a,
|
|
172
177
|
className: "IncodeEkycRadioLabel",
|
|
173
|
-
children:
|
|
178
|
+
children: M(e.label)
|
|
174
179
|
}),
|
|
175
180
|
/* @__PURE__ */ o("div", {
|
|
176
181
|
className: "IncodeEkycRadioOptions",
|
|
177
|
-
children: e.options?.map((t) => /* @__PURE__ */ o(
|
|
182
|
+
children: e.options?.map((t) => /* @__PURE__ */ o(b, {
|
|
178
183
|
id: `ekyc-${e.name}-${t.value}`,
|
|
179
184
|
name: e.name,
|
|
180
|
-
label:
|
|
185
|
+
label: M(t.label),
|
|
181
186
|
checked: r === t.value,
|
|
182
187
|
value: t.value,
|
|
183
|
-
onChange: () =>
|
|
184
|
-
onBlur: () =>
|
|
188
|
+
onChange: () => U(e.name, t.value),
|
|
189
|
+
onBlur: () => H(e.name),
|
|
185
190
|
disabled: n,
|
|
186
191
|
"aria-describedby": i ? s : void 0,
|
|
187
192
|
"aria-invalid": !!i,
|
|
@@ -192,20 +197,20 @@ var w = ({ config: n, onFinish: r }) => {
|
|
|
192
197
|
id: s,
|
|
193
198
|
className: "IncodeEkycFieldError",
|
|
194
199
|
role: "alert",
|
|
195
|
-
children:
|
|
200
|
+
children: G(e.name, i)
|
|
196
201
|
})
|
|
197
202
|
]
|
|
198
203
|
})] }, e.name);
|
|
199
204
|
}
|
|
200
205
|
return /* @__PURE__ */ o("div", {
|
|
201
|
-
ref: e.name === "postalCode" ?
|
|
206
|
+
ref: e.name === "postalCode" ? P : void 0,
|
|
202
207
|
children: [t, /* @__PURE__ */ o(h, {
|
|
203
208
|
name: e.name,
|
|
204
209
|
label: e.label,
|
|
205
210
|
displayLabel: e.displayLabel,
|
|
206
211
|
value: r,
|
|
207
212
|
error: i,
|
|
208
|
-
errorParams:
|
|
213
|
+
errorParams: V[e.name],
|
|
209
214
|
type: e.type,
|
|
210
215
|
placeholder: e.placeholder,
|
|
211
216
|
placeholderParams: e.placeholderParams,
|
|
@@ -213,38 +218,38 @@ var w = ({ config: n, onFinish: r }) => {
|
|
|
213
218
|
optional: e.optional,
|
|
214
219
|
readonly: n,
|
|
215
220
|
maxLength: e.maxLength,
|
|
216
|
-
onChange:
|
|
217
|
-
onBlur:
|
|
221
|
+
onChange: U,
|
|
222
|
+
onBlur: H
|
|
218
223
|
})]
|
|
219
224
|
}, e.name);
|
|
220
225
|
})
|
|
221
226
|
}), /* @__PURE__ */ o("div", {
|
|
222
227
|
className: "IncodeEkycFooter",
|
|
223
228
|
children: [
|
|
224
|
-
|
|
229
|
+
A && /* @__PURE__ */ o("p", {
|
|
225
230
|
className: "IncodeEkycSubmitError",
|
|
226
231
|
role: "alert",
|
|
227
|
-
children:
|
|
232
|
+
children: M(A)
|
|
228
233
|
}),
|
|
229
234
|
/* @__PURE__ */ o(f, {
|
|
230
235
|
onClick: () => l.submit(),
|
|
231
|
-
disabled: !
|
|
236
|
+
disabled: !w,
|
|
232
237
|
"data-testid": "ekyc-submit",
|
|
233
|
-
children:
|
|
238
|
+
children: M("common.continue")
|
|
234
239
|
}),
|
|
235
|
-
|
|
240
|
+
A === "verification.errors.countryNotSupported" && /* @__PURE__ */ o(f, {
|
|
236
241
|
variant: "link",
|
|
237
242
|
onClick: () => l.skip(),
|
|
238
243
|
"data-testid": "ekyc-skip",
|
|
239
|
-
children:
|
|
244
|
+
children: M("verification.labels.skip")
|
|
240
245
|
})
|
|
241
246
|
]
|
|
242
247
|
})]
|
|
243
248
|
});
|
|
244
|
-
},
|
|
249
|
+
}, O = ({ config: e, onFinish: t }) => /* @__PURE__ */ o(l, { children: e ? /* @__PURE__ */ o(T, {
|
|
245
250
|
config: e,
|
|
246
251
|
onFinish: t
|
|
247
252
|
}) : null });
|
|
248
|
-
|
|
253
|
+
x(O, "incode-ekyc");
|
|
249
254
|
//#endregion
|
|
250
|
-
export {
|
|
255
|
+
export { O as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../electronic-signature-
|
|
1
|
+
import { n as e, t } from "../electronic-signature-BKwtUgEE.js";
|
|
2
2
|
export { t as AeSignature, e as ElectronicSignature };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as e, t } from "./i18n-
|
|
1
|
+
import { n as e, t } from "./i18n-D6pCC7RL.js";
|
|
2
2
|
import { _ as n, h as r, l as i, v as a } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o, t as s } from "./incodeComponent-
|
|
3
|
+
import { o, t as s } from "./incodeComponent-BWl9Ashv.js";
|
|
4
4
|
import { t as c } from "./page-D5Mt-0zn.js";
|
|
5
5
|
import { t as l } from "./button-4-ToV5B_.js";
|
|
6
6
|
import { c as u, r as d } from "./icons-GsJu_yZn.js";
|
|
7
7
|
import { t as f } from "./successIcon-C4GI_9SU.js";
|
|
8
|
-
import { t as p } from "./verificationResult-
|
|
8
|
+
import { t as p } from "./verificationResult-BHMdAEeF.js";
|
|
9
9
|
import { t as m } from "./checkbox-CUOVvO_K.js";
|
|
10
|
-
import { t as h } from "./incodeModule-
|
|
10
|
+
import { t as h } from "./incodeModule-DcwjDRyJ.js";
|
|
11
11
|
import { createElectronicSignatureManager as g } from "@incodetech/core/electronic-signature";
|
|
12
12
|
//#region src/modules/electronic-signature/documentIllustration.tsx
|
|
13
13
|
var _ = () => /* @__PURE__ */ a("svg", {
|
package/dist/email/email.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-D6pCC7RL.js";
|
|
2
2
|
import { _ as t, p as n, v as r } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as i, t as a } from "../incodeComponent-
|
|
3
|
+
import { o as i, t as a } from "../incodeComponent-BWl9Ashv.js";
|
|
4
4
|
import { t as o } from "../spacer-DCljE53A.js";
|
|
5
5
|
import { t as s } from "../page-D5Mt-0zn.js";
|
|
6
|
-
import "../extensibility-
|
|
6
|
+
import "../extensibility-DB2FMvgl.js";
|
|
7
7
|
import { t as c } from "../button-4-ToV5B_.js";
|
|
8
8
|
import { t as l } from "../inputComposed-BXGBX7oR.js";
|
|
9
|
-
import { t as u } from "../otpInput-
|
|
10
|
-
import { t as d } from "../incodeModule-
|
|
9
|
+
import { t as u } from "../otpInput-DxAGjXgh.js";
|
|
10
|
+
import { t as d } from "../incodeModule-DcwjDRyJ.js";
|
|
11
11
|
import { createEmailManager as f } from "@incodetech/core/email";
|
|
12
12
|
//#region src/modules/email/emailInput.tsx
|
|
13
13
|
var p = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, m = ({ prefilledEmail: i, emailError: a, label: o, disabled: s = !1, required: c = !1, onEmailChange: u }) => {
|