@purpurds/autocomplete 8.11.0 → 8.12.0

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,45 +1,45 @@
1
- import { jsx as l, jsxs as S, Fragment as jr } from "react/jsx-runtime";
1
+ import { jsx as l, jsxs as N, Fragment as jt } from "react/jsx-runtime";
2
2
  import * as h from "react";
3
- import { forwardRef as Y, Children as Ar, isValidElement as Xt, useId as kr, useRef as G, useCallback as Cr, useEffect as Pr, useState as et, cloneElement as Ir } from "react";
3
+ import { forwardRef as Y, Children as At, isValidElement as Xe, useId as Ct, useRef as G, useCallback as Pt, useEffect as It, useState as ne, cloneElement as kt } from "react";
4
4
  import "react-dom";
5
- function Mr(r) {
6
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
5
+ function Mt(t) {
6
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
7
7
  }
8
- var vt = { exports: {} }, gt;
9
- function Br() {
10
- return gt || (gt = 1, (function(r) {
8
+ var he = { exports: {} }, ge;
9
+ function Bt() {
10
+ return ge || (ge = 1, (function(t) {
11
11
  (function() {
12
12
  var u = {}.hasOwnProperty;
13
13
  function n() {
14
- for (var t = "", e = 0; e < arguments.length; e++) {
15
- var i = arguments[e];
16
- i && (t = o(t, a.call(this, i)));
14
+ for (var e = "", r = 0; r < arguments.length; r++) {
15
+ var i = arguments[r];
16
+ i && (e = a(e, o.call(this, i)));
17
17
  }
18
- return t;
18
+ return e;
19
19
  }
20
- function a(t) {
21
- if (typeof t == "string" || typeof t == "number")
22
- return this && this[t] || t;
23
- if (typeof t != "object")
20
+ function o(e) {
21
+ if (typeof e == "string" || typeof e == "number")
22
+ return this && this[e] || e;
23
+ if (typeof e != "object")
24
24
  return "";
25
- if (Array.isArray(t))
26
- return n.apply(this, t);
27
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
28
- return t.toString();
29
- var e = "";
30
- for (var i in t)
31
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
32
- return e;
25
+ if (Array.isArray(e))
26
+ return n.apply(this, e);
27
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
28
+ return e.toString();
29
+ var r = "";
30
+ for (var i in e)
31
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
32
+ return r;
33
33
  }
34
- function o(t, e) {
35
- return e ? t ? t + " " + e : t + e : t;
34
+ function a(e, r) {
35
+ return r ? e ? e + " " + r : e + r : e;
36
36
  }
37
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
37
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
38
38
  })();
39
- })(vt)), vt.exports;
39
+ })(he)), he.exports;
40
40
  }
41
- var qr = Br();
42
- const Rr = /* @__PURE__ */ Mr(qr), Lr = {
41
+ var qt = Bt();
42
+ const Lt = /* @__PURE__ */ Mt(qt), Rt = {
43
43
  "purpur-icon": "_purpur-icon_8u1lq_1",
44
44
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
45
45
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -47,67 +47,67 @@ const Rr = /* @__PURE__ */ Mr(qr), Lr = {
47
47
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
48
48
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
49
49
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
50
- }, Er = Rr.bind(Lr), mt = "purpur-icon", Tr = "md", Dr = (r) => r.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), zr = ({ content: r = "", title: u } = {}) => {
50
+ }, zt = Lt.bind(Rt), me = "purpur-icon", Et = "md", Tt = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Dt = ({ content: t = "", title: u } = {}) => {
51
51
  const n = [
52
52
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
53
53
  { name: "fill", value: "currentColor" },
54
54
  { name: "viewBox", value: "0 0 24 24" },
55
55
  u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
56
- ], a = u ? `<title>${u}</title>` : "";
57
- return `<svg ${Dr(n)}>${a}${r}</svg>`;
58
- }, Vr = (r) => r.replace(/<(\/?)svg([^>]*)>/g, "").trim(), tr = ({ svg: r, allyTitle: u, className: n, size: a = Tr, ...o }) => {
59
- const t = zr({
60
- content: Vr(r.svg),
56
+ ], o = u ? `<title>${u}</title>` : "";
57
+ return `<svg ${Tt(n)}>${o}${t}</svg>`;
58
+ }, Vt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), et = ({ svg: t, allyTitle: u, className: n, size: o = Et, ...a }) => {
59
+ const e = Dt({
60
+ content: Vt(t.svg),
61
61
  title: u
62
- }), e = Er(mt, `${mt}--${a}`, n);
63
- return /* @__PURE__ */ l("span", { className: e, dangerouslySetInnerHTML: { __html: t }, ...o });
62
+ }), r = zt(me, `${me}--${o}`, n);
63
+ return /* @__PURE__ */ l("span", { className: r, dangerouslySetInnerHTML: { __html: e }, ...a });
64
64
  };
65
- tr.displayName = "Icon";
66
- const Fr = {
65
+ et.displayName = "Icon";
66
+ const Ft = {
67
67
  name: "chevron-down",
68
68
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.136 7.864a.9.9 0 0 0-1.272 0L12 14.727 5.136 7.864a.9.9 0 0 0-1.272 1.272l7.5 7.5a.9.9 0 0 0 1.272 0l7.5-7.5a.9.9 0 0 0 0-1.272Z" clip-rule="evenodd"/></svg>',
69
69
  keywords: ["chevron-down"],
70
70
  category: "utility"
71
- }, rr = (r) => /* @__PURE__ */ l(tr, { ...r, svg: Fr });
72
- rr.displayName = "IconChevronDown";
73
- function Zr(r) {
74
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
71
+ }, tt = (t) => /* @__PURE__ */ l(et, { ...t, svg: Ft });
72
+ tt.displayName = "IconChevronDown";
73
+ function Zt(t) {
74
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
75
75
  }
76
- var bt = { exports: {} }, yt;
77
- function Kr() {
78
- return yt || (yt = 1, (function(r) {
76
+ var be = { exports: {} }, ye;
77
+ function Kt() {
78
+ return ye || (ye = 1, (function(t) {
79
79
  (function() {
80
80
  var u = {}.hasOwnProperty;
81
81
  function n() {
82
- for (var t = "", e = 0; e < arguments.length; e++) {
83
- var i = arguments[e];
84
- i && (t = o(t, a.call(this, i)));
82
+ for (var e = "", r = 0; r < arguments.length; r++) {
83
+ var i = arguments[r];
84
+ i && (e = a(e, o.call(this, i)));
85
85
  }
86
- return t;
86
+ return e;
87
87
  }
88
- function a(t) {
89
- if (typeof t == "string" || typeof t == "number")
90
- return this && this[t] || t;
91
- if (typeof t != "object")
88
+ function o(e) {
89
+ if (typeof e == "string" || typeof e == "number")
90
+ return this && this[e] || e;
91
+ if (typeof e != "object")
92
92
  return "";
93
- if (Array.isArray(t))
94
- return n.apply(this, t);
95
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
96
- return t.toString();
97
- var e = "";
98
- for (var i in t)
99
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
100
- return e;
93
+ if (Array.isArray(e))
94
+ return n.apply(this, e);
95
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
96
+ return e.toString();
97
+ var r = "";
98
+ for (var i in e)
99
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
100
+ return r;
101
101
  }
102
- function o(t, e) {
103
- return e ? t ? t + " " + e : t + e : t;
102
+ function a(e, r) {
103
+ return r ? e ? e + " " + r : e + r : e;
104
104
  }
105
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
105
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
106
106
  })();
107
- })(bt)), bt.exports;
107
+ })(be)), be.exports;
108
108
  }
109
- var Hr = Kr();
110
- const er = /* @__PURE__ */ Zr(Hr), nr = {
109
+ var Ht = Kt();
110
+ const rt = /* @__PURE__ */ Zt(Ht), nt = {
111
111
  "purpur-listbox": "_purpur-listbox_6c8yl_1",
112
112
  "purpur-listbox-item": "_purpur-listbox-item_6c8yl_15",
113
113
  "purpur-listbox-item--hovered": "_purpur-listbox-item--hovered_6c8yl_29",
@@ -116,44 +116,44 @@ const er = /* @__PURE__ */ Zr(Hr), nr = {
116
116
  "purpur-listbox-item--disabled": "_purpur-listbox-item--disabled_6c8yl_44",
117
117
  "purpur-listbox-item__icon": "_purpur-listbox-item__icon_6c8yl_51"
118
118
  };
119
- function Wr(r) {
120
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
119
+ function Wt(t) {
120
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
121
121
  }
122
- var xt = { exports: {} }, wt;
123
- function Gr() {
124
- return wt || (wt = 1, (function(r) {
122
+ var xe = { exports: {} }, we;
123
+ function Gt() {
124
+ return we || (we = 1, (function(t) {
125
125
  (function() {
126
126
  var u = {}.hasOwnProperty;
127
127
  function n() {
128
- for (var t = "", e = 0; e < arguments.length; e++) {
129
- var i = arguments[e];
130
- i && (t = o(t, a.call(this, i)));
128
+ for (var e = "", r = 0; r < arguments.length; r++) {
129
+ var i = arguments[r];
130
+ i && (e = a(e, o.call(this, i)));
131
131
  }
132
- return t;
132
+ return e;
133
133
  }
134
- function a(t) {
135
- if (typeof t == "string" || typeof t == "number")
136
- return this && this[t] || t;
137
- if (typeof t != "object")
134
+ function o(e) {
135
+ if (typeof e == "string" || typeof e == "number")
136
+ return this && this[e] || e;
137
+ if (typeof e != "object")
138
138
  return "";
139
- if (Array.isArray(t))
140
- return n.apply(this, t);
141
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
142
- return t.toString();
143
- var e = "";
144
- for (var i in t)
145
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
146
- return e;
139
+ if (Array.isArray(e))
140
+ return n.apply(this, e);
141
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
142
+ return e.toString();
143
+ var r = "";
144
+ for (var i in e)
145
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
146
+ return r;
147
147
  }
148
- function o(t, e) {
149
- return e ? t ? t + " " + e : t + e : t;
148
+ function a(e, r) {
149
+ return r ? e ? e + " " + r : e + r : e;
150
150
  }
151
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
151
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
152
152
  })();
153
- })(xt)), xt.exports;
153
+ })(xe)), xe.exports;
154
154
  }
155
- var Ur = Gr();
156
- const Yr = /* @__PURE__ */ Wr(Ur), Jr = {
155
+ var Ut = Gt();
156
+ const Yt = /* @__PURE__ */ Wt(Ut), Jt = {
157
157
  "purpur-icon": "_purpur-icon_8u1lq_1",
158
158
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
159
159
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -161,213 +161,214 @@ const Yr = /* @__PURE__ */ Wr(Ur), Jr = {
161
161
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
162
162
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
163
163
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
164
- }, Qr = Yr.bind(Jr), $t = "purpur-icon", Xr = "md", te = (r) => r.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), re = ({ content: r = "", title: u } = {}) => {
164
+ }, Qt = Yt.bind(Jt), $e = "purpur-icon", Xt = "md", er = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), tr = ({ content: t = "", title: u } = {}) => {
165
165
  const n = [
166
166
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
167
167
  { name: "fill", value: "currentColor" },
168
168
  { name: "viewBox", value: "0 0 24 24" },
169
169
  u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
170
- ], a = u ? `<title>${u}</title>` : "";
171
- return `<svg ${te(n)}>${a}${r}</svg>`;
172
- }, ee = (r) => r.replace(/<(\/?)svg([^>]*)>/g, "").trim(), ir = ({ svg: r, allyTitle: u, className: n, size: a = Xr, ...o }) => {
173
- const t = re({
174
- content: ee(r.svg),
170
+ ], o = u ? `<title>${u}</title>` : "";
171
+ return `<svg ${er(n)}>${o}${t}</svg>`;
172
+ }, rr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), it = ({ svg: t, allyTitle: u, className: n, size: o = Xt, ...a }) => {
173
+ const e = tr({
174
+ content: rr(t.svg),
175
175
  title: u
176
- }), e = Qr($t, `${$t}--${a}`, n);
177
- return /* @__PURE__ */ l("span", { className: e, dangerouslySetInnerHTML: { __html: t }, ...o });
176
+ }), r = Qt($e, `${$e}--${o}`, n);
177
+ return /* @__PURE__ */ l("span", { className: r, dangerouslySetInnerHTML: { __html: e }, ...a });
178
178
  };
179
- ir.displayName = "Icon";
180
- const ne = {
179
+ it.displayName = "Icon";
180
+ const nr = {
181
181
  name: "checkmark",
182
182
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',
183
183
  keywords: ["checkmark"],
184
184
  category: "utility"
185
- }, ur = (r) => /* @__PURE__ */ l(ir, { ...r, svg: ne });
186
- ur.displayName = "IconCheckmark";
187
- function ie(r) {
188
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
185
+ }, ut = (t) => /* @__PURE__ */ l(it, { ...t, svg: nr });
186
+ ut.displayName = "IconCheckmark";
187
+ function ir(t) {
188
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
189
189
  }
190
- var St = { exports: {} }, Nt;
191
- function ue() {
192
- return Nt || (Nt = 1, (function(r) {
190
+ var Se = { exports: {} }, Oe;
191
+ function ur() {
192
+ return Oe || (Oe = 1, (function(t) {
193
193
  (function() {
194
194
  var u = {}.hasOwnProperty;
195
195
  function n() {
196
- for (var t = "", e = 0; e < arguments.length; e++) {
197
- var i = arguments[e];
198
- i && (t = o(t, a.call(this, i)));
196
+ for (var e = "", r = 0; r < arguments.length; r++) {
197
+ var i = arguments[r];
198
+ i && (e = a(e, o.call(this, i)));
199
199
  }
200
- return t;
200
+ return e;
201
201
  }
202
- function a(t) {
203
- if (typeof t == "string" || typeof t == "number")
204
- return this && this[t] || t;
205
- if (typeof t != "object")
202
+ function o(e) {
203
+ if (typeof e == "string" || typeof e == "number")
204
+ return this && this[e] || e;
205
+ if (typeof e != "object")
206
206
  return "";
207
- if (Array.isArray(t))
208
- return n.apply(this, t);
209
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
210
- return t.toString();
211
- var e = "";
212
- for (var i in t)
213
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
214
- return e;
207
+ if (Array.isArray(e))
208
+ return n.apply(this, e);
209
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
210
+ return e.toString();
211
+ var r = "";
212
+ for (var i in e)
213
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
214
+ return r;
215
215
  }
216
- function o(t, e) {
217
- return e ? t ? t + " " + e : t + e : t;
216
+ function a(e, r) {
217
+ return r ? e ? e + " " + r : e + r : e;
218
218
  }
219
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
219
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
220
220
  })();
221
- })(St)), St.exports;
221
+ })(Se)), Se.exports;
222
222
  }
223
- var oe = ue();
224
- const ae = /* @__PURE__ */ ie(oe), pe = {
225
- "purpur-paragraph": "_purpur-paragraph_1rh57_1",
226
- "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
227
- "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
228
- "purpur-paragraph--negative": "_purpur-paragraph--negative_1rh57_13",
229
- "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1rh57_16",
230
- "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1rh57_22",
231
- "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1rh57_29",
232
- "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1rh57_36",
233
- "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1rh57_42",
234
- "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1rh57_48",
235
- "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1rh57_54",
236
- "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
237
- "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
238
- "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
239
- }, le = ae.bind(pe), se = {
223
+ var ar = ur();
224
+ const or = /* @__PURE__ */ ir(ar), pr = {
225
+ "purpur-paragraph": "_purpur-paragraph_1vz75_1",
226
+ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1vz75_7",
227
+ "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1vz75_10",
228
+ "purpur-paragraph--negative": "_purpur-paragraph--negative_1vz75_13",
229
+ "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1vz75_16",
230
+ "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1vz75_22",
231
+ "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1vz75_29",
232
+ "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1vz75_36",
233
+ "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1vz75_42",
234
+ "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1vz75_48",
235
+ "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1vz75_54",
236
+ "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1vz75_60",
237
+ "purpur-paragraph--additional-100-bold": "_purpur-paragraph--additional-100-bold_1vz75_67",
238
+ "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1vz75_74",
239
+ "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1vz75_82"
240
+ }, lr = or.bind(pr), sr = {
240
241
  PARAGRAPH100: "paragraph-100"
241
- }, Z = "purpur-paragraph", or = ({
242
- children: r,
242
+ }, Z = "purpur-paragraph", at = ({
243
+ children: t,
243
244
  className: u,
244
245
  disabled: n,
245
- enableHyphenation: a = !1,
246
- negative: o = !1,
247
- variant: t = se.PARAGRAPH100,
248
- ...e
246
+ enableHyphenation: o = !1,
247
+ negative: a = !1,
248
+ variant: e = sr.PARAGRAPH100,
249
+ ...r
249
250
  }) => {
250
- const i = le(u, Z, `${Z}--${t}`, {
251
- [`${Z}--hyphens`]: a,
251
+ const i = lr(u, Z, `${Z}--${e}`, {
252
+ [`${Z}--hyphens`]: o,
252
253
  [`${Z}--disabled`]: n,
253
- [`${Z}--negative`]: o
254
+ [`${Z}--negative`]: a
254
255
  });
255
- return /* @__PURE__ */ l("p", { ...e, className: i, children: r });
256
+ return /* @__PURE__ */ l("p", { ...r, className: i, children: t });
256
257
  };
257
- or.displayName = "Paragraph";
258
- const Ot = er.bind(nr), L = "purpur-listbox", at = Y((r, u) => {
258
+ at.displayName = "Paragraph";
259
+ const Ne = rt.bind(nt), z = "purpur-listbox", pe = Y((t, u) => {
259
260
  const {
260
261
  disabled: n,
261
- highlighted: a,
262
- hovered: o,
263
- selected: t,
264
- children: e,
262
+ highlighted: o,
263
+ hovered: a,
264
+ selected: e,
265
+ children: r,
265
266
  className: i,
266
267
  noninteractive: d,
267
268
  ..._
268
- } = r, b = Ot(`${L}-item`, i, {
269
- [`${L}-item--highlighted`]: a,
270
- [`${L}-item--selected`]: t,
271
- [`${L}-item--hovered`]: o,
272
- [`${L}-item--disabled`]: n,
273
- [`${L}-item--noninteractive`]: d
269
+ } = t, y = Ne(`${z}-item`, i, {
270
+ [`${z}-item--highlighted`]: o,
271
+ [`${z}-item--selected`]: e,
272
+ [`${z}-item--hovered`]: a,
273
+ [`${z}-item--disabled`]: n,
274
+ [`${z}-item--noninteractive`]: d
274
275
  });
275
- return /* @__PURE__ */ S(
276
+ return /* @__PURE__ */ N(
276
277
  "li",
277
278
  {
278
279
  ..._,
279
280
  ref: u,
280
- className: b,
281
- "aria-selected": !!t,
281
+ className: y,
282
+ "aria-selected": !!e,
282
283
  role: "option",
283
284
  "aria-disabled": !!n,
284
285
  children: [
285
- typeof e == "string" ? /* @__PURE__ */ l(or, { children: e }) : e,
286
- t && /* @__PURE__ */ l(ur, { size: "xs", className: Ot(`${L}-item__icon`) })
286
+ typeof r == "string" ? /* @__PURE__ */ l(at, { children: r }) : r,
287
+ e && /* @__PURE__ */ l(ut, { size: "xs", className: Ne(`${z}-item__icon`) })
287
288
  ]
288
289
  }
289
290
  );
290
- }), ce = (r) => Xt(r) && r?.type === at;
291
- at.displayName = "ListBoxItem";
292
- const de = er.bind(nr), _e = "purpur-listbox", U = Y(
293
- ({ children: r, ...u }, n) => /* @__PURE__ */ l(
291
+ }), cr = (t) => Xe(t) && t?.type === pe;
292
+ pe.displayName = "ListBoxItem";
293
+ const dr = rt.bind(nt), _r = "purpur-listbox", U = Y(
294
+ ({ children: t, ...u }, n) => /* @__PURE__ */ l(
294
295
  "ul",
295
296
  {
296
297
  ...u,
297
298
  ref: n,
298
- className: de(_e, u.className),
299
+ className: dr(_r, u.className),
299
300
  role: "listbox",
300
- children: Ar.toArray(r).filter(ce)
301
+ children: At.toArray(t).filter(cr)
301
302
  }
302
303
  )
303
304
  );
304
- U.Item = at;
305
+ U.Item = pe;
305
306
  U.displayName = "ListBox";
306
- const fe = {
307
+ const fr = {
307
308
  LG: "lg"
308
309
  };
309
- function he(r) {
310
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
310
+ function vr(t) {
311
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
311
312
  }
312
- var jt = { exports: {} }, At;
313
- function ve() {
314
- return At || (At = 1, (function(r) {
313
+ var je = { exports: {} }, Ae;
314
+ function hr() {
315
+ return Ae || (Ae = 1, (function(t) {
315
316
  (function() {
316
317
  var u = {}.hasOwnProperty;
317
318
  function n() {
318
- for (var t = "", e = 0; e < arguments.length; e++) {
319
- var i = arguments[e];
320
- i && (t = o(t, a.call(this, i)));
319
+ for (var e = "", r = 0; r < arguments.length; r++) {
320
+ var i = arguments[r];
321
+ i && (e = a(e, o.call(this, i)));
321
322
  }
322
- return t;
323
+ return e;
323
324
  }
324
- function a(t) {
325
- if (typeof t == "string" || typeof t == "number")
326
- return this && this[t] || t;
327
- if (typeof t != "object")
325
+ function o(e) {
326
+ if (typeof e == "string" || typeof e == "number")
327
+ return this && this[e] || e;
328
+ if (typeof e != "object")
328
329
  return "";
329
- if (Array.isArray(t))
330
- return n.apply(this, t);
331
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
332
- return t.toString();
333
- var e = "";
334
- for (var i in t)
335
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
336
- return e;
330
+ if (Array.isArray(e))
331
+ return n.apply(this, e);
332
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
333
+ return e.toString();
334
+ var r = "";
335
+ for (var i in e)
336
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
337
+ return r;
337
338
  }
338
- function o(t, e) {
339
- return e ? t ? t + " " + e : t + e : t;
339
+ function a(e, r) {
340
+ return r ? e ? e + " " + r : e + r : e;
340
341
  }
341
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
342
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
342
343
  })();
343
- })(jt)), jt.exports;
344
+ })(je)), je.exports;
344
345
  }
345
- var ge = ve();
346
- const me = /* @__PURE__ */ he(ge), be = "_rotate_12t9p_1", ye = "_dash_12t9p_1", xe = {
346
+ var gr = hr();
347
+ const mr = /* @__PURE__ */ vr(gr), br = "_rotate_12t9p_1", yr = "_dash_12t9p_1", xr = {
347
348
  "purpur-spinner": "_purpur-spinner_12t9p_2",
348
- rotate: be,
349
+ rotate: br,
349
350
  "purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
350
351
  "purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
351
352
  "purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
352
353
  "purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
353
354
  "purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
354
355
  "purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
355
- dash: ye,
356
+ dash: yr,
356
357
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
357
358
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
358
- }, kt = me.bind(xe), K = "purpur-spinner", we = {
359
+ }, Ce = mr.bind(xr), K = "purpur-spinner", wr = {
359
360
  SM: "sm"
360
- }, ar = ({
361
- disabled: r = !1,
361
+ }, ot = ({
362
+ disabled: t = !1,
362
363
  negative: u = !1,
363
- size: n = we.SM,
364
- className: a,
365
- ...o
366
- }) => /* @__PURE__ */ l("div", { className: kt(K, `${K}--${n}`, a), ...o, children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
364
+ size: n = wr.SM,
365
+ className: o,
366
+ ...a
367
+ }) => /* @__PURE__ */ l("div", { className: Ce(K, `${K}--${n}`, o), ...a, children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
367
368
  "circle",
368
369
  {
369
- className: kt(`${K}__circle`, {
370
- [`${K}__circle--disabled`]: r,
370
+ className: Ce(`${K}__circle`, {
371
+ [`${K}__circle--disabled`]: t,
371
372
  [`${K}__circle--negative`]: u
372
373
  }),
373
374
  cx: "25",
@@ -375,45 +376,45 @@ const me = /* @__PURE__ */ he(ge), be = "_rotate_12t9p_1", ye = "_dash_12t9p_1",
375
376
  r: "20"
376
377
  }
377
378
  ) }) });
378
- ar.displayName = "Spinner";
379
- function $e(r) {
380
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
379
+ ot.displayName = "Spinner";
380
+ function $r(t) {
381
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
381
382
  }
382
- var Ct = { exports: {} }, Pt;
383
- function Se() {
384
- return Pt || (Pt = 1, (function(r) {
383
+ var Pe = { exports: {} }, Ie;
384
+ function Sr() {
385
+ return Ie || (Ie = 1, (function(t) {
385
386
  (function() {
386
387
  var u = {}.hasOwnProperty;
387
388
  function n() {
388
- for (var t = "", e = 0; e < arguments.length; e++) {
389
- var i = arguments[e];
390
- i && (t = o(t, a.call(this, i)));
389
+ for (var e = "", r = 0; r < arguments.length; r++) {
390
+ var i = arguments[r];
391
+ i && (e = a(e, o.call(this, i)));
391
392
  }
392
- return t;
393
+ return e;
393
394
  }
394
- function a(t) {
395
- if (typeof t == "string" || typeof t == "number")
396
- return this && this[t] || t;
397
- if (typeof t != "object")
395
+ function o(e) {
396
+ if (typeof e == "string" || typeof e == "number")
397
+ return this && this[e] || e;
398
+ if (typeof e != "object")
398
399
  return "";
399
- if (Array.isArray(t))
400
- return n.apply(this, t);
401
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
402
- return t.toString();
403
- var e = "";
404
- for (var i in t)
405
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
406
- return e;
400
+ if (Array.isArray(e))
401
+ return n.apply(this, e);
402
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
403
+ return e.toString();
404
+ var r = "";
405
+ for (var i in e)
406
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
407
+ return r;
407
408
  }
408
- function o(t, e) {
409
- return e ? t ? t + " " + e : t + e : t;
409
+ function a(e, r) {
410
+ return r ? e ? e + " " + r : e + r : e;
410
411
  }
411
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
412
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
412
413
  })();
413
- })(Ct)), Ct.exports;
414
+ })(Pe)), Pe.exports;
414
415
  }
415
- var Ne = Se();
416
- const Oe = /* @__PURE__ */ $e(Ne), je = {
416
+ var Or = Sr();
417
+ const Nr = /* @__PURE__ */ $r(Or), jr = {
417
418
  "purpur-button": "_purpur-button_10jh0_1",
418
419
  "purpur-button--xs": "_purpur-button--xs_10jh0_22",
419
420
  "purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
@@ -436,104 +437,104 @@ const Oe = /* @__PURE__ */ $e(Ne), je = {
436
437
  "purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
437
438
  "purpur-button--text": "_purpur-button--text_10jh0_185",
438
439
  "purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
439
- }, It = Oe.bind(je), I = "purpur-button", pr = Y(
440
+ }, ke = Nr.bind(jr), k = "purpur-button", pt = Y(
440
441
  ({
441
- children: r,
442
+ children: t,
442
443
  className: u,
443
444
  disabled: n = !1,
444
- fullWidth: a = !1,
445
- iconOnly: o,
446
- loading: t = !1,
447
- negative: e = !1,
445
+ fullWidth: o = !1,
446
+ iconOnly: a,
447
+ loading: e = !1,
448
+ negative: r = !1,
448
449
  onClick: i,
449
450
  size: d = "md",
450
451
  variant: _,
451
- type: b = "button",
452
- ...y
453
- }, j) => {
454
- if (o && _ === "destructive")
452
+ type: y = "button",
453
+ ...x
454
+ }, C) => {
455
+ if (a && _ === "destructive")
455
456
  return null;
456
- const M = It(
457
+ const M = ke(
457
458
  [
458
- I,
459
- `${I}--${e ? `${_}-negative` : _}`,
460
- `${I}--${d}`
459
+ k,
460
+ `${k}--${r ? `${_}-negative` : _}`,
461
+ `${k}--${d}`
461
462
  ],
462
463
  {
463
- [`${I}--icon-only`]: o,
464
- [`${I}--negative`]: e,
465
- [`${I}--full-width`]: a,
466
- [`${I}--disabled`]: n || t
464
+ [`${k}--icon-only`]: a,
465
+ [`${k}--negative`]: r,
466
+ [`${k}--full-width`]: o,
467
+ [`${k}--disabled`]: n || e
467
468
  },
468
469
  u
469
- ), c = (A) => {
470
- n || t ? A.preventDefault() : i && i(A);
471
- }, x = !!y["aria-disabled"] || n || t;
472
- return /* @__PURE__ */ S(
470
+ ), g = (S) => {
471
+ n || e ? S.preventDefault() : i && i(S);
472
+ }, c = !!x["aria-disabled"] || n || e;
473
+ return /* @__PURE__ */ N(
473
474
  "button",
474
475
  {
475
476
  className: M,
476
- type: b,
477
- ref: j,
478
- "aria-disabled": x,
479
- onClick: c,
480
- ...y,
477
+ type: y,
478
+ ref: C,
479
+ "aria-disabled": c,
480
+ onClick: g,
481
+ ...x,
481
482
  children: [
482
- t && /* @__PURE__ */ l(
483
- ar,
483
+ e && /* @__PURE__ */ l(
484
+ ot,
484
485
  {
485
- size: d === fe.LG ? "xs" : "xxs",
486
- negative: e,
487
- disabled: x,
488
- className: It(`${I}__spinner`)
486
+ size: d === fr.LG ? "xs" : "xxs",
487
+ negative: r,
488
+ disabled: c,
489
+ className: ke(`${k}__spinner`)
489
490
  }
490
491
  ),
491
492
  " ",
492
- r
493
+ t
493
494
  ]
494
495
  }
495
496
  );
496
497
  }
497
498
  );
498
- pr.displayName = "Button";
499
- function Ae(r) {
500
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
499
+ pt.displayName = "Button";
500
+ function Ar(t) {
501
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
501
502
  }
502
- var Mt = { exports: {} }, Bt;
503
- function ke() {
504
- return Bt || (Bt = 1, (function(r) {
503
+ var Me = { exports: {} }, Be;
504
+ function Cr() {
505
+ return Be || (Be = 1, (function(t) {
505
506
  (function() {
506
507
  var u = {}.hasOwnProperty;
507
508
  function n() {
508
- for (var t = "", e = 0; e < arguments.length; e++) {
509
- var i = arguments[e];
510
- i && (t = o(t, a.call(this, i)));
509
+ for (var e = "", r = 0; r < arguments.length; r++) {
510
+ var i = arguments[r];
511
+ i && (e = a(e, o.call(this, i)));
511
512
  }
512
- return t;
513
+ return e;
513
514
  }
514
- function a(t) {
515
- if (typeof t == "string" || typeof t == "number")
516
- return this && this[t] || t;
517
- if (typeof t != "object")
515
+ function o(e) {
516
+ if (typeof e == "string" || typeof e == "number")
517
+ return this && this[e] || e;
518
+ if (typeof e != "object")
518
519
  return "";
519
- if (Array.isArray(t))
520
- return n.apply(this, t);
521
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
522
- return t.toString();
523
- var e = "";
524
- for (var i in t)
525
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
526
- return e;
520
+ if (Array.isArray(e))
521
+ return n.apply(this, e);
522
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
523
+ return e.toString();
524
+ var r = "";
525
+ for (var i in e)
526
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
527
+ return r;
527
528
  }
528
- function o(t, e) {
529
- return e ? t ? t + " " + e : t + e : t;
529
+ function a(e, r) {
530
+ return r ? e ? e + " " + r : e + r : e;
530
531
  }
531
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
532
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
532
533
  })();
533
- })(Mt)), Mt.exports;
534
+ })(Me)), Me.exports;
534
535
  }
535
- var Ce = ke();
536
- const Pe = /* @__PURE__ */ Ae(Ce), Ie = {
536
+ var Pr = Cr();
537
+ const Ir = /* @__PURE__ */ Ar(Pr), kr = {
537
538
  "purpur-icon": "_purpur-icon_8u1lq_1",
538
539
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
539
540
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -541,183 +542,183 @@ const Pe = /* @__PURE__ */ Ae(Ce), Ie = {
541
542
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
542
543
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
543
544
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
544
- }, Me = Pe.bind(Ie), qt = "purpur-icon", Be = "md", qe = (r) => r.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Re = ({ content: r = "", title: u } = {}) => {
545
+ }, Mr = Ir.bind(kr), qe = "purpur-icon", Br = "md", qr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Lr = ({ content: t = "", title: u } = {}) => {
545
546
  const n = [
546
547
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
547
548
  { name: "fill", value: "currentColor" },
548
549
  { name: "viewBox", value: "0 0 24 24" },
549
550
  u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
550
- ], a = u ? `<title>${u}</title>` : "";
551
- return `<svg ${qe(n)}>${a}${r}</svg>`;
552
- }, Le = (r) => r.replace(/<(\/?)svg([^>]*)>/g, "").trim(), lr = ({ svg: r, allyTitle: u, className: n, size: a = Be, ...o }) => {
553
- const t = Re({
554
- content: Le(r.svg),
551
+ ], o = u ? `<title>${u}</title>` : "";
552
+ return `<svg ${qr(n)}>${o}${t}</svg>`;
553
+ }, Rr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), lt = ({ svg: t, allyTitle: u, className: n, size: o = Br, ...a }) => {
554
+ const e = Lr({
555
+ content: Rr(t.svg),
555
556
  title: u
556
- }), e = Me(qt, `${qt}--${a}`, n);
557
- return /* @__PURE__ */ l("span", { className: e, dangerouslySetInnerHTML: { __html: t }, ...o });
557
+ }), r = Mr(qe, `${qe}--${o}`, n);
558
+ return /* @__PURE__ */ l("span", { className: r, dangerouslySetInnerHTML: { __html: e }, ...a });
558
559
  };
559
- lr.displayName = "Icon";
560
- const Ee = {
560
+ lt.displayName = "Icon";
561
+ const zr = {
561
562
  name: "error-filled",
562
563
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
563
564
  keywords: ["error-filled"],
564
565
  category: "status"
565
566
  };
566
- function Te(r) {
567
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
567
+ function Er(t) {
568
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
568
569
  }
569
- var Rt = { exports: {} }, Lt;
570
- function De() {
571
- return Lt || (Lt = 1, (function(r) {
570
+ var Le = { exports: {} }, Re;
571
+ function Tr() {
572
+ return Re || (Re = 1, (function(t) {
572
573
  (function() {
573
574
  var u = {}.hasOwnProperty;
574
575
  function n() {
575
- for (var t = "", e = 0; e < arguments.length; e++) {
576
- var i = arguments[e];
577
- i && (t = o(t, a.call(this, i)));
576
+ for (var e = "", r = 0; r < arguments.length; r++) {
577
+ var i = arguments[r];
578
+ i && (e = a(e, o.call(this, i)));
578
579
  }
579
- return t;
580
+ return e;
580
581
  }
581
- function a(t) {
582
- if (typeof t == "string" || typeof t == "number")
583
- return this && this[t] || t;
584
- if (typeof t != "object")
582
+ function o(e) {
583
+ if (typeof e == "string" || typeof e == "number")
584
+ return this && this[e] || e;
585
+ if (typeof e != "object")
585
586
  return "";
586
- if (Array.isArray(t))
587
- return n.apply(this, t);
588
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
589
- return t.toString();
590
- var e = "";
591
- for (var i in t)
592
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
593
- return e;
587
+ if (Array.isArray(e))
588
+ return n.apply(this, e);
589
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
590
+ return e.toString();
591
+ var r = "";
592
+ for (var i in e)
593
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
594
+ return r;
594
595
  }
595
- function o(t, e) {
596
- return e ? t ? t + " " + e : t + e : t;
596
+ function a(e, r) {
597
+ return r ? e ? e + " " + r : e + r : e;
597
598
  }
598
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
599
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
599
600
  })();
600
- })(Rt)), Rt.exports;
601
+ })(Le)), Le.exports;
601
602
  }
602
- var ze = De();
603
- const Ve = /* @__PURE__ */ Te(ze), Fe = {
603
+ var Dr = Tr();
604
+ const Vr = /* @__PURE__ */ Er(Dr), Fr = {
604
605
  "purpur-field-error-text": "_purpur-field-error-text_u1cy2_1",
605
606
  "purpur-field-error-text--negative": "_purpur-field-error-text--negative_u1cy2_11",
606
607
  "purpur-field-error-text__icon": "_purpur-field-error-text__icon_u1cy2_14"
607
- }, Et = Ve.bind(Fe), nt = "purpur-field-error-text", Ze = ({
608
- children: r,
608
+ }, ze = Vr.bind(Fr), ie = "purpur-field-error-text", Zr = ({
609
+ children: t,
609
610
  className: u,
610
611
  negative: n = !1,
611
- ["aria-relevant"]: a = "additions text",
612
- ...o
613
- }) => /* @__PURE__ */ S(
612
+ ["aria-relevant"]: o = "additions text",
613
+ ...a
614
+ }) => /* @__PURE__ */ N(
614
615
  "div",
615
616
  {
616
- className: Et(u, nt, {
617
- [`${nt}--negative`]: n
617
+ className: ze(u, ie, {
618
+ [`${ie}--negative`]: n
618
619
  }),
619
620
  "aria-live": "assertive",
620
- "aria-relevant": a,
621
- ...o,
621
+ "aria-relevant": o,
622
+ ...a,
622
623
  children: [
623
- /* @__PURE__ */ l(lr, { svg: Ee, size: "xs", className: Et(`${nt}__icon`) }),
624
- r
624
+ /* @__PURE__ */ l(lt, { svg: zr, size: "xs", className: ze(`${ie}__icon`) }),
625
+ t
625
626
  ]
626
627
  }
627
628
  );
628
- function Ke(r) {
629
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
629
+ function Kr(t) {
630
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
630
631
  }
631
- var Tt = { exports: {} }, Dt;
632
- function He() {
633
- return Dt || (Dt = 1, (function(r) {
632
+ var Ee = { exports: {} }, Te;
633
+ function Hr() {
634
+ return Te || (Te = 1, (function(t) {
634
635
  (function() {
635
636
  var u = {}.hasOwnProperty;
636
637
  function n() {
637
- for (var t = "", e = 0; e < arguments.length; e++) {
638
- var i = arguments[e];
639
- i && (t = o(t, a.call(this, i)));
638
+ for (var e = "", r = 0; r < arguments.length; r++) {
639
+ var i = arguments[r];
640
+ i && (e = a(e, o.call(this, i)));
640
641
  }
641
- return t;
642
+ return e;
642
643
  }
643
- function a(t) {
644
- if (typeof t == "string" || typeof t == "number")
645
- return this && this[t] || t;
646
- if (typeof t != "object")
644
+ function o(e) {
645
+ if (typeof e == "string" || typeof e == "number")
646
+ return this && this[e] || e;
647
+ if (typeof e != "object")
647
648
  return "";
648
- if (Array.isArray(t))
649
- return n.apply(this, t);
650
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
651
- return t.toString();
652
- var e = "";
653
- for (var i in t)
654
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
655
- return e;
649
+ if (Array.isArray(e))
650
+ return n.apply(this, e);
651
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
652
+ return e.toString();
653
+ var r = "";
654
+ for (var i in e)
655
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
656
+ return r;
656
657
  }
657
- function o(t, e) {
658
- return e ? t ? t + " " + e : t + e : t;
658
+ function a(e, r) {
659
+ return r ? e ? e + " " + r : e + r : e;
659
660
  }
660
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
661
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
661
662
  })();
662
- })(Tt)), Tt.exports;
663
+ })(Ee)), Ee.exports;
663
664
  }
664
- var We = He();
665
- const Ge = /* @__PURE__ */ Ke(We), Ue = {
665
+ var Wr = Hr();
666
+ const Gr = /* @__PURE__ */ Kr(Wr), Ur = {
666
667
  "purpur-field-helper-text": "_purpur-field-helper-text_11nsh_1",
667
668
  "purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_11nsh_9",
668
669
  "purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_11nsh_12"
669
- }, Ye = Ge.bind(Ue), it = "purpur-field-helper-text", Je = ({
670
- children: r,
670
+ }, Yr = Gr.bind(Ur), ue = "purpur-field-helper-text", Jr = ({
671
+ children: t,
671
672
  className: u,
672
673
  disabled: n,
673
- id: a,
674
- negative: o,
675
- ...t
674
+ id: o,
675
+ negative: a,
676
+ ...e
676
677
  }) => {
677
- const e = Ye(u, it, {
678
- [`${it}--disabled`]: n,
679
- [`${it}--negative`]: o
678
+ const r = Yr(u, ue, {
679
+ [`${ue}--disabled`]: n,
680
+ [`${ue}--negative`]: a
680
681
  });
681
- return /* @__PURE__ */ l("span", { id: a, className: e, ...t, children: r });
682
+ return /* @__PURE__ */ l("span", { id: o, className: r, ...e, children: t });
682
683
  };
683
- function Qe(r) {
684
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
684
+ function Qr(t) {
685
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
685
686
  }
686
- var zt = { exports: {} }, Vt;
687
- function Xe() {
688
- return Vt || (Vt = 1, (function(r) {
687
+ var De = { exports: {} }, Ve;
688
+ function Xr() {
689
+ return Ve || (Ve = 1, (function(t) {
689
690
  (function() {
690
691
  var u = {}.hasOwnProperty;
691
692
  function n() {
692
- for (var t = "", e = 0; e < arguments.length; e++) {
693
- var i = arguments[e];
694
- i && (t = o(t, a.call(this, i)));
693
+ for (var e = "", r = 0; r < arguments.length; r++) {
694
+ var i = arguments[r];
695
+ i && (e = a(e, o.call(this, i)));
695
696
  }
696
- return t;
697
+ return e;
697
698
  }
698
- function a(t) {
699
- if (typeof t == "string" || typeof t == "number")
700
- return this && this[t] || t;
701
- if (typeof t != "object")
699
+ function o(e) {
700
+ if (typeof e == "string" || typeof e == "number")
701
+ return this && this[e] || e;
702
+ if (typeof e != "object")
702
703
  return "";
703
- if (Array.isArray(t))
704
- return n.apply(this, t);
705
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
706
- return t.toString();
707
- var e = "";
708
- for (var i in t)
709
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
710
- return e;
704
+ if (Array.isArray(e))
705
+ return n.apply(this, e);
706
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
707
+ return e.toString();
708
+ var r = "";
709
+ for (var i in e)
710
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
711
+ return r;
711
712
  }
712
- function o(t, e) {
713
- return e ? t ? t + " " + e : t + e : t;
713
+ function a(e, r) {
714
+ return r ? e ? e + " " + r : e + r : e;
714
715
  }
715
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
716
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
716
717
  })();
717
- })(zt)), zt.exports;
718
+ })(De)), De.exports;
718
719
  }
719
- var tn = Xe();
720
- const rn = /* @__PURE__ */ Qe(tn), en = {
720
+ var en = Xr();
721
+ const tn = /* @__PURE__ */ Qr(en), rn = {
721
722
  "purpur-icon": "_purpur-icon_8u1lq_1",
722
723
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
723
724
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -725,108 +726,108 @@ const rn = /* @__PURE__ */ Qe(tn), en = {
725
726
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
726
727
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
727
728
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
728
- }, nn = rn.bind(en), Ft = "purpur-icon", un = "md", on = (r) => r.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), an = ({ content: r = "", title: u } = {}) => {
729
+ }, nn = tn.bind(rn), Fe = "purpur-icon", un = "md", an = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), on = ({ content: t = "", title: u } = {}) => {
729
730
  const n = [
730
731
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
731
732
  { name: "fill", value: "currentColor" },
732
733
  { name: "viewBox", value: "0 0 24 24" },
733
734
  u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
734
- ], a = u ? `<title>${u}</title>` : "";
735
- return `<svg ${on(n)}>${a}${r}</svg>`;
736
- }, pn = (r) => r.replace(/<(\/?)svg([^>]*)>/g, "").trim(), pt = ({ svg: r, allyTitle: u, className: n, size: a = un, ...o }) => {
737
- const t = an({
738
- content: pn(r.svg),
735
+ ], o = u ? `<title>${u}</title>` : "";
736
+ return `<svg ${an(n)}>${o}${t}</svg>`;
737
+ }, pn = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), le = ({ svg: t, allyTitle: u, className: n, size: o = un, ...a }) => {
738
+ const e = on({
739
+ content: pn(t.svg),
739
740
  title: u
740
- }), e = nn(Ft, `${Ft}--${a}`, n);
741
- return /* @__PURE__ */ l("span", { className: e, dangerouslySetInnerHTML: { __html: t }, ...o });
741
+ }), r = nn(Fe, `${Fe}--${o}`, n);
742
+ return /* @__PURE__ */ l("span", { className: r, dangerouslySetInnerHTML: { __html: e }, ...a });
742
743
  };
743
- pt.displayName = "Icon";
744
+ le.displayName = "Icon";
744
745
  const ln = {
745
746
  name: "check-circle-filled",
746
747
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',
747
748
  keywords: ["check-circle-filled"],
748
749
  category: "status"
749
- }, sr = (r) => /* @__PURE__ */ l(pt, { ...r, svg: ln });
750
- sr.displayName = "IconCheckCircleFilled";
750
+ }, st = (t) => /* @__PURE__ */ l(le, { ...t, svg: ln });
751
+ st.displayName = "IconCheckCircleFilled";
751
752
  const sn = {
752
753
  name: "close",
753
754
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
754
755
  keywords: ["close"],
755
756
  category: "utility"
756
- }, cr = (r) => /* @__PURE__ */ l(pt, { ...r, svg: sn });
757
- cr.displayName = "IconClose";
758
- function Zt(r, u) {
759
- if (typeof r == "function")
760
- return r(u);
761
- r != null && (r.current = u);
757
+ }, ct = (t) => /* @__PURE__ */ l(le, { ...t, svg: sn });
758
+ ct.displayName = "IconClose";
759
+ function Ze(t, u) {
760
+ if (typeof t == "function")
761
+ return t(u);
762
+ t != null && (t.current = u);
762
763
  }
763
- function cn(...r) {
764
+ function cn(...t) {
764
765
  return (u) => {
765
766
  let n = !1;
766
- const a = r.map((o) => {
767
- const t = Zt(o, u);
768
- return !n && typeof t == "function" && (n = !0), t;
767
+ const o = t.map((a) => {
768
+ const e = Ze(a, u);
769
+ return !n && typeof e == "function" && (n = !0), e;
769
770
  });
770
771
  if (n)
771
772
  return () => {
772
- for (let o = 0; o < a.length; o++) {
773
- const t = a[o];
774
- typeof t == "function" ? t() : Zt(r[o], null);
773
+ for (let a = 0; a < o.length; a++) {
774
+ const e = o[a];
775
+ typeof e == "function" ? e() : Ze(t[a], null);
775
776
  }
776
777
  };
777
778
  };
778
779
  }
779
- var dn = Symbol.for("react.lazy"), Q = h[" use ".trim().toString()];
780
- function _n(r) {
781
- return typeof r == "object" && r !== null && "then" in r;
780
+ var dn = Symbol.for("react.lazy"), X = h[" use ".trim().toString()];
781
+ function _n(t) {
782
+ return typeof t == "object" && t !== null && "then" in t;
782
783
  }
783
- function dr(r) {
784
- return r != null && typeof r == "object" && "$$typeof" in r && r.$$typeof === dn && "_payload" in r && _n(r._payload);
784
+ function dt(t) {
785
+ return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === dn && "_payload" in t && _n(t._payload);
785
786
  }
786
787
  // @__NO_SIDE_EFFECTS__
787
- function fn(r) {
788
- const u = /* @__PURE__ */ hn(r), n = h.forwardRef((a, o) => {
789
- let { children: t, ...e } = a;
790
- dr(t) && typeof Q == "function" && (t = Q(t._payload));
791
- const i = h.Children.toArray(t), d = i.find(gn);
788
+ function fn(t) {
789
+ const u = /* @__PURE__ */ vn(t), n = h.forwardRef((o, a) => {
790
+ let { children: e, ...r } = o;
791
+ dt(e) && typeof X == "function" && (e = X(e._payload));
792
+ const i = h.Children.toArray(e), d = i.find(gn);
792
793
  if (d) {
793
- const _ = d.props.children, b = i.map((y) => y === d ? h.Children.count(_) > 1 ? h.Children.only(null) : h.isValidElement(_) ? _.props.children : null : y);
794
- return /* @__PURE__ */ l(u, { ...e, ref: o, children: h.isValidElement(_) ? h.cloneElement(_, void 0, b) : null });
794
+ const _ = d.props.children, y = i.map((x) => x === d ? h.Children.count(_) > 1 ? h.Children.only(null) : h.isValidElement(_) ? _.props.children : null : x);
795
+ return /* @__PURE__ */ l(u, { ...r, ref: a, children: h.isValidElement(_) ? h.cloneElement(_, void 0, y) : null });
795
796
  }
796
- return /* @__PURE__ */ l(u, { ...e, ref: o, children: t });
797
+ return /* @__PURE__ */ l(u, { ...r, ref: a, children: e });
797
798
  });
798
- return n.displayName = `${r}.Slot`, n;
799
+ return n.displayName = `${t}.Slot`, n;
799
800
  }
800
801
  // @__NO_SIDE_EFFECTS__
801
- function hn(r) {
802
- const u = h.forwardRef((n, a) => {
803
- let { children: o, ...t } = n;
804
- if (dr(o) && typeof Q == "function" && (o = Q(o._payload)), h.isValidElement(o)) {
805
- const e = bn(o), i = mn(t, o.props);
806
- return o.type !== h.Fragment && (i.ref = a ? cn(a, e) : e), h.cloneElement(o, i);
802
+ function vn(t) {
803
+ const u = h.forwardRef((n, o) => {
804
+ let { children: a, ...e } = n;
805
+ if (dt(a) && typeof X == "function" && (a = X(a._payload)), h.isValidElement(a)) {
806
+ const r = bn(a), i = mn(e, a.props);
807
+ return a.type !== h.Fragment && (i.ref = o ? cn(o, r) : r), h.cloneElement(a, i);
807
808
  }
808
- return h.Children.count(o) > 1 ? h.Children.only(null) : null;
809
+ return h.Children.count(a) > 1 ? h.Children.only(null) : null;
809
810
  });
810
- return u.displayName = `${r}.SlotClone`, u;
811
+ return u.displayName = `${t}.SlotClone`, u;
811
812
  }
812
- var vn = Symbol("radix.slottable");
813
- function gn(r) {
814
- return h.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === vn;
813
+ var hn = Symbol("radix.slottable");
814
+ function gn(t) {
815
+ return h.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === hn;
815
816
  }
816
- function mn(r, u) {
817
+ function mn(t, u) {
817
818
  const n = { ...u };
818
- for (const a in u) {
819
- const o = r[a], t = u[a];
820
- /^on[A-Z]/.test(a) ? o && t ? n[a] = (...e) => {
821
- const i = t(...e);
822
- return o(...e), i;
823
- } : o && (n[a] = o) : a === "style" ? n[a] = { ...o, ...t } : a === "className" && (n[a] = [o, t].filter(Boolean).join(" "));
819
+ for (const o in u) {
820
+ const a = t[o], e = u[o];
821
+ /^on[A-Z]/.test(o) ? a && e ? n[o] = (...r) => {
822
+ const i = e(...r);
823
+ return a(...r), i;
824
+ } : a && (n[o] = a) : o === "style" ? n[o] = { ...a, ...e } : o === "className" && (n[o] = [a, e].filter(Boolean).join(" "));
824
825
  }
825
- return { ...r, ...n };
826
+ return { ...t, ...n };
826
827
  }
827
- function bn(r) {
828
- let u = Object.getOwnPropertyDescriptor(r.props, "ref")?.get, n = u && "isReactWarning" in u && u.isReactWarning;
829
- return n ? r.ref : (u = Object.getOwnPropertyDescriptor(r, "ref")?.get, n = u && "isReactWarning" in u && u.isReactWarning, n ? r.props.ref : r.props.ref || r.ref);
828
+ function bn(t) {
829
+ let u = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, n = u && "isReactWarning" in u && u.isReactWarning;
830
+ return n ? t.ref : (u = Object.getOwnPropertyDescriptor(t, "ref")?.get, n = u && "isReactWarning" in u && u.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);
830
831
  }
831
832
  var yn = [
832
833
  "a",
@@ -846,116 +847,116 @@ var yn = [
846
847
  "span",
847
848
  "svg",
848
849
  "ul"
849
- ], xn = yn.reduce((r, u) => {
850
- const n = /* @__PURE__ */ fn(`Primitive.${u}`), a = h.forwardRef((o, t) => {
851
- const { asChild: e, ...i } = o, d = e ? n : u;
852
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(d, { ...i, ref: t });
850
+ ], xn = yn.reduce((t, u) => {
851
+ const n = /* @__PURE__ */ fn(`Primitive.${u}`), o = h.forwardRef((a, e) => {
852
+ const { asChild: r, ...i } = a, d = r ? n : u;
853
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(d, { ...i, ref: e });
853
854
  });
854
- return a.displayName = `Primitive.${u}`, { ...r, [u]: a };
855
- }, {}), wn = "Label", _r = h.forwardRef((r, u) => /* @__PURE__ */ l(
855
+ return o.displayName = `Primitive.${u}`, { ...t, [u]: o };
856
+ }, {}), wn = "Label", _t = h.forwardRef((t, u) => /* @__PURE__ */ l(
856
857
  xn.label,
857
858
  {
858
- ...r,
859
+ ...t,
859
860
  ref: u,
860
861
  onMouseDown: (n) => {
861
- n.target.closest("button, input, select, textarea") || (r.onMouseDown?.(n), !n.defaultPrevented && n.detail > 1 && n.preventDefault());
862
+ n.target.closest("button, input, select, textarea") || (t.onMouseDown?.(n), !n.defaultPrevented && n.detail > 1 && n.preventDefault());
862
863
  }
863
864
  }
864
865
  ));
865
- _r.displayName = wn;
866
- var $n = _r;
867
- function Sn(r) {
868
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
866
+ _t.displayName = wn;
867
+ var $n = _t;
868
+ function Sn(t) {
869
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
869
870
  }
870
- var Kt = { exports: {} }, Ht;
871
- function Nn() {
872
- return Ht || (Ht = 1, (function(r) {
871
+ var Ke = { exports: {} }, He;
872
+ function On() {
873
+ return He || (He = 1, (function(t) {
873
874
  (function() {
874
875
  var u = {}.hasOwnProperty;
875
876
  function n() {
876
- for (var t = "", e = 0; e < arguments.length; e++) {
877
- var i = arguments[e];
878
- i && (t = o(t, a.call(this, i)));
877
+ for (var e = "", r = 0; r < arguments.length; r++) {
878
+ var i = arguments[r];
879
+ i && (e = a(e, o.call(this, i)));
879
880
  }
880
- return t;
881
+ return e;
881
882
  }
882
- function a(t) {
883
- if (typeof t == "string" || typeof t == "number")
884
- return this && this[t] || t;
885
- if (typeof t != "object")
883
+ function o(e) {
884
+ if (typeof e == "string" || typeof e == "number")
885
+ return this && this[e] || e;
886
+ if (typeof e != "object")
886
887
  return "";
887
- if (Array.isArray(t))
888
- return n.apply(this, t);
889
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
890
- return t.toString();
891
- var e = "";
892
- for (var i in t)
893
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
894
- return e;
888
+ if (Array.isArray(e))
889
+ return n.apply(this, e);
890
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
891
+ return e.toString();
892
+ var r = "";
893
+ for (var i in e)
894
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
895
+ return r;
895
896
  }
896
- function o(t, e) {
897
- return e ? t ? t + " " + e : t + e : t;
897
+ function a(e, r) {
898
+ return r ? e ? e + " " + r : e + r : e;
898
899
  }
899
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
900
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
900
901
  })();
901
- })(Kt)), Kt.exports;
902
+ })(Ke)), Ke.exports;
902
903
  }
903
- var On = Nn();
904
- const jn = /* @__PURE__ */ Sn(On), An = {
904
+ var Nn = On();
905
+ const jn = /* @__PURE__ */ Sn(Nn), An = {
905
906
  "purpur-label": "_purpur-label_1x80u_1",
906
907
  "purpur-label--negative": "_purpur-label--negative_1x80u_8",
907
908
  "purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
908
- }, kn = jn.bind(An), ut = "purpur-label", Cn = ({
909
- children: r,
909
+ }, Cn = jn.bind(An), ae = "purpur-label", Pn = ({
910
+ children: t,
910
911
  className: u,
911
912
  disabled: n,
912
- negative: a = !1,
913
- ...o
913
+ negative: o = !1,
914
+ ...a
914
915
  }) => {
915
- const t = kn(u, ut, {
916
- [`${ut}--disabled`]: n,
917
- [`${ut}--negative`]: a
916
+ const e = Cn(u, ae, {
917
+ [`${ae}--disabled`]: n,
918
+ [`${ae}--negative`]: o
918
919
  });
919
- return /* @__PURE__ */ l($n, { className: t, ...o, children: r });
920
+ return /* @__PURE__ */ l($n, { className: e, ...a, children: t });
920
921
  };
921
- function Pn(r) {
922
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
922
+ function In(t) {
923
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
923
924
  }
924
- var Wt = { exports: {} }, Gt;
925
- function In() {
926
- return Gt || (Gt = 1, (function(r) {
925
+ var We = { exports: {} }, Ge;
926
+ function kn() {
927
+ return Ge || (Ge = 1, (function(t) {
927
928
  (function() {
928
929
  var u = {}.hasOwnProperty;
929
930
  function n() {
930
- for (var t = "", e = 0; e < arguments.length; e++) {
931
- var i = arguments[e];
932
- i && (t = o(t, a.call(this, i)));
931
+ for (var e = "", r = 0; r < arguments.length; r++) {
932
+ var i = arguments[r];
933
+ i && (e = a(e, o.call(this, i)));
933
934
  }
934
- return t;
935
+ return e;
935
936
  }
936
- function a(t) {
937
- if (typeof t == "string" || typeof t == "number")
938
- return this && this[t] || t;
939
- if (typeof t != "object")
937
+ function o(e) {
938
+ if (typeof e == "string" || typeof e == "number")
939
+ return this && this[e] || e;
940
+ if (typeof e != "object")
940
941
  return "";
941
- if (Array.isArray(t))
942
- return n.apply(this, t);
943
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
944
- return t.toString();
945
- var e = "";
946
- for (var i in t)
947
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
948
- return e;
942
+ if (Array.isArray(e))
943
+ return n.apply(this, e);
944
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
945
+ return e.toString();
946
+ var r = "";
947
+ for (var i in e)
948
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
949
+ return r;
949
950
  }
950
- function o(t, e) {
951
- return e ? t ? t + " " + e : t + e : t;
951
+ function a(e, r) {
952
+ return r ? e ? e + " " + r : e + r : e;
952
953
  }
953
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
954
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
954
955
  })();
955
- })(Wt)), Wt.exports;
956
+ })(We)), We.exports;
956
957
  }
957
- var Mn = In();
958
- const Bn = /* @__PURE__ */ Pn(Mn), qn = "_rotate_12t9p_1", Rn = "_dash_12t9p_1", Ln = {
958
+ var Mn = kn();
959
+ const Bn = /* @__PURE__ */ In(Mn), qn = "_rotate_12t9p_1", Ln = "_dash_12t9p_1", Rn = {
959
960
  "purpur-spinner": "_purpur-spinner_12t9p_2",
960
961
  rotate: qn,
961
962
  "purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
@@ -964,22 +965,22 @@ const Bn = /* @__PURE__ */ Pn(Mn), qn = "_rotate_12t9p_1", Rn = "_dash_12t9p_1",
964
965
  "purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
965
966
  "purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
966
967
  "purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
967
- dash: Rn,
968
+ dash: Ln,
968
969
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
969
970
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
970
- }, Ut = Bn.bind(Ln), H = "purpur-spinner", En = {
971
+ }, Ue = Bn.bind(Rn), H = "purpur-spinner", zn = {
971
972
  SM: "sm"
972
- }, fr = ({
973
- disabled: r = !1,
973
+ }, ft = ({
974
+ disabled: t = !1,
974
975
  negative: u = !1,
975
- size: n = En.SM,
976
- className: a,
977
- ...o
978
- }) => /* @__PURE__ */ l("div", { className: Ut(H, `${H}--${n}`, a), ...o, children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
976
+ size: n = zn.SM,
977
+ className: o,
978
+ ...a
979
+ }) => /* @__PURE__ */ l("div", { className: Ue(H, `${H}--${n}`, o), ...a, children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
979
980
  "circle",
980
981
  {
981
- className: Ut(`${H}__circle`, {
982
- [`${H}__circle--disabled`]: r,
982
+ className: Ue(`${H}__circle`, {
983
+ [`${H}__circle--disabled`]: t,
983
984
  [`${H}__circle--negative`]: u
984
985
  }),
985
986
  cx: "25",
@@ -987,222 +988,249 @@ const Bn = /* @__PURE__ */ Pn(Mn), qn = "_rotate_12t9p_1", Rn = "_dash_12t9p_1",
987
988
  r: "20"
988
989
  }
989
990
  ) }) });
990
- fr.displayName = "Spinner";
991
- function Tn(r) {
992
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
991
+ ft.displayName = "Spinner";
992
+ function En(t) {
993
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
993
994
  }
994
- var Yt = { exports: {} }, Jt;
995
- function Dn() {
996
- return Jt || (Jt = 1, (function(r) {
995
+ var Ye = { exports: {} }, Je;
996
+ function Tn() {
997
+ return Je || (Je = 1, (function(t) {
997
998
  (function() {
998
999
  var u = {}.hasOwnProperty;
999
1000
  function n() {
1000
- for (var t = "", e = 0; e < arguments.length; e++) {
1001
- var i = arguments[e];
1002
- i && (t = o(t, a.call(this, i)));
1001
+ for (var e = "", r = 0; r < arguments.length; r++) {
1002
+ var i = arguments[r];
1003
+ i && (e = a(e, o.call(this, i)));
1003
1004
  }
1004
- return t;
1005
+ return e;
1005
1006
  }
1006
- function a(t) {
1007
- if (typeof t == "string" || typeof t == "number")
1008
- return this && this[t] || t;
1009
- if (typeof t != "object")
1007
+ function o(e) {
1008
+ if (typeof e == "string" || typeof e == "number")
1009
+ return this && this[e] || e;
1010
+ if (typeof e != "object")
1010
1011
  return "";
1011
- if (Array.isArray(t))
1012
- return n.apply(this, t);
1013
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
1014
- return t.toString();
1015
- var e = "";
1016
- for (var i in t)
1017
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
1018
- return e;
1012
+ if (Array.isArray(e))
1013
+ return n.apply(this, e);
1014
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
1015
+ return e.toString();
1016
+ var r = "";
1017
+ for (var i in e)
1018
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
1019
+ return r;
1019
1020
  }
1020
- function o(t, e) {
1021
- return e ? t ? t + " " + e : t + e : t;
1021
+ function a(e, r) {
1022
+ return r ? e ? e + " " + r : e + r : e;
1022
1023
  }
1023
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
1024
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
1024
1025
  })();
1025
- })(Yt)), Yt.exports;
1026
+ })(Ye)), Ye.exports;
1026
1027
  }
1027
- var zn = Dn();
1028
- const Vn = /* @__PURE__ */ Tn(zn), Fn = {
1029
- "purpur-text-field": "_purpur-text-field_3gl1k_1",
1030
- "purpur-text-field__label": "_purpur-text-field__label_3gl1k_7",
1031
- "purpur-text-field__label-text": "_purpur-text-field__label-text_3gl1k_12",
1032
- "purpur-text-field__field-row": "_purpur-text-field__field-row_3gl1k_15",
1033
- "purpur-text-field__frame": "_purpur-text-field__frame_3gl1k_19",
1034
- "purpur-text-field__input-container": "_purpur-text-field__input-container_3gl1k_26",
1035
- "purpur-text-field__input-container--disabled": "_purpur-text-field__input-container--disabled_3gl1k_37",
1036
- "purpur-text-field__input-container--readonly": "_purpur-text-field__input-container--readonly_3gl1k_40",
1037
- "purpur-text-field__input-container--has-clear-button": "_purpur-text-field__input-container--has-clear-button_3gl1k_43",
1038
- "purpur-text-field__input-container--end-adornment": "_purpur-text-field__input-container--end-adornment_3gl1k_46",
1039
- "purpur-text-field__input": "_purpur-text-field__input_3gl1k_26",
1040
- "purpur-text-field__input-container--start-adornment": "_purpur-text-field__input-container--start-adornment_3gl1k_52",
1041
- "purpur-text-field__input--valid": "_purpur-text-field__input--valid_3gl1k_94",
1042
- "purpur-text-field__input--error": "_purpur-text-field__input--error_3gl1k_94",
1043
- "purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_3gl1k_106",
1044
- "purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_3gl1k_111"
1045
- }, Zn = (r) => G(r), O = Vn.bind(Fn), v = "purpur-text-field", hr = Y(
1028
+ var Dn = Tn();
1029
+ const Vn = /* @__PURE__ */ En(Dn), Fn = {
1030
+ "purpur-text-field": "_purpur-text-field_1ar6e_1",
1031
+ "purpur-text-field__label": "_purpur-text-field__label_1ar6e_7",
1032
+ "purpur-text-field__label-text": "_purpur-text-field__label-text_1ar6e_12",
1033
+ "purpur-text-field__field-row": "_purpur-text-field__field-row_1ar6e_15",
1034
+ "purpur-text-field__frame": "_purpur-text-field__frame_1ar6e_19",
1035
+ "purpur-text-field__frame--negative": "_purpur-text-field__frame--negative_1ar6e_26",
1036
+ "purpur-text-field__input-container": "_purpur-text-field__input-container_1ar6e_29",
1037
+ "purpur-text-field__input-container--disabled": "_purpur-text-field__input-container--disabled_1ar6e_40",
1038
+ "purpur-text-field__input-container--readonly": "_purpur-text-field__input-container--readonly_1ar6e_43",
1039
+ "purpur-text-field__input-container--has-clear-button": "_purpur-text-field__input-container--has-clear-button_1ar6e_46",
1040
+ "purpur-text-field__input-container--end-adornment": "_purpur-text-field__input-container--end-adornment_1ar6e_49",
1041
+ "purpur-text-field__input": "_purpur-text-field__input_1ar6e_29",
1042
+ "purpur-text-field__input-container--start-adornment": "_purpur-text-field__input-container--start-adornment_1ar6e_55",
1043
+ "purpur-text-field__input-container--negative": "_purpur-text-field__input-container--negative_1ar6e_61",
1044
+ "purpur-text-field__input--valid": "_purpur-text-field__input--valid_1ar6e_109",
1045
+ "purpur-text-field__input--error": "_purpur-text-field__input--error_1ar6e_109",
1046
+ "purpur-text-field__input--negative": "_purpur-text-field__input--negative_1ar6e_127",
1047
+ "purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_1ar6e_137",
1048
+ "purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_1ar6e_142",
1049
+ "purpur-text-field__valid-icon--negative": "_purpur-text-field__valid-icon--negative_1ar6e_145"
1050
+ }, Zn = (t) => G(t), A = Vn.bind(Fn), f = "purpur-text-field", vt = Y(
1046
1051
  ({
1047
- ["data-testid"]: r,
1052
+ ["data-testid"]: t,
1048
1053
  className: u,
1049
1054
  clearButtonAriaLabel: n,
1050
- beforeField: a,
1051
- afterField: o,
1052
- endAdornment: t,
1053
- errorText: e,
1055
+ beforeField: o,
1056
+ afterField: a,
1057
+ endAdornment: e,
1058
+ errorText: r,
1054
1059
  helperText: i,
1055
1060
  hideRequiredAsterisk: d = !1,
1056
1061
  label: _,
1057
- loading: b = !1,
1058
- onClear: y,
1059
- startAdornment: j,
1062
+ loading: y = !1,
1063
+ onClear: x,
1064
+ startAdornment: C,
1060
1065
  valid: M = !1,
1066
+ negative: g = !1,
1061
1067
  ...c
1062
- }, x) => {
1063
- const A = kr(), w = c.id ?? A, s = (m) => r ? `${r}-${m}` : void 0, k = M && !e, N = i ? `${w}-helper-text` : void 0, B = [j].filter((m) => !!m), D = (typeof c.value == "number" ? c.value !== void 0 : c.value?.length) && !c.disabled && !c.readOnly && !b && y && n, g = Zn(null), C = (m) => {
1064
- g.current = m, typeof x == "function" ? x(m) : x && (x.current = m);
1065
- }, E = () => {
1066
- y?.(), g.current?.focus();
1067
- }, T = [
1068
- b && /* @__PURE__ */ l(
1069
- fr,
1068
+ }, S) => {
1069
+ const O = Ct(), s = c.id ?? O, m = (w) => t ? `${t}-${w}` : void 0, P = M && !r, B = i ? `${s}-helper-text` : void 0, E = [C].filter((w) => !!w), b = (typeof c.value == "number" ? c.value !== void 0 : c.value?.length) && !c.disabled && !c.readOnly && !y && x && n, j = Zn(null), T = (w) => {
1070
+ j.current = w, typeof S == "function" ? S(w) : S && (S.current = w);
1071
+ }, J = () => {
1072
+ x?.(), j.current?.focus();
1073
+ }, q = [
1074
+ y && /* @__PURE__ */ l(
1075
+ ft,
1070
1076
  {
1071
1077
  disabled: c.disabled,
1072
1078
  size: "xs",
1073
- "data-testid": s("spinner")
1079
+ "data-testid": m("spinner"),
1080
+ negative: g
1074
1081
  },
1075
1082
  "spinner"
1076
1083
  ),
1077
- D && /* @__PURE__ */ l(
1078
- pr,
1084
+ b && /* @__PURE__ */ l(
1085
+ pt,
1079
1086
  {
1087
+ negative: g,
1080
1088
  variant: "tertiary-purple",
1081
- onClick: E,
1089
+ onClick: J,
1082
1090
  iconOnly: !0,
1083
1091
  "aria-label": n ?? "",
1084
- "data-testid": s("clear-button"),
1092
+ "data-testid": m("clear-button"),
1085
1093
  tabIndex: -1,
1086
- children: /* @__PURE__ */ l(cr, { size: "xs" })
1094
+ children: /* @__PURE__ */ l(ct, { size: "xs" })
1087
1095
  },
1088
1096
  "clear-button"
1089
1097
  ),
1090
- k && /* @__PURE__ */ l(
1091
- sr,
1098
+ P && /* @__PURE__ */ l(
1099
+ st,
1092
1100
  {
1093
- "data-testid": s("valid-icon"),
1094
- className: O(`${v}__valid-icon`)
1101
+ "data-testid": m("valid-icon"),
1102
+ className: A(`${f}__valid-icon`, {
1103
+ [`${f}__valid-icon--negative`]: g
1104
+ })
1095
1105
  },
1096
1106
  "valid-icon"
1097
1107
  )
1098
- ].filter((m) => !!m), z = O(`${v}__input-container`, {
1099
- [`${v}__input-container--start-adornment`]: B.length,
1100
- [`${v}__input-container--end-adornment`]: T.length || t,
1101
- [`${v}__input-container--disabled`]: c.disabled,
1102
- [`${v}__input-container--has-clear-button`]: D,
1103
- [`${v}__input-container--readonly`]: c.readOnly && !c.disabled
1108
+ ].filter((w) => !!w), D = A(`${f}__input-container`, {
1109
+ [`${f}__input-container--start-adornment`]: E.length,
1110
+ [`${f}__input-container--end-adornment`]: q.length || e,
1111
+ [`${f}__input-container--disabled`]: c.disabled,
1112
+ [`${f}__input-container--has-clear-button`]: b,
1113
+ [`${f}__input-container--readonly`]: c.readOnly && !c.disabled,
1114
+ [`${f}__input-container--negative`]: g
1104
1115
  });
1105
- return /* @__PURE__ */ S("div", { className: O(u, v), children: [
1106
- _ && /* @__PURE__ */ S(
1107
- Cn,
1116
+ return /* @__PURE__ */ N("div", { className: A(u, f), children: [
1117
+ _ && /* @__PURE__ */ N(
1118
+ Pn,
1108
1119
  {
1109
- htmlFor: w,
1110
- className: O(`${v}__label`),
1111
- "data-testid": s("label"),
1120
+ htmlFor: s,
1121
+ className: A(`${f}__label`),
1122
+ "data-testid": m("label"),
1112
1123
  disabled: c.disabled,
1124
+ negative: g,
1113
1125
  children: [
1114
1126
  c.required && !d && /* @__PURE__ */ l("span", { "aria-hidden": !0, children: "*" }),
1115
1127
  _
1116
1128
  ]
1117
1129
  }
1118
1130
  ),
1119
- /* @__PURE__ */ S("div", { className: O(`${v}__field-row`), children: [
1120
- !!a && a,
1121
- /* @__PURE__ */ S("div", { className: z, children: [
1122
- !!B.length && /* @__PURE__ */ l(
1131
+ /* @__PURE__ */ N("div", { className: A(`${f}__field-row`), children: [
1132
+ !!o && o,
1133
+ /* @__PURE__ */ N("div", { className: D, children: [
1134
+ !!E.length && /* @__PURE__ */ l(
1123
1135
  "div",
1124
1136
  {
1125
- "data-testid": s("start-adornments"),
1126
- className: O(`${v}__adornment-container`),
1127
- children: B
1137
+ "data-testid": m("start-adornments"),
1138
+ className: A(`${f}__adornment-container`),
1139
+ children: E
1128
1140
  }
1129
1141
  ),
1130
1142
  /* @__PURE__ */ l(
1131
1143
  "input",
1132
1144
  {
1133
1145
  ...c,
1134
- id: w,
1135
- ref: C,
1136
- "data-testid": s("input"),
1137
- "aria-describedby": c["aria-describedby"] || N,
1138
- "aria-invalid": c["aria-invalid"] || !!e,
1139
- className: O([
1140
- `${v}__input`,
1146
+ id: s,
1147
+ ref: T,
1148
+ "data-testid": m("input"),
1149
+ "aria-describedby": c["aria-describedby"] || B,
1150
+ "aria-invalid": c["aria-invalid"] || !!r,
1151
+ className: A([
1152
+ `${f}__input`,
1141
1153
  {
1142
- [`${v}__input--valid`]: k,
1143
- [`${v}__input--error`]: !!e
1154
+ [`${f}__input--valid`]: P,
1155
+ [`${f}__input--error`]: !!r,
1156
+ [`${f}__input--negative`]: g
1144
1157
  }
1145
1158
  ])
1146
1159
  }
1147
1160
  ),
1148
- /* @__PURE__ */ l("div", { className: O(`${v}__frame`) }),
1149
- (!!T.length || t) && /* @__PURE__ */ S(
1161
+ /* @__PURE__ */ l(
1162
+ "div",
1163
+ {
1164
+ className: A(`${f}__frame`, {
1165
+ [`${f}__frame--negative`]: g
1166
+ })
1167
+ }
1168
+ ),
1169
+ (!!q.length || e) && /* @__PURE__ */ N(
1150
1170
  "div",
1151
1171
  {
1152
- "data-testid": s("end-adornments"),
1153
- className: O(`${v}__adornment-container`),
1172
+ "data-testid": m("end-adornments"),
1173
+ className: A(`${f}__adornment-container`),
1154
1174
  children: [
1155
- T,
1156
- t
1175
+ q,
1176
+ e
1157
1177
  ]
1158
1178
  }
1159
1179
  )
1160
1180
  ] }),
1161
- !!o && o
1181
+ !!a && a
1162
1182
  ] }),
1163
- N && /* @__PURE__ */ l(Je, { "data-testid": s("helper-text"), id: N, children: i }),
1164
- e && /* @__PURE__ */ l(Ze, { "data-testid": s("error-text"), children: e })
1183
+ B && /* @__PURE__ */ l(
1184
+ Jr,
1185
+ {
1186
+ "data-testid": m("helper-text"),
1187
+ id: B,
1188
+ negative: g,
1189
+ children: i
1190
+ }
1191
+ ),
1192
+ r && /* @__PURE__ */ l(Zr, { "data-testid": m("error-text"), negative: g, children: r })
1165
1193
  ] });
1166
1194
  }
1167
1195
  );
1168
- hr.displayName = "TextField";
1169
- const Kn = (r) => Xt(r) && r.type.displayName === hr.displayName;
1170
- function Hn(r) {
1171
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
1196
+ vt.displayName = "TextField";
1197
+ const Kn = (t) => Xe(t) && t.type.displayName === vt.displayName;
1198
+ function Hn(t) {
1199
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1172
1200
  }
1173
- var ot = { exports: {} };
1174
- var Qt;
1201
+ var oe = { exports: {} };
1202
+ var Qe;
1175
1203
  function Wn() {
1176
- return Qt || (Qt = 1, (function(r) {
1204
+ return Qe || (Qe = 1, (function(t) {
1177
1205
  (function() {
1178
1206
  var u = {}.hasOwnProperty;
1179
1207
  function n() {
1180
- for (var t = "", e = 0; e < arguments.length; e++) {
1181
- var i = arguments[e];
1182
- i && (t = o(t, a.call(this, i)));
1208
+ for (var e = "", r = 0; r < arguments.length; r++) {
1209
+ var i = arguments[r];
1210
+ i && (e = a(e, o.call(this, i)));
1183
1211
  }
1184
- return t;
1212
+ return e;
1185
1213
  }
1186
- function a(t) {
1187
- if (typeof t == "string" || typeof t == "number")
1188
- return this && this[t] || t;
1189
- if (typeof t != "object")
1214
+ function o(e) {
1215
+ if (typeof e == "string" || typeof e == "number")
1216
+ return this && this[e] || e;
1217
+ if (typeof e != "object")
1190
1218
  return "";
1191
- if (Array.isArray(t))
1192
- return n.apply(this, t);
1193
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
1194
- return t.toString();
1195
- var e = "";
1196
- for (var i in t)
1197
- u.call(t, i) && t[i] && (e = o(e, this && this[i] || i));
1198
- return e;
1219
+ if (Array.isArray(e))
1220
+ return n.apply(this, e);
1221
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
1222
+ return e.toString();
1223
+ var r = "";
1224
+ for (var i in e)
1225
+ u.call(e, i) && e[i] && (r = a(r, this && this[i] || i));
1226
+ return r;
1199
1227
  }
1200
- function o(t, e) {
1201
- return e ? t ? t + " " + e : t + e : t;
1228
+ function a(e, r) {
1229
+ return r ? e ? e + " " + r : e + r : e;
1202
1230
  }
1203
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
1231
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
1204
1232
  })();
1205
- })(ot)), ot.exports;
1233
+ })(oe)), oe.exports;
1206
1234
  }
1207
1235
  var Gn = Wn();
1208
1236
  const Un = /* @__PURE__ */ Hn(Gn), Yn = {
@@ -1211,88 +1239,88 @@ const Un = /* @__PURE__ */ Hn(Gn), Yn = {
1211
1239
  "purpur-autocomplete__chevron-button": "_purpur-autocomplete__chevron-button_1u8x6_9",
1212
1240
  "purpur-autocomplete__chevron-icon": "_purpur-autocomplete__chevron-icon_1u8x6_15",
1213
1241
  "purpur-autocomplete__chevron-icon--up": "_purpur-autocomplete__chevron-icon--up_1u8x6_19"
1214
- }, Jn = (r) => G(r), Qn = (r, u) => {
1215
- const n = Cr(
1216
- (a) => {
1217
- r && !r.contains(a.target) && u();
1242
+ }, Jn = (t) => G(t), Qn = (t, u) => {
1243
+ const n = Pt(
1244
+ (o) => {
1245
+ t && !t.contains(o.target) && u();
1218
1246
  },
1219
- [u, r]
1247
+ [u, t]
1220
1248
  );
1221
- Pr(() => (document.addEventListener("mousedown", n), () => {
1249
+ It(() => (document.addEventListener("mousedown", n), () => {
1222
1250
  document.removeEventListener("mousedown", n);
1223
1251
  }), [n]);
1224
1252
  }, Xn = ({
1225
- combobox: r,
1253
+ combobox: t,
1226
1254
  comboboxButtonAriaLabel: u,
1227
1255
  highlightFirstOption: n,
1228
- defaultInputValue: a,
1229
- inputValue: o,
1230
- filterOption: t,
1231
- id: e,
1256
+ defaultInputValue: o,
1257
+ inputValue: a,
1258
+ filterOption: e,
1259
+ id: r,
1232
1260
  listboxLabel: i,
1233
1261
  listboxMaxHeight: d,
1234
1262
  onInputBlur: _,
1235
- onInputChange: b,
1236
- onInputFocus: y,
1237
- onInputKeyDown: j,
1263
+ onInputChange: y,
1264
+ onInputFocus: x,
1265
+ onInputKeyDown: C,
1238
1266
  onInputMouseDown: M,
1239
- openOnFocus: c,
1240
- noOptionsText: x,
1241
- onSelect: A,
1242
- options: w,
1267
+ openOnFocus: g,
1268
+ noOptionsText: c,
1269
+ onSelect: S,
1270
+ options: O,
1243
1271
  selectedOption: s,
1244
- ["data-testid"]: k
1272
+ ["data-testid"]: m
1245
1273
  }) => {
1246
- const [N, B] = et(
1247
- ((typeof o == "string" ? o : a) || s?.label) ?? ""
1248
- ), D = typeof o == "string" ? o : N, [g, C] = et(n ? w[0] : void 0), E = G(null), T = Jn(null), z = G(null), m = G({}), [lt, st] = et(!1);
1249
- function X(p) {
1250
- return k ? `${k}-${p}` : void 0;
1274
+ const [P, B] = ne(
1275
+ ((typeof a == "string" ? a : o) || s?.label) ?? ""
1276
+ ), E = typeof a == "string" ? a : P, [b, j] = ne(n ? O[0] : void 0), T = G(null), J = Jn(null), q = G(null), D = G({}), [w, se] = ne(!1);
1277
+ function ee(p) {
1278
+ return m ? `${m}-${p}` : void 0;
1251
1279
  }
1252
1280
  const V = () => {
1253
- st(!1), C(void 0);
1281
+ se(!1), j(void 0);
1254
1282
  };
1255
- Qn(T.current, V);
1283
+ Qn(J.current, V);
1256
1284
  const F = ({ eventType: p }) => {
1257
- st(!0), s && requestAnimationFrame(() => {
1258
- C({ ...s, isSetByClickEvent: p === "CLICK" }), rt(m.current[s.id]);
1285
+ se(!0), s && requestAnimationFrame(() => {
1286
+ j({ ...s, isSetByClickEvent: p === "CLICK" }), re(D.current[s.id]);
1259
1287
  });
1260
- }, vr = (p) => {
1261
- if (t)
1262
- return w.filter(($) => t(p, $));
1288
+ }, ht = (p) => {
1289
+ if (e)
1290
+ return O.filter(($) => e(p, $));
1263
1291
  if (!p)
1264
- return w;
1265
- const f = p.toUpperCase().split(" ") || [];
1266
- return w.filter(
1267
- ($) => f.every(
1292
+ return O;
1293
+ const v = p.toUpperCase().split(" ") || [];
1294
+ return O.filter(
1295
+ ($) => v.every(
1268
1296
  (R) => ($.value || $.label).toUpperCase().includes(R)
1269
1297
  )
1270
1298
  );
1271
- }, ct = (p) => s && s?.label === p ? w : vr(p), P = ct(D), tt = (p) => {
1272
- b?.(p), B(p);
1273
- }, rt = (p) => {
1299
+ }, ce = (p) => s && s?.label === p ? O : ht(p), I = ce(E), te = (p) => {
1300
+ y?.(p), B(p);
1301
+ }, re = (p) => {
1274
1302
  if (p) {
1275
- const f = p.getBoundingClientRect(), $ = z.current?.getBoundingClientRect() || { top: 0, bottom: 0 };
1276
- (f.top < $.top || f.bottom > $.bottom) && p.scrollIntoView({ block: "nearest" });
1303
+ const v = p.getBoundingClientRect(), $ = q.current?.getBoundingClientRect() || { top: 0, bottom: 0 };
1304
+ (v.top < $.top || v.bottom > $.bottom) && p.scrollIntoView({ block: "nearest" });
1277
1305
  }
1278
- }, dt = (p) => {
1279
- p && (E.current?.focus(), tt(p.label), A?.(p)), V();
1280
- }, gr = (p) => {
1281
- const f = n && !g ? 0 : P.findIndex((R) => R && g?.id === R.id), $ = P.length;
1282
- return p === "ArrowDown" ? P[(f ?? -1) + 1] || P[0] : P[(f ?? $) - 1] || P[$ - 1];
1283
- }, q = lt && (!!P.length || !!x), mr = (p) => {
1284
- !q && F({ eventType: "KEYBOARD" });
1285
- const f = gr(p);
1286
- C(f), f && rt(m.current[f.id]);
1287
- }, br = (p) => {
1288
- switch (j?.(p), p.key) {
1306
+ }, de = (p) => {
1307
+ p && (T.current?.focus(), te(p.label), S?.(p)), V();
1308
+ }, gt = (p) => {
1309
+ const v = n && !b ? 0 : I.findIndex((R) => R && b?.id === R.id), $ = I.length;
1310
+ return p === "ArrowDown" ? I[(v ?? -1) + 1] || I[0] : I[(v ?? $) - 1] || I[$ - 1];
1311
+ }, L = w && (!!I.length || !!c), mt = (p) => {
1312
+ !L && F({ eventType: "KEYBOARD" });
1313
+ const v = gt(p);
1314
+ j(v), v && re(D.current[v.id]);
1315
+ }, bt = (p) => {
1316
+ switch (C?.(p), p.key) {
1289
1317
  case "ArrowUp":
1290
1318
  case "ArrowDown":
1291
- p.preventDefault(), mr(p.key);
1319
+ p.preventDefault(), mt(p.key);
1292
1320
  break;
1293
1321
  case "Enter": {
1294
- const f = g || (n ? w[0] : void 0);
1295
- q && dt(f), !q && F({ eventType: "KEYBOARD" });
1322
+ const v = b || (n ? O[0] : void 0);
1323
+ L && de(v), !L && F({ eventType: "KEYBOARD" });
1296
1324
  break;
1297
1325
  }
1298
1326
  case "Escape":
@@ -1300,111 +1328,111 @@ const Un = /* @__PURE__ */ Hn(Gn), Yn = {
1300
1328
  V();
1301
1329
  break;
1302
1330
  }
1303
- }, yr = (p) => {
1304
- const f = ct(p.target.value);
1305
- tt(p.target.value), C(void 0), !q && F({ eventType: "KEYBOARD" }), n && f[0] && rt(m.current[f[0].id]);
1306
- }, xr = (p) => {
1307
- M?.(p), q ? V() : F({ eventType: "CLICK" });
1308
- }, wr = (p) => {
1309
- y?.(p), !lt && c && F({ eventType: "KEYBOARD" }), E.current?.select();
1310
- }, $r = (p) => {
1331
+ }, yt = (p) => {
1332
+ const v = ce(p.target.value);
1333
+ te(p.target.value), j(void 0), !L && F({ eventType: "KEYBOARD" }), n && v[0] && re(D.current[v[0].id]);
1334
+ }, xt = (p) => {
1335
+ M?.(p), L ? V() : F({ eventType: "CLICK" });
1336
+ }, wt = (p) => {
1337
+ x?.(p), !w && g && F({ eventType: "KEYBOARD" }), T.current?.select();
1338
+ }, $t = (p) => {
1311
1339
  _?.(p), setTimeout(() => {
1312
- !E.current?.contains(document.activeElement) && !z.current?.contains(document.activeElement) && (V(), r && tt(s ? s.label : ""));
1340
+ !T.current?.contains(document.activeElement) && !q.current?.contains(document.activeElement) && (V(), t && te(s ? s.label : ""));
1313
1341
  });
1314
- }, Sr = {
1342
+ }, St = {
1315
1343
  maxHeight: typeof d == "number" ? `${d}px` : d
1316
- }, _t = {
1344
+ }, _e = {
1317
1345
  "aria-label": i,
1318
- "aria-expanded": q,
1319
- "data-testid": X("listbox"),
1320
- id: `${e}-listbox`,
1321
- ref: z,
1322
- onMouseLeave: () => C(void 0),
1323
- style: d ? Sr : void 0
1324
- }, ft = (p) => `${e}-listbox-item-${p.id}`, Nr = (p, f) => {
1325
- const $ = () => p.id !== g?.id && C({ ...p, isSetByClickEvent: !0 }), R = (p.id === g?.id || !!n && !g && f === 0) && !g?.isSetByClickEvent;
1346
+ "aria-expanded": L,
1347
+ "data-testid": ee("listbox"),
1348
+ id: `${r}-listbox`,
1349
+ ref: q,
1350
+ onMouseLeave: () => j(void 0),
1351
+ style: d ? St : void 0
1352
+ }, fe = (p) => `${r}-listbox-item-${p.id}`, Ot = (p, v) => {
1353
+ const $ = () => p.id !== b?.id && j({ ...p, isSetByClickEvent: !0 }), R = (p.id === b?.id || !!n && !b && v === 0) && !b?.isSetByClickEvent;
1326
1354
  return {
1327
- "data-testid": X(`listbox-item-${p.id}`),
1328
- id: ft(p),
1355
+ "data-testid": ee(`listbox-item-${p.id}`),
1356
+ id: fe(p),
1329
1357
  key: p.id,
1330
1358
  onMouseMove: $,
1331
- onMouseUp: () => dt(p),
1332
- ref: (ht) => {
1333
- ht && (m.current[p.id] = ht);
1359
+ onMouseUp: () => de(p),
1360
+ ref: (ve) => {
1361
+ ve && (D.current[p.id] = ve);
1334
1362
  },
1335
1363
  tabIndex: -1,
1336
1364
  selected: p.id === s?.id,
1337
1365
  disabled: p.disabled,
1338
1366
  highlighted: R,
1339
- hovered: p.id === g?.id && !!g?.isSetByClickEvent
1367
+ hovered: p.id === b?.id && !!b?.isSetByClickEvent
1340
1368
  };
1341
- }, Or = {
1342
- "aria-activedescendant": g ? ft(g) : void 0,
1369
+ }, Nt = {
1370
+ "aria-activedescendant": b ? fe(b) : void 0,
1343
1371
  "aria-autocomplete": "list",
1344
- "aria-controls": _t.id,
1345
- "data-testid": X("input"),
1372
+ "aria-controls": _e.id,
1373
+ "data-testid": ee("input"),
1346
1374
  autoComplete: "off",
1347
- id: `${e}-input`,
1348
- onChange: yr,
1349
- onMouseDown: xr,
1350
- onFocus: wr,
1351
- onKeyDown: br,
1352
- onBlur: $r,
1353
- ref: E,
1375
+ id: `${r}-input`,
1376
+ onChange: yt,
1377
+ onMouseDown: xt,
1378
+ onFocus: wt,
1379
+ onKeyDown: bt,
1380
+ onBlur: $t,
1381
+ ref: T,
1354
1382
  role: "combobox",
1355
- value: D
1383
+ value: E
1356
1384
  };
1357
1385
  return {
1358
- id: e,
1359
- inputProps: Or,
1360
- internalRef: T,
1361
- optionsToShow: P,
1362
- showListbox: q,
1363
- noOptionsText: x,
1364
- combobox: r,
1386
+ id: r,
1387
+ inputProps: Nt,
1388
+ internalRef: J,
1389
+ optionsToShow: I,
1390
+ showListbox: L,
1391
+ noOptionsText: c,
1392
+ combobox: t,
1365
1393
  comboboxButtonAriaLabel: u,
1366
- getListBoxItemProps: Nr,
1367
- listboxProps: _t
1394
+ getListBoxItemProps: Ot,
1395
+ listboxProps: _e
1368
1396
  };
1369
- }, J = Un.bind(Yn), W = "purpur-autocomplete", ti = ({ className: r, renderInput: u, renderOption: n, ...a }, o) => {
1397
+ }, Q = Un.bind(Yn), W = "purpur-autocomplete", ei = ({ className: t, renderInput: u, renderOption: n, ...o }, a) => {
1370
1398
  const {
1371
- id: t,
1372
- inputProps: e,
1399
+ id: e,
1400
+ inputProps: r,
1373
1401
  internalRef: i,
1374
1402
  optionsToShow: d,
1375
1403
  showListbox: _,
1376
- noOptionsText: b,
1377
- combobox: y,
1378
- comboboxButtonAriaLabel: j,
1404
+ noOptionsText: y,
1405
+ combobox: x,
1406
+ comboboxButtonAriaLabel: C,
1379
1407
  getListBoxItemProps: M,
1380
- listboxProps: c
1381
- } = Xn(a), x = (s, k) => {
1382
- const { key: N, ...B } = M(s, k);
1383
- return /* @__PURE__ */ l(U.Item, { ...B, children: n ? n?.(s) : s.label }, N);
1384
- }, A = (s) => {
1385
- i.current = s, typeof o == "function" ? o(s) : o && (o.current = s);
1386
- }, w = () => {
1387
- const s = u(e);
1388
- if (y && j && b && s && Kn(s)) {
1389
- const N = /* @__PURE__ */ S(jr, { children: [
1408
+ listboxProps: g
1409
+ } = Xn(o), c = (s, m) => {
1410
+ const { key: P, ...B } = M(s, m);
1411
+ return /* @__PURE__ */ l(U.Item, { ...B, children: n ? n?.(s) : s.label }, P);
1412
+ }, S = (s) => {
1413
+ i.current = s, typeof a == "function" ? a(s) : a && (a.current = s);
1414
+ }, O = () => {
1415
+ const s = u(r);
1416
+ if (x && C && y && s && Kn(s)) {
1417
+ const P = /* @__PURE__ */ N(jt, { children: [
1390
1418
  s.props.endAdornment,
1391
1419
  /* @__PURE__ */ l(
1392
1420
  "button",
1393
1421
  {
1394
1422
  "data-testid": "chevron button",
1395
1423
  type: "button",
1396
- className: J(`${W}__chevron-button`),
1424
+ className: Q(`${W}__chevron-button`),
1397
1425
  onClick: () => {
1398
- e.onFocus(void 0), e.onMouseDown(void 0);
1426
+ r.onFocus(void 0), r.onMouseDown(void 0);
1399
1427
  },
1400
- "aria-label": j,
1428
+ "aria-label": C,
1401
1429
  "aria-expanded": _,
1402
- "aria-controls": c.id,
1430
+ "aria-controls": g.id,
1403
1431
  children: /* @__PURE__ */ l(
1404
- rr,
1432
+ tt,
1405
1433
  {
1406
1434
  size: "sm",
1407
- className: J(`${W}__chevron-icon`, {
1435
+ className: Q(`${W}__chevron-icon`, {
1408
1436
  [`${W}__chevron-icon--up`]: _
1409
1437
  })
1410
1438
  }
@@ -1412,18 +1440,18 @@ const Un = /* @__PURE__ */ Hn(Gn), Yn = {
1412
1440
  }
1413
1441
  )
1414
1442
  ] });
1415
- return Ir(s, { endAdornment: N });
1443
+ return kt(s, { endAdornment: P });
1416
1444
  }
1417
1445
  return s;
1418
1446
  };
1419
- return /* @__PURE__ */ S("div", { id: t, ref: A, className: J([W, r]), children: [
1420
- w(),
1421
- _ && /* @__PURE__ */ l(U, { ...c, className: J(`${W}__listbox`), children: d.length ? d.filter((s) => !!s).map(x) : /* @__PURE__ */ l(U.Item, { noninteractive: !0, children: b }) })
1447
+ return /* @__PURE__ */ N("div", { id: e, ref: S, className: Q([W, t]), children: [
1448
+ O(),
1449
+ _ && /* @__PURE__ */ l(U, { ...g, className: Q(`${W}__listbox`), children: d.length ? d.filter((s) => !!s).map(c) : /* @__PURE__ */ l(U.Item, { noninteractive: !0, children: y }) })
1422
1450
  ] });
1423
- }, ri = Y(ti);
1424
- ri.displayName = "Autocomplete";
1451
+ }, ti = Y(ei);
1452
+ ti.displayName = "Autocomplete";
1425
1453
  export {
1426
- ri as Autocomplete,
1454
+ ti as Autocomplete,
1427
1455
  Xn as useAutocomplete
1428
1456
  };
1429
1457
  //# sourceMappingURL=autocomplete.es.js.map