@nivaro/react 0.3.66 → 0.3.68
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +836 -835
- package/dist/shared/components/ActivityEntry.js +28 -28
- package/dist/shared/components/CollectionBrowserView.js +584 -585
- package/dist/shared/components/ConformanceView.js +34 -34
- package/dist/shared/components/ItemEditForm.js +1758 -1758
- package/dist/shared/components/RecordCompare.js +149 -129
- package/dist/shared/components/ReportView.js +196 -196
- package/dist/shared/components/SlaRulesView.js +36 -36
- package/dist/shared/components/bulk/BulkCompareButton.js +16 -16
- package/dist/shared/components/chat/ChatPanel.js +484 -487
- package/dist/shared/components/chat/ChatViews.js +66 -66
- package/dist/shared/components/chat/RoomParts.js +159 -157
- package/dist/shared/components/help-videos/editor/StatsTab.js +48 -47
- package/dist/shared/components/help-videos/editor/VersionsTab.js +17 -16
- package/dist/shared/components/imports/CollectionImportPanel.js +72 -72
- package/dist/shared/components/integrations/IntegrationObligationsView.js +199 -187
- package/dist/shared/components/integrations/console/EventsView.js +22 -24
- package/dist/shared/components/integrations/console/SubmissionRow.js +6 -13
- package/dist/shared/components/integrations/console/drill/SubmissionDrill.js +29 -28
- package/dist/shared/components/integrations/console/tone.js +22 -21
- package/dist/shared/components/item-edit/FieldRow.js +188 -188
- package/dist/shared/components/item-edit/FilePickerField.js +281 -297
- package/dist/shared/components/item-edit/GroupSection.js +209 -209
- package/dist/shared/components/item-edit/RecordInsights.js +101 -101
- package/dist/shared/components/item-edit/SummaryPanel.js +31 -31
- package/dist/shared/components/layout-editor/assist/ExplainDiff.js +12 -12
- package/dist/shared/components/panels/AddendumPanel.js +409 -411
- package/dist/shared/components/panels/BranchLanes.js +7 -7
- package/dist/shared/components/panels/CommentPanel.js +204 -197
- package/dist/shared/components/panels/PipelinePanel.js +264 -264
- package/dist/shared/components/panels/RecordIntegrityBanner.js +78 -78
- package/dist/shared/components/panels/RevisionsPanel.js +229 -229
- package/dist/shared/components/panels/TaskPanel.js +75 -75
- package/dist/shared/components/queue/QueueWorklist.js +591 -589
- package/dist/shared/lib/compare-value.js +73 -0
- package/dist/shared/lib/format-value.js +18 -17
- package/dist/shared/lib/utils.js +87 -80
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as d, jsx as
|
|
2
|
-
import { useQuery as
|
|
1
|
+
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery as S, useQueryClient as Z, useMutation as I } from "@tanstack/react-query";
|
|
3
3
|
import { useState as f, useMemo as J, useEffect as ee } from "react";
|
|
4
4
|
import { useNivaroClient as W } from "../../context.js";
|
|
5
5
|
import { get as G, post as q } from "../../lib/commands.js";
|
|
6
6
|
import { useAfterIdle as te } from "../../lib/defer.js";
|
|
7
|
-
import { formatRelative as ne, cn as
|
|
8
|
-
function
|
|
9
|
-
const u = W(), { data: i } =
|
|
10
|
-
queryKey: ["record-integrity",
|
|
7
|
+
import { formatRelative as re, formatDateTime as ne, cn as K, titleCase as ae } from "../../lib/utils.js";
|
|
8
|
+
function ie(r, t, a = !0) {
|
|
9
|
+
const u = W(), { data: i } = S({
|
|
10
|
+
queryKey: ["record-integrity", r, t],
|
|
11
11
|
enabled: a,
|
|
12
12
|
queryFn: () => u.request(
|
|
13
|
-
G(`/config-conformance/record/${
|
|
13
|
+
G(`/config-conformance/record/${r}/${encodeURIComponent(t)}`)
|
|
14
14
|
).then((p) => p.data).catch(() => ({ enabled: !1, findings: [] })),
|
|
15
15
|
staleTime: 5 * 6e4
|
|
16
|
-
}), g = te(2e3), { data: b, isFetching: m } =
|
|
17
|
-
queryKey: ["record-integrity",
|
|
16
|
+
}), g = te(2e3), { data: b, isFetching: m } = S({
|
|
17
|
+
queryKey: ["record-integrity", r, t, "live"],
|
|
18
18
|
enabled: a && g,
|
|
19
19
|
queryFn: () => u.request(
|
|
20
|
-
q(`/config-conformance/record/${
|
|
20
|
+
q(`/config-conformance/record/${r}/${encodeURIComponent(t)}/check`, {})
|
|
21
21
|
).then((p) => p.data).catch(() => null),
|
|
22
22
|
staleTime: 6e4,
|
|
23
23
|
// Never spin the banner on a background refetch storm — one live check per
|
|
@@ -26,29 +26,29 @@ function ae(n, t, a = !0) {
|
|
|
26
26
|
});
|
|
27
27
|
return { data: b ?? i, checking: m };
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
function H(
|
|
29
|
+
const de = "nvr:own-record-writes";
|
|
30
|
+
function H(r) {
|
|
31
31
|
var a;
|
|
32
32
|
const t = [];
|
|
33
|
-
for (const u of
|
|
33
|
+
for (const u of r.writes ?? []) {
|
|
34
34
|
const i = u;
|
|
35
35
|
i && typeof i.collection == "string" && i.item_id != null && i.item_id !== "" && t.push({ collection: i.collection, id: String(i.item_id) });
|
|
36
36
|
}
|
|
37
|
-
return (a =
|
|
37
|
+
return (a = r.pick) != null && a.collection && r.pick.item_id && t.push({ collection: r.pick.collection, id: String(r.pick.item_id) }), t;
|
|
38
38
|
}
|
|
39
|
-
function Y(
|
|
40
|
-
|
|
41
|
-
new CustomEvent(
|
|
39
|
+
function Y(r) {
|
|
40
|
+
r.length === 0 || typeof window > "u" || window.dispatchEvent(
|
|
41
|
+
new CustomEvent(de, { detail: { writes: r } })
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function oe(r, t) {
|
|
45
45
|
var u;
|
|
46
|
-
const a = t == null ? void 0 : t.find((i) => i.field ===
|
|
47
|
-
return ((u = a == null ? void 0 : a.label) == null ? void 0 : u.trim()) ||
|
|
46
|
+
const a = t == null ? void 0 : t.find((i) => i.field === r);
|
|
47
|
+
return ((u = a == null ? void 0 : a.label) == null ? void 0 : u.trim()) || ae(r);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function pe(r) {
|
|
50
50
|
const t = /* @__PURE__ */ new Map();
|
|
51
|
-
for (const a of
|
|
51
|
+
for (const a of r ?? []) {
|
|
52
52
|
const u = t.get(a.field) ?? [];
|
|
53
53
|
u.push(a), t.set(a.field, u);
|
|
54
54
|
}
|
|
@@ -59,19 +59,19 @@ const z = {
|
|
|
59
59
|
medium: { dot: "bg-amber-500", text: "Likely" },
|
|
60
60
|
low: { dot: "bg-slate-400", text: "Manual" }
|
|
61
61
|
};
|
|
62
|
-
function
|
|
63
|
-
collection:
|
|
62
|
+
function he({
|
|
63
|
+
collection: r,
|
|
64
64
|
itemId: t,
|
|
65
65
|
onJumpToField: a
|
|
66
66
|
}) {
|
|
67
67
|
var R;
|
|
68
|
-
const u = W(), i = Z(), [g, b] = f(!1), [m, p] = f(null), { data: s, checking: E } =
|
|
69
|
-
queryKey: ["field-config",
|
|
70
|
-
queryFn: () => u.request(G(`/field-config/${
|
|
68
|
+
const u = W(), i = Z(), [g, b] = f(!1), [m, p] = f(null), { data: s, checking: E } = ie(r, t), { data: y } = S({
|
|
69
|
+
queryKey: ["field-config", r, null],
|
|
70
|
+
queryFn: () => u.request(G(`/field-config/${r}`)).then((l) => l.data ?? []),
|
|
71
71
|
enabled: !!((R = s == null ? void 0 : s.findings) != null && R.length),
|
|
72
72
|
staleTime: 6e4
|
|
73
73
|
}), L = () => {
|
|
74
|
-
i.invalidateQueries({ queryKey: ["record-integrity",
|
|
74
|
+
i.invalidateQueries({ queryKey: ["record-integrity", r, t] }), i.invalidateQueries({ queryKey: ["item", r, t] }), i.invalidateQueries({ queryKey: [r, t] }), i.invalidateQueries({ queryKey: ["o2m-rows"] }), i.invalidateQueries({ queryKey: ["revisions"] });
|
|
75
75
|
};
|
|
76
76
|
if (!(s != null && s.enabled) || s.findings.length === 0) return null;
|
|
77
77
|
const v = s.findings.length;
|
|
@@ -88,14 +88,14 @@ function pe({
|
|
|
88
88
|
v === 1 ? "" : "s",
|
|
89
89
|
" on this record"
|
|
90
90
|
] }),
|
|
91
|
-
s.live ? /* @__PURE__ */
|
|
91
|
+
s.live ? /* @__PURE__ */ n(
|
|
92
92
|
"span",
|
|
93
93
|
{
|
|
94
94
|
className: "text-[11px] text-amber-600/80 dark:text-amber-400/70",
|
|
95
95
|
"data-integrity-checked": "live",
|
|
96
96
|
children: "checked just now"
|
|
97
97
|
}
|
|
98
|
-
) : E ? /* @__PURE__ */
|
|
98
|
+
) : E ? /* @__PURE__ */ n(
|
|
99
99
|
"span",
|
|
100
100
|
{
|
|
101
101
|
className: "text-[11px] text-amber-600/80 dark:text-amber-400/70",
|
|
@@ -107,14 +107,14 @@ function pe({
|
|
|
107
107
|
{
|
|
108
108
|
className: "text-[11px] text-amber-600/80 dark:text-amber-400/70",
|
|
109
109
|
"data-integrity-checked": "stored",
|
|
110
|
-
title:
|
|
110
|
+
title: ne(s.checked_at),
|
|
111
111
|
children: [
|
|
112
112
|
"checked ",
|
|
113
|
-
|
|
113
|
+
re(s.checked_at)
|
|
114
114
|
]
|
|
115
115
|
}
|
|
116
116
|
) : null,
|
|
117
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ n(
|
|
118
118
|
"button",
|
|
119
119
|
{
|
|
120
120
|
type: "button",
|
|
@@ -124,25 +124,25 @@ function pe({
|
|
|
124
124
|
}
|
|
125
125
|
)
|
|
126
126
|
] }),
|
|
127
|
-
g && /* @__PURE__ */
|
|
127
|
+
g && /* @__PURE__ */ n("div", { className: "mt-1.5 space-y-1", children: s.findings.map((l, k) => /* @__PURE__ */ d("div", { children: [
|
|
128
128
|
/* @__PURE__ */ d("div", { className: "flex items-baseline gap-2 text-[12px]", children: [
|
|
129
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ n(
|
|
130
130
|
"button",
|
|
131
131
|
{
|
|
132
132
|
type: "button",
|
|
133
133
|
onClick: () => a == null ? void 0 : a(l.field),
|
|
134
134
|
"data-integrity-field": l.field,
|
|
135
135
|
className: "shrink-0 text-[11.5px] font-medium text-amber-700 underline decoration-dotted underline-offset-2 dark:text-amber-300",
|
|
136
|
-
children:
|
|
136
|
+
children: oe(l.field, y)
|
|
137
137
|
}
|
|
138
138
|
),
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
-
l.fixable && /* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ n("span", { className: "min-w-0 flex-1 text-amber-800 dark:text-amber-200/90", children: l.message }),
|
|
140
|
+
l.fixable && /* @__PURE__ */ n(
|
|
141
141
|
"button",
|
|
142
142
|
{
|
|
143
143
|
type: "button",
|
|
144
144
|
onClick: () => p((h) => h === k ? null : k),
|
|
145
|
-
className:
|
|
145
|
+
className: K(
|
|
146
146
|
"shrink-0 rounded px-2 py-0.5 text-[10.5px] font-semibold transition-colors",
|
|
147
147
|
m === k ? "bg-amber-200 text-amber-900 dark:bg-amber-400/30 dark:text-amber-100" : "bg-amber-600 text-white hover:bg-amber-700"
|
|
148
148
|
),
|
|
@@ -150,10 +150,10 @@ function pe({
|
|
|
150
150
|
}
|
|
151
151
|
)
|
|
152
152
|
] }),
|
|
153
|
-
m === k && /* @__PURE__ */
|
|
154
|
-
|
|
153
|
+
m === k && /* @__PURE__ */ n(
|
|
154
|
+
se,
|
|
155
155
|
{
|
|
156
|
-
collection:
|
|
156
|
+
collection: r,
|
|
157
157
|
itemId: t,
|
|
158
158
|
finding: l,
|
|
159
159
|
onApplied: L,
|
|
@@ -165,18 +165,18 @@ function pe({
|
|
|
165
165
|
}
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
collection:
|
|
168
|
+
function se({
|
|
169
|
+
collection: r,
|
|
170
170
|
itemId: t,
|
|
171
171
|
finding: a,
|
|
172
172
|
onApplied: u,
|
|
173
173
|
onClose: i
|
|
174
174
|
}) {
|
|
175
|
-
const g = W(), b = `/config-conformance/record/${
|
|
176
|
-
queryKey: ["integrity-proposals",
|
|
175
|
+
const g = W(), b = `/config-conformance/record/${r}/${encodeURIComponent(t)}`, m = { field: a.field, rule: a.rule, message: a.message }, { data: p, isLoading: s, error: E } = S({
|
|
176
|
+
queryKey: ["integrity-proposals", r, t, a.field, a.rule],
|
|
177
177
|
queryFn: () => g.request(q(`${b}/proposals`, m)).then((e) => e.data.proposals),
|
|
178
178
|
staleTime: 6e4
|
|
179
|
-
}), [y, L] = f([]), [v, R] = f({}), [l, k] = f(""), [h, M] = f(null), [j, D] = f(0), [
|
|
179
|
+
}), [y, L] = f([]), [v, R] = f({}), [l, k] = f(""), [h, M] = f(null), [j, D] = f(0), [T, N] = f(null), [B, X] = f(null), [_, O] = f(null), V = J(() => [...p ?? [], ...y], [p, y]);
|
|
180
180
|
ee(() => {
|
|
181
181
|
if (!h || h.undo.length === 0) return;
|
|
182
182
|
D(30);
|
|
@@ -204,7 +204,7 @@ function oe({
|
|
|
204
204
|
}), P = I({
|
|
205
205
|
mutationFn: (e) => g.request(q(`${b}/fix`, { ...m, undo: e })),
|
|
206
206
|
onSuccess: () => {
|
|
207
|
-
|
|
207
|
+
B && Y(H(B)), M({ text: "Undone.", undo: [] }), u();
|
|
208
208
|
},
|
|
209
209
|
onError: (e) => N(F(e))
|
|
210
210
|
}), Q = I({
|
|
@@ -220,11 +220,11 @@ function oe({
|
|
|
220
220
|
"data-integrity-proposals": !0,
|
|
221
221
|
className: "mt-1.5 rounded-md border border-amber-200/80 bg-white/70 px-3 py-2 dark:border-amber-500/20 dark:bg-black/20",
|
|
222
222
|
children: [
|
|
223
|
-
s && /* @__PURE__ */
|
|
224
|
-
E && /* @__PURE__ */
|
|
223
|
+
s && /* @__PURE__ */ n("p", { className: "text-[11.5px] text-slate-500 dark:text-muted-foreground", children: "Working out what would fix this…" }),
|
|
224
|
+
E && /* @__PURE__ */ n("p", { className: "text-[11.5px] text-red-600 dark:text-red-400", children: F(E) }),
|
|
225
225
|
h ? /* @__PURE__ */ d("div", { className: "flex flex-wrap items-center gap-2 text-[11.5px]", children: [
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
h.undo.length > 0 && j > 0 && /* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ n("span", { className: "font-medium text-emerald-700 dark:text-emerald-400", children: h.text }),
|
|
227
|
+
h.undo.length > 0 && j > 0 && /* @__PURE__ */ n(
|
|
228
228
|
"button",
|
|
229
229
|
{
|
|
230
230
|
type: "button",
|
|
@@ -234,7 +234,7 @@ function oe({
|
|
|
234
234
|
children: P.isPending ? "Undoing…" : `Undo (${j}s)`
|
|
235
235
|
}
|
|
236
236
|
),
|
|
237
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ n(
|
|
238
238
|
"button",
|
|
239
239
|
{
|
|
240
240
|
type: "button",
|
|
@@ -244,21 +244,21 @@ function oe({
|
|
|
244
244
|
}
|
|
245
245
|
)
|
|
246
246
|
] }) : !s && /* @__PURE__ */ d("div", { className: "space-y-1.5", children: [
|
|
247
|
-
V.length === 0 && /* @__PURE__ */
|
|
247
|
+
V.length === 0 && /* @__PURE__ */ n("p", { className: "text-[11.5px] text-slate-500 dark:text-muted-foreground", children: "Nothing on this record can derive a value — fix it by hand on the form." }),
|
|
248
248
|
V.map((e) => {
|
|
249
249
|
var C, $;
|
|
250
250
|
const c = z[e.confidence] ?? z.low, x = v[e.id], w = (e.choices ?? []).filter(
|
|
251
251
|
(o) => !l || o.label.toLowerCase().includes(l.toLowerCase())
|
|
252
252
|
);
|
|
253
|
-
return /* @__PURE__ */
|
|
253
|
+
return /* @__PURE__ */ n(
|
|
254
254
|
"div",
|
|
255
255
|
{
|
|
256
256
|
className: "rounded border border-slate-200/80 bg-white px-2.5 py-1.5 dark:border-border dark:bg-card",
|
|
257
257
|
children: /* @__PURE__ */ d("div", { className: "flex items-start gap-2", children: [
|
|
258
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ n(
|
|
259
259
|
"span",
|
|
260
260
|
{
|
|
261
|
-
className:
|
|
261
|
+
className: K("mt-1.5 h-2 w-2 shrink-0 rounded-full", c.dot),
|
|
262
262
|
title: c.text,
|
|
263
263
|
"data-tip": c.text
|
|
264
264
|
}
|
|
@@ -266,9 +266,9 @@ function oe({
|
|
|
266
266
|
/* @__PURE__ */ d("div", { className: "min-w-0 flex-1", children: [
|
|
267
267
|
/* @__PURE__ */ d("p", { className: "text-[12px] font-medium text-slate-800 dark:text-foreground", children: [
|
|
268
268
|
e.label,
|
|
269
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ n("span", { className: "ml-1.5 text-[10px] font-normal uppercase tracking-wide text-slate-400", children: e.kind === "ai" ? "AI" : c.text })
|
|
270
270
|
] }),
|
|
271
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ n("p", { className: "text-[11px] leading-snug text-slate-500 dark:text-muted-foreground", children: e.basis }),
|
|
272
272
|
e.confirm && _ === e.id && /* @__PURE__ */ d(
|
|
273
273
|
"p",
|
|
274
274
|
{
|
|
@@ -278,7 +278,7 @@ function oe({
|
|
|
278
278
|
children: [
|
|
279
279
|
e.confirm,
|
|
280
280
|
" ",
|
|
281
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ n(
|
|
282
282
|
"button",
|
|
283
283
|
{
|
|
284
284
|
type: "button",
|
|
@@ -298,10 +298,10 @@ function oe({
|
|
|
298
298
|
children: [
|
|
299
299
|
o.label,
|
|
300
300
|
": ",
|
|
301
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ n("span", { className: "line-through opacity-60", children: o.from }),
|
|
302
302
|
" ",
|
|
303
303
|
"→ ",
|
|
304
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ n("span", { className: "font-medium", children: o.to })
|
|
305
305
|
]
|
|
306
306
|
},
|
|
307
307
|
`${o.item_id}|${o.field}|${U}`
|
|
@@ -313,7 +313,7 @@ function oe({
|
|
|
313
313
|
] })
|
|
314
314
|
] }),
|
|
315
315
|
e.kind === "pick" && /* @__PURE__ */ d("div", { className: "mt-1.5", children: [
|
|
316
|
-
(((C = e.choices) == null ? void 0 : C.length) ?? 0) > 8 && /* @__PURE__ */
|
|
316
|
+
(((C = e.choices) == null ? void 0 : C.length) ?? 0) > 8 && /* @__PURE__ */ n(
|
|
317
317
|
"input",
|
|
318
318
|
{
|
|
319
319
|
value: l,
|
|
@@ -323,12 +323,12 @@ function oe({
|
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
325
|
/* @__PURE__ */ d("div", { className: "flex max-h-36 flex-wrap gap-1 overflow-y-auto", children: [
|
|
326
|
-
w.map((o) => /* @__PURE__ */
|
|
326
|
+
w.map((o) => /* @__PURE__ */ n(
|
|
327
327
|
"button",
|
|
328
328
|
{
|
|
329
329
|
type: "button",
|
|
330
330
|
onClick: () => R((U) => ({ ...U, [e.id]: o.id })),
|
|
331
|
-
className:
|
|
331
|
+
className: K(
|
|
332
332
|
"rounded border px-1.5 py-0.5 text-[11px] transition-colors",
|
|
333
333
|
x === o.id ? "border-nvr-cyan bg-nvr-cyan/10 text-slate-900 dark:text-foreground" : "border-slate-200 text-slate-700 hover:bg-muted dark:border-border dark:text-foreground"
|
|
334
334
|
),
|
|
@@ -336,11 +336,11 @@ function oe({
|
|
|
336
336
|
},
|
|
337
337
|
o.id
|
|
338
338
|
)),
|
|
339
|
-
w.length === 0 && /* @__PURE__ */
|
|
339
|
+
w.length === 0 && /* @__PURE__ */ n("span", { className: "text-[11px] text-slate-400", children: "No options match." })
|
|
340
340
|
] })
|
|
341
341
|
] })
|
|
342
342
|
] }),
|
|
343
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ n(
|
|
344
344
|
"button",
|
|
345
345
|
{
|
|
346
346
|
type: "button",
|
|
@@ -353,7 +353,7 @@ function oe({
|
|
|
353
353
|
}
|
|
354
354
|
O(null), A.mutate(e);
|
|
355
355
|
},
|
|
356
|
-
className:
|
|
356
|
+
className: K(
|
|
357
357
|
"shrink-0 rounded px-2 py-0.5 text-[10.5px] font-semibold text-white transition-colors disabled:opacity-50",
|
|
358
358
|
e.confirm && _ === e.id ? "bg-red-600 hover:bg-red-700" : e.kind === "notify" ? "bg-slate-600 hover:bg-slate-700" : "bg-nvr-cyan hover:bg-nvr-cyan-dark"
|
|
359
359
|
),
|
|
@@ -366,7 +366,7 @@ function oe({
|
|
|
366
366
|
);
|
|
367
367
|
}),
|
|
368
368
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-2 pt-0.5", children: [
|
|
369
|
-
!y.some((e) => e.kind === "ai") && /* @__PURE__ */
|
|
369
|
+
!y.some((e) => e.kind === "ai") && /* @__PURE__ */ n(
|
|
370
370
|
"button",
|
|
371
371
|
{
|
|
372
372
|
type: "button",
|
|
@@ -376,7 +376,7 @@ function oe({
|
|
|
376
376
|
children: Q.isPending ? "Asking AI…" : "Ask AI for a suggestion"
|
|
377
377
|
}
|
|
378
378
|
),
|
|
379
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ n(
|
|
380
380
|
"button",
|
|
381
381
|
{
|
|
382
382
|
type: "button",
|
|
@@ -386,22 +386,22 @@ function oe({
|
|
|
386
386
|
}
|
|
387
387
|
)
|
|
388
388
|
] }),
|
|
389
|
-
|
|
389
|
+
T && /* @__PURE__ */ n("p", { className: "text-[11px] text-red-600 dark:text-red-400", children: T })
|
|
390
390
|
] })
|
|
391
391
|
]
|
|
392
392
|
}
|
|
393
393
|
);
|
|
394
394
|
}
|
|
395
|
-
function F(
|
|
395
|
+
function F(r) {
|
|
396
396
|
var a;
|
|
397
|
-
const t =
|
|
397
|
+
const t = r;
|
|
398
398
|
return String(((a = t == null ? void 0 : t.response) == null ? void 0 : a.error) ?? (t == null ? void 0 : t.message) ?? "Request failed");
|
|
399
399
|
}
|
|
400
400
|
export {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
401
|
+
de as OWN_RECORD_WRITES_EVENT,
|
|
402
|
+
he as RecordIntegrityBanner,
|
|
403
|
+
oe as findingFieldLabel,
|
|
404
|
+
pe as integrityByField,
|
|
405
405
|
H as ownWritesOf,
|
|
406
|
-
|
|
406
|
+
ie as useRecordIntegrity
|
|
407
407
|
};
|