obeyaka-ui 0.1.26 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +618 -605
- package/dist/index.js +2 -2
- package/dist/types/components/organisms/Property/TextareaProperty/TextareaProperty.d.ts.map +1 -1
- package/dist/types/components/organisms/Property/TextareaProperty/TextareaProperty.types.d.ts +2 -0
- package/dist/types/components/organisms/Property/TextareaProperty/TextareaProperty.types.d.ts.map +1 -1
- package/dist/types/layouts/SidePeekLayout/SidePeekLayout.d.ts.map +1 -1
- package/dist/types/layouts/SidePeekLayout/SidePeekLayout.types.d.ts +6 -2
- package/dist/types/layouts/SidePeekLayout/SidePeekLayout.types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as v, Fragment as me } from "react/jsx-runtime";
|
|
2
|
-
import be, { useState as
|
|
3
|
-
import { ActionIcon as le, Tooltip as Ue, Box as b, Skeleton as
|
|
4
|
-
import { IconQuestionMark as He, IconSearch as
|
|
2
|
+
import be, { useState as O, useCallback as j, useMemo as K, memo as Mn, useRef as Z, useEffect as Y, useLayoutEffect as Qn, Suspense as Zt, forwardRef as qt, useImperativeHandle as Xt, createContext as Yn, useContext as Zn } from "react";
|
|
3
|
+
import { ActionIcon as le, Tooltip as Ue, Box as b, Skeleton as vn, Loader as Se, Text as T, Group as A, InputWrapper as qn, Input as Kt, Textarea as Sn, TextInput as kn, useCombobox as rn, Combobox as re, Indicator as Xn, MenuItem as Kn, Menu as pe, Stack as W, Pill as xn, Popover as je, LoadingOverlay as Jt, Button as ce, Table as we, Badge as Ke, Tabs as fe, ScrollArea as ke, Flex as Jn, Avatar as et, TagsInput as er, Radio as nr, Space as Ee, Modal as Cn, FocusTrap as nt, Drawer as On, Alert as tr, Anchor as tt, PillsInput as Fn, Collapse as rr, AppShell as We, createTheme as or, MantineProvider as ir } from "@mantine/core";
|
|
4
|
+
import { IconQuestionMark as He, IconSearch as zn, IconX as rt, IconFilter as ot, IconFilterOff as ar, IconChevronDown as Ce, IconChevronRight as Je, IconPlus as Te, IconDots as Pe, IconCheck as on, IconChevronUp as Ve, IconClock as it, IconMoodSmile as qe, IconFlag as cr, IconHeart as sr, IconBulb as lr, IconPlane as Un, IconBallBasketball as dr, IconApple as ur, IconTrees as at, IconUser as Dn, IconBriefcase as fr, IconDeviceDesktop as hr, IconCircle as pr, IconTool as mr, IconMessage as gr, IconPhoto as Nn, IconArchive as wn, IconBell as Ir, IconInbox as yr, IconChecklist as gn, IconChevronsLeft as ct, IconPointFilled as vr, IconPoint as xr, IconChevronLeft as Wn, IconMaximize as Rn, IconStar as wr, IconChevronsRight as Ne, IconMoodSmileFilled as Tn, IconAlignLeft as st, IconUserCircle as lt, IconUsers as dt, IconMenu2 as $n } from "@tabler/icons-react";
|
|
5
5
|
import en from "@emoji-mart/data";
|
|
6
6
|
import { init as br, SearchIndex as Mr } from "emoji-mart";
|
|
7
7
|
import { useDisclosure as Xe, useMediaQuery as Sr } from "@mantine/hooks";
|
|
@@ -28,7 +28,7 @@ const he = be.memo(
|
|
|
28
28
|
onMouseLeave: g,
|
|
29
29
|
...m
|
|
30
30
|
}) => {
|
|
31
|
-
const [w, y] =
|
|
31
|
+
const [w, y] = O(!1), S = j(() => {
|
|
32
32
|
l || d || (n == null || n(), console.log("Clicked"));
|
|
33
33
|
}, [l, d, n]), M = K(() => ({
|
|
34
34
|
xs: 14,
|
|
@@ -36,18 +36,18 @@ const he = be.memo(
|
|
|
36
36
|
md: 20,
|
|
37
37
|
lg: 24,
|
|
38
38
|
xl: 28
|
|
39
|
-
})[a] || 20, [a]),
|
|
39
|
+
})[a] || 20, [a]), z = K(() => ({
|
|
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]), k = j(
|
|
46
46
|
(F) => {
|
|
47
47
|
y(!0), h == null || h(F);
|
|
48
48
|
},
|
|
49
49
|
[h]
|
|
50
|
-
),
|
|
50
|
+
), C = j(
|
|
51
51
|
(F) => {
|
|
52
52
|
y(!1), g == null || g(F);
|
|
53
53
|
},
|
|
@@ -62,11 +62,11 @@ const he = be.memo(
|
|
|
62
62
|
B,
|
|
63
63
|
{
|
|
64
64
|
size: M,
|
|
65
|
-
strokeWidth:
|
|
65
|
+
strokeWidth: z,
|
|
66
66
|
color: i
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
[B, M,
|
|
69
|
+
[B, M, z, i]
|
|
70
70
|
), R = /* @__PURE__ */ e(
|
|
71
71
|
le,
|
|
72
72
|
{
|
|
@@ -78,8 +78,8 @@ const he = be.memo(
|
|
|
78
78
|
size: a,
|
|
79
79
|
disabled: l || d,
|
|
80
80
|
loading: d,
|
|
81
|
-
onMouseEnter:
|
|
82
|
-
onMouseLeave:
|
|
81
|
+
onMouseEnter: k,
|
|
82
|
+
onMouseLeave: C,
|
|
83
83
|
"aria-label": p || u,
|
|
84
84
|
className: f,
|
|
85
85
|
style: I,
|
|
@@ -232,9 +232,9 @@ const Er = async (n) => {
|
|
|
232
232
|
} catch {
|
|
233
233
|
return Me.set(n, He), He;
|
|
234
234
|
}
|
|
235
|
-
}, Br = (n) => n.replace(/^Icon/, "").replace(/([A-Z])/g, " $1").trim().toLowerCase().replace(/^./, (t) => t.toUpperCase()),
|
|
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] = O(null), [a, c] = O(!0), s = Z(null), l = Z(!0);
|
|
238
238
|
Y(() => (l.current = !0, (async () => {
|
|
239
239
|
try {
|
|
240
240
|
const f = (await import("@tabler/icons-react"))[n];
|
|
@@ -262,7 +262,7 @@ const Er = async (n) => {
|
|
|
262
262
|
border: "none",
|
|
263
263
|
borderRadius: "var(--mantine-radius-sm)"
|
|
264
264
|
},
|
|
265
|
-
children: /* @__PURE__ */ e(
|
|
265
|
+
children: /* @__PURE__ */ e(vn, { width: t, height: t })
|
|
266
266
|
}
|
|
267
267
|
) : /* @__PURE__ */ e(
|
|
268
268
|
Ue,
|
|
@@ -311,8 +311,8 @@ const Er = async (n) => {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
);
|
|
314
|
-
|
|
315
|
-
const
|
|
314
|
+
ut.displayName = "IconButton";
|
|
315
|
+
const ft = Mn(
|
|
316
316
|
({
|
|
317
317
|
iconName: n,
|
|
318
318
|
size: o = "lg",
|
|
@@ -323,7 +323,7 @@ const ut = bn(
|
|
|
323
323
|
onMouseEnter: c,
|
|
324
324
|
onMouseLeave: s
|
|
325
325
|
}) => {
|
|
326
|
-
const [l, d] =
|
|
326
|
+
const [l, d] = O(!1), [u, p] = O(() => Me.get(n) || null), f = Re(o), I = Math.round(f * 0.9);
|
|
327
327
|
Y(() => {
|
|
328
328
|
if (Me.has(n)) {
|
|
329
329
|
p(() => Me.get(n));
|
|
@@ -401,7 +401,7 @@ const ut = bn(
|
|
|
401
401
|
);
|
|
402
402
|
}
|
|
403
403
|
);
|
|
404
|
-
|
|
404
|
+
ft.displayName = "IconAvatar";
|
|
405
405
|
const Ar = (n) => {
|
|
406
406
|
const o = {
|
|
407
407
|
xs: { width: 28, height: 28 },
|
|
@@ -461,7 +461,7 @@ const Ar = (n) => {
|
|
|
461
461
|
// Disable all pointer events on the icon wrapper
|
|
462
462
|
},
|
|
463
463
|
children: /* @__PURE__ */ e(
|
|
464
|
-
|
|
464
|
+
ft,
|
|
465
465
|
{
|
|
466
466
|
iconName: n,
|
|
467
467
|
size: c.width,
|
|
@@ -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] = O(!1), u = jr(o), p = t && r, f = () => {
|
|
499
499
|
d(!0);
|
|
500
500
|
}, I = () => {
|
|
501
501
|
d(!1);
|
|
@@ -572,7 +572,7 @@ const Ar = (n) => {
|
|
|
572
572
|
height: n,
|
|
573
573
|
fontSize: n * 0.5
|
|
574
574
|
} : o[n];
|
|
575
|
-
},
|
|
575
|
+
}, bn = ({
|
|
576
576
|
text: n = "?",
|
|
577
577
|
size: o = "lg",
|
|
578
578
|
editable: t = !1,
|
|
@@ -701,7 +701,7 @@ const Ar = (n) => {
|
|
|
701
701
|
if (c) {
|
|
702
702
|
const p = s ? Nr(s) : "?";
|
|
703
703
|
return /* @__PURE__ */ e(
|
|
704
|
-
|
|
704
|
+
bn,
|
|
705
705
|
{
|
|
706
706
|
text: p,
|
|
707
707
|
size: o,
|
|
@@ -714,7 +714,7 @@ const Ar = (n) => {
|
|
|
714
714
|
};
|
|
715
715
|
if (t)
|
|
716
716
|
return /* @__PURE__ */ e(
|
|
717
|
-
|
|
717
|
+
bn,
|
|
718
718
|
{
|
|
719
719
|
size: o,
|
|
720
720
|
loading: !0,
|
|
@@ -724,12 +724,12 @@ const Ar = (n) => {
|
|
|
724
724
|
);
|
|
725
725
|
const u = d();
|
|
726
726
|
return u ? /* @__PURE__ */ e("div", { className: i, style: a, children: u }) : null;
|
|
727
|
-
},
|
|
727
|
+
}, En = ({
|
|
728
728
|
label: n,
|
|
729
729
|
onClick: o,
|
|
730
730
|
isActive: t = !1
|
|
731
731
|
}) => {
|
|
732
|
-
const [r, i] =
|
|
732
|
+
const [r, i] = O(!1);
|
|
733
733
|
return /* @__PURE__ */ e(
|
|
734
734
|
b,
|
|
735
735
|
{
|
|
@@ -838,11 +838,11 @@ const Ar = (n) => {
|
|
|
838
838
|
},
|
|
839
839
|
...m
|
|
840
840
|
}) => {
|
|
841
|
-
const [w, y] =
|
|
841
|
+
const [w, y] = O(!1), [S, M] = O(n), [z, k] = O(!1);
|
|
842
842
|
Y(() => {
|
|
843
|
-
g(
|
|
844
|
-
}, [
|
|
845
|
-
const
|
|
843
|
+
g(z);
|
|
844
|
+
}, [z, g]);
|
|
845
|
+
const C = Z(null), x = {
|
|
846
846
|
fontSize: "40px",
|
|
847
847
|
fontWeight: 700,
|
|
848
848
|
color: "var(--mantine-color-gray-9)",
|
|
@@ -856,14 +856,14 @@ const Ar = (n) => {
|
|
|
856
856
|
M(n);
|
|
857
857
|
}, [n]);
|
|
858
858
|
const B = () => {
|
|
859
|
-
a || (y(!0), I &&
|
|
859
|
+
a || (y(!0), I && C.current && C.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
865
|
var $, H;
|
|
866
|
-
N.key === "Enter" ? (y(!1), t(S), ($ =
|
|
866
|
+
N.key === "Enter" ? (y(!1), t(S), ($ = C.current) == null || $.blur()) : N.key === "Escape" && (M(n), y(!1), (H = C.current) == null || H.blur());
|
|
867
867
|
}, Q = {
|
|
868
868
|
cursor: a ? "not-allowed" : "text"
|
|
869
869
|
}, _ = {
|
|
@@ -873,14 +873,14 @@ const Ar = (n) => {
|
|
|
873
873
|
transition: "border-color 0.2s ease-in-out, border-width 0.2s ease-in-out",
|
|
874
874
|
color: "var(--mantine-color-gray-9)"
|
|
875
875
|
}, V = () => h ? { ..._, ...x } : _;
|
|
876
|
-
return /* @__PURE__ */ e(
|
|
876
|
+
return /* @__PURE__ */ e(qn, { label: o, size: s, children: /* @__PURE__ */ e(
|
|
877
877
|
Kt,
|
|
878
878
|
{
|
|
879
|
-
ref:
|
|
879
|
+
ref: C,
|
|
880
880
|
value: S,
|
|
881
881
|
onChange: R,
|
|
882
|
-
onMouseEnter: () =>
|
|
883
|
-
onMouseLeave: () =>
|
|
882
|
+
onMouseEnter: () => k(!0),
|
|
883
|
+
onMouseLeave: () => k(!1),
|
|
884
884
|
onFocus: B,
|
|
885
885
|
onBlur: L,
|
|
886
886
|
onKeyDown: F,
|
|
@@ -922,13 +922,13 @@ const Ar = (n) => {
|
|
|
922
922
|
pageTitle: y = !1,
|
|
923
923
|
...S
|
|
924
924
|
}) => {
|
|
925
|
-
const [M,
|
|
925
|
+
const [M, z] = O(!1), [k, C] = O(n), [x, B] = O(!1);
|
|
926
926
|
Y(() => {
|
|
927
927
|
w(x);
|
|
928
928
|
}, [x, w]);
|
|
929
929
|
const L = Z(null);
|
|
930
930
|
Y(() => {
|
|
931
|
-
|
|
931
|
+
C(n);
|
|
932
932
|
}, [n]);
|
|
933
933
|
const R = () => {
|
|
934
934
|
const J = L.current;
|
|
@@ -938,16 +938,16 @@ const Ar = (n) => {
|
|
|
938
938
|
m && R();
|
|
939
939
|
}, [m]), Y(() => {
|
|
940
940
|
m && R();
|
|
941
|
-
}, [
|
|
941
|
+
}, [k, m]);
|
|
942
942
|
const F = () => {
|
|
943
|
-
a || (
|
|
943
|
+
a || (z(!0), m && requestAnimationFrame(() => R()), I && L.current && L.current.select());
|
|
944
944
|
}, Q = () => {
|
|
945
|
-
|
|
945
|
+
z(!1), k !== n && t(k);
|
|
946
946
|
}, _ = (J) => {
|
|
947
|
-
|
|
947
|
+
C(J.target.value), r == null || r(J.target.value);
|
|
948
948
|
}, V = (J) => {
|
|
949
949
|
var q;
|
|
950
|
-
J.key === "Escape" && (
|
|
950
|
+
J.key === "Escape" && (C(n), z(!1), (q = L.current) == null || q.blur());
|
|
951
951
|
}, N = {
|
|
952
952
|
cursor: a ? "not-allowed" : "text"
|
|
953
953
|
}, $ = {
|
|
@@ -969,18 +969,18 @@ const Ar = (n) => {
|
|
|
969
969
|
lineHeight: "3rem"
|
|
970
970
|
}, oe = () => y ? { ...$, ...H } : $;
|
|
971
971
|
return /* @__PURE__ */ e(
|
|
972
|
-
|
|
972
|
+
qn,
|
|
973
973
|
{
|
|
974
974
|
label: o,
|
|
975
975
|
c: "var(--mantine-color-gray-9)",
|
|
976
976
|
size: s,
|
|
977
977
|
children: /* @__PURE__ */ e(
|
|
978
|
-
|
|
978
|
+
Sn,
|
|
979
979
|
{
|
|
980
980
|
w: "100%",
|
|
981
981
|
radius: "var(--mantine-radius-md)",
|
|
982
982
|
ref: L,
|
|
983
|
-
value:
|
|
983
|
+
value: k,
|
|
984
984
|
onChange: _,
|
|
985
985
|
onMouseEnter: () => B(!0),
|
|
986
986
|
onMouseLeave: () => B(!1),
|
|
@@ -1028,7 +1028,7 @@ const Ar = (n) => {
|
|
|
1028
1028
|
} : {
|
|
1029
1029
|
height: 28,
|
|
1030
1030
|
iconSize: 20
|
|
1031
|
-
}, [p, f] =
|
|
1031
|
+
}, [p, f] = O(!1), I = p && o && !a ? /* @__PURE__ */ e(
|
|
1032
1032
|
o,
|
|
1033
1033
|
{
|
|
1034
1034
|
size: u(t).iconSize,
|
|
@@ -1072,7 +1072,7 @@ const Ar = (n) => {
|
|
|
1072
1072
|
disabled: s = !1,
|
|
1073
1073
|
className: l
|
|
1074
1074
|
}) => {
|
|
1075
|
-
const [d, u] =
|
|
1075
|
+
const [d, u] = O(!1), [p, f] = O(!1), [I, h] = O(t), g = Z(null), m = Z(null);
|
|
1076
1076
|
Y(() => {
|
|
1077
1077
|
h(t);
|
|
1078
1078
|
}, [t]), Y(() => {
|
|
@@ -1097,9 +1097,9 @@ const Ar = (n) => {
|
|
|
1097
1097
|
h(B), r == null || r(B);
|
|
1098
1098
|
}, M = (x) => {
|
|
1099
1099
|
x.key === "Enter" && (i == null || i(I)), x.key === "Escape" && w();
|
|
1100
|
-
},
|
|
1100
|
+
}, z = () => {
|
|
1101
1101
|
h(""), r == null || r(""), a == null || a(), w();
|
|
1102
|
-
},
|
|
1102
|
+
}, C = (() => {
|
|
1103
1103
|
switch (c) {
|
|
1104
1104
|
case "sm":
|
|
1105
1105
|
return {
|
|
@@ -1150,8 +1150,8 @@ const Ar = (n) => {
|
|
|
1150
1150
|
display: "flex",
|
|
1151
1151
|
alignItems: "center",
|
|
1152
1152
|
justifyContent: "center",
|
|
1153
|
-
width:
|
|
1154
|
-
height:
|
|
1153
|
+
width: C.inputHeight,
|
|
1154
|
+
height: C.inputHeight,
|
|
1155
1155
|
cursor: s ? "not-allowed" : "pointer",
|
|
1156
1156
|
borderRadius: "var(--mantine-radius-md)",
|
|
1157
1157
|
transition: "background-color 0.2s ease",
|
|
@@ -1164,9 +1164,9 @@ const Ar = (n) => {
|
|
|
1164
1164
|
x.currentTarget.style.backgroundColor = "transparent";
|
|
1165
1165
|
},
|
|
1166
1166
|
children: /* @__PURE__ */ e(
|
|
1167
|
-
|
|
1167
|
+
zn,
|
|
1168
1168
|
{
|
|
1169
|
-
size:
|
|
1169
|
+
size: C.iconSize,
|
|
1170
1170
|
color: "var(--mantine-color-gray-6)",
|
|
1171
1171
|
strokeWidth: 2.3
|
|
1172
1172
|
}
|
|
@@ -1174,7 +1174,7 @@ const Ar = (n) => {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
),
|
|
1176
1176
|
d && /* @__PURE__ */ e(
|
|
1177
|
-
|
|
1177
|
+
kn,
|
|
1178
1178
|
{
|
|
1179
1179
|
ref: g,
|
|
1180
1180
|
value: I,
|
|
@@ -1182,7 +1182,7 @@ const Ar = (n) => {
|
|
|
1182
1182
|
onKeyDown: M,
|
|
1183
1183
|
placeholder: o,
|
|
1184
1184
|
disabled: s,
|
|
1185
|
-
height:
|
|
1185
|
+
height: C.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: C.inputHeight,
|
|
1198
|
+
minHeight: C.inputHeight,
|
|
1199
|
+
fontSize: C.fontSize,
|
|
1200
1200
|
color: "var(--mantine-color-gray-8)",
|
|
1201
1201
|
borderRadius: "var(--mantine-radius-md)",
|
|
1202
1202
|
transition: "background-color 0.2s ease",
|
|
@@ -1216,7 +1216,7 @@ const Ar = (n) => {
|
|
|
1216
1216
|
rightSection: I && /* @__PURE__ */ e(
|
|
1217
1217
|
b,
|
|
1218
1218
|
{
|
|
1219
|
-
onClick:
|
|
1219
|
+
onClick: z,
|
|
1220
1220
|
style: {
|
|
1221
1221
|
display: "flex",
|
|
1222
1222
|
alignItems: "center",
|
|
@@ -1233,7 +1233,7 @@ const Ar = (n) => {
|
|
|
1233
1233
|
x.currentTarget.style.backgroundColor = "transparent";
|
|
1234
1234
|
},
|
|
1235
1235
|
children: /* @__PURE__ */ e(
|
|
1236
|
-
|
|
1236
|
+
rt,
|
|
1237
1237
|
{
|
|
1238
1238
|
size: 14,
|
|
1239
1239
|
color: "var(--mantine-color-gray-6)",
|
|
@@ -1269,7 +1269,7 @@ const Ar = (n) => {
|
|
|
1269
1269
|
]
|
|
1270
1270
|
}
|
|
1271
1271
|
);
|
|
1272
|
-
},
|
|
1272
|
+
}, Bn = ({
|
|
1273
1273
|
activeFilters: n,
|
|
1274
1274
|
onFiltersChange: o,
|
|
1275
1275
|
availableFilters: t,
|
|
@@ -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] = O(!1), l = n.length > 0, d = (g) => {
|
|
1283
1283
|
if (g === "remove-filters")
|
|
1284
1284
|
o([]);
|
|
1285
1285
|
else {
|
|
@@ -1342,7 +1342,7 @@ const Ar = (n) => {
|
|
|
1342
1342
|
onMouseEnter: () => s(!0),
|
|
1343
1343
|
onMouseLeave: () => s(!1),
|
|
1344
1344
|
onClick: () => a.toggleDropdown(),
|
|
1345
|
-
children: /* @__PURE__ */ e(
|
|
1345
|
+
children: /* @__PURE__ */ e(ot, { size: 20, stroke: 2.3 })
|
|
1346
1346
|
}
|
|
1347
1347
|
);
|
|
1348
1348
|
return /* @__PURE__ */ v(
|
|
@@ -1355,7 +1355,7 @@ const Ar = (n) => {
|
|
|
1355
1355
|
position: i,
|
|
1356
1356
|
children: [
|
|
1357
1357
|
/* @__PURE__ */ e(re.Target, { children: l ? /* @__PURE__ */ e(
|
|
1358
|
-
|
|
1358
|
+
Xn,
|
|
1359
1359
|
{
|
|
1360
1360
|
offset: 2,
|
|
1361
1361
|
position: "top-end",
|
|
@@ -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] = O(!1), s = (f) => {
|
|
1564
1564
|
const I = t == null ? void 0 : t.find(
|
|
1565
1565
|
(h) => h.value === f
|
|
1566
1566
|
);
|
|
@@ -1663,7 +1663,7 @@ const Ar = (n) => {
|
|
|
1663
1663
|
]
|
|
1664
1664
|
}
|
|
1665
1665
|
);
|
|
1666
|
-
},
|
|
1666
|
+
}, An = ({
|
|
1667
1667
|
activeFilters: n,
|
|
1668
1668
|
onFiltersChange: o,
|
|
1669
1669
|
availableFilters: t,
|
|
@@ -1721,7 +1721,7 @@ const Ar = (n) => {
|
|
|
1721
1721
|
filterTagDropdownPosition: a = "bottom-start"
|
|
1722
1722
|
}) => /* @__PURE__ */ v("div", { style: { display: "flex", flexDirection: "column", gap: "12px" }, children: [
|
|
1723
1723
|
/* @__PURE__ */ e(
|
|
1724
|
-
|
|
1724
|
+
Bn,
|
|
1725
1725
|
{
|
|
1726
1726
|
activeFilters: n,
|
|
1727
1727
|
onFiltersChange: o,
|
|
@@ -1730,7 +1730,7 @@ const Ar = (n) => {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
),
|
|
1732
1732
|
/* @__PURE__ */ e(
|
|
1733
|
-
|
|
1733
|
+
An,
|
|
1734
1734
|
{
|
|
1735
1735
|
activeFilters: n,
|
|
1736
1736
|
onFiltersChange: o,
|
|
@@ -1741,15 +1741,15 @@ const Ar = (n) => {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
)
|
|
1743
1743
|
] }), Ri = Object.assign(Gr, {
|
|
1744
|
-
Button:
|
|
1745
|
-
Filters:
|
|
1744
|
+
Button: Bn,
|
|
1745
|
+
Filters: An
|
|
1746
1746
|
}), Qr = ({
|
|
1747
1747
|
children: n,
|
|
1748
1748
|
danger: o,
|
|
1749
1749
|
active: t,
|
|
1750
1750
|
...r
|
|
1751
1751
|
}) => /* @__PURE__ */ e(
|
|
1752
|
-
|
|
1752
|
+
Kn,
|
|
1753
1753
|
{
|
|
1754
1754
|
...r,
|
|
1755
1755
|
style: {
|
|
@@ -1766,7 +1766,7 @@ const Ar = (n) => {
|
|
|
1766
1766
|
children: t,
|
|
1767
1767
|
...r
|
|
1768
1768
|
}) => {
|
|
1769
|
-
const i = Z(null), [a, c] =
|
|
1769
|
+
const i = Z(null), [a, c] = O(0);
|
|
1770
1770
|
return Y(() => {
|
|
1771
1771
|
i.current && c(i.current.offsetWidth);
|
|
1772
1772
|
}, [n]), /* @__PURE__ */ v(pe, { ...r, children: [
|
|
@@ -1802,7 +1802,7 @@ const Ar = (n) => {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
)
|
|
1804
1804
|
] });
|
|
1805
|
-
},
|
|
1805
|
+
}, ht = ({
|
|
1806
1806
|
label: n,
|
|
1807
1807
|
icon: o,
|
|
1808
1808
|
onClick: t,
|
|
@@ -1814,7 +1814,7 @@ const Ar = (n) => {
|
|
|
1814
1814
|
isActive: l = !1,
|
|
1815
1815
|
...d
|
|
1816
1816
|
}) => {
|
|
1817
|
-
const [u, p] =
|
|
1817
|
+
const [u, p] = O(!1);
|
|
1818
1818
|
return /* @__PURE__ */ e(
|
|
1819
1819
|
b,
|
|
1820
1820
|
{
|
|
@@ -1887,7 +1887,7 @@ const Ar = (n) => {
|
|
|
1887
1887
|
] })
|
|
1888
1888
|
}
|
|
1889
1889
|
);
|
|
1890
|
-
},
|
|
1890
|
+
}, Hn = ({
|
|
1891
1891
|
label: n,
|
|
1892
1892
|
rightLabel: o,
|
|
1893
1893
|
children: t,
|
|
@@ -1907,7 +1907,7 @@ const Ar = (n) => {
|
|
|
1907
1907
|
"aria-label": m,
|
|
1908
1908
|
...w
|
|
1909
1909
|
}) => {
|
|
1910
|
-
const [y, S] =
|
|
1910
|
+
const [y, S] = O(!1), [M, z] = O(!1), k = be.Children.count(t) > 0, C = !u && k && (f ? M : !0), x = j(() => {
|
|
1911
1911
|
d || g == null || g();
|
|
1912
1912
|
}, [g, d]), B = j(
|
|
1913
1913
|
($) => {
|
|
@@ -1916,9 +1916,9 @@ const Ar = (n) => {
|
|
|
1916
1916
|
[r, d]
|
|
1917
1917
|
), L = j(
|
|
1918
1918
|
($) => {
|
|
1919
|
-
$ == null || $.stopPropagation(), !d &&
|
|
1919
|
+
$ == null || $.stopPropagation(), !d && k && !u && S((H) => !H);
|
|
1920
1920
|
},
|
|
1921
|
-
[d,
|
|
1921
|
+
[d, k, u]
|
|
1922
1922
|
), R = j(() => {
|
|
1923
1923
|
d || r == null || r();
|
|
1924
1924
|
}, [r, d]), F = j(
|
|
@@ -1926,10 +1926,10 @@ const Ar = (n) => {
|
|
|
1926
1926
|
d || i == null || i($);
|
|
1927
1927
|
},
|
|
1928
1928
|
[i, d, n]
|
|
1929
|
-
), Q = j(() =>
|
|
1929
|
+
), Q = j(() => k ? be.Children.map(t, ($) => be.isValidElement($) ? be.cloneElement($, {
|
|
1930
1930
|
...$.props,
|
|
1931
1931
|
level: l + 1
|
|
1932
|
-
}) : $) : null, [t,
|
|
1932
|
+
}) : $) : null, [t, k, l]), _ = (a == null ? void 0 : a.map(($) => ({
|
|
1933
1933
|
children: /* @__PURE__ */ v(A, { gap: "xs", wrap: "nowrap", children: [
|
|
1934
1934
|
$.icon && /* @__PURE__ */ e($.icon, { size: 16 }),
|
|
1935
1935
|
/* @__PURE__ */ e(T, { size: "sm", children: $.label })
|
|
@@ -1961,8 +1961,8 @@ const Ar = (n) => {
|
|
|
1961
1961
|
w: "100%",
|
|
1962
1962
|
px: 6,
|
|
1963
1963
|
h: 40,
|
|
1964
|
-
onMouseEnter: () => !d &&
|
|
1965
|
-
onMouseLeave: () =>
|
|
1964
|
+
onMouseEnter: () => !d && z(!0),
|
|
1965
|
+
onMouseLeave: () => z(!1),
|
|
1966
1966
|
onClick: x,
|
|
1967
1967
|
bg: p || M ? "var(--mantine-color-gray-1)" : "transparent",
|
|
1968
1968
|
"aria-expanded": y,
|
|
@@ -1976,10 +1976,10 @@ const Ar = (n) => {
|
|
|
1976
1976
|
gap: 8,
|
|
1977
1977
|
onClick: x,
|
|
1978
1978
|
style: {
|
|
1979
|
-
paddingLeft: u && !
|
|
1979
|
+
paddingLeft: u && !C ? `${(l + 1) * 32}px` : l > 0 ? `${l * 32}px` : "0px"
|
|
1980
1980
|
},
|
|
1981
1981
|
children: [
|
|
1982
|
-
|
|
1982
|
+
C ? /* @__PURE__ */ e(
|
|
1983
1983
|
Be,
|
|
1984
1984
|
{
|
|
1985
1985
|
icon: y ? Ce : Je,
|
|
@@ -2045,7 +2045,7 @@ const Ar = (n) => {
|
|
|
2045
2045
|
)
|
|
2046
2046
|
}
|
|
2047
2047
|
),
|
|
2048
|
-
y && !u && /* @__PURE__ */ e(W, { gap: 0, style: { width: "100%" }, children:
|
|
2048
|
+
y && !u && /* @__PURE__ */ e(W, { gap: 0, style: { width: "100%" }, children: k ? Q() : /* @__PURE__ */ e(b, { style: { marginLeft: l > 0 ? `${l * 16}px` : "0px" }, children: /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", ta: "left", p: "sm", fw: 500, children: s }) }) })
|
|
2049
2049
|
] });
|
|
2050
2050
|
}, Yr = "userChip-module__pill___DgFME", Zr = {
|
|
2051
2051
|
pill: Yr
|
|
@@ -2055,7 +2055,7 @@ const Ar = (n) => {
|
|
|
2055
2055
|
withRemoveButton: t = !1,
|
|
2056
2056
|
onRemove: r
|
|
2057
2057
|
}) => /* @__PURE__ */ e(
|
|
2058
|
-
|
|
2058
|
+
xn,
|
|
2059
2059
|
{
|
|
2060
2060
|
withRemoveButton: t,
|
|
2061
2061
|
onRemove: r,
|
|
@@ -2084,7 +2084,7 @@ const Ar = (n) => {
|
|
|
2084
2084
|
onClick: r,
|
|
2085
2085
|
selected: i = !1
|
|
2086
2086
|
}) => {
|
|
2087
|
-
const [a, c] =
|
|
2087
|
+
const [a, c] = O(!1);
|
|
2088
2088
|
return /* @__PURE__ */ e(
|
|
2089
2089
|
b,
|
|
2090
2090
|
{
|
|
@@ -2159,7 +2159,7 @@ const Ar = (n) => {
|
|
|
2159
2159
|
)
|
|
2160
2160
|
}
|
|
2161
2161
|
);
|
|
2162
|
-
}, to = "bottom-end", ro = 1e4, oo = "24px", io = "0 8px", ao = "6px",
|
|
2162
|
+
}, to = "bottom-end", ro = 1e4, oo = "24px", io = "0 8px", ao = "6px", Pn = "var(--mantine-radius-md)", co = "46px", Ln = ({
|
|
2163
2163
|
value: n,
|
|
2164
2164
|
onChange: o,
|
|
2165
2165
|
data: t,
|
|
@@ -2174,7 +2174,7 @@ const Ar = (n) => {
|
|
|
2174
2174
|
triggerStyles: p,
|
|
2175
2175
|
textStyles: f
|
|
2176
2176
|
}) => {
|
|
2177
|
-
const [I, h] =
|
|
2177
|
+
const [I, h] = O(!1), g = (t || []).find((x) => x.value === n) || l, [m, w] = O(!1), [y, S] = O(!1), [M, z] = O(!1), k = r ? /* @__PURE__ */ e(
|
|
2178
2178
|
A,
|
|
2179
2179
|
{
|
|
2180
2180
|
p: "sm",
|
|
@@ -2186,7 +2186,7 @@ const Ar = (n) => {
|
|
|
2186
2186
|
height: co,
|
|
2187
2187
|
display: "flex",
|
|
2188
2188
|
alignItems: "center",
|
|
2189
|
-
borderRadius:
|
|
2189
|
+
borderRadius: Pn,
|
|
2190
2190
|
backgroundColor: y ? "var(--mantine-color-red-0)" : "transparent",
|
|
2191
2191
|
transition: "background-color 0.2s ease"
|
|
2192
2192
|
},
|
|
@@ -2194,20 +2194,20 @@ const Ar = (n) => {
|
|
|
2194
2194
|
onMouseLeave: () => S(!1),
|
|
2195
2195
|
children: /* @__PURE__ */ e(T, { size: "sm", c: "var(--mantine-color-red-6)", fw: 500, children: "Remove user" })
|
|
2196
2196
|
}
|
|
2197
|
-
) : null,
|
|
2197
|
+
) : null, C = /* @__PURE__ */ v(
|
|
2198
2198
|
b,
|
|
2199
2199
|
{
|
|
2200
2200
|
onMouseEnter: () => !s && w(!0),
|
|
2201
2201
|
onMouseLeave: () => !s && w(!1),
|
|
2202
2202
|
onClick: () => {
|
|
2203
|
-
s || (h(!0),
|
|
2203
|
+
s || (h(!0), z(!0));
|
|
2204
2204
|
},
|
|
2205
2205
|
style: {
|
|
2206
2206
|
height: oo,
|
|
2207
2207
|
cursor: s ? "not-allowed" : "pointer",
|
|
2208
2208
|
display: "inline-flex",
|
|
2209
2209
|
alignItems: "center",
|
|
2210
|
-
borderRadius:
|
|
2210
|
+
borderRadius: Pn,
|
|
2211
2211
|
backgroundColor: s ? "transparent" : m || M ? "var(--mantine-color-gray-1)" : "transparent",
|
|
2212
2212
|
transition: "background-color 0.2s ease",
|
|
2213
2213
|
padding: io,
|
|
@@ -2249,7 +2249,7 @@ const Ar = (n) => {
|
|
|
2249
2249
|
{
|
|
2250
2250
|
opened: I,
|
|
2251
2251
|
onChange: (x) => {
|
|
2252
|
-
h(x), x ||
|
|
2252
|
+
h(x), x || z(!1);
|
|
2253
2253
|
},
|
|
2254
2254
|
position: to,
|
|
2255
2255
|
shadow: "md",
|
|
@@ -2257,7 +2257,7 @@ const Ar = (n) => {
|
|
|
2257
2257
|
zIndex: ro,
|
|
2258
2258
|
styles: d,
|
|
2259
2259
|
children: [
|
|
2260
|
-
/* @__PURE__ */ e(je.Target, { children:
|
|
2260
|
+
/* @__PURE__ */ e(je.Target, { children: C }),
|
|
2261
2261
|
/* @__PURE__ */ e(
|
|
2262
2262
|
je.Dropdown,
|
|
2263
2263
|
{
|
|
@@ -2287,13 +2287,13 @@ const Ar = (n) => {
|
|
|
2287
2287
|
disabled: B,
|
|
2288
2288
|
selected: L,
|
|
2289
2289
|
onClick: (R) => {
|
|
2290
|
-
o == null || o(R), h(!1),
|
|
2290
|
+
o == null || o(R), h(!1), z(!1);
|
|
2291
2291
|
}
|
|
2292
2292
|
},
|
|
2293
2293
|
x.value
|
|
2294
2294
|
);
|
|
2295
2295
|
}),
|
|
2296
|
-
|
|
2296
|
+
k
|
|
2297
2297
|
]
|
|
2298
2298
|
}
|
|
2299
2299
|
)
|
|
@@ -2351,24 +2351,24 @@ const Ar = (n) => {
|
|
|
2351
2351
|
striped: y = !1,
|
|
2352
2352
|
highlightOnHover: S = !0,
|
|
2353
2353
|
enableInfiniteScroll: M = !1,
|
|
2354
|
-
isLoadingMore:
|
|
2355
|
-
hasMore:
|
|
2356
|
-
onLoadMore:
|
|
2354
|
+
isLoadingMore: z = !1,
|
|
2355
|
+
hasMore: k = !1,
|
|
2356
|
+
onLoadMore: C
|
|
2357
2357
|
}) => {
|
|
2358
|
-
const [x, B] =
|
|
2358
|
+
const [x, B] = O(""), [L, R] = O([]), { loadMoreRef: F } = so(
|
|
2359
2359
|
M,
|
|
2360
|
-
|
|
2360
|
+
C || (() => {
|
|
2361
2361
|
}),
|
|
2362
|
-
|
|
2363
|
-
|
|
2362
|
+
k,
|
|
2363
|
+
z
|
|
2364
2364
|
), Q = K(() => [...d ? t.filter((E) => E.type === "select" && E.options).map((E) => ({
|
|
2365
2365
|
value: E.key,
|
|
2366
2366
|
label: E.label
|
|
2367
2367
|
})) : [], ...u], [t, d, u]), _ = K(() => {
|
|
2368
|
-
let
|
|
2368
|
+
let D = o || [];
|
|
2369
2369
|
if (x) {
|
|
2370
2370
|
const E = x.toLowerCase();
|
|
2371
|
-
|
|
2371
|
+
D = D.filter((U) => t.some((P) => {
|
|
2372
2372
|
if (!P.searchable)
|
|
2373
2373
|
return !1;
|
|
2374
2374
|
const X = U[P.key];
|
|
@@ -2380,23 +2380,23 @@ const Ar = (n) => {
|
|
|
2380
2380
|
const U = t.find(
|
|
2381
2381
|
(P) => P.key === E.filterTag.filterOption.value
|
|
2382
2382
|
);
|
|
2383
|
-
U && (
|
|
2383
|
+
U && (D = D.filter((P) => {
|
|
2384
2384
|
var de;
|
|
2385
2385
|
const X = P[U.key];
|
|
2386
2386
|
return String(X) === ((de = E.filterTag.selectedOption) == null ? void 0 : de.value);
|
|
2387
2387
|
}));
|
|
2388
2388
|
}
|
|
2389
|
-
}),
|
|
2390
|
-
}, [o, x, L, t]), V = (
|
|
2391
|
-
B(
|
|
2392
|
-
}, N = (
|
|
2393
|
-
const E = t.find((P) => P.key ===
|
|
2389
|
+
}), D;
|
|
2390
|
+
}, [o, x, L, t]), V = (D) => {
|
|
2391
|
+
B(D), g == null || g(D);
|
|
2392
|
+
}, N = (D) => {
|
|
2393
|
+
const E = t.find((P) => P.key === D);
|
|
2394
2394
|
if (!(E != null && E.sortable))
|
|
2395
2395
|
return;
|
|
2396
|
-
const U = I ===
|
|
2397
|
-
f == null || f(
|
|
2398
|
-
}, $ = (
|
|
2399
|
-
const E = t.find((U) => U.key ===
|
|
2396
|
+
const U = I === D && h === "asc" ? "desc" : "asc";
|
|
2397
|
+
f == null || f(D, U);
|
|
2398
|
+
}, $ = (D) => {
|
|
2399
|
+
const E = t.find((U) => U.key === D);
|
|
2400
2400
|
return (E == null ? void 0 : E.type) === "select" && E.options ? E.options.map((U) => ({
|
|
2401
2401
|
value: U.value,
|
|
2402
2402
|
label: U.label
|
|
@@ -2411,37 +2411,37 @@ const Ar = (n) => {
|
|
|
2411
2411
|
value: String(P),
|
|
2412
2412
|
label: String(P).charAt(0).toUpperCase() + String(P).slice(1)
|
|
2413
2413
|
})) : [];
|
|
2414
|
-
}, H = (
|
|
2414
|
+
}, H = (D, E) => {
|
|
2415
2415
|
var P, X, de, G, ge;
|
|
2416
|
-
const U = E[
|
|
2417
|
-
switch (
|
|
2416
|
+
const U = E[D.key];
|
|
2417
|
+
switch (D.type) {
|
|
2418
2418
|
case "text":
|
|
2419
2419
|
return /* @__PURE__ */ e(T, { size: "sm", c: U ? void 0 : "dimmed", children: U || "—" });
|
|
2420
2420
|
case "date":
|
|
2421
2421
|
if (!U)
|
|
2422
2422
|
return /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: "—" });
|
|
2423
|
-
const ie = new Date(U), ze =
|
|
2423
|
+
const ie = new Date(U), ze = D.format ? ie.toLocaleDateString("en-US", {
|
|
2424
2424
|
year: "numeric",
|
|
2425
2425
|
month: "2-digit",
|
|
2426
2426
|
day: "2-digit"
|
|
2427
2427
|
}) : ie.toLocaleDateString();
|
|
2428
2428
|
return /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: ze });
|
|
2429
2429
|
case "select":
|
|
2430
|
-
return
|
|
2431
|
-
|
|
2430
|
+
return D.options ? /* @__PURE__ */ e(
|
|
2431
|
+
Ln,
|
|
2432
2432
|
{
|
|
2433
2433
|
value: U,
|
|
2434
|
-
data:
|
|
2435
|
-
placeholder:
|
|
2434
|
+
data: D.options,
|
|
2435
|
+
placeholder: D.label,
|
|
2436
2436
|
onChange: (Ie) => {
|
|
2437
2437
|
var Le;
|
|
2438
|
-
return (Le =
|
|
2438
|
+
return (Le = D.onSelectChange) == null ? void 0 : Le.call(D, Ie, E);
|
|
2439
2439
|
},
|
|
2440
|
-
disabled: (P =
|
|
2440
|
+
disabled: (P = D.disabled) == null ? void 0 : P.call(D, E)
|
|
2441
2441
|
}
|
|
2442
2442
|
) : /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: "—" });
|
|
2443
2443
|
case "badge":
|
|
2444
|
-
const cn = ((X =
|
|
2444
|
+
const cn = ((X = D.badgeColors) == null ? void 0 : X[U]) || "gray";
|
|
2445
2445
|
return /* @__PURE__ */ e(
|
|
2446
2446
|
Ke,
|
|
2447
2447
|
{
|
|
@@ -2454,7 +2454,7 @@ const Ar = (n) => {
|
|
|
2454
2454
|
}
|
|
2455
2455
|
);
|
|
2456
2456
|
case "avatar":
|
|
2457
|
-
const sn = ((de =
|
|
2457
|
+
const sn = ((de = D.fallbackText) == null ? void 0 : de.call(D, E)) || String(U).charAt(0).toUpperCase();
|
|
2458
2458
|
return /* @__PURE__ */ e(
|
|
2459
2459
|
Oe,
|
|
2460
2460
|
{
|
|
@@ -2465,9 +2465,9 @@ const Ar = (n) => {
|
|
|
2465
2465
|
}
|
|
2466
2466
|
);
|
|
2467
2467
|
case "custom":
|
|
2468
|
-
return ((G =
|
|
2468
|
+
return ((G = D.render) == null ? void 0 : G.call(D, U, E)) || /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: "—" });
|
|
2469
2469
|
case "actions":
|
|
2470
|
-
return (ge =
|
|
2470
|
+
return (ge = D.actions) != null && ge.length ? /* @__PURE__ */ v(
|
|
2471
2471
|
pe,
|
|
2472
2472
|
{
|
|
2473
2473
|
shadow: "md",
|
|
@@ -2480,7 +2480,7 @@ const Ar = (n) => {
|
|
|
2480
2480
|
},
|
|
2481
2481
|
children: [
|
|
2482
2482
|
/* @__PURE__ */ e(pe.Target, { children: /* @__PURE__ */ e(le, { variant: "subtle", size: "md", color: "gray", radius: "md", children: /* @__PURE__ */ e(Pe, { size: 16 }) }) }),
|
|
2483
|
-
/* @__PURE__ */ e(pe.Dropdown, { children:
|
|
2483
|
+
/* @__PURE__ */ e(pe.Dropdown, { children: D.actions.map((Ie, Le) => {
|
|
2484
2484
|
var _e;
|
|
2485
2485
|
return /* @__PURE__ */ e(
|
|
2486
2486
|
pe.Item,
|
|
@@ -2505,9 +2505,9 @@ const Ar = (n) => {
|
|
|
2505
2505
|
default:
|
|
2506
2506
|
return /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: "—" });
|
|
2507
2507
|
}
|
|
2508
|
-
}, oe = (
|
|
2508
|
+
}, oe = (D) => {
|
|
2509
2509
|
var E;
|
|
2510
|
-
return (E = t.find((U) => U.key ===
|
|
2510
|
+
return (E = t.find((U) => U.key === D)) != null && E.sortable ? I === D ? h === "asc" ? /* @__PURE__ */ e(Ve, { size: 14 }) : /* @__PURE__ */ e(Ce, { size: 14 }) : /* @__PURE__ */ e(Ve, { size: 14, style: { opacity: 0.3 } }) : null;
|
|
2511
2511
|
}, q = (() => {
|
|
2512
2512
|
switch (w) {
|
|
2513
2513
|
case "sm":
|
|
@@ -2537,19 +2537,19 @@ const Ar = (n) => {
|
|
|
2537
2537
|
}
|
|
2538
2538
|
),
|
|
2539
2539
|
Q.length > 0 && /* @__PURE__ */ e(
|
|
2540
|
-
|
|
2540
|
+
Bn,
|
|
2541
2541
|
{
|
|
2542
|
-
activeFilters: L.map((
|
|
2543
|
-
onFiltersChange: (
|
|
2542
|
+
activeFilters: L.map((D) => D.filterTag),
|
|
2543
|
+
onFiltersChange: (D) => {
|
|
2544
2544
|
R(
|
|
2545
|
-
|
|
2545
|
+
D.map((E) => ({
|
|
2546
2546
|
filterTag: E,
|
|
2547
2547
|
onUpdate: () => {
|
|
2548
2548
|
},
|
|
2549
2549
|
onRemove: () => {
|
|
2550
2550
|
}
|
|
2551
2551
|
}))
|
|
2552
|
-
), p == null || p(
|
|
2552
|
+
), p == null || p(D);
|
|
2553
2553
|
},
|
|
2554
2554
|
availableFilters: Q,
|
|
2555
2555
|
size: q.buttonSize
|
|
@@ -2573,19 +2573,19 @@ const Ar = (n) => {
|
|
|
2573
2573
|
] })
|
|
2574
2574
|
] }),
|
|
2575
2575
|
Q.length > 0 && /* @__PURE__ */ e(
|
|
2576
|
-
|
|
2576
|
+
An,
|
|
2577
2577
|
{
|
|
2578
|
-
activeFilters: L.map((
|
|
2579
|
-
onFiltersChange: (
|
|
2578
|
+
activeFilters: L.map((D) => D.filterTag),
|
|
2579
|
+
onFiltersChange: (D) => {
|
|
2580
2580
|
R(
|
|
2581
|
-
|
|
2581
|
+
D.map((E) => ({
|
|
2582
2582
|
filterTag: E,
|
|
2583
2583
|
onUpdate: () => {
|
|
2584
2584
|
},
|
|
2585
2585
|
onRemove: () => {
|
|
2586
2586
|
}
|
|
2587
2587
|
}))
|
|
2588
|
-
), p == null || p(
|
|
2588
|
+
), p == null || p(D);
|
|
2589
2589
|
},
|
|
2590
2590
|
availableFilters: Q,
|
|
2591
2591
|
size: "md",
|
|
@@ -2602,39 +2602,39 @@ const Ar = (n) => {
|
|
|
2602
2602
|
highlightOnHoverColor: "var(--mantine-color-gray-0)",
|
|
2603
2603
|
mt: "xs",
|
|
2604
2604
|
children: [
|
|
2605
|
-
/* @__PURE__ */ e(we.Thead, { children: /* @__PURE__ */ e(we.Tr, { children: t.map((
|
|
2605
|
+
/* @__PURE__ */ e(we.Thead, { children: /* @__PURE__ */ e(we.Tr, { children: t.map((D) => /* @__PURE__ */ e(
|
|
2606
2606
|
we.Th,
|
|
2607
2607
|
{
|
|
2608
2608
|
c: "var(--mantine-color-gray-6)",
|
|
2609
2609
|
style: {
|
|
2610
|
-
width:
|
|
2611
|
-
textAlign:
|
|
2612
|
-
cursor:
|
|
2610
|
+
width: D.width,
|
|
2611
|
+
textAlign: D.align || "left",
|
|
2612
|
+
cursor: D.sortable ? "pointer" : "default"
|
|
2613
2613
|
},
|
|
2614
|
-
onClick: () =>
|
|
2614
|
+
onClick: () => D.sortable && N(D.key),
|
|
2615
2615
|
children: /* @__PURE__ */ v(A, { gap: "xs", wrap: "nowrap", children: [
|
|
2616
|
-
|
|
2617
|
-
/* @__PURE__ */ e(T, { size: q.textSize, fw: 500, children:
|
|
2618
|
-
oe(
|
|
2616
|
+
D.icon && /* @__PURE__ */ e(b, { style: { display: "flex", alignItems: "center" }, children: D.icon }),
|
|
2617
|
+
/* @__PURE__ */ e(T, { size: q.textSize, fw: 500, children: D.label }),
|
|
2618
|
+
oe(D.key)
|
|
2619
2619
|
] })
|
|
2620
2620
|
},
|
|
2621
|
-
String(
|
|
2621
|
+
String(D.key)
|
|
2622
2622
|
)) }) }),
|
|
2623
|
-
/* @__PURE__ */ e(we.Tbody, { children: _.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 }) }) }) : _.map((
|
|
2623
|
+
/* @__PURE__ */ e(we.Tbody, { children: _.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 }) }) }) : _.map((D, E) => /* @__PURE__ */ e(
|
|
2624
2624
|
we.Tr,
|
|
2625
2625
|
{
|
|
2626
2626
|
style: { cursor: m ? "pointer" : "default" },
|
|
2627
|
-
onClick: () => m == null ? void 0 : m(
|
|
2627
|
+
onClick: () => m == null ? void 0 : m(D),
|
|
2628
2628
|
children: t.map((U) => /* @__PURE__ */ e(
|
|
2629
2629
|
we.Td,
|
|
2630
2630
|
{
|
|
2631
2631
|
style: { textAlign: U.align || "left" },
|
|
2632
|
-
children: H(U,
|
|
2632
|
+
children: H(U, D)
|
|
2633
2633
|
},
|
|
2634
2634
|
String(U.key)
|
|
2635
2635
|
))
|
|
2636
2636
|
},
|
|
2637
|
-
|
|
2637
|
+
D.id || E
|
|
2638
2638
|
)) })
|
|
2639
2639
|
]
|
|
2640
2640
|
}
|
|
@@ -2650,7 +2650,7 @@ const Ar = (n) => {
|
|
|
2650
2650
|
alignItems: "center",
|
|
2651
2651
|
minHeight: "60px"
|
|
2652
2652
|
},
|
|
2653
|
-
children:
|
|
2653
|
+
children: z && /* @__PURE__ */ v(A, { display: "flex", ta: "center", gap: "xs", children: [
|
|
2654
2654
|
/* @__PURE__ */ e(Se, { size: "sm", color: "gray.5" }),
|
|
2655
2655
|
/* @__PURE__ */ e(T, { size: "sm", c: "dimmed", fw: 500, children: "Loading more..." })
|
|
2656
2656
|
] })
|
|
@@ -2667,9 +2667,9 @@ const uo = ({
|
|
|
2667
2667
|
onImageSelect: t,
|
|
2668
2668
|
onIconSelect: r
|
|
2669
2669
|
} = {}) => {
|
|
2670
|
-
const [i, a] =
|
|
2670
|
+
const [i, a] = O(
|
|
2671
2671
|
"emoji"
|
|
2672
|
-
), [c, s] =
|
|
2672
|
+
), [c, s] = O(null), [l, d] = O(null), [u, p] = O(null), [f, I] = O(null), [h, g] = O(null), m = j((x) => {
|
|
2673
2673
|
a(x);
|
|
2674
2674
|
}, []), w = j(
|
|
2675
2675
|
(x) => {
|
|
@@ -2694,7 +2694,7 @@ const uo = ({
|
|
|
2694
2694
|
I(x), d(null), g(null), p(null), n == null || n({ type: "icon", value: x }), r == null || r(x);
|
|
2695
2695
|
},
|
|
2696
2696
|
[n, r]
|
|
2697
|
-
),
|
|
2697
|
+
), z = j(() => {
|
|
2698
2698
|
if (h && l) {
|
|
2699
2699
|
const x = URL.createObjectURL(h);
|
|
2700
2700
|
n == null || n({
|
|
@@ -2702,9 +2702,9 @@ const uo = ({
|
|
|
2702
2702
|
value: x
|
|
2703
2703
|
}), t == null || t(h);
|
|
2704
2704
|
}
|
|
2705
|
-
}, [h, l, n, t]),
|
|
2705
|
+
}, [h, l, n, t]), k = j(() => {
|
|
2706
2706
|
d(null), g(null), p(null), I(null);
|
|
2707
|
-
}, []),
|
|
2707
|
+
}, []), C = j(() => {
|
|
2708
2708
|
d(null), p(null), I(null), g(null), a("emoji"), s(null);
|
|
2709
2709
|
}, []);
|
|
2710
2710
|
return {
|
|
@@ -2717,11 +2717,11 @@ const uo = ({
|
|
|
2717
2717
|
handleTabChange: m,
|
|
2718
2718
|
handleTabHover: w,
|
|
2719
2719
|
handleImagePreview: y,
|
|
2720
|
-
handleImageAccept:
|
|
2720
|
+
handleImageAccept: z,
|
|
2721
2721
|
handleEmojiSelect: S,
|
|
2722
2722
|
handleIconSelect: M,
|
|
2723
|
-
clearImagePreview:
|
|
2724
|
-
resetState:
|
|
2723
|
+
clearImagePreview: k,
|
|
2724
|
+
resetState: C
|
|
2725
2725
|
};
|
|
2726
2726
|
}, fo = ({
|
|
2727
2727
|
opened: n,
|
|
@@ -2757,7 +2757,7 @@ const uo = ({
|
|
|
2757
2757
|
hasAvatar: a = !1,
|
|
2758
2758
|
children: c
|
|
2759
2759
|
}) => {
|
|
2760
|
-
const [s, l] =
|
|
2760
|
+
const [s, l] = O(!1);
|
|
2761
2761
|
return /* @__PURE__ */ v(
|
|
2762
2762
|
fe,
|
|
2763
2763
|
{
|
|
@@ -2904,14 +2904,14 @@ const uo = ({
|
|
|
2904
2904
|
}
|
|
2905
2905
|
);
|
|
2906
2906
|
};
|
|
2907
|
-
let
|
|
2908
|
-
|
|
2907
|
+
let Vn = !1;
|
|
2908
|
+
Vn || (br({ data: en }), Vn = !0);
|
|
2909
2909
|
const po = () => {
|
|
2910
2910
|
const n = [
|
|
2911
2911
|
{
|
|
2912
2912
|
id: "frequent",
|
|
2913
2913
|
name: "Frequently Used",
|
|
2914
|
-
icon: /* @__PURE__ */ e(
|
|
2914
|
+
icon: /* @__PURE__ */ e(it, { size: 20, strokeWidth: 2.5 })
|
|
2915
2915
|
}
|
|
2916
2916
|
];
|
|
2917
2917
|
return en.categories.forEach((o) => {
|
|
@@ -2922,7 +2922,7 @@ const po = () => {
|
|
|
2922
2922
|
t = /* @__PURE__ */ e(qe, { size: 20, strokeWidth: 2 }), r = "Smileys & People";
|
|
2923
2923
|
break;
|
|
2924
2924
|
case "nature":
|
|
2925
|
-
t = /* @__PURE__ */ e(
|
|
2925
|
+
t = /* @__PURE__ */ e(at, { size: 20, strokeWidth: 2 }), r = "Animals & Nature";
|
|
2926
2926
|
break;
|
|
2927
2927
|
case "foods":
|
|
2928
2928
|
t = /* @__PURE__ */ e(ur, { size: 20, strokeWidth: 2 }), r = "Food & Drink";
|
|
@@ -2931,10 +2931,10 @@ const po = () => {
|
|
|
2931
2931
|
t = /* @__PURE__ */ e(dr, { size: 20, strokeWidth: 2 }), r = "Activities";
|
|
2932
2932
|
break;
|
|
2933
2933
|
case "travel":
|
|
2934
|
-
t = /* @__PURE__ */ e(
|
|
2934
|
+
t = /* @__PURE__ */ e(Un, { size: 20, strokeWidth: 2 }), r = "Travel & Places";
|
|
2935
2935
|
break;
|
|
2936
2936
|
case "places":
|
|
2937
|
-
t = /* @__PURE__ */ e(
|
|
2937
|
+
t = /* @__PURE__ */ e(Un, { size: 20, strokeWidth: 2 }), r = "Travel & Places";
|
|
2938
2938
|
break;
|
|
2939
2939
|
case "objects":
|
|
2940
2940
|
t = /* @__PURE__ */ e(lr, { size: 20, strokeWidth: 2 }), r = "Objects";
|
|
@@ -2962,13 +2962,13 @@ const po = () => {
|
|
|
2962
2962
|
onEmojiSelect: n,
|
|
2963
2963
|
height: o = 200
|
|
2964
2964
|
}) => {
|
|
2965
|
-
const [t, r] =
|
|
2965
|
+
const [t, r] = O(""), [i, a] = O("people"), [c, s] = O(() => {
|
|
2966
2966
|
if (typeof window < "u") {
|
|
2967
2967
|
const m = localStorage.getItem("emoji-frequent");
|
|
2968
2968
|
return m ? JSON.parse(m) : [];
|
|
2969
2969
|
}
|
|
2970
2970
|
return [];
|
|
2971
|
-
}), [l, d] =
|
|
2971
|
+
}), [l, d] = O([]), [u, p] = O(!1), f = po();
|
|
2972
2972
|
Y(() => {
|
|
2973
2973
|
t.trim() ? (p(!0), Mr.search(t).then((m) => {
|
|
2974
2974
|
d(
|
|
@@ -3012,12 +3012,12 @@ const po = () => {
|
|
|
3012
3012
|
return /* @__PURE__ */ v(W, { gap: 0, style: { height: o, width: "100%" }, children: [
|
|
3013
3013
|
/* @__PURE__ */ e(b, { p: "sm", pb: "xs", children: /* @__PURE__ */ v(W, { gap: "xs", children: [
|
|
3014
3014
|
/* @__PURE__ */ e(
|
|
3015
|
-
|
|
3015
|
+
kn,
|
|
3016
3016
|
{
|
|
3017
3017
|
placeholder: "Search emojis...",
|
|
3018
3018
|
value: t,
|
|
3019
3019
|
onChange: (m) => r(m.target.value),
|
|
3020
|
-
leftSection: /* @__PURE__ */ e(
|
|
3020
|
+
leftSection: /* @__PURE__ */ e(zn, { size: 16, strokeWidth: 2.5 }),
|
|
3021
3021
|
fw: 500,
|
|
3022
3022
|
size: "sm",
|
|
3023
3023
|
radius: "md",
|
|
@@ -3113,7 +3113,7 @@ const po = () => {
|
|
|
3113
3113
|
px: "sm",
|
|
3114
3114
|
py: "xs",
|
|
3115
3115
|
style: { borderTop: "1px solid var(--mantine-color-gray-3)" },
|
|
3116
|
-
children: /* @__PURE__ */ e(
|
|
3116
|
+
children: /* @__PURE__ */ e(Jn, { gap: "0px", justify: "center", wrap: "wrap", children: f.map((m) => /* @__PURE__ */ e(
|
|
3117
3117
|
Ue,
|
|
3118
3118
|
{
|
|
3119
3119
|
label: m.name,
|
|
@@ -3159,7 +3159,7 @@ const po = () => {
|
|
|
3159
3159
|
}
|
|
3160
3160
|
)
|
|
3161
3161
|
] });
|
|
3162
|
-
},
|
|
3162
|
+
}, pt = [
|
|
3163
3163
|
"IconUser",
|
|
3164
3164
|
"IconUserCircle",
|
|
3165
3165
|
"IconUserCheck",
|
|
@@ -3190,7 +3190,7 @@ const po = () => {
|
|
|
3190
3190
|
"IconUserUp",
|
|
3191
3191
|
"IconUserVoice",
|
|
3192
3192
|
"IconUserWrench"
|
|
3193
|
-
],
|
|
3193
|
+
], mt = [
|
|
3194
3194
|
"IconBriefcase",
|
|
3195
3195
|
"IconBuilding",
|
|
3196
3196
|
"IconBuildingStore",
|
|
@@ -3317,7 +3317,7 @@ const po = () => {
|
|
|
3317
3317
|
"IconEdit",
|
|
3318
3318
|
"IconEditCircle",
|
|
3319
3319
|
"IconEditCircleOff"
|
|
3320
|
-
],
|
|
3320
|
+
], gt = [
|
|
3321
3321
|
"IconDeviceDesktop",
|
|
3322
3322
|
"IconDeviceLaptop",
|
|
3323
3323
|
"IconDeviceMobile",
|
|
@@ -3448,7 +3448,7 @@ const po = () => {
|
|
|
3448
3448
|
"IconCloudStar",
|
|
3449
3449
|
"IconCloudUp",
|
|
3450
3450
|
"IconCloudX"
|
|
3451
|
-
],
|
|
3451
|
+
], It = [
|
|
3452
3452
|
"IconMoodSmile",
|
|
3453
3453
|
"IconMoodHappy",
|
|
3454
3454
|
"IconMoodWink",
|
|
@@ -3488,7 +3488,7 @@ const po = () => {
|
|
|
3488
3488
|
"IconTongue",
|
|
3489
3489
|
"IconGrin",
|
|
3490
3490
|
"IconSmirk"
|
|
3491
|
-
],
|
|
3491
|
+
], yt = [
|
|
3492
3492
|
"IconTrees",
|
|
3493
3493
|
"IconLeaf",
|
|
3494
3494
|
"IconFlower",
|
|
@@ -3616,7 +3616,7 @@ const po = () => {
|
|
|
3616
3616
|
"IconNestOff",
|
|
3617
3617
|
"IconNestEggs",
|
|
3618
3618
|
"IconNestEggsOff"
|
|
3619
|
-
],
|
|
3619
|
+
], vt = [
|
|
3620
3620
|
"IconCircle",
|
|
3621
3621
|
"IconSquare",
|
|
3622
3622
|
"IconTriangle",
|
|
@@ -3714,7 +3714,7 @@ const po = () => {
|
|
|
3714
3714
|
"IconZoomScan",
|
|
3715
3715
|
"IconZoomScanFilled",
|
|
3716
3716
|
"IconZoomX"
|
|
3717
|
-
],
|
|
3717
|
+
], xt = [
|
|
3718
3718
|
"IconEdit",
|
|
3719
3719
|
"IconDelete",
|
|
3720
3720
|
"IconSave",
|
|
@@ -3958,7 +3958,7 @@ const po = () => {
|
|
|
3958
3958
|
"IconPopOff",
|
|
3959
3959
|
"IconSolus",
|
|
3960
3960
|
"IconSolusOff"
|
|
3961
|
-
],
|
|
3961
|
+
], wt = [
|
|
3962
3962
|
"IconMessage",
|
|
3963
3963
|
"IconMessageCircle",
|
|
3964
3964
|
"IconMessageDots",
|
|
@@ -4100,14 +4100,14 @@ const po = () => {
|
|
|
4100
4100
|
"IconReceiptZloty"
|
|
4101
4101
|
];
|
|
4102
4102
|
[
|
|
4103
|
-
...ht,
|
|
4104
4103
|
...pt,
|
|
4105
4104
|
...mt,
|
|
4106
4105
|
...gt,
|
|
4107
4106
|
...It,
|
|
4108
4107
|
...yt,
|
|
4109
4108
|
...vt,
|
|
4110
|
-
...xt
|
|
4109
|
+
...xt,
|
|
4110
|
+
...wt
|
|
4111
4111
|
];
|
|
4112
4112
|
const $e = [
|
|
4113
4113
|
{
|
|
@@ -4120,57 +4120,57 @@ const $e = [
|
|
|
4120
4120
|
{
|
|
4121
4121
|
id: "user",
|
|
4122
4122
|
name: "User & Profile",
|
|
4123
|
-
icons:
|
|
4123
|
+
icons: pt
|
|
4124
4124
|
},
|
|
4125
4125
|
{
|
|
4126
4126
|
id: "business",
|
|
4127
4127
|
name: "Business & Work",
|
|
4128
|
-
icons:
|
|
4128
|
+
icons: mt
|
|
4129
4129
|
},
|
|
4130
4130
|
{
|
|
4131
4131
|
id: "tech",
|
|
4132
4132
|
name: "Technology",
|
|
4133
|
-
icons:
|
|
4133
|
+
icons: gt
|
|
4134
4134
|
},
|
|
4135
4135
|
{
|
|
4136
4136
|
id: "expressions",
|
|
4137
4137
|
name: "Expressions",
|
|
4138
|
-
icons:
|
|
4138
|
+
icons: It
|
|
4139
4139
|
},
|
|
4140
4140
|
{
|
|
4141
4141
|
id: "nature",
|
|
4142
4142
|
name: "Nature & Animals",
|
|
4143
|
-
icons:
|
|
4143
|
+
icons: yt
|
|
4144
4144
|
},
|
|
4145
4145
|
{
|
|
4146
4146
|
id: "shapes",
|
|
4147
4147
|
name: "Shapes & Symbols",
|
|
4148
|
-
icons:
|
|
4148
|
+
icons: vt
|
|
4149
4149
|
},
|
|
4150
4150
|
{
|
|
4151
4151
|
id: "actions",
|
|
4152
4152
|
name: "Actions & Tools",
|
|
4153
|
-
icons:
|
|
4153
|
+
icons: xt
|
|
4154
4154
|
},
|
|
4155
4155
|
{
|
|
4156
4156
|
id: "communication",
|
|
4157
4157
|
name: "Communication",
|
|
4158
|
-
icons:
|
|
4158
|
+
icons: wt
|
|
4159
4159
|
}
|
|
4160
4160
|
], go = {
|
|
4161
|
-
recent: /* @__PURE__ */ e(
|
|
4162
|
-
user: /* @__PURE__ */ e(
|
|
4161
|
+
recent: /* @__PURE__ */ e(it, { size: 20, strokeWidth: 2.5 }),
|
|
4162
|
+
user: /* @__PURE__ */ e(Dn, { size: 20, strokeWidth: 2.5 }),
|
|
4163
4163
|
business: /* @__PURE__ */ e(fr, { size: 20, strokeWidth: 2.5 }),
|
|
4164
4164
|
tech: /* @__PURE__ */ e(hr, { size: 20, strokeWidth: 2.5 }),
|
|
4165
4165
|
expressions: /* @__PURE__ */ e(qe, { size: 20, strokeWidth: 2.5 }),
|
|
4166
|
-
nature: /* @__PURE__ */ e(
|
|
4166
|
+
nature: /* @__PURE__ */ e(at, { size: 20, strokeWidth: 2.5 }),
|
|
4167
4167
|
shapes: /* @__PURE__ */ e(pr, { size: 20, strokeWidth: 2.5 }),
|
|
4168
4168
|
actions: /* @__PURE__ */ e(mr, { size: 20, strokeWidth: 2.5 }),
|
|
4169
4169
|
communication: /* @__PURE__ */ e(gr, { size: 20, strokeWidth: 2.5 })
|
|
4170
4170
|
}, Io = ({
|
|
4171
4171
|
selectedCategory: n,
|
|
4172
4172
|
onCategoryChange: o
|
|
4173
|
-
}) => /* @__PURE__ */ e(
|
|
4173
|
+
}) => /* @__PURE__ */ e(Jn, { gap: "0px", justify: "center", wrap: "wrap", children: $e.map((t) => {
|
|
4174
4174
|
const r = go[t.id];
|
|
4175
4175
|
return /* @__PURE__ */ e(
|
|
4176
4176
|
Ue,
|
|
@@ -4210,11 +4210,11 @@ const $e = [
|
|
|
4210
4210
|
},
|
|
4211
4211
|
t.id
|
|
4212
4212
|
);
|
|
4213
|
-
}) }),
|
|
4213
|
+
}) }), bt = Mn(
|
|
4214
4214
|
({ onIconSelect: n, height: o = 358 }) => {
|
|
4215
4215
|
var m, w;
|
|
4216
|
-
const [t, r] =
|
|
4217
|
-
|
|
4216
|
+
const [t, r] = O(""), [i, a] = O("recent"), [c, s] = O(!1), [l, d] = O([]);
|
|
4217
|
+
Qn(() => {
|
|
4218
4218
|
if (typeof window < "u") {
|
|
4219
4219
|
const y = localStorage.getItem("avatar-icon-recent");
|
|
4220
4220
|
if (y)
|
|
@@ -4245,14 +4245,14 @@ const $e = [
|
|
|
4245
4245
|
(y, S) => {
|
|
4246
4246
|
if (!y.trim())
|
|
4247
4247
|
return S;
|
|
4248
|
-
const M = y.toLowerCase().trim(),
|
|
4249
|
-
return S.filter((
|
|
4250
|
-
const x =
|
|
4251
|
-
return !!(x.some((B) =>
|
|
4252
|
-
(B) =>
|
|
4248
|
+
const M = y.toLowerCase().trim(), z = M.split(/\s+/);
|
|
4249
|
+
return S.filter((k) => {
|
|
4250
|
+
const x = k.replace(/^Icon/, "").split(/(?=[A-Z])/).map((B) => B.toLowerCase().trim()).filter((B) => B.length > 0);
|
|
4251
|
+
return !!(x.some((B) => z.some((L) => B === L)) || M.length > 2 && x.some(
|
|
4252
|
+
(B) => z.some((L) => B.startsWith(L))
|
|
4253
4253
|
) || M.length <= 2 && x.some(
|
|
4254
|
-
(B) =>
|
|
4255
|
-
) ||
|
|
4254
|
+
(B) => z.some((L) => B.includes(L))
|
|
4255
|
+
) || z.length > 1 && z.every(
|
|
4256
4256
|
(B) => x.some((L) => L === B || L.startsWith(B))
|
|
4257
4257
|
));
|
|
4258
4258
|
});
|
|
@@ -4261,14 +4261,14 @@ const $e = [
|
|
|
4261
4261
|
), I = K(() => t.trim() ? f(t, u) : p, [t, p, u, f]), h = j(
|
|
4262
4262
|
(y) => {
|
|
4263
4263
|
u.includes(y) && d((M) => {
|
|
4264
|
-
const
|
|
4264
|
+
const z = [
|
|
4265
4265
|
y,
|
|
4266
|
-
...M.filter((
|
|
4266
|
+
...M.filter((k) => k !== y)
|
|
4267
4267
|
].slice(0, 20);
|
|
4268
4268
|
return typeof window < "u" && localStorage.setItem(
|
|
4269
4269
|
"avatar-icon-recent",
|
|
4270
|
-
JSON.stringify(
|
|
4271
|
-
),
|
|
4270
|
+
JSON.stringify(z)
|
|
4271
|
+
), z;
|
|
4272
4272
|
}), n(y);
|
|
4273
4273
|
},
|
|
4274
4274
|
[n, u]
|
|
@@ -4283,12 +4283,12 @@ const $e = [
|
|
|
4283
4283
|
return /* @__PURE__ */ v(W, { gap: 0, style: { height: o, width: "100%" }, children: [
|
|
4284
4284
|
/* @__PURE__ */ e(b, { p: "sm", pb: "xs", children: /* @__PURE__ */ v(W, { gap: "xs", children: [
|
|
4285
4285
|
/* @__PURE__ */ e(
|
|
4286
|
-
|
|
4286
|
+
kn,
|
|
4287
4287
|
{
|
|
4288
4288
|
placeholder: t.trim() ? "Search all icons..." : `Search in ${(m = $e.find((y) => y.id === i)) == null ? void 0 : m.name}...`,
|
|
4289
4289
|
value: t,
|
|
4290
4290
|
onChange: (y) => r(y.target.value),
|
|
4291
|
-
leftSection: /* @__PURE__ */ e(
|
|
4291
|
+
leftSection: /* @__PURE__ */ e(zn, { size: 16 }),
|
|
4292
4292
|
fw: 500,
|
|
4293
4293
|
size: "sm",
|
|
4294
4294
|
radius: "md",
|
|
@@ -4314,7 +4314,7 @@ const $e = [
|
|
|
4314
4314
|
transition: "opacity 0.05s ease"
|
|
4315
4315
|
},
|
|
4316
4316
|
children: I.map((y) => /* @__PURE__ */ e(
|
|
4317
|
-
|
|
4317
|
+
ut,
|
|
4318
4318
|
{
|
|
4319
4319
|
iconName: y,
|
|
4320
4320
|
onClick: () => h(y),
|
|
@@ -4343,7 +4343,7 @@ const $e = [
|
|
|
4343
4343
|
] });
|
|
4344
4344
|
}
|
|
4345
4345
|
);
|
|
4346
|
-
|
|
4346
|
+
bt.displayName = "IconGrid";
|
|
4347
4347
|
const yo = ({
|
|
4348
4348
|
previewImage: n,
|
|
4349
4349
|
fileInputRef: o,
|
|
@@ -4358,7 +4358,7 @@ const yo = ({
|
|
|
4358
4358
|
n || t ? /* @__PURE__ */ v(b, { children: [
|
|
4359
4359
|
/* @__PURE__ */ e(T, { size: "sm", fw: 500, mb: "xs", children: "Preview" }),
|
|
4360
4360
|
/* @__PURE__ */ e(
|
|
4361
|
-
|
|
4361
|
+
et,
|
|
4362
4362
|
{
|
|
4363
4363
|
src: n,
|
|
4364
4364
|
radius: "md",
|
|
@@ -4386,7 +4386,7 @@ const yo = ({
|
|
|
4386
4386
|
height: "64px"
|
|
4387
4387
|
}
|
|
4388
4388
|
},
|
|
4389
|
-
leftSection: /* @__PURE__ */ e(
|
|
4389
|
+
leftSection: /* @__PURE__ */ e(Nn, { size: 20 }),
|
|
4390
4390
|
onClick: a,
|
|
4391
4391
|
loading: i,
|
|
4392
4392
|
disabled: i,
|
|
@@ -4398,7 +4398,7 @@ const yo = ({
|
|
|
4398
4398
|
ce,
|
|
4399
4399
|
{
|
|
4400
4400
|
variant: "outline",
|
|
4401
|
-
leftSection: /* @__PURE__ */ e(
|
|
4401
|
+
leftSection: /* @__PURE__ */ e(Nn, { size: 16 }),
|
|
4402
4402
|
onClick: a,
|
|
4403
4403
|
loading: i,
|
|
4404
4404
|
disabled: i,
|
|
@@ -4444,7 +4444,7 @@ const yo = ({
|
|
|
4444
4444
|
)
|
|
4445
4445
|
] }),
|
|
4446
4446
|
/* @__PURE__ */ e(T, { size: "xs", c: "var(--mantine-color-gray-6)", ta: "center", children: "Supported formats: JPG, PNG, GIF, WebP" })
|
|
4447
|
-
] }) }), vo = ({ onEmojiSelect: n }) => /* @__PURE__ */ e(mo, { onEmojiSelect: n, height: 358 }), xo = ({ onIconSelect: n }) => /* @__PURE__ */ e(
|
|
4447
|
+
] }) }), vo = ({ onEmojiSelect: n }) => /* @__PURE__ */ e(mo, { onEmojiSelect: n, height: 358 }), xo = ({ onIconSelect: n }) => /* @__PURE__ */ e(bt, { onIconSelect: n, height: 358 }), wo = ({
|
|
4448
4448
|
previewImage: n,
|
|
4449
4449
|
selectedEmoji: o,
|
|
4450
4450
|
size: t,
|
|
@@ -4482,7 +4482,7 @@ const yo = ({
|
|
|
4482
4482
|
/* @__PURE__ */ e(T, { size: "sm", c: "gray.6", children: "Loading avatar options..." })
|
|
4483
4483
|
] })
|
|
4484
4484
|
}
|
|
4485
|
-
),
|
|
4485
|
+
), jn = ({
|
|
4486
4486
|
editable: n = !0,
|
|
4487
4487
|
opened: o,
|
|
4488
4488
|
onOpen: t,
|
|
@@ -4506,9 +4506,9 @@ const yo = ({
|
|
|
4506
4506
|
tabHovered: y,
|
|
4507
4507
|
previewImage: S,
|
|
4508
4508
|
selectedEmoji: M,
|
|
4509
|
-
selectedIcon:
|
|
4510
|
-
selectedFile:
|
|
4511
|
-
handleTabChange:
|
|
4509
|
+
selectedIcon: z,
|
|
4510
|
+
selectedFile: k,
|
|
4511
|
+
handleTabChange: C,
|
|
4512
4512
|
handleTabHover: x,
|
|
4513
4513
|
handleImagePreview: B,
|
|
4514
4514
|
handleImageAccept: L,
|
|
@@ -4533,14 +4533,14 @@ const yo = ({
|
|
|
4533
4533
|
}, $ = (ie) => {
|
|
4534
4534
|
ie && B(ie);
|
|
4535
4535
|
}, H = () => {
|
|
4536
|
-
|
|
4536
|
+
k ? (L(), r()) : (M || z) && r();
|
|
4537
4537
|
}, oe = () => {
|
|
4538
4538
|
h.current && h.current.click();
|
|
4539
4539
|
}, J = () => {
|
|
4540
4540
|
Q();
|
|
4541
4541
|
}, q = () => {
|
|
4542
4542
|
console.log("Avatar removed"), c == null || c(), r();
|
|
4543
|
-
},
|
|
4543
|
+
}, D = () => !!i, E = () => l ? /* @__PURE__ */ e(bn, { size: s, loading: !0 }) : /* @__PURE__ */ e(
|
|
4544
4544
|
Oe,
|
|
4545
4545
|
{
|
|
4546
4546
|
avatar: i,
|
|
@@ -4570,10 +4570,10 @@ const yo = ({
|
|
|
4570
4570
|
{
|
|
4571
4571
|
selectedTab: w,
|
|
4572
4572
|
tabHovered: y,
|
|
4573
|
-
onTabChange:
|
|
4573
|
+
onTabChange: C,
|
|
4574
4574
|
onTabHover: x,
|
|
4575
4575
|
onRemove: q,
|
|
4576
|
-
hasAvatar:
|
|
4576
|
+
hasAvatar: D(),
|
|
4577
4577
|
children: w === "emoji" ? U : w === "icons" ? P : X
|
|
4578
4578
|
}
|
|
4579
4579
|
) }), G = /* @__PURE__ */ e("div", { style: { position: "relative", display: "inline-block" }, children: /* @__PURE__ */ v(
|
|
@@ -4599,7 +4599,7 @@ const yo = ({
|
|
|
4599
4599
|
ref: g,
|
|
4600
4600
|
p: 0,
|
|
4601
4601
|
style: { width: "auto", overflow: "hidden", zIndex: I },
|
|
4602
|
-
children: /* @__PURE__ */ e(
|
|
4602
|
+
children: /* @__PURE__ */ e(Zt, { fallback: /* @__PURE__ */ e(bo, {}), children: de })
|
|
4603
4603
|
}
|
|
4604
4604
|
)
|
|
4605
4605
|
]
|
|
@@ -4652,7 +4652,7 @@ const yo = ({
|
|
|
4652
4652
|
suggestedUsers: r = [],
|
|
4653
4653
|
tagDisplayMap: i = {}
|
|
4654
4654
|
}) => {
|
|
4655
|
-
const [a, c] =
|
|
4655
|
+
const [a, c] = O(""), [s, l] = O(
|
|
4656
4656
|
[]
|
|
4657
4657
|
), d = Z(null), u = n.map((g) => {
|
|
4658
4658
|
if (i[g])
|
|
@@ -4694,8 +4694,8 @@ const yo = ({
|
|
|
4694
4694
|
);
|
|
4695
4695
|
return S ? S.email : y;
|
|
4696
4696
|
}).filter((y) => y.includes("@") ? !0 : !m.some((M) => {
|
|
4697
|
-
const
|
|
4698
|
-
return
|
|
4697
|
+
const z = M.name.toLowerCase(), k = y.toLowerCase();
|
|
4698
|
+
return z.startsWith(k) && k !== z;
|
|
4699
4699
|
}));
|
|
4700
4700
|
o(w), c("");
|
|
4701
4701
|
},
|
|
@@ -4718,7 +4718,7 @@ const yo = ({
|
|
|
4718
4718
|
clearInput: f,
|
|
4719
4719
|
handleInvite: h
|
|
4720
4720
|
};
|
|
4721
|
-
},
|
|
4721
|
+
}, Mt = ({
|
|
4722
4722
|
onInvite: n,
|
|
4723
4723
|
onUpdateRole: o,
|
|
4724
4724
|
onRemoveUser: t,
|
|
@@ -4726,9 +4726,9 @@ const yo = ({
|
|
|
4726
4726
|
suggestedUsers: i = [],
|
|
4727
4727
|
roleOptions: a = []
|
|
4728
4728
|
}) => {
|
|
4729
|
-
const [c, s] =
|
|
4729
|
+
const [c, s] = O([]), [l, d] = O([]), [u, p] = O(""), [f, I] = O(
|
|
4730
4730
|
{}
|
|
4731
|
-
), h = a.length > 0 ? a[0].value : void 0, [g, m] =
|
|
4731
|
+
), h = a.length > 0 ? a[0].value : void 0, [g, m] = O(
|
|
4732
4732
|
h
|
|
4733
4733
|
);
|
|
4734
4734
|
Y(() => {
|
|
@@ -4739,15 +4739,15 @@ const yo = ({
|
|
|
4739
4739
|
(F) => F.filter((Q) => R.includes(Q))
|
|
4740
4740
|
);
|
|
4741
4741
|
}, [c, i.length]);
|
|
4742
|
-
const [w, y] =
|
|
4742
|
+
const [w, y] = O(
|
|
4743
4743
|
"invite"
|
|
4744
|
-
), [S, M] =
|
|
4744
|
+
), [S, M] = O(
|
|
4745
4745
|
null
|
|
4746
|
-
),
|
|
4746
|
+
), z = (R, F, Q) => {
|
|
4747
4747
|
n && n(R, F, Q), s([]), p("");
|
|
4748
|
-
},
|
|
4748
|
+
}, k = (R, F) => {
|
|
4749
4749
|
o && o(R, F);
|
|
4750
|
-
},
|
|
4750
|
+
}, C = (R) => {
|
|
4751
4751
|
t && t(R);
|
|
4752
4752
|
}, x = (R) => {
|
|
4753
4753
|
d(
|
|
@@ -4779,13 +4779,13 @@ const yo = ({
|
|
|
4779
4779
|
tabHovered: S,
|
|
4780
4780
|
setTabHovered: M,
|
|
4781
4781
|
filteredUsers: L,
|
|
4782
|
-
handleInvite:
|
|
4783
|
-
handleUpdateRole:
|
|
4784
|
-
handleRemoveUser:
|
|
4782
|
+
handleInvite: z,
|
|
4783
|
+
handleUpdateRole: k,
|
|
4784
|
+
handleRemoveUser: C,
|
|
4785
4785
|
handleToggleUser: x,
|
|
4786
4786
|
handleAddSuggestedUser: B
|
|
4787
4787
|
};
|
|
4788
|
-
},
|
|
4788
|
+
}, St = qt(
|
|
4789
4789
|
({
|
|
4790
4790
|
value: n,
|
|
4791
4791
|
onChange: o,
|
|
@@ -4798,7 +4798,7 @@ const yo = ({
|
|
|
4798
4798
|
suggestedUsers: l = [],
|
|
4799
4799
|
tagDisplayMap: d = {}
|
|
4800
4800
|
}, u) => {
|
|
4801
|
-
const [p, f] =
|
|
4801
|
+
const [p, f] = O(
|
|
4802
4802
|
"Hello, I would like to invite you to join my workspace"
|
|
4803
4803
|
), {
|
|
4804
4804
|
tagsInputRef: I,
|
|
@@ -4817,14 +4817,14 @@ const yo = ({
|
|
|
4817
4817
|
}), M = () => {
|
|
4818
4818
|
S(r, a, p), f("");
|
|
4819
4819
|
};
|
|
4820
|
-
|
|
4820
|
+
Xt(
|
|
4821
4821
|
u,
|
|
4822
4822
|
() => ({
|
|
4823
4823
|
clearInput: y
|
|
4824
4824
|
}),
|
|
4825
4825
|
[y]
|
|
4826
4826
|
);
|
|
4827
|
-
const
|
|
4827
|
+
const z = h.length > 0, k = c && i.length > 0, C = g.length > 0;
|
|
4828
4828
|
return /* @__PURE__ */ v(W, { gap: "md", children: [
|
|
4829
4829
|
/* @__PURE__ */ v(b, { children: [
|
|
4830
4830
|
/* @__PURE__ */ e(
|
|
@@ -4843,9 +4843,9 @@ const yo = ({
|
|
|
4843
4843
|
ref: I,
|
|
4844
4844
|
value: h,
|
|
4845
4845
|
onChange: w,
|
|
4846
|
-
placeholder:
|
|
4846
|
+
placeholder: z ? "" : t,
|
|
4847
4847
|
radius: "md",
|
|
4848
|
-
rightSection:
|
|
4848
|
+
rightSection: k ? /* @__PURE__ */ e(
|
|
4849
4849
|
b,
|
|
4850
4850
|
{
|
|
4851
4851
|
style: {
|
|
@@ -4858,7 +4858,7 @@ const yo = ({
|
|
|
4858
4858
|
alignItems: "center"
|
|
4859
4859
|
},
|
|
4860
4860
|
children: /* @__PURE__ */ e(
|
|
4861
|
-
|
|
4861
|
+
Ln,
|
|
4862
4862
|
{
|
|
4863
4863
|
value: a || "",
|
|
4864
4864
|
onChange: (x) => c(x),
|
|
@@ -4872,7 +4872,7 @@ const yo = ({
|
|
|
4872
4872
|
) : null,
|
|
4873
4873
|
rightSectionProps: {
|
|
4874
4874
|
style: {
|
|
4875
|
-
width:
|
|
4875
|
+
width: k ? "120px" : "0px",
|
|
4876
4876
|
position: "absolute",
|
|
4877
4877
|
height: "32px",
|
|
4878
4878
|
right: "8px"
|
|
@@ -4880,14 +4880,14 @@ const yo = ({
|
|
|
4880
4880
|
},
|
|
4881
4881
|
styles: {
|
|
4882
4882
|
input: {
|
|
4883
|
-
paddingRight:
|
|
4883
|
+
paddingRight: k ? "130px" : "12px",
|
|
4884
4884
|
minHeight: "36px",
|
|
4885
4885
|
display: "flex",
|
|
4886
4886
|
flexWrap: "wrap",
|
|
4887
4887
|
alignItems: "center",
|
|
4888
4888
|
gap: "4px",
|
|
4889
4889
|
borderRadius: "var(--mantine-radius-md)",
|
|
4890
|
-
border:
|
|
4890
|
+
border: C ? "2px solid var(--mantine-color-red-6)" : "2px solid var(--mantine-color-blue-7)",
|
|
4891
4891
|
backgroundColor: "var(--mantine-color-gray-0)"
|
|
4892
4892
|
},
|
|
4893
4893
|
pillsList: {
|
|
@@ -4897,8 +4897,8 @@ const yo = ({
|
|
|
4897
4897
|
pill: {
|
|
4898
4898
|
height: "24px !important",
|
|
4899
4899
|
borderRadius: "var(--mantine-radius-md) !important",
|
|
4900
|
-
backgroundColor:
|
|
4901
|
-
color:
|
|
4900
|
+
backgroundColor: C ? "var(--mantine-color-red-1) !important" : "var(--mantine-color-orange-1) !important",
|
|
4901
|
+
color: C ? "var(--mantine-color-red-7) !important" : "var(--mantine-color-gray-7) !important",
|
|
4902
4902
|
fontSize: "var(--mantine-font-size-sm)"
|
|
4903
4903
|
}
|
|
4904
4904
|
}
|
|
@@ -4906,15 +4906,15 @@ const yo = ({
|
|
|
4906
4906
|
)
|
|
4907
4907
|
}
|
|
4908
4908
|
),
|
|
4909
|
-
|
|
4909
|
+
C && /* @__PURE__ */ e(W, { gap: "xs", mt: "xs", children: g.map((x, B) => /* @__PURE__ */ v(T, { size: "xs", c: "red", children: [
|
|
4910
4910
|
x.email,
|
|
4911
4911
|
": ",
|
|
4912
4912
|
x.error
|
|
4913
4913
|
] }, B)) })
|
|
4914
4914
|
] }),
|
|
4915
|
-
|
|
4915
|
+
z && /* @__PURE__ */ v(W, { gap: "sm", children: [
|
|
4916
4916
|
/* @__PURE__ */ e(
|
|
4917
|
-
|
|
4917
|
+
Sn,
|
|
4918
4918
|
{
|
|
4919
4919
|
size: "sm",
|
|
4920
4920
|
value: p,
|
|
@@ -4994,7 +4994,7 @@ const yo = ({
|
|
|
4994
4994
|
const y = w;
|
|
4995
4995
|
r(n.id, y);
|
|
4996
4996
|
}
|
|
4997
|
-
}, p = c === "suggested" || c === "read-only", f = c === "invited" && a.length > 0, [I, h] =
|
|
4997
|
+
}, p = c === "suggested" || c === "read-only", f = c === "invited" && a.length > 0, [I, h] = O(!1);
|
|
4998
4998
|
return /* @__PURE__ */ v(
|
|
4999
4999
|
A,
|
|
5000
5000
|
{
|
|
@@ -5056,7 +5056,7 @@ const yo = ({
|
|
|
5056
5056
|
}
|
|
5057
5057
|
),
|
|
5058
5058
|
f && !n.isCurrentUser && /* @__PURE__ */ e(
|
|
5059
|
-
|
|
5059
|
+
Ln,
|
|
5060
5060
|
{
|
|
5061
5061
|
value: n.role,
|
|
5062
5062
|
onChange: u,
|
|
@@ -5094,14 +5094,14 @@ const yo = ({
|
|
|
5094
5094
|
selectedTab: y,
|
|
5095
5095
|
setSelectedTab: S,
|
|
5096
5096
|
tabHovered: M,
|
|
5097
|
-
setTabHovered:
|
|
5098
|
-
filteredUsers:
|
|
5099
|
-
handleInvite:
|
|
5097
|
+
setTabHovered: z,
|
|
5098
|
+
filteredUsers: k,
|
|
5099
|
+
handleInvite: C,
|
|
5100
5100
|
handleUpdateRole: x,
|
|
5101
5101
|
handleRemoveUser: B,
|
|
5102
5102
|
handleToggleUser: L,
|
|
5103
5103
|
handleAddSuggestedUser: R
|
|
5104
|
-
} =
|
|
5104
|
+
} = Mt({
|
|
5105
5105
|
onInvite: t,
|
|
5106
5106
|
onUpdateRole: r,
|
|
5107
5107
|
onRemoveUser: i,
|
|
@@ -5112,12 +5112,12 @@ const yo = ({
|
|
|
5112
5112
|
R(N), d.current && d.current.clearInput();
|
|
5113
5113
|
}, Q = /* @__PURE__ */ v(me, { children: [
|
|
5114
5114
|
/* @__PURE__ */ e(
|
|
5115
|
-
|
|
5115
|
+
St,
|
|
5116
5116
|
{
|
|
5117
5117
|
ref: d,
|
|
5118
5118
|
value: u,
|
|
5119
5119
|
onChange: p,
|
|
5120
|
-
onInvite:
|
|
5120
|
+
onInvite: C,
|
|
5121
5121
|
roleOptions: s,
|
|
5122
5122
|
selectedRole: m,
|
|
5123
5123
|
onRoleChange: w,
|
|
@@ -5144,20 +5144,20 @@ const yo = ({
|
|
|
5144
5144
|
N.id
|
|
5145
5145
|
)) })
|
|
5146
5146
|
] }) }) }),
|
|
5147
|
-
|
|
5147
|
+
k.length > 0 && /* @__PURE__ */ e(
|
|
5148
5148
|
ke,
|
|
5149
5149
|
{
|
|
5150
5150
|
pt: "sm",
|
|
5151
5151
|
mah: 200,
|
|
5152
5152
|
type: "auto",
|
|
5153
5153
|
style: { overflow: "visible" },
|
|
5154
|
-
children: /* @__PURE__ */ e(b, { children:
|
|
5154
|
+
children: /* @__PURE__ */ e(b, { children: k.length > 0 ? /* @__PURE__ */ v(me, { children: [
|
|
5155
5155
|
/* @__PURE__ */ v(T, { size: "sm", fw: 500, children: [
|
|
5156
5156
|
"Suggested ",
|
|
5157
5157
|
I.trim() && `(filtered by "${I}")`
|
|
5158
5158
|
] }),
|
|
5159
5159
|
/* @__PURE__ */ e(Ee, { h: "sm" }),
|
|
5160
|
-
/* @__PURE__ */ e(W, { gap: "sm", children:
|
|
5160
|
+
/* @__PURE__ */ e(W, { gap: "sm", children: k.map((N) => /* @__PURE__ */ e(
|
|
5161
5161
|
tn,
|
|
5162
5162
|
{
|
|
5163
5163
|
user: N,
|
|
@@ -5221,8 +5221,8 @@ const yo = ({
|
|
|
5221
5221
|
onClick: () => {
|
|
5222
5222
|
S("invite");
|
|
5223
5223
|
},
|
|
5224
|
-
onMouseEnter: () =>
|
|
5225
|
-
onMouseLeave: () =>
|
|
5224
|
+
onMouseEnter: () => z("invite"),
|
|
5225
|
+
onMouseLeave: () => z(null),
|
|
5226
5226
|
style: {
|
|
5227
5227
|
backgroundColor: "transparent"
|
|
5228
5228
|
},
|
|
@@ -5257,8 +5257,8 @@ const yo = ({
|
|
|
5257
5257
|
onClick: () => {
|
|
5258
5258
|
S("publish");
|
|
5259
5259
|
},
|
|
5260
|
-
onMouseEnter: () =>
|
|
5261
|
-
onMouseLeave: () =>
|
|
5260
|
+
onMouseEnter: () => z("publish"),
|
|
5261
|
+
onMouseLeave: () => z(null),
|
|
5262
5262
|
style: {
|
|
5263
5263
|
backgroundColor: "transparent"
|
|
5264
5264
|
},
|
|
@@ -5316,7 +5316,7 @@ const yo = ({
|
|
|
5316
5316
|
suggestedUsers: c,
|
|
5317
5317
|
label: s = "Share"
|
|
5318
5318
|
}) => {
|
|
5319
|
-
const [l, d] =
|
|
5319
|
+
const [l, d] = O(!1);
|
|
5320
5320
|
return /* @__PURE__ */ e(
|
|
5321
5321
|
To,
|
|
5322
5322
|
{
|
|
@@ -5330,7 +5330,7 @@ const yo = ({
|
|
|
5330
5330
|
roleOptions: a,
|
|
5331
5331
|
suggestedUsers: c,
|
|
5332
5332
|
children: /* @__PURE__ */ e(
|
|
5333
|
-
|
|
5333
|
+
En,
|
|
5334
5334
|
{
|
|
5335
5335
|
label: s,
|
|
5336
5336
|
onClick: () => d(!0),
|
|
@@ -5362,20 +5362,20 @@ const yo = ({
|
|
|
5362
5362
|
handleInvite: y,
|
|
5363
5363
|
handleUpdateRole: S,
|
|
5364
5364
|
handleRemoveUser: M,
|
|
5365
|
-
handleToggleUser:
|
|
5366
|
-
handleAddSuggestedUser:
|
|
5367
|
-
} =
|
|
5365
|
+
handleToggleUser: z,
|
|
5366
|
+
handleAddSuggestedUser: k
|
|
5367
|
+
} = Mt({
|
|
5368
5368
|
onInvite: t,
|
|
5369
5369
|
onUpdateRole: r,
|
|
5370
5370
|
onRemoveUser: i,
|
|
5371
5371
|
invitedUsers: a,
|
|
5372
5372
|
suggestedUsers: s,
|
|
5373
5373
|
roleOptions: c
|
|
5374
|
-
}),
|
|
5375
|
-
|
|
5374
|
+
}), C = (x) => {
|
|
5375
|
+
k(x), l.current && l.current.clearInput();
|
|
5376
5376
|
};
|
|
5377
5377
|
return /* @__PURE__ */ e(
|
|
5378
|
-
|
|
5378
|
+
Cn,
|
|
5379
5379
|
{
|
|
5380
5380
|
opened: n,
|
|
5381
5381
|
onClose: o,
|
|
@@ -5393,7 +5393,7 @@ const yo = ({
|
|
|
5393
5393
|
/* @__PURE__ */ e(
|
|
5394
5394
|
he,
|
|
5395
5395
|
{
|
|
5396
|
-
icon:
|
|
5396
|
+
icon: rt,
|
|
5397
5397
|
size: "md",
|
|
5398
5398
|
onClick: o,
|
|
5399
5399
|
color: "var(--mantine-color-gray-8)"
|
|
@@ -5401,7 +5401,7 @@ const yo = ({
|
|
|
5401
5401
|
)
|
|
5402
5402
|
] }),
|
|
5403
5403
|
/* @__PURE__ */ e(
|
|
5404
|
-
|
|
5404
|
+
St,
|
|
5405
5405
|
{
|
|
5406
5406
|
ref: l,
|
|
5407
5407
|
value: d,
|
|
@@ -5434,7 +5434,7 @@ const yo = ({
|
|
|
5434
5434
|
{
|
|
5435
5435
|
user: x,
|
|
5436
5436
|
isSelected: p.includes(x.id),
|
|
5437
|
-
onToggle:
|
|
5437
|
+
onToggle: z,
|
|
5438
5438
|
onUpdateRole: S,
|
|
5439
5439
|
onRemoveUser: M,
|
|
5440
5440
|
roleOptions: c,
|
|
@@ -5467,12 +5467,12 @@ const yo = ({
|
|
|
5467
5467
|
{
|
|
5468
5468
|
user: x,
|
|
5469
5469
|
isSelected: p.includes(x.id),
|
|
5470
|
-
onToggle:
|
|
5470
|
+
onToggle: z,
|
|
5471
5471
|
onUpdateRole: S,
|
|
5472
5472
|
onRemoveUser: M,
|
|
5473
5473
|
roleOptions: c,
|
|
5474
5474
|
variant: "suggested",
|
|
5475
|
-
onClick: () =>
|
|
5475
|
+
onClick: () => C(x)
|
|
5476
5476
|
},
|
|
5477
5477
|
x.id
|
|
5478
5478
|
)) })
|
|
@@ -5491,7 +5491,7 @@ const yo = ({
|
|
|
5491
5491
|
groups: a = [],
|
|
5492
5492
|
styles: c
|
|
5493
5493
|
}) => {
|
|
5494
|
-
const [s, l] =
|
|
5494
|
+
const [s, l] = O("");
|
|
5495
5495
|
Y(() => {
|
|
5496
5496
|
n && t.length > 0 ? l(t[0].id) : n || l("");
|
|
5497
5497
|
}, [n, t]);
|
|
@@ -5505,7 +5505,7 @@ const yo = ({
|
|
|
5505
5505
|
(I) => I.id === s
|
|
5506
5506
|
);
|
|
5507
5507
|
return /* @__PURE__ */ v(
|
|
5508
|
-
|
|
5508
|
+
Cn,
|
|
5509
5509
|
{
|
|
5510
5510
|
opened: n,
|
|
5511
5511
|
onClose: p,
|
|
@@ -5524,7 +5524,7 @@ const yo = ({
|
|
|
5524
5524
|
},
|
|
5525
5525
|
radius: "md",
|
|
5526
5526
|
children: [
|
|
5527
|
-
/* @__PURE__ */ e(
|
|
5527
|
+
/* @__PURE__ */ e(nt.InitialFocus, {}),
|
|
5528
5528
|
/* @__PURE__ */ v(b, { style: { display: "flex", height: "100%", ...c == null ? void 0 : c.body }, children: [
|
|
5529
5529
|
/* @__PURE__ */ e(
|
|
5530
5530
|
b,
|
|
@@ -5536,7 +5536,7 @@ const yo = ({
|
|
|
5536
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__ */ v(be.Fragment, { children: [
|
|
5537
5537
|
/* @__PURE__ */ e(T, { size: "xs", fw: 600, c: "dimmed", m: 4, children: I }),
|
|
5538
5538
|
t.filter((h) => h.group === I).map((h) => /* @__PURE__ */ e(
|
|
5539
|
-
|
|
5539
|
+
ht,
|
|
5540
5540
|
{
|
|
5541
5541
|
label: h.label,
|
|
5542
5542
|
icon: h.icon,
|
|
@@ -5657,7 +5657,7 @@ const yo = ({
|
|
|
5657
5657
|
actions: a
|
|
5658
5658
|
}) => {
|
|
5659
5659
|
var u, p, f, I, h;
|
|
5660
|
-
const c = (/* @__PURE__ */ new Date()).getTime() - new Date(n.timestamp).getTime() < 6048e5 ? jo(n.timestamp, "en") : Bo(n.timestamp, "en"), [s, l] =
|
|
5660
|
+
const c = (/* @__PURE__ */ new Date()).getTime() - new Date(n.timestamp).getTime() < 6048e5 ? jo(n.timestamp, "en") : Bo(n.timestamp, "en"), [s, l] = O(!1), d = /* @__PURE__ */ v(
|
|
5661
5661
|
A,
|
|
5662
5662
|
{
|
|
5663
5663
|
bg: "var(--mantine-color-gray-1)",
|
|
@@ -5678,7 +5678,7 @@ const yo = ({
|
|
|
5678
5678
|
he,
|
|
5679
5679
|
{
|
|
5680
5680
|
onClick: () => r(n.id),
|
|
5681
|
-
icon:
|
|
5681
|
+
icon: wn
|
|
5682
5682
|
}
|
|
5683
5683
|
)
|
|
5684
5684
|
]
|
|
@@ -5708,7 +5708,7 @@ const yo = ({
|
|
|
5708
5708
|
},
|
|
5709
5709
|
children: [
|
|
5710
5710
|
(u = n.metadata) != null && u.avatar_url ? /* @__PURE__ */ e(
|
|
5711
|
-
|
|
5711
|
+
et,
|
|
5712
5712
|
{
|
|
5713
5713
|
name: (p = n.metadata) == null ? void 0 : p.fullname,
|
|
5714
5714
|
size: "sm",
|
|
@@ -5745,7 +5745,7 @@ const yo = ({
|
|
|
5745
5745
|
] })
|
|
5746
5746
|
] }),
|
|
5747
5747
|
s ? d : !n.isRead && /* @__PURE__ */ e(
|
|
5748
|
-
|
|
5748
|
+
Xn,
|
|
5749
5749
|
{
|
|
5750
5750
|
color: "var(--mantine-color-blue-6)",
|
|
5751
5751
|
size: 10,
|
|
@@ -5772,7 +5772,7 @@ const yo = ({
|
|
|
5772
5772
|
}
|
|
5773
5773
|
);
|
|
5774
5774
|
}, Uo = (n, o, t, r, i) => {
|
|
5775
|
-
const [a, c] =
|
|
5775
|
+
const [a, c] = O(!1), s = Z(null), l = Z(null), d = Z(null);
|
|
5776
5776
|
Y(() => {
|
|
5777
5777
|
c(n);
|
|
5778
5778
|
}, [n]);
|
|
@@ -5845,7 +5845,7 @@ const yo = ({
|
|
|
5845
5845
|
},
|
|
5846
5846
|
{
|
|
5847
5847
|
children: "Archive all",
|
|
5848
|
-
leftSection: /* @__PURE__ */ e(
|
|
5848
|
+
leftSection: /* @__PURE__ */ e(wn, { size: 16 }),
|
|
5849
5849
|
onClick: () => c()
|
|
5850
5850
|
}
|
|
5851
5851
|
], y = [
|
|
@@ -5863,21 +5863,21 @@ const yo = ({
|
|
|
5863
5863
|
},
|
|
5864
5864
|
{
|
|
5865
5865
|
children: "Archived",
|
|
5866
|
-
leftSection: /* @__PURE__ */ e(
|
|
5866
|
+
leftSection: /* @__PURE__ */ e(wn, { size: 16 }),
|
|
5867
5867
|
onClick: () => u == null ? void 0 : u("archived"),
|
|
5868
5868
|
active: p === "archived"
|
|
5869
5869
|
}
|
|
5870
|
-
], S = (
|
|
5870
|
+
], S = (k) => f && k.category && ["welcome", "upgrade"].includes(k.category) ? f(k, s, l) : /* @__PURE__ */ e(
|
|
5871
5871
|
Fo,
|
|
5872
5872
|
{
|
|
5873
|
-
notification:
|
|
5873
|
+
notification: k,
|
|
5874
5874
|
markAsRead: s,
|
|
5875
5875
|
archiveNotification: l,
|
|
5876
|
-
message:
|
|
5877
|
-
actions:
|
|
5876
|
+
message: k.message,
|
|
5877
|
+
actions: k.actions
|
|
5878
5878
|
},
|
|
5879
|
-
|
|
5880
|
-
), { isActive: M, loadMoreRef:
|
|
5879
|
+
k.id
|
|
5880
|
+
), { isActive: M, loadMoreRef: z } = Uo(
|
|
5881
5881
|
I,
|
|
5882
5882
|
m,
|
|
5883
5883
|
d || (() => {
|
|
@@ -5887,7 +5887,7 @@ const yo = ({
|
|
|
5887
5887
|
);
|
|
5888
5888
|
return /* @__PURE__ */ v(me, { children: [
|
|
5889
5889
|
/* @__PURE__ */ e(
|
|
5890
|
-
|
|
5890
|
+
ht,
|
|
5891
5891
|
{
|
|
5892
5892
|
isActive: M,
|
|
5893
5893
|
icon: /* @__PURE__ */ e(
|
|
@@ -5914,7 +5914,7 @@ const yo = ({
|
|
|
5914
5914
|
}
|
|
5915
5915
|
),
|
|
5916
5916
|
/* @__PURE__ */ v(
|
|
5917
|
-
|
|
5917
|
+
On,
|
|
5918
5918
|
{
|
|
5919
5919
|
opened: I,
|
|
5920
5920
|
onClose: g,
|
|
@@ -5936,7 +5936,7 @@ const yo = ({
|
|
|
5936
5936
|
blur: 0
|
|
5937
5937
|
},
|
|
5938
5938
|
children: [
|
|
5939
|
-
/* @__PURE__ */ e(
|
|
5939
|
+
/* @__PURE__ */ e(nt.InitialFocus, {}),
|
|
5940
5940
|
/* @__PURE__ */ v(
|
|
5941
5941
|
b,
|
|
5942
5942
|
{
|
|
@@ -5973,7 +5973,7 @@ const yo = ({
|
|
|
5973
5973
|
{
|
|
5974
5974
|
position: "bottom-end",
|
|
5975
5975
|
menuItems: y,
|
|
5976
|
-
trigger: /* @__PURE__ */ e(he, { icon:
|
|
5976
|
+
trigger: /* @__PURE__ */ e(he, { icon: ot })
|
|
5977
5977
|
}
|
|
5978
5978
|
),
|
|
5979
5979
|
/* @__PURE__ */ e(
|
|
@@ -6012,7 +6012,7 @@ const yo = ({
|
|
|
6012
6012
|
children: /* @__PURE__ */ e(Se, {})
|
|
6013
6013
|
}
|
|
6014
6014
|
) : n.length > 0 ? /* @__PURE__ */ e(W, { gap: 0, children: n.map(
|
|
6015
|
-
(
|
|
6015
|
+
(k) => S(k)
|
|
6016
6016
|
) }) : /* @__PURE__ */ v(
|
|
6017
6017
|
W,
|
|
6018
6018
|
{
|
|
@@ -6031,7 +6031,7 @@ const yo = ({
|
|
|
6031
6031
|
/* @__PURE__ */ e(
|
|
6032
6032
|
b,
|
|
6033
6033
|
{
|
|
6034
|
-
ref:
|
|
6034
|
+
ref: z,
|
|
6035
6035
|
style: {
|
|
6036
6036
|
padding: "16px",
|
|
6037
6037
|
display: m ? "flex" : "none",
|
|
@@ -6069,7 +6069,7 @@ const yo = ({
|
|
|
6069
6069
|
}
|
|
6070
6070
|
)
|
|
6071
6071
|
] });
|
|
6072
|
-
},
|
|
6072
|
+
}, _n = ({
|
|
6073
6073
|
header: n,
|
|
6074
6074
|
body: o,
|
|
6075
6075
|
footer: t,
|
|
@@ -6077,7 +6077,7 @@ const yo = ({
|
|
|
6077
6077
|
position: i = "left",
|
|
6078
6078
|
bg: a = "var(--mantine-color-gray-0)"
|
|
6079
6079
|
}) => {
|
|
6080
|
-
const [c, s] =
|
|
6080
|
+
const [c, s] = O(!1);
|
|
6081
6081
|
return /* @__PURE__ */ v(
|
|
6082
6082
|
W,
|
|
6083
6083
|
{
|
|
@@ -6106,7 +6106,7 @@ const yo = ({
|
|
|
6106
6106
|
]
|
|
6107
6107
|
}
|
|
6108
6108
|
);
|
|
6109
|
-
},
|
|
6109
|
+
}, kt = Yn(void 0), Li = ({
|
|
6110
6110
|
children: n
|
|
6111
6111
|
}) => {
|
|
6112
6112
|
const [
|
|
@@ -6117,9 +6117,9 @@ const yo = ({
|
|
|
6117
6117
|
openNotificationSidebar: t,
|
|
6118
6118
|
closeNotificationSidebar: r
|
|
6119
6119
|
};
|
|
6120
|
-
return /* @__PURE__ */ e(
|
|
6120
|
+
return /* @__PURE__ */ e(kt.Provider, { value: i, children: n });
|
|
6121
6121
|
}, ji = () => {
|
|
6122
|
-
const n =
|
|
6122
|
+
const n = Zn(kt);
|
|
6123
6123
|
if (n === void 0)
|
|
6124
6124
|
throw new Error("useNavbar must be used within an NavbarProvider");
|
|
6125
6125
|
return n;
|
|
@@ -6216,13 +6216,13 @@ const yo = ({
|
|
|
6216
6216
|
children: I,
|
|
6217
6217
|
menuItems: h
|
|
6218
6218
|
}) => {
|
|
6219
|
-
const [g, m] =
|
|
6220
|
-
(
|
|
6219
|
+
const [g, m] = O(!1), [w, y] = O(""), S = K(() => w ? n.filter(
|
|
6220
|
+
(C) => {
|
|
6221
6221
|
var x;
|
|
6222
|
-
return
|
|
6222
|
+
return C.name.toLowerCase().includes(w.toLowerCase()) || ((x = C.ownerEmail) == null ? void 0 : x.toLowerCase().includes(w.toLowerCase()));
|
|
6223
6223
|
}
|
|
6224
|
-
) : n, [n, w]), M = (
|
|
6225
|
-
a == null || a(
|
|
6224
|
+
) : n, [n, w]), M = (C) => {
|
|
6225
|
+
a == null || a(C.id), m(!1), y("");
|
|
6226
6226
|
};
|
|
6227
6227
|
if (r)
|
|
6228
6228
|
return /* @__PURE__ */ v(A, { gap: "xs", children: [
|
|
@@ -6231,7 +6231,7 @@ const yo = ({
|
|
|
6231
6231
|
] });
|
|
6232
6232
|
if (i)
|
|
6233
6233
|
return /* @__PURE__ */ e(tr, { color: "red", title: "Error", children: d });
|
|
6234
|
-
const [
|
|
6234
|
+
const [z, k] = O(f);
|
|
6235
6235
|
return n.length === 0 && !r && !i ? /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(T, { size: "sm", c: "dimmed", children: s }) }) : /* @__PURE__ */ v(
|
|
6236
6236
|
pe,
|
|
6237
6237
|
{
|
|
@@ -6260,9 +6260,9 @@ const yo = ({
|
|
|
6260
6260
|
cursor: "pointer"
|
|
6261
6261
|
},
|
|
6262
6262
|
className: `${yn.workspaceButton} ${u || ""}`,
|
|
6263
|
-
bg:
|
|
6264
|
-
onMouseEnter: () =>
|
|
6265
|
-
onMouseLeave: () =>
|
|
6263
|
+
bg: z || g ? "var(--mantine-color-gray-1)" : "transparent",
|
|
6264
|
+
onMouseEnter: () => k(!0),
|
|
6265
|
+
onMouseLeave: () => k(!1),
|
|
6266
6266
|
children: /* @__PURE__ */ e(
|
|
6267
6267
|
A,
|
|
6268
6268
|
{
|
|
@@ -6298,18 +6298,18 @@ const yo = ({
|
|
|
6298
6298
|
icon: Ce,
|
|
6299
6299
|
size: "md",
|
|
6300
6300
|
onClick: () => m(!g),
|
|
6301
|
-
grayScaleBaseColor:
|
|
6301
|
+
grayScaleBaseColor: z ? 1 : 0
|
|
6302
6302
|
}
|
|
6303
6303
|
),
|
|
6304
|
-
(
|
|
6304
|
+
(z || f) && /* @__PURE__ */ e(
|
|
6305
6305
|
Be,
|
|
6306
6306
|
{
|
|
6307
|
-
icon:
|
|
6307
|
+
icon: ct,
|
|
6308
6308
|
size: "md",
|
|
6309
6309
|
onClick: () => {
|
|
6310
6310
|
p == null || p();
|
|
6311
6311
|
},
|
|
6312
|
-
grayScaleBaseColor:
|
|
6312
|
+
grayScaleBaseColor: z ? 1 : 0
|
|
6313
6313
|
}
|
|
6314
6314
|
)
|
|
6315
6315
|
] })
|
|
@@ -6332,7 +6332,7 @@ const yo = ({
|
|
|
6332
6332
|
/* @__PURE__ */ v(A, { justify: "space-between", align: "center", p: 4, children: [
|
|
6333
6333
|
/* @__PURE__ */ e(T, { size: "xs", c: "dimmed", fw: 500, p: 4, truncate: !0, children: "Workspaces" }),
|
|
6334
6334
|
c && /* @__PURE__ */ e(
|
|
6335
|
-
|
|
6335
|
+
tt,
|
|
6336
6336
|
{
|
|
6337
6337
|
onClick: () => {
|
|
6338
6338
|
c(), m(!1);
|
|
@@ -6351,10 +6351,10 @@ const yo = ({
|
|
|
6351
6351
|
}
|
|
6352
6352
|
)
|
|
6353
6353
|
] }),
|
|
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((
|
|
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((C) => /* @__PURE__ */ e(
|
|
6355
6355
|
b,
|
|
6356
6356
|
{
|
|
6357
|
-
onClick: () => M(
|
|
6357
|
+
onClick: () => M(C),
|
|
6358
6358
|
className: yn.menuItem,
|
|
6359
6359
|
style: {
|
|
6360
6360
|
padding: 0,
|
|
@@ -6371,25 +6371,25 @@ const yo = ({
|
|
|
6371
6371
|
children: /* @__PURE__ */ e(
|
|
6372
6372
|
No,
|
|
6373
6373
|
{
|
|
6374
|
-
workspace:
|
|
6374
|
+
workspace: C,
|
|
6375
6375
|
currentUserId: t,
|
|
6376
6376
|
currentWorkspaceId: o == null ? void 0 : o.id,
|
|
6377
|
-
onClick: () => M(
|
|
6377
|
+
onClick: () => M(C)
|
|
6378
6378
|
}
|
|
6379
6379
|
)
|
|
6380
6380
|
},
|
|
6381
|
-
|
|
6381
|
+
C.id
|
|
6382
6382
|
)) }) }) })
|
|
6383
6383
|
] }) }),
|
|
6384
6384
|
h && /* @__PURE__ */ e(pe.Divider, { style: { margin: "1px 0px" } }),
|
|
6385
|
-
h && /* @__PURE__ */ e(b, { p: 4, children: h == null ? void 0 : h.map((
|
|
6386
|
-
|
|
6385
|
+
h && /* @__PURE__ */ e(b, { p: 4, children: h == null ? void 0 : h.map((C) => /* @__PURE__ */ e(
|
|
6386
|
+
Kn,
|
|
6387
6387
|
{
|
|
6388
|
-
onClick:
|
|
6389
|
-
leftSection:
|
|
6390
|
-
children:
|
|
6391
|
-
color:
|
|
6392
|
-
"data-danger":
|
|
6388
|
+
onClick: C.onClick,
|
|
6389
|
+
leftSection: C.icon,
|
|
6390
|
+
children: C.label,
|
|
6391
|
+
color: C.color,
|
|
6392
|
+
"data-danger": C.color,
|
|
6393
6393
|
fw: 500,
|
|
6394
6394
|
style: {
|
|
6395
6395
|
height: "40px",
|
|
@@ -6397,7 +6397,7 @@ const yo = ({
|
|
|
6397
6397
|
padding: "6px"
|
|
6398
6398
|
}
|
|
6399
6399
|
},
|
|
6400
|
-
|
|
6400
|
+
C.label
|
|
6401
6401
|
)) })
|
|
6402
6402
|
] })
|
|
6403
6403
|
}
|
|
@@ -6405,7 +6405,7 @@ const yo = ({
|
|
|
6405
6405
|
]
|
|
6406
6406
|
}
|
|
6407
6407
|
);
|
|
6408
|
-
},
|
|
6408
|
+
}, Ct = ({
|
|
6409
6409
|
children: n,
|
|
6410
6410
|
style: o,
|
|
6411
6411
|
...t
|
|
@@ -6431,8 +6431,8 @@ const yo = ({
|
|
|
6431
6431
|
children: n
|
|
6432
6432
|
}
|
|
6433
6433
|
);
|
|
6434
|
-
|
|
6435
|
-
const
|
|
6434
|
+
Ct.displayName = "MatrixCenter";
|
|
6435
|
+
const Ot = ({
|
|
6436
6436
|
children: n,
|
|
6437
6437
|
style: o,
|
|
6438
6438
|
size: t = "50px",
|
|
@@ -6441,7 +6441,7 @@ const Ct = ({
|
|
|
6441
6441
|
interactive: a = !0,
|
|
6442
6442
|
...c
|
|
6443
6443
|
}) => {
|
|
6444
|
-
const [s, l] =
|
|
6444
|
+
const [s, l] = O(r), [d, u] = O(!1), p = i ? r : a ? s : r, f = () => {
|
|
6445
6445
|
if (!a)
|
|
6446
6446
|
return;
|
|
6447
6447
|
const g = ["empty", "outline", "filled"], w = (g.indexOf(p) + 1) % g.length, y = g[w];
|
|
@@ -6509,8 +6509,8 @@ const Ct = ({
|
|
|
6509
6509
|
}
|
|
6510
6510
|
);
|
|
6511
6511
|
};
|
|
6512
|
-
|
|
6513
|
-
const
|
|
6512
|
+
Ot.displayName = "MatrixCell";
|
|
6513
|
+
const zt = ({
|
|
6514
6514
|
children: n,
|
|
6515
6515
|
style: o,
|
|
6516
6516
|
size: t = "50px",
|
|
@@ -6522,7 +6522,7 @@ const Ot = ({
|
|
|
6522
6522
|
onBlockPress: l,
|
|
6523
6523
|
...d
|
|
6524
6524
|
}) => {
|
|
6525
|
-
const [u, p] =
|
|
6525
|
+
const [u, p] = O(!1), f = Z(null), I = Z(!1), h = () => {
|
|
6526
6526
|
!r || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
|
|
6527
6527
|
I.current = !0, l(r);
|
|
6528
6528
|
}, 500));
|
|
@@ -6559,8 +6559,8 @@ const Ot = ({
|
|
|
6559
6559
|
}
|
|
6560
6560
|
);
|
|
6561
6561
|
};
|
|
6562
|
-
|
|
6563
|
-
const
|
|
6562
|
+
zt.displayName = "MatrixBlockLeft";
|
|
6563
|
+
const Dt = ({
|
|
6564
6564
|
children: n,
|
|
6565
6565
|
style: o,
|
|
6566
6566
|
size: t = "50px",
|
|
@@ -6572,7 +6572,7 @@ const zt = ({
|
|
|
6572
6572
|
onBlockPress: l,
|
|
6573
6573
|
...d
|
|
6574
6574
|
}) => {
|
|
6575
|
-
const [u, p] =
|
|
6575
|
+
const [u, p] = O(!1), f = Z(null), I = Z(!1), h = () => {
|
|
6576
6576
|
!r || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
|
|
6577
6577
|
I.current = !0, l(r);
|
|
6578
6578
|
}, 500));
|
|
@@ -6609,8 +6609,8 @@ const zt = ({
|
|
|
6609
6609
|
}
|
|
6610
6610
|
);
|
|
6611
6611
|
};
|
|
6612
|
-
|
|
6613
|
-
const
|
|
6612
|
+
Dt.displayName = "MatrixBlockRight";
|
|
6613
|
+
const Rt = ({
|
|
6614
6614
|
children: n,
|
|
6615
6615
|
style: o,
|
|
6616
6616
|
size: t = "50px",
|
|
@@ -6622,7 +6622,7 @@ const Dt = ({
|
|
|
6622
6622
|
onBlockPress: l,
|
|
6623
6623
|
...d
|
|
6624
6624
|
}) => {
|
|
6625
|
-
const [u, p] =
|
|
6625
|
+
const [u, p] = O(!1), f = Z(null), I = Z(!1), h = () => {
|
|
6626
6626
|
!r || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
|
|
6627
6627
|
I.current = !0, l(r);
|
|
6628
6628
|
}, 500));
|
|
@@ -6659,8 +6659,8 @@ const Dt = ({
|
|
|
6659
6659
|
}
|
|
6660
6660
|
);
|
|
6661
6661
|
};
|
|
6662
|
-
|
|
6663
|
-
const
|
|
6662
|
+
Rt.displayName = "MatrixBlockUp";
|
|
6663
|
+
const Tt = ({
|
|
6664
6664
|
children: n,
|
|
6665
6665
|
style: o,
|
|
6666
6666
|
size: t = "50px",
|
|
@@ -6672,7 +6672,7 @@ const Rt = ({
|
|
|
6672
6672
|
onBlockPress: l,
|
|
6673
6673
|
...d
|
|
6674
6674
|
}) => {
|
|
6675
|
-
const [u, p] =
|
|
6675
|
+
const [u, p] = O(!1), f = Z(null), I = Z(!1), h = () => {
|
|
6676
6676
|
!r || !l || (p(!0), I.current = !1, f.current = setTimeout(() => {
|
|
6677
6677
|
I.current = !0, l(r);
|
|
6678
6678
|
}, 500));
|
|
@@ -6709,8 +6709,8 @@ const Rt = ({
|
|
|
6709
6709
|
}
|
|
6710
6710
|
);
|
|
6711
6711
|
};
|
|
6712
|
-
|
|
6713
|
-
const
|
|
6712
|
+
Tt.displayName = "MatrixBlockDown";
|
|
6713
|
+
const Et = ({
|
|
6714
6714
|
onLeftHover: n,
|
|
6715
6715
|
onRightHover: o,
|
|
6716
6716
|
onUpHover: t,
|
|
@@ -6720,7 +6720,7 @@ const Tt = ({
|
|
|
6720
6720
|
showUpControls: c = !1,
|
|
6721
6721
|
showDownControls: s = !1
|
|
6722
6722
|
}) => {
|
|
6723
|
-
const [l, d] =
|
|
6723
|
+
const [l, d] = O(!1), [u, p] = O(!1), [f, I] = O(!1), [h, g] = O(!1), m = (M) => {
|
|
6724
6724
|
d(M), n == null || n(M);
|
|
6725
6725
|
}, w = (M) => {
|
|
6726
6726
|
p(M), o == null || o(M);
|
|
@@ -6804,8 +6804,8 @@ const Tt = ({
|
|
|
6804
6804
|
)
|
|
6805
6805
|
] });
|
|
6806
6806
|
};
|
|
6807
|
-
|
|
6808
|
-
const
|
|
6807
|
+
Et.displayName = "HoverZones";
|
|
6808
|
+
const Bt = ({
|
|
6809
6809
|
onLeftPrevious: n,
|
|
6810
6810
|
onLeftNext: o,
|
|
6811
6811
|
leftCurrentPage: t = 1,
|
|
@@ -6827,9 +6827,9 @@ const Et = ({
|
|
|
6827
6827
|
upDisabled: y = !1,
|
|
6828
6828
|
upVisible: S = !1,
|
|
6829
6829
|
onUpHover: M,
|
|
6830
|
-
onDownPrevious:
|
|
6831
|
-
onDownNext:
|
|
6832
|
-
downCurrentPage:
|
|
6830
|
+
onDownPrevious: z,
|
|
6831
|
+
onDownNext: k,
|
|
6832
|
+
downCurrentPage: C = 1,
|
|
6833
6833
|
downTotalPages: x = 1,
|
|
6834
6834
|
downDisabled: B = !1,
|
|
6835
6835
|
downVisible: L = !1,
|
|
@@ -6877,7 +6877,7 @@ const Et = ({
|
|
|
6877
6877
|
color: "gray",
|
|
6878
6878
|
radius: "md",
|
|
6879
6879
|
"aria-label": "Next left blocks",
|
|
6880
|
-
children: /* @__PURE__ */ e(
|
|
6880
|
+
children: /* @__PURE__ */ e(Wn, { size: 16, stroke: 2 })
|
|
6881
6881
|
}
|
|
6882
6882
|
)
|
|
6883
6883
|
] }), oe = () => u <= 1 || p ? null : /* @__PURE__ */ v(W, { gap: "xs", align: "center", children: [
|
|
@@ -6891,7 +6891,7 @@ const Et = ({
|
|
|
6891
6891
|
color: "gray",
|
|
6892
6892
|
radius: "md",
|
|
6893
6893
|
"aria-label": "Previous right blocks",
|
|
6894
|
-
children: /* @__PURE__ */ e(
|
|
6894
|
+
children: /* @__PURE__ */ e(Wn, { size: 16, stroke: 2 })
|
|
6895
6895
|
}
|
|
6896
6896
|
),
|
|
6897
6897
|
/* @__PURE__ */ e(
|
|
@@ -6964,8 +6964,8 @@ const Et = ({
|
|
|
6964
6964
|
{
|
|
6965
6965
|
size: N,
|
|
6966
6966
|
variant: "subtle",
|
|
6967
|
-
onClick:
|
|
6968
|
-
disabled:
|
|
6967
|
+
onClick: z,
|
|
6968
|
+
disabled: C <= 1,
|
|
6969
6969
|
color: "gray",
|
|
6970
6970
|
radius: "md",
|
|
6971
6971
|
"aria-label": "Previous down blocks",
|
|
@@ -6989,17 +6989,17 @@ const Et = ({
|
|
|
6989
6989
|
{
|
|
6990
6990
|
size: N,
|
|
6991
6991
|
variant: "subtle",
|
|
6992
|
-
onClick:
|
|
6993
|
-
disabled:
|
|
6992
|
+
onClick: k,
|
|
6993
|
+
disabled: C >= x,
|
|
6994
6994
|
color: "gray",
|
|
6995
6995
|
radius: "md",
|
|
6996
6996
|
"aria-label": "Next down blocks",
|
|
6997
6997
|
children: /* @__PURE__ */ e(Ve, { size: 16, stroke: 2 })
|
|
6998
6998
|
}
|
|
6999
6999
|
)
|
|
7000
|
-
] }),
|
|
7001
|
-
return !
|
|
7002
|
-
|
|
7000
|
+
] }), D = r > 1 && !i, E = u > 1 && !p, U = w > 1 && !y, P = x > 1 && !B;
|
|
7001
|
+
return !D && !E && !U && !P ? null : $ ? /* @__PURE__ */ v(me, { children: [
|
|
7002
|
+
D && a && n && o && /* @__PURE__ */ e(
|
|
7003
7003
|
"div",
|
|
7004
7004
|
{
|
|
7005
7005
|
onMouseEnter: () => c == null ? void 0 : c(!0),
|
|
@@ -7023,7 +7023,7 @@ const Et = ({
|
|
|
7023
7023
|
children: J()
|
|
7024
7024
|
}
|
|
7025
7025
|
),
|
|
7026
|
-
P && L &&
|
|
7026
|
+
P && L && z && k && /* @__PURE__ */ e(
|
|
7027
7027
|
"div",
|
|
7028
7028
|
{
|
|
7029
7029
|
onMouseEnter: () => R == null ? void 0 : R(!0),
|
|
@@ -7032,7 +7032,7 @@ const Et = ({
|
|
|
7032
7032
|
}
|
|
7033
7033
|
)
|
|
7034
7034
|
] }) : /* @__PURE__ */ v(me, { children: [
|
|
7035
|
-
|
|
7035
|
+
D && a && n && o && /* @__PURE__ */ e(
|
|
7036
7036
|
b,
|
|
7037
7037
|
{
|
|
7038
7038
|
style: {
|
|
@@ -7101,12 +7101,12 @@ const Et = ({
|
|
|
7101
7101
|
},
|
|
7102
7102
|
onMouseEnter: () => R == null ? void 0 : R(!0),
|
|
7103
7103
|
onMouseLeave: () => R == null ? void 0 : R(!1),
|
|
7104
|
-
children: P && L &&
|
|
7104
|
+
children: P && L && z && k && q()
|
|
7105
7105
|
}
|
|
7106
7106
|
)
|
|
7107
7107
|
] });
|
|
7108
7108
|
};
|
|
7109
|
-
|
|
7109
|
+
Bt.displayName = "NavigationControls";
|
|
7110
7110
|
const Ze = ({
|
|
7111
7111
|
direction: n,
|
|
7112
7112
|
text: o,
|
|
@@ -7217,7 +7217,7 @@ const Ze = ({
|
|
|
7217
7217
|
onMouseEnter: () => l(!0),
|
|
7218
7218
|
onMouseLeave: () => l(!1),
|
|
7219
7219
|
children: /* @__PURE__ */ e(
|
|
7220
|
-
|
|
7220
|
+
Bt,
|
|
7221
7221
|
{
|
|
7222
7222
|
...u[n],
|
|
7223
7223
|
size: "sm",
|
|
@@ -7277,7 +7277,7 @@ const Ze = ({
|
|
|
7277
7277
|
c,
|
|
7278
7278
|
s,
|
|
7279
7279
|
l
|
|
7280
|
-
]), [u, p] =
|
|
7280
|
+
]), [u, p] = O(
|
|
7281
7281
|
{
|
|
7282
7282
|
leftStartIndex: 0,
|
|
7283
7283
|
rightStartIndex: 0,
|
|
@@ -7294,13 +7294,13 @@ const Ze = ({
|
|
|
7294
7294
|
), M = Math.min(
|
|
7295
7295
|
u.rightStartIndex,
|
|
7296
7296
|
Math.max(0, t - c)
|
|
7297
|
-
),
|
|
7297
|
+
), z = Math.min(
|
|
7298
7298
|
M + c,
|
|
7299
7299
|
t
|
|
7300
|
-
),
|
|
7300
|
+
), k = Math.min(
|
|
7301
7301
|
u.upStartIndex,
|
|
7302
7302
|
Math.max(0, r - s)
|
|
7303
|
-
),
|
|
7303
|
+
), C = Math.min(k + s, r), x = Math.min(
|
|
7304
7304
|
u.downStartIndex,
|
|
7305
7305
|
Math.max(0, i - l)
|
|
7306
7306
|
), B = Math.min(
|
|
@@ -7315,9 +7315,9 @@ const Ze = ({
|
|
|
7315
7315
|
leftStartIndex: y,
|
|
7316
7316
|
leftEndIndex: S,
|
|
7317
7317
|
rightStartIndex: M,
|
|
7318
|
-
rightEndIndex:
|
|
7319
|
-
upStartIndex:
|
|
7320
|
-
upEndIndex:
|
|
7318
|
+
rightEndIndex: z,
|
|
7319
|
+
upStartIndex: k,
|
|
7320
|
+
upEndIndex: C,
|
|
7321
7321
|
downStartIndex: x,
|
|
7322
7322
|
downEndIndex: B
|
|
7323
7323
|
};
|
|
@@ -7449,7 +7449,7 @@ const Ze = ({
|
|
|
7449
7449
|
};
|
|
7450
7450
|
return [u, I, f];
|
|
7451
7451
|
}, _o = (n, o = 0, t = 0, r = 0, i = 0) => {
|
|
7452
|
-
const [a, c] =
|
|
7452
|
+
const [a, c] = O({
|
|
7453
7453
|
width: typeof window < "u" ? window.innerWidth : 1920,
|
|
7454
7454
|
height: typeof window < "u" ? window.innerHeight : 1080
|
|
7455
7455
|
});
|
|
@@ -7478,11 +7478,11 @@ const Ze = ({
|
|
|
7478
7478
|
minBlocksDown: y = 1,
|
|
7479
7479
|
maxBlocksDown: S = 8,
|
|
7480
7480
|
responsiveCellSize: M = !1,
|
|
7481
|
-
minCellSize:
|
|
7482
|
-
maxCellSize:
|
|
7483
|
-
} = n,
|
|
7481
|
+
minCellSize: z = "30px",
|
|
7482
|
+
maxCellSize: k = "80px"
|
|
7483
|
+
} = n, C = parseFloat(l.replace("px", "")), x = parseFloat(d.replace("px", "")), B = a.width - C * 4, L = a.height - C * 4, R = x + C, F = Math.floor(
|
|
7484
7484
|
B / (2 * R)
|
|
7485
|
-
), Q = x +
|
|
7485
|
+
), Q = x + C, _ = Math.floor(L / Q) + 2, V = Math.min(F, _), N = Math.max(
|
|
7486
7486
|
u,
|
|
7487
7487
|
Math.min(p, V)
|
|
7488
7488
|
), $ = Math.max(
|
|
@@ -7494,7 +7494,7 @@ const Ze = ({
|
|
|
7494
7494
|
);
|
|
7495
7495
|
let oe = d;
|
|
7496
7496
|
if (M) {
|
|
7497
|
-
const U = parseFloat(
|
|
7497
|
+
const U = parseFloat(z.replace("px", "")), P = parseFloat(k.replace("px", "")), X = Math.min(
|
|
7498
7498
|
B / (a.width * 0.8),
|
|
7499
7499
|
// Max 80% of screen width
|
|
7500
7500
|
L / (a.height * 0.8)
|
|
@@ -7509,13 +7509,13 @@ const Ze = ({
|
|
|
7509
7509
|
a.width / 1920,
|
|
7510
7510
|
a.height / 1080
|
|
7511
7511
|
);
|
|
7512
|
-
let q,
|
|
7512
|
+
let q, D;
|
|
7513
7513
|
if (r > 0 && i > 0) {
|
|
7514
7514
|
const U = Math.max(r, i);
|
|
7515
7515
|
q = Math.max(
|
|
7516
7516
|
m,
|
|
7517
7517
|
Math.min(w, U)
|
|
7518
|
-
),
|
|
7518
|
+
), D = q;
|
|
7519
7519
|
} else {
|
|
7520
7520
|
const U = Math.max(m, y), P = Math.min(w, S), X = Math.max(
|
|
7521
7521
|
U,
|
|
@@ -7526,16 +7526,16 @@ const Ze = ({
|
|
|
7526
7526
|
)
|
|
7527
7527
|
)
|
|
7528
7528
|
);
|
|
7529
|
-
q = X,
|
|
7529
|
+
q = X, D = X;
|
|
7530
7530
|
}
|
|
7531
|
-
if (q +
|
|
7531
|
+
if (q + D + 1 > _) {
|
|
7532
7532
|
const U = Math.max(2, _ - 1);
|
|
7533
7533
|
if (Math.max(m, y) * 2 > U) {
|
|
7534
7534
|
const X = Math.max(1, Math.floor(U / 2));
|
|
7535
|
-
q = X,
|
|
7535
|
+
q = X, D = X;
|
|
7536
7536
|
} else {
|
|
7537
7537
|
const X = Math.max(m, y);
|
|
7538
|
-
q = X,
|
|
7538
|
+
q = X, D = X;
|
|
7539
7539
|
}
|
|
7540
7540
|
}
|
|
7541
7541
|
return console.log("Responsive Matrix Debug:", {
|
|
@@ -7548,9 +7548,9 @@ const Ze = ({
|
|
|
7548
7548
|
blocksUp: r,
|
|
7549
7549
|
blocksDown: i,
|
|
7550
7550
|
calculatedBlocksUp: q,
|
|
7551
|
-
calculatedBlocksDown:
|
|
7552
|
-
totalVerticalBlocks: q +
|
|
7553
|
-
isSymmetric: q ===
|
|
7551
|
+
calculatedBlocksDown: D,
|
|
7552
|
+
totalVerticalBlocks: q + D + 1,
|
|
7553
|
+
isSymmetric: q === D,
|
|
7554
7554
|
availableHeight: L,
|
|
7555
7555
|
maxBlocksVertical: _
|
|
7556
7556
|
}), {
|
|
@@ -7559,7 +7559,7 @@ const Ze = ({
|
|
|
7559
7559
|
blocksRight: H,
|
|
7560
7560
|
cellSize: oe,
|
|
7561
7561
|
blocksUp: q,
|
|
7562
|
-
blocksDown:
|
|
7562
|
+
blocksDown: D
|
|
7563
7563
|
};
|
|
7564
7564
|
}, [a, n, o, t, r, i]);
|
|
7565
7565
|
}, Go = ({
|
|
@@ -7584,9 +7584,9 @@ const Ze = ({
|
|
|
7584
7584
|
maxBlocksUp: y,
|
|
7585
7585
|
minBlocksDown: S,
|
|
7586
7586
|
maxBlocksDown: M,
|
|
7587
|
-
responsiveCellSize:
|
|
7588
|
-
minCellSize:
|
|
7589
|
-
maxCellSize:
|
|
7587
|
+
responsiveCellSize: z,
|
|
7588
|
+
minCellSize: k,
|
|
7589
|
+
maxCellSize: C
|
|
7590
7590
|
}) => {
|
|
7591
7591
|
const x = K(
|
|
7592
7592
|
() => c !== void 0 || s !== void 0 || l !== void 0 || d !== void 0,
|
|
@@ -7605,9 +7605,9 @@ const Ze = ({
|
|
|
7605
7605
|
maxBlocksUp: y,
|
|
7606
7606
|
minBlocksDown: S,
|
|
7607
7607
|
maxBlocksDown: M,
|
|
7608
|
-
responsiveCellSize:
|
|
7609
|
-
minCellSize:
|
|
7610
|
-
maxCellSize:
|
|
7608
|
+
responsiveCellSize: z,
|
|
7609
|
+
minCellSize: k,
|
|
7610
|
+
maxCellSize: C
|
|
7611
7611
|
},
|
|
7612
7612
|
t ?? 0,
|
|
7613
7613
|
r ?? 0,
|
|
@@ -7616,10 +7616,10 @@ const Ze = ({
|
|
|
7616
7616
|
), L = K(() => {
|
|
7617
7617
|
let _ = u ? B.blocksLeft : t ?? 0, V = u ? B.blocksRight : r ?? 0, N = u ? B.blocksUp : i ?? 0, $ = u ? B.blocksDown : a ?? 0;
|
|
7618
7618
|
if (!u) {
|
|
7619
|
-
const H = parseFloat(n.replace("px", "")), oe = parseFloat(o.replace("px", "")), J = typeof window < "u" ? window.innerWidth - H * 4 : 1920, q = typeof window < "u" ? window.innerHeight - H * 4 : 1080,
|
|
7620
|
-
J / (2 *
|
|
7619
|
+
const H = parseFloat(n.replace("px", "")), oe = parseFloat(o.replace("px", "")), J = typeof window < "u" ? window.innerWidth - H * 4 : 1920, q = typeof window < "u" ? window.innerHeight - H * 4 : 1080, D = oe + H, E = Math.floor(
|
|
7620
|
+
J / (2 * D)
|
|
7621
7621
|
), U = Math.floor(
|
|
7622
|
-
q / (2 *
|
|
7622
|
+
q / (2 * D)
|
|
7623
7623
|
);
|
|
7624
7624
|
_ = Math.min(_, E), V = Math.min(V, E), N = Math.min(N, U), $ = Math.min($, U);
|
|
7625
7625
|
}
|
|
@@ -7735,7 +7735,7 @@ const Ze = ({
|
|
|
7735
7735
|
paginationState: c,
|
|
7736
7736
|
paginationInfo: s
|
|
7737
7737
|
}) => {
|
|
7738
|
-
const [l, d] =
|
|
7738
|
+
const [l, d] = O({
|
|
7739
7739
|
left: !1,
|
|
7740
7740
|
right: !1,
|
|
7741
7741
|
up: !1,
|
|
@@ -7784,7 +7784,7 @@ const Ze = ({
|
|
|
7784
7784
|
blockItems: n,
|
|
7785
7785
|
blockConnections: o
|
|
7786
7786
|
}) => {
|
|
7787
|
-
const [t, r] =
|
|
7787
|
+
const [t, r] = O(null), [i, a] = O(!1), c = K(() => {
|
|
7788
7788
|
const g = /* @__PURE__ */ new Map();
|
|
7789
7789
|
return o.forEach((m) => {
|
|
7790
7790
|
const w = `${m.source}-${m.target}`, y = `${m.target}-${m.source}`;
|
|
@@ -7810,37 +7810,37 @@ const Ze = ({
|
|
|
7810
7810
|
switch (m.type) {
|
|
7811
7811
|
case "up":
|
|
7812
7812
|
w.forEach((S) => {
|
|
7813
|
-
const M = n.find((
|
|
7814
|
-
M && (M.type === "left" || M.type === "right") && (y.push(S), s(S).forEach((
|
|
7815
|
-
const
|
|
7816
|
-
|
|
7813
|
+
const M = n.find((z) => z.id === S);
|
|
7814
|
+
M && (M.type === "left" || M.type === "right") && (y.push(S), s(S).forEach((k) => {
|
|
7815
|
+
const C = n.find((x) => x.id === k);
|
|
7816
|
+
C && C.type === "down" && y.push(k);
|
|
7817
7817
|
}));
|
|
7818
7818
|
});
|
|
7819
7819
|
break;
|
|
7820
7820
|
case "down":
|
|
7821
7821
|
w.forEach((S) => {
|
|
7822
|
-
const M = n.find((
|
|
7823
|
-
M && (M.type === "left" || M.type === "right") && (y.push(S), s(S).forEach((
|
|
7824
|
-
const
|
|
7825
|
-
|
|
7822
|
+
const M = n.find((z) => z.id === S);
|
|
7823
|
+
M && (M.type === "left" || M.type === "right") && (y.push(S), s(S).forEach((k) => {
|
|
7824
|
+
const C = n.find((x) => x.id === k);
|
|
7825
|
+
C && C.type === "up" && y.push(k);
|
|
7826
7826
|
}));
|
|
7827
7827
|
});
|
|
7828
7828
|
break;
|
|
7829
7829
|
case "left":
|
|
7830
7830
|
w.forEach((S) => {
|
|
7831
|
-
const M = n.find((
|
|
7832
|
-
M && (M.type === "up" || M.type === "down") && (y.push(S), s(S).forEach((
|
|
7833
|
-
const
|
|
7834
|
-
|
|
7831
|
+
const M = n.find((z) => z.id === S);
|
|
7832
|
+
M && (M.type === "up" || M.type === "down") && (y.push(S), s(S).forEach((k) => {
|
|
7833
|
+
const C = n.find((x) => x.id === k);
|
|
7834
|
+
C && C.type === "right" && y.push(k);
|
|
7835
7835
|
}));
|
|
7836
7836
|
});
|
|
7837
7837
|
break;
|
|
7838
7838
|
case "right":
|
|
7839
7839
|
w.forEach((S) => {
|
|
7840
|
-
const M = n.find((
|
|
7841
|
-
M && (M.type === "up" || M.type === "down") && (y.push(S), s(S).forEach((
|
|
7842
|
-
const
|
|
7843
|
-
|
|
7840
|
+
const M = n.find((z) => z.id === S);
|
|
7841
|
+
M && (M.type === "up" || M.type === "down") && (y.push(S), s(S).forEach((k) => {
|
|
7842
|
+
const C = n.find((x) => x.id === k);
|
|
7843
|
+
C && C.type === "left" && y.push(k);
|
|
7844
7844
|
}));
|
|
7845
7845
|
});
|
|
7846
7846
|
break;
|
|
@@ -7875,8 +7875,8 @@ const Ze = ({
|
|
|
7875
7875
|
clearFiltering: h,
|
|
7876
7876
|
getFilteredBlockIds: l
|
|
7877
7877
|
};
|
|
7878
|
-
},
|
|
7879
|
-
const [t, r] =
|
|
7878
|
+
}, Gn = (n) => parseInt(n.replace(/[^\d]/g, ""), 10) || 0, Xo = (n, o) => {
|
|
7879
|
+
const [t, r] = O({ width: 0, height: 0 }), i = j(() => {
|
|
7880
7880
|
const { width: a, height: c } = t;
|
|
7881
7881
|
if (a === 0 || c === 0)
|
|
7882
7882
|
return {
|
|
@@ -7887,7 +7887,7 @@ const Ze = ({
|
|
|
7887
7887
|
containerWidth: a,
|
|
7888
7888
|
containerHeight: c
|
|
7889
7889
|
};
|
|
7890
|
-
const s =
|
|
7890
|
+
const s = Gn(o.cellSize), l = Gn(o.gap), d = s + l, u = a - l * 2, p = c - l * 2, f = Math.floor(
|
|
7891
7891
|
p * o.verticalMaxPercent / 100 / d
|
|
7892
7892
|
), I = Math.floor(
|
|
7893
7893
|
u * o.horizontalMaxPercent / 100 / d
|
|
@@ -7901,12 +7901,12 @@ const Ze = ({
|
|
|
7901
7901
|
), w = Math.max(
|
|
7902
7902
|
o.minHorizontalBlocks,
|
|
7903
7903
|
g
|
|
7904
|
-
), y = Math.max(m, f), S = Math.max(w, I), M = Math.floor(y / 2),
|
|
7904
|
+
), y = Math.max(m, f), S = Math.max(w, I), M = Math.floor(y / 2), z = Math.floor(y / 2), k = Math.floor(S / 2), C = Math.floor(S / 2);
|
|
7905
7905
|
return {
|
|
7906
7906
|
blocksUp: M,
|
|
7907
|
-
blocksDown:
|
|
7908
|
-
blocksLeft:
|
|
7909
|
-
blocksRight:
|
|
7907
|
+
blocksDown: z,
|
|
7908
|
+
blocksLeft: k,
|
|
7909
|
+
blocksRight: C,
|
|
7910
7910
|
containerWidth: a,
|
|
7911
7911
|
containerHeight: c
|
|
7912
7912
|
};
|
|
@@ -7968,9 +7968,9 @@ const Ze = ({
|
|
|
7968
7968
|
totalBlocksDown: S,
|
|
7969
7969
|
usePagination: M = !1,
|
|
7970
7970
|
// DEPRECATED RESPONSIVE PROPS - Keep for backward compatibility
|
|
7971
|
-
responsive:
|
|
7972
|
-
minBlocksPerSide:
|
|
7973
|
-
maxBlocksPerSide:
|
|
7971
|
+
responsive: z = !1,
|
|
7972
|
+
minBlocksPerSide: k = 2,
|
|
7973
|
+
maxBlocksPerSide: C = 15,
|
|
7974
7974
|
minBlocksHorizontal: x = 2,
|
|
7975
7975
|
maxBlocksHorizontal: B = 16,
|
|
7976
7976
|
minBlocksVertical: L = 2,
|
|
@@ -7986,7 +7986,7 @@ const Ze = ({
|
|
|
7986
7986
|
maxBlocksDown: oe = 8,
|
|
7987
7987
|
responsiveCellSize: J = !1,
|
|
7988
7988
|
minCellSize: q = "30px",
|
|
7989
|
-
maxCellSize:
|
|
7989
|
+
maxCellSize: D = "80px",
|
|
7990
7990
|
directionTexts: E,
|
|
7991
7991
|
...U
|
|
7992
7992
|
}) => {
|
|
@@ -7998,8 +7998,8 @@ const Ze = ({
|
|
|
7998
7998
|
});
|
|
7999
7999
|
let de = l, G = d, ge = u, ie = p;
|
|
8000
8000
|
s ? (de = Math.floor(X.blocksLeft), G = Math.floor(X.blocksRight), ge = Math.floor(X.blocksUp), ie = Math.floor(X.blocksDown)) : (i !== void 0 || a !== void 0) && (i !== void 0 && (ge = Math.floor(i / 2), ie = Math.floor(i / 2)), a !== void 0 && (de = Math.floor(a / 2), G = Math.floor(a / 2)));
|
|
8001
|
-
const ze = F !== 1 ? F : Math.floor(x / 2), cn = Q !== 8 ? Q : Math.floor(B / 2), sn = _ !== 1 ? _ : Math.ceil(x / 2), Ie = V !== 8 ? V : Math.ceil(B / 2), Le = N !== 1 ? N : Math.floor(L / 2), _e = $ !== 8 ? $ : Math.floor(R / 2),
|
|
8002
|
-
usePagination:
|
|
8001
|
+
const ze = F !== 1 ? F : Math.floor(x / 2), cn = Q !== 8 ? Q : Math.floor(B / 2), sn = _ !== 1 ? _ : Math.ceil(x / 2), Ie = V !== 8 ? V : Math.ceil(B / 2), Le = N !== 1 ? N : Math.floor(L / 2), _e = $ !== 8 ? $ : Math.floor(R / 2), Ut = H !== 1 ? H : Math.ceil(L / 2), Nt = oe !== 8 ? oe : Math.ceil(R / 2), {
|
|
8002
|
+
usePagination: Wt,
|
|
8003
8003
|
finalBlocks: ee,
|
|
8004
8004
|
finalCellSize: ye,
|
|
8005
8005
|
gridDimensions: Ge
|
|
@@ -8014,23 +8014,23 @@ const Ze = ({
|
|
|
8014
8014
|
totalBlocksRight: w,
|
|
8015
8015
|
totalBlocksUp: y,
|
|
8016
8016
|
totalBlocksDown: S,
|
|
8017
|
-
responsive:
|
|
8018
|
-
minBlocksPerSide:
|
|
8019
|
-
maxBlocksPerSide:
|
|
8017
|
+
responsive: z,
|
|
8018
|
+
minBlocksPerSide: k,
|
|
8019
|
+
maxBlocksPerSide: C,
|
|
8020
8020
|
minBlocksLeft: ze,
|
|
8021
8021
|
maxBlocksLeft: cn,
|
|
8022
8022
|
minBlocksRight: sn,
|
|
8023
8023
|
maxBlocksRight: Ie,
|
|
8024
8024
|
minBlocksUp: Le,
|
|
8025
8025
|
maxBlocksUp: _e,
|
|
8026
|
-
minBlocksDown:
|
|
8027
|
-
maxBlocksDown:
|
|
8026
|
+
minBlocksDown: Ut,
|
|
8027
|
+
maxBlocksDown: Nt,
|
|
8028
8028
|
responsiveCellSize: J,
|
|
8029
8029
|
minCellSize: q,
|
|
8030
|
-
maxCellSize:
|
|
8031
|
-
}), { getBlockContent: Qe, getIntersectionText:
|
|
8030
|
+
maxCellSize: D
|
|
8031
|
+
}), { getBlockContent: Qe, getIntersectionText: $t } = Qo({
|
|
8032
8032
|
blockItems: f
|
|
8033
|
-
}), { getConnectionStateFromText:
|
|
8033
|
+
}), { getConnectionStateFromText: Ht } = Yo({
|
|
8034
8034
|
blockConnections: I
|
|
8035
8035
|
}), ne = qo({
|
|
8036
8036
|
blockItems: f,
|
|
@@ -8044,7 +8044,7 @@ const Ze = ({
|
|
|
8044
8044
|
};
|
|
8045
8045
|
return window.addEventListener("keydown", ln), () => window.removeEventListener("keydown", ln);
|
|
8046
8046
|
}, [h, ne]);
|
|
8047
|
-
const [ve,
|
|
8047
|
+
const [ve, Pt, Vt] = Vo({
|
|
8048
8048
|
totalBlocksLeft: m ?? 0,
|
|
8049
8049
|
totalBlocksRight: w ?? 0,
|
|
8050
8050
|
totalBlocksUp: y ?? 0,
|
|
@@ -8054,14 +8054,14 @@ const Ze = ({
|
|
|
8054
8054
|
visibleBlocksUp: ee.up,
|
|
8055
8055
|
visibleBlocksDown: ee.down
|
|
8056
8056
|
}), { getNavigationControlProps: De } = Zo({
|
|
8057
|
-
usePagination:
|
|
8057
|
+
usePagination: Wt,
|
|
8058
8058
|
totalBlocksLeft: m,
|
|
8059
8059
|
totalBlocksRight: w,
|
|
8060
8060
|
totalBlocksUp: y,
|
|
8061
8061
|
totalBlocksDown: S,
|
|
8062
|
-
paginationActions:
|
|
8062
|
+
paginationActions: Pt,
|
|
8063
8063
|
paginationState: ve,
|
|
8064
|
-
paginationInfo:
|
|
8064
|
+
paginationInfo: Vt
|
|
8065
8065
|
});
|
|
8066
8066
|
return /* @__PURE__ */ v(
|
|
8067
8067
|
b,
|
|
@@ -8089,7 +8089,7 @@ const Ze = ({
|
|
|
8089
8089
|
const dn = ee.up > 0 ? ae === ee.up : ae === 0, un = ue === ee.left;
|
|
8090
8090
|
if (dn && un)
|
|
8091
8091
|
return /* @__PURE__ */ v(
|
|
8092
|
-
|
|
8092
|
+
Ct,
|
|
8093
8093
|
{
|
|
8094
8094
|
style: {
|
|
8095
8095
|
width: "100%",
|
|
@@ -8133,7 +8133,7 @@ const Ze = ({
|
|
|
8133
8133
|
}
|
|
8134
8134
|
),
|
|
8135
8135
|
M && /* @__PURE__ */ e(
|
|
8136
|
-
|
|
8136
|
+
Et,
|
|
8137
8137
|
{
|
|
8138
8138
|
showLeftControls: !!m,
|
|
8139
8139
|
showRightControls: !!w,
|
|
@@ -8152,7 +8152,7 @@ const Ze = ({
|
|
|
8152
8152
|
if (dn && ue < ee.left) {
|
|
8153
8153
|
const te = M && m ? ve.leftStartIndex + ue : ue, se = `left-${te}`;
|
|
8154
8154
|
return /* @__PURE__ */ e(
|
|
8155
|
-
|
|
8155
|
+
zt,
|
|
8156
8156
|
{
|
|
8157
8157
|
size: ye,
|
|
8158
8158
|
blockId: h ? se : void 0,
|
|
@@ -8169,7 +8169,7 @@ const Ze = ({
|
|
|
8169
8169
|
if (dn && ue > ee.left) {
|
|
8170
8170
|
const te = ue - ee.left - 1, se = M && w ? ve.rightStartIndex + (ee.right - 1 - te) : ee.right - 1 - te, xe = `right-${se}`;
|
|
8171
8171
|
return /* @__PURE__ */ e(
|
|
8172
|
-
|
|
8172
|
+
Dt,
|
|
8173
8173
|
{
|
|
8174
8174
|
size: ye,
|
|
8175
8175
|
blockId: h ? xe : void 0,
|
|
@@ -8186,7 +8186,7 @@ const Ze = ({
|
|
|
8186
8186
|
if (un && ae < ee.up) {
|
|
8187
8187
|
const te = M && y ? ve.upStartIndex + ae : ae, se = `up-${te}`;
|
|
8188
8188
|
return /* @__PURE__ */ e(
|
|
8189
|
-
|
|
8189
|
+
Rt,
|
|
8190
8190
|
{
|
|
8191
8191
|
size: ye,
|
|
8192
8192
|
blockId: h ? se : void 0,
|
|
@@ -8203,7 +8203,7 @@ const Ze = ({
|
|
|
8203
8203
|
if (un && ae > ee.up) {
|
|
8204
8204
|
const te = ae - ee.up - 1, se = M && S ? ve.downStartIndex + te : te, xe = `down-${se}`;
|
|
8205
8205
|
return /* @__PURE__ */ e(
|
|
8206
|
-
|
|
8206
|
+
Tt,
|
|
8207
8207
|
{
|
|
8208
8208
|
size: ye,
|
|
8209
8209
|
blockId: h ? xe : void 0,
|
|
@@ -8217,16 +8217,16 @@ const Ze = ({
|
|
|
8217
8217
|
`down-${te}`
|
|
8218
8218
|
);
|
|
8219
8219
|
}
|
|
8220
|
-
const fn = ue < ee.left ? ue : null, Ye = ue > ee.left ? ue - ee.left - 1 : null, hn = ae < ee.up ? ae : null, pn = ae > ee.up ? ae - ee.up - 1 : null,
|
|
8221
|
-
Vt,
|
|
8220
|
+
const fn = ue < ee.left ? ue : null, Ye = ue > ee.left ? ue - ee.left - 1 : null, hn = ae < ee.up ? ae : null, pn = ae > ee.up ? ae - ee.up - 1 : null, _t = M && m && fn !== null ? ve.leftStartIndex + fn : fn, Gt = M && w && Ye !== null ? ve.rightStartIndex + (ee.right - 1 - Ye) : Ye !== null ? ee.right - 1 - Ye : null, Qt = M && y && hn !== null ? ve.upStartIndex + hn : hn, Yt = M && S && pn !== null ? ve.downStartIndex + pn : pn, mn = $t(
|
|
8222
8221
|
_t,
|
|
8223
8222
|
Gt,
|
|
8224
|
-
Qt
|
|
8223
|
+
Qt,
|
|
8224
|
+
Yt
|
|
8225
8225
|
);
|
|
8226
8226
|
if (mn && mn.length > 0) {
|
|
8227
|
-
const te =
|
|
8227
|
+
const te = Ht(mn);
|
|
8228
8228
|
return /* @__PURE__ */ e(
|
|
8229
|
-
|
|
8229
|
+
Ot,
|
|
8230
8230
|
{
|
|
8231
8231
|
size: ye,
|
|
8232
8232
|
state: te,
|
|
@@ -8377,7 +8377,7 @@ const Ae = ({
|
|
|
8377
8377
|
{
|
|
8378
8378
|
label: n,
|
|
8379
8379
|
icon: o,
|
|
8380
|
-
value: /* @__PURE__ */ e(
|
|
8380
|
+
value: /* @__PURE__ */ e(tt, { href: t, target: i, size: "sm", underline: "hover", children: r || t })
|
|
8381
8381
|
}
|
|
8382
8382
|
), Wi = ({
|
|
8383
8383
|
label: n,
|
|
@@ -8428,7 +8428,7 @@ const Ae = ({
|
|
|
8428
8428
|
debounceSearch: t = !0,
|
|
8429
8429
|
debounceDelay: r = ei
|
|
8430
8430
|
}) => {
|
|
8431
|
-
const [i, a] =
|
|
8431
|
+
const [i, a] = O(""), [c, s] = O(n), [l, d] = O(!1), u = Z(null);
|
|
8432
8432
|
return Y(() => {
|
|
8433
8433
|
if (!o) {
|
|
8434
8434
|
s(n);
|
|
@@ -8493,7 +8493,7 @@ const Ae = ({
|
|
|
8493
8493
|
isFocused: n,
|
|
8494
8494
|
dropdownRef: o
|
|
8495
8495
|
}) => {
|
|
8496
|
-
const [t, r] =
|
|
8496
|
+
const [t, r] = O("bottom"), i = j(
|
|
8497
8497
|
(a) => {
|
|
8498
8498
|
if (o.current = a, a) {
|
|
8499
8499
|
const c = a.dataset.position;
|
|
@@ -8507,7 +8507,7 @@ const Ae = ({
|
|
|
8507
8507
|
},
|
|
8508
8508
|
[o]
|
|
8509
8509
|
);
|
|
8510
|
-
return
|
|
8510
|
+
return Qn(() => {
|
|
8511
8511
|
if (!n || !o.current)
|
|
8512
8512
|
return;
|
|
8513
8513
|
const a = () => {
|
|
@@ -8558,7 +8558,7 @@ const Ae = ({
|
|
|
8558
8558
|
combobox: n,
|
|
8559
8559
|
dropdownRef: o
|
|
8560
8560
|
}) => {
|
|
8561
|
-
const [t, r] =
|
|
8561
|
+
const [t, r] = O(!1), [i, a] = O(!1), c = j(() => {
|
|
8562
8562
|
r(!0), n.openDropdown();
|
|
8563
8563
|
}, [n]), s = j(
|
|
8564
8564
|
(u) => {
|
|
@@ -8632,19 +8632,19 @@ const Ae = ({
|
|
|
8632
8632
|
searchQuery: y,
|
|
8633
8633
|
setSearchQuery: S,
|
|
8634
8634
|
displayedUsers: M,
|
|
8635
|
-
setDisplayedUsers:
|
|
8636
|
-
isSearching:
|
|
8635
|
+
setDisplayedUsers: z,
|
|
8636
|
+
isSearching: k
|
|
8637
8637
|
} = ni({
|
|
8638
8638
|
users: i,
|
|
8639
8639
|
onSearch: d,
|
|
8640
8640
|
debounceSearch: u,
|
|
8641
8641
|
debounceDelay: p
|
|
8642
|
-
}),
|
|
8642
|
+
}), C = rn({
|
|
8643
8643
|
onDropdownClose: () => {
|
|
8644
|
-
|
|
8644
|
+
C.resetSelectedOption(), S(""), B(!1);
|
|
8645
8645
|
},
|
|
8646
8646
|
onDropdownOpen: () => {
|
|
8647
|
-
|
|
8647
|
+
C.updateSelectedOptionIndex("active"), B(!0);
|
|
8648
8648
|
}
|
|
8649
8649
|
}), {
|
|
8650
8650
|
isFocused: x,
|
|
@@ -8655,7 +8655,7 @@ const Ae = ({
|
|
|
8655
8655
|
handleMouseEnter: Q,
|
|
8656
8656
|
handleMouseLeave: _
|
|
8657
8657
|
} = ii({
|
|
8658
|
-
combobox:
|
|
8658
|
+
combobox: C,
|
|
8659
8659
|
dropdownRef: w
|
|
8660
8660
|
}), { placement: V, dropdownRefCallback: N } = ri({
|
|
8661
8661
|
isFocused: x,
|
|
@@ -8671,12 +8671,12 @@ const Ae = ({
|
|
|
8671
8671
|
onLoadMore: f,
|
|
8672
8672
|
hasMore: I,
|
|
8673
8673
|
loading: h,
|
|
8674
|
-
setDisplayedUsers:
|
|
8675
|
-
}), { handleSelect: q, handleRemove:
|
|
8674
|
+
setDisplayedUsers: z
|
|
8675
|
+
}), { handleSelect: q, handleRemove: D } = ai({
|
|
8676
8676
|
multiple: s,
|
|
8677
8677
|
value: r,
|
|
8678
8678
|
onChange: a,
|
|
8679
|
-
combobox:
|
|
8679
|
+
combobox: C
|
|
8680
8680
|
}), E = () => {
|
|
8681
8681
|
if (!s)
|
|
8682
8682
|
return null;
|
|
@@ -8688,11 +8688,11 @@ const Ae = ({
|
|
|
8688
8688
|
avatar: ze.avatar,
|
|
8689
8689
|
name: ze.name,
|
|
8690
8690
|
withRemoveButton: x,
|
|
8691
|
-
onRemove: () =>
|
|
8691
|
+
onRemove: () => D(ze.id)
|
|
8692
8692
|
},
|
|
8693
8693
|
ze.id
|
|
8694
8694
|
)),
|
|
8695
|
-
ie > 0 && /* @__PURE__ */ e(
|
|
8695
|
+
ie > 0 && /* @__PURE__ */ e(xn, { ml: "xs", radius: "md", size: "md", bg: "transparent", children: /* @__PURE__ */ v(
|
|
8696
8696
|
A,
|
|
8697
8697
|
{
|
|
8698
8698
|
gap: "2px",
|
|
@@ -8770,7 +8770,7 @@ const Ae = ({
|
|
|
8770
8770
|
avatar: G.avatar,
|
|
8771
8771
|
name: G.name,
|
|
8772
8772
|
withRemoveButton: x,
|
|
8773
|
-
onRemove: () =>
|
|
8773
|
+
onRemove: () => D(G.id)
|
|
8774
8774
|
},
|
|
8775
8775
|
G.id
|
|
8776
8776
|
))
|
|
@@ -8779,15 +8779,15 @@ const Ae = ({
|
|
|
8779
8779
|
children: /* @__PURE__ */ v(
|
|
8780
8780
|
re,
|
|
8781
8781
|
{
|
|
8782
|
-
store:
|
|
8782
|
+
store: C,
|
|
8783
8783
|
onOptionSubmit: q,
|
|
8784
8784
|
withinPortal: !1,
|
|
8785
8785
|
offset: -2,
|
|
8786
8786
|
children: [
|
|
8787
8787
|
/* @__PURE__ */ e(re.DropdownTarget, { children: /* @__PURE__ */ e(
|
|
8788
|
-
|
|
8788
|
+
Fn,
|
|
8789
8789
|
{
|
|
8790
|
-
onClick: () => !l &&
|
|
8790
|
+
onClick: () => !l && C.openDropdown(),
|
|
8791
8791
|
radius: "md",
|
|
8792
8792
|
disabled: l,
|
|
8793
8793
|
styles: X,
|
|
@@ -8797,13 +8797,13 @@ const Ae = ({
|
|
|
8797
8797
|
onMouseLeave: _,
|
|
8798
8798
|
w: "100%",
|
|
8799
8799
|
children: /* @__PURE__ */ v(
|
|
8800
|
-
|
|
8800
|
+
xn.Group,
|
|
8801
8801
|
{
|
|
8802
8802
|
styles: de,
|
|
8803
8803
|
children: [
|
|
8804
8804
|
s ? E() : U(),
|
|
8805
8805
|
/* @__PURE__ */ e(re.EventsTarget, { children: /* @__PURE__ */ e(
|
|
8806
|
-
|
|
8806
|
+
Fn.Field,
|
|
8807
8807
|
{
|
|
8808
8808
|
ref: g,
|
|
8809
8809
|
onFocus: R,
|
|
@@ -8811,15 +8811,15 @@ const Ae = ({
|
|
|
8811
8811
|
placeholder: H.length === 0 || x || y.length > 0 ? c : "",
|
|
8812
8812
|
value: y,
|
|
8813
8813
|
onChange: (G) => {
|
|
8814
|
-
|
|
8814
|
+
C.updateSelectedOptionIndex(), S(G.currentTarget.value);
|
|
8815
8815
|
},
|
|
8816
8816
|
onMouseDown: (G) => {
|
|
8817
8817
|
G.stopPropagation();
|
|
8818
8818
|
},
|
|
8819
8819
|
onKeyDown: (G) => {
|
|
8820
|
-
G.key === "Backspace" && y.length === 0 && (G.preventDefault(), s && H.length > 0 ?
|
|
8820
|
+
G.key === "Backspace" && y.length === 0 && (G.preventDefault(), s && H.length > 0 ? D(
|
|
8821
8821
|
H[H.length - 1].id
|
|
8822
|
-
) : !s && H.length > 0 &&
|
|
8822
|
+
) : !s && H.length > 0 && D(H[0].id));
|
|
8823
8823
|
},
|
|
8824
8824
|
pointer: !0,
|
|
8825
8825
|
disabled: l,
|
|
@@ -8926,7 +8926,7 @@ const Ae = ({
|
|
|
8926
8926
|
G.id
|
|
8927
8927
|
);
|
|
8928
8928
|
}),
|
|
8929
|
-
(
|
|
8929
|
+
(k || h) && /* @__PURE__ */ e(
|
|
8930
8930
|
b,
|
|
8931
8931
|
{
|
|
8932
8932
|
style: {
|
|
@@ -8938,7 +8938,7 @@ const Ae = ({
|
|
|
8938
8938
|
}
|
|
8939
8939
|
),
|
|
8940
8940
|
f && I && !h && /* @__PURE__ */ e("div", { ref: J, style: { height: "20px" } }),
|
|
8941
|
-
oe.length === 0 && !
|
|
8941
|
+
oe.length === 0 && !k && !h && /* @__PURE__ */ e(
|
|
8942
8942
|
b,
|
|
8943
8943
|
{
|
|
8944
8944
|
style: {
|
|
@@ -8958,21 +8958,23 @@ const Ae = ({
|
|
|
8958
8958
|
)
|
|
8959
8959
|
}
|
|
8960
8960
|
);
|
|
8961
|
-
},
|
|
8961
|
+
}, At = ({
|
|
8962
8962
|
label: n,
|
|
8963
8963
|
icon: o,
|
|
8964
8964
|
value: t,
|
|
8965
8965
|
onChange: r,
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8966
|
+
onDraftChange: i,
|
|
8967
|
+
onFocusChange: a,
|
|
8968
|
+
editable: c = !1,
|
|
8969
|
+
placeholder: s,
|
|
8970
|
+
disabled: l = !1,
|
|
8971
|
+
minRows: d = 1,
|
|
8972
|
+
maxRows: u,
|
|
8973
|
+
autosize: p = !0
|
|
8972
8974
|
}) => {
|
|
8973
|
-
const [
|
|
8975
|
+
const [f, I] = O(!1), [h, g] = O(!1), m = {
|
|
8974
8976
|
wrapper: {
|
|
8975
|
-
...!
|
|
8977
|
+
...!p && {
|
|
8976
8978
|
height: "40px",
|
|
8977
8979
|
minHeight: "40px",
|
|
8978
8980
|
boxSizing: "border-box"
|
|
@@ -8980,26 +8982,26 @@ const Ae = ({
|
|
|
8980
8982
|
borderRadius: "var(--mantine-radius-md)"
|
|
8981
8983
|
},
|
|
8982
8984
|
input: {
|
|
8983
|
-
backgroundColor:
|
|
8985
|
+
backgroundColor: f || h ? "var(--mantine-color-gray-0)" : "transparent",
|
|
8984
8986
|
color: "var(--mantine-color-gray-9)",
|
|
8985
|
-
border:
|
|
8987
|
+
border: f ? "1px solid var(--mantine-color-gray-2)" : "1px solid transparent",
|
|
8986
8988
|
borderRadius: "var(--mantine-radius-md)",
|
|
8987
8989
|
width: "100%",
|
|
8988
8990
|
cursor: "pointer",
|
|
8989
|
-
...!
|
|
8991
|
+
...!p && {
|
|
8990
8992
|
height: "40px",
|
|
8991
8993
|
minHeight: "40px",
|
|
8992
8994
|
boxSizing: "border-box"
|
|
8993
8995
|
},
|
|
8994
8996
|
padding: "8px 14px",
|
|
8995
|
-
lineHeight:
|
|
8997
|
+
lineHeight: p ? "1.5" : "24px",
|
|
8996
8998
|
fontWeight: 450
|
|
8997
8999
|
}
|
|
8998
9000
|
};
|
|
8999
9001
|
return /* @__PURE__ */ e(
|
|
9000
9002
|
Ae,
|
|
9001
9003
|
{
|
|
9002
|
-
editable:
|
|
9004
|
+
editable: c,
|
|
9003
9005
|
label: n,
|
|
9004
9006
|
icon: o,
|
|
9005
9007
|
value: /* @__PURE__ */ e(
|
|
@@ -9016,7 +9018,7 @@ const Ae = ({
|
|
|
9016
9018
|
c: t ? void 0 : "dimmed",
|
|
9017
9019
|
fw: 400,
|
|
9018
9020
|
style: { whiteSpace: "pre-wrap", wordBreak: "break-word" },
|
|
9019
|
-
children: t ||
|
|
9021
|
+
children: t || s || "—"
|
|
9020
9022
|
}
|
|
9021
9023
|
)
|
|
9022
9024
|
}
|
|
@@ -9026,27 +9028,33 @@ const Ae = ({
|
|
|
9026
9028
|
{
|
|
9027
9029
|
w: "100%",
|
|
9028
9030
|
style: {
|
|
9029
|
-
boxShadow:
|
|
9031
|
+
boxShadow: f ? "var(--mantine-shadow-sm)" : "none",
|
|
9030
9032
|
borderRadius: "var(--mantine-radius-md)"
|
|
9031
9033
|
},
|
|
9032
9034
|
children: /* @__PURE__ */ e(
|
|
9033
|
-
|
|
9035
|
+
Sn,
|
|
9034
9036
|
{
|
|
9035
9037
|
value: t,
|
|
9036
|
-
onChange: (
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9038
|
+
onChange: (M) => {
|
|
9039
|
+
i == null || i(M.target.value);
|
|
9040
|
+
},
|
|
9041
|
+
onFocus: () => {
|
|
9042
|
+
I(!0), a == null || a(!0);
|
|
9043
|
+
},
|
|
9044
|
+
onBlur: (M) => {
|
|
9045
|
+
I(!1), a == null || a(!1), r == null || r(M.target.value);
|
|
9046
|
+
},
|
|
9047
|
+
onMouseEnter: () => g(!0),
|
|
9048
|
+
onMouseLeave: () => g(!1),
|
|
9049
|
+
placeholder: s,
|
|
9050
|
+
disabled: l,
|
|
9043
9051
|
size: "sm",
|
|
9044
9052
|
radius: "md",
|
|
9045
9053
|
fw: 400,
|
|
9046
|
-
minRows:
|
|
9047
|
-
maxRows:
|
|
9048
|
-
autosize:
|
|
9049
|
-
styles: { ...
|
|
9054
|
+
minRows: f ? 1 : d,
|
|
9055
|
+
maxRows: u,
|
|
9056
|
+
autosize: p,
|
|
9057
|
+
styles: { ...m }
|
|
9050
9058
|
}
|
|
9051
9059
|
)
|
|
9052
9060
|
}
|
|
@@ -9059,7 +9067,7 @@ const Ae = ({
|
|
|
9059
9067
|
children: t,
|
|
9060
9068
|
...r
|
|
9061
9069
|
}) => /* @__PURE__ */ v(
|
|
9062
|
-
|
|
9070
|
+
Cn,
|
|
9063
9071
|
{
|
|
9064
9072
|
withCloseButton: !1,
|
|
9065
9073
|
opened: n,
|
|
@@ -9078,7 +9086,7 @@ const Ae = ({
|
|
|
9078
9086
|
...r,
|
|
9079
9087
|
children: [
|
|
9080
9088
|
/* @__PURE__ */ v(A, { justify: "space-between", wrap: "nowrap", children: [
|
|
9081
|
-
/* @__PURE__ */ e(A, { justify: "space-between", wrap: "nowrap", gap: "xs", children: /* @__PURE__ */ e(he, { icon:
|
|
9089
|
+
/* @__PURE__ */ e(A, { justify: "space-between", wrap: "nowrap", gap: "xs", children: /* @__PURE__ */ e(he, { icon: Rn, size: "md", onClick: () => {
|
|
9082
9090
|
} }) }),
|
|
9083
9091
|
/* @__PURE__ */ v(A, { justify: "space-between", gap: "xs", children: [
|
|
9084
9092
|
/* @__PURE__ */ e(he, { icon: wr, size: "md", onClick: () => {
|
|
@@ -9102,14 +9110,14 @@ const Ae = ({
|
|
|
9102
9110
|
headerProps: l,
|
|
9103
9111
|
propertiesProps: d
|
|
9104
9112
|
}) => {
|
|
9105
|
-
var M,
|
|
9106
|
-
const [u, p] =
|
|
9113
|
+
var M, z;
|
|
9114
|
+
const [u, p] = O(!1), f = (d == null ? void 0 : d.hiddenProperties) && d.hiddenProperties.length > 0, [I, h] = O(!1), [g, m] = O(
|
|
9107
9115
|
l == null ? void 0 : l.avatar
|
|
9108
|
-
), [w, y] =
|
|
9116
|
+
), [w, y] = O(!1);
|
|
9109
9117
|
return Y(() => {
|
|
9110
9118
|
m(l == null ? void 0 : l.avatar);
|
|
9111
9119
|
}, [l == null ? void 0 : l.avatar]), /* @__PURE__ */ v(
|
|
9112
|
-
|
|
9120
|
+
On,
|
|
9113
9121
|
{
|
|
9114
9122
|
opened: n,
|
|
9115
9123
|
onClose: o,
|
|
@@ -9128,7 +9136,7 @@ const Ae = ({
|
|
|
9128
9136
|
/* @__PURE__ */ e(
|
|
9129
9137
|
he,
|
|
9130
9138
|
{
|
|
9131
|
-
icon:
|
|
9139
|
+
icon: Rn,
|
|
9132
9140
|
size: "md",
|
|
9133
9141
|
onClick: () => c()
|
|
9134
9142
|
}
|
|
@@ -9144,7 +9152,7 @@ const Ae = ({
|
|
|
9144
9152
|
onMouseEnter: () => h(!0),
|
|
9145
9153
|
onMouseLeave: () => h(!1),
|
|
9146
9154
|
children: g ? /* @__PURE__ */ e(
|
|
9147
|
-
|
|
9155
|
+
jn,
|
|
9148
9156
|
{
|
|
9149
9157
|
editable: t,
|
|
9150
9158
|
avatar: g,
|
|
@@ -9152,9 +9160,9 @@ const Ae = ({
|
|
|
9152
9160
|
opened: w,
|
|
9153
9161
|
onOpen: () => y(!0),
|
|
9154
9162
|
onClose: () => y(!1),
|
|
9155
|
-
onAvatarSelect: (
|
|
9156
|
-
var
|
|
9157
|
-
m(
|
|
9163
|
+
onAvatarSelect: (k) => {
|
|
9164
|
+
var C;
|
|
9165
|
+
m(k), (C = l == null ? void 0 : l.onAvatarChange) == null || C.call(l, k);
|
|
9158
9166
|
},
|
|
9159
9167
|
onRemove: () => {
|
|
9160
9168
|
m(void 0);
|
|
@@ -9171,9 +9179,9 @@ const Ae = ({
|
|
|
9171
9179
|
color: "gray",
|
|
9172
9180
|
mb: "md",
|
|
9173
9181
|
onClick: () => {
|
|
9174
|
-
var
|
|
9175
|
-
const
|
|
9176
|
-
m(
|
|
9182
|
+
var C;
|
|
9183
|
+
const k = { type: "emoji", value: "😊" };
|
|
9184
|
+
m(k), (C = l == null ? void 0 : l.onAvatarChange) == null || C.call(l, k);
|
|
9177
9185
|
},
|
|
9178
9186
|
children: /* @__PURE__ */ v(
|
|
9179
9187
|
b,
|
|
@@ -9185,7 +9193,7 @@ const Ae = ({
|
|
|
9185
9193
|
gap: 6
|
|
9186
9194
|
},
|
|
9187
9195
|
children: [
|
|
9188
|
-
/* @__PURE__ */ e(
|
|
9196
|
+
/* @__PURE__ */ e(Tn, { size: 16 }),
|
|
9189
9197
|
/* @__PURE__ */ e(T, { size: "sm", fw: 500, children: "Add avatar" })
|
|
9190
9198
|
]
|
|
9191
9199
|
}
|
|
@@ -9198,9 +9206,9 @@ const Ae = ({
|
|
|
9198
9206
|
an,
|
|
9199
9207
|
{
|
|
9200
9208
|
value: l.title || "",
|
|
9201
|
-
onChange: (
|
|
9202
|
-
var
|
|
9203
|
-
return (
|
|
9209
|
+
onChange: (k) => {
|
|
9210
|
+
var C;
|
|
9211
|
+
return (C = l.onTitleChange) == null ? void 0 : C.call(l, k);
|
|
9204
9212
|
},
|
|
9205
9213
|
onDraftChange: l.onTitleDraftChange,
|
|
9206
9214
|
pageTitle: !0,
|
|
@@ -9218,7 +9226,7 @@ const Ae = ({
|
|
|
9218
9226
|
}
|
|
9219
9227
|
)
|
|
9220
9228
|
] }),
|
|
9221
|
-
/* @__PURE__ */ e(W, { gap: "sm", children: (M = d == null ? void 0 : d.visibleProperties) == null ? void 0 : M.map((
|
|
9229
|
+
/* @__PURE__ */ e(W, { gap: "sm", children: (M = d == null ? void 0 : d.visibleProperties) == null ? void 0 : M.map((k, C) => /* @__PURE__ */ e(b, { children: k }, C)) }),
|
|
9222
9230
|
f && !u && /* @__PURE__ */ e(b, { w: "100%", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(
|
|
9223
9231
|
ce,
|
|
9224
9232
|
{
|
|
@@ -9252,7 +9260,7 @@ const Ae = ({
|
|
|
9252
9260
|
)
|
|
9253
9261
|
}
|
|
9254
9262
|
) }),
|
|
9255
|
-
/* @__PURE__ */ e(rr, { in: u, children: /* @__PURE__ */ e(W, { gap: "sm", mt: "sm", children: (
|
|
9263
|
+
/* @__PURE__ */ e(rr, { in: u, children: /* @__PURE__ */ e(W, { gap: "sm", mt: "sm", children: (z = d == null ? void 0 : d.hiddenProperties) == null ? void 0 : z.map((k, C) => /* @__PURE__ */ e(b, { children: k }, C)) }) }),
|
|
9256
9264
|
f && u && /* @__PURE__ */ e(
|
|
9257
9265
|
b,
|
|
9258
9266
|
{
|
|
@@ -9307,7 +9315,7 @@ const Ae = ({
|
|
|
9307
9315
|
id: "full-page",
|
|
9308
9316
|
children: n
|
|
9309
9317
|
}
|
|
9310
|
-
),
|
|
9318
|
+
), Lt = Yn(
|
|
9311
9319
|
void 0
|
|
9312
9320
|
), di = ({
|
|
9313
9321
|
children: n
|
|
@@ -9318,7 +9326,7 @@ const Ae = ({
|
|
|
9318
9326
|
] = Xe(!1), [
|
|
9319
9327
|
d,
|
|
9320
9328
|
{ open: u, close: p }
|
|
9321
|
-
] = Xe(!1), [f, I] =
|
|
9329
|
+
] = Xe(!1), [f, I] = O(300), [h, g] = O(500), m = {
|
|
9322
9330
|
opened: o,
|
|
9323
9331
|
toggle: t,
|
|
9324
9332
|
open: r,
|
|
@@ -9335,9 +9343,9 @@ const Ae = ({
|
|
|
9335
9343
|
openNotificationSidebar: u,
|
|
9336
9344
|
closeNotificationSidebar: p
|
|
9337
9345
|
};
|
|
9338
|
-
return /* @__PURE__ */ e(
|
|
9339
|
-
},
|
|
9340
|
-
const n =
|
|
9346
|
+
return /* @__PURE__ */ e(Lt.Provider, { value: m, children: n });
|
|
9347
|
+
}, jt = () => {
|
|
9348
|
+
const n = Zn(Lt);
|
|
9341
9349
|
if (n === void 0)
|
|
9342
9350
|
throw new Error("useAppLayout must be used within an AppLayoutProvider");
|
|
9343
9351
|
return n;
|
|
@@ -9353,7 +9361,7 @@ const Ae = ({
|
|
|
9353
9361
|
asideOpened: c,
|
|
9354
9362
|
sidebarWidth: s,
|
|
9355
9363
|
asideWidth: l
|
|
9356
|
-
} =
|
|
9364
|
+
} = jt();
|
|
9357
9365
|
return /* @__PURE__ */ v(
|
|
9358
9366
|
We,
|
|
9359
9367
|
{
|
|
@@ -9402,14 +9410,14 @@ const Ae = ({
|
|
|
9402
9410
|
}, fi = ({ items: n, selectedId: o, onSelect: t }) => /* @__PURE__ */ e(W, { gap: 0, children: n.map((r) => {
|
|
9403
9411
|
var i;
|
|
9404
9412
|
return /* @__PURE__ */ e(
|
|
9405
|
-
|
|
9413
|
+
Hn,
|
|
9406
9414
|
{
|
|
9407
9415
|
label: r.label,
|
|
9408
9416
|
isActive: o === r.id,
|
|
9409
9417
|
noChild: !r.children || r.children.length === 0,
|
|
9410
9418
|
onClick: () => (!r.children || r.children.length === 0) && (t == null ? void 0 : t(r.id)),
|
|
9411
9419
|
children: (i = r.children) == null ? void 0 : i.map((a) => /* @__PURE__ */ e(
|
|
9412
|
-
|
|
9420
|
+
Hn,
|
|
9413
9421
|
{
|
|
9414
9422
|
label: a.label,
|
|
9415
9423
|
noChild: !0,
|
|
@@ -9435,12 +9443,12 @@ const Ae = ({
|
|
|
9435
9443
|
selectedTopNavId: d,
|
|
9436
9444
|
onTopNavSelect: u
|
|
9437
9445
|
}) => {
|
|
9438
|
-
const { opened: p, toggle: f } =
|
|
9446
|
+
const { opened: p, toggle: f } = jt(), [I, h] = O(o), g = o ?? I;
|
|
9439
9447
|
return /* @__PURE__ */ e(
|
|
9440
9448
|
ui,
|
|
9441
9449
|
{
|
|
9442
9450
|
header: l ? /* @__PURE__ */ e(
|
|
9443
|
-
|
|
9451
|
+
_n,
|
|
9444
9452
|
{
|
|
9445
9453
|
withBorder: !0,
|
|
9446
9454
|
bg: "transparent",
|
|
@@ -9449,7 +9457,7 @@ const Ae = ({
|
|
|
9449
9457
|
}
|
|
9450
9458
|
) : void 0,
|
|
9451
9459
|
navbar: /* @__PURE__ */ e(
|
|
9452
|
-
|
|
9460
|
+
_n,
|
|
9453
9461
|
{
|
|
9454
9462
|
withBorder: !0,
|
|
9455
9463
|
bg: "transparent",
|
|
@@ -9459,7 +9467,7 @@ const Ae = ({
|
|
|
9459
9467
|
/* @__PURE__ */ e(
|
|
9460
9468
|
he,
|
|
9461
9469
|
{
|
|
9462
|
-
icon: p ?
|
|
9470
|
+
icon: p ? ct : Ne,
|
|
9463
9471
|
size: "md",
|
|
9464
9472
|
onClick: f
|
|
9465
9473
|
}
|
|
@@ -9523,7 +9531,7 @@ const Ae = ({
|
|
|
9523
9531
|
}
|
|
9524
9532
|
),
|
|
9525
9533
|
r ?? /* @__PURE__ */ e(
|
|
9526
|
-
|
|
9534
|
+
En,
|
|
9527
9535
|
{
|
|
9528
9536
|
label: g || "Select a topic",
|
|
9529
9537
|
onClick: () => {
|
|
@@ -9558,7 +9566,7 @@ const Ae = ({
|
|
|
9558
9566
|
)
|
|
9559
9567
|
}
|
|
9560
9568
|
);
|
|
9561
|
-
}, Pi = (n) => /* @__PURE__ */ e(di, { children: /* @__PURE__ */ e(hi, { ...n }) }),
|
|
9569
|
+
}, Pi = (n) => /* @__PURE__ */ e(di, { children: /* @__PURE__ */ e(hi, { ...n }) }), Ft = (n, o) => {
|
|
9562
9570
|
const t = j(
|
|
9563
9571
|
(a) => {
|
|
9564
9572
|
const c = Array.isArray(a) ? a : [a];
|
|
@@ -9609,13 +9617,13 @@ const Ae = ({
|
|
|
9609
9617
|
availableMembersUsers: f,
|
|
9610
9618
|
handleResponsibleChange: I,
|
|
9611
9619
|
handleMembersChange: h
|
|
9612
|
-
} =
|
|
9620
|
+
} = Ft(d, u), g = K(
|
|
9613
9621
|
() => [
|
|
9614
9622
|
/* @__PURE__ */ e(
|
|
9615
|
-
|
|
9623
|
+
At,
|
|
9616
9624
|
{
|
|
9617
9625
|
label: "Description",
|
|
9618
|
-
icon:
|
|
9626
|
+
icon: st,
|
|
9619
9627
|
value: p.description,
|
|
9620
9628
|
onChange: p.onDescriptionChange,
|
|
9621
9629
|
editable: r
|
|
@@ -9627,7 +9635,7 @@ const Ae = ({
|
|
|
9627
9635
|
{
|
|
9628
9636
|
editable: !1,
|
|
9629
9637
|
label: "Team Owner",
|
|
9630
|
-
icon:
|
|
9638
|
+
icon: lt,
|
|
9631
9639
|
value: l.id,
|
|
9632
9640
|
users: [l]
|
|
9633
9641
|
},
|
|
@@ -9639,7 +9647,7 @@ const Ae = ({
|
|
|
9639
9647
|
multiple: !1,
|
|
9640
9648
|
editable: r,
|
|
9641
9649
|
label: "Team Leader",
|
|
9642
|
-
icon:
|
|
9650
|
+
icon: Dn,
|
|
9643
9651
|
value: d.userIds.length > 0 ? d.userIds[0] : void 0,
|
|
9644
9652
|
users: d.users,
|
|
9645
9653
|
onChange: I,
|
|
@@ -9655,7 +9663,7 @@ const Ae = ({
|
|
|
9655
9663
|
multiple: !0,
|
|
9656
9664
|
editable: r,
|
|
9657
9665
|
label: "Team Members",
|
|
9658
|
-
icon:
|
|
9666
|
+
icon: dt,
|
|
9659
9667
|
value: u.members.map((m) => m.id),
|
|
9660
9668
|
users: f,
|
|
9661
9669
|
onChange: h,
|
|
@@ -9714,15 +9722,15 @@ const Ae = ({
|
|
|
9714
9722
|
children: c,
|
|
9715
9723
|
footer: s
|
|
9716
9724
|
}) => {
|
|
9717
|
-
const [l, d] =
|
|
9725
|
+
const [l, d] = O(
|
|
9718
9726
|
i == null ? void 0 : i.avatar
|
|
9719
|
-
), [u, p] =
|
|
9727
|
+
), [u, p] = O(!1), [f, I] = O(!1), h = o ? "0" : {
|
|
9720
9728
|
base: "1rem",
|
|
9721
9729
|
sm: "2rem",
|
|
9722
9730
|
md: "4rem",
|
|
9723
9731
|
lg: "8rem",
|
|
9724
9732
|
xl: "10rem"
|
|
9725
|
-
}, [g, m] =
|
|
9733
|
+
}, [g, m] = O(n);
|
|
9726
9734
|
return Y(() => {
|
|
9727
9735
|
m(n);
|
|
9728
9736
|
}, [n]), /* @__PURE__ */ v(W, { gap: "md", p: "md", children: [
|
|
@@ -9731,11 +9739,11 @@ const Ae = ({
|
|
|
9731
9739
|
/* @__PURE__ */ e(
|
|
9732
9740
|
he,
|
|
9733
9741
|
{
|
|
9734
|
-
icon: g ? Ne :
|
|
9742
|
+
icon: g ? Ne : $n,
|
|
9735
9743
|
size: "md",
|
|
9736
9744
|
color: "gray",
|
|
9737
9745
|
changeIconOnHover: !0,
|
|
9738
|
-
iconHovered: g ?
|
|
9746
|
+
iconHovered: g ? $n : Ne,
|
|
9739
9747
|
variant: "subtle",
|
|
9740
9748
|
onClick: () => {
|
|
9741
9749
|
m((y) => !y);
|
|
@@ -9743,7 +9751,7 @@ const Ae = ({
|
|
|
9743
9751
|
"aria-pressed": g
|
|
9744
9752
|
}
|
|
9745
9753
|
),
|
|
9746
|
-
/* @__PURE__ */ e(
|
|
9754
|
+
/* @__PURE__ */ e(En, { label: i.title, onClick: () => {
|
|
9747
9755
|
} })
|
|
9748
9756
|
] }),
|
|
9749
9757
|
/* @__PURE__ */ e(b, { children: r })
|
|
@@ -9757,7 +9765,7 @@ const Ae = ({
|
|
|
9757
9765
|
onMouseLeave: () => I(!1),
|
|
9758
9766
|
h: l ? 64 : 24,
|
|
9759
9767
|
children: l ? /* @__PURE__ */ e(
|
|
9760
|
-
|
|
9768
|
+
jn,
|
|
9761
9769
|
{
|
|
9762
9770
|
editable: t,
|
|
9763
9771
|
avatar: l,
|
|
@@ -9801,7 +9809,7 @@ const Ae = ({
|
|
|
9801
9809
|
gap: 6
|
|
9802
9810
|
},
|
|
9803
9811
|
children: [
|
|
9804
|
-
/* @__PURE__ */ e(
|
|
9812
|
+
/* @__PURE__ */ e(Tn, { size: 16 }),
|
|
9805
9813
|
/* @__PURE__ */ e(T, { size: "sm", fw: 500, children: "Add avatar" })
|
|
9806
9814
|
]
|
|
9807
9815
|
}
|
|
@@ -9849,13 +9857,13 @@ const Ae = ({
|
|
|
9849
9857
|
availableMembersUsers: a,
|
|
9850
9858
|
handleResponsibleChange: c,
|
|
9851
9859
|
handleMembersChange: s
|
|
9852
|
-
} =
|
|
9860
|
+
} = Ft(r, i);
|
|
9853
9861
|
return /* @__PURE__ */ v(W, { gap: "sm", children: [
|
|
9854
9862
|
/* @__PURE__ */ e(
|
|
9855
|
-
|
|
9863
|
+
At,
|
|
9856
9864
|
{
|
|
9857
9865
|
label: "Description",
|
|
9858
|
-
icon:
|
|
9866
|
+
icon: st,
|
|
9859
9867
|
value: t.description,
|
|
9860
9868
|
onChange: t.onDescriptionChange,
|
|
9861
9869
|
editable: n
|
|
@@ -9867,7 +9875,7 @@ const Ae = ({
|
|
|
9867
9875
|
{
|
|
9868
9876
|
editable: !1,
|
|
9869
9877
|
label: "Team Owner",
|
|
9870
|
-
icon:
|
|
9878
|
+
icon: lt,
|
|
9871
9879
|
value: o.id,
|
|
9872
9880
|
users: [o]
|
|
9873
9881
|
},
|
|
@@ -9879,7 +9887,7 @@ const Ae = ({
|
|
|
9879
9887
|
multiple: !1,
|
|
9880
9888
|
editable: n,
|
|
9881
9889
|
label: "Team Leader",
|
|
9882
|
-
icon:
|
|
9890
|
+
icon: Dn,
|
|
9883
9891
|
value: r.userIds.length > 0 ? r.userIds[0] : void 0,
|
|
9884
9892
|
users: r.users,
|
|
9885
9893
|
onChange: c,
|
|
@@ -9895,7 +9903,7 @@ const Ae = ({
|
|
|
9895
9903
|
multiple: !0,
|
|
9896
9904
|
editable: n,
|
|
9897
9905
|
label: "Team Members",
|
|
9898
|
-
icon:
|
|
9906
|
+
icon: dt,
|
|
9899
9907
|
value: i.members.map((l) => l.id),
|
|
9900
9908
|
users: a,
|
|
9901
9909
|
onChange: s,
|
|
@@ -9947,11 +9955,16 @@ const Ae = ({
|
|
|
9947
9955
|
children: d,
|
|
9948
9956
|
footer: u
|
|
9949
9957
|
}) => {
|
|
9950
|
-
|
|
9958
|
+
var S, M;
|
|
9959
|
+
const [p, f] = O(
|
|
9951
9960
|
s == null ? void 0 : s.avatar
|
|
9952
|
-
), [I, h] =
|
|
9961
|
+
), [I, h] = O(!1), [g, m] = O(!1);
|
|
9962
|
+
Y(() => {
|
|
9963
|
+
f(s == null ? void 0 : s.avatar);
|
|
9964
|
+
}, [s == null ? void 0 : s.avatar]);
|
|
9965
|
+
const w = (S = s == null ? void 0 : s.loading) == null ? void 0 : S.avatar, y = (M = s == null ? void 0 : s.loading) == null ? void 0 : M.title;
|
|
9953
9966
|
return /* @__PURE__ */ e(
|
|
9954
|
-
|
|
9967
|
+
On,
|
|
9955
9968
|
{
|
|
9956
9969
|
opened: n,
|
|
9957
9970
|
onClose: o,
|
|
@@ -9968,7 +9981,7 @@ const Ae = ({
|
|
|
9968
9981
|
/* @__PURE__ */ v(A, { justify: "space-between", children: [
|
|
9969
9982
|
/* @__PURE__ */ v(A, { gap: "xs", wrap: "nowrap", children: [
|
|
9970
9983
|
/* @__PURE__ */ e(Be, { icon: Ne, onClick: o }),
|
|
9971
|
-
/* @__PURE__ */ e(Be, { icon:
|
|
9984
|
+
/* @__PURE__ */ e(Be, { icon: Rn, onClick: () => i() })
|
|
9972
9985
|
] }),
|
|
9973
9986
|
" ",
|
|
9974
9987
|
/* @__PURE__ */ e(b, { children: c })
|
|
@@ -9981,9 +9994,9 @@ const Ae = ({
|
|
|
9981
9994
|
{
|
|
9982
9995
|
onMouseEnter: () => m(!0),
|
|
9983
9996
|
onMouseLeave: () => m(!1),
|
|
9984
|
-
h: p ? 64 : 24,
|
|
9985
|
-
children: p ? /* @__PURE__ */ e(
|
|
9986
|
-
|
|
9997
|
+
h: w || p ? 64 : 24,
|
|
9998
|
+
children: w ? /* @__PURE__ */ e(vn, { height: 64, width: 64, radius: "md" }) : p ? /* @__PURE__ */ e(
|
|
9999
|
+
jn,
|
|
9987
10000
|
{
|
|
9988
10001
|
editable: a,
|
|
9989
10002
|
avatar: p,
|
|
@@ -9991,9 +10004,9 @@ const Ae = ({
|
|
|
9991
10004
|
opened: I,
|
|
9992
10005
|
onOpen: () => h(!0),
|
|
9993
10006
|
onClose: () => h(!1),
|
|
9994
|
-
onAvatarSelect: (
|
|
9995
|
-
var
|
|
9996
|
-
f(
|
|
10007
|
+
onAvatarSelect: (z) => {
|
|
10008
|
+
var k;
|
|
10009
|
+
f(z), (k = s == null ? void 0 : s.onAvatarChange) == null || k.call(s, z);
|
|
9997
10010
|
},
|
|
9998
10011
|
onRemove: () => {
|
|
9999
10012
|
f(void 0);
|
|
@@ -10010,12 +10023,12 @@ const Ae = ({
|
|
|
10010
10023
|
color: "gray",
|
|
10011
10024
|
mb: "md",
|
|
10012
10025
|
onClick: () => {
|
|
10013
|
-
var
|
|
10014
|
-
const
|
|
10026
|
+
var k;
|
|
10027
|
+
const z = {
|
|
10015
10028
|
type: "emoji",
|
|
10016
10029
|
value: "😊"
|
|
10017
10030
|
};
|
|
10018
|
-
f(
|
|
10031
|
+
f(z), (k = s == null ? void 0 : s.onAvatarChange) == null || k.call(s, z);
|
|
10019
10032
|
},
|
|
10020
10033
|
children: /* @__PURE__ */ v(
|
|
10021
10034
|
b,
|
|
@@ -10027,7 +10040,7 @@ const Ae = ({
|
|
|
10027
10040
|
gap: 6
|
|
10028
10041
|
},
|
|
10029
10042
|
children: [
|
|
10030
|
-
/* @__PURE__ */ e(
|
|
10043
|
+
/* @__PURE__ */ e(Tn, { size: 16 }),
|
|
10031
10044
|
/* @__PURE__ */ e(T, { size: "sm", fw: 500, children: "Add avatar" })
|
|
10032
10045
|
]
|
|
10033
10046
|
}
|
|
@@ -10036,13 +10049,13 @@ const Ae = ({
|
|
|
10036
10049
|
) })
|
|
10037
10050
|
}
|
|
10038
10051
|
),
|
|
10039
|
-
a ? /* @__PURE__ */ e(
|
|
10052
|
+
y ? /* @__PURE__ */ e(vn, { height: 64, width: "100%", radius: "md", mt: "md" }) : a ? /* @__PURE__ */ e(
|
|
10040
10053
|
an,
|
|
10041
10054
|
{
|
|
10042
10055
|
value: s.title || "",
|
|
10043
|
-
onChange: (
|
|
10044
|
-
var
|
|
10045
|
-
return (
|
|
10056
|
+
onChange: (z) => {
|
|
10057
|
+
var k;
|
|
10058
|
+
return (k = s.onTitleChange) == null ? void 0 : k.call(s, z);
|
|
10046
10059
|
},
|
|
10047
10060
|
onDraftChange: s.onTitleDraftChange,
|
|
10048
10061
|
pageTitle: !0,
|
|
@@ -10120,7 +10133,7 @@ export {
|
|
|
10120
10133
|
Be as ActionIcon,
|
|
10121
10134
|
ui as AppLayout,
|
|
10122
10135
|
di as AppLayoutProvider,
|
|
10123
|
-
|
|
10136
|
+
jn as AvatarSelector,
|
|
10124
10137
|
Gi as BaseLayout,
|
|
10125
10138
|
Oe as BoxAvatar,
|
|
10126
10139
|
$i as CenterPeek,
|
|
@@ -10130,8 +10143,8 @@ export {
|
|
|
10130
10143
|
Dr as EmojiAvatar,
|
|
10131
10144
|
Pr as ExpandableSearch,
|
|
10132
10145
|
Ri as FilterDropdown,
|
|
10133
|
-
|
|
10134
|
-
|
|
10146
|
+
Bn as FilterDropdownButton,
|
|
10147
|
+
An as FilterDropdownFilters,
|
|
10135
10148
|
Hi as FullPage,
|
|
10136
10149
|
lo as GenericTable,
|
|
10137
10150
|
Lr as IconAvatar,
|
|
@@ -10142,17 +10155,17 @@ export {
|
|
|
10142
10155
|
Jo as Matrix,
|
|
10143
10156
|
nn as Menu,
|
|
10144
10157
|
Bi as ModalSettings,
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
|
|
10158
|
+
ht as NavButton,
|
|
10159
|
+
Hn as NavLink,
|
|
10160
|
+
_n as Navbar,
|
|
10148
10161
|
Li as NavbarProvider,
|
|
10149
10162
|
Ai as NotificationSidebar,
|
|
10150
10163
|
Wi as NumberProperty,
|
|
10151
10164
|
pi as PageLayout,
|
|
10152
10165
|
Ae as PageProperty,
|
|
10153
|
-
|
|
10166
|
+
bn as PlaceholderAvatar,
|
|
10154
10167
|
no as PopoverItem,
|
|
10155
|
-
|
|
10168
|
+
Ln as PopoverSelector,
|
|
10156
10169
|
Fe as SelectUserProperty,
|
|
10157
10170
|
Ti as ShareButton,
|
|
10158
10171
|
To as ShareMenu,
|
|
@@ -10162,16 +10175,16 @@ export {
|
|
|
10162
10175
|
_i as TeamPage,
|
|
10163
10176
|
mi as TeamProperties,
|
|
10164
10177
|
Vi as TeamSidePeek,
|
|
10165
|
-
|
|
10178
|
+
En as TextButton,
|
|
10166
10179
|
Ui as TextProperty,
|
|
10167
|
-
|
|
10180
|
+
At as TextareaProperty,
|
|
10168
10181
|
Yi as ThemeProvider,
|
|
10169
10182
|
In as UserChip,
|
|
10170
10183
|
Fi as WorkspaceSelector,
|
|
10171
10184
|
No as WorkspaceSelectorItem,
|
|
10172
10185
|
Nr as getInitialsFromName,
|
|
10173
10186
|
gi as theme,
|
|
10174
|
-
|
|
10187
|
+
jt as useAppLayout,
|
|
10175
10188
|
ji as useNavbar,
|
|
10176
|
-
|
|
10189
|
+
Ft as useTeamProperties
|
|
10177
10190
|
};
|