@incodetech/web 0.0.0-dev-20260423-6581cc6 → 0.0.0-dev-20260423-2678250

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 (83) hide show
  1. package/dist/{addressAutocomplete-C0rg-23i.js → addressAutocomplete-BnXqjo3c.js} +3 -3
  2. package/dist/ae-signature/ae-signature.es.js +1 -1
  3. package/dist/antifraud/antifraud.es.js +1 -1
  4. package/dist/authentication/authentication.es.js +2 -2
  5. package/dist/consent/consent.es.js +48 -41
  6. package/dist/consent/styles.css +4 -0
  7. package/dist/countrySelector-CITUWfI7.js +52 -0
  8. package/dist/cross-document-data-match/cross-document-data-match.es.js +1 -1
  9. package/dist/curp-validation/curp-validation.es.js +2 -2
  10. package/dist/{customFields-BQhp4eVK.js → customFields-D7JzF2v_.js} +3 -3
  11. package/dist/{customWatchlist-DJFHrdK_.js → customWatchlist-BSo5YDZA.js} +3 -3
  12. package/dist/{documentCapture-dV5w2q6j.js → documentCapture-BDiV75I-.js} +4 -4
  13. package/dist/ekyb/ekyb.es.js +1 -1
  14. package/dist/ekybModule-CG0oDDSI.js +2 -0
  15. package/dist/{ekybModule-DVHQRXLR.js → ekybModule-DvKrNQHb.js} +40 -83
  16. package/dist/ekyc/ekyc.es.js +1 -1
  17. package/dist/{ekycModule-B6hOb8BT.js → ekycModule-Bb686qen.js} +5 -5
  18. package/dist/ekycModule-Cio7auBr.js +2 -0
  19. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  20. package/dist/{electronic-signature-BBwXqLVL.js → electronic-signature-HRw18Mp7.js} +3 -3
  21. package/dist/email/email.es.js +4 -4
  22. package/dist/{extensibility-DwB1sE4-.js → extensibility-DD-UncEc.js} +19 -19
  23. package/dist/extensibility.es.js +8 -8
  24. package/dist/face-match/face-match.es.js +1 -1
  25. package/dist/{faceMatch-h23LiePK.js → faceMatch-DIpmVwN7.js} +3 -3
  26. package/dist/faceMatch-eE-4h0i2.js +2 -0
  27. package/dist/flow/flow.es.js +14 -5
  28. package/dist/flow/styles.css +70 -0
  29. package/dist/{formField-ChZHjiF_.js → formField-3l0U7wek.js} +1 -1
  30. package/dist/geolocation/geolocation.es.js +2 -2
  31. package/dist/governmentValidation/governmentValidation.es.js +3 -3
  32. package/dist/{homeScreen-5NDOMzWt.js → homeScreen-DJDHFnIu.js} +1 -1
  33. package/dist/{i18n-D6pCC7RL.js → i18n-BnVa5Y-_.js} +1 -1
  34. package/dist/id/id.es.js +9 -9
  35. package/dist/identity-reuse/identity-reuse.es.js +2 -2
  36. package/dist/{incodeComponent-BWl9Ashv.js → incodeComponent-DEt7nOim.js} +1 -1
  37. package/dist/index.es.js +1 -1
  38. package/dist/mandatoryConsent-CBH0-kUV.js +99 -0
  39. package/dist/{otpInput-B2pNOgjj.js → otpInput-mIxWLuT4.js} +1 -1
  40. package/dist/phone/phone.es.js +3 -3
  41. package/dist/{processing-xR2O8tqC.js → processing-CfA0-82J.js} +1 -1
  42. package/dist/qe-signature/qe-signature.es.js +1 -1
  43. package/dist/{redirectToMobile-BpPALx-s.js → redirectToMobile-o24bjaIX.js} +4 -4
  44. package/dist/selfie/selfie.es.js +5 -5
  45. package/dist/{setup-ChZeqzsD.js → setup-CcB4rvjv.js} +1 -1
  46. package/dist/signature/signature.es.js +2 -2
  47. package/dist/{transitionSpinner-sh3UfuCy.js → transitionSpinner-DLUM_WN2.js} +1 -1
  48. package/dist/{tutorial-ULGaPLFr.js → tutorial-D6avi30-.js} +4 -4
  49. package/dist/types/watchlist-for-business/styles.d.ts +1 -0
  50. package/dist/{useModuleLoader-DprFvjzr.js → useModuleLoader-L4CQt8SX.js} +13 -11
  51. package/dist/{verificationResult-D_fuTOjh.js → verificationResult-Djajo4_j.js} +1 -1
  52. package/dist/watchlist/watchlist.es.js +3 -3
  53. package/dist/watchlist-for-business/styles.css +16 -0
  54. package/dist/watchlistForBusiness-BUkAxhsg.js +73 -0
  55. package/dist/workflow/styles.css +4 -0
  56. package/dist/workflow/workflow.es.js +5 -5
  57. package/package.json +2 -2
  58. package/dist/ekybModule-9ItM6M0D.js +0 -2
  59. package/dist/ekycModule-Saca6O0V.js +0 -2
  60. package/dist/faceMatch-DebacUAf.js +0 -2
  61. package/dist/mandatoryConsent-DjDUkh7u.js +0 -94
  62. /package/dist/{aligndevicelottie-Ckx7VMij.js → aligndevicelottie-m1gBGZsQ.js} +0 -0
  63. /package/dist/{back-horizontal-hint-DZTqMchm.js → back-horizontal-hint-DUuojsev.js} +0 -0
  64. /package/dist/{back-tutorial-CfZo_5_a.js → back-tutorial-DMUliF5W.js} +0 -0
  65. /package/dist/{back-vertical-hint-7b5j6crH.js → back-vertical-hint-CX_hCJhV.js} +0 -0
  66. /package/dist/{backdevicelottie-kSYQvOB2.js → backdevicelottie-WEvEwLBA.js} +0 -0
  67. /package/dist/{blurdevicelottie-CRodU0QQ.js → blurdevicelottie-BNBU2EIM.js} +0 -0
  68. /package/dist/{browser-ponyfill-Dqca0y49.js → browser-ponyfill-Dxc09_1M.js} +0 -0
  69. /package/dist/{flip-animation-D9h4Ifyt.js → flip-animation-Tm2zxXjs.js} +0 -0
  70. /package/dist/{front-horizontal-hint-CjqueM1o.js → front-horizontal-hint-2RcQjgHE.js} +0 -0
  71. /package/dist/{front-vertical-hint-B8QawRvG.js → front-vertical-hint-CRhiWbkP.js} +0 -0
  72. /package/dist/{frontdevicelottie-DJwmOur1.js → frontdevicelottie-BtbZEtwd.js} +0 -0
  73. /package/dist/{glaredevicelottie-D7GrBqcu.js → glaredevicelottie-CGQ0DCXc.js} +0 -0
  74. /package/dist/{id-laser-h-DJUp2dKc.js → id-laser-h-oGOFXEpO.js} +0 -0
  75. /package/dist/{id-laser-v-DELJk1wH.js → id-laser-v-DfWJik9l.js} +0 -0
  76. /package/dist/{id-tutorial-Cca06We2.js → id-tutorial-BVIpezZ1.js} +0 -0
  77. /package/dist/{passport-horizontal-hint-C3rzuTQF.js → passport-horizontal-hint-CAqrHNYZ.js} +0 -0
  78. /package/dist/{passport-tutorial-CegQ4NU1.js → passport-tutorial-DhEHJZeD.js} +0 -0
  79. /package/dist/{passport-vertical-hint-VCNNxHCI.js → passport-vertical-hint-BHH9yd1n.js} +0 -0
  80. /package/dist/{phoneInput-DnrS2SON.js → phoneInput-LMlmFvJD.js} +0 -0
  81. /package/dist/{selfieTutorial-B4JLseml.js → selfieTutorial-D8I_4Oam.js} +0 -0
  82. /package/dist/{statusPage-D33mVXKU.js → statusPage-D7dFp1u5.js} +0 -0
  83. /package/dist/{tabs-BMnWocEX.js → tabs-Iu2gptzB.js} +0 -0
