@nivaro/react 0.3.9 → 0.3.11

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/fields/FileField.js +20 -19
  2. package/dist/full.css +1 -1
  3. package/dist/hooks/useNivaroForm.js +129 -126
  4. package/dist/hooks/useSessionRecorder.js +1 -1
  5. package/dist/index.d.ts +103 -4
  6. package/dist/index.js +512 -501
  7. package/dist/shared/components/CollectionBrowserView.js +1632 -1564
  8. package/dist/shared/components/ConformanceView.js +36 -35
  9. package/dist/shared/components/ForceReloadBanner.js +58 -34
  10. package/dist/shared/components/ItemEditForm.js +4386 -4142
  11. package/dist/shared/components/JsonMapEditor.js +18 -17
  12. package/dist/shared/components/MatrixEditor.js +8 -7
  13. package/dist/shared/components/MyWorkView.js +32 -31
  14. package/dist/shared/components/PageRenderer.js +527 -479
  15. package/dist/shared/components/QueryStatStrip.js +74 -70
  16. package/dist/shared/components/RecordGridEditor.js +76 -75
  17. package/dist/shared/components/ReportView.js +818 -827
  18. package/dist/shared/components/SheetHeaderBody.js +16 -14
  19. package/dist/shared/components/ai/AiMemorySuggestions.js +15 -14
  20. package/dist/shared/components/ai/AskPanel.js +55 -54
  21. package/dist/shared/components/bulk/BulkActionButtons.js +30 -29
  22. package/dist/shared/components/bulk/PushBulkButtons.js +57 -56
  23. package/dist/shared/components/chat/SlashCommands.js +30 -29
  24. package/dist/shared/components/chat/chat-outbox.js +76 -75
  25. package/dist/shared/components/help-videos/recorder/useLeaveWarning.js +6 -5
  26. package/dist/shared/components/integrations/console/SignalCard.js +124 -123
  27. package/dist/shared/components/integrations/console/SnoozeMenu.js +24 -23
  28. package/dist/shared/components/item-edit/CatalogPickerField.js +1029 -933
  29. package/dist/shared/components/item-edit/CloneDialog.js +85 -78
  30. package/dist/shared/components/item-edit/FieldRenderer.js +161 -156
  31. package/dist/shared/components/item-edit/FieldRow.js +20 -19
  32. package/dist/shared/components/item-edit/FilePickerField.js +52 -40
  33. package/dist/shared/components/item-edit/GroupSection.js +221 -221
  34. package/dist/shared/components/item-edit/InlineGridField.js +41 -41
  35. package/dist/shared/components/item-edit/InlineTableField.js +2287 -2275
  36. package/dist/shared/components/item-edit/M2MCombobox.js +46 -44
  37. package/dist/shared/components/item-edit/MembershipSetField.js +24 -23
  38. package/dist/shared/components/item-edit/NestedRelationEditor.js +11 -11
  39. package/dist/shared/components/item-edit/QuickCreateButton.js +8 -7
  40. package/dist/shared/components/item-edit/QuickPicker.js +263 -216
  41. package/dist/shared/components/item-edit/RecordLiveSync.js +101 -100
  42. package/dist/shared/components/item-edit/RelationCombobox.js +285 -245
  43. package/dist/shared/components/item-edit/RichTextEditorImpl.js +42 -32
  44. package/dist/shared/components/item-edit/RowHistorySheet.js +130 -134
  45. package/dist/shared/components/item-edit/SummaryPanel.js +305 -279
  46. package/dist/shared/components/item-edit/helpers.js +133 -134
  47. package/dist/shared/components/item-edit/line-qty.js +57 -0
  48. package/dist/shared/components/item-edit/option-disambiguate.js +53 -0
  49. package/dist/shared/components/item-edit/staged-links.js +86 -0
  50. package/dist/shared/components/layout-editor/LayoutEditor.js +275 -274
  51. package/dist/shared/components/layout-editor/editors/cascade-rule-row.js +18 -17
  52. package/dist/shared/components/layout-editor/inspector/HelpTab.js +37 -36
  53. package/dist/shared/components/layout-editor/matrix/FieldStateMatrix.js +50 -49
  54. package/dist/shared/components/panels/AddendumLinesDiff.js +87 -90
  55. package/dist/shared/components/panels/CommentPanel.js +350 -315
  56. package/dist/shared/components/panels/ItemLockBanner.js +297 -230
  57. package/dist/shared/components/panels/PipelinePanel.js +719 -701
  58. package/dist/shared/components/profile/AiMemoryCard.js +15 -14
  59. package/dist/shared/components/profile/PersonAdminTools.js +70 -67
  60. package/dist/shared/components/queue/QueueItemSheet.js +36 -35
  61. package/dist/shared/components/queue/QueueQuickFilters.js +43 -41
  62. package/dist/shared/components/queue/QueueWorklist.js +1026 -957
  63. package/dist/shared/components/widgets/ReviewListWidget.js +99 -93
  64. package/dist/shared/lib/client-version.js +63 -0
  65. package/dist/shared/lib/force-reload.js +36 -0
  66. package/dist/shared/lib/load-error.js +11 -10
  67. package/dist/shared/lib/obligation-banner.js +14 -13
  68. package/dist/shared/lib/obligation-reason-text.js +13 -0
  69. package/dist/shared/lib/presence-live.js +54 -35
  70. package/dist/shared/lib/query-filter-seed.js +34 -11
  71. package/dist/shared/lib/record-outbox.js +76 -75
  72. package/dist/shared/lib/safe-error.js +39 -0
  73. package/dist/shared/lib/sanitize-html.js +24 -15
  74. package/dist/shared/lib/server-clock.js +11 -7
  75. package/dist/shared/lib/sheet-def.js +38 -22
  76. package/dist/shared/lib/unique-options.js +10 -0
  77. package/dist/shared/lib/unsaved-work.js +62 -0
  78. package/dist/shared/lib/utils.js +57 -43
  79. package/dist/shared/lib/validation-rules.js +58 -34
  80. package/package.json +1 -1
