@nivaro/react 0.2.54 → 0.2.55

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 (150) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +99 -98
  3. package/dist/index.d.ts +339 -2
  4. package/dist/index.js +644 -618
  5. package/dist/layout-editor.d.ts +4 -0
  6. package/dist/shared/components/BackgroundRunOffer.js +117 -0
  7. package/dist/shared/components/BroadcastView.js +214 -213
  8. package/dist/shared/components/CollectionBrowserView.js +2592 -2695
  9. package/dist/shared/components/ItemEditForm.js +4066 -3832
  10. package/dist/shared/components/JobsTray.js +100 -55
  11. package/dist/shared/components/MyWorkView.js +91 -89
  12. package/dist/shared/components/NotificationBell.js +80 -79
  13. package/dist/shared/components/ProfileView.js +568 -520
  14. package/dist/shared/components/RecordCompare.js +254 -0
  15. package/dist/shared/components/RecordReadView.js +599 -552
  16. package/dist/shared/components/ReportView.js +578 -543
  17. package/dist/shared/components/RowPresence.js +91 -0
  18. package/dist/shared/components/WidgetSlot.js +474 -458
  19. package/dist/shared/components/ai/AiAnalyticsView.js +16 -6
  20. package/dist/shared/components/ai/AskPanel.js +139 -119
  21. package/dist/shared/components/ai/FirstWeekCard.js +126 -0
  22. package/dist/shared/components/bulk/BulkFieldUpdate.js +289 -0
  23. package/dist/shared/components/bulk/bulk-field-options.js +45 -0
  24. package/dist/shared/components/charts/CumulativeFlowChart.js +176 -0
  25. package/dist/shared/components/chat/ChannelArchive.js +326 -0
  26. package/dist/shared/components/chat/ChannelExtras.js +141 -121
  27. package/dist/shared/components/chat/ChatAnalyticsView.js +112 -110
  28. package/dist/shared/components/chat/ChatPanel.js +1695 -1733
  29. package/dist/shared/components/chat/Composer.js +357 -303
  30. package/dist/shared/components/chat/MessageActions.js +92 -0
  31. package/dist/shared/components/chat/MessageFormat.js +290 -264
  32. package/dist/shared/components/chat/OutboxBubbles.js +146 -0
  33. package/dist/shared/components/chat/RequestIdCard.js +135 -0
  34. package/dist/shared/components/chat/RoomHeaderMenu.js +202 -0
  35. package/dist/shared/components/chat/RoomParts.js +213 -274
  36. package/dist/shared/components/chat/ScreenClip.js +184 -0
  37. package/dist/shared/components/chat/chat-core.js +402 -483
  38. package/dist/shared/components/chat/chat-drafts.js +59 -0
  39. package/dist/shared/components/chat/chat-emoji.js +348 -0
  40. package/dist/shared/components/chat/chat-local-time.js +41 -0
  41. package/dist/shared/components/chat/chat-outbox.js +303 -0
  42. package/dist/shared/components/chat/chat-window.js +163 -0
  43. package/dist/shared/components/chat/huddle/HuddleControls.js +143 -0
  44. package/dist/shared/components/chat/huddle/HuddleStage.js +164 -0
  45. package/dist/shared/components/chat/huddle/huddle-store.js +342 -0
  46. package/dist/shared/components/chat/huddle/useHuddle.js +58 -0
  47. package/dist/shared/components/help-videos/api.js +76 -73
  48. package/dist/shared/components/item-edit/CatalogPickerField.js +113 -112
  49. package/dist/shared/components/item-edit/ChangeReasonDialog.js +13 -13
  50. package/dist/shared/components/item-edit/FieldAffordances.js +2 -2
  51. package/dist/shared/components/item-edit/FieldRenderer.js +248 -245
  52. package/dist/shared/components/item-edit/FieldRow.js +292 -279
  53. package/dist/shared/components/item-edit/GroupSection.js +698 -574
  54. package/dist/shared/components/item-edit/InlineTableField.js +3 -1
  55. package/dist/shared/components/item-edit/RelationCombobox.js +186 -176
  56. package/dist/shared/components/item-edit/entry/EntryStrip.js +54 -0
  57. package/dist/shared/components/item-edit/entry/entry-keys.js +27 -0
  58. package/dist/shared/components/item-edit/entry/useEntryKeyboard.js +70 -0
  59. package/dist/shared/components/item-edit/entry/useEntryMode.js +59 -0
  60. package/dist/shared/components/item-edit/form-structure-ui.js +105 -0
  61. package/dist/shared/components/item-edit/lazy-sections.js +36 -0
  62. package/dist/shared/components/item-edit/lock-why.js +39 -32
  63. package/dist/shared/components/item-edit/picker-miss.js +26 -0
  64. package/dist/shared/components/item-edit/placement-behaviour.js +196 -0
  65. package/dist/shared/components/item-edit/useFormUsageBeacon.js +51 -45
  66. package/dist/shared/components/layout-editor/AddPanel.js +134 -117
  67. package/dist/shared/components/layout-editor/ChangeNote.js +25 -24
  68. package/dist/shared/components/layout-editor/CollabParts.js +80 -75
  69. package/dist/shared/components/layout-editor/DesignNode.js +126 -120
  70. package/dist/shared/components/layout-editor/EditorCanvas.js +30 -27
  71. package/dist/shared/components/layout-editor/EditorTopBar.js +203 -192
  72. package/dist/shared/components/layout-editor/HistoryPanel.js +120 -104
  73. package/dist/shared/components/layout-editor/LayoutEditor.js +768 -671
  74. package/dist/shared/components/layout-editor/RestorePiece.js +143 -0
  75. package/dist/shared/components/layout-editor/StagedChip.js +22 -0
  76. package/dist/shared/components/layout-editor/StructureMenu.js +237 -186
  77. package/dist/shared/components/layout-editor/collab/FormFollowShare.js +149 -103
  78. package/dist/shared/components/layout-editor/collab/collab-api.js +29 -26
  79. package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +81 -80
  80. package/dist/shared/components/layout-editor/dnd/node.js +69 -57
  81. package/dist/shared/components/layout-editor/draft-recovery.js +113 -43
  82. package/dist/shared/components/layout-editor/entry/PlacementPresets.js +149 -0
  83. package/dist/shared/components/layout-editor/entry/entry-editor-context.js +10 -0
  84. package/dist/shared/components/layout-editor/entry/presets.js +71 -0
  85. package/dist/shared/components/layout-editor/entry/tab-order.js +110 -0
  86. package/dist/shared/components/layout-editor/entry/theme-preview.js +37 -0
  87. package/dist/shared/components/layout-editor/grid-guides.js +142 -0
  88. package/dist/shared/components/layout-editor/inspector/BehaviourSettings.js +402 -0
  89. package/dist/shared/components/layout-editor/inspector/BulkInspector.js +61 -57
  90. package/dist/shared/components/layout-editor/inspector/GroupInspector.js +247 -151
  91. package/dist/shared/components/layout-editor/inspector/Inspector.js +176 -155
  92. package/dist/shared/components/layout-editor/inspector/LookTab.js +167 -116
  93. package/dist/shared/components/layout-editor/inspector/PickerMisses.js +129 -0
  94. package/dist/shared/components/layout-editor/inspector/PickerTab.js +84 -82
  95. package/dist/shared/components/layout-editor/inspector/RulesTab.js +66 -62
  96. package/dist/shared/components/layout-editor/inspector/kit.js +69 -68
  97. package/dist/shared/components/layout-editor/outputs/OutputsButton.js +254 -0
  98. package/dist/shared/components/layout-editor/outputs/help-sheet.js +154 -0
  99. package/dist/shared/components/layout-editor/outputs/output-api.js +61 -0
  100. package/dist/shared/components/layout-editor/overview/describe-conditions.js +6 -0
  101. package/dist/shared/components/layout-editor/overview/purpose.js +15 -13
  102. package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
  103. package/dist/shared/components/layout-editor/restore-piece.js +192 -0
  104. package/dist/shared/components/layout-editor/section-structure.js +241 -0
  105. package/dist/shared/components/layout-editor/settings/EntrySection.js +296 -0
  106. package/dist/shared/components/layout-editor/settings/FormSettings.js +41 -39
  107. package/dist/shared/components/layout-editor/settings/ResolveSettings.js +255 -0
  108. package/dist/shared/components/layout-editor/settings/ToolsSection.js +147 -111
  109. package/dist/shared/components/layout-editor/settings/WhoSection.js +29 -26
  110. package/dist/shared/components/layout-editor/settings/settings-registry.js +114 -17
  111. package/dist/shared/components/layout-editor/staged-api.js +64 -0
  112. package/dist/shared/components/layout-editor/structure-ops.js +81 -77
  113. package/dist/shared/components/layout-editor/testing/TestingPanels.js +65 -60
  114. package/dist/shared/components/layout-editor/testing/testing-model.js +198 -185
  115. package/dist/shared/components/layout-editor/toolbar-kit.js +11 -11
  116. package/dist/shared/components/layout-editor/usage/AbTestSection.js +355 -0
  117. package/dist/shared/components/layout-editor/usage/UsagePanel.js +144 -70
  118. package/dist/shared/components/layout-editor/usage/ab-api.js +86 -0
  119. package/dist/shared/components/layout-editor/usage/suggest-collapse.js +32 -0
  120. package/dist/shared/components/layout-editor/useLayoutDraft.js +25 -24
  121. package/dist/shared/components/notifications/NotificationAnalyticsView.js +148 -77
  122. package/dist/shared/components/panels/ErpFailureBanner.js +18 -17
  123. package/dist/shared/components/panels/ExternalRequestsChip.js +63 -62
  124. package/dist/shared/components/pipeline/PipelineEditorView.js +106 -104
  125. package/dist/shared/components/profile/AgentsPanel.js +479 -0
  126. package/dist/shared/components/queue/QueueWorklist.js +1026 -1040
  127. package/dist/shared/components/support/SupportAnalytics.js +171 -0
  128. package/dist/shared/components/support/SupportView.js +75 -73
  129. package/dist/shared/lib/background-runs.js +150 -0
  130. package/dist/shared/lib/delivery-ack.js +9 -0
  131. package/dist/shared/lib/entry-badge-style.js +13 -0
  132. package/dist/shared/lib/entry-config.js +71 -0
  133. package/dist/shared/lib/form-sections.js +64 -0
  134. package/dist/shared/lib/form-structure.js +99 -0
  135. package/dist/shared/lib/form-usage-beacon.js +101 -52
  136. package/dist/shared/lib/jobs-tray.js +25 -23
  137. package/dist/shared/lib/keyset-pager.js +37 -0
  138. package/dist/shared/lib/layout-ops.js +84 -82
  139. package/dist/shared/lib/layout-resolve.js +113 -0
  140. package/dist/shared/lib/placement-behaviour.js +144 -0
  141. package/dist/shared/lib/prefetch.js +149 -0
  142. package/dist/shared/lib/presence-hooks.js +199 -0
  143. package/dist/shared/lib/record-outbox.js +82 -81
  144. package/dist/shared/lib/replay-socket.js +93 -0
  145. package/dist/shared/lib/request-gate.js +51 -50
  146. package/dist/shared/lib/room-gaps.js +96 -0
  147. package/dist/shared/lib/search-log.js +27 -0
  148. package/dist/shared/lib/socket-realtime.js +101 -80
  149. package/dist/shared/lib/worker-socket.js +200 -0
  150. package/package.json +1 -1
