obeyaka-ui 0.1.28 → 0.1.30
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 +769 -751
- package/dist/index.js +2 -2
- package/dist/types/components/molecules/Menu/MenuItem.d.ts.map +1 -1
- package/dist/types/components/molecules/NavLink/NavLink.d.ts.map +1 -1
- package/dist/types/components/organisms/Property/TextareaProperty/TextareaProperty.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import be, { useState as
|
|
1
|
+
import { jsx as e, jsxs as x, Fragment as me } from "react/jsx-runtime";
|
|
2
|
+
import be, { useState as C, useCallback as j, useMemo as J, memo as Mn, useRef as q, useEffect as Y, useLayoutEffect as Qn, Suspense as Zt, forwardRef as qt, useImperativeHandle as Xt, createContext as Yn, useContext as Zn } from "react";
|
|
3
3
|
import { ActionIcon as le, Tooltip as Ue, Box as b, Skeleton as vn, Loader as Se, Text as T, Group as A, InputWrapper as qn, Input as Kt, Textarea as Sn, TextInput as kn, useCombobox as rn, Combobox as re, Indicator as Xn, MenuItem as Kn, Menu as pe, Stack as W, Pill as xn, Popover as je, LoadingOverlay as Jt, Button as ce, Table as we, Badge as Ke, Tabs as fe, ScrollArea as ke, Flex as Jn, Avatar as et, TagsInput as er, Radio as nr, Space as Ee, Modal as Cn, FocusTrap as nt, Drawer as On, Alert as tr, Anchor as tt, PillsInput as Fn, Collapse as rr, AppShell as We, createTheme as or, MantineProvider as ir } from "@mantine/core";
|
|
4
4
|
import { IconQuestionMark as He, IconSearch as zn, IconX as rt, IconFilter as ot, IconFilterOff as ar, IconChevronDown as Ce, IconChevronRight as Je, IconPlus as Te, IconDots as Pe, IconCheck as on, IconChevronUp as Ve, IconClock as it, IconMoodSmile as qe, IconFlag as cr, IconHeart as sr, IconBulb as lr, IconPlane as Un, IconBallBasketball as dr, IconApple as ur, IconTrees as at, IconUser as Dn, IconBriefcase as fr, IconDeviceDesktop as hr, IconCircle as pr, IconTool as mr, IconMessage as gr, IconPhoto as Nn, IconArchive as wn, IconBell as Ir, IconInbox as yr, IconChecklist as gn, IconChevronsLeft as ct, IconPointFilled as vr, IconPoint as xr, IconChevronLeft as Wn, IconMaximize as Rn, IconStar as wr, IconChevronsRight as Ne, IconMoodSmileFilled as Tn, IconAlignLeft as st, IconUserCircle as lt, IconUsers as dt, IconMenu2 as $n } from "@tabler/icons-react";
|
|
5
5
|
import en from "@emoji-mart/data";
|
|
@@ -28,58 +28,58 @@ const he = be.memo(
|
|
|
28
28
|
onMouseLeave: g,
|
|
29
29
|
...m
|
|
30
30
|
}) => {
|
|
31
|
-
const [w, y] =
|
|
31
|
+
const [w, y] = C(!1), S = j(() => {
|
|
32
32
|
l || d || (n == null || n(), console.log("Clicked"));
|
|
33
|
-
}, [l, d, n]), M =
|
|
33
|
+
}, [l, d, n]), M = J(() => ({
|
|
34
34
|
xs: 14,
|
|
35
35
|
sm: 16,
|
|
36
36
|
md: 20,
|
|
37
37
|
lg: 24,
|
|
38
38
|
xl: 28
|
|
39
|
-
})[a] || 20, [a]), z =
|
|
39
|
+
})[a] || 20, [a]), z = J(() => ({
|
|
40
40
|
xs: 2,
|
|
41
41
|
sm: 2,
|
|
42
42
|
md: 2,
|
|
43
43
|
lg: 2,
|
|
44
44
|
xl: 2.5
|
|
45
|
-
})[a] || 2, [a]),
|
|
45
|
+
})[a] || 2, [a]), O = j(
|
|
46
46
|
(F) => {
|
|
47
47
|
y(!0), h == null || h(F);
|
|
48
48
|
},
|
|
49
49
|
[h]
|
|
50
|
-
),
|
|
50
|
+
), k = j(
|
|
51
51
|
(F) => {
|
|
52
52
|
y(!1), g == null || g(F);
|
|
53
53
|
},
|
|
54
54
|
[g]
|
|
55
|
-
),
|
|
55
|
+
), v = J(() => {
|
|
56
56
|
if (s)
|
|
57
57
|
return s;
|
|
58
58
|
if (c === "transparent")
|
|
59
59
|
return w ? "var(--mantine-color-gray-2)" : "transparent";
|
|
60
|
-
}, [s, c, w]),
|
|
60
|
+
}, [s, c, w]), E = J(() => t && r && w ? r : o, [t, r, w, o]), L = J(
|
|
61
61
|
() => /* @__PURE__ */ e(
|
|
62
|
-
|
|
62
|
+
E,
|
|
63
63
|
{
|
|
64
64
|
size: M,
|
|
65
65
|
strokeWidth: z,
|
|
66
66
|
color: i
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
[
|
|
69
|
+
[E, M, z, i]
|
|
70
70
|
), R = /* @__PURE__ */ e(
|
|
71
71
|
le,
|
|
72
72
|
{
|
|
73
73
|
onClick: S,
|
|
74
|
-
bg:
|
|
74
|
+
bg: v,
|
|
75
75
|
color: i,
|
|
76
76
|
radius: "md",
|
|
77
77
|
variant: c === "transparent" ? "transparent" : c,
|
|
78
78
|
size: a,
|
|
79
79
|
disabled: l || d,
|
|
80
80
|
loading: d,
|
|
81
|
-
onMouseEnter:
|
|
82
|
-
onMouseLeave:
|
|
81
|
+
onMouseEnter: O,
|
|
82
|
+
onMouseLeave: k,
|
|
83
83
|
"aria-label": p || u,
|
|
84
84
|
className: f,
|
|
85
85
|
style: I,
|
|
@@ -234,7 +234,7 @@ const Er = async (n) => {
|
|
|
234
234
|
}
|
|
235
235
|
}, Br = (n) => n.replace(/^Icon/, "").replace(/([A-Z])/g, " $1").trim().toLowerCase().replace(/^./, (t) => t.toUpperCase()), ut = Mn(
|
|
236
236
|
({ iconName: n, onClick: o, size: t = 20 }) => {
|
|
237
|
-
const [r, i] =
|
|
237
|
+
const [r, i] = C(null), [a, c] = C(!0), s = q(null), l = q(!0);
|
|
238
238
|
Y(() => (l.current = !0, (async () => {
|
|
239
239
|
try {
|
|
240
240
|
const f = (await import("@tabler/icons-react"))[n];
|
|
@@ -323,7 +323,7 @@ const ft = Mn(
|
|
|
323
323
|
onMouseEnter: c,
|
|
324
324
|
onMouseLeave: s
|
|
325
325
|
}) => {
|
|
326
|
-
const [l, d] =
|
|
326
|
+
const [l, d] = C(!1), [u, p] = C(() => Me.get(n) || null), f = Re(o), I = Math.round(f * 0.9);
|
|
327
327
|
Y(() => {
|
|
328
328
|
if (Me.has(n)) {
|
|
329
329
|
p(() => Me.get(n));
|
|
@@ -495,7 +495,7 @@ const Ar = (n) => {
|
|
|
495
495
|
loading: c = !1,
|
|
496
496
|
alt: s = "Avatar"
|
|
497
497
|
}) => {
|
|
498
|
-
const [l, d] =
|
|
498
|
+
const [l, d] = C(!1), u = jr(o), p = t && r, f = () => {
|
|
499
499
|
d(!0);
|
|
500
500
|
}, I = () => {
|
|
501
501
|
d(!1);
|
|
@@ -729,7 +729,7 @@ const Ar = (n) => {
|
|
|
729
729
|
onClick: o,
|
|
730
730
|
isActive: t = !1
|
|
731
731
|
}) => {
|
|
732
|
-
const [r, i] =
|
|
732
|
+
const [r, i] = C(!1);
|
|
733
733
|
return /* @__PURE__ */ e(
|
|
734
734
|
b,
|
|
735
735
|
{
|
|
@@ -787,7 +787,7 @@ const Ar = (n) => {
|
|
|
787
787
|
return 0;
|
|
788
788
|
}
|
|
789
789
|
}, { icon: s, text: l } = a();
|
|
790
|
-
return /* @__PURE__ */
|
|
790
|
+
return /* @__PURE__ */ x(A, { gap: "xs", align: "center", wrap: "nowrap", children: [
|
|
791
791
|
(() => {
|
|
792
792
|
const u = s * 56 / 55;
|
|
793
793
|
return /* @__PURE__ */ e(
|
|
@@ -838,11 +838,11 @@ const Ar = (n) => {
|
|
|
838
838
|
},
|
|
839
839
|
...m
|
|
840
840
|
}) => {
|
|
841
|
-
const [w, y] =
|
|
841
|
+
const [w, y] = C(!1), [S, M] = C(n), [z, O] = C(!1);
|
|
842
842
|
Y(() => {
|
|
843
843
|
g(z);
|
|
844
844
|
}, [z, g]);
|
|
845
|
-
const
|
|
845
|
+
const k = q(null), v = {
|
|
846
846
|
fontSize: "40px",
|
|
847
847
|
fontWeight: 700,
|
|
848
848
|
color: "var(--mantine-color-gray-9)",
|
|
@@ -855,33 +855,33 @@ const Ar = (n) => {
|
|
|
855
855
|
Y(() => {
|
|
856
856
|
M(n);
|
|
857
857
|
}, [n]);
|
|
858
|
-
const
|
|
859
|
-
a || (y(!0), I &&
|
|
858
|
+
const E = () => {
|
|
859
|
+
a || (y(!0), I && k.current && k.current.select());
|
|
860
860
|
}, L = () => {
|
|
861
861
|
y(!1), S !== n && t(S);
|
|
862
862
|
}, R = (N) => {
|
|
863
863
|
M(N.target.value), r == null || r(N.target.value);
|
|
864
864
|
}, F = (N) => {
|
|
865
|
-
var
|
|
866
|
-
N.key === "Enter" ? (y(!1), t(S), (
|
|
867
|
-
},
|
|
865
|
+
var X, H;
|
|
866
|
+
N.key === "Enter" ? (y(!1), t(S), (X = k.current) == null || X.blur()) : N.key === "Escape" && (M(n), y(!1), (H = k.current) == null || H.blur());
|
|
867
|
+
}, G = {
|
|
868
868
|
cursor: a ? "not-allowed" : "text"
|
|
869
|
-
},
|
|
869
|
+
}, Q = {
|
|
870
870
|
backgroundColor: c === "gray" ? "var(--mantine-color-gray-0)" : c === "white" ? "var(--mantine-color-white)" : void 0,
|
|
871
871
|
borderColor: w && p ? f : void 0,
|
|
872
872
|
borderWidth: w && 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
|
-
}, V = () => h ? { ...
|
|
875
|
+
}, V = () => h ? { ...Q, ...v } : Q;
|
|
876
876
|
return /* @__PURE__ */ e(qn, { label: o, size: s, children: /* @__PURE__ */ e(
|
|
877
877
|
Kt,
|
|
878
878
|
{
|
|
879
|
-
ref:
|
|
879
|
+
ref: k,
|
|
880
880
|
value: S,
|
|
881
881
|
onChange: R,
|
|
882
|
-
onMouseEnter: () =>
|
|
883
|
-
onMouseLeave: () =>
|
|
884
|
-
onFocus:
|
|
882
|
+
onMouseEnter: () => O(!0),
|
|
883
|
+
onMouseLeave: () => O(!1),
|
|
884
|
+
onFocus: E,
|
|
885
885
|
onBlur: L,
|
|
886
886
|
onKeyDown: F,
|
|
887
887
|
placeholder: i,
|
|
@@ -890,7 +890,7 @@ const Ar = (n) => {
|
|
|
890
890
|
fw: 500,
|
|
891
891
|
radius: l,
|
|
892
892
|
className: d,
|
|
893
|
-
style: { ...
|
|
893
|
+
style: { ...G, ...u },
|
|
894
894
|
styles: {
|
|
895
895
|
input: {
|
|
896
896
|
...V()
|
|
@@ -922,35 +922,35 @@ const Ar = (n) => {
|
|
|
922
922
|
pageTitle: y = !1,
|
|
923
923
|
...S
|
|
924
924
|
}) => {
|
|
925
|
-
const [M, z] =
|
|
925
|
+
const [M, z] = C(!1), [O, k] = C(n), [v, E] = C(!1);
|
|
926
926
|
Y(() => {
|
|
927
|
-
w(
|
|
928
|
-
}, [
|
|
929
|
-
const L =
|
|
927
|
+
w(v);
|
|
928
|
+
}, [v, w]);
|
|
929
|
+
const L = q(null);
|
|
930
930
|
Y(() => {
|
|
931
|
-
|
|
931
|
+
k(n);
|
|
932
932
|
}, [n]);
|
|
933
933
|
const R = () => {
|
|
934
|
-
const
|
|
935
|
-
|
|
934
|
+
const $ = L.current;
|
|
935
|
+
$ && ($.style.height = "0px", $.style.minHeight = "0px", $.style.overflowY = "hidden", $.style.height = `${$.scrollHeight}px`);
|
|
936
936
|
};
|
|
937
937
|
Y(() => {
|
|
938
938
|
m && R();
|
|
939
939
|
}, [m]), Y(() => {
|
|
940
940
|
m && R();
|
|
941
|
-
}, [
|
|
941
|
+
}, [O, m]);
|
|
942
942
|
const F = () => {
|
|
943
943
|
a || (z(!0), m && requestAnimationFrame(() => R()), I && L.current && L.current.select());
|
|
944
|
-
},
|
|
945
|
-
z(!1),
|
|
946
|
-
},
|
|
947
|
-
|
|
948
|
-
}, V = (
|
|
949
|
-
var
|
|
950
|
-
|
|
944
|
+
}, G = () => {
|
|
945
|
+
z(!1), O !== n && t(O);
|
|
946
|
+
}, Q = ($) => {
|
|
947
|
+
k($.target.value), r == null || r($.target.value);
|
|
948
|
+
}, V = ($) => {
|
|
949
|
+
var Z;
|
|
950
|
+
$.key === "Escape" && (k(n), z(!1), (Z = L.current) == null || Z.blur());
|
|
951
951
|
}, N = {
|
|
952
952
|
cursor: a ? "not-allowed" : "text"
|
|
953
|
-
},
|
|
953
|
+
}, X = {
|
|
954
954
|
borderRadius: "var(--mantine-radius-md)",
|
|
955
955
|
backgroundColor: c === "gray" ? "var(--mantine-color-gray-0)" : c === "white" ? "transparent" : void 0,
|
|
956
956
|
borderColor: M && p ? f : void 0,
|
|
@@ -967,7 +967,7 @@ const Ar = (n) => {
|
|
|
967
967
|
backgroundColor: "transparent",
|
|
968
968
|
padding: "0",
|
|
969
969
|
lineHeight: "3rem"
|
|
970
|
-
}, oe = () => y ? {
|
|
970
|
+
}, oe = () => y ? { ...X, ...H } : X;
|
|
971
971
|
return /* @__PURE__ */ e(
|
|
972
972
|
qn,
|
|
973
973
|
{
|
|
@@ -980,12 +980,12 @@ const Ar = (n) => {
|
|
|
980
980
|
w: "100%",
|
|
981
981
|
radius: "var(--mantine-radius-md)",
|
|
982
982
|
ref: L,
|
|
983
|
-
value:
|
|
984
|
-
onChange:
|
|
985
|
-
onMouseEnter: () =>
|
|
986
|
-
onMouseLeave: () =>
|
|
983
|
+
value: O,
|
|
984
|
+
onChange: Q,
|
|
985
|
+
onMouseEnter: () => E(!0),
|
|
986
|
+
onMouseLeave: () => E(!1),
|
|
987
987
|
onFocus: F,
|
|
988
|
-
onBlur:
|
|
988
|
+
onBlur: G,
|
|
989
989
|
onKeyDown: V,
|
|
990
990
|
placeholder: i,
|
|
991
991
|
disabled: a,
|
|
@@ -1028,7 +1028,7 @@ const Ar = (n) => {
|
|
|
1028
1028
|
} : {
|
|
1029
1029
|
height: 28,
|
|
1030
1030
|
iconSize: 20
|
|
1031
|
-
}, [p, f] =
|
|
1031
|
+
}, [p, f] = C(!1), I = p && o && !a ? /* @__PURE__ */ e(
|
|
1032
1032
|
o,
|
|
1033
1033
|
{
|
|
1034
1034
|
size: u(t).iconSize,
|
|
@@ -1044,7 +1044,7 @@ const Ar = (n) => {
|
|
|
1044
1044
|
opacity: a ? 0.5 : 1
|
|
1045
1045
|
}
|
|
1046
1046
|
);
|
|
1047
|
-
return /* @__PURE__ */
|
|
1047
|
+
return /* @__PURE__ */ x(
|
|
1048
1048
|
le,
|
|
1049
1049
|
{
|
|
1050
1050
|
size: u(t).height,
|
|
@@ -1072,18 +1072,18 @@ const Ar = (n) => {
|
|
|
1072
1072
|
disabled: s = !1,
|
|
1073
1073
|
className: l
|
|
1074
1074
|
}) => {
|
|
1075
|
-
const [d, u] =
|
|
1075
|
+
const [d, u] = C(!1), [p, f] = C(!1), [I, h] = C(t), g = q(null), m = q(null);
|
|
1076
1076
|
Y(() => {
|
|
1077
1077
|
h(t);
|
|
1078
1078
|
}, [t]), Y(() => {
|
|
1079
1079
|
d && g.current && g.current.focus();
|
|
1080
1080
|
}, [d]), Y(() => {
|
|
1081
|
-
const
|
|
1082
|
-
m.current && !m.current.contains(
|
|
1081
|
+
const v = (E) => {
|
|
1082
|
+
m.current && !m.current.contains(E.target) && w();
|
|
1083
1083
|
};
|
|
1084
1084
|
if (d)
|
|
1085
|
-
return document.addEventListener("mousedown",
|
|
1086
|
-
document.removeEventListener("mousedown",
|
|
1085
|
+
return document.addEventListener("mousedown", v), () => {
|
|
1086
|
+
document.removeEventListener("mousedown", v);
|
|
1087
1087
|
};
|
|
1088
1088
|
}, [d]);
|
|
1089
1089
|
const w = () => {
|
|
@@ -1092,14 +1092,14 @@ const Ar = (n) => {
|
|
|
1092
1092
|
}, 200);
|
|
1093
1093
|
}, y = () => {
|
|
1094
1094
|
s || u(!0);
|
|
1095
|
-
}, S = (
|
|
1096
|
-
const
|
|
1097
|
-
h(
|
|
1098
|
-
}, M = (
|
|
1099
|
-
|
|
1095
|
+
}, S = (v) => {
|
|
1096
|
+
const E = v.target.value;
|
|
1097
|
+
h(E), r == null || r(E);
|
|
1098
|
+
}, M = (v) => {
|
|
1099
|
+
v.key === "Enter" && (i == null || i(I)), v.key === "Escape" && w();
|
|
1100
1100
|
}, z = () => {
|
|
1101
1101
|
h(""), r == null || r(""), a == null || a(), w();
|
|
1102
|
-
},
|
|
1102
|
+
}, k = (() => {
|
|
1103
1103
|
switch (c) {
|
|
1104
1104
|
case "sm":
|
|
1105
1105
|
return {
|
|
@@ -1121,7 +1121,7 @@ const Ar = (n) => {
|
|
|
1121
1121
|
};
|
|
1122
1122
|
}
|
|
1123
1123
|
})();
|
|
1124
|
-
return /* @__PURE__ */
|
|
1124
|
+
return /* @__PURE__ */ x(
|
|
1125
1125
|
b,
|
|
1126
1126
|
{
|
|
1127
1127
|
ref: m,
|
|
@@ -1132,7 +1132,7 @@ const Ar = (n) => {
|
|
|
1132
1132
|
alignItems: "center"
|
|
1133
1133
|
},
|
|
1134
1134
|
children: [
|
|
1135
|
-
/* @__PURE__ */
|
|
1135
|
+
/* @__PURE__ */ x(
|
|
1136
1136
|
A,
|
|
1137
1137
|
{
|
|
1138
1138
|
gap: 0,
|
|
@@ -1150,23 +1150,23 @@ const Ar = (n) => {
|
|
|
1150
1150
|
display: "flex",
|
|
1151
1151
|
alignItems: "center",
|
|
1152
1152
|
justifyContent: "center",
|
|
1153
|
-
width:
|
|
1154
|
-
height:
|
|
1153
|
+
width: k.inputHeight,
|
|
1154
|
+
height: k.inputHeight,
|
|
1155
1155
|
cursor: s ? "not-allowed" : "pointer",
|
|
1156
1156
|
borderRadius: "var(--mantine-radius-md)",
|
|
1157
1157
|
transition: "background-color 0.2s ease",
|
|
1158
1158
|
opacity: s ? 0.5 : 1
|
|
1159
1159
|
},
|
|
1160
|
-
onMouseEnter: (
|
|
1161
|
-
s || (
|
|
1160
|
+
onMouseEnter: (v) => {
|
|
1161
|
+
s || (v.currentTarget.style.backgroundColor = "var(--mantine-color-gray-0)");
|
|
1162
1162
|
},
|
|
1163
|
-
onMouseLeave: (
|
|
1164
|
-
|
|
1163
|
+
onMouseLeave: (v) => {
|
|
1164
|
+
v.currentTarget.style.backgroundColor = "transparent";
|
|
1165
1165
|
},
|
|
1166
1166
|
children: /* @__PURE__ */ e(
|
|
1167
1167
|
zn,
|
|
1168
1168
|
{
|
|
1169
|
-
size:
|
|
1169
|
+
size: k.iconSize,
|
|
1170
1170
|
color: "var(--mantine-color-gray-6)",
|
|
1171
1171
|
strokeWidth: 2.3
|
|
1172
1172
|
}
|
|
@@ -1182,7 +1182,7 @@ const Ar = (n) => {
|
|
|
1182
1182
|
onKeyDown: M,
|
|
1183
1183
|
placeholder: o,
|
|
1184
1184
|
disabled: s,
|
|
1185
|
-
height:
|
|
1185
|
+
height: k.inputHeight,
|
|
1186
1186
|
fw: 500,
|
|
1187
1187
|
styles: {
|
|
1188
1188
|
root: {
|
|
@@ -1194,9 +1194,9 @@ const Ar = (n) => {
|
|
|
1194
1194
|
outline: "none",
|
|
1195
1195
|
backgroundColor: "transparent",
|
|
1196
1196
|
padding: "0 8px",
|
|
1197
|
-
height:
|
|
1198
|
-
minHeight:
|
|
1199
|
-
fontSize:
|
|
1197
|
+
height: k.inputHeight,
|
|
1198
|
+
minHeight: k.inputHeight,
|
|
1199
|
+
fontSize: k.fontSize,
|
|
1200
1200
|
color: "var(--mantine-color-gray-8)",
|
|
1201
1201
|
borderRadius: "var(--mantine-radius-md)",
|
|
1202
1202
|
transition: "background-color 0.2s ease",
|
|
@@ -1226,11 +1226,11 @@ const Ar = (n) => {
|
|
|
1226
1226
|
borderRadius: "var(--mantine-radius-xl)",
|
|
1227
1227
|
transition: "background-color 0.2s ease"
|
|
1228
1228
|
},
|
|
1229
|
-
onMouseEnter: (
|
|
1230
|
-
|
|
1229
|
+
onMouseEnter: (v) => {
|
|
1230
|
+
v.currentTarget.style.backgroundColor = "var(--mantine-color-gray-2)";
|
|
1231
1231
|
},
|
|
1232
|
-
onMouseLeave: (
|
|
1233
|
-
|
|
1232
|
+
onMouseLeave: (v) => {
|
|
1233
|
+
v.currentTarget.style.backgroundColor = "transparent";
|
|
1234
1234
|
},
|
|
1235
1235
|
children: /* @__PURE__ */ e(
|
|
1236
1236
|
rt,
|
|
@@ -1279,7 +1279,7 @@ const Ar = (n) => {
|
|
|
1279
1279
|
const a = rn({
|
|
1280
1280
|
onDropdownClose: () => a.resetSelectedOption(),
|
|
1281
1281
|
onDropdownOpen: () => a.updateSelectedOptionIndex("active")
|
|
1282
|
-
}), [c, s] =
|
|
1282
|
+
}), [c, s] = C(!1), l = n.length > 0, d = (g) => {
|
|
1283
1283
|
if (g === "remove-filters")
|
|
1284
1284
|
o([]);
|
|
1285
1285
|
else {
|
|
@@ -1345,7 +1345,7 @@ const Ar = (n) => {
|
|
|
1345
1345
|
children: /* @__PURE__ */ e(ot, { size: 20, stroke: 2.3 })
|
|
1346
1346
|
}
|
|
1347
1347
|
);
|
|
1348
|
-
return /* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ x(
|
|
1349
1349
|
re,
|
|
1350
1350
|
{
|
|
1351
1351
|
store: a,
|
|
@@ -1376,7 +1376,7 @@ const Ar = (n) => {
|
|
|
1376
1376
|
minWidth: "160px"
|
|
1377
1377
|
}
|
|
1378
1378
|
},
|
|
1379
|
-
children: /* @__PURE__ */
|
|
1379
|
+
children: /* @__PURE__ */ x(re.Options, { children: [
|
|
1380
1380
|
u.map((g) => /* @__PURE__ */ e(
|
|
1381
1381
|
re.Option,
|
|
1382
1382
|
{
|
|
@@ -1384,7 +1384,7 @@ const Ar = (n) => {
|
|
|
1384
1384
|
style: {
|
|
1385
1385
|
...p
|
|
1386
1386
|
},
|
|
1387
|
-
children: /* @__PURE__ */
|
|
1387
|
+
children: /* @__PURE__ */ x(
|
|
1388
1388
|
b,
|
|
1389
1389
|
{
|
|
1390
1390
|
style: { display: "flex", alignItems: "center", gap: "8px" },
|
|
@@ -1407,7 +1407,7 @@ const Ar = (n) => {
|
|
|
1407
1407
|
fontWeight: "500",
|
|
1408
1408
|
color: "var(--mantine-color-red-6)"
|
|
1409
1409
|
},
|
|
1410
|
-
children: /* @__PURE__ */
|
|
1410
|
+
children: /* @__PURE__ */ x(
|
|
1411
1411
|
b,
|
|
1412
1412
|
{
|
|
1413
1413
|
style: { display: "flex", alignItems: "center", gap: "8px" },
|
|
@@ -1469,7 +1469,7 @@ const Ar = (n) => {
|
|
|
1469
1469
|
fontSize: "var(--mantine-font-size-sm)",
|
|
1470
1470
|
padding: "0 12px"
|
|
1471
1471
|
};
|
|
1472
|
-
return /* @__PURE__ */
|
|
1472
|
+
return /* @__PURE__ */ x(
|
|
1473
1473
|
re,
|
|
1474
1474
|
{
|
|
1475
1475
|
store: a,
|
|
@@ -1479,7 +1479,7 @@ const Ar = (n) => {
|
|
|
1479
1479
|
position: i,
|
|
1480
1480
|
middlewares: { flip: !1, shift: !0 },
|
|
1481
1481
|
children: [
|
|
1482
|
-
/* @__PURE__ */ e(re.Target, { children: /* @__PURE__ */
|
|
1482
|
+
/* @__PURE__ */ e(re.Target, { children: /* @__PURE__ */ x(
|
|
1483
1483
|
b,
|
|
1484
1484
|
{
|
|
1485
1485
|
style: {
|
|
@@ -1489,7 +1489,7 @@ const Ar = (n) => {
|
|
|
1489
1489
|
fw: 500,
|
|
1490
1490
|
pl: "sm",
|
|
1491
1491
|
children: [
|
|
1492
|
-
/* @__PURE__ */
|
|
1492
|
+
/* @__PURE__ */ x(b, { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
1493
1493
|
n.filterOption.icon,
|
|
1494
1494
|
s
|
|
1495
1495
|
] }),
|
|
@@ -1516,7 +1516,7 @@ const Ar = (n) => {
|
|
|
1516
1516
|
minWidth: "150px"
|
|
1517
1517
|
}
|
|
1518
1518
|
},
|
|
1519
|
-
children: /* @__PURE__ */
|
|
1519
|
+
children: /* @__PURE__ */ x(re.Options, { children: [
|
|
1520
1520
|
l.map((I) => {
|
|
1521
1521
|
var h;
|
|
1522
1522
|
return /* @__PURE__ */ e(
|
|
@@ -1560,7 +1560,7 @@ const Ar = (n) => {
|
|
|
1560
1560
|
const i = rn({
|
|
1561
1561
|
onDropdownClose: () => i.resetSelectedOption(),
|
|
1562
1562
|
onDropdownOpen: () => i.updateSelectedOptionIndex("active")
|
|
1563
|
-
}), [a, c] =
|
|
1563
|
+
}), [a, c] = C(!1), s = (f) => {
|
|
1564
1564
|
const I = t == null ? void 0 : t.find(
|
|
1565
1565
|
(h) => h.value === f
|
|
1566
1566
|
);
|
|
@@ -1602,7 +1602,7 @@ const Ar = (n) => {
|
|
|
1602
1602
|
color: "var(--mantine-color-gray-7)",
|
|
1603
1603
|
fontWeight: "500"
|
|
1604
1604
|
};
|
|
1605
|
-
return /* @__PURE__ */
|
|
1605
|
+
return /* @__PURE__ */ x(
|
|
1606
1606
|
re,
|
|
1607
1607
|
{
|
|
1608
1608
|
store: i,
|
|
@@ -1645,7 +1645,7 @@ const Ar = (n) => {
|
|
|
1645
1645
|
style: {
|
|
1646
1646
|
...p
|
|
1647
1647
|
},
|
|
1648
|
-
children: /* @__PURE__ */
|
|
1648
|
+
children: /* @__PURE__ */ x(
|
|
1649
1649
|
b,
|
|
1650
1650
|
{
|
|
1651
1651
|
style: { display: "flex", alignItems: "center", gap: "8px" },
|
|
@@ -1686,7 +1686,7 @@ const Ar = (n) => {
|
|
|
1686
1686
|
(u) => u.filterOption.value === d.value
|
|
1687
1687
|
)
|
|
1688
1688
|
);
|
|
1689
|
-
return !n || n.length === 0 ? null : /* @__PURE__ */ e("div", { style: { width: "100%" }, children: /* @__PURE__ */
|
|
1689
|
+
return !n || n.length === 0 ? null : /* @__PURE__ */ e("div", { style: { width: "100%" }, children: /* @__PURE__ */ x(A, { gap: "sm", align: "center", wrap: "wrap", children: [
|
|
1690
1690
|
(n || []).map((d) => {
|
|
1691
1691
|
const u = i ? i(d.filterOption.value) || [] : [];
|
|
1692
1692
|
return /* @__PURE__ */ e(
|
|
@@ -1719,7 +1719,7 @@ const Ar = (n) => {
|
|
|
1719
1719
|
size: r = "md",
|
|
1720
1720
|
getFilterOptions: i,
|
|
1721
1721
|
filterTagDropdownPosition: a = "bottom-start"
|
|
1722
|
-
}) => /* @__PURE__ */
|
|
1722
|
+
}) => /* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", gap: "12px" }, children: [
|
|
1723
1723
|
/* @__PURE__ */ e(
|
|
1724
1724
|
Bn,
|
|
1725
1725
|
{
|
|
@@ -1748,28 +1748,33 @@ const Ar = (n) => {
|
|
|
1748
1748
|
danger: o,
|
|
1749
1749
|
active: t,
|
|
1750
1750
|
...r
|
|
1751
|
-
}) =>
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1751
|
+
}) => {
|
|
1752
|
+
const [i, a] = C(!1);
|
|
1753
|
+
return /* @__PURE__ */ e(
|
|
1754
|
+
Kn,
|
|
1755
|
+
{
|
|
1756
|
+
...r,
|
|
1757
|
+
onMouseEnter: () => a(!0),
|
|
1758
|
+
onMouseLeave: () => a(!1),
|
|
1759
|
+
style: {
|
|
1760
|
+
borderRadius: "8px",
|
|
1761
|
+
color: t ? "var(--mantine-color-blue-7)" : o ? "var(--mantine-color-red-9)" : "var(--mantine-color-gray-9)",
|
|
1762
|
+
backgroundColor: i || t ? "var(--mantine-color-gray-1)" : "transparent",
|
|
1763
|
+
...r.style
|
|
1764
|
+
},
|
|
1765
|
+
children: n
|
|
1766
|
+
}
|
|
1767
|
+
);
|
|
1768
|
+
}, nn = ({
|
|
1764
1769
|
trigger: n,
|
|
1765
1770
|
menuItems: o,
|
|
1766
1771
|
children: t,
|
|
1767
1772
|
...r
|
|
1768
1773
|
}) => {
|
|
1769
|
-
const i =
|
|
1774
|
+
const i = q(null), [a, c] = C(0);
|
|
1770
1775
|
return Y(() => {
|
|
1771
1776
|
i.current && c(i.current.offsetWidth);
|
|
1772
|
-
}, [n]), /* @__PURE__ */
|
|
1777
|
+
}, [n]), /* @__PURE__ */ x(pe, { ...r, children: [
|
|
1773
1778
|
/* @__PURE__ */ e(pe.Target, { children: /* @__PURE__ */ e(
|
|
1774
1779
|
"div",
|
|
1775
1780
|
{
|
|
@@ -1785,7 +1790,7 @@ const Ar = (n) => {
|
|
|
1785
1790
|
children: n
|
|
1786
1791
|
}
|
|
1787
1792
|
) }),
|
|
1788
|
-
/* @__PURE__ */
|
|
1793
|
+
/* @__PURE__ */ x(
|
|
1789
1794
|
pe.Dropdown,
|
|
1790
1795
|
{
|
|
1791
1796
|
styles: {
|
|
@@ -1814,7 +1819,7 @@ const Ar = (n) => {
|
|
|
1814
1819
|
isActive: l = !1,
|
|
1815
1820
|
...d
|
|
1816
1821
|
}) => {
|
|
1817
|
-
const [u, p] =
|
|
1822
|
+
const [u, p] = C(!1);
|
|
1818
1823
|
return /* @__PURE__ */ e(
|
|
1819
1824
|
b,
|
|
1820
1825
|
{
|
|
@@ -1838,7 +1843,7 @@ const Ar = (n) => {
|
|
|
1838
1843
|
bg: u || l ? "gray.1" : "transparent",
|
|
1839
1844
|
"aria-label": a || `${n} navigation button`,
|
|
1840
1845
|
...d,
|
|
1841
|
-
children: /* @__PURE__ */
|
|
1846
|
+
children: /* @__PURE__ */ x(A, { w: "100%", wrap: "nowrap", gap: 8, justify: "left", align: "center", children: [
|
|
1842
1847
|
/* @__PURE__ */ e(
|
|
1843
1848
|
b,
|
|
1844
1849
|
{
|
|
@@ -1907,44 +1912,44 @@ const Ar = (n) => {
|
|
|
1907
1912
|
"aria-label": m,
|
|
1908
1913
|
...w
|
|
1909
1914
|
}) => {
|
|
1910
|
-
const [y, S] =
|
|
1915
|
+
const [y, S] = C(!1), [M, z] = C(!1), [O, k] = C(!1), v = M || O, E = be.Children.count(t) > 0, L = !u && E && (f ? v : !0), R = j(() => {
|
|
1911
1916
|
d || g == null || g();
|
|
1912
|
-
}, [g, d]),
|
|
1917
|
+
}, [g, d]), F = j(
|
|
1913
1918
|
($) => {
|
|
1914
1919
|
$.stopPropagation(), !d && (r == null || r());
|
|
1915
1920
|
},
|
|
1916
1921
|
[r, d]
|
|
1917
|
-
),
|
|
1922
|
+
), G = j(
|
|
1918
1923
|
($) => {
|
|
1919
|
-
$ == null || $.stopPropagation(), !d &&
|
|
1924
|
+
$ == null || $.stopPropagation(), !d && E && !u && S((Z) => !Z);
|
|
1920
1925
|
},
|
|
1921
|
-
[d,
|
|
1922
|
-
),
|
|
1926
|
+
[d, E, u]
|
|
1927
|
+
), Q = j(() => {
|
|
1923
1928
|
d || r == null || r();
|
|
1924
|
-
}, [r, d]),
|
|
1929
|
+
}, [r, d]), V = j(
|
|
1925
1930
|
($) => {
|
|
1926
1931
|
d || i == null || i($);
|
|
1927
1932
|
},
|
|
1928
1933
|
[i, d, n]
|
|
1929
|
-
),
|
|
1934
|
+
), N = j(() => E ? be.Children.map(t, ($) => be.isValidElement($) ? be.cloneElement($, {
|
|
1930
1935
|
...$.props,
|
|
1931
1936
|
level: l + 1
|
|
1932
|
-
}) : $) : null, [t,
|
|
1933
|
-
children: /* @__PURE__ */
|
|
1937
|
+
}) : $) : null, [t, E, l]), X = (a == null ? void 0 : a.map(($) => ({
|
|
1938
|
+
children: /* @__PURE__ */ x(A, { gap: "xs", wrap: "nowrap", children: [
|
|
1934
1939
|
$.icon && /* @__PURE__ */ e($.icon, { size: 16 }),
|
|
1935
1940
|
/* @__PURE__ */ e(T, { size: "sm", children: $.label })
|
|
1936
1941
|
] }),
|
|
1937
|
-
onClick: () =>
|
|
1938
|
-
}))) || [],
|
|
1942
|
+
onClick: () => V($.action)
|
|
1943
|
+
}))) || [], H = [
|
|
1939
1944
|
{
|
|
1940
|
-
children: /* @__PURE__ */
|
|
1945
|
+
children: /* @__PURE__ */ x(A, { gap: "xs", wrap: "nowrap", children: [
|
|
1941
1946
|
/* @__PURE__ */ e(Te, { size: 16 }),
|
|
1942
1947
|
/* @__PURE__ */ e(T, { size: "sm", children: "Add child" })
|
|
1943
1948
|
] }),
|
|
1944
|
-
onClick:
|
|
1949
|
+
onClick: F
|
|
1945
1950
|
}
|
|
1946
|
-
],
|
|
1947
|
-
return /* @__PURE__ */
|
|
1951
|
+
], oe = X.length > 0 ? X : H;
|
|
1952
|
+
return /* @__PURE__ */ x(W, { gap: 0, children: [
|
|
1948
1953
|
/* @__PURE__ */ e(
|
|
1949
1954
|
b,
|
|
1950
1955
|
{
|
|
@@ -1962,31 +1967,33 @@ const Ar = (n) => {
|
|
|
1962
1967
|
px: 6,
|
|
1963
1968
|
h: 40,
|
|
1964
1969
|
onMouseEnter: () => !d && z(!0),
|
|
1965
|
-
onMouseLeave: () =>
|
|
1966
|
-
|
|
1967
|
-
|
|
1970
|
+
onMouseLeave: () => {
|
|
1971
|
+
O || z(!1);
|
|
1972
|
+
},
|
|
1973
|
+
onClick: R,
|
|
1974
|
+
bg: p || v ? "var(--mantine-color-gray-1)" : "transparent",
|
|
1968
1975
|
"aria-expanded": y,
|
|
1969
1976
|
"aria-label": m || `${n} navigation link`,
|
|
1970
1977
|
...w,
|
|
1971
|
-
children: /* @__PURE__ */
|
|
1978
|
+
children: /* @__PURE__ */ x(
|
|
1972
1979
|
A,
|
|
1973
1980
|
{
|
|
1974
1981
|
w: "100%",
|
|
1975
1982
|
wrap: "nowrap",
|
|
1976
1983
|
gap: 8,
|
|
1977
|
-
onClick:
|
|
1984
|
+
onClick: R,
|
|
1978
1985
|
style: {
|
|
1979
|
-
paddingLeft: u && !
|
|
1986
|
+
paddingLeft: u && !L ? `${(l + 1) * 32}px` : l > 0 ? `${l * 32}px` : "0px"
|
|
1980
1987
|
},
|
|
1981
1988
|
children: [
|
|
1982
|
-
|
|
1989
|
+
L ? /* @__PURE__ */ e(
|
|
1983
1990
|
Be,
|
|
1984
1991
|
{
|
|
1985
1992
|
icon: y ? Ce : Je,
|
|
1986
1993
|
iconOnHover: y ? Ce : Je,
|
|
1987
|
-
grayScaleBaseColor:
|
|
1994
|
+
grayScaleBaseColor: v ? 1 : 0,
|
|
1988
1995
|
color: "var(--mantine-color-gray-7)",
|
|
1989
|
-
onClick:
|
|
1996
|
+
onClick: G,
|
|
1990
1997
|
disabled: d
|
|
1991
1998
|
}
|
|
1992
1999
|
) : f ? /* @__PURE__ */ e(
|
|
@@ -2010,22 +2017,22 @@ const Ar = (n) => {
|
|
|
2010
2017
|
children: n
|
|
2011
2018
|
}
|
|
2012
2019
|
),
|
|
2013
|
-
/* @__PURE__ */
|
|
2020
|
+
/* @__PURE__ */ x(A, { gap: "xs", align: "center", children: [
|
|
2014
2021
|
o && /* @__PURE__ */ e(T, { size: "xs", c: "dimmed", children: o }),
|
|
2015
|
-
|
|
2022
|
+
v && !d && /* @__PURE__ */ x(A, { gap: 4, wrap: "nowrap", children: [
|
|
2016
2023
|
r && /* @__PURE__ */ e(
|
|
2017
2024
|
Be,
|
|
2018
2025
|
{
|
|
2019
2026
|
icon: Te,
|
|
2020
|
-
grayScaleBaseColor:
|
|
2021
|
-
onClick:
|
|
2027
|
+
grayScaleBaseColor: v ? 1 : 0,
|
|
2028
|
+
onClick: Q,
|
|
2022
2029
|
color: "var(--mantine-color-gray-7)"
|
|
2023
2030
|
}
|
|
2024
2031
|
),
|
|
2025
2032
|
(a && a.length > 0 || r) && /* @__PURE__ */ e("div", { onClick: ($) => $.stopPropagation(), children: /* @__PURE__ */ e(
|
|
2026
2033
|
nn,
|
|
2027
2034
|
{
|
|
2028
|
-
menuItems:
|
|
2035
|
+
menuItems: oe,
|
|
2029
2036
|
trigger: /* @__PURE__ */ e(
|
|
2030
2037
|
Be,
|
|
2031
2038
|
{
|
|
@@ -2035,7 +2042,13 @@ const Ar = (n) => {
|
|
|
2035
2042
|
}
|
|
2036
2043
|
),
|
|
2037
2044
|
position: "bottom-end",
|
|
2038
|
-
shadow: "md"
|
|
2045
|
+
shadow: "md",
|
|
2046
|
+
onOpen: () => {
|
|
2047
|
+
k(!0), z(!0);
|
|
2048
|
+
},
|
|
2049
|
+
onClose: () => {
|
|
2050
|
+
k(!1);
|
|
2051
|
+
}
|
|
2039
2052
|
}
|
|
2040
2053
|
) })
|
|
2041
2054
|
] })
|
|
@@ -2045,7 +2058,7 @@ const Ar = (n) => {
|
|
|
2045
2058
|
)
|
|
2046
2059
|
}
|
|
2047
2060
|
),
|
|
2048
|
-
y && !u && /* @__PURE__ */ e(W, { gap: 0, style: { width: "100%" }, children:
|
|
2061
|
+
y && !u && /* @__PURE__ */ e(W, { gap: 0, style: { width: "100%" }, children: E ? N() : /* @__PURE__ */ e(b, { style: { marginLeft: l > 0 ? `${l * 16}px` : "0px" }, children: /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", ta: "left", p: "sm", fw: 500, children: s }) }) })
|
|
2049
2062
|
] });
|
|
2050
2063
|
}, Yr = "userChip-module__pill___DgFME", Zr = {
|
|
2051
2064
|
pill: Yr
|
|
@@ -2064,7 +2077,7 @@ const Ar = (n) => {
|
|
|
2064
2077
|
size: "md",
|
|
2065
2078
|
className: Zr.pill,
|
|
2066
2079
|
bg: "transparent",
|
|
2067
|
-
children: /* @__PURE__ */
|
|
2080
|
+
children: /* @__PURE__ */ x(A, { gap: 4, wrap: "nowrap", style: { alignItems: "center" }, children: [
|
|
2068
2081
|
/* @__PURE__ */ e(
|
|
2069
2082
|
Oe,
|
|
2070
2083
|
{
|
|
@@ -2084,7 +2097,7 @@ const Ar = (n) => {
|
|
|
2084
2097
|
onClick: r,
|
|
2085
2098
|
selected: i = !1
|
|
2086
2099
|
}) => {
|
|
2087
|
-
const [a, c] =
|
|
2100
|
+
const [a, c] = C(!1);
|
|
2088
2101
|
return /* @__PURE__ */ e(
|
|
2089
2102
|
b,
|
|
2090
2103
|
{
|
|
@@ -2105,7 +2118,7 @@ const Ar = (n) => {
|
|
|
2105
2118
|
transition: "background-color 0.2s ease",
|
|
2106
2119
|
opacity: t ? 0.5 : 1
|
|
2107
2120
|
},
|
|
2108
|
-
children: /* @__PURE__ */
|
|
2121
|
+
children: /* @__PURE__ */ x(
|
|
2109
2122
|
A,
|
|
2110
2123
|
{
|
|
2111
2124
|
gap: "sm",
|
|
@@ -2127,7 +2140,7 @@ const Ar = (n) => {
|
|
|
2127
2140
|
}
|
|
2128
2141
|
}
|
|
2129
2142
|
),
|
|
2130
|
-
/* @__PURE__ */
|
|
2143
|
+
/* @__PURE__ */ x(W, { gap: 0, style: { flex: 1 }, children: [
|
|
2131
2144
|
/* @__PURE__ */ e(
|
|
2132
2145
|
T,
|
|
2133
2146
|
{
|
|
@@ -2174,12 +2187,12 @@ const Ar = (n) => {
|
|
|
2174
2187
|
triggerStyles: p,
|
|
2175
2188
|
textStyles: f
|
|
2176
2189
|
}) => {
|
|
2177
|
-
const [I, h] =
|
|
2190
|
+
const [I, h] = C(!1), g = (t || []).find((v) => v.value === n) || l, [m, w] = C(!1), [y, S] = C(!1), [M, z] = C(!1), O = r ? /* @__PURE__ */ e(
|
|
2178
2191
|
A,
|
|
2179
2192
|
{
|
|
2180
2193
|
p: "sm",
|
|
2181
|
-
onClick: (
|
|
2182
|
-
|
|
2194
|
+
onClick: (v) => {
|
|
2195
|
+
v.stopPropagation(), a == null || a(n);
|
|
2183
2196
|
},
|
|
2184
2197
|
style: {
|
|
2185
2198
|
cursor: "pointer",
|
|
@@ -2194,7 +2207,7 @@ const Ar = (n) => {
|
|
|
2194
2207
|
onMouseLeave: () => S(!1),
|
|
2195
2208
|
children: /* @__PURE__ */ e(T, { size: "sm", c: "var(--mantine-color-red-6)", fw: 500, children: "Remove user" })
|
|
2196
2209
|
}
|
|
2197
|
-
) : null,
|
|
2210
|
+
) : null, k = /* @__PURE__ */ x(
|
|
2198
2211
|
b,
|
|
2199
2212
|
{
|
|
2200
2213
|
onMouseEnter: () => !s && w(!0),
|
|
@@ -2244,12 +2257,12 @@ const Ar = (n) => {
|
|
|
2244
2257
|
]
|
|
2245
2258
|
}
|
|
2246
2259
|
);
|
|
2247
|
-
return /* @__PURE__ */
|
|
2260
|
+
return /* @__PURE__ */ x(
|
|
2248
2261
|
je,
|
|
2249
2262
|
{
|
|
2250
2263
|
opened: I,
|
|
2251
|
-
onChange: (
|
|
2252
|
-
h(
|
|
2264
|
+
onChange: (v) => {
|
|
2265
|
+
h(v), v || z(!1);
|
|
2253
2266
|
},
|
|
2254
2267
|
position: to,
|
|
2255
2268
|
shadow: "md",
|
|
@@ -2257,12 +2270,12 @@ const Ar = (n) => {
|
|
|
2257
2270
|
zIndex: ro,
|
|
2258
2271
|
styles: d,
|
|
2259
2272
|
children: [
|
|
2260
|
-
/* @__PURE__ */ e(je.Target, { children:
|
|
2273
|
+
/* @__PURE__ */ e(je.Target, { children: k }),
|
|
2261
2274
|
/* @__PURE__ */ e(
|
|
2262
2275
|
je.Dropdown,
|
|
2263
2276
|
{
|
|
2264
|
-
onClick: (
|
|
2265
|
-
onMouseDown: (
|
|
2277
|
+
onClick: (v) => v.stopPropagation(),
|
|
2278
|
+
onMouseDown: (v) => v.stopPropagation(),
|
|
2266
2279
|
styles: {
|
|
2267
2280
|
dropdown: {
|
|
2268
2281
|
borderRadius: "var(--mantine-radius-md)",
|
|
@@ -2270,30 +2283,30 @@ const Ar = (n) => {
|
|
|
2270
2283
|
...u
|
|
2271
2284
|
}
|
|
2272
2285
|
},
|
|
2273
|
-
children: /* @__PURE__ */
|
|
2286
|
+
children: /* @__PURE__ */ x(
|
|
2274
2287
|
W,
|
|
2275
2288
|
{
|
|
2276
2289
|
gap: 0,
|
|
2277
|
-
onClick: (
|
|
2278
|
-
onMouseDown: (
|
|
2290
|
+
onClick: (v) => v.stopPropagation(),
|
|
2291
|
+
onMouseDown: (v) => v.stopPropagation(),
|
|
2279
2292
|
children: [
|
|
2280
|
-
(t || []).map((
|
|
2281
|
-
const
|
|
2293
|
+
(t || []).map((v) => {
|
|
2294
|
+
const E = c.includes(v.value), L = v.value === n;
|
|
2282
2295
|
return /* @__PURE__ */ e(
|
|
2283
2296
|
no,
|
|
2284
2297
|
{
|
|
2285
|
-
item:
|
|
2298
|
+
item: v,
|
|
2286
2299
|
withAvatars: i,
|
|
2287
|
-
disabled:
|
|
2300
|
+
disabled: E,
|
|
2288
2301
|
selected: L,
|
|
2289
2302
|
onClick: (R) => {
|
|
2290
2303
|
o == null || o(R), h(!1), z(!1);
|
|
2291
2304
|
}
|
|
2292
2305
|
},
|
|
2293
|
-
|
|
2306
|
+
v.value
|
|
2294
2307
|
);
|
|
2295
2308
|
}),
|
|
2296
|
-
|
|
2309
|
+
O
|
|
2297
2310
|
]
|
|
2298
2311
|
}
|
|
2299
2312
|
)
|
|
@@ -2303,7 +2316,7 @@ const Ar = (n) => {
|
|
|
2303
2316
|
}
|
|
2304
2317
|
);
|
|
2305
2318
|
}, so = (n, o, t, r) => {
|
|
2306
|
-
const i =
|
|
2319
|
+
const i = q(null), a = q(null), c = j(
|
|
2307
2320
|
(l) => {
|
|
2308
2321
|
l[0].isIntersecting && t && !r && o && o();
|
|
2309
2322
|
},
|
|
@@ -2352,68 +2365,68 @@ const Ar = (n) => {
|
|
|
2352
2365
|
highlightOnHover: S = !0,
|
|
2353
2366
|
enableInfiniteScroll: M = !1,
|
|
2354
2367
|
isLoadingMore: z = !1,
|
|
2355
|
-
hasMore:
|
|
2356
|
-
onLoadMore:
|
|
2368
|
+
hasMore: O = !1,
|
|
2369
|
+
onLoadMore: k
|
|
2357
2370
|
}) => {
|
|
2358
|
-
const [
|
|
2371
|
+
const [v, E] = C(""), [L, R] = C([]), { loadMoreRef: F } = so(
|
|
2359
2372
|
M,
|
|
2360
|
-
|
|
2373
|
+
k || (() => {
|
|
2361
2374
|
}),
|
|
2362
|
-
|
|
2375
|
+
O,
|
|
2363
2376
|
z
|
|
2364
|
-
),
|
|
2365
|
-
value:
|
|
2366
|
-
label:
|
|
2367
|
-
})) : [], ...u], [t, d, u]),
|
|
2377
|
+
), G = J(() => [...d ? t.filter((B) => B.type === "select" && B.options).map((B) => ({
|
|
2378
|
+
value: B.key,
|
|
2379
|
+
label: B.label
|
|
2380
|
+
})) : [], ...u], [t, d, u]), Q = J(() => {
|
|
2368
2381
|
let D = o || [];
|
|
2369
|
-
if (
|
|
2370
|
-
const
|
|
2382
|
+
if (v) {
|
|
2383
|
+
const B = v.toLowerCase();
|
|
2371
2384
|
D = D.filter((U) => t.some((P) => {
|
|
2372
2385
|
if (!P.searchable)
|
|
2373
2386
|
return !1;
|
|
2374
|
-
const
|
|
2375
|
-
return
|
|
2387
|
+
const K = U[P.key];
|
|
2388
|
+
return K == null ? !1 : String(K).toLowerCase().includes(B);
|
|
2376
2389
|
}));
|
|
2377
2390
|
}
|
|
2378
|
-
return L.forEach((
|
|
2379
|
-
if (
|
|
2391
|
+
return L.forEach((B) => {
|
|
2392
|
+
if (B.filterTag.selectedOption) {
|
|
2380
2393
|
const U = t.find(
|
|
2381
|
-
(P) => P.key ===
|
|
2394
|
+
(P) => P.key === B.filterTag.filterOption.value
|
|
2382
2395
|
);
|
|
2383
2396
|
U && (D = D.filter((P) => {
|
|
2384
2397
|
var de;
|
|
2385
|
-
const
|
|
2386
|
-
return String(
|
|
2398
|
+
const K = P[U.key];
|
|
2399
|
+
return String(K) === ((de = B.filterTag.selectedOption) == null ? void 0 : de.value);
|
|
2387
2400
|
}));
|
|
2388
2401
|
}
|
|
2389
2402
|
}), D;
|
|
2390
|
-
}, [o,
|
|
2391
|
-
|
|
2403
|
+
}, [o, v, L, t]), V = (D) => {
|
|
2404
|
+
E(D), g == null || g(D);
|
|
2392
2405
|
}, N = (D) => {
|
|
2393
|
-
const
|
|
2394
|
-
if (!(
|
|
2406
|
+
const B = t.find((P) => P.key === D);
|
|
2407
|
+
if (!(B != null && B.sortable))
|
|
2395
2408
|
return;
|
|
2396
2409
|
const U = I === D && h === "asc" ? "desc" : "asc";
|
|
2397
2410
|
f == null || f(D, U);
|
|
2398
|
-
},
|
|
2399
|
-
const
|
|
2400
|
-
return (
|
|
2411
|
+
}, X = (D) => {
|
|
2412
|
+
const B = t.find((U) => U.key === D);
|
|
2413
|
+
return (B == null ? void 0 : B.type) === "select" && B.options ? B.options.map((U) => ({
|
|
2401
2414
|
value: U.value,
|
|
2402
2415
|
label: U.label
|
|
2403
|
-
})) : (
|
|
2404
|
-
...new Set(o.map((P) => P[
|
|
2416
|
+
})) : (B == null ? void 0 : B.type) === "badge" ? [
|
|
2417
|
+
...new Set(o.map((P) => P[B.key]).filter(Boolean))
|
|
2405
2418
|
].map((P) => ({
|
|
2406
2419
|
value: String(P),
|
|
2407
2420
|
label: String(P).charAt(0).toUpperCase() + String(P).slice(1)
|
|
2408
|
-
})) :
|
|
2409
|
-
...new Set(o.map((P) => P[
|
|
2421
|
+
})) : B ? [
|
|
2422
|
+
...new Set(o.map((P) => P[B.key]).filter(Boolean))
|
|
2410
2423
|
].map((P) => ({
|
|
2411
2424
|
value: String(P),
|
|
2412
2425
|
label: String(P).charAt(0).toUpperCase() + String(P).slice(1)
|
|
2413
2426
|
})) : [];
|
|
2414
|
-
}, H = (D,
|
|
2415
|
-
var P,
|
|
2416
|
-
const U =
|
|
2427
|
+
}, H = (D, B) => {
|
|
2428
|
+
var P, K, de, _, ge;
|
|
2429
|
+
const U = B[D.key];
|
|
2417
2430
|
switch (D.type) {
|
|
2418
2431
|
case "text":
|
|
2419
2432
|
return /* @__PURE__ */ e(T, { size: "sm", c: U ? void 0 : "dimmed", children: U || "—" });
|
|
@@ -2435,13 +2448,13 @@ const Ar = (n) => {
|
|
|
2435
2448
|
placeholder: D.label,
|
|
2436
2449
|
onChange: (Ie) => {
|
|
2437
2450
|
var Le;
|
|
2438
|
-
return (Le = D.onSelectChange) == null ? void 0 : Le.call(D, Ie,
|
|
2451
|
+
return (Le = D.onSelectChange) == null ? void 0 : Le.call(D, Ie, B);
|
|
2439
2452
|
},
|
|
2440
|
-
disabled: (P = D.disabled) == null ? void 0 : P.call(D,
|
|
2453
|
+
disabled: (P = D.disabled) == null ? void 0 : P.call(D, B)
|
|
2441
2454
|
}
|
|
2442
2455
|
) : /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: "—" });
|
|
2443
2456
|
case "badge":
|
|
2444
|
-
const cn = ((
|
|
2457
|
+
const cn = ((K = D.badgeColors) == null ? void 0 : K[U]) || "gray";
|
|
2445
2458
|
return /* @__PURE__ */ e(
|
|
2446
2459
|
Ke,
|
|
2447
2460
|
{
|
|
@@ -2454,7 +2467,7 @@ const Ar = (n) => {
|
|
|
2454
2467
|
}
|
|
2455
2468
|
);
|
|
2456
2469
|
case "avatar":
|
|
2457
|
-
const sn = ((de = D.fallbackText) == null ? void 0 : de.call(D,
|
|
2470
|
+
const sn = ((de = D.fallbackText) == null ? void 0 : de.call(D, B)) || String(U).charAt(0).toUpperCase();
|
|
2458
2471
|
return /* @__PURE__ */ e(
|
|
2459
2472
|
Oe,
|
|
2460
2473
|
{
|
|
@@ -2465,9 +2478,9 @@ const Ar = (n) => {
|
|
|
2465
2478
|
}
|
|
2466
2479
|
);
|
|
2467
2480
|
case "custom":
|
|
2468
|
-
return ((
|
|
2481
|
+
return ((_ = D.render) == null ? void 0 : _.call(D, U, B)) || /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: "—" });
|
|
2469
2482
|
case "actions":
|
|
2470
|
-
return (ge = D.actions) != null && ge.length ? /* @__PURE__ */
|
|
2483
|
+
return (ge = D.actions) != null && ge.length ? /* @__PURE__ */ x(
|
|
2471
2484
|
pe,
|
|
2472
2485
|
{
|
|
2473
2486
|
shadow: "md",
|
|
@@ -2487,8 +2500,8 @@ const Ar = (n) => {
|
|
|
2487
2500
|
{
|
|
2488
2501
|
color: Ie.color,
|
|
2489
2502
|
leftSection: Ie.icon,
|
|
2490
|
-
disabled: (_e = Ie.disabled) == null ? void 0 : _e.call(Ie,
|
|
2491
|
-
onClick: () => Ie.onClick(
|
|
2503
|
+
disabled: (_e = Ie.disabled) == null ? void 0 : _e.call(Ie, B),
|
|
2504
|
+
onClick: () => Ie.onClick(B),
|
|
2492
2505
|
styles: {
|
|
2493
2506
|
item: {
|
|
2494
2507
|
borderRadius: "var(--mantine-radius-md)"
|
|
@@ -2506,9 +2519,9 @@ const Ar = (n) => {
|
|
|
2506
2519
|
return /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: "—" });
|
|
2507
2520
|
}
|
|
2508
2521
|
}, oe = (D) => {
|
|
2509
|
-
var
|
|
2510
|
-
return (
|
|
2511
|
-
},
|
|
2522
|
+
var B;
|
|
2523
|
+
return (B = t.find((U) => U.key === D)) != null && B.sortable ? I === D ? h === "asc" ? /* @__PURE__ */ e(Ve, { size: 14 }) : /* @__PURE__ */ e(Ce, { size: 14 }) : /* @__PURE__ */ e(Ve, { size: 14, style: { opacity: 0.3 } }) : null;
|
|
2524
|
+
}, Z = (() => {
|
|
2512
2525
|
switch (w) {
|
|
2513
2526
|
case "sm":
|
|
2514
2527
|
return { buttonSize: "xs", textSize: "sm" };
|
|
@@ -2518,32 +2531,32 @@ const Ar = (n) => {
|
|
|
2518
2531
|
return { buttonSize: "sm", textSize: "sm" };
|
|
2519
2532
|
}
|
|
2520
2533
|
})();
|
|
2521
|
-
return /* @__PURE__ */
|
|
2534
|
+
return /* @__PURE__ */ x(b, { pos: "relative", children: [
|
|
2522
2535
|
/* @__PURE__ */ e(Jt, { visible: c }),
|
|
2523
|
-
/* @__PURE__ */
|
|
2524
|
-
/* @__PURE__ */
|
|
2536
|
+
/* @__PURE__ */ x(W, { gap: "sm", w: "100%", children: [
|
|
2537
|
+
/* @__PURE__ */ x(A, { gap: "sm", wrap: "nowrap", justify: "space-between", children: [
|
|
2525
2538
|
/* @__PURE__ */ e(T, { fw: 600, c: "var(--mantine-color-gray-8)", children: n }),
|
|
2526
|
-
/* @__PURE__ */
|
|
2527
|
-
/* @__PURE__ */
|
|
2539
|
+
/* @__PURE__ */ x(A, { gap: "xs", wrap: "nowrap", children: [
|
|
2540
|
+
/* @__PURE__ */ x(A, { gap: 4, wrap: "nowrap", children: [
|
|
2528
2541
|
/* @__PURE__ */ e(
|
|
2529
2542
|
Pr,
|
|
2530
2543
|
{
|
|
2531
2544
|
placeholder: l,
|
|
2532
|
-
value:
|
|
2545
|
+
value: v,
|
|
2533
2546
|
onChange: V,
|
|
2534
2547
|
onSearch: V,
|
|
2535
2548
|
expandDirection: "right",
|
|
2536
|
-
size:
|
|
2549
|
+
size: Z.buttonSize
|
|
2537
2550
|
}
|
|
2538
2551
|
),
|
|
2539
|
-
|
|
2552
|
+
G.length > 0 && /* @__PURE__ */ e(
|
|
2540
2553
|
Bn,
|
|
2541
2554
|
{
|
|
2542
2555
|
activeFilters: L.map((D) => D.filterTag),
|
|
2543
2556
|
onFiltersChange: (D) => {
|
|
2544
2557
|
R(
|
|
2545
|
-
D.map((
|
|
2546
|
-
filterTag:
|
|
2558
|
+
D.map((B) => ({
|
|
2559
|
+
filterTag: B,
|
|
2547
2560
|
onUpdate: () => {
|
|
2548
2561
|
},
|
|
2549
2562
|
onRemove: () => {
|
|
@@ -2551,8 +2564,8 @@ const Ar = (n) => {
|
|
|
2551
2564
|
}))
|
|
2552
2565
|
), p == null || p(D);
|
|
2553
2566
|
},
|
|
2554
|
-
availableFilters:
|
|
2555
|
-
size:
|
|
2567
|
+
availableFilters: G,
|
|
2568
|
+
size: Z.buttonSize
|
|
2556
2569
|
}
|
|
2557
2570
|
)
|
|
2558
2571
|
] }),
|
|
@@ -2562,7 +2575,7 @@ const Ar = (n) => {
|
|
|
2562
2575
|
size: "compact-md",
|
|
2563
2576
|
h: 32,
|
|
2564
2577
|
style: {
|
|
2565
|
-
fontSize: `var(--mantine-font-size-${
|
|
2578
|
+
fontSize: `var(--mantine-font-size-${Z.textSize})`,
|
|
2566
2579
|
border: "none"
|
|
2567
2580
|
},
|
|
2568
2581
|
radius: "md",
|
|
@@ -2572,14 +2585,14 @@ const Ar = (n) => {
|
|
|
2572
2585
|
)
|
|
2573
2586
|
] })
|
|
2574
2587
|
] }),
|
|
2575
|
-
|
|
2588
|
+
G.length > 0 && /* @__PURE__ */ e(
|
|
2576
2589
|
An,
|
|
2577
2590
|
{
|
|
2578
2591
|
activeFilters: L.map((D) => D.filterTag),
|
|
2579
2592
|
onFiltersChange: (D) => {
|
|
2580
2593
|
R(
|
|
2581
|
-
D.map((
|
|
2582
|
-
filterTag:
|
|
2594
|
+
D.map((B) => ({
|
|
2595
|
+
filterTag: B,
|
|
2583
2596
|
onUpdate: () => {
|
|
2584
2597
|
},
|
|
2585
2598
|
onRemove: () => {
|
|
@@ -2587,14 +2600,14 @@ const Ar = (n) => {
|
|
|
2587
2600
|
}))
|
|
2588
2601
|
), p == null || p(D);
|
|
2589
2602
|
},
|
|
2590
|
-
availableFilters:
|
|
2603
|
+
availableFilters: G,
|
|
2591
2604
|
size: "md",
|
|
2592
|
-
getFilterOptions:
|
|
2605
|
+
getFilterOptions: X
|
|
2593
2606
|
}
|
|
2594
2607
|
)
|
|
2595
2608
|
] }),
|
|
2596
2609
|
i,
|
|
2597
|
-
/* @__PURE__ */
|
|
2610
|
+
/* @__PURE__ */ x(
|
|
2598
2611
|
we,
|
|
2599
2612
|
{
|
|
2600
2613
|
striped: y,
|
|
@@ -2612,15 +2625,15 @@ const Ar = (n) => {
|
|
|
2612
2625
|
cursor: D.sortable ? "pointer" : "default"
|
|
2613
2626
|
},
|
|
2614
2627
|
onClick: () => D.sortable && N(D.key),
|
|
2615
|
-
children: /* @__PURE__ */
|
|
2628
|
+
children: /* @__PURE__ */ x(A, { gap: "xs", wrap: "nowrap", children: [
|
|
2616
2629
|
D.icon && /* @__PURE__ */ e(b, { style: { display: "flex", alignItems: "center" }, children: D.icon }),
|
|
2617
|
-
/* @__PURE__ */ e(T, { size:
|
|
2630
|
+
/* @__PURE__ */ e(T, { size: Z.textSize, fw: 500, children: D.label }),
|
|
2618
2631
|
oe(D.key)
|
|
2619
2632
|
] })
|
|
2620
2633
|
},
|
|
2621
2634
|
String(D.key)
|
|
2622
2635
|
)) }) }),
|
|
2623
|
-
/* @__PURE__ */ e(we.Tbody, { children:
|
|
2636
|
+
/* @__PURE__ */ e(we.Tbody, { children: Q.length === 0 ? /* @__PURE__ */ e(we.Tr, { children: /* @__PURE__ */ e(we.Td, { colSpan: t.length, ta: "center", py: "xl", children: /* @__PURE__ */ e(T, { c: "dimmed", children: s }) }) }) : Q.map((D, B) => /* @__PURE__ */ e(
|
|
2624
2637
|
we.Tr,
|
|
2625
2638
|
{
|
|
2626
2639
|
style: { cursor: m ? "pointer" : "default" },
|
|
@@ -2634,7 +2647,7 @@ const Ar = (n) => {
|
|
|
2634
2647
|
String(U.key)
|
|
2635
2648
|
))
|
|
2636
2649
|
},
|
|
2637
|
-
D.id ||
|
|
2650
|
+
D.id || B
|
|
2638
2651
|
)) })
|
|
2639
2652
|
]
|
|
2640
2653
|
}
|
|
@@ -2650,7 +2663,7 @@ const Ar = (n) => {
|
|
|
2650
2663
|
alignItems: "center",
|
|
2651
2664
|
minHeight: "60px"
|
|
2652
2665
|
},
|
|
2653
|
-
children: z && /* @__PURE__ */
|
|
2666
|
+
children: z && /* @__PURE__ */ x(A, { display: "flex", ta: "center", gap: "xs", children: [
|
|
2654
2667
|
/* @__PURE__ */ e(Se, { size: "sm", color: "gray.5" }),
|
|
2655
2668
|
/* @__PURE__ */ e(T, { size: "sm", c: "dimmed", fw: 500, children: "Loading more..." })
|
|
2656
2669
|
] })
|
|
@@ -2667,44 +2680,44 @@ const uo = ({
|
|
|
2667
2680
|
onImageSelect: t,
|
|
2668
2681
|
onIconSelect: r
|
|
2669
2682
|
} = {}) => {
|
|
2670
|
-
const [i, a] =
|
|
2683
|
+
const [i, a] = C(
|
|
2671
2684
|
"emoji"
|
|
2672
|
-
), [c, s] =
|
|
2673
|
-
a(
|
|
2685
|
+
), [c, s] = C(null), [l, d] = C(null), [u, p] = C(null), [f, I] = C(null), [h, g] = C(null), m = j((v) => {
|
|
2686
|
+
a(v);
|
|
2674
2687
|
}, []), w = j(
|
|
2675
|
-
(
|
|
2676
|
-
s(
|
|
2688
|
+
(v) => {
|
|
2689
|
+
s(v);
|
|
2677
2690
|
},
|
|
2678
2691
|
[]
|
|
2679
|
-
), y = j((
|
|
2680
|
-
g(
|
|
2681
|
-
const
|
|
2682
|
-
|
|
2692
|
+
), y = j((v) => {
|
|
2693
|
+
g(v);
|
|
2694
|
+
const E = new FileReader();
|
|
2695
|
+
E.onload = (L) => {
|
|
2683
2696
|
var F;
|
|
2684
2697
|
const R = (F = L.target) == null ? void 0 : F.result;
|
|
2685
2698
|
d(R);
|
|
2686
|
-
},
|
|
2699
|
+
}, E.readAsDataURL(v);
|
|
2687
2700
|
}, []), S = j(
|
|
2688
|
-
(
|
|
2689
|
-
p(
|
|
2701
|
+
(v) => {
|
|
2702
|
+
p(v), d(null), g(null), I(null), n == null || n({ type: "emoji", value: v }), o == null || o(v);
|
|
2690
2703
|
},
|
|
2691
2704
|
[n, o]
|
|
2692
2705
|
), M = j(
|
|
2693
|
-
(
|
|
2694
|
-
I(
|
|
2706
|
+
(v) => {
|
|
2707
|
+
I(v), d(null), g(null), p(null), n == null || n({ type: "icon", value: v }), r == null || r(v);
|
|
2695
2708
|
},
|
|
2696
2709
|
[n, r]
|
|
2697
2710
|
), z = j(() => {
|
|
2698
2711
|
if (h && l) {
|
|
2699
|
-
const
|
|
2712
|
+
const v = URL.createObjectURL(h);
|
|
2700
2713
|
n == null || n({
|
|
2701
2714
|
type: "image",
|
|
2702
|
-
value:
|
|
2715
|
+
value: v
|
|
2703
2716
|
}), t == null || t(h);
|
|
2704
2717
|
}
|
|
2705
|
-
}, [h, l, n, t]),
|
|
2718
|
+
}, [h, l, n, t]), O = j(() => {
|
|
2706
2719
|
d(null), g(null), p(null), I(null);
|
|
2707
|
-
}, []),
|
|
2720
|
+
}, []), k = j(() => {
|
|
2708
2721
|
d(null), p(null), I(null), g(null), a("emoji"), s(null);
|
|
2709
2722
|
}, []);
|
|
2710
2723
|
return {
|
|
@@ -2720,8 +2733,8 @@ const uo = ({
|
|
|
2720
2733
|
handleImageAccept: z,
|
|
2721
2734
|
handleEmojiSelect: S,
|
|
2722
2735
|
handleIconSelect: M,
|
|
2723
|
-
clearImagePreview:
|
|
2724
|
-
resetState:
|
|
2736
|
+
clearImagePreview: O,
|
|
2737
|
+
resetState: k
|
|
2725
2738
|
};
|
|
2726
2739
|
}, fo = ({
|
|
2727
2740
|
opened: n,
|
|
@@ -2757,8 +2770,8 @@ const uo = ({
|
|
|
2757
2770
|
hasAvatar: a = !1,
|
|
2758
2771
|
children: c
|
|
2759
2772
|
}) => {
|
|
2760
|
-
const [s, l] =
|
|
2761
|
-
return /* @__PURE__ */
|
|
2773
|
+
const [s, l] = C(!1);
|
|
2774
|
+
return /* @__PURE__ */ x(
|
|
2762
2775
|
fe,
|
|
2763
2776
|
{
|
|
2764
2777
|
color: "black",
|
|
@@ -2769,7 +2782,7 @@ const uo = ({
|
|
|
2769
2782
|
}
|
|
2770
2783
|
},
|
|
2771
2784
|
children: [
|
|
2772
|
-
/* @__PURE__ */
|
|
2785
|
+
/* @__PURE__ */ x(fe.List, { px: "var(--mantine-spacing-sm)", pt: "xs", w: "100%", children: [
|
|
2773
2786
|
/* @__PURE__ */ e(
|
|
2774
2787
|
fe.Tab,
|
|
2775
2788
|
{
|
|
@@ -2962,13 +2975,13 @@ const po = () => {
|
|
|
2962
2975
|
onEmojiSelect: n,
|
|
2963
2976
|
height: o = 200
|
|
2964
2977
|
}) => {
|
|
2965
|
-
const [t, r] =
|
|
2978
|
+
const [t, r] = C(""), [i, a] = C("people"), [c, s] = C(() => {
|
|
2966
2979
|
if (typeof window < "u") {
|
|
2967
2980
|
const m = localStorage.getItem("emoji-frequent");
|
|
2968
2981
|
return m ? JSON.parse(m) : [];
|
|
2969
2982
|
}
|
|
2970
2983
|
return [];
|
|
2971
|
-
}), [l, d] =
|
|
2984
|
+
}), [l, d] = C([]), [u, p] = C(!1), f = po();
|
|
2972
2985
|
Y(() => {
|
|
2973
2986
|
t.trim() ? (p(!0), Mr.search(t).then((m) => {
|
|
2974
2987
|
d(
|
|
@@ -2981,7 +2994,7 @@ const po = () => {
|
|
|
2981
2994
|
), p(!1);
|
|
2982
2995
|
})) : d([]);
|
|
2983
2996
|
}, [t]);
|
|
2984
|
-
const I =
|
|
2997
|
+
const I = J(() => {
|
|
2985
2998
|
if (t.trim())
|
|
2986
2999
|
return l;
|
|
2987
3000
|
if (i === "frequent")
|
|
@@ -3009,8 +3022,8 @@ const po = () => {
|
|
|
3009
3022
|
return typeof window < "u" && localStorage.setItem("emoji-frequent", JSON.stringify(S)), S;
|
|
3010
3023
|
});
|
|
3011
3024
|
};
|
|
3012
|
-
return /* @__PURE__ */
|
|
3013
|
-
/* @__PURE__ */ e(b, { p: "sm", pb: "xs", children: /* @__PURE__ */
|
|
3025
|
+
return /* @__PURE__ */ x(W, { gap: 0, style: { height: o, width: "100%" }, children: [
|
|
3026
|
+
/* @__PURE__ */ e(b, { p: "sm", pb: "xs", children: /* @__PURE__ */ x(W, { gap: "xs", children: [
|
|
3014
3027
|
/* @__PURE__ */ e(
|
|
3015
3028
|
kn,
|
|
3016
3029
|
{
|
|
@@ -4213,7 +4226,7 @@ const $e = [
|
|
|
4213
4226
|
}) }), bt = Mn(
|
|
4214
4227
|
({ onIconSelect: n, height: o = 358 }) => {
|
|
4215
4228
|
var m, w;
|
|
4216
|
-
const [t, r] =
|
|
4229
|
+
const [t, r] = C(""), [i, a] = C("recent"), [c, s] = C(!1), [l, d] = C([]);
|
|
4217
4230
|
Qn(() => {
|
|
4218
4231
|
if (typeof window < "u") {
|
|
4219
4232
|
const y = localStorage.getItem("avatar-icon-recent");
|
|
@@ -4228,9 +4241,9 @@ const $e = [
|
|
|
4228
4241
|
}
|
|
4229
4242
|
}
|
|
4230
4243
|
}, []);
|
|
4231
|
-
const u =
|
|
4244
|
+
const u = J(() => $e.filter(
|
|
4232
4245
|
(y) => y.id !== "recent" && !("isDynamic" in y)
|
|
4233
|
-
).flatMap((y) => y.icons), []), p =
|
|
4246
|
+
).flatMap((y) => y.icons), []), p = J(() => {
|
|
4234
4247
|
if (i === "recent") {
|
|
4235
4248
|
const S = new Set(u);
|
|
4236
4249
|
return l.filter(
|
|
@@ -4246,24 +4259,24 @@ const $e = [
|
|
|
4246
4259
|
if (!y.trim())
|
|
4247
4260
|
return S;
|
|
4248
4261
|
const M = y.toLowerCase().trim(), z = M.split(/\s+/);
|
|
4249
|
-
return S.filter((
|
|
4250
|
-
const
|
|
4251
|
-
return !!(
|
|
4252
|
-
(
|
|
4253
|
-
) || M.length <= 2 &&
|
|
4254
|
-
(
|
|
4262
|
+
return S.filter((O) => {
|
|
4263
|
+
const v = O.replace(/^Icon/, "").split(/(?=[A-Z])/).map((E) => E.toLowerCase().trim()).filter((E) => E.length > 0);
|
|
4264
|
+
return !!(v.some((E) => z.some((L) => E === L)) || M.length > 2 && v.some(
|
|
4265
|
+
(E) => z.some((L) => E.startsWith(L))
|
|
4266
|
+
) || M.length <= 2 && v.some(
|
|
4267
|
+
(E) => z.some((L) => E.includes(L))
|
|
4255
4268
|
) || z.length > 1 && z.every(
|
|
4256
|
-
(
|
|
4269
|
+
(E) => v.some((L) => L === E || L.startsWith(E))
|
|
4257
4270
|
));
|
|
4258
4271
|
});
|
|
4259
4272
|
},
|
|
4260
4273
|
[]
|
|
4261
|
-
), I =
|
|
4274
|
+
), I = J(() => t.trim() ? f(t, u) : p, [t, p, u, f]), h = j(
|
|
4262
4275
|
(y) => {
|
|
4263
4276
|
u.includes(y) && d((M) => {
|
|
4264
4277
|
const z = [
|
|
4265
4278
|
y,
|
|
4266
|
-
...M.filter((
|
|
4279
|
+
...M.filter((O) => O !== y)
|
|
4267
4280
|
].slice(0, 20);
|
|
4268
4281
|
return typeof window < "u" && localStorage.setItem(
|
|
4269
4282
|
"avatar-icon-recent",
|
|
@@ -4280,8 +4293,8 @@ const $e = [
|
|
|
4280
4293
|
},
|
|
4281
4294
|
[i]
|
|
4282
4295
|
);
|
|
4283
|
-
return /* @__PURE__ */
|
|
4284
|
-
/* @__PURE__ */ e(b, { p: "sm", pb: "xs", children: /* @__PURE__ */
|
|
4296
|
+
return /* @__PURE__ */ x(W, { gap: 0, style: { height: o, width: "100%" }, children: [
|
|
4297
|
+
/* @__PURE__ */ e(b, { p: "sm", pb: "xs", children: /* @__PURE__ */ x(W, { gap: "xs", children: [
|
|
4285
4298
|
/* @__PURE__ */ e(
|
|
4286
4299
|
kn,
|
|
4287
4300
|
{
|
|
@@ -4354,8 +4367,8 @@ const yo = ({
|
|
|
4354
4367
|
onImageChange: c,
|
|
4355
4368
|
onImageAccept: s,
|
|
4356
4369
|
onClearImagePreview: l
|
|
4357
|
-
}) => /* @__PURE__ */ e(b, { p: "sm", style: { width: "384px" }, children: /* @__PURE__ */
|
|
4358
|
-
n || t ? /* @__PURE__ */
|
|
4370
|
+
}) => /* @__PURE__ */ e(b, { p: "sm", style: { width: "384px" }, children: /* @__PURE__ */ x(W, { gap: "md", align: "center", children: [
|
|
4371
|
+
n || t ? /* @__PURE__ */ x(b, { children: [
|
|
4359
4372
|
/* @__PURE__ */ e(T, { size: "sm", fw: 500, mb: "xs", children: "Preview" }),
|
|
4360
4373
|
/* @__PURE__ */ e(
|
|
4361
4374
|
et,
|
|
@@ -4420,7 +4433,7 @@ const yo = ({
|
|
|
4420
4433
|
disabled: i
|
|
4421
4434
|
}
|
|
4422
4435
|
),
|
|
4423
|
-
(n || t) && /* @__PURE__ */
|
|
4436
|
+
(n || t) && /* @__PURE__ */ x(A, { gap: "sm", w: "100%", children: [
|
|
4424
4437
|
/* @__PURE__ */ e(
|
|
4425
4438
|
ce,
|
|
4426
4439
|
{
|
|
@@ -4477,7 +4490,7 @@ const yo = ({
|
|
|
4477
4490
|
alignItems: "center",
|
|
4478
4491
|
justifyContent: "center"
|
|
4479
4492
|
},
|
|
4480
|
-
children: /* @__PURE__ */
|
|
4493
|
+
children: /* @__PURE__ */ x(W, { align: "center", gap: "sm", children: [
|
|
4481
4494
|
/* @__PURE__ */ e(Se, { size: "sm" }),
|
|
4482
4495
|
/* @__PURE__ */ e(T, { size: "sm", c: "gray.6", children: "Loading avatar options..." })
|
|
4483
4496
|
] })
|
|
@@ -4501,21 +4514,21 @@ const yo = ({
|
|
|
4501
4514
|
withinPortal: f = !0,
|
|
4502
4515
|
zIndex: I = 1e3
|
|
4503
4516
|
}) => {
|
|
4504
|
-
const h =
|
|
4517
|
+
const h = q(null), g = q(null), m = q(null), {
|
|
4505
4518
|
selectedTab: w,
|
|
4506
4519
|
tabHovered: y,
|
|
4507
4520
|
previewImage: S,
|
|
4508
4521
|
selectedEmoji: M,
|
|
4509
4522
|
selectedIcon: z,
|
|
4510
|
-
selectedFile:
|
|
4511
|
-
handleTabChange:
|
|
4512
|
-
handleTabHover:
|
|
4513
|
-
handleImagePreview:
|
|
4523
|
+
selectedFile: O,
|
|
4524
|
+
handleTabChange: k,
|
|
4525
|
+
handleTabHover: v,
|
|
4526
|
+
handleImagePreview: E,
|
|
4514
4527
|
handleImageAccept: L,
|
|
4515
4528
|
handleEmojiSelect: R,
|
|
4516
4529
|
handleIconSelect: F,
|
|
4517
|
-
clearImagePreview:
|
|
4518
|
-
resetState:
|
|
4530
|
+
clearImagePreview: G,
|
|
4531
|
+
resetState: Q
|
|
4519
4532
|
} = uo({
|
|
4520
4533
|
onAvatarSelect: a
|
|
4521
4534
|
});
|
|
@@ -4524,23 +4537,23 @@ const yo = ({
|
|
|
4524
4537
|
onClose: r,
|
|
4525
4538
|
popoverRef: g
|
|
4526
4539
|
}), Y(() => {
|
|
4527
|
-
o ||
|
|
4528
|
-
}, [o,
|
|
4540
|
+
o || Q();
|
|
4541
|
+
}, [o, Q]);
|
|
4529
4542
|
const V = (ie) => {
|
|
4530
4543
|
console.log("Emoji clicked:", ie), R(ie), r();
|
|
4531
4544
|
}, N = (ie) => {
|
|
4532
4545
|
console.log("Icon clicked:", ie), F(ie), r();
|
|
4533
|
-
},
|
|
4534
|
-
ie &&
|
|
4546
|
+
}, X = (ie) => {
|
|
4547
|
+
ie && E(ie);
|
|
4535
4548
|
}, H = () => {
|
|
4536
|
-
|
|
4549
|
+
O ? (L(), r()) : (M || z) && r();
|
|
4537
4550
|
}, oe = () => {
|
|
4538
4551
|
h.current && h.current.click();
|
|
4539
|
-
},
|
|
4540
|
-
|
|
4541
|
-
},
|
|
4552
|
+
}, $ = () => {
|
|
4553
|
+
G();
|
|
4554
|
+
}, Z = () => {
|
|
4542
4555
|
console.log("Avatar removed"), c == null || c(), r();
|
|
4543
|
-
}, D = () => !!i,
|
|
4556
|
+
}, D = () => !!i, B = () => l ? /* @__PURE__ */ e(bn, { size: s, loading: !0 }) : /* @__PURE__ */ e(
|
|
4544
4557
|
Oe,
|
|
4545
4558
|
{
|
|
4546
4559
|
avatar: i,
|
|
@@ -4552,7 +4565,7 @@ const yo = ({
|
|
|
4552
4565
|
!l && !o && t();
|
|
4553
4566
|
}
|
|
4554
4567
|
}
|
|
4555
|
-
), U = /* @__PURE__ */ e(vo, { onEmojiSelect: V }), P = /* @__PURE__ */ e(xo, { onIconSelect: N }),
|
|
4568
|
+
), U = /* @__PURE__ */ e(vo, { onEmojiSelect: V }), P = /* @__PURE__ */ e(xo, { onIconSelect: N }), K = /* @__PURE__ */ e(
|
|
4556
4569
|
wo,
|
|
4557
4570
|
{
|
|
4558
4571
|
previewImage: S,
|
|
@@ -4560,9 +4573,9 @@ const yo = ({
|
|
|
4560
4573
|
size: s,
|
|
4561
4574
|
loading: l,
|
|
4562
4575
|
onFileInputClick: oe,
|
|
4563
|
-
onImageChange:
|
|
4576
|
+
onImageChange: X,
|
|
4564
4577
|
onImageAccept: H,
|
|
4565
|
-
onClearImagePreview:
|
|
4578
|
+
onClearImagePreview: $,
|
|
4566
4579
|
fileInputRef: h
|
|
4567
4580
|
}
|
|
4568
4581
|
), de = /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(
|
|
@@ -4570,13 +4583,13 @@ const yo = ({
|
|
|
4570
4583
|
{
|
|
4571
4584
|
selectedTab: w,
|
|
4572
4585
|
tabHovered: y,
|
|
4573
|
-
onTabChange:
|
|
4574
|
-
onTabHover:
|
|
4575
|
-
onRemove:
|
|
4586
|
+
onTabChange: k,
|
|
4587
|
+
onTabHover: v,
|
|
4588
|
+
onRemove: Z,
|
|
4576
4589
|
hasAvatar: D(),
|
|
4577
|
-
children: w === "emoji" ? U : w === "icons" ? P :
|
|
4590
|
+
children: w === "emoji" ? U : w === "icons" ? P : K
|
|
4578
4591
|
}
|
|
4579
|
-
) }),
|
|
4592
|
+
) }), _ = /* @__PURE__ */ e("div", { style: { position: "relative", display: "inline-block" }, children: /* @__PURE__ */ x(
|
|
4580
4593
|
je,
|
|
4581
4594
|
{
|
|
4582
4595
|
opened: o,
|
|
@@ -4592,7 +4605,7 @@ const yo = ({
|
|
|
4592
4605
|
closeOnEscape: !1,
|
|
4593
4606
|
offset: 8,
|
|
4594
4607
|
children: [
|
|
4595
|
-
/* @__PURE__ */ e(je.Target, { children: /* @__PURE__ */ e("div", { ref: m, style: { position: "relative" }, children:
|
|
4608
|
+
/* @__PURE__ */ e(je.Target, { children: /* @__PURE__ */ e("div", { ref: m, style: { position: "relative" }, children: B() }) }),
|
|
4596
4609
|
/* @__PURE__ */ e(
|
|
4597
4610
|
je.Dropdown,
|
|
4598
4611
|
{
|
|
@@ -4605,7 +4618,7 @@ const yo = ({
|
|
|
4605
4618
|
]
|
|
4606
4619
|
}
|
|
4607
4620
|
) });
|
|
4608
|
-
return /* @__PURE__ */ e(me, { children: n ?
|
|
4621
|
+
return /* @__PURE__ */ e(me, { children: n ? _ : /* @__PURE__ */ e(
|
|
4609
4622
|
Oe,
|
|
4610
4623
|
{
|
|
4611
4624
|
avatar: i,
|
|
@@ -4652,9 +4665,9 @@ const yo = ({
|
|
|
4652
4665
|
suggestedUsers: r = [],
|
|
4653
4666
|
tagDisplayMap: i = {}
|
|
4654
4667
|
}) => {
|
|
4655
|
-
const [a, c] =
|
|
4668
|
+
const [a, c] = C(""), [s, l] = C(
|
|
4656
4669
|
[]
|
|
4657
|
-
), d =
|
|
4670
|
+
), d = q(null), u = n.map((g) => {
|
|
4658
4671
|
if (i[g])
|
|
4659
4672
|
return i[g];
|
|
4660
4673
|
const m = r.find((w) => w.email === g);
|
|
@@ -4694,8 +4707,8 @@ const yo = ({
|
|
|
4694
4707
|
);
|
|
4695
4708
|
return S ? S.email : y;
|
|
4696
4709
|
}).filter((y) => y.includes("@") ? !0 : !m.some((M) => {
|
|
4697
|
-
const z = M.name.toLowerCase(),
|
|
4698
|
-
return z.startsWith(
|
|
4710
|
+
const z = M.name.toLowerCase(), O = y.toLowerCase();
|
|
4711
|
+
return z.startsWith(O) && O !== z;
|
|
4699
4712
|
}));
|
|
4700
4713
|
o(w), c("");
|
|
4701
4714
|
},
|
|
@@ -4726,9 +4739,9 @@ const yo = ({
|
|
|
4726
4739
|
suggestedUsers: i = [],
|
|
4727
4740
|
roleOptions: a = []
|
|
4728
4741
|
}) => {
|
|
4729
|
-
const [c, s] =
|
|
4742
|
+
const [c, s] = C([]), [l, d] = C([]), [u, p] = C(""), [f, I] = C(
|
|
4730
4743
|
{}
|
|
4731
|
-
), h = a.length > 0 ? a[0].value : void 0, [g, m] =
|
|
4744
|
+
), h = a.length > 0 ? a[0].value : void 0, [g, m] = C(
|
|
4732
4745
|
h
|
|
4733
4746
|
);
|
|
4734
4747
|
Y(() => {
|
|
@@ -4736,32 +4749,32 @@ const yo = ({
|
|
|
4736
4749
|
}, [a.length, g]), Y(() => {
|
|
4737
4750
|
const R = i.filter((F) => c.includes(F.email)).map((F) => F.id);
|
|
4738
4751
|
d(
|
|
4739
|
-
(F) => F.filter((
|
|
4752
|
+
(F) => F.filter((G) => R.includes(G))
|
|
4740
4753
|
);
|
|
4741
4754
|
}, [c, i.length]);
|
|
4742
|
-
const [w, y] =
|
|
4755
|
+
const [w, y] = C(
|
|
4743
4756
|
"invite"
|
|
4744
|
-
), [S, M] =
|
|
4757
|
+
), [S, M] = C(
|
|
4745
4758
|
null
|
|
4746
|
-
), z = (R, F,
|
|
4747
|
-
n && n(R, F,
|
|
4748
|
-
},
|
|
4759
|
+
), z = (R, F, G) => {
|
|
4760
|
+
n && n(R, F, G), s([]), p("");
|
|
4761
|
+
}, O = (R, F) => {
|
|
4749
4762
|
o && o(R, F);
|
|
4750
|
-
},
|
|
4763
|
+
}, k = (R) => {
|
|
4751
4764
|
t && t(R);
|
|
4752
|
-
},
|
|
4765
|
+
}, v = (R) => {
|
|
4753
4766
|
d(
|
|
4754
|
-
(F) => F.includes(R) ? F.filter((
|
|
4767
|
+
(F) => F.includes(R) ? F.filter((G) => G !== R) : [...F, R]
|
|
4755
4768
|
);
|
|
4756
|
-
},
|
|
4769
|
+
}, E = (R) => {
|
|
4757
4770
|
c.includes(R.email) || (s([...c, R.email]), I((F) => ({
|
|
4758
4771
|
...F,
|
|
4759
4772
|
[R.email]: R.name || R.email
|
|
4760
4773
|
})), l.includes(R.id) || d([...l, R.id]), p(""));
|
|
4761
4774
|
}, L = u.trim() ? i.filter((R) => {
|
|
4762
|
-
var
|
|
4775
|
+
var G;
|
|
4763
4776
|
const F = u.toLowerCase();
|
|
4764
|
-
return R.email.toLowerCase().includes(F) || ((
|
|
4777
|
+
return R.email.toLowerCase().includes(F) || ((G = R.name) == null ? void 0 : G.toLowerCase().includes(F));
|
|
4765
4778
|
}) : [];
|
|
4766
4779
|
return {
|
|
4767
4780
|
emails: c,
|
|
@@ -4780,10 +4793,10 @@ const yo = ({
|
|
|
4780
4793
|
setTabHovered: M,
|
|
4781
4794
|
filteredUsers: L,
|
|
4782
4795
|
handleInvite: z,
|
|
4783
|
-
handleUpdateRole:
|
|
4784
|
-
handleRemoveUser:
|
|
4785
|
-
handleToggleUser:
|
|
4786
|
-
handleAddSuggestedUser:
|
|
4796
|
+
handleUpdateRole: O,
|
|
4797
|
+
handleRemoveUser: k,
|
|
4798
|
+
handleToggleUser: v,
|
|
4799
|
+
handleAddSuggestedUser: E
|
|
4787
4800
|
};
|
|
4788
4801
|
}, St = qt(
|
|
4789
4802
|
({
|
|
@@ -4798,7 +4811,7 @@ const yo = ({
|
|
|
4798
4811
|
suggestedUsers: l = [],
|
|
4799
4812
|
tagDisplayMap: d = {}
|
|
4800
4813
|
}, u) => {
|
|
4801
|
-
const [p, f] =
|
|
4814
|
+
const [p, f] = C(
|
|
4802
4815
|
"Hello, I would like to invite you to join my workspace"
|
|
4803
4816
|
), {
|
|
4804
4817
|
tagsInputRef: I,
|
|
@@ -4824,9 +4837,9 @@ const yo = ({
|
|
|
4824
4837
|
}),
|
|
4825
4838
|
[y]
|
|
4826
4839
|
);
|
|
4827
|
-
const z = h.length > 0,
|
|
4828
|
-
return /* @__PURE__ */
|
|
4829
|
-
/* @__PURE__ */
|
|
4840
|
+
const z = h.length > 0, O = c && i.length > 0, k = g.length > 0;
|
|
4841
|
+
return /* @__PURE__ */ x(W, { gap: "md", children: [
|
|
4842
|
+
/* @__PURE__ */ x(b, { children: [
|
|
4830
4843
|
/* @__PURE__ */ e(
|
|
4831
4844
|
b,
|
|
4832
4845
|
{
|
|
@@ -4845,7 +4858,7 @@ const yo = ({
|
|
|
4845
4858
|
onChange: w,
|
|
4846
4859
|
placeholder: z ? "" : t,
|
|
4847
4860
|
radius: "md",
|
|
4848
|
-
rightSection:
|
|
4861
|
+
rightSection: O ? /* @__PURE__ */ e(
|
|
4849
4862
|
b,
|
|
4850
4863
|
{
|
|
4851
4864
|
style: {
|
|
@@ -4861,7 +4874,7 @@ const yo = ({
|
|
|
4861
4874
|
Ln,
|
|
4862
4875
|
{
|
|
4863
4876
|
value: a || "",
|
|
4864
|
-
onChange: (
|
|
4877
|
+
onChange: (v) => c(v),
|
|
4865
4878
|
data: i,
|
|
4866
4879
|
placeholder: "Select role",
|
|
4867
4880
|
defaultOption: i[i.length - 1],
|
|
@@ -4872,7 +4885,7 @@ const yo = ({
|
|
|
4872
4885
|
) : null,
|
|
4873
4886
|
rightSectionProps: {
|
|
4874
4887
|
style: {
|
|
4875
|
-
width:
|
|
4888
|
+
width: O ? "120px" : "0px",
|
|
4876
4889
|
position: "absolute",
|
|
4877
4890
|
height: "32px",
|
|
4878
4891
|
right: "8px"
|
|
@@ -4880,14 +4893,14 @@ const yo = ({
|
|
|
4880
4893
|
},
|
|
4881
4894
|
styles: {
|
|
4882
4895
|
input: {
|
|
4883
|
-
paddingRight:
|
|
4896
|
+
paddingRight: O ? "130px" : "12px",
|
|
4884
4897
|
minHeight: "36px",
|
|
4885
4898
|
display: "flex",
|
|
4886
4899
|
flexWrap: "wrap",
|
|
4887
4900
|
alignItems: "center",
|
|
4888
4901
|
gap: "4px",
|
|
4889
4902
|
borderRadius: "var(--mantine-radius-md)",
|
|
4890
|
-
border:
|
|
4903
|
+
border: k ? "2px solid var(--mantine-color-red-6)" : "2px solid var(--mantine-color-blue-7)",
|
|
4891
4904
|
backgroundColor: "var(--mantine-color-gray-0)"
|
|
4892
4905
|
},
|
|
4893
4906
|
pillsList: {
|
|
@@ -4897,8 +4910,8 @@ const yo = ({
|
|
|
4897
4910
|
pill: {
|
|
4898
4911
|
height: "24px !important",
|
|
4899
4912
|
borderRadius: "var(--mantine-radius-md) !important",
|
|
4900
|
-
backgroundColor:
|
|
4901
|
-
color:
|
|
4913
|
+
backgroundColor: k ? "var(--mantine-color-red-1) !important" : "var(--mantine-color-orange-1) !important",
|
|
4914
|
+
color: k ? "var(--mantine-color-red-7) !important" : "var(--mantine-color-gray-7) !important",
|
|
4902
4915
|
fontSize: "var(--mantine-font-size-sm)"
|
|
4903
4916
|
}
|
|
4904
4917
|
}
|
|
@@ -4906,19 +4919,19 @@ const yo = ({
|
|
|
4906
4919
|
)
|
|
4907
4920
|
}
|
|
4908
4921
|
),
|
|
4909
|
-
|
|
4910
|
-
|
|
4922
|
+
k && /* @__PURE__ */ e(W, { gap: "xs", mt: "xs", children: g.map((v, E) => /* @__PURE__ */ x(T, { size: "xs", c: "red", children: [
|
|
4923
|
+
v.email,
|
|
4911
4924
|
": ",
|
|
4912
|
-
|
|
4913
|
-
] },
|
|
4925
|
+
v.error
|
|
4926
|
+
] }, E)) })
|
|
4914
4927
|
] }),
|
|
4915
|
-
z && /* @__PURE__ */
|
|
4928
|
+
z && /* @__PURE__ */ x(W, { gap: "sm", children: [
|
|
4916
4929
|
/* @__PURE__ */ e(
|
|
4917
4930
|
Sn,
|
|
4918
4931
|
{
|
|
4919
4932
|
size: "sm",
|
|
4920
4933
|
value: p,
|
|
4921
|
-
onChange: (
|
|
4934
|
+
onChange: (v) => f(v.currentTarget.value),
|
|
4922
4935
|
minRows: 2,
|
|
4923
4936
|
maxRows: 4,
|
|
4924
4937
|
radius: "md"
|
|
@@ -4994,8 +5007,8 @@ const yo = ({
|
|
|
4994
5007
|
const y = w;
|
|
4995
5008
|
r(n.id, y);
|
|
4996
5009
|
}
|
|
4997
|
-
}, p = c === "suggested" || c === "read-only", f = c === "invited" && a.length > 0, [I, h] =
|
|
4998
|
-
return /* @__PURE__ */
|
|
5010
|
+
}, p = c === "suggested" || c === "read-only", f = c === "invited" && a.length > 0, [I, h] = C(!1);
|
|
5011
|
+
return /* @__PURE__ */ x(
|
|
4999
5012
|
A,
|
|
5000
5013
|
{
|
|
5001
5014
|
justify: "space-between",
|
|
@@ -5014,7 +5027,7 @@ const yo = ({
|
|
|
5014
5027
|
onMouseEnter: () => h(!0),
|
|
5015
5028
|
onMouseLeave: () => h(!1),
|
|
5016
5029
|
children: [
|
|
5017
|
-
/* @__PURE__ */
|
|
5030
|
+
/* @__PURE__ */ x(A, { gap: "sm", w: "100%", align: "flex-start", wrap: "nowrap", children: [
|
|
5018
5031
|
/* @__PURE__ */ e(
|
|
5019
5032
|
Oe,
|
|
5020
5033
|
{
|
|
@@ -5024,9 +5037,9 @@ const yo = ({
|
|
|
5024
5037
|
showPlaceholder: !0
|
|
5025
5038
|
}
|
|
5026
5039
|
),
|
|
5027
|
-
/* @__PURE__ */
|
|
5028
|
-
/* @__PURE__ */
|
|
5029
|
-
/* @__PURE__ */
|
|
5040
|
+
/* @__PURE__ */ x(W, { gap: 0, w: "100%", justify: "flex-start", align: "flex-start", children: [
|
|
5041
|
+
/* @__PURE__ */ x(A, { gap: "sm", align: "flex-start", wrap: "nowrap", children: [
|
|
5042
|
+
/* @__PURE__ */ x(A, { gap: "sm", align: "flex-start", wrap: "nowrap", children: [
|
|
5030
5043
|
/* @__PURE__ */ e(T, { size: "sm", fw: 500, lineClamp: 1, mb: -2, children: l }),
|
|
5031
5044
|
n.isCurrentUser && /* @__PURE__ */ e(Ke, { size: "xs", variant: "light", color: "gray", radius: "sm", children: "Owner" })
|
|
5032
5045
|
] }),
|
|
@@ -5044,7 +5057,7 @@ const yo = ({
|
|
|
5044
5057
|
/* @__PURE__ */ e(T, { size: "xs", c: "dimmed", lineClamp: 1, children: n.email })
|
|
5045
5058
|
] })
|
|
5046
5059
|
] }),
|
|
5047
|
-
/* @__PURE__ */
|
|
5060
|
+
/* @__PURE__ */ x(A, { gap: "sm", align: "center", children: [
|
|
5048
5061
|
p && c !== "read-only" && /* @__PURE__ */ e(
|
|
5049
5062
|
nr,
|
|
5050
5063
|
{
|
|
@@ -5082,7 +5095,7 @@ const yo = ({
|
|
|
5082
5095
|
roleOptions: s = [],
|
|
5083
5096
|
suggestedUsers: l = []
|
|
5084
5097
|
}) => {
|
|
5085
|
-
const d =
|
|
5098
|
+
const d = q(null), {
|
|
5086
5099
|
emails: u,
|
|
5087
5100
|
setEmails: p,
|
|
5088
5101
|
selectedUsers: f,
|
|
@@ -5095,10 +5108,10 @@ const yo = ({
|
|
|
5095
5108
|
setSelectedTab: S,
|
|
5096
5109
|
tabHovered: M,
|
|
5097
5110
|
setTabHovered: z,
|
|
5098
|
-
filteredUsers:
|
|
5099
|
-
handleInvite:
|
|
5100
|
-
handleUpdateRole:
|
|
5101
|
-
handleRemoveUser:
|
|
5111
|
+
filteredUsers: O,
|
|
5112
|
+
handleInvite: k,
|
|
5113
|
+
handleUpdateRole: v,
|
|
5114
|
+
handleRemoveUser: E,
|
|
5102
5115
|
handleToggleUser: L,
|
|
5103
5116
|
handleAddSuggestedUser: R
|
|
5104
5117
|
} = Mt({
|
|
@@ -5110,14 +5123,14 @@ const yo = ({
|
|
|
5110
5123
|
roleOptions: s
|
|
5111
5124
|
}), F = (N) => {
|
|
5112
5125
|
R(N), d.current && d.current.clearInput();
|
|
5113
|
-
},
|
|
5126
|
+
}, G = /* @__PURE__ */ x(me, { children: [
|
|
5114
5127
|
/* @__PURE__ */ e(
|
|
5115
5128
|
St,
|
|
5116
5129
|
{
|
|
5117
5130
|
ref: d,
|
|
5118
5131
|
value: u,
|
|
5119
5132
|
onChange: p,
|
|
5120
|
-
onInvite:
|
|
5133
|
+
onInvite: k,
|
|
5121
5134
|
roleOptions: s,
|
|
5122
5135
|
selectedRole: m,
|
|
5123
5136
|
onRoleChange: w,
|
|
@@ -5127,7 +5140,7 @@ const yo = ({
|
|
|
5127
5140
|
}
|
|
5128
5141
|
),
|
|
5129
5142
|
/* @__PURE__ */ e(Ee, { h: "sm" }),
|
|
5130
|
-
/* @__PURE__ */ e(ke, { mah: 200, type: "auto", style: { overflow: "visible" }, children: /* @__PURE__ */ e(b, { children: a.length > 0 && /* @__PURE__ */
|
|
5143
|
+
/* @__PURE__ */ e(ke, { mah: 200, type: "auto", style: { overflow: "visible" }, children: /* @__PURE__ */ e(b, { children: a.length > 0 && /* @__PURE__ */ x(me, { children: [
|
|
5131
5144
|
/* @__PURE__ */ e(T, { size: "sm", fw: 500, children: "Already members" }),
|
|
5132
5145
|
/* @__PURE__ */ e(Ee, { h: "sm" }),
|
|
5133
5146
|
/* @__PURE__ */ e(W, { gap: "sm", children: a.map((N) => /* @__PURE__ */ e(
|
|
@@ -5136,35 +5149,35 @@ const yo = ({
|
|
|
5136
5149
|
user: N,
|
|
5137
5150
|
isSelected: f.includes(N.id),
|
|
5138
5151
|
onToggle: L,
|
|
5139
|
-
onUpdateRole:
|
|
5140
|
-
onRemoveUser:
|
|
5152
|
+
onUpdateRole: v,
|
|
5153
|
+
onRemoveUser: E,
|
|
5141
5154
|
roleOptions: s,
|
|
5142
5155
|
variant: "invited"
|
|
5143
5156
|
},
|
|
5144
5157
|
N.id
|
|
5145
5158
|
)) })
|
|
5146
5159
|
] }) }) }),
|
|
5147
|
-
|
|
5160
|
+
O.length > 0 && /* @__PURE__ */ e(
|
|
5148
5161
|
ke,
|
|
5149
5162
|
{
|
|
5150
5163
|
pt: "sm",
|
|
5151
5164
|
mah: 200,
|
|
5152
5165
|
type: "auto",
|
|
5153
5166
|
style: { overflow: "visible" },
|
|
5154
|
-
children: /* @__PURE__ */ e(b, { children:
|
|
5155
|
-
/* @__PURE__ */
|
|
5167
|
+
children: /* @__PURE__ */ e(b, { children: O.length > 0 ? /* @__PURE__ */ x(me, { children: [
|
|
5168
|
+
/* @__PURE__ */ x(T, { size: "sm", fw: 500, children: [
|
|
5156
5169
|
"Suggested ",
|
|
5157
5170
|
I.trim() && `(filtered by "${I}")`
|
|
5158
5171
|
] }),
|
|
5159
5172
|
/* @__PURE__ */ e(Ee, { h: "sm" }),
|
|
5160
|
-
/* @__PURE__ */ e(W, { gap: "sm", children:
|
|
5173
|
+
/* @__PURE__ */ e(W, { gap: "sm", children: O.map((N) => /* @__PURE__ */ e(
|
|
5161
5174
|
tn,
|
|
5162
5175
|
{
|
|
5163
5176
|
user: N,
|
|
5164
5177
|
isSelected: f.includes(N.id),
|
|
5165
5178
|
onToggle: L,
|
|
5166
|
-
onUpdateRole:
|
|
5167
|
-
onRemoveUser:
|
|
5179
|
+
onUpdateRole: v,
|
|
5180
|
+
onRemoveUser: E,
|
|
5168
5181
|
roleOptions: s,
|
|
5169
5182
|
variant: "suggested",
|
|
5170
5183
|
onClick: () => F(N)
|
|
@@ -5174,8 +5187,8 @@ const yo = ({
|
|
|
5174
5187
|
] }) : null })
|
|
5175
5188
|
}
|
|
5176
5189
|
)
|
|
5177
|
-
] }),
|
|
5178
|
-
/* @__PURE__ */
|
|
5190
|
+
] }), Q = /* @__PURE__ */ e(me, { children: /* @__PURE__ */ x(W, { gap: "md", p: "sm", children: [
|
|
5191
|
+
/* @__PURE__ */ x(W, { gap: 4, align: "center", children: [
|
|
5179
5192
|
/* @__PURE__ */ e(T, { size: "sm", fw: 500, ta: "center", children: "Publish to the web" }),
|
|
5180
5193
|
/* @__PURE__ */ e(
|
|
5181
5194
|
T,
|
|
@@ -5200,7 +5213,7 @@ const yo = ({
|
|
|
5200
5213
|
children: "Publish"
|
|
5201
5214
|
}
|
|
5202
5215
|
)
|
|
5203
|
-
] }) }), V = /* @__PURE__ */ e(b, { style: { width: "400px", maxHeight: "600px", overflow: "visible" }, children: /* @__PURE__ */ e(W, { gap: "lg", children: /* @__PURE__ */
|
|
5216
|
+
] }) }), V = /* @__PURE__ */ e(b, { style: { width: "400px", maxHeight: "600px", overflow: "visible" }, children: /* @__PURE__ */ e(W, { gap: "lg", children: /* @__PURE__ */ x(
|
|
5204
5217
|
fe,
|
|
5205
5218
|
{
|
|
5206
5219
|
color: "black",
|
|
@@ -5211,7 +5224,7 @@ const yo = ({
|
|
|
5211
5224
|
}
|
|
5212
5225
|
},
|
|
5213
5226
|
children: [
|
|
5214
|
-
/* @__PURE__ */
|
|
5227
|
+
/* @__PURE__ */ x(fe.List, { px: "var(--mantine-spacing-sm)", pt: "xs", children: [
|
|
5215
5228
|
/* @__PURE__ */ e(
|
|
5216
5229
|
fe.Tab,
|
|
5217
5230
|
{
|
|
@@ -5285,8 +5298,8 @@ const yo = ({
|
|
|
5285
5298
|
}
|
|
5286
5299
|
)
|
|
5287
5300
|
] }),
|
|
5288
|
-
/* @__PURE__ */ e(fe.Panel, { value: "invite", children: /* @__PURE__ */ e(b, { p: "sm", children:
|
|
5289
|
-
/* @__PURE__ */ e(fe.Panel, { value: "publish", children: /* @__PURE__ */ e(b, { p: "sm", children:
|
|
5301
|
+
/* @__PURE__ */ e(fe.Panel, { value: "invite", children: /* @__PURE__ */ e(b, { p: "sm", children: G }) }),
|
|
5302
|
+
/* @__PURE__ */ e(fe.Panel, { value: "publish", children: /* @__PURE__ */ e(b, { p: "sm", children: Q }) })
|
|
5290
5303
|
]
|
|
5291
5304
|
}
|
|
5292
5305
|
) }) });
|
|
@@ -5316,7 +5329,7 @@ const yo = ({
|
|
|
5316
5329
|
suggestedUsers: c,
|
|
5317
5330
|
label: s = "Share"
|
|
5318
5331
|
}) => {
|
|
5319
|
-
const [l, d] =
|
|
5332
|
+
const [l, d] = C(!1);
|
|
5320
5333
|
return /* @__PURE__ */ e(
|
|
5321
5334
|
To,
|
|
5322
5335
|
{
|
|
@@ -5349,7 +5362,7 @@ const yo = ({
|
|
|
5349
5362
|
roleOptions: c = [],
|
|
5350
5363
|
suggestedUsers: s = []
|
|
5351
5364
|
}) => {
|
|
5352
|
-
const l =
|
|
5365
|
+
const l = q(null), {
|
|
5353
5366
|
emails: d,
|
|
5354
5367
|
setEmails: u,
|
|
5355
5368
|
selectedUsers: p,
|
|
@@ -5363,7 +5376,7 @@ const yo = ({
|
|
|
5363
5376
|
handleUpdateRole: S,
|
|
5364
5377
|
handleRemoveUser: M,
|
|
5365
5378
|
handleToggleUser: z,
|
|
5366
|
-
handleAddSuggestedUser:
|
|
5379
|
+
handleAddSuggestedUser: O
|
|
5367
5380
|
} = Mt({
|
|
5368
5381
|
onInvite: t,
|
|
5369
5382
|
onUpdateRole: r,
|
|
@@ -5371,8 +5384,8 @@ const yo = ({
|
|
|
5371
5384
|
invitedUsers: a,
|
|
5372
5385
|
suggestedUsers: s,
|
|
5373
5386
|
roleOptions: c
|
|
5374
|
-
}),
|
|
5375
|
-
|
|
5387
|
+
}), k = (v) => {
|
|
5388
|
+
O(v), l.current && l.current.clearInput();
|
|
5376
5389
|
};
|
|
5377
5390
|
return /* @__PURE__ */ e(
|
|
5378
5391
|
Cn,
|
|
@@ -5387,8 +5400,8 @@ const yo = ({
|
|
|
5387
5400
|
closeOnEscape: !0,
|
|
5388
5401
|
trapFocus: !1,
|
|
5389
5402
|
zIndex: 300,
|
|
5390
|
-
children: /* @__PURE__ */
|
|
5391
|
-
/* @__PURE__ */
|
|
5403
|
+
children: /* @__PURE__ */ x(W, { gap: "lg", children: [
|
|
5404
|
+
/* @__PURE__ */ x(A, { justify: "space-between", wrap: "nowrap", children: [
|
|
5392
5405
|
/* @__PURE__ */ e(T, { size: "md", fw: 500, c: "var(--mantine-color-gray-8)", children: "Share" }),
|
|
5393
5406
|
/* @__PURE__ */ e(
|
|
5394
5407
|
he,
|
|
@@ -5415,7 +5428,7 @@ const yo = ({
|
|
|
5415
5428
|
tagDisplayMap: h
|
|
5416
5429
|
}
|
|
5417
5430
|
),
|
|
5418
|
-
a.length > 0 && /* @__PURE__ */
|
|
5431
|
+
a.length > 0 && /* @__PURE__ */ x(b, { children: [
|
|
5419
5432
|
/* @__PURE__ */ e(T, { size: "sm", fw: 500, children: "Already members" }),
|
|
5420
5433
|
/* @__PURE__ */ e(Ee, { h: "sm" }),
|
|
5421
5434
|
/* @__PURE__ */ e(
|
|
@@ -5429,24 +5442,24 @@ const yo = ({
|
|
|
5429
5442
|
paddingRight: "8px",
|
|
5430
5443
|
marginRight: "-8px"
|
|
5431
5444
|
},
|
|
5432
|
-
children: /* @__PURE__ */ e(W, { gap: "sm", children: a.map((
|
|
5445
|
+
children: /* @__PURE__ */ e(W, { gap: "sm", children: a.map((v) => /* @__PURE__ */ e(
|
|
5433
5446
|
tn,
|
|
5434
5447
|
{
|
|
5435
|
-
user:
|
|
5436
|
-
isSelected: p.includes(
|
|
5448
|
+
user: v,
|
|
5449
|
+
isSelected: p.includes(v.id),
|
|
5437
5450
|
onToggle: z,
|
|
5438
5451
|
onUpdateRole: S,
|
|
5439
5452
|
onRemoveUser: M,
|
|
5440
5453
|
roleOptions: c,
|
|
5441
5454
|
variant: "invited"
|
|
5442
5455
|
},
|
|
5443
|
-
|
|
5456
|
+
v.id
|
|
5444
5457
|
)) })
|
|
5445
5458
|
}
|
|
5446
5459
|
)
|
|
5447
5460
|
] }),
|
|
5448
|
-
w.length > 0 && /* @__PURE__ */
|
|
5449
|
-
/* @__PURE__ */
|
|
5461
|
+
w.length > 0 && /* @__PURE__ */ x(b, { children: [
|
|
5462
|
+
/* @__PURE__ */ x(T, { size: "sm", fw: 500, children: [
|
|
5450
5463
|
"Suggested ",
|
|
5451
5464
|
f.trim() && `(filtered by "${f}")`
|
|
5452
5465
|
] }),
|
|
@@ -5462,19 +5475,19 @@ const yo = ({
|
|
|
5462
5475
|
paddingRight: "8px",
|
|
5463
5476
|
marginRight: "-8px"
|
|
5464
5477
|
},
|
|
5465
|
-
children: /* @__PURE__ */ e(W, { gap: "sm", children: w.map((
|
|
5478
|
+
children: /* @__PURE__ */ e(W, { gap: "sm", children: w.map((v) => /* @__PURE__ */ e(
|
|
5466
5479
|
tn,
|
|
5467
5480
|
{
|
|
5468
|
-
user:
|
|
5469
|
-
isSelected: p.includes(
|
|
5481
|
+
user: v,
|
|
5482
|
+
isSelected: p.includes(v.id),
|
|
5470
5483
|
onToggle: z,
|
|
5471
5484
|
onUpdateRole: S,
|
|
5472
5485
|
onRemoveUser: M,
|
|
5473
5486
|
roleOptions: c,
|
|
5474
5487
|
variant: "suggested",
|
|
5475
|
-
onClick: () =>
|
|
5488
|
+
onClick: () => k(v)
|
|
5476
5489
|
},
|
|
5477
|
-
|
|
5490
|
+
v.id
|
|
5478
5491
|
)) })
|
|
5479
5492
|
}
|
|
5480
5493
|
)
|
|
@@ -5491,7 +5504,7 @@ const yo = ({
|
|
|
5491
5504
|
groups: a = [],
|
|
5492
5505
|
styles: c
|
|
5493
5506
|
}) => {
|
|
5494
|
-
const [s, l] =
|
|
5507
|
+
const [s, l] = C("");
|
|
5495
5508
|
Y(() => {
|
|
5496
5509
|
n && t.length > 0 ? l(t[0].id) : n || l("");
|
|
5497
5510
|
}, [n, t]);
|
|
@@ -5504,7 +5517,7 @@ const yo = ({
|
|
|
5504
5517
|
}, f = t.find(
|
|
5505
5518
|
(I) => I.id === s
|
|
5506
5519
|
);
|
|
5507
|
-
return /* @__PURE__ */
|
|
5520
|
+
return /* @__PURE__ */ x(
|
|
5508
5521
|
Cn,
|
|
5509
5522
|
{
|
|
5510
5523
|
opened: n,
|
|
@@ -5525,7 +5538,7 @@ const yo = ({
|
|
|
5525
5538
|
radius: "md",
|
|
5526
5539
|
children: [
|
|
5527
5540
|
/* @__PURE__ */ e(nt.InitialFocus, {}),
|
|
5528
|
-
/* @__PURE__ */
|
|
5541
|
+
/* @__PURE__ */ x(b, { style: { display: "flex", height: "100%", ...c == null ? void 0 : c.body }, children: [
|
|
5529
5542
|
/* @__PURE__ */ e(
|
|
5530
5543
|
b,
|
|
5531
5544
|
{
|
|
@@ -5533,7 +5546,7 @@ const yo = ({
|
|
|
5533
5546
|
width: "240px",
|
|
5534
5547
|
backgroundColor: "var(--mantine-color-gray-0)"
|
|
5535
5548
|
},
|
|
5536
|
-
children: /* @__PURE__ */ e(ke, { h: "100%", children: /* @__PURE__ */ e(W, { gap: 0, p: "sm", children: a.map((I) => /* @__PURE__ */ e(b, { mb: "md", children: /* @__PURE__ */
|
|
5549
|
+
children: /* @__PURE__ */ e(ke, { h: "100%", children: /* @__PURE__ */ e(W, { gap: 0, p: "sm", children: a.map((I) => /* @__PURE__ */ e(b, { mb: "md", children: /* @__PURE__ */ x(be.Fragment, { children: [
|
|
5537
5550
|
/* @__PURE__ */ e(T, { size: "xs", fw: 600, c: "dimmed", m: 4, children: I }),
|
|
5538
5551
|
t.filter((h) => h.group === I).map((h) => /* @__PURE__ */ e(
|
|
5539
5552
|
ht,
|
|
@@ -5548,9 +5561,9 @@ const yo = ({
|
|
|
5548
5561
|
] }, I) })) }) })
|
|
5549
5562
|
}
|
|
5550
5563
|
),
|
|
5551
|
-
/* @__PURE__ */
|
|
5552
|
-
f ? /* @__PURE__ */
|
|
5553
|
-
/* @__PURE__ */ e(b, { p: "md", children: /* @__PURE__ */ e(A, { gap: "md", wrap: "nowrap", children: /* @__PURE__ */
|
|
5564
|
+
/* @__PURE__ */ x(b, { style: { flex: 1, display: "flex", flexDirection: "column" }, children: [
|
|
5565
|
+
f ? /* @__PURE__ */ x(me, { children: [
|
|
5566
|
+
/* @__PURE__ */ e(b, { p: "md", children: /* @__PURE__ */ e(A, { gap: "md", wrap: "nowrap", children: /* @__PURE__ */ x(W, { gap: 4, children: [
|
|
5554
5567
|
/* @__PURE__ */ e(T, { size: "md", fw: 600, children: f.alternateLabel || f.label }),
|
|
5555
5568
|
f.description && /* @__PURE__ */ e(T, { size: "sm", c: "var(--mantine-color-gray-6)", children: f.description })
|
|
5556
5569
|
] }) }) }),
|
|
@@ -5567,7 +5580,7 @@ const yo = ({
|
|
|
5567
5580
|
children: /* @__PURE__ */ e(T, { c: "var(--mantine-color-gray-6)", size: "lg", children: "Select an option from the sidebar" })
|
|
5568
5581
|
}
|
|
5569
5582
|
),
|
|
5570
|
-
(f == null ? void 0 : f.saveButton) && /* @__PURE__ */ e(b, { p: "md", children: /* @__PURE__ */
|
|
5583
|
+
(f == null ? void 0 : f.saveButton) && /* @__PURE__ */ e(b, { p: "md", children: /* @__PURE__ */ x(A, { justify: "flex-end", gap: "md", children: [
|
|
5571
5584
|
/* @__PURE__ */ e(ce, { variant: "subtle", onClick: u, color: "gray", children: "Cancel" }),
|
|
5572
5585
|
/* @__PURE__ */ e(ce, { onClick: d, color: "blue", children: "Save Changes" })
|
|
5573
5586
|
] }) })
|
|
@@ -5657,7 +5670,7 @@ const yo = ({
|
|
|
5657
5670
|
actions: a
|
|
5658
5671
|
}) => {
|
|
5659
5672
|
var u, p, f, I, h;
|
|
5660
|
-
const c = (/* @__PURE__ */ new Date()).getTime() - new Date(n.timestamp).getTime() < 6048e5 ? jo(n.timestamp, "en") : Bo(n.timestamp, "en"), [s, l] =
|
|
5673
|
+
const c = (/* @__PURE__ */ new Date()).getTime() - new Date(n.timestamp).getTime() < 6048e5 ? jo(n.timestamp, "en") : Bo(n.timestamp, "en"), [s, l] = C(!1), d = /* @__PURE__ */ x(
|
|
5661
5674
|
A,
|
|
5662
5675
|
{
|
|
5663
5676
|
bg: "var(--mantine-color-gray-1)",
|
|
@@ -5684,7 +5697,7 @@ const yo = ({
|
|
|
5684
5697
|
]
|
|
5685
5698
|
}
|
|
5686
5699
|
);
|
|
5687
|
-
return /* @__PURE__ */
|
|
5700
|
+
return /* @__PURE__ */ x(
|
|
5688
5701
|
b,
|
|
5689
5702
|
{
|
|
5690
5703
|
p: "sm",
|
|
@@ -5696,7 +5709,7 @@ const yo = ({
|
|
|
5696
5709
|
onMouseEnter: () => l(!0),
|
|
5697
5710
|
onMouseLeave: () => l(!1),
|
|
5698
5711
|
children: [
|
|
5699
|
-
/* @__PURE__ */
|
|
5712
|
+
/* @__PURE__ */ x(
|
|
5700
5713
|
A,
|
|
5701
5714
|
{
|
|
5702
5715
|
justify: "space-between",
|
|
@@ -5716,7 +5729,7 @@ const yo = ({
|
|
|
5716
5729
|
src: (f = n.metadata) == null ? void 0 : f.avatar_url
|
|
5717
5730
|
}
|
|
5718
5731
|
) : /* @__PURE__ */ e($r, { size: "xs", showText: !1, radius: "xs" }),
|
|
5719
|
-
/* @__PURE__ */
|
|
5732
|
+
/* @__PURE__ */ x(W, { gap: "xs", justify: "flex-start", w: "100%", children: [
|
|
5720
5733
|
/* @__PURE__ */ e(
|
|
5721
5734
|
b,
|
|
5722
5735
|
{
|
|
@@ -5737,7 +5750,7 @@ const yo = ({
|
|
|
5737
5750
|
children: o
|
|
5738
5751
|
}
|
|
5739
5752
|
),
|
|
5740
|
-
/* @__PURE__ */
|
|
5753
|
+
/* @__PURE__ */ x(T, { size: "xs", c: "dimmed", fw: 500, style: { whiteSpace: "nowrap" }, children: [
|
|
5741
5754
|
n.category ? ((I = n.category) == null ? void 0 : I.charAt(0).toUpperCase()) + ((h = n.category) == null ? void 0 : h.slice(1)) : "",
|
|
5742
5755
|
" ",
|
|
5743
5756
|
"• ",
|
|
@@ -5772,7 +5785,7 @@ const yo = ({
|
|
|
5772
5785
|
}
|
|
5773
5786
|
);
|
|
5774
5787
|
}, Uo = (n, o, t, r, i) => {
|
|
5775
|
-
const [a, c] =
|
|
5788
|
+
const [a, c] = C(!1), s = q(null), l = q(null), d = q(null);
|
|
5776
5789
|
Y(() => {
|
|
5777
5790
|
c(n);
|
|
5778
5791
|
}, [n]);
|
|
@@ -5867,16 +5880,16 @@ const yo = ({
|
|
|
5867
5880
|
onClick: () => u == null ? void 0 : u("archived"),
|
|
5868
5881
|
active: p === "archived"
|
|
5869
5882
|
}
|
|
5870
|
-
], S = (
|
|
5883
|
+
], S = (O) => f && O.category && ["welcome", "upgrade"].includes(O.category) ? f(O, s, l) : /* @__PURE__ */ e(
|
|
5871
5884
|
Fo,
|
|
5872
5885
|
{
|
|
5873
|
-
notification:
|
|
5886
|
+
notification: O,
|
|
5874
5887
|
markAsRead: s,
|
|
5875
5888
|
archiveNotification: l,
|
|
5876
|
-
message:
|
|
5877
|
-
actions:
|
|
5889
|
+
message: O.message,
|
|
5890
|
+
actions: O.actions
|
|
5878
5891
|
},
|
|
5879
|
-
|
|
5892
|
+
O.id
|
|
5880
5893
|
), { isActive: M, loadMoreRef: z } = Uo(
|
|
5881
5894
|
I,
|
|
5882
5895
|
m,
|
|
@@ -5885,7 +5898,7 @@ const yo = ({
|
|
|
5885
5898
|
r,
|
|
5886
5899
|
t
|
|
5887
5900
|
);
|
|
5888
|
-
return /* @__PURE__ */
|
|
5901
|
+
return /* @__PURE__ */ x(me, { children: [
|
|
5889
5902
|
/* @__PURE__ */ e(
|
|
5890
5903
|
ht,
|
|
5891
5904
|
{
|
|
@@ -5913,7 +5926,7 @@ const yo = ({
|
|
|
5913
5926
|
indicator: i > 0 ? i > 99 ? "99+" : i : void 0
|
|
5914
5927
|
}
|
|
5915
5928
|
),
|
|
5916
|
-
/* @__PURE__ */
|
|
5929
|
+
/* @__PURE__ */ x(
|
|
5917
5930
|
On,
|
|
5918
5931
|
{
|
|
5919
5932
|
opened: I,
|
|
@@ -5937,7 +5950,7 @@ const yo = ({
|
|
|
5937
5950
|
},
|
|
5938
5951
|
children: [
|
|
5939
5952
|
/* @__PURE__ */ e(nt.InitialFocus, {}),
|
|
5940
|
-
/* @__PURE__ */
|
|
5953
|
+
/* @__PURE__ */ x(
|
|
5941
5954
|
b,
|
|
5942
5955
|
{
|
|
5943
5956
|
p: 0,
|
|
@@ -5956,7 +5969,7 @@ const yo = ({
|
|
|
5956
5969
|
zIndex: 10,
|
|
5957
5970
|
backgroundColor: "var(--mantine-color-white)"
|
|
5958
5971
|
},
|
|
5959
|
-
children: /* @__PURE__ */
|
|
5972
|
+
children: /* @__PURE__ */ x(
|
|
5960
5973
|
A,
|
|
5961
5974
|
{
|
|
5962
5975
|
justify: "space-between",
|
|
@@ -5967,7 +5980,7 @@ const yo = ({
|
|
|
5967
5980
|
py: "md",
|
|
5968
5981
|
children: [
|
|
5969
5982
|
/* @__PURE__ */ e(T, { size: "sm", fw: 500, children: "Inbox" }),
|
|
5970
|
-
/* @__PURE__ */
|
|
5983
|
+
/* @__PURE__ */ x(A, { gap: "xs", children: [
|
|
5971
5984
|
/* @__PURE__ */ e(
|
|
5972
5985
|
nn,
|
|
5973
5986
|
{
|
|
@@ -5999,7 +6012,7 @@ const yo = ({
|
|
|
5999
6012
|
)
|
|
6000
6013
|
}
|
|
6001
6014
|
),
|
|
6002
|
-
/* @__PURE__ */
|
|
6015
|
+
/* @__PURE__ */ x(b, { style: { flex: 1, overflow: "auto" }, children: [
|
|
6003
6016
|
o && n.length === 0 ? /* @__PURE__ */ e(
|
|
6004
6017
|
W,
|
|
6005
6018
|
{
|
|
@@ -6012,8 +6025,8 @@ const yo = ({
|
|
|
6012
6025
|
children: /* @__PURE__ */ e(Se, {})
|
|
6013
6026
|
}
|
|
6014
6027
|
) : n.length > 0 ? /* @__PURE__ */ e(W, { gap: 0, children: n.map(
|
|
6015
|
-
(
|
|
6016
|
-
) }) : /* @__PURE__ */
|
|
6028
|
+
(O) => S(O)
|
|
6029
|
+
) }) : /* @__PURE__ */ x(
|
|
6017
6030
|
W,
|
|
6018
6031
|
{
|
|
6019
6032
|
gap: 0,
|
|
@@ -6039,13 +6052,13 @@ const yo = ({
|
|
|
6039
6052
|
alignItems: "center",
|
|
6040
6053
|
minHeight: "60px"
|
|
6041
6054
|
},
|
|
6042
|
-
children: t && /* @__PURE__ */
|
|
6055
|
+
children: t && /* @__PURE__ */ x(A, { display: "flex", ta: "center", gap: "xs", children: [
|
|
6043
6056
|
/* @__PURE__ */ e(Se, { size: "sm", color: "gray.5" }),
|
|
6044
6057
|
/* @__PURE__ */ e(T, { size: "sm", c: "dimmed", fw: 500, children: "Loading more ..." })
|
|
6045
6058
|
] })
|
|
6046
6059
|
}
|
|
6047
6060
|
),
|
|
6048
|
-
t && !m && /* @__PURE__ */
|
|
6061
|
+
t && !m && /* @__PURE__ */ x(A, { display: "flex", ta: "center", gap: "xs", children: [
|
|
6049
6062
|
/* @__PURE__ */ e(Se, { size: "sm", color: "gray.5" }),
|
|
6050
6063
|
/* @__PURE__ */ e(T, { size: "sm", c: "dimmed", fw: 500, children: "Loading more ..." })
|
|
6051
6064
|
] }),
|
|
@@ -6077,8 +6090,8 @@ const yo = ({
|
|
|
6077
6090
|
position: i = "left",
|
|
6078
6091
|
bg: a = "var(--mantine-color-gray-0)"
|
|
6079
6092
|
}) => {
|
|
6080
|
-
const [c, s] =
|
|
6081
|
-
return /* @__PURE__ */
|
|
6093
|
+
const [c, s] = C(!1);
|
|
6094
|
+
return /* @__PURE__ */ x(
|
|
6082
6095
|
W,
|
|
6083
6096
|
{
|
|
6084
6097
|
gap: "sm",
|
|
@@ -6130,7 +6143,7 @@ const yo = ({
|
|
|
6130
6143
|
onClick: r
|
|
6131
6144
|
}) => {
|
|
6132
6145
|
const i = t === n.id, a = o && n.ownerId === o;
|
|
6133
|
-
return /* @__PURE__ */
|
|
6146
|
+
return /* @__PURE__ */ x(
|
|
6134
6147
|
b,
|
|
6135
6148
|
{
|
|
6136
6149
|
onClick: r,
|
|
@@ -6175,7 +6188,7 @@ const yo = ({
|
|
|
6175
6188
|
children: n.name
|
|
6176
6189
|
}
|
|
6177
6190
|
),
|
|
6178
|
-
/* @__PURE__ */
|
|
6191
|
+
/* @__PURE__ */ x(
|
|
6179
6192
|
b,
|
|
6180
6193
|
{
|
|
6181
6194
|
style: {
|
|
@@ -6216,23 +6229,23 @@ const yo = ({
|
|
|
6216
6229
|
children: I,
|
|
6217
6230
|
menuItems: h
|
|
6218
6231
|
}) => {
|
|
6219
|
-
const [g, m] =
|
|
6220
|
-
(
|
|
6221
|
-
var
|
|
6222
|
-
return
|
|
6232
|
+
const [g, m] = C(!1), [w, y] = C(""), S = J(() => w ? n.filter(
|
|
6233
|
+
(k) => {
|
|
6234
|
+
var v;
|
|
6235
|
+
return k.name.toLowerCase().includes(w.toLowerCase()) || ((v = k.ownerEmail) == null ? void 0 : v.toLowerCase().includes(w.toLowerCase()));
|
|
6223
6236
|
}
|
|
6224
|
-
) : n, [n, w]), M = (
|
|
6225
|
-
a == null || a(
|
|
6237
|
+
) : n, [n, w]), M = (k) => {
|
|
6238
|
+
a == null || a(k.id), m(!1), y("");
|
|
6226
6239
|
};
|
|
6227
6240
|
if (r)
|
|
6228
|
-
return /* @__PURE__ */
|
|
6241
|
+
return /* @__PURE__ */ x(A, { gap: "xs", children: [
|
|
6229
6242
|
/* @__PURE__ */ e(Se, { size: "sm" }),
|
|
6230
6243
|
/* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: l })
|
|
6231
6244
|
] });
|
|
6232
6245
|
if (i)
|
|
6233
6246
|
return /* @__PURE__ */ e(tr, { color: "red", title: "Error", children: d });
|
|
6234
|
-
const [z,
|
|
6235
|
-
return n.length === 0 && !r && !i ? /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: s }) }) : /* @__PURE__ */
|
|
6247
|
+
const [z, O] = C(f);
|
|
6248
|
+
return n.length === 0 && !r && !i ? /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: s }) }) : /* @__PURE__ */ x(
|
|
6236
6249
|
pe,
|
|
6237
6250
|
{
|
|
6238
6251
|
opened: g,
|
|
@@ -6261,15 +6274,15 @@ const yo = ({
|
|
|
6261
6274
|
},
|
|
6262
6275
|
className: `${yn.workspaceButton} ${u || ""}`,
|
|
6263
6276
|
bg: z || g ? "var(--mantine-color-gray-1)" : "transparent",
|
|
6264
|
-
onMouseEnter: () =>
|
|
6265
|
-
onMouseLeave: () =>
|
|
6277
|
+
onMouseEnter: () => O(!0),
|
|
6278
|
+
onMouseLeave: () => O(!1),
|
|
6266
6279
|
children: /* @__PURE__ */ e(
|
|
6267
6280
|
A,
|
|
6268
6281
|
{
|
|
6269
6282
|
gap: "xs",
|
|
6270
6283
|
wrap: "nowrap",
|
|
6271
6284
|
style: { width: "100%", overflow: "hidden" },
|
|
6272
|
-
children: o ? /* @__PURE__ */
|
|
6285
|
+
children: o ? /* @__PURE__ */ x(me, { children: [
|
|
6273
6286
|
/* @__PURE__ */ e(
|
|
6274
6287
|
Oe,
|
|
6275
6288
|
{
|
|
@@ -6291,7 +6304,7 @@ const yo = ({
|
|
|
6291
6304
|
children: o.name
|
|
6292
6305
|
}
|
|
6293
6306
|
),
|
|
6294
|
-
/* @__PURE__ */
|
|
6307
|
+
/* @__PURE__ */ x(A, { gap: 4, wrap: "nowrap", style: { flexShrink: 0 }, children: [
|
|
6295
6308
|
/* @__PURE__ */ e(
|
|
6296
6309
|
Be,
|
|
6297
6310
|
{
|
|
@@ -6325,11 +6338,11 @@ const yo = ({
|
|
|
6325
6338
|
borderRadius: "var(--mantine-radius-md)"
|
|
6326
6339
|
},
|
|
6327
6340
|
p: 0,
|
|
6328
|
-
children: /* @__PURE__ */
|
|
6341
|
+
children: /* @__PURE__ */ x(W, { gap: 0, children: [
|
|
6329
6342
|
I,
|
|
6330
6343
|
/* @__PURE__ */ e(pe.Divider, { style: { margin: "1px 0px" } }),
|
|
6331
|
-
/* @__PURE__ */ e(W, { gap: 0, px: 4, children: S.length === 0 ? /* @__PURE__ */ e(pe.Item, { disabled: !0, children: /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: s }) }) : /* @__PURE__ */
|
|
6332
|
-
/* @__PURE__ */
|
|
6344
|
+
/* @__PURE__ */ e(W, { gap: 0, px: 4, children: S.length === 0 ? /* @__PURE__ */ e(pe.Item, { disabled: !0, children: /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: s }) }) : /* @__PURE__ */ x(me, { children: [
|
|
6345
|
+
/* @__PURE__ */ x(A, { justify: "space-between", align: "center", p: 4, children: [
|
|
6333
6346
|
/* @__PURE__ */ e(T, { size: "xs", c: "dimmed", fw: 500, p: 4, truncate: !0, children: "Workspaces" }),
|
|
6334
6347
|
c && /* @__PURE__ */ e(
|
|
6335
6348
|
tt,
|
|
@@ -6351,10 +6364,10 @@ const yo = ({
|
|
|
6351
6364
|
}
|
|
6352
6365
|
)
|
|
6353
6366
|
] }),
|
|
6354
|
-
/* @__PURE__ */ e("div", { className: yn.scrollWrapper, children: /* @__PURE__ */ e(ke, { mah: 150, scrollbarSize: 6, scrollHideDelay: 0, children: /* @__PURE__ */ e(W, { gap: 0, mb: 6, children: S.map((
|
|
6367
|
+
/* @__PURE__ */ e("div", { className: yn.scrollWrapper, children: /* @__PURE__ */ e(ke, { mah: 150, scrollbarSize: 6, scrollHideDelay: 0, children: /* @__PURE__ */ e(W, { gap: 0, mb: 6, children: S.map((k) => /* @__PURE__ */ e(
|
|
6355
6368
|
b,
|
|
6356
6369
|
{
|
|
6357
|
-
onClick: () => M(
|
|
6370
|
+
onClick: () => M(k),
|
|
6358
6371
|
className: yn.menuItem,
|
|
6359
6372
|
style: {
|
|
6360
6373
|
padding: 0,
|
|
@@ -6362,34 +6375,34 @@ const yo = ({
|
|
|
6362
6375
|
cursor: "pointer",
|
|
6363
6376
|
overflow: "hidden"
|
|
6364
6377
|
},
|
|
6365
|
-
onMouseEnter: (
|
|
6366
|
-
|
|
6378
|
+
onMouseEnter: (v) => {
|
|
6379
|
+
v.currentTarget.style.backgroundColor = "var(--mantine-color-gray-1)";
|
|
6367
6380
|
},
|
|
6368
|
-
onMouseLeave: (
|
|
6369
|
-
|
|
6381
|
+
onMouseLeave: (v) => {
|
|
6382
|
+
v.currentTarget.style.backgroundColor = "transparent";
|
|
6370
6383
|
},
|
|
6371
6384
|
children: /* @__PURE__ */ e(
|
|
6372
6385
|
No,
|
|
6373
6386
|
{
|
|
6374
|
-
workspace:
|
|
6387
|
+
workspace: k,
|
|
6375
6388
|
currentUserId: t,
|
|
6376
6389
|
currentWorkspaceId: o == null ? void 0 : o.id,
|
|
6377
|
-
onClick: () => M(
|
|
6390
|
+
onClick: () => M(k)
|
|
6378
6391
|
}
|
|
6379
6392
|
)
|
|
6380
6393
|
},
|
|
6381
|
-
|
|
6394
|
+
k.id
|
|
6382
6395
|
)) }) }) })
|
|
6383
6396
|
] }) }),
|
|
6384
6397
|
h && /* @__PURE__ */ e(pe.Divider, { style: { margin: "1px 0px" } }),
|
|
6385
|
-
h && /* @__PURE__ */ e(b, { p: 4, children: h == null ? void 0 : h.map((
|
|
6398
|
+
h && /* @__PURE__ */ e(b, { p: 4, children: h == null ? void 0 : h.map((k) => /* @__PURE__ */ e(
|
|
6386
6399
|
Kn,
|
|
6387
6400
|
{
|
|
6388
|
-
onClick:
|
|
6389
|
-
leftSection:
|
|
6390
|
-
children:
|
|
6391
|
-
color:
|
|
6392
|
-
"data-danger":
|
|
6401
|
+
onClick: k.onClick,
|
|
6402
|
+
leftSection: k.icon,
|
|
6403
|
+
children: k.label,
|
|
6404
|
+
color: k.color,
|
|
6405
|
+
"data-danger": k.color,
|
|
6393
6406
|
fw: 500,
|
|
6394
6407
|
style: {
|
|
6395
6408
|
height: "40px",
|
|
@@ -6397,7 +6410,7 @@ const yo = ({
|
|
|
6397
6410
|
padding: "6px"
|
|
6398
6411
|
}
|
|
6399
6412
|
},
|
|
6400
|
-
|
|
6413
|
+
k.label
|
|
6401
6414
|
)) })
|
|
6402
6415
|
] })
|
|
6403
6416
|
}
|
|
@@ -6441,7 +6454,7 @@ const Ot = ({
|
|
|
6441
6454
|
interactive: a = !0,
|
|
6442
6455
|
...c
|
|
6443
6456
|
}) => {
|
|
6444
|
-
const [s, l] =
|
|
6457
|
+
const [s, l] = C(r), [d, u] = C(!1), p = i ? r : a ? s : r, f = () => {
|
|
6445
6458
|
if (!a)
|
|
6446
6459
|
return;
|
|
6447
6460
|
const g = ["empty", "outline", "filled"], w = (g.indexOf(p) + 1) % g.length, y = g[w];
|
|
@@ -6522,7 +6535,7 @@ const zt = ({
|
|
|
6522
6535
|
onBlockPress: l,
|
|
6523
6536
|
...d
|
|
6524
6537
|
}) => {
|
|
6525
|
-
const [u, p] =
|
|
6538
|
+
const [u, p] = C(!1), f = q(null), I = q(!1), h = () => {
|
|
6526
6539
|
!r || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
|
|
6527
6540
|
I.current = !0, l(r);
|
|
6528
6541
|
}, 500));
|
|
@@ -6572,7 +6585,7 @@ const Dt = ({
|
|
|
6572
6585
|
onBlockPress: l,
|
|
6573
6586
|
...d
|
|
6574
6587
|
}) => {
|
|
6575
|
-
const [u, p] =
|
|
6588
|
+
const [u, p] = C(!1), f = q(null), I = q(!1), h = () => {
|
|
6576
6589
|
!r || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
|
|
6577
6590
|
I.current = !0, l(r);
|
|
6578
6591
|
}, 500));
|
|
@@ -6622,7 +6635,7 @@ const Rt = ({
|
|
|
6622
6635
|
onBlockPress: l,
|
|
6623
6636
|
...d
|
|
6624
6637
|
}) => {
|
|
6625
|
-
const [u, p] =
|
|
6638
|
+
const [u, p] = C(!1), f = q(null), I = q(!1), h = () => {
|
|
6626
6639
|
!r || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
|
|
6627
6640
|
I.current = !0, l(r);
|
|
6628
6641
|
}, 500));
|
|
@@ -6672,7 +6685,7 @@ const Tt = ({
|
|
|
6672
6685
|
onBlockPress: l,
|
|
6673
6686
|
...d
|
|
6674
6687
|
}) => {
|
|
6675
|
-
const [u, p] =
|
|
6688
|
+
const [u, p] = C(!1), f = q(null), I = q(!1), h = () => {
|
|
6676
6689
|
!r || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
|
|
6677
6690
|
I.current = !0, l(r);
|
|
6678
6691
|
}, 500));
|
|
@@ -6720,7 +6733,7 @@ const Et = ({
|
|
|
6720
6733
|
showUpControls: c = !1,
|
|
6721
6734
|
showDownControls: s = !1
|
|
6722
6735
|
}) => {
|
|
6723
|
-
const [l, d] =
|
|
6736
|
+
const [l, d] = C(!1), [u, p] = C(!1), [f, I] = C(!1), [h, g] = C(!1), m = (M) => {
|
|
6724
6737
|
d(M), n == null || n(M);
|
|
6725
6738
|
}, w = (M) => {
|
|
6726
6739
|
p(M), o == null || o(M);
|
|
@@ -6729,7 +6742,7 @@ const Et = ({
|
|
|
6729
6742
|
}, S = (M) => {
|
|
6730
6743
|
g(M), r == null || r(M);
|
|
6731
6744
|
};
|
|
6732
|
-
return /* @__PURE__ */
|
|
6745
|
+
return /* @__PURE__ */ x(me, { children: [
|
|
6733
6746
|
i && /* @__PURE__ */ e(
|
|
6734
6747
|
b,
|
|
6735
6748
|
{
|
|
@@ -6828,20 +6841,20 @@ const Bt = ({
|
|
|
6828
6841
|
upVisible: S = !1,
|
|
6829
6842
|
onUpHover: M,
|
|
6830
6843
|
onDownPrevious: z,
|
|
6831
|
-
onDownNext:
|
|
6832
|
-
downCurrentPage:
|
|
6833
|
-
downTotalPages:
|
|
6834
|
-
downDisabled:
|
|
6844
|
+
onDownNext: O,
|
|
6845
|
+
downCurrentPage: k = 1,
|
|
6846
|
+
downTotalPages: v = 1,
|
|
6847
|
+
downDisabled: E = !1,
|
|
6835
6848
|
downVisible: L = !1,
|
|
6836
6849
|
onDownHover: R,
|
|
6837
6850
|
onLeftAdd: F,
|
|
6838
|
-
onRightAdd:
|
|
6839
|
-
onUpAdd:
|
|
6851
|
+
onRightAdd: G,
|
|
6852
|
+
onUpAdd: Q,
|
|
6840
6853
|
onDownAdd: V,
|
|
6841
6854
|
size: N = "md",
|
|
6842
|
-
inline:
|
|
6855
|
+
inline: X = !1
|
|
6843
6856
|
}) => {
|
|
6844
|
-
const H = () => r <= 1 || i ? null : /* @__PURE__ */
|
|
6857
|
+
const H = () => r <= 1 || i ? null : /* @__PURE__ */ x(W, { gap: "xs", align: "center", children: [
|
|
6845
6858
|
/* @__PURE__ */ e(
|
|
6846
6859
|
le,
|
|
6847
6860
|
{
|
|
@@ -6880,7 +6893,7 @@ const Bt = ({
|
|
|
6880
6893
|
children: /* @__PURE__ */ e(Wn, { size: 16, stroke: 2 })
|
|
6881
6894
|
}
|
|
6882
6895
|
)
|
|
6883
|
-
] }), oe = () => u <= 1 || p ? null : /* @__PURE__ */
|
|
6896
|
+
] }), oe = () => u <= 1 || p ? null : /* @__PURE__ */ x(W, { gap: "xs", align: "center", children: [
|
|
6884
6897
|
/* @__PURE__ */ e(
|
|
6885
6898
|
le,
|
|
6886
6899
|
{
|
|
@@ -6899,7 +6912,7 @@ const Bt = ({
|
|
|
6899
6912
|
{
|
|
6900
6913
|
size: N,
|
|
6901
6914
|
variant: "subtle",
|
|
6902
|
-
onClick:
|
|
6915
|
+
onClick: G,
|
|
6903
6916
|
color: "blue",
|
|
6904
6917
|
radius: "md",
|
|
6905
6918
|
"aria-label": "Add right blocks",
|
|
@@ -6919,7 +6932,7 @@ const Bt = ({
|
|
|
6919
6932
|
children: /* @__PURE__ */ e(Je, { size: 16, stroke: 2 })
|
|
6920
6933
|
}
|
|
6921
6934
|
)
|
|
6922
|
-
] }),
|
|
6935
|
+
] }), $ = () => w <= 1 || y ? null : /* @__PURE__ */ x(A, { gap: "xs", align: "center", wrap: "nowrap", children: [
|
|
6923
6936
|
/* @__PURE__ */ e(
|
|
6924
6937
|
le,
|
|
6925
6938
|
{
|
|
@@ -6938,7 +6951,7 @@ const Bt = ({
|
|
|
6938
6951
|
{
|
|
6939
6952
|
size: N,
|
|
6940
6953
|
variant: "subtle",
|
|
6941
|
-
onClick:
|
|
6954
|
+
onClick: Q,
|
|
6942
6955
|
color: "blue",
|
|
6943
6956
|
radius: "md",
|
|
6944
6957
|
"aria-label": "Add up blocks",
|
|
@@ -6958,14 +6971,14 @@ const Bt = ({
|
|
|
6958
6971
|
children: /* @__PURE__ */ e(Ve, { size: 16, stroke: 2 })
|
|
6959
6972
|
}
|
|
6960
6973
|
)
|
|
6961
|
-
] }),
|
|
6974
|
+
] }), Z = () => v <= 1 || E ? null : /* @__PURE__ */ x(A, { gap: "xs", align: "center", wrap: "nowrap", children: [
|
|
6962
6975
|
/* @__PURE__ */ e(
|
|
6963
6976
|
le,
|
|
6964
6977
|
{
|
|
6965
6978
|
size: N,
|
|
6966
6979
|
variant: "subtle",
|
|
6967
6980
|
onClick: z,
|
|
6968
|
-
disabled:
|
|
6981
|
+
disabled: k <= 1,
|
|
6969
6982
|
color: "gray",
|
|
6970
6983
|
radius: "md",
|
|
6971
6984
|
"aria-label": "Previous down blocks",
|
|
@@ -6989,16 +7002,16 @@ const Bt = ({
|
|
|
6989
7002
|
{
|
|
6990
7003
|
size: N,
|
|
6991
7004
|
variant: "subtle",
|
|
6992
|
-
onClick:
|
|
6993
|
-
disabled:
|
|
7005
|
+
onClick: O,
|
|
7006
|
+
disabled: k >= v,
|
|
6994
7007
|
color: "gray",
|
|
6995
7008
|
radius: "md",
|
|
6996
7009
|
"aria-label": "Next down blocks",
|
|
6997
7010
|
children: /* @__PURE__ */ e(Ve, { size: 16, stroke: 2 })
|
|
6998
7011
|
}
|
|
6999
7012
|
)
|
|
7000
|
-
] }), D = r > 1 && !i,
|
|
7001
|
-
return !D && !
|
|
7013
|
+
] }), D = r > 1 && !i, B = u > 1 && !p, U = w > 1 && !y, P = v > 1 && !E;
|
|
7014
|
+
return !D && !B && !U && !P ? null : X ? /* @__PURE__ */ x(me, { children: [
|
|
7002
7015
|
D && a && n && o && /* @__PURE__ */ e(
|
|
7003
7016
|
"div",
|
|
7004
7017
|
{
|
|
@@ -7007,7 +7020,7 @@ const Bt = ({
|
|
|
7007
7020
|
children: H()
|
|
7008
7021
|
}
|
|
7009
7022
|
),
|
|
7010
|
-
|
|
7023
|
+
B && f && s && l && /* @__PURE__ */ e(
|
|
7011
7024
|
"div",
|
|
7012
7025
|
{
|
|
7013
7026
|
onMouseEnter: () => I == null ? void 0 : I(!0),
|
|
@@ -7020,18 +7033,18 @@ const Bt = ({
|
|
|
7020
7033
|
{
|
|
7021
7034
|
onMouseEnter: () => M == null ? void 0 : M(!0),
|
|
7022
7035
|
onMouseLeave: () => M == null ? void 0 : M(!1),
|
|
7023
|
-
children:
|
|
7036
|
+
children: $()
|
|
7024
7037
|
}
|
|
7025
7038
|
),
|
|
7026
|
-
P && L && z &&
|
|
7039
|
+
P && L && z && O && /* @__PURE__ */ e(
|
|
7027
7040
|
"div",
|
|
7028
7041
|
{
|
|
7029
7042
|
onMouseEnter: () => R == null ? void 0 : R(!0),
|
|
7030
7043
|
onMouseLeave: () => R == null ? void 0 : R(!1),
|
|
7031
|
-
children:
|
|
7044
|
+
children: Z()
|
|
7032
7045
|
}
|
|
7033
7046
|
)
|
|
7034
|
-
] }) : /* @__PURE__ */
|
|
7047
|
+
] }) : /* @__PURE__ */ x(me, { children: [
|
|
7035
7048
|
D && a && n && o && /* @__PURE__ */ e(
|
|
7036
7049
|
b,
|
|
7037
7050
|
{
|
|
@@ -7050,7 +7063,7 @@ const Bt = ({
|
|
|
7050
7063
|
children: H()
|
|
7051
7064
|
}
|
|
7052
7065
|
),
|
|
7053
|
-
|
|
7066
|
+
B && f && s && l && /* @__PURE__ */ e(
|
|
7054
7067
|
b,
|
|
7055
7068
|
{
|
|
7056
7069
|
style: {
|
|
@@ -7083,7 +7096,7 @@ const Bt = ({
|
|
|
7083
7096
|
},
|
|
7084
7097
|
onMouseEnter: () => M == null ? void 0 : M(!0),
|
|
7085
7098
|
onMouseLeave: () => M == null ? void 0 : M(!1),
|
|
7086
|
-
children:
|
|
7099
|
+
children: $()
|
|
7087
7100
|
}
|
|
7088
7101
|
),
|
|
7089
7102
|
/* @__PURE__ */ e(
|
|
@@ -7101,7 +7114,7 @@ const Bt = ({
|
|
|
7101
7114
|
},
|
|
7102
7115
|
onMouseEnter: () => R == null ? void 0 : R(!0),
|
|
7103
7116
|
onMouseLeave: () => R == null ? void 0 : R(!1),
|
|
7104
|
-
children: P && L && z &&
|
|
7117
|
+
children: P && L && z && O && Z()
|
|
7105
7118
|
}
|
|
7106
7119
|
)
|
|
7107
7120
|
] });
|
|
@@ -7179,7 +7192,7 @@ const Ze = ({
|
|
|
7179
7192
|
downVisible: !0
|
|
7180
7193
|
}
|
|
7181
7194
|
};
|
|
7182
|
-
return /* @__PURE__ */
|
|
7195
|
+
return /* @__PURE__ */ x(
|
|
7183
7196
|
"div",
|
|
7184
7197
|
{
|
|
7185
7198
|
style: {
|
|
@@ -7240,7 +7253,7 @@ const Ze = ({
|
|
|
7240
7253
|
visibleBlocksRight: c = 1,
|
|
7241
7254
|
visibleBlocksUp: s = 1,
|
|
7242
7255
|
visibleBlocksDown: l = 1
|
|
7243
|
-
} = n, d =
|
|
7256
|
+
} = n, d = J(() => {
|
|
7244
7257
|
const h = Math.max(
|
|
7245
7258
|
1,
|
|
7246
7259
|
Math.ceil(o / a)
|
|
@@ -7277,14 +7290,14 @@ const Ze = ({
|
|
|
7277
7290
|
c,
|
|
7278
7291
|
s,
|
|
7279
7292
|
l
|
|
7280
|
-
]), [u, p] =
|
|
7293
|
+
]), [u, p] = C(
|
|
7281
7294
|
{
|
|
7282
7295
|
leftStartIndex: 0,
|
|
7283
7296
|
rightStartIndex: 0,
|
|
7284
7297
|
upStartIndex: 0,
|
|
7285
7298
|
downStartIndex: 0
|
|
7286
7299
|
}
|
|
7287
|
-
), f =
|
|
7300
|
+
), f = J(() => {
|
|
7288
7301
|
const { leftTotalPages: h, rightTotalPages: g, upTotalPages: m, downTotalPages: w } = d, y = Math.min(
|
|
7289
7302
|
u.leftStartIndex,
|
|
7290
7303
|
Math.max(0, o - a)
|
|
@@ -7297,14 +7310,14 @@ const Ze = ({
|
|
|
7297
7310
|
), z = Math.min(
|
|
7298
7311
|
M + c,
|
|
7299
7312
|
t
|
|
7300
|
-
),
|
|
7313
|
+
), O = Math.min(
|
|
7301
7314
|
u.upStartIndex,
|
|
7302
7315
|
Math.max(0, r - s)
|
|
7303
|
-
),
|
|
7316
|
+
), k = Math.min(O + s, r), v = Math.min(
|
|
7304
7317
|
u.downStartIndex,
|
|
7305
7318
|
Math.max(0, i - l)
|
|
7306
|
-
),
|
|
7307
|
-
|
|
7319
|
+
), E = Math.min(
|
|
7320
|
+
v + l,
|
|
7308
7321
|
i
|
|
7309
7322
|
);
|
|
7310
7323
|
return {
|
|
@@ -7316,10 +7329,10 @@ const Ze = ({
|
|
|
7316
7329
|
leftEndIndex: S,
|
|
7317
7330
|
rightStartIndex: M,
|
|
7318
7331
|
rightEndIndex: z,
|
|
7319
|
-
upStartIndex:
|
|
7320
|
-
upEndIndex:
|
|
7321
|
-
downStartIndex:
|
|
7322
|
-
downEndIndex:
|
|
7332
|
+
upStartIndex: O,
|
|
7333
|
+
upEndIndex: k,
|
|
7334
|
+
downStartIndex: v,
|
|
7335
|
+
downEndIndex: E
|
|
7323
7336
|
};
|
|
7324
7337
|
}, [
|
|
7325
7338
|
u,
|
|
@@ -7449,7 +7462,7 @@ const Ze = ({
|
|
|
7449
7462
|
};
|
|
7450
7463
|
return [u, I, f];
|
|
7451
7464
|
}, _o = (n, o = 0, t = 0, r = 0, i = 0) => {
|
|
7452
|
-
const [a, c] =
|
|
7465
|
+
const [a, c] = C({
|
|
7453
7466
|
width: typeof window < "u" ? window.innerWidth : 1920,
|
|
7454
7467
|
height: typeof window < "u" ? window.innerHeight : 1080
|
|
7455
7468
|
});
|
|
@@ -7463,7 +7476,7 @@ const Ze = ({
|
|
|
7463
7476
|
});
|
|
7464
7477
|
};
|
|
7465
7478
|
return window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
|
|
7466
|
-
}, []),
|
|
7479
|
+
}, []), J(() => {
|
|
7467
7480
|
const {
|
|
7468
7481
|
gap: l,
|
|
7469
7482
|
cellSize: d,
|
|
@@ -7479,13 +7492,13 @@ const Ze = ({
|
|
|
7479
7492
|
maxBlocksDown: S = 8,
|
|
7480
7493
|
responsiveCellSize: M = !1,
|
|
7481
7494
|
minCellSize: z = "30px",
|
|
7482
|
-
maxCellSize:
|
|
7483
|
-
} = n,
|
|
7484
|
-
|
|
7485
|
-
),
|
|
7495
|
+
maxCellSize: O = "80px"
|
|
7496
|
+
} = n, k = parseFloat(l.replace("px", "")), v = parseFloat(d.replace("px", "")), E = a.width - k * 4, L = a.height - k * 4, R = v + k, F = Math.floor(
|
|
7497
|
+
E / (2 * R)
|
|
7498
|
+
), G = v + k, Q = Math.floor(L / G) + 2, V = Math.min(F, Q), N = Math.max(
|
|
7486
7499
|
u,
|
|
7487
7500
|
Math.min(p, V)
|
|
7488
|
-
),
|
|
7501
|
+
), X = Math.max(
|
|
7489
7502
|
f,
|
|
7490
7503
|
Math.min(I, Math.floor(V / 2))
|
|
7491
7504
|
), H = Math.max(
|
|
@@ -7494,71 +7507,71 @@ const Ze = ({
|
|
|
7494
7507
|
);
|
|
7495
7508
|
let oe = d;
|
|
7496
7509
|
if (M) {
|
|
7497
|
-
const U = parseFloat(z.replace("px", "")), P = parseFloat(
|
|
7498
|
-
|
|
7510
|
+
const U = parseFloat(z.replace("px", "")), P = parseFloat(O.replace("px", "")), K = Math.min(
|
|
7511
|
+
E / (a.width * 0.8),
|
|
7499
7512
|
// Max 80% of screen width
|
|
7500
7513
|
L / (a.height * 0.8)
|
|
7501
7514
|
// Max 80% of screen height
|
|
7502
7515
|
);
|
|
7503
7516
|
oe = `${Math.max(
|
|
7504
7517
|
U,
|
|
7505
|
-
Math.min(P,
|
|
7518
|
+
Math.min(P, v * K)
|
|
7506
7519
|
)}px`;
|
|
7507
7520
|
}
|
|
7508
|
-
const
|
|
7521
|
+
const $ = Math.min(
|
|
7509
7522
|
a.width / 1920,
|
|
7510
7523
|
a.height / 1080
|
|
7511
7524
|
);
|
|
7512
|
-
let
|
|
7525
|
+
let Z, D;
|
|
7513
7526
|
if (r > 0 && i > 0) {
|
|
7514
7527
|
const U = Math.max(r, i);
|
|
7515
|
-
|
|
7528
|
+
Z = Math.max(
|
|
7516
7529
|
m,
|
|
7517
7530
|
Math.min(w, U)
|
|
7518
|
-
), D =
|
|
7531
|
+
), D = Z;
|
|
7519
7532
|
} else {
|
|
7520
|
-
const U = Math.max(m, y), P = Math.min(w, S),
|
|
7533
|
+
const U = Math.max(m, y), P = Math.min(w, S), K = Math.max(
|
|
7521
7534
|
U,
|
|
7522
7535
|
Math.min(
|
|
7523
7536
|
P,
|
|
7524
7537
|
Math.ceil(
|
|
7525
|
-
U + (P - U) *
|
|
7538
|
+
U + (P - U) * $
|
|
7526
7539
|
)
|
|
7527
7540
|
)
|
|
7528
7541
|
);
|
|
7529
|
-
|
|
7542
|
+
Z = K, D = K;
|
|
7530
7543
|
}
|
|
7531
|
-
if (
|
|
7532
|
-
const U = Math.max(2,
|
|
7544
|
+
if (Z + D + 1 > Q) {
|
|
7545
|
+
const U = Math.max(2, Q - 1);
|
|
7533
7546
|
if (Math.max(m, y) * 2 > U) {
|
|
7534
|
-
const
|
|
7535
|
-
|
|
7547
|
+
const K = Math.max(1, Math.floor(U / 2));
|
|
7548
|
+
Z = K, D = K;
|
|
7536
7549
|
} else {
|
|
7537
|
-
const
|
|
7538
|
-
|
|
7550
|
+
const K = Math.max(m, y);
|
|
7551
|
+
Z = K, D = K;
|
|
7539
7552
|
}
|
|
7540
7553
|
}
|
|
7541
7554
|
return console.log("Responsive Matrix Debug:", {
|
|
7542
7555
|
windowSize: a,
|
|
7543
|
-
screenSizeRatio:
|
|
7556
|
+
screenSizeRatio: $,
|
|
7544
7557
|
minBlocksUp: m,
|
|
7545
7558
|
minBlocksDown: y,
|
|
7546
7559
|
maxBlocksUp: w,
|
|
7547
7560
|
maxBlocksDown: S,
|
|
7548
7561
|
blocksUp: r,
|
|
7549
7562
|
blocksDown: i,
|
|
7550
|
-
calculatedBlocksUp:
|
|
7563
|
+
calculatedBlocksUp: Z,
|
|
7551
7564
|
calculatedBlocksDown: D,
|
|
7552
|
-
totalVerticalBlocks:
|
|
7553
|
-
isSymmetric:
|
|
7565
|
+
totalVerticalBlocks: Z + D + 1,
|
|
7566
|
+
isSymmetric: Z === D,
|
|
7554
7567
|
availableHeight: L,
|
|
7555
|
-
maxBlocksVertical:
|
|
7568
|
+
maxBlocksVertical: Q
|
|
7556
7569
|
}), {
|
|
7557
7570
|
blocksPerSide: N,
|
|
7558
|
-
blocksLeft:
|
|
7571
|
+
blocksLeft: X,
|
|
7559
7572
|
blocksRight: H,
|
|
7560
7573
|
cellSize: oe,
|
|
7561
|
-
blocksUp:
|
|
7574
|
+
blocksUp: Z,
|
|
7562
7575
|
blocksDown: D
|
|
7563
7576
|
};
|
|
7564
7577
|
}, [a, n, o, t, r, i]);
|
|
@@ -7585,13 +7598,13 @@ const Ze = ({
|
|
|
7585
7598
|
minBlocksDown: S,
|
|
7586
7599
|
maxBlocksDown: M,
|
|
7587
7600
|
responsiveCellSize: z,
|
|
7588
|
-
minCellSize:
|
|
7589
|
-
maxCellSize:
|
|
7601
|
+
minCellSize: O,
|
|
7602
|
+
maxCellSize: k
|
|
7590
7603
|
}) => {
|
|
7591
|
-
const
|
|
7604
|
+
const v = J(
|
|
7592
7605
|
() => c !== void 0 || s !== void 0 || l !== void 0 || d !== void 0,
|
|
7593
7606
|
[c, s, l, d]
|
|
7594
|
-
),
|
|
7607
|
+
), E = _o(
|
|
7595
7608
|
{
|
|
7596
7609
|
gap: n,
|
|
7597
7610
|
cellSize: o,
|
|
@@ -7606,63 +7619,63 @@ const Ze = ({
|
|
|
7606
7619
|
minBlocksDown: S,
|
|
7607
7620
|
maxBlocksDown: M,
|
|
7608
7621
|
responsiveCellSize: z,
|
|
7609
|
-
minCellSize:
|
|
7610
|
-
maxCellSize:
|
|
7622
|
+
minCellSize: O,
|
|
7623
|
+
maxCellSize: k
|
|
7611
7624
|
},
|
|
7612
7625
|
t ?? 0,
|
|
7613
7626
|
r ?? 0,
|
|
7614
7627
|
i,
|
|
7615
7628
|
a
|
|
7616
|
-
), L =
|
|
7617
|
-
let
|
|
7629
|
+
), L = J(() => {
|
|
7630
|
+
let Q = u ? E.blocksLeft : t ?? 0, V = u ? E.blocksRight : r ?? 0, N = u ? E.blocksUp : i ?? 0, X = u ? E.blocksDown : a ?? 0;
|
|
7618
7631
|
if (!u) {
|
|
7619
|
-
const H = parseFloat(n.replace("px", "")), oe = parseFloat(o.replace("px", "")),
|
|
7620
|
-
|
|
7632
|
+
const H = parseFloat(n.replace("px", "")), oe = parseFloat(o.replace("px", "")), $ = typeof window < "u" ? window.innerWidth - H * 4 : 1920, Z = typeof window < "u" ? window.innerHeight - H * 4 : 1080, D = oe + H, B = Math.floor(
|
|
7633
|
+
$ / (2 * D)
|
|
7621
7634
|
), U = Math.floor(
|
|
7622
|
-
|
|
7635
|
+
Z / (2 * D)
|
|
7623
7636
|
);
|
|
7624
|
-
|
|
7637
|
+
Q = Math.min(Q, B), V = Math.min(V, B), N = Math.min(N, U), X = Math.min(X, U);
|
|
7625
7638
|
}
|
|
7626
|
-
return { left:
|
|
7639
|
+
return { left: Q, right: V, up: N, down: X };
|
|
7627
7640
|
}, [
|
|
7628
7641
|
u,
|
|
7629
|
-
|
|
7642
|
+
E,
|
|
7630
7643
|
t,
|
|
7631
7644
|
r,
|
|
7632
7645
|
i,
|
|
7633
7646
|
a,
|
|
7634
7647
|
n,
|
|
7635
7648
|
o
|
|
7636
|
-
]), R =
|
|
7637
|
-
const
|
|
7638
|
-
return { left:
|
|
7649
|
+
]), R = J(() => {
|
|
7650
|
+
const Q = v && c ? Math.min(L.left, c) : L.left, V = v && s ? Math.min(L.right, s) : L.right, N = v && l ? Math.min(L.up, l) : L.up, X = v && d ? Math.min(L.down, d) : L.down;
|
|
7651
|
+
return { left: Q, right: V, up: N, down: X };
|
|
7639
7652
|
}, [
|
|
7640
|
-
|
|
7653
|
+
v,
|
|
7641
7654
|
L,
|
|
7642
7655
|
c,
|
|
7643
7656
|
s,
|
|
7644
7657
|
l,
|
|
7645
7658
|
d
|
|
7646
|
-
]), F = u ?
|
|
7647
|
-
const
|
|
7659
|
+
]), F = u ? E.cellSize : o, G = J(() => {
|
|
7660
|
+
const Q = (R.left > 0 ? R.left : 0) + 1 + (R.right > 0 ? R.right : 0), V = R.up > 0 || R.down > 0 ? R.up + 1 + R.down : 1, N = `${F} `.repeat(R.left) + "1fr " + `${F} `.repeat(R.right), X = R.up > 0 || R.down > 0 ? `${F} `.repeat(R.up) + "1fr " + `${F} `.repeat(R.down) : "1fr";
|
|
7648
7661
|
return {
|
|
7649
|
-
totalColumns:
|
|
7662
|
+
totalColumns: Q,
|
|
7650
7663
|
totalRows: V,
|
|
7651
7664
|
gridTemplateColumns: N.trim(),
|
|
7652
|
-
gridTemplateRows:
|
|
7665
|
+
gridTemplateRows: X.trim()
|
|
7653
7666
|
};
|
|
7654
7667
|
}, [R, F]);
|
|
7655
7668
|
return {
|
|
7656
|
-
usePagination:
|
|
7669
|
+
usePagination: v,
|
|
7657
7670
|
visibleBlocks: L,
|
|
7658
7671
|
finalBlocks: R,
|
|
7659
7672
|
finalCellSize: F,
|
|
7660
|
-
gridDimensions:
|
|
7673
|
+
gridDimensions: G
|
|
7661
7674
|
};
|
|
7662
7675
|
}, Qo = ({
|
|
7663
7676
|
blockItems: n
|
|
7664
7677
|
}) => {
|
|
7665
|
-
const o =
|
|
7678
|
+
const o = J(() => n.reduce((i, a) => (i[a.id] = a, i), {}), [n]);
|
|
7666
7679
|
return {
|
|
7667
7680
|
getBlockContent: (i, a) => {
|
|
7668
7681
|
const c = `${i}-${a}`, s = o[c];
|
|
@@ -7706,7 +7719,7 @@ const Ze = ({
|
|
|
7706
7719
|
}
|
|
7707
7720
|
};
|
|
7708
7721
|
}, Yo = ({ blockConnections: n }) => {
|
|
7709
|
-
const o =
|
|
7722
|
+
const o = J(() => {
|
|
7710
7723
|
const r = /* @__PURE__ */ new Map();
|
|
7711
7724
|
return n.forEach((i) => {
|
|
7712
7725
|
const a = `${i.source}-${i.target}`, c = `${i.target}-${i.source}`;
|
|
@@ -7735,7 +7748,7 @@ const Ze = ({
|
|
|
7735
7748
|
paginationState: c,
|
|
7736
7749
|
paginationInfo: s
|
|
7737
7750
|
}) => {
|
|
7738
|
-
const [l, d] =
|
|
7751
|
+
const [l, d] = C({
|
|
7739
7752
|
left: !1,
|
|
7740
7753
|
right: !1,
|
|
7741
7754
|
up: !1,
|
|
@@ -7784,7 +7797,7 @@ const Ze = ({
|
|
|
7784
7797
|
blockItems: n,
|
|
7785
7798
|
blockConnections: o
|
|
7786
7799
|
}) => {
|
|
7787
|
-
const [t, r] =
|
|
7800
|
+
const [t, r] = C(null), [i, a] = C(!1), c = J(() => {
|
|
7788
7801
|
const g = /* @__PURE__ */ new Map();
|
|
7789
7802
|
return o.forEach((m) => {
|
|
7790
7803
|
const w = `${m.source}-${m.target}`, y = `${m.target}-${m.source}`;
|
|
@@ -7811,36 +7824,36 @@ const Ze = ({
|
|
|
7811
7824
|
case "up":
|
|
7812
7825
|
w.forEach((S) => {
|
|
7813
7826
|
const M = n.find((z) => z.id === S);
|
|
7814
|
-
M && (M.type === "left" || M.type === "right") && (y.push(S), s(S).forEach((
|
|
7815
|
-
const
|
|
7816
|
-
|
|
7827
|
+
M && (M.type === "left" || M.type === "right") && (y.push(S), s(S).forEach((O) => {
|
|
7828
|
+
const k = n.find((v) => v.id === O);
|
|
7829
|
+
k && k.type === "down" && y.push(O);
|
|
7817
7830
|
}));
|
|
7818
7831
|
});
|
|
7819
7832
|
break;
|
|
7820
7833
|
case "down":
|
|
7821
7834
|
w.forEach((S) => {
|
|
7822
7835
|
const M = n.find((z) => z.id === S);
|
|
7823
|
-
M && (M.type === "left" || M.type === "right") && (y.push(S), s(S).forEach((
|
|
7824
|
-
const
|
|
7825
|
-
|
|
7836
|
+
M && (M.type === "left" || M.type === "right") && (y.push(S), s(S).forEach((O) => {
|
|
7837
|
+
const k = n.find((v) => v.id === O);
|
|
7838
|
+
k && k.type === "up" && y.push(O);
|
|
7826
7839
|
}));
|
|
7827
7840
|
});
|
|
7828
7841
|
break;
|
|
7829
7842
|
case "left":
|
|
7830
7843
|
w.forEach((S) => {
|
|
7831
7844
|
const M = n.find((z) => z.id === S);
|
|
7832
|
-
M && (M.type === "up" || M.type === "down") && (y.push(S), s(S).forEach((
|
|
7833
|
-
const
|
|
7834
|
-
|
|
7845
|
+
M && (M.type === "up" || M.type === "down") && (y.push(S), s(S).forEach((O) => {
|
|
7846
|
+
const k = n.find((v) => v.id === O);
|
|
7847
|
+
k && k.type === "right" && y.push(O);
|
|
7835
7848
|
}));
|
|
7836
7849
|
});
|
|
7837
7850
|
break;
|
|
7838
7851
|
case "right":
|
|
7839
7852
|
w.forEach((S) => {
|
|
7840
7853
|
const M = n.find((z) => z.id === S);
|
|
7841
|
-
M && (M.type === "up" || M.type === "down") && (y.push(S), s(S).forEach((
|
|
7842
|
-
const
|
|
7843
|
-
|
|
7854
|
+
M && (M.type === "up" || M.type === "down") && (y.push(S), s(S).forEach((O) => {
|
|
7855
|
+
const k = n.find((v) => v.id === O);
|
|
7856
|
+
k && k.type === "left" && y.push(O);
|
|
7844
7857
|
}));
|
|
7845
7858
|
});
|
|
7846
7859
|
break;
|
|
@@ -7876,7 +7889,7 @@ const Ze = ({
|
|
|
7876
7889
|
getFilteredBlockIds: l
|
|
7877
7890
|
};
|
|
7878
7891
|
}, Gn = (n) => parseInt(n.replace(/[^\d]/g, ""), 10) || 0, Xo = (n, o) => {
|
|
7879
|
-
const [t, r] =
|
|
7892
|
+
const [t, r] = C({ width: 0, height: 0 }), i = j(() => {
|
|
7880
7893
|
const { width: a, height: c } = t;
|
|
7881
7894
|
if (a === 0 || c === 0)
|
|
7882
7895
|
return {
|
|
@@ -7901,12 +7914,12 @@ const Ze = ({
|
|
|
7901
7914
|
), w = Math.max(
|
|
7902
7915
|
o.minHorizontalBlocks,
|
|
7903
7916
|
g
|
|
7904
|
-
), y = Math.max(m, f), S = Math.max(w, I), M = Math.floor(y / 2), z = Math.floor(y / 2),
|
|
7917
|
+
), y = Math.max(m, f), S = Math.max(w, I), M = Math.floor(y / 2), z = Math.floor(y / 2), O = Math.floor(S / 2), k = Math.floor(S / 2);
|
|
7905
7918
|
return {
|
|
7906
7919
|
blocksUp: M,
|
|
7907
7920
|
blocksDown: z,
|
|
7908
|
-
blocksLeft:
|
|
7909
|
-
blocksRight:
|
|
7921
|
+
blocksLeft: O,
|
|
7922
|
+
blocksRight: k,
|
|
7910
7923
|
containerWidth: a,
|
|
7911
7924
|
containerHeight: c
|
|
7912
7925
|
};
|
|
@@ -7969,36 +7982,36 @@ const Ze = ({
|
|
|
7969
7982
|
usePagination: M = !1,
|
|
7970
7983
|
// DEPRECATED RESPONSIVE PROPS - Keep for backward compatibility
|
|
7971
7984
|
responsive: z = !1,
|
|
7972
|
-
minBlocksPerSide:
|
|
7973
|
-
maxBlocksPerSide:
|
|
7974
|
-
minBlocksHorizontal:
|
|
7975
|
-
maxBlocksHorizontal:
|
|
7985
|
+
minBlocksPerSide: O = 2,
|
|
7986
|
+
maxBlocksPerSide: k = 15,
|
|
7987
|
+
minBlocksHorizontal: v = 2,
|
|
7988
|
+
maxBlocksHorizontal: E = 16,
|
|
7976
7989
|
minBlocksVertical: L = 2,
|
|
7977
7990
|
maxBlocksVertical: R = 16,
|
|
7978
7991
|
// Legacy props (for backward compatibility)
|
|
7979
7992
|
minBlocksLeft: F = 1,
|
|
7980
|
-
maxBlocksLeft:
|
|
7981
|
-
minBlocksRight:
|
|
7993
|
+
maxBlocksLeft: G = 8,
|
|
7994
|
+
minBlocksRight: Q = 1,
|
|
7982
7995
|
maxBlocksRight: V = 8,
|
|
7983
7996
|
minBlocksUp: N = 1,
|
|
7984
|
-
maxBlocksUp:
|
|
7997
|
+
maxBlocksUp: X = 8,
|
|
7985
7998
|
minBlocksDown: H = 1,
|
|
7986
7999
|
maxBlocksDown: oe = 8,
|
|
7987
|
-
responsiveCellSize:
|
|
7988
|
-
minCellSize:
|
|
8000
|
+
responsiveCellSize: $ = !1,
|
|
8001
|
+
minCellSize: Z = "30px",
|
|
7989
8002
|
maxCellSize: D = "80px",
|
|
7990
|
-
directionTexts:
|
|
8003
|
+
directionTexts: B,
|
|
7991
8004
|
...U
|
|
7992
8005
|
}) => {
|
|
7993
|
-
const P =
|
|
8006
|
+
const P = q(null), K = Xo(P, {
|
|
7994
8007
|
...Ko,
|
|
7995
8008
|
cellSize: r,
|
|
7996
8009
|
gap: t,
|
|
7997
8010
|
...c
|
|
7998
8011
|
});
|
|
7999
|
-
let de = l,
|
|
8000
|
-
s ? (de = Math.floor(
|
|
8001
|
-
const ze = F !== 1 ? F : Math.floor(
|
|
8012
|
+
let de = l, _ = d, ge = u, ie = p;
|
|
8013
|
+
s ? (de = Math.floor(K.blocksLeft), _ = Math.floor(K.blocksRight), ge = Math.floor(K.blocksUp), ie = Math.floor(K.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), _ = Math.floor(a / 2)));
|
|
8014
|
+
const ze = F !== 1 ? F : Math.floor(v / 2), cn = G !== 8 ? G : Math.floor(E / 2), sn = Q !== 1 ? Q : Math.ceil(v / 2), Ie = V !== 8 ? V : Math.ceil(E / 2), Le = N !== 1 ? N : Math.floor(L / 2), _e = X !== 8 ? X : Math.floor(R / 2), Ut = H !== 1 ? H : Math.ceil(L / 2), Nt = oe !== 8 ? oe : Math.ceil(R / 2), {
|
|
8002
8015
|
usePagination: Wt,
|
|
8003
8016
|
finalBlocks: ee,
|
|
8004
8017
|
finalCellSize: ye,
|
|
@@ -8007,7 +8020,7 @@ const Ze = ({
|
|
|
8007
8020
|
gap: t,
|
|
8008
8021
|
cellSize: r,
|
|
8009
8022
|
blocksLeft: de,
|
|
8010
|
-
blocksRight:
|
|
8023
|
+
blocksRight: _,
|
|
8011
8024
|
blocksUp: ge,
|
|
8012
8025
|
blocksDown: ie,
|
|
8013
8026
|
totalBlocksLeft: m,
|
|
@@ -8015,8 +8028,8 @@ const Ze = ({
|
|
|
8015
8028
|
totalBlocksUp: y,
|
|
8016
8029
|
totalBlocksDown: S,
|
|
8017
8030
|
responsive: z,
|
|
8018
|
-
minBlocksPerSide:
|
|
8019
|
-
maxBlocksPerSide:
|
|
8031
|
+
minBlocksPerSide: O,
|
|
8032
|
+
maxBlocksPerSide: k,
|
|
8020
8033
|
minBlocksLeft: ze,
|
|
8021
8034
|
maxBlocksLeft: cn,
|
|
8022
8035
|
minBlocksRight: sn,
|
|
@@ -8025,8 +8038,8 @@ const Ze = ({
|
|
|
8025
8038
|
maxBlocksUp: _e,
|
|
8026
8039
|
minBlocksDown: Ut,
|
|
8027
8040
|
maxBlocksDown: Nt,
|
|
8028
|
-
responsiveCellSize:
|
|
8029
|
-
minCellSize:
|
|
8041
|
+
responsiveCellSize: $,
|
|
8042
|
+
minCellSize: Z,
|
|
8030
8043
|
maxCellSize: D
|
|
8031
8044
|
}), { getBlockContent: Qe, getIntersectionText: $t } = Qo({
|
|
8032
8045
|
blockItems: f
|
|
@@ -8063,7 +8076,7 @@ const Ze = ({
|
|
|
8063
8076
|
paginationState: ve,
|
|
8064
8077
|
paginationInfo: Vt
|
|
8065
8078
|
});
|
|
8066
|
-
return /* @__PURE__ */
|
|
8079
|
+
return /* @__PURE__ */ x(
|
|
8067
8080
|
b,
|
|
8068
8081
|
{
|
|
8069
8082
|
ref: P,
|
|
@@ -8088,7 +8101,7 @@ const Ze = ({
|
|
|
8088
8101
|
(Ii, ue) => {
|
|
8089
8102
|
const dn = ee.up > 0 ? ae === ee.up : ae === 0, un = ue === ee.left;
|
|
8090
8103
|
if (dn && un)
|
|
8091
|
-
return /* @__PURE__ */
|
|
8104
|
+
return /* @__PURE__ */ x(
|
|
8092
8105
|
Ct,
|
|
8093
8106
|
{
|
|
8094
8107
|
style: {
|
|
@@ -8104,7 +8117,7 @@ const Ze = ({
|
|
|
8104
8117
|
Ze,
|
|
8105
8118
|
{
|
|
8106
8119
|
direction: "left",
|
|
8107
|
-
text:
|
|
8120
|
+
text: B == null ? void 0 : B.left,
|
|
8108
8121
|
...De("left")
|
|
8109
8122
|
}
|
|
8110
8123
|
),
|
|
@@ -8112,7 +8125,7 @@ const Ze = ({
|
|
|
8112
8125
|
Ze,
|
|
8113
8126
|
{
|
|
8114
8127
|
direction: "right",
|
|
8115
|
-
text:
|
|
8128
|
+
text: B == null ? void 0 : B.right,
|
|
8116
8129
|
...De("right")
|
|
8117
8130
|
}
|
|
8118
8131
|
),
|
|
@@ -8120,7 +8133,7 @@ const Ze = ({
|
|
|
8120
8133
|
Ze,
|
|
8121
8134
|
{
|
|
8122
8135
|
direction: "up",
|
|
8123
|
-
text:
|
|
8136
|
+
text: B == null ? void 0 : B.up,
|
|
8124
8137
|
...De("up")
|
|
8125
8138
|
}
|
|
8126
8139
|
),
|
|
@@ -8128,7 +8141,7 @@ const Ze = ({
|
|
|
8128
8141
|
Ze,
|
|
8129
8142
|
{
|
|
8130
8143
|
direction: "down",
|
|
8131
|
-
text:
|
|
8144
|
+
text: B == null ? void 0 : B.down,
|
|
8132
8145
|
...De("down")
|
|
8133
8146
|
}
|
|
8134
8147
|
),
|
|
@@ -8290,8 +8303,8 @@ const Ae = ({
|
|
|
8290
8303
|
};
|
|
8291
8304
|
return Sr("(max-width: 550px)", !1, {
|
|
8292
8305
|
getInitialValueInEffect: !0
|
|
8293
|
-
}) ? /* @__PURE__ */
|
|
8294
|
-
/* @__PURE__ */
|
|
8306
|
+
}) ? /* @__PURE__ */ x(W, { gap: 0, w: "100%", ...l, children: [
|
|
8307
|
+
/* @__PURE__ */ x(b, { style: { display: "flex", alignItems: "center", gap: 8 }, h: "auto", children: [
|
|
8295
8308
|
r && /* @__PURE__ */ e(
|
|
8296
8309
|
r,
|
|
8297
8310
|
{
|
|
@@ -8304,8 +8317,8 @@ const Ae = ({
|
|
|
8304
8317
|
/* @__PURE__ */ e(T, { size: "sm", fw: 500, c: "gray.6", children: t })
|
|
8305
8318
|
] }),
|
|
8306
8319
|
/* @__PURE__ */ e(b, { style: { display: "flex", alignItems: "flex-start" }, w: "100%", children: n && o ? o : i })
|
|
8307
|
-
] }) : /* @__PURE__ */
|
|
8308
|
-
/* @__PURE__ */
|
|
8320
|
+
] }) : /* @__PURE__ */ x(A, { align: "flex-start", gap: 0, w: "100%", ...s, ...l, children: [
|
|
8321
|
+
/* @__PURE__ */ x(
|
|
8309
8322
|
b,
|
|
8310
8323
|
{
|
|
8311
8324
|
w: "30%",
|
|
@@ -8428,7 +8441,7 @@ const Ae = ({
|
|
|
8428
8441
|
debounceSearch: t = !0,
|
|
8429
8442
|
debounceDelay: r = ei
|
|
8430
8443
|
}) => {
|
|
8431
|
-
const [i, a] =
|
|
8444
|
+
const [i, a] = C(""), [c, s] = C(n), [l, d] = C(!1), u = q(null);
|
|
8432
8445
|
return Y(() => {
|
|
8433
8446
|
if (!o) {
|
|
8434
8447
|
s(n);
|
|
@@ -8469,14 +8482,14 @@ const Ae = ({
|
|
|
8469
8482
|
searchQuery: i,
|
|
8470
8483
|
onSearch: a
|
|
8471
8484
|
}) => {
|
|
8472
|
-
const c =
|
|
8485
|
+
const c = J(() => o ? Array.isArray(n) ? n : [] : n ? [n] : [], [n, o]), s = J(() => t.filter((u) => c.includes(u.id)), [t, c]), l = J(() => {
|
|
8473
8486
|
if (!i.trim() || a)
|
|
8474
8487
|
return r;
|
|
8475
8488
|
const u = i.toLowerCase();
|
|
8476
8489
|
return r.filter(
|
|
8477
8490
|
(p) => p.name.toLowerCase().includes(u) || p.email.toLowerCase().includes(u)
|
|
8478
8491
|
);
|
|
8479
|
-
}, [r, i, a]), d =
|
|
8492
|
+
}, [r, i, a]), d = J(() => {
|
|
8480
8493
|
const u = l.filter(
|
|
8481
8494
|
(I) => c.includes(I.id)
|
|
8482
8495
|
), p = l.filter((I) => !c.includes(I.id)), f = s.filter(
|
|
@@ -8493,7 +8506,7 @@ const Ae = ({
|
|
|
8493
8506
|
isFocused: n,
|
|
8494
8507
|
dropdownRef: o
|
|
8495
8508
|
}) => {
|
|
8496
|
-
const [t, r] =
|
|
8509
|
+
const [t, r] = C("bottom"), i = j(
|
|
8497
8510
|
(a) => {
|
|
8498
8511
|
if (o.current = a, a) {
|
|
8499
8512
|
const c = a.dataset.position;
|
|
@@ -8536,7 +8549,7 @@ const Ae = ({
|
|
|
8536
8549
|
loading: t,
|
|
8537
8550
|
setDisplayedUsers: r
|
|
8538
8551
|
}) => {
|
|
8539
|
-
const i =
|
|
8552
|
+
const i = q(null);
|
|
8540
8553
|
return Y(() => {
|
|
8541
8554
|
if (!n || !o || t)
|
|
8542
8555
|
return;
|
|
@@ -8558,7 +8571,7 @@ const Ae = ({
|
|
|
8558
8571
|
combobox: n,
|
|
8559
8572
|
dropdownRef: o
|
|
8560
8573
|
}) => {
|
|
8561
|
-
const [t, r] =
|
|
8574
|
+
const [t, r] = C(!1), [i, a] = C(!1), c = j(() => {
|
|
8562
8575
|
r(!0), n.openDropdown();
|
|
8563
8576
|
}, [n]), s = j(
|
|
8564
8577
|
(u) => {
|
|
@@ -8628,71 +8641,71 @@ const Ae = ({
|
|
|
8628
8641
|
hasMore: I = !1,
|
|
8629
8642
|
loading: h = !1
|
|
8630
8643
|
}) => {
|
|
8631
|
-
const g =
|
|
8644
|
+
const g = q(null), m = q(null), w = q(null), {
|
|
8632
8645
|
searchQuery: y,
|
|
8633
8646
|
setSearchQuery: S,
|
|
8634
8647
|
displayedUsers: M,
|
|
8635
8648
|
setDisplayedUsers: z,
|
|
8636
|
-
isSearching:
|
|
8649
|
+
isSearching: O
|
|
8637
8650
|
} = ni({
|
|
8638
8651
|
users: i,
|
|
8639
8652
|
onSearch: d,
|
|
8640
8653
|
debounceSearch: u,
|
|
8641
8654
|
debounceDelay: p
|
|
8642
|
-
}),
|
|
8655
|
+
}), k = rn({
|
|
8643
8656
|
onDropdownClose: () => {
|
|
8644
|
-
|
|
8657
|
+
k.resetSelectedOption(), S(""), E(!1);
|
|
8645
8658
|
},
|
|
8646
8659
|
onDropdownOpen: () => {
|
|
8647
|
-
|
|
8660
|
+
k.updateSelectedOptionIndex("active"), E(!0);
|
|
8648
8661
|
}
|
|
8649
8662
|
}), {
|
|
8650
|
-
isFocused:
|
|
8651
|
-
setIsFocused:
|
|
8663
|
+
isFocused: v,
|
|
8664
|
+
setIsFocused: E,
|
|
8652
8665
|
isHovered: L,
|
|
8653
8666
|
handleFocus: R,
|
|
8654
8667
|
handleBlur: F,
|
|
8655
|
-
handleMouseEnter:
|
|
8656
|
-
handleMouseLeave:
|
|
8668
|
+
handleMouseEnter: G,
|
|
8669
|
+
handleMouseLeave: Q
|
|
8657
8670
|
} = ii({
|
|
8658
|
-
combobox:
|
|
8671
|
+
combobox: k,
|
|
8659
8672
|
dropdownRef: w
|
|
8660
8673
|
}), { placement: V, dropdownRefCallback: N } = ri({
|
|
8661
|
-
isFocused:
|
|
8674
|
+
isFocused: v,
|
|
8662
8675
|
dropdownRef: w
|
|
8663
|
-
}), { selectedIds:
|
|
8676
|
+
}), { selectedIds: X, selectedUsers: H, sortedUsers: oe } = ti({
|
|
8664
8677
|
value: r,
|
|
8665
8678
|
multiple: s,
|
|
8666
8679
|
users: i,
|
|
8667
8680
|
displayedUsers: M,
|
|
8668
8681
|
searchQuery: y,
|
|
8669
8682
|
onSearch: d
|
|
8670
|
-
}), { loadMoreRef:
|
|
8683
|
+
}), { loadMoreRef: $ } = oi({
|
|
8671
8684
|
onLoadMore: f,
|
|
8672
8685
|
hasMore: I,
|
|
8673
8686
|
loading: h,
|
|
8674
8687
|
setDisplayedUsers: z
|
|
8675
|
-
}), { handleSelect:
|
|
8688
|
+
}), { handleSelect: Z, handleRemove: D } = ai({
|
|
8676
8689
|
multiple: s,
|
|
8677
8690
|
value: r,
|
|
8678
8691
|
onChange: a,
|
|
8679
|
-
combobox:
|
|
8680
|
-
}),
|
|
8692
|
+
combobox: k
|
|
8693
|
+
}), B = () => {
|
|
8681
8694
|
if (!s)
|
|
8682
8695
|
return null;
|
|
8683
|
-
const
|
|
8684
|
-
return /* @__PURE__ */
|
|
8696
|
+
const _ = 5, ge = H.slice(0, _), ie = H.length - _;
|
|
8697
|
+
return /* @__PURE__ */ x(A, { gap: "xs", children: [
|
|
8685
8698
|
ge.map((ze) => /* @__PURE__ */ e(
|
|
8686
8699
|
In,
|
|
8687
8700
|
{
|
|
8688
8701
|
avatar: ze.avatar,
|
|
8689
8702
|
name: ze.name,
|
|
8690
|
-
withRemoveButton:
|
|
8703
|
+
withRemoveButton: v,
|
|
8691
8704
|
onRemove: () => D(ze.id)
|
|
8692
8705
|
},
|
|
8693
8706
|
ze.id
|
|
8694
8707
|
)),
|
|
8695
|
-
ie > 0 && /* @__PURE__ */ e(xn, { ml: "xs", radius: "md", size: "md", bg: "transparent", children: /* @__PURE__ */
|
|
8708
|
+
ie > 0 && /* @__PURE__ */ e(xn, { ml: "xs", radius: "md", size: "md", bg: "transparent", children: /* @__PURE__ */ x(
|
|
8696
8709
|
A,
|
|
8697
8710
|
{
|
|
8698
8711
|
gap: "2px",
|
|
@@ -8710,7 +8723,7 @@ const Ae = ({
|
|
|
8710
8723
|
style: { color: "var(--mantine-color-blue-5)" }
|
|
8711
8724
|
}
|
|
8712
8725
|
),
|
|
8713
|
-
/* @__PURE__ */
|
|
8726
|
+
/* @__PURE__ */ x(T, { size: "sm", fw: 400, c: "var(--mantine-color-blue-5)", children: [
|
|
8714
8727
|
ie,
|
|
8715
8728
|
" more"
|
|
8716
8729
|
] })
|
|
@@ -8721,25 +8734,25 @@ const Ae = ({
|
|
|
8721
8734
|
}, U = () => {
|
|
8722
8735
|
if (s)
|
|
8723
8736
|
return null;
|
|
8724
|
-
const
|
|
8725
|
-
return
|
|
8726
|
-
}, P = () =>
|
|
8737
|
+
const _ = H[0];
|
|
8738
|
+
return _ ? /* @__PURE__ */ e(In, { avatar: _.avatar, name: _.name }) : null;
|
|
8739
|
+
}, P = () => v ? "var(--mantine-color-gray-2)" : "var(--mantine-color-gray-0)", K = () => ({
|
|
8727
8740
|
input: {
|
|
8728
|
-
position:
|
|
8729
|
-
zIndex:
|
|
8741
|
+
position: v ? "absolute" : "relative",
|
|
8742
|
+
zIndex: v ? 1e3 : 1,
|
|
8730
8743
|
fontWeight: "400",
|
|
8731
8744
|
color: "var(--mantine-color-gray-9)",
|
|
8732
8745
|
cursor: l ? "not-allowed" : "pointer",
|
|
8733
|
-
backgroundColor:
|
|
8734
|
-
border:
|
|
8735
|
-
borderRadius:
|
|
8746
|
+
backgroundColor: v || L ? "var(--mantine-color-gray-0)" : "transparent",
|
|
8747
|
+
border: v ? "1px solid var(--mantine-color-gray-2)" : "1px solid transparent",
|
|
8748
|
+
borderRadius: v && V === "bottom" ? "var(--mantine-radius-md) var(--mantine-radius-md) 0 0" : v && V === "top" ? "0 0 var(--mantine-radius-md) var(--mantine-radius-md)" : "var(--mantine-radius-md)",
|
|
8736
8749
|
paddingY: "6px",
|
|
8737
8750
|
display: "flex",
|
|
8738
8751
|
alignItems: "center",
|
|
8739
8752
|
padding: "6px 14px",
|
|
8740
8753
|
minHeight: "40px",
|
|
8741
8754
|
flexWrap: s ? "wrap" : "nowrap",
|
|
8742
|
-
boxShadow:
|
|
8755
|
+
boxShadow: v && V === "bottom" ? "0 -4px 10px 0 rgba(0, 0, 0, 0.1)" : v && V === "top" ? "0 4px 10px 0 rgba(0, 0, 0, 0.1)" : "none"
|
|
8743
8756
|
}
|
|
8744
8757
|
}), de = {
|
|
8745
8758
|
group: {
|
|
@@ -8764,60 +8777,60 @@ const Ae = ({
|
|
|
8764
8777
|
w: "100%",
|
|
8765
8778
|
h: 40,
|
|
8766
8779
|
p: "14px",
|
|
8767
|
-
children: H.map((
|
|
8780
|
+
children: H.map((_) => /* @__PURE__ */ e(
|
|
8768
8781
|
In,
|
|
8769
8782
|
{
|
|
8770
|
-
avatar:
|
|
8771
|
-
name:
|
|
8772
|
-
withRemoveButton:
|
|
8773
|
-
onRemove: () => D(
|
|
8783
|
+
avatar: _.avatar,
|
|
8784
|
+
name: _.name,
|
|
8785
|
+
withRemoveButton: v,
|
|
8786
|
+
onRemove: () => D(_.id)
|
|
8774
8787
|
},
|
|
8775
|
-
|
|
8788
|
+
_.id
|
|
8776
8789
|
))
|
|
8777
8790
|
}
|
|
8778
8791
|
),
|
|
8779
|
-
children: /* @__PURE__ */
|
|
8792
|
+
children: /* @__PURE__ */ x(
|
|
8780
8793
|
re,
|
|
8781
8794
|
{
|
|
8782
|
-
store:
|
|
8783
|
-
onOptionSubmit:
|
|
8795
|
+
store: k,
|
|
8796
|
+
onOptionSubmit: Z,
|
|
8784
8797
|
withinPortal: !1,
|
|
8785
8798
|
offset: -2,
|
|
8786
8799
|
children: [
|
|
8787
8800
|
/* @__PURE__ */ e(re.DropdownTarget, { children: /* @__PURE__ */ e(
|
|
8788
8801
|
Fn,
|
|
8789
8802
|
{
|
|
8790
|
-
onClick: () => !l &&
|
|
8803
|
+
onClick: () => !l && k.openDropdown(),
|
|
8791
8804
|
radius: "md",
|
|
8792
8805
|
disabled: l,
|
|
8793
|
-
styles:
|
|
8806
|
+
styles: K,
|
|
8794
8807
|
onFocus: R,
|
|
8795
8808
|
onBlur: F,
|
|
8796
|
-
onMouseEnter: () => !l &&
|
|
8797
|
-
onMouseLeave:
|
|
8809
|
+
onMouseEnter: () => !l && G(),
|
|
8810
|
+
onMouseLeave: Q,
|
|
8798
8811
|
w: "100%",
|
|
8799
|
-
children: /* @__PURE__ */
|
|
8812
|
+
children: /* @__PURE__ */ x(
|
|
8800
8813
|
xn.Group,
|
|
8801
8814
|
{
|
|
8802
8815
|
styles: de,
|
|
8803
8816
|
children: [
|
|
8804
|
-
s ?
|
|
8817
|
+
s ? B() : U(),
|
|
8805
8818
|
/* @__PURE__ */ e(re.EventsTarget, { children: /* @__PURE__ */ e(
|
|
8806
8819
|
Fn.Field,
|
|
8807
8820
|
{
|
|
8808
8821
|
ref: g,
|
|
8809
8822
|
onFocus: R,
|
|
8810
8823
|
onBlur: F,
|
|
8811
|
-
placeholder: H.length === 0 ||
|
|
8824
|
+
placeholder: H.length === 0 || v || y.length > 0 ? c : "",
|
|
8812
8825
|
value: y,
|
|
8813
|
-
onChange: (
|
|
8814
|
-
|
|
8826
|
+
onChange: (_) => {
|
|
8827
|
+
k.updateSelectedOptionIndex(), S(_.currentTarget.value);
|
|
8815
8828
|
},
|
|
8816
|
-
onMouseDown: (
|
|
8817
|
-
|
|
8829
|
+
onMouseDown: (_) => {
|
|
8830
|
+
_.stopPropagation();
|
|
8818
8831
|
},
|
|
8819
|
-
onKeyDown: (
|
|
8820
|
-
|
|
8832
|
+
onKeyDown: (_) => {
|
|
8833
|
+
_.key === "Backspace" && y.length === 0 && (_.preventDefault(), s && H.length > 0 ? D(
|
|
8821
8834
|
H[H.length - 1].id
|
|
8822
8835
|
) : !s && H.length > 0 && D(H[0].id));
|
|
8823
8836
|
},
|
|
@@ -8825,9 +8838,9 @@ const Ae = ({
|
|
|
8825
8838
|
disabled: l,
|
|
8826
8839
|
styles: {
|
|
8827
8840
|
field: {
|
|
8828
|
-
minWidth:
|
|
8829
|
-
width:
|
|
8830
|
-
flex:
|
|
8841
|
+
minWidth: v || y.length > 0 || H.length === 0 ? "60px" : "0px",
|
|
8842
|
+
width: v || y.length > 0 || H.length === 0 ? "auto" : "0px",
|
|
8843
|
+
flex: v || y.length > 0 || H.length === 0 ? "1" : "0",
|
|
8831
8844
|
border: "none",
|
|
8832
8845
|
outline: "none",
|
|
8833
8846
|
background: "transparent",
|
|
@@ -8839,11 +8852,11 @@ const Ae = ({
|
|
|
8839
8852
|
lineHeight: "24px",
|
|
8840
8853
|
display: "flex",
|
|
8841
8854
|
alignItems: "center",
|
|
8842
|
-
height:
|
|
8843
|
-
minHeight:
|
|
8855
|
+
height: v || y.length > 0 || H.length === 0 ? "auto" : "0px",
|
|
8856
|
+
minHeight: v || y.length > 0 || H.length === 0 ? "auto" : "0px",
|
|
8844
8857
|
"&::placeholder": {
|
|
8845
|
-
opacity: H.length === 0 ||
|
|
8846
|
-
display: H.length === 0 ||
|
|
8858
|
+
opacity: H.length === 0 || v || y.length > 0 ? 1 : 0,
|
|
8859
|
+
display: H.length === 0 || v || y.length > 0 ? "block" : "none",
|
|
8847
8860
|
color: "var(--mantine-color-gray-9)",
|
|
8848
8861
|
lineHeight: "24px"
|
|
8849
8862
|
}
|
|
@@ -8876,22 +8889,22 @@ const Ae = ({
|
|
|
8876
8889
|
ref: m,
|
|
8877
8890
|
h: Math.min(oe.length * parseFloat(ci), 300),
|
|
8878
8891
|
scrollbarSize: 6,
|
|
8879
|
-
children: /* @__PURE__ */
|
|
8880
|
-
oe.map((
|
|
8881
|
-
const ge =
|
|
8892
|
+
children: /* @__PURE__ */ x(W, { gap: 2, children: [
|
|
8893
|
+
oe.map((_) => {
|
|
8894
|
+
const ge = X.includes(_.id);
|
|
8882
8895
|
return /* @__PURE__ */ e(
|
|
8883
8896
|
re.Option,
|
|
8884
8897
|
{
|
|
8885
|
-
value:
|
|
8898
|
+
value: _.id,
|
|
8886
8899
|
active: ge,
|
|
8887
8900
|
onMouseDown: (ie) => {
|
|
8888
|
-
ie.preventDefault(),
|
|
8901
|
+
ie.preventDefault(), Z(_.id);
|
|
8889
8902
|
},
|
|
8890
8903
|
style: {
|
|
8891
8904
|
borderRadius: "var(--mantine-radius-md)",
|
|
8892
8905
|
height: "40px"
|
|
8893
8906
|
},
|
|
8894
|
-
children: /* @__PURE__ */
|
|
8907
|
+
children: /* @__PURE__ */ x(
|
|
8895
8908
|
A,
|
|
8896
8909
|
{
|
|
8897
8910
|
gap: "sm",
|
|
@@ -8905,13 +8918,13 @@ const Ae = ({
|
|
|
8905
8918
|
/* @__PURE__ */ e(
|
|
8906
8919
|
Oe,
|
|
8907
8920
|
{
|
|
8908
|
-
avatar:
|
|
8921
|
+
avatar: _.avatar,
|
|
8909
8922
|
size: 24,
|
|
8910
|
-
placeholder:
|
|
8923
|
+
placeholder: _.name,
|
|
8911
8924
|
showPlaceholder: !0
|
|
8912
8925
|
}
|
|
8913
8926
|
),
|
|
8914
|
-
/* @__PURE__ */ e(T, { size: "sm", fw: 400, truncate: !0, children:
|
|
8927
|
+
/* @__PURE__ */ e(T, { size: "sm", fw: 400, truncate: !0, children: _.name }),
|
|
8915
8928
|
ge && /* @__PURE__ */ e(
|
|
8916
8929
|
on,
|
|
8917
8930
|
{
|
|
@@ -8923,10 +8936,10 @@ const Ae = ({
|
|
|
8923
8936
|
}
|
|
8924
8937
|
)
|
|
8925
8938
|
},
|
|
8926
|
-
|
|
8939
|
+
_.id
|
|
8927
8940
|
);
|
|
8928
8941
|
}),
|
|
8929
|
-
(
|
|
8942
|
+
(O || h) && /* @__PURE__ */ e(
|
|
8930
8943
|
b,
|
|
8931
8944
|
{
|
|
8932
8945
|
style: {
|
|
@@ -8937,8 +8950,8 @@ const Ae = ({
|
|
|
8937
8950
|
children: /* @__PURE__ */ e(Se, { size: "sm" })
|
|
8938
8951
|
}
|
|
8939
8952
|
),
|
|
8940
|
-
f && I && !h && /* @__PURE__ */ e("div", { ref:
|
|
8941
|
-
oe.length === 0 && !
|
|
8953
|
+
f && I && !h && /* @__PURE__ */ e("div", { ref: $, style: { height: "20px" } }),
|
|
8954
|
+
oe.length === 0 && !O && !h && /* @__PURE__ */ e(
|
|
8942
8955
|
b,
|
|
8943
8956
|
{
|
|
8944
8957
|
style: {
|
|
@@ -8972,7 +8985,7 @@ const Ae = ({
|
|
|
8972
8985
|
maxRows: u,
|
|
8973
8986
|
autosize: p = !0
|
|
8974
8987
|
}) => {
|
|
8975
|
-
const [f, I] =
|
|
8988
|
+
const [f, I] = C(!1), [h, g] = C(!1), m = {
|
|
8976
8989
|
wrapper: {
|
|
8977
8990
|
...!p && {
|
|
8978
8991
|
height: "40px",
|
|
@@ -9036,7 +9049,12 @@ const Ae = ({
|
|
|
9036
9049
|
{
|
|
9037
9050
|
value: t,
|
|
9038
9051
|
onChange: (M) => {
|
|
9039
|
-
|
|
9052
|
+
const z = M.target.value;
|
|
9053
|
+
if (i) {
|
|
9054
|
+
i(z);
|
|
9055
|
+
return;
|
|
9056
|
+
}
|
|
9057
|
+
r == null || r(z);
|
|
9040
9058
|
},
|
|
9041
9059
|
onFocus: () => {
|
|
9042
9060
|
I(!0), a == null || a(!0);
|
|
@@ -9066,7 +9084,7 @@ const Ae = ({
|
|
|
9066
9084
|
onClose: o,
|
|
9067
9085
|
children: t,
|
|
9068
9086
|
...r
|
|
9069
|
-
}) => /* @__PURE__ */
|
|
9087
|
+
}) => /* @__PURE__ */ x(
|
|
9070
9088
|
Cn,
|
|
9071
9089
|
{
|
|
9072
9090
|
withCloseButton: !1,
|
|
@@ -9085,10 +9103,10 @@ const Ae = ({
|
|
|
9085
9103
|
padding: "md",
|
|
9086
9104
|
...r,
|
|
9087
9105
|
children: [
|
|
9088
|
-
/* @__PURE__ */
|
|
9106
|
+
/* @__PURE__ */ x(A, { justify: "space-between", wrap: "nowrap", children: [
|
|
9089
9107
|
/* @__PURE__ */ e(A, { justify: "space-between", wrap: "nowrap", gap: "xs", children: /* @__PURE__ */ e(he, { icon: Rn, size: "md", onClick: () => {
|
|
9090
9108
|
} }) }),
|
|
9091
|
-
/* @__PURE__ */
|
|
9109
|
+
/* @__PURE__ */ x(A, { justify: "space-between", gap: "xs", children: [
|
|
9092
9110
|
/* @__PURE__ */ e(he, { icon: wr, size: "md", onClick: () => {
|
|
9093
9111
|
} }),
|
|
9094
9112
|
/* @__PURE__ */ e(he, { icon: Pe, size: "md", onClick: () => {
|
|
@@ -9111,12 +9129,12 @@ const Ae = ({
|
|
|
9111
9129
|
propertiesProps: d
|
|
9112
9130
|
}) => {
|
|
9113
9131
|
var M, z;
|
|
9114
|
-
const [u, p] =
|
|
9132
|
+
const [u, p] = C(!1), f = (d == null ? void 0 : d.hiddenProperties) && d.hiddenProperties.length > 0, [I, h] = C(!1), [g, m] = C(
|
|
9115
9133
|
l == null ? void 0 : l.avatar
|
|
9116
|
-
), [w, y] =
|
|
9134
|
+
), [w, y] = C(!1);
|
|
9117
9135
|
return Y(() => {
|
|
9118
9136
|
m(l == null ? void 0 : l.avatar);
|
|
9119
|
-
}, [l == null ? void 0 : l.avatar]), /* @__PURE__ */
|
|
9137
|
+
}, [l == null ? void 0 : l.avatar]), /* @__PURE__ */ x(
|
|
9120
9138
|
On,
|
|
9121
9139
|
{
|
|
9122
9140
|
opened: n,
|
|
@@ -9130,8 +9148,8 @@ const Ae = ({
|
|
|
9130
9148
|
},
|
|
9131
9149
|
shadow: "none",
|
|
9132
9150
|
children: [
|
|
9133
|
-
/* @__PURE__ */
|
|
9134
|
-
/* @__PURE__ */
|
|
9151
|
+
/* @__PURE__ */ x(A, { justify: "space-between", wrap: "nowrap", children: [
|
|
9152
|
+
/* @__PURE__ */ x(A, { justify: "space-between", wrap: "nowrap", gap: "xs", children: [
|
|
9135
9153
|
/* @__PURE__ */ e(he, { icon: Ne, size: "md", onClick: o }),
|
|
9136
9154
|
/* @__PURE__ */ e(
|
|
9137
9155
|
he,
|
|
@@ -9144,8 +9162,8 @@ const Ae = ({
|
|
|
9144
9162
|
] }),
|
|
9145
9163
|
/* @__PURE__ */ e(A, { justify: "space-between", gap: "xs", children: s })
|
|
9146
9164
|
] }),
|
|
9147
|
-
/* @__PURE__ */
|
|
9148
|
-
l && /* @__PURE__ */
|
|
9165
|
+
/* @__PURE__ */ x(b, { p: "3rem", children: [
|
|
9166
|
+
l && /* @__PURE__ */ x(b, { children: [
|
|
9149
9167
|
/* @__PURE__ */ e(
|
|
9150
9168
|
b,
|
|
9151
9169
|
{
|
|
@@ -9160,9 +9178,9 @@ const Ae = ({
|
|
|
9160
9178
|
opened: w,
|
|
9161
9179
|
onOpen: () => y(!0),
|
|
9162
9180
|
onClose: () => y(!1),
|
|
9163
|
-
onAvatarSelect: (
|
|
9164
|
-
var
|
|
9165
|
-
m(
|
|
9181
|
+
onAvatarSelect: (O) => {
|
|
9182
|
+
var k;
|
|
9183
|
+
m(O), (k = l == null ? void 0 : l.onAvatarChange) == null || k.call(l, O);
|
|
9166
9184
|
},
|
|
9167
9185
|
onRemove: () => {
|
|
9168
9186
|
m(void 0);
|
|
@@ -9179,11 +9197,11 @@ const Ae = ({
|
|
|
9179
9197
|
color: "gray",
|
|
9180
9198
|
mb: "md",
|
|
9181
9199
|
onClick: () => {
|
|
9182
|
-
var
|
|
9183
|
-
const
|
|
9184
|
-
m(
|
|
9200
|
+
var k;
|
|
9201
|
+
const O = { type: "emoji", value: "😊" };
|
|
9202
|
+
m(O), (k = l == null ? void 0 : l.onAvatarChange) == null || k.call(l, O);
|
|
9185
9203
|
},
|
|
9186
|
-
children: /* @__PURE__ */
|
|
9204
|
+
children: /* @__PURE__ */ x(
|
|
9187
9205
|
b,
|
|
9188
9206
|
{
|
|
9189
9207
|
style: {
|
|
@@ -9206,9 +9224,9 @@ const Ae = ({
|
|
|
9206
9224
|
an,
|
|
9207
9225
|
{
|
|
9208
9226
|
value: l.title || "",
|
|
9209
|
-
onChange: (
|
|
9210
|
-
var
|
|
9211
|
-
return (
|
|
9227
|
+
onChange: (O) => {
|
|
9228
|
+
var k;
|
|
9229
|
+
return (k = l.onTitleChange) == null ? void 0 : k.call(l, O);
|
|
9212
9230
|
},
|
|
9213
9231
|
onDraftChange: l.onTitleDraftChange,
|
|
9214
9232
|
pageTitle: !0,
|
|
@@ -9226,7 +9244,7 @@ const Ae = ({
|
|
|
9226
9244
|
}
|
|
9227
9245
|
)
|
|
9228
9246
|
] }),
|
|
9229
|
-
/* @__PURE__ */ e(W, { gap: "sm", children: (M = d == null ? void 0 : d.visibleProperties) == null ? void 0 : M.map((
|
|
9247
|
+
/* @__PURE__ */ e(W, { gap: "sm", children: (M = d == null ? void 0 : d.visibleProperties) == null ? void 0 : M.map((O, k) => /* @__PURE__ */ e(b, { children: O }, k)) }),
|
|
9230
9248
|
f && !u && /* @__PURE__ */ e(b, { w: "100%", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(
|
|
9231
9249
|
ce,
|
|
9232
9250
|
{
|
|
@@ -9237,7 +9255,7 @@ const Ae = ({
|
|
|
9237
9255
|
px: "var(--mantine-spacing-sm)",
|
|
9238
9256
|
color: "gray.4",
|
|
9239
9257
|
onClick: () => p(!0),
|
|
9240
|
-
children: /* @__PURE__ */
|
|
9258
|
+
children: /* @__PURE__ */ x(
|
|
9241
9259
|
b,
|
|
9242
9260
|
{
|
|
9243
9261
|
style: {
|
|
@@ -9260,7 +9278,7 @@ const Ae = ({
|
|
|
9260
9278
|
)
|
|
9261
9279
|
}
|
|
9262
9280
|
) }),
|
|
9263
|
-
/* @__PURE__ */ e(rr, { in: u, children: /* @__PURE__ */ e(W, { gap: "sm", mt: "sm", children: (z = d == null ? void 0 : d.hiddenProperties) == null ? void 0 : z.map((
|
|
9281
|
+
/* @__PURE__ */ e(rr, { in: u, children: /* @__PURE__ */ e(W, { gap: "sm", mt: "sm", children: (z = d == null ? void 0 : d.hiddenProperties) == null ? void 0 : z.map((O, k) => /* @__PURE__ */ e(b, { children: O }, k)) }) }),
|
|
9264
9282
|
f && u && /* @__PURE__ */ e(
|
|
9265
9283
|
b,
|
|
9266
9284
|
{
|
|
@@ -9277,7 +9295,7 @@ const Ae = ({
|
|
|
9277
9295
|
px: "var(--mantine-spacing-sm)",
|
|
9278
9296
|
color: "gray.4",
|
|
9279
9297
|
onClick: () => p(!1),
|
|
9280
|
-
children: /* @__PURE__ */
|
|
9298
|
+
children: /* @__PURE__ */ x(
|
|
9281
9299
|
b,
|
|
9282
9300
|
{
|
|
9283
9301
|
style: {
|
|
@@ -9326,7 +9344,7 @@ const Ae = ({
|
|
|
9326
9344
|
] = Xe(!1), [
|
|
9327
9345
|
d,
|
|
9328
9346
|
{ open: u, close: p }
|
|
9329
|
-
] = Xe(!1), [f, I] =
|
|
9347
|
+
] = Xe(!1), [f, I] = C(300), [h, g] = C(500), m = {
|
|
9330
9348
|
opened: o,
|
|
9331
9349
|
toggle: t,
|
|
9332
9350
|
open: r,
|
|
@@ -9362,7 +9380,7 @@ const Ae = ({
|
|
|
9362
9380
|
sidebarWidth: s,
|
|
9363
9381
|
asideWidth: l
|
|
9364
9382
|
} = jt();
|
|
9365
|
-
return /* @__PURE__ */
|
|
9383
|
+
return /* @__PURE__ */ x(
|
|
9366
9384
|
We,
|
|
9367
9385
|
{
|
|
9368
9386
|
header: {
|
|
@@ -9443,7 +9461,7 @@ const Ae = ({
|
|
|
9443
9461
|
selectedTopNavId: d,
|
|
9444
9462
|
onTopNavSelect: u
|
|
9445
9463
|
}) => {
|
|
9446
|
-
const { opened: p, toggle: f } = jt(), [I, h] =
|
|
9464
|
+
const { opened: p, toggle: f } = jt(), [I, h] = C(o), g = o ?? I;
|
|
9447
9465
|
return /* @__PURE__ */ e(
|
|
9448
9466
|
ui,
|
|
9449
9467
|
{
|
|
@@ -9462,7 +9480,7 @@ const Ae = ({
|
|
|
9462
9480
|
withBorder: !0,
|
|
9463
9481
|
bg: "transparent",
|
|
9464
9482
|
position: "left",
|
|
9465
|
-
header: /* @__PURE__ */
|
|
9483
|
+
header: /* @__PURE__ */ x(A, { h: 40, w: "100%", justify: "space-between", wrap: "nowrap", children: [
|
|
9466
9484
|
/* @__PURE__ */ e(A, { gap: "xs", wrap: "nowrap", children: p && /* @__PURE__ */ e(T, { fw: 600, size: "sm", children: s }) }),
|
|
9467
9485
|
/* @__PURE__ */ e(
|
|
9468
9486
|
he,
|
|
@@ -9508,7 +9526,7 @@ const Ae = ({
|
|
|
9508
9526
|
}
|
|
9509
9527
|
),
|
|
9510
9528
|
aside: /* @__PURE__ */ e(b, { p: "md", h: "100%", children: c == null ? void 0 : c(g) }),
|
|
9511
|
-
children: /* @__PURE__ */
|
|
9529
|
+
children: /* @__PURE__ */ x(
|
|
9512
9530
|
b,
|
|
9513
9531
|
{
|
|
9514
9532
|
style: {
|
|
@@ -9518,8 +9536,8 @@ const Ae = ({
|
|
|
9518
9536
|
background: "var(--mantine-color-body)"
|
|
9519
9537
|
},
|
|
9520
9538
|
children: [
|
|
9521
|
-
/* @__PURE__ */
|
|
9522
|
-
/* @__PURE__ */
|
|
9539
|
+
/* @__PURE__ */ x(A, { p: "md", justify: "space-between", align: "center", children: [
|
|
9540
|
+
/* @__PURE__ */ x(A, { gap: "xs", wrap: "nowrap", children: [
|
|
9523
9541
|
!p && /* @__PURE__ */ e(
|
|
9524
9542
|
he,
|
|
9525
9543
|
{
|
|
@@ -9590,7 +9608,7 @@ const Ae = ({
|
|
|
9590
9608
|
[o, n]
|
|
9591
9609
|
);
|
|
9592
9610
|
return {
|
|
9593
|
-
availableMembersUsers:
|
|
9611
|
+
availableMembersUsers: J(() => {
|
|
9594
9612
|
const a = [...o.members];
|
|
9595
9613
|
return n.users.forEach((c) => {
|
|
9596
9614
|
a.find((s) => s.id === c.id) || a.push(c);
|
|
@@ -9617,7 +9635,7 @@ const Ae = ({
|
|
|
9617
9635
|
availableMembersUsers: f,
|
|
9618
9636
|
handleResponsibleChange: I,
|
|
9619
9637
|
handleMembersChange: h
|
|
9620
|
-
} = Ft(d, u), g =
|
|
9638
|
+
} = Ft(d, u), g = J(
|
|
9621
9639
|
() => [
|
|
9622
9640
|
/* @__PURE__ */ e(
|
|
9623
9641
|
At,
|
|
@@ -9722,20 +9740,20 @@ const Ae = ({
|
|
|
9722
9740
|
children: c,
|
|
9723
9741
|
footer: s
|
|
9724
9742
|
}) => {
|
|
9725
|
-
const [l, d] =
|
|
9743
|
+
const [l, d] = C(
|
|
9726
9744
|
i == null ? void 0 : i.avatar
|
|
9727
|
-
), [u, p] =
|
|
9745
|
+
), [u, p] = C(!1), [f, I] = C(!1), h = o ? "0" : {
|
|
9728
9746
|
base: "1rem",
|
|
9729
9747
|
sm: "2rem",
|
|
9730
9748
|
md: "4rem",
|
|
9731
9749
|
lg: "8rem",
|
|
9732
9750
|
xl: "10rem"
|
|
9733
|
-
}, [g, m] =
|
|
9751
|
+
}, [g, m] = C(n);
|
|
9734
9752
|
return Y(() => {
|
|
9735
9753
|
m(n);
|
|
9736
|
-
}, [n]), /* @__PURE__ */
|
|
9737
|
-
/* @__PURE__ */
|
|
9738
|
-
/* @__PURE__ */
|
|
9754
|
+
}, [n]), /* @__PURE__ */ x(W, { gap: "md", p: "md", children: [
|
|
9755
|
+
/* @__PURE__ */ x(A, { justify: "space-between", children: [
|
|
9756
|
+
/* @__PURE__ */ x(A, { gap: 4, wrap: "nowrap", children: [
|
|
9739
9757
|
/* @__PURE__ */ e(
|
|
9740
9758
|
he,
|
|
9741
9759
|
{
|
|
@@ -9756,8 +9774,8 @@ const Ae = ({
|
|
|
9756
9774
|
] }),
|
|
9757
9775
|
/* @__PURE__ */ e(b, { children: r })
|
|
9758
9776
|
] }),
|
|
9759
|
-
/* @__PURE__ */ e(b, { px: h, w: "100%", maw: { base: "100%", md: "80vw" }, mx: "auto", children: /* @__PURE__ */
|
|
9760
|
-
i && /* @__PURE__ */
|
|
9777
|
+
/* @__PURE__ */ e(b, { px: h, w: "100%", maw: { base: "100%", md: "80vw" }, mx: "auto", children: /* @__PURE__ */ x(W, { gap: "md", children: [
|
|
9778
|
+
i && /* @__PURE__ */ x(W, { gap: "md", children: [
|
|
9761
9779
|
/* @__PURE__ */ e(
|
|
9762
9780
|
b,
|
|
9763
9781
|
{
|
|
@@ -9799,7 +9817,7 @@ const Ae = ({
|
|
|
9799
9817
|
};
|
|
9800
9818
|
d(y), (S = i == null ? void 0 : i.onAvatarChange) == null || S.call(i, y);
|
|
9801
9819
|
},
|
|
9802
|
-
children: /* @__PURE__ */
|
|
9820
|
+
children: /* @__PURE__ */ x(
|
|
9803
9821
|
b,
|
|
9804
9822
|
{
|
|
9805
9823
|
style: {
|
|
@@ -9858,7 +9876,7 @@ const Ae = ({
|
|
|
9858
9876
|
handleResponsibleChange: c,
|
|
9859
9877
|
handleMembersChange: s
|
|
9860
9878
|
} = Ft(r, i);
|
|
9861
|
-
return /* @__PURE__ */
|
|
9879
|
+
return /* @__PURE__ */ x(W, { gap: "sm", children: [
|
|
9862
9880
|
/* @__PURE__ */ e(
|
|
9863
9881
|
At,
|
|
9864
9882
|
{
|
|
@@ -9936,7 +9954,7 @@ const Ae = ({
|
|
|
9936
9954
|
title: n,
|
|
9937
9955
|
properties: o,
|
|
9938
9956
|
children: t
|
|
9939
|
-
}) => /* @__PURE__ */
|
|
9957
|
+
}) => /* @__PURE__ */ x(W, { gap: "sm", p: "3rem", children: [
|
|
9940
9958
|
/* @__PURE__ */ e(T, { size: "2.5rem", fw: 600, children: n }),
|
|
9941
9959
|
/* @__PURE__ */ e(Ee, { h: "md" }),
|
|
9942
9960
|
/* @__PURE__ */ e(W, { gap: "xs", children: o }),
|
|
@@ -9956,9 +9974,9 @@ const Ae = ({
|
|
|
9956
9974
|
footer: u
|
|
9957
9975
|
}) => {
|
|
9958
9976
|
var S, M;
|
|
9959
|
-
const [p, f] =
|
|
9977
|
+
const [p, f] = C(
|
|
9960
9978
|
s == null ? void 0 : s.avatar
|
|
9961
|
-
), [I, h] =
|
|
9979
|
+
), [I, h] = C(!1), [g, m] = C(!1);
|
|
9962
9980
|
Y(() => {
|
|
9963
9981
|
f(s == null ? void 0 : s.avatar);
|
|
9964
9982
|
}, [s == null ? void 0 : s.avatar]);
|
|
@@ -9977,17 +9995,17 @@ const Ae = ({
|
|
|
9977
9995
|
},
|
|
9978
9996
|
shadow: "none",
|
|
9979
9997
|
trapFocus: !1,
|
|
9980
|
-
children: /* @__PURE__ */
|
|
9981
|
-
/* @__PURE__ */
|
|
9982
|
-
/* @__PURE__ */
|
|
9998
|
+
children: /* @__PURE__ */ x(W, { gap: "md", children: [
|
|
9999
|
+
/* @__PURE__ */ x(A, { justify: "space-between", children: [
|
|
10000
|
+
/* @__PURE__ */ x(A, { gap: "xs", wrap: "nowrap", children: [
|
|
9983
10001
|
/* @__PURE__ */ e(Be, { icon: Ne, onClick: o }),
|
|
9984
10002
|
/* @__PURE__ */ e(Be, { icon: Rn, onClick: () => i() })
|
|
9985
10003
|
] }),
|
|
9986
10004
|
" ",
|
|
9987
10005
|
/* @__PURE__ */ e(b, { children: c })
|
|
9988
10006
|
] }),
|
|
9989
|
-
/* @__PURE__ */ e(b, { p: "3rem", w: "100%", children: /* @__PURE__ */
|
|
9990
|
-
s && /* @__PURE__ */
|
|
10007
|
+
/* @__PURE__ */ e(b, { p: "3rem", w: "100%", children: /* @__PURE__ */ x(W, { gap: "md", children: [
|
|
10008
|
+
s && /* @__PURE__ */ x(b, { children: [
|
|
9991
10009
|
" ",
|
|
9992
10010
|
/* @__PURE__ */ e(
|
|
9993
10011
|
b,
|
|
@@ -10005,8 +10023,8 @@ const Ae = ({
|
|
|
10005
10023
|
onOpen: () => h(!0),
|
|
10006
10024
|
onClose: () => h(!1),
|
|
10007
10025
|
onAvatarSelect: (z) => {
|
|
10008
|
-
var
|
|
10009
|
-
f(z), (
|
|
10026
|
+
var O;
|
|
10027
|
+
f(z), (O = s == null ? void 0 : s.onAvatarChange) == null || O.call(s, z);
|
|
10010
10028
|
},
|
|
10011
10029
|
onRemove: () => {
|
|
10012
10030
|
f(void 0);
|
|
@@ -10023,14 +10041,14 @@ const Ae = ({
|
|
|
10023
10041
|
color: "gray",
|
|
10024
10042
|
mb: "md",
|
|
10025
10043
|
onClick: () => {
|
|
10026
|
-
var
|
|
10044
|
+
var O;
|
|
10027
10045
|
const z = {
|
|
10028
10046
|
type: "emoji",
|
|
10029
10047
|
value: "😊"
|
|
10030
10048
|
};
|
|
10031
|
-
f(z), (
|
|
10049
|
+
f(z), (O = s == null ? void 0 : s.onAvatarChange) == null || O.call(s, z);
|
|
10032
10050
|
},
|
|
10033
|
-
children: /* @__PURE__ */
|
|
10051
|
+
children: /* @__PURE__ */ x(
|
|
10034
10052
|
b,
|
|
10035
10053
|
{
|
|
10036
10054
|
style: {
|
|
@@ -10054,8 +10072,8 @@ const Ae = ({
|
|
|
10054
10072
|
{
|
|
10055
10073
|
value: s.title || "",
|
|
10056
10074
|
onChange: (z) => {
|
|
10057
|
-
var
|
|
10058
|
-
return (
|
|
10075
|
+
var O;
|
|
10076
|
+
return (O = s.onTitleChange) == null ? void 0 : O.call(s, z);
|
|
10059
10077
|
},
|
|
10060
10078
|
onDraftChange: s.onTitleDraftChange,
|
|
10061
10079
|
pageTitle: !0,
|
|
@@ -10123,7 +10141,7 @@ function Yi({
|
|
|
10123
10141
|
children: n,
|
|
10124
10142
|
theme: o
|
|
10125
10143
|
}) {
|
|
10126
|
-
return /* @__PURE__ */
|
|
10144
|
+
return /* @__PURE__ */ x(ir, { theme: o || gi, children: [
|
|
10127
10145
|
/* @__PURE__ */ e(kr, {}),
|
|
10128
10146
|
/* @__PURE__ */ e(Cr, { children: /* @__PURE__ */ e(Or, { settings: { firstDayOfWeek: 0 }, children: n }) })
|
|
10129
10147
|
] });
|