@overmap-ai/blocks 1.0.47 → 1.0.48-all-values-select-all-option.1

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.
package/dist/blocks.js CHANGED
@@ -1,36 +1,36 @@
1
- import * as $ from "@radix-ui/react-alert-dialog";
1
+ import * as q from "@radix-ui/react-alert-dialog";
2
2
  import { jsx as i, jsxs as W } from "react/jsx-runtime";
3
- import { cva as v, cx as x } from "class-variance-authority";
4
- import { createContext as T, useContext as j, memo as u, useMemo as w, useState as E, useCallback as h, useRef as U, useEffect as B, useId as Ye, useLayoutEffect as ue, use as b } from "react";
5
- import * as Qe from "@radix-ui/react-avatar";
3
+ import { cva as h, cx as x } from "class-variance-authority";
4
+ import { createContext as O, useContext as $, memo as u, useMemo as N, useState as E, useCallback as v, useRef as j, useEffect as B, useId as Qe, useLayoutEffect as ue, use as b } from "react";
5
+ import * as Je from "@radix-ui/react-avatar";
6
6
  import * as ze from "@radix-ui/react-checkbox";
7
7
  import { useMediaQuery as be } from "react-responsive";
8
- import { CommandItem as Ns, CommandRoot as ws, CommandEmpty as Is, CommandGroup as Ss, CommandInput as ks, useCommandState as Rs, CommandList as Ts, CommandSeparator as Ps } from "cmdk";
8
+ import { CommandItem as ws, CommandRoot as Is, CommandEmpty as Ss, CommandGroup as ks, CommandInput as Rs, useCommandState as Ts, CommandList as Ps, CommandSeparator as Ms } from "cmdk";
9
9
  import * as H from "@radix-ui/react-dialog";
10
- import { DialogPortal as kt, DialogContent as Ms, DialogTitle as Os, DialogDescription as Vs, DialogOverlay as Ls, DialogTrigger as As } from "@radix-ui/react-dialog";
11
- import { DayPicker as Ds } from "react-day-picker";
12
- import { ChevronRight as Gs, ChevronLeft as Es, ChevronDown as _s, ChevronUp as Fs, AlertTriangle as Hs, RotateCcw as Bs, X as $s, CircleAlertIcon as js, TriangleAlertIcon as Us, InfoIcon as qs, Check as Ws } from "lucide-react";
10
+ import { DialogPortal as Rt, DialogContent as Os, DialogTitle as Vs, DialogDescription as Ls, DialogOverlay as As, DialogTrigger as Ds } from "@radix-ui/react-dialog";
11
+ import { DayPicker as Gs } from "react-day-picker";
12
+ import { ChevronRight as Es, ChevronLeft as _s, ChevronDown as Fs, ChevronUp as Hs, AlertTriangle as Bs, RotateCcw as qs, X as $s, CircleAlertIcon as js, TriangleAlertIcon as Us, InfoIcon as Ws, Check as Ks } from "lucide-react";
13
13
  import * as ye from "@radix-ui/react-hover-card";
14
- import { createContext as Ks, useContext as Xs, useContextSelector as Ys } from "use-context-selector";
14
+ import { createContext as Xs, useContext as Ys, useContextSelector as Qs } from "use-context-selector";
15
15
  import { Slot as me } from "@radix-ui/react-slot";
16
- import { CSSTransition as Qs } from "react-transition-group";
16
+ import { CSSTransition as Js } from "react-transition-group";
17
17
  import "react-transition-group/CSSTransition";
18
- import Js from "react-dom";
19
- import { useListItem as Rt, useMergeRefs as ge, FloatingNode as Tt, FloatingPortal as Pt, FloatingOverlay as Zs, FloatingFocusManager as Mt, FloatingList as Ot, useFloatingNodeId as Vt, useFloating as Lt, offset as At, size as Dt, flip as Gt, shift as Et, hide as _t, autoUpdate as Ft, useRole as eo, useDismiss as Ht, useClick as Bt, useListNavigation as $t, useInteractions as jt, FloatingTree as to, useHover as ao, safePolygon as no } from "@floating-ui/react";
20
- import * as Je from "@radix-ui/react-separator";
21
- import * as Ze from "@radix-ui/react-one-time-password-field";
22
- import { useErrorBoundary as so, ErrorBoundary as oo } from "react-error-boundary";
18
+ import Zs from "react-dom";
19
+ import { useListItem as Tt, useMergeRefs as ge, FloatingNode as Pt, FloatingPortal as Mt, FloatingOverlay as eo, FloatingFocusManager as Ot, FloatingList as Vt, useFloatingNodeId as Lt, useFloating as At, offset as Dt, size as Gt, flip as Et, shift as _t, hide as Ft, autoUpdate as Ht, useRole as to, useDismiss as Bt, useClick as qt, useListNavigation as $t, useInteractions as jt, FloatingTree as ao, useHover as no, safePolygon as so } from "@floating-ui/react";
20
+ import * as Ze from "@radix-ui/react-separator";
21
+ import * as et from "@radix-ui/react-one-time-password-field";
22
+ import { useErrorBoundary as oo, ErrorBoundary as ro } from "react-error-boundary";
23
23
  import * as Pe from "@radix-ui/react-popover";
24
- import * as Nt from "@radix-ui/react-progress";
24
+ import * as wt from "@radix-ui/react-progress";
25
25
  import * as ae from "@radix-ui/react-radio-group";
26
26
  import * as Oe from "@radix-ui/react-toggle-group";
27
27
  import * as ne from "@radix-ui/react-tabs";
28
28
  import * as Te from "@radix-ui/react-slider";
29
29
  import * as Ut from "@radix-ui/react-switch";
30
- import { toast as K, Toaster as ro } from "sonner";
31
- import * as co from "@radix-ui/react-toggle";
30
+ import { toast as K, Toaster as co } from "sonner";
31
+ import * as io from "@radix-ui/react-toggle";
32
32
  import * as de from "@radix-ui/react-tooltip";
