@nivaro/react 0.3.123 → 0.3.125

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.
@@ -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 P } from "../../lib/utils.js";
10
- import { canOpenDm as te, openDmWith as ae } from "../chat/chat-core.js";
11
- import { HuddlePresenceLine as ne } from "../chat/huddle/HuddleLiveBadge.js";
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 de, useReloadTheirTabs as ce, useSignOutEverywhere as me } from "../profile/session-actions.js";
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 M } from "../UserAvatar.js";
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, a, s) {
21
- const i = S(a);
22
- i.current = a;
23
- const d = S(s);
24
- d.current = s, E(() => {
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 p = r.target;
28
- p && i.current(p) || d.current();
29
- }, m = () => d.current();
30
- return document.addEventListener("pointerdown", c, !0), window.addEventListener("blur", m), () => {
31
- document.removeEventListener("pointerdown", c, !0), window.removeEventListener("blur", m);
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 ge(e) {
36
- const a = String(e ?? "").trim();
37
- return !a || /^redacted\b/i.test(a) ? "" : a.split(/\s+/).map((s) => s[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
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 be(e, a) {
39
+ function ge(e, n) {
40
40
  const s = String(e ?? "").trim();
41
- return s || [a == null ? void 0 : a.first_name, a == null ? void 0 : a.last_name].filter(Boolean).join(" ").trim();
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: a
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
- }), d = be(e.name, i), c = ge(d), m = /^redacted\b/i.test(d);
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": m ? "Former user (account redacted)" : d || void 0,
57
+ "data-tip": d ? "Former user (account redacted)" : o || void 0,
58
58
  children: /* @__PURE__ */ t(
59
- M,
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: a, children: c || /* @__PURE__ */ t($, { className: "h-3 w-3", "aria-hidden": !0 }) })
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 we(e) {
69
+ function ve(e) {
70
70
  if (e.length === 0) return null;
71
- const a = e.find((s) => !s.inactive) ?? e[0];
72
- return { name: a.name, more: e.length - 1, mark: a.inactive ?? null };
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 ve({
74
+ function we({
75
75
  users: e,
76
- showSingleName: a = !0,
76
+ showSingleName: n = !0,
77
77
  nameLabel: s = !1,
78
78
  standIn: i = null
79
79
  }) {
80
- const d = S(null), c = S(null), m = S(null), [r, p] = j(null), [h, g] = j({ x: 0, y: 0 }), b = () => {
81
- m.current && clearTimeout(m.current), m.current = null;
82
- }, o = (n) => {
83
- var u;
84
- b();
85
- const f = (u = d.current) == null ? void 0 : u.getBoundingClientRect();
86
- f && g({ x: f.left, y: f.bottom + 6 }), p((y) => y === "pin" ? "pin" : n);
87
- }, w = () => {
88
- b(), m.current = setTimeout(() => p((n) => n === "pin" ? n : null), 160);
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 n = c.current;
94
- if (!n) return;
95
- const f = n.getBoundingClientRect();
96
- let { x: u, y } = h;
97
- if (f.right > window.innerWidth - 8 && (u = Math.max(8, window.innerWidth - f.width - 8)), f.bottom > window.innerHeight - 8) {
98
- const O = (U = d.current) == null ? void 0 : U.getBoundingClientRect();
99
- y = Math.max(8, ((O == null ? void 0 : O.top) ?? y) - f.height - 6);
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
- (u !== h.x || y !== h.y) && g({ x: u, y });
102
- }, [r, h]), F(
101
+ (g !== b.x || w !== b.y) && u({ x: g, y: w });
102
+ }, [r, b]), F(
103
103
  !!r,
104
- (n) => {
105
- var f, u, y;
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 = n.closest) != null && f.call(n, "[data-radix-popper-content-wrapper]")) || !!((u = c.current) != null && u.contains(n)) || !!((y = d.current) != null && y.contains(n))
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
- () => p(null)
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 v = e.slice(0, 4), N = e.length - v.length, x = le(i), k = (n) => x.has(String(n).toUpperCase()), C = "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]";
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: d,
120
- onMouseEnter: () => o("hover"),
121
- onMouseLeave: w,
122
- onClick: (n) => {
123
- n.stopPropagation(), o("pin");
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: v.map((n) => /* @__PURE__ */ t(ue, { user: n, avatarCls: C }, n.id)) }),
128
- N > 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: [
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
- N
130
+ y
131
131
  ] }),
132
132
  s ? (() => {
133
- const n = we(e);
134
- if (!n) return null;
135
- const f = e.find((u) => !u.inactive) ?? e[0];
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: n.name }),
143
- n.mark && /* @__PURE__ */ t(R, { mark: n.mark }),
144
- !n.mark && k(f.id) && /* @__PURE__ */ t(B, { className: "self-center" }),
145
- n.more > 0 && /* @__PURE__ */ l("span", { className: "shrink-0 font-normal text-slate-500 dark:text-slate-400", children: [
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
- n.more
147
+ a.more
148
148
  ] })
149
149
  ]
150
150
  }
151
151
  );
152
- })() : a && 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 }),
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(d.current, h),
159
- onMouseEnter: b,
160
- onMouseLeave: w,
161
- onMouseDown: (n) => {
162
- n.stopPropagation(), p("pin");
158
+ style: ke(o.current, b),
159
+ onMouseEnter: v,
160
+ onMouseLeave: p,
161
+ onMouseDown: (a) => {
162
+ a.stopPropagation(), m("pin");
163
163
  },
164
- onClick: (n) => n.stopPropagation(),
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((n) => /* @__PURE__ */ l("div", { className: "flex items-center gap-1.5 px-2 py-0.5", children: [
173
- /* @__PURE__ */ t(Ce, { userId: n.id, size: "compact" }),
174
- n.inactive && /* @__PURE__ */ t(R, { mark: n.inactive }),
175
- !n.inactive && k(n.id) && /* @__PURE__ */ t(B, {})
176
- ] }, n.id)),
177
- i && e.some((n) => k(n.id)) && /* @__PURE__ */ t(
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: () => p(null),
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(d.current)
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, a) {
207
+ function ke(e, n) {
208
208
  const s = K(e);
209
- if (s === document.body) return { position: "fixed", left: a.x, top: a.y, zIndex: 50 };
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: a.x - i.left, top: a.y - i.top, zIndex: 120 };
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: a
215
+ itemId: n
216
216
  }) {
217
- var g;
217
+ var u;
218
218
  const s = T(), {
219
219
  data: i = [],
220
- isLoading: d,
220
+ isLoading: o,
221
221
  isFetching: c
222
222
  } = _({
223
- queryKey: ["pipeline-owners-resolved", e, a],
224
- queryFn: () => s.request(ee(`/pipelines/instance/${e}/owners/batch`, { ids: [a] })).then((b) => {
225
- var o;
226
- return ((o = b.data) == null ? void 0 : o[a]) ?? [];
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 && !!a && a !== "new",
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: (b, o) => (o == null ? void 0 : o.queryKey[1]) === e && String(o == null ? void 0 : o.queryKey[2]) === String(a) ? b : void 0
233
- }), { data: m } = _({
234
- queryKey: ["pipeline-instance", e, a],
235
- queryFn: () => s.request(L(`/pipelines/instance/${e}/${a}`)).then((b) => b.data ?? null),
236
- enabled: !!s && !!e && !!a && a !== "new",
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 (d || c && i.length === 0)
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 = (m == null ? void 0 : m.stand_in_reason) ?? null, p = (g = m == null ? void 0 : m.instance) == null ? void 0 : g.current_state, h = r && (!p || String(p).toUpperCase() === r.state.id.toUpperCase()) ? r : null;
242
- return /* @__PURE__ */ t(ve, { users: i, nameLabel: !0, standIn: h });
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: a,
246
+ itemId: n,
247
247
  label: s
248
248
  }) {
249
- const i = T(), { data: d = [] } = _({
250
- queryKey: ["pipeline-instance-owners", e, a],
251
- queryFn: () => i.request(L(`/pipelines/instance/${e}/${a}/owners`)).then((r) => r.data ?? []),
252
- enabled: !!i && !!e && !!a && a !== "new",
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, m = (r) => c(r).split(" ").map((p) => p[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
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
- 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(
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
- M,
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: m(r) })
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: a,
279
+ userId: n,
280
280
  initials: s,
281
281
  navigate: i,
282
- profileUrl: d,
282
+ profileUrl: o,
283
283
  online: c,
284
- cardId: m,
284
+ cardId: d,
285
285
  onAction: r,
286
- open: p = !1
286
+ open: m = !1
287
287
  }) {
288
- var C;
289
- const { isAdmin: h, userId: g } = Q(), b = !!g && g.toUpperCase() === a.toUpperCase(), o = pe(a, p), w = re().roomOf(a), v = ((C = e == null ? void 0 : e.manager_name) == null ? void 0 : C.trim()) || null, N = (() => {
290
- const n = e == null ? void 0 : e.timezone;
291
- if (!n) return null;
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 f = Intl.DateTimeFormat().resolvedOptions().timeZone;
294
- return n === f ? null : new Intl.DateTimeFormat(void 0, {
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: n
297
+ timeZone: f
298
298
  }).format(/* @__PURE__ */ new Date());
299
299
  } catch {
300
300
  return null;
301
301
  }
302
- })(), k = !!c || !!o.word ? o.word ? null : "Just now" : e != null && e.last_access ? (() => {
303
- const n = Date.now() - new Date(e.last_access).getTime(), f = Math.floor(n / 6e4);
304
- if (f < 2) return "Just now";
305
- if (f < 60) return `${f}m ago`;
306
- const u = Math.floor(f / 60);
307
- return u < 24 ? `${u}h ago` : `${Math.floor(u / 24)}d ago`;
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": m ?? "",
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
- M,
318
+ P,
319
319
  {
320
- userId: a,
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 || o.word) && /* @__PURE__ */ t(
327
+ (c || p.word) && /* @__PURE__ */ t(
328
328
  "span",
329
329
  {
330
- "data-card-presence": o.word ?? "online",
331
- className: P(
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
- o.word === "away" ? "bg-white ring-amber-400 dark:bg-card" : o.word === "idle" ? "bg-amber-400" : "bg-emerald-400"
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: o.word === "away" ? "Away" : o.word === "idle" ? "Idle" : "Online"
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 : a }),
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
- o.word && /* @__PURE__ */ l(
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
- o.word === "away" ? "Away" : o.word === "idle" ? `Idle${o.minutes ? ` · ${o.minutes}m` : ""}` : "Online now",
355
- o.page ? ` · on ${o.page}` : ""
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(ne, { label: (w == null ? void 0 : w.label) ?? null, className: "mt-0.5" }),
360
- N && /* @__PURE__ */ l("p", { className: "mt-0.5 text-[11px] text-slate-500 dark:text-slate-400", children: [
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
- N
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: p,
373
- canClear: h,
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) || v || k) && /* @__PURE__ */ l("div", { className: "px-4 py-3 space-y-1.5 border-b border-slate-100 dark:border-border", children: [
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
- v && /* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[11px] text-slate-500 dark:text-slate-400", children: [
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: v })
413
+ /* @__PURE__ */ t("span", { className: "font-medium text-slate-600 dark:text-slate-300", children: y })
414
414
  ] })
415
415
  ] }),
416
- k && /* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[11px] text-slate-400", children: [
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
- k
420
+ N
421
421
  ] })
422
422
  ] })
423
423
  ] }),
424
424
  /* @__PURE__ */ l("div", { className: "flex items-center gap-1 p-2", children: [
425
- d && /* @__PURE__ */ l(
425
+ o && /* @__PURE__ */ l(
426
426
  "button",
427
427
  {
428
428
  type: "button",
429
429
  onClick: () => {
430
- r == null || r(), i(d);
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(), ae(
445
- a,
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
- h && !b && /* @__PURE__ */ t(
471
+ b && !v && /* @__PURE__ */ t(
472
472
  Ne,
473
473
  {
474
- userId: a,
475
- name: e ? [e.first_name, e.last_name].filter(Boolean).join(" ") || e.email : a,
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: a,
485
+ name: n,
486
486
  onDone: s
487
487
  }) {
488
- const [i, d] = j(!1), [c, m] = j("");
488
+ const [i, o] = j(!1), [c, d] = j("");
489
489
  E(() => {
490
490
  if (!i || c.trim()) return;
491
- const b = setTimeout(() => d(!1), de);
492
- return () => clearTimeout(b);
491
+ const v = setTimeout(() => o(!1), ce);
492
+ return () => clearTimeout(v);
493
493
  }, [i, c]);
494
- const r = ce(e, { onDone: s }), p = me(e, a, { onDone: s }), h = () => p.mutate({ message: c }), g = "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";
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: P(
505
- g,
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: P("h-3.5 w-3.5", r.isPending && "animate-spin") }),
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: p.isPending,
520
- onClick: () => i ? h() : d(!0),
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: P(
523
- g,
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
- p.isPending ? "Signing out…" : i ? "Confirm sign out" : "Sign out"
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: m,
539
- onSubmit: h,
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: a = "default",
547
+ size: n = "default",
548
548
  children: s
549
549
  }) {
550
- const i = T(), { navigate: d, userUrl: c } = A(), m = c ? c(e) : `/users/${e}`, [r, p] = j(!1), h = q.useId();
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 k, C, n, f;
555
- return !!((k = x.closest) != null && k.call(x, `[data-nvr-user-card="${CSS.escape(h)}"]`)) || !!((C = x.closest) != null && C.call(x, `[data-nvr-user-chip="${CSS.escape(h)}"]`)) || // Anything else floating above the card (a tooltip, a nested menu).
556
- !!((n = x.closest) != null && n.call(x, "[data-radix-popper-content-wrapper]")) && !((f = x.closest) != null && f.call(x, "[data-nvr-user-card]"));
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
- () => p(!1)
558
+ () => m(!1)
559
559
  );
560
- const { data: g, isLoading: b } = _({
560
+ const { data: u, isLoading: v } = _({
561
561
  ...D(i, e),
562
562
  enabled: !!i && !!e,
563
563
  staleTime: 12e4
564
- }), { data: o } = _({
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
- }), w = g ? [g.first_name, g.last_name].filter(Boolean).join(" ") || g.email : e, v = w.split(" ").map((x) => x[0]).filter(Boolean).slice(0, 2).join("").toUpperCase(), N = (o == null ? void 0 : o.online) ?? !1;
571
- return b && !s ? a === "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: [
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: p, children: [
575
- /* @__PURE__ */ t(xe, { asChild: !0, "data-nvr-user-chip": h, children: s || (a === "compact" ? (
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
- /* @__PURE__ */ l("span", { className: "inline-flex cursor-pointer items-center gap-1 rounded-full bg-slate-100 py-px pl-px pr-1.5 align-middle transition-colors hover:bg-slate-200 dark:bg-slate-800 dark:hover:bg-slate-700", children: [
580
- /* @__PURE__ */ t(
581
- M,
582
- {
583
- userId: e,
584
- className: "h-4 w-4",
585
- fallback: /* @__PURE__ */ t(
586
- "span",
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
- "data-copy-skip": !0,
589
- "aria-hidden": "true",
590
- 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",
591
- children: v
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
- /* @__PURE__ */ t("span", { className: "text-[11px] font-medium text-slate-600 dark:text-slate-300", children: w })
597
- ] })
598
- ) : /* @__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 align-middle transition-colors hover:bg-slate-100 dark:border-border dark:bg-card dark:hover:bg-accent", children: [
599
- /* @__PURE__ */ t(
600
- M,
601
- {
602
- userId: e,
603
- className: "h-6 w-6",
604
- fallback: /* @__PURE__ */ t(
605
- "span",
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
- "data-copy-skip": !0,
608
- "aria-hidden": "true",
609
- 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",
610
- children: v
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
- /* @__PURE__ */ t("span", { className: "text-[12px] text-slate-700 dark:text-slate-300", children: w })
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: g,
636
+ user: u,
621
637
  userId: e,
622
- initials: v,
623
- navigate: d,
624
- profileUrl: m,
625
- online: N,
626
- cardId: h,
627
- onAction: () => p(!1),
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
- ve as UserRosterCluster,
639
- ge as rosterInitials,
640
- we as rosterLabel,
641
- be as rosterName
654
+ we as UserRosterCluster,
655
+ be as rosterInitials,
656
+ ve as rosterLabel,
657
+ ge as rosterName
642
658
  };