@still-forest/canopy 0.39.2 → 0.39.4

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,13 +1,13 @@
1
- import { j as s } from "./jsx-runtime-B0GD0xBr.js";
1
+ import { j as i } from "./jsx-runtime-B0GD0xBr.js";
2
2
  import { c as ee, u as V, B as Te, h as nn, i as on, j as Re, g as an } from "./calendar-C-nHBQQ8.js";
3
3
  import * as l from "react";
4
4
  import { useState as Me, useEffect as St, useRef as sn, useMemo as ln, useId as cn } from "react";
5
5
  import { F as ne, G as dn } from "./Layout-CvVv48kM.js";
6
6
  import { T as Ae } from "./Heading-DjVutKs1.js";
7
7
  import { L as un } from "./Loader-B_h7e46-.js";
8
- import { d as ve, j as dt, e as te, f as N, h as _, u as De, c as pe, w as yt, g as Ct, x as Oe, l as It, m as Rt, n as kt, o as Et, p as pn, A as fn, i as oe, q as mn, V as hn, y as vn, z as xn, B as gn, F as bn, s as wn, t as Sn, r as yn, k as jt, R as Cn, P as In, O as Rn, C as kn } from "./index-CA-6Q-v_.js";
9
- import { c as A } from "./index-CRiPKpXj.js";
10
- import * as Nt from "react-dom";
8
+ import { d as ve, j as dt, e as te, f as _, h as N, u as De, c as pe, w as yt, g as Ct, x as Le, l as It, m as Rt, n as kt, o as Et, p as pn, A as fn, i as oe, q as mn, V as hn, y as vn, z as xn, B as gn, F as bn, s as wn, t as Sn, r as yn, k as jt, R as Cn, P as In, O as Rn, C as kn } from "./index-CA-6Q-v_.js";
9
+ import { c as P } from "./index-CRiPKpXj.js";
10
+ import * as _t from "react-dom";
11
11
  /**
12
12
  * @license lucide-react v0.544.0 - ISC
13
13
  *
@@ -26,14 +26,14 @@ const En = [
26
26
  * This source code is licensed under the ISC license.
27
27
  * See the LICENSE file in the root directory of this source tree.
28
28
  */
29
- const Nn = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], ut = ee("check", Nn);
29
+ const _n = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], ut = ee("check", _n);
30
30
  /**
31
31
  * @license lucide-react v0.544.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
34
34
  * See the LICENSE file in the root directory of this source tree.
35
35
  */
36
- const _n = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Pn = ee("chevron-up", _n);
36
+ const Nn = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Pn = ee("chevron-up", Nn);
37
37
  /**
38
38
  * @license lucide-react v0.544.0 - ISC
39
39
  *
@@ -57,7 +57,7 @@ const An = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Dn = ee
57
57
  * This source code is licensed under the ISC license.
58
58
  * See the LICENSE file in the root directory of this source tree.
59
59
  */
60
- const On = [
60
+ const Ln = [
61
61
  ["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
62
62
  [
63
63
  "path",
@@ -67,14 +67,14 @@ const On = [
67
67
  }
68
68
  ],
69
69
  ["path", { d: "m9 14 2 2 4-4", key: "df797q" }]
70
- ], Fn = ee("clipboard-check", On);
70
+ ], On = ee("clipboard-check", Ln);
71
71
  /**
72
72
  * @license lucide-react v0.544.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
76
  */
77
- const Ln = [
77
+ const Fn = [
78
78
  ["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
79
79
  [
80
80
  "path",
@@ -83,7 +83,7 @@ const Ln = [
83
83
  key: "116196"
84
84
  }
85
85
  ]
86
- ], Bn = ee("clipboard", Ln);
86
+ ], Bn = ee("clipboard", Fn);
87
87
  /**
88
88
  * @license lucide-react v0.544.0 - ISC
89
89
  *
@@ -140,81 +140,81 @@ const Gn = [
140
140
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
141
141
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
142
142
  ], zn = ee("trash-2", Gn);
143
- var Ye = "rovingFocusGroup.onEntryFocus", Wn = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Qe, _t, qn] = dt(ke), [Yn, Pt] = ve(
143
+ var Ye = "rovingFocusGroup.onEntryFocus", Wn = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Qe, Nt, qn] = dt(ke), [Yn, Pt] = ve(
144
144
  ke,
145
145
  [qn]
146
146
  ), [Xn, Zn] = Yn(ke), Tt = l.forwardRef(
147
- (e, r) => /* @__PURE__ */ s.jsx(Qe.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ s.jsx(Qe.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ s.jsx(Jn, { ...e, ref: r }) }) })
147
+ (e, r) => /* @__PURE__ */ i.jsx(Qe.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ i.jsx(Qe.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ i.jsx(Jn, { ...e, ref: r }) }) })
148
148
  );
149
149
  Tt.displayName = ke;
