@nivaro/react 0.3.65 → 0.3.67

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.
Files changed (43) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +21 -5
  4. package/dist/shared/components/ActivityEntry.js +28 -28
  5. package/dist/shared/components/CollectionBrowserView.js +2432 -2592
  6. package/dist/shared/components/ItemEditForm.js +3912 -3773
  7. package/dist/shared/components/MyWorkView.js +124 -113
  8. package/dist/shared/components/ProfileView.js +483 -472
  9. package/dist/shared/components/RecordCompare.js +149 -129
  10. package/dist/shared/components/ReportView.js +1100 -1094
  11. package/dist/shared/components/bulk/BulkCompareButton.js +62 -0
  12. package/dist/shared/components/bulk/MessageStakeholders.js +235 -0
  13. package/dist/shared/components/integrations/IntegrationObligationsView.js +199 -187
  14. package/dist/shared/components/integrations/console/EventsView.js +22 -24
  15. package/dist/shared/components/integrations/console/SubmissionRow.js +6 -13
  16. package/dist/shared/components/integrations/console/drill/SubmissionDrill.js +29 -28
  17. package/dist/shared/components/integrations/console/tone.js +22 -21
  18. package/dist/shared/components/item-edit/CatalogPickerField.js +240 -238
  19. package/dist/shared/components/item-edit/FieldRow.js +193 -193
  20. package/dist/shared/components/item-edit/GroupSection.js +559 -542
  21. package/dist/shared/components/item-edit/M2MCombobox.js +414 -349
  22. package/dist/shared/components/item-edit/MidairCollisionDialog.js +211 -187
  23. package/dist/shared/components/item-edit/RecordInsights.js +46 -45
  24. package/dist/shared/components/item-edit/RelationCombobox.js +327 -311
  25. package/dist/shared/components/item-edit/SummaryPanel.js +146 -144
  26. package/dist/shared/components/item-edit/UserChip.js +264 -229
  27. package/dist/shared/components/item-edit/cascade-clear-notice.js +23 -19
  28. package/dist/shared/components/item-edit/header-path-preview.js +52 -0
  29. package/dist/shared/components/item-edit/line-merge.js +73 -47
  30. package/dist/shared/components/item-edit/picker-search.js +25 -21
  31. package/dist/shared/components/panels/BranchLanes.js +7 -7
  32. package/dist/shared/components/panels/CommentPanel.js +72 -72
  33. package/dist/shared/components/panels/PipelinePanel.js +261 -261
  34. package/dist/shared/components/panels/RecordIntegrityBanner.js +78 -78
  35. package/dist/shared/components/panels/RevisionsPanel.js +220 -220
  36. package/dist/shared/components/panels/TaskPanel.js +75 -75
  37. package/dist/shared/components/queue/QueueWorklist.js +1007 -979
  38. package/dist/shared/lib/compare-value.js +73 -0
  39. package/dist/shared/lib/format-value.js +19 -18
  40. package/dist/shared/lib/obligation-reason-text.js +1 -1
  41. package/dist/shared/lib/quick-filter-cascade.js +29 -19
  42. package/dist/shared/lib/utils.js +59 -57
  43. package/package.json +1 -1
