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