@reportportal/ui-kit 0.0.1-alpha.263 → 0.0.1-alpha.264

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.
@@ -1,5 +1,5 @@
1
- import { jsx as r, jsxs as B, Fragment as he } from "react/jsx-runtime";
2
- import { useState as ne, useRef as Ce, useEffect as we, useCallback as K, forwardRef as je, useLayoutEffect as He, useMemo as We } from "react";
1
+ import { jsx as r, jsxs as O, Fragment as le } from "react/jsx-runtime";
2
+ import { useState as re, useRef as Ce, useEffect as ve, useCallback as K, forwardRef as je, useLayoutEffect as He, useMemo as We } from "react";
3
3
  import { c as G } from "./bind-06a7ff84.js";
4
4
  import { Scrollbars as Ye } from "rc-scrollbars";
5
5
  import { B as Ke } from "./bubblesLoader-f3ffa240.js";
@@ -7,11 +7,11 @@ import { B as Xe } from "./button-7ab874f3.js";
7
7
  import { S as Ge } from "./plus-199fb2a8.js";
8
8
  import { i as Me } from "./isEmpty-ccacb5ff.js";
9
9
  import { createPortal as Je } from "react-dom";
10
- import _e from "downshift";
11
- import { useFloating as Be, autoUpdate as Oe, flip as Qe, size as Ze } from "@floating-ui/react";
10
+ import he from "downshift";
11
+ import { useFloating as Be, autoUpdate as Le, flip as Qe, size as Ze } from "@floating-ui/react";
12
12
  import { F as qe } from "./fieldText-b9b0ea9f.js";
13
- import { S as Te } from "./dropdown-0260bb66.js";
14
- import { E as $e, A as Ue, T as Ve } from "./constants-85822a6b.js";
13
+ import { S as $e } from "./dropdown-0260bb66.js";
14
+ import { E as De, A as Ue, T as Ve } from "./constants-85822a6b.js";
15
15
  import { S as et } from "./close-4d480ef7.js";
16
16
  import { S as tt } from "./clear-53660571.js";
17
17
  import "./capslockIcon-b9dcdce5.js";
@@ -34,95 +34,95 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
34
34
  "single-line": "_single-line_1rpph_58",
35
35
  "cross-icon": "_cross-icon_1rpph_64",
36
36
  input: st
