@nivaro/react 0.3.11 → 0.3.13

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