@nivaro/react 0.3.123 → 0.3.124
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/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/shared/components/CollectionBrowserView.js +93 -91
- package/dist/shared/components/DataTable.js +240 -228
- package/dist/shared/components/RecordReadView.js +1 -1
- package/dist/shared/components/TipLayer.js +86 -63
- package/dist/shared/components/integrations/IntegrationDots.js +1 -0
- package/dist/shared/components/item-edit/HeaderRollupExplainer.js +156 -119
- package/dist/shared/components/item-edit/InlineGridField.js +1 -1
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +154 -179
- package/dist/shared/components/item-edit/UserChip.js +248 -232
- package/dist/shared/components/panels/PipelinePanel.js +252 -243
- package/dist/shared/components/panels/RevisionsPanel.js +1788 -662
- package/dist/shared/components/panels/revision-changes.js +229 -0
- package/dist/shared/components/panels/revision-table-parts.js +448 -0
- package/dist/shared/lib/activity-sentence.js +74 -68
- package/dist/shared/lib/editorjs.js +68 -0
- package/dist/shared/lib/revision-prefs.js +81 -0
- package/dist/shared/lib/xlsx-lite.js +125 -0
- package/package.json +1 -1
|
@@ -6,162 +6,162 @@ import { createPortal as I } from "react-dom";
|
|
|
6
6
|
import { useOptionalNivaroClient as T, useNavigation as A, useItemEditAuth as Q } from "../../context.js";
|
|
7
7
|
import { get as L, post as ee } from "../../lib/commands.js";
|
|
8
8
|
import { userCardQuery as D } from "../../lib/user-cards.js";
|
|
9
|
-
import { cn as
|
|
10
|
-
import { canOpenDm as te, openDmWith as
|
|
11
|
-
import { HuddlePresenceLine as
|
|
9
|
+
import { cn as M } from "../../lib/utils.js";
|
|
10
|
+
import { canOpenDm as te, openDmWith as ne } from "../chat/chat-core.js";
|
|
11
|
+
import { HuddlePresenceLine as ae } from "../chat/huddle/HuddleLiveBadge.js";
|
|
12
12
|
import { useHuddleLive as re } from "../chat/huddle/huddle-live.js";
|
|
13
13
|
import { standInIds as le, StandInMark as B, StandInReasonLines as se } from "../panels/StandInReason.js";
|
|
14
14
|
import { MailSuppressedPill as ie } from "../profile/MailSuppressedPill.js";
|
|
15
15
|
import { SignOutMessageInput as oe } from "../profile/SignOutMessageInput.js";
|
|
16
|
-
import { SIGN_OUT_ARM_MS as
|
|
16
|
+
import { SIGN_OUT_ARM_MS as ce, useReloadTheirTabs as de, useSignOutEverywhere as me } from "../profile/session-actions.js";
|
|
17
17
|
import { useCardPresence as pe } from "../profile/usePersonPresence.js";
|
|
18
|
-
import { UserAvatar as
|
|
18
|
+
import { UserAvatar as P } from "../UserAvatar.js";
|
|
19
19
|
import { Popover as fe, PopoverTrigger as xe, PopoverContent as he } from "../ui/popover.js";
|
|
20
|
-
function F(e,
|
|
21
|
-
const i = S(
|
|
22
|
-
i.current =
|
|
23
|
-
const
|
|
24
|
-
|
|
20
|
+
function F(e, n, s) {
|
|
21
|
+
const i = S(n);
|
|
22
|
+
i.current = n;
|
|
23
|
+
const o = S(s);
|
|
24
|
+
o.current = s, E(() => {
|
|
25
25
|
if (!e) return;
|
|
26
26
|
const c = (r) => {
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
return document.addEventListener("pointerdown", c, !0), window.addEventListener("blur",
|
|
31
|
-
document.removeEventListener("pointerdown", c, !0), window.removeEventListener("blur",
|
|
27
|
+
const m = r.target;
|
|
28
|
+
m && i.current(m) || o.current();
|
|
29
|
+
}, d = () => o.current();
|
|
30
|
+
return document.addEventListener("pointerdown", c, !0), window.addEventListener("blur", d), () => {
|
|
31
|
+
document.removeEventListener("pointerdown", c, !0), window.removeEventListener("blur", d);
|
|
32
32
|
};
|
|
33
33
|
}, [e]);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
const
|
|
37
|
-
return !
|
|
35
|
+
function be(e) {
|
|
36
|
+
const n = String(e ?? "").trim();
|
|
37
|
+
return !n || /^redacted\b/i.test(n) ? "" : n.split(/\s+/).map((s) => s[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ge(e, n) {
|
|
40
40
|
const s = String(e ?? "").trim();
|
|
41
|
-
return s || [
|
|
41
|
+
return s || [n == null ? void 0 : n.first_name, n == null ? void 0 : n.last_name].filter(Boolean).join(" ").trim();
|
|
42
42
|
}
|
|
43
43
|
function ue({
|
|
44
44
|
user: e,
|
|
45
|
-
avatarCls:
|
|
45
|
+
avatarCls: n
|
|
46
46
|
}) {
|
|
47
47
|
const s = T(), { data: i } = _({
|
|
48
48
|
...D(s, e.id),
|
|
49
49
|
enabled: !!s && !!e.id && !String(e.name ?? "").trim(),
|
|
50
50
|
staleTime: 30 * 6e4,
|
|
51
51
|
retry: !1
|
|
52
|
-
}),
|
|
52
|
+
}), o = ge(e.name, i), c = be(o), d = /^redacted\b/i.test(o);
|
|
53
53
|
return /* @__PURE__ */ t(
|
|
54
54
|
"span",
|
|
55
55
|
{
|
|
56
56
|
className: "inline-flex",
|
|
57
|
-
"data-tip":
|
|
57
|
+
"data-tip": d ? "Former user (account redacted)" : o || void 0,
|
|
58
58
|
children: /* @__PURE__ */ t(
|
|
59
|
-
|
|
59
|
+
P,
|
|
60
60
|
{
|
|
61
61
|
userId: e.id,
|
|
62
62
|
className: "h-6 w-6 border-2 border-white dark:border-slate-900",
|
|
63
|
-
fallback: /* @__PURE__ */ t("span", { "data-copy-skip": !0, "aria-hidden": "true", className:
|
|
63
|
+
fallback: /* @__PURE__ */ t("span", { "data-copy-skip": !0, "aria-hidden": "true", className: n, children: c || /* @__PURE__ */ t($, { className: "h-3 w-3", "aria-hidden": !0 }) })
|
|
64
64
|
}
|
|
65
65
|
)
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function ve(e) {
|
|
70
70
|
if (e.length === 0) return null;
|
|
71
|
-
const
|
|
72
|
-
return { name:
|
|
71
|
+
const n = e.find((s) => !s.inactive) ?? e[0];
|
|
72
|
+
return { name: n.name, more: e.length - 1, mark: n.inactive ?? null };
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function we({
|
|
75
75
|
users: e,
|
|
76
|
-
showSingleName:
|
|
76
|
+
showSingleName: n = !0,
|
|
77
77
|
nameLabel: s = !1,
|
|
78
78
|
standIn: i = null
|
|
79
79
|
}) {
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
var
|
|
84
|
-
|
|
85
|
-
const f = (
|
|
86
|
-
f &&
|
|
87
|
-
},
|
|
88
|
-
|
|
80
|
+
const o = S(null), c = S(null), d = S(null), [r, m] = j(null), [b, u] = j({ x: 0, y: 0 }), v = () => {
|
|
81
|
+
d.current && clearTimeout(d.current), d.current = null;
|
|
82
|
+
}, h = (a) => {
|
|
83
|
+
var g;
|
|
84
|
+
v();
|
|
85
|
+
const f = (g = o.current) == null ? void 0 : g.getBoundingClientRect();
|
|
86
|
+
f && u({ x: f.left, y: f.bottom + 6 }), m((w) => w === "pin" ? "pin" : a);
|
|
87
|
+
}, p = () => {
|
|
88
|
+
v(), d.current = setTimeout(() => m((a) => a === "pin" ? a : null), 160);
|
|
89
89
|
};
|
|
90
90
|
if (q.useLayoutEffect(() => {
|
|
91
91
|
var U;
|
|
92
92
|
if (!r) return;
|
|
93
|
-
const
|
|
94
|
-
if (!
|
|
95
|
-
const f =
|
|
96
|
-
let { x:
|
|
97
|
-
if (f.right > window.innerWidth - 8 && (
|
|
98
|
-
const O = (U =
|
|
99
|
-
|
|
93
|
+
const a = c.current;
|
|
94
|
+
if (!a) return;
|
|
95
|
+
const f = a.getBoundingClientRect();
|
|
96
|
+
let { x: g, y: w } = b;
|
|
97
|
+
if (f.right > window.innerWidth - 8 && (g = Math.max(8, window.innerWidth - f.width - 8)), f.bottom > window.innerHeight - 8) {
|
|
98
|
+
const O = (U = o.current) == null ? void 0 : U.getBoundingClientRect();
|
|
99
|
+
w = Math.max(8, ((O == null ? void 0 : O.top) ?? w) - f.height - 6);
|
|
100
100
|
}
|
|
101
|
-
(
|
|
102
|
-
}, [r,
|
|
101
|
+
(g !== b.x || w !== b.y) && u({ x: g, y: w });
|
|
102
|
+
}, [r, b]), F(
|
|
103
103
|
!!r,
|
|
104
|
-
(
|
|
105
|
-
var f,
|
|
104
|
+
(a) => {
|
|
105
|
+
var f, g, w;
|
|
106
106
|
return (
|
|
107
107
|
// Clicks inside the user-card popover (portaled by Radix) keep the
|
|
108
108
|
// roster mounted — closing would unmount the card mid-click.
|
|
109
|
-
!!((f =
|
|
109
|
+
!!((f = a.closest) != null && f.call(a, "[data-radix-popper-content-wrapper]")) || !!((g = c.current) != null && g.contains(a)) || !!((w = o.current) != null && w.contains(a))
|
|
110
110
|
);
|
|
111
111
|
},
|
|
112
|
-
() =>
|
|
112
|
+
() => m(null)
|
|
113
113
|
), e.length === 0)
|
|
114
114
|
return /* @__PURE__ */ t("span", { className: "text-[11px] text-slate-400", "data-roster-empty": !0, children: "—" });
|
|
115
|
-
const
|
|
115
|
+
const k = e.slice(0, 4), y = e.length - k.length, x = le(i), C = (a) => x.has(String(a).toUpperCase()), N = "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]";
|
|
116
116
|
return /* @__PURE__ */ l(
|
|
117
117
|
"span",
|
|
118
118
|
{
|
|
119
|
-
ref:
|
|
120
|
-
onMouseEnter: () =>
|
|
121
|
-
onMouseLeave:
|
|
122
|
-
onClick: (
|
|
123
|
-
|
|
119
|
+
ref: o,
|
|
120
|
+
onMouseEnter: () => h("hover"),
|
|
121
|
+
onMouseLeave: p,
|
|
122
|
+
onClick: (a) => {
|
|
123
|
+
a.stopPropagation(), h("pin");
|
|
124
124
|
},
|
|
125
125
|
className: "inline-flex cursor-pointer items-center",
|
|
126
126
|
children: [
|
|
127
|
-
/* @__PURE__ */ t("span", { className: "flex -space-x-1", children:
|
|
128
|
-
|
|
127
|
+
/* @__PURE__ */ t("span", { className: "flex -space-x-1", children: k.map((a) => /* @__PURE__ */ t(ue, { user: a, avatarCls: N }, a.id)) }),
|
|
128
|
+
y > 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: [
|
|
129
129
|
"+",
|
|
130
|
-
|
|
130
|
+
y
|
|
131
131
|
] }),
|
|
132
132
|
s ? (() => {
|
|
133
|
-
const
|
|
134
|
-
if (!
|
|
135
|
-
const f = e.find((
|
|
133
|
+
const a = ve(e);
|
|
134
|
+
if (!a) return null;
|
|
135
|
+
const f = e.find((g) => !g.inactive) ?? e[0];
|
|
136
136
|
return /* @__PURE__ */ l(
|
|
137
137
|
"span",
|
|
138
138
|
{
|
|
139
139
|
"data-roster-label": "",
|
|
140
140
|
className: "ml-1.5 inline-flex max-w-[170px] items-baseline gap-1 text-[13px] font-semibold leading-tight text-slate-900 dark:text-slate-100",
|
|
141
141
|
children: [
|
|
142
|
-
/* @__PURE__ */ t("span", { className: "truncate", children:
|
|
143
|
-
|
|
144
|
-
!
|
|
145
|
-
|
|
142
|
+
/* @__PURE__ */ t("span", { className: "truncate", children: a.name }),
|
|
143
|
+
a.mark && /* @__PURE__ */ t(R, { mark: a.mark }),
|
|
144
|
+
!a.mark && C(f.id) && /* @__PURE__ */ t(B, { className: "self-center" }),
|
|
145
|
+
a.more > 0 && /* @__PURE__ */ l("span", { className: "shrink-0 font-normal text-slate-500 dark:text-slate-400", children: [
|
|
146
146
|
"+",
|
|
147
|
-
|
|
147
|
+
a.more
|
|
148
148
|
] })
|
|
149
149
|
]
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
|
-
})() :
|
|
152
|
+
})() : n && 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 }),
|
|
153
153
|
r && I(
|
|
154
154
|
/* @__PURE__ */ l(
|
|
155
155
|
"div",
|
|
156
156
|
{
|
|
157
157
|
ref: c,
|
|
158
|
-
style: ke(
|
|
159
|
-
onMouseEnter:
|
|
160
|
-
onMouseLeave:
|
|
161
|
-
onMouseDown: (
|
|
162
|
-
|
|
158
|
+
style: ke(o.current, b),
|
|
159
|
+
onMouseEnter: v,
|
|
160
|
+
onMouseLeave: p,
|
|
161
|
+
onMouseDown: (a) => {
|
|
162
|
+
a.stopPropagation(), m("pin");
|
|
163
163
|
},
|
|
164
|
-
onClick: (
|
|
164
|
+
onClick: (a) => a.stopPropagation(),
|
|
165
165
|
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",
|
|
166
166
|
children: [
|
|
167
167
|
/* @__PURE__ */ l("p", { className: "px-3 pb-1 text-[10px] font-bold uppercase tracking-wide text-slate-400", children: [
|
|
@@ -169,23 +169,23 @@ function ve({
|
|
|
169
169
|
" user",
|
|
170
170
|
e.length === 1 ? "" : "s"
|
|
171
171
|
] }),
|
|
172
|
-
e.map((
|
|
173
|
-
/* @__PURE__ */ t(Ce, { userId:
|
|
174
|
-
|
|
175
|
-
!
|
|
176
|
-
] },
|
|
177
|
-
i && e.some((
|
|
172
|
+
e.map((a) => /* @__PURE__ */ l("div", { className: "flex items-center gap-1.5 px-2 py-0.5", children: [
|
|
173
|
+
/* @__PURE__ */ t(Ce, { userId: a.id, size: "compact" }),
|
|
174
|
+
a.inactive && /* @__PURE__ */ t(R, { mark: a.inactive }),
|
|
175
|
+
!a.inactive && C(a.id) && /* @__PURE__ */ t(B, {})
|
|
176
|
+
] }, a.id)),
|
|
177
|
+
i && e.some((a) => C(a.id)) && /* @__PURE__ */ t(
|
|
178
178
|
se,
|
|
179
179
|
{
|
|
180
180
|
reason: i,
|
|
181
|
-
onNavigate: () =>
|
|
181
|
+
onNavigate: () => m(null),
|
|
182
182
|
className: "mx-3 mt-1.5 border-t border-slate-100 pt-1.5 pb-0.5 dark:border-slate-700"
|
|
183
183
|
}
|
|
184
184
|
)
|
|
185
185
|
]
|
|
186
186
|
}
|
|
187
187
|
),
|
|
188
|
-
K(
|
|
188
|
+
K(o.current)
|
|
189
189
|
)
|
|
190
190
|
]
|
|
191
191
|
}
|
|
@@ -204,67 +204,67 @@ function R({ mark: e }) {
|
|
|
204
204
|
function K(e) {
|
|
205
205
|
return (e == null ? void 0 : e.closest('[role="dialog"]')) ?? document.body;
|
|
206
206
|
}
|
|
207
|
-
function ke(e,
|
|
207
|
+
function ke(e, n) {
|
|
208
208
|
const s = K(e);
|
|
209
|
-
if (s === document.body) return { position: "fixed", left:
|
|
209
|
+
if (s === document.body) return { position: "fixed", left: n.x, top: n.y, zIndex: 50 };
|
|
210
210
|
const i = s.getBoundingClientRect();
|
|
211
|
-
return { position: "absolute", left:
|
|
211
|
+
return { position: "absolute", left: n.x - i.left, top: n.y - i.top, zIndex: 120 };
|
|
212
212
|
}
|
|
213
213
|
function He({
|
|
214
214
|
collection: e,
|
|
215
|
-
itemId:
|
|
215
|
+
itemId: n
|
|
216
216
|
}) {
|
|
217
|
-
var
|
|
217
|
+
var u;
|
|
218
218
|
const s = T(), {
|
|
219
219
|
data: i = [],
|
|
220
|
-
isLoading:
|
|
220
|
+
isLoading: o,
|
|
221
221
|
isFetching: c
|
|
222
222
|
} = _({
|
|
223
|
-
queryKey: ["pipeline-owners-resolved", e,
|
|
224
|
-
queryFn: () => s.request(ee(`/pipelines/instance/${e}/owners/batch`, { ids: [
|
|
225
|
-
var
|
|
226
|
-
return ((
|
|
223
|
+
queryKey: ["pipeline-owners-resolved", e, n],
|
|
224
|
+
queryFn: () => s.request(ee(`/pipelines/instance/${e}/owners/batch`, { ids: [n] })).then((v) => {
|
|
225
|
+
var h;
|
|
226
|
+
return ((h = v.data) == null ? void 0 : h[n]) ?? [];
|
|
227
227
|
}),
|
|
228
|
-
enabled: !!s && !!e && !!
|
|
228
|
+
enabled: !!s && !!e && !!n && n !== "new",
|
|
229
229
|
staleTime: 3e4,
|
|
230
230
|
// Keep this RECORD's last answer while a move re-asks (the tile used to go
|
|
231
231
|
// blank for ~2 s after Submit) — never another record's (b01-N15).
|
|
232
|
-
placeholderData: (
|
|
233
|
-
}), { data:
|
|
234
|
-
queryKey: ["pipeline-instance", e,
|
|
235
|
-
queryFn: () => s.request(L(`/pipelines/instance/${e}/${
|
|
236
|
-
enabled: !!s && !!e && !!
|
|
232
|
+
placeholderData: (v, h) => (h == null ? void 0 : h.queryKey[1]) === e && String(h == null ? void 0 : h.queryKey[2]) === String(n) ? v : void 0
|
|
233
|
+
}), { data: d } = _({
|
|
234
|
+
queryKey: ["pipeline-instance", e, n],
|
|
235
|
+
queryFn: () => s.request(L(`/pipelines/instance/${e}/${n}`)).then((v) => v.data ?? null),
|
|
236
|
+
enabled: !!s && !!e && !!n && n !== "new",
|
|
237
237
|
staleTime: 1e4
|
|
238
238
|
});
|
|
239
|
-
if (
|
|
239
|
+
if (o || c && i.length === 0)
|
|
240
240
|
return /* @__PURE__ */ t("span", { className: "animate-pulse h-3 w-20 rounded bg-slate-200 dark:bg-[hsl(var(--nvr-skeleton))] inline-block" });
|
|
241
|
-
const r = (
|
|
242
|
-
return /* @__PURE__ */ t(
|
|
241
|
+
const r = (d == null ? void 0 : d.stand_in_reason) ?? null, m = (u = d == null ? void 0 : d.instance) == null ? void 0 : u.current_state, b = r && (!m || String(m).toUpperCase() === r.state.id.toUpperCase()) ? r : null;
|
|
242
|
+
return /* @__PURE__ */ t(we, { users: i, nameLabel: !0, standIn: b });
|
|
243
243
|
}
|
|
244
244
|
function Je({
|
|
245
245
|
collection: e,
|
|
246
|
-
itemId:
|
|
246
|
+
itemId: n,
|
|
247
247
|
label: s
|
|
248
248
|
}) {
|
|
249
|
-
const i = T(), { data:
|
|
250
|
-
queryKey: ["pipeline-instance-owners", e,
|
|
251
|
-
queryFn: () => i.request(L(`/pipelines/instance/${e}/${
|
|
252
|
-
enabled: !!i && !!e && !!
|
|
249
|
+
const i = T(), { data: o = [] } = _({
|
|
250
|
+
queryKey: ["pipeline-instance-owners", e, n],
|
|
251
|
+
queryFn: () => i.request(L(`/pipelines/instance/${e}/${n}/owners`)).then((r) => r.data ?? []),
|
|
252
|
+
enabled: !!i && !!e && !!n && n !== "new",
|
|
253
253
|
staleTime: 3e4
|
|
254
|
-
}), c = (r) => [r.first_name, r.last_name].filter(Boolean).join(" ") || r.email,
|
|
254
|
+
}), c = (r) => [r.first_name, r.last_name].filter(Boolean).join(" ") || r.email, d = (r) => c(r).split(" ").map((m) => m[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
255
255
|
return /* @__PURE__ */ l("div", { children: [
|
|
256
256
|
/* @__PURE__ */ t("p", { className: "text-[11px] font-medium text-slate-400 mb-1.5", children: s }),
|
|
257
|
-
|
|
257
|
+
o.length === 0 ? /* @__PURE__ */ t("p", { className: "text-[13px] text-slate-400", children: "—" }) : /* @__PURE__ */ t("div", { className: "flex flex-wrap gap-2", children: o.map((r) => /* @__PURE__ */ l(
|
|
258
258
|
"div",
|
|
259
259
|
{
|
|
260
260
|
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",
|
|
261
261
|
children: [
|
|
262
262
|
/* @__PURE__ */ t(
|
|
263
|
-
|
|
263
|
+
P,
|
|
264
264
|
{
|
|
265
265
|
userId: r.id,
|
|
266
266
|
className: "h-6 w-6",
|
|
267
|
-
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:
|
|
267
|
+
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: d(r) })
|
|
268
268
|
}
|
|
269
269
|
),
|
|
270
270
|
/* @__PURE__ */ t("span", { className: "text-[12px] text-slate-700", children: c(r) })
|
|
@@ -276,66 +276,66 @@ function Je({
|
|
|
276
276
|
}
|
|
277
277
|
function ye({
|
|
278
278
|
user: e,
|
|
279
|
-
userId:
|
|
279
|
+
userId: n,
|
|
280
280
|
initials: s,
|
|
281
281
|
navigate: i,
|
|
282
|
-
profileUrl:
|
|
282
|
+
profileUrl: o,
|
|
283
283
|
online: c,
|
|
284
|
-
cardId:
|
|
284
|
+
cardId: d,
|
|
285
285
|
onAction: r,
|
|
286
|
-
open:
|
|
286
|
+
open: m = !1
|
|
287
287
|
}) {
|
|
288
|
-
var
|
|
289
|
-
const { isAdmin:
|
|
290
|
-
const
|
|
291
|
-
if (!
|
|
288
|
+
var a;
|
|
289
|
+
const { isAdmin: b, userId: u } = Q(), v = !!u && u.toUpperCase() === n.toUpperCase(), h = !(e != null && e.account_kind), p = pe(n, m), k = re().roomOf(n), y = ((a = e == null ? void 0 : e.manager_name) == null ? void 0 : a.trim()) || null, x = (() => {
|
|
290
|
+
const f = e == null ? void 0 : e.timezone;
|
|
291
|
+
if (!f) return null;
|
|
292
292
|
try {
|
|
293
|
-
const
|
|
294
|
-
return
|
|
293
|
+
const g = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
294
|
+
return f === g ? null : new Intl.DateTimeFormat(void 0, {
|
|
295
295
|
hour: "numeric",
|
|
296
296
|
minute: "2-digit",
|
|
297
|
-
timeZone:
|
|
297
|
+
timeZone: f
|
|
298
298
|
}).format(/* @__PURE__ */ new Date());
|
|
299
299
|
} catch {
|
|
300
300
|
return null;
|
|
301
301
|
}
|
|
302
|
-
})(),
|
|
303
|
-
const
|
|
304
|
-
if (
|
|
305
|
-
if (
|
|
306
|
-
const
|
|
307
|
-
return
|
|
302
|
+
})(), N = !!c || !!p.word ? p.word ? null : "Just now" : e != null && e.last_access ? (() => {
|
|
303
|
+
const f = Date.now() - new Date(e.last_access).getTime(), g = Math.floor(f / 6e4);
|
|
304
|
+
if (g < 2) return "Just now";
|
|
305
|
+
if (g < 60) return `${g}m ago`;
|
|
306
|
+
const w = Math.floor(g / 60);
|
|
307
|
+
return w < 24 ? `${w}h ago` : `${Math.floor(w / 24)}d ago`;
|
|
308
308
|
})() : null;
|
|
309
309
|
return /* @__PURE__ */ l(
|
|
310
310
|
he,
|
|
311
311
|
{
|
|
312
312
|
align: "start",
|
|
313
313
|
className: "w-72 p-0 overflow-hidden",
|
|
314
|
-
"data-nvr-user-card":
|
|
314
|
+
"data-nvr-user-card": d ?? "",
|
|
315
315
|
children: [
|
|
316
316
|
/* @__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: [
|
|
317
317
|
/* @__PURE__ */ t(
|
|
318
|
-
|
|
318
|
+
P,
|
|
319
319
|
{
|
|
320
|
-
userId:
|
|
320
|
+
userId: n,
|
|
321
321
|
className: "h-12 w-12 ring-2 ring-white shadow-sm dark:ring-card",
|
|
322
322
|
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: s })
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
325
|
/* @__PURE__ */ l("div", { className: "min-w-0 flex-1", children: [
|
|
326
326
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-1.5", children: [
|
|
327
|
-
(c ||
|
|
327
|
+
(c || p.word) && /* @__PURE__ */ t(
|
|
328
328
|
"span",
|
|
329
329
|
{
|
|
330
|
-
"data-card-presence":
|
|
331
|
-
className:
|
|
330
|
+
"data-card-presence": p.word ?? "online",
|
|
331
|
+
className: M(
|
|
332
332
|
"h-2 w-2 shrink-0 rounded-full ring-2 ring-white dark:ring-card",
|
|
333
|
-
|
|
333
|
+
p.word === "away" ? "bg-white ring-amber-400 dark:bg-card" : p.word === "idle" ? "bg-amber-400" : "bg-emerald-400"
|
|
334
334
|
),
|
|
335
|
-
title:
|
|
335
|
+
title: p.word === "away" ? "Away" : p.word === "idle" ? "Idle" : "Online"
|
|
336
336
|
}
|
|
337
337
|
),
|
|
338
|
-
/* @__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 :
|
|
338
|
+
/* @__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 : n }),
|
|
339
339
|
(e == null ? void 0 : e.status) && e.status !== "active" && /* @__PURE__ */ t(
|
|
340
340
|
"span",
|
|
341
341
|
{
|
|
@@ -345,21 +345,21 @@ function ye({
|
|
|
345
345
|
)
|
|
346
346
|
] }),
|
|
347
347
|
((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(" · ") }),
|
|
348
|
-
|
|
348
|
+
p.word && /* @__PURE__ */ l(
|
|
349
349
|
"p",
|
|
350
350
|
{
|
|
351
351
|
className: "mt-0.5 truncate text-[11px] text-slate-500 dark:text-slate-400",
|
|
352
352
|
"data-card-presence-line": !0,
|
|
353
353
|
children: [
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
p.word === "away" ? "Away" : p.word === "idle" ? `Idle${p.minutes ? ` · ${p.minutes}m` : ""}` : "Online now",
|
|
355
|
+
p.page ? ` · on ${p.page}` : ""
|
|
356
356
|
]
|
|
357
357
|
}
|
|
358
358
|
),
|
|
359
|
-
/* @__PURE__ */ t(
|
|
360
|
-
|
|
359
|
+
/* @__PURE__ */ t(ae, { label: (k == null ? void 0 : k.label) ?? null, className: "mt-0.5" }),
|
|
360
|
+
x && /* @__PURE__ */ l("p", { className: "mt-0.5 text-[11px] text-slate-500 dark:text-slate-400", children: [
|
|
361
361
|
"Local time: ",
|
|
362
|
-
|
|
362
|
+
x
|
|
363
363
|
] }),
|
|
364
364
|
(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: [
|
|
365
365
|
/* @__PURE__ */ t(z, { className: "h-2.5 w-2.5" }),
|
|
@@ -369,8 +369,8 @@ function ye({
|
|
|
369
369
|
ie,
|
|
370
370
|
{
|
|
371
371
|
email: e == null ? void 0 : e.email,
|
|
372
|
-
enabled:
|
|
373
|
-
canClear:
|
|
372
|
+
enabled: m,
|
|
373
|
+
canClear: b,
|
|
374
374
|
className: "mt-1"
|
|
375
375
|
}
|
|
376
376
|
)
|
|
@@ -400,34 +400,34 @@ function ye({
|
|
|
400
400
|
}
|
|
401
401
|
)
|
|
402
402
|
] }),
|
|
403
|
-
((e == null ? void 0 : e.role_name) ||
|
|
403
|
+
((e == null ? void 0 : e.role_name) || y || N) && /* @__PURE__ */ l("div", { className: "px-4 py-3 space-y-1.5 border-b border-slate-100 dark:border-border", children: [
|
|
404
404
|
(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: [
|
|
405
405
|
/* @__PURE__ */ t(J, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
406
406
|
/* @__PURE__ */ t("span", { children: e.role_name })
|
|
407
407
|
] }),
|
|
408
|
-
|
|
408
|
+
y && /* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[11px] text-slate-500 dark:text-slate-400", children: [
|
|
409
409
|
/* @__PURE__ */ t($, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
410
410
|
/* @__PURE__ */ l("span", { children: [
|
|
411
411
|
"Reports to",
|
|
412
412
|
" ",
|
|
413
|
-
/* @__PURE__ */ t("span", { className: "font-medium text-slate-600 dark:text-slate-300", children:
|
|
413
|
+
/* @__PURE__ */ t("span", { className: "font-medium text-slate-600 dark:text-slate-300", children: y })
|
|
414
414
|
] })
|
|
415
415
|
] }),
|
|
416
|
-
|
|
416
|
+
N && /* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[11px] text-slate-400", children: [
|
|
417
417
|
/* @__PURE__ */ t(Z, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
418
418
|
/* @__PURE__ */ l("span", { children: [
|
|
419
419
|
"Last seen ",
|
|
420
|
-
|
|
420
|
+
N
|
|
421
421
|
] })
|
|
422
422
|
] })
|
|
423
423
|
] }),
|
|
424
424
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-1 p-2", children: [
|
|
425
|
-
|
|
425
|
+
o && /* @__PURE__ */ l(
|
|
426
426
|
"button",
|
|
427
427
|
{
|
|
428
428
|
type: "button",
|
|
429
429
|
onClick: () => {
|
|
430
|
-
r == null || r(), i(
|
|
430
|
+
r == null || r(), i(o);
|
|
431
431
|
},
|
|
432
432
|
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",
|
|
433
433
|
children: [
|
|
@@ -436,13 +436,13 @@ function ye({
|
|
|
436
436
|
]
|
|
437
437
|
}
|
|
438
438
|
),
|
|
439
|
-
te() && /* @__PURE__ */ l(
|
|
439
|
+
h && te() && /* @__PURE__ */ l(
|
|
440
440
|
"button",
|
|
441
441
|
{
|
|
442
442
|
type: "button",
|
|
443
443
|
onClick: () => {
|
|
444
|
-
r == null || r(),
|
|
445
|
-
|
|
444
|
+
r == null || r(), ne(
|
|
445
|
+
n,
|
|
446
446
|
e ? [e.first_name, e.last_name].filter(Boolean).join(" ") || e.email : void 0
|
|
447
447
|
);
|
|
448
448
|
},
|
|
@@ -453,7 +453,7 @@ function ye({
|
|
|
453
453
|
]
|
|
454
454
|
}
|
|
455
455
|
),
|
|
456
|
-
(e == null ? void 0 : e.email) && /* @__PURE__ */ l(
|
|
456
|
+
h && (e == null ? void 0 : e.email) && /* @__PURE__ */ l(
|
|
457
457
|
"button",
|
|
458
458
|
{
|
|
459
459
|
type: "button",
|
|
@@ -468,11 +468,11 @@ function ye({
|
|
|
468
468
|
}
|
|
469
469
|
)
|
|
470
470
|
] }),
|
|
471
|
-
|
|
471
|
+
b && !v && /* @__PURE__ */ t(
|
|
472
472
|
Ne,
|
|
473
473
|
{
|
|
474
|
-
userId:
|
|
475
|
-
name: e ? [e.first_name, e.last_name].filter(Boolean).join(" ") || e.email :
|
|
474
|
+
userId: n,
|
|
475
|
+
name: e ? [e.first_name, e.last_name].filter(Boolean).join(" ") || e.email : n,
|
|
476
476
|
onDone: r
|
|
477
477
|
}
|
|
478
478
|
)
|
|
@@ -482,16 +482,16 @@ function ye({
|
|
|
482
482
|
}
|
|
483
483
|
function Ne({
|
|
484
484
|
userId: e,
|
|
485
|
-
name:
|
|
485
|
+
name: n,
|
|
486
486
|
onDone: s
|
|
487
487
|
}) {
|
|
488
|
-
const [i,
|
|
488
|
+
const [i, o] = j(!1), [c, d] = j("");
|
|
489
489
|
E(() => {
|
|
490
490
|
if (!i || c.trim()) return;
|
|
491
|
-
const
|
|
492
|
-
return () => clearTimeout(
|
|
491
|
+
const v = setTimeout(() => o(!1), ce);
|
|
492
|
+
return () => clearTimeout(v);
|
|
493
493
|
}, [i, c]);
|
|
494
|
-
const r =
|
|
494
|
+
const r = de(e, { onDone: s }), m = me(e, n, { onDone: s }), b = () => m.mutate({ message: c }), u = "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";
|
|
495
495
|
return /* @__PURE__ */ l("div", { className: "border-t border-slate-100 p-2 dark:border-border", "data-user-card-admin": !0, children: [
|
|
496
496
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-1", children: [
|
|
497
497
|
/* @__PURE__ */ l(
|
|
@@ -501,13 +501,13 @@ function Ne({
|
|
|
501
501
|
disabled: r.isPending,
|
|
502
502
|
onClick: () => r.mutate({}),
|
|
503
503
|
"data-tip": "Every tab they have open shows a 15-second countdown, then reloads",
|
|
504
|
-
className:
|
|
505
|
-
|
|
504
|
+
className: M(
|
|
505
|
+
u,
|
|
506
506
|
"text-amber-800 hover:bg-amber-50 dark:text-amber-300 dark:hover:bg-amber-500/10"
|
|
507
507
|
),
|
|
508
508
|
"data-user-card-reload": !0,
|
|
509
509
|
children: [
|
|
510
|
-
/* @__PURE__ */ t(X, { className:
|
|
510
|
+
/* @__PURE__ */ t(X, { className: M("h-3.5 w-3.5", r.isPending && "animate-spin") }),
|
|
511
511
|
r.isPending ? "Sending…" : "Reload tabs"
|
|
512
512
|
]
|
|
513
513
|
}
|
|
@@ -516,17 +516,17 @@ function Ne({
|
|
|
516
516
|
"button",
|
|
517
517
|
{
|
|
518
518
|
type: "button",
|
|
519
|
-
disabled:
|
|
520
|
-
onClick: () => i ?
|
|
519
|
+
disabled: m.isPending,
|
|
520
|
+
onClick: () => i ? b() : o(!0),
|
|
521
521
|
"data-tip": i ? "Click again to sign them out of every session" : "Ends every session they have, on every app — they can sign in again",
|
|
522
|
-
className:
|
|
523
|
-
|
|
522
|
+
className: M(
|
|
523
|
+
u,
|
|
524
524
|
i ? "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"
|
|
525
525
|
),
|
|
526
526
|
"data-user-card-sign-out": i ? "armed" : "",
|
|
527
527
|
children: [
|
|
528
528
|
/* @__PURE__ */ t(Y, { className: "h-3.5 w-3.5" }),
|
|
529
|
-
|
|
529
|
+
m.isPending ? "Signing out…" : i ? "Confirm sign out" : "Sign out"
|
|
530
530
|
]
|
|
531
531
|
}
|
|
532
532
|
)
|
|
@@ -535,8 +535,8 @@ function Ne({
|
|
|
535
535
|
oe,
|
|
536
536
|
{
|
|
537
537
|
value: c,
|
|
538
|
-
onChange:
|
|
539
|
-
onSubmit:
|
|
538
|
+
onChange: d,
|
|
539
|
+
onSubmit: b,
|
|
540
540
|
className: "mt-2"
|
|
541
541
|
}
|
|
542
542
|
)
|
|
@@ -544,87 +544,103 @@ function Ne({
|
|
|
544
544
|
}
|
|
545
545
|
function Ce({
|
|
546
546
|
userId: e,
|
|
547
|
-
size:
|
|
547
|
+
size: n = "default",
|
|
548
548
|
children: s
|
|
549
549
|
}) {
|
|
550
|
-
const i = T(), { navigate:
|
|
550
|
+
const i = T(), { navigate: o, userUrl: c } = A(), d = c ? c(e) : `/users/${e}`, [r, m] = j(!1), b = q.useId();
|
|
551
551
|
F(
|
|
552
552
|
r,
|
|
553
553
|
(x) => {
|
|
554
|
-
var
|
|
555
|
-
return !!((
|
|
556
|
-
!!((
|
|
554
|
+
var C, N, a, f;
|
|
555
|
+
return !!((C = x.closest) != null && C.call(x, `[data-nvr-user-card="${CSS.escape(b)}"]`)) || !!((N = x.closest) != null && N.call(x, `[data-nvr-user-chip="${CSS.escape(b)}"]`)) || // Anything else floating above the card (a tooltip, a nested menu).
|
|
556
|
+
!!((a = x.closest) != null && a.call(x, "[data-radix-popper-content-wrapper]")) && !((f = x.closest) != null && f.call(x, "[data-nvr-user-card]"));
|
|
557
557
|
},
|
|
558
|
-
() =>
|
|
558
|
+
() => m(!1)
|
|
559
559
|
);
|
|
560
|
-
const { data:
|
|
560
|
+
const { data: u, isLoading: v } = _({
|
|
561
561
|
...D(i, e),
|
|
562
562
|
enabled: !!i && !!e,
|
|
563
563
|
staleTime: 12e4
|
|
564
|
-
}), { data:
|
|
564
|
+
}), { data: h } = _({
|
|
565
565
|
queryKey: ["user-presence", e],
|
|
566
566
|
queryFn: () => i.request(L(`/presence/users/${e}`)).then((x) => x),
|
|
567
567
|
enabled: !!i && !!e && r,
|
|
568
568
|
staleTime: 15e3,
|
|
569
569
|
refetchInterval: r ? 2e4 : !1
|
|
570
|
-
}),
|
|
571
|
-
return
|
|
570
|
+
}), p = u ? [u.first_name, u.last_name].filter(Boolean).join(" ") || u.email : e, k = p.split(" ").map((x) => x[0]).filter(Boolean).slice(0, 2).join("").toUpperCase(), y = (h == null ? void 0 : h.online) ?? !1;
|
|
571
|
+
return v && !s ? n === "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: [
|
|
572
572
|
/* @__PURE__ */ t("span", { className: "flex h-6 w-6 shrink-0 rounded-full animate-pulse bg-slate-200 dark:bg-[hsl(var(--nvr-skeleton))]" }),
|
|
573
573
|
/* @__PURE__ */ t("span", { className: "animate-pulse h-2.5 w-16 rounded bg-slate-200 dark:bg-[hsl(var(--nvr-skeleton))] inline-block" })
|
|
574
|
-
] }) : /* @__PURE__ */ l(fe, { open: r, onOpenChange:
|
|
575
|
-
/* @__PURE__ */ t(xe, { asChild: !0, "data-nvr-user-chip":
|
|
574
|
+
] }) : /* @__PURE__ */ l(fe, { open: r, onOpenChange: m, children: [
|
|
575
|
+
/* @__PURE__ */ t(xe, { asChild: !0, "data-nvr-user-chip": b, children: s || (n === "compact" ? (
|
|
576
576
|
// align-middle: a photo has no text baseline, so an inline-flex chip whose first item
|
|
577
577
|
// is an <img> sat on the photo's bottom edge — raised, and the row grew a few px
|
|
578
578
|
// (list cells with a photo were taller than ones with initials).
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
579
|
+
// A real <button> (not a span) so the card opens from the keyboard and the
|
|
580
|
+
// trigger's aria-expanded/aria-haspopup are allowed (a11y scan A11Y-01/02).
|
|
581
|
+
/* @__PURE__ */ l(
|
|
582
|
+
"button",
|
|
583
|
+
{
|
|
584
|
+
type: "button",
|
|
585
|
+
className: "inline-flex cursor-pointer items-center gap-1 rounded-full bg-slate-100 py-px pl-px pr-1.5 text-left align-middle transition-colors hover:bg-slate-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan dark:bg-slate-800 dark:hover:bg-slate-700",
|
|
586
|
+
children: [
|
|
587
|
+
/* @__PURE__ */ t(
|
|
588
|
+
P,
|
|
587
589
|
{
|
|
588
|
-
|
|
589
|
-
"
|
|
590
|
-
|
|
591
|
-
|
|
590
|
+
userId: e,
|
|
591
|
+
className: "h-4 w-4",
|
|
592
|
+
fallback: /* @__PURE__ */ t(
|
|
593
|
+
"span",
|
|
594
|
+
{
|
|
595
|
+
"data-copy-skip": !0,
|
|
596
|
+
"aria-hidden": "true",
|
|
597
|
+
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",
|
|
598
|
+
children: k
|
|
599
|
+
}
|
|
600
|
+
)
|
|
592
601
|
}
|
|
593
|
-
)
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
) : /* @__PURE__ */ l(
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
602
|
+
),
|
|
603
|
+
/* @__PURE__ */ t("span", { className: "text-[11px] font-medium text-slate-600 dark:text-slate-300", children: p })
|
|
604
|
+
]
|
|
605
|
+
}
|
|
606
|
+
)
|
|
607
|
+
) : /* @__PURE__ */ l(
|
|
608
|
+
"button",
|
|
609
|
+
{
|
|
610
|
+
type: "button",
|
|
611
|
+
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 text-left align-middle transition-colors hover:bg-slate-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan dark:border-border dark:bg-card dark:hover:bg-accent",
|
|
612
|
+
children: [
|
|
613
|
+
/* @__PURE__ */ t(
|
|
614
|
+
P,
|
|
606
615
|
{
|
|
607
|
-
|
|
608
|
-
"
|
|
609
|
-
|
|
610
|
-
|
|
616
|
+
userId: e,
|
|
617
|
+
className: "h-6 w-6",
|
|
618
|
+
fallback: /* @__PURE__ */ t(
|
|
619
|
+
"span",
|
|
620
|
+
{
|
|
621
|
+
"data-copy-skip": !0,
|
|
622
|
+
"aria-hidden": "true",
|
|
623
|
+
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",
|
|
624
|
+
children: k
|
|
625
|
+
}
|
|
626
|
+
)
|
|
611
627
|
}
|
|
612
|
-
)
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
628
|
+
),
|
|
629
|
+
/* @__PURE__ */ t("span", { className: "text-[12px] text-slate-700 dark:text-slate-300", children: p })
|
|
630
|
+
]
|
|
631
|
+
}
|
|
632
|
+
)) }),
|
|
617
633
|
/* @__PURE__ */ t(
|
|
618
634
|
ye,
|
|
619
635
|
{
|
|
620
|
-
user:
|
|
636
|
+
user: u,
|
|
621
637
|
userId: e,
|
|
622
|
-
initials:
|
|
623
|
-
navigate:
|
|
624
|
-
profileUrl:
|
|
625
|
-
online:
|
|
626
|
-
cardId:
|
|
627
|
-
onAction: () =>
|
|
638
|
+
initials: k,
|
|
639
|
+
navigate: o,
|
|
640
|
+
profileUrl: d,
|
|
641
|
+
online: y,
|
|
642
|
+
cardId: b,
|
|
643
|
+
onAction: () => m(!1),
|
|
628
644
|
open: r
|
|
629
645
|
}
|
|
630
646
|
)
|
|
@@ -635,8 +651,8 @@ export {
|
|
|
635
651
|
He as OwnersInlineCompact,
|
|
636
652
|
Ne as UserCardAdminRow,
|
|
637
653
|
Ce as UserChip,
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
654
|
+
we as UserRosterCluster,
|
|
655
|
+
be as rosterInitials,
|
|
656
|
+
ve as rosterLabel,
|
|
657
|
+
ge as rosterName
|
|
642
658
|
};
|