obeyaka-ui 0.1.27 → 0.1.28

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,19 +1,19 @@
1
1
  import { jsx as e, jsxs as v, Fragment as me } from "react/jsx-runtime";
2
2
  import be, { useState as O, useCallback as j, useMemo as K, memo as Mn, useRef as Z, useEffect as Y, useLayoutEffect as Qn, Suspense as Zt, forwardRef as qt, useImperativeHandle as Xt, createContext as Yn, useContext as Zn } from "react";
3
- import { ActionIcon as le, Tooltip as Ue, Box as b, Skeleton as vn, Loader as Se, Text as T, Group as A, InputWrapper as qn, Input as Kt, Textarea as Sn, TextInput as kn, useCombobox as on, Combobox as oe, Indicator as Xn, MenuItem as Kn, Menu as pe, Stack as W, Pill as xn, Popover as je, LoadingOverlay as Jt, Button as ce, Table as we, Badge as Ke, Tabs as fe, ScrollArea as ke, Flex as Jn, Avatar as et, TagsInput as eo, Radio as no, Space as Ee, Modal as Cn, FocusTrap as nt, Drawer as On, Alert as to, Anchor as tt, PillsInput as Fn, Collapse as oo, AppShell as We, createTheme as ro, MantineProvider as io } from "@mantine/core";
4
- import { IconQuestionMark as He, IconSearch as zn, IconX as ot, IconFilter as rt, IconFilterOff as ao, IconChevronDown as Ce, IconChevronRight as Je, IconPlus as Te, IconDots as Pe, IconCheck as rn, IconChevronUp as Ve, IconClock as it, IconMoodSmile as qe, IconFlag as co, IconHeart as so, IconBulb as lo, IconPlane as Un, IconBallBasketball as uo, IconApple as fo, IconTrees as at, IconUser as Dn, IconBriefcase as ho, IconDeviceDesktop as po, IconCircle as mo, IconTool as go, IconMessage as Io, IconPhoto as Nn, IconArchive as wn, IconBell as yo, IconInbox as vo, IconChecklist as gn, IconChevronsLeft as ct, IconPointFilled as xo, IconPoint as wo, IconChevronLeft as Wn, IconMaximize as Rn, IconStar as bo, IconChevronsRight as Ne, IconMoodSmileFilled as Tn, IconAlignLeft as st, IconUserCircle as lt, IconUsers as dt, IconMenu2 as $n } from "@tabler/icons-react";
3
+ import { ActionIcon as le, Tooltip as Ue, Box as b, Skeleton as vn, Loader as Se, Text as T, Group as A, InputWrapper as qn, Input as Kt, Textarea as Sn, TextInput as kn, useCombobox as rn, Combobox as re, Indicator as Xn, MenuItem as Kn, Menu as pe, Stack as W, Pill as xn, Popover as je, LoadingOverlay as Jt, Button as ce, Table as we, Badge as Ke, Tabs as fe, ScrollArea as ke, Flex as Jn, Avatar as et, TagsInput as er, Radio as nr, Space as Ee, Modal as Cn, FocusTrap as nt, Drawer as On, Alert as tr, Anchor as tt, PillsInput as Fn, Collapse as rr, AppShell as We, createTheme as or, MantineProvider as ir } from "@mantine/core";
4
+ import { IconQuestionMark as He, IconSearch as zn, IconX as rt, IconFilter as ot, IconFilterOff as ar, IconChevronDown as Ce, IconChevronRight as Je, IconPlus as Te, IconDots as Pe, IconCheck as on, IconChevronUp as Ve, IconClock as it, IconMoodSmile as qe, IconFlag as cr, IconHeart as sr, IconBulb as lr, IconPlane as Un, IconBallBasketball as dr, IconApple as ur, IconTrees as at, IconUser as Dn, IconBriefcase as fr, IconDeviceDesktop as hr, IconCircle as pr, IconTool as mr, IconMessage as gr, IconPhoto as Nn, IconArchive as wn, IconBell as Ir, IconInbox as yr, IconChecklist as gn, IconChevronsLeft as ct, IconPointFilled as vr, IconPoint as xr, IconChevronLeft as Wn, IconMaximize as Rn, IconStar as wr, IconChevronsRight as Ne, IconMoodSmileFilled as Tn, IconAlignLeft as st, IconUserCircle as lt, IconUsers as dt, IconMenu2 as $n } from "@tabler/icons-react";
5
5
  import en from "@emoji-mart/data";
