@incodetech/web 0.0.0-dev-20260518-3e2a44e2 → 0.0.0-dev-20260518-4cedf99f
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 +1 -1
- package/dist/antifraud/antifraud.es.js +1 -1
- package/dist/authentication/authentication.es.js +2 -2
- package/dist/consent/consent.es.js +3 -3
- package/dist/{countrySelector-CE-JgIsv.js → countrySelector-DLCfd7yy.js} +1 -1
- package/dist/{cpfOcr-D_tbwbvh.js → cpfOcr-BdLPvojl.js} +1 -1
- package/dist/cross-document-data-match/cross-document-data-match.es.js +1 -1
- package/dist/curp-validation/curp-validation.es.js +3 -3
- package/dist/{customFields-CW38fQUv.js → customFields-DV6lUnvq.js} +2 -2
- package/dist/{customWatchlist-D9_yjEQd.js → customWatchlist-DSmB80f3.js} +2 -2
- package/dist/{documentCapture-xX-JT7ZY.js → documentCapture-lJ-U1cjp.js} +4 -4
- package/dist/{dynamicForms-CJP1Ia6Q.js → dynamicForms-JljZlRXK.js} +4 -4
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-BSs7mndb.js → ekybModule-BKRqcVUg.js} +7 -7
- package/dist/ekybModule-VSRRLIbh.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-Cv_JJrCQ.js +2 -0
- package/dist/{ekycModule-CU9pt5YN.js → ekycModule-Dh8h68HL.js} +5 -5
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-COYXjGdd.js → electronic-signature-C7wAN8uG.js} +3 -3
- package/dist/email/email.es.js +4 -4
- package/dist/{emailInput-DppGf9pv.js → emailInput-DQD3XnzK.js} +2 -2
- package/dist/{expiredId-BnmzE8T3.js → expiredId-Gqc6wM4h.js} +1 -1
- package/dist/{extensibility-CzEJfRwo.js → extensibility-BEX3WegI.js} +8 -8
- package/dist/extensibility.es.js +8 -8
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-BPXidsWa.js +2 -0
- package/dist/{faceMatch-BV8UD7tj.js → faceMatch-T-_3NI8m.js} +3 -3
- package/dist/flow/flow.es.js +299 -299
- package/dist/geolocation/geolocation.es.js +2 -2
- package/dist/governmentValidation/governmentValidation.es.js +3 -3
- package/dist/{homeScreen-DnP1jw9A.js → homeScreen-B213v-on.js} +17 -17
- package/dist/{i18n-9s4OSqwi.js → i18n-DQ49aghC.js} +224 -217
- package/dist/id/id.es.js +7 -7
- package/dist/id-verification/id-verification.es.js +2 -2
- package/dist/{idOcr-CCjfWQvH.js → idOcr-CsDIoUzl.js} +5 -5
- package/dist/identity-reuse/identity-reuse.es.js +2 -2
- package/dist/{incodeComponent-C1o4M0ZK.js → incodeComponent-Dx2l4chW.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{mandatoryConsent-DssKMC3v.js → mandatoryConsent-D6YZlHdq.js} +3 -3
- package/dist/{optionAccessibleLabel-CzEeX3Q4.js → optionAccessibleLabel-k7Y-6ZwH.js} +2 -2
- package/dist/{otpInput-DqRA_egd.js → otpInput-uUeFE3w6.js} +1 -1
- package/dist/phone/phone.es.js +3 -3
- package/dist/{processing-G_y3o32b.js → processing-CO4IWfYV.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +1 -1
- package/dist/{radioGroupComposed-BbmvxmD2.js → radioGroupComposed-CAeFseVP.js} +1 -1
- package/dist/{redirectToMobile-C3k1gloW.js → redirectToMobile-Dbz6ZG63.js} +3 -3
- package/dist/selfie/selfie.es.js +4 -4
- package/dist/signature/signature.es.js +4 -4
- package/dist/{transitionSpinner-PIEPU2Vx.js → transitionSpinner-D_N_MiDY.js} +1 -1
- package/dist/{tutorial-9vHAHvMK.js → tutorial-C0s7rqxv.js} +2 -2
- package/dist/{useModuleLoader-BFiVA41N.js → useModuleLoader-gInq0l-h.js} +15 -15
- package/dist/{verificationResult-BrVbUJ4U.js → verificationResult-biy_diWd.js} +1 -1
- package/dist/watchlist/watchlist.es.js +2 -2
- package/dist/{watchlistForBusiness-BcSNtHCV.js → watchlistForBusiness-DCPDk7x_.js} +3 -3
- package/dist/workflow/workflow.es.js +120 -120
- package/package.json +2 -2
- package/dist/ekybModule-D9M3E2Gm.js +0 -2
- package/dist/ekycModule-CZw9cLno.js +0 -2
- package/dist/faceMatch-B8j0g0Yo.js +0 -2
package/dist/flow/flow.es.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import { t as
|
|
4
|
-
import { o as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { a as
|
|
9
|
-
import { getDeviceClass as
|
|
10
|
-
import { getRequiredWasmPipelines as
|
|
11
|
-
import { QrValidationError as
|
|
1
|
+
import { a as e, n as t } from "../i18n-DQ49aghC.js";
|
|
2
|
+
import { _ as n, c as r, d as i, l as a, o, p as s, v as c } from "../vendor-preact-D6SntenC.js";
|
|
3
|
+
import { t as l } from "../uiConfig-CwpQ-IM6.js";
|
|
4
|
+
import { o as u } from "../hooks-BVnGysT7.js";
|
|
5
|
+
import { t as d } from "../incodeComponent-Dx2l4chW.js";
|
|
6
|
+
import { t as f } from "../transitionSpinner-D_N_MiDY.js";
|
|
7
|
+
import { t as p } from "../incodeModule-BqCjVgEI.js";
|
|
8
|
+
import { a as m, c as h, d as g, f as _, h as v, l as y, n as b, o as x, p as S, r as C, s as w, t as T, u as E } from "../useModuleLoader-gInq0l-h.js";
|
|
9
|
+
import { getDeviceClass as D } from "@incodetech/core/device";
|
|
10
|
+
import { getRequiredWasmPipelines as O } from "@incodetech/core/flow";
|
|
11
|
+
import { QrValidationError as k, bootstrapSession as A, refreshQrUrlUuid as j } from "@incodetech/core/session";
|
|
12
12
|
//#region src/shared/processing/useDelayedFlag.ts
|
|
13
|
-
function
|
|
14
|
-
let [r, i] =
|
|
15
|
-
return
|
|
13
|
+
function M(e, t) {
|
|
14
|
+
let [r, i] = s(!1);
|
|
15
|
+
return n(() => {
|
|
16
16
|
if (e === !1) {
|
|
17
17
|
i(!1);
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
let
|
|
20
|
+
let n = window.setTimeout(() => {
|
|
21
21
|
i(!0);
|
|
22
|
-
},
|
|
22
|
+
}, t);
|
|
23
23
|
return () => {
|
|
24
|
-
window.clearTimeout(
|
|
24
|
+
window.clearTimeout(n);
|
|
25
25
|
};
|
|
26
|
-
}, [e,
|
|
26
|
+
}, [e, t]), r;
|
|
27
27
|
}
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/modules/flow/createFlowSession.ts
|
|
30
|
-
function
|
|
30
|
+
function N(e) {
|
|
31
31
|
return Array.from(new Uint8Array(e), (e) => e.toString(16).padStart(2, "0")).join("");
|
|
32
32
|
}
|
|
33
|
-
async function
|
|
33
|
+
async function P(e) {
|
|
34
34
|
let t = globalThis.crypto?.subtle;
|
|
35
35
|
if (!t) throw Error("SHA-1 is not available in this environment");
|
|
36
|
-
return
|
|
36
|
+
return N(await t.digest("SHA-1", new TextEncoder().encode(e)));
|
|
37
37
|
}
|
|
38
|
-
async function
|
|
38
|
+
async function F(e) {
|
|
39
39
|
if (typeof e.apiKey == "string") return e.apiKey;
|
|
40
|
-
if (typeof e.clientId == "string") return
|
|
40
|
+
if (typeof e.clientId == "string") return P(e.clientId);
|
|
41
41
|
throw Error("Flow self-loading mode requires apiKey or clientId");
|
|
42
42
|
}
|
|
43
|
-
async function
|
|
44
|
-
return
|
|
43
|
+
async function I(e, t) {
|
|
44
|
+
return A(await F(e), {
|
|
45
45
|
configurationId: e.configurationId,
|
|
46
46
|
externalId: e.externalId,
|
|
47
47
|
externalCustomerId: e.externalCustomerId,
|
|
@@ -55,18 +55,18 @@ async function F(e, t) {
|
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region src/modules/flow/flowConfig.ts
|
|
58
|
-
function
|
|
58
|
+
function L(e) {
|
|
59
59
|
return typeof e.token == "string";
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function R(e) {
|
|
62
62
|
let t = e;
|
|
63
63
|
return typeof t.configurationId == "string" && (typeof t.apiKey == "string" || typeof t.clientId == "string");
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region src/modules/flow/preloadFlow.ts
|
|
67
|
-
var
|
|
68
|
-
function
|
|
69
|
-
let t =
|
|
67
|
+
var z = /* @__PURE__ */ new Map();
|
|
68
|
+
function B(e) {
|
|
69
|
+
let t = z.get(e);
|
|
70
70
|
if (!t) throw Error("Preload state not found");
|
|
71
71
|
return {
|
|
72
72
|
get isReady() {
|
|
@@ -82,18 +82,18 @@ function z(e) {
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
cancel() {
|
|
85
|
-
t.status === "loading" && (t.unsubscribe && t.unsubscribe(), t.flowManager.stop(), t.readyReject(/* @__PURE__ */ Error("Preload cancelled")),
|
|
85
|
+
t.status === "loading" && (t.unsubscribe && t.unsubscribe(), t.flowManager.stop(), t.readyReject(/* @__PURE__ */ Error("Preload cancelled")), z.delete(e));
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function V(e) {
|
|
90
90
|
let { token: t } = e;
|
|
91
91
|
if (e.urlUuid) throw Error("preloadIncodeFlow does not support urlUuid; pass it to <IncodeFlow> directly so the SDK can rotate it on mount.");
|
|
92
|
-
if (
|
|
92
|
+
if (z.has(t)) return B(t);
|
|
93
93
|
let n, r, i = new Promise((e, t) => {
|
|
94
94
|
n = e, r = t;
|
|
95
|
-
}), a =
|
|
96
|
-
a.getState().presentation.shouldPrefetchHome &&
|
|
95
|
+
}), a = h(e);
|
|
96
|
+
a.getState().presentation.shouldPrefetchHome && _();
|
|
97
97
|
let o = {
|
|
98
98
|
status: "loading",
|
|
99
99
|
flowManager: a,
|
|
@@ -102,59 +102,59 @@ function B(e) {
|
|
|
102
102
|
readyResolve: n,
|
|
103
103
|
readyReject: r
|
|
104
104
|
};
|
|
105
|
-
return
|
|
105
|
+
return z.set(t, o), (async () => {
|
|
106
106
|
try {
|
|
107
|
-
await
|
|
107
|
+
await E({
|
|
108
108
|
token: e.token,
|
|
109
109
|
lang: e.lang,
|
|
110
110
|
flowManager: a
|
|
111
111
|
});
|
|
112
|
-
let t = e.disableDashboardTheme ? Promise.resolve({}) :
|
|
112
|
+
let t = e.disableDashboardTheme ? Promise.resolve({}) : y().then((e) => {
|
|
113
113
|
o.theme = e.theme, o.uiConfig = e.uiConfig;
|
|
114
114
|
});
|
|
115
115
|
o.unsubscribe = a.subscribe((t) => {
|
|
116
116
|
if (t.status === "ready") {
|
|
117
117
|
let n = t;
|
|
118
|
-
|
|
118
|
+
v(n, e.wasmConfig), g(n), o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "ready", o.readyResolve();
|
|
119
119
|
} else t.status === "error" && (o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "error", o.error = t.error, o.readyReject(Error(t.error)));
|
|
120
120
|
}), await t;
|
|
121
121
|
} catch (e) {
|
|
122
|
-
o.status = "error", o.error = e instanceof Error ? e.message : "Failed to preload", o.readyReject(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to preload")),
|
|
122
|
+
o.status = "error", o.error = e instanceof Error ? e.message : "Failed to preload", o.readyReject(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to preload")), z.delete(t);
|
|
123
123
|
}
|
|
124
|
-
})(),
|
|
125
|
-
}
|
|
126
|
-
function V(e) {
|
|
127
|
-
return R.get(e) ?? null;
|
|
124
|
+
})(), B(t);
|
|
128
125
|
}
|
|
129
126
|
function H(e) {
|
|
130
|
-
|
|
131
|
-
|
|
127
|
+
return z.get(e) ?? null;
|
|
128
|
+
}
|
|
129
|
+
function U(e) {
|
|
130
|
+
let t = H(e);
|
|
131
|
+
return t && z.delete(e), t;
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/modules/flow/useFlowInitialization.ts
|
|
135
|
-
function
|
|
136
|
-
e.getState().presentation.shouldPrefetchHome &&
|
|
135
|
+
function W(e) {
|
|
136
|
+
e.getState().presentation.shouldPrefetchHome && _();
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
138
|
+
function G() {
|
|
139
|
+
D() === "desktop" && S();
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
let { lang:
|
|
143
|
-
let t = u ?
|
|
141
|
+
function K(e) {
|
|
142
|
+
let { lang: t, disableDashboardTheme: r, enableHome: i, onError: o, useCPF: c } = e, u = L(e) ? e.token : void 0, d = a(null), [f, p] = s(() => {
|
|
143
|
+
let t = u ? H(u) : null;
|
|
144
144
|
if (u && t?.status === "ready") {
|
|
145
|
-
let e =
|
|
146
|
-
if (e) return d.current = e.flowManager,
|
|
145
|
+
let e = U(u);
|
|
146
|
+
if (e) return d.current = e.flowManager, W(e.flowManager), G(), e.uiConfig && l(e.uiConfig), {
|
|
147
147
|
status: "ready",
|
|
148
148
|
flowManager: e.flowManager
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
let n =
|
|
151
|
+
let n = h({
|
|
152
152
|
authHint: e.authHint,
|
|
153
153
|
lang: e.lang,
|
|
154
154
|
enableHome: e.enableHome,
|
|
155
155
|
useCPF: e.useCPF
|
|
156
156
|
});
|
|
157
|
-
return d.current = n,
|
|
157
|
+
return d.current = n, W(n), G(), t?.status === "error" ? {
|
|
158
158
|
status: "error",
|
|
159
159
|
error: t.error ?? "Preload failed",
|
|
160
160
|
flowManager: n
|
|
@@ -162,48 +162,48 @@ function G(e) {
|
|
|
162
162
|
status: "initializing",
|
|
163
163
|
flowManager: n
|
|
164
164
|
};
|
|
165
|
-
}),
|
|
166
|
-
return
|
|
165
|
+
}), m = a(!1);
|
|
166
|
+
return n(() => {
|
|
167
167
|
if (f.status !== "initializing") return;
|
|
168
|
-
let
|
|
169
|
-
if (u &&
|
|
170
|
-
|
|
171
|
-
let e =
|
|
172
|
-
e && (d.current = e.flowManager,
|
|
168
|
+
let n = u ? H(u) : null;
|
|
169
|
+
if (u && n?.status === "loading") {
|
|
170
|
+
n.readyPromise.then(() => {
|
|
171
|
+
let e = U(u);
|
|
172
|
+
e && (d.current = e.flowManager, W(e.flowManager), G(), e.uiConfig && l(e.uiConfig), p({
|
|
173
173
|
status: "ready",
|
|
174
174
|
flowManager: e.flowManager
|
|
175
175
|
}));
|
|
176
176
|
}).catch((e) => {
|
|
177
|
-
let t = e instanceof Error ? e.message : "Preload failed", n = e instanceof
|
|
177
|
+
let t = e instanceof Error ? e.message : "Preload failed", n = e instanceof k ? e.status : void 0;
|
|
178
178
|
p({
|
|
179
179
|
status: "error",
|
|
180
180
|
error: t,
|
|
181
181
|
errorCode: n,
|
|
182
182
|
flowManager: f.flowManager
|
|
183
|
-
}),
|
|
183
|
+
}), o?.(t, n);
|
|
184
184
|
});
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
|
-
if (
|
|
188
|
-
|
|
187
|
+
if (m.current) return;
|
|
188
|
+
m.current = !0;
|
|
189
189
|
let i = new AbortController(), { signal: a } = i;
|
|
190
190
|
return (async () => {
|
|
191
191
|
try {
|
|
192
|
-
let
|
|
193
|
-
if (
|
|
192
|
+
let n;
|
|
193
|
+
if (L(e)) n = e.token, e.urlUuid && await j({
|
|
194
194
|
urlUuid: e.urlUuid,
|
|
195
195
|
onboardingId: null,
|
|
196
196
|
onRefreshed: e.onUrlUuidRefreshed
|
|
197
197
|
}, a);
|
|
198
|
-
else if (
|
|
198
|
+
else if (R(e)) n = (await I(e, a)).token;
|
|
199
199
|
else throw Error("Flow requires token, or configurationId with apiKey or clientId");
|
|
200
|
-
await
|
|
201
|
-
token:
|
|
202
|
-
lang:
|
|
200
|
+
await E({
|
|
201
|
+
token: n,
|
|
202
|
+
lang: t,
|
|
203
203
|
flowManager: f.flowManager
|
|
204
204
|
});
|
|
205
|
-
let i = r ? Promise.resolve() :
|
|
206
|
-
e.uiConfig &&
|
|
205
|
+
let i = r ? Promise.resolve() : y().then((e) => {
|
|
206
|
+
e.uiConfig && l(e.uiConfig);
|
|
207
207
|
}), o = f.flowManager.waitForReady();
|
|
208
208
|
await Promise.all([o, i]), p({
|
|
209
209
|
status: "ready",
|
|
@@ -211,316 +211,316 @@ function G(e) {
|
|
|
211
211
|
});
|
|
212
212
|
} catch (e) {
|
|
213
213
|
if (a.aborted) return;
|
|
214
|
-
let t = e instanceof Error ? e.message : "Failed to initialize SDK", n = e instanceof
|
|
214
|
+
let t = e instanceof Error ? e.message : "Failed to initialize SDK", n = e instanceof k ? e.status : void 0;
|
|
215
215
|
p({
|
|
216
216
|
status: "error",
|
|
217
217
|
error: t,
|
|
218
218
|
errorCode: n,
|
|
219
219
|
flowManager: f.flowManager
|
|
220
|
-
}),
|
|
220
|
+
}), o?.(t, n);
|
|
221
221
|
}
|
|
222
222
|
})(), () => i.abort();
|
|
223
223
|
}, [
|
|
224
224
|
u,
|
|
225
|
-
|
|
225
|
+
t,
|
|
226
226
|
r,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
227
|
+
i,
|
|
228
|
+
c,
|
|
229
|
+
o,
|
|
230
230
|
e,
|
|
231
231
|
f
|
|
232
232
|
]), f;
|
|
233
233
|
}
|
|
234
234
|
//#endregion
|
|
235
235
|
//#region src/modules/flow/flow.tsx
|
|
236
|
-
var
|
|
237
|
-
let { i18n:
|
|
238
|
-
...
|
|
239
|
-
onError:
|
|
240
|
-
}), [
|
|
241
|
-
moduleKey:
|
|
242
|
-
modules:
|
|
243
|
-
onModuleLoading:
|
|
244
|
-
onModuleLoaded:
|
|
245
|
-
onError:
|
|
236
|
+
var q = r(() => import("../homeScreen-B213v-on.js").then((e) => ({ default: e.HomeScreen }))), J = ({ config: r, onFinish: a, onError: s }) => {
|
|
237
|
+
let { i18n: l } = t(), d = K(i(() => ({
|
|
238
|
+
...r,
|
|
239
|
+
onError: s
|
|
240
|
+
}), [r, s])), [p, h] = u(() => d.flowManager, { autoLoad: !1 }), g = p.presentation.lazyModuleKey, y = p.status === "ready" ? p.currentStep : void 0, S = T({
|
|
241
|
+
moduleKey: g,
|
|
242
|
+
modules: w,
|
|
243
|
+
onModuleLoading: r.onModuleLoading,
|
|
244
|
+
onModuleLoaded: r.onModuleLoaded,
|
|
245
|
+
onError: s
|
|
246
246
|
});
|
|
247
|
-
|
|
248
|
-
moduleKey:
|
|
249
|
-
modules:
|
|
247
|
+
b({
|
|
248
|
+
moduleKey: p.status === "ready" && p.homeScreen.visible ? y : void 0,
|
|
249
|
+
modules: w
|
|
250
250
|
});
|
|
251
|
-
let
|
|
252
|
-
|
|
253
|
-
if (
|
|
254
|
-
}, [
|
|
255
|
-
|
|
256
|
-
}, [
|
|
257
|
-
|
|
258
|
-
}, [
|
|
259
|
-
if (
|
|
260
|
-
let e =
|
|
261
|
-
t.length > 0 && (
|
|
262
|
-
}, [
|
|
263
|
-
|
|
251
|
+
let E = S.status === "loaded", D = r.enableHome === !0 && p.status === "ready" && p.flow.disableLaunchScreen !== !0 && p.currentStepIndex === 0 && p.homeScreen.visible === !1 && S.status === "loading", k = M(p.presentation.isAwaitingReady === !0, 150), A = M(p.status === "ready" && (S.status === "idle" || S.status === "loading" || S.status === "error"), 150);
|
|
252
|
+
C(p?.status === "ready" ? p.steps : [], p?.status === "ready" ? p.currentStepIndex : -1, w, E), n(() => {
|
|
253
|
+
if (r.onFlowEvent) return h.subscribeFlowEvent(r.onFlowEvent);
|
|
254
|
+
}, [h, r.onFlowEvent]), n(() => {
|
|
255
|
+
p.presentation.shouldPrefetchHome && _();
|
|
256
|
+
}, [p.presentation.shouldPrefetchHome]), n(() => {
|
|
257
|
+
e() || r.lang && l.language !== r.lang && l.changeLanguage(r.lang);
|
|
258
|
+
}, [r.lang, l]), n(() => {
|
|
259
|
+
if (p?.status !== "ready" || p.currentStep === "REDIRECT_TO_MOBILE") return;
|
|
260
|
+
let e = p, t = O(e.flow);
|
|
261
|
+
t.length > 0 && (r.onWasmWarmup?.(t), v(e, r.wasmConfig));
|
|
262
|
+
}, [p, r]), n(() => {
|
|
263
|
+
p?.status === "finished" && a(p.finishStatus);
|
|
264
264
|
}, [
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
]),
|
|
269
|
-
|
|
265
|
+
p?.status,
|
|
266
|
+
a,
|
|
267
|
+
p
|
|
268
|
+
]), n(() => {
|
|
269
|
+
p?.status === "error" && s && s(p.error, p.errorCode);
|
|
270
270
|
}, [
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
]),
|
|
275
|
-
|
|
276
|
-
}, [
|
|
277
|
-
let
|
|
278
|
-
if (
|
|
271
|
+
p?.status,
|
|
272
|
+
s,
|
|
273
|
+
p
|
|
274
|
+
]), n(() => {
|
|
275
|
+
p?.status === "ready" && p.currentStep === "ID" && p.steps.includes("TUTORIAL_ID") && h.completeModule();
|
|
276
|
+
}, [p, h]);
|
|
277
|
+
let j = !(r.spinnerConfig?.title || r.spinnerConfig?.subtitle);
|
|
278
|
+
if (d.status === "error") return /* @__PURE__ */ c("div", {
|
|
279
279
|
class: "IncodeFlow",
|
|
280
|
-
children: /* @__PURE__ */
|
|
280
|
+
children: /* @__PURE__ */ c("div", { children: ["Error: ", d.error] })
|
|
281
281
|
});
|
|
282
|
-
if (
|
|
282
|
+
if (p.homeScreen.visible || D) return /* @__PURE__ */ c("div", {
|
|
283
283
|
class: "IncodeFlow",
|
|
284
|
-
children: /* @__PURE__ */
|
|
284
|
+
children: /* @__PURE__ */ c(o, {
|
|
285
285
|
fallback: null,
|
|
286
|
-
children: /* @__PURE__ */
|
|
287
|
-
isContinueLoading:
|
|
288
|
-
onContinue: () =>
|
|
286
|
+
children: /* @__PURE__ */ c(q, {
|
|
287
|
+
isContinueLoading: p.homeScreen.isContinueLoading || D,
|
|
288
|
+
onContinue: () => h.continueFromHome()
|
|
289
289
|
})
|
|
290
290
|
})
|
|
291
291
|
});
|
|
292
|
-
if (
|
|
292
|
+
if (d.status === "initializing") return /* @__PURE__ */ c("div", {
|
|
293
293
|
class: "IncodeFlow",
|
|
294
|
-
children: /* @__PURE__ */
|
|
295
|
-
spinnerConfig:
|
|
296
|
-
hideText:
|
|
294
|
+
children: /* @__PURE__ */ c(f, {
|
|
295
|
+
spinnerConfig: r.spinnerConfig,
|
|
296
|
+
hideText: j
|
|
297
297
|
})
|
|
298
298
|
});
|
|
299
|
-
if (
|
|
299
|
+
if (p.presentation.isAwaitingReady) return k ? /* @__PURE__ */ c("div", {
|
|
300
300
|
class: "IncodeFlow",
|
|
301
|
-
children: /* @__PURE__ */
|
|
302
|
-
spinnerConfig:
|
|
303
|
-
hideText:
|
|
301
|
+
children: /* @__PURE__ */ c(f, {
|
|
302
|
+
spinnerConfig: r.spinnerConfig,
|
|
303
|
+
hideText: j
|
|
304
304
|
})
|
|
305
|
-
}) : /* @__PURE__ */
|
|
306
|
-
if (
|
|
305
|
+
}) : /* @__PURE__ */ c("div", { class: "IncodeFlow" });
|
|
306
|
+
if (p.status === "error") return /* @__PURE__ */ c("div", {
|
|
307
307
|
class: "IncodeFlow",
|
|
308
|
-
children: /* @__PURE__ */
|
|
308
|
+
children: /* @__PURE__ */ c("div", { children: ["Error: ", p.error] })
|
|
309
309
|
});
|
|
310
|
-
if (
|
|
311
|
-
if (
|
|
312
|
-
let { currentStep: e, config: t, flow:
|
|
313
|
-
if (!e || !t) return /* @__PURE__ */
|
|
310
|
+
if (p.status === "finished") return null;
|
|
311
|
+
if (p?.status === "ready") {
|
|
312
|
+
let { currentStep: e, config: t, flow: n } = p, { flowId: i } = n;
|
|
313
|
+
if (!e || !t) return /* @__PURE__ */ c("div", {
|
|
314
314
|
class: "IncodeFlow",
|
|
315
|
-
children: /* @__PURE__ */
|
|
316
|
-
spinnerConfig:
|
|
317
|
-
hideText:
|
|
315
|
+
children: /* @__PURE__ */ c(f, {
|
|
316
|
+
spinnerConfig: r.spinnerConfig,
|
|
317
|
+
hideText: j
|
|
318
318
|
})
|
|
319
319
|
});
|
|
320
|
-
if (
|
|
321
|
-
if (
|
|
320
|
+
if (x.has(e)) return /* @__PURE__ */ c("div", { class: "IncodeFlow" });
|
|
321
|
+
if (S.status === "unsupported") return /* @__PURE__ */ c("div", {
|
|
322
322
|
class: "IncodeFlow",
|
|
323
|
-
children: /* @__PURE__ */
|
|
323
|
+
children: /* @__PURE__ */ c(m, {
|
|
324
324
|
moduleKey: e,
|
|
325
|
-
onNext: () =>
|
|
325
|
+
onNext: () => h.completeModule()
|
|
326
326
|
})
|
|
327
327
|
});
|
|
328
|
-
if (
|
|
328
|
+
if (S.status === "idle" || S.status === "loading" || S.status === "error") return A ? /* @__PURE__ */ c("div", {
|
|
329
329
|
class: "IncodeFlow",
|
|
330
|
-
children: /* @__PURE__ */
|
|
331
|
-
spinnerConfig:
|
|
332
|
-
hideText:
|
|
330
|
+
children: /* @__PURE__ */ c(f, {
|
|
331
|
+
spinnerConfig: r.spinnerConfig,
|
|
332
|
+
hideText: j
|
|
333
333
|
})
|
|
334
|
-
}) : /* @__PURE__ */
|
|
335
|
-
let { Component: a } =
|
|
336
|
-
if (e === "REDIRECT_TO_MOBILE") return /* @__PURE__ */
|
|
334
|
+
}) : /* @__PURE__ */ c("div", { class: "IncodeFlow" });
|
|
335
|
+
let { Component: a } = S;
|
|
336
|
+
if (e === "REDIRECT_TO_MOBILE") return /* @__PURE__ */ c("div", {
|
|
337
337
|
class: "IncodeFlow",
|
|
338
|
-
children: /* @__PURE__ */
|
|
338
|
+
children: /* @__PURE__ */ c(a, {
|
|
339
339
|
config: t,
|
|
340
|
-
onFinish: () =>
|
|
341
|
-
onContinue: () =>
|
|
342
|
-
onError:
|
|
343
|
-
}, `redirect-to-mobile-${
|
|
340
|
+
onFinish: () => h.completeFlow(),
|
|
341
|
+
onContinue: () => h.completeModule(),
|
|
342
|
+
onError: s
|
|
343
|
+
}, `redirect-to-mobile-${p.currentStepIndex}`)
|
|
344
344
|
});
|
|
345
|
-
if (e === "SELFIE") return /* @__PURE__ */
|
|
345
|
+
if (e === "SELFIE") return /* @__PURE__ */ c("div", {
|
|
346
346
|
class: "IncodeFlow",
|
|
347
|
-
children: /* @__PURE__ */
|
|
347
|
+
children: /* @__PURE__ */ c(a, {
|
|
348
348
|
config: t,
|
|
349
|
-
onFinish: () =>
|
|
349
|
+
onFinish: () => h.completeModule(),
|
|
350
350
|
onError: (e) => {
|
|
351
|
-
|
|
351
|
+
s?.(e ?? "Selfie verification error");
|
|
352
352
|
}
|
|
353
|
-
}, `selfie-${
|
|
353
|
+
}, `selfie-${p.currentStepIndex}`)
|
|
354
354
|
});
|
|
355
|
-
if (e === "AUTHENTICATION") return /* @__PURE__ */
|
|
355
|
+
if (e === "AUTHENTICATION") return /* @__PURE__ */ c("div", {
|
|
356
356
|
class: "IncodeFlow",
|
|
357
|
-
children: /* @__PURE__ */
|
|
357
|
+
children: /* @__PURE__ */ c(a, {
|
|
358
358
|
config: {
|
|
359
359
|
...t,
|
|
360
|
-
authHint:
|
|
360
|
+
authHint: r.authHint
|
|
361
361
|
},
|
|
362
|
-
onFinish: () =>
|
|
362
|
+
onFinish: () => h.completeModule(),
|
|
363
363
|
onError: (e) => {
|
|
364
|
-
|
|
364
|
+
s?.(e ?? "Authentication error");
|
|
365
365
|
}
|
|
366
|
-
}, `authentication-${
|
|
366
|
+
}, `authentication-${p.currentStepIndex}`)
|
|
367
367
|
});
|
|
368
|
-
if (e === "PHONE") return /* @__PURE__ */
|
|
368
|
+
if (e === "PHONE") return /* @__PURE__ */ c("div", {
|
|
369
369
|
class: "IncodeFlow",
|
|
370
|
-
children: /* @__PURE__ */
|
|
370
|
+
children: /* @__PURE__ */ c(a, {
|
|
371
371
|
config: t,
|
|
372
|
-
onFinish: () =>
|
|
372
|
+
onFinish: () => h.completeModule(),
|
|
373
373
|
onError: (e) => {
|
|
374
|
-
|
|
374
|
+
s?.(e ?? "Phone verification error");
|
|
375
375
|
}
|
|
376
|
-
}, `phone-${
|
|
376
|
+
}, `phone-${p.currentStepIndex}`)
|
|
377
377
|
});
|
|
378
378
|
if (e === "EMAIL") {
|
|
379
379
|
let e = t;
|
|
380
|
-
return !e || typeof e.otpVerification != "boolean" || typeof e.otpExpirationInMinutes != "number" ? /* @__PURE__ */
|
|
380
|
+
return !e || typeof e.otpVerification != "boolean" || typeof e.otpExpirationInMinutes != "number" ? /* @__PURE__ */ c("div", {
|
|
381
381
|
class: "IncodeFlow",
|
|
382
|
-
children: /* @__PURE__ */
|
|
383
|
-
}) : /* @__PURE__ */
|
|
382
|
+
children: /* @__PURE__ */ c("div", { children: "Error: Invalid email configuration" })
|
|
383
|
+
}) : /* @__PURE__ */ c("div", {
|
|
384
384
|
class: "IncodeFlow",
|
|
385
|
-
children: /* @__PURE__ */
|
|
385
|
+
children: /* @__PURE__ */ c(a, {
|
|
386
386
|
config: e,
|
|
387
|
-
onFinish: () =>
|
|
387
|
+
onFinish: () => h.completeModule(),
|
|
388
388
|
onError: (e) => {
|
|
389
|
-
|
|
389
|
+
s?.(e ?? "Email verification error");
|
|
390
390
|
}
|
|
391
|
-
}, `email-${
|
|
391
|
+
}, `email-${p.currentStepIndex}`)
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
394
|
if (e === "ID" || e === "SECOND_ID") {
|
|
395
395
|
let n = t;
|
|
396
|
-
return /* @__PURE__ */
|
|
396
|
+
return /* @__PURE__ */ c("div", {
|
|
397
397
|
class: "IncodeFlow",
|
|
398
|
-
children: /* @__PURE__ */
|
|
398
|
+
children: /* @__PURE__ */ c(a, {
|
|
399
399
|
config: e === "SECOND_ID" ? {
|
|
400
400
|
...n,
|
|
401
401
|
isSecondId: !0
|
|
402
402
|
} : n,
|
|
403
|
-
onFinish: () =>
|
|
403
|
+
onFinish: () => h.completeModule(),
|
|
404
404
|
onError: (e) => {
|
|
405
|
-
|
|
405
|
+
s?.(e ?? "ID capture error");
|
|
406
406
|
}
|
|
407
|
-
}, `id-${
|
|
407
|
+
}, `id-${p.currentStepIndex}`)
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
if (e === "ID_OCR") {
|
|
411
|
-
let e = t, n =
|
|
412
|
-
return /* @__PURE__ */
|
|
411
|
+
let e = t, n = p.steps.includes("SECOND_ID");
|
|
412
|
+
return /* @__PURE__ */ c("div", {
|
|
413
413
|
class: "IncodeFlow",
|
|
414
|
-
children: /* @__PURE__ */
|
|
414
|
+
children: /* @__PURE__ */ c(a, {
|
|
415
415
|
config: {
|
|
416
416
|
...e,
|
|
417
417
|
secondId: e.secondId ?? n,
|
|
418
418
|
flowId: i
|
|
419
419
|
},
|
|
420
|
-
onFinish: () =>
|
|
420
|
+
onFinish: () => h.completeModule(),
|
|
421
421
|
onError: (e) => {
|
|
422
|
-
|
|
422
|
+
s?.(e ?? "ID OCR error");
|
|
423
423
|
}
|
|
424
|
-
}, `id-ocr-${
|
|
424
|
+
}, `id-ocr-${p.currentStepIndex}`)
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
|
-
if (e === "CPF_OCR") return /* @__PURE__ */
|
|
427
|
+
if (e === "CPF_OCR") return /* @__PURE__ */ c("div", {
|
|
428
428
|
class: "IncodeFlow",
|
|
429
|
-
children: /* @__PURE__ */
|
|
430
|
-
onFinish: () =>
|
|
429
|
+
children: /* @__PURE__ */ c(a, {
|
|
430
|
+
onFinish: () => h.completeModule(),
|
|
431
431
|
onError: (e) => {
|
|
432
|
-
|
|
432
|
+
s?.(e ?? "CPF OCR error");
|
|
433
433
|
}
|
|
434
|
-
}, `cpf-ocr-${
|
|
434
|
+
}, `cpf-ocr-${p.currentStepIndex}`)
|
|
435
435
|
});
|
|
436
|
-
if (e === "FACE_MATCH") return /* @__PURE__ */
|
|
436
|
+
if (e === "FACE_MATCH") return /* @__PURE__ */ c("div", {
|
|
437
437
|
class: "IncodeFlow",
|
|
438
|
-
children: /* @__PURE__ */
|
|
438
|
+
children: /* @__PURE__ */ c(a, {
|
|
439
439
|
config: t,
|
|
440
|
-
onFinish: () =>
|
|
440
|
+
onFinish: () => h.completeModule(),
|
|
441
441
|
onError: (e) => {
|
|
442
|
-
|
|
442
|
+
s?.(e ?? "Face match error");
|
|
443
443
|
}
|
|
444
|
-
}, `face-match-${
|
|
444
|
+
}, `face-match-${p.currentStepIndex}`)
|
|
445
445
|
});
|
|
446
|
-
if (e === "CURP_VALIDATION") return /* @__PURE__ */
|
|
446
|
+
if (e === "CURP_VALIDATION") return /* @__PURE__ */ c("div", {
|
|
447
447
|
class: "IncodeFlow",
|
|
448
|
-
children: /* @__PURE__ */
|
|
448
|
+
children: /* @__PURE__ */ c(a, {
|
|
449
449
|
config: t,
|
|
450
|
-
onFinish: () =>
|
|
450
|
+
onFinish: () => h.completeModule(),
|
|
451
451
|
onError: (e) => {
|
|
452
|
-
|
|
452
|
+
s?.(e ?? "CURP validation error");
|
|
453
453
|
}
|
|
454
|
-
}, `curp-validation-${
|
|
454
|
+
}, `curp-validation-${p.currentStepIndex}`)
|
|
455
455
|
});
|
|
456
|
-
if (e === "GOVT_VALIDATION_PROVISIONING") return /* @__PURE__ */
|
|
456
|
+
if (e === "GOVT_VALIDATION_PROVISIONING") return /* @__PURE__ */ c("div", {
|
|
457
457
|
class: "IncodeFlow",
|
|
458
|
-
children: /* @__PURE__ */
|
|
458
|
+
children: /* @__PURE__ */ c(a, {
|
|
459
459
|
config: t,
|
|
460
|
-
onFinish: () =>
|
|
460
|
+
onFinish: () => h.completeModule(),
|
|
461
461
|
onError: (e) => {
|
|
462
|
-
|
|
462
|
+
s?.(e ?? "Government validation error");
|
|
463
463
|
}
|
|
464
|
-
}, `govt-validation-${
|
|
464
|
+
}, `govt-validation-${p.currentStepIndex}`)
|
|
465
465
|
});
|
|
466
|
-
if (e === "GEOLOCATION") return /* @__PURE__ */
|
|
466
|
+
if (e === "GEOLOCATION") return /* @__PURE__ */ c("div", {
|
|
467
467
|
class: "IncodeFlow",
|
|
468
|
-
children: /* @__PURE__ */
|
|
468
|
+
children: /* @__PURE__ */ c(a, {
|
|
469
469
|
config: t,
|
|
470
|
-
onFinish: () =>
|
|
470
|
+
onFinish: () => h.completeModule(),
|
|
471
471
|
onError: (e) => {
|
|
472
|
-
|
|
472
|
+
s?.(e ?? "Geolocation error");
|
|
473
473
|
}
|
|
474
|
-
}, `geolocation-${
|
|
474
|
+
}, `geolocation-${p.currentStepIndex}`)
|
|
475
475
|
});
|
|
476
|
-
if (e === "EXTERNAL_VERIFICATION") return /* @__PURE__ */
|
|
476
|
+
if (e === "EXTERNAL_VERIFICATION") return /* @__PURE__ */ c("div", {
|
|
477
477
|
class: "IncodeFlow",
|
|
478
|
-
children: /* @__PURE__ */
|
|
479
|
-
config: { flowId:
|
|
480
|
-
onFinish: () =>
|
|
478
|
+
children: /* @__PURE__ */ c(a, {
|
|
479
|
+
config: { flowId: p.flow.flowId },
|
|
480
|
+
onFinish: () => h.completeModule(),
|
|
481
481
|
onError: (e) => {
|
|
482
|
-
|
|
482
|
+
s?.(e ?? "External verification error");
|
|
483
483
|
}
|
|
484
|
-
}, `ekyc-${
|
|
484
|
+
}, `ekyc-${p.currentStepIndex}`)
|
|
485
485
|
});
|
|
486
|
-
if (e === "DOCUMENT_CAPTURE") return /* @__PURE__ */
|
|
486
|
+
if (e === "DOCUMENT_CAPTURE") return /* @__PURE__ */ c("div", {
|
|
487
487
|
class: "IncodeFlow",
|
|
488
|
-
children: /* @__PURE__ */
|
|
488
|
+
children: /* @__PURE__ */ c(a, {
|
|
489
489
|
config: t,
|
|
490
|
-
onFinish: () =>
|
|
490
|
+
onFinish: () => h.completeModule(),
|
|
491
491
|
onError: (e) => {
|
|
492
|
-
|
|
492
|
+
s?.(e ?? "Document capture error");
|
|
493
493
|
}
|
|
494
|
-
}, `document-capture-${
|
|
494
|
+
}, `document-capture-${p.currentStepIndex}`)
|
|
495
495
|
});
|
|
496
|
-
if (e === "ADDRESS") return /* @__PURE__ */
|
|
496
|
+
if (e === "ADDRESS") return /* @__PURE__ */ c("div", {
|
|
497
497
|
class: "IncodeFlow",
|
|
498
|
-
children: /* @__PURE__ */
|
|
498
|
+
children: /* @__PURE__ */ c(a, {
|
|
499
499
|
config: {
|
|
500
500
|
...t,
|
|
501
501
|
processingType: "addressStatement"
|
|
502
502
|
},
|
|
503
|
-
onFinish: () =>
|
|
503
|
+
onFinish: () => h.completeModule(),
|
|
504
504
|
onError: (e) => {
|
|
505
|
-
|
|
505
|
+
s?.(e ?? "Address capture error");
|
|
506
506
|
}
|
|
507
|
-
}, `address-${
|
|
507
|
+
}, `address-${p.currentStepIndex}`)
|
|
508
508
|
});
|
|
509
|
-
if (e === "SIGNATURE") return /* @__PURE__ */
|
|
509
|
+
if (e === "SIGNATURE") return /* @__PURE__ */ c("div", {
|
|
510
510
|
class: "IncodeFlow",
|
|
511
|
-
children: /* @__PURE__ */
|
|
511
|
+
children: /* @__PURE__ */ c(a, {
|
|
512
512
|
config: t,
|
|
513
|
-
onFinish: () =>
|
|
513
|
+
onFinish: () => h.completeModule(),
|
|
514
514
|
onError: (e) => {
|
|
515
|
-
|
|
515
|
+
s?.(e ?? "Signature capture error");
|
|
516
516
|
}
|
|
517
|
-
}, `signature-${
|
|
517
|
+
}, `signature-${p.currentStepIndex}`)
|
|
518
518
|
});
|
|
519
519
|
if (e === "EKYB") {
|
|
520
520
|
let e = t;
|
|
521
|
-
return /* @__PURE__ */
|
|
521
|
+
return /* @__PURE__ */ c("div", {
|
|
522
522
|
class: "IncodeFlow",
|
|
523
|
-
children: /* @__PURE__ */
|
|
523
|
+
children: /* @__PURE__ */ c(a, {
|
|
524
524
|
config: {
|
|
525
525
|
flowId: i,
|
|
526
526
|
checkBusinessName: e.checkBusinessName,
|
|
@@ -528,108 +528,108 @@ var K = n(() => import("../homeScreen-DnP1jw9A.js").then((e) => ({ default: e.Ho
|
|
|
528
528
|
checkTaxId: e.checkTaxId,
|
|
529
529
|
checkUniqueBeneficialOwner: e.checkUniqueBeneficialOwner
|
|
530
530
|
},
|
|
531
|
-
onFinish: () =>
|
|
531
|
+
onFinish: () => h.completeModule(),
|
|
532
532
|
onError: (e) => {
|
|
533
|
-
|
|
533
|
+
s?.(e ?? "eKYB verification error");
|
|
534
534
|
}
|
|
535
|
-
}, `ekyb-${
|
|
535
|
+
}, `ekyb-${p.currentStepIndex}`)
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
if (e === "COMBINED_CONSENT") return /* @__PURE__ */
|
|
538
|
+
if (e === "COMBINED_CONSENT") return /* @__PURE__ */ c("div", {
|
|
539
539
|
class: "IncodeFlow",
|
|
540
|
-
children: /* @__PURE__ */
|
|
540
|
+
children: /* @__PURE__ */ c(a, {
|
|
541
541
|
config: t,
|
|
542
|
-
onFinish: () =>
|
|
542
|
+
onFinish: () => h.completeModule(),
|
|
543
543
|
onError: (e) => {
|
|
544
|
-
|
|
544
|
+
s?.(e ?? "Combined consent error");
|
|
545
545
|
}
|
|
546
|
-
}, `combined-consent-${
|
|
546
|
+
}, `combined-consent-${p.currentStepIndex}`)
|
|
547
547
|
});
|
|
548
|
-
if (e === "MANDATORY_CONSENT") return /* @__PURE__ */
|
|
548
|
+
if (e === "MANDATORY_CONSENT") return /* @__PURE__ */ c("div", {
|
|
549
549
|
class: "IncodeFlow",
|
|
550
|
-
children: /* @__PURE__ */
|
|
550
|
+
children: /* @__PURE__ */ c(a, {
|
|
551
551
|
config: t,
|
|
552
|
-
onFinish: () =>
|
|
552
|
+
onFinish: () => h.completeModule(),
|
|
553
553
|
onError: (e) => {
|
|
554
|
-
|
|
554
|
+
s?.(e ?? "Mandatory consent error");
|
|
555
555
|
}
|
|
556
|
-
}, `mandatory-consent-${
|
|
556
|
+
}, `mandatory-consent-${p.currentStepIndex}`)
|
|
557
557
|
});
|
|
558
558
|
if (e === "AE_SIGNATURE" || e === "QE_SIGNATURE") {
|
|
559
559
|
let n = t, r = e === "QE_SIGNATURE" ? "qe" : "ae";
|
|
560
|
-
return /* @__PURE__ */
|
|
560
|
+
return /* @__PURE__ */ c("div", {
|
|
561
561
|
class: "IncodeFlow",
|
|
562
|
-
children: /* @__PURE__ */
|
|
562
|
+
children: /* @__PURE__ */ c(a, {
|
|
563
563
|
config: {
|
|
564
564
|
uploadDocument: n.uploadDocument,
|
|
565
565
|
downloadDocument: n.downloadDocument
|
|
566
566
|
},
|
|
567
|
-
onFinish: () =>
|
|
567
|
+
onFinish: () => h.completeModule(),
|
|
568
568
|
onError: (e) => {
|
|
569
|
-
|
|
569
|
+
s?.(e ?? `${r.toUpperCase()} Signature error`);
|
|
570
570
|
}
|
|
571
|
-
}, `${r}-signature-${
|
|
571
|
+
}, `${r}-signature-${p.currentStepIndex}`)
|
|
572
572
|
});
|
|
573
573
|
}
|
|
574
|
-
if (e === "ANTIFRAUD") return /* @__PURE__ */
|
|
574
|
+
if (e === "ANTIFRAUD") return /* @__PURE__ */ c("div", {
|
|
575
575
|
class: "IncodeFlow",
|
|
576
|
-
children: /* @__PURE__ */
|
|
577
|
-
onFinish: () =>
|
|
576
|
+
children: /* @__PURE__ */ c(a, {
|
|
577
|
+
onFinish: () => h.completeModule(),
|
|
578
578
|
onError: (e) => {
|
|
579
|
-
|
|
579
|
+
s?.(e ?? "Antifraud check error");
|
|
580
580
|
}
|
|
581
|
-
}, `antifraud-${
|
|
581
|
+
}, `antifraud-${p.currentStepIndex}`)
|
|
582
582
|
});
|
|
583
|
-
if (e === "CUSTOM_FIELDS") return /* @__PURE__ */
|
|
583
|
+
if (e === "CUSTOM_FIELDS") return /* @__PURE__ */ c("div", {
|
|
584
584
|
class: "IncodeFlow",
|
|
585
|
-
children: /* @__PURE__ */
|
|
585
|
+
children: /* @__PURE__ */ c(a, {
|
|
586
586
|
config: t,
|
|
587
|
-
onFinish: () =>
|
|
587
|
+
onFinish: () => h.completeModule(),
|
|
588
588
|
onError: (e) => {
|
|
589
|
-
|
|
589
|
+
s?.(e ?? "Custom fields error");
|
|
590
590
|
}
|
|
591
|
-
}, `custom-fields-${
|
|
591
|
+
}, `custom-fields-${p.currentStepIndex}`)
|
|
592
592
|
});
|
|
593
|
-
if (e === "WATCHLIST") return /* @__PURE__ */
|
|
593
|
+
if (e === "WATCHLIST") return /* @__PURE__ */ c("div", {
|
|
594
594
|
class: "IncodeFlow",
|
|
595
|
-
children: /* @__PURE__ */
|
|
596
|
-
onFinish: () =>
|
|
595
|
+
children: /* @__PURE__ */ c(a, {
|
|
596
|
+
onFinish: () => h.completeModule(),
|
|
597
597
|
onError: (e) => {
|
|
598
|
-
|
|
598
|
+
s?.(e ?? "Watchlist check error");
|
|
599
599
|
}
|
|
600
|
-
}, `watchlist-${
|
|
600
|
+
}, `watchlist-${p.currentStepIndex}`)
|
|
601
601
|
});
|
|
602
|
-
if (e === "WATCHLIST_BUSINESS") return /* @__PURE__ */
|
|
602
|
+
if (e === "WATCHLIST_BUSINESS") return /* @__PURE__ */ c("div", {
|
|
603
603
|
class: "IncodeFlow",
|
|
604
|
-
children: /* @__PURE__ */
|
|
605
|
-
onFinish: () =>
|
|
604
|
+
children: /* @__PURE__ */ c(a, {
|
|
605
|
+
onFinish: () => h.completeModule(),
|
|
606
606
|
onError: (e) => {
|
|
607
|
-
|
|
607
|
+
s?.(e ?? "Watchlist for business check error");
|
|
608
608
|
}
|
|
609
|
-
}, `watchlist-for-business-${
|
|
609
|
+
}, `watchlist-for-business-${p.currentStepIndex}`)
|
|
610
610
|
});
|
|
611
|
-
if (e === "INCODE_WATCHLIST") return /* @__PURE__ */
|
|
611
|
+
if (e === "INCODE_WATCHLIST") return /* @__PURE__ */ c("div", {
|
|
612
612
|
class: "IncodeFlow",
|
|
613
|
-
children: /* @__PURE__ */
|
|
613
|
+
children: /* @__PURE__ */ c(a, {
|
|
614
614
|
config: t,
|
|
615
|
-
onFinish: () =>
|
|
615
|
+
onFinish: () => h.completeModule(),
|
|
616
616
|
onError: (e) => {
|
|
617
|
-
|
|
617
|
+
s?.(e ?? "Custom watchlist check error");
|
|
618
618
|
}
|
|
619
|
-
}, `incode-watchlist-${
|
|
619
|
+
}, `incode-watchlist-${p.currentStepIndex}`)
|
|
620
620
|
});
|
|
621
|
-
if (e === "CROSS_DOCUMENT_DATA_MATCH") return /* @__PURE__ */
|
|
621
|
+
if (e === "CROSS_DOCUMENT_DATA_MATCH") return /* @__PURE__ */ c("div", {
|
|
622
622
|
class: "IncodeFlow",
|
|
623
|
-
children: /* @__PURE__ */
|
|
624
|
-
onFinish: () =>
|
|
623
|
+
children: /* @__PURE__ */ c(a, {
|
|
624
|
+
onFinish: () => h.completeModule(),
|
|
625
625
|
onError: (e) => {
|
|
626
|
-
|
|
626
|
+
s?.(e ?? "Cross document data match error");
|
|
627
627
|
}
|
|
628
|
-
}, `cross-document-data-match-${
|
|
628
|
+
}, `cross-document-data-match-${p.currentStepIndex}`)
|
|
629
629
|
});
|
|
630
|
-
if (e === "DYNAMIC_FORMS") return /* @__PURE__ */
|
|
630
|
+
if (e === "DYNAMIC_FORMS") return /* @__PURE__ */ c("div", {
|
|
631
631
|
class: "IncodeFlow",
|
|
632
|
-
children: /* @__PURE__ */
|
|
632
|
+
children: /* @__PURE__ */ c(a, {
|
|
633
633
|
config: { screens: t.screens.map((e) => ({
|
|
634
634
|
title: e.title,
|
|
635
635
|
hideTitle: e.hideTitle,
|
|
@@ -643,19 +643,19 @@ var K = n(() => import("../homeScreen-DnP1jw9A.js").then((e) => ({ default: e.Ho
|
|
|
643
643
|
options: e.options
|
|
644
644
|
}))
|
|
645
645
|
})) },
|
|
646
|
-
onFinish: () =>
|
|
646
|
+
onFinish: () => h.completeModule(),
|
|
647
647
|
onError: (e) => {
|
|
648
|
-
|
|
648
|
+
s?.(e ?? "Dynamic forms error");
|
|
649
649
|
}
|
|
650
|
-
}, `dynamic-forms-${
|
|
650
|
+
}, `dynamic-forms-${p.currentStepIndex}`)
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
return null;
|
|
654
|
-
},
|
|
654
|
+
}, Y = ({ config: e, onFinish: t = () => {}, onError: n }) => /* @__PURE__ */ c(d, { children: e ? /* @__PURE__ */ c(J, {
|
|
655
655
|
config: e,
|
|
656
656
|
onFinish: t,
|
|
657
657
|
onError: n
|
|
658
658
|
}) : null });
|
|
659
|
-
|
|
659
|
+
p(Y, "incode-flow");
|
|
660
660
|
//#endregion
|
|
661
|
-
export {
|
|
661
|
+
export { Y as IncodeFlow, V as preloadIncodeFlow };
|