@incodetech/web 0.0.0-dev-20260422-96fafd7 → 0.0.0-dev-20260422-0e68af3

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 (91) hide show
  1. package/dist/{addressAutocomplete-DgObOJ6o.js → addressAutocomplete-BCTe9jwj.js} +4 -4
  2. package/dist/ae-signature/ae-signature.es.js +2 -2
  3. package/dist/antifraud/antifraud.es.js +2 -2
  4. package/dist/authentication/authentication.es.js +3 -3
  5. package/dist/{bottomSheet-D7Bcy6_9.js → bottomSheet-CGGwLnNk.js} +1 -1
  6. package/dist/consent/consent.es.js +5 -5
  7. package/dist/cross-document-data-match/cross-document-data-match.es.js +2 -2
  8. package/dist/curp-validation/curp-validation.es.js +7 -7
  9. package/dist/{customFields-DVVoO-1L.js → customFields-b8kG_fbg.js} +5 -5
  10. package/dist/dateInputComposed-Cl0jXQeM.js +1 -0
  11. package/dist/{documentCapture-DNi_TybD.js → documentCapture-BU03c8_o.js} +6 -6
  12. package/dist/dropdownComposed-CqGD8hIq.js +1 -0
  13. package/dist/{dropdownComposed-D33V63q7.js → dropdownComposed-DU_6BWvm.js} +79 -74
  14. package/dist/ekyb/ekyb.es.js +1 -1
  15. package/dist/{ekybModule-DV8eZFTA.js → ekybModule-CzoycvEv.js} +53 -47
  16. package/dist/ekybModule-DZaBZRFw.js +2 -0
  17. package/dist/ekyc/ekyc.es.js +1 -1
  18. package/dist/ekycModule-DjNlvez8.js +2 -0
  19. package/dist/{ekycModule-Dyvfm_Jh.js → ekycModule-Gc2iyiED.js} +89 -84
  20. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  21. package/dist/{electronic-signature-BY_fGpGt.js → electronic-signature-BKwtUgEE.js} +4 -4
  22. package/dist/email/email.es.js +5 -5
  23. package/dist/{extensibility-65EUn2O_.js → extensibility-DB2FMvgl.js} +25 -25
  24. package/dist/extensibility.es.js +14 -14
  25. package/dist/face-match/face-match.es.js +1 -1
  26. package/dist/faceMatch-DebacUAf.js +2 -0
  27. package/dist/{faceMatch-BJCmMX5x.js → faceMatch-h23LiePK.js} +4 -4
  28. package/dist/flow/flow.es.js +6 -6
  29. package/dist/{formField-CXgBxbyE.js → formField-ClatQUGJ.js} +1 -1
  30. package/dist/geolocation/geolocation.es.js +4 -4
  31. package/dist/governmentValidation/governmentValidation.es.js +4 -4
  32. package/dist/{homeScreen-DUHiJ4GS.js → homeScreen-Bjhy5dd2.js} +26 -18
  33. package/dist/{i18n-ntrVdqVv.js → i18n-D6pCC7RL.js} +1 -1
  34. package/dist/id/id.es.js +10 -10
  35. package/dist/identity-reuse/identity-reuse.es.js +3 -3
  36. package/dist/{incodeComponent-pGWsrcca.js → incodeComponent-BWl9Ashv.js} +1 -1
  37. package/dist/index.es.js +1 -1
  38. package/dist/{mandatoryConsent-BrkTmUBW.js → mandatoryConsent-CDozBEhf.js} +5 -5
  39. package/dist/{modal-Cqqyt9fy.js → modal-Bf_qRThy.js} +1 -1
  40. package/dist/optionAccessibleLabel-BReW7dz0.js +7 -0
  41. package/dist/{otpInput-qhbE2Zg-.js → otpInput-DxAGjXgh.js} +1 -1
  42. package/dist/phone/phone.es.js +5 -5
  43. package/dist/{phoneInputComposed-DpKgzd72.js → phoneInputComposed-DCDOTz3f.js} +3 -2
  44. package/dist/{processing-CjYwR8Kd.js → processing-xR2O8tqC.js} +1 -1
  45. package/dist/qe-signature/qe-signature.es.js +2 -2
  46. package/dist/{redirectToMobile-DmpYpZzP.js → redirectToMobile-DxQlNvpk.js} +5 -5
  47. package/dist/{richText-BNC8z_ah.js → richText-DPdexfgN.js} +1 -1
  48. package/dist/selfie/selfie.es.js +6 -6
  49. package/dist/{setup-I7T65zl7.js → setup-ChZeqzsD.js} +1 -1
  50. package/dist/signature/signature.es.js +4 -4
  51. package/dist/{transitionSpinner-tJrx3vrs.js → transitionSpinner-sh3UfuCy.js} +1 -1
  52. package/dist/{tutorial-DcOKYchw.js → tutorial-BOtBSUmR.js} +7 -7
  53. package/dist/types/extensibility.d.ts +1 -0
  54. package/dist/{useModuleLoader-DmFt81vp.js → useModuleLoader-z5MVR8Ii.js} +10 -10
  55. package/dist/{verificationResult-D7grOTth.js → verificationResult-BHMdAEeF.js} +1 -1
  56. package/dist/watchlist/watchlist.es.js +4 -4
  57. package/dist/workflow/workflow.es.js +6 -6
  58. package/package.json +2 -2
  59. package/dist/dateInputComposed-CUH00OCL.js +0 -1
  60. package/dist/dropdownComposed-PPsdKIj2.js +0 -1
  61. package/dist/ekybModule-DLvvDnRl.js +0 -2
  62. package/dist/ekycModule-CPcoffMp.js +0 -2
  63. package/dist/faceMatch-BnEBg97b.js +0 -2
  64. /package/dist/{aligndevicelottie-BhvH4U01.js → aligndevicelottie-DUyHV4eP.js} +0 -0
  65. /package/dist/{back-horizontal-hint-BEQsJQaS.js → back-horizontal-hint-ZM3I2Su5.js} +0 -0
  66. /package/dist/{back-tutorial-C4HG-Te-.js → back-tutorial-DhUXausb.js} +0 -0
  67. /package/dist/{back-vertical-hint-CSLZhIcN.js → back-vertical-hint-BoFBMTQl.js} +0 -0
  68. /package/dist/{backdevicelottie-D6IX_UYC.js → backdevicelottie-2h0aSor1.js} +0 -0
  69. /package/dist/{blurdevicelottie-BEU1SUJQ.js → blurdevicelottie-DZ0ZYTB5.js} +0 -0
  70. /package/dist/{browser-ponyfill-DRrmY6DO.js → browser-ponyfill-Dqca0y49.js} +0 -0
  71. /package/dist/{dateInputComposed-CvsKvXv5.js → dateInputComposed-CWYfz2YB.js} +0 -0
  72. /package/dist/{defineProperty-DB5OmvER.js → defineProperty-xczUyn-m.js} +0 -0
  73. /package/dist/{flip-animation-CRXEefAE.js → flip-animation-D88PnoMb.js} +0 -0
  74. /package/dist/{front-horizontal-hint-D0Lp8Tc3.js → front-horizontal-hint-BA7UvUjV.js} +0 -0
  75. /package/dist/{front-vertical-hint-DJQMKe8l.js → front-vertical-hint-RvpOhnkZ.js} +0 -0
  76. /package/dist/{frontdevicelottie-CL7-XewR.js → frontdevicelottie-J_Zc1ljM.js} +0 -0
  77. /package/dist/{glaredevicelottie-BDSlWlxa.js → glaredevicelottie-Didb-aCx.js} +0 -0
  78. /package/dist/{id-laser-h-CDewGAXj.js → id-laser-h-BCzdFxdH.js} +0 -0
  79. /package/dist/{id-laser-v-B-1IpVK0.js → id-laser-v-CJRj1dvt.js} +0 -0
  80. /package/dist/{id-tutorial-BOXQEtNg.js → id-tutorial-BhI3Igyz.js} +0 -0
  81. /package/dist/{incodeModule-BH9gV7jI.js → incodeModule-DcwjDRyJ.js} +0 -0
  82. /package/dist/{modal.hooks-B9B0KVgR.js → modal.hooks-CBKrvoyb.js} +0 -0
  83. /package/dist/{numberedStep-CSQrc-lB.js → numberedStep-PCuBJ6Se.js} +0 -0
  84. /package/dist/{passport-horizontal-hint-jl1fWxGQ.js → passport-horizontal-hint-W3GW8sLP.js} +0 -0
  85. /package/dist/{passport-tutorial-CEKyiZFm.js → passport-tutorial-DdIJCsab.js} +0 -0
  86. /package/dist/{passport-vertical-hint-BjR1TP5l.js → passport-vertical-hint-CrYbjg-J.js} +0 -0
  87. /package/dist/{phoneInput-C6mELMZ6.js → phoneInput-BAp0yrwm.js} +0 -0
  88. /package/dist/{radioButtonComposed-Db8-Oprl.js → radioButtonComposed-DiEo4Uj1.js} +0 -0
  89. /package/dist/{selfieTutorial-CZV5edrl.js → selfieTutorial-DewP31sm.js} +0 -0
  90. /package/dist/{statusPage-BlENJN0V.js → statusPage-DaLOUtil.js} +0 -0
  91. /package/dist/{tabs-DnpffRKI.js → tabs-BMnWocEX.js} +0 -0
