@locusgraph/loop 0.1.0 → 0.2.0

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 (115) hide show
  1. package/README.md +2 -0
  2. package/dist/agent/pulse/gradient-label.js +86 -15
  3. package/dist/agent/pulse/marks/bars-mark.js +46 -10
  4. package/dist/agent/pulse/marks/glyph-mark.js +56 -11
  5. package/dist/agent/pulse/marks/locus-mark.js +63 -28
  6. package/dist/agent/pulse/marks/orb-mark.js +31 -8
  7. package/dist/agent/pulse/marks/spinner-mark.js +29 -1
  8. package/dist/agent/pulse/pulse.js +150 -35
  9. package/dist/agent/pulse/use-loop-animation.js +36 -17
  10. package/dist/agent/steps/step-icon.js +110 -24
  11. package/dist/agent/steps/steps.js +235 -25
  12. package/dist/agent/thinking/thinking.js +203 -23
  13. package/dist/agent/thinking/thought-duration.js +7 -9
  14. package/dist/agent/tool/json-block.js +38 -11
  15. package/dist/agent/tool/tool-status.js +51 -18
  16. package/dist/agent/tool/tool.js +184 -6
  17. package/dist/approval/inbox/inbox-row.d.ts +3 -2
  18. package/dist/approval/inbox/inbox-row.js +321 -7
  19. package/dist/approval/inbox/inbox-selection.js +7 -13
  20. package/dist/approval/inbox/inbox.d.ts +2 -1
  21. package/dist/approval/inbox/inbox.js +250 -18
  22. package/dist/approval/inbox/virtual-inbox-list.d.ts +13 -0
  23. package/dist/approval/inbox/virtual-inbox-list.js +129 -0
  24. package/dist/approval/memory/memory-choices.js +27 -22
  25. package/dist/approval/memory/memory-review.js +242 -17
  26. package/dist/approval/memory/memory-row.js +215 -19
  27. package/dist/approval/plan/plan-review.js +279 -28
  28. package/dist/approval/plan/plan-step-row.js +194 -43
  29. package/dist/approval/plan/plan-steps.js +24 -23
  30. package/dist/approval/plan/question-choices.js +158 -39
  31. package/dist/approval/plan/question.d.ts +1 -1
  32. package/dist/approval/plan/question.js +223 -26
  33. package/dist/approval/run/run-bar.js +178 -22
  34. package/dist/approval/shared/decision-line.js +1 -1
  35. package/dist/approval/shared/risk-badge.js +47 -16
  36. package/dist/approval/shared/time.js +5 -8
  37. package/dist/approval/shared/use-focus-on-mount.js +23 -6
  38. package/dist/approval/spend/raise-cap-form.js +235 -17
  39. package/dist/approval/spend/spend-gate.js +239 -21
  40. package/dist/approval/spend/spend-math.js +7 -8
  41. package/dist/approval/spend/spend-meter.js +362 -34
  42. package/dist/approval/tool/approval.js +272 -27
  43. package/dist/approval/tool/args/args-editor.js +262 -26
  44. package/dist/approval/tool/args/args-field.js +259 -19
  45. package/dist/approval/tool/args/args-validation.js +38 -47
  46. package/dist/approval/tool/deny-form.js +130 -10
  47. package/dist/approval/tool/tool-inputs.js +127 -38
  48. package/dist/chat/chat/chat-item-spacing.d.ts +3 -0
  49. package/dist/chat/chat/chat-item-spacing.js +19 -0
  50. package/dist/chat/chat/chat.d.ts +2 -1
  51. package/dist/chat/chat/chat.js +181 -5
  52. package/dist/chat/chat/use-stick-to-bottom.js +123 -47
  53. package/dist/chat/chat/virtual-chat-items.d.ts +8 -0
  54. package/dist/chat/chat/virtual-chat-items.js +153 -0
  55. package/dist/chat/composer/composer-actions.js +151 -16
  56. package/dist/chat/composer/composer.js +330 -32
  57. package/dist/chat/composer/use-auto-grow.js +24 -9
  58. package/dist/chat/files/file-meta.js +19 -19
  59. package/dist/chat/files/files.js +316 -28
  60. package/dist/chat/reply/fenced-code.js +45 -21
  61. package/dist/chat/reply/markdown-components.js +137 -17
  62. package/dist/chat/reply/reply.js +105 -10
  63. package/dist/chat/turn/group-parts.js +43 -29
  64. package/dist/chat/turn/turn.js +238 -30
  65. package/dist/cost/context.js +321 -23
  66. package/dist/cost/cost-steps.js +220 -14
  67. package/dist/cost/cost.js +521 -27
  68. package/dist/cost/model-picker.js +181 -6
  69. package/dist/cost/shared/context-breakdown.js +299 -10
  70. package/dist/cost/shared/meter-marks.js +107 -9
  71. package/dist/cost/shared/model-option-row.js +178 -21
  72. package/dist/cost/shared/step-cost-row.js +248 -20
  73. package/dist/cost/shared/usage-totals.js +22 -18
  74. package/dist/memory/cite.js +182 -11
  75. package/dist/memory/memorized.js +217 -11
  76. package/dist/memory/recall.js +296 -17
  77. package/dist/memory/shared/host-label.js +19 -22
  78. package/dist/memory/shared/source-mark.js +39 -3
  79. package/dist/memory/sources.js +255 -13
  80. package/dist/shared/decision-summary.js +133 -14
  81. package/dist/shared/panel-empty.js +78 -3
  82. package/dist/shared/panel.js +243 -13
  83. package/dist/shared/status-dot.js +38 -8
  84. package/dist/shared/virtual/use-list-virtualizer.d.ts +24 -0
  85. package/dist/shared/virtual/use-list-virtualizer.js +68 -0
  86. package/dist/thread/actions/action-button.js +65 -3
  87. package/dist/thread/actions/actions.js +184 -13
  88. package/dist/thread/actions/branch-switcher.js +102 -5
  89. package/dist/thread/canvas/canvas.js +205 -5
  90. package/dist/thread/canvas/version-switcher.js +149 -8
  91. package/dist/thread/code/code.js +186 -24
  92. package/dist/thread/code/copy-code-button.js +61 -13
  93. package/dist/thread/code/highlight.js +30 -29
  94. package/dist/thread/history/history-rows.d.ts +16 -0
  95. package/dist/thread/history/history-rows.js +23 -0
  96. package/dist/thread/history/history.d.ts +3 -2
  97. package/dist/thread/history/history.js +174 -5
  98. package/dist/thread/history/{history-row.d.ts → row/history-row.d.ts} +3 -2
  99. package/dist/thread/history/row/history-row.js +137 -0
  100. package/dist/thread/history/row/thread-item-menu.js +84 -0
  101. package/dist/thread/history/row/thread-title-editor.js +81 -0
  102. package/dist/thread/history/thread-groups.d.ts +1 -1
  103. package/dist/thread/history/thread-groups.js +40 -34
  104. package/dist/thread/history/virtual-history-list.d.ts +11 -0
  105. package/dist/thread/history/virtual-history-list.js +107 -0
  106. package/dist/thread/index.d.ts +1 -1
  107. package/dist/thread/starters/starters.js +92 -7
  108. package/dist/thread/use-copied.js +45 -15
  109. package/dist/types.js +1 -1
  110. package/package.json +6 -4
  111. package/dist/thread/history/history-row.js +0 -17
  112. package/dist/thread/history/thread-item-menu.js +0 -6
  113. package/dist/thread/history/thread-title-editor.js +0 -25
  114. /package/dist/thread/history/{thread-item-menu.d.ts → row/thread-item-menu.d.ts} +0 -0
  115. /package/dist/thread/history/{thread-title-editor.d.ts → row/thread-title-editor.d.ts} +0 -0
