obeyaka-ui 0.1.10 → 0.1.11

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/index.es.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { jsx as e, jsxs as f, Fragment as ie } from "react/jsx-runtime";
2
2
  import fe, { useState as S, useCallback as U, useMemo as q, memo as je, useRef as _, useEffect as B, useLayoutEffect as Dn, Suspense as Rn, forwardRef as Tn, useImperativeHandle as Pn, createContext as En, useContext as An } from "react";
3
- import { ActionIcon as Le, Tooltip as xe, Box as v, Skeleton as jn, Loader as ae, Text as k, Group as T, TextInput as Fe, useCombobox as He, Combobox as G, Indicator as Ke, MenuItem as Je, Menu as Y, Stack as L, Popover as Ie, LoadingOverlay as Ln, Button as K, Table as ne, Badge as Me, Tabs as Z, ScrollArea as le, Flex as en, Avatar as nn, TagsInput as Fn, Textarea as Hn, Radio as Un, Space as ve, Modal as Ue, FocusTrap as on, Drawer as rn, Alert as Nn, Anchor as Bn, createTheme as Wn, MantineProvider as $n } from "@mantine/core";
4
- import { IconQuestionMark as we, IconSearch as Ne, IconX as tn, IconFilter as an, IconFilterOff as Qn, IconChevronDown as be, IconPlus as Ve, IconDots as pe, IconChevronRight as Gn, IconCheck as Be, IconChevronUp as _e, IconClock as cn, IconMoodSmile as Oe, IconFlag as Vn, IconHeart as _n, IconBulb as Zn, IconPlane as Ze, IconBallBasketball as Yn, IconApple as qn, IconTrees as sn, IconUser as Xn, IconBriefcase as Kn, IconDeviceDesktop as Jn, IconCircle as eo, IconTool as no, IconMessage as oo, IconPhoto as Ye, IconArchive as Ee, IconBell as ro, IconInbox as to, IconChecklist as Te, IconChevronsLeft as io, IconMaximize as ln, IconStar as dn, IconChevronsRight as ao } from "@tabler/icons-react";
3
+ import { ActionIcon as Le, Tooltip as xe, Box as v, Skeleton as jn, Loader as ae, Text as k, Group as P, InputWrapper as Ln, Input as Fn, TextInput as Fe, useCombobox as He, Combobox as G, Indicator as Ke, MenuItem as Je, Menu as Y, Stack as L, Popover as Ie, LoadingOverlay as Hn, Button as K, Table as ne, Badge as Me, Tabs as Z, ScrollArea as le, Flex as en, Avatar as nn, TagsInput as Un, Textarea as Nn, Radio as Bn, Space as ve, Modal as Ue, FocusTrap as on, Drawer as rn, Alert as Wn, Anchor as $n, createTheme as Qn, MantineProvider as Gn } from "@mantine/core";
4
+ import { IconQuestionMark as we, IconSearch as Ne, IconX as tn, IconFilter as an, IconFilterOff as Vn, IconChevronDown as be, IconPlus as Ve, IconDots as pe, IconChevronRight as _n, IconCheck as Be, IconChevronUp as _e, IconClock as cn, IconMoodSmile as Oe, IconFlag as Zn, IconHeart as Yn, IconBulb as qn, IconPlane as Ze, IconBallBasketball as Xn, IconApple as Kn, IconTrees as sn, IconUser as Jn, IconBriefcase as eo, IconDeviceDesktop as no, IconCircle as oo, IconTool as ro, IconMessage as to, IconPhoto as Ye, IconArchive as Ee, IconBell as io, IconInbox as ao, IconChecklist as Te, IconChevronsLeft as co, IconMaximize as ln, IconStar as dn, IconChevronsRight as so } from "@tabler/icons-react";
5
5
  import ze from "@emoji-mart/data";