@@ -1,21 +1,22 @@
1
- import { n as e } from "./i18n-ntrVdqVv.js";
1
+ import { n as e } from "./i18n-D6pCC7RL.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-pGWsrcca.js";
3
+ import { i as c, o as l, t as u } from "./incodeComponent-BWl9Ashv.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-D7grOTth.js";
7
+ import { t as m } from "./verificationResult-BHMdAEeF.js";
8
8
  import { t as h } from "./inputComposed-BXGBX7oR.js";
9
- import { n as g, t as _ } from "./formField-CXgBxbyE.js";
10
- import { t as v } from "./dropdownComposed-D33V63q7.js";
11
- import { t as y } from "./incodeModule-BH9gV7jI.js";
12
- import { t as b } from "./addressAutocomplete-DgObOJ6o.js";
13
- import { DEV_ONLY_COUNTRIES as x, SUPPORTED_COUNTRIES as S, computeEkybDisplayErrors as C, createEkybManager as w } from "@incodetech/core/ekyb";
9
+ import { n as g, t as _ } from "./formField-ClatQUGJ.js";
10
+ import { t as v } from "./dropdownComposed-DU_6BWvm.js";
11
+ import { t as y } from "./optionAccessibleLabel-BReW7dz0.js";
12
+ import { t as b } from "./incodeModule-DcwjDRyJ.js";
13
+ import { t as x } from "./addressAutocomplete-BCTe9jwj.js";
14
+ import { DEV_ONLY_COUNTRIES as S, SUPPORTED_COUNTRIES as C, computeEkybDisplayErrors as w, createEkybManager as T } from "@incodetech/core/ekyb";
14
15
  //#region src/modules/ekyb/countrySelector.tsx