@@ -1,21 +1,40 @@
1
+ import { c as _c } from "react/compiler-runtime";
1
2
  import { useEffect, useRef } from "react";
2
3
  export function prefersReducedMotion() {
3
- return (typeof window !== "undefined" &&
4
- window.matchMedia?.("(prefers-reduced-motion: reduce)").matches === true);
4
+ return typeof window !== "undefined" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches === true;
5
5
  }
6
- export function useLoopAnimation(keyframes, duration, delay = 0, easing = "ease-in-out") {
7
- const ref = useRef(null);
8
- useEffect(() => {
9
- const element = ref.current;
10
- if (!element || typeof element.animate !== "function" || prefersReducedMotion())
11
- return;
12
- const animation = element.animate(keyframes, {
13
- duration,
14
- delay,
15
- easing,
16
- iterations: Number.POSITIVE_INFINITY,
17
- });
18
- return () => animation.cancel();
19
- }, [keyframes, duration, delay, easing]);
20
- return ref;
6
+ export function useLoopAnimation(keyframes, duration, t0, t1) {
7
+ const $ = _c(6);
8
+ const delay = t0 === undefined ? 0 : t0;
9
+ const easing = t1 === undefined ? "ease-in-out" : t1;
10
+ const ref = useRef(null);
11
+ let t2;
12
+ let t3;
13
+ if ($[0] !== delay || $[1] !== duration || $[2] !== easing || $[3] !== keyframes) {
14
+ t2 = () => {
15
+ const element = ref.current;
16
+ if (!element || typeof element.animate !== "function" || prefersReducedMotion()) {
17
+ return;
18
+ }
19
+ const animation = element.animate(keyframes, {
20
+ duration,
21
+ delay,
22
+ easing,
23
+ iterations: Number.POSITIVE_INFINITY
24
+ });
25
+ return () => animation.cancel();
26
+ };
27
+ t3 = [keyframes, duration, delay, easing];
28
+ $[0] = delay;
29
+ $[1] = duration;
30
+ $[2] = easing;
31
+ $[3] = keyframes;
32
+ $[4] = t2;
33
+ $[5] = t3;
34
+ } else {
35
+ t2 = $[4];
36
+ t3 = $[5];
37
+ }
38
+ useEffect(t2, t3);
39
+ return ref;
21
40
  }
@@ -1,31 +1,117 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Checkmark as CheckIcon, InProgress as LoaderCircleIcon, Subtract as MinusIcon, Close as XIcon, } from "@carbon/icons-react";
1
+ import { c as _c } from "react/compiler-runtime";
2
+ import { Checkmark as CheckIcon, InProgress as LoaderCircleIcon, Subtract as MinusIcon, Close as XIcon } from "@carbon/icons-react";
3
3
  import { cn } from "@locusgraph/components";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
