@nivaro/react 0.3.58 → 0.3.60

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 (43) hide show
  1. package/dist/components/fields/RelationField.js +110 -80
  2. package/dist/full.css +1 -1
  3. package/dist/hooks/useRelationOptions.js +1 -0
  4. package/dist/hooks/useSessionRecorder.js +1 -1
  5. package/dist/index.d.ts +32 -1
  6. package/dist/index.js +523 -520
  7. package/dist/shared/components/CollectionBrowserView.js +2083 -2052
  8. package/dist/shared/components/DataTable.js +497 -465
  9. package/dist/shared/components/ItemEditForm.js +4430 -4282
  10. package/dist/shared/components/PageRenderer.js +537 -508
  11. package/dist/shared/components/QueryTable.js +74 -74
  12. package/dist/shared/components/WidgetSlot.js +543 -520
  13. package/dist/shared/components/alerts/AlertManagerView.js +269 -275
  14. package/dist/shared/components/alerts/types.js +37 -14
  15. package/dist/shared/components/item-edit/FieldRenderer.js +22 -20
  16. package/dist/shared/components/item-edit/GridBulkEditDialog.js +55 -54
  17. package/dist/shared/components/item-edit/InlineTableField.js +2461 -2421
  18. package/dist/shared/components/item-edit/M2MCombobox.js +141 -137
  19. package/dist/shared/components/item-edit/PlanGrid.js +876 -820
  20. package/dist/shared/components/item-edit/QuickCreateButton.js +323 -130
  21. package/dist/shared/components/item-edit/RelationCombobox.js +408 -375
  22. package/dist/shared/components/item-edit/RelationGroupedCombobox.js +255 -156
  23. package/dist/shared/components/item-edit/SummaryPanel.js +356 -343
  24. package/dist/shared/components/item-edit/duplicate-rehearsal.js +47 -0
  25. package/dist/shared/components/item-edit/line-midair.js +82 -75
  26. package/dist/shared/components/item-edit/save-outcome.js +6 -4
  27. package/dist/shared/components/panels/ItemLockBanner.js +212 -209
  28. package/dist/shared/components/panels/PipelinePanel.js +775 -737
  29. package/dist/shared/components/panels/RecordIntegrityBanner.js +114 -86
  30. package/dist/shared/components/panels/RevisionsPanel.js +313 -299
  31. package/dist/shared/components/pipeline/PipelineEditorView.js +26 -16
  32. package/dist/shared/components/queue/QueueQuickFilters.js +13 -13
  33. package/dist/shared/components/queue/QueueWorklist.js +978 -953
  34. package/dist/shared/components/queue/live-state-aspect.js +9 -5
  35. package/dist/shared/components/widgets/ReviewListWidget.js +152 -149
  36. package/dist/shared/lib/display-prefs.js +60 -52
  37. package/dist/shared/lib/draft-store.js +71 -48
  38. package/dist/shared/lib/expression.js +53 -53
  39. package/dist/shared/lib/list-page-memory.js +42 -20
  40. package/dist/shared/lib/money-input.js +45 -0
  41. package/dist/shared/lib/sanitize-html.js +10 -6
  42. package/dist/shared/lib/staged-row-labels.js +18 -0
  43. package/package.json +1 -1
@@ -1,93 +1,94 @@
1
- import { jsxs as d, Fragment as qe, jsx as a } from "react/jsx-runtime";
2
- import { useSensors as no, useSensor as ro, PointerSensor as ao, DndContext as lo, closestCenter as oo } from "@dnd-kit/core";
3
- import { SortableContext as so, verticalListSortingStrategy as io, arrayMove as co, useSortable as uo } from "@dnd-kit/sortable";
4
- import { CSS as mo } from "@dnd-kit/utilities";
5
- import { useQueryClient as po, useQuery as W, useMutation as $e, useQueries as Be } from "@tanstack/react-query";
6
- import { AlertTriangle as bo, FileDiff as ho, RefreshCw as fo, Rows3 as _a, Flame as go, Sparkles as xo, BarChart3 as yo, SlidersHorizontal as ko, ListChecks as vo, Rows4 as wo, Rows2 as _o, Play as No, Plus as nn, ChevronDown as Na, Star as So, Pin as Co, Loader2 as $o, Check as qo, Save as Fo, Bell as To, Inbox as Ro, GripVertical as Eo } from "lucide-react";
7
- import { useState as v, useRef as U, useEffect as P, useMemo as V } from "react";
8
- import { createPortal as Sa } from "react-dom";
1
+ import { jsxs as d, Fragment as ye, jsx as a } from "react/jsx-runtime";
2
+ import { useSensors as ao, useSensor as lo, PointerSensor as oo, DndContext as so, closestCenter as io } from "@dnd-kit/core";
3
+ import { SortableContext as co, verticalListSortingStrategy as uo, arrayMove as mo, useSortable as po } from "@dnd-kit/sortable";
4
+ import { CSS as bo } from "@dnd-kit/utilities";
5
+ import { useQueryClient as fo, useQuery as G, useMutation as qe, useQueries as Be } from "@tanstack/react-query";
6
+ import { AlertTriangle as ho, FileDiff as go, RefreshCw as xo, Rows3 as Na, Flame as yo, Sparkles as ko, BarChart3 as vo, SlidersHorizontal as wo, ListChecks as _o, Rows4 as No, Rows2 as So, Play as Co, Plus as nn, ChevronDown as Sa, Star as $o, Pin as qo, Loader2 as Fo, Check as To, Save as Ro, Bell as Eo, Inbox as Lo, GripVertical as Ao } from "lucide-react";
7
+ import { useState as v, useRef as j, useEffect as K, useMemo as V } from "react";
8
+ import { createPortal as Ca } from "react-dom";
9
9
  import { toast as O } from "sonner";
10
- import { useNivaroClient as La, useItemEditAuth as Ca, useItemNavigation as Lo, useNavigation as Ao, useOverlayState as Oo } from "../../context.js";
11
- import { useDebounced as Do } from "../../hooks/useDebounced.js";
12
- import { useElapsedLoading as Ko } from "../../hooks/useElapsedLoading.js";
13
- import { useSlowReason as Po } from "../../hooks/useSlowReason.js";
14
- import { useBulkProgressFeed as Mo } from "../../lib/bulk-progress.js";
15
- import { get as L, post as ie, patch as $a, del as Vn, put as Qo } from "../../lib/commands.js";
16
- import { evaluateExpression as Bo } from "../../lib/expression.js";
17
- import { clauseFromControlValue as jo, filterSentence as Uo } from "../../lib/filter-sentence.js";
18
- import { deliverLive as Io, releaseLiveOwner as Vo } from "../../lib/focus-mode.js";
19
- import { formatMultiValue as nt, formatValue as Go } from "../../lib/format-value.js";
20
- import { createCursorBook as Wo, pageRequest as Ho, noteNextCursor as Yo } from "../../lib/keyset-pager.js";
21
- import { normalizeInlineEdit as Jo, inlineM2oTarget as zo, inlineChoices as Xo, inlineEditFor as Zo, nextInlineKey as es } from "../../lib/list-inline-edit.js";
22
- import { sanitizeQueueLinkState as ts, readListLinkFromLocation as ns, dropListLinkParam as rs } from "../../lib/list-link.js";
23
- import { expandCoalesced as as, LIVE_ASPECTS as $t } from "../../lib/live.js";
24
- import { useRowChanges as ls, useRowLocksByCollection as os, lockLabel as ss } from "../../lib/live-list.js";
25
- import { OPEN_IN_TABS_CAP as is, openInTabs as cs, openInTabsMessage as qa } from "../../lib/open-in-tabs.js";
26
- import { isOwnWrite as ds } from "../../lib/own-writes.js";
27
- import { usePrefetchIntent as us } from "../../lib/prefetch.js";
28
- import { useRowPresence as ms, rowPresenceKey as ps } from "../../lib/presence-hooks.js";
29
- import { buildGroups as bs } from "../../lib/queue-grouping.js";
30
- import { cascadeFilter as hs, fetchCascadeRelations as fs } from "../../lib/quick-filter-cascade.js";
31
- import { useOptionalRealtime as gs } from "../../lib/realtime.js";
32
- import { copyIdText as Fa } from "../../lib/record-ref.js";
33
- import { rowHighlightTextClass as xs, rowHighlightClass as ys } from "../../lib/row-highlight.js";
10
+ import { useNivaroClient as Aa, useItemEditAuth as $a, useItemNavigation as Oo, useNavigation as Do, useOverlayState as Po } from "../../context.js";
11
+ import { useDebounced as Ko } from "../../hooks/useDebounced.js";
12
+ import { useElapsedLoading as Mo } from "../../hooks/useElapsedLoading.js";
13
+ import { useSlowReason as Qo } from "../../hooks/useSlowReason.js";
14
+ import { useBulkProgressFeed as Bo } from "../../lib/bulk-progress.js";
15
+ import { get as L, post as ie, patch as qa, del as Gn, put as jo } from "../../lib/commands.js";
16
+ import { deepenForLightSurface as Uo } from "../../lib/display-prefs.js";
17
+ import { evaluateExpression as Io } from "../../lib/expression.js";
18
+ import { clauseFromControlValue as Vo, filterSentence as Go } from "../../lib/filter-sentence.js";
19
+ import { deliverLive as Wo, releaseLiveOwner as Ho } from "../../lib/focus-mode.js";
20
+ import { formatMultiValue as rt, formatValue as Yo } from "../../lib/format-value.js";
21
+ import { createCursorBook as Jo, pageRequest as zo, noteNextCursor as Xo } from "../../lib/keyset-pager.js";
22
+ import { normalizeInlineEdit as Zo, inlineM2oTarget as es, inlineChoices as ts, inlineEditFor as ns, nextInlineKey as rs } from "../../lib/list-inline-edit.js";
23
+ import { sanitizeQueueLinkState as as, readListLinkFromLocation as ls, dropListLinkParam as os } from "../../lib/list-link.js";
24
+ import { expandCoalesced as ss, LIVE_ASPECTS as $t } from "../../lib/live.js";
25
+ import { useRowChanges as is, useRowLocksByCollection as cs, lockLabel as ds } from "../../lib/live-list.js";
26
+ import { OPEN_IN_TABS_CAP as us, openInTabs as ms, openInTabsMessage as Fa } from "../../lib/open-in-tabs.js";
27
+ import { isOwnWrite as ps } from "../../lib/own-writes.js";
28
+ import { usePrefetchIntent as bs } from "../../lib/prefetch.js";
29
+ import { useRowPresence as fs, rowPresenceKey as hs } from "../../lib/presence-hooks.js";
30
+ import { buildGroups as gs } from "../../lib/queue-grouping.js";
31
+ import { cascadeFilter as xs, fetchCascadeRelations as ys } from "../../lib/quick-filter-cascade.js";
32
+ import { useOptionalRealtime as ks } from "../../lib/realtime.js";
33
+ import { copyIdText as Ta } from "../../lib/record-ref.js";
34
+ import { rowHighlightTextClass as vs, rowHighlightClass as ws } from "../../lib/row-highlight.js";
34
35
  import { userErrorMessage as qt } from "../../lib/safe-error.js";