6
- import { init as Mo, SearchIndex as So } from "emoji-mart";
7
- import { useDisclosure as Xe, useMediaQuery as ko } from "@mantine/hooks";
8
- import { Notifications as Co } from "@mantine/notifications";
9
- import { ModalsProvider as Oo } from "@mantine/modals";
10
- import { DatesProvider as zo } from "@mantine/dates";
6
+ import { init as br, SearchIndex as Mr } from "emoji-mart";
7
+ import { useDisclosure as Xe, useMediaQuery as Sr } from "@mantine/hooks";
8
+ import { Notifications as kr } from "@mantine/notifications";
9
+ import { ModalsProvider as Cr } from "@mantine/modals";
10
+ import { DatesProvider as Or } from "@mantine/dates";
11
11
  const he = be.memo(
12
12
  ({
13
13
  onClick: n,
14
- icon: r,
14
+ icon: o,
15
15
  changeIconOnHover: t = !1,
16
- iconHovered: o,
16
+ iconHovered: r,
17
17
  iconColor: i = "var(--mantine-color-gray-7)",
18
18
  size: a = "md",
19
19
  variant: c = "transparent",
@@ -57,7 +57,7 @@ const he = be.memo(
57
57
  return s;
58
58
  if (c === "transparent")
59
59
  return w ? "var(--mantine-color-gray-2)" : "transparent";
60
- }, [s, c, w]), B = K(() => t && o && w ? o : r, [t, o, w, r]), L = K(
60
+ }, [s, c, w]), B = K(() => t && r && w ? r : o, [t, r, w, o]), L = K(
61
61
  () => /* @__PURE__ */ e(
62
62
  B,
63
63
  {
@@ -91,8 +91,8 @@ const he = be.memo(
91
91
  }
92
92
  );
93
93
  he.displayName = "ActionButton";
94
- const Do = (n) => {
95
- const r = {
94
+ const zr = (n) => {
95
+ const o = {
96
96
  xs: { width: 28, height: 28, fontSize: 16 },
97
97
  // Emoji size
98
98
  sm: { width: 32, height: 32, fontSize: 24 },
@@ -110,16 +110,16 @@ const Do = (n) => {
110
110
  width: n,
111
111
  height: n,
112
112
  fontSize: n - 8
113
- } : r[n];
114
- }, Ro = ({
113
+ } : o[n];
114
+ }, Dr = ({
115
115
  emoji: n,
116
- size: r = "lg",
116
+ size: o = "lg",
117
117
  editable: t = !1,
118
- onClick: o,
118
+ onClick: r,
119
119
  className: i,
120
120
  style: a
121
121
  }) => {
122
- const c = Do(r), s = t && o;
122
+ const c = zr(o), s = t && r;
123
123
  return /* @__PURE__ */ e(
124
124
  b,
125
125
  {
@@ -137,7 +137,7 @@ const Do = (n) => {
137
137
  backgroundColor: "transparent",
138
138
  ...a
139
139
  },
140
- onClick: s ? o : void 0,
140
+ onClick: s ? r : void 0,
141
141
  onMouseEnter: (l) => {
142
142
  s && (l.currentTarget.style.backgroundColor = "var(--mantine-color-gray-0)");
143
143
  },
@@ -176,7 +176,7 @@ const Do = (n) => {
176
176
  default:
177
177
  return 64;
178
178
  }
179
- }, Me = /* @__PURE__ */ new Map(), To = [
179
+ }, Me = /* @__PURE__ */ new Map(), Rr = [
180
180
  "IconUser",
181
181
  "IconHeart",
182
182
  "IconStar",
@@ -209,32 +209,32 @@ const Do = (n) => {
209
209
  "IconShare",
210
210
  "IconThumbUp",
211
211
  "IconTrash"
212
- ], Eo = async () => {
212
+ ], Tr = async () => {
213
213
  try {
214
214
  const n = await import("@tabler/icons-react");
215
- To.forEach((r) => {
216
- if (!Me.has(r)) {
217
- const t = n[r];
218
- t && Me.set(r, t);
215
+ Rr.forEach((o) => {
216
+ if (!Me.has(o)) {
217
+ const t = n[o];
218
+ t && Me.set(o, t);
219
219
  }
220
220
  });
221
221
  } catch (n) {
222
222
  console.warn("Error preloading common icons:", n);
223
223
  }
224
224
  };
225
- Eo();
226
- const Bo = async (n) => {
225
+ Tr();
226
+ const Er = async (n) => {
227
227
  if (Me.has(n))
228
228
  return Me.get(n);
229
229
  try {
230
- const o = (await import("@tabler/icons-react"))[n] || He;
231
- return Me.set(n, o), o;
230
+ const r = (await import("@tabler/icons-react"))[n] || He;
231
+ return Me.set(n, r), r;
232
232
  } catch {
233
233
  return Me.set(n, He), He;
234
234
  }
235
- }, Ao = (n) => n.replace(/^Icon/, "").replace(/([A-Z])/g, " $1").trim().toLowerCase().replace(/^./, (t) => t.toUpperCase()), ut = Mn(
236
- ({ iconName: n, onClick: r, size: t = 20 }) => {
237
- const [o, i] = O(null), [a, c] = O(!0), s = Z(null), l = Z(!0);
235
+ }, Br = (n) => n.replace(/^Icon/, "").replace(/([A-Z])/g, " $1").trim().toLowerCase().replace(/^./, (t) => t.toUpperCase()), ut = Mn(
236
+ ({ iconName: n, onClick: o, size: t = 20 }) => {
237
+ const [r, i] = O(null), [a, c] = O(!0), s = Z(null), l = Z(!0);
238
238
  Y(() => (l.current = !0, (async () => {
239
239
  try {
240
240
  const f = (await import("@tabler/icons-react"))[n];
@@ -246,7 +246,7 @@ const Bo = async (n) => {
246
246
  l.current = !1;
247
247
  }), [n]);
248
248
  const d = () => {
249
- a || r();
249
+ a || o();
250
250
  };
251
251
  return a ? /* @__PURE__ */ e(
252
252
  b,
@@ -267,7 +267,7 @@ const Bo = async (n) => {
267
267
  ) : /* @__PURE__ */ e(
268
268
  Ue,
269
269
  {
270
- label: Ao(n),
270
+ label: Br(n),
271
271
  position: "top",
272
272
  withArrow: !0,
273
273
  openDelay: 300,
@@ -304,7 +304,7 @@ const Bo = async (n) => {
304
304
  onMouseUp: (u) => {
305
305
  a || (u.currentTarget.style.backgroundColor = "var(--mantine-color-gray-1)", u.currentTarget.style.transform = "scale(1.05)");
306
306
  },
307
- children: o && /* @__PURE__ */ e(o, { size: t, color: "var(--mantine-color-gray-7)" })
307
+ children: r && /* @__PURE__ */ e(r, { size: t, color: "var(--mantine-color-gray-7)" })
308
308
  }
309
309
  )
310
310
  }
@@ -315,22 +315,22 @@ ut.displayName = "IconButton";
315
315
  const ft = Mn(
316
316
  ({
317
317
  iconName: n,
318
- size: r = "lg",
318
+ size: o = "lg",
319
319
  style: t,
320
- withBorder: o = !1,
320
+ withBorder: r = !1,
321
321
  radius: i = "md",
322
322
  onClick: a,
323
323
  onMouseEnter: c,
324
324
  onMouseLeave: s
325
325
  }) => {
326
- const [l, d] = O(!1), [u, p] = O(() => Me.get(n) || null), f = Re(r), I = Math.round(f * 0.9);
326
+ const [l, d] = O(!1), [u, p] = O(() => Me.get(n) || null), f = Re(o), I = Math.round(f * 0.9);
327
327
  Y(() => {
328
328
  if (Me.has(n)) {
329
329
  p(() => Me.get(n));
330
330
  return;
331
331
  }
332
332
  let g = !0;
333
- return Bo(n).then((m) => {
333
+ return Er(n).then((m) => {
334
334
  g && p(() => m);
335
335
  }), () => {
336
336
  g = !1;
@@ -352,7 +352,7 @@ const ft = Mn(
352
352
  justifyContent: "center",
353
353
  borderRadius: h(),
354
354
  cursor: a ? "pointer" : "default",
355
- border: o ? "1px solid var(--mantine-color-gray-4)" : "none",
355
+ border: r ? "1px solid var(--mantine-color-gray-4)" : "none",
356
356
  backgroundColor: l ? "var(--mantine-color-gray-0)" : "transparent",
357
357
  flexShrink: 0,
358
358
  boxSizing: "border-box",
@@ -383,7 +383,7 @@ const ft = Mn(
383
383
  justifyContent: "center",
384
384
  borderRadius: h(),
385
385
  cursor: a ? "pointer" : "default",
386
- border: o ? "1px solid var(--mantine-color-gray-4)" : "none",
386
+ border: r ? "1px solid var(--mantine-color-gray-4)" : "none",
387
387
  backgroundColor: l ? "var(--mantine-color-gray-0)" : "transparent",
388
388
  flexShrink: 0,
389
389
  boxSizing: "border-box",
@@ -402,8 +402,8 @@ const ft = Mn(
402
402
  }
403
403
  );
404
404
  ft.displayName = "IconAvatar";
405
- const Lo = (n) => {
406
- const r = {
405
+ const Ar = (n) => {
406
+ const o = {
407
407
  xs: { width: 28, height: 28 },
408
408
  sm: { width: 32, height: 32 },
409
409
  md: { width: 36, height: 36 },
@@ -414,16 +414,16 @@ const Lo = (n) => {
414
414
  return typeof n == "number" ? {
415
415
  width: n,
416
416
  height: n
417
- } : r[n];
418
- }, jo = ({
417
+ } : o[n];
418
+ }, Lr = ({
419
419
  iconName: n,
420
- size: r = "lg",
420
+ size: o = "lg",
421
421
  editable: t = !1,
422
- onClick: o,
422
+ onClick: r,
423
423
  className: i,
424
424
  style: a
425
425
  }) => {
426
- const c = Lo(r), s = t && o;
426
+ const c = Ar(o), s = t && r;
427
427
  return /* @__PURE__ */ e(
428
428
  b,
429
429
  {
@@ -441,7 +441,7 @@ const Lo = (n) => {
441
441
  backgroundColor: "transparent",
442
442
  ...a
443
443
  },
444
- onClick: s ? o : void 0,
444
+ onClick: s ? r : void 0,
445
445
  onMouseEnter: (l) => {
446
446
  s && (l.currentTarget.style.backgroundColor = "var(--mantine-color-gray-0)");
447
447
  },
@@ -472,8 +472,8 @@ const Lo = (n) => {
472
472
  )
473
473
  }
474
474
  );
475
- }, Fo = (n) => {
476
- const r = {
475
+ }, jr = (n) => {
476
+ const o = {
477
477
  xs: { width: 28, height: 28 },
478
478
  sm: { width: 32, height: 32 },
479
479
  md: { width: 36, height: 36 },
@@ -484,18 +484,18 @@ const Lo = (n) => {
484
484
  return typeof n == "number" ? {
485
485
  width: n,
486
486
  height: n
487
- } : r[n];
488
- }, Uo = ({
487
+ } : o[n];
488
+ }, Fr = ({
489
489
  src: n,
490
- size: r = "lg",
490
+ size: o = "lg",
491
491
  editable: t = !1,
492
- onClick: o,
492
+ onClick: r,
493
493
  className: i,
494
494
  style: a,
495
495
  loading: c = !1,
496
496
  alt: s = "Avatar"
497
497
  }) => {
498
- const [l, d] = O(!1), u = Fo(r), p = t && o, f = () => {
498
+ const [l, d] = O(!1), u = jr(o), p = t && r, f = () => {
499
499
  d(!0);
500
500
  }, I = () => {
501
501
  d(!1);
@@ -517,7 +517,7 @@ const Lo = (n) => {
517
517
  backgroundColor: "transparent",
518
518
  ...a
519
519
  },
520
- onClick: p ? o : void 0,
520
+ onClick: p ? r : void 0,
521
521
  onMouseEnter: (h) => {
522
522
  p && (h.currentTarget.style.backgroundColor = "var(--mantine-color-gray-0)");
523
523
  },
@@ -552,8 +552,8 @@ const Lo = (n) => {
552
552
  )
553
553
  }
554
554
  );
555
- }, No = (n) => {
556
- const r = {
555
+ }, Ur = (n) => {
556
+ const o = {
557
557
  xs: { width: 28, height: 28, fontSize: 14 },
558
558
  // Text size
559
559
  sm: { width: 32, height: 32, fontSize: 16 },
@@ -571,17 +571,17 @@ const Lo = (n) => {
571
571
  width: n,
572
572
  height: n,
573
573
  fontSize: n * 0.5
574
- } : r[n];
574
+ } : o[n];
575
575
  }, bn = ({
576
576
  text: n = "?",
577
- size: r = "lg",
577
+ size: o = "lg",
578
578
  editable: t = !1,
579
- onClick: o,
579
+ onClick: r,
580
580
  className: i,
581
581
  style: a,
582
582
  loading: c = !1
583
583
  }) => {
584
- const s = No(r), l = t && o;
584
+ const s = Ur(o), l = t && r;
585
585
  return /* @__PURE__ */ e(
586
586
  b,
587
587
  {
@@ -599,7 +599,7 @@ const Lo = (n) => {
599
599
  backgroundColor: "var(--mantine-color-gray-1)",
600
600
  ...a
601
601
  },
602
- onClick: l ? o : void 0,
602
+ onClick: l ? r : void 0,
603
603
  onMouseEnter: (d) => {
604
604
  l && (d.currentTarget.style.backgroundColor = "var(--mantine-color-gray-3)");
605
605
  },
@@ -635,10 +635,10 @@ const Lo = (n) => {
635
635
  )
636
636
  }
637
637
  );
638
- }, Wo = (n) => {
638
+ }, Nr = (n) => {
639
639
  if (!n)
640
640
  return "";
641
- const r = [
641
+ const o = [
642
642
  "de",
643
643
  "del",
644
644
  "la",
@@ -648,16 +648,16 @@ const Lo = (n) => {
648
648
  "el",
649
649
  "en",
650
650
  "con"
651
- ], o = n.trim().split(/\s+/).filter((i) => !r.includes(i.toLowerCase())).map((i) => {
651
+ ], r = n.trim().split(/\s+/).filter((i) => !o.includes(i.toLowerCase())).map((i) => {
652
652
  var a;
653
653
  return ((a = i[0]) == null ? void 0 : a.toUpperCase()) || "";
654
654
  }).filter(Boolean).slice(0, 2).join("");
655
- return o.length === 1 ? o + o : o.length === 0 ? n.slice(0, 2).toUpperCase() : o;
655
+ return r.length === 1 ? r + r : r.length === 0 ? n.slice(0, 2).toUpperCase() : r;
656
656
  }, Oe = ({
657
657
  avatar: n,
658
- size: r = "lg",
658
+ size: o = "lg",
659
659
  loading: t = !1,
660
- onClick: o,
660
+ onClick: r,
661
661
  className: i,
662
662
  style: a,
663
663
  showPlaceholder: c = !0,
@@ -669,44 +669,44 @@ const Lo = (n) => {
669
669
  switch (n.type) {
670
670
  case "emoji":
671
671
  return /* @__PURE__ */ e(
672
- Ro,
672
+ Dr,
673
673
  {
674
674
  emoji: n.value,
675
- size: r,
675
+ size: o,
676
676
  editable: l,
677
- onClick: o
677
+ onClick: r
678
678
  }
679
679
  );
680
680
  case "icon":
681
681
  return /* @__PURE__ */ e(
682
- jo,
682
+ Lr,
683
683
  {
684
684
  iconName: n.value,
685
- size: r,
685
+ size: o,
686
686
  editable: l,
687
- onClick: o
687
+ onClick: r
688
688
  }
689
689
  );
690
690
  case "image":
691
691
  return /* @__PURE__ */ e(
692
- Uo,
692
+ Fr,
693
693
  {
694
694
  src: n.value,
695
- size: r,
695
+ size: o,
696
696
  editable: l,
697
- onClick: o
697
+ onClick: r
698
698
  }
699
699
  );
700
700
  }
701
701
  if (c) {
702
- const p = s ? Wo(s) : "?";
702
+ const p = s ? Nr(s) : "?";
703
703
  return /* @__PURE__ */ e(
704
704
  bn,
705
705
  {
706
706
  text: p,
707
- size: r,
707
+ size: o,
708
708
  editable: l,
709
- onClick: o
709
+ onClick: r
710
710
  }
711
711
  );
712
712
  }
@@ -716,7 +716,7 @@ const Lo = (n) => {
716
716
  return /* @__PURE__ */ e(
717
717
  bn,
718
718
  {
719
- size: r,
719
+ size: o,
720
720
  loading: !0,
721
721
  className: i,
722
722
  style: a
@@ -726,15 +726,15 @@ const Lo = (n) => {
726
726
  return u ? /* @__PURE__ */ e("div", { className: i, style: a, children: u }) : null;
727
727
  }, En = ({
728
728
  label: n,
729
- onClick: r,
729
+ onClick: o,
730
730
  isActive: t = !1
731
731
  }) => {
732
- const [o, i] = O(!1);
732
+ const [r, i] = O(!1);
733
733
  return /* @__PURE__ */ e(
734
734
  b,
735
735
  {
736
- onClick: r,
737
- bg: o || t ? "var(--mantine-color-gray-0)" : "transparent",
736
+ onClick: o,
737
+ bg: r || t ? "var(--mantine-color-gray-0)" : "transparent",
738
738
  onMouseEnter: () => i(!0),
739
739
  onMouseLeave: () => i(!1),
740
740
  h: 28,
@@ -749,15 +749,15 @@ const Lo = (n) => {
749
749
  children: /* @__PURE__ */ e(T, { fw: 500, fz: "sm", truncate: "end", c: "var(--mantine-color-gray-9)", children: n })
750
750
  }
751
751
  );
752
- }, $o = new URL("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTUiIGhlaWdodD0iNTYiIHZpZXdCb3g9IjAgMCA1NSA1NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMC43NUg1NVY1NS43NUgwVjAuNzVaIiBmaWxsPSIjRjZGNUY0Ii8+CjxwYXRoIGQ9Ik04LjgwMDI5IDM0LjYzQzguODAwMjkgMzQuMTQ0IDkuMTk0MjggMzMuNzUgOS42ODAyOSAzMy43NUgxOC45MjAzQzE5LjQwNjMgMzMuNzUgMTkuODAwMyAzNC4xNDQgMTkuODAwMyAzNC42M1Y0My44N0MxOS44MDAzIDQ0LjM1NiAxOS40MDYzIDQ0Ljc1IDE4LjkyMDMgNDQuNzVIOS42ODAyOUM5LjE5NDI4IDQ0Ljc1IDguODAwMjkgNDQuMzU2IDguODAwMjkgNDMuODdWMzQuNjNaIiBmaWxsPSIjRkZDQTAwIi8+CjxwYXRoIGQ9Ik0yMi4wMDAyIDIzLjYzQzIyLjAwMDIgMjMuMTQ0IDIyLjM5NDIgMjIuNzUgMjIuODgwMiAyMi43NUgzMi4xMjAyQzMyLjYwNjMgMjIuNzUgMzMuMDAwMiAyMy4xNDQgMzMuMDAwMiAyMy42M1Y0My44N0MzMy4wMDAyIDQ0LjM1NiAzMi42MDYzIDQ0Ljc1IDMyLjEyMDIgNDQuNzVIMjIuODgwMkMyMi4zOTQyIDQ0Ljc1IDIyLjAwMDIgNDQuMzU2IDIyLjAwMDIgNDMuODdWMjMuNjNaIiBmaWxsPSIjMzdDRTkxIi8+CjxwYXRoIGQ9Ik0zNS4yMDAyIDEyLjYzQzM1LjIwMDIgMTIuMTQ0IDM1LjU5NDIgMTEuNzUgMzYuMDgwMiAxMS43NUg0NS4zMjAyQzQ1LjgwNjIgMTEuNzUgNDYuMjAwMiAxMi4xNDQgNDYuMjAwMiAxMi42M1Y0My44N0M0Ni4yMDAyIDQ0LjM1NiA0NS44MDYyIDQ0Ljc1IDQ1LjMyMDIgNDQuNzVIMzYuMDgwMkMzNS41OTQyIDQ0Ljc1IDM1LjIwMDIgNDQuMzU2IDM1LjIwMDIgNDMuODdWMTIuNjNaIiBmaWxsPSIjRkIzNzU3Ii8+CjxwYXRoIGQ9Ik04LjgwMDA1IDE3LjI1QzguODAwMDUgMTQuMjEyNCAxMS4yNjI1IDExLjc1IDE0LjMgMTEuNzVDMTcuMzM3NiAxMS43NSAxOS44IDE0LjIxMjQgMTkuOCAxNy4yNUMxOS44IDIwLjI4NzYgMTcuMzM3NiAyMi43NSAxNC4zIDIyLjc1QzExLjI2MjUgMjIuNzUgOC44MDAwNSAyMC4yODc2IDguODAwMDUgMTcuMjVaIiBmaWxsPSIjMDA3MkZGIi8+Cjwvc3ZnPgo=", self.location).href, Ho = ({
752
+ }, Wr = new URL("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTUiIGhlaWdodD0iNTYiIHZpZXdCb3g9IjAgMCA1NSA1NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMC43NUg1NVY1NS43NUgwVjAuNzVaIiBmaWxsPSIjRjZGNUY0Ii8+CjxwYXRoIGQ9Ik04LjgwMDI5IDM0LjYzQzguODAwMjkgMzQuMTQ0IDkuMTk0MjggMzMuNzUgOS42ODAyOSAzMy43NUgxOC45MjAzQzE5LjQwNjMgMzMuNzUgMTkuODAwMyAzNC4xNDQgMTkuODAwMyAzNC42M1Y0My44N0MxOS44MDAzIDQ0LjM1NiAxOS40MDYzIDQ0Ljc1IDE4LjkyMDMgNDQuNzVIOS42ODAyOUM5LjE5NDI4IDQ0Ljc1IDguODAwMjkgNDQuMzU2IDguODAwMjkgNDMuODdWMzQuNjNaIiBmaWxsPSIjRkZDQTAwIi8+CjxwYXRoIGQ9Ik0yMi4wMDAyIDIzLjYzQzIyLjAwMDIgMjMuMTQ0IDIyLjM5NDIgMjIuNzUgMjIuODgwMiAyMi43NUgzMi4xMjAyQzMyLjYwNjMgMjIuNzUgMzMuMDAwMiAyMy4xNDQgMzMuMDAwMiAyMy42M1Y0My44N0MzMy4wMDAyIDQ0LjM1NiAzMi42MDYzIDQ0Ljc1IDMyLjEyMDIgNDQuNzVIMjIuODgwMkMyMi4zOTQyIDQ0Ljc1IDIyLjAwMDIgNDQuMzU2IDIyLjAwMDIgNDMuODdWMjMuNjNaIiBmaWxsPSIjMzdDRTkxIi8+CjxwYXRoIGQ9Ik0zNS4yMDAyIDEyLjYzQzM1LjIwMDIgMTIuMTQ0IDM1LjU5NDIgMTEuNzUgMzYuMDgwMiAxMS43NUg0NS4zMjAyQzQ1LjgwNjIgMTEuNzUgNDYuMjAwMiAxMi4xNDQgNDYuMjAwMiAxMi42M1Y0My44N0M0Ni4yMDAyIDQ0LjM1NiA0NS44MDYyIDQ0Ljc1IDQ1LjMyMDIgNDQuNzVIMzYuMDgwMkMzNS41OTQyIDQ0Ljc1IDM1LjIwMDIgNDQuMzU2IDM1LjIwMDIgNDMuODdWMTIuNjNaIiBmaWxsPSIjRkIzNzU3Ii8+CjxwYXRoIGQ9Ik04LjgwMDA1IDE3LjI1QzguODAwMDUgMTQuMjEyNCAxMS4yNjI1IDExLjc1IDE0LjMgMTEuNzVDMTcuMzM3NiAxMS43NSAxOS44IDE0LjIxMjQgMTkuOCAxNy4yNUMxOS44IDIwLjI4NzYgMTcuMzM3NiAyMi43NSAxNC4zIDIyLjc1QzExLjI2MjUgMjIuNzUgOC44MDAwNSAyMC4yODc2IDguODAwMDUgMTcuMjVaIiBmaWxsPSIjMDA3MkZGIi8+Cjwvc3ZnPgo=", self.location).href, $r = ({
753
753
  appName: n = "Obeyaka",
754
- size: r = "md",
754
+ size: o = "md",
755
755
  showText: t = !0,
756
- color: o = "var(--mantine-color-dark-6)",
756
+ color: r = "var(--mantine-color-dark-6)",
757
757
  radius: i
758
758
  }) => {
759
759
  const a = () => {
760
- switch (r) {
760
+ switch (o) {
761
761
  case "xs":
762
762
  return { icon: 24, text: "xs" };
763
763
  case "sm":
@@ -793,7 +793,7 @@ const Lo = (n) => {
793
793
  return /* @__PURE__ */ e(
794
794
  "img",
795
795
  {
796
- src: $o,
796
+ src: Wr,
797
797
  alt: `${n} Logo`,
798
798
  width: s,
799
799
  height: u,
@@ -810,7 +810,7 @@ const Lo = (n) => {
810
810
  {
811
811
  size: l,
812
812
  fw: 700,
813
- c: o === "white" ? "white" : o,
813
+ c: r === "white" ? "white" : r,
814
814
  style: {
815
815
  fontFamily: "Inter, -apple-system, BlinkMacSystemFont, sans-serif"
816
816
  },
@@ -820,9 +820,9 @@ const Lo = (n) => {
820
820
  ] });
821
821
  }, an = ({
822
822
  value: n,
823
- label: r,
823
+ label: o,
824
824
  onChange: t,
825
- onDraftChange: o,
825
+ onDraftChange: r,
826
826
  placeholder: i = "Click to edit...",
827
827
  disabled: a = !1,
828
828
  bgColor: c = "gray",
@@ -860,7 +860,7 @@ const Lo = (n) => {
860
860
  }, L = () => {
861
861
  y(!1), S !== n && t(S);
862
862
  }, R = (N) => {
863
- M(N.target.value), o == null || o(N.target.value);
863
+ M(N.target.value), r == null || r(N.target.value);
864
864
  }, F = (N) => {
865
865
  var $, H;
866
866
  N.key === "Enter" ? (y(!1), t(S), ($ = C.current) == null || $.blur()) : N.key === "Escape" && (M(n), y(!1), (H = C.current) == null || H.blur());
@@ -873,7 +873,7 @@ const Lo = (n) => {
873
873
  transition: "border-color 0.2s ease-in-out, border-width 0.2s ease-in-out",
874
874
  color: "var(--mantine-color-gray-9)"
875
875
  }, V = () => h ? { ..._, ...x } : _;
876
- return /* @__PURE__ */ e(qn, { label: r, size: s, children: /* @__PURE__ */ e(
876
+ return /* @__PURE__ */ e(qn, { label: o, size: s, children: /* @__PURE__ */ e(
877
877
  Kt,
878
878
  {
879
879
  ref: C,
@@ -899,11 +899,11 @@ const Lo = (n) => {
899
899
  ...m
900
900
  }
901
901
  ) });
902
- }, Po = ({
902
+ }, Hr = ({
903
903
  value: n,
904
- label: r,
904
+ label: o,
905
905
  onChange: t,
906
- onDraftChange: o,
906
+ onDraftChange: r,
907
907
  placeholder: i = "Click to edit...",
908
908
  disabled: a = !1,
909
909
  bgColor: c = "gray",
@@ -944,7 +944,7 @@ const Lo = (n) => {
944
944
  }, Q = () => {
945
945
  z(!1), k !== n && t(k);
946
946
  }, _ = (J) => {
947
- C(J.target.value), o == null || o(J.target.value);
947
+ C(J.target.value), r == null || r(J.target.value);
948
948
  }, V = (J) => {
949
949
  var q;
950
950
  J.key === "Escape" && (C(n), z(!1), (q = L.current) == null || q.blur());
@@ -967,11 +967,11 @@ const Lo = (n) => {
967
967
  backgroundColor: "transparent",
968
968
  padding: "0",
969
969
  lineHeight: "3rem"
970
- }, re = () => y ? { ...$, ...H } : $;
970
+ }, oe = () => y ? { ...$, ...H } : $;
971
971
  return /* @__PURE__ */ e(
972
972
  qn,
973
973
  {
974
- label: r,
974
+ label: o,
975
975
  c: "var(--mantine-color-gray-9)",
976
976
  size: s,
977
977
  children: /* @__PURE__ */ e(
@@ -995,7 +995,7 @@ const Lo = (n) => {
995
995
  style: { ...N, ...u },
996
996
  styles: {
997
997
  input: {
998
- ...re(),
998
+ ...oe(),
999
999
  overflowY: m ? "hidden" : void 0,
1000
1000
  resize: m ? "none" : void 0
1001
1001
  }
@@ -1011,9 +1011,9 @@ const Lo = (n) => {
1011
1011
  }, Be = be.memo(
1012
1012
  ({
1013
1013
  icon: n,
1014
- iconOnHover: r,
1014
+ iconOnHover: o,
1015
1015
  size: t = "md",
1016
- color: o = "var(--mantine-color-gray-9)",
1016
+ color: r = "var(--mantine-color-gray-9)",
1017
1017
  grayScaleBaseColor: i,
1018
1018
  disabled: a = !1,
1019
1019
  tooltip: c,
@@ -1028,19 +1028,19 @@ const Lo = (n) => {
1028
1028
  } : {
1029
1029
  height: 28,
1030
1030
  iconSize: 20
1031
- }, [p, f] = O(!1), I = p && r && !a ? /* @__PURE__ */ e(
1032
- r,
1031
+ }, [p, f] = O(!1), I = p && o && !a ? /* @__PURE__ */ e(
1032
+ o,
1033
1033
  {
1034
1034
  size: u(t).iconSize,
1035
1035
  strokeWidth: 2,
1036
- color: o
1036
+ color: r
1037
1037
  }
1038
1038
  ) : /* @__PURE__ */ e(
1039
1039
  n,
1040
1040
  {
1041
1041
  size: u(t).iconSize,
1042
1042
  strokeWidth: 2,
1043
- color: o,
1043
+ color: r,
1044
1044
  opacity: a ? 0.5 : 1
1045
1045
  }
1046
1046
  );
@@ -1061,11 +1061,11 @@ const Lo = (n) => {
1061
1061
  }
1062
1062
  );
1063
1063
  }
1064
- ), Vo = ({
1064
+ ), Pr = ({
1065
1065
  expandDirection: n = "right",
1066
- placeholder: r = "Type to search",
1066
+ placeholder: o = "Type to search",
1067
1067
  value: t = "",
1068
- onChange: o,
1068
+ onChange: r,
1069
1069
  onSearch: i,
1070
1070
  onClear: a,
1071
1071
  size: c = "md",
@@ -1094,11 +1094,11 @@ const Lo = (n) => {
1094
1094
  s || u(!0);
1095
1095
  }, S = (x) => {
1096
1096
  const B = x.target.value;
1097
- h(B), o == null || o(B);
1097
+ h(B), r == null || r(B);
1098
1098
  }, M = (x) => {
1099
1099
  x.key === "Enter" && (i == null || i(I)), x.key === "Escape" && w();
1100
1100
  }, z = () => {
1101
- h(""), o == null || o(""), a == null || a(), w();
1101
+ h(""), r == null || r(""), a == null || a(), w();
1102
1102
  }, C = (() => {
1103
1103
  switch (c) {
1104
1104
  case "sm":
@@ -1180,7 +1180,7 @@ const Lo = (n) => {
1180
1180
  value: I,
1181
1181
  onChange: S,
1182
1182
  onKeyDown: M,
1183
- placeholder: r,
1183
+ placeholder: o,
1184
1184
  disabled: s,
1185
1185
  height: C.inputHeight,
1186
1186
  fw: 500,
@@ -1233,7 +1233,7 @@ const Lo = (n) => {
1233
1233
  x.currentTarget.style.backgroundColor = "transparent";
1234
1234
  },
1235
1235
  children: /* @__PURE__ */ e(
1236
- ot,
1236
+ rt,
1237
1237
  {
1238
1238
  size: 14,
1239
1239
  color: "var(--mantine-color-gray-6)",
@@ -1271,17 +1271,17 @@ const Lo = (n) => {
1271
1271
  );
1272
1272
  }, Bn = ({
1273
1273
  activeFilters: n,
1274
- onFiltersChange: r,
1274
+ onFiltersChange: o,
1275
1275
  availableFilters: t,
1276
- size: o = "md",
1276
+ size: r = "md",
1277
1277
  filterButtonDropdownPosition: i = "bottom-end"
1278
1278
  }) => {
1279
- const a = on({
1279
+ const a = rn({
1280
1280
  onDropdownClose: () => a.resetSelectedOption(),
1281
1281
  onDropdownOpen: () => a.updateSelectedOptionIndex("active")
1282
1282
  }), [c, s] = O(!1), l = n.length > 0, d = (g) => {
1283
1283
  if (g === "remove-filters")
1284
- r([]);
1284
+ o([]);
1285
1285
  else {
1286
1286
  const m = t == null ? void 0 : t.find(
1287
1287
  (w) => w.value === g
@@ -1291,7 +1291,7 @@ const Lo = (n) => {
1291
1291
  id: `${m.value}-${Date.now()}`,
1292
1292
  filterOption: m
1293
1293
  };
1294
- r([...n, w]);
1294
+ o([...n, w]);
1295
1295
  }
1296
1296
  }
1297
1297
  a.closeDropdown();
@@ -1305,7 +1305,7 @@ const Lo = (n) => {
1305
1305
  color: "var(--mantine-color-gray-7)",
1306
1306
  fontWeight: "500"
1307
1307
  }, I = (() => {
1308
- switch (o) {
1308
+ switch (r) {
1309
1309
  case "sm":
1310
1310
  return {
1311
1311
  height: "32px",
@@ -1342,11 +1342,11 @@ const Lo = (n) => {
1342
1342
  onMouseEnter: () => s(!0),
1343
1343
  onMouseLeave: () => s(!1),
1344
1344
  onClick: () => a.toggleDropdown(),
1345
- children: /* @__PURE__ */ e(rt, { size: 20, stroke: 2.3 })
1345
+ children: /* @__PURE__ */ e(ot, { size: 20, stroke: 2.3 })
1346
1346
  }
1347
1347
  );
1348
1348
  return /* @__PURE__ */ v(
1349
- oe,
1349
+ re,
1350
1350
  {
1351
1351
  store: a,
1352
1352
  onOptionSubmit: d,
@@ -1354,7 +1354,7 @@ const Lo = (n) => {
1354
1354
  offset: 4,
1355
1355
  position: i,
1356
1356
  children: [
1357
- /* @__PURE__ */ e(oe.Target, { children: l ? /* @__PURE__ */ e(
1357
+ /* @__PURE__ */ e(re.Target, { children: l ? /* @__PURE__ */ e(
1358
1358
  Xn,
1359
1359
  {
1360
1360
  offset: 2,
@@ -1364,7 +1364,7 @@ const Lo = (n) => {
1364
1364
  }
1365
1365
  ) : h }),
1366
1366
  /* @__PURE__ */ e(
1367
- oe.Dropdown,
1367
+ re.Dropdown,
1368
1368
  {
1369
1369
  styles: {
1370
1370
  dropdown: {
@@ -1376,9 +1376,9 @@ const Lo = (n) => {
1376
1376
  minWidth: "160px"
1377
1377
  }
1378
1378
  },
1379
- children: /* @__PURE__ */ v(oe.Options, { children: [
1379
+ children: /* @__PURE__ */ v(re.Options, { children: [
1380
1380
  u.map((g) => /* @__PURE__ */ e(
1381
- oe.Option,
1381
+ re.Option,
1382
1382
  {
1383
1383
  value: g.value,
1384
1384
  style: {
@@ -1398,7 +1398,7 @@ const Lo = (n) => {
1398
1398
  g.value
1399
1399
  )),
1400
1400
  l && /* @__PURE__ */ e(
1401
- oe.Option,
1401
+ re.Option,
1402
1402
  {
1403
1403
  value: "remove-filters",
1404
1404
  style: {
@@ -1412,7 +1412,7 @@ const Lo = (n) => {
1412
1412
  {
1413
1413
  style: { display: "flex", alignItems: "center", gap: "8px" },
1414
1414
  children: [
1415
- /* @__PURE__ */ e(ao, { size: 16, stroke: 2 }),
1415
+ /* @__PURE__ */ e(ar, { size: 16, stroke: 2 }),
1416
1416
  "Remove filters"
1417
1417
  ]
1418
1418
  }
@@ -1425,18 +1425,18 @@ const Lo = (n) => {
1425
1425
  ]
1426
1426
  }
1427
1427
  );
1428
- }, _o = ({
1428
+ }, Vr = ({
1429
1429
  filterTag: n,
1430
- onUpdate: r,
1430
+ onUpdate: o,
1431
1431
  onRemove: t,
1432
- options: o = [],
1432
+ options: r = [],
1433
1433
  filterTagDropdownPosition: i = "bottom-start"
1434
1434
  }) => {
1435
1435
  var f;
1436
- const a = on({
1436
+ const a = rn({
1437
1437
  onDropdownClose: () => a.resetSelectedOption(),
1438
1438
  onDropdownOpen: () => a.updateSelectedOptionIndex("active")
1439
- }), c = !!n.selectedOption, s = c ? `${n.filterOption.label}: ${(f = n.selectedOption) == null ? void 0 : f.label}` : n.filterOption.label, l = o && o.length > 0 ? o : [
1439
+ }), c = !!n.selectedOption, s = c ? `${n.filterOption.label}: ${(f = n.selectedOption) == null ? void 0 : f.label}` : n.filterOption.label, l = r && r.length > 0 ? r : [
1440
1440
  { value: "option-a", label: "TagFilterOptionA" },
1441
1441
  { value: "option-b", label: "TagFilterOptionB" },
1442
1442
  { value: "option-c", label: "TagFilterOptionC" }
@@ -1445,7 +1445,7 @@ const Lo = (n) => {
1445
1445
  t();
1446
1446
  else {
1447
1447
  const h = l.find((g) => g.value === I);
1448
- h && r({
1448
+ h && o({
1449
1449
  ...n,
1450
1450
  selectedOption: h
1451
1451
  });
@@ -1470,7 +1470,7 @@ const Lo = (n) => {
1470
1470
  padding: "0 12px"
1471
1471
  };
1472
1472
  return /* @__PURE__ */ v(
1473
- oe,
1473
+ re,
1474
1474
  {
1475
1475
  store: a,
1476
1476
  onOptionSubmit: d,
@@ -1479,7 +1479,7 @@ const Lo = (n) => {
1479
1479
  position: i,
1480
1480
  middlewares: { flip: !1, shift: !0 },
1481
1481
  children: [
1482
- /* @__PURE__ */ e(oe.Target, { children: /* @__PURE__ */ v(
1482
+ /* @__PURE__ */ e(re.Target, { children: /* @__PURE__ */ v(
1483
1483
  b,
1484
1484
  {
1485
1485
  style: {
@@ -1505,7 +1505,7 @@ const Lo = (n) => {
1505
1505
  }
1506
1506
  ) }),
1507
1507
  /* @__PURE__ */ e(
1508
- oe.Dropdown,
1508
+ re.Dropdown,
1509
1509
  {
1510
1510
  styles: {
1511
1511
  dropdown: {
@@ -1516,11 +1516,11 @@ const Lo = (n) => {
1516
1516
  minWidth: "150px"
1517
1517
  }
1518
1518
  },
1519
- children: /* @__PURE__ */ v(oe.Options, { children: [
1519
+ children: /* @__PURE__ */ v(re.Options, { children: [
1520
1520
  l.map((I) => {
1521
1521
  var h;
1522
1522
  return /* @__PURE__ */ e(
1523
- oe.Option,
1523
+ re.Option,
1524
1524
  {
1525
1525
  value: I.value,
1526
1526
  active: ((h = n.selectedOption) == null ? void 0 : h.value) === I.value,
@@ -1533,7 +1533,7 @@ const Lo = (n) => {
1533
1533
  );
1534
1534
  }),
1535
1535
  /* @__PURE__ */ e(
1536
- oe.Option,
1536
+ re.Option,
1537
1537
  {
1538
1538
  value: "remove",
1539
1539
  style: {
@@ -1551,13 +1551,13 @@ const Lo = (n) => {
1551
1551
  ]
1552
1552
  }
1553
1553
  );
1554
- }, Go = ({
1554
+ }, _r = ({
1555
1555
  activeFilters: n,
1556
- onFiltersChange: r,
1556
+ onFiltersChange: o,
1557
1557
  availableFilters: t,
1558
- addFilterButtonDropdownPosition: o = "bottom-start"
1558
+ addFilterButtonDropdownPosition: r = "bottom-start"
1559
1559
  }) => {
1560
- const i = on({
1560
+ const i = rn({
1561
1561
  onDropdownClose: () => i.resetSelectedOption(),
1562
1562
  onDropdownOpen: () => i.updateSelectedOptionIndex("active")
1563
1563
  }), [a, c] = O(!1), s = (f) => {
@@ -1569,7 +1569,7 @@ const Lo = (n) => {
1569
1569
  id: `${I.value}-${Date.now()}`,
1570
1570
  filterOption: I
1571
1571
  };
1572
- r([...n, h]);
1572
+ o([...n, h]);
1573
1573
  }
1574
1574
  i.closeDropdown();
1575
1575
  }, l = (t || []).filter(
@@ -1603,15 +1603,15 @@ const Lo = (n) => {
1603
1603
  fontWeight: "500"
1604
1604
  };
1605
1605
  return /* @__PURE__ */ v(
1606
- oe,
1606
+ re,
1607
1607
  {
1608
1608
  store: i,
1609
1609
  onOptionSubmit: s,
1610
1610
  withinPortal: !1,
1611
1611
  offset: 4,
1612
- position: o,
1612
+ position: r,
1613
1613
  children: [
1614
- /* @__PURE__ */ e(oe.Target, { children: /* @__PURE__ */ e(
1614
+ /* @__PURE__ */ e(re.Target, { children: /* @__PURE__ */ e(
1615
1615
  b,
1616
1616
  {
1617
1617
  style: {
@@ -1633,13 +1633,13 @@ const Lo = (n) => {
1633
1633
  }
1634
1634
  ) }),
1635
1635
  /* @__PURE__ */ e(
1636
- oe.Dropdown,
1636
+ re.Dropdown,
1637
1637
  {
1638
1638
  styles: {
1639
1639
  ...u
1640
1640
  },
1641
- children: /* @__PURE__ */ e(oe.Options, { children: l.map((f) => /* @__PURE__ */ e(
1642
- oe.Option,
1641
+ children: /* @__PURE__ */ e(re.Options, { children: l.map((f) => /* @__PURE__ */ e(
1642
+ re.Option,
1643
1643
  {
1644
1644
  value: f.value,
1645
1645
  style: {
@@ -1665,9 +1665,9 @@ const Lo = (n) => {
1665
1665
  );
1666
1666
  }, An = ({
1667
1667
  activeFilters: n,
1668
- onFiltersChange: r,
1668
+ onFiltersChange: o,
1669
1669
  availableFilters: t,
1670
- size: o = "sm",
1670
+ size: r = "sm",
1671
1671
  getFilterOptions: i,
1672
1672
  filterTagDropdownPosition: a = "bottom-start"
1673
1673
  }) => {
@@ -1675,12 +1675,12 @@ const Lo = (n) => {
1675
1675
  const u = (n || []).map(
1676
1676
  (p) => p.id === d.id ? d : p
1677
1677
  );
1678
- r(u);
1678
+ o(u);
1679
1679
  }, s = (d) => {
1680
1680
  const u = (n || []).filter(
1681
1681
  (p) => p.id !== d
1682
1682
  );
1683
- r(u);
1683
+ o(u);
1684
1684
  }, l = (t || []).filter(
1685
1685
  (d) => !n.some(
1686
1686
  (u) => u.filterOption.value === d.value
@@ -1690,12 +1690,12 @@ const Lo = (n) => {
1690
1690
  (n || []).map((d) => {
1691
1691
  const u = i ? i(d.filterOption.value) || [] : [];
1692
1692
  return /* @__PURE__ */ e(
1693
- _o,
1693
+ Vr,
1694
1694
  {
1695
1695
  filterTag: d,
1696
1696
  onUpdate: c,
1697
1697
  onRemove: () => s(d.id),
1698
- size: o,
1698
+ size: r,
1699
1699
  options: u,
1700
1700
  filterTagDropdownPosition: a
1701
1701
  },
@@ -1703,20 +1703,20 @@ const Lo = (n) => {
1703
1703
  );
1704
1704
  }),
1705
1705
  l.length > 0 && /* @__PURE__ */ e(
1706
- Go,
1706
+ _r,
1707
1707
  {
1708
1708
  activeFilters: n,
1709
- onFiltersChange: r,
1709
+ onFiltersChange: o,
1710
1710
  availableFilters: l,
1711
- size: o
1711
+ size: r
1712
1712
  }
1713
1713
  )
1714
1714
  ] }) });
1715
- }, Qo = ({
1715
+ }, Gr = ({
1716
1716
  activeFilters: n,
1717
- onFiltersChange: r,
1717
+ onFiltersChange: o,
1718
1718
  availableFilters: t,
1719
- size: o = "md",
1719
+ size: r = "md",
1720
1720
  getFilterOptions: i,
1721
1721
  filterTagDropdownPosition: a = "bottom-start"
1722
1722
  }) => /* @__PURE__ */ v("div", { style: { display: "flex", flexDirection: "column", gap: "12px" }, children: [
@@ -1724,52 +1724,52 @@ const Lo = (n) => {
1724
1724
  Bn,
1725
1725
  {
1726
1726
  activeFilters: n,
1727
- onFiltersChange: r,
1727
+ onFiltersChange: o,
1728
1728
  availableFilters: t,
1729
- size: o
1729
+ size: r
1730
1730
  }
1731
1731
  ),
1732
1732
  /* @__PURE__ */ e(
1733
1733
  An,
1734
1734
  {
1735
1735
  activeFilters: n,
1736
- onFiltersChange: r,
1736
+ onFiltersChange: o,
1737
1737
  availableFilters: t,
1738
1738
  size: "sm",
1739
1739
  getFilterOptions: i,
1740
1740
  filterTagDropdownPosition: a
1741
1741
  }
1742
1742
  )
1743
- ] }), Ri = Object.assign(Qo, {
1743
+ ] }), Ri = Object.assign(Gr, {
1744
1744
  Button: Bn,
1745
1745
  Filters: An
1746
- }), Yo = ({
1746
+ }), Qr = ({
1747
1747
  children: n,
1748
- danger: r,
1748
+ danger: o,
1749
1749
  active: t,
1750
- ...o
1750
+ ...r
1751
1751
  }) => /* @__PURE__ */ e(
1752
1752
  Kn,
1753
1753
  {
1754
- ...o,
1754
+ ...r,
1755
1755
  style: {
1756
1756
  borderRadius: "8px",
1757
- color: t ? "var(--mantine-color-blue-7)" : r ? "var(--mantine-color-red-9)" : "var(--mantine-color-gray-9)",
1757
+ color: t ? "var(--mantine-color-blue-7)" : o ? "var(--mantine-color-red-9)" : "var(--mantine-color-gray-9)",
1758
1758
  backgroundColor: t ? "var(--mantine-color-blue-0)" : "transparent",
1759
- ...o.style
1759
+ ...r.style
1760
1760
  },
1761
1761
  children: n
1762
1762
  }
1763
1763
  ), nn = ({
1764
1764
  trigger: n,
1765
- menuItems: r,
1765
+ menuItems: o,
1766
1766
  children: t,
1767
- ...o
1767
+ ...r
1768
1768
  }) => {
1769
1769
  const i = Z(null), [a, c] = O(0);
1770
1770
  return Y(() => {
1771
1771
  i.current && c(i.current.offsetWidth);
1772
- }, [n]), /* @__PURE__ */ v(pe, { ...o, children: [
1772
+ }, [n]), /* @__PURE__ */ v(pe, { ...r, children: [
1773
1773
  /* @__PURE__ */ e(pe.Target, { children: /* @__PURE__ */ e(
1774
1774
  "div",
1775
1775
  {
@@ -1797,16 +1797,16 @@ const Lo = (n) => {
1797
1797
  },
1798
1798
  children: [
1799
1799
  t,
1800
- r == null ? void 0 : r.map((s, l) => /* @__PURE__ */ e(Yo, { ...s }, l))
1800
+ o == null ? void 0 : o.map((s, l) => /* @__PURE__ */ e(Qr, { ...s }, l))
1801
1801
  ]
1802
1802
  }
1803
1803
  )
1804
1804
  ] });
1805
1805
  }, ht = ({
1806
1806
  label: n,
1807
- icon: r,
1807
+ icon: o,
1808
1808
  onClick: t,
1809
- color: o = "gray",
1809
+ color: r = "gray",
1810
1810
  disabled: i = !1,
1811
1811
  "aria-label": a,
1812
1812
  indicator: c,
@@ -1825,7 +1825,7 @@ const Lo = (n) => {
1825
1825
  variant: "transparent",
1826
1826
  justify: "flex-start",
1827
1827
  display: "flex",
1828
- color: o,
1828
+ color: r,
1829
1829
  radius: "md",
1830
1830
  w: s ? "100%" : "auto",
1831
1831
  px: 6,
@@ -1849,7 +1849,7 @@ const Lo = (n) => {
1849
1849
  width: "28px",
1850
1850
  height: "28px"
1851
1851
  },
1852
- children: r
1852
+ children: o
1853
1853
  }
1854
1854
  ),
1855
1855
  /* @__PURE__ */ e(
@@ -1889,9 +1889,9 @@ const Lo = (n) => {
1889
1889
  );
1890
1890
  }, Hn = ({
1891
1891
  label: n,
1892
- rightLabel: r,
1892
+ rightLabel: o,
1893
1893
  children: t,
1894
- onAddChild: o,
1894
+ onAddChild: r,
1895
1895
  onMenuAction: i,
1896
1896
  menuItems: a,
1897
1897
  color: c = "gray",
@@ -1911,17 +1911,17 @@ const Lo = (n) => {
1911
1911
  d || g == null || g();
1912
1912
  }, [g, d]), B = j(
1913
1913
  ($) => {
1914
- $.stopPropagation(), !d && (o == null || o());
1914
+ $.stopPropagation(), !d && (r == null || r());
1915
1915
  },
1916
- [o, d]
1916
+ [r, d]
1917
1917
  ), L = j(
1918
1918
  ($) => {
1919
1919
  $ == null || $.stopPropagation(), !d && k && !u && S((H) => !H);
1920
1920
  },
1921
1921
  [d, k, u]
1922
1922
  ), R = j(() => {
1923
- d || o == null || o();
1924
- }, [o, d]), F = j(
1923
+ d || r == null || r();
1924
+ }, [r, d]), F = j(
1925
1925
  ($) => {
1926
1926
  d || i == null || i($);
1927
1927
  },
@@ -2011,9 +2011,9 @@ const Lo = (n) => {
2011
2011
  }
2012
2012
  ),
2013
2013
  /* @__PURE__ */ v(A, { gap: "xs", align: "center", children: [
2014
- r && /* @__PURE__ */ e(T, { size: "xs", c: "dimmed", children: r }),
2014
+ o && /* @__PURE__ */ e(T, { size: "xs", c: "dimmed", children: o }),
2015
2015
  M && !d && /* @__PURE__ */ v(A, { gap: 4, wrap: "nowrap", children: [
2016
- o && /* @__PURE__ */ e(
2016
+ r && /* @__PURE__ */ e(
2017
2017
  Be,
2018
2018
  {
2019
2019
  icon: Te,
@@ -2022,7 +2022,7 @@ const Lo = (n) => {
2022
2022
  color: "var(--mantine-color-gray-7)"
2023
2023
  }
2024
2024
  ),
2025
- (a && a.length > 0 || o) && /* @__PURE__ */ e("div", { onClick: ($) => $.stopPropagation(), children: /* @__PURE__ */ e(
2025
+ (a && a.length > 0 || r) && /* @__PURE__ */ e("div", { onClick: ($) => $.stopPropagation(), children: /* @__PURE__ */ e(
2026
2026
  nn,
2027
2027
  {
2028
2028
  menuItems: N,
@@ -2047,22 +2047,22 @@ const Lo = (n) => {
2047
2047
  ),
2048
2048
  y && !u && /* @__PURE__ */ e(W, { gap: 0, style: { width: "100%" }, children: k ? Q() : /* @__PURE__ */ e(b, { style: { marginLeft: l > 0 ? `${l * 16}px` : "0px" }, children: /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", ta: "left", p: "sm", fw: 500, children: s }) }) })
2049
2049
  ] });
2050
- }, Zo = "userChip-module__pill___DgFME", qo = {
2051
- pill: Zo
2050
+ }, Yr = "userChip-module__pill___DgFME", Zr = {
2051
+ pill: Yr
2052
2052
  }, In = ({
2053
2053
  avatar: n,
2054
- name: r,
2054
+ name: o,
2055
2055
  withRemoveButton: t = !1,
2056
- onRemove: o
2056
+ onRemove: r
2057
2057
  }) => /* @__PURE__ */ e(
2058
2058
  xn,
2059
2059
  {
2060
2060
  withRemoveButton: t,
2061
- onRemove: o,
2061
+ onRemove: r,
2062
2062
  radius: "md",
2063
2063
  p: "0px",
2064
2064
  size: "md",
2065
- className: qo.pill,
2065
+ className: Zr.pill,
2066
2066
  bg: "transparent",
2067
2067
  children: /* @__PURE__ */ v(A, { gap: 4, wrap: "nowrap", style: { alignItems: "center" }, children: [
2068
2068
  /* @__PURE__ */ e(
@@ -2070,18 +2070,18 @@ const Lo = (n) => {
2070
2070
  {
2071
2071
  avatar: n,
2072
2072
  size: 24,
2073
- placeholder: r,
2073
+ placeholder: o,
2074
2074
  showPlaceholder: !0
2075
2075
  }
2076
2076
  ),
2077
- /* @__PURE__ */ e(T, { size: "sm", fw: 450, c: "var(--mantine-color-gray-9)", children: r })
2077
+ /* @__PURE__ */ e(T, { size: "sm", fw: 450, c: "var(--mantine-color-gray-9)", children: o })
2078
2078
  ] })
2079
2079
  }
2080
- ), Xo = "200px", Ko = "4px 8px", Jo = 40, er = "var(--mantine-radius-md)", nr = 16, tr = ({
2080
+ ), qr = "200px", Xr = "4px 8px", Kr = 40, Jr = "var(--mantine-radius-md)", eo = 16, no = ({
2081
2081
  item: n,
2082
- withAvatars: r,
2082
+ withAvatars: o,
2083
2083
  disabled: t = !1,
2084
- onClick: o,
2084
+ onClick: r,
2085
2085
  selected: i = !1
2086
2086
  }) => {
2087
2087
  const [a, c] = O(!1);
@@ -2091,17 +2091,17 @@ const Lo = (n) => {
2091
2091
  onMouseEnter: () => !t && c(!0),
2092
2092
  onMouseLeave: () => !t && c(!1),
2093
2093
  onClick: (s) => {
2094
- s.preventDefault(), s.stopPropagation(), t || o == null || o(n.value);
2094
+ s.preventDefault(), s.stopPropagation(), t || r == null || r(n.value);
2095
2095
  },
2096
2096
  onMouseDown: (s) => {
2097
2097
  s.stopPropagation();
2098
2098
  },
2099
2099
  style: {
2100
- minWidth: Xo,
2100
+ minWidth: qr,
2101
2101
  backgroundColor: t ? "transparent" : a ? "var(--mantine-color-gray-1)" : "transparent",
2102
2102
  cursor: t ? "default" : "pointer",
2103
- borderRadius: er,
2104
- padding: Ko,
2103
+ borderRadius: Jr,
2104
+ padding: Xr,
2105
2105
  transition: "background-color 0.2s ease",
2106
2106
  opacity: t ? 0.5 : 1
2107
2107
  },
@@ -2112,9 +2112,9 @@ const Lo = (n) => {
2112
2112
  wrap: "nowrap",
2113
2113
  align: "flex-start",
2114
2114
  style: { alignItems: "center" },
2115
- h: Jo,
2115
+ h: Kr,
2116
2116
  children: [
2117
- r && n.avatar && /* @__PURE__ */ e(
2117
+ o && n.avatar && /* @__PURE__ */ e(
2118
2118
  "img",
2119
2119
  {
2120
2120
  src: n.avatar,
@@ -2148,9 +2148,9 @@ const Lo = (n) => {
2148
2148
  )
2149
2149
  ] }),
2150
2150
  i && /* @__PURE__ */ e(
2151
- rn,
2151
+ on,
2152
2152
  {
2153
- size: nr,
2153
+ size: eo,
2154
2154
  color: "var(--mantine-color-gray-9)"
2155
2155
  }
2156
2156
  )
@@ -2159,11 +2159,11 @@ const Lo = (n) => {
2159
2159
  )
2160
2160
  }
2161
2161
  );
2162
- }, or = "bottom-end", rr = 1e4, ir = "24px", ar = "0 8px", cr = "6px", Pn = "var(--mantine-radius-md)", sr = "46px", Ln = ({
2162
+ }, to = "bottom-end", ro = 1e4, oo = "24px", io = "0 8px", ao = "6px", Pn = "var(--mantine-radius-md)", co = "46px", Ln = ({
2163
2163
  value: n,
2164
- onChange: r,
2164
+ onChange: o,
2165
2165
  data: t,
2166
- withRemove: o = !1,
2166
+ withRemove: r = !1,
2167
2167
  withAvatars: i = !1,
2168
2168
  onRemove: a,
2169
2169
  disabledOptions: c = [],
@@ -2174,7 +2174,7 @@ const Lo = (n) => {
2174
2174
  triggerStyles: p,
2175
2175
  textStyles: f
2176
2176
  }) => {
2177
- const [I, h] = O(!1), g = (t || []).find((x) => x.value === n) || l, [m, w] = O(!1), [y, S] = O(!1), [M, z] = O(!1), k = o ? /* @__PURE__ */ e(
2177
+ const [I, h] = O(!1), g = (t || []).find((x) => x.value === n) || l, [m, w] = O(!1), [y, S] = O(!1), [M, z] = O(!1), k = r ? /* @__PURE__ */ e(
2178
2178
  A,
2179
2179
  {
2180
2180
  p: "sm",
@@ -2183,7 +2183,7 @@ const Lo = (n) => {
2183
2183
  },
2184
2184
  style: {
2185
2185
  cursor: "pointer",
2186
- height: sr,
2186
+ height: co,
2187
2187
  display: "flex",
2188
2188
  alignItems: "center",
2189
2189
  borderRadius: Pn,
@@ -2203,15 +2203,15 @@ const Lo = (n) => {
2203
2203
  s || (h(!0), z(!0));
2204
2204
  },
2205
2205
  style: {
2206
- height: ir,
2206
+ height: oo,
2207
2207
  cursor: s ? "not-allowed" : "pointer",
2208
2208
  display: "inline-flex",
2209
2209
  alignItems: "center",
2210
2210
  borderRadius: Pn,
2211
2211
  backgroundColor: s ? "transparent" : m || M ? "var(--mantine-color-gray-1)" : "transparent",
2212
2212
  transition: "background-color 0.2s ease",
2213
- padding: ar,
2214
- gap: cr,
2213
+ padding: io,
2214
+ gap: ao,
2215
2215
  width: "auto",
2216
2216
  opacity: s ? 0.6 : 1,
2217
2217
  ...p
@@ -2251,10 +2251,10 @@ const Lo = (n) => {
2251
2251
  onChange: (x) => {
2252
2252
  h(x), x || z(!1);
2253
2253
  },
2254
- position: or,
2254
+ position: to,
2255
2255
  shadow: "md",
2256
2256
  withinPortal: !0,
2257
- zIndex: rr,
2257
+ zIndex: ro,
2258
2258
  styles: d,
2259
2259
  children: [
2260
2260
  /* @__PURE__ */ e(je.Target, { children: C }),
@@ -2280,14 +2280,14 @@ const Lo = (n) => {
2280
2280
  (t || []).map((x) => {
2281
2281
  const B = c.includes(x.value), L = x.value === n;
2282
2282
  return /* @__PURE__ */ e(
2283
- tr,
2283
+ no,
2284
2284
  {
2285
2285
  item: x,
2286
2286
  withAvatars: i,
2287
2287
  disabled: B,
2288
2288
  selected: L,
2289
2289
  onClick: (R) => {
2290
- r == null || r(R), h(!1), z(!1);
2290
+ o == null || o(R), h(!1), z(!1);
2291
2291
  }
2292
2292
  },
2293
2293
  x.value
@@ -2302,14 +2302,14 @@ const Lo = (n) => {
2302
2302
  ]
2303
2303
  }
2304
2304
  );
2305
- }, lr = (n, r, t, o) => {
2305
+ }, so = (n, o, t, r) => {
2306
2306
  const i = Z(null), a = Z(null), c = j(
2307
2307
  (l) => {
2308
- l[0].isIntersecting && t && !o && r && r();
2308
+ l[0].isIntersecting && t && !r && o && o();
2309
2309
  },
2310
- [t, o, r]
2310
+ [t, r, o]
2311
2311
  ), s = j(() => {
2312
- if (!(!i.current || !n || !r)) {
2312
+ if (!(!i.current || !n || !o)) {
2313
2313
  a.current && (a.current.disconnect(), a.current = null);
2314
2314
  try {
2315
2315
  const l = new IntersectionObserver(c, {
@@ -2321,7 +2321,7 @@ const Lo = (n) => {
2321
2321
  console.error("Failed to setup intersection observer:", l);
2322
2322
  }
2323
2323
  }
2324
- }, [n, r, c]);
2324
+ }, [n, o, c]);
2325
2325
  return Y(() => (s(), () => {
2326
2326
  a.current && (a.current.disconnect(), a.current = null);
2327
2327
  }), [s]), Y(() => () => {
@@ -2329,11 +2329,11 @@ const Lo = (n) => {
2329
2329
  }, []), {
2330
2330
  loadMoreRef: i
2331
2331
  };
2332
- }, dr = ({
2332
+ }, lo = ({
2333
2333
  tableName: n,
2334
- data: r,
2334
+ data: o,
2335
2335
  columns: t,
2336
- onAddItem: o,
2336
+ onAddItem: r,
2337
2337
  addItemComponent: i,
2338
2338
  addItemLabel: a = "Add item",
2339
2339
  loading: c = !1,
@@ -2355,7 +2355,7 @@ const Lo = (n) => {
2355
2355
  hasMore: k = !1,
2356
2356
  onLoadMore: C
2357
2357
  }) => {
2358
- const [x, B] = O(""), [L, R] = O([]), { loadMoreRef: F } = lr(
2358
+ const [x, B] = O(""), [L, R] = O([]), { loadMoreRef: F } = so(
2359
2359
  M,
2360
2360
  C || (() => {
2361
2361
  }),
@@ -2365,7 +2365,7 @@ const Lo = (n) => {
2365
2365
  value: E.key,
2366
2366
  label: E.label
2367
2367
  })) : [], ...u], [t, d, u]), _ = K(() => {
2368
- let D = r || [];
2368
+ let D = o || [];
2369
2369
  if (x) {
2370
2370
  const E = x.toLowerCase();
2371
2371
  D = D.filter((U) => t.some((P) => {
@@ -2387,7 +2387,7 @@ const Lo = (n) => {
2387
2387
  }));
2388
2388
  }
2389
2389
  }), D;
2390
- }, [r, x, L, t]), V = (D) => {
2390
+ }, [o, x, L, t]), V = (D) => {
2391
2391
  B(D), g == null || g(D);
2392
2392
  }, N = (D) => {
2393
2393
  const E = t.find((P) => P.key === D);
@@ -2401,12 +2401,12 @@ const Lo = (n) => {
2401
2401
  value: U.value,
2402
2402
  label: U.label
2403
2403
  })) : (E == null ? void 0 : E.type) === "badge" ? [
2404
- ...new Set(r.map((P) => P[E.key]).filter(Boolean))
2404
+ ...new Set(o.map((P) => P[E.key]).filter(Boolean))
2405
2405
  ].map((P) => ({
2406
2406
  value: String(P),
2407
2407
  label: String(P).charAt(0).toUpperCase() + String(P).slice(1)
2408
2408
  })) : E ? [
2409
- ...new Set(r.map((P) => P[E.key]).filter(Boolean))
2409
+ ...new Set(o.map((P) => P[E.key]).filter(Boolean))
2410
2410
  ].map((P) => ({
2411
2411
  value: String(P),
2412
2412
  label: String(P).charAt(0).toUpperCase() + String(P).slice(1)
@@ -2505,7 +2505,7 @@ const Lo = (n) => {
2505
2505
  default:
2506
2506
  return /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: "—" });
2507
2507
  }
2508
- }, re = (D) => {
2508
+ }, oe = (D) => {
2509
2509
  var E;
2510
2510
  return (E = t.find((U) => U.key === D)) != null && E.sortable ? I === D ? h === "asc" ? /* @__PURE__ */ e(Ve, { size: 14 }) : /* @__PURE__ */ e(Ce, { size: 14 }) : /* @__PURE__ */ e(Ve, { size: 14, style: { opacity: 0.3 } }) : null;
2511
2511
  }, q = (() => {
@@ -2526,7 +2526,7 @@ const Lo = (n) => {
2526
2526
  /* @__PURE__ */ v(A, { gap: "xs", wrap: "nowrap", children: [
2527
2527
  /* @__PURE__ */ v(A, { gap: 4, wrap: "nowrap", children: [
2528
2528
  /* @__PURE__ */ e(
2529
- Vo,
2529
+ Pr,
2530
2530
  {
2531
2531
  placeholder: l,
2532
2532
  value: x,
@@ -2556,7 +2556,7 @@ const Lo = (n) => {
2556
2556
  }
2557
2557
  )
2558
2558
  ] }),
2559
- o && /* @__PURE__ */ e(
2559
+ r && /* @__PURE__ */ e(
2560
2560
  ce,
2561
2561
  {
2562
2562
  size: "compact-md",
@@ -2566,7 +2566,7 @@ const Lo = (n) => {
2566
2566
  border: "none"
2567
2567
  },
2568
2568
  radius: "md",
2569
- onClick: o,
2569
+ onClick: r,
2570
2570
  children: a
2571
2571
  }
2572
2572
  )
@@ -2615,7 +2615,7 @@ const Lo = (n) => {
2615
2615
  children: /* @__PURE__ */ v(A, { gap: "xs", wrap: "nowrap", children: [
2616
2616
  D.icon && /* @__PURE__ */ e(b, { style: { display: "flex", alignItems: "center" }, children: D.icon }),
2617
2617
  /* @__PURE__ */ e(T, { size: q.textSize, fw: 500, children: D.label }),
2618
- re(D.key)
2618
+ oe(D.key)
2619
2619
  ] })
2620
2620
  },
2621
2621
  String(D.key)
@@ -2658,14 +2658,14 @@ const Lo = (n) => {
2658
2658
  )
2659
2659
  ] });
2660
2660
  };
2661
- Object.assign(dr, {
2661
+ Object.assign(lo, {
2662
2662
  // Future static methods or sub-components can be added here
2663
2663
  });
2664
- const ur = ({
2664
+ const uo = ({
2665
2665
  onAvatarSelect: n,
2666
- onEmojiSelect: r,
2666
+ onEmojiSelect: o,
2667
2667
  onImageSelect: t,
2668
- onIconSelect: o
2668
+ onIconSelect: r
2669
2669
  } = {}) => {
2670
2670
  const [i, a] = O(
2671
2671
  "emoji"
@@ -2686,14 +2686,14 @@ const ur = ({
2686
2686
  }, B.readAsDataURL(x);
2687
2687
  }, []), S = j(
2688
2688
  (x) => {
2689
- p(x), d(null), g(null), I(null), n == null || n({ type: "emoji", value: x }), r == null || r(x);
2689
+ p(x), d(null), g(null), I(null), n == null || n({ type: "emoji", value: x }), o == null || o(x);
2690
2690
  },
2691
- [n, r]
2691
+ [n, o]
2692
2692
  ), M = j(
2693
2693
  (x) => {
2694
- I(x), d(null), g(null), p(null), n == null || n({ type: "icon", value: x }), o == null || o(x);
2694
+ I(x), d(null), g(null), p(null), n == null || n({ type: "icon", value: x }), r == null || r(x);
2695
2695
  },
2696
- [n, o]
2696
+ [n, r]
2697
2697
  ), z = j(() => {
2698
2698
  if (h && l) {
2699
2699
  const x = URL.createObjectURL(h);
@@ -2723,36 +2723,36 @@ const ur = ({
2723
2723
  clearImagePreview: k,
2724
2724
  resetState: C
2725
2725
  };
2726
- }, fr = ({
2726
+ }, fo = ({
2727
2727
  opened: n,
2728
- onClose: r,
2728
+ onClose: o,
2729
2729
  popoverRef: t
2730
2730
  }) => {
2731
- const o = j(
2731
+ const r = j(
2732
2732
  (a) => {
2733
- n && t.current && !t.current.contains(a.target) && (console.log("Click outside detected, closing popover"), r());
2733
+ n && t.current && !t.current.contains(a.target) && (console.log("Click outside detected, closing popover"), o());
2734
2734
  },
2735
- [n, r, t]
2735
+ [n, o, t]
2736
2736
  ), i = j(
2737
2737
  (a) => {
2738
- a.key === "Escape" && n && (console.log("Escape key pressed, closing popover"), r());
2738
+ a.key === "Escape" && n && (console.log("Escape key pressed, closing popover"), o());
2739
2739
  },
2740
- [n, r]
2740
+ [n, o]
2741
2741
  );
2742
2742
  return Y(() => {
2743
2743
  if (n)
2744
- return document.addEventListener("mousedown", o), document.addEventListener("keydown", i), () => {
2745
- document.removeEventListener("mousedown", o), document.removeEventListener("keydown", i);
2744
+ return document.addEventListener("mousedown", r), document.addEventListener("keydown", i), () => {
2745
+ document.removeEventListener("mousedown", r), document.removeEventListener("keydown", i);
2746
2746
  };
2747
- }, [n, o, i]), {
2748
- handleClickOutside: o,
2747
+ }, [n, r, i]), {
2748
+ handleClickOutside: r,
2749
2749
  handleEscape: i
2750
2750
  };
2751
- }, hr = ({
2751
+ }, ho = ({
2752
2752
  selectedTab: n,
2753
- tabHovered: r,
2753
+ tabHovered: o,
2754
2754
  onTabChange: t,
2755
- onTabHover: o,
2755
+ onTabHover: r,
2756
2756
  onRemove: i,
2757
2757
  hasAvatar: a = !1,
2758
2758
  children: c
@@ -2777,8 +2777,8 @@ const ur = ({
2777
2777
  p: 0,
2778
2778
  pb: "xs",
2779
2779
  onClick: () => t("emoji"),
2780
- onMouseEnter: () => o("emoji"),
2781
- onMouseLeave: () => o(null),
2780
+ onMouseEnter: () => r("emoji"),
2781
+ onMouseLeave: () => r(null),
2782
2782
  style: {
2783
2783
  backgroundColor: "transparent"
2784
2784
  },
@@ -2793,7 +2793,7 @@ const ur = ({
2793
2793
  justifyContent: "center",
2794
2794
  padding: "0 8px",
2795
2795
  border: "none",
2796
- backgroundColor: r === "emoji" ? "var(--mantine-color-gray-1)" : "transparent",
2796
+ backgroundColor: o === "emoji" ? "var(--mantine-color-gray-1)" : "transparent",
2797
2797
  color: n === "emoji" ? "var(--mantine-color-gray-9)" : "var(--mantine-color-gray-6)",
2798
2798
  cursor: "pointer"
2799
2799
  },
@@ -2811,8 +2811,8 @@ const ur = ({
2811
2811
  p: 0,
2812
2812
  pb: "xs",
2813
2813
  onClick: () => t("icons"),
2814
- onMouseEnter: () => o("icons"),
2815
- onMouseLeave: () => o(null),
2814
+ onMouseEnter: () => r("icons"),
2815
+ onMouseLeave: () => r(null),
2816
2816
  style: {
2817
2817
  backgroundColor: "transparent"
2818
2818
  },
@@ -2827,7 +2827,7 @@ const ur = ({
2827
2827
  padding: "0 8px",
2828
2828
  borderRadius: "var(--mantine-radius-md)",
2829
2829
  border: "none",
2830
- backgroundColor: r === "icons" ? "var(--mantine-color-gray-1)" : "transparent",
2830
+ backgroundColor: o === "icons" ? "var(--mantine-color-gray-1)" : "transparent",
2831
2831
  color: n === "icons" ? "var(--mantine-color-gray-9)" : "var(--mantine-color-gray-6)",
2832
2832
  cursor: "pointer"
2833
2833
  },
@@ -2845,8 +2845,8 @@ const ur = ({
2845
2845
  p: 0,
2846
2846
  pb: "xs",
2847
2847
  onClick: () => t("image"),
2848
- onMouseEnter: () => o("image"),
2849
- onMouseLeave: () => o(null),
2848
+ onMouseEnter: () => r("image"),
2849
+ onMouseLeave: () => r(null),
2850
2850
  style: {
2851
2851
  backgroundColor: "transparent"
2852
2852
  },
@@ -2861,7 +2861,7 @@ const ur = ({
2861
2861
  padding: "0 8px",
2862
2862
  borderRadius: "var(--mantine-radius-md)",
2863
2863
  border: "none",
2864
- backgroundColor: r === "image" ? "var(--mantine-color-gray-1)" : "transparent",
2864
+ backgroundColor: o === "image" ? "var(--mantine-color-gray-1)" : "transparent",
2865
2865
  color: n === "image" ? "var(--mantine-color-gray-9)" : "var(--mantine-color-gray-6)",
2866
2866
  cursor: "pointer"
2867
2867
  },
@@ -2905,8 +2905,8 @@ const ur = ({
2905
2905
  );
2906
2906
  };
2907
2907
  let Vn = !1;
2908
- Vn || (Mo({ data: en }), Vn = !0);
2909
- const pr = () => {
2908
+ Vn || (br({ data: en }), Vn = !0);
2909
+ const po = () => {
2910
2910
  const n = [
2911
2911
  {
2912
2912
  id: "frequent",
@@ -2914,63 +2914,63 @@ const pr = () => {
2914
2914
  icon: /* @__PURE__ */ e(it, { size: 20, strokeWidth: 2.5 })
2915
2915
  }
2916
2916
  ];
2917
- return en.categories.forEach((r) => {
2918
- if (r.emojis && r.emojis.length > 0) {
2919
- let t = /* @__PURE__ */ e(qe, { size: 20, strokeWidth: 2 }), o = r.name;
2920
- switch (r.id) {
2917
+ return en.categories.forEach((o) => {
2918
+ if (o.emojis && o.emojis.length > 0) {
2919
+ let t = /* @__PURE__ */ e(qe, { size: 20, strokeWidth: 2 }), r = o.name;
2920
+ switch (o.id) {
2921
2921
  case "people":
2922
- t = /* @__PURE__ */ e(qe, { size: 20, strokeWidth: 2 }), o = "Smileys & People";
2922
+ t = /* @__PURE__ */ e(qe, { size: 20, strokeWidth: 2 }), r = "Smileys & People";
2923
2923
  break;
2924
2924
  case "nature":
2925
- t = /* @__PURE__ */ e(at, { size: 20, strokeWidth: 2 }), o = "Animals & Nature";
2925
+ t = /* @__PURE__ */ e(at, { size: 20, strokeWidth: 2 }), r = "Animals & Nature";
2926
2926
  break;
2927
2927
  case "foods":
2928
- t = /* @__PURE__ */ e(fo, { size: 20, strokeWidth: 2 }), o = "Food & Drink";
2928
+ t = /* @__PURE__ */ e(ur, { size: 20, strokeWidth: 2 }), r = "Food & Drink";
2929
2929
  break;
2930
2930
  case "activity":
2931
- t = /* @__PURE__ */ e(uo, { size: 20, strokeWidth: 2 }), o = "Activities";
2931
+ t = /* @__PURE__ */ e(dr, { size: 20, strokeWidth: 2 }), r = "Activities";
2932
2932
  break;
2933
2933
  case "travel":
2934
- t = /* @__PURE__ */ e(Un, { size: 20, strokeWidth: 2 }), o = "Travel & Places";
2934
+ t = /* @__PURE__ */ e(Un, { size: 20, strokeWidth: 2 }), r = "Travel & Places";
2935
2935
  break;
2936
2936
  case "places":
2937
- t = /* @__PURE__ */ e(Un, { size: 20, strokeWidth: 2 }), o = "Travel & Places";
2937
+ t = /* @__PURE__ */ e(Un, { size: 20, strokeWidth: 2 }), r = "Travel & Places";
2938
2938
  break;
2939
2939
  case "objects":
2940
- t = /* @__PURE__ */ e(lo, { size: 20, strokeWidth: 2 }), o = "Objects";
2940
+ t = /* @__PURE__ */ e(lr, { size: 20, strokeWidth: 2 }), r = "Objects";
2941
2941
  break;
2942
2942
  case "symbols":
2943
- t = /* @__PURE__ */ e(so, { size: 20, strokeWidth: 2 }), o = "Symbols";
2943
+ t = /* @__PURE__ */ e(sr, { size: 20, strokeWidth: 2 }), r = "Symbols";
2944
2944
  break;
2945
2945
  case "flags":
2946
- t = /* @__PURE__ */ e(co, { size: 20, strokeWidth: 2 }), o = "Flags";
2946
+ t = /* @__PURE__ */ e(cr, { size: 20, strokeWidth: 2 }), r = "Flags";
2947
2947
  break;
2948
2948
  case "frequent":
2949
2949
  return;
2950
2950
  default:
2951
- t = /* @__PURE__ */ e(qe, { size: 20, strokeWidth: 2 }), o = `Category: ${r.id}`;
2951
+ t = /* @__PURE__ */ e(qe, { size: 20, strokeWidth: 2 }), r = `Category: ${o.id}`;
2952
2952
  break;
2953
2953
  }
2954
2954
  n.push({
2955
- id: r.id,
2956
- name: o,
2955
+ id: o.id,
2956
+ name: r,
2957
2957
  icon: t
2958
2958
  });
2959
2959
  }
2960
2960
  }), n;
2961
- }, mr = ({
2961
+ }, mo = ({
2962
2962
  onEmojiSelect: n,
2963
- height: r = 200
2963
+ height: o = 200
2964
2964
  }) => {
2965
- const [t, o] = O(""), [i, a] = O("people"), [c, s] = O(() => {
2965
+ const [t, r] = O(""), [i, a] = O("people"), [c, s] = O(() => {
2966
2966
  if (typeof window < "u") {
2967
2967
  const m = localStorage.getItem("emoji-frequent");
2968
2968
  return m ? JSON.parse(m) : [];
2969
2969
  }
2970
2970
  return [];
2971
- }), [l, d] = O([]), [u, p] = O(!1), f = pr();
2971
+ }), [l, d] = O([]), [u, p] = O(!1), f = po();
2972
2972
  Y(() => {
2973
- t.trim() ? (p(!0), So.search(t).then((m) => {
2973
+ t.trim() ? (p(!0), Mr.search(t).then((m) => {
2974
2974
  d(
2975
2975
  m.map((w) => ({
2976
2976
  id: w.id,
@@ -3009,14 +3009,14 @@ const pr = () => {
3009
3009
  return typeof window < "u" && localStorage.setItem("emoji-frequent", JSON.stringify(S)), S;
3010
3010
  });
3011
3011
  };
3012
- return /* @__PURE__ */ v(W, { gap: 0, style: { height: r, width: "100%" }, children: [
3012
+ return /* @__PURE__ */ v(W, { gap: 0, style: { height: o, width: "100%" }, children: [
3013
3013
  /* @__PURE__ */ e(b, { p: "sm", pb: "xs", children: /* @__PURE__ */ v(W, { gap: "xs", children: [
3014
3014
  /* @__PURE__ */ e(
3015
3015
  kn,
3016
3016
  {
3017
3017
  placeholder: "Search emojis...",
3018
3018
  value: t,
3019
- onChange: (m) => o(m.target.value),
3019
+ onChange: (m) => r(m.target.value),
3020
3020
  leftSection: /* @__PURE__ */ e(zn, { size: 16, strokeWidth: 2.5 }),
3021
3021
  fw: 500,
3022
3022
  size: "sm",
@@ -3127,7 +3127,7 @@ const pr = () => {
3127
3127
  b,
3128
3128
  {
3129
3129
  onClick: () => {
3130
- a(m.id), o("");
3130
+ a(m.id), r("");
3131
3131
  },
3132
3132
  style: {
3133
3133
  width: "40px",
@@ -4157,21 +4157,21 @@ const $e = [
4157
4157
  name: "Communication",
4158
4158
  icons: wt
4159
4159
  }
4160
- ], gr = {
4160
+ ], go = {
4161
4161
  recent: /* @__PURE__ */ e(it, { size: 20, strokeWidth: 2.5 }),
4162
4162
  user: /* @__PURE__ */ e(Dn, { size: 20, strokeWidth: 2.5 }),
4163
- business: /* @__PURE__ */ e(ho, { size: 20, strokeWidth: 2.5 }),
4164
- tech: /* @__PURE__ */ e(po, { size: 20, strokeWidth: 2.5 }),
4163
+ business: /* @__PURE__ */ e(fr, { size: 20, strokeWidth: 2.5 }),
4164
+ tech: /* @__PURE__ */ e(hr, { size: 20, strokeWidth: 2.5 }),
4165
4165
  expressions: /* @__PURE__ */ e(qe, { size: 20, strokeWidth: 2.5 }),
4166
4166
  nature: /* @__PURE__ */ e(at, { size: 20, strokeWidth: 2.5 }),
4167
- shapes: /* @__PURE__ */ e(mo, { size: 20, strokeWidth: 2.5 }),
4168
- actions: /* @__PURE__ */ e(go, { size: 20, strokeWidth: 2.5 }),
4169
- communication: /* @__PURE__ */ e(Io, { size: 20, strokeWidth: 2.5 })
4170
- }, Ir = ({
4167
+ shapes: /* @__PURE__ */ e(pr, { size: 20, strokeWidth: 2.5 }),
4168
+ actions: /* @__PURE__ */ e(mr, { size: 20, strokeWidth: 2.5 }),
4169
+ communication: /* @__PURE__ */ e(gr, { size: 20, strokeWidth: 2.5 })
4170
+ }, Io = ({
4171
4171
  selectedCategory: n,
4172
- onCategoryChange: r
4172
+ onCategoryChange: o
4173
4173
  }) => /* @__PURE__ */ e(Jn, { gap: "0px", justify: "center", wrap: "wrap", children: $e.map((t) => {
4174
- const o = gr[t.id];
4174
+ const r = go[t.id];
4175
4175
  return /* @__PURE__ */ e(
4176
4176
  Ue,
4177
4177
  {
@@ -4185,7 +4185,7 @@ const $e = [
4185
4185
  children: /* @__PURE__ */ e(
4186
4186
  b,
4187
4187
  {
4188
- onClick: () => r(t.id),
4188
+ onClick: () => o(t.id),
4189
4189
  style: {
4190
4190
  width: "40px",
4191
4191
  height: "40px",
@@ -4204,16 +4204,16 @@ const $e = [
4204
4204
  onMouseLeave: (i) => {
4205
4205
  i.currentTarget.style.backgroundColor = n === t.id ? "var(--mantine-color-gray-0)" : "transparent";
4206
4206
  },
4207
- children: o
4207
+ children: r
4208
4208
  }
4209
4209
  )
4210
4210
  },
4211
4211
  t.id
4212
4212
  );
4213
4213
  }) }), bt = Mn(
4214
- ({ onIconSelect: n, height: r = 358 }) => {
4214
+ ({ onIconSelect: n, height: o = 358 }) => {
4215
4215
  var m, w;
4216
- const [t, o] = O(""), [i, a] = O("recent"), [c, s] = O(!1), [l, d] = O([]);
4216
+ const [t, r] = O(""), [i, a] = O("recent"), [c, s] = O(!1), [l, d] = O([]);
4217
4217
  Qn(() => {
4218
4218
  if (typeof window < "u") {
4219
4219
  const y = localStorage.getItem("avatar-icon-recent");
@@ -4274,20 +4274,20 @@ const $e = [
4274
4274
  [n, u]
4275
4275
  ), g = j(
4276
4276
  (y) => {
4277
- i !== y && (o(""), a(y), requestAnimationFrame(() => {
4277
+ i !== y && (r(""), a(y), requestAnimationFrame(() => {
4278
4278
  s(!0), setTimeout(() => s(!1), 100);
4279
4279
  }));
4280
4280
  },
4281
4281
  [i]
4282
4282
  );
4283
- return /* @__PURE__ */ v(W, { gap: 0, style: { height: r, width: "100%" }, children: [
4283
+ return /* @__PURE__ */ v(W, { gap: 0, style: { height: o, width: "100%" }, children: [
4284
4284
  /* @__PURE__ */ e(b, { p: "sm", pb: "xs", children: /* @__PURE__ */ v(W, { gap: "xs", children: [
4285
4285
  /* @__PURE__ */ e(
4286
4286
  kn,
4287
4287
  {
4288
4288
  placeholder: t.trim() ? "Search all icons..." : `Search in ${(m = $e.find((y) => y.id === i)) == null ? void 0 : m.name}...`,
4289
4289
  value: t,
4290
- onChange: (y) => o(y.target.value),
4290
+ onChange: (y) => r(y.target.value),
4291
4291
  leftSection: /* @__PURE__ */ e(zn, { size: 16 }),
4292
4292
  fw: 500,
4293
4293
  size: "sm",
@@ -4332,7 +4332,7 @@ const $e = [
4332
4332
  py: "xs",
4333
4333
  style: { borderTop: "1px solid var(--mantine-color-gray-3)" },
4334
4334
  children: /* @__PURE__ */ e(
4335
- Ir,
4335
+ Io,
4336
4336
  {
4337
4337
  selectedCategory: i,
4338
4338
  onCategoryChange: g
@@ -4344,11 +4344,11 @@ const $e = [
4344
4344
  }
4345
4345
  );
4346
4346
  bt.displayName = "IconGrid";
4347
- const yr = ({
4347
+ const yo = ({
4348
4348
  previewImage: n,
4349
- fileInputRef: r,
4349
+ fileInputRef: o,
4350
4350
  selectedEmoji: t,
4351
- size: o,
4351
+ size: r,
4352
4352
  loading: i,
4353
4353
  onFileInputClick: a,
4354
4354
  onImageChange: c,
@@ -4363,12 +4363,12 @@ const yr = ({
4363
4363
  src: n,
4364
4364
  radius: "md",
4365
4365
  style: {
4366
- width: `${Re(o)}px !important`,
4367
- height: `${Re(o)}px !important`,
4368
- minWidth: `${Re(o)}px`,
4369
- minHeight: `${Re(o)}px`,
4370
- maxWidth: `${Re(o)}px`,
4371
- maxHeight: `${Re(o)}px`,
4366
+ width: `${Re(r)}px !important`,
4367
+ height: `${Re(r)}px !important`,
4368
+ minWidth: `${Re(r)}px`,
4369
+ minHeight: `${Re(r)}px`,
4370
+ maxWidth: `${Re(r)}px`,
4371
+ maxHeight: `${Re(r)}px`,
4372
4372
  border: "1px solid var(--mantine-color-gray-4)",
4373
4373
  objectFit: "cover",
4374
4374
  boxSizing: "border-box"
@@ -4409,7 +4409,7 @@ const yr = ({
4409
4409
  /* @__PURE__ */ e(
4410
4410
  "input",
4411
4411
  {
4412
- ref: r,
4412
+ ref: o,
4413
4413
  type: "file",
4414
4414
  accept: "image/jpeg,image/jpg,image/png,image/gif,image/webp",
4415
4415
  onChange: (d) => {
@@ -4444,30 +4444,30 @@ const yr = ({
4444
4444
  )
4445
4445
  ] }),
4446
4446
  /* @__PURE__ */ e(T, { size: "xs", c: "var(--mantine-color-gray-6)", ta: "center", children: "Supported formats: JPG, PNG, GIF, WebP" })
4447
- ] }) }), vr = ({ onEmojiSelect: n }) => /* @__PURE__ */ e(mr, { onEmojiSelect: n, height: 358 }), xr = ({ onIconSelect: n }) => /* @__PURE__ */ e(bt, { onIconSelect: n, height: 358 }), wr = ({
4447
+ ] }) }), vo = ({ onEmojiSelect: n }) => /* @__PURE__ */ e(mo, { onEmojiSelect: n, height: 358 }), xo = ({ onIconSelect: n }) => /* @__PURE__ */ e(bt, { onIconSelect: n, height: 358 }), wo = ({
4448
4448
  previewImage: n,
4449
- selectedEmoji: r,
4449
+ selectedEmoji: o,
4450
4450
  size: t,
4451
- loading: o,
4451
+ loading: r,
4452
4452
  onFileInputClick: i,
4453
4453
  onImageChange: a,
4454
4454
  onImageAccept: c,
4455
4455
  onClearImagePreview: s,
4456
4456
  fileInputRef: l
4457
4457
  }) => /* @__PURE__ */ e(
4458
- yr,
4458
+ yo,
4459
4459
  {
4460
4460
  previewImage: n,
4461
4461
  fileInputRef: l,
4462
- selectedEmoji: r,
4462
+ selectedEmoji: o,
4463
4463
  size: t,
4464
- loading: o,
4464
+ loading: r,
4465
4465
  onFileInputClick: i,
4466
4466
  onImageChange: a,
4467
4467
  onImageAccept: c,
4468
4468
  onClearImagePreview: s
4469
4469
  }
4470
- ), br = () => /* @__PURE__ */ e(
4470
+ ), bo = () => /* @__PURE__ */ e(
4471
4471
  b,
4472
4472
  {
4473
4473
  style: {
@@ -4484,9 +4484,9 @@ const yr = ({
4484
4484
  }
4485
4485
  ), jn = ({
4486
4486
  editable: n = !0,
4487
- opened: r,
4487
+ opened: o,
4488
4488
  onOpen: t,
4489
- onClose: o,
4489
+ onClose: r,
4490
4490
  // New props
4491
4491
  avatar: i,
4492
4492
  onAvatarSelect: a,
@@ -4516,30 +4516,30 @@ const yr = ({
4516
4516
  handleIconSelect: F,
4517
4517
  clearImagePreview: Q,
4518
4518
  resetState: _
4519
- } = ur({
4519
+ } = uo({
4520
4520
  onAvatarSelect: a
4521
4521
  });
4522
- fr({
4523
- opened: r,
4524
- onClose: o,
4522
+ fo({
4523
+ opened: o,
4524
+ onClose: r,
4525
4525
  popoverRef: g
4526
4526
  }), Y(() => {
4527
- r || _();
4528
- }, [r, _]);
4527
+ o || _();
4528
+ }, [o, _]);
4529
4529
  const V = (ie) => {
4530
- console.log("Emoji clicked:", ie), R(ie), o();
4530
+ console.log("Emoji clicked:", ie), R(ie), r();
4531
4531
  }, N = (ie) => {
4532
- console.log("Icon clicked:", ie), F(ie), o();
4532
+ console.log("Icon clicked:", ie), F(ie), r();
4533
4533
  }, $ = (ie) => {
4534
4534
  ie && B(ie);
4535
4535
  }, H = () => {
4536
- k ? (L(), o()) : (M || z) && o();
4537
- }, re = () => {
4536
+ k ? (L(), r()) : (M || z) && r();
4537
+ }, oe = () => {
4538
4538
  h.current && h.current.click();
4539
4539
  }, J = () => {
4540
4540
  Q();
4541
4541
  }, q = () => {
4542
- console.log("Avatar removed"), c == null || c(), o();
4542
+ console.log("Avatar removed"), c == null || c(), r();
4543
4543
  }, D = () => !!i, E = () => l ? /* @__PURE__ */ e(bn, { size: s, loading: !0 }) : /* @__PURE__ */ e(
4544
4544
  Oe,
4545
4545
  {
@@ -4549,24 +4549,24 @@ const yr = ({
4549
4549
  showPlaceholder: u,
4550
4550
  editable: !0,
4551
4551
  onClick: () => {
4552
- !l && !r && t();
4552
+ !l && !o && t();
4553
4553
  }
4554
4554
  }
4555
- ), U = /* @__PURE__ */ e(vr, { onEmojiSelect: V }), P = /* @__PURE__ */ e(xr, { onIconSelect: N }), X = /* @__PURE__ */ e(
4556
- wr,
4555
+ ), U = /* @__PURE__ */ e(vo, { onEmojiSelect: V }), P = /* @__PURE__ */ e(xo, { onIconSelect: N }), X = /* @__PURE__ */ e(
4556
+ wo,
4557
4557
  {
4558
4558
  previewImage: S,
4559
4559
  selectedEmoji: M,
4560
4560
  size: s,
4561
4561
  loading: l,
4562
- onFileInputClick: re,
4562
+ onFileInputClick: oe,
4563
4563
  onImageChange: $,
4564
4564
  onImageAccept: H,
4565
4565
  onClearImagePreview: J,
4566
4566
  fileInputRef: h
4567
4567
  }
4568
4568
  ), de = /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(
4569
- hr,
4569
+ ho,
4570
4570
  {
4571
4571
  selectedTab: w,
4572
4572
  tabHovered: y,
@@ -4579,9 +4579,9 @@ const yr = ({
4579
4579
  ) }), G = /* @__PURE__ */ e("div", { style: { position: "relative", display: "inline-block" }, children: /* @__PURE__ */ v(
4580
4580
  je,
4581
4581
  {
4582
- opened: r,
4582
+ opened: o,
4583
4583
  onClose: () => {
4584
- console.log("Popover onClose called"), o();
4584
+ console.log("Popover onClose called"), r();
4585
4585
  },
4586
4586
  position: p,
4587
4587
  withinPortal: f,
@@ -4599,7 +4599,7 @@ const yr = ({
4599
4599
  ref: g,
4600
4600
  p: 0,
4601
4601
  style: { width: "auto", overflow: "hidden", zIndex: I },
4602
- children: /* @__PURE__ */ e(Zt, { fallback: /* @__PURE__ */ e(br, {}), children: de })
4602
+ children: /* @__PURE__ */ e(Zt, { fallback: /* @__PURE__ */ e(bo, {}), children: de })
4603
4603
  }
4604
4604
  )
4605
4605
  ]
@@ -4614,42 +4614,42 @@ const yr = ({
4614
4614
  showPlaceholder: u
4615
4615
  }
4616
4616
  ) });
4617
- }, Mr = (n) => {
4617
+ }, Mo = (n) => {
4618
4618
  if (!n || typeof n != "string")
4619
4619
  return !1;
4620
- const r = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
4621
- return n.length < 5 || n.length > 254 ? !1 : r.test(n.trim());
4622
- }, Sr = (n) => {
4623
- const r = [];
4620
+ const o = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
4621
+ return n.length < 5 || n.length > 254 ? !1 : o.test(n.trim());
4622
+ }, So = (n) => {
4623
+ const o = [];
4624
4624
  return n.forEach((t) => {
4625
- Mr(t) || r.push({
4625
+ Mo(t) || o.push({
4626
4626
  email: t,
4627
4627
  error: "Please enter a valid email address"
4628
4628
  });
4629
4629
  }), {
4630
- isValid: r.length === 0,
4631
- errors: r
4630
+ isValid: o.length === 0,
4631
+ errors: o
4632
4632
  };
4633
- }, kr = (n) => {
4634
- const r = [], t = /* @__PURE__ */ new Set();
4635
- return n.forEach((o) => {
4636
- const i = o.toLowerCase().trim();
4637
- t.has(i) ? r.push({
4638
- email: o,
4633
+ }, ko = (n) => {
4634
+ const o = [], t = /* @__PURE__ */ new Set();
4635
+ return n.forEach((r) => {
4636
+ const i = r.toLowerCase().trim();
4637
+ t.has(i) ? o.push({
4638
+ email: r,
4639
4639
  error: "This email has already been added"
4640
4640
  }) : t.add(i);
4641
- }), r;
4642
- }, Cr = (n) => {
4643
- const r = Sr(n), t = kr(n), o = [...r.errors, ...t];
4641
+ }), o;
4642
+ }, Co = (n) => {
4643
+ const o = So(n), t = ko(n), r = [...o.errors, ...t];
4644
4644
  return {
4645
- isValid: o.length === 0,
4646
- errors: o
4645
+ isValid: r.length === 0,
4646
+ errors: r
4647
4647
  };
4648
- }, Or = ({
4648
+ }, Oo = ({
4649
4649
  value: n,
4650
- onChange: r,
4650
+ onChange: o,
4651
4651
  onInputChange: t,
4652
- suggestedUsers: o = [],
4652
+ suggestedUsers: r = [],
4653
4653
  tagDisplayMap: i = {}
4654
4654
  }) => {
4655
4655
  const [a, c] = O(""), [s, l] = O(
@@ -4657,14 +4657,14 @@ const yr = ({
4657
4657
  ), d = Z(null), u = n.map((g) => {
4658
4658
  if (i[g])
4659
4659
  return i[g];
4660
- const m = o.find((w) => w.email === g);
4660
+ const m = r.find((w) => w.email === g);
4661
4661
  return m && m.name ? m.name : g;
4662
4662
  });
4663
4663
  Y(() => {
4664
4664
  t && t(a);
4665
4665
  }, [a, t]), Y(() => {
4666
4666
  if (n.length > 0) {
4667
- const g = Cr(n);
4667
+ const g = Co(n);
4668
4668
  l(g.errors);
4669
4669
  } else
4670
4670
  l([]);
@@ -4685,7 +4685,7 @@ const yr = ({
4685
4685
  }, []);
4686
4686
  const p = j(
4687
4687
  (g) => {
4688
- const m = o.map((y) => ({
4688
+ const m = r.map((y) => ({
4689
4689
  name: y.name || y.email,
4690
4690
  email: y.email
4691
4691
  })), w = g.map((y) => {
@@ -4697,9 +4697,9 @@ const yr = ({
4697
4697
  const z = M.name.toLowerCase(), k = y.toLowerCase();
4698
4698
  return z.startsWith(k) && k !== z;
4699
4699
  }));
4700
- r(w), c("");
4700
+ o(w), c("");
4701
4701
  },
4702
- [r, o]
4702
+ [o, r]
4703
4703
  ), f = j(() => {
4704
4704
  d.current && (d.current.value = "", c(""));
4705
4705
  }, []), I = s.length === 0 && n.length > 0, h = j(
@@ -4720,9 +4720,9 @@ const yr = ({
4720
4720
  };
4721
4721
  }, Mt = ({
4722
4722
  onInvite: n,
4723
- onUpdateRole: r,
4723
+ onUpdateRole: o,
4724
4724
  onRemoveUser: t,
4725
- invitedUsers: o = [],
4725
+ invitedUsers: r = [],
4726
4726
  suggestedUsers: i = [],
4727
4727
  roleOptions: a = []
4728
4728
  }) => {
@@ -4746,7 +4746,7 @@ const yr = ({
4746
4746
  ), z = (R, F, Q) => {
4747
4747
  n && n(R, F, Q), s([]), p("");
4748
4748
  }, k = (R, F) => {
4749
- r && r(R, F);
4749
+ o && o(R, F);
4750
4750
  }, C = (R) => {
4751
4751
  t && t(R);
4752
4752
  }, x = (R) => {
@@ -4788,9 +4788,9 @@ const yr = ({
4788
4788
  }, St = qt(
4789
4789
  ({
4790
4790
  value: n,
4791
- onChange: r,
4791
+ onChange: o,
4792
4792
  placeholder: t = "Add one or more emails",
4793
- onInvite: o,
4793
+ onInvite: r,
4794
4794
  roleOptions: i = [],
4795
4795
  selectedRole: a,
4796
4796
  onRoleChange: c,
@@ -4808,14 +4808,14 @@ const yr = ({
4808
4808
  handleEmailChange: w,
4809
4809
  clearInput: y,
4810
4810
  handleInvite: S
4811
- } = Or({
4811
+ } = Oo({
4812
4812
  value: n,
4813
- onChange: r,
4813
+ onChange: o,
4814
4814
  onInputChange: s,
4815
4815
  suggestedUsers: l,
4816
4816
  tagDisplayMap: d
4817
4817
  }), M = () => {
4818
- S(o, a, p), f("");
4818
+ S(r, a, p), f("");
4819
4819
  };
4820
4820
  Xt(
4821
4821
  u,
@@ -4838,7 +4838,7 @@ const yr = ({
4838
4838
  marginRight: "-8px"
4839
4839
  },
4840
4840
  children: /* @__PURE__ */ e(
4841
- eo,
4841
+ er,
4842
4842
  {
4843
4843
  ref: I,
4844
4844
  value: h,
@@ -4939,7 +4939,7 @@ const yr = ({
4939
4939
  ] })
4940
4940
  ] });
4941
4941
  }
4942
- ), zr = (n) => {
4942
+ ), zo = (n) => {
4943
4943
  switch (n) {
4944
4944
  case "member":
4945
4945
  return "green";
@@ -4954,7 +4954,7 @@ const yr = ({
4954
4954
  default:
4955
4955
  return "gray";
4956
4956
  }
4957
- }, Dr = (n) => {
4957
+ }, Do = (n) => {
4958
4958
  switch (n) {
4959
4959
  case "member":
4960
4960
  return "Member";
@@ -4969,7 +4969,7 @@ const yr = ({
4969
4969
  default:
4970
4970
  return "Unknown";
4971
4971
  }
4972
- }, Rr = (n) => {
4972
+ }, Ro = (n) => {
4973
4973
  if (n) {
4974
4974
  if (typeof n == "object" && "type" in n)
4975
4975
  return n;
@@ -4978,9 +4978,9 @@ const yr = ({
4978
4978
  }
4979
4979
  }, tn = ({
4980
4980
  user: n,
4981
- isSelected: r = !1,
4981
+ isSelected: o = !1,
4982
4982
  onToggle: t,
4983
- onUpdateRole: o,
4983
+ onUpdateRole: r,
4984
4984
  onRemoveUser: i,
4985
4985
  roleOptions: a = [],
4986
4986
  variant: c = "invited",
@@ -4990,9 +4990,9 @@ const yr = ({
4990
4990
  const l = ((m = n.name) == null ? void 0 : m.trim()) || n.email, d = () => {
4991
4991
  t && t(n.id);
4992
4992
  }, u = (w) => {
4993
- if (o) {
4993
+ if (r) {
4994
4994
  const y = w;
4995
- o(n.id, y);
4995
+ r(n.id, y);
4996
4996
  }
4997
4997
  }, p = c === "suggested" || c === "read-only", f = c === "invited" && a.length > 0, [I, h] = O(!1);
4998
4998
  return /* @__PURE__ */ v(
@@ -5018,7 +5018,7 @@ const yr = ({
5018
5018
  /* @__PURE__ */ e(
5019
5019
  Oe,
5020
5020
  {
5021
- avatar: Rr(n.avatar),
5021
+ avatar: Ro(n.avatar),
5022
5022
  size: "md",
5023
5023
  placeholder: l,
5024
5024
  showPlaceholder: !0
@@ -5035,9 +5035,9 @@ const yr = ({
5035
5035
  {
5036
5036
  size: "xs",
5037
5037
  variant: "light",
5038
- color: zr(n.status),
5038
+ color: zo(n.status),
5039
5039
  radius: "sm",
5040
- children: Dr(n.status)
5040
+ children: Do(n.status)
5041
5041
  }
5042
5042
  )
5043
5043
  ] }),
@@ -5046,9 +5046,9 @@ const yr = ({
5046
5046
  ] }),
5047
5047
  /* @__PURE__ */ v(A, { gap: "sm", align: "center", children: [
5048
5048
  p && c !== "read-only" && /* @__PURE__ */ e(
5049
- no,
5049
+ nr,
5050
5050
  {
5051
- checked: r,
5051
+ checked: o,
5052
5052
  onChange: d,
5053
5053
  size: "sm",
5054
5054
  onClick: (w) => w.stopPropagation(),
@@ -5071,11 +5071,11 @@ const yr = ({
5071
5071
  ]
5072
5072
  }
5073
5073
  );
5074
- }, Tr = ({
5074
+ }, To = ({
5075
5075
  opened: n,
5076
- onClose: r,
5076
+ onClose: o,
5077
5077
  onInvite: t,
5078
- onUpdateRole: o,
5078
+ onUpdateRole: r,
5079
5079
  onRemoveUser: i,
5080
5080
  invitedUsers: a = [],
5081
5081
  children: c,
@@ -5103,7 +5103,7 @@ const yr = ({
5103
5103
  handleAddSuggestedUser: R
5104
5104
  } = Mt({
5105
5105
  onInvite: t,
5106
- onUpdateRole: o,
5106
+ onUpdateRole: r,
5107
5107
  onRemoveUser: i,
5108
5108
  invitedUsers: a,
5109
5109
  suggestedUsers: l,
@@ -5296,7 +5296,7 @@ const yr = ({
5296
5296
  trigger: c,
5297
5297
  menuItems: [],
5298
5298
  opened: n,
5299
- onClose: r,
5299
+ onClose: o,
5300
5300
  styles: {
5301
5301
  dropdown: {
5302
5302
  padding: "0",
@@ -5308,9 +5308,9 @@ const yr = ({
5308
5308
  );
5309
5309
  }, Ti = ({
5310
5310
  onInvite: n,
5311
- onUpdateRole: r,
5311
+ onUpdateRole: o,
5312
5312
  onRemoveUser: t,
5313
- invitedUsers: o,
5313
+ invitedUsers: r,
5314
5314
  currentUser: i,
5315
5315
  roleOptions: a,
5316
5316
  suggestedUsers: c,
@@ -5318,14 +5318,14 @@ const yr = ({
5318
5318
  }) => {
5319
5319
  const [l, d] = O(!1);
5320
5320
  return /* @__PURE__ */ e(
5321
- Tr,
5321
+ To,
5322
5322
  {
5323
5323
  opened: l,
5324
5324
  onClose: () => d(!1),
5325
5325
  onInvite: n,
5326
- onUpdateRole: r,
5326
+ onUpdateRole: o,
5327
5327
  onRemoveUser: t,
5328
- invitedUsers: o,
5328
+ invitedUsers: r,
5329
5329
  currentUser: i,
5330
5330
  roleOptions: a,
5331
5331
  suggestedUsers: c,
@@ -5341,9 +5341,9 @@ const yr = ({
5341
5341
  );
5342
5342
  }, Ei = ({
5343
5343
  opened: n,
5344
- onClose: r,
5344
+ onClose: o,
5345
5345
  onInvite: t,
5346
- onUpdateRole: o,
5346
+ onUpdateRole: r,
5347
5347
  onRemoveUser: i,
5348
5348
  invitedUsers: a = [],
5349
5349
  roleOptions: c = [],
@@ -5366,7 +5366,7 @@ const yr = ({
5366
5366
  handleAddSuggestedUser: k
5367
5367
  } = Mt({
5368
5368
  onInvite: t,
5369
- onUpdateRole: o,
5369
+ onUpdateRole: r,
5370
5370
  onRemoveUser: i,
5371
5371
  invitedUsers: a,
5372
5372
  suggestedUsers: s,
@@ -5378,7 +5378,7 @@ const yr = ({
5378
5378
  Cn,
5379
5379
  {
5380
5380
  opened: n,
5381
- onClose: r,
5381
+ onClose: o,
5382
5382
  size: "md",
5383
5383
  withCloseButton: !1,
5384
5384
  radius: "md",
@@ -5393,9 +5393,9 @@ const yr = ({
5393
5393
  /* @__PURE__ */ e(
5394
5394
  he,
5395
5395
  {
5396
- icon: ot,
5396
+ icon: rt,
5397
5397
  size: "md",
5398
- onClick: r,
5398
+ onClick: o,
5399
5399
  color: "var(--mantine-color-gray-8)"
5400
5400
  }
5401
5401
  )
@@ -5484,9 +5484,9 @@ const yr = ({
5484
5484
  );
5485
5485
  }, Bi = ({
5486
5486
  opened: n,
5487
- onClose: r,
5487
+ onClose: o,
5488
5488
  options: t = [],
5489
- onSave: o,
5489
+ onSave: r,
5490
5490
  onCancel: i,
5491
5491
  groups: a = [],
5492
5492
  styles: c
@@ -5496,11 +5496,11 @@ const yr = ({
5496
5496
  n && t.length > 0 ? l(t[0].id) : n || l("");
5497
5497
  }, [n, t]);
5498
5498
  const d = () => {
5499
- o && o(), r();
5499
+ r && r(), o();
5500
5500
  }, u = () => {
5501
- i && i(), r();
5501
+ i && i(), o();
5502
5502
  }, p = () => {
5503
- r();
5503
+ o();
5504
5504
  }, f = t.find(
5505
5505
  (I) => I.id === s
5506
5506
  );
@@ -5576,8 +5576,8 @@ const yr = ({
5576
5576
  ]
5577
5577
  }
5578
5578
  );
5579
- }, Er = (n, r = "es") => {
5580
- const t = /* @__PURE__ */ new Date(), o = typeof n == "string" ? new Date(n) : n, i = Math.floor((t.getTime() - o.getTime()) / 1e3), a = {
5579
+ }, Eo = (n, o = "es") => {
5580
+ const t = /* @__PURE__ */ new Date(), r = typeof n == "string" ? new Date(n) : n, i = Math.floor((t.getTime() - r.getTime()) / 1e3), a = {
5581
5581
  es: {
5582
5582
  now: "ahora",
5583
5583
  seconds: "segundos",
@@ -5614,50 +5614,50 @@ const yr = ({
5614
5614
  year: "year",
5615
5615
  ago: "ago"
5616
5616
  }
5617
- }, c = a[r] || a.en;
5617
+ }, c = a[o] || a.en;
5618
5618
  if (i < 5)
5619
5619
  return c.now;
5620
5620
  if (i < 60)
5621
- return r === "es" ? `${c.ago} ${i} ${i === 1 ? c.second : c.seconds}` : `${i} ${i === 1 ? c.second : c.seconds} ${c.ago}`;
5621
+ return o === "es" ? `${c.ago} ${i} ${i === 1 ? c.second : c.seconds}` : `${i} ${i === 1 ? c.second : c.seconds} ${c.ago}`;
5622
5622
  const s = Math.floor(i / 60);
5623
5623
  if (s < 60)
5624
- return r === "es" ? `${c.ago} ${s} ${s === 1 ? c.minute : c.minutes}` : `${s} ${s === 1 ? c.minute : c.minutes} ${c.ago}`;
5624
+ return o === "es" ? `${c.ago} ${s} ${s === 1 ? c.minute : c.minutes}` : `${s} ${s === 1 ? c.minute : c.minutes} ${c.ago}`;
5625
5625
  const l = Math.floor(s / 60);
5626
5626
  if (l < 24)
5627
- return r === "es" ? `${c.ago} ${l} ${l === 1 ? c.hour : c.hours}` : `${l} ${l === 1 ? c.hour : c.hours} ${c.ago}`;
5627
+ return o === "es" ? `${c.ago} ${l} ${l === 1 ? c.hour : c.hours}` : `${l} ${l === 1 ? c.hour : c.hours} ${c.ago}`;
5628
5628
  const d = Math.floor(l / 24);
5629
5629
  if (d < 7)
5630
- return r === "es" ? `${c.ago} ${d} ${d === 1 ? c.day : c.days}` : `${d} ${d === 1 ? c.day : c.days} ${c.ago}`;
5630
+ return o === "es" ? `${c.ago} ${d} ${d === 1 ? c.day : c.days}` : `${d} ${d === 1 ? c.day : c.days} ${c.ago}`;
5631
5631
  const u = Math.floor(d / 7);
5632
5632
  if (u < 4)
5633
- return r === "es" ? `${c.ago} ${u} ${u === 1 ? c.week : c.weeks}` : `${u} ${u === 1 ? c.week : c.weeks} ${c.ago}`;
5633
+ return o === "es" ? `${c.ago} ${u} ${u === 1 ? c.week : c.weeks}` : `${u} ${u === 1 ? c.week : c.weeks} ${c.ago}`;
5634
5634
  const p = Math.floor(d / 30);
5635
5635
  if (p < 12)
5636
- return r === "es" ? `${c.ago} ${p} ${p === 1 ? c.month : c.months}` : `${p} ${p === 1 ? c.month : c.months} ${c.ago}`;
5636
+ return o === "es" ? `${c.ago} ${p} ${p === 1 ? c.month : c.months}` : `${p} ${p === 1 ? c.month : c.months} ${c.ago}`;
5637
5637
  const f = Math.floor(d / 365);
5638
- return r === "es" ? `${c.ago} ${f} ${f === 1 ? c.year : c.years}` : `${f} ${f === 1 ? c.year : c.years} ${c.ago}`;
5639
- }, Br = (n, r = "es") => {
5640
- const t = typeof n == "string" ? new Date(n) : n, o = {
5638
+ return o === "es" ? `${c.ago} ${f} ${f === 1 ? c.year : c.years}` : `${f} ${f === 1 ? c.year : c.years} ${c.ago}`;
5639
+ }, Bo = (n, o = "es") => {
5640
+ const t = typeof n == "string" ? new Date(n) : n, r = {
5641
5641
  es: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
5642
5642
  en: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
5643
- }, a = (o[r] || o.en)[t.getMonth()], c = t.getDate();
5644
- return r === "es" ? `${c} ${a}` : `${a} ${c}`;
5645
- }, Ar = (n) => {
5646
- const r = typeof n == "string" ? new Date(n) : n, t = /* @__PURE__ */ new Date();
5647
- return r.toDateString() === t.toDateString();
5648
- }, Lr = (n) => {
5649
- const r = typeof n == "string" ? new Date(n) : n, t = /* @__PURE__ */ new Date();
5650
- return t.setDate(t.getDate() - 1), r.toDateString() === t.toDateString();
5651
- }, jr = (n, r = "es") => Ar(n) ? r === "es" ? "Hoy" : "Today" : Lr(n) ? r === "es" ? "Ayer" : "Yesterday" : Er(n, r), Fr = ({
5643
+ }, a = (r[o] || r.en)[t.getMonth()], c = t.getDate();
5644
+ return o === "es" ? `${c} ${a}` : `${a} ${c}`;
5645
+ }, Ao = (n) => {
5646
+ const o = typeof n == "string" ? new Date(n) : n, t = /* @__PURE__ */ new Date();
5647
+ return o.toDateString() === t.toDateString();
5648
+ }, Lo = (n) => {
5649
+ const o = typeof n == "string" ? new Date(n) : n, t = /* @__PURE__ */ new Date();
5650
+ return t.setDate(t.getDate() - 1), o.toDateString() === t.toDateString();
5651
+ }, jo = (n, o = "es") => Ao(n) ? o === "es" ? "Hoy" : "Today" : Lo(n) ? o === "es" ? "Ayer" : "Yesterday" : Eo(n, o), Fo = ({
5652
5652
  notification: n,
5653
- message: r,
5653
+ message: o,
5654
5654
  markAsRead: t,
5655
- archiveNotification: o,
5655
+ archiveNotification: r,
5656
5656
  children: i,
5657
5657
  actions: a
5658
5658
  }) => {
5659
5659
  var u, p, f, I, h;
5660
- const c = (/* @__PURE__ */ new Date()).getTime() - new Date(n.timestamp).getTime() < 6048e5 ? jr(n.timestamp, "en") : Br(n.timestamp, "en"), [s, l] = O(!1), d = /* @__PURE__ */ v(
5660
+ const c = (/* @__PURE__ */ new Date()).getTime() - new Date(n.timestamp).getTime() < 6048e5 ? jo(n.timestamp, "en") : Bo(n.timestamp, "en"), [s, l] = O(!1), d = /* @__PURE__ */ v(
5661
5661
  A,
5662
5662
  {
5663
5663
  bg: "var(--mantine-color-gray-1)",
@@ -5671,13 +5671,13 @@ const yr = ({
5671
5671
  he,
5672
5672
  {
5673
5673
  onClick: () => t(n.id),
5674
- icon: rn
5674
+ icon: on
5675
5675
  }
5676
5676
  ),
5677
5677
  !n.isArchived && /* @__PURE__ */ e(
5678
5678
  he,
5679
5679
  {
5680
- onClick: () => o(n.id),
5680
+ onClick: () => r(n.id),
5681
5681
  icon: wn
5682
5682
  }
5683
5683
  )
@@ -5715,7 +5715,7 @@ const yr = ({
5715
5715
  radius: "md",
5716
5716
  src: (f = n.metadata) == null ? void 0 : f.avatar_url
5717
5717
  }
5718
- ) : /* @__PURE__ */ e(Ho, { size: "xs", showText: !1, radius: "xs" }),
5718
+ ) : /* @__PURE__ */ e($r, { size: "xs", showText: !1, radius: "xs" }),
5719
5719
  /* @__PURE__ */ v(W, { gap: "xs", justify: "flex-start", w: "100%", children: [
5720
5720
  /* @__PURE__ */ e(
5721
5721
  b,
@@ -5734,7 +5734,7 @@ const yr = ({
5734
5734
  whiteSpace: "normal",
5735
5735
  wordBreak: "break-word"
5736
5736
  },
5737
- children: r
5737
+ children: o
5738
5738
  }
5739
5739
  ),
5740
5740
  /* @__PURE__ */ v(T, { size: "xs", c: "dimmed", fw: 500, style: { whiteSpace: "nowrap" }, children: [
@@ -5771,18 +5771,18 @@ const yr = ({
5771
5771
  ]
5772
5772
  }
5773
5773
  );
5774
- }, Ur = (n, r, t, o, i) => {
5774
+ }, Uo = (n, o, t, r, i) => {
5775
5775
  const [a, c] = O(!1), s = Z(null), l = Z(null), d = Z(null);
5776
5776
  Y(() => {
5777
5777
  c(n);
5778
5778
  }, [n]);
5779
5779
  const u = j(
5780
5780
  (f) => {
5781
- f[0].isIntersecting && o && !i && t && t();
5781
+ f[0].isIntersecting && r && !i && t && t();
5782
5782
  },
5783
- [o, i, t]
5783
+ [r, i, t]
5784
5784
  ), p = j(() => {
5785
- if (!(!s.current || !n || !r || !t)) {
5785
+ if (!(!s.current || !n || !o || !t)) {
5786
5786
  l.current && (l.current.disconnect(), l.current = null);
5787
5787
  try {
5788
5788
  const f = new IntersectionObserver(u, {
@@ -5794,9 +5794,9 @@ const yr = ({
5794
5794
  console.error("Failed to setup intersection observer:", f);
5795
5795
  }
5796
5796
  }
5797
- }, [n, r, t, u]);
5797
+ }, [n, o, t, u]);
5798
5798
  return Y(() => {
5799
- if (d.current && (clearTimeout(d.current), d.current = null), !n || !r || !t) {
5799
+ if (d.current && (clearTimeout(d.current), d.current = null), !n || !o || !t) {
5800
5800
  l.current && (l.current.disconnect(), l.current = null);
5801
5801
  return;
5802
5802
  }
@@ -5810,7 +5810,7 @@ const yr = ({
5810
5810
  return p(), () => {
5811
5811
  d.current && (clearTimeout(d.current), d.current = null), l.current && (l.current.disconnect(), l.current = null);
5812
5812
  };
5813
- }, [n, r, t, p]), Y(() => () => {
5813
+ }, [n, o, t, p]), Y(() => () => {
5814
5814
  d.current && clearTimeout(d.current), l.current && l.current.disconnect();
5815
5815
  }, []), {
5816
5816
  isActive: a,
@@ -5818,9 +5818,9 @@ const yr = ({
5818
5818
  };
5819
5819
  }, Ai = ({
5820
5820
  notifications: n,
5821
- isLoading: r = !1,
5821
+ isLoading: o = !1,
5822
5822
  isLoadingMore: t = !1,
5823
- hasMore: o = !1,
5823
+ hasMore: r = !1,
5824
5824
  unreadCount: i = 0,
5825
5825
  markAllAsRead: a,
5826
5826
  archiveAllNotifications: c,
@@ -5868,7 +5868,7 @@ const yr = ({
5868
5868
  active: p === "archived"
5869
5869
  }
5870
5870
  ], S = (k) => f && k.category && ["welcome", "upgrade"].includes(k.category) ? f(k, s, l) : /* @__PURE__ */ e(
5871
- Fr,
5871
+ Fo,
5872
5872
  {
5873
5873
  notification: k,
5874
5874
  markAsRead: s,
@@ -5877,12 +5877,12 @@ const yr = ({
5877
5877
  actions: k.actions
5878
5878
  },
5879
5879
  k.id
5880
- ), { isActive: M, loadMoreRef: z } = Ur(
5880
+ ), { isActive: M, loadMoreRef: z } = Uo(
5881
5881
  I,
5882
5882
  m,
5883
5883
  d || (() => {
5884
5884
  }),
5885
- o,
5885
+ r,
5886
5886
  t
5887
5887
  );
5888
5888
  return /* @__PURE__ */ v(me, { children: [
@@ -5891,7 +5891,7 @@ const yr = ({
5891
5891
  {
5892
5892
  isActive: M,
5893
5893
  icon: /* @__PURE__ */ e(
5894
- yo,
5894
+ Ir,
5895
5895
  {
5896
5896
  strokeWidth: 2,
5897
5897
  size: 20,
@@ -5973,7 +5973,7 @@ const yr = ({
5973
5973
  {
5974
5974
  position: "bottom-end",
5975
5975
  menuItems: y,
5976
- trigger: /* @__PURE__ */ e(he, { icon: rt })
5976
+ trigger: /* @__PURE__ */ e(he, { icon: ot })
5977
5977
  }
5978
5978
  ),
5979
5979
  /* @__PURE__ */ e(
@@ -6000,7 +6000,7 @@ const yr = ({
6000
6000
  }
6001
6001
  ),
6002
6002
  /* @__PURE__ */ v(b, { style: { flex: 1, overflow: "auto" }, children: [
6003
- r && n.length === 0 ? /* @__PURE__ */ e(
6003
+ o && n.length === 0 ? /* @__PURE__ */ e(
6004
6004
  W,
6005
6005
  {
6006
6006
  gap: 0,
@@ -6023,7 +6023,7 @@ const yr = ({
6023
6023
  align: "center",
6024
6024
  py: "xl",
6025
6025
  children: [
6026
- /* @__PURE__ */ e(vo, { size: 24, color: "var(--mantine-color-gray-6)" }),
6026
+ /* @__PURE__ */ e(yr, { size: 24, color: "var(--mantine-color-gray-6)" }),
6027
6027
  /* @__PURE__ */ e(T, { size: "sm", fw: 500, c: "dimmed", ta: "center", mt: "sm", children: "No new updates" })
6028
6028
  ]
6029
6029
  }
@@ -6049,7 +6049,7 @@ const yr = ({
6049
6049
  /* @__PURE__ */ e(Se, { size: "sm", color: "gray.5" }),
6050
6050
  /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", fw: 500, children: "Loading more ..." })
6051
6051
  ] }),
6052
- !m && o && d && /* @__PURE__ */ e(
6052
+ !m && r && d && /* @__PURE__ */ e(
6053
6053
  ce,
6054
6054
  {
6055
6055
  color: "var(--mantine-color-gray-3)",
@@ -6071,9 +6071,9 @@ const yr = ({
6071
6071
  ] });
6072
6072
  }, _n = ({
6073
6073
  header: n,
6074
- body: r,
6074
+ body: o,
6075
6075
  footer: t,
6076
- withBorder: o = !0,
6076
+ withBorder: r = !0,
6077
6077
  position: i = "left",
6078
6078
  bg: a = "var(--mantine-color-gray-0)"
6079
6079
  }) => {
@@ -6086,7 +6086,7 @@ const yr = ({
6086
6086
  p: "sm",
6087
6087
  bg: a,
6088
6088
  style: (() => {
6089
- if (!o)
6089
+ if (!r)
6090
6090
  return {};
6091
6091
  const d = "var(--mantine-color-gray-3)", u = "1px";
6092
6092
  return i === "left" ? { borderRight: `${u} solid ${d}` } : i === "right" ? { borderLeft: `${u} solid ${d}` } : {};
@@ -6095,11 +6095,11 @@ const yr = ({
6095
6095
  onMouseLeave: () => s(!1),
6096
6096
  children: [
6097
6097
  n && /* @__PURE__ */ e(b, { children: typeof n == "function" ? n({ hovered: c }) : n }),
6098
- r && /* @__PURE__ */ e(
6098
+ o && /* @__PURE__ */ e(
6099
6099
  b,
6100
6100
  {
6101
6101
  style: { flex: 1, minHeight: 0, width: "100%", overflow: "hidden" },
6102
- children: typeof r == "function" ? r({ hovered: c }) : r
6102
+ children: typeof o == "function" ? o({ hovered: c }) : o
6103
6103
  }
6104
6104
  ),
6105
6105
  t && /* @__PURE__ */ e(b, { children: typeof t == "function" ? t({ hovered: c }) : t })
@@ -6110,12 +6110,12 @@ const yr = ({
6110
6110
  children: n
6111
6111
  }) => {
6112
6112
  const [
6113
- r,
6114
- { open: t, close: o }
6113
+ o,
6114
+ { open: t, close: r }
6115
6115
  ] = Xe(!1), i = {
6116
- openedNotificationSidebar: r,
6116
+ openedNotificationSidebar: o,
6117
6117
  openNotificationSidebar: t,
6118
- closeNotificationSidebar: o
6118
+ closeNotificationSidebar: r
6119
6119
  };
6120
6120
  return /* @__PURE__ */ e(kt.Provider, { value: i, children: n });
6121
6121
  }, ji = () => {
@@ -6123,17 +6123,17 @@ const yr = ({
6123
6123
  if (n === void 0)
6124
6124
  throw new Error("useNavbar must be used within an NavbarProvider");
6125
6125
  return n;
6126
- }, Nr = ({
6126
+ }, No = ({
6127
6127
  workspace: n,
6128
- currentUserId: r,
6128
+ currentUserId: o,
6129
6129
  currentWorkspaceId: t,
6130
- onClick: o
6130
+ onClick: r
6131
6131
  }) => {
6132
- const i = t === n.id, a = r && n.ownerId === r;
6132
+ const i = t === n.id, a = o && n.ownerId === o;
6133
6133
  return /* @__PURE__ */ v(
6134
6134
  b,
6135
6135
  {
6136
- onClick: o,
6136
+ onClick: r,
6137
6137
  style: {
6138
6138
  display: "flex",
6139
6139
  alignItems: "center",
@@ -6186,7 +6186,7 @@ const yr = ({
6186
6186
  paddingLeft: "8px"
6187
6187
  },
6188
6188
  children: [
6189
- i && /* @__PURE__ */ e(rn, { size: 16, color: "var(--mantine-color-blue-6)" }),
6189
+ i && /* @__PURE__ */ e(on, { size: 16, color: "var(--mantine-color-blue-6)" }),
6190
6190
  a && /* @__PURE__ */ e(Ke, { size: "xs", variant: "light", color: "yellow", radius: "sm", children: "Owner" })
6191
6191
  ]
6192
6192
  }
@@ -6194,16 +6194,16 @@ const yr = ({
6194
6194
  ]
6195
6195
  }
6196
6196
  );
6197
- }, Wr = "workspace-selector-module__menuItem___FSB6P", $r = "workspace-selector-module__workspaceButton___-P6kp", Hr = "workspace-selector-module__workspaceText___YDAlj", Pr = "workspace-selector-module__scrollWrapper___MzrJY", yn = {
6198
- menuItem: Wr,
6199
- workspaceButton: $r,
6200
- workspaceText: Hr,
6201
- scrollWrapper: Pr
6197
+ }, Wo = "workspace-selector-module__menuItem___FSB6P", $o = "workspace-selector-module__workspaceButton___-P6kp", Ho = "workspace-selector-module__workspaceText___YDAlj", Po = "workspace-selector-module__scrollWrapper___MzrJY", yn = {
6198
+ menuItem: Wo,
6199
+ workspaceButton: $o,
6200
+ workspaceText: Ho,
6201
+ scrollWrapper: Po
6202
6202
  }, Fi = ({
6203
6203
  workspaces: n = [],
6204
- currentWorkspace: r,
6204
+ currentWorkspace: o,
6205
6205
  currentUserId: t,
6206
- isLoading: o = !1,
6206
+ isLoading: r = !1,
6207
6207
  error: i = null,
6208
6208
  onWorkspaceSelect: a,
6209
6209
  onCreateWorkspace: c,
@@ -6224,15 +6224,15 @@ const yr = ({
6224
6224
  ) : n, [n, w]), M = (C) => {
6225
6225
  a == null || a(C.id), m(!1), y("");
6226
6226
  };
6227
- if (o)
6227
+ if (r)
6228
6228
  return /* @__PURE__ */ v(A, { gap: "xs", children: [
6229
6229
  /* @__PURE__ */ e(Se, { size: "sm" }),
6230
6230
  /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: l })
6231
6231
  ] });
6232
6232
  if (i)
6233
- return /* @__PURE__ */ e(to, { color: "red", title: "Error", children: d });
6233
+ return /* @__PURE__ */ e(tr, { color: "red", title: "Error", children: d });
6234
6234
  const [z, k] = O(f);
6235
- return n.length === 0 && !o && !i ? /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: s }) }) : /* @__PURE__ */ v(
6235
+ return n.length === 0 && !r && !i ? /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: s }) }) : /* @__PURE__ */ v(
6236
6236
  pe,
6237
6237
  {
6238
6238
  opened: g,
@@ -6269,13 +6269,13 @@ const yr = ({
6269
6269
  gap: "xs",
6270
6270
  wrap: "nowrap",
6271
6271
  style: { width: "100%", overflow: "hidden" },
6272
- children: r ? /* @__PURE__ */ v(me, { children: [
6272
+ children: o ? /* @__PURE__ */ v(me, { children: [
6273
6273
  /* @__PURE__ */ e(
6274
6274
  Oe,
6275
6275
  {
6276
6276
  size: "xs",
6277
- avatar: typeof r.avatar == "string" ? { type: "image", value: r.avatar } : r.avatar,
6278
- placeholder: r.name,
6277
+ avatar: typeof o.avatar == "string" ? { type: "image", value: o.avatar } : o.avatar,
6278
+ placeholder: o.name,
6279
6279
  showPlaceholder: !0,
6280
6280
  style: { flexShrink: 0 }
6281
6281
  }
@@ -6288,7 +6288,7 @@ const yr = ({
6288
6288
  c: "gray.9",
6289
6289
  truncate: !0,
6290
6290
  style: { flex: 1, minWidth: 0 },
6291
- children: r.name
6291
+ children: o.name
6292
6292
  }
6293
6293
  ),
6294
6294
  /* @__PURE__ */ v(A, { gap: 4, wrap: "nowrap", style: { flexShrink: 0 }, children: [
@@ -6369,11 +6369,11 @@ const yr = ({
6369
6369
  x.currentTarget.style.backgroundColor = "transparent";
6370
6370
  },
6371
6371
  children: /* @__PURE__ */ e(
6372
- Nr,
6372
+ No,
6373
6373
  {
6374
6374
  workspace: C,
6375
6375
  currentUserId: t,
6376
- currentWorkspaceId: r == null ? void 0 : r.id,
6376
+ currentWorkspaceId: o == null ? void 0 : o.id,
6377
6377
  onClick: () => M(C)
6378
6378
  }
6379
6379
  )
@@ -6407,7 +6407,7 @@ const yr = ({
6407
6407
  );
6408
6408
  }, Ct = ({
6409
6409
  children: n,
6410
- style: r,
6410
+ style: o,
6411
6411
  ...t
6412
6412
  }) => /* @__PURE__ */ e(
6413
6413
  b,
@@ -6425,7 +6425,7 @@ const yr = ({
6425
6425
  display: "flex",
6426
6426
  alignItems: "center",
6427
6427
  justifyContent: "center",
6428
- ...r
6428
+ ...o
6429
6429
  },
6430
6430
  ...t,
6431
6431
  children: n
@@ -6434,14 +6434,14 @@ const yr = ({
6434
6434
  Ct.displayName = "MatrixCenter";
6435
6435
  const Ot = ({
6436
6436
  children: n,
6437
- style: r,
6437
+ style: o,
6438
6438
  size: t = "50px",
6439
- state: o = "empty",
6439
+ state: r = "empty",
6440
6440
  onStateChange: i,
6441
6441
  interactive: a = !0,
6442
6442
  ...c
6443
6443
  }) => {
6444
- const [s, l] = O(o), [d, u] = O(!1), p = i ? o : a ? s : o, f = () => {
6444
+ const [s, l] = O(r), [d, u] = O(!1), p = i ? r : a ? s : r, f = () => {
6445
6445
  if (!a)
6446
6446
  return;
6447
6447
  const g = ["empty", "outline", "filled"], w = (g.indexOf(p) + 1) % g.length, y = g[w];
@@ -6452,7 +6452,7 @@ const Ot = ({
6452
6452
  return null;
6453
6453
  case "outline":
6454
6454
  return /* @__PURE__ */ e(
6455
- wo,
6455
+ xr,
6456
6456
  {
6457
6457
  size: 16,
6458
6458
  color: "var(--mantine-color-gray-8)",
@@ -6461,7 +6461,7 @@ const Ot = ({
6461
6461
  );
6462
6462
  case "filled":
6463
6463
  return /* @__PURE__ */ e(
6464
- xo,
6464
+ vr,
6465
6465
  {
6466
6466
  size: 16,
6467
6467
  color: "var(--mantine-color-gray-8)",
@@ -6499,7 +6499,7 @@ const Ot = ({
6499
6499
  boxShadow: d && a ? "0 2px 8px rgba(0, 0, 0, 0.15)" : "none",
6500
6500
  transform: d && a ? "translateY(-1px)" : "translateY(0)",
6501
6501
  border: p === "outline" ? "2px solid var(--mantine-color-gray-0)" : "2px solid transparent",
6502
- ...r
6502
+ ...o
6503
6503
  },
6504
6504
  onClick: f,
6505
6505
  onMouseEnter: () => u(!0),
@@ -6512,9 +6512,9 @@ const Ot = ({
6512
6512
  Ot.displayName = "MatrixCell";
6513
6513
  const zt = ({
6514
6514
  children: n,
6515
- style: r,
6515
+ style: o,
6516
6516
  size: t = "50px",
6517
- blockId: o,
6517
+ blockId: r,
6518
6518
  isVisible: i = !0,
6519
6519
  isDimmed: a = !1,
6520
6520
  shouldShowBlueBorder: c = !1,
@@ -6523,11 +6523,11 @@ const zt = ({
6523
6523
  ...d
6524
6524
  }) => {
6525
6525
  const [u, p] = O(!1), f = Z(null), I = Z(!1), h = () => {
6526
- !o || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
6527
- I.current = !0, l(o);
6526
+ !r || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
6527
+ I.current = !0, l(r);
6528
6528
  }, 500));
6529
6529
  }, g = () => {
6530
- o && (p(!1), f.current && (clearTimeout(f.current), f.current = null), !I.current && s && s(o), I.current = !1);
6530
+ r && (p(!1), f.current && (clearTimeout(f.current), f.current = null), !I.current && s && s(r), I.current = !1);
6531
6531
  }, m = () => {
6532
6532
  p(!1), f.current && (clearTimeout(f.current), f.current = null), I.current = !1;
6533
6533
  };
@@ -6548,8 +6548,8 @@ const zt = ({
6548
6548
  border: c ? "2px solid var(--mantine-color-blue-5)" : "2px solid transparent",
6549
6549
  opacity: u ? 0.8 : a ? 0.3 : 1,
6550
6550
  transition: "all 0.2s ease",
6551
- cursor: o ? "pointer" : "default",
6552
- ...r
6551
+ cursor: r ? "pointer" : "default",
6552
+ ...o
6553
6553
  },
6554
6554
  onMouseDown: h,
6555
6555
  onMouseUp: g,
@@ -6562,9 +6562,9 @@ const zt = ({
6562
6562
  zt.displayName = "MatrixBlockLeft";
6563
6563
  const Dt = ({
6564
6564
  children: n,
6565
- style: r,
6565
+ style: o,
6566
6566
  size: t = "50px",
6567
- blockId: o,
6567
+ blockId: r,
6568
6568
  isVisible: i = !0,
6569
6569
  isDimmed: a = !1,
6570
6570
  shouldShowBlueBorder: c = !1,
@@ -6573,11 +6573,11 @@ const Dt = ({
6573
6573
  ...d
6574
6574
  }) => {
6575
6575
  const [u, p] = O(!1), f = Z(null), I = Z(!1), h = () => {
6576
- !o || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
6577
- I.current = !0, l(o);
6576
+ !r || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
6577
+ I.current = !0, l(r);
6578
6578
  }, 500));
6579
6579
  }, g = () => {
6580
- o && (p(!1), f.current && (clearTimeout(f.current), f.current = null), !I.current && s && s(o), I.current = !1);
6580
+ r && (p(!1), f.current && (clearTimeout(f.current), f.current = null), !I.current && s && s(r), I.current = !1);
6581
6581
  }, m = () => {
6582
6582
  p(!1), f.current && (clearTimeout(f.current), f.current = null), I.current = !1;
6583
6583
  };
@@ -6598,8 +6598,8 @@ const Dt = ({
6598
6598
  border: c ? "2px solid var(--mantine-color-blue-5)" : "2px solid transparent",
6599
6599
  opacity: u ? 0.8 : a ? 0.3 : 1,
6600
6600
  transition: "all 0.2s ease",
6601
- cursor: o ? "pointer" : "default",
6602
- ...r
6601
+ cursor: r ? "pointer" : "default",
6602
+ ...o
6603
6603
  },
6604
6604
  onMouseDown: h,
6605
6605
  onMouseUp: g,
@@ -6612,9 +6612,9 @@ const Dt = ({
6612
6612
  Dt.displayName = "MatrixBlockRight";
6613
6613
  const Rt = ({
6614
6614
  children: n,
6615
- style: r,
6615
+ style: o,
6616
6616
  size: t = "50px",
6617
- blockId: o,
6617
+ blockId: r,
6618
6618
  isVisible: i = !0,
6619
6619
  isDimmed: a = !1,
6620
6620
  shouldShowBlueBorder: c = !1,
@@ -6623,11 +6623,11 @@ const Rt = ({
6623
6623
  ...d
6624
6624
  }) => {
6625
6625
  const [u, p] = O(!1), f = Z(null), I = Z(!1), h = () => {
6626
- !o || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
6627
- I.current = !0, l(o);
6626
+ !r || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
6627
+ I.current = !0, l(r);
6628
6628
  }, 500));
6629
6629
  }, g = () => {
6630
- o && (p(!1), f.current && (clearTimeout(f.current), f.current = null), !I.current && s && s(o), I.current = !1);
6630
+ r && (p(!1), f.current && (clearTimeout(f.current), f.current = null), !I.current && s && s(r), I.current = !1);
6631
6631
  }, m = () => {
6632
6632
  p(!1), f.current && (clearTimeout(f.current), f.current = null), I.current = !1;
6633
6633
  };
@@ -6648,8 +6648,8 @@ const Rt = ({
6648
6648
  border: c ? "2px solid var(--mantine-color-blue-5)" : "2px solid transparent",
6649
6649
  opacity: u ? 0.8 : a ? 0.3 : 1,
6650
6650
  transition: "all 0.2s ease",
6651
- cursor: o ? "pointer" : "default",
6652
- ...r
6651
+ cursor: r ? "pointer" : "default",
6652
+ ...o
6653
6653
  },
6654
6654
  onMouseDown: h,
6655
6655
  onMouseUp: g,
@@ -6662,9 +6662,9 @@ const Rt = ({
6662
6662
  Rt.displayName = "MatrixBlockUp";
6663
6663
  const Tt = ({
6664
6664
  children: n,
6665
- style: r,
6665
+ style: o,
6666
6666
  size: t = "50px",
6667
- blockId: o,
6667
+ blockId: r,
6668
6668
  isVisible: i = !0,
6669
6669
  isDimmed: a = !1,
6670
6670
  shouldShowBlueBorder: c = !1,
@@ -6673,11 +6673,11 @@ const Tt = ({
6673
6673
  ...d
6674
6674
  }) => {
6675
6675
  const [u, p] = O(!1), f = Z(null), I = Z(!1), h = () => {
6676
- !o || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
6677
- I.current = !0, l(o);
6676
+ !r || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
6677
+ I.current = !0, l(r);
6678
6678
  }, 500));
6679
6679
  }, g = () => {
6680
- o && (p(!1), f.current && (clearTimeout(f.current), f.current = null), !I.current && s && s(o), I.current = !1);
6680
+ r && (p(!1), f.current && (clearTimeout(f.current), f.current = null), !I.current && s && s(r), I.current = !1);
6681
6681
  }, m = () => {
6682
6682
  p(!1), f.current && (clearTimeout(f.current), f.current = null), I.current = !1;
6683
6683
  };
@@ -6698,8 +6698,8 @@ const Tt = ({
6698
6698
  border: c ? "2px solid var(--mantine-color-blue-5)" : "2px solid transparent",
6699
6699
  opacity: u ? 0.8 : a ? 0.3 : 1,
6700
6700
  transition: "all 0.2s ease",
6701
- cursor: o ? "pointer" : "default",
6702
- ...r
6701
+ cursor: r ? "pointer" : "default",
6702
+ ...o
6703
6703
  },
6704
6704
  onMouseDown: h,
6705
6705
  onMouseUp: g,
@@ -6712,9 +6712,9 @@ const Tt = ({
6712
6712
  Tt.displayName = "MatrixBlockDown";
6713
6713
  const Et = ({
6714
6714
  onLeftHover: n,
6715
- onRightHover: r,
6715
+ onRightHover: o,
6716
6716
  onUpHover: t,
6717
- onDownHover: o,
6717
+ onDownHover: r,
6718
6718
  showLeftControls: i = !1,
6719
6719
  showRightControls: a = !1,
6720
6720
  showUpControls: c = !1,
@@ -6723,11 +6723,11 @@ const Et = ({
6723
6723
  const [l, d] = O(!1), [u, p] = O(!1), [f, I] = O(!1), [h, g] = O(!1), m = (M) => {
6724
6724
  d(M), n == null || n(M);
6725
6725
  }, w = (M) => {
6726
- p(M), r == null || r(M);
6726
+ p(M), o == null || o(M);
6727
6727
  }, y = (M) => {
6728
6728
  I(M), t == null || t(M);
6729
6729
  }, S = (M) => {
6730
- g(M), o == null || o(M);
6730
+ g(M), r == null || r(M);
6731
6731
  };
6732
6732
  return /* @__PURE__ */ v(me, { children: [
6733
6733
  i && /* @__PURE__ */ e(
@@ -6807,9 +6807,9 @@ const Et = ({
6807
6807
  Et.displayName = "HoverZones";
6808
6808
  const Bt = ({
6809
6809
  onLeftPrevious: n,
6810
- onLeftNext: r,
6810
+ onLeftNext: o,
6811
6811
  leftCurrentPage: t = 1,
6812
- leftTotalPages: o = 1,
6812
+ leftTotalPages: r = 1,
6813
6813
  leftDisabled: i = !1,
6814
6814
  leftVisible: a = !1,
6815
6815
  onLeftHover: c,
@@ -6841,7 +6841,7 @@ const Bt = ({
6841
6841
  size: N = "md",
6842
6842
  inline: $ = !1
6843
6843
  }) => {
6844
- const H = () => o <= 1 || i ? null : /* @__PURE__ */ v(W, { gap: "xs", align: "center", children: [
6844
+ const H = () => r <= 1 || i ? null : /* @__PURE__ */ v(W, { gap: "xs", align: "center", children: [
6845
6845
  /* @__PURE__ */ e(
6846
6846
  le,
6847
6847
  {
@@ -6872,15 +6872,15 @@ const Bt = ({
6872
6872
  {
6873
6873
  size: N,
6874
6874
  variant: "subtle",
6875
- onClick: r,
6876
- disabled: t >= o,
6875
+ onClick: o,
6876
+ disabled: t >= r,
6877
6877
  color: "gray",
6878
6878
  radius: "md",
6879
6879
  "aria-label": "Next left blocks",
6880
6880
  children: /* @__PURE__ */ e(Wn, { size: 16, stroke: 2 })
6881
6881
  }
6882
6882
  )
6883
- ] }), re = () => u <= 1 || p ? null : /* @__PURE__ */ v(W, { gap: "xs", align: "center", children: [
6883
+ ] }), oe = () => u <= 1 || p ? null : /* @__PURE__ */ v(W, { gap: "xs", align: "center", children: [
6884
6884
  /* @__PURE__ */ e(
6885
6885
  le,
6886
6886
  {
@@ -6997,9 +6997,9 @@ const Bt = ({
6997
6997
  children: /* @__PURE__ */ e(Ve, { size: 16, stroke: 2 })
6998
6998
  }
6999
6999
  )
7000
- ] }), D = o > 1 && !i, E = u > 1 && !p, U = w > 1 && !y, P = x > 1 && !B;
7000
+ ] }), D = r > 1 && !i, E = u > 1 && !p, U = w > 1 && !y, P = x > 1 && !B;
7001
7001
  return !D && !E && !U && !P ? null : $ ? /* @__PURE__ */ v(me, { children: [
7002
- D && a && n && r && /* @__PURE__ */ e(
7002
+ D && a && n && o && /* @__PURE__ */ e(
7003
7003
  "div",
7004
7004
  {
7005
7005
  onMouseEnter: () => c == null ? void 0 : c(!0),
@@ -7012,7 +7012,7 @@ const Bt = ({
7012
7012
  {
7013
7013
  onMouseEnter: () => I == null ? void 0 : I(!0),
7014
7014
  onMouseLeave: () => I == null ? void 0 : I(!1),
7015
- children: re()
7015
+ children: oe()
7016
7016
  }
7017
7017
  ),
7018
7018
  U && S && h && g && /* @__PURE__ */ e(
@@ -7032,7 +7032,7 @@ const Bt = ({
7032
7032
  }
7033
7033
  )
7034
7034
  ] }) : /* @__PURE__ */ v(me, { children: [
7035
- D && a && n && r && /* @__PURE__ */ e(
7035
+ D && a && n && o && /* @__PURE__ */ e(
7036
7036
  b,
7037
7037
  {
7038
7038
  style: {
@@ -7065,7 +7065,7 @@ const Bt = ({
7065
7065
  },
7066
7066
  onMouseEnter: () => I == null ? void 0 : I(!0),
7067
7067
  onMouseLeave: () => I == null ? void 0 : I(!1),
7068
- children: re()
7068
+ children: oe()
7069
7069
  }
7070
7070
  ),
7071
7071
  U && S && h && g && /* @__PURE__ */ e(
@@ -7109,16 +7109,16 @@ const Bt = ({
7109
7109
  Bt.displayName = "NavigationControls";
7110
7110
  const Ze = ({
7111
7111
  direction: n,
7112
- text: r,
7112
+ text: o,
7113
7113
  show: t,
7114
- actions: o,
7114
+ actions: r,
7115
7115
  currentPage: i,
7116
7116
  totalPages: a,
7117
7117
  disabled: c,
7118
7118
  hoverState: s,
7119
7119
  onHover: l
7120
7120
  }) => {
7121
- if (!r)
7121
+ if (!o)
7122
7122
  return null;
7123
7123
  const d = {
7124
7124
  left: {
@@ -7147,32 +7147,32 @@ const Ze = ({
7147
7147
  }
7148
7148
  }, u = {
7149
7149
  left: {
7150
- onLeftPrevious: o.prev,
7151
- onLeftNext: o.next,
7150
+ onLeftPrevious: r.prev,
7151
+ onLeftNext: r.next,
7152
7152
  leftCurrentPage: i,
7153
7153
  leftTotalPages: a,
7154
7154
  leftDisabled: c,
7155
7155
  leftVisible: !0
7156
7156
  },
7157
7157
  right: {
7158
- onRightPrevious: o.prev,
7159
- onRightNext: o.next,
7158
+ onRightPrevious: r.prev,
7159
+ onRightNext: r.next,
7160
7160
  rightCurrentPage: i,
7161
7161
  rightTotalPages: a,
7162
7162
  rightDisabled: c,
7163
7163
  rightVisible: !0
7164
7164
  },
7165
7165
  up: {
7166
- onUpPrevious: o.prev,
7167
- onUpNext: o.next,
7166
+ onUpPrevious: r.prev,
7167
+ onUpNext: r.next,
7168
7168
  upCurrentPage: i,
7169
7169
  upTotalPages: a,
7170
7170
  upDisabled: c,
7171
7171
  upVisible: !0
7172
7172
  },
7173
7173
  down: {
7174
- onDownPrevious: o.prev,
7175
- onDownNext: o.next,
7174
+ onDownPrevious: r.prev,
7175
+ onDownNext: r.next,
7176
7176
  downCurrentPage: i,
7177
7177
  downTotalPages: a,
7178
7178
  downDisabled: c,
@@ -7203,7 +7203,7 @@ const Ze = ({
7203
7203
  transition: "opacity 0.2s ease",
7204
7204
  position: "absolute"
7205
7205
  },
7206
- children: r
7206
+ children: o
7207
7207
  }
7208
7208
  ),
7209
7209
  t && /* @__PURE__ */ e(
@@ -7230,11 +7230,11 @@ const Ze = ({
7230
7230
  ]
7231
7231
  }
7232
7232
  );
7233
- }, Vr = (n) => {
7233
+ }, Vo = (n) => {
7234
7234
  const {
7235
- totalBlocksLeft: r = 0,
7235
+ totalBlocksLeft: o = 0,
7236
7236
  totalBlocksRight: t = 0,
7237
- totalBlocksUp: o = 0,
7237
+ totalBlocksUp: r = 0,
7238
7238
  totalBlocksDown: i = 0,
7239
7239
  visibleBlocksLeft: a = 1,
7240
7240
  visibleBlocksRight: c = 1,
@@ -7243,13 +7243,13 @@ const Ze = ({
7243
7243
  } = n, d = K(() => {
7244
7244
  const h = Math.max(
7245
7245
  1,
7246
- Math.ceil(r / a)
7246
+ Math.ceil(o / a)
7247
7247
  ), g = Math.max(
7248
7248
  1,
7249
7249
  Math.ceil(t / c)
7250
7250
  ), m = Math.max(
7251
7251
  1,
7252
- Math.ceil(o / s)
7252
+ Math.ceil(r / s)
7253
7253
  ), w = Math.max(
7254
7254
  1,
7255
7255
  Math.ceil(i / l)
@@ -7269,9 +7269,9 @@ const Ze = ({
7269
7269
  downEndIndex: 0
7270
7270
  };
7271
7271
  }, [
7272
- r,
7273
- t,
7274
7272
  o,
7273
+ t,
7274
+ r,
7275
7275
  i,
7276
7276
  a,
7277
7277
  c,
@@ -7287,10 +7287,10 @@ const Ze = ({
7287
7287
  ), f = K(() => {
7288
7288
  const { leftTotalPages: h, rightTotalPages: g, upTotalPages: m, downTotalPages: w } = d, y = Math.min(
7289
7289
  u.leftStartIndex,
7290
- Math.max(0, r - a)
7290
+ Math.max(0, o - a)
7291
7291
  ), S = Math.min(
7292
7292
  y + a,
7293
- r
7293
+ o
7294
7294
  ), M = Math.min(
7295
7295
  u.rightStartIndex,
7296
7296
  Math.max(0, t - c)
@@ -7299,8 +7299,8 @@ const Ze = ({
7299
7299
  t
7300
7300
  ), k = Math.min(
7301
7301
  u.upStartIndex,
7302
- Math.max(0, o - s)
7303
- ), C = Math.min(k + s, o), x = Math.min(
7302
+ Math.max(0, r - s)
7303
+ ), C = Math.min(k + s, r), x = Math.min(
7304
7304
  u.downStartIndex,
7305
7305
  Math.max(0, i - l)
7306
7306
  ), B = Math.min(
@@ -7328,9 +7328,9 @@ const Ze = ({
7328
7328
  c,
7329
7329
  s,
7330
7330
  l,
7331
- r,
7332
- t,
7333
7331
  o,
7332
+ t,
7333
+ r,
7334
7334
  i
7335
7335
  ]), I = {
7336
7336
  goToLeftPage: j(
@@ -7340,11 +7340,11 @@ const Ze = ({
7340
7340
  ...m,
7341
7341
  leftStartIndex: Math.min(
7342
7342
  g,
7343
- Math.max(0, r - a)
7343
+ Math.max(0, o - a)
7344
7344
  )
7345
7345
  }));
7346
7346
  },
7347
- [a, r]
7347
+ [a, o]
7348
7348
  ),
7349
7349
  goToRightPage: j(
7350
7350
  (h) => {
@@ -7366,11 +7366,11 @@ const Ze = ({
7366
7366
  ...m,
7367
7367
  upStartIndex: Math.min(
7368
7368
  g,
7369
- Math.max(0, o - s)
7369
+ Math.max(0, r - s)
7370
7370
  )
7371
7371
  }));
7372
7372
  },
7373
- [s, o]
7373
+ [s, r]
7374
7374
  ),
7375
7375
  goToDownPage: j(
7376
7376
  (h) => {
@@ -7391,10 +7391,10 @@ const Ze = ({
7391
7391
  ...h,
7392
7392
  leftStartIndex: Math.min(
7393
7393
  h.leftStartIndex + 1,
7394
- Math.max(0, r - a)
7394
+ Math.max(0, o - a)
7395
7395
  )
7396
7396
  }));
7397
- }, [r, a]),
7397
+ }, [o, a]),
7398
7398
  previousLeftPage: j(() => {
7399
7399
  p((h) => ({
7400
7400
  ...h,
@@ -7421,10 +7421,10 @@ const Ze = ({
7421
7421
  ...h,
7422
7422
  upStartIndex: Math.min(
7423
7423
  h.upStartIndex + 1,
7424
- Math.max(0, o - s)
7424
+ Math.max(0, r - s)
7425
7425
  )
7426
7426
  }));
7427
- }, [o, s]),
7427
+ }, [r, s]),
7428
7428
  previousUpPage: j(() => {
7429
7429
  p((h) => ({
7430
7430
  ...h,
@@ -7448,7 +7448,7 @@ const Ze = ({
7448
7448
  }, [])
7449
7449
  };
7450
7450
  return [u, I, f];
7451
- }, _r = (n, r = 0, t = 0, o = 0, i = 0) => {
7451
+ }, _o = (n, o = 0, t = 0, r = 0, i = 0) => {
7452
7452
  const [a, c] = O({
7453
7453
  width: typeof window < "u" ? window.innerWidth : 1920,
7454
7454
  height: typeof window < "u" ? window.innerHeight : 1080
@@ -7492,7 +7492,7 @@ const Ze = ({
7492
7492
  h,
7493
7493
  Math.min(g, Math.floor(V / 2))
7494
7494
  );
7495
- let re = d;
7495
+ let oe = d;
7496
7496
  if (M) {
7497
7497
  const U = parseFloat(z.replace("px", "")), P = parseFloat(k.replace("px", "")), X = Math.min(
7498
7498
  B / (a.width * 0.8),
@@ -7500,7 +7500,7 @@ const Ze = ({
7500
7500
  L / (a.height * 0.8)
7501
7501
  // Max 80% of screen height
7502
7502
  );
7503
- re = `${Math.max(
7503
+ oe = `${Math.max(
7504
7504
  U,
7505
7505
  Math.min(P, x * X)
7506
7506
  )}px`;
@@ -7510,8 +7510,8 @@ const Ze = ({
7510
7510
  a.height / 1080
7511
7511
  );
7512
7512
  let q, D;
7513
- if (o > 0 && i > 0) {
7514
- const U = Math.max(o, i);
7513
+ if (r > 0 && i > 0) {
7514
+ const U = Math.max(r, i);
7515
7515
  q = Math.max(
7516
7516
  m,
7517
7517
  Math.min(w, U)
@@ -7545,7 +7545,7 @@ const Ze = ({
7545
7545
  minBlocksDown: y,
7546
7546
  maxBlocksUp: w,
7547
7547
  maxBlocksDown: S,
7548
- blocksUp: o,
7548
+ blocksUp: r,
7549
7549
  blocksDown: i,
7550
7550
  calculatedBlocksUp: q,
7551
7551
  calculatedBlocksDown: D,
@@ -7557,16 +7557,16 @@ const Ze = ({
7557
7557
  blocksPerSide: N,
7558
7558
  blocksLeft: $,
7559
7559
  blocksRight: H,
7560
- cellSize: re,
7560
+ cellSize: oe,
7561
7561
  blocksUp: q,
7562
7562
  blocksDown: D
7563
7563
  };
7564
- }, [a, n, r, t, o, i]);
7565
- }, Gr = ({
7564
+ }, [a, n, o, t, r, i]);
7565
+ }, Go = ({
7566
7566
  gap: n,
7567
- cellSize: r,
7567
+ cellSize: o,
7568
7568
  blocksLeft: t,
7569
- blocksRight: o,
7569
+ blocksRight: r,
7570
7570
  blocksUp: i,
7571
7571
  blocksDown: a,
7572
7572
  totalBlocksLeft: c,
@@ -7591,10 +7591,10 @@ const Ze = ({
7591
7591
  const x = K(
7592
7592
  () => c !== void 0 || s !== void 0 || l !== void 0 || d !== void 0,
7593
7593
  [c, s, l, d]
7594
- ), B = _r(
7594
+ ), B = _o(
7595
7595
  {
7596
7596
  gap: n,
7597
- cellSize: r,
7597
+ cellSize: o,
7598
7598
  minBlocksPerSide: p,
7599
7599
  maxBlocksPerSide: f,
7600
7600
  minBlocksLeft: I,
@@ -7610,13 +7610,13 @@ const Ze = ({
7610
7610
  maxCellSize: C
7611
7611
  },
7612
7612
  t ?? 0,
7613
- o ?? 0,
7613
+ r ?? 0,
7614
7614
  i,
7615
7615
  a
7616
7616
  ), L = K(() => {
7617
- let _ = u ? B.blocksLeft : t ?? 0, V = u ? B.blocksRight : o ?? 0, N = u ? B.blocksUp : i ?? 0, $ = u ? B.blocksDown : a ?? 0;
7617
+ let _ = u ? B.blocksLeft : t ?? 0, V = u ? B.blocksRight : r ?? 0, N = u ? B.blocksUp : i ?? 0, $ = u ? B.blocksDown : a ?? 0;
7618
7618
  if (!u) {
7619
- const H = parseFloat(n.replace("px", "")), re = parseFloat(r.replace("px", "")), J = typeof window < "u" ? window.innerWidth - H * 4 : 1920, q = typeof window < "u" ? window.innerHeight - H * 4 : 1080, D = re + H, E = Math.floor(
7619
+ const H = parseFloat(n.replace("px", "")), oe = parseFloat(o.replace("px", "")), J = typeof window < "u" ? window.innerWidth - H * 4 : 1920, q = typeof window < "u" ? window.innerHeight - H * 4 : 1080, D = oe + H, E = Math.floor(
7620
7620
  J / (2 * D)
7621
7621
  ), U = Math.floor(
7622
7622
  q / (2 * D)
@@ -7628,11 +7628,11 @@ const Ze = ({
7628
7628
  u,
7629
7629
  B,
7630
7630
  t,
7631
- o,
7631
+ r,
7632
7632
  i,
7633
7633
  a,
7634
7634
  n,
7635
- r
7635
+ o
7636
7636
  ]), R = K(() => {
7637
7637
  const _ = x && c ? Math.min(L.left, c) : L.left, V = x && s ? Math.min(L.right, s) : L.right, N = x && l ? Math.min(L.up, l) : L.up, $ = x && d ? Math.min(L.down, d) : L.down;
7638
7638
  return { left: _, right: V, up: N, down: $ };
@@ -7643,7 +7643,7 @@ const Ze = ({
7643
7643
  s,
7644
7644
  l,
7645
7645
  d
7646
- ]), F = u ? B.cellSize : r, Q = K(() => {
7646
+ ]), F = u ? B.cellSize : o, Q = K(() => {
7647
7647
  const _ = (R.left > 0 ? R.left : 0) + 1 + (R.right > 0 ? R.right : 0), V = R.up > 0 || R.down > 0 ? R.up + 1 + R.down : 1, N = `${F} `.repeat(R.left) + "1fr " + `${F} `.repeat(R.right), $ = R.up > 0 || R.down > 0 ? `${F} `.repeat(R.up) + "1fr " + `${F} `.repeat(R.down) : "1fr";
7648
7648
  return {
7649
7649
  totalColumns: _,
@@ -7659,13 +7659,13 @@ const Ze = ({
7659
7659
  finalCellSize: F,
7660
7660
  gridDimensions: Q
7661
7661
  };
7662
- }, Qr = ({
7662
+ }, Qo = ({
7663
7663
  blockItems: n
7664
7664
  }) => {
7665
- const r = K(() => n.reduce((i, a) => (i[a.id] = a, i), {}), [n]);
7665
+ const o = K(() => n.reduce((i, a) => (i[a.id] = a, i), {}), [n]);
7666
7666
  return {
7667
7667
  getBlockContent: (i, a) => {
7668
- const c = `${i}-${a}`, s = r[c];
7668
+ const c = `${i}-${a}`, s = o[c];
7669
7669
  return s ? s.content : be.createElement("div", {
7670
7670
  style: {
7671
7671
  padding: "4px",
@@ -7685,51 +7685,51 @@ const Ze = ({
7685
7685
  getIntersectionText: (i, a, c, s) => {
7686
7686
  const l = [];
7687
7687
  if (i !== null) {
7688
- const d = r[`left-${i}`];
7688
+ const d = o[`left-${i}`];
7689
7689
  l.push(d ? `left-${i}` : `left${i + 1}`);
7690
7690
  }
7691
7691
  if (a !== null) {
7692
- const d = r[`right-${a}`];
7692
+ const d = o[`right-${a}`];
7693
7693
  l.push(
7694
7694
  d ? `right-${a}` : `right${a + 1}`
7695
7695
  );
7696
7696
  }
7697
7697
  if (c !== null) {
7698
- const d = r[`up-${c}`];
7698
+ const d = o[`up-${c}`];
7699
7699
  l.push(d ? `up-${c}` : `up${c + 1}`);
7700
7700
  }
7701
7701
  if (s !== null) {
7702
- const d = r[`down-${s}`];
7702
+ const d = o[`down-${s}`];
7703
7703
  l.push(d ? `down-${s}` : `down${s + 1}`);
7704
7704
  }
7705
7705
  return l.join(", ");
7706
7706
  }
7707
7707
  };
7708
- }, Yr = ({ blockConnections: n }) => {
7709
- const r = K(() => {
7710
- const o = /* @__PURE__ */ new Map();
7708
+ }, Yo = ({ blockConnections: n }) => {
7709
+ const o = K(() => {
7710
+ const r = /* @__PURE__ */ new Map();
7711
7711
  return n.forEach((i) => {
7712
7712
  const a = `${i.source}-${i.target}`, c = `${i.target}-${i.source}`;
7713
- o.set(a, i), o.set(c, i);
7714
- }), o;
7713
+ r.set(a, i), r.set(c, i);
7714
+ }), r;
7715
7715
  }, [n]);
7716
7716
  return {
7717
- getConnectionStateFromText: (o) => {
7718
- const i = o.split(", ").map((a) => a.trim());
7717
+ getConnectionStateFromText: (r) => {
7718
+ const i = r.split(", ").map((a) => a.trim());
7719
7719
  for (let a = 0; a < i.length; a++)
7720
7720
  for (let c = a + 1; c < i.length; c++) {
7721
- const s = i[a], l = i[c], d = `${s}-${l}`, u = r.get(d);
7721
+ const s = i[a], l = i[c], d = `${s}-${l}`, u = o.get(d);
7722
7722
  if (u)
7723
7723
  return u.type;
7724
7724
  }
7725
7725
  return "empty";
7726
7726
  }
7727
7727
  };
7728
- }, Zr = ({
7728
+ }, Zo = ({
7729
7729
  usePagination: n,
7730
- totalBlocksLeft: r,
7730
+ totalBlocksLeft: o,
7731
7731
  totalBlocksRight: t,
7732
- totalBlocksUp: o,
7732
+ totalBlocksUp: r,
7733
7733
  totalBlocksDown: i,
7734
7734
  paginationActions: a,
7735
7735
  paginationState: c,
@@ -7748,9 +7748,9 @@ const Ze = ({
7748
7748
  handleHover: u,
7749
7749
  getNavigationControlProps: (f) => {
7750
7750
  const I = {
7751
- left: r,
7751
+ left: o,
7752
7752
  right: t,
7753
- up: o,
7753
+ up: r,
7754
7754
  down: i
7755
7755
  }[f], h = {
7756
7756
  left: { prev: a.previousLeftPage, next: a.nextLeftPage },
@@ -7780,17 +7780,17 @@ const Ze = ({
7780
7780
  };
7781
7781
  }
7782
7782
  };
7783
- }, qr = ({
7783
+ }, qo = ({
7784
7784
  blockItems: n,
7785
- blockConnections: r
7785
+ blockConnections: o
7786
7786
  }) => {
7787
- const [t, o] = O(null), [i, a] = O(!1), c = K(() => {
7787
+ const [t, r] = O(null), [i, a] = O(!1), c = K(() => {
7788
7788
  const g = /* @__PURE__ */ new Map();
7789
- return r.forEach((m) => {
7789
+ return o.forEach((m) => {
7790
7790
  const w = `${m.source}-${m.target}`, y = `${m.target}-${m.source}`;
7791
7791
  g.set(w, m), g.set(y, m);
7792
7792
  }), g;
7793
- }, [r]), s = j(
7793
+ }, [o]), s = j(
7794
7794
  (g) => {
7795
7795
  const m = [];
7796
7796
  return n.forEach((w) => {
@@ -7856,13 +7856,13 @@ const Ze = ({
7856
7856
  [i, t, l]
7857
7857
  ), f = j(
7858
7858
  (g) => {
7859
- i && t === g ? (a(!1), o(null)) : (o(g), a(!0));
7859
+ i && t === g ? (a(!1), r(null)) : (r(g), a(!0));
7860
7860
  },
7861
7861
  [i, t]
7862
7862
  ), I = j((g) => {
7863
7863
  console.log(`Block clicked: ${g}`);
7864
7864
  }, []), h = j(() => {
7865
- a(!1), o(null);
7865
+ a(!1), r(null);
7866
7866
  }, []);
7867
7867
  return {
7868
7868
  selectedBlockId: t,
@@ -7875,31 +7875,31 @@ const Ze = ({
7875
7875
  clearFiltering: h,
7876
7876
  getFilteredBlockIds: l
7877
7877
  };
7878
- }, Gn = (n) => parseInt(n.replace(/[^\d]/g, ""), 10) || 0, Xr = (n, r) => {
7879
- const [t, o] = O({ width: 0, height: 0 }), i = j(() => {
7878
+ }, Gn = (n) => parseInt(n.replace(/[^\d]/g, ""), 10) || 0, Xo = (n, o) => {
7879
+ const [t, r] = O({ width: 0, height: 0 }), i = j(() => {
7880
7880
  const { width: a, height: c } = t;
7881
7881
  if (a === 0 || c === 0)
7882
7882
  return {
7883
- blocksUp: r.minVerticalBlocks / 2,
7884
- blocksDown: r.minVerticalBlocks / 2,
7885
- blocksLeft: r.minHorizontalBlocks / 2,
7886
- blocksRight: r.minHorizontalBlocks / 2,
7883
+ blocksUp: o.minVerticalBlocks / 2,
7884
+ blocksDown: o.minVerticalBlocks / 2,
7885
+ blocksLeft: o.minHorizontalBlocks / 2,
7886
+ blocksRight: o.minHorizontalBlocks / 2,
7887
7887
  containerWidth: a,
7888
7888
  containerHeight: c
7889
7889
  };
7890
- const s = Gn(r.cellSize), l = Gn(r.gap), d = s + l, u = a - l * 2, p = c - l * 2, f = Math.floor(
7891
- p * r.verticalMaxPercent / 100 / d
7890
+ const s = Gn(o.cellSize), l = Gn(o.gap), d = s + l, u = a - l * 2, p = c - l * 2, f = Math.floor(
7891
+ p * o.verticalMaxPercent / 100 / d
7892
7892
  ), I = Math.floor(
7893
- u * r.horizontalMaxPercent / 100 / d
7893
+ u * o.horizontalMaxPercent / 100 / d
7894
7894
  ), h = Math.floor(
7895
- p * r.verticalMinPercent / 100 / d
7895
+ p * o.verticalMinPercent / 100 / d
7896
7896
  ), g = Math.floor(
7897
- u * r.horizontalMinPercent / 100 / d
7897
+ u * o.horizontalMinPercent / 100 / d
7898
7898
  ), m = Math.max(
7899
- r.minVerticalBlocks,
7899
+ o.minVerticalBlocks,
7900
7900
  h
7901
7901
  ), w = Math.max(
7902
- r.minHorizontalBlocks,
7902
+ o.minHorizontalBlocks,
7903
7903
  g
7904
7904
  ), y = Math.max(m, f), S = Math.max(w, I), M = Math.floor(y / 2), z = Math.floor(y / 2), k = Math.floor(S / 2), C = Math.floor(S / 2);
7905
7905
  return {
@@ -7910,12 +7910,12 @@ const Ze = ({
7910
7910
  containerWidth: a,
7911
7911
  containerHeight: c
7912
7912
  };
7913
- }, [t, r]);
7913
+ }, [t, o]);
7914
7914
  return Y(() => {
7915
7915
  const a = () => {
7916
7916
  if (n.current) {
7917
7917
  const s = n.current.getBoundingClientRect();
7918
- o({ width: s.width, height: s.height });
7918
+ r({ width: s.width, height: s.height });
7919
7919
  }
7920
7920
  };
7921
7921
  a();
@@ -7924,7 +7924,7 @@ const Ze = ({
7924
7924
  c.disconnect();
7925
7925
  };
7926
7926
  }, [n]), i();
7927
- }, Kr = {
7927
+ }, Ko = {
7928
7928
  verticalMinPercent: 20,
7929
7929
  // Minimum 20% of height for vertical blocks
7930
7930
  verticalMaxPercent: 50,
@@ -7939,11 +7939,11 @@ const Ze = ({
7939
7939
  // Minimum 4 total horizontal blocks (2 left + 2 right)
7940
7940
  cellSize: "50px",
7941
7941
  gap: "8px"
7942
- }, Jr = ({
7942
+ }, Jo = ({
7943
7943
  children: n,
7944
- style: r,
7944
+ style: o,
7945
7945
  gap: t = "8px",
7946
- cellSize: o = "50px",
7946
+ cellSize: r = "50px",
7947
7947
  // NEW SIMPLIFIED API
7948
7948
  verticalBlocks: i,
7949
7949
  horizontalBlocks: a,
@@ -7983,29 +7983,29 @@ const Ze = ({
7983
7983
  minBlocksUp: N = 1,
7984
7984
  maxBlocksUp: $ = 8,
7985
7985
  minBlocksDown: H = 1,
7986
- maxBlocksDown: re = 8,
7986
+ maxBlocksDown: oe = 8,
7987
7987
  responsiveCellSize: J = !1,
7988
7988
  minCellSize: q = "30px",
7989
7989
  maxCellSize: D = "80px",
7990
7990
  directionTexts: E,
7991
7991
  ...U
7992
7992
  }) => {
7993
- const P = Z(null), X = Xr(P, {
7994
- ...Kr,
7995
- cellSize: o,
7993
+ const P = Z(null), X = Xo(P, {
7994
+ ...Ko,
7995
+ cellSize: r,
7996
7996
  gap: t,
7997
7997
  ...c
7998
7998
  });
7999
7999
  let de = l, G = d, ge = u, ie = p;
8000
8000
  s ? (de = Math.floor(X.blocksLeft), G = Math.floor(X.blocksRight), ge = Math.floor(X.blocksUp), ie = Math.floor(X.blocksDown)) : (i !== void 0 || a !== void 0) && (i !== void 0 && (ge = Math.floor(i / 2), ie = Math.floor(i / 2)), a !== void 0 && (de = Math.floor(a / 2), G = Math.floor(a / 2)));
8001
- const ze = F !== 1 ? F : Math.floor(x / 2), cn = Q !== 8 ? Q : Math.floor(B / 2), sn = _ !== 1 ? _ : Math.ceil(x / 2), Ie = V !== 8 ? V : Math.ceil(B / 2), Le = N !== 1 ? N : Math.floor(L / 2), _e = $ !== 8 ? $ : Math.floor(R / 2), Ut = H !== 1 ? H : Math.ceil(L / 2), Nt = re !== 8 ? re : Math.ceil(R / 2), {
8001
+ const ze = F !== 1 ? F : Math.floor(x / 2), cn = Q !== 8 ? Q : Math.floor(B / 2), sn = _ !== 1 ? _ : Math.ceil(x / 2), Ie = V !== 8 ? V : Math.ceil(B / 2), Le = N !== 1 ? N : Math.floor(L / 2), _e = $ !== 8 ? $ : Math.floor(R / 2), Ut = H !== 1 ? H : Math.ceil(L / 2), Nt = oe !== 8 ? oe : Math.ceil(R / 2), {
8002
8002
  usePagination: Wt,
8003
8003
  finalBlocks: ee,
8004
8004
  finalCellSize: ye,
8005
8005
  gridDimensions: Ge
8006
- } = Gr({
8006
+ } = Go({
8007
8007
  gap: t,
8008
- cellSize: o,
8008
+ cellSize: r,
8009
8009
  blocksLeft: de,
8010
8010
  blocksRight: G,
8011
8011
  blocksUp: ge,
@@ -8028,11 +8028,11 @@ const Ze = ({
8028
8028
  responsiveCellSize: J,
8029
8029
  minCellSize: q,
8030
8030
  maxCellSize: D
8031
- }), { getBlockContent: Qe, getIntersectionText: $t } = Qr({
8031
+ }), { getBlockContent: Qe, getIntersectionText: $t } = Qo({
8032
8032
  blockItems: f
8033
- }), { getConnectionStateFromText: Ht } = Yr({
8033
+ }), { getConnectionStateFromText: Ht } = Yo({
8034
8034
  blockConnections: I
8035
- }), ne = qr({
8035
+ }), ne = qo({
8036
8036
  blockItems: f,
8037
8037
  blockConnections: I
8038
8038
  });
@@ -8044,7 +8044,7 @@ const Ze = ({
8044
8044
  };
8045
8045
  return window.addEventListener("keydown", ln), () => window.removeEventListener("keydown", ln);
8046
8046
  }, [h, ne]);
8047
- const [ve, Pt, Vt] = Vr({
8047
+ const [ve, Pt, Vt] = Vo({
8048
8048
  totalBlocksLeft: m ?? 0,
8049
8049
  totalBlocksRight: w ?? 0,
8050
8050
  totalBlocksUp: y ?? 0,
@@ -8053,7 +8053,7 @@ const Ze = ({
8053
8053
  visibleBlocksRight: ee.right,
8054
8054
  visibleBlocksUp: ee.up,
8055
8055
  visibleBlocksDown: ee.down
8056
- }), { getNavigationControlProps: De } = Zr({
8056
+ }), { getNavigationControlProps: De } = Zo({
8057
8057
  usePagination: Wt,
8058
8058
  totalBlocksLeft: m,
8059
8059
  totalBlocksRight: w,
@@ -8079,7 +8079,7 @@ const Ze = ({
8079
8079
  boxSizing: "border-box",
8080
8080
  gap: t,
8081
8081
  overflow: "hidden",
8082
- ...r
8082
+ ...o
8083
8083
  },
8084
8084
  ...U,
8085
8085
  children: [
@@ -8273,12 +8273,12 @@ const Ze = ({
8273
8273
  }
8274
8274
  );
8275
8275
  };
8276
- Jr.displayName = "Matrix";
8276
+ Jo.displayName = "Matrix";
8277
8277
  const Ae = ({
8278
8278
  editable: n = !1,
8279
- children: r,
8279
+ children: o,
8280
8280
  label: t,
8281
- icon: o,
8281
+ icon: r,
8282
8282
  value: i,
8283
8283
  className: a,
8284
8284
  style: c,
@@ -8288,12 +8288,12 @@ const Ae = ({
8288
8288
  className: a,
8289
8289
  style: c
8290
8290
  };
8291
- return ko("(max-width: 550px)", !1, {
8291
+ return Sr("(max-width: 550px)", !1, {
8292
8292
  getInitialValueInEffect: !0
8293
8293
  }) ? /* @__PURE__ */ v(W, { gap: 0, w: "100%", ...l, children: [
8294
8294
  /* @__PURE__ */ v(b, { style: { display: "flex", alignItems: "center", gap: 8 }, h: "auto", children: [
8295
- o && /* @__PURE__ */ e(
8296
- o,
8295
+ r && /* @__PURE__ */ e(
8296
+ r,
8297
8297
  {
8298
8298
  size: 20,
8299
8299
  style: { flexShrink: 0 },
@@ -8303,7 +8303,7 @@ const Ae = ({
8303
8303
  ),
8304
8304
  /* @__PURE__ */ e(T, { size: "sm", fw: 500, c: "gray.6", children: t })
8305
8305
  ] }),
8306
- /* @__PURE__ */ e(b, { style: { display: "flex", alignItems: "flex-start" }, w: "100%", children: n && r ? r : i })
8306
+ /* @__PURE__ */ e(b, { style: { display: "flex", alignItems: "flex-start" }, w: "100%", children: n && o ? o : i })
8307
8307
  ] }) : /* @__PURE__ */ v(A, { align: "flex-start", gap: 0, w: "100%", ...s, ...l, children: [
8308
8308
  /* @__PURE__ */ v(
8309
8309
  b,
@@ -8312,8 +8312,8 @@ const Ae = ({
8312
8312
  style: { display: "flex", alignItems: "center", gap: 8 },
8313
8313
  h: "40px",
8314
8314
  children: [
8315
- o && /* @__PURE__ */ e(
8316
- o,
8315
+ r && /* @__PURE__ */ e(
8316
+ r,
8317
8317
  {
8318
8318
  size: 20,
8319
8319
  style: { flexShrink: 0 },
@@ -8331,28 +8331,28 @@ const Ae = ({
8331
8331
  w: "70%",
8332
8332
  style: { display: "flex", alignItems: "flex-start" },
8333
8333
  mih: 40,
8334
- children: n && r ? r : i
8334
+ children: n && o ? o : i
8335
8335
  }
8336
8336
  )
8337
8337
  ] });
8338
8338
  }, Ui = ({
8339
8339
  label: n,
8340
- icon: r,
8340
+ icon: o,
8341
8341
  value: t,
8342
- onChange: o,
8342
+ onChange: r,
8343
8343
  editable: i = !1,
8344
8344
  placeholder: a,
8345
8345
  disabled: c = !1
8346
- }) => i && o ? /* @__PURE__ */ e(
8346
+ }) => i && r ? /* @__PURE__ */ e(
8347
8347
  Ae,
8348
8348
  {
8349
8349
  label: n,
8350
- icon: r,
8350
+ icon: o,
8351
8351
  value: /* @__PURE__ */ e(
8352
8352
  an,
8353
8353
  {
8354
8354
  value: t,
8355
- onChange: o,
8355
+ onChange: r,
8356
8356
  placeholder: a,
8357
8357
  disabled: c,
8358
8358
  size: "sm"
@@ -8363,47 +8363,47 @@ const Ae = ({
8363
8363
  Ae,
8364
8364
  {
8365
8365
  label: n,
8366
- icon: r,
8366
+ icon: o,
8367
8367
  value: /* @__PURE__ */ e(T, { size: "sm", c: t ? void 0 : "dimmed", fw: 500, truncate: !0, children: t || a || "—" })
8368
8368
  }
8369
8369
  ), Ni = ({
8370
8370
  label: n,
8371
- icon: r,
8371
+ icon: o,
8372
8372
  href: t,
8373
- text: o,
8373
+ text: r,
8374
8374
  target: i = "_blank"
8375
8375
  }) => /* @__PURE__ */ e(
8376
8376
  Ae,
8377
8377
  {
8378
8378
  label: n,
8379
- icon: r,
8380
- value: /* @__PURE__ */ e(tt, { href: t, target: i, size: "sm", underline: "hover", children: o || t })
8379
+ icon: o,
8380
+ value: /* @__PURE__ */ e(tt, { href: t, target: i, size: "sm", underline: "hover", children: r || t })
8381
8381
  }
8382
8382
  ), Wi = ({
8383
8383
  label: n,
8384
- icon: r,
8384
+ icon: o,
8385
8385
  value: t,
8386
- onChange: o,
8386
+ onChange: r,
8387
8387
  editable: i = !1,
8388
8388
  format: a,
8389
8389
  placeholder: c
8390
8390
  }) => {
8391
8391
  const s = t ?? null, l = s !== null && a ? a(s) : s !== null ? s.toString() : null, d = (u) => {
8392
- if (!o)
8392
+ if (!r)
8393
8393
  return;
8394
8394
  const p = u.trim();
8395
8395
  if (p === "") {
8396
- o(null);
8396
+ r(null);
8397
8397
  return;
8398
8398
  }
8399
8399
  const f = Number(p);
8400
- isNaN(f) || o(f);
8400
+ isNaN(f) || r(f);
8401
8401
  };
8402
- return i && o ? /* @__PURE__ */ e(
8402
+ return i && r ? /* @__PURE__ */ e(
8403
8403
  Ae,
8404
8404
  {
8405
8405
  label: n,
8406
- icon: r,
8406
+ icon: o,
8407
8407
  value: /* @__PURE__ */ e(
8408
8408
  an,
8409
8409
  {
@@ -8418,19 +8418,19 @@ const Ae = ({
8418
8418
  Ae,
8419
8419
  {
8420
8420
  label: n,
8421
- icon: r,
8421
+ icon: o,
8422
8422
  value: /* @__PURE__ */ e(T, { size: "sm", c: s !== null ? void 0 : "dimmed", children: l || c || "—" })
8423
8423
  }
8424
8424
  );
8425
8425
  }, ei = 300, ni = ({
8426
8426
  users: n,
8427
- onSearch: r,
8427
+ onSearch: o,
8428
8428
  debounceSearch: t = !0,
8429
- debounceDelay: o = ei
8429
+ debounceDelay: r = ei
8430
8430
  }) => {
8431
8431
  const [i, a] = O(""), [c, s] = O(n), [l, d] = O(!1), u = Z(null);
8432
8432
  return Y(() => {
8433
- if (!r) {
8433
+ if (!o) {
8434
8434
  s(n);
8435
8435
  return;
8436
8436
  }
@@ -8438,7 +8438,7 @@ const Ae = ({
8438
8438
  const p = async () => {
8439
8439
  d(!0);
8440
8440
  try {
8441
- const f = await r(i);
8441
+ const f = await o(i);
8442
8442
  s(f);
8443
8443
  } catch (f) {
8444
8444
  console.error("Search error:", f);
@@ -8446,15 +8446,15 @@ const Ae = ({
8446
8446
  d(!1);
8447
8447
  }
8448
8448
  };
8449
- t ? u.current = setTimeout(p, o) : p();
8449
+ t ? u.current = setTimeout(p, r) : p();
8450
8450
  } else
8451
8451
  s(n), d(!1);
8452
8452
  return () => {
8453
8453
  u.current && clearTimeout(u.current);
8454
8454
  };
8455
- }, [i, r, t, o, n]), Y(() => {
8456
- (!i.trim() || !r) && s(n);
8457
- }, [n, i, r]), {
8455
+ }, [i, o, t, r, n]), Y(() => {
8456
+ (!i.trim() || !o) && s(n);
8457
+ }, [n, i, o]), {
8458
8458
  searchQuery: i,
8459
8459
  setSearchQuery: a,
8460
8460
  displayedUsers: c,
@@ -8463,20 +8463,20 @@ const Ae = ({
8463
8463
  };
8464
8464
  }, ti = ({
8465
8465
  value: n,
8466
- multiple: r,
8466
+ multiple: o,
8467
8467
  users: t,
8468
- displayedUsers: o,
8468
+ displayedUsers: r,
8469
8469
  searchQuery: i,
8470
8470
  onSearch: a
8471
8471
  }) => {
8472
- const c = K(() => r ? Array.isArray(n) ? n : [] : n ? [n] : [], [n, r]), s = K(() => t.filter((u) => c.includes(u.id)), [t, c]), l = K(() => {
8472
+ const c = K(() => o ? Array.isArray(n) ? n : [] : n ? [n] : [], [n, o]), s = K(() => t.filter((u) => c.includes(u.id)), [t, c]), l = K(() => {
8473
8473
  if (!i.trim() || a)
8474
- return o;
8474
+ return r;
8475
8475
  const u = i.toLowerCase();
8476
- return o.filter(
8476
+ return r.filter(
8477
8477
  (p) => p.name.toLowerCase().includes(u) || p.email.toLowerCase().includes(u)
8478
8478
  );
8479
- }, [o, i, a]), d = K(() => {
8479
+ }, [r, i, a]), d = K(() => {
8480
8480
  const u = l.filter(
8481
8481
  (I) => c.includes(I.id)
8482
8482
  ), p = l.filter((I) => !c.includes(I.id)), f = s.filter(
@@ -8489,61 +8489,61 @@ const Ae = ({
8489
8489
  selectedUsers: s,
8490
8490
  sortedUsers: d
8491
8491
  };
8492
- }, oi = ({
8492
+ }, ri = ({
8493
8493
  isFocused: n,
8494
- dropdownRef: r
8494
+ dropdownRef: o
8495
8495
  }) => {
8496
- const [t, o] = O("bottom"), i = j(
8496
+ const [t, r] = O("bottom"), i = j(
8497
8497
  (a) => {
8498
- if (r.current = a, a) {
8498
+ if (o.current = a, a) {
8499
8499
  const c = a.dataset.position;
8500
- c === "top" || c === "bottom" ? o(c) : requestAnimationFrame(() => {
8500
+ c === "top" || c === "bottom" ? r(c) : requestAnimationFrame(() => {
8501
8501
  if (a.dataset.position) {
8502
8502
  const s = a.dataset.position;
8503
- (s === "top" || s === "bottom") && o(s);
8503
+ (s === "top" || s === "bottom") && r(s);
8504
8504
  }
8505
8505
  });
8506
8506
  }
8507
8507
  },
8508
- [r]
8508
+ [o]
8509
8509
  );
8510
8510
  return Qn(() => {
8511
- if (!n || !r.current)
8511
+ if (!n || !o.current)
8512
8512
  return;
8513
8513
  const a = () => {
8514
- if (r.current) {
8515
- const l = r.current.dataset.position;
8516
- (l === "top" || l === "bottom") && o(l);
8514
+ if (o.current) {
8515
+ const l = o.current.dataset.position;
8516
+ (l === "top" || l === "bottom") && r(l);
8517
8517
  }
8518
8518
  };
8519
8519
  a();
8520
8520
  const c = requestAnimationFrame(a), s = new MutationObserver(() => {
8521
8521
  a();
8522
8522
  });
8523
- return r.current && s.observe(r.current, {
8523
+ return o.current && s.observe(o.current, {
8524
8524
  attributes: !0,
8525
8525
  attributeFilter: ["data-position"]
8526
8526
  }), () => {
8527
8527
  cancelAnimationFrame(c), s.disconnect();
8528
8528
  };
8529
- }, [n, r]), {
8529
+ }, [n, o]), {
8530
8530
  placement: t,
8531
8531
  dropdownRefCallback: i
8532
8532
  };
8533
- }, ri = ({
8533
+ }, oi = ({
8534
8534
  onLoadMore: n,
8535
- hasMore: r,
8535
+ hasMore: o,
8536
8536
  loading: t,
8537
- setDisplayedUsers: o
8537
+ setDisplayedUsers: r
8538
8538
  }) => {
8539
8539
  const i = Z(null);
8540
8540
  return Y(() => {
8541
- if (!n || !r || t)
8541
+ if (!n || !o || t)
8542
8542
  return;
8543
8543
  const a = new IntersectionObserver(
8544
8544
  (c) => {
8545
- c[0].isIntersecting && r && !t && n().then((s) => {
8546
- o((l) => [...l, ...s]);
8545
+ c[0].isIntersecting && o && !t && n().then((s) => {
8546
+ r((l) => [...l, ...s]);
8547
8547
  });
8548
8548
  },
8549
8549
  { threshold: 0.1 }
@@ -8551,23 +8551,23 @@ const Ae = ({
8551
8551
  return i.current && a.observe(i.current), () => {
8552
8552
  a.disconnect();
8553
8553
  };
8554
- }, [n, r, t, o]), {
8554
+ }, [n, o, t, r]), {
8555
8555
  loadMoreRef: i
8556
8556
  };
8557
8557
  }, ii = ({
8558
8558
  combobox: n,
8559
- dropdownRef: r
8559
+ dropdownRef: o
8560
8560
  }) => {
8561
- const [t, o] = O(!1), [i, a] = O(!1), c = j(() => {
8562
- o(!0), n.openDropdown();
8561
+ const [t, r] = O(!1), [i, a] = O(!1), c = j(() => {
8562
+ r(!0), n.openDropdown();
8563
8563
  }, [n]), s = j(
8564
8564
  (u) => {
8565
8565
  setTimeout(() => {
8566
8566
  const p = u == null ? void 0 : u.relatedTarget;
8567
- p && r.current && r.current.contains(p) || n.dropdownOpened || o(!1);
8567
+ p && o.current && o.current.contains(p) || n.dropdownOpened || r(!1);
8568
8568
  }, 0);
8569
8569
  },
8570
- [n, r]
8570
+ [n, o]
8571
8571
  ), l = j(() => {
8572
8572
  a(!0);
8573
8573
  }, []), d = j(() => {
@@ -8575,7 +8575,7 @@ const Ae = ({
8575
8575
  }, []);
8576
8576
  return {
8577
8577
  isFocused: t,
8578
- setIsFocused: o,
8578
+ setIsFocused: r,
8579
8579
  isHovered: i,
8580
8580
  handleFocus: c,
8581
8581
  handleBlur: s,
@@ -8584,28 +8584,28 @@ const Ae = ({
8584
8584
  };
8585
8585
  }, ai = ({
8586
8586
  multiple: n,
8587
- value: r,
8587
+ value: o,
8588
8588
  onChange: t,
8589
- combobox: o
8589
+ combobox: r
8590
8590
  }) => {
8591
8591
  const i = j(
8592
8592
  (c) => {
8593
8593
  if (n) {
8594
- const s = Array.isArray(r) ? r : [], l = s.includes(c) ? s.filter((d) => d !== c) : [...s, c];
8594
+ const s = Array.isArray(o) ? o : [], l = s.includes(c) ? s.filter((d) => d !== c) : [...s, c];
8595
8595
  t == null || t(l);
8596
8596
  } else
8597
- t == null || t(c), o.closeDropdown();
8597
+ t == null || t(c), r.closeDropdown();
8598
8598
  },
8599
- [n, r, t, o]
8599
+ [n, o, t, r]
8600
8600
  ), a = j(
8601
8601
  (c) => {
8602
8602
  if (n) {
8603
- const s = Array.isArray(r) ? r : [];
8603
+ const s = Array.isArray(o) ? o : [];
8604
8604
  t == null || t(s.filter((l) => l !== c));
8605
8605
  } else
8606
8606
  t == null || t("");
8607
8607
  },
8608
- [n, r, t]
8608
+ [n, o, t]
8609
8609
  );
8610
8610
  return {
8611
8611
  handleSelect: i,
@@ -8613,9 +8613,9 @@ const Ae = ({
8613
8613
  };
8614
8614
  }, ci = "40px", si = 300, Fe = ({
8615
8615
  editable: n = !1,
8616
- label: r,
8616
+ label: o,
8617
8617
  icon: t,
8618
- value: o,
8618
+ value: r,
8619
8619
  users: i = [],
8620
8620
  onChange: a,
8621
8621
  placeholder: c = "Select users",
@@ -8639,7 +8639,7 @@ const Ae = ({
8639
8639
  onSearch: d,
8640
8640
  debounceSearch: u,
8641
8641
  debounceDelay: p
8642
- }), C = on({
8642
+ }), C = rn({
8643
8643
  onDropdownClose: () => {
8644
8644
  C.resetSelectedOption(), S(""), B(!1);
8645
8645
  },
@@ -8657,24 +8657,24 @@ const Ae = ({
8657
8657
  } = ii({
8658
8658
  combobox: C,
8659
8659
  dropdownRef: w
8660
- }), { placement: V, dropdownRefCallback: N } = oi({
8660
+ }), { placement: V, dropdownRefCallback: N } = ri({
8661
8661
  isFocused: x,
8662
8662
  dropdownRef: w
8663
- }), { selectedIds: $, selectedUsers: H, sortedUsers: re } = ti({
8664
- value: o,
8663
+ }), { selectedIds: $, selectedUsers: H, sortedUsers: oe } = ti({
8664
+ value: r,
8665
8665
  multiple: s,
8666
8666
  users: i,
8667
8667
  displayedUsers: M,
8668
8668
  searchQuery: y,
8669
8669
  onSearch: d
8670
- }), { loadMoreRef: J } = ri({
8670
+ }), { loadMoreRef: J } = oi({
8671
8671
  onLoadMore: f,
8672
8672
  hasMore: I,
8673
8673
  loading: h,
8674
8674
  setDisplayedUsers: z
8675
8675
  }), { handleSelect: q, handleRemove: D } = ai({
8676
8676
  multiple: s,
8677
- value: o,
8677
+ value: r,
8678
8678
  onChange: a,
8679
8679
  combobox: C
8680
8680
  }), E = () => {
@@ -8753,7 +8753,7 @@ const Ae = ({
8753
8753
  Ae,
8754
8754
  {
8755
8755
  editable: n,
8756
- label: r,
8756
+ label: o,
8757
8757
  icon: t,
8758
8758
  value: /* @__PURE__ */ e(
8759
8759
  A,
@@ -8777,14 +8777,14 @@ const Ae = ({
8777
8777
  }
8778
8778
  ),
8779
8779
  children: /* @__PURE__ */ v(
8780
- oe,
8780
+ re,
8781
8781
  {
8782
8782
  store: C,
8783
8783
  onOptionSubmit: q,
8784
8784
  withinPortal: !1,
8785
8785
  offset: -2,
8786
8786
  children: [
8787
- /* @__PURE__ */ e(oe.DropdownTarget, { children: /* @__PURE__ */ e(
8787
+ /* @__PURE__ */ e(re.DropdownTarget, { children: /* @__PURE__ */ e(
8788
8788
  Fn,
8789
8789
  {
8790
8790
  onClick: () => !l && C.openDropdown(),
@@ -8802,7 +8802,7 @@ const Ae = ({
8802
8802
  styles: de,
8803
8803
  children: [
8804
8804
  s ? E() : U(),
8805
- /* @__PURE__ */ e(oe.EventsTarget, { children: /* @__PURE__ */ e(
8805
+ /* @__PURE__ */ e(re.EventsTarget, { children: /* @__PURE__ */ e(
8806
8806
  Fn.Field,
8807
8807
  {
8808
8808
  ref: g,
@@ -8857,7 +8857,7 @@ const Ae = ({
8857
8857
  }
8858
8858
  ) }),
8859
8859
  /* @__PURE__ */ e(
8860
- oe.Dropdown,
8860
+ re.Dropdown,
8861
8861
  {
8862
8862
  styles: {
8863
8863
  dropdown: {
@@ -8870,17 +8870,17 @@ const Ae = ({
8870
8870
  }
8871
8871
  },
8872
8872
  ref: N,
8873
- children: /* @__PURE__ */ e(oe.Options, { children: /* @__PURE__ */ e(
8873
+ children: /* @__PURE__ */ e(re.Options, { children: /* @__PURE__ */ e(
8874
8874
  ke,
8875
8875
  {
8876
8876
  ref: m,
8877
- h: Math.min(re.length * parseFloat(ci), 300),
8877
+ h: Math.min(oe.length * parseFloat(ci), 300),
8878
8878
  scrollbarSize: 6,
8879
8879
  children: /* @__PURE__ */ v(W, { gap: 2, children: [
8880
- re.map((G) => {
8880
+ oe.map((G) => {
8881
8881
  const ge = $.includes(G.id);
8882
8882
  return /* @__PURE__ */ e(
8883
- oe.Option,
8883
+ re.Option,
8884
8884
  {
8885
8885
  value: G.id,
8886
8886
  active: ge,
@@ -8913,7 +8913,7 @@ const Ae = ({
8913
8913
  ),
8914
8914
  /* @__PURE__ */ e(T, { size: "sm", fw: 400, truncate: !0, children: G.name }),
8915
8915
  ge && /* @__PURE__ */ e(
8916
- rn,
8916
+ on,
8917
8917
  {
8918
8918
  size: 16,
8919
8919
  color: "var(--mantine-color-blue-6)"
@@ -8938,7 +8938,7 @@ const Ae = ({
8938
8938
  }
8939
8939
  ),
8940
8940
  f && I && !h && /* @__PURE__ */ e("div", { ref: J, style: { height: "20px" } }),
8941
- re.length === 0 && !k && !h && /* @__PURE__ */ e(
8941
+ oe.length === 0 && !k && !h && /* @__PURE__ */ e(
8942
8942
  b,
8943
8943
  {
8944
8944
  style: {
@@ -8960,19 +8960,21 @@ const Ae = ({
8960
8960
  );
8961
8961
  }, At = ({
8962
8962
  label: n,
8963
- icon: r,
8963
+ icon: o,
8964
8964
  value: t,
8965
- onChange: o,
8966
- editable: i = !1,
8967
- placeholder: a,
8968
- disabled: c = !1,
8969
- minRows: s = 1,
8970
- maxRows: l,
8971
- autosize: d = !0
8965
+ onChange: r,
8966
+ onDraftChange: i,
8967
+ onFocusChange: a,
8968
+ editable: c = !1,
8969
+ placeholder: s,
8970
+ disabled: l = !1,
8971
+ minRows: d = 1,
8972
+ maxRows: u,
8973
+ autosize: p = !0
8972
8974
  }) => {
8973
- const [u, p] = O(!1), [f, I] = O(!1), h = {
8975
+ const [f, I] = O(!1), [h, g] = O(!1), m = {
8974
8976
  wrapper: {
8975
- ...!d && {
8977
+ ...!p && {
8976
8978
  height: "40px",
8977
8979
  minHeight: "40px",
8978
8980
  boxSizing: "border-box"
@@ -8980,28 +8982,28 @@ const Ae = ({
8980
8982
  borderRadius: "var(--mantine-radius-md)"
8981
8983
  },
8982
8984
  input: {
8983
- backgroundColor: u || f ? "var(--mantine-color-gray-0)" : "transparent",
8985
+ backgroundColor: f || h ? "var(--mantine-color-gray-0)" : "transparent",
8984
8986
  color: "var(--mantine-color-gray-9)",
8985
- border: u ? "1px solid var(--mantine-color-gray-2)" : "1px solid transparent",
8987
+ border: f ? "1px solid var(--mantine-color-gray-2)" : "1px solid transparent",
8986
8988
  borderRadius: "var(--mantine-radius-md)",
8987
8989
  width: "100%",
8988
8990
  cursor: "pointer",
8989
- ...!d && {
8991
+ ...!p && {
8990
8992
  height: "40px",
8991
8993
  minHeight: "40px",
8992
8994
  boxSizing: "border-box"
8993
8995
  },
8994
8996
  padding: "8px 14px",
8995
- lineHeight: d ? "1.5" : "24px",
8997
+ lineHeight: p ? "1.5" : "24px",
8996
8998
  fontWeight: 450
8997
8999
  }
8998
9000
  };
8999
9001
  return /* @__PURE__ */ e(
9000
9002
  Ae,
9001
9003
  {
9002
- editable: i,
9004
+ editable: c,
9003
9005
  label: n,
9004
- icon: r,
9006
+ icon: o,
9005
9007
  value: /* @__PURE__ */ e(
9006
9008
  b,
9007
9009
  {
@@ -9016,7 +9018,7 @@ const Ae = ({
9016
9018
  c: t ? void 0 : "dimmed",
9017
9019
  fw: 400,
9018
9020
  style: { whiteSpace: "pre-wrap", wordBreak: "break-word" },
9019
- children: t || a || "—"
9021
+ children: t || s || "—"
9020
9022
  }
9021
9023
  )
9022
9024
  }
@@ -9026,27 +9028,33 @@ const Ae = ({
9026
9028
  {
9027
9029
  w: "100%",
9028
9030
  style: {
9029
- boxShadow: u ? "var(--mantine-shadow-sm)" : "none",
9031
+ boxShadow: f ? "var(--mantine-shadow-sm)" : "none",
9030
9032
  borderRadius: "var(--mantine-radius-md)"
9031
9033
  },
9032
9034
  children: /* @__PURE__ */ e(
9033
9035
  Sn,
9034
9036
  {
9035
9037
  value: t,
9036
- onChange: (g) => o == null ? void 0 : o(g.target.value),
9037
- onFocus: () => p(!0),
9038
- onBlur: () => p(!1),
9039
- onMouseEnter: () => I(!0),
9040
- onMouseLeave: () => I(!1),
9041
- placeholder: a,
9042
- disabled: c,
9038
+ onChange: (M) => {
9039
+ i == null || i(M.target.value);
9040
+ },
9041
+ onFocus: () => {
9042
+ I(!0), a == null || a(!0);
9043
+ },
9044
+ onBlur: (M) => {
9045
+ I(!1), a == null || a(!1), r == null || r(M.target.value);
9046
+ },
9047
+ onMouseEnter: () => g(!0),
9048
+ onMouseLeave: () => g(!1),
9049
+ placeholder: s,
9050
+ disabled: l,
9043
9051
  size: "sm",
9044
9052
  radius: "md",
9045
9053
  fw: 400,
9046
- minRows: u ? 1 : s,
9047
- maxRows: l,
9048
- autosize: d,
9049
- styles: { ...h }
9054
+ minRows: f ? 1 : d,
9055
+ maxRows: u,
9056
+ autosize: p,
9057
+ styles: { ...m }
9050
9058
  }
9051
9059
  )
9052
9060
  }
@@ -9055,15 +9063,15 @@ const Ae = ({
9055
9063
  );
9056
9064
  }, $i = ({
9057
9065
  opened: n,
9058
- onClose: r,
9066
+ onClose: o,
9059
9067
  children: t,
9060
- ...o
9068
+ ...r
9061
9069
  }) => /* @__PURE__ */ v(
9062
9070
  Cn,
9063
9071
  {
9064
9072
  withCloseButton: !1,
9065
9073
  opened: n,
9066
- onClose: r,
9074
+ onClose: o,
9067
9075
  size: "70%",
9068
9076
  centered: !0,
9069
9077
  overlayProps: {
@@ -9075,13 +9083,13 @@ const Ae = ({
9075
9083
  }
9076
9084
  },
9077
9085
  padding: "md",
9078
- ...o,
9086
+ ...r,
9079
9087
  children: [
9080
9088
  /* @__PURE__ */ v(A, { justify: "space-between", wrap: "nowrap", children: [
9081
9089
  /* @__PURE__ */ e(A, { justify: "space-between", wrap: "nowrap", gap: "xs", children: /* @__PURE__ */ e(he, { icon: Rn, size: "md", onClick: () => {
9082
9090
  } }) }),
9083
9091
  /* @__PURE__ */ v(A, { justify: "space-between", gap: "xs", children: [
9084
- /* @__PURE__ */ e(he, { icon: bo, size: "md", onClick: () => {
9092
+ /* @__PURE__ */ e(he, { icon: wr, size: "md", onClick: () => {
9085
9093
  } }),
9086
9094
  /* @__PURE__ */ e(he, { icon: Pe, size: "md", onClick: () => {
9087
9095
  } })
@@ -9092,9 +9100,9 @@ const Ae = ({
9092
9100
  }
9093
9101
  ), li = ({
9094
9102
  opened: n,
9095
- onClose: r,
9103
+ onClose: o,
9096
9104
  editable: t,
9097
- content: o,
9105
+ content: r,
9098
9106
  position: i = "right",
9099
9107
  size: a = "xl",
9100
9108
  onMaximize: c,
@@ -9112,7 +9120,7 @@ const Ae = ({
9112
9120
  On,
9113
9121
  {
9114
9122
  opened: n,
9115
- onClose: r,
9123
+ onClose: o,
9116
9124
  position: i,
9117
9125
  size: a,
9118
9126
  padding: "md",
@@ -9124,7 +9132,7 @@ const Ae = ({
9124
9132
  children: [
9125
9133
  /* @__PURE__ */ v(A, { justify: "space-between", wrap: "nowrap", children: [
9126
9134
  /* @__PURE__ */ v(A, { justify: "space-between", wrap: "nowrap", gap: "xs", children: [
9127
- /* @__PURE__ */ e(he, { icon: Ne, size: "md", onClick: r }),
9135
+ /* @__PURE__ */ e(he, { icon: Ne, size: "md", onClick: o }),
9128
9136
  /* @__PURE__ */ e(
9129
9137
  he,
9130
9138
  {
@@ -9252,7 +9260,7 @@ const Ae = ({
9252
9260
  )
9253
9261
  }
9254
9262
  ) }),
9255
- /* @__PURE__ */ e(oo, { in: u, children: /* @__PURE__ */ e(W, { gap: "sm", mt: "sm", children: (z = d == null ? void 0 : d.hiddenProperties) == null ? void 0 : z.map((k, C) => /* @__PURE__ */ e(b, { children: k }, C)) }) }),
9263
+ /* @__PURE__ */ e(rr, { in: u, children: /* @__PURE__ */ e(W, { gap: "sm", mt: "sm", children: (z = d == null ? void 0 : d.hiddenProperties) == null ? void 0 : z.map((k, C) => /* @__PURE__ */ e(b, { children: k }, C)) }) }),
9256
9264
  f && u && /* @__PURE__ */ e(
9257
9265
  b,
9258
9266
  {
@@ -9288,7 +9296,7 @@ const Ae = ({
9288
9296
  )
9289
9297
  }
9290
9298
  ),
9291
- o
9299
+ r
9292
9300
  ] })
9293
9301
  ]
9294
9302
  }
@@ -9312,16 +9320,16 @@ const Ae = ({
9312
9320
  ), di = ({
9313
9321
  children: n
9314
9322
  }) => {
9315
- const [r, { toggle: t, open: o, close: i }] = Xe(!0), [
9323
+ const [o, { toggle: t, open: r, close: i }] = Xe(!0), [
9316
9324
  a,
9317
9325
  { toggle: c, open: s, close: l }
9318
9326
  ] = Xe(!1), [
9319
9327
  d,
9320
9328
  { open: u, close: p }
9321
9329
  ] = Xe(!1), [f, I] = O(300), [h, g] = O(500), m = {
9322
- opened: r,
9330
+ opened: o,
9323
9331
  toggle: t,
9324
- open: o,
9332
+ open: r,
9325
9333
  close: i,
9326
9334
  asideOpened: a,
9327
9335
  toggleAside: c,
@@ -9343,9 +9351,9 @@ const Ae = ({
9343
9351
  return n;
9344
9352
  }, ui = ({
9345
9353
  header: n,
9346
- navbar: r,
9354
+ navbar: o,
9347
9355
  aside: t,
9348
- children: o,
9356
+ children: r,
9349
9357
  ...i
9350
9358
  }) => {
9351
9359
  const {
@@ -9382,7 +9390,7 @@ const Ae = ({
9382
9390
  width: a ? s : 0,
9383
9391
  border: "none"
9384
9392
  },
9385
- children: r
9393
+ children: o
9386
9394
  }
9387
9395
  ),
9388
9396
  /* @__PURE__ */ e(
@@ -9395,38 +9403,38 @@ const Ae = ({
9395
9403
  children: t
9396
9404
  }
9397
9405
  ),
9398
- /* @__PURE__ */ e(We.Main, { children: o })
9406
+ /* @__PURE__ */ e(We.Main, { children: r })
9399
9407
  ]
9400
9408
  }
9401
9409
  );
9402
- }, fi = ({ items: n, selectedId: r, onSelect: t }) => /* @__PURE__ */ e(W, { gap: 0, children: n.map((o) => {
9410
+ }, fi = ({ items: n, selectedId: o, onSelect: t }) => /* @__PURE__ */ e(W, { gap: 0, children: n.map((r) => {
9403
9411
  var i;
9404
9412
  return /* @__PURE__ */ e(
9405
9413
  Hn,
9406
9414
  {
9407
- label: o.label,
9408
- isActive: r === o.id,
9409
- noChild: !o.children || o.children.length === 0,
9410
- onClick: () => (!o.children || o.children.length === 0) && (t == null ? void 0 : t(o.id)),
9411
- children: (i = o.children) == null ? void 0 : i.map((a) => /* @__PURE__ */ e(
9415
+ label: r.label,
9416
+ isActive: o === r.id,
9417
+ noChild: !r.children || r.children.length === 0,
9418
+ onClick: () => (!r.children || r.children.length === 0) && (t == null ? void 0 : t(r.id)),
9419
+ children: (i = r.children) == null ? void 0 : i.map((a) => /* @__PURE__ */ e(
9412
9420
  Hn,
9413
9421
  {
9414
9422
  label: a.label,
9415
9423
  noChild: !0,
9416
9424
  level: 4,
9417
- isActive: r === a.id,
9425
+ isActive: o === a.id,
9418
9426
  onClick: () => t == null ? void 0 : t(a.id)
9419
9427
  },
9420
9428
  a.id
9421
9429
  ))
9422
9430
  },
9423
- o.id
9431
+ r.id
9424
9432
  );
9425
9433
  }) }), hi = ({
9426
9434
  items: n,
9427
- selectedId: r,
9435
+ selectedId: o,
9428
9436
  onSelect: t,
9429
- headerLeft: o,
9437
+ headerLeft: r,
9430
9438
  headerRight: i,
9431
9439
  renderPreview: a,
9432
9440
  renderAside: c,
@@ -9435,7 +9443,7 @@ const Ae = ({
9435
9443
  selectedTopNavId: d,
9436
9444
  onTopNavSelect: u
9437
9445
  }) => {
9438
- const { opened: p, toggle: f } = jt(), [I, h] = O(r), g = r ?? I;
9446
+ const { opened: p, toggle: f } = jt(), [I, h] = O(o), g = o ?? I;
9439
9447
  return /* @__PURE__ */ e(
9440
9448
  ui,
9441
9449
  {
@@ -9490,7 +9498,7 @@ const Ae = ({
9490
9498
  items: n,
9491
9499
  selectedId: g,
9492
9500
  onSelect: (w) => {
9493
- t == null || t(w), r === void 0 && h(w);
9501
+ t == null || t(w), o === void 0 && h(w);
9494
9502
  }
9495
9503
  }
9496
9504
  )
@@ -9522,7 +9530,7 @@ const Ae = ({
9522
9530
  onClick: f
9523
9531
  }
9524
9532
  ),
9525
- o ?? /* @__PURE__ */ e(
9533
+ r ?? /* @__PURE__ */ e(
9526
9534
  En,
9527
9535
  {
9528
9536
  label: g || "Select a topic",
@@ -9558,44 +9566,44 @@ const Ae = ({
9558
9566
  )
9559
9567
  }
9560
9568
  );
9561
- }, Pi = (n) => /* @__PURE__ */ e(di, { children: /* @__PURE__ */ e(hi, { ...n }) }), Ft = (n, r) => {
9569
+ }, Pi = (n) => /* @__PURE__ */ e(di, { children: /* @__PURE__ */ e(hi, { ...n }) }), Ft = (n, o) => {
9562
9570
  const t = j(
9563
9571
  (a) => {
9564
9572
  const c = Array.isArray(a) ? a : [a];
9565
9573
  n.onUserIdsChange(c);
9566
9574
  },
9567
9575
  [n]
9568
- ), o = j(
9576
+ ), r = j(
9569
9577
  (a) => {
9570
- const c = Array.isArray(a) ? a : [a], s = r.members.filter(
9578
+ const c = Array.isArray(a) ? a : [a], s = o.members.filter(
9571
9579
  (I) => c.includes(I.id)
9572
9580
  ), l = s.map((I) => I.id), d = c.filter(
9573
9581
  (I) => !l.includes(I)
9574
9582
  ), p = [
9575
- ...r.members,
9583
+ ...o.members,
9576
9584
  ...n.users
9577
9585
  ].filter(
9578
9586
  (I) => d.includes(I.id)
9579
9587
  ), f = [...s, ...p];
9580
- r.onMembersChange(f);
9588
+ o.onMembersChange(f);
9581
9589
  },
9582
- [r, n]
9590
+ [o, n]
9583
9591
  );
9584
9592
  return {
9585
9593
  availableMembersUsers: K(() => {
9586
- const a = [...r.members];
9594
+ const a = [...o.members];
9587
9595
  return n.users.forEach((c) => {
9588
9596
  a.find((s) => s.id === c.id) || a.push(c);
9589
9597
  }), a;
9590
- }, [r.members, n.users]),
9598
+ }, [o.members, n.users]),
9591
9599
  handleResponsibleChange: t,
9592
- handleMembersChange: o
9600
+ handleMembersChange: r
9593
9601
  };
9594
9602
  }, Vi = ({
9595
9603
  opened: n,
9596
- onClose: r,
9604
+ onClose: o,
9597
9605
  onMaximize: t,
9598
- editable: o,
9606
+ editable: r,
9599
9607
  name: i,
9600
9608
  onNameChange: a,
9601
9609
  avatar: c,
@@ -9618,7 +9626,7 @@ const Ae = ({
9618
9626
  icon: st,
9619
9627
  value: p.description,
9620
9628
  onChange: p.onDescriptionChange,
9621
- editable: o
9629
+ editable: r
9622
9630
  },
9623
9631
  "description"
9624
9632
  ),
@@ -9637,7 +9645,7 @@ const Ae = ({
9637
9645
  Fe,
9638
9646
  {
9639
9647
  multiple: !1,
9640
- editable: o,
9648
+ editable: r,
9641
9649
  label: "Team Leader",
9642
9650
  icon: Dn,
9643
9651
  value: d.userIds.length > 0 ? d.userIds[0] : void 0,
@@ -9653,7 +9661,7 @@ const Ae = ({
9653
9661
  Fe,
9654
9662
  {
9655
9663
  multiple: !0,
9656
- editable: o,
9664
+ editable: r,
9657
9665
  label: "Team Members",
9658
9666
  icon: dt,
9659
9667
  value: u.members.map((m) => m.id),
@@ -9669,7 +9677,7 @@ const Ae = ({
9669
9677
  [
9670
9678
  p.description,
9671
9679
  p.onDescriptionChange,
9672
- o,
9680
+ r,
9673
9681
  l,
9674
9682
  d.handleLoadMore,
9675
9683
  d.handleSearch,
@@ -9689,9 +9697,9 @@ const Ae = ({
9689
9697
  li,
9690
9698
  {
9691
9699
  opened: n,
9692
- onClose: r,
9700
+ onClose: o,
9693
9701
  onMaximize: t,
9694
- editable: o,
9702
+ editable: r,
9695
9703
  headerProps: {
9696
9704
  avatar: c,
9697
9705
  onAvatarChange: (m) => s == null ? void 0 : s(m),
@@ -9706,9 +9714,9 @@ const Ae = ({
9706
9714
  );
9707
9715
  }, pi = ({
9708
9716
  isSidebarOpen: n,
9709
- fullWidth: r = !1,
9717
+ fullWidth: o = !1,
9710
9718
  editable: t,
9711
- rightNavigation: o,
9719
+ rightNavigation: r,
9712
9720
  headerProps: i,
9713
9721
  properties: a,
9714
9722
  children: c,
@@ -9716,7 +9724,7 @@ const Ae = ({
9716
9724
  }) => {
9717
9725
  const [l, d] = O(
9718
9726
  i == null ? void 0 : i.avatar
9719
- ), [u, p] = O(!1), [f, I] = O(!1), h = r ? "0" : {
9727
+ ), [u, p] = O(!1), [f, I] = O(!1), h = o ? "0" : {
9720
9728
  base: "1rem",
9721
9729
  sm: "2rem",
9722
9730
  md: "4rem",
@@ -9746,7 +9754,7 @@ const Ae = ({
9746
9754
  /* @__PURE__ */ e(En, { label: i.title, onClick: () => {
9747
9755
  } })
9748
9756
  ] }),
9749
- /* @__PURE__ */ e(b, { children: o })
9757
+ /* @__PURE__ */ e(b, { children: r })
9750
9758
  ] }),
9751
9759
  /* @__PURE__ */ e(b, { px: h, w: "100%", maw: { base: "100%", md: "80vw" }, mx: "auto", children: /* @__PURE__ */ v(W, { gap: "md", children: [
9752
9760
  i && /* @__PURE__ */ v(W, { gap: "md", children: [
@@ -9811,7 +9819,7 @@ const Ae = ({
9811
9819
  }
9812
9820
  ),
9813
9821
  /* @__PURE__ */ e(b, { children: t ? /* @__PURE__ */ e(
9814
- Po,
9822
+ Hr,
9815
9823
  {
9816
9824
  value: i.title || "",
9817
9825
  onChange: (y) => {
@@ -9840,16 +9848,16 @@ const Ae = ({
9840
9848
  ] });
9841
9849
  }, mi = ({
9842
9850
  editable: n,
9843
- owner: r,
9851
+ owner: o,
9844
9852
  descriptionProps: t,
9845
- responsibleProps: o,
9853
+ responsibleProps: r,
9846
9854
  membersProps: i
9847
9855
  }) => {
9848
9856
  const {
9849
9857
  availableMembersUsers: a,
9850
9858
  handleResponsibleChange: c,
9851
9859
  handleMembersChange: s
9852
- } = Ft(o, i);
9860
+ } = Ft(r, i);
9853
9861
  return /* @__PURE__ */ v(W, { gap: "sm", children: [
9854
9862
  /* @__PURE__ */ e(
9855
9863
  At,
@@ -9868,8 +9876,8 @@ const Ae = ({
9868
9876
  editable: !1,
9869
9877
  label: "Team Owner",
9870
9878
  icon: lt,
9871
- value: r.id,
9872
- users: [r]
9879
+ value: o.id,
9880
+ users: [o]
9873
9881
  },
9874
9882
  "owner"
9875
9883
  ),
@@ -9880,12 +9888,12 @@ const Ae = ({
9880
9888
  editable: n,
9881
9889
  label: "Team Leader",
9882
9890
  icon: Dn,
9883
- value: o.userIds.length > 0 ? o.userIds[0] : void 0,
9884
- users: o.users,
9891
+ value: r.userIds.length > 0 ? r.userIds[0] : void 0,
9892
+ users: r.users,
9885
9893
  onChange: c,
9886
- onSearch: o.handleSearch,
9887
- onLoadMore: o.handleLoadMore,
9888
- hasMore: o.hasMore
9894
+ onSearch: r.handleSearch,
9895
+ onLoadMore: r.handleLoadMore,
9896
+ hasMore: r.hasMore
9889
9897
  },
9890
9898
  "leader"
9891
9899
  ),
@@ -9908,9 +9916,9 @@ const Ae = ({
9908
9916
  ] });
9909
9917
  }, _i = ({
9910
9918
  editable: n,
9911
- headerProps: r,
9919
+ headerProps: o,
9912
9920
  rightNavigation: t,
9913
- properties: o,
9921
+ properties: r,
9914
9922
  children: i,
9915
9923
  footer: a
9916
9924
  }) => /* @__PURE__ */ e(
@@ -9919,26 +9927,26 @@ const Ae = ({
9919
9927
  isSidebarOpen: !0,
9920
9928
  editable: n,
9921
9929
  rightNavigation: t,
9922
- headerProps: r,
9923
- properties: /* @__PURE__ */ e(mi, { ...o }),
9930
+ headerProps: o,
9931
+ properties: /* @__PURE__ */ e(mi, { ...r }),
9924
9932
  children: i,
9925
9933
  footer: a
9926
9934
  }
9927
9935
  ), Gi = ({
9928
9936
  title: n,
9929
- properties: r,
9937
+ properties: o,
9930
9938
  children: t
9931
9939
  }) => /* @__PURE__ */ v(W, { gap: "sm", p: "3rem", children: [
9932
9940
  /* @__PURE__ */ e(T, { size: "2.5rem", fw: 600, children: n }),
9933
9941
  /* @__PURE__ */ e(Ee, { h: "md" }),
9934
- /* @__PURE__ */ e(W, { gap: "xs", children: r }),
9942
+ /* @__PURE__ */ e(W, { gap: "xs", children: o }),
9935
9943
  /* @__PURE__ */ e(Ee, { h: "md" }),
9936
9944
  /* @__PURE__ */ e(b, { children: t })
9937
9945
  ] }), Qi = ({
9938
9946
  opened: n,
9939
- onClose: r,
9947
+ onClose: o,
9940
9948
  position: t,
9941
- size: o,
9949
+ size: r,
9942
9950
  onMaximize: i,
9943
9951
  editable: a,
9944
9952
  rightNavigation: c,
@@ -9959,9 +9967,9 @@ const Ae = ({
9959
9967
  On,
9960
9968
  {
9961
9969
  opened: n,
9962
- onClose: r,
9970
+ onClose: o,
9963
9971
  position: t,
9964
- size: o,
9972
+ size: r,
9965
9973
  padding: "md",
9966
9974
  withCloseButton: !1,
9967
9975
  overlayProps: {
@@ -9972,7 +9980,7 @@ const Ae = ({
9972
9980
  children: /* @__PURE__ */ v(W, { gap: "md", children: [
9973
9981
  /* @__PURE__ */ v(A, { justify: "space-between", children: [
9974
9982
  /* @__PURE__ */ v(A, { gap: "xs", wrap: "nowrap", children: [
9975
- /* @__PURE__ */ e(Be, { icon: Ne, onClick: r }),
9983
+ /* @__PURE__ */ e(Be, { icon: Ne, onClick: o }),
9976
9984
  /* @__PURE__ */ e(Be, { icon: Rn, onClick: () => i() })
9977
9985
  ] }),
9978
9986
  " ",
@@ -10072,7 +10080,7 @@ const Ae = ({
10072
10080
  ] })
10073
10081
  }
10074
10082
  );
10075
- }, gi = ro({
10083
+ }, gi = or({
10076
10084
  /** Put your mantine theme override here */
10077
10085
  primaryColor: "blue",
10078
10086
  fontFamily: "Inter, system-ui, Avenir, Helvetica, Arial, sans-serif",
@@ -10113,11 +10121,11 @@ const Ae = ({
10113
10121
  });
10114
10122
  function Yi({
10115
10123
  children: n,
10116
- theme: r
10124
+ theme: o
10117
10125
  }) {
10118
- return /* @__PURE__ */ v(io, { theme: r || gi, children: [
10119
- /* @__PURE__ */ e(Co, {}),
10120
- /* @__PURE__ */ e(Oo, { children: /* @__PURE__ */ e(zo, { settings: { firstDayOfWeek: 0 }, children: n }) })
10126
+ return /* @__PURE__ */ v(ir, { theme: o || gi, children: [
10127
+ /* @__PURE__ */ e(kr, {}),
10128
+ /* @__PURE__ */ e(Cr, { children: /* @__PURE__ */ e(Or, { settings: { firstDayOfWeek: 0 }, children: n }) })
10121
10129
  ] });
10122
10130
  }
10123
10131
  export {
@@ -10131,20 +10139,20 @@ export {
10131
10139
  $i as CenterPeek,
10132
10140
  Pi as DocsTemplate,
10133
10141
  an as EditableText,
10134
- Po as EditableTextarea,
10135
- Ro as EmojiAvatar,
10136
- Vo as ExpandableSearch,
10142
+ Hr as EditableTextarea,
10143
+ Dr as EmojiAvatar,
10144
+ Pr as ExpandableSearch,
10137
10145
  Ri as FilterDropdown,
10138
10146
  Bn as FilterDropdownButton,
10139
10147
  An as FilterDropdownFilters,
10140
10148
  Hi as FullPage,
10141
- dr as GenericTable,
10142
- jo as IconAvatar,
10143
- Uo as ImageAvatar,
10149
+ lo as GenericTable,
10150
+ Lr as IconAvatar,
10151
+ Fr as ImageAvatar,
10144
10152
  tn as InvitedUserCard,
10145
10153
  Ni as LinkProperty,
10146
- Ho as Logo,
10147
- Jr as Matrix,
10154
+ $r as Logo,
10155
+ Jo as Matrix,
10148
10156
  nn as Menu,
10149
10157
  Bi as ModalSettings,
10150
10158
  ht as NavButton,
@@ -10156,11 +10164,11 @@ export {
10156
10164
  pi as PageLayout,
10157
10165
  Ae as PageProperty,
10158
10166
  bn as PlaceholderAvatar,
10159
- tr as PopoverItem,
10167
+ no as PopoverItem,
10160
10168
  Ln as PopoverSelector,
10161
10169
  Fe as SelectUserProperty,
10162
10170
  Ti as ShareButton,
10163
- Tr as ShareMenu,
10171
+ To as ShareMenu,
10164
10172
  Ei as ShareModal,
10165
10173
  li as SidePeek,
10166
10174
  Qi as SidePeekLayout,
@@ -10173,8 +10181,8 @@ export {
10173
10181
  Yi as ThemeProvider,
10174
10182
  In as UserChip,
10175
10183
  Fi as WorkspaceSelector,
10176
- Nr as WorkspaceSelectorItem,
10177
- Wo as getInitialsFromName,
10184
+ No as WorkspaceSelectorItem,
10185
+ Nr as getInitialsFromName,
10178
10186
  gi as theme,
10179
10187
  jt as useAppLayout,
10180
10188
  ji as useNavbar,