@@ -1,8 +1,8 @@
1
- import { n as e } from "./i18n-D6pCC7RL.js";
1
+ import { n as e } from "./i18n-BnVa5Y-_.js";
2
2
  import { _ as t, h as n, l as r, p as i, v as a } from "./vendor-preact-D6SntenC.js";
3
- import { r as o } from "./incodeComponent-BWl9Ashv.js";
3
+ import { r as o } from "./incodeComponent-DEt7nOim.js";
4
4
  import { t as s } from "./inputComposed-C6nVSZj3.js";
5
- import { n as c } from "./formField-ChZHjiF_.js";
5
+ import { n as c } from "./formField-3l0U7wek.js";
6
6
  import { t as l } from "./bottomSheet-CGGwLnNk.js";
7
7
  //#region src/shared/addressAutocomplete/addressAutocomplete.tsx
8
8
  var u = ({ label: u, value: d, error: f, errorParams: p, suggestions: m, readonly: h, optional: g, onChange: _, onSearch: v, onSelect: y, onBlur: b }) => {
@@ -1,5 +1,5 @@
1
1
  import { v as e } from "../vendor-preact-D6SntenC.js";
2
- import { n as t } from "../electronic-signature-BBwXqLVL.js";
2
+ import { n as t } from "../electronic-signature-HRw18Mp7.js";
3
3
  import { t as n } from "../incodeModule-DcwjDRyJ.js";
4
4
  //#region src/modules/ae-signature/ae-signature.tsx
5
5
  var r = ({ config: n, onFinish: r, onError: i }) => /* @__PURE__ */ e(t, {
@@ -1,5 +1,5 @@
1
1
  import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
2
- import { o as n, t as r } from "../incodeComponent-BWl9Ashv.js";
2
+ import { o as n, t as r } from "../incodeComponent-DEt7nOim.js";
3
3
  import { t as i } from "../spinner-DyRQfsz_.js";
4
4
  import { t as a } from "../incodeModule-DcwjDRyJ.js";
5
5
  import { createAntifraudManager as o } from "@incodetech/core/antifraud";
@@ -1,6 +1,6 @@
1
1
  import { v as e } from "../vendor-preact-D6SntenC.js";
2
- import { o as t, t as n } from "../incodeComponent-BWl9Ashv.js";
3
- import { n as r, r as i, t as a } from "../tutorial-ULGaPLFr.js";
2
+ import { o as t, t as n } from "../incodeComponent-DEt7nOim.js";
3
+ import { n as r, r as i, t as a } from "../tutorial-D6avi30-.js";
4
4
  import { t as o } from "../incodeModule-DcwjDRyJ.js";
5
5
  import { createAuthenticationManager as s } from "@incodetech/core/authentication";
6
6
  //#region src/modules/authentication/authentication.tsx
@@ -1,52 +1,59 @@
1
- import { n as e } from "../i18n-D6pCC7RL.js";
2
- import { v as t } from "../vendor-preact-D6SntenC.js";
3
- import { o as n, t as r } from "../incodeComponent-BWl9Ashv.js";
4
- import { t as i } from "../page-D5Mt-0zn.js";
5
- import { t as a } from "../transitionSpinner-sh3UfuCy.js";
6
- import { t as o } from "../button-4-ToV5B_.js";
7
- import { t as s } from "../checkbox-DbHg0n25.js";
8
- import { t as c } from "../incodeModule-DcwjDRyJ.js";
9
- import { t as l } from "../richText-DPdexfgN.js";
10
- import { createConsentManager as u } from "@incodetech/core/consent";
1
+ import { n as e } from "../i18n-BnVa5Y-_.js";
2
+ import { _ as t, l as n, v as r } from "../vendor-preact-D6SntenC.js";
3
+ import { o as i, t as a } from "../incodeComponent-DEt7nOim.js";
4
+ import { t as o } from "../page-D5Mt-0zn.js";
5
+ import { n as s } from "../typography-B7nxauEL.js";
6
+ import { t as c } from "../transitionSpinner-DLUM_WN2.js";
7
+ import { t as l } from "../button-4-ToV5B_.js";
8
+ import { t as u } from "../checkbox-DbHg0n25.js";
9
+ import { t as d } from "../incodeModule-DcwjDRyJ.js";
10
+ import { t as f } from "../richText-DPdexfgN.js";
11
+ import { createConsentManager as p } from "@incodetech/core/consent";
11
12
  //#region src/modules/consent/consent.tsx
12
- var d = ({ config: r, manager: c, onFinish: d, onError: f }) => {
13
- let { t: p } = e(), [m, h] = n(() => {
14
- if (c) return c;
15
- if (!r) throw Error("Consent config is required");
16
- return u({ config: r });
17
- }, { manageLifecycle: !c });
18
- return m.status === "finished" ? (d?.(), null) : m.status === "error" ? (f?.(m.error), null) : m.status === "idle" || m.status === "loading" ? /* @__PURE__ */ t(a, { hideText: !0 }) : /* @__PURE__ */ t(i, {
13
+ var m = ({ config: a, manager: d, onFinish: m, onError: h }) => {
14
+ let { t: g } = e(), _ = n(null), [v, y] = i(() => {
15
+ if (d) return d;
16
+ if (!a) throw Error("Consent config is required");
17
+ return p({ config: a });
18
+ }, { manageLifecycle: !d });
19
+ return t(() => {
20
+ v.status === "display" && _.current?.focus();
21
+ }, [v.status]), v.status === "finished" ? (m?.(), null) : v.status === "error" ? (h?.(v.error), null) : v.status === "idle" || v.status === "loading" ? /* @__PURE__ */ r(c, { hideText: !0 }) : /* @__PURE__ */ r(o, {
19
22
  className: "IncodeConsentPage",
20
23
  hideFooterBranding: !0,
21
24
  hideHeader: !0,
22
- children: /* @__PURE__ */ t("div", {
25
+ children: /* @__PURE__ */ r("div", {
23
26
  class: "IncodeConsentContent",
24
- children: [/* @__PURE__ */ t("div", {
27
+ children: [/* @__PURE__ */ r("div", {
25
28
  class: "IncodeConsentBody",
26
29
  children: [
27
- /* @__PURE__ */ t("h1", {
28
- class: "IncodeConsentTitle",
29
- children: m.title
30
+ /* @__PURE__ */ r(s, {
31
+ ref: _,
32
+ className: "IncodeConsentTitle",
33
+ tabIndex: -1,
34
+ children: v.title
30
35
  }),
31
- /* @__PURE__ */ t(l, {
32
- content: m.richText,
36
+ /* @__PURE__ */ r(f, {
37
+ content: v.richText,
33
38
  class: "IncodeRichText"
34
39
  }),
35
- /* @__PURE__ */ t("div", {
40
+ /* @__PURE__ */ r("div", {
36
41
  class: "IncodeConsentCheckboxList",
37
- children: m.checkboxes.map((e) => /* @__PURE__ */ t(s, {
42
+ role: "group",
43
+ "aria-label": g("biometricConsent.consentOptions"),
44
+ children: v.checkboxes.map((e) => /* @__PURE__ */ r(u, {
38
45
  id: `consent-checkbox-${e.id}`,
39
46
  class: "IncodeConsentCheckbox",
40
47
  size: "s",
41
48
  checked: e.checked,
42
49
  required: e.required,
43
- onChange: () => h.toggleCheckbox(e.id),
44
- label: /* @__PURE__ */ t("span", {
50
+ onChange: () => y.toggleCheckbox(e.id),
51
+ label: /* @__PURE__ */ r("span", {
45
52
  class: "IncodeConsentCheckboxLabel",
46
53
  onClick: (e) => {
47
54
  e.target.closest("a") && e.stopPropagation();
48
55
  },
49
- children: /* @__PURE__ */ t(l, {
56
+ children: /* @__PURE__ */ r(f, {
50
57
  content: e.label,
51
58
  class: "IncodeRichText",
52
59
  disallowedTags: ["img"]
@@ -55,21 +62,21 @@ var d = ({ config: r, manager: c, onFinish: d, onError: f }) => {
55
62
  }, e.id))
56
63
  })
57
64
  ]
58
- }), /* @__PURE__ */ t(o, {
65
+ }), /* @__PURE__ */ r(l, {
59
66
  "data-testid": "consent-submit",
60
- onClick: () => h.submit(),
61
- disabled: !m.canSubmit,
62
- isLoading: m.status === "submitting",
63
- children: p("biometricConsent.button.continue")
67
+ onClick: () => y.submit(),
68
+ disabled: !v.canSubmit,
69
+ isLoading: v.status === "submitting",
70
+ children: g("biometricConsent.button.continue")
64
71
  })]
65
72
  })
66
- });
67
- }, f = ({ config: e, manager: n, onFinish: i, onError: a }) => /* @__PURE__ */ t(r, { children: e ? /* @__PURE__ */ t(d, {
73
+ }, "ready");
74
+ }, h = ({ config: e, manager: t, onFinish: n, onError: i }) => /* @__PURE__ */ r(a, { children: e ? /* @__PURE__ */ r(m, {
68
75
  config: e,
69
- manager: n,
70
- onFinish: i,
71
- onError: a
76
+ manager: t,
77
+ onFinish: n,
78
+ onError: i
72
79
  }) : null });
73
- c(f, "incode-consent");
80
+ d(h, "incode-consent");
74
81
  //#endregion
75
- export { f as Consent };
82
+ export { h as Consent };
@@ -99,6 +99,10 @@
99
99
  display: inline;
100
100
  }
101
101
 
102
+ .IncodeConsentPage .IncodeConsentCheckboxLabel .IncodeRichText .markup a, .IncodeConsentPage .IncodeConsentCheckboxLabel .IncodeRichText a {
103
+ color: var(--color-surface-brand-600, var(--surface-brand-600-static));
104
+ }
105
+
102
106
  .IncodeConsentPage .IncodeCheckboxRequired {
103
107
  margin-left: var(--spacing-0, var(--spacing-none, 0px));
104
108
  color: var(--color-text-body-primary, var(--text-body-800-primary));
@@ -0,0 +1,52 @@
1
+ import { n as e } from "./i18n-BnVa5Y-_.js";
2
+ import { d as t, v as n } from "./vendor-preact-D6SntenC.js";
3
+ import { t as r } from "./dropdownComposed-CjD4OMiN.js";
4
+ import { DEV_ONLY_COUNTRIES as i, SUPPORTED_COUNTRIES as a } from "@incodetech/core/ekyb";
5
+ //#region src/modules/ekyb/countrySelector.tsx
6
+ function o(e) {
7
+ return [...e.toUpperCase()].map((e) => String.fromCodePoint(127462 + e.charCodeAt(0) - 65)).join("");
8
+ }
9
+ var s = {
10
+ BR: "Brazil",
11
+ CM: "Cameroon",
12
+ CN: "China",
13
+ FR: "France",
14
+ DE: "Germany",
15
+ IL: "Israel",
16
+ IT: "Italy",
17
+ KE: "Kenya",
18
+ MX: "Mexico",
19
+ NG: "Nigeria",
20
+ ES: "Spain",
21
+ GB: "United Kingdom",
22
+ US: "USA"
23
+ };
24
+ function c(e) {
25
+ let t = s[e] ?? e;
26
+ return {
27
+ value: e,
28
+ label: `${o(e)} ${t}`,
29
+ ariaLabel: t
30
+ };
31
+ }
32
+ function l() {
33
+ if (typeof window > "u") return !1;
34
+ let { hostname: e } = window.location;
35
+ return e === "localhost" || e.includes("stage") || e.includes("demo");
36
+ }
37
+ var u = ({ value: o, onChange: s }) => {
38
+ let { t: u } = e(), d = t(() => (l() ? [...a, ...i] : [...a]).map(c).sort((e, t) => e.label.localeCompare(t.label)), []);
39
+ return /* @__PURE__ */ n("div", {
40
+ className: "IncodeEkybCountrySelector",
41
+ children: /* @__PURE__ */ n(r, {
42
+ id: "ekyb-country",
43
+ label: u("ekyb.country"),
44
+ value: o,
45
+ options: d,
46
+ onChange: s,
47
+ "data-testid": "ekyb-country-selector"
48
+ })
49
+ });
50
+ };
51
+ //#endregion
52
+ export { u as t };
@@ -1,5 +1,5 @@
1
1
  import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
2
- import { o as n, t as r } from "../incodeComponent-BWl9Ashv.js";
2
+ import { o as n, t as r } from "../incodeComponent-DEt7nOim.js";
3
3
  import { t as i } from "../spinner-DyRQfsz_.js";
4
4
  import { t as a } from "../incodeModule-DcwjDRyJ.js";
5
5
  import { createCrossDocumentDataMatchManager as o } from "@incodetech/core/cross-document-data-match";
@@ -1,6 +1,6 @@
1
- import { n as e } from "../i18n-D6pCC7RL.js";
1
+ import { n as e } from "../i18n-BnVa5Y-_.js";
2
2
  import { S as t, v as n } from "../vendor-preact-D6SntenC.js";
3
- import { o as r, t as i } from "../incodeComponent-BWl9Ashv.js";
3
+ import { o as r, t as i } from "../incodeComponent-DEt7nOim.js";
4
4
  import { t as a } from "../spacer-DCljE53A.js";
5
5
  import { t as o } from "../page-D5Mt-0zn.js";
6
6
  import { t as s } from "../spinner-DyRQfsz_.js";
@@ -1,6 +1,6 @@
1
- import { n as e } from "./i18n-D6pCC7RL.js";
1
+ import { n as e } from "./i18n-BnVa5Y-_.js";
2
2
  import { _ as t, l as n, p as r, v as i } from "./vendor-preact-D6SntenC.js";
3
- import { o as a, t as o } from "./incodeComponent-BWl9Ashv.js";
3
+ import { o as a, t as o } from "./incodeComponent-DEt7nOim.js";
4
4
  import { t as s } from "./spacer-DCljE53A.js";
5
5
  import { t as c } from "./page-D5Mt-0zn.js";
6
6
  import { t as l } from "./loadingIcon-wTrHZMGC.js";
@@ -10,7 +10,7 @@ import { t as f } from "./inputComposed-C6nVSZj3.js";
10
10
  import { t as p } from "./checkbox-DbHg0n25.js";
11
11
  import { t as m } from "./dateInputComposed-ChNk6tA6.js";
12
12
  import { t as h } from "./incodeModule-DcwjDRyJ.js";
13
- import { t as g } from "./statusPage-D33mVXKU.js";
13
+ import { t as g } from "./statusPage-D7dFp1u5.js";
14
14
  import { createCustomFieldsManager as _ } from "@incodetech/core/custom-fields";
15
15
  //#region src/modules/custom-fields/customFields.tsx
16
16
  var v = {
@@ -1,10 +1,10 @@
1
- import { n as e } from "./i18n-D6pCC7RL.js";
1
+ import { n as e } from "./i18n-BnVa5Y-_.js";
2
2
  import { _ as t, l as n, v as r } from "./vendor-preact-D6SntenC.js";
3
- import { o as i, t as a } from "./incodeComponent-BWl9Ashv.js";
3
+ import { o as i, t as a } from "./incodeComponent-DEt7nOim.js";
4
4
  import { t as o } from "./loadingIcon-wTrHZMGC.js";
5
5
  import { t as s } from "./successIcon-C4GI_9SU.js";
6
6
  import { t as c } from "./incodeModule-DcwjDRyJ.js";
7
- import { t as l } from "./statusPage-D33mVXKU.js";
7
+ import { t as l } from "./statusPage-D7dFp1u5.js";
8
8
  import { createCustomWatchlistManager as u } from "@incodetech/core/custom-watchlist";
9
9
  //#region src/modules/custom-watchlist/customWatchlist.tsx
10
10
  var d = ({ onFinish: a }) => {
@@ -1,14 +1,14 @@
1
- import { n as e } from "./i18n-D6pCC7RL.js";
1
+ import { n as e } from "./i18n-BnVa5Y-_.js";
2
2
  import { S as t, _ as n, h as r, l as i, m as a, p as o, v as s } from "./vendor-preact-D6SntenC.js";
3
- import { o as c, r as l, t as u } from "./incodeComponent-BWl9Ashv.js";
3
+ import { o as c, r as l, t as u } from "./incodeComponent-DEt7nOim.js";
4
4
  import { t as d } from "./spacer-DCljE53A.js";
5
5
  import { t as f } from "./page-D5Mt-0zn.js";
6
- import { _ as p, c as m, d as h, f as g, l as _, u as v, v as y } from "./extensibility-DwB1sE4-.js";
6
+ import { _ as p, c as m, d as h, f as g, l as _, u as v, v as y } from "./extensibility-DD-UncEc.js";
7
7
  import { n as b } from "./loadingIcon-wTrHZMGC.js";
8
8
  import { t as x } from "./spinner-DyRQfsz_.js";
9
9
  import { t as S } from "./button-4-ToV5B_.js";
10
10
  import { a as C, f as w, r as T } from "./icons-D3J-STBD.js";
11
- import { o as E } from "./tutorial-ULGaPLFr.js";
11
+ import { o as E } from "./tutorial-D6avi30-.js";
12
12
  import { t as D } from "./successIcon-C4GI_9SU.js";
13
13
  import { t as O } from "./bottomSheet-CGGwLnNk.js";
14
14
  import { t as k } from "./incodeModule-DcwjDRyJ.js";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../ekybModule-DVHQRXLR.js";
1
+ import { t as e } from "../ekybModule-DvKrNQHb.js";
2
2
  export { e as EkybModule };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./ekybModule-DvKrNQHb.js";
2
+ export { e as EkybModule };
@@ -1,63 +1,20 @@
1
- import { n as e } from "./i18n-D6pCC7RL.js";
1
+ import { n as e } from "./i18n-BnVa5Y-_.js";
2
2
  import { S as t, _ as n, d as r, h as i, l as a, p as o, v as s } from "./vendor-preact-D6SntenC.js";
3
- import { i as c, o as l, t as u } from "./incodeComponent-BWl9Ashv.js";
3
+ import { i as c, o as l, t as u } from "./incodeComponent-DEt7nOim.js";
4
4
  import { t as d } from "./page-D5Mt-0zn.js";
5
5
  import { t as f } from "./spinner-DyRQfsz_.js";
6
6
  import { t as p } from "./button-4-ToV5B_.js";
7
- import { t as m } from "./verificationResult-D_fuTOjh.js";
7
+ import { t as m } from "./verificationResult-Djajo4_j.js";
8
8
  import { t as h } from "./inputComposed-C6nVSZj3.js";
9
- import { n as g, t as _ } from "./formField-ChZHjiF_.js";
9
+ import { n as g, t as _ } from "./formField-3l0U7wek.js";
10
10
  import { t as v } from "./dropdownComposed-CjD4OMiN.js";
11
11
  import { t as y } from "./optionAccessibleLabel-BReW7dz0.js";
12
12
  import { t as b } from "./incodeModule-DcwjDRyJ.js";
13
- import { t as x } from "./addressAutocomplete-C0rg-23i.js";
14
- import { DEV_ONLY_COUNTRIES as S, SUPPORTED_COUNTRIES as C, computeEkybDisplayErrors as w, createEkybManager as T } from "@incodetech/core/ekyb";
15
- //#region src/modules/ekyb/countrySelector.tsx
16
- function E(e) {
17
- return [...e.toUpperCase()].map((e) => String.fromCodePoint(127462 + e.charCodeAt(0) - 65)).join("");
18
- }
19
- var D = {
20
- BR: "Brazil",
21
- CM: "Cameroon",
22
- CN: "China",
23
- FR: "France",
24
- DE: "Germany",
25
- IL: "Israel",
26
- IT: "Italy",
27
- KE: "Kenya",
28
- MX: "Mexico",
29
- NG: "Nigeria",
30
- ES: "Spain",
31
- GB: "United Kingdom",
32
- US: "USA"
33
- };
34
- function O(e) {
35
- let t = D[e] ?? e;
36
- return {
37
- value: e,
38
- label: `${E(e)} ${t}`,
39
- ariaLabel: t
40
- };
41
- }
42
- function k() {
43
- if (typeof window > "u") return !1;
44
- let { hostname: e } = window.location;
45
- return e === "localhost" || e.includes("stage") || e.includes("demo");
46
- }
47
- var A = ({ value: t, onChange: n }) => {
48
- let { t: i } = e(), a = r(() => (k() ? [...C, ...S] : [...C]).map(O).sort((e, t) => e.label.localeCompare(t.label)), []);
49
- return /* @__PURE__ */ s("div", {
50
- className: "IncodeEkybCountrySelector",
51
- children: /* @__PURE__ */ s(v, {
52
- id: "ekyb-country",
53
- label: i("ekyb.country"),
54
- value: t,
55
- options: a,
56
- onChange: n,
57
- "data-testid": "ekyb-country-selector"
58
- })
59
- });
60
- }, j = ({ field: t, value: n, error: r, errorParams: i, country: a, onChange: o, onBlur: c }) => {
13
+ import { t as x } from "./addressAutocomplete-BnXqjo3c.js";
14
+ import { t as S } from "./countrySelector-CITUWfI7.js";
15
+ import { computeEkybDisplayErrors as C, createEkybManager as w } from "@incodetech/core/ekyb";
16
+ //#region src/modules/ekyb/fieldInput.tsx
17
+ var T = ({ field: t, value: n, error: r, errorParams: i, country: a, onChange: o, onBlur: c }) => {
61
18
  let { t: l } = e(), u = !t.required, d = l(t.label);
62
19
  if (t.type === "dropdown") {
63
20
  let e = u ? `${d} (${l("common.optional")})` : d;
@@ -93,7 +50,7 @@ var A = ({ value: t, onChange: n }) => {
93
50
  onChange: o,
94
51
  onBlur: c
95
52
  });
96
- }, M = ({ ubos: t, errors: n, errorParams: r, canAddUbo: i, onSetField: a, onBlur: o, onAdd: c, onRemove: l }) => {
53
+ }, E = ({ ubos: t, errors: n, errorParams: r, canAddUbo: i, onSetField: a, onBlur: o, onAdd: c, onRemove: l }) => {
97
54
  let { t: u } = e(), d = (e) => g(u, n[e], r[e]);
98
55
  return t.length === 0 ? null : /* @__PURE__ */ s("div", {
99
56
  className: "IncodeEkybUbos",
@@ -141,8 +98,8 @@ var A = ({ value: t, onChange: n }) => {
141
98
  children: u("ekyb.addAnotherUbo")
142
99
  })]
143
100
  });
144
- }, N = ({ config: t, onFinish: r }) => {
145
- let { t: i } = e(), [a, o] = l(() => T({ config: t }));
101
+ }, D = ({ config: t, onFinish: r }) => {
102
+ let { t: i } = e(), [a, o] = l(() => w({ config: t }));
146
103
  return n(() => {
147
104
  (a.status === "finished" || a.status === "closed") && r?.();
148
105
  }, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ s(m, {
@@ -158,33 +115,33 @@ var A = ({ value: t, onChange: n }) => {
158
115
  }) : a.status === "success" ? /* @__PURE__ */ s(m, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ s(m, {
159
116
  status: "failure",
160
117
  onRetry: () => o.retry()
161
- }) : a.status === "form" ? /* @__PURE__ */ s(I, {
118
+ }) : a.status === "form" ? /* @__PURE__ */ s(A, {
162
119
  state: a,
163
120
  manager: o
164
121
  }) : null;
165
- }, P = new Set([
122
+ }, O = new Set([
166
123
  "street",
167
124
  "houseNo",
168
125
  "addressLine2",
169
126
  "city",
170
127
  "state",
171
128
  "postalCode"
172
- ]), F = [
129
+ ]), k = [
173
130
  "street",
174
131
  "city",
175
132
  "state",
176
133
  "postalCode",
177
134
  "houseNo"
178
- ], I = ({ state: l, manager: u }) => {
179
- let { country: f, fields: m, values: h, errors: g, isValid: _, ubos: v, canAddUbo: y, addressSuggestions: b, submitAttempted: S } = l, { t: C } = e(), T = a(null), E = a(null), D = a(void 0), O = c(T, m.length), [k, N] = o({}), I = i((e) => {
180
- N((t) => t[e] ? t : {
135
+ ], A = ({ state: l, manager: u }) => {
136
+ let { country: f, fields: m, values: h, errors: g, isValid: _, ubos: v, canAddUbo: y, addressSuggestions: b, submitAttempted: w } = l, { t: D } = e(), A = a(null), j = a(null), M = a(void 0), N = c(A, m.length), [P, F] = o({}), I = i((e) => {
137
+ F((t) => t[e] ? t : {
181
138
  ...t,
182
139
  [e]: !0
183
140
  });
184
- }, []), { displayErrors: L, errorParams: R } = r(() => w(g, k, S, f, m), [
141
+ }, []), { displayErrors: L, errorParams: R } = r(() => C(g, P, w, f, m), [
185
142
  g,
186
- k,
187
- S,
143
+ P,
144
+ w,
188
145
  f,
189
146
  m
190
147
  ]), z = i((e) => I(e), [I]), B = i((e, t) => {
@@ -192,10 +149,10 @@ var A = ({ value: t, onChange: n }) => {
192
149
  }, [u, I]), V = i((e, t, n) => {
193
150
  I(`ubo-${e}-${t}`), u.setUboField(e, t, n);
194
151
  }, [u, I]), H = i((e) => {
195
- for (let e of F) I(e);
152
+ for (let e of k) I(e);
196
153
  u.selectAddress(e);
197
154
  }, [u, I]), U = i((e) => {
198
- u.removeUbo(e), N((t) => {
155
+ u.removeUbo(e), F((t) => {
199
156
  let n = {};
200
157
  for (let [r, i] of Object.entries(t)) {
201
158
  let t = r.match(/^ubo-(\d+)-(name|surname)$/);
@@ -212,10 +169,10 @@ var A = ({ value: t, onChange: n }) => {
212
169
  });
213
170
  }, [u]);
214
171
  n(() => {
215
- let e = L.postalCode, t = D.current;
216
- if (D.current = e, !e || t === e) return;
172
+ let e = L.postalCode, t = M.current;
173
+ if (M.current = e, !e || t === e) return;
217
174
  let n = requestAnimationFrame(() => {
218
- let e = E.current;
175
+ let e = j.current;
219
176
  e && (e.querySelector("#postalCode-error") ?? e).scrollIntoView({
220
177
  behavior: "smooth",
221
178
  block: "nearest"
@@ -223,19 +180,19 @@ var A = ({ value: t, onChange: n }) => {
223
180
  });
224
181
  return () => cancelAnimationFrame(n);
225
182
  }, [L.postalCode]);
226
- let W = m.filter((e) => !P.has(e.name)), G = m.filter((e) => P.has(e.name));
183
+ let W = m.filter((e) => !O.has(e.name)), G = m.filter((e) => O.has(e.name));
227
184
  return /* @__PURE__ */ s(d, {
228
- className: `IncodeEkybPage${O ? " IncodeEkybPageScrollable" : ""}`,
229
- title: C("ekyb.title"),
185
+ className: `IncodeEkybPage${N ? " IncodeEkybPageScrollable" : ""}`,
186
+ title: D("ekyb.title"),
230
187
  children: [/* @__PURE__ */ s("div", {
231
- ref: T,
188
+ ref: A,
232
189
  className: "IncodeEkybForm",
233
190
  children: [
234
- /* @__PURE__ */ s(A, {
191
+ /* @__PURE__ */ s(S, {
235
192
  value: f,
236
193
  onChange: (e) => u.setCountry(e)
237
194
  }),
238
- W.map((e) => /* @__PURE__ */ s(j, {
195
+ W.map((e) => /* @__PURE__ */ s(T, {
239
196
  field: e,
240
197
  value: h[e.name] ?? "",
241
198
  error: L[e.name],
@@ -244,7 +201,7 @@ var A = ({ value: t, onChange: n }) => {
244
201
  onChange: B,
245
202
  onBlur: z
246
203
  }, e.name)),
247
- /* @__PURE__ */ s(M, {
204
+ /* @__PURE__ */ s(E, {
248
205
  ubos: v,
249
206
  errors: L,
250
207
  errorParams: R,
@@ -256,7 +213,7 @@ var A = ({ value: t, onChange: n }) => {
256
213
  }),
257
214
  G.length > 0 && /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s("h3", {
258
215
  className: "IncodeEkybSectionHeader",
259
- children: C("ekyb.addressDetails")
216
+ children: D("ekyb.addressDetails")
260
217
  }), G.map((e) => e.name === "street" ? /* @__PURE__ */ s(x, {
261
218
  label: e.label,
262
219
  value: h.street ?? "",
@@ -269,8 +226,8 @@ var A = ({ value: t, onChange: n }) => {
269
226
  onSelect: H,
270
227
  onBlur: () => z("street")
271
228
  }, e.name) : /* @__PURE__ */ s("div", {
272
- ref: e.name === "postalCode" ? E : void 0,
273
- children: /* @__PURE__ */ s(j, {
229
+ ref: e.name === "postalCode" ? j : void 0,
230
+ children: /* @__PURE__ */ s(T, {
274
231
  field: e,
275
232
  value: h[e.name] ?? "",
276
233
  error: L[e.name],
@@ -287,14 +244,14 @@ var A = ({ value: t, onChange: n }) => {
287
244
  onClick: () => u.submit(),
288
245
  disabled: !_,
289
246
  "data-testid": "ekyb-submit",
290
- children: C("ekyb.continue")
247
+ children: D("ekyb.continue")
291
248
  })
292
249
  })]
293
250
  });
294
- }, L = ({ config: e, onFinish: t }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(N, {
251
+ }, j = ({ config: e, onFinish: t }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(D, {
295
252
  config: e,
296
253
  onFinish: t
297
254
  }) : null });
298
- b(L, "incode-ekyb");
255
+ b(j, "incode-ekyb");
299
256
  //#endregion
300
- export { L as t };
257
+ export { j as t };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../ekycModule-B6hOb8BT.js";
1
+ import { t as e } from "../ekycModule-Bb686qen.js";
2
2
  export { e as EkycModule };
@@ -1,18 +1,18 @@
1
- import { n as e } from "./i18n-D6pCC7RL.js";
1
+ import { n as e } from "./i18n-BnVa5Y-_.js";
2
2
  import { _ as t, d as n, h as r, l as i, p as a, v as o } from "./vendor-preact-D6SntenC.js";
3
- import { i as s, o as c, t as l } from "./incodeComponent-BWl9Ashv.js";
3
+ import { i as s, o as c, t as l } from "./incodeComponent-DEt7nOim.js";
4
4
  import { t as u } from "./page-D5Mt-0zn.js";
5
5
  import { t as d } from "./spinner-DyRQfsz_.js";
6
6
  import { t as f } from "./button-4-ToV5B_.js";
7
- import { t as p } from "./verificationResult-D_fuTOjh.js";
8
- import { n as m, t as h } from "./formField-ChZHjiF_.js";
7
+ import { t as p } from "./verificationResult-Djajo4_j.js";
8
+ import { n as m, t as h } from "./formField-3l0U7wek.js";
9
9
  import { t as g } from "./phoneInputComposed-CAqOlbXd.js";
10
10
  import { t as _ } from "./dropdownComposed-CjD4OMiN.js";
11
11
  import { t as v } from "./optionAccessibleLabel-BReW7dz0.js";
12
12
  import { t as y } from "./dateInputComposed-ChNk6tA6.js";
13
13
  import { t as b } from "./radioButtonComposed-CPBFQBXi.js";
14
14
  import { t as x } from "./incodeModule-DcwjDRyJ.js";
15
- import { t as S } from "./addressAutocomplete-C0rg-23i.js";
15
+ import { t as S } from "./addressAutocomplete-BnXqjo3c.js";
16
16
  import { computeEkycDisplayErrors as C, createEkycManager as w } from "@incodetech/core/ekyc";
17
17
  //#region src/modules/ekyc/ekycModule.tsx
18
18
  var T = ({ config: n, onFinish: r }) => {
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./ekycModule-Bb686qen.js";
2
+ export { e as EkycModule };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../electronic-signature-BBwXqLVL.js";
1
+ import { n as e, t } from "../electronic-signature-HRw18Mp7.js";
2
2
  export { t as AeSignature, e as ElectronicSignature };
@@ -1,11 +1,11 @@
1
- import { n as e, t } from "./i18n-D6pCC7RL.js";
1
+ import { n as e, t } from "./i18n-BnVa5Y-_.js";
2
2
  import { _ as n, h as r, l as i, v as a } from "./vendor-preact-D6SntenC.js";
3
- import { o, t as s } from "./incodeComponent-BWl9Ashv.js";
3
+ import { o, t as s } from "./incodeComponent-DEt7nOim.js";
4
4
  import { t as c } from "./page-D5Mt-0zn.js";
5
5
  import { t as l } from "./button-4-ToV5B_.js";
6
6
  import { c as u, r as d } from "./icons-D3J-STBD.js";
7
7
  import { t as f } from "./successIcon-C4GI_9SU.js";
8
- import { t as p } from "./verificationResult-D_fuTOjh.js";
8
+ import { t as p } from "./verificationResult-Djajo4_j.js";
9
9
  import { t as m } from "./checkbox-DbHg0n25.js";
10
10
  import { t as h } from "./incodeModule-DcwjDRyJ.js";
11
11
  import { createElectronicSignatureManager as g } from "@incodetech/core/electronic-signature";
@@ -1,12 +1,12 @@
1
- import { n as e } from "../i18n-D6pCC7RL.js";
1
+ import { n as e } from "../i18n-BnVa5Y-_.js";
2
2
  import { _ as t, p as n, v as r } from "../vendor-preact-D6SntenC.js";
3
- import { o as i, t as a } from "../incodeComponent-BWl9Ashv.js";
3
+ import { o as i, t as a } from "../incodeComponent-DEt7nOim.js";
4
4
  import { t as o } from "../spacer-DCljE53A.js";
5
5
  import { t as s } from "../page-D5Mt-0zn.js";
6
- import "../extensibility-DwB1sE4-.js";
6
+ import "../extensibility-DD-UncEc.js";
7
7
  import { t as c } from "../button-4-ToV5B_.js";
8
8
  import { t as l } from "../inputComposed-C6nVSZj3.js";
9
- import { t as u } from "../otpInput-B2pNOgjj.js";
9
+ import { t as u } from "../otpInput-mIxWLuT4.js";
10
10
  import { t as d } from "../incodeModule-DcwjDRyJ.js";
11
11
  import { createEmailManager as f } from "@incodetech/core/email";
12
12
  //#region src/modules/email/emailInput.tsx