@incodetech/web 0.0.0-dev-20260421-d74e4f6 → 0.0.0-dev-20260421-a263f79
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-DDez8G7f.js → addressAutocomplete-Xdp9mPRT.js} +2 -2
- package/dist/ae-signature/ae-signature.es.js +1 -1
- package/dist/antifraud/antifraud.es.js +1 -1
- package/dist/authentication/authentication.es.js +1 -1
- package/dist/{button-wmLHLQxG.js → button-4-ToV5B_.js} +1 -1
- package/dist/{checkbox-CPPLE15P.js → checkbox-Xh75AgKT.js} +1 -1
- package/dist/consent/consent.es.js +4 -4
- package/dist/cross-document-data-match/cross-document-data-match.es.js +1 -1
- package/dist/curp-validation/curp-validation.es.js +8 -8
- package/dist/{dateInputComposed-AdNo0gur.js → dateInputComposed-CBvZmLBy.js} +3 -3
- package/dist/dateInputComposed-DLOh-eXS.js +1 -0
- package/dist/{documentCapture-DO46bdnm.js → documentCapture-D_e9m4o5.js} +5 -5
- package/dist/dropdownComposed-3cFHAdBp.js +1 -0
- package/dist/{dropdownComposed-DwvJXsoh.js → dropdownComposed-B4Ebk486.js} +1 -1
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-BbhvMMDg.js → ekybModule-B7k5uaCZ.js} +7 -7
- package/dist/ekybModule-CXY_Mv5-.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-BdPdWLQa.js +2 -0
- package/dist/{ekycModule-CXZV44ne.js → ekycModule-OS6Kw_iX.js} +8 -8
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-Bpnlef1f.js → electronic-signature-C021QkIh.js} +3 -3
- package/dist/email/email.es.js +4 -4
- package/dist/{extensibility-CLuzWPk0.js → extensibility-Cv7u7Q9B.js} +17 -18
- package/dist/extensibility.es.js +15 -15
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/{faceMatch-C47gOBe4.js → faceMatch-BEoxDC42.js} +49 -48
- package/dist/faceMatch-C_JTA6_f.js +2 -0
- package/dist/flow/flow.es.js +88 -104
- package/dist/flow/styles.css +0 -16
- package/dist/{formField-CqHZvizq.js → formField-CWGwTjU0.js} +1 -1
- package/dist/geolocation/geolocation.es.js +1 -1
- package/dist/governmentValidation/governmentValidation.es.js +2 -2
- package/dist/{homeScreen-DwQ4wFwu.js → homeScreen-CAFKUlMd.js} +4 -4
- package/dist/id/id.es.js +84 -87
- package/dist/identity-reuse/identity-reuse.es.js +2 -2
- package/dist/{inputComposed-CSa79kcp.js → inputComposed-D7vq-JYi.js} +1 -1
- package/dist/inputComposed-HqPLwoEb.js +1 -0
- package/dist/{loadingIcon-HWY04StG.js → loadingIcon-wTrHZMGC.js} +34 -26
- package/dist/{mandatoryConsent-WIThElao.js → mandatoryConsent-Bhydm83e.js} +4 -4
- package/dist/{modal-BoEESkLs.js → modal-CfWL75re.js} +1 -1
- package/dist/{otpInput-86AU1izq.js → otpInput-DGxQcqVQ.js} +3 -3
- package/dist/phone/phone.es.js +4 -4
- package/dist/{phoneInputComposed-Cv6DP3BU.js → phoneInputComposed-BSn0WlMA.js} +2 -2
- package/dist/processing-DahN4NlZ.js +6 -0
- package/dist/qe-signature/qe-signature.es.js +1 -1
- package/dist/{redirectToMobile-DbqFM1A4.js → redirectToMobile-BNMTUUuv.js} +4 -4
- package/dist/selfie/selfie.es.js +20 -19
- package/dist/selfie/styles.css +0 -16
- package/dist/signature/signature.es.js +2 -3
- package/dist/spinner-BmFWJNHp.js +1 -0
- package/dist/{spinner-l6dvYqCg.js → spinner-DyRQfsz_.js} +2 -3
- package/dist/{tabs-DjLpBcrG.js → tabs-CIk4tOL2.js} +1 -1
- package/dist/transitionSpinner-DMz65Cb2.js +17 -0
- package/dist/{tutorial-KoEYRtE5.js → tutorial-DtReTwNS.js} +9 -23
- package/dist/{typography-CNNFm2Bl.js → typography-B7nxauEL.js} +1 -1
- package/dist/{useModuleLoader-yB6IHHHe.js → useModuleLoader-BQ-yrxuR.js} +9 -9
- package/dist/{verificationResult-CrNV1-Yp.js → verificationResult-BwV7ZiOq.js} +2 -2
- package/dist/watchlist/watchlist.es.js +2 -3
- package/dist/workflow/styles.css +0 -16
- package/dist/workflow/workflow.es.js +5 -10
- package/package.json +2 -2
- package/dist/dateInputComposed-Q3yxyhZb.js +0 -1
- package/dist/dropdownComposed-CusuOJ7b.js +0 -1
- package/dist/ekybModule-ihbZAMJE.js +0 -2
- package/dist/ekycModule-BEbeoIpE.js +0 -2
- package/dist/faceMatch-BUJmF3Qb.js +0 -2
- package/dist/inputComposed-dhAtwFQI.js +0 -1
- package/dist/processing-B3P1zGUU.js +0 -15
- package/dist/spinner-CFvndzMU.js +0 -1
- package/dist/typography-ClOy6Kmo.js +0 -1
package/dist/flow/flow.es.js
CHANGED
|
@@ -2,10 +2,9 @@ import { n as e } from "../i18n-CeGVT08F.js";
|
|
|
2
2
|
import { _ as t, c as n, l as r, o as i, p as a, v as o } from "../vendor-preact-D6SntenC.js";
|
|
3
3
|
import { t as s } from "../uiConfig-CwpQ-IM6.js";
|
|
4
4
|
import { o as c, t as l } from "../incodeComponent-DzIDROLm.js";
|
|
5
|
-
import { t as u } from "../
|
|
6
|
-
import "../spinner-CFvndzMU.js";
|
|
5
|
+
import { t as u } from "../transitionSpinner-DMz65Cb2.js";
|
|
7
6
|
import { t as d } from "../incodeModule-D_r2n18O.js";
|
|
8
|
-
import { a as f, c as p, d as m, i as h, l as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C } from "../useModuleLoader-
|
|
7
|
+
import { a as f, c as p, d as m, i as h, l as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C } from "../useModuleLoader-BQ-yrxuR.js";
|
|
9
8
|
import { getDeviceClass as w } from "@incodetech/core/device";
|
|
10
9
|
import { getRequiredWasmPipelines as T } from "@incodetech/core/flow";
|
|
11
10
|
import { createSession as E, validateQrUuid as D } from "@incodetech/core/session";
|
|
@@ -208,118 +207,103 @@ function H(e) {
|
|
|
208
207
|
}
|
|
209
208
|
//#endregion
|
|
210
209
|
//#region src/modules/flow/flow.tsx
|
|
211
|
-
var U = n(() => import("../homeScreen-
|
|
212
|
-
let {
|
|
210
|
+
var U = n(() => import("../homeScreen-CAFKUlMd.js").then((e) => ({ default: e.HomeScreen }))), W = ({ config: n, onFinish: r, onError: a }) => {
|
|
211
|
+
let { i18n: s } = e(), l = H({
|
|
213
212
|
...n,
|
|
214
213
|
onError: a
|
|
215
|
-
}), [
|
|
216
|
-
moduleKey:
|
|
214
|
+
}), [d, p] = c(() => l.flowManager, { autoLoad: !1 }), m = d.presentation.lazyModuleKey, g = d.status === "ready" ? d.currentStep : void 0, v = S({
|
|
215
|
+
moduleKey: m,
|
|
217
216
|
modules: f,
|
|
218
217
|
onModuleLoading: n.onModuleLoading,
|
|
219
218
|
onModuleLoaded: n.onModuleLoaded,
|
|
220
219
|
onError: a
|
|
221
|
-
}),
|
|
222
|
-
moduleKey:
|
|
220
|
+
}), x = _({
|
|
221
|
+
moduleKey: d.status === "ready" && d.homeScreen.visible ? g : void 0,
|
|
223
222
|
modules: f
|
|
224
|
-
}),
|
|
225
|
-
|
|
226
|
-
let
|
|
227
|
-
if (b(
|
|
228
|
-
|
|
229
|
-
}, [
|
|
230
|
-
n.lang &&
|
|
231
|
-
}, [n.lang,
|
|
232
|
-
if (
|
|
233
|
-
let e =
|
|
223
|
+
}), w = v.status === "loaded";
|
|
224
|
+
w === !1 && d.homeScreen.visible && (w = x);
|
|
225
|
+
let E = n.enableHome === !0 && d.status === "ready" && d.currentStepIndex === 0 && d.homeScreen.visible === !1 && v.status === "loading";
|
|
226
|
+
if (b(d?.status === "ready" ? d.steps : [], d?.status === "ready" ? d.currentStepIndex : -1, f, w), t(() => {
|
|
227
|
+
d.presentation.shouldPrefetchHome && C();
|
|
228
|
+
}, [d.presentation.shouldPrefetchHome]), t(() => {
|
|
229
|
+
n.lang && s.language !== n.lang && s.changeLanguage(n.lang);
|
|
230
|
+
}, [n.lang, s]), t(() => {
|
|
231
|
+
if (d?.status !== "ready" || d.currentStep === "REDIRECT_TO_MOBILE") return;
|
|
232
|
+
let e = d, t = T(e.flow);
|
|
234
233
|
t.length > 0 && (n.onWasmWarmup?.(t), y(e, n.wasmConfig));
|
|
235
|
-
}, [
|
|
236
|
-
|
|
234
|
+
}, [d, n]), t(() => {
|
|
235
|
+
d?.status === "finished" && r(d.finishStatus);
|
|
237
236
|
}, [
|
|
238
|
-
|
|
237
|
+
d?.status,
|
|
239
238
|
r,
|
|
240
|
-
|
|
239
|
+
d
|
|
241
240
|
]), t(() => {
|
|
242
|
-
|
|
241
|
+
d?.status === "error" && a && a(d.error);
|
|
243
242
|
}, [
|
|
244
|
-
|
|
243
|
+
d?.status,
|
|
245
244
|
a,
|
|
246
|
-
|
|
245
|
+
d
|
|
247
246
|
]), t(() => {
|
|
248
|
-
|
|
249
|
-
}, [
|
|
247
|
+
d?.status === "ready" && d.currentStep === "ID" && d.steps.includes("TUTORIAL_ID") && p.completeModule();
|
|
248
|
+
}, [d, p]), l.status === "error") return /* @__PURE__ */ o("div", {
|
|
250
249
|
class: "IncodeFlow",
|
|
251
|
-
children: /* @__PURE__ */ o("div", { children: ["Error: ",
|
|
250
|
+
children: /* @__PURE__ */ o("div", { children: ["Error: ", l.error] })
|
|
252
251
|
});
|
|
253
|
-
if (
|
|
252
|
+
if (d.homeScreen.visible || E) return /* @__PURE__ */ o("div", {
|
|
254
253
|
class: "IncodeFlow",
|
|
255
254
|
children: /* @__PURE__ */ o(i, {
|
|
256
255
|
fallback: null,
|
|
257
256
|
children: /* @__PURE__ */ o(U, {
|
|
258
|
-
isContinueLoading:
|
|
259
|
-
onContinue: () =>
|
|
257
|
+
isContinueLoading: d.homeScreen.isContinueLoading || E,
|
|
258
|
+
onContinue: () => p.continueFromHome()
|
|
260
259
|
})
|
|
261
260
|
})
|
|
262
261
|
});
|
|
263
|
-
if (
|
|
262
|
+
if (l.status === "initializing" || d.presentation.isAwaitingReady) return /* @__PURE__ */ o("div", {
|
|
264
263
|
class: "IncodeFlow",
|
|
265
|
-
children: /* @__PURE__ */ o(u, {
|
|
266
|
-
title: n.spinnerConfig?.title ?? s("loadingCircle.hangOn"),
|
|
267
|
-
subtitle: n.spinnerConfig?.subtitle ?? s("loadingCircle.validating"),
|
|
268
|
-
size: n.spinnerConfig?.size ?? "large",
|
|
269
|
-
fullScreen: !0
|
|
270
|
-
})
|
|
264
|
+
children: /* @__PURE__ */ o(u, { spinnerConfig: n.spinnerConfig })
|
|
271
265
|
});
|
|
272
|
-
if (
|
|
266
|
+
if (d.status === "error") return /* @__PURE__ */ o("div", {
|
|
273
267
|
class: "IncodeFlow",
|
|
274
|
-
children: /* @__PURE__ */ o("div", { children: ["Error: ",
|
|
268
|
+
children: /* @__PURE__ */ o("div", { children: ["Error: ", d.error] })
|
|
275
269
|
});
|
|
276
|
-
if (
|
|
277
|
-
if (
|
|
278
|
-
let { currentStep: e, config: t, flow: { flowId: r } } =
|
|
270
|
+
if (d.status === "finished") return null;
|
|
271
|
+
if (d?.status === "ready") {
|
|
272
|
+
let { currentStep: e, config: t, flow: { flowId: r } } = d;
|
|
279
273
|
if (!e || !t) return /* @__PURE__ */ o("div", {
|
|
280
274
|
class: "IncodeFlow",
|
|
281
|
-
children: /* @__PURE__ */ o(u, {
|
|
282
|
-
title: n.spinnerConfig?.title ?? s("loadingCircle.hangOn"),
|
|
283
|
-
subtitle: n.spinnerConfig?.subtitle ?? s("loadingCircle.validating"),
|
|
284
|
-
size: n.spinnerConfig?.size ?? "large",
|
|
285
|
-
fullScreen: !0
|
|
286
|
-
})
|
|
275
|
+
children: /* @__PURE__ */ o(u, { spinnerConfig: n.spinnerConfig })
|
|
287
276
|
});
|
|
288
|
-
if (
|
|
277
|
+
if (v.status === "unsupported") return /* @__PURE__ */ o("div", {
|
|
289
278
|
class: "IncodeFlow",
|
|
290
279
|
children: /* @__PURE__ */ o(h, {
|
|
291
280
|
moduleKey: e,
|
|
292
|
-
onNext: () =>
|
|
281
|
+
onNext: () => p.completeModule()
|
|
293
282
|
})
|
|
294
283
|
});
|
|
295
|
-
if (
|
|
284
|
+
if (v.status === "idle" || v.status === "loading" || v.status === "error") return /* @__PURE__ */ o("div", {
|
|
296
285
|
class: "IncodeFlow",
|
|
297
|
-
children: /* @__PURE__ */ o(u, {
|
|
298
|
-
title: n.spinnerConfig?.title ?? s("loadingCircle.hangOn"),
|
|
299
|
-
subtitle: n.spinnerConfig?.subtitle ?? s("loadingCircle.validating"),
|
|
300
|
-
size: n.spinnerConfig?.size ?? "large",
|
|
301
|
-
fullScreen: !0
|
|
302
|
-
})
|
|
286
|
+
children: /* @__PURE__ */ o(u, { spinnerConfig: n.spinnerConfig })
|
|
303
287
|
});
|
|
304
|
-
let { Component: i } =
|
|
288
|
+
let { Component: i } = v;
|
|
305
289
|
if (e === "REDIRECT_TO_MOBILE") return /* @__PURE__ */ o("div", {
|
|
306
290
|
class: "IncodeFlow",
|
|
307
291
|
children: /* @__PURE__ */ o(i, {
|
|
308
292
|
config: t,
|
|
309
|
-
onFinish: () =>
|
|
310
|
-
onContinue: () =>
|
|
293
|
+
onFinish: () => p.completeFlow(),
|
|
294
|
+
onContinue: () => p.completeModule(),
|
|
311
295
|
onError: a
|
|
312
|
-
}, `redirect-to-mobile-${
|
|
296
|
+
}, `redirect-to-mobile-${d.currentStepIndex}`)
|
|
313
297
|
});
|
|
314
298
|
if (e === "SELFIE") return /* @__PURE__ */ o("div", {
|
|
315
299
|
class: "IncodeFlow",
|
|
316
300
|
children: /* @__PURE__ */ o(i, {
|
|
317
301
|
config: t,
|
|
318
|
-
onFinish: () =>
|
|
302
|
+
onFinish: () => p.completeModule(),
|
|
319
303
|
onError: (e) => {
|
|
320
304
|
a?.(e ?? "Selfie verification error");
|
|
321
305
|
}
|
|
322
|
-
}, `selfie-${
|
|
306
|
+
}, `selfie-${d.currentStepIndex}`)
|
|
323
307
|
});
|
|
324
308
|
if (e === "AUTHENTICATION") return /* @__PURE__ */ o("div", {
|
|
325
309
|
class: "IncodeFlow",
|
|
@@ -328,21 +312,21 @@ var U = n(() => import("../homeScreen-DwQ4wFwu.js").then((e) => ({ default: e.Ho
|
|
|
328
312
|
...t,
|
|
329
313
|
authHint: n.authHint
|
|
330
314
|
},
|
|
331
|
-
onFinish: () =>
|
|
315
|
+
onFinish: () => p.completeModule(),
|
|
332
316
|
onError: (e) => {
|
|
333
317
|
a?.(e ?? "Authentication error");
|
|
334
318
|
}
|
|
335
|
-
}, `authentication-${
|
|
319
|
+
}, `authentication-${d.currentStepIndex}`)
|
|
336
320
|
});
|
|
337
321
|
if (e === "PHONE") return /* @__PURE__ */ o("div", {
|
|
338
322
|
class: "IncodeFlow",
|
|
339
323
|
children: /* @__PURE__ */ o(i, {
|
|
340
324
|
config: t,
|
|
341
|
-
onFinish: () =>
|
|
325
|
+
onFinish: () => p.completeModule(),
|
|
342
326
|
onError: (e) => {
|
|
343
327
|
a?.(e ?? "Phone verification error");
|
|
344
328
|
}
|
|
345
|
-
}, `phone-${
|
|
329
|
+
}, `phone-${d.currentStepIndex}`)
|
|
346
330
|
});
|
|
347
331
|
if (e === "EMAIL") {
|
|
348
332
|
let e = t;
|
|
@@ -353,11 +337,11 @@ var U = n(() => import("../homeScreen-DwQ4wFwu.js").then((e) => ({ default: e.Ho
|
|
|
353
337
|
class: "IncodeFlow",
|
|
354
338
|
children: /* @__PURE__ */ o(i, {
|
|
355
339
|
config: e,
|
|
356
|
-
onFinish: () =>
|
|
340
|
+
onFinish: () => p.completeModule(),
|
|
357
341
|
onError: (e) => {
|
|
358
342
|
a?.(e ?? "Email verification error");
|
|
359
343
|
}
|
|
360
|
-
}, `email-${
|
|
344
|
+
}, `email-${d.currentStepIndex}`)
|
|
361
345
|
});
|
|
362
346
|
}
|
|
363
347
|
if (e === "ID" || e === "SECOND_ID") {
|
|
@@ -369,72 +353,72 @@ var U = n(() => import("../homeScreen-DwQ4wFwu.js").then((e) => ({ default: e.Ho
|
|
|
369
353
|
...n,
|
|
370
354
|
isSecondId: !0
|
|
371
355
|
} : n,
|
|
372
|
-
onFinish: () =>
|
|
356
|
+
onFinish: () => p.completeModule(),
|
|
373
357
|
onError: (e) => {
|
|
374
358
|
a?.(e ?? "ID capture error");
|
|
375
359
|
}
|
|
376
|
-
}, `id-${
|
|
360
|
+
}, `id-${d.currentStepIndex}`)
|
|
377
361
|
});
|
|
378
362
|
}
|
|
379
363
|
if (e === "FACE_MATCH") return /* @__PURE__ */ o("div", {
|
|
380
364
|
class: "IncodeFlow",
|
|
381
365
|
children: /* @__PURE__ */ o(i, {
|
|
382
366
|
config: t,
|
|
383
|
-
onFinish: () =>
|
|
367
|
+
onFinish: () => p.completeModule(),
|
|
384
368
|
onError: (e) => {
|
|
385
369
|
a?.(e ?? "Face match error");
|
|
386
370
|
}
|
|
387
|
-
}, `face-match-${
|
|
371
|
+
}, `face-match-${d.currentStepIndex}`)
|
|
388
372
|
});
|
|
389
373
|
if (e === "CURP_VALIDATION") return /* @__PURE__ */ o("div", {
|
|
390
374
|
class: "IncodeFlow",
|
|
391
375
|
children: /* @__PURE__ */ o(i, {
|
|
392
376
|
config: t,
|
|
393
|
-
onFinish: () =>
|
|
377
|
+
onFinish: () => p.completeModule(),
|
|
394
378
|
onError: (e) => {
|
|
395
379
|
a?.(e ?? "CURP validation error");
|
|
396
380
|
}
|
|
397
|
-
}, `curp-validation-${
|
|
381
|
+
}, `curp-validation-${d.currentStepIndex}`)
|
|
398
382
|
});
|
|
399
383
|
if (e === "GOVT_VALIDATION_PROVISIONING") return /* @__PURE__ */ o("div", {
|
|
400
384
|
class: "IncodeFlow",
|
|
401
385
|
children: /* @__PURE__ */ o(i, {
|
|
402
386
|
config: t,
|
|
403
|
-
onFinish: () =>
|
|
387
|
+
onFinish: () => p.completeModule(),
|
|
404
388
|
onError: (e) => {
|
|
405
389
|
a?.(e ?? "Government validation error");
|
|
406
390
|
}
|
|
407
|
-
}, `govt-validation-${
|
|
391
|
+
}, `govt-validation-${d.currentStepIndex}`)
|
|
408
392
|
});
|
|
409
393
|
if (e === "GEOLOCATION") return /* @__PURE__ */ o("div", {
|
|
410
394
|
class: "IncodeFlow",
|
|
411
395
|
children: /* @__PURE__ */ o(i, {
|
|
412
396
|
config: t,
|
|
413
|
-
onFinish: () =>
|
|
397
|
+
onFinish: () => p.completeModule(),
|
|
414
398
|
onError: (e) => {
|
|
415
399
|
a?.(e ?? "Geolocation error");
|
|
416
400
|
}
|
|
417
|
-
}, `geolocation-${
|
|
401
|
+
}, `geolocation-${d.currentStepIndex}`)
|
|
418
402
|
});
|
|
419
403
|
if (e === "EXTERNAL_VERIFICATION") return /* @__PURE__ */ o("div", {
|
|
420
404
|
class: "IncodeFlow",
|
|
421
405
|
children: /* @__PURE__ */ o(i, {
|
|
422
|
-
config: { flowId:
|
|
423
|
-
onFinish: () =>
|
|
406
|
+
config: { flowId: d.flow.flowId },
|
|
407
|
+
onFinish: () => p.completeModule(),
|
|
424
408
|
onError: (e) => {
|
|
425
409
|
a?.(e ?? "External verification error");
|
|
426
410
|
}
|
|
427
|
-
}, `ekyc-${
|
|
411
|
+
}, `ekyc-${d.currentStepIndex}`)
|
|
428
412
|
});
|
|
429
413
|
if (e === "DOCUMENT_CAPTURE") return /* @__PURE__ */ o("div", {
|
|
430
414
|
class: "IncodeFlow",
|
|
431
415
|
children: /* @__PURE__ */ o(i, {
|
|
432
416
|
config: t,
|
|
433
|
-
onFinish: () =>
|
|
417
|
+
onFinish: () => p.completeModule(),
|
|
434
418
|
onError: (e) => {
|
|
435
419
|
a?.(e ?? "Document capture error");
|
|
436
420
|
}
|
|
437
|
-
}, `document-capture-${
|
|
421
|
+
}, `document-capture-${d.currentStepIndex}`)
|
|
438
422
|
});
|
|
439
423
|
if (e === "ADDRESS") return /* @__PURE__ */ o("div", {
|
|
440
424
|
class: "IncodeFlow",
|
|
@@ -443,21 +427,21 @@ var U = n(() => import("../homeScreen-DwQ4wFwu.js").then((e) => ({ default: e.Ho
|
|
|
443
427
|
...t,
|
|
444
428
|
processingType: "addressStatement"
|
|
445
429
|
},
|
|
446
|
-
onFinish: () =>
|
|
430
|
+
onFinish: () => p.completeModule(),
|
|
447
431
|
onError: (e) => {
|
|
448
432
|
a?.(e ?? "Address capture error");
|
|
449
433
|
}
|
|
450
|
-
}, `address-${
|
|
434
|
+
}, `address-${d.currentStepIndex}`)
|
|
451
435
|
});
|
|
452
436
|
if (e === "SIGNATURE") return /* @__PURE__ */ o("div", {
|
|
453
437
|
class: "IncodeFlow",
|
|
454
438
|
children: /* @__PURE__ */ o(i, {
|
|
455
439
|
config: t,
|
|
456
|
-
onFinish: () =>
|
|
440
|
+
onFinish: () => p.completeModule(),
|
|
457
441
|
onError: (e) => {
|
|
458
442
|
a?.(e ?? "Signature capture error");
|
|
459
443
|
}
|
|
460
|
-
}, `signature-${
|
|
444
|
+
}, `signature-${d.currentStepIndex}`)
|
|
461
445
|
});
|
|
462
446
|
if (e === "EKYB") {
|
|
463
447
|
let e = t;
|
|
@@ -471,32 +455,32 @@ var U = n(() => import("../homeScreen-DwQ4wFwu.js").then((e) => ({ default: e.Ho
|
|
|
471
455
|
checkTaxId: e.checkTaxId,
|
|
472
456
|
checkUniqueBeneficialOwner: e.checkUniqueBeneficialOwner
|
|
473
457
|
},
|
|
474
|
-
onFinish: () =>
|
|
458
|
+
onFinish: () => p.completeModule(),
|
|
475
459
|
onError: (e) => {
|
|
476
460
|
a?.(e ?? "eKYB verification error");
|
|
477
461
|
}
|
|
478
|
-
}, `ekyb-${
|
|
462
|
+
}, `ekyb-${d.currentStepIndex}`)
|
|
479
463
|
});
|
|
480
464
|
}
|
|
481
465
|
if (e === "COMBINED_CONSENT") return /* @__PURE__ */ o("div", {
|
|
482
466
|
class: "IncodeFlow",
|
|
483
467
|
children: /* @__PURE__ */ o(i, {
|
|
484
468
|
config: t,
|
|
485
|
-
onFinish: () =>
|
|
469
|
+
onFinish: () => p.completeModule(),
|
|
486
470
|
onError: (e) => {
|
|
487
471
|
a?.(e ?? "Combined consent error");
|
|
488
472
|
}
|
|
489
|
-
}, `combined-consent-${
|
|
473
|
+
}, `combined-consent-${d.currentStepIndex}`)
|
|
490
474
|
});
|
|
491
475
|
if (e === "MANDATORY_CONSENT") return /* @__PURE__ */ o("div", {
|
|
492
476
|
class: "IncodeFlow",
|
|
493
477
|
children: /* @__PURE__ */ o(i, {
|
|
494
478
|
config: t,
|
|
495
|
-
onFinish: () =>
|
|
479
|
+
onFinish: () => p.completeModule(),
|
|
496
480
|
onError: (e) => {
|
|
497
481
|
a?.(e ?? "Mandatory consent error");
|
|
498
482
|
}
|
|
499
|
-
}, `mandatory-consent-${
|
|
483
|
+
}, `mandatory-consent-${d.currentStepIndex}`)
|
|
500
484
|
});
|
|
501
485
|
if (e === "AE_SIGNATURE" || e === "QE_SIGNATURE") {
|
|
502
486
|
let n = t, r = e === "QE_SIGNATURE" ? "qe" : "ae";
|
|
@@ -507,39 +491,39 @@ var U = n(() => import("../homeScreen-DwQ4wFwu.js").then((e) => ({ default: e.Ho
|
|
|
507
491
|
uploadDocument: n.uploadDocument,
|
|
508
492
|
downloadDocument: n.downloadDocument
|
|
509
493
|
},
|
|
510
|
-
onFinish: () =>
|
|
494
|
+
onFinish: () => p.completeModule(),
|
|
511
495
|
onError: (e) => {
|
|
512
496
|
a?.(e ?? `${r.toUpperCase()} Signature error`);
|
|
513
497
|
}
|
|
514
|
-
}, `${r}-signature-${
|
|
498
|
+
}, `${r}-signature-${d.currentStepIndex}`)
|
|
515
499
|
});
|
|
516
500
|
}
|
|
517
501
|
if (e === "ANTIFRAUD") return /* @__PURE__ */ o("div", {
|
|
518
502
|
class: "IncodeFlow",
|
|
519
503
|
children: /* @__PURE__ */ o(i, {
|
|
520
|
-
onFinish: () =>
|
|
504
|
+
onFinish: () => p.completeModule(),
|
|
521
505
|
onError: (e) => {
|
|
522
506
|
a?.(e ?? "Antifraud check error");
|
|
523
507
|
}
|
|
524
|
-
}, `antifraud-${
|
|
508
|
+
}, `antifraud-${d.currentStepIndex}`)
|
|
525
509
|
});
|
|
526
510
|
if (e === "WATCHLIST") return /* @__PURE__ */ o("div", {
|
|
527
511
|
class: "IncodeFlow",
|
|
528
512
|
children: /* @__PURE__ */ o(i, {
|
|
529
|
-
onFinish: () =>
|
|
513
|
+
onFinish: () => p.completeModule(),
|
|
530
514
|
onError: (e) => {
|
|
531
515
|
a?.(e ?? "Watchlist check error");
|
|
532
516
|
}
|
|
533
|
-
}, `watchlist-${
|
|
517
|
+
}, `watchlist-${d.currentStepIndex}`)
|
|
534
518
|
});
|
|
535
519
|
if (e === "CROSS_DOCUMENT_DATA_MATCH") return /* @__PURE__ */ o("div", {
|
|
536
520
|
class: "IncodeFlow",
|
|
537
521
|
children: /* @__PURE__ */ o(i, {
|
|
538
|
-
onFinish: () =>
|
|
522
|
+
onFinish: () => p.completeModule(),
|
|
539
523
|
onError: (e) => {
|
|
540
524
|
a?.(e ?? "Cross document data match error");
|
|
541
525
|
}
|
|
542
|
-
}, `cross-document-data-match-${
|
|
526
|
+
}, `cross-document-data-match-${d.currentStepIndex}`)
|
|
543
527
|
});
|
|
544
528
|
}
|
|
545
529
|
return null;
|
package/dist/flow/styles.css
CHANGED
|
@@ -654,22 +654,6 @@
|
|
|
654
654
|
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
-
.IncodeCaptureStatusPage.IncodeCaptureStatusUploading .IncodeCaptureStatusContainer {
|
|
658
|
-
animation: .4s ease-out fadeInScale;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
@keyframes fadeInScale {
|
|
662
|
-
from {
|
|
663
|
-
opacity: 0;
|
|
664
|
-
transform: scale(.95);
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
to {
|
|
668
|
-
opacity: 1;
|
|
669
|
-
transform: scale(1);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
|
|
673
657
|
.IncodeFaceOutline {
|
|
674
658
|
width: 100%;
|
|
675
659
|
height: 100%;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./i18n-CeGVT08F.js";
|
|
2
2
|
import { v as t } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { t as n } from "./inputComposed-
|
|
3
|
+
import { t as n } from "./inputComposed-D7vq-JYi.js";
|
|
4
4
|
//#region src/shared/errorParams.ts
|
|
5
5
|
function r(e, t) {
|
|
6
6
|
if (t?.fieldName && typeof t.fieldName == "string") {
|
|
@@ -3,7 +3,7 @@ import { S as n, _ as r, v as i } from "../vendor-preact-D6SntenC.js";
|
|
|
3
3
|
import { o as a, t as o } from "../incodeComponent-DzIDROLm.js";
|
|
4
4
|
import { t as s } from "../spacer-DCljE53A.js";
|
|
5
5
|
import { t as c } from "../page-D5Mt-0zn.js";
|
|
6
|
-
import { t as l } from "../button-
|
|
6
|
+
import { t as l } from "../button-4-ToV5B_.js";
|
|
7
7
|
import { t as u } from "../numberedStep-CR4w_BpM.js";
|
|
8
8
|
import { t as d } from "../incodeModule-D_r2n18O.js";
|
|
9
9
|
import { getBrowser as f, getDeviceClass as p } from "@incodetech/core/device";
|
|
@@ -3,10 +3,10 @@ import { v as t } from "../vendor-preact-D6SntenC.js";
|
|
|
3
3
|
import { o as n, t as r } from "../incodeComponent-DzIDROLm.js";
|
|
4
4
|
import { t as i } from "../spacer-DCljE53A.js";
|
|
5
5
|
import { t as a } from "../page-D5Mt-0zn.js";
|
|
6
|
-
import { t as o } from "../spinner-
|
|
6
|
+
import { t as o } from "../spinner-DyRQfsz_.js";
|
|
7
7
|
import { m as s, p as c } from "../icons-Cj7hJH7f.js";
|
|
8
8
|
import { t as l } from "../successIcon-C4GI_9SU.js";
|
|
9
|
-
import { t as u } from "../otpInput-
|
|
9
|
+
import { t as u } from "../otpInput-DGxQcqVQ.js";
|
|
10
10
|
import { t as d } from "../incodeModule-D_r2n18O.js";
|
|
11
11
|
import { createGovernmentValidationManager as f } from "@incodetech/core/government-validation";
|
|
12
12
|
//#region src/modules/governmentValidation/governmentValidation.tsx
|
|
@@ -3,10 +3,10 @@ import { _ as r, d as i, l as a, p as o, v as s } from "./vendor-preact-D6SntenC
|
|
|
3
3
|
import { n as c } from "./uiConfig-CwpQ-IM6.js";
|
|
4
4
|
import { t as l } from "./spacer-DCljE53A.js";
|
|
5
5
|
import "./incode-logo-DX016usY.js";
|
|
6
|
-
import { t as u } from "./button-
|
|
7
|
-
import { t as d } from "./dropdownComposed-
|
|
8
|
-
import "./dropdownComposed-
|
|
9
|
-
import { t as f } from "./modal-
|
|
6
|
+
import { t as u } from "./button-4-ToV5B_.js";
|
|
7
|
+
import { t as d } from "./dropdownComposed-B4Ebk486.js";
|
|
8
|
+
import "./dropdownComposed-3cFHAdBp.js";
|
|
9
|
+
import { t as f } from "./modal-CfWL75re.js";
|
|
10
10
|
//#region src/shared/homeScreen/language.ts
|
|
11
11
|
function p(e, t) {
|
|
12
12
|
let [n, ...r] = Array.from(e);
|