@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.
Files changed (60) hide show
  1. package/dist/ae-signature/ae-signature.es.js +1 -1
  2. package/dist/antifraud/antifraud.es.js +1 -1
  3. package/dist/authentication/authentication.es.js +2 -2
  4. package/dist/consent/consent.es.js +3 -3
  5. package/dist/{countrySelector-CE-JgIsv.js → countrySelector-DLCfd7yy.js} +1 -1
  6. package/dist/{cpfOcr-D_tbwbvh.js → cpfOcr-BdLPvojl.js} +1 -1
  7. package/dist/cross-document-data-match/cross-document-data-match.es.js +1 -1
  8. package/dist/curp-validation/curp-validation.es.js +3 -3
  9. package/dist/{customFields-CW38fQUv.js → customFields-DV6lUnvq.js} +2 -2
  10. package/dist/{customWatchlist-D9_yjEQd.js → customWatchlist-DSmB80f3.js} +2 -2
  11. package/dist/{documentCapture-xX-JT7ZY.js → documentCapture-lJ-U1cjp.js} +4 -4
  12. package/dist/{dynamicForms-CJP1Ia6Q.js → dynamicForms-JljZlRXK.js} +4 -4
  13. package/dist/ekyb/ekyb.es.js +1 -1
  14. package/dist/{ekybModule-BSs7mndb.js → ekybModule-BKRqcVUg.js} +7 -7
  15. package/dist/ekybModule-VSRRLIbh.js +2 -0
  16. package/dist/ekyc/ekyc.es.js +1 -1
  17. package/dist/ekycModule-Cv_JJrCQ.js +2 -0
  18. package/dist/{ekycModule-CU9pt5YN.js → ekycModule-Dh8h68HL.js} +5 -5
  19. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  20. package/dist/{electronic-signature-COYXjGdd.js → electronic-signature-C7wAN8uG.js} +3 -3
  21. package/dist/email/email.es.js +4 -4
  22. package/dist/{emailInput-DppGf9pv.js → emailInput-DQD3XnzK.js} +2 -2
  23. package/dist/{expiredId-BnmzE8T3.js → expiredId-Gqc6wM4h.js} +1 -1
  24. package/dist/{extensibility-CzEJfRwo.js → extensibility-BEX3WegI.js} +8 -8
  25. package/dist/extensibility.es.js +8 -8
  26. package/dist/face-match/face-match.es.js +1 -1
  27. package/dist/faceMatch-BPXidsWa.js +2 -0
  28. package/dist/{faceMatch-BV8UD7tj.js → faceMatch-T-_3NI8m.js} +3 -3
  29. package/dist/flow/flow.es.js +299 -299
  30. package/dist/geolocation/geolocation.es.js +2 -2
  31. package/dist/governmentValidation/governmentValidation.es.js +3 -3
  32. package/dist/{homeScreen-DnP1jw9A.js → homeScreen-B213v-on.js} +17 -17
  33. package/dist/{i18n-9s4OSqwi.js → i18n-DQ49aghC.js} +224 -217
  34. package/dist/id/id.es.js +7 -7
  35. package/dist/id-verification/id-verification.es.js +2 -2
  36. package/dist/{idOcr-CCjfWQvH.js → idOcr-CsDIoUzl.js} +5 -5
  37. package/dist/identity-reuse/identity-reuse.es.js +2 -2
  38. package/dist/{incodeComponent-C1o4M0ZK.js → incodeComponent-Dx2l4chW.js} +1 -1
  39. package/dist/index.es.js +1 -1
  40. package/dist/{mandatoryConsent-DssKMC3v.js → mandatoryConsent-D6YZlHdq.js} +3 -3
  41. package/dist/{optionAccessibleLabel-CzEeX3Q4.js → optionAccessibleLabel-k7Y-6ZwH.js} +2 -2
  42. package/dist/{otpInput-DqRA_egd.js → otpInput-uUeFE3w6.js} +1 -1
  43. package/dist/phone/phone.es.js +3 -3
  44. package/dist/{processing-G_y3o32b.js → processing-CO4IWfYV.js} +1 -1
  45. package/dist/qe-signature/qe-signature.es.js +1 -1
  46. package/dist/{radioGroupComposed-BbmvxmD2.js → radioGroupComposed-CAeFseVP.js} +1 -1
  47. package/dist/{redirectToMobile-C3k1gloW.js → redirectToMobile-Dbz6ZG63.js} +3 -3
  48. package/dist/selfie/selfie.es.js +4 -4
  49. package/dist/signature/signature.es.js +4 -4
  50. package/dist/{transitionSpinner-PIEPU2Vx.js → transitionSpinner-D_N_MiDY.js} +1 -1
  51. package/dist/{tutorial-9vHAHvMK.js → tutorial-C0s7rqxv.js} +2 -2
  52. package/dist/{useModuleLoader-BFiVA41N.js → useModuleLoader-gInq0l-h.js} +15 -15
  53. package/dist/{verificationResult-BrVbUJ4U.js → verificationResult-biy_diWd.js} +1 -1
  54. package/dist/watchlist/watchlist.es.js +2 -2
  55. package/dist/{watchlistForBusiness-BcSNtHCV.js → watchlistForBusiness-DCPDk7x_.js} +3 -3
  56. package/dist/workflow/workflow.es.js +120 -120
  57. package/package.json +2 -2
  58. package/dist/ekybModule-D9M3E2Gm.js +0 -2
  59. package/dist/ekycModule-CZw9cLno.js +0 -2
  60. package/dist/faceMatch-B8j0g0Yo.js +0 -2
