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