@overmap-ai/blocks 1.0.2 → 1.0.5-fix-problems-magnus.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/blocks.js CHANGED
@@ -1,10 +1,10 @@
1
1
  export * from "@radix-ui/colors";
2
2
  import { Cross1Icon as nn, CheckIcon as St, DragHandleDots2Icon as Je, Cross2Icon as $t, DividerHorizontalIcon as on, CaretSortIcon as rn, ArrowUpIcon as sn, ArrowDownIcon as an, MagnifyingGlassIcon as cn, MixerHorizontalIcon as ln, Pencil1Icon as dn, TrashIcon as un, DoubleArrowLeftIcon as hn, ChevronLeftIcon as pn, ChevronRightIcon as fn, DoubleArrowRightIcon as mn } from "@radix-ui/react-icons";
3
3
  export * from "@radix-ui/react-icons";
4
- import { useThemeContext as gn, Badge as Cn, Flex as D, Box as G, Link as vn, Text as Re, Button as _n, IconButton as Pt, Card as bn, Inset as He, Dialog as xe, AlertDialog as fe, Separator as ft, DropdownMenu as ee, TextField as ie, Select as se, Checkbox as wn, Switch as yn, Portal as xn, Popover as je, TextArea as Sn, Callout as Fe, Tooltip as $n, Theme as Pn, TableRow as kn } from "@radix-ui/themes";
4
+ import { useThemeContext as gn, Badge as Cn, Flex as D, Box as F, Link as vn, Text as Re, Button as _n, IconButton as Pt, Card as bn, Inset as He, Dialog as xe, AlertDialog as fe, Separator as ft, DropdownMenu as Z, TextField as ie, Select as se, Checkbox as wn, Switch as yn, Portal as xn, Popover as je, TextArea as Sn, Callout as Fe, Tooltip as $n, Theme as Pn, TableRow as kn } from "@radix-ui/themes";
5
5
  import { AccessibleIcon as Ks, AspectRatio as qs, Avatar as Xs, Blockquote as Js, Box as Qs, Callout as Ys, Card as Zs, Code as ea, Container as ta, ContextMenu as na, Em as oa, Grid as ra, Heading as ia, HoverCard as sa, Inset as aa, Kbd as ca, Link as la, Portal as da, Quote as ua, RadioGroup as ha, ScrollArea as pa, Section as fa, Slider as ma, Slot as ga, Strong as Ca, Tabs as va, TextField as _a, Theme as ba, VisuallyHidden as wa, updateThemeAppearanceClass as ya, useThemeContext as xa } from "@radix-ui/themes";
6
- import { jsx as i, jsxs as v, Fragment as J } from "react/jsx-runtime";
7
- import W, { useMemo as R, useState as k, useLayoutEffect as ct, useCallback as x, useEffect as M, Children as me, isValidElement as Oe, forwardRef as S, memo as $, createContext as Se, useContext as ze, cloneElement as Ae, createElement as F, useRef as H, useReducer as Nn, Fragment as Tn } from "react";
6
+ import { jsx as i, jsxs as v, Fragment as ee } from "react/jsx-runtime";
7
+ import W, { useMemo as R, useState as k, useLayoutEffect as ct, useCallback as x, useEffect as M, Children as me, isValidElement as Oe, forwardRef as S, memo as $, createContext as Se, useContext as ze, cloneElement as Ae, createElement as V, useRef as H, useReducer as Nn, Fragment as Tn } from "react";
8
8
  import { useMediaQuery as Te } from "react-responsive";
9
9
  import * as Ve from "@radix-ui/react-dialog";
10
10
  import { Resizable as Qe } from "re-resizable";