33
- const Ve = v(
33
+ const Ve = h(
34
34
  [
35
35
  "data-[state=open]:animate-in",
36
36
  "data-[state=open]:fade-in-0",
@@ -41,13 +41,6 @@ const Ve = v(
41
41
  ],
42
42
  {
43
43
  variants: {
44
- shadow: {
45
- 1: ["shadow-xs"],
46
- 2: ["shadow-sm"],
47
- 3: ["shadow-md"],
48
- 4: ["shadow-lg"],
49
- 5: ["shadow-xl"]
50
- },
51
44
  side: {
52
45
  top: ["data-[side=top]:slide-in-from-bottom-2"],
53
46
  right: ["data-[side=right]:slide-in-from-left-2"],
@@ -56,7 +49,7 @@ const Ve = v(
56
49
  }
57
50
  }
58
51
  }
59
- ), k = v([], {
52
+ ), k = h([], {
60
53
  variants: {
61
54
  maxLarge: {
62
55
  true: [],
@@ -94,23 +87,36 @@ const Ve = v(
94
87
  className: ["rounded-full"]
95
88
  }
96
89
  ]
97
- }), qt = T({}), M = () => {
98
- const n = j(qt);
90
+ }), Le = h([], {
91
+ variants: {
92
+ size: {
93
+ none: ["shadow-none"],
94
+ "2xs": ["shadow-2xs"],
95
+ xs: ["shadow-xs"],
96
+ sm: ["shadow-sm"],
97
+ md: ["shadow-md"],
98
+ lg: ["shadow-lg"],
99
+ xl: ["shadow-xl"],
100
+ "2xl": ["shadow-2xl"]
101
+ }
102
+ }
103
+ }), Wt = O({}), V = () => {
104
+ const n = $(Wt);
99
105
  if (!n)
100
106
  throw new Error("useProvider must be used within a Provider");
101
107
  return n;
102
- }, io = u((n) => {
103
- const { accentColor: a, radius: t = "md", children: e } = n, s = w(
108
+ }, lo = u((n) => {
109
+ const { accentColor: a, radius: t = "md", children: e } = n, s = N(
104
110
  () => ({
105
111
  accentColor: a,
106
112
  radius: t
107
113
  }),
108
114
  [a, t]
109
115
  );
110
- return /* @__PURE__ */ i(qt.Provider, { value: s, children: e });
116
+ return /* @__PURE__ */ i(Wt.Provider, { value: s, children: e });
111
117
  });
112
- io.displayName = "Provider";
113
- const Wt = v([
118
+ lo.displayName = "Provider";
119
+ const Kt = h([
114
120
  "fixed",
115
121
  "inset-0",
116
122
  // background
@@ -122,7 +128,7 @@ const Wt = v([
122
128
  "data-[state='open']:fade-in-0",
123
129
  "data-[state='closed']:animate-out",
124
130
  "data-[state='closed']:fade-out-0"
125
- ]), Kt = v(
131
+ ]), Xt = h(
126
132
  [
127
133
  "h-max",
128
134
  "max-h-3/4",
@@ -165,14 +171,14 @@ const Wt = v([
165
171
  size: "md"
166
172
  }
167
173
  }
168
- ), et = u((n) => {
169
- const { radius: a } = M(), { ref: t, children: e, className: s, size: o, container: r, ...c } = n;
170
- return /* @__PURE__ */ W($.Portal, { container: r, children: [
171
- /* @__PURE__ */ i($.Overlay, { className: Wt({}), "data-floating-content": "" }),
174
+ ), tt = u((n) => {
175
+ const { radius: a } = V(), { ref: t, children: e, className: s, size: o, container: r, ...c } = n;
176
+ return /* @__PURE__ */ W(q.Portal, { container: r, children: [
177
+ /* @__PURE__ */ i(q.Overlay, { className: Kt({}), "data-floating-content": "" }),
172
178
  /* @__PURE__ */ i(
173
- $.Content,
179
+ q.Content,
174
180
  {
175
- className: x(Kt({ size: o }), k({ radius: a, maxLarge: !0 }), s),
181
+ className: x(Xt({ size: o }), k({ radius: a, maxLarge: !0 }), s),
176
182
  ref: t,
177
183
  "data-floating-content": "",
178
184
  ...c,
@@ -181,23 +187,23 @@ const Wt = v([
181
187
  )
182
188
  ] });
183
189
  });
184
- et.displayName = "AlertDialogContent";
185
- const Xt = T(() => {
190
+ tt.displayName = "AlertDialogContent";
191
+ const Yt = O(() => {
186
192
  throw new Error("No AlertDialogProvider found");
187
193
  }), Ec = () => {
188
- const n = j(Xt);
194
+ const n = $(Yt);
189
195
  if (!n)
190
196
  throw new Error("No AlertDialogProvider found");
191
197
  return n;
192
- }, Yt = T({}), lo = u((n) => {
193
- const a = M(), {
198
+ }, Qt = O({}), uo = u((n) => {
199
+ const a = V(), {
194
200
  children: t,
195
201
  variant: e = "solid",
196
202
  size: s = "md",
197
203
  radius: o = a.radius,
198
204
  accentColor: r = a.accentColor,
199
205
  ...c
200
- } = n, l = w(
206
+ } = n, l = N(
201
207
  () => ({
202
208
  variant: e,
203
209
  size: s,
@@ -206,10 +212,10 @@ const Xt = T(() => {
206
212
  }),
207
213
  [r, o, s, e]
208
214
  );
209
- return /* @__PURE__ */ i("div", { ...c, children: /* @__PURE__ */ i(Yt.Provider, { value: l, children: t }) });
215
+ return /* @__PURE__ */ i("div", { ...c, children: /* @__PURE__ */ i(Qt.Provider, { value: l, children: t }) });
210
216
  });
211
- lo.displayName = "Buttons";
212
- const Qt = () => j(Yt), Jt = v(
217
+ uo.displayName = "Buttons";
218
+ const Jt = () => $(Qt), Zt = h(
213
219
  [
214
220
  "inline-flex",
215
221
  "items-center",
@@ -236,45 +242,51 @@ const Qt = () => j(Yt), Jt = v(
236
242
  solid: [
237
243
  "ring-(--accent-9)",
238
244
  "bg-(--accent-9)",
239
- "hover:bg-(--accent-10)",
240
245
  "text-(--accent-contrast)",
241
246
  "active:brightness-110",
247
+ "hover:bg-(--accent-10)",
242
248
  // trigger state
243
249
  "data-[state='open']:bg-(--accent-10)"
244
250
  ],
245
251
  soft: [
246
252
  "bg-(--accent-a3)",
253
+ "text-(--accent-a11)",
247
254
  "hover:bg-(--accent-a4)",
255
+ "hover:text-(--accent-a12)",
248
256
  "active:bg-(--accent-a5)",
249
- "text-(--accent-a11)",
250
257
  // trigger state
251
258
  "data-[state='open']:bg-(--accent-a4)"
252
259
  ],
253
260
  ghost: [
254
261
  "bg-transparent",
262
+ "text-(--accent-a11)",
255
263
  "hover:bg-(--accent-a3)",
264
+ "hover:text-(--accent-a12)",
256
265
  "active:bg-(--accent-a4)",
257
- "text-(--accent-a11)",
258
266
  // trigger state
259
267
  "data-[state='open']:bg-(--accent-a3)"
260
268
  ],
261
269
  surface: [
262
270
  "bg-(--accent-surface)",
263
- "hover:inset-ring-(--accent-a8)",
264
- "active:bg-(--accent-a3)",
265
271
  "inset-ring",
266
272
  "inset-ring-(--accent-a7)",
267
273
  "text-(--accent-a11)",
274
+ "hover:inset-ring-(--accent-a8)",
275
+ "hover:text-(--accent-a12)",
276
+ "active:bg-(--accent-a3)",
277
+ // trigger state
268
278
  "data-[state='open']:bg-(--accent-a4)"
269
279
  ],
270
280
  outline: [
271
281
  "bg-transparent",
272
282
  "inset-ring",
273
283
  "inset-ring-(--accent-a7)",
284
+ "text-(--accent-a11)",
274
285
  "hover:inset-ring-(--accent-a8)",
275
286
  "hover:bg-(--accent-a3)",
287
+ "hover:text-(--accent-a12)",
276
288
  "active:bg-(--accent-a4)",
277
- "text-(--accent-a11)",
289
+ // trigger state
278
290
  "data-[state='open']:inset-ring-(--accent-a8)",
279
291
  "data-[state='open']:bg-(--accent-a3)"
280
292
  ],
@@ -287,6 +299,7 @@ const Qt = () => j(Yt), Jt = v(
287
299
  "hover:bg-(--accent-a3)",
288
300
  "hover:text-(--accent-a12)",
289
301
  "active:bg-(--accent-a4)",
302
+ // trigger state
290
303
  "data-[state='open']:inset-ring-0",
291
304
  "data-[state='open']:bg-(--accent-a3)"
292
305
  ]
@@ -361,8 +374,8 @@ const Qt = () => j(Yt), Jt = v(
361
374
  variant: "solid"
362
375
  }
363
376
  }
364
- ), We = u((n) => {
365
- const a = M(), t = Qt(), {
377
+ ), Ke = u((n) => {
378
+ const a = V(), t = Jt(), {
366
379
  ref: e,
367
380
  children: s,
368
381
  className: o,
@@ -375,7 +388,7 @@ const Qt = () => j(Yt), Jt = v(
375
388
  return /* @__PURE__ */ i(
376
389
  "button",
377
390
  {
378
- className: x(Jt({ size: c, icon: !1, variant: r }), k({ radius: l, maxLarge: !1 }), o),
391
+ className: x(Zt({ size: c, icon: !1, variant: r }), k({ radius: l, maxLarge: !1 }), o),
379
392
  ref: e,
380
393
  "data-accent-color": d,
381
394
  ...m,
@@ -383,9 +396,9 @@ const Qt = () => j(Yt), Jt = v(
383
396
  }
384
397
  );
385
398
  });
386
- We.displayName = "Button";
387
- const tt = u((n) => {
388
- const a = M(), t = Qt(), {
399
+ Ke.displayName = "Button";
400
+ const at = u((n) => {
401
+ const a = V(), t = Jt(), {
389
402
  ref: e,
390
403
  children: s,
391
404
  className: o,
@@ -398,7 +411,7 @@ const tt = u((n) => {
398
411
  return /* @__PURE__ */ i(
399
412
  "button",
400
413
  {
401
- className: x(Jt({ size: c, icon: !0, variant: r }), k({ radius: l, maxLarge: !1 }), o),
414
+ className: x(Zt({ size: c, icon: !0, variant: r }), k({ radius: l, maxLarge: !1 }), o),
402
415
  ref: e,
403
416
  "data-accent-color": d,
404
417
  ...m,
@@ -406,15 +419,15 @@ const tt = u((n) => {
406
419
  }
407
420
  );
408
421
  });
409
- tt.displayName = "IconButton";
410
- const uo = u((n) => {
411
- const { children: a } = n, [t, e] = E(!1), [s, o] = E(null), r = h(
422
+ at.displayName = "IconButton";
423
+ const mo = u((n) => {
424
+ const { children: a } = n, [t, e] = E(!1), [s, o] = E(null), r = v(
412
425
  (l) => {
413
426
  var d;
414
427
  e(l), !l && ((d = s == null ? void 0 : s.onClose) == null || d.call(s));
415
428
  },
416
429
  [s]
417
- ), c = h(
430
+ ), c = v(
418
431
  (l) => {
419
432
  if (t) throw new Error("AlertDialog is already open");
420
433
  e(!0), o({
@@ -426,30 +439,30 @@ const uo = u((n) => {
426
439
  },
427
440
  [t]
428
441
  );
429
- return /* @__PURE__ */ W(Xt.Provider, { value: c, children: [
442
+ return /* @__PURE__ */ W(Yt.Provider, { value: c, children: [
430
443
  a,
431
- /* @__PURE__ */ i($.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ i(et, { size: s == null ? void 0 : s.size, children: /* @__PURE__ */ W("div", { className: "flex flex-col gap-4", children: [
444
+ /* @__PURE__ */ i(q.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ i(tt, { size: s == null ? void 0 : s.size, children: /* @__PURE__ */ W("div", { className: "flex flex-col gap-4", children: [
432
445
  /* @__PURE__ */ W("div", { className: "flex flex-col gap-1", children: [
433
- /* @__PURE__ */ i($.Title, { className: "font-medium", children: s == null ? void 0 : s.title }),
434
- /* @__PURE__ */ i($.Description, { children: s == null ? void 0 : s.description })
446
+ /* @__PURE__ */ i(q.Title, { className: "font-medium", children: s == null ? void 0 : s.title }),
447
+ /* @__PURE__ */ i(q.Description, { children: s == null ? void 0 : s.description })
435
448
  ] }),
436
449
  /* @__PURE__ */ W("div", { className: "flex justify-end gap-2", children: [
437
- /* @__PURE__ */ i($.Cancel, { onClick: s == null ? void 0 : s.onCancel, asChild: !0, children: /* @__PURE__ */ i(We, { variant: "soft", size: s == null ? void 0 : s.size, accentColor: "base", children: s == null ? void 0 : s.cancel }) }),
438
- /* @__PURE__ */ i($.Action, { onClick: s == null ? void 0 : s.onAction, asChild: !0, children: /* @__PURE__ */ i(We, { variant: "solid", size: s == null ? void 0 : s.size, children: s == null ? void 0 : s.action }) })
450
+ /* @__PURE__ */ i(q.Cancel, { onClick: s == null ? void 0 : s.onCancel, asChild: !0, children: /* @__PURE__ */ i(Ke, { variant: "soft", size: s == null ? void 0 : s.size, accentColor: "base", children: s == null ? void 0 : s.cancel }) }),
451
+ /* @__PURE__ */ i(q.Action, { onClick: s == null ? void 0 : s.onAction, asChild: !0, children: /* @__PURE__ */ i(Ke, { variant: "solid", size: s == null ? void 0 : s.size, children: s == null ? void 0 : s.action }) })
439
452
  ] })
440
453
  ] }) }) })
441
454
  ] });
442
455
  });
443
- uo.displayName = "AlertDialogProvider";
456
+ mo.displayName = "AlertDialogProvider";
444
457
  const _c = {
445
- Content: et,
446
- Trigger: $.Trigger,
447
- Root: $.Root,
448
- Title: $.Title,
449
- Description: $.Description,
450
- Action: $.Action,
451
- Cancel: $.Cancel
452
- }, Zt = T({}), mo = v(["shrink-0", "select-none", "inline-block", "align-middle"], {
458
+ Content: tt,
459
+ Trigger: q.Trigger,
460
+ Root: q.Root,
461
+ Title: q.Title,
462
+ Description: q.Description,
463
+ Action: q.Action,
464
+ Cancel: q.Cancel
465
+ }, ea = O({}), go = h(["shrink-0", "select-none", "inline-block", "align-middle"], {
453
466
  variants: {
454
467
  size: {
455
468
  xs: ["h-6", "w-6", "text-xs"],
@@ -462,7 +475,7 @@ const _c = {
462
475
  defaultVariants: {
463
476
  size: "md"
464
477
  }
465
- }), go = v(["flex", "items-center", "justify-center", "size-full", "rounded-[inherit]"], {
478
+ }), po = h(["flex", "items-center", "justify-center", "size-full", "rounded-[inherit]"], {
466
479
  variants: {
467
480
  variant: {
468
481
  solid: ["bg-(--accent-9)", "text-(--accent-contrast)"],
@@ -474,15 +487,15 @@ const _c = {
474
487
  defaultVariants: {
475
488
  variant: "solid"
476
489
  }
477
- }), ea = u((n) => {
478
- const { ref: a, children: t, className: e, ...s } = n, { variant: o } = j(Zt);
479
- return /* @__PURE__ */ i(Qe.AvatarFallback, { className: x(go({ variant: o }), e), ref: a, ...s, children: t });
490
+ }), ta = u((n) => {
491
+ const { ref: a, children: t, className: e, ...s } = n, { variant: o } = $(ea);
492
+ return /* @__PURE__ */ i(Je.AvatarFallback, { className: x(po({ variant: o }), e), ref: a, ...s, children: t });
480
493
  });
481
- ea.displayName = "AvatarFallback";
482
- const ta = u((n) => {
494
+ ta.displayName = "AvatarFallback";
495
+ const aa = u((n) => {
483
496
  const { ref: a, className: t, ...e } = n;
484
497
  return /* @__PURE__ */ i(
485
- Qe.Image,
498
+ Je.Image,
486
499
  {
487
500
  className: x("object-cover", "rounded-[inherit]", "w-full", "h-full", t),
488
501
  ref: a,
@@ -490,9 +503,9 @@ const ta = u((n) => {
490
503
  }
491
504
  );
492
505
  });
493
- ta.displayName = "AvatarImage";
494
- const aa = u((n) => {
495
- const a = M(), {
506
+ aa.displayName = "AvatarImage";
507
+ const na = u((n) => {
508
+ const a = V(), {
496
509
  ref: t,
497
510
  children: e,
498
511
  className: s,
@@ -503,22 +516,22 @@ const aa = u((n) => {
503
516
  ...d
504
517
  } = n;
505
518
  return /* @__PURE__ */ i(
506
- Qe.Root,
519
+ Je.Root,
507
520
  {
508
- className: x(mo({ size: o }), k({ radius: l, maxLarge: !1 }), s),
521
+ className: x(go({ size: o }), k({ radius: l, maxLarge: !1 }), s),
509
522
  ref: t,
510
523
  "data-accent-color": c,
511
524
  ...d,
512
- children: /* @__PURE__ */ i(Zt.Provider, { value: { variant: r }, children: e })
525
+ children: /* @__PURE__ */ i(ea.Provider, { value: { variant: r }, children: e })
513
526
  }
514
527
  );
515
528
  });
516
- aa.displayName = "AvatarRoot";
529
+ na.displayName = "AvatarRoot";
517
530
  const Fc = {
518
- Fallback: ea,
519
- Image: ta,
520
- Root: aa
521
- }, po = v(["inline-flex", "items-center", "shrink-0", "whitespace-nowrap"], {
531
+ Fallback: ta,
532
+ Image: aa,
533
+ Root: na
534
+ }, xo = h(["inline-flex", "items-center", "shrink-0", "whitespace-nowrap"], {
522
535
  variants: {
523
536
  icon: {
524
537
  true: ["justify-center"],
@@ -596,8 +609,8 @@ const Fc = {
596
609
  variant: "solid",
597
610
  icon: !1
598
611
  }
599
- }), xo = u((n) => {
600
- const a = M(), {
612
+ }), fo = u((n) => {
613
+ const a = V(), {
601
614
  ref: t,
602
615
  children: e,
603
616
  className: s,
@@ -611,7 +624,7 @@ const Fc = {
611
624
  return /* @__PURE__ */ i(
612
625
  "span",
613
626
  {
614
- className: x(po({ variant: c, size: l, icon: d }), k({ radius: r, maxLarge: !1 }), s),
627
+ className: x(xo({ variant: c, size: l, icon: d }), k({ radius: r, maxLarge: !1 }), s),
615
628
  ref: t,
616
629
  "data-accent-color": o,
617
630
  ...m,
@@ -619,8 +632,8 @@ const Fc = {
619
632
  }
620
633
  );
621
634
  });
622
- xo.displayName = "Badge";
623
- const fo = v([], {
635
+ fo.displayName = "Badge";
636
+ const ho = h([], {
624
637
  variants: {
625
638
  variant: {
626
639
  soft: ["bg-(--accent-a2)"],
@@ -639,8 +652,8 @@ const fo = v([], {
639
652
  size: "md",
640
653
  variant: "surface"
641
654
  }
642
- }), ho = u((n) => {
643
- const a = M(), {
655
+ }), vo = u((n) => {
656
+ const a = V(), {
644
657
  ref: t,
645
658
  children: e,
646
659
  className: s,
@@ -654,15 +667,15 @@ const fo = v([], {
654
667
  "div",
655
668
  {
656
669
  ref: t,
657
- className: x(fo({ size: o, variant: r }), k({ radius: l, maxLarge: !0 }), s),
670
+ className: x(ho({ size: o, variant: r }), k({ radius: l, maxLarge: !0 }), s),
658
671
  "data-accent-color": c,
659
672
  ...d,
660
673
  children: e
661
674
  }
662
675
  );
663
676
  });
664
- ho.displayName = "Card";
665
- const na = u((n) => {
677
+ vo.displayName = "Card";
678
+ const sa = u((n) => {
666
679
  const { ref: a, children: t, className: e, ...s } = n;
667
680
  return /* @__PURE__ */ i(
668
681
  ze.CheckboxIndicator,
@@ -674,8 +687,8 @@ const na = u((n) => {
674
687
  }
675
688
  );
676
689
  });
677
- na.displayName = "CheckboxIndicator";
678
- const at = v(
690
+ sa.displayName = "CheckboxIndicator";
691
+ const nt = h(
679
692
  [
680
693
  "shrink-0",
681
694
  "align-top",
@@ -717,8 +730,8 @@ const at = v(
717
730
  size: "md"
718
731
  }
719
732
  }
720
- ), sa = u((n) => {
721
- const a = M(), {
733
+ ), oa = u((n) => {
734
+ const a = V(), {
722
735
  ref: t,
723
736
  children: e,
724
737
  className: s,
@@ -731,7 +744,7 @@ const at = v(
731
744
  return /* @__PURE__ */ i(
732
745
  ze.Root,
733
746
  {
734
- className: x(at({ variant: o, size: r }), k({ radius: c, maxLarge: !0 }), s),
747
+ className: x(nt({ variant: o, size: r }), k({ radius: c, maxLarge: !0 }), s),
735
748
  ref: t,
736
749
  "data-accent-color": l,
737
750
  ...d,
@@ -739,24 +752,24 @@ const at = v(
739
752
  }
740
753
  );
741
754
  });
742
- sa.displayName = "CheckboxRoot";
755
+ oa.displayName = "CheckboxRoot";
743
756
  const Hc = {
744
- Root: sa,
745
- Indicator: na
746
- }, Ne = T({}), Z = T({}), Bc = (n) => {
757
+ Root: oa,
758
+ Indicator: sa
759
+ }, Ne = O({}), Z = O({}), Bc = (n) => {
747
760
  const { xs: a, sm: t, md: e, lg: s, xl: o } = n, [r, c] = E("initial"), [l, d] = E("initial"), m = be({ minWidth: a }), g = be({ minWidth: t }), p = be({ minWidth: e }), f = be({ minWidth: s }), C = be({ minWidth: o });
748
761
  return ue(() => {
749
- d((S) => (c(S), C ? "xl" : f ? "lg" : p ? "md" : g ? "sm" : m ? "xs" : "initial"));
762
+ d((w) => (c(w), C ? "xl" : f ? "lg" : p ? "md" : g ? "sm" : m ? "xs" : "initial"));
750
763
  }, [f, p, g, C, m]), { size: l, prevSize: r, xs: m, sm: g, md: p, lg: f, xl: C };
751
764
  };
752
- function $c(n, a) {
765
+ function qc(n, a) {
753
766
  const [t, e] = E([]), [s, o] = E("");
754
767
  return B(() => {
755
768
  e(n.filter((r) => a(r, s)));
756
769
  }, [a, s, n]), [t, s, o];
757
770
  }
758
771
  function X(n, a, t) {
759
- const [e, s] = E(n), o = h(
772
+ const [e, s] = E(n), o = v(
760
773
  (r) => {
761
774
  s(r), t == null || t(r);
762
775
  },
@@ -766,12 +779,12 @@ function X(n, a, t) {
766
779
  a !== void 0 && s(a);
767
780
  }, [a]), [a ?? e, o];
768
781
  }
769
- function vo(n) {
770
- const a = Ye();
782
+ function bo(n) {
783
+ const a = Qe();
771
784
  return n ?? a;
772
785
  }
773
- function nt(n) {
774
- const a = U(n);
786
+ function st(n) {
787
+ const a = j(n);
775
788
  return a.current = n, a;
776
789
  }
777
790
  const F = u;
@@ -798,7 +811,7 @@ function we(n) {
798
811
  };
799
812
  };
800
813
  }
801
- const bo = (n) => {
814
+ const Co = (n) => {
802
815
  n.stopPropagation();
803
816
  };
804
817
  function oe(n) {
@@ -807,7 +820,7 @@ function oe(n) {
807
820
  function Ie(n) {
808
821
  return n === !0 ? "checked" : n === !1 ? "unchecked" : "indeterminate";
809
822
  }
810
- function Le(n) {
823
+ function Ae(n) {
811
824
  return n ? "active" : "inactive";
812
825
  }
813
826
  function Q(n) {
@@ -816,56 +829,56 @@ function Q(n) {
816
829
  function pe(n) {
817
830
  return n ? "open" : "closed";
818
831
  }
819
- const Ae = F(function(a) {
820
- const { children: t, defaultValues: e, values: s, onValuesChange: o, equalityFn: r } = a, c = nt(r), [l, d] = E(/* @__PURE__ */ new Set()), [m, g] = X(e ?? [], s, o), p = h(
821
- (y, V) => c.current ? V.some((A) => c.current(A, y)) : V.includes(y),
822
- [c]
823
- ), f = h((y) => (d((V) => {
824
- const A = new Set(V);
825
- return A.add(y), A;
832
+ const De = F(function(a) {
833
+ const { children: t, defaultValues: e, values: s, onValuesChange: o, allValues: r, equalityFn: c } = a, l = st(c), [d, m] = E(/* @__PURE__ */ new Set()), [g, p] = X(e ?? [], s, o), f = v(
834
+ (T, A) => l.current ? A.some((S) => l.current(S, T)) : A.includes(T),
835
+ [l]
836
+ ), C = v((T) => (m((A) => {
837
+ const S = new Set(A);
838
+ return S.add(T), S;
826
839
  }), () => {
827
- d((V) => {
828
- const A = new Set(V);
829
- return A.delete(y), A;
840
+ m((A) => {
841
+ const S = new Set(A);
842
+ return S.delete(T), S;
830
843
  });
831
- }), []), C = h((y) => p(y, m), [p, m]), S = h(
832
- (y) => {
833
- C(y) ? g(
834
- m.filter((V) => c.current ? !c.current(V, y) : V !== y)
835
- ) : g([...m, y]);
844
+ }), []), w = v((T) => f(T, g), [f, g]), z = v(
845
+ (T) => {
846
+ w(T) ? p(
847
+ g.filter((A) => l.current ? !l.current(A, T) : A !== T)
848
+ ) : p([...g, T]);
836
849
  },
837
- [c, C, g, m]
838
- ), z = w(() => Array.from(l.values()).every((y) => p(y, m)), [p, l, m]), N = w(() => Array.from(l.values()).some((y) => p(y, m)), [p, l, m]), P = h(() => {
839
- g(z ? [] : Array.from(l.values()));
840
- }, [z, l, g]), L = w(
841
- () => ({ selected: C, selectValue: S, allSelected: z, someSelected: N, toggleSelectAll: P, registerValue: f }),
842
- [z, f, S, C, N, P]
850
+ [l, w, p, g]
851
+ ), y = N(() => r ?? Array.from(d.values()), [r, d]), R = N(() => y.every((T) => f(T, g)), [f, y, g]), L = N(() => y.some((T) => f(T, g)), [f, y, g]), P = v(() => {
852
+ p(R ? [] : y);
853
+ }, [R, y, p]), D = N(
854
+ () => ({ selected: w, selectValue: z, allSelected: R, someSelected: L, toggleSelectAll: P, registerValue: C }),
855
+ [R, C, z, w, L, P]
843
856
  );
844
- return /* @__PURE__ */ i(Z, { value: L, children: t });
845
- }), st = F(function(a) {
846
- const { children: t, defaultValue: e, value: s, onValueChange: o, equalityFn: r } = a, c = nt(r), [l, d] = X(e, s, o), m = h(
857
+ return /* @__PURE__ */ i(Z, { value: D, children: t });
858
+ }), ot = F(function(a) {
859
+ const { children: t, defaultValue: e, value: s, onValueChange: o, equalityFn: r } = a, c = st(r), [l, d] = X(e, s, o), m = v(
847
860
  (f) => c.current ? c.current(f, l) : f === l,
848
861
  [l, c]
849
- ), g = h(
862
+ ), g = v(
850
863
  (f) => {
851
864
  m(f) || d(f);
852
865
  },
853
866
  [m, d]
854
- ), p = w(() => ({ selected: m, selectValue: g }), [g, m]);
867
+ ), p = N(() => ({ selected: m, selectValue: g }), [g, m]);
855
868
  return /* @__PURE__ */ i(Ne, { value: p, children: t });
856
- }), ot = F(function(a) {
857
- const { children: t, defaultValue: e = void 0, value: s, onValueChange: o, equalityFn: r } = a, c = nt(r), [l, d] = X(e, s, o), m = h(
869
+ }), rt = F(function(a) {
870
+ const { children: t, defaultValue: e = void 0, value: s, onValueChange: o, equalityFn: r } = a, c = st(r), [l, d] = X(e, s, o), m = v(
858
871
  (f) => l !== void 0 && (c.current ? c.current(f, l) : f === l),
859
872
  [l, c]
860
- ), g = h(
873
+ ), g = v(
861
874
  (f) => {
862
875
  d(m(f) ? void 0 : f);
863
876
  },
864
877
  [m, d]
865
- ), p = w(() => ({ selected: m, selectValue: g }), [m, g]);
878
+ ), p = N(() => ({ selected: m, selectValue: g }), [m, g]);
866
879
  return /* @__PURE__ */ i(Ne, { value: p, children: t });
867
- }), rt = T({}), oa = u((n) => {
868
- const a = b(rt), {
880
+ }), ct = O({}), ra = u((n) => {
881
+ const a = b(ct), {
869
882
  ref: t,
870
883
  className: e,
871
884
  value: s,
@@ -877,17 +890,17 @@ const Ae = F(function(a) {
877
890
  ...m
878
891
  } = n, { selected: g, selectValue: p, registerValue: f } = b(Z);
879
892
  ue(() => f(s), [f, s]);
880
- const C = g(s), S = a.disabled || o, z = h(() => {
893
+ const C = g(s), w = a.disabled || o, z = v(() => {
881
894
  p(s);
882
895
  }, [p, s]);
883
896
  return /* @__PURE__ */ i(
884
897
  ze.Root,
885
898
  {
886
899
  ref: t,
887
- className: x(at({ variant: c, size: l }), k({ radius: d, maxLarge: !0 }), e),
900
+ className: x(nt({ variant: c, size: l }), k({ radius: d, maxLarge: !0 }), e),
888
901
  name: a.name,
889
902
  required: a.required,
890
- disabled: S,
903
+ disabled: w,
891
904
  value: s,
892
905
  checked: C,
893
906
  onCheckedChange: z,
@@ -896,64 +909,66 @@ const Ae = F(function(a) {
896
909
  }
897
910
  );
898
911
  });
899
- oa.displayName = "CheckboxGroupItem";
900
- const ra = u((n) => {
912
+ ra.displayName = "CheckboxGroupItem";
913
+ const ca = u((n) => {
901
914
  const { ref: a, className: t, ...e } = n;
902
915
  return /* @__PURE__ */ i(ze.Indicator, { className: x("flex items-center justify-center", t), ref: a, ...e });
903
916
  });
904
- ra.displayName = "CheckboxGroupItemIndicator";
905
- const ca = u((n) => {
906
- const a = M(), {
917
+ ca.displayName = "CheckboxGroupItemIndicator";
918
+ const ia = u((n) => {
919
+ const a = V(), {
907
920
  ref: t,
908
921
  defaultValues: e,
909
922
  values: s,
910
923
  onValuesChange: o,
911
- children: r,
912
- name: c,
913
- required: l,
914
- disabled: d,
915
- accentColor: m = a.accentColor,
916
- radius: g = a.radius,
917
- variant: p = "surface",
918
- size: f = "md",
919
- ...C
920
- } = n, S = w(
924
+ allValues: r,
925
+ children: c,
926
+ name: l,
927
+ required: d,
928
+ disabled: m,
929
+ accentColor: g = a.accentColor,
930
+ radius: p = a.radius,
931
+ variant: f = "surface",
932
+ size: C = "md",
933
+ ...w
934
+ } = n, z = N(
921
935
  () => ({
922
- name: c,
923
- required: l,
924
- disabled: d,
936
+ name: l,
937
+ required: d,
938
+ disabled: m,
925
939
  // style props
926
- accentColor: m,
927
- size: f,
928
- variant: p,
929
- radius: g
940
+ accentColor: g,
941
+ size: C,
942
+ variant: f,
943
+ radius: p
930
944
  }),
931
- [m, d, c, g, l, f, p]
945
+ [g, m, l, p, d, C, f]
932
946
  );
933
947
  return /* @__PURE__ */ i(
934
948
  "div",
935
949
  {
936
950
  ref: t,
937
951
  role: "group",
938
- "data-disabled": Q(!!d),
939
- "data-accent-color": m,
940
- "aria-disabled": Q(!!d),
941
- ...C,
942
- children: /* @__PURE__ */ i(rt.Provider, { value: S, children: /* @__PURE__ */ i(
943
- Ae,
952
+ "data-disabled": Q(!!m),
953
+ "data-accent-color": g,
954
+ "aria-disabled": Q(!!m),
955
+ ...w,
956
+ children: /* @__PURE__ */ i(ct.Provider, { value: z, children: /* @__PURE__ */ i(
957
+ De,
944
958
  {
945
959
  defaultValues: e,
946
960
  values: s,
947
961
  onValuesChange: o,
948
- children: r
962
+ allValues: r,
963
+ children: c
949
964
  }
950
965
  ) })
951
966
  }
952
967
  );
953
968
  });
954
- ca.displayName = "CheckboxGroupRoot";
955
- const ia = u((n) => {
956
- const a = b(rt), {
969
+ ia.displayName = "CheckboxGroupRoot";
970
+ const la = u((n) => {
971
+ const a = b(ct), {
957
972
  ref: t,
958
973
  className: e,
959
974
  disabled: s,
@@ -967,7 +982,7 @@ const ia = u((n) => {
967
982
  ze.Root,
968
983
  {
969
984
  ref: t,
970
- className: x(at({ variant: r, size: c }), k({ radius: l, maxLarge: !0 }), e),
985
+ className: x(nt({ variant: r, size: c }), k({ radius: l, maxLarge: !0 }), e),
971
986
  name: a.name,
972
987
  required: a.required,
973
988
  disabled: C,
@@ -978,13 +993,13 @@ const ia = u((n) => {
978
993
  }
979
994
  );
980
995
  });
981
- ia.displayName = "CheckboxGroupSelectAllItem";
982
- const jc = {
983
- Root: ca,
984
- Item: oa,
985
- SelectAllItem: ia,
986
- ItemIndicator: ra
987
- }, Se = T({}), De = u((n) => {
996
+ la.displayName = "CheckboxGroupSelectAllItem";
997
+ const $c = {
998
+ Root: ia,
999
+ Item: ra,
1000
+ SelectAllItem: la,
1001
+ ItemIndicator: ca
1002
+ }, Se = O({}), Ge = u((n) => {
988
1003
  const { children: a, ref: t, className: e, ...s } = n, o = b(Se), r = typeof a == "function" ? a(o) : a;
989
1004
  return /* @__PURE__ */ i(
990
1005
  "span",
@@ -1003,13 +1018,13 @@ const jc = {
1003
1018
  }
1004
1019
  );
1005
1020
  });
1006
- De.displayName = "CheckedIndicator";
1007
- const la = u((n) => {
1021
+ Ge.displayName = "CheckedIndicator";
1022
+ const da = u((n) => {
1008
1023
  const { ref: a, children: t, ...e } = n;
1009
- return /* @__PURE__ */ i(De, { ref: a, ...e, children: t });
1024
+ return /* @__PURE__ */ i(Ge, { ref: a, ...e, children: t });
1010
1025
  });
1011
- la.displayName = "CommandMenuCheckboxIndicator";
1012
- const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
1026
+ da.displayName = "CommandMenuCheckboxIndicator";
1027
+ const re = O({}), it = O(!1), ua = O(!1), lt = O({}), ma = O({}), yo = h(
1013
1028
  [
1014
1029
  "ring",
1015
1030
  "ring-(--base-6)",
@@ -1044,7 +1059,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
1044
1059
  size: "md"
1045
1060
  }
1046
1061
  }
1047
- ), yo = v([
1062
+ ), zo = h([
1048
1063
  "fixed",
1049
1064
  "inset-0",
1050
1065
  "duration-200",
@@ -1054,7 +1069,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
1054
1069
  "data-[state='open']:fade-in-0",
1055
1070
  "data-[state='closed']:animate-out",
1056
1071
  "data-[state='closed']:fade-out-0"
1057
- ]), zo = v(
1072
+ ]), No = h(
1058
1073
  ["[scrollbar-width:thin]", "[scrollbar-color:var(--base-6)_transparent]", "overflow-auto", "h-max", "max-h-100"],
1059
1074
  {
1060
1075
  variants: {
@@ -1070,7 +1085,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
1070
1085
  size: "md"
1071
1086
  }
1072
1087
  }
1073
- ), No = v(["outline-none", "w-full", "placeholder-(--base-a9)"], {
1088
+ ), wo = h(["outline-none", "w-full", "placeholder-(--base-a9)"], {
1074
1089
  variants: {
1075
1090
  size: {
1076
1091
  xs: ["h-12", "px-5.25", "text-base"],
@@ -1080,7 +1095,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
1080
1095
  xl: ["h-16", "px-9.25", "text-xl"]
1081
1096
  }
1082
1097
  }
1083
- }), wo = v(["h-px", "bg-(--base-a6)", "w-full"], {
1098
+ }), Io = h(["h-px", "bg-(--base-a6)", "w-full"], {
1084
1099
  variants: {
1085
1100
  spacing: {
1086
1101
  true: [],
@@ -1101,7 +1116,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
1101
1116
  { spacing: !0, size: "lg", className: ["my-2.5"] },
1102
1117
  { spacing: !0, size: "xl", className: ["my-2.75"] }
1103
1118
  ]
1104
- }), Io = v(
1119
+ }), So = h(
1105
1120
  [
1106
1121
  "relative",
1107
1122
  "flex",
@@ -1157,7 +1172,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
1157
1172
  variant: "soft"
1158
1173
  }
1159
1174
  }
1160
- ), So = v(["flex", "justify-center", "text-(--base-a11)"], {
1175
+ ), ko = h(["flex", "justify-center", "text-(--base-a11)"], {
1161
1176
  variants: {
1162
1177
  size: {
1163
1178
  xs: ["py-3.5"],
@@ -1167,7 +1182,7 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
1167
1182
  xl: ["py-5.5"]
1168
1183
  }
1169
1184
  }
1170
- }), ko = v(
1185
+ }), Ro = h(
1171
1186
  [
1172
1187
  "[&_[cmdk-group-heading]]:text-(--base-a10)",
1173
1188
  "[&_[cmdk-group-heading]]:flex",
@@ -1210,13 +1225,13 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
1210
1225
  }
1211
1226
  }
1212
1227
  ), ce = u((n) => {
1213
- const { className: a, ref: t, closeOnSelect: e = !0, onSelect: s, filterValue: o, ...r } = n, { size: c, variant: l, radius: d } = b(re), { setOpen: m } = b(ua), g = h(() => {
1228
+ const { className: a, ref: t, closeOnSelect: e = !0, onSelect: s, filterValue: o, ...r } = n, { size: c, variant: l, radius: d } = b(re), { setOpen: m } = b(ma), g = v(() => {
1214
1229
  s == null || s(), e && m(!1);
1215
1230
  }, [e, s, m]);
1216
1231
  return /* @__PURE__ */ i(
1217
- Ns,
1232
+ ws,
1218
1233
  {
1219
- className: x(Io({ size: c, variant: l, radius: d }), a),
1234
+ className: x(So({ size: c, variant: l, radius: d }), a),
1220
1235
  ref: t,
1221
1236
  onSelect: g,
1222
1237
  value: o,
@@ -1225,15 +1240,15 @@ const re = T({}), ct = T(!1), da = T(!1), it = T({}), ua = T({}), Co = v(
1225
1240
  );
1226
1241
  });
1227
1242
  ce.displayName = "CommandMenuItem";
1228
- const ma = u((n) => {
1229
- const { children: a, ref: t, checked: e, onCheckedChange: s, onSelect: o, ...r } = n, c = h(() => {
1243
+ const ga = u((n) => {
1244
+ const { children: a, ref: t, checked: e, onCheckedChange: s, onSelect: o, ...r } = n, c = v(() => {
1230
1245
  o == null || o(), s(e !== !0);
1231
1246
  }, [e, s, o]);
1232
- return /* @__PURE__ */ i(da, { value: e, children: /* @__PURE__ */ i(ce, { ref: t, onSelect: c, "data-state": Ie(e), ...r, children: a }) });
1247
+ return /* @__PURE__ */ i(ua, { value: e, children: /* @__PURE__ */ i(ce, { ref: t, onSelect: c, "data-state": Ie(e), ...r, children: a }) });
1233
1248
  });
1234
- ma.displayName = "CommandMenuCheckboxItem";
1235
- const ga = u((n) => {
1236
- const a = M(), {
1249
+ ga.displayName = "CommandMenuCheckboxItem";
1250
+ const pa = u((n) => {
1251
+ const a = V(), {
1237
1252
  children: t,
1238
1253
  className: e,
1239
1254
  ref: s,
@@ -1249,15 +1264,15 @@ const ga = u((n) => {
1249
1264
  size: p = "md",
1250
1265
  accentColor: f = "base",
1251
1266
  radius: C = a.radius,
1252
- ...S
1253
- } = n, z = w(() => ({
1267
+ ...w
1268
+ } = n, z = N(() => ({
1254
1269
  variant: g,
1255
1270
  size: p,
1256
1271
  radius: C,
1257
1272
  accentColor: f
1258
1273
  }), [f, C, p, g]);
1259
- return /* @__PURE__ */ i(kt, { children: /* @__PURE__ */ i(
1260
- Ms,
1274
+ return /* @__PURE__ */ i(Rt, { children: /* @__PURE__ */ i(
1275
+ Os,
1261
1276
  {
1262
1277
  forceMount: o,
1263
1278
  onOpenAutoFocus: r,
@@ -1268,15 +1283,15 @@ const ga = u((n) => {
1268
1283
  "data-floating-content": "",
1269
1284
  asChild: !0,
1270
1285
  children: /* @__PURE__ */ W(
1271
- ws,
1286
+ Is,
1272
1287
  {
1273
- className: x(Co({ size: p }), k({ radius: C, maxLarge: !0 }), e),
1288
+ className: x(yo({ size: p }), k({ radius: C, maxLarge: !0 }), e),
1274
1289
  ref: s,
1275
1290
  "data-accent-color": f,
1276
- ...S,
1291
+ ...w,
1277
1292
  children: [
1278
- /* @__PURE__ */ i(Os, { className: "sr-only", children: n.label }),
1279
- /* @__PURE__ */ i(Vs, { className: "sr-only", children: "Use the command menu to trigger commands." }),
1293
+ /* @__PURE__ */ i(Vs, { className: "sr-only", children: n.label }),
1294
+ /* @__PURE__ */ i(Ls, { className: "sr-only", children: "Use the command menu to trigger commands." }),
1280
1295
  /* @__PURE__ */ i(re, { value: z, children: t })
1281
1296
  ]
1282
1297
  }
@@ -1284,49 +1299,59 @@ const ga = u((n) => {
1284
1299
  }
1285
1300
  ) });
1286
1301
  });
1287
- ga.displayName = "CommandMenuContent";
1288
- const pa = u((n) => {
1289
- const { className: a, ref: t, ...e } = n, { size: s } = b(re);
1290
- return /* @__PURE__ */ i(Is, { className: x(So({ size: s }), a), ref: t, ...e });
1291
- });
1292
- pa.displayName = "CommandMenuEmpty";
1293
- const Ge = u((n) => {
1302
+ pa.displayName = "CommandMenuContent";
1303
+ const xa = u((n) => {
1294
1304
  const { className: a, ref: t, ...e } = n, { size: s } = b(re);
1295
1305
  return /* @__PURE__ */ i(Ss, { className: x(ko({ size: s }), a), ref: t, ...e });
1296
1306
  });
1297
- Ge.displayName = "CommandMenuGroup";
1298
- const xa = u((n) => {
1307
+ xa.displayName = "CommandMenuEmpty";
1308
+ const Ee = u((n) => {
1299
1309
  const { className: a, ref: t, ...e } = n, { size: s } = b(re);
1300
- return /* @__PURE__ */ i(ks, { className: x(No({ size: s }), a), ref: t, ...e });
1310
+ return /* @__PURE__ */ i(ks, { className: x(Ro({ size: s }), a), ref: t, ...e });
1301
1311
  });
1302
- xa.displayName = "CommandMenuInput";
1312
+ Ee.displayName = "CommandMenuGroup";
1303
1313
  const fa = u((n) => {
1304
- const { className: a, ref: t, ...e } = n, { size: s } = b(re), o = Rs((r) => r.filtered.count);
1314
+ const { className: a, ref: t, ...e } = n, { size: s } = b(re);
1315
+ return /* @__PURE__ */ i(Rs, { className: x(wo({ size: s }), a), ref: t, ...e });
1316
+ });
1317
+ fa.displayName = "CommandMenuInput";
1318
+ const ha = u((n) => {
1319
+ const { className: a, ref: t, ...e } = n, { size: s } = b(re), o = Ts((r) => r.filtered.count);
1305
1320
  return /* @__PURE__ */ i(
1306
- Ts,
1321
+ Ps,
1307
1322
  {
1308
- className: x(zo({ size: s }), a),
1323
+ className: x(No({ size: s }), a),
1309
1324
  ref: t,
1310
1325
  hidden: o === 0,
1311
1326
  ...e
1312
1327
  }
1313
1328
  );
1314
1329
  });
1315
- fa.displayName = "CommandMenuList";
1316
- const Ro = F(function(a) {
1317
- const { children: t, ref: e, defaultValues: s, values: o, onValuesChange: r, ...c } = a;
1318
- return /* @__PURE__ */ i(Ae, { values: o, onValuesChange: r, defaultValues: s, children: /* @__PURE__ */ i(Ge, { ref: e, "aria-multiselectable": !0, ...c, children: t }) });
1319
- }), To = F(function(n) {
1330
+ ha.displayName = "CommandMenuList";
1331
+ const To = F(function(a) {
1332
+ const { children: t, ref: e, defaultValues: s, values: o, onValuesChange: r, allValues: c, equalityFn: l, ...d } = a;
1333
+ return /* @__PURE__ */ i(
1334
+ De,
1335
+ {
1336
+ values: o,
1337
+ onValuesChange: r,
1338
+ defaultValues: s,
1339
+ allValues: c,
1340
+ equalityFn: l,
1341
+ children: /* @__PURE__ */ i(Ee, { ref: e, "aria-multiselectable": !0, ...d, children: t })
1342
+ }
1343
+ );
1344
+ }), Po = F(function(n) {
1320
1345
  const { children: a, ref: t, value: e, onSelect: s, closeOnSelect: o = !1, ...r } = n, {
1321
1346
  selected: c,
1322
1347
  selectValue: l,
1323
1348
  registerValue: d
1324
1349
  } = b(Z);
1325
1350
  ue(() => d(e), [d, e]);
1326
- const m = h(() => {
1351
+ const m = v(() => {
1327
1352
  s == null || s(), l(e);
1328
1353
  }, [l, s, e]), g = c(e);
1329
- return /* @__PURE__ */ i(ct, { value: g, children: /* @__PURE__ */ i(
1354
+ return /* @__PURE__ */ i(it, { value: g, children: /* @__PURE__ */ i(
1330
1355
  ce,
1331
1356
  {
1332
1357
  ref: t,
@@ -1338,41 +1363,41 @@ const Ro = F(function(a) {
1338
1363
  children: a
1339
1364
  }
1340
1365
  ) });
1341
- }), ha = u((n) => {
1366
+ }), va = u((n) => {
1342
1367
  const { container: a, className: t, ...e } = n;
1343
- return /* @__PURE__ */ i(kt, { container: a, children: /* @__PURE__ */ i(Ls, { className: x(yo(), t), "data-floating-content": "", ...e }) });
1344
- });
1345
- ha.displayName = "CommandMenuOverlay";
1346
- const va = u((n) => {
1347
- const { children: a, ref: t, page: e, ...s } = n, { page: o } = b(it), r = w(() => e === o, [e, o]);
1348
- return /* @__PURE__ */ i("div", { ref: t, "data-active": Le(r), hidden: !r, ...s, children: r ? a : null });
1368
+ return /* @__PURE__ */ i(Rt, { container: a, children: /* @__PURE__ */ i(As, { className: x(zo(), t), "data-floating-content": "", ...e }) });
1349
1369
  });
1350
- va.displayName = "CommandMenuPage";
1370
+ va.displayName = "CommandMenuOverlay";
1351
1371
  const ba = u((n) => {
1352
- const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s);
1353
- return /* @__PURE__ */ i(it, { value: { page: o, setPage: r }, children: a });
1372
+ const { children: a, ref: t, page: e, ...s } = n, { page: o } = b(lt), r = N(() => e === o, [e, o]);
1373
+ return /* @__PURE__ */ i("div", { ref: t, "data-active": Ae(r), hidden: !r, ...s, children: r ? a : null });
1354
1374
  });
1355
- ba.displayName = "CommandMenuPages";
1375
+ ba.displayName = "CommandMenuPage";
1356
1376
  const Ca = u((n) => {
1357
- const { ref: a, page: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { page: r, setPage: c } = b(it), l = w(() => t === r, [t, r]), d = h(() => {
1377
+ const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s);
1378
+ return /* @__PURE__ */ i(lt, { value: { page: o, setPage: r }, children: a });
1379
+ });
1380
+ Ca.displayName = "CommandMenuPages";
1381
+ const ya = u((n) => {
1382
+ const { ref: a, page: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { page: r, setPage: c } = b(lt), l = N(() => t === r, [t, r]), d = v(() => {
1358
1383
  e == null || e(), c(t);
1359
1384
  }, [e, t, c]);
1360
- return /* @__PURE__ */ i(ct, { value: l, children: /* @__PURE__ */ i(
1385
+ return /* @__PURE__ */ i(it, { value: l, children: /* @__PURE__ */ i(
1361
1386
  ce,
1362
1387
  {
1363
1388
  ref: a,
1364
1389
  onSelect: d,
1365
- "data-state": Le(l),
1390
+ "data-state": Ae(l),
1366
1391
  closeOnSelect: s,
1367
1392
  ...o
1368
1393
  }
1369
1394
  ) });
1370
1395
  });
1371
- Ca.displayName = "CommandMenuPageTriggerItem";
1372
- const Po = F(function(a) {
1396
+ ya.displayName = "CommandMenuPageTriggerItem";
1397
+ const Mo = F(function(a) {
1373
1398
  const { children: t, ref: e, required: s, defaultValue: o, value: r, onValueChange: c, ...l } = a;
1374
- return /* @__PURE__ */ i(Ge, { ref: e, role: "radiogroup", ...l, children: s ? /* @__PURE__ */ i(
1375
- st,
1399
+ return /* @__PURE__ */ i(Ee, { ref: e, role: "radiogroup", ...l, children: s ? /* @__PURE__ */ i(
1400
+ ot,
1376
1401
  {
1377
1402
  defaultValue: o,
1378
1403
  value: r,
@@ -1380,7 +1405,7 @@ const Po = F(function(a) {
1380
1405
  children: t
1381
1406
  }
1382
1407
  ) : /* @__PURE__ */ i(
1383
- ot,
1408
+ rt,
1384
1409
  {
1385
1410
  defaultValue: o,
1386
1411
  value: r,
@@ -1388,12 +1413,12 @@ const Po = F(function(a) {
1388
1413
  children: t
1389
1414
  }
1390
1415
  ) });
1391
- }), Mo = F(function(n) {
1392
- const { children: a, ref: t, value: e, onSelect: s, ...o } = n, { selected: r, selectValue: c } = b(Ne), l = h(() => {
1416
+ }), Oo = F(function(n) {
1417
+ const { children: a, ref: t, value: e, onSelect: s, ...o } = n, { selected: r, selectValue: c } = b(Ne), l = v(() => {
1393
1418
  s == null || s(), c(e);
1394
1419
  }, [s, c, e]), d = r(e);
1395
- return /* @__PURE__ */ i(ct, { value: d, children: /* @__PURE__ */ i(ce, { ref: t, onSelect: l, "data-state": oe(d), ...o, children: a }) });
1396
- }), ya = u((n) => {
1420
+ return /* @__PURE__ */ i(it, { value: d, children: /* @__PURE__ */ i(ce, { ref: t, onSelect: l, "data-state": oe(d), ...o, children: a }) });
1421
+ }), za = u((n) => {
1397
1422
  const {
1398
1423
  children: a,
1399
1424
  defaultOpen: t,
@@ -1401,18 +1426,18 @@ const Po = F(function(a) {
1401
1426
  // oxlint-disable-next-line typescript/unbound-method
1402
1427
  onOpenChange: s,
1403
1428
  modal: o
1404
- } = n, [r, c] = X(t ?? !1, e, s), l = w(() => ({
1429
+ } = n, [r, c] = X(t ?? !1, e, s), l = N(() => ({
1405
1430
  open: r,
1406
1431
  setOpen: c
1407
1432
  }), [r, c]);
1408
- return /* @__PURE__ */ i(H.Root, { defaultOpen: t, open: r, onOpenChange: c, modal: o, children: /* @__PURE__ */ i(ua, { value: l, children: a }) });
1433
+ return /* @__PURE__ */ i(H.Root, { defaultOpen: t, open: r, onOpenChange: c, modal: o, children: /* @__PURE__ */ i(ma, { value: l, children: a }) });
1409
1434
  });
1410
- ya.displayName = "CommandMenuRoot";
1411
- const Oo = F(function(n) {
1412
- const { ref: a, onSelect: t, closeOnSelect: e = !1, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll: c } = b(Z), l = h(() => {
1435
+ za.displayName = "CommandMenuRoot";
1436
+ const Vo = F(function(n) {
1437
+ const { ref: a, onSelect: t, closeOnSelect: e = !1, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll: c } = b(Z), l = v(() => {
1413
1438
  t == null || t(), c();
1414
1439
  }, [t, c]), d = o ? !0 : r ? "indeterminate" : !1;
1415
- return /* @__PURE__ */ i(da, { value: d, children: /* @__PURE__ */ i(
1440
+ return /* @__PURE__ */ i(ua, { value: d, children: /* @__PURE__ */ i(
1416
1441
  ce,
1417
1442
  {
1418
1443
  ref: a,
@@ -1423,7 +1448,7 @@ const Oo = F(function(n) {
1423
1448
  ...s
1424
1449
  }
1425
1450
  ) });
1426
- }), xe = T(!1), Ee = u((n) => {
1451
+ }), xe = O(!1), _e = u((n) => {
1427
1452
  const { ref: a, children: t, className: e, ...s } = n, o = b(xe), r = typeof t == "function" ? t(o) : t;
1428
1453
  return /* @__PURE__ */ i(
1429
1454
  "span",
@@ -1442,63 +1467,63 @@ const Oo = F(function(n) {
1442
1467
  }
1443
1468
  );
1444
1469
  });
1445
- Ee.displayName = "SelectedIndicator";
1446
- const za = u((n) => {
1470
+ _e.displayName = "SelectedIndicator";
1471
+ const Na = u((n) => {
1447
1472
  const { ref: a, children: t, ...e } = n;
1448
- return /* @__PURE__ */ i(Ee, { ref: a, ...e, children: t });
1473
+ return /* @__PURE__ */ i(_e, { ref: a, ...e, children: t });
1449
1474
  });
1450
- za.displayName = "CommandMenuSelectedIndicator";
1451
- const Na = u((n) => {
1475
+ Na.displayName = "CommandMenuSelectedIndicator";
1476
+ const wa = u((n) => {
1452
1477
  const { className: a, ref: t, spacing: e = !1, ...s } = n, { size: o } = b(re);
1453
- return /* @__PURE__ */ i(Ps, { ref: t, className: x(wo({ size: o, spacing: e }), a), ...s });
1478
+ return /* @__PURE__ */ i(Ms, { ref: t, className: x(Io({ size: o, spacing: e }), a), ...s });
1454
1479
  });
1455
- Na.displayName = "CommandMenuSeparator";
1456
- const wa = u((n) => /* @__PURE__ */ i(As, { ...n }));
1457
- wa.displayName = "CommandMenuTrigger";
1458
- const Uc = {
1459
- Root: ya,
1460
- Overlay: ha,
1461
- Content: ga,
1462
- Trigger: wa,
1463
- Input: xa,
1464
- List: fa,
1465
- Group: Ge,
1480
+ wa.displayName = "CommandMenuSeparator";
1481
+ const Ia = u((n) => /* @__PURE__ */ i(Ds, { ...n }));
1482
+ Ia.displayName = "CommandMenuTrigger";
1483
+ const jc = {
1484
+ Root: za,
1485
+ Overlay: va,
1486
+ Content: pa,
1487
+ Trigger: Ia,
1488
+ Input: fa,
1489
+ List: ha,
1490
+ Group: Ee,
1466
1491
  Item: ce,
1467
- Separator: Na,
1468
- Empty: pa,
1492
+ Separator: wa,
1493
+ Empty: xa,
1469
1494
  // Multi select
1470
- MultiSelectGroup: Ro,
1471
- MultiSelectItem: To,
1472
- SelectAllItem: Oo,
1473
- SelectedIndicator: za,
1495
+ MultiSelectGroup: To,
1496
+ MultiSelectItem: Po,
1497
+ SelectAllItem: Vo,
1498
+ SelectedIndicator: Na,
1474
1499
  // Radio / single select
1475
- RadioGroup: Po,
1476
- RadioItem: Mo,
1500
+ RadioGroup: Mo,
1501
+ RadioItem: Oo,
1477
1502
  // Checkbox
1478
- CheckboxItem: ma,
1479
- CheckboxIndicator: la,
1503
+ CheckboxItem: ga,
1504
+ CheckboxIndicator: da,
1480
1505
  // Pages
1481
- Pages: ba,
1482
- Page: va,
1483
- PageTriggerItem: Ca
1484
- }, q = u((n) => {
1506
+ Pages: Ca,
1507
+ Page: ba,
1508
+ PageTriggerItem: ya
1509
+ }, U = u((n) => {
1485
1510
  const { ref: a, icon: t, className: e, size: s = "1em", ...o } = n;
1486
1511
  return /* @__PURE__ */ i(t, { ref: a, className: x("shrink-0", e), size: s, ...o });
1487
1512
  });
1488
- q.displayName = "LuIcon";
1489
- const Vo = (n) => {
1513
+ U.displayName = "LuIcon";
1514
+ const Lo = (n) => {
1490
1515
  const { orientation: a, ...t } = n;
1491
1516
  switch (a) {
1492
1517
  case "up":
1493
- return /* @__PURE__ */ i(q, { icon: Fs, ...t });
1518
+ return /* @__PURE__ */ i(U, { icon: Hs, ...t });
1494
1519
  case "down":
1495
- return /* @__PURE__ */ i(q, { icon: _s, ...t });
1520
+ return /* @__PURE__ */ i(U, { icon: Fs, ...t });
1496
1521
  case "left":
1497
- return /* @__PURE__ */ i(q, { icon: Es, ...t });
1522
+ return /* @__PURE__ */ i(U, { icon: _s, ...t });
1498
1523
  default:
1499
- return /* @__PURE__ */ i(q, { icon: Gs, ...t });
1524
+ return /* @__PURE__ */ i(U, { icon: Es, ...t });
1500
1525
  }
1501
- }, Lo = v(["relative", "size-max"], {
1526
+ }, Ao = h(["relative", "size-max"], {
1502
1527
  variants: {
1503
1528
  size: {
1504
1529
  xs: ["text-xs"],
@@ -1508,7 +1533,7 @@ const Vo = (n) => {
1508
1533
  xl: ["text-xl"]
1509
1534
  }
1510
1535
  }
1511
- }), Ao = v(
1536
+ }), Do = h(
1512
1537
  [
1513
1538
  "relative",
1514
1539
  "transition-[background,text]",
@@ -1560,7 +1585,7 @@ const Vo = (n) => {
1560
1585
  }
1561
1586
  }
1562
1587
  }
1563
- ), wt = v(
1588
+ ), It = h(
1564
1589
  [
1565
1590
  "focus-visible:outline-2",
1566
1591
  "focus-visible:-outline-offset-1",
@@ -1585,7 +1610,7 @@ const Vo = (n) => {
1585
1610
  }
1586
1611
  }
1587
1612
  }
1588
- ), Do = v(["font-medium", "text-(--base-a11)"], {
1613
+ ), Go = h(["font-medium", "text-(--base-a11)"], {
1589
1614
  variants: {
1590
1615
  size: {
1591
1616
  xs: ["size-6"],
@@ -1595,7 +1620,7 @@ const Vo = (n) => {
1595
1620
  xl: ["size-10"]
1596
1621
  }
1597
1622
  }
1598
- }), Go = v(
1623
+ }), Eo = h(
1599
1624
  [
1600
1625
  "*:after:absolute",
1601
1626
  "*:after:bg-(--base-12)",
@@ -1620,7 +1645,7 @@ const Vo = (n) => {
1620
1645
  }
1621
1646
  }
1622
1647
  }
1623
- ), Eo = v(["font-medium", "w-full", "flex", "gap-4", "items-center"], {
1648
+ ), _o = h(["font-medium", "w-full", "flex", "gap-4", "items-center"], {
1624
1649
  variants: {
1625
1650
  size: {
1626
1651
  xs: ["h-6"],
@@ -1630,7 +1655,7 @@ const Vo = (n) => {
1630
1655
  xl: ["h-10"]
1631
1656
  }
1632
1657
  }
1633
- }), _o = v(
1658
+ }), Fo = h(
1634
1659
  [
1635
1660
  "focus-visible:outline-2",
1636
1661
  "focus-visible:-outline-offset-1",
@@ -1655,7 +1680,7 @@ const Vo = (n) => {
1655
1680
  }
1656
1681
  }
1657
1682
  }
1658
- ), Fo = v(["inline-flex", "items-center"], {
1683
+ ), Ho = h(["inline-flex", "items-center"], {
1659
1684
  variants: {
1660
1685
  size: {
1661
1686
  xs: ["h-6", "text-xs", "gap-0.5"],
@@ -1665,8 +1690,8 @@ const Vo = (n) => {
1665
1690
  xl: ["h-10", "text-xl", "gap-1.5"]
1666
1691
  }
1667
1692
  }
1668
- }), It = { Chevron: Vo }, Ho = new Date(1969, 0, 1), Bo = new Date(2042, 11, 1), $o = u((n) => {
1669
- const a = M(), {
1693
+ }), St = { Chevron: Lo }, Bo = new Date(1969, 0, 1), qo = new Date(2042, 11, 1), $o = u((n) => {
1694
+ const a = V(), {
1670
1695
  components: t,
1671
1696
  classNames: e,
1672
1697
  accentColor: s = a.accentColor,
@@ -1674,31 +1699,31 @@ const Vo = (n) => {
1674
1699
  variant: r = "soft",
1675
1700
  radius: c = a.radius,
1676
1701
  showOutsideDays: l = !0,
1677
- startMonth: d = Ho,
1678
- endMonth: m = Bo,
1702
+ startMonth: d = Bo,
1703
+ endMonth: m = qo,
1679
1704
  ...g
1680
- } = n, p = w(() => ({
1705
+ } = n, p = N(() => ({
1681
1706
  ...e,
1682
- root: x(e == null ? void 0 : e.root, Lo({ size: o })),
1707
+ root: x(e == null ? void 0 : e.root, Ao({ size: o })),
1683
1708
  nav: x(e == null ? void 0 : e.nav, ["absolute", "top-0", "w-full", "flex", "justify-end"]),
1684
1709
  month: x(e == null ? void 0 : e.month, ["flex", "flex-col", "gap-1"]),
1685
- month_caption: x(e == null ? void 0 : e.month_caption, Eo({ size: o })),
1710
+ month_caption: x(e == null ? void 0 : e.month_caption, _o({ size: o })),
1686
1711
  button_next: x(
1687
1712
  e == null ? void 0 : e.button_next,
1688
- wt({ size: o }),
1713
+ It({ size: o }),
1689
1714
  k({ radius: c, maxLarge: !1 })
1690
1715
  ),
1691
1716
  button_previous: x(
1692
1717
  e == null ? void 0 : e.button_previous,
1693
- wt({ size: o }),
1718
+ It({ size: o }),
1694
1719
  k({ radius: c, maxLarge: !1 })
1695
1720
  ),
1696
- weekday: x(e == null ? void 0 : e.weekday, Do({ size: o })),
1697
- today: x(e == null ? void 0 : e.today, Go({ size: o, variant: r })),
1721
+ weekday: x(e == null ? void 0 : e.weekday, Go({ size: o })),
1722
+ today: x(e == null ? void 0 : e.today, Eo({ size: o, variant: r })),
1698
1723
  day: x(e == null ? void 0 : e.day, ["group/day"]),
1699
1724
  day_button: x(
1700
1725
  e == null ? void 0 : e.day_button,
1701
- Ao({ size: o, variant: r }),
1726
+ Do({ size: o, variant: r }),
1702
1727
  k({ radius: c, maxLarge: !1 })
1703
1728
  ),
1704
1729
  range_start: x(e == null ? void 0 : e.range_start, "rdp-range-start"),
@@ -1708,18 +1733,18 @@ const Vo = (n) => {
1708
1733
  years_dropdown: "opacity-0 absolute z-[1]",
1709
1734
  dropdown_root: x(
1710
1735
  e == null ? void 0 : e.dropdown_root,
1711
- _o({ size: o }),
1736
+ Fo({ size: o }),
1712
1737
  k({ radius: c, maxLarge: !1 })
1713
1738
  ),
1714
1739
  dropdowns: "flex items-center",
1715
- caption_label: x(e == null ? void 0 : e.caption_label, Fo({ size: o })),
1740
+ caption_label: x(e == null ? void 0 : e.caption_label, Ho({ size: o })),
1716
1741
  chevron: "size-[1em]"
1717
- }), [e, c, o, r]), f = w(
1718
- () => t ? { ...It, ...t } : It,
1742
+ }), [e, c, o, r]), f = N(
1743
+ () => t ? { ...St, ...t } : St,
1719
1744
  [t]
1720
1745
  );
1721
1746
  return /* @__PURE__ */ i(
1722
- Ds,
1747
+ Gs,
1723
1748
  {
1724
1749
  "data-accent-color": s,
1725
1750
  showOutsideDays: l,
@@ -1734,17 +1759,17 @@ const Vo = (n) => {
1734
1759
  );
1735
1760
  });
1736
1761
  $o.displayName = "DayPicker";
1737
- const Ia = T({}), jo = () => {
1738
- const n = j(Ia);
1762
+ const Sa = O({}), jo = () => {
1763
+ const n = $(Sa);
1739
1764
  if (!n)
1740
1765
  throw new Error("useDialog must be used within a DialogRoot");
1741
1766
  return n;
1742
- }, Sa = u((n) => {
1743
- const { radius: a } = M(), t = jo(), { ref: e, children: s, container: o, className: r, size: c, ...l } = n, d = w(() => typeof s == "function" ? s(t) : s, [s, t]);
1767
+ }, ka = u((n) => {
1768
+ const { radius: a } = V(), t = jo(), { ref: e, children: s, container: o, className: r, size: c, ...l } = n, d = N(() => typeof s == "function" ? s(t) : s, [s, t]);
1744
1769
  return /* @__PURE__ */ i(H.Portal, { container: o, children: /* @__PURE__ */ i(
1745
1770
  H.Content,
1746
1771
  {
1747
- className: x(Kt({ size: c }), k({ radius: a, maxLarge: !0 }), r),
1772
+ className: x(Xt({ size: c }), k({ radius: a, maxLarge: !0 }), r),
1748
1773
  ref: e,
1749
1774
  "data-floating-content": "",
1750
1775
  ...l,
@@ -1752,22 +1777,22 @@ const Ia = T({}), jo = () => {
1752
1777
  }
1753
1778
  ) });
1754
1779
  });
1755
- Sa.displayName = "DialogContent";
1756
- const ka = u((n) => {
1780
+ ka.displayName = "DialogContent";
1781
+ const Ra = u((n) => {
1757
1782
  const { ref: a, children: t, className: e, container: s, ...o } = n;
1758
1783
  return /* @__PURE__ */ i(H.Portal, { container: s, children: /* @__PURE__ */ i(
1759
1784
  H.Overlay,
1760
1785
  {
1761
1786
  ref: a,
1762
- className: x(Wt({}), e),
1787
+ className: x(Kt({}), e),
1763
1788
  "data-floating-content": "",
1764
1789
  ...o,
1765
1790
  children: t
1766
1791
  }
1767
1792
  ) });
1768
1793
  });
1769
- ka.displayName = "DialogOverlay";
1770
- const Ra = u((n) => {
1794
+ Ra.displayName = "DialogOverlay";
1795
+ const Ta = u((n) => {
1771
1796
  const {
1772
1797
  children: a,
1773
1798
  onOpen: t,
@@ -1777,7 +1802,7 @@ const Ra = u((n) => {
1777
1802
  open: r,
1778
1803
  // oxlint-disable-next-line typescript/unbound-method
1779
1804
  onOpenChange: c
1780
- } = n, [l, d] = E(s ?? !1), m = r ?? l, g = h(
1805
+ } = n, [l, d] = E(s ?? !1), m = r ?? l, g = v(
1781
1806
  (f) => {
1782
1807
  if (c) return c(f);
1783
1808
  if (f && t)
@@ -1792,7 +1817,7 @@ const Ra = u((n) => {
1792
1817
  d(f);
1793
1818
  },
1794
1819
  [c, t, e, o]
1795
- ), p = h(
1820
+ ), p = v(
1796
1821
  (f) => {
1797
1822
  if (f != null && f.force)
1798
1823
  return d(!1);
@@ -1800,13 +1825,13 @@ const Ra = u((n) => {
1800
1825
  },
1801
1826
  [g]
1802
1827
  );
1803
- return /* @__PURE__ */ i(H.Root, { open: m, onOpenChange: g, children: /* @__PURE__ */ i(Ia.Provider, { value: p, children: a }) });
1828
+ return /* @__PURE__ */ i(H.Root, { open: m, onOpenChange: g, children: /* @__PURE__ */ i(Sa.Provider, { value: p, children: a }) });
1804
1829
  });
1805
- Ra.displayName = "DialogRoot";
1806
- const qc = {
1807
- Root: Ra,
1808
- Content: Sa,
1809
- Overlay: ka,
1830
+ Ta.displayName = "DialogRoot";
1831
+ const Uc = {
1832
+ Root: Ta,
1833
+ Content: ka,
1834
+ Overlay: Ra,
1810
1835
  Title: H.Title,
1811
1836
  Description: H.Description,
1812
1837
  Trigger: H.Trigger,
@@ -1818,7 +1843,7 @@ const qc = {
1818
1843
  4: "h4",
1819
1844
  5: "h5",
1820
1845
  6: "h6"
1821
- }, qo = v([], {
1846
+ }, Wo = h([], {
1822
1847
  variants: {
1823
1848
  size: {
1824
1849
  xs: ["text-xs"],
@@ -1847,7 +1872,7 @@ const qc = {
1847
1872
  right: ["text-right"]
1848
1873
  }
1849
1874
  }
1850
- }), Wo = u((n) => {
1875
+ }), Ko = u((n) => {
1851
1876
  const {
1852
1877
  ref: a,
1853
1878
  children: t,
@@ -1865,7 +1890,7 @@ const qc = {
1865
1890
  {
1866
1891
  ref: a,
1867
1892
  className: x(
1868
- qo({ size: o, weight: r, align: c }),
1893
+ Wo({ size: o, weight: r, align: c }),
1869
1894
  {
1870
1895
  "text-(--accent-a11)": !!d,
1871
1896
  "text-(--accent-a12)": l
@@ -1878,13 +1903,13 @@ const qc = {
1878
1903
  }
1879
1904
  );
1880
1905
  });
1881
- Wo.displayName = "Heading";
1882
- const Ta = u((n) => {
1906
+ Ko.displayName = "Heading";
1907
+ const Pa = u((n) => {
1883
1908
  const { ref: a, children: t, className: e, ...s } = n;
1884
1909
  return /* @__PURE__ */ i(ye.Arrow, { className: x("fill-(--base-6)", e), ref: a, ...s, children: t });
1885
1910
  });
1886
- Ta.displayName = "HoverCardArrow";
1887
- const Ko = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(--base-6)"], {
1911
+ Pa.displayName = "HoverCardArrow";
1912
+ const Xo = h(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(--base-6)"], {
1888
1913
  variants: {
1889
1914
  size: {
1890
1915
  xs: ["p-2"],
@@ -1897,8 +1922,8 @@ const Ko = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
1897
1922
  defaultVariants: {
1898
1923
  size: "md"
1899
1924
  }
1900
- }), Pa = u((n) => {
1901
- const a = M(), {
1925
+ }), Ma = u((n) => {
1926
+ const a = V(), {
1902
1927
  ref: t,
1903
1928
  children: e,
1904
1929
  className: s,
@@ -1914,8 +1939,9 @@ const Ko = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
1914
1939
  ye.Content,
1915
1940
  {
1916
1941
  className: x(
1917
- Ko({ size: o }),
1918
- Ve({ side: r, shadow: "3" }),
1942
+ Xo({ size: o }),
1943
+ Ve({ side: r }),
1944
+ Le({ size: "md" }),
1919
1945
  k({ radius: c, maxLarge: !0 }),
1920
1946
  s
1921
1947
  ),
@@ -1929,26 +1955,13 @@ const Ko = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
1929
1955
  }
1930
1956
  ) });
1931
1957
  });
1932
- Pa.displayName = "HoverCardContent";
1958
+ Ma.displayName = "HoverCardContent";
1933
1959
  const Wc = {
1934
- Arrow: Ta,
1935
- Content: Pa,
1960
+ Arrow: Pa,
1961
+ Content: Ma,
1936
1962
  Root: ye.Root,
1937
1963
  Trigger: ye.Trigger
1938
- }, Xo = u(({ children: n, forceHover: a }) => {
1939
- const [t, e] = E(!1), s = h(() => {
1940
- e(!0);
1941
- }, []), o = h(() => {
1942
- e(!1);
1943
- }, []);
1944
- return n({
1945
- isHovered: a !== void 0 ? a : t,
1946
- onPointerEnter: s,
1947
- onPointerLeave: o
1948
- });
1949
- });
1950
- Xo.displayName = "HoverUtility";
1951
- const lt = T({}), Yo = v(
1964
+ }, dt = O({}), Yo = h(
1952
1965
  [
1953
1966
  "flex",
1954
1967
  "items-stretch",
@@ -1980,7 +1993,7 @@ const lt = T({}), Yo = v(
1980
1993
  variant: "surface"
1981
1994
  }
1982
1995
  }
1983
- ), Qo = v(["peer-[.slot]/slot:px-0"], {
1996
+ ), Qo = h(["peer-[.slot]/slot:px-0"], {
1984
1997
  variants: {
1985
1998
  variant: {
1986
1999
  surface: ["placeholder-(--accent-12)", "placeholder:opacity-60", "selection:bg-(--accent-a5)"],
@@ -2000,7 +2013,7 @@ const lt = T({}), Yo = v(
2000
2013
  size: "md",
2001
2014
  variant: "surface"
2002
2015
  }
2003
- }), Jo = v(["peer/slot", "slot"], {
2016
+ }), Jo = h(["peer/slot", "slot"], {
2004
2017
  variants: {
2005
2018
  size: {
2006
2019
  xs: ["px-1.5"],
@@ -2019,8 +2032,8 @@ const lt = T({}), Yo = v(
2019
2032
  defaultVariants: {
2020
2033
  size: "md"
2021
2034
  }
2022
- }), Ma = u((n) => {
2023
- const { ref: a, className: t, ...e } = n, { size: s, variant: o } = j(lt);
2035
+ }), Oa = u((n) => {
2036
+ const { ref: a, className: t, ...e } = n, { size: s, variant: o } = $(dt);
2024
2037
  return /* @__PURE__ */ i(
2025
2038
  "input",
2026
2039
  {
@@ -2030,9 +2043,9 @@ const lt = T({}), Yo = v(
2030
2043
  }
2031
2044
  );
2032
2045
  });
2033
- Ma.displayName = "InputField";
2034
- const Oa = u((n) => {
2035
- const a = M(), {
2046
+ Oa.displayName = "InputField";
2047
+ const Va = u((n) => {
2048
+ const a = V(), {
2036
2049
  ref: t,
2037
2050
  children: e,
2038
2051
  className: s,
@@ -2041,8 +2054,8 @@ const Oa = u((n) => {
2041
2054
  accentColor: c = a.accentColor,
2042
2055
  radius: l = a.radius,
2043
2056
  ...d
2044
- } = n, m = w(() => ({ size: r, variant: o }), [r, o]);
2045
- return /* @__PURE__ */ i(lt.Provider, { value: m, children: /* @__PURE__ */ i(
2057
+ } = n, m = N(() => ({ size: r, variant: o }), [r, o]);
2058
+ return /* @__PURE__ */ i(dt.Provider, { value: m, children: /* @__PURE__ */ i(
2046
2059
  "div",
2047
2060
  {
2048
2061
  className: x(Yo({ variant: o, size: r }), k({ radius: l, maxLarge: !1 }), s),
@@ -2053,32 +2066,32 @@ const Oa = u((n) => {
2053
2066
  }
2054
2067
  ) });
2055
2068
  });
2056
- Oa.displayName = "InputRoot";
2057
- const Va = u((n) => {
2058
- const { ref: a, children: t, className: e, ...s } = n, { size: o, variant: r } = j(lt);
2069
+ Va.displayName = "InputRoot";
2070
+ const La = u((n) => {
2071
+ const { ref: a, children: t, className: e, ...s } = n, { size: o, variant: r } = $(dt);
2059
2072
  return /* @__PURE__ */ i("div", { className: x(Jo({ size: o, variant: r }), "flex items-center", e), ref: a, ...s, children: t });
2060
2073
  });
2061
- Va.displayName = "InputSlot";
2074
+ La.displayName = "InputSlot";
2062
2075
  const Kc = {
2063
- Field: Ma,
2064
- Root: Oa,
2065
- Slot: Va
2066
- }, dt = Ks({}), ke = () => Xs(dt);
2076
+ Field: Oa,
2077
+ Root: Va,
2078
+ Slot: La
2079
+ }, ut = Xs({}), ke = () => Ys(ut);
2067
2080
  function Xc(n) {
2068
- return Ys(dt, n);
2081
+ return Qs(ut, n);
2069
2082
  }
2070
- const La = u((n) => {
2083
+ const Aa = u((n) => {
2071
2084
  const { ref: a, children: t, ...e } = n, { hideLayout: s = !1 } = ke();
2072
2085
  return !s && /* @__PURE__ */ i("div", { ref: a, ...e, children: t });
2073
2086
  });
2074
- La.displayName = "LayoutContainer";
2075
- const Aa = u((n) => {
2076
- const { children: a, small: t = !1, hideLayout: e = !1 } = n, [s, o] = E({}), r = h(
2087
+ Aa.displayName = "LayoutContainer";
2088
+ const Da = u((n) => {
2089
+ const { children: a, small: t = !1, hideLayout: e = !1 } = n, [s, o] = E({}), r = v(
2077
2090
  (d) => s[d] ?? !1,
2078
2091
  [s]
2079
- ), c = h((d, m) => {
2092
+ ), c = v((d, m) => {
2080
2093
  o((g) => ({ ...g, [d]: m }));
2081
- }, []), l = w(
2094
+ }, []), l = N(
2082
2095
  () => ({
2083
2096
  small: t,
2084
2097
  hideLayout: e,
@@ -2087,11 +2100,11 @@ const Aa = u((n) => {
2087
2100
  }),
2088
2101
  [e, r, c, t]
2089
2102
  );
2090
- return /* @__PURE__ */ i(dt.Provider, { value: l, children: a });
2103
+ return /* @__PURE__ */ i(ut.Provider, { value: l, children: a });
2091
2104
  });
2092
- Aa.displayName = "LayoutRoot";
2093
- const fe = T({}), Da = T({}), ut = u((n) => {
2094
- const { ref: a, onClick: t, disabled: e, ...s } = n, { setOpen: o } = b(fe), r = h(
2105
+ Da.displayName = "LayoutRoot";
2106
+ const fe = O({}), Ga = O({}), mt = u((n) => {
2107
+ const { ref: a, onClick: t, disabled: e, ...s } = n, { setOpen: o } = b(fe), r = v(
2095
2108
  (c) => {
2096
2109
  t == null || t(c), !c.defaultPrevented && o(!1);
2097
2110
  },
@@ -2099,10 +2112,10 @@ const fe = T({}), Da = T({}), ut = u((n) => {
2099
2112
  );
2100
2113
  return /* @__PURE__ */ i(me, { ref: a, onClick: r, "data-disabled": e ?? !1, ...s });
2101
2114
  });
2102
- ut.displayName = "SlideOutClose";
2115
+ mt.displayName = "SlideOutClose";
2103
2116
  const Zo = 200;
2104
2117
  function er(n, a = globalThis == null ? void 0 : globalThis.document.body) {
2105
- const t = nr(n), e = U(!1), s = U(() => {
2118
+ const t = nr(n), e = j(!1), s = j(() => {
2106
2119
  });
2107
2120
  return B(() => {
2108
2121
  const o = (c) => {
@@ -2128,17 +2141,17 @@ function er(n, a = globalThis == null ? void 0 : globalThis.document.body) {
2128
2141
  };
2129
2142
  }
2130
2143
  function tr(n, a) {
2131
- n && Js.flushSync(() => n.dispatchEvent(a));
2144
+ n && Zs.flushSync(() => n.dispatchEvent(a));
2132
2145
  }
2133
2146
  function ar(n, a, t, { discrete: e }) {
2134
2147
  const s = t.originalEvent.target, o = new CustomEvent(n, { bubbles: !1, cancelable: !0, detail: t });
2135
2148
  a && s.addEventListener(n, a, { once: !0 }), tr(s, o);
2136
2149
  }
2137
2150
  function nr(n) {
2138
- const a = U(n);
2151
+ const a = j(n);
2139
2152
  return B(() => {
2140
2153
  a.current = n;
2141
- }), w(() => (...t) => {
2154
+ }), N(() => (...t) => {
2142
2155
  var e;
2143
2156
  return (e = a.current) == null ? void 0 : e.call(a, ...t);
2144
2157
  }, []);
@@ -2172,86 +2185,86 @@ const sr = {
2172
2185
  exitActive: "ease-linear duration-200 transition-[margin-bottom] -mb-(--slide-out-size)",
2173
2186
  exitDone: "-mb-(--slide-out-size)"
2174
2187
  }
2175
- }, mt = u((n) => {
2176
- const { ref: a, children: t, style: e, side: s, type: o, resizeable: r = !1, initialSize: c, minSize: l, maxSize: d, ...m } = n, g = U(null), { open: p, setOpen: f, parentElement: C, modal: S, hide: z } = b(fe), [N, P] = E(null), L = h(() => {
2177
- S && f(!1);
2178
- }, [S, f]), { onPointerDownCapture: y } = er(
2188
+ }, gt = u((n) => {
2189
+ const { ref: a, children: t, style: e, side: s, type: o, resizeable: r = !1, initialSize: c, minSize: l, maxSize: d, ...m } = n, g = j(null), { open: p, setOpen: f, parentElement: C, modal: w, hide: z } = b(fe), [y, R] = E(null), L = v(() => {
2190
+ w && f(!1);
2191
+ }, [w, f]), { onPointerDownCapture: P } = er(
2179
2192
  L,
2180
2193
  C ?? void 0
2181
2194
  );
2182
2195
  ue(() => {
2183
2196
  if (!p || !g.current) return;
2184
- const { offsetWidth: O, offsetHeight: _ } = g.current;
2197
+ const { offsetWidth: S, offsetHeight: _ } = g.current;
2185
2198
  switch (s) {
2186
2199
  case "left":
2187
2200
  case "right":
2188
- P(O);
2201
+ R(S);
2189
2202
  break;
2190
2203
  case "top":
2191
2204
  case "bottom":
2192
- P(_);
2205
+ R(_);
2193
2206
  }
2194
2207
  }, [p, s]);
2195
- const V = w(() => {
2208
+ const D = N(() => {
2196
2209
  switch (s) {
2197
2210
  case "left":
2198
2211
  return {
2199
2212
  ...e,
2200
2213
  left: 0,
2201
- width: N ?? c,
2214
+ width: y ?? c,
2202
2215
  maxWidth: d,
2203
2216
  minWidth: l,
2204
2217
  position: o === "inline" ? "relative" : "absolute",
2205
- "--slide-out-size": `${N}px`
2218
+ "--slide-out-size": `${y}px`
2206
2219
  };
2207
2220
  case "right":
2208
2221
  return {
2209
2222
  ...e,
2210
2223
  right: 0,
2211
- width: N ?? c,
2224
+ width: y ?? c,
2212
2225
  maxWidth: d,
2213
2226
  minWidth: l,
2214
2227
  position: o === "inline" ? "relative" : "absolute",
2215
- "--slide-out-size": `${N}px`
2228
+ "--slide-out-size": `${y}px`
2216
2229
  };
2217
2230
  case "top":
2218
2231
  return {
2219
2232
  ...e,
2220
2233
  top: 0,
2221
- height: N ?? c,
2234
+ height: y ?? c,
2222
2235
  maxHeight: d,
2223
2236
  minHeight: l,
2224
2237
  position: o === "inline" ? "relative" : "absolute",
2225
- "--slide-out-size": `${N}px`
2238
+ "--slide-out-size": `${y}px`
2226
2239
  };
2227
2240
  case "bottom":
2228
2241
  return {
2229
2242
  ...e,
2230
2243
  bottom: 0,
2231
- height: N ?? c,
2244
+ height: y ?? c,
2232
2245
  maxHeight: d,
2233
2246
  minHeight: l,
2234
2247
  position: o === "inline" ? "relative" : "absolute",
2235
- "--slide-out-size": `${N}px`
2248
+ "--slide-out-size": `${y}px`
2236
2249
  };
2237
2250
  }
2238
- }, [N, c, d, l, s, e, o]), A = sr[s], G = w(
2251
+ }, [y, c, d, l, s, e, o]), T = sr[s], A = N(
2239
2252
  () => ({
2240
2253
  side: s,
2241
2254
  type: o,
2242
2255
  resizeable: r,
2243
- computedSize: N,
2244
- setComputedSize: P
2256
+ computedSize: y,
2257
+ setComputedSize: R
2245
2258
  }),
2246
- [N, r, s, o]
2259
+ [y, r, s, o]
2247
2260
  );
2248
2261
  return z ? null : (
2249
2262
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2250
2263
  // @ts-ignore
2251
2264
  /* @__PURE__ */ i(
2252
- Qs,
2265
+ Js,
2253
2266
  {
2254
- classNames: A,
2267
+ classNames: T,
2255
2268
  in: p,
2256
2269
  timeout: Zo,
2257
2270
  unmountOnExit: !0,
@@ -2261,73 +2274,73 @@ const sr = {
2261
2274
  "div",
2262
2275
  {
2263
2276
  ref: we([a, g]),
2264
- onPointerDownCapture: y,
2277
+ onPointerDownCapture: P,
2265
2278
  "data-open": p,
2266
2279
  "data-side": s,
2267
2280
  "data-type": o,
2268
- style: V,
2281
+ style: D,
2269
2282
  ...m,
2270
- children: /* @__PURE__ */ i(Da, { value: G, children: t })
2283
+ children: /* @__PURE__ */ i(Ga, { value: A, children: t })
2271
2284
  }
2272
2285
  )
2273
2286
  }
2274
2287
  )
2275
2288
  );
2276
2289
  });
2277
- mt.displayName = "SlideOutContent";
2278
- const gt = u((n) => {
2279
- const { ref: a, onMouseDown: t, disabled: e, ...s } = n, o = U(null), [r, c] = E(!1), { side: l, resizeable: d, computedSize: m, setComputedSize: g } = b(Da), p = e ?? !d, f = h(
2280
- (N, P) => {
2290
+ gt.displayName = "SlideOutContent";
2291
+ const pt = u((n) => {
2292
+ const { ref: a, onMouseDown: t, disabled: e, ...s } = n, o = j(null), [r, c] = E(!1), { side: l, resizeable: d, computedSize: m, setComputedSize: g } = b(Ga), p = e ?? !d, f = v(
2293
+ (y, R) => {
2281
2294
  switch (l) {
2282
2295
  case "left":
2283
- o.current = N;
2296
+ o.current = y;
2284
2297
  break;
2285
2298
  case "right":
2286
- o.current = N;
2299
+ o.current = y;
2287
2300
  break;
2288
2301
  case "top":
2289
- o.current = P;
2302
+ o.current = R;
2290
2303
  break;
2291
2304
  case "bottom":
2292
- o.current = P;
2305
+ o.current = R;
2293
2306
  break;
2294
2307
  }
2295
2308
  },
2296
2309
  [l]
2297
- ), C = h(
2298
- (N) => {
2299
- t == null || t(N), !(N.defaultPrevented || p) && (N.preventDefault(), f(N.clientX, N.clientY), c(!0));
2310
+ ), C = v(
2311
+ (y) => {
2312
+ t == null || t(y), !(y.defaultPrevented || p) && (y.preventDefault(), f(y.clientX, y.clientY), c(!0));
2300
2313
  },
2301
2314
  [p, t, f]
2302
- ), S = h(
2303
- (N) => {
2315
+ ), w = v(
2316
+ (y) => {
2304
2317
  if (!r || !o.current || p) return;
2305
- N.preventDefault();
2306
- const { clientX: P, clientY: L } = N;
2307
- let y = 0;
2318
+ y.preventDefault();
2319
+ const { clientX: R, clientY: L } = y;
2320
+ let P = 0;
2308
2321
  switch (l) {
2309
2322
  case "left":
2310
- y = P - o.current;
2323
+ P = R - o.current;
2311
2324
  break;
2312
2325
  case "right":
2313
- y = (P - o.current) * -1;
2326
+ P = (R - o.current) * -1;
2314
2327
  break;
2315
2328
  case "top":
2316
- y = L - o.current;
2329
+ P = L - o.current;
2317
2330
  break;
2318
2331
  case "bottom":
2319
- y = (L - o.current) * -1;
2332
+ P = (L - o.current) * -1;
2320
2333
  break;
2321
2334
  }
2322
- f(P, L), g(m + y);
2335
+ f(R, L), g(m + P);
2323
2336
  },
2324
2337
  [p, m, r, g, f, l]
2325
- ), z = h(() => {
2338
+ ), z = v(() => {
2326
2339
  !r || p || (o.current = null, c(!1));
2327
2340
  }, [p, r]);
2328
- return B(() => (document.addEventListener("pointermove", S), document.addEventListener("pointerup", z), () => {
2329
- document.removeEventListener("pointermove", S), document.removeEventListener("pointerup", z);
2330
- }), [S, z]), /* @__PURE__ */ i(
2341
+ return B(() => (document.addEventListener("pointermove", w), document.addEventListener("pointerup", z), () => {
2342
+ document.removeEventListener("pointermove", w), document.removeEventListener("pointerup", z);
2343
+ }), [w, z]), /* @__PURE__ */ i(
2331
2344
  "div",
2332
2345
  {
2333
2346
  ref: a,
@@ -2339,13 +2352,13 @@ const gt = u((n) => {
2339
2352
  }
2340
2353
  );
2341
2354
  });
2342
- gt.displayName = "SlideOutHandle";
2343
- const pt = u((n) => {
2355
+ pt.displayName = "SlideOutHandle";
2356
+ const xt = u((n) => {
2344
2357
  const { ref: a, ...t } = n, { open: e, hide: s } = b(fe);
2345
2358
  return e && !s ? /* @__PURE__ */ i("div", { ref: a, "data-open": e, ...t }) : null;
2346
2359
  });
2347
- pt.displayName = "SlideOutOverlay";
2348
- const xt = u((n) => {
2360
+ xt.displayName = "SlideOutOverlay";
2361
+ const ft = u((n) => {
2349
2362
  const {
2350
2363
  ref: a,
2351
2364
  children: t,
@@ -2355,7 +2368,7 @@ const xt = u((n) => {
2355
2368
  modal: r = !1,
2356
2369
  hide: c = !1,
2357
2370
  ...l
2358
- } = n, [d, m] = E(null), [g, p] = X(e, s, o), f = w(
2371
+ } = n, [d, m] = E(null), [g, p] = X(e, s, o), f = N(
2359
2372
  () => ({
2360
2373
  parentElement: d,
2361
2374
  open: g,
@@ -2367,9 +2380,9 @@ const xt = u((n) => {
2367
2380
  );
2368
2381
  return /* @__PURE__ */ i("div", { ref: we([a, m]), ...l, children: /* @__PURE__ */ i(fe, { value: f, children: t }) });
2369
2382
  });
2370
- xt.displayName = "SlideOutRoot";
2371
- const Ga = u((n) => {
2372
- const { ref: a, onClick: t, ...e } = n, { open: s, setOpen: o } = b(fe), r = h(
2383
+ ft.displayName = "SlideOutRoot";
2384
+ const Ea = u((n) => {
2385
+ const { ref: a, onClick: t, ...e } = n, { open: s, setOpen: o } = b(fe), r = v(
2373
2386
  (c) => {
2374
2387
  t == null || t(c), !c.defaultPrevented && o(!s);
2375
2388
  },
@@ -2377,9 +2390,9 @@ const Ga = u((n) => {
2377
2390
  );
2378
2391
  return /* @__PURE__ */ i(me, { ref: a, onClick: r, "data-disabled": n.disabled ?? !1, ...e });
2379
2392
  });
2380
- Ga.displayName = "SlideOutTrigger";
2381
- const ft = u((n) => {
2382
- const { ref: a, ...t } = n, e = U(null), { open: s, modal: o, parentElement: r } = b(fe);
2393
+ Ea.displayName = "SlideOutTrigger";
2394
+ const ht = u((n) => {
2395
+ const { ref: a, ...t } = n, e = j(null), { open: s, modal: o, parentElement: r } = b(fe);
2383
2396
  return B(() => {
2384
2397
  if (!e.current) return;
2385
2398
  const c = e.current, l = c.style.pointerEvents;
@@ -2388,37 +2401,37 @@ const ft = u((n) => {
2388
2401
  };
2389
2402
  }, [o, s, r == null ? void 0 : r.style]), /* @__PURE__ */ i("div", { ref: we([a, e]), ...t });
2390
2403
  });
2391
- ft.displayName = "SlideOutViewport";
2404
+ ht.displayName = "SlideOutViewport";
2392
2405
  const Yc = {
2393
- Close: ut,
2394
- Content: mt,
2395
- Handle: gt,
2396
- Overlay: pt,
2397
- Root: xt,
2398
- Trigger: Ga,
2399
- Viewport: ft
2400
- }, Ea = u((n) => {
2406
+ Close: mt,
2407
+ Content: gt,
2408
+ Handle: pt,
2409
+ Overlay: xt,
2410
+ Root: ft,
2411
+ Trigger: Ea,
2412
+ Viewport: ht
2413
+ }, _a = u((n) => {
2401
2414
  const { ref: a, ...t } = n;
2402
- return /* @__PURE__ */ i(ut, { ref: a, ...t });
2415
+ return /* @__PURE__ */ i(mt, { ref: a, ...t });
2403
2416
  });
2404
- Ea.displayName = "LayoutSlideOutClose";
2405
- const _a = u((n) => {
2417
+ _a.displayName = "LayoutSlideOutClose";
2418
+ const Fa = u((n) => {
2406
2419
  const { ref: a, type: t, ...e } = n, { small: s } = ke();
2407
- return /* @__PURE__ */ i(mt, { ref: a, type: t ?? (s ? "overlay" : "inline"), ...e });
2420
+ return /* @__PURE__ */ i(gt, { ref: a, type: t ?? (s ? "overlay" : "inline"), ...e });
2408
2421
  });
2409
- _a.displayName = "LayoutSlideOutContent";
2410
- const Fa = u((n) => {
2422
+ Fa.displayName = "LayoutSlideOutContent";
2423
+ const Ha = u((n) => {
2411
2424
  const { ref: a, ...t } = n;
2412
- return /* @__PURE__ */ i(gt, { ref: a, ...t });
2425
+ return /* @__PURE__ */ i(pt, { ref: a, ...t });
2413
2426
  });
2414
- Fa.displayName = "LayoutSlideOutHandle";
2415
- const Ha = u((n) => {
2427
+ Ha.displayName = "LayoutSlideOutHandle";
2428
+ const Ba = u((n) => {
2416
2429
  const { ref: a, smallModeOnly: t = !1, ...e } = n, { small: s, hideLayout: o } = ke();
2417
- return w(() => !(o || t && !s), [o, s, t]) ? /* @__PURE__ */ i(pt, { ref: a, ...e }) : null;
2430
+ return N(() => !(o || t && !s), [o, s, t]) ? /* @__PURE__ */ i(xt, { ref: a, ...e }) : null;
2418
2431
  });
2419
- Ha.displayName = "SlideOutOverlay";
2420
- const Ba = u((n) => {
2421
- const { ref: a, slideOutId: t, defaultOpen: e, hide: s, ...o } = n, { isOpen: r, setOpen: c, small: l, hideLayout: d } = ke(), m = r(t), g = h(
2432
+ Ba.displayName = "SlideOutOverlay";
2433
+ const qa = u((n) => {
2434
+ const { ref: a, slideOutId: t, defaultOpen: e, hide: s, ...o } = n, { isOpen: r, setOpen: c, small: l, hideLayout: d } = ke(), m = r(t), g = v(
2422
2435
  (p) => {
2423
2436
  p || c(t, !1);
2424
2437
  },
@@ -2427,7 +2440,7 @@ const Ba = u((n) => {
2427
2440
  return B(() => {
2428
2441
  l && (e == null ? void 0 : e.small) !== void 0 ? c(t, e == null ? void 0 : e.small) : !l && (e == null ? void 0 : e.large) !== void 0 && c(t, e == null ? void 0 : e.large);
2429
2442
  }, [e, t, c, l]), /* @__PURE__ */ i(
2430
- xt,
2443
+ ft,
2431
2444
  {
2432
2445
  ref: a,
2433
2446
  open: m,
@@ -2438,9 +2451,9 @@ const Ba = u((n) => {
2438
2451
  }
2439
2452
  );
2440
2453
  });
2441
- Ba.displayName = "LayoutSlideOutRoot";
2454
+ qa.displayName = "LayoutSlideOutRoot";
2442
2455
  const $a = u((n) => {
2443
- const { ref: a, slideOutId: t, children: e, ...s } = n, { isOpen: o, setOpen: r } = ke(), c = o(t), l = h(() => {
2456
+ const { ref: a, slideOutId: t, children: e, ...s } = n, { isOpen: o, setOpen: r } = ke(), c = o(t), l = v(() => {
2444
2457
  r(t, !c);
2445
2458
  }, [c, r, t]);
2446
2459
  return /* @__PURE__ */ i(me, { "data-state": pe(c), ref: a, onClick: l, ...s, children: e });
@@ -2448,20 +2461,20 @@ const $a = u((n) => {
2448
2461
  $a.displayName = "LayoutSlideOutTrigger";
2449
2462
  const ja = u((n) => {
2450
2463
  const { ref: a, ...t } = n;
2451
- return /* @__PURE__ */ i(ft, { ref: a, ...t });
2464
+ return /* @__PURE__ */ i(ht, { ref: a, ...t });
2452
2465
  });
2453
2466
  ja.displayName = "LayoutSlideOutViewport";
2454
2467
  const Qc = {
2455
- Root: Aa,
2456
- Container: La,
2457
- SlideOutClose: Ea,
2458
- SlideOutContent: _a,
2459
- SlideOutHandle: Fa,
2460
- SlideOutOverlay: Ha,
2461
- SlideOutRoot: Ba,
2468
+ Root: Da,
2469
+ Container: Aa,
2470
+ SlideOutClose: _a,
2471
+ SlideOutContent: Fa,
2472
+ SlideOutHandle: Ha,
2473
+ SlideOutOverlay: Ba,
2474
+ SlideOutRoot: qa,
2462
2475
  SlideOutTrigger: $a,
2463
2476
  SlideOutViewport: ja
2464
- }, or = v(["cursor-pointer"], {
2477
+ }, or = h(["cursor-pointer"], {
2465
2478
  variants: {
2466
2479
  size: {
2467
2480
  none: ["[font-size:inherit]", "leading-[inherit]"],
@@ -2497,7 +2510,7 @@ const Qc = {
2497
2510
  align: "left"
2498
2511
  }
2499
2512
  }), rr = u((n) => {
2500
- const a = M(), {
2513
+ const a = V(), {
2501
2514
  ref: t,
2502
2515
  children: e,
2503
2516
  className: s,
@@ -2527,7 +2540,7 @@ const Qc = {
2527
2540
  );
2528
2541
  });
2529
2542
  rr.displayName = "Link";
2530
- const cr = v(
2543
+ const cr = h(
2531
2544
  [
2532
2545
  "select-none",
2533
2546
  "relative",
@@ -2567,7 +2580,7 @@ const cr = v(
2567
2580
  variant: "soft"
2568
2581
  }
2569
2582
  }
2570
- ), ir = v(["text-(--base-a10)", "flex", "items-center", "select-none", "py-1"], {
2583
+ ), ir = h(["text-(--base-a10)", "flex", "items-center", "select-none", "py-1"], {
2571
2584
  variants: {
2572
2585
  size: {
2573
2586
  xs: ["gap-1.5", "px-3", "text-xs"],
@@ -2580,7 +2593,7 @@ const cr = v(
2580
2593
  defaultVariants: {
2581
2594
  size: "md"
2582
2595
  }
2583
- }), lr = v(["h-px", "bg-(--base-a6)", "w-auto", "shrink-0"], {
2596
+ }), lr = h(["h-px", "bg-(--base-a6)", "w-auto", "shrink-0"], {
2584
2597
  variants: {
2585
2598
  size: {
2586
2599
  xs: ["-mx-0.5", "my-0.5"],
@@ -2593,7 +2606,7 @@ const cr = v(
2593
2606
  defaultVariants: {
2594
2607
  size: "md"
2595
2608
  }
2596
- }), Ua = v(
2609
+ }), Ua = h(
2597
2610
  [
2598
2611
  "flex",
2599
2612
  "flex-col",
@@ -2630,7 +2643,7 @@ const cr = v(
2630
2643
  size: "md"
2631
2644
  }
2632
2645
  }
2633
- ), dr = v(["overflow-hidden", "touch-manipulation"], {
2646
+ ), dr = h(["overflow-hidden", "touch-manipulation"], {
2634
2647
  variants: {
2635
2648
  modal: {
2636
2649
  true: ["pointer-events-auto"],
@@ -2640,7 +2653,7 @@ const cr = v(
2640
2653
  defaultVariants: {
2641
2654
  modal: !1
2642
2655
  }
2643
- }), ur = v(
2656
+ }), ur = h(
2644
2657
  [
2645
2658
  "flex",
2646
2659
  "items-stretch",
@@ -2666,50 +2679,50 @@ const cr = v(
2666
2679
  size: "md"
2667
2680
  }
2668
2681
  }
2669
- ), J = T({}), ie = T({}), _e = T({}), mr = ["Enter", " "], se = u((n) => {
2670
- const a = b(ie), { getItemProps: t, activeIndex: e, setOpen: s, size: o, variant: r, radius: c } = b(J), { closeRoot: l } = b(_e), {
2682
+ ), J = O({}), ie = O({}), Fe = O({}), mr = ["Enter", " "], se = u((n) => {
2683
+ const a = b(ie), { getItemProps: t, activeIndex: e, setOpen: s, size: o, variant: r, radius: c } = b(J), { closeRoot: l } = b(Fe), {
2671
2684
  ref: d,
2672
2685
  className: m,
2673
2686
  children: g,
2674
2687
  onSelect: p,
2675
2688
  onClick: f,
2676
2689
  onKeyDown: C,
2677
- closeOnSelect: S = !0,
2690
+ closeOnSelect: w = !0,
2678
2691
  disabled: z = !1,
2679
- ...N
2680
- } = n, { ref: P, index: L } = Rt(), y = ge([P, d]), V = h(
2692
+ ...y
2693
+ } = n, { ref: R, index: L } = Tt(), P = ge([R, d]), D = v(
2681
2694
  (_) => {
2682
- _.stopPropagation(), !z && (f == null || f(_), p == null || p(), S && s(!1), l && a.setOpen(!1));
2695
+ _.stopPropagation(), !z && (f == null || f(_), p == null || p(), w && s(!1), l && a.setOpen(!1));
2683
2696
  },
2684
- [S, l, z, a, f, p, s]
2685
- ), A = h(
2697
+ [w, l, z, a, f, p, s]
2698
+ ), T = v(
2686
2699
  (_) => {
2687
- z || (C == null || C(_), mr.includes(_.key) && (p == null || p(), S && s(!1)));
2700
+ z || (C == null || C(_), mr.includes(_.key) && (p == null || p(), w && s(!1)));
2688
2701
  },
2689
- [S, z, C, p, s]
2690
- ), G = w(() => L === e, [e, L]), O = w(() => typeof g == "function" ? g({ active: G, selected: !1 }) : g, [g, G]);
2702
+ [w, z, C, p, s]
2703
+ ), A = N(() => L === e, [e, L]), S = N(() => typeof g == "function" ? g({ active: A, selected: !1 }) : g, [g, A]);
2691
2704
  return /* @__PURE__ */ i(
2692
2705
  "li",
2693
2706
  {
2694
2707
  className: x(cr({ size: o, variant: r }), k({ radius: c, maxLarge: !0 }), m),
2695
- ref: y,
2708
+ ref: P,
2696
2709
  role: "menuitem",
2697
2710
  "data-disabled": Q(z),
2698
2711
  "aria-disabled": z,
2699
- "data-highlighted": G ? "" : void 0,
2712
+ "data-highlighted": A ? "" : void 0,
2700
2713
  ...t({
2701
- onClick: V,
2702
- onKeyDown: A,
2703
- tabIndex: G ? 0 : -1,
2704
- ...N
2714
+ onClick: D,
2715
+ onKeyDown: T,
2716
+ tabIndex: A ? 0 : -1,
2717
+ ...y
2705
2718
  }),
2706
- children: O
2719
+ children: S
2707
2720
  }
2708
2721
  );
2709
2722
  });
2710
2723
  se.displayName = "MenuItem";
2711
- const qa = u((n) => {
2712
- const { ref: a, checked: t, onCheckedChange: e, onSelect: s, ...o } = n, r = h(() => {
2724
+ const Wa = u((n) => {
2725
+ const { ref: a, checked: t, onCheckedChange: e, onSelect: s, ...o } = n, r = v(() => {
2713
2726
  switch (s == null || s(), t) {
2714
2727
  case !0:
2715
2728
  e(!1);
@@ -2722,13 +2735,13 @@ const qa = u((n) => {
2722
2735
  }, [t, e, s]);
2723
2736
  return /* @__PURE__ */ i(Se.Provider, { value: t, children: /* @__PURE__ */ i(se, { ref: a, onSelect: r, ...o }) });
2724
2737
  });
2725
- qa.displayName = "MenuCheckboxItem";
2726
- const Wa = u((n) => {
2738
+ Wa.displayName = "MenuCheckboxItem";
2739
+ const Ka = u((n) => {
2727
2740
  const { ref: a, children: t, ...e } = n;
2728
- return /* @__PURE__ */ i(De, { ref: a, ...e, children: t });
2741
+ return /* @__PURE__ */ i(Ge, { ref: a, ...e, children: t });
2729
2742
  });
2730
- Wa.displayName = "MenuCheckboxItemIndicator";
2731
- const Ka = u((n) => {
2743
+ Ka.displayName = "MenuCheckboxItemIndicator";
2744
+ const Xa = u((n) => {
2732
2745
  const { ref: a, children: t, disabled: e = !1 } = n, { getReferenceProps: s, refs: o, setTriggerType: r, open: c } = b(ie), l = ge([o.setReference, a]);
2733
2746
  return B(() => {
2734
2747
  r("click");
@@ -2744,10 +2757,10 @@ const Ka = u((n) => {
2744
2757
  }
2745
2758
  );
2746
2759
  });
2747
- Ka.displayName = "MenuClickTrigger";
2748
- const Xa = u((n) => {
2749
- var R;
2750
- const a = M(), {
2760
+ Xa.displayName = "MenuClickTrigger";
2761
+ const Ya = u((n) => {
2762
+ var M;
2763
+ const a = V(), {
2751
2764
  ref: t,
2752
2765
  className: e,
2753
2766
  children: s,
@@ -2762,35 +2775,35 @@ const Xa = u((n) => {
2762
2775
  middlewareData: p,
2763
2776
  elementsRef: f,
2764
2777
  activeIndex: C,
2765
- setActiveIndex: S,
2778
+ setActiveIndex: w,
2766
2779
  getItemProps: z,
2767
- open: N,
2768
- setOpen: P,
2780
+ open: y,
2781
+ setOpen: R,
2769
2782
  nodeId: L,
2770
- context: y,
2771
- floatingStyles: V,
2772
- modal: A,
2773
- side: G
2774
- } = b(ie), O = w(() => {
2783
+ context: P,
2784
+ floatingStyles: D,
2785
+ modal: T,
2786
+ side: A
2787
+ } = b(ie), S = N(() => {
2775
2788
  var I;
2776
2789
  return {
2777
- ...V,
2790
+ ...D,
2778
2791
  visibility: (I = p.hide) != null && I.referenceHidden ? "hidden" : "visible"
2779
2792
  };
2780
- }, [V, (R = p.hide) == null ? void 0 : R.referenceHidden]), _ = h(
2793
+ }, [D, (M = p.hide) == null ? void 0 : M.referenceHidden]), _ = v(
2781
2794
  (I) => {
2782
- A && bo(I);
2795
+ T && Co(I);
2783
2796
  },
2784
- [A]
2785
- ), ee = w(
2797
+ [T]
2798
+ ), ee = N(
2786
2799
  () => ({
2787
2800
  getItemProps: z,
2788
2801
  activeIndex: C,
2789
2802
  elementsRef: f,
2790
- open: N,
2791
- setOpen: P,
2803
+ open: y,
2804
+ setOpen: R,
2792
2805
  refs: m,
2793
- setActiveIndex: S,
2806
+ setActiveIndex: w,
2794
2807
  size: o,
2795
2808
  variant: r,
2796
2809
  accentColor: l,
@@ -2800,30 +2813,30 @@ const Xa = u((n) => {
2800
2813
  z,
2801
2814
  C,
2802
2815
  f,
2803
- N,
2804
- P,
2816
+ y,
2817
+ R,
2805
2818
  m,
2806
- S,
2819
+ w,
2807
2820
  o,
2808
2821
  r,
2809
2822
  l,
2810
2823
  c
2811
2824
  ]
2812
2825
  );
2813
- return /* @__PURE__ */ i(Tt, { id: L, children: N && /* @__PURE__ */ i(Pt, { children: /* @__PURE__ */ i(
2814
- Zs,
2826
+ return /* @__PURE__ */ i(Pt, { id: L, children: y && /* @__PURE__ */ i(Mt, { children: /* @__PURE__ */ i(
2827
+ eo,
2815
2828
  {
2816
- className: dr({ modal: A }),
2829
+ className: dr({ modal: T }),
2817
2830
  onClick: _,
2818
2831
  lockScroll: !0,
2819
2832
  "data-floating-content": "",
2820
- children: /* @__PURE__ */ i(Mt, { context: y, children: /* @__PURE__ */ i(Ot, { elementsRef: f, children: /* @__PURE__ */ i(J.Provider, { value: ee, children: /* @__PURE__ */ i(
2833
+ children: /* @__PURE__ */ i(Ot, { context: P, children: /* @__PURE__ */ i(Vt, { elementsRef: f, children: /* @__PURE__ */ i(J.Provider, { value: ee, children: /* @__PURE__ */ i(
2821
2834
  "div",
2822
2835
  {
2823
2836
  className: "border-box w-max outline-none",
2824
2837
  ref: m.setFloating,
2825
2838
  tabIndex: -1,
2826
- style: O,
2839
+ style: S,
2827
2840
  "data-floating-content": "",
2828
2841
  ...g(),
2829
2842
  children: /* @__PURE__ */ i(
@@ -2831,14 +2844,15 @@ const Xa = u((n) => {
2831
2844
  {
2832
2845
  className: x(
2833
2846
  Ua({ size: o }),
2834
- Ve({ side: G, shadow: "3" }),
2847
+ Ve({ side: A }),
2848
+ Le({ size: "md" }),
2835
2849
  k({ radius: c, maxLarge: !0 }),
2836
2850
  "max-h-(--overmap-menu-available-height)",
2837
2851
  e
2838
2852
  ),
2839
2853
  ref: t,
2840
- "data-state": pe(N),
2841
- "data-side": G,
2854
+ "data-state": pe(y),
2855
+ "data-side": A,
2842
2856
  "data-accent-color": l,
2843
2857
  ...d,
2844
2858
  children: s
@@ -2849,13 +2863,13 @@ const Xa = u((n) => {
2849
2863
  }
2850
2864
  ) }) });
2851
2865
  });
2852
- Xa.displayName = "Menu.Content";
2853
- const Ya = u((n) => {
2854
- const { ref: a, children: t, disabled: e = !1 } = n, s = U(null), { setOpen: o, refs: r, setTriggerType: c, open: l } = b(ie), d = ge([a, s]);
2866
+ Ya.displayName = "Menu.Content";
2867
+ const Qa = u((n) => {
2868
+ const { ref: a, children: t, disabled: e = !1 } = n, s = j(null), { setOpen: o, refs: r, setTriggerType: c, open: l } = b(ie), d = ge([a, s]);
2855
2869
  B(() => {
2856
2870
  c("context");
2857
2871
  }, [c]);
2858
- const m = h(
2872
+ const m = v(
2859
2873
  (g) => {
2860
2874
  const { clientY: p, clientX: f } = g;
2861
2875
  !e && s.current && (g.preventDefault(), r.setPositionReference({
@@ -2889,14 +2903,14 @@ const Ya = u((n) => {
2889
2903
  }
2890
2904
  );
2891
2905
  });
2892
- Ya.displayName = "MenuContextTrigger";
2893
- const Fe = u((n) => {
2906
+ Qa.displayName = "MenuContextTrigger";
2907
+ const He = u((n) => {
2894
2908
  const { ref: a, children: t, ...e } = n;
2895
2909
  return /* @__PURE__ */ i("div", { ref: a, role: "group", ...e, children: t });
2896
2910
  });
2897
- Fe.displayName = "MenuGroup";
2898
- const Qa = u((n) => {
2899
- const { ref: a, className: t, onValueChange: e, onChange: s, disabled: o = !1, ...r } = n, { activeIndex: c, getItemProps: l } = b(J), { index: d, ref: m } = Rt(), g = ge([m, a]), p = h(
2911
+ He.displayName = "MenuGroup";
2912
+ const Ja = u((n) => {
2913
+ const { ref: a, className: t, onValueChange: e, onChange: s, disabled: o = !1, ...r } = n, { activeIndex: c, getItemProps: l } = b(J), { index: d, ref: m } = Tt(), g = ge([m, a]), p = v(
2900
2914
  (f) => {
2901
2915
  s == null || s(f), e == null || e(f.target.value);
2902
2916
  },
@@ -2919,31 +2933,41 @@ const Qa = u((n) => {
2919
2933
  }
2920
2934
  );
2921
2935
  });
2922
- Qa.displayName = "MenuInputField";
2923
- const Ja = u((n) => {
2936
+ Ja.displayName = "MenuInputField";
2937
+ const Za = u((n) => {
2924
2938
  const { ref: a, className: t, ...e } = n, { size: s } = b(J);
2925
2939
  return /* @__PURE__ */ i("div", { className: x(ur({ size: s }), t), ref: a, ...e });
2926
2940
  });
2927
- Ja.displayName = "MenuInputRoot";
2928
- const Za = u((n) => {
2941
+ Za.displayName = "MenuInputRoot";
2942
+ const en = u((n) => {
2929
2943
  const { ref: a, className: t, ...e } = n;
2930
2944
  return /* @__PURE__ */ i("div", { className: x("flex", "items-center", "text-(--base-a11)", t), ref: a, ...e });
2931
2945
  });
2932
- Za.displayName = "MenuInputSlot";
2933
- const en = u((n) => {
2946
+ en.displayName = "MenuInputSlot";
2947
+ const tn = u((n) => {
2934
2948
  const { ref: a, className: t, ...e } = n, { size: s } = b(J);
2935
2949
  return /* @__PURE__ */ i("div", { ref: a, className: x(ir({ size: s }), t), ...e });
2936
2950
  });
2937
- en.displayName = "MenuLabel";
2951
+ tn.displayName = "MenuLabel";
2938
2952
  const gr = F(function(a) {
2939
- const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, ...c } = a;
2940
- return /* @__PURE__ */ i(Fe, { ref: t, ...c, children: /* @__PURE__ */ i(Ae, { defaultValues: s, values: o, onValuesChange: r, children: e }) });
2953
+ const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, allValues: c, equalityFn: l, ...d } = a;
2954
+ return /* @__PURE__ */ i(He, { ref: t, ...d, children: /* @__PURE__ */ i(
2955
+ De,
2956
+ {
2957
+ defaultValues: s,
2958
+ values: o,
2959
+ onValuesChange: r,
2960
+ allValues: c,
2961
+ equalityFn: l,
2962
+ children: e
2963
+ }
2964
+ ) });
2941
2965
  }), pr = F(function(n) {
2942
2966
  const { ref: a, onSelect: t, children: e, closeOnSelect: s = !1, value: o, ...r } = n, { selected: c, selectValue: l, registerValue: d } = b(Z);
2943
2967
  ue(() => d(o), [d, o]);
2944
- const m = c(o), g = h(() => {
2968
+ const m = c(o), g = v(() => {
2945
2969
  t == null || t(), l(o);
2946
- }, [t, l, o]), p = w(() => typeof e == "function" ? ({ active: f }) => e({ selected: m, active: f }) : e, [e, m]);
2970
+ }, [t, l, o]), p = N(() => typeof e == "function" ? ({ active: f }) => e({ selected: m, active: f }) : e, [e, m]);
2947
2971
  return /* @__PURE__ */ i(xe.Provider, { value: m, children: /* @__PURE__ */ i(
2948
2972
  se,
2949
2973
  {
@@ -2956,25 +2980,25 @@ const gr = F(function(a) {
2956
2980
  children: p
2957
2981
  }
2958
2982
  ) });
2959
- }), ht = T({}), tn = u((n) => {
2960
- const { page: a, children: t } = n, { activePage: e } = b(ht);
2983
+ }), vt = O({}), an = u((n) => {
2984
+ const { page: a, children: t } = n, { activePage: e } = b(vt);
2961
2985
  return e === a ? t : null;
2962
2986
  });
2963
- tn.displayName = "PageContent";
2964
- const an = u((n) => {
2965
- const { children: a, defaultPage: t, page: e, onPageChange: s } = n, [o, r] = X(t ?? "", e, s), c = w(() => ({ activePage: o, setActivePage: r }), [o, r]);
2966
- return /* @__PURE__ */ i(ht.Provider, { value: c, children: a });
2967
- });
2968
- an.displayName = "MenuPages";
2987
+ an.displayName = "PageContent";
2969
2988
  const nn = u((n) => {
2970
- const { ref: a, onSelect: t, page: e, ...s } = n, { refs: o, setActiveIndex: r } = b(J), { setActivePage: c } = b(ht), l = h(() => {
2989
+ const { children: a, defaultPage: t, page: e, onPageChange: s } = n, [o, r] = X(t ?? "", e, s), c = N(() => ({ activePage: o, setActivePage: r }), [o, r]);
2990
+ return /* @__PURE__ */ i(vt.Provider, { value: c, children: a });
2991
+ });
2992
+ nn.displayName = "MenuPages";
2993
+ const sn = u((n) => {
2994
+ const { ref: a, onSelect: t, page: e, ...s } = n, { refs: o, setActiveIndex: r } = b(J), { setActivePage: c } = b(vt), l = v(() => {
2971
2995
  var d;
2972
2996
  t == null || t(), c(e), (d = o.floating.current) == null || d.focus(), r(null);
2973
2997
  }, [t, e, o.floating, r, c]);
2974
2998
  return /* @__PURE__ */ i(se, { ref: a, onSelect: l, closeOnSelect: !1, ...s });
2975
2999
  });
2976
- nn.displayName = "MenuPageTrigger";
2977
- const Me = 20, Y = 8, sn = 250, xr = 5, on = u((n) => {
3000
+ sn.displayName = "MenuPageTrigger";
3001
+ const Me = 20, Y = 8, on = 250, xr = 5, rn = u((n) => {
2978
3002
  const {
2979
3003
  children: a,
2980
3004
  side: t = "bottom",
@@ -2986,88 +3010,88 @@ const Me = 20, Y = 8, sn = 250, xr = 5, on = u((n) => {
2986
3010
  open: c,
2987
3011
  onOpenChange: l,
2988
3012
  defaultOpen: d
2989
- } = n, [m, g] = X(d ?? !1, c, l), [p, f] = E(null), [C, S] = E(null), z = U([]), N = Vt(), { refs: P, floatingStyles: L, context: y, middlewareData: V } = Lt({
2990
- nodeId: N,
3013
+ } = n, [m, g] = X(d ?? !1, c, l), [p, f] = E(null), [C, w] = E(null), z = j([]), y = Lt(), { refs: R, floatingStyles: L, context: P, middlewareData: D } = At({
3014
+ nodeId: y,
2991
3015
  strategy: "fixed",
2992
3016
  // TODO: probably some way with template string types to not need the "as Placement"
2993
3017
  placement: t + (e !== "center" ? "-" + e : ""),
2994
- whileElementsMounted: Ft,
3018
+ whileElementsMounted: Ht,
2995
3019
  open: m,
2996
3020
  onOpenChange: g,
2997
3021
  middleware: [
2998
- At({ mainAxis: s ?? xr }),
2999
- Dt({
3022
+ Dt({ mainAxis: s ?? xr }),
3023
+ Gt({
3000
3024
  apply({ availableHeight: he, elements: ve }) {
3001
3025
  ve.floating.style.setProperty(
3002
3026
  "--overmap-menu-available-height",
3003
- `${Math.max(he, sn)}px`
3027
+ `${Math.max(he, on)}px`
3004
3028
  );
3005
3029
  },
3006
3030
  padding: Me
3007
3031
  }),
3008
- Gt({ fallbackStrategy: "initialPlacement" }),
3009
- Et({ padding: Me }),
3010
- _t()
3032
+ Et({ fallbackStrategy: "initialPlacement" }),
3033
+ _t({ padding: Me }),
3034
+ Ft()
3011
3035
  ]
3012
- }), A = eo(y, {
3036
+ }), T = to(P, {
3013
3037
  role: "menu"
3014
- }), G = Ht(y, {
3038
+ }), A = Bt(P, {
3015
3039
  capture: !0,
3016
3040
  ancestorScroll: C === "context" || C === "virtual"
3017
- }), O = Bt(y, {
3041
+ }), S = qt(P, {
3018
3042
  enabled: C === "click"
3019
- }), _ = $t(y, {
3043
+ }), _ = $t(P, {
3020
3044
  listRef: z,
3021
3045
  activeIndex: p,
3022
3046
  onNavigate: f,
3023
3047
  loop: o
3024
- }), { getFloatingProps: ee, getItemProps: R, getReferenceProps: I } = jt([
3025
- G,
3048
+ }), { getFloatingProps: ee, getItemProps: M, getReferenceProps: I } = jt([
3049
+ A,
3026
3050
  _,
3027
- O,
3028
- A
3029
- ]), D = w(
3051
+ S,
3052
+ T
3053
+ ]), G = N(
3030
3054
  () => ({
3031
3055
  open: m,
3032
3056
  setOpen: g,
3033
- refs: P,
3034
- context: y,
3057
+ refs: R,
3058
+ context: P,
3035
3059
  floatingStyles: L,
3036
3060
  elementsRef: z,
3037
3061
  getFloatingProps: ee,
3038
- getItemProps: R,
3062
+ getItemProps: M,
3039
3063
  getReferenceProps: I,
3040
- nodeId: N,
3064
+ nodeId: y,
3041
3065
  activeIndex: p,
3042
3066
  setActiveIndex: f,
3043
- middlewareData: V,
3067
+ middlewareData: D,
3044
3068
  side: t,
3045
3069
  modal: r,
3046
- setTriggerType: S
3070
+ setTriggerType: w
3047
3071
  }),
3048
3072
  [
3049
3073
  m,
3050
3074
  g,
3075
+ R,
3051
3076
  P,
3052
- y,
3053
3077
  L,
3054
3078
  z,
3055
3079
  ee,
3056
- R,
3080
+ M,
3057
3081
  I,
3058
- N,
3082
+ y,
3059
3083
  p,
3060
3084
  f,
3061
- V,
3085
+ D,
3062
3086
  t,
3063
3087
  r,
3064
- S
3088
+ w
3065
3089
  ]
3066
3090
  );
3067
- return /* @__PURE__ */ i(to, { children: /* @__PURE__ */ i(ie.Provider, { value: D, children: a }) });
3091
+ return /* @__PURE__ */ i(ao, { children: /* @__PURE__ */ i(ie.Provider, { value: G, children: a }) });
3068
3092
  });
3069
- on.displayName = "Root";
3070
- const rn = u((n) => {
3093
+ rn.displayName = "Root";
3094
+ const cn = u((n) => {
3071
3095
  const { ref: a, className: t, ...e } = n;
3072
3096
  return /* @__PURE__ */ i(
3073
3097
  "div",
@@ -3081,11 +3105,11 @@ const rn = u((n) => {
3081
3105
  }
3082
3106
  );
3083
3107
  });
3084
- rn.displayName = "MenuScroll";
3108
+ cn.displayName = "MenuScroll";
3085
3109
  const fr = F((n) => {
3086
- const { ref: a, children: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { allSelected: r, someSelected: c, toggleSelectAll: l } = b(Z), d = r ? !0 : c ? "indeterminate" : !1, m = h(() => {
3110
+ const { ref: a, children: t, onSelect: e, closeOnSelect: s = !1, ...o } = n, { allSelected: r, someSelected: c, toggleSelectAll: l } = b(Z), d = r ? !0 : c ? "indeterminate" : !1, m = v(() => {
3087
3111
  e == null || e(), l();
3088
- }, [e, l]), g = w(() => typeof t == "function" ? ({ active: p }) => t({ selected: d, active: p }) : t, [t, d]);
3112
+ }, [e, l]), g = N(() => typeof t == "function" ? ({ active: p }) => t({ selected: d, active: p }) : t, [t, d]);
3089
3113
  return /* @__PURE__ */ i(Se, { value: d, children: /* @__PURE__ */ i(
3090
3114
  se,
3091
3115
  {
@@ -3097,15 +3121,15 @@ const fr = F((n) => {
3097
3121
  children: g
3098
3122
  }
3099
3123
  ) });
3100
- }), cn = u((n) => {
3124
+ }), ln = u((n) => {
3101
3125
  const { ref: a, children: t, ...e } = n;
3102
- return /* @__PURE__ */ i(Ee, { ref: a, ...e, children: t });
3126
+ return /* @__PURE__ */ i(_e, { ref: a, ...e, children: t });
3103
3127
  });
3104
- cn.displayName = "MenuSelectedIndicator";
3128
+ ln.displayName = "MenuSelectedIndicator";
3105
3129
  const hr = F(function(a) {
3106
3130
  const { ref: t, children: e, required: s, defaultValue: o, value: r, onValueChange: c, ...l } = a;
3107
- return /* @__PURE__ */ i(Fe, { ref: t, ...l, children: s ? /* @__PURE__ */ i(st, { defaultValue: o, value: r, onValueChange: c, children: e }) : /* @__PURE__ */ i(
3108
- ot,
3131
+ return /* @__PURE__ */ i(He, { ref: t, ...l, children: s ? /* @__PURE__ */ i(ot, { defaultValue: o, value: r, onValueChange: c, children: e }) : /* @__PURE__ */ i(
3132
+ rt,
3109
3133
  {
3110
3134
  defaultValue: o,
3111
3135
  value: r,
@@ -3114,9 +3138,9 @@ const hr = F(function(a) {
3114
3138
  }
3115
3139
  ) });
3116
3140
  }), vr = F(function(n) {
3117
- const { ref: a, value: t, onSelect: e, children: s, closeOnSelect: o = !0, ...r } = n, { selected: c, selectValue: l } = b(Ne), d = c(t), m = h(() => {
3141
+ const { ref: a, value: t, onSelect: e, children: s, closeOnSelect: o = !0, ...r } = n, { selected: c, selectValue: l } = b(Ne), d = c(t), m = v(() => {
3118
3142
  e == null || e(), l(t);
3119
- }, [e, l, t]), g = w(() => typeof s == "function" ? ({ active: p }) => s({ selected: d, active: p }) : s, [s, d]);
3143
+ }, [e, l, t]), g = N(() => typeof s == "function" ? ({ active: p }) => s({ selected: d, active: p }) : s, [s, d]);
3120
3144
  return /* @__PURE__ */ i(xe.Provider, { value: d, children: /* @__PURE__ */ i(
3121
3145
  se,
3122
3146
  {
@@ -3129,17 +3153,17 @@ const hr = F(function(a) {
3129
3153
  children: g
3130
3154
  }
3131
3155
  ) });
3132
- }), ln = u((n) => {
3156
+ }), dn = u((n) => {
3133
3157
  const { ref: a, className: t, ...e } = n, { size: s } = b(J);
3134
- return /* @__PURE__ */ i(Je.Root, { className: x(lr({ size: s }), t), ref: a, ...e });
3158
+ return /* @__PURE__ */ i(Ze.Root, { className: x(lr({ size: s }), t), ref: a, ...e });
3135
3159
  });
3136
- ln.displayName = "MenuSeparator";
3160
+ dn.displayName = "MenuSeparator";
3137
3161
  const br = { mainAxis: Y + 1, crossAxis: 0 }, Cr = {
3138
3162
  "right-start": { mainAxis: Y + 1, crossAxis: -Y },
3139
3163
  "right-end": { mainAxis: Y + 1, crossAxis: Y },
3140
3164
  "left-start": { mainAxis: Y + 1, crossAxis: -Y },
3141
3165
  "left-end": { mainAxis: Y + 1, crossAxis: Y }
3142
- }, yr = (n, a) => Cr[`${n}-${a}`] ?? br, dn = u((n) => {
3166
+ }, yr = (n, a) => Cr[`${n}-${a}`] ?? br, un = u((n) => {
3143
3167
  const {
3144
3168
  children: a,
3145
3169
  disabled: t = !1,
@@ -3152,69 +3176,69 @@ const br = { mainAxis: Y + 1, crossAxis: 0 }, Cr = {
3152
3176
  open: l,
3153
3177
  onOpenChange: d,
3154
3178
  defaultOpen: m
3155
- } = n, [g, p] = X(m ?? !1, l, d), f = Vt(), { refs: C, floatingStyles: S, context: z } = Lt({
3179
+ } = n, [g, p] = X(m ?? !1, l, d), f = Lt(), { refs: C, floatingStyles: w, context: z } = At({
3156
3180
  nodeId: f,
3157
3181
  strategy: "fixed",
3158
- whileElementsMounted: Ft,
3182
+ whileElementsMounted: Ht,
3159
3183
  open: g,
3160
- onOpenChange: (R, I, D) => {
3161
- D && p(R);
3184
+ onOpenChange: (M, I, G) => {
3185
+ G && p(M);
3162
3186
  },
3163
3187
  placement: e + (s !== "center" ? "-" + s : ""),
3164
3188
  middleware: [
3165
- At({ ...yr(e, s) }),
3166
- Dt({
3189
+ Dt({ ...yr(e, s) }),
3190
+ Gt({
3167
3191
  padding: Me,
3168
- apply({ availableHeight: R, elements: I }) {
3192
+ apply({ availableHeight: M, elements: I }) {
3169
3193
  I.floating.style.setProperty(
3170
3194
  "--overmap-menu-available-height",
3171
- `${Math.max(R, sn)}px`
3195
+ `${Math.max(M, on)}px`
3172
3196
  );
3173
3197
  }
3174
3198
  }),
3175
- Gt(),
3176
- Et({ padding: Me }),
3177
- _t()
3199
+ Et(),
3200
+ _t({ padding: Me }),
3201
+ Ft()
3178
3202
  ]
3179
- }), N = Ht(z, {
3203
+ }), y = Bt(z, {
3180
3204
  bubbles: o,
3181
3205
  outsidePress: o
3182
- }), P = ao(z, {
3206
+ }), R = no(z, {
3183
3207
  restMs: 50,
3184
- handleClose: no({
3208
+ handleClose: so({
3185
3209
  blockPointerEvents: !0,
3186
3210
  requireIntent: !1
3187
3211
  }),
3188
3212
  enabled: !t
3189
- }), L = Bt(z, {
3213
+ }), L = qt(z, {
3190
3214
  enabled: !t
3191
- }), y = U([]), [V, A] = E(null), G = $t(z, {
3192
- listRef: y,
3215
+ }), P = j([]), [D, T] = E(null), A = $t(z, {
3216
+ listRef: P,
3193
3217
  nested: !0,
3194
- activeIndex: V,
3195
- onNavigate: A,
3218
+ activeIndex: D,
3219
+ onNavigate: T,
3196
3220
  loop: r,
3197
3221
  rtl: e === "left"
3198
- }), { getFloatingProps: O, getItemProps: _, getReferenceProps: ee } = jt([
3199
- G,
3200
- N,
3201
- P,
3222
+ }), { getFloatingProps: S, getItemProps: _, getReferenceProps: ee } = jt([
3223
+ A,
3224
+ y,
3225
+ R,
3202
3226
  L
3203
3227
  ]);
3204
3228
  return /* @__PURE__ */ i(
3205
- _e.Provider,
3229
+ Fe.Provider,
3206
3230
  {
3207
3231
  value: {
3208
3232
  open: g,
3209
3233
  setOpen: p,
3210
3234
  nodeId: f,
3211
3235
  refs: C,
3212
- floatingStyles: S,
3236
+ floatingStyles: w,
3213
3237
  context: z,
3214
- elementsRef: y,
3215
- activeIndex: V,
3216
- setActiveIndex: A,
3217
- getFloatingProps: O,
3238
+ elementsRef: P,
3239
+ activeIndex: D,
3240
+ setActiveIndex: T,
3241
+ getFloatingProps: S,
3218
3242
  getItemProps: _,
3219
3243
  getReferenceProps: ee,
3220
3244
  disabled: t,
@@ -3226,9 +3250,9 @@ const br = { mainAxis: Y + 1, crossAxis: 0 }, Cr = {
3226
3250
  }
3227
3251
  );
3228
3252
  });
3229
- dn.displayName = "SubMenu";
3230
- const un = u((n) => {
3231
- var O;
3253
+ un.displayName = "SubMenu";
3254
+ const mn = u((n) => {
3255
+ var S;
3232
3256
  const { ref: a, children: t, ...e } = n, { middlewareData: s } = b(ie), { accentColor: o, radius: r, variant: c, size: l } = b(J), {
3233
3257
  open: d,
3234
3258
  nodeId: m,
@@ -3236,27 +3260,27 @@ const un = u((n) => {
3236
3260
  context: p,
3237
3261
  getFloatingProps: f,
3238
3262
  getItemProps: C,
3239
- activeIndex: S,
3263
+ activeIndex: w,
3240
3264
  setActiveIndex: z,
3241
- elementsRef: N,
3242
- floatingStyles: P,
3265
+ elementsRef: y,
3266
+ floatingStyles: R,
3243
3267
  setOpen: L,
3244
- side: y
3245
- } = b(_e), V = U(null), A = ge([g.setFloating, V]), G = w(() => {
3268
+ side: P
3269
+ } = b(Fe), D = j(null), T = ge([g.setFloating, D]), A = N(() => {
3246
3270
  var _;
3247
3271
  return {
3248
- ...P,
3272
+ ...R,
3249
3273
  visibility: (_ = s.hide) != null && _.referenceHidden ? "hidden" : "visible"
3250
3274
  };
3251
- }, [P, (O = s.hide) == null ? void 0 : O.referenceHidden]);
3252
- return /* @__PURE__ */ i(Tt, { id: m, children: d && /* @__PURE__ */ i(Pt, { children: /* @__PURE__ */ i(Mt, { context: p, initialFocus: V, children: /* @__PURE__ */ i(Ot, { elementsRef: N, children: /* @__PURE__ */ i(
3275
+ }, [R, (S = s.hide) == null ? void 0 : S.referenceHidden]);
3276
+ return /* @__PURE__ */ i(Pt, { id: m, children: d && /* @__PURE__ */ i(Mt, { children: /* @__PURE__ */ i(Ot, { context: p, initialFocus: D, children: /* @__PURE__ */ i(Vt, { elementsRef: y, children: /* @__PURE__ */ i(
3253
3277
  J.Provider,
3254
3278
  {
3255
3279
  value: {
3256
3280
  getItemProps: C,
3257
- activeIndex: S,
3281
+ activeIndex: w,
3258
3282
  setActiveIndex: z,
3259
- elementsRef: N,
3283
+ elementsRef: y,
3260
3284
  open: d,
3261
3285
  setOpen: L,
3262
3286
  refs: g,
@@ -3269,8 +3293,8 @@ const un = u((n) => {
3269
3293
  "div",
3270
3294
  {
3271
3295
  className: "outline-none",
3272
- ref: A,
3273
- style: G,
3296
+ ref: T,
3297
+ style: A,
3274
3298
  ...f(),
3275
3299
  children: /* @__PURE__ */ i(
3276
3300
  "ul",
@@ -3278,13 +3302,14 @@ const un = u((n) => {
3278
3302
  className: x(
3279
3303
  "overmap-menu-sub-content",
3280
3304
  Ua({ size: l }),
3281
- Ve({ side: y, shadow: "3" }),
3305
+ Ve({ side: P }),
3306
+ Le({ size: "md" }),
3282
3307
  k({ radius: r, maxLarge: !0 }),
3283
3308
  "max-h-(--overmap-menu-available-height)"
3284
3309
  ),
3285
3310
  ref: a,
3286
3311
  "data-state": pe(d),
3287
- "data-side": y,
3312
+ "data-side": P,
3288
3313
  "data-accent-color": o,
3289
3314
  ...e,
3290
3315
  children: t
@@ -3295,9 +3320,9 @@ const un = u((n) => {
3295
3320
  }
3296
3321
  ) }) }) }) });
3297
3322
  });
3298
- un.displayName = "MenuSubContent";
3299
- const mn = u((n) => {
3300
- const { ref: a, children: t, ...e } = n, { refs: s, getReferenceProps: o, open: r, disabled: c } = b(_e), l = ge([a, s.setReference]);
3323
+ mn.displayName = "MenuSubContent";
3324
+ const gn = u((n) => {
3325
+ const { ref: a, children: t, ...e } = n, { refs: s, getReferenceProps: o, open: r, disabled: c } = b(Fe), l = ge([a, s.setReference]);
3301
3326
  return /* @__PURE__ */ i(
3302
3327
  se,
3303
3328
  {
@@ -3311,8 +3336,8 @@ const mn = u((n) => {
3311
3336
  }
3312
3337
  );
3313
3338
  });
3314
- mn.displayName = "MenuSubTrigger";
3315
- const gn = u((n) => {
3339
+ gn.displayName = "MenuSubTrigger";
3340
+ const pn = u((n) => {
3316
3341
  const { virtualElement: a, disabled: t } = n, { refs: e, setTriggerType: s, setOpen: o } = b(ie);
3317
3342
  return B(() => {
3318
3343
  s("virtual");
@@ -3320,24 +3345,24 @@ const gn = u((n) => {
3320
3345
  !t && a ? (e.setPositionReference(a), o(!0)) : (e.setPositionReference(null), o(!1));
3321
3346
  }, [t, e, o, a]), null;
3322
3347
  });
3323
- gn.displayName = "VirtualTrigger";
3348
+ pn.displayName = "VirtualTrigger";
3324
3349
  const Jc = {
3325
- Root: on,
3326
- Content: Xa,
3350
+ Root: rn,
3351
+ Content: Ya,
3327
3352
  // sub
3328
- Sub: dn,
3329
- SubContent: un,
3330
- SubTrigger: mn,
3353
+ Sub: un,
3354
+ SubContent: mn,
3355
+ SubTrigger: gn,
3331
3356
  // pages
3332
- Pages: an,
3333
- PageContent: tn,
3334
- PageTrigger: nn,
3357
+ Pages: nn,
3358
+ PageContent: an,
3359
+ PageTrigger: sn,
3335
3360
  // triggers
3336
- ClickTrigger: Ka,
3337
- ContextTrigger: Ya,
3338
- VirtualTrigger: gn,
3361
+ ClickTrigger: Xa,
3362
+ ContextTrigger: Qa,
3363
+ VirtualTrigger: pn,
3339
3364
  // groups
3340
- Group: Fe,
3365
+ Group: He,
3341
3366
  SelectGroup: hr,
3342
3367
  MultiSelectGroup: gr,
3343
3368
  // items
@@ -3345,25 +3370,25 @@ const Jc = {
3345
3370
  SelectItem: vr,
3346
3371
  MultiSelectItem: pr,
3347
3372
  SelectAllItem: fr,
3348
- CheckboxItem: qa,
3373
+ CheckboxItem: Wa,
3349
3374
  // indicators
3350
- SelectedIndicator: cn,
3351
- CheckboxItemIndicator: Wa,
3375
+ SelectedIndicator: ln,
3376
+ CheckboxItemIndicator: Ka,
3352
3377
  // input
3353
- InputRoot: Ja,
3354
- InputField: Qa,
3355
- InputSlot: Za,
3378
+ InputRoot: Za,
3379
+ InputField: Ja,
3380
+ InputSlot: en,
3356
3381
  // others
3357
- Label: en,
3358
- Separator: ln,
3359
- Scroll: rn
3382
+ Label: tn,
3383
+ Separator: dn,
3384
+ Scroll: cn
3360
3385
  }, Ce = {
3361
3386
  next: "ArrowDown",
3362
3387
  prev: "ArrowUp",
3363
3388
  first: "PageUp",
3364
3389
  last: "PageDown",
3365
3390
  selectItem: "Enter"
3366
- }, te = "menu-item", Ke = "menu-group", He = T({}), pn = T({}), vt = T({}), zr = v(["w-full", "outline-none"], {
3391
+ }, te = "menu-item", Xe = "menu-group", Be = O({}), xn = O({}), bt = O({}), zr = h(["w-full", "outline-none"], {
3367
3392
  variants: {
3368
3393
  size: {
3369
3394
  xs: ["p-0.5", "text-xs", "min-w-30"],
@@ -3382,7 +3407,7 @@ const Jc = {
3382
3407
  full: ["rounded-lg"]
3383
3408
  }
3384
3409
  }
3385
- }), Nr = v(
3410
+ }), Nr = h(
3386
3411
  [
3387
3412
  "select-none",
3388
3413
  "relative",
@@ -3417,7 +3442,7 @@ const Jc = {
3417
3442
  }
3418
3443
  }
3419
3444
  }
3420
- ), wr = v(["text-(--base-a11)", "flex", "items-center", "select-none", "py-1"], {
3445
+ ), wr = h(["text-(--base-a11)", "flex", "items-center", "select-none", "py-1"], {
3421
3446
  variants: {
3422
3447
  size: {
3423
3448
  xs: ["gap-1.5", "px-3", "text-xs"],
@@ -3427,7 +3452,7 @@ const Jc = {
3427
3452
  xl: ["gap-2.5", "px-5", "text-lg"]
3428
3453
  }
3429
3454
  }
3430
- }), Ir = v(["h-px", "bg-(--base-a6)", "w-auto", "shrink-0"], {
3455
+ }), Ir = h(["h-px", "bg-(--base-a6)", "w-auto", "shrink-0"], {
3431
3456
  variants: {
3432
3457
  size: {
3433
3458
  xs: ["-mx-0.5", "my-0.5"],
@@ -3449,50 +3474,50 @@ const Jc = {
3449
3474
  onPointerLeave: l,
3450
3475
  onPointerMove: d,
3451
3476
  ...m
3452
- } = n, g = U(null), p = Ye(), { activeItemId: f, setActiveItemId: C, size: S, variant: z, radius: N } = b(He), P = p === f, L = h(
3453
- (O) => {
3454
- r == null || r(O);
3477
+ } = n, g = j(null), p = Qe(), { activeItemId: f, setActiveItemId: C, size: w, variant: z, radius: y } = b(Be), R = p === f, L = v(
3478
+ (S) => {
3479
+ r == null || r(S);
3455
3480
  },
3456
3481
  [r]
3457
- ), y = h(
3458
- (O) => {
3459
- o == null || o(O), L(new Event("menu-select"));
3482
+ ), P = v(
3483
+ (S) => {
3484
+ o == null || o(S), L(new Event("menu-select"));
3460
3485
  },
3461
3486
  [L, o]
3462
- ), V = h(
3463
- (O) => {
3464
- c == null || c(O), !O.defaultPrevented && C(p);
3487
+ ), D = v(
3488
+ (S) => {
3489
+ c == null || c(S), !S.defaultPrevented && C(p);
3465
3490
  },
3466
3491
  [c, C, p]
3467
- ), A = h(
3468
- (O) => {
3469
- l == null || l(O), !O.defaultPrevented && C(null);
3492
+ ), T = v(
3493
+ (S) => {
3494
+ l == null || l(S), !S.defaultPrevented && C(null);
3470
3495
  },
3471
3496
  [l, C]
3472
- ), G = h(
3473
- (O) => {
3474
- d == null || d(O), !O.defaultPrevented && C(p);
3497
+ ), A = v(
3498
+ (S) => {
3499
+ d == null || d(S), !S.defaultPrevented && C(p);
3475
3500
  },
3476
3501
  [d, p, C]
3477
3502
  );
3478
3503
  return B(() => {
3479
3504
  if (!g.current) return;
3480
- const O = g.current;
3481
- return O.addEventListener("menu-select", L), () => {
3482
- O.removeEventListener("menu-select", L);
3505
+ const S = g.current;
3506
+ return S.addEventListener("menu-select", L), () => {
3507
+ S.removeEventListener("menu-select", L);
3483
3508
  };
3484
3509
  }, [L]), /* @__PURE__ */ i(
3485
3510
  "div",
3486
3511
  {
3487
3512
  ref: we([a, g]),
3488
- className: x(Nr({ size: S, variant: z }), k({ radius: N, maxLarge: !0 }), e),
3513
+ className: x(Nr({ size: w, variant: z }), k({ radius: y, maxLarge: !0 }), e),
3489
3514
  role: "menuitem",
3490
- onClick: y,
3491
- onPointerEnter: V,
3492
- onPointerLeave: A,
3493
- onPointerMove: G,
3515
+ onClick: P,
3516
+ onPointerEnter: D,
3517
+ onPointerLeave: T,
3518
+ onPointerMove: A,
3494
3519
  [te]: p,
3495
- "data-active": Q(P),
3520
+ "data-active": Q(R),
3496
3521
  "data-disabled": Q(s),
3497
3522
  "aria-disabled": Q(s),
3498
3523
  ...m,
@@ -3501,8 +3526,8 @@ const Jc = {
3501
3526
  );
3502
3527
  });
3503
3528
  le.displayName = "MenuItem";
3504
- const xn = u((n) => {
3505
- const { ref: a, checked: t, onCheckedChange: e, onSelect: s, ...o } = n, r = h(
3529
+ const fn = u((n) => {
3530
+ const { ref: a, checked: t, onCheckedChange: e, onSelect: s, ...o } = n, r = v(
3506
3531
  (c) => {
3507
3532
  if (s == null || s(c), !c.defaultPrevented)
3508
3533
  switch (t) {
@@ -3521,32 +3546,32 @@ const xn = u((n) => {
3521
3546
  );
3522
3547
  return /* @__PURE__ */ i(Se.Provider, { value: t, children: /* @__PURE__ */ i(le, { ref: a, onSelect: r, ...o }) });
3523
3548
  });
3524
- xn.displayName = "MenuCheckboxItem";
3525
- const fn = u((n) => {
3549
+ fn.displayName = "MenuCheckboxItem";
3550
+ const hn = u((n) => {
3526
3551
  const { ref: a, children: t, ...e } = n;
3527
- return /* @__PURE__ */ i(De, { ref: a, ...e, children: t });
3552
+ return /* @__PURE__ */ i(Ge, { ref: a, ...e, children: t });
3528
3553
  });
3529
- fn.displayName = "MenuCheckboxItemIndicator";
3530
- const Be = u((n) => {
3531
- const { ref: a, children: t, ...e } = n, s = Ye(), [o, r] = E(null), c = w(
3554
+ hn.displayName = "MenuCheckboxItemIndicator";
3555
+ const qe = u((n) => {
3556
+ const { ref: a, children: t, ...e } = n, s = Qe(), [o, r] = E(null), c = N(
3532
3557
  () => ({
3533
3558
  labelId: o,
3534
3559
  setLabelId: r
3535
3560
  }),
3536
3561
  [o]
3537
3562
  );
3538
- return /* @__PURE__ */ i("div", { ref: a, role: "group", [Ke]: s, "aria-labelledby": o ?? void 0, ...e, children: /* @__PURE__ */ i(pn, { value: c, children: t }) });
3563
+ return /* @__PURE__ */ i("div", { ref: a, role: "group", [Xe]: s, "aria-labelledby": o ?? void 0, ...e, children: /* @__PURE__ */ i(xn, { value: c, children: t }) });
3539
3564
  });
3540
- Be.displayName = "MenuGroup";
3541
- const hn = u((n) => {
3542
- const { ref: a, children: t, id: e, className: s, ...o } = n, r = vo(e), { size: c } = b(He), { setLabelId: l } = b(pn);
3565
+ qe.displayName = "MenuGroup";
3566
+ const vn = u((n) => {
3567
+ const { ref: a, children: t, id: e, className: s, ...o } = n, r = bo(e), { size: c } = b(Be), { setLabelId: l } = b(xn);
3543
3568
  return B(() => {
3544
3569
  l(r);
3545
3570
  }, [r, l]), /* @__PURE__ */ i("div", { ref: a, id: r, className: x(wr({ size: c }), s), ...o, children: t });
3546
3571
  });
3547
- hn.displayName = "MenuGroupLabel";
3572
+ vn.displayName = "MenuGroupLabel";
3548
3573
  const Sr = F((n) => {
3549
- const { ref: a, children: t, onSelect: e, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll: c } = b(Z), l = o ? !0 : r ? "indeterminate" : !1, d = h(
3574
+ const { ref: a, children: t, onSelect: e, ...s } = n, { allSelected: o, someSelected: r, toggleSelectAll: c } = b(Z), l = o ? !0 : r ? "indeterminate" : !1, d = v(
3550
3575
  (m) => {
3551
3576
  e == null || e(m), !m.defaultPrevented && c();
3552
3577
  },
@@ -3554,12 +3579,22 @@ const Sr = F((n) => {
3554
3579
  );
3555
3580
  return /* @__PURE__ */ i(le, { onSelect: d, ref: a, "data-state": Ie(l), ...s, children: /* @__PURE__ */ i(Se, { value: l, children: t }) });
3556
3581
  }), kr = F(function(a) {
3557
- const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, ...c } = a;
3558
- return /* @__PURE__ */ i(Be, { ref: t, ...c, children: /* @__PURE__ */ i(Ae, { defaultValues: s, values: o, onValuesChange: r, children: e }) });
3582
+ const { ref: t, children: e, defaultValues: s, values: o, onValuesChange: r, allValues: c, equalityFn: l, ...d } = a;
3583
+ return /* @__PURE__ */ i(qe, { ref: t, ...d, children: /* @__PURE__ */ i(
3584
+ De,
3585
+ {
3586
+ defaultValues: s,
3587
+ values: o,
3588
+ onValuesChange: r,
3589
+ allValues: c,
3590
+ equalityFn: l,
3591
+ children: e
3592
+ }
3593
+ ) });
3559
3594
  }), Rr = F(function(n) {
3560
3595
  const { ref: a, onSelect: t, children: e, value: s, ...o } = n, { selected: r, selectValue: c, registerValue: l } = b(Z);
3561
3596
  ue(() => l(s), [l, s]);
3562
- const d = r(s), m = h(
3597
+ const d = r(s), m = v(
3563
3598
  (g) => {
3564
3599
  t == null || t(g), !g.defaultPrevented && c(s);
3565
3600
  },
@@ -3576,41 +3611,41 @@ const Sr = F((n) => {
3576
3611
  children: /* @__PURE__ */ i(xe, { value: d, children: e })
3577
3612
  }
3578
3613
  );
3579
- }), vn = u((n) => {
3580
- const { children: a, ref: t, page: e, ...s } = n, { page: o } = b(vt), r = e === o;
3581
- return /* @__PURE__ */ i("div", { ref: t, "data-active": Le(r), hidden: !r, ...s, children: r ? a : null });
3614
+ }), bn = u((n) => {
3615
+ const { children: a, ref: t, page: e, ...s } = n, { page: o } = b(bt), r = e === o;
3616
+ return /* @__PURE__ */ i("div", { ref: t, "data-active": Ae(r), hidden: !r, ...s, children: r ? a : null });
3582
3617
  });
3583
- vn.displayName = "MenuPage";
3584
- const bn = u((n) => {
3585
- const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s), c = w(
3618
+ bn.displayName = "MenuPage";
3619
+ const Cn = u((n) => {
3620
+ const { children: a, defaultPage: t = "", page: e, onPageChange: s } = n, [o, r] = X(t, e, s), c = N(
3586
3621
  () => ({
3587
3622
  page: o,
3588
3623
  setPage: r
3589
3624
  }),
3590
3625
  [o, r]
3591
3626
  );
3592
- return /* @__PURE__ */ i(vt, { value: c, children: a });
3627
+ return /* @__PURE__ */ i(bt, { value: c, children: a });
3593
3628
  });
3594
- bn.displayName = "MenuPages";
3595
- const Cn = u((n) => {
3596
- const { ref: a, children: t, page: e, onSelect: s, ...o } = n, { page: r, setPage: c } = b(vt), l = e === r, d = h(
3629
+ Cn.displayName = "MenuPages";
3630
+ const yn = u((n) => {
3631
+ const { ref: a, children: t, page: e, onSelect: s, ...o } = n, { page: r, setPage: c } = b(bt), l = e === r, d = v(
3597
3632
  (m) => {
3598
3633
  s == null || s(m), !m.defaultPrevented && c(e);
3599
3634
  },
3600
3635
  [s, e, c]
3601
3636
  );
3602
- return /* @__PURE__ */ i(le, { ref: a, onSelect: d, "data-state": Le(l), ...o, children: /* @__PURE__ */ i(xe, { value: l, children: t }) });
3637
+ return /* @__PURE__ */ i(le, { ref: a, onSelect: d, "data-state": Ae(l), ...o, children: /* @__PURE__ */ i(xe, { value: l, children: t }) });
3603
3638
  });
3604
- Cn.displayName = "CommandMenuPageTriggerItem";
3605
- const St = (n, a, t, e) => {
3639
+ yn.displayName = "CommandMenuPageTriggerItem";
3640
+ const kt = (n, a, t, e) => {
3606
3641
  switch (t) {
3607
3642
  case "next":
3608
3643
  return n === a - 1 ? e ? 0 : n : n + 1;
3609
3644
  case "prev":
3610
3645
  return n === 0 ? e ? a - 1 : n : n - 1;
3611
3646
  }
3612
- }, yn = u((n) => {
3613
- const a = M(), {
3647
+ }, zn = u((n) => {
3648
+ const a = V(), {
3614
3649
  ref: t,
3615
3650
  children: e,
3616
3651
  className: s,
@@ -3622,45 +3657,45 @@ const St = (n, a, t, e) => {
3622
3657
  size: d = "md",
3623
3658
  variant: m = "soft",
3624
3659
  ...g
3625
- } = n, p = U(null), [f, C] = E(null), S = h((R) => Array.from(R.querySelectorAll(`[${te}]:not([data-disabled=true]`)), []), z = h(
3626
- (R) => S(R).at(0),
3627
- [S]
3628
- ), N = h(
3629
- (R) => S(R).at(-1),
3630
- [S]
3631
- ), P = h(
3632
- (R) => S(R).find((I) => I.getAttribute(te) === f),
3633
- [f, S]
3634
- ), L = h(
3635
- (R, I) => {
3636
- const D = S(R), he = P(R), ve = D.findIndex((zs) => zs === he), Ue = St(ve, D.length, I, r);
3637
- return D[Ue];
3660
+ } = n, p = j(null), [f, C] = E(null), w = v((M) => Array.from(M.querySelectorAll(`[${te}]:not([data-disabled=true]`)), []), z = v(
3661
+ (M) => w(M).at(0),
3662
+ [w]
3663
+ ), y = v(
3664
+ (M) => w(M).at(-1),
3665
+ [w]
3666
+ ), R = v(
3667
+ (M) => w(M).find((I) => I.getAttribute(te) === f),
3668
+ [f, w]
3669
+ ), L = v(
3670
+ (M, I) => {
3671
+ const G = w(M), he = R(M), ve = G.findIndex((Ns) => Ns === he), Ue = kt(ve, G.length, I, r);
3672
+ return G[Ue];
3638
3673
  },
3639
- [P, S, r]
3640
- ), y = h(() => p.current ? Array.from(p.current.querySelectorAll(`[${Ke}]`)) : [], []), V = h(() => {
3641
- var R;
3642
- return ((R = P(p.current)) == null ? void 0 : R.closest(`[${Ke}]`)) ?? void 0;
3643
- }, [P]), A = h(
3644
- (R) => {
3645
- const I = y(), D = V(), he = I.findIndex((Ue) => Ue === D), ve = St(he, I.length, R, r);
3674
+ [R, w, r]
3675
+ ), P = v(() => p.current ? Array.from(p.current.querySelectorAll(`[${Xe}]`)) : [], []), D = v(() => {
3676
+ var M;
3677
+ return ((M = R(p.current)) == null ? void 0 : M.closest(`[${Xe}]`)) ?? void 0;
3678
+ }, [R]), T = v(
3679
+ (M) => {
3680
+ const I = P(), G = D(), he = I.findIndex((Ue) => Ue === G), ve = kt(he, I.length, M, r);
3646
3681
  return I[ve];
3647
3682
  },
3648
- [V, y, r]
3649
- ), G = h(() => y().at(0), [y]), O = h(() => y().at(-1), [y]), _ = h(
3650
- (R) => {
3651
- if (o == null || o(R), !R.defaultPrevented)
3652
- switch (R.code) {
3683
+ [D, P, r]
3684
+ ), A = v(() => P().at(0), [P]), S = v(() => P().at(-1), [P]), _ = v(
3685
+ (M) => {
3686
+ if (o == null || o(M), !M.defaultPrevented)
3687
+ switch (M.code) {
3653
3688
  case Ce.selectItem: {
3654
- const I = P(p.current);
3689
+ const I = R(p.current);
3655
3690
  I && I.dispatchEvent(new Event("menu-select"));
3656
3691
  break;
3657
3692
  }
3658
3693
  case Ce.next: {
3659
3694
  let I;
3660
- if (R.shiftKey) {
3661
- const D = A("next");
3662
- if (!D) return;
3663
- I = z(D);
3695
+ if (M.shiftKey) {
3696
+ const G = T("next");
3697
+ if (!G) return;
3698
+ I = z(G);
3664
3699
  } else
3665
3700
  I = L(p.current, "next");
3666
3701
  if (!I) return;
@@ -3669,10 +3704,10 @@ const St = (n, a, t, e) => {
3669
3704
  }
3670
3705
  case Ce.prev: {
3671
3706
  let I;
3672
- if (R.shiftKey) {
3673
- const D = A("prev");
3674
- if (!D) return;
3675
- I = z(D);
3707
+ if (M.shiftKey) {
3708
+ const G = T("prev");
3709
+ if (!G) return;
3710
+ I = z(G);
3676
3711
  } else
3677
3712
  I = L(p.current, "prev");
3678
3713
  if (!I) return;
@@ -3681,10 +3716,10 @@ const St = (n, a, t, e) => {
3681
3716
  }
3682
3717
  case Ce.first: {
3683
3718
  let I;
3684
- if (R.shiftKey) {
3685
- const D = G();
3686
- if (!D) return;
3687
- I = z(D);
3719
+ if (M.shiftKey) {
3720
+ const G = A();
3721
+ if (!G) return;
3722
+ I = z(G);
3688
3723
  } else
3689
3724
  I = z(p.current);
3690
3725
  if (!I) return;
@@ -3693,26 +3728,26 @@ const St = (n, a, t, e) => {
3693
3728
  }
3694
3729
  case Ce.last: {
3695
3730
  let I;
3696
- if (R.shiftKey) {
3697
- const D = O();
3698
- if (!D) return;
3699
- I = z(D);
3731
+ if (M.shiftKey) {
3732
+ const G = S();
3733
+ if (!G) return;
3734
+ I = z(G);
3700
3735
  } else
3701
- I = N(p.current);
3736
+ I = y(p.current);
3702
3737
  if (!I) return;
3703
3738
  C(I.getAttribute(te));
3704
3739
  break;
3705
3740
  }
3706
3741
  }
3707
3742
  },
3708
- [P, G, z, O, N, A, L, o]
3743
+ [R, A, z, S, y, T, L, o]
3709
3744
  );
3710
3745
  B(() => {
3711
3746
  var I;
3712
- const R = z(p.current);
3713
- R && ((I = p.current) == null || I.focus(), C(R.getAttribute(te)));
3747
+ const M = z(p.current);
3748
+ M && ((I = p.current) == null || I.focus(), C(M.getAttribute(te)));
3714
3749
  }, [z]);
3715
- const ee = w(
3750
+ const ee = N(
3716
3751
  () => ({
3717
3752
  activeItemId: f,
3718
3753
  setActiveItemId: C,
@@ -3735,20 +3770,20 @@ const St = (n, a, t, e) => {
3735
3770
  "aria-activedescendant": f ?? void 0,
3736
3771
  "data-accent-color": l,
3737
3772
  ...g,
3738
- children: /* @__PURE__ */ i(He, { value: ee, children: e })
3773
+ children: /* @__PURE__ */ i(Be, { value: ee, children: e })
3739
3774
  }
3740
3775
  );
3741
3776
  });
3742
- yn.displayName = "MenuRoot";
3743
- const zn = u((n) => {
3777
+ zn.displayName = "MenuRoot";
3778
+ const Nn = u((n) => {
3744
3779
  const { ref: a, children: t, ...e } = n;
3745
- return /* @__PURE__ */ i(Ee, { ref: a, ...e, children: t });
3780
+ return /* @__PURE__ */ i(_e, { ref: a, ...e, children: t });
3746
3781
  });
3747
- zn.displayName = "MenuCheckboxItemIndicator";
3782
+ Nn.displayName = "MenuCheckboxItemIndicator";
3748
3783
  const Tr = F(function(a) {
3749
3784
  const { ref: t, children: e, required: s, defaultValue: o, value: r, onValueChange: c, ...l } = a;
3750
- return /* @__PURE__ */ i(Be, { ref: t, ...l, children: s ? /* @__PURE__ */ i(st, { defaultValue: o, value: r, onValueChange: c, children: e }) : /* @__PURE__ */ i(
3751
- ot,
3785
+ return /* @__PURE__ */ i(qe, { ref: t, ...l, children: s ? /* @__PURE__ */ i(ot, { defaultValue: o, value: r, onValueChange: c, children: e }) : /* @__PURE__ */ i(
3786
+ rt,
3752
3787
  {
3753
3788
  defaultValue: o,
3754
3789
  value: r,
@@ -3757,7 +3792,7 @@ const Tr = F(function(a) {
3757
3792
  }
3758
3793
  ) });
3759
3794
  }), Pr = F(function(n) {
3760
- const { ref: a, value: t, onSelect: e, children: s, ...o } = n, { selected: r, selectValue: c } = b(Ne), l = r(t), d = h(
3795
+ const { ref: a, value: t, onSelect: e, children: s, ...o } = n, { selected: r, selectValue: c } = b(Ne), l = r(t), d = v(
3761
3796
  (m) => {
3762
3797
  e == null || e(m), !m.defaultPrevented && c(t);
3763
3798
  },
@@ -3774,31 +3809,31 @@ const Tr = F(function(a) {
3774
3809
  children: /* @__PURE__ */ i(xe, { value: l, children: s })
3775
3810
  }
3776
3811
  );
3777
- }), Nn = u((n) => {
3778
- const { ref: a, className: t, ...e } = n, { size: s } = b(He);
3779
- return /* @__PURE__ */ i(Je.Root, { className: x(Ir({ size: s }), t), ref: a, ...e });
3812
+ }), wn = u((n) => {
3813
+ const { ref: a, className: t, ...e } = n, { size: s } = b(Be);
3814
+ return /* @__PURE__ */ i(Ze.Root, { className: x(Ir({ size: s }), t), ref: a, ...e });
3780
3815
  });
3781
- Nn.displayName = "MenuSeparator";
3816
+ wn.displayName = "MenuSeparator";
3782
3817
  const Zc = {
3783
- Root: yn,
3784
- Group: Be,
3785
- GroupLabel: hn,
3818
+ Root: zn,
3819
+ Group: qe,
3820
+ GroupLabel: vn,
3786
3821
  Item: le,
3787
- Separator: Nn,
3822
+ Separator: wn,
3788
3823
  SelectGroup: Tr,
3789
3824
  SelectItem: Pr,
3790
3825
  MultiSelectGroup: kr,
3791
3826
  MultiSelectItem: Rr,
3792
3827
  SelectAllItem: Sr,
3793
- SelectedIndicator: zn,
3794
- CheckboxItem: xn,
3795
- CheckedIndicator: fn,
3796
- Pages: bn,
3797
- Page: vn,
3798
- PageTriggerItem: Cn
3799
- }, wn = u((n) => /* @__PURE__ */ i(Ze.HiddenInput, { ...n }));
3800
- wn.displayName = "OneTimePasswordFieldHiddenInput";
3801
- const In = T({}), Mr = v(
3828
+ SelectedIndicator: Nn,
3829
+ CheckboxItem: fn,
3830
+ CheckedIndicator: hn,
3831
+ Pages: Cn,
3832
+ Page: bn,
3833
+ PageTriggerItem: yn
3834
+ }, In = u((n) => /* @__PURE__ */ i(et.HiddenInput, { ...n }));
3835
+ In.displayName = "OneTimePasswordFieldHiddenInput";
3836
+ const Sn = O({}), Mr = h(
3802
3837
  [
3803
3838
  "flex",
3804
3839
  "items-center",
@@ -3853,10 +3888,10 @@ const In = T({}), Mr = v(
3853
3888
  variant: "surface"
3854
3889
  }
3855
3890
  }
3856
- ), Sn = u((n) => {
3857
- const { ref: a, className: t, ...e } = n, { variant: s, size: o, radius: r, accentColor: c } = b(In);
3891
+ ), kn = u((n) => {
3892
+ const { ref: a, className: t, ...e } = n, { variant: s, size: o, radius: r, accentColor: c } = b(Sn);
3858
3893
  return /* @__PURE__ */ i(
3859
- Ze.Input,
3894
+ et.Input,
3860
3895
  {
3861
3896
  ref: a,
3862
3897
  className: x(
@@ -3869,9 +3904,9 @@ const In = T({}), Mr = v(
3869
3904
  }
3870
3905
  );
3871
3906
  });
3872
- Sn.displayName = "OneTimePasswordFieldInput";
3873
- const kn = u((n) => {
3874
- const a = M(), {
3907
+ kn.displayName = "OneTimePasswordFieldInput";
3908
+ const Rn = u((n) => {
3909
+ const a = V(), {
3875
3910
  ref: t,
3876
3911
  children: e,
3877
3912
  variant: s = "surface",
@@ -3879,20 +3914,20 @@ const kn = u((n) => {
3879
3914
  radius: r = a.radius,
3880
3915
  accentColor: c = a.accentColor,
3881
3916
  ...l
3882
- } = n, d = w(() => ({ variant: s, size: o, radius: r, accentColor: c }), [c, r, o, s]);
3883
- return /* @__PURE__ */ i(Ze.Root, { ref: t, "data-accent-color": c, ...l, children: /* @__PURE__ */ i(In, { value: d, children: e }) });
3917
+ } = n, d = N(() => ({ variant: s, size: o, radius: r, accentColor: c }), [c, r, o, s]);
3918
+ return /* @__PURE__ */ i(et.Root, { ref: t, "data-accent-color": c, ...l, children: /* @__PURE__ */ i(Sn, { value: d, children: e }) });
3884
3919
  });
3885
- kn.displayName = "OneTimePasswordFieldRoot";
3920
+ Rn.displayName = "OneTimePasswordFieldRoot";
3886
3921
  const ei = {
3887
- HiddenInput: wn,
3888
- Input: Sn,
3889
- Root: kn
3890
- }, Rn = u((n) => {
3922
+ HiddenInput: In,
3923
+ Input: kn,
3924
+ Root: Rn
3925
+ }, Tn = u((n) => {
3891
3926
  const { ref: a, ...t } = n;
3892
3927
  return /* @__PURE__ */ i(H.Close, { ref: a, ...t });
3893
3928
  });
3894
- Rn.displayName = "OverlayClose";
3895
- const Or = v([
3929
+ Tn.displayName = "OverlayClose";
3930
+ const Or = h([
3896
3931
  "fixed",
3897
3932
  "inset-0",
3898
3933
  "bg-(--color-background)",
@@ -3902,7 +3937,7 @@ const Or = v([
3902
3937
  "data-[state='open']:animate-in",
3903
3938
  "data-[state='open']:fade-in-0",
3904
3939
  "data-[state='open']:zoom-in-95"
3905
- ]), Tn = u((n) => {
3940
+ ]), Pn = u((n) => {
3906
3941
  const { ref: a, container: t, className: e, ...s } = n;
3907
3942
  return /* @__PURE__ */ i(H.Portal, { container: t, children: /* @__PURE__ */ i(
3908
3943
  H.Content,
@@ -3914,54 +3949,54 @@ const Or = v([
3914
3949
  }
3915
3950
  ) });
3916
3951
  });
3917
- Tn.displayName = "OverlayContent";
3918
- const Pn = u((n) => {
3952
+ Pn.displayName = "OverlayContent";
3953
+ const Mn = u((n) => {
3919
3954
  const { ref: a, ...t } = n;
3920
3955
  return /* @__PURE__ */ i(H.Description, { ref: a, ...t });
3921
3956
  });
3922
- Pn.displayName = "OverlayDescription";
3923
- const Mn = u((n) => /* @__PURE__ */ i(H.Root, { ...n }));
3924
- Mn.displayName = "OverlayRoot";
3925
- const On = u((n) => {
3957
+ Mn.displayName = "OverlayDescription";
3958
+ const On = u((n) => /* @__PURE__ */ i(H.Root, { ...n }));
3959
+ On.displayName = "OverlayRoot";
3960
+ const Vn = u((n) => {
3926
3961
  const { ref: a, ...t } = n;
3927
3962
  return /* @__PURE__ */ i(H.Title, { ref: a, ...t });
3928
3963
  });
3929
- On.displayName = "OverlayTitle";
3930
- const Vn = u((n) => {
3964
+ Vn.displayName = "OverlayTitle";
3965
+ const Ln = u((n) => {
3931
3966
  const { ref: a, ...t } = n;
3932
3967
  return /* @__PURE__ */ i(H.Trigger, { ref: a, ...t });
3933
3968
  });
3934
- Vn.displayName = "OverlayTrigger";
3969
+ Ln.displayName = "OverlayTrigger";
3935
3970
  const ti = {
3936
- Root: Mn,
3937
- Content: Tn,
3938
- Title: On,
3939
- Description: Pn,
3940
- Trigger: Vn,
3941
- Close: Rn
3942
- }, qe = { placeSelf: "center" }, Ln = u((n) => {
3943
- const { absoluteCentering: a, message: t = "Something went wrong", onRetry: e } = n, { resetBoundary: s } = so(), o = "20px", r = a ? { position: "absolute", top: "50%", transform: "translateY(-50%)" } : void 0, c = h(() => {
3971
+ Root: On,
3972
+ Content: Pn,
3973
+ Title: Vn,
3974
+ Description: Mn,
3975
+ Trigger: Ln,
3976
+ Close: Tn
3977
+ }, We = { placeSelf: "center" }, An = u((n) => {
3978
+ const { absoluteCentering: a, message: t = "Something went wrong", onRetry: e } = n, { resetBoundary: s } = oo(), o = "20px", r = a ? { position: "absolute", top: "50%", transform: "translateY(-50%)" } : void 0, c = v(() => {
3944
3979
  s(), e();
3945
3980
  }, [e, s]);
3946
3981
  return /* @__PURE__ */ W("div", { className: "flex w-full gap-2", style: r, children: [
3947
3982
  /* @__PURE__ */ i("div", { style: { flexGrow: 1 } }),
3948
- /* @__PURE__ */ i(q, { icon: Hs, size: o, style: qe }),
3949
- /* @__PURE__ */ i("span", { style: { lineHeight: o, ...qe }, children: t }),
3950
- /* @__PURE__ */ i(tt, { "aria-label": "Try again", variant: "soft", onClick: c, style: qe, children: /* @__PURE__ */ i(q, { icon: Bs, size: o }) }),
3983
+ /* @__PURE__ */ i(U, { icon: Bs, size: o, style: We }),
3984
+ /* @__PURE__ */ i("span", { style: { lineHeight: o, ...We }, children: t }),
3985
+ /* @__PURE__ */ i(at, { "aria-label": "Try again", variant: "soft", onClick: c, style: We, children: /* @__PURE__ */ i(U, { icon: qs, size: o }) }),
3951
3986
  /* @__PURE__ */ i("div", { style: { flexGrow: 1 } })
3952
3987
  ] });
3953
3988
  });
3954
- Ln.displayName = "ErrorFallback";
3989
+ An.displayName = "ErrorFallback";
3955
3990
  const Vr = u((n) => {
3956
- const { absoluteCentering: a, message: t } = n, [e, s] = E(0), o = h((c, l) => {
3991
+ const { absoluteCentering: a, message: t } = n, [e, s] = E(0), o = v((c, l) => {
3957
3992
  console.error("Error in OvermapErrorBoundary:", c, l), s((d) => d + 1);
3958
- }, []), r = h(() => {
3993
+ }, []), r = v(() => {
3959
3994
  s((c) => c + 1);
3960
3995
  }, []);
3961
3996
  return /* @__PURE__ */ i(
3962
- oo,
3997
+ ro,
3963
3998
  {
3964
- fallback: /* @__PURE__ */ i(Ln, { absoluteCentering: a, message: t, onRetry: r }),
3999
+ fallback: /* @__PURE__ */ i(An, { absoluteCentering: a, message: t, onRetry: r }),
3965
4000
  onError: o,
3966
4001
  children: n.children
3967
4002
  },
@@ -3969,12 +4004,12 @@ const Vr = u((n) => {
3969
4004
  );
3970
4005
  });
3971
4006
  Vr.displayName = "OvermapErrorBoundary";
3972
- const An = u((n) => {
4007
+ const Dn = u((n) => {
3973
4008
  const { ref: a, children: t, className: e, ...s } = n;
3974
4009
  return /* @__PURE__ */ i(Pe.Arrow, { className: x("fill-(--base-6)", e), ref: a, ...s, children: t });
3975
4010
  });
3976
- An.displayName = "PopoverArrow";
3977
- const Lr = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(--base-6)"], {
4011
+ Dn.displayName = "PopoverArrow";
4012
+ const Lr = h(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(--base-6)"], {
3978
4013
  variants: {
3979
4014
  size: {
3980
4015
  xs: ["p-2"],
@@ -3987,8 +4022,8 @@ const Lr = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
3987
4022
  defaultVariants: {
3988
4023
  size: "md"
3989
4024
  }
3990
- }), Dn = u((n) => {
3991
- const a = M(), {
4025
+ }), Gn = u((n) => {
4026
+ const a = V(), {
3992
4027
  ref: t,
3993
4028
  children: e,
3994
4029
  className: s,
@@ -3997,14 +4032,16 @@ const Lr = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
3997
4032
  size: c = "md",
3998
4033
  sideOffset: l = 5,
3999
4034
  container: d,
4000
- ...m
4035
+ side: m,
4036
+ ...g
4001
4037
  } = n;
4002
4038
  return /* @__PURE__ */ i(Pe.Portal, { container: d, children: /* @__PURE__ */ i(
4003
4039
  Pe.Content,
4004
4040
  {
4005
4041
  className: x(
4006
4042
  Lr({ size: c }),
4007
- Ve({ shadow: "3" }),
4043
+ Ve({ side: m }),
4044
+ Le({ size: "md" }),
4008
4045
  k({ radius: o, maxLarge: !0 }),
4009
4046
  s
4010
4047
  ),
@@ -4012,17 +4049,18 @@ const Lr = v(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(
4012
4049
  sideOffset: l,
4013
4050
  "data-accent-color": r,
4014
4051
  "data-floating-content": "",
4015
- ...m,
4052
+ side: m,
4053
+ ...g,
4016
4054
  children: e
4017
4055
  }
4018
4056
  ) });
4019
4057
  });
4020
- Dn.displayName = "PopoverContent";
4058
+ Gn.displayName = "PopoverContent";
4021
4059
  const ai = {
4022
4060
  ...Pe,
4023
- Content: Dn,
4024
- Arrow: An
4025
- }, Ar = v(["relative", "overflow-hidden", "grow"], {
4061
+ Content: Gn,
4062
+ Arrow: Dn
4063
+ }, Ar = h(["relative", "overflow-hidden", "grow"], {
4026
4064
  variants: {
4027
4065
  size: {
4028
4066
  xs: ["h-1.5"],
@@ -4036,7 +4074,7 @@ const ai = {
4036
4074
  soft: ["bg-(--base-a4)"]
4037
4075
  }
4038
4076
  }
4039
- }), Dr = v(
4077
+ }), Dr = h(
4040
4078
  [
4041
4079
  "size-full",
4042
4080
  "transform-[scaleX(calc(var(--progress-value)/var(--progress-max)))]",
@@ -4059,7 +4097,7 @@ const ai = {
4059
4097
  }
4060
4098
  }
4061
4099
  ), Gr = u((n) => {
4062
- const a = M(), {
4100
+ const a = V(), {
4063
4101
  ref: t,
4064
4102
  className: e,
4065
4103
  style: s,
@@ -4068,7 +4106,7 @@ const ai = {
4068
4106
  size: c = "md",
4069
4107
  accentColor: l = a.accentColor,
4070
4108
  ...d
4071
- } = n, m = w(
4109
+ } = n, m = N(
4072
4110
  () => ({
4073
4111
  ...s,
4074
4112
  "--progress-value": d.value ?? 0,
@@ -4077,19 +4115,19 @@ const ai = {
4077
4115
  [d.max, d.value, s]
4078
4116
  );
4079
4117
  return /* @__PURE__ */ i(
4080
- Nt.Root,
4118
+ wt.Root,
4081
4119
  {
4082
4120
  ref: t,
4083
4121
  className: x(Ar({ variant: r, size: c }), k({ radius: o, maxLarge: !1 }), e),
4084
4122
  style: m,
4085
4123
  "data-accent-color": l,
4086
4124
  ...d,
4087
- children: /* @__PURE__ */ i(Nt.ProgressIndicator, { className: Dr({ variant: r, size: c }) })
4125
+ children: /* @__PURE__ */ i(wt.ProgressIndicator, { className: Dr({ variant: r, size: c }) })
4088
4126
  }
4089
4127
  );
4090
4128
  });
4091
4129
  Gr.displayName = "Progress";
4092
- const Gn = T({}), Er = v([], {
4130
+ const En = O({}), Er = h([], {
4093
4131
  variants: {
4094
4132
  size: {
4095
4133
  xs: ["text-xs"],
@@ -4103,7 +4141,7 @@ const Gn = T({}), Er = v([], {
4103
4141
  outline: []
4104
4142
  }
4105
4143
  }
4106
- }), _r = v(
4144
+ }), _r = h(
4107
4145
  [
4108
4146
  "block",
4109
4147
  "overflow-hidden",
@@ -4146,8 +4184,8 @@ const Gn = T({}), Er = v([], {
4146
4184
  }
4147
4185
  }
4148
4186
  }
4149
- ), En = u((n) => {
4150
- const { variant: a, size: t, radius: e } = b(Gn), { className: s, accentColor: o, ...r } = n;
4187
+ ), _n = u((n) => {
4188
+ const { variant: a, size: t, radius: e } = b(En), { className: s, accentColor: o, ...r } = n;
4151
4189
  return /* @__PURE__ */ i(
4152
4190
  ae.Item,
4153
4191
  {
@@ -4157,9 +4195,9 @@ const Gn = T({}), Er = v([], {
4157
4195
  }
4158
4196
  );
4159
4197
  });
4160
- En.displayName = "RadioCardsItem";
4161
- const _n = u((n) => {
4162
- const a = M(), {
4198
+ _n.displayName = "RadioCardsItem";
4199
+ const Fn = u((n) => {
4200
+ const a = V(), {
4163
4201
  className: t,
4164
4202
  children: e,
4165
4203
  variant: s = "surface",
@@ -4167,7 +4205,7 @@ const _n = u((n) => {
4167
4205
  radius: r = a.radius,
4168
4206
  accentColor: c = a.accentColor,
4169
4207
  ...l
4170
- } = n, d = w(
4208
+ } = n, d = N(
4171
4209
  () => ({
4172
4210
  variant: s,
4173
4211
  size: o,
@@ -4181,15 +4219,15 @@ const _n = u((n) => {
4181
4219
  className: x(Er({ size: o, variant: s }), t),
4182
4220
  "data-accent-color": c,
4183
4221
  ...l,
4184
- children: /* @__PURE__ */ i(Gn, { value: d, children: e })
4222
+ children: /* @__PURE__ */ i(En, { value: d, children: e })
4185
4223
  }
4186
4224
  );
4187
4225
  });
4188
- _n.displayName = "RadioCardsRoot";
4226
+ Fn.displayName = "RadioCardsRoot";
4189
4227
  const ni = {
4190
- Root: _n,
4191
- Item: En
4192
- }, Fn = u((n) => {
4228
+ Root: Fn,
4229
+ Item: _n
4230
+ }, Hn = u((n) => {
4193
4231
  const { ref: a, children: t, className: e, ...s } = n;
4194
4232
  return /* @__PURE__ */ i(
4195
4233
  ae.Indicator,
@@ -4201,8 +4239,8 @@ const ni = {
4201
4239
  }
4202
4240
  );
4203
4241
  });
4204
- Fn.displayName = "RadioGroupIndicator";
4205
- const Hn = T({}), Fr = v(
4242
+ Hn.displayName = "RadioGroupIndicator";
4243
+ const Bn = O({}), Fr = h(
4206
4244
  [
4207
4245
  "inline-flex",
4208
4246
  "justify-center",
@@ -4244,8 +4282,8 @@ const Hn = T({}), Fr = v(
4244
4282
  size: "md"
4245
4283
  }
4246
4284
  }
4247
- ), Bn = u((n) => {
4248
- const a = j(Hn), {
4285
+ ), qn = u((n) => {
4286
+ const a = $(Bn), {
4249
4287
  ref: t,
4250
4288
  children: e,
4251
4289
  className: s,
@@ -4255,9 +4293,9 @@ const Hn = T({}), Fr = v(
4255
4293
  } = n;
4256
4294
  return /* @__PURE__ */ i(ae.Item, { className: x(Fr({ size: o, variant: r }), s), ref: t, ...c, children: e });
4257
4295
  });
4258
- Bn.displayName = "RadioGroupItem";
4296
+ qn.displayName = "RadioGroupItem";
4259
4297
  const $n = u((n) => {
4260
- const a = M(), {
4298
+ const a = V(), {
4261
4299
  ref: t,
4262
4300
  className: e,
4263
4301
  accentColor: s = a.accentColor,
@@ -4265,21 +4303,21 @@ const $n = u((n) => {
4265
4303
  size: r = "md",
4266
4304
  children: c,
4267
4305
  ...l
4268
- } = n, d = w(() => ({ variant: o, size: r }), [o, r]);
4269
- return /* @__PURE__ */ i(ae.Root, { className: x(e), ref: t, "data-accent-color": s, ...l, children: /* @__PURE__ */ i(Hn.Provider, { value: d, children: c }) });
4306
+ } = n, d = N(() => ({ variant: o, size: r }), [o, r]);
4307
+ return /* @__PURE__ */ i(ae.Root, { className: x(e), ref: t, "data-accent-color": s, ...l, children: /* @__PURE__ */ i(Bn.Provider, { value: d, children: c }) });
4270
4308
  });
4271
4309
  $n.displayName = "RadioGroupRoot";
4272
4310
  const si = {
4273
- Indicator: Fn,
4274
- Item: Bn,
4311
+ Indicator: Hn,
4312
+ Item: qn,
4275
4313
  Root: $n
4276
- }, bt = T({}), jn = T({}), Un = u((n) => {
4277
- const { ref: a, children: t, value: e, ...s } = n, { value: o } = b(bt), r = !!o && e <= o, c = w(() => ({ value: e }), [e]);
4314
+ }, Ct = O({}), jn = O({}), Un = u((n) => {
4315
+ const { ref: a, children: t, value: e, ...s } = n, { value: o } = b(Ct), r = !!o && e <= o, c = N(() => ({ value: e }), [e]);
4278
4316
  return /* @__PURE__ */ i(ae.Item, { ref: a, value: e.toString(), "data-active": r, ...s, children: /* @__PURE__ */ i(jn, { value: c, children: t }) });
4279
4317
  });
4280
4318
  Un.displayName = "RatingItem";
4281
- const qn = u((n) => {
4282
- const { ref: a, children: t, forceMount: e, ...s } = n, { value: o } = b(bt), { value: r } = b(jn), c = !!o && r <= o;
4319
+ const Wn = u((n) => {
4320
+ const { ref: a, children: t, forceMount: e, ...s } = n, { value: o } = b(Ct), { value: r } = b(jn), c = !!o && r <= o;
4283
4321
  return /* @__PURE__ */ i(
4284
4322
  ae.Indicator,
4285
4323
  {
@@ -4291,14 +4329,14 @@ const qn = u((n) => {
4291
4329
  }
4292
4330
  );
4293
4331
  });
4294
- qn.displayName = "RatingItemIndicator";
4295
- const Wn = u((n) => {
4296
- const { ref: a, children: t, defaultValue: e, value: s, onValueChange: o, ...r } = n, [c, l] = X(e ?? null, s, o), d = h(
4332
+ Wn.displayName = "RatingItemIndicator";
4333
+ const Kn = u((n) => {
4334
+ const { ref: a, children: t, defaultValue: e, value: s, onValueChange: o, ...r } = n, [c, l] = X(e ?? null, s, o), d = v(
4297
4335
  (g) => {
4298
4336
  l(parseInt(g));
4299
4337
  },
4300
4338
  [l]
4301
- ), m = w(
4339
+ ), m = N(
4302
4340
  () => ({
4303
4341
  value: c
4304
4342
  }),
@@ -4311,16 +4349,16 @@ const Wn = u((n) => {
4311
4349
  value: c ? c.toString() : null,
4312
4350
  onValueChange: d,
4313
4351
  ...r,
4314
- children: /* @__PURE__ */ i(bt, { value: m, children: t })
4352
+ children: /* @__PURE__ */ i(Ct, { value: m, children: t })
4315
4353
  }
4316
4354
  );
4317
4355
  });
4318
- Wn.displayName = "RatingRoot";
4356
+ Kn.displayName = "RatingRoot";
4319
4357
  const oi = {
4320
4358
  Item: Un,
4321
- ItemIndicator: qn,
4322
- Root: Wn
4323
- }, Hr = v(
4359
+ ItemIndicator: Wn,
4360
+ Root: Kn
4361
+ }, Hr = h(
4324
4362
  ["shrink-0", "transition-colors", "inline-flex", "box-border", "min-w-max", "text-center"],
4325
4363
  {
4326
4364
  variants: {
@@ -4338,7 +4376,7 @@ const oi = {
4338
4376
  }
4339
4377
  }
4340
4378
  }
4341
- ), Br = v(
4379
+ ), Br = h(
4342
4380
  [
4343
4381
  "h-full",
4344
4382
  "grow",
@@ -4461,13 +4499,13 @@ const oi = {
4461
4499
  icon: !1
4462
4500
  }
4463
4501
  }
4464
- ), Kn = T({}), $r = () => {
4465
- const n = j(Kn);
4502
+ ), Xn = O({}), qr = () => {
4503
+ const n = $(Xn);
4466
4504
  if (!n)
4467
4505
  throw new Error("useSegmentedControl must be used within a SegmentedControlProvider");
4468
4506
  return n;
4469
- }, Xn = u((n) => {
4470
- const { ref: a, className: t, ...e } = n, { size: s, radius: o, variant: r, icon: c } = $r();
4507
+ }, Yn = u((n) => {
4508
+ const { ref: a, className: t, ...e } = n, { size: s, radius: o, variant: r, icon: c } = qr();
4471
4509
  return /* @__PURE__ */ i(
4472
4510
  Oe.Item,
4473
4511
  {
@@ -4477,9 +4515,9 @@ const oi = {
4477
4515
  }
4478
4516
  );
4479
4517
  });
4480
- Xn.displayName = "SegmentedControlItem";
4481
- const Yn = u((n) => {
4482
- const a = M(), {
4518
+ Yn.displayName = "SegmentedControlItem";
4519
+ const Qn = u((n) => {
4520
+ const a = V(), {
4483
4521
  ref: t,
4484
4522
  children: e,
4485
4523
  className: s,
@@ -4502,15 +4540,15 @@ const Yn = u((n) => {
4502
4540
  type: "single",
4503
4541
  "data-accent-color": d,
4504
4542
  ...m,
4505
- children: /* @__PURE__ */ i(Kn.Provider, { value: { size: o, variant: r, radius: l, icon: c }, children: e })
4543
+ children: /* @__PURE__ */ i(Xn.Provider, { value: { size: o, variant: r, radius: l, icon: c }, children: e })
4506
4544
  }
4507
4545
  );
4508
4546
  });
4509
- Yn.displayName = "SegmentedControlRoot";
4547
+ Qn.displayName = "SegmentedControlRoot";
4510
4548
  const ri = {
4511
- Item: Xn,
4512
- Root: Yn
4513
- }, Qn = T({}), jr = v(
4549
+ Item: Yn,
4550
+ Root: Qn
4551
+ }, Jn = O({}), $r = h(
4514
4552
  ["shrink-0", "transition-colors", "inline-flex", "box-border", "min-w-max", "text-center"],
4515
4553
  {
4516
4554
  variants: {
@@ -4532,7 +4570,7 @@ const ri = {
4532
4570
  size: "md"
4533
4571
  }
4534
4572
  }
4535
- ), Ur = v(
4573
+ ), jr = h(
4536
4574
  [
4537
4575
  "h-full",
4538
4576
  "grow",
@@ -4655,8 +4693,8 @@ const ri = {
4655
4693
  icon: !1
4656
4694
  }
4657
4695
  }
4658
- ), Jn = u((n) => {
4659
- const a = M(), {
4696
+ ), Zn = u((n) => {
4697
+ const a = V(), {
4660
4698
  ref: t,
4661
4699
  children: e,
4662
4700
  className: s,
@@ -4665,7 +4703,7 @@ const ri = {
4665
4703
  radius: c = a.radius,
4666
4704
  accentColor: l = a.accentColor,
4667
4705
  ...d
4668
- } = n, m = w(
4706
+ } = n, m = N(
4669
4707
  () => ({
4670
4708
  size: o,
4671
4709
  variant: r,
@@ -4677,38 +4715,38 @@ const ri = {
4677
4715
  ne.List,
4678
4716
  {
4679
4717
  ref: t,
4680
- className: x(jr({ size: o, variant: r }), k({ radius: c, maxLarge: !1 }), s),
4718
+ className: x($r({ size: o, variant: r }), k({ radius: c, maxLarge: !1 }), s),
4681
4719
  "data-accent-color": l,
4682
4720
  ...d,
4683
- children: /* @__PURE__ */ i(Qn.Provider, { value: m, children: e })
4721
+ children: /* @__PURE__ */ i(Jn.Provider, { value: m, children: e })
4684
4722
  }
4685
4723
  );
4686
4724
  });
4687
- Jn.displayName = "TabsList";
4688
- const Zn = u((n) => {
4725
+ Zn.displayName = "TabsList";
4726
+ const es = u((n) => {
4689
4727
  const { ref: a, className: t, ...e } = n;
4690
4728
  return /* @__PURE__ */ i(ne.Root, { ref: a, className: x("flex flex-col", t), ...e });
4691
4729
  });
4692
- Zn.displayName = "TabsRoot";
4693
- const es = u((n) => {
4694
- const { ref: a, children: t, className: e, ...s } = n, { size: o, radius: r, variant: c } = b(Qn);
4730
+ es.displayName = "TabsRoot";
4731
+ const ts = u((n) => {
4732
+ const { ref: a, children: t, className: e, ...s } = n, { size: o, radius: r, variant: c } = b(Jn);
4695
4733
  return /* @__PURE__ */ i(
4696
4734
  ne.Trigger,
4697
4735
  {
4698
4736
  ref: a,
4699
- className: x(Ur({ size: o, radius: r, variant: c }), e),
4737
+ className: x(jr({ size: o, radius: r, variant: c }), e),
4700
4738
  ...s,
4701
4739
  children: t
4702
4740
  }
4703
4741
  );
4704
4742
  });
4705
- es.displayName = "TabsTrigger";
4743
+ ts.displayName = "TabsTrigger";
4706
4744
  const ci = {
4707
- Root: Zn,
4708
- List: Jn,
4709
- Trigger: es,
4745
+ Root: es,
4746
+ List: Zn,
4747
+ Trigger: ts,
4710
4748
  Content: ne.Content
4711
- }, qr = v(["shrink-0", "bg-(--accent-6)"], {
4749
+ }, Ur = h(["shrink-0", "bg-(--accent-6)"], {
4712
4750
  variants: {
4713
4751
  size: {
4714
4752
  xs: [],
@@ -4792,9 +4830,9 @@ const ci = {
4792
4830
  }), Wr = u((n) => {
4793
4831
  const { ref: a, className: t, accentColor: e = "base", orientation: s, size: o, ...r } = n;
4794
4832
  return /* @__PURE__ */ i(
4795
- Je.Root,
4833
+ Ze.Root,
4796
4834
  {
4797
- className: x(qr({ orientation: s, size: o }), t),
4835
+ className: x(Ur({ orientation: s, size: o }), t),
4798
4836
  "data-accent-color": e,
4799
4837
  ref: a,
4800
4838
  ...r
@@ -4802,7 +4840,7 @@ const ci = {
4802
4840
  );
4803
4841
  });
4804
4842
  Wr.displayName = "Separator";
4805
- const Kr = v(["relative", "select-none", "touch-none", "flex", "items-center"], {
4843
+ const Kr = h(["relative", "select-none", "touch-none", "flex", "items-center"], {
4806
4844
  variants: {
4807
4845
  size: {
4808
4846
  xs: [],
@@ -4874,7 +4912,7 @@ const Kr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
4874
4912
  className: ["w-8"]
4875
4913
  }
4876
4914
  ]
4877
- }), Xr = v(
4915
+ }), Xr = h(
4878
4916
  [
4879
4917
  "overflow-hidden",
4880
4918
  "relative",
@@ -4957,7 +4995,7 @@ const Kr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
4957
4995
  }
4958
4996
  ]
4959
4997
  }
4960
- ), Yr = v(
4998
+ ), Yr = h(
4961
4999
  ["absolute", "rounded-[inherit]", "data-disabled:opacity-50", "disabled:pointer-events-none"],
4962
5000
  {
4963
5001
  variants: {
@@ -4978,7 +5016,7 @@ const Kr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
4978
5016
  }
4979
5017
  }
4980
5018
  }
4981
- ), Qr = v(
5019
+ ), Qr = h(
4982
5020
  [
4983
5021
  "block",
4984
5022
  "shrink-0",
@@ -5008,7 +5046,7 @@ const Kr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
5008
5046
  }
5009
5047
  }
5010
5048
  ), Jr = u((n) => {
5011
- const a = M(), {
5049
+ const a = V(), {
5012
5050
  className: t,
5013
5051
  size: e = "md",
5014
5052
  orientation: s = "horizontal",
@@ -5044,7 +5082,7 @@ const Kr = v(["relative", "select-none", "touch-none", "flex", "items-center"],
5044
5082
  );
5045
5083
  });
5046
5084
  Jr.displayName = "Slider";
5047
- const Zr = v(
5085
+ const Zr = h(
5048
5086
  ["box-border", "shrink-0", "animate-spin", "rounded-full", "border-(--accent-9)", "border-b-transparent"],
5049
5087
  {
5050
5088
  variants: {
@@ -5061,11 +5099,11 @@ const Zr = v(
5061
5099
  }
5062
5100
  }
5063
5101
  ), ec = u((n) => {
5064
- const a = M(), { ref: t, className: e, size: s = "md", accentColor: o = a.accentColor, ...r } = n;
5102
+ const a = V(), { ref: t, className: e, size: s = "md", accentColor: o = a.accentColor, ...r } = n;
5065
5103
  return /* @__PURE__ */ i("div", { className: x(Zr({ size: s }), e), ref: t, "data-accent-color": o, ...r });
5066
5104
  });
5067
5105
  ec.displayName = "Spinner";
5068
- const ts = T({}), tc = v(
5106
+ const as = O({}), tc = h(
5069
5107
  [
5070
5108
  "shrink-0",
5071
5109
  // select
@@ -5098,7 +5136,7 @@ const ts = T({}), tc = v(
5098
5136
  size: "md"
5099
5137
  }
5100
5138
  }
5101
- ), ac = v(
5139
+ ), ac = h(
5102
5140
  [
5103
5141
  "flex",
5104
5142
  "items-center",
@@ -5122,8 +5160,8 @@ const ts = T({}), tc = v(
5122
5160
  size: "md"
5123
5161
  }
5124
5162
  }
5125
- ), as = u((n) => {
5126
- const a = M(), {
5163
+ ), ns = u((n) => {
5164
+ const a = V(), {
5127
5165
  ref: t,
5128
5166
  children: e,
5129
5167
  className: s,
@@ -5131,7 +5169,7 @@ const ts = T({}), tc = v(
5131
5169
  radius: r = a.radius,
5132
5170
  accentColor: c = a.accentColor,
5133
5171
  ...l
5134
- } = n, d = w(() => ({ size: o, radius: r }), [o, r]);
5172
+ } = n, d = N(() => ({ size: o, radius: r }), [o, r]);
5135
5173
  return /* @__PURE__ */ i(
5136
5174
  Ut.Root,
5137
5175
  {
@@ -5139,13 +5177,13 @@ const ts = T({}), tc = v(
5139
5177
  ref: t,
5140
5178
  "data-accent-color": c,
5141
5179
  ...l,
5142
- children: /* @__PURE__ */ i(ts.Provider, { value: d, children: e })
5180
+ children: /* @__PURE__ */ i(as.Provider, { value: d, children: e })
5143
5181
  }
5144
5182
  );
5145
5183
  });
5146
- as.displayName = "SwitchRoot";
5147
- const ns = u((n) => {
5148
- const { ref: a, className: t, ...e } = n, { size: s, radius: o } = j(ts);
5184
+ ns.displayName = "SwitchRoot";
5185
+ const ss = u((n) => {
5186
+ const { ref: a, className: t, ...e } = n, { size: s, radius: o } = $(as);
5149
5187
  return /* @__PURE__ */ i(
5150
5188
  Ut.Thumb,
5151
5189
  {
@@ -5155,16 +5193,16 @@ const ns = u((n) => {
5155
5193
  }
5156
5194
  );
5157
5195
  });
5158
- ns.displayName = "SwitchThumb";
5196
+ ss.displayName = "SwitchThumb";
5159
5197
  const ii = {
5160
- Root: as,
5161
- Thumb: ns
5162
- }, ss = u((n) => {
5198
+ Root: ns,
5199
+ Thumb: ss
5200
+ }, os = u((n) => {
5163
5201
  const { ref: a, className: t, ...e } = n;
5164
5202
  return /* @__PURE__ */ i("tbody", { ref: a, className: x(t), ...e });
5165
5203
  });
5166
- ss.displayName = "TableBody";
5167
- const $e = T({}), nc = v(["border-collapse text-left"], {
5204
+ os.displayName = "TableBody";
5205
+ const $e = O({}), nc = h(["border-collapse text-left"], {
5168
5206
  variants: {
5169
5207
  variant: {
5170
5208
  ghost: [],
@@ -5178,7 +5216,7 @@ const $e = T({}), nc = v(["border-collapse text-left"], {
5178
5216
  xl: ["text-xl"]
5179
5217
  }
5180
5218
  }
5181
- }), Ct = v([], {
5219
+ }), yt = h([], {
5182
5220
  variants: {
5183
5221
  variant: {
5184
5222
  surface: [],
@@ -5218,42 +5256,42 @@ const $e = T({}), nc = v(["border-collapse text-left"], {
5218
5256
  { size: "xl", compact: !0, className: ["px-10", "py-5"] },
5219
5257
  { size: "xl", compact: !1, className: ["p-10"] }
5220
5258
  ]
5221
- }), os = u((n) => {
5222
- const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j($e);
5259
+ }), rs = u((n) => {
5260
+ const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = $($e);
5223
5261
  return /* @__PURE__ */ i(
5224
5262
  "td",
5225
5263
  {
5226
5264
  ref: a,
5227
- className: x(Ct({ size: s, border: o, cell: !0, variant: r, compact: c }), t),
5265
+ className: x(yt({ size: s, border: o, cell: !0, variant: r, compact: c }), t),
5228
5266
  ...e
5229
5267
  }
5230
5268
  );
5231
5269
  });
5232
- os.displayName = "TableCell";
5233
- const rs = u((n) => {
5234
- const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j($e);
5270
+ rs.displayName = "TableCell";
5271
+ const cs = u((n) => {
5272
+ const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = $($e);
5235
5273
  return /* @__PURE__ */ i(
5236
5274
  "th",
5237
5275
  {
5238
5276
  ref: a,
5239
- className: x(Ct({ size: s, border: o, cell: !1, variant: r, compact: c }), t),
5277
+ className: x(yt({ size: s, border: o, cell: !1, variant: r, compact: c }), t),
5240
5278
  ...e
5241
5279
  }
5242
5280
  );
5243
5281
  });
5244
- rs.displayName = "TableColumnHeaderCell";
5245
- const cs = u((n) => {
5282
+ cs.displayName = "TableColumnHeaderCell";
5283
+ const is = u((n) => {
5246
5284
  const { ref: a, className: t, ...e } = n;
5247
5285
  return /* @__PURE__ */ i("tfoot", { ref: a, className: x(t), ...e });
5248
5286
  });
5249
- cs.displayName = "TableFooter";
5250
- const is = u((n) => {
5287
+ is.displayName = "TableFooter";
5288
+ const ls = u((n) => {
5251
5289
  const { ref: a, className: t, ...e } = n;
5252
5290
  return /* @__PURE__ */ i("thead", { ref: a, className: x(t), ...e });
5253
5291
  });
5254
- is.displayName = "TableHeader";
5255
- const ls = u((n) => {
5256
- const a = M(), {
5292
+ ls.displayName = "TableHeader";
5293
+ const ds = u((n) => {
5294
+ const a = V(), {
5257
5295
  ref: t,
5258
5296
  children: e,
5259
5297
  className: s,
@@ -5263,7 +5301,7 @@ const ls = u((n) => {
5263
5301
  variant: l = "ghost",
5264
5302
  compact: d = !1,
5265
5303
  ...m
5266
- } = n, g = w(() => ({ size: o, border: r, variant: l, compact: d }), [o, r, l, d]);
5304
+ } = n, g = N(() => ({ size: o, border: r, variant: l, compact: d }), [o, r, l, d]);
5267
5305
  return /* @__PURE__ */ i(
5268
5306
  "table",
5269
5307
  {
@@ -5279,34 +5317,34 @@ const ls = u((n) => {
5279
5317
  }
5280
5318
  );
5281
5319
  });
5282
- ls.displayName = "TableRoot";
5283
- const ds = u((n) => {
5320
+ ds.displayName = "TableRoot";
5321
+ const us = u((n) => {
5284
5322
  const { ref: a, className: t, ...e } = n;
5285
5323
  return /* @__PURE__ */ i("tr", { ref: a, className: x(t), ...e });
5286
5324
  });
5287
- ds.displayName = "TableRow";
5288
- const us = u((n) => {
5289
- const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = j($e);
5325
+ us.displayName = "TableRow";
5326
+ const ms = u((n) => {
5327
+ const { ref: a, className: t, ...e } = n, { size: s, border: o, variant: r, compact: c } = $($e);
5290
5328
  return /* @__PURE__ */ i(
5291
5329
  "th",
5292
5330
  {
5293
5331
  ref: a,
5294
- className: x(Ct({ size: s, border: o, cell: !0, variant: r, compact: c }), t),
5332
+ className: x(yt({ size: s, border: o, cell: !0, variant: r, compact: c }), t),
5295
5333
  ...e
5296
5334
  }
5297
5335
  );
5298
5336
  });
5299
- us.displayName = "TableRowHeaderCell";
5337
+ ms.displayName = "TableRowHeaderCell";
5300
5338
  const li = {
5301
- Root: ls,
5302
- Header: is,
5303
- Body: ss,
5304
- Footer: cs,
5305
- Row: ds,
5306
- Cell: os,
5307
- RowHeaderCell: us,
5308
- ColumnHeaderCell: rs
5309
- }, ms = T({}), sc = v(["flex", "border-box", "inset-shadow-[0_-1px_0_0_var(--base-a6)]"], {
5339
+ Root: ds,
5340
+ Header: ls,
5341
+ Body: os,
5342
+ Footer: is,
5343
+ Row: us,
5344
+ Cell: rs,
5345
+ RowHeaderCell: ms,
5346
+ ColumnHeaderCell: cs
5347
+ }, gs = O({}), sc = h(["flex", "border-box", "inset-shadow-[0_-1px_0_0_var(--base-a6)]"], {
5310
5348
  variants: {
5311
5349
  size: {
5312
5350
  xs: ["h-6", "text-xs"],
@@ -5319,7 +5357,7 @@ const li = {
5319
5357
  defaultVariants: {
5320
5358
  size: "md"
5321
5359
  }
5322
- }), oc = v(
5360
+ }), oc = h(
5323
5361
  [
5324
5362
  "select-none",
5325
5363
  "shrink-0",
@@ -5353,8 +5391,8 @@ const li = {
5353
5391
  size: "md"
5354
5392
  }
5355
5393
  }
5356
- ), gs = u((n) => {
5357
- const a = M(), { ref: t, children: e, className: s, size: o = "md", accentColor: r = a.accentColor, ...c } = n;
5394
+ ), ps = u((n) => {
5395
+ const a = V(), { ref: t, children: e, className: s, size: o = "md", accentColor: r = a.accentColor, ...c } = n;
5358
5396
  return /* @__PURE__ */ i(
5359
5397
  ne.List,
5360
5398
  {
@@ -5362,32 +5400,32 @@ const li = {
5362
5400
  className: x(sc({ size: o }), s),
5363
5401
  "data-accent-color": r,
5364
5402
  ...c,
5365
- children: /* @__PURE__ */ i(ms.Provider, { value: { size: o }, children: e })
5403
+ children: /* @__PURE__ */ i(gs.Provider, { value: { size: o }, children: e })
5366
5404
  }
5367
5405
  );
5368
5406
  });
5369
- gs.displayName = "TabsList";
5370
- const ps = u((n) => {
5407
+ ps.displayName = "TabsList";
5408
+ const xs = u((n) => {
5371
5409
  const { ref: a, className: t, ...e } = n;
5372
5410
  return /* @__PURE__ */ i(ne.Root, { ref: a, className: x("flex flex-col", t), ...e });
5373
5411
  });
5374
- ps.displayName = "TabsRoot";
5412
+ xs.displayName = "TabsRoot";
5375
5413
  const rc = () => {
5376
- const n = j(ms);
5414
+ const n = $(gs);
5377
5415
  if (!n)
5378
5416
  throw new Error("useTabsList must be used within a TabsList component");
5379
5417
  return n;
5380
- }, xs = u((n) => {
5418
+ }, fs = u((n) => {
5381
5419
  const { ref: a, children: t, className: e, ...s } = n, { size: o } = rc();
5382
5420
  return /* @__PURE__ */ i(ne.Trigger, { ref: a, className: x(oc({ size: o }), e), ...s, children: t });
5383
5421
  });
5384
- xs.displayName = "TabsTrigger";
5422
+ fs.displayName = "TabsTrigger";
5385
5423
  const di = {
5386
- Root: ps,
5387
- List: gs,
5388
- Trigger: xs,
5424
+ Root: xs,
5425
+ List: ps,
5426
+ Trigger: fs,
5389
5427
  Content: ne.Content
5390
- }, cc = v([], {
5428
+ }, cc = h([], {
5391
5429
  variants: {
5392
5430
  size: {
5393
5431
  xs: ["text-xs"],
@@ -5416,7 +5454,7 @@ const di = {
5416
5454
  right: ["text-right"]
5417
5455
  }
5418
5456
  }
5419
- }), Xe = u((n) => {
5457
+ }), Ye = u((n) => {
5420
5458
  const { ref: a, className: t, size: e, weight: s, align: o, accentColor: r, highContrast: c = !1, ...l } = n;
5421
5459
  return /* @__PURE__ */ i(
5422
5460
  "span",
@@ -5435,8 +5473,8 @@ const di = {
5435
5473
  }
5436
5474
  );
5437
5475
  });
5438
- Xe.displayName = "Text";
5439
- const ic = v(
5476
+ Ye.displayName = "Text";
5477
+ const ic = h(
5440
5478
  [
5441
5479
  "focus:outline-(--accent-a8)",
5442
5480
  "focus:outline-2",
@@ -5497,7 +5535,7 @@ const ic = v(
5497
5535
  }
5498
5536
  }
5499
5537
  ), lc = u((n) => {
5500
- const a = M(), {
5538
+ const a = V(), {
5501
5539
  ref: t,
5502
5540
  className: e,
5503
5541
  size: s,
@@ -5518,9 +5556,9 @@ const ic = v(
5518
5556
  });
5519
5557
  lc.displayName = "TextArea";
5520
5558
  const Re = u((n) => {
5521
- const { toastId: a, title: t, description: e, icon: s, accentColor: o, closeButton: r, action: c } = n, { radius: l } = M(), d = h(() => {
5559
+ const { toastId: a, title: t, description: e, icon: s, accentColor: o, closeButton: r, action: c } = n, { radius: l } = V(), d = v(() => {
5522
5560
  K.dismiss(a);
5523
- }, [a]), m = h(() => {
5561
+ }, [a]), m = v(() => {
5524
5562
  K.dismiss(a);
5525
5563
  }, [a]);
5526
5564
  return /* @__PURE__ */ W(
@@ -5535,13 +5573,13 @@ const Re = u((n) => {
5535
5573
  /* @__PURE__ */ W("div", { className: "flex items-center gap-4 grow min-w-0", children: [
5536
5574
  s,
5537
5575
  /* @__PURE__ */ W("div", { className: "flex flex-col min-w-0 select-none", children: [
5538
- /* @__PURE__ */ i(Xe, { className: "truncate", children: t }),
5539
- e && /* @__PURE__ */ i(Xe, { accentColor: "base", size: "sm", weight: "regular", children: e })
5576
+ /* @__PURE__ */ i(Ye, { className: "truncate", children: t }),
5577
+ e && /* @__PURE__ */ i(Ye, { accentColor: "base", size: "sm", weight: "regular", children: e })
5540
5578
  ] })
5541
5579
  ] }),
5542
5580
  /* @__PURE__ */ i(me, { onClick: d, children: c }),
5543
5581
  r && /* @__PURE__ */ i(
5544
- tt,
5582
+ at,
5545
5583
  {
5546
5584
  type: "button",
5547
5585
  onClick: m,
@@ -5549,17 +5587,17 @@ const Re = u((n) => {
5549
5587
  accentColor: "base",
5550
5588
  variant: "ghost",
5551
5589
  size: "xs",
5552
- children: /* @__PURE__ */ i(q, { icon: $s })
5590
+ children: /* @__PURE__ */ i(U, { icon: $s })
5553
5591
  }
5554
5592
  )
5555
5593
  ]
5556
5594
  }
5557
5595
  );
5558
5596
  }), je = {
5559
- success: /* @__PURE__ */ i(q, { icon: Ws, color: "var(--accent-9)" }),
5560
- info: /* @__PURE__ */ i(q, { icon: qs, color: "var(--base-11)" }),
5561
- warning: /* @__PURE__ */ i(q, { icon: Us, color: "var(--accent-9)" }),
5562
- error: /* @__PURE__ */ i(q, { icon: js, color: "var(--accent-9)" })
5597
+ success: /* @__PURE__ */ i(U, { icon: Ks, color: "var(--accent-9)" }),
5598
+ info: /* @__PURE__ */ i(U, { icon: Ws, color: "var(--base-11)" }),
5599
+ warning: /* @__PURE__ */ i(U, { icon: Us, color: "var(--accent-9)" }),
5600
+ error: /* @__PURE__ */ i(U, { icon: js, color: "var(--accent-9)" })
5563
5601
  }, dc = (n) => {
5564
5602
  const { icon: a, description: t, title: e, closeButton: s, action: o, ...r } = n;
5565
5603
  return K.custom(
@@ -5657,9 +5695,9 @@ const Re = u((n) => {
5657
5695
  { getHistory: K.getHistory, getToasts: K.getToasts }
5658
5696
  ), xc = {
5659
5697
  unstyled: !0
5660
- }, fc = u((n) => /* @__PURE__ */ i(ro, { toastOptions: xc, richColors: !1, closeButton: !1, theme: "system", ...n }));
5698
+ }, fc = u((n) => /* @__PURE__ */ i(co, { toastOptions: xc, richColors: !1, closeButton: !1, theme: "system", ...n }));
5661
5699
  fc.displayName = "Toaster";
5662
- const hc = v(
5700
+ const hc = h(
5663
5701
  [
5664
5702
  "flex",
5665
5703
  "items-center",
@@ -5778,8 +5816,8 @@ const hc = v(
5778
5816
  variant: "outline"
5779
5817
  }
5780
5818
  }
5781
- ), yt = u((n) => {
5782
- const a = M(), {
5819
+ ), zt = u((n) => {
5820
+ const a = V(), {
5783
5821
  ref: t,
5784
5822
  className: e,
5785
5823
  size: s,
@@ -5790,7 +5828,7 @@ const hc = v(
5790
5828
  ...d
5791
5829
  } = n;
5792
5830
  return /* @__PURE__ */ i(
5793
- co.Root,
5831
+ io.Root,
5794
5832
  {
5795
5833
  ref: t,
5796
5834
  className: x(hc({ size: s, variant: r, icon: o }), k({ radius: c, maxLarge: !1 }), e),
@@ -5799,12 +5837,12 @@ const hc = v(
5799
5837
  }
5800
5838
  );
5801
5839
  });
5802
- yt.displayName = "BaseToggleButton";
5803
- const vc = u((n) => /* @__PURE__ */ i(yt, { icon: !0, ...n }));
5840
+ zt.displayName = "BaseToggleButton";
5841
+ const vc = u((n) => /* @__PURE__ */ i(zt, { icon: !0, ...n }));
5804
5842
  vc.displayName = "IconToggleButton";
5805
- const bc = u((n) => /* @__PURE__ */ i(yt, { icon: !1, ...n }));
5843
+ const bc = u((n) => /* @__PURE__ */ i(zt, { icon: !1, ...n }));
5806
5844
  bc.displayName = "ToggleButton";
5807
- const fs = T({}), Cc = v(
5845
+ const hs = O({}), Cc = h(
5808
5846
  [
5809
5847
  "flex",
5810
5848
  "items-center",
@@ -5918,8 +5956,8 @@ const fs = T({}), Cc = v(
5918
5956
  }
5919
5957
  ]
5920
5958
  }
5921
- ), zt = u((n) => {
5922
- const a = b(fs), {
5959
+ ), Nt = u((n) => {
5960
+ const a = b(hs), {
5923
5961
  ref: t,
5924
5962
  className: e,
5925
5963
  icon: s,
@@ -5943,13 +5981,13 @@ const fs = T({}), Cc = v(
5943
5981
  }
5944
5982
  );
5945
5983
  });
5946
- zt.displayName = "ToggleGroupBaseItem";
5947
- const hs = u((n) => /* @__PURE__ */ i(zt, { icon: !0, ...n }));
5948
- hs.displayName = "ToggleGroupIconItem";
5949
- const vs = u((n) => /* @__PURE__ */ i(zt, { icon: !1, ...n }));
5950
- vs.displayName = "ToggleGroupItem";
5951
- const bs = u((n) => {
5952
- const a = M(), {
5984
+ Nt.displayName = "ToggleGroupBaseItem";
5985
+ const vs = u((n) => /* @__PURE__ */ i(Nt, { icon: !0, ...n }));
5986
+ vs.displayName = "ToggleGroupIconItem";
5987
+ const bs = u((n) => /* @__PURE__ */ i(Nt, { icon: !1, ...n }));
5988
+ bs.displayName = "ToggleGroupItem";
5989
+ const Cs = u((n) => {
5990
+ const a = V(), {
5953
5991
  ref: t,
5954
5992
  children: e,
5955
5993
  accentColor: s = a.accentColor,
@@ -5957,7 +5995,7 @@ const bs = u((n) => {
5957
5995
  variant: r = "soft",
5958
5996
  size: c = "md",
5959
5997
  ...l
5960
- } = n, d = w(
5998
+ } = n, d = N(
5961
5999
  () => ({
5962
6000
  variant: r,
5963
6001
  size: c,
@@ -5966,19 +6004,19 @@ const bs = u((n) => {
5966
6004
  }),
5967
6005
  [s, o, c, r]
5968
6006
  );
5969
- return /* @__PURE__ */ i(Oe.Root, { ref: t, "data-accent-color": s, ...l, children: /* @__PURE__ */ i(fs, { value: d, children: e }) });
6007
+ return /* @__PURE__ */ i(Oe.Root, { ref: t, "data-accent-color": s, ...l, children: /* @__PURE__ */ i(hs, { value: d, children: e }) });
5970
6008
  });
5971
- bs.displayName = "ToggleGroupRoot";
6009
+ Cs.displayName = "ToggleGroupRoot";
5972
6010
  const mi = {
5973
- Root: bs,
5974
- Item: vs,
5975
- IconItem: hs
5976
- }, Cs = u((n) => {
6011
+ Root: Cs,
6012
+ Item: bs,
6013
+ IconItem: vs
6014
+ }, ys = u((n) => {
5977
6015
  const { ref: a, className: t, ...e } = n;
5978
6016
  return /* @__PURE__ */ i(de.Arrow, { className: x("fill-(--base-6)", t), ref: a, ...e });
5979
6017
  });
5980
- Cs.displayName = "TooltipArrow";
5981
- const yc = v(
6018
+ ys.displayName = "TooltipArrow";
6019
+ const yc = h(
5982
6020
  [
5983
6021
  "data-[state=delayed-open]:animate-in",
5984
6022
  "data-[state=delayed-open]:fade-in-0",
@@ -6014,8 +6052,8 @@ const yc = v(
6014
6052
  side: "top"
6015
6053
  }
6016
6054
  }
6017
- ), ys = u((n) => {
6018
- const a = M(), {
6055
+ ), zs = u((n) => {
6056
+ const a = V(), {
6019
6057
  ref: t,
6020
6058
  children: e,
6021
6059
  className: s,
@@ -6038,222 +6076,222 @@ const yc = v(
6038
6076
  }
6039
6077
  ) });
6040
6078
  });
6041
- ys.displayName = "TooltipContent";
6079
+ zs.displayName = "TooltipContent";
6042
6080
  const gi = {
6043
- Arrow: Cs,
6044
- Content: ys,
6081
+ Arrow: ys,
6082
+ Content: zs,
6045
6083
  Root: de.Root,
6046
6084
  Trigger: de.Trigger,
6047
6085
  Provider: de.Provider
6048
6086
  };
6049
6087
  export {
6050
6088
  _c as AlertDialog,
6051
- et as AlertDialogContent,
6052
- uo as AlertDialogProvider,
6089
+ tt as AlertDialogContent,
6090
+ mo as AlertDialogProvider,
6053
6091
  Fc as Avatar,
6054
- ea as AvatarFallback,
6055
- ta as AvatarImage,
6056
- aa as AvatarRoot,
6057
- xo as Badge,
6058
- We as Button,
6059
- lo as ButtonGroup,
6060
- ho as Card,
6092
+ ta as AvatarFallback,
6093
+ aa as AvatarImage,
6094
+ na as AvatarRoot,
6095
+ fo as Badge,
6096
+ Ke as Button,
6097
+ uo as ButtonGroup,
6098
+ vo as Card,
6061
6099
  Hc as Checkbox,
6062
- jc as CheckboxGroup,
6063
- oa as CheckboxGroupItem,
6064
- ra as CheckboxGroupItemIndicator,
6065
- ca as CheckboxGroupRoot,
6066
- ia as CheckboxGroupSelectAllItem,
6067
- na as CheckboxIndicator,
6068
- sa as CheckboxRoot,
6069
- Uc as CommandMenu,
6070
- la as CommandMenuCheckboxIndicator,
6071
- ma as CommandMenuCheckboxItem,
6072
- ga as CommandMenuContent,
6073
- pa as CommandMenuEmpty,
6074
- Ge as CommandMenuGroup,
6075
- xa as CommandMenuInput,
6100
+ $c as CheckboxGroup,
6101
+ ra as CheckboxGroupItem,
6102
+ ca as CheckboxGroupItemIndicator,
6103
+ ia as CheckboxGroupRoot,
6104
+ la as CheckboxGroupSelectAllItem,
6105
+ sa as CheckboxIndicator,
6106
+ oa as CheckboxRoot,
6107
+ jc as CommandMenu,
6108
+ da as CommandMenuCheckboxIndicator,
6109
+ ga as CommandMenuCheckboxItem,
6110
+ pa as CommandMenuContent,
6111
+ xa as CommandMenuEmpty,
6112
+ Ee as CommandMenuGroup,
6113
+ fa as CommandMenuInput,
6076
6114
  ce as CommandMenuItem,
6077
- fa as CommandMenuList,
6078
- Ro as CommandMenuMultiSelectGroup,
6079
- To as CommandMenuMultiSelectItem,
6080
- ha as CommandMenuOverlay,
6081
- va as CommandMenuPage,
6082
- Ca as CommandMenuPageTriggerItem,
6083
- ba as CommandMenuPages,
6084
- Po as CommandMenuRadioGroup,
6085
- Mo as CommandMenuRadioItem,
6086
- ya as CommandMenuRoot,
6087
- Oo as CommandMenuSelectAllItem,
6088
- za as CommandMenuSelectedIndicator,
6089
- Na as CommandMenuSeparator,
6090
- wa as CommandMenuTrigger,
6115
+ ha as CommandMenuList,
6116
+ To as CommandMenuMultiSelectGroup,
6117
+ Po as CommandMenuMultiSelectItem,
6118
+ va as CommandMenuOverlay,
6119
+ ba as CommandMenuPage,
6120
+ ya as CommandMenuPageTriggerItem,
6121
+ Ca as CommandMenuPages,
6122
+ Mo as CommandMenuRadioGroup,
6123
+ Oo as CommandMenuRadioItem,
6124
+ za as CommandMenuRoot,
6125
+ Vo as CommandMenuSelectAllItem,
6126
+ Na as CommandMenuSelectedIndicator,
6127
+ wa as CommandMenuSeparator,
6128
+ Ia as CommandMenuTrigger,
6091
6129
  $o as DayPicker,
6092
- qc as Dialog,
6093
- Sa as DialogContent,
6094
- ka as DialogOverlay,
6095
- Ra as DialogRoot,
6096
- Wo as Heading,
6130
+ Uc as Dialog,
6131
+ ka as DialogContent,
6132
+ Ra as DialogOverlay,
6133
+ Ta as DialogRoot,
6134
+ Ko as Heading,
6097
6135
  Wc as HoverCard,
6098
- Ta as HoverCardArrow,
6099
- Pa as HoverCardContent,
6100
- Xo as HoverUtility,
6101
- tt as IconButton,
6136
+ Pa as HoverCardArrow,
6137
+ Ma as HoverCardContent,
6138
+ at as IconButton,
6102
6139
  vc as IconToggleButton,
6103
6140
  Kc as Input,
6104
- Ma as InputField,
6105
- Oa as InputRoot,
6106
- Va as InputSlot,
6141
+ Oa as InputField,
6142
+ Va as InputRoot,
6143
+ La as InputSlot,
6107
6144
  Qc as Layout,
6108
- La as LayoutContainer,
6109
- Aa as LayoutRoot,
6110
- Ea as LayoutSlideOutClose,
6111
- _a as LayoutSlideOutContent,
6112
- Fa as LayoutSlideOutHandle,
6113
- Ha as LayoutSlideOutOverlay,
6114
- Ba as LayoutSlideOutRoot,
6145
+ Aa as LayoutContainer,
6146
+ Da as LayoutRoot,
6147
+ _a as LayoutSlideOutClose,
6148
+ Fa as LayoutSlideOutContent,
6149
+ Ha as LayoutSlideOutHandle,
6150
+ Ba as LayoutSlideOutOverlay,
6151
+ qa as LayoutSlideOutRoot,
6115
6152
  $a as LayoutSlideOutTrigger,
6116
6153
  rr as Link,
6117
- q as LuIcon,
6154
+ U as LuIcon,
6118
6155
  Jc as Menu,
6119
- qa as MenuCheckboxItem,
6120
- Wa as MenuCheckboxItemIndicator,
6121
- Ka as MenuClickTrigger,
6122
- Xa as MenuContent,
6123
- Ya as MenuContextTrigger,
6124
- Fe as MenuGroup,
6125
- Qa as MenuInputField,
6126
- Ja as MenuInputRoot,
6127
- Za as MenuInputSlot,
6156
+ Wa as MenuCheckboxItem,
6157
+ Ka as MenuCheckboxItemIndicator,
6158
+ Xa as MenuClickTrigger,
6159
+ Ya as MenuContent,
6160
+ Qa as MenuContextTrigger,
6161
+ He as MenuGroup,
6162
+ Ja as MenuInputField,
6163
+ Za as MenuInputRoot,
6164
+ en as MenuInputSlot,
6128
6165
  se as MenuItem,
6129
- en as MenuLabel,
6166
+ tn as MenuLabel,
6130
6167
  gr as MenuMultiSelectGroup,
6131
6168
  pr as MenuMultiSelectItem,
6132
- tn as MenuPageContent,
6133
- nn as MenuPageTrigger,
6134
- an as MenuPages,
6135
- on as MenuRoot,
6136
- rn as MenuScroll,
6169
+ an as MenuPageContent,
6170
+ sn as MenuPageTrigger,
6171
+ nn as MenuPages,
6172
+ rn as MenuRoot,
6173
+ cn as MenuScroll,
6137
6174
  fr as MenuSelectAllItem,
6138
6175
  hr as MenuSelectGroup,
6139
6176
  vr as MenuSelectItem,
6140
- cn as MenuSelectedIndicator,
6141
- ln as MenuSeparator,
6142
- dn as MenuSub,
6143
- un as MenuSubContent,
6144
- mn as MenuSubTrigger,
6177
+ ln as MenuSelectedIndicator,
6178
+ dn as MenuSeparator,
6179
+ un as MenuSub,
6180
+ mn as MenuSubContent,
6181
+ gn as MenuSubTrigger,
6145
6182
  Zc as MenuV2,
6146
- xn as MenuV2CheckboxItem,
6147
- fn as MenuV2CheckedIndicator,
6148
- Be as MenuV2Group,
6149
- hn as MenuV2GroupLabel,
6183
+ fn as MenuV2CheckboxItem,
6184
+ hn as MenuV2CheckedIndicator,
6185
+ qe as MenuV2Group,
6186
+ vn as MenuV2GroupLabel,
6150
6187
  le as MenuV2Item,
6151
6188
  kr as MenuV2MultiSelectGroup,
6152
6189
  Rr as MenuV2MultiSelectItem,
6153
- vn as MenuV2Page,
6154
- Cn as MenuV2PageTriggerItem,
6155
- bn as MenuV2Pages,
6156
- yn as MenuV2Root,
6190
+ bn as MenuV2Page,
6191
+ yn as MenuV2PageTriggerItem,
6192
+ Cn as MenuV2Pages,
6193
+ zn as MenuV2Root,
6157
6194
  Sr as MenuV2SelectAllItem,
6158
6195
  Tr as MenuV2SelectGroup,
6159
6196
  Pr as MenuV2SelectItem,
6160
- zn as MenuV2SelectedIndicator,
6161
- Nn as MenuV2Separator,
6162
- gn as MenuVirtualTrigger,
6197
+ Nn as MenuV2SelectedIndicator,
6198
+ wn as MenuV2Separator,
6199
+ pn as MenuVirtualTrigger,
6163
6200
  ei as OneTimePasswordField,
6164
- wn as OneTimePasswordFieldHiddenInput,
6165
- Sn as OneTimePasswordFieldInput,
6166
- kn as OneTimePasswordFieldRoot,
6201
+ In as OneTimePasswordFieldHiddenInput,
6202
+ kn as OneTimePasswordFieldInput,
6203
+ Rn as OneTimePasswordFieldRoot,
6167
6204
  ti as Overlay,
6168
- Rn as OverlayClose,
6169
- Tn as OverlayContent,
6170
- Pn as OverlayDescription,
6171
- Mn as OverlayRoot,
6172
- On as OverlayTitle,
6173
- Vn as OverlayTrigger,
6205
+ Tn as OverlayClose,
6206
+ Pn as OverlayContent,
6207
+ Mn as OverlayDescription,
6208
+ On as OverlayRoot,
6209
+ Vn as OverlayTitle,
6210
+ Ln as OverlayTrigger,
6174
6211
  Vr as OvermapErrorBoundary,
6175
6212
  ai as Popover,
6176
- An as PopoverArrow,
6177
- Dn as PopoverContent,
6213
+ Dn as PopoverArrow,
6214
+ Gn as PopoverContent,
6178
6215
  Gr as Progress,
6179
- io as Provider,
6216
+ lo as Provider,
6180
6217
  ni as RadioCards,
6181
- En as RadioCardsItem,
6182
- _n as RadioCardsRoot,
6218
+ _n as RadioCardsItem,
6219
+ Fn as RadioCardsRoot,
6183
6220
  si as RadioGroup,
6184
- Fn as RadioGroupIndicator,
6185
- Bn as RadioGroupItem,
6221
+ Hn as RadioGroupIndicator,
6222
+ qn as RadioGroupItem,
6186
6223
  $n as RadioGroupRoot,
6187
6224
  oi as Rating,
6188
6225
  Un as RatingItem,
6189
- qn as RatingItemIndicator,
6190
- Wn as RatingRoot,
6226
+ Wn as RatingItemIndicator,
6227
+ Kn as RatingRoot,
6191
6228
  ri as SegmentedControl,
6192
- Xn as SegmentedControlItem,
6193
- Yn as SegmentedControlRoot,
6229
+ Yn as SegmentedControlItem,
6230
+ Qn as SegmentedControlRoot,
6194
6231
  ci as SegmentedTabs,
6195
- Jn as SegmentedTabsList,
6196
- Zn as SegmentedTabsRoot,
6197
- es as SegmentedTabsTrigger,
6232
+ Zn as SegmentedTabsList,
6233
+ es as SegmentedTabsRoot,
6234
+ ts as SegmentedTabsTrigger,
6198
6235
  Wr as Separator,
6199
6236
  Yc as SlideOut,
6200
- ut as SlideOutClose,
6201
- mt as SlideOutContent,
6202
- gt as SlideOutHandle,
6203
- pt as SlideOutOverlay,
6204
- xt as SlideOutRoot,
6205
- Ga as SlideOutTrigger,
6206
- ft as SlideOutViewport,
6237
+ mt as SlideOutClose,
6238
+ gt as SlideOutContent,
6239
+ pt as SlideOutHandle,
6240
+ xt as SlideOutOverlay,
6241
+ ft as SlideOutRoot,
6242
+ Ea as SlideOutTrigger,
6243
+ ht as SlideOutViewport,
6207
6244
  Jr as Slider,
6208
6245
  ec as Spinner,
6209
6246
  ii as Switch,
6210
- as as SwitchRoot,
6211
- ns as SwitchThumb,
6247
+ ns as SwitchRoot,
6248
+ ss as SwitchThumb,
6212
6249
  li as Table,
6213
- ss as TableBody,
6214
- os as TableCell,
6215
- rs as TableColumnHeaderCell,
6216
- cs as TableFooter,
6217
- is as TableHeader,
6218
- ls as TableRoot,
6219
- ds as TableRow,
6220
- us as TableRowHeaderCell,
6250
+ os as TableBody,
6251
+ rs as TableCell,
6252
+ cs as TableColumnHeaderCell,
6253
+ is as TableFooter,
6254
+ ls as TableHeader,
6255
+ ds as TableRoot,
6256
+ us as TableRow,
6257
+ ms as TableRowHeaderCell,
6221
6258
  di as Tabs,
6222
- gs as TabsList,
6223
- ps as TabsRoot,
6224
- xs as TabsTrigger,
6225
- Xe as Text,
6259
+ ps as TabsList,
6260
+ xs as TabsRoot,
6261
+ fs as TabsTrigger,
6262
+ Ye as Text,
6226
6263
  lc as TextArea,
6227
6264
  fc as Toaster,
6228
6265
  bc as ToggleButton,
6229
6266
  mi as ToggleGroup,
6230
- hs as ToggleGroupIconItem,
6231
- vs as ToggleGroupItem,
6232
- bs as ToggleGroupRoot,
6267
+ vs as ToggleGroupIconItem,
6268
+ bs as ToggleGroupItem,
6269
+ Cs as ToggleGroupRoot,
6233
6270
  gi as Tooltip,
6234
- Cs as TooltipArrow,
6235
- ys as TooltipContent,
6236
- po as badge,
6237
- Jt as buttonCva,
6271
+ ys as TooltipArrow,
6272
+ zs as TooltipContent,
6273
+ xo as badge,
6274
+ Zt as buttonCva,
6238
6275
  Ve as floating,
6239
6276
  F as genericMemo,
6240
- Le as getActiveState,
6277
+ Ae as getActiveState,
6241
6278
  Q as getBooleanState,
6242
6279
  Ie as getCheckedState,
6243
6280
  pe as getOpenState,
6244
6281
  oe as getSelectedState,
6245
6282
  we as mergeRefs,
6246
6283
  k as radiusCva,
6247
- bo as stopPropagation,
6284
+ Le as shadowCva,
6285
+ Co as stopPropagation,
6248
6286
  ui as toast,
6249
6287
  Ec as useAlertDialog,
6250
- Qt as useButtonGroup,
6288
+ Jt as useButtonGroup,
6251
6289
  X as useControlledState,
6252
- vo as useFallbackId,
6253
- nt as useLatest,
6290
+ bo as useFallbackId,
6291
+ st as useLatest,
6254
6292
  ke as useLayoutContext,
6255
6293
  Xc as useLayoutContextSelector,
6256
- M as useProvider,
6257
- $c as useTextFilter,
6294
+ V as useProvider,
6295
+ qc as useTextFilter,
6258
6296
  Bc as useViewportSize
6259
6297
  };