@still-forest/canopy 0.39.1 → 0.39.2

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.
@@ -150,21 +150,21 @@ Tt.displayName = ke;
150
150
  var Jn = l.forwardRef((e, r) => {
151
151
  const {
152
152
  __scopeRovingFocusGroup: t,
153
- orientation: o,
154
- loop: n = !1,
153
+ orientation: n,
154
+ loop: o = !1,
155
155
  dir: i,
156
156
  currentTabStopId: a,
157
157
  defaultCurrentTabStopId: c,
158
- onCurrentTabStopIdChange: d,
159
- onEntryFocus: u,
158
+ onCurrentTabStopIdChange: u,
159
+ onEntryFocus: d,
160
160
  preventScrollOnEntryFocus: p = !1,
161
161
  ...f
162
162
  } = e, x = l.useRef(null), g = V(r, x), w = De(i), [m, v] = pe({
163
163
  prop: a,
164
164
  defaultProp: c ?? null,
165
- onChange: d,
165
+ onChange: u,
166
166
  caller: ke
167
- }), [b, S] = l.useState(!1), y = yt(u), R = _t(t), D = l.useRef(!1), [P, j] = l.useState(0);
167
+ }), [b, S] = l.useState(!1), y = yt(d), R = _t(t), D = l.useRef(!1), [P, j] = l.useState(0);
168
168
  return l.useEffect(() => {
169
169
  const L = x.current;
170
170
  if (L)
@@ -173,9 +173,9 @@ var Jn = l.forwardRef((e, r) => {
173
173
  Xn,
174
174
  {
175
175
  scope: t,
176
- orientation: o,
176
+ orientation: n,
177
177
  dir: w,
178
- loop: n,
178
+ loop: o,
179
179
  currentTabStopId: m,
180
180
  onItemFocus: l.useCallback(
181
181
  (L) => v(L),
@@ -194,7 +194,7 @@ var Jn = l.forwardRef((e, r) => {
194
194
  N.div,
195
195
  {
196
196
  tabIndex: b || P === 0 ? -1 : 0,
197
- "data-orientation": o,
197
+ "data-orientation": n,
198
198
  ...f,
199
199
  ref: g,
200
200
  style: { outline: "none", ...e.style },
@@ -223,22 +223,22 @@ var Jn = l.forwardRef((e, r) => {
223
223
  (e, r) => {
224
224
  const {
225
225
  __scopeRovingFocusGroup: t,
226
- focusable: o = !0,
227
- active: n = !1,
226
+ focusable: n = !0,
227
+ active: o = !1,
228
228
  tabStopId: i,
229
229
  children: a,
230
230
  ...c
231
- } = e, d = te(), u = i || d, p = Zn(Mt, t), f = p.currentTabStopId === u, x = _t(t), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: m } = p;
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;
232
232
  return l.useEffect(() => {
233
- if (o)
233
+ if (n)
234
234
  return g(), () => w();
235
- }, [o, g, w]), /* @__PURE__ */ s.jsx(
235
+ }, [n, g, w]), /* @__PURE__ */ s.jsx(
236
236
  Qe.ItemSlot,
237
237
  {
238
238
  scope: t,
239
- id: u,
240
- focusable: o,
241
- active: n,
239
+ id: d,
240
+ focusable: n,
241
+ active: o,
242
242
  children: /* @__PURE__ */ s.jsx(
243
243
  N.span,
244
244
  {
@@ -247,9 +247,9 @@ var Jn = l.forwardRef((e, r) => {
247
247
  ...c,
248
248
  ref: r,
249
249
  onMouseDown: _(e.onMouseDown, (v) => {
250
- o ? p.onItemFocus(u) : v.preventDefault();
250
+ n ? p.onItemFocus(d) : v.preventDefault();
251
251
  }),
252
- onFocus: _(e.onFocus, () => p.onItemFocus(u)),
252
+ onFocus: _(e.onFocus, () => p.onItemFocus(d)),
253
253
  onKeyDown: _(e.onKeyDown, (v) => {
254
254
  if (v.key === "Tab" && v.shiftKey) {
255
255
  p.onItemShiftTab();
@@ -292,17 +292,17 @@ 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 o = eo(e.key, t);
296
- if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
297
- return Qn[o];
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];
298
298
  }
299
299
  function Dt(e, r = !1) {
300
300
  const t = document.activeElement;
301
- for (const o of e)
302
- if (o === t || (o.focus({ preventScroll: r }), document.activeElement !== t)) return;
301
+ for (const n of e)
302
+ if (n === t || (n.focus({ preventScroll: r }), document.activeElement !== t)) return;
303
303
  }
304
304
  function ro(e, r) {
305
- return e.map((t, o) => e[(r + o) % e.length]);
305
+ return e.map((t, n) => e[(r + n) % e.length]);
306
306
  }
307
307
  var no = Tt, oo = At;
308
308
  const _s = ({ disabled: e = !1, handleDelete: r, ...t }) => /* @__PURE__ */ s.jsx(
@@ -325,16 +325,16 @@ 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: o = "default",
329
- label: n,
328
+ action: n = "default",
329
+ label: o,
330
330
  submittingLabel: i,
331
331
  icon: a,
332
332
  noIcon: c = !1,
333
- ...d
333
+ ...u
334
334
  }) => {
335
- if (!xt[o])
336
- throw new Error(`Invalid action: ${o}`);
337
- const u = xt[o], p = n || u.label, f = i || u.submittingLabel, x = a || u.IconComponent, g = e ? /* @__PURE__ */ s.jsx(un, { icon: t }) : /* @__PURE__ */ s.jsx(x, {});
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
338
  return /* @__PURE__ */ s.jsx(
339
339
  Te,
340
340
  {
@@ -342,7 +342,7 @@ const _s = ({ disabled: e = !1, handleDelete: r, ...t }) => /* @__PURE__ */ s.js
342
342
  icon: c ? void 0 : g,
343
343
  type: "submit",
344
344
  variant: "primary",
345
- ...d,
345
+ ...u,
346
346
  children: e ? f : p
347
347
  }
348
348
  );
@@ -356,20 +356,20 @@ function io(e) {
356
356
  const {
357
357
  __scopeCheckbox: r,
358
358
  checked: t,
359
- children: o,
360
- defaultChecked: n,
359
+ children: n,
360
+ defaultChecked: o,
361
361
  disabled: i,
362
362
  form: a,
363
363
  name: c,
364
- onCheckedChange: d,
365
- required: u,
364
+ onCheckedChange: u,
365
+ required: d,
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: n ?? !1,
372
- onChange: d,
371
+ defaultProp: o ?? !1,
372
+ onChange: u,
373
373
  caller: Fe
374
374
  }), [w, m] = l.useState(null), [v, b] = l.useState(null), S = l.useRef(!1), y = w ? !!a || !!w.closest("form") : (
375
375
  // We set this to true by default so that events bubble to forms without JS (SSR)
@@ -384,8 +384,8 @@ function io(e) {
384
384
  form: a,
385
385
  value: p,
386
386
  hasConsumerStoppedPropagationRef: S,
387
- required: u,
388
- defaultChecked: re(n) ? !1 : n,
387
+ required: d,
388
+ defaultChecked: re(o) ? !1 : o,
389
389
  isFormControl: y,
390
390
  bubbleInput: v,
391
391
  setBubbleInput: b
@@ -395,24 +395,24 @@ function io(e) {
395
395
  {
396
396
  scope: r,
397
397
  ...R,
398
- children: lo(f) ? f(R) : o
398
+ children: lo(f) ? f(R) : n
399
399
  }
400
400
  );
401
401
  }
402
402
  var Ot = "CheckboxTrigger", Ft = l.forwardRef(
403
- ({ __scopeCheckbox: e, onKeyDown: r, onClick: t, ...o }, n) => {
403
+ ({ __scopeCheckbox: e, onKeyDown: r, onClick: t, ...n }, o) => {
404
404
  const {
405
405
  control: i,
406
406
  value: a,
407
407
  disabled: c,
408
- checked: d,
409
- required: u,
408
+ checked: u,
409
+ required: d,
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(n, p), v = l.useRef(d);
415
+ } = pt(Ot, e), m = V(o, p), v = l.useRef(u);
416
416
  return l.useEffect(() => {
417
417
  const b = i?.form;
418
418
  if (b) {
@@ -424,13 +424,13 @@ var Ot = "CheckboxTrigger", Ft = l.forwardRef(
424
424
  {
425
425
  type: "button",
426
426
  role: "checkbox",
427
- "aria-checked": re(d) ? "mixed" : d,
428
- "aria-required": u,
429
- "data-state": Ht(d),
427
+ "aria-checked": re(u) ? "mixed" : u,
428
+ "aria-required": d,
429
+ "data-state": Ht(u),
430
430
  "data-disabled": c ? "" : void 0,
431
431
  disabled: c,
432
432
  value: a,
433
- ...o,
433
+ ...n,
434
434
  ref: m,
435
435
  onKeyDown: _(r, (b) => {
436
436
  b.key === "Enter" && b.preventDefault();
@@ -447,13 +447,13 @@ var Lt = l.forwardRef(
447
447
  (e, r) => {
448
448
  const {
449
449
  __scopeCheckbox: t,
450
- name: o,
451
- checked: n,
450
+ name: n,
451
+ checked: o,
452
452
  defaultChecked: i,
453
453
  required: a,
454
454
  disabled: c,
455
- value: d,
456
- onCheckedChange: u,
455
+ value: u,
456
+ onCheckedChange: d,
457
457
  form: p,
458
458
  ...f
459
459
  } = e;
@@ -461,14 +461,14 @@ var Lt = l.forwardRef(
461
461
  io,
462
462
  {
463
463
  __scopeCheckbox: t,
464
- checked: n,
464
+ checked: o,
465
465
  defaultChecked: i,
466
466
  disabled: c,
467
467
  required: a,
468
- onCheckedChange: u,
469
- name: o,
468
+ onCheckedChange: d,
469
+ name: n,
470
470
  form: p,
471
- value: d,
471
+ value: u,
472
472
  internal_do_not_use_render: ({ isFormControl: x }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
473
473
  /* @__PURE__ */ s.jsx(
474
474
  Ft,
@@ -492,17 +492,17 @@ var Lt = l.forwardRef(
492
492
  Lt.displayName = Fe;
493
493
  var Bt = "CheckboxIndicator", $t = l.forwardRef(
494
494
  (e, r) => {
495
- const { __scopeCheckbox: t, forceMount: o, ...n } = e, i = pt(Bt, t);
495
+ const { __scopeCheckbox: t, forceMount: n, ...o } = e, i = pt(Bt, t);
496
496
  return /* @__PURE__ */ s.jsx(
497
497
  Ct,
498
498
  {
499
- present: o || re(i.checked) || i.checked === !0,
499
+ present: n || re(i.checked) || i.checked === !0,
500
500
  children: /* @__PURE__ */ s.jsx(
501
501
  N.span,
502
502
  {
503
503
  "data-state": Ht(i.checked),
504
504
  "data-disabled": i.disabled ? "" : void 0,
505
- ...n,
505
+ ...o,
506
506
  ref: r,
507
507
  style: { pointerEvents: "none", ...e.style }
508
508
  }
@@ -515,30 +515,30 @@ $t.displayName = Bt;
515
515
  var Vt = "CheckboxBubbleInput", Kt = l.forwardRef(
516
516
  ({ __scopeCheckbox: e, ...r }, t) => {
517
517
  const {
518
- control: o,
519
- hasConsumerStoppedPropagationRef: n,
518
+ control: n,
519
+ hasConsumerStoppedPropagationRef: o,
520
520
  checked: i,
521
521
  defaultChecked: a,
522
522
  required: c,
523
- disabled: d,
524
- name: u,
523
+ disabled: u,
524
+ name: d,
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(o);
529
+ } = pt(Vt, e), w = V(t, g), m = Ee(i), v = Oe(n);
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 = !n.current;
536
+ ).set, P = !o.current;
537
537
  if (m !== i && D) {
538
538
  const j = new Event("click", { bubbles: P });
539
539
  S.indeterminate = re(i), D.call(S, re(i) ? !1 : i), S.dispatchEvent(j);
540
540
  }
541
- }, [x, m, i, n]);
541
+ }, [x, m, i, o]);
542
542
  const b = l.useRef(re(i) ? !1 : i);
543
543
  return /* @__PURE__ */ s.jsx(
544
544
  N.input,
@@ -547,8 +547,8 @@ var Vt = "CheckboxBubbleInput", Kt = l.forwardRef(
547
547
  "aria-hidden": !0,
548
548
  defaultChecked: a ?? b.current,
549
549
  required: c,
550
- disabled: d,
551
- name: u,
550
+ disabled: u,
551
+ name: d,
552
552
  value: p,
553
553
  form: f,
554
554
  ...r,
@@ -601,16 +601,16 @@ function co({ className: e, ...r }) {
601
601
  }
602
602
  );
603
603
  }
604
- const Ms = ({ label: e, name: r, value: t, checked: o, onCheckedChange: n }) => {
605
- const [i, a] = Me(o);
604
+ const Ms = ({ label: e, name: r, value: t, checked: n, onCheckedChange: o }) => {
605
+ const [i, a] = Me(n);
606
606
  St(() => {
607
- a(o);
608
- }, [o]);
607
+ a(n);
608
+ }, [n]);
609
609
  let c = r;
610
- const d = t || r;
610
+ const u = t || r;
611
611
  t && (c += `[${t}]`);
612
- const u = (p) => {
613
- a(p), n?.(p);
612
+ const d = (p) => {
613
+ a(p), o?.(p);
614
614
  };
615
615
  return /* @__PURE__ */ s.jsxs(ne, { align: "center", gap: "2", children: [
616
616
  /* @__PURE__ */ s.jsx(
@@ -619,20 +619,20 @@ const Ms = ({ label: e, name: r, value: t, checked: o, onCheckedChange: n }) =>
619
619
  checked: i,
620
620
  id: c,
621
621
  name: r,
622
- onCheckedChange: u,
623
- value: d
622
+ onCheckedChange: d,
623
+ value: u
624
624
  }
625
625
  ),
626
626
  /* @__PURE__ */ s.jsx(ae, { className: "cursor-pointer", htmlFor: c, children: e })
627
627
  ] });
628
- }, As = ({ content: e, className: r, size: t = "md", ...o }) => {
629
- const [n, i] = Me(!1), a = sn(null);
628
+ }, As = ({ content: e, className: r, size: t = "md", ...n }) => {
629
+ const [o, i] = Me(!1), a = sn(null);
630
630
  St(() => () => {
631
631
  a.current && clearTimeout(a.current);
632
632
  }, []);
633
633
  const c = () => {
634
- const d = navigator.clipboard?.writeText;
635
- d && (i(!0), d.call(navigator.clipboard, e).then(() => {
634
+ const u = navigator.clipboard?.writeText;
635
+ u && (i(!0), u.call(navigator.clipboard, e).then(() => {
636
636
  a.current && clearTimeout(a.current), a.current = setTimeout(() => {
637
637
  i(!1), a.current = null;
638
638
  }, 2e3);
@@ -654,15 +654,15 @@ const Ms = ({ label: e, name: r, value: t, checked: o, onCheckedChange: n }) =>
654
654
  "justify-start",
655
655
  r
656
656
  ),
657
- disabled: n,
658
- icon: n ? /* @__PURE__ */ s.jsx(Fn, {}) : /* @__PURE__ */ s.jsx(Bn, {}),
659
- label: n ? "Copied" : "Copy",
657
+ disabled: o,
658
+ icon: o ? /* @__PURE__ */ s.jsx(Fn, {}) : /* @__PURE__ */ s.jsx(Bn, {}),
659
+ label: o ? "Copied" : "Copy",
660
660
  onClick: c,
661
661
  size: t,
662
- ...o
662
+ ...n
663
663
  }
664
664
  );
665
- }, Ds = ({ name: e, label: r, placeholder: t, note: o, className: n, size: i = "md", ...a }) => /* @__PURE__ */ s.jsx(
665
+ }, Ds = ({ name: e, label: r, placeholder: t, note: n, className: o, size: i = "md", ...a }) => /* @__PURE__ */ s.jsx(
666
666
  Gt,
667
667
  {
668
668
  className: A(
@@ -671,19 +671,19 @@ const Ms = ({ label: e, name: r, value: t, checked: o, onCheckedChange: n }) =>
671
671
  i === "md" && "max-w-[170px] md:max-w-[150px]",
672
672
  i === "lg" && "max-w-[180px] md:max-w-[170px]",
673
673
  i === "xl" && "max-w-[200px]",
674
- n
674
+ o
675
675
  ),
676
676
  label: r,
677
677
  name: e,
678
- note: o,
678
+ note: n,
679
679
  placeholder: t,
680
680
  size: i,
681
681
  type: "date",
682
682
  ...a
683
683
  }
684
- ), Os = ({ onDateSelection: e, initialValue: r, className: t, size: o = "default", error: n }) => {
685
- const [i, a] = Me(r), c = (d) => {
686
- a(d), d && e(d);
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);
687
687
  };
688
688
  return /* @__PURE__ */ s.jsxs(ne, { direction: "col", gap: "2", children: [
689
689
  /* @__PURE__ */ s.jsxs(It, { children: [
@@ -691,7 +691,7 @@ const Ms = ({ label: e, name: r, value: t, checked: o, onCheckedChange: n }) =>
691
691
  Te,
692
692
  {
693
693
  className: A("w-[280px] justify-start text-left font-normal", !i && "text-muted-foreground", t),
694
- size: o,
694
+ size: n,
695
695
  variant: "outline",
696
696
  children: [
697
697
  /* @__PURE__ */ s.jsx(jn, { className: "mr-2 h-4 w-4" }),
@@ -701,11 +701,11 @@ const Ms = ({ label: e, name: r, value: t, checked: o, onCheckedChange: n }) =>
701
701
  ) }),
702
702
  /* @__PURE__ */ s.jsx(kt, { className: "w-auto p-0", children: /* @__PURE__ */ s.jsx(nn, { autoFocus: !0, mode: "single", onSelect: c, selected: i }) })
703
703
  ] }),
704
- n && /* @__PURE__ */ s.jsx(je, { message: n })
704
+ o && /* @__PURE__ */ s.jsx(je, { message: o })
705
705
  ] });
706
- }, je = ({ message: e }) => /* @__PURE__ */ s.jsx(Ae, { size: "xs", variant: "destructive", children: e }), uo = ({ label: e, labelFor: r, className: t = "", labelClassName: o = "", children: n }) => /* @__PURE__ */ s.jsxs(ne, { direction: "col", gap: "2", children: [
707
- e && /* @__PURE__ */ s.jsx(ae, { className: o, 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: n })
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 })
709
709
  ] });
710
710
  var po = "Label", Ut = l.forwardRef((e, r) => /* @__PURE__ */ s.jsx(
711
711
  N.label,
@@ -732,19 +732,19 @@ function mo({ className: e, ...r }) {
732
732
  }
733
733
  );
734
734
  }
735
- const ae = ({ htmlFor: e, value: r, children: t, size: o = "md", className: n = "", ...i }) => /* @__PURE__ */ s.jsx(
735
+ const ae = ({ htmlFor: e, value: r, children: t, size: n = "md", className: o = "", ...i }) => /* @__PURE__ */ s.jsx(
736
736
  mo,
737
737
  {
738
738
  className: A(
739
739
  "font-display font-normal text-foreground",
740
740
  {
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"
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"
746
746
  },
747
- n
747
+ o
748
748
  ),
749
749
  htmlFor: e,
750
750
  ...i,
@@ -754,13 +754,13 @@ const ae = ({ htmlFor: e, value: r, children: t, size: o = "md", className: n =
754
754
  name: e,
755
755
  type: r = "text",
756
756
  placeholder: t,
757
- label: o,
758
- labelOrientation: n = "top",
757
+ label: n,
758
+ labelOrientation: o = "top",
759
759
  note: i,
760
760
  size: a = "md",
761
761
  className: c,
762
- error: d,
763
- ...u
762
+ error: u,
763
+ ...d
764
764
  }) => {
765
765
  const p = A(
766
766
  "flex w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 shadow-xs outline-none",
@@ -776,31 +776,31 @@ const ae = ({ htmlFor: e, value: r, children: t, size: o = "md", className: n =
776
776
  a === "xl" && "h-11 text-xl md:text-lg",
777
777
  c
778
778
  );
779
- return /* @__PURE__ */ s.jsxs(ne, { className: "w-full", direction: n === "left" ? "row" : "col", gap: "2", children: [
780
- o && /* @__PURE__ */ s.jsx(ae, { className: n === "left" ? "text-nowrap" : "", htmlFor: e, size: a, children: o }),
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
781
  /* @__PURE__ */ s.jsx(
782
782
  "input",
783
783
  {
784
- "aria-label": o || e,
784
+ "aria-label": n || 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
- ...u
791
+ ...d
792
792
  }
793
793
  ),
794
794
  i && /* @__PURE__ */ s.jsx(Ae, { size: "sm", variant: "muted", children: i }),
795
- d && /* @__PURE__ */ s.jsx(je, { message: d })
795
+ u && /* @__PURE__ */ s.jsx(je, { message: u })
796
796
  ] });
797
797
  }, Fs = ({
798
798
  name: e,
799
799
  label: r,
800
800
  placeholder: t,
801
- note: o,
801
+ note: n,
802
802
  // Default to two decimal places for currency and general decimal values
803
- step: n = ".01",
803
+ step: o = ".01",
804
804
  className: i,
805
805
  ...a
806
806
  }) => /* @__PURE__ */ s.jsx(
@@ -809,9 +809,9 @@ const ae = ({ htmlFor: e, value: r, children: t, size: o = "md", className: n =
809
809
  className: i,
810
810
  label: r,
811
811
  name: e,
812
- note: o,
812
+ note: n,
813
813
  placeholder: t,
814
- step: n,
814
+ step: o,
815
815
  type: "number",
816
816
  ...a
817
817
  }
@@ -820,30 +820,30 @@ 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: o,
824
- checked: n = !1,
823
+ name: n,
824
+ checked: o = !1,
825
825
  required: i,
826
826
  disabled: a,
827
827
  value: c = "on",
828
- onCheck: d,
829
- form: u,
828
+ onCheck: u,
829
+ form: d,
830
830
  ...p
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__ */ s.jsxs(vo, { scope: t, checked: n, disabled: a, children: [
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
833
  /* @__PURE__ */ s.jsx(
834
834
  N.button,
835
835
  {
836
836
  type: "button",
837
837
  role: "radio",
838
- "aria-checked": n,
839
- "data-state": Zt(n),
838
+ "aria-checked": o,
839
+ "data-state": Zt(o),
840
840
  "data-disabled": a ? "" : void 0,
841
841
  disabled: a,
842
842
  value: c,
843
843
  ...p,
844
844
  ref: g,
845
845
  onClick: _(e.onClick, (v) => {
846
- n || d?.(), m && (w.current = v.isPropagationStopped(), w.current || v.stopPropagation());
846
+ o || u?.(), m && (w.current = v.isPropagationStopped(), w.current || v.stopPropagation());
847
847
  })
848
848
  }
849
849
  ),
@@ -852,12 +852,12 @@ var ft = "Radio", [ho, zt] = ve(ft), [vo, xo] = ho(ft), Wt = l.forwardRef(
852
852
  {
853
853
  control: f,
854
854
  bubbles: !w.current,
855
- name: o,
855
+ name: n,
856
856
  value: c,
857
- checked: n,
857
+ checked: o,
858
858
  required: i,
859
859
  disabled: a,
860
- form: u,
860
+ form: d,
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: o, ...n } = e, i = xo(qt, t);
871
- return /* @__PURE__ */ s.jsx(Ct, { present: o || i.checked, children: /* @__PURE__ */ s.jsx(
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
872
  N.span,
873
873
  {
874
874
  "data-state": Zt(i.checked),
875
875
  "data-disabled": i.disabled ? "" : void 0,
876
- ...n,
876
+ ...o,
877
877
  ref: r
878
878
  }
879
879
  ) });
@@ -885,10 +885,10 @@ var go = "RadioBubbleInput", Xt = l.forwardRef(
885
885
  __scopeRadio: e,
886
886
  control: r,
887
887
  checked: t,
888
- bubbles: o = !0,
889
- ...n
888
+ bubbles: n = !0,
889
+ ...o
890
890
  }, i) => {
891
- const a = l.useRef(null), c = V(a, i), d = Ee(t), u = Oe(r);
891
+ const a = l.useRef(null), c = V(a, i), u = Ee(t), d = Oe(r);
892
892
  return l.useEffect(() => {
893
893
  const p = a.current;
894
894
  if (!p) return;
@@ -896,22 +896,22 @@ var go = "RadioBubbleInput", Xt = l.forwardRef(
896
896
  f,
897
897
  "checked"
898
898
  ).set;
899
- if (d !== t && g) {
900
- const w = new Event("click", { bubbles: o });
899
+ if (u !== t && g) {
900
+ const w = new Event("click", { bubbles: n });
901
901
  g.call(p, t), p.dispatchEvent(w);
902
902
  }
903
- }, [d, t, o]), /* @__PURE__ */ s.jsx(
903
+ }, [u, t, n]), /* @__PURE__ */ s.jsx(
904
904
  N.input,
905
905
  {
906
906
  type: "radio",
907
907
  "aria-hidden": !0,
908
908
  defaultChecked: t,
909
- ...n,
909
+ ...o,
910
910
  tabIndex: -1,
911
911
  ref: c,
912
912
  style: {
913
- ...n.style,
914
- ...u,
913
+ ...o.style,
914
+ ...d,
915
915
  position: "absolute",
916
916
  pointerEvents: "none",
917
917
  opacity: 0,
@@ -932,19 +932,19 @@ var bo = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Le = "RadioGroup",
932
932
  (e, r) => {
933
933
  const {
934
934
  __scopeRadioGroup: t,
935
- name: o,
936
- defaultValue: n,
935
+ name: n,
936
+ defaultValue: o,
937
937
  value: i,
938
938
  required: a = !1,
939
939
  disabled: c = !1,
940
- orientation: d,
941
- dir: u,
940
+ orientation: u,
941
+ dir: d,
942
942
  loop: p = !0,
943
943
  onValueChange: f,
944
944
  ...x
945
- } = e, g = Jt(t), w = De(u), [m, v] = pe({
945
+ } = e, g = Jt(t), w = De(d), [m, v] = pe({
946
946
  prop: i,
947
- defaultProp: n ?? null,
947
+ defaultProp: o ?? null,
948
948
  onChange: f,
949
949
  caller: Le
950
950
  });
@@ -952,7 +952,7 @@ var bo = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Le = "RadioGroup",
952
952
  So,
953
953
  {
954
954
  scope: t,
955
- name: o,
955
+ name: n,
956
956
  required: a,
957
957
  disabled: c,
958
958
  value: m,
@@ -962,7 +962,7 @@ var bo = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Le = "RadioGroup",
962
962
  {
963
963
  asChild: !0,
964
964
  ...g,
965
- orientation: d,
965
+ orientation: u,
966
966
  dir: w,
967
967
  loop: p,
968
968
  children: /* @__PURE__ */ s.jsx(
@@ -970,7 +970,7 @@ var bo = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Le = "RadioGroup",
970
970
  {
971
971
  role: "radiogroup",
972
972
  "aria-required": a,
973
- "aria-orientation": d,
973
+ "aria-orientation": u,
974
974
  "data-disabled": c ? "" : void 0,
975
975
  dir: w,
976
976
  ...x,
@@ -986,7 +986,7 @@ var bo = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Le = "RadioGroup",
986
986
  er.displayName = Le;
987
987
  var tr = "RadioGroupItem", rr = l.forwardRef(
988
988
  (e, r) => {
989
- const { __scopeRadioGroup: t, disabled: o, ...n } = e, i = yo(tr, t), a = i.disabled || o, c = Jt(t), d = Qt(t), u = l.useRef(null), p = V(r, u), f = i.value === n.value, x = l.useRef(!1);
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);
990
990
  return l.useEffect(() => {
991
991
  const g = (m) => {
992
992
  bo.includes(m.key) && (x.current = !0);
@@ -1007,16 +1007,16 @@ var tr = "RadioGroupItem", rr = l.forwardRef(
1007
1007
  disabled: a,
1008
1008
  required: i.required,
1009
1009
  checked: f,
1010
- ...d,
1011
- ...n,
1010
+ ...u,
1011
+ ...o,
1012
1012
  name: i.name,
1013
1013
  ref: p,
1014
- onCheck: () => i.onValueChange(n.value),
1014
+ onCheck: () => i.onValueChange(o.value),
1015
1015
  onKeyDown: _((g) => {
1016
1016
  g.key === "Enter" && g.preventDefault();
1017
1017
  }),
1018
- onFocus: _(n.onFocus, () => {
1019
- x.current && u.current?.click();
1018
+ onFocus: _(o.onFocus, () => {
1019
+ x.current && d.current?.click();
1020
1020
  })
1021
1021
  }
1022
1022
  )
@@ -1027,8 +1027,8 @@ 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, ...o } = e, n = Qt(t);
1031
- return /* @__PURE__ */ s.jsx(Yt, { ...n, ...o, ref: r });
1030
+ const { __scopeRadioGroup: t, ...n } = e, o = Qt(t);
1031
+ return /* @__PURE__ */ s.jsx(Yt, { ...o, ...n, ref: r });
1032
1032
  }
1033
1033
  );
1034
1034
  nr.displayName = Co;
@@ -1057,8 +1057,8 @@ function jo({ className: e, ...r }) {
1057
1057
  }
1058
1058
  );
1059
1059
  }
1060
- const Bs = ({ label: e, name: r, options: t, value: o, onChange: n, 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: n, value: o, children: /* @__PURE__ */ s.jsx(dn, { cols: "2", children: t.map((a, c) => /* @__PURE__ */ s.jsxs(ne, { align: "center", gap: "2", justify: "start", children: [
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
1062
  /* @__PURE__ */ s.jsx(jo, { id: a.value, value: a.value }),
1063
1063
  /* @__PURE__ */ s.jsx(ae, { htmlFor: a.value, children: a.label })
1064
1064
  ] }, c)) }) }),
@@ -1074,27 +1074,27 @@ var No = [" ", "Enter", "ArrowUp", "ArrowDown"], _o = [" ", "Enter"], fe = "Sele
1074
1074
  const {
1075
1075
  __scopeSelect: r,
1076
1076
  children: t,
1077
- open: o,
1078
- defaultOpen: n,
1077
+ open: n,
1078
+ defaultOpen: o,
1079
1079
  onOpenChange: i,
1080
1080
  value: a,
1081
1081
  defaultValue: c,
1082
- onValueChange: d,
1083
- dir: u,
1082
+ onValueChange: u,
1083
+ dir: d,
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(u), [j, L] = pe({
1090
- prop: o,
1091
- defaultProp: n ?? !1,
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
1092
  onChange: i,
1093
1093
  caller: fe
1094
1094
  }), [Z, z] = pe({
1095
1095
  prop: a,
1096
1096
  defaultProp: c,
1097
- onChange: d,
1097
+ onChange: u,
1098
1098
  caller: fe
1099
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
1100
  return /* @__PURE__ */ s.jsx(pn, { ...m, children: /* @__PURE__ */ s.jsxs(
@@ -1159,8 +1159,8 @@ 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: o = !1, ...n } = e, i = Ve(t), a = ie(ar, t), c = a.disabled || o, d = V(r, a.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 === a.value), S = Nr(v, m, b);
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
1164
  S !== void 0 && a.onValueChange(S.value);
1165
1165
  }), w = (m) => {
1166
1166
  c || (a.onOpenChange(!0), g()), m && (a.triggerPointerDownPosRef.current = {
@@ -1182,17 +1182,17 @@ var ar = "SelectTrigger", sr = l.forwardRef(
1182
1182
  disabled: c,
1183
1183
  "data-disabled": c ? "" : void 0,
1184
1184
  "data-placeholder": Er(a.value) ? "" : void 0,
1185
- ...n,
1186
- ref: d,
1187
- onClick: _(n.onClick, (m) => {
1185
+ ...o,
1186
+ ref: u,
1187
+ onClick: _(o.onClick, (m) => {
1188
1188
  m.currentTarget.focus(), p.current !== "mouse" && w(m);
1189
1189
  }),
1190
- onPointerDown: _(n.onPointerDown, (m) => {
1190
+ onPointerDown: _(o.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: _(n.onKeyDown, (m) => {
1195
+ onKeyDown: _(o.onKeyDown, (m) => {
1196
1196
  const v = f.current !== "";
1197
1197
  !(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && x(m.key), !(v && m.key === " ") && No.includes(m.key) && (w(), m.preventDefault());
1198
1198
  })
@@ -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: o, style: n, children: i, placeholder: a = "", ...c } = e, d = ie(ir, t), { onValueNodeHasChildrenChange: u } = d, p = i !== void 0, f = V(r, d.onValueNodeChange);
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);
1207
1207
  return oe(() => {
1208
- u(p);
1209
- }, [u, p]), /* @__PURE__ */ s.jsx(
1208
+ d(p);
1209
+ }, [d, p]), /* @__PURE__ */ s.jsx(
1210
1210
  N.span,
1211
1211
  {
1212
1212
  ...c,
1213
1213
  ref: f,
1214
1214
  style: { pointerEvents: "none" },
1215
- children: Er(d.value) ? /* @__PURE__ */ s.jsx(s.Fragment, { children: a }) : i
1215
+ children: Er(u.value) ? /* @__PURE__ */ s.jsx(s.Fragment, { children: a }) : i
1216
1216
  }
1217
1217
  );
1218
1218
  }
@@ -1220,8 +1220,8 @@ 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: o, ...n } = e;
1224
- return /* @__PURE__ */ s.jsx(N.span, { "aria-hidden": !0, ...n, ref: r, children: o || "▼" });
1223
+ const { __scopeSelect: t, children: n, ...o } = e;
1224
+ return /* @__PURE__ */ s.jsx(N.span, { "aria-hidden": !0, ...o, ref: r, children: n || "▼" });
1225
1225
  }
1226
1226
  );
1227
1227
  cr.displayName = Do;
@@ -1229,11 +1229,11 @@ var Oo = "SelectPortal", dr = (e) => /* @__PURE__ */ s.jsx(mn, { asChild: !0, ..
1229
1229
  dr.displayName = Oo;
1230
1230
  var me = "SelectContent", ur = l.forwardRef(
1231
1231
  (e, r) => {
1232
- const t = ie(me, e.__scopeSelect), [o, n] = l.useState();
1232
+ const t = ie(me, e.__scopeSelect), [n, o] = l.useState();
1233
1233
  if (oe(() => {
1234
- n(new DocumentFragment());
1234
+ o(new DocumentFragment());
1235
1235
  }, []), !t.open) {
1236
- const i = o;
1236
+ const i = n;
1237
1237
  return i ? Nt.createPortal(
1238
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
1239
  i
@@ -1247,15 +1247,15 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1247
1247
  (e, r) => {
1248
1248
  const {
1249
1249
  __scopeSelect: t,
1250
- position: o = "item-aligned",
1251
- onCloseAutoFocus: n,
1250
+ position: n = "item-aligned",
1251
+ onCloseAutoFocus: o,
1252
1252
  onEscapeKeyDown: i,
1253
1253
  onPointerDownOutside: a,
1254
1254
  //
1255
1255
  // PopperContent props
1256
1256
  side: c,
1257
- sideOffset: d,
1258
- align: u,
1257
+ sideOffset: u,
1258
+ align: d,
1259
1259
  alignOffset: p,
1260
1260
  arrowPadding: f,
1261
1261
  collisionBoundary: x,
@@ -1322,10 +1322,10 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1322
1322
  (S.value !== void 0 && S.value === M || $) && O(C);
1323
1323
  },
1324
1324
  [S.value]
1325
- ), I = o === "popper" ? et : mr, T = I === et ? {
1325
+ ), I = n === "popper" ? et : mr, T = I === et ? {
1326
1326
  side: c,
1327
- sideOffset: d,
1328
- align: u,
1327
+ sideOffset: u,
1328
+ align: d,
1329
1329
  alignOffset: p,
1330
1330
  arrowPadding: f,
1331
1331
  collisionBoundary: x,
@@ -1347,7 +1347,7 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1347
1347
  itemTextRefCallback: E,
1348
1348
  focusSelectedItem: G,
1349
1349
  selectedItemText: z,
1350
- position: o,
1350
+ position: n,
1351
1351
  isPositioned: X,
1352
1352
  searchRef: xe,
1353
1353
  children: /* @__PURE__ */ s.jsx(gn, { as: Lo, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
@@ -1358,7 +1358,7 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1358
1358
  onMountAutoFocus: (C) => {
1359
1359
  C.preventDefault();
1360
1360
  },
1361
- onUnmountAutoFocus: _(n, (C) => {
1361
+ onUnmountAutoFocus: _(o, (C) => {
1362
1362
  S.trigger?.focus({ preventScroll: !0 }), C.preventDefault();
1363
1363
  }),
1364
1364
  children: /* @__PURE__ */ s.jsx(
@@ -1413,9 +1413,9 @@ var Q = 10, [pr, le] = we(me), Fo = "SelectContentImpl", Lo = on("SelectContent.
1413
1413
  );
1414
1414
  fr.displayName = Fo;
1415
1415
  var Bo = "SelectItemAlignedPosition", mr = l.forwardRef((e, r) => {
1416
- const { __scopeSelect: t, onPlaced: o, ...n } = e, i = ie(me, t), a = 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 } = a, y = l.useCallback(() => {
1417
- if (i.trigger && i.valueNode && c && u && m && v && b) {
1418
- const j = i.trigger.getBoundingClientRect(), L = u.getBoundingClientRect(), Z = i.valueNode.getBoundingClientRect(), z = b.getBoundingClientRect();
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
1419
  if (i.dir !== "rtl") {
1420
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, [
1421
1421
  Q,
@@ -1434,11 +1434,11 @@ var Bo = "SelectItemAlignedPosition", mr = l.forwardRef((e, r) => {
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(u), 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;
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
1438
  if (M <= E) {
1439
1439
  const H = O.length > 0 && v === O[O.length - 1].ref.current;
1440
1440
  c.style.bottom = "0px";
1441
- const Y = u.clientHeight - m.offsetTop - m.offsetHeight, de = Math.max(
1441
+ const Y = d.clientHeight - m.offsetTop - m.offsetHeight, de = Math.max(
1442
1442
  I,
1443
1443
  T + // viewport might have padding bottom, include it to avoid a scrollable viewport
1444
1444
  (H ? k : 0) + Y + G
@@ -1454,25 +1454,25 @@ var Bo = "SelectItemAlignedPosition", mr = l.forwardRef((e, r) => {
1454
1454
  ) + B;
1455
1455
  c.style.height = de + "px", m.scrollTop = M - E + m.offsetTop;
1456
1456
  }
1457
- c.style.margin = `${Q}px 0`, c.style.minHeight = xe + "px", c.style.maxHeight = K + "px", o?.(), requestAnimationFrame(() => g.current = !0);
1457
+ c.style.margin = `${Q}px 0`, c.style.minHeight = xe + "px", c.style.maxHeight = K + "px", n?.(), requestAnimationFrame(() => g.current = !0);
1458
1458
  }
1459
1459
  }, [
1460
1460
  x,
1461
1461
  i.trigger,
1462
1462
  i.valueNode,
1463
1463
  c,
1464
- u,
1464
+ d,
1465
1465
  m,
1466
1466
  v,
1467
1467
  b,
1468
1468
  i.dir,
1469
- o
1469
+ n
1470
1470
  ]);
1471
1471
  oe(() => y(), [y]);
1472
1472
  const [R, D] = l.useState();
1473
1473
  oe(() => {
1474
- u && D(window.getComputedStyle(u).zIndex);
1475
- }, [u]);
1474
+ d && D(window.getComputedStyle(d).zIndex);
1475
+ }, [d]);
1476
1476
  const P = l.useCallback(
1477
1477
  (j) => {
1478
1478
  j && w.current === !0 && (y(), S?.(), w.current = !1);
@@ -1489,7 +1489,7 @@ var Bo = "SelectItemAlignedPosition", mr = l.forwardRef((e, r) => {
1489
1489
  children: /* @__PURE__ */ s.jsx(
1490
1490
  "div",
1491
1491
  {
1492
- ref: d,
1492
+ ref: u,
1493
1493
  style: {
1494
1494
  display: "flex",
1495
1495
  flexDirection: "column",
@@ -1499,7 +1499,7 @@ var Bo = "SelectItemAlignedPosition", mr = l.forwardRef((e, r) => {
1499
1499
  children: /* @__PURE__ */ s.jsx(
1500
1500
  N.div,
1501
1501
  {
1502
- ...n,
1502
+ ...o,
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
- ...n.style
1510
+ ...o.style
1511
1511
  }
1512
1512
  }
1513
1513
  )
@@ -1520,8 +1520,8 @@ mr.displayName = Bo;
1520
1520
  var $o = "SelectPopperPosition", et = l.forwardRef((e, r) => {
1521
1521
  const {
1522
1522
  __scopeSelect: t,
1523
- align: o = "start",
1524
- collisionPadding: n = Q,
1523
+ align: n = "start",
1524
+ collisionPadding: o = Q,
1525
1525
  ...i
1526
1526
  } = e, a = Ve(t);
1527
1527
  return /* @__PURE__ */ s.jsx(
@@ -1530,8 +1530,8 @@ var $o = "SelectPopperPosition", et = l.forwardRef((e, r) => {
1530
1530
  ...a,
1531
1531
  ...i,
1532
1532
  ref: r,
1533
- align: o,
1534
- collisionPadding: n,
1533
+ align: n,
1534
+ collisionPadding: o,
1535
1535
  style: {
1536
1536
  // Ensure border-box for floating-ui calculations
1537
1537
  boxSizing: "border-box",
@@ -1548,7 +1548,7 @@ 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: o, ...n } = e, i = le(tt, t), a = mt(tt, t), c = V(r, i.onViewportChange), d = l.useRef(0);
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
1552
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1553
1553
  /* @__PURE__ */ s.jsx(
1554
1554
  "style",
@@ -1556,7 +1556,7 @@ var [Vo, mt] = we(me, {}), tt = "SelectViewport", hr = l.forwardRef(
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: o
1559
+ nonce: n
1560
1560
  }
1561
1561
  ),
1562
1562
  /* @__PURE__ */ s.jsx(Be.Slot, { scope: t, children: /* @__PURE__ */ s.jsx(
@@ -1564,7 +1564,7 @@ var [Vo, mt] = we(me, {}), tt = "SelectViewport", hr = l.forwardRef(
1564
1564
  {
1565
1565
  "data-radix-select-viewport": "",
1566
1566
  role: "presentation",
1567
- ...n,
1567
+ ...o,
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
- ...n.style
1580
+ ...o.style
1581
1581
  },
1582
- onScroll: _(n.onScroll, (u) => {
1583
- const p = u.currentTarget, { contentWrapper: f, shouldExpandOnScrollRef: x } = a;
1582
+ onScroll: _(o.onScroll, (d) => {
1583
+ const p = d.currentTarget, { contentWrapper: f, shouldExpandOnScrollRef: x } = a;
1584
1584
  if (x?.current && f) {
1585
- const g = Math.abs(d.current - p.scrollTop);
1585
+ const g = Math.abs(u.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
- d.current = p.scrollTop;
1594
+ u.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, ...o } = e, n = te();
1605
- return /* @__PURE__ */ s.jsx(Ko, { scope: t, id: n, children: /* @__PURE__ */ s.jsx(N.div, { role: "group", "aria-labelledby": n, ...o, ref: 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 }) });
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, ...o } = e, n = Ho(xr, t);
1612
- return /* @__PURE__ */ s.jsx(N.div, { id: n.id, ...o, ref: r });
1611
+ const { __scopeSelect: t, ...n } = e, o = Ho(xr, t);
1612
+ return /* @__PURE__ */ s.jsx(N.div, { id: o.id, ...n, ref: r });
1613
1613
  }
1614
1614
  );
1615
1615
  Go.displayName = xr;
@@ -1617,17 +1617,17 @@ var Pe = "SelectItem", [zo, gr] = we(Pe), br = l.forwardRef(
1617
1617
  (e, r) => {
1618
1618
  const {
1619
1619
  __scopeSelect: t,
1620
- value: o,
1621
- disabled: n = !1,
1620
+ value: n,
1621
+ disabled: o = !1,
1622
1622
  textValue: i,
1623
1623
  ...a
1624
- } = e, c = ie(Pe, t), d = le(Pe, t), u = c.value === o, [p, f] = l.useState(i ?? ""), [x, g] = l.useState(!1), w = V(
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(
1625
1625
  r,
1626
- (S) => d.itemRefCallback?.(S, o, n)
1626
+ (S) => u.itemRefCallback?.(S, n, o)
1627
1627
  ), m = te(), v = l.useRef("touch"), b = () => {
1628
- n || (c.onValueChange(o), c.onOpenChange(!1));
1628
+ o || (c.onValueChange(n), c.onOpenChange(!1));
1629
1629
  };
1630
- if (o === "")
1630
+ if (n === "")
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
  );
@@ -1635,10 +1635,10 @@ var Pe = "SelectItem", [zo, gr] = we(Pe), br = l.forwardRef(
1635
1635
  zo,
1636
1636
  {
1637
1637
  scope: t,
1638
- value: o,
1639
- disabled: n,
1638
+ value: n,
1639
+ disabled: o,
1640
1640
  textId: m,
1641
- isSelected: u,
1641
+ isSelected: d,
1642
1642
  onItemTextChange: l.useCallback((S) => {
1643
1643
  f((y) => y || (S?.textContent ?? "").trim());
1644
1644
  }, []),
@@ -1646,8 +1646,8 @@ var Pe = "SelectItem", [zo, gr] = we(Pe), br = l.forwardRef(
1646
1646
  Be.ItemSlot,
1647
1647
  {
1648
1648
  scope: t,
1649
- value: o,
1650
- disabled: n,
1649
+ value: n,
1650
+ disabled: o,
1651
1651
  textValue: p,
1652
1652
  children: /* @__PURE__ */ s.jsx(
1653
1653
  N.div,
@@ -1655,11 +1655,11 @@ var Pe = "SelectItem", [zo, gr] = we(Pe), br = l.forwardRef(
1655
1655
  role: "option",
1656
1656
  "aria-labelledby": m,
1657
1657
  "data-highlighted": x ? "" : void 0,
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,
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
1663
  ...a,
1664
1664
  ref: w,
1665
1665
  onFocus: _(a.onFocus, () => g(!0)),
@@ -1674,13 +1674,13 @@ var Pe = "SelectItem", [zo, gr] = we(Pe), br = l.forwardRef(
1674
1674
  v.current = S.pointerType;
1675
1675
  }),
1676
1676
  onPointerMove: _(a.onPointerMove, (S) => {
1677
- v.current = S.pointerType, n ? d.onItemLeave?.() : v.current === "mouse" && S.currentTarget.focus({ preventScroll: !0 });
1677
+ v.current = S.pointerType, o ? u.onItemLeave?.() : v.current === "mouse" && S.currentTarget.focus({ preventScroll: !0 });
1678
1678
  }),
1679
1679
  onPointerLeave: _(a.onPointerLeave, (S) => {
1680
- S.currentTarget === document.activeElement && d.onItemLeave?.();
1680
+ S.currentTarget === document.activeElement && u.onItemLeave?.();
1681
1681
  }),
1682
1682
  onKeyDown: _(a.onKeyDown, (S) => {
1683
- d.searchRef?.current !== "" && S.key === " " || (_o.includes(S.key) && b(), S.key === " " && S.preventDefault());
1683
+ u.searchRef?.current !== "" && S.key === " " || (_o.includes(S.key) && b(), S.key === " " && S.preventDefault());
1684
1684
  })
1685
1685
  }
1686
1686
  )
@@ -1693,123 +1693,123 @@ 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: o, style: n, ...i } = e, a = ie(Ie, t), c = le(Ie, t), d = gr(Ie, t), u = Ao(Ie, t), [p, f] = l.useState(null), x = V(
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(
1697
1697
  r,
1698
1698
  (b) => f(b),
1699
- d.onItemTextChange,
1700
- (b) => c.itemTextRefCallback?.(b, d.value, d.disabled)
1699
+ u.onItemTextChange,
1700
+ (b) => c.itemTextRefCallback?.(b, u.value, u.disabled)
1701
1701
  ), g = p?.textContent, w = l.useMemo(
1702
- () => /* @__PURE__ */ s.jsx("option", { value: d.value, disabled: d.disabled, children: g }, d.value),
1703
- [d.disabled, d.value, g]
1704
- ), { onNativeOptionAdd: m, onNativeOptionRemove: v } = u;
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
1705
  return oe(() => (m(w), () => v(w)), [m, v, w]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1706
- /* @__PURE__ */ s.jsx(N.span, { id: d.textId, ...i, ref: x }),
1707
- d.isSelected && a.valueNode && !a.valueNodeHasChildren ? Nt.createPortal(i.children, a.valueNode) : null
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
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, ...o } = e;
1715
- return gr(Sr, t).isSelected ? /* @__PURE__ */ s.jsx(N.span, { "aria-hidden": !0, ...o, ref: r }) : null;
1714
+ const { __scopeSelect: t, ...n } = e;
1715
+ return gr(Sr, t).isSelected ? /* @__PURE__ */ s.jsx(N.span, { "aria-hidden": !0, ...n, 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), o = mt(rt, e.__scopeSelect), [n, i] = l.useState(!1), a = V(r, o.onScrollButtonChange);
1720
+ const t = le(rt, e.__scopeSelect), n = mt(rt, e.__scopeSelect), [o, i] = l.useState(!1), a = V(r, n.onScrollButtonChange);
1721
1721
  return oe(() => {
1722
1722
  if (t.viewport && t.isPositioned) {
1723
1723
  let c = function() {
1724
- const u = d.scrollTop > 0;
1725
- i(u);
1724
+ const d = u.scrollTop > 0;
1725
+ i(d);
1726
1726
  };
1727
- const d = t.viewport;
1728
- return c(), d.addEventListener("scroll", c), () => d.removeEventListener("scroll", c);
1727
+ const u = t.viewport;
1728
+ return c(), u.addEventListener("scroll", c), () => u.removeEventListener("scroll", c);
1729
1729
  }
1730
- }, [t.viewport, t.isPositioned]), n ? /* @__PURE__ */ s.jsx(
1730
+ }, [t.viewport, t.isPositioned]), o ? /* @__PURE__ */ s.jsx(
1731
1731
  Rr,
1732
1732
  {
1733
1733
  ...e,
1734
1734
  ref: a,
1735
1735
  onAutoScroll: () => {
1736
- const { viewport: c, selectedItem: d } = t;
1737
- c && d && (c.scrollTop = c.scrollTop - d.offsetHeight);
1736
+ const { viewport: c, selectedItem: u } = t;
1737
+ c && u && (c.scrollTop = c.scrollTop - u.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), o = mt(nt, e.__scopeSelect), [n, i] = l.useState(!1), a = V(r, o.onScrollButtonChange);
1744
+ const t = le(nt, e.__scopeSelect), n = mt(nt, e.__scopeSelect), [o, i] = l.useState(!1), a = V(r, n.onScrollButtonChange);
1745
1745
  return oe(() => {
1746
1746
  if (t.viewport && t.isPositioned) {
1747
1747
  let c = function() {
1748
- const u = d.scrollHeight - d.clientHeight, p = Math.ceil(d.scrollTop) < u;
1748
+ const d = u.scrollHeight - u.clientHeight, p = Math.ceil(u.scrollTop) < d;
1749
1749
  i(p);
1750
1750
  };
1751
- const d = t.viewport;
1752
- return c(), d.addEventListener("scroll", c), () => d.removeEventListener("scroll", c);
1751
+ const u = t.viewport;
1752
+ return c(), u.addEventListener("scroll", c), () => u.removeEventListener("scroll", c);
1753
1753
  }
1754
- }, [t.viewport, t.isPositioned]), n ? /* @__PURE__ */ s.jsx(
1754
+ }, [t.viewport, t.isPositioned]), o ? /* @__PURE__ */ s.jsx(
1755
1755
  Rr,
1756
1756
  {
1757
1757
  ...e,
1758
1758
  ref: a,
1759
1759
  onAutoScroll: () => {
1760
- const { viewport: c, selectedItem: d } = t;
1761
- c && d && (c.scrollTop = c.scrollTop + d.offsetHeight);
1760
+ const { viewport: c, selectedItem: u } = t;
1761
+ c && u && (c.scrollTop = c.scrollTop + u.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: o, ...n } = e, i = le("SelectScrollButton", t), a = l.useRef(null), c = $e(t), d = l.useCallback(() => {
1768
+ const { __scopeSelect: t, onAutoScroll: n, ...o } = e, i = le("SelectScrollButton", t), a = l.useRef(null), c = $e(t), u = l.useCallback(() => {
1769
1769
  a.current !== null && (window.clearInterval(a.current), a.current = null);
1770
1770
  }, []);
1771
- return l.useEffect(() => () => d(), [d]), oe(() => {
1771
+ return l.useEffect(() => () => u(), [u]), oe(() => {
1772
1772
  c().find((p) => p.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
1773
1773
  }, [c]), /* @__PURE__ */ s.jsx(
1774
1774
  N.div,
1775
1775
  {
1776
1776
  "aria-hidden": !0,
1777
- ...n,
1777
+ ...o,
1778
1778
  ref: r,
1779
- style: { flexShrink: 0, ...n.style },
1780
- onPointerDown: _(n.onPointerDown, () => {
1781
- a.current === null && (a.current = window.setInterval(o, 50));
1779
+ style: { flexShrink: 0, ...o.style },
1780
+ onPointerDown: _(o.onPointerDown, () => {
1781
+ a.current === null && (a.current = window.setInterval(n, 50));
1782
1782
  }),
1783
- onPointerMove: _(n.onPointerMove, () => {
1784
- i.onItemLeave?.(), a.current === null && (a.current = window.setInterval(o, 50));
1783
+ onPointerMove: _(o.onPointerMove, () => {
1784
+ i.onItemLeave?.(), a.current === null && (a.current = window.setInterval(n, 50));
1785
1785
  }),
1786
- onPointerLeave: _(n.onPointerLeave, () => {
1787
- d();
1786
+ onPointerLeave: _(o.onPointerLeave, () => {
1787
+ u();
1788
1788
  })
1789
1789
  }
1790
1790
  );
1791
1791
  }), Wo = "SelectSeparator", qo = l.forwardRef(
1792
1792
  (e, r) => {
1793
- const { __scopeSelect: t, ...o } = e;
1794
- return /* @__PURE__ */ s.jsx(N.div, { "aria-hidden": !0, ...o, ref: r });
1793
+ const { __scopeSelect: t, ...n } = e;
1794
+ return /* @__PURE__ */ s.jsx(N.div, { "aria-hidden": !0, ...n, 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, ...o } = e, n = Ve(t), i = ie(ot, t), a = le(ot, t);
1801
- return i.open && a.position === "popper" ? /* @__PURE__ */ s.jsx(yn, { ...n, ...o, ref: r }) : null;
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;
1802
1802
  }
1803
1803
  );
1804
1804
  Yo.displayName = ot;
1805
1805
  var Xo = "SelectBubbleInput", kr = l.forwardRef(
1806
- ({ __scopeSelect: e, value: r, ...t }, o) => {
1807
- const n = l.useRef(null), i = V(o, n), a = Ee(r);
1806
+ ({ __scopeSelect: e, value: r, ...t }, n) => {
1807
+ const o = l.useRef(null), i = V(n, o), a = Ee(r);
1808
1808
  return l.useEffect(() => {
1809
- const c = n.current;
1809
+ const c = o.current;
1810
1810
  if (!c) return;
1811
- const d = window.HTMLSelectElement.prototype, p = Object.getOwnPropertyDescriptor(
1812
- d,
1811
+ const u = window.HTMLSelectElement.prototype, p = Object.getOwnPropertyDescriptor(
1812
+ u,
1813
1813
  "value"
1814
1814
  ).set;
1815
1815
  if (a !== r && p) {
@@ -1832,30 +1832,30 @@ 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(""), o = l.useRef(0), n = l.useCallback(
1835
+ const r = yt(e), t = l.useRef(""), n = l.useRef(0), o = l.useCallback(
1836
1836
  (a) => {
1837
1837
  const c = t.current + a;
1838
- r(c), function d(u) {
1839
- t.current = u, window.clearTimeout(o.current), u !== "" && (o.current = window.setTimeout(() => d(""), 1e3));
1838
+ r(c), function u(d) {
1839
+ t.current = d, window.clearTimeout(n.current), d !== "" && (n.current = window.setTimeout(() => u(""), 1e3));
1840
1840
  }(c);
1841
1841
  },
1842
1842
  [r]
1843
1843
  ), i = l.useCallback(() => {
1844
- t.current = "", window.clearTimeout(o.current);
1844
+ t.current = "", window.clearTimeout(n.current);
1845
1845
  }, []);
1846
- return l.useEffect(() => () => window.clearTimeout(o.current), []), [t, n, i];
1846
+ return l.useEffect(() => () => window.clearTimeout(n.current), []), [t, o, i];
1847
1847
  }
1848
1848
  function Nr(e, r, t) {
1849
- const n = r.length > 1 && Array.from(r).every((u) => u === r[0]) ? r[0] : r, i = t ? e.indexOf(t) : -1;
1849
+ const o = r.length > 1 && Array.from(r).every((d) => d === r[0]) ? r[0] : r, i = t ? e.indexOf(t) : -1;
1850
1850
  let a = Zo(e, Math.max(i, 0));
1851
- n.length === 1 && (a = a.filter((u) => u !== t));
1852
- const d = a.find(
1853
- (u) => u.textValue.toLowerCase().startsWith(n.toLowerCase())
1851
+ o.length === 1 && (a = a.filter((d) => d !== t));
1852
+ const u = a.find(
1853
+ (d) => d.textValue.toLowerCase().startsWith(o.toLowerCase())
1854
1854
  );
1855
- return d !== t ? d : void 0;
1855
+ return u !== t ? u : void 0;
1856
1856
  }
1857
1857
  function Zo(e, r) {
1858
- return e.map((t, o) => e[(r + o) % e.length]);
1858
+ return e.map((t, n) => e[(r + n) % 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 }) {
@@ -1868,7 +1868,7 @@ function pa({
1868
1868
  className: e,
1869
1869
  size: r = "default",
1870
1870
  children: t,
1871
- ...o
1871
+ ...n
1872
1872
  }) {
1873
1873
  return /* @__PURE__ */ s.jsxs(
1874
1874
  Qo,
@@ -1879,7 +1879,7 @@ function pa({
1879
1879
  ),
1880
1880
  "data-size": r,
1881
1881
  "data-slot": "select-trigger",
1882
- ...o,
1882
+ ...n,
1883
1883
  children: [
1884
1884
  t,
1885
1885
  /* @__PURE__ */ s.jsx(ta, { asChild: !0, children: /* @__PURE__ */ s.jsx(jt, { className: "size-4 opacity-50" }) })
@@ -1891,13 +1891,13 @@ function fa({
1891
1891
  className: e,
1892
1892
  children: r,
1893
1893
  position: t = "popper",
1894
- align: o = "center",
1895
- ...n
1894
+ align: n = "center",
1895
+ ...o
1896
1896
  }) {
1897
1897
  return /* @__PURE__ */ s.jsx(ra, { children: /* @__PURE__ */ s.jsxs(
1898
1898
  na,
1899
1899
  {
1900
- align: o,
1900
+ align: n,
1901
1901
  className: A(
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",
@@ -1905,7 +1905,7 @@ function fa({
1905
1905
  ),
1906
1906
  "data-slot": "select-content",
1907
1907
  position: t,
1908
- ...n,
1908
+ ...o,
1909
1909
  children: [
1910
1910
  /* @__PURE__ */ s.jsx(ha, {}),
1911
1911
  /* @__PURE__ */ s.jsx(
@@ -1969,13 +1969,13 @@ const Vs = ({
1969
1969
  name: e,
1970
1970
  defaultValue: r,
1971
1971
  options: t,
1972
- label: o,
1973
- placeholder: n,
1972
+ label: n,
1973
+ placeholder: o,
1974
1974
  note: i,
1975
1975
  className: a,
1976
1976
  value: c,
1977
- onValueChange: d,
1978
- error: u,
1977
+ onValueChange: u,
1978
+ error: d,
1979
1979
  size: p = "md",
1980
1980
  ...f
1981
1981
  }) => {
@@ -1989,31 +1989,31 @@ const Vs = ({
1989
1989
  a
1990
1990
  ), g = p === "xs" || p === "sm" ? "sm" : "default";
1991
1991
  return /* @__PURE__ */ s.jsxs(ne, { className: "w-full", direction: "col", gap: "2", children: [
1992
- o && /* @__PURE__ */ s.jsx(ae, { htmlFor: e, children: o }),
1992
+ n && /* @__PURE__ */ s.jsx(ae, { htmlFor: e, children: n }),
1993
1993
  /* @__PURE__ */ s.jsxs(
1994
1994
  da,
1995
1995
  {
1996
1996
  defaultValue: r,
1997
1997
  name: e,
1998
- onValueChange: d,
1998
+ onValueChange: u,
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: n }) }),
2002
+ /* @__PURE__ */ s.jsx(pa, { className: x, "data-testid": `select-input-${e}`, size: g, children: /* @__PURE__ */ s.jsx(ua, { placeholder: o }) }),
2003
2003
  /* @__PURE__ */ s.jsx(fa, { children: t.map(({ value: w, label: m }) => /* @__PURE__ */ s.jsx(ma, { value: w, children: m }, `option-${w}`)) })
2004
2004
  ]
2005
2005
  }
2006
2006
  ),
2007
2007
  i && /* @__PURE__ */ s.jsx(Ae, { size: "sm", variant: "muted", children: i }),
2008
- u && /* @__PURE__ */ s.jsx(je, { message: u })
2008
+ d && /* @__PURE__ */ s.jsx(je, { message: d })
2009
2009
  ] });
2010
2010
  };
2011
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, o, n, i, a) {
2013
- if (i === r.length) return n === e.length ? gt : Sa;
2014
- var c = `${n},${i}`;
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
2015
  if (a[c] !== void 0) return a[c];
2016
- for (var d = o.charAt(i), u = t.indexOf(d, n), p = 0, f, x, g, w; u >= 0; ) f = at(e, r, t, o, u + 1, i + 1, a), 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(_r), w && n > 0 && (f *= Math.pow(Ze, w.length))) : (f *= ba, n > 0 && (f *= Math.pow(Ze, u - n))), e.charAt(u) !== r.charAt(i) && (f *= wa)), (f < Xe && t.charAt(u - 1) === o.charAt(i + 1) || o.charAt(i + 1) === o.charAt(i) && t.charAt(u - 1) !== o.charAt(i)) && (x = at(e, r, t, o, u + 1, i + 2, a), x * Xe > f && (f = x * Xe)), f > p && (p = f), u = t.indexOf(d, u + 1);
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
2017
  return a[c] = p, p;
2018
2018
  }
2019
2019
  function bt(e) {
@@ -2026,7 +2026,7 @@ var Ce = '[cmdk-group=""]', Je = '[cmdk-group-items=""]', ka = '[cmdk-group-head
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
- }), o = be(() => /* @__PURE__ */ new Set()), n = be(() => /* @__PURE__ */ new Map()), i = be(() => /* @__PURE__ */ new Map()), a = be(() => /* @__PURE__ */ new Set()), c = Or(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), P = La();
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();
2030
2030
  he(() => {
2031
2031
  if (p !== void 0) {
2032
2032
  let h = p.trim();
@@ -2062,17 +2062,17 @@ var Ce = '[cmdk-group=""]', Je = '[cmdk-group-items=""]', ka = '[cmdk-group-head
2062
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, () => {
2063
2063
  z(), j.emit();
2064
2064
  }));
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]))), P(3, () => {
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
2066
  K(), z(), t.current.value || O(), j.emit();
2067
2067
  }), () => {
2068
- i.current.delete(h), o.current.delete(h), t.current.filtered.items.delete(h);
2068
+ i.current.delete(h), n.current.delete(h), t.current.filtered.items.delete(h);
2069
2069
  let E = W();
2070
2070
  P(4, () => {
2071
2071
  K(), E?.getAttribute("id") === h && O(), j.emit();
2072
2072
  });
2073
- }), group: (h) => (n.current.has(h) || n.current.set(h, /* @__PURE__ */ new Set()), () => {
2074
- i.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 }), []);
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 }), []);
2076
2076
  function Z(h, k) {
2077
2077
  var E, I;
2078
2078
  let T = (I = (E = c.current) == null ? void 0 : E.filter) != null ? I : Ea;
@@ -2082,7 +2082,7 @@ var Ce = '[cmdk-group=""]', Je = '[cmdk-group-items=""]', ka = '[cmdk-group-head
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 = n.current.get(I), C = 0;
2085
+ let T = o.current.get(I), C = 0;
2086
2086
  T.forEach((M) => {
2087
2087
  let B = h.get(M);
2088
2088
  C = Math.max(B, C);
@@ -2109,16 +2109,16 @@ var Ce = '[cmdk-group=""]', Je = '[cmdk-group-items=""]', ka = '[cmdk-group-head
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 = o.current.size;
2112
+ t.current.filtered.count = n.current.size;
2113
2113
  return;
2114
2114
  }
2115
2115
  t.current.filtered.groups = /* @__PURE__ */ new Set();
2116
2116
  let T = 0;
2117
- for (let C of o.current) {
2117
+ for (let C of n.current) {
2118
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
2119
  t.current.filtered.items.set(C, $), $ > 0 && T++;
2120
2120
  }
2121
- for (let [C, M] of n.current) for (let B of M) if (t.current.filtered.items.get(B) > 0) {
2121
+ for (let [C, M] of o.current) for (let B of M) if (t.current.filtered.items.get(B) > 0) {
2122
2122
  t.current.filtered.groups.add(C);
2123
2123
  break;
2124
2124
  }
@@ -2196,64 +2196,64 @@ var Ce = '[cmdk-group=""]', Je = '[cmdk-group-items=""]', ka = '[cmdk-group-head
2196
2196
  }
2197
2197
  }
2198
2198
  }
2199
- } }, l.createElement("label", { "cmdk-label": "", htmlFor: L.inputId, id: L.labelId, style: $a }, d), Ke(e, (h) => l.createElement(Mr.Provider, { value: j }, l.createElement(Tr.Provider, { value: L }, h))));
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))));
2200
2200
  }), ja = l.forwardRef((e, r) => {
2201
- var t, o;
2202
- let n = te(), i = l.useRef(null), a = l.useContext(Ar), c = Ne(), d = Or(e), u = (o = (t = d.current) == null ? void 0 : t.forceMount) != null ? o : a?.forceMount;
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;
2203
2203
  he(() => {
2204
- if (!u) return c.item(n, a?.id);
2205
- }, [u]);
2206
- let p = Fr(n, i, [e.value, e.children, i], e.keywords), f = ht(), x = se((P) => P.value && P.value === p.current), g = se((P) => u || c.filter() === !1 ? !0 : P.search ? P.filtered.items.get(n) > 0 : !0);
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);
2207
2207
  l.useEffect(() => {
2208
2208
  let P = i.current;
2209
2209
  if (!(!P || e.disabled)) return P.addEventListener(st, w), () => P.removeEventListener(st, w);
2210
2210
  }, [g, e.onSelect, e.disabled]);
2211
2211
  function w() {
2212
2212
  var P, j;
2213
- m(), (j = (P = d.current).onSelect) == null || j.call(P, p.current);
2213
+ m(), (j = (P = u.current).onSelect) == null || j.call(P, 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: 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);
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
2221
  }), Na = l.forwardRef((e, r) => {
2222
- let { heading: t, children: o, forceMount: n, ...i } = e, a = te(), c = l.useRef(null), d = l.useRef(null), u = te(), p = Ne(), f = se((g) => n || p.filter() === !1 ? !0 : g.search ? g.filtered.groups.has(a) : !0);
2223
- he(() => p.group(a), []), Fr(a, c, [e.value, e.heading, d]);
2224
- let x = l.useMemo(() => ({ id: a, forceMount: n }), [n]);
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: 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))));
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))));
2226
2226
  }), _a = l.forwardRef((e, r) => {
2227
- let { alwaysRender: t, ...o } = e, n = l.useRef(null), i = se((a) => !a.search);
2228
- return !t && !i ? null : l.createElement(N.div, { ref: Re(n, r), ...o, "cmdk-separator": "", role: "separator" });
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" });
2229
2229
  }), Pa = l.forwardRef((e, r) => {
2230
- let { onValueChange: t, ...o } = e, n = e.value != null, i = ht(), a = se((u) => u.search), c = se((u) => u.selectedItemId), d = Ne();
2230
+ let { onValueChange: t, ...n } = e, o = e.value != null, i = ht(), a = se((d) => d.search), c = se((d) => d.selectedItemId), u = Ne();
2231
2231
  return l.useEffect(() => {
2232
2232
  e.value != null && i.setState("search", e.value);
2233
- }, [e.value]), l.createElement(N.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 : a, onChange: (u) => {
2234
- n || i.setState("search", u.target.value), t?.(u.target.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);
2235
2235
  } });
2236
2236
  }), Ta = l.forwardRef((e, r) => {
2237
- let { children: t, label: o = "Suggestions", ...n } = e, i = l.useRef(null), a = l.useRef(null), c = se((u) => u.selectedItemId), d = Ne();
2237
+ let { children: t, label: n = "Suggestions", ...o } = e, i = l.useRef(null), a = l.useRef(null), c = se((d) => d.selectedItemId), u = Ne();
2238
2238
  return l.useEffect(() => {
2239
2239
  if (a.current && i.current) {
2240
- let u = a.current, p = i.current, f, x = new ResizeObserver(() => {
2240
+ let d = a.current, p = i.current, f, x = new ResizeObserver(() => {
2241
2241
  f = requestAnimationFrame(() => {
2242
- let g = u.offsetHeight;
2242
+ let g = d.offsetHeight;
2243
2243
  p.style.setProperty("--cmdk-list-height", g.toFixed(1) + "px");
2244
2244
  });
2245
2245
  });
2246
- return x.observe(u), () => {
2247
- cancelAnimationFrame(f), x.unobserve(u);
2246
+ return x.observe(d), () => {
2247
+ cancelAnimationFrame(f), x.unobserve(d);
2248
2248
  };
2249
2249
  }
2250
- }, []), l.createElement(N.div, { ref: Re(i, 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(a, d.listInnerRef), "cmdk-list-sizer": "" }, u)));
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)));
2251
2251
  }), Ma = l.forwardRef((e, r) => {
2252
- let { open: t, onOpenChange: o, overlayClassName: n, contentClassName: i, container: a, ...c } = e;
2253
- return l.createElement(Cn, { open: t, onOpenChange: o }, l.createElement(In, { container: a }, l.createElement(Rn, { "cmdk-overlay": "", className: n }), l.createElement(kn, { "aria-label": e.label, "cmdk-dialog": "", className: i }, l.createElement(Dr, { ref: r, ...c }))));
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
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: o, label: n = "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": n }, Ke(e, (a) => l.createElement("div", { "aria-hidden": !0 }, a)));
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
2257
  }), Se = Object.assign(Dr, { List: Ta, Item: ja, Input: Pa, Group: Na, Separator: _a, Dialog: Ma, Empty: Aa, Loading: Da });
2258
2258
  function Oa(e, r) {
2259
2259
  let t = e.nextElementSibling;
@@ -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, o = []) {
2288
- let n = l.useRef(), i = Ne();
2287
+ function Fr(e, r, t, n = []) {
2288
+ let o = l.useRef(), i = Ne();
2289
2289
  return he(() => {
2290
2290
  var a;
2291
2291
  let c = (() => {
2292
- var u;
2292
+ var d;
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 ? (u = p.current.textContent) == null ? void 0 : u.trim() : n.current;
2295
+ if (typeof p == "object" && "current" in p) return p.current ? (d = p.current.textContent) == null ? void 0 : d.trim() : o.current;
2296
2296
  }
2297
- })(), d = o.map((u) => u.trim());
2298
- i.value(e, c, d), (a = r.current) == null || a.setAttribute(ge, c), n.current = c;
2299
- }), n;
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;
2300
2300
  }
2301
2301
  var La = () => {
2302
2302
  let [e, r] = l.useState(), t = be(() => /* @__PURE__ */ new Map());
2303
2303
  return he(() => {
2304
- t.current.forEach((o) => o()), t.current = /* @__PURE__ */ new Map();
2305
- }, [e]), (o, n) => {
2306
- t.current.set(o, n), r({});
2304
+ t.current.forEach((n) => n()), t.current = /* @__PURE__ */ new Map();
2305
+ }, [e]), (n, o) => {
2306
+ t.current.set(n, o), r({});
2307
2307
  };
2308
2308
  };
2309
2309
  function Ba(e) {
@@ -2386,50 +2386,50 @@ const Wa = ({
2386
2386
  placeholder: e,
2387
2387
  selected: r,
2388
2388
  className: t,
2389
- open: o,
2390
- renderSelected: n = (i) => i.label
2391
- }) => /* @__PURE__ */ s.jsx(Rt, { asChild: !0, children: /* @__PURE__ */ s.jsxs(an, { "aria-expanded": o, className: `justify-between ${t}`, role: "combobox", variant: "outline", children: [
2392
- n(r || { label: e, value: "" }),
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
2393
  /* @__PURE__ */ s.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: o = "",
2399
- onSelect: n = () => {
2398
+ className: n = "",
2399
+ onSelect: o = () => {
2400
2400
  },
2401
2401
  renderSelected: i = (a) => a.label
2402
2402
  }) => {
2403
- const [a, c] = Me(!1), d = ln(() => e.find((u) => u.value === r), [e, r]);
2403
+ const [a, c] = Me(!1), u = ln(() => e.find((d) => d.value === r), [e, r]);
2404
2404
  return /* @__PURE__ */ s.jsxs(It, { onOpenChange: c, open: a, children: [
2405
2405
  /* @__PURE__ */ s.jsx(
2406
2406
  Wa,
2407
2407
  {
2408
- className: `w-full ${o}`,
2408
+ className: `w-full ${n}`,
2409
2409
  open: a,
2410
2410
  placeholder: t,
2411
2411
  renderSelected: i,
2412
- selected: d
2412
+ selected: u
2413
2413
  }
2414
2414
  ),
2415
2415
  /* @__PURE__ */ s.jsx(kt, { className: "w-full p-0", children: /* @__PURE__ */ s.jsxs(Va, { value: r, children: [
2416
2416
  /* @__PURE__ */ s.jsx(Ka, { "aria-label": "Search options", className: "h-9", placeholder: "Search" }),
2417
2417
  /* @__PURE__ */ s.jsxs(Ha, { children: [
2418
2418
  /* @__PURE__ */ s.jsx(Ua, { children: "No results found" }),
2419
- /* @__PURE__ */ s.jsx(Ga, { children: e.map((u) => /* @__PURE__ */ s.jsxs(
2419
+ /* @__PURE__ */ s.jsx(Ga, { children: e.map((d) => /* @__PURE__ */ s.jsxs(
2420
2420
  za,
2421
2421
  {
2422
2422
  onSelect: () => {
2423
- c(!1), n(u.value);
2423
+ c(!1), o(d.value);
2424
2424
  },
2425
- value: u.value,
2425
+ value: d.value,
2426
2426
  children: [
2427
- u.icon ? /* @__PURE__ */ s.jsx("span", { className: "mr-2", children: u.icon }) : "",
2428
- u.label,
2429
- /* @__PURE__ */ s.jsx(ut, { className: A("ml-auto", u.value === r ? "opacity-100" : "opacity-0") })
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") })
2430
2430
  ]
2431
2431
  },
2432
- u.value
2432
+ d.value
2433
2433
  )) })
2434
2434
  ] })
2435
2435
  ] }) })
@@ -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: o = 0,
2450
- max: n = 100,
2449
+ min: n = 0,
2450
+ max: o = 100,
2451
2451
  step: i = 1,
2452
2452
  orientation: a = "horizontal",
2453
2453
  disabled: c = !1,
2454
- minStepsBetweenThumbs: d = 0,
2455
- defaultValue: u = [o],
2454
+ minStepsBetweenThumbs: u = 0,
2455
+ defaultValue: d = [n],
2456
2456
  value: p,
2457
2457
  onValueChange: f = () => {
2458
2458
  },
@@ -2463,7 +2463,7 @@ var Lr = ["PageUp", "PageDown"], Br = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2463
2463
  ...m
2464
2464
  } = e, v = l.useRef(/* @__PURE__ */ new Set()), b = l.useRef(0), y = a === "horizontal" ? Za : Ja, [R = [], D] = pe({
2465
2465
  prop: p,
2466
- defaultProp: u,
2466
+ defaultProp: d,
2467
2467
  onChange: (O) => {
2468
2468
  [...v.current][b.current]?.focus(), f(O);
2469
2469
  }
@@ -2480,10 +2480,10 @@ var Lr = ["PageUp", "PageDown"], Br = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2480
2480
  R[b.current] !== O && x(R);
2481
2481
  }
2482
2482
  function z(O, K, { commit: X } = { commit: !1 }) {
2483
- const W = is(i), U = ls(Math.round((O - o) / i) * i + o, W), F = _e(U, [o, n]);
2483
+ const W = is(i), U = ls(Math.round((O - n) / i) * i + n, W), F = _e(U, [n, o]);
2484
2484
  D((G = []) => {
2485
2485
  const q = ts(G, F, K);
2486
- if (ss(q, d * i)) {
2486
+ if (ss(q, u * i)) {
2487
2487
  b.current = q.indexOf(F);
2488
2488
  const J = String(q) !== String(G);
2489
2489
  return J && X && x(q), J ? q : G;
@@ -2497,8 +2497,8 @@ var Lr = ["PageUp", "PageDown"], Br = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2497
2497
  scope: e.__scopeSlider,
2498
2498
  name: t,
2499
2499
  disabled: c,
2500
- min: o,
2501
- max: n,
2500
+ min: n,
2501
+ max: o,
2502
2502
  valueIndexToChangeRef: b,
2503
2503
  thumbs: v.current,
2504
2504
  values: R,
@@ -2514,14 +2514,14 @@ var Lr = ["PageUp", "PageDown"], Br = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2514
2514
  onPointerDown: _(m.onPointerDown, () => {
2515
2515
  c || (P.current = R);
2516
2516
  }),
2517
- min: o,
2518
- max: n,
2517
+ min: n,
2518
+ max: o,
2519
2519
  inverted: g,
2520
2520
  onSlideStart: c ? void 0 : j,
2521
2521
  onSlideMove: c ? void 0 : L,
2522
2522
  onSlideEnd: c ? void 0 : Z,
2523
- onHomeKeyDown: () => !c && z(o, 0, { commit: !0 }),
2524
- onEndKeyDown: () => !c && z(n, R.length - 1, { commit: !0 }),
2523
+ onHomeKeyDown: () => !c && z(n, 0, { commit: !0 }),
2524
+ onEndKeyDown: () => !c && z(o, R.length - 1, { commit: !0 }),
2525
2525
  onStepKeyDown: ({ event: O, direction: K }) => {
2526
2526
  if (!c) {
2527
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;
@@ -2544,17 +2544,17 @@ var [Hr, Ur] = Vr(ye, {
2544
2544
  (e, r) => {
2545
2545
  const {
2546
2546
  min: t,
2547
- max: o,
2548
- dir: n,
2547
+ max: n,
2548
+ dir: o,
2549
2549
  inverted: i,
2550
2550
  onSlideStart: a,
2551
2551
  onSlideMove: c,
2552
- onSlideEnd: d,
2553
- onStepKeyDown: u,
2552
+ onSlideEnd: u,
2553
+ onStepKeyDown: d,
2554
2554
  ...p
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 && !i || !v && i;
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;
2556
2556
  function S(y) {
2557
- const R = w.current || f.getBoundingClientRect(), D = [0, R.width], j = vt(D, b ? [t, o] : [o, t]);
2557
+ const R = w.current || f.getBoundingClientRect(), D = [0, R.width], j = vt(D, b ? [t, n] : [n, t]);
2558
2558
  return w.current = R, j(y - R.left);
2559
2559
  }
2560
2560
  return /* @__PURE__ */ s.jsx(
@@ -2585,11 +2585,11 @@ var [Hr, Ur] = Vr(ye, {
2585
2585
  c?.(R);
2586
2586
  },
2587
2587
  onSlideEnd: () => {
2588
- w.current = void 0, d?.();
2588
+ w.current = void 0, u?.();
2589
2589
  },
2590
2590
  onStepKeyDown: (y) => {
2591
2591
  const D = $r[b ? "from-left" : "from-right"].includes(y.key);
2592
- u?.({ event: y, direction: D ? -1 : 1 });
2592
+ d?.({ event: y, direction: D ? -1 : 1 });
2593
2593
  }
2594
2594
  }
2595
2595
  )
@@ -2600,16 +2600,16 @@ var [Hr, Ur] = Vr(ye, {
2600
2600
  (e, r) => {
2601
2601
  const {
2602
2602
  min: t,
2603
- max: o,
2604
- inverted: n,
2603
+ max: n,
2604
+ inverted: o,
2605
2605
  onSlideStart: i,
2606
2606
  onSlideMove: a,
2607
2607
  onSlideEnd: c,
2608
- onStepKeyDown: d,
2609
- ...u
2610
- } = e, p = l.useRef(null), f = V(r, p), x = l.useRef(void 0), g = !n;
2608
+ onStepKeyDown: u,
2609
+ ...d
2610
+ } = e, p = l.useRef(null), f = V(r, p), x = l.useRef(void 0), g = !o;
2611
2611
  function w(m) {
2612
- const v = x.current || p.current.getBoundingClientRect(), b = [0, v.height], y = vt(b, g ? [o, t] : [t, o]);
2612
+ const v = x.current || p.current.getBoundingClientRect(), b = [0, v.height], y = vt(b, g ? [n, t] : [t, n]);
2613
2613
  return x.current = v, y(m - v.top);
2614
2614
  }
2615
2615
  return /* @__PURE__ */ s.jsx(
@@ -2624,10 +2624,10 @@ var [Hr, Ur] = Vr(ye, {
2624
2624
  Gr,
2625
2625
  {
2626
2626
  "data-orientation": "vertical",
2627
- ...u,
2627
+ ...d,
2628
2628
  ref: f,
2629
2629
  style: {
2630
- ...u.style,
2630
+ ...d.style,
2631
2631
  "--radix-slider-thumb-transform": "translateY(50%)"
2632
2632
  },
2633
2633
  onSlideStart: (m) => {
@@ -2643,7 +2643,7 @@ var [Hr, Ur] = Vr(ye, {
2643
2643
  },
2644
2644
  onStepKeyDown: (m) => {
2645
2645
  const b = $r[g ? "from-bottom" : "from-top"].includes(m.key);
2646
- d?.({ event: m, direction: b ? -1 : 1 });
2646
+ u?.({ event: m, direction: b ? -1 : 1 });
2647
2647
  }
2648
2648
  }
2649
2649
  )
@@ -2654,28 +2654,28 @@ var [Hr, Ur] = Vr(ye, {
2654
2654
  (e, r) => {
2655
2655
  const {
2656
2656
  __scopeSlider: t,
2657
- onSlideStart: o,
2658
- onSlideMove: n,
2657
+ onSlideStart: n,
2658
+ onSlideMove: o,
2659
2659
  onSlideEnd: i,
2660
2660
  onHomeKeyDown: a,
2661
2661
  onEndKeyDown: c,
2662
- onStepKeyDown: d,
2663
- ...u
2662
+ onStepKeyDown: u,
2663
+ ...d
2664
2664
  } = e, p = He(ye, t);
2665
2665
  return /* @__PURE__ */ s.jsx(
2666
2666
  N.span,
2667
2667
  {
2668
- ...u,
2668
+ ...d,
2669
2669
  ref: r,
2670
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) && (d(f), f.preventDefault());
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());
2672
2672
  }),
2673
2673
  onPointerDown: _(e.onPointerDown, (f) => {
2674
2674
  const x = f.target;
2675
- x.setPointerCapture(f.pointerId), f.preventDefault(), p.thumbs.has(x) ? x.focus() : o(f);
2675
+ x.setPointerCapture(f.pointerId), f.preventDefault(), p.thumbs.has(x) ? x.focus() : n(f);
2676
2676
  }),
2677
2677
  onPointerMove: _(e.onPointerMove, (f) => {
2678
- f.target.hasPointerCapture(f.pointerId) && n(f);
2678
+ f.target.hasPointerCapture(f.pointerId) && o(f);
2679
2679
  }),
2680
2680
  onPointerUp: _(e.onPointerUp, (f) => {
2681
2681
  const x = f.target;
@@ -2686,13 +2686,13 @@ var [Hr, Ur] = Vr(ye, {
2686
2686
  }
2687
2687
  ), zr = "SliderTrack", Wr = l.forwardRef(
2688
2688
  (e, r) => {
2689
- const { __scopeSlider: t, ...o } = e, n = He(zr, t);
2689
+ const { __scopeSlider: t, ...n } = e, o = He(zr, t);
2690
2690
  return /* @__PURE__ */ s.jsx(
2691
2691
  N.span,
2692
2692
  {
2693
- "data-disabled": n.disabled ? "" : void 0,
2694
- "data-orientation": n.orientation,
2695
- ...o,
2693
+ "data-disabled": o.disabled ? "" : void 0,
2694
+ "data-orientation": o.orientation,
2695
+ ...n,
2696
2696
  ref: r
2697
2697
  }
2698
2698
  );
@@ -2701,15 +2701,15 @@ 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, ...o } = e, n = He(lt, t), i = Ur(lt, t), a = l.useRef(null), c = V(r, a), 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);
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
2707
  return /* @__PURE__ */ s.jsx(
2708
2708
  N.span,
2709
2709
  {
2710
- "data-orientation": n.orientation,
2711
- "data-disabled": n.disabled ? "" : void 0,
2712
- ...o,
2710
+ "data-orientation": o.orientation,
2711
+ "data-disabled": o.disabled ? "" : void 0,
2712
+ ...n,
2713
2713
  ref: c,
2714
2714
  style: {
2715
2715
  ...e.style,
@@ -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), [o, n] = l.useState(null), i = V(r, (c) => n(c)), a = l.useMemo(
2727
- () => o ? t().findIndex((c) => c.ref.current === o) : -1,
2728
- [t, o]
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]
2729
2729
  );
2730
2730
  return /* @__PURE__ */ s.jsx(Qa, { ...e, ref: i, index: a });
2731
2731
  }
2732
2732
  ), Qa = l.forwardRef(
2733
2733
  (e, r) => {
2734
- const { __scopeSlider: t, index: o, name: n, ...i } = e, a = He(ct, t), c = Ur(ct, t), [d, u] = l.useState(null), p = V(r, (S) => u(S)), f = d ? a.form || !!d.closest("form") : !0, x = Oe(d), g = a.values[o], w = g === void 0 ? 0 : Zr(g, a.min, a.max), m = rs(o, a.values.length), v = x?.[c.size], b = v ? os(v, w, c.direction) : 0;
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;
2735
2735
  return l.useEffect(() => {
2736
- if (d)
2737
- return a.thumbs.add(d), () => {
2738
- a.thumbs.delete(d);
2736
+ if (u)
2737
+ return a.thumbs.add(u), () => {
2738
+ a.thumbs.delete(u);
2739
2739
  };
2740
- }, [d, a.thumbs]), /* @__PURE__ */ s.jsxs(
2740
+ }, [u, a.thumbs]), /* @__PURE__ */ s.jsxs(
2741
2741
  "span",
2742
2742
  {
2743
2743
  style: {
@@ -2762,18 +2762,18 @@ var ct = "SliderThumb", Yr = l.forwardRef(
2762
2762
  ref: p,
2763
2763
  style: g === void 0 ? { display: "none" } : e.style,
2764
2764
  onFocus: _(e.onFocus, () => {
2765
- a.valueIndexToChangeRef.current = o;
2765
+ a.valueIndexToChangeRef.current = n;
2766
2766
  })
2767
2767
  }
2768
2768
  ) }),
2769
2769
  f && /* @__PURE__ */ s.jsx(
2770
2770
  Xr,
2771
2771
  {
2772
- name: n ?? (a.name ? a.name + (a.values.length > 1 ? "[]" : "") : void 0),
2772
+ name: o ?? (a.name ? a.name + (a.values.length > 1 ? "[]" : "") : void 0),
2773
2773
  form: a.form,
2774
2774
  value: g
2775
2775
  },
2776
- o
2776
+ n
2777
2777
  )
2778
2778
  ]
2779
2779
  }
@@ -2782,12 +2782,12 @@ 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 }, o) => {
2786
- const n = l.useRef(null), i = V(n, o), a = Ee(r);
2785
+ ({ __scopeSlider: e, value: r, ...t }, n) => {
2786
+ const o = l.useRef(null), i = V(o, n), a = Ee(r);
2787
2787
  return l.useEffect(() => {
2788
- const c = n.current;
2788
+ const c = o.current;
2789
2789
  if (!c) return;
2790
- const d = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(d, "value").set;
2790
+ const u = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(u, "value").set;
2791
2791
  if (a !== r && p) {
2792
2792
  const f = new Event("input", { bubbles: !0 });
2793
2793
  p.call(c, r), c.dispatchEvent(f);
@@ -2805,8 +2805,8 @@ var es = "RadioBubbleInput", Xr = l.forwardRef(
2805
2805
  );
2806
2806
  Xr.displayName = es;
2807
2807
  function ts(e = [], r, t) {
2808
- const o = [...e];
2809
- return o[t] = r, o.sort((n, i) => n - i);
2808
+ const n = [...e];
2809
+ return n[t] = r, n.sort((o, i) => o - i);
2810
2810
  }
2811
2811
  function Zr(e, r, t) {
2812
2812
  const i = 100 / (t - r) * (e - r);
@@ -2817,12 +2817,12 @@ function rs(e, r) {
2817
2817
  }
2818
2818
  function ns(e, r) {
2819
2819
  if (e.length === 1) return 0;
2820
- const t = e.map((n) => Math.abs(n - r)), o = Math.min(...t);
2821
- return t.indexOf(o);
2820
+ const t = e.map((o) => Math.abs(o - r)), n = Math.min(...t);
2821
+ return t.indexOf(n);
2822
2822
  }
2823
2823
  function os(e, r, t) {
2824
- const o = e / 2, i = vt([0, 50], [0, o]);
2825
- return (o - i(r) * t) * t;
2824
+ const n = e / 2, i = vt([0, 50], [0, n]);
2825
+ return (n - i(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 o = (r[1] - r[0]) / (e[1] - e[0]);
2841
- return r[0] + o * (t - e[0]);
2840
+ const n = (r[1] - r[0]) / (e[1] - e[0]);
2841
+ return r[0] + n * (t - e[0]);
2842
2842
  };
2843
2843
  }
2844
2844
  function is(e) {
@@ -2853,15 +2853,15 @@ function fs({
2853
2853
  className: e,
2854
2854
  trackClassName: r,
2855
2855
  thumbClassName: t,
2856
- defaultValue: o,
2857
- value: n,
2856
+ defaultValue: n,
2857
+ value: o,
2858
2858
  min: i = 0,
2859
2859
  max: a = 100,
2860
2860
  ...c
2861
2861
  }) {
2862
- const d = l.useMemo(
2863
- () => Array.isArray(n) ? n : Array.isArray(o) ? o : [i, a],
2864
- [n, o, i, a]
2862
+ const u = l.useMemo(
2863
+ () => Array.isArray(o) ? o : Array.isArray(n) ? n : [i, a],
2864
+ [o, n, i, a]
2865
2865
  );
2866
2866
  return /* @__PURE__ */ s.jsxs(
2867
2867
  cs,
@@ -2871,10 +2871,10 @@ function fs({
2871
2871
  e
2872
2872
  ),
2873
2873
  "data-slot": "slider",
2874
- defaultValue: o,
2874
+ defaultValue: n,
2875
2875
  max: a,
2876
2876
  min: i,
2877
- value: n,
2877
+ value: o,
2878
2878
  ...c,
2879
2879
  children: [
2880
2880
  /* @__PURE__ */ s.jsx(
@@ -2894,7 +2894,7 @@ function fs({
2894
2894
  )
2895
2895
  }
2896
2896
  ),
2897
- Array.from({ length: d.length }, (u, p) => /* @__PURE__ */ s.jsx(
2897
+ Array.from({ length: u.length }, (d, p) => /* @__PURE__ */ s.jsx(
2898
2898
  ps,
2899
2899
  {
2900
2900
  className: A(
@@ -2909,8 +2909,8 @@ function fs({
2909
2909
  }
2910
2910
  );
2911
2911
  }
2912
- const Us = ({ size: e = "md", thumbClassName: r, trackClassName: t, value: o, defaultValue: n, ...i }) => {
2913
- const a = n !== void 0 ? Array.isArray(n) ? n : [n] : void 0, c = o !== void 0 ? Array.isArray(o) ? o : [o] : void 0;
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
2914
  return /* @__PURE__ */ s.jsx(
2915
2915
  fs,
2916
2916
  {
@@ -2945,19 +2945,19 @@ 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: o,
2949
- checked: n,
2948
+ name: n,
2949
+ checked: o,
2950
2950
  defaultChecked: i,
2951
2951
  required: a,
2952
2952
  disabled: c,
2953
- value: d = "on",
2954
- onCheckedChange: u,
2953
+ value: u = "on",
2954
+ onCheckedChange: d,
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: n,
2958
+ prop: o,
2959
2959
  defaultProp: i ?? !1,
2960
- onChange: u,
2960
+ onChange: d,
2961
2961
  caller: Ue
2962
2962
  });
2963
2963
  return /* @__PURE__ */ s.jsxs(hs, { scope: t, checked: b, disabled: c, children: [
@@ -2971,7 +2971,7 @@ var Ue = "Switch", [ms, Gs] = ve(Ue), [hs, vs] = ms(Ue), Jr = l.forwardRef(
2971
2971
  "data-state": rn(b),
2972
2972
  "data-disabled": c ? "" : void 0,
2973
2973
  disabled: c,
2974
- value: d,
2974
+ value: u,
2975
2975
  ...f,
2976
2976
  ref: w,
2977
2977
  onClick: _(e.onClick, (y) => {
@@ -2984,8 +2984,8 @@ var Ue = "Switch", [ms, Gs] = ve(Ue), [hs, vs] = ms(Ue), Jr = l.forwardRef(
2984
2984
  {
2985
2985
  control: x,
2986
2986
  bubbles: !m.current,
2987
- name: o,
2988
- value: d,
2987
+ name: n,
2988
+ value: u,
2989
2989
  checked: b,
2990
2990
  required: a,
2991
2991
  disabled: c,
@@ -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, ...o } = e, n = vs(Qr, t);
3002
+ const { __scopeSwitch: t, ...n } = e, o = vs(Qr, t);
3003
3003
  return /* @__PURE__ */ s.jsx(
3004
3004
  N.span,
3005
3005
  {
3006
- "data-state": rn(n.checked),
3007
- "data-disabled": n.disabled ? "" : void 0,
3008
- ...o,
3006
+ "data-state": rn(o.checked),
3007
+ "data-disabled": o.disabled ? "" : void 0,
3008
+ ...n,
3009
3009
  ref: r
3010
3010
  }
3011
3011
  );
@@ -3017,10 +3017,10 @@ var xs = "SwitchBubbleInput", tn = l.forwardRef(
3017
3017
  __scopeSwitch: e,
3018
3018
  control: r,
3019
3019
  checked: t,
3020
- bubbles: o = !0,
3021
- ...n
3020
+ bubbles: n = !0,
3021
+ ...o
3022
3022
  }, i) => {
3023
- const a = l.useRef(null), c = V(a, i), d = Ee(t), u = Oe(r);
3023
+ const a = l.useRef(null), c = V(a, i), u = Ee(t), d = Oe(r);
3024
3024
  return l.useEffect(() => {
3025
3025
  const p = a.current;
3026
3026
  if (!p) return;
@@ -3028,22 +3028,22 @@ var xs = "SwitchBubbleInput", tn = l.forwardRef(
3028
3028
  f,
3029
3029
  "checked"
3030
3030
  ).set;
3031
- if (d !== t && g) {
3032
- const w = new Event("click", { bubbles: o });
3031
+ if (u !== t && g) {
3032
+ const w = new Event("click", { bubbles: n });
3033
3033
  g.call(p, t), p.dispatchEvent(w);
3034
3034
  }
3035
- }, [d, t, o]), /* @__PURE__ */ s.jsx(
3035
+ }, [u, t, n]), /* @__PURE__ */ s.jsx(
3036
3036
  "input",
3037
3037
  {
3038
3038
  type: "checkbox",
3039
3039
  "aria-hidden": !0,
3040
3040
  defaultChecked: t,
3041
- ...n,
3041
+ ...o,
3042
3042
  tabIndex: -1,
3043
3043
  ref: c,
3044
3044
  style: {
3045
- ...n.style,
3046
- ...u,
3045
+ ...o.style,
3046
+ ...d,
3047
3047
  position: "absolute",
3048
3048
  pointerEvents: "none",
3049
3049
  opacity: 0,
@@ -3085,32 +3085,47 @@ function ws({
3085
3085
  }
3086
3086
  );
3087
3087
  }
3088
- const zs = ({ id: e, label: r, leftLabel: t, rightLabel: o, size: n = "md", ...i }) => {
3089
- const a = cn(), c = e || a;
3088
+ const zs = ({
3089
+ id: e,
3090
+ label: r,
3091
+ leftLabel: t,
3092
+ rightLabel: n,
3093
+ className: o,
3094
+ thumbClassName: i,
3095
+ size: a = "md",
3096
+ ...c
3097
+ }) => {
3098
+ const u = cn(), d = e || u;
3090
3099
  return /* @__PURE__ */ s.jsxs("div", { className: "flex items-center space-x-2", children: [
3091
- t && /* @__PURE__ */ s.jsx(ae, { className: "cursor-pointer", htmlFor: c, size: n, children: t }),
3100
+ t && /* @__PURE__ */ s.jsx(ae, { className: "cursor-pointer", htmlFor: d, size: a, children: t }),
3092
3101
  /* @__PURE__ */ s.jsx(
3093
3102
  ws,
3094
3103
  {
3095
- className: A({
3096
- "h-[10px] w-4": n === "xs",
3097
- "h-[14px] w-6": n === "sm",
3098
- "h-[18px] w-8": n === "md",
3099
- "h-[22px] w-10": n === "lg",
3100
- "h-[26px] w-12": n === "xl"
3101
- }),
3102
- id: c,
3103
- thumbClassName: A({
3104
- "size-2": n === "xs",
3105
- "size-3": n === "sm",
3106
- "size-4": n === "md",
3107
- "size-5": n === "lg",
3108
- "size-6": n === "xl"
3109
- }),
3110
- ...i
3104
+ className: A(
3105
+ {
3106
+ "h-[10px] w-4": a === "xs",
3107
+ "h-[14px] w-6": a === "sm",
3108
+ "h-[18px] w-8": a === "md",
3109
+ "h-[22px] w-10": a === "lg",
3110
+ "h-[26px] w-12": a === "xl"
3111
+ },
3112
+ o
3113
+ ),
3114
+ id: d,
3115
+ thumbClassName: A(
3116
+ {
3117
+ "size-2": a === "xs",
3118
+ "size-3": a === "sm",
3119
+ "size-4": a === "md",
3120
+ "size-5": a === "lg",
3121
+ "size-6": a === "xl"
3122
+ },
3123
+ i
3124
+ ),
3125
+ ...c
3111
3126
  }
3112
3127
  ),
3113
- /* @__PURE__ */ s.jsx(ae, { className: "cursor-pointer", htmlFor: c, size: n, children: o || r })
3128
+ /* @__PURE__ */ s.jsx(ae, { className: "cursor-pointer", htmlFor: d, size: a, children: n || r })
3114
3129
  ] });
3115
3130
  };
3116
3131
  function Ss({ className: e, ...r }) {
@@ -3126,17 +3141,17 @@ function Ss({ className: e, ...r }) {
3126
3141
  }
3127
3142
  );
3128
3143
  }
3129
- function Ws({ label: e, name: r, note: t, placeholder: o, className: n, error: i, ...a }) {
3144
+ function Ws({ label: e, name: r, note: t, placeholder: n, className: o, error: i, ...a }) {
3130
3145
  return /* @__PURE__ */ s.jsxs(ne, { className: "w-full", direction: "col", gap: "2", children: [
3131
3146
  e && /* @__PURE__ */ s.jsx(ae, { htmlFor: r, children: e }),
3132
3147
  /* @__PURE__ */ s.jsx(
3133
3148
  Ss,
3134
3149
  {
3135
3150
  "aria-label": e || r,
3136
- className: n,
3151
+ className: o,
3137
3152
  id: r,
3138
3153
  name: r,
3139
- placeholder: o,
3154
+ placeholder: n,
3140
3155
  ...a
3141
3156
  }
3142
3157
  ),