@nivaro/react 0.3.67 → 0.3.69

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 (32) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +7 -0
  4. package/dist/index.js +836 -835
  5. package/dist/shared/components/ConformanceView.js +34 -34
  6. package/dist/shared/components/ReportView.js +196 -196
  7. package/dist/shared/components/SlaRulesView.js +36 -36
  8. package/dist/shared/components/chat/ChatPanel.js +484 -487
  9. package/dist/shared/components/chat/ChatViews.js +66 -66
  10. package/dist/shared/components/chat/RoomParts.js +159 -157
  11. package/dist/shared/components/help-videos/editor/StatsTab.js +48 -47
  12. package/dist/shared/components/help-videos/editor/VersionsTab.js +17 -16
  13. package/dist/shared/components/imports/CollectionImportPanel.js +72 -72
  14. package/dist/shared/components/item-edit/FieldRenderer.js +186 -182
  15. package/dist/shared/components/item-edit/FieldRow.js +87 -87
  16. package/dist/shared/components/item-edit/FileDownloadCount.js +94 -0
  17. package/dist/shared/components/item-edit/FilePickerField.js +350 -349
  18. package/dist/shared/components/item-edit/RecordInsights.js +90 -91
  19. package/dist/shared/components/item-edit/SummaryPanel.js +31 -31
  20. package/dist/shared/components/layout-editor/assist/ExplainDiff.js +12 -12
  21. package/dist/shared/components/layout-editor/inspector/BehaviourSettings.js +175 -138
  22. package/dist/shared/components/layout-editor/inspector/RulesTab.js +53 -52
  23. package/dist/shared/components/panels/AddendumPanel.js +409 -411
  24. package/dist/shared/components/panels/CommentPanel.js +169 -162
  25. package/dist/shared/components/panels/PipelinePanel.js +75 -75
  26. package/dist/shared/components/panels/RevisionsPanel.js +103 -103
  27. package/dist/shared/components/queue/QueueWorklist.js +142 -141
  28. package/dist/shared/lib/activity-sentence.js +154 -144
  29. package/dist/shared/lib/format-value.js +15 -15
  30. package/dist/shared/lib/placement-behaviour.js +39 -31
  31. package/dist/shared/lib/utils.js +58 -53
  32. package/package.json +1 -1
@@ -14,22 +14,22 @@ import { RUN_TRANSITION_EVENT as Le } from "../../lib/run-transition.js";
14
14
  import { userErrorMessage as Me } from "../../lib/safe-error.js";
15
15
  import { serverNow as Cn } from "../../lib/server-clock.js";
16
16
  import { userCardQuery as $n } from "../../lib/user-cards.js";
17
- import { cn as ge, titleCase as Tn, formatRelative as at, formatDateTime as yt, humanHours as qn } from "../../lib/utils.js";
18
- import { PushReadinessChip as Rn } from "../integrations/RecordIntegrationPreview.js";
19
- import { useHeaderFold as Mn } from "../item-edit/HeaderTools.js";
17
+ import { cn as ge, titleCase as Tn, toLocalDateString as qn, formatRelative as at, formatDateTime as yt, humanHours as Rn } from "../../lib/utils.js";
18
+ import { PushReadinessChip as Mn } from "../integrations/RecordIntegrationPreview.js";
19
+ import { useHeaderFold as Pn } from "../item-edit/HeaderTools.js";
20
20
  import { invalidateRecordInsights as Ee, invalidateRecordData as Pe } from "../item-edit/RecordInsights.js";
21
21
  import { UserChip as Ut } from "../item-edit/UserChip.js";
22
- import { OwnerAvatars as Pn } from "../queue/OwnerAvatars.js";
23
- import { UserAvatar as Dn } from "../UserAvatar.js";
22
+ import { OwnerAvatars as Dn } from "../queue/OwnerAvatars.js";
23
+ import { UserAvatar as Fn } from "../UserAvatar.js";
24
24
  import { Button as re } from "../ui/button.js";
