obeyaka-ui 0.1.37 → 0.1.38
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 +527 -532
- package/dist/index.js +2 -2
- package/dist/types/components/molecules/NavLink/NavLink.d.ts.map +1 -1
- package/dist/types/components/molecules/NavLink/NavLink.types.d.ts +0 -2
- package/dist/types/components/molecules/NavLink/NavLink.types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as w, Fragment as he } from "react/jsx-runtime";
|
|
2
|
-
import Me, { useState as O, useCallback as
|
|
3
|
-
import { ActionIcon as le, Tooltip as Ue, Box as x, Skeleton as xn, Loader as ke, Text as
|
|
2
|
+
import Me, { useState as O, useCallback as L, useMemo as Z, memo as Cn, useRef as Q, useEffect as _, createContext as kn, useContext as Sn, useLayoutEffect as Jn, Suspense as oo, forwardRef as ro, useImperativeHandle as io } from "react";
|
|
3
|
+
import { ActionIcon as le, Tooltip as Ue, Box as x, Skeleton as xn, Loader as ke, Text as E, Group as F, InputWrapper as et, Input as ao, Textarea as On, TextInput as zn, useCombobox as rn, Combobox as oe, Indicator as nt, MenuItem as tt, Menu as me, UnstyledButton as co, FloatingIndicator as so, Stack as $, Pill as wn, Popover as Fe, LoadingOverlay as lo, Button as ce, Table as be, Badge as Je, Tabs as fe, ScrollArea as Se, Flex as ot, Avatar as rt, TagsInput as uo, Radio as fo, Space as Be, Modal as Rn, FocusTrap as it, Drawer as Dn, Alert as ho, Anchor as at, PillsInput as Hn, Collapse as po, AppShell as He, createTheme as mo, MantineProvider as go } from "@mantine/core";
|
|
4
4
|
import { IconQuestionMark as Pe, IconSearch as Tn, IconX as ct, IconFilter as st, IconFilterOff as Io, IconChevronDown as Oe, IconChevronRight as en, IconPlus as Te, IconDots as _e, IconCheck as an, IconChevronUp as Ve, IconClock as lt, IconMoodSmile as Xe, IconFlag as yo, IconHeart as vo, IconBulb as xo, IconPlane as Wn, IconBallBasketball as wo, IconApple as bo, IconTrees as dt, IconUser as Bn, IconBriefcase as Mo, IconDeviceDesktop as Co, IconCircle as ko, IconTool as So, IconMessage as Oo, IconPhoto as Pn, IconArchive as bn, IconBell as zo, IconInbox as Ro, IconChecklist as In, IconChevronsLeft as ut, IconPointFilled as Do, IconPoint as To, IconChevronLeft as _n, IconMaximize as En, IconStar as Bo, IconChevronsRight as $e, IconMoodSmileFilled as An, IconAlignLeft as ft, IconUserCircle as ht, IconUsers as pt, IconMenu2 as Vn } from "@tabler/icons-react";
|
|
5
5
|
import nn from "@emoji-mart/data";
|
|
6
6
|
import { init as Eo, SearchIndex as Ao } from "emoji-mart";
|
|
@@ -28,7 +28,7 @@ const pe = Me.memo(
|
|
|
28
28
|
onMouseLeave: I,
|
|
29
29
|
...m
|
|
30
30
|
}) => {
|
|
31
|
-
const [b, v] = O(!1), S =
|
|
31
|
+
const [b, v] = O(!1), S = L(() => {
|
|
32
32
|
l || d || (n == null || n(), console.log("Clicked"));
|
|
33
33
|
}, [l, d, n]), C = Z(() => ({
|
|
34
34
|
xs: 14,
|
|
@@ -42,14 +42,14 @@ const pe = Me.memo(
|
|
|
42
42
|
md: 2,
|
|
43
43
|
lg: 2,
|
|
44
44
|
xl: 2.5
|
|
45
|
-
})[a] || 2, [a]), k =
|
|
46
|
-
(
|
|
47
|
-
v(!0), h == null || h(
|
|
45
|
+
})[a] || 2, [a]), k = L(
|
|
46
|
+
(j) => {
|
|
47
|
+
v(!0), h == null || h(j);
|
|
48
48
|
},
|
|
49
49
|
[h]
|
|
50
|
-
), M =
|
|
51
|
-
(
|
|
52
|
-
v(!1), I == null || I(
|
|
50
|
+
), M = L(
|
|
51
|
+
(j) => {
|
|
52
|
+
v(!1), I == null || I(j);
|
|
53
53
|
},
|
|
54
54
|
[I]
|
|
55
55
|
), y = Z(() => {
|
|
@@ -57,17 +57,17 @@ const pe = Me.memo(
|
|
|
57
57
|
return c;
|
|
58
58
|
if (s === "transparent")
|
|
59
59
|
return b ? "var(--mantine-color-gray-2)" : "transparent";
|
|
60
|
-
}, [c, s, b]),
|
|
60
|
+
}, [c, s, b]), D = Z(() => t && o && b ? o : r, [t, o, b, r]), z = Z(
|
|
61
61
|
() => /* @__PURE__ */ e(
|
|
62
|
-
|
|
62
|
+
D,
|
|
63
63
|
{
|
|
64
64
|
size: C,
|
|
65
65
|
strokeWidth: R,
|
|
66
66
|
color: i
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
[
|
|
70
|
-
),
|
|
69
|
+
[D, C, R, i]
|
|
70
|
+
), T = /* @__PURE__ */ e(
|
|
71
71
|
le,
|
|
72
72
|
{
|
|
73
73
|
onClick: S,
|
|
@@ -87,7 +87,7 @@ const pe = Me.memo(
|
|
|
87
87
|
children: z
|
|
88
88
|
}
|
|
89
89
|
);
|
|
90
|
-
return u && !l && !d ? /* @__PURE__ */ e(Ue, { label: u, position: "top", withArrow: !0, children:
|
|
90
|
+
return u && !l && !d ? /* @__PURE__ */ e(Ue, { label: u, position: "top", withArrow: !0, children: T }) : T;
|
|
91
91
|
}
|
|
92
92
|
);
|
|
93
93
|
pe.displayName = "ActionButton";
|
|
@@ -234,7 +234,7 @@ const Po = async (n) => {
|
|
|
234
234
|
}
|
|
235
235
|
}, _o = (n) => n.replace(/^Icon/, "").replace(/([A-Z])/g, " $1").trim().toLowerCase().replace(/^./, (t) => t.toUpperCase()), mt = Cn(
|
|
236
236
|
({ iconName: n, onClick: r, size: t = 20 }) => {
|
|
237
|
-
const [o, i] = O(null), [a, s] = O(!0), c =
|
|
237
|
+
const [o, i] = O(null), [a, s] = O(!0), c = Q(null), l = Q(!0);
|
|
238
238
|
_(() => (l.current = !0, (async () => {
|
|
239
239
|
try {
|
|
240
240
|
const f = (await import("@tabler/icons-react"))[n];
|
|
@@ -746,7 +746,7 @@ const Vo = (n) => {
|
|
|
746
746
|
padding: "0px 10px",
|
|
747
747
|
cursor: "pointer"
|
|
748
748
|
},
|
|
749
|
-
children: /* @__PURE__ */ e(
|
|
749
|
+
children: /* @__PURE__ */ e(E, { fw: 500, fz: "sm", truncate: "end", c: "var(--mantine-color-gray-9)", children: n })
|
|
750
750
|
}
|
|
751
751
|
);
|
|
752
752
|
}, Xo = new URL("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTUiIGhlaWdodD0iNTYiIHZpZXdCb3g9IjAgMCA1NSA1NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMC43NUg1NVY1NS43NUgwVjAuNzVaIiBmaWxsPSIjRjZGNUY0Ii8+CjxwYXRoIGQ9Ik04LjgwMDI5IDM0LjYzQzguODAwMjkgMzQuMTQ0IDkuMTk0MjggMzMuNzUgOS42ODAyOSAzMy43NUgxOC45MjAzQzE5LjQwNjMgMzMuNzUgMTkuODAwMyAzNC4xNDQgMTkuODAwMyAzNC42M1Y0My44N0MxOS44MDAzIDQ0LjM1NiAxOS40MDYzIDQ0Ljc1IDE4LjkyMDMgNDQuNzVIOS42ODAyOUM5LjE5NDI4IDQ0Ljc1IDguODAwMjkgNDQuMzU2IDguODAwMjkgNDMuODdWMzQuNjNaIiBmaWxsPSIjRkZDQTAwIi8+CjxwYXRoIGQ9Ik0yMi4wMDAyIDIzLjYzQzIyLjAwMDIgMjMuMTQ0IDIyLjM5NDIgMjIuNzUgMjIuODgwMiAyMi43NUgzMi4xMjAyQzMyLjYwNjMgMjIuNzUgMzMuMDAwMiAyMy4xNDQgMzMuMDAwMiAyMy42M1Y0My44N0MzMy4wMDAyIDQ0LjM1NiAzMi42MDYzIDQ0Ljc1IDMyLjEyMDIgNDQuNzVIMjIuODgwMkMyMi4zOTQyIDQ0Ljc1IDIyLjAwMDIgNDQuMzU2IDIyLjAwMDIgNDMuODdWMjMuNjNaIiBmaWxsPSIjMzdDRTkxIi8+CjxwYXRoIGQ9Ik0zNS4yMDAyIDEyLjYzQzM1LjIwMDIgMTIuMTQ0IDM1LjU5NDIgMTEuNzUgMzYuMDgwMiAxMS43NUg0NS4zMjAyQzQ1LjgwNjIgMTEuNzUgNDYuMjAwMiAxMi4xNDQgNDYuMjAwMiAxMi42M1Y0My44N0M0Ni4yMDAyIDQ0LjM1NiA0NS44MDYyIDQ0Ljc1IDQ1LjMyMDIgNDQuNzVIMzYuMDgwMkMzNS41OTQyIDQ0Ljc1IDM1LjIwMDIgNDQuMzU2IDM1LjIwMDIgNDMuODdWMTIuNjNaIiBmaWxsPSIjRkIzNzU3Ii8+CjxwYXRoIGQ9Ik04LjgwMDA1IDE3LjI1QzguODAwMDUgMTQuMjEyNCAxMS4yNjI1IDExLjc1IDE0LjMgMTEuNzVDMTcuMzM3NiAxMS43NSAxOS44IDE0LjIxMjQgMTkuOCAxNy4yNUMxOS44IDIwLjI4NzYgMTcuMzM3NiAyMi43NSAxNC4zIDIyLjc1QzExLjI2MjUgMjIuNzUgOC44MDAwNSAyMC4yODc2IDguODAwMDUgMTcuMjVaIiBmaWxsPSIjMDA3MkZGIi8+Cjwvc3ZnPgo=", self.location).href, Ko = ({
|
|
@@ -806,7 +806,7 @@ const Vo = (n) => {
|
|
|
806
806
|
);
|
|
807
807
|
})(),
|
|
808
808
|
t && /* @__PURE__ */ e(
|
|
809
|
-
|
|
809
|
+
E,
|
|
810
810
|
{
|
|
811
811
|
size: l,
|
|
812
812
|
fw: 700,
|
|
@@ -842,7 +842,7 @@ const Vo = (n) => {
|
|
|
842
842
|
_(() => {
|
|
843
843
|
I(R);
|
|
844
844
|
}, [R, I]);
|
|
845
|
-
const M =
|
|
845
|
+
const M = Q(null), y = {
|
|
846
846
|
fontSize: "40px",
|
|
847
847
|
fontWeight: 700,
|
|
848
848
|
color: "var(--mantine-color-gray-9)",
|
|
@@ -855,45 +855,45 @@ const Vo = (n) => {
|
|
|
855
855
|
_(() => {
|
|
856
856
|
C(n);
|
|
857
857
|
}, [n]);
|
|
858
|
-
const
|
|
858
|
+
const D = () => {
|
|
859
859
|
a || (v(!0), g && M.current && M.current.select());
|
|
860
860
|
}, z = () => {
|
|
861
861
|
v(!1), S !== n && t(S);
|
|
862
|
-
},
|
|
862
|
+
}, T = (U) => {
|
|
863
863
|
C(U.target.value), o == null || o(U.target.value);
|
|
864
|
-
},
|
|
864
|
+
}, j = (U) => {
|
|
865
865
|
var K, W;
|
|
866
866
|
U.key === "Enter" ? (v(!1), t(S), (K = M.current) == null || K.blur()) : U.key === "Escape" && (C(n), v(!1), (W = M.current) == null || W.blur());
|
|
867
|
-
},
|
|
867
|
+
}, V = {
|
|
868
868
|
cursor: a ? "not-allowed" : "text"
|
|
869
|
-
},
|
|
869
|
+
}, q = {
|
|
870
870
|
backgroundColor: s === "gray" ? "var(--mantine-color-gray-0)" : s === "white" ? "var(--mantine-color-white)" : void 0,
|
|
871
871
|
borderColor: b && p ? f : void 0,
|
|
872
872
|
borderWidth: b && p ? "2px" : void 0,
|
|
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
|
+
}, G = () => h ? { ...q, ...y } : q;
|
|
876
876
|
return /* @__PURE__ */ e(et, { label: r, size: c, children: /* @__PURE__ */ e(
|
|
877
877
|
ao,
|
|
878
878
|
{
|
|
879
879
|
ref: M,
|
|
880
880
|
value: S,
|
|
881
|
-
onChange:
|
|
881
|
+
onChange: T,
|
|
882
882
|
onMouseEnter: () => k(!0),
|
|
883
883
|
onMouseLeave: () => k(!1),
|
|
884
|
-
onFocus:
|
|
884
|
+
onFocus: D,
|
|
885
885
|
onBlur: z,
|
|
886
|
-
onKeyDown:
|
|
886
|
+
onKeyDown: j,
|
|
887
887
|
placeholder: i,
|
|
888
888
|
disabled: a,
|
|
889
889
|
size: c,
|
|
890
890
|
fw: 500,
|
|
891
891
|
radius: l,
|
|
892
892
|
className: d,
|
|
893
|
-
style: { ...
|
|
893
|
+
style: { ...V, ...u },
|
|
894
894
|
styles: {
|
|
895
895
|
input: {
|
|
896
|
-
...
|
|
896
|
+
...G()
|
|
897
897
|
}
|
|
898
898
|
},
|
|
899
899
|
...m
|
|
@@ -922,32 +922,32 @@ const Vo = (n) => {
|
|
|
922
922
|
pageTitle: v = !1,
|
|
923
923
|
...S
|
|
924
924
|
}) => {
|
|
925
|
-
const [C, R] = O(!1), [k, M] = O(n), [y,
|
|
925
|
+
const [C, R] = O(!1), [k, M] = O(n), [y, D] = O(!1);
|
|
926
926
|
_(() => {
|
|
927
927
|
b(y);
|
|
928
928
|
}, [y, b]);
|
|
929
|
-
const z =
|
|
929
|
+
const z = Q(null);
|
|
930
930
|
_(() => {
|
|
931
931
|
M(n);
|
|
932
932
|
}, [n]);
|
|
933
|
-
const
|
|
934
|
-
const
|
|
935
|
-
|
|
933
|
+
const T = () => {
|
|
934
|
+
const H = z.current;
|
|
935
|
+
H && (H.style.height = "0px", H.style.minHeight = "0px", H.style.overflowY = "hidden", H.style.height = `${H.scrollHeight}px`);
|
|
936
936
|
};
|
|
937
937
|
_(() => {
|
|
938
|
-
m &&
|
|
938
|
+
m && T();
|
|
939
939
|
}, [m]), _(() => {
|
|
940
|
-
m &&
|
|
940
|
+
m && T();
|
|
941
941
|
}, [k, m]);
|
|
942
|
-
const
|
|
943
|
-
a || (R(!0), m && requestAnimationFrame(() =>
|
|
944
|
-
},
|
|
942
|
+
const j = () => {
|
|
943
|
+
a || (R(!0), m && requestAnimationFrame(() => T()), g && z.current && z.current.select());
|
|
944
|
+
}, V = () => {
|
|
945
945
|
R(!1), k !== n && t(k);
|
|
946
|
-
},
|
|
947
|
-
M(
|
|
948
|
-
},
|
|
949
|
-
var
|
|
950
|
-
|
|
946
|
+
}, q = (H) => {
|
|
947
|
+
M(H.target.value), o == null || o(H.target.value);
|
|
948
|
+
}, G = (H) => {
|
|
949
|
+
var X;
|
|
950
|
+
H.key === "Escape" && (M(n), R(!1), (X = z.current) == null || X.blur());
|
|
951
951
|
}, U = {
|
|
952
952
|
cursor: a ? "not-allowed" : "text"
|
|
953
953
|
}, K = {
|
|
@@ -981,12 +981,12 @@ const Vo = (n) => {
|
|
|
981
981
|
radius: "var(--mantine-radius-md)",
|
|
982
982
|
ref: z,
|
|
983
983
|
value: k,
|
|
984
|
-
onChange:
|
|
985
|
-
onMouseEnter: () =>
|
|
986
|
-
onMouseLeave: () =>
|
|
987
|
-
onFocus:
|
|
988
|
-
onBlur:
|
|
989
|
-
onKeyDown:
|
|
984
|
+
onChange: q,
|
|
985
|
+
onMouseEnter: () => D(!0),
|
|
986
|
+
onMouseLeave: () => D(!1),
|
|
987
|
+
onFocus: j,
|
|
988
|
+
onBlur: V,
|
|
989
|
+
onKeyDown: G,
|
|
990
990
|
placeholder: i,
|
|
991
991
|
disabled: a,
|
|
992
992
|
size: c,
|
|
@@ -1072,14 +1072,14 @@ const Vo = (n) => {
|
|
|
1072
1072
|
disabled: c = !1,
|
|
1073
1073
|
className: l
|
|
1074
1074
|
}) => {
|
|
1075
|
-
const [d, u] = O(!1), [p, f] = O(!1), [g, h] = O(t), I =
|
|
1075
|
+
const [d, u] = O(!1), [p, f] = O(!1), [g, h] = O(t), I = Q(null), m = Q(null);
|
|
1076
1076
|
_(() => {
|
|
1077
1077
|
h(t);
|
|
1078
1078
|
}, [t]), _(() => {
|
|
1079
1079
|
d && I.current && I.current.focus();
|
|
1080
1080
|
}, [d]), _(() => {
|
|
1081
|
-
const y = (
|
|
1082
|
-
m.current && !m.current.contains(
|
|
1081
|
+
const y = (D) => {
|
|
1082
|
+
m.current && !m.current.contains(D.target) && b();
|
|
1083
1083
|
};
|
|
1084
1084
|
if (d)
|
|
1085
1085
|
return document.addEventListener("mousedown", y), () => {
|
|
@@ -1093,8 +1093,8 @@ const Vo = (n) => {
|
|
|
1093
1093
|
}, v = () => {
|
|
1094
1094
|
c || u(!0);
|
|
1095
1095
|
}, S = (y) => {
|
|
1096
|
-
const
|
|
1097
|
-
h(
|
|
1096
|
+
const D = y.target.value;
|
|
1097
|
+
h(D), o == null || o(D);
|
|
1098
1098
|
}, C = (y) => {
|
|
1099
1099
|
y.key === "Enter" && (i == null || i(g)), y.key === "Escape" && b();
|
|
1100
1100
|
}, R = () => {
|
|
@@ -1771,7 +1771,7 @@ const Vo = (n) => {
|
|
|
1771
1771
|
children: t,
|
|
1772
1772
|
...o
|
|
1773
1773
|
}) => {
|
|
1774
|
-
const i =
|
|
1774
|
+
const i = Q(null), [a, s] = O(0);
|
|
1775
1775
|
return _(() => {
|
|
1776
1776
|
i.current && s(i.current.offsetWidth);
|
|
1777
1777
|
}, [n]), /* @__PURE__ */ w(me, { ...o, children: [
|
|
@@ -1831,49 +1831,49 @@ const Vo = (n) => {
|
|
|
1831
1831
|
children: s
|
|
1832
1832
|
}) => {
|
|
1833
1833
|
var M;
|
|
1834
|
-
const [c, l] = O(null), [d, u] = O({}), [p, f] = O(t ?? ((M = n[0]) == null ? void 0 : M.id)), g = r !== void 0, h =
|
|
1835
|
-
(y,
|
|
1834
|
+
const [c, l] = O(null), [d, u] = O({}), [p, f] = O(t ?? ((M = n[0]) == null ? void 0 : M.id)), g = r !== void 0, h = Q(/* @__PURE__ */ new Map()), I = L(
|
|
1835
|
+
(y, D) => {
|
|
1836
1836
|
u((z) => {
|
|
1837
|
-
if (
|
|
1838
|
-
return z[y] ===
|
|
1837
|
+
if (D)
|
|
1838
|
+
return z[y] === D ? z : { ...z, [y]: D };
|
|
1839
1839
|
if (!(y in z))
|
|
1840
1840
|
return z;
|
|
1841
|
-
const
|
|
1842
|
-
return delete
|
|
1841
|
+
const T = { ...z };
|
|
1842
|
+
return delete T[y], T;
|
|
1843
1843
|
});
|
|
1844
1844
|
},
|
|
1845
1845
|
[]
|
|
1846
|
-
), m =
|
|
1847
|
-
(y) => (h.current.has(y) || h.current.set(y, (
|
|
1848
|
-
I(y,
|
|
1846
|
+
), m = L(
|
|
1847
|
+
(y) => (h.current.has(y) || h.current.set(y, (D) => {
|
|
1848
|
+
I(y, D);
|
|
1849
1849
|
}), h.current.get(y)),
|
|
1850
1850
|
[I]
|
|
1851
1851
|
);
|
|
1852
1852
|
_(() => {
|
|
1853
|
-
const y = new Set(n.map((
|
|
1854
|
-
h.current.forEach((
|
|
1853
|
+
const y = new Set(n.map((D) => D.id));
|
|
1854
|
+
h.current.forEach((D, z) => {
|
|
1855
1855
|
y.has(z) || h.current.delete(z);
|
|
1856
|
-
}), u((
|
|
1857
|
-
if (!Object.keys(
|
|
1858
|
-
return
|
|
1859
|
-
const
|
|
1860
|
-
return Object.entries(
|
|
1861
|
-
y.has(
|
|
1862
|
-
}),
|
|
1856
|
+
}), u((D) => {
|
|
1857
|
+
if (!Object.keys(D).some((j) => !y.has(j)))
|
|
1858
|
+
return D;
|
|
1859
|
+
const T = {};
|
|
1860
|
+
return Object.entries(D).forEach(([j, V]) => {
|
|
1861
|
+
y.has(j) && (T[j] = V);
|
|
1862
|
+
}), T;
|
|
1863
1863
|
});
|
|
1864
1864
|
}, [n]), _(() => {
|
|
1865
|
-
var
|
|
1865
|
+
var D;
|
|
1866
1866
|
if (g)
|
|
1867
1867
|
return;
|
|
1868
|
-
const y = t && n.some((z) => z.id === t) && t || ((
|
|
1869
|
-
f((z) => z && n.some((
|
|
1868
|
+
const y = t && n.some((z) => z.id === t) && t || ((D = n[0]) == null ? void 0 : D.id);
|
|
1869
|
+
f((z) => z && n.some((T) => T.id === z) ? z : y);
|
|
1870
1870
|
}, [n, t, g]);
|
|
1871
1871
|
const b = (g ? r : p) ?? null, v = Z(
|
|
1872
1872
|
() => n.find((y) => y.id === b),
|
|
1873
1873
|
[n, b]
|
|
1874
|
-
), S =
|
|
1875
|
-
(y,
|
|
1876
|
-
|
|
1874
|
+
), S = L(
|
|
1875
|
+
(y, D) => () => {
|
|
1876
|
+
D || (g || f(y), o == null || o(y));
|
|
1877
1877
|
},
|
|
1878
1878
|
[g, o]
|
|
1879
1879
|
), C = Z(() => {
|
|
@@ -1882,8 +1882,8 @@ const Vo = (n) => {
|
|
|
1882
1882
|
}, [i == null ? void 0 : i.className]), R = Z(() => {
|
|
1883
1883
|
if (!i)
|
|
1884
1884
|
return {};
|
|
1885
|
-
const { className: y, ...
|
|
1886
|
-
return
|
|
1885
|
+
const { className: y, ...D } = i;
|
|
1886
|
+
return D;
|
|
1887
1887
|
}, [i]), k = Z(
|
|
1888
1888
|
() => ({
|
|
1889
1889
|
items: n,
|
|
@@ -2022,7 +2022,7 @@ const Vo = (n) => {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
),
|
|
2024
2024
|
/* @__PURE__ */ e(
|
|
2025
|
-
|
|
2025
|
+
E,
|
|
2026
2026
|
{
|
|
2027
2027
|
ta: "left",
|
|
2028
2028
|
size: "sm",
|
|
@@ -2075,51 +2075,46 @@ const Vo = (n) => {
|
|
|
2075
2075
|
avatar: g,
|
|
2076
2076
|
placeholder: h,
|
|
2077
2077
|
onClick: I,
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
"aria-label": v,
|
|
2081
|
-
...S
|
|
2078
|
+
"aria-label": m,
|
|
2079
|
+
...b
|
|
2082
2080
|
}) => {
|
|
2083
|
-
const [
|
|
2081
|
+
const [v, S] = O(!1), [C, R] = O(!1), [k, M] = O(!1), y = C || k, D = Me.Children.count(t) > 0, z = !u && D && (f ? y : !0), T = L(() => {
|
|
2084
2082
|
d || I == null || I();
|
|
2085
|
-
}, [I, d]),
|
|
2086
|
-
(
|
|
2087
|
-
|
|
2083
|
+
}, [I, d]), j = L(
|
|
2084
|
+
(H) => {
|
|
2085
|
+
H.stopPropagation(), !d && (u || S(!0), o == null || o());
|
|
2088
2086
|
},
|
|
2089
|
-
[o, d]
|
|
2090
|
-
),
|
|
2091
|
-
(
|
|
2092
|
-
|
|
2093
|
-
const H = !N;
|
|
2094
|
-
return H && (m == null || m()), H;
|
|
2095
|
-
});
|
|
2087
|
+
[o, d, u]
|
|
2088
|
+
), V = L(
|
|
2089
|
+
(H) => {
|
|
2090
|
+
H == null || H.stopPropagation(), !d && D && !u && S((X) => !X);
|
|
2096
2091
|
},
|
|
2097
|
-
[d,
|
|
2098
|
-
),
|
|
2099
|
-
d || o == null || o();
|
|
2100
|
-
}, [o, d]),
|
|
2101
|
-
(
|
|
2102
|
-
d || i == null || i(
|
|
2092
|
+
[d, D, u]
|
|
2093
|
+
), q = L(() => {
|
|
2094
|
+
d || (u || S(!0), o == null || o());
|
|
2095
|
+
}, [o, d, u]), G = L(
|
|
2096
|
+
(H) => {
|
|
2097
|
+
d || i == null || i(H);
|
|
2103
2098
|
},
|
|
2104
2099
|
[i, d, n]
|
|
2105
|
-
),
|
|
2106
|
-
...
|
|
2100
|
+
), U = L(() => D ? Me.Children.map(t, (H) => Me.isValidElement(H) ? Me.cloneElement(H, {
|
|
2101
|
+
...H.props,
|
|
2107
2102
|
level: l + 1
|
|
2108
|
-
}) :
|
|
2103
|
+
}) : H) : null, [t, D, l]), K = (a == null ? void 0 : a.map((H) => ({
|
|
2109
2104
|
children: /* @__PURE__ */ w(F, { gap: "xs", wrap: "nowrap", children: [
|
|
2110
|
-
|
|
2111
|
-
/* @__PURE__ */ e(
|
|
2105
|
+
H.icon && /* @__PURE__ */ e(H.icon, { size: 16 }),
|
|
2106
|
+
/* @__PURE__ */ e(E, { size: "sm", children: H.label })
|
|
2112
2107
|
] }),
|
|
2113
|
-
onClick: () =>
|
|
2114
|
-
}))) || [],
|
|
2108
|
+
onClick: () => G(H.action)
|
|
2109
|
+
}))) || [], W = [
|
|
2115
2110
|
{
|
|
2116
2111
|
children: /* @__PURE__ */ w(F, { gap: "xs", wrap: "nowrap", children: [
|
|
2117
2112
|
/* @__PURE__ */ e(Te, { size: 16 }),
|
|
2118
|
-
/* @__PURE__ */ e(
|
|
2113
|
+
/* @__PURE__ */ e(E, { size: "sm", children: "Add child" })
|
|
2119
2114
|
] }),
|
|
2120
|
-
onClick:
|
|
2115
|
+
onClick: j
|
|
2121
2116
|
}
|
|
2122
|
-
],
|
|
2117
|
+
], re = K.length > 0 ? K : W;
|
|
2123
2118
|
return /* @__PURE__ */ w($, { gap: 0, children: [
|
|
2124
2119
|
/* @__PURE__ */ e(
|
|
2125
2120
|
x,
|
|
@@ -2136,34 +2131,34 @@ const Vo = (n) => {
|
|
|
2136
2131
|
w: "100%",
|
|
2137
2132
|
px: 6,
|
|
2138
2133
|
h: 40,
|
|
2139
|
-
onMouseEnter: () => !d &&
|
|
2134
|
+
onMouseEnter: () => !d && R(!0),
|
|
2140
2135
|
onMouseLeave: () => {
|
|
2141
|
-
|
|
2136
|
+
k || R(!1);
|
|
2142
2137
|
},
|
|
2143
|
-
onClick:
|
|
2144
|
-
bg: p ||
|
|
2145
|
-
"aria-expanded":
|
|
2146
|
-
"aria-label":
|
|
2147
|
-
...
|
|
2138
|
+
onClick: T,
|
|
2139
|
+
bg: p || y ? "var(--mantine-color-gray-1)" : "transparent",
|
|
2140
|
+
"aria-expanded": v,
|
|
2141
|
+
"aria-label": m || `${n} navigation link`,
|
|
2142
|
+
...b,
|
|
2148
2143
|
children: /* @__PURE__ */ w(
|
|
2149
2144
|
F,
|
|
2150
2145
|
{
|
|
2151
2146
|
w: "100%",
|
|
2152
2147
|
wrap: "nowrap",
|
|
2153
2148
|
gap: 8,
|
|
2154
|
-
onClick:
|
|
2149
|
+
onClick: T,
|
|
2155
2150
|
style: {
|
|
2156
|
-
paddingLeft: u && !
|
|
2151
|
+
paddingLeft: u && !z ? `${(l + 1) * 32}px` : l > 0 ? `${l * 32}px` : "0px"
|
|
2157
2152
|
},
|
|
2158
2153
|
children: [
|
|
2159
|
-
|
|
2154
|
+
z ? /* @__PURE__ */ e(
|
|
2160
2155
|
Ee,
|
|
2161
2156
|
{
|
|
2162
|
-
icon:
|
|
2163
|
-
iconOnHover:
|
|
2164
|
-
grayScaleBaseColor:
|
|
2157
|
+
icon: v ? Oe : en,
|
|
2158
|
+
iconOnHover: v ? Oe : en,
|
|
2159
|
+
grayScaleBaseColor: y ? 1 : 0,
|
|
2165
2160
|
color: "var(--mantine-color-gray-7)",
|
|
2166
|
-
onClick:
|
|
2161
|
+
onClick: V,
|
|
2167
2162
|
disabled: d
|
|
2168
2163
|
}
|
|
2169
2164
|
) : f ? /* @__PURE__ */ e(
|
|
@@ -2176,7 +2171,7 @@ const Vo = (n) => {
|
|
|
2176
2171
|
}
|
|
2177
2172
|
) : null,
|
|
2178
2173
|
/* @__PURE__ */ e(
|
|
2179
|
-
|
|
2174
|
+
E,
|
|
2180
2175
|
{
|
|
2181
2176
|
size: "sm",
|
|
2182
2177
|
fw: 600,
|
|
@@ -2188,21 +2183,21 @@ const Vo = (n) => {
|
|
|
2188
2183
|
}
|
|
2189
2184
|
),
|
|
2190
2185
|
/* @__PURE__ */ w(F, { gap: "xs", align: "center", children: [
|
|
2191
|
-
r && /* @__PURE__ */ e(
|
|
2192
|
-
|
|
2186
|
+
r && /* @__PURE__ */ e(E, { size: "xs", c: "dimmed", children: r }),
|
|
2187
|
+
y && !d && /* @__PURE__ */ w(F, { gap: 4, wrap: "nowrap", children: [
|
|
2193
2188
|
o && /* @__PURE__ */ e(
|
|
2194
2189
|
Ee,
|
|
2195
2190
|
{
|
|
2196
2191
|
icon: Te,
|
|
2197
|
-
grayScaleBaseColor:
|
|
2198
|
-
onClick:
|
|
2192
|
+
grayScaleBaseColor: y ? 1 : 0,
|
|
2193
|
+
onClick: q,
|
|
2199
2194
|
color: "var(--mantine-color-gray-7)"
|
|
2200
2195
|
}
|
|
2201
2196
|
),
|
|
2202
|
-
(a && a.length > 0 || o) && /* @__PURE__ */ e("div", { onClick: (
|
|
2197
|
+
(a && a.length > 0 || o) && /* @__PURE__ */ e("div", { onClick: (H) => H.stopPropagation(), children: /* @__PURE__ */ e(
|
|
2203
2198
|
tn,
|
|
2204
2199
|
{
|
|
2205
|
-
menuItems:
|
|
2200
|
+
menuItems: re,
|
|
2206
2201
|
trigger: /* @__PURE__ */ e(
|
|
2207
2202
|
Ee,
|
|
2208
2203
|
{
|
|
@@ -2214,10 +2209,10 @@ const Vo = (n) => {
|
|
|
2214
2209
|
position: "bottom-end",
|
|
2215
2210
|
shadow: "md",
|
|
2216
2211
|
onOpen: () => {
|
|
2217
|
-
|
|
2212
|
+
M(!0), R(!0);
|
|
2218
2213
|
},
|
|
2219
2214
|
onClose: () => {
|
|
2220
|
-
|
|
2215
|
+
M(!1);
|
|
2221
2216
|
}
|
|
2222
2217
|
}
|
|
2223
2218
|
) })
|
|
@@ -2228,7 +2223,7 @@ const Vo = (n) => {
|
|
|
2228
2223
|
)
|
|
2229
2224
|
}
|
|
2230
2225
|
),
|
|
2231
|
-
|
|
2226
|
+
v && !u && /* @__PURE__ */ e($, { gap: 0, style: { width: "100%" }, children: D ? U() : /* @__PURE__ */ e(x, { style: { marginLeft: l > 0 ? `${l * 16}px` : "0px" }, children: /* @__PURE__ */ e(E, { size: "sm", c: "dimmed", ta: "left", p: "sm", fw: 500, children: c }) }) })
|
|
2232
2227
|
] });
|
|
2233
2228
|
}, pr = "userChip-module__pill___DgFME", mr = {
|
|
2234
2229
|
pill: pr
|
|
@@ -2257,7 +2252,7 @@ const Vo = (n) => {
|
|
|
2257
2252
|
showPlaceholder: !0
|
|
2258
2253
|
}
|
|
2259
2254
|
),
|
|
2260
|
-
/* @__PURE__ */ e(
|
|
2255
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, c: "var(--mantine-color-gray-9)", children: r })
|
|
2261
2256
|
] })
|
|
2262
2257
|
}
|
|
2263
2258
|
), gr = "200px", Ir = "4px 8px", yr = 40, vr = "var(--mantine-radius-md)", xr = 16, wr = ({
|
|
@@ -2312,7 +2307,7 @@ const Vo = (n) => {
|
|
|
2312
2307
|
),
|
|
2313
2308
|
/* @__PURE__ */ w($, { gap: 0, style: { flex: 1 }, children: [
|
|
2314
2309
|
/* @__PURE__ */ e(
|
|
2315
|
-
|
|
2310
|
+
E,
|
|
2316
2311
|
{
|
|
2317
2312
|
size: "sm",
|
|
2318
2313
|
fw: 500,
|
|
@@ -2322,7 +2317,7 @@ const Vo = (n) => {
|
|
|
2322
2317
|
}
|
|
2323
2318
|
),
|
|
2324
2319
|
/* @__PURE__ */ e(
|
|
2325
|
-
|
|
2320
|
+
E,
|
|
2326
2321
|
{
|
|
2327
2322
|
size: "xs",
|
|
2328
2323
|
c: t ? "var(--mantine-color-gray-4)" : "dimmed",
|
|
@@ -2376,9 +2371,9 @@ const Vo = (n) => {
|
|
|
2376
2371
|
},
|
|
2377
2372
|
onMouseEnter: () => C(!0),
|
|
2378
2373
|
onMouseLeave: () => C(!1),
|
|
2379
|
-
children: /* @__PURE__ */ e(
|
|
2374
|
+
children: /* @__PURE__ */ e(E, { size: "sm", c: "var(--mantine-color-red-6)", fw: 500, children: "Remove user" })
|
|
2380
2375
|
}
|
|
2381
|
-
) : null, y = (z) => z > 0 ? /* @__PURE__ */ e(
|
|
2376
|
+
) : null, y = (z) => z > 0 ? /* @__PURE__ */ e(E, { size: "sm", c: "var(--mantine-color-gray-7)", fw: 600, children: z }) : null, D = /* @__PURE__ */ w(
|
|
2382
2377
|
x,
|
|
2383
2378
|
{
|
|
2384
2379
|
onMouseEnter: () => !c && v(!0),
|
|
@@ -2402,7 +2397,7 @@ const Vo = (n) => {
|
|
|
2402
2397
|
},
|
|
2403
2398
|
children: [
|
|
2404
2399
|
/* @__PURE__ */ e(
|
|
2405
|
-
|
|
2400
|
+
E,
|
|
2406
2401
|
{
|
|
2407
2402
|
size: "sm",
|
|
2408
2403
|
fw: f != null && f.fontWeight ? void 0 : 500,
|
|
@@ -2442,7 +2437,7 @@ const Vo = (n) => {
|
|
|
2442
2437
|
zIndex: Mr,
|
|
2443
2438
|
styles: d,
|
|
2444
2439
|
children: [
|
|
2445
|
-
/* @__PURE__ */ e(Fe.Target, { children:
|
|
2440
|
+
/* @__PURE__ */ e(Fe.Target, { children: D }),
|
|
2446
2441
|
/* @__PURE__ */ e(
|
|
2447
2442
|
Fe.Dropdown,
|
|
2448
2443
|
{
|
|
@@ -2463,16 +2458,16 @@ const Vo = (n) => {
|
|
|
2463
2458
|
onMouseDown: (z) => z.stopPropagation(),
|
|
2464
2459
|
children: [
|
|
2465
2460
|
(t || []).map((z) => {
|
|
2466
|
-
const
|
|
2461
|
+
const T = s.includes(z.value), j = z.value === n;
|
|
2467
2462
|
return /* @__PURE__ */ e(
|
|
2468
2463
|
wr,
|
|
2469
2464
|
{
|
|
2470
2465
|
item: z,
|
|
2471
2466
|
withAvatars: i,
|
|
2472
|
-
disabled:
|
|
2473
|
-
selected:
|
|
2474
|
-
onClick: (
|
|
2475
|
-
r == null || r(
|
|
2467
|
+
disabled: T,
|
|
2468
|
+
selected: j,
|
|
2469
|
+
onClick: (V) => {
|
|
2470
|
+
r == null || r(V), I(!1), k(!1);
|
|
2476
2471
|
}
|
|
2477
2472
|
},
|
|
2478
2473
|
z.value
|
|
@@ -2488,12 +2483,12 @@ const Vo = (n) => {
|
|
|
2488
2483
|
}
|
|
2489
2484
|
);
|
|
2490
2485
|
}, zr = (n, r, t, o) => {
|
|
2491
|
-
const i =
|
|
2486
|
+
const i = Q(null), a = Q(null), s = L(
|
|
2492
2487
|
(l) => {
|
|
2493
2488
|
l[0].isIntersecting && t && !o && r && r();
|
|
2494
2489
|
},
|
|
2495
2490
|
[t, o, r]
|
|
2496
|
-
), c =
|
|
2491
|
+
), c = L(() => {
|
|
2497
2492
|
if (!(!i.current || !n || !r)) {
|
|
2498
2493
|
a.current && (a.current.disconnect(), a.current = null);
|
|
2499
2494
|
try {
|
|
@@ -2540,77 +2535,77 @@ const Vo = (n) => {
|
|
|
2540
2535
|
hasMore: k = !1,
|
|
2541
2536
|
onLoadMore: M
|
|
2542
2537
|
}) => {
|
|
2543
|
-
const [y,
|
|
2538
|
+
const [y, D] = O(""), [z, T] = O([]), { loadMoreRef: j } = zr(
|
|
2544
2539
|
C,
|
|
2545
2540
|
M || (() => {
|
|
2546
2541
|
}),
|
|
2547
2542
|
k,
|
|
2548
2543
|
R
|
|
2549
|
-
),
|
|
2550
|
-
value:
|
|
2551
|
-
label:
|
|
2552
|
-
})) : [], ...u], [t, d, u]),
|
|
2544
|
+
), V = Z(() => [...d ? t.filter((A) => A.type === "select" && A.options).map((A) => ({
|
|
2545
|
+
value: A.key,
|
|
2546
|
+
label: A.label
|
|
2547
|
+
})) : [], ...u], [t, d, u]), q = Z(() => {
|
|
2553
2548
|
let B = r || [];
|
|
2554
2549
|
if (y) {
|
|
2555
|
-
const
|
|
2556
|
-
B = B.filter((N) => t.some((
|
|
2557
|
-
if (!
|
|
2550
|
+
const A = y.toLowerCase();
|
|
2551
|
+
B = B.filter((N) => t.some((P) => {
|
|
2552
|
+
if (!P.searchable)
|
|
2558
2553
|
return !1;
|
|
2559
|
-
const J = N[
|
|
2560
|
-
return J == null ? !1 : String(J).toLowerCase().includes(
|
|
2554
|
+
const J = N[P.key];
|
|
2555
|
+
return J == null ? !1 : String(J).toLowerCase().includes(A);
|
|
2561
2556
|
}));
|
|
2562
2557
|
}
|
|
2563
|
-
return z.forEach((
|
|
2564
|
-
if (
|
|
2558
|
+
return z.forEach((A) => {
|
|
2559
|
+
if (A.filterTag.selectedOption) {
|
|
2565
2560
|
const N = t.find(
|
|
2566
|
-
(
|
|
2561
|
+
(P) => P.key === A.filterTag.filterOption.value
|
|
2567
2562
|
);
|
|
2568
|
-
N && (B = B.filter((
|
|
2563
|
+
N && (B = B.filter((P) => {
|
|
2569
2564
|
var de;
|
|
2570
|
-
const J =
|
|
2571
|
-
return String(J) === ((de =
|
|
2565
|
+
const J = P[N.key];
|
|
2566
|
+
return String(J) === ((de = A.filterTag.selectedOption) == null ? void 0 : de.value);
|
|
2572
2567
|
}));
|
|
2573
2568
|
}
|
|
2574
2569
|
}), B;
|
|
2575
|
-
}, [r, y, z, t]),
|
|
2576
|
-
|
|
2570
|
+
}, [r, y, z, t]), G = (B) => {
|
|
2571
|
+
D(B), I == null || I(B);
|
|
2577
2572
|
}, U = (B) => {
|
|
2578
|
-
const
|
|
2579
|
-
if (!(
|
|
2573
|
+
const A = t.find((P) => P.key === B);
|
|
2574
|
+
if (!(A != null && A.sortable))
|
|
2580
2575
|
return;
|
|
2581
2576
|
const N = g === B && h === "asc" ? "desc" : "asc";
|
|
2582
2577
|
f == null || f(B, N);
|
|
2583
2578
|
}, K = (B) => {
|
|
2584
|
-
const
|
|
2585
|
-
return (
|
|
2579
|
+
const A = t.find((N) => N.key === B);
|
|
2580
|
+
return (A == null ? void 0 : A.type) === "select" && A.options ? A.options.map((N) => ({
|
|
2586
2581
|
value: N.value,
|
|
2587
2582
|
label: N.label
|
|
2588
|
-
})) : (
|
|
2589
|
-
...new Set(r.map((
|
|
2590
|
-
].map((
|
|
2591
|
-
value: String(
|
|
2592
|
-
label: String(
|
|
2593
|
-
})) :
|
|
2594
|
-
...new Set(r.map((
|
|
2595
|
-
].map((
|
|
2596
|
-
value: String(
|
|
2597
|
-
label: String(
|
|
2583
|
+
})) : (A == null ? void 0 : A.type) === "badge" ? [
|
|
2584
|
+
...new Set(r.map((P) => P[A.key]).filter(Boolean))
|
|
2585
|
+
].map((P) => ({
|
|
2586
|
+
value: String(P),
|
|
2587
|
+
label: String(P).charAt(0).toUpperCase() + String(P).slice(1)
|
|
2588
|
+
})) : A ? [
|
|
2589
|
+
...new Set(r.map((P) => P[A.key]).filter(Boolean))
|
|
2590
|
+
].map((P) => ({
|
|
2591
|
+
value: String(P),
|
|
2592
|
+
label: String(P).charAt(0).toUpperCase() + String(P).slice(1)
|
|
2598
2593
|
})) : [];
|
|
2599
|
-
}, W = (B,
|
|
2600
|
-
var
|
|
2601
|
-
const N =
|
|
2594
|
+
}, W = (B, A) => {
|
|
2595
|
+
var P, J, de, Y, ge;
|
|
2596
|
+
const N = A[B.key];
|
|
2602
2597
|
switch (B.type) {
|
|
2603
2598
|
case "text":
|
|
2604
|
-
return /* @__PURE__ */ e(
|
|
2599
|
+
return /* @__PURE__ */ e(E, { size: "sm", c: N ? void 0 : "dimmed", children: N || "—" });
|
|
2605
2600
|
case "date":
|
|
2606
2601
|
if (!N)
|
|
2607
|
-
return /* @__PURE__ */ e(
|
|
2602
|
+
return /* @__PURE__ */ e(E, { size: "sm", c: "dimmed", children: "—" });
|
|
2608
2603
|
const ie = new Date(N), ze = B.format ? ie.toLocaleDateString("en-US", {
|
|
2609
2604
|
year: "numeric",
|
|
2610
2605
|
month: "2-digit",
|
|
2611
2606
|
day: "2-digit"
|
|
2612
2607
|
}) : ie.toLocaleDateString();
|
|
2613
|
-
return /* @__PURE__ */ e(
|
|
2608
|
+
return /* @__PURE__ */ e(E, { size: "sm", c: "dimmed", children: ze });
|
|
2614
2609
|
case "select":
|
|
2615
2610
|
return B.options ? /* @__PURE__ */ e(
|
|
2616
2611
|
Un,
|
|
@@ -2620,11 +2615,11 @@ const Vo = (n) => {
|
|
|
2620
2615
|
placeholder: B.label,
|
|
2621
2616
|
onChange: (Ie) => {
|
|
2622
2617
|
var Le;
|
|
2623
|
-
return (Le = B.onSelectChange) == null ? void 0 : Le.call(B, Ie,
|
|
2618
|
+
return (Le = B.onSelectChange) == null ? void 0 : Le.call(B, Ie, A);
|
|
2624
2619
|
},
|
|
2625
|
-
disabled: (
|
|
2620
|
+
disabled: (P = B.disabled) == null ? void 0 : P.call(B, A)
|
|
2626
2621
|
}
|
|
2627
|
-
) : /* @__PURE__ */ e(
|
|
2622
|
+
) : /* @__PURE__ */ e(E, { size: "sm", c: "dimmed", children: "—" });
|
|
2628
2623
|
case "badge":
|
|
2629
2624
|
const sn = ((J = B.badgeColors) == null ? void 0 : J[N]) || "gray";
|
|
2630
2625
|
return /* @__PURE__ */ e(
|
|
@@ -2639,7 +2634,7 @@ const Vo = (n) => {
|
|
|
2639
2634
|
}
|
|
2640
2635
|
);
|
|
2641
2636
|
case "avatar":
|
|
2642
|
-
const ln = ((de = B.fallbackText) == null ? void 0 : de.call(B,
|
|
2637
|
+
const ln = ((de = B.fallbackText) == null ? void 0 : de.call(B, A)) || String(N).charAt(0).toUpperCase();
|
|
2643
2638
|
return /* @__PURE__ */ e(
|
|
2644
2639
|
ye,
|
|
2645
2640
|
{
|
|
@@ -2650,7 +2645,7 @@ const Vo = (n) => {
|
|
|
2650
2645
|
}
|
|
2651
2646
|
);
|
|
2652
2647
|
case "custom":
|
|
2653
|
-
return ((Y = B.render) == null ? void 0 : Y.call(B, N,
|
|
2648
|
+
return ((Y = B.render) == null ? void 0 : Y.call(B, N, A)) || /* @__PURE__ */ e(E, { size: "sm", c: "dimmed", children: "—" });
|
|
2654
2649
|
case "actions":
|
|
2655
2650
|
return (ge = B.actions) != null && ge.length ? /* @__PURE__ */ w(
|
|
2656
2651
|
me,
|
|
@@ -2672,8 +2667,8 @@ const Vo = (n) => {
|
|
|
2672
2667
|
{
|
|
2673
2668
|
color: Ie.color,
|
|
2674
2669
|
leftSection: Ie.icon,
|
|
2675
|
-
disabled: (Ge = Ie.disabled) == null ? void 0 : Ge.call(Ie,
|
|
2676
|
-
onClick: () => Ie.onClick(
|
|
2670
|
+
disabled: (Ge = Ie.disabled) == null ? void 0 : Ge.call(Ie, A),
|
|
2671
|
+
onClick: () => Ie.onClick(A),
|
|
2677
2672
|
styles: {
|
|
2678
2673
|
item: {
|
|
2679
2674
|
borderRadius: "var(--mantine-radius-md)"
|
|
@@ -2688,12 +2683,12 @@ const Vo = (n) => {
|
|
|
2688
2683
|
}
|
|
2689
2684
|
) : null;
|
|
2690
2685
|
default:
|
|
2691
|
-
return /* @__PURE__ */ e(
|
|
2686
|
+
return /* @__PURE__ */ e(E, { size: "sm", c: "dimmed", children: "—" });
|
|
2692
2687
|
}
|
|
2693
2688
|
}, re = (B) => {
|
|
2694
|
-
var
|
|
2695
|
-
return (
|
|
2696
|
-
},
|
|
2689
|
+
var A;
|
|
2690
|
+
return (A = t.find((N) => N.key === B)) != null && A.sortable ? g === B ? h === "asc" ? /* @__PURE__ */ e(Ve, { size: 14 }) : /* @__PURE__ */ e(Oe, { size: 14 }) : /* @__PURE__ */ e(Ve, { size: 14, style: { opacity: 0.3 } }) : null;
|
|
2691
|
+
}, X = (() => {
|
|
2697
2692
|
switch (b) {
|
|
2698
2693
|
case "sm":
|
|
2699
2694
|
return { buttonSize: "xs", textSize: "sm" };
|
|
@@ -2707,7 +2702,7 @@ const Vo = (n) => {
|
|
|
2707
2702
|
/* @__PURE__ */ e(lo, { visible: s }),
|
|
2708
2703
|
/* @__PURE__ */ w($, { gap: "sm", w: "100%", children: [
|
|
2709
2704
|
/* @__PURE__ */ w(F, { gap: "sm", wrap: "nowrap", justify: "space-between", children: [
|
|
2710
|
-
/* @__PURE__ */ e(
|
|
2705
|
+
/* @__PURE__ */ e(E, { fw: 600, c: "var(--mantine-color-gray-8)", children: n }),
|
|
2711
2706
|
/* @__PURE__ */ w(F, { gap: "xs", wrap: "nowrap", children: [
|
|
2712
2707
|
/* @__PURE__ */ w(F, { gap: 4, wrap: "nowrap", children: [
|
|
2713
2708
|
/* @__PURE__ */ e(
|
|
@@ -2715,20 +2710,20 @@ const Vo = (n) => {
|
|
|
2715
2710
|
{
|
|
2716
2711
|
placeholder: l,
|
|
2717
2712
|
value: y,
|
|
2718
|
-
onChange:
|
|
2719
|
-
onSearch:
|
|
2713
|
+
onChange: G,
|
|
2714
|
+
onSearch: G,
|
|
2720
2715
|
expandDirection: "right",
|
|
2721
|
-
size:
|
|
2716
|
+
size: X.buttonSize
|
|
2722
2717
|
}
|
|
2723
2718
|
),
|
|
2724
|
-
|
|
2719
|
+
V.length > 0 && /* @__PURE__ */ e(
|
|
2725
2720
|
jn,
|
|
2726
2721
|
{
|
|
2727
2722
|
activeFilters: z.map((B) => B.filterTag),
|
|
2728
2723
|
onFiltersChange: (B) => {
|
|
2729
|
-
|
|
2730
|
-
B.map((
|
|
2731
|
-
filterTag:
|
|
2724
|
+
T(
|
|
2725
|
+
B.map((A) => ({
|
|
2726
|
+
filterTag: A,
|
|
2732
2727
|
onUpdate: () => {
|
|
2733
2728
|
},
|
|
2734
2729
|
onRemove: () => {
|
|
@@ -2736,8 +2731,8 @@ const Vo = (n) => {
|
|
|
2736
2731
|
}))
|
|
2737
2732
|
), p == null || p(B);
|
|
2738
2733
|
},
|
|
2739
|
-
availableFilters:
|
|
2740
|
-
size:
|
|
2734
|
+
availableFilters: V,
|
|
2735
|
+
size: X.buttonSize
|
|
2741
2736
|
}
|
|
2742
2737
|
)
|
|
2743
2738
|
] }),
|
|
@@ -2747,7 +2742,7 @@ const Vo = (n) => {
|
|
|
2747
2742
|
size: "compact-md",
|
|
2748
2743
|
h: 32,
|
|
2749
2744
|
style: {
|
|
2750
|
-
fontSize: `var(--mantine-font-size-${
|
|
2745
|
+
fontSize: `var(--mantine-font-size-${X.textSize})`,
|
|
2751
2746
|
border: "none"
|
|
2752
2747
|
},
|
|
2753
2748
|
radius: "md",
|
|
@@ -2757,14 +2752,14 @@ const Vo = (n) => {
|
|
|
2757
2752
|
)
|
|
2758
2753
|
] })
|
|
2759
2754
|
] }),
|
|
2760
|
-
|
|
2755
|
+
V.length > 0 && /* @__PURE__ */ e(
|
|
2761
2756
|
Fn,
|
|
2762
2757
|
{
|
|
2763
2758
|
activeFilters: z.map((B) => B.filterTag),
|
|
2764
2759
|
onFiltersChange: (B) => {
|
|
2765
|
-
|
|
2766
|
-
B.map((
|
|
2767
|
-
filterTag:
|
|
2760
|
+
T(
|
|
2761
|
+
B.map((A) => ({
|
|
2762
|
+
filterTag: A,
|
|
2768
2763
|
onUpdate: () => {
|
|
2769
2764
|
},
|
|
2770
2765
|
onRemove: () => {
|
|
@@ -2772,7 +2767,7 @@ const Vo = (n) => {
|
|
|
2772
2767
|
}))
|
|
2773
2768
|
), p == null || p(B);
|
|
2774
2769
|
},
|
|
2775
|
-
availableFilters:
|
|
2770
|
+
availableFilters: V,
|
|
2776
2771
|
size: "md",
|
|
2777
2772
|
getFilterOptions: K
|
|
2778
2773
|
}
|
|
@@ -2799,13 +2794,13 @@ const Vo = (n) => {
|
|
|
2799
2794
|
onClick: () => B.sortable && U(B.key),
|
|
2800
2795
|
children: /* @__PURE__ */ w(F, { gap: "xs", wrap: "nowrap", children: [
|
|
2801
2796
|
B.icon && /* @__PURE__ */ e(x, { style: { display: "flex", alignItems: "center" }, children: B.icon }),
|
|
2802
|
-
/* @__PURE__ */ e(
|
|
2797
|
+
/* @__PURE__ */ e(E, { size: X.textSize, fw: 500, children: B.label }),
|
|
2803
2798
|
re(B.key)
|
|
2804
2799
|
] })
|
|
2805
2800
|
},
|
|
2806
2801
|
String(B.key)
|
|
2807
2802
|
)) }) }),
|
|
2808
|
-
/* @__PURE__ */ e(be.Tbody, { children:
|
|
2803
|
+
/* @__PURE__ */ e(be.Tbody, { children: q.length === 0 ? /* @__PURE__ */ e(be.Tr, { children: /* @__PURE__ */ e(be.Td, { colSpan: t.length, ta: "center", py: "xl", children: /* @__PURE__ */ e(E, { c: "dimmed", children: c }) }) }) : q.map((B, A) => /* @__PURE__ */ e(
|
|
2809
2804
|
be.Tr,
|
|
2810
2805
|
{
|
|
2811
2806
|
style: { cursor: m ? "pointer" : "default" },
|
|
@@ -2819,7 +2814,7 @@ const Vo = (n) => {
|
|
|
2819
2814
|
String(N.key)
|
|
2820
2815
|
))
|
|
2821
2816
|
},
|
|
2822
|
-
B.id ||
|
|
2817
|
+
B.id || A
|
|
2823
2818
|
)) })
|
|
2824
2819
|
]
|
|
2825
2820
|
}
|
|
@@ -2827,7 +2822,7 @@ const Vo = (n) => {
|
|
|
2827
2822
|
C && /* @__PURE__ */ e(
|
|
2828
2823
|
x,
|
|
2829
2824
|
{
|
|
2830
|
-
ref:
|
|
2825
|
+
ref: j,
|
|
2831
2826
|
style: {
|
|
2832
2827
|
padding: "16px",
|
|
2833
2828
|
display: "flex",
|
|
@@ -2837,7 +2832,7 @@ const Vo = (n) => {
|
|
|
2837
2832
|
},
|
|
2838
2833
|
children: R && /* @__PURE__ */ w(F, { display: "flex", ta: "center", gap: "xs", children: [
|
|
2839
2834
|
/* @__PURE__ */ e(ke, { size: "sm", color: "gray.5" }),
|
|
2840
|
-
/* @__PURE__ */ e(
|
|
2835
|
+
/* @__PURE__ */ e(E, { size: "sm", c: "dimmed", fw: 500, children: "Loading more..." })
|
|
2841
2836
|
] })
|
|
2842
2837
|
}
|
|
2843
2838
|
)
|
|
@@ -2854,32 +2849,32 @@ const Dr = ({
|
|
|
2854
2849
|
} = {}) => {
|
|
2855
2850
|
const [i, a] = O(
|
|
2856
2851
|
"emoji"
|
|
2857
|
-
), [s, c] = O(null), [l, d] = O(null), [u, p] = O(null), [f, g] = O(null), [h, I] = O(null), m =
|
|
2852
|
+
), [s, c] = O(null), [l, d] = O(null), [u, p] = O(null), [f, g] = O(null), [h, I] = O(null), m = L((y) => {
|
|
2858
2853
|
a(y);
|
|
2859
|
-
}, []), b =
|
|
2854
|
+
}, []), b = L(
|
|
2860
2855
|
(y) => {
|
|
2861
2856
|
c(y);
|
|
2862
2857
|
},
|
|
2863
2858
|
[]
|
|
2864
|
-
), v =
|
|
2859
|
+
), v = L((y) => {
|
|
2865
2860
|
I(y);
|
|
2866
|
-
const
|
|
2867
|
-
|
|
2868
|
-
var
|
|
2869
|
-
const
|
|
2870
|
-
d(
|
|
2871
|
-
},
|
|
2872
|
-
}, []), S =
|
|
2861
|
+
const D = new FileReader();
|
|
2862
|
+
D.onload = (z) => {
|
|
2863
|
+
var j;
|
|
2864
|
+
const T = (j = z.target) == null ? void 0 : j.result;
|
|
2865
|
+
d(T);
|
|
2866
|
+
}, D.readAsDataURL(y);
|
|
2867
|
+
}, []), S = L(
|
|
2873
2868
|
(y) => {
|
|
2874
2869
|
p(y), d(null), I(null), g(null), n == null || n({ type: "emoji", value: y }), r == null || r(y);
|
|
2875
2870
|
},
|
|
2876
2871
|
[n, r]
|
|
2877
|
-
), C =
|
|
2872
|
+
), C = L(
|
|
2878
2873
|
(y) => {
|
|
2879
2874
|
g(y), d(null), I(null), p(null), n == null || n({ type: "icon", value: y }), o == null || o(y);
|
|
2880
2875
|
},
|
|
2881
2876
|
[n, o]
|
|
2882
|
-
), R =
|
|
2877
|
+
), R = L(() => {
|
|
2883
2878
|
if (h && l) {
|
|
2884
2879
|
const y = URL.createObjectURL(h);
|
|
2885
2880
|
n == null || n({
|
|
@@ -2887,9 +2882,9 @@ const Dr = ({
|
|
|
2887
2882
|
value: y
|
|
2888
2883
|
}), t == null || t(h);
|
|
2889
2884
|
}
|
|
2890
|
-
}, [h, l, n, t]), k =
|
|
2885
|
+
}, [h, l, n, t]), k = L(() => {
|
|
2891
2886
|
d(null), I(null), p(null), g(null);
|
|
2892
|
-
}, []), M =
|
|
2887
|
+
}, []), M = L(() => {
|
|
2893
2888
|
d(null), p(null), g(null), I(null), a("emoji"), c(null);
|
|
2894
2889
|
}, []);
|
|
2895
2890
|
return {
|
|
@@ -2913,12 +2908,12 @@ const Dr = ({
|
|
|
2913
2908
|
onClose: r,
|
|
2914
2909
|
popoverRef: t
|
|
2915
2910
|
}) => {
|
|
2916
|
-
const o =
|
|
2911
|
+
const o = L(
|
|
2917
2912
|
(a) => {
|
|
2918
2913
|
n && t.current && !t.current.contains(a.target) && (console.log("Click outside detected, closing popover"), r());
|
|
2919
2914
|
},
|
|
2920
2915
|
[n, r, t]
|
|
2921
|
-
), i =
|
|
2916
|
+
), i = L(
|
|
2922
2917
|
(a) => {
|
|
2923
2918
|
a.key === "Escape" && n && (console.log("Escape key pressed, closing popover"), r());
|
|
2924
2919
|
},
|
|
@@ -3214,7 +3209,7 @@ const Er = () => {
|
|
|
3214
3209
|
}
|
|
3215
3210
|
}
|
|
3216
3211
|
),
|
|
3217
|
-
/* @__PURE__ */ e(
|
|
3212
|
+
/* @__PURE__ */ e(E, { size: "sm", c: "var(--mantine-color-gray-6)", ta: "left", fw: 500, children: ((m) => {
|
|
3218
3213
|
if (t.trim())
|
|
3219
3214
|
return "Results";
|
|
3220
3215
|
const b = f.find((v) => v.id === m);
|
|
@@ -3231,7 +3226,7 @@ const Er = () => {
|
|
|
3231
3226
|
padding: "0px 12px 12px 12px"
|
|
3232
3227
|
},
|
|
3233
3228
|
children: u ? /* @__PURE__ */ e(
|
|
3234
|
-
|
|
3229
|
+
E,
|
|
3235
3230
|
{
|
|
3236
3231
|
size: "sm",
|
|
3237
3232
|
c: "dimmed",
|
|
@@ -3280,7 +3275,7 @@ const Er = () => {
|
|
|
3280
3275
|
},
|
|
3281
3276
|
m.id
|
|
3282
3277
|
)) : /* @__PURE__ */ e(
|
|
3283
|
-
|
|
3278
|
+
E,
|
|
3284
3279
|
{
|
|
3285
3280
|
size: "sm",
|
|
3286
3281
|
c: "dimmed",
|
|
@@ -4426,24 +4421,24 @@ const We = [
|
|
|
4426
4421
|
(S) => S.id === i
|
|
4427
4422
|
);
|
|
4428
4423
|
return (v == null ? void 0 : v.icons) || [];
|
|
4429
|
-
}, [i, l, u]), f =
|
|
4424
|
+
}, [i, l, u]), f = L(
|
|
4430
4425
|
(v, S) => {
|
|
4431
4426
|
if (!v.trim())
|
|
4432
4427
|
return S;
|
|
4433
4428
|
const C = v.toLowerCase().trim(), R = C.split(/\s+/);
|
|
4434
4429
|
return S.filter((k) => {
|
|
4435
|
-
const y = k.replace(/^Icon/, "").split(/(?=[A-Z])/).map((
|
|
4436
|
-
return !!(y.some((
|
|
4437
|
-
(
|
|
4430
|
+
const y = k.replace(/^Icon/, "").split(/(?=[A-Z])/).map((D) => D.toLowerCase().trim()).filter((D) => D.length > 0);
|
|
4431
|
+
return !!(y.some((D) => R.some((z) => D === z)) || C.length > 2 && y.some(
|
|
4432
|
+
(D) => R.some((z) => D.startsWith(z))
|
|
4438
4433
|
) || C.length <= 2 && y.some(
|
|
4439
|
-
(
|
|
4434
|
+
(D) => R.some((z) => D.includes(z))
|
|
4440
4435
|
) || R.length > 1 && R.every(
|
|
4441
|
-
(
|
|
4436
|
+
(D) => y.some((z) => z === D || z.startsWith(D))
|
|
4442
4437
|
));
|
|
4443
4438
|
});
|
|
4444
4439
|
},
|
|
4445
4440
|
[]
|
|
4446
|
-
), g = Z(() => t.trim() ? f(t, u) : p, [t, p, u, f]), h =
|
|
4441
|
+
), g = Z(() => t.trim() ? f(t, u) : p, [t, p, u, f]), h = L(
|
|
4447
4442
|
(v) => {
|
|
4448
4443
|
u.includes(v) && d((C) => {
|
|
4449
4444
|
const R = [
|
|
@@ -4457,7 +4452,7 @@ const We = [
|
|
|
4457
4452
|
}), n(v);
|
|
4458
4453
|
},
|
|
4459
4454
|
[n, u]
|
|
4460
|
-
), I =
|
|
4455
|
+
), I = L(
|
|
4461
4456
|
(v) => {
|
|
4462
4457
|
i !== v && (o(""), a(v), requestAnimationFrame(() => {
|
|
4463
4458
|
c(!0), setTimeout(() => c(!1), 100);
|
|
@@ -4485,7 +4480,7 @@ const We = [
|
|
|
4485
4480
|
}
|
|
4486
4481
|
}
|
|
4487
4482
|
),
|
|
4488
|
-
/* @__PURE__ */ e(
|
|
4483
|
+
/* @__PURE__ */ e(E, { size: "sm", c: "var(--mantine-color-gray-6)", ta: "left", fw: 500, children: t.trim() ? "Results" : (b = We.find((v) => v.id === i)) == null ? void 0 : b.name })
|
|
4489
4484
|
] }) }),
|
|
4490
4485
|
/* @__PURE__ */ e(x, { style: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ e(Se, { h: "100%", type: "hover", children: /* @__PURE__ */ e(
|
|
4491
4486
|
x,
|
|
@@ -4541,7 +4536,7 @@ const Fr = ({
|
|
|
4541
4536
|
onClearImagePreview: l
|
|
4542
4537
|
}) => /* @__PURE__ */ e(x, { p: "sm", style: { width: "384px" }, children: /* @__PURE__ */ w($, { gap: "md", align: "center", children: [
|
|
4543
4538
|
n || t ? /* @__PURE__ */ w(x, { children: [
|
|
4544
|
-
/* @__PURE__ */ e(
|
|
4539
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, mb: "xs", children: "Preview" }),
|
|
4545
4540
|
/* @__PURE__ */ e(
|
|
4546
4541
|
rt,
|
|
4547
4542
|
{
|
|
@@ -4628,7 +4623,7 @@ const Fr = ({
|
|
|
4628
4623
|
}
|
|
4629
4624
|
)
|
|
4630
4625
|
] }),
|
|
4631
|
-
/* @__PURE__ */ e(
|
|
4626
|
+
/* @__PURE__ */ e(E, { size: "xs", c: "var(--mantine-color-gray-6)", ta: "center", children: "Supported formats: JPG, PNG, GIF, WebP" })
|
|
4632
4627
|
] }) }), Nr = ({ onEmojiSelect: n }) => /* @__PURE__ */ e(Ar, { onEmojiSelect: n, height: 358 }), Ur = ({ onIconSelect: n }) => /* @__PURE__ */ e(Dt, { onIconSelect: n, height: 358 }), $r = ({
|
|
4633
4628
|
previewImage: n,
|
|
4634
4629
|
selectedEmoji: r,
|
|
@@ -4664,7 +4659,7 @@ const Fr = ({
|
|
|
4664
4659
|
},
|
|
4665
4660
|
children: /* @__PURE__ */ w($, { align: "center", gap: "sm", children: [
|
|
4666
4661
|
/* @__PURE__ */ e(ke, { size: "sm" }),
|
|
4667
|
-
/* @__PURE__ */ e(
|
|
4662
|
+
/* @__PURE__ */ e(E, { size: "sm", c: "gray.6", children: "Loading avatar options..." })
|
|
4668
4663
|
] })
|
|
4669
4664
|
}
|
|
4670
4665
|
), $n = ({
|
|
@@ -4686,7 +4681,7 @@ const Fr = ({
|
|
|
4686
4681
|
withinPortal: f = !0,
|
|
4687
4682
|
zIndex: g = 1e3
|
|
4688
4683
|
}) => {
|
|
4689
|
-
const h =
|
|
4684
|
+
const h = Q(null), I = Q(null), m = Q(null), {
|
|
4690
4685
|
selectedTab: b,
|
|
4691
4686
|
tabHovered: v,
|
|
4692
4687
|
previewImage: S,
|
|
@@ -4695,12 +4690,12 @@ const Fr = ({
|
|
|
4695
4690
|
selectedFile: k,
|
|
4696
4691
|
handleTabChange: M,
|
|
4697
4692
|
handleTabHover: y,
|
|
4698
|
-
handleImagePreview:
|
|
4693
|
+
handleImagePreview: D,
|
|
4699
4694
|
handleImageAccept: z,
|
|
4700
|
-
handleEmojiSelect:
|
|
4701
|
-
handleIconSelect:
|
|
4702
|
-
clearImagePreview:
|
|
4703
|
-
resetState:
|
|
4695
|
+
handleEmojiSelect: T,
|
|
4696
|
+
handleIconSelect: j,
|
|
4697
|
+
clearImagePreview: V,
|
|
4698
|
+
resetState: q
|
|
4704
4699
|
} = Dr({
|
|
4705
4700
|
onAvatarSelect: a
|
|
4706
4701
|
});
|
|
@@ -4709,23 +4704,23 @@ const Fr = ({
|
|
|
4709
4704
|
onClose: o,
|
|
4710
4705
|
popoverRef: I
|
|
4711
4706
|
}), _(() => {
|
|
4712
|
-
r ||
|
|
4713
|
-
}, [r,
|
|
4714
|
-
const
|
|
4715
|
-
console.log("Emoji clicked:", ie),
|
|
4707
|
+
r || q();
|
|
4708
|
+
}, [r, q]);
|
|
4709
|
+
const G = (ie) => {
|
|
4710
|
+
console.log("Emoji clicked:", ie), T(ie), o();
|
|
4716
4711
|
}, U = (ie) => {
|
|
4717
|
-
console.log("Icon clicked:", ie),
|
|
4712
|
+
console.log("Icon clicked:", ie), j(ie), o();
|
|
4718
4713
|
}, K = (ie) => {
|
|
4719
|
-
ie &&
|
|
4714
|
+
ie && D(ie);
|
|
4720
4715
|
}, W = () => {
|
|
4721
4716
|
k ? (z(), o()) : (C || R) && o();
|
|
4722
4717
|
}, re = () => {
|
|
4723
4718
|
h.current && h.current.click();
|
|
4719
|
+
}, H = () => {
|
|
4720
|
+
V();
|
|
4724
4721
|
}, X = () => {
|
|
4725
|
-
P();
|
|
4726
|
-
}, q = () => {
|
|
4727
4722
|
console.log("Avatar removed"), s == null || s(), o();
|
|
4728
|
-
}, B = () => !!i,
|
|
4723
|
+
}, B = () => !!i, A = () => l ? /* @__PURE__ */ e(Mn, { size: c, loading: !0 }) : /* @__PURE__ */ e(
|
|
4729
4724
|
ye,
|
|
4730
4725
|
{
|
|
4731
4726
|
avatar: i,
|
|
@@ -4737,7 +4732,7 @@ const Fr = ({
|
|
|
4737
4732
|
!l && !r && t();
|
|
4738
4733
|
}
|
|
4739
4734
|
}
|
|
4740
|
-
), N = /* @__PURE__ */ e(Nr, { onEmojiSelect:
|
|
4735
|
+
), N = /* @__PURE__ */ e(Nr, { onEmojiSelect: G }), P = /* @__PURE__ */ e(Ur, { onIconSelect: U }), J = /* @__PURE__ */ e(
|
|
4741
4736
|
$r,
|
|
4742
4737
|
{
|
|
4743
4738
|
previewImage: S,
|
|
@@ -4747,7 +4742,7 @@ const Fr = ({
|
|
|
4747
4742
|
onFileInputClick: re,
|
|
4748
4743
|
onImageChange: K,
|
|
4749
4744
|
onImageAccept: W,
|
|
4750
|
-
onClearImagePreview:
|
|
4745
|
+
onClearImagePreview: H,
|
|
4751
4746
|
fileInputRef: h
|
|
4752
4747
|
}
|
|
4753
4748
|
), de = /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(
|
|
@@ -4757,9 +4752,9 @@ const Fr = ({
|
|
|
4757
4752
|
tabHovered: v,
|
|
4758
4753
|
onTabChange: M,
|
|
4759
4754
|
onTabHover: y,
|
|
4760
|
-
onRemove:
|
|
4755
|
+
onRemove: X,
|
|
4761
4756
|
hasAvatar: B(),
|
|
4762
|
-
children: b === "emoji" ? N : b === "icons" ?
|
|
4757
|
+
children: b === "emoji" ? N : b === "icons" ? P : J
|
|
4763
4758
|
}
|
|
4764
4759
|
) }), Y = /* @__PURE__ */ e("div", { style: { position: "relative", display: "inline-block" }, children: /* @__PURE__ */ w(
|
|
4765
4760
|
Fe,
|
|
@@ -4777,7 +4772,7 @@ const Fr = ({
|
|
|
4777
4772
|
closeOnEscape: !1,
|
|
4778
4773
|
offset: 8,
|
|
4779
4774
|
children: [
|
|
4780
|
-
/* @__PURE__ */ e(Fe.Target, { children: /* @__PURE__ */ e("div", { ref: m, style: { position: "relative" }, children:
|
|
4775
|
+
/* @__PURE__ */ e(Fe.Target, { children: /* @__PURE__ */ e("div", { ref: m, style: { position: "relative" }, children: A() }) }),
|
|
4781
4776
|
/* @__PURE__ */ e(
|
|
4782
4777
|
Fe.Dropdown,
|
|
4783
4778
|
{
|
|
@@ -4839,7 +4834,7 @@ const Fr = ({
|
|
|
4839
4834
|
}) => {
|
|
4840
4835
|
const [a, s] = O(""), [c, l] = O(
|
|
4841
4836
|
[]
|
|
4842
|
-
), d =
|
|
4837
|
+
), d = Q(null), u = n.map((I) => {
|
|
4843
4838
|
if (i[I])
|
|
4844
4839
|
return i[I];
|
|
4845
4840
|
const m = o.find((b) => b.email === I);
|
|
@@ -4868,7 +4863,7 @@ const Fr = ({
|
|
|
4868
4863
|
I.removeEventListener("input", b), clearTimeout(m);
|
|
4869
4864
|
};
|
|
4870
4865
|
}, []);
|
|
4871
|
-
const p =
|
|
4866
|
+
const p = L(
|
|
4872
4867
|
(I) => {
|
|
4873
4868
|
const m = o.map((v) => ({
|
|
4874
4869
|
name: v.name || v.email,
|
|
@@ -4885,9 +4880,9 @@ const Fr = ({
|
|
|
4885
4880
|
r(b), s("");
|
|
4886
4881
|
},
|
|
4887
4882
|
[r, o]
|
|
4888
|
-
), f =
|
|
4883
|
+
), f = L(() => {
|
|
4889
4884
|
d.current && (d.current.value = "", s(""));
|
|
4890
|
-
}, []), g = c.length === 0 && n.length > 0, h =
|
|
4885
|
+
}, []), g = c.length === 0 && n.length > 0, h = L(
|
|
4891
4886
|
(I, m, b) => {
|
|
4892
4887
|
I && n.length > 0 && m && (I(n, m, b), s(""));
|
|
4893
4888
|
},
|
|
@@ -4919,34 +4914,34 @@ const Fr = ({
|
|
|
4919
4914
|
_(() => {
|
|
4920
4915
|
a.length > 0 && !I && m(a[0].value);
|
|
4921
4916
|
}, [a.length, I]), _(() => {
|
|
4922
|
-
const
|
|
4917
|
+
const T = i.filter((j) => s.includes(j.email)).map((j) => j.id);
|
|
4923
4918
|
d(
|
|
4924
|
-
(
|
|
4919
|
+
(j) => j.filter((V) => T.includes(V))
|
|
4925
4920
|
);
|
|
4926
4921
|
}, [s, i.length]);
|
|
4927
4922
|
const [b, v] = O(
|
|
4928
4923
|
"invite"
|
|
4929
4924
|
), [S, C] = O(
|
|
4930
4925
|
null
|
|
4931
|
-
), R = (
|
|
4932
|
-
n && n(
|
|
4933
|
-
}, k = (
|
|
4934
|
-
r && r(
|
|
4935
|
-
}, M = (
|
|
4936
|
-
t && t(
|
|
4937
|
-
}, y = (
|
|
4926
|
+
), R = (T, j, V) => {
|
|
4927
|
+
n && n(T, j, V), c([]), p("");
|
|
4928
|
+
}, k = (T, j) => {
|
|
4929
|
+
r && r(T, j);
|
|
4930
|
+
}, M = (T) => {
|
|
4931
|
+
t && t(T);
|
|
4932
|
+
}, y = (T) => {
|
|
4938
4933
|
d(
|
|
4939
|
-
(
|
|
4934
|
+
(j) => j.includes(T) ? j.filter((V) => V !== T) : [...j, T]
|
|
4940
4935
|
);
|
|
4941
|
-
},
|
|
4942
|
-
s.includes(
|
|
4943
|
-
...
|
|
4944
|
-
[
|
|
4945
|
-
})), l.includes(
|
|
4946
|
-
}, z = u.trim() ? i.filter((
|
|
4947
|
-
var
|
|
4948
|
-
const
|
|
4949
|
-
return
|
|
4936
|
+
}, D = (T) => {
|
|
4937
|
+
s.includes(T.email) || (c([...s, T.email]), g((j) => ({
|
|
4938
|
+
...j,
|
|
4939
|
+
[T.email]: T.name || T.email
|
|
4940
|
+
})), l.includes(T.id) || d([...l, T.id]), p(""));
|
|
4941
|
+
}, z = u.trim() ? i.filter((T) => {
|
|
4942
|
+
var V;
|
|
4943
|
+
const j = u.toLowerCase();
|
|
4944
|
+
return T.email.toLowerCase().includes(j) || ((V = T.name) == null ? void 0 : V.toLowerCase().includes(j));
|
|
4950
4945
|
}) : [];
|
|
4951
4946
|
return {
|
|
4952
4947
|
emails: s,
|
|
@@ -4968,7 +4963,7 @@ const Fr = ({
|
|
|
4968
4963
|
handleUpdateRole: k,
|
|
4969
4964
|
handleRemoveUser: M,
|
|
4970
4965
|
handleToggleUser: y,
|
|
4971
|
-
handleAddSuggestedUser:
|
|
4966
|
+
handleAddSuggestedUser: D
|
|
4972
4967
|
};
|
|
4973
4968
|
}, Bt = ro(
|
|
4974
4969
|
({
|
|
@@ -5091,11 +5086,11 @@ const Fr = ({
|
|
|
5091
5086
|
)
|
|
5092
5087
|
}
|
|
5093
5088
|
),
|
|
5094
|
-
M && /* @__PURE__ */ e($, { gap: "xs", mt: "xs", children: I.map((y,
|
|
5089
|
+
M && /* @__PURE__ */ e($, { gap: "xs", mt: "xs", children: I.map((y, D) => /* @__PURE__ */ w(E, { size: "xs", c: "red", children: [
|
|
5095
5090
|
y.email,
|
|
5096
5091
|
": ",
|
|
5097
5092
|
y.error
|
|
5098
|
-
] },
|
|
5093
|
+
] }, D)) })
|
|
5099
5094
|
] }),
|
|
5100
5095
|
R && /* @__PURE__ */ w($, { gap: "sm", children: [
|
|
5101
5096
|
/* @__PURE__ */ e(
|
|
@@ -5212,7 +5207,7 @@ const Fr = ({
|
|
|
5212
5207
|
/* @__PURE__ */ w($, { gap: 0, w: "100%", justify: "flex-start", align: "flex-start", children: [
|
|
5213
5208
|
/* @__PURE__ */ w(F, { gap: "sm", align: "flex-start", wrap: "nowrap", children: [
|
|
5214
5209
|
/* @__PURE__ */ w(F, { gap: "sm", align: "flex-start", wrap: "nowrap", children: [
|
|
5215
|
-
/* @__PURE__ */ e(
|
|
5210
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, lineClamp: 1, mb: -2, children: l }),
|
|
5216
5211
|
n.isCurrentUser && /* @__PURE__ */ e(Je, { size: "xs", variant: "light", color: "gray", radius: "sm", children: "Owner" })
|
|
5217
5212
|
] }),
|
|
5218
5213
|
n.status !== "member" && /* @__PURE__ */ e(
|
|
@@ -5226,7 +5221,7 @@ const Fr = ({
|
|
|
5226
5221
|
}
|
|
5227
5222
|
)
|
|
5228
5223
|
] }),
|
|
5229
|
-
/* @__PURE__ */ e(
|
|
5224
|
+
/* @__PURE__ */ e(E, { size: "xs", c: "dimmed", lineClamp: 1, children: n.email })
|
|
5230
5225
|
] })
|
|
5231
5226
|
] }),
|
|
5232
5227
|
/* @__PURE__ */ w(F, { gap: "sm", align: "center", children: [
|
|
@@ -5267,7 +5262,7 @@ const Fr = ({
|
|
|
5267
5262
|
roleOptions: c = [],
|
|
5268
5263
|
suggestedUsers: l = []
|
|
5269
5264
|
}) => {
|
|
5270
|
-
const d =
|
|
5265
|
+
const d = Q(null), {
|
|
5271
5266
|
emails: u,
|
|
5272
5267
|
setEmails: p,
|
|
5273
5268
|
selectedUsers: f,
|
|
@@ -5283,9 +5278,9 @@ const Fr = ({
|
|
|
5283
5278
|
filteredUsers: k,
|
|
5284
5279
|
handleInvite: M,
|
|
5285
5280
|
handleUpdateRole: y,
|
|
5286
|
-
handleRemoveUser:
|
|
5281
|
+
handleRemoveUser: D,
|
|
5287
5282
|
handleToggleUser: z,
|
|
5288
|
-
handleAddSuggestedUser:
|
|
5283
|
+
handleAddSuggestedUser: T
|
|
5289
5284
|
} = Tt({
|
|
5290
5285
|
onInvite: t,
|
|
5291
5286
|
onUpdateRole: o,
|
|
@@ -5293,9 +5288,9 @@ const Fr = ({
|
|
|
5293
5288
|
invitedUsers: a,
|
|
5294
5289
|
suggestedUsers: l,
|
|
5295
5290
|
roleOptions: c
|
|
5296
|
-
}),
|
|
5297
|
-
|
|
5298
|
-
},
|
|
5291
|
+
}), j = (U) => {
|
|
5292
|
+
T(U), d.current && d.current.clearInput();
|
|
5293
|
+
}, V = /* @__PURE__ */ w(he, { children: [
|
|
5299
5294
|
/* @__PURE__ */ e(
|
|
5300
5295
|
Bt,
|
|
5301
5296
|
{
|
|
@@ -5313,7 +5308,7 @@ const Fr = ({
|
|
|
5313
5308
|
),
|
|
5314
5309
|
/* @__PURE__ */ e(Be, { h: "sm" }),
|
|
5315
5310
|
/* @__PURE__ */ e(Se, { mah: 200, type: "auto", style: { overflow: "visible" }, children: /* @__PURE__ */ e(x, { children: a.length > 0 && /* @__PURE__ */ w(he, { children: [
|
|
5316
|
-
/* @__PURE__ */ e(
|
|
5311
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, children: "Already members" }),
|
|
5317
5312
|
/* @__PURE__ */ e(Be, { h: "sm" }),
|
|
5318
5313
|
/* @__PURE__ */ e($, { gap: "sm", children: a.map((U) => /* @__PURE__ */ e(
|
|
5319
5314
|
on,
|
|
@@ -5322,7 +5317,7 @@ const Fr = ({
|
|
|
5322
5317
|
isSelected: f.includes(U.id),
|
|
5323
5318
|
onToggle: z,
|
|
5324
5319
|
onUpdateRole: y,
|
|
5325
|
-
onRemoveUser:
|
|
5320
|
+
onRemoveUser: D,
|
|
5326
5321
|
roleOptions: c,
|
|
5327
5322
|
variant: "invited"
|
|
5328
5323
|
},
|
|
@@ -5337,7 +5332,7 @@ const Fr = ({
|
|
|
5337
5332
|
type: "auto",
|
|
5338
5333
|
style: { overflow: "visible" },
|
|
5339
5334
|
children: /* @__PURE__ */ e(x, { children: k.length > 0 ? /* @__PURE__ */ w(he, { children: [
|
|
5340
|
-
/* @__PURE__ */ w(
|
|
5335
|
+
/* @__PURE__ */ w(E, { size: "sm", fw: 500, children: [
|
|
5341
5336
|
"Suggested ",
|
|
5342
5337
|
g.trim() && `(filtered by "${g}")`
|
|
5343
5338
|
] }),
|
|
@@ -5349,21 +5344,21 @@ const Fr = ({
|
|
|
5349
5344
|
isSelected: f.includes(U.id),
|
|
5350
5345
|
onToggle: z,
|
|
5351
5346
|
onUpdateRole: y,
|
|
5352
|
-
onRemoveUser:
|
|
5347
|
+
onRemoveUser: D,
|
|
5353
5348
|
roleOptions: c,
|
|
5354
5349
|
variant: "suggested",
|
|
5355
|
-
onClick: () =>
|
|
5350
|
+
onClick: () => j(U)
|
|
5356
5351
|
},
|
|
5357
5352
|
U.id
|
|
5358
5353
|
)) })
|
|
5359
5354
|
] }) : null })
|
|
5360
5355
|
}
|
|
5361
5356
|
)
|
|
5362
|
-
] }),
|
|
5357
|
+
] }), q = /* @__PURE__ */ e(he, { children: /* @__PURE__ */ w($, { gap: "md", p: "sm", children: [
|
|
5363
5358
|
/* @__PURE__ */ w($, { gap: 4, align: "center", children: [
|
|
5364
|
-
/* @__PURE__ */ e(
|
|
5359
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, ta: "center", children: "Publish to the web" }),
|
|
5365
5360
|
/* @__PURE__ */ e(
|
|
5366
|
-
|
|
5361
|
+
E,
|
|
5367
5362
|
{
|
|
5368
5363
|
size: "sm",
|
|
5369
5364
|
fw: 500,
|
|
@@ -5385,7 +5380,7 @@ const Fr = ({
|
|
|
5385
5380
|
children: "Publish"
|
|
5386
5381
|
}
|
|
5387
5382
|
)
|
|
5388
|
-
] }) }),
|
|
5383
|
+
] }) }), G = /* @__PURE__ */ e(x, { style: { width: "400px", maxHeight: "600px", overflow: "visible" }, children: /* @__PURE__ */ e($, { gap: "lg", children: /* @__PURE__ */ w(
|
|
5389
5384
|
fe,
|
|
5390
5385
|
{
|
|
5391
5386
|
color: "black",
|
|
@@ -5470,8 +5465,8 @@ const Fr = ({
|
|
|
5470
5465
|
}
|
|
5471
5466
|
)
|
|
5472
5467
|
] }),
|
|
5473
|
-
/* @__PURE__ */ e(fe.Panel, { value: "invite", children: /* @__PURE__ */ e(x, { p: "sm", children:
|
|
5474
|
-
/* @__PURE__ */ e(fe.Panel, { value: "publish", children: /* @__PURE__ */ e(x, { p: "sm", children:
|
|
5468
|
+
/* @__PURE__ */ e(fe.Panel, { value: "invite", children: /* @__PURE__ */ e(x, { p: "sm", children: V }) }),
|
|
5469
|
+
/* @__PURE__ */ e(fe.Panel, { value: "publish", children: /* @__PURE__ */ e(x, { p: "sm", children: q }) })
|
|
5475
5470
|
]
|
|
5476
5471
|
}
|
|
5477
5472
|
) }) });
|
|
@@ -5488,7 +5483,7 @@ const Fr = ({
|
|
|
5488
5483
|
borderRadius: "var(--mantine-radius-md)"
|
|
5489
5484
|
}
|
|
5490
5485
|
},
|
|
5491
|
-
children:
|
|
5486
|
+
children: G
|
|
5492
5487
|
}
|
|
5493
5488
|
);
|
|
5494
5489
|
}, ea = ({
|
|
@@ -5534,7 +5529,7 @@ const Fr = ({
|
|
|
5534
5529
|
roleOptions: s = [],
|
|
5535
5530
|
suggestedUsers: c = []
|
|
5536
5531
|
}) => {
|
|
5537
|
-
const l =
|
|
5532
|
+
const l = Q(null), {
|
|
5538
5533
|
emails: d,
|
|
5539
5534
|
setEmails: u,
|
|
5540
5535
|
selectedUsers: p,
|
|
@@ -5574,7 +5569,7 @@ const Fr = ({
|
|
|
5574
5569
|
zIndex: 300,
|
|
5575
5570
|
children: /* @__PURE__ */ w($, { gap: "lg", children: [
|
|
5576
5571
|
/* @__PURE__ */ w(F, { justify: "space-between", wrap: "nowrap", children: [
|
|
5577
|
-
/* @__PURE__ */ e(
|
|
5572
|
+
/* @__PURE__ */ e(E, { size: "md", fw: 500, c: "var(--mantine-color-gray-8)", children: "Share" }),
|
|
5578
5573
|
/* @__PURE__ */ e(
|
|
5579
5574
|
pe,
|
|
5580
5575
|
{
|
|
@@ -5601,7 +5596,7 @@ const Fr = ({
|
|
|
5601
5596
|
}
|
|
5602
5597
|
),
|
|
5603
5598
|
a.length > 0 && /* @__PURE__ */ w(x, { children: [
|
|
5604
|
-
/* @__PURE__ */ e(
|
|
5599
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, children: "Already members" }),
|
|
5605
5600
|
/* @__PURE__ */ e(Be, { h: "sm" }),
|
|
5606
5601
|
/* @__PURE__ */ e(
|
|
5607
5602
|
x,
|
|
@@ -5631,7 +5626,7 @@ const Fr = ({
|
|
|
5631
5626
|
)
|
|
5632
5627
|
] }),
|
|
5633
5628
|
b.length > 0 && /* @__PURE__ */ w(x, { children: [
|
|
5634
|
-
/* @__PURE__ */ w(
|
|
5629
|
+
/* @__PURE__ */ w(E, { size: "sm", fw: 500, children: [
|
|
5635
5630
|
"Suggested ",
|
|
5636
5631
|
f.trim() && `(filtered by "${f}")`
|
|
5637
5632
|
] }),
|
|
@@ -5719,7 +5714,7 @@ const Fr = ({
|
|
|
5719
5714
|
backgroundColor: "var(--mantine-color-gray-0)"
|
|
5720
5715
|
},
|
|
5721
5716
|
children: /* @__PURE__ */ e(Se, { h: "100%", children: /* @__PURE__ */ e($, { gap: 0, p: "sm", children: a.map((g) => /* @__PURE__ */ e(x, { mb: "md", children: /* @__PURE__ */ w(Me.Fragment, { children: [
|
|
5722
|
-
/* @__PURE__ */ e(
|
|
5717
|
+
/* @__PURE__ */ e(E, { size: "xs", fw: 600, c: "dimmed", m: 4, children: g }),
|
|
5723
5718
|
t.filter((h) => h.group === g).map((h) => /* @__PURE__ */ e(
|
|
5724
5719
|
wt,
|
|
5725
5720
|
{
|
|
@@ -5736,8 +5731,8 @@ const Fr = ({
|
|
|
5736
5731
|
/* @__PURE__ */ w(x, { style: { flex: 1, display: "flex", flexDirection: "column" }, children: [
|
|
5737
5732
|
f ? /* @__PURE__ */ w(he, { children: [
|
|
5738
5733
|
/* @__PURE__ */ e(x, { p: "md", children: /* @__PURE__ */ e(F, { gap: "md", wrap: "nowrap", children: /* @__PURE__ */ w($, { gap: 4, children: [
|
|
5739
|
-
/* @__PURE__ */ e(
|
|
5740
|
-
f.description && /* @__PURE__ */ e(
|
|
5734
|
+
/* @__PURE__ */ e(E, { size: "md", fw: 600, children: f.alternateLabel || f.label }),
|
|
5735
|
+
f.description && /* @__PURE__ */ e(E, { size: "sm", c: "var(--mantine-color-gray-6)", children: f.description })
|
|
5741
5736
|
] }) }) }),
|
|
5742
5737
|
/* @__PURE__ */ e(Se, { style: { flex: 1 }, children: /* @__PURE__ */ e(x, { px: "md", children: f.content }) })
|
|
5743
5738
|
] }) : /* @__PURE__ */ e(
|
|
@@ -5749,7 +5744,7 @@ const Fr = ({
|
|
|
5749
5744
|
justifyContent: "center",
|
|
5750
5745
|
height: "100%"
|
|
5751
5746
|
},
|
|
5752
|
-
children: /* @__PURE__ */ e(
|
|
5747
|
+
children: /* @__PURE__ */ e(E, { c: "var(--mantine-color-gray-6)", size: "lg", children: "Select an option from the sidebar" })
|
|
5753
5748
|
}
|
|
5754
5749
|
),
|
|
5755
5750
|
(f == null ? void 0 : f.saveButton) && /* @__PURE__ */ e(x, { p: "md", children: /* @__PURE__ */ w(F, { justify: "flex-end", gap: "md", children: [
|
|
@@ -5922,7 +5917,7 @@ const Fr = ({
|
|
|
5922
5917
|
children: r
|
|
5923
5918
|
}
|
|
5924
5919
|
),
|
|
5925
|
-
/* @__PURE__ */ w(
|
|
5920
|
+
/* @__PURE__ */ w(E, { size: "xs", c: "dimmed", fw: 500, style: { whiteSpace: "nowrap" }, children: [
|
|
5926
5921
|
n.category ? ((g = n.category) == null ? void 0 : g.charAt(0).toUpperCase()) + ((h = n.category) == null ? void 0 : h.slice(1)) : "",
|
|
5927
5922
|
" ",
|
|
5928
5923
|
"• ",
|
|
@@ -5957,16 +5952,16 @@ const Fr = ({
|
|
|
5957
5952
|
}
|
|
5958
5953
|
);
|
|
5959
5954
|
}, oi = (n, r, t, o, i) => {
|
|
5960
|
-
const [a, s] = O(!1), c =
|
|
5955
|
+
const [a, s] = O(!1), c = Q(null), l = Q(null), d = Q(null);
|
|
5961
5956
|
_(() => {
|
|
5962
5957
|
s(n);
|
|
5963
5958
|
}, [n]);
|
|
5964
|
-
const u =
|
|
5959
|
+
const u = L(
|
|
5965
5960
|
(f) => {
|
|
5966
5961
|
f[0].isIntersecting && o && !i && t && t();
|
|
5967
5962
|
},
|
|
5968
5963
|
[o, i, t]
|
|
5969
|
-
), p =
|
|
5964
|
+
), p = L(() => {
|
|
5970
5965
|
if (!(!c.current || !n || !r || !t)) {
|
|
5971
5966
|
l.current && (l.current.disconnect(), l.current = null);
|
|
5972
5967
|
try {
|
|
@@ -6151,7 +6146,7 @@ const Fr = ({
|
|
|
6151
6146
|
px: "sm",
|
|
6152
6147
|
py: "md",
|
|
6153
6148
|
children: [
|
|
6154
|
-
/* @__PURE__ */ e(
|
|
6149
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, children: "Inbox" }),
|
|
6155
6150
|
/* @__PURE__ */ w(F, { gap: "xs", children: [
|
|
6156
6151
|
/* @__PURE__ */ e(
|
|
6157
6152
|
tn,
|
|
@@ -6209,7 +6204,7 @@ const Fr = ({
|
|
|
6209
6204
|
py: "xl",
|
|
6210
6205
|
children: [
|
|
6211
6206
|
/* @__PURE__ */ e(Ro, { size: 24, color: "var(--mantine-color-gray-6)" }),
|
|
6212
|
-
/* @__PURE__ */ e(
|
|
6207
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, c: "dimmed", ta: "center", mt: "sm", children: "No new updates" })
|
|
6213
6208
|
]
|
|
6214
6209
|
}
|
|
6215
6210
|
),
|
|
@@ -6226,13 +6221,13 @@ const Fr = ({
|
|
|
6226
6221
|
},
|
|
6227
6222
|
children: t && /* @__PURE__ */ w(F, { display: "flex", ta: "center", gap: "xs", children: [
|
|
6228
6223
|
/* @__PURE__ */ e(ke, { size: "sm", color: "gray.5" }),
|
|
6229
|
-
/* @__PURE__ */ e(
|
|
6224
|
+
/* @__PURE__ */ e(E, { size: "sm", c: "dimmed", fw: 500, children: "Loading more ..." })
|
|
6230
6225
|
] })
|
|
6231
6226
|
}
|
|
6232
6227
|
),
|
|
6233
6228
|
t && !m && /* @__PURE__ */ w(F, { display: "flex", ta: "center", gap: "xs", children: [
|
|
6234
6229
|
/* @__PURE__ */ e(ke, { size: "sm", color: "gray.5" }),
|
|
6235
|
-
/* @__PURE__ */ e(
|
|
6230
|
+
/* @__PURE__ */ e(E, { size: "sm", c: "dimmed", fw: 500, children: "Loading more ..." })
|
|
6236
6231
|
] }),
|
|
6237
6232
|
!m && o && d && /* @__PURE__ */ e(
|
|
6238
6233
|
ce,
|
|
@@ -6347,7 +6342,7 @@ const Fr = ({
|
|
|
6347
6342
|
}
|
|
6348
6343
|
),
|
|
6349
6344
|
/* @__PURE__ */ e(
|
|
6350
|
-
|
|
6345
|
+
E,
|
|
6351
6346
|
{
|
|
6352
6347
|
size: "sm",
|
|
6353
6348
|
fw: 500,
|
|
@@ -6412,12 +6407,12 @@ const Fr = ({
|
|
|
6412
6407
|
if (o)
|
|
6413
6408
|
return /* @__PURE__ */ w(F, { gap: "xs", children: [
|
|
6414
6409
|
/* @__PURE__ */ e(ke, { size: "sm" }),
|
|
6415
|
-
/* @__PURE__ */ e(
|
|
6410
|
+
/* @__PURE__ */ e(E, { size: "sm", c: "dimmed", children: l })
|
|
6416
6411
|
] });
|
|
6417
6412
|
if (i)
|
|
6418
6413
|
return /* @__PURE__ */ e(ho, { color: "red", title: "Error", children: d });
|
|
6419
6414
|
const [R, k] = O(f);
|
|
6420
|
-
return n.length === 0 && !o && !i ? /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(
|
|
6415
|
+
return n.length === 0 && !o && !i ? /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(E, { size: "sm", c: "dimmed", children: c }) }) : /* @__PURE__ */ w(
|
|
6421
6416
|
me,
|
|
6422
6417
|
{
|
|
6423
6418
|
opened: I,
|
|
@@ -6466,7 +6461,7 @@ const Fr = ({
|
|
|
6466
6461
|
}
|
|
6467
6462
|
),
|
|
6468
6463
|
/* @__PURE__ */ e(
|
|
6469
|
-
|
|
6464
|
+
E,
|
|
6470
6465
|
{
|
|
6471
6466
|
size: "sm",
|
|
6472
6467
|
fw: 550,
|
|
@@ -6498,7 +6493,7 @@ const Fr = ({
|
|
|
6498
6493
|
}
|
|
6499
6494
|
)
|
|
6500
6495
|
] })
|
|
6501
|
-
] }) : /* @__PURE__ */ e(
|
|
6496
|
+
] }) : /* @__PURE__ */ e(E, { size: "sm", c: "dimmed", children: "Select workspace" })
|
|
6502
6497
|
}
|
|
6503
6498
|
)
|
|
6504
6499
|
}
|
|
@@ -6514,9 +6509,9 @@ const Fr = ({
|
|
|
6514
6509
|
children: /* @__PURE__ */ w($, { gap: 0, children: [
|
|
6515
6510
|
g,
|
|
6516
6511
|
/* @__PURE__ */ e(me.Divider, { style: { margin: "1px 0px" } }),
|
|
6517
|
-
/* @__PURE__ */ e($, { gap: 0, px: 4, children: S.length === 0 ? /* @__PURE__ */ e(me.Item, { disabled: !0, children: /* @__PURE__ */ e(
|
|
6512
|
+
/* @__PURE__ */ e($, { gap: 0, px: 4, children: S.length === 0 ? /* @__PURE__ */ e(me.Item, { disabled: !0, children: /* @__PURE__ */ e(E, { size: "sm", c: "dimmed", children: c }) }) : /* @__PURE__ */ w(he, { children: [
|
|
6518
6513
|
/* @__PURE__ */ w(F, { justify: "space-between", align: "center", p: 4, children: [
|
|
6519
|
-
/* @__PURE__ */ e(
|
|
6514
|
+
/* @__PURE__ */ e(E, { size: "xs", c: "dimmed", fw: 500, p: 4, truncate: !0, children: "Workspaces" }),
|
|
6520
6515
|
s && /* @__PURE__ */ e(
|
|
6521
6516
|
at,
|
|
6522
6517
|
{
|
|
@@ -6708,7 +6703,7 @@ const jt = ({
|
|
|
6708
6703
|
onBlockPress: l,
|
|
6709
6704
|
...d
|
|
6710
6705
|
}) => {
|
|
6711
|
-
const [u, p] = O(!1), f =
|
|
6706
|
+
const [u, p] = O(!1), f = Q(null), g = Q(!1), h = () => {
|
|
6712
6707
|
!o || !l || (p(!0), g.current = !1, f.current = setTimeout(() => {
|
|
6713
6708
|
g.current = !0, l(o);
|
|
6714
6709
|
}, 500));
|
|
@@ -6758,7 +6753,7 @@ const Ft = ({
|
|
|
6758
6753
|
onBlockPress: l,
|
|
6759
6754
|
...d
|
|
6760
6755
|
}) => {
|
|
6761
|
-
const [u, p] = O(!1), f =
|
|
6756
|
+
const [u, p] = O(!1), f = Q(null), g = Q(!1), h = () => {
|
|
6762
6757
|
!o || !l || (p(!0), g.current = !1, f.current = setTimeout(() => {
|
|
6763
6758
|
g.current = !0, l(o);
|
|
6764
6759
|
}, 500));
|
|
@@ -6808,7 +6803,7 @@ const Nt = ({
|
|
|
6808
6803
|
onBlockPress: l,
|
|
6809
6804
|
...d
|
|
6810
6805
|
}) => {
|
|
6811
|
-
const [u, p] = O(!1), f =
|
|
6806
|
+
const [u, p] = O(!1), f = Q(null), g = Q(!1), h = () => {
|
|
6812
6807
|
!o || !l || (p(!0), g.current = !1, f.current = setTimeout(() => {
|
|
6813
6808
|
g.current = !0, l(o);
|
|
6814
6809
|
}, 500));
|
|
@@ -6858,7 +6853,7 @@ const Ut = ({
|
|
|
6858
6853
|
onBlockPress: l,
|
|
6859
6854
|
...d
|
|
6860
6855
|
}) => {
|
|
6861
|
-
const [u, p] = O(!1), f =
|
|
6856
|
+
const [u, p] = O(!1), f = Q(null), g = Q(!1), h = () => {
|
|
6862
6857
|
!o || !l || (p(!0), g.current = !1, f.current = setTimeout(() => {
|
|
6863
6858
|
g.current = !0, l(o);
|
|
6864
6859
|
}, 500));
|
|
@@ -7017,13 +7012,13 @@ const Ht = ({
|
|
|
7017
7012
|
onDownNext: k,
|
|
7018
7013
|
downCurrentPage: M = 1,
|
|
7019
7014
|
downTotalPages: y = 1,
|
|
7020
|
-
downDisabled:
|
|
7015
|
+
downDisabled: D = !1,
|
|
7021
7016
|
downVisible: z = !1,
|
|
7022
|
-
onDownHover:
|
|
7023
|
-
onLeftAdd:
|
|
7024
|
-
onRightAdd:
|
|
7025
|
-
onUpAdd:
|
|
7026
|
-
onDownAdd:
|
|
7017
|
+
onDownHover: T,
|
|
7018
|
+
onLeftAdd: j,
|
|
7019
|
+
onRightAdd: V,
|
|
7020
|
+
onUpAdd: q,
|
|
7021
|
+
onDownAdd: G,
|
|
7027
7022
|
size: U = "md",
|
|
7028
7023
|
inline: K = !1
|
|
7029
7024
|
}) => {
|
|
@@ -7046,7 +7041,7 @@ const Ht = ({
|
|
|
7046
7041
|
{
|
|
7047
7042
|
size: U,
|
|
7048
7043
|
variant: "subtle",
|
|
7049
|
-
onClick:
|
|
7044
|
+
onClick: j,
|
|
7050
7045
|
color: "blue",
|
|
7051
7046
|
radius: "md",
|
|
7052
7047
|
"aria-label": "Add left blocks",
|
|
@@ -7085,7 +7080,7 @@ const Ht = ({
|
|
|
7085
7080
|
{
|
|
7086
7081
|
size: U,
|
|
7087
7082
|
variant: "subtle",
|
|
7088
|
-
onClick:
|
|
7083
|
+
onClick: V,
|
|
7089
7084
|
color: "blue",
|
|
7090
7085
|
radius: "md",
|
|
7091
7086
|
"aria-label": "Add right blocks",
|
|
@@ -7105,7 +7100,7 @@ const Ht = ({
|
|
|
7105
7100
|
children: /* @__PURE__ */ e(en, { size: 16, stroke: 2 })
|
|
7106
7101
|
}
|
|
7107
7102
|
)
|
|
7108
|
-
] }),
|
|
7103
|
+
] }), H = () => b <= 1 || v ? null : /* @__PURE__ */ w(F, { gap: "xs", align: "center", wrap: "nowrap", children: [
|
|
7109
7104
|
/* @__PURE__ */ e(
|
|
7110
7105
|
le,
|
|
7111
7106
|
{
|
|
@@ -7124,7 +7119,7 @@ const Ht = ({
|
|
|
7124
7119
|
{
|
|
7125
7120
|
size: U,
|
|
7126
7121
|
variant: "subtle",
|
|
7127
|
-
onClick:
|
|
7122
|
+
onClick: q,
|
|
7128
7123
|
color: "blue",
|
|
7129
7124
|
radius: "md",
|
|
7130
7125
|
"aria-label": "Add up blocks",
|
|
@@ -7144,7 +7139,7 @@ const Ht = ({
|
|
|
7144
7139
|
children: /* @__PURE__ */ e(Ve, { size: 16, stroke: 2 })
|
|
7145
7140
|
}
|
|
7146
7141
|
)
|
|
7147
|
-
] }),
|
|
7142
|
+
] }), X = () => y <= 1 || D ? null : /* @__PURE__ */ w(F, { gap: "xs", align: "center", wrap: "nowrap", children: [
|
|
7148
7143
|
/* @__PURE__ */ e(
|
|
7149
7144
|
le,
|
|
7150
7145
|
{
|
|
@@ -7163,7 +7158,7 @@ const Ht = ({
|
|
|
7163
7158
|
{
|
|
7164
7159
|
size: U,
|
|
7165
7160
|
variant: "subtle",
|
|
7166
|
-
onClick:
|
|
7161
|
+
onClick: G,
|
|
7167
7162
|
color: "blue",
|
|
7168
7163
|
radius: "md",
|
|
7169
7164
|
"aria-label": "Add down blocks",
|
|
@@ -7183,8 +7178,8 @@ const Ht = ({
|
|
|
7183
7178
|
children: /* @__PURE__ */ e(Ve, { size: 16, stroke: 2 })
|
|
7184
7179
|
}
|
|
7185
7180
|
)
|
|
7186
|
-
] }), B = o > 1 && !i,
|
|
7187
|
-
return !B && !
|
|
7181
|
+
] }), B = o > 1 && !i, A = u > 1 && !p, N = b > 1 && !v, P = y > 1 && !D;
|
|
7182
|
+
return !B && !A && !N && !P ? null : K ? /* @__PURE__ */ w(he, { children: [
|
|
7188
7183
|
B && a && n && r && /* @__PURE__ */ e(
|
|
7189
7184
|
"div",
|
|
7190
7185
|
{
|
|
@@ -7193,7 +7188,7 @@ const Ht = ({
|
|
|
7193
7188
|
children: W()
|
|
7194
7189
|
}
|
|
7195
7190
|
),
|
|
7196
|
-
|
|
7191
|
+
A && f && c && l && /* @__PURE__ */ e(
|
|
7197
7192
|
"div",
|
|
7198
7193
|
{
|
|
7199
7194
|
onMouseEnter: () => g == null ? void 0 : g(!0),
|
|
@@ -7206,15 +7201,15 @@ const Ht = ({
|
|
|
7206
7201
|
{
|
|
7207
7202
|
onMouseEnter: () => C == null ? void 0 : C(!0),
|
|
7208
7203
|
onMouseLeave: () => C == null ? void 0 : C(!1),
|
|
7209
|
-
children:
|
|
7204
|
+
children: H()
|
|
7210
7205
|
}
|
|
7211
7206
|
),
|
|
7212
|
-
|
|
7207
|
+
P && z && R && k && /* @__PURE__ */ e(
|
|
7213
7208
|
"div",
|
|
7214
7209
|
{
|
|
7215
|
-
onMouseEnter: () =>
|
|
7216
|
-
onMouseLeave: () =>
|
|
7217
|
-
children:
|
|
7210
|
+
onMouseEnter: () => T == null ? void 0 : T(!0),
|
|
7211
|
+
onMouseLeave: () => T == null ? void 0 : T(!1),
|
|
7212
|
+
children: X()
|
|
7218
7213
|
}
|
|
7219
7214
|
)
|
|
7220
7215
|
] }) : /* @__PURE__ */ w(he, { children: [
|
|
@@ -7236,7 +7231,7 @@ const Ht = ({
|
|
|
7236
7231
|
children: W()
|
|
7237
7232
|
}
|
|
7238
7233
|
),
|
|
7239
|
-
|
|
7234
|
+
A && f && c && l && /* @__PURE__ */ e(
|
|
7240
7235
|
x,
|
|
7241
7236
|
{
|
|
7242
7237
|
style: {
|
|
@@ -7269,7 +7264,7 @@ const Ht = ({
|
|
|
7269
7264
|
},
|
|
7270
7265
|
onMouseEnter: () => C == null ? void 0 : C(!0),
|
|
7271
7266
|
onMouseLeave: () => C == null ? void 0 : C(!1),
|
|
7272
|
-
children:
|
|
7267
|
+
children: H()
|
|
7273
7268
|
}
|
|
7274
7269
|
),
|
|
7275
7270
|
/* @__PURE__ */ e(
|
|
@@ -7285,9 +7280,9 @@ const Ht = ({
|
|
|
7285
7280
|
opacity: z ? 1 : 0,
|
|
7286
7281
|
transition: "opacity 0.2s ease"
|
|
7287
7282
|
},
|
|
7288
|
-
onMouseEnter: () =>
|
|
7289
|
-
onMouseLeave: () =>
|
|
7290
|
-
children:
|
|
7283
|
+
onMouseEnter: () => T == null ? void 0 : T(!0),
|
|
7284
|
+
onMouseLeave: () => T == null ? void 0 : T(!1),
|
|
7285
|
+
children: P && z && R && k && X()
|
|
7291
7286
|
}
|
|
7292
7287
|
)
|
|
7293
7288
|
] });
|
|
@@ -7489,7 +7484,7 @@ const qe = ({
|
|
|
7489
7484
|
), M = Math.min(k + c, o), y = Math.min(
|
|
7490
7485
|
u.downStartIndex,
|
|
7491
7486
|
Math.max(0, i - l)
|
|
7492
|
-
),
|
|
7487
|
+
), D = Math.min(
|
|
7493
7488
|
y + l,
|
|
7494
7489
|
i
|
|
7495
7490
|
);
|
|
@@ -7505,7 +7500,7 @@ const qe = ({
|
|
|
7505
7500
|
upStartIndex: k,
|
|
7506
7501
|
upEndIndex: M,
|
|
7507
7502
|
downStartIndex: y,
|
|
7508
|
-
downEndIndex:
|
|
7503
|
+
downEndIndex: D
|
|
7509
7504
|
};
|
|
7510
7505
|
}, [
|
|
7511
7506
|
u,
|
|
@@ -7519,7 +7514,7 @@ const qe = ({
|
|
|
7519
7514
|
o,
|
|
7520
7515
|
i
|
|
7521
7516
|
]), g = {
|
|
7522
|
-
goToLeftPage:
|
|
7517
|
+
goToLeftPage: L(
|
|
7523
7518
|
(h) => {
|
|
7524
7519
|
const I = Math.max(0, (h - 1) * a);
|
|
7525
7520
|
p((m) => ({
|
|
@@ -7532,7 +7527,7 @@ const qe = ({
|
|
|
7532
7527
|
},
|
|
7533
7528
|
[a, r]
|
|
7534
7529
|
),
|
|
7535
|
-
goToRightPage:
|
|
7530
|
+
goToRightPage: L(
|
|
7536
7531
|
(h) => {
|
|
7537
7532
|
const I = Math.max(0, (h - 1) * s);
|
|
7538
7533
|
p((m) => ({
|
|
@@ -7545,7 +7540,7 @@ const qe = ({
|
|
|
7545
7540
|
},
|
|
7546
7541
|
[s, t]
|
|
7547
7542
|
),
|
|
7548
|
-
goToUpPage:
|
|
7543
|
+
goToUpPage: L(
|
|
7549
7544
|
(h) => {
|
|
7550
7545
|
const I = Math.max(0, (h - 1) * c);
|
|
7551
7546
|
p((m) => ({
|
|
@@ -7558,7 +7553,7 @@ const qe = ({
|
|
|
7558
7553
|
},
|
|
7559
7554
|
[c, o]
|
|
7560
7555
|
),
|
|
7561
|
-
goToDownPage:
|
|
7556
|
+
goToDownPage: L(
|
|
7562
7557
|
(h) => {
|
|
7563
7558
|
const I = Math.max(0, (h - 1) * l);
|
|
7564
7559
|
p((m) => ({
|
|
@@ -7572,7 +7567,7 @@ const qe = ({
|
|
|
7572
7567
|
[l, i]
|
|
7573
7568
|
),
|
|
7574
7569
|
// Step-by-step navigation - advance by one block
|
|
7575
|
-
nextLeftPage:
|
|
7570
|
+
nextLeftPage: L(() => {
|
|
7576
7571
|
p((h) => ({
|
|
7577
7572
|
...h,
|
|
7578
7573
|
leftStartIndex: Math.min(
|
|
@@ -7581,13 +7576,13 @@ const qe = ({
|
|
|
7581
7576
|
)
|
|
7582
7577
|
}));
|
|
7583
7578
|
}, [r, a]),
|
|
7584
|
-
previousLeftPage:
|
|
7579
|
+
previousLeftPage: L(() => {
|
|
7585
7580
|
p((h) => ({
|
|
7586
7581
|
...h,
|
|
7587
7582
|
leftStartIndex: Math.max(h.leftStartIndex - 1, 0)
|
|
7588
7583
|
}));
|
|
7589
7584
|
}, []),
|
|
7590
|
-
nextRightPage:
|
|
7585
|
+
nextRightPage: L(() => {
|
|
7591
7586
|
p((h) => ({
|
|
7592
7587
|
...h,
|
|
7593
7588
|
rightStartIndex: Math.min(
|
|
@@ -7596,13 +7591,13 @@ const qe = ({
|
|
|
7596
7591
|
)
|
|
7597
7592
|
}));
|
|
7598
7593
|
}, [t, s]),
|
|
7599
|
-
previousRightPage:
|
|
7594
|
+
previousRightPage: L(() => {
|
|
7600
7595
|
p((h) => ({
|
|
7601
7596
|
...h,
|
|
7602
7597
|
rightStartIndex: Math.max(h.rightStartIndex - 1, 0)
|
|
7603
7598
|
}));
|
|
7604
7599
|
}, []),
|
|
7605
|
-
nextUpPage:
|
|
7600
|
+
nextUpPage: L(() => {
|
|
7606
7601
|
p((h) => ({
|
|
7607
7602
|
...h,
|
|
7608
7603
|
upStartIndex: Math.min(
|
|
@@ -7611,13 +7606,13 @@ const qe = ({
|
|
|
7611
7606
|
)
|
|
7612
7607
|
}));
|
|
7613
7608
|
}, [o, c]),
|
|
7614
|
-
previousUpPage:
|
|
7609
|
+
previousUpPage: L(() => {
|
|
7615
7610
|
p((h) => ({
|
|
7616
7611
|
...h,
|
|
7617
7612
|
upStartIndex: Math.max(h.upStartIndex - 1, 0)
|
|
7618
7613
|
}));
|
|
7619
7614
|
}, []),
|
|
7620
|
-
nextDownPage:
|
|
7615
|
+
nextDownPage: L(() => {
|
|
7621
7616
|
p((h) => ({
|
|
7622
7617
|
...h,
|
|
7623
7618
|
downStartIndex: Math.min(
|
|
@@ -7626,7 +7621,7 @@ const qe = ({
|
|
|
7626
7621
|
)
|
|
7627
7622
|
}));
|
|
7628
7623
|
}, [i, l]),
|
|
7629
|
-
previousDownPage:
|
|
7624
|
+
previousDownPage: L(() => {
|
|
7630
7625
|
p((h) => ({
|
|
7631
7626
|
...h,
|
|
7632
7627
|
downStartIndex: Math.max(h.downStartIndex - 1, 0)
|
|
@@ -7666,85 +7661,85 @@ const qe = ({
|
|
|
7666
7661
|
responsiveCellSize: C = !1,
|
|
7667
7662
|
minCellSize: R = "30px",
|
|
7668
7663
|
maxCellSize: k = "80px"
|
|
7669
|
-
} = n, M = parseFloat(l.replace("px", "")), y = parseFloat(d.replace("px", "")),
|
|
7670
|
-
|
|
7671
|
-
),
|
|
7664
|
+
} = n, M = parseFloat(l.replace("px", "")), y = parseFloat(d.replace("px", "")), D = a.width - M * 4, z = a.height - M * 4, T = y + M, j = Math.floor(
|
|
7665
|
+
D / (2 * T)
|
|
7666
|
+
), V = y + M, q = Math.floor(z / V) + 2, G = Math.min(j, q), U = Math.max(
|
|
7672
7667
|
u,
|
|
7673
|
-
Math.min(p,
|
|
7668
|
+
Math.min(p, G)
|
|
7674
7669
|
), K = Math.max(
|
|
7675
7670
|
f,
|
|
7676
|
-
Math.min(g, Math.floor(
|
|
7671
|
+
Math.min(g, Math.floor(G / 2))
|
|
7677
7672
|
), W = Math.max(
|
|
7678
7673
|
h,
|
|
7679
|
-
Math.min(I, Math.floor(
|
|
7674
|
+
Math.min(I, Math.floor(G / 2))
|
|
7680
7675
|
);
|
|
7681
7676
|
let re = d;
|
|
7682
7677
|
if (C) {
|
|
7683
|
-
const N = parseFloat(R.replace("px", "")),
|
|
7684
|
-
|
|
7678
|
+
const N = parseFloat(R.replace("px", "")), P = parseFloat(k.replace("px", "")), J = Math.min(
|
|
7679
|
+
D / (a.width * 0.8),
|
|
7685
7680
|
// Max 80% of screen width
|
|
7686
7681
|
z / (a.height * 0.8)
|
|
7687
7682
|
// Max 80% of screen height
|
|
7688
7683
|
);
|
|
7689
7684
|
re = `${Math.max(
|
|
7690
7685
|
N,
|
|
7691
|
-
Math.min(
|
|
7686
|
+
Math.min(P, y * J)
|
|
7692
7687
|
)}px`;
|
|
7693
7688
|
}
|
|
7694
|
-
const
|
|
7689
|
+
const H = Math.min(
|
|
7695
7690
|
a.width / 1920,
|
|
7696
7691
|
a.height / 1080
|
|
7697
7692
|
);
|
|
7698
|
-
let
|
|
7693
|
+
let X, B;
|
|
7699
7694
|
if (o > 0 && i > 0) {
|
|
7700
7695
|
const N = Math.max(o, i);
|
|
7701
|
-
|
|
7696
|
+
X = Math.max(
|
|
7702
7697
|
m,
|
|
7703
7698
|
Math.min(b, N)
|
|
7704
|
-
), B =
|
|
7699
|
+
), B = X;
|
|
7705
7700
|
} else {
|
|
7706
|
-
const N = Math.max(m, v),
|
|
7701
|
+
const N = Math.max(m, v), P = Math.min(b, S), J = Math.max(
|
|
7707
7702
|
N,
|
|
7708
7703
|
Math.min(
|
|
7709
|
-
|
|
7704
|
+
P,
|
|
7710
7705
|
Math.ceil(
|
|
7711
|
-
N + (
|
|
7706
|
+
N + (P - N) * H
|
|
7712
7707
|
)
|
|
7713
7708
|
)
|
|
7714
7709
|
);
|
|
7715
|
-
|
|
7710
|
+
X = J, B = J;
|
|
7716
7711
|
}
|
|
7717
|
-
if (
|
|
7718
|
-
const N = Math.max(2,
|
|
7712
|
+
if (X + B + 1 > q) {
|
|
7713
|
+
const N = Math.max(2, q - 1);
|
|
7719
7714
|
if (Math.max(m, v) * 2 > N) {
|
|
7720
7715
|
const J = Math.max(1, Math.floor(N / 2));
|
|
7721
|
-
|
|
7716
|
+
X = J, B = J;
|
|
7722
7717
|
} else {
|
|
7723
7718
|
const J = Math.max(m, v);
|
|
7724
|
-
|
|
7719
|
+
X = J, B = J;
|
|
7725
7720
|
}
|
|
7726
7721
|
}
|
|
7727
7722
|
return console.log("Responsive Matrix Debug:", {
|
|
7728
7723
|
windowSize: a,
|
|
7729
|
-
screenSizeRatio:
|
|
7724
|
+
screenSizeRatio: H,
|
|
7730
7725
|
minBlocksUp: m,
|
|
7731
7726
|
minBlocksDown: v,
|
|
7732
7727
|
maxBlocksUp: b,
|
|
7733
7728
|
maxBlocksDown: S,
|
|
7734
7729
|
blocksUp: o,
|
|
7735
7730
|
blocksDown: i,
|
|
7736
|
-
calculatedBlocksUp:
|
|
7731
|
+
calculatedBlocksUp: X,
|
|
7737
7732
|
calculatedBlocksDown: B,
|
|
7738
|
-
totalVerticalBlocks:
|
|
7739
|
-
isSymmetric:
|
|
7733
|
+
totalVerticalBlocks: X + B + 1,
|
|
7734
|
+
isSymmetric: X === B,
|
|
7740
7735
|
availableHeight: z,
|
|
7741
|
-
maxBlocksVertical:
|
|
7736
|
+
maxBlocksVertical: q
|
|
7742
7737
|
}), {
|
|
7743
7738
|
blocksPerSide: U,
|
|
7744
7739
|
blocksLeft: K,
|
|
7745
7740
|
blocksRight: W,
|
|
7746
7741
|
cellSize: re,
|
|
7747
|
-
blocksUp:
|
|
7742
|
+
blocksUp: X,
|
|
7748
7743
|
blocksDown: B
|
|
7749
7744
|
};
|
|
7750
7745
|
}, [a, n, r, t, o, i]);
|
|
@@ -7777,7 +7772,7 @@ const qe = ({
|
|
|
7777
7772
|
const y = Z(
|
|
7778
7773
|
() => s !== void 0 || c !== void 0 || l !== void 0 || d !== void 0,
|
|
7779
7774
|
[s, c, l, d]
|
|
7780
|
-
),
|
|
7775
|
+
), D = di(
|
|
7781
7776
|
{
|
|
7782
7777
|
gap: n,
|
|
7783
7778
|
cellSize: r,
|
|
@@ -7800,28 +7795,28 @@ const qe = ({
|
|
|
7800
7795
|
i,
|
|
7801
7796
|
a
|
|
7802
7797
|
), z = Z(() => {
|
|
7803
|
-
let
|
|
7798
|
+
let q = u ? D.blocksLeft : t ?? 0, G = u ? D.blocksRight : o ?? 0, U = u ? D.blocksUp : i ?? 0, K = u ? D.blocksDown : a ?? 0;
|
|
7804
7799
|
if (!u) {
|
|
7805
|
-
const W = parseFloat(n.replace("px", "")), re = parseFloat(r.replace("px", "")),
|
|
7806
|
-
|
|
7800
|
+
const W = parseFloat(n.replace("px", "")), re = parseFloat(r.replace("px", "")), H = typeof window < "u" ? window.innerWidth - W * 4 : 1920, X = typeof window < "u" ? window.innerHeight - W * 4 : 1080, B = re + W, A = Math.floor(
|
|
7801
|
+
H / (2 * B)
|
|
7807
7802
|
), N = Math.floor(
|
|
7808
|
-
|
|
7803
|
+
X / (2 * B)
|
|
7809
7804
|
);
|
|
7810
|
-
|
|
7805
|
+
q = Math.min(q, A), G = Math.min(G, A), U = Math.min(U, N), K = Math.min(K, N);
|
|
7811
7806
|
}
|
|
7812
|
-
return { left:
|
|
7807
|
+
return { left: q, right: G, up: U, down: K };
|
|
7813
7808
|
}, [
|
|
7814
7809
|
u,
|
|
7815
|
-
|
|
7810
|
+
D,
|
|
7816
7811
|
t,
|
|
7817
7812
|
o,
|
|
7818
7813
|
i,
|
|
7819
7814
|
a,
|
|
7820
7815
|
n,
|
|
7821
7816
|
r
|
|
7822
|
-
]),
|
|
7823
|
-
const
|
|
7824
|
-
return { left:
|
|
7817
|
+
]), T = Z(() => {
|
|
7818
|
+
const q = y && s ? Math.min(z.left, s) : z.left, G = y && c ? Math.min(z.right, c) : z.right, U = y && l ? Math.min(z.up, l) : z.up, K = y && d ? Math.min(z.down, d) : z.down;
|
|
7819
|
+
return { left: q, right: G, up: U, down: K };
|
|
7825
7820
|
}, [
|
|
7826
7821
|
y,
|
|
7827
7822
|
z,
|
|
@@ -7829,21 +7824,21 @@ const qe = ({
|
|
|
7829
7824
|
c,
|
|
7830
7825
|
l,
|
|
7831
7826
|
d
|
|
7832
|
-
]),
|
|
7833
|
-
const
|
|
7827
|
+
]), j = u ? D.cellSize : r, V = Z(() => {
|
|
7828
|
+
const q = (T.left > 0 ? T.left : 0) + 1 + (T.right > 0 ? T.right : 0), G = T.up > 0 || T.down > 0 ? T.up + 1 + T.down : 1, U = `${j} `.repeat(T.left) + "1fr " + `${j} `.repeat(T.right), K = T.up > 0 || T.down > 0 ? `${j} `.repeat(T.up) + "1fr " + `${j} `.repeat(T.down) : "1fr";
|
|
7834
7829
|
return {
|
|
7835
|
-
totalColumns:
|
|
7836
|
-
totalRows:
|
|
7830
|
+
totalColumns: q,
|
|
7831
|
+
totalRows: G,
|
|
7837
7832
|
gridTemplateColumns: U.trim(),
|
|
7838
7833
|
gridTemplateRows: K.trim()
|
|
7839
7834
|
};
|
|
7840
|
-
}, [
|
|
7835
|
+
}, [T, j]);
|
|
7841
7836
|
return {
|
|
7842
7837
|
usePagination: y,
|
|
7843
7838
|
visibleBlocks: z,
|
|
7844
|
-
finalBlocks:
|
|
7845
|
-
finalCellSize:
|
|
7846
|
-
gridDimensions:
|
|
7839
|
+
finalBlocks: T,
|
|
7840
|
+
finalCellSize: j,
|
|
7841
|
+
gridDimensions: V
|
|
7847
7842
|
};
|
|
7848
7843
|
}, fi = ({
|
|
7849
7844
|
blockItems: n
|
|
@@ -7976,7 +7971,7 @@ const qe = ({
|
|
|
7976
7971
|
const b = `${m.source}-${m.target}`, v = `${m.target}-${m.source}`;
|
|
7977
7972
|
I.set(b, m), I.set(v, m);
|
|
7978
7973
|
}), I;
|
|
7979
|
-
}, [r]), c =
|
|
7974
|
+
}, [r]), c = L(
|
|
7980
7975
|
(I) => {
|
|
7981
7976
|
const m = [];
|
|
7982
7977
|
return n.forEach((b) => {
|
|
@@ -7987,7 +7982,7 @@ const qe = ({
|
|
|
7987
7982
|
}), m;
|
|
7988
7983
|
},
|
|
7989
7984
|
[n, s]
|
|
7990
|
-
), l =
|
|
7985
|
+
), l = L(
|
|
7991
7986
|
(I) => {
|
|
7992
7987
|
const m = n.find((S) => S.id === I);
|
|
7993
7988
|
if (!m)
|
|
@@ -8034,20 +8029,20 @@ const qe = ({
|
|
|
8034
8029
|
return [...new Set(v)];
|
|
8035
8030
|
},
|
|
8036
8031
|
[n, c]
|
|
8037
|
-
), d =
|
|
8032
|
+
), d = L((I) => !0, []), u = L(
|
|
8038
8033
|
(I) => !i || !t ? !1 : !l(t).includes(I),
|
|
8039
8034
|
[i, t, l]
|
|
8040
|
-
), p =
|
|
8035
|
+
), p = L(
|
|
8041
8036
|
(I) => !i || !t ? !1 : l(t).includes(I),
|
|
8042
8037
|
[i, t, l]
|
|
8043
|
-
), f =
|
|
8038
|
+
), f = L(
|
|
8044
8039
|
(I) => {
|
|
8045
8040
|
i && t === I ? (a(!1), o(null)) : (o(I), a(!0));
|
|
8046
8041
|
},
|
|
8047
8042
|
[i, t]
|
|
8048
|
-
), g =
|
|
8043
|
+
), g = L((I) => {
|
|
8049
8044
|
console.log(`Block clicked: ${I}`);
|
|
8050
|
-
}, []), h =
|
|
8045
|
+
}, []), h = L(() => {
|
|
8051
8046
|
a(!1), o(null);
|
|
8052
8047
|
}, []);
|
|
8053
8048
|
return {
|
|
@@ -8062,7 +8057,7 @@ const qe = ({
|
|
|
8062
8057
|
getFilteredBlockIds: l
|
|
8063
8058
|
};
|
|
8064
8059
|
}, qn = (n) => parseInt(n.replace(/[^\d]/g, ""), 10) || 0, gi = (n, r) => {
|
|
8065
|
-
const [t, o] = O({ width: 0, height: 0 }), i =
|
|
8060
|
+
const [t, o] = O({ width: 0, height: 0 }), i = L(() => {
|
|
8066
8061
|
const { width: a, height: s } = t;
|
|
8067
8062
|
if (a === 0 || s === 0)
|
|
8068
8063
|
return {
|
|
@@ -8158,25 +8153,25 @@ const qe = ({
|
|
|
8158
8153
|
minBlocksPerSide: k = 2,
|
|
8159
8154
|
maxBlocksPerSide: M = 15,
|
|
8160
8155
|
minBlocksHorizontal: y = 2,
|
|
8161
|
-
maxBlocksHorizontal:
|
|
8156
|
+
maxBlocksHorizontal: D = 16,
|
|
8162
8157
|
minBlocksVertical: z = 2,
|
|
8163
|
-
maxBlocksVertical:
|
|
8158
|
+
maxBlocksVertical: T = 16,
|
|
8164
8159
|
// Legacy props (for backward compatibility)
|
|
8165
|
-
minBlocksLeft:
|
|
8166
|
-
maxBlocksLeft:
|
|
8167
|
-
minBlocksRight:
|
|
8168
|
-
maxBlocksRight:
|
|
8160
|
+
minBlocksLeft: j = 1,
|
|
8161
|
+
maxBlocksLeft: V = 8,
|
|
8162
|
+
minBlocksRight: q = 1,
|
|
8163
|
+
maxBlocksRight: G = 8,
|
|
8169
8164
|
minBlocksUp: U = 1,
|
|
8170
8165
|
maxBlocksUp: K = 8,
|
|
8171
8166
|
minBlocksDown: W = 1,
|
|
8172
8167
|
maxBlocksDown: re = 8,
|
|
8173
|
-
responsiveCellSize:
|
|
8174
|
-
minCellSize:
|
|
8168
|
+
responsiveCellSize: H = !1,
|
|
8169
|
+
minCellSize: X = "30px",
|
|
8175
8170
|
maxCellSize: B = "80px",
|
|
8176
|
-
directionTexts:
|
|
8171
|
+
directionTexts: A,
|
|
8177
8172
|
...N
|
|
8178
8173
|
}) => {
|
|
8179
|
-
const
|
|
8174
|
+
const P = Q(null), J = gi(P, {
|
|
8180
8175
|
...Ii,
|
|
8181
8176
|
cellSize: o,
|
|
8182
8177
|
gap: t,
|
|
@@ -8184,7 +8179,7 @@ const qe = ({
|
|
|
8184
8179
|
});
|
|
8185
8180
|
let de = l, Y = d, ge = u, ie = p;
|
|
8186
8181
|
c ? (de = Math.floor(J.blocksLeft), Y = Math.floor(J.blocksRight), ge = Math.floor(J.blocksUp), ie = Math.floor(J.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), Y = Math.floor(a / 2)));
|
|
8187
|
-
const ze =
|
|
8182
|
+
const ze = j !== 1 ? j : Math.floor(y / 2), sn = V !== 8 ? V : Math.floor(D / 2), ln = q !== 1 ? q : Math.ceil(y / 2), Ie = G !== 8 ? G : Math.ceil(D / 2), Le = U !== 1 ? U : Math.floor(z / 2), Ge = K !== 8 ? K : Math.floor(T / 2), Gt = W !== 1 ? W : Math.ceil(z / 2), Qt = re !== 8 ? re : Math.ceil(T / 2), {
|
|
8188
8183
|
usePagination: Yt,
|
|
8189
8184
|
finalBlocks: ee,
|
|
8190
8185
|
finalCellSize: ve,
|
|
@@ -8211,8 +8206,8 @@ const qe = ({
|
|
|
8211
8206
|
maxBlocksUp: Ge,
|
|
8212
8207
|
minBlocksDown: Gt,
|
|
8213
8208
|
maxBlocksDown: Qt,
|
|
8214
|
-
responsiveCellSize:
|
|
8215
|
-
minCellSize:
|
|
8209
|
+
responsiveCellSize: H,
|
|
8210
|
+
minCellSize: X,
|
|
8216
8211
|
maxCellSize: B
|
|
8217
8212
|
}), { getBlockContent: Ye, getIntersectionText: Zt } = fi({
|
|
8218
8213
|
blockItems: f
|
|
@@ -8252,7 +8247,7 @@ const qe = ({
|
|
|
8252
8247
|
return /* @__PURE__ */ w(
|
|
8253
8248
|
x,
|
|
8254
8249
|
{
|
|
8255
|
-
ref:
|
|
8250
|
+
ref: P,
|
|
8256
8251
|
style: {
|
|
8257
8252
|
display: "grid",
|
|
8258
8253
|
gridTemplateColumns: Qe.gridTemplateColumns,
|
|
@@ -8290,7 +8285,7 @@ const qe = ({
|
|
|
8290
8285
|
qe,
|
|
8291
8286
|
{
|
|
8292
8287
|
direction: "left",
|
|
8293
|
-
text:
|
|
8288
|
+
text: A == null ? void 0 : A.left,
|
|
8294
8289
|
...Re("left")
|
|
8295
8290
|
}
|
|
8296
8291
|
),
|
|
@@ -8298,7 +8293,7 @@ const qe = ({
|
|
|
8298
8293
|
qe,
|
|
8299
8294
|
{
|
|
8300
8295
|
direction: "right",
|
|
8301
|
-
text:
|
|
8296
|
+
text: A == null ? void 0 : A.right,
|
|
8302
8297
|
...Re("right")
|
|
8303
8298
|
}
|
|
8304
8299
|
),
|
|
@@ -8306,7 +8301,7 @@ const qe = ({
|
|
|
8306
8301
|
qe,
|
|
8307
8302
|
{
|
|
8308
8303
|
direction: "up",
|
|
8309
|
-
text:
|
|
8304
|
+
text: A == null ? void 0 : A.up,
|
|
8310
8305
|
...Re("up")
|
|
8311
8306
|
}
|
|
8312
8307
|
),
|
|
@@ -8314,7 +8309,7 @@ const qe = ({
|
|
|
8314
8309
|
qe,
|
|
8315
8310
|
{
|
|
8316
8311
|
direction: "down",
|
|
8317
|
-
text:
|
|
8312
|
+
text: A == null ? void 0 : A.down,
|
|
8318
8313
|
...Re("down")
|
|
8319
8314
|
}
|
|
8320
8315
|
),
|
|
@@ -8487,7 +8482,7 @@ const Ae = ({
|
|
|
8487
8482
|
strokeWidth: 2
|
|
8488
8483
|
}
|
|
8489
8484
|
),
|
|
8490
|
-
/* @__PURE__ */ e(
|
|
8485
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, c: "gray.6", children: t })
|
|
8491
8486
|
] }),
|
|
8492
8487
|
/* @__PURE__ */ e(x, { style: { display: "flex", alignItems: "flex-start" }, w: "100%", children: n && r ? r : i })
|
|
8493
8488
|
] }) : /* @__PURE__ */ w(F, { align: "flex-start", gap: 0, w: "100%", ...c, ...l, children: [
|
|
@@ -8507,7 +8502,7 @@ const Ae = ({
|
|
|
8507
8502
|
strokeWidth: 2
|
|
8508
8503
|
}
|
|
8509
8504
|
),
|
|
8510
|
-
/* @__PURE__ */ e(
|
|
8505
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, truncate: !0, c: "gray.6", children: t })
|
|
8511
8506
|
]
|
|
8512
8507
|
}
|
|
8513
8508
|
),
|
|
@@ -8550,7 +8545,7 @@ const Ae = ({
|
|
|
8550
8545
|
{
|
|
8551
8546
|
label: n,
|
|
8552
8547
|
icon: r,
|
|
8553
|
-
value: /* @__PURE__ */ e(
|
|
8548
|
+
value: /* @__PURE__ */ e(E, { size: "sm", c: t ? void 0 : "dimmed", fw: 500, truncate: !0, children: t || a || "—" })
|
|
8554
8549
|
}
|
|
8555
8550
|
), sa = ({
|
|
8556
8551
|
label: n,
|
|
@@ -8605,7 +8600,7 @@ const Ae = ({
|
|
|
8605
8600
|
{
|
|
8606
8601
|
label: n,
|
|
8607
8602
|
icon: r,
|
|
8608
|
-
value: /* @__PURE__ */ e(
|
|
8603
|
+
value: /* @__PURE__ */ e(E, { size: "sm", c: c !== null ? void 0 : "dimmed", children: l || s || "—" })
|
|
8609
8604
|
}
|
|
8610
8605
|
);
|
|
8611
8606
|
}, vi = 300, xi = ({
|
|
@@ -8614,7 +8609,7 @@ const Ae = ({
|
|
|
8614
8609
|
debounceSearch: t = !0,
|
|
8615
8610
|
debounceDelay: o = vi
|
|
8616
8611
|
}) => {
|
|
8617
|
-
const [i, a] = O(""), [s, c] = O(n), [l, d] = O(!1), u =
|
|
8612
|
+
const [i, a] = O(""), [s, c] = O(n), [l, d] = O(!1), u = Q(null);
|
|
8618
8613
|
return _(() => {
|
|
8619
8614
|
if (!r) {
|
|
8620
8615
|
c(n);
|
|
@@ -8679,7 +8674,7 @@ const Ae = ({
|
|
|
8679
8674
|
isFocused: n,
|
|
8680
8675
|
dropdownRef: r
|
|
8681
8676
|
}) => {
|
|
8682
|
-
const [t, o] = O("bottom"), i =
|
|
8677
|
+
const [t, o] = O("bottom"), i = L(
|
|
8683
8678
|
(a) => {
|
|
8684
8679
|
if (r.current = a, a) {
|
|
8685
8680
|
const s = a.dataset.position;
|
|
@@ -8722,7 +8717,7 @@ const Ae = ({
|
|
|
8722
8717
|
loading: t,
|
|
8723
8718
|
setDisplayedUsers: o
|
|
8724
8719
|
}) => {
|
|
8725
|
-
const i =
|
|
8720
|
+
const i = Q(null);
|
|
8726
8721
|
return _(() => {
|
|
8727
8722
|
if (!n || !r || t)
|
|
8728
8723
|
return;
|
|
@@ -8744,9 +8739,9 @@ const Ae = ({
|
|
|
8744
8739
|
combobox: n,
|
|
8745
8740
|
dropdownRef: r
|
|
8746
8741
|
}) => {
|
|
8747
|
-
const [t, o] = O(!1), [i, a] = O(!1), s =
|
|
8742
|
+
const [t, o] = O(!1), [i, a] = O(!1), s = L(() => {
|
|
8748
8743
|
o(!0), n.openDropdown();
|
|
8749
|
-
}, [n]), c =
|
|
8744
|
+
}, [n]), c = L(
|
|
8750
8745
|
(u) => {
|
|
8751
8746
|
setTimeout(() => {
|
|
8752
8747
|
const p = u == null ? void 0 : u.relatedTarget;
|
|
@@ -8754,9 +8749,9 @@ const Ae = ({
|
|
|
8754
8749
|
}, 0);
|
|
8755
8750
|
},
|
|
8756
8751
|
[n, r]
|
|
8757
|
-
), l =
|
|
8752
|
+
), l = L(() => {
|
|
8758
8753
|
a(!0);
|
|
8759
|
-
}, []), d =
|
|
8754
|
+
}, []), d = L(() => {
|
|
8760
8755
|
a(!1);
|
|
8761
8756
|
}, []);
|
|
8762
8757
|
return {
|
|
@@ -8774,7 +8769,7 @@ const Ae = ({
|
|
|
8774
8769
|
onChange: t,
|
|
8775
8770
|
combobox: o
|
|
8776
8771
|
}) => {
|
|
8777
|
-
const i =
|
|
8772
|
+
const i = L(
|
|
8778
8773
|
(s) => {
|
|
8779
8774
|
if (n) {
|
|
8780
8775
|
const c = Array.isArray(r) ? r : [], l = c.includes(s) ? c.filter((d) => d !== s) : [...c, s];
|
|
@@ -8783,7 +8778,7 @@ const Ae = ({
|
|
|
8783
8778
|
t == null || t(s), o.closeDropdown();
|
|
8784
8779
|
},
|
|
8785
8780
|
[n, r, t, o]
|
|
8786
|
-
), a =
|
|
8781
|
+
), a = L(
|
|
8787
8782
|
(s) => {
|
|
8788
8783
|
if (n) {
|
|
8789
8784
|
const c = Array.isArray(r) ? r : [];
|
|
@@ -8814,7 +8809,7 @@ const Ae = ({
|
|
|
8814
8809
|
hasMore: g = !1,
|
|
8815
8810
|
loading: h = !1
|
|
8816
8811
|
}) => {
|
|
8817
|
-
const I =
|
|
8812
|
+
const I = Q(null), m = Q(null), b = Q(null), {
|
|
8818
8813
|
searchQuery: v,
|
|
8819
8814
|
setSearchQuery: S,
|
|
8820
8815
|
displayedUsers: C,
|
|
@@ -8827,23 +8822,23 @@ const Ae = ({
|
|
|
8827
8822
|
debounceDelay: p
|
|
8828
8823
|
}), M = rn({
|
|
8829
8824
|
onDropdownClose: () => {
|
|
8830
|
-
M.resetSelectedOption(), S(""),
|
|
8825
|
+
M.resetSelectedOption(), S(""), D(!1);
|
|
8831
8826
|
},
|
|
8832
8827
|
onDropdownOpen: () => {
|
|
8833
|
-
M.updateSelectedOptionIndex("active"),
|
|
8828
|
+
M.updateSelectedOptionIndex("active"), D(!0);
|
|
8834
8829
|
}
|
|
8835
8830
|
}), {
|
|
8836
8831
|
isFocused: y,
|
|
8837
|
-
setIsFocused:
|
|
8832
|
+
setIsFocused: D,
|
|
8838
8833
|
isHovered: z,
|
|
8839
|
-
handleFocus:
|
|
8840
|
-
handleBlur:
|
|
8841
|
-
handleMouseEnter:
|
|
8842
|
-
handleMouseLeave:
|
|
8834
|
+
handleFocus: T,
|
|
8835
|
+
handleBlur: j,
|
|
8836
|
+
handleMouseEnter: V,
|
|
8837
|
+
handleMouseLeave: q
|
|
8843
8838
|
} = Ci({
|
|
8844
8839
|
combobox: M,
|
|
8845
8840
|
dropdownRef: b
|
|
8846
|
-
}), { placement:
|
|
8841
|
+
}), { placement: G, dropdownRefCallback: U } = bi({
|
|
8847
8842
|
isFocused: y,
|
|
8848
8843
|
dropdownRef: b
|
|
8849
8844
|
}), { selectedIds: K, selectedUsers: W, sortedUsers: re } = wi({
|
|
@@ -8853,17 +8848,17 @@ const Ae = ({
|
|
|
8853
8848
|
displayedUsers: C,
|
|
8854
8849
|
searchQuery: v,
|
|
8855
8850
|
onSearch: d
|
|
8856
|
-
}), { loadMoreRef:
|
|
8851
|
+
}), { loadMoreRef: H } = Mi({
|
|
8857
8852
|
onLoadMore: f,
|
|
8858
8853
|
hasMore: g,
|
|
8859
8854
|
loading: h,
|
|
8860
8855
|
setDisplayedUsers: R
|
|
8861
|
-
}), { handleSelect:
|
|
8856
|
+
}), { handleSelect: X, handleRemove: B } = ki({
|
|
8862
8857
|
multiple: c,
|
|
8863
8858
|
value: o,
|
|
8864
8859
|
onChange: a,
|
|
8865
8860
|
combobox: M
|
|
8866
|
-
}),
|
|
8861
|
+
}), A = () => {
|
|
8867
8862
|
if (!c)
|
|
8868
8863
|
return null;
|
|
8869
8864
|
const Y = 5, ge = W.slice(0, Y), ie = W.length - Y;
|
|
@@ -8896,7 +8891,7 @@ const Ae = ({
|
|
|
8896
8891
|
style: { color: "var(--mantine-color-blue-5)" }
|
|
8897
8892
|
}
|
|
8898
8893
|
),
|
|
8899
|
-
/* @__PURE__ */ w(
|
|
8894
|
+
/* @__PURE__ */ w(E, { size: "sm", fw: 400, c: "var(--mantine-color-blue-5)", children: [
|
|
8900
8895
|
ie,
|
|
8901
8896
|
" more"
|
|
8902
8897
|
] })
|
|
@@ -8909,7 +8904,7 @@ const Ae = ({
|
|
|
8909
8904
|
return null;
|
|
8910
8905
|
const Y = W[0];
|
|
8911
8906
|
return Y ? /* @__PURE__ */ e(yn, { avatar: Y.avatar, name: Y.name }) : null;
|
|
8912
|
-
},
|
|
8907
|
+
}, P = () => y ? "var(--mantine-color-gray-2)" : "var(--mantine-color-gray-0)", J = () => ({
|
|
8913
8908
|
input: {
|
|
8914
8909
|
position: y ? "absolute" : "relative",
|
|
8915
8910
|
zIndex: y ? 1e3 : 1,
|
|
@@ -8918,14 +8913,14 @@ const Ae = ({
|
|
|
8918
8913
|
cursor: l ? "not-allowed" : "pointer",
|
|
8919
8914
|
backgroundColor: y || z ? "var(--mantine-color-gray-0)" : "transparent",
|
|
8920
8915
|
border: y ? "1px solid var(--mantine-color-gray-2)" : "1px solid transparent",
|
|
8921
|
-
borderRadius: y &&
|
|
8916
|
+
borderRadius: y && G === "bottom" ? "var(--mantine-radius-md) var(--mantine-radius-md) 0 0" : y && G === "top" ? "0 0 var(--mantine-radius-md) var(--mantine-radius-md)" : "var(--mantine-radius-md)",
|
|
8922
8917
|
paddingY: "6px",
|
|
8923
8918
|
display: "flex",
|
|
8924
8919
|
alignItems: "center",
|
|
8925
8920
|
padding: "6px 14px",
|
|
8926
8921
|
minHeight: "40px",
|
|
8927
8922
|
flexWrap: c ? "wrap" : "nowrap",
|
|
8928
|
-
boxShadow: y &&
|
|
8923
|
+
boxShadow: y && G === "bottom" ? "0 -4px 10px 0 rgba(0, 0, 0, 0.1)" : y && G === "top" ? "0 4px 10px 0 rgba(0, 0, 0, 0.1)" : "none"
|
|
8929
8924
|
}
|
|
8930
8925
|
}), de = {
|
|
8931
8926
|
group: {
|
|
@@ -8966,7 +8961,7 @@ const Ae = ({
|
|
|
8966
8961
|
oe,
|
|
8967
8962
|
{
|
|
8968
8963
|
store: M,
|
|
8969
|
-
onOptionSubmit:
|
|
8964
|
+
onOptionSubmit: X,
|
|
8970
8965
|
withinPortal: !1,
|
|
8971
8966
|
offset: -2,
|
|
8972
8967
|
children: [
|
|
@@ -8977,23 +8972,23 @@ const Ae = ({
|
|
|
8977
8972
|
radius: "md",
|
|
8978
8973
|
disabled: l,
|
|
8979
8974
|
styles: J,
|
|
8980
|
-
onFocus:
|
|
8981
|
-
onBlur:
|
|
8982
|
-
onMouseEnter: () => !l &&
|
|
8983
|
-
onMouseLeave:
|
|
8975
|
+
onFocus: T,
|
|
8976
|
+
onBlur: j,
|
|
8977
|
+
onMouseEnter: () => !l && V(),
|
|
8978
|
+
onMouseLeave: q,
|
|
8984
8979
|
w: "100%",
|
|
8985
8980
|
children: /* @__PURE__ */ w(
|
|
8986
8981
|
wn.Group,
|
|
8987
8982
|
{
|
|
8988
8983
|
styles: de,
|
|
8989
8984
|
children: [
|
|
8990
|
-
c ?
|
|
8985
|
+
c ? A() : N(),
|
|
8991
8986
|
/* @__PURE__ */ e(oe.EventsTarget, { children: /* @__PURE__ */ e(
|
|
8992
8987
|
Hn.Field,
|
|
8993
8988
|
{
|
|
8994
8989
|
ref: I,
|
|
8995
|
-
onFocus:
|
|
8996
|
-
onBlur:
|
|
8990
|
+
onFocus: T,
|
|
8991
|
+
onBlur: j,
|
|
8997
8992
|
placeholder: W.length === 0 || y || v.length > 0 ? s : "",
|
|
8998
8993
|
value: v,
|
|
8999
8994
|
onChange: (Y) => {
|
|
@@ -9047,12 +9042,12 @@ const Ae = ({
|
|
|
9047
9042
|
{
|
|
9048
9043
|
styles: {
|
|
9049
9044
|
dropdown: {
|
|
9050
|
-
borderRadius:
|
|
9045
|
+
borderRadius: G === "bottom" ? "0 0 var(--mantine-radius-md) var(--mantine-radius-md)" : "var(--mantine-radius-md) var(--mantine-radius-md) 0 0",
|
|
9051
9046
|
borderTop: "none",
|
|
9052
|
-
border: `1px solid ${
|
|
9047
|
+
border: `1px solid ${P()}`,
|
|
9053
9048
|
marginTop: "0",
|
|
9054
9049
|
padding: "4px",
|
|
9055
|
-
boxShadow:
|
|
9050
|
+
boxShadow: G === "bottom" ? "0 4px 10px 0 rgba(0, 0, 0, 0.1)" : "0 -4px 10px 0 rgba(0, 0, 0, 0.1)"
|
|
9056
9051
|
}
|
|
9057
9052
|
},
|
|
9058
9053
|
ref: U,
|
|
@@ -9071,7 +9066,7 @@ const Ae = ({
|
|
|
9071
9066
|
value: Y.id,
|
|
9072
9067
|
active: ge,
|
|
9073
9068
|
onMouseDown: (ie) => {
|
|
9074
|
-
ie.preventDefault(),
|
|
9069
|
+
ie.preventDefault(), X(Y.id);
|
|
9075
9070
|
},
|
|
9076
9071
|
style: {
|
|
9077
9072
|
borderRadius: "var(--mantine-radius-md)",
|
|
@@ -9097,7 +9092,7 @@ const Ae = ({
|
|
|
9097
9092
|
showPlaceholder: !0
|
|
9098
9093
|
}
|
|
9099
9094
|
),
|
|
9100
|
-
/* @__PURE__ */ e(
|
|
9095
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 400, truncate: !0, children: Y.name }),
|
|
9101
9096
|
ge && /* @__PURE__ */ e(
|
|
9102
9097
|
an,
|
|
9103
9098
|
{
|
|
@@ -9123,7 +9118,7 @@ const Ae = ({
|
|
|
9123
9118
|
children: /* @__PURE__ */ e(ke, { size: "sm" })
|
|
9124
9119
|
}
|
|
9125
9120
|
),
|
|
9126
|
-
f && g && !h && /* @__PURE__ */ e("div", { ref:
|
|
9121
|
+
f && g && !h && /* @__PURE__ */ e("div", { ref: H, style: { height: "20px" } }),
|
|
9127
9122
|
re.length === 0 && !k && !h && /* @__PURE__ */ e(
|
|
9128
9123
|
x,
|
|
9129
9124
|
{
|
|
@@ -9131,7 +9126,7 @@ const Ae = ({
|
|
|
9131
9126
|
padding: "24px",
|
|
9132
9127
|
textAlign: "center"
|
|
9133
9128
|
},
|
|
9134
|
-
children: /* @__PURE__ */ e(
|
|
9129
|
+
children: /* @__PURE__ */ e(E, { size: "sm", c: "dimmed", children: "No users found" })
|
|
9135
9130
|
}
|
|
9136
9131
|
)
|
|
9137
9132
|
] })
|
|
@@ -9198,7 +9193,7 @@ const Ae = ({
|
|
|
9198
9193
|
p: "xs",
|
|
9199
9194
|
h: 40,
|
|
9200
9195
|
children: /* @__PURE__ */ e(
|
|
9201
|
-
|
|
9196
|
+
E,
|
|
9202
9197
|
{
|
|
9203
9198
|
size: "sm",
|
|
9204
9199
|
c: t ? void 0 : "dimmed",
|
|
@@ -9385,7 +9380,7 @@ const Ae = ({
|
|
|
9385
9380
|
},
|
|
9386
9381
|
children: [
|
|
9387
9382
|
/* @__PURE__ */ e(An, { size: 16 }),
|
|
9388
|
-
/* @__PURE__ */ e(
|
|
9383
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, children: "Add avatar" })
|
|
9389
9384
|
]
|
|
9390
9385
|
}
|
|
9391
9386
|
)
|
|
@@ -9413,7 +9408,7 @@ const Ae = ({
|
|
|
9413
9408
|
display: "flex",
|
|
9414
9409
|
alignItems: "center"
|
|
9415
9410
|
},
|
|
9416
|
-
children: /* @__PURE__ */ e(
|
|
9411
|
+
children: /* @__PURE__ */ e(E, { size: "2.5rem", fw: 700, children: l.title })
|
|
9417
9412
|
}
|
|
9418
9413
|
)
|
|
9419
9414
|
] }),
|
|
@@ -9438,7 +9433,7 @@ const Ae = ({
|
|
|
9438
9433
|
gap: 6
|
|
9439
9434
|
},
|
|
9440
9435
|
children: [
|
|
9441
|
-
/* @__PURE__ */ e(
|
|
9436
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, c: "var(--mantine-color-blue-5)", children: "Show" }),
|
|
9442
9437
|
/* @__PURE__ */ e(
|
|
9443
9438
|
Oe,
|
|
9444
9439
|
{
|
|
@@ -9478,7 +9473,7 @@ const Ae = ({
|
|
|
9478
9473
|
gap: 6
|
|
9479
9474
|
},
|
|
9480
9475
|
children: [
|
|
9481
|
-
/* @__PURE__ */ e(
|
|
9476
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, c: "var(--mantine-color-blue-5)", children: "Hide" }),
|
|
9482
9477
|
/* @__PURE__ */ e(Ve, { size: 16, color: "var(--mantine-color-blue-5)" })
|
|
9483
9478
|
]
|
|
9484
9479
|
}
|
|
@@ -9644,7 +9639,7 @@ const Ae = ({
|
|
|
9644
9639
|
withBorder: !0,
|
|
9645
9640
|
bg: "transparent",
|
|
9646
9641
|
position: "left",
|
|
9647
|
-
header: /* @__PURE__ */ e(F, { h: 40, w: "100%", justify: "space-between", wrap: "nowrap", children: /* @__PURE__ */ e(F, { gap: "xs", wrap: "nowrap", children: p && /* @__PURE__ */ e(
|
|
9642
|
+
header: /* @__PURE__ */ e(F, { h: 40, w: "100%", justify: "space-between", wrap: "nowrap", children: /* @__PURE__ */ e(F, { gap: "xs", wrap: "nowrap", children: p && /* @__PURE__ */ e(E, { fw: 600, size: "sm", children: c }) }) })
|
|
9648
9643
|
}
|
|
9649
9644
|
) : void 0,
|
|
9650
9645
|
navbar: /* @__PURE__ */ e(
|
|
@@ -9654,7 +9649,7 @@ const Ae = ({
|
|
|
9654
9649
|
bg: "transparent",
|
|
9655
9650
|
position: "left",
|
|
9656
9651
|
header: /* @__PURE__ */ w(F, { h: 40, w: "100%", justify: "space-between", wrap: "nowrap", children: [
|
|
9657
|
-
/* @__PURE__ */ e(F, { gap: "xs", wrap: "nowrap", children: p && /* @__PURE__ */ e(
|
|
9652
|
+
/* @__PURE__ */ e(F, { gap: "xs", wrap: "nowrap", children: p && /* @__PURE__ */ e(E, { fw: 600, size: "sm", children: c }) }),
|
|
9658
9653
|
/* @__PURE__ */ e(
|
|
9659
9654
|
pe,
|
|
9660
9655
|
{
|
|
@@ -9758,13 +9753,13 @@ const Ae = ({
|
|
|
9758
9753
|
}
|
|
9759
9754
|
);
|
|
9760
9755
|
}, fa = (n) => /* @__PURE__ */ e(Ri, { children: /* @__PURE__ */ e(Bi, { ...n }) }), Vt = (n, r) => {
|
|
9761
|
-
const t =
|
|
9756
|
+
const t = L(
|
|
9762
9757
|
(a) => {
|
|
9763
9758
|
const s = Array.isArray(a) ? a : [a];
|
|
9764
9759
|
n.onUserIdsChange(s);
|
|
9765
9760
|
},
|
|
9766
9761
|
[n]
|
|
9767
|
-
), o =
|
|
9762
|
+
), o = L(
|
|
9768
9763
|
(a) => {
|
|
9769
9764
|
const s = Array.isArray(a) ? a : [a], c = r.members.filter(
|
|
9770
9765
|
(g) => s.includes(g.id)
|
|
@@ -10001,7 +9996,7 @@ const Ae = ({
|
|
|
10001
9996
|
},
|
|
10002
9997
|
children: [
|
|
10003
9998
|
/* @__PURE__ */ e(An, { size: 16 }),
|
|
10004
|
-
/* @__PURE__ */ e(
|
|
9999
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, children: "Add avatar" })
|
|
10005
10000
|
]
|
|
10006
10001
|
}
|
|
10007
10002
|
)
|
|
@@ -10028,7 +10023,7 @@ const Ae = ({
|
|
|
10028
10023
|
display: "flex",
|
|
10029
10024
|
alignItems: "center"
|
|
10030
10025
|
},
|
|
10031
|
-
children: /* @__PURE__ */ e(
|
|
10026
|
+
children: /* @__PURE__ */ e(E, { size: "2.5rem", fw: 700, children: i.title })
|
|
10032
10027
|
}
|
|
10033
10028
|
) })
|
|
10034
10029
|
] }),
|
|
@@ -10128,7 +10123,7 @@ const Ae = ({
|
|
|
10128
10123
|
properties: r,
|
|
10129
10124
|
children: t
|
|
10130
10125
|
}) => /* @__PURE__ */ w($, { gap: "sm", p: "3rem", children: [
|
|
10131
|
-
/* @__PURE__ */ e(
|
|
10126
|
+
/* @__PURE__ */ e(E, { size: "2.5rem", fw: 600, children: n }),
|
|
10132
10127
|
/* @__PURE__ */ e(Be, { h: "md" }),
|
|
10133
10128
|
/* @__PURE__ */ e($, { gap: "xs", children: r }),
|
|
10134
10129
|
/* @__PURE__ */ e(Be, { h: "md" }),
|
|
@@ -10232,7 +10227,7 @@ const Ae = ({
|
|
|
10232
10227
|
},
|
|
10233
10228
|
children: [
|
|
10234
10229
|
/* @__PURE__ */ e(An, { size: 16 }),
|
|
10235
|
-
/* @__PURE__ */ e(
|
|
10230
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, children: "Add avatar" })
|
|
10236
10231
|
]
|
|
10237
10232
|
}
|
|
10238
10233
|
)
|
|
@@ -10260,7 +10255,7 @@ const Ae = ({
|
|
|
10260
10255
|
display: "flex",
|
|
10261
10256
|
alignItems: "center"
|
|
10262
10257
|
},
|
|
10263
|
-
children: /* @__PURE__ */ e(
|
|
10258
|
+
children: /* @__PURE__ */ e(E, { size: "2.5rem", fw: 700, children: c.title })
|
|
10264
10259
|
}
|
|
10265
10260
|
)
|
|
10266
10261
|
] }),
|
|
@@ -10295,7 +10290,7 @@ const Ae = ({
|
|
|
10295
10290
|
)
|
|
10296
10291
|
}
|
|
10297
10292
|
),
|
|
10298
|
-
/* @__PURE__ */ e(
|
|
10293
|
+
/* @__PURE__ */ e(E, { size: "sm", fw: 500, truncate: !0, c: "var(--mantine-color-gray-9)", children: t }),
|
|
10299
10294
|
/* @__PURE__ */ e(x, { w: "10px", h: "10px", mt: "xs", children: ((a) => /* @__PURE__ */ e(
|
|
10300
10295
|
x,
|
|
10301
10296
|
{
|
|
@@ -10420,53 +10415,53 @@ const Ae = ({
|
|
|
10420
10415
|
height: "100%"
|
|
10421
10416
|
}),
|
|
10422
10417
|
[]
|
|
10423
|
-
), l =
|
|
10418
|
+
), l = Q(null), [d, u] = O(n), p = L(
|
|
10424
10419
|
() => Array.from({ length: t }, () => d),
|
|
10425
10420
|
[d, t]
|
|
10426
|
-
), [f, g] = O(p), h =
|
|
10421
|
+
), [f, g] = O(p), h = Q(f), I = Q(null);
|
|
10427
10422
|
_(() => {
|
|
10428
10423
|
h.current = f;
|
|
10429
10424
|
}, [f]), _(() => {
|
|
10430
|
-
g((k) => Array.from({ length: t }, (y,
|
|
10431
|
-
const z = k[
|
|
10425
|
+
g((k) => Array.from({ length: t }, (y, D) => {
|
|
10426
|
+
const z = k[D];
|
|
10432
10427
|
return z === void 0 ? d : Math.max(z, d);
|
|
10433
10428
|
}));
|
|
10434
10429
|
}, [t, d]);
|
|
10435
|
-
const m =
|
|
10430
|
+
const m = L(
|
|
10436
10431
|
(k) => (M) => {
|
|
10437
10432
|
M.preventDefault(), M.stopPropagation();
|
|
10438
|
-
const y = M.pointerId,
|
|
10433
|
+
const y = M.pointerId, D = h.current[k] ?? d;
|
|
10439
10434
|
I.current = {
|
|
10440
10435
|
index: k,
|
|
10441
10436
|
pointerId: y,
|
|
10442
10437
|
startY: M.clientY,
|
|
10443
|
-
startHeight:
|
|
10438
|
+
startHeight: D
|
|
10444
10439
|
}, M.currentTarget.setPointerCapture(y);
|
|
10445
10440
|
},
|
|
10446
10441
|
[d]
|
|
10447
|
-
), b =
|
|
10442
|
+
), b = L(
|
|
10448
10443
|
(k) => {
|
|
10449
10444
|
const M = I.current;
|
|
10450
10445
|
if (!M || k.pointerId !== M.pointerId)
|
|
10451
10446
|
return;
|
|
10452
10447
|
k.preventDefault();
|
|
10453
|
-
const y = k.clientY - M.startY,
|
|
10448
|
+
const y = k.clientY - M.startY, D = Math.max(d, M.startHeight + y);
|
|
10454
10449
|
g((z) => {
|
|
10455
|
-
if (z[M.index] ===
|
|
10450
|
+
if (z[M.index] === D)
|
|
10456
10451
|
return z;
|
|
10457
|
-
const
|
|
10458
|
-
return
|
|
10452
|
+
const j = [...z];
|
|
10453
|
+
return j[M.index] = D, j;
|
|
10459
10454
|
});
|
|
10460
10455
|
},
|
|
10461
10456
|
[d]
|
|
10462
|
-
), v =
|
|
10457
|
+
), v = L((k) => {
|
|
10463
10458
|
const M = I.current;
|
|
10464
10459
|
!M || k.pointerId !== M.pointerId || (k.preventDefault(), k.stopPropagation(), k.currentTarget.releasePointerCapture(k.pointerId), I.current = null);
|
|
10465
|
-
}, []), S =
|
|
10460
|
+
}, []), S = L(
|
|
10466
10461
|
(k) => (M) => {
|
|
10467
10462
|
M.preventDefault(), M.stopPropagation(), g((y) => {
|
|
10468
|
-
const
|
|
10469
|
-
return z ===
|
|
10463
|
+
const D = d, z = y[k] ?? D, T = [...y];
|
|
10464
|
+
return z === D ? T[k] = window.innerHeight : T[k] = D, T;
|
|
10470
10465
|
});
|
|
10471
10466
|
},
|
|
10472
10467
|
[d]
|