@nivaro/react 0.3.48 → 0.3.50

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 (52) hide show
  1. package/dist/components/InlineGridField.js +166 -105
  2. package/dist/full.css +1 -1
  3. package/dist/hooks/useSessionRecorder.js +1 -1
  4. package/dist/index.d.ts +25 -1
  5. package/dist/shared/components/CellCopyLayer.js +81 -44
  6. package/dist/shared/components/CollectionBrowserView.js +306 -297
  7. package/dist/shared/components/DataTable.js +3 -3
  8. package/dist/shared/components/FulfilmentPill.js +98 -78
  9. package/dist/shared/components/ItemEditForm.js +4682 -4570
  10. package/dist/shared/components/NotificationSourcesCard.js +151 -147
  11. package/dist/shared/components/ProfileView.js +72 -70
  12. package/dist/shared/components/QueryTable.js +462 -333
  13. package/dist/shared/components/imports/ImportConsole.js +4 -4
  14. package/dist/shared/components/integrations/console/IntegrationsConsole.js +58 -50
  15. package/dist/shared/components/item-edit/CatalogPickerField.js +1144 -1127
  16. package/dist/shared/components/item-edit/CloneDialog.js +192 -142
  17. package/dist/shared/components/item-edit/FieldRenderer.js +127 -126
  18. package/dist/shared/components/item-edit/FieldRow.js +236 -226
  19. package/dist/shared/components/item-edit/HeaderTools.js +118 -113
  20. package/dist/shared/components/item-edit/InlineGridField.js +92 -90
  21. package/dist/shared/components/item-edit/InlineTableField.js +3091 -2942
  22. package/dist/shared/components/item-edit/MidairCollisionDialog.js +175 -0
  23. package/dist/shared/components/item-edit/PlanGrid.js +162 -162
  24. package/dist/shared/components/item-edit/PolishFields.js +169 -162
  25. package/dist/shared/components/item-edit/RelationCombobox.js +186 -181
  26. package/dist/shared/components/item-edit/SummaryPanel.js +148 -135
  27. package/dist/shared/components/item-edit/ValidationSummary.js +64 -47
  28. package/dist/shared/components/item-edit/helpers.js +181 -155
  29. package/dist/shared/components/item-edit/line-midair.js +201 -0
  30. package/dist/shared/components/item-edit/soft-rules.js +27 -0
  31. package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
  32. package/dist/shared/components/layout-editor/settings/ResolveSettings.js +65 -65
  33. package/dist/shared/components/layout-editor/settings/settings-registry.js +4 -4
  34. package/dist/shared/components/notifications/DeliveryChips.js +9 -9
  35. package/dist/shared/components/panels/ItemLockBanner.js +414 -358
  36. package/dist/shared/components/panels/PipelinePanel.js +1171 -975
  37. package/dist/shared/components/panels/RecordIntegrityBanner.js +1 -1
  38. package/dist/shared/components/panels/SlaBreachBanner.js +2 -2
  39. package/dist/shared/components/panels/TransitionRequirementsDialog.js +384 -380
  40. package/dist/shared/components/profile/PersonProfile.js +23 -21
  41. package/dist/shared/components/profile/SignedInDevices.js +126 -0
  42. package/dist/shared/components/queue/QueueItemSheet.js +38 -37
  43. package/dist/shared/components/queue/QueueWorklist.js +870 -827
  44. package/dist/shared/components/queue/column-chooser.js +21 -0
  45. package/dist/shared/components/queue/live-state-aspect.js +6 -0
  46. package/dist/shared/components/support/SupportView.js +1 -1
  47. package/dist/shared/components/ui/number-draft-input.js +93 -0
  48. package/dist/shared/components/widgets/ReviewListWidget.js +191 -166
  49. package/dist/shared/lib/edit-lock-fields.js +7 -0
  50. package/dist/shared/lib/error-hints.js +1 -0
  51. package/dist/shared/lib/reimport-visibility.js +10 -0
  52. package/package.json +1 -1