35
- import { useMyScopes as ks, matchScopeDimension as vs } from "../../lib/use-my-scopes.js";
36
- import { useNewItemLayouts as ws } from "../../lib/use-new-item-layouts.js";
37
- import { formatNumber as ce, cn as E, titleCase as Gn, humanHours as _s, formatRelative as Ns, formatDateTime as Ss, formatDate as Cs } from "../../lib/utils.js";
38
- import { usePublishAskContext as $s, useAskRecordDrag as qs } from "../ai/ask-context.js";
39
- import { useBuiltinGate as Fs, BulkActionButtons as Ts } from "../bulk/BulkActionButtons.js";
40
- import { BulkRowMark as Rs } from "../bulk/BulkRowMark.js";
41
- import { RowActionsMenu as Es, roleMayUpdate as Ls } from "../CollectionBrowserView.js";
42
- import { DataTable as As } from "../DataTable.js";
43
- import { EmptyState as Os } from "../EmptyState.js";
44
- import { FocusModeToggle as Ds } from "../FocusModeToggle.js";
45
- import { FulfilmentPill as Ks, FULFILMENT_FILTER_OPTIONS as Ps } from "../FulfilmentPill.js";
46
- import { ImportFromFileButton as Ms } from "../import/ImportFromFileButton.js";
47
- import { IntegrationDots as Qs, INTEGRATIONS_FILTER_OPTIONS as Bs } from "../integrations/IntegrationDots.js";
48
- import { IntegrationsFilterPill as js } from "../integrations/IntegrationsFilterPill.js";
49
- import { readQueueReturn as Us, writeQueueReturn as Ta } from "../item-edit/QueueReturnChip.js";
50
- import { ListLoadError as Is } from "../ListLoadError.js";
51
- import { LiveRowMark as Vs } from "../LiveRowMark.js";
52
- import { CopyListLinkButton as Gs } from "../list/CopyListLinkButton.js";
53
- import { useInlineEdit as Ws, InlineEditCell as Hs } from "../list/InlineEdit.js";
54
- import { usePickerExcludedRows as Ys, PICKER_EXCLUDED_ROW_CLASS as Js, PICKER_EXCLUDED_TITLE as zs } from "../PickerExcludedRows.js";
55
- import { RealtimeStaleMark as Xs } from "../RealtimeStatusBanner.js";
56
- import { RecordDrilldownSheet as Zs } from "../RecordDrilldownSheet.js";
57
- import { RowHighlightLegend as ei } from "../RowHighlightLegend.js";
58
- import { RowPresence as ti } from "../RowPresence.js";
59
- import { TickerNumber as Wn } from "../TickerNumber.js";
60
- import { UnseenDot as ni } from "../UnseenDot.js";
61
- import { Badge as ri } from "../ui/badge.js";
62
- import { Checkbox as Hn } from "../ui/checkbox.js";
63
- import { Command as Ra, CommandInput as ai, CommandList as Ea, CommandEmpty as li, CommandItem as Ft } from "../ui/command.js";
64
- import { Label as oi } from "../ui/label.js";
65
- import { Popover as rt, PopoverTrigger as at, PopoverContent as lt } from "../ui/popover.js";
66
- import { Skeleton as si } from "../ui/skeleton.js";
67
- import { dedupeChooserKeys as ii } from "./column-chooser.js";
68
- import { groupSumPathsFor as ci } from "./group-sums.js";
69
- import { statsOutrunRows as di, stateAspectEffect as ui } from "./live-state-aspect.js";
70
- import { OwnerAvatars as mi } from "./OwnerAvatars.js";
71
- import { pathHeader as pi } from "./path-label.js";
72
- import { QueueBulkBar as bi } from "./QueueBulkBar.js";
73
- import { QueueItemSheet as hi } from "./QueueItemSheet.js";
74
- import { QueueKanbanBoard as fi } from "./QueueKanbanBoard.js";
75
- import { QueueQuickFilters as gi } from "./QueueQuickFilters.js";
76
- import { QueueWorkloadView as xi } from "./QueueWorkloadView.js";
77
- import { useTransitionNote as yi, needsTransitionNote as ki } from "./transition-note.js";
78
- function vi({ summary: l }) {
36
+ import { useMyScopes as _s, matchScopeDimension as Ns } from "../../lib/use-my-scopes.js";
37
+ import { useNewItemLayouts as Ss } from "../../lib/use-new-item-layouts.js";
38
+ import { formatNumber as ce, cn as q, titleCase as Wn, humanHours as Cs, formatRelative as $s, formatDateTime as qs, formatDate as Fs } from "../../lib/utils.js";
39
+ import { usePublishAskContext as Ts, useAskRecordDrag as Rs } from "../ai/ask-context.js";
40
+ import { useBuiltinGate as Es, BulkActionButtons as Ls } from "../bulk/BulkActionButtons.js";
41
+ import { BulkRowMark as As } from "../bulk/BulkRowMark.js";
42
+ import { RowActionsMenu as Os, roleMayUpdate as Ds } from "../CollectionBrowserView.js";
43
+ import { DataTable as Ps } from "../DataTable.js";
44
+ import { EmptyState as Ks } from "../EmptyState.js";
45
+ import { FocusModeToggle as Ms } from "../FocusModeToggle.js";
46
+ import { FulfilmentPill as Qs, FULFILMENT_FILTER_OPTIONS as Bs } from "../FulfilmentPill.js";
47
+ import { ImportFromFileButton as js } from "../import/ImportFromFileButton.js";
48
+ import { IntegrationDots as Us, INTEGRATIONS_FILTER_OPTIONS as Is } from "../integrations/IntegrationDots.js";
49
+ import { IntegrationsFilterPill as Vs } from "../integrations/IntegrationsFilterPill.js";
50
+ import { readQueueReturn as Gs, writeQueueReturn as Ra } from "../item-edit/QueueReturnChip.js";
51
+ import { ListLoadError as Ws } from "../ListLoadError.js";
52
+ import { LiveRowMark as Hs } from "../LiveRowMark.js";
53
+ import { CopyListLinkButton as Ys } from "../list/CopyListLinkButton.js";
54
+ import { useInlineEdit as Js, InlineEditCell as zs } from "../list/InlineEdit.js";
55
+ import { usePickerExcludedRows as Xs, PICKER_EXCLUDED_ROW_CLASS as Zs, PICKER_EXCLUDED_TITLE as ei } from "../PickerExcludedRows.js";
56
+ import { RealtimeStaleMark as ti } from "../RealtimeStatusBanner.js";
57
+ import { RecordDrilldownSheet as ni } from "../RecordDrilldownSheet.js";
58
+ import { RowHighlightLegend as ri } from "../RowHighlightLegend.js";
59
+ import { RowPresence as ai } from "../RowPresence.js";
60
+ import { TickerNumber as Hn } from "../TickerNumber.js";
61
+ import { UnseenDot as li } from "../UnseenDot.js";
62
+ import { Badge as oi } from "../ui/badge.js";
63
+ import { Checkbox as Yn } from "../ui/checkbox.js";
64
+ import { Command as Ea, CommandInput as si, CommandList as La, CommandEmpty as ii, CommandItem as Ft } from "../ui/command.js";
65
+ import { Label as ci } from "../ui/label.js";
66
+ import { Popover as at, PopoverTrigger as lt, PopoverContent as ot } from "../ui/popover.js";
67
+ import { Skeleton as di } from "../ui/skeleton.js";
68
+ import { dedupeChooserKeys as ui } from "./column-chooser.js";
69
+ import { groupSumPathsFor as mi } from "./group-sums.js";
70
+ import { offscreenPill as pi, statsOutrunRows as bi, stateAspectEffect as fi } from "./live-state-aspect.js";
71
+ import { OwnerAvatars as hi } from "./OwnerAvatars.js";
72
+ import { pathHeader as gi } from "./path-label.js";
73
+ import { QueueBulkBar as xi } from "./QueueBulkBar.js";
74
+ import { QueueItemSheet as yi } from "./QueueItemSheet.js";
75
+ import { QueueKanbanBoard as ki } from "./QueueKanbanBoard.js";
76
+ import { QueueQuickFilters as vi } from "./QueueQuickFilters.js";
77
+ import { QueueWorkloadView as wi } from "./QueueWorkloadView.js";
78
+ import { useTransitionNote as _i, needsTransitionNote as Ni } from "./transition-note.js";
79
+ function Si({ summary: l }) {
79
80
  if (!l || l.count === 0)
80
81
  return /* @__PURE__ */ a("span", { className: "text-slate-300 dark:text-muted-foreground", children: "—" });
81
- const k = [l.last_from, l.last_to].filter(Boolean).join(" → "), K = [
82
+ const k = [l.last_from, l.last_to].filter(Boolean).join(" → "), P = [
82
83
  k ? `Last: ${k}` : null,
83
- l.last_at ? Ns(l.last_at) : null,
84
+ l.last_at ? $s(l.last_at) : null,
84
85
  l.last_reason ? `“${l.last_reason}”` : "no reason given"
85
86
  ].filter(Boolean).join(" · ");
86
87
  return /* @__PURE__ */ d(
87
88
  "span",
88
89
  {
89
90
  className: "inline-flex max-w-[260px] items-center gap-1.5 truncate rounded-full border border-rose-200 bg-rose-50 px-2 py-0.5 text-[11px] font-medium text-rose-700 dark:border-rose-900/40 dark:bg-rose-900/10 dark:text-rose-300",
90
- "data-tip": K,
91
+ "data-tip": P,
91
92
  "data-send-backs": l.count,
92
93
  children: [
93
94
  /* @__PURE__ */ d("span", { className: "tabular-nums", children: [
@@ -102,20 +103,20 @@ function vi({ summary: l }) {
102
103
  }
103
104
  );
104
105
  }
105
- const wi = 50, rn = "nivaro_addendums", _i = [
106
+ const Ci = 50, rn = "nivaro_addendums", $i = [
106
107
  { value: "mine", label: "My Items" },
107
108
  { value: "unowned", label: "No Owners" },
108
109
  { value: "claimed", label: "Claimed by me" },
109
110
  { value: "all", label: "All Items" }
110
111
  ];
111
- function Ni({ summary: l }) {
112
+ function qi({ summary: l }) {
112
113
  if (!l || l.total === 0) return /* @__PURE__ */ a("span", { className: "text-slate-300", children: "—" });
113
- const k = l.active > 0, K = l.latest_status === "review" ? "in review" : l.latest_status ?? "active", M = l.cost_impact, G = M != null && M !== 0 ? `${M > 0 ? "+" : "−"}$${Math.abs(M).toLocaleString(void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : null;
114
+ const k = l.active > 0, P = l.latest_status === "review" ? "in review" : l.latest_status ?? "active", M = l.cost_impact, W = M != null && M !== 0 ? `${M > 0 ? "+" : "−"}$${Math.abs(M).toLocaleString(void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : null;
114
115
  return /* @__PURE__ */ d(
115
116
  "span",
116
117
  {
117
118
  title: l.latest_title ?? void 0,
118
- className: E(
119
+ className: q(
119
120
  "inline-flex max-w-[220px] items-center gap-1.5 truncate rounded-full border px-2 py-0.5 text-[11px] font-medium",
120
121
  k ? "border-amber-300 bg-amber-50 text-amber-800 dark:border-amber-500/50 dark:bg-amber-500/10 dark:text-amber-300" : "border-slate-200 bg-slate-50 text-slate-600 dark:border-border dark:bg-muted dark:text-slate-300"
121
122
  ),
@@ -124,36 +125,36 @@ function Ni({ summary: l }) {
124
125
  "span",
125
126
  {
126
127
  "aria-hidden": !0,
127
- className: E(
128
+ className: q(
128
129
  "h-1.5 w-1.5 shrink-0 rounded-full",
129
130
  k ? "bg-amber-500" : "bg-slate-400"
130
131
  )
131
132
  }
132
133
  ),
133
- k ? `${l.active} ${l.active === 1 ? "addendum" : "addendums"} ${K}` : `${l.total} ${K}`,
134
- G && /* @__PURE__ */ d("span", { className: "tabular-nums opacity-80", children: [
134
+ k ? `${l.active} ${l.active === 1 ? "addendum" : "addendums"} ${P}` : `${l.total} ${P}`,
135
+ W && /* @__PURE__ */ d("span", { className: "tabular-nums opacity-80", children: [
135
136
  "· ",
136
- G
137
+ W
137
138
  ] })
138
139
  ]
139
140
  }
140
141
  );
141
142
  }
142
- function Si(l) {
143
- return _s(l);
143
+ function Fi(l) {
144
+ return Cs(l);
144
145
  }
145
- function Ci({ status: l }) {
146
- return l ? /* @__PURE__ */ a("span", { className: E("rounded px-1.5 py-0.5 text-[11px] font-medium", l === "breached" ? "bg-red-50 text-red-600 dark:bg-red-500/10 dark:text-red-400" : l === "warning" ? "bg-amber-50 text-amber-600 dark:bg-amber-500/10 dark:text-amber-400" : "bg-emerald-50 text-emerald-600 dark:bg-emerald-500/10 dark:text-emerald-400"), children: l }) : /* @__PURE__ */ a("span", { className: "text-slate-300", children: "—" });
146
+ function Ti({ status: l }) {
147
+ return l ? /* @__PURE__ */ a("span", { className: q("rounded px-1.5 py-0.5 text-[11px] font-medium", l === "breached" ? "bg-red-50 text-red-600 dark:bg-red-500/10 dark:text-red-400" : l === "warning" ? "bg-amber-50 text-amber-600 dark:bg-amber-500/10 dark:text-amber-400" : "bg-emerald-50 text-emerald-600 dark:bg-emerald-500/10 dark:text-emerald-400"), children: l }) : /* @__PURE__ */ a("span", { className: "text-slate-300", children: "—" });
147
148
  }
148
- function $i({ points: l, inline: k = !1 }) {
149
+ function Ri({ points: l, inline: k = !1 }) {
149
150
  if (l.length < 2) return null;
150
- const K = k ? 40 : 64, M = k ? 14 : 18, G = Math.max(...l), f = Math.min(...l), h = G - f || 1, N = K / (l.length - 1), H = l.map(
151
- (ye, g) => `${g === 0 ? "M" : "L"}${(g * N).toFixed(1)},${(M - 2 - (ye - f) / h * (M - 4)).toFixed(1)}`
151
+ const P = k ? 40 : 64, M = k ? 14 : 18, W = Math.max(...l), h = Math.min(...l), f = W - h || 1, N = P / (l.length - 1), H = l.map(
152
+ (ke, g) => `${g === 0 ? "M" : "L"}${(g * N).toFixed(1)},${(M - 2 - (ke - h) / f * (M - 4)).toFixed(1)}`
152
153
  ).join(" ");
153
154
  return /* @__PURE__ */ a(
154
155
  "svg",
155
156
  {
156
- width: K,
157
+ width: P,
157
158
  height: M,
158
159
  className: k ? "opacity-40" : "mt-1.5 opacity-40",
159
160
  "aria-hidden": "true",
@@ -164,39 +165,49 @@ function $i({ points: l, inline: k = !1 }) {
164
165
  function Tt({
165
166
  label: l,
166
167
  count: k,
167
- filteredCount: K,
168
+ filteredCount: P,
168
169
  active: M,
169
- isLoading: G,
170
- tone: f,
171
- trend: h,
170
+ isLoading: W,
171
+ tone: h,
172
+ trend: f,
172
173
  delta: N,
173
174
  deltaBadIsUp: H,
174
- onClick: ye
175
+ onClick: ke
175
176
  }) {
176
177
  return /* @__PURE__ */ a(
177
178
  "button",
178
179
  {
179
180
  type: "button",
180
- onClick: ye,
181
- className: E(
181
+ onClick: ke,
182
+ className: q(
182
183
  "nvr-section-enter flex items-center gap-1.5 bg-white px-3 py-2 text-left transition-colors hover:bg-slate-50 dark:bg-card dark:hover:bg-card/80",
183
- M && "bg-nvr-cyan/5 ring-1 ring-inset ring-nvr-cyan dark:bg-nvr-cyan/10",
184
- !M && !G && k === 0 && "opacity-50"
184
+ // Grows to fill its row when the strip wraps on a narrow screen (army 9 b08 N-R9-7).
185
+ "grow justify-center sm:justify-start",
186
+ M && "bg-nvr-cyan/5 ring-1 ring-inset ring-nvr-cyan dark:bg-nvr-cyan/10"
185
187
  ),
186
- children: G ? /* @__PURE__ */ a(si, { className: "h-5 w-16 rounded" }) : /* @__PURE__ */ d(qe, { children: [
187
- /* @__PURE__ */ a("span", { className: "flex items-baseline gap-1 text-[15px] font-semibold leading-none tabular-nums text-slate-900 dark:text-foreground", children: K != null ? /* @__PURE__ */ d(qe, { children: [
188
- /* @__PURE__ */ a("span", { className: "text-nvr-navy dark:text-nvr-cyan", children: /* @__PURE__ */ a(Wn, { value: K, format: ce }) }),
189
- /* @__PURE__ */ d("span", { className: "text-[11px] font-medium text-slate-400", children: [
190
- "/ ",
191
- /* @__PURE__ */ a(Wn, { value: k, format: ce })
192
- ] })
193
- ] }) : /* @__PURE__ */ a(Wn, { value: k, format: ce }) }),
188
+ children: W ? /* @__PURE__ */ a(di, { className: "h-5 w-16 rounded" }) : /* @__PURE__ */ d(ye, { children: [
189
+ /* @__PURE__ */ a(
190
+ "span",
191
+ {
192
+ className: q(
193
+ "flex items-baseline gap-1 text-[15px] font-semibold leading-none tabular-nums",
194
+ k === 0 && !M ? "text-slate-500 dark:text-slate-400" : "text-slate-900 dark:text-foreground"
195
+ ),
196
+ children: P != null ? /* @__PURE__ */ d(ye, { children: [
197
+ /* @__PURE__ */ a("span", { className: "text-nvr-navy dark:text-nvr-cyan", children: /* @__PURE__ */ a(Hn, { value: P, format: ce }) }),
198
+ /* @__PURE__ */ d("span", { className: "text-[11px] font-medium text-slate-500 dark:text-slate-400", children: [
199
+ "/ ",
200
+ /* @__PURE__ */ a(Hn, { value: k, format: ce })
201
+ ] })
202
+ ] }) : /* @__PURE__ */ a(Hn, { value: k, format: ce })
203
+ }
204
+ ),
194
205
  /* @__PURE__ */ a(
195
206
  "span",
196
207
  {
197
- className: E(
198
- "text-[11px] font-medium leading-none",
199
- f === "red" ? "text-red-500 dark:text-red-400" : f === "amber" ? "text-amber-600 dark:text-amber-400" : "text-slate-400 dark:text-muted-foreground"
208
+ className: q(
209
+ "whitespace-nowrap text-[11px] font-medium leading-none",
210
+ h === "red" ? "text-red-700 dark:text-red-400" : h === "amber" ? "text-amber-800 dark:text-amber-400" : "text-slate-500 dark:text-muted-foreground"
200
211
  ),
201
212
  children: l
202
213
  }
@@ -204,9 +215,9 @@ function Tt({
204
215
  N != null && N !== 0 && /* @__PURE__ */ d(
205
216
  "span",
206
217
  {
207
- className: E(
218
+ className: q(
208
219
  "text-[10px] font-medium leading-none",
209
- H ? N > 0 ? "text-red-500" : "text-emerald-600" : "text-slate-400"
220
+ H ? N > 0 ? "text-red-700 dark:text-red-400" : "text-emerald-700 dark:text-emerald-400" : "text-slate-500 dark:text-slate-400"
210
221
  ),
211
222
  children: [
212
223
  N > 0 ? "↑" : "↓",
@@ -214,27 +225,27 @@ function Tt({
214
225
  ]
215
226
  }
216
227
  ),
217
- h && k > 0 && /* @__PURE__ */ a($i, { points: h, inline: !0 })
228
+ f && k > 0 && /* @__PURE__ */ a(Ri, { points: f, inline: !0 })
218
229
  ] })
219
230
  }
220
231
  );
221
232
  }
222
- function qi({
233
+ function Ei({
223
234
  label: l,
224
235
  count: k,
225
- filteredCount: K,
236
+ filteredCount: P,
226
237
  color: M,
227
- active: G,
228
- onClick: f
238
+ active: W,
239
+ onClick: h
229
240
  }) {
230
241
  return /* @__PURE__ */ d(
231
242
  "button",
232
243
  {
233
244
  type: "button",
234
- onClick: f,
235
- className: E(
245
+ onClick: h,
246
+ className: q(
236
247
  "flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-[12px] font-medium transition-colors",
237
- G ? "border-nvr-cyan bg-nvr-cyan/10 text-nvr-navy dark:text-nvr-cyan" : "border-slate-200 bg-white text-slate-600 hover:border-slate-300 hover:bg-slate-50 dark:border-border dark:bg-card dark:text-slate-300"
248
+ W ? "border-nvr-cyan bg-nvr-cyan/10 text-nvr-navy dark:text-nvr-cyan" : "border-slate-200 bg-white text-slate-600 hover:border-slate-300 hover:bg-slate-50 dark:border-border dark:bg-card dark:text-slate-300"
238
249
  ),
239
250
  children: [
240
251
  /* @__PURE__ */ a(
@@ -245,8 +256,8 @@ function qi({
245
256
  }
246
257
  ),
247
258
  l,
248
- /* @__PURE__ */ a("span", { className: "font-semibold tabular-nums text-slate-900 dark:text-foreground", children: K != null ? /* @__PURE__ */ d(qe, { children: [
249
- /* @__PURE__ */ a("span", { className: "text-nvr-navy dark:text-nvr-cyan", children: ce(K) }),
259
+ /* @__PURE__ */ a("span", { className: "font-semibold tabular-nums text-slate-900 dark:text-foreground", children: P != null ? /* @__PURE__ */ d(ye, { children: [
260
+ /* @__PURE__ */ a("span", { className: "text-nvr-navy dark:text-nvr-cyan", children: ce(P) }),
250
261
  /* @__PURE__ */ d("span", { className: "font-normal text-slate-400", children: [
251
262
  " / ",
252
263
  ce(k)
@@ -256,68 +267,68 @@ function qi({
256
267
  }
257
268
  );
258
269
  }
259
- const je = pi;
260
- function Fi({
270
+ const je = gi;
271
+ function Li({
261
272
  id: l,
262
273
  label: k,
263
- checked: K,
274
+ checked: P,
264
275
  onCheckedChange: M
265
276
  }) {
266
- const { attributes: G, listeners: f, setNodeRef: h, transform: N, transition: H, isDragging: ye } = uo({
277
+ const { attributes: W, listeners: h, setNodeRef: f, transform: N, transition: H, isDragging: ke } = po({
267
278
  id: l
268
279
  }), g = {
269
- transform: mo.Transform.toString(N),
280
+ transform: bo.Transform.toString(N),
270
281
  transition: H,
271
- opacity: ye ? 0.4 : 1
282
+ opacity: ke ? 0.4 : 1
272
283
  }, Y = `col-toggle-${l}`;
273
- return /* @__PURE__ */ d("div", { ref: h, style: g, className: "flex items-center gap-2 text-[12px]", children: [
284
+ return /* @__PURE__ */ d("div", { ref: f, style: g, className: "flex items-center gap-2 text-[12px]", children: [
274
285
  /* @__PURE__ */ a(
275
286
  "span",
276
287
  {
277
- ...G,
278
- ...f,
288
+ ...W,
289
+ ...h,
279
290
  className: "cursor-grab text-slate-300 hover:text-slate-500 dark:text-muted-foreground",
280
- children: /* @__PURE__ */ a(Eo, { className: "h-3.5 w-3.5" })
291
+ children: /* @__PURE__ */ a(Ao, { className: "h-3.5 w-3.5" })
281
292
  }
282
293
  ),
283
- /* @__PURE__ */ a(Hn, { id: Y, checked: K, onCheckedChange: M }),
284
- /* @__PURE__ */ a(oi, { htmlFor: Y, className: "cursor-pointer text-[12px] font-normal", children: k })
294
+ /* @__PURE__ */ a(Yn, { id: Y, checked: P, onCheckedChange: M }),
295
+ /* @__PURE__ */ a(ci, { htmlFor: Y, className: "cursor-pointer text-[12px] font-normal", children: k })
285
296
  ] });
286
297
  }
287
- function rd({
298
+ function id({
288
299
  queueId: l,
289
300
  realtime: k,
290
- renderError: K,
301
+ renderError: P,
291
302
  hideCreateActions: M = !1,
292
- onAsk: G
303
+ onAsk: W
293
304
  }) {
294
- var la, oa, sa, ia, ca, da, ua, ma, pa, ba, ha, fa, ga, xa, ya, ka, va;
295
- const f = po(), h = La(), { userId: N } = Ca(), H = Lo(), { navigate: ye } = Ao(), [g, Y] = v("all"), [de, A] = v(1), Yn = U(Wo()), [Rt, Aa] = v(() => {
305
+ var oa, sa, ia, ca, da, ua, ma, pa, ba, fa, ha, ga, xa, ya, ka, va, wa;
306
+ const h = fo(), f = Aa(), { userId: N } = $a(), H = Oo(), { navigate: ke } = Do(), [g, Y] = v("all"), [de, A] = v(1), Jn = j(Jo()), [Rt, Oa] = v(() => {
296
307
  try {
297
308
  return localStorage.getItem("nvr_table_density") === "comfortable" ? "comfortable" : "compact";
298
309
  } catch {
299
310
  return "compact";
300
311
  }
301
- }), [C, Ue] = v("table"), [I, Ie] = v(""), [_, Q] = v({}), [Et, Jn] = v(() => /* @__PURE__ */ new Set()), [$, ot] = v(null), [ke, an] = v(/* @__PURE__ */ new Set()), [st, ln] = v(null), [it, on] = v(null), [sn, Lt] = v(0), Fe = ls(), cn = gs(), dn = U({}).current, zn = U(/* @__PURE__ */ new Set()), [Oa, Da] = v(0), [Xn, Ka] = v(0), ue = U(!1), At = U([]), Zn = U(null), un = U(!1), mn = U(0), pn = U("table");
302
- pn.current = C;
303
- const bn = 25, { data: c, error: Ot } = W({
312
+ }), [S, Ue] = v("table"), [I, Ie] = v(""), [w, Q] = v({}), [Et, zn] = v(() => /* @__PURE__ */ new Set()), [$, st] = v(null), [ve, an] = v(/* @__PURE__ */ new Set()), [it, ln] = v(null), [ct, on] = v(null), [sn, Lt] = v(0), cn = j(0), Fe = is(), dn = ks(), un = j({}).current, Xn = j(/* @__PURE__ */ new Set()), [Da, Pa] = v(0), [Zn, Ka] = v(0), ue = j(!1), At = j([]), er = j(null), mn = j(!1), pn = j(0), bn = j("table");
313
+ bn.current = S;
314
+ const fn = 25, { data: c, error: Ot } = G({
304
315
  queryKey: ["queue-meta", l],
305
- queryFn: () => h.request(L(`/queues/${l}`)).then((e) => e.data),
316
+ queryFn: () => f.request(L(`/queues/${l}`)).then((e) => e.data),
306
317
  enabled: !!l
307
- }), { scopes: Dt, ready: er } = ks(), tr = U(!1), [nr, rr] = v(!1), [Te, Pa] = v({}), me = U({});
308
- P(() => {
309
- if (tr.current || !er || !c) return;
310
- tr.current = !0;
318
+ }), { scopes: Dt, ready: tr } = _s(), nr = j(!1), [rr, ar] = v(!1), [Te, Ma] = v({}), me = j({});
319
+ K(() => {
320
+ if (nr.current || !tr || !c) return;
321
+ nr.current = !0;
311
322
  const e = (c.extra_field_meta ?? []).filter(
312
323
  (t) => t.kind === "relation" && t.target_collection && t.display_field
313
324
  );
314
325
  if (e.length === 0 || !Dt) {
315
- rr(!0);
326
+ ar(!0);
316
327
  return;
317
328
  }
318
329
  (async () => {
319
330
  const t = {}, n = {}, r = async (o, s) => {
320
- const m = await h.request(
331
+ const m = await f.request(
321
332
  L(`/items/${o.target_collection}`, {
322
333
  filter: JSON.stringify({ id: { _in: s } }),
323
334
  fields: `id,${o.display_field}`,
@@ -331,24 +342,24 @@ function rd({
331
342
  ];
332
343
  };
333
344
  for (const o of e) {
334
- const s = vs(Dt, { collection: o.target_collection });
345
+ const s = Ns(Dt, { collection: o.target_collection });
335
346
  if (!s) continue;
336
347
  const m = `extra.${o.path}`;
337
348
  try {
338
349
  const p = Dt.restricted[s.name] ?? [];
339
350
  if (p.length > 0) {
340
- const S = await r(o, p);
341
- S.length > 0 && (n[m.slice(6)] = S);
351
+ const C = await r(o, p);
352
+ C.length > 0 && (n[m.slice(6)] = C);
342
353
  }
343
354
  } catch {
344
355
  }
345
356
  }
346
- Object.keys(n).length > 0 && Pa(n), Object.keys(t).length > 0 && (me.current = t, Q((o) => ({ ...o, ...t }))), rr(!0);
357
+ Object.keys(n).length > 0 && Ma(n), Object.keys(t).length > 0 && (me.current = t, Q((o) => ({ ...o, ...t }))), ar(!0);
347
358
  })();
348
- }, [er, Dt, c]);
349
- const Ve = ((oa = (la = c == null ? void 0 : c.sources) == null ? void 0 : la.find((e) => e.type === "collection")) == null ? void 0 : oa.collection) ?? null, { data: ar = [] } = W({
359
+ }, [tr, Dt, c]);
360
+ const Ve = ((sa = (oa = c == null ? void 0 : c.sources) == null ? void 0 : oa.find((e) => e.type === "collection")) == null ? void 0 : sa.collection) ?? null, { data: lr = [] } = G({
350
361
  queryKey: ["queue-browser-quick-filters", Ve],
351
- queryFn: () => h.request(L(`/collections/${Ve}`)).then((e) => {
362
+ queryFn: () => f.request(L(`/collections/${Ve}`)).then((e) => {
352
363
  var t, n;
353
364
  return ((n = (t = e.data) == null ? void 0 : t.browser_config) == null ? void 0 : n.quick_filters) ?? [];
354
365
  }).catch(() => []),
@@ -359,9 +370,9 @@ function rd({
359
370
  for (const n of (c == null ? void 0 : c.sources) ?? [])
360
371
  n.type !== "collection" || !n.collection || e.has(n.collection) || (e.add(n.collection), t.push(n.collection));
361
372
  return t;
362
- }, [c == null ? void 0 : c.sources]), Kt = ws(
373
+ }, [c == null ? void 0 : c.sources]), Pt = Ss(
363
374
  re.length === 1 ? re[0] : null
364
- ), hn = M === !0 || Array.isArray(M) && re.length > 0 && re.every((e) => M.includes(e)), pe = (c == null ? void 0 : c.claims_enabled) !== !1, u = c == null ? void 0 : c.display_config, Re = (u == null ? void 0 : u.views) ?? ["table", "kanban", "workload"], Ma = (u == null ? void 0 : u.work_next) !== !1, Pt = (u == null ? void 0 : u.bulk_actions) !== !1, fn = Fs(
375
+ ), hn = M === !0 || Array.isArray(M) && re.length > 0 && re.every((e) => M.includes(e)), pe = (c == null ? void 0 : c.claims_enabled) !== !1, u = c == null ? void 0 : c.display_config, Re = (u == null ? void 0 : u.views) ?? ["table", "kanban", "workload"], Qa = (u == null ? void 0 : u.work_next) !== !1, Kt = (u == null ? void 0 : u.bulk_actions) !== !1, gn = Es(
365
376
  [
366
377
  ...new Set(
367
378
  ((c == null ? void 0 : c.sources) ?? []).filter((e) => e.type === "collection" && e.collection).map((e) => e.collection)
@@ -371,16 +382,16 @@ function rd({
371
382
  ), T = (e, t) => {
372
383
  var n, r;
373
384
  return ((r = (n = c == null ? void 0 : c.column_aliases) == null ? void 0 : n[e]) == null ? void 0 : r.trim()) || t;
374
- }, lr = U(!1);
375
- P(() => {
376
- !c || lr.current || (lr.current = !0, Ie("-priority"));
385
+ }, or = j(!1);
386
+ K(() => {
387
+ !c || or.current || (or.current = !0, Ie("-priority"));
377
388
  }, [c]);
378
- const [J, Qa] = v(!1);
379
- P(() => {
380
- c != null && c.display_config && !Re.includes(C) && Ue(Re[0]);
381
- }, [c, C, Re]), P(() => {
389
+ const [J, Ba] = v(!1);
390
+ K(() => {
391
+ c != null && c.display_config && !Re.includes(S) && Ue(Re[0]);
392
+ }, [c, S, Re]), K(() => {
382
393
  if (!(c != null && c.sources)) return;
383
- const e = cn ? (b, R) => cn.subscribeCollections(b, R) : k == null ? void 0 : k.subscribe;
394
+ const e = dn ? (b, R) => dn.subscribeCollections(b, R) : k == null ? void 0 : k.subscribe;
384
395
  if (!e) return;
385
396
  const t = [
386
397
  ...new Set(
@@ -396,42 +407,42 @@ function rd({
396
407
  }, 1500));
397
408
  }, p = () => {
398
409
  o || (o = setTimeout(() => {
399
- if (o = null, mn.current > 0 || un.current) {
410
+ if (o = null, pn.current > 0 || mn.current) {
400
411
  At.current = [], Lt((b) => b + 1);
401
412
  return;
402
413
  }
403
- ue.current = !0, f.invalidateQueries({ queryKey: ["queue-items", l] }), f.invalidateQueries({ queryKey: ["queue-workload", l] });
414
+ ue.current = !0, h.invalidateQueries({ queryKey: ["queue-items", l] }), h.invalidateQueries({ queryKey: ["queue-workload", l] });
404
415
  }, 900));
405
- }, S = (b) => {
416
+ }, C = (b) => {
406
417
  let R = !1, y = 0, X = !1;
407
418
  const Z = b.flatMap(
408
- (F) => F ? as(F) : [F]
419
+ (E) => E ? ss(E) : [E]
409
420
  );
410
- for (const F of Z) {
411
- const ne = F == null ? void 0 : F.changed_fields, tn = (F == null ? void 0 : F.collection) != null ? `${F.collection}:${String(F.item)}` : null, wa = tn != null && zn.current.has(tn);
412
- if (F && !F.action && (ne != null && ne.length) && ne.every((Ce) => Ce.startsWith("$"))) {
413
- if (ne.includes($t.tasks) && n.add("queue-task-counts"), ne.includes($t.integrations) && n.add("queue-integrations-summary"), ne.includes($t.addendums) && n.add("queue-collection-addendums"), ne.includes($t.lock) && Da((Ce) => Ce + 1), ne.includes($t.state)) {
414
- const Ce = ui(wa, pn.current === "kanban");
415
- X = !0, Ce.refresh && (R = !0), y += Ce.pill;
421
+ for (const E of Z) {
422
+ const ne = E == null ? void 0 : E.changed_fields, tn = (E == null ? void 0 : E.collection) != null ? `${E.collection}:${String(E.item)}` : null, _a = tn != null && Xn.current.has(tn);
423
+ if (E && !E.action && (ne != null && ne.length) && ne.every(($e) => $e.startsWith("$"))) {
424
+ if (ne.includes($t.tasks) && n.add("queue-task-counts"), ne.includes($t.integrations) && n.add("queue-integrations-summary"), ne.includes($t.addendums) && n.add("queue-collection-addendums"), ne.includes($t.lock) && Pa(($e) => $e + 1), ne.includes($t.state)) {
425
+ const $e = fi(_a, bn.current === "kanban");
426
+ X = !0, $e.refresh && (R = !0), y += $e.pill;
416
427
  }
417
428
  r || (r = setTimeout(() => {
418
429
  r = null;
419
- for (const Ce of n) f.invalidateQueries({ queryKey: [Ce] });
430
+ for (const $e of n) h.invalidateQueries({ queryKey: [$e] });
420
431
  n.clear();
421
432
  }, 300));
422
433
  continue;
423
434
  }
424
435
  X = !0;
425
- const to = (F == null ? void 0 : F.collection) != null && ds(F.collection, F.item);
426
- tn && (wa || (F == null ? void 0 : F.action) === "create" || pn.current === "kanban") ? (R = !0, to || At.current.push({ key: tn, by: null })) : y += 1;
436
+ const ro = (E == null ? void 0 : E.collection) != null && ps(E.collection, E.item);
437
+ tn && (_a || (E == null ? void 0 : E.action) === "create" || bn.current === "kanban") ? (R = !0, ro || At.current.push({ key: tn, by: null })) : y += 1;
427
438
  }
428
- y > 0 && Lt((F) => F + y), R && p(), X && m();
429
- }, w = e(t, (b) => Io(dn, [b ?? {}], S));
439
+ y > 0 && (cn.current += y), R && p(), X && m();
440
+ }, _ = e(t, (b) => Wo(un, [b ?? {}], C));
430
441
  return () => {
431
- w(), Vo(dn), r && clearTimeout(r), o && clearTimeout(o), s && clearTimeout(s);
442
+ _(), Ho(un), r && clearTimeout(r), o && clearTimeout(o), s && clearTimeout(s);
432
443
  };
433
- }, [cn, k, c == null ? void 0 : c.sources, f, l, N, dn]);
434
- const Ee = Do(_, 350), Ba = JSON.stringify(Ee) === JSON.stringify(_), gn = U(!1), ve = C === "table" && !!$, or = ci(c), we = (() => {
444
+ }, [dn, k, c == null ? void 0 : c.sources, h, l, N, un]);
445
+ const Ee = Ko(w, 350), ja = JSON.stringify(Ee) === JSON.stringify(w), xn = j(!1), we = S === "table" && !!$, sr = mi(c), _e = (() => {
435
446
  const e = {};
436
447
  for (const [t, n] of Object.entries(Ee))
437
448
  if (n) {
@@ -451,36 +462,36 @@ function rd({
451
462
  function Ge(e, t) {
452
463
  Q((n) => ({ ...n, [e]: n[e] === t ? "" : t })), A(1);
453
464
  }
454
- function ja(e) {
465
+ function Ua(e) {
455
466
  Q((t) => {
456
467
  const n = t.state, r = Array.isArray(n) ? n : n ? [n] : [], o = r.includes(e) ? r.filter((s) => s !== e) : [...r, e];
457
468
  return { ...t, state: o };
458
469
  }), A(1);
459
470
  }
460
- const Ua = Array.isArray(_.state) ? _.state : _.state ? [_.state] : [], Ia = (e) => !e || Array.isArray(e) && e.length === 0;
461
- function Va() {
471
+ const Ia = Array.isArray(w.state) ? w.state : w.state ? [w.state] : [], Va = (e) => !e || Array.isArray(e) && e.length === 0;
472
+ function Ga() {
462
473
  Q({ ...me.current }), Y("all"), A(1);
463
474
  }
464
- const [ct, Ga] = v(() => {
475
+ const [dt, Wa] = v(() => {
465
476
  try {
466
477
  return localStorage.getItem("nvr_queue_insights_open") === "1";
467
478
  } catch {
468
479
  return !1;
469
480
  }
470
481
  });
471
- P(() => {
482
+ K(() => {
472
483
  try {
473
- localStorage.setItem("nvr_queue_insights_open", ct ? "1" : "0");
484
+ localStorage.setItem("nvr_queue_insights_open", dt ? "1" : "0");
474
485
  } catch {
475
486
  }
476
- }, [ct]);
477
- const { data: Wa = [] } = W({
487
+ }, [dt]);
488
+ const { data: Ha = [] } = G({
478
489
  queryKey: ["queue-view-subs", l],
479
- queryFn: () => h.request(L("/notification-subscriptions")).then((e) => (e.data ?? []).filter((t) => t.queue_id === l)).catch(() => []),
490
+ queryFn: () => f.request(L("/notification-subscriptions")).then((e) => (e.data ?? []).filter((t) => t.queue_id === l)).catch(() => []),
480
491
  staleTime: 3e4
481
- }), Mt = (e) => Wa.find((t) => t.queue_view_id === e), Ha = (e) => {
492
+ }), Mt = (e) => Ha.find((t) => t.queue_view_id === e), Ya = (e) => {
482
493
  const t = Mt(e);
483
- (t ? h.request(Vn(`/notification-subscriptions/${t.id}`)) : h.request(
494
+ (t ? f.request(Gn(`/notification-subscriptions/${t.id}`)) : f.request(
484
495
  ie("/notification-subscriptions", {
485
496
  queue_id: l,
486
497
  queue_view_id: e,
@@ -489,19 +500,19 @@ function rd({
489
500
  )).then(() => {
490
501
  O.success(
491
502
  t ? "Unsubscribed" : "Subscribed — new arrivals in this view notify you"
492
- ), f.invalidateQueries({ queryKey: ["queue-view-subs", l] });
503
+ ), h.invalidateQueries({ queryKey: ["queue-view-subs", l] });
493
504
  }).catch((r) => O.error(qt(r, "Failed")));
494
- }, [sr, xn] = v(null), yn = [
505
+ }, [ir, yn] = v(null), kn = [
495
506
  ...new Set(
496
507
  ((c == null ? void 0 : c.sources) ?? []).filter((e) => e.type === "collection" && e.collection).map((e) => e.collection)
497
508
  )
498
- ], { data: Ya = {} } = W({
499
- queryKey: ["queue-custom-actions", l, yn.join(",")],
509
+ ], { data: Ja = {} } = G({
510
+ queryKey: ["queue-custom-actions", l, kn.join(",")],
500
511
  queryFn: async () => {
501
512
  const e = {};
502
- for (const t of yn.slice(0, 6))
513
+ for (const t of kn.slice(0, 6))
503
514
  try {
504
- const n = await h.request(
515
+ const n = await f.request(
505
516
  L("/custom-actions", { collection: t })
506
517
  );
507
518
  e[t] = n.data ?? [];
@@ -510,65 +521,65 @@ function rd({
510
521
  }
511
522
  return e;
512
523
  },
513
- enabled: yn.length > 0,
524
+ enabled: kn.length > 0,
514
525
  staleTime: 6e4
515
- }), Ja = (e) => Ya[e] ?? [], za = (e, t) => {
516
- h.request(ie(`/custom-actions/${e.id}/execute`, { item: t.item_id })).then(() => {
517
- O.success(`${e.label} ran`), f.invalidateQueries({ queryKey: ["queue-items", l] });
526
+ }), za = (e) => Ja[e] ?? [], Xa = (e, t) => {
527
+ f.request(ie(`/custom-actions/${e.id}/execute`, { item: t.item_id })).then(() => {
528
+ O.success(`${e.label} ran`), h.invalidateQueries({ queryKey: ["queue-items", l] });
518
529
  }).catch((n) => {
519
530
  const r = n.response;
520
531
  O.error((r == null ? void 0 : r.error) ?? qt(n, `${e.label} failed`));
521
532
  });
522
- }, { data: kn = [] } = W({
533
+ }, { data: vn = [] } = G({
523
534
  queryKey: ["queue-triage-labels", l],
524
- queryFn: () => h.request(L(`/queues/${l}/triage-labels`)).then((e) => e.data ?? []).catch(() => []),
535
+ queryFn: () => f.request(L(`/queues/${l}/triage-labels`)).then((e) => e.data ?? []).catch(() => []),
525
536
  staleTime: 3e4
526
- }), ir = (e, t) => {
527
- h.request(
537
+ }), cr = (e, t) => {
538
+ f.request(
528
539
  ie(`/queues/${l}/triage-labels/toggle`, {
529
540
  collection: e.collection,
530
541
  item_id: e.item_id,
531
542
  label: t
532
543
  })
533
544
  ).then(() => {
534
- f.invalidateQueries({ queryKey: ["queue-items", l] }), f.invalidateQueries({ queryKey: ["queue-triage-labels", l] });
545
+ h.invalidateQueries({ queryKey: ["queue-items", l] }), h.invalidateQueries({ queryKey: ["queue-triage-labels", l] });
535
546
  }).catch((n) => O.error(qt(n, "Label failed")));
536
547
  }, {
537
548
  data: i,
538
- isLoading: cr,
539
- isFetching: dt,
540
- isPlaceholderData: Xa,
549
+ isLoading: dr,
550
+ isFetching: ut,
551
+ isPlaceholderData: Za,
541
552
  dataUpdatedAt: le,
542
- isError: dr,
543
- error: Za,
544
- refetch: el
545
- } = W({
553
+ isError: ur,
554
+ error: el,
555
+ refetch: tl
556
+ } = G({
546
557
  queryKey: [
547
558
  "queue-items",
548
559
  l,
549
560
  g,
550
561
  I,
551
562
  Ee,
552
- C === "table" && !$ ? de : "all",
563
+ S === "table" && !$ ? de : "all",
553
564
  $
554
565
  ],
555
566
  queryFn: async () => {
556
- const e = !ve && C === "table", t = JSON.stringify([l, g, I, we, bn]), n = e ? Ho(Yn.current, t, de, "").after : void 0, r = await h.request(
567
+ const e = !we && S === "table", t = JSON.stringify([l, g, I, _e, fn]), n = e ? zo(Jn.current, t, de, "").after : void 0, r = await f.request(
557
568
  L(`/queues/${l}/items`, {
558
569
  scope: g,
559
570
  // Last State Change is Aging read the other way round: the newest
560
571
  // move is the least aged.
561
572
  sort: I === "state_entered" ? "-aging_hours" : I === "-state_entered" ? "aging_hours" : I,
562
- filters: JSON.stringify(we),
573
+ filters: JSON.stringify(_e),
563
574
  // Table + group: headers only (rows load per group on expand, #741).
564
575
  // Kanban renders the full matching set, grouped client-side.
565
- ...ve ? {
576
+ ...we ? {
566
577
  group_by: $,
567
- ...or.length ? { group_sums: or.join(",") } : {}
568
- } : C === "table" ? { page: de, limit: bn, ...n ? { after: n } : {} } : {}
578
+ ...sr.length ? { group_sums: sr.join(",") } : {}
579
+ } : S === "table" ? { page: de, limit: fn, ...n ? { after: n } : {} } : {}
569
580
  })
570
581
  );
571
- return n && Yo(Yn.current, t, de, r.next_cursor), r;
582
+ return n && Xo(Jn.current, t, de, r.next_cursor), r;
572
583
  },
573
584
  // Wait for display_config AND scope seeding so the first fetch uses the
574
585
  // configured defaults and already carries the viewer's restricted filters.
@@ -577,40 +588,40 @@ function rd({
577
588
  // first fetch went out WITHOUT the seeded scope and refired ~350ms later
578
589
  // with it (3.3s + 8.7s of work for one page). The first fetch now also
579
590
  // waits for the debounced copy to settle; later typing still debounces.
580
- enabled: !!l && J && nr && (gn.current || Ba),
591
+ enabled: !!l && J && rr && (xn.current || ja),
581
592
  // Keep the previous page rendered while a sort/filter/page change refetches —
582
593
  // swapping to skeletons collapsed the table height and jittered the page.
583
594
  placeholderData: (e) => e
584
595
  });
585
- i && !gn.current && (gn.current = !0);
596
+ i && !xn.current && (xn.current = !0);
586
597
  const We = Object.entries(me.current).filter(
587
598
  ([e, t]) => {
588
599
  var n;
589
- return !((n = Te[e.slice(6)]) != null && n.length) && JSON.stringify(we[e] ?? null) === JSON.stringify(t);
600
+ return !((n = Te[e.slice(6)]) != null && n.length) && JSON.stringify(_e[e] ?? null) === JSON.stringify(t);
590
601
  }
591
- ).map(([e]) => e), ur = We.length > 0 && Object.keys(we).every((e) => We.includes(e)), mr = Object.fromEntries(
592
- Object.entries(we).filter(([e]) => !We.includes(e))
593
- ), { data: tl } = W({
594
- queryKey: ["queue-default-hidden", l, g, mr],
595
- enabled: !!l && !!i && !dt && i.total === 0 && ((sa = i.empty) == null ? void 0 : sa.reason) === "filters" && We.length > 0 && !ur,
602
+ ).map(([e]) => e), mr = We.length > 0 && Object.keys(_e).every((e) => We.includes(e)), pr = Object.fromEntries(
603
+ Object.entries(_e).filter(([e]) => !We.includes(e))
604
+ ), { data: nl } = G({
605
+ queryKey: ["queue-default-hidden", l, g, pr],
606
+ enabled: !!l && !!i && !ut && i.total === 0 && ((ia = i.empty) == null ? void 0 : ia.reason) === "filters" && We.length > 0 && !mr,
596
607
  staleTime: 3e4,
597
608
  retry: !1,
598
- queryFn: () => h.request(
609
+ queryFn: () => f.request(
599
610
  L(`/queues/${l}/items`, {
600
611
  scope: g,
601
- filters: JSON.stringify(mr),
612
+ filters: JSON.stringify(pr),
602
613
  page: 1,
603
614
  limit: 1
604
615
  })
605
616
  ).then((e) => Number(e.total ?? 0))
606
- }), be = ur ? Math.max(0, (((ia = i == null ? void 0 : i.stats) == null ? void 0 : ia.total) ?? 0) - ((i == null ? void 0 : i.total) ?? 0)) : tl ?? 0, pr = (e) => We.map(e).join(" and "), br = () => {
617
+ }), be = mr ? Math.max(0, (((ca = i == null ? void 0 : i.stats) == null ? void 0 : ca.total) ?? 0) - ((i == null ? void 0 : i.total) ?? 0)) : nl ?? 0, br = (e) => We.map(e).join(" and "), fr = () => {
607
618
  Q((e) => {
608
619
  const t = { ...e };
609
620
  for (const n of We) delete t[n];
610
621
  return t;
611
622
  }), A(1);
612
623
  };
613
- P(() => {
624
+ K(() => {
614
625
  if (typeof window > "u" || !le) return;
615
626
  const e = window;
616
627
  e.__nvrQueueTrace || (e.__nvrQueueTrace = []);
@@ -624,74 +635,74 @@ function rd({
624
635
  }, r = t.find((o) => o.queue === l);
625
636
  t.push(n), t.length > 50 && t.shift(), r && r !== n && le - Number(r.at) < 2e3 && t.filter((o) => o.queue === l).length === 2 && console.warn("[queue] duplicate first fetch", { first: r, second: n });
626
637
  }, [le]);
627
- const He = cr && !i || !J || !nr && !i, hr = (dt && !cr || Xa && dt) && !ue.current, nl = V(
628
- () => (ve ? [] : (i == null ? void 0 : i.data) ?? []).slice(0, 100).map((e) => ({ collection: e.collection, item: e.item_id })),
629
- [ve, i == null ? void 0 : i.data]
630
- ), rl = ms(nl), Qt = yi(), fr = Ko(dt && !ue.current), al = Po({
631
- pending: dt && !ue.current,
638
+ const He = dr && !i || !J || !rr && !i, hr = (ut && !dr || Za && ut) && !ue.current, rl = V(
639
+ () => (we ? [] : (i == null ? void 0 : i.data) ?? []).slice(0, 100).map((e) => ({ collection: e.collection, item: e.item_id })),
640
+ [we, i == null ? void 0 : i.data]
641
+ ), al = fs(rl), Qt = _i(), gr = Mo(ut && !ue.current), ll = Qo({
642
+ pending: ut && !ue.current,
632
643
  request: l != null ? { method: "GET", url: `/queues/${l}/items` } : null,
633
644
  noun: "items"
634
- }), ll = us();
635
- async function gr(e, t) {
645
+ }), ol = bs();
646
+ async function xr(e, t) {
636
647
  var p;
637
- const r = (await h.request(L(`/pipelines/instance/${e.collection}/${e.item_id}`))).data;
648
+ const r = (await f.request(L(`/pipelines/instance/${e.collection}/${e.item_id}`))).data;
638
649
  if (!r || r.states.length === 0)
639
650
  throw new Error("This item has no workflow instance");
640
- const o = r.states.find((S) => S.key === t);
651
+ const o = r.states.find((C) => C.key === t);
641
652
  if (!o) throw new Error("Target state not found");
642
653
  const s = r.available_transitions.find(
643
- (S) => S.to_state === o.id
654
+ (C) => C.to_state === o.id
644
655
  );
645
656
  if (!s) throw new Error("No transition available to move this item here");
646
657
  let m = null;
647
- if (ki(s) && (m = await Qt.ask(((p = s.label) == null ? void 0 : p.trim()) || "Move"), !m))
658
+ if (Ni(s) && (m = await Qt.ask(((p = s.label) == null ? void 0 : p.trim()) || "Move"), !m))
648
659
  throw new Error("Not moved — this move needs a note");
649
- await h.request(
660
+ await f.request(
650
661
  ie(`/pipelines/instance/${e.collection}/${e.item_id}/transition`, {
651
662
  transition_id: s.id,
652
663
  ...m ? { comment: m } : {}
653
664
  })
654
665
  );
655
666
  }
656
- const ol = $e({
667
+ const sl = qe({
657
668
  mutationFn: async ({ item: e, targetState: t }) => {
658
- await gr(e, t);
669
+ await xr(e, t);
659
670
  },
660
671
  onSuccess: () => {
661
- f.invalidateQueries({ queryKey: ["queue-items", l, g] });
672
+ h.invalidateQueries({ queryKey: ["queue-items", l, g] });
662
673
  },
663
674
  onError: (e) => {
664
- O.error(qt(e, "Failed to move item")), f.invalidateQueries({ queryKey: ["queue-items", l, g] });
675
+ O.error(qt(e, "Failed to move item")), h.invalidateQueries({ queryKey: ["queue-items", l, g] });
665
676
  }
666
- }), Le = $e({
667
- mutationFn: (e) => h.request(
677
+ }), Le = qe({
678
+ mutationFn: (e) => f.request(
668
679
  ie(`/queues/${l}/claim`, {
669
680
  source_collection: e.collection,
670
681
  item_id: e.item_id
671
682
  })
672
683
  ),
673
- onSuccess: () => f.invalidateQueries({ queryKey: ["queue-items", l, g] }),
684
+ onSuccess: () => h.invalidateQueries({ queryKey: ["queue-items", l, g] }),
674
685
  onError: () => O.error("Failed to claim item")
675
- }), Ye = $e({
676
- mutationFn: (e) => h.request(
686
+ }), Ye = qe({
687
+ mutationFn: (e) => f.request(
677
688
  ie(`/queues/${l}/release`, {
678
689
  source_collection: e.collection,
679
690
  item_id: e.item_id
680
691
  })
681
692
  ),
682
- onSuccess: () => f.invalidateQueries({ queryKey: ["queue-items", l, g] }),
693
+ onSuccess: () => h.invalidateQueries({ queryKey: ["queue-items", l, g] }),
683
694
  onError: () => O.error("Failed to release item")
684
- }), { data: Je } = W({
695
+ }), { data: Je } = G({
685
696
  queryKey: ["queue-column-prefs", l],
686
- queryFn: () => h.request(L(`/queues/${l}/column-prefs`)),
697
+ queryFn: () => f.request(L(`/queues/${l}/column-prefs`)),
687
698
  enabled: !!l
688
- }), [Bt, jt] = v(null), [ze, vn] = v(null);
689
- P(() => {
690
- Je && vn(Je.data.default_view_id);
699
+ }), [Bt, jt] = v(null), [ze, wn] = v(null);
700
+ K(() => {
701
+ Je && wn(Je.data.default_view_id);
691
702
  }, [Je]);
692
- const [sl, xr] = v({}), he = ve ? (i == null ? void 0 : i.groups) ?? null : null, Ut = (he ?? []).filter((e) => !ke.has(e.key)).map((e) => e.key).flatMap(
693
- (e) => Array.from({ length: sl[e] ?? 1 }, (t, n) => ({ key: e, page: n + 1 }))
694
- ), wn = Be({
703
+ const [il, yr] = v({}), fe = we ? (i == null ? void 0 : i.groups) ?? null : null, Ut = (fe ?? []).filter((e) => !ve.has(e.key)).map((e) => e.key).flatMap(
704
+ (e) => Array.from({ length: il[e] ?? 1 }, (t, n) => ({ key: e, page: n + 1 }))
705
+ ), _n = Be({
695
706
  queries: Ut.map(({ key: e, page: t }) => ({
696
707
  queryKey: [
697
708
  "queue-items",
@@ -704,85 +715,93 @@ function rd({
704
715
  e,
705
716
  t
706
717
  ],
707
- queryFn: () => h.request(
718
+ queryFn: () => f.request(
708
719
  L(`/queues/${l}/items`, {
709
720
  scope: g,
710
721
  sort: I === "state_entered" ? "-aging_hours" : I === "-state_entered" ? "aging_hours" : I,
711
- filters: JSON.stringify(we),
722
+ filters: JSON.stringify(_e),
712
723
  group_by: $,
713
724
  group_key: e,
714
725
  page: t,
715
- limit: wi
726
+ limit: Ci
716
727
  })
717
728
  ).then((n) => ({ key: e, rows: n.data })),
718
- enabled: !!i && ve,
729
+ enabled: !!i && we,
719
730
  placeholderData: (n) => n
720
731
  }))
721
- }), il = wn.map((e) => e.dataUpdatedAt).join(","), _n = V(() => {
732
+ }), cl = _n.map((e) => e.dataUpdatedAt).join(","), Nn = V(() => {
722
733
  const e = /* @__PURE__ */ new Map();
723
- return wn.forEach((t, n) => {
734
+ return _n.forEach((t, n) => {
724
735
  if (!t.data) return;
725
736
  const r = Ut[n].key;
726
737
  e.set(r, [...e.get(r) ?? [], ...t.data.rows]);
727
738
  }), e;
728
- }, [il, Ut.map((e) => `${e.key}\0${e.page}`).join("")]), cl = new Set(
729
- wn.flatMap((e, t) => e.isFetching ? [Ut[t].key] : [])
730
- ), q = he ? [..._n.values()].flat() : (i == null ? void 0 : i.data) ?? [];
731
- $s(
739
+ }, [cl, Ut.map((e) => `${e.key}\0${e.page}`).join("")]), dl = new Set(
740
+ _n.flatMap((e, t) => e.isFetching ? [Ut[t].key] : [])
741
+ ), F = fe ? [...Nn.values()].flat() : (i == null ? void 0 : i.data) ?? [];
742
+ Ts(
732
743
  l ? {
733
744
  queue: {
734
745
  id: l,
735
746
  label: c == null ? void 0 : c.name,
736
747
  scope: g,
737
- filters: JSON.stringify(we),
738
- items: q.slice(0, 100).map((e) => ({ collection: e.collection, id: e.item_id }))
748
+ filters: JSON.stringify(_e),
749
+ items: F.slice(0, 100).map((e) => ({ collection: e.collection, id: e.item_id }))
739
750
  }
740
751
  } : null
741
752
  );
742
- const dl = qs(), ut = q.some((e) => e.fulfilment !== void 0), mt = q.some((e) => e.send_backs !== void 0), { data: pt, dataUpdatedAt: yr } = W({
743
- queryKey: ["queue-live-stats", l, g, Ee, Xn],
744
- queryFn: () => h.request(
753
+ const ul = Rs(), mt = F.some((e) => e.fulfilment !== void 0), pt = F.some((e) => e.send_backs !== void 0), { data: Xe, dataUpdatedAt: kr } = G({
754
+ queryKey: ["queue-live-stats", l, g, Ee, Zn],
755
+ queryFn: () => f.request(
745
756
  L(`/queues/${l}/items`, {
746
757
  scope: g,
747
- filters: JSON.stringify(we),
758
+ filters: JSON.stringify(_e),
748
759
  page: 1,
749
760
  limit: 1
750
761
  })
751
762
  ),
752
- enabled: Xn > 0 && !!i,
763
+ enabled: Zn > 0 && !!i,
753
764
  staleTime: Number.POSITIVE_INFINITY,
754
765
  placeholderData: (e) => e,
755
766
  retry: !1
756
- }), It = !!pt && yr > le, x = It ? pt.stats : i == null ? void 0 : i.stats, z = It ? pt.filtered_stats ?? null : (i == null ? void 0 : i.filtered_stats) ?? null, kr = It ? pt.state_counts : i == null ? void 0 : i.state_counts;
757
- P(() => {
758
- !It || !di({
759
- liveTotal: pt.total,
767
+ }), It = !!Xe && kr > le, x = It ? Xe.stats : i == null ? void 0 : i.stats, z = It ? Xe.filtered_stats ?? null : (i == null ? void 0 : i.filtered_stats) ?? null, vr = It ? Xe.state_counts : i == null ? void 0 : i.state_counts;
768
+ K(() => {
769
+ if (!It) return;
770
+ const e = pn.current > 0 || mn.current, t = pi({
771
+ pending: cn.current,
772
+ liveTotal: Xe.total,
773
+ rowsTotal: i == null ? void 0 : i.total,
774
+ // Only a table re-reads its rows quietly; the other views keep the pill.
775
+ busy: e || S !== "table"
776
+ });
777
+ cn.current = 0, t > 0 && Lt((r) => r + t), bi({
778
+ liveTotal: Xe.total,
760
779
  rowsTotal: i == null ? void 0 : i.total,
761
780
  // Grouped tables too (army 8 b08-N6): their headers count the whole set, and
762
781
  // nothing else re-read them — "37 of 38" with the strip at 38 for minutes.
763
- table: C === "table",
764
- busy: mn.current > 0 || un.current
765
- }) || (ue.current = !0, f.invalidateQueries({
766
- queryKey: ve ? ["queue-items", l] : ["queue-items", l, g]
782
+ table: S === "table",
783
+ busy: e
784
+ }) && (ue.current = !0, h.invalidateQueries({
785
+ queryKey: we ? ["queue-items", l] : ["queue-items", l, g]
767
786
  }).finally(() => {
768
787
  ue.current = !1;
769
788
  }));
770
- }, [yr]);
771
- const Nn = (ca = z ?? x) == null ? void 0 : ca.aging, vr = U(void 0);
772
- !_.aging_hours && Nn && (vr.current = Nn);
773
- const bt = _.aging_hours ? vr.current ?? (x == null ? void 0 : x.aging) : Nn ?? (x == null ? void 0 : x.aging);
774
- zn.current = new Set(q.map((e) => `${e.collection}:${e.item_id}`));
775
- const ht = os(
776
- q.map((e) => ({ collection: e.collection, id: e.item_id })),
777
- Oa
778
- ), wr = U(le), _r = U(0);
779
- !ue.current && le !== _r.current && (wr.current = le), P(() => {
780
- const e = new Set(q.map((t) => `${t.collection}:${t.item_id}`));
789
+ }, [kr]);
790
+ const Sn = (da = z ?? x) == null ? void 0 : da.aging, wr = j(void 0);
791
+ !w.aging_hours && Sn && (wr.current = Sn);
792
+ const bt = w.aging_hours ? wr.current ?? (x == null ? void 0 : x.aging) : Sn ?? (x == null ? void 0 : x.aging);
793
+ Xn.current = new Set(F.map((e) => `${e.collection}:${e.item_id}`));
794
+ const ft = cs(
795
+ F.map((e) => ({ collection: e.collection, id: e.item_id })),
796
+ Da
797
+ ), _r = j(le), Nr = j(0);
798
+ !ue.current && le !== Nr.current && (_r.current = le), K(() => {
799
+ const e = new Set(F.map((t) => `${t.collection}:${t.item_id}`));
781
800
  if (ue.current) {
782
- ue.current = !1, _r.current = le;
801
+ ue.current = !1, Nr.current = le;
783
802
  const t = At.current;
784
803
  At.current = [];
785
- const n = Zn.current, r = /* @__PURE__ */ new Set();
804
+ const n = er.current, r = /* @__PURE__ */ new Set();
786
805
  for (const o of t)
787
806
  !e.has(o.key) || r.has(o.key) || (r.add(o.key), Fe.note([o.key], o.by, n && !n.has(o.key) ? "create" : "update"));
788
807
  if (n) {
@@ -790,52 +809,52 @@ function rd({
790
809
  o.length > 0 && o.length <= 20 && Fe.note(o, null, "create");
791
810
  }
792
811
  }
793
- Zn.current = e;
794
- }, [le]), P(() => {
812
+ er.current = e;
813
+ }, [le]), K(() => {
795
814
  Lt(0);
796
815
  }, [le]);
797
- function ul() {
798
- f.invalidateQueries({ queryKey: ["queue-items", l] }), f.invalidateQueries({ queryKey: ["queue-workload", l] }), Lt(0);
816
+ function ml() {
817
+ h.invalidateQueries({ queryKey: ["queue-items", l] }), h.invalidateQueries({ queryKey: ["queue-workload", l] }), Lt(0);
799
818
  }
800
- const { data: fe } = W({
819
+ const { data: he } = G({
801
820
  queryKey: ["queue-trends", l],
802
- queryFn: () => h.request(L(`/queues/${l}/trends`, { days: 14 })),
821
+ queryFn: () => f.request(L(`/queues/${l}/trends`, { days: 14 })),
803
822
  enabled: !!l,
804
823
  staleTime: 300 * 1e3
805
- }), { data: ge } = W({
824
+ }), { data: ge } = G({
806
825
  queryKey: ["queue-trends", l, "mine"],
807
- queryFn: () => h.request(L(`/queues/${l}/trends`, { days: 14, scope: "mine" })),
826
+ queryFn: () => f.request(L(`/queues/${l}/trends`, { days: 14, scope: "mine" })),
808
827
  enabled: !!l && g === "mine",
809
828
  staleTime: 300 * 1e3
810
829
  });
811
- function ft(e) {
812
- const n = (g === "all" ? fe == null ? void 0 : fe.data : g === "mine" ? ge == null ? void 0 : ge.data : void 0) ?? [];
830
+ function ht(e) {
831
+ const n = (g === "all" ? he == null ? void 0 : he.data : g === "mine" ? ge == null ? void 0 : ge.data : void 0) ?? [];
813
832
  if (n.length === 0) return {};
814
833
  const r = n.map((s) => s[e]), o = n[n.length - 1];
815
834
  return { trend: r, delta: ((x == null ? void 0 : x[e]) ?? 0) - o[e] };
816
835
  }
817
836
  const xe = V(() => {
818
- const t = (g === "all" ? fe == null ? void 0 : fe.data : g === "mine" ? ge == null ? void 0 : ge.data : void 0) ?? [];
837
+ const t = (g === "all" ? he == null ? void 0 : he.data : g === "mine" ? ge == null ? void 0 : ge.data : void 0) ?? [];
819
838
  if (t.length < 3 || !x) return null;
820
839
  const n = t.map(
821
840
  (m) => g === "mine" ? m.owned ?? m.total : m.total
822
841
  ), r = n.slice(1).map((m, p) => m - n[p]), o = r.reduce((m, p) => m + p, 0) / r.length, s = x.total;
823
842
  return Math.abs(o) < 0.05 ? { dir: "flat", pace: o, days: null } : o < 0 ? { dir: "down", pace: o, days: Math.max(1, Math.ceil(s / -o)) } : { dir: "up", pace: o, days: null };
824
- }, [fe == null ? void 0 : fe.data, ge == null ? void 0 : ge.data, g, x]), gt = V(
843
+ }, [he == null ? void 0 : he.data, ge == null ? void 0 : ge.data, g, x]), gt = V(
825
844
  () => [
826
845
  ...new Set(
827
846
  ((c == null ? void 0 : c.sources) ?? []).filter((e) => e.type === "collection" && e.collection).map((e) => e.collection)
828
847
  )
829
848
  ],
830
849
  [c == null ? void 0 : c.sources]
831
- ), { data: ml } = W({
850
+ ), { data: pl } = G({
832
851
  queryKey: ["collections"],
833
- queryFn: () => h.request(L("/collections")).then((e) => e.data),
852
+ queryFn: () => f.request(L("/collections")).then((e) => e.data),
834
853
  staleTime: 300 * 1e3
835
- }), Xe = Be({
854
+ }), Ze = Be({
836
855
  queries: gt.map((e) => ({
837
856
  queryKey: ["queue-collection-addendums", e],
838
- queryFn: () => h.request(
857
+ queryFn: () => f.request(
839
858
  L(`/collections/${e}`)
840
859
  ).then((t) => {
841
860
  var n;
@@ -843,73 +862,73 @@ function rd({
843
862
  }).catch(() => !1),
844
863
  staleTime: 300 * 1e3
845
864
  }))
846
- }).some((e) => e.data === !0), { data: Sn = [] } = W({
865
+ }).some((e) => e.data === !0), { data: Cn = [] } = G({
847
866
  queryKey: ["queue-integrations-collections"],
848
- queryFn: () => h.request(L("/integration-obligations/collections")).then((e) => e.data ?? []).catch(() => []),
867
+ queryFn: () => f.request(L("/integration-obligations/collections")).then((e) => e.data ?? []).catch(() => []),
849
868
  staleTime: 300 * 1e3
850
- }), _e = gt.some((e) => Sn.includes(e)), Cn = V(() => {
869
+ }), Ne = gt.some((e) => Cn.includes(e)), $n = V(() => {
851
870
  var t;
852
871
  const e = {};
853
- if (!_e) return e;
854
- for (const n of q) {
855
- if (!Sn.includes(n.collection)) continue;
872
+ if (!Ne) return e;
873
+ for (const n of F) {
874
+ if (!Cn.includes(n.collection)) continue;
856
875
  const r = e[t = n.collection] ?? (e[t] = []);
857
876
  r.length < 500 && r.push(n.item_id);
858
877
  }
859
878
  return e;
860
- }, [q, Sn, _e]), Nr = Object.keys(Cn), Sr = Be({
861
- queries: Nr.map((e) => ({
862
- queryKey: ["queue-integrations-summary", e, Cn[e].join(",")],
863
- queryFn: () => h.request(
879
+ }, [F, Cn, Ne]), Sr = Object.keys($n), Cr = Be({
880
+ queries: Sr.map((e) => ({
881
+ queryKey: ["queue-integrations-summary", e, $n[e].join(",")],
882
+ queryFn: () => f.request(
864
883
  ie("/integration-obligations/summary", {
865
884
  collection: e,
866
- ids: Cn[e]
885
+ ids: $n[e]
867
886
  })
868
887
  ).then((t) => t.data ?? {}).catch(() => ({})),
869
888
  staleTime: 3e4
870
889
  }))
871
- }), pl = Sr.map((e) => e.dataUpdatedAt).join(","), bl = V(() => {
890
+ }), bl = Cr.map((e) => e.dataUpdatedAt).join(","), fl = V(() => {
872
891
  const e = {};
873
- return Nr.forEach((t, n) => {
892
+ return Sr.forEach((t, n) => {
874
893
  var o;
875
- const r = ((o = Sr[n]) == null ? void 0 : o.data) ?? {};
894
+ const r = ((o = Cr[n]) == null ? void 0 : o.data) ?? {};
876
895
  for (const [s, m] of Object.entries(r)) e[`${t}:${s}`] = m;
877
896
  }), e;
878
- }, [pl]), $n = V(() => {
897
+ }, [bl]), qn = V(() => {
879
898
  var t;
880
899
  const e = {};
881
- for (const n of q) {
900
+ for (const n of F) {
882
901
  if (!n.collection || n.collection === "tasks" || n.collection.startsWith("nivaro_"))
883
902
  continue;
884
903
  const r = e[t = n.collection] ?? (e[t] = []);
885
904
  r.length < 500 && r.push(n.item_id);
886
905
  }
887
906
  return e;
888
- }, [q]), qn = Object.keys($n), Cr = Be({
889
- queries: qn.map((e) => ({
890
- queryKey: ["queue-task-counts", e, $n[e].join(",")],
891
- queryFn: () => h.request(
892
- ie("/tasks/counts", { collection: e, ids: $n[e] })
907
+ }, [F]), Fn = Object.keys(qn), $r = Be({
908
+ queries: Fn.map((e) => ({
909
+ queryKey: ["queue-task-counts", e, qn[e].join(",")],
910
+ queryFn: () => f.request(
911
+ ie("/tasks/counts", { collection: e, ids: qn[e] })
893
912
  ).then((t) => t.data ?? {}).catch(() => ({})),
894
913
  staleTime: 3e4
895
914
  }))
896
- }), hl = Cr.map((e) => e.dataUpdatedAt).join(","), fl = V(() => {
915
+ }), hl = $r.map((e) => e.dataUpdatedAt).join(","), gl = V(() => {
897
916
  const e = {};
898
- return qn.forEach((t, n) => {
917
+ return Fn.forEach((t, n) => {
899
918
  var r;
900
- for (const [o, s] of Object.entries(((r = Cr[n]) == null ? void 0 : r.data) ?? {})) e[`${t}:${o}`] = s;
919
+ for (const [o, s] of Object.entries(((r = $r[n]) == null ? void 0 : r.data) ?? {})) e[`${t}:${o}`] = s;
901
920
  }), e;
902
- }, [hl]), $r = qn.length > 0, qr = Be({
921
+ }, [hl]), qr = Fn.length > 0, Fr = Be({
903
922
  queries: gt.map((e) => ({
904
923
  queryKey: ["queue-collection-risk-rules", e],
905
- queryFn: () => h.request(
924
+ queryFn: () => f.request(
906
925
  L("/at-risk/rules/active", { collection: e })
907
926
  ).then((t) => t.data ?? []).catch(() => []),
908
927
  staleTime: 300 * 1e3
909
928
  }))
910
- }), gl = qr.map((e) => e.dataUpdatedAt).join(","), Fr = V(() => {
929
+ }), xl = Fr.map((e) => e.dataUpdatedAt).join(","), Tr = V(() => {
911
930
  const e = /* @__PURE__ */ new Map();
912
- for (const t of qr)
931
+ for (const t of Fr)
913
932
  for (const n of t.data ?? []) {
914
933
  const r = e.get(n.name);
915
934
  e.set(n.name, {
@@ -918,64 +937,64 @@ function rd({
918
937
  });
919
938
  }
920
939
  return [...e.values()];
921
- }, [gl]), Tr = Be({
940
+ }, [xl]), Rr = Be({
922
941
  queries: gt.map((e) => ({
923
942
  queryKey: ["queue-collection-states", e],
924
- queryFn: () => h.request(
943
+ queryFn: () => f.request(
925
944
  L(`/queues/collection-states/${e}`)
926
945
  ).then((t) => t.data),
927
946
  staleTime: 300 * 1e3
928
947
  }))
929
- }), Rr = (e) => e.replace(/_/g, " ").replace(/\b\w/g, (t) => t.toUpperCase()), Ne = V(() => {
948
+ }), Er = (e) => e.replace(/_/g, " ").replace(/\b\w/g, (t) => t.toUpperCase()), Se = V(() => {
930
949
  const e = {};
931
- for (const t of Tr)
950
+ for (const t of Rr)
932
951
  (t.data ?? []).forEach((n, r) => {
933
952
  e[n.key] = { label: n.label, color: n.color, sort: r };
934
953
  });
935
954
  return e;
936
- }, [Tr.map((e) => e.data)]), Er = x ? Object.entries(x.by_state).sort(
955
+ }, [Rr.map((e) => e.data)]), Lr = x ? Object.entries(x.by_state).sort(
937
956
  (e, t) => {
938
957
  var n, r;
939
- return (((n = Ne[e[0]]) == null ? void 0 : n.sort) ?? Number.MAX_SAFE_INTEGER) - (((r = Ne[t[0]]) == null ? void 0 : r.sort) ?? Number.MAX_SAFE_INTEGER);
958
+ return (((n = Se[e[0]]) == null ? void 0 : n.sort) ?? Number.MAX_SAFE_INTEGER) - (((r = Se[t[0]]) == null ? void 0 : r.sort) ?? Number.MAX_SAFE_INTEGER);
940
959
  }
941
- ) : [], Lr = (e) => [...e].sort(
960
+ ) : [], Ar = (e) => [...e].sort(
942
961
  (t, n) => {
943
962
  var r, o;
944
- return (((r = Ne[t]) == null ? void 0 : r.sort) ?? Number.MAX_SAFE_INTEGER) - (((o = Ne[n]) == null ? void 0 : o.sort) ?? Number.MAX_SAFE_INTEGER);
963
+ return (((r = Se[t]) == null ? void 0 : r.sort) ?? Number.MAX_SAFE_INTEGER) - (((o = Se[n]) == null ? void 0 : o.sort) ?? Number.MAX_SAFE_INTEGER);
945
964
  }
946
- ), Fn = V(() => {
965
+ ), Tn = V(() => {
947
966
  const e = {};
948
- for (const [t, n] of Object.entries(Ne)) e[t] = n.label;
967
+ for (const [t, n] of Object.entries(Se)) e[t] = n.label;
949
968
  return e;
950
- }, [Ne]), Ae = (e) => e ? e === "none" ? "No State" : Fn[e] ?? Rr(e) : "—", xt = (e) => {
969
+ }, [Se]), Ae = (e) => e ? e === "none" ? "No State" : Tn[e] ?? Er(e) : "—", xt = (e) => {
951
970
  if (e === rn) return "Addendums";
952
- const t = (ml ?? []).find((n) => n.collection === e);
953
- return (t == null ? void 0 : t.display_name) || (t == null ? void 0 : t.plural) || Rr(e);
954
- }, oe = V(() => $ ? he ? he.map((e) => ({
971
+ const t = (pl ?? []).find((n) => n.collection === e);
972
+ return (t == null ? void 0 : t.display_name) || (t == null ? void 0 : t.plural) || Er(e);
973
+ }, oe = V(() => $ ? fe ? fe.map((e) => ({
955
974
  key: e.key,
956
- rows: _n.get(e.key) ?? [],
975
+ rows: Nn.get(e.key) ?? [],
957
976
  breached: e.breached,
958
977
  atRisk: e.at_risk,
959
978
  count: e.count,
960
979
  sums: e.sums ?? {}
961
- })) : bs(q, $).map((e) => ({ ...e, count: e.rows.length, sums: {} })) : null, [q, $, he, _n]), Tn = U(null);
962
- P(() => {
980
+ })) : gs(F, $).map((e) => ({ ...e, count: e.rows.length, sums: {} })) : null, [F, $, fe, Nn]), Rn = j(null);
981
+ K(() => {
963
982
  if (!$ || !oe) {
964
- Tn.current = null;
983
+ Rn.current = null;
965
984
  return;
966
985
  }
967
- if (ve && !he || Tn.current === $) return;
968
- Tn.current = $;
986
+ if (we && !fe || Rn.current === $) return;
987
+ Rn.current = $;
969
988
  const e = oe.reduce((t, n) => t + n.count, 0);
970
- an(e > 200 ? new Set(oe.map((t) => t.key)) : /* @__PURE__ */ new Set()), xr({});
971
- }, [$, he]);
972
- function xl(e) {
989
+ an(e > 200 ? new Set(oe.map((t) => t.key)) : /* @__PURE__ */ new Set()), yr({});
990
+ }, [$, fe]);
991
+ function yl(e) {
973
992
  an((t) => {
974
993
  const n = new Set(t);
975
994
  return n.has(e) ? n.delete(e) : n.add(e), n;
976
995
  });
977
996
  }
978
- const se = V(() => oe ? oe.filter((e) => !ke.has(e.key)).flatMap((e) => e.rows) : q, [oe, q, ke]), D = (e) => `${e.collection}:${e.item_id}`, [Se, Oe] = v(null), [yl, Rn] = v(!1), [Vt, Gt] = v(null), En = (e) => {
997
+ const se = V(() => oe ? oe.filter((e) => !ve.has(e.key)).flatMap((e) => e.rows) : F, [oe, F, ve]), D = (e) => `${e.collection}:${e.item_id}`, [Ce, Oe] = v(null), [kl, En] = v(!1), [Vt, Gt] = v(null), Ln = (e) => {
979
998
  if (e.collection === rn && e.url) {
980
999
  const t = e.url.match(/^\/collections\/([^/?]+)\/([^/?]+)(?:\?(.*))?$/);
981
1000
  if (t) {
@@ -996,18 +1015,18 @@ function rd({
996
1015
  };
997
1016
  }, yt = (e) => {
998
1017
  var t;
999
- c && Ta({
1018
+ c && Ra({
1000
1019
  queue_id: l,
1001
1020
  name: c.name,
1002
1021
  path: `${window.location.pathname}${window.location.search}`,
1003
1022
  at: Date.now(),
1004
1023
  scroll: ((t = Yt.current) == null ? void 0 : t.scrollTop) ?? 0,
1005
- state: { scope: g, page: de, sort: I, filters: _, group_by: $, view: C }
1006
- }), H.open(En(e));
1024
+ state: { scope: g, page: de, sort: I, filters: w, group_by: $, view: S }
1025
+ }), H.open(Ln(e));
1007
1026
  }, [B, kt] = v(
1008
1027
  null
1009
1028
  );
1010
- P(() => {
1029
+ K(() => {
1011
1030
  if (!B) return;
1012
1031
  const e = () => kt(null);
1013
1032
  return window.addEventListener("mousedown", e), window.addEventListener("scroll", e, !0), () => {
@@ -1022,7 +1041,7 @@ function rd({
1022
1041
  return;
1023
1042
  }
1024
1043
  if (t === "layout") {
1025
- Hr({
1044
+ Yr({
1026
1045
  collection: e.collection,
1027
1046
  itemId: e.item_id,
1028
1047
  rootLayoutSlug: (u == null ? void 0 : u.item_layout) ?? null,
@@ -1033,26 +1052,26 @@ function rd({
1033
1052
  }
1034
1053
  Oe(e);
1035
1054
  };
1036
- P(() => {
1037
- if (!Se) return;
1038
- const e = q.find((t) => D(t) === D(Se));
1039
- e && e !== Se && Oe(e);
1040
- }, [q]);
1041
- const kl = (e) => !e.claimed_by || e.claimed_by.id === N;
1042
- function Ar(e) {
1043
- const t = e ? se.findIndex((r) => D(r) === D(e)) + 1 : 0, n = se.slice(t).find(kl);
1055
+ K(() => {
1056
+ if (!Ce) return;
1057
+ const e = F.find((t) => D(t) === D(Ce));
1058
+ e && e !== Ce && Oe(e);
1059
+ }, [F]);
1060
+ const vl = (e) => !e.claimed_by || e.claimed_by.id === N;
1061
+ function Or(e) {
1062
+ const t = e ? se.findIndex((r) => D(r) === D(e)) + 1 : 0, n = se.slice(t).find(vl);
1044
1063
  if (!n) {
1045
- Rn(!1), Oe(null), O.info("Nothing left to work on — queue clear!");
1064
+ En(!1), Oe(null), O.info("Nothing left to work on — queue clear!");
1046
1065
  return;
1047
1066
  }
1048
1067
  if (Gt(D(n)), pe && !n.claimed_by && Le.mutate(n), (u == null ? void 0 : u.row_click) === "full") {
1049
1068
  yt(n);
1050
1069
  return;
1051
1070
  }
1052
- Rn(!0), Oe(n);
1071
+ En(!0), Oe(n);
1053
1072
  }
1054
- P(() => {
1055
- if (C !== "table") return;
1073
+ K(() => {
1074
+ if (S !== "table") return;
1056
1075
  function e(t) {
1057
1076
  var o;
1058
1077
  const n = t.target;
@@ -1067,7 +1086,7 @@ function rd({
1067
1086
  t.preventDefault();
1068
1087
  const s = se[Math.max(r - 1, 0)];
1069
1088
  s && Gt(D(s));
1070
- } else if (t.key === "Enter" && r >= 0 && !Se)
1089
+ } else if (t.key === "Enter" && r >= 0 && !Ce)
1071
1090
  t.preventDefault(), Wt(se[r]);
1072
1091
  else if (t.key === "c" && r >= 0 && pe) {
1073
1092
  t.preventDefault();
@@ -1076,39 +1095,39 @@ function rd({
1076
1095
  } else t.key === "o" && r >= 0 && (t.preventDefault(), yt(se[r]));
1077
1096
  }
1078
1097
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
1079
- }, [C, se, Vt, Se, N, Le, Ye, pe]);
1080
- const { data: j } = W({
1098
+ }, [S, se, Vt, Ce, N, Le, Ye, pe]);
1099
+ const { data: U } = G({
1081
1100
  queryKey: ["queue-views", l],
1082
- queryFn: () => h.request(L(`/queues/${l}/views`)),
1101
+ queryFn: () => f.request(L(`/queues/${l}/views`)),
1083
1102
  enabled: !!l
1084
- }), [Ze, et] = v(null), [vl, Ln] = v(!1), [Ht, Or] = v(""), [Dr, Kr] = v(!1), [vt, Pr] = v(!1);
1103
+ }), [et, tt] = v(null), [wl, An] = v(!1), [Ht, Dr] = v(""), [Pr, Kr] = v(!1), [vt, Mr] = v(!1);
1085
1104
  function wt(e) {
1086
1105
  const t = e.state ?? {};
1087
- Y(t.scope ?? "all"), Q({ ...me.current, ...t.filters ?? {} }), Ie(t.sort ?? ""), ot(t.group_by ?? null), jt(t.columns ?? null), on(t.pins ?? null), t.view && Ue(Re.includes(t.view) ? t.view : Re[0]), A(1), et(e.id);
1106
+ Y(t.scope ?? "all"), Q({ ...me.current, ...t.filters ?? {} }), Ie(t.sort ?? ""), st(t.group_by ?? null), jt(t.columns ?? null), on(t.pins ?? null), t.view && Ue(Re.includes(t.view) ? t.view : Re[0]), A(1), tt(e.id);
1088
1107
  }
1089
- function wl() {
1108
+ function _l() {
1090
1109
  var t, n;
1091
- const e = j == null ? void 0 : j.data.find((r) => r.is_default);
1110
+ const e = U == null ? void 0 : U.data.find((r) => r.is_default);
1092
1111
  if (e) {
1093
1112
  wt(e);
1094
1113
  return;
1095
1114
  }
1096
- Y(((t = c == null ? void 0 : c.display_config) == null ? void 0 : t.default_scope) ?? "all"), Q({ ...me.current }), Ie(""), ot(null), jt(null), on(null), (n = c == null ? void 0 : c.display_config) != null && n.default_view && Ue(c.display_config.default_view), A(1), et(null);
1115
+ Y(((t = c == null ? void 0 : c.display_config) == null ? void 0 : t.default_scope) ?? "all"), Q({ ...me.current }), Ie(""), st(null), jt(null), on(null), (n = c == null ? void 0 : c.display_config) != null && n.default_view && Ue(c.display_config.default_view), A(1), tt(null);
1097
1116
  }
1098
- P(() => {
1099
- if (J || !(c != null && c.display_config) || Je === void 0 || j === void 0) return;
1100
- const e = Je.data.default_view_id, t = e != null ? j.data.find((r) => r.id === e) : void 0, n = j.data.find((r) => r.is_default);
1101
- t ? wt(t) : n ? wt(n) : (Ue(c.display_config.default_view), Y(c.display_config.default_scope)), Qa(!0);
1102
- }, [c, Je, j, J]);
1103
- const Yt = U(null), Jt = U(null);
1104
- P(() => {
1117
+ K(() => {
1118
+ if (J || !(c != null && c.display_config) || Je === void 0 || U === void 0) return;
1119
+ const e = Je.data.default_view_id, t = e != null ? U.data.find((r) => r.id === e) : void 0, n = U.data.find((r) => r.is_default);
1120
+ t ? wt(t) : n ? wt(n) : (Ue(c.display_config.default_view), Y(c.display_config.default_scope)), Ba(!0);
1121
+ }, [c, Je, U, J]);
1122
+ const Yt = j(null), Jt = j(null);
1123
+ K(() => {
1105
1124
  if (!J) return;
1106
- const e = Us();
1125
+ const e = Gs();
1107
1126
  if (!(e != null && e.restore) || e.queue_id !== l) return;
1108
- Ta({ ...e, restore: !1 });
1127
+ Ra({ ...e, restore: !1 });
1109
1128
  const t = e.state ?? {};
1110
- t.scope && Y(t.scope), t.filters && Q({ ...me.current, ...t.filters }), t.sort != null && Ie(t.sort), ot(t.group_by ?? null), t.view && Ue(t.view), t.page && A(t.page), Jt.current = e.scroll ?? 0;
1111
- }, [J, l]), P(() => {
1129
+ t.scope && Y(t.scope), t.filters && Q({ ...me.current, ...t.filters }), t.sort != null && Ie(t.sort), st(t.group_by ?? null), t.view && Ue(t.view), t.page && A(t.page), Jt.current = e.scroll ?? 0;
1130
+ }, [J, l]), K(() => {
1112
1131
  var s;
1113
1132
  if (!J || typeof window > "u") return;
1114
1133
  const e = new URLSearchParams(window.location.search), t = e.get("scope"), n = ((s = e.get("state")) == null ? void 0 : s.trim()) || null, r = t === "all" || t === "mine";
@@ -1120,7 +1139,7 @@ function rd({
1120
1139
  "",
1121
1140
  `${window.location.pathname}${o ? `?${o}` : ""}${window.location.hash}`
1122
1141
  ), r && Y(t), n && Q((m) => ({ ...m, state: [n] })), A(1);
1123
- }, [J]), P(() => {
1142
+ }, [J]), K(() => {
1124
1143
  if (!J || typeof window > "u") return;
1125
1144
  const e = new URLSearchParams(window.location.search), t = e.get("owner");
1126
1145
  if (!t) return;
@@ -1130,120 +1149,120 @@ function rd({
1130
1149
  window.history.state,
1131
1150
  "",
1132
1151
  `${window.location.pathname}${n ? `?${n}` : ""}${window.location.hash}`
1133
- ), Y("all"), Q((r) => ({ ...r, owners: [t] })), et(null), A(1);
1134
- }, [J]), P(() => {
1152
+ ), Y("all"), Q((r) => ({ ...r, owners: [t] })), tt(null), A(1);
1153
+ }, [J]), K(() => {
1135
1154
  if (!J) return;
1136
- const e = ts(ns(`queue:${l}`));
1137
- e && (rs(), wt({
1155
+ const e = as(ls(`queue:${l}`));
1156
+ e && (os(), wt({
1138
1157
  id: -1,
1139
1158
  // Saved views type filters loosely as strings; multi-selects ride as arrays there too.
1140
1159
  state: e
1141
- }), et(null), e.page && A(e.page));
1160
+ }), tt(null), e.page && A(e.page));
1142
1161
  }, [J]);
1143
- const _l = () => ({
1162
+ const Nl = () => ({
1144
1163
  scope: g,
1145
- filters: _,
1164
+ filters: w,
1146
1165
  sort: I,
1147
1166
  group_by: $,
1148
- view: C,
1167
+ view: S,
1149
1168
  columns: Bt,
1150
- pins: it,
1169
+ pins: ct,
1151
1170
  ...de > 1 ? { page: de } : {}
1152
1171
  });
1153
- P(() => {
1154
- Jt.current == null || q.length === 0 || !Yt.current || (Yt.current.scrollTop = Jt.current, Jt.current = null);
1155
- }, [q]);
1156
- const { isAdmin: De } = Ca(), Nl = q.map((e) => `${e.collection}|${e.item_id}`).join(","), Sl = V(
1157
- () => q.map((e) => ({ collection: e.collection, id: e.item_id })),
1158
- [Nl]
1159
- ), Mr = Ys(Sl, De), Cl = (e) => Vt === D(e) ? (
1172
+ K(() => {
1173
+ Jt.current == null || F.length === 0 || !Yt.current || (Yt.current.scrollTop = Jt.current, Jt.current = null);
1174
+ }, [F]);
1175
+ const { isAdmin: De } = $a(), Sl = F.map((e) => `${e.collection}|${e.item_id}`).join(","), Cl = V(
1176
+ () => F.map((e) => ({ collection: e.collection, id: e.item_id })),
1177
+ [Sl]
1178
+ ), Qr = Xs(Cl, De), $l = (e) => Vt === D(e) ? (
1160
1179
  // Pinned sticky cells use bg-inherit — the highlight must be
1161
1180
  // OPAQUE (nvr-cyan/5-over-white equivalents) or horizontally
1162
1181
  // scrolled content bleeds through the pinned columns. Same
1163
1182
  // pair DataTable uses for selected rows when pins are active.
1164
1183
  "bg-[#f2fdff] dark:bg-[#20303a]"
1165
- ) : e.at_risk ? ys(e.at_risk_color ?? "red") : void 0, zt = De || (c == null ? void 0 : c.owner) != null && c.owner === N, $l = $e({
1166
- mutationFn: ({ viewId: e, on: t }) => h.request($a(`/queues/views/${e}`, { is_default: t })),
1184
+ ) : e.at_risk ? ws(e.at_risk_color ?? "red") : void 0, zt = De || (c == null ? void 0 : c.owner) != null && c.owner === N, ql = qe({
1185
+ mutationFn: ({ viewId: e, on: t }) => f.request(qa(`/queues/views/${e}`, { is_default: t })),
1167
1186
  onSuccess: () => {
1168
- f.invalidateQueries({ queryKey: ["queue-views", l] }), O.success("Queue default view updated");
1187
+ h.invalidateQueries({ queryKey: ["queue-views", l] }), O.success("Queue default view updated");
1169
1188
  },
1170
1189
  onError: () => O.error("Could not update the queue default view")
1171
- }), Xt = $e({
1172
- mutationFn: () => h.request(
1190
+ }), Xt = qe({
1191
+ mutationFn: () => f.request(
1173
1192
  ie(`/queues/${l}/views`, {
1174
1193
  name: Ht.trim(),
1175
- is_shared: zt && (Dr || vt),
1194
+ is_shared: zt && (Pr || vt),
1176
1195
  is_default: vt,
1177
1196
  state: {
1178
1197
  scope: g,
1179
- filters: _,
1198
+ filters: w,
1180
1199
  sort: I,
1181
1200
  group_by: $,
1182
- view: C,
1201
+ view: S,
1183
1202
  columns: Bt,
1184
- pins: it
1203
+ pins: ct
1185
1204
  }
1186
1205
  })
1187
1206
  ),
1188
1207
  onSuccess: (e) => {
1189
- Ln(!1), Or(""), Kr(!1), Pr(!1), et(e.data.id), f.invalidateQueries({ queryKey: ["queue-views", l] }), O.success("View saved");
1208
+ An(!1), Dr(""), Kr(!1), Mr(!1), tt(e.data.id), h.invalidateQueries({ queryKey: ["queue-views", l] }), O.success("View saved");
1190
1209
  },
1191
1210
  onError: () => O.error("Failed to save view")
1192
- }), [Qr, Br] = v(null), Ke = $e({
1193
- mutationFn: (e) => h.request(
1194
- $a(`/queues/views/${e.id}`, {
1211
+ }), [Br, jr] = v(null), Pe = qe({
1212
+ mutationFn: (e) => f.request(
1213
+ qa(`/queues/views/${e.id}`, {
1195
1214
  state: {
1196
1215
  scope: g,
1197
- filters: _,
1216
+ filters: w,
1198
1217
  sort: I,
1199
1218
  group_by: $,
1200
- view: C,
1219
+ view: S,
1201
1220
  columns: Bt,
1202
- pins: it
1221
+ pins: ct
1203
1222
  }
1204
1223
  })
1205
1224
  ),
1206
1225
  onSuccess: (e, t) => {
1207
- f.invalidateQueries({ queryKey: ["queue-views", l] }), Br(t.id), setTimeout(() => Br((n) => n === t.id ? null : n), 2e3), O.success(`Saved "${t.name}" with the current filters, scope and sort`);
1226
+ h.invalidateQueries({ queryKey: ["queue-views", l] }), jr(t.id), setTimeout(() => jr((n) => n === t.id ? null : n), 2e3), O.success(`Saved "${t.name}" with the current filters, scope and sort`);
1208
1227
  },
1209
1228
  onError: () => O.error("Failed to update view")
1210
- }), [An, Zt] = v(null);
1211
- P(() => {
1212
- if (An == null) return;
1229
+ }), [On, Zt] = v(null);
1230
+ K(() => {
1231
+ if (On == null) return;
1213
1232
  const e = setTimeout(() => Zt(null), 5e3);
1214
1233
  return () => clearTimeout(e);
1215
- }, [An]);
1216
- const jr = $e({
1217
- mutationFn: (e) => h.request(Vn(`/queues/views/${e}`)),
1234
+ }, [On]);
1235
+ const Ur = qe({
1236
+ mutationFn: (e) => f.request(Gn(`/queues/views/${e}`)),
1218
1237
  onSuccess: (e, t) => {
1219
- Zt(null), f.invalidateQueries({ queryKey: ["queue-views", l] }), et(null), ze === t && vn(null);
1238
+ Zt(null), h.invalidateQueries({ queryKey: ["queue-views", l] }), tt(null), ze === t && wn(null);
1220
1239
  },
1221
1240
  onError: () => O.error("Failed to delete view")
1222
- }), ql = $e({
1223
- mutationFn: (e) => h.request(Qo(`/queues/${l}/default-view`, { view_id: e })),
1224
- onMutate: (e) => vn(e),
1241
+ }), Fl = qe({
1242
+ mutationFn: (e) => f.request(jo(`/queues/${l}/default-view`, { view_id: e })),
1243
+ onMutate: (e) => wn(e),
1225
1244
  onSuccess: (e, t) => {
1226
- f.invalidateQueries({ queryKey: ["queue-column-prefs", l] }), O.success(
1245
+ h.invalidateQueries({ queryKey: ["queue-column-prefs", l] }), O.success(
1227
1246
  t === null ? "Reverted to the general default" : "Set as your default view"
1228
1247
  );
1229
1248
  },
1230
1249
  onError: () => {
1231
- f.invalidateQueries({ queryKey: ["queue-column-prefs", l] }), O.error("Failed to update default view");
1250
+ h.invalidateQueries({ queryKey: ["queue-column-prefs", l] }), O.error("Failed to update default view");
1232
1251
  }
1233
- }), [Pe, tt] = v([]), [ee, Ur] = v(!1), Fl = () => {
1234
- ee && tt([]), Ur(!ee);
1252
+ }), [Ke, nt] = v([]), [ee, Ir] = v(!1), Tl = () => {
1253
+ ee && nt([]), Ir(!ee);
1235
1254
  };
1236
- P(() => {
1237
- C !== "table" && ee && (Ur(!1), tt([]));
1238
- }, [C, ee]), Mo(), mn.current = Pe.length;
1239
- const [Ir, Vr] = v(!1);
1240
- async function On(e, t) {
1241
- const n = q.filter((m) => Pe.includes(D(m)));
1242
- Vr(!0), Qt.beginBatch();
1255
+ K(() => {
1256
+ S !== "table" && ee && (Ir(!1), nt([]));
1257
+ }, [S, ee]), Bo(), pn.current = Ke.length;
1258
+ const [Vr, Gr] = v(!1);
1259
+ async function Dn(e, t) {
1260
+ const n = F.filter((m) => Ke.includes(D(m)));
1261
+ Gr(!0), Qt.beginBatch();
1243
1262
  const r = await Promise.allSettled(n.map(t));
1244
1263
  Qt.endBatch();
1245
1264
  const o = r.filter((m) => m.status === "fulfilled").length, s = r.length - o;
1246
- Vr(!1), tt([]), f.invalidateQueries({ queryKey: ["queue-items", l] }), s ? O.warning(`${e}: ${o} succeeded, ${s} failed`) : O.success(`${e}: ${o} succeeded`);
1265
+ Gr(!1), nt([]), h.invalidateQueries({ queryKey: ["queue-items", l] }), s ? O.warning(`${e}: ${o} succeeded, ${s} failed`) : O.success(`${e}: ${o} succeeded`);
1247
1266
  }
1248
1267
  const Me = (e) => {
1249
1268
  var t;
@@ -1252,19 +1271,19 @@ function rd({
1252
1271
  if (r) return r;
1253
1272
  }
1254
1273
  return null;
1255
- }, Tl = (e) => {
1274
+ }, Rl = (e) => {
1256
1275
  if ($ === "state") return e === "No state" ? e : Ae(e);
1257
1276
  if ($ === "collection") return xt(e);
1258
1277
  if ($ != null && $.startsWith("extra.") && e !== "—") {
1259
1278
  const t = Me($.slice(6));
1260
- if (t) return nt(e, t);
1279
+ if (t) return rt(e, t);
1261
1280
  }
1262
1281
  return e;
1263
- }, Rl = oe == null ? void 0 : oe.map((e) => ({
1282
+ }, El = oe == null ? void 0 : oe.map((e) => ({
1264
1283
  key: e.key,
1265
1284
  rows: e.rows,
1266
- header: /* @__PURE__ */ d(qe, { children: [
1267
- /* @__PURE__ */ a("span", { children: Tl(e.key) }),
1285
+ header: /* @__PURE__ */ d(ye, { children: [
1286
+ /* @__PURE__ */ a("span", { children: Rl(e.key) }),
1268
1287
  /* @__PURE__ */ d("span", { className: "font-normal text-slate-400", children: [
1269
1288
  "(",
1270
1289
  ce(e.count),
@@ -1281,20 +1300,20 @@ function rd({
1281
1300
  T(`extra.${t}`, je(t)),
1282
1301
  ":",
1283
1302
  " ",
1284
- r ? nt(String(n), r) : ce(n)
1303
+ r ? rt(String(n), r) : ce(n)
1285
1304
  ]
1286
1305
  },
1287
1306
  t
1288
1307
  );
1289
1308
  }),
1290
- he && !ke.has(e.key) && cl.has(e.key) && /* @__PURE__ */ a("span", { className: "font-normal text-slate-400", children: "loading…" }),
1291
- he && !ke.has(e.key) && e.rows.length > 0 && e.rows.length < e.count && /* @__PURE__ */ d(
1309
+ fe && !ve.has(e.key) && dl.has(e.key) && /* @__PURE__ */ a("span", { className: "font-normal text-slate-400", children: "loading…" }),
1310
+ fe && !ve.has(e.key) && e.rows.length > 0 && e.rows.length < e.count && /* @__PURE__ */ d(
1292
1311
  "button",
1293
1312
  {
1294
1313
  type: "button",
1295
1314
  "data-queue-group-more": e.key,
1296
1315
  onClick: (t) => {
1297
- t.stopPropagation(), xr((n) => ({ ...n, [e.key]: (n[e.key] ?? 1) + 1 }));
1316
+ t.stopPropagation(), yr((n) => ({ ...n, [e.key]: (n[e.key] ?? 1) + 1 }));
1298
1317
  },
1299
1318
  className: "rounded px-1.5 py-0.5 text-[11px] font-medium text-nvr-navy hover:bg-nvr-cyan/10 dark:text-nvr-cyan",
1300
1319
  children: [
@@ -1315,13 +1334,13 @@ function rd({
1315
1334
  " at risk"
1316
1335
  ] })
1317
1336
  ] })
1318
- })), Dn = (((da = i == null ? void 0 : i.available_values.collection) == null ? void 0 : da.length) ?? 0) > 1, Gr = q.some((e) => !!e.unseen) || ht.size > 0 || q.some((e) => Fe.isNew(D(e))), Wr = [
1319
- ...Dn ? [
1337
+ })), Pn = (((ua = i == null ? void 0 : i.available_values.collection) == null ? void 0 : ua.length) ?? 0) > 1, Wr = F.some((e) => !!e.unseen) || ft.size > 0 || F.some((e) => Fe.isNew(D(e))), Hr = [
1338
+ ...Pn ? [
1320
1339
  {
1321
1340
  key: "collection",
1322
1341
  header: T("collection", "Collection"),
1323
1342
  sortable: !0,
1324
- render: (e) => /* @__PURE__ */ a(ri, { variant: "outline", children: xt(e.collection) })
1343
+ render: (e) => /* @__PURE__ */ a(oi, { variant: "outline", children: xt(e.collection) })
1325
1344
  }
1326
1345
  ] : [],
1327
1346
  {
@@ -1329,22 +1348,22 @@ function rd({
1329
1348
  header: T("label", "Item"),
1330
1349
  sortable: !0,
1331
1350
  // Room in the left padding for the hanging unseen mark (#643).
1332
- className: Gr ? "pl-[30px]" : void 0,
1333
- headerClassName: Gr ? "pl-[30px]" : void 0,
1351
+ className: Wr ? "pl-[30px]" : void 0,
1352
+ headerClassName: Wr ? "pl-[30px]" : void 0,
1334
1353
  render: (e) => (
1335
1354
  // Underlined because clicking opens the item. The row is clickable as
1336
1355
  // a whole, but nothing on it said so — an underline is the one
1337
1356
  // convention people already read as "this goes somewhere".
1338
1357
  /* @__PURE__ */ d("span", { className: "flex items-center gap-1.5", children: [
1339
- ht.get(D(e)) || Fe.isNew(D(e)) ? /* @__PURE__ */ a(
1340
- Vs,
1358
+ ft.get(D(e)) || Fe.isNew(D(e)) ? /* @__PURE__ */ a(
1359
+ Hs,
1341
1360
  {
1342
- lock: ht.get(D(e)),
1361
+ lock: ft.get(D(e)),
1343
1362
  isNew: Fe.isNew(D(e)),
1344
1363
  dataAttr: "data-queue-live-mark",
1345
1364
  hang: !0
1346
1365
  }
1347
- ) : /* @__PURE__ */ a(ni, { change: e.unseen, dataAttr: "data-queue-unseen", hang: !0 }),
1366
+ ) : /* @__PURE__ */ a(li, { change: e.unseen, dataAttr: "data-queue-unseen", hang: !0 }),
1348
1367
  /* @__PURE__ */ a(
1349
1368
  "span",
1350
1369
  {
@@ -1363,9 +1382,9 @@ function rd({
1363
1382
  t
1364
1383
  )),
1365
1384
  /* @__PURE__ */ a(
1366
- ti,
1385
+ ai,
1367
1386
  {
1368
- viewers: rl[ps(e.collection, e.item_id)],
1387
+ viewers: al[hs(e.collection, e.item_id)],
1369
1388
  dataAttr: "data-queue-presence"
1370
1389
  }
1371
1390
  )
@@ -1379,11 +1398,15 @@ function rd({
1379
1398
  render: (e) => e.state ? /* @__PURE__ */ d(
1380
1399
  "span",
1381
1400
  {
1382
- className: "inline-block max-w-[190px] truncate whitespace-nowrap rounded px-1.5 py-0.5 align-middle text-[11px] font-medium",
1383
- style: {
1384
- backgroundColor: e.state_color ? `${e.state_color}1a` : void 0,
1385
- color: e.state_color ?? void 0
1386
- },
1401
+ className: q(
1402
+ "inline-block max-w-[190px] truncate whitespace-nowrap rounded px-1.5 py-0.5 align-middle text-[11px] font-medium",
1403
+ e.state_color && "text-[color:var(--nvr-state-ink)] dark:text-[color:var(--nvr-state-ink-dark)]"
1404
+ ),
1405
+ style: e.state_color ? {
1406
+ backgroundColor: `${e.state_color}1a`,
1407
+ "--nvr-state-ink": Uo(e.state_color),
1408
+ "--nvr-state-ink-dark": e.state_color
1409
+ } : void 0,
1387
1410
  title: e.via_addendum ? `Addendum "${e.via_addendum.title ?? ""}" — ${Ae(e.state)}` : Ae(e.state),
1388
1411
  children: [
1389
1412
  Ae(e.state),
@@ -1396,13 +1419,13 @@ function rd({
1396
1419
  key: "owners",
1397
1420
  header: T("owners", "Owners"),
1398
1421
  sortable: !0,
1399
- render: (e) => /* @__PURE__ */ a(mi, { owners: e.owners })
1422
+ render: (e) => /* @__PURE__ */ a(hi, { owners: e.owners })
1400
1423
  },
1401
1424
  {
1402
1425
  key: "aging_hours",
1403
1426
  header: T("aging_hours", "Aging"),
1404
1427
  sortable: !0,
1405
- render: (e) => Si(e.aging_hours)
1428
+ render: (e) => Fi(e.aging_hours)
1406
1429
  },
1407
1430
  {
1408
1431
  // When the record entered its current state — the same moment Aging
@@ -1410,13 +1433,13 @@ function rd({
1410
1433
  key: "state_entered",
1411
1434
  header: T("state_entered", "Last State Change"),
1412
1435
  sortable: !0,
1413
- render: (e) => e.state_entered_at ? Go(e.state_entered_at, { type: "datetime", template: "MM/DD/YYYY - h:mmA" }) : /* @__PURE__ */ a("span", { className: "text-slate-300 dark:text-slate-600", children: "—" })
1436
+ render: (e) => e.state_entered_at ? Yo(e.state_entered_at, { type: "datetime", template: "MM/DD/YYYY - h:mmA" }) : /* @__PURE__ */ a("span", { className: "text-slate-300 dark:text-slate-600", children: "—" })
1414
1437
  },
1415
1438
  {
1416
1439
  key: "sla_status",
1417
1440
  header: T("sla_status", "SLA"),
1418
1441
  sortable: !0,
1419
- render: (e) => /* @__PURE__ */ a(Ci, { status: e.sla_status })
1442
+ render: (e) => /* @__PURE__ */ a(Ti, { status: e.sla_status })
1420
1443
  },
1421
1444
  {
1422
1445
  key: "at_risk",
@@ -1424,27 +1447,27 @@ function rd({
1424
1447
  sortable: !0,
1425
1448
  render: (e) => {
1426
1449
  var t;
1427
- return e.at_risk ? /* @__PURE__ */ d("span", { className: xs(e.at_risk_color ?? "red"), children: [
1450
+ return e.at_risk ? /* @__PURE__ */ d("span", { className: vs(e.at_risk_color ?? "red"), children: [
1428
1451
  "⚑ ",
1429
1452
  ((t = e.at_risk_rule) == null ? void 0 : t.name) ?? "At risk"
1430
1453
  ] }) : e.predicted_risk ? /* @__PURE__ */ a("span", { className: "text-amber-500", title: e.predicted_note ?? void 0, children: "⚑ Predicted" }) : null;
1431
1454
  }
1432
1455
  },
1433
- ...Xe ? [
1456
+ ...Ze ? [
1434
1457
  {
1435
1458
  key: "addendums",
1436
1459
  header: T("addendums", "Addendums"),
1437
1460
  sortable: !1,
1438
- render: (e) => /* @__PURE__ */ a(Ni, { summary: e.addendums })
1461
+ render: (e) => /* @__PURE__ */ a(qi, { summary: e.addendums })
1439
1462
  }
1440
1463
  ] : [],
1441
- ...ut ? [
1464
+ ...mt ? [
1442
1465
  {
1443
1466
  key: "fulfilment",
1444
1467
  header: T("fulfilment", "Shipped"),
1445
1468
  sortable: !0,
1446
1469
  render: (e) => /* @__PURE__ */ a(
1447
- Ks,
1470
+ Qs,
1448
1471
  {
1449
1472
  collection: e.collection,
1450
1473
  itemId: e.item_id,
@@ -1453,21 +1476,21 @@ function rd({
1453
1476
  )
1454
1477
  }
1455
1478
  ] : [],
1456
- ..._e ? [
1479
+ ...Ne ? [
1457
1480
  {
1458
1481
  key: "integrations",
1459
1482
  header: T("integrations", "Integrations"),
1460
1483
  sortable: !1,
1461
- render: (e) => /* @__PURE__ */ a(Qs, { rows: bl[`${e.collection}:${e.item_id}`] })
1484
+ render: (e) => /* @__PURE__ */ a(Us, { rows: fl[`${e.collection}:${e.item_id}`] })
1462
1485
  }
1463
1486
  ] : [],
1464
- ...$r ? [
1487
+ ...qr ? [
1465
1488
  {
1466
1489
  key: "tasks",
1467
1490
  header: T("tasks", "Tasks"),
1468
1491
  sortable: !1,
1469
1492
  render: (e) => {
1470
- const t = fl[`${e.collection}:${e.item_id}`];
1493
+ const t = gl[`${e.collection}:${e.item_id}`];
1471
1494
  return !t || t.open === 0 ? /* @__PURE__ */ a("span", { className: "text-[11px] text-slate-400", children: "—" }) : /* @__PURE__ */ d(
1472
1495
  "span",
1473
1496
  {
@@ -1482,15 +1505,15 @@ function rd({
1482
1505
  }
1483
1506
  }
1484
1507
  ] : [],
1485
- ...mt ? [
1508
+ ...pt ? [
1486
1509
  {
1487
1510
  key: "send_backs",
1488
1511
  header: T("send_backs", "Sent back"),
1489
1512
  sortable: !0,
1490
- render: (e) => /* @__PURE__ */ a(vi, { summary: e.send_backs })
1513
+ render: (e) => /* @__PURE__ */ a(Si, { summary: e.send_backs })
1491
1514
  }
1492
1515
  ] : []
1493
- ], El = {
1516
+ ], Ll = {
1494
1517
  key: "claim",
1495
1518
  header: "",
1496
1519
  render: (e) => e.claimed_by ? /* @__PURE__ */ a(
@@ -1514,7 +1537,7 @@ function rd({
1514
1537
  children: "Claim"
1515
1538
  }
1516
1539
  )
1517
- }, _t = (c == null ? void 0 : c.available_extra_fields) ?? [], Nt = Oo("drill.queue"), ae = Nt.value, Hr = (e) => Nt.push([e]), Ll = (e) => {
1540
+ }, _t = (c == null ? void 0 : c.available_extra_fields) ?? [], Nt = Po("drill.queue"), ae = Nt.value, Yr = (e) => Nt.push([e]), Al = (e) => {
1518
1541
  var t;
1519
1542
  for (const n of (c == null ? void 0 : c.sources) ?? []) {
1520
1543
  const r = (t = n.drilldown) == null ? void 0 : t[e];
@@ -1526,202 +1549,202 @@ function rd({
1526
1549
  };
1527
1550
  }
1528
1551
  return { enabled: !0, layout_id: null, width: null };
1529
- }, Al = V(() => {
1552
+ }, Ol = V(() => {
1530
1553
  const e = {};
1531
1554
  for (const t of (c == null ? void 0 : c.sources) ?? [])
1532
1555
  for (const [n, r] of Object.entries(t.column_formats ?? {}))
1533
1556
  n in e || (e[n] = r);
1534
1557
  return e;
1535
- }, [c == null ? void 0 : c.sources]), Ol = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Dl = /^\d{4}-\d{2}-\d{2}T\d{2}:/;
1558
+ }, [c == null ? void 0 : c.sources]), Dl = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Pl = /^\d{4}-\d{2}-\d{2}T\d{2}:/;
1536
1559
  function Kl(e) {
1537
- if (Ol.test(e)) return { text: e.split("@")[0], title: e };
1538
- if (Dl.test(e)) {
1560
+ if (Dl.test(e)) return { text: e.split("@")[0], title: e };
1561
+ if (Pl.test(e)) {
1539
1562
  const t = new Date(e);
1540
1563
  if (!Number.isNaN(t.getTime()))
1541
1564
  return {
1542
- text: Cs(t, { month: "2-digit", day: "2-digit", year: "2-digit" }),
1543
- title: Ss(t)
1565
+ text: Fs(t, { month: "2-digit", day: "2-digit", year: "2-digit" }),
1566
+ title: qs(t)
1544
1567
  };
1545
1568
  }
1546
1569
  return { text: e, title: e };
1547
1570
  }
1548
- const Kn = Jo(u == null ? void 0 : u.inline_edit), Yr = Kn.enabled ? [
1571
+ const Kn = Zo(u == null ? void 0 : u.inline_edit), Jr = Kn.enabled ? [
1549
1572
  ...new Set(
1550
1573
  ((c == null ? void 0 : c.sources) ?? []).filter((e) => e.type === "collection" && e.collection).map((e) => e.collection)
1551
1574
  )
1552
- ] : [], Pl = Be({
1553
- queries: Yr.map((e) => ({
1575
+ ] : [], Ml = Be({
1576
+ queries: Jr.map((e) => ({
1554
1577
  queryKey: ["cbv-collection-meta", e],
1555
- queryFn: () => h.request(L(`/collections/${e}`)).then((t) => t.data),
1578
+ queryFn: () => f.request(L(`/collections/${e}`)).then((t) => t.data),
1556
1579
  staleTime: 10 * 6e4,
1557
1580
  retry: !1
1558
1581
  }))
1559
- }), Pn = /* @__PURE__ */ new Map();
1560
- Yr.forEach((e, t) => {
1582
+ }), Mn = /* @__PURE__ */ new Map();
1583
+ Jr.forEach((e, t) => {
1561
1584
  var r;
1562
- const n = (r = Pl[t]) == null ? void 0 : r.data;
1563
- n && Pn.set(e, {
1585
+ const n = (r = Ml[t]) == null ? void 0 : r.data;
1586
+ n && Mn.set(e, {
1564
1587
  fields: new Map((n.fields ?? []).map((o) => [o.field, o])),
1565
1588
  relations: n.relations ?? []
1566
1589
  });
1567
1590
  });
1568
- const { data: Ml } = W({
1591
+ const { data: Ql } = G({
1569
1592
  queryKey: ["my-permissions"],
1570
- queryFn: () => h.request(L("/security/my/permissions")).then((e) => e.data),
1593
+ queryFn: () => f.request(L("/security/my/permissions")).then((e) => e.data),
1571
1594
  enabled: Kn.enabled && !De,
1572
1595
  staleTime: 5 * 6e4
1573
- }), Jr = Ws(), zr = (e, t) => {
1596
+ }), zr = Js(), Xr = (e, t) => {
1574
1597
  if (t.includes(".")) return null;
1575
- const n = Pn.get(e.collection);
1598
+ const n = Mn.get(e.collection);
1576
1599
  if (!n) return null;
1577
- const r = ht.get(D(e));
1578
- return r && !r.is_mine ? null : Zo({
1600
+ const r = ft.get(D(e));
1601
+ return r && !r.is_mine ? null : ns({
1579
1602
  config: Kn,
1580
1603
  key: t,
1581
1604
  field: n.fields.get(t),
1582
1605
  collection: e.collection,
1583
1606
  relations: n.relations,
1584
- mayUpdate: De || Ls(Ml, e.collection)
1607
+ mayUpdate: De || Ds(Ql, e.collection)
1585
1608
  });
1586
- }, Xr = (e, t, n) => {
1609
+ }, Zr = (e, t, n) => {
1587
1610
  var r, o, s;
1588
1611
  return n === "m2o" ? ((o = (r = e.extra_ids) == null ? void 0 : r[t]) == null ? void 0 : o[0]) ?? null : ((s = e.extra) == null ? void 0 : s[t]) ?? null;
1589
- }, Ql = (e, t, n, r, o) => {
1590
- const s = (b) => `${D(e)}|${b}`, m = [...te].filter((b) => b.startsWith("extra.")).map((b) => b.slice(6)).filter((b) => !!zr(e, b)), p = o === 0 ? null : es(m, t, o), S = (b) => b.collection === e.collection && b.item_id === e.item_id, w = (b) => S(b) ? n === "m2o" ? {
1612
+ }, Bl = (e, t, n, r, o) => {
1613
+ const s = (b) => `${D(e)}|${b}`, m = [...te].filter((b) => b.startsWith("extra.")).map((b) => b.slice(6)).filter((b) => !!Xr(e, b)), p = o === 0 ? null : rs(m, t, o), C = (b) => b.collection === e.collection && b.item_id === e.item_id, _ = (b) => C(b) ? n === "m2o" ? {
1591
1614
  ...b,
1592
1615
  extra_ids: { ...b.extra_ids ?? {}, [t]: r == null ? [] : [String(r)] }
1593
1616
  } : { ...b, extra: { ...b.extra ?? {}, [t]: r } } : b;
1594
- Jr.commit({
1617
+ zr.commit({
1595
1618
  cellKey: s(t),
1596
1619
  collection: e.collection,
1597
1620
  id: e.item_id,
1598
1621
  field: t,
1599
1622
  kind: n,
1600
- before: Xr(e, t, n),
1623
+ before: Zr(e, t, n),
1601
1624
  value: r,
1602
1625
  next: p ? s(p) : null,
1603
1626
  optimistic: () => {
1604
- const b = f.getQueriesData({ queryKey: ["queue-items", l] });
1605
- return f.setQueriesData({ queryKey: ["queue-items", l] }, (R) => {
1627
+ const b = h.getQueriesData({ queryKey: ["queue-items", l] });
1628
+ return h.setQueriesData({ queryKey: ["queue-items", l] }, (R) => {
1606
1629
  const y = R;
1607
- return Array.isArray(y == null ? void 0 : y.data) ? { ...y, data: y.data.map(w) } : Array.isArray(y == null ? void 0 : y.rows) ? { ...y, rows: y.rows.map(w) } : R;
1630
+ return Array.isArray(y == null ? void 0 : y.data) ? { ...y, data: y.data.map(_) } : Array.isArray(y == null ? void 0 : y.rows) ? { ...y, rows: y.rows.map(_) } : R;
1608
1631
  }), () => {
1609
- for (const [R, y] of b) f.setQueryData(R, y);
1632
+ for (const [R, y] of b) h.setQueryData(R, y);
1610
1633
  };
1611
1634
  },
1612
1635
  // Labels, rollups and the row's place in the queue follow the server.
1613
- onSaved: () => void f.invalidateQueries({ queryKey: ["queue-items", l] })
1636
+ onSaved: () => void h.invalidateQueries({ queryKey: ["queue-items", l] })
1614
1637
  });
1615
- }, Bl = (e, t, n) => {
1616
- const r = zr(e, t);
1638
+ }, jl = (e, t, n) => {
1639
+ const r = Xr(e, t);
1617
1640
  if (!r) return n;
1618
- const o = Pn.get(e.collection), s = o == null ? void 0 : o.fields.get(t);
1641
+ const o = Mn.get(e.collection), s = o == null ? void 0 : o.fields.get(t);
1619
1642
  return /* @__PURE__ */ a(
1620
- Hs,
1643
+ zs,
1621
1644
  {
1622
- controller: Jr,
1645
+ controller: zr,
1623
1646
  cellKey: `${D(e)}|${t}`,
1624
1647
  kind: r,
1625
- value: Xr(e, t, r),
1648
+ value: Zr(e, t, r),
1626
1649
  label: T(`extra.${t}`, je(t)),
1627
- choices: s ? Xo(s) : void 0,
1628
- target: r === "m2o" && o ? zo(o.relations, e.collection, t) : null,
1629
- onCommit: (m, p) => Ql(e, t, r, m, p),
1650
+ choices: s ? ts(s) : void 0,
1651
+ target: r === "m2o" && o ? es(o.relations, e.collection, t) : null,
1652
+ onCommit: (m, p) => Bl(e, t, r, m, p),
1630
1653
  children: n
1631
1654
  }
1632
1655
  );
1633
- }, jl = _t.map((e) => ({
1656
+ }, Ul = _t.map((e) => ({
1634
1657
  key: `extra.${e}`,
1635
1658
  header: T(`extra.${e}`, je(e)),
1636
1659
  sortable: !0,
1637
- render: (t) => Bl(t, e, Ul(t, e))
1660
+ render: (t) => jl(t, e, Il(t, e))
1638
1661
  }));
1639
- function Ul(e, t) {
1662
+ function Il(e, t) {
1640
1663
  var n, r;
1641
1664
  {
1642
1665
  const o = (n = e.extra) == null ? void 0 : n[t];
1643
1666
  if (o == null || o === "") return /* @__PURE__ */ a("span", { className: "text-slate-300", children: "—" });
1644
- const s = Me(t), m = s ? nt(String(o), s) : String(o), { text: p, title: S } = Kl(m), w = ((c == null ? void 0 : c.extra_field_meta) ?? []).find((y) => y.path === t), b = ((r = e.extra_ids) == null ? void 0 : r[t]) ?? [], R = Ll(t);
1645
- return (w == null ? void 0 : w.kind) === "relation" && w.target_collection && b.length > 0 && R.enabled && !w.aggregate ? /* @__PURE__ */ a(
1667
+ const s = Me(t), m = s ? rt(String(o), s) : String(o), { text: p, title: C } = Kl(m), _ = ((c == null ? void 0 : c.extra_field_meta) ?? []).find((y) => y.path === t), b = ((r = e.extra_ids) == null ? void 0 : r[t]) ?? [], R = Al(t);
1668
+ return (_ == null ? void 0 : _.kind) === "relation" && _.target_collection && b.length > 0 && R.enabled && !_.aggregate ? /* @__PURE__ */ a(
1646
1669
  "button",
1647
1670
  {
1648
1671
  type: "button",
1649
1672
  onClick: (y) => {
1650
- y.stopPropagation(), Hr({
1651
- collection: w.target_collection,
1673
+ y.stopPropagation(), Yr({
1674
+ collection: _.target_collection,
1652
1675
  itemId: b[0],
1653
1676
  layoutId: R.layout_id,
1654
1677
  width: R.width,
1655
1678
  title: m
1656
1679
  });
1657
1680
  },
1658
- title: S,
1681
+ title: C,
1659
1682
  className: "block max-w-[200px] truncate text-left text-[12px] text-slate-700 underline decoration-slate-300 decoration-dotted underline-offset-2 hover:text-nvr-navy hover:decoration-nvr-cyan dark:text-slate-200 dark:hover:text-nvr-cyan",
1660
1683
  children: p
1661
1684
  }
1662
- ) : (w == null ? void 0 : w.kind) === "relation" && w.aggregate ? /* @__PURE__ */ a(
1685
+ ) : (_ == null ? void 0 : _.kind) === "relation" && _.aggregate ? /* @__PURE__ */ a(
1663
1686
  "button",
1664
1687
  {
1665
1688
  type: "button",
1666
1689
  onClick: (y) => {
1667
- y.stopPropagation(), xn({ row: e, path: t, value: m });
1690
+ y.stopPropagation(), yn({ row: e, path: t, value: m });
1668
1691
  },
1669
1692
  title: "Show the rows behind this number",
1670
1693
  className: "block max-w-[200px] truncate text-left text-[12px] tabular-nums underline decoration-slate-300 decoration-dotted underline-offset-2 hover:text-nvr-navy hover:decoration-nvr-cyan dark:hover:text-nvr-cyan",
1671
1694
  children: p
1672
1695
  }
1673
- ) : /* @__PURE__ */ a("span", { className: "block max-w-[200px] truncate text-[12px]", title: S, children: p });
1696
+ ) : /* @__PURE__ */ a("span", { className: "block max-w-[200px] truncate text-[12px]", title: C, children: p });
1674
1697
  }
1675
1698
  }
1676
- const Zr = [
1677
- ...Dn ? ["collection"] : [],
1699
+ const ea = [
1700
+ ...Pn ? ["collection"] : [],
1678
1701
  "state",
1679
1702
  "owners",
1680
1703
  "aging_hours",
1681
1704
  "state_entered",
1682
1705
  "sla_status",
1683
1706
  "at_risk",
1684
- ...Xe ? ["addendums"] : [],
1685
- ...ut ? ["fulfilment"] : [],
1686
- ..._e ? ["integrations"] : [],
1687
- ...mt ? ["send_backs"] : [],
1688
- ...$r ? ["tasks"] : [],
1707
+ ...Ze ? ["addendums"] : [],
1708
+ ...mt ? ["fulfilment"] : [],
1709
+ ...Ne ? ["integrations"] : [],
1710
+ ...pt ? ["send_backs"] : [],
1711
+ ...qr ? ["tasks"] : [],
1689
1712
  ..._t.map((e) => `extra.${e}`)
1690
- ], Il = [
1691
- ...Dn ? ["collection"] : [],
1713
+ ], Vl = [
1714
+ ...Pn ? ["collection"] : [],
1692
1715
  "state",
1693
1716
  "owners",
1694
- ...Xe ? ["addendums"] : [],
1695
- ...ut ? ["fulfilment"] : [],
1696
- ..._e ? ["integrations"] : [],
1697
- ...mt ? ["send_backs"] : [],
1717
+ ...Ze ? ["addendums"] : [],
1718
+ ...mt ? ["fulfilment"] : [],
1719
+ ...Ne ? ["integrations"] : [],
1720
+ ...pt ? ["send_backs"] : [],
1698
1721
  "aging_hours",
1699
1722
  "sla_status",
1700
1723
  "at_risk",
1701
1724
  ..._t.slice(0, 2).map((e) => `extra.${e}`)
1702
- ], Vl = (u == null ? void 0 : u.default_columns) ?? null, Mn = Bt ?? Vl, te = new Set(Mn ?? Il);
1703
- Xe && !Et.has("addendums") && te.add("addendums"), ut && !Et.has("fulfilment") && te.add("fulfilment"), _e && !Et.has("integrations") && te.add("integrations"), mt && !Et.has("send_backs") && te.add("send_backs");
1704
- const Gl = new Set(De ? [] : (u == null ? void 0 : u.admin_only_columns) ?? []);
1705
- for (const e of Gl) te.delete(e);
1725
+ ], Gl = (u == null ? void 0 : u.default_columns) ?? null, Qn = Bt ?? Gl, te = new Set(Qn ?? Vl);
1726
+ Ze && !Et.has("addendums") && te.add("addendums"), mt && !Et.has("fulfilment") && te.add("fulfilment"), Ne && !Et.has("integrations") && te.add("integrations"), pt && !Et.has("send_backs") && te.add("send_backs");
1727
+ const Wl = new Set(De ? [] : (u == null ? void 0 : u.admin_only_columns) ?? []);
1728
+ for (const e of Wl) te.delete(e);
1706
1729
  const St = [
1707
- ...(Mn ?? []).filter((e) => Zr.includes(e)),
1708
- ...Zr.filter((e) => !(Mn ?? []).includes(e))
1709
- ], Wl = no(ro(ao, { activationConstraint: { distance: 4 } }));
1710
- function Hl(e) {
1730
+ ...(Qn ?? []).filter((e) => ea.includes(e)),
1731
+ ...ea.filter((e) => !(Qn ?? []).includes(e))
1732
+ ], Hl = ao(lo(oo, { activationConstraint: { distance: 4 } }));
1733
+ function Yl(e) {
1711
1734
  const { active: t, over: n } = e;
1712
1735
  if (!n || t.id === n.id) return;
1713
1736
  const r = St.indexOf(String(t.id)), o = St.indexOf(String(n.id));
1714
1737
  r === -1 || o === -1 || jt(
1715
- co(St, r, o).filter((s) => te.has(s))
1738
+ mo(St, r, o).filter((s) => te.has(s))
1716
1739
  );
1717
1740
  }
1718
- const ea = Wr.find((e) => e.key === "label"), Yl = {
1719
- ...ea,
1741
+ const ta = Hr.find((e) => e.key === "label"), Jl = {
1742
+ ...ta,
1720
1743
  render: (e, ...t) => /* @__PURE__ */ d("span", { className: "inline-flex min-w-0 items-center gap-1.5", children: [
1721
- /* @__PURE__ */ a(Rs, { rowId: e.item_id }),
1722
- ea.render(e, ...t)
1744
+ /* @__PURE__ */ a(As, { rowId: e.item_id }),
1745
+ ta.render(e, ...t)
1723
1746
  ] })
1724
- }, Jl = ((u == null ? void 0 : u.formula_columns) ?? []).map(
1747
+ }, zl = ((u == null ? void 0 : u.formula_columns) ?? []).map(
1725
1748
  (e) => ({
1726
1749
  key: `formula.${e.key}`,
1727
1750
  header: e.label,
@@ -1729,7 +1752,7 @@ function rd({
1729
1752
  const n = {
1730
1753
  ...t,
1731
1754
  ...t.extra ? Object.fromEntries(Object.entries(t.extra).map(([s, m]) => [`extra.${s}`, m])) : {}
1732
- }, r = Bo(e.formula, (s) => {
1755
+ }, r = Io(e.formula, (s) => {
1733
1756
  const m = n[s] ?? (t.extra ? t.extra[s] : void 0), p = Number(m);
1734
1757
  return Number.isFinite(p) ? p : m ?? null;
1735
1758
  });
@@ -1738,19 +1761,19 @@ function rd({
1738
1761
  return Number.isFinite(o) ? /* @__PURE__ */ a("span", { className: "tabular-nums", children: e.format === "currency" ? o.toLocaleString(void 0, { style: "currency", currency: "USD" }) : o.toLocaleString() }) : /* @__PURE__ */ a("span", { children: String(r) });
1739
1762
  }
1740
1763
  })
1741
- ), Qn = [...Wr, ...jl, ...Jl], ta = ii(
1764
+ ), Bn = [...Hr, ...Ul, ...zl], na = ui(
1742
1765
  St,
1743
1766
  (e) => {
1744
1767
  var n;
1745
- const t = (n = Qn.find((r) => r.key === e)) == null ? void 0 : n.header;
1768
+ const t = (n = Bn.find((r) => r.key === e)) == null ? void 0 : n.header;
1746
1769
  return typeof t == "string" ? t : e;
1747
1770
  },
1748
1771
  te
1749
- ), zl = {
1772
+ ), Xl = {
1750
1773
  key: "__actions__",
1751
1774
  header: "",
1752
1775
  render: (e) => e.collection === "tasks" || e.collection === rn ? null : /* @__PURE__ */ a("span", { onClick: (t) => t.stopPropagation(), children: /* @__PURE__ */ a(
1753
- Es,
1776
+ Os,
1754
1777
  {
1755
1778
  collection: e.collection,
1756
1779
  id: e.item_id,
@@ -1760,25 +1783,25 @@ function rd({
1760
1783
  onPeek: () => Oe(e),
1761
1784
  urlFor: H.urlFor,
1762
1785
  onDeleted: () => {
1763
- h.request(Vn(`/items/${e.collection}/${e.item_id}`)).then(() => {
1764
- O.success("Moved to trash"), f.invalidateQueries({ queryKey: ["queue-items", l] });
1786
+ f.request(Gn(`/items/${e.collection}/${e.item_id}`)).then(() => {
1787
+ O.success("Moved to trash"), h.invalidateQueries({ queryKey: ["queue-items", l] });
1765
1788
  }).catch((t) => O.error(qt(t, "Delete failed")));
1766
1789
  },
1767
- onAfterTransition: () => void f.invalidateQueries({ queryKey: ["queue-items", l] }),
1790
+ onAfterTransition: () => void h.invalidateQueries({ queryKey: ["queue-items", l] }),
1768
1791
  bulkEnabledKeys: (u == null ? void 0 : u.bulk_action_keys) ?? null,
1769
1792
  disabled: ee
1770
1793
  }
1771
1794
  ) })
1772
1795
  }, en = [
1773
- Yl,
1774
- ...St.filter((e) => te.has(e)).map((e) => Qn.find((t) => t.key === e)).filter((e) => e !== void 0),
1775
- ...pe ? [El] : [],
1776
- zl
1777
- ], na = V(() => {
1796
+ Jl,
1797
+ ...St.filter((e) => te.has(e)).map((e) => Bn.find((t) => t.key === e)).filter((e) => e !== void 0),
1798
+ ...pe ? [Ll] : [],
1799
+ Xl
1800
+ ], ra = V(() => {
1778
1801
  var r;
1779
- const e = u == null ? void 0 : u.default_pins, t = it ?? (e && Object.keys(e).length > 0 ? e : { [((r = en[0]) == null ? void 0 : r.key) ?? "label"]: "left" }), n = new Set(en.map((o) => o.key));
1802
+ const e = u == null ? void 0 : u.default_pins, t = ct ?? (e && Object.keys(e).length > 0 ? e : { [((r = en[0]) == null ? void 0 : r.key) ?? "label"]: "left" }), n = new Set(en.map((o) => o.key));
1780
1803
  return Object.fromEntries(Object.entries(t).filter(([o]) => n.has(o)));
1781
- }, [it, u == null ? void 0 : u.default_pins, en.map((e) => e.key).join("|")]), ra = [
1804
+ }, [ct, u == null ? void 0 : u.default_pins, en.map((e) => e.key).join("|")]), aa = [
1782
1805
  { value: "state", label: "State" },
1783
1806
  { value: "collection", label: "Collection" },
1784
1807
  { value: "sla_status", label: "SLA status" },
@@ -1786,33 +1809,33 @@ function rd({
1786
1809
  { value: "owners", label: "Owner" },
1787
1810
  { value: "aging", label: "Aging" },
1788
1811
  ..._t.filter((e) => te.has(`extra.${e}`)).map((e) => ({ value: `extra.${e}`, label: T(`extra.${e}`, je(e)) }))
1789
- ], aa = (e) => async (t, n) => {
1812
+ ], la = (e) => async (t, n) => {
1790
1813
  if (!e.target_collection || !e.display_field) return [];
1791
1814
  const r = {
1792
1815
  limit: 25,
1793
1816
  sort: e.display_field,
1794
1817
  // Records hidden from pickers (a retired zone) are not offered.
1795
1818
  picker: "1"
1796
- }, o = n != null && n.narrowBy.length ? hs(
1819
+ }, o = n != null && n.narrowBy.length ? xs(
1797
1820
  e.target_collection,
1798
- await fs(h, f, e.target_collection),
1821
+ await ys(f, h, e.target_collection),
1799
1822
  n.narrowBy
1800
1823
  ) : null, s = [
1801
1824
  ...t.trim() ? [{ [e.display_field]: { _contains: t.trim() } }] : [],
1802
1825
  ...o ? [o] : []
1803
1826
  ];
1804
1827
  s.length > 0 && (r.filter = JSON.stringify(s.length === 1 ? s[0] : { _and: s }));
1805
- const p = (await h.request(
1828
+ const p = (await f.request(
1806
1829
  L(`/items/${e.target_collection}`, r)
1807
- )).data ?? [], S = Me(e.path), w = Te[e.path] ? new Set(Te[e.path]) : null, b = /* @__PURE__ */ new Set(), R = [];
1830
+ )).data ?? [], C = Me(e.path), _ = Te[e.path] ? new Set(Te[e.path]) : null, b = /* @__PURE__ */ new Set(), R = [];
1808
1831
  for (const y of p) {
1809
1832
  const X = y[e.display_field];
1810
1833
  if (X == null || X === "") continue;
1811
1834
  const Z = String(X);
1812
- b.has(Z) || w && !w.has(Z) || (b.add(Z), R.push({ label: S ? nt(Z, S) : Z, value: Z }));
1835
+ b.has(Z) || _ && !_.has(Z) || (b.add(Z), R.push({ label: C ? rt(Z, C) : Z, value: Z }));
1813
1836
  }
1814
1837
  return R;
1815
- }, Bn = new Map(((c == null ? void 0 : c.extra_field_meta) ?? []).map((e) => [e.path, e])), Qe = [
1838
+ }, jn = new Map(((c == null ? void 0 : c.extra_field_meta) ?? []).map((e) => [e.path, e])), Qe = [
1816
1839
  {
1817
1840
  key: "collection",
1818
1841
  placeholder: T("collection", "Collection"),
@@ -1830,8 +1853,8 @@ function rd({
1830
1853
  multi: !0,
1831
1854
  // Until the rows land, the pipeline's own states (no counts yet) rather
1832
1855
  // than an empty list.
1833
- options: Lr(
1834
- i ? i.available_values.state ?? [] : Object.keys(Ne)
1856
+ options: Ar(
1857
+ i ? i.available_values.state ?? [] : Object.keys(Se)
1835
1858
  ).map((e) => {
1836
1859
  var t;
1837
1860
  return {
@@ -1839,7 +1862,7 @@ function rd({
1839
1862
  value: e,
1840
1863
  // How many rows sit in it under the other active filters (the State
1841
1864
  // filter itself left out, or every other state would read 0).
1842
- count: kr ? kr[e] ?? 0 : (t = x == null ? void 0 : x.by_state) == null ? void 0 : t[e]
1865
+ count: vr ? vr[e] ?? 0 : (t = x == null ? void 0 : x.by_state) == null ? void 0 : t[e]
1843
1866
  };
1844
1867
  })
1845
1868
  },
@@ -1862,12 +1885,12 @@ function rd({
1862
1885
  { label: "No", value: "no" }
1863
1886
  ]
1864
1887
  },
1865
- ...Fr.length > 0 ? [
1888
+ ...Tr.length > 0 ? [
1866
1889
  {
1867
1890
  key: "at_risk_rule",
1868
1891
  placeholder: "Highlight rule",
1869
1892
  type: "select",
1870
- options: Fr
1893
+ options: Tr
1871
1894
  }
1872
1895
  ] : [],
1873
1896
  {
@@ -1876,7 +1899,7 @@ function rd({
1876
1899
  type: "range",
1877
1900
  range_unit: "h"
1878
1901
  },
1879
- ...Xe ? [
1902
+ ...Ze ? [
1880
1903
  {
1881
1904
  key: "addendums",
1882
1905
  placeholder: "Addendums",
@@ -1889,23 +1912,23 @@ function rd({
1889
1912
  ] : [],
1890
1913
  // #630 — integration partners; the queue read model filters on it
1891
1914
  // (live path in memory, materialized cache in SQL).
1892
- ..._e ? [
1915
+ ...Ne ? [
1893
1916
  {
1894
1917
  key: "integrations",
1895
1918
  placeholder: T("integrations", "Integrations"),
1896
1919
  type: "select",
1897
- options: Bs.map((e) => ({ label: e.label, value: e.value }))
1920
+ options: Is.map((e) => ({ label: e.label, value: e.value }))
1898
1921
  }
1899
1922
  ] : [],
1900
- ...ut ? [
1923
+ ...mt ? [
1901
1924
  {
1902
1925
  key: "fulfilment",
1903
1926
  placeholder: "Shipped",
1904
1927
  type: "select",
1905
- options: Ps
1928
+ options: Bs
1906
1929
  }
1907
1930
  ] : [],
1908
- ...mt ? [
1931
+ ...pt ? [
1909
1932
  {
1910
1933
  key: "send_backs",
1911
1934
  placeholder: "Sent back",
@@ -1917,13 +1940,13 @@ function rd({
1917
1940
  ]
1918
1941
  }
1919
1942
  ] : [],
1920
- ...kn.length > 0 ? [
1943
+ ...vn.length > 0 ? [
1921
1944
  {
1922
1945
  key: "labels",
1923
1946
  placeholder: "Triage label",
1924
1947
  type: "combobox",
1925
1948
  multi: !0,
1926
- options: kn.map((e) => ({ label: e, value: e }))
1949
+ options: vn.map((e) => ({ label: e, value: e }))
1927
1950
  }
1928
1951
  ] : [],
1929
1952
  {
@@ -1931,7 +1954,7 @@ function rd({
1931
1954
  placeholder: T("label", "Item"),
1932
1955
  type: "combobox",
1933
1956
  multi: !0,
1934
- loadOptions: async (e) => ((await h.request(
1957
+ loadOptions: async (e) => ((await f.request(
1935
1958
  L(`/queues/${l}/label-suggest`, e.trim() ? { q: e.trim() } : {})
1936
1959
  )).data ?? []).map((n) => ({ label: n, value: n }))
1937
1960
  },
@@ -1947,7 +1970,7 @@ function rd({
1947
1970
  },
1948
1971
  ..._t.map((e) => {
1949
1972
  var m, p;
1950
- const t = Bn.get(e), n = T(`extra.${e}`, je(e)), r = { key: `extra.${e}`, placeholder: n }, o = Me(e);
1973
+ const t = jn.get(e), n = T(`extra.${e}`, je(e)), r = { key: `extra.${e}`, placeholder: n }, o = Me(e);
1951
1974
  if ((o == null ? void 0 : o.type) === "datetime") return { ...r, type: "date" };
1952
1975
  if ((o == null ? void 0 : o.type) === "number") return { ...r, type: "number" };
1953
1976
  if ((o == null ? void 0 : o.type) === "boolean")
@@ -1964,48 +1987,48 @@ function rd({
1964
1987
  ...r,
1965
1988
  type: "combobox",
1966
1989
  multi: !0,
1967
- options: s.map((S) => ({ label: o ? nt(S, o) : S, value: S }))
1990
+ options: s.map((C) => ({ label: o ? rt(C, o) : C, value: C }))
1968
1991
  } : (t == null ? void 0 : t.kind) === "relation" ? {
1969
1992
  ...r,
1970
1993
  type: "combobox",
1971
1994
  multi: !0,
1972
1995
  restricted: !!((p = Te[e]) != null && p.length),
1973
- loadOptions: aa(t)
1996
+ loadOptions: la(t)
1974
1997
  } : { ...r, placeholder: `Search ${n}…`, type: "text" };
1975
1998
  })
1976
- ], jn = Qe.filter(
1999
+ ], Un = Qe.filter(
1977
2000
  (e) => te.has(e.key) || e.key === "label" || e.key === "owners"
1978
- ), Un = (e) => {
2001
+ ), In = (e) => {
1979
2002
  var t;
1980
2003
  return (((t = Qe.find((n) => n.key === e)) == null ? void 0 : t.placeholder) ?? e).replace(/^Search\s+/, "").replace(/…$/, "");
1981
- }, In = (() => {
2004
+ }, Vn = (() => {
1982
2005
  var n, r;
1983
2006
  const e = [];
1984
2007
  for (const [o, s] of Object.entries(Ee)) {
1985
2008
  if (!s || Array.isArray(s) && s.length === 0) continue;
1986
- const m = Qe.find((b) => b.key === o), p = o.startsWith("extra.") ? o.slice(6) : null, S = p ? Me(p) : null, w = jo({
1987
- field: Un(o),
2009
+ const m = Qe.find((b) => b.key === o), p = o.startsWith("extra.") ? o.slice(6) : null, C = p ? Me(p) : null, _ = Vo({
2010
+ field: In(o),
1988
2011
  type: (m == null ? void 0 : m.type) ?? "select",
1989
2012
  value: s,
1990
2013
  optionLabel: (b) => {
1991
2014
  var R, y;
1992
2015
  return (y = (R = m == null ? void 0 : m.options) == null ? void 0 : R.find((X) => X.value === b)) == null ? void 0 : y.label;
1993
2016
  },
1994
- currency: (S == null ? void 0 : S.type) === "number" && S.prefix === "$",
2017
+ currency: (C == null ? void 0 : C.type) === "number" && C.prefix === "$",
1995
2018
  rangeUnit: m == null ? void 0 : m.range_unit
1996
2019
  });
1997
- w && e.push(w);
2020
+ _ && e.push(_);
1998
2021
  }
1999
2022
  const t = i == null ? void 0 : i.total;
2000
- return Uo({
2023
+ return Go({
2001
2024
  noun: "items",
2002
2025
  scope: g === "mine" ? "you own" : g === "unowned" ? "with no owners" : g === "claimed" ? "you claimed" : null,
2003
- viewName: ((r = (n = j == null ? void 0 : j.data) == null ? void 0 : n.find((o) => o.id === Ze)) == null ? void 0 : r.name) ?? null,
2026
+ viewName: ((r = (n = U == null ? void 0 : U.data) == null ? void 0 : n.find((o) => o.id === et)) == null ? void 0 : r.name) ?? null,
2004
2027
  clauses: e,
2005
2028
  shown: typeof t == "number" ? t : null,
2006
2029
  of: (x == null ? void 0 : x.total) ?? null
2007
2030
  });
2008
- })(), Ct = new Set(Object.keys(me.current)), Xl = ((e) => {
2031
+ })(), Ct = new Set(Object.keys(me.current)), Zl = ((e) => {
2009
2032
  var n;
2010
2033
  if (e.some((r) => r.key === "state")) return e;
2011
2034
  const t = Qe.find((r) => r.key === "state");
@@ -2014,12 +2037,12 @@ function rd({
2014
2037
  (() => {
2015
2038
  var o;
2016
2039
  const e = (s) => {
2017
- var X, Z, F;
2040
+ var X, Z, E;
2018
2041
  if (!s.key.startsWith("extra.")) return null;
2019
2042
  if (s.type === "combobox") return s;
2020
- const m = s.key.slice(6), p = Bn.get(m), S = Ct.has(s.key);
2021
- if ((p == null ? void 0 : p.kind) !== "relation" && !S) return null;
2022
- const w = Me(m), b = (X = i == null ? void 0 : i.available_values.extra) == null ? void 0 : X[m], R = s.placeholder.replace(/^Search (.*)…$/, "$1"), y = (p == null ? void 0 : p.kind) === "relation" && p.target_collection && p.display_field ? { collection: p.target_collection, field: p.display_field } : void 0;
2043
+ const m = s.key.slice(6), p = jn.get(m), C = Ct.has(s.key);
2044
+ if ((p == null ? void 0 : p.kind) !== "relation" && !C) return null;
2045
+ const _ = Me(m), b = (X = i == null ? void 0 : i.available_values.extra) == null ? void 0 : X[m], R = s.placeholder.replace(/^Search (.*)…$/, "$1"), y = (p == null ? void 0 : p.kind) === "relation" && p.target_collection && p.display_field ? { collection: p.target_collection, field: p.display_field } : void 0;
2023
2046
  return b != null && b.length ? {
2024
2047
  key: s.key,
2025
2048
  placeholder: R,
@@ -2028,7 +2051,7 @@ function rd({
2028
2051
  cascade: y,
2029
2052
  restricted: !!((Z = Te[m]) != null && Z.length),
2030
2053
  options: b.map((ne) => ({
2031
- label: w && w.type !== "number" ? nt(ne, w) : ne,
2054
+ label: _ && _.type !== "number" ? rt(ne, _) : ne,
2032
2055
  value: ne
2033
2056
  }))
2034
2057
  } : (p == null ? void 0 : p.kind) === "relation" ? {
@@ -2037,39 +2060,39 @@ function rd({
2037
2060
  type: "combobox",
2038
2061
  multi: !0,
2039
2062
  cascade: y,
2040
- restricted: !!((F = Te[m]) != null && F.length),
2041
- loadOptions: aa(p)
2063
+ restricted: !!((E = Te[m]) != null && E.length),
2064
+ loadOptions: la(p)
2042
2065
  } : null;
2043
2066
  };
2044
- if (ar.length > 0) {
2067
+ if (lr.length > 0) {
2045
2068
  const s = [], m = /* @__PURE__ */ new Set();
2046
- for (const p of ar) {
2047
- const S = (p.path ?? []).join(".");
2048
- let w;
2069
+ for (const p of lr) {
2070
+ const C = (p.path ?? []).join(".");
2071
+ let _;
2049
2072
  if (p.key === "state" || /(^|_)state$/.test(((o = p.path) == null ? void 0 : o[0]) ?? ""))
2050
- w = Qe.find((b) => b.key === "state");
2073
+ _ = Qe.find((b) => b.key === "state");
2051
2074
  else {
2052
2075
  const b = Qe.filter((y) => {
2053
2076
  var Z;
2054
2077
  if (!y.key.startsWith("extra.") || m.has(y.key)) return !1;
2055
2078
  const X = y.key.slice(6);
2056
- return ((Z = Bn.get(X)) == null ? void 0 : Z.target_collection) === p.collection;
2057
- }), R = b.find((y) => y.key.slice(6).startsWith(`${S}.`)) ?? b[0];
2058
- w = R ? e(R) : null;
2079
+ return ((Z = jn.get(X)) == null ? void 0 : Z.target_collection) === p.collection;
2080
+ }), R = b.find((y) => y.key.slice(6).startsWith(`${C}.`)) ?? b[0];
2081
+ _ = R ? e(R) : null;
2059
2082
  }
2060
- !w || m.has(w.key) || (m.add(w.key), s.push(p.label ? { ...w, placeholder: p.label } : w));
2083
+ !_ || m.has(_.key) || (m.add(_.key), s.push(p.label ? { ..._, placeholder: p.label } : _));
2061
2084
  }
2062
2085
  for (const p of Qe.map(e))
2063
2086
  p && !m.has(p.key) && (Ct.has(p.key) || p.restricted) && s.push(p);
2064
2087
  if (s.length > 0) return s;
2065
2088
  }
2066
- const t = jn.map(e).filter((s) => s !== null), r = [
2089
+ const t = Un.map(e).filter((s) => s !== null), r = [
2067
2090
  ...t.filter((s) => Ct.has(s.key) || s.restricted),
2068
2091
  ...t.filter((s) => !Ct.has(s.key) && !s.restricted)
2069
2092
  ].slice(0, 6);
2070
- return r.length > 0 ? r : jn.filter((s) => s.key === "state" || s.key === "owners");
2093
+ return r.length > 0 ? r : Un.filter((s) => s.key === "state" || s.key === "owners");
2071
2094
  })()
2072
- ), Zl = (() => {
2095
+ ), eo = (x == null ? void 0 : x.sla_tracked) !== 0 || w.sla_status === "warning" || w.sla_status === "breached", to = (() => {
2073
2096
  if (!x) return null;
2074
2097
  const e = z ?? x, t = [
2075
2098
  {
@@ -2077,7 +2100,7 @@ function rd({
2077
2100
  n: e.sla_breached,
2078
2101
  label: "past SLA",
2079
2102
  tone: "text-red-600 dark:text-red-400",
2080
- on: _.sla_status === "breached",
2103
+ on: w.sla_status === "breached",
2081
2104
  toggle: () => Ge("sla_status", "breached")
2082
2105
  },
2083
2106
  {
@@ -2085,7 +2108,7 @@ function rd({
2085
2108
  n: e.sla_warning,
2086
2109
  label: "SLA soon",
2087
2110
  tone: "text-amber-700 dark:text-amber-400",
2088
- on: _.sla_status === "warning",
2111
+ on: w.sla_status === "warning",
2089
2112
  toggle: () => Ge("sla_status", "warning")
2090
2113
  },
2091
2114
  {
@@ -2093,7 +2116,7 @@ function rd({
2093
2116
  n: e.at_risk,
2094
2117
  label: "at risk",
2095
2118
  tone: "text-red-600 dark:text-red-400",
2096
- on: _.at_risk === "yes",
2119
+ on: w.at_risk === "yes",
2097
2120
  toggle: () => Ge("at_risk", "yes")
2098
2121
  },
2099
2122
  {
@@ -2110,7 +2133,7 @@ function rd({
2110
2133
  return /* @__PURE__ */ d(
2111
2134
  "span",
2112
2135
  {
2113
- className: "flex flex-wrap items-center gap-x-2 text-[11px] text-slate-400",
2136
+ className: "flex flex-wrap items-center gap-x-2 text-[11px] text-slate-500 dark:text-slate-400",
2114
2137
  "data-queue-summary": !0,
2115
2138
  children: [
2116
2139
  t.map((n) => /* @__PURE__ */ d(
@@ -2119,13 +2142,13 @@ function rd({
2119
2142
  type: "button",
2120
2143
  onClick: n.toggle,
2121
2144
  "aria-pressed": n.on,
2122
- className: E(
2145
+ className: q(
2123
2146
  "rounded px-1 tabular-nums hover:bg-slate-100 dark:hover:bg-slate-800",
2124
2147
  n.on && "bg-slate-100 dark:bg-slate-800"
2125
2148
  ),
2126
2149
  "data-queue-summary-item": n.key,
2127
2150
  children: [
2128
- /* @__PURE__ */ a("span", { className: E("font-semibold", n.tone), children: n.n.toLocaleString() }),
2151
+ /* @__PURE__ */ a("span", { className: q("font-semibold", n.tone), children: n.n.toLocaleString() }),
2129
2152
  " ",
2130
2153
  n.label
2131
2154
  ]
@@ -2141,17 +2164,17 @@ function rd({
2141
2164
  }
2142
2165
  );
2143
2166
  })();
2144
- function eo(e) {
2167
+ function no(e) {
2145
2168
  const t = new Set(te);
2146
- t.has(e) ? (t.delete(e), (e === "addendums" || e === "integrations") && Jn((n) => new Set(n).add(e))) : (t.add(e), (e === "addendums" || e === "integrations") && Jn((n) => {
2169
+ t.has(e) ? (t.delete(e), (e === "addendums" || e === "integrations") && zn((n) => new Set(n).add(e))) : (t.add(e), (e === "addendums" || e === "integrations") && zn((n) => {
2147
2170
  const r = new Set(n);
2148
2171
  return r.delete(e), r;
2149
2172
  })), jt([...t]);
2150
2173
  }
2151
- return Ot ? (K == null ? void 0 : K((Ot == null ? void 0 : Ot.status) ?? 500)) ?? null : /* @__PURE__ */ d("div", { className: "flex flex-1 min-h-0 flex-col", children: [
2174
+ return Ot ? (P == null ? void 0 : P((Ot == null ? void 0 : Ot.status) ?? 500)) ?? null : /* @__PURE__ */ d("div", { className: "flex flex-1 min-h-0 flex-col", children: [
2152
2175
  /* @__PURE__ */ d("div", { className: "shrink-0", children: [
2153
2176
  (i == null ? void 0 : i.truncated) && /* @__PURE__ */ d("div", { className: "mx-4 mt-3 flex items-center gap-2 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-[12px] text-amber-800 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-300", children: [
2154
- /* @__PURE__ */ a(bo, { className: "h-4 w-4 shrink-0" }),
2177
+ /* @__PURE__ */ a(ho, { className: "h-4 w-4 shrink-0" }),
2155
2178
  /* @__PURE__ */ a("span", { children: "This view hit the row safety limit — the table below may not include every matching item, but the totals above are exact. Narrow the filters (or clear the priority sort on a large queue) to browse everything." })
2156
2179
  ] }),
2157
2180
  /* @__PURE__ */ d(
@@ -2160,7 +2183,7 @@ function rd({
2160
2183
  className: "flex flex-wrap items-center gap-2 border-b border-slate-200 bg-white px-4 py-2.5 dark:border-slate-700 dark:bg-slate-900",
2161
2184
  "data-queue-toolbar": !0,
2162
2185
  children: [
2163
- J ? /* @__PURE__ */ a("div", { className: "flex overflow-hidden rounded-md border border-slate-200 dark:border-border", children: _i.filter((e) => pe || e.value !== "claimed").map(
2186
+ J ? /* @__PURE__ */ a("div", { className: "flex overflow-hidden rounded-md border border-slate-200 dark:border-border", children: $i.filter((e) => pe || e.value !== "claimed").map(
2164
2187
  (e, t) => /* @__PURE__ */ a(
2165
2188
  "button",
2166
2189
  {
@@ -2168,7 +2191,7 @@ function rd({
2168
2191
  onClick: () => {
2169
2192
  Y(e.value), A(1);
2170
2193
  },
2171
- className: E(
2194
+ className: q(
2172
2195
  "flex h-8 items-center px-3 text-[12px] font-medium transition-colors",
2173
2196
  t > 0 && "border-l border-slate-200 dark:border-border",
2174
2197
  g === e.value ? "bg-nvr-cyan/10 text-slate-900 dark:text-white" : "bg-white text-slate-500 hover:text-slate-700 dark:bg-slate-900 dark:text-slate-400 dark:hover:text-slate-200"
@@ -2189,10 +2212,10 @@ function rd({
2189
2212
  {
2190
2213
  type: "button",
2191
2214
  onClick: () => Ue(e.value),
2192
- className: E(
2215
+ className: q(
2193
2216
  "flex h-8 items-center px-3 text-[12px] font-medium transition-colors",
2194
2217
  t > 0 && "border-l border-slate-200 dark:border-border",
2195
- C === e.value ? "bg-nvr-cyan/10 text-slate-900 dark:text-white" : "bg-white text-slate-500 hover:text-slate-700 dark:bg-slate-900 dark:text-slate-400 dark:hover:text-slate-200"
2218
+ S === e.value ? "bg-nvr-cyan/10 text-slate-900 dark:text-white" : "bg-white text-slate-500 hover:text-slate-700 dark:bg-slate-900 dark:text-slate-400 dark:hover:text-slate-200"
2196
2219
  ),
2197
2220
  children: e.label
2198
2221
  },
@@ -2203,58 +2226,58 @@ function rd({
2203
2226
  "button",
2204
2227
  {
2205
2228
  type: "button",
2206
- "aria-pressed": _.unseen === "yes",
2229
+ "aria-pressed": w.unseen === "yes",
2207
2230
  "data-queue-unseen-filter": !0,
2208
2231
  title: "Only records someone else changed since you last opened them",
2209
2232
  onClick: () => Q((e) => {
2210
2233
  const t = { ...e };
2211
2234
  return t.unseen === "yes" ? delete t.unseen : t.unseen = "yes", t;
2212
2235
  }),
2213
- className: `flex h-8 items-center gap-1.5 rounded-full border px-2.5 text-[12px] font-medium transition-colors ${_.unseen === "yes" ? "border-nvr-cyan/40 bg-[#f2fdff] text-nvr-navy dark:border-nvr-cyan/40 dark:bg-[#20303a] dark:text-nvr-cyan" : "border-slate-200 bg-white text-slate-600 hover:border-slate-300 dark:border-border dark:bg-card dark:text-slate-300"}`,
2236
+ className: `flex h-8 items-center gap-1.5 rounded-full border px-2.5 text-[12px] font-medium transition-colors ${w.unseen === "yes" ? "border-nvr-cyan/40 bg-[#f2fdff] text-nvr-navy dark:border-nvr-cyan/40 dark:bg-[#20303a] dark:text-nvr-cyan" : "border-slate-200 bg-white text-slate-600 hover:border-slate-300 dark:border-border dark:bg-card dark:text-slate-300"}`,
2214
2237
  children: [
2215
2238
  /* @__PURE__ */ a("span", { className: "h-2 w-2 rounded-full bg-nvr-cyan" }),
2216
2239
  "Unseen changes"
2217
2240
  ]
2218
2241
  }
2219
2242
  ),
2220
- Xe && /* @__PURE__ */ d(
2243
+ Ze && /* @__PURE__ */ d(
2221
2244
  "button",
2222
2245
  {
2223
2246
  type: "button",
2224
- "aria-pressed": _.addendums === "active",
2247
+ "aria-pressed": w.addendums === "active",
2225
2248
  title: "Only records with an addendum still in review",
2226
2249
  onClick: () => Q((e) => {
2227
2250
  const t = { ...e };
2228
2251
  return t.addendums === "active" ? delete t.addendums : t.addendums = "active", t;
2229
2252
  }),
2230
- className: `flex h-8 items-center gap-1.5 rounded-full border px-2.5 text-[12px] font-medium transition-colors ${_.addendums === "active" ? "border-amber-400 bg-amber-50 text-amber-800 dark:border-amber-500/60 dark:bg-amber-500/10 dark:text-amber-300" : "border-slate-200 bg-white text-slate-600 hover:border-slate-300 dark:border-border dark:bg-card dark:text-slate-300"}`,
2253
+ className: `flex h-8 items-center gap-1.5 rounded-full border px-2.5 text-[12px] font-medium transition-colors ${w.addendums === "active" ? "border-amber-400 bg-amber-50 text-amber-800 dark:border-amber-500/60 dark:bg-amber-500/10 dark:text-amber-300" : "border-slate-200 bg-white text-slate-600 hover:border-slate-300 dark:border-border dark:bg-card dark:text-slate-300"}`,
2231
2254
  children: [
2232
- /* @__PURE__ */ a(ho, { className: "h-3.5 w-3.5" }),
2255
+ /* @__PURE__ */ a(go, { className: "h-3.5 w-3.5" }),
2233
2256
  "Active addendums"
2234
2257
  ]
2235
2258
  }
2236
2259
  ),
2237
- _e && /* @__PURE__ */ a(
2238
- js,
2260
+ Ne && /* @__PURE__ */ a(
2261
+ Vs,
2239
2262
  {
2240
2263
  label: T("integrations", "Integrations"),
2241
- value: _.integrations,
2264
+ value: w.integrations,
2242
2265
  onChange: (e) => Q((t) => {
2243
2266
  const n = { ...t };
2244
2267
  return e ? n.integrations = e : delete n.integrations, n;
2245
2268
  })
2246
2269
  }
2247
2270
  ),
2248
- /* @__PURE__ */ a(Xs, { className: "h-8" }),
2249
- /* @__PURE__ */ a(Ds, {}),
2271
+ /* @__PURE__ */ a(ti, { className: "h-8" }),
2272
+ /* @__PURE__ */ a(Ms, {}),
2250
2273
  sn > 0 && /* @__PURE__ */ d(
2251
2274
  "button",
2252
2275
  {
2253
2276
  type: "button",
2254
- onClick: ul,
2277
+ onClick: ml,
2255
2278
  className: "nvr-pop-in flex h-8 items-center gap-1 rounded-full border border-nvr-cyan/40 bg-nvr-cyan/[0.08] px-2.5 text-[12px] font-medium transition-colors text-nvr-navy hover:bg-nvr-cyan/20 dark:text-nvr-cyan",
2256
2279
  children: [
2257
- /* @__PURE__ */ a(fo, { className: "h-3 w-3" }),
2280
+ /* @__PURE__ */ a(xo, { className: "h-3 w-3" }),
2258
2281
  sn,
2259
2282
  " update",
2260
2283
  sn === 1 ? "" : "s",
@@ -2263,31 +2286,31 @@ function rd({
2263
2286
  }
2264
2287
  ),
2265
2288
  /* @__PURE__ */ d("div", { className: "ml-auto flex flex-wrap items-center gap-2", children: [
2266
- C === "table" && /* @__PURE__ */ d(rt, { children: [
2267
- /* @__PURE__ */ a(at, { asChild: !0, children: /* @__PURE__ */ d(
2289
+ S === "table" && /* @__PURE__ */ d(at, { children: [
2290
+ /* @__PURE__ */ a(lt, { asChild: !0, children: /* @__PURE__ */ d(
2268
2291
  "button",
2269
2292
  {
2270
2293
  type: "button",
2271
- className: E(
2294
+ className: q(
2272
2295
  "flex h-8 items-center gap-1 rounded-md border px-2.5 text-[12px] font-medium",
2273
2296
  $ ? "border-nvr-cyan/40 bg-nvr-cyan/10 text-slate-900 dark:text-white" : "border-slate-200 text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800"
2274
2297
  ),
2275
2298
  children: [
2276
- /* @__PURE__ */ a(_a, { className: "h-3.5 w-3.5" }),
2277
- $ ? `Group: ${((ua = ra.find((e) => e.value === $)) == null ? void 0 : ua.label) ?? $}` : "Group"
2299
+ /* @__PURE__ */ a(Na, { className: "h-3.5 w-3.5" }),
2300
+ $ ? `Group: ${((ma = aa.find((e) => e.value === $)) == null ? void 0 : ma.label) ?? $}` : "Group"
2278
2301
  ]
2279
2302
  }
2280
2303
  ) }),
2281
- /* @__PURE__ */ a(lt, { className: "w-[200px] p-0", align: "start", children: /* @__PURE__ */ d(Ra, { children: [
2282
- /* @__PURE__ */ a(ai, { placeholder: "Group by…", className: "h-8 text-[12px]" }),
2283
- /* @__PURE__ */ d(Ea, { children: [
2284
- /* @__PURE__ */ a(li, { children: "No attribute found." }),
2285
- /* @__PURE__ */ a(Ft, { value: "__none__", onSelect: () => ot(null), children: "None" }),
2286
- ra.map((e) => /* @__PURE__ */ a(
2304
+ /* @__PURE__ */ a(ot, { className: "w-[200px] p-0", align: "start", children: /* @__PURE__ */ d(Ea, { children: [
2305
+ /* @__PURE__ */ a(si, { placeholder: "Group by…", className: "h-8 text-[12px]" }),
2306
+ /* @__PURE__ */ d(La, { children: [
2307
+ /* @__PURE__ */ a(ii, { children: "No attribute found." }),
2308
+ /* @__PURE__ */ a(Ft, { value: "__none__", onSelect: () => st(null), children: "None" }),
2309
+ aa.map((e) => /* @__PURE__ */ a(
2287
2310
  Ft,
2288
2311
  {
2289
2312
  value: e.label,
2290
- onSelect: () => ot(e.value),
2313
+ onSelect: () => st(e.value),
2291
2314
  children: e.label
2292
2315
  },
2293
2316
  e.value
@@ -2295,115 +2318,115 @@ function rd({
2295
2318
  ] })
2296
2319
  ] }) })
2297
2320
  ] }),
2298
- C === "table" && /* @__PURE__ */ d(
2321
+ S === "table" && /* @__PURE__ */ d(
2299
2322
  "button",
2300
2323
  {
2301
2324
  type: "button",
2302
2325
  onClick: () => {
2303
2326
  Ie(I === "-priority" ? "" : "-priority"), A(1);
2304
2327
  },
2305
- className: E(
2328
+ className: q(
2306
2329
  "flex h-8 items-center gap-1 rounded-md border px-2.5 text-[12px] font-medium",
2307
2330
  I === "-priority" ? "border-nvr-cyan/40 bg-nvr-cyan/10 text-slate-900 dark:text-white" : "border-slate-200 text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800"
2308
2331
  ),
2309
2332
  children: [
2310
- /* @__PURE__ */ a(go, { className: "h-3.5 w-3.5" }),
2333
+ /* @__PURE__ */ a(yo, { className: "h-3.5 w-3.5" }),
2311
2334
  "Priority"
2312
2335
  ]
2313
2336
  }
2314
2337
  ),
2315
- C === "table" && $ && oe && /* @__PURE__ */ a(
2338
+ S === "table" && $ && oe && /* @__PURE__ */ a(
2316
2339
  "button",
2317
2340
  {
2318
2341
  type: "button",
2319
2342
  onClick: () => an(
2320
- ke.size > 0 ? /* @__PURE__ */ new Set() : new Set(oe.map((e) => e.key))
2343
+ ve.size > 0 ? /* @__PURE__ */ new Set() : new Set(oe.map((e) => e.key))
2321
2344
  ),
2322
2345
  className: "flex h-8 items-center rounded-md px-2 text-[12px] text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200",
2323
- children: ke.size > 0 ? "Expand all" : "Collapse all"
2346
+ children: ve.size > 0 ? "Expand all" : "Collapse all"
2324
2347
  }
2325
2348
  ),
2326
- C === "kanban" && /* @__PURE__ */ d(rt, { children: [
2327
- /* @__PURE__ */ a(at, { asChild: !0, children: /* @__PURE__ */ d(
2349
+ S === "kanban" && /* @__PURE__ */ d(at, { children: [
2350
+ /* @__PURE__ */ a(lt, { asChild: !0, children: /* @__PURE__ */ d(
2328
2351
  "button",
2329
2352
  {
2330
2353
  type: "button",
2331
- className: E(
2354
+ className: q(
2332
2355
  "flex h-8 items-center gap-1 rounded-md border px-2.5 text-[12px] font-medium",
2333
- st ? "border-nvr-cyan/40 bg-nvr-cyan/10 text-slate-900 dark:text-white" : "border-slate-200 text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800"
2356
+ it ? "border-nvr-cyan/40 bg-nvr-cyan/10 text-slate-900 dark:text-white" : "border-slate-200 text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800"
2334
2357
  ),
2335
2358
  children: [
2336
- /* @__PURE__ */ a(_a, { className: "h-3.5 w-3.5" }),
2337
- st ? `Lanes: ${st === "collection" ? "Collection" : "Owner"}` : "Lanes"
2359
+ /* @__PURE__ */ a(Na, { className: "h-3.5 w-3.5" }),
2360
+ it ? `Lanes: ${it === "collection" ? "Collection" : "Owner"}` : "Lanes"
2338
2361
  ]
2339
2362
  }
2340
2363
  ) }),
2341
- /* @__PURE__ */ a(lt, { className: "w-[180px] p-0", align: "start", children: /* @__PURE__ */ a(Ra, { children: /* @__PURE__ */ d(Ea, { children: [
2364
+ /* @__PURE__ */ a(ot, { className: "w-[180px] p-0", align: "start", children: /* @__PURE__ */ a(Ea, { children: /* @__PURE__ */ d(La, { children: [
2342
2365
  /* @__PURE__ */ a(Ft, { value: "none", onSelect: () => ln(null), children: "None" }),
2343
2366
  /* @__PURE__ */ a(Ft, { value: "collection", onSelect: () => ln("collection"), children: "Collection" }),
2344
2367
  /* @__PURE__ */ a(Ft, { value: "owner", onSelect: () => ln("owners"), children: "Owner" })
2345
2368
  ] }) }) })
2346
2369
  ] }),
2347
- G && c && /* @__PURE__ */ d(
2370
+ W && c && /* @__PURE__ */ d(
2348
2371
  "button",
2349
2372
  {
2350
2373
  type: "button",
2351
- onClick: () => G({ id: c.id, name: c.name }),
2374
+ onClick: () => W({ id: c.id, name: c.name }),
2352
2375
  "data-tip": "Open Ask AI with a question about this queue",
2353
2376
  className: "flex h-8 items-center gap-1 rounded-md border border-slate-200 px-2.5 text-[12px] font-medium text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800",
2354
2377
  "data-queue-ask": !0,
2355
2378
  children: [
2356
- /* @__PURE__ */ a(xo, { className: "h-3.5 w-3.5 text-nvr-cyan" }),
2379
+ /* @__PURE__ */ a(ko, { className: "h-3.5 w-3.5 text-nvr-cyan" }),
2357
2380
  "Ask about this queue"
2358
2381
  ]
2359
2382
  }
2360
2383
  ),
2361
- /* @__PURE__ */ a(Gs, { listKey: `queue:${l}`, getState: _l }),
2384
+ /* @__PURE__ */ a(Ys, { listKey: `queue:${l}`, getState: Nl }),
2362
2385
  /* @__PURE__ */ d(
2363
2386
  "button",
2364
2387
  {
2365
2388
  type: "button",
2366
- onClick: () => Ga((e) => !e),
2367
- "aria-expanded": ct,
2389
+ onClick: () => Wa((e) => !e),
2390
+ "aria-expanded": dt,
2368
2391
  title: "Trends, aging, pace and states",
2369
- className: E(
2392
+ className: q(
2370
2393
  "flex h-8 items-center gap-1 rounded-md border px-2.5 text-[12px] font-medium",
2371
- ct ? "border-nvr-cyan/40 bg-nvr-cyan/10 text-slate-900 dark:text-white" : "border-slate-200 text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800"
2394
+ dt ? "border-nvr-cyan/40 bg-nvr-cyan/10 text-slate-900 dark:text-white" : "border-slate-200 text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800"
2372
2395
  ),
2373
2396
  "data-queue-insights-toggle": !0,
2374
2397
  children: [
2375
- /* @__PURE__ */ a(yo, { className: "h-3.5 w-3.5" }),
2398
+ /* @__PURE__ */ a(vo, { className: "h-3.5 w-3.5" }),
2376
2399
  "Insights"
2377
2400
  ]
2378
2401
  }
2379
2402
  ),
2380
- C === "table" && /* @__PURE__ */ d(rt, { children: [
2381
- /* @__PURE__ */ a(at, { asChild: !0, children: /* @__PURE__ */ d(
2403
+ S === "table" && /* @__PURE__ */ d(at, { children: [
2404
+ /* @__PURE__ */ a(lt, { asChild: !0, children: /* @__PURE__ */ d(
2382
2405
  "button",
2383
2406
  {
2384
2407
  type: "button",
2385
2408
  className: "flex h-8 items-center gap-1 rounded-md border border-slate-200 px-2.5 text-[12px] font-medium text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800",
2386
2409
  children: [
2387
- /* @__PURE__ */ a(ko, { className: "h-3.5 w-3.5" }),
2410
+ /* @__PURE__ */ a(wo, { className: "h-3.5 w-3.5" }),
2388
2411
  "Columns"
2389
2412
  ]
2390
2413
  }
2391
2414
  ) }),
2392
- /* @__PURE__ */ a(lt, { className: "w-[220px] p-2", align: "end", children: /* @__PURE__ */ a(
2393
- lo,
2415
+ /* @__PURE__ */ a(ot, { className: "w-[220px] p-2", align: "end", children: /* @__PURE__ */ a(
2416
+ so,
2394
2417
  {
2395
- sensors: Wl,
2396
- collisionDetection: oo,
2397
- onDragEnd: Hl,
2398
- children: /* @__PURE__ */ a(so, { items: ta, strategy: io, children: /* @__PURE__ */ a("div", { className: "space-y-1.5", children: ta.map((e) => {
2399
- const t = Qn.find((n) => n.key === e);
2418
+ sensors: Hl,
2419
+ collisionDetection: io,
2420
+ onDragEnd: Yl,
2421
+ children: /* @__PURE__ */ a(co, { items: na, strategy: uo, children: /* @__PURE__ */ a("div", { className: "space-y-1.5", children: na.map((e) => {
2422
+ const t = Bn.find((n) => n.key === e);
2400
2423
  return /* @__PURE__ */ a(
2401
- Fi,
2424
+ Li,
2402
2425
  {
2403
2426
  id: e,
2404
2427
  label: typeof (t == null ? void 0 : t.header) == "string" ? t.header : e,
2405
2428
  checked: te.has(e),
2406
- onCheckedChange: () => eo(e)
2429
+ onCheckedChange: () => no(e)
2407
2430
  },
2408
2431
  e
2409
2432
  );
@@ -2411,28 +2434,28 @@ function rd({
2411
2434
  }
2412
2435
  ) })
2413
2436
  ] }),
2414
- C === "table" && Pt && /* @__PURE__ */ d(
2437
+ S === "table" && Kt && /* @__PURE__ */ d(
2415
2438
  "button",
2416
2439
  {
2417
2440
  type: "button",
2418
- onClick: Fl,
2441
+ onClick: Tl,
2419
2442
  "aria-pressed": ee,
2420
2443
  "data-queue-bulk-mode": ee ? "on" : "off",
2421
2444
  "data-tip": ee ? "Leave bulk mode — clears the selection and turns row actions back on" : "Select rows to act on several at once",
2422
2445
  className: `flex h-8 items-center gap-1.5 rounded-md border px-2.5 text-[12px] font-medium shadow-sm ${ee ? "border-nvr-cyan bg-nvr-cyan/10 text-slate-800 dark:text-slate-100" : "border-slate-200 bg-white text-slate-500 hover:bg-slate-50 hover:text-slate-700 dark:border-border dark:bg-card dark:text-slate-400 dark:hover:bg-muted"}`,
2423
2446
  children: [
2424
- /* @__PURE__ */ a(vo, { className: "h-3.5 w-3.5" }),
2447
+ /* @__PURE__ */ a(_o, { className: "h-3.5 w-3.5" }),
2425
2448
  ee ? "Done" : "Bulk select"
2426
2449
  ]
2427
2450
  }
2428
2451
  ),
2429
- C === "table" && /* @__PURE__ */ a(
2452
+ S === "table" && /* @__PURE__ */ a(
2430
2453
  "button",
2431
2454
  {
2432
2455
  type: "button",
2433
2456
  onClick: () => {
2434
2457
  const e = Rt === "compact" ? "comfortable" : "compact";
2435
- Aa(e);
2458
+ Oa(e);
2436
2459
  try {
2437
2460
  localStorage.setItem("nvr_table_density", e);
2438
2461
  } catch {
@@ -2441,23 +2464,23 @@ function rd({
2441
2464
  "aria-label": "Row density",
2442
2465
  title: Rt === "compact" ? "Switch to comfortable rows" : "Switch to compact rows",
2443
2466
  className: "flex h-8 w-8 items-center justify-center rounded-md border border-slate-200 bg-white text-slate-500 shadow-sm hover:bg-slate-50 hover:text-slate-700 dark:border-border dark:bg-card dark:text-slate-400 dark:hover:bg-muted",
2444
- children: Rt === "compact" ? /* @__PURE__ */ a(wo, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ a(_o, { className: "h-3.5 w-3.5" })
2467
+ children: Rt === "compact" ? /* @__PURE__ */ a(No, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ a(So, { className: "h-3.5 w-3.5" })
2445
2468
  }
2446
2469
  ),
2447
- C === "table" && Ma && se.length > 0 && /* @__PURE__ */ d(
2470
+ S === "table" && Qa && se.length > 0 && /* @__PURE__ */ d(
2448
2471
  "button",
2449
2472
  {
2450
2473
  type: "button",
2451
- onClick: () => Ar(),
2474
+ onClick: () => Or(),
2452
2475
  className: "flex h-8 items-center gap-1.5 rounded-md bg-nvr-cyan px-3 text-[12px] font-semibold text-white hover:brightness-110",
2453
2476
  children: [
2454
- /* @__PURE__ */ a(No, { className: "h-3 w-3 fill-current" }),
2477
+ /* @__PURE__ */ a(Co, { className: "h-3 w-3 fill-current" }),
2455
2478
  "Work Next"
2456
2479
  ]
2457
2480
  }
2458
2481
  ),
2459
- !hn && re.length === 1 && (Kt ? /* @__PURE__ */ d(rt, { children: [
2460
- /* @__PURE__ */ a(at, { asChild: !0, children: /* @__PURE__ */ d(
2482
+ !hn && re.length === 1 && (Pt ? /* @__PURE__ */ d(at, { children: [
2483
+ /* @__PURE__ */ a(lt, { asChild: !0, children: /* @__PURE__ */ d(
2461
2484
  "button",
2462
2485
  {
2463
2486
  type: "button",
@@ -2465,12 +2488,12 @@ function rd({
2465
2488
  children: [
2466
2489
  /* @__PURE__ */ a(nn, { className: "h-3.5 w-3.5" }),
2467
2490
  "New ",
2468
- Gn(re[0]),
2469
- /* @__PURE__ */ a(Na, { className: "h-3 w-3 opacity-60" })
2491
+ Wn(re[0]),
2492
+ /* @__PURE__ */ a(Sa, { className: "h-3 w-3 opacity-60" })
2470
2493
  ]
2471
2494
  }
2472
2495
  ) }),
2473
- /* @__PURE__ */ d(lt, { align: "end", className: "w-60 p-1", children: [
2496
+ /* @__PURE__ */ d(ot, { align: "end", className: "w-60 p-1", children: [
2474
2497
  /* @__PURE__ */ d(
2475
2498
  "button",
2476
2499
  {
@@ -2483,12 +2506,12 @@ function rd({
2483
2506
  }),
2484
2507
  className: "flex w-full items-center rounded px-2 py-1.5 text-left text-[12px] text-slate-700 hover:bg-slate-100 dark:text-slate-200 dark:hover:bg-muted",
2485
2508
  children: [
2486
- ((ma = Kt.active) == null ? void 0 : ma.create_label) ?? ((pa = Kt.active) == null ? void 0 : pa.name) ?? "Default layout",
2509
+ ((pa = Pt.active) == null ? void 0 : pa.create_label) ?? ((ba = Pt.active) == null ? void 0 : ba.name) ?? "Default layout",
2487
2510
  /* @__PURE__ */ a("span", { className: "ml-auto pl-3 text-[10px] text-slate-400 dark:text-slate-500", children: "default" })
2488
2511
  ]
2489
2512
  }
2490
2513
  ),
2491
- Kt.options.map((e) => /* @__PURE__ */ a(
2514
+ Pt.options.map((e) => /* @__PURE__ */ a(
2492
2515
  "button",
2493
2516
  {
2494
2517
  type: "button",
@@ -2518,12 +2541,12 @@ function rd({
2518
2541
  children: [
2519
2542
  /* @__PURE__ */ a(nn, { className: "h-3.5 w-3.5" }),
2520
2543
  "New ",
2521
- Gn(re[0])
2544
+ Wn(re[0])
2522
2545
  ]
2523
2546
  }
2524
2547
  )),
2525
- !hn && re.length > 1 && /* @__PURE__ */ d(rt, { children: [
2526
- /* @__PURE__ */ a(at, { asChild: !0, children: /* @__PURE__ */ d(
2548
+ !hn && re.length > 1 && /* @__PURE__ */ d(at, { children: [
2549
+ /* @__PURE__ */ a(lt, { asChild: !0, children: /* @__PURE__ */ d(
2527
2550
  "button",
2528
2551
  {
2529
2552
  type: "button",
@@ -2531,11 +2554,11 @@ function rd({
2531
2554
  children: [
2532
2555
  /* @__PURE__ */ a(nn, { className: "h-3.5 w-3.5" }),
2533
2556
  "New",
2534
- /* @__PURE__ */ a(Na, { className: "h-3 w-3 opacity-60" })
2557
+ /* @__PURE__ */ a(Sa, { className: "h-3 w-3 opacity-60" })
2535
2558
  ]
2536
2559
  }
2537
2560
  ) }),
2538
- /* @__PURE__ */ a(lt, { align: "end", className: "w-56 p-1", children: re.map((e) => /* @__PURE__ */ d(
2561
+ /* @__PURE__ */ a(ot, { align: "end", className: "w-56 p-1", children: re.map((e) => /* @__PURE__ */ d(
2539
2562
  "button",
2540
2563
  {
2541
2564
  type: "button",
@@ -2547,17 +2570,17 @@ function rd({
2547
2570
  className: "flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-[12px] text-slate-700 hover:bg-slate-100 dark:text-slate-200 dark:hover:bg-muted",
2548
2571
  children: [
2549
2572
  /* @__PURE__ */ a(nn, { className: "h-3 w-3 opacity-60" }),
2550
- Gn(e)
2573
+ Wn(e)
2551
2574
  ]
2552
2575
  },
2553
2576
  e
2554
2577
  )) })
2555
2578
  ] }),
2556
- !hn && Ve && ye && /* @__PURE__ */ a(
2557
- Ms,
2579
+ !hn && Ve && ke && /* @__PURE__ */ a(
2580
+ js,
2558
2581
  {
2559
2582
  collection: Ve,
2560
- onParsed: (e, t) => ye(`/collections/${Ve}/new`, {
2583
+ onParsed: (e, t) => ke(`/collections/${Ve}/new`, {
2561
2584
  state: { importResult: e, importTemplateId: t.id }
2562
2585
  })
2563
2586
  }
@@ -2566,53 +2589,55 @@ function rd({
2566
2589
  ]
2567
2590
  }
2568
2591
  ),
2569
- ct && /* @__PURE__ */ d(
2592
+ dt && /* @__PURE__ */ d(
2570
2593
  "div",
2571
2594
  {
2572
2595
  className: "flex flex-wrap items-center gap-x-4 gap-y-2 border-b border-slate-100 bg-white px-4 py-2.5 dark:border-slate-800 dark:bg-slate-900",
2573
2596
  "data-queue-insights": !0,
2574
2597
  children: [
2575
- /* @__PURE__ */ d("div", { className: "nvr-stagger-direct flex divide-x divide-slate-200 overflow-hidden rounded-lg border border-slate-200 bg-white dark:divide-border dark:border-border dark:bg-card", children: [
2598
+ /* @__PURE__ */ d("div", { className: "nvr-stagger-direct flex max-w-full flex-wrap gap-px overflow-hidden rounded-lg border border-slate-200 bg-slate-200 dark:border-border dark:bg-border", children: [
2576
2599
  /* @__PURE__ */ a(
2577
2600
  Tt,
2578
2601
  {
2579
2602
  label: "Total",
2580
2603
  count: (x == null ? void 0 : x.total) ?? 0,
2581
2604
  filteredCount: z ? z.total : null,
2582
- active: Object.values(_).every(Ia) && g === "all",
2605
+ active: Object.values(w).every(Va) && g === "all",
2583
2606
  isLoading: He,
2584
- ...ft("total"),
2585
- onClick: Va
2586
- }
2587
- ),
2588
- /* @__PURE__ */ a(
2589
- Tt,
2590
- {
2591
- label: "Warning",
2592
- count: (x == null ? void 0 : x.sla_warning) ?? 0,
2593
- filteredCount: z ? z.sla_warning : null,
2594
- tone: "amber",
2595
- active: _.sla_status === "warning",
2596
- isLoading: He,
2597
- deltaBadIsUp: !0,
2598
- ...ft("sla_warning"),
2599
- onClick: () => Ge("sla_status", "warning")
2600
- }
2601
- ),
2602
- /* @__PURE__ */ a(
2603
- Tt,
2604
- {
2605
- label: "Breached",
2606
- count: (x == null ? void 0 : x.sla_breached) ?? 0,
2607
- filteredCount: z ? z.sla_breached : null,
2608
- tone: "red",
2609
- active: _.sla_status === "breached",
2610
- isLoading: He,
2611
- deltaBadIsUp: !0,
2612
- ...ft("sla_breached"),
2613
- onClick: () => Ge("sla_status", "breached")
2607
+ ...ht("total"),
2608
+ onClick: Ga
2614
2609
  }
2615
2610
  ),
2611
+ eo && /* @__PURE__ */ d(ye, { children: [
2612
+ /* @__PURE__ */ a(
2613
+ Tt,
2614
+ {
2615
+ label: "Warning",
2616
+ count: (x == null ? void 0 : x.sla_warning) ?? 0,
2617
+ filteredCount: z ? z.sla_warning : null,
2618
+ tone: "amber",
2619
+ active: w.sla_status === "warning",
2620
+ isLoading: He,
2621
+ deltaBadIsUp: !0,
2622
+ ...ht("sla_warning"),
2623
+ onClick: () => Ge("sla_status", "warning")
2624
+ }
2625
+ ),
2626
+ /* @__PURE__ */ a(
2627
+ Tt,
2628
+ {
2629
+ label: "Breached",
2630
+ count: (x == null ? void 0 : x.sla_breached) ?? 0,
2631
+ filteredCount: z ? z.sla_breached : null,
2632
+ tone: "red",
2633
+ active: w.sla_status === "breached",
2634
+ isLoading: He,
2635
+ deltaBadIsUp: !0,
2636
+ ...ht("sla_breached"),
2637
+ onClick: () => Ge("sla_status", "breached")
2638
+ }
2639
+ )
2640
+ ] }),
2616
2641
  /* @__PURE__ */ a(
2617
2642
  Tt,
2618
2643
  {
@@ -2620,10 +2645,10 @@ function rd({
2620
2645
  count: (x == null ? void 0 : x.at_risk) ?? 0,
2621
2646
  filteredCount: z ? z.at_risk : null,
2622
2647
  tone: "red",
2623
- active: _.at_risk === "yes",
2648
+ active: w.at_risk === "yes",
2624
2649
  isLoading: He,
2625
2650
  deltaBadIsUp: !0,
2626
- ...ft("at_risk"),
2651
+ ...ht("at_risk"),
2627
2652
  onClick: () => Ge("at_risk", "yes")
2628
2653
  }
2629
2654
  ),
@@ -2636,7 +2661,7 @@ function rd({
2636
2661
  active: g === "unowned",
2637
2662
  isLoading: He,
2638
2663
  deltaBadIsUp: !0,
2639
- ...ft("unowned"),
2664
+ ...ht("unowned"),
2640
2665
  onClick: () => {
2641
2666
  Y(g === "unowned" ? "all" : "unowned"), A(1);
2642
2667
  }
@@ -2658,9 +2683,9 @@ function rd({
2658
2683
  aging_hours: r.aging_hours === t ? "" : t
2659
2684
  })), A(1);
2660
2685
  },
2661
- className: E(
2686
+ className: q(
2662
2687
  "rounded-md border px-2 py-1 tabular-nums transition-colors",
2663
- _.aging_hours === t ? "border-nvr-cyan bg-nvr-cyan/10 font-medium text-[#0e7490] dark:text-[#67e8f9]" : "border-slate-200 text-slate-500 hover:bg-muted dark:border-border dark:text-muted-foreground",
2688
+ w.aging_hours === t ? "border-nvr-cyan bg-nvr-cyan/10 font-medium text-[#0e7490] dark:text-[#67e8f9]" : "border-slate-200 text-slate-500 hover:bg-muted dark:border-border dark:text-muted-foreground",
2664
2689
  n === 0 && "opacity-45"
2665
2690
  ),
2666
2691
  children: [
@@ -2677,7 +2702,7 @@ function rd({
2677
2702
  "data-queue-burndown": !0,
2678
2703
  className: `inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-[11.5px] font-medium ${xe.dir === "down" ? "border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-500/30 dark:bg-emerald-500/10 dark:text-emerald-400" : xe.dir === "up" ? "border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-400" : "border-slate-200 bg-slate-50 text-slate-500 dark:border-border dark:bg-muted dark:text-muted-foreground"}`,
2679
2704
  "data-tip": "Average net change per day over the last 14 days of snapshots",
2680
- children: xe.dir === "down" ? /* @__PURE__ */ d(qe, { children: [
2705
+ children: xe.dir === "down" ? /* @__PURE__ */ d(ye, { children: [
2681
2706
  "▼ ",
2682
2707
  Math.abs(xe.pace).toFixed(1),
2683
2708
  "/day — clears in ~",
@@ -2685,24 +2710,24 @@ function rd({
2685
2710
  " day",
2686
2711
  xe.days === 1 ? "" : "s",
2687
2712
  " at this pace"
2688
- ] }) : xe.dir === "up" ? /* @__PURE__ */ d(qe, { children: [
2713
+ ] }) : xe.dir === "up" ? /* @__PURE__ */ d(ye, { children: [
2689
2714
  "▲ Growing ",
2690
2715
  xe.pace.toFixed(1),
2691
2716
  "/day"
2692
- ] }) : /* @__PURE__ */ a(qe, { children: "→ Holding steady" })
2717
+ ] }) : /* @__PURE__ */ a(ye, { children: "→ Holding steady" })
2693
2718
  }
2694
2719
  ),
2695
- Er.length > 0 && /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: Er.map(([e, t]) => {
2720
+ Lr.length > 0 && /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: Lr.map(([e, t]) => {
2696
2721
  var n;
2697
2722
  return /* @__PURE__ */ a(
2698
- qi,
2723
+ Ei,
2699
2724
  {
2700
2725
  label: Ae(e),
2701
2726
  count: t,
2702
2727
  filteredCount: z ? z.by_state[e] ?? 0 : null,
2703
- color: ((n = Ne[e]) == null ? void 0 : n.color) ?? null,
2704
- active: Ua.includes(e),
2705
- onClick: () => ja(e)
2728
+ color: ((n = Se[e]) == null ? void 0 : n.color) ?? null,
2729
+ active: Ia.includes(e),
2730
+ onClick: () => Ua(e)
2706
2731
  },
2707
2732
  e
2708
2733
  );
@@ -2710,11 +2735,11 @@ function rd({
2710
2735
  ]
2711
2736
  }
2712
2737
  ),
2713
- C !== "workload" && /* @__PURE__ */ a(
2714
- gi,
2738
+ S !== "workload" && /* @__PURE__ */ a(
2739
+ vi,
2715
2740
  {
2716
- defs: Xl,
2717
- values: _,
2741
+ defs: Zl,
2742
+ values: w,
2718
2743
  seededKeys: Ct,
2719
2744
  onApply: (e) => {
2720
2745
  Q((t) => ({ ...t, ...e })), A(1);
@@ -2722,7 +2747,7 @@ function rd({
2722
2747
  onClear: () => {
2723
2748
  Q({ ...me.current }), A(1);
2724
2749
  },
2725
- right: Zl
2750
+ right: to
2726
2751
  }
2727
2752
  ),
2728
2753
  /* @__PURE__ */ d(
@@ -2738,7 +2763,7 @@ function rd({
2738
2763
  className: "inline-flex h-6 items-center gap-1 rounded-full border border-nvr-cyan/40 bg-nvr-cyan/[0.06] px-2.5 text-[12px] text-slate-700 dark:text-slate-200",
2739
2764
  children: [
2740
2765
  "Your default ",
2741
- pr(Un),
2766
+ br(In),
2742
2767
  " filter is hiding",
2743
2768
  " ",
2744
2769
  be.toLocaleString("en-US"),
@@ -2749,7 +2774,7 @@ function rd({
2749
2774
  "button",
2750
2775
  {
2751
2776
  type: "button",
2752
- onClick: br,
2777
+ onClick: fr,
2753
2778
  className: "font-medium text-[#0284a8] underline-offset-2 hover:underline dark:text-nvr-cyan",
2754
2779
  children: "Show all"
2755
2780
  }
@@ -2757,7 +2782,7 @@ function rd({
2757
2782
  ]
2758
2783
  }
2759
2784
  ),
2760
- Array.isArray(_.owners) && _.owners.length > 0 && /* @__PURE__ */ d(
2785
+ Array.isArray(w.owners) && w.owners.length > 0 && /* @__PURE__ */ d(
2761
2786
  "span",
2762
2787
  {
2763
2788
  "data-queue-owner-filter": !0,
@@ -2765,7 +2790,7 @@ function rd({
2765
2790
  children: [
2766
2791
  "Owner:",
2767
2792
  " ",
2768
- _.owners.map(
2793
+ w.owners.map(
2769
2794
  (e) => {
2770
2795
  var t, n;
2771
2796
  return ((n = (t = i == null ? void 0 : i.available_values.owners) == null ? void 0 : t.find(
@@ -2792,27 +2817,27 @@ function rd({
2792
2817
  ]
2793
2818
  }
2794
2819
  ),
2795
- !((j == null ? void 0 : j.data) ?? []).some((e) => e.is_default) && /* @__PURE__ */ a(
2820
+ !((U == null ? void 0 : U.data) ?? []).some((e) => e.is_default) && /* @__PURE__ */ a(
2796
2821
  "button",
2797
2822
  {
2798
2823
  type: "button",
2799
- onClick: wl,
2824
+ onClick: _l,
2800
2825
  title: "Revert to the queue default (filters, columns and sort cleared)",
2801
- className: E(
2826
+ className: q(
2802
2827
  "inline-flex h-6 items-center rounded-full border px-2.5 text-[12px] transition-colors",
2803
- Ze == null ? "border-nvr-cyan/40 bg-nvr-cyan/10 text-slate-900 dark:text-white" : "border-slate-200 bg-white text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-300"
2828
+ et == null ? "border-nvr-cyan/40 bg-nvr-cyan/10 text-slate-900 dark:text-white" : "border-slate-200 bg-white text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-300"
2804
2829
  ),
2805
2830
  children: "Default"
2806
2831
  }
2807
2832
  ),
2808
- ((j == null ? void 0 : j.data) ?? []).map((e) => {
2833
+ ((U == null ? void 0 : U.data) ?? []).map((e) => {
2809
2834
  var t;
2810
2835
  return /* @__PURE__ */ d(
2811
2836
  "span",
2812
2837
  {
2813
- className: E(
2838
+ className: q(
2814
2839
  "group inline-flex h-6 items-center gap-1 rounded-full border px-2.5 text-[12px] transition-colors",
2815
- Ze === e.id ? "border-nvr-cyan/40 bg-nvr-cyan/10 text-slate-900 dark:text-white" : "border-slate-200 bg-white text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-300"
2840
+ et === e.id ? "border-nvr-cyan/40 bg-nvr-cyan/10 text-slate-900 dark:text-white" : "border-slate-200 bg-white text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-300"
2816
2841
  ),
2817
2842
  children: [
2818
2843
  /* @__PURE__ */ a(
@@ -2820,15 +2845,15 @@ function rd({
2820
2845
  {
2821
2846
  type: "button",
2822
2847
  title: ze === e.id ? "Your default view — click to revert to the general default" : "Set as your default view",
2823
- onClick: () => ql.mutate(ze === e.id ? null : e.id),
2824
- className: E(
2848
+ onClick: () => Fl.mutate(ze === e.id ? null : e.id),
2849
+ className: q(
2825
2850
  "shrink-0",
2826
2851
  ze === e.id ? "text-amber-400" : "text-slate-300 hover:text-amber-400 dark:text-slate-600"
2827
2852
  ),
2828
2853
  children: /* @__PURE__ */ a(
2829
- So,
2854
+ $o,
2830
2855
  {
2831
- className: E("h-3 w-3", ze === e.id && "fill-current"),
2856
+ className: q("h-3 w-3", ze === e.id && "fill-current"),
2832
2857
  "aria-label": ze === e.id ? "Default view" : "Set as default"
2833
2858
  }
2834
2859
  )
@@ -2842,50 +2867,50 @@ function rd({
2842
2867
  "button",
2843
2868
  {
2844
2869
  type: "button",
2845
- onClick: () => $l.mutate({ viewId: e.id, on: !e.is_default }),
2870
+ onClick: () => ql.mutate({ viewId: e.id, on: !e.is_default }),
2846
2871
  title: e.is_default ? "Queue default — click to unset" : "Set as the default view for everyone on this queue",
2847
- className: E(
2872
+ className: q(
2848
2873
  "shrink-0",
2849
2874
  e.is_default ? "text-nvr-cyan" : "invisible text-slate-300 hover:text-nvr-cyan group-hover:visible dark:text-slate-600"
2850
2875
  ),
2851
2876
  "aria-label": e.is_default ? "Unset queue default" : "Set queue default",
2852
- children: /* @__PURE__ */ a(Co, { className: E("h-3 w-3", e.is_default && "fill-current") })
2877
+ children: /* @__PURE__ */ a(qo, { className: q("h-3 w-3", e.is_default && "fill-current") })
2853
2878
  }
2854
2879
  ),
2855
- (e.user === N || De) && Ze === e.id && /* @__PURE__ */ a(
2880
+ (e.user === N || De) && et === e.id && /* @__PURE__ */ a(
2856
2881
  "button",
2857
2882
  {
2858
2883
  type: "button",
2859
- onClick: () => Ke.mutate(e),
2860
- disabled: Ke.isPending,
2884
+ onClick: () => Pe.mutate(e),
2885
+ disabled: Pe.isPending,
2861
2886
  title: "Update this view with the current filters, scope and sort",
2862
2887
  className: "shrink-0 text-slate-400 hover:text-nvr-navy disabled:opacity-50 dark:hover:text-nvr-cyan",
2863
2888
  "aria-label": `Update view ${e.name}`,
2864
- "data-view-update-state": Ke.isPending ? "saving" : Qr === e.id ? "saved" : "idle",
2865
- children: Ke.isPending && ((t = Ke.variables) == null ? void 0 : t.id) === e.id ? /* @__PURE__ */ a($o, { className: "h-3 w-3 animate-spin" }) : Qr === e.id ? /* @__PURE__ */ a(
2866
- qo,
2889
+ "data-view-update-state": Pe.isPending ? "saving" : Br === e.id ? "saved" : "idle",
2890
+ children: Pe.isPending && ((t = Pe.variables) == null ? void 0 : t.id) === e.id ? /* @__PURE__ */ a(Fo, { className: "h-3 w-3 animate-spin" }) : Br === e.id ? /* @__PURE__ */ a(
2891
+ To,
2867
2892
  {
2868
2893
  className: "h-3 w-3 text-emerald-600 dark:text-emerald-400",
2869
2894
  strokeWidth: 3
2870
2895
  }
2871
- ) : /* @__PURE__ */ a(Fo, { className: "h-3 w-3" })
2896
+ ) : /* @__PURE__ */ a(Ro, { className: "h-3 w-3" })
2872
2897
  }
2873
2898
  ),
2874
- Ze === e.id && /* @__PURE__ */ a(
2899
+ et === e.id && /* @__PURE__ */ a(
2875
2900
  "button",
2876
2901
  {
2877
2902
  type: "button",
2878
- onClick: () => Ha(e.id),
2903
+ onClick: () => Ya(e.id),
2879
2904
  title: Mt(e.id) ? "Subscribed to new arrivals in this view — click to unsubscribe" : "Notify me when items enter this view (checked every 5 min)",
2880
- className: E(
2905
+ className: q(
2881
2906
  "shrink-0",
2882
2907
  Mt(e.id) ? "text-nvr-cyan" : "invisible text-slate-300 hover:text-nvr-cyan group-hover:visible dark:text-slate-600"
2883
2908
  ),
2884
2909
  "aria-label": `Subscribe to view ${e.name}`,
2885
- children: /* @__PURE__ */ a(To, { className: E("h-3 w-3", Mt(e.id) && "fill-current") })
2910
+ children: /* @__PURE__ */ a(Eo, { className: q("h-3 w-3", Mt(e.id) && "fill-current") })
2886
2911
  }
2887
2912
  ),
2888
- e.user === N && (An === e.id ? /* @__PURE__ */ d(
2913
+ e.user === N && (On === e.id ? /* @__PURE__ */ d(
2889
2914
  "span",
2890
2915
  {
2891
2916
  className: "flex shrink-0 items-center gap-1",
@@ -2896,8 +2921,8 @@ function rd({
2896
2921
  "button",
2897
2922
  {
2898
2923
  type: "button",
2899
- onClick: () => jr.mutate(e.id),
2900
- disabled: jr.isPending,
2924
+ onClick: () => Ur.mutate(e.id),
2925
+ disabled: Ur.isPending,
2901
2926
  className: "font-semibold text-red-600 hover:underline disabled:opacity-50 dark:text-red-400",
2902
2927
  "aria-label": `Yes, delete view ${e.name}`,
2903
2928
  children: "Yes"
@@ -2930,8 +2955,8 @@ function rd({
2930
2955
  e.id
2931
2956
  );
2932
2957
  }),
2933
- /* @__PURE__ */ d(rt, { open: vl, onOpenChange: Ln, children: [
2934
- /* @__PURE__ */ a(at, { asChild: !0, children: /* @__PURE__ */ a(
2958
+ /* @__PURE__ */ d(at, { open: wl, onOpenChange: An, children: [
2959
+ /* @__PURE__ */ a(lt, { asChild: !0, children: /* @__PURE__ */ a(
2935
2960
  "button",
2936
2961
  {
2937
2962
  type: "button",
@@ -2940,16 +2965,16 @@ function rd({
2940
2965
  children: "☆ Save view"
2941
2966
  }
2942
2967
  ) }),
2943
- /* @__PURE__ */ d(lt, { className: "w-[240px] p-3", align: "end", children: [
2968
+ /* @__PURE__ */ d(ot, { className: "w-[240px] p-3", align: "end", children: [
2944
2969
  (() => {
2945
- const e = j == null ? void 0 : j.data.find((t) => t.id === Ze);
2970
+ const e = U == null ? void 0 : U.data.find((t) => t.id === et);
2946
2971
  return !e || e.user !== N && !De ? null : /* @__PURE__ */ d(
2947
2972
  "button",
2948
2973
  {
2949
2974
  type: "button",
2950
- disabled: Ke.isPending,
2975
+ disabled: Pe.isPending,
2951
2976
  onClick: () => {
2952
- Ke.mutate(e), Ln(!1);
2977
+ Pe.mutate(e), An(!1);
2953
2978
  },
2954
2979
  className: "mb-2 w-full rounded-md border border-nvr-cyan/40 bg-nvr-cyan/5 px-2 py-1.5 text-[12px] font-medium text-nvr-navy hover:bg-nvr-cyan/10 disabled:opacity-50 dark:text-nvr-cyan",
2955
2980
  children: [
@@ -2964,7 +2989,7 @@ function rd({
2964
2989
  "input",
2965
2990
  {
2966
2991
  value: Ht,
2967
- onChange: (e) => Or(e.target.value),
2992
+ onChange: (e) => Dr(e.target.value),
2968
2993
  onKeyDown: (e) => {
2969
2994
  e.key !== "Enter" || e.nativeEvent.isComposing || (e.preventDefault(), Ht.trim() && !Xt.isPending && Xt.mutate());
2970
2995
  },
@@ -2975,9 +3000,9 @@ function rd({
2975
3000
  ),
2976
3001
  zt && /* @__PURE__ */ d("label", { className: "mb-2 flex items-center gap-2 text-[12px] text-slate-600 dark:text-slate-300", children: [
2977
3002
  /* @__PURE__ */ a(
2978
- Hn,
3003
+ Yn,
2979
3004
  {
2980
- checked: Dr || vt,
3005
+ checked: Pr || vt,
2981
3006
  disabled: vt,
2982
3007
  onCheckedChange: (e) => Kr(e === !0)
2983
3008
  }
@@ -2986,10 +3011,10 @@ function rd({
2986
3011
  ] }),
2987
3012
  zt && /* @__PURE__ */ d("label", { className: "mb-2 flex items-center gap-2 text-[12px] text-slate-600 dark:text-slate-300", children: [
2988
3013
  /* @__PURE__ */ a(
2989
- Hn,
3014
+ Yn,
2990
3015
  {
2991
3016
  checked: vt,
2992
- onCheckedChange: (e) => Pr(e === !0)
3017
+ onCheckedChange: (e) => Mr(e === !0)
2993
3018
  }
2994
3019
  ),
2995
3020
  "Set as queue default (everyone starts here)"
@@ -3011,76 +3036,76 @@ function rd({
3011
3036
  )
3012
3037
  ] }),
3013
3038
  /* @__PURE__ */ d("div", { ref: Yt, className: "flex min-h-0 flex-1 flex-col overflow-y-auto px-4 pb-4 pt-3", children: [
3014
- dr && /* @__PURE__ */ a(Is, { error: Za, onRetry: () => void el(), className: "mb-3" }),
3015
- In && /* @__PURE__ */ a(
3039
+ ur && /* @__PURE__ */ a(Ws, { error: el, onRetry: () => void tl(), className: "mb-3" }),
3040
+ Vn && /* @__PURE__ */ a(
3016
3041
  "p",
3017
3042
  {
3018
3043
  "data-filter-sentence": !0,
3019
- "data-tip": In,
3044
+ "data-tip": Vn,
3020
3045
  "aria-live": "polite",
3021
3046
  className: "mb-1.5 shrink-0 truncate px-0.5 text-[11.5px] text-slate-500 dark:text-slate-400",
3022
- children: In
3047
+ children: Vn
3023
3048
  }
3024
3049
  ),
3025
- C === "table" ? /* @__PURE__ */ a(qe, { children: /* @__PURE__ */ a("div", { className: "flex min-h-0 flex-1", children: /* @__PURE__ */ d(
3050
+ S === "table" ? /* @__PURE__ */ a(ye, { children: /* @__PURE__ */ a("div", { className: "flex min-h-0 flex-1", children: /* @__PURE__ */ d(
3026
3051
  "div",
3027
3052
  {
3028
3053
  ref: Fe.rootRef,
3029
- className: E(
3054
+ className: q(
3030
3055
  "relative min-w-0 flex-1 transition-opacity duration-200",
3031
3056
  hr && "pointer-events-none opacity-60"
3032
3057
  ),
3033
3058
  "aria-busy": hr || void 0,
3034
3059
  children: [
3035
- fr != null && /* @__PURE__ */ d("span", { className: "nvr-slide-up-centered absolute left-1/2 top-6 z-[6] -translate-x-1/2 rounded-full border border-slate-200 bg-white px-3 py-1.5 text-[12px] font-medium text-slate-600 shadow-lg dark:border-border dark:bg-card dark:text-slate-300", children: [
3036
- al.text ?? "Still working",
3060
+ gr != null && /* @__PURE__ */ d("span", { className: "nvr-slide-up-centered absolute left-1/2 top-6 z-[6] -translate-x-1/2 rounded-full border border-slate-200 bg-white px-3 py-1.5 text-[12px] font-medium text-slate-600 shadow-lg dark:border-border dark:bg-card dark:text-slate-300", children: [
3061
+ ll.text ?? "Still working",
3037
3062
  " — ",
3038
- fr,
3063
+ gr,
3039
3064
  "s"
3040
3065
  ] }),
3041
3066
  /* @__PURE__ */ a(
3042
- As,
3067
+ Ps,
3043
3068
  {
3044
3069
  fillHeight: !0,
3045
- enterKey: wr.current,
3070
+ enterKey: _r.current,
3046
3071
  density: Rt,
3047
3072
  minBodyHeight: 360,
3048
3073
  columns: en,
3049
- rows: q,
3074
+ rows: F,
3050
3075
  rowKey: (e) => `${e.collection}:${e.item_id}`,
3051
3076
  total: (i == null ? void 0 : i.total) ?? 0,
3052
3077
  page: de,
3053
- limit: bn,
3078
+ limit: fn,
3054
3079
  isLoading: He,
3055
3080
  onPageChange: A,
3056
3081
  onRowClick: (e) => Wt(e),
3057
3082
  rowDragProps: (e) => ({
3058
- ...dl({ collection: e.collection, id: e.item_id }),
3059
- ...ll.record(e.collection, e.item_id)
3083
+ ...ul({ collection: e.collection, id: e.item_id }),
3084
+ ...ol.record(e.collection, e.item_id)
3060
3085
  }),
3061
3086
  onRowContextMenu: (e, t) => {
3062
3087
  t.preventDefault(), kt({ x: t.clientX, y: t.clientY, row: e });
3063
3088
  },
3064
3089
  rowTitle: (e) => {
3065
- const t = ht.get(D(e));
3066
- return Fe.titleFor(D(e)) ?? (t && !t.is_mine ? ss(t) : void 0) ?? (Mr(e.collection, e.item_id) ? zs : void 0);
3090
+ const t = ft.get(D(e));
3091
+ return Fe.titleFor(D(e)) ?? (t && !t.is_mine ? ds(t) : void 0) ?? (Qr(e.collection, e.item_id) ? ei : void 0);
3067
3092
  },
3068
- rowClassName: (e) => E(
3069
- Cl(e),
3070
- Mr(e.collection, e.item_id) && Js
3093
+ rowClassName: (e) => q(
3094
+ $l(e),
3095
+ Qr(e.collection, e.item_id) && Zs
3071
3096
  ),
3072
- emptyMessage: dr ? /* @__PURE__ */ a("span", { className: "sr-only", children: "The list did not load." }) : /* @__PURE__ */ a(
3073
- Os,
3097
+ emptyMessage: ur ? /* @__PURE__ */ a("span", { className: "sr-only", children: "The list did not load." }) : /* @__PURE__ */ a(
3098
+ Ks,
3074
3099
  {
3075
- icon: Ro,
3076
- title: ((ba = i == null ? void 0 : i.empty) == null ? void 0 : ba.reason) === "not_permitted" ? "You cannot read this queue’s records" : ((ha = i == null ? void 0 : i.empty) == null ? void 0 : ha.reason) === "scope_mine" ? "Nothing waiting on you" : ((fa = i == null ? void 0 : i.empty) == null ? void 0 : fa.reason) === "filters" ? "No records match these filters" : "Nothing in this queue",
3077
- detail: ((ga = i == null ? void 0 : i.empty) == null ? void 0 : ga.reason) === "filters" && be > 0 ? `Your default ${pr(Un)} filter is hiding ${be.toLocaleString("en-US")} item${be === 1 ? "" : "s"} here.` : ((xa = i == null ? void 0 : i.empty) == null ? void 0 : xa.reason) === "filters" ? g !== "all" ? "Your filters and the current tab leave nothing to show. Widen a filter or look across all items." : "Widen or clear a filter to see more of the queue." : ((ya = i == null ? void 0 : i.empty) == null ? void 0 : ya.message) ?? "Records land here when they match the queue sources — a state change or new record can appear at any moment.",
3078
- action: ((ka = i == null ? void 0 : i.empty) == null ? void 0 : ka.reason) === "filters" ? /* @__PURE__ */ d("div", { className: "flex items-center justify-center gap-2", children: [
3100
+ icon: Lo,
3101
+ title: ((fa = i == null ? void 0 : i.empty) == null ? void 0 : fa.reason) === "not_permitted" ? "You cannot read this queue’s records" : ((ha = i == null ? void 0 : i.empty) == null ? void 0 : ha.reason) === "scope_mine" ? "Nothing waiting on you" : ((ga = i == null ? void 0 : i.empty) == null ? void 0 : ga.reason) === "filters" ? "No records match these filters" : "Nothing in this queue",
3102
+ detail: ((xa = i == null ? void 0 : i.empty) == null ? void 0 : xa.reason) === "filters" && be > 0 ? `Your default ${br(In)} filter is hiding ${be.toLocaleString("en-US")} item${be === 1 ? "" : "s"} here.` : ((ya = i == null ? void 0 : i.empty) == null ? void 0 : ya.reason) === "filters" ? g !== "all" ? "Your filters and the current tab leave nothing to show. Widen a filter or look across all items." : "Widen or clear a filter to see more of the queue." : ((ka = i == null ? void 0 : i.empty) == null ? void 0 : ka.message) ?? "Records land here when they match the queue sources — a state change or new record can appear at any moment.",
3103
+ action: ((va = i == null ? void 0 : i.empty) == null ? void 0 : va.reason) === "filters" ? /* @__PURE__ */ d("div", { className: "flex items-center justify-center gap-2", children: [
3079
3104
  be > 0 && /* @__PURE__ */ d(
3080
3105
  "button",
3081
3106
  {
3082
3107
  type: "button",
3083
- onClick: br,
3108
+ onClick: fr,
3084
3109
  className: "h-7 rounded-md bg-nvr-cyan px-2.5 text-[12px] font-semibold text-white hover:brightness-105",
3085
3110
  "data-queue-empty-defaults": !0,
3086
3111
  children: [
@@ -3124,32 +3149,32 @@ function rd({
3124
3149
  onSortChange: (e) => {
3125
3150
  Ie(e), A(1);
3126
3151
  },
3127
- filterDefs: jn,
3128
- filterValues: _,
3152
+ filterDefs: Un,
3153
+ filterValues: w,
3129
3154
  onFilterChange: (e, t) => {
3130
3155
  Q((n) => ({ ...n, [e]: t })), A(1);
3131
3156
  },
3132
- rowGroups: Rl ?? void 0,
3133
- collapsedGroups: ke,
3134
- onToggleGroup: xl,
3135
- selectedIds: Pt && ee ? Pe : void 0,
3136
- onSelectionChange: Pt && ee ? tt : void 0,
3157
+ rowGroups: El ?? void 0,
3158
+ collapsedGroups: ve,
3159
+ onToggleGroup: yl,
3160
+ selectedIds: Kt && ee ? Ke : void 0,
3161
+ onSelectionChange: Kt && ee ? nt : void 0,
3137
3162
  hideFilterRow: !0,
3138
3163
  nowrapCells: !0,
3139
- columnPins: na,
3164
+ columnPins: ra,
3140
3165
  onColumnPinChange: (e, t) => {
3141
3166
  on((n) => {
3142
- const r = { ...n ?? na };
3167
+ const r = { ...n ?? ra };
3143
3168
  return t ? r[e] = t : delete r[e], r;
3144
3169
  });
3145
3170
  },
3146
3171
  columnFilterRow: !0,
3147
3172
  hScrollProxy: !0,
3148
3173
  footer: /* @__PURE__ */ a(
3149
- ei,
3174
+ ri,
3150
3175
  {
3151
3176
  collections: gt,
3152
- selectedIds: String(_.at_risk_rule ?? "").split(",").map((e) => Number(e)).filter((e) => Number.isFinite(e) && e > 0),
3177
+ selectedIds: String(w.at_risk_rule ?? "").split(",").map((e) => Number(e)).filter((e) => Number.isFinite(e) && e > 0),
3153
3178
  onToggle: (e) => {
3154
3179
  const t = e.ids.join(",");
3155
3180
  Q((n) => ({
@@ -3164,83 +3189,83 @@ function rd({
3164
3189
  )
3165
3190
  ]
3166
3191
  }
3167
- ) }) }) : C === "kanban" ? /* @__PURE__ */ a(
3168
- fi,
3192
+ ) }) }) : S === "kanban" ? /* @__PURE__ */ a(
3193
+ ki,
3169
3194
  {
3170
- items: q,
3195
+ items: F,
3171
3196
  onCardClick: (e) => Wt(e),
3172
- onDrop: (e, t) => ol.mutate({ item: e, targetState: t }),
3197
+ onDrop: (e, t) => sl.mutate({ item: e, targetState: t }),
3173
3198
  onClaim: (e) => Le.mutate(e),
3174
3199
  onRelease: (e) => Ye.mutate(e),
3175
- swimlaneBy: st,
3176
- stateLabels: Fn,
3177
- laneLabel: st === "collection" ? xt : void 0,
3200
+ swimlaneBy: it,
3201
+ stateLabels: Tn,
3202
+ laneLabel: it === "collection" ? xt : void 0,
3178
3203
  claimsEnabled: pe,
3179
3204
  onDraggingChange: (e) => {
3180
- un.current = e;
3205
+ mn.current = e;
3181
3206
  }
3182
3207
  }
3183
- ) : /* @__PURE__ */ a(xi, { queueId: l })
3208
+ ) : /* @__PURE__ */ a(wi, { queueId: l })
3184
3209
  ] }),
3185
- Pt && ee && /* @__PURE__ */ d(
3186
- bi,
3210
+ Kt && ee && /* @__PURE__ */ d(
3211
+ xi,
3187
3212
  {
3188
- count: Pe.length,
3213
+ count: Ke.length,
3189
3214
  claimsEnabled: pe,
3190
- showClaim: fn("claim"),
3191
- showRelease: fn("release"),
3192
- showTransition: fn("transition"),
3193
- states: Lr((i == null ? void 0 : i.available_values.state) ?? []).map((e) => ({
3215
+ showClaim: gn("claim"),
3216
+ showRelease: gn("release"),
3217
+ showTransition: gn("transition"),
3218
+ states: Ar((i == null ? void 0 : i.available_values.state) ?? []).map((e) => ({
3194
3219
  value: e,
3195
3220
  label: Ae(e)
3196
3221
  })),
3197
- busy: Ir,
3198
- onClaim: () => On(
3222
+ busy: Vr,
3223
+ onClaim: () => Dn(
3199
3224
  "Claim",
3200
- (e) => h.request(
3225
+ (e) => f.request(
3201
3226
  ie(`/queues/${l}/claim`, {
3202
3227
  source_collection: e.collection,
3203
3228
  item_id: e.item_id
3204
3229
  })
3205
3230
  )
3206
3231
  ),
3207
- onRelease: () => On(
3232
+ onRelease: () => Dn(
3208
3233
  "Release",
3209
- (e) => h.request(
3234
+ (e) => f.request(
3210
3235
  ie(`/queues/${l}/release`, {
3211
3236
  source_collection: e.collection,
3212
3237
  item_id: e.item_id
3213
3238
  })
3214
3239
  )
3215
3240
  ),
3216
- onTransition: (e) => On("Transition", (t) => gr(t, e)),
3217
- onClear: () => tt([]),
3241
+ onTransition: (e) => Dn("Transition", (t) => xr(t, e)),
3242
+ onClear: () => nt([]),
3218
3243
  children: [
3219
- Pe.length >= 2 && /* @__PURE__ */ a(
3244
+ Ke.length >= 2 && /* @__PURE__ */ a(
3220
3245
  "button",
3221
3246
  {
3222
3247
  type: "button",
3223
3248
  onClick: () => {
3224
- const e = cs(
3225
- q.filter((t) => Pe.includes(D(t)) && t.collection !== "tasks").map((t) => H.urlFor(En(t)))
3249
+ const e = ms(
3250
+ F.filter((t) => Ke.includes(D(t)) && t.collection !== "tasks").map((t) => H.urlFor(Ln(t)))
3226
3251
  );
3227
- e.blocked > 0 || e.capped > 0 ? O.warning(qa(e)) : O.success(qa(e));
3252
+ e.blocked > 0 || e.capped > 0 ? O.warning(Fa(e)) : O.success(Fa(e));
3228
3253
  },
3229
3254
  "data-bulk-open-tabs": !0,
3230
- title: `Open the selected records in new tabs (up to ${is})`,
3255
+ title: `Open the selected records in new tabs (up to ${us})`,
3231
3256
  className: "h-8 rounded-md border border-white/20 px-3 text-[12.5px] font-medium hover:bg-white/10 dark:border-border dark:hover:bg-muted",
3232
3257
  children: "Open in tabs"
3233
3258
  }
3234
3259
  ),
3235
3260
  /* @__PURE__ */ a(
3236
- Ts,
3261
+ Ls,
3237
3262
  {
3238
- targets: q.filter((e) => Pe.includes(D(e)) && e.collection !== "tasks").map((e) => ({ collection: e.collection, id: e.item_id, label: e.label })),
3263
+ targets: F.filter((e) => Ke.includes(D(e)) && e.collection !== "tasks").map((e) => ({ collection: e.collection, id: e.item_id, label: e.label })),
3239
3264
  enabledKeys: (u == null ? void 0 : u.bulk_action_keys) ?? null,
3240
3265
  tone: "light",
3241
- disabled: Ir,
3266
+ disabled: Vr,
3242
3267
  onDone: (e) => {
3243
- e.failed === 0 && tt([]), f.invalidateQueries({ queryKey: ["queue-items", l] });
3268
+ e.failed === 0 && nt([]), h.invalidateQueries({ queryKey: ["queue-items", l] });
3244
3269
  }
3245
3270
  }
3246
3271
  )
@@ -3248,7 +3273,7 @@ function rd({
3248
3273
  }
3249
3274
  ),
3250
3275
  ae != null && ae.length ? /* @__PURE__ */ a(
3251
- Zs,
3276
+ ni,
3252
3277
  {
3253
3278
  collection: ae[0].collection,
3254
3279
  itemId: ae[0].itemId,
@@ -3262,7 +3287,7 @@ function rd({
3262
3287
  onClose: () => Nt.back(ae.length)
3263
3288
  }
3264
3289
  ) : null,
3265
- B && Sa(
3290
+ B && Ca(
3266
3291
  /* @__PURE__ */ d(
3267
3292
  "div",
3268
3293
  {
@@ -3284,16 +3309,16 @@ function rd({
3284
3309
  },
3285
3310
  { label: "Peek", run: () => Oe(B.row) },
3286
3311
  ...pe ? [
3287
- ((va = B.row.claimed_by) == null ? void 0 : va.id) === N ? { label: "Release claim", run: () => Ye.mutate(B.row) } : { label: "Claim", run: () => Le.mutate(B.row) }
3312
+ ((wa = B.row.claimed_by) == null ? void 0 : wa.id) === N ? { label: "Release claim", run: () => Ye.mutate(B.row) } : { label: "Claim", run: () => Le.mutate(B.row) }
3288
3313
  ] : [],
3289
3314
  // The friendly id (PW26-76166), never the row id (army 6 M52);
3290
3315
  // a record with no number has nothing to copy.
3291
- ...Fa(B.row) ? [
3316
+ ...Ta(B.row) ? [
3292
3317
  {
3293
3318
  label: "Copy ID",
3294
3319
  run: () => {
3295
3320
  var e;
3296
- return void ((e = navigator.clipboard) == null ? void 0 : e.writeText(Fa(B.row) ?? ""));
3321
+ return void ((e = navigator.clipboard) == null ? void 0 : e.writeText(Ta(B.row) ?? ""));
3297
3322
  }
3298
3323
  }
3299
3324
  ] : [],
@@ -3302,14 +3327,14 @@ function rd({
3302
3327
  run: () => {
3303
3328
  var e;
3304
3329
  return void ((e = navigator.clipboard) == null ? void 0 : e.writeText(
3305
- `${window.location.origin}${H.urlFor(En(B.row))}`
3330
+ `${window.location.origin}${H.urlFor(Ln(B.row))}`
3306
3331
  ));
3307
3332
  }
3308
3333
  },
3309
3334
  // Custom actions (#125): the record's registered actions, right here.
3310
- ...Ja(B.row.collection).map((e) => ({
3335
+ ...za(B.row.collection).map((e) => ({
3311
3336
  label: e.label,
3312
- run: () => za(e, B.row)
3337
+ run: () => Xa(e, B.row)
3313
3338
  }))
3314
3339
  ].map((e) => /* @__PURE__ */ a(
3315
3340
  "button",
@@ -3325,14 +3350,14 @@ function rd({
3325
3350
  )),
3326
3351
  B.row.collection !== "tasks" && /* @__PURE__ */ d("div", { className: "mt-1 border-t border-slate-100 pt-1 dark:border-border/60", children: [
3327
3352
  /* @__PURE__ */ a("p", { className: "px-3 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-slate-400", children: "Triage labels" }),
3328
- kn.slice(0, 8).map((e) => {
3353
+ vn.slice(0, 8).map((e) => {
3329
3354
  const t = (B.row.labels ?? []).includes(e);
3330
3355
  return /* @__PURE__ */ d(
3331
3356
  "button",
3332
3357
  {
3333
3358
  type: "button",
3334
3359
  onClick: () => {
3335
- ir(B.row, e), kt(null);
3360
+ cr(B.row, e), kt(null);
3336
3361
  },
3337
3362
  className: "flex w-full items-center gap-2 px-3 py-1.5 text-left text-[12px] text-slate-700 hover:bg-slate-50 dark:text-slate-200 dark:hover:bg-slate-800",
3338
3363
  children: [
@@ -3356,7 +3381,7 @@ function rd({
3356
3381
  const n = e.target.elements.namedItem(
3357
3382
  "newlabel"
3358
3383
  ).value.trim();
3359
- n && (ir(B.row, n), kt(null));
3384
+ n && (cr(B.row, n), kt(null));
3360
3385
  },
3361
3386
  className: "px-3 py-1",
3362
3387
  children: /* @__PURE__ */ a(
@@ -3377,53 +3402,53 @@ function rd({
3377
3402
  ),
3378
3403
  document.body
3379
3404
  ),
3380
- sr && Sa(
3405
+ ir && Ca(
3381
3406
  /* @__PURE__ */ a(
3382
- Ti,
3407
+ Ai,
3383
3408
  {
3384
3409
  queueId: l,
3385
- drill: sr,
3386
- onClose: () => xn(null),
3410
+ drill: ir,
3411
+ onClose: () => yn(null),
3387
3412
  onOpenRecord: (e, t) => {
3388
- xn(null), H.open({ collection: e, itemId: t, layoutSlug: null });
3413
+ yn(null), H.open({ collection: e, itemId: t, layoutSlug: null });
3389
3414
  }
3390
3415
  }
3391
3416
  ),
3392
3417
  document.body
3393
3418
  ),
3394
3419
  /* @__PURE__ */ a(
3395
- hi,
3420
+ yi,
3396
3421
  {
3397
- item: Se,
3398
- stateLabels: Fn,
3422
+ item: Ce,
3423
+ stateLabels: Tn,
3399
3424
  collectionLabel: xt,
3400
3425
  claimsEnabled: pe,
3401
- columnFormats: Al,
3426
+ columnFormats: Ol,
3402
3427
  fieldLabel: (e) => T(`extra.${e}`, je(e)),
3403
3428
  width: u == null ? void 0 : u.sheet_width,
3404
3429
  itemLayout: u == null ? void 0 : u.item_layout,
3405
3430
  onOpenChange: (e) => {
3406
- e || (Oe(null), Rn(!1));
3431
+ e || (Oe(null), En(!1));
3407
3432
  },
3408
3433
  onClaim: (e) => Le.mutate(e),
3409
3434
  onRelease: (e) => Ye.mutate(e),
3410
- workNextActive: yl,
3411
- onNext: () => Se && Ar(Se),
3412
- refetchItems: () => f.invalidateQueries({ queryKey: ["queue-items", l] })
3435
+ workNextActive: kl,
3436
+ onNext: () => Ce && Or(Ce),
3437
+ refetchItems: () => h.invalidateQueries({ queryKey: ["queue-items", l] })
3413
3438
  }
3414
3439
  ),
3415
3440
  Qt.dialog
3416
3441
  ] });
3417
3442
  }
3418
- function Ti({
3443
+ function Ai({
3419
3444
  queueId: l,
3420
3445
  drill: k,
3421
- onClose: K,
3446
+ onClose: P,
3422
3447
  onOpenRecord: M
3423
3448
  }) {
3424
- const G = La(), { data: f, isLoading: h } = W({
3449
+ const W = Aa(), { data: h, isLoading: f } = G({
3425
3450
  queryKey: ["queue-agg-rows", l, k.row.collection, k.row.item_id, k.path],
3426
- queryFn: () => G.request(
3451
+ queryFn: () => W.request(
3427
3452
  L(`/queues/${l}/aggregate-rows`, {
3428
3453
  collection: k.row.collection,
3429
3454
  item_id: k.row.item_id,
@@ -3435,7 +3460,7 @@ function Ti({
3435
3460
  "div",
3436
3461
  {
3437
3462
  className: "fixed inset-0 z-[130] flex items-center justify-center bg-black/30 p-6",
3438
- onClick: K,
3463
+ onClick: P,
3439
3464
  children: /* @__PURE__ */ d(
3440
3465
  "div",
3441
3466
  {
@@ -3457,18 +3482,18 @@ function Ti({
3457
3482
  "button",
3458
3483
  {
3459
3484
  type: "button",
3460
- onClick: K,
3485
+ onClick: P,
3461
3486
  className: "rounded-md px-2 py-1 text-[12px] text-slate-400 hover:bg-muted",
3462
3487
  children: "✕"
3463
3488
  }
3464
3489
  )
3465
3490
  ] }),
3466
- h ? /* @__PURE__ */ a("p", { className: "py-6 text-center text-[12.5px] text-slate-400", children: "Loading…" }) : ((f == null ? void 0 : f.rows) ?? []).length === 0 ? /* @__PURE__ */ a("p", { className: "py-6 text-center text-[12.5px] text-slate-400", children: "No contributing rows resolved." }) : /* @__PURE__ */ a("ul", { className: "divide-y divide-slate-100 dark:divide-border/60", children: f == null ? void 0 : f.rows.map((N) => /* @__PURE__ */ d("li", { className: "flex items-center justify-between gap-3 py-1.5", children: [
3491
+ f ? /* @__PURE__ */ a("p", { className: "py-6 text-center text-[12.5px] text-slate-400", children: "Loading…" }) : ((h == null ? void 0 : h.rows) ?? []).length === 0 ? /* @__PURE__ */ a("p", { className: "py-6 text-center text-[12.5px] text-slate-400", children: "No contributing rows resolved." }) : /* @__PURE__ */ a("ul", { className: "divide-y divide-slate-100 dark:divide-border/60", children: h == null ? void 0 : h.rows.map((N) => /* @__PURE__ */ d("li", { className: "flex items-center justify-between gap-3 py-1.5", children: [
3467
3492
  /* @__PURE__ */ a(
3468
3493
  "button",
3469
3494
  {
3470
3495
  type: "button",
3471
- onClick: () => f.target && M(f.target, String(N.id)),
3496
+ onClick: () => h.target && M(h.target, String(N.id)),
3472
3497
  className: "min-w-0 truncate text-left text-[12.5px] underline decoration-dotted underline-offset-2 hover:text-nvr-navy dark:hover:text-nvr-cyan",
3473
3498
  children: N.label
3474
3499
  }
@@ -3482,5 +3507,5 @@ function Ti({
3482
3507
  );
3483
3508
  }
3484
3509
  export {
3485
- rd as QueueWorklist
3510
+ id as QueueWorklist
3486
3511
  };