@incodetech/web 0.0.0-dev-20260313-82ba0ca → 0.0.0-dev-20260313-2675d26
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/ekyb/styles.css +79 -46
- package/dist/{ekybModule-C3Ujm2Yw.js → ekybModule-DY0tTRTg.js} +56 -56
- package/dist/ekyc/styles.css +206 -135
- package/dist/{ekycModule-BSb0VO0K.js → ekycModule-C6M5lSNt.js} +134 -134
- package/dist/flow/flow.es.js +2 -2
- package/dist/flow/styles.css +239 -181
- package/dist/themes/dark.css +11 -0
- package/dist/themes/light.css +11 -0
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { u as t, b as O, I as
|
|
2
|
-
import { createEkycManager as
|
|
3
|
-
import { d as
|
|
1
|
+
import { u as t, b as O, I as U, a as j, S as Q, B as W, r as z } from "./incodeModule-C-yBwl3V.js";
|
|
2
|
+
import { createEkycManager as G } from "@incodetech/core/ekyc";
|
|
3
|
+
import { d as P, A as x, T as V, y as w, q as R } from "./vendor-preact-DP-hbKuj.js";
|
|
4
4
|
import "./uiConfig-B8PUPgHY.js";
|
|
5
5
|
import "@incodetech/core";
|
|
6
|
-
import { V as D, u as
|
|
7
|
-
import { D as
|
|
8
|
-
import { I as
|
|
9
|
-
import { P as
|
|
10
|
-
import { c as
|
|
6
|
+
import { V as D, u as Y, F as J } from "./verificationResult-7tUMuDVH.js";
|
|
7
|
+
import { D as X } from "./dateInputComposed-BzMiH4hO.js";
|
|
8
|
+
import { I as K, D as H } from "./dropdownComposed-DEUeG49j.js";
|
|
9
|
+
import { P as Z } from "./page-DoaUg40Q.js";
|
|
10
|
+
import { c as _, g as L, p as T, A as B } from "./countries-DDCxQhGs.js";
|
|
11
11
|
import { u as ee } from "./useMediaQuery-Rn91JcLv.js";
|
|
12
12
|
const te = ({
|
|
13
13
|
id: f,
|
|
@@ -17,63 +17,63 @@ const te = ({
|
|
|
17
17
|
placeholder: a = "(123) 123-6789",
|
|
18
18
|
error: C,
|
|
19
19
|
disabled: k = !1,
|
|
20
|
-
disableCountrySelector:
|
|
21
|
-
required:
|
|
20
|
+
disableCountrySelector: N = !1,
|
|
21
|
+
required: M,
|
|
22
22
|
onChange: v,
|
|
23
|
-
"data-testid":
|
|
23
|
+
"data-testid": F
|
|
24
24
|
}) => {
|
|
25
|
-
const [p, l] =
|
|
26
|
-
() =>
|
|
27
|
-
value:
|
|
28
|
-
label: `${
|
|
25
|
+
const [p, l] = P(b), [I, E] = P(""), S = x(!1), g = V(
|
|
26
|
+
() => _.map((n) => ({
|
|
27
|
+
value: n.code,
|
|
28
|
+
label: `${n.emoji} ${n.callingCode} ${n.name}`
|
|
29
29
|
})),
|
|
30
30
|
[]
|
|
31
|
-
), i =
|
|
31
|
+
), i = V(
|
|
32
32
|
() => L(p) ?? L("US"),
|
|
33
33
|
[p]
|
|
34
34
|
);
|
|
35
|
-
|
|
36
|
-
if (
|
|
37
|
-
|
|
38
|
-
const
|
|
35
|
+
w(() => {
|
|
36
|
+
if (S.current || !r || !i) return;
|
|
37
|
+
S.current = !0;
|
|
38
|
+
const n = r.startsWith("+") ? r : `+${r}`, o = T(n);
|
|
39
39
|
if (o?.isValid() && o.country) {
|
|
40
40
|
o.country !== p && l(o.country);
|
|
41
|
-
const c = new
|
|
42
|
-
|
|
41
|
+
const c = new B(o.country);
|
|
42
|
+
E(c.input(o.nationalNumber));
|
|
43
43
|
}
|
|
44
44
|
}, [r, i, p]);
|
|
45
|
-
const
|
|
46
|
-
(
|
|
47
|
-
const c = `${o.callingCode}${
|
|
45
|
+
const A = R(
|
|
46
|
+
(n, o) => {
|
|
47
|
+
const c = `${o.callingCode}${n.replace(/\D/g, "")}`;
|
|
48
48
|
try {
|
|
49
|
-
const
|
|
50
|
-
v?.(c,
|
|
49
|
+
const $ = T(c, o.code);
|
|
50
|
+
v?.(c, $?.isValid() ?? !1);
|
|
51
51
|
} catch {
|
|
52
52
|
v?.(c, !1);
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
[v]
|
|
56
|
-
), e =
|
|
57
|
-
(
|
|
58
|
-
l(
|
|
59
|
-
const o = L(
|
|
60
|
-
o && I &&
|
|
56
|
+
), e = R(
|
|
57
|
+
(n) => {
|
|
58
|
+
l(n);
|
|
59
|
+
const o = L(n);
|
|
60
|
+
o && I && A(I, o);
|
|
61
61
|
},
|
|
62
|
-
[I,
|
|
63
|
-
), u =
|
|
64
|
-
(
|
|
65
|
-
const o =
|
|
62
|
+
[I, A]
|
|
63
|
+
), u = R(
|
|
64
|
+
(n) => {
|
|
65
|
+
const o = n.target.value;
|
|
66
66
|
if (!i) {
|
|
67
|
-
|
|
67
|
+
E(o);
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
const c = `${i.callingCode}${o}`,
|
|
71
|
-
|
|
70
|
+
const c = `${i.callingCode}${o}`, s = new B(i.code).input(c).replace(i.callingCode, "").trimStart();
|
|
71
|
+
E(s), A(o, i);
|
|
72
72
|
},
|
|
73
|
-
[i,
|
|
73
|
+
[i, A]
|
|
74
74
|
), y = `${f}-country`, h = `${f}-phone`;
|
|
75
75
|
return /* @__PURE__ */ t(
|
|
76
|
-
|
|
76
|
+
H,
|
|
77
77
|
{
|
|
78
78
|
id: y,
|
|
79
79
|
label: d,
|
|
@@ -81,17 +81,17 @@ const te = ({
|
|
|
81
81
|
value: p,
|
|
82
82
|
onChange: e,
|
|
83
83
|
error: C,
|
|
84
|
-
disabled: k ||
|
|
85
|
-
required:
|
|
84
|
+
disabled: k || N,
|
|
85
|
+
required: M,
|
|
86
86
|
searchable: !0,
|
|
87
87
|
searchPlaceholder: "Search countries...",
|
|
88
|
-
renderSelectedLabel: (
|
|
89
|
-
const o = L(
|
|
90
|
-
return o ? `${o.emoji} ${o.callingCode}` :
|
|
88
|
+
renderSelectedLabel: (n) => {
|
|
89
|
+
const o = L(n.value);
|
|
90
|
+
return o ? `${o.emoji} ${o.callingCode}` : n.label;
|
|
91
91
|
},
|
|
92
92
|
class: "IncodePhoneInputComposed",
|
|
93
93
|
siblingElement: /* @__PURE__ */ t(
|
|
94
|
-
|
|
94
|
+
K,
|
|
95
95
|
{
|
|
96
96
|
id: h,
|
|
97
97
|
type: "tel",
|
|
@@ -102,7 +102,7 @@ const te = ({
|
|
|
102
102
|
disabled: k,
|
|
103
103
|
suppressMessages: !0,
|
|
104
104
|
"aria-label": "Phone number",
|
|
105
|
-
"data-testid":
|
|
105
|
+
"data-testid": F
|
|
106
106
|
}
|
|
107
107
|
)
|
|
108
108
|
}
|
|
@@ -115,31 +115,31 @@ const te = ({
|
|
|
115
115
|
readonly: a,
|
|
116
116
|
optional: C,
|
|
117
117
|
onChange: k,
|
|
118
|
-
onSearch:
|
|
119
|
-
onSelect:
|
|
118
|
+
onSearch: N,
|
|
119
|
+
onSelect: M
|
|
120
120
|
}) => {
|
|
121
|
-
const { t: v } = O(), [
|
|
122
|
-
|
|
123
|
-
function
|
|
124
|
-
|
|
121
|
+
const { t: v } = O(), [F, p] = P(!1), [l, I] = P(!1), [E, S] = P(""), [g, i] = P(-1), A = x(null), e = "ekyc-address-listbox", u = ee(), y = v(f), h = C ? `${y} (${v("common.optional")})` : y;
|
|
122
|
+
w(() => {
|
|
123
|
+
function s(m) {
|
|
124
|
+
A.current && !A.current.contains(m.target) && p(!1);
|
|
125
125
|
}
|
|
126
|
-
return document.addEventListener("mousedown",
|
|
127
|
-
}, []),
|
|
126
|
+
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
127
|
+
}, []), w(() => {
|
|
128
128
|
i(-1);
|
|
129
129
|
}, [r]);
|
|
130
|
-
const
|
|
131
|
-
(
|
|
132
|
-
|
|
130
|
+
const n = R(
|
|
131
|
+
(s) => {
|
|
132
|
+
M(s), p(!1), I(!1), i(-1);
|
|
133
133
|
},
|
|
134
|
-
[
|
|
135
|
-
), o = (
|
|
136
|
-
k(
|
|
137
|
-
}, c = (
|
|
138
|
-
!
|
|
139
|
-
},
|
|
140
|
-
return /* @__PURE__ */ t("div", { className: "IncodeAddressAutocomplete", ref:
|
|
134
|
+
[M]
|
|
135
|
+
), o = (s) => {
|
|
136
|
+
k(s), s.length >= 3 ? u ? (I(!0), S(s)) : (N(s), p(!0)) : p(!1);
|
|
137
|
+
}, c = (s) => {
|
|
138
|
+
!F || r.length === 0 || (s.key === "ArrowDown" ? (s.preventDefault(), i((m) => m < r.length - 1 ? m + 1 : 0)) : s.key === "ArrowUp" ? (s.preventDefault(), i((m) => m > 0 ? m - 1 : r.length - 1)) : s.key === "Enter" && g >= 0 ? (s.preventDefault(), n(r[g])) : s.key === "Escape" && (p(!1), i(-1)));
|
|
139
|
+
}, $ = !u && F && r.length > 0, q = $ && g >= 0 ? `${e}-option-${g}` : void 0;
|
|
140
|
+
return /* @__PURE__ */ t("div", { className: "IncodeAddressAutocomplete", ref: A, children: [
|
|
141
141
|
/* @__PURE__ */ t(
|
|
142
|
-
|
|
142
|
+
K,
|
|
143
143
|
{
|
|
144
144
|
id: "ekyc-street",
|
|
145
145
|
label: h,
|
|
@@ -147,60 +147,60 @@ const te = ({
|
|
|
147
147
|
value: d,
|
|
148
148
|
readOnly: a,
|
|
149
149
|
error: b ? v(b) : void 0,
|
|
150
|
-
onInput: (
|
|
150
|
+
onInput: (s) => o(s.target.value),
|
|
151
151
|
onKeyDown: c,
|
|
152
152
|
role: "combobox",
|
|
153
|
-
"aria-expanded":
|
|
153
|
+
"aria-expanded": $,
|
|
154
154
|
"aria-controls": e,
|
|
155
155
|
"aria-activedescendant": q,
|
|
156
156
|
"aria-autocomplete": "list",
|
|
157
157
|
"data-testid": "ekyc-address-input"
|
|
158
158
|
}
|
|
159
159
|
),
|
|
160
|
-
|
|
160
|
+
$ && /* @__PURE__ */ t(
|
|
161
161
|
"ul",
|
|
162
162
|
{
|
|
163
163
|
id: e,
|
|
164
164
|
role: "listbox",
|
|
165
|
-
className: "
|
|
166
|
-
children: r.map((
|
|
165
|
+
className: "IncodeAddressAutocompleteSuggestions",
|
|
166
|
+
children: r.map((s, m) => /* @__PURE__ */ t(
|
|
167
167
|
"li",
|
|
168
168
|
{
|
|
169
169
|
id: `${e}-option-${m}`,
|
|
170
170
|
role: "option",
|
|
171
171
|
"aria-selected": m === g,
|
|
172
|
-
className: `
|
|
173
|
-
onClick: () => s
|
|
174
|
-
children:
|
|
172
|
+
className: `IncodeAddressAutocompleteSuggestion${m === g ? "IncodeAddressAutocompleteSuggestionActive" : ""}`,
|
|
173
|
+
onClick: () => n(s),
|
|
174
|
+
children: s.label
|
|
175
175
|
},
|
|
176
|
-
|
|
176
|
+
s.id
|
|
177
177
|
))
|
|
178
178
|
}
|
|
179
179
|
),
|
|
180
|
-
u && l && /* @__PURE__ */ t("div", { className: "
|
|
181
|
-
/* @__PURE__ */ t("div", { className: "
|
|
180
|
+
u && l && /* @__PURE__ */ t("div", { className: "IncodeAddressAutocompleteModalOverlay", children: /* @__PURE__ */ t("div", { className: "IncodeAddressAutocompleteModal", children: [
|
|
181
|
+
/* @__PURE__ */ t("div", { className: "IncodeAddressAutocompleteModalHeader", children: [
|
|
182
182
|
/* @__PURE__ */ t("h3", { children: v("verification.addressSearch") }),
|
|
183
183
|
/* @__PURE__ */ t(
|
|
184
184
|
"button",
|
|
185
185
|
{
|
|
186
|
-
className: "
|
|
186
|
+
className: "IncodeAddressAutocompleteModalClose",
|
|
187
187
|
onClick: () => I(!1),
|
|
188
188
|
type: "button",
|
|
189
189
|
children: "×"
|
|
190
190
|
}
|
|
191
191
|
)
|
|
192
192
|
] }),
|
|
193
|
-
/* @__PURE__ */ t("div", { className: "
|
|
193
|
+
/* @__PURE__ */ t("div", { className: "IncodeAddressAutocompleteModalBody", children: [
|
|
194
194
|
/* @__PURE__ */ t(
|
|
195
195
|
"input",
|
|
196
196
|
{
|
|
197
|
-
className: "
|
|
197
|
+
className: "IncodeAddressAutocompleteModalInput",
|
|
198
198
|
type: "text",
|
|
199
|
-
value:
|
|
199
|
+
value: E,
|
|
200
200
|
placeholder: v("verification.addressPlaceholder"),
|
|
201
|
-
onInput: (
|
|
202
|
-
const m =
|
|
203
|
-
|
|
201
|
+
onInput: (s) => {
|
|
202
|
+
const m = s.target.value;
|
|
203
|
+
S(m), m.length >= 3 && N(m);
|
|
204
204
|
},
|
|
205
205
|
autoFocus: !0
|
|
206
206
|
}
|
|
@@ -209,23 +209,23 @@ const te = ({
|
|
|
209
209
|
"ul",
|
|
210
210
|
{
|
|
211
211
|
role: "listbox",
|
|
212
|
-
className: "
|
|
213
|
-
children: r.map((
|
|
212
|
+
className: "IncodeAddressAutocompleteModalSuggestions",
|
|
213
|
+
children: r.map((s) => /* @__PURE__ */ t(
|
|
214
214
|
"li",
|
|
215
215
|
{
|
|
216
216
|
role: "option",
|
|
217
|
-
className: "
|
|
218
|
-
onClick: () => s
|
|
219
|
-
children:
|
|
217
|
+
className: "IncodeAddressAutocompleteModalSuggestion",
|
|
218
|
+
onClick: () => n(s),
|
|
219
|
+
children: s.label
|
|
220
220
|
},
|
|
221
|
-
|
|
221
|
+
s.id
|
|
222
222
|
))
|
|
223
223
|
}
|
|
224
224
|
),
|
|
225
225
|
/* @__PURE__ */ t(
|
|
226
226
|
"button",
|
|
227
227
|
{
|
|
228
|
-
className: "
|
|
228
|
+
className: "IncodeAddressAutocompleteEnterManually",
|
|
229
229
|
onClick: () => I(!1),
|
|
230
230
|
type: "button",
|
|
231
231
|
children: v("verification.enterManually")
|
|
@@ -234,13 +234,13 @@ const te = ({
|
|
|
234
234
|
] })
|
|
235
235
|
] }) })
|
|
236
236
|
] });
|
|
237
|
-
},
|
|
238
|
-
const { t: r } = O(), [a, C] =
|
|
239
|
-
|
|
237
|
+
}, ne = ({ config: f, onFinish: d, onError: b }) => {
|
|
238
|
+
const { t: r } = O(), [a, C] = j(() => G({ config: f }));
|
|
239
|
+
w(() => {
|
|
240
240
|
(a.status === "finished" || a.status === "closed") && d?.();
|
|
241
241
|
}, [a.status, d]);
|
|
242
242
|
const k = a.status === "error" ? a.errorMessage : void 0;
|
|
243
|
-
return
|
|
243
|
+
return w(() => {
|
|
244
244
|
a.status === "error" && b?.(k);
|
|
245
245
|
}, [a.status, b, k]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ t(
|
|
246
246
|
D,
|
|
@@ -263,26 +263,26 @@ const te = ({
|
|
|
263
263
|
onSkip: () => C.close(),
|
|
264
264
|
skipLabel: r("common.close")
|
|
265
265
|
}
|
|
266
|
-
) : a.status === "form" ? /* @__PURE__ */ t(
|
|
267
|
-
},
|
|
266
|
+
) : a.status === "form" ? /* @__PURE__ */ t(se, { state: a, manager: C }) : null;
|
|
267
|
+
}, se = ({ state: f, manager: d }) => {
|
|
268
268
|
const {
|
|
269
269
|
fields: b,
|
|
270
270
|
values: r,
|
|
271
271
|
displayErrors: a,
|
|
272
272
|
errorParams: C,
|
|
273
273
|
isValid: k,
|
|
274
|
-
addressSuggestions:
|
|
275
|
-
prefilled:
|
|
274
|
+
addressSuggestions: N,
|
|
275
|
+
prefilled: M,
|
|
276
276
|
hideEmail: v,
|
|
277
|
-
fieldsCountry:
|
|
277
|
+
fieldsCountry: F,
|
|
278
278
|
submitError: p
|
|
279
|
-
} = f, { t: l } = O(), I = x(null),
|
|
280
|
-
|
|
281
|
-
const e = a.postalCode, u =
|
|
282
|
-
if (
|
|
279
|
+
} = f, { t: l } = O(), I = x(null), E = x(null), S = x(void 0), g = Y(I, b.length);
|
|
280
|
+
w(() => {
|
|
281
|
+
const e = a.postalCode, u = S.current;
|
|
282
|
+
if (S.current = e, !e || u === e)
|
|
283
283
|
return;
|
|
284
284
|
const y = requestAnimationFrame(() => {
|
|
285
|
-
const h =
|
|
285
|
+
const h = E.current;
|
|
286
286
|
if (!h) return;
|
|
287
287
|
(h.querySelector("#postalCode-error") ?? h).scrollIntoView({
|
|
288
288
|
behavior: "smooth",
|
|
@@ -292,15 +292,15 @@ const te = ({
|
|
|
292
292
|
return () => cancelAnimationFrame(y);
|
|
293
293
|
}, [a.postalCode]);
|
|
294
294
|
let i;
|
|
295
|
-
return /* @__PURE__ */ t(
|
|
296
|
-
/* @__PURE__ */ t("div", { ref: I, className: "
|
|
295
|
+
return /* @__PURE__ */ t(Z, { className: `IncodeEkycPage${g ? " IncodeEkycPageScrollable" : ""}`, title: l("verification.title"), children: [
|
|
296
|
+
/* @__PURE__ */ t("div", { ref: I, className: "IncodeEkycForm", children: b.map((e) => {
|
|
297
297
|
if (e.name === "email" && v) return null;
|
|
298
298
|
let u = null;
|
|
299
|
-
e.section && e.section !== i && (i = e.section, u = /* @__PURE__ */ t("h3", { className: "
|
|
299
|
+
e.section && e.section !== i && (i = e.section, u = /* @__PURE__ */ t("h3", { className: "IncodeEkycSectionHeader", children: l({
|
|
300
300
|
address: "verification.labels.addressDetailsSection",
|
|
301
301
|
driverLicense: "verification.labels.dlDetailsSection"
|
|
302
302
|
}[e.section] ?? e.section) }));
|
|
303
|
-
const y = e.readonly ||
|
|
303
|
+
const y = e.readonly || M[e.name], h = r[e.name] ?? "", n = a[e.name];
|
|
304
304
|
if (e.name === "street" && e.section === "address")
|
|
305
305
|
return /* @__PURE__ */ t("div", { children: [
|
|
306
306
|
u,
|
|
@@ -309,8 +309,8 @@ const te = ({
|
|
|
309
309
|
{
|
|
310
310
|
label: e.label,
|
|
311
311
|
value: h,
|
|
312
|
-
error:
|
|
313
|
-
suggestions:
|
|
312
|
+
error: n,
|
|
313
|
+
suggestions: N,
|
|
314
314
|
readonly: y,
|
|
315
315
|
onChange: (o) => d.setField("street", o),
|
|
316
316
|
onSearch: (o) => d.searchAddress(o),
|
|
@@ -323,7 +323,7 @@ const te = ({
|
|
|
323
323
|
return /* @__PURE__ */ t("div", { children: [
|
|
324
324
|
u,
|
|
325
325
|
/* @__PURE__ */ t(
|
|
326
|
-
|
|
326
|
+
H,
|
|
327
327
|
{
|
|
328
328
|
id: `ekyc-${e.name}`,
|
|
329
329
|
label: o,
|
|
@@ -333,7 +333,7 @@ const te = ({
|
|
|
333
333
|
...c,
|
|
334
334
|
label: l(c.label)
|
|
335
335
|
})),
|
|
336
|
-
error:
|
|
336
|
+
error: n ? l(n) : void 0,
|
|
337
337
|
disabled: y,
|
|
338
338
|
searchable: !0,
|
|
339
339
|
onChange: (c) => d.setField(e.name, c),
|
|
@@ -347,16 +347,16 @@ const te = ({
|
|
|
347
347
|
return /* @__PURE__ */ t("div", { children: [
|
|
348
348
|
u,
|
|
349
349
|
/* @__PURE__ */ t(
|
|
350
|
-
|
|
350
|
+
X,
|
|
351
351
|
{
|
|
352
352
|
id: `ekyc-${e.name}`,
|
|
353
353
|
label: o,
|
|
354
354
|
value: h,
|
|
355
|
-
error:
|
|
355
|
+
error: n ? l(n) : void 0,
|
|
356
356
|
disabled: y,
|
|
357
357
|
onInput: (c) => {
|
|
358
|
-
const
|
|
359
|
-
d.setField(e.name,
|
|
358
|
+
const $ = c.target;
|
|
359
|
+
d.setField(e.name, $.value);
|
|
360
360
|
},
|
|
361
361
|
"data-testid": `ekyc-field-${e.name}`
|
|
362
362
|
}
|
|
@@ -372,10 +372,10 @@ const te = ({
|
|
|
372
372
|
{
|
|
373
373
|
id: `ekyc-${e.name}`,
|
|
374
374
|
label: o,
|
|
375
|
-
countryCode:
|
|
375
|
+
countryCode: F,
|
|
376
376
|
value: h,
|
|
377
377
|
placeholder: e.placeholder,
|
|
378
|
-
error:
|
|
378
|
+
error: n ? l(n) : void 0,
|
|
379
379
|
disabled: y,
|
|
380
380
|
disableCountrySelector: e.disableCountrySelector,
|
|
381
381
|
required: e.required,
|
|
@@ -387,12 +387,12 @@ const te = ({
|
|
|
387
387
|
}
|
|
388
388
|
return e.type === "radio" ? /* @__PURE__ */ t("div", { children: [
|
|
389
389
|
u,
|
|
390
|
-
/* @__PURE__ */ t("div", { className: "
|
|
391
|
-
/* @__PURE__ */ t("label", { className: "
|
|
392
|
-
/* @__PURE__ */ t("div", { className: "
|
|
390
|
+
/* @__PURE__ */ t("div", { className: "IncodeEkycRadioGroup", children: [
|
|
391
|
+
/* @__PURE__ */ t("label", { className: "IncodeEkycRadioLabel", children: l(e.label) }),
|
|
392
|
+
/* @__PURE__ */ t("div", { className: "IncodeEkycRadioOptions", children: e.options?.map((o) => /* @__PURE__ */ t(
|
|
393
393
|
"label",
|
|
394
394
|
{
|
|
395
|
-
className: "
|
|
395
|
+
className: "IncodeEkycRadioOption",
|
|
396
396
|
children: [
|
|
397
397
|
/* @__PURE__ */ t(
|
|
398
398
|
"input",
|
|
@@ -410,21 +410,21 @@ const te = ({
|
|
|
410
410
|
},
|
|
411
411
|
o.value
|
|
412
412
|
)) }),
|
|
413
|
-
|
|
413
|
+
n && /* @__PURE__ */ t("span", { className: "IncodeEkycFieldError", children: l(n) })
|
|
414
414
|
] })
|
|
415
415
|
] }, e.name) : /* @__PURE__ */ t(
|
|
416
416
|
"div",
|
|
417
417
|
{
|
|
418
|
-
ref: e.name === "postalCode" ?
|
|
418
|
+
ref: e.name === "postalCode" ? E : void 0,
|
|
419
419
|
children: [
|
|
420
420
|
u,
|
|
421
421
|
/* @__PURE__ */ t(
|
|
422
|
-
|
|
422
|
+
J,
|
|
423
423
|
{
|
|
424
424
|
name: e.name,
|
|
425
425
|
label: e.label,
|
|
426
426
|
value: h,
|
|
427
|
-
error:
|
|
427
|
+
error: n,
|
|
428
428
|
errorParams: C[e.name],
|
|
429
429
|
type: e.type,
|
|
430
430
|
placeholder: e.placeholder,
|
|
@@ -441,11 +441,11 @@ const te = ({
|
|
|
441
441
|
e.name
|
|
442
442
|
);
|
|
443
443
|
}) }),
|
|
444
|
-
/* @__PURE__ */ t("div", { className: "
|
|
445
|
-
/* @__PURE__ */ t(
|
|
446
|
-
p && /* @__PURE__ */ t("p", { className: "
|
|
444
|
+
/* @__PURE__ */ t("div", { className: "IncodeEkycFooter", children: [
|
|
445
|
+
/* @__PURE__ */ t(Q, { size: 32 }),
|
|
446
|
+
p && /* @__PURE__ */ t("p", { className: "IncodeEkycSubmitError", children: l(p) }),
|
|
447
447
|
/* @__PURE__ */ t(
|
|
448
|
-
|
|
448
|
+
W,
|
|
449
449
|
{
|
|
450
450
|
onClick: () => d.submit(),
|
|
451
451
|
disabled: !k,
|
|
@@ -459,8 +459,8 @@ const te = ({
|
|
|
459
459
|
config: f,
|
|
460
460
|
onFinish: d,
|
|
461
461
|
onError: b
|
|
462
|
-
}) => /* @__PURE__ */ t(
|
|
463
|
-
|
|
462
|
+
}) => /* @__PURE__ */ t(U, { children: f ? /* @__PURE__ */ t(ne, { config: f, onFinish: d, onError: b }) : null });
|
|
463
|
+
z(ae, "incode-ekyc");
|
|
464
464
|
export {
|
|
465
465
|
ae as EkycModule
|
|
466
466
|
};
|
package/dist/flow/flow.es.js
CHANGED
|
@@ -147,8 +147,8 @@ const T = () => import("../id/id.es.js").then((e) => e.Id), F = {
|
|
|
147
147
|
(e) => e.GovernmentValidation
|
|
148
148
|
),
|
|
149
149
|
GEOLOCATION: () => import("../geolocation/geolocation.es.js").then((e) => e.Geolocation),
|
|
150
|
-
EXTERNAL_VERIFICATION: () => import("../ekycModule-
|
|
151
|
-
EKYB: () => import("../ekybModule-
|
|
150
|
+
EXTERNAL_VERIFICATION: () => import("../ekycModule-C6M5lSNt.js").then((e) => e.EkycModule),
|
|
151
|
+
EKYB: () => import("../ekybModule-DY0tTRTg.js").then((e) => e.EkybModule),
|
|
152
152
|
DOCUMENT_CAPTURE: () => import("../documentCapture-BxRw-eCN.js").then(
|
|
153
153
|
(e) => e.DocumentCapture
|
|
154
154
|
),
|