@@ -10,8 +10,8 @@ import { BRAND_ACCENT as ae, parseThemeAccents as De, DEFAULT_THEME_ACCENTS as c
10
10
  import { announceLocalPrefs as re } from "../lib/user-sync.js";
11
11
  import { cn as Q, setDisplayTimezone as Ke } from "../lib/utils.js";
12
12
  import { CustomStatusEditor as Le, activeCustomStatus as Me } from "./CustomStatusEditor.js";
13
- import { mergeNotifyRulesClient as Re, NOTIFY_RULE_CATS as je, NotificationRulesEditor as Ee } from "./notifications/NotificationRulesEditor.js";
14
- import { TestMyRules as Ie } from "./notifications/TestMyRules.js";
13
+ import { mergeNotifyRulesClient as Re, NOTIFY_RULE_CATS as Ie, NotificationRulesEditor as je } from "./notifications/NotificationRulesEditor.js";
14
+ import { TestMyRules as Ee } from "./notifications/TestMyRules.js";
15
15
  import { AgentsPanel as Qe } from "./profile/AgentsPanel.js";
16
16
  import { AiMemoryCard as Ue, AiHistoryCard as $e } from "./profile/AiMemoryCard.js";
17
17
  import { BrowserPushCard as ze } from "./profile/BrowserPushCard.js";
@@ -25,12 +25,13 @@ import { MyDefaultsCard as Ve } from "./profile/MyDefaultsCard.js";
25
25
  import { UserScopesCard as Ze } from "./profile/PersonAccess.js";
26
26
  import { PersonProfile as Xe } from "./profile/PersonProfile.js";
27
27
  import { Toggle as et, SectionCard as ne, Field as H, ConfirmButton as me } from "./profile/primitives.js";
28
+ import { SignedInDevices as tt } from "./profile/SignedInDevices.js";
28
29
  import { SimpleSelectXs as U } from "./ui/SimpleSelect.js";
29
- const tt = (s) => [s.first_name, s.last_name].filter(Boolean).join(" ") || (s.email ?? "Unknown"), at = (s) => {
30
+ const at = (s) => [s.first_name, s.last_name].filter(Boolean).join(" ") || (s.email ?? "Unknown"), rt = (s) => {
30
31
  var u, t;
31
32
  return (`${((u = s.first_name) == null ? void 0 : u[0]) ?? ""}${((t = s.last_name) == null ? void 0 : t[0]) ?? ""}` || (s.email ?? "?").slice(0, 2)).toUpperCase();
32
- }, rt = je;
33
- function nt() {
33
+ }, nt = Ie;
34
+ function st() {
34
35
  const s = A(), u = K(), { data: t = [] } = v({
35
36
  queryKey: ["nvr-profile-fields"],
36
37
  queryFn: () => s.request(T("/profile-fields/mine")).then((r) => r.data ?? []).catch(() => [])
@@ -107,7 +108,7 @@ function nt() {
107
108
  ] })
108
109
  ] });
109
110
  }