@@ -1,138 +1,161 @@
1
1
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
- import { useQuery as C } from "@tanstack/react-query";
3
- import { UserCheck as U, Mail as q, Phone as D, Building2 as F, User as O, Clock as z, MessageCircle as K, ExternalLink as W, RefreshCw as H, LogOut as J } from "lucide-react";
4
- import R, { useState as P, useRef as N, useEffect as $ } from "react";
5
- import { createPortal as Z } from "react-dom";
6
- import { useOptionalNivaroClient as S, useNavigation as V, useItemEditAuth as G } from "../../context.js";
7
- import { get as B, post as X } from "../../lib/commands.js";
8
- import { userCardQuery as L } from "../../lib/user-cards.js";
9
- import { cn as j } from "../../lib/utils.js";
10
- import { canOpenDm as Y, openDmWith as A } from "../chat/chat-core.js";
11
- import { HuddlePresenceLine as I } from "../chat/huddle/HuddleLiveBadge.js";
12
- import { useHuddleLive as Q } 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";
16
- import { UserAvatar as _ } from "../UserAvatar.js";
17
- import { Popover as re, PopoverTrigger as le, PopoverContent as se } from "../ui/popover.js";
18
- function E(e, n, r) {
19
- const s = N(n);
20
- s.current = n;
21
- const d = N(r);
22
- d.current = r, $(() => {
2
+ import { useQuery as _ } from "@tanstack/react-query";
3
+ import { UserCheck as q, Mail as D, Phone as F, Building2 as z, User as L, Clock as K, MessageCircle as W, ExternalLink as H, RefreshCw as J, LogOut as Z } from "lucide-react";
4
+ import R, { useState as S, useRef as C, useEffect as $ } from "react";
5
+ import { createPortal as V } from "react-dom";
6
+ import { useOptionalNivaroClient as T, useNavigation as G, useItemEditAuth as X } from "../../context.js";
7
+ import { get as B, post as Y } from "../../lib/commands.js";
8
+ import { userCardQuery as M } from "../../lib/user-cards.js";
9
+ import { cn as P } from "../../lib/utils.js";
10
+ import { canOpenDm as A, openDmWith as I } from "../chat/chat-core.js";
11
+ import { HuddlePresenceLine as Q } from "../chat/huddle/HuddleLiveBadge.js";
12
+ import { useHuddleLive as ee } from "../chat/huddle/huddle-live.js";
13
+ import { MailSuppressedPill as te } from "../profile/MailSuppressedPill.js";
14
+ import { useReloadTheirTabs as ae, useSignOutEverywhere as ne } from "../profile/session-actions.js";
15
+ import { useCardPresence as re } from "../profile/usePersonPresence.js";
16
+ import { UserAvatar as j } from "../UserAvatar.js";
17
+ import { Popover as le, PopoverTrigger as ie, PopoverContent as se } from "../ui/popover.js";
18
+ function E(e, n, s) {
19
+ const i = C(n);
20
+ i.current = n;
21
+ const d = C(s);
22
+ d.current = s, $(() => {
23
23
  if (!e) return;
24
- const c = (a) => {
25
- const f = a.target;
26
- f && s.current(f) || d.current();
27
- }, m = () => d.current();
28
- return document.addEventListener("pointerdown", c, !0), window.addEventListener("blur", m), () => {
29
- document.removeEventListener("pointerdown", c, !0), window.removeEventListener("blur", m);
24
+ const o = (r) => {
25
+ const p = r.target;
26
+ p && i.current(p) || 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);
30
30
  };
31
31
  }, [e]);
32
32
  }
33
- function ie(e) {
33
+ function oe(e) {
34
34
  const n = String(e ?? "").trim();
35
- return !n || /^redacted\b/i.test(n) ? "" : n.split(/\s+/).map((r) => r[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
35
+ return !n || /^redacted\b/i.test(n) ? "" : n.split(/\s+/).map((s) => s[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
36
36
  }
37
- function oe(e, n) {
38
- const r = String(e ?? "").trim();
39
- return r || [n == null ? void 0 : n.first_name, n == null ? void 0 : n.last_name].filter(Boolean).join(" ").trim();
37
+ function de(e, n) {
38
+ const s = String(e ?? "").trim();
39
+ return s || [n == null ? void 0 : n.first_name, n == null ? void 0 : n.last_name].filter(Boolean).join(" ").trim();
40
40
  }
41
- function de({
41
+ function ce({
42
42
  user: e,
43
43
  avatarCls: n
44
44
  }) {
45
- const r = S(), { data: s } = C({
46
- ...L(r, e.id),
47
- enabled: !!r && !!e.id && !String(e.name ?? "").trim(),
45
+ const s = T(), { data: i } = _({
46
+ ...M(s, e.id),
47
+ enabled: !!s && !!e.id && !String(e.name ?? "").trim(),
48
48
  staleTime: 30 * 6e4,
49
49
  retry: !1
50
- }), d = oe(e.name, s), c = ie(d), m = /^redacted\b/i.test(d);
50
+ }), d = de(e.name, i), o = oe(d), c = /^redacted\b/i.test(d);
51
51
  return /* @__PURE__ */ t(
52
52
  "span",
53
53
  {
54
54
  className: "inline-flex",
55
- "data-tip": m ? "Former user (account redacted)" : d || void 0,
55
+ "data-tip": c ? "Former user (account redacted)" : d || void 0,
56
56
  children: /* @__PURE__ */ t(
57
- _,
57
+ j,
58
58
  {
59
59
  userId: e.id,
60
60
  className: "h-6 w-6 border-2 border-white dark:border-slate-900",
61
- fallback: /* @__PURE__ */ t("span", { "data-copy-skip": !0, "aria-hidden": "true", className: n, children: c || /* @__PURE__ */ t(O, { className: "h-3 w-3", "aria-hidden": !0 }) })
61
+ fallback: /* @__PURE__ */ t("span", { "data-copy-skip": !0, "aria-hidden": "true", className: n, children: o || /* @__PURE__ */ t(L, { className: "h-3 w-3", "aria-hidden": !0 }) })
62
62
  }
63
63
  )
64
64
  }
65
65
  );
66
66
  }
67
- function ce({
67
+ function me(e) {
68
+ if (e.length === 0) return null;
69
+ const n = e.find((s) => !s.inactive) ?? e[0];
70
+ return { name: n.name, more: e.length - 1, mark: n.inactive ?? null };
71
+ }
72
+ function pe({
68
73
  users: e,
69
- showSingleName: n = !0
74
+ showSingleName: n = !0,
75
+ nameLabel: s = !1
70
76
  }) {
71
- const r = N(null), s = N(null), d = N(null), [c, m] = P(null), [a, f] = P({ x: 0, y: 0 }), b = () => {
72
- d.current && clearTimeout(d.current), d.current = null;
73
- }, u = (i) => {
74
- var x;
77
+ const i = C(null), d = C(null), o = C(null), [c, r] = S(null), [p, u] = S({ x: 0, y: 0 }), b = () => {
78
+ o.current && clearTimeout(o.current), o.current = null;
79
+ }, y = (a) => {
80
+ var h;
75
81
  b();
76
- const o = (x = r.current) == null ? void 0 : x.getBoundingClientRect();
77
- o && f({ x: o.left, y: o.bottom + 6 }), m((h) => h === "pin" ? "pin" : i);
78
- }, y = () => {
79
- b(), d.current = setTimeout(() => m((i) => i === "pin" ? i : null), 160);
82
+ const x = (h = i.current) == null ? void 0 : h.getBoundingClientRect();
83
+ x && u({ x: x.left, y: x.bottom + 6 }), r((f) => f === "pin" ? "pin" : a);
84
+ }, m = () => {
85
+ b(), o.current = setTimeout(() => r((a) => a === "pin" ? a : null), 160);
80
86
  };
81
87
  if (R.useLayoutEffect(() => {
82
- var w;
88
+ var g;
83
89
  if (!c) return;
84
- const i = s.current;
85
- if (!i) return;
86
- const o = i.getBoundingClientRect();
87
- let { x, y: h } = a;
88
- if (o.right > window.innerWidth - 8 && (x = Math.max(8, window.innerWidth - o.width - 8)), o.bottom > window.innerHeight - 8) {
89
- const g = (w = r.current) == null ? void 0 : w.getBoundingClientRect();
90
- h = Math.max(8, ((g == null ? void 0 : g.top) ?? h) - o.height - 6);
90
+ const a = d.current;
91
+ if (!a) return;
92
+ const x = a.getBoundingClientRect();
93
+ let { x: h, y: f } = p;
94
+ if (x.right > window.innerWidth - 8 && (h = Math.max(8, window.innerWidth - x.width - 8)), x.bottom > window.innerHeight - 8) {
95
+ const k = (g = i.current) == null ? void 0 : g.getBoundingClientRect();
96
+ f = Math.max(8, ((k == null ? void 0 : k.top) ?? f) - x.height - 6);
91
97
  }
92
- (x !== a.x || h !== a.y) && f({ x, y: h });
93
- }, [c, a]), E(
98
+ (h !== p.x || f !== p.y) && u({ x: h, y: f });
99
+ }, [c, p]), E(
94
100
  !!c,
95
- (i) => {
96
- var o, x, h;
101
+ (a) => {
102
+ var x, h, f;
97
103
  return (
98
104
  // Clicks inside the user-card popover (portaled by Radix) keep the
99
105
  // roster mounted — closing would unmount the card mid-click.
100
- !!((o = i.closest) != null && o.call(i, "[data-radix-popper-content-wrapper]")) || !!((x = s.current) != null && x.contains(i)) || !!((h = r.current) != null && h.contains(i))
106
+ !!((x = a.closest) != null && x.call(a, "[data-radix-popper-content-wrapper]")) || !!((h = d.current) != null && h.contains(a)) || !!((f = i.current) != null && f.contains(a))
101
107
  );
102
108
  },
103
- () => m(null)
109
+ () => r(null)
104
110
  ), e.length === 0)
105
111
  return /* @__PURE__ */ t("span", { className: "text-[11px] text-slate-400", "data-roster-empty": !0, children: "—" });
106
- const p = e.slice(0, 4), v = e.length - p.length, k = "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]";
112
+ const w = e.slice(0, 4), v = e.length - w.length, 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]";
107
113
  return /* @__PURE__ */ l(
108
114
  "span",
109
115
  {
110
- ref: r,
111
- onMouseEnter: () => u("hover"),
112
- onMouseLeave: y,
113
- onClick: (i) => {
114
- i.stopPropagation(), u("pin");
116
+ ref: i,
117
+ onMouseEnter: () => y("hover"),
118
+ onMouseLeave: m,
119
+ onClick: (a) => {
120
+ a.stopPropagation(), y("pin");
115
121
  },
116
122
  className: "inline-flex cursor-pointer items-center",
117
123
  children: [
118
- /* @__PURE__ */ t("span", { className: "flex -space-x-2", children: p.map((i) => /* @__PURE__ */ t(de, { user: i, avatarCls: k }, i.id)) }),
124
+ /* @__PURE__ */ t("span", { className: "flex -space-x-2", children: w.map((a) => /* @__PURE__ */ t(ce, { user: a, avatarCls: N }, a.id)) }),
119
125
  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: [
120
126
  "+",
121
127
  v
122
128
  ] }),
123
- 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 }),
124
- c && Z(
129
+ s ? (() => {
130
+ const a = me(e);
131
+ return a ? /* @__PURE__ */ l(
132
+ "span",
133
+ {
134
+ "data-roster-label": "",
135
+ className: "ml-1.5 inline-flex max-w-[170px] items-baseline gap-1 text-[12px] font-medium text-slate-700 dark:text-slate-200",
136
+ children: [
137
+ /* @__PURE__ */ t("span", { className: "truncate", children: a.name }),
138
+ a.mark && /* @__PURE__ */ t(O, { mark: a.mark }),
139
+ a.more > 0 && /* @__PURE__ */ l("span", { className: "shrink-0 text-slate-500 dark:text-slate-400", children: [
140
+ "+",
141
+ a.more
142
+ ] })
143
+ ]
144
+ }
145
+ ) : null;
146
+ })() : 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 }),
147
+ c && V(
125
148
  /* @__PURE__ */ l(
126
149
  "div",
127
150
  {
128
- ref: s,
129
- style: me(r.current, a),
151
+ ref: d,
152
+ style: xe(i.current, p),
130
153
  onMouseEnter: b,
131
- onMouseLeave: y,
132
- onMouseDown: (i) => {
133
- i.stopPropagation(), m("pin");
154
+ onMouseLeave: m,
155
+ onMouseDown: (a) => {
156
+ a.stopPropagation(), r("pin");
134
157
  },
135
- onClick: (i) => i.stopPropagation(),
158
+ onClick: (a) => a.stopPropagation(),
136
159
  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",
137
160
  children: [
138
161
  /* @__PURE__ */ l("p", { className: "px-3 pb-1 text-[10px] font-bold uppercase tracking-wide text-slate-400", children: [
@@ -140,141 +163,152 @@ function ce({
140
163
  " user",
141
164
  e.length === 1 ? "" : "s"
142
165
  ] }),
143
- e.map((i) => /* @__PURE__ */ t("div", { className: "flex px-2 py-0.5", children: /* @__PURE__ */ t(xe, { userId: i.id, size: "compact" }) }, i.id))
166
+ e.map((a) => /* @__PURE__ */ l("div", { className: "flex items-center gap-1.5 px-2 py-0.5", children: [
167
+ /* @__PURE__ */ t(be, { userId: a.id, size: "compact" }),
168
+ a.inactive && /* @__PURE__ */ t(O, { mark: a.inactive })
169
+ ] }, a.id))
144
170
  ]
145
171
  }
146
172
  ),
147
- M(r.current)
173
+ U(i.current)
148
174
  )
149
175
  ]
150
176
  }
151
177
  );
152
178
  }
153
- function M(e) {
179
+ function O({ mark: e }) {
180
+ return /* @__PURE__ */ t(
181
+ "span",
182
+ {
183
+ "data-roster-inactive": e,
184
+ className: "shrink-0 rounded border border-amber-300 px-1 text-[10px] font-medium leading-tight text-amber-700 dark:border-amber-500/50 dark:text-amber-300",
185
+ children: e === "suspended" ? "suspended" : "former"
186
+ }
187
+ );
188
+ }
189
+ function U(e) {
154
190
  return (e == null ? void 0 : e.closest('[role="dialog"]')) ?? document.body;
155
191
  }
156
- function me(e, n) {
157
- const r = M(e);
158
- if (r === document.body) return { position: "fixed", left: n.x, top: n.y, zIndex: 50 };
159
- const s = r.getBoundingClientRect();
160
- return { position: "absolute", left: n.x - s.left, top: n.y - s.top, zIndex: 120 };
192
+ function xe(e, n) {
193
+ const s = U(e);
194
+ if (s === document.body) return { position: "fixed", left: n.x, top: n.y, zIndex: 50 };
195
+ const i = s.getBoundingClientRect();
196
+ return { position: "absolute", left: n.x - i.left, top: n.y - i.top, zIndex: 120 };
161
197
  }
162
- function $e({
198
+ function Be({
163
199
  collection: e,
164
200
  itemId: n
165
201
  }) {
166
- const r = S(), {
167
- data: s = [],
202
+ const s = T(), {
203
+ data: i = [],
168
204
  isLoading: d,
169
- isFetching: c
170
- } = C({
205
+ isFetching: o
206
+ } = _({
171
207
  queryKey: ["pipeline-owners-resolved", e, n],
172
- queryFn: () => r.request(
173
- X(`/pipelines/instance/${e}/owners/batch`, { ids: [n] })
174
- ).then((m) => {
175
- var a;
176
- return ((a = m.data) == null ? void 0 : a[n]) ?? [];
208
+ queryFn: () => s.request(Y(`/pipelines/instance/${e}/owners/batch`, { ids: [n] })).then((c) => {
209
+ var r;
210
+ return ((r = c.data) == null ? void 0 : r[n]) ?? [];
177
211
  }),
178
- enabled: !!r && !!e && !!n && n !== "new",
212
+ enabled: !!s && !!e && !!n && n !== "new",
179
213
  staleTime: 3e4,
180
214
  // Keep this RECORD's last answer while a move re-asks (the tile used to go
181
215
  // blank for ~2 s after Submit) — never another record's (b01-N15).
182
- placeholderData: (m, a) => (a == null ? void 0 : a.queryKey[1]) === e && String(a == null ? void 0 : a.queryKey[2]) === String(n) ? m : void 0
216
+ placeholderData: (c, r) => (r == null ? void 0 : r.queryKey[1]) === e && String(r == null ? void 0 : r.queryKey[2]) === String(n) ? c : void 0
183
217
  });
184
- return d || c && s.length === 0 ? /* @__PURE__ */ t("span", { className: "animate-pulse h-3 w-20 rounded bg-slate-200 dark:bg-[hsl(var(--nvr-skeleton))] inline-block" }) : /* @__PURE__ */ t(ce, { users: s });
218
+ return d || o && i.length === 0 ? /* @__PURE__ */ t("span", { className: "animate-pulse h-3 w-20 rounded bg-slate-200 dark:bg-[hsl(var(--nvr-skeleton))] inline-block" }) : /* @__PURE__ */ t(pe, { users: i, nameLabel: !0 });
185
219
  }
186
- function Be({
220
+ function Me({
187
221
  collection: e,
188
222
  itemId: n,
189
- label: r
223
+ label: s
190
224
  }) {
191
- const s = S(), { data: d = [] } = C({
225
+ const i = T(), { data: d = [] } = _({
192
226
  queryKey: ["pipeline-instance-owners", e, n],
193
- queryFn: () => s.request(B(`/pipelines/instance/${e}/${n}/owners`)).then((a) => a.data ?? []),
194
- enabled: !!s && !!e && !!n && n !== "new",
227
+ queryFn: () => i.request(B(`/pipelines/instance/${e}/${n}/owners`)).then((r) => r.data ?? []),
228
+ enabled: !!i && !!e && !!n && n !== "new",
195
229
  staleTime: 3e4
196
- }), c = (a) => [a.first_name, a.last_name].filter(Boolean).join(" ") || a.email, m = (a) => c(a).split(" ").map((f) => f[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
230
+ }), o = (r) => [r.first_name, r.last_name].filter(Boolean).join(" ") || r.email, c = (r) => o(r).split(" ").map((p) => p[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
197
231
  return /* @__PURE__ */ l("div", { children: [
198
- /* @__PURE__ */ t("p", { className: "text-[11px] font-medium text-slate-400 mb-1.5", children: r }),
199
- 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((a) => /* @__PURE__ */ l(
232
+ /* @__PURE__ */ t("p", { className: "text-[11px] font-medium text-slate-400 mb-1.5", children: s }),
233
+ 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((r) => /* @__PURE__ */ l(
200
234
  "div",
201
235
  {
202
236
  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",
203
237
  children: [
204
238
  /* @__PURE__ */ t(
205
- _,
239
+ j,
206
240
  {
207
- userId: a.id,
241
+ userId: r.id,
208
242
  className: "h-6 w-6",
209
- 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: m(a) })
243
+ 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(r) })
210
244
  }
211
245
  ),
212
- /* @__PURE__ */ t("span", { className: "text-[12px] text-slate-700", children: c(a) })
246
+ /* @__PURE__ */ t("span", { className: "text-[12px] text-slate-700", children: o(r) })
213
247
  ]
214
248
  },
215
- a.id
249
+ r.id
216
250
  )) })
217
251
  ] });
218
252
  }
219
- function pe({
253
+ function fe({
220
254
  user: e,
221
255
  userId: n,
222
- initials: r,
223
- navigate: s,
256
+ initials: s,
257
+ navigate: i,
224
258
  profileUrl: d,
225
- online: c,
226
- cardId: m,
227
- onAction: a,
228
- open: f = !1
259
+ online: o,
260
+ cardId: c,
261
+ onAction: r,
262
+ open: p = !1
229
263
  }) {
230
264
  var h;
231
- const { isAdmin: b, userId: u } = G(), y = !!u && u.toUpperCase() === n.toUpperCase(), p = ne(n, f), v = Q().roomOf(n), k = ((h = e == null ? void 0 : e.manager_name) == null ? void 0 : h.trim()) || null, i = (() => {
232
- const w = e == null ? void 0 : e.timezone;
233
- if (!w) return null;
265
+ const { isAdmin: u, userId: b } = X(), y = !!b && b.toUpperCase() === n.toUpperCase(), m = re(n, p), w = ee().roomOf(n), v = ((h = e == null ? void 0 : e.manager_name) == null ? void 0 : h.trim()) || null, N = (() => {
266
+ const f = e == null ? void 0 : e.timezone;
267
+ if (!f) return null;
234
268
  try {
235
269
  const g = Intl.DateTimeFormat().resolvedOptions().timeZone;
236
- return w === g ? null : new Intl.DateTimeFormat(void 0, {
270
+ return f === g ? null : new Intl.DateTimeFormat(void 0, {
237
271
  hour: "numeric",
238
272
  minute: "2-digit",
239
- timeZone: w
273
+ timeZone: f
240
274
  }).format(/* @__PURE__ */ new Date());
241
275
  } catch {
242
276
  return null;
243
277
  }
244
- })(), x = !!c || !!p.word ? p.word ? null : "Just now" : e != null && e.last_access ? (() => {
245
- const w = Date.now() - new Date(e.last_access).getTime(), g = Math.floor(w / 6e4);
278
+ })(), x = !!o || !!m.word ? m.word ? null : "Just now" : e != null && e.last_access ? (() => {
279
+ const f = Date.now() - new Date(e.last_access).getTime(), g = Math.floor(f / 6e4);
246
280
  if (g < 2) return "Just now";
247
281
  if (g < 60) return `${g}m ago`;
248
- const T = Math.floor(g / 60);
249
- return T < 24 ? `${T}h ago` : `${Math.floor(T / 24)}d ago`;
282
+ const k = Math.floor(g / 60);
283
+ return k < 24 ? `${k}h ago` : `${Math.floor(k / 24)}d ago`;
250
284
  })() : null;
251
285
  return /* @__PURE__ */ l(
252
286
  se,
253
287
  {
254
288
  align: "start",
255
289
  className: "w-72 p-0 overflow-hidden",
256
- "data-nvr-user-card": m ?? "",
290
+ "data-nvr-user-card": c ?? "",
257
291
  children: [
258
292
  /* @__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: [
259
293
  /* @__PURE__ */ t(
260
- _,
294
+ j,
261
295
  {
262
296
  userId: n,
263
297
  className: "h-12 w-12 ring-2 ring-white shadow-sm dark:ring-card",
264
- 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: r })
298
+ 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 })
265
299
  }
266
300
  ),
267
301
  /* @__PURE__ */ l("div", { className: "min-w-0 flex-1", children: [
268
302
  /* @__PURE__ */ l("div", { className: "flex items-center gap-1.5", children: [
269
- (c || p.word) && /* @__PURE__ */ t(
303
+ (o || m.word) && /* @__PURE__ */ t(
270
304
  "span",
271
305
  {
272
- "data-card-presence": p.word ?? "online",
273
- className: j(
306
+ "data-card-presence": m.word ?? "online",
307
+ className: P(
274
308
  "h-2 w-2 shrink-0 rounded-full ring-2 ring-white dark:ring-card",
275
- p.word === "away" ? "bg-white ring-amber-400 dark:bg-card" : p.word === "idle" ? "bg-amber-400" : "bg-emerald-400"
309
+ m.word === "away" ? "bg-white ring-amber-400 dark:bg-card" : m.word === "idle" ? "bg-amber-400" : "bg-emerald-400"
276
310
  ),
277
- title: p.word === "away" ? "Away" : p.word === "idle" ? "Idle" : "Online"
311
+ title: m.word === "away" ? "Away" : m.word === "idle" ? "Idle" : "Online"
278
312
  }
279
313
  ),
280
314
  /* @__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 }),
@@ -287,32 +321,32 @@ function pe({
287
321
  )
288
322
  ] }),
289
323
  ((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(" · ") }),
290
- p.word && /* @__PURE__ */ l(
324
+ m.word && /* @__PURE__ */ l(
291
325
  "p",
292
326
  {
293
327
  className: "mt-0.5 truncate text-[11px] text-slate-500 dark:text-slate-400",
294
328
  "data-card-presence-line": !0,
295
329
  children: [
296
- p.word === "away" ? "Away" : p.word === "idle" ? `Idle${p.minutes ? ` · ${p.minutes}m` : ""}` : "Online now",
297
- p.page ? ` · on ${p.page}` : ""
330
+ m.word === "away" ? "Away" : m.word === "idle" ? `Idle${m.minutes ? ` · ${m.minutes}m` : ""}` : "Online now",
331
+ m.page ? ` · on ${m.page}` : ""
298
332
  ]
299
333
  }
300
334
  ),
301
- /* @__PURE__ */ t(I, { label: (v == null ? void 0 : v.label) ?? null, className: "mt-0.5" }),
302
- i && /* @__PURE__ */ l("p", { className: "mt-0.5 text-[11px] text-slate-500 dark:text-slate-400", children: [
335
+ /* @__PURE__ */ t(Q, { label: (w == null ? void 0 : w.label) ?? null, className: "mt-0.5" }),
336
+ N && /* @__PURE__ */ l("p", { className: "mt-0.5 text-[11px] text-slate-500 dark:text-slate-400", children: [
303
337
  "Local time: ",
304
- i
338
+ N
305
339
  ] }),
306
340
  (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: [
307
- /* @__PURE__ */ t(U, { className: "h-2.5 w-2.5" }),
341
+ /* @__PURE__ */ t(q, { className: "h-2.5 w-2.5" }),
308
342
  " Out of office"
309
343
  ] }),
310
344
  /* @__PURE__ */ t(
311
- ee,
345
+ te,
312
346
  {
313
347
  email: e == null ? void 0 : e.email,
314
- enabled: f,
315
- canClear: b,
348
+ enabled: p,
349
+ canClear: u,
316
350
  className: "mt-1"
317
351
  }
318
352
  )
@@ -325,7 +359,7 @@ function pe({
325
359
  href: `mailto:${e.email}`,
326
360
  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",
327
361
  children: [
328
- /* @__PURE__ */ t(q, { className: "h-3.5 w-3.5 shrink-0 text-slate-400 group-hover:text-nvr-cyan transition-colors" }),
362
+ /* @__PURE__ */ t(D, { className: "h-3.5 w-3.5 shrink-0 text-slate-400 group-hover:text-nvr-cyan transition-colors" }),
329
363
  /* @__PURE__ */ t("span", { className: "truncate", children: e.email })
330
364
  ]
331
365
  }
@@ -336,27 +370,27 @@ function pe({
336
370
  href: `tel:${e.phone}`,
337
371
  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",
338
372
  children: [
339
- /* @__PURE__ */ t(D, { className: "h-3.5 w-3.5 shrink-0 text-slate-400 group-hover:text-nvr-cyan transition-colors" }),
373
+ /* @__PURE__ */ t(F, { className: "h-3.5 w-3.5 shrink-0 text-slate-400 group-hover:text-nvr-cyan transition-colors" }),
340
374
  /* @__PURE__ */ t("span", { children: e.phone })
341
375
  ]
342
376
  }
343
377
  )
344
378
  ] }),
345
- ((e == null ? void 0 : e.role_name) || k || x) && /* @__PURE__ */ l("div", { className: "px-4 py-3 space-y-1.5 border-b border-slate-100 dark:border-border", children: [
379
+ ((e == null ? void 0 : e.role_name) || v || x) && /* @__PURE__ */ l("div", { className: "px-4 py-3 space-y-1.5 border-b border-slate-100 dark:border-border", children: [
346
380
  (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: [
347
- /* @__PURE__ */ t(F, { className: "h-3.5 w-3.5 shrink-0" }),
381
+ /* @__PURE__ */ t(z, { className: "h-3.5 w-3.5 shrink-0" }),
348
382
  /* @__PURE__ */ t("span", { children: e.role_name })
349
383
  ] }),
350
- k && /* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[11px] text-slate-500 dark:text-slate-400", children: [
351
- /* @__PURE__ */ t(O, { className: "h-3.5 w-3.5 shrink-0" }),
384
+ v && /* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[11px] text-slate-500 dark:text-slate-400", children: [
385
+ /* @__PURE__ */ t(L, { className: "h-3.5 w-3.5 shrink-0" }),
352
386
  /* @__PURE__ */ l("span", { children: [
353
387
  "Reports to",
354
388
  " ",
355
- /* @__PURE__ */ t("span", { className: "font-medium text-slate-600 dark:text-slate-300", children: k })
389
+ /* @__PURE__ */ t("span", { className: "font-medium text-slate-600 dark:text-slate-300", children: v })
356
390
  ] })
357
391
  ] }),
358
392
  x && /* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[11px] text-slate-400", children: [
359
- /* @__PURE__ */ t(z, { className: "h-3.5 w-3.5 shrink-0" }),
393
+ /* @__PURE__ */ t(K, { className: "h-3.5 w-3.5 shrink-0" }),
360
394
  /* @__PURE__ */ l("span", { children: [
361
395
  "Last seen ",
362
396
  x
@@ -369,28 +403,28 @@ function pe({
369
403
  {
370
404
  type: "button",
371
405
  onClick: () => {
372
- a == null || a(), s(d);
406
+ r == null || r(), i(d);
373
407
  },
374
408
  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",
375
409
  children: [
376
- /* @__PURE__ */ t(O, { className: "h-3.5 w-3.5" }),
410
+ /* @__PURE__ */ t(L, { className: "h-3.5 w-3.5" }),
377
411
  " View profile"
378
412
  ]
379
413
  }
380
414
  ),
381
- Y() && /* @__PURE__ */ l(
415
+ A() && /* @__PURE__ */ l(
382
416
  "button",
383
417
  {
384
418
  type: "button",
385
419
  onClick: () => {
386
- a == null || a(), A(
420
+ r == null || r(), I(
387
421
  n,
388
422
  e ? [e.first_name, e.last_name].filter(Boolean).join(" ") || e.email : void 0
389
423
  );
390
424
  },
391
425
  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",
392
426
  children: [
393
- /* @__PURE__ */ t(K, { className: "h-3.5 w-3.5" }),
427
+ /* @__PURE__ */ t(W, { className: "h-3.5 w-3.5" }),
394
428
  " Message"
395
429
  ]
396
430
  }
@@ -400,40 +434,40 @@ function pe({
400
434
  {
401
435
  type: "button",
402
436
  onClick: () => {
403
- a == null || a(), window.location.href = `mailto:${e.email}`;
437
+ r == null || r(), window.location.href = `mailto:${e.email}`;
404
438
  },
405
439
  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",
406
440
  children: [
407
- /* @__PURE__ */ t(W, { className: "h-3.5 w-3.5" }),
441
+ /* @__PURE__ */ t(H, { className: "h-3.5 w-3.5" }),
408
442
  " Email"
409
443
  ]
410
444
  }
411
445
  )
412
446
  ] }),
413
- b && !y && /* @__PURE__ */ t(
414
- fe,
447
+ u && !y && /* @__PURE__ */ t(
448
+ he,
415
449
  {
416
450
  userId: n,
417
451
  name: e ? [e.first_name, e.last_name].filter(Boolean).join(" ") || e.email : n,
418
- onDone: a
452
+ onDone: r
419
453
  }
420
454
  )
421
455
  ]
422
456
  }
423
457
  );
424
458
  }
425
- function fe({
459
+ function he({
426
460
  userId: e,
427
461
  name: n,
428
- onDone: r
462
+ onDone: s
429
463
  }) {
430
- const [s, d] = P(!1);
464
+ const [i, d] = S(!1);
431
465
  $(() => {
432
- if (!s) return;
433
- const f = setTimeout(() => d(!1), 4e3);
434
- return () => clearTimeout(f);
435
- }, [s]);
436
- const c = te(e, { onDone: r }), m = ae(e, n, { onDone: r }), a = "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";
466
+ if (!i) return;
467
+ const p = setTimeout(() => d(!1), 4e3);
468
+ return () => clearTimeout(p);
469
+ }, [i]);
470
+ const o = ae(e, { onDone: s }), c = ne(e, n, { onDone: s }), r = "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";
437
471
  return /* @__PURE__ */ l(
438
472
  "div",
439
473
  {
@@ -444,17 +478,17 @@ function fe({
444
478
  "button",
445
479
  {
446
480
  type: "button",
447
- disabled: c.isPending,
448
- onClick: () => c.mutate({}),
481
+ disabled: o.isPending,
482
+ onClick: () => o.mutate({}),
449
483
  "data-tip": "Every tab they have open shows a 15-second countdown, then reloads",
450
- className: j(
451
- a,
484
+ className: P(
485
+ r,
452
486
  "text-amber-800 hover:bg-amber-50 dark:text-amber-300 dark:hover:bg-amber-500/10"
453
487
  ),
454
488
  "data-user-card-reload": !0,
455
489
  children: [
456
- /* @__PURE__ */ t(H, { className: j("h-3.5 w-3.5", c.isPending && "animate-spin") }),
457
- c.isPending ? "Sending…" : "Reload tabs"
490
+ /* @__PURE__ */ t(J, { className: P("h-3.5 w-3.5", o.isPending && "animate-spin") }),
491
+ o.isPending ? "Sending…" : "Reload tabs"
458
492
  ]
459
493
  }
460
494
  ),
@@ -462,17 +496,17 @@ function fe({
462
496
  "button",
463
497
  {
464
498
  type: "button",
465
- disabled: m.isPending,
466
- onClick: () => s ? m.mutate() : d(!0),
467
- "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",
468
- className: j(
469
- a,
470
- 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"
499
+ disabled: c.isPending,
500
+ onClick: () => i ? c.mutate() : d(!0),
501
+ "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",
502
+ className: P(
503
+ r,
504
+ 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"
471
505
  ),
472
- "data-user-card-sign-out": s ? "armed" : "",
506
+ "data-user-card-sign-out": i ? "armed" : "",
473
507
  children: [
474
- /* @__PURE__ */ t(J, { className: "h-3.5 w-3.5" }),
475
- m.isPending ? "Signing out…" : s ? "Confirm sign out" : "Sign out"
508
+ /* @__PURE__ */ t(Z, { className: "h-3.5 w-3.5" }),
509
+ c.isPending ? "Signing out…" : i ? "Confirm sign out" : "Sign out"
476
510
  ]
477
511
  }
478
512
  )
@@ -480,39 +514,39 @@ function fe({
480
514
  }
481
515
  );
482
516
  }
483
- function xe({
517
+ function be({
484
518
  userId: e,
485
519
  size: n = "default",
486
- children: r
520
+ children: s
487
521
  }) {
488
- const s = S(), { navigate: d, userUrl: c } = V(), m = c ? c(e) : `/users/${e}`, [a, f] = P(!1), b = R.useId();
522
+ const i = T(), { navigate: d, userUrl: o } = G(), c = o ? o(e) : `/users/${e}`, [r, p] = S(!1), u = R.useId();
489
523
  E(
490
- a,
491
- (o) => {
492
- var x, h, w, g;
493
- return !!((x = o.closest) != null && x.call(o, `[data-nvr-user-card="${CSS.escape(b)}"]`)) || !!((h = o.closest) != null && h.call(o, `[data-nvr-user-chip="${CSS.escape(b)}"]`)) || // Anything else floating above the card (a tooltip, a nested menu).
494
- !!((w = o.closest) != null && w.call(o, "[data-radix-popper-content-wrapper]")) && !((g = o.closest) != null && g.call(o, "[data-nvr-user-card]"));
524
+ r,
525
+ (a) => {
526
+ var x, h, f, g;
527
+ return !!((x = a.closest) != null && x.call(a, `[data-nvr-user-card="${CSS.escape(u)}"]`)) || !!((h = a.closest) != null && h.call(a, `[data-nvr-user-chip="${CSS.escape(u)}"]`)) || // Anything else floating above the card (a tooltip, a nested menu).
528
+ !!((f = a.closest) != null && f.call(a, "[data-radix-popper-content-wrapper]")) && !((g = a.closest) != null && g.call(a, "[data-nvr-user-card]"));
495
529
  },
496
- () => f(!1)
530
+ () => p(!1)
497
531
  );
498
- const { data: u, isLoading: y } = C({
499
- ...L(s, e),
500
- enabled: !!s && !!e,
532
+ const { data: b, isLoading: y } = _({
533
+ ...M(i, e),
534
+ enabled: !!i && !!e,
501
535
  staleTime: 12e4
502
- }), { data: p } = C({
536
+ }), { data: m } = _({
503
537
  queryKey: ["user-presence", e],
504
- queryFn: () => s.request(B(`/presence/users/${e}`)).then((o) => o),
505
- enabled: !!s && !!e && a,
538
+ queryFn: () => i.request(B(`/presence/users/${e}`)).then((a) => a),
539
+ enabled: !!i && !!e && r,
506
540
  staleTime: 15e3,
507
- refetchInterval: a ? 2e4 : !1
508
- }), v = u ? [u.first_name, u.last_name].filter(Boolean).join(" ") || u.email : e, k = v.split(" ").map((o) => o[0]).filter(Boolean).slice(0, 2).join("").toUpperCase(), i = (p == null ? void 0 : p.online) ?? !1;
509
- return y && !r ? 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: [
541
+ refetchInterval: r ? 2e4 : !1
542
+ }), w = b ? [b.first_name, b.last_name].filter(Boolean).join(" ") || b.email : e, v = w.split(" ").map((a) => a[0]).filter(Boolean).slice(0, 2).join("").toUpperCase(), N = (m == null ? void 0 : m.online) ?? !1;
543
+ return y && !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: [
510
544
  /* @__PURE__ */ t("span", { className: "flex h-6 w-6 shrink-0 rounded-full animate-pulse bg-slate-200 dark:bg-[hsl(var(--nvr-skeleton))]" }),
511
545
  /* @__PURE__ */ t("span", { className: "animate-pulse h-2.5 w-16 rounded bg-slate-200 dark:bg-[hsl(var(--nvr-skeleton))] inline-block" })
512
- ] }) : /* @__PURE__ */ l(re, { open: a, onOpenChange: f, children: [
513
- /* @__PURE__ */ t(le, { asChild: !0, "data-nvr-user-chip": b, children: r || (n === "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: [
546
+ ] }) : /* @__PURE__ */ l(le, { open: r, onOpenChange: p, children: [
547
+ /* @__PURE__ */ t(ie, { asChild: !0, "data-nvr-user-chip": u, children: s || (n === "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: [
514
548
  /* @__PURE__ */ t(
515
- _,
549
+ j,
516
550
  {
517
551
  userId: e,
518
552
  className: "h-4 w-4",
@@ -522,15 +556,15 @@ function xe({
522
556
  "data-copy-skip": !0,
523
557
  "aria-hidden": "true",
524
558
  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",
525
- children: k
559
+ children: v
526
560
  }
527
561
  )
528
562
  }
529
563
  ),
530
- /* @__PURE__ */ t("span", { className: "text-[11px] font-medium text-slate-600 dark:text-slate-300", children: v })
564
+ /* @__PURE__ */ t("span", { className: "text-[11px] font-medium text-slate-600 dark:text-slate-300", children: w })
531
565
  ] }) : /* @__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: [
532
566
  /* @__PURE__ */ t(
533
- _,
567
+ j,
534
568
  {
535
569
  userId: e,
536
570
  className: "h-6 w-6",
@@ -540,35 +574,36 @@ function xe({
540
574
  "data-copy-skip": !0,
541
575
  "aria-hidden": "true",
542
576
  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",
543
- children: k
577
+ children: v
544
578
  }
545
579
  )
546
580
  }
547
581
  ),
548
- /* @__PURE__ */ t("span", { className: "text-[12px] text-slate-700 dark:text-slate-300", children: v })
582
+ /* @__PURE__ */ t("span", { className: "text-[12px] text-slate-700 dark:text-slate-300", children: w })
549
583
  ] })) }),
550
584
  /* @__PURE__ */ t(
551
- pe,
585
+ fe,
552
586
  {
553
- user: u,
587
+ user: b,
554
588
  userId: e,
555
- initials: k,
589
+ initials: v,
556
590
  navigate: d,
557
- profileUrl: m,
558
- online: i,
559
- cardId: b,
560
- onAction: () => f(!1),
561
- open: a
591
+ profileUrl: c,
592
+ online: N,
593
+ cardId: u,
594
+ onAction: () => p(!1),
595
+ open: r
562
596
  }
563
597
  )
564
598
  ] });
565
599
  }
566
600
  export {
567
- Be as OwnersInline,
568
- $e as OwnersInlineCompact,
569
- fe as UserCardAdminRow,
570
- xe as UserChip,
571
- ce as UserRosterCluster,
572
- ie as rosterInitials,
573
- oe as rosterName
601
+ Me as OwnersInline,
602
+ Be as OwnersInlineCompact,
603
+ he as UserCardAdminRow,
604
+ be as UserChip,
605
+ pe as UserRosterCluster,
606
+ oe as rosterInitials,
607
+ me as rosterLabel,
608
+ de as rosterName
574
609
  };