@nivaro/react 0.2.56 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/components/slots/TasksSlot.js +31 -29
  2. package/dist/full.css +1 -1
  3. package/dist/hooks/useSessionRecorder.js +1 -1
  4. package/dist/index.d.ts +414 -1
  5. package/dist/index.js +767 -716
  6. package/dist/shared/components/ClientChaosToolbar.js +410 -0
  7. package/dist/shared/components/ItemEditForm.js +666 -658
  8. package/dist/shared/components/LoadErrorNote.js +49 -0
  9. package/dist/shared/components/MyWorkView.js +47 -37
  10. package/dist/shared/components/PretendDown.js +258 -0
  11. package/dist/shared/components/ProfileView.js +208 -184
  12. package/dist/shared/components/QueryErrorState.js +16 -0
  13. package/dist/shared/components/ReportView.js +1351 -1338
  14. package/dist/shared/components/WidgetSlot.js +438 -418
  15. package/dist/shared/components/ai/AiPlanCard.js +427 -0
  16. package/dist/shared/components/ai/AiPlanChanges.js +117 -0
  17. package/dist/shared/components/ai/TaskDo.js +1022 -0
  18. package/dist/shared/components/chaos/DeclareIncidentButton.js +72 -0
  19. package/dist/shared/components/chaos/DrillBanner.js +119 -0
  20. package/dist/shared/components/chaos/DrillTag.js +62 -0
  21. package/dist/shared/components/chaos/GameDayStrip.js +61 -0
  22. package/dist/shared/components/chat/ChatAnalyticsView.js +19 -17
  23. package/dist/shared/components/chat/ChatPanel.js +1356 -1317
  24. package/dist/shared/components/chat/HuddleAnalyticsTab.js +198 -0
  25. package/dist/shared/components/chat/RoomHeaderMenu.js +78 -65
  26. package/dist/shared/components/chat/chat-core.js +273 -264
  27. package/dist/shared/components/chat/huddle/HuddleAudioUi.js +397 -0
  28. package/dist/shared/components/chat/huddle/HuddleCallBar.js +296 -0
  29. package/dist/shared/components/chat/huddle/HuddleCallLayer.js +180 -0
  30. package/dist/shared/components/chat/huddle/HuddleCamera.js +124 -0
  31. package/dist/shared/components/chat/huddle/HuddleCollab.js +320 -0
  32. package/dist/shared/components/chat/huddle/HuddleControls.js +82 -121
  33. package/dist/shared/components/chat/huddle/HuddleDraw.js +231 -0
  34. package/dist/shared/components/chat/huddle/HuddleLiveBadge.js +52 -0
  35. package/dist/shared/components/chat/huddle/HuddlePeoplePicker.js +143 -0
  36. package/dist/shared/components/chat/huddle/HuddleScheduleCard.js +190 -0
  37. package/dist/shared/components/chat/huddle/HuddleScheduleForm.js +188 -0
  38. package/dist/shared/components/chat/huddle/HuddleStage.js +184 -89
  39. package/dist/shared/components/chat/huddle/HuddleStageTools.js +197 -0
  40. package/dist/shared/components/chat/huddle/huddle-audio-logic.js +156 -0
  41. package/dist/shared/components/chat/huddle/huddle-audio.js +69 -0
  42. package/dist/shared/components/chat/huddle/huddle-calls.js +129 -0
  43. package/dist/shared/components/chat/huddle/huddle-camera.js +143 -0
  44. package/dist/shared/components/chat/huddle/huddle-collab-store.js +391 -0
  45. package/dist/shared/components/chat/huddle/huddle-device-prefs.js +55 -0
  46. package/dist/shared/components/chat/huddle/huddle-devices.js +99 -0
  47. package/dist/shared/components/chat/huddle/huddle-draw.js +226 -0
  48. package/dist/shared/components/chat/huddle/huddle-follow-bus.js +96 -0
  49. package/dist/shared/components/chat/huddle/huddle-hold.js +62 -0
  50. package/dist/shared/components/chat/huddle/huddle-link-quality.js +159 -0
  51. package/dist/shared/components/chat/huddle/huddle-live.js +82 -0
  52. package/dist/shared/components/chat/huddle/huddle-pip.js +343 -0
  53. package/dist/shared/components/chat/huddle/huddle-quality.js +22 -0
  54. package/dist/shared/components/chat/huddle/huddle-reactions.js +71 -0
  55. package/dist/shared/components/chat/huddle/huddle-ring-refused.js +34 -0
  56. package/dist/shared/components/chat/huddle/huddle-schedule.js +102 -0
  57. package/dist/shared/components/chat/huddle/huddle-sfu.js +176 -0
  58. package/dist/shared/components/chat/huddle/huddle-shortcuts.js +91 -0
  59. package/dist/shared/components/chat/huddle/huddle-speaking.js +100 -0
  60. package/dist/shared/components/chat/huddle/huddle-store.js +431 -157
  61. package/dist/shared/components/chat/huddle/useHuddle.js +46 -38
  62. package/dist/shared/components/chat/huddle/useHuddleAudio.js +35 -0
  63. package/dist/shared/components/client-chaos-gate.js +51 -0
  64. package/dist/shared/components/integrations/console/SignalCard.js +172 -167
  65. package/dist/shared/components/item-edit/GroupSection.js +1 -0
  66. package/dist/shared/components/item-edit/RecordChatActions.js +68 -59
  67. package/dist/shared/components/item-edit/UserChip.js +145 -142
  68. package/dist/shared/components/layout-editor/EditorTopBar.js +108 -105
  69. package/dist/shared/components/layout-editor/LayoutEditor.js +514 -508
  70. package/dist/shared/components/notifications/NotificationAnalyticsView.js +18 -10
  71. package/dist/shared/components/panels/TaskPanel.js +51 -49
  72. package/dist/shared/components/pipeline/PipelineEditorView.js +495 -479
  73. package/dist/shared/components/pipeline/TeamsView.js +184 -169
  74. package/dist/shared/components/support/TicketDetailSheet.js +57 -42
  75. package/dist/shared/lib/client-chaos.js +359 -0
  76. package/dist/shared/lib/load-error.js +26 -0
  77. package/dist/shared/lib/notification-sound.js +25 -16
  78. package/dist/shared/lib/socket-realtime.js +31 -30
  79. package/dist/shared/lib/worker-socket.js +108 -89
  80. package/package.json +2 -1
@@ -1,7 +1,7 @@
1
1
  import { jsxs as t, jsx as e, Fragment as oe } from "react/jsx-runtime";
2
- import { readUser as fe, readUserCard as ye, updateUser as me, readMyScopes as ve, saveMyScopeDefaults as ke, readItems as ne } from "@nivaro/sdk";
2
+ import { readUser as ye, readUserCard as fe, updateUser as ue, readMyScopes as ve, saveMyScopeDefaults as ke, readItems as ne } from "@nivaro/sdk";
3
3
  import { useQueryClient as E, useQuery as q, useMutation as _ } from "@tanstack/react-query";
4
- import { Loader2 as ue, Camera as Ne, Building2 as we, Mail as Se, Phone as _e, Clock as qe, Undo2 as Ce, Check as Pe, UserRound as Ae, Filter as Te, LogOut as Fe, ShieldCheck as Oe } from "lucide-react";
4
+ import { Loader2 as me, Camera as Ne, Building2 as we, Mail as Se, Phone as _e, Clock as qe, Undo2 as Ce, Check as Pe, UserRound as Ae, Filter as Te, LogOut as Fe, ShieldCheck as Oe } from "lucide-react";
5
5
  import { useState as C, useMemo as Le, useRef as De } from "react";
6
6
  import { useNivaroClient as T, useItemEditAuth as xe } from "../context.js";
7
7
  import { get as F, patch as V, post as ae, put as Me, del as Ee } from "../lib/commands.js";
@@ -19,11 +19,11 @@ import { TeamLoadCard as Ye } from "./profile/PersonExtras.js";
19
19
  import { NotificationSourcesCard as We } from "./NotificationSourcesCard.js";
20
20
  import { UserScopesCard as Ge } from "./profile/PersonAccess.js";
21
21
  import { PersonProfile as Je } from "./profile/PersonProfile.js";
22
- import { SectionCard as ie, Field as Y, ConfirmButton as be } from "./profile/primitives.js";
22
+ import { Toggle as Ve, SectionCard as ie, Field as Y, ConfirmButton as be } from "./profile/primitives.js";
23
23
  import { SimpleSelectXs as M } from "./ui/SimpleSelect.js";