110
- function st() {
111
+ function lt() {
111
112
  var Y, W, se;
112
113
  const s = A(), u = K(), { data: t } = v({
113
114
  queryKey: ["nvr-profile-prefs"],
@@ -167,7 +168,7 @@ function st() {
167
168
  queryKey: ["nvr-noise-suggestions"],
168
169
  queryFn: () => s.request(T("/notifications/noise-suggestions")).then((n) => n.data ?? []),
169
170
  staleTime: 6e5
170
- }), [j, E] = C({}), [d, y] = C(() => {
171
+ }), [I, j] = C({}), [d, y] = C(() => {
171
172
  try {
172
173
  const n = JSON.parse(localStorage.getItem("nvr-noise-dismissed") ?? "null");
173
174
  return n && Date.now() - n.at < 30 * 864e5 ? n.cats : [];
@@ -181,11 +182,11 @@ function st() {
181
182
  localStorage.setItem("nvr-noise-dismissed", JSON.stringify({ at: Date.now(), cats: b }));
182
183
  } catch {
183
184
  }
184
- }, J = Number.isInteger(Number(t == null ? void 0 : t.digest_hour)) ? Number(t == null ? void 0 : t.digest_hour) : 7, D = (n) => `${n % 12 === 0 ? 12 : n % 12}:45 ${n < 12 ? "AM" : "PM"}`, [z, M] = C(null), I = w({
185
+ }, J = Number.isInteger(Number(t == null ? void 0 : t.digest_hour)) ? Number(t == null ? void 0 : t.digest_hour) : 7, D = (n) => `${n % 12 === 0 ? 12 : n % 12}:45 ${n < 12 ? "AM" : "PM"}`, [z, M] = C(null), E = w({
185
186
  mutationFn: () => s.request(ee("/users/me/digest-test", {})),
186
187
  onSuccess: (n) => M(n.data.note),
187
188
  onError: () => M("Test send failed — try again.")
188
- }), V = rt.some((n) => k(n.key) === "daily"), Z = ({ text: n }) => /* @__PURE__ */ e(
189
+ }), V = nt.some((n) => k(n.key) === "daily"), Z = ({ text: n }) => /* @__PURE__ */ e(
189
190
  "span",
190
191
  {
191
192
  className: "ml-1 inline-flex h-3.5 w-3.5 cursor-help items-center justify-center rounded-full border border-slate-300 text-[9px] font-semibold normal-case tracking-normal text-slate-400 dark:border-border",
@@ -219,7 +220,7 @@ function st() {
219
220
  n.message,
220
221
  " Mute them?"
221
222
  ] }),
222
- n.category in j ? /* @__PURE__ */ e(
223
+ n.category in I ? /* @__PURE__ */ e(
223
224
  "button",
224
225
  {
225
226
  type: "button",
@@ -228,9 +229,9 @@ function st() {
228
229
  $({
229
230
  matrix: {
230
231
  ...r.matrix ?? {},
231
- [n.category]: j[n.category]
232
+ [n.category]: I[n.category]
232
233
  }
233
- }), E(({ [n.category]: b, ...N }) => N);
234
+ }), j(({ [n.category]: b, ...N }) => N);
234
235
  },
235
236
  children: "Muted — undo"
236
237
  }
@@ -243,7 +244,7 @@ function st() {
243
244
  onClick: () => {
244
245
  var N;
245
246
  const b = ((N = r.matrix) == null ? void 0 : N[n.category]) ?? { inapp: !0, push: !0 };
246
- E((B) => ({ ...B, [n.category]: b })), $({
247
+ j((B) => ({ ...B, [n.category]: b })), $({
247
248
  matrix: {
248
249
  ...r.matrix ?? {},
249
250
  [n.category]: { ...b, inapp: !1, push: !1 }
@@ -304,7 +305,7 @@ function st() {
304
305
  }
305
306
  ),
306
307
  /* @__PURE__ */ e("span", { className: "text-[11px] text-slate-400", children: "plays when a notification or a direct message arrives" }),
307
- /* @__PURE__ */ e("span", { className: "ml-auto", children: /* @__PURE__ */ e(Ie, {}) })
308
+ /* @__PURE__ */ e("span", { className: "ml-auto", children: /* @__PURE__ */ e(Ee, {}) })
308
309
  ] }),
309
310
  /* @__PURE__ */ a("div", { className: "flex flex-wrap items-center gap-2 text-[12.5px] text-slate-600 dark:text-muted-foreground", children: [
310
311
  /* @__PURE__ */ e(
@@ -321,7 +322,7 @@ function st() {
321
322
  /* @__PURE__ */ e("span", { className: "text-[11px] text-slate-400", children: "toasts and sounds wait while you talk; you get one summary when you leave" })
322
323
  ] }),
323
324
  /* @__PURE__ */ e(
324
- Ee,
325
+ je,
325
326
  {
326
327
  subject: "person",
327
328
  value: r,
@@ -399,10 +400,10 @@ function st() {
399
400
  "button",
400
401
  {
401
402
  type: "button",
402
- disabled: I.isPending,
403
- onClick: () => I.mutate(),
403
+ disabled: E.isPending,
404
+ onClick: () => E.mutate(),
404
405
  className: "text-[12px] text-slate-500 underline decoration-dotted underline-offset-2 hover:text-slate-700 disabled:opacity-50 dark:text-slate-400 dark:hover:text-slate-200",
405
- children: I.isPending ? "Building…" : "Send me a test summary now"
406
+ children: E.isPending ? "Building…" : "Send me a test summary now"
406
407
  }
407
408
  ),
408
409
  z && /* @__PURE__ */ e("span", { className: "text-[11.5px] text-slate-400", children: z })
@@ -440,7 +441,7 @@ function st() {
440
441
  }
441
442
  );
442
443
  }
443
- function lt() {
444
+ function ot() {
444
445
  const s = A(), u = K(), { data: t } = v({
445
446
  queryKey: ["nvr-profile-prefs"],
446
447
  queryFn: () => s.request(T("/users/me")).then((c) => {
@@ -478,7 +479,7 @@ function lt() {
478
479
  }
479
480
  );
480
481
  }
481
- function ot() {
482
+ function it() {
482
483
  const s = A(), u = K(), [t, i] = C(""), o = (() => {
483
484
  try {
484
485
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -557,7 +558,7 @@ function ot() {
557
558
  }
558
559
  );
559
560
  }
560
- function it() {
561
+ function dt() {
561
562
  const s = A(), u = K(), { data: t } = v({
562
563
  queryKey: ["nvr-profile-scopes"],
563
564
  queryFn: () => s.request(xe()).then((o) => o.data)
@@ -573,7 +574,7 @@ function it() {
573
574
  title: "Default filters",
574
575
  hint: "Pre-selected in browsers and reports — clear anytime",
575
576
  children: /* @__PURE__ */ e("div", { className: "space-y-3", children: t.dimensions.map((o) => /* @__PURE__ */ e(
576
- dt,
577
+ ct,
577
578
  {
578
579
  dimension: o,
579
580
  selected: t.defaults[o.name] ?? [],
@@ -585,7 +586,7 @@ function it() {
585
586
  }
586
587
  );
587
588
  }
588
- function dt({
589
+ function ct({
589
590
  dimension: s,
590
591
  selected: u,
591
592
  restricted: t,
@@ -641,7 +642,7 @@ function dt({
641
642
  const L = (d) => {
642
643
  const y = F.has(String(d));
643
644
  i(y ? u.filter((P) => String(P) !== String(d)) : [...u, d]);
644
- }, x = c.trim().toLowerCase(), R = x ? k.filter((d) => d.label.toLowerCase().includes(x)) : k, j = x.length === 0 ? k.slice(0, 30) : O && _.length === 0 ? R.slice(0, 30) : _, E = f && (r || x.length > 0);
645
+ }, x = c.trim().toLowerCase(), R = x ? k.filter((d) => d.label.toLowerCase().includes(x)) : k, I = x.length === 0 ? k.slice(0, 30) : O && _.length === 0 ? R.slice(0, 30) : _, j = f && (r || x.length > 0);
645
646
  return /* @__PURE__ */ a("div", { children: [
646
647
  /* @__PURE__ */ a("p", { className: "mb-1 text-[11px] font-medium uppercase tracking-wide text-slate-400", children: [
647
648
  s.label,
@@ -691,13 +692,13 @@ function dt({
691
692
  className: "h-8 w-full rounded-md border border-slate-200 bg-white px-2.5 text-[12px] outline-none focus:border-nvr-cyan dark:border-border dark:bg-card"
692
693
  }
693
694
  ),
694
- E && /* @__PURE__ */ a(
695
+ j && /* @__PURE__ */ a(
695
696
  "div",
696
697
  {
697
698
  onMouseDown: (d) => d.preventDefault(),
698
699
  className: "mt-1 max-h-44 overflow-y-auto rounded-md border border-slate-200 dark:border-border",
699
700
  children: [
700
- j.map((d) => {
701
+ I.map((d) => {
701
702
  const y = F.has(String(d.id));
702
703
  return /* @__PURE__ */ a(
703
704
  "button",
@@ -716,12 +717,12 @@ function dt({
716
717
  String(d.id)
717
718
  );
718
719
  }),
719
- j.length === 0 && /* @__PURE__ */ e("p", { className: "px-2.5 py-2 text-[11.5px] text-slate-400", children: O ? "Searching…" : x ? "No matches." : "No options." }),
720
+ I.length === 0 && /* @__PURE__ */ e("p", { className: "px-2.5 py-2 text-[11.5px] text-slate-400", children: O ? "Searching…" : x ? "No matches." : "No options." }),
720
721
  x.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." })
721
722
  ]
722
723
  }
723
724
  ),
724
- !E && 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." })
725
+ !j && 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." })
725
726
  ] }) : /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-1", children: [
726
727
  k.map((d) => {
727
728
  const y = F.has(String(d.id));
@@ -743,7 +744,7 @@ function dt({
743
744
  ] })
744
745
  ] });
745
746
  }
746
- function ct() {
747
+ function mt() {
747
748
  const { data: s } = v({
748
749
  queryKey: ["nvr-settings-2fa"],
749
750
  queryFn: () => t.request({ _method: "GET", _path: "/settings/" }).then((g) => (g == null ? void 0 : g.data) ?? null).catch(() => null),
@@ -925,7 +926,7 @@ function ct() {
925
926
  }
926
927
  );
927
928
  }
928
- function Wt({
929
+ function Jt({
929
930
  userId: s,
930
931
  className: u,
931
932
  initialTab: t,
@@ -933,14 +934,14 @@ function Wt({
933
934
  pushServiceWorker: o = "/sw.js"
934
935
  }) {
935
936
  const l = pe();
936
- return !s || (l == null ? void 0 : l.userId) != null && String(l.userId) === String(s) ? /* @__PURE__ */ e(mt, { className: u, extra: i, pushServiceWorker: o }) : /* @__PURE__ */ e(Xe, { userId: s, className: u, initialTab: t });
937
+ return !s || (l == null ? void 0 : l.userId) != null && String(l.userId) === String(s) ? /* @__PURE__ */ e(ut, { className: u, extra: i, pushServiceWorker: o }) : /* @__PURE__ */ e(Xe, { userId: s, className: u, initialTab: t });
937
938
  }
938
- function mt({
939
+ function ut({
939
940
  className: s,
940
941
  extra: u,
941
942
  pushServiceWorker: t
942
943
  }) {
943
- var E;
944
+ var j;
944
945
  const i = A(), o = K(), l = pe(), c = !0, m = "me", { data: r } = v({
945
946
  queryKey: ["nvr-profile-user", m],
946
947
  queryFn: () => i.request(he(m)).then((d) => d.data),
@@ -963,18 +964,18 @@ function mt({
963
964
  onSuccess: () => {
964
965
  k(null), o.invalidateQueries({ queryKey: ["nvr-profile-user"] }), o.invalidateQueries({ queryKey: ["nvr-profile-card"] });
965
966
  }
966
- }), [q, g] = C(ut), $ = ue(null), L = w({
967
+ }), [q, g] = C(pt), $ = ue(null), L = w({
967
968
  mutationFn: async (d) => {
968
969
  const y = await new Promise((P, J) => {
969
970
  const D = new Image(), z = URL.createObjectURL(d);
970
971
  D.onload = () => {
971
972
  URL.revokeObjectURL(z);
972
- const M = 96, I = document.createElement("canvas");
973
- I.width = M, I.height = M;
974
- const V = I.getContext("2d");
973
+ const M = 96, E = document.createElement("canvas");
974
+ E.width = M, E.height = M;
975
+ const V = E.getContext("2d");
975
976
  if (!V) return J(new Error("canvas unavailable"));
976
977
  const Z = Math.max(M / D.width, M / D.height), Y = D.width * Z, W = D.height * Z;
977
- V.drawImage(D, (M - Y) / 2, (M - W) / 2, Y, W), P(I.toDataURL("image/jpeg", 0.85));
978
+ V.drawImage(D, (M - Y) / 2, (M - W) / 2, Y, W), P(E.toDataURL("image/jpeg", 0.85));
978
979
  }, D.onerror = () => {
979
980
  URL.revokeObjectURL(z), J(new Error("not an image"));
980
981
  }, D.src = z;
@@ -1000,7 +1001,7 @@ function mt({
1000
1001
  /* @__PURE__ */ e("div", { className: "h-64 rounded-lg border border-slate-200 bg-white dark:border-border dark:bg-card" })
1001
1002
  ] })
1002
1003
  ] });
1003
- const R = (r == null ? void 0 : r.avatar) ?? null, j = x.status === "active";
1004
+ const R = (r == null ? void 0 : r.avatar) ?? null, I = x.status === "active";
1004
1005
  return /* @__PURE__ */ a("div", { className: Q("flex flex-col gap-4", s), "data-nvr-profile": !0, children: [
1005
1006
  /* @__PURE__ */ e("div", { className: "rounded-lg border border-slate-200 bg-white dark:border-border dark:bg-card", children: /* @__PURE__ */ a("div", { className: "flex flex-wrap items-center gap-x-5 gap-y-4 p-5", children: [
1006
1007
  /* @__PURE__ */ a("div", { className: "relative", children: [
@@ -1011,15 +1012,15 @@ function mt({
1011
1012
  alt: "",
1012
1013
  className: "h-[76px] w-[76px] rounded-full border border-slate-200 object-cover dark:border-border"
1013
1014
  }
1014
- ) : /* @__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: at(x) }),
1015
+ ) : /* @__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: rt(x) }),
1015
1016
  /* @__PURE__ */ e(
1016
1017
  "span",
1017
1018
  {
1018
1019
  className: Q(
1019
1020
  "absolute bottom-0.5 right-0.5 h-3 w-3 rounded-full border-2 border-white dark:border-card",
1020
- j ? "bg-emerald-500" : "bg-slate-300 dark:bg-slate-600"
1021
+ I ? "bg-emerald-500" : "bg-slate-300 dark:bg-slate-600"
1021
1022
  ),
1022
- title: j ? "Active" : x.status
1023
+ title: I ? "Active" : x.status
1023
1024
  }
1024
1025
  ),
1025
1026
  /* @__PURE__ */ a(X, { children: [
@@ -1055,7 +1056,7 @@ function mt({
1055
1056
  ] }),
1056
1057
  /* @__PURE__ */ a("div", { className: "min-w-0 flex-1", children: [
1057
1058
  /* @__PURE__ */ a("div", { className: "flex flex-wrap items-center gap-2", children: [
1058
- /* @__PURE__ */ e("h1", { className: "text-[21px] font-semibold tracking-[-0.015em] text-slate-900 dark:text-white", children: tt(x) }),
1059
+ /* @__PURE__ */ e("h1", { className: "text-[21px] font-semibold tracking-[-0.015em] text-slate-900 dark:text-white", children: at(x) }),
1059
1060
  x.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: x.role_name }),
1060
1061
  x.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" }),
1061
1062
  /* @__PURE__ */ e(He, { email: x.email, canClear: l.isAdmin })
@@ -1066,7 +1067,7 @@ function mt({
1066
1067
  Le,
1067
1068
  {
1068
1069
  status: Me(
1069
- (E = r.preferences) == null ? void 0 : E.custom_status
1070
+ (j = r.preferences) == null ? void 0 : j.custom_status
1070
1071
  ),
1071
1072
  showExpiry: !0,
1072
1073
  className: "mt-1.5"
@@ -1113,7 +1114,7 @@ function mt({
1113
1114
  ] })
1114
1115
  ] })
1115
1116
  ] }) }),
1116
- /* @__PURE__ */ e(pt, { tab: q, onChange: g }),
1117
+ /* @__PURE__ */ e(ht, { tab: q, onChange: g }),
1117
1118
  q === "agents" ? /* @__PURE__ */ e(Qe, {}) : q === "did" && r ? (
1118
1119
  // #13 — your own audit trail, by day and collection.
1119
1120
  /* @__PURE__ */ e(Ye, { userId: String(r.id), name: null })
@@ -1220,24 +1221,25 @@ function mt({
1220
1221
  }
1221
1222
  }
1222
1223
  ),
1223
- /* @__PURE__ */ e(nt, {}),
1224
- /* @__PURE__ */ e(ot, {}),
1225
- /* @__PURE__ */ e(yt, {}),
1224
+ /* @__PURE__ */ e(st, {}),
1225
+ /* @__PURE__ */ e(it, {}),
1226
+ /* @__PURE__ */ e(vt, {}),
1226
1227
  /* @__PURE__ */ e(Ve, {}),
1227
- /* @__PURE__ */ e(lt, {}),
1228
+ /* @__PURE__ */ e(ot, {}),
1228
1229
  /* @__PURE__ */ e(Ue, {}),
1229
1230
  /* @__PURE__ */ e($e, {}),
1230
- l.isAdmin && (r != null && r.id) ? /* @__PURE__ */ e(Ze, { userId: String(r.id) }) : /* @__PURE__ */ e(it, {}),
1231
- /* @__PURE__ */ e(bt, {}),
1232
- /* @__PURE__ */ e(We, { userId: "me" }),
1231
+ l.isAdmin && (r != null && r.id) ? /* @__PURE__ */ e(Ze, { userId: String(r.id) }) : /* @__PURE__ */ e(dt, {}),
1233
1232
  /* @__PURE__ */ e(xt, {}),
1234
- /* @__PURE__ */ e(st, {}),
1233
+ /* @__PURE__ */ e(We, { userId: "me" }),
1234
+ /* @__PURE__ */ e(gt, {}),
1235
+ /* @__PURE__ */ e(lt, {}),
1235
1236
  /* @__PURE__ */ e(Je, {}),
1236
1237
  t !== !1 && /* @__PURE__ */ e(ze, { serviceWorkerPath: t }),
1237
- /* @__PURE__ */ e(gt, {}),
1238
- /* @__PURE__ */ e(ct, {}),
1239
1238
  /* @__PURE__ */ e(ft, {}),
1240
- /* @__PURE__ */ e(ht, {}),
1239
+ /* @__PURE__ */ e(tt, {}),
1240
+ /* @__PURE__ */ e(mt, {}),
1241
+ /* @__PURE__ */ e(yt, {}),
1242
+ /* @__PURE__ */ e(bt, {}),
1241
1243
  u
1242
1244
  ]
1243
1245
  }
@@ -1245,7 +1247,7 @@ function mt({
1245
1247
  ) : null
1246
1248
  ] });
1247
1249
  }
1248
- function ut() {
1250
+ function pt() {
1249
1251
  try {
1250
1252
  const s = new URLSearchParams(window.location.search).get("tab");
1251
1253
  return s === "agents" || s === "did" ? s : "profile";
@@ -1253,7 +1255,7 @@ function ut() {
1253
1255
  return "profile";
1254
1256
  }
1255
1257
  }
1256
- function pt({
1258
+ function ht({
1257
1259
  tab: s,
1258
1260
  onChange: u
1259
1261
  }) {
@@ -1293,7 +1295,7 @@ function pt({
1293
1295
  }
1294
1296
  );
1295
1297
  }
1296
- function ht() {
1298
+ function bt() {
1297
1299
  const s = A(), [u, t] = C(!1), { data: i = [], isLoading: o } = v({
1298
1300
  queryKey: ["my-matrix-seats"],
1299
1301
  queryFn: () => s.request(T("/pipelines/my-seats")).then((c) => c.data ?? []).catch(() => []),
@@ -1357,7 +1359,7 @@ function ht() {
1357
1359
  ] }, c)) }))
1358
1360
  ] });
1359
1361
  }
1360
- function bt() {
1362
+ function xt() {
1361
1363
  const s = A(), u = K(), { data: t = [] } = v({
1362
1364
  queryKey: ["my-reminders"],
1363
1365
  queryFn: () => s.request(T("/reminders")).then((p) => p.data).catch(() => []),
@@ -1434,7 +1436,7 @@ function bt() {
1434
1436
  ] })
1435
1437
  ] });
1436
1438
  }
1437
- function xt() {
1439
+ function gt() {
1438
1440
  const s = A(), { data: u } = v({
1439
1441
  queryKey: ["my-stats"],
1440
1442
  queryFn: () => s.request(T("/users/me/stats")).then((i) => i.data).catch(() => null),
@@ -1490,7 +1492,7 @@ function xt() {
1490
1492
  ] })
1491
1493
  ] });
1492
1494
  }
1493
- function gt() {
1495
+ function ft() {
1494
1496
  const s = A(), u = K(), { data: t } = v({
1495
1497
  queryKey: ["my-security"],
1496
1498
  queryFn: () => s.request(T("/security/my/sessions")).then((l) => l.data).catch(() => ({ sessions: [], logins: [] })),
@@ -1568,7 +1570,7 @@ function gt() {
1568
1570
  ] })
1569
1571
  ] });
1570
1572
  }
1571
- function ft() {
1573
+ function yt() {
1572
1574
  const s = A(), [u, t] = C(!1), { data: i } = v({
1573
1575
  queryKey: ["my-permissions"],
1574
1576
  queryFn: () => s.request(T("/security/my/permissions")).then((o) => o.data),
@@ -1624,7 +1626,7 @@ function ft() {
1624
1626
  ] })
1625
1627
  ] });
1626
1628
  }
1627
- function yt() {
1629
+ function vt() {
1628
1630
  const s = A(), u = K(), { data: t } = v({
1629
1631
  queryKey: ["nvr-profile-prefs"],
1630
1632
  queryFn: () => s.request(T("/users/me")).then((m) => {
@@ -1759,10 +1761,10 @@ function yt() {
1759
1761
  }
1760
1762
  export {
1761
1763
  Be as DelegationCard,
1762
- yt as DisplayPrefsCard,
1763
- lt as LinkAppCard,
1764
- st as NotificationRulesCard,
1765
- nt as ProfileFieldsCard,
1766
- Wt as ProfileView,
1767
- ot as TimezoneCard
1764
+ vt as DisplayPrefsCard,
1765
+ ot as LinkAppCard,
1766
+ lt as NotificationRulesCard,
1767
+ st as ProfileFieldsCard,
1768
+ Jt as ProfileView,
1769
+ it as TimezoneCard
1768
1770
  };