@@ -8,27 +8,28 @@ import { useState as $, useEffect as ue, useContext as ua, useRef as Je, useMemo
8
8
  import { createPortal as fa } from "react-dom";
9
9
  import { toast as T } from "sonner";
10
10
  import { useNivaroClient as Z } from "../../context.js";
11
- import { ExplainCard as ga } from "../ai/ExplainButton.js";
12
11
  import { post as J, get as Y, patch as we, del as $e } from "../../lib/commands.js";
13
- import { cn as I, formatRelative as ba, titleCase as ya } from "../../lib/utils.js";
12
+ import { cn as I, formatRelative as ga, titleCase as ba } from "../../lib/utils.js";
13
+ import { ExplainCard as ya } from "../ai/ExplainButton.js";
14
+ import { PipelineCumulativeFlowCard as va } from "../charts/CumulativeFlowChart.js";
14
15
  import { Badge as _e } from "../ui/badge.js";
15
16
  import { Button as P } from "../ui/button.js";
16
17
  import { Input as V } from "../ui/input.js";
17
18
  import { Label as U } from "../ui/label.js";
18
19
  import { Popover as Ae, PopoverTrigger as je, PopoverContent as Le } from "../ui/popover.js";
19
- import { Select as va, SelectTrigger as Na, SelectValue as wa, SelectContent as ka, SelectItem as _a } from "../ui/select.js";
20
+ import { Select as Na, SelectTrigger as wa, SelectValue as ka, SelectContent as _a, SelectItem as Ca } from "../ui/select.js";
20
21
  import { Skeleton as De } from "../ui/skeleton.js";
21
22
  import { Switch as Pe } from "../ui/switch.js";
22
23
  import { Textarea as zt } from "../ui/textarea.js";
23
24
  import { FieldPicker as rt } from "./FieldPicker.js";
24
- import { OwnerMatrix as Ca } from "./OwnerMatrix.js";
25
- import { OwnerMatrixVersionsCard as Sa } from "./OwnerMatrixVersionsCard.js";
26
- import { TemplateLintCard as qa, SkipReportCard as $a } from "./PipelineHealthCards.js";
27
- import { PipelineSkipCriteria as Fa } from "./PipelineSkipCriteria.js";
28
- import { PipelineStateOwners as Ea } from "./PipelineStateOwners.js";
29
- import { findM2ORelation as Oa, extractTemplateFields as Ra, renderDisplayTemplate as nt } from "./relations.js";
30
- import { TeamsView as Pa } from "./TeamsView.js";
31
- import { useScopeDimensions as Ta, rankTeamForFilters as Da, tierOrder as St } from "./teamScopes.js";
25
+ import { OwnerMatrix as Sa } from "./OwnerMatrix.js";
26
+ import { OwnerMatrixVersionsCard as qa } from "./OwnerMatrixVersionsCard.js";
27
+ import { TemplateLintCard as $a, SkipReportCard as Fa } from "./PipelineHealthCards.js";
28
+ import { PipelineSkipCriteria as Ea } from "./PipelineSkipCriteria.js";
29
+ import { PipelineStateOwners as Oa } from "./PipelineStateOwners.js";
30
+ import { findM2ORelation as Ra, extractTemplateFields as Pa, renderDisplayTemplate as nt } from "./relations.js";
31
+ import { TeamsView as Ta } from "./TeamsView.js";
32
+ import { useScopeDimensions as Da, rankTeamForFilters as Aa, tierOrder as St } from "./teamScopes.js";
32
33
  const Kt = "rgb(var(--nvr-cyan-rgb, 0 206 255))";
33
34
  function ge({
34
35
  value: a,
@@ -126,7 +127,7 @@ function ge({
126
127
  ] })
127
128
  ] });
