@nivaro/react 0.3.119 → 0.3.121

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.
@@ -2,14 +2,14 @@ import { jsx as o, Fragment as k } from "react/jsx-runtime";
2
2
  import { useQuery as f } from "@tanstack/react-query";
3
3
  import { useApiFetchConfig as $, useOptionalNivaroClient as j } from "../context.js";
4
4
  import { userCardQuery as w } from "../lib/user-cards.js";
5
- import { useIsRecordingSelf as y, DEMO_USER as u } from "./help-videos/recorder/cleanRecording.js";
6
- function m(e) {
5
+ import { useIsRecordingSelf as y, DEMO_USER as m } from "./help-videos/recorder/cleanRecording.js";
6
+ function u(e) {
7
7
  return typeof e == "string" && e.startsWith("data:image/") ? e : null;
8
8
  }
9
9
  function U({
10
10
  userId: e,
11
11
  fallback: d,
12
- className: s,
12
+ className: l,
13
13
  style: t,
14
14
  alt: h
15
15
  }) {
@@ -32,29 +32,29 @@ function U({
32
32
  });
33
33
  if (!a.ok) return null;
34
34
  const i = await a.json().catch(() => null);
35
- return m((c = i == null ? void 0 : i.data) == null ? void 0 : c.avatar);
35
+ return u((c = i == null ? void 0 : i.data) == null ? void 0 : c.avatar);
36
36
  }
37
- }), l = r ? m(n == null ? void 0 : n.avatar) : x ?? null;
37
+ }), s = r ? u(n == null ? void 0 : n.avatar) : x ?? null;
38
38
  if (b) {
39
39
  const a = typeof (t == null ? void 0 : t.width) == "number" ? t.width : null;
40
40
  return /* @__PURE__ */ o(
41
41
  "span",
42
42
  {
43
43
  role: "img",
44
- "aria-label": u.name,
44
+ "aria-label": m.name,
45
45
  "data-nvr-demo-avatar": !0,
46
- className: `inline-flex shrink-0 select-none items-center justify-center rounded-full bg-[#cbd5e1] font-semibold text-[#334155] dark:bg-[#475569] dark:text-[#f1f5f9] ${a ? "" : "text-[10px]"} ${s ?? ""}`,
46
+ className: `inline-flex shrink-0 select-none items-center justify-center rounded-full bg-[#cbd5e1] font-semibold text-[#334155] dark:bg-[#475569] dark:text-[#f1f5f9] ${a ? "" : "text-[10px]"} ${l ?? ""}`,
47
47
  style: a ? { ...t, fontSize: Math.max(8, Math.round(a * 0.38)) } : t,
48
- children: u.initials
48
+ children: m.initials
49
49
  }
50
50
  );
51
51
  }
