@nivaro/react 0.3.12 → 0.3.14
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.
- package/dist/components/slots/pipeline/OwnersSection.js +79 -75
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +50 -2
- package/dist/index.js +601 -596
- package/dist/shared/components/CollectionBrowserView.js +2373 -2298
- package/dist/shared/components/DataTable.js +347 -335
- package/dist/shared/components/ItemEditForm.js +5278 -5149
- package/dist/shared/components/ListLoadError.js +33 -0
- package/dist/shared/components/PageRenderer.js +562 -529
- package/dist/shared/components/ProfileView.js +53 -51
- package/dist/shared/components/RecordReadView.js +119 -117
- package/dist/shared/components/ReportView.js +1268 -1241
- package/dist/shared/components/cbv/export-rows.js +69 -0
- package/dist/shared/components/cbv/saved-view-risk.js +35 -0
- package/dist/shared/components/cbv/unknown-fields.js +18 -0
- package/dist/shared/components/integrations/console/AlertsView.js +27 -25
- package/dist/shared/components/integrations/console/EventsView.js +244 -209
- package/dist/shared/components/item-edit/CatalogPickerField.js +946 -878
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +84 -57
- package/dist/shared/components/item-edit/FieldAffordances.js +63 -61
- package/dist/shared/components/item-edit/FieldRow.js +195 -179
- package/dist/shared/components/item-edit/FilePickerField.js +257 -254
- package/dist/shared/components/item-edit/HeaderTools.js +139 -95
- package/dist/shared/components/item-edit/InlineTableField.js +2087 -2075
- package/dist/shared/components/item-edit/RecordLiveSync.js +196 -181
- package/dist/shared/components/item-edit/RowComments.js +1 -3
- package/dist/shared/components/item-edit/SummaryPanel.js +62 -62
- package/dist/shared/components/item-edit/UserChip.js +113 -113
- package/dist/shared/components/item-edit/file-download.js +18 -0
- package/dist/shared/components/item-edit/line-qty.js +67 -32
- package/dist/shared/components/item-edit/save-refusal.js +23 -0
- package/dist/shared/components/monitoring/TrafficMiniMap.js +9 -9
- package/dist/shared/components/panels/CommentPanel.js +30 -30
- package/dist/shared/components/panels/ItemLockBanner.js +207 -185
- package/dist/shared/components/panels/PipelinePanel.js +915 -786
- package/dist/shared/components/pipeline/PipelineEditorView.js +45 -25
- package/dist/shared/components/profile/DelegationCard.js +1 -1
- package/dist/shared/components/profile/session-actions.js +24 -24
- package/dist/shared/components/queue/QueueItemSheet.js +18 -18
- package/dist/shared/components/queue/QueueWorklist.js +517 -504
- package/dist/shared/components/ui/dropdown-menu.js +8 -7
- package/dist/shared/context.js +71 -66
- package/dist/shared/lib/draft-store.js +60 -33
- package/dist/shared/lib/leave-guard.js +38 -0
- package/dist/shared/lib/load-error.js +38 -17
- package/dist/shared/lib/summary-mode.js +25 -25
- package/dist/shared/lib/table-pins.js +23 -0
- package/dist/shared/lib/validation-rules.js +55 -51
- package/package.json +1 -1
|
@@ -6,12 +6,12 @@ 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";
|
|
8
8
|
import { playNotificationSound as pe } from "../lib/notification-sound.js";
|
|
9
|
-
import { BRAND_ACCENT as se, parseThemeAccents as
|
|
9
|
+
import { BRAND_ACCENT as se, parseThemeAccents as Ie, DEFAULT_THEME_ACCENTS as he } from "../lib/theme-accents.js";
|
|
10
10
|
import { announceLocalPrefs as le } from "../lib/user-sync.js";
|
|
11
|
-
import { cn as
|
|
12
|
-
import { CustomStatusEditor as je, activeCustomStatus as
|
|
13
|
-
import { AgentsPanel as
|
|
14
|
-
import { AiMemoryCard as
|
|
11
|
+
import { cn as R, setDisplayTimezone as Ke } from "../lib/utils.js";
|
|
12
|
+
import { CustomStatusEditor as je, activeCustomStatus as $e } from "./CustomStatusEditor.js";
|
|
13
|
+
import { AgentsPanel as Qe } from "./profile/AgentsPanel.js";
|
|
14
|
+
import { AiMemoryCard as Re, AiHistoryCard as Ue } from "./profile/AiMemoryCard.js";
|
|
15
15
|
import { BrowserPushCard as ze } from "./profile/BrowserPushCard.js";
|
|
16
16
|
import { DelegationCard as Be } from "./profile/DelegationCard.js";
|
|
17
17
|
import { MailSuppressedPill as He } from "./profile/MailSuppressedPill.js";
|
|
@@ -33,7 +33,7 @@ const Ze = (i) => [i.first_name, i.last_name].filter(Boolean).join(" ") || (i.em
|
|
|
33
33
|
{
|
|
34
34
|
key: "workflow",
|
|
35
35
|
label: "Workflow & approvals",
|
|
36
|
-
help: "A record you own or follow moves state, needs your approval, is sent back, or an approval chain reaches your step."
|
|
36
|
+
help: "A record you own or follow moves state, needs your approval, is sent back, or an approval chain reaches your step. Also support requests you work on the desk (new, assigned, replied)."
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
key: "sla",
|
|
@@ -78,7 +78,7 @@ const Ze = (i) => [i.first_name, i.last_name].filter(Boolean).join(" ") || (i.em
|
|
|
78
78
|
{
|
|
79
79
|
key: "system",
|
|
80
80
|
label: "System & digests",
|
|
81
|
-
help: "Maintenance windows, failing monitors, import results, and the daily action summary itself. Maintenance and monitor failures always email immediately."
|
|
81
|
+
help: "Maintenance windows, failing monitors, import results, updates on support requests you raised, and the daily action summary itself. Maintenance and monitor failures always email immediately."
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
key: "other",
|
|
@@ -201,11 +201,11 @@ function tt() {
|
|
|
201
201
|
}, f = (a == null ? void 0 : a.notification_sounds) ?? {}, z = (r, h) => {
|
|
202
202
|
const x = { ...f };
|
|
203
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 });
|
|
204
|
-
}, { data:
|
|
204
|
+
}, { data: K } = q({
|
|
205
205
|
queryKey: ["nvr-noise-suggestions"],
|
|
206
206
|
queryFn: () => i.request(F("/notifications/noise-suggestions")).then((r) => r.data ?? []),
|
|
207
207
|
staleTime: 6e5
|
|
208
|
-
}), [y,
|
|
208
|
+
}), [y, I] = C({}), [j, U] = C(() => {
|
|
209
209
|
try {
|
|
210
210
|
const r = JSON.parse(localStorage.getItem("nvr-noise-dismissed") ?? "null");
|
|
211
211
|
return r && Date.now() - r.at < 30 * 864e5 ? r.cats : [];
|
|
@@ -246,7 +246,7 @@ function tt() {
|
|
|
246
246
|
var g;
|
|
247
247
|
const h = ((g = s.matrix) == null ? void 0 : g[r]) ?? { inapp: !0, push: !0 }, x = { ...h };
|
|
248
248
|
h.quiet_override ? delete x.quiet_override : x.quiet_override = !0, S({ matrix: { ...s.matrix ?? {}, [r]: x } });
|
|
249
|
-
},
|
|
249
|
+
}, $ = !!(p && w), B = (r) => {
|
|
250
250
|
var x;
|
|
251
251
|
const h = {};
|
|
252
252
|
for (const g of te)
|
|
@@ -260,7 +260,7 @@ function tt() {
|
|
|
260
260
|
{ value: "instant", label: "Individual email" },
|
|
261
261
|
{ value: "daily", label: "Daily summary" },
|
|
262
262
|
{ value: "off", label: "No email" }
|
|
263
|
-
],
|
|
263
|
+
], Q = ({ text: r }) => /* @__PURE__ */ e(
|
|
264
264
|
"span",
|
|
265
265
|
{
|
|
266
266
|
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",
|
|
@@ -282,7 +282,7 @@ function tt() {
|
|
|
282
282
|
/* @__PURE__ */ e("p", { className: "mt-0.5 text-[11px] text-slate-400", children: "Per category: whether it lands in your in-app inbox, whether your browser pushes it, and how it reaches your email — each one as it happens, folded into the daily action summary, or not at all. Quiet hours pause pushes and hold emails until morning unless a category is let through them; critical alerts (SLA escalations, maintenance, monitor failures) always get through." })
|
|
283
283
|
] }),
|
|
284
284
|
/* @__PURE__ */ t("div", { className: "space-y-3 p-4", children: [
|
|
285
|
-
(
|
|
285
|
+
(K ?? []).filter((r) => !j.includes(r.category)).map((r) => /* @__PURE__ */ t(
|
|
286
286
|
"div",
|
|
287
287
|
{
|
|
288
288
|
"data-noise-suggestion": r.category,
|
|
@@ -303,7 +303,7 @@ function tt() {
|
|
|
303
303
|
...s.matrix ?? {},
|
|
304
304
|
[r.category]: y[r.category]
|
|
305
305
|
}
|
|
306
|
-
}),
|
|
306
|
+
}), I(({ [r.category]: h, ...x }) => x);
|
|
307
307
|
},
|
|
308
308
|
children: "Muted — undo"
|
|
309
309
|
}
|
|
@@ -316,7 +316,7 @@ function tt() {
|
|
|
316
316
|
onClick: () => {
|
|
317
317
|
var x;
|
|
318
318
|
const h = ((x = s.matrix) == null ? void 0 : x[r.category]) ?? { inapp: !0, push: !0 };
|
|
319
|
-
|
|
319
|
+
I((g) => ({ ...g, [r.category]: h })), S({
|
|
320
320
|
matrix: {
|
|
321
321
|
...s.matrix ?? {},
|
|
322
322
|
[r.category]: { ...h, inapp: !1, push: !1 }
|
|
@@ -432,23 +432,23 @@ function tt() {
|
|
|
432
432
|
/* @__PURE__ */ e("th", { className: "py-1 font-semibold", children: "Category" }),
|
|
433
433
|
/* @__PURE__ */ t("th", { className: "py-1 text-center font-semibold", children: [
|
|
434
434
|
"In-app",
|
|
435
|
-
/* @__PURE__ */ e(
|
|
435
|
+
/* @__PURE__ */ e(Q, { text: "The notification itself: the bell badge and your Notifications inbox in the app. Off = no row is written for this category, so nothing shows anywhere in the app." })
|
|
436
436
|
] }),
|
|
437
437
|
/* @__PURE__ */ t("th", { className: "py-1 text-center font-semibold", children: [
|
|
438
438
|
"Push",
|
|
439
|
-
/* @__PURE__ */ e(
|
|
439
|
+
/* @__PURE__ */ e(Q, { text: "A browser / device alert (the popup you get even with the tab closed) on devices where you allowed notifications. Off keeps the in-app row but stops the device alert. Quiet hours pause pushes too." })
|
|
440
440
|
] }),
|
|
441
441
|
/* @__PURE__ */ t("th", { className: "py-1 text-center font-semibold", children: [
|
|
442
442
|
"Email",
|
|
443
|
-
/* @__PURE__ */ e(
|
|
443
|
+
/* @__PURE__ */ e(Q, { text: "Individual email = one message as each event happens. Daily summary = held and delivered once a day in your action summary (deliver-at time below). No email = never emailed for this category (in-app and push are unaffected)." })
|
|
444
444
|
] }),
|
|
445
445
|
/* @__PURE__ */ t("th", { className: "py-1 text-center font-semibold", children: [
|
|
446
446
|
"Sound",
|
|
447
|
-
/* @__PURE__ */ e(
|
|
447
|
+
/* @__PURE__ */ e(Q, { text: "A different sound for this category, or none. Default follows the Sound setting above." })
|
|
448
448
|
] }),
|
|
449
449
|
/* @__PURE__ */ t("th", { className: "py-1 text-center font-semibold", children: [
|
|
450
450
|
"Quiet hours",
|
|
451
|
-
/* @__PURE__ */ e(
|
|
451
|
+
/* @__PURE__ */ e(Q, { text: "Ticked = this category still pushes and emails during your quiet hours (the in-app row always lands either way). Leave it off to have quiet hours hold this category until morning. Critical alerts always get through." })
|
|
452
452
|
] })
|
|
453
453
|
] }) }),
|
|
454
454
|
/* @__PURE__ */ e("tbody", { children: te.map((r) => {
|
|
@@ -457,7 +457,7 @@ function tt() {
|
|
|
457
457
|
return /* @__PURE__ */ t("tr", { className: "border-t border-slate-100 dark:border-border", children: [
|
|
458
458
|
/* @__PURE__ */ t("td", { className: "py-1.5 text-slate-700 dark:text-foreground", children: [
|
|
459
459
|
r.label,
|
|
460
|
-
/* @__PURE__ */ e(
|
|
460
|
+
/* @__PURE__ */ e(Q, { text: r.help })
|
|
461
461
|
] }),
|
|
462
462
|
["inapp", "push"].map((g) => /* @__PURE__ */ e("td", { className: "py-1.5 text-center", children: /* @__PURE__ */ e(
|
|
463
463
|
"input",
|
|
@@ -466,6 +466,8 @@ function tt() {
|
|
|
466
466
|
checked: h[g] !== !1,
|
|
467
467
|
onChange: () => Z(r.key, g),
|
|
468
468
|
disabled: k.isPending,
|
|
469
|
+
"aria-label": `${g === "inapp" ? "In-app" : "Push"} for ${r.label}`,
|
|
470
|
+
"data-notify-channel": `${r.key}:${g}`,
|
|
469
471
|
className: "h-3.5 w-3.5"
|
|
470
472
|
}
|
|
471
473
|
) }, g)),
|
|
@@ -500,7 +502,7 @@ function tt() {
|
|
|
500
502
|
onChange: () => W(r.key),
|
|
501
503
|
disabled: k.isPending,
|
|
502
504
|
"aria-label": `Let ${r.label} through quiet hours`,
|
|
503
|
-
title:
|
|
505
|
+
title: $ ? void 0 : "Set quiet hours above for this to matter — it is remembered either way",
|
|
504
506
|
"data-quiet-override": r.key,
|
|
505
507
|
className: "h-3.5 w-3.5"
|
|
506
508
|
}
|
|
@@ -532,11 +534,11 @@ function tt() {
|
|
|
532
534
|
/* @__PURE__ */ e("th", { className: "py-1 font-semibold", children: "Category" }),
|
|
533
535
|
/* @__PURE__ */ t("th", { className: "py-1 font-semibold", children: [
|
|
534
536
|
"Push after",
|
|
535
|
-
/* @__PURE__ */ e(
|
|
537
|
+
/* @__PURE__ */ e(Q, { text: "Still unread after this long → a browser / device push (needs a registered device; quiet hours do not apply to escalations you asked for)." })
|
|
536
538
|
] }),
|
|
537
539
|
/* @__PURE__ */ t("th", { className: "py-1 font-semibold", children: [
|
|
538
540
|
"Email after",
|
|
539
|
-
/* @__PURE__ */ e(
|
|
541
|
+
/* @__PURE__ */ e(Q, { text: "Still unread after this long → one email with the notification, regardless of the Email column above (No email still means no email at delivery time; this is the fallback)." })
|
|
540
542
|
] })
|
|
541
543
|
] }) }),
|
|
542
544
|
/* @__PURE__ */ e("tbody", { children: te.map((r) => {
|
|
@@ -703,7 +705,7 @@ function rt() {
|
|
|
703
705
|
}), u = typeof (c == null ? void 0 : c.timezone) == "string" ? c.timezone : null, n = _({
|
|
704
706
|
mutationFn: (p) => i.request(V("/users/me/preferences", { timezone: p })),
|
|
705
707
|
onSuccess: (p, w) => {
|
|
706
|
-
|
|
708
|
+
Ke(w), s(""), m.invalidateQueries({ queryKey: ["nvr-profile-prefs"] });
|
|
707
709
|
}
|
|
708
710
|
}), b = a.length > 1 ? l.filter((p) => p.toLowerCase().includes(a.toLowerCase())).slice(0, 8) : [];
|
|
709
711
|
return /* @__PURE__ */ t(
|
|
@@ -837,10 +839,10 @@ function st({
|
|
|
837
839
|
enabled: f.length > 0
|
|
838
840
|
});
|
|
839
841
|
for (const d of z) S.set(String(d.id), d.label);
|
|
840
|
-
const
|
|
842
|
+
const K = (d) => {
|
|
841
843
|
const N = P.has(String(d));
|
|
842
844
|
s(N ? m.filter((A) => String(A) !== String(d)) : [...m, d]);
|
|
843
|
-
}, y = c.trim().toLowerCase(),
|
|
845
|
+
}, y = c.trim().toLowerCase(), I = y ? k.filter((d) => d.label.toLowerCase().includes(y)) : k, j = y.length === 0 ? k.slice(0, 30) : L && O.length === 0 ? I.slice(0, 30) : O, U = v && (n || y.length > 0);
|
|
844
846
|
return /* @__PURE__ */ t("div", { children: [
|
|
845
847
|
/* @__PURE__ */ t("p", { className: "mb-1 text-[11px] font-medium uppercase tracking-wide text-slate-400", children: [
|
|
846
848
|
i.label,
|
|
@@ -869,7 +871,7 @@ function st({
|
|
|
869
871
|
"button",
|
|
870
872
|
{
|
|
871
873
|
type: "button",
|
|
872
|
-
onClick: () =>
|
|
874
|
+
onClick: () => K(d),
|
|
873
875
|
"aria-label": `Remove ${S.get(String(d)) ?? d}`,
|
|
874
876
|
className: "rounded-full px-1 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200",
|
|
875
877
|
children: "×"
|
|
@@ -902,8 +904,8 @@ function st({
|
|
|
902
904
|
"button",
|
|
903
905
|
{
|
|
904
906
|
type: "button",
|
|
905
|
-
onClick: () =>
|
|
906
|
-
className:
|
|
907
|
+
onClick: () => K(d.id),
|
|
908
|
+
className: R(
|
|
907
909
|
"flex w-full items-center justify-between px-2.5 py-1.5 text-left text-[12px] hover:bg-slate-50 dark:hover:bg-muted",
|
|
908
910
|
N ? "font-medium text-nvr-navy dark:text-nvr-cyan" : "text-slate-600 dark:text-slate-300"
|
|
909
911
|
),
|
|
@@ -928,8 +930,8 @@ function st({
|
|
|
928
930
|
"button",
|
|
929
931
|
{
|
|
930
932
|
type: "button",
|
|
931
|
-
onClick: () =>
|
|
932
|
-
className:
|
|
933
|
+
onClick: () => K(d.id),
|
|
934
|
+
className: R(
|
|
933
935
|
"rounded-full border px-2.5 py-0.5 text-[11.5px] transition-colors",
|
|
934
936
|
N ? "border-nvr-cyan bg-nvr-cyan/10 font-medium text-nvr-navy dark:text-nvr-cyan" : "border-slate-200 text-slate-500 hover:border-slate-300 dark:border-border"
|
|
935
937
|
),
|
|
@@ -994,7 +996,7 @@ function lt() {
|
|
|
994
996
|
/* @__PURE__ */ e(
|
|
995
997
|
"span",
|
|
996
998
|
{
|
|
997
|
-
className:
|
|
999
|
+
className: R(
|
|
998
1000
|
"rounded-full px-1.5 py-px text-[10px] font-semibold",
|
|
999
1001
|
p != null && p.enabled ? "bg-emerald-50 text-emerald-600 dark:bg-emerald-500/10 dark:text-emerald-400" : "bg-slate-100 text-slate-500 dark:bg-muted dark:text-slate-400"
|
|
1000
1002
|
),
|
|
@@ -1162,18 +1164,18 @@ function ot({
|
|
|
1162
1164
|
onSuccess: () => {
|
|
1163
1165
|
k(null), o.invalidateQueries({ queryKey: ["nvr-profile-user"] }), o.invalidateQueries({ queryKey: ["nvr-profile-card"] });
|
|
1164
1166
|
}
|
|
1165
|
-
}), [S, f] = C(it), z = De(null),
|
|
1167
|
+
}), [S, f] = C(it), z = De(null), K = _({
|
|
1166
1168
|
mutationFn: async (d) => {
|
|
1167
1169
|
const N = await new Promise((A, Z) => {
|
|
1168
1170
|
const D = new Image(), W = URL.createObjectURL(d);
|
|
1169
1171
|
D.onload = () => {
|
|
1170
1172
|
URL.revokeObjectURL(W);
|
|
1171
|
-
const
|
|
1172
|
-
B.width =
|
|
1173
|
+
const $ = 96, B = document.createElement("canvas");
|
|
1174
|
+
B.width = $, B.height = $;
|
|
1173
1175
|
const X = B.getContext("2d");
|
|
1174
1176
|
if (!X) return Z(new Error("canvas unavailable"));
|
|
1175
|
-
const ee = Math.max(
|
|
1176
|
-
X.drawImage(D, (
|
|
1177
|
+
const ee = Math.max($ / D.width, $ / D.height), G = D.width * ee, J = D.height * ee;
|
|
1178
|
+
X.drawImage(D, ($ - G) / 2, ($ - J) / 2, G, J), A(B.toDataURL("image/jpeg", 0.85));
|
|
1177
1179
|
}, D.onerror = () => {
|
|
1178
1180
|
URL.revokeObjectURL(W), Z(new Error("not an image"));
|
|
1179
1181
|
}, D.src = W;
|
|
@@ -1185,7 +1187,7 @@ function ot({
|
|
|
1185
1187
|
}
|
|
1186
1188
|
}), y = p ?? (n ? { ...n, role_name: null } : null);
|
|
1187
1189
|
if (!y)
|
|
1188
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1190
|
+
return /* @__PURE__ */ t("div", { className: R("flex animate-pulse flex-col gap-4", i), "aria-busy": "true", children: [
|
|
1189
1191
|
/* @__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: [
|
|
1190
1192
|
/* @__PURE__ */ e("div", { className: "h-[76px] w-[76px] rounded-full bg-slate-100 dark:bg-muted" }),
|
|
1191
1193
|
/* @__PURE__ */ t("div", { className: "flex-1 space-y-2.5", children: [
|
|
@@ -1199,14 +1201,14 @@ function ot({
|
|
|
1199
1201
|
/* @__PURE__ */ e("div", { className: "h-64 rounded-lg border border-slate-200 bg-white dark:border-border dark:bg-card" })
|
|
1200
1202
|
] })
|
|
1201
1203
|
] });
|
|
1202
|
-
const
|
|
1203
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1204
|
+
const I = (n == null ? void 0 : n.avatar) ?? null, j = y.status === "active";
|
|
1205
|
+
return /* @__PURE__ */ t("div", { className: R("flex flex-col gap-4", i), "data-nvr-profile": !0, children: [
|
|
1204
1206
|
/* @__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: [
|
|
1205
1207
|
/* @__PURE__ */ t("div", { className: "relative", children: [
|
|
1206
|
-
|
|
1208
|
+
I ? /* @__PURE__ */ e(
|
|
1207
1209
|
"img",
|
|
1208
1210
|
{
|
|
1209
|
-
src:
|
|
1211
|
+
src: I.startsWith("data:") ? I : `/api/files/${I}`,
|
|
1210
1212
|
alt: "",
|
|
1211
1213
|
className: "h-[76px] w-[76px] rounded-full border border-slate-200 object-cover dark:border-border"
|
|
1212
1214
|
}
|
|
@@ -1214,7 +1216,7 @@ function ot({
|
|
|
1214
1216
|
/* @__PURE__ */ e(
|
|
1215
1217
|
"span",
|
|
1216
1218
|
{
|
|
1217
|
-
className:
|
|
1219
|
+
className: R(
|
|
1218
1220
|
"absolute bottom-0.5 right-0.5 h-3 w-3 rounded-full border-2 border-white dark:border-card",
|
|
1219
1221
|
j ? "bg-emerald-500" : "bg-slate-300 dark:bg-slate-600"
|
|
1220
1222
|
),
|
|
@@ -1233,7 +1235,7 @@ function ot({
|
|
|
1233
1235
|
return (d = z.current) == null ? void 0 : d.click();
|
|
1234
1236
|
},
|
|
1235
1237
|
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",
|
|
1236
|
-
children:
|
|
1238
|
+
children: K.isPending ? /* @__PURE__ */ e(me, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Ne, { className: "h-3.5 w-3.5" })
|
|
1237
1239
|
}
|
|
1238
1240
|
),
|
|
1239
1241
|
/* @__PURE__ */ e(
|
|
@@ -1246,7 +1248,7 @@ function ot({
|
|
|
1246
1248
|
onChange: (d) => {
|
|
1247
1249
|
var A;
|
|
1248
1250
|
const N = (A = d.target.files) == null ? void 0 : A[0];
|
|
1249
|
-
N &&
|
|
1251
|
+
N && K.mutate(N), d.target.value = "";
|
|
1250
1252
|
}
|
|
1251
1253
|
}
|
|
1252
1254
|
)
|
|
@@ -1264,7 +1266,7 @@ function ot({
|
|
|
1264
1266
|
/* @__PURE__ */ e(
|
|
1265
1267
|
je,
|
|
1266
1268
|
{
|
|
1267
|
-
status:
|
|
1269
|
+
status: $e(
|
|
1268
1270
|
(U = n.preferences) == null ? void 0 : U.custom_status
|
|
1269
1271
|
),
|
|
1270
1272
|
showExpiry: !0,
|
|
@@ -1313,7 +1315,7 @@ function ot({
|
|
|
1313
1315
|
] })
|
|
1314
1316
|
] }) }),
|
|
1315
1317
|
/* @__PURE__ */ e(dt, { tab: S, onChange: f }),
|
|
1316
|
-
S === "agents" ? /* @__PURE__ */ e(
|
|
1318
|
+
S === "agents" ? /* @__PURE__ */ e(Qe, {}) : n ? (
|
|
1317
1319
|
// One list in reading order — you, then notifications, then access
|
|
1318
1320
|
// and security — flowing into two balanced columns. Two fixed stacks
|
|
1319
1321
|
// left thirteen cards on one side and four on the other, and the page
|
|
@@ -1420,7 +1422,7 @@ function ot({
|
|
|
1420
1422
|
/* @__PURE__ */ e(rt, {}),
|
|
1421
1423
|
/* @__PURE__ */ e(bt, {}),
|
|
1422
1424
|
/* @__PURE__ */ e(at, {}),
|
|
1423
|
-
/* @__PURE__ */ e(
|
|
1425
|
+
/* @__PURE__ */ e(Re, {}),
|
|
1424
1426
|
/* @__PURE__ */ e(Ue, {}),
|
|
1425
1427
|
l.isAdmin && (n != null && n.id) ? /* @__PURE__ */ e(Ge, { userId: String(n.id) }) : /* @__PURE__ */ e(nt, {}),
|
|
1426
1428
|
/* @__PURE__ */ e(ut, {}),
|
|
@@ -1475,7 +1477,7 @@ function dt({
|
|
|
1475
1477
|
role: "tab",
|
|
1476
1478
|
"aria-selected": i === o,
|
|
1477
1479
|
onClick: () => a(o),
|
|
1478
|
-
className:
|
|
1480
|
+
className: R(
|
|
1479
1481
|
"-mb-px border-b-2 px-3 py-2 text-[13px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/40",
|
|
1480
1482
|
i === o ? "border-nvr-cyan text-slate-900 dark:text-white" : "border-transparent text-slate-500 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-200"
|
|
1481
1483
|
),
|
|
@@ -1824,7 +1826,7 @@ function bt() {
|
|
|
1824
1826
|
var n, b;
|
|
1825
1827
|
return [
|
|
1826
1828
|
{ ...se, color: ((n = u.data) == null ? void 0 : n.project_color) ?? null },
|
|
1827
|
-
...
|
|
1829
|
+
...Ie((b = u.data) == null ? void 0 : b.theme_accents)
|
|
1828
1830
|
];
|
|
1829
1831
|
}).catch(() => [se, ...he]),
|
|
1830
1832
|
staleTime: 5 * 6e4
|
|
@@ -1905,7 +1907,7 @@ function bt() {
|
|
|
1905
1907
|
"aria-pressed": n,
|
|
1906
1908
|
"data-theme-accent": u.key,
|
|
1907
1909
|
onClick: () => s.mutate({ theme_accent: u.key === "brand" ? null : u.key }),
|
|
1908
|
-
className:
|
|
1910
|
+
className: R(
|
|
1909
1911
|
"h-5 w-5 rounded-full border-2 transition-transform",
|
|
1910
1912
|
n ? "scale-110 border-slate-800 dark:border-slate-100" : "border-transparent hover:scale-105"
|
|
1911
1913
|
),
|