@incodetech/web 0.0.0-dev-20260429-71d4c48 → 0.0.0-dev-20260429-35afdca
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ae-signature/ae-signature.es.js +3 -3
- package/dist/ae-signature-D316IMg7.js +5 -0
- package/dist/antifraud/antifraud.es.js +4 -4
- package/dist/antifraud-CB-yiVmj.js +5 -0
- package/dist/authentication/authentication.es.js +4 -4
- package/dist/{back-horizontal-hint-DUuojsev.js → back-horizontal-hint-Rivv4odH.js} +1 -1
- package/dist/{back-vertical-hint-CX_hCJhV.js → back-vertical-hint-Bi2GKjAw.js} +1 -1
- package/dist/{bottomSheet-BICziA8B.js → bottomSheet-H576o2Ae.js} +2 -2
- package/dist/{button-i4SPU5G7.js → button-DXxszYOu.js} +2 -2
- package/dist/{checkbox-DSJ1kLyD.js → checkbox-HMGMzcIv.js} +3 -3
- package/dist/consent/consent.es.js +10 -10
- package/dist/consent-CmVHHfh0.js +5 -0
- package/dist/{countrySelector-B3JOaReM.js → countrySelector-DcKjrQye.js} +3 -3
- package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
- package/dist/curp-validation/curp-validation.es.js +16 -16
- package/dist/curp-validation-BZu1862x.js +5 -0
- package/dist/custom-fields-Dy2zIWk5.js +5 -0
- package/dist/{customFields-ClP-OHqQ.js → customFields-D2wZYEIM.js} +13 -13
- package/dist/{customWatchlist-DaNMXtkt.js → customWatchlist-qxLVolwh.js} +7 -7
- package/dist/dateInputComposed-B1930wH-.js +1 -0
- package/dist/{dateInputComposed-BISaNEkl.js → dateInputComposed-B4m_OJ0f.js} +5 -5
- package/dist/document-capture-klKhslw_.js +5 -0
- package/dist/{documentCapture-BD-LU6Y1.js → documentCapture-Bmnd-HoI.js} +14 -14
- package/dist/dropdownComposed-D94RHyH9.js +1 -0
- package/dist/{dropdownComposed-D7l5VnKk.js → dropdownComposed-ysrtM_xo.js} +4 -4
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekyb-AJ5pLamL.js +5 -0
- package/dist/{ekybModule-Ckv1f8aB.js → ekybModule-DvXcZXil.js} +13 -13
- package/dist/ekybModule-uLHrvaE0.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc-CGHe6KZF.js +5 -0
- package/dist/{ekycModule-CCJGIP0u.js → ekycModule-DHpDUapu.js} +14 -14
- package/dist/ekycModule-PeVktYEv.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-nZfD6fzf.js → electronic-signature-C-J7f37B.js} +13 -13
- package/dist/electronic-signature-CmWQ5m7Z.js +5 -0
- package/dist/email/email.es.js +10 -10
- package/dist/email-46LcB-zG.js +5 -0
- package/dist/{extensibility-BhOLYPko.js → extensibility-DJ7uJJS5.js} +39 -39
- package/dist/extensibility.es.js +24 -24
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match-fK60MxjZ.js +5 -0
- package/dist/faceMatch-B2oadZzM.js +2 -0
- package/dist/{faceMatch-BAOj4yMN.js → faceMatch-aulhVGxo.js} +10 -10
- package/dist/flow/flow.es.js +139 -136
- package/dist/flow/styles.css +174 -4729
- package/dist/flow-rPJJbW6T.js +5 -0
- package/dist/{formField-B34T3LAe.js → formField-9c3OJwOZ.js} +3 -3
- package/dist/{front-horizontal-hint-2RcQjgHE.js → front-horizontal-hint-ECtf7INv.js} +1 -1
- package/dist/{front-vertical-hint-CRhiWbkP.js → front-vertical-hint-DBdptGwa.js} +1 -1
- package/dist/geolocation/geolocation.es.js +8 -8
- package/dist/geolocation-tgDRHF5G.js +5 -0
- package/dist/governmentValidation/governmentValidation.es.js +10 -10
- package/dist/governmentValidation-CRpowRw3.js +5 -0
- package/dist/{homeScreen-Dc3ipd-q.js → homeScreen-nNYHPykv.js} +8 -8
- package/dist/{i18n-ntrVdqVv.js → i18n-BNE9nYru.js} +2 -2
- package/dist/{icons-Bk44oy5t.js → icons-B9-0K6zx.js} +2 -2
- package/dist/id/id.es.js +18 -18
- package/dist/id-Czs29YjP.js +5 -0
- package/dist/id-ocr-De0CziTg.js +5 -0
- package/dist/{idOcr-DyEsmJUm.js → idOcr-DWF6lFjq.js} +11 -11
- package/dist/identity-reuse/identity-reuse.es.js +7 -7
- package/dist/identity-reuse-DRaYjwgl.js +5 -0
- package/dist/{incodeComponent-DexcYK3Y.js → incodeComponent-Bj2iIi3-.js} +2 -2
- package/dist/incodeModule-4-Ij3Hzt.js +74 -0
- package/dist/index.es.js +2 -2
- package/dist/inputComposed-BYIbvEZU.js +1 -0
- package/dist/{inputComposed-4aHO5YRK.js → inputComposed-CZYVA9pY.js} +4 -4
- package/dist/{loadingIcon-C-Sq5v_K.js → loadingIcon-BWeYwnoO.js} +1 -1
- package/dist/mandatory-consent-Cwa_D62s.js +5 -0
- package/dist/{mandatoryConsent-OCdxJMmo.js → mandatoryConsent-BxmewvFy.js} +10 -10
- package/dist/{modal-dixIN7NV.js → modal-BiHWHzbc.js} +37 -37
- package/dist/{modal.hooks-BzIVzVbq.js → modal.hooks-BWHmspKt.js} +1 -1
- package/dist/{numberedStep-DDP7_KWo.js → numberedStep-CB41HauU.js} +1 -1
- package/dist/{optionAccessibleLabel-DGtiAlUq.js → optionAccessibleLabel-oqe5fTiF.js} +6 -6
- package/dist/{otpInput-DgtpWHON.js → otpInput-DxekO34i.js} +6 -6
- package/dist/{page-BB20C-zy.js → page-C_Z2vd8q.js} +3 -3
- package/dist/{passport-horizontal-hint-CAqrHNYZ.js → passport-horizontal-hint-x0w1qXO5.js} +1 -1
- package/dist/{passport-vertical-hint-BHH9yd1n.js → passport-vertical-hint-BoPv9mev.js} +1 -1
- package/dist/phone/phone.es.js +10 -10
- package/dist/phone-ChAbJlMB.js +5 -0
- package/dist/{phoneInput-C8OmjU3_.js → phoneInput-B5mP8vvS.js} +3 -3
- package/dist/{phoneInputComposed--GQv3M_5.js → phoneInputComposed-C6mrR5NJ.js} +5 -5
- package/dist/{processing-AM48BFTl.js → processing-C1ymzBNJ.js} +2 -2
- package/dist/qe-signature/qe-signature.es.js +3 -3
- package/dist/qe-signature-C4R5aFPn.js +5 -0
- package/dist/{radioButtonComposed-CuKvBI5S.js → radioButtonComposed-yT_6g1qe.js} +3 -3
- package/dist/redirect-to-mobile-CEkqbyYW.js +5 -0
- package/dist/{redirectToMobile-DfUzha84.js → redirectToMobile-BtsF6N0g.js} +14 -14
- package/dist/{richText-FMNMBzjD.js → richText-uERDfLN2.js} +1 -1
- package/dist/selfie/selfie.es.js +7 -7
- package/dist/selfie-DoBsWHhr.js +5 -0
- package/dist/signature/signature.es.js +9 -9
- package/dist/signature-CEHAjVar.js +5 -0
- package/dist/{spacer-CN9uvb__.js → spacer-DCAl0Mjk.js} +1 -1
- package/dist/{spinner-Cj7kdZ0T.js → spinner-DTwtoppQ.js} +4 -4
- package/dist/spinner-iH4HWMX6.js +1 -0
- package/dist/{statusPage-DUnznjtg.js → statusPage-BTF4FmJT.js} +4 -4
- package/dist/{successIcon-SlKgTSty.js → successIcon-COlazRl-.js} +1 -1
- package/dist/{tabs-sbbH0u2L.js → tabs-z-X6zD3C.js} +2 -2
- package/dist/{transitionSpinner-DqDwaNM6.js → transitionSpinner-C_573zFG.js} +4 -4
- package/dist/{tutorial-B2lNnuWv.js → tutorial-DcuYI4JA.js} +15 -15
- package/dist/types/ae-signature.d.ts +1 -0
- package/dist/types/antifraud.d.ts +1 -0
- package/dist/types/authentication.d.ts +1 -0
- package/dist/types/consent.d.ts +1 -0
- package/dist/types/cross-document-data-match.d.ts +1 -0
- package/dist/types/curp-validation.d.ts +1 -0
- package/dist/types/ekyb.d.ts +1 -0
- package/dist/types/ekyc.d.ts +1 -0
- package/dist/types/electronic-signature.d.ts +1 -0
- package/dist/types/email.d.ts +1 -0
- package/dist/types/extensibility.d.ts +1 -0
- package/dist/types/face-match.d.ts +1 -0
- package/dist/types/flow.d.ts +1 -0
- package/dist/types/geolocation.d.ts +1 -0
- package/dist/types/governmentValidation.d.ts +1 -0
- package/dist/types/id.d.ts +1 -0
- package/dist/types/identity-reuse.d.ts +1 -0
- package/dist/types/phone.d.ts +1 -0
- package/dist/types/qe-signature.d.ts +1 -0
- package/dist/types/selfie.d.ts +1 -0
- package/dist/types/signature.d.ts +1 -0
- package/dist/types/watchlist.d.ts +1 -0
- package/dist/types/workflow.d.ts +1 -0
- package/dist/{typography-Duug0raB.js → typography-Dn_SWwB2.js} +2 -2
- package/dist/{uiConfig-CwpQ-IM6.js → uiConfig-BfJ9gLl7.js} +1 -1
- package/dist/{useModuleLoader-T6BIz-cA.js → useModuleLoader-bEVfQbmU.js} +188 -169
- package/dist/{vendor-preact-D6SntenC.js → vendor-preact-DYq0_Qbr.js} +1 -1
- package/dist/{verificationResult-DTfsw2w2.js → verificationResult-1XSMhl4d.js} +8 -8
- package/dist/{verifiedByIncode-CiuBhYBD.js → verifiedByIncode-aGOV-V9q.js} +2 -2
- package/dist/watchlist/watchlist.es.js +7 -7
- package/dist/watchlist-BdGy5gvP.js +5 -0
- package/dist/watchlist-for-business-CubjHodP.js +5 -0
- package/dist/{watchlistForBusiness-DirZZuYu.js → watchlistForBusiness-C_i_7Z6J.js} +11 -11
- package/dist/workflow/workflow.es.js +50 -51
- package/dist/workflow-nsiRkTFR.js +5 -0
- package/package.json +2 -2
- package/dist/dateInputComposed-DdtZcsfQ.js +0 -1
- package/dist/dropdownComposed-C6mYVe2K.js +0 -1
- package/dist/ekybModule-pKz3HZFJ.js +0 -2
- package/dist/ekycModule-B_pmX3EX.js +0 -2
- package/dist/faceMatch-CsBQRvhN.js +0 -2
- package/dist/incodeModule-CHzKl22Y.js +0 -18
- package/dist/inputComposed-vYWGxUXH.js +0 -1
- package/dist/spinner-BYktSnQZ.js +0 -1
- /package/dist/{aligndevicelottie-m1gBGZsQ.js → aligndevicelottie-DuYKqFRv.js} +0 -0
- /package/dist/{back-tutorial-ClQ08AWx.js → back-tutorial-BveT-Gpg.js} +0 -0
- /package/dist/{backdevicelottie-WEvEwLBA.js → backdevicelottie-CVSnQFM6.js} +0 -0
- /package/dist/{blurdevicelottie-BNBU2EIM.js → blurdevicelottie-DXyCiuOu.js} +0 -0
- /package/dist/{browser-ponyfill-DRrmY6DO.js → browser-ponyfill-Dz8mnsAS.js} +0 -0
- /package/dist/{flip-animation-Tm2zxXjs.js → flip-animation-CpYPskQi.js} +0 -0
- /package/dist/{frontdevicelottie-BtbZEtwd.js → frontdevicelottie-7OcabHg2.js} +0 -0
- /package/dist/{glaredevicelottie-CGQ0DCXc.js → glaredevicelottie-CU-7f-1E.js} +0 -0
- /package/dist/{id-laser-h-oGOFXEpO.js → id-laser-h-DVprNART.js} +0 -0
- /package/dist/{id-laser-v-DfWJik9l.js → id-laser-v-DHSmrhm6.js} +0 -0
- /package/dist/{id-tutorial-C4q-3j3J.js → id-tutorial-DC_FMKi3.js} +0 -0
- /package/dist/{passport-tutorial-DhEHJZeD.js → passport-tutorial-DglDEWHt.js} +0 -0
- /package/dist/{pdf-DmP3zO_j.js → pdf-CbjnpyBF.js} +0 -0
- /package/dist/{selfieTutorial-D8I_4Oam.js → selfieTutorial-Cssu-Gmy.js} +0 -0
package/dist/flow/flow.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
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-
|
|
3
|
-
import { t as c } from "../uiConfig-
|
|
4
|
-
import { o as l, t as u } from "../incodeComponent-
|
|
5
|
-
import { t as d } from "../transitionSpinner-
|
|
6
|
-
import { t as f } from "../incodeModule-
|
|
7
|
-
import { a as p, c as m, d as h, i as g, l as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w } from "../useModuleLoader-
|
|
1
|
+
import { n as e } from "../i18n-BNE9nYru.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-DYq0_Qbr.js";
|
|
3
|
+
import { t as c } from "../uiConfig-BfJ9gLl7.js";
|
|
4
|
+
import { o as l, t as u } from "../incodeComponent-Bj2iIi3-.js";
|
|
5
|
+
import { t as d } from "../transitionSpinner-C_573zFG.js";
|
|
6
|
+
import { t as f } from "../incodeModule-4-Ij3Hzt.js";
|
|
7
|
+
import { a as p, c as m, d as h, i as g, l as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w } from "../useModuleLoader-bEVfQbmU.js";
|
|
8
8
|
import { getDeviceClass as T } from "@incodetech/core/device";
|
|
9
9
|
import { getRequiredWasmPipelines as E } from "@incodetech/core/flow";
|
|
10
10
|
import { QrValidationError as D, bootstrapSession as O, refreshQrUrlUuid as k } from "@incodetech/core/session";
|
|
@@ -230,123 +230,125 @@ function W(e) {
|
|
|
230
230
|
}
|
|
231
231
|
//#endregion
|
|
232
232
|
//#region src/modules/flow/flow.tsx
|
|
233
|
-
var G = n(() => import("../homeScreen-
|
|
234
|
-
let { i18n:
|
|
233
|
+
var G = n(() => import("../homeScreen-nNYHPykv.js").then((e) => ({ default: e.HomeScreen }))), K = ({ config: n, disableCss: i, onFinish: o, onError: c }) => {
|
|
234
|
+
let { i18n: u } = e(), f = W(r(() => ({
|
|
235
235
|
...n,
|
|
236
|
-
onError:
|
|
237
|
-
}), [n,
|
|
238
|
-
moduleKey:
|
|
236
|
+
onError: c
|
|
237
|
+
}), [n, c])), [m, h] = l(() => f.flowManager, { autoLoad: !1 }), _ = m.presentation.lazyModuleKey, y = m.status === "ready" ? m.currentStep : void 0, S = C({
|
|
238
|
+
moduleKey: _,
|
|
239
239
|
modules: p,
|
|
240
|
+
disableCss: i,
|
|
240
241
|
onModuleLoading: n.onModuleLoading,
|
|
241
242
|
onModuleLoaded: n.onModuleLoaded,
|
|
242
|
-
onError:
|
|
243
|
+
onError: c
|
|
243
244
|
});
|
|
244
245
|
v({
|
|
245
|
-
moduleKey:
|
|
246
|
-
modules: p
|
|
246
|
+
moduleKey: m.status === "ready" && m.homeScreen.visible ? y : void 0,
|
|
247
|
+
modules: p,
|
|
248
|
+
disableCss: i
|
|
247
249
|
});
|
|
248
|
-
let
|
|
249
|
-
x(
|
|
250
|
-
if (n.onFlowEvent) return
|
|
251
|
-
}, [
|
|
252
|
-
|
|
253
|
-
}, [
|
|
254
|
-
n.lang &&
|
|
255
|
-
}, [n.lang,
|
|
256
|
-
if (
|
|
257
|
-
let e =
|
|
250
|
+
let T = S.status === "loaded", D = n.enableHome === !0 && m.status === "ready" && m.flow.disableLaunchScreen !== !0 && m.currentStepIndex === 0 && m.homeScreen.visible === !1 && S.status === "loading", O = A(m.presentation.isAwaitingReady === !0, 150), k = A(m.status === "ready" && (S.status === "idle" || S.status === "loading" || S.status === "error"), 150);
|
|
251
|
+
x(m?.status === "ready" ? m.steps : [], m?.status === "ready" ? m.currentStepIndex : -1, p, T, i), t(() => {
|
|
252
|
+
if (n.onFlowEvent) return h.subscribeFlowEvent(n.onFlowEvent);
|
|
253
|
+
}, [h, n.onFlowEvent]), t(() => {
|
|
254
|
+
m.presentation.shouldPrefetchHome && w();
|
|
255
|
+
}, [m.presentation.shouldPrefetchHome]), t(() => {
|
|
256
|
+
n.lang && u.language !== n.lang && u.changeLanguage(n.lang);
|
|
257
|
+
}, [n.lang, u]), t(() => {
|
|
258
|
+
if (m?.status !== "ready" || m.currentStep === "REDIRECT_TO_MOBILE") return;
|
|
259
|
+
let e = m, t = E(e.flow);
|
|
258
260
|
t.length > 0 && (n.onWasmWarmup?.(t), b(e, n.wasmConfig));
|
|
259
|
-
}, [
|
|
260
|
-
|
|
261
|
+
}, [m, n]), t(() => {
|
|
262
|
+
m?.status === "finished" && o(m.finishStatus);
|
|
261
263
|
}, [
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
264
|
+
m?.status,
|
|
265
|
+
o,
|
|
266
|
+
m
|
|
265
267
|
]), t(() => {
|
|
266
|
-
|
|
268
|
+
m?.status === "error" && c && c(m.error);
|
|
267
269
|
}, [
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
270
|
+
m?.status,
|
|
271
|
+
c,
|
|
272
|
+
m
|
|
271
273
|
]), t(() => {
|
|
272
|
-
|
|
273
|
-
}, [
|
|
274
|
-
let
|
|
275
|
-
if (
|
|
274
|
+
m?.status === "ready" && m.currentStep === "ID" && m.steps.includes("TUTORIAL_ID") && h.completeModule();
|
|
275
|
+
}, [m, h]);
|
|
276
|
+
let j = !(n.spinnerConfig?.title || n.spinnerConfig?.subtitle);
|
|
277
|
+
if (f.status === "error") return /* @__PURE__ */ s("div", {
|
|
276
278
|
class: "IncodeFlow",
|
|
277
|
-
children: /* @__PURE__ */ s("div", { children: ["Error: ",
|
|
279
|
+
children: /* @__PURE__ */ s("div", { children: ["Error: ", f.error] })
|
|
278
280
|
});
|
|
279
|
-
if (
|
|
281
|
+
if (m.homeScreen.visible || D) return /* @__PURE__ */ s("div", {
|
|
280
282
|
class: "IncodeFlow",
|
|
281
283
|
children: /* @__PURE__ */ s(a, {
|
|
282
284
|
fallback: null,
|
|
283
285
|
children: /* @__PURE__ */ s(G, {
|
|
284
|
-
isContinueLoading:
|
|
285
|
-
onContinue: () =>
|
|
286
|
+
isContinueLoading: m.homeScreen.isContinueLoading || D,
|
|
287
|
+
onContinue: () => h.continueFromHome()
|
|
286
288
|
})
|
|
287
289
|
})
|
|
288
290
|
});
|
|
289
|
-
if (
|
|
291
|
+
if (f.status === "initializing") return /* @__PURE__ */ s("div", {
|
|
290
292
|
class: "IncodeFlow",
|
|
291
293
|
children: /* @__PURE__ */ s(d, {
|
|
292
294
|
spinnerConfig: n.spinnerConfig,
|
|
293
|
-
hideText:
|
|
295
|
+
hideText: j
|
|
294
296
|
})
|
|
295
297
|
});
|
|
296
|
-
if (
|
|
298
|
+
if (m.presentation.isAwaitingReady) return O ? /* @__PURE__ */ s("div", {
|
|
297
299
|
class: "IncodeFlow",
|
|
298
300
|
children: /* @__PURE__ */ s(d, {
|
|
299
301
|
spinnerConfig: n.spinnerConfig,
|
|
300
|
-
hideText:
|
|
302
|
+
hideText: j
|
|
301
303
|
})
|
|
302
304
|
}) : /* @__PURE__ */ s("div", { class: "IncodeFlow" });
|
|
303
|
-
if (
|
|
305
|
+
if (m.status === "error") return /* @__PURE__ */ s("div", {
|
|
304
306
|
class: "IncodeFlow",
|
|
305
|
-
children: /* @__PURE__ */ s("div", { children: ["Error: ",
|
|
307
|
+
children: /* @__PURE__ */ s("div", { children: ["Error: ", m.error] })
|
|
306
308
|
});
|
|
307
|
-
if (
|
|
308
|
-
if (
|
|
309
|
-
let { currentStep: e, config: t, flow: r } =
|
|
309
|
+
if (m.status === "finished") return null;
|
|
310
|
+
if (m?.status === "ready") {
|
|
311
|
+
let { currentStep: e, config: t, flow: r } = m, { flowId: i } = r;
|
|
310
312
|
if (!e || !t) return /* @__PURE__ */ s("div", {
|
|
311
313
|
class: "IncodeFlow",
|
|
312
314
|
children: /* @__PURE__ */ s(d, {
|
|
313
315
|
spinnerConfig: n.spinnerConfig,
|
|
314
|
-
hideText:
|
|
316
|
+
hideText: j
|
|
315
317
|
})
|
|
316
318
|
});
|
|
317
|
-
if (
|
|
319
|
+
if (S.status === "unsupported") return /* @__PURE__ */ s("div", {
|
|
318
320
|
class: "IncodeFlow",
|
|
319
321
|
children: /* @__PURE__ */ s(g, {
|
|
320
322
|
moduleKey: e,
|
|
321
|
-
onNext: () =>
|
|
323
|
+
onNext: () => h.completeModule()
|
|
322
324
|
})
|
|
323
325
|
});
|
|
324
|
-
if (
|
|
326
|
+
if (S.status === "idle" || S.status === "loading" || S.status === "error") return k ? /* @__PURE__ */ s("div", {
|
|
325
327
|
class: "IncodeFlow",
|
|
326
328
|
children: /* @__PURE__ */ s(d, {
|
|
327
329
|
spinnerConfig: n.spinnerConfig,
|
|
328
|
-
hideText:
|
|
330
|
+
hideText: j
|
|
329
331
|
})
|
|
330
332
|
}) : /* @__PURE__ */ s("div", { class: "IncodeFlow" });
|
|
331
|
-
let { Component: a } =
|
|
333
|
+
let { Component: a } = S;
|
|
332
334
|
if (e === "REDIRECT_TO_MOBILE") return /* @__PURE__ */ s("div", {
|
|
333
335
|
class: "IncodeFlow",
|
|
334
336
|
children: /* @__PURE__ */ s(a, {
|
|
335
337
|
config: t,
|
|
336
|
-
onFinish: () =>
|
|
337
|
-
onContinue: () =>
|
|
338
|
-
onError:
|
|
339
|
-
}, `redirect-to-mobile-${
|
|
338
|
+
onFinish: () => h.completeFlow(),
|
|
339
|
+
onContinue: () => h.completeModule(),
|
|
340
|
+
onError: c
|
|
341
|
+
}, `redirect-to-mobile-${m.currentStepIndex}`)
|
|
340
342
|
});
|
|
341
343
|
if (e === "SELFIE") return /* @__PURE__ */ s("div", {
|
|
342
344
|
class: "IncodeFlow",
|
|
343
345
|
children: /* @__PURE__ */ s(a, {
|
|
344
346
|
config: t,
|
|
345
|
-
onFinish: () =>
|
|
347
|
+
onFinish: () => h.completeModule(),
|
|
346
348
|
onError: (e) => {
|
|
347
|
-
|
|
349
|
+
c?.(e ?? "Selfie verification error");
|
|
348
350
|
}
|
|
349
|
-
}, `selfie-${
|
|
351
|
+
}, `selfie-${m.currentStepIndex}`)
|
|
350
352
|
});
|
|
351
353
|
if (e === "AUTHENTICATION") return /* @__PURE__ */ s("div", {
|
|
352
354
|
class: "IncodeFlow",
|
|
@@ -355,21 +357,21 @@ var G = n(() => import("../homeScreen-Dc3ipd-q.js").then((e) => ({ default: e.Ho
|
|
|
355
357
|
...t,
|
|
356
358
|
authHint: n.authHint
|
|
357
359
|
},
|
|
358
|
-
onFinish: () =>
|
|
360
|
+
onFinish: () => h.completeModule(),
|
|
359
361
|
onError: (e) => {
|
|
360
|
-
|
|
362
|
+
c?.(e ?? "Authentication error");
|
|
361
363
|
}
|
|
362
|
-
}, `authentication-${
|
|
364
|
+
}, `authentication-${m.currentStepIndex}`)
|
|
363
365
|
});
|
|
364
366
|
if (e === "PHONE") return /* @__PURE__ */ s("div", {
|
|
365
367
|
class: "IncodeFlow",
|
|
366
368
|
children: /* @__PURE__ */ s(a, {
|
|
367
369
|
config: t,
|
|
368
|
-
onFinish: () =>
|
|
370
|
+
onFinish: () => h.completeModule(),
|
|
369
371
|
onError: (e) => {
|
|
370
|
-
|
|
372
|
+
c?.(e ?? "Phone verification error");
|
|
371
373
|
}
|
|
372
|
-
}, `phone-${
|
|
374
|
+
}, `phone-${m.currentStepIndex}`)
|
|
373
375
|
});
|
|
374
376
|
if (e === "EMAIL") {
|
|
375
377
|
let e = t;
|
|
@@ -380,11 +382,11 @@ var G = n(() => import("../homeScreen-Dc3ipd-q.js").then((e) => ({ default: e.Ho
|
|
|
380
382
|
class: "IncodeFlow",
|
|
381
383
|
children: /* @__PURE__ */ s(a, {
|
|
382
384
|
config: e,
|
|
383
|
-
onFinish: () =>
|
|
385
|
+
onFinish: () => h.completeModule(),
|
|
384
386
|
onError: (e) => {
|
|
385
|
-
|
|
387
|
+
c?.(e ?? "Email verification error");
|
|
386
388
|
}
|
|
387
|
-
}, `email-${
|
|
389
|
+
}, `email-${m.currentStepIndex}`)
|
|
388
390
|
});
|
|
389
391
|
}
|
|
390
392
|
if (e === "ID" || e === "SECOND_ID") {
|
|
@@ -396,15 +398,15 @@ var G = n(() => import("../homeScreen-Dc3ipd-q.js").then((e) => ({ default: e.Ho
|
|
|
396
398
|
...n,
|
|
397
399
|
isSecondId: !0
|
|
398
400
|
} : n,
|
|
399
|
-
onFinish: () =>
|
|
401
|
+
onFinish: () => h.completeModule(),
|
|
400
402
|
onError: (e) => {
|
|
401
|
-
|
|
403
|
+
c?.(e ?? "ID capture error");
|
|
402
404
|
}
|
|
403
|
-
}, `id-${
|
|
405
|
+
}, `id-${m.currentStepIndex}`)
|
|
404
406
|
});
|
|
405
407
|
}
|
|
406
408
|
if (e === "ID_OCR") {
|
|
407
|
-
let e = t, n =
|
|
409
|
+
let e = t, n = m.steps.includes("SECOND_ID");
|
|
408
410
|
return /* @__PURE__ */ s("div", {
|
|
409
411
|
class: "IncodeFlow",
|
|
410
412
|
children: /* @__PURE__ */ s(a, {
|
|
@@ -413,72 +415,72 @@ var G = n(() => import("../homeScreen-Dc3ipd-q.js").then((e) => ({ default: e.Ho
|
|
|
413
415
|
secondId: e.secondId ?? n,
|
|
414
416
|
flowId: i
|
|
415
417
|
},
|
|
416
|
-
onFinish: () =>
|
|
418
|
+
onFinish: () => h.completeModule(),
|
|
417
419
|
onError: (e) => {
|
|
418
|
-
|
|
420
|
+
c?.(e ?? "ID OCR error");
|
|
419
421
|
}
|
|
420
|
-
}, `id-ocr-${
|
|
422
|
+
}, `id-ocr-${m.currentStepIndex}`)
|
|
421
423
|
});
|
|
422
424
|
}
|
|
423
425
|
if (e === "FACE_MATCH") return /* @__PURE__ */ s("div", {
|
|
424
426
|
class: "IncodeFlow",
|
|
425
427
|
children: /* @__PURE__ */ s(a, {
|
|
426
428
|
config: t,
|
|
427
|
-
onFinish: () =>
|
|
429
|
+
onFinish: () => h.completeModule(),
|
|
428
430
|
onError: (e) => {
|
|
429
|
-
|
|
431
|
+
c?.(e ?? "Face match error");
|
|
430
432
|
}
|
|
431
|
-
}, `face-match-${
|
|
433
|
+
}, `face-match-${m.currentStepIndex}`)
|
|
432
434
|
});
|
|
433
435
|
if (e === "CURP_VALIDATION") return /* @__PURE__ */ s("div", {
|
|
434
436
|
class: "IncodeFlow",
|
|
435
437
|
children: /* @__PURE__ */ s(a, {
|
|
436
438
|
config: t,
|
|
437
|
-
onFinish: () =>
|
|
439
|
+
onFinish: () => h.completeModule(),
|
|
438
440
|
onError: (e) => {
|
|
439
|
-
|
|
441
|
+
c?.(e ?? "CURP validation error");
|
|
440
442
|
}
|
|
441
|
-
}, `curp-validation-${
|
|
443
|
+
}, `curp-validation-${m.currentStepIndex}`)
|
|
442
444
|
});
|
|
443
445
|
if (e === "GOVT_VALIDATION_PROVISIONING") return /* @__PURE__ */ s("div", {
|
|
444
446
|
class: "IncodeFlow",
|
|
445
447
|
children: /* @__PURE__ */ s(a, {
|
|
446
448
|
config: t,
|
|
447
|
-
onFinish: () =>
|
|
449
|
+
onFinish: () => h.completeModule(),
|
|
448
450
|
onError: (e) => {
|
|
449
|
-
|
|
451
|
+
c?.(e ?? "Government validation error");
|
|
450
452
|
}
|
|
451
|
-
}, `govt-validation-${
|
|
453
|
+
}, `govt-validation-${m.currentStepIndex}`)
|
|
452
454
|
});
|
|
453
455
|
if (e === "GEOLOCATION") return /* @__PURE__ */ s("div", {
|
|
454
456
|
class: "IncodeFlow",
|
|
455
457
|
children: /* @__PURE__ */ s(a, {
|
|
456
458
|
config: t,
|
|
457
|
-
onFinish: () =>
|
|
459
|
+
onFinish: () => h.completeModule(),
|
|
458
460
|
onError: (e) => {
|
|
459
|
-
|
|
461
|
+
c?.(e ?? "Geolocation error");
|
|
460
462
|
}
|
|
461
|
-
}, `geolocation-${
|
|
463
|
+
}, `geolocation-${m.currentStepIndex}`)
|
|
462
464
|
});
|
|
463
465
|
if (e === "EXTERNAL_VERIFICATION") return /* @__PURE__ */ s("div", {
|
|
464
466
|
class: "IncodeFlow",
|
|
465
467
|
children: /* @__PURE__ */ s(a, {
|
|
466
|
-
config: { flowId:
|
|
467
|
-
onFinish: () =>
|
|
468
|
+
config: { flowId: m.flow.flowId },
|
|
469
|
+
onFinish: () => h.completeModule(),
|
|
468
470
|
onError: (e) => {
|
|
469
|
-
|
|
471
|
+
c?.(e ?? "External verification error");
|
|
470
472
|
}
|
|
471
|
-
}, `ekyc-${
|
|
473
|
+
}, `ekyc-${m.currentStepIndex}`)
|
|
472
474
|
});
|
|
473
475
|
if (e === "DOCUMENT_CAPTURE") return /* @__PURE__ */ s("div", {
|
|
474
476
|
class: "IncodeFlow",
|
|
475
477
|
children: /* @__PURE__ */ s(a, {
|
|
476
478
|
config: t,
|
|
477
|
-
onFinish: () =>
|
|
479
|
+
onFinish: () => h.completeModule(),
|
|
478
480
|
onError: (e) => {
|
|
479
|
-
|
|
481
|
+
c?.(e ?? "Document capture error");
|
|
480
482
|
}
|
|
481
|
-
}, `document-capture-${
|
|
483
|
+
}, `document-capture-${m.currentStepIndex}`)
|
|
482
484
|
});
|
|
483
485
|
if (e === "ADDRESS") return /* @__PURE__ */ s("div", {
|
|
484
486
|
class: "IncodeFlow",
|
|
@@ -487,21 +489,21 @@ var G = n(() => import("../homeScreen-Dc3ipd-q.js").then((e) => ({ default: e.Ho
|
|
|
487
489
|
...t,
|
|
488
490
|
processingType: "addressStatement"
|
|
489
491
|
},
|
|
490
|
-
onFinish: () =>
|
|
492
|
+
onFinish: () => h.completeModule(),
|
|
491
493
|
onError: (e) => {
|
|
492
|
-
|
|
494
|
+
c?.(e ?? "Address capture error");
|
|
493
495
|
}
|
|
494
|
-
}, `address-${
|
|
496
|
+
}, `address-${m.currentStepIndex}`)
|
|
495
497
|
});
|
|
496
498
|
if (e === "SIGNATURE") return /* @__PURE__ */ s("div", {
|
|
497
499
|
class: "IncodeFlow",
|
|
498
500
|
children: /* @__PURE__ */ s(a, {
|
|
499
501
|
config: t,
|
|
500
|
-
onFinish: () =>
|
|
502
|
+
onFinish: () => h.completeModule(),
|
|
501
503
|
onError: (e) => {
|
|
502
|
-
|
|
504
|
+
c?.(e ?? "Signature capture error");
|
|
503
505
|
}
|
|
504
|
-
}, `signature-${
|
|
506
|
+
}, `signature-${m.currentStepIndex}`)
|
|
505
507
|
});
|
|
506
508
|
if (e === "EKYB") {
|
|
507
509
|
let e = t;
|
|
@@ -515,32 +517,32 @@ var G = n(() => import("../homeScreen-Dc3ipd-q.js").then((e) => ({ default: e.Ho
|
|
|
515
517
|
checkTaxId: e.checkTaxId,
|
|
516
518
|
checkUniqueBeneficialOwner: e.checkUniqueBeneficialOwner
|
|
517
519
|
},
|
|
518
|
-
onFinish: () =>
|
|
520
|
+
onFinish: () => h.completeModule(),
|
|
519
521
|
onError: (e) => {
|
|
520
|
-
|
|
522
|
+
c?.(e ?? "eKYB verification error");
|
|
521
523
|
}
|
|
522
|
-
}, `ekyb-${
|
|
524
|
+
}, `ekyb-${m.currentStepIndex}`)
|
|
523
525
|
});
|
|
524
526
|
}
|
|
525
527
|
if (e === "COMBINED_CONSENT") return /* @__PURE__ */ s("div", {
|
|
526
528
|
class: "IncodeFlow",
|
|
527
529
|
children: /* @__PURE__ */ s(a, {
|
|
528
530
|
config: t,
|
|
529
|
-
onFinish: () =>
|
|
531
|
+
onFinish: () => h.completeModule(),
|
|
530
532
|
onError: (e) => {
|
|
531
|
-
|
|
533
|
+
c?.(e ?? "Combined consent error");
|
|
532
534
|
}
|
|
533
|
-
}, `combined-consent-${
|
|
535
|
+
}, `combined-consent-${m.currentStepIndex}`)
|
|
534
536
|
});
|
|
535
537
|
if (e === "MANDATORY_CONSENT") return /* @__PURE__ */ s("div", {
|
|
536
538
|
class: "IncodeFlow",
|
|
537
539
|
children: /* @__PURE__ */ s(a, {
|
|
538
540
|
config: t,
|
|
539
|
-
onFinish: () =>
|
|
541
|
+
onFinish: () => h.completeModule(),
|
|
540
542
|
onError: (e) => {
|
|
541
|
-
|
|
543
|
+
c?.(e ?? "Mandatory consent error");
|
|
542
544
|
}
|
|
543
|
-
}, `mandatory-consent-${
|
|
545
|
+
}, `mandatory-consent-${m.currentStepIndex}`)
|
|
544
546
|
});
|
|
545
547
|
if (e === "AE_SIGNATURE" || e === "QE_SIGNATURE") {
|
|
546
548
|
let n = t, r = e === "QE_SIGNATURE" ? "qe" : "ae";
|
|
@@ -551,73 +553,74 @@ var G = n(() => import("../homeScreen-Dc3ipd-q.js").then((e) => ({ default: e.Ho
|
|
|
551
553
|
uploadDocument: n.uploadDocument,
|
|
552
554
|
downloadDocument: n.downloadDocument
|
|
553
555
|
},
|
|
554
|
-
onFinish: () =>
|
|
556
|
+
onFinish: () => h.completeModule(),
|
|
555
557
|
onError: (e) => {
|
|
556
|
-
|
|
558
|
+
c?.(e ?? `${r.toUpperCase()} Signature error`);
|
|
557
559
|
}
|
|
558
|
-
}, `${r}-signature-${
|
|
560
|
+
}, `${r}-signature-${m.currentStepIndex}`)
|
|
559
561
|
});
|
|
560
562
|
}
|
|
561
563
|
if (e === "ANTIFRAUD") return /* @__PURE__ */ s("div", {
|
|
562
564
|
class: "IncodeFlow",
|
|
563
565
|
children: /* @__PURE__ */ s(a, {
|
|
564
|
-
onFinish: () =>
|
|
566
|
+
onFinish: () => h.completeModule(),
|
|
565
567
|
onError: (e) => {
|
|
566
|
-
|
|
568
|
+
c?.(e ?? "Antifraud check error");
|
|
567
569
|
}
|
|
568
|
-
}, `antifraud-${
|
|
570
|
+
}, `antifraud-${m.currentStepIndex}`)
|
|
569
571
|
});
|
|
570
572
|
if (e === "CUSTOM_FIELDS") return /* @__PURE__ */ s("div", {
|
|
571
573
|
class: "IncodeFlow",
|
|
572
574
|
children: /* @__PURE__ */ s(a, {
|
|
573
575
|
config: t,
|
|
574
|
-
onFinish: () =>
|
|
576
|
+
onFinish: () => h.completeModule(),
|
|
575
577
|
onError: (e) => {
|
|
576
|
-
|
|
578
|
+
c?.(e ?? "Custom fields error");
|
|
577
579
|
}
|
|
578
|
-
}, `custom-fields-${
|
|
580
|
+
}, `custom-fields-${m.currentStepIndex}`)
|
|
579
581
|
});
|
|
580
582
|
if (e === "WATCHLIST") return /* @__PURE__ */ s("div", {
|
|
581
583
|
class: "IncodeFlow",
|
|
582
584
|
children: /* @__PURE__ */ s(a, {
|
|
583
|
-
onFinish: () =>
|
|
585
|
+
onFinish: () => h.completeModule(),
|
|
584
586
|
onError: (e) => {
|
|
585
|
-
|
|
587
|
+
c?.(e ?? "Watchlist check error");
|
|
586
588
|
}
|
|
587
|
-
}, `watchlist-${
|
|
589
|
+
}, `watchlist-${m.currentStepIndex}`)
|
|
588
590
|
});
|
|
589
591
|
if (e === "WATCHLIST_BUSINESS") return /* @__PURE__ */ s("div", {
|
|
590
592
|
class: "IncodeFlow",
|
|
591
593
|
children: /* @__PURE__ */ s(a, {
|
|
592
|
-
onFinish: () =>
|
|
594
|
+
onFinish: () => h.completeModule(),
|
|
593
595
|
onError: (e) => {
|
|
594
|
-
|
|
596
|
+
c?.(e ?? "Watchlist for business check error");
|
|
595
597
|
}
|
|
596
|
-
}, `watchlist-for-business-${
|
|
598
|
+
}, `watchlist-for-business-${m.currentStepIndex}`)
|
|
597
599
|
});
|
|
598
600
|
if (e === "INCODE_WATCHLIST") return /* @__PURE__ */ s("div", {
|
|
599
601
|
class: "IncodeFlow",
|
|
600
602
|
children: /* @__PURE__ */ s(a, {
|
|
601
603
|
config: t,
|
|
602
|
-
onFinish: () =>
|
|
604
|
+
onFinish: () => h.completeModule(),
|
|
603
605
|
onError: (e) => {
|
|
604
|
-
|
|
606
|
+
c?.(e ?? "Custom watchlist check error");
|
|
605
607
|
}
|
|
606
|
-
}, `incode-watchlist-${
|
|
608
|
+
}, `incode-watchlist-${m.currentStepIndex}`)
|
|
607
609
|
});
|
|
608
610
|
if (e === "CROSS_DOCUMENT_DATA_MATCH") return /* @__PURE__ */ s("div", {
|
|
609
611
|
class: "IncodeFlow",
|
|
610
612
|
children: /* @__PURE__ */ s(a, {
|
|
611
|
-
onFinish: () =>
|
|
613
|
+
onFinish: () => h.completeModule(),
|
|
612
614
|
onError: (e) => {
|
|
613
|
-
|
|
615
|
+
c?.(e ?? "Cross document data match error");
|
|
614
616
|
}
|
|
615
|
-
}, `cross-document-data-match-${
|
|
617
|
+
}, `cross-document-data-match-${m.currentStepIndex}`)
|
|
616
618
|
});
|
|
617
619
|
}
|
|
618
620
|
return null;
|
|
619
|
-
}, q = ({ config: e, onFinish: t = () => {}, onError: n }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(K, {
|
|
621
|
+
}, q = ({ config: e, onFinish: t = () => {}, onError: n, disableCss: r }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(K, {
|
|
620
622
|
config: e,
|
|
623
|
+
disableCss: r,
|
|
621
624
|
onFinish: t,
|
|
622
625
|
onError: n
|
|
623
626
|
}) : null });
|