52
- return l ? /* @__PURE__ */ o(
52
+ return s ? /* @__PURE__ */ o(
53
53
  "img",
54
54
  {
55
- src: l,
55
+ src: s,
56
56
  alt: h ?? "",
57
- className: `shrink-0 rounded-full object-cover ${s ?? ""}`,
57
+ className: `shrink-0 rounded-full object-cover align-middle ${l ?? ""}`,
58
58
  style: t,
59
59
  draggable: !1
60
60
  }
@@ -1,84 +1,84 @@
1
- import { jsxs as C, Fragment as M, jsx as _ } from "react/jsx-runtime";
2
- import { useState as b, useRef as u, useCallback as $, cloneElement as v } from "react";
3
- import { headerChangedCells as j, HEADER_MORE_ROW_KEY as x, headerNeedsDense as A, headerFoldPlan as K } from "../../lib/header-strip.js";
4
- import { useLayoutDesign as T } from "../layout-editor/design-context.js";
1
+ import { jsxs as C, Fragment as M, jsx as $ } from "react/jsx-runtime";
2
+ import { useState as k, useRef as u, useCallback as j, cloneElement as v } from "react";
3
+ import { headerChangedCells as x, foldedListOrder as A, HEADER_MORE_ROW_KEY as K, headerNeedsDense as L, headerFoldPlan as T } from "../../lib/header-strip.js";
4
+ import { useLayoutDesign as _ } from "../layout-editor/design-context.js";
5
5
  import { HeaderOverflowChip as z } from "./HeaderOverflowChip.js";
6
- function J() {
7
- const [i, f] = b(!1), t = u(!1);
6
+ function P() {
7
+ const [i, f] = k(!1), t = u(!1);
8
8
  t.current = i;
9
- const [h, y] = b([]), s = u([]);
10
- s.current = h;
11
- const [d, S] = b(null), R = u(null);
12
- R.current = d;
13
- const e = u(/* @__PURE__ */ new Map()), r = u(/* @__PURE__ */ new Map()), n = u(null), m = $((c) => {
14
- var O;
15
- if ((O = n.current) == null || O.call(n), n.current = null, !c || typeof ResizeObserver > "u") return;
16
- let p = 0;
17
- const D = () => {
18
- p = 0;
19
- const a = A(c, t.current, r.current);
9
+ const [h, y] = k([]), c = u([]);
10
+ c.current = h;
11
+ const [m, g] = k(null), d = u(null);
12
+ d.current = m;
13
+ const b = u(/* @__PURE__ */ new Map()), p = u(/* @__PURE__ */ new Map()), e = u(null), r = j((n) => {
14
+ var F;
15
+ if ((F = e.current) == null || F.call(e), e.current = null, !n || typeof ResizeObserver > "u") return;
16
+ let o = 0;
17
+ const O = () => {
18
+ o = 0;
19
+ const a = L(n, t.current, p.current);
20
20
  a !== t.current && f(a);
21
- const l = a ? K(c, t.current, e.current) : { folded: [], rows: null }, o = (w) => w.map((k) => `${k.key}${k.empty ? "e" : ""}`).join();
22
- o(l.folded) !== o(s.current) && y(l.folded);
23
- const E = (w) => w ? JSON.stringify(w) : "";
24
- E(l.rows) !== E(R.current) && S(l.rows);
25
- }, F = () => {
26
- p || (p = window.requestAnimationFrame(D));
27
- }, g = new ResizeObserver(F);
28
- g.observe(c);
29
- for (const a of c.children) g.observe(a);
30
- const H = new MutationObserver((a) => {
31
- for (const o of c.children) g.observe(o);
32
- const l = j(c, a);
33
- for (const o of l.shown)
34
- e.current.delete(o), r.current.delete(o);
35
- for (const o of l.folded) r.current.delete(o);
36
- F();
21
+ const l = a ? T(n, t.current, b.current) : { folded: [], rows: null }, s = (w) => w.map((E) => `${E.key}${E.empty ? "e" : ""}`).join();
22
+ s(l.folded) !== s(c.current) && y(l.folded);
23
+ const H = (w) => w ? JSON.stringify(w) : "";
24
+ H(l.rows) !== H(d.current) && g(l.rows);
25
+ }, S = () => {
26
+ o || (o = window.requestAnimationFrame(O));
27
+ }, R = new ResizeObserver(S);
28
+ R.observe(n);
29
+ for (const a of n.children) R.observe(a);
30
+ const D = new MutationObserver((a) => {
31
+ for (const s of n.children) R.observe(s);
32
+ const l = x(n, a);
33
+ for (const s of l.shown)
34
+ b.current.delete(s), p.current.delete(s);
35
+ for (const s of l.folded) p.current.delete(s);
36
+ S();
37
37
  });
38
- H.observe(c, { childList: !0, subtree: !0, characterData: !0 }), D(), n.current = () => {
39
- g.disconnect(), H.disconnect(), p && window.cancelAnimationFrame(p);
38
+ D.observe(n, { childList: !0, subtree: !0, characterData: !0 }), O(), e.current = () => {
39
+ R.disconnect(), D.disconnect(), o && window.cancelAnimationFrame(o);
40
40
  };
41
41
  }, []);
42
- return { headerDense: i, headerFolded: h, headerRows: d, headerTilesRef: m };
42
+ return { headerDense: i, headerFolded: h, headerRows: m, headerTilesRef: r };
43
43
  }
44
- function P({
44
+ function Y({
45
45
  tiles: i,
46
46
  folded: f,
47
47
  rows: t = null
48
48
  }) {
49
- const h = new Set(f.map((e) => String(e.key))), y = /* @__PURE__ */ new Set(), s = i.map((e, r) => {
49
+ const h = new Set(f.map((e) => String(e.key))), y = /* @__PURE__ */ new Set(), c = i.map((e, r) => {
50
50
  let n = String(e.key ?? r);
51
51
  return y.has(n) && (n = `${n}#${r}`), y.add(n), n;
52
- }), d = i.filter((e, r) => h.has(s[r])), R = T() ? d.map(
52
+ }), m = A(f), g = new Map(m.map((e, r) => [String(e.key), r])), d = i.map((e, r) => ({ t: e, key: c[r] })).filter(({ key: e }) => h.has(e)).sort((e, r) => (g.get(e.key) ?? 0) - (g.get(r.key) ?? 0)).map(({ t: e }) => e), p = _() ? d.map(
53
53
  (e) => v(e, { "data-design-copy": "" })
54
54
  ) : d;
55
55
  return /* @__PURE__ */ C(M, { children: [
56
56
  i.map((e, r) => {
57
- if (h.has(s[r]))
57
+ if (h.has(c[r]))
58
58
  return v(e, {
59
- "data-header-cell": s[r],
59
+ "data-header-cell": c[r],
60
60
  "data-header-folded": "",
61
61
  "aria-hidden": "true"
62
62
  });
63
- const n = t == null ? void 0 : t[s[r]], m = e.props.style;
63
+ const n = t == null ? void 0 : t[c[r]], o = e.props.style;
64
64
  return v(e, {
65
- "data-header-cell": s[r],
66
- ...n != null || m ? { style: n != null ? { ...m, order: n } : m } : {}
65
+ "data-header-cell": c[r],
66
+ ...n != null || o ? { style: n != null ? { ...o, order: n } : o } : {}
67
67
  });
68
68
  }),
69
- d.length > 0 && /* @__PURE__ */ _(
69
+ d.length > 0 && /* @__PURE__ */ $(
70
70
  z,
71
71
  {
72
72
  count: d.length,
73
73
  allEmpty: f.every((e) => e.empty),
74
- labels: f.map((e) => e.label),
75
- order: t == null ? void 0 : t[x],
76
- children: R
74
+ labels: m.map((e) => e.label),
75
+ order: t == null ? void 0 : t[K],
76
+ children: p
77
77
  }
78
78
  )
79
79
  ] });
80
80
  }
81
81
  export {
82
- P as HeaderTiles,
83
- J as useHeaderBand
82
+ Y as HeaderTiles,
83
+ P as useHeaderBand
84
84
  };
@@ -32,11 +32,11 @@ function F(e, a, s) {
32
32
  };
33
33
  }, [e]);
34
34
  }
35
- function be(e) {
35
+ function ge(e) {
36
36
  const a = String(e ?? "").trim();
37
37
  return !a || /^redacted\b/i.test(a) ? "" : a.split(/\s+/).map((s) => s[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
38
38
  }
39
- function ge(e, a) {
39
+ function be(e, a) {
40
40
  const s = String(e ?? "").trim();
41
41
  return s || [a == null ? void 0 : a.first_name, a == null ? void 0 : a.last_name].filter(Boolean).join(" ").trim();
42
42
  }
@@ -49,7 +49,7 @@ function ue({
49
49
  enabled: !!s && !!e.id && !String(e.name ?? "").trim(),
50
50
  staleTime: 30 * 6e4,
51
51
  retry: !1
52
- }), d = ge(e.name, i), c = be(d), m = /^redacted\b/i.test(d);
52
+ }), d = be(e.name, i), c = ge(d), m = /^redacted\b/i.test(d);
53
53
  return /* @__PURE__ */ t(
54
54
  "span",
55
55
  {
@@ -77,15 +77,15 @@ function ve({
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, b] = j({ x: 0, y: 0 }), g = () => {
80
+ const d = S(null), c = S(null), m = S(null), [r, p] = j(null), [h, g] = j({ x: 0, y: 0 }), b = () => {
81
81
  m.current && clearTimeout(m.current), m.current = null;
82
82
  }, o = (n) => {
83
83
  var u;
84
- g();
84
+ b();
85
85
  const f = (u = d.current) == null ? void 0 : u.getBoundingClientRect();
86
- f && b({ x: f.left, y: f.bottom + 6 }), p((y) => y === "pin" ? "pin" : n);
86
+ f && g({ x: f.left, y: f.bottom + 6 }), p((y) => y === "pin" ? "pin" : n);
87
87
  }, w = () => {
88
- g(), m.current = setTimeout(() => p((n) => n === "pin" ? n : null), 160);
88
+ b(), m.current = setTimeout(() => p((n) => n === "pin" ? n : null), 160);
89
89
  };
90
90
  if (q.useLayoutEffect(() => {
91
91
  var U;
@@ -98,7 +98,7 @@ function ve({
98
98
  const O = (U = d.current) == null ? void 0 : U.getBoundingClientRect();
99
99
  y = Math.max(8, ((O == null ? void 0 : O.top) ?? y) - f.height - 6);
100
100
  }
101
- (u !== h.x || y !== h.y) && b({ x: u, y });
101
+ (u !== h.x || y !== h.y) && g({ x: u, y });
102
102
  }, [r, h]), F(
103
103
  !!r,
104
104
  (n) => {
@@ -156,7 +156,7 @@ function ve({
156
156
  {
157
157
  ref: c,
158
158
  style: ke(d.current, h),
159
- onMouseEnter: g,
159
+ onMouseEnter: b,
160
160
  onMouseLeave: w,
161
161
  onMouseDown: (n) => {
162
162
  n.stopPropagation(), p("pin");
@@ -214,31 +214,31 @@ function He({
214
214
  collection: e,
215
215
  itemId: a
216
216
  }) {
217
- var b;
217
+ var g;
218
218
  const s = T(), {
219
219
  data: i = [],
220
220
  isLoading: d,
221
221
  isFetching: c
222
222
  } = _({
223
223
  queryKey: ["pipeline-owners-resolved", e, a],
224
- queryFn: () => s.request(ee(`/pipelines/instance/${e}/owners/batch`, { ids: [a] })).then((g) => {
224
+ queryFn: () => s.request(ee(`/pipelines/instance/${e}/owners/batch`, { ids: [a] })).then((b) => {
225
225
  var o;
226
- return ((o = g.data) == null ? void 0 : o[a]) ?? [];
226
+ return ((o = b.data) == null ? void 0 : o[a]) ?? [];
227
227
  }),
228
228
  enabled: !!s && !!e && !!a && a !== "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: (g, o) => (o == null ? void 0 : o.queryKey[1]) === e && String(o == null ? void 0 : o.queryKey[2]) === String(a) ? g : void 0
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
233
  }), { data: m } = _({
234
234
  queryKey: ["pipeline-instance", e, a],
235
- queryFn: () => s.request(L(`/pipelines/instance/${e}/${a}`)).then((g) => g.data ?? null),
235
+ queryFn: () => s.request(L(`/pipelines/instance/${e}/${a}`)).then((b) => b.data ?? null),
236
236
  enabled: !!s && !!e && !!a && a !== "new",
237
237
  staleTime: 1e4
238
238
  });
239
239
  if (d || 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 = (b = m == null ? void 0 : m.instance) == null ? void 0 : b.current_state, h = r && (!p || String(p).toUpperCase() === r.state.id.toUpperCase()) ? r : null;
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
242
  return /* @__PURE__ */ t(ve, { users: i, nameLabel: !0, standIn: h });
243
243
  }
244
244
  function Je({
@@ -286,7 +286,7 @@ function ye({
286
286
  open: p = !1
287
287
  }) {
288
288
  var C;
289
- const { isAdmin: h, userId: b } = Q(), g = !!b && b.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 = (() => {
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
290
  const n = e == null ? void 0 : e.timezone;
291
291
  if (!n) return null;
292
292
  try {
@@ -468,7 +468,7 @@ function ye({
468
468
  }
469
469
  )
470
470
  ] }),
471
- h && !g && /* @__PURE__ */ t(
471
+ h && !b && /* @__PURE__ */ t(
472
472
  Ne,
473
473
  {
474
474
  userId: a,
@@ -488,10 +488,10 @@ function Ne({
488
488
  const [i, d] = j(!1), [c, m] = j("");
489
489
  E(() => {
490
490
  if (!i || c.trim()) return;
491
- const g = setTimeout(() => d(!1), de);
492
- return () => clearTimeout(g);
491
+ const b = setTimeout(() => d(!1), de);
492
+ return () => clearTimeout(b);
493
493
  }, [i, c]);
494
- const r = ce(e, { onDone: s }), p = me(e, a, { onDone: s }), h = () => p.mutate({ message: c }), b = "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 = 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";
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(
@@ -502,7 +502,7 @@ function Ne({
502
502
  onClick: () => r.mutate({}),
503
503
  "data-tip": "Every tab they have open shows a 15-second countdown, then reloads",
504
504
  className: P(
505
- b,
505
+ g,
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,
@@ -520,7 +520,7 @@ function Ne({
520
520
  onClick: () => i ? h() : d(!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
522
  className: P(
523
- b,
523
+ g,
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" : "",
@@ -557,7 +557,7 @@ function Ce({
557
557
  },
558
558
  () => p(!1)
559
559
  );
560
- const { data: b, isLoading: g } = _({
560
+ const { data: g, isLoading: b } = _({
561
561
  ...D(i, e),
562
562
  enabled: !!i && !!e,
563
563
  staleTime: 12e4
@@ -567,30 +567,35 @@ function Ce({
567
567
  enabled: !!i && !!e && r,
568
568
  staleTime: 15e3,
569
569
  refetchInterval: r ? 2e4 : !1
570
- }), w = b ? [b.first_name, b.last_name].filter(Boolean).join(" ") || b.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 g && !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
+ }), 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: [
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
574
  ] }) : /* @__PURE__ */ l(fe, { open: r, onOpenChange: p, children: [
575
- /* @__PURE__ */ t(xe, { asChild: !0, "data-nvr-user-chip": h, children: s || (a === "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: [
576
- /* @__PURE__ */ t(
577
- M,
578
- {
579
- userId: e,
580
- className: "h-4 w-4",
581
- fallback: /* @__PURE__ */ t(
582
- "span",
583
- {
584
- "data-copy-skip": !0,
585
- "aria-hidden": "true",
586
- 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",
587
- children: v
588
- }
589
- )
590
- }
591
- ),
592
- /* @__PURE__ */ t("span", { className: "text-[11px] font-medium text-slate-600 dark:text-slate-300", children: w })
593
- ] }) : /* @__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: [
575
+ /* @__PURE__ */ t(xe, { asChild: !0, "data-nvr-user-chip": h, children: s || (a === "compact" ? (
576
+ // align-middle: a photo has no text baseline, so an inline-flex chip whose first item
577
+ // is an <img> sat on the photo's bottom edge — raised, and the row grew a few px
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",
587
+ {
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
592
+ }
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: [
594
599
  /* @__PURE__ */ t(
595
600
  M,
596
601
  {
@@ -612,7 +617,7 @@ function Ce({
612
617
  /* @__PURE__ */ t(
613
618
  ye,
614
619
  {
615
- user: b,
620
+ user: g,
616
621
  userId: e,
617
622
  initials: v,
618
623
  navigate: d,
@@ -631,7 +636,7 @@ export {
631
636
  Ne as UserCardAdminRow,
632
637
  Ce as UserChip,
633
638
  ve as UserRosterCluster,
634
- be as rosterInitials,
639
+ ge as rosterInitials,
635
640
  we as rosterLabel,
636
- ge as rosterName
641
+ be as rosterName
637
642
  };