128
129
  }
129
- function Aa({
130
+ function ja({
130
131
  values: a,
131
132
  onChange: l,
132
133
  options: d,
@@ -211,7 +212,7 @@ function Aa({
211
212
  ] })
212
213
  ] });
213
214
  }
214
- const ja = [
215
+ const La = [
215
216
  "#6b7280",
216
217
  "#ef4444",
217
218
  "#f97316",
@@ -239,7 +240,7 @@ function Ge({
239
240
  title: "No color"
240
241
  }
241
242
  ),
242
- ja.map((d) => /* @__PURE__ */ e(
243
+ La.map((d) => /* @__PURE__ */ e(
243
244
  "button",
244
245
  {
245
246
  type: "button",
@@ -529,10 +530,10 @@ function Rt() {
529
530
  }
530
531
  );
531
532
  }
532
- function La(a) {
533
+ function Ma(a) {
533
534
  return a ? Array.isArray(a) ? a.map(String).filter(Boolean) : typeof a == "string" && a.trim() ? [a] : [] : [];
534
535
  }
535
- function Ma({
536
+ function za({
536
537
  relatedCollection: a,
537
538
  value: l,
538
539
  onChange: d
@@ -550,7 +551,7 @@ function Ma({
550
551
  staleTime: 6e4,
551
552
  enabled: !!a
552
553
  }), h = ((b == null ? void 0 : b.fields) ?? []).map((O) => O.field), m = (b == null ? void 0 : b.display_template) ?? null, p = ["name", "title", "label", "display_name", "subject", "email", "slug"], n = [
553
- .../* @__PURE__ */ new Set(["id", ...Ra(m), ...p])
554
+ .../* @__PURE__ */ new Set(["id", ...Pa(m), ...p])
554
555
  ], y = h.length ? n.filter((O) => O === "id" || h.includes(O)).join(",") : "id", { data: q, isLoading: v, isError: _ } = G({
555
556
  queryKey: ["relation-picker-items", a, y],
556
557
  queryFn: () => x.request(
@@ -666,7 +667,7 @@ function Ma({
666
667
  ] })
667
668
  ] });
668
669
  }
669
- const za = [
670
+ const Ka = [
670
671
  { value: "eq", label: "equals" },
671
672
  { value: "neq", label: "not equals" },
672
673
  { value: "gt", label: "greater than" },
@@ -676,8 +677,8 @@ const za = [
676
677
  { value: "contains", label: "contains" },
677
678
  { value: "null", label: "is empty" },
678
679
  { value: "nnull", label: "is not empty" }
679
- ], Ka = /* @__PURE__ */ new Set(["integer", "bigInteger", "float", "decimal", "number"]), Ba = /* @__PURE__ */ new Set(["date", "dateTime", "datetime", "timestamp"]), Wa = /* @__PURE__ */ new Set(["boolean"]);
680
- function Qa({
680
+ ], Ba = /* @__PURE__ */ new Set(["integer", "bigInteger", "float", "decimal", "number"]), Wa = /* @__PURE__ */ new Set(["date", "dateTime", "datetime", "timestamp"]), Qa = /* @__PURE__ */ new Set(["boolean"]);
681
+ function Va({
681
682
  rules: a,
682
683
  onChange: l,
683
684
  collection: d
@@ -695,7 +696,7 @@ function Qa({
695
696
  if (!v.includes(".")) {
696
697
  const _ = b.find((N) => N.field === v);
697
698
  if (_) {
698
- const N = Oa(h, d ?? "", v);
699
+ const N = Ra(h, d ?? "", v);
699
700
  return { type: _.type, relatedCollection: (N == null ? void 0 : N.one_collection) ?? void 0 };
700
701
  }
701
702
  }
@@ -703,7 +704,7 @@ function Qa({
703
704
  }
704
705
  const p = (v, _) => l(a.map((N, C) => C === v ? { ...N, ..._ } : N)), n = (v) => l(a.filter((_, N) => N !== v));
705
706
  function y(v) {
706
- return v ? v.split(".").map(ya).join(" → ") : "";
707
+ return v ? v.split(".").map(ba).join(" → ") : "";
707
708
  }
708
709
  return /* @__PURE__ */ t("div", { className: "space-y-2 border-t border-slate-200 pt-3", children: [
709
710
  /* @__PURE__ */ t(
@@ -724,7 +725,7 @@ function Qa({
724
725
  o && /* @__PURE__ */ t("div", { className: "space-y-2", children: [
725
726
  /* @__PURE__ */ e("p", { className: "text-[11px] text-slate-400 leading-snug", children: "Transition is only offered when all conditions match the record — use two transitions with opposite conditions to branch." }),
726
727
  a.map((v, _) => {
727
- const N = v.op === "null" || v.op === "nnull", C = m(v.field), D = Ka.has(C.type), j = Ba.has(C.type), O = Wa.has(C.type), g = !!C.relatedCollection;
728
+ const N = v.op === "null" || v.op === "nnull", C = m(v.field), D = Ba.has(C.type), j = Wa.has(C.type), O = Qa.has(C.type), g = !!C.relatedCollection;
728
729
  return /* @__PURE__ */ t(
729
730
  "div",
730
731
  {
@@ -757,15 +758,15 @@ function Qa({
757
758
  {
758
759
  value: v.op,
759
760
  onChange: (i) => p(_, { op: i || "eq" }),
760
- options: za.map((i) => ({ value: i.value, label: i.label })),
761
+ options: Ka.map((i) => ({ value: i.value, label: i.label })),
761
762
  placeholder: "Operator…"
762
763
  }
763
764
  ) }),
764
765
  !N && /* @__PURE__ */ e("div", { className: "flex-1 min-w-[120px]", children: g ? /* @__PURE__ */ e(
765
- Ma,
766
+ za,
766
767
  {
767
768
  relatedCollection: C.relatedCollection,
768
- value: La(v.value),
769
+ value: Ma(v.value),
769
770
  onChange: (i) => p(_, { value: i.length === 1 ? i[0] : i })
770
771
  }
771
772
  ) : O ? /* @__PURE__ */ e(
@@ -828,7 +829,7 @@ function Qa({
828
829
  ] })
829
830
  ] });
830
831
  }
831
- function Va({
832
+ function Ha({
832
833
  requirement: a,
833
834
  childRelations: l,
834
835
  onChange: d,
@@ -951,7 +952,7 @@ function Va({
951
952
  ] })
952
953
  ] });
953
954
  }
954
- function Ha({
955
+ function Ua({
955
956
  requirements: a,
956
957
  onChange: l,
957
958
  collection: d
@@ -982,7 +983,7 @@ function Ha({
982
983
  o && /* @__PURE__ */ t("div", { className: "space-y-2", children: [
983
984
  /* @__PURE__ */ e("p", { className: "text-[11px] text-slate-400 leading-snug", children: "Block this transition until every row of a child relation has the listed fields filled in. Prompts the user with a fill-in dialog when rows are incomplete." }),
984
985
  a.map((m, p) => /* @__PURE__ */ e(
985
- Va,
986
+ Ha,
986
987
  {
987
988
  requirement: m,
988
989
  childRelations: u,
@@ -1051,7 +1052,7 @@ function Fe({
1051
1052
  r && /* @__PURE__ */ e("p", { className: "text-[10.5px] text-red-500", children: "Invalid JSON — not saved yet." })
1052
1053
  ] });
1053
1054
  }
1054
- function Ua({
1055
+ function Ga({
1055
1056
  actions: a,
1056
1057
  onChange: l
1057
1058
  }) {
@@ -1340,7 +1341,7 @@ function lt({
1340
1341
  /* @__PURE__ */ e(U, { className: "text-[12px]", children: r.to_previous ? "Fallback state" : `To State${r.to_states.length !== 1 ? "s" : ""}` }),
1341
1342
  r.to_previous && /* @__PURE__ */ e("p", { className: "text-[11px] text-slate-400", children: "The real target is the record's previous state — this only applies when history can't answer (the record started in this state, or the prior state was removed)." }),
1342
1343
  /* @__PURE__ */ e(
1343
- Aa,
1344
+ ja,
1344
1345
  {
1345
1346
  values: r.to_states,
1346
1347
  onChange: (n) => b("to_states", n),
@@ -1381,7 +1382,7 @@ function lt({
1381
1382
  /* @__PURE__ */ e(Ge, { value: r.color, onChange: (n) => b("color", n) })
1382
1383
  ] }),
1383
1384
  /* @__PURE__ */ e(
1384
- Qa,
1385
+ Va,
1385
1386
  {
1386
1387
  rules: r.condition_rules ?? [],
1387
1388
  onChange: (n) => b("condition_rules", n),
@@ -1389,7 +1390,7 @@ function lt({
1389
1390
  }
1390
1391
  ),
1391
1392
  /* @__PURE__ */ e(
1392
- Ha,
1393
+ Ua,
1393
1394
  {
1394
1395
  requirements: r.requirements ?? [],
1395
1396
  onChange: (n) => b("requirements", n.length > 0 ? n : null),
@@ -1397,7 +1398,7 @@ function lt({
1397
1398
  }
1398
1399
  ),
1399
1400
  /* @__PURE__ */ e(
1400
- Ua,
1401
+ Ga,
1401
1402
  {
1402
1403
  actions: r.actions ?? [],
1403
1404
  onChange: (n) => b("actions", n.length > 0 ? n : null)
@@ -1512,19 +1513,19 @@ function lt({
1512
1513
  ] })
1513
1514
  ] });
1514
1515
  }
1515
- function Ga(a) {
1516
+ function Ya(a) {
1516
1517
  var x, o;
1517
1518
  const l = ((x = a.first_name) == null ? void 0 : x[0]) ?? "", d = ((o = a.last_name) == null ? void 0 : o[0]) ?? "";
1518
1519
  return (l + d).toUpperCase() || a.email[0].toUpperCase();
1519
1520
  }
1520
- function Ya(a) {
1521
+ function Ja(a) {
1521
1522
  const l = a.filter((o) => !o.filters || o.filters.length === 0), d = /* @__PURE__ */ new Set(), x = [];
1522
1523
  for (const o of l)
1523
1524
  for (const f of o.users)
1524
1525
  d.has(f.user) || (d.add(f.user), x.push(f));
1525
1526
  return x;
1526
1527
  }
1527
- function Ja({
1528
+ function Xa({
1528
1529
  users: a,
1529
1530
  filteredCount: l
1530
1531
  }) {
@@ -1537,7 +1538,7 @@ function Ja({
1537
1538
  {
1538
1539
  title: `${o.first_name ?? ""} ${o.last_name ?? ""}`.trim() || o.email,
1539
1540
  className: "h-5 w-5 rounded-full bg-nvr-cyan/20 border border-white flex items-center justify-center text-[9px] font-semibold text-nvr-cyan",
1540
- children: Ga(o)
1541
+ children: Ya(o)
1541
1542
  },
1542
1543
  o.user
1543
1544
  )),
@@ -1560,7 +1561,7 @@ function Ja({
1560
1561
  )
1561
1562
  ] });
1562
1563
  }
1563
- function Xa({
1564
+ function Ia({
1564
1565
  s: a,
1565
1566
  groups: l,
1566
1567
  expandedStateId: d,
@@ -1607,9 +1608,9 @@ function Xa({
1607
1608
  a.lock_record && /* @__PURE__ */ e(_e, { variant: "outline", className: "text-[10px] h-4 px-1", children: "locked" })
1608
1609
  ] }) }),
1609
1610
  /* @__PURE__ */ e(
1610
- Ja,
1611
+ Xa,
1611
1612
  {
1612
- users: Ya(l),
1613
+ users: Ja(l),
1613
1614
  filteredCount: l.filter((p) => p.filters && p.filters.length > 0).length
1614
1615
  }
1615
1616
  ),
@@ -1647,7 +1648,7 @@ function Xa({
1647
1648
  }
1648
1649
  );
1649
1650
  }
1650
- function Ia({
1651
+ function Za({
1651
1652
  d: a,
1652
1653
  siblings: l,
1653
1654
  onSave: d,
@@ -1776,7 +1777,7 @@ function Ia({
1776
1777
  ] })
1777
1778
  ] });
1778
1779
  }
1779
- function Za({
1780
+ function es({
1780
1781
  d: a,
1781
1782
  siblings: l,
1782
1783
  onEdit: d,
@@ -1829,7 +1830,7 @@ function Za({
1829
1830
  ] }),
1830
1831
  /* @__PURE__ */ t("div", { className: "flex items-center gap-1 shrink-0", children: [
1831
1832
  /* @__PURE__ */ e(
1832
- Ia,
1833
+ Za,
1833
1834
  {
1834
1835
  d: a,
1835
1836
  siblings: l,
@@ -1860,7 +1861,7 @@ function Za({
1860
1861
  }
1861
1862
  );
1862
1863
  }
1863
- function es({
1864
+ function ts({
1864
1865
  binding: a,
1865
1866
  templateId: l
1866
1867
  }) {
@@ -2018,7 +2019,7 @@ function es({
2018
2019
  },
2019
2020
  i.id
2020
2021
  ) : /* @__PURE__ */ e(
2021
- Za,
2022
+ es,
2022
2023
  {
2023
2024
  d: i,
2024
2025
  siblings: r,
@@ -2111,7 +2112,7 @@ function es({
2111
2112
  ] })
2112
2113
  ] });
2113
2114
  }
2114
- function Us({
2115
+ function Ys({
2115
2116
  templateId: a,
2116
2117
  onBack: l,
2117
2118
  onExport: d,
@@ -2510,7 +2511,7 @@ function Us({
2510
2511
  ] })
2511
2512
  ] }),
2512
2513
  /* @__PURE__ */ e(
2513
- ga,
2514
+ ya,
2514
2515
  {
2515
2516
  kind: "config",
2516
2517
  params: { type: "pipeline", id: a },
@@ -2559,7 +2560,7 @@ function Us({
2559
2560
  onCancel: () => y(null)
2560
2561
  }
2561
2562
  ) : /* @__PURE__ */ e(
2562
- Xa,
2563
+ Ia,
2563
2564
  {
2564
2565
  s,
2565
2566
  groups: (Ie == null ? void 0 : Ie[s.id]) ?? [],
@@ -2573,7 +2574,7 @@ function Us({
2573
2574
  ),
2574
2575
  E === s.id && (n == null ? void 0 : n.id) !== s.id && /* @__PURE__ */ t("div", { className: "ml-4 mb-2 mt-2 rounded-xl border border-slate-200 bg-slate-50 p-4 space-y-4", children: [
2575
2576
  /* @__PURE__ */ e(
2576
- Ea,
2577
+ Oa,
2577
2578
  {
2578
2579
  stateId: s.id,
2579
2580
  stateName: s.label,
@@ -2582,7 +2583,7 @@ function Us({
2582
2583
  }
2583
2584
  ),
2584
2585
  /* @__PURE__ */ e("div", { className: "border-t border-slate-200 pt-4", children: /* @__PURE__ */ e(
2585
- Fa,
2586
+ Ea,
2586
2587
  {
2587
2588
  stateId: s.id,
2588
2589
  stateName: s.label,
@@ -2995,7 +2996,7 @@ function Us({
2995
2996
  ] })
2996
2997
  ] })
2997
2998
  ] }),
2998
- !c.has("branches") && /* @__PURE__ */ e(rs, { templateId: a, states: at }),
2999
+ !c.has("branches") && /* @__PURE__ */ e(is, { templateId: a, states: at }),
2999
3000
  !c.has("bindings") && /* @__PURE__ */ t("div", { className: "rounded-xl border border-slate-200 bg-white p-6 space-y-4", children: [
3000
3001
  /* @__PURE__ */ t("h2", { className: "text-[13px] font-semibold text-slate-800", children: [
3001
3002
  "Applied to Collections",
@@ -3035,7 +3036,7 @@ function Us({
3035
3036
  /* @__PURE__ */ t("div", { className: "flex items-center gap-1.5", children: [
3036
3037
  /* @__PURE__ */ e("span", { className: "text-[11px] text-slate-400", children: "Owner fallback:" }),
3037
3038
  /* @__PURE__ */ e(
3038
- ns,
3039
+ ls,
3039
3040
  {
3040
3041
  value: s.owner_fallback_field ?? "",
3041
3042
  onCommit: (R) => tt.mutate({
@@ -3103,7 +3104,7 @@ function Us({
3103
3104
  )
3104
3105
  ] })
3105
3106
  ] }),
3106
- de === s.id && /* @__PURE__ */ e(es, { binding: s, templateId: a })
3107
+ de === s.id && /* @__PURE__ */ e(ts, { binding: s, templateId: a })
3107
3108
  ] }, s.id);
3108
3109
  }) }),
3109
3110
  /* @__PURE__ */ t("div", { className: "space-y-2 pt-2", children: [
@@ -3180,24 +3181,25 @@ function Us({
3180
3181
  }
3181
3182
  )
3182
3183
  ] }),
3183
- /* @__PURE__ */ e(Ca, { templateId: a, states: at, bindings: me })
3184
+ /* @__PURE__ */ e(Sa, { templateId: a, states: at, bindings: me })
3184
3185
  ] }),
3185
- L && /* @__PURE__ */ e(xs, { onClose: () => M(!1) }),
3186
- !c.has("simulator") && /* @__PURE__ */ e(is, { bindings: me }),
3187
- !c.has("canvas") && /* @__PURE__ */ e(ps, { templateId: a }),
3188
- !c.has("flow-map") && /* @__PURE__ */ e(us, { templateId: a }),
3189
- !c.has("replay") && /* @__PURE__ */ e(hs, { templateId: a }),
3190
- !c.has("migration") && /* @__PURE__ */ e(ms, { templateId: a }),
3191
- !c.has("lint") && /* @__PURE__ */ e(qa, { templateId: a }),
3192
- !c.has("coverage") && /* @__PURE__ */ e(ds, { templateId: a, states: ie }),
3193
- !c.has("skip-report") && /* @__PURE__ */ e($a, { templateId: a }),
3194
- !c.has("ai-review") && /* @__PURE__ */ e(ts, { templateId: a }),
3195
- !c.has("versions") && /* @__PURE__ */ e(as, { templateId: a }),
3196
- !c.has("matrix-versions") && /* @__PURE__ */ e(Sa, { templateId: a })
3186
+ L && /* @__PURE__ */ e(fs, { onClose: () => M(!1) }),
3187
+ !c.has("simulator") && /* @__PURE__ */ e(os, { bindings: me }),
3188
+ !c.has("canvas") && /* @__PURE__ */ e(us, { templateId: a }),
3189
+ !c.has("flow-map") && /* @__PURE__ */ e(hs, { templateId: a }),
3190
+ !c.has("cumulative-flow") && /* @__PURE__ */ e(va, { templateId: a }),
3191
+ !c.has("replay") && /* @__PURE__ */ e(xs, { templateId: a }),
3192
+ !c.has("migration") && /* @__PURE__ */ e(ps, { templateId: a }),
3193
+ !c.has("lint") && /* @__PURE__ */ e($a, { templateId: a }),
3194
+ !c.has("coverage") && /* @__PURE__ */ e(ms, { templateId: a, states: ie }),
3195
+ !c.has("skip-report") && /* @__PURE__ */ e(Fa, { templateId: a }),
3196
+ !c.has("ai-review") && /* @__PURE__ */ e(as, { templateId: a }),
3197
+ !c.has("versions") && /* @__PURE__ */ e(ss, { templateId: a }),
3198
+ !c.has("matrix-versions") && /* @__PURE__ */ e(qa, { templateId: a })
3197
3199
  ] })
3198
3200
  ] });
3199
3201
  }
3200
- function ts({ templateId: a }) {
3202
+ function as({ templateId: a }) {
3201
3203
  const l = Z(), [d, x] = $(
3202
3204
  null
3203
3205
  ), o = z({
@@ -3240,7 +3242,7 @@ function ts({ templateId: a }) {
3240
3242
  ] })
3241
3243
  ] });
3242
3244
  }
3243
- function as({ templateId: a }) {
3245
+ function ss({ templateId: a }) {
3244
3246
  const l = Z(), d = ve(), [x, o] = $(null), [f, c] = $(null), { data: r, isFetching: u } = G({
3245
3247
  queryKey: ["pipeline-version-diff", a, f],
3246
3248
  queryFn: () => l.request(Y(`/pipelines/${a}/versions/${f}/diff`)).then((p) => p.data),
@@ -3280,7 +3282,7 @@ function as({ templateId: a }) {
3280
3282
  p.note ?? "—",
3281
3283
  (n = p.created_by_name) != null && n.trim() ? ` · ${p.created_by_name}` : ""
3282
3284
  ] }),
3283
- /* @__PURE__ */ e("span", { className: "shrink-0 text-[10.5px] text-slate-400", children: ba(p.created_at) }),
3285
+ /* @__PURE__ */ e("span", { className: "shrink-0 text-[10.5px] text-slate-400", children: ga(p.created_at) }),
3284
3286
  x === p.id ? /* @__PURE__ */ t("span", { className: "flex shrink-0 items-center gap-1.5", children: [
3285
3287
  /* @__PURE__ */ e(
3286
3288
  P,
@@ -3325,7 +3327,7 @@ function as({ templateId: a }) {
3325
3327
  ] })
3326
3328
  ] }, p.id);
3327
3329
  }) }),
3328
- f != null && /* @__PURE__ */ e("div", { className: "rounded-lg border border-slate-200 bg-slate-50 p-3 dark:border-border dark:bg-muted/30", children: u ? /* @__PURE__ */ e("p", { className: "text-[11.5px] text-slate-400", children: "Comparing…" }) : r ? /* @__PURE__ */ e(ss, { fromVersion: r.from_version, to: r.to, diff: r.diff }) : /* @__PURE__ */ e("p", { className: "text-[11.5px] text-slate-400", children: "Could not load the diff." }) }),
3330
+ f != null && /* @__PURE__ */ e("div", { className: "rounded-lg border border-slate-200 bg-slate-50 p-3 dark:border-border dark:bg-muted/30", children: u ? /* @__PURE__ */ e("p", { className: "text-[11.5px] text-slate-400", children: "Comparing…" }) : r ? /* @__PURE__ */ e(ns, { fromVersion: r.from_version, to: r.to, diff: r.diff }) : /* @__PURE__ */ e("p", { className: "text-[11.5px] text-slate-400", children: "Could not load the diff." }) }),
3329
3331
  /* @__PURE__ */ e("p", { className: "text-[10.5px] text-slate-400", children: "Restore snapshots the current config first, then upserts states/transitions/bindings by id — states are never deleted, and transitions with execution history are kept." })
3330
3332
  ] });
3331
3333
  }
@@ -3334,7 +3336,7 @@ function Ke(a) {
3334
3336
  const l = typeof a == "string" ? a : JSON.stringify(a);
3335
3337
  return l.length > 80 ? `${l.slice(0, 80)}…` : l;
3336
3338
  }
3337
- function ss({
3339
+ function ns({
3338
3340
  fromVersion: a,
3339
3341
  to: l,
3340
3342
  diff: d
@@ -3435,7 +3437,7 @@ function Ye({
3435
3437
  a.label
3436
3438
  ] }) : /* @__PURE__ */ e("span", { className: x, style: o, children: a.label });
3437
3439
  }
3438
- function ns({ value: a, onCommit: l }) {
3440
+ function ls({ value: a, onCommit: l }) {
3439
3441
  const [d, x] = $(a);
3440
3442
  return ue(() => x(a), [a]), /* @__PURE__ */ e(
3441
3443
  "input",
@@ -3454,7 +3456,7 @@ function ns({ value: a, onCommit: l }) {
3454
3456
  }
3455
3457
  );
3456
3458
  }
3457
- function ls({
3459
+ function rs({
3458
3460
  states: a,
3459
3461
  saving: l,
3460
3462
  onSave: d,
@@ -3522,7 +3524,7 @@ function ls({
3522
3524
  ] })
3523
3525
  ] });
3524
3526
  }
3525
- function rs({
3527
+ function is({
3526
3528
  templateId: a,
3527
3529
  states: l
3528
3530
  }) {
@@ -3623,7 +3625,7 @@ function rs({
3623
3625
  n.id
3624
3626
  )),
3625
3627
  o && /* @__PURE__ */ e(
3626
- ls,
3628
+ rs,
3627
3629
  {
3628
3630
  states: l,
3629
3631
  saving: m.isPending,
@@ -3633,7 +3635,7 @@ function rs({
3633
3635
  )
3634
3636
  ] });
3635
3637
  }
3636
- function is({ bindings: a }) {
3638
+ function os({ bindings: a }) {
3637
3639
  var b;
3638
3640
  const l = Z(), [d, x] = $(""), [o, f] = $(""), c = o || ((b = a[0]) == null ? void 0 : b.collection) || "", r = z({
3639
3641
  mutationFn: () => l.request(J("/pipelines/simulate", { collection: c, item_id: d.trim() })).then((h) => h.data),
@@ -3828,19 +3830,19 @@ function Wt({
3828
3830
  ] })
3829
3831
  ] });
3830
3832
  }
3831
- function os({
3833
+ function cs({
3832
3834
  templateId: a,
3833
3835
  cluster: l,
3834
3836
  onDone: d
3835
3837
  }) {
3836
3838
  var _, N;
3837
- const x = Z(), o = ve(), f = !!((_ = l.suggestion) != null && _.group_id) && l.suggestion.mismatched_filters.length === 0, c = Object.values(l.dims).filter(Boolean).join(" · ") || "New group", [r, u] = $(c), [b, h] = $([]), [m, p] = $([]), n = Ta(), { data: y } = G({
3839
+ const x = Z(), o = ve(), f = !!((_ = l.suggestion) != null && _.group_id) && l.suggestion.mismatched_filters.length === 0, c = Object.values(l.dims).filter(Boolean).join(" · ") || "New group", [r, u] = $(c), [b, h] = $([]), [m, p] = $([]), n = Da(), { data: y } = G({
3838
3840
  queryKey: ["user-groups-teams"],
3839
3841
  queryFn: () => x.request(Y("/user-groups")).then((C) => C.data),
3840
3842
  staleTime: 6e4
3841
3843
  }), q = (y ?? []).map((C) => ({
3842
3844
  ...C,
3843
- rank: Da(C.scopes, l.filters, n, l.collection)
3845
+ rank: Aa(C.scopes, l.filters, n, l.collection)
3844
3846
  })).sort(
3845
3847
  (C, D) => St(C.rank.tier) - St(D.rank.tier) || C.name.localeCompare(D.name, void 0, { sensitivity: "base" })
3846
3848
  ), v = z({
@@ -3936,7 +3938,7 @@ function os({
3936
3938
  ] })
3937
3939
  ] });
3938
3940
  }
3939
- function cs({ templateId: a, finding: l }) {
3941
+ function ds({ templateId: a, finding: l }) {
3940
3942
  const d = Z(), x = ve(), [o, f] = $(
3941
3943
  "idle"
3942
3944
  ), [c, r] = $([]), u = (v) => {
@@ -4132,7 +4134,7 @@ function cs({ templateId: a, finding: l }) {
4132
4134
  ] })
4133
4135
  ] });
4134
4136
  }
4135
- function ds({
4137
+ function ms({
4136
4138
  templateId: a,
4137
4139
  states: l
4138
4140
  }) {
@@ -4395,7 +4397,7 @@ function ds({
4395
4397
  "No group comes close — assigning creates one for this combination."
4396
4398
  ] }) }),
4397
4399
  u === L && /* @__PURE__ */ e(
4398
- os,
4400
+ cs,
4399
4401
  {
4400
4402
  templateId: a,
4401
4403
  cluster: E,
@@ -4425,7 +4427,7 @@ function ds({
4425
4427
  ] }),
4426
4428
  /* @__PURE__ */ e("div", { className: "max-h-96 divide-y divide-slate-100 overflow-y-auto px-3 dark:divide-border/60", children: _.map((g, i) => (
4427
4429
  // biome-ignore lint/suspicious/noArrayIndexKey: findings are positional
4428
- /* @__PURE__ */ e(cs, { templateId: a, finding: g }, i)
4430
+ /* @__PURE__ */ e(ds, { templateId: a, finding: g }, i)
4429
4431
  )) })
4430
4432
  ] })
4431
4433
  ] })
@@ -4444,7 +4446,7 @@ function Vt(a) {
4444
4446
  function Pt(a) {
4445
4447
  return a.replace(/[a-z_]+(?:\.[a-z_]+)+/g, (l) => Vt(l));
4446
4448
  }
4447
- function ms({ templateId: a }) {
4449
+ function ps({ templateId: a }) {
4448
4450
  const l = Z(), d = ve(), [x, o] = $(""), [f, c] = $(""), [r, u] = $(!1), { data: b } = G({
4449
4451
  queryKey: ["instance-distribution", a],
4450
4452
  queryFn: () => l.request(Y(`/pipelines/${a}/instance-distribution`)),
@@ -4528,9 +4530,9 @@ function ms({ templateId: a }) {
4528
4530
  n,
4529
4531
  " instance(s) to"
4530
4532
  ] }),
4531
- /* @__PURE__ */ t(va, { value: f || void 0, onValueChange: c, children: [
4532
- /* @__PURE__ */ e(Na, { className: "h-8 w-[220px] text-[12.5px]", children: /* @__PURE__ */ e(wa, { placeholder: "Pick a state…" }) }),
4533
- /* @__PURE__ */ e(ka, { children: m.filter((N) => String(N.id) !== x).map((N) => /* @__PURE__ */ e(_a, { value: N.id, children: N.label }, N.id)) })
4533
+ /* @__PURE__ */ t(Na, { value: f || void 0, onValueChange: c, children: [
4534
+ /* @__PURE__ */ e(wa, { className: "h-8 w-[220px] text-[12.5px]", children: /* @__PURE__ */ e(ka, { placeholder: "Pick a state…" }) }),
4535
+ /* @__PURE__ */ e(_a, { children: m.filter((N) => String(N.id) !== x).map((N) => /* @__PURE__ */ e(Ca, { value: N.id, children: N.label }, N.id)) })
4534
4536
  ] }),
4535
4537
  f && !r && /* @__PURE__ */ e(P, { size: "sm", className: "h-8 text-[12.5px]", onClick: () => u(!0), children: "Migrate…" }),
4536
4538
  f && r && /* @__PURE__ */ t("span", { className: "flex items-center gap-2 rounded-md border border-amber-300 bg-amber-50 px-2.5 py-1 dark:border-amber-500/40 dark:bg-amber-400/10", children: [
@@ -4561,7 +4563,7 @@ function ms({ templateId: a }) {
4561
4563
  ] })
4562
4564
  ] });
4563
4565
  }
4564
- function ps({ templateId: a }) {
4566
+ function us({ templateId: a }) {
4565
4567
  const l = Z(), [d, x] = $(
4566
4568
  null
4567
4569
  ), [o, f] = $(() => {
@@ -4858,7 +4860,7 @@ function ps({ templateId: a }) {
4858
4860
  ] })
4859
4861
  ] });
4860
4862
  }
4861
- function us({ templateId: a }) {
4863
+ function hs({ templateId: a }) {
4862
4864
  var j, O;
4863
4865
  const l = Z(), [d, x] = $(90), [o, f] = $(null), { data: c } = G({
4864
4866
  queryKey: ["flow-map", a, d],
@@ -4886,25 +4888,25 @@ function us({ templateId: a }) {
4886
4888
  const te = xe + 8, ae = Re - xe - 8, ce = (te + ae) / 2, de = `M ${te} ${M} C ${ce} ${M}, ${ce} ${Q}, ${ae} ${Q} L ${ae} ${Q + L} C ${ce} ${Q + L}, ${ce} ${M + B}, ${te} ${M + B} Z`;
4887
4889
  return { f: g, path: de };
4888
4890
  }), D = new Map(r.map((g) => [g.id, g]));
4889
- return r.length === 0 ? null : /* @__PURE__ */ t("div", { className: "rounded-xl border border-slate-200 bg-white p-6 space-y-4", children: [
4891
+ return r.length === 0 ? null : /* @__PURE__ */ t("div", { className: "rounded-xl border border-slate-200 bg-white p-6 space-y-4 dark:border-border dark:bg-card", children: [
4890
4892
  /* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
4891
4893
  /* @__PURE__ */ t("div", { children: [
4892
- /* @__PURE__ */ e("h2", { className: "text-[13px] font-semibold text-slate-800", children: "Flow Map" }),
4893
- /* @__PURE__ */ t("p", { className: "text-[12px] text-slate-400", children: [
4894
+ /* @__PURE__ */ e("h2", { className: "text-[13px] font-semibold text-slate-800 dark:text-foreground", children: "Flow Map" }),
4895
+ /* @__PURE__ */ t("p", { className: "text-[12px] text-slate-500 dark:text-muted-foreground", children: [
4894
4896
  b.toLocaleString(),
4895
4897
  " transitions in the last ",
4896
4898
  d,
4897
4899
  " days — red ribbons are send-backs."
4898
4900
  ] })
4899
4901
  ] }),
4900
- /* @__PURE__ */ e("div", { className: "flex items-center rounded-lg border border-slate-200 p-0.5", children: [30, 90, 365].map((g) => /* @__PURE__ */ t(
4902
+ /* @__PURE__ */ e("div", { className: "flex items-center rounded-lg border border-slate-200 p-0.5 dark:border-border", children: [30, 90, 365].map((g) => /* @__PURE__ */ t(
4901
4903
  "button",
4902
4904
  {
4903
4905
  type: "button",
4904
4906
  onClick: () => x(g),
4905
4907
  className: I(
4906
4908
  "h-6 rounded-md px-2 text-[11px] font-medium",
4907
- d === g ? "bg-slate-900 text-white" : "text-slate-400 hover:text-slate-700"
4909
+ d === g ? "bg-slate-900 text-white dark:bg-nvr-cyan dark:text-[#172940]" : "text-slate-500 hover:text-slate-700 dark:text-muted-foreground dark:hover:text-foreground"
4908
4910
  ),
4909
4911
  children: [
4910
4912
  g,
@@ -4961,7 +4963,7 @@ function us({ templateId: a }) {
4961
4963
  x: xe - 8,
4962
4964
  y: i.y + i.h / 2 + 3,
4963
4965
  textAnchor: "end",
4964
- className: "fill-slate-700 text-[10.5px] font-medium",
4966
+ className: "fill-slate-700 text-[10.5px] font-medium dark:fill-slate-200",
4965
4967
  children: (((E = D.get(g)) == null ? void 0 : E.label) ?? "").slice(0, 32)
4966
4968
  }
4967
4969
  )
@@ -4998,7 +5000,7 @@ function us({ templateId: a }) {
4998
5000
  {
4999
5001
  x: Re - xe + 8,
5000
5002
  y: i.y + i.h / 2 + 3,
5001
- className: "fill-slate-700 text-[10.5px] font-medium",
5003
+ className: "fill-slate-700 text-[10.5px] font-medium dark:fill-slate-200",
5002
5004
  children: (((E = D.get(g)) == null ? void 0 : E.label) ?? "").slice(0, 32)
5003
5005
  }
5004
5006
  )
@@ -5019,7 +5021,7 @@ function us({ templateId: a }) {
5019
5021
  ] })
5020
5022
  ] });
5021
5023
  }
5022
- function hs({ templateId: a }) {
5024
+ function xs({ templateId: a }) {
5023
5025
  const l = Z(), [d, x] = $(90), [o, f] = $(0), [c, r] = $(!1), [u, b] = $(!0), { data: h } = G({
5024
5026
  queryKey: ["pipeline-replay", a, d],
5025
5027
  queryFn: () => l.request(Y(`/pipelines/${a}/replay`, { days: d })).then((_) => _.data),
@@ -5149,7 +5151,7 @@ function hs({ templateId: a }) {
5149
5151
  ] })
5150
5152
  ] });
5151
5153
  }
5152
- function xs({ onClose: a }) {
5154
+ function fs({ onClose: a }) {
5153
5155
  return ue(() => {
5154
5156
  const l = (d) => {
5155
5157
  d.key === "Escape" && a();
@@ -5181,15 +5183,15 @@ function xs({ onClose: a }) {
5181
5183
  }
5182
5184
  )
5183
5185
  ] }),
5184
- /* @__PURE__ */ e("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ e(Pa, { compact: !0 }) })
5186
+ /* @__PURE__ */ e("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ e(Ta, { compact: !0 }) })
5185
5187
  ] })
5186
5188
  ] }),
5187
5189
  document.body
5188
5190
  );
5189
5191
  }
5190
5192
  export {
5191
- ts as AiReviewCard,
5192
- ds as OwnerGapsCard,
5193
- Us as PipelineEditorView,
5194
- is as PipelineSimulatorCard
5193
+ as as AiReviewCard,
5194
+ ms as OwnerGapsCard,
5195
+ Ys as PipelineEditorView,
5196
+ os as PipelineSimulatorCard
5195
5197
  };