@@ -90,16 +90,16 @@ const eo = {
90
90
  }, Nt = (e, o, n) => {
91
91
  const [t, s] = k([]), [r, c] = k(!0), a = x(
92
92
  (h) => {
93
- const { repeat: u, key: g } = h;
94
- c(!0), !(u || t.includes(g)) && s((f) => [...f, g]);
93
+ const { repeat: u, key: C } = h;
94
+ c(!0), !(u || t.includes(C)) && s((f) => [...f, C]);
95
95
  },
96
96
  [t]
97
97
  ), d = x(
98
98
  (h) => {
99
99
  const { key: u } = h;
100
- c(!1), t.includes(u) && s((g) => {
101
- const f = [...g];
102
- return f.splice(g.indexOf(u), 1), f;
100
+ c(!1), t.includes(u) && s((C) => {
101
+ const f = [...C];
102
+ return f.splice(C.indexOf(u), 1), f;
103
103
  });
104
104
  },
105
105
  [t]
@@ -153,7 +153,7 @@ const eo = {
153
153
  ), Tt = Se({}), so = () => ze(Tt), ao = $(
154
154
  S(({ className: e, children: o, ...n }, t) => {
155
155
  const { size: s, severity: r } = so(), c = E(r);
156
- return /* @__PURE__ */ i(G, { className: y("overmap-breadcrumb-item", e), height: "max-content", width: "max-content", children: /* @__PURE__ */ i(vn, { ref: t, size: s, color: c, ...n, children: /* @__PURE__ */ i(X, { height: "100%", width: "100%", align: "center", gap: "1", children: o }) }) });
156
+ return /* @__PURE__ */ i(F, { className: y("overmap-breadcrumb-item", e), height: "max-content", width: "max-content", children: /* @__PURE__ */ i(vn, { ref: t, size: s, color: c, ...n, children: /* @__PURE__ */ i(X, { height: "100%", width: "100%", align: "center", gap: "1", children: o }) }) });
157
157
  })
158
158
  ), co = $(
159
159
  S(
@@ -169,7 +169,7 @@ const eo = {
169
169
  height: "max-content",
170
170
  width: "max-content",
171
171
  ...c,
172
- children: l.map((h, u) => /* @__PURE__ */ v(J, { children: [
172
+ children: l.map((h, u) => /* @__PURE__ */ v(ee, { children: [
173
173
  Ae(h, { key: u }),
174
174
  l.length - 1 !== u && /* @__PURE__ */ i(Re, { color: d, children: /* @__PURE__ */ i(X, { height: "100%", width: "100%", align: "center", children: n }) })
175
175
  ] }))
@@ -219,9 +219,9 @@ const vo = S(function(o, n) {
219
219
  },
220
220
  disabled: !1
221
221
  },
222
- loading: g,
222
+ loading: C,
223
223
  children: f,
224
- disabled: C,
224
+ disabled: g,
225
225
  ...b
226
226
  } = o, m = E(d), P = l.map((w) => Dt[w]);
227
227
  return Nt(u.keys, u.disabled || u.keys.length === 0, u.action), /* @__PURE__ */ i(
@@ -235,9 +235,9 @@ const vo = S(function(o, n) {
235
235
  color: m,
236
236
  size: ce(a, Pe),
237
237
  variant: h,
238
- disabled: g || C,
238
+ disabled: C || g,
239
239
  ...b,
240
- children: g ? /* @__PURE__ */ i(Ot, {}) : f
240
+ children: C ? /* @__PURE__ */ i(Ot, {}) : f
241
241
  }
242
242
  );
243
243
  }), $e = W.memo(vo), _o = S(function(o, n) {
@@ -250,22 +250,22 @@ const vo = S(function(o, n) {
250
250
  severity: l = t.severity ?? "primary",
251
251
  hoverEffects: h = t.hoverEffects ?? [],
252
252
  variant: u = t.variant,
253
- shortcut: g = {
253
+ shortcut: C = {
254
254
  keys: [],
255
255
  action: () => {
256
256
  },
257
257
  disabled: !1
258
258
  },
259
259
  ...f
260
- } = o, C = E(l), b = (h == null ? void 0 : h.map((m) => Dt[m])) || [];
261
- return Nt(g.keys, g.disabled || g.keys.length === 0, g.action), /* @__PURE__ */ i(
260
+ } = o, g = E(l), b = (h == null ? void 0 : h.map((m) => Dt[m])) || [];
261
+ return Nt(C.keys, C.disabled || C.keys.length === 0, C.action), /* @__PURE__ */ i(
262
262
  Pt,
263
263
  {
264
264
  className: y(s, b, {
265
265
  [Ie.fluid]: a
266
266
  }),
267
267
  ref: n,
268
- color: C,
268
+ color: g,
269
269
  size: ce(d, Pe),
270
270
  variant: u,
271
271
  type: c,
@@ -290,16 +290,16 @@ const vo = S(function(o, n) {
290
290
  hoverEffects: l,
291
291
  fluid: h,
292
292
  ...u
293
- }, g) {
294
- const f = ce(a, yo[r]), C = d === "ghost" ? f : "0";
293
+ }, C) {
294
+ const f = ce(a, yo[r]), g = d === "ghost" ? f : "0";
295
295
  return /* @__PURE__ */ i(
296
296
  D,
297
297
  {
298
298
  className: y("overmap-button-group", o, {
299
299
  [wo.merged]: n
300
300
  }),
301
- ref: g,
302
- gap: n ? s ?? C : s ?? "2",
301
+ ref: C,
302
+ gap: n ? s ?? g : s ?? "2",
303
303
  direction: r,
304
304
  "data-direction": r,
305
305
  ...u,
@@ -315,7 +315,7 @@ const vo = S(function(o, n) {
315
315
  s && r ? /* @__PURE__ */ i(He, { side: "x", pt: "current", pb: "current", children: n }) : s ? /* @__PURE__ */ i(He, { side: "bottom", pt: "current", children: n }) : r ? /* @__PURE__ */ i(He, { side: "top", pb: "current", children: n }) : /* @__PURE__ */ i(He, { children: n }),
316
316
  r
317
317
  ] });
318
- return a === "ghost" ? /* @__PURE__ */ i(G, { p: "3", children: h }) : h;
318
+ return a === "ghost" ? /* @__PURE__ */ i(F, { p: "3", children: h }) : h;
319
319
  })
320
320
  ), ko = $(
321
321
  S((e, o) => {
@@ -338,7 +338,7 @@ const vo = S(function(o, n) {
338
338
  ), No = $(
339
339
  S((e, o) => {
340
340
  const { variant: n } = lt(), t = /* @__PURE__ */ i($e, { ref: o, ...e, radius: "large", variant: n });
341
- return n === "ghost" ? /* @__PURE__ */ i(G, { asChild: !0, my: "1", mx: "2", children: t }) : t;
341
+ return n === "ghost" ? /* @__PURE__ */ i(F, { asChild: !0, my: "1", mx: "2", children: t }) : t;
342
342
  })
343
343
  ), ys = {
344
344
  Root: ko,
@@ -368,8 +368,8 @@ const vo = S(function(o, n) {
368
368
  onCloseInterrupt: l,
369
369
  open: h,
370
370
  onOpenChange: u,
371
- ...g
372
- } = e, [f, C] = k(d ?? !1), b = h ?? f;
371
+ ...C
372
+ } = e, [f, g] = k(d ?? !1), b = h ?? f;
373
373
  if ((l || c) && u)
374
374
  throw new Error("Neither the `onCloseInterrupt` nor `onOpen` props can be used with `onOpenChange`.");
375
375
  if (h !== void 0 && u === void 0)
@@ -387,24 +387,24 @@ const vo = S(function(o, n) {
387
387
  else {
388
388
  if (!w && l)
389
389
  return l(() => {
390
- C(!1), a && a();
390
+ g(!1), a && a();
391
391
  });
392
392
  !w && a && a();
393
393
  }
394
- C(w);
394
+ g(w);
395
395
  },
396
396
  [u, c, a, l]
397
397
  ), P = x(
398
398
  (w) => {
399
399
  if (w != null && w.force)
400
- return C(!1);
400
+ return g(!1);
401
401
  m(!1);
402
402
  },
403
403
  [m]
404
404
  );
405
405
  return /* @__PURE__ */ v(xe.Root, { open: b, onOpenChange: m, children: [
406
406
  /* @__PURE__ */ i(xe.Trigger, { children: n }),
407
- /* @__PURE__ */ i(xe.Content, { ref: o, ...g, children: /* @__PURE__ */ i(
407
+ /* @__PURE__ */ i(xe.Content, { ref: o, ...C, children: /* @__PURE__ */ i(
408
408
  To,
409
409
  {
410
410
  closeDialog: P,
@@ -487,7 +487,7 @@ const vo = S(function(o, n) {
487
487
  gap: t,
488
488
  children: [
489
489
  /* @__PURE__ */ i(ft, { size: c, orientation: r, color: h, ...a }),
490
- s && /* @__PURE__ */ v(J, { children: [
490
+ s && /* @__PURE__ */ v(ee, { children: [
491
491
  /* @__PURE__ */ i(Re, { as: "span", size: "1", weight: n, color: h, children: s }),
492
492
  /* @__PURE__ */ i(ft, { size: c, orientation: r, color: h, ...a })
493
493
  ] })
@@ -506,7 +506,7 @@ const vo = S(function(o, n) {
506
506
  },
507
507
  [t, n]
508
508
  );
509
- return /* @__PURE__ */ i(ee.Item, { className: qe.DropdownMenuItem, textValue: "", onSelect: r, ...s, children: /* @__PURE__ */ i(D, { align: "center", gap: "1", children: o }) });
509
+ return /* @__PURE__ */ i(Z.Item, { className: qe.DropdownMenuItem, textValue: "", onSelect: r, ...s, children: /* @__PURE__ */ i(D, { align: "center", gap: "1", children: o }) });
510
510
  }), Ps = $(
511
511
  S(
512
512
  ({
@@ -519,16 +519,17 @@ const vo = S(function(o, n) {
519
519
  modal: c = !1,
520
520
  closeOnSelect: a = !0,
521
521
  ...d
522
- }) => {
523
- const l = E(r);
524
- return /* @__PURE__ */ v(ee.Root, { modal: c, children: [
525
- /* @__PURE__ */ i(ee.Trigger, { disabled: s, children: o }),
522
+ }, l) => {
523
+ const h = E(r);
524
+ return /* @__PURE__ */ v(Z.Root, { modal: c, children: [
525
+ /* @__PURE__ */ i(Z.Trigger, { disabled: s, children: o }),
526
526
  /* @__PURE__ */ i(
527
- ee.Content,
527
+ Z.Content,
528
528
  {
529
529
  className: y("overmap-dropdown", e),
530
- color: l,
530
+ color: h,
531
531
  variant: "soft",
532
+ ref: l,
532
533
  ...d,
533
534
  children: /* @__PURE__ */ v(
534
535
  D,
@@ -538,18 +539,18 @@ const vo = S(function(o, n) {
538
539
  height: "max-content",
539
540
  width: "max-content",
540
541
  children: [
541
- !!t && /* @__PURE__ */ i(ee.Label, { children: t }),
542
- n.map(({ closeOnSelect: h, separator: u, ...g }, f) => /* @__PURE__ */ v(J, { children: [
543
- /* @__PURE__ */ i(G, { className: qe.DropdownMenuItemWrapper, children: /* @__PURE__ */ i(
542
+ !!t && /* @__PURE__ */ i(Z.Label, { children: t }),
543
+ n.map(({ closeOnSelect: u, separator: C, ...f }, g) => /* @__PURE__ */ v(F, { children: [
544
+ /* @__PURE__ */ i(F, { className: qe.DropdownMenuItemWrapper, children: /* @__PURE__ */ i(
544
545
  Ho,
545
546
  {
546
- closeOnSelect: h ?? a,
547
- ...g
547
+ closeOnSelect: u ?? a,
548
+ ...f
548
549
  },
549
- f
550
+ g
550
551
  ) }),
551
- !!u && /* @__PURE__ */ i(G, { className: qe.DropdownMenuSeparatorWrapper, children: /* @__PURE__ */ i(Wo, { size: "4" }) })
552
- ] }))
552
+ !!C && /* @__PURE__ */ i(F, { className: qe.DropdownMenuSeparatorWrapper, children: /* @__PURE__ */ i(Wo, { size: "4" }) })
553
+ ] }, g))
553
554
  ]
554
555
  }
555
556
  )
@@ -579,12 +580,12 @@ const vo = S(function(o, n) {
579
580
  icons: l,
580
581
  severity: h = "info"
581
582
  }, u) => {
582
- const g = E(h), f = x(
583
+ const C = E(h), f = x(
583
584
  (m) => (P) => {
584
585
  s(t !== m ? m : void 0), d || P.preventDefault();
585
586
  },
586
587
  [t, d, s]
587
- ), C = x(
588
+ ), g = x(
588
589
  (m) => {
589
590
  a && a(m.target.value);
590
591
  },
@@ -597,10 +598,10 @@ const vo = S(function(o, n) {
597
598
  },
598
599
  [a]
599
600
  );
600
- return /* @__PURE__ */ v(ee.Root, { onOpenChange: b, children: [
601
- /* @__PURE__ */ i(ee.Trigger, { disabled: n, children: e }),
602
- /* @__PURE__ */ i(ee.Content, { ref: u, variant: "soft", color: g, className: be.Test, children: /* @__PURE__ */ v(X, { className: be.DropdownSelect, direction: "column", children: [
603
- c !== void 0 && !!a && /* @__PURE__ */ i(G, { px: "1", className: y({ [be.BorderBottom]: o.length !== 0 }), children: /* @__PURE__ */ v(
601
+ return /* @__PURE__ */ v(Z.Root, { onOpenChange: b, children: [
602
+ /* @__PURE__ */ i(Z.Trigger, { disabled: n, children: e }),
603
+ /* @__PURE__ */ i(Z.Content, { ref: u, variant: "soft", color: C, className: be.Test, children: /* @__PURE__ */ v(X, { className: be.DropdownSelect, direction: "column", children: [
604
+ c !== void 0 && !!a && /* @__PURE__ */ i(F, { px: "1", className: y({ [be.BorderBottom]: o.length !== 0 }), children: /* @__PURE__ */ v(
604
605
  ie.Root,
605
606
  {
606
607
  className: be.DropdownSelectInputWrapper,
@@ -614,22 +615,22 @@ const vo = S(function(o, n) {
614
615
  className: be.DropdownSelectInput,
615
616
  value: c,
616
617
  placeholder: r,
617
- onChange: C
618
+ onChange: g
618
619
  }
619
620
  ),
620
621
  !!l && !!l.rightInputIcon && /* @__PURE__ */ i(ie.Slot, { children: l.rightInputIcon })
621
622
  ]
622
623
  }
623
624
  ) }),
624
- /* @__PURE__ */ i(G, { p: o.length !== 0 ? "1" : "0", children: /* @__PURE__ */ i(X, { direction: "column", children: o.map(({ content: m, value: P }, w) => /* @__PURE__ */ i(
625
- ee.Item,
625
+ /* @__PURE__ */ i(F, { p: o.length !== 0 ? "1" : "0", children: /* @__PURE__ */ i(X, { direction: "column", children: o.map(({ content: m, value: P }, w) => /* @__PURE__ */ i(
626
+ Z.Item,
626
627
  {
627
628
  className: be.DropdownSelectItem,
628
629
  onSelect: f(P),
629
630
  textValue: "",
630
631
  asChild: !0,
631
632
  children: /* @__PURE__ */ v(X, { align: "center", height: "max-content", width: "100%", gap: "5", children: [
632
- /* @__PURE__ */ i(G, { grow: "1", children: m }),
633
+ /* @__PURE__ */ i(F, { grow: "1", children: m }),
633
634
  /* @__PURE__ */ i(
634
635
  X,
635
636
  {
@@ -673,10 +674,10 @@ const vo = S(function(o, n) {
673
674
  items: l = [],
674
675
  value: h,
675
676
  id: u,
676
- ...g
677
+ ...C
677
678
  }, f) {
678
- const C = ce(t, Pe), b = E(r), m = E(c);
679
- return /* @__PURE__ */ F(se.Root, { size: C, ...g, key: h === void 0 ? 1 : 0, value: h }, /* @__PURE__ */ i(
679
+ const g = ce(t, Pe), b = E(r), m = E(c);
680
+ return /* @__PURE__ */ V(se.Root, { size: g, ...C, key: h === void 0 ? 1 : 0, value: h }, /* @__PURE__ */ i(
680
681
  se.Trigger,
681
682
  {
682
683
  className: y(o, {
@@ -702,14 +703,14 @@ const vo = S(function(o, n) {
702
703
  }), Qo = W.memo(Jo), _t = $(
703
704
  S((e, o) => {
704
705
  const { checked: n, label: t, value: s, size: r = "2" } = e;
705
- return /* @__PURE__ */ i(G, { asChild: !0, px: r, children: /* @__PURE__ */ i(se.Item, { value: s, ref: o, children: /* @__PURE__ */ v(D, { gap: r, align: "center", children: [
706
+ return /* @__PURE__ */ i(F, { asChild: !0, px: r, children: /* @__PURE__ */ i(se.Item, { value: s, ref: o, children: /* @__PURE__ */ v(D, { gap: r, align: "center", children: [
706
707
  /* @__PURE__ */ i(wn, { checked: n }),
707
708
  t
708
709
  ] }) }) });
709
710
  })
710
711
  ), Ge = "__select_all__", Ns = $(
711
712
  S((e, o) => {
712
- const [n, t] = k(!1), { placeholder: s, value: r, onValueChange: c, options: a, disabled: d, name: l, ...h } = e, u = ce(e.size, Pe), g = E(e.severity), f = R(() => new Map(a.map((w) => [w.value, w.label])), [a]), C = r.length > 4 ? (
713
+ const [n, t] = k(!1), { placeholder: s, value: r, onValueChange: c, options: a, disabled: d, name: l, ...h } = e, u = ce(e.size, Pe), C = E(e.severity), f = R(() => new Map(a.map((w) => [w.value, w.label])), [a]), g = r.length > 4 ? (
713
714
  // to ensure the width of the select doesn't get too big
714
715
  `${r.length} options selected`
715
716
  ) : (
@@ -743,8 +744,8 @@ const vo = S(function(o, n) {
743
744
  se.Trigger,
744
745
  {
745
746
  ref: o,
746
- color: g,
747
- placeholder: r.length > 0 ? C : s,
747
+ color: C,
748
+ placeholder: r.length > 0 ? g : s,
748
749
  "data-placeholder": r.length > 0 ? void 0 : !0,
749
750
  ...h
750
751
  }
@@ -786,19 +787,19 @@ const vo = S(function(o, n) {
786
787
  ), Yo = {
787
788
  default: "_default_u936h_1"
788
789
  }, Zo = S(function({ className: o, severity: n = "primary", icon: t, defaultChecked: s = !1, onCheckedChange: r, ...c }, a) {
789
- const d = H(null), [l, h] = k(c.checked ? c.checked : s), [u, g] = k(), f = E(n);
790
+ const d = H(null), [l, h] = k(c.checked ? c.checked : s), [u, C] = k(), f = E(n);
790
791
  ct(() => {
791
792
  var P;
792
793
  const m = a || d;
793
- "current" in m && m.current && g((P = m.current) == null ? void 0 : P.querySelector("span.rt-SwitchThumb"));
794
+ "current" in m && m.current && C((P = m.current) == null ? void 0 : P.querySelector("span.rt-SwitchThumb"));
794
795
  }, [a]);
795
- const C = x(
796
+ const g = x(
796
797
  (m) => {
797
798
  h(m), r && r(m);
798
799
  },
799
800
  [r]
800
801
  ), b = c.checked ? c.checked : l;
801
- return /* @__PURE__ */ v(J, { children: [
802
+ return /* @__PURE__ */ v(ee, { children: [
802
803
  /* @__PURE__ */ i(
803
804
  yn,
804
805
  {
@@ -807,7 +808,7 @@ const vo = S(function(o, n) {
807
808
  color: f,
808
809
  radius: "full",
809
810
  defaultChecked: s,
810
- onCheckedChange: C,
811
+ onCheckedChange: g,
811
812
  ...c
812
813
  }
813
814
  ),
@@ -832,31 +833,31 @@ const vo = S(function(o, n) {
832
833
  maxWidth: l = "500px",
833
834
  ...h
834
835
  }, u) {
835
- const g = o === "right", f = o === "left", [C, b] = k();
836
+ const C = o === "right", f = o === "left", [g, b] = k();
836
837
  return M(() => {
837
838
  const m = r ?? '[data-is-root-theme="true"]', P = document.querySelector(m);
838
839
  if (P === void 0)
839
840
  throw new Error(`Could not find a container element using the following selector ${m}`);
840
841
  b(P);
841
- }, [r]), /* @__PURE__ */ i(Ve.Root, { open: s, modal: n, children: /* @__PURE__ */ v(Ve.Portal, { container: C, children: [
842
+ }, [r]), /* @__PURE__ */ i(Ve.Root, { open: s, modal: n, children: /* @__PURE__ */ v(Ve.Portal, { container: g, children: [
842
843
  c && /* @__PURE__ */ i(Ve.Overlay, { className: y(we.overlay) }),
843
844
  /* @__PURE__ */ i(
844
845
  Ve.Content,
845
846
  {
846
847
  className: y("overmap-sidebar", "rt-DialogContent", we.sidebarContent, {
847
848
  [we.left]: f,
848
- [we.right]: g
849
+ [we.right]: C
849
850
  }),
850
851
  ref: u,
851
852
  asChild: !0,
852
853
  ...h,
853
- children: /* @__PURE__ */ i(G, { width: "auto", children: /* @__PURE__ */ i(
854
+ children: /* @__PURE__ */ i(F, { width: "auto", children: /* @__PURE__ */ i(
854
855
  Qe,
855
856
  {
856
857
  minWidth: d,
857
858
  maxWidth: l,
858
859
  defaultSize: ir,
859
- enable: { right: a && f, left: a && g },
860
+ enable: { right: a && f, left: a && C },
860
861
  handleClasses: { left: we.resizeHandle, right: we.resizeHandle },
861
862
  handleComponent: {
862
863
  right: /* @__PURE__ */ i(Je, {}),
@@ -868,7 +869,7 @@ const vo = S(function(o, n) {
868
869
  }
869
870
  )
870
871
  ] }) });
871
- }), Ds = $(sr), ar = "_outerContent_1iy9c_1", cr = "_enter_1iy9c_4", lr = "_right_1iy9c_4", dr = "_left_1iy9c_8", ur = "_enterActive_1iy9c_12", hr = "_exitActive_1iy9c_22", pr = "_exitDone_1iy9c_32", fr = "_resizable_1iy9c_41", mr = "_slideOutOverlay_1iy9c_47", Z = {
872
+ }), Ds = $(sr), ar = "_outerContent_1iy9c_1", cr = "_enter_1iy9c_4", lr = "_right_1iy9c_4", dr = "_left_1iy9c_8", ur = "_enterActive_1iy9c_12", hr = "_exitActive_1iy9c_22", pr = "_exitDone_1iy9c_32", fr = "_resizable_1iy9c_41", mr = "_slideOutOverlay_1iy9c_47", Y = {
872
873
  outerContent: ar,
873
874
  enter: cr,
874
875
  right: lr,
@@ -890,9 +891,9 @@ const vo = S(function(o, n) {
890
891
  modal: l = !1,
891
892
  resizeHandle: h,
892
893
  position: u = "absolute",
893
- ...g
894
+ ...C
894
895
  }) {
895
- const f = H(null), [C, b] = k(r), m = t === "left", P = t === "right", w = x(
896
+ const f = H(null), [g, b] = k(r), m = t === "left", P = t === "right", w = x(
896
897
  (N, A, te, Ee) => {
897
898
  b(te.clientWidth), f.current && (f.current.style.width = `${te.clientWidth}px`);
898
899
  },
@@ -903,25 +904,25 @@ const vo = S(function(o, n) {
903
904
  {
904
905
  in: n,
905
906
  classNames: {
906
- enter: Z.enter,
907
- enterActive: Z.enterActive,
908
- exitActive: Z.exitActive,
909
- exitDone: Z.exitDone
907
+ enter: Y.enter,
908
+ enterActive: Y.enterActive,
909
+ exitActive: Y.exitActive,
910
+ exitDone: Y.exitDone
910
911
  },
911
912
  timeout: gr,
912
913
  nodeRef: f,
913
914
  unmountOnExit: !0,
914
915
  mountOnEnter: !0,
915
- children: /* @__PURE__ */ v(J, { children: [
916
- d && /* @__PURE__ */ i("div", { className: y("overamp-slide-out-overlay", Z.slideOutOverlay) }),
917
- /* @__PURE__ */ i(Dn, { disableOutsidePointerEvents: l, asChild: !0, ...g, children: /* @__PURE__ */ i(
916
+ children: /* @__PURE__ */ v(ee, { children: [
917
+ d && /* @__PURE__ */ i("div", { className: y("overamp-slide-out-overlay", Y.slideOutOverlay) }),
918
+ /* @__PURE__ */ i(Dn, { disableOutsidePointerEvents: l, asChild: !0, ...C, children: /* @__PURE__ */ i(
918
919
  D,
919
920
  {
920
- className: y("overmap-slide-out", o, Z.outerContent, {
921
- [Z.left]: m,
922
- [Z.right]: P
921
+ className: y("overmap-slide-out", o, Y.outerContent, {
922
+ [Y.left]: m,
923
+ [Y.right]: P
923
924
  }),
924
- style: { "--slide-out-width": `${C}px` },
925
+ style: { "--slide-out-width": `${g}px` },
925
926
  height: "100%",
926
927
  width: "auto",
927
928
  position: u,
@@ -933,8 +934,8 @@ const vo = S(function(o, n) {
933
934
  children: /* @__PURE__ */ i(
934
935
  Qe,
935
936
  {
936
- className: Z.resizable,
937
- defaultSize: { width: C, height: "100%" },
937
+ className: Y.resizable,
938
+ defaultSize: { width: g, height: "100%" },
938
939
  onResize: w,
939
940
  enable: { right: a && m, left: a && P },
940
941
  handleComponent: { left: h, right: h },
@@ -967,7 +968,7 @@ const vo = S(function(o, n) {
967
968
  severity: d = "primary",
968
969
  ...l
969
970
  }, h) {
970
- const u = ce(s, Pe), g = E(d), f = r || r === void 0 && l.maxLength !== void 0, C = c !== void 0 ? c.toString() : void 0;
971
+ const u = ce(s, Pe), C = E(d), f = r || r === void 0 && l.maxLength !== void 0, g = c !== void 0 ? c.toString() : void 0;
971
972
  return /* @__PURE__ */ v(
972
973
  ie.Root,
973
974
  {
@@ -977,7 +978,7 @@ const vo = S(function(o, n) {
977
978
  }),
978
979
  size: u,
979
980
  variant: a !== "ghost" ? a : void 0,
980
- color: g,
981
+ color: C,
981
982
  children: [
982
983
  n && /* @__PURE__ */ i(ie.Slot, { children: n }),
983
984
  /* @__PURE__ */ i(
@@ -991,12 +992,12 @@ const vo = S(function(o, n) {
991
992
  value: c,
992
993
  size: u,
993
994
  variant: a !== "ghost" ? a : void 0,
994
- color: g,
995
+ color: C,
995
996
  ...l
996
997
  }
997
998
  ),
998
999
  t && /* @__PURE__ */ i(ie.Slot, { children: t }),
999
- f && /* @__PURE__ */ i(Re, { as: "p", className: pe.charCount, size: "1", color: "gray", children: l.maxLength !== void 0 ? `${C == null ? void 0 : C.length}/${l.maxLength}` : `${C == null ? void 0 : C.length}` })
1000
+ f && /* @__PURE__ */ i(Re, { as: "p", className: pe.charCount, size: "1", color: "gray", children: l.maxLength !== void 0 ? `${g == null ? void 0 : g.length}/${l.maxLength}` : `${g == null ? void 0 : g.length}` })
1000
1001
  ]
1001
1002
  }
1002
1003
  );
@@ -1030,7 +1031,7 @@ const vo = S(function(o, n) {
1030
1031
  }
1031
1032
  )
1032
1033
  ] });
1033
- }), Nr = W.memo(kr), Tr = "_wrapper_1ssf2_1", Dr = "_panelContent_1ssf2_6", Ir = "_left_1ssf2_14", Or = "_right_1ssf2_18", Rr = "_resizable_1ssf2_23", zr = "_resizeHandle_1ssf2_28", Ar = "_panelMainContent_1ssf2_48", U = {
1034
+ }), Nr = W.memo(kr), Tr = "_wrapper_1ssf2_1", Dr = "_panelContent_1ssf2_6", Ir = "_left_1ssf2_14", Or = "_right_1ssf2_18", Rr = "_resizable_1ssf2_23", zr = "_resizeHandle_1ssf2_28", Ar = "_panelMainContent_1ssf2_48", G = {
1034
1035
  wrapper: Tr,
1035
1036
  panelContent: Dr,
1036
1037
  left: Ir,
@@ -1048,27 +1049,27 @@ const vo = S(function(o, n) {
1048
1049
  rightMinWidth: a = bt,
1049
1050
  resizeable: d
1050
1051
  }) {
1051
- const l = H(null), h = H(null), [u, g] = k(0), [f, C] = k(), b = H(null), [m, P] = k(0), [w, N] = k(), A = x(
1052
- (I, B, V) => (j, Me, ke, Ne) => {
1052
+ const l = H(null), h = H(null), [u, C] = k(0), [f, g] = k(), b = H(null), [m, P] = k(0), [w, N] = k(), A = x(
1053
+ (I, B, U) => (j, Me, ke, Ne) => {
1053
1054
  if (!l.current)
1054
1055
  return;
1055
1056
  const de = I + Ne.width;
1056
- V(l.current.clientWidth - de), B(() => de);
1057
+ U(l.current.clientWidth - de), B(() => de);
1057
1058
  },
1058
1059
  []
1059
1060
  ), te = x(
1060
- (I, B, V, j) => A(u, g, N)(I, B, V, j),
1061
+ (I, B, U, j) => A(u, C, N)(I, B, U, j),
1061
1062
  [A, u]
1062
1063
  ), Ee = x(
1063
- (I, B, V, j) => A(m, P, C)(I, B, V, j),
1064
+ (I, B, U, j) => A(m, P, g)(I, B, U, j),
1064
1065
  [A, m]
1065
1066
  ), Ce = x(
1066
- (I, B, V, j, Me, ke, Ne, de) => {
1067
+ (I, B, U, j, Me, ke, Ne, de) => {
1067
1068
  if (!l.current)
1068
1069
  return;
1069
- let Q = I;
1070
- if (Q === 0 && (Q = B, V(Q)), ke) {
1071
- const ne = l.current.clientWidth - Q;
1070
+ let J = I;
1071
+ if (J === 0 && (J = B, U(J)), ke) {
1072
+ const ne = l.current.clientWidth - J;
1072
1073
  de(ne), Me > ne && (Ne(ne), j(l.current.clientWidth - ne));
1073
1074
  }
1074
1075
  },
@@ -1081,16 +1082,16 @@ const vo = S(function(o, n) {
1081
1082
  N,
1082
1083
  u,
1083
1084
  n,
1084
- g,
1085
- C
1085
+ C,
1086
+ g
1086
1087
  ),
1087
1088
  [Ce, u, a, m, n]
1088
1089
  ), le = x(
1089
1090
  () => Ce(
1090
1091
  u,
1091
1092
  s,
1092
- g,
1093
1093
  C,
1094
+ g,
1094
1095
  m,
1095
1096
  r,
1096
1097
  P,
@@ -1103,14 +1104,14 @@ const vo = S(function(o, n) {
1103
1104
  },
1104
1105
  []
1105
1106
  ), Ze = x(
1106
- () => ve(n, C),
1107
+ () => ve(n, g),
1107
1108
  [ve, n]
1108
1109
  ), et = x(
1109
1110
  () => ve(r, N),
1110
1111
  [ve, r]
1111
1112
  ), tt = x(() => {
1112
- var I, B, V, j;
1113
- l.current && (C(l.current.clientWidth - (((I = b.current) == null ? void 0 : I.clientWidth) || 0)), N(l.current.clientWidth - (((B = h.current) == null ? void 0 : B.clientWidth) || 0)), g(((V = h.current) == null ? void 0 : V.clientWidth) || 0), P(((j = b.current) == null ? void 0 : j.clientWidth) || 0));
1113
+ var I, B, U, j;
1114
+ l.current && (g(l.current.clientWidth - (((I = b.current) == null ? void 0 : I.clientWidth) || 0)), N(l.current.clientWidth - (((B = h.current) == null ? void 0 : B.clientWidth) || 0)), C(((U = h.current) == null ? void 0 : U.clientWidth) || 0), P(((j = b.current) == null ? void 0 : j.clientWidth) || 0));
1114
1115
  }, []);
1115
1116
  M(() => {
1116
1117
  if (!l.current)
@@ -1172,7 +1173,7 @@ const vo = S(function(o, n) {
1172
1173
  return /* @__PURE__ */ v(
1173
1174
  D,
1174
1175
  {
1175
- className: U.wrapper,
1176
+ className: G.wrapper,
1176
1177
  style: { minWidth: `${s + a}px` },
1177
1178
  ref: l,
1178
1179
  width: "100%",
@@ -1191,10 +1192,10 @@ const vo = S(function(o, n) {
1191
1192
  onEntering: le,
1192
1193
  onExited: et,
1193
1194
  children: (I) => /* @__PURE__ */ i(
1194
- G,
1195
+ F,
1195
1196
  {
1196
1197
  ref: h,
1197
- className: y(U.panelContent, U.left),
1198
+ className: y(G.panelContent, G.left),
1198
1199
  style: Be[I],
1199
1200
  width: "auto",
1200
1201
  height: "100%",
@@ -1203,7 +1204,7 @@ const vo = S(function(o, n) {
1203
1204
  children: /* @__PURE__ */ i(
1204
1205
  Qe,
1205
1206
  {
1206
- className: U.resizable,
1207
+ className: G.resizable,
1207
1208
  size: {
1208
1209
  width: u,
1209
1210
  height: "100%"
@@ -1212,7 +1213,7 @@ const vo = S(function(o, n) {
1212
1213
  enable: { right: (d == null ? void 0 : d.left) !== void 0 ? d.left : !0 },
1213
1214
  minWidth: s,
1214
1215
  maxWidth: f,
1215
- handleClasses: { right: y(U.resizeHandle, U.left) },
1216
+ handleClasses: { right: y(G.resizeHandle, G.left) },
1216
1217
  handleComponent: {
1217
1218
  right: /* @__PURE__ */ i(Je, { height: "14px", width: "14px" })
1218
1219
  },
@@ -1223,7 +1224,7 @@ const vo = S(function(o, n) {
1223
1224
  )
1224
1225
  }
1225
1226
  ),
1226
- /* @__PURE__ */ i("div", { className: U.panelMainContent, children: o }),
1227
+ /* @__PURE__ */ i("div", { className: G.panelMainContent, children: o }),
1227
1228
  /* @__PURE__ */ i(
1228
1229
  mt,
1229
1230
  {
@@ -1234,10 +1235,10 @@ const vo = S(function(o, n) {
1234
1235
  onEntering: Ye,
1235
1236
  onExited: Ze,
1236
1237
  children: (I) => /* @__PURE__ */ i(
1237
- G,
1238
+ F,
1238
1239
  {
1239
1240
  ref: b,
1240
- className: y(U.panelContent, U.right),
1241
+ className: y(G.panelContent, G.right),
1241
1242
  style: K[I],
1242
1243
  width: "auto",
1243
1244
  height: "100%",
@@ -1246,13 +1247,13 @@ const vo = S(function(o, n) {
1246
1247
  children: /* @__PURE__ */ i(
1247
1248
  Qe,
1248
1249
  {
1249
- className: U.resizable,
1250
+ className: G.resizable,
1250
1251
  size: { width: m, height: "100%" },
1251
1252
  onResizeStop: Ee,
1252
1253
  enable: { left: (d == null ? void 0 : d.right) !== void 0 ? d.right : !0 },
1253
1254
  minWidth: a,
1254
1255
  maxWidth: w,
1255
- handleClasses: { left: y(U.resizeHandle, U.right) },
1256
+ handleClasses: { left: y(G.resizeHandle, G.right) },
1256
1257
  handleComponent: { left: /* @__PURE__ */ i(Je, { height: "14px", width: "14px" }) },
1257
1258
  children: c
1258
1259
  }
@@ -1273,7 +1274,7 @@ const vo = S(function(o, n) {
1273
1274
  };
1274
1275
  function Et(e, o, n, t = 0) {
1275
1276
  if (!e.options)
1276
- return e.content || /* @__PURE__ */ i(J, {});
1277
+ return e.content || /* @__PURE__ */ i(ee, {});
1277
1278
  const s = e.options.map((r, c) => /* @__PURE__ */ i(
1278
1279
  $e,
1279
1280
  {
@@ -1292,7 +1293,7 @@ function Et(e, o, n, t = 0) {
1292
1293
  },
1293
1294
  `${r.value}-page-${t}-button-${c}`
1294
1295
  ));
1295
- return /* @__PURE__ */ v(J, { children: [
1296
+ return /* @__PURE__ */ v(ee, { children: [
1296
1297
  e.title && /* @__PURE__ */ i("div", { className: Xe.pageTitle, children: e.title }),
1297
1298
  e.content,
1298
1299
  /* @__PURE__ */ i(
@@ -1335,14 +1336,14 @@ const Hr = S(function({ page: o, className: n, direction: t = "vertical", ...s }
1335
1336
  variant: a,
1336
1337
  ...d
1337
1338
  }, l) {
1338
- const h = E(r), u = E("info"), g = n || n === void 0 && (d.maxLength !== void 0 || d.minLength !== void 0), f = s !== void 0 ? s.toString() : "", C = R(() => {
1339
+ const h = E(r), u = E("info"), C = n || n === void 0 && (d.maxLength !== void 0 || d.minLength !== void 0), f = s !== void 0 ? s.toString() : "", g = R(() => {
1339
1340
  if (t) {
1340
1341
  let b = t.replace("{current}", f.length.toString());
1341
1342
  return d.minLength !== void 0 && (b = b.replace("{min}", d.minLength.toString())), d.maxLength !== void 0 && (b = b.replace("{max}", d.maxLength.toString())), b;
1342
1343
  }
1343
1344
  return f.length;
1344
1345
  }, [t, d.maxLength, d.minLength, f.length]);
1345
- return /* @__PURE__ */ v(J, { children: [
1346
+ return /* @__PURE__ */ v(ee, { children: [
1346
1347
  /* @__PURE__ */ i(
1347
1348
  Sn,
1348
1349
  {
@@ -1357,7 +1358,7 @@ const Hr = S(function({ page: o, className: n, direction: t = "vertical", ...s }
1357
1358
  ...d
1358
1359
  }
1359
1360
  ),
1360
- g && /* @__PURE__ */ i(Re, { as: "p", className: wt.charCount, color: u, align: "right", children: C })
1361
+ C && /* @__PURE__ */ i(Re, { as: "p", className: wt.charCount, color: u, align: "right", children: g })
1361
1362
  ] });
1362
1363
  }), zs = $(Ur), Gr = S(function({
1363
1364
  // ToggleGroup Primitive Props
@@ -1373,13 +1374,13 @@ const Hr = S(function({ page: o, className: n, direction: t = "vertical", ...s }
1373
1374
  className: l,
1374
1375
  direction: h = "row",
1375
1376
  ...u
1376
- }, g) {
1377
+ }, C) {
1377
1378
  return /* @__PURE__ */ i(
1378
1379
  On,
1379
1380
  {
1380
1381
  type: n,
1381
1382
  className: y("overmap-toggle-group", l),
1382
- ref: g,
1383
+ ref: C,
1383
1384
  value: s,
1384
1385
  onValueChange: r,
1385
1386
  disabled: a,
@@ -1388,12 +1389,12 @@ const Hr = S(function({ page: o, className: n, direction: t = "vertical", ...s }
1388
1389
  rovingFocus: t,
1389
1390
  defaultValue: c,
1390
1391
  asChild: !0,
1391
- children: /* @__PURE__ */ i(Rt, { direction: h, ...u, children: d.map(({ children: f, ...C }) => /* @__PURE__ */ F(Rn, { asChild: !0, ...C, key: C.value }, /* @__PURE__ */ i(
1392
+ children: /* @__PURE__ */ i(Rt, { direction: h, ...u, children: d.map(({ children: f, ...g }) => /* @__PURE__ */ V(Rn, { asChild: !0, ...g, key: g.value }, /* @__PURE__ */ i(
1392
1393
  re,
1393
1394
  {
1394
1395
  className: y("overmap-toggle-group-button"),
1395
- "aria-label": C.value,
1396
- variant: C.value === s ? "solid" : "soft",
1396
+ "aria-label": g.value,
1397
+ variant: g.value === s ? "solid" : "soft",
1397
1398
  children: f
1398
1399
  }
1399
1400
  ))) })
@@ -1439,13 +1440,13 @@ const Hr = S(function({ page: o, className: n, direction: t = "vertical", ...s }
1439
1440
  slideIn: ei,
1440
1441
  swipeOut: ti
1441
1442
  }, ni = S(function({ title: o, description: n, icon: t, severity: s = "primary", size: r, onClose: c, sensitivity: a, action: d, ...l }, h) {
1442
- const [u, g] = k(!0), f = E(s), C = x(
1443
+ const [u, C] = k(!0), f = E(s), g = x(
1443
1444
  (b) => {
1444
- !b && c && c(), g(b);
1445
+ !b && c && c(), C(b);
1445
1446
  },
1446
1447
  [c]
1447
1448
  );
1448
- return /* @__PURE__ */ i(De.Root, { asChild: !0, ref: h, ...l, open: u, type: a, onOpenChange: C, children: /* @__PURE__ */ i(Fe.Root, { className: it.ToastRoot, variant: "surface", color: f, size: r, children: /* @__PURE__ */ v(D, { width: "100%", align: "center", gap: "4", justify: "between", children: [
1449
+ return /* @__PURE__ */ i(De.Root, { asChild: !0, ref: h, ...l, open: u, type: a, onOpenChange: g, children: /* @__PURE__ */ i(Fe.Root, { className: it.ToastRoot, variant: "surface", color: f, size: r, children: /* @__PURE__ */ v(D, { width: "100%", align: "center", gap: "4", justify: "between", children: [
1449
1450
  /* @__PURE__ */ v(D, { align: "center", gap: "3", children: [
1450
1451
  /* @__PURE__ */ i(Fe.Icon, { children: t }),
1451
1452
  /* @__PURE__ */ v(D, { direction: "column", gap: "2", children: [
@@ -1478,9 +1479,9 @@ const Ms = $(function({
1478
1479
  ...s
1479
1480
  }) {
1480
1481
  const [r, c] = k([]), a = x((l, h, u) => {
1481
- c((g) => {
1482
- const f = g.find((C) => C.id === l);
1483
- return f && h === 0 && clearTimeout(f.timeout), g.filter((C) => C.id !== l);
1482
+ c((C) => {
1483
+ const f = C.find((g) => g.id === l);
1484
+ return f && h === 0 && clearTimeout(f.timeout), C.filter((g) => g.id !== l);
1484
1485
  }), u && u();
1485
1486
  }, []), d = R(() => {
1486
1487
  let l = 0;
@@ -1489,13 +1490,13 @@ const Ms = $(function({
1489
1490
  l += 1;
1490
1491
  const N = setTimeout(() => a(w, 1, m.onClose), P);
1491
1492
  c((A) => [...A, { ...m, timeout: N, duration: P, id: w }]);
1492
- }, u = (m) => h({ ...m, severity: "primary" }), g = (m) => h({ ...m, severity: "success" }), f = (m) => h({ ...m, severity: "danger" }), C = (m) => h({ ...m, severity: "info" }), b = (m) => h({ ...m, severity: "warning" });
1493
+ }, u = (m) => h({ ...m, severity: "primary" }), C = (m) => h({ ...m, severity: "success" }), f = (m) => h({ ...m, severity: "danger" }), g = (m) => h({ ...m, severity: "info" }), b = (m) => h({ ...m, severity: "warning" });
1493
1494
  return si = h, {
1494
1495
  showToast: h,
1495
1496
  showPrimary: u,
1496
- showSuccess: g,
1497
+ showSuccess: C,
1497
1498
  showError: f,
1498
- showInfo: C,
1499
+ showInfo: g,
1499
1500
  showWarning: b
1500
1501
  };
1501
1502
  }, [a]);
@@ -1573,18 +1574,18 @@ function ui(e, o = []) {
1573
1574
  c
1574
1575
  ];
1575
1576
  function l(u) {
1576
- const { scope: g, children: f, ...C } = u, b = (g == null ? void 0 : g[e][d]) || a, m = R(
1577
- () => C,
1578
- Object.values(C)
1577
+ const { scope: C, children: f, ...g } = u, b = (C == null ? void 0 : C[e][d]) || a, m = R(
1578
+ () => g,
1579
+ Object.values(g)
1579
1580
  );
1580
- return /* @__PURE__ */ F(b.Provider, {
1581
+ return /* @__PURE__ */ V(b.Provider, {
1581
1582
  value: m
1582
1583
  }, f);
1583
1584
  }
1584
- function h(u, g) {
1585
- const f = (g == null ? void 0 : g[e][d]) || a, C = ze(f);
1586
- if (C)
1587
- return C;
1585
+ function h(u, C) {
1586
+ const f = (C == null ? void 0 : C[e][d]) || a, g = ze(f);
1587
+ if (g)
1588
+ return g;
1588
1589
  if (c !== void 0)
1589
1590
  return c;
1590
1591
  throw new Error(`\`${u}\` must be used within \`${r}\``);
@@ -1778,8 +1779,8 @@ function vi(e) {
1778
1779
  ]), st(() => {
1779
1780
  const l = t.current, h = s.current;
1780
1781
  if (h !== e) {
1781
- const g = r.current, f = Ke(l);
1782
- e ? d("MOUNT") : f === "none" || (l == null ? void 0 : l.display) === "none" ? d("UNMOUNT") : d(h && g !== f ? "ANIMATION_OUT" : "UNMOUNT"), s.current = e;
1782
+ const C = r.current, f = Ke(l);
1783
+ e ? d("MOUNT") : f === "none" || (l == null ? void 0 : l.display) === "none" ? d("UNMOUNT") : d(h && C !== f ? "ANIMATION_OUT" : "UNMOUNT"), s.current = e;
1783
1784
  }
1784
1785
  }, [
1785
1786
  e,
@@ -1819,11 +1820,11 @@ const jt = /* @__PURE__ */ S((e, o) => {
1819
1820
  const { children: n, ...t } = e, s = me.toArray(n), r = s.find(bi);
1820
1821
  if (r) {
1821
1822
  const c = r.props.children, a = s.map((d) => d === r ? me.count(c) > 1 ? me.only(null) : /* @__PURE__ */ Oe(c) ? c.props.children : null : d);
1822
- return /* @__PURE__ */ F(at, ae({}, t, {
1823
+ return /* @__PURE__ */ V(at, ae({}, t, {
1823
1824
  ref: o
1824
1825
  }), /* @__PURE__ */ Oe(c) ? /* @__PURE__ */ Ae(c, void 0, a) : null);
1825
1826
  }
1826
- return /* @__PURE__ */ F(at, ae({}, t, {
1827
+ return /* @__PURE__ */ V(at, ae({}, t, {
1827
1828
  ref: o
1828
1829
  }), n);
1829
1830
  });
@@ -1836,7 +1837,7 @@ const at = /* @__PURE__ */ S((e, o) => {
1836
1837
  }) : me.count(n) > 1 ? me.only(null) : null;
1837
1838
  });
1838
1839
  at.displayName = "SlotClone";
1839
- const _i = ({ children: e }) => /* @__PURE__ */ F(Tn, null, e);
1840
+ const _i = ({ children: e }) => /* @__PURE__ */ V(Tn, null, e);
1840
1841
  function bi(e) {
1841
1842
  return /* @__PURE__ */ Oe(e) && e.type === _i;
1842
1843
  }
@@ -1883,7 +1884,7 @@ const yi = [
1883
1884
  const { asChild: r, ...c } = t, a = r ? jt : o;
1884
1885
  return M(() => {
1885
1886
  window[Symbol.for("radix-ui")] = !0;
1886
- }, []), /* @__PURE__ */ F(a, ae({}, c, {
1887
+ }, []), /* @__PURE__ */ V(a, ae({}, c, {
1887
1888
  ref: s
1888
1889
  }));
1889
1890
  });
@@ -1892,10 +1893,10 @@ const yi = [
1892
1893
  [o]: n
1893
1894
  };
1894
1895
  }, {}), Vt = "Checkbox", [xi, Hs] = ui(Vt), [Si, $i] = xi(Vt), Pi = /* @__PURE__ */ S((e, o) => {
1895
- const { __scopeCheckbox: n, name: t, checked: s, defaultChecked: r, required: c, disabled: a, value: d = "on", onCheckedChange: l, ...h } = e, [u, g] = k(null), f = Lt(
1896
+ const { __scopeCheckbox: n, name: t, checked: s, defaultChecked: r, required: c, disabled: a, value: d = "on", onCheckedChange: l, ...h } = e, [u, C] = k(null), f = Lt(
1896
1897
  o,
1897
- (N) => g(N)
1898
- ), C = H(!1), b = u ? !!u.closest("form") : !0, [m = !1, P] = pi({
1898
+ (N) => C(N)
1899
+ ), g = H(!1), b = u ? !!u.closest("form") : !0, [m = !1, P] = pi({
1899
1900
  prop: s,
1900
1901
  defaultProp: r,
1901
1902
  onChange: l
@@ -1909,11 +1910,11 @@ const yi = [
1909
1910
  }, [
1910
1911
  u,
1911
1912
  P
1912
- ]), /* @__PURE__ */ F(Si, {
1913
+ ]), /* @__PURE__ */ V(Si, {
1913
1914
  scope: n,
1914
1915
  state: m,
1915
1916
  disabled: a
1916
- }, /* @__PURE__ */ F(Ft.button, ae({
1917
+ }, /* @__PURE__ */ V(Ft.button, ae({
1917
1918
  type: "button",
1918
1919
  role: "checkbox",
1919
1920
  "aria-checked": ge(m) ? "mixed" : m,
@@ -1930,11 +1931,11 @@ const yi = [
1930
1931
  onClick: xt(e.onClick, (N) => {
1931
1932
  P(
1932
1933
  (A) => ge(A) ? !0 : !A
1933
- ), b && (C.current = N.isPropagationStopped(), C.current || N.stopPropagation());
1934
+ ), b && (g.current = N.isPropagationStopped(), g.current || N.stopPropagation());
1934
1935
  })
1935
- })), b && /* @__PURE__ */ F(Ti, {
1936
+ })), b && /* @__PURE__ */ V(Ti, {
1936
1937
  control: u,
1937
- bubbles: !C.current,
1938
+ bubbles: !g.current,
1938
1939
  name: t,
1939
1940
  value: d,
1940
1941
  checked: m,
@@ -1946,9 +1947,9 @@ const yi = [
1946
1947
  }));
1947
1948
  }), ki = "CheckboxIndicator", Ni = /* @__PURE__ */ S((e, o) => {
1948
1949
  const { __scopeCheckbox: n, forceMount: t, ...s } = e, r = $i(ki, n);
1949
- return /* @__PURE__ */ F(Ht, {
1950
+ return /* @__PURE__ */ V(Ht, {
1950
1951
  present: t || ge(r.state) || r.state === !0
1951
- }, /* @__PURE__ */ F(Ft.span, ae({
1952
+ }, /* @__PURE__ */ V(Ft.span, ae({
1952
1953
  "data-state": Ut(r.state),
1953
1954
  "data-disabled": r.disabled ? "" : void 0
1954
1955
  }, s, {
@@ -1963,16 +1964,16 @@ const yi = [
1963
1964
  return M(() => {
1964
1965
  const d = r.current, l = window.HTMLInputElement.prototype, u = Object.getOwnPropertyDescriptor(l, "checked").set;
1965
1966
  if (c !== n && u) {
1966
- const g = new Event("click", {
1967
+ const C = new Event("click", {
1967
1968
  bubbles: t
1968
1969
  });
1969
- d.indeterminate = ge(n), u.call(d, ge(n) ? !1 : n), d.dispatchEvent(g);
1970
+ d.indeterminate = ge(n), u.call(d, ge(n) ? !1 : n), d.dispatchEvent(C);
1970
1971
  }
1971
1972
  }, [
1972
1973
  c,
1973
1974
  n,
1974
1975
  t
1975
- ]), /* @__PURE__ */ F("input", ae({
1976
+ ]), /* @__PURE__ */ V("input", ae({
1976
1977
  type: "checkbox",
1977
1978
  "aria-hidden": !0,
1978
1979
  defaultChecked: ge(n) ? !1 : n
@@ -2047,25 +2048,25 @@ const Li = $(function({
2047
2048
  ), [l, h] = k(
2048
2049
  W.Children.map(r, (f) => f.props.checked)
2049
2050
  ), u = (f) => {
2050
- const C = a === "indeterminate" || !f;
2051
- a === "indeterminate" && (f = !1), h(l.map((b) => !C)), s && s(f);
2051
+ const g = a === "indeterminate" || !f;
2052
+ a === "indeterminate" && (f = !1), h(l.map((b) => !g)), s && s(f);
2052
2053
  };
2053
2054
  M(() => {
2054
- const f = l.filter((C) => C).length;
2055
+ const f = l.filter((g) => g).length;
2055
2056
  f === 0 ? d(!1) : f === r.length ? d(!0) : d("indeterminate");
2056
2057
  }, [r, l]);
2057
- const g = W.Children.map(
2058
+ const C = W.Children.map(
2058
2059
  r,
2059
- (f, C) => W.cloneElement(f, {
2060
+ (f, g) => W.cloneElement(f, {
2060
2061
  ...f.props,
2061
- checked: l[C],
2062
+ checked: l[g],
2062
2063
  onCheckedChange: (b) => {
2063
2064
  const m = [...l];
2064
- m[C] = b, h(m), f.props.onCheckedChange && f.props.onCheckedChange(b);
2065
+ m[g] = b, h(m), f.props.onCheckedChange && f.props.onCheckedChange(b);
2065
2066
  }
2066
2067
  })
2067
2068
  );
2068
- return /* @__PURE__ */ v(J, { children: [
2069
+ return /* @__PURE__ */ v(ee, { children: [
2069
2070
  /* @__PURE__ */ i(
2070
2071
  dt,
2071
2072
  {
@@ -2077,7 +2078,7 @@ const Li = $(function({
2077
2078
  ...c
2078
2079
  }
2079
2080
  ),
2080
- g
2081
+ C
2081
2082
  ] });
2082
2083
  }), Wi = "_tableContainer_go3yk_1", Hi = "_headerContainer_go3yk_14", ji = "_tableTopContainer_go3yk_18", Fi = "_searchContainer_go3yk_22", Vi = "_columnFilterSelect_go3yk_32", Ui = "_table_go3yk_1", Gi = "_tableHeaderCell_go3yk_50", Ki = "_tableRow_go3yk_56", qi = "_tableCell_go3yk_71", Xi = "_noDataTextContainer_go3yk_78", Ji = "_tableBottomContainer_go3yk_84", Qi = "_rowsPerPageContainer_go3yk_88", Yi = "_rowsPerPageText_go3yk_98", L = {
2083
2084
  tableContainer: Wi,
@@ -2104,9 +2105,9 @@ const Li = $(function({
2104
2105
  showSearchBar: l,
2105
2106
  searchBarPlaceholder: h,
2106
2107
  showSelect: u,
2107
- showFilterButton: g,
2108
+ showFilterButton: C,
2108
2109
  showContainer: f,
2109
- showRowsPerPage: C,
2110
+ showRowsPerPage: g,
2110
2111
  showPageNumber: b,
2111
2112
  showPageNavigation: m,
2112
2113
  showTopBar: P = !0,
@@ -2125,7 +2126,7 @@ const Li = $(function({
2125
2126
  const Be = R(
2126
2127
  () => t.filter((p) => p.filter).map((p) => ({ [p.id]: [] })).reduce((p, _) => Object.assign(p, _), {}),
2127
2128
  [t]
2128
- ), [K, I] = k(Be), [B, V] = k(d[0] ?? 10), j = R(
2129
+ ), [K, I] = k(Be), [B, U] = k(d[0] ?? 10), j = R(
2129
2130
  () => d.map((p) => ({
2130
2131
  value: p.toString(),
2131
2132
  itemContent: p.toString()
@@ -2150,7 +2151,7 @@ const Li = $(function({
2150
2151
  );
2151
2152
  },
2152
2153
  [K]
2153
- ), Q = R(
2154
+ ), J = R(
2154
2155
  () => t.map((p) => ({
2155
2156
  ...p,
2156
2157
  sort: p.sort ? { sortKey: p.id.toString().toUpperCase() } : !1
@@ -2180,7 +2181,7 @@ const Li = $(function({
2180
2181
  return O;
2181
2182
  }),
2182
2183
  [de, K, t, s, ne, le, ke]
2183
- ), [Y, Gt] = k(Math.ceil(Le.length / B)), nt = x(
2184
+ ), [Q, Gt] = k(Math.ceil(Le.length / B)), nt = x(
2184
2185
  (p) => p.filterValues ? p.filterValues : [...new Set(
2185
2186
  s.map(
2186
2187
  (T) => {
@@ -2194,8 +2195,8 @@ const Li = $(function({
2194
2195
  })),
2195
2196
  [s]
2196
2197
  ), Kt = R(
2197
- () => (u ? "auto " : "") + Q.reduce((p, _) => p + `${_.width || "auto"} `, ""),
2198
- [Q, u]
2198
+ () => (u ? "auto " : "") + J.reduce((p, _) => p + `${_.width || "auto"} `, ""),
2199
+ [J, u]
2199
2200
  ), qt = x((p) => {
2200
2201
  ve(p.target.value);
2201
2202
  }, []), We = { nodes: Le }, Xt = Kn(
@@ -2238,7 +2239,7 @@ const Li = $(function({
2238
2239
  },
2239
2240
  sortFns: Object.assign(
2240
2241
  {},
2241
- ...Q.map((p) => ({
2242
+ ...J.map((p) => ({
2242
2243
  [p.id.toString().toUpperCase()]: (_) => _.sort((T, O) => Ne(T[p.id], O[p.id]))
2243
2244
  }))
2244
2245
  )
@@ -2291,7 +2292,7 @@ const Li = $(function({
2291
2292
  }))
2292
2293
  }),
2293
2294
  [K, t, nt]
2294
- ), Yt = Q.map((p) => {
2295
+ ), Yt = J.map((p) => {
2295
2296
  const _ = p.sort ? Gn : Mn;
2296
2297
  return /* @__PURE__ */ i(
2297
2298
  _,
@@ -2342,7 +2343,7 @@ const Li = $(function({
2342
2343
  placeholder: h || "Filter tasks..."
2343
2344
  }
2344
2345
  ) }),
2345
- g && /* @__PURE__ */ i(
2346
+ C && /* @__PURE__ */ i(
2346
2347
  jr,
2347
2348
  {
2348
2349
  color: r,
@@ -2351,7 +2352,7 @@ const Li = $(function({
2351
2352
  children: (p) => ""
2352
2353
  }
2353
2354
  ),
2354
- g && ne && /* @__PURE__ */ v(
2355
+ C && ne && /* @__PURE__ */ v(
2355
2356
  $e,
2356
2357
  {
2357
2358
  variant: "surface",
@@ -2389,7 +2390,7 @@ const Li = $(function({
2389
2390
  select: Xt,
2390
2391
  layout: Zt,
2391
2392
  ref: n,
2392
- children: (p) => /* @__PURE__ */ v(J, { children: [
2393
+ children: (p) => /* @__PURE__ */ v(ee, { children: [
2393
2394
  /* @__PURE__ */ i(Wn, { children: /* @__PURE__ */ v(Hn, { children: [
2394
2395
  u && /* @__PURE__ */ i(Xn, { className: L.tableHeaderCell }),
2395
2396
  ...Yt
@@ -2425,7 +2426,7 @@ const Li = $(function({
2425
2426
  }
2426
2427
  ),
2427
2428
  w && /* @__PURE__ */ v(D, { className: L.tableBottomContainer, wrap: "wrap", direction: Ue ? "column" : "row", children: [
2428
- C && /* @__PURE__ */ v(D, { className: L.rowsPerPageContainer, children: [
2429
+ g && /* @__PURE__ */ v(D, { className: L.rowsPerPageContainer, children: [
2429
2430
  /* @__PURE__ */ i("div", { className: L.rowsPerPageText, children: "Rows per page:" }),
2430
2431
  /* @__PURE__ */ i(
2431
2432
  Qo,
@@ -2433,21 +2434,21 @@ const Li = $(function({
2433
2434
  items: j,
2434
2435
  defaultValue: j[0].value.toString(),
2435
2436
  onValueChange: (p) => {
2436
- z.fns.onSetSize(Number(p)), V(Number(p));
2437
+ z.fns.onSetSize(Number(p)), U(Number(p));
2437
2438
  },
2438
2439
  placeholder: j[0].itemContent,
2439
2440
  "aria-label": "Select number of rows per page"
2440
2441
  }
2441
2442
  )
2442
2443
  ] }),
2443
- b && /* @__PURE__ */ i(D, { justify: "center", children: Y > 0 && `Page ${z.state.page + 1} of ${Y}` }),
2444
+ b && /* @__PURE__ */ i(D, { justify: "center", children: Q > 0 && `Page ${z.state.page + 1} of ${Q}` }),
2444
2445
  m && /* @__PURE__ */ v(D, { className: L.rowsPerPageContainer, gap: "2", justify: "end", children: [
2445
2446
  /* @__PURE__ */ i(
2446
2447
  re,
2447
2448
  {
2448
2449
  variant: "surface",
2449
2450
  onClick: () => z.fns.onSetPage(0),
2450
- disabled: z.state.page === 0 || Y === 0,
2451
+ disabled: z.state.page === 0 || Q === 0,
2451
2452
  "aria-label": "Go to first page",
2452
2453
  children: /* @__PURE__ */ i(hn, {})
2453
2454
  }
@@ -2456,7 +2457,7 @@ const Li = $(function({
2456
2457
  re,
2457
2458
  {
2458
2459
  variant: "surface",
2459
- disabled: z.state.page === 0 || Y === 0,
2460
+ disabled: z.state.page === 0 || Q === 0,
2460
2461
  onClick: () => z.fns.onSetPage(z.state.page - 1),
2461
2462
  "aria-label": "Previous page",
2462
2463
  children: /* @__PURE__ */ i(pn, {})
@@ -2466,7 +2467,7 @@ const Li = $(function({
2466
2467
  re,
2467
2468
  {
2468
2469
  variant: "surface",
2469
- disabled: z.state.page + 1 === Y || Y === 0,
2470
+ disabled: z.state.page + 1 === Q || Q === 0,
2470
2471
  onClick: () => z.fns.onSetPage(z.state.page + 1),
2471
2472
  "aria-label": "Next page",
2472
2473
  children: /* @__PURE__ */ i(fn, {})
@@ -2476,8 +2477,8 @@ const Li = $(function({
2476
2477
  re,
2477
2478
  {
2478
2479
  variant: "surface",
2479
- disabled: z.state.page + 1 === Y || Y === 0,
2480
- onClick: () => z.fns.onSetPage(Y - 1),
2480
+ disabled: z.state.page + 1 === Q || Q === 0,
2481
+ onClick: () => z.fns.onSetPage(Q - 1),
2481
2482
  "aria-label": "Go to last page",
2482
2483
  children: /* @__PURE__ */ i(mn, {})
2483
2484
  }