@nivaro/react 0.3.94 → 0.3.96

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.
@@ -1,38 +1,38 @@
1
- var wn = Object.defineProperty;
2
- var vn = (t, e, r) => e in t ? wn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var Ve = (t, e, r) => vn(t, typeof e != "symbol" ? e + "" : e, r);
1
+ var yn = Object.defineProperty;
2
+ var wn = (t, e, r) => e in t ? yn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var Ve = (t, e, r) => wn(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { jsx as n, jsxs as i, Fragment as xe } from "react/jsx-runtime";
5
5
  import { useQueryClient as De, useQuery as oe, useMutation as Pe } from "@tanstack/react-query";
6
- import { ArrowRight as lt, Loader2 as me, Check as We, GitBranch as Xe, AlertTriangle as kn, ChevronDown as $e, Send as Ft, Users as At, Undo2 as Nn, Minus as _n, UserPlus as Sn, X as Ot, Zap as Ut, Search as Cn } from "lucide-react";
7
- import { useState as I, useRef as ne, useEffect as fe, useMemo as Ie, Suspense as Et, useCallback as Lt, lazy as $n } from "react";
6
+ import { ArrowRight as lt, Loader2 as me, Check as We, GitBranch as Xe, AlertTriangle as vn, ChevronDown as $e, Send as Ft, Users as At, Undo2 as kn, Minus as Nn, UserPlus as _n, X as Ot, Zap as Ut, Search as Sn } from "lucide-react";
7
+ import { useState as I, useRef as ne, useEffect as fe, useMemo as Ie, Suspense as Et, useCallback as Lt, lazy as Cn } from "react";
8
8
  import { toast as Y } from "sonner";
9
9
  import { useNivaroClient as we, useItemEditAuth as Bt } from "../../context.js";
10
- import { get as ce, post as Te, del as Tn } from "../../lib/commands.js";
11
- import { errorToastOptions as jt, toastError as qn } from "../../lib/error-toast.js";
12
- import { useRecordSignalWhile as It, useRecordSignalPeers as Mn, signalSentence as Rn } from "../../lib/presence-signals.js";
10
+ import { get as ce, post as Te, del as $n } from "../../lib/commands.js";
11
+ import { errorToastOptions as jt, toastError as Tn } from "../../lib/error-toast.js";
13
12
  import { OPEN_MOVE_STATE_EVENT as Nt } from "../../lib/move-state.js";
13
+ import { useRecordSignalWhile as It, useRecordSignalPeers as qn, signalSentence as Mn } from "../../lib/presence-signals.js";
14
14
  import { RUN_TRANSITION_EVENT as Ke } from "../../lib/run-transition.js";
15
15
  import { userErrorMessage as Fe } from "../../lib/safe-error.js";
16
- import { serverNow as Pn } from "../../lib/server-clock.js";
17
- import { userCardQuery as Dn } from "../../lib/user-cards.js";
18
- import { cn as ye, titleCase as Fn, toLocalDateString as An, formatRelative as ot, formatDateTime as _t, humanHours as On } from "../../lib/utils.js";
19
- import { PushReadinessChip as Un } from "../integrations/RecordIntegrationPreview.js";
20
- import { useHeaderFold as En } from "../item-edit/HeaderTools.js";
16
+ import { serverNow as Rn } from "../../lib/server-clock.js";
17
+ import { userCardQuery as Pn } from "../../lib/user-cards.js";
18
+ import { cn as ye, titleCase as Dn, toLocalDateString as Fn, formatRelative as ot, formatDateTime as _t, humanHours as An } from "../../lib/utils.js";
19
+ import { PushReadinessChip as On } from "../integrations/RecordIntegrationPreview.js";
20
+ import { useHeaderFold as Un } from "../item-edit/HeaderTools.js";
21
21
  import { invalidateRecordInsights as Qe, invalidateRecordData as Ae } from "../item-edit/RecordInsights.js";
22
22
  import { UserChip as Kt } from "../item-edit/UserChip.js";
23
- import { OwnerAvatars as Ln } from "../queue/OwnerAvatars.js";
24
- import { UserAvatar as Bn } from "../UserAvatar.js";
23
+ import { OwnerAvatars as En } from "../queue/OwnerAvatars.js";
24
+ import { UserAvatar as Ln } from "../UserAvatar.js";
25
25
  import { Button as ae } from "../ui/button.js";
26
- import { DropdownMenu as Ze, DropdownMenuTrigger as et, DropdownMenuContent as tt, DropdownMenuGroup as St, DropdownMenuSeparator as Ct, DropdownMenuItem as Be, DropdownMenuLabel as jn } from "../ui/dropdown-menu.js";
26
+ import { DropdownMenu as Ze, DropdownMenuTrigger as et, DropdownMenuContent as tt, DropdownMenuGroup as St, DropdownMenuSeparator as Ct, DropdownMenuItem as Be, DropdownMenuLabel as Bn } from "../ui/dropdown-menu.js";
27
27
  import { Popover as dt, PopoverTrigger as ct, PopoverContent as ut } from "../ui/popover.js";
28
28
  import { Skeleton as ke } from "../ui/skeleton.js";
29
29
  import { TooltipProvider as Qt, Tooltip as nt, TooltipTrigger as rt, TooltipContent as at } from "../ui/tooltip.js";
30
- import { isAccessRefusal as Wt, deniedToastAction as zt, WhyOwnersButton as In } from "./AccessInsights.js";
31
- import { BranchLanes as Kn } from "./BranchLanes.js";
32
- import { landingState as Qn, landingSkipGroups as Wn, joinLabels as $t } from "./landing-state.js";
33
- import { MoveToStatePanel as zn } from "./MoveToStatePanel.js";
34
- import { SlaClockLine as Hn } from "./SlaClock.js";
35
- const Ht = $n(
30
+ import { isAccessRefusal as Wt, deniedToastAction as zt, WhyOwnersButton as jn } from "./AccessInsights.js";
31
+ import { BranchLanes as In } from "./BranchLanes.js";
32
+ import { landingState as Kn, landingSkipGroups as Qn, joinLabels as $t } from "./landing-state.js";
33
+ import { MoveToStatePanel as Wn } from "./MoveToStatePanel.js";
34
+ import { SlaClockLine as zn } from "./SlaClock.js";
35
+ const Ht = Cn(
36
36
  () => import("./TransitionRequirementsDialog.js").then((t) => ({
37
37
  default: t.TransitionRequirementsDialog
38
38
  }))
@@ -41,7 +41,7 @@ function mt(t, e) {
41
41
  const r = t || "System";
42
42
  return e.on_behalf_of_name ? `${r}, for ${e.on_behalf_of_name}` : r;
43
43
  }
44
- function Gn(t) {
44
+ function Hn(t) {
45
45
  if (t.transition) return null;
46
46
  const e = (t.comment ?? "").trim();
47
47
  if (!e.startsWith("{")) return null;
@@ -76,11 +76,11 @@ const Tt = {
76
76
  rate_limited: "the partner asked us to slow down",
77
77
  unknown: "the partner refused it"
78
78
  };
79
- function Vn(t) {
80
- const e = Math.ceil((new Date(t).getTime() - Pn()) / 6e4);
79
+ function Gn(t) {
80
+ const e = Math.ceil((new Date(t).getTime() - Rn()) / 6e4);
81
81
  return !Number.isFinite(e) || e <= 0 ? "on the next check" : e < 60 ? `in ${e} min` : `in ${Math.round(e / 60)}h`;
82
82
  }
83
- function Xn({ held: t }) {
83
+ function Vn({ held: t }) {
84
84
  return t.length === 0 ? null : /* @__PURE__ */ n(
85
85
  "div",
86
86
  {
@@ -105,7 +105,7 @@ function Xn({ held: t }) {
105
105
  }
106
106
  ),
107
107
  /* @__PURE__ */ i("p", { className: "mt-1 text-[11px] text-amber-700 dark:text-amber-400", children: [
108
- e.retry_at ? `It tries the same push again ${Vn(e.retry_at)}. ` : "It will not send the same push again on its own. ",
108
+ e.retry_at ? `It tries the same push again ${Gn(e.retry_at)}. ` : "It will not send the same push again on its own. ",
109
109
  "Fix the record so what it sends changes, retry the push, or move the record by hand.",
110
110
  e.attempts > 1 ? ` ${e.attempts} attempts so far.` : ""
111
111
  ] })
@@ -136,17 +136,17 @@ function Yt(t) {
136
136
  const s = typeof r.locked_by_name == "string" ? r.locked_by_name : null;
137
137
  return { message: typeof r.error == "string" && r.error.trim() ? r.error : `${s ?? "Someone else"} is editing this record right now.`, holder: s };
138
138
  }
139
- const Yn = {
139
+ const Xn = {
140
140
  PRIORITY_REQUIRED: "priority",
141
141
  // A held record does not move forward (efp-ops hold-gate, army 11): taking
142
142
  // the hold off is one deliberate, noted step, then the move is tried again.
143
143
  ON_HOLD: "remove-hold"
144
144
  };
145
145
  function Jt(t, e) {
146
- const r = Xt(t), s = r ? Yn[r] : void 0;
146
+ const r = Xt(t), s = r ? Xn[r] : void 0;
147
147
  return !r || !s ? null : { code: r, actionKey: s, transitionId: e.transition_id, comment: e.comment };
148
148
  }
149
- const Jn = 600;
149
+ const Yn = 600;
150
150
  function Zt(t) {
151
151
  const e = De(), [r, s] = I(!1), l = ne(!0);
152
152
  fe(() => (l.current = !0, () => {
@@ -160,12 +160,12 @@ function Zt(t) {
160
160
  await e.refetchQueries({ queryKey: [...c.current], type: "active" });
161
161
  } catch {
162
162
  }
163
- await new Promise((b) => setTimeout(b, Jn)), l.current && s(!1);
163
+ await new Promise((b) => setTimeout(b, Yn)), l.current && s(!1);
164
164
  }, [e]);
165
165
  return { settling: r, settle: p };
166
166
  }
167
167
  const Me = 1500, qt = 4e3;
168
- class Zn {
168
+ class Jn {
169
169
  constructor() {
170
170
  Ve(this, "seen", null);
171
171
  Ve(this, "fresh", /* @__PURE__ */ new Map());
@@ -215,7 +215,7 @@ class Zn {
215
215
  }
216
216
  function en(t, e) {
217
217
  const r = ne(null);
218
- r.current || (r.current = new Zn());
218
+ r.current || (r.current = new Jn());
219
219
  const s = r.current, l = ne(e);
220
220
  l.current !== e && (l.current = e, s.reset());
221
221
  const [, c] = I(0), p = t ? t.join(",") : null;
@@ -243,17 +243,17 @@ function nn(t, e, r) {
243
243
  ce(`/pipelines/instance/${e}/${r}/approval-brief`)
244
244
  ).then((s) => s.data);
245
245
  }
246
- function er(t) {
246
+ function Zn(t) {
247
247
  return (t ?? []).filter((e) => e.tone === "warn" || e.tone === "danger");
248
248
  }
249
249
  function Mt(t) {
250
250
  return `${(t.label ?? "").trim().toLowerCase()}|${(t.text ?? "").trim().toLowerCase()}`;
251
251
  }
252
- function tr(t) {
252
+ function er(t) {
253
253
  const e = Math.max(0, Math.floor(Number(t) || 0));
254
254
  return e === 0 ? "today" : e === 1 ? "1 day ago" : `${e} days ago`;
255
255
  }
256
- function nr(t, e, r = 40) {
256
+ function tr(t, e, r = 40) {
257
257
  const s = (_) => _ == null || _ === "" ? "" : String(_), l = s(t), c = s(e), p = (_) => _ === "" ? "(empty)" : _;
258
258
  if (t === void 0) return { old: null, new: Ye(p(c), 0, r) };
259
259
  if (l.length <= r && c.length <= r) return { old: p(l), new: p(c) };
@@ -266,7 +266,7 @@ function Ye(t, e, r) {
266
266
  const s = Math.min(e, Math.max(0, t.length - r)), l = t.slice(s, s + r);
267
267
  return `${s > 0 ? "…" : ""}${l}${s + r < t.length ? "…" : ""}`;
268
268
  }
269
- const rr = 4e3;
269
+ const nr = 4e3;
270
270
  function rn(t, e) {
271
271
  const r = we(), s = De();
272
272
  return Lt(async () => {
@@ -278,9 +278,9 @@ function rn(t, e) {
278
278
  staleTime: 0,
279
279
  retry: !1
280
280
  }),
281
- new Promise((c) => setTimeout(() => c(null), rr))
281
+ new Promise((c) => setTimeout(() => c(null), nr))
282
282
  ]);
283
- return er(l == null ? void 0 : l.lines);
283
+ return Zn(l == null ? void 0 : l.lines);
284
284
  } catch {
285
285
  return [];
286
286
  }
@@ -325,7 +325,7 @@ const Rt = {
325
325
  blue: "border-sky-200 bg-sky-50 text-sky-800 dark:border-sky-500/30 dark:bg-sky-500/10 dark:text-sky-300",
326
326
  purple: "border-violet-200 bg-violet-50 text-violet-800 dark:border-violet-500/30 dark:bg-violet-500/10 dark:text-violet-300"
327
327
  };
328
- function ln({ flags: t }) {
328
+ function rr({ flags: t }) {
329
329
  return !t || t.length === 0 ? null : /* @__PURE__ */ n(xe, { children: t.map((e) => /* @__PURE__ */ i(
330
330
  "span",
331
331
  {
@@ -345,7 +345,7 @@ function ln({ flags: t }) {
345
345
  function Pt(t) {
346
346
  return t.replace(/\s+IIP$/i, "");
347
347
  }
348
- function on({
348
+ function ln({
349
349
  collection: t,
350
350
  item: e,
351
351
  tx: r
@@ -374,7 +374,7 @@ function on({
374
374
  }
375
375
  );
376
376
  }
377
- function dn(t) {
377
+ function on(t) {
378
378
  return t != null && t.instance ? (t.available_transitions ?? []).some(
379
379
  (e) => {
380
380
  var r;
@@ -382,14 +382,14 @@ function dn(t) {
382
382
  }
383
383
  ) : !1;
384
384
  }
385
- function cn(t, e, r, s) {
385
+ function dn(t, e, r, s) {
386
386
  if (!s || s.size === 0) return t;
387
387
  const l = new Set([...s.keys()].map((c) => String(c).toUpperCase()));
388
388
  return t.filter(
389
389
  (c) => !(!c.to_previous && l.has(String(c.to_state).toUpperCase()) && Oe(c, e, r))
390
390
  );
391
391
  }
392
- function un(t, e, r) {
392
+ function cn(t, e, r) {
393
393
  var f, _, v, y, $, A;
394
394
  const s = [...(t == null ? void 0 : t.available_transitions) ?? [], ...(t == null ? void 0 : t.all_transitions) ?? []].find(
395
395
  (E) => E.id === e
@@ -397,7 +397,7 @@ function un(t, e, r) {
397
397
  return b && c && String(b) === String(c) ? "Nothing moved" : s != null && s.label && p ? `${s.label} — now ${p}` : p ? `Moved to ${p}` : s != null && s.label ? `${s.label} done` : "Transition executed";
398
398
  }
399
399
  const ar = 1200;
400
- function mn(t) {
400
+ function un(t) {
401
401
  const e = `nvr-move-${Math.random().toString(36).slice(2)}`;
402
402
  let r = !1;
403
403
  const s = setTimeout(() => {
@@ -412,7 +412,7 @@ function mn(t) {
412
412
  }
413
413
  };
414
414
  }
415
- function pn(t, e, r) {
415
+ function mn(t, e, r) {
416
416
  for (const s of [
417
417
  "pipeline-owners-resolved",
418
418
  "pipeline-instance-owners",
@@ -439,7 +439,7 @@ function ir({ entry: t }) {
439
439
  "data-send-back-notice": !0,
440
440
  children: [
441
441
  /* @__PURE__ */ n(
442
- Nn,
442
+ kn,
443
443
  {
444
444
  "aria-hidden": !0,
445
445
  className: "mt-[3px] h-3.5 w-3.5 shrink-0 text-amber-600 dark:text-amber-400"
@@ -458,7 +458,7 @@ function ir({ entry: t }) {
458
458
  }
459
459
  );
460
460
  }
461
- function fn({
461
+ function pn({
462
462
  collection: t,
463
463
  item: e,
464
464
  offer: r,
@@ -483,7 +483,7 @@ function fn({
483
483
  onSuccess: () => {
484
484
  Ae(f, t, e), Y.success(`${(y == null ? void 0 : y.label) ?? "Done"} — trying again`), s();
485
485
  },
486
- onError: (B) => qn(B, `${(y == null ? void 0 : y.label) ?? "The fix"} failed`)
486
+ onError: (B) => Tn(B, `${(y == null ? void 0 : y.label) ?? "The fix"} failed`)
487
487
  });
488
488
  if ($ || !y) return null;
489
489
  const E = !A.isPending && (!y.require_reason || _.trim().length > 0);
@@ -566,7 +566,7 @@ function Ne({
566
566
  }
567
567
  function Je(t) {
568
568
  const e = Math.floor(t / 6e4);
569
- return e < 60 ? `${Math.max(1, e)}m` : On(t / 36e5);
569
+ return e < 60 ? `${Math.max(1, e)}m` : An(t / 36e5);
570
570
  }
571
571
  function lr({
572
572
  history: t,
@@ -739,7 +739,7 @@ function or({
739
739
  border: w || o ? "none" : G ? "1.5px dashed #cbd5e1" : "1.5px solid #e2e8f0",
740
740
  boxShadow: w ? `0 0 0 3px white, 0 0 0 5px ${se}` : void 0
741
741
  },
742
- children: o ? /* @__PURE__ */ n(We, { className: "h-3.5 w-3.5 text-white", strokeWidth: 2.5 }) : w ? /* @__PURE__ */ n("div", { className: "h-2.5 w-2.5 rounded-full bg-white/80" }) : G ? /* @__PURE__ */ n(_n, { className: "h-3 w-3 text-slate-400", strokeWidth: 2.5 }) : /* @__PURE__ */ n("div", { className: "h-2 w-2 rounded-full bg-slate-300" })
742
+ children: o ? /* @__PURE__ */ n(We, { className: "h-3.5 w-3.5 text-white", strokeWidth: 2.5 }) : w ? /* @__PURE__ */ n("div", { className: "h-2.5 w-2.5 rounded-full bg-white/80" }) : G ? /* @__PURE__ */ n(Nn, { className: "h-3 w-3 text-slate-400", strokeWidth: 2.5 }) : /* @__PURE__ */ n("div", { className: "h-2 w-2 rounded-full bg-slate-300" })
743
743
  },
744
744
  w ? "cur" : o ? "done" : G ? "skip" : "todo"
745
745
  ),
@@ -850,7 +850,7 @@ function or({
850
850
  }
851
851
  function dr({ history: t }) {
852
852
  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) => {
853
- const r = je(e), s = r ? st(e) : mt([e.first_name, e.last_name].filter(Boolean).join(" ") || e.user_email, e), l = Gn(e), c = e.comment && !r && !l ? e.comment : null, p = l ?? (r ? it(e) : null);
853
+ const r = je(e), s = r ? st(e) : mt([e.first_name, e.last_name].filter(Boolean).join(" ") || e.user_email, e), l = Hn(e), c = e.comment && !r && !l ? e.comment : null, p = l ?? (r ? it(e) : null);
854
854
  return /* @__PURE__ */ i("div", { className: "flex items-start gap-2.5 text-[12px]", children: [
855
855
  /* @__PURE__ */ n("div", { className: "mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full bg-slate-200" }),
856
856
  /* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
@@ -904,7 +904,7 @@ function cr({ value: t, onChange: e }) {
904
904
  enabled: s,
905
905
  staleTime: 3e4
906
906
  }), { data: A } = oe({
907
- ...Dn(r, t),
907
+ ...Pn(r, t),
908
908
  enabled: !!t,
909
909
  staleTime: 5 * 6e4
910
910
  }), E = y ?? [], B = A ?? E.find((T) => T.id === t) ?? null, H = B ? [B.first_name, B.last_name].filter(Boolean).join(" ").trim() || B.email : t ? "Selected person" : null, K = (T) => [T.first_name, T.last_name].filter(Boolean).join(" ").trim();
@@ -935,7 +935,7 @@ function cr({ value: t, onChange: e }) {
935
935
  ] }),
936
936
  /* @__PURE__ */ i(ut, { align: "start", className: "w-72 p-0", sideOffset: 4, children: [
937
937
  /* @__PURE__ */ n("div", { className: "border-b border-slate-100 px-2 py-1.5", children: /* @__PURE__ */ i("div", { className: "relative", children: [
938
- /* @__PURE__ */ n(Cn, { className: "absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-slate-400" }),
938
+ /* @__PURE__ */ n(Sn, { className: "absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-slate-400" }),
939
939
  /* @__PURE__ */ n(
940
940
  "input",
941
941
  {
@@ -990,7 +990,7 @@ function Dt({
990
990
  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",
991
991
  children: [
992
992
  /* @__PURE__ */ n(
993
- Bn,
993
+ Ln,
994
994
  {
995
995
  userId: t,
996
996
  alt: e,
@@ -1064,7 +1064,7 @@ function ur({
1064
1064
  // The server's reason (a 403 says why), not a bare status phrase.
1065
1065
  onError: (a) => Y.error(Fe(a, "Failed to add owner"))
1066
1066
  }), C = Pe({
1067
- mutationFn: (a) => c.request(Tn(`/pipelines/instance-owners/${a.id}`)),
1067
+ mutationFn: (a) => c.request($n(`/pipelines/instance-owners/${a.id}`)),
1068
1068
  onSuccess: (a, m) => {
1069
1069
  re();
1070
1070
  const N = [m.first_name, m.last_name].filter(Boolean).join(" ") || m.email;
@@ -1101,7 +1101,7 @@ function ur({
1101
1101
  ] })
1102
1102
  ] }),
1103
1103
  /* @__PURE__ */ i("span", { className: "flex items-center gap-3", children: [
1104
- s && /* @__PURE__ */ n(In, { collection: t, itemId: String(e) }),
1104
+ s && /* @__PURE__ */ n(jn, { collection: t, itemId: String(e) }),
1105
1105
  !f && x && /* @__PURE__ */ i(
1106
1106
  "button",
1107
1107
  {
@@ -1109,7 +1109,7 @@ function ur({
1109
1109
  onClick: () => _(!0),
1110
1110
  className: "flex items-center gap-1 text-[11px] text-slate-400 transition-colors hover:text-nvr-cyan",
1111
1111
  children: [
1112
- /* @__PURE__ */ n(Sn, { className: "h-3 w-3" }),
1112
+ /* @__PURE__ */ n(_n, { className: "h-3 w-3" }),
1113
1113
  "Add"
1114
1114
  ]
1115
1115
  }
@@ -1265,16 +1265,16 @@ function ur({
1265
1265
  ] })
1266
1266
  ] });
1267
1267
  }
1268
- function hn(t, e, r, s) {
1268
+ function fn(t, e, r, s) {
1269
1269
  if (!t || !(r != null && r.length)) return null;
1270
1270
  const c = new Map(r.map((f) => [String(f.id).toUpperCase(), f])).get(String(t.to_state).toUpperCase()), p = Number(e == null ? void 0 : e.sort);
1271
1271
  if (!c || !Number.isFinite(p) || !(Number(c.sort) > p)) return null;
1272
- const b = Qn(String(t.to_state), r, s);
1272
+ const b = Kn(String(t.to_state), r, s);
1273
1273
  return b && b.skipped.length > 0 ? b : null;
1274
1274
  }
1275
- function bn({ landing: t }) {
1275
+ function hn({ landing: t }) {
1276
1276
  if (!t || t.skipped.length === 0) return null;
1277
- const e = Wn(t);
1277
+ const e = Qn(t);
1278
1278
  if (e.length === 1) {
1279
1279
  const r = e[0];
1280
1280
  return /* @__PURE__ */ i(
@@ -1399,11 +1399,11 @@ function mr({
1399
1399
  )
1400
1400
  ] }) })
1401
1401
  ) : /* @__PURE__ */ i(xe, { children: [
1402
- /* @__PURE__ */ n(Ln, { owners: y, max: 10, emptyLabel: "—" }),
1402
+ /* @__PURE__ */ n(En, { owners: y, max: 10, emptyLabel: "—" }),
1403
1403
  B.map((x) => /* @__PURE__ */ i(
1404
1404
  "span",
1405
1405
  {
1406
- "data-tip": `${x.name} is ${Re[x.reason] ?? x.reason}${x.delegate ? ` — ${x.delegate.name} covers${x.delegate.expires_at ? ` until ${An(x.delegate.expires_at)}` : ""}` : " and nobody is covering"}`,
1406
+ "data-tip": `${x.name} is ${Re[x.reason] ?? x.reason}${x.delegate ? ` — ${x.delegate.name} covers${x.delegate.expires_at ? ` until ${Fn(x.delegate.expires_at)}` : ""}` : " and nobody is covering"}`,
1407
1407
  className: ye(
1408
1408
  "inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-[10.5px] font-medium",
1409
1409
  x.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"
@@ -1474,7 +1474,7 @@ function Hr({
1474
1474
  `${t}:${e}`
1475
1475
  );
1476
1476
  }
1477
- function gn({
1477
+ function bn({
1478
1478
  collection: t,
1479
1479
  item: e,
1480
1480
  omitLines: r
@@ -1492,7 +1492,7 @@ function gn({
1492
1492
  /* @__PURE__ */ n("span", { className: "font-medium text-slate-700 dark:text-foreground", children: "Since entering this state" }),
1493
1493
  " ",
1494
1494
  "(",
1495
- tr(l.days_in_state),
1495
+ er(l.days_in_state),
1496
1496
  "):",
1497
1497
  " ",
1498
1498
  l.changed_total === 0 && l.comments === 0 && l.addendums.count === 0 ? /* @__PURE__ */ n("span", { children: "no changes to this record." }) : /* @__PURE__ */ i(xe, { children: [
@@ -1521,14 +1521,14 @@ function gn({
1521
1521
  ] }),
1522
1522
  l.field_changes.length > 0 && /* @__PURE__ */ i("div", { className: "mt-1 space-y-0.5", children: [
1523
1523
  l.field_changes.slice(0, 5).map((f) => {
1524
- const _ = nr(f.old, f.new);
1524
+ const _ = tr(f.old, f.new);
1525
1525
  return /* @__PURE__ */ i(
1526
1526
  "p",
1527
1527
  {
1528
1528
  "data-brief-change": f.field,
1529
1529
  className: "text-[11px] text-slate-500 dark:text-muted-foreground",
1530
1530
  children: [
1531
- /* @__PURE__ */ n("span", { className: "font-medium text-slate-700 dark:text-foreground", children: f.label || Fn(f.field) }),
1531
+ /* @__PURE__ */ n("span", { className: "font-medium text-slate-700 dark:text-foreground", children: f.label || Dn(f.field) }),
1532
1532
  f.auto ? /* @__PURE__ */ n("span", { children: " (updated automatically)" }) : null,
1533
1533
  ":",
1534
1534
  " ",
@@ -1601,7 +1601,7 @@ function pr({
1601
1601
  }, [A, t, e]);
1602
1602
  const [K, T] = I(""), [P, L] = I(null), [h, x] = I(!1), [w, q] = I(!1), [o, Q] = I(null), [X, g] = I(null), [k, G] = I([]), se = rn(t, String(e));
1603
1603
  It(t, e, "transition", !!P || !!o);
1604
- const ee = Mn(t, e, "transition"), re = ne(!1);
1604
+ const ee = qn(t, e, "transition"), re = ne(!1);
1605
1605
  fe(() => {
1606
1606
  !re.current && r !== void 0 && (re.current = !0, q(r));
1607
1607
  }, [r]);
@@ -1693,7 +1693,7 @@ function pr({
1693
1693
  ).then((u) => u.data ?? null),
1694
1694
  // Also when a send back is on offer: its target may be a chain step this record skipped.
1695
1695
  // And while a move is being confirmed: the panel names where it really lands.
1696
- enabled: (w || dn(d) || !!P) && !!(d != null && d.instance),
1696
+ enabled: (w || on(d) || !!P) && !!(d != null && d.instance),
1697
1697
  staleTime: 3e4
1698
1698
  }), D = Ie(() => {
1699
1699
  if (!m) return null;
@@ -1728,7 +1728,7 @@ function pr({
1728
1728
  onMutate: (u) => {
1729
1729
  var S;
1730
1730
  return {
1731
- slow: mn(
1731
+ slow: un(
1732
1732
  (S = [...(d == null ? void 0 : d.available_transitions) ?? [], ...(d == null ? void 0 : d.all_transitions) ?? []].find(
1733
1733
  (F) => F.id === u.transition_id
1734
1734
  )) == null ? void 0 : S.label
@@ -1736,7 +1736,7 @@ function pr({
1736
1736
  };
1737
1737
  },
1738
1738
  onSuccess: (u, S, F) => {
1739
- $.invalidateQueries({ queryKey: J }), t === "nivaro_addendums" && $.invalidateQueries({ queryKey: ["addendums"] }), Qe($, t, String(e)), Ae($, t, String(e)), pn($, t, String(e)), g(null), T(""), L(null), Q(null), Y.success(un(d, S.transition_id, u), F == null ? void 0 : F.slow.done());
1739
+ $.invalidateQueries({ queryKey: J }), t === "nivaro_addendums" && $.invalidateQueries({ queryKey: ["addendums"] }), Qe($, t, String(e)), Ae($, t, String(e)), mn($, t, String(e)), g(null), T(""), L(null), Q(null), Y.success(cn(d, S.transition_id, u), F == null ? void 0 : F.slow.done());
1740
1740
  },
1741
1741
  onError: (u, S, F) => {
1742
1742
  var te;
@@ -1813,9 +1813,9 @@ function pr({
1813
1813
  /* @__PURE__ */ n(ke, { className: "ml-auto h-3.5 w-3.5 rounded" })
1814
1814
  ] }) });
1815
1815
  if (!(d != null && d.binding)) return null;
1816
- const { instance: O, available_transitions: ge, history: Se, states: pe } = d, Ue = new Map((pe ?? []).map((u) => [u.id, u])), Ce = (O == null ? void 0 : O.current_state_obj) ?? null, ie = P ? (ge ?? []).find((u) => u.id === P) : null, xn = ie ? Ue.get(ie.to_state) : null, Ee = hn(ie, Ce, pe, m), ze = (Ee == null ? void 0 : Ee.state) ?? xn, yn = O != null && O.completed_at && ge ? ge.filter(
1816
+ const { instance: O, available_transitions: ge, history: Se, states: pe } = d, Ue = new Map((pe ?? []).map((u) => [u.id, u])), Ce = (O == null ? void 0 : O.current_state_obj) ?? null, ie = P ? (ge ?? []).find((u) => u.id === P) : null, gn = ie ? Ue.get(ie.to_state) : null, Ee = fn(ie, Ce, pe, m), ze = (Ee == null ? void 0 : Ee.state) ?? gn, xn = O != null && O.completed_at && ge ? ge.filter(
1817
1817
  (u) => u.from_state && String(u.from_state).toUpperCase() === String(O.current_state).toUpperCase()
1818
- ) : null, He = O != null && O.completed_at ? yn ?? [] : cn(
1818
+ ) : null, He = O != null && O.completed_at ? xn ?? [] : dn(
1819
1819
  ge ?? [],
1820
1820
  pe ?? [],
1821
1821
  O == null ? void 0 : O.current_state,
@@ -1889,7 +1889,7 @@ function pr({
1889
1889
  ] }, W);
1890
1890
  });
1891
1891
  }, Ge = X ? /* @__PURE__ */ n(
1892
- fn,
1892
+ pn,
1893
1893
  {
1894
1894
  collection: t,
1895
1895
  item: String(e),
@@ -1907,9 +1907,9 @@ function pr({
1907
1907
  /* @__PURE__ */ n(Ne, { label: ze.label, color: ze.color, small: !0 })
1908
1908
  ] })
1909
1909
  ] }),
1910
- /* @__PURE__ */ n(bn, { landing: Ee }),
1911
- /* @__PURE__ */ n(on, { collection: t, item: String(e), tx: ie }),
1912
- /* @__PURE__ */ n(gn, { collection: t, item: e, omitLines: k }),
1910
+ /* @__PURE__ */ n(hn, { landing: Ee }),
1911
+ /* @__PURE__ */ n(ln, { collection: t, item: String(e), tx: ie }),
1912
+ /* @__PURE__ */ n(bn, { collection: t, item: e, omitLines: k }),
1913
1913
  /* @__PURE__ */ n(an, { lines: k }),
1914
1914
  /* @__PURE__ */ n(
1915
1915
  "input",
@@ -1972,7 +1972,7 @@ function pr({
1972
1972
  /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: [
1973
1973
  _ && /* @__PURE__ */ n("span", { className: "flex items-center gap-1 rounded-full border border-amber-200 bg-amber-50 px-2 py-0.5 text-[11px] font-medium text-amber-700 dark:border-amber-500/20 dark:bg-amber-500/10 dark:text-amber-400", children: "Addendum workflow" }),
1974
1974
  Ce && /* @__PURE__ */ n(Ne, { label: Ce.label, color: Ce.color }),
1975
- /* @__PURE__ */ n(ln, { flags: d == null ? void 0 : d.flags }),
1975
+ /* @__PURE__ */ n(rr, { flags: d == null ? void 0 : d.flags }),
1976
1976
  (((gt = d == null ? void 0 : d.auto_held) == null ? void 0 : gt.length) ?? 0) > 0 && /* @__PURE__ */ i(
1977
1977
  "span",
1978
1978
  {
@@ -1981,7 +1981,7 @@ function pr({
1981
1981
  `),
1982
1982
  "data-pipeline-auto-held-pill": !0,
1983
1983
  children: [
1984
- /* @__PURE__ */ n(kn, { className: "h-3 w-3 shrink-0" }),
1984
+ /* @__PURE__ */ n(vn, { className: "h-3 w-3 shrink-0" }),
1985
1985
  "Needs a person"
1986
1986
  ]
1987
1987
  }
@@ -1997,7 +1997,7 @@ function pr({
1997
1997
  "data-pipeline-approving": !0,
1998
1998
  children: [
1999
1999
  /* @__PURE__ */ n("span", { className: "h-1.5 w-1.5 shrink-0 animate-pulse rounded-full bg-sky-400" }),
2000
- Rn(ee, "approving")
2000
+ Mn(ee, "approving")
2001
2001
  ]
2002
2002
  }
2003
2003
  )
@@ -2046,7 +2046,7 @@ function pr({
2046
2046
  !w && Ge && /* @__PURE__ */ n("div", { className: "border-t border-slate-100 dark:border-border/60 px-4 py-3", children: Ge }),
2047
2047
  ht && !(O != null && O.completed_at) && /* @__PURE__ */ n(ir, { entry: ht }),
2048
2048
  w && /* @__PURE__ */ i("div", { className: "border-t border-slate-100 dark:border-border/60", children: [
2049
- /* @__PURE__ */ n(Xn, { held: (d == null ? void 0 : d.auto_held) ?? [] }),
2049
+ /* @__PURE__ */ n(Vn, { held: (d == null ? void 0 : d.auto_held) ?? [] }),
2050
2050
  f && /* @__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: [
2051
2051
  /* @__PURE__ */ n("span", { className: "h-1.5 w-1.5 rounded-full bg-amber-400 shrink-0" }),
2052
2052
  /* @__PURE__ */ n("p", { className: "text-[12px] text-amber-700 dark:text-amber-400", children: "An addendum is in review — coordinate transitions carefully." })
@@ -2077,7 +2077,7 @@ function pr({
2077
2077
  skippedStates: M
2078
2078
  }
2079
2079
  ),
2080
- (d == null ? void 0 : d.branches) && /* @__PURE__ */ n(Kn, { data: d.branches }),
2080
+ (d == null ? void 0 : d.branches) && /* @__PURE__ */ n(In, { data: d.branches }),
2081
2081
  /* @__PURE__ */ n(
2082
2082
  lr,
2083
2083
  {
@@ -2087,7 +2087,7 @@ function pr({
2087
2087
  )
2088
2088
  ] }),
2089
2089
  /* @__PURE__ */ i("div", { className: "space-y-3 px-5 py-4", children: [
2090
- !O.completed_at && /* @__PURE__ */ n(Hn, { collection: t, itemId: String(e) }),
2090
+ !O.completed_at && /* @__PURE__ */ n(zn, { collection: t, itemId: String(e) }),
2091
2091
  /* @__PURE__ */ n(
2092
2092
  ur,
2093
2093
  {
@@ -2139,7 +2139,7 @@ function pr({
2139
2139
  h && /* @__PURE__ */ n("div", { className: "mt-3", children: /* @__PURE__ */ n(dr, { history: Se ?? [] }) })
2140
2140
  ] }),
2141
2141
  A && (pe ?? []).length > 1 && /* @__PURE__ */ n("div", { className: "px-5 py-3", ref: H, children: /* @__PURE__ */ n(
2142
- zn,
2142
+ Wn,
2143
2143
  {
2144
2144
  collection: t,
2145
2145
  item: e,
@@ -2221,7 +2221,7 @@ function fr({
2221
2221
  }) {
2222
2222
  const l = we(), c = De(), [p, b] = I(""), [f, _] = I(null), [v, y] = I(null), [$, A] = I(null), [E, B] = I([]), H = rn(t, String(e));
2223
2223
  It(t, e, "transition", !!f || !!v);
2224
- const K = ne(null), T = En(K, !s), P = ne(!1), L = (a) => {
2224
+ const K = ne(null), T = Un(K, !s), P = ne(!1), L = (a) => {
2225
2225
  P.current || (P.current = !0, A(null), k.mutate(a, {
2226
2226
  onSettled: (m, N) => {
2227
2227
  if (N) {
@@ -2297,7 +2297,7 @@ function fr({
2297
2297
  ce(`/pipelines/instance/${t}/${e}/owners/all`)
2298
2298
  ).then((a) => a.data ?? null),
2299
2299
  // Also while a move is being confirmed: the panel names where it really lands.
2300
- enabled: dn(o) || !!f,
2300
+ enabled: on(o) || !!f,
2301
2301
  staleTime: 3e4
2302
2302
  }), g = Ie(() => {
2303
2303
  if (!X) return null;
@@ -2322,7 +2322,7 @@ function fr({
2322
2322
  onMutate: (a) => {
2323
2323
  var m;
2324
2324
  return {
2325
- slow: mn(
2325
+ slow: un(
2326
2326
  (m = [...(o == null ? void 0 : o.available_transitions) ?? [], ...(o == null ? void 0 : o.all_transitions) ?? []].find(
2327
2327
  (N) => N.id === a.transition_id
2328
2328
  )) == null ? void 0 : m.label
@@ -2330,7 +2330,7 @@ function fr({
2330
2330
  };
2331
2331
  },
2332
2332
  onSuccess: (a, m, N) => {
2333
- c.invalidateQueries({ queryKey: x }), t === "nivaro_addendums" && c.invalidateQueries({ queryKey: ["addendums"] }), Qe(c, t, String(e)), Ae(c, t, String(e)), pn(c, t, String(e)), A(null), b(""), _(null), y(null), Y.success(un(o, m.transition_id, a), N == null ? void 0 : N.slow.done());
2333
+ c.invalidateQueries({ queryKey: x }), t === "nivaro_addendums" && c.invalidateQueries({ queryKey: ["addendums"] }), Qe(c, t, String(e)), Ae(c, t, String(e)), mn(c, t, String(e)), A(null), b(""), _(null), y(null), Y.success(cn(o, m.transition_id, a), N == null ? void 0 : N.slow.done());
2334
2334
  },
2335
2335
  onError: (a, m, N) => {
2336
2336
  var j;
@@ -2400,7 +2400,7 @@ function fr({
2400
2400
  };
2401
2401
  return window.addEventListener(Ke, a), () => window.removeEventListener(Ke, a);
2402
2402
  }, [t, e]), !(o != null && o.binding) || !(o != null && o.instance)) return null;
2403
- const ee = cn(
2403
+ const ee = dn(
2404
2404
  (o.available_transitions ?? []).filter(
2405
2405
  (a) => !o.instance.completed_at || a.from_state && String(a.from_state).toUpperCase() === String(o.instance.current_state).toUpperCase()
2406
2406
  ),
@@ -2409,7 +2409,7 @@ function fr({
2409
2409
  o.instance.completed_at ? null : g
2410
2410
  );
2411
2411
  if (ee.length === 0) return null;
2412
- const re = new Map((o.states ?? []).map((a) => [a.id, a])), z = o.instance.current_state_obj ?? null, C = f ? ee.find((a) => a.id === f) : null, de = C ? re.get(C.to_state) : null, J = hn(C, z, o.states ?? [], X), he = (J == null ? void 0 : J.state) ?? de, be = /* @__PURE__ */ new Map();
2412
+ const re = new Map((o.states ?? []).map((a) => [a.id, a])), z = o.instance.current_state_obj ?? null, C = f ? ee.find((a) => a.id === f) : null, de = C ? re.get(C.to_state) : null, J = fn(C, z, o.states ?? [], X), he = (J == null ? void 0 : J.state) ?? de, be = /* @__PURE__ */ new Map();
2413
2413
  for (const a of ee) {
2414
2414
  const m = be.get(a.label) ?? [];
2415
2415
  m.push(a), be.set(a.label, m);
@@ -2458,7 +2458,7 @@ function fr({
2458
2458
  ] })
2459
2459
  ] }, a) : /* @__PURE__ */ i(St, { children: [
2460
2460
  N > 0 && /* @__PURE__ */ n(Ct, {}),
2461
- /* @__PURE__ */ n(jn, { className: "text-[11px] text-muted-foreground", children: a }),
2461
+ /* @__PURE__ */ n(Bn, { className: "text-[11px] text-muted-foreground", children: a }),
2462
2462
  d(m).map((M) => {
2463
2463
  var R;
2464
2464
  return /* @__PURE__ */ i(Be, { onSelect: () => h(M.id), children: [
@@ -2474,85 +2474,82 @@ function fr({
2474
2474
  })
2475
2475
  ] }, a)
2476
2476
  ) })
2477
- ] }) : /* @__PURE__ */ i(
2477
+ ] }) : /* @__PURE__ */ n(
2478
2478
  "div",
2479
2479
  {
2480
2480
  className: s ? "flex flex-wrap justify-end gap-2" : "flex shrink-0 items-center justify-end gap-2",
2481
- children: [
2482
- /* @__PURE__ */ n(ln, { flags: o == null ? void 0 : o.flags }),
2483
- Array.from(be.entries()).map(([a, m]) => {
2484
- var j, ue;
2485
- const N = m.some((U) => {
2486
- var O;
2487
- return (((O = U.order_partners) == null ? void 0 : O.length) ?? 0) > 0;
2488
- }), D = N ? null : ((j = m[0]) == null ? void 0 : j.color) ?? null, M = m.some((U) => U.id === f), R = (U) => D ? U ? { backgroundColor: D, borderColor: D } : { borderColor: D, color: D } : void 0;
2489
- if (m.length === 1) {
2490
- const U = m[0], O = k.isPending && ((ue = k.variables) == null ? void 0 : ue.transition_id) === U.id, ge = /* @__PURE__ */ i(
2491
- ae,
2492
- {
2493
- size: "sm",
2494
- variant: M ? "default" : "outline",
2495
- className: "gap-1.5 text-[12px] data-[fresh=true]:opacity-60",
2496
- style: R(M),
2497
- disabled: k.isPending || w,
2498
- "aria-disabled": Q.dimmed(U.id) || void 0,
2499
- "data-fresh": Q.dimmed(U.id) || void 0,
2500
- ...Q.bind(U.id),
2501
- onClick: () => {
2502
- Q.press(U.id) && h(U.id);
2503
- },
2504
- children: [
2505
- O ? /* @__PURE__ */ n(me, { className: "h-3 w-3 animate-spin" }) : N && /* @__PURE__ */ n(Ft, { className: "h-3 w-3", "aria-hidden": !0 }),
2506
- a
2507
- ]
2481
+ children: Array.from(be.entries()).map(([a, m]) => {
2482
+ var j, ue;
2483
+ const N = m.some((U) => {
2484
+ var O;
2485
+ return (((O = U.order_partners) == null ? void 0 : O.length) ?? 0) > 0;
2486
+ }), D = N ? null : ((j = m[0]) == null ? void 0 : j.color) ?? null, M = m.some((U) => U.id === f), R = (U) => D ? U ? { backgroundColor: D, borderColor: D } : { borderColor: D, color: D } : void 0;
2487
+ if (m.length === 1) {
2488
+ const U = m[0], O = k.isPending && ((ue = k.variables) == null ? void 0 : ue.transition_id) === U.id, ge = /* @__PURE__ */ i(
2489
+ ae,
2490
+ {
2491
+ size: "sm",
2492
+ variant: M ? "default" : "outline",
2493
+ className: "gap-1.5 text-[12px] data-[fresh=true]:opacity-60",
2494
+ style: R(M),
2495
+ disabled: k.isPending || w,
2496
+ "aria-disabled": Q.dimmed(U.id) || void 0,
2497
+ "data-fresh": Q.dimmed(U.id) || void 0,
2498
+ ...Q.bind(U.id),
2499
+ onClick: () => {
2500
+ Q.press(U.id) && h(U.id);
2508
2501
  },
2509
- a
2510
- );
2511
- return U.pushes && U.pushes > 0 ? /* @__PURE__ */ i("span", { className: "relative inline-flex", children: [
2512
- ge,
2513
- /* @__PURE__ */ n(
2514
- Un,
2515
- {
2516
- collection: t,
2517
- itemId: e,
2518
- transitionId: U.id,
2519
- label: a,
2520
- compact: !0
2521
- }
2522
- )
2523
- ] }, a) : ge;
2524
- }
2525
- return /* @__PURE__ */ i(Ze, { children: [
2526
- /* @__PURE__ */ n(et, { asChild: !0, children: /* @__PURE__ */ i(
2527
- ae,
2502
+ children: [
2503
+ O ? /* @__PURE__ */ n(me, { className: "h-3 w-3 animate-spin" }) : N && /* @__PURE__ */ n(Ft, { className: "h-3 w-3", "aria-hidden": !0 }),
2504
+ a
2505
+ ]
2506
+ },
2507
+ a
2508
+ );
2509
+ return U.pushes && U.pushes > 0 ? /* @__PURE__ */ i("span", { className: "relative inline-flex", children: [
2510
+ ge,
2511
+ /* @__PURE__ */ n(
2512
+ On,
2528
2513
  {
2529
- size: "sm",
2530
- variant: M ? "default" : "outline",
2531
- className: "gap-1.5 text-[12px]",
2532
- style: R(M),
2533
- disabled: k.isPending || w,
2534
- children: [
2535
- a,
2536
- /* @__PURE__ */ n($e, { className: "h-3 w-3" })
2537
- ]
2514
+ collection: t,
2515
+ itemId: e,
2516
+ transitionId: U.id,
2517
+ label: a,
2518
+ compact: !0
2538
2519
  }
2539
- ) }),
2540
- /* @__PURE__ */ n(tt, { align: "start", children: d(m).map((U) => {
2541
- var O;
2542
- return /* @__PURE__ */ i(Be, { onSelect: () => h(U.id), children: [
2543
- U.color && /* @__PURE__ */ n(
2544
- "span",
2545
- {
2546
- className: "mr-2 inline-block h-2 w-2 shrink-0 rounded-full",
2547
- style: { backgroundColor: U.color }
2548
- }
2549
- ),
2550
- ((O = re.get(U.to_state)) == null ? void 0 : O.label) ?? U.to_state
2551
- ] }, U.id);
2552
- }) })
2553
- ] }, a);
2554
- })
2555
- ]
2520
+ )
2521
+ ] }, a) : ge;
2522
+ }
2523
+ return /* @__PURE__ */ i(Ze, { children: [
2524
+ /* @__PURE__ */ n(et, { asChild: !0, children: /* @__PURE__ */ i(
2525
+ ae,
2526
+ {
2527
+ size: "sm",
2528
+ variant: M ? "default" : "outline",
2529
+ className: "gap-1.5 text-[12px]",
2530
+ style: R(M),
2531
+ disabled: k.isPending || w,
2532
+ children: [
2533
+ a,
2534
+ /* @__PURE__ */ n($e, { className: "h-3 w-3" })
2535
+ ]
2536
+ }
2537
+ ) }),
2538
+ /* @__PURE__ */ n(tt, { align: "start", children: d(m).map((U) => {
2539
+ var O;
2540
+ return /* @__PURE__ */ i(Be, { onSelect: () => h(U.id), children: [
2541
+ U.color && /* @__PURE__ */ n(
2542
+ "span",
2543
+ {
2544
+ className: "mr-2 inline-block h-2 w-2 shrink-0 rounded-full",
2545
+ style: { backgroundColor: U.color }
2546
+ }
2547
+ ),
2548
+ ((O = re.get(U.to_state)) == null ? void 0 : O.label) ?? U.to_state
2549
+ ] }, U.id);
2550
+ }) })
2551
+ ] }, a);
2552
+ })
2556
2553
  }
2557
2554
  ),
2558
2555
  f && /* @__PURE__ */ i(
@@ -2570,9 +2567,9 @@ function fr({
2570
2567
  /* @__PURE__ */ n(Ne, { label: he.label, color: he.color, small: !0 })
2571
2568
  ] })
2572
2569
  ] }),
2573
- /* @__PURE__ */ n(bn, { landing: J }),
2574
- /* @__PURE__ */ n(on, { collection: t, item: String(e), tx: C }),
2575
- /* @__PURE__ */ n(gn, { collection: t, item: e, omitLines: E }),
2570
+ /* @__PURE__ */ n(hn, { landing: J }),
2571
+ /* @__PURE__ */ n(ln, { collection: t, item: String(e), tx: C }),
2572
+ /* @__PURE__ */ n(bn, { collection: t, item: e, omitLines: E }),
2576
2573
  /* @__PURE__ */ n(an, { lines: E }),
2577
2574
  /* @__PURE__ */ n(
2578
2575
  "input",
@@ -2618,7 +2615,7 @@ function fr({
2618
2615
  }
2619
2616
  ),
2620
2617
  $ && !f && /* @__PURE__ */ n(
2621
- fn,
2618
+ pn,
2622
2619
  {
2623
2620
  collection: t,
2624
2621
  item: String(e),
@@ -2655,24 +2652,24 @@ function fr({
2655
2652
  export {
2656
2653
  Me as FRESH_BUTTON_MS,
2657
2654
  qt as FRESH_HOVER_MAX_MS,
2658
- Zn as FreshButtonGuard,
2655
+ Jn as FreshButtonGuard,
2659
2656
  Hr as PipelinePanel,
2660
2657
  Gr as PipelineTransitionButtons,
2661
- Yn as REFUSAL_FIX_ACTIONS,
2662
- ln as RecordFlagChips,
2658
+ Xn as REFUSAL_FIX_ACTIONS,
2659
+ rr as RecordFlagChips,
2663
2660
  ar as SLOW_MOVE_MS,
2664
2661
  sn as asksFirst,
2665
- tr as briefAgeText,
2666
- nr as briefDiffPair,
2662
+ er as briefAgeText,
2663
+ tr as briefDiffPair,
2667
2664
  Mt as briefLineKey,
2668
- er as briefWarnings,
2665
+ Zn as briefWarnings,
2669
2666
  Gt as isDuplicateTransition,
2670
2667
  sr as latestSendBack,
2671
2668
  Yt as lockedMoveOffer,
2672
2669
  Xt as refusalCode,
2673
2670
  Jt as refusalFixFor,
2674
- mn as slowMoveToast,
2671
+ un as slowMoveToast,
2675
2672
  Vt as transitionRequirementsFromError,
2676
- un as transitionToastText,
2677
- cn as withoutSkippedSendBacks
2673
+ cn as transitionToastText,
2674
+ dn as withoutSkippedSendBacks
2678
2675
  };