@incodetech/web 0.0.0-dev-20260528-ea3f2abe → 0.0.0-dev-20260528-ef6f8814

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 (35) hide show
  1. package/dist/base.css +1 -1
  2. package/dist/{countrySelector-C_rFc47i.js → countrySelector-Dl02bpYj.js} +1 -1
  3. package/dist/curp-validation/curp-validation.es.js +2 -2
  4. package/dist/{documentCapture-mBxaB8YF.js → documentCapture-CTzd8guW.js} +1 -1
  5. package/dist/dropdownComposed-B4U0AIak.js +1 -0
  6. package/dist/dropdownComposed-CS2pyn-g.js +293 -0
  7. package/dist/{dynamicForms-BHgS3Lup.js → dynamicForms-CHXFMqWS.js} +3 -3
  8. package/dist/ekyb/ekyb.es.js +1 -1
  9. package/dist/{ekybModule-B25nRtND.js → ekybModule-B_RmkqNS.js} +3 -3
  10. package/dist/ekybModule-BteSR_yD.js +2 -0
  11. package/dist/ekyc/ekyc.es.js +1 -1
  12. package/dist/{ekycModule-D_XadsdM.js → ekycModule-DvwM-YbU.js} +2 -2
  13. package/dist/ekycModule-NFCMR5M7.js +2 -0
  14. package/dist/email/email.es.js +1 -1
  15. package/dist/{emailInput-YXKc1ywq.js → emailInput-CycHYQLU.js} +1 -1
  16. package/dist/{extensibility-uoS3TI6M.js → extensibility-IrKykXUz.js} +2 -2
  17. package/dist/extensibility.es.js +3 -3
  18. package/dist/{fieldComparison-23YERjOb.js → fieldComparison-D0G1I_Eh.js} +1 -1
  19. package/dist/flow/flow.es.js +2 -2
  20. package/dist/governmentValidation/governmentValidation.es.js +1 -1
  21. package/dist/{homeScreen-cR7YDz0E.js → homeScreen-DhgSSJ42.js} +2 -2
  22. package/dist/id/id.es.js +1 -1
  23. package/dist/{idOcr-CrgyUY7x.js → idOcr-Bj4v3mH1.js} +1 -1
  24. package/dist/phone/phone.es.js +1 -1
  25. package/dist/{phoneInputComposed-DKFMES-V.js → phoneInputComposed-BAXoouHv.js} +1 -1
  26. package/dist/{redirectToMobile-d-xlylP7.js → redirectToMobile-zKUzFuw7.js} +1 -1
  27. package/dist/signature/signature.es.js +1 -1
  28. package/dist/{useModuleLoader-C2VkEPxy.js → useModuleLoader-ragcw2tj.js} +10 -10
  29. package/dist/{watchlistForBusiness-BJFTUIsP.js → watchlistForBusiness-BzLRz_0L.js} +1 -1
  30. package/dist/workflow/workflow.es.js +3 -3
  31. package/package.json +2 -2
  32. package/dist/dropdownComposed-CDLGWwUd.js +0 -286
  33. package/dist/dropdownComposed-MsxE2JeL.js +0 -1
  34. package/dist/ekybModule-DUY52XDj.js +0 -2
  35. package/dist/ekycModule-DHBzhbE-.js +0 -2
package/dist/base.css CHANGED
@@ -4406,7 +4406,7 @@
4406
4406
  background-color: var(--surface-neutral-200, var(--color-surface-neutral-200));
4407
4407
  }
4408
4408
 
