@incodetech/web 0.0.0-dev-20260409-a38d5e8 → 0.0.0-dev-20260409-09dfd52

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 (92) hide show
  1. package/dist/{AsYouType-C-VEC826.js → AsYouType-RC03ULcj.js} +1 -1
  2. package/dist/{addressAutocomplete-BuldQv2L.js → addressAutocomplete-BELDwueU.js} +4 -4
  3. package/dist/antifraud/antifraud.es.js +3 -3
  4. package/dist/authentication/authentication.es.js +3 -3
  5. package/dist/button-Dt72Wn3U.js +24 -0
  6. package/dist/{checkbox-CCxy6DN4.js → checkbox-BcJjkRs3.js} +2 -2
  7. package/dist/consent/consent.es.js +13 -13
  8. package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
  9. package/dist/curp-validation/curp-validation.es.js +37 -37
  10. package/dist/dateInputComposed-DU2hZfnf.js +2 -0
  11. package/dist/{dateInputComposed-DX7hO6l8.js → dateInputComposed-wl-LTsul.js} +4 -4
  12. package/dist/{documentCapture-CYW_KpEI.js → documentCapture-CrE9NA0-.js} +54 -54
  13. package/dist/{dropdownComposed-DbHLLS0N.js → dropdownComposed-C2cDpZSB.js} +3 -3
  14. package/dist/ekyb/ekyb.es.js +1 -1
  15. package/dist/ekybModule-BQUyYqJO.js +2 -0
  16. package/dist/{ekybModule-BKCFm27J.js → ekybModule-tHnD9IyU.js} +19 -19
  17. package/dist/ekyc/ekyc.es.js +1 -1
  18. package/dist/ekycModule-ByS2oj23.js +2 -0
  19. package/dist/{ekycModule-BVXMAI6j.js → ekycModule-Cc2l9FNN.js} +19 -19
  20. package/dist/email/email.es.js +11 -11
  21. package/dist/{extensibility-CGYf1tlJ.js → extensibility-Due2cIvN.js} +58 -58
  22. package/dist/extensibility.es.js +20 -20
  23. package/dist/face-match/face-match.es.js +1 -1
  24. package/dist/{faceMatch-BMdxb9CE.js → faceMatch-8wF_NjAI.js} +11 -11
  25. package/dist/faceMatch-k9ZKksto.js +2 -0
  26. package/dist/flow/flow.es.js +269 -2134
  27. package/dist/{formField-BVEXt76v.js → formField-DRI6PubM.js} +13 -13
  28. package/dist/geolocation/geolocation.es.js +11 -11
  29. package/dist/governmentValidation/governmentValidation.es.js +9 -9
  30. package/dist/{i18n-CcMrDzmw.js → i18n-DGG1zc7t.js} +1 -1
  31. package/dist/{icons-CvPvuYCm.js → icons-CkLer5E1.js} +1 -1
  32. package/dist/id/id.es.js +6 -6
  33. package/dist/index.es.js +1 -1
  34. package/dist/inputComposed-C3Q-eQ1V.js +1 -0
  35. package/dist/{inputComposed-6ZSkf7Za.js → inputComposed-yULlZXg1.js} +3 -3
  36. package/dist/{loadingIcon-DEN5B0ju.js → loadingIcon-B3xEpDvA.js} +1 -1
  37. package/dist/{mandatoryConsent-DpejBjwV.js → mandatoryConsent-CWA8z4z-.js} +14 -14
  38. package/dist/{otpInput-DAwkcaQi.js → otpInput-2FjlqNe0.js} +4 -4
  39. package/dist/{page-B61t4D13.js → page-kB-LDkaO.js} +4 -4
  40. package/dist/phone/phone.es.js +11 -11
  41. package/dist/{phoneInput-BezqS95v.js → phoneInput-CYbUN3oz.js} +3 -3
  42. package/dist/{phoneInputComposed-DbSTCw_p.js → phoneInputComposed-CkL_nMPT.js} +6 -6
  43. package/dist/{processing-CD5TYh41.js → processing-BB9pxvN2.js} +2 -2
  44. package/dist/redirectToMobile-CYLzR4ck.js +2 -0
  45. package/dist/redirectToMobile-CxEfitZM.js +1545 -0
  46. package/dist/{richText-nIDjB47u.js → richText-C9m4iMuF.js} +1 -1
  47. package/dist/selfie/selfie.es.js +4 -4
  48. package/dist/{setup-CNelwOWO.js → setup-CATCmh3T.js} +1 -1
  49. package/dist/signature/signature.es.js +15 -15
  50. package/dist/{spinner-CBuVSVRP.js → spinner-4epdvlck.js} +3 -3
  51. package/dist/spinner-CbGt1yZr.js +1 -0
  52. package/dist/{tutorial-qFq58awW.js → tutorial-s3gx4OxF.js} +63 -63
  53. package/dist/types/workflow.d.ts +62 -0
  54. package/dist/{typography-PQSaYBgR.js → typography-R9HuMYSQ.js} +1 -1
  55. package/dist/typography-ePPfV-Xg.js +1 -0
  56. package/dist/useModuleLoader-Jq27P9t5.js +325 -0
  57. package/dist/{button-D85zGTiU.js → verifiedByIncode-CMPwRtA2.js} +32 -51
  58. package/dist/workflow/styles.css +6697 -0
  59. package/dist/workflow/workflow.es.js +219 -0
  60. package/package.json +9 -2
  61. package/dist/dateInputComposed-BaWm6bmT.js +0 -2
  62. package/dist/ekybModule-DviRZ6bj.js +0 -2
  63. package/dist/ekycModule-B8z7i5gA.js +0 -2
  64. package/dist/faceMatch-BRVU6adg.js +0 -2
  65. package/dist/inputComposed-C2QhOo1q.js +0 -1
  66. package/dist/spinner-BOBu0_7y.js +0 -1
  67. package/dist/typography-BveyW5lr.js +0 -1
  68. /package/dist/{aligndevicelottie-BESyjja3.js → aligndevicelottie-Dzk0EYVz.js} +0 -0
  69. /package/dist/{back-horizontal-hint-CalX75a7.js → back-horizontal-hint-BgG85hNR.js} +0 -0
  70. /package/dist/{back-tutorial-BQwJgaGG.js → back-tutorial-CJwYD2hu.js} +0 -0
  71. /package/dist/{back-vertical-hint-2SOVPN8l.js → back-vertical-hint-BhG7RS-O.js} +0 -0
  72. /package/dist/{backdevicelottie-D5kOlV31.js → backdevicelottie-TJ3pa5kD.js} +0 -0
  73. /package/dist/{blurdevicelottie-YEyIrlUI.js → blurdevicelottie-gPcFwLJO.js} +0 -0
  74. /package/dist/{browser-ponyfill-cMyrYa4p.js → browser-ponyfill-CYOHdF5Y.js} +0 -0
  75. /package/dist/{countries-BGpsb-UE.js → countries-DKKNtuUp.js} +0 -0
  76. /package/dist/{defineProperty-DSVcWjt2.js → defineProperty-eqPYf0qG.js} +0 -0
  77. /package/dist/{flip-animation-DbofaTty.js → flip-animation-ygeHr8Wk.js} +0 -0
  78. /package/dist/{front-horizontal-hint-DI3Uaq97.js → front-horizontal-hint-yIMvej7H.js} +0 -0
  79. /package/dist/{front-vertical-hint-Bc4LWUVG.js → front-vertical-hint-ZYgpMlDz.js} +0 -0
  80. /package/dist/{frontdevicelottie-BEk_Z_Up.js → frontdevicelottie-CJbKuefM.js} +0 -0
  81. /package/dist/{glaredevicelottie-COKmclSi.js → glaredevicelottie-DeGIxDRx.js} +0 -0
  82. /package/dist/{id-laser-h-CY76JXmk.js → id-laser-h-B7ddWmEe.js} +0 -0
  83. /package/dist/{id-laser-v-CyjBWjkL.js → id-laser-v-CI4GubjY.js} +0 -0
  84. /package/dist/{id-tutorial-Cqp9EUbW.js → id-tutorial-B1vsh6Wp.js} +0 -0
  85. /package/dist/{incodeModule-nXHV_p_Y.js → incodeModule-C3p8eAh_.js} +0 -0
  86. /package/dist/{numberedStep-a4kHo4t-.js → numberedStep-CoxrYWYg.js} +0 -0
  87. /package/dist/{passport-horizontal-hint-h_yTQfgD.js → passport-horizontal-hint-BLM_Rdz4.js} +0 -0
  88. /package/dist/{passport-tutorial-DNr-AgHL.js → passport-tutorial-DH7UEOHu.js} +0 -0
  89. /package/dist/{passport-vertical-hint-DzvJ1Cas.js → passport-vertical-hint-BVKS-R7d.js} +0 -0
  90. /package/dist/{selfieTutorial-6N-Fb6dA.js → selfieTutorial-BZFLHPco.js} +0 -0
  91. /package/dist/{successIcon-AHrfmJvv.js → successIcon-Dklx5JWI.js} +0 -0
  92. /package/dist/{warningIcon-Cvj-ayg1.js → warningIcon-Bv_pDQV-.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { t as e, v as t } from "./vendor-preact-D6SntenC.js";
2
- import { t as n } from "./defineProperty-DSVcWjt2.js";
2
+ import { t as n } from "./defineProperty-eqPYf0qG.js";
3
3
  //#region ../../node_modules/.pnpm/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.mjs
4
4
  var { entries: r, setPrototypeOf: i, isFrozen: a, getPrototypeOf: o, getOwnPropertyDescriptor: s } = Object, { freeze: c, seal: l, create: u } = Object, { apply: d, construct: f } = typeof Reflect < "u" && Reflect;
5
5
  c ||= function(e) {
@@ -1,8 +1,8 @@
1
1
  import { v as e } from "../vendor-preact-D6SntenC.js";
2
- import { c as t, r as n } from "../loadingIcon-DEN5B0ju.js";
3
- import { t as r } from "../processing-CD5TYh41.js";
4
- import { n as i, r as a, t as o } from "../tutorial-qFq58awW.js";
5
- import { t as s } from "../incodeModule-nXHV_p_Y.js";
2
+ import { c as t, r as n } from "../loadingIcon-B3xEpDvA.js";
3
+ import { t as r } from "../processing-BB9pxvN2.js";
4
+ import { n as i, r as a, t as o } from "../tutorial-s3gx4OxF.js";
5
+ import { t as s } from "../incodeModule-C3p8eAh_.js";
6
6
  import { createSelfieManager as c } from "@incodetech/core/selfie";
7
7
  //#region src/modules/selfie/selfie.tsx
8
8
  var l = ({ config: n, manager: s, onFinish: l, onError: u }) => {
@@ -1,4 +1,4 @@
1
- import { i as e, r as t } from "./i18n-CcMrDzmw.js";
1
+ import { i as e, r as t } from "./i18n-DGG1zc7t.js";
2
2
  import { t as n } from "./uiConfig-CwpQ-IM6.js";
3
3
  import { setup as r } from "@incodetech/core";
4
4
  //#region src/setup.ts
@@ -1,14 +1,14 @@
1
- import { n as e } from "../i18n-CcMrDzmw.js";
1
+ import { n as e } from "../i18n-DGG1zc7t.js";
2
2
  import { _ as t, a as n, d as r, h as i, l as a, p as o, u as s, v as c } from "../vendor-preact-D6SntenC.js";
3
- import { c as l, r as u } from "../loadingIcon-DEN5B0ju.js";
3
+ import { c as l, r as u } from "../loadingIcon-B3xEpDvA.js";
4
4
  import { t as d } from "../spacer-DCljE53A.js";
5
- import { t as f } from "../button-D85zGTiU.js";
6
- import { t as p } from "../page-B61t4D13.js";
7
- import { r as m } from "../typography-PQSaYBgR.js";
8
- import "../typography-BveyW5lr.js";
9
- import { t as h } from "../successIcon-AHrfmJvv.js";
10
- import { t as g } from "../incodeModule-nXHV_p_Y.js";
11
- import { t as _ } from "../defineProperty-DSVcWjt2.js";
5
+ import { t as f } from "../page-kB-LDkaO.js";
6
+ import { r as p } from "../typography-R9HuMYSQ.js";
7
+ import "../typography-ePPfV-Xg.js";
8
+ import { t as m } from "../button-Dt72Wn3U.js";
9
+ import { t as h } from "../successIcon-Dklx5JWI.js";
10
+ import { t as g } from "../incodeModule-C3p8eAh_.js";
11
+ import { t as _ } from "../defineProperty-eqPYf0qG.js";
12
12
  import { createSignatureManager as v } from "@incodetech/core/signature";
13
13
  //#region ../../node_modules/.pnpm/signature_pad@5.1.3/node_modules/signature_pad/dist/signature_pad.js
14
14
  var y = class {
@@ -481,13 +481,13 @@ var A = ({ config: n, onFinish: s, onError: u }) => {
481
481
  y,
482
482
  O
483
483
  ]);
484
- let A = (e) => n.title?.trim() || g(e === "initials" ? "signature.initialsTitle" : "signature.fullSignatureTitle"), j = () => n.subtitle?.trim() || g("signature.subtitle"), M = async () => {
484
+ let A = (e) => n.title?.trim() || g(e === "initials" ? "signature.initialsTitle" : "signature.fullSignatureTitle"), j = () => n.subTitle?.trim() || g("signature.subtitle"), M = async () => {
485
485
  let e = S.current;
486
486
  if (!e) return;
487
487
  let t = e.getSignatureWithWhiteBackground();
488
488
  if (t) return n.sendBase64 ?? !1 ? t.toDataURL("image/png").replace(/^data:image\/png;base64,/, "") : e.getBlob(t);
489
489
  };
490
- return _.status === "idle" || _.status === "finished" || _.status === "error" ? null : _.status === "success" ? /* @__PURE__ */ c(p, {
490
+ return _.status === "idle" || _.status === "finished" || _.status === "error" ? null : _.status === "success" ? /* @__PURE__ */ c(f, {
491
491
  className: "IncodeSignature IncodeSignatureFadeIn",
492
492
  children: /* @__PURE__ */ c("div", {
493
493
  class: "IncodeSignatureContent IncodeSignatureSuccess",
@@ -495,10 +495,10 @@ var A = ({ config: n, onFinish: s, onError: u }) => {
495
495
  children: [
496
496
  /* @__PURE__ */ c(h, { size: 48 }),
497
497
  /* @__PURE__ */ c(d, { size: 16 }),
498
- /* @__PURE__ */ c(m, { children: g("signature.successTitle") })
498
+ /* @__PURE__ */ c(p, { children: g("signature.successTitle") })
499
499
  ]
500
500
  })
501
- }) : /* @__PURE__ */ c(p, {
501
+ }) : /* @__PURE__ */ c(f, {
502
502
  className: "IncodeSignature IncodeSignatureFadeIn",
503
503
  title: A(w),
504
504
  subtitle: j(),
@@ -517,7 +517,7 @@ var A = ({ config: n, onFinish: s, onError: u }) => {
517
517
  customPenStrokeWidth: n.penStrokeWidth
518
518
  }),
519
519
  /* @__PURE__ */ c(d, { size: 8 }),
520
- /* @__PURE__ */ c(f, {
520
+ /* @__PURE__ */ c(m, {
521
521
  variant: "link",
522
522
  disabled: !b || E,
523
523
  onClick: O,
@@ -526,7 +526,7 @@ var A = ({ config: n, onFinish: s, onError: u }) => {
526
526
  ]
527
527
  }), /* @__PURE__ */ c("div", {
528
528
  class: "IncodeSignatureButtonContainer",
529
- children: /* @__PURE__ */ c(f, {
529
+ children: /* @__PURE__ */ c(m, {
530
530
  disabled: !D,
531
531
  isLoading: E,
532
532
  onClick: async () => {
@@ -1,8 +1,8 @@
1
1
  import { S as e, _ as t, l as n, v as r } from "./vendor-preact-D6SntenC.js";
2
- import { n as i, t as a } from "./loadingIcon-DEN5B0ju.js";
2
+ import { n as i, t as a } from "./loadingIcon-B3xEpDvA.js";
3
3
  import { t as o } from "./spacer-DCljE53A.js";
4
- import { t as s } from "./typography-PQSaYBgR.js";
5
- import "./typography-BveyW5lr.js";
4
+ import { t as s } from "./typography-R9HuMYSQ.js";
5
+ import "./typography-ePPfV-Xg.js";
6
6
  //#region src/shared/spinner/spinner.tsx
7
7
  var c = {
8
8
  small: 24,
@@ -0,0 +1 @@
1
+ import "./spinner-4epdvlck.js";
@@ -1,34 +1,34 @@
1
- import { n as e, t } from "./i18n-CcMrDzmw.js";
1
+ import { n as e, t } from "./i18n-DGG1zc7t.js";
2
2
  import { C as n, S as r, _ as i, a, b as o, d as s, f as c, g as l, h as u, l as d, m as f, p, r as m, v as h, x as g, y as _ } from "./vendor-preact-D6SntenC.js";
3
- import { a as v, n as y, t as b } from "./loadingIcon-DEN5B0ju.js";
3
+ import { a as v, n as y, t as b } from "./loadingIcon-B3xEpDvA.js";
4
4
  import { t as x } from "./spacer-DCljE53A.js";
5
- import { t as S } from "./button-D85zGTiU.js";
6
- import { t as C } from "./page-B61t4D13.js";
7
- import { a as ee, o as te, t as w } from "./typography-PQSaYBgR.js";
8
- import "./typography-BveyW5lr.js";
9
- import { t as T } from "./spinner-CBuVSVRP.js";
10
- import "./spinner-BOBu0_7y.js";
11
- import { o as ne, p as re } from "./icons-CvPvuYCm.js";
12
- import { t as E } from "./warningIcon-Cvj-ayg1.js";
13
- import { t as ie } from "./successIcon-AHrfmJvv.js";
14
- import { t as ae } from "./numberedStep-a4kHo4t-.js";
15
- import { getBrowser as D, getDeviceClass as oe } from "@incodetech/core/device";
5
+ import { t as S } from "./page-kB-LDkaO.js";
6
+ import { a as C, o as ee, t as w } from "./typography-R9HuMYSQ.js";
7
+ import "./typography-ePPfV-Xg.js";
8
+ import { t as T } from "./spinner-4epdvlck.js";
9
+ import "./spinner-CbGt1yZr.js";
10
+ import { t as E } from "./button-Dt72Wn3U.js";
11
+ import { o as te, p as ne } from "./icons-CkLer5E1.js";
12
+ import { t as D } from "./warningIcon-Bv_pDQV-.js";
13
+ import { t as re } from "./successIcon-Dklx5JWI.js";
14
+ import { t as ie } from "./numberedStep-CoxrYWYg.js";
15
+ import { getBrowser as O, getDeviceClass as ae } from "@incodetech/core/device";
16
16
  import "@incodetech/core/camera";
17
17
  //#region src/shared/errorContent/errorContent.tsx
18
- var O = ({ title: t, description: n, attemptsRemaining: r, onButtonClick: a, "data-testid": o }) => {
18
+ var k = ({ title: t, description: n, attemptsRemaining: r, onButtonClick: a, "data-testid": o }) => {
19
19
  let { t: s } = e(), c = r <= 0, l = d(null);
20
20
  return i(() => {
21
21
  l.current?.focus();
22
22
  }, []), /* @__PURE__ */ h("div", {
23
23
  class: "IncodeErrorContent",
24
- children: /* @__PURE__ */ h(C, {
24
+ children: /* @__PURE__ */ h(S, {
25
25
  "data-testid": o,
26
26
  children: /* @__PURE__ */ h("div", {
27
27
  class: "IncodeErrorContentContainer",
28
28
  children: [/* @__PURE__ */ h("div", {
29
29
  class: "IncodeErrorContentIconContainer",
30
30
  children: [
31
- h(c ? re : E, { size: 32 }),
31
+ h(c ? ne : D, { size: 32 }),
32
32
  /* @__PURE__ */ h(x, { size: 16 }),
33
33
  /* @__PURE__ */ h(w, {
34
34
  ref: l,
@@ -51,7 +51,7 @@ var O = ({ title: t, description: n, attemptsRemaining: r, onButtonClick: a, "da
51
51
  children: c ? s("notifications.noAttemptsRemaining") : s("common.attemptsRemaining", { count: r })
52
52
  }),
53
53
  /* @__PURE__ */ h(x, { size: 24 }),
54
- /* @__PURE__ */ h(S, {
54
+ /* @__PURE__ */ h(E, {
55
55
  onClick: a,
56
56
  children: s(c ? "common.continue" : "common.tryAgain")
57
57
  })
@@ -60,7 +60,7 @@ var O = ({ title: t, description: n, attemptsRemaining: r, onButtonClick: a, "da
60
60
  })
61
61
  })
62
62
  });
63
- }, k = "IncodeModalScrollLock", A = "data-incode-modal-initial-focus", j = [
63
+ }, A = "IncodeModalScrollLock", j = "data-incode-modal-initial-focus", M = [
64
64
  "button:not([disabled])",
65
65
  "[href]",
66
66
  "input:not([disabled])",
@@ -68,26 +68,26 @@ var O = ({ title: t, description: n, attemptsRemaining: r, onButtonClick: a, "da
68
68
  "textarea:not([disabled])",
69
69
  "[tabindex]:not([tabindex=\"-1\"])"
70
70
  ].join(", ");
71
- function M(e) {
72
- return Array.from(e.querySelectorAll(j));
73
- }
74
71
  function N(e) {
72
+ return Array.from(e.querySelectorAll(M));
73
+ }
74
+ function oe(e) {
75
75
  try {
76
- return e.matches(j);
76
+ return e.matches(M);
77
77
  } catch {
78
78
  return !1;
79
79
  }
80
80
  }
81
81
  function se(e) {
82
82
  let t = e.querySelector("[autofocus]");
83
- if (t && N(t)) return t;
84
- let n = e.querySelector(`[${A}]`);
83
+ if (t && oe(t)) return t;
84
+ let n = e.querySelector(`[${j}]`);
85
85
  if (n) {
86
- if (N(n)) return n;
87
- let e = n.querySelector(j);
86
+ if (oe(n)) return n;
87
+ let e = n.querySelector(M);
88
88
  if (e) return e;
89
89
  }
90
- return M(e)[0] ?? e;
90
+ return N(e)[0] ?? e;
91
91
  }
92
92
  function ce(e, t) {
93
93
  let [n, r] = p(null);
@@ -109,8 +109,8 @@ function le(e) {
109
109
  i(() => {
110
110
  if (!e) return;
111
111
  let t = document.querySelector(".IncodeComponent");
112
- return (t ?? document.body).classList.add(k), () => {
113
- (t ?? document.body).classList.remove(k);
112
+ return (t ?? document.body).classList.add(A), () => {
113
+ (t ?? document.body).classList.remove(A);
114
114
  };
115
115
  }, [e]);
116
116
  }
@@ -151,7 +151,7 @@ function fe(e, t) {
151
151
  if (e.key !== "Tab") return;
152
152
  let n = t.current;
153
153
  if (!n) return;
154
- let r = M(n);
154
+ let r = N(n);
155
155
  if (r.length === 0 && document.activeElement === n) {
156
156
  e.preventDefault();
157
157
  return;
@@ -224,7 +224,7 @@ function he({ "aria-label": e = "Close", title: t = "Close", class: n, onClick:
224
224
  "aria-label": e,
225
225
  title: t,
226
226
  onClick: o,
227
- children: /* @__PURE__ */ h(ne, {
227
+ children: /* @__PURE__ */ h(te, {
228
228
  height: 32,
229
229
  width: 32,
230
230
  fillColor: "var(--icon-neutral-300)"
@@ -275,7 +275,7 @@ function xe({ children: e, class: t, orientation: r = "vertical" }) {
275
275
  role: "group",
276
276
  children: e
277
277
  });
278
- s.push(n(c) && r === 0 ? o(c, { [A]: "" }) : c);
278
+ s.push(n(c) && r === 0 ? o(c, { [j]: "" }) : c);
279
279
  }
280
280
  return /* @__PURE__ */ h("div", {
281
281
  class: y(i, t),
@@ -336,7 +336,7 @@ function R({ animationData: e, loop: t = !0, autoplay: n = !0, reverse: r = !1,
336
336
  }
337
337
  //#endregion
338
338
  //#region src/shared/baseTutorial/baseTutorial.tsx
339
- var z = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle: i, onContinue: a, buttonText: o, disclaimerText: s, isLoading: c }) => /* @__PURE__ */ h(C, {
339
+ var z = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle: i, onContinue: a, buttonText: o, disclaimerText: s, isLoading: c }) => /* @__PURE__ */ h(S, {
340
340
  className: y("IncodeTutorialPage", e),
341
341
  title: n,
342
342
  titleId: r,
@@ -356,7 +356,7 @@ var z = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
356
356
  children: s
357
357
  }), /* @__PURE__ */ h("div", {
358
358
  class: "IncodeBaseTutorialButtonContainer",
359
- children: /* @__PURE__ */ h(S, {
359
+ children: /* @__PURE__ */ h(E, {
360
360
  onClick: a,
361
361
  class: "m-auto max-w-[420px]",
362
362
  isLoading: c,
@@ -2083,7 +2083,7 @@ var z = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
2083
2083
  ].filter(Boolean).join(" ");
2084
2084
  return new DOMParser().parseFromString(n, "text/html").body.textContent || "";
2085
2085
  }, Fe = ({ platform: t }) => {
2086
- let { t: n } = e(), r = D(), i = Ne[t]?.[r] ?? [];
2086
+ let { t: n } = e(), r = O(), i = Ne[t]?.[r] ?? [];
2087
2087
  return /* @__PURE__ */ h("div", {
2088
2088
  class: "IncodeDeniedInstructionsContainer",
2089
2089
  "data-testid": "denied-instructions-mobile",
@@ -2107,7 +2107,7 @@ var z = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
2107
2107
  /* @__PURE__ */ h("div", {
2108
2108
  class: "IncodeDeniedStepTextContainer",
2109
2109
  "aria-hidden": "true",
2110
- children: /* @__PURE__ */ h(ee, {
2110
+ children: /* @__PURE__ */ h(C, {
2111
2111
  className: "IncodeDeniedStepTextSilent",
2112
2112
  children: [
2113
2113
  n(`idv2.permissions.denied.${t.instructionKey}`),
@@ -2148,7 +2148,7 @@ var Le = (e) => {
2148
2148
  ];
2149
2149
  return e === "safari" && t.push(`idv2.permissions.denied.${e}.sixthStep`), t;
2150
2150
  }, Re = (e) => new DOMParser().parseFromString(e, "text/html").body.textContent || "", ze = (e, t) => e(t).split(/(<strong>[^<]+<\/strong>)/g).map((e, t) => e.startsWith("<strong>") && e.endsWith("</strong>") ? /* @__PURE__ */ h("strong", { children: e.slice(8, -9) }, t) : e), Be = () => {
2151
- let { t } = e(), n = Le(D());
2151
+ let { t } = e(), n = Le(O());
2152
2152
  return /* @__PURE__ */ h("div", {
2153
2153
  class: "IncodeDeniedInstructionsContainer",
2154
2154
  "data-testid": "denied-instructions-desktop",
@@ -2161,7 +2161,7 @@ var Le = (e) => {
2161
2161
  children: [/* @__PURE__ */ h("div", {
2162
2162
  class: "IncodeDeniedDesktopStepNumberColumn",
2163
2163
  "aria-hidden": "true",
2164
- children: [/* @__PURE__ */ h(ae, { number: r + 1 }), r < n.length - 1 && /* @__PURE__ */ h("div", { class: "IncodeNumberedStepConnector" })]
2164
+ children: [/* @__PURE__ */ h(ie, { number: r + 1 }), r < n.length - 1 && /* @__PURE__ */ h("div", { class: "IncodeNumberedStepConnector" })]
2165
2165
  }), /* @__PURE__ */ h("p", {
2166
2166
  class: "IncodeDeniedStepText",
2167
2167
  "aria-hidden": "true",
@@ -2171,13 +2171,13 @@ var Le = (e) => {
2171
2171
  })
2172
2172
  });
2173
2173
  }, Ve = () => {
2174
- let e = oe();
2174
+ let e = ae();
2175
2175
  return e === "desktop" ? /* @__PURE__ */ h(Be, {}) : /* @__PURE__ */ h(Fe, { platform: e });
2176
2176
  }, He = ({ onRefresh: t, "data-testid": n, "data-permission-status": r }) => {
2177
2177
  let { t: a } = e(), o = d(null);
2178
2178
  return i(() => {
2179
2179
  o.current?.focus();
2180
- }, []), /* @__PURE__ */ h(C, {
2180
+ }, []), /* @__PURE__ */ h(S, {
2181
2181
  hideHeader: !0,
2182
2182
  hideFooterBranding: !0,
2183
2183
  className: "IncodeDeniedPage",
@@ -2190,7 +2190,7 @@ var Le = (e) => {
2190
2190
  tabIndex: -1,
2191
2191
  children: a("idv2.permissions.denied.title")
2192
2192
  }), /* @__PURE__ */ h(Ve, {})]
2193
- }), /* @__PURE__ */ h(S, {
2193
+ }), /* @__PURE__ */ h(E, {
2194
2194
  onClick: t,
2195
2195
  children: a("idv2.permissions.denied.refreshPage")
2196
2196
  })]
@@ -2212,7 +2212,7 @@ var Le = (e) => {
2212
2212
  let { t: o } = e(), s = d(null);
2213
2213
  return i(() => {
2214
2214
  s.current?.focus();
2215
- }, []), /* @__PURE__ */ h(C, {
2215
+ }, []), /* @__PURE__ */ h(S, {
2216
2216
  className: "IncodeLearnMorePage",
2217
2217
  hideHeader: !0,
2218
2218
  hideFooterBranding: !0,
@@ -2222,7 +2222,7 @@ var Le = (e) => {
2222
2222
  class: "IncodeLearnMoreContainer",
2223
2223
  children: [/* @__PURE__ */ h("div", {
2224
2224
  class: "IncodeLearnMoreTitleContainer",
2225
- children: [/* @__PURE__ */ h(E, { size: 32 }), /* @__PURE__ */ h(w, {
2225
+ children: [/* @__PURE__ */ h(D, { size: 32 }), /* @__PURE__ */ h(w, {
2226
2226
  ref: s,
2227
2227
  tabIndex: -1,
2228
2228
  children: o("idv2.permissions.learnMorePage.title")
@@ -2239,16 +2239,16 @@ var Le = (e) => {
2239
2239
  height: 32,
2240
2240
  width: 32
2241
2241
  })
2242
- }), /* @__PURE__ */ h(ee, { children: o(t.textKey) })]
2242
+ }), /* @__PURE__ */ h(C, { children: o(t.textKey) })]
2243
2243
  }, t.textKey))
2244
2244
  })]
2245
2245
  }), /* @__PURE__ */ h("div", {
2246
2246
  class: "IncodeLearnMoreActions",
2247
- children: [/* @__PURE__ */ h(S, {
2247
+ children: [/* @__PURE__ */ h(E, {
2248
2248
  variant: "link",
2249
2249
  onClick: n,
2250
2250
  children: o("idv2.permissions.learnMorePage.quitProcess")
2251
- }), /* @__PURE__ */ h(S, {
2251
+ }), /* @__PURE__ */ h(E, {
2252
2252
  onClick: t,
2253
2253
  children: o("idv2.permissions.learnMorePage.allowPermissions")
2254
2254
  })]
@@ -2279,18 +2279,18 @@ function Ge({ onAllowPermissions: t, onDenyPermissions: n }) {
2279
2279
  ref: a,
2280
2280
  tabIndex: -1,
2281
2281
  children: r("idv2.permissions.allowPermissionsV2")
2282
- }), /* @__PURE__ */ h(te, {
2282
+ }), /* @__PURE__ */ h(ee, {
2283
2283
  className: "IncodePermissionsBottomSheetSubtitle",
2284
2284
  children: r("idv2.permissions.subtitleV2")
2285
2285
  })]
2286
2286
  }),
2287
2287
  /* @__PURE__ */ h("div", {
2288
2288
  class: "IncodePermissionsBottomSheetActions",
2289
- children: [/* @__PURE__ */ h(S, {
2289
+ children: [/* @__PURE__ */ h(E, {
2290
2290
  variant: "secondary",
2291
2291
  onClick: n,
2292
2292
  children: r("idv2.permissions.dontAllow")
2293
- }), /* @__PURE__ */ h(S, {
2293
+ }), /* @__PURE__ */ h(E, {
2294
2294
  onClick: t,
2295
2295
  children: r("idv2.permissions.allowV2")
2296
2296
  })]
@@ -2302,7 +2302,7 @@ function Ge({ onAllowPermissions: t, onDenyPermissions: n }) {
2302
2302
  //#region src/shared/permissions/camera/permissions.tsx
2303
2303
  var Ke = ({ manager: t, permissionStatus: n }) => {
2304
2304
  let r = v(), { t: i } = e();
2305
- if (n === "requesting") return /* @__PURE__ */ h(C, {
2305
+ if (n === "requesting") return /* @__PURE__ */ h(S, {
2306
2306
  hideHeader: !0,
2307
2307
  hideFooterBranding: !0,
2308
2308
  className: "IncodePermissionsRequestingPage",
@@ -2328,17 +2328,17 @@ var Ke = ({ manager: t, permissionStatus: n }) => {
2328
2328
  children: /* @__PURE__ */ h(I.Content, { children: [
2329
2329
  /* @__PURE__ */ h(I.Close, { onClick: t.close }),
2330
2330
  /* @__PURE__ */ h(I.TitleSection, { children: [/* @__PURE__ */ h(I.Title, { children: i("idv2.permissions.allowPermissionsV2") }), /* @__PURE__ */ h(I.Subtitle, { children: i("idv2.permissions.subtitleV2") })] }),
2331
- /* @__PURE__ */ h(I.Actions, { children: [/* @__PURE__ */ h(S, {
2331
+ /* @__PURE__ */ h(I.Actions, { children: [/* @__PURE__ */ h(E, {
2332
2332
  variant: "secondary",
2333
2333
  onClick: t.goToLearnMore,
2334
2334
  children: i("idv2.permissions.dontAllow")
2335
- }), /* @__PURE__ */ h(S, {
2335
+ }), /* @__PURE__ */ h(E, {
2336
2336
  variant: "primary",
2337
2337
  onClick: t.requestPermission,
2338
2338
  children: i("idv2.permissions.allowV2")
2339
2339
  })] })
2340
2340
  ] })
2341
- }), /* @__PURE__ */ h(C, {
2341
+ }), /* @__PURE__ */ h(S, {
2342
2342
  className: "IncodePermissionsPage",
2343
2343
  hideHeader: !0,
2344
2344
  hideFooterBranding: !0,
@@ -2350,7 +2350,7 @@ var Ke = ({ manager: t, permissionStatus: n }) => {
2350
2350
  let r = d(null);
2351
2351
  return i(() => {
2352
2352
  r.current?.focus();
2353
- }, []), /* @__PURE__ */ h(C, {
2353
+ }, []), /* @__PURE__ */ h(S, {
2354
2354
  className: `IncodeCaptureStatusPage ${n ?? ""}`,
2355
2355
  children: [/* @__PURE__ */ h(x, { size: 40 }), /* @__PURE__ */ h("div", {
2356
2356
  class: "IncodeCaptureStatusContainer",
@@ -2468,7 +2468,7 @@ var Ke = ({ manager: t, permissionStatus: n }) => {
2468
2468
  let { t: i } = e();
2469
2469
  if (!t) return null;
2470
2470
  let { title: a, description: o } = qe[Ye(t) ?? t] ?? Q, s = i(a) ?? a, c = i(n <= 0 ? "notifications.selfieCaptureFailedDescription" : o);
2471
- return /* @__PURE__ */ h(O, {
2471
+ return /* @__PURE__ */ h(k, {
2472
2472
  "data-testid": "face-capture-error-modal",
2473
2473
  title: s,
2474
2474
  description: c,
@@ -2569,7 +2569,7 @@ var Ke = ({ manager: t, permissionStatus: n }) => {
2569
2569
  id: "manual-capture-instructions",
2570
2570
  class: "IncodeSelfieManualCaptureText",
2571
2571
  children: i("selfiev2.manualCapture.instructions")
2572
- }), /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(S, {
2572
+ }), /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(E, {
2573
2573
  ref: r,
2574
2574
  id: "manual-capture-button",
2575
2575
  variant: "link",
@@ -2668,9 +2668,9 @@ var Ke = ({ manager: t, permissionStatus: n }) => {
2668
2668
  className: "IncodeCameraLoading"
2669
2669
  });
2670
2670
  if (a === "detecting") {
2671
- if (s === "offline") return /* @__PURE__ */ h(C, { title: "No internet connection" });
2671
+ if (s === "offline") return /* @__PURE__ */ h(S, { title: "No internet connection" });
2672
2672
  let e = () => f ? "capturing" : s === "detecting" ? "idle" : s === "getReady" ? "loading" : s === "success" ? "success" : s === "error" ? "error" : "idle";
2673
- return /* @__PURE__ */ h(C, {
2673
+ return /* @__PURE__ */ h(S, {
2674
2674
  "data-testid": "capture-container",
2675
2675
  children: [
2676
2676
  /* @__PURE__ */ h(w, {
@@ -2720,13 +2720,13 @@ var Ke = ({ manager: t, permissionStatus: n }) => {
2720
2720
  ]
2721
2721
  });
2722
2722
  }
2723
- return a === "capturing" ? /* @__PURE__ */ h(C, {
2723
+ return a === "capturing" ? /* @__PURE__ */ h(S, {
2724
2724
  className: "IncodeCaptureCapturingPage",
2725
2725
  title: "Capturing",
2726
2726
  subtitle: "Taking photo...",
2727
2727
  children: /* @__PURE__ */ h("div", {
2728
2728
  class: "IncodeCaptureCapturingActions",
2729
- children: /* @__PURE__ */ h(S, {
2729
+ children: /* @__PURE__ */ h(E, {
2730
2730
  isLoading: !0,
2731
2731
  children: "Capturing..."
2732
2732
  })
@@ -2742,7 +2742,7 @@ var Ke = ({ manager: t, permissionStatus: n }) => {
2742
2742
  t.retryCapture(), m(!1);
2743
2743
  }
2744
2744
  }) : a === "success" ? /* @__PURE__ */ h(Z, {
2745
- icon: /* @__PURE__ */ h(ie, { size: 64 }),
2745
+ icon: /* @__PURE__ */ h(re, { size: 64 }),
2746
2746
  title: g("idv2.capture.processing.success")
2747
2747
  }) : null;
2748
2748
  }, rt = ({ stream: e, mirrored: t }) => {
@@ -2760,7 +2760,7 @@ var Ke = ({ manager: t, permissionStatus: n }) => {
2760
2760
  }, it = ({ manager: t }) => {
2761
2761
  let { t: n } = e(), [r, a] = p(!1), [o, s] = p(null);
2762
2762
  return i(() => {
2763
- import("./selfieTutorial-6N-Fb6dA.js").then((e) => {
2763
+ import("./selfieTutorial-BZFLHPco.js").then((e) => {
2764
2764
  s(e.default);
2765
2765
  });
2766
2766
  }, []), o ? /* @__PURE__ */ h(z, {
@@ -2778,4 +2778,4 @@ var Ke = ({ manager: t, permissionStatus: n }) => {
2778
2778
  }) : null;
2779
2779
  };
2780
2780
  //#endregion
2781
- export { R as a, z as i, nt as n, I as o, Ke as r, O as s, it as t };
2781
+ export { R as a, z as i, nt as n, I as o, Ke as r, k as s, it as t };
@@ -0,0 +1,62 @@
1
+ import { CustomModuleCallback } from '@incodetech/core/workflow';
2
+ import { FC } from 'preact/compat';
3
+ import { FinishStatus } from '@incodetech/core/flow';
4
+ import { WasmConfig } from '@incodetech/core/wasm';
5
+
6
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
7
+ /**
8
+ * Module configuration required to render the flow.
9
+ * For Web Components, this is typically assigned via `element.config = ...`.
10
+ */
11
+ config?: TConfig;
12
+ /**
13
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
14
+ */
15
+ manager?: TManager;
16
+ /**
17
+ * Callback invoked when the module completes successfully.
18
+ * @param result - Optional result data from the module completion
19
+ */
20
+ onFinish?: (result?: TResult) => void;
21
+ /**
22
+ * Callback invoked when a fatal module error occurs.
23
+ */
24
+ onError?: (error: string | undefined) => void;
25
+ };
26
+
27
+ export declare const IncodeWorkflow: FC<IncodeWorkflowProps>;
28
+
29
+ declare type IncodeWorkflowProps = IncodeModuleProps<WorkflowComponentConfig, FinishStatus>;
30
+
31
+ declare type SpinnerConfig = {
32
+ title?: string;
33
+ subtitle?: string;
34
+ size?: SpinnerSize;
35
+ };
36
+
37
+ declare type SpinnerSize = 'small' | 'medium' | 'large';
38
+
39
+ export declare type WorkflowComponentConfig = {
40
+ apiURL: string;
41
+ token: string;
42
+ lang?: string;
43
+ disableDashboardTheme?: boolean;
44
+ wasmConfig?: WasmConfig | false;
45
+ spinnerConfig?: SpinnerConfig;
46
+ customModuleCallback?: CustomModuleCallback;
47
+ interviewId?: string;
48
+ isDesktop?: boolean;
49
+ /** Authentication hint for AUTHENTICATION module. Required when workflow includes face authentication. */
50
+ authHint?: string;
51
+ onModuleLoading?: (moduleKey: string) => void;
52
+ onModuleLoaded?: (moduleKey: string) => void;
53
+ };
54
+
55
+ export { }
56
+
57
+ declare global {
58
+ interface HTMLElementTagNameMap {
59
+ 'incode-workflow': HTMLElement & IncodeModuleProps<WorkflowComponentConfig,
60
+ FinishStatus>;
61
+ }
62
+ }
@@ -1,5 +1,5 @@
1
1
  import { a as e, v as t } from "./vendor-preact-D6SntenC.js";
2
- import { n } from "./loadingIcon-DEN5B0ju.js";
2
+ import { n } from "./loadingIcon-B3xEpDvA.js";
3
3
  //#region src/shared/typography/typography.tsx
4
4
  var r = e(({ children: e, className: n, ...r }, i) => /* @__PURE__ */ t("h2", {
5
5
  ref: i,
@@ -0,0 +1 @@
1
+ import "./typography-R9HuMYSQ.js";