37
- }, pe = G.bind(nt), rt = (t) => t.scrollWidth > t.clientWidth, lt = ({
37
+ }, _e = G.bind(nt), rt = (t) => t.scrollWidth > t.clientWidth, lt = ({
38
38
  item: t,
39
39
  onRemoveItem: e,
40
40
  disabled: n = !1,
41
41
  mobileDisabled: o = !1,
42
42
  parseValueToString: s,
43
43
  error: l = !1,
44
- editItem: h,
45
- editable: d = !1,
44
+ editItem: _,
45
+ editable: u = !1,
46
46
  getAdditionalCreationCondition: b = () => !0,
47
47
  storedOption: N = !0,
48
48
  highlightUnStoredItem: f = !1,
49
- variant: R = "light",
50
- getItemName: C,
51
- singleLine: m = !1,
52
- className: F,
49
+ variant: z = "light",
50
+ getItemName: k,
51
+ singleLine: p = !1,
52
+ className: R,
53
53
  textClassName: P
54
54
  }) => {
55
- const [y, E] = ne(!1), [L, O] = ne(""), [c, i] = ne(!1), a = Ce(null), p = () => {
56
- !n && d && !N && (O((C == null ? void 0 : C(t)) || (s == null ? void 0 : s(t)) || ""), E(!0));
55
+ const [E, y] = re(!1), [B, F] = re(""), [c, i] = re(!1), d = Ce(null), h = () => {
56
+ !n && u && !N && (F((k == null ? void 0 : k(t)) || (s == null ? void 0 : s(t)) || ""), y(!0));
57
57
  }, g = (x) => {
58
- O(x.target.value);
59
- }, S = (x) => {
60
- const $ = b(L);
61
- x.key === "Enter" && $ && (h(t, L), E(!1), O(""));
62
- }, _ = () => {
63
- E(!1), O("");
64
- }, k = (x) => {
58
+ F(x.target.value);
59
+ }, a = (x) => {
60
+ const $ = b(B);
61
+ x.key === "Enter" && $ && (_(t, B), y(!1), F(""));
62
+ }, A = () => {
63
+ y(!1), F("");
64
+ }, C = (x) => {
65
65
  x.stopPropagation(), e(t);
66
- }, M = (s == null ? void 0 : s(t)) || "";
67
- we(() => {
68
- if (a.current && m) {
66
+ }, j = (s == null ? void 0 : s(t)) || "";
67
+ ve(() => {
68
+ if (d.current && p) {
69
69
  const x = () => {
70
- a.current && i(rt(a.current));
70
+ d.current && i(rt(d.current));
71
71
  };
72
72
  if (x(), typeof ResizeObserver < "u") {
73
73
  const $ = new ResizeObserver(x);
74
- return $.observe(a.current), () => $.disconnect();
74
+ return $.observe(d.current), () => $.disconnect();
75
75
  }
76
76
  } else
77
77
  i(!1);
78
- }, [M, m]);
79
- const A = pe(
78
+ }, [j, p]);
79
+ const S = _e(
80
80
  "selected-item-text",
81
81
  {
82
- "single-line": m
82
+ "single-line": p
83
83
  },
84
84
  P
85
- ), H = pe(
85
+ ), H = _e(
86
86
  "selected-item",
87
- R,
87
+ z,
88
88
  {
89
89
  [`validation-${l}`]: l,
90
90
  disabled: n,
91
91
  "mobile-disabled": o,
92
92
  "highlight-un-stored-item": f && !N
93
93
  },
94
- F
94
+ R
95
95
  );
96
- return y ? /* @__PURE__ */ r(
96
+ return E ? /* @__PURE__ */ r(
97
97
  "input",
98
98
  {
99
99
  autoFocus: !0,
100
- value: L,
100
+ value: B,
101
101
  onChange: g,
102
- onKeyDown: S,
103
- onBlur: _,
104
- className: pe("input")
102
+ onKeyDown: a,
103
+ onBlur: A,
104
+ className: _e("input")
105
105
  }
106
- ) : /* @__PURE__ */ B("div", { className: H, onClick: p, children: [
106
+ ) : /* @__PURE__ */ O("div", { className: H, onClick: h, children: [
107
107
  /* @__PURE__ */ r(
108
108
  "span",
109
109
  {
110
- ref: a,
111
- className: A,
112
- title: m && c ? M : void 0,
113
- children: M
110
+ ref: d,
111
+ className: S,
112
+ title: p && c ? j : void 0,
113
+ children: j
114
114
  }
115
115
  ),
116
116
  !n && /* @__PURE__ */ r(
117
117
  "button",
118
118
  {
119
119
  type: "button",
120
- className: pe("cross-icon", {
120
+ className: _e("cross-icon", {
121
121
  [`validation-${l}`]: l,
122
122
  "mobile-disabled": o,
123
123
  disabled: n
124
124
  }),
125
- onClick: k,
125
+ onClick: C,
126
126
  children: /* @__PURE__ */ r(et, {})
127
127
  }
128
128
  )
@@ -134,8 +134,8 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
134
134
  storedItemsMap: o = {},
135
135
  highlightUnStoredItem: s = !1,
136
136
  renderCustomSelectedItem: l,
137
- selectedItemSingleLine: h,
138
- selectedItemClassName: d,
137
+ selectedItemSingleLine: _,
138
+ selectedItemClassName: u,
139
139
  selectedItemTextClassName: b,
140
140
  ...N
141
141
  }) => t.map((f) => l ? l(f) : /* @__PURE__ */ r(
@@ -146,15 +146,15 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
146
146
  item: f,
147
147
  storedOption: !!o[e(f)],
148
148
  highlightUnStoredItem: s,
149
- singleLine: h,
150
- className: d,
149
+ singleLine: _,
150
+ className: u,
151
151
  textClassName: b,
152
152
  ...N
153
153
  },
154
154
  e == null ? void 0 : e(f)
155
- )), it = "_prompt_1xfmd_16", at = {
156
- prompt: it
157
- }, dt = G.bind(at), ut = ({ children: t = null }) => /* @__PURE__ */ r("div", { className: dt("prompt"), children: t }), mt = "_item_zw4ux_16", pt = "_divider_zw4ux_24", ft = "_active_zw4ux_49", _t = "_value_zw4ux_55", ht = "_tag_zw4ux_69", wt = "_disabled_zw4ux_80", vt = {
155
+ )), at = "_prompt_1xfmd_16", it = {
156
+ prompt: at
157
+ }, dt = G.bind(it), ut = ({ children: t = null }) => /* @__PURE__ */ r("div", { className: dt("prompt"), children: t }), mt = "_item_zw4ux_16", pt = "_divider_zw4ux_24", ft = "_active_zw4ux_49", _t = "_value_zw4ux_55", ht = "_tag_zw4ux_69", vt = "_disabled_zw4ux_80", wt = {
158
158
  item: mt,
159
159
  divider: pt,
160
160
  "new-item": "_new-item_zw4ux_31",
@@ -163,22 +163,22 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
163
163
  "key-variant": "_key-variant_zw4ux_66",
164
164
  tag: ht,
165
165
  "button-active": "_button-active_zw4ux_80",
166
- disabled: wt,
166
+ disabled: vt,
167
167
  "value-variant": "_value-variant_zw4ux_100"
168
- }, V = G.bind(vt), Fe = ({
168
+ }, V = G.bind(wt), Fe = ({
169
169
  isActive: t = !1,
170
170
  isSelected: e = !1,
171
171
  isNew: n = !1,
172
172
  children: o = null,
173
173
  disabled: s = !1,
174
174
  optionVariant: l = "",
175
- newItemButtonText: h = "",
176
- ...d
175
+ newItemButtonText: _ = "",
176
+ ...u
177
177
  }) => {
178
- const b = () => h || (l === "key-variant" ? "New key" : "New value");
179
- return n ? /* @__PURE__ */ B(he, { children: [
178
+ const b = () => _ || (l === "key-variant" ? "New key" : "New value");
179
+ return n ? /* @__PURE__ */ O(le, { children: [
180
180
  /* @__PURE__ */ r("div", { className: V("divider") }),
181
- /* @__PURE__ */ B(
181
+ /* @__PURE__ */ O(
182
182
  "li",
183
183
  {
184
184
  className: V("new-item", l, {
@@ -186,13 +186,13 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
186
186
  selected: e,
187
187
  disabled: s
188
188
  }),
189
- ...d,
189
+ ...u,
190
190
  children: [
191
191
  /* @__PURE__ */ r("span", { className: V("value"), children: o }),
192
192
  /* @__PURE__ */ r(
193
193
  Xe,
194
194
  {
195
- ...!s && d,
195
+ ...!s && u,
196
196
  className: V({ "button-active": t }),
197
197
  icon: /* @__PURE__ */ r(Ge, {}),
198
198
  variant: "text",
@@ -210,89 +210,92 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
210
210
  selected: e,
211
211
  disabled: s
212
212
  }),
213
- ...s ? {} : d,
213
+ ...s ? {} : u,
214
214
  children: /* @__PURE__ */ r("span", { className: V("label", "tag"), children: o })
215
215
  }
216
216
  );
217
- }, bt = "_container_12uzd_16", yt = {
217
+ }, bt = "_container_wpl1u_16", yt = {
218
218
  container: bt,
219
- "empty-list-message": "_empty-list-message_12uzd_20",
220
- "limitation-item": "_limitation-item_12uzd_28"
221
- }, fe = G.bind(yt), gt = (t) => {
219
+ "empty-list-message": "_empty-list-message_wpl1u_20",
220
+ "menu-footer-divider": "_menu-footer-divider_wpl1u_28",
221
+ "menu-footer": "_menu-footer_wpl1u_28"
222
+ }, ne = G.bind(yt), gt = (t) => {
222
223
  const {
223
224
  options: e,
224
225
  async: n,
225
226
  inputValue: o,
226
227
  loading: s,
227
228
  createWithoutConfirmation: l,
228
- customEmptyListMessage: h,
229
- customNoMatchesMessage: d,
229
+ customEmptyListMessage: _,
230
+ customNoMatchesMessage: u,
230
231
  optionVariant: b,
231
232
  newItemButtonText: N,
232
233
  renderOption: f,
233
- getUniqKey: R,
234
- getItemProps: C,
235
- parseValueToString: m,
236
- limitationText: F = "Too many results. Type to search",
237
- optionsLimit: P = 0,
238
- shouldShowEmptyListMessage: y = !0
239
- } = t, E = K(() => (e || []).filter((_) => m(_).toUpperCase().indexOf((o.toUpperCase() || "").trim()) > -1), [o, e, m]), L = K(
240
- (_, k, M = !1) => f ? f(_, k, M, C) : /* @__PURE__ */ r(
234
+ getUniqKey: z,
235
+ getItemProps: k,
236
+ parseValueToString: p,
237
+ menuFooter: R,
238
+ shouldShowEmptyListMessage: P = !0
239
+ } = t, E = K(() => (e || []).filter((a) => p(a).toUpperCase().indexOf((o.toUpperCase() || "").trim()) > -1), [o, e, p]), y = K(
240
+ (a, A, C = !1) => f ? f(a, A, C, k) : /* @__PURE__ */ r(
241
241
  Fe,
242
242
  {
243
243
  optionVariant: b,
244
- ...C({ item: _, index: k }),
245
- isNew: M,
244
+ ...k({ item: a, index: A }),
245
+ isNew: C,
246
246
  newItemButtonText: N,
247
- children: m(_)
247
+ children: p(a)
248
248
  },
249
- (R == null ? void 0 : R(_)) || m(_)
249
+ (z == null ? void 0 : z(a)) || p(a)
250
250
  ),
251
- [C, R, N, b, m, f]
252
- ), O = K(
253
- (_) => _.length ? _.map((k, M) => L(k, M)) : "",
254
- [L]
255
- ), c = K(
256
- (_) => {
257
- const k = _.length;
258
- return /* @__PURE__ */ r("div", { className: fe({ container: !k }), children: /* @__PURE__ */ r(
251
+ [k, z, N, b, p, f]
252
+ ), B = K(
253
+ (a) => a.length ? a.map((A, C) => y(A, C)) : "",
254
+ [y]
255
+ ), F = K(
256
+ (a) => {
257
+ const A = a.length;
258
+ return /* @__PURE__ */ r("div", { className: ne({ container: !A }), children: /* @__PURE__ */ r(
259
259
  Fe,
260
260
  {
261
261
  optionVariant: b,
262
262
  isNew: !0,
263
263
  newItemButtonText: N,
264
- ...C({ item: o, index: k }),
265
- children: m(o)
264
+ ...k({ item: o, index: A }),
265
+ children: p(o)
266
266
  },
267
- m(o)
267
+ p(o)
268
268
  ) });
269
269
  },
270
- [C, o, N, b, m]
271
- ), i = K(
272
- (_) => s ? /* @__PURE__ */ B(he, { children: [
270
+ [k, o, N, b, p]
271
+ ), c = K(
272
+ (a) => s ? /* @__PURE__ */ O(le, { children: [
273
273
  /* @__PURE__ */ r(ut, { children: /* @__PURE__ */ r(Ke, {}) }),
274
- !l && c(_)
274
+ !l && F(a)
275
275
  ] }) : "",
276
- [l, s, c]
277
- ), a = K(() => {
278
- const _ = (e == null ? void 0 : e.length) === 0 ? h || "No available options" : d || "No matches found";
279
- return /* @__PURE__ */ r("div", { className: fe("empty-list-message"), children: _ });
280
- }, [h, d, e == null ? void 0 : e.length]), p = n ? e : E(), g = i(e);
281
- if (g)
282
- return g;
283
- const S = Me(p);
284
- return S && !y && l ? null : /* @__PURE__ */ B("div", { className: fe({ container: e.length }), children: [
285
- /* @__PURE__ */ B(Ye, { autoHeight: !0, autoHeightMax: 216, hideTracksWhenNotNeeded: !0, children: [
286
- S ? y && a() : O(p),
287
- (p == null ? void 0 : p.length) > P && P > 0 && F ? /* @__PURE__ */ r("li", { className: fe("limitation-item"), "aria-hidden": "true", children: F }) : null
276
+ [l, s, F]
277
+ ), i = K(() => {
278
+ const a = (e == null ? void 0 : e.length) === 0 ? _ || "No available options" : u || "No matches found";
279
+ return /* @__PURE__ */ r("div", { className: ne("empty-list-message"), children: a });
280
+ }, [_, u, e == null ? void 0 : e.length]), d = n ? e : E(), h = c(e);
281
+ if (h)
282
+ return h;
283
+ const g = Me(d);
284
+ return g && !P && l ? null : /* @__PURE__ */ O("div", { className: ne({ container: e.length }), children: [
285
+ /* @__PURE__ */ O(Ye, { autoHeight: !0, autoHeightMax: 216, hideTracksWhenNotNeeded: !0, children: [
286
+ g ? P && i() : B(d),
287
+ R ? /* @__PURE__ */ O(le, { children: [
288
+ /* @__PURE__ */ r("div", { className: ne("menu-footer-divider"), "aria-hidden": "true" }),
289
+ /* @__PURE__ */ r("div", { className: ne("menu-footer"), "aria-hidden": "true", children: R })
290
+ ] }) : null
288
291
  ] }),
289
- !l && c(p)
292
+ !l && F(d)
290
293
  ] });
291
294
  }, xt = "_menu_f64z5_16", Nt = "_opened_f64z5_34", Et = "_dark_f64z5_37", It = {
292
295
  menu: xt,
293
296
  opened: Nt,
294
297
  dark: Et
295
- }, St = G.bind(It), kt = (t, e) => !t || t <= e.trim().length, De = je(
298
+ }, St = G.bind(It), kt = (t, e) => !t || t <= e.trim().length, Te = je(
296
299
  ({
297
300
  isOpen: t = !1,
298
301
  style: e = {},
@@ -300,8 +303,8 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
300
303
  isDropdownMode: o,
301
304
  inputValue: s = "",
302
305
  className: l = "",
303
- portalMenuAttribute: h = null,
304
- ...d
306
+ portalMenuAttribute: _ = null,
307
+ ...u
305
308
  }, b) => /* @__PURE__ */ r(
306
309
  "ul",
307
310
  {
@@ -312,11 +315,11 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
312
315
  l
313
316
  ),
314
317
  style: e,
315
- ...h ? { [h]: "" } : {},
316
- children: /* @__PURE__ */ r(gt, { inputValue: s, ...d })
318
+ ..._ ? { [_]: "" } : {},
319
+ children: /* @__PURE__ */ r(gt, { inputValue: s, ...u })
317
320
  }
318
321
  )
319
- ), Le = (t, e) => typeof t == "string" ? t : e ? String(t[e(t)]) : "", ee = (t, e) => {
322
+ ), Oe = (t, e) => typeof t == "string" ? t : e ? String(t[e(t)]) : "", ee = (t, e) => {
320
323
  var o;
321
324
  return t === e ? !0 : !!(t && e && typeof t == "object" && typeof e == "object" && Object.keys(t).length === Object.keys(e).length && ((o = Object.entries(t)) != null && o.every(([s, l]) => ee(l, e[s]))));
322
325
  }, At = (t, e, n) => typeof t == "string" ? t === e : n ? (() => {
@@ -329,65 +332,65 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
329
332
  handleUnStoredItemCb: o = null,
330
333
  existingItemsMap: s = {},
331
334
  children: l,
332
- customizeNewSelectedValue: h = (f) => f,
333
- getOptionUniqKey: d,
335
+ customizeNewSelectedValue: _ = (f) => f,
336
+ getOptionUniqKey: u,
334
337
  getOptionUniqKeyValue: b,
335
338
  ...N
336
339
  }) => {
337
- const [f, R] = ne(s), C = (c, i) => {
338
- const a = {
340
+ const [f, z] = re(s), k = (c, i) => {
341
+ const d = {
339
342
  ...f
340
343
  };
341
- c.forEach((p) => {
342
- if (t.find((g) => At(g, p, d))) {
343
- const g = Le(p, d);
344
- a[g] = !0;
344
+ c.forEach((h) => {
345
+ if (t.find((g) => At(g, h, u))) {
346
+ const g = Oe(h, u);
347
+ d[g] = !0;
345
348
  }
346
- }), R(a), i(a);
347
- }, m = (c, i) => {
348
- const a = Le(c, d);
349
- if (a in f) {
350
- const p = { ...f };
351
- delete p[a], R(p), i(p);
349
+ }), z(d), i(d);
350
+ }, p = (c, i) => {
351
+ const d = Oe(c, u);
352
+ if (d in f) {
353
+ const h = { ...f };
354
+ delete h[d], z(h), i(h);
352
355
  } else
353
356
  i(f);
354
- }, F = (c, i) => {
355
- const S = (Array.isArray(c) ? c : [c]).map((A) => h(A)).flatMap((A) => Array.isArray(A) ? A : [A]).filter(
356
- (A, H, x) => x.findIndex(($) => ee($, A)) === H
357
+ }, R = (c, i) => {
358
+ const a = (Array.isArray(c) ? c : [c]).map((S) => _(S)).flatMap((S) => Array.isArray(S) ? S : [S]).filter(
359
+ (S, H, x) => x.findIndex(($) => ee($, S)) === H
357
360
  );
358
- if (!S || S.length === 0)
361
+ if (!a || a.length === 0)
359
362
  return;
360
- const k = [...n.filter(
361
- (A) => !S.some((H) => ee(H, A))
362
- ), ...S];
363
- e == null || e(k, i), C(S, (A) => o == null ? void 0 : o(k, A));
363
+ const C = [...n.filter(
364
+ (S) => !a.some((H) => ee(H, S))
365
+ ), ...a];
366
+ e == null || e(C, i), k(a, (S) => o == null ? void 0 : o(C, S));
364
367
  }, P = (c, i) => {
365
- const a = n.indexOf(c), p = [...n];
366
- p.splice(a, 1, i), e == null || e(p, null);
367
- }, y = (c, i) => {
368
- const a = n.filter((g) => !ee(g, c));
369
- e == null || e(a, i), m(c, (g) => o == null ? void 0 : o(a, g));
368
+ const d = n.indexOf(c), h = [...n];
369
+ h.splice(d, 1, i), e == null || e(h, null);
370
370
  }, E = (c, i) => {
371
- c && F(c, i);
372
- }, L = (c) => ({
373
- removeItem: y,
371
+ const d = n.filter((g) => !ee(g, c));
372
+ e == null || e(d, i), p(c, (g) => o == null ? void 0 : o(d, g));
373
+ }, y = (c, i) => {
374
+ c && R(c, i);
375
+ }, B = (c) => ({
376
+ removeItem: E,
374
377
  editItem: P,
375
378
  handleChange: e,
376
379
  getOptionUniqKeyValue: b,
377
380
  storedItemsMap: f,
378
- batchAddItems: (a) => {
379
- F(a, c);
381
+ batchAddItems: (d) => {
382
+ R(d, c);
380
383
  },
381
384
  ...c
382
385
  });
383
386
  return /* @__PURE__ */ r(
384
- _e,
387
+ he,
385
388
  {
386
389
  ...N,
387
390
  stateReducer: (c, i) => {
388
391
  switch (i.type) {
389
- case _e.stateChangeTypes.keyDownEnter:
390
- case _e.stateChangeTypes.clickItem:
392
+ case he.stateChangeTypes.keyDownEnter:
393
+ case he.stateChangeTypes.clickItem:
391
394
  return {
392
395
  ...i,
393
396
  highlightedIndex: c.highlightedIndex,
@@ -397,12 +400,12 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
397
400
  return i;
398
401
  }
399
402
  },
400
- onChange: E,
403
+ onChange: y,
401
404
  selectedItem: null,
402
- children: (c) => l == null ? void 0 : l(L(c))
405
+ children: (c) => l == null ? void 0 : l(B(c))
403
406
  }
404
407
  );
405
- }, Mt = "_autocomplete_1so4a_16", zt = "_disabled_1so4a_32", Rt = "_error_1so4a_35", Ft = "_touched_1so4a_35", Lt = "_input_1so4a_77", Pt = {
408
+ }, Mt = "_autocomplete_1so4a_16", zt = "_disabled_1so4a_32", Rt = "_error_1so4a_35", Ft = "_touched_1so4a_35", Ot = "_input_1so4a_77", Pt = {
406
409
  autocomplete: Mt,
407
410
  "autocomplete-wrapper": "_autocomplete-wrapper_1so4a_28",
408
411
  disabled: zt,
@@ -413,7 +416,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
413
416
  "autocomplete-input": "_autocomplete-input_1so4a_60",
414
417
  "single-line-mode": "_single-line-mode_1so4a_68",
415
418
  "mobile-disabled": "_mobile-disabled_1so4a_72",
416
- input: Lt,
419
+ input: Ot,
417
420
  "type-number": "_type-number_1so4a_101",
418
421
  "error-text": "_error-text_1so4a_112",
419
422
  "dropdown-button": "_dropdown-button_1so4a_121",
@@ -426,121 +429,121 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
426
429
  },
427
430
  value: s = [],
428
431
  placeholder: l = "",
429
- error: h = "",
430
- touched: d = !1,
432
+ error: _ = "",
433
+ touched: u = !1,
431
434
  creatable: b = !1,
432
435
  editable: N = !1,
433
436
  onChange: f = () => {
434
437
  },
435
- onFocus: R = () => {
438
+ onFocus: z = () => {
436
439
  },
437
- onBlur: C = () => {
440
+ onBlur: k = () => {
438
441
  },
439
- disabled: m = !1,
440
- isDropdownMode: F = !1,
442
+ disabled: p = !1,
443
+ isDropdownMode: R = !1,
441
444
  mobileDisabled: P = !1,
442
- inputProps: y = {},
443
- parseValueToString: E = (u) => u == null ? "" : String(u),
444
- maxLength: L = null,
445
- async: O = !1,
445
+ inputProps: E = {},
446
+ parseValueToString: y = (m) => m == null ? "" : String(m),
447
+ maxLength: B = null,
448
+ async: F = !1,
446
449
  customClass: c = "",
447
450
  createWithoutConfirmation: i = !1,
448
- getItemValidationErrorType: a = null,
449
- clearItemsError: p = () => {
451
+ getItemValidationErrorType: d = null,
452
+ clearItemsError: h = () => {
450
453
  },
451
454
  getAdditionalCreationCondition: g = () => !0,
452
- highlightUnStoredItem: S = !1,
453
- parseInputValueFn: _ = null,
454
- handleUnStoredItemCb: k = null,
455
- dataAutomationId: M = "",
456
- existingItemsMap: A = {},
457
- customizeNewSelectedValue: H = (u) => u,
455
+ highlightUnStoredItem: a = !1,
456
+ parseInputValueFn: A = null,
457
+ handleUnStoredItemCb: C = null,
458
+ dataAutomationId: j = "",
459
+ existingItemsMap: S = {},
460
+ customizeNewSelectedValue: H = (m) => m,
458
461
  renderCustomSelectedItem: x,
459
462
  useFixedPositioning: $,
460
- newItemButtonText: re = "",
461
- menuClassName: ve = "",
463
+ newItemButtonText: ce = "",
464
+ menuClassName: we = "",
462
465
  selectedItemSingleLine: Y,
463
466
  selectedItemClassName: be,
464
- selectedItemTextClassName: le,
465
- ...ce
466
- } = t, { refs: ie, floatingStyles: ye } = Be({
467
+ selectedItemTextClassName: ae,
468
+ ...ie
469
+ } = t, { refs: de, floatingStyles: ye } = Be({
467
470
  placement: "bottom-start",
468
471
  strategy: $ ? "fixed" : "absolute",
469
- whileElementsMounted: Oe
470
- }), J = s.length === 0 && !m ? l : "", te = Ce(null);
471
- we(() => {
472
- p();
473
- }, [p, s]);
474
- const ge = (u, I) => {
475
- f(u, I);
476
- }, xe = (u, I, z) => ({ item: v, index: T, ...Z }) => u({
477
- item: v,
478
- index: T,
479
- isSelected: z.some((oe) => ee(oe, v)),
472
+ whileElementsMounted: Le
473
+ }), J = s.length === 0 && !p ? l : "", te = Ce(null);
474
+ ve(() => {
475
+ h();
476
+ }, [h, s]);
477
+ const ge = (m, I) => {
478
+ f(m, I);
479
+ }, xe = (m, I, M) => ({ item: w, index: L, ...Z }) => m({
480
+ item: w,
481
+ index: L,
482
+ isSelected: M.some((oe) => ee(oe, w)),
480
483
  ...Z,
481
- isActive: I === T
484
+ isActive: I === L
482
485
  }), Ne = ({
483
- event: u,
486
+ event: m,
484
487
  removeItem: I,
485
- inputValue: z
488
+ inputValue: M
486
489
  }) => {
487
- u.key === "Backspace" && !z && s.length && I(s[s.length - 1], null);
488
- }, w = ({
489
- inputValue: u,
490
+ m.key === "Backspace" && !M && s.length && I(s[s.length - 1], null);
491
+ }, v = ({
492
+ inputValue: m,
490
493
  selectItem: I,
491
- clearSelection: z,
492
- batchAddItems: v
494
+ clearSelection: M,
495
+ batchAddItems: w
493
496
  }) => {
494
- if (_) {
495
- const T = _(u);
496
- v(T.length ? T : [u]), z();
497
+ if (A) {
498
+ const L = A(m);
499
+ w(L.length ? L : [m]), M();
497
500
  } else
498
- I(u), z();
499
- }, W = (u) => (I) => {
500
- u(I, null), te.current && te.current.focus();
501
- }, Q = e.filter((u) => s.every((I) => !ee(I, u)));
501
+ I(m), M();
502
+ }, W = (m) => (I) => {
503
+ m(I, null), te.current && te.current.focus();
504
+ }, Q = e.filter((m) => s.every((I) => !ee(I, m)));
502
505
  return /* @__PURE__ */ r(
503
506
  Ct,
504
507
  {
505
508
  onChange: ge,
506
- itemToString: E,
509
+ itemToString: y,
507
510
  selectedItems: s,
508
511
  onStateChange: o,
509
512
  options: e,
510
- existingItemsMap: A,
511
- handleUnStoredItemCb: k,
513
+ existingItemsMap: S,
514
+ handleUnStoredItemCb: C,
512
515
  customizeNewSelectedValue: H,
513
516
  children: ({
514
- getInputProps: u,
517
+ getInputProps: m,
515
518
  getItemProps: I,
516
- isOpen: z,
517
- inputValue: v = "",
518
- highlightedIndex: T,
519
+ isOpen: M,
520
+ inputValue: w = "",
521
+ highlightedIndex: L,
519
522
  removeItem: Z,
520
523
  editItem: oe,
521
524
  openMenu: q,
522
525
  selectItem: se,
523
- clearSelection: ae,
526
+ clearSelection: ue,
524
527
  toggleMenu: Ee,
525
528
  storedItemsMap: U,
526
529
  getRootProps: Ie,
527
- batchAddItems: de
530
+ batchAddItems: me
528
531
  }) => {
529
- const ze = Ie(void 0, { suppressRefError: !0 }), ue = v ?? "";
530
- return /* @__PURE__ */ B("div", { ...ze, className: X("autocomplete-wrapper"), children: [
531
- /* @__PURE__ */ B(he, { children: [
532
- /* @__PURE__ */ B(
532
+ const ze = Ie(void 0, { suppressRefError: !0 }), pe = w ?? "";
533
+ return /* @__PURE__ */ O("div", { ...ze, className: X("autocomplete-wrapper"), children: [
534
+ /* @__PURE__ */ O(le, { children: [
535
+ /* @__PURE__ */ O(
533
536
  "div",
534
537
  {
535
- ref: ie.setReference,
538
+ ref: de.setReference,
536
539
  className: X("autocomplete", c, {
537
540
  "mobile-disabled": P,
538
- error: h,
539
- touched: d,
540
- disabled: m
541
+ error: _,
542
+ touched: u,
543
+ disabled: p
541
544
  }),
542
545
  children: [
543
- /* @__PURE__ */ B(
546
+ /* @__PURE__ */ O(
544
547
  "div",
545
548
  {
546
549
  className: X("autocomplete-input", {
@@ -553,103 +556,103 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
553
556
  {
554
557
  items: s,
555
558
  onRemoveItem: W(Z),
556
- disabled: m,
559
+ disabled: p,
557
560
  mobileDisabled: P,
558
- parseValueToString: E,
559
- getItemValidationErrorType: a,
561
+ parseValueToString: y,
562
+ getItemValidationErrorType: d,
560
563
  renderCustomSelectedItem: x,
561
564
  editItem: oe,
562
565
  editable: N,
563
566
  getAdditionalCreationCondition: g,
564
567
  storedItemsMap: U,
565
- highlightUnStoredItem: S,
568
+ highlightUnStoredItem: a,
566
569
  selectedItemSingleLine: Y,
567
570
  selectedItemClassName: be,
568
- selectedItemTextClassName: le
571
+ selectedItemTextClassName: ae
569
572
  }
570
573
  ),
571
574
  /* @__PURE__ */ r(
572
575
  "input",
573
576
  {
574
- ...u({
577
+ ...m({
575
578
  ref: te,
576
579
  placeholder: J,
577
- maxLength: L,
580
+ maxLength: B,
578
581
  onFocus: () => {
579
- F && q(), R();
582
+ R && q(), z();
580
583
  },
581
584
  onKeyDown: (D) => {
582
- D.key === $e && v && b && g(v) && w({
583
- inputValue: v,
585
+ D.key === De && w && b && g(w) && v({
586
+ inputValue: w,
584
587
  selectItem: se,
585
- clearSelection: ae,
586
- batchAddItems: de
587
- }), Ne({ event: D, removeItem: Z, inputValue: v });
588
+ clearSelection: ue,
589
+ batchAddItems: me
590
+ }), Ne({ event: D, removeItem: Z, inputValue: w });
588
591
  },
589
592
  onBlur: () => {
590
- C(), v && b && g(v) && w({
591
- inputValue: v,
593
+ k(), w && b && g(w) && v({
594
+ inputValue: w,
592
595
  selectItem: se,
593
- clearSelection: ae,
594
- batchAddItems: de
596
+ clearSelection: ue,
597
+ batchAddItems: me
595
598
  });
596
599
  },
597
- disabled: m,
598
- ...y
600
+ disabled: p,
601
+ ...E
599
602
  }),
600
- className: X("input", { disabled: m }, y.className),
601
- "data-automation-id": M
603
+ className: X("input", { disabled: p }, E.className),
604
+ "data-automation-id": j
602
605
  }
603
606
  )
604
607
  ]
605
608
  }
606
609
  ),
607
- (y == null ? void 0 : y.clearable) && !Me(s) && /* @__PURE__ */ r(
610
+ (E == null ? void 0 : E.clearable) && !Me(s) && /* @__PURE__ */ r(
608
611
  "button",
609
612
  {
610
613
  type: "button",
611
- className: X("clear-icon", { "clear-icon--disabled": m }),
614
+ className: X("clear-icon", { "clear-icon--disabled": p }),
612
615
  onClick: () => {
613
616
  var D;
614
- return !m && ((D = y == null ? void 0 : y.onClear) == null ? void 0 : D.call(y));
617
+ return !p && ((D = E == null ? void 0 : E.onClear) == null ? void 0 : D.call(E));
615
618
  },
616
619
  onMouseDown: (D) => D.preventDefault(),
617
620
  children: /* @__PURE__ */ r(tt, {})
618
621
  }
619
622
  ),
620
- F && /* @__PURE__ */ r(
623
+ R && /* @__PURE__ */ r(
621
624
  "button",
622
625
  {
623
626
  type: "button",
624
- className: X("dropdown-button", { "icon-reversed": z }),
627
+ className: X("dropdown-button", { "icon-reversed": M }),
625
628
  onClick: () => Ee(),
626
629
  "aria-label": "Toggle dropdown",
627
- "aria-expanded": z,
628
- children: /* @__PURE__ */ r(Te, {})
630
+ "aria-expanded": M,
631
+ children: /* @__PURE__ */ r($e, {})
629
632
  }
630
633
  )
631
634
  ]
632
635
  }
633
636
  ),
634
- h && d && /* @__PURE__ */ r("span", { className: X("error-text"), children: h })
637
+ _ && u && /* @__PURE__ */ r("span", { className: X("error-text"), children: _ })
635
638
  ] }),
636
639
  /* @__PURE__ */ r(
637
- De,
640
+ Te,
638
641
  {
639
- isOpen: z,
642
+ isOpen: M,
640
643
  loading: n,
641
- async: O,
642
- ref: ie.setFloating,
643
- newItemButtonText: re,
644
- isDropdownMode: F,
644
+ async: F,
645
+ ref: de.setFloating,
646
+ newItemButtonText: ce,
647
+ isDropdownMode: R,
645
648
  style: ye,
646
- inputValue: ue.trim(),
647
- getItemProps: xe(I, T, s),
648
- parseValueToString: E,
649
+ inputValue: pe.trim(),
650
+ getItemProps: xe(I, L, s),
651
+ parseValueToString: y,
649
652
  createWithoutConfirmation: i,
650
653
  options: Q,
651
- className: ve,
652
- ...ce
654
+ className: we,
655
+ ...ie
653
656
  }
654
657
  )
655
658
  ] });
@@ -665,21 +668,21 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
665
668
  if (!n)
666
669
  return;
667
670
  window.scrollY !== e && window.scrollTo(0, e);
668
- }, l = (d) => {
669
- n && (d.preventDefault(), d.stopImmediatePropagation(), s());
671
+ }, l = (u) => {
672
+ n && (u.preventDefault(), u.stopImmediatePropagation(), s());
670
673
  };
671
674
  e = window.scrollY, window.addEventListener("scroll", l, { passive: !1, capture: !0 }), requestAnimationFrame(() => {
672
675
  e = window.scrollY, s();
673
676
  });
674
- const h = setTimeout(() => {
677
+ const _ = setTimeout(() => {
675
678
  n = !1;
676
679
  }, o);
677
680
  return () => {
678
- clearTimeout(h), window.removeEventListener("scroll", l, { capture: !0 });
681
+ clearTimeout(_), window.removeEventListener("scroll", l, { capture: !0 });
679
682
  };
680
683
  }, [t]);
681
- }, Ot = ({ skip: t, reference: e }) => {
682
- we(() => {
684
+ }, Lt = ({ skip: t, reference: e }) => {
685
+ ve(() => {
683
686
  if (t)
684
687
  return;
685
688
  const n = () => {
@@ -690,8 +693,8 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
690
693
  window.removeEventListener("resize", n);
691
694
  };
692
695
  }, [t, e]);
693
- }, Tt = ({ skip: t, onClose: e, menuRef: n }) => {
694
- we(() => {
696
+ }, $t = ({ skip: t, onClose: e, menuRef: n }) => {
697
+ ve(() => {
695
698
  if (t)
696
699
  return;
697
700
  const o = (s) => {
@@ -702,11 +705,11 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
702
705
  window.removeEventListener("scroll", o, !0);
703
706
  };
704
707
  }, [t, e, n]);
705
- }, $t = {
708
+ }, Dt = {
706
709
  "input-wrapper": "_input-wrapper_d9vma_1",
707
710
  "dropdown-button": "_dropdown-button_d9vma_6",
708
711
  "icon-reversed": "_icon-reversed_d9vma_14"
709
- }, Pe = G.bind($t), Dt = 0, jt = Qe({
712
+ }, Pe = G.bind(Dt), Tt = 0, jt = Qe({
710
713
  fallbackPlacements: ["bottom-start", "top-start", "bottom", "top"],
711
714
  boundary: document == null ? void 0 : document.documentElement,
712
715
  rootBoundary: "viewport"
@@ -716,7 +719,7 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
716
719
  width: `${t.reference.width}px`
717
720
  });
718
721
  }
719
- }), wo = (t) => {
722
+ }), vo = (t) => {
720
723
  const {
721
724
  options: e = [],
722
725
  value: n,
@@ -725,156 +728,156 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
725
728
  },
726
729
  onFocus: l = () => {
727
730
  },
728
- onBlur: h = () => {
731
+ onBlur: _ = () => {
729
732
  },
730
- disabled: d = !1,
733
+ disabled: u = !1,
731
734
  inputProps: b = {},
732
- parseValueToString: N = (w) => w === null ? "" : String(w),
735
+ parseValueToString: N = (v) => v === null ? "" : String(v),
733
736
  minLength: f = 1,
734
- skipOptionCreation: R = !1,
735
- maxLength: C = null,
736
- optionVariant: m = "",
737
- isRequired: F = !1,
737
+ skipOptionCreation: z = !1,
738
+ maxLength: k = null,
739
+ optionVariant: p = "",
740
+ isRequired: R = !1,
738
741
  error: P = "",
739
- touched: y = !1,
740
- setTouch: E = () => {
742
+ touched: E = !1,
743
+ setTouch: y = () => {
741
744
  },
742
- createWithoutConfirmation: L = !1,
743
- menuClassName: O = "",
745
+ createWithoutConfirmation: B = !1,
746
+ menuClassName: F = "",
744
747
  icon: c,
745
748
  isDropdownMode: i = !1,
746
- isOptionUnique: a,
747
- refFunction: p,
749
+ isOptionUnique: d,
750
+ refFunction: h,
748
751
  stateReducer: g,
749
- onStateChange: S,
750
- useFixedPositioning: _,
751
- dropdownMatchInputWidth: k = !1,
752
- withMenuFlip: M = !1,
753
- placement: A = "bottom-start",
752
+ onStateChange: a,
753
+ useFixedPositioning: A,
754
+ dropdownMatchInputWidth: C = !1,
755
+ withMenuFlip: j = !1,
756
+ placement: S = "bottom-start",
754
757
  newItemButtonText: H = "",
755
758
  menuPortalRoot: x,
756
759
  ...$
757
- } = t, [re, ve] = ne(!1), Y = Ce(null), be = K(() => {
758
- var w;
759
- return (w = Y.current) == null ? void 0 : w.call(Y);
760
- }, []), le = !re || !x, ce = x || _ ? "fixed" : "absolute", ie = !re || ce === "absolute", ye = We(
760
+ } = t, [ce, we] = re(!1), Y = Ce(null), be = K(() => {
761
+ var v;
762
+ return (v = Y.current) == null ? void 0 : v.call(Y);
763
+ }, []), ae = !ce || !x, ie = x || A ? "fixed" : "absolute", de = !ce || ie === "absolute", ye = We(
761
764
  () => [
762
- ...M ? [jt] : [],
763
- ...k ? [Ht] : []
765
+ ...j ? [jt] : [],
766
+ ...C ? [Ht] : []
764
767
  ],
765
- [M, k]
768
+ [j, C]
766
769
  ), { refs: J, floatingStyles: te } = Be({
767
- placement: A,
768
- whileElementsMounted: Oe,
769
- strategy: ce,
770
+ placement: S,
771
+ whileElementsMounted: Le,
772
+ strategy: ie,
770
773
  middleware: ye
771
774
  });
772
- Bt({ skip: le }), Ot({ skip: le, reference: J.reference }), Tt({
773
- skip: ie,
775
+ Bt({ skip: ae }), Lt({ skip: ae, reference: J.reference }), $t({
776
+ skip: de,
774
777
  onClose: be,
775
778
  menuRef: J.floating
776
779
  });
777
- const ge = (w, W, Q) => ({ item: u, index: I, ...z }) => w({
778
- item: u,
780
+ const ge = (v, W, Q) => ({ item: m, index: I, ...M }) => v({
781
+ item: m,
779
782
  index: I,
780
- isSelected: Q !== null && Q === u,
781
- ...z,
783
+ isSelected: Q !== null && Q === m,
784
+ ...M,
782
785
  isActive: W === I
783
- }), xe = (w, W) => {
784
- w.key === Ve && (w.preventDefault(), W(e.length));
786
+ }), xe = (v, W) => {
787
+ v.key === Ve && (v.preventDefault(), W(e.length));
785
788
  }, Ne = K(
786
- (w, ...W) => {
787
- (w == null ? void 0 : w.isOpen) !== void 0 && ve(w.isOpen), S == null || S(w, ...W);
789
+ (v, ...W) => {
790
+ (v == null ? void 0 : v.isOpen) !== void 0 && we(v.isOpen), a == null || a(v, ...W);
788
791
  },
789
- [S]
792
+ [a]
790
793
  );
791
794
  return /* @__PURE__ */ r(
792
- _e,
795
+ he,
793
796
  {
794
797
  onChange: s,
795
798
  itemToString: N,
796
799
  selectedItem: n,
797
800
  onStateChange: Ne,
798
- defaultHighlightedIndex: Dt,
801
+ defaultHighlightedIndex: Tt,
799
802
  stateReducer: g,
800
803
  children: ({
801
- getInputProps: w,
804
+ getInputProps: v,
802
805
  getItemProps: W,
803
806
  setHighlightedIndex: Q,
804
- toggleMenu: u,
807
+ toggleMenu: m,
805
808
  openMenu: I,
806
- closeMenu: z,
807
- isOpen: v,
808
- inputValue: T,
809
+ closeMenu: M,
810
+ isOpen: w,
811
+ inputValue: L,
809
812
  highlightedIndex: Z,
810
813
  getRootProps: oe,
811
814
  selectItem: q
812
815
  }) => {
813
- const se = oe(void 0, { suppressRefError: !0 }), ae = {
816
+ const se = oe(void 0, { suppressRefError: !0 }), ue = {
814
817
  ...se,
815
- ref: (j) => (J.setReference(j), se.ref(j))
818
+ ref: (T) => (J.setReference(T), se.ref(T))
816
819
  };
817
- Y.current || (Y.current = z);
818
- const Ee = T ?? "", { onClear: U, clearable: Ie, ...de } = b, ue = Ie && n !== null, D = (...j) => {
819
- q(null), U == null || U(...j);
820
+ Y.current || (Y.current = M);
821
+ const Ee = L ?? "", { onClear: U, clearable: Ie, ...me } = b, pe = Ie && n !== null, D = (...T) => {
822
+ q(null), U == null || U(...T);
820
823
  }, Se = /* @__PURE__ */ r(
821
- De,
824
+ Te,
822
825
  {
823
- isOpen: v,
826
+ isOpen: w,
824
827
  isDropdownMode: i,
825
828
  style: te,
826
829
  ref: J.setFloating,
827
830
  portalMenuAttribute: x ? Ue : null,
828
831
  minLength: f,
829
- inputValue: (T || "").trim(),
832
+ inputValue: (L || "").trim(),
830
833
  getItemProps: ge(W, Z, n),
831
834
  parseValueToString: N,
832
- optionVariant: m,
833
- createWithoutConfirmation: L,
834
- className: O,
835
+ optionVariant: p,
836
+ createWithoutConfirmation: B,
837
+ className: F,
835
838
  options: e,
836
839
  newItemButtonText: H,
837
840
  ...$
838
841
  }
839
842
  );
840
- return /* @__PURE__ */ B(he, { children: [
841
- /* @__PURE__ */ B("div", { className: Pe("input-wrapper"), ...ae, children: [
843
+ return /* @__PURE__ */ O(le, { children: [
844
+ /* @__PURE__ */ O("div", { className: Pe("input-wrapper"), ...ue, children: [
842
845
  /* @__PURE__ */ r(
843
846
  qe,
844
847
  {
845
- ...w({
846
- placeholder: d ? "" : o,
847
- maxLength: C || void 0,
848
+ ...v({
849
+ placeholder: u ? "" : o,
850
+ maxLength: k || void 0,
848
851
  onFocus: () => {
849
- i && !v && (I(), E == null || E(!0)), l();
852
+ i && !w && (I(), y == null || y(!0)), l();
850
853
  },
851
- ref: p,
852
- onKeyDown: (j) => {
853
- j.key === $e && j.preventDefault(), T && v && xe(j, Q);
854
+ ref: h,
855
+ onKeyDown: (T) => {
856
+ T.key === De && T.preventDefault(), L && w && xe(T, Q);
854
857
  },
855
- onBlur: (j) => {
856
- const me = Ee.trim(), ke = !Me(me), Re = ke ? e.find((Ae) => N(Ae) === me) : void 0;
857
- q(Re || (!R && L && ke ? me : null)), h(j), a == null || a(
858
- ke ? !e.some((Ae) => N(Ae) === me) : null
859
- ), i && v && u(), E == null || E(!0);
858
+ onBlur: (T) => {
859
+ const fe = Ee.trim(), ke = !Me(fe), Re = ke ? e.find((Ae) => N(Ae) === fe) : void 0;
860
+ q(Re || (!z && B && ke ? fe : null)), _(T), d == null || d(
861
+ ke ? !e.some((Ae) => N(Ae) === fe) : null
862
+ ), i && w && m(), y == null || y(!0);
860
863
  },
861
- disabled: d,
864
+ disabled: u,
862
865
  defaultWidth: !1,
863
- isRequired: F,
864
- touched: y,
866
+ isRequired: R,
867
+ touched: E,
865
868
  error: P,
866
- ...de,
867
- clearable: ue,
868
- onClear: ue ? D : U,
869
+ ...me,
870
+ clearable: pe,
871
+ onClear: pe ? D : U,
869
872
  endIcon: i && !c ? /* @__PURE__ */ r(
870
873
  "button",
871
874
  {
872
875
  type: "button",
873
- className: Pe("dropdown-button", { "icon-reversed": v }),
874
- onClick: () => u(),
876
+ className: Pe("dropdown-button", { "icon-reversed": w }),
877
+ onClick: () => m(),
875
878
  "aria-label": "Toggle dropdown",
876
- "aria-expanded": v,
877
- children: /* @__PURE__ */ r(Te, {})
879
+ "aria-expanded": w,
880
+ children: /* @__PURE__ */ r($e, {})
878
881
  }
879
882
  ) : c,
880
883
  minLength: i ? 0 : f
@@ -890,10 +893,10 @@ const ot = "_disabled_1rpph_43", st = "_input_1rpph_107", nt = {
890
893
  );
891
894
  };
892
895
  export {
893
- De as AutocompleteMenu,
896
+ Te as AutocompleteMenu,
894
897
  Fe as AutocompleteOption,
895
898
  gt as AutocompleteOptions,
896
899
  ut as AutocompletePrompt,
897
900
  ho as MultipleAutocomplete,
898
- wo as SingleAutocomplete
901
+ vo as SingleAutocomplete
899
902
  };