25
- import { DropdownMenu as Ve, DropdownMenuTrigger as Xe, DropdownMenuContent as Ye, DropdownMenuGroup as wt, DropdownMenuSeparator as vt, DropdownMenuItem as Oe, DropdownMenuLabel as Fn } from "../ui/dropdown-menu.js";
25
+ import { DropdownMenu as Ve, DropdownMenuTrigger as Xe, DropdownMenuContent as Ye, DropdownMenuGroup as wt, DropdownMenuSeparator as vt, DropdownMenuItem as Oe, DropdownMenuLabel as An } from "../ui/dropdown-menu.js";
26
26
  import { Popover as st, PopoverTrigger as it, PopoverContent as lt } from "../ui/popover.js";
27
27
  import { Skeleton as we } from "../ui/skeleton.js";
28
28
  import { TooltipProvider as Bt, Tooltip as Je, TooltipTrigger as Ze, TooltipContent as et } from "../ui/tooltip.js";
29
- import { isAccessRefusal as Lt, deniedToastAction as Et, WhyOwnersButton as An } from "./AccessInsights.js";
30
- import { BranchLanes as On } from "./BranchLanes.js";
31
- import { landingState as Un, landingSkipGroups as Bn, joinLabels as kt } from "./landing-state.js";
32
- import { SlaClockLine as Ln } from "./SlaClock.js";
29
+ import { isAccessRefusal as Lt, deniedToastAction as Et, WhyOwnersButton as On } from "./AccessInsights.js";
30
+ import { BranchLanes as Un } from "./BranchLanes.js";
31
+ import { landingState as Bn, landingSkipGroups as Ln, joinLabels as kt } from "./landing-state.js";
32
+ import { SlaClockLine as En } from "./SlaClock.js";
33
33
  const jt = wn(
34
34
  () => import("./TransitionRequirementsDialog.js").then((t) => ({
35
35
  default: t.TransitionRequirementsDialog
@@ -39,7 +39,7 @@ function ot(t, e) {
39
39
  const r = t || "System";
40
40
  return e.on_behalf_of_name ? `${r}, for ${e.on_behalf_of_name}` : r;
41
41
  }
42
- function En(t) {
42
+ function jn(t) {
43
43
  if (t.transition) return null;
44
44
  const e = (t.comment ?? "").trim();
45
45
  if (!e.startsWith("{")) return null;
@@ -74,11 +74,11 @@ const Nt = {
74
74
  rate_limited: "the partner asked us to slow down",
75
75
  unknown: "the partner refused it"
76
76
  };
77
- function jn(t) {
77
+ function In(t) {
78
78
  const e = Math.ceil((new Date(t).getTime() - Cn()) / 6e4);
79
79
  return !Number.isFinite(e) || e <= 0 ? "on the next check" : e < 60 ? `in ${e} min` : `in ${Math.round(e / 60)}h`;
80
80
  }
81
- function In({ held: t }) {
81
+ function Kn({ held: t }) {
82
82
  return t.length === 0 ? null : /* @__PURE__ */ n(
83
83
  "div",
84
84
  {
@@ -103,7 +103,7 @@ function In({ held: t }) {
103
103
  }
104
104
  ),
105
105
  /* @__PURE__ */ i("p", { className: "mt-1 text-[11px] text-amber-700 dark:text-amber-400", children: [
106
- e.retry_at ? `It tries the same push again ${jn(e.retry_at)}. ` : "It will not send the same push again on its own. ",
106
+ e.retry_at ? `It tries the same push again ${In(e.retry_at)}. ` : "It will not send the same push again on its own. ",
107
107
  "Fix the record so what it sends changes, retry the push, or move the record by hand.",
108
108
  e.attempts > 1 ? ` ${e.attempts} attempts so far.` : ""
109
109
  ] })
@@ -134,17 +134,17 @@ function Wt(t) {
134
134
  const a = typeof r.locked_by_name == "string" ? r.locked_by_name : null;
135
135
  return { message: typeof r.error == "string" && r.error.trim() ? r.error : `${a ?? "Someone else"} is editing this record right now.`, holder: a };
136
136
  }
137
- const Kn = {
137
+ const Qn = {
138
138
  PRIORITY_REQUIRED: "priority",
139
139
  // A held record does not move forward (efp-ops hold-gate, army 11): taking
140
140
  // the hold off is one deliberate, noted step, then the move is tried again.
141
141
  ON_HOLD: "remove-hold"
142
142
  };
143
143
  function zt(t, e) {
144
- const r = Qt(t), a = r ? Kn[r] : void 0;
144
+ const r = Qt(t), a = r ? Qn[r] : void 0;
145
145
  return !r || !a ? null : { code: r, actionKey: a, transitionId: e.transition_id, comment: e.comment };
146
146
  }
147
- const Qn = 600;
147
+ const Wn = 600;
148
148
  function Ht(t) {
149
149
  const e = Re(), [r, a] = j(!1), l = ae(!0);
150
150
  he(() => (l.current = !0, () => {
@@ -158,12 +158,12 @@ function Ht(t) {
158
158
  await e.refetchQueries({ queryKey: [...c.current], type: "active" });
159
159
  } catch {
160
160
  }
161
- await new Promise((b) => setTimeout(b, Qn)), l.current && a(!1);
161
+ await new Promise((b) => setTimeout(b, Wn)), l.current && a(!1);
162
162
  }, [e]);
163
163
  return { settling: r, settle: m };
164
164
  }
165
165
  const $e = 1500, _t = 4e3;
166
- class Wn {
166
+ class zn {
167
167
  constructor() {
168
168
  We(this, "seen", null);
169
169
  We(this, "fresh", /* @__PURE__ */ new Map());
@@ -213,7 +213,7 @@ class Wn {
213
213
  }
214
214
  function Gt(t, e) {
215
215
  const r = ae(null);
216
- r.current || (r.current = new Wn());
216
+ r.current || (r.current = new zn());
217
217
  const a = r.current, l = ae(e);
218
218
  l.current !== e && (l.current = e, a.reset());
219
219
  const [, c] = j(0), m = t ? t.join(",") : null;
@@ -241,17 +241,17 @@ function Xt(t, e, r) {
241
241
  ce(`/pipelines/instance/${e}/${r}/approval-brief`)
242
242
  ).then((a) => a.data);
243
243
  }
244
- function zn(t) {
244
+ function Hn(t) {
245
245
  return (t ?? []).filter((e) => e.tone === "warn" || e.tone === "danger");
246
246
  }
247
247
  function St(t) {
248
248
  return `${(t.label ?? "").trim().toLowerCase()}|${(t.text ?? "").trim().toLowerCase()}`;
249
249
  }
250
- function Hn(t) {
250
+ function Gn(t) {
251
251
  const e = Math.max(0, Math.floor(Number(t) || 0));
252
252
  return e === 0 ? "today" : e === 1 ? "1 day ago" : `${e} days ago`;
253
253
  }
254
- function Gn(t, e, r = 40) {
254
+ function Vn(t, e, r = 40) {
255
255
  const a = (_) => _ == null || _ === "" ? "" : String(_), l = a(t), c = a(e), m = (_) => _ === "" ? "(empty)" : _;
256
256
  if (t === void 0) return { old: null, new: He(m(c), 0, r) };
257
257
  if (l.length <= r && c.length <= r) return { old: m(l), new: m(c) };
@@ -264,7 +264,7 @@ function He(t, e, r) {
264
264
  const a = Math.min(e, Math.max(0, t.length - r)), l = t.slice(a, a + r);
265
265
  return `${a > 0 ? "…" : ""}${l}${a + r < t.length ? "…" : ""}`;
266
266
  }
267
- const Vn = 4e3;
267
+ const Xn = 4e3;
268
268
  function Yt(t, e) {
269
269
  const r = xe(), a = Re();
270
270
  return Ft(async () => {
@@ -276,9 +276,9 @@ function Yt(t, e) {
276
276
  staleTime: 0,
277
277
  retry: !1
278
278
  }),
279
- new Promise((c) => setTimeout(() => c(null), Vn))
279
+ new Promise((c) => setTimeout(() => c(null), Xn))
280
280
  ]);
281
- return zn(l == null ? void 0 : l.lines);
281
+ return Hn(l == null ? void 0 : l.lines);
282
282
  } catch {
283
283
  return [];
284
284
  }
@@ -394,13 +394,13 @@ function an(t, e, r) {
394
394
  ), l = r == null ? void 0 : r.data, c = ((h = l == null ? void 0 : l.new_state) == null ? void 0 : h.id) ?? ((_ = l == null ? void 0 : l.instance) == null ? void 0 : _.current_state) ?? null, m = ((k = l == null ? void 0 : l.new_state) == null ? void 0 : k.label) ?? (a ? (q = (w = t == null ? void 0 : t.states) == null ? void 0 : w.find((B) => B.id === a.to_state)) == null ? void 0 : q.label : void 0) ?? null, b = ((F = t == null ? void 0 : t.instance) == null ? void 0 : F.current_state) ?? null;
395
395
  return b && c && String(b) === String(c) ? "Nothing moved" : a != null && a.label && m ? `${a.label} — now ${m}` : m ? `Moved to ${m}` : a != null && a.label ? `${a.label} done` : "Transition executed";
396
396
  }
397
- const Xn = 1200;
397
+ const Yn = 1200;
398
398
  function sn(t) {
399
399
  const e = `nvr-move-${Math.random().toString(36).slice(2)}`;
400
400
  let r = !1;
401
401
  const a = setTimeout(() => {
402
402
  r = !0, X.loading(`${(t == null ? void 0 : t.trim()) || "Moving"}…`, { id: e });
403
- }, Xn);
403
+ }, Yn);
404
404
  return {
405
405
  /** Options for the result toast: replaces the loading one when shown. */
406
406
  done: () => (clearTimeout(a), r ? { id: e, duration: 7e3 } : {}),
@@ -418,7 +418,7 @@ function ln(t, e, r) {
418
418
  ])
419
419
  t.invalidateQueries({ queryKey: [a, e, r] });
420
420
  }
421
- function Yn(t, e, r) {
421
+ function Jn(t, e, r) {
422
422
  var b;
423
423
  if (!e) return null;
424
424
  const a = new Map(r.map((h) => [String(h.id).toUpperCase(), h.sort])), l = [...t].sort(
@@ -428,7 +428,7 @@ function Yn(t, e, r) {
428
428
  const c = a.get(String(l.from_state).toUpperCase()), m = a.get(String(l.to_state).toUpperCase());
429
429
  return c == null || m == null || m >= c ? null : l;
430
430
  }
431
- function Jn({ entry: t }) {
431
+ function Zn({ entry: t }) {
432
432
  const e = [t.first_name, t.last_name].filter(Boolean).join(" ") || t.user_email || "Someone";
433
433
  return /* @__PURE__ */ i(
434
434
  "div",
@@ -555,9 +555,9 @@ function ve({
555
555
  }
556
556
  function Ge(t) {
557
557
  const e = Math.floor(t / 6e4);
558
- return e < 60 ? `${Math.max(1, e)}m` : qn(t / 36e5);
558
+ return e < 60 ? `${Math.max(1, e)}m` : Rn(t / 36e5);
559
559
  }
560
- function Zn({
560
+ function er({
561
561
  history: t,
562
562
  completedAt: e
563
563
  }) {
@@ -617,7 +617,7 @@ function Zn({
617
617
  }) })
618
618
  ] });
619
619
  }
620
- function er({
620
+ function tr({
621
621
  states: t,
622
622
  allTransitions: e,
623
623
  availableTransitions: r,
@@ -837,9 +837,9 @@ function er({
837
837
  ] }, u.id);
838
838
  }) }) }) });
839
839
  }
840
- function tr({ history: t }) {
840
+ function nr({ history: t }) {
841
841
  return t.length === 0 ? /* @__PURE__ */ n("p", { className: "text-[12px] text-slate-400 italic", children: "No transitions yet." }) : /* @__PURE__ */ n("div", { className: "space-y-3", children: t.map((e) => {
842
- const r = Ue(e), a = r ? tt(e) : ot([e.first_name, e.last_name].filter(Boolean).join(" ") || e.user_email, e), l = En(e), c = e.comment && !r && !l ? e.comment : null, m = l ?? (r ? nt(e) : null);
842
+ const r = Ue(e), a = r ? tt(e) : ot([e.first_name, e.last_name].filter(Boolean).join(" ") || e.user_email, e), l = jn(e), c = e.comment && !r && !l ? e.comment : null, m = l ?? (r ? nt(e) : null);
843
843
  return /* @__PURE__ */ i("div", { className: "flex items-start gap-2.5 text-[12px]", children: [
844
844
  /* @__PURE__ */ n("div", { className: "mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-slate-200" }),
845
845
  /* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
@@ -871,7 +871,7 @@ function tr({ history: t }) {
871
871
  ] }, e.id);
872
872
  }) });
873
873
  }
874
- function nr({ value: t, onChange: e }) {
874
+ function rr({ value: t, onChange: e }) {
875
875
  const r = xe(), [a, l] = j(!1), [c, m] = j(""), [b, h] = j(""), _ = ae(null), k = ae(null);
876
876
  he(() => {
877
877
  a ? setTimeout(() => {
@@ -979,7 +979,7 @@ function Tt({
979
979
  className: "group/owner flex min-w-0 flex-1 items-center gap-2.5 rounded-md text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan",
980
980
  children: [
981
981
  /* @__PURE__ */ n(
982
- Dn,
982
+ Fn,
983
983
  {
984
984
  userId: t,
985
985
  alt: e,
@@ -995,7 +995,7 @@ function Tt({
995
995
  }
996
996
  ) });
997
997
  }
998
- function rr({
998
+ function ar({
999
999
  collection: t,
1000
1000
  item: e,
1001
1001
  states: r,
@@ -1090,7 +1090,7 @@ function rr({
1090
1090
  ] })
1091
1091
  ] }),
1092
1092
  /* @__PURE__ */ i("span", { className: "flex items-center gap-3", children: [
1093
- a && /* @__PURE__ */ n(An, { collection: t, itemId: String(e) }),
1093
+ a && /* @__PURE__ */ n(On, { collection: t, itemId: String(e) }),
1094
1094
  !h && g && /* @__PURE__ */ i(
1095
1095
  "button",
1096
1096
  {
@@ -1192,7 +1192,7 @@ function rr({
1192
1192
  ] }),
1193
1193
  h && /* @__PURE__ */ i("div", { className: "mt-3 space-y-2 rounded-lg border border-slate-200 bg-slate-50 dark:bg-slate-900/30 dark:border-border p-3", children: [
1194
1194
  /* @__PURE__ */ n("p", { className: "text-[11px] font-semibold text-slate-500", children: "Add owner" }),
1195
- /* @__PURE__ */ n(nr, { value: k, onChange: w }),
1195
+ /* @__PURE__ */ n(rr, { value: k, onChange: w }),
1196
1196
  b ? /* @__PURE__ */ i(st, { open: B, onOpenChange: A, children: [
1197
1197
  /* @__PURE__ */ n(it, { asChild: !0, children: /* @__PURE__ */ i(
1198
1198
  "button",
@@ -1258,12 +1258,12 @@ function dn(t, e, r, a) {
1258
1258
  if (!t || !(r != null && r.length)) return null;
1259
1259
  const c = new Map(r.map((h) => [String(h.id).toUpperCase(), h])).get(String(t.to_state).toUpperCase()), m = Number(e == null ? void 0 : e.sort);
1260
1260
  if (!c || !Number.isFinite(m) || !(Number(c.sort) > m)) return null;
1261
- const b = Un(String(t.to_state), r, a);
1261
+ const b = Bn(String(t.to_state), r, a);
1262
1262
  return b && b.skipped.length > 0 ? b : null;
1263
1263
  }
1264
1264
  function cn({ landing: t }) {
1265
1265
  if (!t || t.skipped.length === 0) return null;
1266
- const e = Bn(t);
1266
+ const e = Ln(t);
1267
1267
  if (e.length === 1) {
1268
1268
  const r = e[0];
1269
1269
  return /* @__PURE__ */ i(
@@ -1310,7 +1310,7 @@ const Te = {
1310
1310
  suspended: "suspended",
1311
1311
  redacted: "redacted"
1312
1312
  };
1313
- function ar({
1313
+ function sr({
1314
1314
  collection: t,
1315
1315
  item: e,
1316
1316
  states: r,
@@ -1388,11 +1388,11 @@ function ar({
1388
1388
  )
1389
1389
  ] }) })
1390
1390
  ) : /* @__PURE__ */ i(be, { children: [
1391
- /* @__PURE__ */ n(Pn, { owners: w, max: 10, emptyLabel: "—" }),
1391
+ /* @__PURE__ */ n(Dn, { owners: w, max: 10, emptyLabel: "—" }),
1392
1392
  A.map((g) => /* @__PURE__ */ i(
1393
1393
  "span",
1394
1394
  {
1395
- "data-tip": `${g.name} is ${Te[g.reason] ?? g.reason}${g.delegate ? ` — ${g.delegate.name} covers${g.delegate.expires_at ? ` until ${new Date(g.delegate.expires_at).toLocaleDateString()}` : ""}` : " and nobody is covering"}`,
1395
+ "data-tip": `${g.name} is ${Te[g.reason] ?? g.reason}${g.delegate ? ` — ${g.delegate.name} covers${g.delegate.expires_at ? ` until ${qn(g.delegate.expires_at)}` : ""}` : " and nobody is covering"}`,
1396
1396
  className: ge(
1397
1397
  "inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-[10.5px] font-medium",
1398
1398
  g.delegate ? "border-amber-200 bg-amber-50 text-amber-800 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-200" : "border-red-200 bg-red-50 text-red-700 dark:border-red-500/30 dark:bg-red-500/10 dark:text-red-300"
@@ -1432,7 +1432,7 @@ function ar({
1432
1432
  ] })
1433
1433
  ] });
1434
1434
  }
1435
- function Ur({
1435
+ function Br({
1436
1436
  collection: t,
1437
1437
  item: e,
1438
1438
  defaultExpanded: r,
@@ -1446,7 +1446,7 @@ function Ur({
1446
1446
  asRole: k
1447
1447
  }) {
1448
1448
  return e === "new" ? null : /* @__PURE__ */ n(
1449
- sr,
1449
+ ir,
1450
1450
  {
1451
1451
  collection: t,
1452
1452
  item: e,
@@ -1481,7 +1481,7 @@ function un({
1481
1481
  /* @__PURE__ */ n("span", { className: "font-medium text-slate-700 dark:text-foreground", children: "Since entering this state" }),
1482
1482
  " ",
1483
1483
  "(",
1484
- Hn(l.days_in_state),
1484
+ Gn(l.days_in_state),
1485
1485
  "):",
1486
1486
  " ",
1487
1487
  l.changed_total === 0 && l.comments === 0 && l.addendums.count === 0 ? /* @__PURE__ */ n("span", { children: "no changes to this record." }) : /* @__PURE__ */ i(be, { children: [
@@ -1510,7 +1510,7 @@ function un({
1510
1510
  ] }),
1511
1511
  l.field_changes.length > 0 && /* @__PURE__ */ i("div", { className: "mt-1 space-y-0.5", children: [
1512
1512
  l.field_changes.slice(0, 5).map((h) => {
1513
- const _ = Gn(h.old, h.new);
1513
+ const _ = Vn(h.old, h.new);
1514
1514
  return /* @__PURE__ */ i(
1515
1515
  "p",
1516
1516
  {
@@ -1559,7 +1559,7 @@ function un({
1559
1559
  ))
1560
1560
  ] });
1561
1561
  }
1562
- function sr({
1562
+ function ir({
1563
1563
  collection: t,
1564
1564
  item: e,
1565
1565
  defaultExpanded: r,
@@ -1871,7 +1871,7 @@ function sr({
1871
1871
  onDismiss: () => T(null),
1872
1872
  onFixed: () => Y({ transition_id: N.transitionId, comment: N.comment })
1873
1873
  }
1874
- ) : null, ut = Yn(Z ?? [], v == null ? void 0 : v.current_state, O ?? []), mt = /* @__PURE__ */ i("div", { className: "space-y-3 rounded-lg border border-slate-200 bg-slate-50 dark:bg-slate-900/30 dark:border-border p-3.5", children: [
1874
+ ) : null, ut = Jn(Z ?? [], v == null ? void 0 : v.current_state, O ?? []), mt = /* @__PURE__ */ i("div", { className: "space-y-3 rounded-lg border border-slate-200 bg-slate-50 dark:bg-slate-900/30 dark:border-border p-3.5", children: [
1875
1875
  /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-2", children: [
1876
1876
  /* @__PURE__ */ n("span", { className: "text-[11px] font-semibold text-slate-400", children: "Confirming" }),
1877
1877
  se && /* @__PURE__ */ n("span", { className: "text-[12px] font-medium text-slate-700", children: se.label }),
@@ -1995,7 +1995,7 @@ function sr({
1995
1995
  }
1996
1996
  ),
1997
1997
  l && ((o == null ? void 0 : o.binding) || (o == null ? void 0 : o.instance)) && /* @__PURE__ */ n(
1998
- ar,
1998
+ sr,
1999
1999
  {
2000
2000
  collection: t,
2001
2001
  item: e,
@@ -2018,9 +2018,9 @@ function sr({
2018
2018
  ),
2019
2019
  !D && A && /* @__PURE__ */ n("div", { className: "border-t border-slate-100 dark:border-border/60 px-4 py-3", children: mt }),
2020
2020
  !D && Qe && /* @__PURE__ */ n("div", { className: "border-t border-slate-100 dark:border-border/60 px-4 py-3", children: Qe }),
2021
- ut && !(v != null && v.completed_at) && /* @__PURE__ */ n(Jn, { entry: ut }),
2021
+ ut && !(v != null && v.completed_at) && /* @__PURE__ */ n(Zn, { entry: ut }),
2022
2022
  D && /* @__PURE__ */ i("div", { className: "border-t border-slate-100 dark:border-border/60", children: [
2023
- /* @__PURE__ */ n(In, { held: (o == null ? void 0 : o.auto_held) ?? [] }),
2023
+ /* @__PURE__ */ n(Kn, { held: (o == null ? void 0 : o.auto_held) ?? [] }),
2024
2024
  h && /* @__PURE__ */ i("div", { className: "flex items-center gap-2 border-b border-amber-100 bg-amber-50 px-5 py-2.5 dark:border-amber-500/20 dark:bg-amber-500/10", children: [
2025
2025
  /* @__PURE__ */ n("span", { className: "h-1.5 w-1.5 rounded-full bg-amber-400 shrink-0" }),
2026
2026
  /* @__PURE__ */ n("p", { className: "text-[12px] text-amber-700 dark:text-amber-400", children: "An addendum is in review — coordinate transitions carefully." })
@@ -2040,7 +2040,7 @@ function sr({
2040
2040
  /* @__PURE__ */ n(we, { className: "ml-2 h-3 w-24" })
2041
2041
  ] })
2042
2042
  ) : /* @__PURE__ */ n(
2043
- er,
2043
+ tr,
2044
2044
  {
2045
2045
  states: O,
2046
2046
  allTransitions: (o == null ? void 0 : o.all_transitions) ?? [],
@@ -2051,9 +2051,9 @@ function sr({
2051
2051
  skippedStates: s
2052
2052
  }
2053
2053
  ),
2054
- (o == null ? void 0 : o.branches) && /* @__PURE__ */ n(On, { data: o.branches }),
2054
+ (o == null ? void 0 : o.branches) && /* @__PURE__ */ n(Un, { data: o.branches }),
2055
2055
  /* @__PURE__ */ n(
2056
- Zn,
2056
+ er,
2057
2057
  {
2058
2058
  history: Z ?? [],
2059
2059
  completedAt: v.completed_at
@@ -2061,9 +2061,9 @@ function sr({
2061
2061
  )
2062
2062
  ] }),
2063
2063
  /* @__PURE__ */ i("div", { className: "space-y-3 px-5 py-4", children: [
2064
- !v.completed_at && /* @__PURE__ */ n(Ln, { collection: t, itemId: String(e) }),
2064
+ !v.completed_at && /* @__PURE__ */ n(En, { collection: t, itemId: String(e) }),
2065
2065
  /* @__PURE__ */ n(
2066
- rr,
2066
+ ar,
2067
2067
  {
2068
2068
  collection: t,
2069
2069
  item: e,
@@ -2110,7 +2110,7 @@ function sr({
2110
2110
  ]
2111
2111
  }
2112
2112
  ),
2113
- I && /* @__PURE__ */ n("div", { className: "mt-3", children: /* @__PURE__ */ n(tr, { history: Z ?? [] }) })
2113
+ I && /* @__PURE__ */ n("div", { className: "mt-3", children: /* @__PURE__ */ n(nr, { history: Z ?? [] }) })
2114
2114
  ] })
2115
2115
  ] }) : /* @__PURE__ */ i("div", { className: "flex items-center justify-between gap-4 px-5 py-4", children: [
2116
2116
  /* @__PURE__ */ n("p", { className: "text-[13px] text-slate-500", children: "Pipeline not started for this record." }),
@@ -2156,14 +2156,14 @@ function sr({
2156
2156
  ) })
2157
2157
  ] });
2158
2158
  }
2159
- function Br({
2159
+ function Lr({
2160
2160
  collection: t,
2161
2161
  item: e,
2162
2162
  onBeforeTransition: r,
2163
2163
  wrap: a = !0
2164
2164
  }) {
2165
2165
  return e === "new" ? null : /* @__PURE__ */ n(
2166
- ir,
2166
+ lr,
2167
2167
  {
2168
2168
  collection: t,
2169
2169
  item: e,
@@ -2172,7 +2172,7 @@ function Br({
2172
2172
  }
2173
2173
  );
2174
2174
  }
2175
- function ir({
2175
+ function lr({
2176
2176
  collection: t,
2177
2177
  item: e,
2178
2178
  onBeforeTransition: r,
@@ -2180,7 +2180,7 @@ function ir({
2180
2180
  }) {
2181
2181
  const l = xe(), c = Re(), [m, b] = j(""), [h, _] = j(null), [k, w] = j(null), [q, F] = j(null), [B, A] = j([]), L = Yt(t, String(e));
2182
2182
  Ot(t, e, "transition", !!h || !!k);
2183
- const I = ae(null), R = Mn(I, !a), D = ae(!1), Q = (s) => {
2183
+ const I = ae(null), R = Pn(I, !a), D = ae(!1), Q = (s) => {
2184
2184
  D.current || (D.current = !0, F(null), S.mutate(s, {
2185
2185
  onSettled: (p, x) => {
2186
2186
  if (x) {
@@ -2417,7 +2417,7 @@ function ir({
2417
2417
  ] })
2418
2418
  ] }, s) : /* @__PURE__ */ i(wt, { children: [
2419
2419
  x > 0 && /* @__PURE__ */ n(vt, {}),
2420
- /* @__PURE__ */ n(Fn, { className: "text-[11px] text-muted-foreground", children: s }),
2420
+ /* @__PURE__ */ n(An, { className: "text-[11px] text-muted-foreground", children: s }),
2421
2421
  ke(p).map((P) => {
2422
2422
  var v;
2423
2423
  return /* @__PURE__ */ i(Oe, { onSelect: () => u(P.id), children: [
@@ -2470,7 +2470,7 @@ function ir({
2470
2470
  return O.pushes && O.pushes > 0 ? /* @__PURE__ */ i("span", { className: "relative inline-flex", children: [
2471
2471
  fe,
2472
2472
  /* @__PURE__ */ n(
2473
- Rn,
2473
+ Mn,
2474
2474
  {
2475
2475
  collection: t,
2476
2476
  itemId: e,
@@ -2614,19 +2614,19 @@ function ir({
2614
2614
  export {
2615
2615
  $e as FRESH_BUTTON_MS,
2616
2616
  _t as FRESH_HOVER_MAX_MS,
2617
- Wn as FreshButtonGuard,
2618
- Ur as PipelinePanel,
2619
- Br as PipelineTransitionButtons,
2620
- Kn as REFUSAL_FIX_ACTIONS,
2617
+ zn as FreshButtonGuard,
2618
+ Br as PipelinePanel,
2619
+ Lr as PipelineTransitionButtons,
2620
+ Qn as REFUSAL_FIX_ACTIONS,
2621
2621
  en as RecordFlagChips,
2622
- Xn as SLOW_MOVE_MS,
2622
+ Yn as SLOW_MOVE_MS,
2623
2623
  Zt as asksFirst,
2624
- Hn as briefAgeText,
2625
- Gn as briefDiffPair,
2624
+ Gn as briefAgeText,
2625
+ Vn as briefDiffPair,
2626
2626
  St as briefLineKey,
2627
- zn as briefWarnings,
2627
+ Hn as briefWarnings,
2628
2628
  It as isDuplicateTransition,
2629
- Yn as latestSendBack,
2629
+ Jn as latestSendBack,
2630
2630
  Wt as lockedMoveOffer,
2631
2631
  Qt as refusalCode,
2632
2632
  zt as refusalFixFor,