15
- function T(e) {
16
+ function E(e) {
16
17
  return [...e.toUpperCase()].map((e) => String.fromCodePoint(127462 + e.charCodeAt(0) - 65)).join("");
17
18
  }
18
- var E = {
19
+ var D = {
19
20
  BR: "Brazil",
20
21
  CM: "Cameroon",
21
22
  CN: "China",
@@ -30,20 +31,21 @@ var E = {
30
31
  GB: "United Kingdom",
31
32
  US: "USA"
32
33
  };
33
- function D(e) {
34
- let t = E[e] ?? e;
34
+ function O(e) {
35
+ let t = D[e] ?? e;
35
36
  return {
36
37
  value: e,
37
- label: `${T(e)} ${t}`
38
+ label: `${E(e)} ${t}`,
39
+ ariaLabel: t
38
40
  };
39
41
  }
40
- function O() {
42
+ function k() {
41
43
  if (typeof window > "u") return !1;
42
44
  let { hostname: e } = window.location;
43
45
  return e === "localhost" || e.includes("stage") || e.includes("demo");
44
46
  }
45
- var k = ({ value: t, onChange: n }) => {
46
- let { t: i } = e(), a = r(() => (O() ? [...S, ...x] : [...S]).map(D).sort((e, t) => e.label.localeCompare(t.label)), []);
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)), []);
47
49
  return /* @__PURE__ */ s("div", {
48
50
  className: "IncodeEkybCountrySelector",
49
51
  children: /* @__PURE__ */ s(v, {
@@ -55,7 +57,7 @@ var k = ({ value: t, onChange: n }) => {
55
57
  "data-testid": "ekyb-country-selector"
56
58
  })
57
59
  });
58
- }, A = ({ field: t, value: n, error: r, errorParams: i, country: a, onChange: o, onBlur: c }) => {
60
+ }, j = ({ field: t, value: n, error: r, errorParams: i, country: a, onChange: o, onBlur: c }) => {
59
61
  let { t: l } = e(), u = !t.required, d = l(t.label);
60
62
  if (t.type === "dropdown") {
61
63
  let e = u ? `${d} (${l("common.optional")})` : d;
@@ -64,10 +66,14 @@ var k = ({ value: t, onChange: n }) => {
64
66
  label: e,
65
67
  placeholder: t.placeholder ? l(t.placeholder) : void 0,
66
68
  value: n,
67
- options: (t.options ?? []).map((e) => ({
68
- ...e,
69
- label: l(e.label)
70
- })),
69
+ options: (t.options ?? []).map((e) => {
70
+ let t = l(e.label);
71
+ return {
72
+ ...e,
73
+ label: t,
74
+ ariaLabel: y(t)
75
+ };
76
+ }),
71
77
  error: g(l, r, i),
72
78
  searchable: !0,
73
79
  onChange: (e) => o(t.name, e),
@@ -87,7 +93,7 @@ var k = ({ value: t, onChange: n }) => {
87
93
  onChange: o,
88
94
  onBlur: c
89
95
  });
90
- }, j = ({ ubos: t, errors: n, errorParams: r, canAddUbo: i, onSetField: a, onBlur: o, onAdd: c, onRemove: l }) => {
96
+ }, M = ({ ubos: t, errors: n, errorParams: r, canAddUbo: i, onSetField: a, onBlur: o, onAdd: c, onRemove: l }) => {
91
97
  let { t: u } = e(), d = (e) => g(u, n[e], r[e]);
92
98
  return t.length === 0 ? null : /* @__PURE__ */ s("div", {
93
99
  className: "IncodeEkybUbos",
@@ -132,8 +138,8 @@ var k = ({ value: t, onChange: n }) => {
132
138
  children: u("ekyb.addAnotherUbo")
133
139
  })]
134
140
  });
135
- }, M = ({ config: t, onFinish: r }) => {
136
- let { t: i } = e(), [a, o] = l(() => w({ config: t }));
141
+ }, N = ({ config: t, onFinish: r }) => {
142
+ let { t: i } = e(), [a, o] = l(() => T({ config: t }));
137
143
  return n(() => {
138
144
  (a.status === "finished" || a.status === "closed") && r?.();
139
145
  }, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ s(m, {
@@ -146,32 +152,32 @@ var k = ({ value: t, onChange: n }) => {
146
152
  }) }) : a.status === "success" ? /* @__PURE__ */ s(m, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ s(m, {
147
153
  status: "failure",
148
154
  onRetry: () => o.retry()
149
- }) : a.status === "form" ? /* @__PURE__ */ s(F, {
155
+ }) : a.status === "form" ? /* @__PURE__ */ s(I, {
150
156
  state: a,
151
157
  manager: o
152
158
  }) : null;
153
- }, N = new Set([
159
+ }, P = new Set([
154
160
  "street",
155
161
  "houseNo",
156
162
  "addressLine2",
157
163
  "city",
158
164
  "state",
159
165
  "postalCode"
160
- ]), P = [
166
+ ]), F = [
161
167
  "street",
162
168
  "city",
163
169
  "state",
164
170
  "postalCode",
165
171
  "houseNo"
166
- ], F = ({ state: l, manager: u }) => {
167
- let { country: f, fields: m, values: h, errors: g, isValid: _, ubos: v, canAddUbo: y, addressSuggestions: x, submitAttempted: S } = l, { t: w } = e(), T = a(null), E = a(null), D = a(void 0), O = c(T, m.length), [M, F] = o({}), I = i((e) => {
168
- F((t) => t[e] ? t : {
172
+ ], I = ({ state: l, manager: u }) => {
173
+ 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) => {
174
+ N((t) => t[e] ? t : {
169
175
  ...t,
170
176
  [e]: !0
171
177
  });
172
- }, []), { displayErrors: L, errorParams: R } = r(() => C(g, M, S, f, m), [
178
+ }, []), { displayErrors: L, errorParams: R } = r(() => w(g, k, S, f, m), [
173
179
  g,
174
- M,
180
+ k,
175
181
  S,
176
182
  f,
177
183
  m
@@ -180,10 +186,10 @@ var k = ({ value: t, onChange: n }) => {
180
186
  }, [u, I]), V = i((e, t, n) => {
181
187
  I(`ubo-${e}-${t}`), u.setUboField(e, t, n);
182
188
  }, [u, I]), H = i((e) => {
183
- for (let e of P) I(e);
189
+ for (let e of F) I(e);
184
190
  u.selectAddress(e);
185
191
  }, [u, I]), U = i((e) => {
186
- u.removeUbo(e), F((t) => {
192
+ u.removeUbo(e), N((t) => {
187
193
  let n = {};
188
194
  for (let [r, i] of Object.entries(t)) {
189
195
  let t = r.match(/^ubo-(\d+)-(name|surname)$/);
@@ -211,19 +217,19 @@ var k = ({ value: t, onChange: n }) => {
211
217
  });
212
218
  return () => cancelAnimationFrame(n);
213
219
  }, [L.postalCode]);
214
- let W = m.filter((e) => !N.has(e.name)), G = m.filter((e) => N.has(e.name));
220
+ let W = m.filter((e) => !P.has(e.name)), G = m.filter((e) => P.has(e.name));
215
221
  return /* @__PURE__ */ s(d, {
216
222
  className: `IncodeEkybPage${O ? " IncodeEkybPageScrollable" : ""}`,
217
- title: w("ekyb.title"),
223
+ title: C("ekyb.title"),
218
224
  children: [/* @__PURE__ */ s("div", {
219
225
  ref: T,
220
226
  className: "IncodeEkybForm",
221
227
  children: [
222
- /* @__PURE__ */ s(k, {
228
+ /* @__PURE__ */ s(A, {
223
229
  value: f,
224
230
  onChange: (e) => u.setCountry(e)
225
231
  }),
226
- W.map((e) => /* @__PURE__ */ s(A, {
232
+ W.map((e) => /* @__PURE__ */ s(j, {
227
233
  field: e,
228
234
  value: h[e.name] ?? "",
229
235
  error: L[e.name],
@@ -232,7 +238,7 @@ var k = ({ value: t, onChange: n }) => {
232
238
  onChange: B,
233
239
  onBlur: z
234
240
  }, e.name)),
235
- /* @__PURE__ */ s(j, {
241
+ /* @__PURE__ */ s(M, {
236
242
  ubos: v,
237
243
  errors: L,
238
244
  errorParams: R,
@@ -244,13 +250,13 @@ var k = ({ value: t, onChange: n }) => {
244
250
  }),
245
251
  G.length > 0 && /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s("h3", {
246
252
  className: "IncodeEkybSectionHeader",
247
- children: w("ekyb.addressDetails")
248
- }), G.map((e) => e.name === "street" ? /* @__PURE__ */ s(b, {
253
+ children: C("ekyb.addressDetails")
254
+ }), G.map((e) => e.name === "street" ? /* @__PURE__ */ s(x, {
249
255
  label: e.label,
250
256
  value: h.street ?? "",
251
257
  error: L.street,
252
258
  errorParams: R.street,
253
- suggestions: x,
259
+ suggestions: b,
254
260
  optional: !e.required,
255
261
  onChange: (e) => B("street", e),
256
262
  onSearch: (e) => u.searchAddress(e),
@@ -258,7 +264,7 @@ var k = ({ value: t, onChange: n }) => {
258
264
  onBlur: () => z("street")
259
265
  }, e.name) : /* @__PURE__ */ s("div", {
260
266
  ref: e.name === "postalCode" ? E : void 0,
261
- children: /* @__PURE__ */ s(A, {
267
+ children: /* @__PURE__ */ s(j, {
262
268
  field: e,
263
269
  value: h[e.name] ?? "",
264
270
  error: L[e.name],
@@ -275,14 +281,14 @@ var k = ({ value: t, onChange: n }) => {
275
281
  onClick: () => u.submit(),
276
282
  disabled: !_,
277
283
  "data-testid": "ekyb-submit",
278
- children: w("ekyb.continue")
284
+ children: C("ekyb.continue")
279
285
  })
280
286
  })]
281
287
  });
282
- }, I = ({ config: e, onFinish: t }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(M, {
288
+ }, L = ({ config: e, onFinish: t }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(N, {
283
289
  config: e,
284
290
  onFinish: t
285
291
  }) : null });
286
- y(I, "incode-ekyb");
292
+ b(L, "incode-ekyb");
287
293
  //#endregion
288
- export { I as t };
294
+ export { L as t };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./ekybModule-CzoycvEv.js";
2
+ export { e as EkybModule };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../ekycModule-Dyvfm_Jh.js";
1
+ import { t as e } from "../ekycModule-Gc2iyiED.js";
2
2
  export { e as EkycModule };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./ekycModule-Gc2iyiED.js";
2
+ export { e as EkycModule };
@@ -1,21 +1,22 @@
1
- import { n as e } from "./i18n-ntrVdqVv.js";
1
+ import { n as e } from "./i18n-D6pCC7RL.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-pGWsrcca.js";
3
+ import { i as s, o as c, t as l } from "./incodeComponent-BWl9Ashv.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-D7grOTth.js";
8
- import { n as m, t as h } from "./formField-CXgBxbyE.js";
9
- import { t as g } from "./phoneInputComposed-DpKgzd72.js";
10
- import { t as _ } from "./dropdownComposed-D33V63q7.js";
11
- import { t as v } from "./dateInputComposed-CvsKvXv5.js";
12
- import { t as y } from "./radioButtonComposed-Db8-Oprl.js";
13
- import { t as b } from "./incodeModule-BH9gV7jI.js";
14
- import { t as x } from "./addressAutocomplete-DgObOJ6o.js";
15
- import { computeEkycDisplayErrors as S, createEkycManager as C } from "@incodetech/core/ekyc";
7
+ import { t as p } from "./verificationResult-BHMdAEeF.js";
8
+ import { n as m, t as h } from "./formField-ClatQUGJ.js";
9
+ import { t as g } from "./phoneInputComposed-DCDOTz3f.js";
10
+ import { t as _ } from "./dropdownComposed-DU_6BWvm.js";
11
+ import { t as v } from "./optionAccessibleLabel-BReW7dz0.js";
12
+ import { t as y } from "./dateInputComposed-CWYfz2YB.js";
13
+ import { t as b } from "./radioButtonComposed-DiEo4Uj1.js";
14
+ import { t as x } from "./incodeModule-DcwjDRyJ.js";
15
+ import { t as S } from "./addressAutocomplete-BCTe9jwj.js";
16
+ import { computeEkycDisplayErrors as C, createEkycManager as w } from "@incodetech/core/ekyc";
16
17
  //#region src/modules/ekyc/ekycModule.tsx
17
- var w = ({ config: n, onFinish: r }) => {
18
- let { t: i } = e(), [a, s] = c(() => C({ config: n }));
18
+ var T = ({ config: n, onFinish: r }) => {
19
+ let { t: i } = e(), [a, s] = c(() => w({ config: n }));
19
20
  return t(() => {
20
21
  (a.status === "finished" || a.status === "closed") && r?.();
21
22
  }, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ o(p, {
@@ -37,126 +38,130 @@ var w = ({ config: n, onFinish: r }) => {
37
38
  failureTitle: i("verification.noFormFields"),
38
39
  onSkip: () => s.close(),
39
40
  skipLabel: i("common.close")
40
- }) : a.status === "form" ? /* @__PURE__ */ o(E, {
41
+ }) : a.status === "form" ? /* @__PURE__ */ o(D, {
41
42
  state: a,
42
43
  manager: s
43
44
  }) : null;
44
- }, T = [
45
+ }, E = [
45
46
  "street",
46
47
  "city",
47
48
  "state",
48
49
  "postalCode",
49
50
  "houseNo"
50
- ], E = ({ state: c, manager: l }) => {
51
- let { fields: d, values: p, errors: b, isValid: C, addressSuggestions: w, prefilled: E, hideEmail: D, fieldsCountry: O, submitError: k, submitAttempted: A } = c, { t: j } = e(), M = i(null), N = i(null), P = i(void 0), F = s(M, d.length), [I, L] = a({}), R = r((e) => {
52
- L((t) => t[e] ? t : {
51
+ ], D = ({ state: c, manager: l }) => {
52
+ let { fields: d, values: p, errors: x, isValid: w, addressSuggestions: T, prefilled: D, hideEmail: O, fieldsCountry: k, submitError: A, submitAttempted: j } = c, { t: M } = e(), N = i(null), P = i(null), F = i(void 0), I = s(N, d.length), [L, R] = a({}), z = r((e) => {
53
+ R((t) => t[e] ? t : {
53
54
  ...t,
54
55
  [e]: !0
55
56
  });
56
- }, []), { displayErrors: z, errorParams: B } = n(() => S(b, I, A, O, d), [
57
- b,
58
- I,
59
- A,
60
- O,
57
+ }, []), { displayErrors: B, errorParams: V } = n(() => C(x, L, j, k, d), [
58
+ x,
59
+ L,
60
+ j,
61
+ k,
61
62
  d
62
- ]), V = r((e) => R(e), [R]), H = r((e, t) => {
63
- R(e), l.setField(e, t);
64
- }, [l, R]), U = r((e) => {
65
- for (let e of T) R(e);
63
+ ]), H = r((e) => z(e), [z]), U = r((e, t) => {
64
+ z(e), l.setField(e, t);
65
+ }, [l, z]), W = r((e) => {
66
+ for (let e of E) z(e);
66
67
  l.selectAddress(e);
67
- }, [l, R]);
68
+ }, [l, z]);
68
69
  t(() => {
69
- let e = z.postalCode, t = P.current;
70
- if (P.current = e, !e || t === e) return;
70
+ let e = B.postalCode, t = F.current;
71
+ if (F.current = e, !e || t === e) return;
71
72
  let n = requestAnimationFrame(() => {
72
- let e = N.current;
73
+ let e = P.current;
73
74
  e && (e.querySelector("#postalCode-error") ?? e).scrollIntoView({
74
75
  behavior: "smooth",
75
76
  block: "nearest"
76
77
  });
77
78
  });
78
79
  return () => cancelAnimationFrame(n);
79
- }, [z.postalCode]);
80
- let W = (e, t) => m(j, t, B[e]), G;
80
+ }, [B.postalCode]);
81
+ let G = (e, t) => m(M, t, V[e]), K;
81
82
  return /* @__PURE__ */ o(u, {
82
- className: `IncodeEkycPage${F ? " IncodeEkycPageScrollable" : ""}`,
83
- title: j("verification.title"),
83
+ className: `IncodeEkycPage${I ? " IncodeEkycPageScrollable" : ""}`,
84
+ title: M("verification.title"),
84
85
  children: [/* @__PURE__ */ o("div", {
85
- ref: M,
86
+ ref: N,
86
87
  className: "IncodeEkycForm",
87
88
  children: d.map((e) => {
88
- if (e.name === "email" && D) return null;
89
+ if (e.name === "email" && O) return null;
89
90
  let t = null;
90
- e.section && e.section !== G && (G = e.section, t = /* @__PURE__ */ o("h3", {
91
+ e.section && e.section !== K && (K = e.section, t = /* @__PURE__ */ o("h3", {
91
92
  className: "IncodeEkycSectionHeader",
92
- children: j({
93
+ children: M({
93
94
  address: "verification.labels.addressDetailsSection",
94
95
  driverLicense: "verification.labels.dlDetailsSection"
95
96
  }[e.section] ?? e.section)
96
97
  }));
97
- let n = e.readonly || E[e.name], r = p[e.name] ?? "", i = z[e.name];
98
- if (e.name === "street" && e.section === "address") return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(x, {
98
+ let n = e.readonly || D[e.name], r = p[e.name] ?? "", i = B[e.name];
99
+ if (e.name === "street" && e.section === "address") return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(S, {
99
100
  label: e.label,
100
101
  value: r,
101
102
  error: i,
102
- errorParams: B[e.name],
103
- suggestions: w,
103
+ errorParams: V[e.name],
104
+ suggestions: T,
104
105
  readonly: n,
105
106
  optional: !e.required,
106
- onChange: (e) => H("street", e),
107
+ onChange: (e) => U("street", e),
107
108
  onSearch: (e) => l.searchAddress(e),
108
- onSelect: U,
109
- onBlur: () => V("street")
109
+ onSelect: W,
110
+ onBlur: () => H("street")
110
111
  })] }, e.name);
111
112
  if (e.type === "dropdown") {
112
- let a = j(e.label);
113
+ let a = M(e.label);
113
114
  return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(_, {
114
115
  id: `ekyc-${e.name}`,
115
116
  label: a,
116
- placeholder: e.placeholder ? j(e.placeholder) : void 0,
117
+ placeholder: e.placeholder ? M(e.placeholder) : void 0,
117
118
  value: r,
118
- options: (e.options ?? []).map((e) => ({
119
- ...e,
120
- label: j(e.label)
121
- })),
122
- error: W(e.name, i),
119
+ options: (e.options ?? []).map((e) => {
120
+ let t = M(e.label);
121
+ return {
122
+ ...e,
123
+ label: t,
124
+ ariaLabel: v(t)
125
+ };
126
+ }),
127
+ error: G(e.name, i),
123
128
  disabled: n,
124
129
  searchable: !0,
125
- onChange: (t) => H(e.name, t),
126
- onBlur: () => V(e.name),
130
+ onChange: (t) => U(e.name, t),
131
+ onBlur: () => H(e.name),
127
132
  "data-testid": `ekyc-field-${e.name}`
128
133
  })] }, e.name);
129
134
  }
130
135
  if (e.type === "date") {
131
- let a = j(e.label);
132
- return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(v, {
136
+ let a = M(e.label);
137
+ return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(y, {
133
138
  id: `ekyc-${e.name}`,
134
139
  label: a,
135
140
  value: r,
136
- error: W(e.name, i),
141
+ error: G(e.name, i),
137
142
  disabled: n,
138
143
  onInput: (t) => {
139
144
  let n = t.target;
140
- H(e.name, n.value);
145
+ U(e.name, n.value);
141
146
  },
142
- onBlur: () => V(e.name),
147
+ onBlur: () => H(e.name),
143
148
  "data-testid": `ekyc-field-${e.name}`
144
149
  })] }, e.name);
145
150
  }
146
151
  if (e.type === "phone") {
147
- let a = j(e.label);
152
+ let a = M(e.label);
148
153
  return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(g, {
149
154
  id: `ekyc-${e.name}`,
150
155
  label: a,
151
- countryCode: O,
156
+ countryCode: k,
152
157
  value: r,
153
158
  placeholder: e.placeholder,
154
- error: W(e.name, i),
159
+ error: G(e.name, i),
155
160
  disabled: n,
156
161
  disableCountrySelector: e.disableCountrySelector,
157
162
  required: !1,
158
- onChange: (t) => H(e.name, t),
159
- onBlur: () => V(e.name),
163
+ onChange: (t) => U(e.name, t),
164
+ onBlur: () => H(e.name),
160
165
  "data-testid": `ekyc-field-${e.name}`
161
166
  })] }, e.name);
162
167
  }
@@ -170,18 +175,18 @@ var w = ({ config: n, onFinish: r }) => {
170
175
  /* @__PURE__ */ o("span", {
171
176
  id: a,
172
177
  className: "IncodeEkycRadioLabel",
173
- children: j(e.label)
178
+ children: M(e.label)
174
179
  }),
175
180
  /* @__PURE__ */ o("div", {
176
181
  className: "IncodeEkycRadioOptions",
177
- children: e.options?.map((t) => /* @__PURE__ */ o(y, {
182
+ children: e.options?.map((t) => /* @__PURE__ */ o(b, {
178
183
  id: `ekyc-${e.name}-${t.value}`,
179
184
  name: e.name,
180
- label: j(t.label),
185
+ label: M(t.label),
181
186
  checked: r === t.value,
182
187
  value: t.value,
183
- onChange: () => H(e.name, t.value),
184
- onBlur: () => V(e.name),
188
+ onChange: () => U(e.name, t.value),
189
+ onBlur: () => H(e.name),
185
190
  disabled: n,
186
191
  "aria-describedby": i ? s : void 0,
187
192
  "aria-invalid": !!i,
@@ -192,20 +197,20 @@ var w = ({ config: n, onFinish: r }) => {
192
197
  id: s,
193
198
  className: "IncodeEkycFieldError",
194
199
  role: "alert",
195
- children: W(e.name, i)
200
+ children: G(e.name, i)
196
201
  })
197
202
  ]
198
203
  })] }, e.name);
199
204
  }
200
205
  return /* @__PURE__ */ o("div", {
201
- ref: e.name === "postalCode" ? N : void 0,
206
+ ref: e.name === "postalCode" ? P : void 0,
202
207
  children: [t, /* @__PURE__ */ o(h, {
203
208
  name: e.name,
204
209
  label: e.label,
205
210
  displayLabel: e.displayLabel,
206
211
  value: r,
207
212
  error: i,
208
- errorParams: B[e.name],
213
+ errorParams: V[e.name],
209
214
  type: e.type,
210
215
  placeholder: e.placeholder,
211
216
  placeholderParams: e.placeholderParams,
@@ -213,38 +218,38 @@ var w = ({ config: n, onFinish: r }) => {
213
218
  optional: e.optional,
214
219
  readonly: n,
215
220
  maxLength: e.maxLength,
216
- onChange: H,
217
- onBlur: V
221
+ onChange: U,
222
+ onBlur: H
218
223
  })]
219
224
  }, e.name);
220
225
  })
221
226
  }), /* @__PURE__ */ o("div", {
222
227
  className: "IncodeEkycFooter",
223
228
  children: [
224
- k && /* @__PURE__ */ o("p", {
229
+ A && /* @__PURE__ */ o("p", {
225
230
  className: "IncodeEkycSubmitError",
226
231
  role: "alert",
227
- children: j(k)
232
+ children: M(A)
228
233
  }),
229
234
  /* @__PURE__ */ o(f, {
230
235
  onClick: () => l.submit(),
231
- disabled: !C,
236
+ disabled: !w,
232
237
  "data-testid": "ekyc-submit",
233
- children: j("common.continue")
238
+ children: M("common.continue")
234
239
  }),
235
- k === "verification.errors.countryNotSupported" && /* @__PURE__ */ o(f, {
240
+ A === "verification.errors.countryNotSupported" && /* @__PURE__ */ o(f, {
236
241
  variant: "link",
237
242
  onClick: () => l.skip(),
238
243
  "data-testid": "ekyc-skip",
239
- children: j("verification.labels.skip")
244
+ children: M("verification.labels.skip")
240
245
  })
241
246
  ]
242
247
  })]
243
248
  });
244
- }, D = ({ config: e, onFinish: t }) => /* @__PURE__ */ o(l, { children: e ? /* @__PURE__ */ o(w, {
249
+ }, O = ({ config: e, onFinish: t }) => /* @__PURE__ */ o(l, { children: e ? /* @__PURE__ */ o(T, {
245
250
  config: e,
246
251
  onFinish: t
247
252
  }) : null });
248
- b(D, "incode-ekyc");
253
+ x(O, "incode-ekyc");
249
254
  //#endregion
250
- export { D as t };
255
+ export { O as t };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../electronic-signature-BY_fGpGt.js";
1
+ import { n as e, t } from "../electronic-signature-BKwtUgEE.js";
2
2
  export { t as AeSignature, e as ElectronicSignature };
@@ -1,13 +1,13 @@
1
- import { n as e, t } from "./i18n-ntrVdqVv.js";
1
+ import { n as e, t } from "./i18n-D6pCC7RL.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-pGWsrcca.js";
3
+ import { o, t as s } from "./incodeComponent-BWl9Ashv.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-GsJu_yZn.js";
7
7
  import { t as f } from "./successIcon-C4GI_9SU.js";
8
- import { t as p } from "./verificationResult-D7grOTth.js";
8
+ import { t as p } from "./verificationResult-BHMdAEeF.js";
9
9
  import { t as m } from "./checkbox-CUOVvO_K.js";
10
- import { t as h } from "./incodeModule-BH9gV7jI.js";
10
+ import { t as h } from "./incodeModule-DcwjDRyJ.js";
11
11
  import { createElectronicSignatureManager as g } from "@incodetech/core/electronic-signature";
12
12
  //#region src/modules/electronic-signature/documentIllustration.tsx
13
13
  var _ = () => /* @__PURE__ */ a("svg", {
@@ -1,13 +1,13 @@
1
- import { n as e } from "../i18n-ntrVdqVv.js";
1
+ import { n as e } from "../i18n-D6pCC7RL.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-pGWsrcca.js";
3
+ import { o as i, t as a } from "../incodeComponent-BWl9Ashv.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-65EUn2O_.js";
6
+ import "../extensibility-DB2FMvgl.js";
7
7
  import { t as c } from "../button-4-ToV5B_.js";
8
8
  import { t as l } from "../inputComposed-BXGBX7oR.js";
9
- import { t as u } from "../otpInput-qhbE2Zg-.js";
10
- import { t as d } from "../incodeModule-BH9gV7jI.js";
9
+ import { t as u } from "../otpInput-DxAGjXgh.js";
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
13
13
  var p = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, m = ({ prefilledEmail: i, emailError: a, label: o, disabled: s = !1, required: c = !1, onEmailChange: u }) => {