@reportportal/ui-kit 0.0.1-alpha.133 → 0.0.1-alpha.134

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,157 +1,193 @@
1
- import { jsx as s, jsxs as q, Fragment as se } from "react/jsx-runtime";
2
- import { useState as pe, useCallback as Q, forwardRef as De, useRef as Fe, useEffect as Me } from "react";
3
- import { c as W } from "./bind-06a7ff84.js";
4
- import { Scrollbars as qe } from "rc-scrollbars";
5
- import { B as Ae } from "./bubblesLoader-f3ffa240.js";
6
- import { B as Re } from "./button-97d9e587.js";
7
- import { S as $e } from "./plus-199fb2a8.js";
1
+ import { jsx as o, jsxs as $, Fragment as ce } from "react/jsx-runtime";
2
+ import { useState as re, useRef as xe, useEffect as ke, useCallback as V, forwardRef as Ae } from "react";
3
+ import { c as G } from "./bind-06a7ff84.js";
4
+ import { Scrollbars as $e } from "rc-scrollbars";
5
+ import { B as Pe } from "./bubblesLoader-f3ffa240.js";
6
+ import { B as Oe } from "./button-97d9e587.js";
7
+ import { S as je } from "./plus-199fb2a8.js";
8
8
  import { i as he } from "./isEmpty-ccacb5ff.js";
9
- import oe from "downshift";
10
- import { useFloating as ye, autoUpdate as Ne } from "@floating-ui/react";
11
- import { F as Pe } from "./fieldText-1749da7a.js";
12
- import { S as xe } from "./dropdown-0260bb66.js";
13
- import { S as je } from "./close-4d480ef7.js";
14
- import { S as He } from "./clear-53660571.js";
9
+ import le from "downshift";
10
+ import { useFloating as Ie, autoUpdate as Ce } from "@floating-ui/react";
11
+ import { F as ze } from "./fieldText-1749da7a.js";
12
+ import { S as Se } from "./dropdown-0260bb66.js";
13
+ import { S as He } from "./close-4d480ef7.js";
14
+ import { S as We } from "./clear-53660571.js";
15
15
  import "./openEye-950159cb.js";
16
16
  import "./baseIconButton-251479f7.js";
17
17
  import "./spinLoader-c4a53718.js";
18
18
  import "./maxValueDisplay-9be01a75.js";
19
19
  import "./fieldLabel.js";