@@ -8,8 +8,9 @@ import { get as j, post as pe } from "../../lib/commands.js";
8
8
  import { useLiveRecord as ge, useLiveEvent as X, useLiveRecordEvent as Z, LIVE_ASPECTS as b, batchTouches as ve } from "../../lib/live.js";
9
9
  import { useOptionalRealtime as xe } from "../../lib/realtime.js";
10
10
  import { useRecordTabsSignal as we, useRecordTabs as ye } from "../../lib/record-tabs.js";
11
- import { formatRelative as ke } from "../../lib/utils.js";
12
- const Ne = 8e3, Te = [
11
+ import { userErrorMessage as ke } from "../../lib/safe-error.js";
12
+ import { formatRelative as Ne } from "../../lib/utils.js";
13
+ const Te = 8e3, Se = [
13
14
  "item",
14
15
  "rrv-record",
15
16
  "revisions",
@@ -28,13 +29,13 @@ const Ne = 8e3, Te = [
28
29
  "record-integrations",
29
30
  "record-integrity"
30
31
  ];
31
- function Se(e, s, x) {
32
- const S = new Set(Te), w = String(x);
32
+ function Re(e, t, x) {
33
+ const S = new Set(Se), w = String(x);
33
34
  e.removeQueries({
34
- predicate: (m) => S.has(m.queryKey[0]) && m.queryKey[1] === s && String(m.queryKey[2]) === w
35
+ predicate: (m) => S.has(m.queryKey[0]) && m.queryKey[1] === t && String(m.queryKey[2]) === w
35
36
  });
36
37
  }
37
- function Re({ onBack: e }) {
38
+ function _e({ onBack: e }) {
38
39
  return /* @__PURE__ */ i("div", { className: "p-6", children: /* @__PURE__ */ c(
39
40
  "div",
40
41
  {
@@ -64,39 +65,39 @@ function Re({ onBack: e }) {
64
65
  }
65
66
  ) });
66
67
  }
67
- const _e = (e) => {
68
- var s;
69
- return (e == null ? void 0 : e.status) ?? ((s = e == null ? void 0 : e.response) == null ? void 0 : s.status);
68
+ const Ee = (e) => {
69
+ var t;
70
+ return (e == null ? void 0 : e.status) ?? ((t = e == null ? void 0 : e.response) == null ? void 0 : t.status);
70
71
  };
71
- function Ke({
72
+ function Be({
72
73
  collection: e,
73
- itemId: s,
74
+ itemId: t,
74
75
  dirty: x = !1,
75
76
  loadDenied: S = !1,
76
77
  onGoneChange: w
77
78
  }) {
78
- const m = xe(), R = he(), y = oe(), [$, K] = p(!1), [L, I] = p([]), [o, ee] = p(null), [re, A] = p({}), [U, B] = p(!1), [F, P] = p(!1), k = g(null), N = g(null), _ = g(Date.now()), q = g(null), E = g(w);
79
+ const m = xe(), R = he(), y = oe(), [$, K] = p(!1), [L, I] = p([]), [o, ee] = p(null), [re, A] = p({}), [U, B] = p(!1), [F, P] = p(!1), k = g(null), N = g(null), _ = g(Date.now()), M = g(null), E = g(w);
79
80
  E.current = w;
80
- const h = g(null), T = (t) => {
81
+ const h = g(null), T = (s) => {
81
82
  var r;
82
- h.current = t, ee(t), (r = E.current) == null || r.call(E, t), (t == null ? void 0 : t.kind) === "access" && setTimeout(() => Se(y, e, s), 0);
83
+ h.current = s, ee(s), (r = E.current) == null || r.call(E, s), (s == null ? void 0 : s.kind) === "access" && setTimeout(() => Re(y, e, t), 0);
83
84
  };
84
85
  v(() => {
85
- _.current = Date.now(), q.current = null, A({}), h.current && T(null);
86
- }, [e, s]);
87
- const u = (t) => {
88
- for (const r of t) y.invalidateQueries({ queryKey: r });
89
- }, C = async (t) => {
86
+ _.current = Date.now(), M.current = null, A({}), h.current && T(null);
87
+ }, [e, t]);
88
+ const u = (s) => {
89
+ for (const r of s) y.invalidateQueries({ queryKey: r });
90
+ }, q = async (s) => {
90
91
  let r = null;
91
92
  try {
92
93
  r = (await R.request(
93
- j("/trash/record", { collection: e, item: s })
94
+ j("/trash/record", { collection: e, item: t })
94
95
  )).data;
95
96
  } catch {
96
97
  r = null;
97
98
  }
98
99
  const n = !!(r != null && r.deleted_at) && new Date(r.deleted_at).getTime() >= _.current - 6e4;
99
- T(n || t === "deleted" && !r ? {
100
+ T(n || s === "deleted" && !r ? {
100
101
  kind: "deleted",
101
102
  by: (r == null ? void 0 : r.deleted_by_name) ?? null,
102
103
  at: (r == null ? void 0 : r.deleted_at) ?? (/* @__PURE__ */ new Date()).toISOString(),
@@ -104,43 +105,43 @@ function Ke({
104
105
  canRestore: !!(r != null && r.can_restore)
105
106
  } : { kind: "access" });
106
107
  }, te = async () => {
107
- var t;
108
+ var s;
108
109
  try {
109
110
  const r = (await R.request(
110
- j(`/pipelines/instance/${e}/${s}`)
111
- )).data, n = (t = r == null ? void 0 : r.history) == null ? void 0 : t[0];
112
- if (!n || n.id === q.current || n.timestamp && new Date(n.timestamp).getTime() < _.current - 5e3) return;
113
- q.current = n.id;
111
+ j(`/pipelines/instance/${e}/${t}`)
112
+ )).data, n = (s = r == null ? void 0 : r.history) == null ? void 0 : s[0];
113
+ if (!n || n.id === M.current || n.timestamp && new Date(n.timestamp).getTime() < _.current - 5e3) return;
114
+ M.current = n.id;
114
115
  const d = [n.first_name, n.last_name].filter(Boolean).join(" ") || n.user_email || null, f = n.to_state_label ?? "a new state";
115
116
  Q.info(d ? `${d} moved this to ${f}` : `This record moved to ${f}`);
116
117
  } catch {
117
118
  }
118
- }, se = (t) => {
119
+ }, se = (s) => {
119
120
  var n;
120
- if (t.deleted) {
121
- C("deleted");
121
+ if (s.deleted) {
122
+ q("deleted");
122
123
  return;
123
124
  }
124
125
  if (h.current) return;
125
- t.events.some((d) => d.source === "import" && !d.own) && (P(!0), k.current && clearTimeout(k.current), k.current = setTimeout(() => P(!1), Ne));
126
- const r = (d) => ve(t, d);
126
+ s.events.some((d) => d.source === "import" && !d.own) && (P(!0), k.current && clearTimeout(k.current), k.current = setTimeout(() => P(!1), Te));
127
+ const r = (d) => ve(s, d);
127
128
  if (r(b.state) && (u([
128
- ["pipeline-instance", e, s],
129
- ["pipeline-all-owners", e, s],
130
- ["pipeline-instance-owners", e, s],
131
- ["pipeline-owners-resolved", e, s],
132
- ["approval-brief", e, s]
133
- ]), (n = t.changedFields) != null && n.includes(b.state) && te()), r(b.addendums) && u([["addendums", e, s]]), r(b.comments) ? u([
134
- ["comments", e, s],
135
- ["comments-related", e, s]
136
- ]) : (r(b.state) || r(b.integrations) || r(b.addendums) || !t.aspectsOnly) && u([["comments-related", e, s]]), r(b.tasks) && u([["tasks", e, s]]), r(b.integrations) && u([
137
- ["erp-submissions", e, s],
138
- ["record-integrations", e, s]
139
- ]), !t.aspectsOnly) {
140
- if (t.ids.length > 0 && t.ids.every((d) => d === "*")) {
129
+ ["pipeline-instance", e, t],
130
+ ["pipeline-all-owners", e, t],
131
+ ["pipeline-instance-owners", e, t],
132
+ ["pipeline-owners-resolved", e, t],
133
+ ["approval-brief", e, t]
134
+ ]), (n = s.changedFields) != null && n.includes(b.state) && te()), r(b.addendums) && u([["addendums", e, t]]), r(b.comments) ? u([
135
+ ["comments", e, t],
136
+ ["comments-related", e, t]
137
+ ]) : (r(b.state) || r(b.integrations) || r(b.addendums) || !s.aspectsOnly) && u([["comments-related", e, t]]), r(b.tasks) && u([["tasks", e, t]]), r(b.integrations) && u([
138
+ ["erp-submissions", e, t],
139
+ ["record-integrations", e, t]
140
+ ]), !s.aspectsOnly) {
141
+ if (s.ids.length > 0 && s.ids.every((d) => d === "*")) {
141
142
  u([
142
- ["item", e, s],
143
- ["pipeline-instance", e, s]
143
+ ["item", e, t],
144
+ ["pipeline-instance", e, t]
144
145
  ]);
145
146
  return;
146
147
  }
@@ -148,22 +149,22 @@ function Ke({
148
149
  }
149
150
  }, Y = () => {
150
151
  u([
151
- ["item", e, s],
152
+ ["item", e, t],
152
153
  // Summary mode reads its own copy (#1869) — it diffs + highlights.
153
- ["rrv-record", e, s],
154
- ["field-touch", e, s],
155
- ["revisions", e, s],
154
+ ["rrv-record", e, t],
155
+ ["field-touch", e, t],
156
+ ["revisions", e, t],
156
157
  // Who made the write — the field ghosts (#2) attribute from it.
157
- ["last-touch", e, s]
158
+ ["last-touch", e, t]
158
159
  ]), K(!0), N.current && clearTimeout(N.current), N.current = setTimeout(() => K(!1), 4e3);
159
160
  };
160
- ge(e, s, se);
161
+ ge(e, t, se);
161
162
  const { userId: H } = fe();
162
- we(H, "saved", e, s, () => {
163
+ we(H, "saved", e, t, () => {
163
164
  h.current || (Y(), u([
164
- ["pipeline-instance", e, s],
165
- ["comments", e, s],
166
- ["tasks", e, s],
165
+ ["pipeline-instance", e, t],
166
+ ["comments", e, t],
167
+ ["tasks", e, t],
167
168
  // Lines and links saved with it (the keys are per relation, not per record).
168
169
  ["o2m-rows"],
169
170
  ["m2m-items"]
@@ -177,22 +178,22 @@ function Ke({
177
178
  "owners:changed",
178
179
  () => {
179
180
  h.current || u([
180
- ["pipeline-instance-owners", e, s],
181
- ["pipeline-owners-resolved", e, s],
182
- ["pipeline-all-owners", e, s],
183
- ["approval-brief", e, s]
181
+ ["pipeline-instance-owners", e, t],
182
+ ["pipeline-owners-resolved", e, t],
183
+ ["pipeline-all-owners", e, t],
184
+ ["approval-brief", e, t]
184
185
  ]);
185
186
  },
186
187
  { debounceMs: 400 }
187
188
  ), Z(
188
189
  "record:integrity",
189
190
  e,
190
- s,
191
- () => u([["record-integrity", e, s]])
191
+ t,
192
+ () => u([["record-integrity", e, t]])
192
193
  );
193
194
  const V = g(/* @__PURE__ */ new Map());
194
- Z("record:automation", e, s, (t) => {
195
- const r = String((t == null ? void 0 : t.flow_id) ?? "");
195
+ Z("record:automation", e, t, (s) => {
196
+ const r = String((s == null ? void 0 : s.flow_id) ?? "");
196
197
  if (!r) return;
197
198
  const n = V.current, d = n.get(r);
198
199
  d && clearTimeout(d), n.delete(r);
@@ -200,29 +201,29 @@ function Ke({
200
201
  const { [r]: l, ...O } = a;
201
202
  return O;
202
203
  });
203
- if ((t == null ? void 0 : t.state) === "end") {
204
+ if ((s == null ? void 0 : s.state) === "end") {
204
205
  f();
205
206
  return;
206
207
  }
207
- A((a) => ({ ...a, [r]: String((t == null ? void 0 : t.flow_name) || "An automation") })), n.set(r, setTimeout(f, 5 * 6e4));
208
+ A((a) => ({ ...a, [r]: String((s == null ? void 0 : s.flow_name) || "An automation") })), n.set(r, setTimeout(f, 5 * 6e4));
208
209
  }), v(() => {
209
- const t = V.current;
210
+ const s = V.current;
210
211
  return () => {
211
- for (const r of t.values()) clearTimeout(r);
212
- t.clear();
212
+ for (const r of s.values()) clearTimeout(r);
213
+ s.clear();
213
214
  };
214
215
  }, []), X(
215
216
  "access:changed",
216
217
  () => {
217
218
  setTimeout(
218
219
  () => {
219
- var t;
220
- ((t = h.current) == null ? void 0 : t.kind) !== "deleted" && R.request(j(`/items/${e}/${s}`, { fields: "id" })).then(() => {
220
+ var s;
221
+ ((s = h.current) == null ? void 0 : s.kind) !== "deleted" && R.request(j(`/items/${e}/${t}`, { fields: "id" })).then(() => {
221
222
  var r;
222
- ((r = h.current) == null ? void 0 : r.kind) === "access" && (T(null), u([["item", e, s]]));
223
+ ((r = h.current) == null ? void 0 : r.kind) === "access" && (T(null), u([["item", e, t]]));
223
224
  }).catch((r) => {
224
- const n = _e(r);
225
- (n === 403 || n === 404) && C("access");
225
+ const n = Ee(r);
226
+ (n === 403 || n === 404) && q("access");
226
227
  });
227
228
  },
228
229
  Math.floor(Math.random() * 1500)
@@ -230,50 +231,50 @@ function Ke({
230
231
  },
231
232
  { debounceMs: 300 }
232
233
  ), v(() => {
233
- S && !h.current && C("access");
234
+ S && !h.current && q("access");
234
235
  }, [S]);
235
- const D = ye(e, s, x, H), [ae, z] = p(!1);
236
+ const D = ye(e, t, x, H), [ae, z] = p(!1);
236
237
  v(() => {
237
238
  D.otherDirty || z(!1);
238
239
  }, [D.otherDirty]), v(() => {
239
240
  if (!m) return;
240
- const t = (a) => {
241
+ const s = (a) => {
241
242
  const l = a.detail;
242
243
  l != null && l.name && m.emit("record:uploading", {
243
244
  collection: e,
244
- item: String(s),
245
+ item: String(t),
245
246
  name: l.name,
246
247
  state: l.state
247
248
  });
248
249
  };
249
- window.addEventListener("nvr:upload-state", t);
250
+ window.addEventListener("nvr:upload-state", s);
250
251
  const r = (a) => {
251
- if ((a == null ? void 0 : a.collection) !== e || String(a == null ? void 0 : a.item) !== String(s)) return;
252
+ if ((a == null ? void 0 : a.collection) !== e || String(a == null ? void 0 : a.item) !== String(t)) return;
252
253
  const l = String(a.user_name ?? a.user ?? "Someone");
253
254
  I((O) => {
254
255
  const J = O.filter((W) => !(W.user === l && W.name === a.name));
255
256
  return a.state === "start" ? [...J, { user: l, name: String(a.name) }] : J;
256
257
  });
257
258
  }, n = m.on("record:uploading", r), d = m.on("record:comment", (a) => {
258
- (a == null ? void 0 : a.collection) !== e || String(a == null ? void 0 : a.item) !== String(s) || (y.invalidateQueries({ queryKey: ["comments", e, s] }), y.invalidateQueries({ queryKey: ["comments-related", e, s] }));
259
+ (a == null ? void 0 : a.collection) !== e || String(a == null ? void 0 : a.item) !== String(t) || (y.invalidateQueries({ queryKey: ["comments", e, t] }), y.invalidateQueries({ queryKey: ["comments-related", e, t] }));
259
260
  }), f = (a) => r(a.detail);
260
261
  return window.addEventListener("nvr:record-uploading", f), () => {
261
- window.removeEventListener("nvr:upload-state", t), window.removeEventListener("nvr:record-uploading", f), n(), d();
262
+ window.removeEventListener("nvr:upload-state", s), window.removeEventListener("nvr:record-uploading", f), n(), d();
262
263
  };
263
- }, [m, e, s, y]);
264
+ }, [m, e, t, y]);
264
265
  const ne = async () => {
265
266
  if (o != null && o.trashId) {
266
267
  B(!0);
267
268
  try {
268
- await R.request(pe(`/trash/${o.trashId}/restore`, {})), T(null), _.current = Date.now(), u([["item", e, s]]), Q.success("Record restored");
269
- } catch (t) {
270
- Q.error(t instanceof Error ? t.message : "Restore failed");
269
+ await R.request(pe(`/trash/${o.trashId}/restore`, {})), T(null), _.current = Date.now(), u([["item", e, t]]), Q.success("Record restored");
270
+ } catch (s) {
271
+ Q.error(ke(s, "Restore failed"));
271
272
  } finally {
272
273
  B(!1);
273
274
  }
274
275
  }
275
- }, M = Object.values(re), G = D.otherDirty && !ae && !x && !o;
276
- return !o && M.length === 0 && !G && !F && (!m || !$ && L.length === 0) ? null : /* @__PURE__ */ c("div", { className: "space-y-2", children: [
276
+ }, C = Object.values(re), G = D.otherDirty && !ae && !x && !o;
277
+ return !o && C.length === 0 && !G && !F && (!m || !$ && L.length === 0) ? null : /* @__PURE__ */ c("div", { className: "space-y-2", children: [
277
278
  (o == null ? void 0 : o.kind) === "deleted" && /* @__PURE__ */ c(
278
279
  "div",
279
280
  {
@@ -285,7 +286,7 @@ function Ke({
285
286
  /* @__PURE__ */ c("p", { className: "min-w-0 flex-1 text-[12px] text-rose-800 dark:text-rose-300", children: [
286
287
  /* @__PURE__ */ i("span", { className: "font-semibold", children: "This record was deleted" }),
287
288
  o.by ? ` by ${o.by}` : "",
288
- o.at ? ` ${ke(o.at)}` : "",
289
+ o.at ? ` ${Ne(o.at)}` : "",
289
290
  ". Saving is turned off",
290
291
  o.canRestore ? " — restore it to keep working." : "."
291
292
  ] }),
@@ -302,7 +303,7 @@ function Ke({
302
303
  ]
303
304
  }
304
305
  ),
305
- (o == null ? void 0 : o.kind) === "access" && !w && /* @__PURE__ */ i(Re, { onBack: () => window.history.back() }),
306
+ (o == null ? void 0 : o.kind) === "access" && !w && /* @__PURE__ */ i(_e, { onBack: () => window.history.back() }),
306
307
  G && /* @__PURE__ */ c(
307
308
  "div",
308
309
  {
@@ -348,7 +349,7 @@ function Ke({
348
349
  ]
349
350
  }
350
351
  ),
351
- M.length > 0 && !o && /* @__PURE__ */ c(
352
+ C.length > 0 && !o && /* @__PURE__ */ c(
352
353
  "div",
353
354
  {
354
355
  "data-record-automation": !0,
@@ -360,7 +361,7 @@ function Ke({
360
361
  /* @__PURE__ */ i("span", { className: "font-semibold", children: "Automation is updating this record" }),
361
362
  " —",
362
363
  " ",
363
- M.join(", "),
364
+ C.join(", "),
364
365
  ". Its changes appear here when it finishes."
365
366
  ] })
366
367
  ]
@@ -371,26 +372,26 @@ function Ke({
371
372
  /* @__PURE__ */ i("span", { className: "h-1.5 w-1.5 animate-pulse rounded-full bg-nvr-cyan" }),
372
373
  "Updated just now by someone else"
373
374
  ] }),
374
- L.map((t) => /* @__PURE__ */ c(
375
+ L.map((s) => /* @__PURE__ */ c(
375
376
  "span",
376
377
  {
377
378
  className: "inline-flex items-center gap-1.5 rounded-full border border-slate-200 bg-white px-2.5 py-0.5 text-[11px] text-slate-600 dark:border-border dark:bg-card dark:text-slate-300",
378
379
  children: [
379
380
  /* @__PURE__ */ i(be, { className: "h-3 w-3 animate-pulse text-nvr-cyan" }),
380
- t.user,
381
+ s.user,
381
382
  " is uploading “",
382
- t.name.length > 32 ? `${t.name.slice(0, 32)}…` : t.name,
383
+ s.name.length > 32 ? `${s.name.slice(0, 32)}…` : s.name,
383
384
  "”"
384
385
  ]
385
386
  },
386
- `${t.user}:${t.name}`
387
+ `${s.user}:${s.name}`
387
388
  ))
388
389
  ] })
389
390
  ] });
390
391
  }
391
392
  export {
392
- Te as RECORD_QUERY_HEADS,
393
- Re as RecordAccessLostPanel,
394
- Ke as RecordLiveSync,
395
- Se as purgeRecordQueries
393
+ Se as RECORD_QUERY_HEADS,
394
+ _e as RecordAccessLostPanel,
395
+ Be as RecordLiveSync,
396
+ Re as purgeRecordQueries
396
397
  };