24
- const Ve = (i) => [i.first_name, i.last_name].filter(Boolean).join(" ") || (i.email ?? "Unknown"), Ze = (i) => {
25
- var u, a;
26
- return (`${((u = i.first_name) == null ? void 0 : u[0]) ?? ""}${((a = i.last_name) == null ? void 0 : a[0]) ?? ""}` || (i.email ?? "?").slice(0, 2)).toUpperCase();
24
+ const Ze = (i) => [i.first_name, i.last_name].filter(Boolean).join(" ") || (i.email ?? "Unknown"), Xe = (i) => {
25
+ var m, a;
26
+ return (`${((m = i.first_name) == null ? void 0 : m[0]) ?? ""}${((a = i.last_name) == null ? void 0 : a[0]) ?? ""}` || (i.email ?? "?").slice(0, 2)).toUpperCase();
27
27
  }, te = [
28
28
  {
29
29
  key: "mentions",
@@ -65,6 +65,16 @@ const Ve = (i) => [i.first_name, i.last_name].filter(Boolean).join(" ") || (i.em
65
65
  label: "Integrations",
66
66
  help: "A partner system was not told something about your record, a send is still unanswered, or an integration alert you turned on in the Integrations console fired."
67
67
  },
68
+ {
69
+ key: "huddle",
70
+ label: "Huddles & calls",
71
+ help: "Someone calls you in a huddle or adds you to one, and reminders for huddles you were invited to. Push is what rings a closed tab."
72
+ },
73
+ {
74
+ key: "chaos",
75
+ label: "Chaos drills",
76
+ help: "Chaos Monkey drills starting and ending, and pushes about drills you started or take part in (with a Stop button). Only administrators and chaos operators get these."
77
+ },
68
78
  {
69
79
  key: "system",
70
80
  label: "System & digests",
@@ -76,18 +86,18 @@ const Ve = (i) => [i.first_name, i.last_name].filter(Boolean).join(" ") || (i.em
76
86
  help: "Any notification that does not fit a category above — direct messages from other users, access requests, task assignments."
77
87
  }
78
88
  ];
79
- function Xe() {
80
- const i = T(), u = E(), { data: a = [] } = q({
89
+ function et() {
90
+ const i = T(), m = E(), { data: a = [] } = q({
81
91
  queryKey: ["nvr-profile-fields"],
82
92
  queryFn: () => i.request(F("/profile-fields/mine")).then((n) => n.data ?? []).catch(() => [])
83
93
  }), [s, l] = C(null), o = _({
84
94
  mutationFn: (n) => i.request(Me("/profile-fields/mine", { values: n })),
85
95
  onSuccess: () => {
86
- l(null), u.invalidateQueries({ queryKey: ["nvr-profile-fields"] });
96
+ l(null), m.invalidateQueries({ queryKey: ["nvr-profile-fields"] });
87
97
  }
88
98
  });
89
99
  if (a.length === 0) return null;
90
- const c = s ?? Object.fromEntries(a.map((n) => [n.key, n.value ?? ""])), m = (n) => Array.isArray(n) ? n.map(String) : Array.isArray(n == null ? void 0 : n.choices) ? n.choices.map(
100
+ const c = s ?? Object.fromEntries(a.map((n) => [n.key, n.value ?? ""])), u = (n) => Array.isArray(n) ? n.map(String) : Array.isArray(n == null ? void 0 : n.choices) ? n.choices.map(
91
101
  (b) => typeof b == "object" && b != null ? String(b.value ?? "") : String(b)
92
102
  ) : [];
93
103
  return /* @__PURE__ */ t("div", { className: "rounded-lg border border-slate-200 bg-white dark:border-border dark:bg-card", children: [
@@ -116,7 +126,7 @@ function Xe() {
116
126
  value: c[n.key] || "",
117
127
  options: [
118
128
  { value: "", label: "—" },
119
- ...m(n.options).map((b) => ({ value: b, label: b }))
129
+ ...u(n.options).map((b) => ({ value: b, label: b }))
120
130
  ],
121
131
  onChange: (b) => l({ ...c, [n.key]: b })
122
132
  }
@@ -153,8 +163,8 @@ function Xe() {
153
163
  ] })
154
164
  ] });
155
165
  }
156
- function et() {
157
- const i = T(), u = E(), { data: a } = q({
166
+ function tt() {
167
+ const i = T(), m = E(), { data: a } = q({
158
168
  queryKey: ["nvr-profile-prefs"],
159
169
  queryFn: () => i.request(F("/users/me")).then((r) => {
160
170
  var h;
@@ -163,15 +173,15 @@ function et() {
163
173
  }), s = (a == null ? void 0 : a.notification_prefs) ?? {}, l = (a == null ? void 0 : a.email_digest) === "daily" ? "daily" : "instant", o = (r) => {
164
174
  var h, x;
165
175
  return ((x = (h = s.matrix) == null ? void 0 : h[r]) == null ? void 0 : x.email) ?? l;
166
- }, [c, m] = C(null), [n, b] = C(null), p = c ?? s.quiet_start ?? "", w = n ?? s.quiet_end ?? "", k = _({
176
+ }, [c, u] = C(null), [n, b] = C(null), p = c ?? s.quiet_start ?? "", w = n ?? s.quiet_end ?? "", k = _({
167
177
  mutationFn: (r) => i.request(V("/users/me/preferences", { notification_prefs: r })),
168
178
  onSuccess: () => {
169
- u.invalidateQueries({ queryKey: ["nvr-profile-prefs"] }), le(["notification_prefs"]);
179
+ m.invalidateQueries({ queryKey: ["nvr-profile-prefs"] }), le(["notification_prefs"]);
170
180
  }
171
181
  }), P = _({
172
182
  mutationFn: (r) => i.request(V("/users/me/preferences", r)),
173
183
  onSuccess: (r, h) => {
174
- u.invalidateQueries({ queryKey: ["nvr-profile-prefs"] }), le(Object.keys(h));
184
+ m.invalidateQueries({ queryKey: ["nvr-profile-prefs"] }), le(Object.keys(h));
175
185
  }
176
186
  }), [v, O] = C(null), L = _({
177
187
  mutationFn: (r) => i.request(ae("/notifications/rules-preview", { notification_prefs: r })),
@@ -188,14 +198,14 @@ function et() {
188
198
  escalation: r.escalation ?? s.escalation ?? {}
189
199
  };
190
200
  L.mutate(h), k.mutate(h);
191
- }, y = (a == null ? void 0 : a.notification_sounds) ?? {}, z = (r, h) => {
192
- const x = { ...y };
201
+ }, f = (a == null ? void 0 : a.notification_sounds) ?? {}, z = (r, h) => {
202
+ const x = { ...f };
193
203
  h === "default" ? delete x[r] : x[r] = h, h !== "default" && pe(h, { preview: !0 }), P.mutate({ notification_sounds: Object.keys(x).length ? x : null });
194
204
  }, { data: I } = q({
195
205
  queryKey: ["nvr-noise-suggestions"],
196
206
  queryFn: () => i.request(F("/notifications/noise-suggestions")).then((r) => r.data ?? []),
197
207
  staleTime: 6e5
198
- }), [f, K] = C({}), [j, U] = C(() => {
208
+ }), [y, K] = C({}), [j, U] = C(() => {
199
209
  try {
200
210
  const r = JSON.parse(localStorage.getItem("nvr-noise-dismissed") ?? "null");
201
211
  return r && Date.now() - r.at < 30 * 864e5 ? r.cats : [];
@@ -282,7 +292,7 @@ function et() {
282
292
  r.message,
283
293
  " Mute them?"
284
294
  ] }),
285
- r.category in f ? /* @__PURE__ */ e(
295
+ r.category in y ? /* @__PURE__ */ e(
286
296
  "button",
287
297
  {
288
298
  type: "button",
@@ -291,7 +301,7 @@ function et() {
291
301
  S({
292
302
  matrix: {
293
303
  ...s.matrix ?? {},
294
- [r.category]: f[r.category]
304
+ [r.category]: y[r.category]
295
305
  }
296
306
  }), K(({ [r.category]: h, ...x }) => x);
297
307
  },
@@ -357,7 +367,7 @@ function et() {
357
367
  {
358
368
  type: "time",
359
369
  value: p,
360
- onChange: (r) => m(r.target.value),
370
+ onChange: (r) => u(r.target.value),
361
371
  onBlur: () => S({ quiet_start: p || void 0 }),
362
372
  className: "h-7 rounded-md border border-slate-200 bg-background px-1.5 text-[12px] dark:border-border"
363
373
  }
@@ -378,7 +388,7 @@ function et() {
378
388
  {
379
389
  type: "button",
380
390
  onClick: () => {
381
- m(""), b(""), k.mutate({ matrix: s.matrix ?? {} });
391
+ u(""), b(""), k.mutate({ matrix: s.matrix ?? {} });
382
392
  },
383
393
  className: "text-[11.5px] text-slate-400 underline decoration-dotted underline-offset-2",
384
394
  children: "Clear"
@@ -403,6 +413,20 @@ function et() {
403
413
  ),
404
414
  /* @__PURE__ */ e("span", { className: "text-[11px] text-slate-400", children: "plays when a notification or a direct message arrives" })
405
415
  ] }),
416
+ /* @__PURE__ */ t("div", { className: "flex flex-wrap items-center gap-2 text-[12.5px] text-slate-600 dark:text-muted-foreground", children: [
417
+ /* @__PURE__ */ e(
418
+ Ve,
419
+ {
420
+ on: (a == null ? void 0 : a.huddle_hold_notifications) !== !1,
421
+ onChange: () => P.mutate({
422
+ huddle_hold_notifications: (a == null ? void 0 : a.huddle_hold_notifications) === !1
423
+ }),
424
+ label: "Hold notifications during huddles"
425
+ }
426
+ ),
427
+ "Hold notifications during huddles",
428
+ /* @__PURE__ */ e("span", { className: "text-[11px] text-slate-400", children: "toasts and sounds wait while you talk; you get one summary when you leave" })
429
+ ] }),
406
430
  /* @__PURE__ */ t("table", { className: "w-full text-[12px]", children: [
407
431
  /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ t("tr", { className: "text-left text-[10.5px] uppercase tracking-wide text-slate-400", children: [
408
432
  /* @__PURE__ */ e("th", { className: "py-1 font-semibold", children: "Category" }),
@@ -458,7 +482,7 @@ function et() {
458
482
  M,
459
483
  {
460
484
  ariaLabel: `Sound for ${r.label}`,
461
- value: y[r.key] ?? "default",
485
+ value: f[r.key] ?? "default",
462
486
  options: [
463
487
  { value: "default", label: "Default" },
464
488
  { value: "off", label: "None" },
@@ -615,16 +639,16 @@ function et() {
615
639
  }
616
640
  );
617
641
  }
618
- function tt() {
619
- const i = T(), u = E(), { data: a } = q({
642
+ function at() {
643
+ const i = T(), m = E(), { data: a } = q({
620
644
  queryKey: ["nvr-profile-prefs"],
621
645
  queryFn: () => i.request(F("/users/me")).then((c) => {
622
- var m;
623
- return ((m = c.data) == null ? void 0 : m.preferences) ?? {};
646
+ var u;
647
+ return ((u = c.data) == null ? void 0 : u.preferences) ?? {};
624
648
  })
625
649
  }), s = (a == null ? void 0 : a.link_app) === "portal" || (a == null ? void 0 : a.link_app) === "admin" ? a.link_app : "auto", l = _({
626
650
  mutationFn: (c) => i.request(V("/users/me/preferences", { link_app: c })),
627
- onSuccess: () => void u.invalidateQueries({ queryKey: ["nvr-profile-prefs"] })
651
+ onSuccess: () => void m.invalidateQueries({ queryKey: ["nvr-profile-prefs"] })
628
652
  });
629
653
  return /* @__PURE__ */ t(
630
654
  "div",
@@ -653,8 +677,8 @@ function tt() {
653
677
  }
654
678
  );
655
679
  }
656
- function at() {
657
- const i = T(), u = E(), [a, s] = C(""), l = (() => {
680
+ function rt() {
681
+ const i = T(), m = E(), [a, s] = C(""), l = (() => {
658
682
  try {
659
683
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
660
684
  } catch {
@@ -676,10 +700,10 @@ function at() {
676
700
  var w;
677
701
  return ((w = p.data) == null ? void 0 : w.preferences) ?? {};
678
702
  })
679
- }), m = typeof (c == null ? void 0 : c.timezone) == "string" ? c.timezone : null, n = _({
703
+ }), u = typeof (c == null ? void 0 : c.timezone) == "string" ? c.timezone : null, n = _({
680
704
  mutationFn: (p) => i.request(V("/users/me/preferences", { timezone: p })),
681
705
  onSuccess: (p, w) => {
682
- Ie(w), s(""), u.invalidateQueries({ queryKey: ["nvr-profile-prefs"] });
706
+ Ie(w), s(""), m.invalidateQueries({ queryKey: ["nvr-profile-prefs"] });
683
707
  }
684
708
  }), b = a.length > 1 ? o.filter((p) => p.toLowerCase().includes(a.toLowerCase())).slice(0, 8) : [];
685
709
  return /* @__PURE__ */ t(
@@ -696,8 +720,8 @@ function at() {
696
720
  "."
697
721
  ] }),
698
722
  /* @__PURE__ */ t("div", { className: "mt-3 flex flex-wrap items-center gap-2", children: [
699
- /* @__PURE__ */ e("span", { className: "inline-flex items-center gap-1.5 rounded-full bg-nvr-cyan/10 px-2.5 py-1 text-[12px] font-medium text-nvr-navy dark:text-nvr-cyan", children: m ?? `${l} (browser default)` }),
700
- m && /* @__PURE__ */ e(
723
+ /* @__PURE__ */ e("span", { className: "inline-flex items-center gap-1.5 rounded-full bg-nvr-cyan/10 px-2.5 py-1 text-[12px] font-medium text-nvr-navy dark:text-nvr-cyan", children: u ?? `${l} (browser default)` }),
724
+ u && /* @__PURE__ */ e(
701
725
  "button",
702
726
  {
703
727
  type: "button",
@@ -732,13 +756,13 @@ function at() {
732
756
  }
733
757
  );
734
758
  }
735
- function rt() {
736
- const i = T(), u = E(), { data: a } = q({
759
+ function nt() {
760
+ const i = T(), m = E(), { data: a } = q({
737
761
  queryKey: ["nvr-profile-scopes"],
738
762
  queryFn: () => i.request(ve()).then((l) => l.data)
739
763
  }), s = _({
740
764
  mutationFn: ({ dimension: l, values: o }) => i.request(ke(l, o)),
741
- onSuccess: () => void u.invalidateQueries({ queryKey: ["nvr-profile-scopes"] })
765
+ onSuccess: () => void m.invalidateQueries({ queryKey: ["nvr-profile-scopes"] })
742
766
  });
743
767
  return !a || a.dimensions.length === 0 ? null : /* @__PURE__ */ e(
744
768
  ie,
@@ -748,7 +772,7 @@ function rt() {
748
772
  title: "Default filters",
749
773
  hint: "Pre-selected in browsers and reports — clear anytime",
750
774
  children: /* @__PURE__ */ e("div", { className: "space-y-3", children: a.dimensions.map((l) => /* @__PURE__ */ e(
751
- nt,
775
+ st,
752
776
  {
753
777
  dimension: l,
754
778
  selected: a.defaults[l.name] ?? [],
@@ -760,13 +784,13 @@ function rt() {
760
784
  }
761
785
  );
762
786
  }
763
- function nt({
787
+ function st({
764
788
  dimension: i,
765
- selected: u,
789
+ selected: m,
766
790
  restricted: a,
767
791
  onSave: s
768
792
  }) {
769
- const l = T(), o = i.display_field ?? "name", [c, m] = C(""), [n, b] = C(!1), { data: p = [] } = q({
793
+ const l = T(), o = i.display_field ?? "name", [c, u] = C(""), [n, b] = C(!1), { data: p = [] } = q({
770
794
  queryKey: ["nvr-scope-options", i.name],
771
795
  queryFn: async () => ((await l.request(
772
796
  ne(i.target_collection, {
@@ -778,7 +802,7 @@ function nt({
778
802
  id: N.id,
779
803
  label: String(N[o] ?? N.id)
780
804
  }))
781
- }), w = a != null && a.length ? new Set(a.map(String)) : null, k = w ? p.filter((d) => w.has(String(d.id))) : p, P = new Set(u.map(String)), v = k.length > 24 || p.length >= 200 && !w, { data: O = [], isFetching: L } = q({
805
+ }), w = a != null && a.length ? new Set(a.map(String)) : null, k = w ? p.filter((d) => w.has(String(d.id))) : p, P = new Set(m.map(String)), v = k.length > 24 || p.length >= 200 && !w, { data: O = [], isFetching: L } = q({
782
806
  queryKey: ["nvr-scope-search", i.name, c],
783
807
  queryFn: async () => {
784
808
  const N = ((await l.request(
@@ -798,30 +822,30 @@ function nt({
798
822
  placeholderData: (d) => d
799
823
  }), S = new Map(p.map((d) => [String(d.id), d.label]));
800
824
  for (const d of O) S.set(String(d.id), d.label);
801
- const y = u.filter((d) => !S.has(String(d))), { data: z = [] } = q({
802
- queryKey: ["nvr-scope-selected-labels", i.name, y.map(String).sort().join(",")],
825
+ const f = m.filter((d) => !S.has(String(d))), { data: z = [] } = q({
826
+ queryKey: ["nvr-scope-selected-labels", i.name, f.map(String).sort().join(",")],
803
827
  queryFn: async () => ((await l.request(
804
828
  ne(i.target_collection, {
805
829
  fields: ["id", o],
806
- filter: { id: { _in: y } },
830
+ filter: { id: { _in: f } },
807
831
  limit: 100
808
832
  })
809
833
  )).data ?? []).map((N) => ({
810
834
  id: N.id,
811
835
  label: String(N[o] ?? N.id)
812
836
  })),
813
- enabled: y.length > 0
837
+ enabled: f.length > 0
814
838
  });
815
839
  for (const d of z) S.set(String(d.id), d.label);
816
840
  const I = (d) => {
817
841
  const N = P.has(String(d));
818
- s(N ? u.filter((A) => String(A) !== String(d)) : [...u, d]);
819
- }, f = c.trim().toLowerCase(), K = f ? k.filter((d) => d.label.toLowerCase().includes(f)) : k, j = f.length === 0 ? k.slice(0, 30) : L && O.length === 0 ? K.slice(0, 30) : O, U = v && (n || f.length > 0);
842
+ s(N ? m.filter((A) => String(A) !== String(d)) : [...m, d]);
843
+ }, y = c.trim().toLowerCase(), K = y ? k.filter((d) => d.label.toLowerCase().includes(y)) : k, j = y.length === 0 ? k.slice(0, 30) : L && O.length === 0 ? K.slice(0, 30) : O, U = v && (n || y.length > 0);
820
844
  return /* @__PURE__ */ t("div", { children: [
821
845
  /* @__PURE__ */ t("p", { className: "mb-1 text-[11px] font-medium uppercase tracking-wide text-slate-400", children: [
822
846
  i.label,
823
847
  a != null && a.length ? /* @__PURE__ */ e("span", { className: "ml-1.5 normal-case tracking-normal text-amber-500", children: "(limited by your access)" }) : null,
824
- u.length > 0 && /* @__PURE__ */ t(
848
+ m.length > 0 && /* @__PURE__ */ t(
825
849
  "button",
826
850
  {
827
851
  type: "button",
@@ -829,13 +853,13 @@ function nt({
829
853
  className: "ml-2 normal-case tracking-normal text-slate-400 underline-offset-2 hover:text-slate-600 hover:underline",
830
854
  children: [
831
855
  "clear ",
832
- u.length
856
+ m.length
833
857
  ]
834
858
  }
835
859
  )
836
860
  ] }),
837
861
  v ? /* @__PURE__ */ t("div", { className: "max-w-xl", children: [
838
- u.length > 0 && /* @__PURE__ */ e("div", { className: "mb-1.5 flex flex-wrap gap-1", children: u.map((d) => /* @__PURE__ */ t(
862
+ m.length > 0 && /* @__PURE__ */ e("div", { className: "mb-1.5 flex flex-wrap gap-1", children: m.map((d) => /* @__PURE__ */ t(
839
863
  "span",
840
864
  {
841
865
  className: "inline-flex items-center gap-1 rounded-full border border-nvr-cyan bg-nvr-cyan/10 py-0.5 pl-2.5 pr-1 text-[11.5px] font-medium text-nvr-navy dark:text-nvr-cyan",
@@ -859,7 +883,7 @@ function nt({
859
883
  "input",
860
884
  {
861
885
  value: c,
862
- onChange: (d) => m(d.target.value),
886
+ onChange: (d) => u(d.target.value),
863
887
  onFocus: () => b(!0),
864
888
  onBlur: () => b(!1),
865
889
  placeholder: `Search ${i.label.toLowerCase()} to add…`,
@@ -891,12 +915,12 @@ function nt({
891
915
  String(d.id)
892
916
  );
893
917
  }),
894
- j.length === 0 && /* @__PURE__ */ e("p", { className: "px-2.5 py-2 text-[11.5px] text-slate-400", children: L ? "Searching…" : f ? "No matches." : "No options." }),
895
- f.length === 0 && k.length > 30 && /* @__PURE__ */ e("p", { className: "border-t border-slate-100 px-2.5 py-1.5 text-[11px] text-slate-400 dark:border-border", children: "Showing first 30 — type to narrow." })
918
+ j.length === 0 && /* @__PURE__ */ e("p", { className: "px-2.5 py-2 text-[11.5px] text-slate-400", children: L ? "Searching…" : y ? "No matches." : "No options." }),
919
+ y.length === 0 && k.length > 30 && /* @__PURE__ */ e("p", { className: "border-t border-slate-100 px-2.5 py-1.5 text-[11px] text-slate-400 dark:border-border", children: "Showing first 30 — type to narrow." })
896
920
  ]
897
921
  }
898
922
  ),
899
- !U && u.length === 0 && /* @__PURE__ */ e("p", { className: "mt-1 text-[11px] text-slate-400", children: "No defaults set — click to browse or type to search." })
923
+ !U && m.length === 0 && /* @__PURE__ */ e("p", { className: "mt-1 text-[11px] text-slate-400", children: "No defaults set — click to browse or type to search." })
900
924
  ] }) : /* @__PURE__ */ t("div", { className: "flex flex-wrap gap-1", children: [
901
925
  k.map((d) => {
902
926
  const N = P.has(String(d.id));
@@ -918,38 +942,38 @@ function nt({
918
942
  ] })
919
943
  ] });
920
944
  }
921
- function st() {
945
+ function lt() {
922
946
  const { data: i } = q({
923
947
  queryKey: ["nvr-settings-2fa"],
924
- queryFn: () => a.request({ _method: "GET", _path: "/settings/" }).then((y) => (y == null ? void 0 : y.data) ?? null).catch(() => null),
948
+ queryFn: () => a.request({ _method: "GET", _path: "/settings/" }).then((f) => (f == null ? void 0 : f.data) ?? null).catch(() => null),
925
949
  staleTime: 6e5
926
- }), u = (i == null ? void 0 : i.two_factor_enabled) !== !1, a = T(), s = E(), [l, o] = C(null), [c, m] = C(""), [n, b] = C(null), { data: p } = q({
950
+ }), m = (i == null ? void 0 : i.two_factor_enabled) !== !1, a = T(), s = E(), [l, o] = C(null), [c, u] = C(""), [n, b] = C(null), { data: p } = q({
927
951
  queryKey: ["nvr-profile-totp"],
928
- queryFn: () => a.request({ _method: "GET", _path: "/two-factor/status" }).then((y) => y.data)
952
+ queryFn: () => a.request({ _method: "GET", _path: "/two-factor/status" }).then((f) => f.data)
929
953
  }), w = () => void s.invalidateQueries({ queryKey: ["nvr-profile-totp"] }), k = _({
930
- mutationFn: () => a.request({ _method: "POST", _path: "/two-factor/setup" }).then((y) => y.data),
931
- onSuccess: (y) => o(y)
954
+ mutationFn: () => a.request({ _method: "POST", _path: "/two-factor/setup" }).then((f) => f.data),
955
+ onSuccess: (f) => o(f)
932
956
  }), P = _({
933
- mutationFn: (y) => a.request({
957
+ mutationFn: (f) => a.request({
934
958
  _method: "POST",
935
959
  _path: "/two-factor/verify",
936
- _body: { token: y }
960
+ _body: { token: f }
937
961
  }),
938
962
  onSuccess: () => {
939
- o(null), m(""), w();
963
+ o(null), u(""), w();
940
964
  }
941
965
  }), v = _({
942
- mutationFn: (y) => a.request({
966
+ mutationFn: (f) => a.request({
943
967
  _method: "POST",
944
968
  _path: "/two-factor/disable",
945
- _body: { token: y }
969
+ _body: { token: f }
946
970
  }),
947
971
  onSuccess: () => {
948
- m(""), w();
972
+ u(""), w();
949
973
  }
950
974
  }), O = _({
951
- mutationFn: () => a.request({ _method: "POST", _path: "/users/me/token" }).then((y) => y.data),
952
- onSuccess: (y) => b(y.token)
975
+ mutationFn: () => a.request({ _method: "POST", _path: "/users/me/token" }).then((f) => f.data),
976
+ onSuccess: (f) => b(f.token)
953
977
  }), L = _({
954
978
  mutationFn: () => a.request({ _method: "DELETE", _path: "/users/me/token" }),
955
979
  onSuccess: () => b(null)
@@ -962,9 +986,9 @@ function st() {
962
986
  {
963
987
  icon: /* @__PURE__ */ e(Oe, { className: "h-4 w-4" }),
964
988
  title: "Security",
965
- hint: u ? "Two-factor sign-in and API access" : "API access",
989
+ hint: m ? "Two-factor sign-in and API access" : "API access",
966
990
  children: /* @__PURE__ */ t("div", { className: "space-y-4", children: [
967
- u && /* @__PURE__ */ t("div", { children: [
991
+ m && /* @__PURE__ */ t("div", { children: [
968
992
  /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
969
993
  /* @__PURE__ */ e("p", { className: "text-[12.5px] font-medium text-slate-700 dark:text-slate-200", children: "Two-factor authentication" }),
970
994
  /* @__PURE__ */ e(
@@ -1003,7 +1027,7 @@ function st() {
1003
1027
  "input",
1004
1028
  {
1005
1029
  value: c,
1006
- onChange: (y) => m(y.target.value),
1030
+ onChange: (f) => u(f.target.value),
1007
1031
  placeholder: "123456",
1008
1032
  inputMode: "numeric",
1009
1033
  className: "h-8 w-[110px] rounded-md border border-slate-200 px-2.5 text-center text-[13px] tabular-nums tracking-widest dark:border-border dark:bg-background"
@@ -1027,7 +1051,7 @@ function st() {
1027
1051
  "input",
1028
1052
  {
1029
1053
  value: c,
1030
- onChange: (y) => m(y.target.value),
1054
+ onChange: (f) => u(f.target.value),
1031
1055
  placeholder: "Code to disable",
1032
1056
  inputMode: "numeric",
1033
1057
  className: "h-8 w-[130px] rounded-md border border-slate-200 px-2.5 text-[12px] dark:border-border dark:bg-background"
@@ -1048,7 +1072,7 @@ function st() {
1048
1072
  /* @__PURE__ */ t(
1049
1073
  "div",
1050
1074
  {
1051
- className: u ? "border-t border-slate-100 pt-3 dark:border-border/60" : void 0,
1075
+ className: m ? "border-t border-slate-100 pt-3 dark:border-border/60" : void 0,
1052
1076
  children: [
1053
1077
  /* @__PURE__ */ e("p", { className: "text-[12.5px] font-medium text-slate-700 dark:text-slate-200", children: "API token" }),
1054
1078
  /* @__PURE__ */ e("p", { className: "mt-0.5 text-[11.5px] text-slate-400", children: "Personal Bearer token for scripts and integrations. Shown once — creating a new one replaces the old." }),
@@ -1100,29 +1124,29 @@ function st() {
1100
1124
  }
1101
1125
  );
1102
1126
  }
1103
- function It({
1127
+ function jt({
1104
1128
  userId: i,
1105
- className: u,
1129
+ className: m,
1106
1130
  initialTab: a,
1107
1131
  extra: s,
1108
1132
  pushServiceWorker: l = "/sw.js"
1109
1133
  }) {
1110
1134
  const o = xe();
1111
- return !i || (o == null ? void 0 : o.userId) != null && String(o.userId) === String(i) ? /* @__PURE__ */ e(lt, { className: u, extra: s, pushServiceWorker: l }) : /* @__PURE__ */ e(Je, { userId: i, className: u, initialTab: a });
1135
+ return !i || (o == null ? void 0 : o.userId) != null && String(o.userId) === String(i) ? /* @__PURE__ */ e(ot, { className: m, extra: s, pushServiceWorker: l }) : /* @__PURE__ */ e(Je, { userId: i, className: m, initialTab: a });
1112
1136
  }
1113
- function lt({
1137
+ function ot({
1114
1138
  className: i,
1115
- extra: u,
1139
+ extra: m,
1116
1140
  pushServiceWorker: a
1117
1141
  }) {
1118
1142
  var U;
1119
- const s = T(), l = E(), o = xe(), c = !0, m = "me", { data: n } = q({
1120
- queryKey: ["nvr-profile-user", m],
1121
- queryFn: () => s.request(fe(m)).then((d) => d.data),
1143
+ const s = T(), l = E(), o = xe(), c = !0, u = "me", { data: n } = q({
1144
+ queryKey: ["nvr-profile-user", u],
1145
+ queryFn: () => s.request(ye(u)).then((d) => d.data),
1122
1146
  enabled: c
1123
1147
  }), b = (n == null ? void 0 : n.id) ?? null, { data: p } = q({
1124
1148
  queryKey: ["nvr-profile-card", b],
1125
- queryFn: () => s.request(ye(b)).then((d) => d.data),
1149
+ queryFn: () => s.request(fe(b)).then((d) => d.data),
1126
1150
  enabled: !!b
1127
1151
  }), [w, k] = C(null), P = Le(
1128
1152
  () => ({
@@ -1134,11 +1158,11 @@ function lt({
1134
1158
  }),
1135
1159
  [n]
1136
1160
  ), v = w ?? P, O = JSON.stringify(v) !== JSON.stringify(P), L = _({
1137
- mutationFn: () => s.request(me(n.id, v)),
1161
+ mutationFn: () => s.request(ue(n.id, v)),
1138
1162
  onSuccess: () => {
1139
1163
  k(null), l.invalidateQueries({ queryKey: ["nvr-profile-user"] }), l.invalidateQueries({ queryKey: ["nvr-profile-card"] });
1140
1164
  }
1141
- }), [S, y] = C(ot), z = De(null), I = _({
1165
+ }), [S, f] = C(it), z = De(null), I = _({
1142
1166
  mutationFn: async (d) => {
1143
1167
  const N = await new Promise((A, Z) => {
1144
1168
  const D = new Image(), W = URL.createObjectURL(d);
@@ -1154,13 +1178,13 @@ function lt({
1154
1178
  URL.revokeObjectURL(W), Z(new Error("not an image"));
1155
1179
  }, D.src = W;
1156
1180
  });
1157
- await s.request(me(n.id, { avatar: N }));
1181
+ await s.request(ue(n.id, { avatar: N }));
1158
1182
  },
1159
1183
  onSuccess: () => {
1160
1184
  l.invalidateQueries({ queryKey: ["nvr-profile-user"] }), l.invalidateQueries({ queryKey: ["nvr-profile-card"] }), l.invalidateQueries({ queryKey: ["user-card"] }), l.invalidateQueries({ queryKey: ["user-avatar"] });
1161
1185
  }
1162
- }), f = p ?? (n ? { ...n, role_name: null } : null);
1163
- if (!f)
1186
+ }), y = p ?? (n ? { ...n, role_name: null } : null);
1187
+ if (!y)
1164
1188
  return /* @__PURE__ */ t("div", { className: $("flex animate-pulse flex-col gap-4", i), "aria-busy": "true", children: [
1165
1189
  /* @__PURE__ */ t("div", { className: "flex items-center gap-5 rounded-lg border border-slate-200 bg-white p-5 dark:border-border dark:bg-card", children: [
1166
1190
  /* @__PURE__ */ e("div", { className: "h-[76px] w-[76px] rounded-full bg-slate-100 dark:bg-muted" }),
@@ -1175,7 +1199,7 @@ function lt({
1175
1199
  /* @__PURE__ */ e("div", { className: "h-64 rounded-lg border border-slate-200 bg-white dark:border-border dark:bg-card" })
1176
1200
  ] })
1177
1201
  ] });
1178
- const K = (n == null ? void 0 : n.avatar) ?? null, j = f.status === "active";
1202
+ const K = (n == null ? void 0 : n.avatar) ?? null, j = y.status === "active";
1179
1203
  return /* @__PURE__ */ t("div", { className: $("flex flex-col gap-4", i), "data-nvr-profile": !0, children: [
1180
1204
  /* @__PURE__ */ e("div", { className: "rounded-lg border border-slate-200 bg-white dark:border-border dark:bg-card", children: /* @__PURE__ */ t("div", { className: "flex flex-wrap items-center gap-x-5 gap-y-4 p-5", children: [
1181
1205
  /* @__PURE__ */ t("div", { className: "relative", children: [
@@ -1186,7 +1210,7 @@ function lt({
1186
1210
  alt: "",
1187
1211
  className: "h-[76px] w-[76px] rounded-full border border-slate-200 object-cover dark:border-border"
1188
1212
  }
1189
- ) : /* @__PURE__ */ e("span", { className: "flex h-[76px] w-[76px] items-center justify-center rounded-full bg-[#c7f0fb] text-[24px] font-semibold text-[#04516b] dark:bg-nvr-cyan/15 dark:text-nvr-cyan", children: Ze(f) }),
1213
+ ) : /* @__PURE__ */ e("span", { className: "flex h-[76px] w-[76px] items-center justify-center rounded-full bg-[#c7f0fb] text-[24px] font-semibold text-[#04516b] dark:bg-nvr-cyan/15 dark:text-nvr-cyan", children: Xe(y) }),
1190
1214
  /* @__PURE__ */ e(
1191
1215
  "span",
1192
1216
  {
@@ -1194,7 +1218,7 @@ function lt({
1194
1218
  "absolute bottom-0.5 right-0.5 h-3 w-3 rounded-full border-2 border-white dark:border-card",
1195
1219
  j ? "bg-emerald-500" : "bg-slate-300 dark:bg-slate-600"
1196
1220
  ),
1197
- title: j ? "Active" : f.status
1221
+ title: j ? "Active" : y.status
1198
1222
  }
1199
1223
  ),
1200
1224
  /* @__PURE__ */ t(oe, { children: [
@@ -1209,7 +1233,7 @@ function lt({
1209
1233
  return (d = z.current) == null ? void 0 : d.click();
1210
1234
  },
1211
1235
  className: "absolute -right-1 -top-1 flex h-7 w-7 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-500 shadow-sm transition-colors hover:border-nvr-cyan hover:text-nvr-navy dark:border-border dark:bg-background dark:text-slate-300 dark:hover:text-nvr-cyan",
1212
- children: I.isPending ? /* @__PURE__ */ e(ue, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Ne, { className: "h-3.5 w-3.5" })
1236
+ children: I.isPending ? /* @__PURE__ */ e(me, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Ne, { className: "h-3.5 w-3.5" })
1213
1237
  }
1214
1238
  ),
1215
1239
  /* @__PURE__ */ e(
@@ -1230,10 +1254,10 @@ function lt({
1230
1254
  ] }),
1231
1255
  /* @__PURE__ */ t("div", { className: "min-w-0 flex-1", children: [
1232
1256
  /* @__PURE__ */ t("div", { className: "flex flex-wrap items-center gap-2", children: [
1233
- /* @__PURE__ */ e("h1", { className: "text-[21px] font-semibold tracking-[-0.015em] text-slate-900 dark:text-white", children: Ve(f) }),
1234
- f.role_name && /* @__PURE__ */ e("span", { className: "rounded-full bg-nvr-cyan/10 px-2 py-px text-[10.5px] font-semibold text-nvr-navy dark:text-nvr-cyan", children: f.role_name }),
1235
- f.is_out_of_office && /* @__PURE__ */ e("span", { className: "rounded-full bg-amber-50 px-2 py-px text-[10.5px] font-semibold text-amber-600 dark:bg-amber-500/10 dark:text-amber-400", children: "Out of office" }),
1236
- /* @__PURE__ */ e(He, { email: f.email, canClear: o.isAdmin })
1257
+ /* @__PURE__ */ e("h1", { className: "text-[21px] font-semibold tracking-[-0.015em] text-slate-900 dark:text-white", children: Ze(y) }),
1258
+ y.role_name && /* @__PURE__ */ e("span", { className: "rounded-full bg-nvr-cyan/10 px-2 py-px text-[10.5px] font-semibold text-nvr-navy dark:text-nvr-cyan", children: y.role_name }),
1259
+ y.is_out_of_office && /* @__PURE__ */ e("span", { className: "rounded-full bg-amber-50 px-2 py-px text-[10.5px] font-semibold text-amber-600 dark:bg-amber-500/10 dark:text-amber-400", children: "Out of office" }),
1260
+ /* @__PURE__ */ e(He, { email: y.email, canClear: o.isAdmin })
1237
1261
  ] }),
1238
1262
  n && // The same status the chat panel's Online tab sets — one editor,
1239
1263
  // one preference, so the profile always agrees with the top bar.
@@ -1247,40 +1271,40 @@ function lt({
1247
1271
  className: "mt-1.5"
1248
1272
  }
1249
1273
  ),
1250
- (f.title || f.department) && /* @__PURE__ */ e("p", { className: "mt-0.5 truncate text-[13px] text-slate-500 dark:text-slate-400", children: [f.title, f.department].filter(Boolean).join(" · ") }),
1274
+ (y.title || y.department) && /* @__PURE__ */ e("p", { className: "mt-0.5 truncate text-[13px] text-slate-500 dark:text-slate-400", children: [y.title, y.department].filter(Boolean).join(" · ") }),
1251
1275
  /* @__PURE__ */ t("div", { className: "mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-[12.5px] text-slate-500 dark:text-slate-400", children: [
1252
- f.company && /* @__PURE__ */ t("span", { className: "inline-flex items-center gap-1.5", children: [
1276
+ y.company && /* @__PURE__ */ t("span", { className: "inline-flex items-center gap-1.5", children: [
1253
1277
  /* @__PURE__ */ e(we, { className: "h-3.5 w-3.5" }),
1254
1278
  " ",
1255
- f.company
1279
+ y.company
1256
1280
  ] }),
1257
1281
  /* @__PURE__ */ t(
1258
1282
  "a",
1259
1283
  {
1260
- href: `mailto:${f.email}`,
1284
+ href: `mailto:${y.email}`,
1261
1285
  className: "inline-flex items-center gap-1.5 transition-colors hover:text-nvr-navy dark:hover:text-nvr-cyan",
1262
1286
  children: [
1263
1287
  /* @__PURE__ */ e(Se, { className: "h-3.5 w-3.5" }),
1264
1288
  " ",
1265
- f.email
1289
+ y.email
1266
1290
  ]
1267
1291
  }
1268
1292
  ),
1269
- f.phone && /* @__PURE__ */ t(
1293
+ y.phone && /* @__PURE__ */ t(
1270
1294
  "a",
1271
1295
  {
1272
- href: `tel:${f.phone}`,
1296
+ href: `tel:${y.phone}`,
1273
1297
  className: "inline-flex items-center gap-1.5 transition-colors hover:text-nvr-navy dark:hover:text-nvr-cyan",
1274
1298
  children: [
1275
1299
  /* @__PURE__ */ e(_e, { className: "h-3.5 w-3.5" }),
1276
1300
  " ",
1277
- f.phone
1301
+ y.phone
1278
1302
  ]
1279
1303
  }
1280
1304
  ),
1281
- f.last_access && /* @__PURE__ */ t("span", { className: "inline-flex items-center gap-1.5", title: "Last active", children: [
1305
+ y.last_access && /* @__PURE__ */ t("span", { className: "inline-flex items-center gap-1.5", title: "Last active", children: [
1282
1306
  /* @__PURE__ */ e(qe, { className: "h-3.5 w-3.5" }),
1283
- new Date(f.last_access).toLocaleDateString(void 0, {
1307
+ new Date(y.last_access).toLocaleDateString(void 0, {
1284
1308
  month: "short",
1285
1309
  day: "numeric"
1286
1310
  })
@@ -1288,7 +1312,7 @@ function lt({
1288
1312
  ] })
1289
1313
  ] })
1290
1314
  ] }) }),
1291
- /* @__PURE__ */ e(it, { tab: S, onChange: y }),
1315
+ /* @__PURE__ */ e(dt, { tab: S, onChange: f }),
1292
1316
  S === "agents" ? /* @__PURE__ */ e(Re, {}) : n ? (
1293
1317
  // One list in reading order — you, then notifications, then access
1294
1318
  // and security — flowing into two balanced columns. Two fixed stacks
@@ -1328,7 +1352,7 @@ function lt({
1328
1352
  onClick: () => L.mutate(),
1329
1353
  className: "inline-flex h-7 items-center gap-1 rounded-md bg-nvr-cyan px-2.5 text-[11.5px] font-semibold text-white transition-opacity disabled:opacity-50",
1330
1354
  children: [
1331
- L.isPending ? /* @__PURE__ */ e(ue, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ e(Pe, { className: "h-3 w-3" }),
1355
+ L.isPending ? /* @__PURE__ */ e(me, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ e(Pe, { className: "h-3 w-3" }),
1332
1356
  " ",
1333
1357
  "Save"
1334
1358
  ]
@@ -1392,43 +1416,43 @@ function lt({
1392
1416
  }
1393
1417
  }
1394
1418
  ),
1395
- /* @__PURE__ */ e(Xe, {}),
1419
+ /* @__PURE__ */ e(et, {}),
1420
+ /* @__PURE__ */ e(rt, {}),
1421
+ /* @__PURE__ */ e(bt, {}),
1396
1422
  /* @__PURE__ */ e(at, {}),
1397
- /* @__PURE__ */ e(ht, {}),
1398
- /* @__PURE__ */ e(tt, {}),
1399
1423
  /* @__PURE__ */ e($e, {}),
1400
1424
  /* @__PURE__ */ e(Ue, {}),
1401
- o.isAdmin && (n != null && n.id) ? /* @__PURE__ */ e(Ge, { userId: String(n.id) }) : /* @__PURE__ */ e(rt, {}),
1402
- /* @__PURE__ */ e(ct, {}),
1425
+ o.isAdmin && (n != null && n.id) ? /* @__PURE__ */ e(Ge, { userId: String(n.id) }) : /* @__PURE__ */ e(nt, {}),
1426
+ /* @__PURE__ */ e(ut, {}),
1403
1427
  /* @__PURE__ */ e(Ye, { userId: "me" }),
1404
1428
  /* @__PURE__ */ e(mt, {}),
1405
- /* @__PURE__ */ e(et, {}),
1429
+ /* @__PURE__ */ e(tt, {}),
1406
1430
  /* @__PURE__ */ e(We, {}),
1407
1431
  a !== !1 && /* @__PURE__ */ e(ze, { serviceWorkerPath: a }),
1408
- /* @__PURE__ */ e(ut, {}),
1409
- /* @__PURE__ */ e(st, {}),
1410
1432
  /* @__PURE__ */ e(pt, {}),
1411
- /* @__PURE__ */ e(dt, {}),
1412
- u
1433
+ /* @__PURE__ */ e(lt, {}),
1434
+ /* @__PURE__ */ e(ht, {}),
1435
+ /* @__PURE__ */ e(ct, {}),
1436
+ m
1413
1437
  ]
1414
1438
  }
1415
1439
  )
1416
1440
  ) : null
1417
1441
  ] });
1418
1442
  }
1419
- function ot() {
1443
+ function it() {
1420
1444
  try {
1421
1445
  return new URLSearchParams(window.location.search).get("tab") === "agents" ? "agents" : "profile";
1422
1446
  } catch {
1423
1447
  return "profile";
1424
1448
  }
1425
1449
  }
1426
- function it({
1450
+ function dt({
1427
1451
  tab: i,
1428
- onChange: u
1452
+ onChange: m
1429
1453
  }) {
1430
1454
  const a = (l) => {
1431
- u(l);
1455
+ m(l);
1432
1456
  try {
1433
1457
  const o = new URL(window.location.href);
1434
1458
  l === "agents" ? o.searchParams.set("tab", "agents") : o.searchParams.delete("tab"), window.history.replaceState(window.history.state, "", o);
@@ -1462,16 +1486,16 @@ function it({
1462
1486
  }
1463
1487
  );
1464
1488
  }
1465
- function dt() {
1466
- const i = T(), [u, a] = C(!1), { data: s = [], isLoading: l } = q({
1489
+ function ct() {
1490
+ const i = T(), [m, a] = C(!1), { data: s = [], isLoading: l } = q({
1467
1491
  queryKey: ["my-matrix-seats"],
1468
1492
  queryFn: () => i.request(F("/pipelines/my-seats")).then((c) => c.data ?? []).catch(() => []),
1469
- enabled: u,
1493
+ enabled: m,
1470
1494
  staleTime: 6e4
1471
1495
  }), o = /* @__PURE__ */ new Map();
1472
1496
  for (const c of s) {
1473
- const m = o.get(c.template_name) ?? [];
1474
- m.push(c), o.set(c.template_name, m);
1497
+ const u = o.get(c.template_name) ?? [];
1498
+ u.push(c), o.set(c.template_name, u);
1475
1499
  }
1476
1500
  return /* @__PURE__ */ t("div", { className: "rounded-lg border border-slate-200 bg-white p-4 dark:border-border dark:bg-card", children: [
1477
1501
  /* @__PURE__ */ t(
@@ -1485,14 +1509,14 @@ function dt() {
1485
1509
  /* @__PURE__ */ e("h3", { className: "text-[14px] font-semibold", children: "My approval seats" }),
1486
1510
  /* @__PURE__ */ e("p", { className: "text-[12px] text-slate-500 dark:text-muted-foreground", children: "Every owner-matrix cell you sit in — why records land in your queue." })
1487
1511
  ] }),
1488
- /* @__PURE__ */ e("span", { className: "text-slate-400", children: u ? "▾" : "▸" })
1512
+ /* @__PURE__ */ e("span", { className: "text-slate-400", children: m ? "▾" : "▸" })
1489
1513
  ]
1490
1514
  }
1491
1515
  ),
1492
- u && (l ? /* @__PURE__ */ e("p", { className: "mt-3 text-[12.5px] text-slate-400", children: "Loading…" }) : s.length === 0 ? /* @__PURE__ */ e("p", { className: "mt-3 text-[12.5px] text-slate-400", children: "You're not in any owner groups — approvals never route to you automatically." }) : /* @__PURE__ */ e("div", { className: "mt-3 space-y-3", children: [...o.entries()].map(([c, m]) => /* @__PURE__ */ t("div", { children: [
1516
+ m && (l ? /* @__PURE__ */ e("p", { className: "mt-3 text-[12.5px] text-slate-400", children: "Loading…" }) : s.length === 0 ? /* @__PURE__ */ e("p", { className: "mt-3 text-[12.5px] text-slate-400", children: "You're not in any owner groups — approvals never route to you automatically." }) : /* @__PURE__ */ e("div", { className: "mt-3 space-y-3", children: [...o.entries()].map(([c, u]) => /* @__PURE__ */ t("div", { children: [
1493
1517
  /* @__PURE__ */ e("p", { className: "text-[11px] font-semibold uppercase tracking-wide text-slate-400", children: c }),
1494
1518
  /* @__PURE__ */ t("ul", { className: "mt-1 space-y-0.5", children: [
1495
- m.slice(0, 40).map((n) => /* @__PURE__ */ t("li", { className: "text-[12.5px]", children: [
1519
+ u.slice(0, 40).map((n) => /* @__PURE__ */ t("li", { className: "text-[12.5px]", children: [
1496
1520
  /* @__PURE__ */ e("span", { className: "font-medium", children: n.state_label }),
1497
1521
  n.group_name && /* @__PURE__ */ t("span", { className: "text-slate-500 dark:text-muted-foreground", children: [
1498
1522
  " ",
@@ -1502,28 +1526,28 @@ function dt() {
1502
1526
  Array.isArray(n.filters) && n.filters.length > 0 && /* @__PURE__ */ e("span", { className: "ml-1.5 font-mono text-[10.5px] text-slate-400", children: n.filters.slice(0, 3).map((b) => `${b.field}=${String(b.value)}`).join(" · ") }),
1503
1527
  (n.is_default === !0 || n.is_default === 1) && /* @__PURE__ */ e("span", { className: "ml-1.5 rounded bg-slate-100 px-1 py-px text-[9.5px] text-slate-500 dark:bg-muted", children: "default" })
1504
1528
  ] }, n.group_id)),
1505
- m.length > 40 && /* @__PURE__ */ t("li", { className: "text-[11.5px] text-slate-400", children: [
1529
+ u.length > 40 && /* @__PURE__ */ t("li", { className: "text-[11.5px] text-slate-400", children: [
1506
1530
  "…and ",
1507
- m.length - 40,
1531
+ u.length - 40,
1508
1532
  " more"
1509
1533
  ] })
1510
1534
  ] })
1511
1535
  ] }, c)) }))
1512
1536
  ] });
1513
1537
  }
1514
- function ct() {
1515
- const i = T(), u = E(), { data: a = [] } = q({
1538
+ function ut() {
1539
+ const i = T(), m = E(), { data: a = [] } = q({
1516
1540
  queryKey: ["my-reminders"],
1517
1541
  queryFn: () => i.request(F("/reminders")).then((p) => p.data).catch(() => []),
1518
1542
  staleTime: 3e4
1519
- }), [s, l] = C(""), [o, c] = C(""), m = () => void u.invalidateQueries({ queryKey: ["my-reminders"] }), n = _({
1543
+ }), [s, l] = C(""), [o, c] = C(""), u = () => void m.invalidateQueries({ queryKey: ["my-reminders"] }), n = _({
1520
1544
  mutationFn: () => i.request(ae("/reminders", { note: s, remind_at: new Date(o).toISOString() })),
1521
1545
  onSuccess: () => {
1522
- l(""), c(""), m();
1546
+ l(""), c(""), u();
1523
1547
  }
1524
1548
  }), b = _({
1525
1549
  mutationFn: (p) => i.request(Ee(`/reminders/${p}`)),
1526
- onSuccess: m
1550
+ onSuccess: u
1527
1551
  });
1528
1552
  return /* @__PURE__ */ t("div", { className: "rounded-lg border border-slate-200 bg-white dark:border-border dark:bg-card", children: [
1529
1553
  /* @__PURE__ */ t("header", { className: "border-b border-slate-100 px-4 py-2.5 dark:border-border/60", children: [
@@ -1589,26 +1613,26 @@ function ct() {
1589
1613
  ] });
1590
1614
  }
1591
1615
  function mt() {
1592
- const i = T(), { data: u } = q({
1616
+ const i = T(), { data: m } = q({
1593
1617
  queryKey: ["my-stats"],
1594
1618
  queryFn: () => i.request(F("/users/me/stats")).then((s) => s.data).catch(() => null),
1595
1619
  staleTime: 5 * 6e4
1596
1620
  });
1597
- if (!u) return null;
1598
- const a = Math.max(1, ...u.weeks.map((s) => s.transitions + s.tasks_done + s.created));
1621
+ if (!m) return null;
1622
+ const a = Math.max(1, ...m.weeks.map((s) => s.transitions + s.tasks_done + s.created));
1599
1623
  return /* @__PURE__ */ t("div", { className: "rounded-lg border border-slate-200 bg-white dark:border-border dark:bg-card", children: [
1600
1624
  /* @__PURE__ */ t("header", { className: "flex items-center justify-between border-b border-slate-100 px-4 py-2.5 dark:border-border/60", children: [
1601
1625
  /* @__PURE__ */ t("div", { children: [
1602
1626
  /* @__PURE__ */ e("h3", { className: "text-[13px] font-semibold text-slate-800 dark:text-slate-100", children: "My activity" }),
1603
1627
  /* @__PURE__ */ e("p", { className: "mt-0.5 text-[11px] text-slate-400", children: "Last 8 weeks — just yours." })
1604
1628
  ] }),
1605
- u.streak_days > 1 && /* @__PURE__ */ t("span", { className: "rounded-full bg-nvr-cyan/10 px-2 py-0.5 text-[11px] font-medium text-nvr-navy dark:text-nvr-cyan", children: [
1606
- u.streak_days,
1629
+ m.streak_days > 1 && /* @__PURE__ */ t("span", { className: "rounded-full bg-nvr-cyan/10 px-2 py-0.5 text-[11px] font-medium text-nvr-navy dark:text-nvr-cyan", children: [
1630
+ m.streak_days,
1607
1631
  "-day streak"
1608
1632
  ] })
1609
1633
  ] }),
1610
1634
  /* @__PURE__ */ t("div", { className: "px-4 py-3", children: [
1611
- /* @__PURE__ */ e("div", { className: "flex items-end gap-1.5", style: { height: 56 }, children: u.weeks.map((s, l) => {
1635
+ /* @__PURE__ */ e("div", { className: "flex items-end gap-1.5", style: { height: 56 }, children: m.weeks.map((s, l) => {
1612
1636
  const o = s.transitions + s.tasks_done + s.created;
1613
1637
  return /* @__PURE__ */ e(
1614
1638
  "div",
@@ -1626,17 +1650,17 @@ function mt() {
1626
1650
  ] }),
1627
1651
  /* @__PURE__ */ t("div", { className: "mt-2 flex flex-wrap gap-x-4 gap-y-1 text-[11.5px] text-slate-500 dark:text-muted-foreground", children: [
1628
1652
  /* @__PURE__ */ t("span", { children: [
1629
- /* @__PURE__ */ e("b", { className: "tabular-nums text-slate-700 dark:text-slate-200", children: u.totals.transitions }),
1653
+ /* @__PURE__ */ e("b", { className: "tabular-nums text-slate-700 dark:text-slate-200", children: m.totals.transitions }),
1630
1654
  " ",
1631
1655
  "transitions"
1632
1656
  ] }),
1633
1657
  /* @__PURE__ */ t("span", { children: [
1634
- /* @__PURE__ */ e("b", { className: "tabular-nums text-slate-700 dark:text-slate-200", children: u.totals.tasks_done }),
1658
+ /* @__PURE__ */ e("b", { className: "tabular-nums text-slate-700 dark:text-slate-200", children: m.totals.tasks_done }),
1635
1659
  " ",
1636
1660
  "tasks done"
1637
1661
  ] }),
1638
1662
  /* @__PURE__ */ t("span", { children: [
1639
- /* @__PURE__ */ e("b", { className: "tabular-nums text-slate-700 dark:text-slate-200", children: u.totals.created }),
1663
+ /* @__PURE__ */ e("b", { className: "tabular-nums text-slate-700 dark:text-slate-200", children: m.totals.created }),
1640
1664
  " ",
1641
1665
  "records created"
1642
1666
  ] })
@@ -1644,15 +1668,15 @@ function mt() {
1644
1668
  ] })
1645
1669
  ] });
1646
1670
  }
1647
- function ut() {
1648
- const i = T(), u = E(), { data: a } = q({
1671
+ function pt() {
1672
+ const i = T(), m = E(), { data: a } = q({
1649
1673
  queryKey: ["my-security"],
1650
1674
  queryFn: () => i.request(F("/security/my/sessions")).then((o) => o.data).catch(() => ({ sessions: [], logins: [] })),
1651
1675
  staleTime: 3e4
1652
1676
  }), s = _({
1653
1677
  mutationFn: () => i.request(ae("/security/my/sessions/sign-out-others", {})).then((o) => o.data),
1654
1678
  onSuccess: (o) => {
1655
- u.invalidateQueries({ queryKey: ["my-security"] }), l(`Signed out ${(o == null ? void 0 : o.revoked) ?? 0} other session(s)`);
1679
+ m.invalidateQueries({ queryKey: ["my-security"] }), l(`Signed out ${(o == null ? void 0 : o.revoked) ?? 0} other session(s)`);
1656
1680
  }
1657
1681
  }), l = (o) => {
1658
1682
  try {
@@ -1716,11 +1740,11 @@ function ut() {
1716
1740
  ] })
1717
1741
  ] });
1718
1742
  }
1719
- function pt() {
1720
- const i = T(), [u, a] = C(!1), { data: s } = q({
1743
+ function ht() {
1744
+ const i = T(), [m, a] = C(!1), { data: s } = q({
1721
1745
  queryKey: ["my-permissions"],
1722
1746
  queryFn: () => i.request(F("/security/my/permissions")).then((l) => l.data),
1723
- enabled: u,
1747
+ enabled: m,
1724
1748
  staleTime: 5 * 6e4
1725
1749
  });
1726
1750
  return /* @__PURE__ */ t("div", { className: "rounded-lg border border-slate-200 bg-white dark:border-border dark:bg-card", children: [
@@ -1735,11 +1759,11 @@ function pt() {
1735
1759
  /* @__PURE__ */ e("h3", { className: "text-[13px] font-semibold text-slate-800 dark:text-slate-100", children: "What can I access?" }),
1736
1760
  /* @__PURE__ */ e("p", { className: "mt-0.5 text-[11px] text-slate-400", children: "Your role, collections, and data limits in plain language." })
1737
1761
  ] }),
1738
- /* @__PURE__ */ e("span", { className: "text-[11px] text-slate-400", children: u ? "Hide" : "Show" })
1762
+ /* @__PURE__ */ e("span", { className: "text-[11px] text-slate-400", children: m ? "Hide" : "Show" })
1739
1763
  ]
1740
1764
  }
1741
1765
  ),
1742
- u && s && /* @__PURE__ */ t("div", { className: "space-y-2 border-t border-slate-100 px-4 py-3 text-[12.5px] text-slate-600 dark:border-border/60 dark:text-slate-300", children: [
1766
+ m && s && /* @__PURE__ */ t("div", { className: "space-y-2 border-t border-slate-100 px-4 py-3 text-[12.5px] text-slate-600 dark:border-border/60 dark:text-slate-300", children: [
1743
1767
  /* @__PURE__ */ t("p", { children: [
1744
1768
  "Your role is ",
1745
1769
  /* @__PURE__ */ e("b", { children: s.role ?? "unassigned" }),
@@ -1772,17 +1796,17 @@ function pt() {
1772
1796
  ] })
1773
1797
  ] });
1774
1798
  }
1775
- function ht() {
1776
- const i = T(), u = E(), { data: a } = q({
1799
+ function bt() {
1800
+ const i = T(), m = E(), { data: a } = q({
1777
1801
  queryKey: ["nvr-profile-prefs"],
1778
- queryFn: () => i.request(F("/users/me")).then((m) => {
1802
+ queryFn: () => i.request(F("/users/me")).then((u) => {
1779
1803
  var n;
1780
- return ((n = m.data) == null ? void 0 : n.preferences) ?? {};
1804
+ return ((n = u.data) == null ? void 0 : n.preferences) ?? {};
1781
1805
  })
1782
1806
  }), s = _({
1783
- mutationFn: (m) => i.request(V("/users/me/preferences", m)),
1784
- onSuccess: (m, n) => {
1785
- u.invalidateQueries({ queryKey: ["nvr-profile-prefs"] }), le(Object.keys(n)), import("sonner").then(
1807
+ mutationFn: (u) => i.request(V("/users/me/preferences", u)),
1808
+ onSuccess: (u, n) => {
1809
+ m.invalidateQueries({ queryKey: ["nvr-profile-prefs"] }), le(Object.keys(n)), import("sonner").then(
1786
1810
  ({ toast: b }) => b.success("Saved — applied on all your open tabs and devices")
1787
1811
  );
1788
1812
  }
@@ -1790,11 +1814,11 @@ function ht() {
1790
1814
  queryKey: ["nvr-theme-accents"],
1791
1815
  queryFn: () => i.request(
1792
1816
  F("/settings")
1793
- ).then((m) => {
1817
+ ).then((u) => {
1794
1818
  var n, b;
1795
1819
  return [
1796
- { ...se, color: ((n = m.data) == null ? void 0 : n.project_color) ?? null },
1797
- ...Ke((b = m.data) == null ? void 0 : b.theme_accents)
1820
+ { ...se, color: ((n = u.data) == null ? void 0 : n.project_color) ?? null },
1821
+ ...Ke((b = u.data) == null ? void 0 : b.theme_accents)
1798
1822
  ];
1799
1823
  }).catch(() => [se, ...he]),
1800
1824
  staleTime: 5 * 6e4
@@ -1816,7 +1840,7 @@ function ht() {
1816
1840
  M,
1817
1841
  {
1818
1842
  value: String((a == null ? void 0 : a.time_display) ?? "relative"),
1819
- onChange: (m) => s.mutate({ time_display: m }),
1843
+ onChange: (u) => s.mutate({ time_display: u }),
1820
1844
  options: [
1821
1845
  { value: "relative", label: "Relative (3h ago)" },
1822
1846
  { value: "exact", label: "Exact (Aug 24, 3:12 PM)" }
@@ -1830,7 +1854,7 @@ function ht() {
1830
1854
  {
1831
1855
  type: "checkbox",
1832
1856
  checked: l.compact === !0,
1833
- onChange: (m) => s.mutate({ number_format: { ...l, compact: m.target.checked } }),
1857
+ onChange: (u) => s.mutate({ number_format: { ...l, compact: u.target.checked } }),
1834
1858
  className: "rounded"
1835
1859
  }
1836
1860
  ),
@@ -1842,7 +1866,7 @@ function ht() {
1842
1866
  "input",
1843
1867
  {
1844
1868
  defaultValue: l.locale ?? "",
1845
- onBlur: (m) => s.mutate({ number_format: { ...l, locale: m.target.value.trim() || void 0 } }),
1869
+ onBlur: (u) => s.mutate({ number_format: { ...l, locale: u.target.value.trim() || void 0 } }),
1846
1870
  placeholder: "en-US",
1847
1871
  className: "h-7 w-20 rounded-md border border-slate-200 bg-background px-1.5 text-[12px] dark:border-border"
1848
1872
  }
@@ -1854,7 +1878,7 @@ function ht() {
1854
1878
  M,
1855
1879
  {
1856
1880
  value: String((a == null ? void 0 : a.week_start) ?? "sun"),
1857
- onChange: (m) => s.mutate({ week_start: m }),
1881
+ onChange: (u) => s.mutate({ week_start: u }),
1858
1882
  options: [
1859
1883
  { value: "sun", label: "Sunday" },
1860
1884
  { value: "mon", label: "Monday" }
@@ -1864,24 +1888,24 @@ function ht() {
1864
1888
  ] }),
1865
1889
  /* @__PURE__ */ t("div", { className: "flex items-center gap-1.5", "data-theme-accent-picker": !0, children: [
1866
1890
  "Accent",
1867
- /* @__PURE__ */ e("span", { className: "flex items-center gap-1", children: o.map((m) => {
1868
- const n = m.key === "brand" && c === "brand" || m.key === c;
1891
+ /* @__PURE__ */ e("span", { className: "flex items-center gap-1", children: o.map((u) => {
1892
+ const n = u.key === "brand" && c === "brand" || u.key === c;
1869
1893
  return /* @__PURE__ */ e(
1870
1894
  "button",
1871
1895
  {
1872
1896
  type: "button",
1873
- title: m.label,
1874
- "aria-label": `Accent ${m.label}`,
1897
+ title: u.label,
1898
+ "aria-label": `Accent ${u.label}`,
1875
1899
  "aria-pressed": n,
1876
- "data-theme-accent": m.key,
1877
- onClick: () => s.mutate({ theme_accent: m.key === "brand" ? null : m.key }),
1900
+ "data-theme-accent": u.key,
1901
+ onClick: () => s.mutate({ theme_accent: u.key === "brand" ? null : u.key }),
1878
1902
  className: $(
1879
1903
  "h-5 w-5 rounded-full border-2 transition-transform",
1880
1904
  n ? "scale-110 border-slate-800 dark:border-slate-100" : "border-transparent hover:scale-105"
1881
1905
  ),
1882
- style: { background: m.color ?? "var(--nvr-cyan)" }
1906
+ style: { background: u.color ?? "var(--nvr-cyan)" }
1883
1907
  },
1884
- m.key
1908
+ u.key
1885
1909
  );
1886
1910
  }) })
1887
1911
  ] }),
@@ -1891,7 +1915,7 @@ function ht() {
1891
1915
  M,
1892
1916
  {
1893
1917
  value: String((a == null ? void 0 : a.font_size) ?? "default"),
1894
- onChange: (m) => s.mutate({ font_size: m }),
1918
+ onChange: (u) => s.mutate({ font_size: u }),
1895
1919
  options: [
1896
1920
  { value: "small", label: "Small" },
1897
1921
  { value: "default", label: "Default" },
@@ -1907,10 +1931,10 @@ function ht() {
1907
1931
  }
1908
1932
  export {
1909
1933
  Be as DelegationCard,
1910
- ht as DisplayPrefsCard,
1911
- tt as LinkAppCard,
1912
- et as NotificationRulesCard,
1913
- Xe as ProfileFieldsCard,
1914
- It as ProfileView,
1915
- at as TimezoneCard
1934
+ bt as DisplayPrefsCard,
1935
+ at as LinkAppCard,
1936
+ tt as NotificationRulesCard,
1937
+ et as ProfileFieldsCard,
1938
+ jt as ProfileView,
1939
+ rt as TimezoneCard
1916
1940
  };