@incodetech/web 0.0.0-dev-20260415-aae94ed → 0.0.0-dev-20260415-20a2fc4
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-Bm7wu8Ay.js → addressAutocomplete-DWVphfl5.js} +3 -3
- 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 +2 -2
- package/dist/cross-document-data-match/cross-document-data-match.es.js +1 -1
- package/dist/curp-validation/curp-validation.es.js +2 -2
- package/dist/{documentCapture-BAvYKA3R.js → documentCapture-CQ32GpB4.js} +4 -4
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-IxSxK7ET.js +2 -0
- package/dist/{ekybModule-Dm2o6hhH.js → ekybModule-NJtVSNt8.js} +5 -5
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-DY9oh5RP.js → ekycModule-CHJc0y79.js} +5 -5
- package/dist/ekycModule-D8YFovqq.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-BL-CWlx2.js → electronic-signature-C7D9PxFO.js} +3 -3
- package/dist/email/email.es.js +4 -4
- package/dist/{extensibility-DXRHshVD.js → extensibility-BzbZC3Uh.js} +19 -19
- package/dist/extensibility.es.js +8 -8
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/{faceMatch-BFg_1Bof.js → faceMatch-Don75gXW.js} +2 -2
- package/dist/faceMatch-Z6cCZZMi.js +2 -0
- package/dist/flow/flow.es.js +185 -200
- package/dist/{formField-B0JGrWLv.js → formField-DRqCjJYu.js} +1 -1
- package/dist/geolocation/geolocation.es.js +2 -2
- package/dist/governmentValidation/governmentValidation.es.js +3 -3
- package/dist/home/home.es.js +4 -4
- package/dist/{i18n-Cnoc6xWX.js → i18n-BijwYtJr.js} +1 -1
- package/dist/id/id.es.js +5 -5
- package/dist/identity-reuse/identity-reuse.es.js +2 -2
- package/dist/{incodeComponent-BL7Lq_Hw.js → incodeComponent-Cd290pHH.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{language-Bdt6A1X5.js → language-Dvo4jXwx.js} +1 -1
- package/dist/{mandatoryConsent-Y9IDP5M2.js → mandatoryConsent-7CnQf3lz.js} +2 -2
- package/dist/{otpInput-C386FL2_.js → otpInput-BiUL8Ebu.js} +1 -1
- package/dist/phone/phone.es.js +3 -3
- package/dist/{processing-CfMoBRwi.js → processing-CMIsTP-t.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +1 -1
- package/dist/{redirectToMobile-CgJyjGgD.js → redirectToMobile-CFzDfmuH.js} +4 -4
- package/dist/selfie/selfie.es.js +3 -3
- package/dist/{settings-DDnju9SK.js → settings-tMRrQul_.js} +2 -2
- package/dist/{setup-Dp1XRMxU.js → setup-n7xLstSl.js} +1 -1
- package/dist/signature/signature.es.js +2 -2
- package/dist/{tutorial-B6nLj9qX.js → tutorial-gP0l4CuT.js} +3 -3
- package/dist/types/flow.d.ts +10 -14
- package/dist/{useModuleLoader-CqNG05an.js → useModuleLoader-D_WjZsnk.js} +69 -63
- package/dist/{verificationResult-H3bAOcJQ.js → verificationResult-_HH0v_HX.js} +1 -1
- package/dist/watchlist/watchlist.es.js +2 -2
- package/dist/workflow/workflow.es.js +4 -4
- package/package.json +2 -2
- package/dist/ekybModule-TZxTa8g7.js +0 -2
- package/dist/ekycModule-BcB5KUcq.js +0 -2
- package/dist/faceMatch-CGhm0gRu.js +0 -2
- package/dist/redirectToMobile-Dn537v_a.js +0 -2
- /package/dist/{aligndevicelottie-B1CLGkxR.js → aligndevicelottie-BfnvOtwi.js} +0 -0
- /package/dist/{back-horizontal-hint-D4KqqktU.js → back-horizontal-hint-CpDPt7Pn.js} +0 -0
- /package/dist/{back-tutorial-DeDjaYJX.js → back-tutorial-DRNlpp1o.js} +0 -0
- /package/dist/{back-vertical-hint-D8emR-GA.js → back-vertical-hint-CMS6HTd5.js} +0 -0
- /package/dist/{backdevicelottie-DCq4mOEO.js → backdevicelottie-DqTioBhp.js} +0 -0
- /package/dist/{blurdevicelottie-G3-Q0BsS.js → blurdevicelottie-BCYf_azj.js} +0 -0
- /package/dist/{browser-ponyfill-VSeGKSP8.js → browser-ponyfill-DcR_MTou.js} +0 -0
- /package/dist/{flip-animation-DE83SNb1.js → flip-animation-Dj8sBkxM.js} +0 -0
- /package/dist/{front-horizontal-hint-Cxr8YyxM.js → front-horizontal-hint-C204EjG5.js} +0 -0
- /package/dist/{front-vertical-hint-BfFYlwRS.js → front-vertical-hint-BT8dqgFS.js} +0 -0
- /package/dist/{frontdevicelottie-wDAQ0uwL.js → frontdevicelottie-BOCUyhYK.js} +0 -0
- /package/dist/{glaredevicelottie-CQk5l0qV.js → glaredevicelottie-g5gLJDcn.js} +0 -0
- /package/dist/{id-laser-h-9vBRTgJV.js → id-laser-h-C9wj3dpL.js} +0 -0
- /package/dist/{id-laser-v-CF-OEQaG.js → id-laser-v-Bmnxnt0M.js} +0 -0
- /package/dist/{id-tutorial-BmTbJh7P.js → id-tutorial-CFTli-M3.js} +0 -0
- /package/dist/{passport-horizontal-hint-B3WOpolp.js → passport-horizontal-hint-DQ_bncwr.js} +0 -0
- /package/dist/{passport-tutorial-DUMT508V.js → passport-tutorial-Bihd5YfK.js} +0 -0
- /package/dist/{passport-vertical-hint-dyoMIia1.js → passport-vertical-hint-Bck8hVuX.js} +0 -0
- /package/dist/{phoneInput--MAZwPEw.js → phoneInput-3AdvQaEd.js} +0 -0
- /package/dist/{selfieTutorial-DE1_g-Lg.js → selfieTutorial-Cu9vXjss.js} +0 -0
package/dist/flow/flow.es.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-BijwYtJr.js";
|
|
2
2
|
import { _ as t, l as n, p as r, v as i } from "../vendor-preact-D6SntenC.js";
|
|
3
3
|
import { t as a } from "../uiConfig-CwpQ-IM6.js";
|
|
4
|
-
import { o, t as s } from "../incodeComponent-
|
|
4
|
+
import { o, t as s } from "../incodeComponent-Cd290pHH.js";
|
|
5
5
|
import { t as c } from "../spinner-Dg3lumvu.js";
|
|
6
6
|
import "../spinner-BEm5Wf_k.js";
|
|
7
7
|
import { t as l } from "../incodeModule-Di2OUZ5_.js";
|
|
8
|
-
import { t as u } from "../
|
|
9
|
-
import {
|
|
10
|
-
import { getRequiredWasmPipelines as b } from "@incodetech/core/flow";
|
|
8
|
+
import { a as u, c as d, i as f, n as p, o as m, r as h, s as g, t as _, u as v } from "../useModuleLoader-D_WjZsnk.js";
|
|
9
|
+
import { getRequiredWasmPipelines as y } from "@incodetech/core/flow";
|
|
11
10
|
//#region src/modules/flow/preloadFlow.ts
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
let t =
|
|
11
|
+
var b = /* @__PURE__ */ new Map();
|
|
12
|
+
function x(e) {
|
|
13
|
+
let t = b.get(e);
|
|
15
14
|
if (!t) throw Error("Preload state not found");
|
|
16
15
|
return {
|
|
17
16
|
get isReady() {
|
|
@@ -27,16 +26,16 @@ function S(e) {
|
|
|
27
26
|
}
|
|
28
27
|
},
|
|
29
28
|
cancel() {
|
|
30
|
-
t.status === "loading" && (t.unsubscribe && t.unsubscribe(), t.flowManager.stop(), t.readyReject(/* @__PURE__ */ Error("Preload cancelled")),
|
|
29
|
+
t.status === "loading" && (t.unsubscribe && t.unsubscribe(), t.flowManager.stop(), t.readyReject(/* @__PURE__ */ Error("Preload cancelled")), b.delete(e));
|
|
31
30
|
}
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
|
-
function
|
|
33
|
+
function S(e) {
|
|
35
34
|
let { token: t } = e;
|
|
36
|
-
if (
|
|
35
|
+
if (b.has(t)) return x(t);
|
|
37
36
|
let n, r, i = new Promise((e, t) => {
|
|
38
37
|
n = e, r = t;
|
|
39
|
-
}), a =
|
|
38
|
+
}), a = u(e), o = {
|
|
40
39
|
status: "loading",
|
|
41
40
|
flowManager: a,
|
|
42
41
|
config: e,
|
|
@@ -44,97 +43,97 @@ function C(e) {
|
|
|
44
43
|
readyResolve: n,
|
|
45
44
|
readyReject: r
|
|
46
45
|
};
|
|
47
|
-
return
|
|
46
|
+
return b.set(t, o), (async () => {
|
|
48
47
|
try {
|
|
49
|
-
await
|
|
48
|
+
await g({
|
|
50
49
|
apiURL: e.apiURL,
|
|
51
50
|
token: e.token,
|
|
52
51
|
lang: e.lang,
|
|
53
52
|
flowManager: a
|
|
54
53
|
});
|
|
55
|
-
let t = e.disableDashboardTheme ? Promise.resolve({}) :
|
|
54
|
+
let t = e.disableDashboardTheme ? Promise.resolve({}) : m().then((e) => {
|
|
56
55
|
o.theme = e.theme, o.uiConfig = e.uiConfig;
|
|
57
56
|
});
|
|
58
57
|
o.unsubscribe = a.subscribe((t) => {
|
|
59
58
|
if (t.status === "ready") {
|
|
60
59
|
let n = t;
|
|
61
|
-
e.wasmConfig &&
|
|
60
|
+
e.wasmConfig && v(n, e.wasmConfig), d(n), o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "ready", o.readyResolve();
|
|
62
61
|
} else t.status === "error" && (o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "error", o.error = t.error, o.readyReject(Error(t.error)));
|
|
63
62
|
}), await t;
|
|
64
63
|
} catch (e) {
|
|
65
|
-
o.status = "error", o.error = e instanceof Error ? e.message : "Failed to preload", o.readyReject(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to preload")),
|
|
64
|
+
o.status = "error", o.error = e instanceof Error ? e.message : "Failed to preload", o.readyReject(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to preload")), b.delete(t);
|
|
66
65
|
}
|
|
67
|
-
})(),
|
|
66
|
+
})(), x(t);
|
|
68
67
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
68
|
+
function C(e) {
|
|
69
|
+
return b.get(e) ?? null;
|
|
71
70
|
}
|
|
72
|
-
function
|
|
73
|
-
let t =
|
|
74
|
-
return t &&
|
|
71
|
+
function w(e) {
|
|
72
|
+
let t = C(e);
|
|
73
|
+
return t && b.delete(e), t;
|
|
75
74
|
}
|
|
76
75
|
//#endregion
|
|
77
76
|
//#region src/modules/flow/useFlowInitialization.ts
|
|
78
|
-
function
|
|
79
|
-
let { apiURL: i, token: o, lang: s, disableDashboardTheme: c, enableHome: l, onError:
|
|
80
|
-
let
|
|
81
|
-
if (
|
|
82
|
-
let e =
|
|
77
|
+
function T(e) {
|
|
78
|
+
let { apiURL: i, token: o, lang: s, disableDashboardTheme: c, enableHome: l, onError: d } = e, f = n(null), [p, h] = r(() => {
|
|
79
|
+
let t = C(o);
|
|
80
|
+
if (t?.status === "ready") {
|
|
81
|
+
let e = w(o);
|
|
83
82
|
if (e) return f.current = e.flowManager, e.uiConfig && a(e.uiConfig), {
|
|
84
83
|
status: "ready",
|
|
85
84
|
flowManager: e.flowManager
|
|
86
85
|
};
|
|
87
86
|
}
|
|
88
|
-
let
|
|
89
|
-
return f.current =
|
|
87
|
+
let n = u(e);
|
|
88
|
+
return f.current = n, t?.status === "error" ? {
|
|
90
89
|
status: "error",
|
|
91
|
-
error:
|
|
92
|
-
flowManager:
|
|
90
|
+
error: t.error ?? "Preload failed",
|
|
91
|
+
flowManager: n
|
|
93
92
|
} : {
|
|
94
93
|
status: "initializing",
|
|
95
|
-
flowManager:
|
|
94
|
+
flowManager: n
|
|
96
95
|
};
|
|
97
|
-
}),
|
|
96
|
+
}), _ = n(!1);
|
|
98
97
|
return t(() => {
|
|
99
98
|
if (p.status !== "initializing") return;
|
|
100
|
-
let e =
|
|
99
|
+
let e = C(o);
|
|
101
100
|
if (e?.status === "loading") {
|
|
102
101
|
e.readyPromise.then(() => {
|
|
103
|
-
let e =
|
|
104
|
-
e && (f.current = e.flowManager, e.uiConfig && a(e.uiConfig),
|
|
102
|
+
let e = w(o);
|
|
103
|
+
e && (f.current = e.flowManager, e.uiConfig && a(e.uiConfig), h({
|
|
105
104
|
status: "ready",
|
|
106
105
|
flowManager: e.flowManager
|
|
107
106
|
}));
|
|
108
107
|
}).catch((e) => {
|
|
109
108
|
let t = e instanceof Error ? e.message : "Preload failed";
|
|
110
|
-
|
|
109
|
+
h({
|
|
111
110
|
status: "error",
|
|
112
111
|
error: t,
|
|
113
112
|
flowManager: p.flowManager
|
|
114
|
-
}),
|
|
113
|
+
}), d?.(t);
|
|
115
114
|
});
|
|
116
115
|
return;
|
|
117
116
|
}
|
|
118
|
-
|
|
117
|
+
_.current || (_.current = !0, (async () => {
|
|
119
118
|
try {
|
|
120
|
-
await
|
|
119
|
+
await g({
|
|
121
120
|
apiURL: i,
|
|
122
121
|
token: o,
|
|
123
122
|
lang: s,
|
|
124
123
|
flowManager: p.flowManager
|
|
125
|
-
}), await (c ? Promise.resolve() :
|
|
124
|
+
}), await (c ? Promise.resolve() : m().then((e) => {
|
|
126
125
|
e.uiConfig && a(e.uiConfig);
|
|
127
|
-
})),
|
|
126
|
+
})), h({
|
|
128
127
|
status: "ready",
|
|
129
128
|
flowManager: p.flowManager
|
|
130
129
|
});
|
|
131
130
|
} catch (e) {
|
|
132
131
|
let t = e instanceof Error ? e.message : "Failed to initialize SDK";
|
|
133
|
-
|
|
132
|
+
h({
|
|
134
133
|
status: "error",
|
|
135
134
|
error: t,
|
|
136
135
|
flowManager: p.flowManager
|
|
137
|
-
}),
|
|
136
|
+
}), d?.(t);
|
|
138
137
|
}
|
|
139
138
|
})());
|
|
140
139
|
}, [
|
|
@@ -143,53 +142,49 @@ function E(e) {
|
|
|
143
142
|
s,
|
|
144
143
|
c,
|
|
145
144
|
l,
|
|
146
|
-
|
|
145
|
+
d,
|
|
147
146
|
p
|
|
148
147
|
]), p;
|
|
149
148
|
}
|
|
150
149
|
//#endregion
|
|
151
150
|
//#region src/modules/flow/flow.tsx
|
|
152
|
-
var
|
|
153
|
-
let { t:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
onError: s
|
|
160
|
-
}), [x, S] = o(() => _.flowManager, { autoLoad: !1 }), C = x?.status === "ready" && x.flow.redirectDesktopToMobile && !f, w = v({
|
|
161
|
-
moduleKey: x?.status === "ready" && !C ? x.currentStep : void 0,
|
|
162
|
-
modules: p,
|
|
151
|
+
var E = ({ config: n, onFinish: r, onError: a }) => {
|
|
152
|
+
let { t: s, i18n: l } = e(), u = T({
|
|
153
|
+
...n,
|
|
154
|
+
onError: a
|
|
155
|
+
}), [d, m] = o(() => u.flowManager, { autoLoad: !1 }), g = _({
|
|
156
|
+
moduleKey: d?.status === "ready" ? d.currentStep : void 0,
|
|
157
|
+
modules: f,
|
|
163
158
|
onModuleLoading: n.onModuleLoading,
|
|
164
159
|
onModuleLoaded: n.onModuleLoaded,
|
|
165
|
-
onError:
|
|
160
|
+
onError: a
|
|
166
161
|
});
|
|
167
|
-
if (
|
|
168
|
-
n.lang &&
|
|
169
|
-
}, [n.lang,
|
|
170
|
-
if (
|
|
171
|
-
let e =
|
|
172
|
-
t.length > 0 && (n.onWasmWarmup?.(t),
|
|
162
|
+
if (p(d?.status === "ready" ? d.steps : [], d?.status === "ready" ? d.currentStepIndex : -1, f), t(() => {
|
|
163
|
+
n.lang && l.language !== n.lang && l.changeLanguage(n.lang);
|
|
164
|
+
}, [n.lang, l]), t(() => {
|
|
165
|
+
if (d?.status === "ready" && n.wasmConfig) {
|
|
166
|
+
let e = d, t = y(e.flow);
|
|
167
|
+
t.length > 0 && (n.onWasmWarmup?.(t), v(e, n.wasmConfig));
|
|
173
168
|
}
|
|
174
|
-
}, [
|
|
175
|
-
|
|
169
|
+
}, [d, n]), t(() => {
|
|
170
|
+
d?.status === "finished" && r(d.finishStatus);
|
|
176
171
|
}, [
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
172
|
+
d?.status,
|
|
173
|
+
r,
|
|
174
|
+
d
|
|
180
175
|
]), t(() => {
|
|
181
|
-
|
|
176
|
+
d?.status === "error" && a && a(d.error);
|
|
182
177
|
}, [
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
178
|
+
d?.status,
|
|
179
|
+
a,
|
|
180
|
+
d
|
|
186
181
|
]), t(() => {
|
|
187
|
-
|
|
188
|
-
}, [
|
|
182
|
+
d?.status === "ready" && d.currentStep === "ID" && d.steps.includes("TUTORIAL_ID") && m.completeModule();
|
|
183
|
+
}, [d, m]), u.status === "error") return /* @__PURE__ */ i("div", {
|
|
189
184
|
class: "IncodeFlow",
|
|
190
|
-
children: /* @__PURE__ */ i("div", { children: ["Error: ",
|
|
185
|
+
children: /* @__PURE__ */ i("div", { children: ["Error: ", u.error] })
|
|
191
186
|
});
|
|
192
|
-
if (
|
|
187
|
+
if (u.status === "initializing" || !d || d.status === "idle" || d.status === "loading") return /* @__PURE__ */ i("div", {
|
|
193
188
|
class: "IncodeFlow",
|
|
194
189
|
children: /* @__PURE__ */ i(c, {
|
|
195
190
|
title: n.spinnerConfig?.title,
|
|
@@ -198,46 +193,30 @@ var D = ({ config: n, onFinish: a, onError: s }) => {
|
|
|
198
193
|
fullScreen: !0
|
|
199
194
|
})
|
|
200
195
|
});
|
|
201
|
-
if (
|
|
196
|
+
if (d.status === "error") return /* @__PURE__ */ i("div", {
|
|
202
197
|
class: "IncodeFlow",
|
|
203
|
-
children: /* @__PURE__ */ i("div", { children: ["Error: ",
|
|
198
|
+
children: /* @__PURE__ */ i("div", { children: ["Error: ", d.error] })
|
|
204
199
|
});
|
|
205
|
-
if (
|
|
206
|
-
if (
|
|
207
|
-
let { currentStep: e, config: t, flow: { flowId: r
|
|
208
|
-
if (C) return /* @__PURE__ */ i("div", {
|
|
209
|
-
class: "IncodeFlow",
|
|
210
|
-
children: /* @__PURE__ */ i(u, {
|
|
211
|
-
config: {
|
|
212
|
-
flowId: r,
|
|
213
|
-
disableSmsOption: a,
|
|
214
|
-
addContinueToDesktop: o,
|
|
215
|
-
qrPhishingResistance: d,
|
|
216
|
-
authHint: n.authHint,
|
|
217
|
-
lang: n.lang
|
|
218
|
-
},
|
|
219
|
-
onFinish: () => S.completeFlow(),
|
|
220
|
-
onContinue: () => h(!0),
|
|
221
|
-
onError: s
|
|
222
|
-
})
|
|
223
|
-
});
|
|
200
|
+
if (d.status === "finished") return null;
|
|
201
|
+
if (d?.status === "ready") {
|
|
202
|
+
let { currentStep: e, config: t, flow: { flowId: r } } = d;
|
|
224
203
|
if (!e || !t) return /* @__PURE__ */ i("div", {
|
|
225
204
|
class: "IncodeFlow",
|
|
226
205
|
children: /* @__PURE__ */ i(c, {
|
|
227
|
-
title: n.spinnerConfig?.title ??
|
|
228
|
-
subtitle: n.spinnerConfig?.subtitle ??
|
|
206
|
+
title: n.spinnerConfig?.title ?? s("loadingCircle.hangOn"),
|
|
207
|
+
subtitle: n.spinnerConfig?.subtitle ?? s("loadingCircle.validating"),
|
|
229
208
|
size: n.spinnerConfig?.size,
|
|
230
209
|
fullScreen: !0
|
|
231
210
|
})
|
|
232
211
|
});
|
|
233
|
-
if (
|
|
212
|
+
if (g.status === "unsupported") return /* @__PURE__ */ i("div", {
|
|
234
213
|
class: "IncodeFlow",
|
|
235
|
-
children: /* @__PURE__ */ i(
|
|
214
|
+
children: /* @__PURE__ */ i(h, {
|
|
236
215
|
moduleKey: e,
|
|
237
|
-
onNext: () =>
|
|
216
|
+
onNext: () => m.completeModule()
|
|
238
217
|
})
|
|
239
218
|
});
|
|
240
|
-
if (
|
|
219
|
+
if (g.status === "idle" || g.status === "loading" || g.status === "error") return /* @__PURE__ */ i("div", {
|
|
241
220
|
class: "IncodeFlow",
|
|
242
221
|
children: /* @__PURE__ */ i(c, {
|
|
243
222
|
title: n.spinnerConfig?.title,
|
|
@@ -246,50 +225,56 @@ var D = ({ config: n, onFinish: a, onError: s }) => {
|
|
|
246
225
|
fullScreen: !0
|
|
247
226
|
})
|
|
248
227
|
});
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
228
|
+
let { Component: o } = g;
|
|
229
|
+
if (e === "REDIRECT_TO_MOBILE") return /* @__PURE__ */ i("div", {
|
|
230
|
+
class: "IncodeFlow",
|
|
231
|
+
children: /* @__PURE__ */ i(o, {
|
|
232
|
+
config: t,
|
|
233
|
+
onFinish: () => m.completeFlow(),
|
|
234
|
+
onContinue: () => m.completeModule(),
|
|
235
|
+
onError: a
|
|
236
|
+
}, `redirect-to-mobile-${d.currentStepIndex}`)
|
|
237
|
+
});
|
|
238
|
+
if (e === "HOME") return /* @__PURE__ */ i("div", {
|
|
239
|
+
class: "IncodeFlow",
|
|
240
|
+
children: /* @__PURE__ */ i(o, {
|
|
241
|
+
config: t,
|
|
242
|
+
onFinish: () => m.completeModule(),
|
|
243
|
+
onError: a
|
|
244
|
+
}, `home-${d.currentStepIndex}`)
|
|
245
|
+
});
|
|
261
246
|
if (e === "SELFIE") return /* @__PURE__ */ i("div", {
|
|
262
247
|
class: "IncodeFlow",
|
|
263
|
-
children: /* @__PURE__ */ i(
|
|
248
|
+
children: /* @__PURE__ */ i(o, {
|
|
264
249
|
config: t,
|
|
265
|
-
onFinish: () =>
|
|
250
|
+
onFinish: () => m.completeModule(),
|
|
266
251
|
onError: (e) => {
|
|
267
|
-
|
|
252
|
+
a?.(e ?? "Selfie verification error");
|
|
268
253
|
}
|
|
269
|
-
}, `selfie-${
|
|
254
|
+
}, `selfie-${d.currentStepIndex}`)
|
|
270
255
|
});
|
|
271
256
|
if (e === "AUTHENTICATION") return /* @__PURE__ */ i("div", {
|
|
272
257
|
class: "IncodeFlow",
|
|
273
|
-
children: /* @__PURE__ */ i(
|
|
258
|
+
children: /* @__PURE__ */ i(o, {
|
|
274
259
|
config: {
|
|
275
260
|
...t,
|
|
276
261
|
authHint: n.authHint
|
|
277
262
|
},
|
|
278
|
-
onFinish: () =>
|
|
263
|
+
onFinish: () => m.completeModule(),
|
|
279
264
|
onError: (e) => {
|
|
280
|
-
|
|
265
|
+
a?.(e ?? "Authentication error");
|
|
281
266
|
}
|
|
282
|
-
}, `authentication-${
|
|
267
|
+
}, `authentication-${d.currentStepIndex}`)
|
|
283
268
|
});
|
|
284
269
|
if (e === "PHONE") return /* @__PURE__ */ i("div", {
|
|
285
270
|
class: "IncodeFlow",
|
|
286
|
-
children: /* @__PURE__ */ i(
|
|
271
|
+
children: /* @__PURE__ */ i(o, {
|
|
287
272
|
config: t,
|
|
288
|
-
onFinish: () =>
|
|
273
|
+
onFinish: () => m.completeModule(),
|
|
289
274
|
onError: (e) => {
|
|
290
|
-
|
|
275
|
+
a?.(e ?? "Phone verification error");
|
|
291
276
|
}
|
|
292
|
-
}, `phone-${
|
|
277
|
+
}, `phone-${d.currentStepIndex}`)
|
|
293
278
|
});
|
|
294
279
|
if (e === "EMAIL") {
|
|
295
280
|
let e = t;
|
|
@@ -298,119 +283,119 @@ var D = ({ config: n, onFinish: a, onError: s }) => {
|
|
|
298
283
|
children: /* @__PURE__ */ i("div", { children: "Error: Invalid email configuration" })
|
|
299
284
|
}) : /* @__PURE__ */ i("div", {
|
|
300
285
|
class: "IncodeFlow",
|
|
301
|
-
children: /* @__PURE__ */ i(
|
|
286
|
+
children: /* @__PURE__ */ i(o, {
|
|
302
287
|
config: e,
|
|
303
|
-
onFinish: () =>
|
|
288
|
+
onFinish: () => m.completeModule(),
|
|
304
289
|
onError: (e) => {
|
|
305
|
-
|
|
290
|
+
a?.(e ?? "Email verification error");
|
|
306
291
|
}
|
|
307
|
-
}, `email-${
|
|
292
|
+
}, `email-${d.currentStepIndex}`)
|
|
308
293
|
});
|
|
309
294
|
}
|
|
310
295
|
if (e === "ID" || e === "SECOND_ID") {
|
|
311
296
|
let n = t;
|
|
312
297
|
return /* @__PURE__ */ i("div", {
|
|
313
298
|
class: "IncodeFlow",
|
|
314
|
-
children: /* @__PURE__ */ i(
|
|
299
|
+
children: /* @__PURE__ */ i(o, {
|
|
315
300
|
config: e === "SECOND_ID" ? {
|
|
316
301
|
...n,
|
|
317
302
|
isSecondId: !0
|
|
318
303
|
} : n,
|
|
319
|
-
onFinish: () =>
|
|
304
|
+
onFinish: () => m.completeModule(),
|
|
320
305
|
onError: (e) => {
|
|
321
|
-
|
|
306
|
+
a?.(e ?? "ID capture error");
|
|
322
307
|
}
|
|
323
|
-
}, `id-${
|
|
308
|
+
}, `id-${d.currentStepIndex}`)
|
|
324
309
|
});
|
|
325
310
|
}
|
|
326
311
|
if (e === "FACE_MATCH") return /* @__PURE__ */ i("div", {
|
|
327
312
|
class: "IncodeFlow",
|
|
328
|
-
children: /* @__PURE__ */ i(
|
|
313
|
+
children: /* @__PURE__ */ i(o, {
|
|
329
314
|
config: t,
|
|
330
|
-
onFinish: () =>
|
|
315
|
+
onFinish: () => m.completeModule(),
|
|
331
316
|
onError: (e) => {
|
|
332
|
-
|
|
317
|
+
a?.(e ?? "Face match error");
|
|
333
318
|
}
|
|
334
|
-
}, `face-match-${
|
|
319
|
+
}, `face-match-${d.currentStepIndex}`)
|
|
335
320
|
});
|
|
336
321
|
if (e === "CURP_VALIDATION") return /* @__PURE__ */ i("div", {
|
|
337
322
|
class: "IncodeFlow",
|
|
338
|
-
children: /* @__PURE__ */ i(
|
|
323
|
+
children: /* @__PURE__ */ i(o, {
|
|
339
324
|
config: t,
|
|
340
|
-
onFinish: () =>
|
|
325
|
+
onFinish: () => m.completeModule(),
|
|
341
326
|
onError: (e) => {
|
|
342
|
-
|
|
327
|
+
a?.(e ?? "CURP validation error");
|
|
343
328
|
}
|
|
344
|
-
}, `curp-validation-${
|
|
329
|
+
}, `curp-validation-${d.currentStepIndex}`)
|
|
345
330
|
});
|
|
346
331
|
if (e === "GOVT_VALIDATION_PROVISIONING") return /* @__PURE__ */ i("div", {
|
|
347
332
|
class: "IncodeFlow",
|
|
348
|
-
children: /* @__PURE__ */ i(
|
|
333
|
+
children: /* @__PURE__ */ i(o, {
|
|
349
334
|
config: t,
|
|
350
|
-
onFinish: () =>
|
|
335
|
+
onFinish: () => m.completeModule(),
|
|
351
336
|
onError: (e) => {
|
|
352
|
-
|
|
337
|
+
a?.(e ?? "Government validation error");
|
|
353
338
|
}
|
|
354
|
-
}, `govt-validation-${
|
|
339
|
+
}, `govt-validation-${d.currentStepIndex}`)
|
|
355
340
|
});
|
|
356
341
|
if (e === "GEOLOCATION") return /* @__PURE__ */ i("div", {
|
|
357
342
|
class: "IncodeFlow",
|
|
358
|
-
children: /* @__PURE__ */ i(
|
|
343
|
+
children: /* @__PURE__ */ i(o, {
|
|
359
344
|
config: t,
|
|
360
|
-
onFinish: () =>
|
|
345
|
+
onFinish: () => m.completeModule(),
|
|
361
346
|
onError: (e) => {
|
|
362
|
-
|
|
347
|
+
a?.(e ?? "Geolocation error");
|
|
363
348
|
}
|
|
364
|
-
}, `geolocation-${
|
|
349
|
+
}, `geolocation-${d.currentStepIndex}`)
|
|
365
350
|
});
|
|
366
351
|
if (e === "EXTERNAL_VERIFICATION") return /* @__PURE__ */ i("div", {
|
|
367
352
|
class: "IncodeFlow",
|
|
368
|
-
children: /* @__PURE__ */ i(
|
|
369
|
-
config: { flowId:
|
|
370
|
-
onFinish: () =>
|
|
353
|
+
children: /* @__PURE__ */ i(o, {
|
|
354
|
+
config: { flowId: d.flow.flowId },
|
|
355
|
+
onFinish: () => m.completeModule(),
|
|
371
356
|
onError: (e) => {
|
|
372
|
-
|
|
357
|
+
a?.(e ?? "External verification error");
|
|
373
358
|
}
|
|
374
|
-
}, `ekyc-${
|
|
359
|
+
}, `ekyc-${d.currentStepIndex}`)
|
|
375
360
|
});
|
|
376
361
|
if (e === "DOCUMENT_CAPTURE") return /* @__PURE__ */ i("div", {
|
|
377
362
|
class: "IncodeFlow",
|
|
378
|
-
children: /* @__PURE__ */ i(
|
|
363
|
+
children: /* @__PURE__ */ i(o, {
|
|
379
364
|
config: t,
|
|
380
|
-
onFinish: () =>
|
|
365
|
+
onFinish: () => m.completeModule(),
|
|
381
366
|
onError: (e) => {
|
|
382
|
-
|
|
367
|
+
a?.(e ?? "Document capture error");
|
|
383
368
|
}
|
|
384
|
-
}, `document-capture-${
|
|
369
|
+
}, `document-capture-${d.currentStepIndex}`)
|
|
385
370
|
});
|
|
386
371
|
if (e === "ADDRESS") return /* @__PURE__ */ i("div", {
|
|
387
372
|
class: "IncodeFlow",
|
|
388
|
-
children: /* @__PURE__ */ i(
|
|
373
|
+
children: /* @__PURE__ */ i(o, {
|
|
389
374
|
config: {
|
|
390
375
|
...t,
|
|
391
376
|
processingType: "addressStatement"
|
|
392
377
|
},
|
|
393
|
-
onFinish: () =>
|
|
378
|
+
onFinish: () => m.completeModule(),
|
|
394
379
|
onError: (e) => {
|
|
395
|
-
|
|
380
|
+
a?.(e ?? "Address capture error");
|
|
396
381
|
}
|
|
397
|
-
}, `address-${
|
|
382
|
+
}, `address-${d.currentStepIndex}`)
|
|
398
383
|
});
|
|
399
384
|
if (e === "SIGNATURE") return /* @__PURE__ */ i("div", {
|
|
400
385
|
class: "IncodeFlow",
|
|
401
|
-
children: /* @__PURE__ */ i(
|
|
386
|
+
children: /* @__PURE__ */ i(o, {
|
|
402
387
|
config: t,
|
|
403
|
-
onFinish: () =>
|
|
388
|
+
onFinish: () => m.completeModule(),
|
|
404
389
|
onError: (e) => {
|
|
405
|
-
|
|
390
|
+
a?.(e ?? "Signature capture error");
|
|
406
391
|
}
|
|
407
|
-
}, `signature-${
|
|
392
|
+
}, `signature-${d.currentStepIndex}`)
|
|
408
393
|
});
|
|
409
394
|
if (e === "EKYB") {
|
|
410
395
|
let e = t;
|
|
411
396
|
return /* @__PURE__ */ i("div", {
|
|
412
397
|
class: "IncodeFlow",
|
|
413
|
-
children: /* @__PURE__ */ i(
|
|
398
|
+
children: /* @__PURE__ */ i(o, {
|
|
414
399
|
config: {
|
|
415
400
|
flowId: r,
|
|
416
401
|
checkBusinessName: e.checkBusinessName,
|
|
@@ -418,83 +403,83 @@ var D = ({ config: n, onFinish: a, onError: s }) => {
|
|
|
418
403
|
checkTaxId: e.checkTaxId,
|
|
419
404
|
checkUniqueBeneficialOwner: e.checkUniqueBeneficialOwner
|
|
420
405
|
},
|
|
421
|
-
onFinish: () =>
|
|
406
|
+
onFinish: () => m.completeModule(),
|
|
422
407
|
onError: (e) => {
|
|
423
|
-
|
|
408
|
+
a?.(e ?? "eKYB verification error");
|
|
424
409
|
}
|
|
425
|
-
}, `ekyb-${
|
|
410
|
+
}, `ekyb-${d.currentStepIndex}`)
|
|
426
411
|
});
|
|
427
412
|
}
|
|
428
413
|
if (e === "COMBINED_CONSENT") return /* @__PURE__ */ i("div", {
|
|
429
414
|
class: "IncodeFlow",
|
|
430
|
-
children: /* @__PURE__ */ i(
|
|
415
|
+
children: /* @__PURE__ */ i(o, {
|
|
431
416
|
config: t,
|
|
432
|
-
onFinish: () =>
|
|
417
|
+
onFinish: () => m.completeModule(),
|
|
433
418
|
onError: (e) => {
|
|
434
|
-
|
|
419
|
+
a?.(e ?? "Combined consent error");
|
|
435
420
|
}
|
|
436
|
-
}, `combined-consent-${
|
|
421
|
+
}, `combined-consent-${d.currentStepIndex}`)
|
|
437
422
|
});
|
|
438
423
|
if (e === "MANDATORY_CONSENT") return /* @__PURE__ */ i("div", {
|
|
439
424
|
class: "IncodeFlow",
|
|
440
|
-
children: /* @__PURE__ */ i(
|
|
425
|
+
children: /* @__PURE__ */ i(o, {
|
|
441
426
|
config: t,
|
|
442
|
-
onFinish: () =>
|
|
427
|
+
onFinish: () => m.completeModule(),
|
|
443
428
|
onError: (e) => {
|
|
444
|
-
|
|
429
|
+
a?.(e ?? "Mandatory consent error");
|
|
445
430
|
}
|
|
446
|
-
}, `mandatory-consent-${
|
|
431
|
+
}, `mandatory-consent-${d.currentStepIndex}`)
|
|
447
432
|
});
|
|
448
433
|
if (e === "AE_SIGNATURE" || e === "QE_SIGNATURE") {
|
|
449
434
|
let n = t, r = e === "QE_SIGNATURE" ? "qe" : "ae";
|
|
450
435
|
return /* @__PURE__ */ i("div", {
|
|
451
436
|
class: "IncodeFlow",
|
|
452
|
-
children: /* @__PURE__ */ i(
|
|
437
|
+
children: /* @__PURE__ */ i(o, {
|
|
453
438
|
config: {
|
|
454
439
|
uploadDocument: n.uploadDocument,
|
|
455
440
|
downloadDocument: n.downloadDocument
|
|
456
441
|
},
|
|
457
|
-
onFinish: () =>
|
|
442
|
+
onFinish: () => m.completeModule(),
|
|
458
443
|
onError: (e) => {
|
|
459
|
-
|
|
444
|
+
a?.(e ?? `${r.toUpperCase()} Signature error`);
|
|
460
445
|
}
|
|
461
|
-
}, `${r}-signature-${
|
|
446
|
+
}, `${r}-signature-${d.currentStepIndex}`)
|
|
462
447
|
});
|
|
463
448
|
}
|
|
464
449
|
if (e === "ANTIFRAUD") return /* @__PURE__ */ i("div", {
|
|
465
450
|
class: "IncodeFlow",
|
|
466
|
-
children: /* @__PURE__ */ i(
|
|
467
|
-
onFinish: () =>
|
|
451
|
+
children: /* @__PURE__ */ i(o, {
|
|
452
|
+
onFinish: () => m.completeModule(),
|
|
468
453
|
onError: (e) => {
|
|
469
|
-
|
|
454
|
+
a?.(e ?? "Antifraud check error");
|
|
470
455
|
}
|
|
471
|
-
}, `antifraud-${
|
|
456
|
+
}, `antifraud-${d.currentStepIndex}`)
|
|
472
457
|
});
|
|
473
458
|
if (e === "WATCHLIST") return /* @__PURE__ */ i("div", {
|
|
474
459
|
class: "IncodeFlow",
|
|
475
|
-
children: /* @__PURE__ */ i(
|
|
476
|
-
onFinish: () =>
|
|
460
|
+
children: /* @__PURE__ */ i(o, {
|
|
461
|
+
onFinish: () => m.completeModule(),
|
|
477
462
|
onError: (e) => {
|
|
478
|
-
|
|
463
|
+
a?.(e ?? "Watchlist check error");
|
|
479
464
|
}
|
|
480
|
-
}, `watchlist-${
|
|
465
|
+
}, `watchlist-${d.currentStepIndex}`)
|
|
481
466
|
});
|
|
482
467
|
if (e === "CROSS_DOCUMENT_DATA_MATCH") return /* @__PURE__ */ i("div", {
|
|
483
468
|
class: "IncodeFlow",
|
|
484
|
-
children: /* @__PURE__ */ i(
|
|
485
|
-
onFinish: () =>
|
|
469
|
+
children: /* @__PURE__ */ i(o, {
|
|
470
|
+
onFinish: () => m.completeModule(),
|
|
486
471
|
onError: (e) => {
|
|
487
|
-
|
|
472
|
+
a?.(e ?? "Cross document data match error");
|
|
488
473
|
}
|
|
489
|
-
}, `cross-document-data-match-${
|
|
474
|
+
}, `cross-document-data-match-${d.currentStepIndex}`)
|
|
490
475
|
});
|
|
491
476
|
}
|
|
492
477
|
return null;
|
|
493
|
-
},
|
|
478
|
+
}, D = ({ config: e, onFinish: t = () => {}, onError: n }) => /* @__PURE__ */ i(s, { children: e ? /* @__PURE__ */ i(E, {
|
|
494
479
|
config: e,
|
|
495
480
|
onFinish: t,
|
|
496
481
|
onError: n
|
|
497
482
|
}) : null });
|
|
498
|
-
l(
|
|
483
|
+
l(D, "incode-flow");
|
|
499
484
|
//#endregion
|
|
500
|
-
export {
|
|
485
|
+
export { D as IncodeFlow, S as preloadIncodeFlow };
|