@nivaro/react 0.3.10 → 0.3.12
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/full.css +1 -1
- package/dist/hooks/useNivaroForm.js +1 -1
- package/dist/hooks/useSessionRecorder.js +109 -102
- package/dist/index.d.ts +34 -3
- package/dist/shared/components/CollectionBrowserView.js +1546 -1477
- package/dist/shared/components/ItemEditForm.js +4332 -4195
- package/dist/shared/components/PageRenderer.js +512 -465
- package/dist/shared/components/ProfileView.js +115 -109
- package/dist/shared/components/QueryStatStrip.js +74 -70
- package/dist/shared/components/ReportView.js +818 -827
- package/dist/shared/components/SheetHeaderBody.js +16 -14
- package/dist/shared/components/chat/ChatPanel.js +492 -472
- package/dist/shared/components/item-edit/CatalogPickerField.js +1029 -933
- package/dist/shared/components/item-edit/FieldRenderer.js +161 -156
- package/dist/shared/components/item-edit/FieldRow.js +20 -19
- package/dist/shared/components/item-edit/FilePickerField.js +52 -40
- package/dist/shared/components/item-edit/GroupSection.js +221 -221
- package/dist/shared/components/item-edit/InlineGridField.js +41 -41
- package/dist/shared/components/item-edit/InlineTableField.js +2249 -2238
- package/dist/shared/components/item-edit/M2MCombobox.js +46 -44
- package/dist/shared/components/item-edit/NestedRelationEditor.js +11 -11
- package/dist/shared/components/item-edit/QuickPicker.js +263 -216
- package/dist/shared/components/item-edit/RelationCombobox.js +285 -245
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +42 -32
- package/dist/shared/components/item-edit/RowHistorySheet.js +130 -134
- package/dist/shared/components/item-edit/SummaryPanel.js +305 -279
- package/dist/shared/components/item-edit/UserChip.js +301 -233
- package/dist/shared/components/item-edit/helpers.js +133 -134
- package/dist/shared/components/item-edit/line-qty.js +57 -0
- package/dist/shared/components/item-edit/option-disambiguate.js +53 -0
- package/dist/shared/components/panels/AddendumLinesDiff.js +87 -90
- package/dist/shared/components/panels/CommentPanel.js +350 -315
- package/dist/shared/components/panels/ItemLockBanner.js +297 -230
- package/dist/shared/components/panels/PipelinePanel.js +719 -701
- package/dist/shared/components/profile/PersonAdminTools.js +168 -144
- package/dist/shared/components/profile/PersonProfile.js +42 -41
- package/dist/shared/components/profile/session-actions.js +52 -0
- package/dist/shared/components/queue/QueueQuickFilters.js +43 -41
- package/dist/shared/components/queue/QueueWorklist.js +1005 -935
- package/dist/shared/components/widgets/ReviewListWidget.js +99 -93
- package/dist/shared/lib/obligation-banner.js +14 -13
- package/dist/shared/lib/obligation-reason-text.js +13 -0
- package/dist/shared/lib/query-filter-seed.js +34 -11
- package/dist/shared/lib/replay-checkout.js +20 -0
- package/dist/shared/lib/sanitize-html.js +24 -15
- package/dist/shared/lib/sheet-def.js +38 -22
- package/dist/shared/lib/unique-options.js +10 -0
- package/dist/shared/lib/utils.js +57 -43
- package/dist/shared/lib/validation-rules.js +58 -34
- package/package.json +1 -1
|
@@ -1,252 +1,253 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useQuery as
|
|
3
|
-
import { UserCheck as
|
|
4
|
-
import
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import { useOptionalNivaroClient as
|
|
7
|
-
import { get as
|
|
8
|
-
import { userCardQuery as
|
|
9
|
-
import { cn as
|
|
10
|
-
import { canOpenDm as
|
|
11
|
-
import { HuddlePresenceLine as
|
|
12
|
-
import { useHuddleLive as
|
|
13
|
-
import { MailSuppressedPill as
|
|
14
|
-
import {
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery as j } from "@tanstack/react-query";
|
|
3
|
+
import { UserCheck as S, Mail as U, Phone as q, Building2 as D, User as $, Clock as z, MessageCircle as F, ExternalLink as K, RefreshCw as W, LogOut as H } from "lucide-react";
|
|
4
|
+
import R, { useState as P, useRef as N, useEffect as B } from "react";
|
|
5
|
+
import { createPortal as Q } from "react-dom";
|
|
6
|
+
import { useOptionalNivaroClient as T, useNavigation as Z, useItemEditAuth as J } from "../../context.js";
|
|
7
|
+
import { get as L, post as V } from "../../lib/commands.js";
|
|
8
|
+
import { userCardQuery as G } from "../../lib/user-cards.js";
|
|
9
|
+
import { cn as _ } from "../../lib/utils.js";
|
|
10
|
+
import { canOpenDm as X, openDmWith as Y } from "../chat/chat-core.js";
|
|
11
|
+
import { HuddlePresenceLine as A } from "../chat/huddle/HuddleLiveBadge.js";
|
|
12
|
+
import { useHuddleLive as I } from "../chat/huddle/huddle-live.js";
|
|
13
|
+
import { MailSuppressedPill as ee } from "../profile/MailSuppressedPill.js";
|
|
14
|
+
import { useReloadTheirTabs as te, useSignOutEverywhere as ae } from "../profile/session-actions.js";
|
|
15
|
+
import { useCardPresence as ne } from "../profile/usePersonPresence.js";
|
|
15
16
|
import { UserAvatar as C } from "../UserAvatar.js";
|
|
16
|
-
import { Popover as
|
|
17
|
-
function
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
const d = N(
|
|
21
|
-
d.current =
|
|
17
|
+
import { Popover as re, PopoverTrigger as le, PopoverContent as se } from "../ui/popover.js";
|
|
18
|
+
function E(e, r, i) {
|
|
19
|
+
const s = N(r);
|
|
20
|
+
s.current = r;
|
|
21
|
+
const d = N(i);
|
|
22
|
+
d.current = i, B(() => {
|
|
22
23
|
if (!e) return;
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
return document.addEventListener("pointerdown",
|
|
28
|
-
document.removeEventListener("pointerdown",
|
|
24
|
+
const o = (n) => {
|
|
25
|
+
const h = n.target;
|
|
26
|
+
h && s.current(h) || d.current();
|
|
27
|
+
}, c = () => d.current();
|
|
28
|
+
return document.addEventListener("pointerdown", o, !0), window.addEventListener("blur", c), () => {
|
|
29
|
+
document.removeEventListener("pointerdown", o, !0), window.removeEventListener("blur", c);
|
|
29
30
|
};
|
|
30
31
|
}, [e]);
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
+
function ie({
|
|
33
34
|
users: e,
|
|
34
|
-
showSingleName:
|
|
35
|
+
showSingleName: r = !0
|
|
35
36
|
}) {
|
|
36
|
-
const
|
|
37
|
+
const i = N(null), s = N(null), d = N(null), [o, c] = P(null), [n, h] = P({ x: 0, y: 0 }), b = () => {
|
|
37
38
|
d.current && clearTimeout(d.current), d.current = null;
|
|
38
|
-
},
|
|
39
|
-
var
|
|
39
|
+
}, g = (a) => {
|
|
40
|
+
var f;
|
|
40
41
|
b();
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
b(), d.current = setTimeout(() =>
|
|
42
|
+
const p = (f = i.current) == null ? void 0 : f.getBoundingClientRect();
|
|
43
|
+
p && h({ x: p.left, y: p.bottom + 6 }), c((x) => x === "pin" ? "pin" : a);
|
|
44
|
+
}, k = () => {
|
|
45
|
+
b(), d.current = setTimeout(() => c((a) => a === "pin" ? a : null), 160);
|
|
45
46
|
};
|
|
46
|
-
|
|
47
|
-
var
|
|
48
|
-
if (!
|
|
49
|
-
const
|
|
50
|
-
if (!
|
|
51
|
-
const
|
|
52
|
-
let { x, y:
|
|
53
|
-
if (
|
|
54
|
-
const
|
|
55
|
-
|
|
47
|
+
R.useLayoutEffect(() => {
|
|
48
|
+
var w;
|
|
49
|
+
if (!o) return;
|
|
50
|
+
const a = s.current;
|
|
51
|
+
if (!a) return;
|
|
52
|
+
const p = a.getBoundingClientRect();
|
|
53
|
+
let { x: f, y: x } = n;
|
|
54
|
+
if (p.right > window.innerWidth - 8 && (f = Math.max(8, window.innerWidth - p.width - 8)), p.bottom > window.innerHeight - 8) {
|
|
55
|
+
const O = (w = i.current) == null ? void 0 : w.getBoundingClientRect();
|
|
56
|
+
x = Math.max(8, ((O == null ? void 0 : O.top) ?? x) - p.height - 6);
|
|
56
57
|
}
|
|
57
|
-
(
|
|
58
|
-
}, [
|
|
59
|
-
!!
|
|
60
|
-
(
|
|
61
|
-
var
|
|
58
|
+
(f !== n.x || x !== n.y) && h({ x: f, y: x });
|
|
59
|
+
}, [o, n]), E(
|
|
60
|
+
!!o,
|
|
61
|
+
(a) => {
|
|
62
|
+
var p, f, x;
|
|
62
63
|
return (
|
|
63
64
|
// Clicks inside the user-card popover (portaled by Radix) keep the
|
|
64
65
|
// roster mounted — closing would unmount the card mid-click.
|
|
65
|
-
!!((
|
|
66
|
+
!!((p = a.closest) != null && p.call(a, "[data-radix-popper-content-wrapper]")) || !!((f = s.current) != null && f.contains(a)) || !!((x = i.current) != null && x.contains(a))
|
|
66
67
|
);
|
|
67
68
|
},
|
|
68
|
-
() =>
|
|
69
|
+
() => c(null)
|
|
69
70
|
);
|
|
70
|
-
const
|
|
71
|
+
const m = (a) => a.split(" ").map((p) => p[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
71
72
|
if (e.length === 0)
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
-
const
|
|
74
|
-
return /* @__PURE__ */
|
|
73
|
+
return /* @__PURE__ */ t("span", { className: "text-[11px] text-slate-400", "data-roster-empty": !0, children: "—" });
|
|
74
|
+
const u = e.slice(0, 4), v = e.length - u.length, y = "flex h-6 w-6 items-center justify-center rounded-full border-2 border-white bg-[#c7f0fb] text-[10px] font-bold leading-none text-[#04516b] dark:border-slate-900 dark:bg-[#0c3b4a] dark:text-[#7dd8f2]";
|
|
75
|
+
return /* @__PURE__ */ l(
|
|
75
76
|
"span",
|
|
76
77
|
{
|
|
77
|
-
ref:
|
|
78
|
-
onMouseEnter: () =>
|
|
79
|
-
onMouseLeave:
|
|
80
|
-
onClick: (
|
|
81
|
-
|
|
78
|
+
ref: i,
|
|
79
|
+
onMouseEnter: () => g("hover"),
|
|
80
|
+
onMouseLeave: k,
|
|
81
|
+
onClick: (a) => {
|
|
82
|
+
a.stopPropagation(), g("pin");
|
|
82
83
|
},
|
|
83
84
|
className: "inline-flex cursor-pointer items-center",
|
|
84
85
|
children: [
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ t("span", { className: "flex -space-x-2", children: u.map((a) => /* @__PURE__ */ t(
|
|
86
87
|
C,
|
|
87
88
|
{
|
|
88
|
-
userId:
|
|
89
|
+
userId: a.id,
|
|
89
90
|
className: "h-6 w-6 border-2 border-white dark:border-slate-900",
|
|
90
|
-
fallback: /* @__PURE__ */
|
|
91
|
+
fallback: /* @__PURE__ */ t("span", { "data-copy-skip": !0, "aria-hidden": "true", className: y, children: m(a.name) })
|
|
91
92
|
},
|
|
92
|
-
|
|
93
|
+
a.id
|
|
93
94
|
)) }),
|
|
94
|
-
|
|
95
|
+
v > 0 && /* @__PURE__ */ l("span", { className: "ml-1 rounded-full bg-slate-200 px-1.5 py-0.5 text-[10.5px] font-bold leading-none text-slate-600 dark:bg-slate-700 dark:text-slate-300", children: [
|
|
95
96
|
"+",
|
|
96
|
-
|
|
97
|
+
v
|
|
97
98
|
] }),
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
/* @__PURE__ */
|
|
99
|
+
r && e.length === 1 && /* @__PURE__ */ t("span", { className: "ml-1.5 max-w-[130px] truncate text-[12px] font-medium text-slate-700 dark:text-slate-200", children: e[0].name }),
|
|
100
|
+
o && Q(
|
|
101
|
+
/* @__PURE__ */ l(
|
|
101
102
|
"div",
|
|
102
103
|
{
|
|
103
|
-
ref:
|
|
104
|
-
style:
|
|
104
|
+
ref: s,
|
|
105
|
+
style: oe(i.current, n),
|
|
105
106
|
onMouseEnter: b,
|
|
106
|
-
onMouseLeave:
|
|
107
|
-
onMouseDown: (
|
|
108
|
-
|
|
107
|
+
onMouseLeave: k,
|
|
108
|
+
onMouseDown: (a) => {
|
|
109
|
+
a.stopPropagation(), c("pin");
|
|
109
110
|
},
|
|
110
|
-
onClick: (
|
|
111
|
+
onClick: (a) => a.stopPropagation(),
|
|
111
112
|
className: "w-max min-w-[190px] max-w-[300px] rounded-lg border border-slate-200 bg-white py-1.5 shadow-xl dark:border-slate-600 dark:bg-slate-800",
|
|
112
113
|
children: [
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ l("p", { className: "px-3 pb-1 text-[10px] font-bold uppercase tracking-wide text-slate-400", children: [
|
|
114
115
|
e.length,
|
|
115
116
|
" user",
|
|
116
117
|
e.length === 1 ? "" : "s"
|
|
117
118
|
] }),
|
|
118
|
-
e.map((
|
|
119
|
+
e.map((a) => /* @__PURE__ */ t("div", { className: "px-2 py-0.5", children: /* @__PURE__ */ t(me, { userId: a.id, size: "compact" }) }, a.id))
|
|
119
120
|
]
|
|
120
121
|
}
|
|
121
122
|
),
|
|
122
|
-
|
|
123
|
+
M(i.current)
|
|
123
124
|
)
|
|
124
125
|
]
|
|
125
126
|
}
|
|
126
127
|
);
|
|
127
128
|
}
|
|
128
|
-
function
|
|
129
|
+
function M(e) {
|
|
129
130
|
return (e == null ? void 0 : e.closest('[role="dialog"]')) ?? document.body;
|
|
130
131
|
}
|
|
131
|
-
function
|
|
132
|
-
const
|
|
133
|
-
if (
|
|
134
|
-
const
|
|
135
|
-
return { position: "absolute", left:
|
|
132
|
+
function oe(e, r) {
|
|
133
|
+
const i = M(e);
|
|
134
|
+
if (i === document.body) return { position: "fixed", left: r.x, top: r.y, zIndex: 50 };
|
|
135
|
+
const s = i.getBoundingClientRect();
|
|
136
|
+
return { position: "absolute", left: r.x - s.left, top: r.y - s.top, zIndex: 120 };
|
|
136
137
|
}
|
|
137
|
-
function
|
|
138
|
+
function Te({
|
|
138
139
|
collection: e,
|
|
139
|
-
itemId:
|
|
140
|
+
itemId: r
|
|
140
141
|
}) {
|
|
141
|
-
const
|
|
142
|
-
queryKey: ["pipeline-owners-resolved", e,
|
|
143
|
-
queryFn: () =>
|
|
144
|
-
|
|
145
|
-
).then((
|
|
146
|
-
var
|
|
147
|
-
return ((
|
|
142
|
+
const i = T(), { data: s = [], isLoading: d } = j({
|
|
143
|
+
queryKey: ["pipeline-owners-resolved", e, r],
|
|
144
|
+
queryFn: () => i.request(
|
|
145
|
+
V(`/pipelines/instance/${e}/owners/batch`, { ids: [r] })
|
|
146
|
+
).then((o) => {
|
|
147
|
+
var c;
|
|
148
|
+
return ((c = o.data) == null ? void 0 : c[r]) ?? [];
|
|
148
149
|
}),
|
|
149
|
-
enabled: !!
|
|
150
|
+
enabled: !!i && !!e && !!r && r !== "new",
|
|
150
151
|
staleTime: 3e4
|
|
151
152
|
});
|
|
152
|
-
return d ? /* @__PURE__ */
|
|
153
|
+
return d ? /* @__PURE__ */ t("span", { className: "animate-pulse h-3 w-20 rounded bg-slate-200 dark:bg-[hsl(var(--nvr-skeleton))] inline-block" }) : /* @__PURE__ */ t(ie, { users: s });
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
+
function $e({
|
|
155
156
|
collection: e,
|
|
156
|
-
itemId:
|
|
157
|
-
label:
|
|
157
|
+
itemId: r,
|
|
158
|
+
label: i
|
|
158
159
|
}) {
|
|
159
|
-
const
|
|
160
|
-
queryKey: ["pipeline-instance-owners", e,
|
|
161
|
-
queryFn: () =>
|
|
162
|
-
enabled: !!
|
|
160
|
+
const s = T(), { data: d = [] } = j({
|
|
161
|
+
queryKey: ["pipeline-instance-owners", e, r],
|
|
162
|
+
queryFn: () => s.request(L(`/pipelines/instance/${e}/${r}/owners`)).then((n) => n.data ?? []),
|
|
163
|
+
enabled: !!s && !!e && !!r && r !== "new",
|
|
163
164
|
staleTime: 3e4
|
|
164
|
-
}),
|
|
165
|
-
return /* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
d.length === 0 ? /* @__PURE__ */
|
|
165
|
+
}), o = (n) => [n.first_name, n.last_name].filter(Boolean).join(" ") || n.email, c = (n) => o(n).split(" ").map((h) => h[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
166
|
+
return /* @__PURE__ */ l("div", { children: [
|
|
167
|
+
/* @__PURE__ */ t("p", { className: "text-[11px] font-medium text-slate-400 mb-1.5", children: i }),
|
|
168
|
+
d.length === 0 ? /* @__PURE__ */ t("p", { className: "text-[13px] text-slate-400", children: "—" }) : /* @__PURE__ */ t("div", { className: "flex flex-wrap gap-2", children: d.map((n) => /* @__PURE__ */ l(
|
|
168
169
|
"div",
|
|
169
170
|
{
|
|
170
171
|
className: "flex items-center gap-1.5 rounded-full border border-slate-200 bg-slate-50 py-0.5 pl-0.5 pr-2.5",
|
|
171
172
|
children: [
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ t(
|
|
173
174
|
C,
|
|
174
175
|
{
|
|
175
176
|
userId: n.id,
|
|
176
177
|
className: "h-6 w-6",
|
|
177
|
-
fallback: /* @__PURE__ */
|
|
178
|
+
fallback: /* @__PURE__ */ t("span", { className: "flex h-6 w-6 items-center justify-center rounded-full bg-nvr-cyan/15 text-[10px] font-semibold text-nvr-navy dark:text-nvr-cyan", children: c(n) })
|
|
178
179
|
}
|
|
179
180
|
),
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ t("span", { className: "text-[12px] text-slate-700", children: o(n) })
|
|
181
182
|
]
|
|
182
183
|
},
|
|
183
184
|
n.id
|
|
184
185
|
)) })
|
|
185
186
|
] });
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
+
function de({
|
|
188
189
|
user: e,
|
|
189
|
-
userId:
|
|
190
|
-
initials:
|
|
191
|
-
navigate:
|
|
190
|
+
userId: r,
|
|
191
|
+
initials: i,
|
|
192
|
+
navigate: s,
|
|
192
193
|
profileUrl: d,
|
|
193
|
-
online:
|
|
194
|
-
cardId:
|
|
194
|
+
online: o,
|
|
195
|
+
cardId: c,
|
|
195
196
|
onAction: n,
|
|
196
|
-
open:
|
|
197
|
+
open: h = !1
|
|
197
198
|
}) {
|
|
198
|
-
var
|
|
199
|
-
const { isAdmin: b } =
|
|
200
|
-
const
|
|
201
|
-
if (!
|
|
199
|
+
var p;
|
|
200
|
+
const { isAdmin: b, userId: g } = J(), k = !!g && g.toUpperCase() === r.toUpperCase(), m = ne(r, h), u = I().roomOf(r), v = ((p = e == null ? void 0 : e.manager_name) == null ? void 0 : p.trim()) || null, y = (() => {
|
|
201
|
+
const f = e == null ? void 0 : e.timezone;
|
|
202
|
+
if (!f) return null;
|
|
202
203
|
try {
|
|
203
|
-
const
|
|
204
|
-
return
|
|
204
|
+
const x = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
205
|
+
return f === x ? null : new Intl.DateTimeFormat(void 0, {
|
|
205
206
|
hour: "numeric",
|
|
206
207
|
minute: "2-digit",
|
|
207
|
-
timeZone:
|
|
208
|
+
timeZone: f
|
|
208
209
|
}).format(/* @__PURE__ */ new Date());
|
|
209
210
|
} catch {
|
|
210
211
|
return null;
|
|
211
212
|
}
|
|
212
|
-
})(),
|
|
213
|
-
const
|
|
214
|
-
if (
|
|
215
|
-
if (
|
|
216
|
-
const
|
|
217
|
-
return
|
|
213
|
+
})(), a = e != null && e.last_access ? (() => {
|
|
214
|
+
const f = Date.now() - new Date(e.last_access).getTime(), x = Math.floor(f / 6e4);
|
|
215
|
+
if (x < 2) return "Just now";
|
|
216
|
+
if (x < 60) return `${x}m ago`;
|
|
217
|
+
const w = Math.floor(x / 60);
|
|
218
|
+
return w < 24 ? `${w}h ago` : `${Math.floor(w / 24)}d ago`;
|
|
218
219
|
})() : null;
|
|
219
|
-
return /* @__PURE__ */
|
|
220
|
-
|
|
220
|
+
return /* @__PURE__ */ l(
|
|
221
|
+
se,
|
|
221
222
|
{
|
|
222
223
|
align: "start",
|
|
223
224
|
className: "w-72 p-0 overflow-hidden",
|
|
224
|
-
"data-nvr-user-card":
|
|
225
|
+
"data-nvr-user-card": c ?? "",
|
|
225
226
|
children: [
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-3 p-4 bg-gradient-to-br from-nvr-cyan/8 to-nvr-cyan/4 dark:from-nvr-cyan/10 dark:to-transparent border-b border-slate-100 dark:border-border", children: [
|
|
228
|
+
/* @__PURE__ */ t(
|
|
228
229
|
C,
|
|
229
230
|
{
|
|
230
|
-
userId:
|
|
231
|
+
userId: r,
|
|
231
232
|
className: "h-12 w-12 ring-2 ring-white shadow-sm dark:ring-card",
|
|
232
|
-
fallback: /* @__PURE__ */
|
|
233
|
+
fallback: /* @__PURE__ */ t("span", { className: "flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-nvr-cyan/20 text-[15px] font-bold text-nvr-navy dark:text-nvr-cyan ring-2 ring-white dark:ring-card shadow-sm", children: i })
|
|
233
234
|
}
|
|
234
235
|
),
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
(
|
|
236
|
+
/* @__PURE__ */ l("div", { className: "min-w-0 flex-1", children: [
|
|
237
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-1.5", children: [
|
|
238
|
+
(o || m.word) && /* @__PURE__ */ t(
|
|
238
239
|
"span",
|
|
239
240
|
{
|
|
240
|
-
"data-card-presence":
|
|
241
|
-
className:
|
|
241
|
+
"data-card-presence": m.word ?? "online",
|
|
242
|
+
className: _(
|
|
242
243
|
"h-2 w-2 shrink-0 rounded-full ring-2 ring-white dark:ring-card",
|
|
243
|
-
|
|
244
|
+
m.word === "away" ? "bg-white ring-amber-400 dark:bg-card" : m.word === "idle" ? "bg-amber-400" : "bg-emerald-400"
|
|
244
245
|
),
|
|
245
|
-
title:
|
|
246
|
+
title: m.word === "away" ? "Away" : m.word === "idle" ? "Idle" : "Online"
|
|
246
247
|
}
|
|
247
248
|
),
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
(e == null ? void 0 : e.status) && e.status !== "active" && /* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ t("p", { className: "text-[13px] font-semibold text-slate-800 dark:text-slate-100 truncate", children: e ? [e.first_name, e.last_name].filter(Boolean).join(" ") || e.email : r }),
|
|
250
|
+
(e == null ? void 0 : e.status) && e.status !== "active" && /* @__PURE__ */ t(
|
|
250
251
|
"span",
|
|
251
252
|
{
|
|
252
253
|
className: `inline-flex items-center rounded-full px-1.5 py-px text-[10px] font-medium ${e.status === "suspended" ? "bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-400" : "bg-slate-100 dark:bg-slate-800 text-slate-500 dark:text-slate-400"}`,
|
|
@@ -254,220 +255,287 @@ function le({
|
|
|
254
255
|
}
|
|
255
256
|
)
|
|
256
257
|
] }),
|
|
257
|
-
((e == null ? void 0 : e.title) || (e == null ? void 0 : e.department)) && /* @__PURE__ */
|
|
258
|
-
|
|
258
|
+
((e == null ? void 0 : e.title) || (e == null ? void 0 : e.department)) && /* @__PURE__ */ t("p", { className: "text-[11px] text-slate-500 dark:text-slate-400 truncate mt-0.5", children: [e.title, e.department].filter(Boolean).join(" · ") }),
|
|
259
|
+
m.word && /* @__PURE__ */ l(
|
|
259
260
|
"p",
|
|
260
261
|
{
|
|
261
262
|
className: "mt-0.5 truncate text-[11px] text-slate-500 dark:text-slate-400",
|
|
262
263
|
"data-card-presence-line": !0,
|
|
263
264
|
children: [
|
|
264
|
-
|
|
265
|
-
|
|
265
|
+
m.word === "away" ? "Away" : m.word === "idle" ? `Idle${m.minutes ? ` · ${m.minutes}m` : ""}` : "Online now",
|
|
266
|
+
m.page ? ` · on ${m.page}` : ""
|
|
266
267
|
]
|
|
267
268
|
}
|
|
268
269
|
),
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
|
|
270
|
+
/* @__PURE__ */ t(A, { label: (u == null ? void 0 : u.label) ?? null, className: "mt-0.5" }),
|
|
271
|
+
y && /* @__PURE__ */ l("p", { className: "mt-0.5 text-[11px] text-slate-500 dark:text-slate-400", children: [
|
|
271
272
|
"Local time: ",
|
|
272
|
-
|
|
273
|
+
y
|
|
273
274
|
] }),
|
|
274
|
-
(e == null ? void 0 : e.is_out_of_office) && /* @__PURE__ */
|
|
275
|
-
/* @__PURE__ */
|
|
275
|
+
(e == null ? void 0 : e.is_out_of_office) && /* @__PURE__ */ l("span", { className: "mt-1 inline-flex items-center gap-1 rounded-full bg-amber-100 dark:bg-amber-900/30 px-1.5 py-px text-[10px] font-medium text-amber-700 dark:text-amber-400", children: [
|
|
276
|
+
/* @__PURE__ */ t(S, { className: "h-2.5 w-2.5" }),
|
|
276
277
|
" Out of office"
|
|
277
278
|
] }),
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
|
|
279
|
+
/* @__PURE__ */ t(
|
|
280
|
+
ee,
|
|
280
281
|
{
|
|
281
282
|
email: e == null ? void 0 : e.email,
|
|
282
|
-
enabled:
|
|
283
|
+
enabled: h,
|
|
283
284
|
canClear: b,
|
|
284
285
|
className: "mt-1"
|
|
285
286
|
}
|
|
286
287
|
)
|
|
287
288
|
] })
|
|
288
289
|
] }),
|
|
289
|
-
((e == null ? void 0 : e.email) || (e == null ? void 0 : e.phone)) && /* @__PURE__ */
|
|
290
|
-
(e == null ? void 0 : e.email) && /* @__PURE__ */
|
|
290
|
+
((e == null ? void 0 : e.email) || (e == null ? void 0 : e.phone)) && /* @__PURE__ */ l("div", { className: "px-4 py-3 space-y-1.5 border-b border-slate-100 dark:border-border", children: [
|
|
291
|
+
(e == null ? void 0 : e.email) && /* @__PURE__ */ l(
|
|
291
292
|
"a",
|
|
292
293
|
{
|
|
293
294
|
href: `mailto:${e.email}`,
|
|
294
295
|
className: "flex items-center gap-2 text-[12px] text-slate-600 dark:text-slate-300 hover:text-nvr-navy dark:hover:text-nvr-cyan transition-colors truncate group",
|
|
295
296
|
children: [
|
|
296
|
-
/* @__PURE__ */
|
|
297
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ t(U, { className: "h-3.5 w-3.5 shrink-0 text-slate-400 group-hover:text-nvr-cyan transition-colors" }),
|
|
298
|
+
/* @__PURE__ */ t("span", { className: "truncate", children: e.email })
|
|
298
299
|
]
|
|
299
300
|
}
|
|
300
301
|
),
|
|
301
|
-
(e == null ? void 0 : e.phone) && /* @__PURE__ */
|
|
302
|
+
(e == null ? void 0 : e.phone) && /* @__PURE__ */ l(
|
|
302
303
|
"a",
|
|
303
304
|
{
|
|
304
305
|
href: `tel:${e.phone}`,
|
|
305
306
|
className: "flex items-center gap-2 text-[12px] text-slate-600 dark:text-slate-300 hover:text-nvr-navy dark:hover:text-nvr-cyan transition-colors group",
|
|
306
307
|
children: [
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ t(q, { className: "h-3.5 w-3.5 shrink-0 text-slate-400 group-hover:text-nvr-cyan transition-colors" }),
|
|
309
|
+
/* @__PURE__ */ t("span", { children: e.phone })
|
|
309
310
|
]
|
|
310
311
|
}
|
|
311
312
|
)
|
|
312
313
|
] }),
|
|
313
|
-
((e == null ? void 0 : e.role_name) ||
|
|
314
|
-
(e == null ? void 0 : e.role_name) && /* @__PURE__ */
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
/* @__PURE__ */
|
|
314
|
+
((e == null ? void 0 : e.role_name) || v || a) && /* @__PURE__ */ l("div", { className: "px-4 py-3 space-y-1.5 border-b border-slate-100 dark:border-border", children: [
|
|
315
|
+
(e == null ? void 0 : e.role_name) && /* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[11px] text-slate-500 dark:text-slate-400", children: [
|
|
316
|
+
/* @__PURE__ */ t(D, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
317
|
+
/* @__PURE__ */ t("span", { children: e.role_name })
|
|
317
318
|
] }),
|
|
318
|
-
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
/* @__PURE__ */
|
|
319
|
+
v && /* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[11px] text-slate-500 dark:text-slate-400", children: [
|
|
320
|
+
/* @__PURE__ */ t($, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
321
|
+
/* @__PURE__ */ l("span", { children: [
|
|
321
322
|
"Reports to",
|
|
322
323
|
" ",
|
|
323
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ t("span", { className: "font-medium text-slate-600 dark:text-slate-300", children: v })
|
|
324
325
|
] })
|
|
325
326
|
] }),
|
|
326
|
-
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */
|
|
327
|
+
a && /* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[11px] text-slate-400", children: [
|
|
328
|
+
/* @__PURE__ */ t(z, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
329
|
+
/* @__PURE__ */ l("span", { children: [
|
|
329
330
|
"Last seen ",
|
|
330
|
-
|
|
331
|
+
a
|
|
331
332
|
] })
|
|
332
333
|
] })
|
|
333
334
|
] }),
|
|
334
|
-
/* @__PURE__ */
|
|
335
|
-
d && /* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-1 p-2", children: [
|
|
336
|
+
d && /* @__PURE__ */ l(
|
|
336
337
|
"button",
|
|
337
338
|
{
|
|
338
339
|
type: "button",
|
|
339
340
|
onClick: () => {
|
|
340
|
-
n == null || n(),
|
|
341
|
+
n == null || n(), s(d);
|
|
341
342
|
},
|
|
342
|
-
className: "flex flex-1 items-center justify-center gap-1.5 rounded-md px-
|
|
343
|
+
className: "flex flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-2 py-1.5 text-[11px] font-medium text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-accent transition-colors",
|
|
343
344
|
children: [
|
|
344
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ t($, { className: "h-3.5 w-3.5" }),
|
|
345
346
|
" View profile"
|
|
346
347
|
]
|
|
347
348
|
}
|
|
348
349
|
),
|
|
349
|
-
|
|
350
|
+
X() && /* @__PURE__ */ l(
|
|
350
351
|
"button",
|
|
351
352
|
{
|
|
352
353
|
type: "button",
|
|
353
354
|
onClick: () => {
|
|
354
|
-
n == null || n(),
|
|
355
|
-
|
|
355
|
+
n == null || n(), Y(
|
|
356
|
+
r,
|
|
356
357
|
e ? [e.first_name, e.last_name].filter(Boolean).join(" ") || e.email : void 0
|
|
357
358
|
);
|
|
358
359
|
},
|
|
359
|
-
className: "flex flex-1 items-center justify-center gap-1.5 rounded-md px-
|
|
360
|
+
className: "flex flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-2 py-1.5 text-[11px] font-medium text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-accent transition-colors",
|
|
360
361
|
children: [
|
|
361
|
-
/* @__PURE__ */
|
|
362
|
+
/* @__PURE__ */ t(F, { className: "h-3.5 w-3.5" }),
|
|
362
363
|
" Message"
|
|
363
364
|
]
|
|
364
365
|
}
|
|
365
366
|
),
|
|
366
|
-
(e == null ? void 0 : e.email) && /* @__PURE__ */
|
|
367
|
+
(e == null ? void 0 : e.email) && /* @__PURE__ */ l(
|
|
367
368
|
"button",
|
|
368
369
|
{
|
|
369
370
|
type: "button",
|
|
370
371
|
onClick: () => {
|
|
371
372
|
n == null || n(), window.location.href = `mailto:${e.email}`;
|
|
372
373
|
},
|
|
373
|
-
className: "flex flex-1 items-center justify-center gap-1.5 rounded-md px-
|
|
374
|
+
className: "flex flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-2 py-1.5 text-[11px] font-medium text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-accent transition-colors",
|
|
374
375
|
children: [
|
|
375
|
-
/* @__PURE__ */
|
|
376
|
+
/* @__PURE__ */ t(K, { className: "h-3.5 w-3.5" }),
|
|
376
377
|
" Email"
|
|
377
378
|
]
|
|
378
379
|
}
|
|
379
380
|
)
|
|
380
|
-
] })
|
|
381
|
+
] }),
|
|
382
|
+
b && !k && /* @__PURE__ */ t(
|
|
383
|
+
ce,
|
|
384
|
+
{
|
|
385
|
+
userId: r,
|
|
386
|
+
name: e ? [e.first_name, e.last_name].filter(Boolean).join(" ") || e.email : r,
|
|
387
|
+
onDone: n
|
|
388
|
+
}
|
|
389
|
+
)
|
|
390
|
+
]
|
|
391
|
+
}
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
function ce({
|
|
395
|
+
userId: e,
|
|
396
|
+
name: r,
|
|
397
|
+
onDone: i
|
|
398
|
+
}) {
|
|
399
|
+
const [s, d] = P(!1);
|
|
400
|
+
B(() => {
|
|
401
|
+
if (!s) return;
|
|
402
|
+
const h = setTimeout(() => d(!1), 4e3);
|
|
403
|
+
return () => clearTimeout(h);
|
|
404
|
+
}, [s]);
|
|
405
|
+
const o = te(e, { onDone: i }), c = ae(e, r, { onDone: i }), n = "flex flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1.5 text-[11px] font-medium transition-colors disabled:opacity-50";
|
|
406
|
+
return /* @__PURE__ */ l(
|
|
407
|
+
"div",
|
|
408
|
+
{
|
|
409
|
+
className: "flex items-center gap-1 border-t border-slate-100 p-2 dark:border-border",
|
|
410
|
+
"data-user-card-admin": !0,
|
|
411
|
+
children: [
|
|
412
|
+
/* @__PURE__ */ l(
|
|
413
|
+
"button",
|
|
414
|
+
{
|
|
415
|
+
type: "button",
|
|
416
|
+
disabled: o.isPending,
|
|
417
|
+
onClick: () => o.mutate({}),
|
|
418
|
+
"data-tip": "Every tab they have open shows a 15-second countdown, then reloads",
|
|
419
|
+
className: _(
|
|
420
|
+
n,
|
|
421
|
+
"text-amber-800 hover:bg-amber-50 dark:text-amber-300 dark:hover:bg-amber-500/10"
|
|
422
|
+
),
|
|
423
|
+
"data-user-card-reload": !0,
|
|
424
|
+
children: [
|
|
425
|
+
/* @__PURE__ */ t(W, { className: _("h-3.5 w-3.5", o.isPending && "animate-spin") }),
|
|
426
|
+
o.isPending ? "Sending…" : "Reload tabs"
|
|
427
|
+
]
|
|
428
|
+
}
|
|
429
|
+
),
|
|
430
|
+
/* @__PURE__ */ l(
|
|
431
|
+
"button",
|
|
432
|
+
{
|
|
433
|
+
type: "button",
|
|
434
|
+
disabled: c.isPending,
|
|
435
|
+
onClick: () => s ? c.mutate() : d(!0),
|
|
436
|
+
"data-tip": s ? "Click again to sign them out of every session" : "Ends every session they have, on every app — they can sign in again",
|
|
437
|
+
className: _(
|
|
438
|
+
n,
|
|
439
|
+
s ? "bg-red-600 text-white hover:bg-red-700" : "text-amber-800 hover:bg-amber-50 dark:text-amber-300 dark:hover:bg-amber-500/10"
|
|
440
|
+
),
|
|
441
|
+
"data-user-card-sign-out": s ? "armed" : "",
|
|
442
|
+
children: [
|
|
443
|
+
/* @__PURE__ */ t(H, { className: "h-3.5 w-3.5" }),
|
|
444
|
+
c.isPending ? "Signing out…" : s ? "Confirm sign out" : "Sign out"
|
|
445
|
+
]
|
|
446
|
+
}
|
|
447
|
+
)
|
|
381
448
|
]
|
|
382
449
|
}
|
|
383
450
|
);
|
|
384
451
|
}
|
|
385
|
-
function
|
|
452
|
+
function me({
|
|
386
453
|
userId: e,
|
|
387
|
-
size:
|
|
388
|
-
children:
|
|
454
|
+
size: r = "default",
|
|
455
|
+
children: i
|
|
389
456
|
}) {
|
|
390
|
-
const
|
|
391
|
-
|
|
457
|
+
const s = T(), { navigate: d, userUrl: o } = Z(), c = o ? o(e) : `/users/${e}`, [n, h] = P(!1), b = R.useId();
|
|
458
|
+
E(
|
|
392
459
|
n,
|
|
393
|
-
(
|
|
394
|
-
var
|
|
395
|
-
return !!((
|
|
396
|
-
!!((
|
|
460
|
+
(a) => {
|
|
461
|
+
var p, f, x, w;
|
|
462
|
+
return !!((p = a.closest) != null && p.call(a, `[data-nvr-user-card="${CSS.escape(b)}"]`)) || !!((f = a.closest) != null && f.call(a, `[data-nvr-user-chip="${CSS.escape(b)}"]`)) || // Anything else floating above the card (a tooltip, a nested menu).
|
|
463
|
+
!!((x = a.closest) != null && x.call(a, "[data-radix-popper-content-wrapper]")) && !((w = a.closest) != null && w.call(a, "[data-nvr-user-card]"));
|
|
397
464
|
},
|
|
398
|
-
() =>
|
|
465
|
+
() => h(!1)
|
|
399
466
|
);
|
|
400
|
-
const { data:
|
|
401
|
-
...
|
|
402
|
-
enabled: !!
|
|
467
|
+
const { data: g, isLoading: k } = j({
|
|
468
|
+
...G(s, e),
|
|
469
|
+
enabled: !!s && !!e,
|
|
403
470
|
staleTime: 12e4
|
|
404
|
-
}), { data:
|
|
471
|
+
}), { data: m } = j({
|
|
405
472
|
queryKey: ["user-presence", e],
|
|
406
|
-
queryFn: () =>
|
|
407
|
-
enabled: !!
|
|
473
|
+
queryFn: () => s.request(L(`/presence/users/${e}`)).then((a) => a),
|
|
474
|
+
enabled: !!s && !!e && n,
|
|
408
475
|
staleTime: 15e3,
|
|
409
476
|
refetchInterval: n ? 2e4 : !1
|
|
410
|
-
}),
|
|
411
|
-
return
|
|
412
|
-
/* @__PURE__ */
|
|
413
|
-
/* @__PURE__ */
|
|
414
|
-
] }) : /* @__PURE__ */
|
|
415
|
-
/* @__PURE__ */
|
|
416
|
-
/* @__PURE__ */
|
|
477
|
+
}), u = g ? [g.first_name, g.last_name].filter(Boolean).join(" ") || g.email : e, v = u.split(" ").map((a) => a[0]).filter(Boolean).slice(0, 2).join("").toUpperCase(), y = (m == null ? void 0 : m.online) ?? !1;
|
|
478
|
+
return k && !i ? r === "compact" ? /* @__PURE__ */ t("span", { className: "animate-pulse inline-block h-3.5 w-16 rounded bg-slate-200 dark:bg-[hsl(var(--nvr-skeleton))]" }) : /* @__PURE__ */ l("span", { className: "inline-flex items-center gap-1.5 rounded-full border border-slate-200 bg-slate-50 py-0.5 pl-0.5 pr-2.5", children: [
|
|
479
|
+
/* @__PURE__ */ t("span", { className: "flex h-6 w-6 shrink-0 rounded-full animate-pulse bg-slate-200 dark:bg-[hsl(var(--nvr-skeleton))]" }),
|
|
480
|
+
/* @__PURE__ */ t("span", { className: "animate-pulse h-2.5 w-16 rounded bg-slate-200 dark:bg-[hsl(var(--nvr-skeleton))] inline-block" })
|
|
481
|
+
] }) : /* @__PURE__ */ l(re, { open: n, onOpenChange: h, children: [
|
|
482
|
+
/* @__PURE__ */ t(le, { asChild: !0, "data-nvr-user-chip": b, children: i || (r === "compact" ? /* @__PURE__ */ l("span", { className: "inline-flex cursor-pointer items-center gap-1 rounded-full bg-slate-100 dark:bg-slate-800 py-px pl-px pr-1.5 hover:bg-slate-200 dark:hover:bg-slate-700 transition-colors", children: [
|
|
483
|
+
/* @__PURE__ */ t(
|
|
417
484
|
C,
|
|
418
485
|
{
|
|
419
486
|
userId: e,
|
|
420
487
|
className: "h-4 w-4",
|
|
421
|
-
fallback: /* @__PURE__ */
|
|
488
|
+
fallback: /* @__PURE__ */ t(
|
|
422
489
|
"span",
|
|
423
490
|
{
|
|
424
491
|
"data-copy-skip": !0,
|
|
425
492
|
"aria-hidden": "true",
|
|
426
493
|
className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-nvr-cyan/20 text-[9px] font-bold text-nvr-navy dark:text-nvr-cyan",
|
|
427
|
-
children:
|
|
494
|
+
children: v
|
|
428
495
|
}
|
|
429
496
|
)
|
|
430
497
|
}
|
|
431
498
|
),
|
|
432
|
-
/* @__PURE__ */
|
|
433
|
-
] }) : /* @__PURE__ */
|
|
434
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ t("span", { className: "text-[11px] font-medium text-slate-600 dark:text-slate-300", children: u })
|
|
500
|
+
] }) : /* @__PURE__ */ l("div", { className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-slate-200 bg-slate-50 py-0.5 pl-0.5 pr-2.5 hover:bg-slate-100 dark:border-border dark:bg-card dark:hover:bg-accent transition-colors", children: [
|
|
501
|
+
/* @__PURE__ */ t(
|
|
435
502
|
C,
|
|
436
503
|
{
|
|
437
504
|
userId: e,
|
|
438
505
|
className: "h-6 w-6",
|
|
439
|
-
fallback: /* @__PURE__ */
|
|
506
|
+
fallback: /* @__PURE__ */ t(
|
|
440
507
|
"span",
|
|
441
508
|
{
|
|
442
509
|
"data-copy-skip": !0,
|
|
443
510
|
"aria-hidden": "true",
|
|
444
511
|
className: "flex h-6 w-6 items-center justify-center rounded-full bg-nvr-cyan/15 text-[10px] font-semibold text-nvr-navy dark:text-nvr-cyan",
|
|
445
|
-
children:
|
|
512
|
+
children: v
|
|
446
513
|
}
|
|
447
514
|
)
|
|
448
515
|
}
|
|
449
516
|
),
|
|
450
|
-
/* @__PURE__ */
|
|
517
|
+
/* @__PURE__ */ t("span", { className: "text-[12px] text-slate-700 dark:text-slate-300", children: u })
|
|
451
518
|
] })) }),
|
|
452
|
-
/* @__PURE__ */
|
|
453
|
-
|
|
519
|
+
/* @__PURE__ */ t(
|
|
520
|
+
de,
|
|
454
521
|
{
|
|
455
|
-
user:
|
|
522
|
+
user: g,
|
|
456
523
|
userId: e,
|
|
457
|
-
initials:
|
|
524
|
+
initials: v,
|
|
458
525
|
navigate: d,
|
|
459
|
-
profileUrl:
|
|
460
|
-
online:
|
|
526
|
+
profileUrl: c,
|
|
527
|
+
online: y,
|
|
461
528
|
cardId: b,
|
|
462
|
-
onAction: () =>
|
|
529
|
+
onAction: () => h(!1),
|
|
463
530
|
open: n
|
|
464
531
|
}
|
|
465
532
|
)
|
|
466
533
|
] });
|
|
467
534
|
}
|
|
468
535
|
export {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
536
|
+
$e as OwnersInline,
|
|
537
|
+
Te as OwnersInlineCompact,
|
|
538
|
+
ce as UserCardAdminRow,
|
|
539
|
+
me as UserChip,
|
|
540
|
+
ie as UserRosterCluster
|
|
473
541
|
};
|