@@ -1,47 +1,47 @@
1
- import { n as e } from "../i18n-9s4OSqwi.js";
2
- import { _ as t, c as n, d as r, l as i, o as a, p as o, v as s } from "../vendor-preact-D6SntenC.js";
3
- import { t as c } from "../uiConfig-CwpQ-IM6.js";
4
- import { o as l } from "../hooks-BVnGysT7.js";
5
- import { t as u } from "../incodeComponent-C1o4M0ZK.js";
6
- import { t as d } from "../transitionSpinner-PIEPU2Vx.js";
7
- import { t as f } from "../incodeModule-BqCjVgEI.js";
8
- import { a as p, c as m, d as h, f as g, h as _, l as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T } from "../useModuleLoader-BFiVA41N.js";
9
- import { getDeviceClass as E } from "@incodetech/core/device";
10
- import { getRequiredWasmPipelines as D } from "@incodetech/core/flow";
11
- import { QrValidationError as O, bootstrapSession as k, refreshQrUrlUuid as A } from "@incodetech/core/session";
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 j(e, n) {
14
- let [r, i] = o(!1);
15
- return t(() => {
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 t = window.setTimeout(() => {
20
+ let n = window.setTimeout(() => {
21
21
  i(!0);
22
- }, n);
22
+ }, t);
23
23
  return () => {
24
- window.clearTimeout(t);
24
+ window.clearTimeout(n);
25
25
  };
26
- }, [e, n]), r;
26
+ }, [e, t]), r;
27
27
  }
28
28
  //#endregion
29
29
  //#region src/modules/flow/createFlowSession.ts