20
- const Le = "_disabled_18ek6_43", Oe = "_input_18ek6_97", We = {
21
- "selected-item": "_selected-item_18ek6_16",
22
- "validation-error": "_validation-error_18ek6_35",
23
- "highlight-un-stored-item": "_highlight-un-stored-item_18ek6_40",
20
+ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
21
+ "selected-item": "_selected-item_1rpph_16",
22
+ "validation-error": "_validation-error_1rpph_35",
23
+ "highlight-un-stored-item": "_highlight-un-stored-item_1rpph_40",
24
24
  disabled: Le,
25
- "mobile-disabled": "_mobile-disabled_18ek6_48",
26
- "cross-icon": "_cross-icon_18ek6_54",
27
- input: Oe
28
- }, fe = W.bind(We), ze = ({
29
- item: o,
25
+ "mobile-disabled": "_mobile-disabled_1rpph_48",
26
+ "selected-item-text": "_selected-item-text_1rpph_54",
27
+ "single-line": "_single-line_1rpph_58",
28
+ "cross-icon": "_cross-icon_1rpph_64",
29
+ input: Ke
30
+ }, ne = G.bind(Te), Ye = (t) => t.scrollWidth > t.clientWidth, Xe = ({
31
+ item: t,
30
32
  onRemoveItem: e,
31
33
  disabled: c = !1,
32
34
  mobileDisabled: r = !1,
33
35
  parseValueToString: n,
34
36
  error: d = !1,
35
- editItem: p,
36
- editable: u = !1,
37
+ editItem: v,
38
+ editable: p = !1,
37
39
  getAdditionalCreationCondition: g = () => !0,
38
- storedOption: x = !0,
39
- highlightUnStoredItem: b = !1,
40
- variant: S = "light",
41
- getItemName: y
40
+ storedOption: N = !0,
41
+ highlightUnStoredItem: f = !1,
42
+ variant: k = "light",
43
+ getItemName: x,
44
+ singleLine: u = !1,
45
+ className: R,
46
+ textClassName: I
42
47
  }) => {
43
- const [f, E] = pe(!1), [k, _] = pe(""), v = () => {
44
- !c && u && !x && (_((y == null ? void 0 : y(o)) || (n == null ? void 0 : n(o)) || ""), E(!0));
45
- }, F = (t) => {
46
- _(t.target.value);
47
- }, A = (t) => {
48
- const i = g(k);
49
- t.key === "Enter" && i && (p(o, k), E(!1), _(""));
50
- }, l = () => {
51
- E(!1), _("");
52
- }, a = (t) => {
53
- t.stopPropagation(), e(o);
54
- };
55
- return f ? /* @__PURE__ */ s(
48
+ const [y, b] = re(!1), [C, B] = re(""), [l, a] = re(!1), s = xe(null), i = () => {
49
+ !c && p && !N && (B((x == null ? void 0 : x(t)) || (n == null ? void 0 : n(t)) || ""), b(!0));
50
+ }, _ = (S) => {
51
+ B(S.target.value);
52
+ }, O = (S) => {
53
+ const j = g(C);
54
+ S.key === "Enter" && j && (v(t, C), b(!1), B(""));
55
+ }, H = () => {
56
+ b(!1), B("");
57
+ }, P = (S) => {
58
+ S.stopPropagation(), e(t);
59
+ }, W = (n == null ? void 0 : n(t)) || "";
60
+ ke(() => {
61
+ if (s.current && u) {
62
+ const S = () => {
63
+ s.current && a(Ye(s.current));
64
+ };
65
+ if (S(), typeof ResizeObserver < "u") {
66
+ const j = new ResizeObserver(S);
67
+ return j.observe(s.current), () => j.disconnect();
68
+ }
69
+ } else
70
+ a(!1);
71
+ }, [W, u]);
72
+ const J = ne(
73
+ "selected-item-text",
74
+ {
75
+ "single-line": u
76
+ },
77
+ I
78
+ ), te = ne(
79
+ "selected-item",
80
+ k,
81
+ {
82
+ [`validation-${d}`]: d,
83
+ disabled: c,
84
+ "mobile-disabled": r,
85
+ "highlight-un-stored-item": f && !N
86
+ },
87
+ R
88
+ );
89
+ return y ? /* @__PURE__ */ o(
56
90
  "input",
57
91
  {
58
92
  autoFocus: !0,
59
- value: k,
60
- onChange: F,
61
- onKeyDown: A,
62
- onBlur: l,
63
- className: fe("input")
64
- }
65
- ) : /* @__PURE__ */ q(
66
- "div",
67
- {
68
- className: fe("selected-item", S, {
69
- [`validation-${d}`]: d,
70
- disabled: c,
71
- "mobile-disabled": r,
72
- "highlight-un-stored-item": b && !x
73
- }),
74
- onClick: v,
75
- children: [
76
- n == null ? void 0 : n(o),
77
- !c && /* @__PURE__ */ s(
78
- "button",
79
- {
80
- type: "button",
81
- className: fe("cross-icon", {
82
- [`validation-${d}`]: d,
83
- "mobile-disabled": r,
84
- disabled: c
85
- }),
86
- onClick: a,
87
- children: /* @__PURE__ */ s(je, {})
88
- }
89
- )
90
- ]
93
+ value: C,
94
+ onChange: _,
95
+ onKeyDown: O,
96
+ onBlur: H,
97
+ className: ne("input")
91
98
  }
92
- );
93
- }, Ke = ({
94
- items: o = [],
99
+ ) : /* @__PURE__ */ $("div", { className: te, onClick: i, children: [
100
+ /* @__PURE__ */ o(
101
+ "span",
102
+ {
103
+ ref: s,
104
+ className: J,
105
+ title: u && l ? W : void 0,
106
+ children: W
107
+ }
108
+ ),
109
+ !c && /* @__PURE__ */ o(
110
+ "button",
111
+ {
112
+ type: "button",
113
+ className: ne("cross-icon", {
114
+ [`validation-${d}`]: d,
115
+ "mobile-disabled": r,
116
+ disabled: c
117
+ }),
118
+ onClick: P,
119
+ children: /* @__PURE__ */ o(He, {})
120
+ }
121
+ )
122
+ ] });
123
+ }, Ge = ({
124
+ items: t = [],
95
125
  parseValueToString: e,
96
126
  getItemValidationErrorType: c,
97
127
  storedItemsMap: r = {},
98
128
  highlightUnStoredItem: n = !1,
99
129
  renderCustomSelectedItem: d,
100
- ...p
101
- }) => o.map((u) => d ? d(u) : /* @__PURE__ */ s(
102
- ze,
130
+ selectedItemSingleLine: v,
131
+ selectedItemClassName: p,
132
+ selectedItemTextClassName: g,
133
+ ...N
134
+ }) => t.map((f) => d ? d(f) : /* @__PURE__ */ o(
135
+ Xe,
103
136
  {
104
137
  parseValueToString: e,
105
- error: (c == null ? void 0 : c(u)) || "",
106
- item: u,
107
- storedOption: !!r[e(u)],
138
+ error: (c == null ? void 0 : c(f)) || "",
139
+ item: f,
140
+ storedOption: !!r[e(f)],
108
141
  highlightUnStoredItem: n,
109
- ...p
142
+ singleLine: v,
143
+ className: p,
144
+ textClassName: g,
145
+ ...N
110
146
  },
111
- e == null ? void 0 : e(u)
112
- )), Ye = "_prompt_1xfmd_16", Xe = {
113
- prompt: Ye
114
- }, Ge = W.bind(Xe), Je = ({ children: o = null }) => /* @__PURE__ */ s("div", { className: Ge("prompt"), children: o }), Qe = "_item_1qhaq_16", Ze = "_divider_1qhaq_24", Te = "_active_1qhaq_48", Ue = "_value_1qhaq_60", Ve = "_tag_1qhaq_78", et = "_disabled_1qhaq_89", tt = {
115
- item: Qe,
116
- divider: Ze,
147
+ e == null ? void 0 : e(f)
148
+ )), Je = "_prompt_1xfmd_16", Qe = {
149
+ prompt: Je
150
+ }, Ze = G.bind(Qe), Ue = ({ children: t = null }) => /* @__PURE__ */ o("div", { className: Ze("prompt"), children: t }), Ve = "_item_1qhaq_16", et = "_divider_1qhaq_24", tt = "_active_1qhaq_48", st = "_value_1qhaq_60", ot = "_tag_1qhaq_78", nt = "_disabled_1qhaq_89", rt = {
151
+ item: Ve,
152
+ divider: et,
117
153
  "new-item": "_new-item_1qhaq_31",
118
- active: Te,
119
- value: Ue,
154
+ active: tt,
155
+ value: st,
120
156
  "key-variant": "_key-variant_1qhaq_75",
121
- tag: Ve,
157
+ tag: ot,
122
158
  "button-active": "_button-active_1qhaq_89",
123
- disabled: et,
159
+ disabled: nt,
124
160
  "value-variant": "_value-variant_1qhaq_109"
125
- }, Z = W.bind(tt), ve = ({
126
- isActive: o = !1,
161
+ }, ee = G.bind(rt), ye = ({
162
+ isActive: t = !1,
127
163
  isSelected: e = !1,
128
164
  isNew: c = !1,
129
165
  children: r = null,
130
166
  disabled: n = !1,
131
167
  optionVariant: d = "",
132
- newItemButtonText: p = "",
133
- ...u
168
+ newItemButtonText: v = "",
169
+ ...p
134
170
  }) => {
135
- const g = () => p || (d === "key-variant" ? "New key" : "New value");
136
- return c ? /* @__PURE__ */ q(se, { children: [
137
- /* @__PURE__ */ s("div", { className: Z("divider") }),
138
- /* @__PURE__ */ q(
171
+ const g = () => v || (d === "key-variant" ? "New key" : "New value");
172
+ return c ? /* @__PURE__ */ $(ce, { children: [
173
+ /* @__PURE__ */ o("div", { className: ee("divider") }),
174
+ /* @__PURE__ */ $(
139
175
  "li",
140
176
  {
141
- className: Z("new-item", d, {
142
- active: o,
177
+ className: ee("new-item", d, {
178
+ active: t,
143
179
  selected: e,
144
180
  disabled: n
145
181
  }),
146
- ...u,
182
+ ...p,
147
183
  children: [
148
- /* @__PURE__ */ s("span", { className: Z("value"), children: r }),
149
- /* @__PURE__ */ s(
150
- Re,
184
+ /* @__PURE__ */ o("span", { className: ee("value"), children: r }),
185
+ /* @__PURE__ */ o(
186
+ Oe,
151
187
  {
152
- ...!n && u,
153
- className: Z({ "button-active": o }),
154
- icon: /* @__PURE__ */ s($e, {}),
188
+ ...!n && p,
189
+ className: ee({ "button-active": t }),
190
+ icon: /* @__PURE__ */ o(je, {}),
155
191
  variant: "text",
156
192
  children: g()
157
193
  }
@@ -159,169 +195,169 @@ const Le = "_disabled_18ek6_43", Oe = "_input_18ek6_97", We = {
159
195
  ]
160
196
  }
161
197
  )
162
- ] }) : /* @__PURE__ */ s(
198
+ ] }) : /* @__PURE__ */ o(
163
199
  "li",
164
200
  {
165
- className: Z("item", d, {
166
- active: o,
201
+ className: ee("item", d, {
202
+ active: t,
167
203
  selected: e,
168
204
  disabled: n
169
205
  }),
170
- ...n ? {} : u,
171
- children: /* @__PURE__ */ s("span", { className: Z("label", "tag"), children: r })
206
+ ...n ? {} : p,
207
+ children: /* @__PURE__ */ o("span", { className: ee("label", "tag"), children: r })
172
208
  }
173
209
  );
174
- }, ot = "_container_5088x_16", nt = {
175
- container: ot,
210
+ }, lt = "_container_5088x_16", at = {
211
+ container: lt,
176
212
  "empty-list-message": "_empty-list-message_5088x_20"
177
- }, _e = W.bind(nt), st = (o) => {
213
+ }, _e = G.bind(at), ct = (t) => {
178
214
  const {
179
215
  options: e,
180
216
  async: c,
181
217
  inputValue: r,
182
218
  loading: n,
183
219
  createWithoutConfirmation: d,
184
- customEmptyListMessage: p,
185
- customNoMatchesMessage: u,
220
+ customEmptyListMessage: v,
221
+ customNoMatchesMessage: p,
186
222
  optionVariant: g,
187
- newItemButtonText: x,
188
- renderOption: b,
189
- getUniqKey: S,
190
- getItemProps: y,
191
- parseValueToString: f
192
- } = o, E = Q(() => (e || []).filter((t) => f(t).toUpperCase().indexOf((r.toUpperCase() || "").trim()) > -1), [r, e, f]), k = Q(
193
- (t, i, h = !1) => b ? b(t, i, h, y) : /* @__PURE__ */ s(
194
- ve,
223
+ newItemButtonText: N,
224
+ renderOption: f,
225
+ getUniqKey: k,
226
+ getItemProps: x,
227
+ parseValueToString: u
228
+ } = t, R = V(() => (e || []).filter((s) => u(s).toUpperCase().indexOf((r.toUpperCase() || "").trim()) > -1), [r, e, u]), I = V(
229
+ (s, i, _ = !1) => f ? f(s, i, _, x) : /* @__PURE__ */ o(
230
+ ye,
195
231
  {
196
232
  optionVariant: g,
197
- ...y({ item: t, index: i }),
198
- isNew: h,
199
- newItemButtonText: x,
200
- children: f(t)
233
+ ...x({ item: s, index: i }),
234
+ isNew: _,
235
+ newItemButtonText: N,
236
+ children: u(s)
201
237
  },
202
- (S == null ? void 0 : S(t)) || f(t)
238
+ (k == null ? void 0 : k(s)) || u(s)
203
239
  ),
204
- [y, S, x, g, f, b]
205
- ), _ = Q(
206
- (t) => t.length ? t.map((i, h) => k(i, h)) : "",
207
- [k]
208
- ), v = Q(
209
- (t) => {
210
- const i = t.length;
211
- return /* @__PURE__ */ s("div", { className: _e({ container: !i }), children: /* @__PURE__ */ s(
212
- ve,
240
+ [x, k, N, g, u, f]
241
+ ), y = V(
242
+ (s) => s.length ? s.map((i, _) => I(i, _)) : "",
243
+ [I]
244
+ ), b = V(
245
+ (s) => {
246
+ const i = s.length;
247
+ return /* @__PURE__ */ o("div", { className: _e({ container: !i }), children: /* @__PURE__ */ o(
248
+ ye,
213
249
  {
214
250
  optionVariant: g,
215
251
  isNew: !0,
216
- ...y({ item: r, index: i }),
217
- children: f(r)
252
+ ...x({ item: r, index: i }),
253
+ children: u(r)
218
254
  },
219
- f(r)
255
+ u(r)
220
256
  ) });
221
257
  },
222
- [y, r, g, f]
223
- ), F = Q(
224
- (t) => n ? /* @__PURE__ */ q(se, { children: [
225
- /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Ae, {}) }),
226
- !d && v(t)
258
+ [x, r, g, u]
259
+ ), C = V(
260
+ (s) => n ? /* @__PURE__ */ $(ce, { children: [
261
+ /* @__PURE__ */ o(Ue, { children: /* @__PURE__ */ o(Pe, {}) }),
262
+ !d && b(s)
227
263
  ] }) : "",
228
- [d, n, v]
229
- ), A = Q(() => {
230
- const t = (e == null ? void 0 : e.length) === 0 ? p || "No available options" : u || "No matches found";
231
- return /* @__PURE__ */ s("div", { className: _e("empty-list-message"), children: t });
232
- }, [p, u, e == null ? void 0 : e.length]), l = c ? e : E(), a = F(e);
233
- return a || /* @__PURE__ */ q("div", { className: _e({ container: e.length }), children: [
234
- /* @__PURE__ */ s(qe, { autoHeight: !0, autoHeightMax: 216, hideTracksWhenNotNeeded: !0, children: he(l) ? A() : _(l) }),
235
- !d && v(l)
264
+ [d, n, b]
265
+ ), B = V(() => {
266
+ const s = (e == null ? void 0 : e.length) === 0 ? v || "No available options" : p || "No matches found";
267
+ return /* @__PURE__ */ o("div", { className: _e("empty-list-message"), children: s });
268
+ }, [v, p, e == null ? void 0 : e.length]), l = c ? e : R(), a = C(e);
269
+ return a || /* @__PURE__ */ $("div", { className: _e({ container: e.length }), children: [
270
+ /* @__PURE__ */ o($e, { autoHeight: !0, autoHeightMax: 216, hideTracksWhenNotNeeded: !0, children: he(l) ? B() : y(l) }),
271
+ !d && b(l)
236
272
  ] });
237
- }, rt = "_menu_f64z5_16", lt = "_opened_f64z5_34", ct = "_dark_f64z5_37", at = {
238
- menu: rt,
239
- opened: lt,
240
- dark: ct
241
- }, it = W.bind(at), dt = (o, e) => !o || o <= e.trim().length, ke = De(
273
+ }, it = "_menu_f64z5_16", dt = "_opened_f64z5_34", ut = "_dark_f64z5_37", mt = {
274
+ menu: it,
275
+ opened: dt,
276
+ dark: ut
277
+ }, ft = G.bind(mt), pt = (t, e) => !t || t <= e.trim().length, Ee = Ae(
242
278
  ({
243
- isOpen: o = !1,
279
+ isOpen: t = !1,
244
280
  style: e = {},
245
281
  minLength: c = 1,
246
282
  isDropdownMode: r,
247
283
  inputValue: n = "",
248
284
  className: d = "",
249
- ...p
250
- }, u) => /* @__PURE__ */ s(
285
+ ...v
286
+ }, p) => /* @__PURE__ */ o(
251
287
  "ul",
252
288
  {
253
- ref: u,
254
- className: it(
289
+ ref: p,
290
+ className: ft(
255
291
  "menu",
256
- { opened: o && (r || dt(c, n)) },
292
+ { opened: t && (r || pt(c, n)) },
257
293
  d
258
294
  ),
259
295
  style: e,
260
- children: /* @__PURE__ */ s(st, { inputValue: n, ...p })
296
+ children: /* @__PURE__ */ o(ct, { inputValue: n, ...v })
261
297
  }
262
298
  )
263
- ), we = (o, e) => typeof o == "string" ? o : e ? String(o[e(o)]) : "", ne = (o, e) => {
299
+ ), we = (t, e) => typeof t == "string" ? t : e ? String(t[e(t)]) : "", ae = (t, e) => {
264
300
  var r;
265
- return o === e ? !0 : !!(o && e && typeof o == "object" && typeof e == "object" && Object.keys(o).length === Object.keys(e).length && ((r = Object.entries(o)) != null && r.every(([n, d]) => ne(d, e[n]))));
266
- }, ut = (o, e, c) => typeof o == "string" ? o === e : c ? (() => {
267
- const r = c(o);
268
- return o[r] === e[r];
269
- })() : !1, mt = ({
270
- options: o = [],
301
+ return t === e ? !0 : !!(t && e && typeof t == "object" && typeof e == "object" && Object.keys(t).length === Object.keys(e).length && ((r = Object.entries(t)) != null && r.every(([n, d]) => ae(d, e[n]))));
302
+ }, _t = (t, e, c) => typeof t == "string" ? t === e : c ? (() => {
303
+ const r = c(t);
304
+ return t[r] === e[r];
305
+ })() : !1, ht = ({
306
+ options: t = [],
271
307
  onChange: e,
272
308
  selectedItems: c = [],
273
309
  handleUnStoredItemCb: r = null,
274
310
  existingItemsMap: n = {},
275
311
  children: d,
276
- customizeNewSelectedValue: p = (b) => b,
277
- getOptionUniqKey: u,
312
+ customizeNewSelectedValue: v = (f) => f,
313
+ getOptionUniqKey: p,
278
314
  getOptionUniqKeyValue: g,
279
- ...x
315
+ ...N
280
316
  }) => {
281
- const [b, S] = pe(n), y = (l, a) => {
282
- const t = {
283
- ...b
317
+ const [f, k] = re(n), x = (l, a) => {
318
+ const s = {
319
+ ...f
284
320
  };
285
321
  l.forEach((i) => {
286
- if (o.find((h) => ut(h, i, u))) {
287
- const h = we(i, u);
288
- t[h] = !0;
322
+ if (t.find((_) => _t(_, i, p))) {
323
+ const _ = we(i, p);
324
+ s[_] = !0;
289
325
  }
290
- }), S(t), a(t);
291
- }, f = (l, a) => {
292
- const t = we(l, u);
293
- if (t in b) {
294
- const i = { ...b };
295
- delete i[t], S(i), a(i);
326
+ }), k(s), a(s);
327
+ }, u = (l, a) => {
328
+ const s = we(l, p);
329
+ if (s in f) {
330
+ const i = { ...f };
331
+ delete i[s], k(i), a(i);
296
332
  } else
297
- a(b);
298
- }, E = (l, a) => {
299
- const t = p(l), i = Array.isArray(t) ? t : [t], z = [...c.filter((j) => i.indexOf(j) < 0), ...i];
300
- e == null || e(z, a), y(i, (j) => r == null ? void 0 : r(z, j));
301
- }, k = (l, a) => {
302
- const t = c.indexOf(l), i = [...c];
303
- i.splice(t, 1, a), e == null || e(i, null);
304
- }, _ = (l, a) => {
305
- const t = c.filter((h) => !ne(h, l));
306
- e == null || e(t, a), f(l, (h) => r == null ? void 0 : r(t, h));
307
- }, v = (l, a) => {
308
- l && E(l, a);
309
- }, F = (l) => ({
310
- removeItem: _,
311
- editItem: k,
333
+ a(f);
334
+ }, R = (l, a) => {
335
+ const s = v(l), i = Array.isArray(s) ? s : [s], O = [...c.filter((P) => i.indexOf(P) < 0), ...i];
336
+ e == null || e(O, a), x(i, (P) => r == null ? void 0 : r(O, P));
337
+ }, I = (l, a) => {
338
+ const s = c.indexOf(l), i = [...c];
339
+ i.splice(s, 1, a), e == null || e(i, null);
340
+ }, y = (l, a) => {
341
+ const s = c.filter((_) => !ae(_, l));
342
+ e == null || e(s, a), u(l, (_) => r == null ? void 0 : r(s, _));
343
+ }, b = (l, a) => {
344
+ l && R(l, a);
345
+ }, C = (l) => ({
346
+ removeItem: y,
347
+ editItem: I,
312
348
  handleChange: e,
313
349
  getOptionUniqKeyValue: g,
314
- storedItemsMap: b,
350
+ storedItemsMap: f,
315
351
  ...l
316
352
  });
317
- return /* @__PURE__ */ s(
318
- oe,
353
+ return /* @__PURE__ */ o(
354
+ le,
319
355
  {
320
- ...x,
356
+ ...N,
321
357
  stateReducer: (l, a) => {
322
358
  switch (a.type) {
323
- case oe.stateChangeTypes.keyDownEnter:
324
- case oe.stateChangeTypes.clickItem:
359
+ case le.stateChangeTypes.keyDownEnter:
360
+ case le.stateChangeTypes.clickItem:
325
361
  return {
326
362
  ...a,
327
363
  highlightedIndex: l.highlightedIndex,
@@ -331,27 +367,28 @@ const Le = "_disabled_18ek6_43", Oe = "_input_18ek6_97", We = {
331
367
  return a;
332
368
  }
333
369
  },
334
- onChange: v,
370
+ onChange: b,
335
371
  selectedItem: null,
336
- children: (l) => d == null ? void 0 : d(F(l))
372
+ children: (l) => d == null ? void 0 : d(C(l))
337
373
  }
338
374
  );
339
- }, Ie = "Enter", ft = "Tab", _t = "_autocomplete_w0t1o_16", pt = "_disabled_w0t1o_32", ht = "_error_w0t1o_35", bt = "_touched_w0t1o_35", vt = "_input_w0t1o_74", wt = {
340
- autocomplete: _t,
341
- "autocomplete-wrapper": "_autocomplete-wrapper_w0t1o_28",
342
- disabled: pt,
343
- error: ht,
344
- touched: bt,
345
- "clear-icon": "_clear-icon_w0t1o_46",
346
- "clear-icon--disabled": "_clear-icon--disabled_w0t1o_56",
347
- "autocomplete-input": "_autocomplete-input_w0t1o_60",
348
- "mobile-disabled": "_mobile-disabled_w0t1o_69",
349
- input: vt,
350
- "type-number": "_type-number_w0t1o_98",
351
- "error-text": "_error-text_w0t1o_109",
352
- "dropdown-button": "_dropdown-button_w0t1o_118",
353
- "icon-reversed": "_icon-reversed_w0t1o_126"
354
- }, O = W.bind(wt), Wt = (o) => {
375
+ }, Re = "Enter", bt = "Tab", vt = "_autocomplete_1so4a_16", gt = "_disabled_1so4a_32", yt = "_error_1so4a_35", wt = "_touched_1so4a_35", Nt = "_input_1so4a_77", xt = {
376
+ autocomplete: vt,
377
+ "autocomplete-wrapper": "_autocomplete-wrapper_1so4a_28",
378
+ disabled: gt,
379
+ error: yt,
380
+ touched: wt,
381
+ "clear-icon": "_clear-icon_1so4a_46",
382
+ "clear-icon--disabled": "_clear-icon--disabled_1so4a_56",
383
+ "autocomplete-input": "_autocomplete-input_1so4a_60",
384
+ "single-line-mode": "_single-line-mode_1so4a_68",
385
+ "mobile-disabled": "_mobile-disabled_1so4a_72",
386
+ input: Nt,
387
+ "type-number": "_type-number_1so4a_101",
388
+ "error-text": "_error-text_1so4a_112",
389
+ "dropdown-button": "_dropdown-button_1so4a_121",
390
+ "icon-reversed": "_icon-reversed_1so4a_129"
391
+ }, X = G.bind(xt), Yt = (t) => {
355
392
  const {
356
393
  options: e = [],
357
394
  loading: c = !1,
@@ -359,232 +396,239 @@ const Le = "_disabled_18ek6_43", Oe = "_input_18ek6_97", We = {
359
396
  },
360
397
  value: n = [],
361
398
  placeholder: d = "",
362
- error: p = "",
363
- touched: u = !1,
399
+ error: v = "",
400
+ touched: p = !1,
364
401
  creatable: g = !1,
365
- editable: x = !1,
366
- onChange: b = () => {
402
+ editable: N = !1,
403
+ onChange: f = () => {
367
404
  },
368
- onFocus: S = () => {
405
+ onFocus: k = () => {
369
406
  },
370
- onBlur: y = () => {
407
+ onBlur: x = () => {
371
408
  },
372
- disabled: f = !1,
373
- isDropdownMode: E = !1,
374
- mobileDisabled: k = !1,
375
- inputProps: _ = {},
376
- parseValueToString: v = (m) => m == null ? "" : String(m),
377
- maxLength: F = null,
378
- async: A = !1,
409
+ disabled: u = !1,
410
+ isDropdownMode: R = !1,
411
+ mobileDisabled: I = !1,
412
+ inputProps: y = {},
413
+ parseValueToString: b = (h) => h == null ? "" : String(h),
414
+ maxLength: C = null,
415
+ async: B = !1,
379
416
  customClass: l = "",
380
417
  createWithoutConfirmation: a = !1,
381
- getItemValidationErrorType: t = null,
418
+ getItemValidationErrorType: s = null,
382
419
  clearItemsError: i = () => {
383
420
  },
384
- getAdditionalCreationCondition: h = () => !0,
385
- highlightUnStoredItem: z = !1,
386
- parseInputValueFn: T = null,
387
- handleUnStoredItemCb: j = null,
388
- dataAutomationId: re = "",
389
- existingItemsMap: te = {},
390
- customizeNewSelectedValue: le = (m) => m,
391
- renderCustomSelectedItem: ce,
392
- useFixedPositioning: ae,
393
- newItemButtonText: B = "",
394
- menuClassName: H = "",
395
- ...K
396
- } = o, { refs: R, floatingStyles: Y } = ye({
421
+ getAdditionalCreationCondition: _ = () => !0,
422
+ highlightUnStoredItem: O = !1,
423
+ parseInputValueFn: H = null,
424
+ handleUnStoredItemCb: P = null,
425
+ dataAutomationId: W = "",
426
+ existingItemsMap: J = {},
427
+ customizeNewSelectedValue: te = (h) => h,
428
+ renderCustomSelectedItem: S,
429
+ useFixedPositioning: j,
430
+ newItemButtonText: D = "",
431
+ menuClassName: L = "",
432
+ selectedItemSingleLine: K,
433
+ selectedItemClassName: T,
434
+ selectedItemTextClassName: Q,
435
+ ...M
436
+ } = t, { refs: Z, floatingStyles: ie } = Ie({
397
437
  placement: "bottom-start",
398
- strategy: ae ? "fixed" : "absolute",
399
- whileElementsMounted: Ne
400
- }), M = n.length === 0 && !f ? d : "", L = Fe(null);
401
- Me(() => {
438
+ strategy: j ? "fixed" : "absolute",
439
+ whileElementsMounted: Ce
440
+ }), de = n.length === 0 && !u ? d : "", z = xe(null);
441
+ ke(() => {
402
442
  i();
403
443
  }, [i, n]);
404
- const ie = (m, w) => {
405
- b(m, w);
406
- }, de = (m, w, C) => ({ item: N, index: $, ...P }) => m({
407
- item: N,
408
- index: $,
409
- isSelected: C.some((I) => ne(I, N)),
410
- ...P,
411
- isActive: w === $
412
- }), X = ({
413
- event: m,
444
+ const oe = (h, w) => {
445
+ f(h, w);
446
+ }, ue = (h, w, E) => ({ item: m, index: q, ...A }) => h({
447
+ item: m,
448
+ index: q,
449
+ isSelected: E.some((U) => ae(U, m)),
450
+ ...A,
451
+ isActive: w === q
452
+ }), me = ({
453
+ event: h,
414
454
  removeItem: w,
415
- inputValue: C
455
+ inputValue: E
416
456
  }) => {
417
- m.key === "Backspace" && !C && n.length && w(n[n.length - 1], null);
418
- }, U = ({
419
- inputValue: m,
457
+ h.key === "Backspace" && !E && n.length && w(n[n.length - 1], null);
458
+ }, Y = ({
459
+ inputValue: h,
420
460
  selectItem: w,
421
- clearSelection: C
461
+ clearSelection: E
422
462
  }) => {
423
- if (T) {
424
- const N = T(m);
425
- (N.length ? N : [m]).forEach((P) => w(P)), C();
463
+ if (H) {
464
+ const m = H(h);
465
+ (m.length ? m : [h]).forEach((A) => w(A)), E();
426
466
  } else
427
- w(m), C();
428
- }, ue = (m) => (w) => {
429
- m(w, null), L.current && L.current.focus();
430
- }, me = e.filter((m) => n.every((w) => !ne(w, m)));
431
- return /* @__PURE__ */ s(
432
- mt,
467
+ w(h), E();
468
+ }, fe = (h) => (w) => {
469
+ h(w, null), z.current && z.current.focus();
470
+ }, pe = e.filter((h) => n.every((w) => !ae(w, h)));
471
+ return /* @__PURE__ */ o(
472
+ ht,
433
473
  {
434
- onChange: ie,
435
- itemToString: v,
474
+ onChange: oe,
475
+ itemToString: b,
436
476
  selectedItems: n,
437
477
  onStateChange: r,
438
478
  options: e,
439
- existingItemsMap: te,
440
- handleUnStoredItemCb: j,
441
- customizeNewSelectedValue: le,
479
+ existingItemsMap: J,
480
+ handleUnStoredItemCb: P,
481
+ customizeNewSelectedValue: te,
442
482
  children: ({
443
- getInputProps: m,
483
+ getInputProps: h,
444
484
  getItemProps: w,
445
- isOpen: C,
446
- inputValue: N = "",
447
- highlightedIndex: $,
448
- removeItem: P,
449
- editItem: I,
450
- openMenu: G,
451
- selectItem: J,
452
- clearSelection: V,
453
- toggleMenu: ee,
454
- storedItemsMap: Se,
455
- getRootProps: Ee
485
+ isOpen: E,
486
+ inputValue: m = "",
487
+ highlightedIndex: q,
488
+ removeItem: A,
489
+ editItem: U,
490
+ openMenu: se,
491
+ selectItem: be,
492
+ clearSelection: ve,
493
+ toggleMenu: Be,
494
+ storedItemsMap: De,
495
+ getRootProps: Fe
456
496
  }) => {
457
- const be = Ee(void 0, { suppressRefError: !0 }), Ce = {
458
- ...be,
459
- ref: (D) => (R.setReference(D), be.ref(D))
460
- }, Be = N ?? "";
461
- return /* @__PURE__ */ q("div", { ...Ce, className: O("autocomplete-wrapper"), children: [
462
- /* @__PURE__ */ q(se, { children: [
463
- /* @__PURE__ */ q(
497
+ const ge = Fe(void 0, { suppressRefError: !0 }), Me = {
498
+ ...ge,
499
+ ref: (F) => (Z.setReference(F), ge.ref(F))
500
+ }, qe = m ?? "";
501
+ return /* @__PURE__ */ $("div", { ...Me, className: X("autocomplete-wrapper"), children: [
502
+ /* @__PURE__ */ $(ce, { children: [
503
+ /* @__PURE__ */ $(
464
504
  "div",
465
505
  {
466
- className: O("autocomplete", l, {
467
- "mobile-disabled": k,
468
- error: p,
469
- touched: u,
470
- disabled: f
506
+ className: X("autocomplete", l, {
507
+ "mobile-disabled": I,
508
+ error: v,
509
+ touched: p,
510
+ disabled: u
471
511
  }),
472
512
  children: [
473
- /* @__PURE__ */ q(
513
+ /* @__PURE__ */ $(
474
514
  "div",
475
515
  {
476
- className: O("autocomplete-input", {
477
- "mobile-disabled": k
516
+ className: X("autocomplete-input", {
517
+ "mobile-disabled": I,
518
+ "single-line-mode": K
478
519
  }),
479
520
  children: [
480
- /* @__PURE__ */ s(
481
- Ke,
521
+ /* @__PURE__ */ o(
522
+ Ge,
482
523
  {
483
524
  items: n,
484
- onRemoveItem: ue(P),
485
- disabled: f,
486
- mobileDisabled: k,
487
- parseValueToString: v,
488
- getItemValidationErrorType: t,
489
- renderCustomSelectedItem: ce,
490
- editItem: I,
491
- editable: x,
492
- getAdditionalCreationCondition: h,
493
- storedItemsMap: Se,
494
- highlightUnStoredItem: z
525
+ onRemoveItem: fe(A),
526
+ disabled: u,
527
+ mobileDisabled: I,
528
+ parseValueToString: b,
529
+ getItemValidationErrorType: s,
530
+ renderCustomSelectedItem: S,
531
+ editItem: U,
532
+ editable: N,
533
+ getAdditionalCreationCondition: _,
534
+ storedItemsMap: De,
535
+ highlightUnStoredItem: O,
536
+ selectedItemSingleLine: K,
537
+ selectedItemClassName: T,
538
+ selectedItemTextClassName: Q
495
539
  }
496
540
  ),
497
- /* @__PURE__ */ s(
541
+ /* @__PURE__ */ o(
498
542
  "input",
499
543
  {
500
- ...m({
501
- ref: L,
502
- placeholder: M,
503
- maxLength: F,
544
+ ...h({
545
+ ref: z,
546
+ placeholder: de,
547
+ maxLength: C,
504
548
  onFocus: () => {
505
- E && G(), S();
549
+ R && se(), k();
506
550
  },
507
- onKeyDown: (D) => {
508
- D.key === Ie && N && g && h(N) && U({
509
- inputValue: N,
510
- selectItem: J,
511
- clearSelection: V
512
- }), X({ event: D, removeItem: P, inputValue: N });
551
+ onKeyDown: (F) => {
552
+ F.key === Re && m && g && _(m) && Y({
553
+ inputValue: m,
554
+ selectItem: be,
555
+ clearSelection: ve
556
+ }), me({ event: F, removeItem: A, inputValue: m });
513
557
  },
514
558
  onBlur: () => {
515
- y(), N && g && h(N) && U({
516
- inputValue: N,
517
- selectItem: J,
518
- clearSelection: V
559
+ x(), m && g && _(m) && Y({
560
+ inputValue: m,
561
+ selectItem: be,
562
+ clearSelection: ve
519
563
  });
520
564
  },
521
- disabled: f,
522
- ..._
565
+ disabled: u,
566
+ ...y
523
567
  }),
524
- className: O("input", { disabled: f }),
525
- "data-automation-id": re
568
+ className: X("input", { disabled: u }),
569
+ "data-automation-id": W
526
570
  }
527
571
  )
528
572
  ]
529
573
  }
530
574
  ),
531
- (_ == null ? void 0 : _.clearable) && !he(n) && /* @__PURE__ */ s(
575
+ (y == null ? void 0 : y.clearable) && !he(n) && /* @__PURE__ */ o(
532
576
  "button",
533
577
  {
534
578
  type: "button",
535
- className: O("clear-icon", { "clear-icon--disabled": f }),
579
+ className: X("clear-icon", { "clear-icon--disabled": u }),
536
580
  onClick: () => {
537
- var D;
538
- return !f && ((D = _ == null ? void 0 : _.onClear) == null ? void 0 : D.call(_));
581
+ var F;
582
+ return !u && ((F = y == null ? void 0 : y.onClear) == null ? void 0 : F.call(y));
539
583
  },
540
- onMouseDown: (D) => D.preventDefault(),
541
- children: /* @__PURE__ */ s(He, {})
584
+ onMouseDown: (F) => F.preventDefault(),
585
+ children: /* @__PURE__ */ o(We, {})
542
586
  }
543
587
  ),
544
- E && /* @__PURE__ */ s(
588
+ R && /* @__PURE__ */ o(
545
589
  "button",
546
590
  {
547
591
  type: "button",
548
- className: O("dropdown-button", { "icon-reversed": C }),
549
- onClick: () => ee(),
592
+ className: X("dropdown-button", { "icon-reversed": E }),
593
+ onClick: () => Be(),
550
594
  "aria-label": "Toggle dropdown",
551
- "aria-expanded": C,
552
- children: /* @__PURE__ */ s(xe, {})
595
+ "aria-expanded": E,
596
+ children: /* @__PURE__ */ o(Se, {})
553
597
  }
554
598
  )
555
599
  ]
556
600
  }
557
601
  ),
558
- p && u && /* @__PURE__ */ s("span", { className: O("error-text"), children: p })
602
+ v && p && /* @__PURE__ */ o("span", { className: X("error-text"), children: v })
559
603
  ] }),
560
- /* @__PURE__ */ s(
561
- ke,
604
+ /* @__PURE__ */ o(
605
+ Ee,
562
606
  {
563
- isOpen: C,
607
+ isOpen: E,
564
608
  loading: c,
565
- async: A,
566
- ref: R.setFloating,
567
- newItemButtonText: B,
568
- isDropdownMode: E,
569
- style: Y,
570
- inputValue: Be.trim(),
571
- getItemProps: de(w, $, n),
572
- parseValueToString: v,
609
+ async: B,
610
+ ref: Z.setFloating,
611
+ newItemButtonText: D,
612
+ isDropdownMode: R,
613
+ style: ie,
614
+ inputValue: qe.trim(),
615
+ getItemProps: ue(w, q, n),
616
+ parseValueToString: b,
573
617
  createWithoutConfirmation: a,
574
- options: me,
575
- className: H,
576
- ...K
618
+ options: pe,
619
+ className: L,
620
+ ...M
577
621
  }
578
622
  )
579
623
  ] });
580
624
  }
581
625
  }
582
626
  );
583
- }, gt = {
627
+ }, kt = {
584
628
  "input-wrapper": "_input-wrapper_d9vma_1",
585
629
  "dropdown-button": "_dropdown-button_d9vma_6",
586
630
  "icon-reversed": "_icon-reversed_d9vma_14"
587
- }, ge = W.bind(gt), yt = 0, zt = (o) => {
631
+ }, Ne = G.bind(kt), It = 0, Xt = (t) => {
588
632
  const {
589
633
  options: e = [],
590
634
  value: c,
@@ -593,131 +637,131 @@ const Le = "_disabled_18ek6_43", Oe = "_input_18ek6_97", We = {
593
637
  },
594
638
  onFocus: d = () => {
595
639
  },
596
- onBlur: p = () => {
640
+ onBlur: v = () => {
597
641
  },
598
- disabled: u = !1,
642
+ disabled: p = !1,
599
643
  inputProps: g = {},
600
- parseValueToString: x = (B) => B === null ? "" : String(B),
601
- minLength: b = 1,
602
- skipOptionCreation: S = !1,
603
- maxLength: y = null,
604
- optionVariant: f = "",
605
- isRequired: E = !1,
606
- error: k = "",
607
- touched: _ = !1,
608
- setTouch: v = () => {
644
+ parseValueToString: N = (D) => D === null ? "" : String(D),
645
+ minLength: f = 1,
646
+ skipOptionCreation: k = !1,
647
+ maxLength: x = null,
648
+ optionVariant: u = "",
649
+ isRequired: R = !1,
650
+ error: I = "",
651
+ touched: y = !1,
652
+ setTouch: b = () => {
609
653
  },
610
- createWithoutConfirmation: F = !1,
611
- menuClassName: A = "",
654
+ createWithoutConfirmation: C = !1,
655
+ menuClassName: B = "",
612
656
  icon: l,
613
657
  isDropdownMode: a = !1,
614
- isOptionUnique: t,
658
+ isOptionUnique: s,
615
659
  refFunction: i,
616
- stateReducer: h,
617
- onStateChange: z,
618
- useFixedPositioning: T,
619
- newItemButtonText: j = "",
620
- ...re
621
- } = o, { refs: te, floatingStyles: le } = ye({
660
+ stateReducer: _,
661
+ onStateChange: O,
662
+ useFixedPositioning: H,
663
+ newItemButtonText: P = "",
664
+ ...W
665
+ } = t, { refs: J, floatingStyles: te } = Ie({
622
666
  placement: "bottom-start",
623
- strategy: T ? "fixed" : "absolute",
624
- whileElementsMounted: Ne
625
- }), ce = (B, H, K) => ({ item: R, index: Y, ...M }) => B({
626
- item: R,
627
- index: Y,
628
- isSelected: K !== null && K === R,
667
+ strategy: H ? "fixed" : "absolute",
668
+ whileElementsMounted: Ce
669
+ }), S = (D, L, K) => ({ item: T, index: Q, ...M }) => D({
670
+ item: T,
671
+ index: Q,
672
+ isSelected: K !== null && K === T,
629
673
  ...M,
630
- isActive: H === Y
631
- }), ae = (B, H) => {
632
- B.key === ft && (B.preventDefault(), H(e.length));
674
+ isActive: L === Q
675
+ }), j = (D, L) => {
676
+ D.key === bt && (D.preventDefault(), L(e.length));
633
677
  };
634
- return /* @__PURE__ */ s(
635
- oe,
678
+ return /* @__PURE__ */ o(
679
+ le,
636
680
  {
637
681
  onChange: n,
638
- itemToString: x,
682
+ itemToString: N,
639
683
  selectedItem: c,
640
- onStateChange: z,
641
- defaultHighlightedIndex: yt,
642
- stateReducer: h,
684
+ onStateChange: O,
685
+ defaultHighlightedIndex: It,
686
+ stateReducer: _,
643
687
  children: ({
644
- getInputProps: B,
645
- getItemProps: H,
688
+ getInputProps: D,
689
+ getItemProps: L,
646
690
  setHighlightedIndex: K,
647
- toggleMenu: R,
648
- openMenu: Y,
691
+ toggleMenu: T,
692
+ openMenu: Q,
649
693
  isOpen: M,
650
- inputValue: L,
694
+ inputValue: Z,
651
695
  highlightedIndex: ie,
652
696
  getRootProps: de,
653
- selectItem: X
697
+ selectItem: z
654
698
  }) => {
655
- const U = de(void 0, { suppressRefError: !0 }), ue = {
656
- ...U,
657
- ref: (I) => (te.setReference(I), U.ref(I))
658
- }, me = L ?? "", { onClear: m, clearable: w, ...C } = g, $ = w && c !== null, P = (...I) => {
659
- X(null), m == null || m(...I);
699
+ const oe = de(void 0, { suppressRefError: !0 }), ue = {
700
+ ...oe,
701
+ ref: (m) => (J.setReference(m), oe.ref(m))
702
+ }, me = Z ?? "", { onClear: Y, clearable: fe, ...pe } = g, w = fe && c !== null, E = (...m) => {
703
+ z(null), Y == null || Y(...m);
660
704
  };
661
- return /* @__PURE__ */ s(se, { children: /* @__PURE__ */ q("div", { className: ge("input-wrapper"), ...ue, children: [
662
- /* @__PURE__ */ s(
663
- Pe,
705
+ return /* @__PURE__ */ o(ce, { children: /* @__PURE__ */ $("div", { className: Ne("input-wrapper"), ...ue, children: [
706
+ /* @__PURE__ */ o(
707
+ ze,
664
708
  {
665
- ...B({
666
- placeholder: u ? "" : r,
667
- maxLength: y || void 0,
709
+ ...D({
710
+ placeholder: p ? "" : r,
711
+ maxLength: x || void 0,
668
712
  onFocus: () => {
669
- a && !M && (Y(), v == null || v(!0)), d();
713
+ a && !M && (Q(), b == null || b(!0)), d();
670
714
  },
671
715
  ref: i,
672
- onKeyDown: (I) => {
673
- I.key === Ie && I.preventDefault(), L && M && ae(I, K);
716
+ onKeyDown: (m) => {
717
+ m.key === Re && m.preventDefault(), Z && M && j(m, K);
674
718
  },
675
- onBlur: (I) => {
676
- const G = me.trim(), J = !he(G), V = J ? e.find((ee) => x(ee) === G) : void 0;
677
- X(V || (!S && F && J ? G : null)), p(I), t == null || t(
678
- J ? !e.some((ee) => x(ee) === G) : null
679
- ), a && M && R(), v == null || v(!0);
719
+ onBlur: (m) => {
720
+ const q = me.trim(), A = !he(q), U = A ? e.find((se) => N(se) === q) : void 0;
721
+ z(U || (!k && C && A ? q : null)), v(m), s == null || s(
722
+ A ? !e.some((se) => N(se) === q) : null
723
+ ), a && M && T(), b == null || b(!0);
680
724
  },
681
- disabled: u,
725
+ disabled: p,
682
726
  defaultWidth: !1,
683
- isRequired: E,
684
- touched: _,
685
- error: k,
686
- ...C,
687
- clearable: $,
688
- onClear: $ ? P : m,
689
- endIcon: a && !l ? /* @__PURE__ */ s(
727
+ isRequired: R,
728
+ touched: y,
729
+ error: I,
730
+ ...pe,
731
+ clearable: w,
732
+ onClear: w ? E : Y,
733
+ endIcon: a && !l ? /* @__PURE__ */ o(
690
734
  "button",
691
735
  {
692
736
  type: "button",
693
- className: ge("dropdown-button", { "icon-reversed": M }),
694
- onClick: () => R(),
737
+ className: Ne("dropdown-button", { "icon-reversed": M }),
738
+ onClick: () => T(),
695
739
  "aria-label": "Toggle dropdown",
696
740
  "aria-expanded": M,
697
- children: /* @__PURE__ */ s(xe, {})
741
+ children: /* @__PURE__ */ o(Se, {})
698
742
  }
699
743
  ) : l,
700
- minLength: a ? 0 : b
744
+ minLength: a ? 0 : f
701
745
  })
702
746
  }
703
747
  ),
704
- /* @__PURE__ */ s(
705
- ke,
748
+ /* @__PURE__ */ o(
749
+ Ee,
706
750
  {
707
751
  isOpen: M,
708
752
  isDropdownMode: a,
709
- style: le,
710
- ref: te.setFloating,
711
- minLength: b,
712
- inputValue: (L || "").trim(),
713
- getItemProps: ce(H, ie, c),
714
- parseValueToString: x,
715
- optionVariant: f,
716
- createWithoutConfirmation: F,
717
- className: A,
753
+ style: te,
754
+ ref: J.setFloating,
755
+ minLength: f,
756
+ inputValue: (Z || "").trim(),
757
+ getItemProps: S(L, ie, c),
758
+ parseValueToString: N,
759
+ optionVariant: u,
760
+ createWithoutConfirmation: C,
761
+ className: B,
718
762
  options: e,
719
- newItemButtonText: j,
720
- ...re
763
+ newItemButtonText: P,
764
+ ...W
721
765
  }
722
766
  )
723
767
  ] }) });
@@ -726,10 +770,10 @@ const Le = "_disabled_18ek6_43", Oe = "_input_18ek6_97", We = {
726
770
  );
727
771
  };
728
772
  export {
729
- ke as AutocompleteMenu,
730
- ve as AutocompleteOption,
731
- st as AutocompleteOptions,
732
- Je as AutocompletePrompt,
733
- Wt as MultipleAutocomplete,
734
- zt as SingleAutocomplete
773
+ Ee as AutocompleteMenu,
774
+ ye as AutocompleteOption,
775
+ ct as AutocompleteOptions,
776
+ Ue as AutocompletePrompt,
777
+ Yt as MultipleAutocomplete,
778
+ Xt as SingleAutocomplete
735
779
  };