6
- import { init as co, SearchIndex as so } from "emoji-mart";
7
- import { useDisclosure as lo } from "@mantine/hooks";
8
- import { Notifications as uo } from "@mantine/notifications";
9
- import { ModalsProvider as fo } from "@mantine/modals";
10
- import { DatesProvider as Io } from "@mantine/dates";
6
+ import { init as lo, SearchIndex as uo } from "emoji-mart";
7
+ import { useDisclosure as fo } from "@mantine/hooks";
8
+ import { Notifications as Io } from "@mantine/notifications";
9
+ import { ModalsProvider as po } from "@mantine/modals";
10
+ import { DatesProvider as ho } from "@mantine/dates";
11
11
  const V = fe.memo(
12
12
  ({
13
13
  onClick: n,
@@ -21,14 +21,14 @@ const V = fe.memo(
21
21
  disabled: s = !1,
22
22
  loading: d = !1,
23
23
  tooltip: u,
24
- "aria-label": m,
24
+ "aria-label": y,
25
25
  className: p,
26
26
  style: b,
27
27
  onMouseEnter: x,
28
28
  onMouseLeave: g,
29
29
  ...h
30
30
  }) => {
31
- const [w, y] = S(!1), O = U(() => {
31
+ const [w, m] = S(!1), O = U(() => {
32
32
  s || d || (n == null || n(), console.log("Clicked"));
33
33
  }, [s, d, n]), M = q(() => ({
34
34
  xs: 14,
@@ -42,14 +42,14 @@ const V = fe.memo(
42
42
  md: 2,
43
43
  lg: 2,
44
44
  xl: 2.5
45
- })[c] || 2, [c]), P = U(
45
+ })[c] || 2, [c]), R = U(
46
46
  (j) => {
47
- y(!0), x == null || x(j);
47
+ m(!0), x == null || x(j);
48
48
  },
49
49
  [x]
50
50
  ), z = U(
51
51
  (j) => {
52
- y(!1), g == null || g(j);
52
+ m(!1), g == null || g(j);
53
53
  },
54
54
  [g]
55
55
  ), I = q(() => {
@@ -57,17 +57,17 @@ const V = fe.memo(
57
57
  return l;
58
58
  if (a === "transparent")
59
59
  return w ? "var(--mantine-color-gray-2)" : "transparent";
60
- }, [l, a, w]), A = q(() => o && t && w ? t : r, [o, t, w, r]), H = q(
60
+ }, [l, a, w]), E = q(() => o && t && w ? t : r, [o, t, w, r]), F = q(
61
61
  () => /* @__PURE__ */ e(
62
- A,
62
+ E,
63
63
  {
64
64
  size: M,
65
65
  strokeWidth: D,
66
66
  color: i
67
67
  }
68
68
  ),
69
- [A, M, D, i]
70
- ), E = /* @__PURE__ */ e(
69
+ [E, M, D, i]
70
+ ), A = /* @__PURE__ */ e(
71
71
  Le,
72
72
  {
73
73
  onClick: O,
@@ -78,20 +78,20 @@ const V = fe.memo(
78
78
  size: c,
79
79
  disabled: s || d,
80
80
  loading: d,
81
- onMouseEnter: P,
81
+ onMouseEnter: R,
82
82
  onMouseLeave: z,
83
- "aria-label": m || u,
83
+ "aria-label": y || u,
84
84
  className: p,
85
85
  style: b,
86
86
  ...h,
87
- children: H
87
+ children: F
88
88
  }
89
89
  );
90
- return u && !s && !d ? /* @__PURE__ */ e(xe, { label: u, position: "top", withArrow: !0, children: E }) : E;
90
+ return u && !s && !d ? /* @__PURE__ */ e(xe, { label: u, position: "top", withArrow: !0, children: A }) : A;
91
91
  }
92
92
  );
93
93
  V.displayName = "ActionButton";
94
- const po = (n) => {
94
+ const go = (n) => {
95
95
  const r = {
96
96
  xs: { width: 28, height: 28, fontSize: 16 },
97
97
  // Emoji size
@@ -109,7 +109,7 @@ const po = (n) => {
109
109
  height: n,
110
110
  fontSize: n - 8
111
111
  } : r[n];
112
- }, ho = ({
112
+ }, mo = ({
113
113
  emoji: n,
114
114
  size: r = "lg",
115
115
  editable: o = !1,
@@ -117,7 +117,7 @@ const po = (n) => {
117
117
  className: i,
118
118
  style: c
119
119
  }) => {
120
- const a = po(r), l = o && t;
120
+ const a = go(r), l = o && t;
121
121
  return /* @__PURE__ */ e(
122
122
  v,
123
123
  {
@@ -174,7 +174,7 @@ const po = (n) => {
174
174
  default:
175
175
  return 64;
176
176
  }
177
- }, oe = /* @__PURE__ */ new Map(), go = [
177
+ }, oe = /* @__PURE__ */ new Map(), yo = [
178
178
  "IconUser",
179
179
  "IconHeart",
180
180
  "IconStar",
@@ -207,10 +207,10 @@ const po = (n) => {
207
207
  "IconShare",
208
208
  "IconThumbUp",
209
209
  "IconTrash"
210
- ], mo = async () => {
210
+ ], vo = async () => {
211
211
  try {
212
212
  const n = await import("@tabler/icons-react");
213
- go.forEach((r) => {
213
+ yo.forEach((r) => {
214
214
  if (!oe.has(r)) {
215
215
  const o = n[r];
216
216
  o && oe.set(r, o);
@@ -220,8 +220,8 @@ const po = (n) => {
220
220
  console.warn("Error preloading common icons:", n);
221
221
  }
222
222
  };
223
- mo();
224
- const yo = async (n) => {
223
+ vo();
224
+ const wo = async (n) => {
225
225
  if (oe.has(n))
226
226
  return oe.get(n);
227
227
  try {
@@ -230,7 +230,7 @@ const yo = async (n) => {
230
230
  } catch {
231
231
  return oe.set(n, we), we;
232
232
  }
233
- }, vo = (n) => n.replace(/^Icon/, "").replace(/([A-Z])/g, " $1").trim().toLowerCase().replace(/^./, (o) => o.toUpperCase()), un = je(
233
+ }, xo = (n) => n.replace(/^Icon/, "").replace(/([A-Z])/g, " $1").trim().toLowerCase().replace(/^./, (o) => o.toUpperCase()), un = je(
234
234
  ({ iconName: n, onClick: r, size: o = 20 }) => {
235
235
  const [t, i] = S(null), [c, a] = S(!0), l = _(null), s = _(!0);
236
236
  B(() => (s.current = !0, (async () => {
@@ -265,7 +265,7 @@ const yo = async (n) => {
265
265
  ) : /* @__PURE__ */ e(
266
266
  xe,
267
267
  {
268
- label: vo(n),
268
+ label: xo(n),
269
269
  position: "top",
270
270
  withArrow: !0,
271
271
  openDelay: 300,
@@ -321,15 +321,15 @@ const fn = je(
321
321
  onMouseEnter: a,
322
322
  onMouseLeave: l
323
323
  }) => {
324
- const [s, d] = S(!1), [u, m] = S(() => oe.get(n) || null), p = se(r), b = Math.round(p * 0.9);
324
+ const [s, d] = S(!1), [u, y] = S(() => oe.get(n) || null), p = se(r), b = Math.round(p * 0.9);
325
325
  B(() => {
326
326
  if (oe.has(n)) {
327
- m(() => oe.get(n));
327
+ y(() => oe.get(n));
328
328
  return;
329
329
  }
330
330
  let g = !0;
331
- return yo(n).then((h) => {
332
- g && m(() => h);
331
+ return wo(n).then((h) => {
332
+ g && y(() => h);
333
333
  }), () => {
334
334
  g = !1;
335
335
  };
@@ -400,7 +400,7 @@ const fn = je(
400
400
  }
401
401
  );
402
402
  fn.displayName = "IconAvatar";
403
- const wo = (n) => {
403
+ const bo = (n) => {
404
404
  const r = {
405
405
  xs: { width: 28, height: 28 },
406
406
  sm: { width: 32, height: 32 },
@@ -412,7 +412,7 @@ const wo = (n) => {
412
412
  width: n,
413
413
  height: n
414
414
  } : r[n];
415
- }, xo = ({
415
+ }, Co = ({
416
416
  iconName: n,
417
417
  size: r = "lg",
418
418
  editable: o = !1,
@@ -420,7 +420,7 @@ const wo = (n) => {
420
420
  className: i,
421
421
  style: c
422
422
  }) => {
423
- const a = wo(r), l = o && t;
423
+ const a = bo(r), l = o && t;
424
424
  return /* @__PURE__ */ e(
425
425
  v,
426
426
  {
@@ -469,7 +469,7 @@ const wo = (n) => {
469
469
  )
470
470
  }
471
471
  );
472
- }, bo = (n) => {
472
+ }, So = (n) => {
473
473
  const r = {
474
474
  xs: { width: 28, height: 28 },
475
475
  sm: { width: 32, height: 32 },
@@ -481,7 +481,7 @@ const wo = (n) => {
481
481
  width: n,
482
482
  height: n
483
483
  } : r[n];
484
- }, Co = ({
484
+ }, ko = ({
485
485
  src: n,
486
486
  size: r = "lg",
487
487
  editable: o = !1,
@@ -491,7 +491,7 @@ const wo = (n) => {
491
491
  loading: a = !1,
492
492
  alt: l = "Avatar"
493
493
  }) => {
494
- const [s, d] = S(!1), u = bo(r), m = o && t, p = () => {
494
+ const [s, d] = S(!1), u = So(r), y = o && t, p = () => {
495
495
  d(!0);
496
496
  }, b = () => {
497
497
  d(!1);
@@ -504,7 +504,7 @@ const wo = (n) => {
504
504
  ...u,
505
505
  borderRadius: "var(--mantine-radius-md)",
506
506
  overflow: "hidden",
507
- cursor: m ? "pointer" : "default",
507
+ cursor: y ? "pointer" : "default",
508
508
  position: "relative",
509
509
  display: "flex",
510
510
  alignItems: "center",
@@ -513,12 +513,12 @@ const wo = (n) => {
513
513
  backgroundColor: "transparent",
514
514
  ...c
515
515
  },
516
- onClick: m ? t : void 0,
516
+ onClick: y ? t : void 0,
517
517
  onMouseEnter: (x) => {
518
- m && (x.currentTarget.style.backgroundColor = "var(--mantine-color-gray-0)");
518
+ y && (x.currentTarget.style.backgroundColor = "var(--mantine-color-gray-0)");
519
519
  },
520
520
  onMouseLeave: (x) => {
521
- m && (x.currentTarget.style.backgroundColor = "transparent");
521
+ y && (x.currentTarget.style.backgroundColor = "transparent");
522
522
  },
523
523
  children: a ? /* @__PURE__ */ e(
524
524
  ae,
@@ -548,7 +548,7 @@ const wo = (n) => {
548
548
  )
549
549
  }
550
550
  );
551
- }, So = (n) => {
551
+ }, Oo = (n) => {
552
552
  const r = {
553
553
  xs: { width: 28, height: 28, fontSize: 14 },
554
554
  // Text size
@@ -575,7 +575,7 @@ const wo = (n) => {
575
575
  style: c,
576
576
  loading: a = !1
577
577
  }) => {
578
- const l = So(r), s = o && t;
578
+ const l = Oo(r), s = o && t;
579
579
  return /* @__PURE__ */ e(
580
580
  v,
581
581
  {
@@ -629,7 +629,7 @@ const wo = (n) => {
629
629
  )
630
630
  }
631
631
  );
632
- }, ko = (n) => {
632
+ }, Mo = (n) => {
633
633
  if (!n)
634
634
  return "";
635
635
  const r = [
@@ -663,7 +663,7 @@ const wo = (n) => {
663
663
  switch (n.type) {
664
664
  case "emoji":
665
665
  return /* @__PURE__ */ e(
666
- ho,
666
+ mo,
667
667
  {
668
668
  emoji: n.value,
669
669
  size: r,
@@ -673,7 +673,7 @@ const wo = (n) => {
673
673
  );
674
674
  case "icon":
675
675
  return /* @__PURE__ */ e(
676
- xo,
676
+ Co,
677
677
  {
678
678
  iconName: n.value,
679
679
  size: r,
@@ -683,7 +683,7 @@ const wo = (n) => {
683
683
  );
684
684
  case "image":
685
685
  return /* @__PURE__ */ e(
686
- Co,
686
+ ko,
687
687
  {
688
688
  src: n.value,
689
689
  size: r,
@@ -693,11 +693,11 @@ const wo = (n) => {
693
693
  );
694
694
  }
695
695
  if (a) {
696
- const m = l ? ko(l) : "?";
696
+ const y = l ? Mo(l) : "?";
697
697
  return /* @__PURE__ */ e(
698
698
  Ae,
699
699
  {
700
- text: m,
700
+ text: y,
701
701
  size: r,
702
702
  editable: s,
703
703
  onClick: t
@@ -718,7 +718,7 @@ const wo = (n) => {
718
718
  );
719
719
  const u = d();
720
720
  return u ? /* @__PURE__ */ e("div", { className: i, style: c, children: u }) : null;
721
- }, Oo = ({
721
+ }, zo = ({
722
722
  label: n,
723
723
  onClick: r,
724
724
  isActive: o = !1
@@ -743,7 +743,7 @@ const wo = (n) => {
743
743
  children: /* @__PURE__ */ e(k, { fw: 500, fz: "sm", truncate: "end", c: "var(--mantine-color-gray-9)", children: n })
744
744
  }
745
745
  );
746
- }, Mo = new URL("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTUiIGhlaWdodD0iNTYiIHZpZXdCb3g9IjAgMCA1NSA1NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMC43NUg1NVY1NS43NUgwVjAuNzVaIiBmaWxsPSIjRjZGNUY0Ii8+CjxwYXRoIGQ9Ik04LjgwMDI5IDM0LjYzQzguODAwMjkgMzQuMTQ0IDkuMTk0MjggMzMuNzUgOS42ODAyOSAzMy43NUgxOC45MjAzQzE5LjQwNjMgMzMuNzUgMTkuODAwMyAzNC4xNDQgMTkuODAwMyAzNC42M1Y0My44N0MxOS44MDAzIDQ0LjM1NiAxOS40MDYzIDQ0Ljc1IDE4LjkyMDMgNDQuNzVIOS42ODAyOUM5LjE5NDI4IDQ0Ljc1IDguODAwMjkgNDQuMzU2IDguODAwMjkgNDMuODdWMzQuNjNaIiBmaWxsPSIjRkZDQTAwIi8+CjxwYXRoIGQ9Ik0yMi4wMDAyIDIzLjYzQzIyLjAwMDIgMjMuMTQ0IDIyLjM5NDIgMjIuNzUgMjIuODgwMiAyMi43NUgzMi4xMjAyQzMyLjYwNjMgMjIuNzUgMzMuMDAwMiAyMy4xNDQgMzMuMDAwMiAyMy42M1Y0My44N0MzMy4wMDAyIDQ0LjM1NiAzMi42MDYzIDQ0Ljc1IDMyLjEyMDIgNDQuNzVIMjIuODgwMkMyMi4zOTQyIDQ0Ljc1IDIyLjAwMDIgNDQuMzU2IDIyLjAwMDIgNDMuODdWMjMuNjNaIiBmaWxsPSIjMzdDRTkxIi8+CjxwYXRoIGQ9Ik0zNS4yMDAyIDEyLjYzQzM1LjIwMDIgMTIuMTQ0IDM1LjU5NDIgMTEuNzUgMzYuMDgwMiAxMS43NUg0NS4zMjAyQzQ1LjgwNjIgMTEuNzUgNDYuMjAwMiAxMi4xNDQgNDYuMjAwMiAxMi42M1Y0My44N0M0Ni4yMDAyIDQ0LjM1NiA0NS44MDYyIDQ0Ljc1IDQ1LjMyMDIgNDQuNzVIMzYuMDgwMkMzNS41OTQyIDQ0Ljc1IDM1LjIwMDIgNDQuMzU2IDM1LjIwMDIgNDMuODdWMTIuNjNaIiBmaWxsPSIjRkIzNzU3Ii8+CjxwYXRoIGQ9Ik04LjgwMDA1IDE3LjI1QzguODAwMDUgMTQuMjEyNCAxMS4yNjI1IDExLjc1IDE0LjMgMTEuNzVDMTcuMzM3NiAxMS43NSAxOS44IDE0LjIxMjQgMTkuOCAxNy4yNUMxOS44IDIwLjI4NzYgMTcuMzM3NiAyMi43NSAxNC4zIDIyLjc1QzExLjI2MjUgMjIuNzUgOC44MDAwNSAyMC4yODc2IDguODAwMDUgMTcuMjVaIiBmaWxsPSIjMDA3MkZGIi8+Cjwvc3ZnPgo=", self.location).href, zo = ({
746
+ }, Do = new URL("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTUiIGhlaWdodD0iNTYiIHZpZXdCb3g9IjAgMCA1NSA1NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMC43NUg1NVY1NS43NUgwVjAuNzVaIiBmaWxsPSIjRjZGNUY0Ii8+CjxwYXRoIGQ9Ik04LjgwMDI5IDM0LjYzQzguODAwMjkgMzQuMTQ0IDkuMTk0MjggMzMuNzUgOS42ODAyOSAzMy43NUgxOC45MjAzQzE5LjQwNjMgMzMuNzUgMTkuODAwMyAzNC4xNDQgMTkuODAwMyAzNC42M1Y0My44N0MxOS44MDAzIDQ0LjM1NiAxOS40MDYzIDQ0Ljc1IDE4LjkyMDMgNDQuNzVIOS42ODAyOUM5LjE5NDI4IDQ0Ljc1IDguODAwMjkgNDQuMzU2IDguODAwMjkgNDMuODdWMzQuNjNaIiBmaWxsPSIjRkZDQTAwIi8+CjxwYXRoIGQ9Ik0yMi4wMDAyIDIzLjYzQzIyLjAwMDIgMjMuMTQ0IDIyLjM5NDIgMjIuNzUgMjIuODgwMiAyMi43NUgzMi4xMjAyQzMyLjYwNjMgMjIuNzUgMzMuMDAwMiAyMy4xNDQgMzMuMDAwMiAyMy42M1Y0My44N0MzMy4wMDAyIDQ0LjM1NiAzMi42MDYzIDQ0Ljc1IDMyLjEyMDIgNDQuNzVIMjIuODgwMkMyMi4zOTQyIDQ0Ljc1IDIyLjAwMDIgNDQuMzU2IDIyLjAwMDIgNDMuODdWMjMuNjNaIiBmaWxsPSIjMzdDRTkxIi8+CjxwYXRoIGQ9Ik0zNS4yMDAyIDEyLjYzQzM1LjIwMDIgMTIuMTQ0IDM1LjU5NDIgMTEuNzUgMzYuMDgwMiAxMS43NUg0NS4zMjAyQzQ1LjgwNjIgMTEuNzUgNDYuMjAwMiAxMi4xNDQgNDYuMjAwMiAxMi42M1Y0My44N0M0Ni4yMDAyIDQ0LjM1NiA0NS44MDYyIDQ0Ljc1IDQ1LjMyMDIgNDQuNzVIMzYuMDgwMkMzNS41OTQyIDQ0Ljc1IDM1LjIwMDIgNDQuMzU2IDM1LjIwMDIgNDMuODdWMTIuNjNaIiBmaWxsPSIjRkIzNzU3Ii8+CjxwYXRoIGQ9Ik04LjgwMDA1IDE3LjI1QzguODAwMDUgMTQuMjEyNCAxMS4yNjI1IDExLjc1IDE0LjMgMTEuNzVDMTcuMzM3NiAxMS43NSAxOS44IDE0LjIxMjQgMTkuOCAxNy4yNUMxOS44IDIwLjI4NzYgMTcuMzM3NiAyMi43NSAxNC4zIDIyLjc1QzExLjI2MjUgMjIuNzUgOC44MDAwNSAyMC4yODc2IDguODAwMDUgMTcuMjVaIiBmaWxsPSIjMDA3MkZGIi8+Cjwvc3ZnPgo=", self.location).href, Ro = ({
747
747
  appName: n = "Obeyaka",
748
748
  size: r = "md",
749
749
  showText: o = !0,
@@ -781,13 +781,13 @@ const wo = (n) => {
781
781
  return 0;
782
782
  }
783
783
  }, { icon: l, text: s } = c();
784
- return /* @__PURE__ */ f(T, { gap: "xs", align: "center", wrap: "nowrap", children: [
784
+ return /* @__PURE__ */ f(P, { gap: "xs", align: "center", wrap: "nowrap", children: [
785
785
  (() => {
786
786
  const u = l * 56 / 55;
787
787
  return /* @__PURE__ */ e(
788
788
  "img",
789
789
  {
790
- src: Mo,
790
+ src: Do,
791
791
  alt: `${n} Logo`,
792
792
  width: l,
793
793
  height: u,
@@ -812,7 +812,73 @@ const wo = (n) => {
812
812
  }
813
813
  )
814
814
  ] });
815
- }, Do = ({
815
+ }, Nr = ({
816
+ value: n,
817
+ label: r,
818
+ onChange: o,
819
+ placeholder: t = "Click to edit...",
820
+ disabled: i = !1,
821
+ bgColor: c = "gray",
822
+ size: a = "md",
823
+ radius: l = "sm",
824
+ className: s = "",
825
+ style: d,
826
+ showEditBorder: u = !0,
827
+ editBorderColor: y = "#228be6",
828
+ selectOnFocus: p = !1,
829
+ ...b
830
+ }) => {
831
+ const [x, g] = S(!1), [h, w] = S(n), m = _(null);
832
+ B(() => {
833
+ w(n);
834
+ }, [n]);
835
+ const O = () => {
836
+ i || (g(!0), p && m.current && m.current.select());
837
+ }, M = () => {
838
+ g(!1), h !== n && o(h);
839
+ }, D = (E) => {
840
+ w(E.target.value);
841
+ }, R = (E) => {
842
+ var F, A;
843
+ E.key === "Enter" ? (g(!1), o(h), (F = m.current) == null || F.blur()) : E.key === "Escape" && (w(n), g(!1), (A = m.current) == null || A.blur());
844
+ }, z = {
845
+ cursor: i ? "not-allowed" : "text"
846
+ }, I = {
847
+ backgroundColor: c === "gray" ? "var(--mantine-color-gray-0)" : c === "white" ? "var(--mantine-color-white)" : void 0,
848
+ borderColor: x && u ? y : void 0,
849
+ borderWidth: x && u ? "2px" : void 0,
850
+ transition: "border-color 0.2s ease-in-out, border-width 0.2s ease-in-out",
851
+ color: "var(--mantine-color-gray-9)"
852
+ };
853
+ return /* @__PURE__ */ e(
854
+ Ln,
855
+ {
856
+ label: r,
857
+ c: "var(--mantine-color-gray-6)",
858
+ size: a,
859
+ children: /* @__PURE__ */ e(
860
+ Fn,
861
+ {
862
+ ref: m,
863
+ value: h,
864
+ onChange: D,
865
+ onFocus: O,
866
+ onBlur: M,
867
+ onKeyDown: R,
868
+ placeholder: t,
869
+ disabled: i,
870
+ size: a,
871
+ fw: 500,
872
+ radius: l,
873
+ className: s,
874
+ style: { ...z, ...d },
875
+ styles: { input: { ...I } },
876
+ ...b
877
+ }
878
+ )
879
+ }
880
+ );
881
+ }, To = ({
816
882
  expandDirection: n = "right",
817
883
  placeholder: r = "Type to search",
818
884
  value: o = "",
@@ -823,14 +889,14 @@ const wo = (n) => {
823
889
  disabled: l = !1,
824
890
  className: s
825
891
  }) => {
826
- const [d, u] = S(!1), [m, p] = S(!1), [b, x] = S(o), g = _(null), h = _(null);
892
+ const [d, u] = S(!1), [y, p] = S(!1), [b, x] = S(o), g = _(null), h = _(null);
827
893
  B(() => {
828
894
  x(o);
829
895
  }, [o]), B(() => {
830
896
  d && g.current && g.current.focus();
831
897
  }, [d]), B(() => {
832
- const I = (A) => {
833
- h.current && !h.current.contains(A.target) && w();
898
+ const I = (E) => {
899
+ h.current && !h.current.contains(E.target) && w();
834
900
  };
835
901
  if (d)
836
902
  return document.addEventListener("mousedown", I), () => {
@@ -841,11 +907,11 @@ const wo = (n) => {
841
907
  p(!0), setTimeout(() => {
842
908
  u(!1), p(!1);
843
909
  }, 200);
844
- }, y = () => {
910
+ }, m = () => {
845
911
  l || u(!0);
846
912
  }, O = (I) => {
847
- const A = I.target.value;
848
- x(A), t == null || t(A);
913
+ const E = I.target.value;
914
+ x(E), t == null || t(E);
849
915
  }, M = (I) => {
850
916
  I.key === "Enter" && (i == null || i(b)), I.key === "Escape" && w();
851
917
  }, D = () => {
@@ -884,7 +950,7 @@ const wo = (n) => {
884
950
  },
885
951
  children: [
886
952
  /* @__PURE__ */ f(
887
- T,
953
+ P,
888
954
  {
889
955
  gap: 0,
890
956
  style: {
@@ -896,7 +962,7 @@ const wo = (n) => {
896
962
  /* @__PURE__ */ e(
897
963
  v,
898
964
  {
899
- onClick: y,
965
+ onClick: m,
900
966
  style: {
901
967
  display: "flex",
902
968
  alignItems: "center",
@@ -938,7 +1004,7 @@ const wo = (n) => {
938
1004
  styles: {
939
1005
  root: {
940
1006
  position: "relative",
941
- animation: m ? `shrink${n === "right" ? "Right" : "Left"} 0.2s ease forwards` : `expand${n === "right" ? "Right" : "Left"} 0.2s ease forwards`
1007
+ animation: y ? `shrink${n === "right" ? "Right" : "Left"} 0.2s ease forwards` : `expand${n === "right" ? "Right" : "Left"} 0.2s ease forwards`
942
1008
  },
943
1009
  input: {
944
1010
  border: "none",
@@ -1050,7 +1116,7 @@ const wo = (n) => {
1050
1116
  (g) => !n.some(
1051
1117
  (h) => h.filterOption.value === g.value
1052
1118
  )
1053
- ), m = {
1119
+ ), y = {
1054
1120
  borderRadius: "var(--mantine-radius-md)",
1055
1121
  fontSize: "var(--mantine-font-size-sm)",
1056
1122
  color: "var(--mantine-color-gray-7)",
@@ -1133,7 +1199,7 @@ const wo = (n) => {
1133
1199
  {
1134
1200
  value: g.value,
1135
1201
  style: {
1136
- ...m
1202
+ ...y
1137
1203
  },
1138
1204
  children: /* @__PURE__ */ f(
1139
1205
  v,
@@ -1163,7 +1229,7 @@ const wo = (n) => {
1163
1229
  {
1164
1230
  style: { display: "flex", alignItems: "center", gap: "8px" },
1165
1231
  children: [
1166
- /* @__PURE__ */ e(Qn, { size: 16, stroke: 2 }),
1232
+ /* @__PURE__ */ e(Vn, { size: 16, stroke: 2 }),
1167
1233
  "Remove filters"
1168
1234
  ]
1169
1235
  }
@@ -1176,7 +1242,7 @@ const wo = (n) => {
1176
1242
  ]
1177
1243
  }
1178
1244
  );
1179
- }, Ro = ({
1245
+ }, Po = ({
1180
1246
  filterTag: n,
1181
1247
  onUpdate: r,
1182
1248
  onRemove: o,
@@ -1207,7 +1273,7 @@ const wo = (n) => {
1207
1273
  fontSize: "var(--mantine-font-size-sm)",
1208
1274
  color: "var(--mantine-color-gray-7)",
1209
1275
  fontWeight: "500"
1210
- }, m = {
1276
+ }, y = {
1211
1277
  display: "inline-flex",
1212
1278
  alignItems: "center",
1213
1279
  gap: "4px",
@@ -1234,7 +1300,7 @@ const wo = (n) => {
1234
1300
  v,
1235
1301
  {
1236
1302
  style: {
1237
- ...m
1303
+ ...y
1238
1304
  },
1239
1305
  onClick: () => c.toggleDropdown(),
1240
1306
  fw: 500,
@@ -1302,7 +1368,7 @@ const wo = (n) => {
1302
1368
  ]
1303
1369
  }
1304
1370
  );
1305
- }, To = ({
1371
+ }, Eo = ({
1306
1372
  activeFilters: n,
1307
1373
  onFiltersChange: r,
1308
1374
  availableFilters: o,
@@ -1347,7 +1413,7 @@ const wo = (n) => {
1347
1413
  width: "auto",
1348
1414
  minWidth: "120px"
1349
1415
  }
1350
- }, m = {
1416
+ }, y = {
1351
1417
  borderRadius: "var(--mantine-radius-md)",
1352
1418
  fontSize: "var(--mantine-font-size-sm)",
1353
1419
  color: "var(--mantine-color-gray-7)",
@@ -1394,7 +1460,7 @@ const wo = (n) => {
1394
1460
  {
1395
1461
  value: p.value,
1396
1462
  style: {
1397
- ...m
1463
+ ...y
1398
1464
  },
1399
1465
  children: /* @__PURE__ */ f(
1400
1466
  v,
@@ -1424,12 +1490,12 @@ const wo = (n) => {
1424
1490
  }) => {
1425
1491
  const a = (d) => {
1426
1492
  const u = (n || []).map(
1427
- (m) => m.id === d.id ? d : m
1493
+ (y) => y.id === d.id ? d : y
1428
1494
  );
1429
1495
  r(u);
1430
1496
  }, l = (d) => {
1431
1497
  const u = (n || []).filter(
1432
- (m) => m.id !== d
1498
+ (y) => y.id !== d
1433
1499
  );
1434
1500
  r(u);
1435
1501
  }, s = (o || []).filter(
@@ -1437,11 +1503,11 @@ const wo = (n) => {
1437
1503
  (u) => u.filterOption.value === d.value
1438
1504
  )
1439
1505
  );
1440
- return !n || n.length === 0 ? null : /* @__PURE__ */ e("div", { style: { width: "100%" }, children: /* @__PURE__ */ f(T, { gap: "sm", align: "center", wrap: "wrap", children: [
1506
+ return !n || n.length === 0 ? null : /* @__PURE__ */ e("div", { style: { width: "100%" }, children: /* @__PURE__ */ f(P, { gap: "sm", align: "center", wrap: "wrap", children: [
1441
1507
  (n || []).map((d) => {
1442
1508
  const u = i ? i(d.filterOption.value) || [] : [];
1443
1509
  return /* @__PURE__ */ e(
1444
- Ro,
1510
+ Po,
1445
1511
  {
1446
1512
  filterTag: d,
1447
1513
  onUpdate: a,
@@ -1454,7 +1520,7 @@ const wo = (n) => {
1454
1520
  );
1455
1521
  }),
1456
1522
  s.length > 0 && /* @__PURE__ */ e(
1457
- To,
1523
+ Eo,
1458
1524
  {
1459
1525
  activeFilters: n,
1460
1526
  onFiltersChange: r,
@@ -1463,7 +1529,7 @@ const wo = (n) => {
1463
1529
  }
1464
1530
  )
1465
1531
  ] }) });
1466
- }, Po = ({
1532
+ }, Ao = ({
1467
1533
  activeFilters: n,
1468
1534
  onFiltersChange: r,
1469
1535
  availableFilters: o,
@@ -1491,10 +1557,10 @@ const wo = (n) => {
1491
1557
  filterTagDropdownPosition: c
1492
1558
  }
1493
1559
  )
1494
- ] }), Hr = Object.assign(Po, {
1560
+ ] }), Br = Object.assign(Ao, {
1495
1561
  Button: We,
1496
1562
  Filters: $e
1497
- }), Eo = ({
1563
+ }), jo = ({
1498
1564
  children: n,
1499
1565
  danger: r,
1500
1566
  active: o,
@@ -1548,7 +1614,7 @@ const wo = (n) => {
1548
1614
  },
1549
1615
  children: [
1550
1616
  o,
1551
- r == null ? void 0 : r.map((l, s) => /* @__PURE__ */ e(Eo, { ...l }, s))
1617
+ r == null ? void 0 : r.map((l, s) => /* @__PURE__ */ e(jo, { ...l }, s))
1552
1618
  ]
1553
1619
  }
1554
1620
  )
@@ -1565,7 +1631,7 @@ const wo = (n) => {
1565
1631
  isActive: s = !1,
1566
1632
  ...d
1567
1633
  }) => {
1568
- const [u, m] = S(!1);
1634
+ const [u, y] = S(!1);
1569
1635
  return /* @__PURE__ */ e(
1570
1636
  v,
1571
1637
  {
@@ -1581,15 +1647,15 @@ const wo = (n) => {
1581
1647
  w: l ? "100%" : "auto",
1582
1648
  px: 6,
1583
1649
  h: 40,
1584
- onMouseEnter: () => !i && m(!0),
1585
- onMouseLeave: () => m(!1),
1650
+ onMouseEnter: () => !i && y(!0),
1651
+ onMouseLeave: () => y(!1),
1586
1652
  onClick: () => {
1587
1653
  i || o == null || o();
1588
1654
  },
1589
1655
  bg: u || s ? "gray.1" : "transparent",
1590
1656
  "aria-label": c || `${n} navigation button`,
1591
1657
  ...d,
1592
- children: /* @__PURE__ */ f(T, { w: "100%", wrap: "nowrap", gap: 8, justify: "left", align: "center", children: [
1658
+ children: /* @__PURE__ */ f(P, { w: "100%", wrap: "nowrap", gap: 8, justify: "left", align: "center", children: [
1593
1659
  r,
1594
1660
  /* @__PURE__ */ e(
1595
1661
  k,
@@ -1626,7 +1692,7 @@ const wo = (n) => {
1626
1692
  ] })
1627
1693
  }
1628
1694
  );
1629
- }, Ur = ({
1695
+ }, Wr = ({
1630
1696
  label: n,
1631
1697
  rightLabel: r,
1632
1698
  children: o,
@@ -1638,7 +1704,7 @@ const wo = (n) => {
1638
1704
  level: s = 0,
1639
1705
  disabled: d = !1,
1640
1706
  noChild: u = !1,
1641
- isActive: m = !1,
1707
+ isActive: y = !1,
1642
1708
  showAvatar: p = !1,
1643
1709
  avatar: b,
1644
1710
  placeholder: x,
@@ -1646,19 +1712,19 @@ const wo = (n) => {
1646
1712
  "aria-label": h,
1647
1713
  ...w
1648
1714
  }) => {
1649
- const [y, O] = S(!1), [M, D] = S(!1), [P, z] = S(!1), I = fe.Children.count(o) > 0, A = P ? be : Gn, H = !u && I && (p ? M : !0), E = U(
1715
+ const [m, O] = S(!1), [M, D] = S(!1), [R, z] = S(!1), I = fe.Children.count(o) > 0, E = R ? be : _n, F = !u && I && (p ? M : !0), A = U(
1650
1716
  ($) => {
1651
- d || (console.log("NavLink clicked", { hasChildren: I, noChild: u, isExpanded: y }), I && !u && (console.log("Toggling expansion"), O(!y)), g == null || g());
1717
+ d || (console.log("NavLink clicked", { hasChildren: I, noChild: u, isExpanded: m }), I && !u && (console.log("Toggling expansion"), O(!m)), g == null || g());
1652
1718
  },
1653
- [g, d, I, u, y]
1719
+ [g, d, I, u, m]
1654
1720
  ), j = U(
1655
1721
  ($) => {
1656
1722
  $.stopPropagation(), !d && (t == null || t());
1657
1723
  },
1658
1724
  [t, d]
1659
1725
  ), W = U(() => {
1660
- d || (I && !u && O(!y), g == null || g());
1661
- }, [d, I, u, y, g]), re = U(() => {
1726
+ d || (I && !u && O(!m), g == null || g());
1727
+ }, [d, I, u, m, g]), re = U(() => {
1662
1728
  d || t == null || t();
1663
1729
  }, [t, d]), te = U(
1664
1730
  ($) => {
@@ -1669,14 +1735,14 @@ const wo = (n) => {
1669
1735
  ...$.props,
1670
1736
  level: s + 1
1671
1737
  }) : $) : null, [o, I, s]), de = (c == null ? void 0 : c.map(($) => ({
1672
- children: /* @__PURE__ */ f(T, { gap: "xs", wrap: "nowrap", children: [
1738
+ children: /* @__PURE__ */ f(P, { gap: "xs", wrap: "nowrap", children: [
1673
1739
  $.icon && /* @__PURE__ */ e($.icon, { size: 16 }),
1674
1740
  /* @__PURE__ */ e(k, { size: "sm", children: $.label })
1675
1741
  ] }),
1676
1742
  onClick: () => te($.action)
1677
1743
  }))) || [], ge = [
1678
1744
  {
1679
- children: /* @__PURE__ */ f(T, { gap: "xs", wrap: "nowrap", children: [
1745
+ children: /* @__PURE__ */ f(P, { gap: "xs", wrap: "nowrap", children: [
1680
1746
  /* @__PURE__ */ e(Ve, { size: 16 }),
1681
1747
  /* @__PURE__ */ e(k, { size: "sm", children: "Add child" })
1682
1748
  ] }),
@@ -1702,33 +1768,33 @@ const wo = (n) => {
1702
1768
  h: 40,
1703
1769
  onMouseEnter: () => !d && D(!0),
1704
1770
  onMouseLeave: () => D(!1),
1705
- onClick: E,
1706
- bg: m || M ? "var(--mantine-color-gray-1)" : "transparent",
1707
- "aria-expanded": y,
1771
+ onClick: A,
1772
+ bg: y || M ? "var(--mantine-color-gray-1)" : "transparent",
1773
+ "aria-expanded": m,
1708
1774
  "aria-label": h || `${n} navigation link`,
1709
1775
  ...w,
1710
1776
  children: /* @__PURE__ */ f(
1711
- T,
1777
+ P,
1712
1778
  {
1713
1779
  w: "100%",
1714
1780
  wrap: "nowrap",
1715
1781
  gap: 8,
1716
- onClick: E,
1782
+ onClick: A,
1717
1783
  style: {
1718
- paddingLeft: u && !H ? `${(s + 1) * 16}px` : s > 0 ? `${s * 16}px` : "0px"
1784
+ paddingLeft: u && !F ? `${(s + 1) * 16}px` : s > 0 ? `${s * 16}px` : "0px"
1719
1785
  },
1720
1786
  children: [
1721
- H ? /* @__PURE__ */ e(
1787
+ F ? /* @__PURE__ */ e(
1722
1788
  V,
1723
1789
  {
1724
- icon: A,
1790
+ icon: E,
1725
1791
  size: "md",
1726
1792
  color: a,
1727
1793
  onClick: W,
1728
1794
  disabled: d,
1729
1795
  onMouseEnter: () => z(!0),
1730
1796
  onMouseLeave: () => z(!1),
1731
- "aria-label": I ? `${y ? "Collapse" : "Expand"} ${n}` : void 0
1797
+ "aria-label": I ? `${m ? "Collapse" : "Expand"} ${n}` : void 0
1732
1798
  }
1733
1799
  ) : p ? /* @__PURE__ */ e(
1734
1800
  he,
@@ -1744,16 +1810,16 @@ const wo = (n) => {
1744
1810
  {
1745
1811
  size: "sm",
1746
1812
  fw: 500,
1747
- c: m ? "black" : M ? "gray.9" : "gray.8",
1813
+ c: y ? "black" : M ? "gray.9" : "gray.8",
1748
1814
  truncate: !0,
1749
1815
  w: "100%",
1750
1816
  style: { opacity: d ? 0.5 : 1 },
1751
1817
  children: n
1752
1818
  }
1753
1819
  ),
1754
- /* @__PURE__ */ f(T, { gap: "xs", align: "center", children: [
1820
+ /* @__PURE__ */ f(P, { gap: "xs", align: "center", children: [
1755
1821
  r && /* @__PURE__ */ e(k, { size: "xs", c: "dimmed", children: r }),
1756
- M && !d && /* @__PURE__ */ f(T, { gap: 4, wrap: "nowrap", children: [
1822
+ M && !d && /* @__PURE__ */ f(P, { gap: 4, wrap: "nowrap", children: [
1757
1823
  t && /* @__PURE__ */ e(
1758
1824
  V,
1759
1825
  {
@@ -1785,9 +1851,9 @@ const wo = (n) => {
1785
1851
  )
1786
1852
  }
1787
1853
  ),
1788
- y && !u && /* @__PURE__ */ e(L, { gap: 0, style: { width: "100%" }, children: I ? Q() : /* @__PURE__ */ e(v, { style: { marginLeft: s > 0 ? `${s * 16}px` : "0px" }, children: /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", ta: "left", p: "sm", fw: 500, children: l }) }) })
1854
+ m && !u && /* @__PURE__ */ e(L, { gap: 0, style: { width: "100%" }, children: I ? Q() : /* @__PURE__ */ e(v, { style: { marginLeft: s > 0 ? `${s * 16}px` : "0px" }, children: /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", ta: "left", p: "sm", fw: 500, children: l }) }) })
1789
1855
  ] });
1790
- }, Ao = "200px", jo = "4px 8px", Lo = 40, Fo = "var(--mantine-radius-md)", Ho = 16, Uo = ({
1856
+ }, Lo = "200px", Fo = "4px 8px", Ho = 40, Uo = "var(--mantine-radius-md)", No = 16, Bo = ({
1791
1857
  item: n,
1792
1858
  withAvatars: r,
1793
1859
  disabled: o = !1,
@@ -1807,22 +1873,22 @@ const wo = (n) => {
1807
1873
  l.stopPropagation();
1808
1874
  },
1809
1875
  style: {
1810
- minWidth: Ao,
1876
+ minWidth: Lo,
1811
1877
  backgroundColor: o ? "transparent" : c ? "var(--mantine-color-gray-1)" : "transparent",
1812
1878
  cursor: o ? "default" : "pointer",
1813
- borderRadius: Fo,
1814
- padding: jo,
1879
+ borderRadius: Uo,
1880
+ padding: Fo,
1815
1881
  transition: "background-color 0.2s ease",
1816
1882
  opacity: o ? 0.5 : 1
1817
1883
  },
1818
1884
  children: /* @__PURE__ */ f(
1819
- T,
1885
+ P,
1820
1886
  {
1821
1887
  gap: "sm",
1822
1888
  wrap: "nowrap",
1823
1889
  align: "flex-start",
1824
1890
  style: { alignItems: "center" },
1825
- h: Lo,
1891
+ h: Ho,
1826
1892
  children: [
1827
1893
  r && n.avatar && /* @__PURE__ */ e(
1828
1894
  "img",
@@ -1860,7 +1926,7 @@ const wo = (n) => {
1860
1926
  i && /* @__PURE__ */ e(
1861
1927
  Be,
1862
1928
  {
1863
- size: Ho,
1929
+ size: No,
1864
1930
  color: "var(--mantine-color-gray-9)"
1865
1931
  }
1866
1932
  )
@@ -1869,7 +1935,7 @@ const wo = (n) => {
1869
1935
  )
1870
1936
  }
1871
1937
  );
1872
- }, No = "bottom-end", Bo = 1e4, Wo = "24px", $o = "0 8px", Qo = "6px", qe = "var(--mantine-radius-md)", Go = "46px", Qe = ({
1938
+ }, Wo = "bottom-end", $o = 1e4, Qo = "24px", Go = "0 8px", Vo = "6px", qe = "var(--mantine-radius-md)", _o = "46px", Qe = ({
1873
1939
  value: n,
1874
1940
  onChange: r,
1875
1941
  data: o,
@@ -1881,11 +1947,11 @@ const wo = (n) => {
1881
1947
  defaultOption: s,
1882
1948
  popoverStyles: d,
1883
1949
  dropdownStyles: u,
1884
- triggerStyles: m,
1950
+ triggerStyles: y,
1885
1951
  textStyles: p
1886
1952
  }) => {
1887
- const [b, x] = S(!1), g = (o || []).find((I) => I.value === n) || s, [h, w] = S(!1), [y, O] = S(!1), [M, D] = S(!1), P = t ? /* @__PURE__ */ e(
1888
- T,
1953
+ const [b, x] = S(!1), g = (o || []).find((I) => I.value === n) || s, [h, w] = S(!1), [m, O] = S(!1), [M, D] = S(!1), R = t ? /* @__PURE__ */ e(
1954
+ P,
1889
1955
  {
1890
1956
  p: "sm",
1891
1957
  onClick: (I) => {
@@ -1893,11 +1959,11 @@ const wo = (n) => {
1893
1959
  },
1894
1960
  style: {
1895
1961
  cursor: "pointer",
1896
- height: Go,
1962
+ height: _o,
1897
1963
  display: "flex",
1898
1964
  alignItems: "center",
1899
1965
  borderRadius: qe,
1900
- backgroundColor: y ? "var(--mantine-color-red-0)" : "transparent",
1966
+ backgroundColor: m ? "var(--mantine-color-red-0)" : "transparent",
1901
1967
  transition: "background-color 0.2s ease"
1902
1968
  },
1903
1969
  onMouseEnter: () => O(!0),
@@ -1913,18 +1979,18 @@ const wo = (n) => {
1913
1979
  l || (x(!0), D(!0));
1914
1980
  },
1915
1981
  style: {
1916
- height: Wo,
1982
+ height: Qo,
1917
1983
  cursor: l ? "not-allowed" : "pointer",
1918
1984
  display: "inline-flex",
1919
1985
  alignItems: "center",
1920
1986
  borderRadius: qe,
1921
1987
  backgroundColor: l ? "transparent" : h || M ? "var(--mantine-color-gray-1)" : "transparent",
1922
1988
  transition: "background-color 0.2s ease",
1923
- padding: $o,
1924
- gap: Qo,
1989
+ padding: Go,
1990
+ gap: Vo,
1925
1991
  width: "auto",
1926
1992
  opacity: l ? 0.6 : 1,
1927
- ...m
1993
+ ...y
1928
1994
  },
1929
1995
  children: [
1930
1996
  /* @__PURE__ */ e(
@@ -1961,10 +2027,10 @@ const wo = (n) => {
1961
2027
  onChange: (I) => {
1962
2028
  x(I), I || D(!1);
1963
2029
  },
1964
- position: No,
2030
+ position: Wo,
1965
2031
  shadow: "md",
1966
2032
  withinPortal: !0,
1967
- zIndex: Bo,
2033
+ zIndex: $o,
1968
2034
  styles: d,
1969
2035
  children: [
1970
2036
  /* @__PURE__ */ e(Ie.Target, { children: z }),
@@ -1988,22 +2054,22 @@ const wo = (n) => {
1988
2054
  onMouseDown: (I) => I.stopPropagation(),
1989
2055
  children: [
1990
2056
  (o || []).map((I) => {
1991
- const A = a.includes(I.value), H = I.value === n;
2057
+ const E = a.includes(I.value), F = I.value === n;
1992
2058
  return /* @__PURE__ */ e(
1993
- Uo,
2059
+ Bo,
1994
2060
  {
1995
2061
  item: I,
1996
2062
  withAvatars: i,
1997
- disabled: A,
1998
- selected: H,
1999
- onClick: (E) => {
2000
- r == null || r(E), x(!1), D(!1);
2063
+ disabled: E,
2064
+ selected: F,
2065
+ onClick: (A) => {
2066
+ r == null || r(A), x(!1), D(!1);
2001
2067
  }
2002
2068
  },
2003
2069
  I.value
2004
2070
  );
2005
2071
  }),
2006
- P
2072
+ R
2007
2073
  ]
2008
2074
  }
2009
2075
  )
@@ -2012,7 +2078,7 @@ const wo = (n) => {
2012
2078
  ]
2013
2079
  }
2014
2080
  );
2015
- }, Vo = (n, r, o, t) => {
2081
+ }, Zo = (n, r, o, t) => {
2016
2082
  const i = _(null), c = _(null), a = U(
2017
2083
  (s) => {
2018
2084
  s[0].isIntersecting && o && !t && r && r();
@@ -2039,7 +2105,7 @@ const wo = (n) => {
2039
2105
  }, []), {
2040
2106
  loadMoreRef: i
2041
2107
  };
2042
- }, _o = ({
2108
+ }, Yo = ({
2043
2109
  tableName: n,
2044
2110
  data: r,
2045
2111
  columns: o,
@@ -2051,86 +2117,86 @@ const wo = (n) => {
2051
2117
  searchPlaceholder: s = "Search...",
2052
2118
  enableAutoFilters: d = !0,
2053
2119
  customFilters: u = [],
2054
- onCustomFilter: m,
2120
+ onCustomFilter: y,
2055
2121
  onSort: p,
2056
2122
  sortColumn: b,
2057
2123
  sortDirection: x,
2058
2124
  onSearch: g,
2059
2125
  onRowClick: h,
2060
2126
  size: w = "md",
2061
- striped: y = !1,
2127
+ striped: m = !1,
2062
2128
  highlightOnHover: O = !0,
2063
2129
  enableInfiniteScroll: M = !1,
2064
2130
  isLoadingMore: D = !1,
2065
- hasMore: P = !1,
2131
+ hasMore: R = !1,
2066
2132
  onLoadMore: z
2067
2133
  }) => {
2068
- const [I, A] = S(""), [H, E] = S([]), { loadMoreRef: j } = Vo(
2134
+ const [I, E] = S(""), [F, A] = S([]), { loadMoreRef: j } = Zo(
2069
2135
  M,
2070
2136
  z || (() => {
2071
2137
  }),
2072
- P,
2138
+ R,
2073
2139
  D
2074
- ), W = q(() => [...d ? o.filter((R) => R.type === "select" && R.options).map((R) => ({
2075
- value: R.key,
2076
- label: R.label
2140
+ ), W = q(() => [...d ? o.filter((T) => T.type === "select" && T.options).map((T) => ({
2141
+ value: T.key,
2142
+ label: T.label
2077
2143
  })) : [], ...u], [o, d, u]), re = q(() => {
2078
2144
  let C = r || [];
2079
2145
  if (I) {
2080
- const R = I.toLowerCase();
2081
- C = C.filter((F) => o.some((N) => {
2146
+ const T = I.toLowerCase();
2147
+ C = C.filter((H) => o.some((N) => {
2082
2148
  if (!N.searchable)
2083
2149
  return !1;
2084
- const J = F[N.key];
2085
- return J == null ? !1 : String(J).toLowerCase().includes(R);
2150
+ const J = H[N.key];
2151
+ return J == null ? !1 : String(J).toLowerCase().includes(T);
2086
2152
  }));
2087
2153
  }
2088
- return H.forEach((R) => {
2089
- if (R.filterTag.selectedOption) {
2090
- const F = o.find(
2091
- (N) => N.key === R.filterTag.filterOption.value
2154
+ return F.forEach((T) => {
2155
+ if (T.filterTag.selectedOption) {
2156
+ const H = o.find(
2157
+ (N) => N.key === T.filterTag.filterOption.value
2092
2158
  );
2093
- F && (C = C.filter((N) => {
2159
+ H && (C = C.filter((N) => {
2094
2160
  var ce;
2095
- const J = N[F.key];
2096
- return String(J) === ((ce = R.filterTag.selectedOption) == null ? void 0 : ce.value);
2161
+ const J = N[H.key];
2162
+ return String(J) === ((ce = T.filterTag.selectedOption) == null ? void 0 : ce.value);
2097
2163
  }));
2098
2164
  }
2099
2165
  }), C;
2100
- }, [r, I, H, o]), te = (C) => {
2101
- A(C), g == null || g(C);
2166
+ }, [r, I, F, o]), te = (C) => {
2167
+ E(C), g == null || g(C);
2102
2168
  }, Q = (C) => {
2103
- const R = o.find((N) => N.key === C);
2104
- if (!(R != null && R.sortable))
2169
+ const T = o.find((N) => N.key === C);
2170
+ if (!(T != null && T.sortable))
2105
2171
  return;
2106
- const F = b === C && x === "asc" ? "desc" : "asc";
2107
- p == null || p(C, F);
2172
+ const H = b === C && x === "asc" ? "desc" : "asc";
2173
+ p == null || p(C, H);
2108
2174
  }, de = (C) => {
2109
- const R = o.find((F) => F.key === C);
2110
- return (R == null ? void 0 : R.type) === "select" && R.options ? R.options.map((F) => ({
2111
- value: F.value,
2112
- label: F.label
2113
- })) : (R == null ? void 0 : R.type) === "badge" ? [
2114
- ...new Set(r.map((N) => N[R.key]).filter(Boolean))
2175
+ const T = o.find((H) => H.key === C);
2176
+ return (T == null ? void 0 : T.type) === "select" && T.options ? T.options.map((H) => ({
2177
+ value: H.value,
2178
+ label: H.label
2179
+ })) : (T == null ? void 0 : T.type) === "badge" ? [
2180
+ ...new Set(r.map((N) => N[T.key]).filter(Boolean))
2115
2181
  ].map((N) => ({
2116
2182
  value: String(N),
2117
2183
  label: String(N).charAt(0).toUpperCase() + String(N).slice(1)
2118
- })) : R ? [
2119
- ...new Set(r.map((N) => N[R.key]).filter(Boolean))
2184
+ })) : T ? [
2185
+ ...new Set(r.map((N) => N[T.key]).filter(Boolean))
2120
2186
  ].map((N) => ({
2121
2187
  value: String(N),
2122
2188
  label: String(N).charAt(0).toUpperCase() + String(N).slice(1)
2123
2189
  })) : [];
2124
- }, ge = (C, R) => {
2190
+ }, ge = (C, T) => {
2125
2191
  var N, J, ce, Ce, Se;
2126
- const F = R[C.key];
2192
+ const H = T[C.key];
2127
2193
  switch (C.type) {
2128
2194
  case "text":
2129
- return /* @__PURE__ */ e(k, { size: "sm", c: F ? void 0 : "dimmed", children: F || "—" });
2195
+ return /* @__PURE__ */ e(k, { size: "sm", c: H ? void 0 : "dimmed", children: H || "—" });
2130
2196
  case "date":
2131
- if (!F)
2197
+ if (!H)
2132
2198
  return /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", children: "—" });
2133
- const X = new Date(F), On = C.format ? X.toLocaleDateString("en-US", {
2199
+ const X = new Date(H), On = C.format ? X.toLocaleDateString("en-US", {
2134
2200
  year: "numeric",
2135
2201
  month: "2-digit",
2136
2202
  day: "2-digit"
@@ -2140,18 +2206,18 @@ const wo = (n) => {
2140
2206
  return C.options ? /* @__PURE__ */ e(
2141
2207
  Qe,
2142
2208
  {
2143
- value: F,
2209
+ value: H,
2144
2210
  data: C.options,
2145
2211
  placeholder: C.label,
2146
2212
  onChange: (ee) => {
2147
2213
  var ke;
2148
- return (ke = C.onSelectChange) == null ? void 0 : ke.call(C, ee, R);
2214
+ return (ke = C.onSelectChange) == null ? void 0 : ke.call(C, ee, T);
2149
2215
  },
2150
- disabled: (N = C.disabled) == null ? void 0 : N.call(C, R)
2216
+ disabled: (N = C.disabled) == null ? void 0 : N.call(C, T)
2151
2217
  }
2152
2218
  ) : /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", children: "—" });
2153
2219
  case "badge":
2154
- const Mn = ((J = C.badgeColors) == null ? void 0 : J[F]) || "gray";
2220
+ const Mn = ((J = C.badgeColors) == null ? void 0 : J[H]) || "gray";
2155
2221
  return /* @__PURE__ */ e(
2156
2222
  Me,
2157
2223
  {
@@ -2160,22 +2226,22 @@ const wo = (n) => {
2160
2226
  size: "sm",
2161
2227
  radius: "md",
2162
2228
  fw: 600,
2163
- children: F || "Unknown"
2229
+ children: H || "Unknown"
2164
2230
  }
2165
2231
  );
2166
2232
  case "avatar":
2167
- const zn = ((ce = C.fallbackText) == null ? void 0 : ce.call(C, R)) || String(F).charAt(0).toUpperCase();
2233
+ const zn = ((ce = C.fallbackText) == null ? void 0 : ce.call(C, T)) || String(H).charAt(0).toUpperCase();
2168
2234
  return /* @__PURE__ */ e(
2169
2235
  he,
2170
2236
  {
2171
- avatar: F,
2237
+ avatar: H,
2172
2238
  size: "xs",
2173
2239
  placeholder: zn,
2174
2240
  showPlaceholder: !0
2175
2241
  }
2176
2242
  );
2177
2243
  case "custom":
2178
- return ((Ce = C.render) == null ? void 0 : Ce.call(C, F, R)) || /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", children: "—" });
2244
+ return ((Ce = C.render) == null ? void 0 : Ce.call(C, H, T)) || /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", children: "—" });
2179
2245
  case "actions":
2180
2246
  return (Se = C.actions) != null && Se.length ? /* @__PURE__ */ f(
2181
2247
  Y,
@@ -2197,8 +2263,8 @@ const wo = (n) => {
2197
2263
  {
2198
2264
  color: ee.color,
2199
2265
  leftSection: ee.icon,
2200
- disabled: (Ge = ee.disabled) == null ? void 0 : Ge.call(ee, R),
2201
- onClick: () => ee.onClick(R),
2266
+ disabled: (Ge = ee.disabled) == null ? void 0 : Ge.call(ee, T),
2267
+ onClick: () => ee.onClick(T),
2202
2268
  styles: {
2203
2269
  item: {
2204
2270
  borderRadius: "var(--mantine-radius-md)"
@@ -2216,8 +2282,8 @@ const wo = (n) => {
2216
2282
  return /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", children: "—" });
2217
2283
  }
2218
2284
  }, me = (C) => {
2219
- var R;
2220
- return (R = o.find((F) => F.key === C)) != null && R.sortable ? b === C ? x === "asc" ? /* @__PURE__ */ e(_e, { size: 14 }) : /* @__PURE__ */ e(be, { size: 14 }) : /* @__PURE__ */ e(_e, { size: 14, style: { opacity: 0.3 } }) : null;
2285
+ var T;
2286
+ return (T = o.find((H) => H.key === C)) != null && T.sortable ? b === C ? x === "asc" ? /* @__PURE__ */ e(_e, { size: 14 }) : /* @__PURE__ */ e(be, { size: 14 }) : /* @__PURE__ */ e(_e, { size: 14, style: { opacity: 0.3 } }) : null;
2221
2287
  }, ue = (() => {
2222
2288
  switch (w) {
2223
2289
  case "sm":
@@ -2229,14 +2295,14 @@ const wo = (n) => {
2229
2295
  }
2230
2296
  })();
2231
2297
  return /* @__PURE__ */ f(v, { pos: "relative", children: [
2232
- /* @__PURE__ */ e(Ln, { visible: a }),
2298
+ /* @__PURE__ */ e(Hn, { visible: a }),
2233
2299
  /* @__PURE__ */ f(L, { gap: "sm", w: "100%", children: [
2234
- /* @__PURE__ */ f(T, { gap: "sm", wrap: "nowrap", justify: "space-between", children: [
2300
+ /* @__PURE__ */ f(P, { gap: "sm", wrap: "nowrap", justify: "space-between", children: [
2235
2301
  /* @__PURE__ */ e(k, { fw: 600, c: "var(--mantine-color-gray-8)", children: n }),
2236
- /* @__PURE__ */ f(T, { gap: "xs", wrap: "nowrap", children: [
2237
- /* @__PURE__ */ f(T, { gap: 4, wrap: "nowrap", children: [
2302
+ /* @__PURE__ */ f(P, { gap: "xs", wrap: "nowrap", children: [
2303
+ /* @__PURE__ */ f(P, { gap: 4, wrap: "nowrap", children: [
2238
2304
  /* @__PURE__ */ e(
2239
- Do,
2305
+ To,
2240
2306
  {
2241
2307
  placeholder: s,
2242
2308
  value: I,
@@ -2249,17 +2315,17 @@ const wo = (n) => {
2249
2315
  W.length > 0 && /* @__PURE__ */ e(
2250
2316
  We,
2251
2317
  {
2252
- activeFilters: H.map((C) => C.filterTag),
2318
+ activeFilters: F.map((C) => C.filterTag),
2253
2319
  onFiltersChange: (C) => {
2254
- E(
2255
- C.map((R) => ({
2256
- filterTag: R,
2320
+ A(
2321
+ C.map((T) => ({
2322
+ filterTag: T,
2257
2323
  onUpdate: () => {
2258
2324
  },
2259
2325
  onRemove: () => {
2260
2326
  }
2261
2327
  }))
2262
- ), m == null || m(C);
2328
+ ), y == null || y(C);
2263
2329
  },
2264
2330
  availableFilters: W,
2265
2331
  size: ue.buttonSize
@@ -2285,17 +2351,17 @@ const wo = (n) => {
2285
2351
  W.length > 0 && /* @__PURE__ */ e(
2286
2352
  $e,
2287
2353
  {
2288
- activeFilters: H.map((C) => C.filterTag),
2354
+ activeFilters: F.map((C) => C.filterTag),
2289
2355
  onFiltersChange: (C) => {
2290
- E(
2291
- C.map((R) => ({
2292
- filterTag: R,
2356
+ A(
2357
+ C.map((T) => ({
2358
+ filterTag: T,
2293
2359
  onUpdate: () => {
2294
2360
  },
2295
2361
  onRemove: () => {
2296
2362
  }
2297
2363
  }))
2298
- ), m == null || m(C);
2364
+ ), y == null || y(C);
2299
2365
  },
2300
2366
  availableFilters: W,
2301
2367
  size: "md",
@@ -2307,7 +2373,7 @@ const wo = (n) => {
2307
2373
  /* @__PURE__ */ f(
2308
2374
  ne,
2309
2375
  {
2310
- striped: y,
2376
+ striped: m,
2311
2377
  highlightOnHover: O,
2312
2378
  highlightOnHoverColor: "var(--mantine-color-gray-0)",
2313
2379
  mt: "xs",
@@ -2322,7 +2388,7 @@ const wo = (n) => {
2322
2388
  cursor: C.sortable ? "pointer" : "default"
2323
2389
  },
2324
2390
  onClick: () => C.sortable && Q(C.key),
2325
- children: /* @__PURE__ */ f(T, { gap: "xs", wrap: "nowrap", children: [
2391
+ children: /* @__PURE__ */ f(P, { gap: "xs", wrap: "nowrap", children: [
2326
2392
  C.icon && /* @__PURE__ */ e(v, { style: { display: "flex", alignItems: "center" }, children: C.icon }),
2327
2393
  /* @__PURE__ */ e(k, { size: ue.textSize, fw: 500, children: C.label }),
2328
2394
  me(C.key)
@@ -2330,21 +2396,21 @@ const wo = (n) => {
2330
2396
  },
2331
2397
  String(C.key)
2332
2398
  )) }) }),
2333
- /* @__PURE__ */ e(ne.Tbody, { children: re.length === 0 ? /* @__PURE__ */ e(ne.Tr, { children: /* @__PURE__ */ e(ne.Td, { colSpan: o.length, ta: "center", py: "xl", children: /* @__PURE__ */ e(k, { c: "dimmed", children: l }) }) }) : re.map((C, R) => /* @__PURE__ */ e(
2399
+ /* @__PURE__ */ e(ne.Tbody, { children: re.length === 0 ? /* @__PURE__ */ e(ne.Tr, { children: /* @__PURE__ */ e(ne.Td, { colSpan: o.length, ta: "center", py: "xl", children: /* @__PURE__ */ e(k, { c: "dimmed", children: l }) }) }) : re.map((C, T) => /* @__PURE__ */ e(
2334
2400
  ne.Tr,
2335
2401
  {
2336
2402
  style: { cursor: h ? "pointer" : "default" },
2337
2403
  onClick: () => h == null ? void 0 : h(C),
2338
- children: o.map((F) => /* @__PURE__ */ e(
2404
+ children: o.map((H) => /* @__PURE__ */ e(
2339
2405
  ne.Td,
2340
2406
  {
2341
- style: { textAlign: F.align || "left" },
2342
- children: ge(F, C)
2407
+ style: { textAlign: H.align || "left" },
2408
+ children: ge(H, C)
2343
2409
  },
2344
- String(F.key)
2410
+ String(H.key)
2345
2411
  ))
2346
2412
  },
2347
- C.id || R
2413
+ C.id || T
2348
2414
  )) })
2349
2415
  ]
2350
2416
  }
@@ -2360,7 +2426,7 @@ const wo = (n) => {
2360
2426
  alignItems: "center",
2361
2427
  minHeight: "60px"
2362
2428
  },
2363
- children: D && /* @__PURE__ */ f(T, { display: "flex", ta: "center", gap: "xs", children: [
2429
+ children: D && /* @__PURE__ */ f(P, { display: "flex", ta: "center", gap: "xs", children: [
2364
2430
  /* @__PURE__ */ e(ae, { size: "sm", color: "gray.5" }),
2365
2431
  /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", fw: 500, children: "Loading more..." })
2366
2432
  ] })
@@ -2368,10 +2434,10 @@ const wo = (n) => {
2368
2434
  )
2369
2435
  ] });
2370
2436
  };
2371
- Object.assign(_o, {
2437
+ Object.assign(Yo, {
2372
2438
  // Future static methods or sub-components can be added here
2373
2439
  });
2374
- const Zo = ({
2440
+ const qo = ({
2375
2441
  onAvatarSelect: n,
2376
2442
  onEmojiSelect: r,
2377
2443
  onImageSelect: o,
@@ -2379,29 +2445,29 @@ const Zo = ({
2379
2445
  } = {}) => {
2380
2446
  const [i, c] = S(
2381
2447
  "emoji"
2382
- ), [a, l] = S(null), [s, d] = S(null), [u, m] = S(null), [p, b] = S(null), [x, g] = S(null), h = U((I) => {
2448
+ ), [a, l] = S(null), [s, d] = S(null), [u, y] = S(null), [p, b] = S(null), [x, g] = S(null), h = U((I) => {
2383
2449
  c(I);
2384
2450
  }, []), w = U(
2385
2451
  (I) => {
2386
2452
  l(I);
2387
2453
  },
2388
2454
  []
2389
- ), y = U((I) => {
2455
+ ), m = U((I) => {
2390
2456
  g(I);
2391
- const A = new FileReader();
2392
- A.onload = (H) => {
2457
+ const E = new FileReader();
2458
+ E.onload = (F) => {
2393
2459
  var j;
2394
- const E = (j = H.target) == null ? void 0 : j.result;
2395
- d(E);
2396
- }, A.readAsDataURL(I);
2460
+ const A = (j = F.target) == null ? void 0 : j.result;
2461
+ d(A);
2462
+ }, E.readAsDataURL(I);
2397
2463
  }, []), O = U(
2398
2464
  (I) => {
2399
- m(I), d(null), g(null), b(null), n == null || n({ type: "emoji", value: I }), r == null || r(I);
2465
+ y(I), d(null), g(null), b(null), n == null || n({ type: "emoji", value: I }), r == null || r(I);
2400
2466
  },
2401
2467
  [n, r]
2402
2468
  ), M = U(
2403
2469
  (I) => {
2404
- b(I), d(null), g(null), m(null), n == null || n({ type: "icon", value: I }), t == null || t(I);
2470
+ b(I), d(null), g(null), y(null), n == null || n({ type: "icon", value: I }), t == null || t(I);
2405
2471
  },
2406
2472
  [n, t]
2407
2473
  ), D = U(() => {
@@ -2412,10 +2478,10 @@ const Zo = ({
2412
2478
  value: I
2413
2479
  }), o == null || o(x);
2414
2480
  }
2415
- }, [x, s, n, o]), P = U(() => {
2416
- d(null), g(null), m(null), b(null);
2481
+ }, [x, s, n, o]), R = U(() => {
2482
+ d(null), g(null), y(null), b(null);
2417
2483
  }, []), z = U(() => {
2418
- d(null), m(null), b(null), g(null), c("emoji"), l(null);
2484
+ d(null), y(null), b(null), g(null), c("emoji"), l(null);
2419
2485
  }, []);
2420
2486
  return {
2421
2487
  selectedTab: i,
@@ -2426,14 +2492,14 @@ const Zo = ({
2426
2492
  selectedFile: x,
2427
2493
  handleTabChange: h,
2428
2494
  handleTabHover: w,
2429
- handleImagePreview: y,
2495
+ handleImagePreview: m,
2430
2496
  handleImageAccept: D,
2431
2497
  handleEmojiSelect: O,
2432
2498
  handleIconSelect: M,
2433
- clearImagePreview: P,
2499
+ clearImagePreview: R,
2434
2500
  resetState: z
2435
2501
  };
2436
- }, Yo = ({
2502
+ }, Xo = ({
2437
2503
  opened: n,
2438
2504
  onClose: r,
2439
2505
  popoverRef: o
@@ -2458,7 +2524,7 @@ const Zo = ({
2458
2524
  handleClickOutside: t,
2459
2525
  handleEscape: i
2460
2526
  };
2461
- }, qo = ({
2527
+ }, Ko = ({
2462
2528
  selectedTab: n,
2463
2529
  tabHovered: r,
2464
2530
  onTabChange: o,
@@ -2509,7 +2575,7 @@ const Zo = ({
2509
2575
  },
2510
2576
  fw: 500,
2511
2577
  fz: "var(--mantine-font-size-sm)",
2512
- children: /* @__PURE__ */ e(T, { gap: 4, children: "Emoji" })
2578
+ children: /* @__PURE__ */ e(P, { gap: 4, children: "Emoji" })
2513
2579
  }
2514
2580
  )
2515
2581
  }
@@ -2543,7 +2609,7 @@ const Zo = ({
2543
2609
  },
2544
2610
  fw: 500,
2545
2611
  fz: "var(--mantine-font-size-sm)",
2546
- children: /* @__PURE__ */ e(T, { gap: 4, children: "Icons" })
2612
+ children: /* @__PURE__ */ e(P, { gap: 4, children: "Icons" })
2547
2613
  }
2548
2614
  )
2549
2615
  }
@@ -2577,12 +2643,12 @@ const Zo = ({
2577
2643
  },
2578
2644
  fw: 500,
2579
2645
  fz: "var(--mantine-font-size-sm)",
2580
- children: /* @__PURE__ */ e(T, { gap: 4, children: "Image" })
2646
+ children: /* @__PURE__ */ e(P, { gap: 4, children: "Image" })
2581
2647
  }
2582
2648
  )
2583
2649
  }
2584
2650
  ),
2585
- i && c && /* @__PURE__ */ e(T, { justify: "flex-end", display: "flex", flex: 1, pb: "xs", children: /* @__PURE__ */ e(
2651
+ i && c && /* @__PURE__ */ e(P, { justify: "flex-end", display: "flex", flex: 1, pb: "xs", children: /* @__PURE__ */ e(
2586
2652
  v,
2587
2653
  {
2588
2654
  style: {
@@ -2615,8 +2681,8 @@ const Zo = ({
2615
2681
  );
2616
2682
  };
2617
2683
  let Xe = !1;
2618
- Xe || (co({ data: ze }), Xe = !0);
2619
- const Xo = () => {
2684
+ Xe || (lo({ data: ze }), Xe = !0);
2685
+ const Jo = () => {
2620
2686
  const n = [
2621
2687
  {
2622
2688
  id: "frequent",
@@ -2635,10 +2701,10 @@ const Xo = () => {
2635
2701
  o = /* @__PURE__ */ e(sn, { size: 20, strokeWidth: 2 }), t = "Animals & Nature";
2636
2702
  break;
2637
2703
  case "foods":
2638
- o = /* @__PURE__ */ e(qn, { size: 20, strokeWidth: 2 }), t = "Food & Drink";
2704
+ o = /* @__PURE__ */ e(Kn, { size: 20, strokeWidth: 2 }), t = "Food & Drink";
2639
2705
  break;
2640
2706
  case "activity":
2641
- o = /* @__PURE__ */ e(Yn, { size: 20, strokeWidth: 2 }), t = "Activities";
2707
+ o = /* @__PURE__ */ e(Xn, { size: 20, strokeWidth: 2 }), t = "Activities";
2642
2708
  break;
2643
2709
  case "travel":
2644
2710
  o = /* @__PURE__ */ e(Ze, { size: 20, strokeWidth: 2 }), t = "Travel & Places";
@@ -2647,13 +2713,13 @@ const Xo = () => {
2647
2713
  o = /* @__PURE__ */ e(Ze, { size: 20, strokeWidth: 2 }), t = "Travel & Places";
2648
2714
  break;
2649
2715
  case "objects":
2650
- o = /* @__PURE__ */ e(Zn, { size: 20, strokeWidth: 2 }), t = "Objects";
2716
+ o = /* @__PURE__ */ e(qn, { size: 20, strokeWidth: 2 }), t = "Objects";
2651
2717
  break;
2652
2718
  case "symbols":
2653
- o = /* @__PURE__ */ e(_n, { size: 20, strokeWidth: 2 }), t = "Symbols";
2719
+ o = /* @__PURE__ */ e(Yn, { size: 20, strokeWidth: 2 }), t = "Symbols";
2654
2720
  break;
2655
2721
  case "flags":
2656
- o = /* @__PURE__ */ e(Vn, { size: 20, strokeWidth: 2 }), t = "Flags";
2722
+ o = /* @__PURE__ */ e(Zn, { size: 20, strokeWidth: 2 }), t = "Flags";
2657
2723
  break;
2658
2724
  case "frequent":
2659
2725
  return;
@@ -2668,7 +2734,7 @@ const Xo = () => {
2668
2734
  });
2669
2735
  }
2670
2736
  }), n;
2671
- }, Ko = ({
2737
+ }, er = ({
2672
2738
  onEmojiSelect: n,
2673
2739
  height: r = 200
2674
2740
  }) => {
@@ -2678,9 +2744,9 @@ const Xo = () => {
2678
2744
  return h ? JSON.parse(h) : [];
2679
2745
  }
2680
2746
  return [];
2681
- }), [s, d] = S([]), [u, m] = S(!1), p = Xo();
2747
+ }), [s, d] = S([]), [u, y] = S(!1), p = Jo();
2682
2748
  B(() => {
2683
- o.trim() ? (m(!0), so.search(o).then((h) => {
2749
+ o.trim() ? (y(!0), uo.search(o).then((h) => {
2684
2750
  d(
2685
2751
  h.map((w) => ({
2686
2752
  id: w.id,
@@ -2688,7 +2754,7 @@ const Xo = () => {
2688
2754
  name: w.name,
2689
2755
  keywords: w.keywords
2690
2756
  }))
2691
- ), m(!1);
2757
+ ), y(!1);
2692
2758
  })) : d([]);
2693
2759
  }, [o]);
2694
2760
  const b = q(() => {
@@ -2705,17 +2771,17 @@ const Xo = () => {
2705
2771
  (w) => w.id === i
2706
2772
  );
2707
2773
  return h ? h.emojis.map((w) => {
2708
- const y = ze.emojis[w];
2774
+ const m = ze.emojis[w];
2709
2775
  return {
2710
- id: y.id,
2711
- native: y.skins[0].native,
2712
- name: y.name,
2713
- keywords: y.keywords
2776
+ id: m.id,
2777
+ native: m.skins[0].native,
2778
+ name: m.name,
2779
+ keywords: m.keywords
2714
2780
  };
2715
2781
  }) : [];
2716
2782
  }, [o, i, a, s]), x = (h) => {
2717
2783
  n(h), l((w) => {
2718
- const y = w.filter((M) => M !== h), O = [h, ...y].slice(0, 20);
2784
+ const m = w.filter((M) => M !== h), O = [h, ...m].slice(0, 20);
2719
2785
  return typeof window < "u" && localStorage.setItem("emoji-frequent", JSON.stringify(O)), O;
2720
2786
  });
2721
2787
  };
@@ -2742,7 +2808,7 @@ const Xo = () => {
2742
2808
  /* @__PURE__ */ e(k, { size: "sm", c: "var(--mantine-color-gray-6)", ta: "left", fw: 500, children: ((h) => {
2743
2809
  if (o.trim())
2744
2810
  return "Results";
2745
- const w = p.find((y) => y.id === h);
2811
+ const w = p.find((m) => m.id === h);
2746
2812
  return w ? w.name : h.charAt(0).toUpperCase() + h.slice(1);
2747
2813
  })(i) })
2748
2814
  ] }) }),
@@ -3867,21 +3933,21 @@ const ye = [
3867
3933
  name: "Communication",
3868
3934
  icons: xn
3869
3935
  }
3870
- ], Jo = {
3936
+ ], nr = {
3871
3937
  recent: /* @__PURE__ */ e(cn, { size: 20, strokeWidth: 2.5 }),
3872
- user: /* @__PURE__ */ e(Xn, { size: 20, strokeWidth: 2.5 }),
3873
- business: /* @__PURE__ */ e(Kn, { size: 20, strokeWidth: 2.5 }),
3874
- tech: /* @__PURE__ */ e(Jn, { size: 20, strokeWidth: 2.5 }),
3938
+ user: /* @__PURE__ */ e(Jn, { size: 20, strokeWidth: 2.5 }),
3939
+ business: /* @__PURE__ */ e(eo, { size: 20, strokeWidth: 2.5 }),
3940
+ tech: /* @__PURE__ */ e(no, { size: 20, strokeWidth: 2.5 }),
3875
3941
  expressions: /* @__PURE__ */ e(Oe, { size: 20, strokeWidth: 2.5 }),
3876
3942
  nature: /* @__PURE__ */ e(sn, { size: 20, strokeWidth: 2.5 }),
3877
- shapes: /* @__PURE__ */ e(eo, { size: 20, strokeWidth: 2.5 }),
3878
- actions: /* @__PURE__ */ e(no, { size: 20, strokeWidth: 2.5 }),
3879
- communication: /* @__PURE__ */ e(oo, { size: 20, strokeWidth: 2.5 })
3880
- }, er = ({
3943
+ shapes: /* @__PURE__ */ e(oo, { size: 20, strokeWidth: 2.5 }),
3944
+ actions: /* @__PURE__ */ e(ro, { size: 20, strokeWidth: 2.5 }),
3945
+ communication: /* @__PURE__ */ e(to, { size: 20, strokeWidth: 2.5 })
3946
+ }, or = ({
3881
3947
  selectedCategory: n,
3882
3948
  onCategoryChange: r
3883
3949
  }) => /* @__PURE__ */ e(en, { gap: "0px", justify: "center", wrap: "wrap", children: ye.map((o) => {
3884
- const t = Jo[o.id];
3950
+ const t = nr[o.id];
3885
3951
  return /* @__PURE__ */ e(
3886
3952
  xe,
3887
3953
  {
@@ -3926,10 +3992,10 @@ const ye = [
3926
3992
  const [o, t] = S(""), [i, c] = S("recent"), [a, l] = S(!1), [s, d] = S([]);
3927
3993
  Dn(() => {
3928
3994
  if (typeof window < "u") {
3929
- const y = localStorage.getItem("avatar-icon-recent");
3930
- if (y)
3995
+ const m = localStorage.getItem("avatar-icon-recent");
3996
+ if (m)
3931
3997
  try {
3932
- d(JSON.parse(y));
3998
+ d(JSON.parse(m));
3933
3999
  } catch (O) {
3934
4000
  console.warn(
3935
4001
  "Error parsing recent icons from localStorage:",
@@ -3939,52 +4005,52 @@ const ye = [
3939
4005
  }
3940
4006
  }, []);
3941
4007
  const u = q(() => ye.filter(
3942
- (y) => y.id !== "recent" && !("isDynamic" in y)
3943
- ).flatMap((y) => y.icons), []), m = q(() => {
4008
+ (m) => m.id !== "recent" && !("isDynamic" in m)
4009
+ ).flatMap((m) => m.icons), []), y = q(() => {
3944
4010
  if (i === "recent") {
3945
4011
  const O = new Set(u);
3946
4012
  return s.filter(
3947
4013
  (M) => O.has(M)
3948
4014
  );
3949
4015
  }
3950
- const y = ye.find(
4016
+ const m = ye.find(
3951
4017
  (O) => O.id === i
3952
4018
  );
3953
- return (y == null ? void 0 : y.icons) || [];
4019
+ return (m == null ? void 0 : m.icons) || [];
3954
4020
  }, [i, s, u]), p = U(
3955
- (y, O) => {
3956
- if (!y.trim())
4021
+ (m, O) => {
4022
+ if (!m.trim())
3957
4023
  return O;
3958
- const M = y.toLowerCase().trim(), D = M.split(/\s+/);
3959
- return O.filter((P) => {
3960
- const I = P.replace(/^Icon/, "").split(/(?=[A-Z])/).map((A) => A.toLowerCase().trim()).filter((A) => A.length > 0);
3961
- return !!(I.some((A) => D.some((H) => A === H)) || M.length > 2 && I.some(
3962
- (A) => D.some((H) => A.startsWith(H))
4024
+ const M = m.toLowerCase().trim(), D = M.split(/\s+/);
4025
+ return O.filter((R) => {
4026
+ const I = R.replace(/^Icon/, "").split(/(?=[A-Z])/).map((E) => E.toLowerCase().trim()).filter((E) => E.length > 0);
4027
+ return !!(I.some((E) => D.some((F) => E === F)) || M.length > 2 && I.some(
4028
+ (E) => D.some((F) => E.startsWith(F))
3963
4029
  ) || M.length <= 2 && I.some(
3964
- (A) => D.some((H) => A.includes(H))
4030
+ (E) => D.some((F) => E.includes(F))
3965
4031
  ) || D.length > 1 && D.every(
3966
- (A) => I.some((H) => H === A || H.startsWith(A))
4032
+ (E) => I.some((F) => F === E || F.startsWith(E))
3967
4033
  ));
3968
4034
  });
3969
4035
  },
3970
4036
  []
3971
- ), b = q(() => o.trim() ? p(o, u) : m, [o, m, u, p]), x = U(
3972
- (y) => {
3973
- u.includes(y) && d((M) => {
4037
+ ), b = q(() => o.trim() ? p(o, u) : y, [o, y, u, p]), x = U(
4038
+ (m) => {
4039
+ u.includes(m) && d((M) => {
3974
4040
  const D = [
3975
- y,
3976
- ...M.filter((P) => P !== y)
4041
+ m,
4042
+ ...M.filter((R) => R !== m)
3977
4043
  ].slice(0, 20);
3978
4044
  return typeof window < "u" && localStorage.setItem(
3979
4045
  "avatar-icon-recent",
3980
4046
  JSON.stringify(D)
3981
4047
  ), D;
3982
- }), n(y);
4048
+ }), n(m);
3983
4049
  },
3984
4050
  [n, u]
3985
4051
  ), g = U(
3986
- (y) => {
3987
- i !== y && (t(""), c(y), requestAnimationFrame(() => {
4052
+ (m) => {
4053
+ i !== m && (t(""), c(m), requestAnimationFrame(() => {
3988
4054
  l(!0), setTimeout(() => l(!1), 100);
3989
4055
  }));
3990
4056
  },
@@ -3995,9 +4061,9 @@ const ye = [
3995
4061
  /* @__PURE__ */ e(
3996
4062
  Fe,
3997
4063
  {
3998
- placeholder: o.trim() ? "Search all icons..." : `Search in ${(h = ye.find((y) => y.id === i)) == null ? void 0 : h.name}...`,
4064
+ placeholder: o.trim() ? "Search all icons..." : `Search in ${(h = ye.find((m) => m.id === i)) == null ? void 0 : h.name}...`,
3999
4065
  value: o,
4000
- onChange: (y) => t(y.target.value),
4066
+ onChange: (m) => t(m.target.value),
4001
4067
  leftSection: /* @__PURE__ */ e(Ne, { size: 16 }),
4002
4068
  fw: 500,
4003
4069
  size: "sm",
@@ -4010,7 +4076,7 @@ const ye = [
4010
4076
  }
4011
4077
  }
4012
4078
  ),
4013
- /* @__PURE__ */ e(k, { size: "sm", c: "var(--mantine-color-gray-6)", ta: "left", fw: 500, children: o.trim() ? "Results" : (w = ye.find((y) => y.id === i)) == null ? void 0 : w.name })
4079
+ /* @__PURE__ */ e(k, { size: "sm", c: "var(--mantine-color-gray-6)", ta: "left", fw: 500, children: o.trim() ? "Results" : (w = ye.find((m) => m.id === i)) == null ? void 0 : w.name })
4014
4080
  ] }) }),
4015
4081
  /* @__PURE__ */ e(v, { style: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ e(le, { h: "100%", type: "hover", children: /* @__PURE__ */ e(
4016
4082
  v,
@@ -4023,14 +4089,14 @@ const ye = [
4023
4089
  opacity: a ? 0.7 : 1,
4024
4090
  transition: "opacity 0.05s ease"
4025
4091
  },
4026
- children: b.map((y) => /* @__PURE__ */ e(
4092
+ children: b.map((m) => /* @__PURE__ */ e(
4027
4093
  un,
4028
4094
  {
4029
- iconName: y,
4030
- onClick: () => x(y),
4095
+ iconName: m,
4096
+ onClick: () => x(m),
4031
4097
  size: 20
4032
4098
  },
4033
- o.trim() ? `search-${y}` : `${i}-${y}`
4099
+ o.trim() ? `search-${m}` : `${i}-${m}`
4034
4100
  ))
4035
4101
  },
4036
4102
  `${i}-${o}`
@@ -4042,7 +4108,7 @@ const ye = [
4042
4108
  py: "xs",
4043
4109
  style: { borderTop: "1px solid var(--mantine-color-gray-3)" },
4044
4110
  children: /* @__PURE__ */ e(
4045
- er,
4111
+ or,
4046
4112
  {
4047
4113
  selectedCategory: i,
4048
4114
  onCategoryChange: g
@@ -4054,7 +4120,7 @@ const ye = [
4054
4120
  }
4055
4121
  );
4056
4122
  bn.displayName = "IconGrid";
4057
- const nr = ({
4123
+ const rr = ({
4058
4124
  previewImage: n,
4059
4125
  fileInputRef: r,
4060
4126
  selectedEmoji: o,
@@ -4130,7 +4196,7 @@ const nr = ({
4130
4196
  disabled: i
4131
4197
  }
4132
4198
  ),
4133
- (n || o) && /* @__PURE__ */ f(T, { gap: "sm", w: "100%", children: [
4199
+ (n || o) && /* @__PURE__ */ f(P, { gap: "sm", w: "100%", children: [
4134
4200
  /* @__PURE__ */ e(
4135
4201
  K,
4136
4202
  {
@@ -4154,7 +4220,7 @@ const nr = ({
4154
4220
  )
4155
4221
  ] }),
4156
4222
  /* @__PURE__ */ e(k, { size: "xs", c: "var(--mantine-color-gray-6)", ta: "center", children: "Supported formats: JPG, PNG, GIF, WebP" })
4157
- ] }) }), or = ({ onEmojiSelect: n }) => /* @__PURE__ */ e(Ko, { onEmojiSelect: n, height: 358 }), rr = ({ onIconSelect: n }) => /* @__PURE__ */ e(bn, { onIconSelect: n, height: 358 }), tr = ({
4223
+ ] }) }), tr = ({ onEmojiSelect: n }) => /* @__PURE__ */ e(er, { onEmojiSelect: n, height: 358 }), ir = ({ onIconSelect: n }) => /* @__PURE__ */ e(bn, { onIconSelect: n, height: 358 }), ar = ({
4158
4224
  previewImage: n,
4159
4225
  selectedEmoji: r,
4160
4226
  size: o,
@@ -4165,7 +4231,7 @@ const nr = ({
4165
4231
  onClearImagePreview: l,
4166
4232
  fileInputRef: s
4167
4233
  }) => /* @__PURE__ */ e(
4168
- nr,
4234
+ rr,
4169
4235
  {
4170
4236
  previewImage: n,
4171
4237
  fileInputRef: s,
@@ -4177,7 +4243,7 @@ const nr = ({
4177
4243
  onImageAccept: a,
4178
4244
  onClearImagePreview: l
4179
4245
  }
4180
- ), ir = () => /* @__PURE__ */ e(
4246
+ ), cr = () => /* @__PURE__ */ e(
4181
4247
  v,
4182
4248
  {
4183
4249
  style: {
@@ -4192,7 +4258,7 @@ const nr = ({
4192
4258
  /* @__PURE__ */ e(k, { size: "sm", c: "gray.6", children: "Loading avatar options..." })
4193
4259
  ] })
4194
4260
  }
4195
- ), Nr = ({
4261
+ ), $r = ({
4196
4262
  opened: n,
4197
4263
  onOpen: r,
4198
4264
  onClose: o,
@@ -4207,34 +4273,34 @@ const nr = ({
4207
4273
  onIconSelect: s,
4208
4274
  size: d = "lg",
4209
4275
  loading: u = !1,
4210
- placeholder: m,
4276
+ placeholder: y,
4211
4277
  showPlaceholder: p = !0,
4212
4278
  position: b = "bottom-start",
4213
4279
  withinPortal: x = !0,
4214
4280
  zIndex: g = 1e3
4215
4281
  }) => {
4216
- const h = _(null), w = _(null), y = _(null), {
4282
+ const h = _(null), w = _(null), m = _(null), {
4217
4283
  selectedTab: O,
4218
4284
  tabHovered: M,
4219
4285
  previewImage: D,
4220
- selectedEmoji: P,
4286
+ selectedEmoji: R,
4221
4287
  selectedIcon: z,
4222
4288
  selectedFile: I,
4223
- handleTabChange: A,
4224
- handleTabHover: H,
4225
- handleImagePreview: E,
4289
+ handleTabChange: E,
4290
+ handleTabHover: F,
4291
+ handleImagePreview: A,
4226
4292
  handleImageAccept: j,
4227
4293
  handleEmojiSelect: W,
4228
4294
  handleIconSelect: re,
4229
4295
  clearImagePreview: te,
4230
4296
  resetState: Q
4231
- } = Zo({
4297
+ } = qo({
4232
4298
  onAvatarSelect: i,
4233
4299
  onEmojiSelect: a,
4234
4300
  onImageSelect: l,
4235
4301
  onIconSelect: s
4236
4302
  });
4237
- Yo({
4303
+ Xo({
4238
4304
  opened: n,
4239
4305
  onClose: o,
4240
4306
  popoverRef: w
@@ -4246,32 +4312,32 @@ const nr = ({
4246
4312
  }, ge = (X) => {
4247
4313
  console.log("Icon clicked:", X), re(X), o();
4248
4314
  }, me = (X) => {
4249
- X && E(X);
4315
+ X && A(X);
4250
4316
  }, $ = () => {
4251
- I ? (j(), o()) : (P || z) && o();
4317
+ I ? (j(), o()) : (R || z) && o();
4252
4318
  }, ue = () => {
4253
4319
  h.current && h.current.click();
4254
4320
  }, C = () => {
4255
4321
  te();
4256
- }, R = () => {
4322
+ }, T = () => {
4257
4323
  console.log("Avatar removed"), c == null || c(), o();
4258
- }, F = () => !!t, N = () => u ? /* @__PURE__ */ e(Ae, { size: d, loading: !0 }) : /* @__PURE__ */ e(
4324
+ }, H = () => !!t, N = () => u ? /* @__PURE__ */ e(Ae, { size: d, loading: !0 }) : /* @__PURE__ */ e(
4259
4325
  he,
4260
4326
  {
4261
4327
  avatar: t,
4262
4328
  size: d,
4263
- placeholder: m,
4329
+ placeholder: y,
4264
4330
  showPlaceholder: p,
4265
4331
  editable: !0,
4266
4332
  onClick: () => {
4267
4333
  !u && !n && r();
4268
4334
  }
4269
4335
  }
4270
- ), J = /* @__PURE__ */ e(or, { onEmojiSelect: de }), ce = /* @__PURE__ */ e(rr, { onIconSelect: ge }), Ce = /* @__PURE__ */ e(
4271
- tr,
4336
+ ), J = /* @__PURE__ */ e(tr, { onEmojiSelect: de }), ce = /* @__PURE__ */ e(ir, { onIconSelect: ge }), Ce = /* @__PURE__ */ e(
4337
+ ar,
4272
4338
  {
4273
4339
  previewImage: D,
4274
- selectedEmoji: P,
4340
+ selectedEmoji: R,
4275
4341
  size: d,
4276
4342
  loading: u,
4277
4343
  onFileInputClick: ue,
@@ -4281,14 +4347,14 @@ const nr = ({
4281
4347
  fileInputRef: h
4282
4348
  }
4283
4349
  ), Se = /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
4284
- qo,
4350
+ Ko,
4285
4351
  {
4286
4352
  selectedTab: O,
4287
4353
  tabHovered: M,
4288
- onTabChange: A,
4289
- onTabHover: H,
4290
- onRemove: R,
4291
- hasAvatar: F(),
4354
+ onTabChange: E,
4355
+ onTabHover: F,
4356
+ onRemove: T,
4357
+ hasAvatar: H(),
4292
4358
  children: O === "emoji" ? J : O === "icons" ? ce : Ce
4293
4359
  }
4294
4360
  ) });
@@ -4312,28 +4378,28 @@ const nr = ({
4312
4378
  duration: 150
4313
4379
  },
4314
4380
  children: [
4315
- /* @__PURE__ */ e(Ie.Target, { children: /* @__PURE__ */ e("div", { ref: y, style: { position: "relative" }, children: N() }) }),
4381
+ /* @__PURE__ */ e(Ie.Target, { children: /* @__PURE__ */ e("div", { ref: m, style: { position: "relative" }, children: N() }) }),
4316
4382
  /* @__PURE__ */ e(
4317
4383
  Ie.Dropdown,
4318
4384
  {
4319
4385
  ref: w,
4320
4386
  p: 0,
4321
4387
  style: { width: "auto", overflow: "hidden", zIndex: g },
4322
- children: /* @__PURE__ */ e(Rn, { fallback: /* @__PURE__ */ e(ir, {}), children: Se })
4388
+ children: /* @__PURE__ */ e(Rn, { fallback: /* @__PURE__ */ e(cr, {}), children: Se })
4323
4389
  }
4324
4390
  )
4325
4391
  ]
4326
4392
  }
4327
4393
  ) });
4328
- }, ar = (n) => {
4394
+ }, sr = (n) => {
4329
4395
  if (!n || typeof n != "string")
4330
4396
  return !1;
4331
4397
  const r = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
4332
4398
  return n.length < 5 || n.length > 254 ? !1 : r.test(n.trim());
4333
- }, cr = (n) => {
4399
+ }, lr = (n) => {
4334
4400
  const r = [];
4335
4401
  return n.forEach((o) => {
4336
- ar(o) || r.push({
4402
+ sr(o) || r.push({
4337
4403
  email: o,
4338
4404
  error: "Please enter a valid email address"
4339
4405
  });
@@ -4341,7 +4407,7 @@ const nr = ({
4341
4407
  isValid: r.length === 0,
4342
4408
  errors: r
4343
4409
  };
4344
- }, sr = (n) => {
4410
+ }, dr = (n) => {
4345
4411
  const r = [], o = /* @__PURE__ */ new Set();
4346
4412
  return n.forEach((t) => {
4347
4413
  const i = t.toLowerCase().trim();
@@ -4350,13 +4416,13 @@ const nr = ({
4350
4416
  error: "This email has already been added"
4351
4417
  }) : o.add(i);
4352
4418
  }), r;
4353
- }, lr = (n) => {
4354
- const r = cr(n), o = sr(n), t = [...r.errors, ...o];
4419
+ }, ur = (n) => {
4420
+ const r = lr(n), o = dr(n), t = [...r.errors, ...o];
4355
4421
  return {
4356
4422
  isValid: t.length === 0,
4357
4423
  errors: t
4358
4424
  };
4359
- }, dr = ({
4425
+ }, fr = ({
4360
4426
  value: n,
4361
4427
  onChange: r,
4362
4428
  onInputChange: o,
@@ -4375,7 +4441,7 @@ const nr = ({
4375
4441
  o && o(c);
4376
4442
  }, [c, o]), B(() => {
4377
4443
  if (n.length > 0) {
4378
- const g = lr(n);
4444
+ const g = ur(n);
4379
4445
  s(g.errors);
4380
4446
  } else
4381
4447
  s([]);
@@ -4384,8 +4450,8 @@ const nr = ({
4384
4450
  if (!g)
4385
4451
  return;
4386
4452
  let h;
4387
- const w = (y) => {
4388
- const M = y.target.value || "";
4453
+ const w = (m) => {
4454
+ const M = m.target.value || "";
4389
4455
  clearTimeout(h), h = setTimeout(() => {
4390
4456
  a(M);
4391
4457
  }, 150);
@@ -4394,19 +4460,19 @@ const nr = ({
4394
4460
  g.removeEventListener("input", w), clearTimeout(h);
4395
4461
  };
4396
4462
  }, []);
4397
- const m = U(
4463
+ const y = U(
4398
4464
  (g) => {
4399
- const h = t.map((y) => ({
4400
- name: y.name || y.email,
4401
- email: y.email
4402
- })), w = g.map((y) => {
4465
+ const h = t.map((m) => ({
4466
+ name: m.name || m.email,
4467
+ email: m.email
4468
+ })), w = g.map((m) => {
4403
4469
  const O = h.find(
4404
- (M) => M.name.toLowerCase() === y.toLowerCase()
4470
+ (M) => M.name.toLowerCase() === m.toLowerCase()
4405
4471
  );
4406
- return O ? O.email : y;
4407
- }).filter((y) => y.includes("@") ? !0 : !h.some((M) => {
4408
- const D = M.name.toLowerCase(), P = y.toLowerCase();
4409
- return D.startsWith(P) && P !== D;
4472
+ return O ? O.email : m;
4473
+ }).filter((m) => m.includes("@") ? !0 : !h.some((M) => {
4474
+ const D = M.name.toLowerCase(), R = m.toLowerCase();
4475
+ return D.startsWith(R) && R !== D;
4410
4476
  }));
4411
4477
  r(w), a("");
4412
4478
  },
@@ -4425,7 +4491,7 @@ const nr = ({
4425
4491
  displayValue: u,
4426
4492
  validationErrors: l,
4427
4493
  isValid: b,
4428
- handleEmailChange: m,
4494
+ handleEmailChange: y,
4429
4495
  clearInput: p,
4430
4496
  handleInvite: x
4431
4497
  };
@@ -4437,7 +4503,7 @@ const nr = ({
4437
4503
  suggestedUsers: i = [],
4438
4504
  roleOptions: c = []
4439
4505
  }) => {
4440
- const [a, l] = S([]), [s, d] = S([]), [u, m] = S(""), [p, b] = S(
4506
+ const [a, l] = S([]), [s, d] = S([]), [u, y] = S(""), [p, b] = S(
4441
4507
  {}
4442
4508
  ), x = c.length > 0 ? c[0].value : void 0, [g, h] = S(
4443
4509
  x
@@ -4445,34 +4511,34 @@ const nr = ({
4445
4511
  B(() => {
4446
4512
  c.length > 0 && !g && h(c[0].value);
4447
4513
  }, [c.length, g]), B(() => {
4448
- const E = i.filter((j) => a.includes(j.email)).map((j) => j.id);
4514
+ const A = i.filter((j) => a.includes(j.email)).map((j) => j.id);
4449
4515
  d(
4450
- (j) => j.filter((W) => E.includes(W))
4516
+ (j) => j.filter((W) => A.includes(W))
4451
4517
  );
4452
4518
  }, [a, i.length]);
4453
- const [w, y] = S(
4519
+ const [w, m] = S(
4454
4520
  "invite"
4455
4521
  ), [O, M] = S(
4456
4522
  null
4457
- ), D = (E, j, W) => {
4458
- n && n(E, j, W), l([]), m("");
4459
- }, P = (E, j) => {
4460
- r && r(E, j);
4461
- }, z = (E) => {
4462
- o && o(E);
4463
- }, I = (E) => {
4523
+ ), D = (A, j, W) => {
4524
+ n && n(A, j, W), l([]), y("");
4525
+ }, R = (A, j) => {
4526
+ r && r(A, j);
4527
+ }, z = (A) => {
4528
+ o && o(A);
4529
+ }, I = (A) => {
4464
4530
  d(
4465
- (j) => j.includes(E) ? j.filter((W) => W !== E) : [...j, E]
4531
+ (j) => j.includes(A) ? j.filter((W) => W !== A) : [...j, A]
4466
4532
  );
4467
- }, A = (E) => {
4468
- a.includes(E.email) || (l([...a, E.email]), b((j) => ({
4533
+ }, E = (A) => {
4534
+ a.includes(A.email) || (l([...a, A.email]), b((j) => ({
4469
4535
  ...j,
4470
- [E.email]: E.name || E.email
4471
- })), s.includes(E.id) || d([...s, E.id]), m(""));
4472
- }, H = u.trim() ? i.filter((E) => {
4536
+ [A.email]: A.name || A.email
4537
+ })), s.includes(A.id) || d([...s, A.id]), y(""));
4538
+ }, F = u.trim() ? i.filter((A) => {
4473
4539
  var W;
4474
4540
  const j = u.toLowerCase();
4475
- return E.email.toLowerCase().includes(j) || ((W = E.name) == null ? void 0 : W.toLowerCase().includes(j));
4541
+ return A.email.toLowerCase().includes(j) || ((W = A.name) == null ? void 0 : W.toLowerCase().includes(j));
4476
4542
  }) : [];
4477
4543
  return {
4478
4544
  emails: a,
@@ -4480,21 +4546,21 @@ const nr = ({
4480
4546
  selectedUsers: s,
4481
4547
  setSelectedUsers: d,
4482
4548
  inputText: u,
4483
- setInputText: m,
4549
+ setInputText: y,
4484
4550
  tagDisplayMap: p,
4485
4551
  setTagDisplayMap: b,
4486
4552
  selectedRole: g,
4487
4553
  setSelectedRole: h,
4488
4554
  selectedTab: w,
4489
- setSelectedTab: y,
4555
+ setSelectedTab: m,
4490
4556
  tabHovered: O,
4491
4557
  setTabHovered: M,
4492
- filteredUsers: H,
4558
+ filteredUsers: F,
4493
4559
  handleInvite: D,
4494
- handleUpdateRole: P,
4560
+ handleUpdateRole: R,
4495
4561
  handleRemoveUser: z,
4496
4562
  handleToggleUser: I,
4497
- handleAddSuggestedUser: A
4563
+ handleAddSuggestedUser: E
4498
4564
  };
4499
4565
  }, Sn = Tn(
4500
4566
  ({
@@ -4509,7 +4575,7 @@ const nr = ({
4509
4575
  suggestedUsers: s = [],
4510
4576
  tagDisplayMap: d = {}
4511
4577
  }, u) => {
4512
- const [m, p] = S(
4578
+ const [y, p] = S(
4513
4579
  "Hello, I would like to invite you to join my workspace"
4514
4580
  ), {
4515
4581
  tagsInputRef: b,
@@ -4517,25 +4583,25 @@ const nr = ({
4517
4583
  validationErrors: g,
4518
4584
  isValid: h,
4519
4585
  handleEmailChange: w,
4520
- clearInput: y,
4586
+ clearInput: m,
4521
4587
  handleInvite: O
4522
- } = dr({
4588
+ } = fr({
4523
4589
  value: n,
4524
4590
  onChange: r,
4525
4591
  onInputChange: l,
4526
4592
  suggestedUsers: s,
4527
4593
  tagDisplayMap: d
4528
4594
  }), M = () => {
4529
- O(t, c, m), p("");
4595
+ O(t, c, y), p("");
4530
4596
  };
4531
4597
  Pn(
4532
4598
  u,
4533
4599
  () => ({
4534
- clearInput: y
4600
+ clearInput: m
4535
4601
  }),
4536
- [y]
4602
+ [m]
4537
4603
  );
4538
- const D = x.length > 0, P = a && i.length > 0, z = g.length > 0;
4604
+ const D = x.length > 0, R = a && i.length > 0, z = g.length > 0;
4539
4605
  return /* @__PURE__ */ f(L, { gap: "md", children: [
4540
4606
  /* @__PURE__ */ f(v, { children: [
4541
4607
  /* @__PURE__ */ e(
@@ -4549,14 +4615,14 @@ const nr = ({
4549
4615
  marginRight: "-8px"
4550
4616
  },
4551
4617
  children: /* @__PURE__ */ e(
4552
- Fn,
4618
+ Un,
4553
4619
  {
4554
4620
  ref: b,
4555
4621
  value: x,
4556
4622
  onChange: w,
4557
4623
  placeholder: D ? "" : o,
4558
4624
  radius: "md",
4559
- rightSection: P ? /* @__PURE__ */ e(
4625
+ rightSection: R ? /* @__PURE__ */ e(
4560
4626
  v,
4561
4627
  {
4562
4628
  style: {
@@ -4583,7 +4649,7 @@ const nr = ({
4583
4649
  ) : null,
4584
4650
  rightSectionProps: {
4585
4651
  style: {
4586
- width: P ? "120px" : "0px",
4652
+ width: R ? "120px" : "0px",
4587
4653
  position: "absolute",
4588
4654
  height: "32px",
4589
4655
  right: "8px"
@@ -4591,7 +4657,7 @@ const nr = ({
4591
4657
  },
4592
4658
  styles: {
4593
4659
  input: {
4594
- paddingRight: P ? "130px" : "12px",
4660
+ paddingRight: R ? "130px" : "12px",
4595
4661
  minHeight: "36px",
4596
4662
  display: "flex",
4597
4663
  flexWrap: "wrap",
@@ -4617,18 +4683,18 @@ const nr = ({
4617
4683
  )
4618
4684
  }
4619
4685
  ),
4620
- z && /* @__PURE__ */ e(L, { gap: "xs", mt: "xs", children: g.map((I, A) => /* @__PURE__ */ f(k, { size: "xs", c: "red", children: [
4686
+ z && /* @__PURE__ */ e(L, { gap: "xs", mt: "xs", children: g.map((I, E) => /* @__PURE__ */ f(k, { size: "xs", c: "red", children: [
4621
4687
  I.email,
4622
4688
  ": ",
4623
4689
  I.error
4624
- ] }, A)) })
4690
+ ] }, E)) })
4625
4691
  ] }),
4626
4692
  D && /* @__PURE__ */ f(L, { gap: "sm", children: [
4627
4693
  /* @__PURE__ */ e(
4628
- Hn,
4694
+ Nn,
4629
4695
  {
4630
4696
  size: "sm",
4631
- value: m,
4697
+ value: y,
4632
4698
  onChange: (I) => p(I.currentTarget.value),
4633
4699
  minRows: 2,
4634
4700
  maxRows: 4,
@@ -4650,7 +4716,7 @@ const nr = ({
4650
4716
  ] })
4651
4717
  ] });
4652
4718
  }
4653
- ), ur = (n) => {
4719
+ ), Ir = (n) => {
4654
4720
  switch (n) {
4655
4721
  case "member":
4656
4722
  return "green";
@@ -4665,7 +4731,7 @@ const nr = ({
4665
4731
  default:
4666
4732
  return "gray";
4667
4733
  }
4668
- }, fr = (n) => {
4734
+ }, pr = (n) => {
4669
4735
  switch (n) {
4670
4736
  case "member":
4671
4737
  return "Member";
@@ -4680,7 +4746,7 @@ const nr = ({
4680
4746
  default:
4681
4747
  return "Unknown";
4682
4748
  }
4683
- }, Ir = (n) => {
4749
+ }, hr = (n) => {
4684
4750
  if (n) {
4685
4751
  if (typeof n == "object" && "type" in n)
4686
4752
  return n;
@@ -4702,12 +4768,12 @@ const nr = ({
4702
4768
  o && o(n.id);
4703
4769
  }, u = (w) => {
4704
4770
  if (t) {
4705
- const y = w;
4706
- t(n.id, y);
4771
+ const m = w;
4772
+ t(n.id, m);
4707
4773
  }
4708
- }, m = a === "suggested" || a === "read-only", p = a === "invited" && c.length > 0, [b, x] = S(!1);
4774
+ }, y = a === "suggested" || a === "read-only", p = a === "invited" && c.length > 0, [b, x] = S(!1);
4709
4775
  return /* @__PURE__ */ f(
4710
- T,
4776
+ P,
4711
4777
  {
4712
4778
  justify: "space-between",
4713
4779
  align: "center",
@@ -4725,19 +4791,19 @@ const nr = ({
4725
4791
  onMouseEnter: () => x(!0),
4726
4792
  onMouseLeave: () => x(!1),
4727
4793
  children: [
4728
- /* @__PURE__ */ f(T, { gap: "sm", w: "100%", align: "flex-start", wrap: "nowrap", children: [
4794
+ /* @__PURE__ */ f(P, { gap: "sm", w: "100%", align: "flex-start", wrap: "nowrap", children: [
4729
4795
  /* @__PURE__ */ e(
4730
4796
  he,
4731
4797
  {
4732
- avatar: Ir(n.avatar),
4798
+ avatar: hr(n.avatar),
4733
4799
  size: "md",
4734
4800
  placeholder: s,
4735
4801
  showPlaceholder: !0
4736
4802
  }
4737
4803
  ),
4738
4804
  /* @__PURE__ */ f(L, { gap: 0, w: "100%", justify: "flex-start", align: "flex-start", children: [
4739
- /* @__PURE__ */ f(T, { gap: "sm", align: "flex-start", wrap: "nowrap", children: [
4740
- /* @__PURE__ */ f(T, { gap: "sm", align: "flex-start", wrap: "nowrap", children: [
4805
+ /* @__PURE__ */ f(P, { gap: "sm", align: "flex-start", wrap: "nowrap", children: [
4806
+ /* @__PURE__ */ f(P, { gap: "sm", align: "flex-start", wrap: "nowrap", children: [
4741
4807
  /* @__PURE__ */ e(k, { size: "sm", fw: 500, lineClamp: 1, mb: -2, children: s }),
4742
4808
  n.isCurrentUser && /* @__PURE__ */ e(Me, { size: "xs", variant: "light", color: "gray", radius: "sm", children: "Owner" })
4743
4809
  ] }),
@@ -4746,18 +4812,18 @@ const nr = ({
4746
4812
  {
4747
4813
  size: "xs",
4748
4814
  variant: "light",
4749
- color: ur(n.status),
4815
+ color: Ir(n.status),
4750
4816
  radius: "sm",
4751
- children: fr(n.status)
4817
+ children: pr(n.status)
4752
4818
  }
4753
4819
  )
4754
4820
  ] }),
4755
4821
  /* @__PURE__ */ e(k, { size: "xs", c: "dimmed", lineClamp: 1, children: n.email })
4756
4822
  ] })
4757
4823
  ] }),
4758
- /* @__PURE__ */ f(T, { gap: "sm", align: "center", children: [
4759
- m && a !== "read-only" && /* @__PURE__ */ e(
4760
- Un,
4824
+ /* @__PURE__ */ f(P, { gap: "sm", align: "center", children: [
4825
+ y && a !== "read-only" && /* @__PURE__ */ e(
4826
+ Bn,
4761
4827
  {
4762
4828
  checked: r,
4763
4829
  onChange: d,
@@ -4782,7 +4848,7 @@ const nr = ({
4782
4848
  ]
4783
4849
  }
4784
4850
  );
4785
- }, pr = ({
4851
+ }, gr = ({
4786
4852
  opened: n,
4787
4853
  onClose: r,
4788
4854
  onInvite: o,
@@ -4795,23 +4861,23 @@ const nr = ({
4795
4861
  }) => {
4796
4862
  const d = _(null), {
4797
4863
  emails: u,
4798
- setEmails: m,
4864
+ setEmails: y,
4799
4865
  selectedUsers: p,
4800
4866
  inputText: b,
4801
4867
  setInputText: x,
4802
4868
  tagDisplayMap: g,
4803
4869
  selectedRole: h,
4804
4870
  setSelectedRole: w,
4805
- selectedTab: y,
4871
+ selectedTab: m,
4806
4872
  setSelectedTab: O,
4807
4873
  tabHovered: M,
4808
4874
  setTabHovered: D,
4809
- filteredUsers: P,
4875
+ filteredUsers: R,
4810
4876
  handleInvite: z,
4811
4877
  handleUpdateRole: I,
4812
- handleRemoveUser: A,
4813
- handleToggleUser: H,
4814
- handleAddSuggestedUser: E
4878
+ handleRemoveUser: E,
4879
+ handleToggleUser: F,
4880
+ handleAddSuggestedUser: A
4815
4881
  } = Cn({
4816
4882
  onInvite: o,
4817
4883
  onUpdateRole: t,
@@ -4820,14 +4886,14 @@ const nr = ({
4820
4886
  suggestedUsers: s,
4821
4887
  roleOptions: l
4822
4888
  }), j = (Q) => {
4823
- E(Q), d.current && d.current.clearInput();
4889
+ A(Q), d.current && d.current.clearInput();
4824
4890
  }, W = /* @__PURE__ */ f(ie, { children: [
4825
4891
  /* @__PURE__ */ e(
4826
4892
  Sn,
4827
4893
  {
4828
4894
  ref: d,
4829
4895
  value: u,
4830
- onChange: m,
4896
+ onChange: y,
4831
4897
  onInvite: z,
4832
4898
  roleOptions: l,
4833
4899
  selectedRole: h,
@@ -4846,36 +4912,36 @@ const nr = ({
4846
4912
  {
4847
4913
  user: Q,
4848
4914
  isSelected: p.includes(Q.id),
4849
- onToggle: H,
4915
+ onToggle: F,
4850
4916
  onUpdateRole: I,
4851
- onRemoveUser: A,
4917
+ onRemoveUser: E,
4852
4918
  roleOptions: l,
4853
4919
  variant: "invited"
4854
4920
  },
4855
4921
  Q.id
4856
4922
  )) })
4857
4923
  ] }) }) }),
4858
- P.length > 0 && /* @__PURE__ */ e(
4924
+ R.length > 0 && /* @__PURE__ */ e(
4859
4925
  le,
4860
4926
  {
4861
4927
  pt: "sm",
4862
4928
  mah: 200,
4863
4929
  type: "auto",
4864
4930
  style: { overflow: "visible" },
4865
- children: /* @__PURE__ */ e(v, { children: P.length > 0 ? /* @__PURE__ */ f(ie, { children: [
4931
+ children: /* @__PURE__ */ e(v, { children: R.length > 0 ? /* @__PURE__ */ f(ie, { children: [
4866
4932
  /* @__PURE__ */ f(k, { size: "sm", fw: 500, children: [
4867
4933
  "Suggested ",
4868
4934
  b.trim() && `(filtered by "${b}")`
4869
4935
  ] }),
4870
4936
  /* @__PURE__ */ e(ve, { h: "sm" }),
4871
- /* @__PURE__ */ e(L, { gap: "sm", children: P.map((Q) => /* @__PURE__ */ e(
4937
+ /* @__PURE__ */ e(L, { gap: "sm", children: R.map((Q) => /* @__PURE__ */ e(
4872
4938
  Re,
4873
4939
  {
4874
4940
  user: Q,
4875
4941
  isSelected: p.includes(Q.id),
4876
- onToggle: H,
4942
+ onToggle: F,
4877
4943
  onUpdateRole: I,
4878
- onRemoveUser: A,
4944
+ onRemoveUser: E,
4879
4945
  roleOptions: l,
4880
4946
  variant: "suggested",
4881
4947
  onClick: () => j(Q)
@@ -4949,7 +5015,7 @@ const nr = ({
4949
5015
  padding: "0 8px",
4950
5016
  border: "none",
4951
5017
  backgroundColor: M === "invite" ? "var(--mantine-color-gray-1)" : "transparent",
4952
- color: y === "invite" ? "var(--mantine-color-gray-9)" : "var(--mantine-color-gray-6)",
5018
+ color: m === "invite" ? "var(--mantine-color-gray-9)" : "var(--mantine-color-gray-6)",
4953
5019
  cursor: "pointer"
4954
5020
  },
4955
5021
  fw: 500,
@@ -4985,7 +5051,7 @@ const nr = ({
4985
5051
  borderRadius: "var(--mantine-radius-md)",
4986
5052
  border: "none",
4987
5053
  backgroundColor: M === "publish" ? "var(--mantine-color-gray-1)" : "transparent",
4988
- color: y === "publish" ? "var(--mantine-color-gray-9)" : "var(--mantine-color-gray-6)",
5054
+ color: m === "publish" ? "var(--mantine-color-gray-9)" : "var(--mantine-color-gray-6)",
4989
5055
  cursor: "pointer"
4990
5056
  },
4991
5057
  fw: 500,
@@ -5017,7 +5083,7 @@ const nr = ({
5017
5083
  children: te
5018
5084
  }
5019
5085
  );
5020
- }, Br = ({
5086
+ }, Qr = ({
5021
5087
  onInvite: n,
5022
5088
  onUpdateRole: r,
5023
5089
  onRemoveUser: o,
@@ -5029,7 +5095,7 @@ const nr = ({
5029
5095
  }) => {
5030
5096
  const [s, d] = S(!1);
5031
5097
  return /* @__PURE__ */ e(
5032
- pr,
5098
+ gr,
5033
5099
  {
5034
5100
  opened: s,
5035
5101
  onClose: () => d(!1),
@@ -5041,7 +5107,7 @@ const nr = ({
5041
5107
  roleOptions: c,
5042
5108
  suggestedUsers: a,
5043
5109
  children: /* @__PURE__ */ e(
5044
- Oo,
5110
+ zo,
5045
5111
  {
5046
5112
  label: l,
5047
5113
  onClick: () => d(!0),
@@ -5050,7 +5116,7 @@ const nr = ({
5050
5116
  )
5051
5117
  }
5052
5118
  );
5053
- }, Wr = ({
5119
+ }, Gr = ({
5054
5120
  opened: n,
5055
5121
  onClose: r,
5056
5122
  onInvite: o,
@@ -5063,18 +5129,18 @@ const nr = ({
5063
5129
  const s = _(null), {
5064
5130
  emails: d,
5065
5131
  setEmails: u,
5066
- selectedUsers: m,
5132
+ selectedUsers: y,
5067
5133
  inputText: p,
5068
5134
  setInputText: b,
5069
5135
  tagDisplayMap: x,
5070
5136
  selectedRole: g,
5071
5137
  setSelectedRole: h,
5072
5138
  filteredUsers: w,
5073
- handleInvite: y,
5139
+ handleInvite: m,
5074
5140
  handleUpdateRole: O,
5075
5141
  handleRemoveUser: M,
5076
5142
  handleToggleUser: D,
5077
- handleAddSuggestedUser: P
5143
+ handleAddSuggestedUser: R
5078
5144
  } = Cn({
5079
5145
  onInvite: o,
5080
5146
  onUpdateRole: t,
@@ -5083,7 +5149,7 @@ const nr = ({
5083
5149
  suggestedUsers: l,
5084
5150
  roleOptions: a
5085
5151
  }), z = (I) => {
5086
- P(I), s.current && s.current.clearInput();
5152
+ R(I), s.current && s.current.clearInput();
5087
5153
  };
5088
5154
  return /* @__PURE__ */ e(
5089
5155
  Ue,
@@ -5099,7 +5165,7 @@ const nr = ({
5099
5165
  trapFocus: !1,
5100
5166
  zIndex: 300,
5101
5167
  children: /* @__PURE__ */ f(L, { gap: "lg", children: [
5102
- /* @__PURE__ */ f(T, { justify: "space-between", wrap: "nowrap", children: [
5168
+ /* @__PURE__ */ f(P, { justify: "space-between", wrap: "nowrap", children: [
5103
5169
  /* @__PURE__ */ e(k, { size: "md", fw: 500, c: "var(--mantine-color-gray-8)", children: "Share" }),
5104
5170
  /* @__PURE__ */ e(
5105
5171
  V,
@@ -5117,7 +5183,7 @@ const nr = ({
5117
5183
  ref: s,
5118
5184
  value: d,
5119
5185
  onChange: u,
5120
- onInvite: y,
5186
+ onInvite: m,
5121
5187
  roleOptions: a,
5122
5188
  selectedRole: g,
5123
5189
  onRoleChange: h,
@@ -5144,7 +5210,7 @@ const nr = ({
5144
5210
  Re,
5145
5211
  {
5146
5212
  user: I,
5147
- isSelected: m.includes(I.id),
5213
+ isSelected: y.includes(I.id),
5148
5214
  onToggle: D,
5149
5215
  onUpdateRole: O,
5150
5216
  onRemoveUser: M,
@@ -5177,7 +5243,7 @@ const nr = ({
5177
5243
  Re,
5178
5244
  {
5179
5245
  user: I,
5180
- isSelected: m.includes(I.id),
5246
+ isSelected: y.includes(I.id),
5181
5247
  onToggle: D,
5182
5248
  onUpdateRole: O,
5183
5249
  onRemoveUser: M,
@@ -5193,7 +5259,7 @@ const nr = ({
5193
5259
  ] })
5194
5260
  }
5195
5261
  );
5196
- }, $r = ({
5262
+ }, Vr = ({
5197
5263
  opened: n,
5198
5264
  onClose: r,
5199
5265
  options: o = [],
@@ -5210,7 +5276,7 @@ const nr = ({
5210
5276
  t && t(), r();
5211
5277
  }, u = () => {
5212
5278
  i && i(), r();
5213
- }, m = () => {
5279
+ }, y = () => {
5214
5280
  r();
5215
5281
  }, p = o.find(
5216
5282
  (b) => b.id === l
@@ -5219,7 +5285,7 @@ const nr = ({
5219
5285
  Ue,
5220
5286
  {
5221
5287
  opened: n,
5222
- onClose: m,
5288
+ onClose: y,
5223
5289
  size: "90%",
5224
5290
  centered: !0,
5225
5291
  closeOnClickOutside: !0,
@@ -5261,7 +5327,7 @@ const nr = ({
5261
5327
  ),
5262
5328
  /* @__PURE__ */ f(v, { style: { flex: 1, display: "flex", flexDirection: "column" }, children: [
5263
5329
  p ? /* @__PURE__ */ f(ie, { children: [
5264
- /* @__PURE__ */ e(v, { p: "md", children: /* @__PURE__ */ e(T, { gap: "md", wrap: "nowrap", children: /* @__PURE__ */ f(L, { gap: 4, children: [
5330
+ /* @__PURE__ */ e(v, { p: "md", children: /* @__PURE__ */ e(P, { gap: "md", wrap: "nowrap", children: /* @__PURE__ */ f(L, { gap: 4, children: [
5265
5331
  /* @__PURE__ */ e(k, { size: "md", fw: 600, children: p.alternateLabel || p.label }),
5266
5332
  p.description && /* @__PURE__ */ e(k, { size: "sm", c: "var(--mantine-color-gray-6)", children: p.description })
5267
5333
  ] }) }) }),
@@ -5278,7 +5344,7 @@ const nr = ({
5278
5344
  children: /* @__PURE__ */ e(k, { c: "var(--mantine-color-gray-6)", size: "lg", children: "Select an option from the sidebar" })
5279
5345
  }
5280
5346
  ),
5281
- (p == null ? void 0 : p.saveButton) && /* @__PURE__ */ e(v, { p: "md", children: /* @__PURE__ */ f(T, { justify: "flex-end", gap: "md", children: [
5347
+ (p == null ? void 0 : p.saveButton) && /* @__PURE__ */ e(v, { p: "md", children: /* @__PURE__ */ f(P, { justify: "flex-end", gap: "md", children: [
5282
5348
  /* @__PURE__ */ e(K, { variant: "subtle", onClick: u, color: "gray", children: "Cancel" }),
5283
5349
  /* @__PURE__ */ e(K, { onClick: d, color: "blue", children: "Save Changes" })
5284
5350
  ] }) })
@@ -5287,7 +5353,7 @@ const nr = ({
5287
5353
  ]
5288
5354
  }
5289
5355
  );
5290
- }, hr = (n, r = "es") => {
5356
+ }, mr = (n, r = "es") => {
5291
5357
  const o = /* @__PURE__ */ new Date(), t = typeof n == "string" ? new Date(n) : n, i = Math.floor((o.getTime() - t.getTime()) / 1e3), c = {
5292
5358
  es: {
5293
5359
  now: "ahora",
@@ -5342,24 +5408,24 @@ const nr = ({
5342
5408
  const u = Math.floor(d / 7);
5343
5409
  if (u < 4)
5344
5410
  return r === "es" ? `${a.ago} ${u} ${u === 1 ? a.week : a.weeks}` : `${u} ${u === 1 ? a.week : a.weeks} ${a.ago}`;
5345
- const m = Math.floor(d / 30);
5346
- if (m < 12)
5347
- return r === "es" ? `${a.ago} ${m} ${m === 1 ? a.month : a.months}` : `${m} ${m === 1 ? a.month : a.months} ${a.ago}`;
5411
+ const y = Math.floor(d / 30);
5412
+ if (y < 12)
5413
+ return r === "es" ? `${a.ago} ${y} ${y === 1 ? a.month : a.months}` : `${y} ${y === 1 ? a.month : a.months} ${a.ago}`;
5348
5414
  const p = Math.floor(d / 365);
5349
5415
  return r === "es" ? `${a.ago} ${p} ${p === 1 ? a.year : a.years}` : `${p} ${p === 1 ? a.year : a.years} ${a.ago}`;
5350
- }, gr = (n, r = "es") => {
5416
+ }, yr = (n, r = "es") => {
5351
5417
  const o = typeof n == "string" ? new Date(n) : n, t = {
5352
5418
  es: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
5353
5419
  en: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
5354
5420
  }, c = (t[r] || t.en)[o.getMonth()], a = o.getDate();
5355
5421
  return r === "es" ? `${a} ${c}` : `${c} ${a}`;
5356
- }, mr = (n) => {
5422
+ }, vr = (n) => {
5357
5423
  const r = typeof n == "string" ? new Date(n) : n, o = /* @__PURE__ */ new Date();
5358
5424
  return r.toDateString() === o.toDateString();
5359
- }, yr = (n) => {
5425
+ }, wr = (n) => {
5360
5426
  const r = typeof n == "string" ? new Date(n) : n, o = /* @__PURE__ */ new Date();
5361
5427
  return o.setDate(o.getDate() - 1), r.toDateString() === o.toDateString();
5362
- }, vr = (n, r = "es") => mr(n) ? r === "es" ? "Hoy" : "Today" : yr(n) ? r === "es" ? "Ayer" : "Yesterday" : hr(n, r), wr = ({
5428
+ }, xr = (n, r = "es") => vr(n) ? r === "es" ? "Hoy" : "Today" : wr(n) ? r === "es" ? "Ayer" : "Yesterday" : mr(n, r), br = ({
5363
5429
  notification: n,
5364
5430
  message: r,
5365
5431
  markAsRead: o,
@@ -5367,9 +5433,9 @@ const nr = ({
5367
5433
  children: i,
5368
5434
  actions: c
5369
5435
  }) => {
5370
- var u, m, p, b, x;
5371
- const a = (/* @__PURE__ */ new Date()).getTime() - new Date(n.timestamp).getTime() < 6048e5 ? vr(n.timestamp, "en") : gr(n.timestamp, "en"), [l, s] = S(!1), d = /* @__PURE__ */ f(
5372
- T,
5436
+ var u, y, p, b, x;
5437
+ const a = (/* @__PURE__ */ new Date()).getTime() - new Date(n.timestamp).getTime() < 6048e5 ? xr(n.timestamp, "en") : yr(n.timestamp, "en"), [l, s] = S(!1), d = /* @__PURE__ */ f(
5438
+ P,
5373
5439
  {
5374
5440
  bg: "var(--mantine-color-gray-1)",
5375
5441
  p: 4,
@@ -5408,7 +5474,7 @@ const nr = ({
5408
5474
  onMouseLeave: () => s(!1),
5409
5475
  children: [
5410
5476
  /* @__PURE__ */ f(
5411
- T,
5477
+ P,
5412
5478
  {
5413
5479
  justify: "space-between",
5414
5480
  align: "flex-start",
@@ -5421,12 +5487,12 @@ const nr = ({
5421
5487
  (u = n.metadata) != null && u.avatar_url ? /* @__PURE__ */ e(
5422
5488
  nn,
5423
5489
  {
5424
- name: (m = n.metadata) == null ? void 0 : m.fullname,
5490
+ name: (y = n.metadata) == null ? void 0 : y.fullname,
5425
5491
  size: "sm",
5426
5492
  radius: "md",
5427
5493
  src: (p = n.metadata) == null ? void 0 : p.avatar_url
5428
5494
  }
5429
- ) : /* @__PURE__ */ e(zo, { size: "xs", showText: !1, radius: "xs" }),
5495
+ ) : /* @__PURE__ */ e(Ro, { size: "xs", showText: !1, radius: "xs" }),
5430
5496
  /* @__PURE__ */ f(L, { gap: "xs", justify: "flex-start", w: "100%", children: [
5431
5497
  /* @__PURE__ */ e(
5432
5498
  v,
@@ -5468,7 +5534,7 @@ const nr = ({
5468
5534
  ),
5469
5535
  i,
5470
5536
  c && /* @__PURE__ */ e(
5471
- T,
5537
+ P,
5472
5538
  {
5473
5539
  justify: "flex-start",
5474
5540
  align: "flex-start",
@@ -5482,7 +5548,7 @@ const nr = ({
5482
5548
  ]
5483
5549
  }
5484
5550
  );
5485
- }, xr = (n, r, o, t, i) => {
5551
+ }, Cr = (n, r, o, t, i) => {
5486
5552
  const [c, a] = S(!1), l = _(null), s = _(null), d = _(null);
5487
5553
  B(() => {
5488
5554
  a(n);
@@ -5492,7 +5558,7 @@ const nr = ({
5492
5558
  p[0].isIntersecting && t && !i && o && o();
5493
5559
  },
5494
5560
  [t, i, o]
5495
- ), m = U(() => {
5561
+ ), y = U(() => {
5496
5562
  if (!(!l.current || !n || !r || !o)) {
5497
5563
  s.current && (s.current.disconnect(), s.current = null);
5498
5564
  try {
@@ -5513,21 +5579,21 @@ const nr = ({
5513
5579
  }
5514
5580
  if (!l.current) {
5515
5581
  d.current = setTimeout(
5516
- () => m(),
5582
+ () => y(),
5517
5583
  50
5518
5584
  );
5519
5585
  return;
5520
5586
  }
5521
- return m(), () => {
5587
+ return y(), () => {
5522
5588
  d.current && (clearTimeout(d.current), d.current = null), s.current && (s.current.disconnect(), s.current = null);
5523
5589
  };
5524
- }, [n, r, o, m]), B(() => () => {
5590
+ }, [n, r, o, y]), B(() => () => {
5525
5591
  d.current && clearTimeout(d.current), s.current && s.current.disconnect();
5526
5592
  }, []), {
5527
5593
  isActive: c,
5528
5594
  loadMoreRef: l
5529
5595
  };
5530
- }, Qr = ({
5596
+ }, _r = ({
5531
5597
  notifications: n,
5532
5598
  isLoading: r = !1,
5533
5599
  isLoadingMore: o = !1,
@@ -5539,7 +5605,7 @@ const nr = ({
5539
5605
  archiveNotification: s,
5540
5606
  loadMore: d,
5541
5607
  onFilterChange: u,
5542
- currentFilter: m = "all",
5608
+ currentFilter: y = "all",
5543
5609
  customRenderer: p,
5544
5610
  opened: b = !1,
5545
5611
  onOpen: x = () => {
@@ -5559,36 +5625,36 @@ const nr = ({
5559
5625
  leftSection: /* @__PURE__ */ e(Ee, { size: 16 }),
5560
5626
  onClick: () => a()
5561
5627
  }
5562
- ], y = [
5628
+ ], m = [
5563
5629
  {
5564
5630
  children: "All",
5565
5631
  leftSection: /* @__PURE__ */ e(Te, { size: 16 }),
5566
5632
  onClick: () => u == null ? void 0 : u("all"),
5567
- active: m === "all"
5633
+ active: y === "all"
5568
5634
  },
5569
5635
  {
5570
5636
  children: "Unread",
5571
5637
  leftSection: /* @__PURE__ */ e(Te, { size: 16 }),
5572
5638
  onClick: () => u == null ? void 0 : u("unread"),
5573
- active: m === "unread"
5639
+ active: y === "unread"
5574
5640
  },
5575
5641
  {
5576
5642
  children: "Archived",
5577
5643
  leftSection: /* @__PURE__ */ e(Ee, { size: 16 }),
5578
5644
  onClick: () => u == null ? void 0 : u("archived"),
5579
- active: m === "archived"
5645
+ active: y === "archived"
5580
5646
  }
5581
- ], O = (P) => p && P.category && ["welcome", "upgrade"].includes(P.category) ? p(P, l, s) : /* @__PURE__ */ e(
5582
- wr,
5647
+ ], O = (R) => p && R.category && ["welcome", "upgrade"].includes(R.category) ? p(R, l, s) : /* @__PURE__ */ e(
5648
+ br,
5583
5649
  {
5584
- notification: P,
5650
+ notification: R,
5585
5651
  markAsRead: l,
5586
5652
  archiveNotification: s,
5587
- message: P.message,
5588
- actions: P.actions
5653
+ message: R.message,
5654
+ actions: R.actions
5589
5655
  },
5590
- P.id
5591
- ), { isActive: M, loadMoreRef: D } = xr(
5656
+ R.id
5657
+ ), { isActive: M, loadMoreRef: D } = Cr(
5592
5658
  b,
5593
5659
  h,
5594
5660
  d || (() => {
@@ -5601,7 +5667,7 @@ const nr = ({
5601
5667
  In,
5602
5668
  {
5603
5669
  isActive: M,
5604
- icon: /* @__PURE__ */ e(ro, { strokeWidth: 2, color: "var(--mantine-color-gray-7)" }),
5670
+ icon: /* @__PURE__ */ e(io, { strokeWidth: 2, color: "var(--mantine-color-gray-7)" }),
5605
5671
  onClick: () => {
5606
5672
  b ? g() : x();
5607
5673
  },
@@ -5661,7 +5727,7 @@ const nr = ({
5661
5727
  backgroundColor: "var(--mantine-color-white)"
5662
5728
  },
5663
5729
  children: /* @__PURE__ */ f(
5664
- T,
5730
+ P,
5665
5731
  {
5666
5732
  justify: "space-between",
5667
5733
  align: "center",
@@ -5671,12 +5737,12 @@ const nr = ({
5671
5737
  py: "md",
5672
5738
  children: [
5673
5739
  /* @__PURE__ */ e(k, { size: "sm", fw: 500, children: "Inbox" }),
5674
- /* @__PURE__ */ f(T, { gap: "xs", children: [
5740
+ /* @__PURE__ */ f(P, { gap: "xs", children: [
5675
5741
  /* @__PURE__ */ e(
5676
5742
  De,
5677
5743
  {
5678
5744
  position: "bottom-end",
5679
- menuItems: y,
5745
+ menuItems: m,
5680
5746
  trigger: /* @__PURE__ */ e(V, { icon: an })
5681
5747
  }
5682
5748
  ),
@@ -5716,7 +5782,7 @@ const nr = ({
5716
5782
  children: /* @__PURE__ */ e(ae, {})
5717
5783
  }
5718
5784
  ) : n.length > 0 ? /* @__PURE__ */ e(L, { gap: 0, children: n.map(
5719
- (P) => O(P)
5785
+ (R) => O(R)
5720
5786
  ) }) : /* @__PURE__ */ f(
5721
5787
  L,
5722
5788
  {
@@ -5727,7 +5793,7 @@ const nr = ({
5727
5793
  align: "center",
5728
5794
  py: "xl",
5729
5795
  children: [
5730
- /* @__PURE__ */ e(to, { size: 24, color: "var(--mantine-color-gray-6)" }),
5796
+ /* @__PURE__ */ e(ao, { size: 24, color: "var(--mantine-color-gray-6)" }),
5731
5797
  /* @__PURE__ */ e(k, { size: "sm", fw: 500, c: "dimmed", ta: "center", mt: "sm", children: "No new updates" })
5732
5798
  ]
5733
5799
  }
@@ -5743,13 +5809,13 @@ const nr = ({
5743
5809
  alignItems: "center",
5744
5810
  minHeight: "60px"
5745
5811
  },
5746
- children: o && /* @__PURE__ */ f(T, { display: "flex", ta: "center", gap: "xs", children: [
5812
+ children: o && /* @__PURE__ */ f(P, { display: "flex", ta: "center", gap: "xs", children: [
5747
5813
  /* @__PURE__ */ e(ae, { size: "sm", color: "gray.5" }),
5748
5814
  /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", fw: 500, children: "Loading more ..." })
5749
5815
  ] })
5750
5816
  }
5751
5817
  ),
5752
- o && !h && /* @__PURE__ */ f(T, { display: "flex", ta: "center", gap: "xs", children: [
5818
+ o && !h && /* @__PURE__ */ f(P, { display: "flex", ta: "center", gap: "xs", children: [
5753
5819
  /* @__PURE__ */ e(ae, { size: "sm", color: "gray.5" }),
5754
5820
  /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", fw: 500, children: "Loading more ..." })
5755
5821
  ] }),
@@ -5773,7 +5839,7 @@ const nr = ({
5773
5839
  }
5774
5840
  )
5775
5841
  ] });
5776
- }, Gr = ({
5842
+ }, Zr = ({
5777
5843
  header: n,
5778
5844
  body: r,
5779
5845
  footer: o,
@@ -5810,24 +5876,24 @@ const nr = ({
5810
5876
  ]
5811
5877
  }
5812
5878
  );
5813
- }, kn = En(void 0), Vr = ({
5879
+ }, kn = En(void 0), Yr = ({
5814
5880
  children: n
5815
5881
  }) => {
5816
5882
  const [
5817
5883
  r,
5818
5884
  { open: o, close: t }
5819
- ] = lo(!1), i = {
5885
+ ] = fo(!1), i = {
5820
5886
  openedNotificationSidebar: r,
5821
5887
  openNotificationSidebar: o,
5822
5888
  closeNotificationSidebar: t
5823
5889
  };
5824
5890
  return /* @__PURE__ */ e(kn.Provider, { value: i, children: n });
5825
- }, _r = () => {
5891
+ }, qr = () => {
5826
5892
  const n = An(kn);
5827
5893
  if (n === void 0)
5828
5894
  throw new Error("useNavbar must be used within an NavbarProvider");
5829
5895
  return n;
5830
- }, br = ({
5896
+ }, Sr = ({
5831
5897
  workspace: n,
5832
5898
  currentUserId: r,
5833
5899
  currentWorkspaceId: o,
@@ -5898,12 +5964,12 @@ const nr = ({
5898
5964
  ]
5899
5965
  }
5900
5966
  );
5901
- }, Cr = "_menuItem_3gic2_1", Sr = "_workspaceButton_3gic2_14", kr = "_workspaceText_3gic2_24", Or = "_scrollWrapper_3gic2_30", Pe = {
5902
- menuItem: Cr,
5903
- workspaceButton: Sr,
5904
- workspaceText: kr,
5905
- scrollWrapper: Or
5906
- }, Zr = ({
5967
+ }, kr = "_menuItem_3gic2_1", Or = "_workspaceButton_3gic2_14", Mr = "_workspaceText_3gic2_24", zr = "_scrollWrapper_3gic2_30", Pe = {
5968
+ menuItem: kr,
5969
+ workspaceButton: Or,
5970
+ workspaceText: Mr,
5971
+ scrollWrapper: zr
5972
+ }, Xr = ({
5907
5973
  workspaces: n = [],
5908
5974
  currentWorkspace: r,
5909
5975
  currentUserId: o,
@@ -5915,27 +5981,27 @@ const nr = ({
5915
5981
  loadingMessage: s = "Loading workspaces...",
5916
5982
  errorMessage: d = "Failed to load workspaces",
5917
5983
  className: u,
5918
- onCloseSidebar: m,
5984
+ onCloseSidebar: y,
5919
5985
  sidebarHovered: p = !1,
5920
5986
  children: b,
5921
5987
  menuItems: x
5922
5988
  }) => {
5923
- const [g, h] = S(!1), [w, y] = S(""), O = q(() => w ? n.filter(
5989
+ const [g, h] = S(!1), [w, m] = S(""), O = q(() => w ? n.filter(
5924
5990
  (z) => {
5925
5991
  var I;
5926
5992
  return z.name.toLowerCase().includes(w.toLowerCase()) || ((I = z.ownerEmail) == null ? void 0 : I.toLowerCase().includes(w.toLowerCase()));
5927
5993
  }
5928
5994
  ) : n, [n, w]), M = (z) => {
5929
- c == null || c(z.id), h(!1), y("");
5995
+ c == null || c(z.id), h(!1), m("");
5930
5996
  };
5931
5997
  if (t)
5932
- return /* @__PURE__ */ f(T, { gap: "xs", children: [
5998
+ return /* @__PURE__ */ f(P, { gap: "xs", children: [
5933
5999
  /* @__PURE__ */ e(ae, { size: "sm" }),
5934
6000
  /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", children: s })
5935
6001
  ] });
5936
6002
  if (i)
5937
- return /* @__PURE__ */ e(Nn, { color: "red", title: "Error", children: d });
5938
- const [D, P] = S(p);
6003
+ return /* @__PURE__ */ e(Wn, { color: "red", title: "Error", children: d });
6004
+ const [D, R] = S(p);
5939
6005
  return n.length === 0 && !t && !i ? /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", children: l }) }) : /* @__PURE__ */ f(
5940
6006
  Y,
5941
6007
  {
@@ -5965,10 +6031,10 @@ const nr = ({
5965
6031
  },
5966
6032
  className: `${Pe.workspaceButton} ${u || ""}`,
5967
6033
  bg: D || g ? "var(--mantine-color-gray-1)" : "transparent",
5968
- onMouseEnter: () => P(!0),
5969
- onMouseLeave: () => P(!1),
6034
+ onMouseEnter: () => R(!0),
6035
+ onMouseLeave: () => R(!1),
5970
6036
  children: /* @__PURE__ */ e(
5971
- T,
6037
+ P,
5972
6038
  {
5973
6039
  gap: "xs",
5974
6040
  wrap: "nowrap",
@@ -5995,7 +6061,7 @@ const nr = ({
5995
6061
  children: r.name
5996
6062
  }
5997
6063
  ),
5998
- /* @__PURE__ */ f(T, { gap: 4, wrap: "nowrap", style: { flexShrink: 0 }, children: [
6064
+ /* @__PURE__ */ f(P, { gap: 4, wrap: "nowrap", style: { flexShrink: 0 }, children: [
5999
6065
  /* @__PURE__ */ e(
6000
6066
  Le,
6001
6067
  {
@@ -6017,12 +6083,12 @@ const nr = ({
6017
6083
  (D || p) && /* @__PURE__ */ e(
6018
6084
  V,
6019
6085
  {
6020
- icon: io,
6086
+ icon: co,
6021
6087
  size: "md",
6022
6088
  color: "gray",
6023
6089
  variant: "subtle",
6024
6090
  onClick: () => {
6025
- m == null || m();
6091
+ y == null || y();
6026
6092
  }
6027
6093
  }
6028
6094
  )
@@ -6043,10 +6109,10 @@ const nr = ({
6043
6109
  b,
6044
6110
  /* @__PURE__ */ e(Y.Divider, { style: { margin: "1px 0px" } }),
6045
6111
  /* @__PURE__ */ e(L, { gap: 0, px: 4, children: O.length === 0 ? /* @__PURE__ */ e(Y.Item, { disabled: !0, children: /* @__PURE__ */ e(k, { size: "sm", c: "dimmed", children: l }) }) : /* @__PURE__ */ f(ie, { children: [
6046
- /* @__PURE__ */ f(T, { justify: "space-between", align: "center", p: 4, children: [
6112
+ /* @__PURE__ */ f(P, { justify: "space-between", align: "center", p: 4, children: [
6047
6113
  /* @__PURE__ */ e(k, { size: "xs", c: "dimmed", fw: 500, p: 4, truncate: !0, children: "Workspaces" }),
6048
6114
  a && /* @__PURE__ */ e(
6049
- Bn,
6115
+ $n,
6050
6116
  {
6051
6117
  onClick: () => {
6052
6118
  a(), h(!1);
@@ -6083,7 +6149,7 @@ const nr = ({
6083
6149
  I.currentTarget.style.backgroundColor = "transparent";
6084
6150
  },
6085
6151
  children: /* @__PURE__ */ e(
6086
- br,
6152
+ Sr,
6087
6153
  {
6088
6154
  workspace: z,
6089
6155
  currentUserId: o,
@@ -6119,7 +6185,7 @@ const nr = ({
6119
6185
  ]
6120
6186
  }
6121
6187
  );
6122
- }, Yr = ({
6188
+ }, Kr = ({
6123
6189
  opened: n,
6124
6190
  onClose: r,
6125
6191
  children: o,
@@ -6143,10 +6209,10 @@ const nr = ({
6143
6209
  padding: "md",
6144
6210
  ...t,
6145
6211
  children: [
6146
- /* @__PURE__ */ f(T, { justify: "space-between", wrap: "nowrap", children: [
6147
- /* @__PURE__ */ e(T, { justify: "space-between", wrap: "nowrap", gap: "xs", children: /* @__PURE__ */ e(V, { icon: ln, size: "md", onClick: () => {
6212
+ /* @__PURE__ */ f(P, { justify: "space-between", wrap: "nowrap", children: [
6213
+ /* @__PURE__ */ e(P, { justify: "space-between", wrap: "nowrap", gap: "xs", children: /* @__PURE__ */ e(V, { icon: ln, size: "md", onClick: () => {
6148
6214
  } }) }),
6149
- /* @__PURE__ */ f(T, { justify: "space-between", gap: "xs", children: [
6215
+ /* @__PURE__ */ f(P, { justify: "space-between", gap: "xs", children: [
6150
6216
  /* @__PURE__ */ e(V, { icon: dn, size: "md", onClick: () => {
6151
6217
  } }),
6152
6218
  /* @__PURE__ */ e(V, { icon: pe, size: "md", onClick: () => {
@@ -6156,7 +6222,7 @@ const nr = ({
6156
6222
  o
6157
6223
  ]
6158
6224
  }
6159
- ), qr = ({
6225
+ ), Jr = ({
6160
6226
  opened: n,
6161
6227
  onClose: r,
6162
6228
  content: o,
@@ -6172,13 +6238,13 @@ const nr = ({
6172
6238
  padding: "md",
6173
6239
  withCloseButton: !1,
6174
6240
  children: [
6175
- /* @__PURE__ */ f(T, { justify: "space-between", wrap: "nowrap", children: [
6176
- /* @__PURE__ */ f(T, { justify: "space-between", wrap: "nowrap", gap: "xs", children: [
6177
- /* @__PURE__ */ e(V, { icon: ao, size: "md", onClick: r }),
6241
+ /* @__PURE__ */ f(P, { justify: "space-between", wrap: "nowrap", children: [
6242
+ /* @__PURE__ */ f(P, { justify: "space-between", wrap: "nowrap", gap: "xs", children: [
6243
+ /* @__PURE__ */ e(V, { icon: so, size: "md", onClick: r }),
6178
6244
  /* @__PURE__ */ e(V, { icon: ln, size: "md", onClick: () => {
6179
6245
  } })
6180
6246
  ] }),
6181
- /* @__PURE__ */ f(T, { justify: "space-between", gap: "xs", children: [
6247
+ /* @__PURE__ */ f(P, { justify: "space-between", gap: "xs", children: [
6182
6248
  /* @__PURE__ */ e(V, { icon: dn, size: "md", onClick: () => {
6183
6249
  } }),
6184
6250
  /* @__PURE__ */ e(V, { icon: pe, size: "md", onClick: () => {
@@ -6188,7 +6254,7 @@ const nr = ({
6188
6254
  o
6189
6255
  ]
6190
6256
  }
6191
- ), Xr = ({
6257
+ ), et = ({
6192
6258
  children: n
6193
6259
  }) => /* @__PURE__ */ e(
6194
6260
  v,
@@ -6202,7 +6268,7 @@ const nr = ({
6202
6268
  id: "full-page",
6203
6269
  children: n
6204
6270
  }
6205
- ), Mr = Wn({
6271
+ ), Dr = Qn({
6206
6272
  /** Put your mantine theme override here */
6207
6273
  primaryColor: "blue",
6208
6274
  fontFamily: "Inter, system-ui, Avenir, Helvetica, Arial, sans-serif",
@@ -6217,48 +6283,49 @@ const nr = ({
6217
6283
  // Override component styles here
6218
6284
  }
6219
6285
  });
6220
- function Kr({
6286
+ function nt({
6221
6287
  children: n,
6222
6288
  theme: r
6223
6289
  }) {
6224
- return /* @__PURE__ */ f($n, { theme: r || Mr, children: [
6225
- /* @__PURE__ */ e(uo, {}),
6226
- /* @__PURE__ */ e(fo, { children: /* @__PURE__ */ e(Io, { settings: { firstDayOfWeek: 0 }, children: n }) })
6290
+ return /* @__PURE__ */ f(Gn, { theme: r || Dr, children: [
6291
+ /* @__PURE__ */ e(Io, {}),
6292
+ /* @__PURE__ */ e(po, { children: /* @__PURE__ */ e(ho, { settings: { firstDayOfWeek: 0 }, children: n }) })
6227
6293
  ] });
6228
6294
  }
6229
6295
  export {
6230
6296
  V as ActionButton,
6231
- Nr as AvatarSelector,
6297
+ $r as AvatarSelector,
6232
6298
  he as BoxAvatar,
6233
- Yr as CenterPeek,
6234
- ho as EmojiAvatar,
6235
- Do as ExpandableSearch,
6236
- Hr as FilterDropdown,
6237
- Xr as FullPage,
6238
- _o as GenericTable,
6239
- xo as IconAvatar,
6240
- Co as ImageAvatar,
6299
+ Kr as CenterPeek,
6300
+ Nr as EditableText,
6301
+ mo as EmojiAvatar,
6302
+ To as ExpandableSearch,
6303
+ Br as FilterDropdown,
6304
+ et as FullPage,
6305
+ Yo as GenericTable,
6306
+ Co as IconAvatar,
6307
+ ko as ImageAvatar,
6241
6308
  Re as InvitedUserCard,
6242
- zo as Logo,
6309
+ Ro as Logo,
6243
6310
  De as Menu,
6244
- $r as ModalSettings,
6311
+ Vr as ModalSettings,
6245
6312
  In as NavButton,
6246
- Ur as NavLink,
6247
- Gr as Navbar,
6248
- Vr as NavbarProvider,
6249
- Qr as NotificationSidebar,
6313
+ Wr as NavLink,
6314
+ Zr as Navbar,
6315
+ Yr as NavbarProvider,
6316
+ _r as NotificationSidebar,
6250
6317
  Ae as PlaceholderAvatar,
6251
- Uo as PopoverItem,
6318
+ Bo as PopoverItem,
6252
6319
  Qe as PopoverSelector,
6253
- Br as ShareButton,
6254
- pr as ShareMenu,
6255
- Wr as ShareModal,
6256
- qr as SidePeek,
6257
- Oo as TextButton,
6258
- Kr as ThemeProvider,
6259
- Zr as WorkspaceSelector,
6260
- br as WorkspaceSelectorItem,
6261
- ko as getInitialsFromName,
6262
- Mr as theme,
6263
- _r as useNavbar
6320
+ Qr as ShareButton,
6321
+ gr as ShareMenu,
6322
+ Gr as ShareModal,
6323
+ Jr as SidePeek,
6324
+ zo as TextButton,
6325
+ nt as ThemeProvider,
6326
+ Xr as WorkspaceSelector,
6327
+ Sr as WorkspaceSelectorItem,
6328
+ Mo as getInitialsFromName,
6329
+ Dr as theme,
6330
+ qr as useNavbar
6264
6331
  };