30
- function M(e) {
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 N(e) {
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 M(await t.digest("SHA-1", new TextEncoder().encode(e)));
36
+ return N(await t.digest("SHA-1", new TextEncoder().encode(e)));
37
37
  }
38
- async function P(e) {
38
+ async function F(e) {
39
39
  if (typeof e.apiKey == "string") return e.apiKey;
40
- if (typeof e.clientId == "string") return N(e.clientId);
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 F(e, t) {
44
- return k(await P(e), {
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 I(e) {
58
+ function L(e) {
59
59
  return typeof e.token == "string";
60
60
  }
61
- function L(e) {
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 R = /* @__PURE__ */ new Map();
68
- function z(e) {
69
- let t = R.get(e);
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")), R.delete(e));
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 B(e) {
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 (R.has(t)) return z(t);
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 = m(e);
96
- a.getState().presentation.shouldPrefetchHome && g();
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 R.set(t, o), (async () => {
105
+ return z.set(t, o), (async () => {
106
106
  try {
107
- await T({
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({}) : v().then((e) => {
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
- _(n, e.wasmConfig), h(n), o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "ready", o.readyResolve();
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")), R.delete(t);
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
- })(), z(t);
125
- }
126
- function V(e) {
127
- return R.get(e) ?? null;
124
+ })(), B(t);
128
125
  }
129
126
  function H(e) {
130
- let t = V(e);
131
- return t && R.delete(e), t;
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 U(e) {
136
- e.getState().presentation.shouldPrefetchHome && g();
135
+ function W(e) {
136
+ e.getState().presentation.shouldPrefetchHome && _();
137
137
  }
138
- function W() {
139
- E() === "desktop" && x();
138
+ function G() {
139
+ D() === "desktop" && S();
140
140
  }
141
- function G(e) {
142
- let { lang: n, disableDashboardTheme: r, enableHome: a, onError: s, useCPF: l } = e, u = I(e) ? e.token : void 0, d = i(null), [f, p] = o(() => {
143
- let t = u ? V(u) : null;
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 = H(u);
146
- if (e) return d.current = e.flowManager, U(e.flowManager), W(), e.uiConfig && c(e.uiConfig), {
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 = m({
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, U(n), W(), t?.status === "error" ? {
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
- }), h = i(!1);
166
- return t(() => {
165
+ }), m = a(!1);
166
+ return n(() => {
167
167
  if (f.status !== "initializing") return;
168
- let t = u ? V(u) : null;
169
- if (u && t?.status === "loading") {
170
- t.readyPromise.then(() => {
171
- let e = H(u);
172
- e && (d.current = e.flowManager, U(e.flowManager), W(), e.uiConfig && c(e.uiConfig), p({
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 O ? e.status : void 0;
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
- }), s?.(t, n);
183
+ }), o?.(t, n);
184
184
  });
185
185
  return;
186
186
  }
187
- if (h.current) return;
188
- h.current = !0;
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 t;
193
- if (I(e)) t = e.token, e.urlUuid && await A({
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 (L(e)) t = (await F(e, a)).token;
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 T({
201
- token: t,
202
- lang: n,
200
+ await E({
201
+ token: n,
202
+ lang: t,
203
203
  flowManager: f.flowManager
204
204
  });
205
- let i = r ? Promise.resolve() : v().then((e) => {
206
- e.uiConfig && c(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 O ? e.status : void 0;
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
- }), s?.(t, n);
220
+ }), o?.(t, n);
221
221
  }
222
222
  })(), () => i.abort();
223
223
  }, [
224
224
  u,
225
- n,
225
+ t,
226
226
  r,
227
- a,
228
- l,
229
- s,
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 K = n(() => import("../homeScreen-DnP1jw9A.js").then((e) => ({ default: e.HomeScreen }))), q = ({ config: n, onFinish: i, onError: o }) => {
237
- let { i18n: c } = e(), u = G(r(() => ({
238
- ...n,
239
- onError: o
240
- }), [n, o])), [f, m] = l(() => u.flowManager, { autoLoad: !1 }), h = f.presentation.lazyModuleKey, v = f.status === "ready" ? f.currentStep : void 0, x = w({
241
- moduleKey: h,
242
- modules: C,
243
- onModuleLoading: n.onModuleLoading,
244
- onModuleLoaded: n.onModuleLoaded,
245
- onError: o
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
- y({
248
- moduleKey: f.status === "ready" && f.homeScreen.visible ? v : void 0,
249
- modules: C
247
+ b({
248
+ moduleKey: p.status === "ready" && p.homeScreen.visible ? y : void 0,
249
+ modules: w
250
250
  });
251
- let T = x.status === "loaded", E = n.enableHome === !0 && f.status === "ready" && f.flow.disableLaunchScreen !== !0 && f.currentStepIndex === 0 && f.homeScreen.visible === !1 && x.status === "loading", O = j(f.presentation.isAwaitingReady === !0, 150), k = j(f.status === "ready" && (x.status === "idle" || x.status === "loading" || x.status === "error"), 150);
252
- S(f?.status === "ready" ? f.steps : [], f?.status === "ready" ? f.currentStepIndex : -1, C, T), t(() => {
253
- if (n.onFlowEvent) return m.subscribeFlowEvent(n.onFlowEvent);
254
- }, [m, n.onFlowEvent]), t(() => {
255
- f.presentation.shouldPrefetchHome && g();
256
- }, [f.presentation.shouldPrefetchHome]), t(() => {
257
- n.lang && c.language !== n.lang && c.changeLanguage(n.lang);
258
- }, [n.lang, c]), t(() => {
259
- if (f?.status !== "ready" || f.currentStep === "REDIRECT_TO_MOBILE") return;
260
- let e = f, t = D(e.flow);
261
- t.length > 0 && (n.onWasmWarmup?.(t), _(e, n.wasmConfig));
262
- }, [f, n]), t(() => {
263
- f?.status === "finished" && i(f.finishStatus);
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
- f?.status,
266
- i,
267
- f
268
- ]), t(() => {
269
- f?.status === "error" && o && o(f.error, f.errorCode);
265
+ p?.status,
266
+ a,
267
+ p
268
+ ]), n(() => {
269
+ p?.status === "error" && s && s(p.error, p.errorCode);
270
270
  }, [
271
- f?.status,
272
- o,
273
- f
274
- ]), t(() => {
275
- f?.status === "ready" && f.currentStep === "ID" && f.steps.includes("TUTORIAL_ID") && m.completeModule();
276
- }, [f, m]);
277
- let A = !(n.spinnerConfig?.title || n.spinnerConfig?.subtitle);
278
- if (u.status === "error") return /* @__PURE__ */ s("div", {
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__ */ s("div", { children: ["Error: ", u.error] })
280
+ children: /* @__PURE__ */ c("div", { children: ["Error: ", d.error] })
281
281
  });
282
- if (f.homeScreen.visible || E) return /* @__PURE__ */ s("div", {
282
+ if (p.homeScreen.visible || D) return /* @__PURE__ */ c("div", {
283
283
  class: "IncodeFlow",
284
- children: /* @__PURE__ */ s(a, {
284
+ children: /* @__PURE__ */ c(o, {
285
285
  fallback: null,
286
- children: /* @__PURE__ */ s(K, {
287
- isContinueLoading: f.homeScreen.isContinueLoading || E,
288
- onContinue: () => m.continueFromHome()
286
+ children: /* @__PURE__ */ c(q, {
287
+ isContinueLoading: p.homeScreen.isContinueLoading || D,
288
+ onContinue: () => h.continueFromHome()
289
289
  })
290
290
  })
291
291
  });
292
- if (u.status === "initializing") return /* @__PURE__ */ s("div", {
292
+ if (d.status === "initializing") return /* @__PURE__ */ c("div", {
293
293
  class: "IncodeFlow",
294
- children: /* @__PURE__ */ s(d, {
295
- spinnerConfig: n.spinnerConfig,
296
- hideText: A
294
+ children: /* @__PURE__ */ c(f, {
295
+ spinnerConfig: r.spinnerConfig,
296
+ hideText: j
297
297
  })
298
298
  });
299
- if (f.presentation.isAwaitingReady) return O ? /* @__PURE__ */ s("div", {
299
+ if (p.presentation.isAwaitingReady) return k ? /* @__PURE__ */ c("div", {
300
300
  class: "IncodeFlow",
301
- children: /* @__PURE__ */ s(d, {
302
- spinnerConfig: n.spinnerConfig,
303
- hideText: A
301
+ children: /* @__PURE__ */ c(f, {
302
+ spinnerConfig: r.spinnerConfig,
303
+ hideText: j
304
304
  })
305
- }) : /* @__PURE__ */ s("div", { class: "IncodeFlow" });
306
- if (f.status === "error") return /* @__PURE__ */ s("div", {
305
+ }) : /* @__PURE__ */ c("div", { class: "IncodeFlow" });
306
+ if (p.status === "error") return /* @__PURE__ */ c("div", {
307
307
  class: "IncodeFlow",
308
- children: /* @__PURE__ */ s("div", { children: ["Error: ", f.error] })
308
+ children: /* @__PURE__ */ c("div", { children: ["Error: ", p.error] })
309
309
  });
310
- if (f.status === "finished") return null;
311
- if (f?.status === "ready") {
312
- let { currentStep: e, config: t, flow: r } = f, { flowId: i } = r;
313
- if (!e || !t) return /* @__PURE__ */ s("div", {
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__ */ s(d, {
316
- spinnerConfig: n.spinnerConfig,
317
- hideText: A
315
+ children: /* @__PURE__ */ c(f, {
316
+ spinnerConfig: r.spinnerConfig,
317
+ hideText: j
318
318
  })
319
319
  });
320
- if (b.has(e)) return /* @__PURE__ */ s("div", { class: "IncodeFlow" });
321
- if (x.status === "unsupported") return /* @__PURE__ */ s("div", {
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__ */ s(p, {
323
+ children: /* @__PURE__ */ c(m, {
324
324
  moduleKey: e,
325
- onNext: () => m.completeModule()
325
+ onNext: () => h.completeModule()
326
326
  })
327
327
  });
328
- if (x.status === "idle" || x.status === "loading" || x.status === "error") return k ? /* @__PURE__ */ s("div", {
328
+ if (S.status === "idle" || S.status === "loading" || S.status === "error") return A ? /* @__PURE__ */ c("div", {
329
329
  class: "IncodeFlow",
330
- children: /* @__PURE__ */ s(d, {
331
- spinnerConfig: n.spinnerConfig,
332
- hideText: A
330
+ children: /* @__PURE__ */ c(f, {
331
+ spinnerConfig: r.spinnerConfig,
332
+ hideText: j
333
333
  })
334
- }) : /* @__PURE__ */ s("div", { class: "IncodeFlow" });
335
- let { Component: a } = x;
336
- if (e === "REDIRECT_TO_MOBILE") return /* @__PURE__ */ s("div", {
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__ */ s(a, {
338
+ children: /* @__PURE__ */ c(a, {
339
339
  config: t,
340
- onFinish: () => m.completeFlow(),
341
- onContinue: () => m.completeModule(),
342
- onError: o
343
- }, `redirect-to-mobile-${f.currentStepIndex}`)
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__ */ s("div", {
345
+ if (e === "SELFIE") return /* @__PURE__ */ c("div", {
346
346
  class: "IncodeFlow",
347
- children: /* @__PURE__ */ s(a, {
347
+ children: /* @__PURE__ */ c(a, {
348
348
  config: t,
349
- onFinish: () => m.completeModule(),
349
+ onFinish: () => h.completeModule(),
350
350
  onError: (e) => {
351
- o?.(e ?? "Selfie verification error");
351
+ s?.(e ?? "Selfie verification error");
352
352
  }
353
- }, `selfie-${f.currentStepIndex}`)
353
+ }, `selfie-${p.currentStepIndex}`)
354
354
  });
355
- if (e === "AUTHENTICATION") return /* @__PURE__ */ s("div", {
355
+ if (e === "AUTHENTICATION") return /* @__PURE__ */ c("div", {
356
356
  class: "IncodeFlow",
357
- children: /* @__PURE__ */ s(a, {
357
+ children: /* @__PURE__ */ c(a, {
358
358
  config: {
359
359
  ...t,
360
- authHint: n.authHint
360
+ authHint: r.authHint
361
361
  },
362
- onFinish: () => m.completeModule(),
362
+ onFinish: () => h.completeModule(),
363
363
  onError: (e) => {
364
- o?.(e ?? "Authentication error");
364
+ s?.(e ?? "Authentication error");
365
365
  }
366
- }, `authentication-${f.currentStepIndex}`)
366
+ }, `authentication-${p.currentStepIndex}`)
367
367
  });
368
- if (e === "PHONE") return /* @__PURE__ */ s("div", {
368
+ if (e === "PHONE") return /* @__PURE__ */ c("div", {
369
369
  class: "IncodeFlow",
370
- children: /* @__PURE__ */ s(a, {
370
+ children: /* @__PURE__ */ c(a, {
371
371
  config: t,
372
- onFinish: () => m.completeModule(),
372
+ onFinish: () => h.completeModule(),
373
373
  onError: (e) => {
374
- o?.(e ?? "Phone verification error");
374
+ s?.(e ?? "Phone verification error");
375
375
  }
376
- }, `phone-${f.currentStepIndex}`)
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__ */ s("div", {
380
+ return !e || typeof e.otpVerification != "boolean" || typeof e.otpExpirationInMinutes != "number" ? /* @__PURE__ */ c("div", {
381
381
  class: "IncodeFlow",
382
- children: /* @__PURE__ */ s("div", { children: "Error: Invalid email configuration" })
383
- }) : /* @__PURE__ */ s("div", {
382
+ children: /* @__PURE__ */ c("div", { children: "Error: Invalid email configuration" })
383
+ }) : /* @__PURE__ */ c("div", {
384
384
  class: "IncodeFlow",
385
- children: /* @__PURE__ */ s(a, {
385
+ children: /* @__PURE__ */ c(a, {
386
386
  config: e,
387
- onFinish: () => m.completeModule(),
387
+ onFinish: () => h.completeModule(),
388
388
  onError: (e) => {
389
- o?.(e ?? "Email verification error");
389
+ s?.(e ?? "Email verification error");
390
390
  }
391
- }, `email-${f.currentStepIndex}`)
391
+ }, `email-${p.currentStepIndex}`)
392
392
  });
393
393
  }
394
394
  if (e === "ID" || e === "SECOND_ID") {
395
395
  let n = t;
396
- return /* @__PURE__ */ s("div", {
396
+ return /* @__PURE__ */ c("div", {
397
397
  class: "IncodeFlow",
398
- children: /* @__PURE__ */ s(a, {
398
+ children: /* @__PURE__ */ c(a, {
399
399
  config: e === "SECOND_ID" ? {
400
400
  ...n,
401
401
  isSecondId: !0
402
402
  } : n,
403
- onFinish: () => m.completeModule(),
403
+ onFinish: () => h.completeModule(),
404
404
  onError: (e) => {
405
- o?.(e ?? "ID capture error");
405
+ s?.(e ?? "ID capture error");
406
406
  }
407
- }, `id-${f.currentStepIndex}`)
407
+ }, `id-${p.currentStepIndex}`)
408
408
  });
409
409
  }
410
410
  if (e === "ID_OCR") {
411
- let e = t, n = f.steps.includes("SECOND_ID");
412
- return /* @__PURE__ */ s("div", {
411
+ let e = t, n = p.steps.includes("SECOND_ID");
412
+ return /* @__PURE__ */ c("div", {
413
413
  class: "IncodeFlow",
414
- children: /* @__PURE__ */ s(a, {
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: () => m.completeModule(),
420
+ onFinish: () => h.completeModule(),
421
421
  onError: (e) => {
422
- o?.(e ?? "ID OCR error");
422
+ s?.(e ?? "ID OCR error");
423
423
  }
424
- }, `id-ocr-${f.currentStepIndex}`)
424
+ }, `id-ocr-${p.currentStepIndex}`)
425
425
  });
426
426
  }
427
- if (e === "CPF_OCR") return /* @__PURE__ */ s("div", {
427
+ if (e === "CPF_OCR") return /* @__PURE__ */ c("div", {
428
428
  class: "IncodeFlow",
429
- children: /* @__PURE__ */ s(a, {
430
- onFinish: () => m.completeModule(),
429
+ children: /* @__PURE__ */ c(a, {
430
+ onFinish: () => h.completeModule(),
431
431
  onError: (e) => {
432
- o?.(e ?? "CPF OCR error");
432
+ s?.(e ?? "CPF OCR error");
433
433
  }
434
- }, `cpf-ocr-${f.currentStepIndex}`)
434
+ }, `cpf-ocr-${p.currentStepIndex}`)
435
435
  });
436
- if (e === "FACE_MATCH") return /* @__PURE__ */ s("div", {
436
+ if (e === "FACE_MATCH") return /* @__PURE__ */ c("div", {
437
437
  class: "IncodeFlow",
438
- children: /* @__PURE__ */ s(a, {
438
+ children: /* @__PURE__ */ c(a, {
439
439
  config: t,
440
- onFinish: () => m.completeModule(),
440
+ onFinish: () => h.completeModule(),
441
441
  onError: (e) => {
442
- o?.(e ?? "Face match error");
442
+ s?.(e ?? "Face match error");
443
443
  }
444
- }, `face-match-${f.currentStepIndex}`)
444
+ }, `face-match-${p.currentStepIndex}`)
445
445
  });
446
- if (e === "CURP_VALIDATION") return /* @__PURE__ */ s("div", {
446
+ if (e === "CURP_VALIDATION") return /* @__PURE__ */ c("div", {
447
447
  class: "IncodeFlow",
448
- children: /* @__PURE__ */ s(a, {
448
+ children: /* @__PURE__ */ c(a, {
449
449
  config: t,
450
- onFinish: () => m.completeModule(),
450
+ onFinish: () => h.completeModule(),
451
451
  onError: (e) => {
452
- o?.(e ?? "CURP validation error");
452
+ s?.(e ?? "CURP validation error");
453
453
  }
454
- }, `curp-validation-${f.currentStepIndex}`)
454
+ }, `curp-validation-${p.currentStepIndex}`)
455
455
  });
456
- if (e === "GOVT_VALIDATION_PROVISIONING") return /* @__PURE__ */ s("div", {
456
+ if (e === "GOVT_VALIDATION_PROVISIONING") return /* @__PURE__ */ c("div", {
457
457
  class: "IncodeFlow",
458
- children: /* @__PURE__ */ s(a, {
458
+ children: /* @__PURE__ */ c(a, {
459
459
  config: t,
460
- onFinish: () => m.completeModule(),
460
+ onFinish: () => h.completeModule(),
461
461
  onError: (e) => {
462
- o?.(e ?? "Government validation error");
462
+ s?.(e ?? "Government validation error");
463
463
  }
464
- }, `govt-validation-${f.currentStepIndex}`)
464
+ }, `govt-validation-${p.currentStepIndex}`)
465
465
  });
466
- if (e === "GEOLOCATION") return /* @__PURE__ */ s("div", {
466
+ if (e === "GEOLOCATION") return /* @__PURE__ */ c("div", {
467
467
  class: "IncodeFlow",
468
- children: /* @__PURE__ */ s(a, {
468
+ children: /* @__PURE__ */ c(a, {
469
469
  config: t,
470
- onFinish: () => m.completeModule(),
470
+ onFinish: () => h.completeModule(),
471
471
  onError: (e) => {
472
- o?.(e ?? "Geolocation error");
472
+ s?.(e ?? "Geolocation error");
473
473
  }
474
- }, `geolocation-${f.currentStepIndex}`)
474
+ }, `geolocation-${p.currentStepIndex}`)
475
475
  });
476
- if (e === "EXTERNAL_VERIFICATION") return /* @__PURE__ */ s("div", {
476
+ if (e === "EXTERNAL_VERIFICATION") return /* @__PURE__ */ c("div", {
477
477
  class: "IncodeFlow",
478
- children: /* @__PURE__ */ s(a, {
479
- config: { flowId: f.flow.flowId },
480
- onFinish: () => m.completeModule(),
478
+ children: /* @__PURE__ */ c(a, {
479
+ config: { flowId: p.flow.flowId },
480
+ onFinish: () => h.completeModule(),
481
481
  onError: (e) => {
482
- o?.(e ?? "External verification error");
482
+ s?.(e ?? "External verification error");
483
483
  }
484
- }, `ekyc-${f.currentStepIndex}`)
484
+ }, `ekyc-${p.currentStepIndex}`)
485
485
  });
486
- if (e === "DOCUMENT_CAPTURE") return /* @__PURE__ */ s("div", {
486
+ if (e === "DOCUMENT_CAPTURE") return /* @__PURE__ */ c("div", {
487
487
  class: "IncodeFlow",
488
- children: /* @__PURE__ */ s(a, {
488
+ children: /* @__PURE__ */ c(a, {
489
489
  config: t,
490
- onFinish: () => m.completeModule(),
490
+ onFinish: () => h.completeModule(),
491
491
  onError: (e) => {
492
- o?.(e ?? "Document capture error");
492
+ s?.(e ?? "Document capture error");
493
493
  }
494
- }, `document-capture-${f.currentStepIndex}`)
494
+ }, `document-capture-${p.currentStepIndex}`)
495
495
  });
496
- if (e === "ADDRESS") return /* @__PURE__ */ s("div", {
496
+ if (e === "ADDRESS") return /* @__PURE__ */ c("div", {
497
497
  class: "IncodeFlow",
498
- children: /* @__PURE__ */ s(a, {
498
+ children: /* @__PURE__ */ c(a, {
499
499
  config: {
500
500
  ...t,
501
501
  processingType: "addressStatement"
502
502
  },
503
- onFinish: () => m.completeModule(),
503
+ onFinish: () => h.completeModule(),
504
504
  onError: (e) => {
505
- o?.(e ?? "Address capture error");
505
+ s?.(e ?? "Address capture error");
506
506
  }
507
- }, `address-${f.currentStepIndex}`)
507
+ }, `address-${p.currentStepIndex}`)
508
508
  });
509
- if (e === "SIGNATURE") return /* @__PURE__ */ s("div", {
509
+ if (e === "SIGNATURE") return /* @__PURE__ */ c("div", {
510
510
  class: "IncodeFlow",
511
- children: /* @__PURE__ */ s(a, {
511
+ children: /* @__PURE__ */ c(a, {
512
512
  config: t,
513
- onFinish: () => m.completeModule(),
513
+ onFinish: () => h.completeModule(),
514
514
  onError: (e) => {
515
- o?.(e ?? "Signature capture error");
515
+ s?.(e ?? "Signature capture error");
516
516
  }
517
- }, `signature-${f.currentStepIndex}`)
517
+ }, `signature-${p.currentStepIndex}`)
518
518
  });
519
519
  if (e === "EKYB") {
520
520
  let e = t;
521
- return /* @__PURE__ */ s("div", {
521
+ return /* @__PURE__ */ c("div", {
522
522
  class: "IncodeFlow",
523
- children: /* @__PURE__ */ s(a, {
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: () => m.completeModule(),
531
+ onFinish: () => h.completeModule(),
532
532
  onError: (e) => {
533
- o?.(e ?? "eKYB verification error");
533
+ s?.(e ?? "eKYB verification error");
534
534
  }
535
- }, `ekyb-${f.currentStepIndex}`)
535
+ }, `ekyb-${p.currentStepIndex}`)
536
536
  });
537
537
  }
538
- if (e === "COMBINED_CONSENT") return /* @__PURE__ */ s("div", {
538
+ if (e === "COMBINED_CONSENT") return /* @__PURE__ */ c("div", {
539
539
  class: "IncodeFlow",
540
- children: /* @__PURE__ */ s(a, {
540
+ children: /* @__PURE__ */ c(a, {
541
541
  config: t,
542
- onFinish: () => m.completeModule(),
542
+ onFinish: () => h.completeModule(),
543
543
  onError: (e) => {
544
- o?.(e ?? "Combined consent error");
544
+ s?.(e ?? "Combined consent error");
545
545
  }
546
- }, `combined-consent-${f.currentStepIndex}`)
546
+ }, `combined-consent-${p.currentStepIndex}`)
547
547
  });
548
- if (e === "MANDATORY_CONSENT") return /* @__PURE__ */ s("div", {
548
+ if (e === "MANDATORY_CONSENT") return /* @__PURE__ */ c("div", {
549
549
  class: "IncodeFlow",
550
- children: /* @__PURE__ */ s(a, {
550
+ children: /* @__PURE__ */ c(a, {
551
551
  config: t,
552
- onFinish: () => m.completeModule(),
552
+ onFinish: () => h.completeModule(),
553
553
  onError: (e) => {
554
- o?.(e ?? "Mandatory consent error");
554
+ s?.(e ?? "Mandatory consent error");
555
555
  }
556
- }, `mandatory-consent-${f.currentStepIndex}`)
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__ */ s("div", {
560
+ return /* @__PURE__ */ c("div", {
561
561
  class: "IncodeFlow",
562
- children: /* @__PURE__ */ s(a, {
562
+ children: /* @__PURE__ */ c(a, {
563
563
  config: {
564
564
  uploadDocument: n.uploadDocument,
565
565
  downloadDocument: n.downloadDocument
566
566
  },
567
- onFinish: () => m.completeModule(),
567
+ onFinish: () => h.completeModule(),
568
568
  onError: (e) => {
569
- o?.(e ?? `${r.toUpperCase()} Signature error`);
569
+ s?.(e ?? `${r.toUpperCase()} Signature error`);
570
570
  }
571
- }, `${r}-signature-${f.currentStepIndex}`)
571
+ }, `${r}-signature-${p.currentStepIndex}`)
572
572
  });
573
573
  }
574
- if (e === "ANTIFRAUD") return /* @__PURE__ */ s("div", {
574
+ if (e === "ANTIFRAUD") return /* @__PURE__ */ c("div", {
575
575
  class: "IncodeFlow",
576
- children: /* @__PURE__ */ s(a, {
577
- onFinish: () => m.completeModule(),
576
+ children: /* @__PURE__ */ c(a, {
577
+ onFinish: () => h.completeModule(),
578
578
  onError: (e) => {
579
- o?.(e ?? "Antifraud check error");
579
+ s?.(e ?? "Antifraud check error");
580
580
  }
581
- }, `antifraud-${f.currentStepIndex}`)
581
+ }, `antifraud-${p.currentStepIndex}`)
582
582
  });
583
- if (e === "CUSTOM_FIELDS") return /* @__PURE__ */ s("div", {
583
+ if (e === "CUSTOM_FIELDS") return /* @__PURE__ */ c("div", {
584
584
  class: "IncodeFlow",
585
- children: /* @__PURE__ */ s(a, {
585
+ children: /* @__PURE__ */ c(a, {
586
586
  config: t,
587
- onFinish: () => m.completeModule(),
587
+ onFinish: () => h.completeModule(),
588
588
  onError: (e) => {
589
- o?.(e ?? "Custom fields error");
589
+ s?.(e ?? "Custom fields error");
590
590
  }
591
- }, `custom-fields-${f.currentStepIndex}`)
591
+ }, `custom-fields-${p.currentStepIndex}`)
592
592
  });
593
- if (e === "WATCHLIST") return /* @__PURE__ */ s("div", {
593
+ if (e === "WATCHLIST") return /* @__PURE__ */ c("div", {
594
594
  class: "IncodeFlow",
595
- children: /* @__PURE__ */ s(a, {
596
- onFinish: () => m.completeModule(),
595
+ children: /* @__PURE__ */ c(a, {
596
+ onFinish: () => h.completeModule(),
597
597
  onError: (e) => {
598
- o?.(e ?? "Watchlist check error");
598
+ s?.(e ?? "Watchlist check error");
599
599
  }
600
- }, `watchlist-${f.currentStepIndex}`)
600
+ }, `watchlist-${p.currentStepIndex}`)
601
601
  });
602
- if (e === "WATCHLIST_BUSINESS") return /* @__PURE__ */ s("div", {
602
+ if (e === "WATCHLIST_BUSINESS") return /* @__PURE__ */ c("div", {
603
603
  class: "IncodeFlow",
604
- children: /* @__PURE__ */ s(a, {
605
- onFinish: () => m.completeModule(),
604
+ children: /* @__PURE__ */ c(a, {
605
+ onFinish: () => h.completeModule(),
606
606
  onError: (e) => {
607
- o?.(e ?? "Watchlist for business check error");
607
+ s?.(e ?? "Watchlist for business check error");
608
608
  }
609
- }, `watchlist-for-business-${f.currentStepIndex}`)
609
+ }, `watchlist-for-business-${p.currentStepIndex}`)
610
610
  });
611
- if (e === "INCODE_WATCHLIST") return /* @__PURE__ */ s("div", {
611
+ if (e === "INCODE_WATCHLIST") return /* @__PURE__ */ c("div", {
612
612
  class: "IncodeFlow",
613
- children: /* @__PURE__ */ s(a, {
613
+ children: /* @__PURE__ */ c(a, {
614
614
  config: t,
615
- onFinish: () => m.completeModule(),
615
+ onFinish: () => h.completeModule(),
616
616
  onError: (e) => {
617
- o?.(e ?? "Custom watchlist check error");
617
+ s?.(e ?? "Custom watchlist check error");
618
618
  }
619
- }, `incode-watchlist-${f.currentStepIndex}`)
619
+ }, `incode-watchlist-${p.currentStepIndex}`)
620
620
  });
621
- if (e === "CROSS_DOCUMENT_DATA_MATCH") return /* @__PURE__ */ s("div", {
621
+ if (e === "CROSS_DOCUMENT_DATA_MATCH") return /* @__PURE__ */ c("div", {
622
622
  class: "IncodeFlow",
623
- children: /* @__PURE__ */ s(a, {
624
- onFinish: () => m.completeModule(),
623
+ children: /* @__PURE__ */ c(a, {
624
+ onFinish: () => h.completeModule(),
625
625
  onError: (e) => {
626
- o?.(e ?? "Cross document data match error");
626
+ s?.(e ?? "Cross document data match error");
627
627
  }
628
- }, `cross-document-data-match-${f.currentStepIndex}`)
628
+ }, `cross-document-data-match-${p.currentStepIndex}`)
629
629
  });
630
- if (e === "DYNAMIC_FORMS") return /* @__PURE__ */ s("div", {
630
+ if (e === "DYNAMIC_FORMS") return /* @__PURE__ */ c("div", {
631
631
  class: "IncodeFlow",
632
- children: /* @__PURE__ */ s(a, {
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: () => m.completeModule(),
646
+ onFinish: () => h.completeModule(),
647
647
  onError: (e) => {
648
- o?.(e ?? "Dynamic forms error");
648
+ s?.(e ?? "Dynamic forms error");
649
649
  }
650
- }, `dynamic-forms-${f.currentStepIndex}`)
650
+ }, `dynamic-forms-${p.currentStepIndex}`)
651
651
  });
652
652
  }
653
653
  return null;
654
- }, J = ({ config: e, onFinish: t = () => {}, onError: n }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(q, {
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
- f(J, "incode-flow");
659
+ p(Y, "incode-flow");
660
660
  //#endregion
661
- export { J as IncodeFlow, B as preloadIncodeFlow };
661
+ export { Y as IncodeFlow, V as preloadIncodeFlow };