4
5
  export const stepStatusLabels = {
5
- pending: "Pending",
6
- running: "Running",
7
- done: "Done",
8
- failed: "Failed",
9
- skipped: "Skipped",
6
+ pending: "Pending",
7
+ running: "Running",
8
+ done: "Done",
9
+ failed: "Failed",
10
+ skipped: "Skipped"
10
11
  };
11
12
  const stepIconFrames = {
12
- pending: "bg-card ring-1 ring-muted-foreground/40 ring-inset",
13
- running: "bg-card text-warn",
14
- done: "bg-good text-white dark:text-background",
15
- failed: "bg-destructive text-white",
16
- skipped: "bg-muted text-muted-foreground",
13
+ pending: "bg-card ring-1 ring-muted-foreground/40 ring-inset",
14
+ running: "bg-card text-warn",
15
+ done: "bg-good text-white dark:text-background",
16
+ failed: "bg-destructive text-white",
17
+ skipped: "bg-muted text-muted-foreground"
17
18
  };
18
- function StepGlyph({ status }) {
19
- if (status === "running")
20
- return _jsx(LoaderCircleIcon, { className: "size-4 motion-safe:animate-spin" });
21
- if (status === "done")
22
- return _jsx(CheckIcon, { className: "size-2.5" });
23
- if (status === "failed")
24
- return _jsx(XIcon, { className: "size-2.5" });
25
- if (status === "skipped")
26
- return _jsx(MinusIcon, { className: "size-2.5" });
27
- return null;
19
+ function StepGlyph(t0) {
20
+ const $ = _c(4);
21
+ const {
22
+ status
23
+ } = t0;
24
+ if (status === "running") {
25
+ let t1;
26
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
27
+ t1 = /*#__PURE__*/_jsx(LoaderCircleIcon, {
28
+ className: "size-4 motion-safe:animate-spin"
29
+ });
30
+ $[0] = t1;
31
+ } else {
32
+ t1 = $[0];
33
+ }
34
+ return t1;
35
+ }
36
+ if (status === "done") {
37
+ let t1;
38
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
39
+ t1 = /*#__PURE__*/_jsx(CheckIcon, {
40
+ className: "size-2.5"
41
+ });
42
+ $[1] = t1;
43
+ } else {
44
+ t1 = $[1];
45
+ }
46
+ return t1;
47
+ }
48
+ if (status === "failed") {
49
+ let t1;
50
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
51
+ t1 = /*#__PURE__*/_jsx(XIcon, {
52
+ className: "size-2.5"
53
+ });
54
+ $[2] = t1;
55
+ } else {
56
+ t1 = $[2];
57
+ }
58
+ return t1;
59
+ }
60
+ if (status === "skipped") {
61
+ let t1;
62
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
63
+ t1 = /*#__PURE__*/_jsx(MinusIcon, {
64
+ className: "size-2.5"
65
+ });
66
+ $[3] = t1;
67
+ } else {
68
+ t1 = $[3];
69
+ }
70
+ return t1;
71
+ }
72
+ return null;
28
73
  }
