@incodetech/web 0.0.0-dev-20260416-e8e67a4 → 0.0.0-dev-20260416-3692bda

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 (104) hide show
  1. package/dist/{AsYouType-RC03ULcj.js → AsYouType-C9ozHT0m.js} +1 -1
  2. package/dist/{addressAutocomplete-n0bBMSty.js → addressAutocomplete-BPpO7rrX.js} +4 -4
  3. package/dist/ae-signature/ae-signature.es.js +2 -2
  4. package/dist/antifraud/antifraud.es.js +3 -3
  5. package/dist/authentication/authentication.es.js +3 -3
  6. package/dist/{button-BlHmZn6D.js → button-wmLHLQxG.js} +1 -1
  7. package/dist/{checkbox-BNgPsssk.js → checkbox-CM72oZfM.js} +2 -2
  8. package/dist/consent/consent.es.js +9 -9
  9. package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
  10. package/dist/curp-validation/curp-validation.es.js +14 -14
  11. package/dist/{dateInputComposed-B8nKYsUG.js → dateInputComposed-CvIDakYb.js} +4 -4
  12. package/dist/dateInputComposed-fdBzdL8N.js +1 -0
  13. package/dist/{documentCapture-DHtlw3Lu.js → documentCapture-BAvYoKZ7.js} +65 -64
  14. package/dist/{dropdownComposed-CR1bc7Z9.js → dropdownComposed-BE7-ghHI.js} +3 -3
  15. package/dist/dropdownComposed-ChSksPc2.js +1 -0
  16. package/dist/ekyb/ekyb.es.js +1 -1
  17. package/dist/ekybModule-BeYiTLFg.js +2 -0
  18. package/dist/{ekybModule-BBSKwZZy.js → ekybModule-Dm6NrgtW.js} +14 -14
  19. package/dist/ekyc/ekyc.es.js +1 -1
  20. package/dist/{ekycModule-Dca-zhQw.js → ekycModule-ChHA8VPJ.js} +19 -19
  21. package/dist/ekycModule-zakzAXhB.js +2 -0
  22. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  23. package/dist/{electronic-signature-DEAXKbsk.js → electronic-signature-CPfLwg-x.js} +9 -9
  24. package/dist/email/email.es.js +8 -8
  25. package/dist/{extensibility-BlGCucJR.js → extensibility-t-H5EpZ8.js} +96 -95
  26. package/dist/extensibility.es.js +22 -22
  27. package/dist/face-match/face-match.es.js +1 -1
  28. package/dist/faceMatch-B74pDVYi.js +2 -0
  29. package/dist/{faceMatch-D6HVVSiY.js → faceMatch-ClWhkFUE.js} +6 -6
  30. package/dist/flow/flow.es.js +195 -186
  31. package/dist/{formField-B9_nvbhW.js → formField-9ouSScYr.js} +2 -2
  32. package/dist/geolocation/geolocation.es.js +6 -6
  33. package/dist/governmentValidation/governmentValidation.es.js +8 -8
  34. package/dist/homeScreen-C0-81utl.js +210 -0
  35. package/dist/{i18n-DUMvrSNM.js → i18n-BpEDCZi_.js} +1 -1
  36. package/dist/{icons-CVO6RxwW.js → icons-G_Ct2lZU.js} +1 -1
  37. package/dist/id/id.es.js +6 -6
  38. package/dist/identity-reuse/identity-reuse.es.js +6 -6
  39. package/dist/incode-logo-DX016usY.js +4 -0
  40. package/dist/{loadingIcon-ahC-hZN7.js → incodeComponent-DIb7wDAq.js} +2 -42
  41. package/dist/index.es.js +1 -1
  42. package/dist/inputComposed-BqRIZ9pG.js +1 -0
  43. package/dist/{inputComposed-COz9TuR1.js → inputComposed-d8s1aPjr.js} +3 -3
  44. package/dist/loadingIcon-HWY04StG.js +42 -0
  45. package/dist/{mandatoryConsent-DWwvkGGf.js → mandatoryConsent-BVrqZJDU.js} +9 -9
  46. package/dist/{modal-D75YXA_d.js → modal-BQF9tPLH.js} +2 -2
  47. package/dist/{otpInput-CNAOHZxZ.js → otpInput-OtCx4bG4.js} +4 -4
  48. package/dist/{page-kB-LDkaO.js → page-D5Mt-0zn.js} +4 -3
  49. package/dist/phone/phone.es.js +8 -8
  50. package/dist/{phoneInput-CzcmqH3C.js → phoneInput-DHepphBa.js} +3 -3
  51. package/dist/{phoneInputComposed-w9tF4xYB.js → phoneInputComposed-DOuz7g1p.js} +6 -6
  52. package/dist/{processing-CR7zb0TX.js → processing-LdRzxpWv.js} +2 -2
  53. package/dist/qe-signature/qe-signature.es.js +2 -2
  54. package/dist/{redirectToMobile-CYt-uhqB.js → redirectToMobile-1oLWg6QJ.js} +23 -21
  55. package/dist/{richText-MNrzpRze.js → richText-gJTUJEMX.js} +1 -1
  56. package/dist/selfie/selfie.es.js +4 -4
  57. package/dist/{setup-IE6CqyVs.js → setup-D7-7VjBv.js} +1 -1
  58. package/dist/signature/signature.es.js +9 -9
  59. package/dist/spinner-CFvndzMU.js +1 -0
  60. package/dist/{spinner-BAVCJLTE.js → spinner-l6dvYqCg.js} +7 -7
  61. package/dist/{tutorial-Dqk1zedL.js → tutorial-DMwavp-V.js} +43 -42
  62. package/dist/{typography-7cXma7kl.js → typography-CNNFm2Bl.js} +1 -1
  63. package/dist/typography-ClOy6Kmo.js +1 -0
  64. package/dist/{useModuleLoader-DPGKFaMr.js → useModuleLoader-C8N5qfo6.js} +109 -75
  65. package/dist/{verificationResult-LpiTdYIu.js → verificationResult-WLz8qNU8.js} +6 -6
  66. package/dist/{verifiedByIncode-CMPwRtA2.js → verifiedByIncode-ChZBpqNy.js} +12 -15
  67. package/dist/watchlist/watchlist.es.js +22 -21
  68. package/dist/workflow/workflow.es.js +18 -18
  69. package/package.json +2 -2
  70. package/dist/dateInputComposed-DnYA7nZG.js +0 -1
  71. package/dist/dropdownComposed-P1FeTlTM.js +0 -1
  72. package/dist/ekybModule-qBQ8sJSr.js +0 -2
  73. package/dist/ekycModule-R0YaUzV3.js +0 -2
  74. package/dist/faceMatch-CFxHH3ic.js +0 -2
  75. package/dist/home/home.es.js +0 -224
  76. package/dist/home/styles.css +0 -172
  77. package/dist/inputComposed-BWxnXHJf.js +0 -1
  78. package/dist/spinner-B-jf992b.js +0 -1
  79. package/dist/types/home.d.ts +0 -30
  80. package/dist/typography-CsEiWMTG.js +0 -1
  81. /package/dist/{aligndevicelottie-B9K1XnzC.js → aligndevicelottie-BfnvOtwi.js} +0 -0
  82. /package/dist/{back-horizontal-hint-Dy_Qglma.js → back-horizontal-hint-CpDPt7Pn.js} +0 -0
  83. /package/dist/{back-tutorial-Cc5SwoLa.js → back-tutorial-DRNlpp1o.js} +0 -0
  84. /package/dist/{back-vertical-hint-Dg3OKUKF.js → back-vertical-hint-CMS6HTd5.js} +0 -0
  85. /package/dist/{backdevicelottie-DPvn_MCA.js → backdevicelottie-DqTioBhp.js} +0 -0
  86. /package/dist/{blurdevicelottie-DGpZjyZE.js → blurdevicelottie-BCYf_azj.js} +0 -0
  87. /package/dist/{browser-ponyfill-CTu_YiCx.js → browser-ponyfill-CRq2EKxP.js} +0 -0
  88. /package/dist/{countries-DKKNtuUp.js → countries-Bbn2lyxr.js} +0 -0
  89. /package/dist/{defineProperty-DXvyTpBq.js → defineProperty-CqT6YdHJ.js} +0 -0
  90. /package/dist/{flip-animation-DwJvEqyX.js → flip-animation-Dj8sBkxM.js} +0 -0
  91. /package/dist/{front-horizontal-hint-DgopDgUF.js → front-horizontal-hint-C204EjG5.js} +0 -0
  92. /package/dist/{front-vertical-hint-nOpxcjqw.js → front-vertical-hint-BT8dqgFS.js} +0 -0
  93. /package/dist/{frontdevicelottie-DBrRXwKx.js → frontdevicelottie-BOCUyhYK.js} +0 -0
  94. /package/dist/{glaredevicelottie-DvG7qeiM.js → glaredevicelottie-g5gLJDcn.js} +0 -0
  95. /package/dist/{id-laser-h-BrG7qvHh.js → id-laser-h-C9wj3dpL.js} +0 -0
  96. /package/dist/{id-laser-v-Bt1xfH5h.js → id-laser-v-Bmnxnt0M.js} +0 -0
  97. /package/dist/{id-tutorial-WgpG0ahL.js → id-tutorial-CFTli-M3.js} +0 -0
  98. /package/dist/{incodeModule-Di2OUZ5_.js → incodeModule-D_r2n18O.js} +0 -0
  99. /package/dist/{numberedStep-LYLcVRNh.js → numberedStep-CR4w_BpM.js} +0 -0
  100. /package/dist/{passport-horizontal-hint-DXzBzsri.js → passport-horizontal-hint-DQ_bncwr.js} +0 -0
  101. /package/dist/{passport-tutorial-DEr1yuAg.js → passport-tutorial-Bihd5YfK.js} +0 -0
  102. /package/dist/{passport-vertical-hint-B8Sap2l6.js → passport-vertical-hint-Bck8hVuX.js} +0 -0
  103. /package/dist/{selfieTutorial-B5l5ny8O.js → selfieTutorial-Cu9vXjss.js} +0 -0
  104. /package/dist/{successIcon-AHrfmJvv.js → successIcon-C4GI_9SU.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { _ as e, l as t, p as n, v as r } from "./vendor-preact-D6SntenC.js";
2
2
  import { t as i } from "./uiConfig-CwpQ-IM6.js";
3
- import { t as a } from "./setup-IE6CqyVs.js";
4
- import { t as o } from "./button-BlHmZn6D.js";
3
+ import { t as a } from "./setup-D7-7VjBv.js";
4
+ import { t as o } from "./button-wmLHLQxG.js";
5
5
  import { initializeWasmUtil as s, resolveWasmConfig as c, setWasmConfig as l, warmupWasm as u } from "@incodetech/core/wasm";
6
6
  import { getDeviceClass as d } from "@incodetech/core/device";
7
7
  import { createOrchestratedFlowManager as f, getFlow as p, getRequiredWasmPipelines as m } from "@incodetech/core/flow";
@@ -117,9 +117,8 @@ async function w() {
117
117
  }
118
118
  //#endregion
119
119
  //#region src/modules/flow/flowInit.ts
120
- var T = () => import("./id/id.es.js").then((e) => e.Id), E = "HOME";
121
- function D(e) {
122
- if (e === "HOME") return () => import("@incodetech/core/home").then((e) => e.homeMachine);
120
+ var T = () => import("./id/id.es.js").then((e) => e.Id), E = () => import("./homeScreen-C0-81utl.js").then((e) => e.HomeScreen), D;
121
+ function O(e) {
123
122
  if (e === "REDIRECT_TO_MOBILE") return () => import("@incodetech/core/redirect-to-mobile").then((e) => e.redirectToMobileMachine);
124
123
  if (e === "PHONE") return () => import("@incodetech/core/phone").then((e) => e.phoneMachine);
125
124
  if (e === "EMAIL") return () => import("@incodetech/core/email").then((e) => e.emailMachine);
@@ -141,19 +140,18 @@ function D(e) {
141
140
  if (e === "AE_SIGNATURE") return () => import("@incodetech/core/ae-signature").then((e) => e.aeSignatureMachine);
142
141
  if (e === "QE_SIGNATURE") return () => import("@incodetech/core/qe-signature").then((e) => e.qeSignatureMachine);
143
142
  }
144
- function O(e) {
143
+ function k(e) {
145
144
  let t = {};
146
145
  for (let n of e) {
147
146
  let e = n.key;
148
147
  if (t[e]) continue;
149
- let r = D(e);
148
+ let r = O(e);
150
149
  r && (t[e] = r);
151
150
  }
152
151
  return t;
153
152
  }
154
- var k = {
155
- [E]: () => import("./home/home.es.js").then((e) => e.Home),
156
- REDIRECT_TO_MOBILE: () => import("./redirectToMobile-CYt-uhqB.js").then((e) => e.RedirectToMobile),
153
+ var A = {
154
+ REDIRECT_TO_MOBILE: () => import("./redirectToMobile-1oLWg6QJ.js").then((e) => e.RedirectToMobile),
157
155
  PHONE: () => import("./phone/phone.es.js").then((e) => e.Phone),
158
156
  EMAIL: () => import("./email/email.es.js").then((e) => e.Email),
159
157
  SELFIE: () => import("./selfie/selfie.es.js").then((e) => e.Selfie),
@@ -162,16 +160,16 @@ var k = {
162
160
  ID_CAPTURE: T,
163
161
  TUTORIAL_ID: T,
164
162
  SECOND_ID: T,
165
- FACE_MATCH: () => import("./faceMatch-CFxHH3ic.js").then((e) => e.FaceMatch),
163
+ FACE_MATCH: () => import("./faceMatch-B74pDVYi.js").then((e) => e.FaceMatch),
166
164
  CURP_VALIDATION: () => import("./curp-validation/curp-validation.es.js").then((e) => e.CurpValidation),
167
165
  GOVT_VALIDATION_PROVISIONING: () => import("./governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
168
166
  GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((e) => e.Geolocation),
169
- EXTERNAL_VERIFICATION: () => import("./ekycModule-R0YaUzV3.js").then((e) => e.EkycModule),
170
- EKYB: () => import("./ekybModule-qBQ8sJSr.js").then((e) => e.EkybModule),
171
- DOCUMENT_CAPTURE: () => import("./documentCapture-DHtlw3Lu.js").then((e) => e.DocumentCapture),
172
- ADDRESS: () => import("./documentCapture-DHtlw3Lu.js").then((e) => e.DocumentCapture),
167
+ EXTERNAL_VERIFICATION: () => import("./ekycModule-zakzAXhB.js").then((e) => e.EkycModule),
168
+ EKYB: () => import("./ekybModule-BeYiTLFg.js").then((e) => e.EkybModule),
169
+ DOCUMENT_CAPTURE: () => import("./documentCapture-BAvYoKZ7.js").then((e) => e.DocumentCapture),
170
+ ADDRESS: () => import("./documentCapture-BAvYoKZ7.js").then((e) => e.DocumentCapture),
173
171
  COMBINED_CONSENT: () => import("./consent/consent.es.js").then((e) => e.Consent),
174
- MANDATORY_CONSENT: () => import("./mandatoryConsent-DWwvkGGf.js").then((e) => e.MandatoryConsent),
172
+ MANDATORY_CONSENT: () => import("./mandatoryConsent-BVrqZJDU.js").then((e) => e.MandatoryConsent),
175
173
  SIGNATURE: () => import("./signature/signature.es.js").then((e) => e.Signature),
176
174
  ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((e) => e.Antifraud),
177
175
  WATCHLIST: () => import("./watchlist/watchlist.es.js").then((e) => e.Watchlist),
@@ -179,21 +177,30 @@ var k = {
179
177
  QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((e) => e.QeSignature),
180
178
  CROSS_DOCUMENT_DATA_MATCH: () => import("./cross-document-data-match/cross-document-data-match.es.js").then((e) => e.CrossDocumentDataMatch)
181
179
  };
182
- function A(e = {}) {
183
- let t = {}, n = e.isDesktop ?? d() === "desktop";
180
+ function j() {
181
+ return E();
182
+ }
183
+ function M() {
184
+ D || (D = j(), D.catch(() => {
185
+ D = void 0;
186
+ }));
187
+ }
188
+ function N(e = {}) {
189
+ let t = {}, n = e.isDesktop ?? d() === "desktop", { enableHome: r, ...i } = e;
184
190
  return f({
185
- getFlow: async (r) => {
186
- let i = await p(r, {
187
- ...e,
191
+ enableHome: r,
192
+ getFlow: async (e) => {
193
+ let r = await p(e, {
194
+ ...i,
188
195
  isDesktop: n
189
- }), a = O(i.flowModules ?? []);
196
+ }), a = k(r.flowModules ?? []);
190
197
  for (let e of Object.keys(t)) delete t[e];
191
- return Object.assign(t, a), i;
198
+ return Object.assign(t, a), r;
192
199
  },
193
200
  lazyModules: t
194
201
  });
195
202
  }
196
- async function j(e) {
203
+ async function P(e) {
197
204
  await a({
198
205
  apiURL: e.apiURL,
199
206
  token: e.token,
@@ -201,15 +208,15 @@ async function j(e) {
201
208
  i18n: { lang: e.lang ?? "en" }
202
209
  });
203
210
  }
204
- async function M(e) {
211
+ async function F(e) {
205
212
  let { apiURL: t, token: n, lang: r, flowManager: i } = e;
206
- await j({
213
+ await P({
207
214
  apiURL: t,
208
215
  token: n,
209
216
  lang: r
210
217
  }), i.load();
211
218
  }
212
- async function N() {
219
+ async function I() {
213
220
  try {
214
221
  let e = await w(), t = {
215
222
  logoSrc: e.logo,
@@ -224,7 +231,7 @@ async function N() {
224
231
  return {};
225
232
  }
226
233
  }
227
- function P(e, t) {
234
+ function L(e, t) {
228
235
  let n = m(e.flow);
229
236
  if (n.length > 0) {
230
237
  let e = c({
@@ -239,16 +246,16 @@ function P(e, t) {
239
246
  });
240
247
  }
241
248
  }
242
- function F(e) {
249
+ function R(e) {
243
250
  let t = e.currentStep;
244
251
  if (t) {
245
- let e = k[t];
252
+ let e = A[t];
246
253
  e && e().catch(() => {});
247
254
  }
248
255
  }
249
256
  //#endregion
250
257
  //#region src/modules/flow/unsupportedModule.tsx
251
- var I = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ r("section", {
258
+ var z = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ r("section", {
252
259
  class: "IncodeUnsupportedModule",
253
260
  "aria-live": "polite",
254
261
  children: /* @__PURE__ */ r("div", {
@@ -277,70 +284,97 @@ var I = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ r("section", {
277
284
  });
278
285
  //#endregion
279
286
  //#region src/modules/flow/useModuleLoader.ts
280
- function L(t) {
281
- let { moduleKey: r, modules: i, onModuleLoading: a, onModuleLoaded: o, onError: s } = t, [c, l] = n({ status: "idle" });
287
+ function B(e, t) {
288
+ return e instanceof Error ? e.message : t;
289
+ }
290
+ function V(r) {
291
+ let { loader: i, onLoading: a, onLoaded: o, onError: s } = r, [c, l] = n({ status: "idle" }), u = t(a), d = t(o), f = t(s);
282
292
  return e(() => {
283
- if (!r) {
293
+ u.current = a, d.current = o, f.current = s;
294
+ }, [
295
+ a,
296
+ o,
297
+ s
298
+ ]), e(() => {
299
+ if (!i) {
284
300
  l({ status: "idle" });
285
301
  return;
286
302
  }
287
- let e = i[r];
288
- if (!e) {
289
- l({
290
- status: "unsupported",
291
- moduleKey: r
292
- });
293
- return;
294
- }
295
- l({
296
- status: "loading",
297
- moduleKey: r
298
- }), a?.(r);
299
- let t = !1;
300
- return e().then((e) => {
301
- t || (l({
303
+ l({ status: "loading" }), u.current?.();
304
+ let e = !1;
305
+ return i().then((t) => {
306
+ e || (l({
302
307
  status: "loaded",
303
- moduleKey: r,
304
- Component: e
305
- }), o?.(r));
306
- }).catch((e) => {
307
- if (!t) {
308
- let t = e instanceof Error ? e.message : "Failed to load module";
308
+ Component: t
309
+ }), d.current?.());
310
+ }).catch((t) => {
311
+ if (!e) {
312
+ let e = B(t, "Failed to load component");
309
313
  l({
310
314
  status: "error",
311
- moduleKey: r,
312
- error: t
313
- }), s?.(`Failed to load ${r}: ${t}`);
315
+ error: e
316
+ }), f.current?.(e);
314
317
  }
315
318
  }), () => {
316
- t = !0;
319
+ e = !0;
317
320
  };
318
- }, [
319
- r,
320
- i,
321
- a,
322
- o,
323
- s
324
- ]), c;
321
+ }, [i]), c;
325
322
  }
326
- function R(n, r, i) {
327
- let a = t(/* @__PURE__ */ new Set());
323
+ function H(t) {
324
+ let { moduleKey: r, modules: i, onModuleLoading: a, onModuleLoaded: o, onError: s } = t, [c, l] = n(void 0), u = r ? i[r] : void 0, d = V({
325
+ loader: u,
326
+ onLoading: r ? () => a?.(r) : void 0,
327
+ onLoaded: r ? () => o?.(r) : void 0,
328
+ onError: r ? (e) => s?.(`Failed to load ${r}: ${e}`) : void 0
329
+ });
330
+ return e(() => {
331
+ if (!r) {
332
+ l(void 0);
333
+ return;
334
+ }
335
+ l(u ? void 0 : r);
336
+ }, [u, r]), r ? c ? {
337
+ status: "unsupported",
338
+ moduleKey: c
339
+ } : d.status === "idle" || d.status === "loading" ? {
340
+ status: "loading",
341
+ moduleKey: r
342
+ } : d.status === "error" ? {
343
+ status: "error",
344
+ moduleKey: r,
345
+ error: d.error
346
+ } : {
347
+ status: "loaded",
348
+ moduleKey: r,
349
+ Component: d.Component
350
+ } : { status: "idle" };
351
+ }
352
+ function U(e) {
353
+ typeof requestIdleCallback < "u" ? requestIdleCallback(() => {
354
+ e();
355
+ }) : setTimeout(e, 0);
356
+ }
357
+ function W(n, r, i, a) {
358
+ let o = t(/* @__PURE__ */ new Set());
328
359
  e(() => {
329
- if (r < n.length - 1) {
360
+ if (a && r < n.length - 1) {
330
361
  let e = n[r + 1];
331
- if (e && !a.current.has(e)) {
332
- a.current.add(e);
362
+ if (e && !o.current.has(e)) {
363
+ o.current.add(e);
333
364
  let t = i[e];
334
- t && t().catch(() => {
335
- a.current.delete(e);
365
+ t && U(() => {
366
+ t().catch(() => {
367
+ o.current.delete(e);
368
+ });
336
369
  });
337
370
  }
338
371
  }
339
372
  }, [
340
373
  n,
341
374
  r,
342
- i
375
+ i,
376
+ a
343
377
  ]);
344
378
  }
345
379
  //#endregion
346
- export { A as a, F as c, w as d, k as i, j as l, R as n, N as o, I as r, M as s, L as t, P as u };
380
+ export { N as a, R as c, L as d, w as f, A as i, M as l, W as n, I as o, z as r, F as s, H as t, P as u };
@@ -1,10 +1,10 @@
1
- import { n as e } from "./i18n-DUMvrSNM.js";
1
+ import { n as e } from "./i18n-BpEDCZi_.js";
2
2
  import { v as t } from "./vendor-preact-D6SntenC.js";
3
- import { t as n } from "./page-kB-LDkaO.js";
4
- import { t as r } from "./spinner-BAVCJLTE.js";
5
- import { t as i } from "./button-BlHmZn6D.js";
6
- import { m as a, p as o } from "./icons-CVO6RxwW.js";
7
- import { t as s } from "./successIcon-AHrfmJvv.js";
3
+ import { t as n } from "./page-D5Mt-0zn.js";
4
+ import { t as r } from "./spinner-l6dvYqCg.js";
5
+ import { t as i } from "./button-wmLHLQxG.js";
6
+ import { m as a, p as o } from "./icons-G_Ct2lZU.js";
7
+ import { t as s } from "./successIcon-C4GI_9SU.js";
8
8
  //#region src/shared/verificationResult/verificationResult.tsx
9
9
  var c = ({ status: c, submittingTitle: l, successTitle: u, failureTitle: d, warningTitle: f, onRetry: p, onSkip: m, retryLabel: h, skipLabel: g }) => {
10
10
  let { t: _ } = e();
@@ -1,37 +1,34 @@
1
1
  import { v as e } from "./vendor-preact-D6SntenC.js";
2
2
  import { n as t } from "./uiConfig-CwpQ-IM6.js";
3
- //#region src/shared/page/incode-logo.svg
4
- var n = "data:image/svg+xml,%3csvg%20width='76'%20height='20'%20viewBox='0%200%2076%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.1687%206.01811C42.2312%206.01811%2043.7927%206.59655%2044.8446%207.76024C45.8919%208.91831%2046.4126%2010.5865%2046.4126%2012.7583C46.4126%2014.93%2045.8748%2016.6105%2044.794%2017.7944C43.7102%2018.9815%2042.1729%2019.5735%2040.1937%2019.5735C38.1479%2019.5735%2036.5973%2018.99%2035.5546%2017.8187L35.4273%2017.6701C34.4729%2016.5101%2033.9984%2014.871%2033.9984%2012.7583C33.9984%208.28671%2036.0703%206.01811%2040.1687%206.01811ZM69.1127%206.01781C71.1144%206.01781%2072.5953%206.66904%2073.5373%207.97333C74.4288%209.2077%2074.8837%2010.9053%2074.9066%2013.0629L74.9058%2013.5242H66.1149C66.2174%2014.6334%2066.5602%2015.4734%2067.141%2016.0538C67.7488%2016.662%2068.6195%2016.9679%2069.7639%2016.9679C70.5188%2016.9679%2071.2373%2016.8742%2071.921%2016.6862C72.6048%2016.4995%2073.2105%2016.2581%2073.735%2015.9646L73.9814%2015.8267V18.666L73.8821%2018.7093C72.5607%2019.286%2071.0464%2019.5732%2069.3379%2019.5732C67.4088%2019.5732%2065.8853%2018.986%2064.7769%2017.8093C63.6699%2016.6348%2063.1183%2014.9722%2063.1183%2012.833C63.1183%2010.6451%2063.6389%208.96055%2064.6862%207.78517C65.7359%206.60632%2067.2157%206.01781%2069.1127%206.01781ZM60.3976%201.06738V16.3832C60.3976%2017.0998%2060.0996%2017.7092%2059.5124%2018.198C58.9425%2018.6724%2058.2282%2019.0207%2057.3718%2019.2435C56.5257%2019.4635%2055.6531%2019.5731%2054.7534%2019.5731C52.9298%2019.5731%2051.4237%2019.056%2050.2406%2018.0202C49.0485%2016.9752%2048.4588%2015.1678%2048.4588%2012.6072C48.4588%2010.5545%2048.9627%208.9421%2049.9753%207.77411C50.9938%206.60175%2052.4982%206.01774%2054.4782%206.01774C54.9416%206.01774%2055.4735%206.07665%2056.0742%206.19449C56.582%206.296%2057.0453%206.43849%2057.4648%206.62252V1.06738H60.3976ZM27.911%206.04223C29.2828%206.04223%2030.5881%206.29619%2031.8264%206.80393L31.9291%206.84604V9.55797L31.6992%209.46109C30.4503%208.93473%2029.3127%208.67257%2028.2863%208.67257C27.0102%208.67257%2026.0684%208.98809%2025.4521%209.61162C24.8366%2010.2352%2024.5242%2011.2397%2024.5242%2012.6331C24.5242%2014.0959%2024.8298%2015.1535%2025.4314%2015.8092C26.029%2016.4619%2027.002%2016.7923%2028.3613%2016.7923C29.4706%2016.7923%2030.589%2016.5234%2031.7164%2015.9842L31.9534%2015.8708V18.5903L31.8552%2018.634C30.6349%2019.1773%2029.3283%2019.4483%2027.936%2019.4483C26.2154%2019.4483%2024.7637%2018.9753%2023.5868%2018.0285L23.4123%2017.8829L23.2796%2017.7636C22.1516%2016.7067%2021.5914%2015.0592%2021.5914%2012.8332C21.5914%2010.4557%2022.186%208.72379%2023.3849%207.64725C24.5757%206.57726%2026.0871%206.04223%2027.911%206.04223ZM4.11045%206.39262L4.13613%2019.1987H1.15293V6.39262H4.11045ZM13.5766%206.0423C15.365%206.0423%2016.6948%206.41948%2017.5636%207.18368C18.4372%207.95269%2018.8706%209.13902%2018.8706%2010.7331V19.1984H15.9127V11.0838C15.9127%209.42945%2014.9988%208.62337%2013.1013%208.62337C12.3086%208.62337%2011.5458%208.73548%2010.8133%208.95959L10.5401%209.04888V19.1984H7.58147V7.40579L7.67177%207.35974C8.43481%206.97061%209.36013%206.65415%2010.4506%206.40815L10.8116%206.33134C11.7692%206.13867%2012.6905%206.0423%2013.5766%206.0423ZM40.1687%208.5477C39.0014%208.5477%2038.1814%208.89722%2037.6896%209.59114C37.1869%2010.3012%2036.932%2011.3564%2036.932%2012.7583C36.932%2014.1602%2037.1948%2015.223%2037.7142%2015.9499C38.2224%2016.6613%2039.0345%2017.0182%2040.1687%2017.0182C42.3685%2017.0182%2043.4555%2015.6249%2043.4555%2012.7583C43.4555%2011.325%2043.1888%2010.2632%2042.6636%209.57056C42.1472%208.89036%2041.3203%208.5477%2040.1687%208.5477ZM54.8535%208.59807C52.5835%208.59807%2051.4659%209.9271%2051.4659%2012.6579C51.4659%2014.0276%2051.7253%2015.0917%2052.2391%2015.8527C52.7378%2016.5945%2053.6185%2016.9678%2054.9035%2016.9678C55.6556%2016.9678%2056.2834%2016.8792%2056.7876%2016.7028C57.2156%2016.553%2057.4279%2016.378%2057.4604%2016.186L57.4648%2016.1332V9.25404L57.2778%209.15611C56.9611%208.99923%2056.6189%208.87406%2056.2512%208.78123C55.7705%208.65917%2055.3045%208.59807%2054.8535%208.59807ZM69.0377%208.49888C68.192%208.49888%2067.5412%208.71795%2067.0743%209.15366C66.6631%209.5374%2066.3731%2010.1684%2066.2101%2011.0498L66.1771%2011.2425H71.8784L71.8489%2011.0453C71.7111%2010.208%2071.4421%209.58986%2071.0461%209.18626C70.5969%208.72981%2069.9303%208.49888%2069.0377%208.49888ZM4.21085%201.94156V4.64764H1.07715V1.94156H4.21085Z'%20fill='%23006AFF'/%3e%3c/svg%3e";
5
- //#endregion
6
3
  //#region src/shared/page/pageUiConfig.ts
7
- function r(e) {
4
+ function n(e) {
8
5
  for (let t of e) if (t !== void 0) return t;
9
6
  }
10
- function i(e) {
7
+ function r(e) {
11
8
  if (!e) return;
12
9
  if (/^\d+$/.test(e)) return Number(e);
13
10
  let t = e.match(/^(\d+)px$/);
14
11
  if (t) return Number(t[1]);
15
12
  }
16
- function a(e) {
17
- let t = r([e.logo?.height, e.uiConfig.logoHeight]);
13
+ function i(e) {
14
+ let t = n([e.logo?.height, e.uiConfig.logoHeight]);
18
15
  return {
19
- hideHeader: r([e.hideHeader, e.uiConfig.hideHeader]) ?? !1,
20
- hideFooterBranding: r([e.hideFooterBranding, e.uiConfig.hideFooterBranding]) ?? !1,
21
- logoSrc: r([e.logo?.src, e.uiConfig.logoSrc]) ?? e.defaultLogoSrc,
22
- logoHeightPx: i(t) ?? 80
16
+ hideHeader: n([e.hideHeader, e.uiConfig.hideHeader]) ?? !1,
17
+ hideFooterBranding: n([e.hideFooterBranding, e.uiConfig.hideFooterBranding]) ?? !1,
18
+ logoSrc: n([e.logo?.src, e.uiConfig.logoSrc]) ?? e.defaultLogoSrc,
19
+ logoHeightPx: r(t) ?? 80
23
20
  };
24
21
  }
25
- function o(e) {
22
+ function a(e) {
26
23
  let n = t();
27
- return a({
24
+ return i({
28
25
  ...e,
29
26
  uiConfig: n
30
27
  });
31
28
  }
32
29
  //#endregion
33
30
  //#region src/shared/page/verifiedByIncode.tsx
34
- var s = () => /* @__PURE__ */ e("svg", {
31
+ var o = () => /* @__PURE__ */ e("svg", {
35
32
  width: "121",
36
33
  height: "15",
37
34
  viewBox: "0 0 121 15",
@@ -101,4 +98,4 @@ var s = () => /* @__PURE__ */ e("svg", {
101
98
  ]
102
99
  });
103
100
  //#endregion
104
- export { o as n, n as r, s as t };
101
+ export { a as n, o as t };
@@ -1,22 +1,23 @@
1
- import { n as e } from "../i18n-DUMvrSNM.js";
1
+ import { n as e } from "../i18n-BpEDCZi_.js";
2
2
  import { _ as t, l as n, v as r } from "../vendor-preact-D6SntenC.js";
3
- import { c as i, r as a, t as o } from "../loadingIcon-ahC-hZN7.js";
4
- import { t as s } from "../spacer-DCljE53A.js";
5
- import { t as c } from "../page-kB-LDkaO.js";
6
- import { t as l } from "../typography-7cXma7kl.js";
7
- import "../typography-CsEiWMTG.js";
8
- import { t as u } from "../successIcon-AHrfmJvv.js";
9
- import { t as d } from "../incodeModule-Di2OUZ5_.js";
3
+ import { o as i, t as a } from "../incodeComponent-DIb7wDAq.js";
4
+ import { t as o } from "../spacer-DCljE53A.js";
5
+ import { t as s } from "../page-D5Mt-0zn.js";
6
+ import { t as c } from "../loadingIcon-HWY04StG.js";
7
+ import { t as l } from "../typography-CNNFm2Bl.js";
8
+ import "../typography-ClOy6Kmo.js";
9
+ import { t as u } from "../successIcon-C4GI_9SU.js";
10
+ import { t as d } from "../incodeModule-D_r2n18O.js";
10
11
  import { createWatchlistManager as f } from "@incodetech/core/watchlist";
11
12
  //#region src/modules/watchlist/watchlistStatusPage.tsx
12
- var p = ({ variant: e, icon: t, title: n, subtitle: i, titleRef: a }) => /* @__PURE__ */ r(c, {
13
+ var p = ({ variant: e, icon: t, title: n, subtitle: i, titleRef: a }) => /* @__PURE__ */ r(s, {
13
14
  className: `IncodeWatchlistStatusPage IncodeWatchlistStatusPage--${e}`,
14
- children: [/* @__PURE__ */ r(s, { size: 40 }), /* @__PURE__ */ r("div", {
15
+ children: [/* @__PURE__ */ r(o, { size: 40 }), /* @__PURE__ */ r("div", {
15
16
  class: "IncodeWatchlistStatusContainer",
16
17
  children: [
17
- /* @__PURE__ */ r(s, { size: 120 }),
18
+ /* @__PURE__ */ r(o, { size: 120 }),
18
19
  t,
19
- /* @__PURE__ */ r(s, { size: 16 }),
20
+ /* @__PURE__ */ r(o, { size: 16 }),
20
21
  /* @__PURE__ */ r(l, {
21
22
  ref: a,
22
23
  className: "IncodeWatchlistStatusTitle",
@@ -30,23 +31,23 @@ var p = ({ variant: e, icon: t, title: n, subtitle: i, titleRef: a }) => /* @__P
30
31
  ]
31
32
  })]
32
33
  }), m = ({ onFinish: a }) => {
33
- let { t: s } = e(), [c, l] = i(() => f()), d = n(null);
34
+ let { t: o } = e(), [s, l] = i(() => f()), d = n(null);
34
35
  return t(() => {
35
36
  l.load();
36
37
  }, [l]), t(() => {
37
- c.status === "finished" && a?.();
38
- }, [c.status, a]), t(() => {
39
- c.status === "success" && d.current?.focus();
40
- }, [c.status]), c.status === "success" ? /* @__PURE__ */ r(p, {
38
+ s.status === "finished" && a?.();
39
+ }, [s.status, a]), t(() => {
40
+ s.status === "success" && d.current?.focus();
41
+ }, [s.status]), s.status === "success" ? /* @__PURE__ */ r(p, {
41
42
  variant: "success",
42
43
  icon: /* @__PURE__ */ r(u, { size: 64 }),
43
- title: s("watchList.complete"),
44
+ title: o("watchList.complete"),
44
45
  titleRef: d
45
46
  }) : /* @__PURE__ */ r(p, {
46
47
  variant: "loading",
47
- icon: /* @__PURE__ */ r(o, { size: 64 }),
48
- title: s("watchList.processing"),
49
- subtitle: s("watchList.thisMigthTake")
48
+ icon: /* @__PURE__ */ r(c, { size: 64 }),
49
+ title: o("watchList.processing"),
50
+ subtitle: o("watchList.thisMigthTake")
50
51
  });
51
52
  }, h = ({ onFinish: e }) => /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(m, { onFinish: e }) });
52
53
  d(h, "incode-watchlist");
@@ -1,17 +1,17 @@
1
- import { n as e } from "../i18n-DUMvrSNM.js";
1
+ import { n as e } from "../i18n-BpEDCZi_.js";
2
2
  import { _ as t, l as n, p as r, v as i } from "../vendor-preact-D6SntenC.js";
3
3
  import { t as a } from "../uiConfig-CwpQ-IM6.js";
4
- import { c as o, r as s } from "../loadingIcon-ahC-hZN7.js";
5
- import { t as c } from "../spinner-BAVCJLTE.js";
6
- import "../spinner-B-jf992b.js";
7
- import { t as l } from "../incodeModule-Di2OUZ5_.js";
8
- import { d as u, i as d, l as f, r as p, t as m } from "../useModuleLoader-DPGKFaMr.js";
4
+ import { o, t as s } from "../incodeComponent-DIb7wDAq.js";
5
+ import { t as c } from "../spinner-l6dvYqCg.js";
6
+ import "../spinner-CFvndzMU.js";
7
+ import { t as l } from "../incodeModule-D_r2n18O.js";
8
+ import { f as u, i as d, r as f, t as p, u as m } from "../useModuleLoader-C8N5qfo6.js";
9
9
  import { resolveWasmConfig as h, warmupWasm as g } from "@incodetech/core/wasm";
10
10
  import { createWorkflowManager as _ } from "@incodetech/core/workflow";
11
11
  //#region src/modules/workflow/workflowInit.ts
12
12
  var v = {
13
13
  ...d,
14
- REDIRECT_TO_MOBILE: () => import("../redirectToMobile-CYt-uhqB.js").then((e) => e.RedirectToMobile)
14
+ REDIRECT_TO_MOBILE: () => import("../redirectToMobile-1oLWg6QJ.js").then((e) => e.RedirectToMobile)
15
15
  };
16
16
  async function y() {
17
17
  try {
@@ -45,11 +45,11 @@ function x(e) {
45
45
  //#endregion
46
46
  //#region src/modules/workflow/useWorkflowInitialization.ts
47
47
  function S(e) {
48
- let { apiURL: i, token: o, lang: s, disableDashboardTheme: c, wasmConfig: l, customModuleCallback: u, interviewId: d, isDesktop: p, onError: m } = e, h = n(null), [g, _] = r(() => {
48
+ let { apiURL: i, token: o, lang: s, disableDashboardTheme: c, wasmConfig: l, customModuleCallback: u, interviewId: d, isDesktop: f, onError: p } = e, h = n(null), [g, _] = r(() => {
49
49
  let e = b({
50
50
  customModuleCallback: u,
51
51
  interviewId: d,
52
- isDesktop: p
52
+ isDesktop: f
53
53
  });
54
54
  return h.current = e, {
55
55
  status: "initializing",
@@ -62,7 +62,7 @@ function S(e) {
62
62
  let e = h.current;
63
63
  return (async () => {
64
64
  try {
65
- await f({
65
+ await m({
66
66
  apiURL: i,
67
67
  token: o,
68
68
  lang: s
@@ -80,7 +80,7 @@ function S(e) {
80
80
  status: "error",
81
81
  error: n,
82
82
  workflowManager: e
83
- }), m?.(n);
83
+ }), p?.(n);
84
84
  }
85
85
  })(), () => e?.stop();
86
86
  }, [
@@ -89,7 +89,7 @@ function S(e) {
89
89
  s,
90
90
  c,
91
91
  l,
92
- m
92
+ p
93
93
  ]), g;
94
94
  }
95
95
  //#endregion
@@ -145,7 +145,7 @@ var w = ({ config: r, onFinish: a, onError: s }) => {
145
145
  interviewId: r.interviewId,
146
146
  isDesktop: r.isDesktop,
147
147
  onError: s
148
- }), [d, f] = o(() => u.workflowManager, { autoLoad: !1 }), h = m({
148
+ }), [d, m] = o(() => u.workflowManager, { autoLoad: !1 }), h = p({
149
149
  moduleKey: d?.status === "ready" ? d.currentNode.moduleKey : void 0,
150
150
  modules: v,
151
151
  onModuleLoading: r.onModuleLoading,
@@ -178,16 +178,16 @@ var w = ({ config: r, onFinish: a, onError: s }) => {
178
178
  fullScreen: !0
179
179
  })
180
180
  }), y = (e) => {
181
- f.errorModule(e ?? "Module error"), s?.(e ?? "Module error");
181
+ m.errorModule(e ?? "Module error"), s?.(e ?? "Module error");
182
182
  };
183
183
  if (u.status === "error") return null;
184
184
  if (u.status === "initializing" || !d || d.status === "idle" || d.status === "loading") return _();
185
185
  if (d.status === "finished" || d.status === "error" || d.status === "asyncResolution" || d.status === "closed") return null;
186
186
  if (h.status === "unsupported") return /* @__PURE__ */ i("div", {
187
187
  class: "IncodeWorkflow",
188
- children: /* @__PURE__ */ i(p, {
188
+ children: /* @__PURE__ */ i(f, {
189
189
  moduleKey: d.currentNode.moduleKey,
190
- onNext: () => f.completeModule()
190
+ onNext: () => m.completeModule()
191
191
  })
192
192
  });
193
193
  if (h.status === "idle" || h.status === "loading" || h.status === "error") return _();
@@ -204,9 +204,9 @@ var w = ({ config: r, onFinish: a, onError: s }) => {
204
204
  mergeSessionRecordings: d.workflowConfig.mergeSessionRecordings,
205
205
  ageAssurance: d.workflowConfig.ageAssurance
206
206
  }),
207
- onFinish: () => f.completeModule(),
207
+ onFinish: () => m.completeModule(),
208
208
  onError: y,
209
- ...d.currentNode.moduleKey === "REDIRECT_TO_MOBILE" ? { onContinue: () => f.completeModule() } : {}
209
+ ...d.currentNode.moduleKey === "REDIRECT_TO_MOBILE" ? { onContinue: () => m.completeModule() } : {}
210
210
  }, d.currentNode.id)
211
211
  });
212
212
  }, T = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ i(s, { children: e ? /* @__PURE__ */ i(w, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260416-e8e67a4",
3
+ "version": "0.0.0-dev-20260416-3692bda",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -183,7 +183,7 @@
183
183
  "qrcode": "^1.5.4",
184
184
  "signature_pad": "^5.1.3",
185
185
  "tailwindcss": "^4.1.17",
186
- "@incodetech/core": "0.0.0-dev-20260416-e8e67a4"
186
+ "@incodetech/core": "0.0.0-dev-20260416-3692bda"
187
187
  },
188
188
  "devDependencies": {
189
189
  "@microsoft/api-extractor": "^7.53.3",
@@ -1 +0,0 @@
1
- import "./dateInputComposed-B8nKYsUG.js";
@@ -1 +0,0 @@
1
- import "./dropdownComposed-CR1bc7Z9.js";
@@ -1,2 +0,0 @@
1
- import { t as e } from "./ekybModule-BBSKwZZy.js";
2
- export { e as EkybModule };
@@ -1,2 +0,0 @@
1
- import { t as e } from "./ekycModule-Dca-zhQw.js";
2
- export { e as EkycModule };
@@ -1,2 +0,0 @@
1
- import { t as e } from "./faceMatch-D6HVVSiY.js";
2
- export { e as FaceMatch };