150
150
  var Jn = l.forwardRef((e, r) => {
151
151
  const {
152
152
  __scopeRovingFocusGroup: t,
153
- orientation: n,
154
- loop: o = !1,
155
- dir: i,
156
- currentTabStopId: a,
153
+ orientation: o,
154
+ loop: n = !1,
155
+ dir: a,
156
+ currentTabStopId: s,
157
157
  defaultCurrentTabStopId: c,
158
- onCurrentTabStopIdChange: u,
159
- onEntryFocus: d,
158
+ onCurrentTabStopIdChange: d,
159
+ onEntryFocus: u,
160
160
  preventScrollOnEntryFocus: p = !1,
161
161
  ...f
162
- } = e, x = l.useRef(null), g = V(r, x), w = De(i), [m, v] = pe({
163
- prop: a,
162
+ } = e, x = l.useRef(null), g = V(r, x), w = De(a), [m, v] = pe({
163
+ prop: s,
164
164
  defaultProp: c ?? null,
165
- onChange: u,
165
+ onChange: d,
166
166
  caller: ke
167
- }), [b, S] = l.useState(!1), y = yt(d), R = _t(t), D = l.useRef(!1), [P, j] = l.useState(0);
167
+ }), [b, S] = l.useState(!1), y = yt(u), R = Nt(t), D = l.useRef(!1), [T, j] = l.useState(0);
168
168
  return l.useEffect(() => {
169
- const L = x.current;
170
- if (L)
171
- return L.addEventListener(Ye, y), () => L.removeEventListener(Ye, y);
172
- }, [y]), /* @__PURE__ */ s.jsx(
169
+ const F = x.current;
170
+ if (F)
171
+ return F.addEventListener(Ye, y), () => F.removeEventListener(Ye, y);
172
+ }, [y]), /* @__PURE__ */ i.jsx(
173
173
  Xn,
174
174
  {
175
175
  scope: t,
176
- orientation: n,
176
+ orientation: o,
177
177
  dir: w,
178
- loop: o,
178
+ loop: n,
179
179
  currentTabStopId: m,
180
180
  onItemFocus: l.useCallback(
181
- (L) => v(L),
181
+ (F) => v(F),
182
182
  [v]
183
183
  ),
184
184
  onItemShiftTab: l.useCallback(() => S(!0), []),
185
185
  onFocusableItemAdd: l.useCallback(
186
- () => j((L) => L + 1),
186
+ () => j((F) => F + 1),
187
187
  []
188
188
  ),
189
189
  onFocusableItemRemove: l.useCallback(
190
- () => j((L) => L - 1),
190
+ () => j((F) => F - 1),
191
191
  []
192
192
  ),
193
- children: /* @__PURE__ */ s.jsx(
194
- N.div,
193
+ children: /* @__PURE__ */ i.jsx(
194
+ _.div,
195
195
  {
196
- tabIndex: b || P === 0 ? -1 : 0,
197
- "data-orientation": n,
196
+ tabIndex: b || T === 0 ? -1 : 0,
197
+ "data-orientation": o,
198
198
  ...f,
199
199
  ref: g,
200
200
  style: { outline: "none", ...e.style },
201
- onMouseDown: _(e.onMouseDown, () => {
201
+ onMouseDown: N(e.onMouseDown, () => {
202
202
  D.current = !0;
203
203
  }),
204
- onFocus: _(e.onFocus, (L) => {
204
+ onFocus: N(e.onFocus, (F) => {
205
205
  const Z = !D.current;
206
- if (L.target === L.currentTarget && Z && !b) {
206
+ if (F.target === F.currentTarget && Z && !b) {
207
207
  const z = new CustomEvent(Ye, Wn);
208
- if (L.currentTarget.dispatchEvent(z), !z.defaultPrevented) {
209
- const O = R().filter((F) => F.focusable), K = O.find((F) => F.active), X = O.find((F) => F.id === m), U = [K, X, ...O].filter(
208
+ if (F.currentTarget.dispatchEvent(z), !z.defaultPrevented) {
209
+ const L = R().filter((O) => O.focusable), K = L.find((O) => O.active), X = L.find((O) => O.id === m), U = [K, X, ...L].filter(
210
210
  Boolean
211
- ).map((F) => F.ref.current);
211
+ ).map((O) => O.ref.current);
212
212
  Dt(U, p);
213
213
  }
214
214
  }
215
215
  D.current = !1;
216
216
  }),
217
- onBlur: _(e.onBlur, () => S(!1))
217
+ onBlur: N(e.onBlur, () => S(!1))
218
218
  }
219
219
  )
220
220
  }
@@ -223,34 +223,34 @@ var Jn = l.forwardRef((e, r) => {
223
223
  (e, r) => {
224
224
  const {
225
225
  __scopeRovingFocusGroup: t,
226
- focusable: n = !0,
227
- active: o = !1,
228
- tabStopId: i,
229
- children: a,
226
+ focusable: o = !0,
227
+ active: n = !1,
228
+ tabStopId: a,
229
+ children: s,
230
230
  ...c
231
- } = e, u = te(), d = i || u, p = Zn(Mt, t), f = p.currentTabStopId === d, x = _t(t), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: m } = p;
231
+ } = e, d = te(), u = a || d, p = Zn(Mt, t), f = p.currentTabStopId === u, x = Nt(t), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: m } = p;
232
232
  return l.useEffect(() => {
233
- if (n)
233
+ if (o)
234
234
  return g(), () => w();
235
- }, [n, g, w]), /* @__PURE__ */ s.jsx(
235
+ }, [o, g, w]), /* @__PURE__ */ i.jsx(
236
236
  Qe.ItemSlot,
237
237
  {
238
238
  scope: t,
239
- id: d,
240
- focusable: n,
241
- active: o,
242
- children: /* @__PURE__ */ s.jsx(
243
- N.span,
239
+ id: u,
240
+ focusable: o,
241
+ active: n,
242
+ children: /* @__PURE__ */ i.jsx(
243
+ _.span,
244
244
  {
245
245
  tabIndex: f ? 0 : -1,
246
246
  "data-orientation": p.orientation,
247
247
  ...c,
248
248
  ref: r,
249
- onMouseDown: _(e.onMouseDown, (v) => {
250
- n ? p.onItemFocus(d) : v.preventDefault();
249
+ onMouseDown: N(e.onMouseDown, (v) => {
250
+ o ? p.onItemFocus(u) : v.preventDefault();
251
251
  }),
252
- onFocus: _(e.onFocus, () => p.onItemFocus(d)),
253
- onKeyDown: _(e.onKeyDown, (v) => {
252
+ onFocus: N(e.onFocus, () => p.onItemFocus(u)),
253
+ onKeyDown: N(e.onKeyDown, (v) => {
254
254
  if (v.key === "Tab" && v.shiftKey) {
255
255
  p.onItemShiftTab();
256
256
  return;
@@ -270,7 +270,7 @@ var Jn = l.forwardRef((e, r) => {
270
270
  setTimeout(() => Dt(y));
271
271
  }
272
272
  }),
273
- children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop: m != null }) : a
273
+ children: typeof s == "function" ? s({ isCurrentTabStop: f, hasTabStop: m != null }) : s
274
274
  }
275
275
  )
276
276
  }
@@ -292,24 +292,24 @@ function eo(e, r) {
292
292
  return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
293
293
  }
294
294
  function to(e, r, t) {
295
- const n = eo(e.key, t);
296
- if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(n)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(n)))
297
- return Qn[n];
295
+ const o = eo(e.key, t);
296
+ if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
297
+ return Qn[o];
298
298
  }
299
299
  function Dt(e, r = !1) {
300
300
  const t = document.activeElement;
301
- for (const n of e)
302
- if (n === t || (n.focus({ preventScroll: r }), document.activeElement !== t)) return;
301
+ for (const o of e)
302
+ if (o === t || (o.focus({ preventScroll: r }), document.activeElement !== t)) return;
303
303
  }
304
304
  function ro(e, r) {
305
- return e.map((t, n) => e[(r + n) % e.length]);
305
+ return e.map((t, o) => e[(r + o) % e.length]);
306
306
  }
307
307
  var no = Tt, oo = At;
308
- const _s = ({ disabled: e = !1, handleDelete: r, ...t }) => /* @__PURE__ */ s.jsx(
308
+ const Ns = ({ disabled: e = !1, handleDelete: r, ...t }) => /* @__PURE__ */ i.jsx(
309
309
  Te,
310
310
  {
311
311
  disabled: e,
312
- icon: /* @__PURE__ */ s.jsx(zn, {}),
312
+ icon: /* @__PURE__ */ i.jsx(zn, {}),
313
313
  onClick: r,
314
314
  variant: "outline",
315
315
  ...t,
@@ -325,24 +325,24 @@ const _s = ({ disabled: e = !1, handleDelete: r, ...t }) => /* @__PURE__ */ s.js
325
325
  submitting: e = !1,
326
326
  disabled: r = !1,
327
327
  submittingIcon: t,
328
- action: n = "default",
329
- label: o,
330
- submittingLabel: i,
331
- icon: a,
328
+ action: o = "default",
329
+ label: n,
330
+ submittingLabel: a,
331
+ icon: s,
332
332
  noIcon: c = !1,
333
- ...u
333
+ ...d
334
334
  }) => {
335
- if (!xt[n])
336
- throw new Error(`Invalid action: ${n}`);
337
- const d = xt[n], p = o || d.label, f = i || d.submittingLabel, x = a || d.IconComponent, g = e ? /* @__PURE__ */ s.jsx(un, { icon: t }) : /* @__PURE__ */ s.jsx(x, {});
338
- return /* @__PURE__ */ s.jsx(
335
+ if (!xt[o])
336
+ throw new Error(`Invalid action: ${o}`);
337
+ const u = xt[o], p = n || u.label, f = a || u.submittingLabel, x = s || u.IconComponent, g = e ? /* @__PURE__ */ i.jsx(un, { icon: t }) : /* @__PURE__ */ i.jsx(x, {});
338
+ return /* @__PURE__ */ i.jsx(
339
339
  Te,
340
340
  {
341
341
  disabled: r || e,
342
342
  icon: c ? void 0 : g,
343
343
  type: "submit",
344
344
  variant: "primary",
345
- ...u,
345
+ ...d,
346
346
  children: e ? f : p
347
347
  }
348
348
  );
@@ -351,134 +351,134 @@ function Ee(e) {
351
351
  const r = l.useRef({ value: e, previous: e });
352
352
  return l.useMemo(() => (r.current.value !== e && (r.current.previous = r.current.value, r.current.value = e), r.current.previous), [e]);
353
353
  }
354
- var Fe = "Checkbox", [ao, Ts] = ve(Fe), [so, pt] = ao(Fe);
354
+ var Oe = "Checkbox", [ao, Ts] = ve(Oe), [so, pt] = ao(Oe);
355
355
  function io(e) {
356
356
  const {
357
357
  __scopeCheckbox: r,
358
358
  checked: t,
359
- children: n,
360
- defaultChecked: o,
361
- disabled: i,
362
- form: a,
359
+ children: o,
360
+ defaultChecked: n,
361
+ disabled: a,
362
+ form: s,
363
363
  name: c,
364
- onCheckedChange: u,
365
- required: d,
364
+ onCheckedChange: d,
365
+ required: u,
366
366
  value: p = "on",
367
367
  // @ts-expect-error
368
368
  internal_do_not_use_render: f
369
369
  } = e, [x, g] = pe({
370
370
  prop: t,
371
- defaultProp: o ?? !1,
372
- onChange: u,
373
- caller: Fe
374
- }), [w, m] = l.useState(null), [v, b] = l.useState(null), S = l.useRef(!1), y = w ? !!a || !!w.closest("form") : (
371
+ defaultProp: n ?? !1,
372
+ onChange: d,
373
+ caller: Oe
374
+ }), [w, m] = l.useState(null), [v, b] = l.useState(null), S = l.useRef(!1), y = w ? !!s || !!w.closest("form") : (
375
375
  // We set this to true by default so that events bubble to forms without JS (SSR)
376
376
  !0
377
377
  ), R = {
378
378
  checked: x,
379
- disabled: i,
379
+ disabled: a,
380
380
  setChecked: g,
381
381
  control: w,
382
382
  setControl: m,
383
383
  name: c,
384
- form: a,
384
+ form: s,
385
385
  value: p,
386
386
  hasConsumerStoppedPropagationRef: S,
387
- required: d,
388
- defaultChecked: re(o) ? !1 : o,
387
+ required: u,
388
+ defaultChecked: re(n) ? !1 : n,
389
389
  isFormControl: y,
390
390
  bubbleInput: v,
391
391
  setBubbleInput: b
392
392
  };
393
- return /* @__PURE__ */ s.jsx(
393
+ return /* @__PURE__ */ i.jsx(
394
394
  so,
395
395
  {
396
396
  scope: r,
397
397
  ...R,
398
- children: lo(f) ? f(R) : n
398
+ children: lo(f) ? f(R) : o
399
399
  }
400
400
  );
401
401
  }
402
- var Ot = "CheckboxTrigger", Ft = l.forwardRef(
403
- ({ __scopeCheckbox: e, onKeyDown: r, onClick: t, ...n }, o) => {
402
+ var Lt = "CheckboxTrigger", Ot = l.forwardRef(
403
+ ({ __scopeCheckbox: e, onKeyDown: r, onClick: t, ...o }, n) => {
404
404
  const {
405
- control: i,
406
- value: a,
405
+ control: a,
406
+ value: s,
407
407
  disabled: c,
408
- checked: u,
409
- required: d,
408
+ checked: d,
409
+ required: u,
410
410
  setControl: p,
411
411
  setChecked: f,
412
412
  hasConsumerStoppedPropagationRef: x,
413
413
  isFormControl: g,
414
414
  bubbleInput: w
415
- } = pt(Ot, e), m = V(o, p), v = l.useRef(u);
415
+ } = pt(Lt, e), m = V(n, p), v = l.useRef(d);
416
416
  return l.useEffect(() => {
417
- const b = i?.form;
417
+ const b = a?.form;
418
418
  if (b) {
419
419
  const S = () => f(v.current);
420
420
  return b.addEventListener("reset", S), () => b.removeEventListener("reset", S);
421
421
  }
422
- }, [i, f]), /* @__PURE__ */ s.jsx(
423
- N.button,
422
+ }, [a, f]), /* @__PURE__ */ i.jsx(
423
+ _.button,
424
424
  {
425
425
  type: "button",
426
426
  role: "checkbox",
427
- "aria-checked": re(u) ? "mixed" : u,
428
- "aria-required": d,
429
- "data-state": Ht(u),
427
+ "aria-checked": re(d) ? "mixed" : d,
428
+ "aria-required": u,
429
+ "data-state": Ht(d),
430
430
  "data-disabled": c ? "" : void 0,
431
431
  disabled: c,
432
- value: a,
433
- ...n,
432
+ value: s,
433
+ ...o,
434
434
  ref: m,
435
- onKeyDown: _(r, (b) => {
435
+ onKeyDown: N(r, (b) => {
436
436
  b.key === "Enter" && b.preventDefault();
437
437
  }),
438
- onClick: _(t, (b) => {
438
+ onClick: N(t, (b) => {
439
439
  f((S) => re(S) ? !0 : !S), w && g && (x.current = b.isPropagationStopped(), x.current || b.stopPropagation());
440
440
  })
441
441
  }
442
442
  );
443
443
  }
444
444
  );
445
- Ft.displayName = Ot;
446
- var Lt = l.forwardRef(
445
+ Ot.displayName = Lt;
446
+ var Ft = l.forwardRef(
447
447
  (e, r) => {
448
448
  const {
449
449
  __scopeCheckbox: t,
450
- name: n,
451
- checked: o,
452
- defaultChecked: i,
453
- required: a,
450
+ name: o,
451
+ checked: n,
452
+ defaultChecked: a,
453
+ required: s,
454
454
  disabled: c,
455
- value: u,
456
- onCheckedChange: d,
455
+ value: d,
456
+ onCheckedChange: u,
457
457
  form: p,
458
458
  ...f
459
459
  } = e;
460
- return /* @__PURE__ */ s.jsx(
460
+ return /* @__PURE__ */ i.jsx(
461
461
  io,
462
462
  {
463
463
  __scopeCheckbox: t,
464
- checked: o,
465
- defaultChecked: i,
464
+ checked: n,
465
+ defaultChecked: a,
466
466
  disabled: c,
467
- required: a,
468
- onCheckedChange: d,
469
- name: n,
467
+ required: s,
468
+ onCheckedChange: u,
469
+ name: o,
470
470
  form: p,
471
- value: u,
472
- internal_do_not_use_render: ({ isFormControl: x }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
473
- /* @__PURE__ */ s.jsx(
474
- Ft,
471
+ value: d,
472
+ internal_do_not_use_render: ({ isFormControl: x }) => /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
473
+ /* @__PURE__ */ i.jsx(
474
+ Ot,
475
475
  {
476
476
  ...f,
477
477
  ref: r,
478
478
  __scopeCheckbox: t
479
479
  }
480
480
  ),
481
- x && /* @__PURE__ */ s.jsx(
481
+ x && /* @__PURE__ */ i.jsx(
482
482
  Kt,
483
483
  {
484
484
  __scopeCheckbox: t
@@ -489,20 +489,20 @@ var Lt = l.forwardRef(
489
489
  );
490
490
  }
491
491
  );
492
- Lt.displayName = Fe;
492
+ Ft.displayName = Oe;
493
493
  var Bt = "CheckboxIndicator", $t = l.forwardRef(
494
494
  (e, r) => {
495
- const { __scopeCheckbox: t, forceMount: n, ...o } = e, i = pt(Bt, t);
496
- return /* @__PURE__ */ s.jsx(
495
+ const { __scopeCheckbox: t, forceMount: o, ...n } = e, a = pt(Bt, t);
496
+ return /* @__PURE__ */ i.jsx(
497
497
  Ct,
498
498
  {
499
- present: n || re(i.checked) || i.checked === !0,
500
- children: /* @__PURE__ */ s.jsx(
501
- N.span,
499
+ present: o || re(a.checked) || a.checked === !0,
500
+ children: /* @__PURE__ */ i.jsx(
501
+ _.span,
502
502
  {
503
- "data-state": Ht(i.checked),
504
- "data-disabled": i.disabled ? "" : void 0,
505
- ...o,
503
+ "data-state": Ht(a.checked),
504
+ "data-disabled": a.disabled ? "" : void 0,
505
+ ...n,
506
506
  ref: r,
507
507
  style: { pointerEvents: "none", ...e.style }
508
508
  }
@@ -515,40 +515,40 @@ $t.displayName = Bt;
515
515
  var Vt = "CheckboxBubbleInput", Kt = l.forwardRef(
516
516
  ({ __scopeCheckbox: e, ...r }, t) => {
517
517
  const {
518
- control: n,
519
- hasConsumerStoppedPropagationRef: o,
520
- checked: i,
521
- defaultChecked: a,
518
+ control: o,
519
+ hasConsumerStoppedPropagationRef: n,
520
+ checked: a,
521
+ defaultChecked: s,
522
522
  required: c,
523
- disabled: u,
524
- name: d,
523
+ disabled: d,
524
+ name: u,
525
525
  value: p,
526
526
  form: f,
527
527
  bubbleInput: x,
528
528
  setBubbleInput: g
529
- } = pt(Vt, e), w = V(t, g), m = Ee(i), v = Oe(n);
529
+ } = pt(Vt, e), w = V(t, g), m = Ee(a), v = Le(o);
530
530
  l.useEffect(() => {
531
531
  const S = x;
532
532
  if (!S) return;
533
533
  const y = window.HTMLInputElement.prototype, D = Object.getOwnPropertyDescriptor(
534
534
  y,
535
535
  "checked"
536
- ).set, P = !o.current;
537
- if (m !== i && D) {
538
- const j = new Event("click", { bubbles: P });
539
- S.indeterminate = re(i), D.call(S, re(i) ? !1 : i), S.dispatchEvent(j);
536
+ ).set, T = !n.current;
537
+ if (m !== a && D) {
538
+ const j = new Event("click", { bubbles: T });
539
+ S.indeterminate = re(a), D.call(S, re(a) ? !1 : a), S.dispatchEvent(j);
540
540
  }
541
- }, [x, m, i, o]);
542
- const b = l.useRef(re(i) ? !1 : i);
543
- return /* @__PURE__ */ s.jsx(
544
- N.input,
541
+ }, [x, m, a, n]);
542
+ const b = l.useRef(re(a) ? !1 : a);
543
+ return /* @__PURE__ */ i.jsx(
544
+ _.input,
545
545
  {
546
546
  type: "checkbox",
547
547
  "aria-hidden": !0,
548
- defaultChecked: a ?? b.current,
548
+ defaultChecked: s ?? b.current,
549
549
  required: c,
550
- disabled: u,
551
- name: d,
550
+ disabled: d,
551
+ name: u,
552
552
  value: p,
553
553
  form: f,
554
554
  ...r,
@@ -581,69 +581,69 @@ function Ht(e) {
581
581
  return re(e) ? "indeterminate" : e ? "checked" : "unchecked";
582
582
  }
583
583
  function co({ className: e, ...r }) {
584
- return /* @__PURE__ */ s.jsx(
585
- Lt,
584
+ return /* @__PURE__ */ i.jsx(
585
+ Ft,
586
586
  {
587
- className: A(
587
+ className: P(
588
588
  "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
589
589
  e
590
590
  ),
591
591
  "data-slot": "checkbox",
592
592
  ...r,
593
- children: /* @__PURE__ */ s.jsx(
593
+ children: /* @__PURE__ */ i.jsx(
594
594
  $t,
595
595
  {
596
596
  className: "flex items-center justify-center text-current transition-none",
597
597
  "data-slot": "checkbox-indicator",
598
- children: /* @__PURE__ */ s.jsx(ut, { className: "size-3.5" })
598
+ children: /* @__PURE__ */ i.jsx(ut, { className: "size-3.5" })
599
599
  }
600
600
  )
601
601
  }
602
602
  );
603
603
  }
604
- const Ms = ({ label: e, name: r, value: t, checked: n, onCheckedChange: o }) => {
605
- const [i, a] = Me(n);
604
+ const Ms = ({ label: e, name: r, value: t, checked: o, onCheckedChange: n }) => {
605
+ const [a, s] = Me(o);
606
606
  St(() => {
607
- a(n);
608
- }, [n]);
607
+ s(o);
608
+ }, [o]);
609
609
  let c = r;
610
- const u = t || r;
610
+ const d = t || r;
611
611
  t && (c += `[${t}]`);
612
- const d = (p) => {
613
- a(p), o?.(p);
612
+ const u = (p) => {
613
+ s(p), n?.(p);
614
614
  };
615
- return /* @__PURE__ */ s.jsxs(ne, { align: "center", gap: "2", children: [
616
- /* @__PURE__ */ s.jsx(
615
+ return /* @__PURE__ */ i.jsxs(ne, { align: "center", gap: "2", children: [
616
+ /* @__PURE__ */ i.jsx(
617
617
  co,
618
618
  {
619
- checked: i,
619
+ checked: a,
620
620
  id: c,
621
621
  name: r,
622
- onCheckedChange: d,
623
- value: u
622
+ onCheckedChange: u,
623
+ value: d
624
624
  }
625
625
  ),
626
- /* @__PURE__ */ s.jsx(ae, { className: "cursor-pointer", htmlFor: c, children: e })
626
+ /* @__PURE__ */ i.jsx(ae, { className: "cursor-pointer", htmlFor: c, children: e })
627
627
  ] });
628
- }, As = ({ content: e, className: r, size: t = "md", ...n }) => {
629
- const [o, i] = Me(!1), a = sn(null);
628
+ }, As = ({ content: e, className: r, size: t = "md", ...o }) => {
629
+ const [n, a] = Me(!1), s = sn(null);
630
630
  St(() => () => {
631
- a.current && clearTimeout(a.current);
631
+ s.current && clearTimeout(s.current);
632
632
  }, []);
633
633
  const c = () => {
634
- const u = navigator.clipboard?.writeText;
635
- u && (i(!0), u.call(navigator.clipboard, e).then(() => {
636
- a.current && clearTimeout(a.current), a.current = setTimeout(() => {
637
- i(!1), a.current = null;
634
+ const d = navigator.clipboard?.writeText;
635
+ d && (a(!0), d.call(navigator.clipboard, e).then(() => {
636
+ s.current && clearTimeout(s.current), s.current = setTimeout(() => {
637
+ a(!1), s.current = null;
638
638
  }, 2e3);
639
639
  }).catch(() => {
640
- i(!1);
640
+ a(!1);
641
641
  }));
642
642
  };
643
- return /* @__PURE__ */ s.jsx(
643
+ return /* @__PURE__ */ i.jsx(
644
644
  Te,
645
645
  {
646
- className: A(
646
+ className: P(
647
647
  {
648
648
  "w-[88px]": t === "xs",
649
649
  "w-[96px]": t === "sm",
@@ -654,61 +654,61 @@ const Ms = ({ label: e, name: r, value: t, checked: n, onCheckedChange: o }) =>
654
654
  "justify-start",
655
655
  r
656
656
  ),
657
- disabled: o,
658
- icon: o ? /* @__PURE__ */ s.jsx(Fn, {}) : /* @__PURE__ */ s.jsx(Bn, {}),
659
- label: o ? "Copied" : "Copy",
657
+ disabled: n,
658
+ icon: n ? /* @__PURE__ */ i.jsx(On, {}) : /* @__PURE__ */ i.jsx(Bn, {}),
659
+ label: n ? "Copied" : "Copy",
660
660
  onClick: c,
661
661
  size: t,
662
- ...n
662
+ ...o
663
663
  }
664
664
  );
665
- }, Ds = ({ name: e, label: r, placeholder: t, note: n, className: o, size: i = "md", ...a }) => /* @__PURE__ */ s.jsx(
665
+ }, Ds = ({ name: e, label: r, placeholder: t, note: o, className: n, size: a = "md", ...s }) => /* @__PURE__ */ i.jsx(
666
666
  Gt,
667
667
  {
668
- className: A(
669
- i === "xs" && "max-w-[140px] md:max-w-[135px]",
670
- i === "sm" && "max-w-[150px] md:max-w-[140px]",
671
- i === "md" && "max-w-[170px] md:max-w-[150px]",
672
- i === "lg" && "max-w-[180px] md:max-w-[170px]",
673
- i === "xl" && "max-w-[200px]",
674
- o
668
+ className: P(
669
+ a === "xs" && "max-w-[140px] md:max-w-[135px]",
670
+ a === "sm" && "max-w-[150px] md:max-w-[140px]",
671
+ a === "md" && "max-w-[170px] md:max-w-[150px]",
672
+ a === "lg" && "max-w-[180px] md:max-w-[170px]",
673
+ a === "xl" && "max-w-[200px]",
674
+ n
675
675
  ),
676
676
  label: r,
677
677
  name: e,
678
- note: n,
678
+ note: o,
679
679
  placeholder: t,
680
- size: i,
680
+ size: a,
681
681
  type: "date",
682
- ...a
682
+ ...s
683
683
  }
684
- ), Os = ({ onDateSelection: e, initialValue: r, className: t, size: n = "default", error: o }) => {
685
- const [i, a] = Me(r), c = (u) => {
686
- a(u), u && e(u);
684
+ ), Ls = ({ onDateSelection: e, initialValue: r, className: t, size: o = "default", error: n }) => {
685
+ const [a, s] = Me(r), c = (d) => {
686
+ s(d), d && e(d);
687
687
  };
688
- return /* @__PURE__ */ s.jsxs(ne, { direction: "col", gap: "2", children: [
689
- /* @__PURE__ */ s.jsxs(It, { children: [
690
- /* @__PURE__ */ s.jsx(Rt, { asChild: !0, children: /* @__PURE__ */ s.jsxs(
688
+ return /* @__PURE__ */ i.jsxs(ne, { direction: "col", gap: "2", children: [
689
+ /* @__PURE__ */ i.jsxs(It, { children: [
690
+ /* @__PURE__ */ i.jsx(Rt, { asChild: !0, children: /* @__PURE__ */ i.jsxs(
691
691
  Te,
692
692
  {
693
- className: A("w-[280px] justify-start text-left font-normal", !i && "text-muted-foreground", t),
694
- size: n,
693
+ className: P("w-[280px] justify-start text-left font-normal", !a && "text-muted-foreground", t),
694
+ size: o,
695
695
  variant: "outline",
696
696
  children: [
697
- /* @__PURE__ */ s.jsx(jn, { className: "mr-2 h-4 w-4" }),
698
- i ? i.toISOString().split("T")[0] : /* @__PURE__ */ s.jsx("span", { children: "Select a date" })
697
+ /* @__PURE__ */ i.jsx(jn, { className: "mr-2 h-4 w-4" }),
698
+ a ? a.toISOString().split("T")[0] : /* @__PURE__ */ i.jsx("span", { children: "Select a date" })
699
699
  ]
700
700
  }
701
701
  ) }),
702
- /* @__PURE__ */ s.jsx(kt, { className: "w-auto p-0", children: /* @__PURE__ */ s.jsx(nn, { autoFocus: !0, mode: "single", onSelect: c, selected: i }) })
702
+ /* @__PURE__ */ i.jsx(kt, { className: "w-auto p-0", children: /* @__PURE__ */ i.jsx(nn, { autoFocus: !0, mode: "single", onSelect: c, selected: a }) })
703
703
  ] }),
704
- o && /* @__PURE__ */ s.jsx(je, { message: o })
704
+ n && /* @__PURE__ */ i.jsx(je, { message: n })
705
705
  ] });
706
- }, je = ({ message: e }) => /* @__PURE__ */ s.jsx(Ae, { size: "xs", variant: "destructive", children: e }), uo = ({ label: e, labelFor: r, className: t = "", labelClassName: n = "", children: o }) => /* @__PURE__ */ s.jsxs(ne, { direction: "col", gap: "2", children: [
707
- e && /* @__PURE__ */ s.jsx(ae, { className: n, htmlFor: r, children: e }),
708
- /* @__PURE__ */ s.jsx(ne, { className: `rounded-md border border-input bg-card p-2 shadow-xs ${t}`, gapY: "1", children: o })
706
+ }, je = ({ message: e }) => /* @__PURE__ */ i.jsx(Ae, { size: "xs", variant: "destructive", children: e }), uo = ({ label: e, labelFor: r, className: t = "", labelClassName: o = "", children: n }) => /* @__PURE__ */ i.jsxs(ne, { direction: "col", gap: "2", children: [
707
+ e && /* @__PURE__ */ i.jsx(ae, { className: o, htmlFor: r, children: e }),
708
+ /* @__PURE__ */ i.jsx(ne, { className: `rounded-md border border-input bg-card p-2 shadow-xs ${t}`, gapY: "1", children: n })
709
709
  ] });
710
- var po = "Label", Ut = l.forwardRef((e, r) => /* @__PURE__ */ s.jsx(
711
- N.label,
710
+ var po = "Label", Ut = l.forwardRef((e, r) => /* @__PURE__ */ i.jsx(
711
+ _.label,
712
712
  {
713
713
  ...e,
714
714
  ref: r,
@@ -720,10 +720,10 @@ var po = "Label", Ut = l.forwardRef((e, r) => /* @__PURE__ */ s.jsx(
720
720
  Ut.displayName = po;
721
721
  var fo = Ut;
722
722
  function mo({ className: e, ...r }) {
723
- return /* @__PURE__ */ s.jsx(
723
+ return /* @__PURE__ */ i.jsx(
724
724
  fo,
725
725
  {
726
- className: A(
726
+ className: P(
727
727
  "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
728
728
  e
729
729
  ),
@@ -732,132 +732,132 @@ function mo({ className: e, ...r }) {
732
732
  }
733
733
  );
734
734
  }
735
- const ae = ({ htmlFor: e, value: r, children: t, size: n = "md", className: o = "", ...i }) => /* @__PURE__ */ s.jsx(
735
+ const ae = ({ htmlFor: e, value: r, children: t, size: o = "md", className: n = "", ...a }) => /* @__PURE__ */ i.jsx(
736
736
  mo,
737
737
  {
738
- className: A(
738
+ className: P(
739
739
  "font-display font-normal text-foreground",
740
740
  {
741
- "text-xs": n === "xs",
742
- "text-sm": n === "sm",
743
- "text-base": n === "md",
744
- "text-lg": n === "lg",
745
- "text-xl": n === "xl"
741
+ "text-xs": o === "xs",
742
+ "text-sm": o === "sm",
743
+ "text-base": o === "md",
744
+ "text-lg": o === "lg",
745
+ "text-xl": o === "xl"
746
746
  },
747
- o
747
+ n
748
748
  ),
749
749
  htmlFor: e,
750
- ...i,
750
+ ...a,
751
751
  children: r || t
752
752
  }
753
753
  ), Gt = ({
754
754
  name: e,
755
755
  type: r = "text",
756
756
  placeholder: t,
757
- label: n,
758
- labelOrientation: o = "top",
759
- note: i,
760
- size: a = "md",
757
+ label: o,
758
+ labelOrientation: n = "top",
759
+ note: a,
760
+ size: s = "md",
761
761
  className: c,
762
- error: u,
763
- ...d
762
+ error: d,
763
+ ...u
764
764
  }) => {
765
- const p = A(
765
+ const p = P(
766
766
  "flex w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 shadow-xs outline-none",
767
767
  "transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex ",
768
768
  "file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm",
769
769
  "placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
770
770
  "dark:bg-input/30 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
771
771
  "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
772
- a === "xs" && "h-7 text-xs md:text-xs",
773
- a === "sm" && "h-8 text-sm md:text-xs",
774
- a === "md" && "h-9 text-base md:text-sm",
775
- a === "lg" && "h-10 text-lg md:text-base",
776
- a === "xl" && "h-11 text-xl md:text-lg",
772
+ s === "xs" && "h-7 text-xs md:text-xs",
773
+ s === "sm" && "h-8 text-sm md:text-xs",
774
+ s === "md" && "h-9 text-base md:text-sm",
775
+ s === "lg" && "h-10 text-lg md:text-base",
776
+ s === "xl" && "h-11 text-xl md:text-lg",
777
777
  c
778
778
  );
779
- return /* @__PURE__ */ s.jsxs(ne, { className: "w-full", direction: o === "left" ? "row" : "col", gap: "2", children: [
780
- n && /* @__PURE__ */ s.jsx(ae, { className: o === "left" ? "text-nowrap" : "", htmlFor: e, size: a, children: n }),
781
- /* @__PURE__ */ s.jsx(
779
+ return /* @__PURE__ */ i.jsxs(ne, { className: "w-full", direction: n === "left" ? "row" : "col", gap: "2", children: [
780
+ o && /* @__PURE__ */ i.jsx(ae, { className: n === "left" ? "text-nowrap" : "", htmlFor: e, size: s, children: o }),
781
+ /* @__PURE__ */ i.jsx(
782
782
  "input",
783
783
  {
784
- "aria-label": n || e,
784
+ "aria-label": o || e,
785
785
  className: p,
786
786
  "data-slot": "input",
787
787
  id: e,
788
788
  name: e,
789
789
  placeholder: t,
790
790
  type: r,
791
- ...d
791
+ ...u
792
792
  }
793
793
  ),
794
- i && /* @__PURE__ */ s.jsx(Ae, { size: "sm", variant: "muted", children: i }),
795
- u && /* @__PURE__ */ s.jsx(je, { message: u })
794
+ a && /* @__PURE__ */ i.jsx(Ae, { size: "sm", variant: "muted", children: a }),
795
+ d && /* @__PURE__ */ i.jsx(je, { message: d })
796
796
  ] });
797
- }, Fs = ({
797
+ }, Os = ({
798
798
  name: e,
799
799
  label: r,
800
800
  placeholder: t,
801
- note: n,
801
+ note: o,
802
802
  // Default to two decimal places for currency and general decimal values
803
- step: o = ".01",
804
- className: i,
805
- ...a
806
- }) => /* @__PURE__ */ s.jsx(
803
+ step: n = ".01",
804
+ className: a,
805
+ ...s
806
+ }) => /* @__PURE__ */ i.jsx(
807
807
  Gt,
808
808
  {
809
- className: i,
809
+ className: a,
810
810
  label: r,
811
811
  name: e,
812
- note: n,
812
+ note: o,
813
813
  placeholder: t,
814
- step: o,
814
+ step: n,
815
815
  type: "number",
816
- ...a
816
+ ...s
817
817
  }
818
818
  );
819
819
  var ft = "Radio", [ho, zt] = ve(ft), [vo, xo] = ho(ft), Wt = l.forwardRef(
820
820
  (e, r) => {
821
821
  const {
822
822
  __scopeRadio: t,
823
- name: n,
824
- checked: o = !1,
825
- required: i,
826
- disabled: a,
823
+ name: o,
824
+ checked: n = !1,
825
+ required: a,
826
+ disabled: s,
827
827
  value: c = "on",
828
- onCheck: u,
829
- form: d,
828
+ onCheck: d,
829
+ form: u,
830
830
  ...p
831
- } = e, [f, x] = l.useState(null), g = V(r, (v) => x(v)), w = l.useRef(!1), m = f ? d || !!f.closest("form") : !0;
832
- return /* @__PURE__ */ s.jsxs(vo, { scope: t, checked: o, disabled: a, children: [
833
- /* @__PURE__ */ s.jsx(
834
- N.button,
831
+ } = e, [f, x] = l.useState(null), g = V(r, (v) => x(v)), w = l.useRef(!1), m = f ? u || !!f.closest("form") : !0;
832
+ return /* @__PURE__ */ i.jsxs(vo, { scope: t, checked: n, disabled: s, children: [
833
+ /* @__PURE__ */ i.jsx(
834
+ _.button,
835
835
  {
836
836
  type: "button",
837
837
  role: "radio",
838
- "aria-checked": o,
839
- "data-state": Zt(o),
840
- "data-disabled": a ? "" : void 0,
841
- disabled: a,
838
+ "aria-checked": n,
839
+ "data-state": Zt(n),
840
+ "data-disabled": s ? "" : void 0,
841
+ disabled: s,
842
842
  value: c,
843
843
  ...p,
844
844
  ref: g,
845
- onClick: _(e.onClick, (v) => {
846
- o || u?.(), m && (w.current = v.isPropagationStopped(), w.current || v.stopPropagation());
845
+ onClick: N(e.onClick, (v) => {
846
+ n || d?.(), m && (w.current = v.isPropagationStopped(), w.current || v.stopPropagation());
847
847
  })
848
848
  }
849
849
  ),
850
- m && /* @__PURE__ */ s.jsx(
850
+ m && /* @__PURE__ */ i.jsx(
851
851
  Xt,
852
852
  {
853
853
  control: f,
854
854
  bubbles: !w.current,
855
- name: n,
855
+ name: o,
856
856
  value: c,
857
- checked: o,
858
- required: i,
859
- disabled: a,
860
- form: d,
857
+ checked: n,
858
+ required: a,
859
+ disabled: s,
860
+ form: u,
861
861
  style: { transform: "translateX(-100%)" }
862
862
  }
863
863
  )
@@ -867,13 +867,13 @@ var ft = "Radio", [ho, zt] = ve(ft), [vo, xo] = ho(ft), Wt = l.forwardRef(
867
867
  Wt.displayName = ft;
868
868
  var qt = "RadioIndicator", Yt = l.forwardRef(
869
869
  (e, r) => {
870
- const { __scopeRadio: t, forceMount: n, ...o } = e, i = xo(qt, t);
871
- return /* @__PURE__ */ s.jsx(Ct, { present: n || i.checked, children: /* @__PURE__ */ s.jsx(
872
- N.span,
870
+ const { __scopeRadio: t, forceMount: o, ...n } = e, a = xo(qt, t);
871
+ return /* @__PURE__ */ i.jsx(Ct, { present: o || a.checked, children: /* @__PURE__ */ i.jsx(
872
+ _.span,
873
873
  {
874
- "data-state": Zt(i.checked),
875
- "data-disabled": i.disabled ? "" : void 0,
876
- ...o,
874
+ "data-state": Zt(a.checked),
875
+ "data-disabled": a.disabled ? "" : void 0,
876
+ ...n,
877
877
  ref: r
878
878
  }
879
879
  ) });
@@ -885,33 +885,33 @@ var go = "RadioBubbleInput", Xt = l.forwardRef(
885
885
  __scopeRadio: e,
886
886
  control: r,
887
887
  checked: t,
888
- bubbles: n = !0,
889
- ...o
890
- }, i) => {
891
- const a = l.useRef(null), c = V(a, i), u = Ee(t), d = Oe(r);
888
+ bubbles: o = !0,
889
+ ...n
890
+ }, a) => {
891
+ const s = l.useRef(null), c = V(s, a), d = Ee(t), u = Le(r);
892
892
  return l.useEffect(() => {
893
- const p = a.current;
893
+ const p = s.current;
894
894
  if (!p) return;
895
895
  const f = window.HTMLInputElement.prototype, g = Object.getOwnPropertyDescriptor(
896
896
  f,
897
897
  "checked"
898
898
  ).set;
899
- if (u !== t && g) {
900
- const w = new Event("click", { bubbles: n });
899
+ if (d !== t && g) {
900
+ const w = new Event("click", { bubbles: o });
901
901
  g.call(p, t), p.dispatchEvent(w);
902
902
  }
903
- }, [u, t, n]), /* @__PURE__ */ s.jsx(
904
- N.input,
903
+ }, [d, t, o]), /* @__PURE__ */ i.jsx(
904
+ _.input,
905
905
  {
906
906
  type: "radio",
907
907
  "aria-hidden": !0,
908
908
  defaultChecked: t,
909
- ...o,
909
+ ...n,
910
910
  tabIndex: -1,
911
911
  ref: c,
912
912
  style: {
913
- ...o.style,
914
- ...d,
913
+ ...n.style,
914
+ ...u,
915
915
  position: "absolute",
916
916
  pointerEvents: "none",
917
917
  opacity: 0,
@@ -925,52 +925,52 @@ Xt.displayName = go;
925
925
  function Zt(e) {
926
926
  return e ? "checked" : "unchecked";
927
927
  }
928
- var bo = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Le = "RadioGroup", [wo, Ls] = ve(Le, [
928
+ var bo = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fe = "RadioGroup", [wo, Fs] = ve(Fe, [
929
929
  Pt,
930
930
  zt
931
- ]), Jt = Pt(), Qt = zt(), [So, yo] = wo(Le), er = l.forwardRef(
931
+ ]), Jt = Pt(), Qt = zt(), [So, yo] = wo(Fe), er = l.forwardRef(
932
932
  (e, r) => {
933
933
  const {
934
934
  __scopeRadioGroup: t,
935
- name: n,
936
- defaultValue: o,
937
- value: i,
938
- required: a = !1,
935
+ name: o,
936
+ defaultValue: n,
937
+ value: a,
938
+ required: s = !1,
939
939
  disabled: c = !1,
940
- orientation: u,
941
- dir: d,
940
+ orientation: d,
941
+ dir: u,
942
942
  loop: p = !0,
943
943
  onValueChange: f,
944
944
  ...x
945
- } = e, g = Jt(t), w = De(d), [m, v] = pe({
946
- prop: i,
947
- defaultProp: o ?? null,
945
+ } = e, g = Jt(t), w = De(u), [m, v] = pe({
946
+ prop: a,
947
+ defaultProp: n ?? null,
948
948
  onChange: f,
949
- caller: Le
949
+ caller: Fe
950
950
  });
951
- return /* @__PURE__ */ s.jsx(
951
+ return /* @__PURE__ */ i.jsx(
952
952
  So,
953
953
  {
954
954
  scope: t,
955
- name: n,
956
- required: a,
955
+ name: o,
956
+ required: s,
957
957
  disabled: c,
958
958
  value: m,
959
959
  onValueChange: v,
960
- children: /* @__PURE__ */ s.jsx(
960
+ children: /* @__PURE__ */ i.jsx(
961
961
  no,
962
962
  {
963
963
  asChild: !0,
964
964
  ...g,
965
- orientation: u,
965
+ orientation: d,
966
966
  dir: w,
967
967
  loop: p,
968
- children: /* @__PURE__ */ s.jsx(
969
- N.div,
968
+ children: /* @__PURE__ */ i.jsx(
969
+ _.div,
970
970
  {
971
971
  role: "radiogroup",
972
- "aria-required": a,
973
- "aria-orientation": u,
972
+ "aria-required": s,
973
+ "aria-orientation": d,
974
974
  "data-disabled": c ? "" : void 0,
975
975
  dir: w,
976
976
  ...x,
@@ -983,10 +983,10 @@ var bo = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Le = "RadioGroup",
983
983
  );
984
984
  }
985
985
  );
986
- er.displayName = Le;
986
+ er.displayName = Fe;
987
987
  var tr = "RadioGroupItem", rr = l.forwardRef(
988
988
  (e, r) => {
989
- const { __scopeRadioGroup: t, disabled: n, ...o } = e, i = yo(tr, t), a = i.disabled || n, c = Jt(t), u = Qt(t), d = l.useRef(null), p = V(r, d), f = i.value === o.value, x = l.useRef(!1);
989
+ const { __scopeRadioGroup: t, disabled: o, ...n } = e, a = yo(tr, t), s = a.disabled || o, c = Jt(t), d = Qt(t), u = l.useRef(null), p = V(r, u), f = a.value === n.value, x = l.useRef(!1);
990
990
  return l.useEffect(() => {
991
991
  const g = (m) => {
992
992
  bo.includes(m.key) && (x.current = !0);
@@ -994,29 +994,29 @@ var tr = "RadioGroupItem", rr = l.forwardRef(
994
994
  return document.addEventListener("keydown", g), document.addEventListener("keyup", w), () => {
995
995
  document.removeEventListener("keydown", g), document.removeEventListener("keyup", w);
996
996
  };
997
- }, []), /* @__PURE__ */ s.jsx(
997
+ }, []), /* @__PURE__ */ i.jsx(
998
998
  oo,
999
999
  {
1000
1000
  asChild: !0,
1001
1001
  ...c,
1002
- focusable: !a,
1002
+ focusable: !s,
1003
1003
  active: f,
1004
- children: /* @__PURE__ */ s.jsx(
1004
+ children: /* @__PURE__ */ i.jsx(
1005
1005
  Wt,
1006
1006
  {
1007
- disabled: a,
1008
- required: i.required,
1007
+ disabled: s,
1008
+ required: a.required,
1009
1009
  checked: f,
1010
- ...u,
1011
- ...o,
1012
- name: i.name,
1010
+ ...d,
1011
+ ...n,
1012
+ name: a.name,
1013
1013
  ref: p,
1014
- onCheck: () => i.onValueChange(o.value),
1015
- onKeyDown: _((g) => {
1014
+ onCheck: () => a.onValueChange(n.value),
1015
+ onKeyDown: N((g) => {
1016
1016
  g.key === "Enter" && g.preventDefault();
1017
1017
  }),
1018
- onFocus: _(o.onFocus, () => {
1019
- x.current && d.current?.click();
1018
+ onFocus: N(n.onFocus, () => {
1019
+ x.current && u.current?.click();
1020
1020
  })
1021
1021
  }
1022
1022
  )
@@ -1027,77 +1027,77 @@ var tr = "RadioGroupItem", rr = l.forwardRef(
1027
1027
  rr.displayName = tr;
1028
1028
  var Co = "RadioGroupIndicator", nr = l.forwardRef(
1029
1029
  (e, r) => {
1030
- const { __scopeRadioGroup: t, ...n } = e, o = Qt(t);
1031
- return /* @__PURE__ */ s.jsx(Yt, { ...o, ...n, ref: r });
1030
+ const { __scopeRadioGroup: t, ...o } = e, n = Qt(t);
1031
+ return /* @__PURE__ */ i.jsx(Yt, { ...n, ...o, ref: r });
1032
1032
  }
1033
1033
  );
1034
1034
  nr.displayName = Co;
1035
1035
  var Io = er, Ro = rr, ko = nr;
1036
1036
  function Eo({ className: e, ...r }) {
1037
- return /* @__PURE__ */ s.jsx(Io, { className: A("grid gap-3", e), "data-slot": "radio-group", ...r });
1037
+ return /* @__PURE__ */ i.jsx(Io, { className: P("grid gap-3", e), "data-slot": "radio-group", ...r });
1038
1038
  }
1039
1039
  function jo({ className: e, ...r }) {
1040
- return /* @__PURE__ */ s.jsx(
1040
+ return /* @__PURE__ */ i.jsx(
1041
1041
  Ro,
1042
1042
  {
1043
- className: A(
1043
+ className: P(
1044
1044
  "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
1045
1045
  e
1046
1046
  ),
1047
1047
  "data-slot": "radio-group-item",
1048
1048
  ...r,
1049
- children: /* @__PURE__ */ s.jsx(
1049
+ children: /* @__PURE__ */ i.jsx(
1050
1050
  ko,
1051
1051
  {
1052
1052
  className: "relative flex items-center justify-center",
1053
1053
  "data-slot": "radio-group-indicator",
1054
- children: /* @__PURE__ */ s.jsx(Dn, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
1054
+ children: /* @__PURE__ */ i.jsx(Dn, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
1055
1055
  }
1056
1056
  )
1057
1057
  }
1058
1058
  );
1059
1059
  }
1060
- const Bs = ({ label: e, name: r, options: t, value: n, onChange: o, error: i }) => /* @__PURE__ */ s.jsxs(uo, { className: "flex flex-col gap-4 px-2 py-1", label: e, labelFor: r, children: [
1061
- /* @__PURE__ */ s.jsx(Eo, { className: "w-full", name: r, onValueChange: o, value: n, children: /* @__PURE__ */ s.jsx(dn, { cols: "2", children: t.map((a, c) => /* @__PURE__ */ s.jsxs(ne, { align: "center", gap: "2", justify: "start", children: [
1062
- /* @__PURE__ */ s.jsx(jo, { id: a.value, value: a.value }),
1063
- /* @__PURE__ */ s.jsx(ae, { htmlFor: a.value, children: a.label })
1060
+ const Bs = ({ label: e, name: r, options: t, value: o, onChange: n, error: a }) => /* @__PURE__ */ i.jsxs(uo, { className: "flex flex-col gap-4 px-2 py-1", label: e, labelFor: r, children: [
1061
+ /* @__PURE__ */ i.jsx(Eo, { className: "w-full", name: r, onValueChange: n, value: o, children: /* @__PURE__ */ i.jsx(dn, { cols: "2", children: t.map((s, c) => /* @__PURE__ */ i.jsxs(ne, { align: "center", gap: "2", justify: "start", children: [
1062
+ /* @__PURE__ */ i.jsx(jo, { id: s.value, value: s.value }),
1063
+ /* @__PURE__ */ i.jsx(ae, { htmlFor: s.value, children: s.label })
1064
1064
  ] }, c)) }) }),
1065
- i && /* @__PURE__ */ s.jsx(je, { message: i })
1065
+ a && /* @__PURE__ */ i.jsx(je, { message: a })
1066
1066
  ] });
1067
- function _e(e, [r, t]) {
1067
+ function Ne(e, [r, t]) {
1068
1068
  return Math.min(t, Math.max(r, e));
1069
1069
  }
1070
- var No = [" ", "Enter", "ArrowUp", "ArrowDown"], _o = [" ", "Enter"], fe = "Select", [Be, $e, Po] = dt(fe), [we, $s] = ve(fe, [
1070
+ var _o = [" ", "Enter", "ArrowUp", "ArrowDown"], No = [" ", "Enter"], fe = "Select", [Be, $e, Po] = dt(fe), [we, $s] = ve(fe, [
1071
1071
  Po,
1072
1072
  Et
1073
1073
  ]), Ve = Et(), [To, ie] = we(fe), [Mo, Ao] = we(fe), or = (e) => {
1074
1074
  const {
1075
1075
  __scopeSelect: r,
1076
1076
  children: t,
1077
- open: n,
1078
- defaultOpen: o,
1079
- onOpenChange: i,
1080
- value: a,
1077
+ open: o,
1078
+ defaultOpen: n,
1079
+ onOpenChange: a,
1080
+ value: s,
1081
1081
  defaultValue: c,
1082
- onValueChange: u,
1083
- dir: d,
1082
+ onValueChange: d,
1083
+ dir: u,
1084
1084
  name: p,
1085
1085
  autoComplete: f,
1086
1086
  disabled: x,
1087
1087
  required: g,
1088
1088
  form: w
1089
- } = e, m = Ve(r), [v, b] = l.useState(null), [S, y] = l.useState(null), [R, D] = l.useState(!1), P = De(d), [j, L] = pe({
1090
- prop: n,
1091
- defaultProp: o ?? !1,
1092
- onChange: i,
1089
+ } = e, m = Ve(r), [v, b] = l.useState(null), [S, y] = l.useState(null), [R, D] = l.useState(!1), T = De(u), [j, F] = pe({
1090
+ prop: o,
1091
+ defaultProp: n ?? !1,
1092
+ onChange: a,
1093
1093
  caller: fe
1094
1094
  }), [Z, z] = pe({
1095
- prop: a,
1095
+ prop: s,
1096
1096
  defaultProp: c,
1097
- onChange: u,
1097
+ onChange: d,
1098
1098
  caller: fe
1099
- }), O = l.useRef(null), K = v ? w || !!v.closest("form") : !0, [X, W] = l.useState(/* @__PURE__ */ new Set()), U = Array.from(X).map((F) => F.props.value).join(";");
1100
- return /* @__PURE__ */ s.jsx(pn, { ...m, children: /* @__PURE__ */ s.jsxs(
1099
+ }), L = l.useRef(null), K = v ? w || !!v.closest("form") : !0, [X, W] = l.useState(/* @__PURE__ */ new Set()), U = Array.from(X).map((O) => O.props.value).join(";");
1100
+ return /* @__PURE__ */ i.jsx(pn, { ...m, children: /* @__PURE__ */ i.jsxs(
1101
1101
  To,
1102
1102
  {
1103
1103
  required: g,
@@ -1112,28 +1112,28 @@ var No = [" ", "Enter", "ArrowUp", "ArrowDown"], _o = [" ", "Enter"], fe = "Sele
1112
1112
  value: Z,
1113
1113
  onValueChange: z,
1114
1114
  open: j,
1115
- onOpenChange: L,
1116
- dir: P,
1117
- triggerPointerDownPosRef: O,
1115
+ onOpenChange: F,
1116
+ dir: T,
1117
+ triggerPointerDownPosRef: L,
1118
1118
  disabled: x,
1119
1119
  children: [
1120
- /* @__PURE__ */ s.jsx(Be.Provider, { scope: r, children: /* @__PURE__ */ s.jsx(
1120
+ /* @__PURE__ */ i.jsx(Be.Provider, { scope: r, children: /* @__PURE__ */ i.jsx(
1121
1121
  Mo,
1122
1122
  {
1123
1123
  scope: e.__scopeSelect,
1124
- onNativeOptionAdd: l.useCallback((F) => {
1125
- W((G) => new Set(G).add(F));
1124
+ onNativeOptionAdd: l.useCallback((O) => {
1125
+ W((G) => new Set(G).add(O));
1126
1126
  }, []),
1127
- onNativeOptionRemove: l.useCallback((F) => {
1127
+ onNativeOptionRemove: l.useCallback((O) => {
1128
1128
  W((G) => {
1129
1129
  const q = new Set(G);
1130
- return q.delete(F), q;
1130
+ return q.delete(O), q;
1131
1131
  });
1132
1132
  }, []),
1133
1133
  children: t
1134
1134
  }
1135
1135
  ) }),
1136
- K ? /* @__PURE__ */ s.jsxs(
1136
+ K ? /* @__PURE__ */ i.jsxs(
1137
1137
  kr,
1138
1138
  {
1139
1139
  "aria-hidden": !0,
@@ -1142,11 +1142,11 @@ var No = [" ", "Enter", "ArrowUp", "ArrowDown"], _o = [" ", "Enter"], fe = "Sele
1142
1142
  name: p,
1143
1143
  autoComplete: f,
1144
1144
  value: Z,
1145
- onChange: (F) => z(F.target.value),
1145
+ onChange: (O) => z(O.target.value),
1146
1146
  disabled: x,
1147
1147
  form: w,
1148
1148
  children: [
1149
- Z === void 0 ? /* @__PURE__ */ s.jsx("option", { value: "" }) : null,
1149
+ Z === void 0 ? /* @__PURE__ */ i.jsx("option", { value: "" }) : null,
1150
1150
  Array.from(X)
1151
1151
  ]
1152
1152
  },
@@ -1159,42 +1159,42 @@ var No = [" ", "Enter", "ArrowUp", "ArrowDown"], _o = [" ", "Enter"], fe = "Sele
1159
1159
  or.displayName = fe;
1160
1160
  var ar = "SelectTrigger", sr = l.forwardRef(
1161
1161
  (e, r) => {
1162
- const { __scopeSelect: t, disabled: n = !1, ...o } = e, i = Ve(t), a = ie(ar, t), c = a.disabled || n, u = V(r, a.onTriggerChange), d = $e(t), p = l.useRef("touch"), [f, x, g] = jr((m) => {
1163
- const v = d().filter((y) => !y.disabled), b = v.find((y) => y.value === a.value), S = Nr(v, m, b);
1164
- S !== void 0 && a.onValueChange(S.value);
1162
+ const { __scopeSelect: t, disabled: o = !1, ...n } = e, a = Ve(t), s = ie(ar, t), c = s.disabled || o, d = V(r, s.onTriggerChange), u = $e(t), p = l.useRef("touch"), [f, x, g] = jr((m) => {
1163
+ const v = u().filter((y) => !y.disabled), b = v.find((y) => y.value === s.value), S = _r(v, m, b);
1164
+ S !== void 0 && s.onValueChange(S.value);
1165
1165
  }), w = (m) => {
1166
- c || (a.onOpenChange(!0), g()), m && (a.triggerPointerDownPosRef.current = {
1166
+ c || (s.onOpenChange(!0), g()), m && (s.triggerPointerDownPosRef.current = {
1167
1167
  x: Math.round(m.pageX),
1168
1168
  y: Math.round(m.pageY)
1169
1169
  });
1170
1170
  };
1171
- return /* @__PURE__ */ s.jsx(fn, { asChild: !0, ...i, children: /* @__PURE__ */ s.jsx(
1172
- N.button,
1171
+ return /* @__PURE__ */ i.jsx(fn, { asChild: !0, ...a, children: /* @__PURE__ */ i.jsx(
1172
+ _.button,
1173
1173
  {
1174
1174
  type: "button",
1175
1175
  role: "combobox",
1176
- "aria-controls": a.contentId,
1177
- "aria-expanded": a.open,
1178
- "aria-required": a.required,
1176
+ "aria-controls": s.contentId,
1177
+ "aria-expanded": s.open,
1178
+ "aria-required": s.required,
1179
1179
  "aria-autocomplete": "none",
1180
- dir: a.dir,
1181
- "data-state": a.open ? "open" : "closed",
1180
+ dir: s.dir,
1181
+ "data-state": s.open ? "open" : "closed",
1182
1182
  disabled: c,
1183
1183
  "data-disabled": c ? "" : void 0,
1184
- "data-placeholder": Er(a.value) ? "" : void 0,
1185
- ...o,
1186
- ref: u,
1187
- onClick: _(o.onClick, (m) => {
1184
+ "data-placeholder": Er(s.value) ? "" : void 0,
1185
+ ...n,
1186
+ ref: d,
1187
+ onClick: N(n.onClick, (m) => {
1188
1188
  m.currentTarget.focus(), p.current !== "mouse" && w(m);
1189
1189
  }),
1190
- onPointerDown: _(o.onPointerDown, (m) => {
1190
+ onPointerDown: N(n.onPointerDown, (m) => {
1191
1191
  p.current = m.pointerType;
1192
1192
  const v = m.target;
1193
1193
  v.hasPointerCapture(m.pointerId) && v.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && m.pointerType === "mouse" && (w(m), m.preventDefault());
1194
1194
  }),
1195
- onKeyDown: _(o.onKeyDown, (m) => {
1195
+ onKeyDown: N(n.onKeyDown, (m) => {
1196
1196
  const v = f.current !== "";
1197
- !(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && x(m.key), !(v && m.key === " ") && No.includes(m.key) && (w(), m.preventDefault());
1197
+ !(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && x(m.key), !(v && m.key === " ") && _o.includes(m.key) && (w(), m.preventDefault());
1198
1198
  })
1199
1199
  }
1200
1200
  ) });
@@ -1203,16 +1203,16 @@ var ar = "SelectTrigger", sr = l.forwardRef(
1203
1203
  sr.displayName = ar;
1204
1204
  var ir = "SelectValue", lr = l.forwardRef(
1205
1205
  (e, r) => {
1206
- const { __scopeSelect: t, className: n, style: o, children: i, placeholder: a = "", ...c } = e, u = ie(ir, t), { onValueNodeHasChildrenChange: d } = u, p = i !== void 0, f = V(r, u.onValueNodeChange);
1206
+ const { __scopeSelect: t, className: o, style: n, children: a, placeholder: s = "", ...c } = e, d = ie(ir, t), { onValueNodeHasChildrenChange: u } = d, p = a !== void 0, f = V(r, d.onValueNodeChange);
1207
1207
  return oe(() => {
1208
- d(p);
1209
- }, [d, p]), /* @__PURE__ */ s.jsx(
1210
- N.span,
1208
+ u(p);
1209
+ }, [u, p]), /* @__PURE__ */ i.jsx(
1210
+ _.span,
1211
1211
  {
1212
1212
  ...c,
1213
1213
  ref: f,
1214
1214
  style: { pointerEvents: "none" },
1215
- children: Er(u.value) ? /* @__PURE__ */ s.jsx(s.Fragment, { children: a }) : i
1215
+ children: Er(d.value) ? /* @__PURE__ */ i.jsx(i.Fragment, { children: s }) : a
1216
1216
  }
1217
1217
  );
1218
1218
  }
@@ -1220,42 +1220,42 @@ var ir = "SelectValue", lr = l.forwardRef(
1220
1220
  lr.displayName = ir;
1221
1221
  var Do = "SelectIcon", cr = l.forwardRef(
1222
1222
  (e, r) => {
1223
- const { __scopeSelect: t, children: n, ...o } = e;
1224
- return /* @__PURE__ */ s.jsx(N.span, { "aria-hidden": !0, ...o, ref: r, children: n || "▼" });
1223
+ const { __scopeSelect: t, children: o, ...n } = e;
1224
+ return /* @__PURE__ */ i.jsx(_.span, { "aria-hidden": !0, ...n, ref: r, children: o || "▼" });
1225
1225
  }
1226
1226
  );
1227
1227
  cr.displayName = Do;
1228
- var Oo = "SelectPortal", dr = (e) => /* @__PURE__ */ s.jsx(mn, { asChild: !0, ...e });
1229
- dr.displayName = Oo;
1228
+ var Lo = "SelectPortal", dr = (e) => /* @__PURE__ */ i.jsx(mn, { asChild: !0, ...e });
1229
+ dr.displayName = Lo;
1230
1230
  var me = "SelectContent", ur = l.forwardRef(
1231
1231
  (e, r) => {
1232
- const t = ie(me, e.__scopeSelect), [n, o] = l.useState();
1232
+ const t = ie(me, e.__scopeSelect), [o, n] = l.useState();
1233
1233
  if (oe(() => {
1234
- o(new DocumentFragment());
1234
+ n(new DocumentFragment());
1235
1235
  }, []), !t.open) {
1236
- const i = n;
1237
- return i ? Nt.createPortal(
1238
- /* @__PURE__ */ s.jsx(pr, { scope: e.__scopeSelect, children: /* @__PURE__ */ s.jsx(Be.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ s.jsx("div", { children: e.children }) }) }),
1239
- i
1236
+ const a = o;
1237
+ return a ? _t.createPortal(
1238
+ /* @__PURE__ */ i.jsx(pr, { scope: e.__scopeSelect, children: /* @__PURE__ */ i.jsx(Be.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ i.jsx("div", { children: e.children }) }) }),
1239
+ a
1240
1240
  ) : null;
1241
1241
  }
1242
- return /* @__PURE__ */ s.jsx(fr, { ...e, ref: r });
1242
+ return /* @__PURE__ */ i.jsx(fr, { ...e, ref: r });
1243
1243
  }
1244
1244
  );
1245
1245
  ur.displayName = me;
1246
- var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.RemoveScroll"), fr = l.forwardRef(
1246
+ var Q = 10, [pr, le] = we(me), Oo = "SelectContentImpl", Fo = on("SelectContent.RemoveScroll"), fr = l.forwardRef(
1247
1247
  (e, r) => {
1248
1248
  const {
1249
1249
  __scopeSelect: t,
1250
- position: n = "item-aligned",
1251
- onCloseAutoFocus: o,
1252
- onEscapeKeyDown: i,
1253
- onPointerDownOutside: a,
1250
+ position: o = "item-aligned",
1251
+ onCloseAutoFocus: n,
1252
+ onEscapeKeyDown: a,
1253
+ onPointerDownOutside: s,
1254
1254
  //
1255
1255
  // PopperContent props
1256
1256
  side: c,
1257
- sideOffset: u,
1258
- align: d,
1257
+ sideOffset: d,
1258
+ align: u,
1259
1259
  alignOffset: p,
1260
1260
  arrowPadding: f,
1261
1261
  collisionBoundary: x,
@@ -1265,22 +1265,22 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1265
1265
  avoidCollisions: v,
1266
1266
  //
1267
1267
  ...b
1268
- } = e, S = ie(me, t), [y, R] = l.useState(null), [D, P] = l.useState(null), j = V(r, (C) => R(C)), [L, Z] = l.useState(null), [z, O] = l.useState(
1268
+ } = e, S = ie(me, t), [y, R] = l.useState(null), [D, T] = l.useState(null), j = V(r, (C) => R(C)), [F, Z] = l.useState(null), [z, L] = l.useState(
1269
1269
  null
1270
1270
  ), K = $e(t), [X, W] = l.useState(!1), U = l.useRef(!1);
1271
1271
  l.useEffect(() => {
1272
1272
  if (y) return vn(y);
1273
1273
  }, [y]), xn();
1274
- const F = l.useCallback(
1274
+ const O = l.useCallback(
1275
1275
  (C) => {
1276
- const [M, ...B] = K().map((Y) => Y.ref.current), [$] = B.slice(-1), H = document.activeElement;
1276
+ const [A, ...B] = K().map((Y) => Y.ref.current), [$] = B.slice(-1), H = document.activeElement;
1277
1277
  for (const Y of C)
1278
- if (Y === H || (Y?.scrollIntoView({ block: "nearest" }), Y === M && D && (D.scrollTop = 0), Y === $ && D && (D.scrollTop = D.scrollHeight), Y?.focus(), document.activeElement !== H)) return;
1278
+ if (Y === H || (Y?.scrollIntoView({ block: "nearest" }), Y === A && D && (D.scrollTop = 0), Y === $ && D && (D.scrollTop = D.scrollHeight), Y?.focus(), document.activeElement !== H)) return;
1279
1279
  },
1280
1280
  [K, D]
1281
1281
  ), G = l.useCallback(
1282
- () => F([L, y]),
1283
- [F, L, y]
1282
+ () => O([F, y]),
1283
+ [O, F, y]
1284
1284
  );
1285
1285
  l.useEffect(() => {
1286
1286
  X && G();
@@ -1289,16 +1289,16 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1289
1289
  l.useEffect(() => {
1290
1290
  if (y) {
1291
1291
  let C = { x: 0, y: 0 };
1292
- const M = ($) => {
1292
+ const A = ($) => {
1293
1293
  C = {
1294
1294
  x: Math.abs(Math.round($.pageX) - (J.current?.x ?? 0)),
1295
1295
  y: Math.abs(Math.round($.pageY) - (J.current?.y ?? 0))
1296
1296
  };
1297
1297
  }, B = ($) => {
1298
- C.x <= 10 && C.y <= 10 ? $.preventDefault() : y.contains($.target) || q(!1), document.removeEventListener("pointermove", M), J.current = null;
1298
+ C.x <= 10 && C.y <= 10 ? $.preventDefault() : y.contains($.target) || q(!1), document.removeEventListener("pointermove", A), J.current = null;
1299
1299
  };
1300
- return J.current !== null && (document.addEventListener("pointermove", M), document.addEventListener("pointerup", B, { capture: !0, once: !0 })), () => {
1301
- document.removeEventListener("pointermove", M), document.removeEventListener("pointerup", B, { capture: !0 });
1300
+ return J.current !== null && (document.addEventListener("pointermove", A), document.addEventListener("pointerup", B, { capture: !0, once: !0 })), () => {
1301
+ document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", B, { capture: !0 });
1302
1302
  };
1303
1303
  }
1304
1304
  }, [y, q, J]), l.useEffect(() => {
@@ -1308,24 +1308,24 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1308
1308
  };
1309
1309
  }, [q]);
1310
1310
  const [xe, ce] = jr((C) => {
1311
- const M = K().filter((H) => !H.disabled), B = M.find((H) => H.ref.current === document.activeElement), $ = Nr(M, C, B);
1311
+ const A = K().filter((H) => !H.disabled), B = A.find((H) => H.ref.current === document.activeElement), $ = _r(A, C, B);
1312
1312
  $ && setTimeout(() => $.ref.current.focus());
1313
1313
  }), h = l.useCallback(
1314
- (C, M, B) => {
1314
+ (C, A, B) => {
1315
1315
  const $ = !U.current && !B;
1316
- (S.value !== void 0 && S.value === M || $) && (Z(C), $ && (U.current = !0));
1316
+ (S.value !== void 0 && S.value === A || $) && (Z(C), $ && (U.current = !0));
1317
1317
  },
1318
1318
  [S.value]
1319
1319
  ), k = l.useCallback(() => y?.focus(), [y]), E = l.useCallback(
1320
- (C, M, B) => {
1320
+ (C, A, B) => {
1321
1321
  const $ = !U.current && !B;
1322
- (S.value !== void 0 && S.value === M || $) && O(C);
1322
+ (S.value !== void 0 && S.value === A || $) && L(C);
1323
1323
  },
1324
1324
  [S.value]
1325
- ), I = n === "popper" ? et : mr, T = I === et ? {
1325
+ ), I = o === "popper" ? et : mr, M = I === et ? {
1326
1326
  side: c,
1327
- sideOffset: u,
1328
- align: d,
1327
+ sideOffset: d,
1328
+ align: u,
1329
1329
  alignOffset: p,
1330
1330
  arrowPadding: f,
1331
1331
  collisionBoundary: x,
@@ -1334,23 +1334,23 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1334
1334
  hideWhenDetached: m,
1335
1335
  avoidCollisions: v
1336
1336
  } : {};
1337
- return /* @__PURE__ */ s.jsx(
1337
+ return /* @__PURE__ */ i.jsx(
1338
1338
  pr,
1339
1339
  {
1340
1340
  scope: t,
1341
1341
  content: y,
1342
1342
  viewport: D,
1343
- onViewportChange: P,
1343
+ onViewportChange: T,
1344
1344
  itemRefCallback: h,
1345
- selectedItem: L,
1345
+ selectedItem: F,
1346
1346
  onItemLeave: k,
1347
1347
  itemTextRefCallback: E,
1348
1348
  focusSelectedItem: G,
1349
1349
  selectedItemText: z,
1350
- position: n,
1350
+ position: o,
1351
1351
  isPositioned: X,
1352
1352
  searchRef: xe,
1353
- children: /* @__PURE__ */ s.jsx(gn, { as: Lo, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
1353
+ children: /* @__PURE__ */ i.jsx(gn, { as: Fo, allowPinchZoom: !0, children: /* @__PURE__ */ i.jsx(
1354
1354
  bn,
1355
1355
  {
1356
1356
  asChild: !0,
@@ -1358,19 +1358,19 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1358
1358
  onMountAutoFocus: (C) => {
1359
1359
  C.preventDefault();
1360
1360
  },
1361
- onUnmountAutoFocus: _(o, (C) => {
1361
+ onUnmountAutoFocus: N(n, (C) => {
1362
1362
  S.trigger?.focus({ preventScroll: !0 }), C.preventDefault();
1363
1363
  }),
1364
- children: /* @__PURE__ */ s.jsx(
1364
+ children: /* @__PURE__ */ i.jsx(
1365
1365
  wn,
1366
1366
  {
1367
1367
  asChild: !0,
1368
1368
  disableOutsidePointerEvents: !0,
1369
- onEscapeKeyDown: i,
1370
- onPointerDownOutside: a,
1369
+ onEscapeKeyDown: a,
1370
+ onPointerDownOutside: s,
1371
1371
  onFocusOutside: (C) => C.preventDefault(),
1372
1372
  onDismiss: () => S.onOpenChange(!1),
1373
- children: /* @__PURE__ */ s.jsx(
1373
+ children: /* @__PURE__ */ i.jsx(
1374
1374
  I,
1375
1375
  {
1376
1376
  role: "listbox",
@@ -1379,7 +1379,7 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1379
1379
  dir: S.dir,
1380
1380
  onContextMenu: (C) => C.preventDefault(),
1381
1381
  ...b,
1382
- ...T,
1382
+ ...M,
1383
1383
  onPlaced: () => W(!0),
1384
1384
  ref: j,
1385
1385
  style: {
@@ -1390,15 +1390,15 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1390
1390
  outline: "none",
1391
1391
  ...b.style
1392
1392
  },
1393
- onKeyDown: _(b.onKeyDown, (C) => {
1394
- const M = C.ctrlKey || C.altKey || C.metaKey;
1395
- if (C.key === "Tab" && C.preventDefault(), !M && C.key.length === 1 && ce(C.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(C.key)) {
1393
+ onKeyDown: N(b.onKeyDown, (C) => {
1394
+ const A = C.ctrlKey || C.altKey || C.metaKey;
1395
+ if (C.key === "Tab" && C.preventDefault(), !A && C.key.length === 1 && ce(C.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(C.key)) {
1396
1396
  let $ = K().filter((H) => !H.disabled).map((H) => H.ref.current);
1397
1397
  if (["ArrowUp", "End"].includes(C.key) && ($ = $.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(C.key)) {
1398
1398
  const H = C.target, Y = $.indexOf(H);
1399
1399
  $ = $.slice(Y + 1);
1400
1400
  }
1401
- setTimeout(() => F($)), C.preventDefault();
1401
+ setTimeout(() => O($)), C.preventDefault();
1402
1402
  }
1403
1403
  })
1404
1404
  }
@@ -1411,13 +1411,13 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1411
1411
  );
1412
1412
  }
1413
1413
  );
1414
- fr.displayName = Fo;
1414
+ fr.displayName = Oo;
1415
1415
  var Bo = "SelectItemAlignedPosition", mr = l.forwardRef((e, r) => {
1416
- const { __scopeSelect: t, onPlaced: n, ...o } = e, i = ie(me, t), a = le(me, t), [c, u] = l.useState(null), [d, p] = l.useState(null), f = V(r, (j) => p(j)), x = $e(t), g = l.useRef(!1), w = l.useRef(!0), { viewport: m, selectedItem: v, selectedItemText: b, focusSelectedItem: S } = a, y = l.useCallback(() => {
1417
- if (i.trigger && i.valueNode && c && d && m && v && b) {
1418
- const j = i.trigger.getBoundingClientRect(), L = d.getBoundingClientRect(), Z = i.valueNode.getBoundingClientRect(), z = b.getBoundingClientRect();
1419
- if (i.dir !== "rtl") {
1420
- const H = z.left - L.left, Y = Z.left - H, de = j.left - Y, ue = j.width + de, Ge = Math.max(ue, L.width), ze = window.innerWidth - Q, We = _e(Y, [
1416
+ const { __scopeSelect: t, onPlaced: o, ...n } = e, a = ie(me, t), s = le(me, t), [c, d] = l.useState(null), [u, p] = l.useState(null), f = V(r, (j) => p(j)), x = $e(t), g = l.useRef(!1), w = l.useRef(!0), { viewport: m, selectedItem: v, selectedItemText: b, focusSelectedItem: S } = s, y = l.useCallback(() => {
1417
+ if (a.trigger && a.valueNode && c && u && m && v && b) {
1418
+ const j = a.trigger.getBoundingClientRect(), F = u.getBoundingClientRect(), Z = a.valueNode.getBoundingClientRect(), z = b.getBoundingClientRect();
1419
+ if (a.dir !== "rtl") {
1420
+ const H = z.left - F.left, Y = Z.left - H, de = j.left - Y, ue = j.width + de, Ge = Math.max(ue, F.width), ze = window.innerWidth - Q, We = Ne(Y, [
1421
1421
  Q,
1422
1422
  // Prevents the content from going off the starting edge of the
1423
1423
  // viewport. It may still go off the ending edge, but this can be
@@ -1428,78 +1428,78 @@ var Bo = "SelectItemAlignedPosition", mr = l.forwardRef((e, r) => {
1428
1428
  ]);
1429
1429
  c.style.minWidth = ue + "px", c.style.left = We + "px";
1430
1430
  } else {
1431
- const H = L.right - z.right, Y = window.innerWidth - Z.right - H, de = window.innerWidth - j.right - Y, ue = j.width + de, Ge = Math.max(ue, L.width), ze = window.innerWidth - Q, We = _e(Y, [
1431
+ const H = F.right - z.right, Y = window.innerWidth - Z.right - H, de = window.innerWidth - j.right - Y, ue = j.width + de, Ge = Math.max(ue, F.width), ze = window.innerWidth - Q, We = Ne(Y, [
1432
1432
  Q,
1433
1433
  Math.max(Q, ze - Ge)
1434
1434
  ]);
1435
1435
  c.style.minWidth = ue + "px", c.style.right = We + "px";
1436
1436
  }
1437
- const O = x(), K = window.innerHeight - Q * 2, X = m.scrollHeight, W = window.getComputedStyle(d), U = parseInt(W.borderTopWidth, 10), F = parseInt(W.paddingTop, 10), G = parseInt(W.borderBottomWidth, 10), q = parseInt(W.paddingBottom, 10), J = U + F + X + q + G, xe = Math.min(v.offsetHeight * 5, J), ce = window.getComputedStyle(m), h = parseInt(ce.paddingTop, 10), k = parseInt(ce.paddingBottom, 10), E = j.top + j.height / 2 - Q, I = K - E, T = v.offsetHeight / 2, C = v.offsetTop + T, M = U + F + C, B = J - M;
1438
- if (M <= E) {
1439
- const H = O.length > 0 && v === O[O.length - 1].ref.current;
1437
+ const L = x(), K = window.innerHeight - Q * 2, X = m.scrollHeight, W = window.getComputedStyle(u), U = parseInt(W.borderTopWidth, 10), O = parseInt(W.paddingTop, 10), G = parseInt(W.borderBottomWidth, 10), q = parseInt(W.paddingBottom, 10), J = U + O + X + q + G, xe = Math.min(v.offsetHeight * 5, J), ce = window.getComputedStyle(m), h = parseInt(ce.paddingTop, 10), k = parseInt(ce.paddingBottom, 10), E = j.top + j.height / 2 - Q, I = K - E, M = v.offsetHeight / 2, C = v.offsetTop + M, A = U + O + C, B = J - A;
1438
+ if (A <= E) {
1439
+ const H = L.length > 0 && v === L[L.length - 1].ref.current;
1440
1440
  c.style.bottom = "0px";
1441
- const Y = d.clientHeight - m.offsetTop - m.offsetHeight, de = Math.max(
1441
+ const Y = u.clientHeight - m.offsetTop - m.offsetHeight, de = Math.max(
1442
1442
  I,
1443
- T + // viewport might have padding bottom, include it to avoid a scrollable viewport
1443
+ M + // viewport might have padding bottom, include it to avoid a scrollable viewport
1444
1444
  (H ? k : 0) + Y + G
1445
- ), ue = M + de;
1445
+ ), ue = A + de;
1446
1446
  c.style.height = ue + "px";
1447
1447
  } else {
1448
- const H = O.length > 0 && v === O[0].ref.current;
1448
+ const H = L.length > 0 && v === L[0].ref.current;
1449
1449
  c.style.top = "0px";
1450
1450
  const de = Math.max(
1451
1451
  E,
1452
1452
  U + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
1453
- (H ? h : 0) + T
1453
+ (H ? h : 0) + M
1454
1454
  ) + B;
1455
- c.style.height = de + "px", m.scrollTop = M - E + m.offsetTop;
1455
+ c.style.height = de + "px", m.scrollTop = A - E + m.offsetTop;
1456
1456
  }
1457
- c.style.margin = `${Q}px 0`, c.style.minHeight = xe + "px", c.style.maxHeight = K + "px", n?.(), requestAnimationFrame(() => g.current = !0);
1457
+ c.style.margin = `${Q}px 0`, c.style.minHeight = xe + "px", c.style.maxHeight = K + "px", o?.(), requestAnimationFrame(() => g.current = !0);
1458
1458
  }
1459
1459
  }, [
1460
1460
  x,
1461
- i.trigger,
1462
- i.valueNode,
1461
+ a.trigger,
1462
+ a.valueNode,
1463
1463
  c,
1464
- d,
1464
+ u,
1465
1465
  m,
1466
1466
  v,
1467
1467
  b,
1468
- i.dir,
1469
- n
1468
+ a.dir,
1469
+ o
1470
1470
  ]);
1471
1471
  oe(() => y(), [y]);
1472
1472
  const [R, D] = l.useState();
1473
1473
  oe(() => {
1474
- d && D(window.getComputedStyle(d).zIndex);
1475
- }, [d]);
1476
- const P = l.useCallback(
1474
+ u && D(window.getComputedStyle(u).zIndex);
1475
+ }, [u]);
1476
+ const T = l.useCallback(
1477
1477
  (j) => {
1478
1478
  j && w.current === !0 && (y(), S?.(), w.current = !1);
1479
1479
  },
1480
1480
  [y, S]
1481
1481
  );
1482
- return /* @__PURE__ */ s.jsx(
1482
+ return /* @__PURE__ */ i.jsx(
1483
1483
  Vo,
1484
1484
  {
1485
1485
  scope: t,
1486
1486
  contentWrapper: c,
1487
1487
  shouldExpandOnScrollRef: g,
1488
- onScrollButtonChange: P,
1489
- children: /* @__PURE__ */ s.jsx(
1488
+ onScrollButtonChange: T,
1489
+ children: /* @__PURE__ */ i.jsx(
1490
1490
  "div",
1491
1491
  {
1492
- ref: u,
1492
+ ref: d,
1493
1493
  style: {
1494
1494
  display: "flex",
1495
1495
  flexDirection: "column",
1496
1496
  position: "fixed",
1497
1497
  zIndex: R
1498
1498
  },
1499
- children: /* @__PURE__ */ s.jsx(
1500
- N.div,
1499
+ children: /* @__PURE__ */ i.jsx(
1500
+ _.div,
1501
1501
  {
1502
- ...o,
1502
+ ...n,
1503
1503
  ref: f,
1504
1504
  style: {
1505
1505
  // When we get the height of the content, it includes borders. If we were to set
@@ -1507,7 +1507,7 @@ var Bo = "SelectItemAlignedPosition", mr = l.forwardRef((e, r) => {
1507
1507
  boxSizing: "border-box",
1508
1508
  // We need to ensure the content doesn't get taller than the wrapper
1509
1509
  maxHeight: "100%",
1510
- ...o.style
1510
+ ...n.style
1511
1511
  }
1512
1512
  }
1513
1513
  )
@@ -1520,22 +1520,22 @@ mr.displayName = Bo;
1520
1520
  var $o = "SelectPopperPosition", et = l.forwardRef((e, r) => {
1521
1521
  const {
1522
1522
  __scopeSelect: t,
1523
- align: n = "start",
1524
- collisionPadding: o = Q,
1525
- ...i
1526
- } = e, a = Ve(t);
1527
- return /* @__PURE__ */ s.jsx(
1523
+ align: o = "start",
1524
+ collisionPadding: n = Q,
1525
+ ...a
1526
+ } = e, s = Ve(t);
1527
+ return /* @__PURE__ */ i.jsx(
1528
1528
  Sn,
1529
1529
  {
1530
+ ...s,
1530
1531
  ...a,
1531
- ...i,
1532
1532
  ref: r,
1533
- align: n,
1534
- collisionPadding: o,
1533
+ align: o,
1534
+ collisionPadding: n,
1535
1535
  style: {
1536
1536
  // Ensure border-box for floating-ui calculations
1537
1537
  boxSizing: "border-box",
1538
- ...i.style,
1538
+ ...a.style,
1539
1539
  "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
1540
1540
  "--radix-select-content-available-width": "var(--radix-popper-available-width)",
1541
1541
  "--radix-select-content-available-height": "var(--radix-popper-available-height)",
@@ -1548,23 +1548,23 @@ var $o = "SelectPopperPosition", et = l.forwardRef((e, r) => {
1548
1548
  et.displayName = $o;
1549
1549
  var [Vo, mt] = we(me, {}), tt = "SelectViewport", hr = l.forwardRef(
1550
1550
  (e, r) => {
1551
- const { __scopeSelect: t, nonce: n, ...o } = e, i = le(tt, t), a = mt(tt, t), c = V(r, i.onViewportChange), u = l.useRef(0);
1552
- return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1553
- /* @__PURE__ */ s.jsx(
1551
+ const { __scopeSelect: t, nonce: o, ...n } = e, a = le(tt, t), s = mt(tt, t), c = V(r, a.onViewportChange), d = l.useRef(0);
1552
+ return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1553
+ /* @__PURE__ */ i.jsx(
1554
1554
  "style",
1555
1555
  {
1556
1556
  dangerouslySetInnerHTML: {
1557
1557
  __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
1558
1558
  },
1559
- nonce: n
1559
+ nonce: o
1560
1560
  }
1561
1561
  ),
1562
- /* @__PURE__ */ s.jsx(Be.Slot, { scope: t, children: /* @__PURE__ */ s.jsx(
1563
- N.div,
1562
+ /* @__PURE__ */ i.jsx(Be.Slot, { scope: t, children: /* @__PURE__ */ i.jsx(
1563
+ _.div,
1564
1564
  {
1565
1565
  "data-radix-select-viewport": "",
1566
1566
  role: "presentation",
1567
- ...o,
1567
+ ...n,
1568
1568
  ref: c,
1569
1569
  style: {
1570
1570
  // we use position: 'relative' here on the `viewport` so that when we call
@@ -1577,12 +1577,12 @@ var [Vo, mt] = we(me, {}), tt = "SelectViewport", hr = l.forwardRef(
1577
1577
  // revisit this if/when that is supported
1578
1578
  // https://developer.chrome.com/blog/vertical-form-controls
1579
1579
  overflow: "hidden auto",
1580
- ...o.style
1580
+ ...n.style
1581
1581
  },
1582
- onScroll: _(o.onScroll, (d) => {
1583
- const p = d.currentTarget, { contentWrapper: f, shouldExpandOnScrollRef: x } = a;
1582
+ onScroll: N(n.onScroll, (u) => {
1583
+ const p = u.currentTarget, { contentWrapper: f, shouldExpandOnScrollRef: x } = s;
1584
1584
  if (x?.current && f) {
1585
- const g = Math.abs(u.current - p.scrollTop);
1585
+ const g = Math.abs(d.current - p.scrollTop);
1586
1586
  if (g > 0) {
1587
1587
  const w = window.innerHeight - Q * 2, m = parseFloat(f.style.minHeight), v = parseFloat(f.style.height), b = Math.max(m, v);
1588
1588
  if (b < w) {
@@ -1591,7 +1591,7 @@ var [Vo, mt] = we(me, {}), tt = "SelectViewport", hr = l.forwardRef(
1591
1591
  }
1592
1592
  }
1593
1593
  }
1594
- u.current = p.scrollTop;
1594
+ d.current = p.scrollTop;
1595
1595
  })
1596
1596
  }
1597
1597
  ) })
@@ -1601,15 +1601,15 @@ var [Vo, mt] = we(me, {}), tt = "SelectViewport", hr = l.forwardRef(
1601
1601
  hr.displayName = tt;
1602
1602
  var vr = "SelectGroup", [Ko, Ho] = we(vr), Uo = l.forwardRef(
1603
1603
  (e, r) => {
1604
- const { __scopeSelect: t, ...n } = e, o = te();
1605
- return /* @__PURE__ */ s.jsx(Ko, { scope: t, id: o, children: /* @__PURE__ */ s.jsx(N.div, { role: "group", "aria-labelledby": o, ...n, ref: r }) });
1604
+ const { __scopeSelect: t, ...o } = e, n = te();
1605
+ return /* @__PURE__ */ i.jsx(Ko, { scope: t, id: n, children: /* @__PURE__ */ i.jsx(_.div, { role: "group", "aria-labelledby": n, ...o, ref: r }) });
1606
1606
  }
1607
1607
  );
1608
1608
  Uo.displayName = vr;
1609
1609
  var xr = "SelectLabel", Go = l.forwardRef(
1610
1610
  (e, r) => {
1611
- const { __scopeSelect: t, ...n } = e, o = Ho(xr, t);
1612
- return /* @__PURE__ */ s.jsx(N.div, { id: o.id, ...n, ref: r });
1611
+ const { __scopeSelect: t, ...o } = e, n = Ho(xr, t);
1612
+ return /* @__PURE__ */ i.jsx(_.div, { id: n.id, ...o, ref: r });
1613
1613
  }
1614
1614
  );
1615
1615
  Go.displayName = xr;
@@ -1617,70 +1617,70 @@ var Pe = "SelectItem", [zo, gr] = we(Pe), br = l.forwardRef(
1617
1617
  (e, r) => {
1618
1618
  const {
1619
1619
  __scopeSelect: t,
1620
- value: n,
1621
- disabled: o = !1,
1622
- textValue: i,
1623
- ...a
1624
- } = e, c = ie(Pe, t), u = le(Pe, t), d = c.value === n, [p, f] = l.useState(i ?? ""), [x, g] = l.useState(!1), w = V(
1620
+ value: o,
1621
+ disabled: n = !1,
1622
+ textValue: a,
1623
+ ...s
1624
+ } = e, c = ie(Pe, t), d = le(Pe, t), u = c.value === o, [p, f] = l.useState(a ?? ""), [x, g] = l.useState(!1), w = V(
1625
1625
  r,
1626
- (S) => u.itemRefCallback?.(S, n, o)
1626
+ (S) => d.itemRefCallback?.(S, o, n)
1627
1627
  ), m = te(), v = l.useRef("touch"), b = () => {
1628
- o || (c.onValueChange(n), c.onOpenChange(!1));
1628
+ n || (c.onValueChange(o), c.onOpenChange(!1));
1629
1629
  };
1630
- if (n === "")
1630
+ if (o === "")
1631
1631
  throw new Error(
1632
1632
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
1633
1633
  );
1634
- return /* @__PURE__ */ s.jsx(
1634
+ return /* @__PURE__ */ i.jsx(
1635
1635
  zo,
1636
1636
  {
1637
1637
  scope: t,
1638
- value: n,
1639
- disabled: o,
1638
+ value: o,
1639
+ disabled: n,
1640
1640
  textId: m,
1641
- isSelected: d,
1641
+ isSelected: u,
1642
1642
  onItemTextChange: l.useCallback((S) => {
1643
1643
  f((y) => y || (S?.textContent ?? "").trim());
1644
1644
  }, []),
1645
- children: /* @__PURE__ */ s.jsx(
1645
+ children: /* @__PURE__ */ i.jsx(
1646
1646
  Be.ItemSlot,
1647
1647
  {
1648
1648
  scope: t,
1649
- value: n,
1650
- disabled: o,
1649
+ value: o,
1650
+ disabled: n,
1651
1651
  textValue: p,
1652
- children: /* @__PURE__ */ s.jsx(
1653
- N.div,
1652
+ children: /* @__PURE__ */ i.jsx(
1653
+ _.div,
1654
1654
  {
1655
1655
  role: "option",
1656
1656
  "aria-labelledby": m,
1657
1657
  "data-highlighted": x ? "" : void 0,
1658
- "aria-selected": d && x,
1659
- "data-state": d ? "checked" : "unchecked",
1660
- "aria-disabled": o || void 0,
1661
- "data-disabled": o ? "" : void 0,
1662
- tabIndex: o ? void 0 : -1,
1663
- ...a,
1658
+ "aria-selected": u && x,
1659
+ "data-state": u ? "checked" : "unchecked",
1660
+ "aria-disabled": n || void 0,
1661
+ "data-disabled": n ? "" : void 0,
1662
+ tabIndex: n ? void 0 : -1,
1663
+ ...s,
1664
1664
  ref: w,
1665
- onFocus: _(a.onFocus, () => g(!0)),
1666
- onBlur: _(a.onBlur, () => g(!1)),
1667
- onClick: _(a.onClick, () => {
1665
+ onFocus: N(s.onFocus, () => g(!0)),
1666
+ onBlur: N(s.onBlur, () => g(!1)),
1667
+ onClick: N(s.onClick, () => {
1668
1668
  v.current !== "mouse" && b();
1669
1669
  }),
1670
- onPointerUp: _(a.onPointerUp, () => {
1670
+ onPointerUp: N(s.onPointerUp, () => {
1671
1671
  v.current === "mouse" && b();
1672
1672
  }),
1673
- onPointerDown: _(a.onPointerDown, (S) => {
1673
+ onPointerDown: N(s.onPointerDown, (S) => {
1674
1674
  v.current = S.pointerType;
1675
1675
  }),
1676
- onPointerMove: _(a.onPointerMove, (S) => {
1677
- v.current = S.pointerType, o ? u.onItemLeave?.() : v.current === "mouse" && S.currentTarget.focus({ preventScroll: !0 });
1676
+ onPointerMove: N(s.onPointerMove, (S) => {
1677
+ v.current = S.pointerType, n ? d.onItemLeave?.() : v.current === "mouse" && S.currentTarget.focus({ preventScroll: !0 });
1678
1678
  }),
1679
- onPointerLeave: _(a.onPointerLeave, (S) => {
1680
- S.currentTarget === document.activeElement && u.onItemLeave?.();
1679
+ onPointerLeave: N(s.onPointerLeave, (S) => {
1680
+ S.currentTarget === document.activeElement && d.onItemLeave?.();
1681
1681
  }),
1682
- onKeyDown: _(a.onKeyDown, (S) => {
1683
- u.searchRef?.current !== "" && S.key === " " || (_o.includes(S.key) && b(), S.key === " " && S.preventDefault());
1682
+ onKeyDown: N(s.onKeyDown, (S) => {
1683
+ d.searchRef?.current !== "" && S.key === " " || (No.includes(S.key) && b(), S.key === " " && S.preventDefault());
1684
1684
  })
1685
1685
  }
1686
1686
  )
@@ -1693,135 +1693,135 @@ var Pe = "SelectItem", [zo, gr] = we(Pe), br = l.forwardRef(
1693
1693
  br.displayName = Pe;
1694
1694
  var Ie = "SelectItemText", wr = l.forwardRef(
1695
1695
  (e, r) => {
1696
- const { __scopeSelect: t, className: n, style: o, ...i } = e, a = ie(Ie, t), c = le(Ie, t), u = gr(Ie, t), d = Ao(Ie, t), [p, f] = l.useState(null), x = V(
1696
+ const { __scopeSelect: t, className: o, style: n, ...a } = e, s = ie(Ie, t), c = le(Ie, t), d = gr(Ie, t), u = Ao(Ie, t), [p, f] = l.useState(null), x = V(
1697
1697
  r,
1698
1698
  (b) => f(b),
1699
- u.onItemTextChange,
1700
- (b) => c.itemTextRefCallback?.(b, u.value, u.disabled)
1699
+ d.onItemTextChange,
1700
+ (b) => c.itemTextRefCallback?.(b, d.value, d.disabled)
1701
1701
  ), g = p?.textContent, w = l.useMemo(
1702
- () => /* @__PURE__ */ s.jsx("option", { value: u.value, disabled: u.disabled, children: g }, u.value),
1703
- [u.disabled, u.value, g]
1704
- ), { onNativeOptionAdd: m, onNativeOptionRemove: v } = d;
1705
- return oe(() => (m(w), () => v(w)), [m, v, w]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1706
- /* @__PURE__ */ s.jsx(N.span, { id: u.textId, ...i, ref: x }),
1707
- u.isSelected && a.valueNode && !a.valueNodeHasChildren ? Nt.createPortal(i.children, a.valueNode) : null
1702
+ () => /* @__PURE__ */ i.jsx("option", { value: d.value, disabled: d.disabled, children: g }, d.value),
1703
+ [d.disabled, d.value, g]
1704
+ ), { onNativeOptionAdd: m, onNativeOptionRemove: v } = u;
1705
+ return oe(() => (m(w), () => v(w)), [m, v, w]), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1706
+ /* @__PURE__ */ i.jsx(_.span, { id: d.textId, ...a, ref: x }),
1707
+ d.isSelected && s.valueNode && !s.valueNodeHasChildren ? _t.createPortal(a.children, s.valueNode) : null
1708
1708
  ] });
1709
1709
  }
1710
1710
  );
1711
1711
  wr.displayName = Ie;
1712
1712
  var Sr = "SelectItemIndicator", yr = l.forwardRef(
1713
1713
  (e, r) => {
1714
- const { __scopeSelect: t, ...n } = e;
1715
- return gr(Sr, t).isSelected ? /* @__PURE__ */ s.jsx(N.span, { "aria-hidden": !0, ...n, ref: r }) : null;
1714
+ const { __scopeSelect: t, ...o } = e;
1715
+ return gr(Sr, t).isSelected ? /* @__PURE__ */ i.jsx(_.span, { "aria-hidden": !0, ...o, ref: r }) : null;
1716
1716
  }
1717
1717
  );
1718
1718
  yr.displayName = Sr;
1719
1719
  var rt = "SelectScrollUpButton", Cr = l.forwardRef((e, r) => {
1720
- const t = le(rt, e.__scopeSelect), n = mt(rt, e.__scopeSelect), [o, i] = l.useState(!1), a = V(r, n.onScrollButtonChange);
1720
+ const t = le(rt, e.__scopeSelect), o = mt(rt, e.__scopeSelect), [n, a] = l.useState(!1), s = V(r, o.onScrollButtonChange);
1721
1721
  return oe(() => {
1722
1722
  if (t.viewport && t.isPositioned) {
1723
1723
  let c = function() {
1724
- const d = u.scrollTop > 0;
1725
- i(d);
1724
+ const u = d.scrollTop > 0;
1725
+ a(u);
1726
1726
  };
1727
- const u = t.viewport;
1728
- return c(), u.addEventListener("scroll", c), () => u.removeEventListener("scroll", c);
1727
+ const d = t.viewport;
1728
+ return c(), d.addEventListener("scroll", c), () => d.removeEventListener("scroll", c);
1729
1729
  }
1730
- }, [t.viewport, t.isPositioned]), o ? /* @__PURE__ */ s.jsx(
1730
+ }, [t.viewport, t.isPositioned]), n ? /* @__PURE__ */ i.jsx(
1731
1731
  Rr,
1732
1732
  {
1733
1733
  ...e,
1734
- ref: a,
1734
+ ref: s,
1735
1735
  onAutoScroll: () => {
1736
- const { viewport: c, selectedItem: u } = t;
1737
- c && u && (c.scrollTop = c.scrollTop - u.offsetHeight);
1736
+ const { viewport: c, selectedItem: d } = t;
1737
+ c && d && (c.scrollTop = c.scrollTop - d.offsetHeight);
1738
1738
  }
1739
1739
  }
1740
1740
  ) : null;
1741
1741
  });
1742
1742
  Cr.displayName = rt;
1743
1743
  var nt = "SelectScrollDownButton", Ir = l.forwardRef((e, r) => {
1744
- const t = le(nt, e.__scopeSelect), n = mt(nt, e.__scopeSelect), [o, i] = l.useState(!1), a = V(r, n.onScrollButtonChange);
1744
+ const t = le(nt, e.__scopeSelect), o = mt(nt, e.__scopeSelect), [n, a] = l.useState(!1), s = V(r, o.onScrollButtonChange);
1745
1745
  return oe(() => {
1746
1746
  if (t.viewport && t.isPositioned) {
1747
1747
  let c = function() {
1748
- const d = u.scrollHeight - u.clientHeight, p = Math.ceil(u.scrollTop) < d;
1749
- i(p);
1748
+ const u = d.scrollHeight - d.clientHeight, p = Math.ceil(d.scrollTop) < u;
1749
+ a(p);
1750
1750
  };
1751
- const u = t.viewport;
1752
- return c(), u.addEventListener("scroll", c), () => u.removeEventListener("scroll", c);
1751
+ const d = t.viewport;
1752
+ return c(), d.addEventListener("scroll", c), () => d.removeEventListener("scroll", c);
1753
1753
  }
1754
- }, [t.viewport, t.isPositioned]), o ? /* @__PURE__ */ s.jsx(
1754
+ }, [t.viewport, t.isPositioned]), n ? /* @__PURE__ */ i.jsx(
1755
1755
  Rr,
1756
1756
  {
1757
1757
  ...e,
1758
- ref: a,
1758
+ ref: s,
1759
1759
  onAutoScroll: () => {
1760
- const { viewport: c, selectedItem: u } = t;
1761
- c && u && (c.scrollTop = c.scrollTop + u.offsetHeight);
1760
+ const { viewport: c, selectedItem: d } = t;
1761
+ c && d && (c.scrollTop = c.scrollTop + d.offsetHeight);
1762
1762
  }
1763
1763
  }
1764
1764
  ) : null;
1765
1765
  });
1766
1766
  Ir.displayName = nt;
1767
1767
  var Rr = l.forwardRef((e, r) => {
1768
- const { __scopeSelect: t, onAutoScroll: n, ...o } = e, i = le("SelectScrollButton", t), a = l.useRef(null), c = $e(t), u = l.useCallback(() => {
1769
- a.current !== null && (window.clearInterval(a.current), a.current = null);
1768
+ const { __scopeSelect: t, onAutoScroll: o, ...n } = e, a = le("SelectScrollButton", t), s = l.useRef(null), c = $e(t), d = l.useCallback(() => {
1769
+ s.current !== null && (window.clearInterval(s.current), s.current = null);
1770
1770
  }, []);
1771
- return l.useEffect(() => () => u(), [u]), oe(() => {
1771
+ return l.useEffect(() => () => d(), [d]), oe(() => {
1772
1772
  c().find((p) => p.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
1773
- }, [c]), /* @__PURE__ */ s.jsx(
1774
- N.div,
1773
+ }, [c]), /* @__PURE__ */ i.jsx(
1774
+ _.div,
1775
1775
  {
1776
1776
  "aria-hidden": !0,
1777
- ...o,
1777
+ ...n,
1778
1778
  ref: r,
1779
- style: { flexShrink: 0, ...o.style },
1780
- onPointerDown: _(o.onPointerDown, () => {
1781
- a.current === null && (a.current = window.setInterval(n, 50));
1779
+ style: { flexShrink: 0, ...n.style },
1780
+ onPointerDown: N(n.onPointerDown, () => {
1781
+ s.current === null && (s.current = window.setInterval(o, 50));
1782
1782
  }),
1783
- onPointerMove: _(o.onPointerMove, () => {
1784
- i.onItemLeave?.(), a.current === null && (a.current = window.setInterval(n, 50));
1783
+ onPointerMove: N(n.onPointerMove, () => {
1784
+ a.onItemLeave?.(), s.current === null && (s.current = window.setInterval(o, 50));
1785
1785
  }),
1786
- onPointerLeave: _(o.onPointerLeave, () => {
1787
- u();
1786
+ onPointerLeave: N(n.onPointerLeave, () => {
1787
+ d();
1788
1788
  })
1789
1789
  }
1790
1790
  );
1791
1791
  }), Wo = "SelectSeparator", qo = l.forwardRef(
1792
1792
  (e, r) => {
1793
- const { __scopeSelect: t, ...n } = e;
1794
- return /* @__PURE__ */ s.jsx(N.div, { "aria-hidden": !0, ...n, ref: r });
1793
+ const { __scopeSelect: t, ...o } = e;
1794
+ return /* @__PURE__ */ i.jsx(_.div, { "aria-hidden": !0, ...o, ref: r });
1795
1795
  }
1796
1796
  );
1797
1797
  qo.displayName = Wo;
1798
1798
  var ot = "SelectArrow", Yo = l.forwardRef(
1799
1799
  (e, r) => {
1800
- const { __scopeSelect: t, ...n } = e, o = Ve(t), i = ie(ot, t), a = le(ot, t);
1801
- return i.open && a.position === "popper" ? /* @__PURE__ */ s.jsx(yn, { ...o, ...n, ref: r }) : null;
1800
+ const { __scopeSelect: t, ...o } = e, n = Ve(t), a = ie(ot, t), s = le(ot, t);
1801
+ return a.open && s.position === "popper" ? /* @__PURE__ */ i.jsx(yn, { ...n, ...o, ref: r }) : null;
1802
1802
  }
1803
1803
  );
1804
1804
  Yo.displayName = ot;
1805
1805
  var Xo = "SelectBubbleInput", kr = l.forwardRef(
1806
- ({ __scopeSelect: e, value: r, ...t }, n) => {
1807
- const o = l.useRef(null), i = V(n, o), a = Ee(r);
1806
+ ({ __scopeSelect: e, value: r, ...t }, o) => {
1807
+ const n = l.useRef(null), a = V(o, n), s = Ee(r);
1808
1808
  return l.useEffect(() => {
1809
- const c = o.current;
1809
+ const c = n.current;
1810
1810
  if (!c) return;
1811
- const u = window.HTMLSelectElement.prototype, p = Object.getOwnPropertyDescriptor(
1812
- u,
1811
+ const d = window.HTMLSelectElement.prototype, p = Object.getOwnPropertyDescriptor(
1812
+ d,
1813
1813
  "value"
1814
1814
  ).set;
1815
- if (a !== r && p) {
1815
+ if (s !== r && p) {
1816
1816
  const f = new Event("change", { bubbles: !0 });
1817
1817
  p.call(c, r), c.dispatchEvent(f);
1818
1818
  }
1819
- }, [a, r]), /* @__PURE__ */ s.jsx(
1820
- N.select,
1819
+ }, [s, r]), /* @__PURE__ */ i.jsx(
1820
+ _.select,
1821
1821
  {
1822
1822
  ...t,
1823
1823
  style: { ...hn, ...t.style },
1824
- ref: i,
1824
+ ref: a,
1825
1825
  defaultValue: r
1826
1826
  }
1827
1827
  );
@@ -1832,57 +1832,57 @@ function Er(e) {
1832
1832
  return e === "" || e === void 0;
1833
1833
  }
1834
1834
  function jr(e) {
1835
- const r = yt(e), t = l.useRef(""), n = l.useRef(0), o = l.useCallback(
1836
- (a) => {
1837
- const c = t.current + a;
1838
- r(c), function u(d) {
1839
- t.current = d, window.clearTimeout(n.current), d !== "" && (n.current = window.setTimeout(() => u(""), 1e3));
1835
+ const r = yt(e), t = l.useRef(""), o = l.useRef(0), n = l.useCallback(
1836
+ (s) => {
1837
+ const c = t.current + s;
1838
+ r(c), function d(u) {
1839
+ t.current = u, window.clearTimeout(o.current), u !== "" && (o.current = window.setTimeout(() => d(""), 1e3));
1840
1840
  }(c);
1841
1841
  },
1842
1842
  [r]
1843
- ), i = l.useCallback(() => {
1844
- t.current = "", window.clearTimeout(n.current);
1843
+ ), a = l.useCallback(() => {
1844
+ t.current = "", window.clearTimeout(o.current);
1845
1845
  }, []);
1846
- return l.useEffect(() => () => window.clearTimeout(n.current), []), [t, o, i];
1846
+ return l.useEffect(() => () => window.clearTimeout(o.current), []), [t, n, a];
1847
1847
  }
1848
- function Nr(e, r, t) {
1849
- const o = r.length > 1 && Array.from(r).every((d) => d === r[0]) ? r[0] : r, i = t ? e.indexOf(t) : -1;
1850
- let a = Zo(e, Math.max(i, 0));
1851
- o.length === 1 && (a = a.filter((d) => d !== t));
1852
- const u = a.find(
1853
- (d) => d.textValue.toLowerCase().startsWith(o.toLowerCase())
1848
+ function _r(e, r, t) {
1849
+ const n = r.length > 1 && Array.from(r).every((u) => u === r[0]) ? r[0] : r, a = t ? e.indexOf(t) : -1;
1850
+ let s = Zo(e, Math.max(a, 0));
1851
+ n.length === 1 && (s = s.filter((u) => u !== t));
1852
+ const d = s.find(
1853
+ (u) => u.textValue.toLowerCase().startsWith(n.toLowerCase())
1854
1854
  );
1855
- return u !== t ? u : void 0;
1855
+ return d !== t ? d : void 0;
1856
1856
  }
1857
1857
  function Zo(e, r) {
1858
- return e.map((t, n) => e[(r + n) % e.length]);
1858
+ return e.map((t, o) => e[(r + o) % e.length]);
1859
1859
  }
1860
1860
  var Jo = or, Qo = sr, ea = lr, ta = cr, ra = dr, na = ur, oa = hr, aa = br, sa = wr, ia = yr, la = Cr, ca = Ir;
1861
1861
  function da({ ...e }) {
1862
- return /* @__PURE__ */ s.jsx(Jo, { "data-slot": "select", ...e });
1862
+ return /* @__PURE__ */ i.jsx(Jo, { "data-slot": "select", ...e });
1863
1863
  }
1864
1864
  function ua({ ...e }) {
1865
- return /* @__PURE__ */ s.jsx(ea, { "data-slot": "select-value", ...e });
1865
+ return /* @__PURE__ */ i.jsx(ea, { "data-slot": "select-value", ...e });
1866
1866
  }
1867
1867
  function pa({
1868
1868
  className: e,
1869
1869
  size: r = "default",
1870
1870
  children: t,
1871
- ...n
1871
+ ...o
1872
1872
  }) {
1873
- return /* @__PURE__ */ s.jsxs(
1873
+ return /* @__PURE__ */ i.jsxs(
1874
1874
  Qo,
1875
1875
  {
1876
- className: A(
1876
+ className: P(
1877
1877
  "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1878
1878
  e
1879
1879
  ),
1880
1880
  "data-size": r,
1881
1881
  "data-slot": "select-trigger",
1882
- ...n,
1882
+ ...o,
1883
1883
  children: [
1884
1884
  t,
1885
- /* @__PURE__ */ s.jsx(ta, { asChild: !0, children: /* @__PURE__ */ s.jsx(jt, { className: "size-4 opacity-50" }) })
1885
+ /* @__PURE__ */ i.jsx(ta, { asChild: !0, children: /* @__PURE__ */ i.jsx(jt, { className: "size-4 opacity-50" }) })
1886
1886
  ]
1887
1887
  }
1888
1888
  );
@@ -1891,63 +1891,63 @@ function fa({
1891
1891
  className: e,
1892
1892
  children: r,
1893
1893
  position: t = "popper",
1894
- align: n = "center",
1895
- ...o
1894
+ align: o = "center",
1895
+ ...n
1896
1896
  }) {
1897
- return /* @__PURE__ */ s.jsx(ra, { children: /* @__PURE__ */ s.jsxs(
1897
+ return /* @__PURE__ */ i.jsx(ra, { children: /* @__PURE__ */ i.jsxs(
1898
1898
  na,
1899
1899
  {
1900
- align: n,
1901
- className: A(
1900
+ align: o,
1901
+ className: P(
1902
1902
  "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
1903
1903
  t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1904
1904
  e
1905
1905
  ),
1906
1906
  "data-slot": "select-content",
1907
1907
  position: t,
1908
- ...o,
1908
+ ...n,
1909
1909
  children: [
1910
- /* @__PURE__ */ s.jsx(ha, {}),
1911
- /* @__PURE__ */ s.jsx(
1910
+ /* @__PURE__ */ i.jsx(ha, {}),
1911
+ /* @__PURE__ */ i.jsx(
1912
1912
  oa,
1913
1913
  {
1914
- className: A(
1914
+ className: P(
1915
1915
  "p-1",
1916
1916
  t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
1917
1917
  ),
1918
1918
  children: r
1919
1919
  }
1920
1920
  ),
1921
- /* @__PURE__ */ s.jsx(va, {})
1921
+ /* @__PURE__ */ i.jsx(va, {})
1922
1922
  ]
1923
1923
  }
1924
1924
  ) });
1925
1925
  }
1926
1926
  function ma({ className: e, children: r, ...t }) {
1927
- return /* @__PURE__ */ s.jsxs(
1927
+ return /* @__PURE__ */ i.jsxs(
1928
1928
  aa,
1929
1929
  {
1930
- className: A(
1930
+ className: P(
1931
1931
  "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
1932
1932
  e
1933
1933
  ),
1934
1934
  "data-slot": "select-item",
1935
1935
  ...t,
1936
1936
  children: [
1937
- /* @__PURE__ */ s.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ s.jsx(ia, { children: /* @__PURE__ */ s.jsx(ut, { className: "size-4" }) }) }),
1938
- /* @__PURE__ */ s.jsx(sa, { children: r })
1937
+ /* @__PURE__ */ i.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ i.jsx(ia, { children: /* @__PURE__ */ i.jsx(ut, { className: "size-4" }) }) }),
1938
+ /* @__PURE__ */ i.jsx(sa, { children: r })
1939
1939
  ]
1940
1940
  }
1941
1941
  );
1942
1942
  }
1943
1943
  function ha({ className: e, ...r }) {
1944
- return /* @__PURE__ */ s.jsx(
1944
+ return /* @__PURE__ */ i.jsx(
1945
1945
  la,
1946
1946
  {
1947
- className: A("flex cursor-default items-center justify-center py-1", e),
1947
+ className: P("flex cursor-default items-center justify-center py-1", e),
1948
1948
  "data-slot": "select-scroll-up-button",
1949
1949
  ...r,
1950
- children: /* @__PURE__ */ s.jsx(Pn, { className: "size-4" })
1950
+ children: /* @__PURE__ */ i.jsx(Pn, { className: "size-4" })
1951
1951
  }
1952
1952
  );
1953
1953
  }
@@ -1955,13 +1955,13 @@ function va({
1955
1955
  className: e,
1956
1956
  ...r
1957
1957
  }) {
1958
- return /* @__PURE__ */ s.jsx(
1958
+ return /* @__PURE__ */ i.jsx(
1959
1959
  ca,
1960
1960
  {
1961
- className: A("flex cursor-default items-center justify-center py-1", e),
1961
+ className: P("flex cursor-default items-center justify-center py-1", e),
1962
1962
  "data-slot": "select-scroll-down-button",
1963
1963
  ...r,
1964
- children: /* @__PURE__ */ s.jsx(jt, { className: "size-4" })
1964
+ children: /* @__PURE__ */ i.jsx(jt, { className: "size-4" })
1965
1965
  }
1966
1966
  );
1967
1967
  }
@@ -1969,160 +1969,160 @@ const Vs = ({
1969
1969
  name: e,
1970
1970
  defaultValue: r,
1971
1971
  options: t,
1972
- label: n,
1973
- placeholder: o,
1974
- note: i,
1975
- className: a,
1972
+ label: o,
1973
+ placeholder: n,
1974
+ note: a,
1975
+ className: s,
1976
1976
  value: c,
1977
- onValueChange: u,
1978
- error: d,
1977
+ onValueChange: d,
1978
+ error: u,
1979
1979
  size: p = "md",
1980
1980
  ...f
1981
1981
  }) => {
1982
- const x = A(
1982
+ const x = P(
1983
1983
  "min-w-[180px]",
1984
1984
  p === "xs" && "h-7 text-xs md:text-xs",
1985
1985
  p === "sm" && "h-8 text-sm md:text-xs",
1986
1986
  p === "md" && "h-9 text-base md:text-sm",
1987
1987
  p === "lg" && "h-10 text-lg md:text-base",
1988
1988
  p === "xl" && "h-11 text-xl md:text-lg",
1989
- a
1989
+ s
1990
1990
  ), g = p === "xs" || p === "sm" ? "sm" : "default";
1991
- return /* @__PURE__ */ s.jsxs(ne, { className: "w-full", direction: "col", gap: "2", children: [
1992
- n && /* @__PURE__ */ s.jsx(ae, { htmlFor: e, children: n }),
1993
- /* @__PURE__ */ s.jsxs(
1991
+ return /* @__PURE__ */ i.jsxs(ne, { className: "w-full", direction: "col", gap: "2", children: [
1992
+ o && /* @__PURE__ */ i.jsx(ae, { htmlFor: e, children: o }),
1993
+ /* @__PURE__ */ i.jsxs(
1994
1994
  da,
1995
1995
  {
1996
1996
  defaultValue: r,
1997
1997
  name: e,
1998
- onValueChange: u,
1998
+ onValueChange: d,
1999
1999
  value: c,
2000
2000
  ...f,
2001
2001
  children: [
2002
- /* @__PURE__ */ s.jsx(pa, { className: x, "data-testid": `select-input-${e}`, size: g, children: /* @__PURE__ */ s.jsx(ua, { placeholder: o }) }),
2003
- /* @__PURE__ */ s.jsx(fa, { children: t.map(({ value: w, label: m }) => /* @__PURE__ */ s.jsx(ma, { value: w, children: m }, `option-${w}`)) })
2002
+ /* @__PURE__ */ i.jsx(pa, { className: x, "data-testid": `select-input-${e}`, size: g, children: /* @__PURE__ */ i.jsx(ua, { placeholder: n }) }),
2003
+ /* @__PURE__ */ i.jsx(fa, { children: t.map(({ value: w, label: m }) => /* @__PURE__ */ i.jsx(ma, { value: w, children: m }, `option-${w}`)) })
2004
2004
  ]
2005
2005
  }
2006
2006
  ),
2007
- i && /* @__PURE__ */ s.jsx(Ae, { size: "sm", variant: "muted", children: i }),
2008
- d && /* @__PURE__ */ s.jsx(je, { message: d })
2007
+ a && /* @__PURE__ */ i.jsx(Ae, { size: "sm", variant: "muted", children: a }),
2008
+ u && /* @__PURE__ */ i.jsx(je, { message: u })
2009
2009
  ] });
2010
2010
  };
2011
- var gt = 1, xa = 0.9, ga = 0.8, ba = 0.17, Xe = 0.1, Ze = 0.999, wa = 0.9999, Sa = 0.99, ya = /[\\\/_+.#"@\[\(\{&]/, Ca = /[\\\/_+.#"@\[\(\{&]/g, Ia = /[\s-]/, _r = /[\s-]/g;
2012
- function at(e, r, t, n, o, i, a) {
2013
- if (i === r.length) return o === e.length ? gt : Sa;
2014
- var c = `${o},${i}`;
2015
- if (a[c] !== void 0) return a[c];
2016
- for (var u = n.charAt(i), d = t.indexOf(u, o), p = 0, f, x, g, w; d >= 0; ) f = at(e, r, t, n, d + 1, i + 1, a), f > p && (d === o ? f *= gt : ya.test(e.charAt(d - 1)) ? (f *= ga, g = e.slice(o, d - 1).match(Ca), g && o > 0 && (f *= Math.pow(Ze, g.length))) : Ia.test(e.charAt(d - 1)) ? (f *= xa, w = e.slice(o, d - 1).match(_r), w && o > 0 && (f *= Math.pow(Ze, w.length))) : (f *= ba, o > 0 && (f *= Math.pow(Ze, d - o))), e.charAt(d) !== r.charAt(i) && (f *= wa)), (f < Xe && t.charAt(d - 1) === n.charAt(i + 1) || n.charAt(i + 1) === n.charAt(i) && t.charAt(d - 1) !== n.charAt(i)) && (x = at(e, r, t, n, d + 1, i + 2, a), x * Xe > f && (f = x * Xe)), f > p && (p = f), d = t.indexOf(u, d + 1);
2017
- return a[c] = p, p;
2011
+ var gt = 1, xa = 0.9, ga = 0.8, ba = 0.17, Xe = 0.1, Ze = 0.999, wa = 0.9999, Sa = 0.99, ya = /[\\\/_+.#"@\[\(\{&]/, Ca = /[\\\/_+.#"@\[\(\{&]/g, Ia = /[\s-]/, Nr = /[\s-]/g;
2012
+ function at(e, r, t, o, n, a, s) {
2013
+ if (a === r.length) return n === e.length ? gt : Sa;
2014
+ var c = `${n},${a}`;
2015
+ if (s[c] !== void 0) return s[c];
2016
+ for (var d = o.charAt(a), u = t.indexOf(d, n), p = 0, f, x, g, w; u >= 0; ) f = at(e, r, t, o, u + 1, a + 1, s), f > p && (u === n ? f *= gt : ya.test(e.charAt(u - 1)) ? (f *= ga, g = e.slice(n, u - 1).match(Ca), g && n > 0 && (f *= Math.pow(Ze, g.length))) : Ia.test(e.charAt(u - 1)) ? (f *= xa, w = e.slice(n, u - 1).match(Nr), w && n > 0 && (f *= Math.pow(Ze, w.length))) : (f *= ba, n > 0 && (f *= Math.pow(Ze, u - n))), e.charAt(u) !== r.charAt(a) && (f *= wa)), (f < Xe && t.charAt(u - 1) === o.charAt(a + 1) || o.charAt(a + 1) === o.charAt(a) && t.charAt(u - 1) !== o.charAt(a)) && (x = at(e, r, t, o, u + 1, a + 2, s), x * Xe > f && (f = x * Xe)), f > p && (p = f), u = t.indexOf(d, u + 1);
2017
+ return s[c] = p, p;
2018
2018
  }
2019
2019
  function bt(e) {
2020
- return e.toLowerCase().replace(_r, " ");
2020
+ return e.toLowerCase().replace(Nr, " ");
2021
2021
  }
2022
2022
  function Ra(e, r, t) {
2023
2023
  return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, at(e, r, bt(e), bt(r), 0, 0, {});
2024
2024
  }
2025
- var Ce = '[cmdk-group=""]', Je = '[cmdk-group-items=""]', ka = '[cmdk-group-heading=""]', Pr = '[cmdk-item=""]', wt = `${Pr}:not([aria-disabled="true"])`, st = "cmdk-item-select", ge = "data-value", Ea = (e, r, t) => Ra(e, r, t), Tr = l.createContext(void 0), Ne = () => l.useContext(Tr), Mr = l.createContext(void 0), ht = () => l.useContext(Mr), Ar = l.createContext(void 0), Dr = l.forwardRef((e, r) => {
2025
+ var Ce = '[cmdk-group=""]', Je = '[cmdk-group-items=""]', ka = '[cmdk-group-heading=""]', Pr = '[cmdk-item=""]', wt = `${Pr}:not([aria-disabled="true"])`, st = "cmdk-item-select", ge = "data-value", Ea = (e, r, t) => Ra(e, r, t), Tr = l.createContext(void 0), _e = () => l.useContext(Tr), Mr = l.createContext(void 0), ht = () => l.useContext(Mr), Ar = l.createContext(void 0), Dr = l.forwardRef((e, r) => {
2026
2026
  let t = be(() => {
2027
2027
  var h, k;
2028
2028
  return { search: "", value: (k = (h = e.value) != null ? h : e.defaultValue) != null ? k : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
2029
- }), n = be(() => /* @__PURE__ */ new Set()), o = be(() => /* @__PURE__ */ new Map()), i = be(() => /* @__PURE__ */ new Map()), a = be(() => /* @__PURE__ */ new Set()), c = Or(e), { label: u, children: d, value: p, onValueChange: f, filter: x, shouldFilter: g, loop: w, disablePointerSelection: m = !1, vimBindings: v = !0, ...b } = e, S = te(), y = te(), R = te(), D = l.useRef(null), P = La();
2029
+ }), o = be(() => /* @__PURE__ */ new Set()), n = be(() => /* @__PURE__ */ new Map()), a = be(() => /* @__PURE__ */ new Map()), s = be(() => /* @__PURE__ */ new Set()), c = Lr(e), { label: d, children: u, value: p, onValueChange: f, filter: x, shouldFilter: g, loop: w, disablePointerSelection: m = !1, vimBindings: v = !0, ...b } = e, S = te(), y = te(), R = te(), D = l.useRef(null), T = Fa();
2030
2030
  he(() => {
2031
2031
  if (p !== void 0) {
2032
2032
  let h = p.trim();
2033
2033
  t.current.value = h, j.emit();
2034
2034
  }
2035
2035
  }, [p]), he(() => {
2036
- P(6, X);
2036
+ T(6, X);
2037
2037
  }, []);
2038
- let j = l.useMemo(() => ({ subscribe: (h) => (a.current.add(h), () => a.current.delete(h)), snapshot: () => t.current, setState: (h, k, E) => {
2039
- var I, T, C, M;
2038
+ let j = l.useMemo(() => ({ subscribe: (h) => (s.current.add(h), () => s.current.delete(h)), snapshot: () => t.current, setState: (h, k, E) => {
2039
+ var I, M, C, A;
2040
2040
  if (!Object.is(t.current[h], k)) {
2041
- if (t.current[h] = k, h === "search") K(), z(), P(1, O);
2041
+ if (t.current[h] = k, h === "search") K(), z(), T(1, L);
2042
2042
  else if (h === "value") {
2043
2043
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
2044
2044
  let B = document.getElementById(R);
2045
2045
  B ? B.focus() : (I = document.getElementById(S)) == null || I.focus();
2046
2046
  }
2047
- if (P(7, () => {
2047
+ if (T(7, () => {
2048
2048
  var B;
2049
2049
  t.current.selectedItemId = (B = W()) == null ? void 0 : B.id, j.emit();
2050
- }), E || P(5, X), ((T = c.current) == null ? void 0 : T.value) !== void 0) {
2050
+ }), E || T(5, X), ((M = c.current) == null ? void 0 : M.value) !== void 0) {
2051
2051
  let B = k ?? "";
2052
- (M = (C = c.current).onValueChange) == null || M.call(C, B);
2052
+ (A = (C = c.current).onValueChange) == null || A.call(C, B);
2053
2053
  return;
2054
2054
  }
2055
2055
  }
2056
2056
  j.emit();
2057
2057
  }
2058
2058
  }, emit: () => {
2059
- a.current.forEach((h) => h());
2060
- } }), []), L = l.useMemo(() => ({ value: (h, k, E) => {
2059
+ s.current.forEach((h) => h());
2060
+ } }), []), F = l.useMemo(() => ({ value: (h, k, E) => {
2061
2061
  var I;
2062
- k !== ((I = i.current.get(h)) == null ? void 0 : I.value) && (i.current.set(h, { value: k, keywords: E }), t.current.filtered.items.set(h, Z(k, E)), P(2, () => {
2062
+ k !== ((I = a.current.get(h)) == null ? void 0 : I.value) && (a.current.set(h, { value: k, keywords: E }), t.current.filtered.items.set(h, Z(k, E)), T(2, () => {
2063
2063
  z(), j.emit();
2064
2064
  }));
2065
- }, item: (h, k) => (n.current.add(h), k && (o.current.has(k) ? o.current.get(k).add(h) : o.current.set(k, /* @__PURE__ */ new Set([h]))), P(3, () => {
2066
- K(), z(), t.current.value || O(), j.emit();
2065
+ }, item: (h, k) => (o.current.add(h), k && (n.current.has(k) ? n.current.get(k).add(h) : n.current.set(k, /* @__PURE__ */ new Set([h]))), T(3, () => {
2066
+ K(), z(), t.current.value || L(), j.emit();
2067
2067
  }), () => {
2068
- i.current.delete(h), n.current.delete(h), t.current.filtered.items.delete(h);
2068
+ a.current.delete(h), o.current.delete(h), t.current.filtered.items.delete(h);
2069
2069
  let E = W();
2070
- P(4, () => {
2071
- K(), E?.getAttribute("id") === h && O(), j.emit();
2070
+ T(4, () => {
2071
+ K(), E?.getAttribute("id") === h && L(), j.emit();
2072
2072
  });
2073
- }), group: (h) => (o.current.has(h) || o.current.set(h, /* @__PURE__ */ new Set()), () => {
2074
- i.current.delete(h), o.current.delete(h);
2075
- }), filter: () => c.current.shouldFilter, label: u || e["aria-label"], getDisablePointerSelection: () => c.current.disablePointerSelection, listId: S, inputId: R, labelId: y, listInnerRef: D }), []);
2073
+ }), group: (h) => (n.current.has(h) || n.current.set(h, /* @__PURE__ */ new Set()), () => {
2074
+ a.current.delete(h), n.current.delete(h);
2075
+ }), filter: () => c.current.shouldFilter, label: d || e["aria-label"], getDisablePointerSelection: () => c.current.disablePointerSelection, listId: S, inputId: R, labelId: y, listInnerRef: D }), []);
2076
2076
  function Z(h, k) {
2077
2077
  var E, I;
2078
- let T = (I = (E = c.current) == null ? void 0 : E.filter) != null ? I : Ea;
2079
- return h ? T(h, t.current.search, k) : 0;
2078
+ let M = (I = (E = c.current) == null ? void 0 : E.filter) != null ? I : Ea;
2079
+ return h ? M(h, t.current.search, k) : 0;
2080
2080
  }
2081
2081
  function z() {
2082
2082
  if (!t.current.search || c.current.shouldFilter === !1) return;
2083
2083
  let h = t.current.filtered.items, k = [];
2084
2084
  t.current.filtered.groups.forEach((I) => {
2085
- let T = o.current.get(I), C = 0;
2086
- T.forEach((M) => {
2087
- let B = h.get(M);
2085
+ let M = n.current.get(I), C = 0;
2086
+ M.forEach((A) => {
2087
+ let B = h.get(A);
2088
2088
  C = Math.max(B, C);
2089
2089
  }), k.push([I, C]);
2090
2090
  });
2091
2091
  let E = D.current;
2092
- U().sort((I, T) => {
2093
- var C, M;
2094
- let B = I.getAttribute("id"), $ = T.getAttribute("id");
2095
- return ((C = h.get($)) != null ? C : 0) - ((M = h.get(B)) != null ? M : 0);
2092
+ U().sort((I, M) => {
2093
+ var C, A;
2094
+ let B = I.getAttribute("id"), $ = M.getAttribute("id");
2095
+ return ((C = h.get($)) != null ? C : 0) - ((A = h.get(B)) != null ? A : 0);
2096
2096
  }).forEach((I) => {
2097
- let T = I.closest(Je);
2098
- T ? T.appendChild(I.parentElement === T ? I : I.closest(`${Je} > *`)) : E.appendChild(I.parentElement === E ? I : I.closest(`${Je} > *`));
2099
- }), k.sort((I, T) => T[1] - I[1]).forEach((I) => {
2100
- var T;
2101
- let C = (T = D.current) == null ? void 0 : T.querySelector(`${Ce}[${ge}="${encodeURIComponent(I[0])}"]`);
2097
+ let M = I.closest(Je);
2098
+ M ? M.appendChild(I.parentElement === M ? I : I.closest(`${Je} > *`)) : E.appendChild(I.parentElement === E ? I : I.closest(`${Je} > *`));
2099
+ }), k.sort((I, M) => M[1] - I[1]).forEach((I) => {
2100
+ var M;
2101
+ let C = (M = D.current) == null ? void 0 : M.querySelector(`${Ce}[${ge}="${encodeURIComponent(I[0])}"]`);
2102
2102
  C?.parentElement.appendChild(C);
2103
2103
  });
2104
2104
  }
2105
- function O() {
2105
+ function L() {
2106
2106
  let h = U().find((E) => E.getAttribute("aria-disabled") !== "true"), k = h?.getAttribute(ge);
2107
2107
  j.setState("value", k || void 0);
2108
2108
  }
2109
2109
  function K() {
2110
2110
  var h, k, E, I;
2111
2111
  if (!t.current.search || c.current.shouldFilter === !1) {
2112
- t.current.filtered.count = n.current.size;
2112
+ t.current.filtered.count = o.current.size;
2113
2113
  return;
2114
2114
  }
2115
2115
  t.current.filtered.groups = /* @__PURE__ */ new Set();
2116
- let T = 0;
2117
- for (let C of n.current) {
2118
- let M = (k = (h = i.current.get(C)) == null ? void 0 : h.value) != null ? k : "", B = (I = (E = i.current.get(C)) == null ? void 0 : E.keywords) != null ? I : [], $ = Z(M, B);
2119
- t.current.filtered.items.set(C, $), $ > 0 && T++;
2116
+ let M = 0;
2117
+ for (let C of o.current) {
2118
+ let A = (k = (h = a.current.get(C)) == null ? void 0 : h.value) != null ? k : "", B = (I = (E = a.current.get(C)) == null ? void 0 : E.keywords) != null ? I : [], $ = Z(A, B);
2119
+ t.current.filtered.items.set(C, $), $ > 0 && M++;
2120
2120
  }
2121
- for (let [C, M] of o.current) for (let B of M) if (t.current.filtered.items.get(B) > 0) {
2121
+ for (let [C, A] of n.current) for (let B of A) if (t.current.filtered.items.get(B) > 0) {
2122
2122
  t.current.filtered.groups.add(C);
2123
2123
  break;
2124
2124
  }
2125
- t.current.filtered.count = T;
2125
+ t.current.filtered.count = M;
2126
2126
  }
2127
2127
  function X() {
2128
2128
  var h, k, E;
@@ -2137,26 +2137,26 @@ var Ce = '[cmdk-group=""]', Je = '[cmdk-group-items=""]', ka = '[cmdk-group-head
2137
2137
  var h;
2138
2138
  return Array.from(((h = D.current) == null ? void 0 : h.querySelectorAll(wt)) || []);
2139
2139
  }
2140
- function F(h) {
2140
+ function O(h) {
2141
2141
  let k = U()[h];
2142
2142
  k && j.setState("value", k.getAttribute(ge));
2143
2143
  }
2144
2144
  function G(h) {
2145
2145
  var k;
2146
- let E = W(), I = U(), T = I.findIndex((M) => M === E), C = I[T + h];
2147
- (k = c.current) != null && k.loop && (C = T + h < 0 ? I[I.length - 1] : T + h === I.length ? I[0] : I[T + h]), C && j.setState("value", C.getAttribute(ge));
2146
+ let E = W(), I = U(), M = I.findIndex((A) => A === E), C = I[M + h];
2147
+ (k = c.current) != null && k.loop && (C = M + h < 0 ? I[I.length - 1] : M + h === I.length ? I[0] : I[M + h]), C && j.setState("value", C.getAttribute(ge));
2148
2148
  }
2149
2149
  function q(h) {
2150
2150
  let k = W(), E = k?.closest(Ce), I;
2151
- for (; E && !I; ) E = h > 0 ? Oa(E, Ce) : Fa(E, Ce), I = E?.querySelector(wt);
2151
+ for (; E && !I; ) E = h > 0 ? La(E, Ce) : Oa(E, Ce), I = E?.querySelector(wt);
2152
2152
  I ? j.setState("value", I.getAttribute(ge)) : G(h);
2153
2153
  }
2154
- let J = () => F(U().length - 1), xe = (h) => {
2154
+ let J = () => O(U().length - 1), xe = (h) => {
2155
2155
  h.preventDefault(), h.metaKey ? J() : h.altKey ? q(1) : G(1);
2156
2156
  }, ce = (h) => {
2157
- h.preventDefault(), h.metaKey ? F(0) : h.altKey ? q(-1) : G(-1);
2157
+ h.preventDefault(), h.metaKey ? O(0) : h.altKey ? q(-1) : G(-1);
2158
2158
  };
2159
- return l.createElement(N.div, { ref: r, tabIndex: -1, ...b, "cmdk-root": "", onKeyDown: (h) => {
2159
+ return l.createElement(_.div, { ref: r, tabIndex: -1, ...b, "cmdk-root": "", onKeyDown: (h) => {
2160
2160
  var k;
2161
2161
  (k = b.onKeyDown) == null || k.call(b, h);
2162
2162
  let E = h.nativeEvent.isComposing || h.keyCode === 229;
@@ -2180,7 +2180,7 @@ var Ce = '[cmdk-group=""]', Je = '[cmdk-group-items=""]', ka = '[cmdk-group-head
2180
2180
  break;
2181
2181
  }
2182
2182
  case "Home": {
2183
- h.preventDefault(), F(0);
2183
+ h.preventDefault(), O(0);
2184
2184
  break;
2185
2185
  }
2186
2186
  case "End": {
@@ -2191,85 +2191,85 @@ var Ce = '[cmdk-group=""]', Je = '[cmdk-group-items=""]', ka = '[cmdk-group-head
2191
2191
  h.preventDefault();
2192
2192
  let I = W();
2193
2193
  if (I) {
2194
- let T = new Event(st);
2195
- I.dispatchEvent(T);
2194
+ let M = new Event(st);
2195
+ I.dispatchEvent(M);
2196
2196
  }
2197
2197
  }
2198
2198
  }
2199
- } }, l.createElement("label", { "cmdk-label": "", htmlFor: L.inputId, id: L.labelId, style: $a }, u), Ke(e, (h) => l.createElement(Mr.Provider, { value: j }, l.createElement(Tr.Provider, { value: L }, h))));
2199
+ } }, l.createElement("label", { "cmdk-label": "", htmlFor: F.inputId, id: F.labelId, style: $a }, d), Ke(e, (h) => l.createElement(Mr.Provider, { value: j }, l.createElement(Tr.Provider, { value: F }, h))));
2200
2200
  }), ja = l.forwardRef((e, r) => {
2201
- var t, n;
2202
- let o = te(), i = l.useRef(null), a = l.useContext(Ar), c = Ne(), u = Or(e), d = (n = (t = u.current) == null ? void 0 : t.forceMount) != null ? n : a?.forceMount;
2201
+ var t, o;
2202
+ let n = te(), a = l.useRef(null), s = l.useContext(Ar), c = _e(), d = Lr(e), u = (o = (t = d.current) == null ? void 0 : t.forceMount) != null ? o : s?.forceMount;
2203
2203
  he(() => {
2204
- if (!d) return c.item(o, a?.id);
2205
- }, [d]);
2206
- let p = Fr(o, i, [e.value, e.children, i], e.keywords), f = ht(), x = se((P) => P.value && P.value === p.current), g = se((P) => d || c.filter() === !1 ? !0 : P.search ? P.filtered.items.get(o) > 0 : !0);
2204
+ if (!u) return c.item(n, s?.id);
2205
+ }, [u]);
2206
+ let p = Or(n, a, [e.value, e.children, a], e.keywords), f = ht(), x = se((T) => T.value && T.value === p.current), g = se((T) => u || c.filter() === !1 ? !0 : T.search ? T.filtered.items.get(n) > 0 : !0);
2207
2207
  l.useEffect(() => {
2208
- let P = i.current;
2209
- if (!(!P || e.disabled)) return P.addEventListener(st, w), () => P.removeEventListener(st, w);
2208
+ let T = a.current;
2209
+ if (!(!T || e.disabled)) return T.addEventListener(st, w), () => T.removeEventListener(st, w);
2210
2210
  }, [g, e.onSelect, e.disabled]);
2211
2211
  function w() {
2212
- var P, j;
2213
- m(), (j = (P = u.current).onSelect) == null || j.call(P, p.current);
2212
+ var T, j;
2213
+ m(), (j = (T = d.current).onSelect) == null || j.call(T, p.current);
2214
2214
  }
2215
2215
  function m() {
2216
2216
  f.setState("value", p.current, !0);
2217
2217
  }
2218
2218
  if (!g) return null;
2219
2219
  let { disabled: v, value: b, onSelect: S, forceMount: y, keywords: R, ...D } = e;
2220
- return l.createElement(N.div, { ref: Re(i, r), ...D, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!v, "aria-selected": !!x, "data-disabled": !!v, "data-selected": !!x, onPointerMove: v || c.getDisablePointerSelection() ? void 0 : m, onClick: v ? void 0 : w }, e.children);
2221
- }), Na = l.forwardRef((e, r) => {
2222
- let { heading: t, children: n, forceMount: o, ...i } = e, a = te(), c = l.useRef(null), u = l.useRef(null), d = te(), p = Ne(), f = se((g) => o || p.filter() === !1 ? !0 : g.search ? g.filtered.groups.has(a) : !0);
2223
- he(() => p.group(a), []), Fr(a, c, [e.value, e.heading, u]);
2224
- let x = l.useMemo(() => ({ id: a, forceMount: o }), [o]);
2225
- return l.createElement(N.div, { ref: Re(c, r), ...i, "cmdk-group": "", role: "presentation", hidden: f ? void 0 : !0 }, t && l.createElement("div", { ref: u, "cmdk-group-heading": "", "aria-hidden": !0, id: d }, t), Ke(e, (g) => l.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? d : void 0 }, l.createElement(Ar.Provider, { value: x }, g))));
2220
+ return l.createElement(_.div, { ref: Re(a, r), ...D, id: n, "cmdk-item": "", role: "option", "aria-disabled": !!v, "aria-selected": !!x, "data-disabled": !!v, "data-selected": !!x, onPointerMove: v || c.getDisablePointerSelection() ? void 0 : m, onClick: v ? void 0 : w }, e.children);
2226
2221
  }), _a = l.forwardRef((e, r) => {
2227
- let { alwaysRender: t, ...n } = e, o = l.useRef(null), i = se((a) => !a.search);
2228
- return !t && !i ? null : l.createElement(N.div, { ref: Re(o, r), ...n, "cmdk-separator": "", role: "separator" });
2222
+ let { heading: t, children: o, forceMount: n, ...a } = e, s = te(), c = l.useRef(null), d = l.useRef(null), u = te(), p = _e(), f = se((g) => n || p.filter() === !1 ? !0 : g.search ? g.filtered.groups.has(s) : !0);
2223
+ he(() => p.group(s), []), Or(s, c, [e.value, e.heading, d]);
2224
+ let x = l.useMemo(() => ({ id: s, forceMount: n }), [n]);
2225
+ return l.createElement(_.div, { ref: Re(c, r), ...a, "cmdk-group": "", role: "presentation", hidden: f ? void 0 : !0 }, t && l.createElement("div", { ref: d, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, t), Ke(e, (g) => l.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? u : void 0 }, l.createElement(Ar.Provider, { value: x }, g))));
2226
+ }), Na = l.forwardRef((e, r) => {
2227
+ let { alwaysRender: t, ...o } = e, n = l.useRef(null), a = se((s) => !s.search);
2228
+ return !t && !a ? null : l.createElement(_.div, { ref: Re(n, r), ...o, "cmdk-separator": "", role: "separator" });
2229
2229
  }), Pa = l.forwardRef((e, r) => {
2230
- let { onValueChange: t, ...n } = e, o = e.value != null, i = ht(), a = se((d) => d.search), c = se((d) => d.selectedItemId), u = Ne();
2230
+ let { onValueChange: t, ...o } = e, n = e.value != null, a = ht(), s = se((u) => u.search), c = se((u) => u.selectedItemId), d = _e();
2231
2231
  return l.useEffect(() => {
2232
- e.value != null && i.setState("search", e.value);
2233
- }, [e.value]), l.createElement(N.input, { ref: r, ...n, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": u.listId, "aria-labelledby": u.labelId, "aria-activedescendant": c, id: u.inputId, type: "text", value: o ? e.value : a, onChange: (d) => {
2234
- o || i.setState("search", d.target.value), t?.(d.target.value);
2232
+ e.value != null && a.setState("search", e.value);
2233
+ }, [e.value]), l.createElement(_.input, { ref: r, ...o, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": d.listId, "aria-labelledby": d.labelId, "aria-activedescendant": c, id: d.inputId, type: "text", value: n ? e.value : s, onChange: (u) => {
2234
+ n || a.setState("search", u.target.value), t?.(u.target.value);
2235
2235
  } });
2236
2236
  }), Ta = l.forwardRef((e, r) => {
2237
- let { children: t, label: n = "Suggestions", ...o } = e, i = l.useRef(null), a = l.useRef(null), c = se((d) => d.selectedItemId), u = Ne();
2237
+ let { children: t, label: o = "Suggestions", ...n } = e, a = l.useRef(null), s = l.useRef(null), c = se((u) => u.selectedItemId), d = _e();
2238
2238
  return l.useEffect(() => {
2239
- if (a.current && i.current) {
2240
- let d = a.current, p = i.current, f, x = new ResizeObserver(() => {
2239
+ if (s.current && a.current) {
2240
+ let u = s.current, p = a.current, f, x = new ResizeObserver(() => {
2241
2241
  f = requestAnimationFrame(() => {
2242
- let g = d.offsetHeight;
2242
+ let g = u.offsetHeight;
2243
2243
  p.style.setProperty("--cmdk-list-height", g.toFixed(1) + "px");
2244
2244
  });
2245
2245
  });
2246
- return x.observe(d), () => {
2247
- cancelAnimationFrame(f), x.unobserve(d);
2246
+ return x.observe(u), () => {
2247
+ cancelAnimationFrame(f), x.unobserve(u);
2248
2248
  };
2249
2249
  }
2250
- }, []), l.createElement(N.div, { ref: Re(i, r), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": c, "aria-label": n, id: u.listId }, Ke(e, (d) => l.createElement("div", { ref: Re(a, u.listInnerRef), "cmdk-list-sizer": "" }, d)));
2250
+ }, []), l.createElement(_.div, { ref: Re(a, r), ...n, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": c, "aria-label": o, id: d.listId }, Ke(e, (u) => l.createElement("div", { ref: Re(s, d.listInnerRef), "cmdk-list-sizer": "" }, u)));
2251
2251
  }), Ma = l.forwardRef((e, r) => {
2252
- let { open: t, onOpenChange: n, overlayClassName: o, contentClassName: i, container: a, ...c } = e;
2253
- return l.createElement(Cn, { open: t, onOpenChange: n }, l.createElement(In, { container: a }, l.createElement(Rn, { "cmdk-overlay": "", className: o }), l.createElement(kn, { "aria-label": e.label, "cmdk-dialog": "", className: i }, l.createElement(Dr, { ref: r, ...c }))));
2254
- }), Aa = l.forwardRef((e, r) => se((t) => t.filtered.count === 0) ? l.createElement(N.div, { ref: r, ...e, "cmdk-empty": "", role: "presentation" }) : null), Da = l.forwardRef((e, r) => {
2255
- let { progress: t, children: n, label: o = "Loading...", ...i } = e;
2256
- return l.createElement(N.div, { ref: r, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, Ke(e, (a) => l.createElement("div", { "aria-hidden": !0 }, a)));
2257
- }), Se = Object.assign(Dr, { List: Ta, Item: ja, Input: Pa, Group: Na, Separator: _a, Dialog: Ma, Empty: Aa, Loading: Da });
2258
- function Oa(e, r) {
2252
+ let { open: t, onOpenChange: o, overlayClassName: n, contentClassName: a, container: s, ...c } = e;
2253
+ return l.createElement(Cn, { open: t, onOpenChange: o }, l.createElement(In, { container: s }, l.createElement(Rn, { "cmdk-overlay": "", className: n }), l.createElement(kn, { "aria-label": e.label, "cmdk-dialog": "", className: a }, l.createElement(Dr, { ref: r, ...c }))));
2254
+ }), Aa = l.forwardRef((e, r) => se((t) => t.filtered.count === 0) ? l.createElement(_.div, { ref: r, ...e, "cmdk-empty": "", role: "presentation" }) : null), Da = l.forwardRef((e, r) => {
2255
+ let { progress: t, children: o, label: n = "Loading...", ...a } = e;
2256
+ return l.createElement(_.div, { ref: r, ...a, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": n }, Ke(e, (s) => l.createElement("div", { "aria-hidden": !0 }, s)));
2257
+ }), Se = Object.assign(Dr, { List: Ta, Item: ja, Input: Pa, Group: _a, Separator: Na, Dialog: Ma, Empty: Aa, Loading: Da });
2258
+ function La(e, r) {
2259
2259
  let t = e.nextElementSibling;
2260
2260
  for (; t; ) {
2261
2261
  if (t.matches(r)) return t;
2262
2262
  t = t.nextElementSibling;
2263
2263
  }
2264
2264
  }
2265
- function Fa(e, r) {
2265
+ function Oa(e, r) {
2266
2266
  let t = e.previousElementSibling;
2267
2267
  for (; t; ) {
2268
2268
  if (t.matches(r)) return t;
2269
2269
  t = t.previousElementSibling;
2270
2270
  }
2271
2271
  }
2272
- function Or(e) {
2272
+ function Lr(e) {
2273
2273
  let r = l.useRef(e);
2274
2274
  return he(() => {
2275
2275
  r.current = e;
@@ -2284,26 +2284,26 @@ function se(e) {
2284
2284
  let r = ht(), t = () => e(r.snapshot());
2285
2285
  return l.useSyncExternalStore(r.subscribe, t, t);
2286
2286
  }
2287
- function Fr(e, r, t, n = []) {
2288
- let o = l.useRef(), i = Ne();
2287
+ function Or(e, r, t, o = []) {
2288
+ let n = l.useRef(), a = _e();
2289
2289
  return he(() => {
2290
- var a;
2290
+ var s;
2291
2291
  let c = (() => {
2292
- var d;
2292
+ var u;
2293
2293
  for (let p of t) {
2294
2294
  if (typeof p == "string") return p.trim();
2295
- if (typeof p == "object" && "current" in p) return p.current ? (d = p.current.textContent) == null ? void 0 : d.trim() : o.current;
2295
+ if (typeof p == "object" && "current" in p) return p.current ? (u = p.current.textContent) == null ? void 0 : u.trim() : n.current;
2296
2296
  }
2297
- })(), u = n.map((d) => d.trim());
2298
- i.value(e, c, u), (a = r.current) == null || a.setAttribute(ge, c), o.current = c;
2299
- }), o;
2297
+ })(), d = o.map((u) => u.trim());
2298
+ a.value(e, c, d), (s = r.current) == null || s.setAttribute(ge, c), n.current = c;
2299
+ }), n;
2300
2300
  }
2301
- var La = () => {
2301
+ var Fa = () => {
2302
2302
  let [e, r] = l.useState(), t = be(() => /* @__PURE__ */ new Map());
2303
2303
  return he(() => {
2304
- t.current.forEach((n) => n()), t.current = /* @__PURE__ */ new Map();
2305
- }, [e]), (n, o) => {
2306
- t.current.set(n, o), r({});
2304
+ t.current.forEach((o) => o()), t.current = /* @__PURE__ */ new Map();
2305
+ }, [e]), (o, n) => {
2306
+ t.current.set(o, n), r({});
2307
2307
  };
2308
2308
  };
2309
2309
  function Ba(e) {
@@ -2315,10 +2315,10 @@ function Ke({ asChild: e, children: r }, t) {
2315
2315
  }
2316
2316
  var $a = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
2317
2317
  function Va({ className: e, ...r }) {
2318
- return /* @__PURE__ */ s.jsx(
2318
+ return /* @__PURE__ */ i.jsx(
2319
2319
  Se,
2320
2320
  {
2321
- className: A(
2321
+ className: P(
2322
2322
  "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
2323
2323
  e
2324
2324
  ),
@@ -2328,12 +2328,12 @@ function Va({ className: e, ...r }) {
2328
2328
  );
2329
2329
  }
2330
2330
  function Ka({ className: e, ...r }) {
2331
- return /* @__PURE__ */ s.jsxs("div", { className: "flex h-9 items-center gap-2 border-b px-3", "data-slot": "command-input-wrapper", children: [
2332
- /* @__PURE__ */ s.jsx(Hn, { className: "size-4 shrink-0 opacity-50" }),
2333
- /* @__PURE__ */ s.jsx(
2331
+ return /* @__PURE__ */ i.jsxs("div", { className: "flex h-9 items-center gap-2 border-b px-3", "data-slot": "command-input-wrapper", children: [
2332
+ /* @__PURE__ */ i.jsx(Hn, { className: "size-4 shrink-0 opacity-50" }),
2333
+ /* @__PURE__ */ i.jsx(
2334
2334
  Se.Input,
2335
2335
  {
2336
- className: A(
2336
+ className: P(
2337
2337
  "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
2338
2338
  e
2339
2339
  ),
@@ -2344,23 +2344,23 @@ function Ka({ className: e, ...r }) {
2344
2344
  ] });
2345
2345
  }
2346
2346
  function Ha({ className: e, ...r }) {
2347
- return /* @__PURE__ */ s.jsx(
2347
+ return /* @__PURE__ */ i.jsx(
2348
2348
  Se.List,
2349
2349
  {
2350
- className: A("max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden", e),
2350
+ className: P("max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden", e),
2351
2351
  "data-slot": "command-list",
2352
2352
  ...r
2353
2353
  }
2354
2354
  );
2355
2355
  }
2356
2356
  function Ua({ ...e }) {
2357
- return /* @__PURE__ */ s.jsx(Se.Empty, { className: "py-6 text-center text-sm", "data-slot": "command-empty", ...e });
2357
+ return /* @__PURE__ */ i.jsx(Se.Empty, { className: "py-6 text-center text-sm", "data-slot": "command-empty", ...e });
2358
2358
  }
2359
2359
  function Ga({ className: e, ...r }) {
2360
- return /* @__PURE__ */ s.jsx(
2360
+ return /* @__PURE__ */ i.jsx(
2361
2361
  Se.Group,
2362
2362
  {
2363
- className: A(
2363
+ className: P(
2364
2364
  "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs",
2365
2365
  e
2366
2366
  ),
@@ -2370,10 +2370,10 @@ function Ga({ className: e, ...r }) {
2370
2370
  );
2371
2371
  }
2372
2372
  function za({ className: e, ...r }) {
2373
- return /* @__PURE__ */ s.jsx(
2373
+ return /* @__PURE__ */ i.jsx(
2374
2374
  Se.Item,
2375
2375
  {
2376
- className: A(
2376
+ className: P(
2377
2377
  "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",
2378
2378
  e
2379
2379
  ),
@@ -2386,56 +2386,56 @@ const Wa = ({
2386
2386
  placeholder: e,
2387
2387
  selected: r,
2388
2388
  className: t,
2389
- open: n,
2390
- renderSelected: o = (i) => i.label
2391
- }) => /* @__PURE__ */ s.jsx(Rt, { asChild: !0, children: /* @__PURE__ */ s.jsxs(an, { "aria-expanded": n, className: `justify-between ${t}`, role: "combobox", variant: "outline", children: [
2392
- o(r || { label: e, value: "" }),
2393
- /* @__PURE__ */ s.jsx(Mn, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
2389
+ open: o,
2390
+ renderSelected: n = (a) => a.label
2391
+ }) => /* @__PURE__ */ i.jsx(Rt, { asChild: !0, children: /* @__PURE__ */ i.jsxs(an, { "aria-expanded": o, className: `justify-between ${t}`, role: "combobox", variant: "outline", children: [
2392
+ n(r || { label: e, value: "" }),
2393
+ /* @__PURE__ */ i.jsx(Mn, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
2394
2394
  ] }) }), Ks = ({
2395
2395
  options: e,
2396
2396
  value: r = "",
2397
2397
  placeholder: t = "Select a value...",
2398
- className: n = "",
2399
- onSelect: o = () => {
2398
+ className: o = "",
2399
+ onSelect: n = () => {
2400
2400
  },
2401
- renderSelected: i = (a) => a.label
2401
+ renderSelected: a = (s) => s.label
2402
2402
  }) => {
2403
- const [a, c] = Me(!1), u = ln(() => e.find((d) => d.value === r), [e, r]);
2404
- return /* @__PURE__ */ s.jsxs(It, { onOpenChange: c, open: a, children: [
2405
- /* @__PURE__ */ s.jsx(
2403
+ const [s, c] = Me(!1), d = ln(() => e.find((u) => u.value === r), [e, r]);
2404
+ return /* @__PURE__ */ i.jsxs(It, { onOpenChange: c, open: s, children: [
2405
+ /* @__PURE__ */ i.jsx(
2406
2406
  Wa,
2407
2407
  {
2408
- className: `w-full ${n}`,
2409
- open: a,
2408
+ className: `w-full ${o}`,
2409
+ open: s,
2410
2410
  placeholder: t,
2411
- renderSelected: i,
2412
- selected: u
2411
+ renderSelected: a,
2412
+ selected: d
2413
2413
  }
2414
2414
  ),
2415
- /* @__PURE__ */ s.jsx(kt, { className: "w-full p-0", children: /* @__PURE__ */ s.jsxs(Va, { value: r, children: [
2416
- /* @__PURE__ */ s.jsx(Ka, { "aria-label": "Search options", className: "h-9", placeholder: "Search" }),
2417
- /* @__PURE__ */ s.jsxs(Ha, { children: [
2418
- /* @__PURE__ */ s.jsx(Ua, { children: "No results found" }),
2419
- /* @__PURE__ */ s.jsx(Ga, { children: e.map((d) => /* @__PURE__ */ s.jsxs(
2415
+ /* @__PURE__ */ i.jsx(kt, { className: "w-full p-0", children: /* @__PURE__ */ i.jsxs(Va, { value: r, children: [
2416
+ /* @__PURE__ */ i.jsx(Ka, { "aria-label": "Search options", className: "h-9", placeholder: "Search" }),
2417
+ /* @__PURE__ */ i.jsxs(Ha, { children: [
2418
+ /* @__PURE__ */ i.jsx(Ua, { children: "No results found" }),
2419
+ /* @__PURE__ */ i.jsx(Ga, { children: e.map((u) => /* @__PURE__ */ i.jsxs(
2420
2420
  za,
2421
2421
  {
2422
2422
  onSelect: () => {
2423
- c(!1), o(d.value);
2423
+ c(!1), n(u.value);
2424
2424
  },
2425
- value: d.value,
2425
+ value: u.value,
2426
2426
  children: [
2427
- d.icon ? /* @__PURE__ */ s.jsx("span", { className: "mr-2", children: d.icon }) : "",
2428
- d.label,
2429
- /* @__PURE__ */ s.jsx(ut, { className: A("ml-auto", d.value === r ? "opacity-100" : "opacity-0") })
2427
+ u.icon ? /* @__PURE__ */ i.jsx("span", { className: "mr-2", children: u.icon }) : "",
2428
+ u.label,
2429
+ /* @__PURE__ */ i.jsx(ut, { className: P("ml-auto", u.value === r ? "opacity-100" : "opacity-0") })
2430
2430
  ]
2431
2431
  },
2432
- d.value
2432
+ u.value
2433
2433
  )) })
2434
2434
  ] })
2435
2435
  ] }) })
2436
2436
  ] });
2437
2437
  };
2438
- var Lr = ["PageUp", "PageDown"], Br = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], $r = {
2438
+ var Fr = ["PageUp", "PageDown"], Br = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], $r = {
2439
2439
  "from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
2440
2440
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
2441
2441
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
@@ -2446,13 +2446,13 @@ var Lr = ["PageUp", "PageDown"], Br = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2446
2446
  (e, r) => {
2447
2447
  const {
2448
2448
  name: t,
2449
- min: n = 0,
2450
- max: o = 100,
2451
- step: i = 1,
2452
- orientation: a = "horizontal",
2449
+ min: o = 0,
2450
+ max: n = 100,
2451
+ step: a = 1,
2452
+ orientation: s = "horizontal",
2453
2453
  disabled: c = !1,
2454
- minStepsBetweenThumbs: u = 0,
2455
- defaultValue: d = [n],
2454
+ minStepsBetweenThumbs: d = 0,
2455
+ defaultValue: u = [o],
2456
2456
  value: p,
2457
2457
  onValueChange: f = () => {
2458
2458
  },
@@ -2461,71 +2461,71 @@ var Lr = ["PageUp", "PageDown"], Br = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2461
2461
  inverted: g = !1,
2462
2462
  form: w,
2463
2463
  ...m
2464
- } = e, v = l.useRef(/* @__PURE__ */ new Set()), b = l.useRef(0), y = a === "horizontal" ? Za : Ja, [R = [], D] = pe({
2464
+ } = e, v = l.useRef(/* @__PURE__ */ new Set()), b = l.useRef(0), y = s === "horizontal" ? Za : Ja, [R = [], D] = pe({
2465
2465
  prop: p,
2466
- defaultProp: d,
2467
- onChange: (O) => {
2468
- [...v.current][b.current]?.focus(), f(O);
2466
+ defaultProp: u,
2467
+ onChange: (L) => {
2468
+ [...v.current][b.current]?.focus(), f(L);
2469
2469
  }
2470
- }), P = l.useRef(R);
2471
- function j(O) {
2472
- const K = ns(R, O);
2473
- z(O, K);
2470
+ }), T = l.useRef(R);
2471
+ function j(L) {
2472
+ const K = ns(R, L);
2473
+ z(L, K);
2474
2474
  }
2475
- function L(O) {
2476
- z(O, b.current);
2475
+ function F(L) {
2476
+ z(L, b.current);
2477
2477
  }
2478
2478
  function Z() {
2479
- const O = P.current[b.current];
2480
- R[b.current] !== O && x(R);
2479
+ const L = T.current[b.current];
2480
+ R[b.current] !== L && x(R);
2481
2481
  }
2482
- function z(O, K, { commit: X } = { commit: !1 }) {
2483
- const W = is(i), U = ls(Math.round((O - n) / i) * i + n, W), F = _e(U, [n, o]);
2482
+ function z(L, K, { commit: X } = { commit: !1 }) {
2483
+ const W = is(a), U = ls(Math.round((L - o) / a) * a + o, W), O = Ne(U, [o, n]);
2484
2484
  D((G = []) => {
2485
- const q = ts(G, F, K);
2486
- if (ss(q, u * i)) {
2487
- b.current = q.indexOf(F);
2485
+ const q = ts(G, O, K);
2486
+ if (ss(q, d * a)) {
2487
+ b.current = q.indexOf(O);
2488
2488
  const J = String(q) !== String(G);
2489
2489
  return J && X && x(q), J ? q : G;
2490
2490
  } else
2491
2491
  return G;
2492
2492
  });
2493
2493
  }
2494
- return /* @__PURE__ */ s.jsx(
2494
+ return /* @__PURE__ */ i.jsx(
2495
2495
  Xa,
2496
2496
  {
2497
2497
  scope: e.__scopeSlider,
2498
2498
  name: t,
2499
2499
  disabled: c,
2500
- min: n,
2501
- max: o,
2500
+ min: o,
2501
+ max: n,
2502
2502
  valueIndexToChangeRef: b,
2503
2503
  thumbs: v.current,
2504
2504
  values: R,
2505
- orientation: a,
2505
+ orientation: s,
2506
2506
  form: w,
2507
- children: /* @__PURE__ */ s.jsx(it.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ s.jsx(it.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ s.jsx(
2507
+ children: /* @__PURE__ */ i.jsx(it.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ i.jsx(it.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ i.jsx(
2508
2508
  y,
2509
2509
  {
2510
2510
  "aria-disabled": c,
2511
2511
  "data-disabled": c ? "" : void 0,
2512
2512
  ...m,
2513
2513
  ref: r,
2514
- onPointerDown: _(m.onPointerDown, () => {
2515
- c || (P.current = R);
2514
+ onPointerDown: N(m.onPointerDown, () => {
2515
+ c || (T.current = R);
2516
2516
  }),
2517
- min: n,
2518
- max: o,
2517
+ min: o,
2518
+ max: n,
2519
2519
  inverted: g,
2520
2520
  onSlideStart: c ? void 0 : j,
2521
- onSlideMove: c ? void 0 : L,
2521
+ onSlideMove: c ? void 0 : F,
2522
2522
  onSlideEnd: c ? void 0 : Z,
2523
- onHomeKeyDown: () => !c && z(n, 0, { commit: !0 }),
2524
- onEndKeyDown: () => !c && z(o, R.length - 1, { commit: !0 }),
2525
- onStepKeyDown: ({ event: O, direction: K }) => {
2523
+ onHomeKeyDown: () => !c && z(o, 0, { commit: !0 }),
2524
+ onEndKeyDown: () => !c && z(n, R.length - 1, { commit: !0 }),
2525
+ onStepKeyDown: ({ event: L, direction: K }) => {
2526
2526
  if (!c) {
2527
- const U = Lr.includes(O.key) || O.shiftKey && Br.includes(O.key) ? 10 : 1, F = b.current, G = R[F], q = i * U * K;
2528
- z(G + q, F, { commit: !0 });
2527
+ const U = Fr.includes(L.key) || L.shiftKey && Br.includes(L.key) ? 10 : 1, O = b.current, G = R[O], q = a * U * K;
2528
+ z(G + q, O, { commit: !0 });
2529
2529
  }
2530
2530
  }
2531
2531
  }
@@ -2544,20 +2544,20 @@ var [Hr, Ur] = Vr(ye, {
2544
2544
  (e, r) => {
2545
2545
  const {
2546
2546
  min: t,
2547
- max: n,
2548
- dir: o,
2549
- inverted: i,
2550
- onSlideStart: a,
2547
+ max: o,
2548
+ dir: n,
2549
+ inverted: a,
2550
+ onSlideStart: s,
2551
2551
  onSlideMove: c,
2552
- onSlideEnd: u,
2553
- onStepKeyDown: d,
2552
+ onSlideEnd: d,
2553
+ onStepKeyDown: u,
2554
2554
  ...p
2555
- } = e, [f, x] = l.useState(null), g = V(r, (y) => x(y)), w = l.useRef(void 0), m = De(o), v = m === "ltr", b = v && !i || !v && i;
2555
+ } = e, [f, x] = l.useState(null), g = V(r, (y) => x(y)), w = l.useRef(void 0), m = De(n), v = m === "ltr", b = v && !a || !v && a;
2556
2556
  function S(y) {
2557
- const R = w.current || f.getBoundingClientRect(), D = [0, R.width], j = vt(D, b ? [t, n] : [n, t]);
2557
+ const R = w.current || f.getBoundingClientRect(), D = [0, R.width], j = vt(D, b ? [t, o] : [o, t]);
2558
2558
  return w.current = R, j(y - R.left);
2559
2559
  }
2560
- return /* @__PURE__ */ s.jsx(
2560
+ return /* @__PURE__ */ i.jsx(
2561
2561
  Hr,
2562
2562
  {
2563
2563
  scope: e.__scopeSlider,
@@ -2565,7 +2565,7 @@ var [Hr, Ur] = Vr(ye, {
2565
2565
  endEdge: b ? "right" : "left",
2566
2566
  direction: b ? 1 : -1,
2567
2567
  size: "width",
2568
- children: /* @__PURE__ */ s.jsx(
2568
+ children: /* @__PURE__ */ i.jsx(
2569
2569
  Gr,
2570
2570
  {
2571
2571
  dir: m,
@@ -2578,18 +2578,18 @@ var [Hr, Ur] = Vr(ye, {
2578
2578
  },
2579
2579
  onSlideStart: (y) => {
2580
2580
  const R = S(y.clientX);
2581
- a?.(R);
2581
+ s?.(R);
2582
2582
  },
2583
2583
  onSlideMove: (y) => {
2584
2584
  const R = S(y.clientX);
2585
2585
  c?.(R);
2586
2586
  },
2587
2587
  onSlideEnd: () => {
2588
- w.current = void 0, u?.();
2588
+ w.current = void 0, d?.();
2589
2589
  },
2590
2590
  onStepKeyDown: (y) => {
2591
2591
  const D = $r[b ? "from-left" : "from-right"].includes(y.key);
2592
- d?.({ event: y, direction: D ? -1 : 1 });
2592
+ u?.({ event: y, direction: D ? -1 : 1 });
2593
2593
  }
2594
2594
  }
2595
2595
  )
@@ -2600,19 +2600,19 @@ var [Hr, Ur] = Vr(ye, {
2600
2600
  (e, r) => {
2601
2601
  const {
2602
2602
  min: t,
2603
- max: n,
2604
- inverted: o,
2605
- onSlideStart: i,
2606
- onSlideMove: a,
2603
+ max: o,
2604
+ inverted: n,
2605
+ onSlideStart: a,
2606
+ onSlideMove: s,
2607
2607
  onSlideEnd: c,
2608
- onStepKeyDown: u,
2609
- ...d
2610
- } = e, p = l.useRef(null), f = V(r, p), x = l.useRef(void 0), g = !o;
2608
+ onStepKeyDown: d,
2609
+ ...u
2610
+ } = e, p = l.useRef(null), f = V(r, p), x = l.useRef(void 0), g = !n;
2611
2611
  function w(m) {
2612
- const v = x.current || p.current.getBoundingClientRect(), b = [0, v.height], y = vt(b, g ? [n, t] : [t, n]);
2612
+ const v = x.current || p.current.getBoundingClientRect(), b = [0, v.height], y = vt(b, g ? [o, t] : [t, o]);
2613
2613
  return x.current = v, y(m - v.top);
2614
2614
  }
2615
- return /* @__PURE__ */ s.jsx(
2615
+ return /* @__PURE__ */ i.jsx(
2616
2616
  Hr,
2617
2617
  {
2618
2618
  scope: e.__scopeSlider,
@@ -2620,30 +2620,30 @@ var [Hr, Ur] = Vr(ye, {
2620
2620
  endEdge: g ? "top" : "bottom",
2621
2621
  size: "height",
2622
2622
  direction: g ? 1 : -1,
2623
- children: /* @__PURE__ */ s.jsx(
2623
+ children: /* @__PURE__ */ i.jsx(
2624
2624
  Gr,
2625
2625
  {
2626
2626
  "data-orientation": "vertical",
2627
- ...d,
2627
+ ...u,
2628
2628
  ref: f,
2629
2629
  style: {
2630
- ...d.style,
2630
+ ...u.style,
2631
2631
  "--radix-slider-thumb-transform": "translateY(50%)"
2632
2632
  },
2633
2633
  onSlideStart: (m) => {
2634
2634
  const v = w(m.clientY);
2635
- i?.(v);
2635
+ a?.(v);
2636
2636
  },
2637
2637
  onSlideMove: (m) => {
2638
2638
  const v = w(m.clientY);
2639
- a?.(v);
2639
+ s?.(v);
2640
2640
  },
2641
2641
  onSlideEnd: () => {
2642
2642
  x.current = void 0, c?.();
2643
2643
  },
2644
2644
  onStepKeyDown: (m) => {
2645
2645
  const b = $r[g ? "from-bottom" : "from-top"].includes(m.key);
2646
- u?.({ event: m, direction: b ? -1 : 1 });
2646
+ d?.({ event: m, direction: b ? -1 : 1 });
2647
2647
  }
2648
2648
  }
2649
2649
  )
@@ -2654,45 +2654,45 @@ var [Hr, Ur] = Vr(ye, {
2654
2654
  (e, r) => {
2655
2655
  const {
2656
2656
  __scopeSlider: t,
2657
- onSlideStart: n,
2658
- onSlideMove: o,
2659
- onSlideEnd: i,
2660
- onHomeKeyDown: a,
2657
+ onSlideStart: o,
2658
+ onSlideMove: n,
2659
+ onSlideEnd: a,
2660
+ onHomeKeyDown: s,
2661
2661
  onEndKeyDown: c,
2662
- onStepKeyDown: u,
2663
- ...d
2662
+ onStepKeyDown: d,
2663
+ ...u
2664
2664
  } = e, p = He(ye, t);
2665
- return /* @__PURE__ */ s.jsx(
2666
- N.span,
2665
+ return /* @__PURE__ */ i.jsx(
2666
+ _.span,
2667
2667
  {
2668
- ...d,
2668
+ ...u,
2669
2669
  ref: r,
2670
- onKeyDown: _(e.onKeyDown, (f) => {
2671
- f.key === "Home" ? (a(f), f.preventDefault()) : f.key === "End" ? (c(f), f.preventDefault()) : Lr.concat(Br).includes(f.key) && (u(f), f.preventDefault());
2670
+ onKeyDown: N(e.onKeyDown, (f) => {
2671
+ f.key === "Home" ? (s(f), f.preventDefault()) : f.key === "End" ? (c(f), f.preventDefault()) : Fr.concat(Br).includes(f.key) && (d(f), f.preventDefault());
2672
2672
  }),
2673
- onPointerDown: _(e.onPointerDown, (f) => {
2673
+ onPointerDown: N(e.onPointerDown, (f) => {
2674
2674
  const x = f.target;
2675
- x.setPointerCapture(f.pointerId), f.preventDefault(), p.thumbs.has(x) ? x.focus() : n(f);
2675
+ x.setPointerCapture(f.pointerId), f.preventDefault(), p.thumbs.has(x) ? x.focus() : o(f);
2676
2676
  }),
2677
- onPointerMove: _(e.onPointerMove, (f) => {
2678
- f.target.hasPointerCapture(f.pointerId) && o(f);
2677
+ onPointerMove: N(e.onPointerMove, (f) => {
2678
+ f.target.hasPointerCapture(f.pointerId) && n(f);
2679
2679
  }),
2680
- onPointerUp: _(e.onPointerUp, (f) => {
2680
+ onPointerUp: N(e.onPointerUp, (f) => {
2681
2681
  const x = f.target;
2682
- x.hasPointerCapture(f.pointerId) && (x.releasePointerCapture(f.pointerId), i(f));
2682
+ x.hasPointerCapture(f.pointerId) && (x.releasePointerCapture(f.pointerId), a(f));
2683
2683
  })
2684
2684
  }
2685
2685
  );
2686
2686
  }
2687
2687
  ), zr = "SliderTrack", Wr = l.forwardRef(
2688
2688
  (e, r) => {
2689
- const { __scopeSlider: t, ...n } = e, o = He(zr, t);
2690
- return /* @__PURE__ */ s.jsx(
2691
- N.span,
2689
+ const { __scopeSlider: t, ...o } = e, n = He(zr, t);
2690
+ return /* @__PURE__ */ i.jsx(
2691
+ _.span,
2692
2692
  {
2693
- "data-disabled": o.disabled ? "" : void 0,
2694
- "data-orientation": o.orientation,
2695
- ...n,
2693
+ "data-disabled": n.disabled ? "" : void 0,
2694
+ "data-orientation": n.orientation,
2695
+ ...o,
2696
2696
  ref: r
2697
2697
  }
2698
2698
  );
@@ -2701,20 +2701,20 @@ var [Hr, Ur] = Vr(ye, {
2701
2701
  Wr.displayName = zr;
2702
2702
  var lt = "SliderRange", qr = l.forwardRef(
2703
2703
  (e, r) => {
2704
- const { __scopeSlider: t, ...n } = e, o = He(lt, t), i = Ur(lt, t), a = l.useRef(null), c = V(r, a), u = o.values.length, d = o.values.map(
2705
- (x) => Zr(x, o.min, o.max)
2706
- ), p = u > 1 ? Math.min(...d) : 0, f = 100 - Math.max(...d);
2707
- return /* @__PURE__ */ s.jsx(
2708
- N.span,
2704
+ const { __scopeSlider: t, ...o } = e, n = He(lt, t), a = Ur(lt, t), s = l.useRef(null), c = V(r, s), d = n.values.length, u = n.values.map(
2705
+ (x) => Zr(x, n.min, n.max)
2706
+ ), p = d > 1 ? Math.min(...u) : 0, f = 100 - Math.max(...u);
2707
+ return /* @__PURE__ */ i.jsx(
2708
+ _.span,
2709
2709
  {
2710
- "data-orientation": o.orientation,
2711
- "data-disabled": o.disabled ? "" : void 0,
2712
- ...n,
2710
+ "data-orientation": n.orientation,
2711
+ "data-disabled": n.disabled ? "" : void 0,
2712
+ ...o,
2713
2713
  ref: c,
2714
2714
  style: {
2715
2715
  ...e.style,
2716
- [i.startEdge]: p + "%",
2717
- [i.endEdge]: f + "%"
2716
+ [a.startEdge]: p + "%",
2717
+ [a.endEdge]: f + "%"
2718
2718
  }
2719
2719
  }
2720
2720
  );
@@ -2723,21 +2723,21 @@ var lt = "SliderRange", qr = l.forwardRef(
2723
2723
  qr.displayName = lt;
2724
2724
  var ct = "SliderThumb", Yr = l.forwardRef(
2725
2725
  (e, r) => {
2726
- const t = qa(e.__scopeSlider), [n, o] = l.useState(null), i = V(r, (c) => o(c)), a = l.useMemo(
2727
- () => n ? t().findIndex((c) => c.ref.current === n) : -1,
2728
- [t, n]
2726
+ const t = qa(e.__scopeSlider), [o, n] = l.useState(null), a = V(r, (c) => n(c)), s = l.useMemo(
2727
+ () => o ? t().findIndex((c) => c.ref.current === o) : -1,
2728
+ [t, o]
2729
2729
  );
2730
- return /* @__PURE__ */ s.jsx(Qa, { ...e, ref: i, index: a });
2730
+ return /* @__PURE__ */ i.jsx(Qa, { ...e, ref: a, index: s });
2731
2731
  }
2732
2732
  ), Qa = l.forwardRef(
2733
2733
  (e, r) => {
2734
- const { __scopeSlider: t, index: n, name: o, ...i } = e, a = He(ct, t), c = Ur(ct, t), [u, d] = l.useState(null), p = V(r, (S) => d(S)), f = u ? a.form || !!u.closest("form") : !0, x = Oe(u), g = a.values[n], w = g === void 0 ? 0 : Zr(g, a.min, a.max), m = rs(n, a.values.length), v = x?.[c.size], b = v ? os(v, w, c.direction) : 0;
2734
+ const { __scopeSlider: t, index: o, name: n, ...a } = e, s = He(ct, t), c = Ur(ct, t), [d, u] = l.useState(null), p = V(r, (S) => u(S)), f = d ? s.form || !!d.closest("form") : !0, x = Le(d), g = s.values[o], w = g === void 0 ? 0 : Zr(g, s.min, s.max), m = rs(o, s.values.length), v = x?.[c.size], b = v ? os(v, w, c.direction) : 0;
2735
2735
  return l.useEffect(() => {
2736
- if (u)
2737
- return a.thumbs.add(u), () => {
2738
- a.thumbs.delete(u);
2736
+ if (d)
2737
+ return s.thumbs.add(d), () => {
2738
+ s.thumbs.delete(d);
2739
2739
  };
2740
- }, [u, a.thumbs]), /* @__PURE__ */ s.jsxs(
2740
+ }, [d, s.thumbs]), /* @__PURE__ */ i.jsxs(
2741
2741
  "span",
2742
2742
  {
2743
2743
  style: {
@@ -2746,34 +2746,34 @@ var ct = "SliderThumb", Yr = l.forwardRef(
2746
2746
  [c.startEdge]: `calc(${w}% + ${b}px)`
2747
2747
  },
2748
2748
  children: [
2749
- /* @__PURE__ */ s.jsx(it.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ s.jsx(
2750
- N.span,
2749
+ /* @__PURE__ */ i.jsx(it.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ i.jsx(
2750
+ _.span,
2751
2751
  {
2752
2752
  role: "slider",
2753
2753
  "aria-label": e["aria-label"] || m,
2754
- "aria-valuemin": a.min,
2754
+ "aria-valuemin": s.min,
2755
2755
  "aria-valuenow": g,
2756
- "aria-valuemax": a.max,
2757
- "aria-orientation": a.orientation,
2758
- "data-orientation": a.orientation,
2759
- "data-disabled": a.disabled ? "" : void 0,
2760
- tabIndex: a.disabled ? void 0 : 0,
2761
- ...i,
2756
+ "aria-valuemax": s.max,
2757
+ "aria-orientation": s.orientation,
2758
+ "data-orientation": s.orientation,
2759
+ "data-disabled": s.disabled ? "" : void 0,
2760
+ tabIndex: s.disabled ? void 0 : 0,
2761
+ ...a,
2762
2762
  ref: p,
2763
2763
  style: g === void 0 ? { display: "none" } : e.style,
2764
- onFocus: _(e.onFocus, () => {
2765
- a.valueIndexToChangeRef.current = n;
2764
+ onFocus: N(e.onFocus, () => {
2765
+ s.valueIndexToChangeRef.current = o;
2766
2766
  })
2767
2767
  }
2768
2768
  ) }),
2769
- f && /* @__PURE__ */ s.jsx(
2769
+ f && /* @__PURE__ */ i.jsx(
2770
2770
  Xr,
2771
2771
  {
2772
- name: o ?? (a.name ? a.name + (a.values.length > 1 ? "[]" : "") : void 0),
2773
- form: a.form,
2772
+ name: n ?? (s.name ? s.name + (s.values.length > 1 ? "[]" : "") : void 0),
2773
+ form: s.form,
2774
2774
  value: g
2775
2775
  },
2776
- n
2776
+ o
2777
2777
  )
2778
2778
  ]
2779
2779
  }
@@ -2782,22 +2782,22 @@ var ct = "SliderThumb", Yr = l.forwardRef(
2782
2782
  );
2783
2783
  Yr.displayName = ct;
2784
2784
  var es = "RadioBubbleInput", Xr = l.forwardRef(
2785
- ({ __scopeSlider: e, value: r, ...t }, n) => {
2786
- const o = l.useRef(null), i = V(o, n), a = Ee(r);
2785
+ ({ __scopeSlider: e, value: r, ...t }, o) => {
2786
+ const n = l.useRef(null), a = V(n, o), s = Ee(r);
2787
2787
  return l.useEffect(() => {
2788
- const c = o.current;
2788
+ const c = n.current;
2789
2789
  if (!c) return;
2790
- const u = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(u, "value").set;
2791
- if (a !== r && p) {
2790
+ const d = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(d, "value").set;
2791
+ if (s !== r && p) {
2792
2792
  const f = new Event("input", { bubbles: !0 });
2793
2793
  p.call(c, r), c.dispatchEvent(f);
2794
2794
  }
2795
- }, [a, r]), /* @__PURE__ */ s.jsx(
2796
- N.input,
2795
+ }, [s, r]), /* @__PURE__ */ i.jsx(
2796
+ _.input,
2797
2797
  {
2798
2798
  style: { display: "none" },
2799
2799
  ...t,
2800
- ref: i,
2800
+ ref: a,
2801
2801
  defaultValue: r
2802
2802
  }
2803
2803
  );
@@ -2805,24 +2805,24 @@ var es = "RadioBubbleInput", Xr = l.forwardRef(
2805
2805
  );
2806
2806
  Xr.displayName = es;
2807
2807
  function ts(e = [], r, t) {
2808
- const n = [...e];
2809
- return n[t] = r, n.sort((o, i) => o - i);
2808
+ const o = [...e];
2809
+ return o[t] = r, o.sort((n, a) => n - a);
2810
2810
  }
2811
2811
  function Zr(e, r, t) {
2812
- const i = 100 / (t - r) * (e - r);
2813
- return _e(i, [0, 100]);
2812
+ const a = 100 / (t - r) * (e - r);
2813
+ return Ne(a, [0, 100]);
2814
2814
  }
2815
2815
  function rs(e, r) {
2816
2816
  return r > 2 ? `Value ${e + 1} of ${r}` : r === 2 ? ["Minimum", "Maximum"][e] : void 0;
2817
2817
  }
2818
2818
  function ns(e, r) {
2819
2819
  if (e.length === 1) return 0;
2820
- const t = e.map((o) => Math.abs(o - r)), n = Math.min(...t);
2821
- return t.indexOf(n);
2820
+ const t = e.map((n) => Math.abs(n - r)), o = Math.min(...t);
2821
+ return t.indexOf(o);
2822
2822
  }
2823
2823
  function os(e, r, t) {
2824
- const n = e / 2, i = vt([0, 50], [0, n]);
2825
- return (n - i(r) * t) * t;
2824
+ const o = e / 2, a = vt([0, 50], [0, o]);
2825
+ return (o - a(r) * t) * t;
2826
2826
  }
2827
2827
  function as(e) {
2828
2828
  return e.slice(0, -1).map((r, t) => e[t + 1] - r);
@@ -2837,8 +2837,8 @@ function ss(e, r) {
2837
2837
  function vt(e, r) {
2838
2838
  return (t) => {
2839
2839
  if (e[0] === e[1] || r[0] === r[1]) return r[0];
2840
- const n = (r[1] - r[0]) / (e[1] - e[0]);
2841
- return r[0] + n * (t - e[0]);
2840
+ const o = (r[1] - r[0]) / (e[1] - e[0]);
2841
+ return r[0] + o * (t - e[0]);
2842
2842
  };
2843
2843
  }
2844
2844
  function is(e) {
@@ -2853,51 +2853,51 @@ function fs({
2853
2853
  className: e,
2854
2854
  trackClassName: r,
2855
2855
  thumbClassName: t,
2856
- defaultValue: n,
2857
- value: o,
2858
- min: i = 0,
2859
- max: a = 100,
2856
+ defaultValue: o,
2857
+ value: n,
2858
+ min: a = 0,
2859
+ max: s = 100,
2860
2860
  ...c
2861
2861
  }) {
2862
- const u = l.useMemo(
2863
- () => Array.isArray(o) ? o : Array.isArray(n) ? n : [i, a],
2864
- [o, n, i, a]
2862
+ const d = l.useMemo(
2863
+ () => Array.isArray(n) ? n : Array.isArray(o) ? o : [a, s],
2864
+ [n, o, a, s]
2865
2865
  );
2866
- return /* @__PURE__ */ s.jsxs(
2866
+ return /* @__PURE__ */ i.jsxs(
2867
2867
  cs,
2868
2868
  {
2869
- className: A(
2869
+ className: P(
2870
2870
  "relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
2871
2871
  e
2872
2872
  ),
2873
2873
  "data-slot": "slider",
2874
- defaultValue: n,
2875
- max: a,
2876
- min: i,
2877
- value: o,
2874
+ defaultValue: o,
2875
+ max: s,
2876
+ min: a,
2877
+ value: n,
2878
2878
  ...c,
2879
2879
  children: [
2880
- /* @__PURE__ */ s.jsx(
2880
+ /* @__PURE__ */ i.jsx(
2881
2881
  ds,
2882
2882
  {
2883
- className: A(
2883
+ className: P(
2884
2884
  "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5",
2885
2885
  r
2886
2886
  ),
2887
2887
  "data-slot": "slider-track",
2888
- children: /* @__PURE__ */ s.jsx(
2888
+ children: /* @__PURE__ */ i.jsx(
2889
2889
  us,
2890
2890
  {
2891
- className: A("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"),
2891
+ className: P("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"),
2892
2892
  "data-slot": "slider-range"
2893
2893
  }
2894
2894
  )
2895
2895
  }
2896
2896
  ),
2897
- Array.from({ length: u.length }, (d, p) => /* @__PURE__ */ s.jsx(
2897
+ Array.from({ length: d.length }, (u, p) => /* @__PURE__ */ i.jsx(
2898
2898
  ps,
2899
2899
  {
2900
- className: A(
2900
+ className: P(
2901
2901
  "border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",
2902
2902
  t
2903
2903
  ),
@@ -2909,13 +2909,13 @@ function fs({
2909
2909
  }
2910
2910
  );
2911
2911
  }
2912
- const Us = ({ size: e = "md", thumbClassName: r, trackClassName: t, value: n, defaultValue: o, ...i }) => {
2913
- const a = o !== void 0 ? Array.isArray(o) ? o : [o] : void 0, c = n !== void 0 ? Array.isArray(n) ? n : [n] : void 0;
2914
- return /* @__PURE__ */ s.jsx(
2912
+ const Us = ({ size: e = "md", thumbClassName: r, trackClassName: t, value: o, defaultValue: n, ...a }) => {
2913
+ const s = n !== void 0 ? Array.isArray(n) ? n : [n] : void 0, c = o !== void 0 ? Array.isArray(o) ? o : [o] : void 0;
2914
+ return /* @__PURE__ */ i.jsx(
2915
2915
  fs,
2916
2916
  {
2917
- defaultValue: a,
2918
- thumbClassName: A(
2917
+ defaultValue: s,
2918
+ thumbClassName: P(
2919
2919
  {
2920
2920
  "size-2": e === "xs",
2921
2921
  "size-3": e === "sm",
@@ -2926,7 +2926,7 @@ const Us = ({ size: e = "md", thumbClassName: r, trackClassName: t, value: n, de
2926
2926
  "bg-primary",
2927
2927
  r
2928
2928
  ),
2929
- trackClassName: A(
2929
+ trackClassName: P(
2930
2930
  {
2931
2931
  "data-[orientation=horizontal]:h-1 data-[orientation=vertical]:w-1": e === "xs",
2932
2932
  "data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5": e === "sm",
@@ -2937,7 +2937,7 @@ const Us = ({ size: e = "md", thumbClassName: r, trackClassName: t, value: n, de
2937
2937
  t
2938
2938
  ),
2939
2939
  value: c,
2940
- ...i
2940
+ ...a
2941
2941
  }
2942
2942
  );
2943
2943
  };
@@ -2945,49 +2945,49 @@ var Ue = "Switch", [ms, Gs] = ve(Ue), [hs, vs] = ms(Ue), Jr = l.forwardRef(
2945
2945
  (e, r) => {
2946
2946
  const {
2947
2947
  __scopeSwitch: t,
2948
- name: n,
2949
- checked: o,
2950
- defaultChecked: i,
2951
- required: a,
2948
+ name: o,
2949
+ checked: n,
2950
+ defaultChecked: a,
2951
+ required: s,
2952
2952
  disabled: c,
2953
- value: u = "on",
2954
- onCheckedChange: d,
2953
+ value: d = "on",
2954
+ onCheckedChange: u,
2955
2955
  form: p,
2956
2956
  ...f
2957
2957
  } = e, [x, g] = l.useState(null), w = V(r, (y) => g(y)), m = l.useRef(!1), v = x ? p || !!x.closest("form") : !0, [b, S] = pe({
2958
- prop: o,
2959
- defaultProp: i ?? !1,
2960
- onChange: d,
2958
+ prop: n,
2959
+ defaultProp: a ?? !1,
2960
+ onChange: u,
2961
2961
  caller: Ue
2962
2962
  });
2963
- return /* @__PURE__ */ s.jsxs(hs, { scope: t, checked: b, disabled: c, children: [
2964
- /* @__PURE__ */ s.jsx(
2965
- N.button,
2963
+ return /* @__PURE__ */ i.jsxs(hs, { scope: t, checked: b, disabled: c, children: [
2964
+ /* @__PURE__ */ i.jsx(
2965
+ _.button,
2966
2966
  {
2967
2967
  type: "button",
2968
2968
  role: "switch",
2969
2969
  "aria-checked": b,
2970
- "aria-required": a,
2970
+ "aria-required": s,
2971
2971
  "data-state": rn(b),
2972
2972
  "data-disabled": c ? "" : void 0,
2973
2973
  disabled: c,
2974
- value: u,
2974
+ value: d,
2975
2975
  ...f,
2976
2976
  ref: w,
2977
- onClick: _(e.onClick, (y) => {
2977
+ onClick: N(e.onClick, (y) => {
2978
2978
  S((R) => !R), v && (m.current = y.isPropagationStopped(), m.current || y.stopPropagation());
2979
2979
  })
2980
2980
  }
2981
2981
  ),
2982
- v && /* @__PURE__ */ s.jsx(
2982
+ v && /* @__PURE__ */ i.jsx(
2983
2983
  tn,
2984
2984
  {
2985
2985
  control: x,
2986
2986
  bubbles: !m.current,
2987
- name: n,
2988
- value: u,
2987
+ name: o,
2988
+ value: d,
2989
2989
  checked: b,
2990
- required: a,
2990
+ required: s,
2991
2991
  disabled: c,
2992
2992
  form: p,
2993
2993
  style: { transform: "translateX(-100%)" }
@@ -2999,13 +2999,13 @@ var Ue = "Switch", [ms, Gs] = ve(Ue), [hs, vs] = ms(Ue), Jr = l.forwardRef(
2999
2999
  Jr.displayName = Ue;
3000
3000
  var Qr = "SwitchThumb", en = l.forwardRef(
3001
3001
  (e, r) => {
3002
- const { __scopeSwitch: t, ...n } = e, o = vs(Qr, t);
3003
- return /* @__PURE__ */ s.jsx(
3004
- N.span,
3002
+ const { __scopeSwitch: t, ...o } = e, n = vs(Qr, t);
3003
+ return /* @__PURE__ */ i.jsx(
3004
+ _.span,
3005
3005
  {
3006
- "data-state": rn(o.checked),
3007
- "data-disabled": o.disabled ? "" : void 0,
3008
- ...n,
3006
+ "data-state": rn(n.checked),
3007
+ "data-disabled": n.disabled ? "" : void 0,
3008
+ ...o,
3009
3009
  ref: r
3010
3010
  }
3011
3011
  );
@@ -3017,33 +3017,33 @@ var xs = "SwitchBubbleInput", tn = l.forwardRef(
3017
3017
  __scopeSwitch: e,
3018
3018
  control: r,
3019
3019
  checked: t,
3020
- bubbles: n = !0,
3021
- ...o
3022
- }, i) => {
3023
- const a = l.useRef(null), c = V(a, i), u = Ee(t), d = Oe(r);
3020
+ bubbles: o = !0,
3021
+ ...n
3022
+ }, a) => {
3023
+ const s = l.useRef(null), c = V(s, a), d = Ee(t), u = Le(r);
3024
3024
  return l.useEffect(() => {
3025
- const p = a.current;
3025
+ const p = s.current;
3026
3026
  if (!p) return;
3027
3027
  const f = window.HTMLInputElement.prototype, g = Object.getOwnPropertyDescriptor(
3028
3028
  f,
3029
3029
  "checked"
3030
3030
  ).set;
3031
- if (u !== t && g) {
3032
- const w = new Event("click", { bubbles: n });
3031
+ if (d !== t && g) {
3032
+ const w = new Event("click", { bubbles: o });
3033
3033
  g.call(p, t), p.dispatchEvent(w);
3034
3034
  }
3035
- }, [u, t, n]), /* @__PURE__ */ s.jsx(
3035
+ }, [d, t, o]), /* @__PURE__ */ i.jsx(
3036
3036
  "input",
3037
3037
  {
3038
3038
  type: "checkbox",
3039
3039
  "aria-hidden": !0,
3040
3040
  defaultChecked: t,
3041
- ...o,
3041
+ ...n,
3042
3042
  tabIndex: -1,
3043
3043
  ref: c,
3044
3044
  style: {
3045
- ...o.style,
3046
- ...d,
3045
+ ...n.style,
3046
+ ...u,
3047
3047
  position: "absolute",
3048
3048
  pointerEvents: "none",
3049
3049
  opacity: 0,
@@ -3063,19 +3063,19 @@ function ws({
3063
3063
  thumbClassName: r,
3064
3064
  ...t
3065
3065
  }) {
3066
- return /* @__PURE__ */ s.jsx(
3066
+ return /* @__PURE__ */ i.jsx(
3067
3067
  gs,
3068
3068
  {
3069
- className: A(
3069
+ className: P(
3070
3070
  "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
3071
3071
  e
3072
3072
  ),
3073
3073
  "data-slot": "switch",
3074
3074
  ...t,
3075
- children: /* @__PURE__ */ s.jsx(
3075
+ children: /* @__PURE__ */ i.jsx(
3076
3076
  bs,
3077
3077
  {
3078
- className: A(
3078
+ className: P(
3079
3079
  "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0",
3080
3080
  r
3081
3081
  ),
@@ -3088,20 +3088,19 @@ function ws({
3088
3088
  const zs = ({
3089
3089
  id: e,
3090
3090
  label: r,
3091
- leftLabel: t,
3092
- rightLabel: n,
3093
- className: o,
3094
- thumbClassName: i,
3091
+ className: t,
3092
+ thumbClassName: o,
3093
+ labelClassName: n,
3095
3094
  size: a = "md",
3096
- ...c
3095
+ ...s
3097
3096
  }) => {
3098
- const u = cn(), d = e || u;
3099
- return /* @__PURE__ */ s.jsxs("div", { className: "flex items-center space-x-2", children: [
3100
- t && /* @__PURE__ */ s.jsx(ae, { className: "cursor-pointer", htmlFor: d, size: a, children: t }),
3101
- /* @__PURE__ */ s.jsx(
3097
+ const c = cn(), d = e || c, [u, p] = Array.isArray(r) ? r : [null, r], f = "cursor-pointer", x = n && Array.isArray(n) ? n[0] : n, g = n && Array.isArray(n) ? n[1] : n;
3098
+ return /* @__PURE__ */ i.jsxs("div", { className: "flex items-center space-x-2", children: [
3099
+ u && /* @__PURE__ */ i.jsx(ae, { className: P(f, x), htmlFor: d, size: a, children: u }),
3100
+ /* @__PURE__ */ i.jsx(
3102
3101
  ws,
3103
3102
  {
3104
- className: A(
3103
+ className: P(
3105
3104
  {
3106
3105
  "h-[10px] w-4": a === "xs",
3107
3106
  "h-[14px] w-6": a === "sm",
@@ -3109,10 +3108,10 @@ const zs = ({
3109
3108
  "h-[22px] w-10": a === "lg",
3110
3109
  "h-[26px] w-12": a === "xl"
3111
3110
  },
3112
- o
3111
+ t
3113
3112
  ),
3114
3113
  id: d,
3115
- thumbClassName: A(
3114
+ thumbClassName: P(
3116
3115
  {
3117
3116
  "size-2": a === "xs",
3118
3117
  "size-3": a === "sm",
@@ -3120,19 +3119,19 @@ const zs = ({
3120
3119
  "size-5": a === "lg",
3121
3120
  "size-6": a === "xl"
3122
3121
  },
3123
- i
3122
+ o
3124
3123
  ),
3125
- ...c
3124
+ ...s
3126
3125
  }
3127
3126
  ),
3128
- /* @__PURE__ */ s.jsx(ae, { className: "cursor-pointer", htmlFor: d, size: a, children: n || r })
3127
+ /* @__PURE__ */ i.jsx(ae, { className: P(f, g), htmlFor: d, size: a, children: p })
3129
3128
  ] });
3130
3129
  };
3131
3130
  function Ss({ className: e, ...r }) {
3132
- return /* @__PURE__ */ s.jsx(
3131
+ return /* @__PURE__ */ i.jsx(
3133
3132
  "textarea",
3134
3133
  {
3135
- className: A(
3134
+ className: P(
3136
3135
  "field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:aria-invalid:ring-destructive/40",
3137
3136
  e
3138
3137
  ),
@@ -3141,36 +3140,36 @@ function Ss({ className: e, ...r }) {
3141
3140
  }
3142
3141
  );
3143
3142
  }
3144
- function Ws({ label: e, name: r, note: t, placeholder: n, className: o, error: i, ...a }) {
3145
- return /* @__PURE__ */ s.jsxs(ne, { className: "w-full", direction: "col", gap: "2", children: [
3146
- e && /* @__PURE__ */ s.jsx(ae, { htmlFor: r, children: e }),
3147
- /* @__PURE__ */ s.jsx(
3143
+ function Ws({ label: e, name: r, note: t, placeholder: o, className: n, error: a, ...s }) {
3144
+ return /* @__PURE__ */ i.jsxs(ne, { className: "w-full", direction: "col", gap: "2", children: [
3145
+ e && /* @__PURE__ */ i.jsx(ae, { htmlFor: r, children: e }),
3146
+ /* @__PURE__ */ i.jsx(
3148
3147
  Ss,
3149
3148
  {
3150
3149
  "aria-label": e || r,
3151
- className: o,
3150
+ className: n,
3152
3151
  id: r,
3153
3152
  name: r,
3154
- placeholder: n,
3155
- ...a
3153
+ placeholder: o,
3154
+ ...s
3156
3155
  }
3157
3156
  ),
3158
- t && /* @__PURE__ */ s.jsx(Ae, { size: "sm", variant: "muted", children: t }),
3159
- i && /* @__PURE__ */ s.jsx(je, { message: i })
3157
+ t && /* @__PURE__ */ i.jsx(Ae, { size: "sm", variant: "muted", children: t }),
3158
+ a && /* @__PURE__ */ i.jsx(je, { message: a })
3160
3159
  ] });
3161
3160
  }
3162
3161
  export {
3163
3162
  Ms as C,
3164
- _s as D,
3163
+ Ns as D,
3165
3164
  je as I,
3166
3165
  ae as L,
3167
- Fs as N,
3166
+ Os as N,
3168
3167
  Bs as R,
3169
3168
  Ps as S,
3170
3169
  Ws as T,
3171
3170
  As as a,
3172
3171
  Ds as b,
3173
- Os as c,
3172
+ Ls as c,
3174
3173
  uo as d,
3175
3174
  Vs as e,
3176
3175
  Ks as f,