4409
- .IncodeDropdownComposedLiveRegion {
4409
+ .IncodeDropdownComposedLiveRegion, .IncodeDropdownComposedSrOnly {
4410
4410
  clip-path: inset(50%);
4411
4411
  white-space: nowrap;
4412
4412
  border-width: 0;
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./i18n-Cw8Y_JeB.js";
2
2
  import { d as t, v as n } from "./vendor-preact-D6SntenC.js";
3
- import { t as r } from "./dropdownComposed-CDLGWwUd.js";
3
+ import { t as r } from "./dropdownComposed-CS2pyn-g.js";
4
4
  //#region src/shared/countrySelector/countrySelector.tsx
5
5
  var i = [
6
6
  "BR",
@@ -11,8 +11,8 @@ import "../icons-9I5g9-_1.js";
11
11
  import { t as f } from "../successIcon-SlKgTSty.js";
12
12
  import { t as p } from "../autoFocusTitle-BpYdaSUM.js";
13
13
  import { t as m } from "../inputComposed-DAEey9xm.js";
14
- import { t as h } from "../dropdownComposed-CDLGWwUd.js";
15
- import "../dropdownComposed-MsxE2JeL.js";
14
+ import { t as h } from "../dropdownComposed-CS2pyn-g.js";
15
+ import "../dropdownComposed-B4U0AIak.js";
16
16
  import { t as g } from "../dateInputComposed-Ddd7HLyM.js";
17
17
  import "../dateInputComposed-Cg8BvYSK.js";
18
18
  import { t as _ } from "../incodeModule-BH9gV7jI.js";
@@ -4,7 +4,7 @@ import { c as l, o as u, r as d } from "./hooks-CLjlsC2g.js";
4
4
  import { t as f } from "./incodeComponent-MZEyrb1V.js";
5
5
  import { n as p, r as m } from "./loadingIcon-BN5YRQUb.js";
6
6
  import { t as h } from "./page-C1yT4DLb.js";
7
- import { b as g, d as _, f as v, l as y, p as b, u as x, y as S } from "./extensibility-uoS3TI6M.js";
7
+ import { b as g, d as _, f as v, l as y, p as b, u as x, y as S } from "./extensibility-IrKykXUz.js";
8
8
  import { t as C } from "./spinner-CKnjVHxw.js";
9
9
  import { t as w } from "./button-DcCUEn2n.js";
10
10
  import { a as T, p as E, r as D } from "./icons-9I5g9-_1.js";
@@ -0,0 +1 @@
1
+ import "./dropdownComposed-CS2pyn-g.js";
@@ -0,0 +1,293 @@
1
+ import { S as e, _ as t, l as n, p as r, v as i } from "./vendor-preact-D6SntenC.js";
2
+ import { n as a } from "./loadingIcon-BN5YRQUb.js";
3
+ import { t as o } from "./errorIcon-DpHzAoAo.js";
4
+ import { l as s, n as c, o as ee, u as te } from "./icons-9I5g9-_1.js";
5
+ import { t as l } from "./successIcon-SlKgTSty.js";
6
+ //#region src/shared/dropdownComposed/dropdownComposed.tsx
7
+ var u = ({ id: u, label: d, labelHint: f, placeholder: p = "Choose an option", value: m, options: h, onChange: ne, error: g, helper: _, showErrorIcon: re, showHelperIcon: v, suppressMessages: y = !1, disabled: b = !1, required: x, searchable: S = !1, searchPlaceholder: C = "Search...", noResultsText: w = "No results found", name: T, tabIndex: ie, onKeyDown: ae, onBlur: oe, renderSelectedLabel: E, siblingElement: D, enterKeyHint: se, class: ce, "aria-label": O, "data-testid": k }) => {
8
+ let [A, j] = r(!1), [M, N] = r(!1), [P, F] = r(-1), [I, L] = r(""), R = n(null), z = n(null), B = n(null), V = n([]), H = n(null), U = n(""), W = n(), G = h.find((e) => e.value === m), K = G ? E ? E(G) : G.label : p, q = S && I ? h.filter((e) => e.label.toLowerCase().includes(I.toLowerCase())) : h, J = `${u}-label`, Y = `${u}-value`, X = `${u}-listbox`, Z = `${u}-helper`, Q = `${u}-error`, le = y ? "" : [_ ? Z : null, g ? Q : null].filter(Boolean).join(" ");
9
+ t(() => {
10
+ if (!A) return;
11
+ let e = requestAnimationFrame(() => {
12
+ S && H.current && H.current.focus(), requestAnimationFrame(() => {
13
+ B.current?.scrollIntoView({
14
+ behavior: "smooth",
15
+ block: "nearest",
16
+ inline: "nearest"
17
+ });
18
+ });
19
+ });
20
+ return () => cancelAnimationFrame(e);
21
+ }, [A, S]), t(() => {
22
+ A || (F(-1), L(""));
23
+ }, [A]), t(() => {
24
+ P >= 0 && V.current[P] && V.current[P]?.scrollIntoView({
25
+ block: "nearest",
26
+ inline: "nearest"
27
+ });
28
+ }, [P]), t(() => () => {
29
+ W.current && clearTimeout(W.current);
30
+ }, []);
31
+ let ue = () => {
32
+ b || j((e) => !e);
33
+ }, $ = (e) => {
34
+ ne(e), j(!1), F(-1), z.current?.focus();
35
+ }, de = () => {
36
+ N(!0);
37
+ }, fe = (e) => {
38
+ N(!1), R.current?.contains(e.relatedTarget) || (j(!1), oe?.());
39
+ }, pe = (e) => {
40
+ if (b) return;
41
+ ae?.(e);
42
+ let { key: t } = e;
43
+ if (t.length === 1 && /^[a-zA-Z0-9]$/.test(t)) {
44
+ e.preventDefault(), W.current && clearTimeout(W.current), U.current += t.toLowerCase();
45
+ let n = q.findIndex((e) => e.label.toLowerCase().startsWith(U.current));
46
+ n !== -1 && (A || j(!0), F(n)), W.current = setTimeout(() => {
47
+ U.current = "";
48
+ }, 500);
49
+ return;
50
+ }
51
+ switch (t) {
52
+ case "ArrowDown":
53
+ e.preventDefault(), A ? F((e) => e < q.length - 1 ? e + 1 : e) : (j(!0), F(0));
54
+ break;
55
+ case "ArrowUp":
56
+ e.preventDefault(), A ? F((e) => e > 0 ? e - 1 : e) : (j(!0), F(q.length - 1));
57
+ break;
58
+ case "Home":
59
+ e.preventDefault(), A && F(0);
60
+ break;
61
+ case "End":
62
+ e.preventDefault(), A && F(q.length - 1);
63
+ break;
64
+ case "Enter":
65
+ e.preventDefault(), A && P >= 0 && q[P] ? $(q[P].value) : A || j(!0);
66
+ break;
67
+ case " ":
68
+ e.preventDefault(), A && P >= 0 && q[P] ? $(q[P].value) : A || (j(!0), F(0));
69
+ break;
70
+ case "Escape":
71
+ e.preventDefault(), A && (j(!1), F(-1), z.current?.focus());
72
+ break;
73
+ case "Tab":
74
+ A && (j(!1), F(-1));
75
+ break;
76
+ default: break;
77
+ }
78
+ }, me = (e) => {
79
+ let { key: t } = e;
80
+ switch (t) {
81
+ case "ArrowDown":
82
+ e.preventDefault(), F((e) => e < q.length - 1 ? e + 1 : e);
83
+ break;
84
+ case "ArrowUp":
85
+ e.preventDefault(), F((e) => e > 0 ? e - 1 : e);
86
+ break;
87
+ case "Home":
88
+ e.preventDefault(), F(0);
89
+ break;
90
+ case "End":
91
+ e.preventDefault(), F(q.length - 1);
92
+ break;
93
+ case "Enter":
94
+ e.preventDefault(), P >= 0 && q[P] && $(q[P].value);
95
+ break;
96
+ case "Escape":
97
+ e.preventDefault(), j(!1), F(-1), z.current?.focus();
98
+ break;
99
+ case "Tab":
100
+ I || (j(!1), F(-1));
101
+ break;
102
+ default: break;
103
+ }
104
+ };
105
+ return /* @__PURE__ */ i("div", {
106
+ class: a("IncodeDropdownComposed", ce),
107
+ ref: R,
108
+ onBlur: fe,
109
+ children: [
110
+ T && /* @__PURE__ */ i("input", {
111
+ type: "hidden",
112
+ name: T,
113
+ value: m || "",
114
+ disabled: b,
115
+ required: x
116
+ }),
117
+ d && /* @__PURE__ */ i("label", {
118
+ class: "IncodeDropdownComposedLabel",
119
+ id: J,
120
+ htmlFor: u,
121
+ "data-testid": `${u}-label`,
122
+ children: [d, f && /* @__PURE__ */ i("span", {
123
+ class: "IncodeDropdownComposedLabelHint",
124
+ "data-testid": `${u}-label-hint`,
125
+ children: f
126
+ })]
127
+ }),
128
+ /* @__PURE__ */ i("div", {
129
+ class: "IncodeDropdownComposedWrapper",
130
+ children: [/* @__PURE__ */ i("div", {
131
+ class: a("IncodeDropdownComposedTriggerRow", { IncodeDropdownComposedTriggerRowWithSibling: !!D }),
132
+ children: [/* @__PURE__ */ i("button", {
133
+ ref: z,
134
+ type: "button",
135
+ id: u,
136
+ class: "IncodeDropdownComposedTrigger",
137
+ onClick: ue,
138
+ onFocus: de,
139
+ onKeyDown: pe,
140
+ tabIndex: b ? -1 : ie ?? 0,
141
+ disabled: b,
142
+ "aria-haspopup": "listbox",
143
+ "aria-expanded": A ? "true" : "false",
144
+ "aria-disabled": b ? "true" : void 0,
145
+ "aria-labelledby": d ? `${J} ${Y}` : void 0,
146
+ "aria-label": d ? void 0 : O,
147
+ "aria-controls": A ? X : void 0,
148
+ "aria-activedescendant": A && P >= 0 ? `${u}-option-${P}` : void 0,
149
+ "aria-invalid": g ? "true" : void 0,
150
+ "aria-required": x ? "true" : void 0,
151
+ "aria-describedby": le || void 0,
152
+ "data-error": g ? "true" : void 0,
153
+ "data-focused": M || A ? "true" : void 0,
154
+ "data-testid": k,
155
+ children: [/* @__PURE__ */ i("span", {
156
+ id: Y,
157
+ class: G ? "IncodeDropdownComposedTriggerText" : "IncodeDropdownComposedTriggerPlaceholder",
158
+ "aria-hidden": !d && O ? "true" : void 0,
159
+ children: G?.ariaLabel ? /* @__PURE__ */ i(e, { children: [/* @__PURE__ */ i("span", {
160
+ "aria-hidden": "true",
161
+ children: K
162
+ }), /* @__PURE__ */ i("span", {
163
+ class: "IncodeDropdownComposedSrOnly",
164
+ children: G.ariaLabel
165
+ })] }) : K
166
+ }), /* @__PURE__ */ i("span", {
167
+ class: "IncodeDropdownComposedTriggerIcon",
168
+ "aria-hidden": "true",
169
+ "data-open": A,
170
+ children: /* @__PURE__ */ i(s, {})
171
+ })]
172
+ }), D && /* @__PURE__ */ i("div", {
173
+ class: "IncodeDropdownComposedSibling",
174
+ children: D
175
+ })]
176
+ }), A && /* @__PURE__ */ i("div", {
177
+ ref: B,
178
+ class: "IncodeDropdownComposedList",
179
+ "data-error": g ? "true" : void 0,
180
+ children: [S && /* @__PURE__ */ i("div", {
181
+ class: "IncodeDropdownComposedSearchWrapper",
182
+ children: /* @__PURE__ */ i("div", {
183
+ class: "IncodeDropdownComposedSearchInner",
184
+ children: [/* @__PURE__ */ i("input", {
185
+ ref: H,
186
+ type: "text",
187
+ class: "IncodeDropdownComposedSearchInput",
188
+ value: I,
189
+ onInput: (e) => {
190
+ L(e.target.value), F(0);
191
+ },
192
+ onKeyDown: me,
193
+ placeholder: C,
194
+ role: "combobox",
195
+ "aria-autocomplete": "list",
196
+ "aria-expanded": "true",
197
+ "aria-controls": X,
198
+ "aria-activedescendant": P >= 0 ? `${u}-option-${P}` : void 0,
199
+ "aria-label": C,
200
+ autocomplete: "off"
201
+ }), I ? /* @__PURE__ */ i("button", {
202
+ type: "button",
203
+ class: "IncodeDropdownComposedCloseIconButton",
204
+ onMouseDown: (e) => e.preventDefault(),
205
+ onClick: () => {
206
+ I && (L(""), H.current?.focus());
207
+ },
208
+ "aria-label": "Clear search query",
209
+ children: /* @__PURE__ */ i(ee, {
210
+ width: 20,
211
+ height: 20,
212
+ fillColor: "var(--icon-neutral-500)"
213
+ })
214
+ }) : /* @__PURE__ */ i("span", {
215
+ class: "IncodeDropdownComposedSearchIcon",
216
+ "aria-hidden": "true",
217
+ children: /* @__PURE__ */ i(c, { size: 20 })
218
+ })]
219
+ })
220
+ }), /* @__PURE__ */ i("div", {
221
+ id: X,
222
+ role: "listbox",
223
+ "aria-labelledby": d ? J : void 0,
224
+ "aria-label": d ? void 0 : O ?? p,
225
+ class: "IncodeDropdownComposedOptionsScroll",
226
+ children: q.length === 0 ? /* @__PURE__ */ i("div", {
227
+ class: "IncodeDropdownComposedNoResults",
228
+ children: w
229
+ }) : q.map((e, t) => {
230
+ let n = m === e.value, r = e.ariaLabel && n ? `${e.ariaLabel}, selected` : e.ariaLabel;
231
+ return /* @__PURE__ */ i("div", {
232
+ id: `${u}-option-${t}`,
233
+ role: "option",
234
+ "aria-label": r,
235
+ "aria-selected": n ? "true" : "false",
236
+ class: "IncodeDropdownComposedOption",
237
+ "data-highlighted": P === t,
238
+ ref: (e) => {
239
+ V.current[t] = e;
240
+ },
241
+ onClick: () => $(e.value),
242
+ onMouseDown: (e) => e.preventDefault(),
243
+ onMouseEnter: () => F(t),
244
+ children: [e.ariaLabel ? /* @__PURE__ */ i("span", {
245
+ "aria-hidden": "true",
246
+ children: e.label
247
+ }) : e.label, n && /* @__PURE__ */ i("span", {
248
+ class: "IncodeDropdownComposedCheckmarkIcon",
249
+ "aria-hidden": "true",
250
+ children: /* @__PURE__ */ i(te, {})
251
+ })]
252
+ }, e.value);
253
+ })
254
+ })]
255
+ })]
256
+ }),
257
+ S && /* @__PURE__ */ i("div", {
258
+ class: "IncodeDropdownComposedLiveRegion",
259
+ role: "status",
260
+ "aria-live": "polite",
261
+ "aria-atomic": "true",
262
+ children: A && I ? q.length === 0 ? w : `${q.length} result${q.length === 1 ? "" : "s"} available` : ""
263
+ }),
264
+ !y && g && /* @__PURE__ */ i("div", {
265
+ class: "IncodeDropdownComposedErrorWrapper",
266
+ role: "alert",
267
+ "data-testid": `${u}-error-wrapper`,
268
+ children: [re && /* @__PURE__ */ i("div", {
269
+ class: "IncodeDropdownComposedIconWrapper",
270
+ children: /* @__PURE__ */ i(o, { size: 17 })
271
+ }), /* @__PURE__ */ i("p", {
272
+ id: Q,
273
+ class: "IncodeDropdownComposedError",
274
+ children: g
275
+ })]
276
+ }),
277
+ !y && _ && !g && /* @__PURE__ */ i("div", {
278
+ class: "IncodeDropdownComposedHelperWrapper",
279
+ "data-testid": `${u}-helper-wrapper`,
280
+ children: [v && /* @__PURE__ */ i("div", {
281
+ class: "IncodeDropdownComposedIconWrapper",
282
+ children: /* @__PURE__ */ i(l, { size: 17 })
283
+ }), /* @__PURE__ */ i("p", {
284
+ id: Z,
285
+ class: "IncodeDropdownComposedHelper",
286
+ children: _
287
+ })]
288
+ })
289
+ ]
290
+ });
291
+ };
292
+ //#endregion
293
+ export { u as t };
@@ -7,12 +7,12 @@ import { t as s } from "./page-C1yT4DLb.js";
7
7
  import { t as c } from "./button-DcCUEn2n.js";
8
8
  import { t as l } from "./verificationResult-CxBb6PGD.js";
9
9
  import { t as u } from "./inputComposed-DAEey9xm.js";
10
- import { n as d, t as f } from "./phoneInputComposed-DKFMES-V.js";
11
- import { t as p } from "./dropdownComposed-CDLGWwUd.js";
10
+ import { n as d, t as f } from "./phoneInputComposed-BAXoouHv.js";
11
+ import { t as p } from "./dropdownComposed-CS2pyn-g.js";
12
12
  import { t as m } from "./dateInputComposed-Ddd7HLyM.js";
13
13
  import { t as h } from "./incodeModule-BH9gV7jI.js";
14
14
  import { n as g, t as _ } from "./requiredLabelHint-Dge9zK49.js";
15
- import { t as v } from "./emailInput-YXKc1ywq.js";
15
+ import { t as v } from "./emailInput-CycHYQLU.js";
16
16
  import { formatCPF as y, isValidCPF as b } from "@incodetech/core/cpf-ocr";
17
17
  import { createDynamicFormsManager as x } from "@incodetech/core/dynamic-forms";
18
18
  //#region src/modules/dynamic-forms/dynamicForms.tsx
@@ -1,2 +1,2 @@
1
- import { t as e } from "../ekybModule-B25nRtND.js";
1
+ import { t as e } from "../ekybModule-B_RmkqNS.js";
2
2
  export { e as EkybModule };
@@ -4,17 +4,17 @@ import { c as o, i as s, o as c } from "./hooks-CLjlsC2g.js";
4
4
  import { t as l } from "./incodeComponent-MZEyrb1V.js";
5
5
  import { r as u } from "./loadingIcon-BN5YRQUb.js";
6
6
  import { t as d } from "./page-C1yT4DLb.js";
7
- import "./extensibility-uoS3TI6M.js";
7
+ import "./extensibility-IrKykXUz.js";
8
8
  import { t as f } from "./spinner-CKnjVHxw.js";
9
9
  import { t as p } from "./button-DcCUEn2n.js";
10
10
  import { t as m } from "./verificationResult-CxBb6PGD.js";
11
11
  import { t as h } from "./inputComposed-DAEey9xm.js";
12
12
  import { i as g, r as _ } from "./radioGroupComposed-DGsMNWzv.js";
13
- import { t as v } from "./dropdownComposed-CDLGWwUd.js";
13
+ import { t as v } from "./dropdownComposed-CS2pyn-g.js";
14
14
  import { t as y } from "./incodeModule-BH9gV7jI.js";
15
15
  import { n as b, t as x } from "./requiredLabelHint-Dge9zK49.js";
16
16
  import { n as S, t as C } from "./optionAccessibleLabel-BTwHH_h-.js";
17
- import { t as w } from "./countrySelector-C_rFc47i.js";
17
+ import { t as w } from "./countrySelector-Dl02bpYj.js";
18
18
  import { DEV_ONLY_COUNTRIES as T, SUPPORTED_COUNTRIES as E, createEkybManager as D } from "@incodetech/core/ekyb";
19
19
  //#region src/modules/ekyb/countrySelector.tsx
20
20
  var O = ({ value: t, onChange: n }) => {
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./ekybModule-B_RmkqNS.js";
2
+ export { e as EkybModule };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../ekycModule-D_XadsdM.js";
1
+ import { t as e } from "../ekycModule-DvwM-YbU.js";
2
2
  export { e as EkycModule };
@@ -7,8 +7,8 @@ import { t as u } from "./spinner-CKnjVHxw.js";
7
7
  import { t as d } from "./button-DcCUEn2n.js";
8
8
  import { t as f } from "./verificationResult-CxBb6PGD.js";
9
9
  import { i as p, r as m, t as h } from "./radioGroupComposed-DGsMNWzv.js";
10
- import { t as g } from "./phoneInputComposed-DKFMES-V.js";
11
- import { t as _ } from "./dropdownComposed-CDLGWwUd.js";
10
+ import { t as g } from "./phoneInputComposed-BAXoouHv.js";
11
+ import { t as _ } from "./dropdownComposed-CS2pyn-g.js";
12
12
  import { t as v } from "./dateInputComposed-Ddd7HLyM.js";
13
13
  import { t as y } from "./incodeModule-BH9gV7jI.js";
14
14
  import { n as b, t as x } from "./requiredLabelHint-Dge9zK49.js";
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./ekycModule-DvwM-YbU.js";
2
+ export { e as EkycModule };
@@ -7,7 +7,7 @@ import { t as l } from "../page-C1yT4DLb.js";
7
7
  import { t as u } from "../button-DcCUEn2n.js";
8
8
  import { t as d } from "../otpInput-DQ-B9wf_.js";
9
9
  import { t as f } from "../incodeModule-BH9gV7jI.js";
10
- import { t as p } from "../emailInput-YXKc1ywq.js";
10
+ import { t as p } from "../emailInput-CycHYQLU.js";
11
11
  import { createEmailManager as m } from "@incodetech/core/email";
12
12
  //#region src/modules/email/email.tsx
13
13
  function h(e) {
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./i18n-Cw8Y_JeB.js";
2
2
  import { v as t } from "./vendor-preact-D6SntenC.js";
3
- import "./extensibility-uoS3TI6M.js";
3
+ import "./extensibility-IrKykXUz.js";
4
4
  import { t as n } from "./inputComposed-DAEey9xm.js";
5
5
  //#region src/modules/email/emailInput.tsx
6
6
  var r = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/, i = ({ value: i, emailError: a, label: o, labelHint: s, disabled: c = !1, required: l = !1, onEmailChange: u, onBlur: d }) => {
@@ -21,8 +21,8 @@ import "./inputComposed-eS4B0Mkh.js";
21
21
  import "./otpInput-DQ-B9wf_.js";
22
22
  import "./checkbox-DCCzBAuF.js";
23
23
  import "./radioGroupComposed-DGsMNWzv.js";
24
- import "./phoneInputComposed-DKFMES-V.js";
25
- import "./dropdownComposed-MsxE2JeL.js";
24
+ import "./phoneInputComposed-BAXoouHv.js";
25
+ import "./dropdownComposed-B4U0AIak.js";
26
26
  import "./dateInputComposed-Cg8BvYSK.js";
27
27
  import "./bottomSheet-QrpyatOD.js";
28
28
  import { n as k, t as A } from "./expiredId-DTx4gHaN.js";
@@ -4,7 +4,7 @@ import { c as n, s as r } from "./hooks-CLjlsC2g.js";
4
4
  import { n as i, t as a } from "./incodeComponent-MZEyrb1V.js";
5
5
  import { r as o } from "./loadingIcon-BN5YRQUb.js";
6
6
  import { t as s } from "./page-C1yT4DLb.js";
7
- import { _ as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w, v as T, y as E } from "./extensibility-uoS3TI6M.js";
7
+ import { _ as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w, v as T, y as E } from "./extensibility-IrKykXUz.js";
8
8
  import { a as D, i as O, n as k, o as A, r as j, t as M } from "./typography-CxjaknHN.js";
9
9
  import { t as N } from "./spinner-CKnjVHxw.js";
10
10
  import { t as P } from "./processing-ga3w-Z-3.js";
@@ -19,8 +19,8 @@ import { n as se, t as ce } from "./inputComposed-DAEey9xm.js";
19
19
  import { t as le } from "./otpInput-DQ-B9wf_.js";
20
20
  import { t as ue } from "./checkbox-DCCzBAuF.js";
21
21
  import { n as de, r as fe, t as pe } from "./radioGroupComposed-DGsMNWzv.js";
22
- import { i as me, n as he, r as ge, t as _e } from "./phoneInputComposed-DKFMES-V.js";
23
- import { t as ve } from "./dropdownComposed-CDLGWwUd.js";
22
+ import { i as me, n as he, r as ge, t as _e } from "./phoneInputComposed-BAXoouHv.js";
23
+ import { t as ve } from "./dropdownComposed-CS2pyn-g.js";
24
24
  import { t as ye } from "./dateInputComposed-Ddd7HLyM.js";
25
25
  import { t as be } from "./bottomSheet-QrpyatOD.js";
26
26
  export { te as BaseTutorial, be as BottomSheet, F as Button, W as CalendarIcon, b as CameraFrame, q as CameraIcon, f as CameraOverlay, d as CameraOverlayHeader, w as CameraView, B as CaptureButtonIcon, g as CaptureFooter, ue as Checkbox, Z as CheckmarkCompactIcon, z as CheckmarkIcon, U as ChevronDown, R as ChevronLeftIcon, Y as ChevronRightIcon, K as CloseIcon, ye as DateInputComposed, ve as DropdownComposed, re as ErrorContent, I as ErrorIcon, L as FileIcon, fe as FormField, H as HelpIcon, h as IdCapture, v as IdChooser, S as IdError, y as IdExpired, C as IdFlipAnimation, x as IdTutorial, a as IncodeComponent, se as Input, ce as InputComposed, i as LandscapeBlocker, X as LightningIcon, J as LockIcon, ee as Lottie, u as ManualCapture, $ as Modal, le as OtpInput, l as Overlay, s as Page, ie as Permissions, _e as PhoneInputComposed, P as Processing, E as ProgressBar, de as RadioButtonComposed, pe as RadioGroupComposed, G as SearchIcon, T as SegmentedDateInput, ne as SelfieCapture, ae as SelfieTutorial, o as Spacer, N as Spinner, Q as SuccessIcon, c as TextArea, p as TextAreaComposed, M as Title, k as TypographyH1, j as TypographyH3, O as TypographyH4, D as TypographyH5, A as TypographyP, _ as VerificationOptionCard, m as VerificationOptionCardList, oe as VerificationResult, V as WarningIcon, he as countries, ge as getCountryByCallingCode, me as getCountryByCode, t as setUiConfig, n as useManager, r as useScreenOrientation, e as useTranslation };
@@ -4,7 +4,7 @@ import { c as n, o as r } from "./hooks-CLjlsC2g.js";
4
4
  import { t as i } from "./incodeComponent-MZEyrb1V.js";
5
5
  import { r as a } from "./loadingIcon-BN5YRQUb.js";
6
6
  import { t as o } from "./page-C1yT4DLb.js";
7
- import "./extensibility-uoS3TI6M.js";
7
+ import "./extensibility-IrKykXUz.js";
8
8
  import { t as s } from "./button-DcCUEn2n.js";
9
9
  import { t as c } from "./verificationResult-CxBb6PGD.js";
10
10
  import { t as l } from "./inputComposed-DAEey9xm.js";
@@ -5,7 +5,7 @@ import { c as u } from "../hooks-CLjlsC2g.js";
5
5
  import { t as d } from "../incodeComponent-MZEyrb1V.js";
6
6
  import { t as f } from "../transitionSpinner-BWCiDYAb.js";
7
7
  import { t as p } from "../incodeModule-BH9gV7jI.js";
8
- import { _ as m, a as h, c as g, d as _, f as v, h as y, l as b, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as O, y as k } from "../useModuleLoader-C2VkEPxy.js";
8
+ import { _ as m, a as h, c as g, d as _, f as v, h as y, l as b, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as O, y as k } from "../useModuleLoader-ragcw2tj.js";
9
9
  import { getDeviceClass as A } from "@incodetech/core/device";
10
10
  import { getRequiredWasmPipelines as j } from "@incodetech/core/flow";
11
11
  import { bootstrapSession as M, refreshQrUrlUuid as N } from "@incodetech/core/session";
@@ -221,7 +221,7 @@ function G(e) {
221
221
  }
222
222
  //#endregion
223
223
  //#region src/modules/flow/flow.tsx
224
- var K = r(() => import("../homeScreen-cR7YDz0E.js").then((e) => ({ default: e.HomeScreen }))), q = ({ config: r, onFinish: s, onError: l }) => {
224
+ var K = r(() => import("../homeScreen-DhgSSJ42.js").then((e) => ({ default: e.HomeScreen }))), q = ({ config: r, onFinish: s, onError: l }) => {
225
225
  let { i18n: d } = e(), p = G(i(() => ({
226
226
  ...r,
227
227
  onError: l
@@ -4,7 +4,7 @@ import { c as r, o as i } from "../hooks-CLjlsC2g.js";
4
4
  import { t as a } from "../incodeComponent-MZEyrb1V.js";
5
5
  import { r as o } from "../loadingIcon-BN5YRQUb.js";
6
6
  import { t as s } from "../page-C1yT4DLb.js";
7
- import "../extensibility-uoS3TI6M.js";
7
+ import "../extensibility-IrKykXUz.js";
8
8
  import { t as c } from "../autoFocusTitle-BpYdaSUM.js";
9
9
  import { t as l } from "../verificationResult-CxBb6PGD.js";
10
10
  import { t as u } from "../otpInput-DQ-B9wf_.js";
@@ -5,8 +5,8 @@ import { r as l } from "./loadingIcon-BN5YRQUb.js";
5
5
  import "./incode-logo-DX016usY.js";
6
6
  import { t as u } from "./button-DcCUEn2n.js";
7
7
  import { t as d } from "./modal-ZqAhwiRF.js";
8
- import { t as f } from "./dropdownComposed-CDLGWwUd.js";
9
- import "./dropdownComposed-MsxE2JeL.js";
8
+ import { t as f } from "./dropdownComposed-CS2pyn-g.js";
9
+ import "./dropdownComposed-B4U0AIak.js";
10
10
  //#region src/shared/homeScreen/language.ts
11
11
  function p(e, t) {
12
12
  let [n, ...r] = Array.from(e);
package/dist/id/id.es.js CHANGED
@@ -4,7 +4,7 @@ import { c as u, o as d } from "../hooks-CLjlsC2g.js";
4
4
  import { t as f } from "../incodeComponent-MZEyrb1V.js";
5
5
  import { n as p } from "../loadingIcon-BN5YRQUb.js";
6
6
  import { t as m } from "../page-C1yT4DLb.js";
7
- import { a as h, i as g, n as _, o as ee, r as te, s as v, t as y } from "../extensibility-uoS3TI6M.js";
7
+ import { a as h, i as g, n as _, o as ee, r as te, s as v, t as y } from "../extensibility-IrKykXUz.js";
8
8
  import { t as b } from "../spinner-CKnjVHxw.js";
9
9
  import "../spinner-B4dcie2T.js";
10
10
  import { t as x } from "../transitionSpinner-BWCiDYAb.js";
@@ -3,7 +3,7 @@ import { d as t, v as n } from "./vendor-preact-D6SntenC.js";
3
3
  import { c as r, o as i } from "./hooks-CLjlsC2g.js";
4
4
  import { t as a } from "./incodeComponent-MZEyrb1V.js";
5
5
  import { t as o } from "./page-C1yT4DLb.js";
6
- import "./extensibility-uoS3TI6M.js";
6
+ import "./extensibility-IrKykXUz.js";
7
7
  import { t as s } from "./button-DcCUEn2n.js";
8
8
  import { t as c } from "./verificationResult-CxBb6PGD.js";
9
9
  import { t as l } from "./inputComposed-DAEey9xm.js";
@@ -7,7 +7,7 @@ import { t as l } from "../page-C1yT4DLb.js";
7
7
  import { t as u } from "../button-DcCUEn2n.js";
8
8
  import { t as d } from "../otpInput-DQ-B9wf_.js";
9
9
  import { t as f } from "../checkbox-DCCzBAuF.js";
10
- import { t as p } from "../phoneInputComposed-DKFMES-V.js";
10
+ import { t as p } from "../phoneInputComposed-BAXoouHv.js";
11
11
  import { t as m } from "../incodeModule-BH9gV7jI.js";
12
12
  import { createPhoneManager as h } from "@incodetech/core/phone";
13
13
  //#region src/modules/phone/phone.tsx
@@ -3,7 +3,7 @@ import { t as s } from "./errorIcon-DpHzAoAo.js";
3
3
  import "./icons-9I5g9-_1.js";
4
4
  import { t as c } from "./successIcon-SlKgTSty.js";
5
5
  import { t as l } from "./inputComposed-DAEey9xm.js";
6
- import { t as u } from "./dropdownComposed-CDLGWwUd.js";
6
+ import { t as u } from "./dropdownComposed-CS2pyn-g.js";
7
7
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
8
8
  var d = {
9
9
  version: 4,
@@ -11,7 +11,7 @@ import { t as _ } from "./button-DcCUEn2n.js";
11
11
  import "./icons-9I5g9-_1.js";
12
12
  import { t as v } from "./successIcon-SlKgTSty.js";
13
13
  import { t as y } from "./autoFocusTitle-BpYdaSUM.js";
14
- import { r as b, t as x } from "./phoneInputComposed-DKFMES-V.js";
14
+ import { r as b, t as x } from "./phoneInputComposed-BAXoouHv.js";
15
15
  import { t as S } from "./incodeModule-BH9gV7jI.js";
16
16
  import { t as C } from "./snackbar-YzOg-BFn.js";
17
17
  import { t as w } from "./tabs-D4BYhNn4.js";
@@ -4,7 +4,7 @@ import { c, o as l } from "../hooks-CLjlsC2g.js";
4
4
  import { t as u } from "../incodeComponent-MZEyrb1V.js";
5
5
  import { r as d } from "../loadingIcon-BN5YRQUb.js";
6
6
  import { t as f } from "../page-C1yT4DLb.js";
7
- import "../extensibility-uoS3TI6M.js";
7
+ import "../extensibility-IrKykXUz.js";
8
8
  import { t as p } from "../button-DcCUEn2n.js";
9
9
  import { t as m } from "../verificationResult-CxBb6PGD.js";
10
10
  import { t as h } from "../incodeModule-BH9gV7jI.js";
@@ -164,7 +164,7 @@ async function E() {
164
164
  }
165
165
  //#endregion
166
166
  //#region src/modules/flow/flowInit.ts
167
- var D = () => import("./id/id.es.js").then((e) => e.Id), O = () => import("./homeScreen-cR7YDz0E.js").then((e) => e.HomeScreen), k, A = new Set(["IP_ADDRESS", "TRUST_GRAPH"]);
167
+ var D = () => import("./id/id.es.js").then((e) => e.Id), O = () => import("./homeScreen-DhgSSJ42.js").then((e) => e.HomeScreen), k, A = new Set(["IP_ADDRESS", "TRUST_GRAPH"]);
168
168
  function j(e) {
169
169
  if (e === "IP_ADDRESS") return () => import("@incodetech/core/flow").then((e) => e.noOpFlowModuleMachine);
170
170
  if (e === "TRUST_GRAPH") return () => import("@incodetech/core/trust-graph").then((e) => e.trustGraphMachine);
@@ -208,7 +208,7 @@ function M(e) {
208
208
  return t;
209
209
  }
210
210
  var N = {
211
- REDIRECT_TO_MOBILE: () => import("./redirectToMobile-d-xlylP7.js").then((e) => e.RedirectToMobile),
211
+ REDIRECT_TO_MOBILE: () => import("./redirectToMobile-zKUzFuw7.js").then((e) => e.RedirectToMobile),
212
212
  PHONE: () => import("./phone/phone.es.js").then((e) => e.Phone),
213
213
  EMAIL: () => import("./email/email.es.js").then((e) => e.Email),
214
214
  SELFIE: () => import("./selfie/selfie.es.js").then((e) => e.Selfie),
@@ -222,25 +222,25 @@ var N = {
222
222
  GOVT_VALIDATION_PROVISIONING: () => import("./governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
223
223
  INE_VALIDATION: () => import("./governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
224
224
  GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((e) => e.Geolocation),
225
- EXTERNAL_VERIFICATION: () => import("./ekycModule-DHBzhbE-.js").then((e) => e.EkycModule),
226
- EKYB: () => import("./ekybModule-DUY52XDj.js").then((e) => e.EkybModule),
227
- DOCUMENT_CAPTURE: () => import("./documentCapture-mBxaB8YF.js").then((e) => e.DocumentCapture),
228
- ADDRESS: () => import("./documentCapture-mBxaB8YF.js").then((e) => e.DocumentCapture),
225
+ EXTERNAL_VERIFICATION: () => import("./ekycModule-NFCMR5M7.js").then((e) => e.EkycModule),
226
+ EKYB: () => import("./ekybModule-BteSR_yD.js").then((e) => e.EkybModule),
227
+ DOCUMENT_CAPTURE: () => import("./documentCapture-CTzd8guW.js").then((e) => e.DocumentCapture),
228
+ ADDRESS: () => import("./documentCapture-CTzd8guW.js").then((e) => e.DocumentCapture),
229
229
  COMBINED_CONSENT: () => import("./consent/consent.es.js").then((e) => e.Consent),
230
230
  MANDATORY_CONSENT: () => import("./mandatoryConsent-DDcfqL4p.js").then((e) => e.MandatoryConsent),
231
231
  SIGNATURE: () => import("./signature/signature.es.js").then((e) => e.Signature),
232
- ID_OCR: () => import("./idOcr-CrgyUY7x.js").then((e) => e.IdOcr),
232
+ ID_OCR: () => import("./idOcr-Bj4v3mH1.js").then((e) => e.IdOcr),
233
233
  CPF_OCR: () => import("./cpfOcr-B4poKspt.js").then((e) => e.CpfOcr),
234
234
  ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((e) => e.Antifraud),
235
235
  CUSTOM_FIELDS: () => import("./customFields-DGxV-Y05.js").then((e) => e.CustomFields),
236
236
  WATCHLIST: () => import("./watchlist/watchlist.es.js").then((e) => e.Watchlist),
237
- WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-BJFTUIsP.js").then((e) => e.WatchlistForBusiness),
237
+ WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-BzLRz_0L.js").then((e) => e.WatchlistForBusiness),
238
238
  INCODE_WATCHLIST: () => import("./customWatchlist-GOZBS_PR.js").then((e) => e.CustomWatchlist),
239
239
  AE_SIGNATURE: () => import("./ae-signature/ae-signature.es.js").then((e) => e.AeSignature),
240
240
  QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((e) => e.QeSignature),
241
241
  CROSS_DOCUMENT_DATA_MATCH: () => import("./cross-document-data-match/cross-document-data-match.es.js").then((e) => e.CrossDocumentDataMatch),
242
- DYNAMIC_FORMS: () => import("./dynamicForms-BHgS3Lup.js").then((e) => e.DynamicForms),
243
- FIELD_COMPARISON: () => import("./fieldComparison-23YERjOb.js").then((e) => e.FieldComparison)
242
+ DYNAMIC_FORMS: () => import("./dynamicForms-CHXFMqWS.js").then((e) => e.DynamicForms),
243
+ FIELD_COMPARISON: () => import("./fieldComparison-D0G1I_Eh.js").then((e) => e.FieldComparison)
244
244
  };
245
245
  function P() {
246
246
  return O();
@@ -8,7 +8,7 @@ import { t as l } from "./button-DcCUEn2n.js";
8
8
  import { t as u } from "./successIcon-SlKgTSty.js";
9
9
  import { t as d } from "./inputComposed-DAEey9xm.js";
10
10
  import { t as f } from "./incodeModule-BH9gV7jI.js";
11
- import { t as p } from "./countrySelector-C_rFc47i.js";
11
+ import { t as p } from "./countrySelector-Dl02bpYj.js";
12
12
  import { t as m } from "./statusPage-DwY5vcgk.js";
13
13
  import { createWatchlistForBusinessManager as h } from "@incodetech/core/watchlist-for-business";
14
14
  //#region src/modules/watchlist-for-business/watchlistForBusiness.tsx
@@ -5,7 +5,7 @@ import { c as l } from "../hooks-CLjlsC2g.js";
5
5
  import { t as u } from "../incodeComponent-MZEyrb1V.js";
6
6
  import { t as d } from "../transitionSpinner-BWCiDYAb.js";
7
7
  import { t as f } from "../incodeModule-BH9gV7jI.js";
8
- import { a as p, g as m, i as h, l as g, o as _, s as v, t as y, v as b, y as x } from "../useModuleLoader-C2VkEPxy.js";
8
+ import { a as p, g as m, i as h, l as g, o as _, s as v, t as y, v as b, y as x } from "../useModuleLoader-ragcw2tj.js";
9
9
  import { resolveWasmConfig as S, upgradeToWasmHttpClient as C, warmupWasm as w } from "@incodetech/core/wasm";
10
10
  import { getDeviceClass as T } from "@incodetech/core/device";
11
11
  import { bootstrapSession as E, refreshQrUrlUuid as D } from "@incodetech/core/session";
@@ -13,7 +13,7 @@ import { createWorkflowManager as O } from "@incodetech/core/workflow";
13
13
  //#region src/modules/workflow/workflowInit.ts
14
14
  var k = {
15
15
  ...g,
16
- REDIRECT_TO_MOBILE: () => import("../redirectToMobile-d-xlylP7.js").then((e) => e.RedirectToMobile),
16
+ REDIRECT_TO_MOBILE: () => import("../redirectToMobile-zKUzFuw7.js").then((e) => e.RedirectToMobile),
17
17
  ID: () => import("../id-verification/id-verification.es.js").then((e) => e.IdVerification),
18
18
  IDENTITY_REUSE: () => import("../identity-reuse/identity-reuse.es.js").then((e) => e.IdentityReuse)
19
19
  };
@@ -126,7 +126,7 @@ function I(e) {
126
126
  }
127
127
  //#endregion
128
128
  //#region src/modules/workflow/workflow.tsx
129
- var L = r(() => import("../homeScreen-cR7YDz0E.js").then((e) => ({ default: e.HomeScreen })));
129
+ var L = r(() => import("../homeScreen-DhgSSJ42.js").then((e) => ({ default: e.HomeScreen })));
130
130
  function R(e) {
131
131
  let { moduleKey: t, config: n, workflowId: r, authHint: i, lang: a, mergeSessionRecordings: o, ageAssurance: s } = e;
132
132
  switch (t) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260528-ea3f2abe",
3
+ "version": "0.0.0-dev-20260528-ef6f8814",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -255,7 +255,7 @@
255
255
  "qrcode": "^1.5.4",
256
256
  "signature_pad": "^5.1.3",
257
257
  "tailwindcss": "^4.1.17",
258
- "@incodetech/core": "0.0.0-dev-20260528-ea3f2abe"
258
+ "@incodetech/core": "0.0.0-dev-20260528-ef6f8814"
259
259
  },
260
260
  "devDependencies": {
261
261
  "@microsoft/api-extractor": "^7.53.3",
@@ -1,286 +0,0 @@
1
- import { _ as e, l as t, p as n, v as r } from "./vendor-preact-D6SntenC.js";
2
- import { n as i } from "./loadingIcon-BN5YRQUb.js";
3
- import { t as a } from "./errorIcon-DpHzAoAo.js";
4
- import { l as o, n as s, o as c, u as ee } from "./icons-9I5g9-_1.js";
5
- import { t as te } from "./successIcon-SlKgTSty.js";
6
- //#region src/shared/dropdownComposed/dropdownComposed.tsx
7
- var l = ({ id: l, label: u, labelHint: d, placeholder: f = "Choose an option", value: p, options: m, onChange: h, error: g, helper: _, showErrorIcon: v, showHelperIcon: y, suppressMessages: b = !1, disabled: x = !1, required: S, searchable: C = !1, searchPlaceholder: w = "Search...", noResultsText: T = "No results found", name: E, tabIndex: ne, onKeyDown: re, onBlur: ie, renderSelectedLabel: D, siblingElement: O, enterKeyHint: ae, class: k, "aria-label": A, "data-testid": j }) => {
8
- let [M, N] = n(!1), [P, F] = n(!1), [I, L] = n(-1), [R, z] = n(""), B = t(null), V = t(null), H = t(null), U = t([]), W = t(null), G = t(""), K = t(), q = m.find((e) => e.value === p), oe = q ? D ? D(q) : q.label : f, J = C && R ? m.filter((e) => e.label.toLowerCase().includes(R.toLowerCase())) : m, Y = `${l}-label`, X = `${l}-listbox`, Z = `${l}-helper`, Q = `${l}-error`, se = b ? "" : [_ ? Z : null, g ? Q : null].filter(Boolean).join(" ");
9
- e(() => {
10
- if (!M) return;
11
- let e = requestAnimationFrame(() => {
12
- C && W.current && W.current.focus(), requestAnimationFrame(() => {
13
- H.current?.scrollIntoView({
14
- behavior: "smooth",
15
- block: "nearest",
16
- inline: "nearest"
17
- });
18
- });
19
- });
20
- return () => cancelAnimationFrame(e);
21
- }, [M, C]), e(() => {
22
- M || (L(-1), z(""));
23
- }, [M]), e(() => {
24
- I >= 0 && U.current[I] && U.current[I]?.scrollIntoView({
25
- block: "nearest",
26
- inline: "nearest"
27
- });
28
- }, [I]), e(() => () => {
29
- K.current && clearTimeout(K.current);
30
- }, []);
31
- let ce = () => {
32
- x || N((e) => !e);
33
- }, $ = (e) => {
34
- h(e), N(!1), L(-1), V.current?.focus();
35
- }, le = () => {
36
- F(!0);
37
- }, ue = (e) => {
38
- F(!1), B.current?.contains(e.relatedTarget) || (N(!1), ie?.());
39
- }, de = (e) => {
40
- if (x) return;
41
- re?.(e);
42
- let { key: t } = e;
43
- if (t.length === 1 && /^[a-zA-Z0-9]$/.test(t)) {
44
- e.preventDefault(), K.current && clearTimeout(K.current), G.current += t.toLowerCase();
45
- let n = J.findIndex((e) => e.label.toLowerCase().startsWith(G.current));
46
- n !== -1 && (M || N(!0), L(n)), K.current = setTimeout(() => {
47
- G.current = "";
48
- }, 500);
49
- return;
50
- }
51
- switch (t) {
52
- case "ArrowDown":
53
- e.preventDefault(), M ? L((e) => e < J.length - 1 ? e + 1 : e) : (N(!0), L(0));
54
- break;
55
- case "ArrowUp":
56
- e.preventDefault(), M ? L((e) => e > 0 ? e - 1 : e) : (N(!0), L(J.length - 1));
57
- break;
58
- case "Home":
59
- e.preventDefault(), M && L(0);
60
- break;
61
- case "End":
62
- e.preventDefault(), M && L(J.length - 1);
63
- break;
64
- case "Enter":
65
- e.preventDefault(), M && I >= 0 && J[I] ? $(J[I].value) : M || N(!0);
66
- break;
67
- case " ":
68
- e.preventDefault(), M && I >= 0 && J[I] ? $(J[I].value) : M || (N(!0), L(0));
69
- break;
70
- case "Escape":
71
- e.preventDefault(), M && (N(!1), L(-1), V.current?.focus());
72
- break;
73
- case "Tab":
74
- M && (N(!1), L(-1));
75
- break;
76
- default: break;
77
- }
78
- }, fe = (e) => {
79
- let { key: t } = e;
80
- switch (t) {
81
- case "ArrowDown":
82
- e.preventDefault(), L((e) => e < J.length - 1 ? e + 1 : e);
83
- break;
84
- case "ArrowUp":
85
- e.preventDefault(), L((e) => e > 0 ? e - 1 : e);
86
- break;
87
- case "Home":
88
- e.preventDefault(), L(0);
89
- break;
90
- case "End":
91
- e.preventDefault(), L(J.length - 1);
92
- break;
93
- case "Enter":
94
- e.preventDefault(), I >= 0 && J[I] && $(J[I].value);
95
- break;
96
- case "Escape":
97
- e.preventDefault(), N(!1), L(-1), V.current?.focus();
98
- break;
99
- case "Tab":
100
- R || (N(!1), L(-1));
101
- break;
102
- default: break;
103
- }
104
- };
105
- return /* @__PURE__ */ r("div", {
106
- class: i("IncodeDropdownComposed", k),
107
- ref: B,
108
- onBlur: ue,
109
- children: [
110
- E && /* @__PURE__ */ r("input", {
111
- type: "hidden",
112
- name: E,
113
- value: p || "",
114
- disabled: x,
115
- required: S
116
- }),
117
- u && /* @__PURE__ */ r("label", {
118
- class: "IncodeDropdownComposedLabel",
119
- id: Y,
120
- htmlFor: l,
121
- "data-testid": `${l}-label`,
122
- children: [u, d && /* @__PURE__ */ r("span", {
123
- class: "IncodeDropdownComposedLabelHint",
124
- "data-testid": `${l}-label-hint`,
125
- children: d
126
- })]
127
- }),
128
- /* @__PURE__ */ r("div", {
129
- class: "IncodeDropdownComposedWrapper",
130
- children: [/* @__PURE__ */ r("div", {
131
- class: i("IncodeDropdownComposedTriggerRow", { IncodeDropdownComposedTriggerRowWithSibling: !!O }),
132
- children: [/* @__PURE__ */ r("button", {
133
- ref: V,
134
- type: "button",
135
- id: l,
136
- class: "IncodeDropdownComposedTrigger",
137
- onClick: ce,
138
- onFocus: le,
139
- onKeyDown: de,
140
- tabIndex: x ? -1 : ne ?? 0,
141
- disabled: x,
142
- "aria-haspopup": "listbox",
143
- "aria-expanded": M ? "true" : "false",
144
- "aria-disabled": x ? "true" : void 0,
145
- "aria-labelledby": u ? Y : void 0,
146
- "aria-label": u ? void 0 : A,
147
- "aria-controls": M ? X : void 0,
148
- "aria-activedescendant": M && I >= 0 ? `${l}-option-${I}` : void 0,
149
- "aria-invalid": g ? "true" : void 0,
150
- "aria-required": S ? "true" : void 0,
151
- "aria-describedby": se || void 0,
152
- "data-error": g ? "true" : void 0,
153
- "data-focused": P || M ? "true" : void 0,
154
- "data-testid": j,
155
- children: [/* @__PURE__ */ r("span", {
156
- class: q ? "IncodeDropdownComposedTriggerText" : "IncodeDropdownComposedTriggerPlaceholder",
157
- "aria-hidden": !u && A ? "true" : void 0,
158
- children: oe
159
- }), /* @__PURE__ */ r("span", {
160
- class: "IncodeDropdownComposedTriggerIcon",
161
- "aria-hidden": "true",
162
- "data-open": M,
163
- children: /* @__PURE__ */ r(o, {})
164
- })]
165
- }), O && /* @__PURE__ */ r("div", {
166
- class: "IncodeDropdownComposedSibling",
167
- children: O
168
- })]
169
- }), M && /* @__PURE__ */ r("div", {
170
- ref: H,
171
- class: "IncodeDropdownComposedList",
172
- "data-error": g ? "true" : void 0,
173
- children: [C && /* @__PURE__ */ r("div", {
174
- class: "IncodeDropdownComposedSearchWrapper",
175
- children: /* @__PURE__ */ r("div", {
176
- class: "IncodeDropdownComposedSearchInner",
177
- children: [/* @__PURE__ */ r("input", {
178
- ref: W,
179
- type: "text",
180
- class: "IncodeDropdownComposedSearchInput",
181
- value: R,
182
- onInput: (e) => {
183
- z(e.target.value), L(0);
184
- },
185
- onKeyDown: fe,
186
- placeholder: w,
187
- role: "combobox",
188
- "aria-autocomplete": "list",
189
- "aria-expanded": "true",
190
- "aria-controls": X,
191
- "aria-activedescendant": I >= 0 ? `${l}-option-${I}` : void 0,
192
- "aria-label": w,
193
- autocomplete: "off"
194
- }), R ? /* @__PURE__ */ r("button", {
195
- type: "button",
196
- class: "IncodeDropdownComposedCloseIconButton",
197
- onMouseDown: (e) => e.preventDefault(),
198
- onClick: () => {
199
- R && (z(""), W.current?.focus());
200
- },
201
- "aria-label": "Clear search query",
202
- children: /* @__PURE__ */ r(c, {
203
- width: 20,
204
- height: 20,
205
- fillColor: "var(--icon-neutral-500)"
206
- })
207
- }) : /* @__PURE__ */ r("span", {
208
- class: "IncodeDropdownComposedSearchIcon",
209
- "aria-hidden": "true",
210
- children: /* @__PURE__ */ r(s, { size: 20 })
211
- })]
212
- })
213
- }), /* @__PURE__ */ r("div", {
214
- id: X,
215
- role: "listbox",
216
- "aria-labelledby": u ? Y : void 0,
217
- "aria-label": u ? void 0 : A ?? f,
218
- class: "IncodeDropdownComposedOptionsScroll",
219
- children: J.length === 0 ? /* @__PURE__ */ r("div", {
220
- class: "IncodeDropdownComposedNoResults",
221
- children: T
222
- }) : J.map((e, t) => {
223
- let n = p === e.value;
224
- return /* @__PURE__ */ r("div", {
225
- id: `${l}-option-${t}`,
226
- role: "option",
227
- "aria-label": e.ariaLabel,
228
- "aria-selected": n ? "true" : "false",
229
- class: "IncodeDropdownComposedOption",
230
- "data-highlighted": I === t,
231
- ref: (e) => {
232
- U.current[t] = e;
233
- },
234
- onClick: () => $(e.value),
235
- onMouseDown: (e) => e.preventDefault(),
236
- onMouseEnter: () => L(t),
237
- children: [e.ariaLabel ? /* @__PURE__ */ r("span", {
238
- "aria-hidden": "true",
239
- children: e.label
240
- }) : e.label, n && /* @__PURE__ */ r("span", {
241
- class: "IncodeDropdownComposedCheckmarkIcon",
242
- "aria-hidden": "true",
243
- children: /* @__PURE__ */ r(ee, {})
244
- })]
245
- }, e.value);
246
- })
247
- })]
248
- })]
249
- }),
250
- C && /* @__PURE__ */ r("div", {
251
- class: "IncodeDropdownComposedLiveRegion",
252
- role: "status",
253
- "aria-live": "polite",
254
- "aria-atomic": "true",
255
- children: M && R ? J.length === 0 ? T : `${J.length} result${J.length === 1 ? "" : "s"} available` : ""
256
- }),
257
- !b && g && /* @__PURE__ */ r("div", {
258
- class: "IncodeDropdownComposedErrorWrapper",
259
- role: "alert",
260
- "data-testid": `${l}-error-wrapper`,
261
- children: [v && /* @__PURE__ */ r("div", {
262
- class: "IncodeDropdownComposedIconWrapper",
263
- children: /* @__PURE__ */ r(a, { size: 17 })
264
- }), /* @__PURE__ */ r("p", {
265
- id: Q,
266
- class: "IncodeDropdownComposedError",
267
- children: g
268
- })]
269
- }),
270
- !b && _ && !g && /* @__PURE__ */ r("div", {
271
- class: "IncodeDropdownComposedHelperWrapper",
272
- "data-testid": `${l}-helper-wrapper`,
273
- children: [y && /* @__PURE__ */ r("div", {
274
- class: "IncodeDropdownComposedIconWrapper",
275
- children: /* @__PURE__ */ r(te, { size: 17 })
276
- }), /* @__PURE__ */ r("p", {
277
- id: Z,
278
- class: "IncodeDropdownComposedHelper",
279
- children: _
280
- })]
281
- })
282
- ]
283
- });
284
- };
285
- //#endregion
286
- export { l as t };
@@ -1 +0,0 @@
1
- import "./dropdownComposed-CDLGWwUd.js";
@@ -1,2 +0,0 @@
1
- import { t as e } from "./ekybModule-B25nRtND.js";
2
- export { e as EkybModule };
@@ -1,2 +0,0 @@
1
- import { t as e } from "./ekycModule-D_XadsdM.js";
2
- export { e as EkycModule };