29
- export function StepIcon({ status, current = false }) {
30
- return (_jsx("span", { "aria-hidden": true, "data-slot": "step-icon", className: cn("relative z-10 mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full", stepIconFrames[status], current && status === "pending" && "ring-foreground/60"), children: _jsx(StepGlyph, { status: status }) }));
74
+ export function StepIcon(t0) {
75
+ const $ = _c(8);
76
+ const {
77
+ status,
78
+ current: t1
79
+ } = t0;
80
+ const current = t1 === undefined ? false : t1;
81
+ const t2 = stepIconFrames[status];
82
+ const t3 = current && status === "pending" && "ring-foreground/60";
83
+ let t4;
84
+ if ($[0] !== t2 || $[1] !== t3) {
85
+ t4 = cn("relative z-10 mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full", t2, t3);
86
+ $[0] = t2;
87
+ $[1] = t3;
88
+ $[2] = t4;
89
+ } else {
90
+ t4 = $[2];
91
+ }
92
+ let t5;
93
+ if ($[3] !== status) {
94
+ t5 = /*#__PURE__*/_jsx(StepGlyph, {
95
+ status: status
96
+ });
97
+ $[3] = status;
98
+ $[4] = t5;
99
+ } else {
100
+ t5 = $[4];
101
+ }
102
+ let t6;
103
+ if ($[5] !== t4 || $[6] !== t5) {
104
+ t6 = /*#__PURE__*/_jsx("span", {
105
+ "aria-hidden": true,
106
+ "data-slot": "step-icon",
107
+ className: t4,
108
+ children: t5
109
+ });
110
+ $[5] = t4;
111
+ $[6] = t5;
112
+ $[7] = t6;
113
+ } else {
114
+ t6 = $[7];
115
+ }
116
+ return t6;
31
117
  }
@@ -1,39 +1,249 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { c as _c } from "react/compiler-runtime";
2
2
  import { ListChecked as ListChecksIcon } from "@carbon/icons-react";
3
3
  import { cn } from "@locusgraph/components";
4
4
  import { ApprovalPanel, PanelHeader } from "../../shared/panel.js";
5
5
  import { StepIcon, stepStatusLabels } from "./step-icon.js";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
7
  const stepTitleTones = {
7
- pending: "text-muted-foreground",
8
- running: "text-foreground font-medium",
9
- done: "text-foreground",
10
- failed: "text-foreground font-medium",
11
- skipped: "text-muted-foreground line-through",
8
+ pending: "text-muted-foreground",
9
+ running: "text-foreground font-medium",
10
+ done: "text-foreground",
11
+ failed: "text-foreground font-medium",
12
+ skipped: "text-muted-foreground line-through"
12
13
  };
13
14
  function currentStepId(steps) {
14
- const running = steps.find((step) => step.status === "running");
15
- if (running)
16
- return running.id;
17
- if (steps.some((step) => step.status === "failed"))
18
- return undefined;
19
- return steps.find((step) => step.status === "pending")?.id;
15
+ const running = steps.find(step => step.status === "running");
16
+ if (running) return running.id;
17
+ if (steps.some(step => step.status === "failed")) return undefined;
18
+ return steps.find(step => step.status === "pending")?.id;
20
19
  }
21
20
  function progressLabel(steps) {
22
- const done = steps.filter((step) => step.status === "done").length;
23
- return `${done} of ${steps.length} done`;
21
+ const done = steps.filter(step => step.status === "done").length;
22
+ return `${done} of ${steps.length} done`;
24
23
  }
25
24
  function progressTone(steps) {
26
- if (steps.some((step) => step.status === "failed"))
27
- return "danger";
28
- if (steps.some((step) => step.status === "running"))
29
- return "waiting";
30
- const settled = steps.every((step) => step.status === "done" || step.status === "skipped");
31
- return steps.length > 0 && settled ? "done" : "idle";
25
+ if (steps.some(step => step.status === "failed")) return "danger";
26
+ if (steps.some(step => step.status === "running")) return "waiting";
27
+ const settled = steps.every(step => step.status === "done" || step.status === "skipped");
28
+ return steps.length > 0 && settled ? "done" : "idle";
32
29
  }
33
- function StepRow({ step, current, last }) {
34
- return (_jsxs("li", { "data-slot": "step", "data-status": step.status, "aria-current": current ? "step" : undefined, className: "relative flex gap-3 pb-4 last:pb-0", children: [!last && (_jsx("span", { "aria-hidden": true, className: "absolute top-5 bottom-0.5 left-[7.5px] w-px bg-border" })), _jsx(StepIcon, { status: step.status, current: current }), _jsxs("div", { className: "flex min-w-0 flex-col gap-0.5", children: [_jsxs("span", { className: cn("text-sm leading-snug", stepTitleTones[step.status], current && step.status === "pending" && "text-foreground"), children: [step.title, _jsxs("span", { className: "sr-only", children: [" (", stepStatusLabels[step.status], ")"] })] }), step.detail && (_jsx("span", { className: cn("font-mono text-xs text-muted-foreground", step.status === "failed" && "font-sans text-destructive"), children: step.detail }))] })] }));
30
+ function StepRow(t0) {
31
+ const $ = _c(26);
32
+ const {
33
+ step,
34
+ current,
35
+ last
36
+ } = t0;
37
+ const t1 = step.status;
38
+ const t2 = current ? "step" : undefined;
39
+ let t3;
40
+ if ($[0] !== last) {
41
+ t3 = !last && /*#__PURE__*/_jsx("span", {
42
+ "aria-hidden": true,
43
+ className: "absolute top-5 bottom-0.5 left-[7.5px] w-px bg-border"
44
+ });
45
+ $[0] = last;
46
+ $[1] = t3;
47
+ } else {
48
+ t3 = $[1];
49
+ }
50
+ let t4;
51
+ if ($[2] !== current || $[3] !== step.status) {
52
+ t4 = /*#__PURE__*/_jsx(StepIcon, {
53
+ status: step.status,
54
+ current: current
55
+ });
56
+ $[2] = current;
57
+ $[3] = step.status;
58
+ $[4] = t4;
59
+ } else {
60
+ t4 = $[4];
61
+ }
62
+ const t5 = stepTitleTones[step.status];
63
+ const t6 = current && step.status === "pending" && "text-foreground";
64
+ let t7;
65
+ if ($[5] !== t5 || $[6] !== t6) {
66
+ t7 = cn("text-sm leading-snug", t5, t6);
67
+ $[5] = t5;
68
+ $[6] = t6;
69
+ $[7] = t7;
70
+ } else {
71
+ t7 = $[7];
72
+ }
73
+ const t8 = stepStatusLabels[step.status];
74
+ let t9;
75
+ if ($[8] !== t8) {
76
+ t9 = /*#__PURE__*/_jsxs("span", {
77
+ className: "sr-only",
78
+ children: [" (", t8, ")"]
79
+ });
80
+ $[8] = t8;
81
+ $[9] = t9;
82
+ } else {
83
+ t9 = $[9];
84
+ }
85
+ let t10;
86
+ if ($[10] !== step.title || $[11] !== t7 || $[12] !== t9) {
87
+ t10 = /*#__PURE__*/_jsxs("span", {
88
+ className: t7,
89
+ children: [step.title, t9]
90
+ });
91
+ $[10] = step.title;
92
+ $[11] = t7;
93
+ $[12] = t9;
94
+ $[13] = t10;
95
+ } else {
96
+ t10 = $[13];
97
+ }
98
+ let t11;
99
+ if ($[14] !== step.detail || $[15] !== step.status) {
100
+ t11 = step.detail && /*#__PURE__*/_jsx("span", {
101
+ className: cn("font-mono text-xs text-muted-foreground", step.status === "failed" && "font-sans text-destructive"),
102
+ children: step.detail
103
+ });
104
+ $[14] = step.detail;
105
+ $[15] = step.status;
106
+ $[16] = t11;
107
+ } else {
108
+ t11 = $[16];
109
+ }
110
+ let t12;
111
+ if ($[17] !== t10 || $[18] !== t11) {
112
+ t12 = /*#__PURE__*/_jsxs("div", {
113
+ className: "flex min-w-0 flex-col gap-0.5",
114
+ children: [t10, t11]
115
+ });
116
+ $[17] = t10;
117
+ $[18] = t11;
118
+ $[19] = t12;
119
+ } else {
120
+ t12 = $[19];
121
+ }
122
+ let t13;
123
+ if ($[20] !== step.status || $[21] !== t12 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4) {
124
+ t13 = /*#__PURE__*/_jsxs("li", {
125
+ "data-slot": "step",
126
+ "data-status": t1,
127
+ "aria-current": t2,
128
+ className: "relative flex gap-3 pb-4 last:pb-0",
129
+ children: [t3, t4, t12]
130
+ });
131
+ $[20] = step.status;
132
+ $[21] = t12;
133
+ $[22] = t2;
134
+ $[23] = t3;
135
+ $[24] = t4;
136
+ $[25] = t13;
137
+ } else {
138
+ t13 = $[25];
139
+ }
140
+ return t13;
35
141
  }
36
- export function Steps({ steps, title = "Plan", className }) {
37
- const currentId = currentStepId(steps);
38
- return (_jsxs(ApprovalPanel, { "data-slot": "steps", "aria-label": title, className: className, children: [_jsx(PanelHeader, { icon: _jsx(ListChecksIcon, { "aria-hidden": true }), eyebrow: title, status: progressLabel(steps), tone: progressTone(steps) }), _jsx("ol", { className: "flex flex-col px-5 pt-4 pb-5", children: steps.map((step, position) => (_jsx(StepRow, { step: step, current: step.id === currentId, last: position === steps.length - 1 }, step.id))) })] }));
142
+ export function Steps(t0) {
143
+ const $ = _c(24);
144
+ const {
145
+ steps,
146
+ title: t1,
147
+ className
148
+ } = t0;
149
+ const title = t1 === undefined ? "Plan" : t1;
150
+ let t2;
151
+ if ($[0] !== steps) {
152
+ t2 = currentStepId(steps);
153
+ $[0] = steps;
154
+ $[1] = t2;
155
+ } else {
156
+ t2 = $[1];
157
+ }
158
+ const currentId = t2;
159
+ let t3;
160
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
161
+ t3 = /*#__PURE__*/_jsx(ListChecksIcon, {
162
+ "aria-hidden": true
163
+ });
164
+ $[2] = t3;
165
+ } else {
166
+ t3 = $[2];
167
+ }
168
+ let t4;
169
+ if ($[3] !== steps) {
170
+ t4 = progressLabel(steps);
171
+ $[3] = steps;
172
+ $[4] = t4;
173
+ } else {
174
+ t4 = $[4];
175
+ }
176
+ let t5;
177
+ if ($[5] !== steps) {
178
+ t5 = progressTone(steps);
179
+ $[5] = steps;
180
+ $[6] = t5;
181
+ } else {
182
+ t5 = $[6];
183
+ }
184
+ let t6;
185
+ if ($[7] !== t4 || $[8] !== t5 || $[9] !== title) {
186
+ t6 = /*#__PURE__*/_jsx(PanelHeader, {
187
+ icon: t3,
188
+ eyebrow: title,
189
+ status: t4,
190
+ tone: t5
191
+ });
192
+ $[7] = t4;
193
+ $[8] = t5;
194
+ $[9] = title;
195
+ $[10] = t6;
196
+ } else {
197
+ t6 = $[10];
198
+ }
199
+ let t7;
200
+ if ($[11] !== currentId || $[12] !== steps) {
201
+ let t8;
202
+ if ($[14] !== currentId || $[15] !== steps.length) {
203
+ t8 = (step, position) => /*#__PURE__*/_jsx(StepRow, {
204
+ step: step,
205
+ current: step.id === currentId,
206
+ last: position === steps.length - 1
207
+ }, step.id);
208
+ $[14] = currentId;
209
+ $[15] = steps.length;
210
+ $[16] = t8;
211
+ } else {
212
+ t8 = $[16];
213
+ }
214
+ t7 = steps.map(t8);
215
+ $[11] = currentId;
216
+ $[12] = steps;
217
+ $[13] = t7;
218
+ } else {
219
+ t7 = $[13];
220
+ }
221
+ let t8;
222
+ if ($[17] !== t7) {
223
+ t8 = /*#__PURE__*/_jsx("ol", {
224
+ className: "flex flex-col px-5 pt-4 pb-5",
225
+ children: t7
226
+ });
227
+ $[17] = t7;
228
+ $[18] = t8;
229
+ } else {
230
+ t8 = $[18];
231
+ }
232
+ let t9;
233
+ if ($[19] !== className || $[20] !== t6 || $[21] !== t8 || $[22] !== title) {
234
+ t9 = /*#__PURE__*/_jsxs(ApprovalPanel, {
235
+ "data-slot": "steps",
236
+ "aria-label": title,
237
+ className: className,
238
+ children: [t6, t8]
239
+ });
240
+ $[19] = className;
241
+ $[20] = t6;
242
+ $[21] = t8;
243
+ $[22] = title;
244
+ $[23] = t9;
245
+ } else {
246
+ t9 = $[23];
247
+ }
248
+ return t9;
39
249
  }