@locusgraph/loop 0.2.0 → 0.3.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 (75) hide show
  1. package/dist/agent/pulse/gradient-label.js +12 -62
  2. package/dist/agent/pulse/marks/bars-mark.js +15 -37
  3. package/dist/agent/pulse/marks/glyph-mark.js +15 -54
  4. package/dist/agent/pulse/marks/locus-mark.js +12 -36
  5. package/dist/agent/pulse/marks/orb-mark.js +9 -19
  6. package/dist/agent/pulse/marks/spinner-mark.js +20 -29
  7. package/dist/agent/pulse/pulse.js +36 -123
  8. package/dist/agent/pulse/use-loop-animation.js +12 -33
  9. package/dist/agent/steps/step-icon.js +26 -96
  10. package/dist/agent/steps/steps.js +47 -210
  11. package/dist/agent/thinking/thinking.js +2 -2
  12. package/dist/agent/tool/json-block.js +11 -31
  13. package/dist/agent/tool/tool-status.js +12 -35
  14. package/dist/approval/inbox/inbox-row.js +76 -301
  15. package/dist/approval/inbox/inbox.js +39 -190
  16. package/dist/approval/inbox/virtual-inbox-list.js +26 -102
  17. package/dist/approval/memory/memory-review.js +36 -170
  18. package/dist/approval/memory/memory-row.js +50 -185
  19. package/dist/approval/plan/plan-review.js +73 -223
  20. package/dist/approval/plan/plan-step-row.js +76 -180
  21. package/dist/approval/plan/question-choices.js +44 -130
  22. package/dist/approval/plan/question.js +38 -154
  23. package/dist/approval/run/run-bar.js +39 -123
  24. package/dist/approval/shared/risk-badge.js +9 -24
  25. package/dist/approval/shared/use-focus-on-mount.js +5 -21
  26. package/dist/approval/spend/raise-cap-form.js +48 -221
  27. package/dist/approval/spend/spend-gate.js +40 -155
  28. package/dist/approval/spend/spend-meter.js +86 -313
  29. package/dist/approval/tool/approval.js +35 -194
  30. package/dist/approval/tool/args/args-editor.js +46 -204
  31. package/dist/approval/tool/args/args-field.js +55 -238
  32. package/dist/approval/tool/deny-form.js +36 -123
  33. package/dist/approval/tool/tool-inputs.js +24 -89
  34. package/dist/chat/chat/use-stick-to-bottom.js +60 -113
  35. package/dist/chat/chat/virtual-chat-items.js +34 -127
  36. package/dist/chat/composer/composer-actions.js +46 -129
  37. package/dist/chat/composer/use-auto-grow.js +8 -23
  38. package/dist/chat/files/files.js +66 -291
  39. package/dist/chat/reply/fenced-code.js +10 -32
  40. package/dist/chat/reply/markdown-components.js +2 -2
  41. package/dist/chat/reply/reply.js +24 -99
  42. package/dist/chat/turn/turn.js +46 -197
  43. package/dist/cost/context.js +65 -282
  44. package/dist/cost/cost-steps.js +42 -195
  45. package/dist/cost/cost.js +108 -497
  46. package/dist/cost/model-picker.js +42 -172
  47. package/dist/cost/shared/context-breakdown.js +65 -281
  48. package/dist/cost/shared/meter-marks.js +34 -92
  49. package/dist/cost/shared/model-option-row.js +35 -158
  50. package/dist/cost/shared/step-cost-row.js +37 -222
  51. package/dist/memory/cite.js +58 -179
  52. package/dist/memory/memorized.js +43 -195
  53. package/dist/memory/recall.js +68 -263
  54. package/dist/memory/shared/disclosure.d.ts +2 -2
  55. package/dist/memory/shared/disclosure.js +1 -1
  56. package/dist/memory/shared/source-mark.js +10 -38
  57. package/dist/memory/sources.js +52 -230
  58. package/dist/shared/decision-summary.js +35 -117
  59. package/dist/shared/panel-empty.js +15 -73
  60. package/dist/shared/panel.js +65 -239
  61. package/dist/shared/status-dot.js +10 -32
  62. package/dist/thread/actions/action-button.js +10 -53
  63. package/dist/thread/actions/branch-switcher.js +21 -95
  64. package/dist/thread/canvas/canvas.js +1 -1
  65. package/dist/thread/canvas/version-switcher.js +31 -126
  66. package/dist/thread/code/code.js +2 -2
  67. package/dist/thread/code/copy-code-button.js +24 -56
  68. package/dist/thread/history/history.js +1 -1
  69. package/dist/thread/history/row/history-row.js +18 -97
  70. package/dist/thread/history/row/thread-item-menu.js +19 -72
  71. package/dist/thread/history/row/thread-title-editor.js +29 -72
  72. package/dist/thread/history/virtual-history-list.js +46 -82
  73. package/dist/thread/starters/starters.js +27 -87
  74. package/dist/thread/use-copied.js +10 -38
  75. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
- import { c as _c } from "react/compiler-runtime";
2
1
  import { ChevronRight as ChevronRightIcon } from "@carbon/icons-react";
3
2
  import { Collapsible, CollapsibleContent, CollapsibleTrigger, cn } from "@locusgraph/components";
4
3
  import { pluralize } from "@locusgraph/utils";
@@ -7,258 +6,81 @@ import { hostLabel, sourceKey, toCitation } from "./shared/host-label.js";
7
6
  import { SourceMark } from "./shared/source-mark.js";
8
7
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
9
8
  const stackedMarkLimit = 3;
10
- export function Sources(t0) {
11
- const $ = _c(35);
12
- const {
13
- sources,
14
- onOpen,
15
- defaultOpen: t1,
16
- className
17
- } = t0;
18
- const defaultOpen = t1 === undefined ? false : t1;
19
- if (sources.length === 0) {
20
- return null;
21
- }
22
- let T0;
23
- let T1;
24
- let t2;
25
- let t3;
26
- let t4;
27
- let t5;
28
- let t6;
29
- let t7;
30
- if ($[0] !== className || $[1] !== defaultOpen || $[2] !== onOpen || $[3] !== sources) {
31
- const citations = sources.map(toCitation);
32
- T1 = Collapsible;
33
- t4 = "sources";
34
- t5 = defaultOpen;
35
- if ($[12] !== className) {
36
- t6 = cn("flex min-w-0 flex-col gap-2", className);
37
- $[12] = className;
38
- $[13] = t6;
39
- } else {
40
- t6 = $[13];
41
- }
42
- let t8;
43
- if ($[14] !== sources) {
44
- t8 = (citation, position) => /*#__PURE__*/_jsx(SourceMark, {
45
- citation: citation,
46
- className: "ring-card"
47
- }, sourceKey(sources[position], position));
48
- $[14] = sources;
49
- $[15] = t8;
50
- } else {
51
- t8 = $[15];
52
- }
53
- let t9;
54
- if ($[16] !== sources.length) {
55
- t9 = pluralize(sources.length, "source");
56
- $[16] = sources.length;
57
- $[17] = t9;
58
- } else {
59
- t9 = $[17];
60
- }
61
- let t10;
62
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
63
- t10 = /*#__PURE__*/_jsx(ChevronRightIcon, {
64
- "aria-hidden": true,
65
- className: chevronClass
66
- });
67
- $[18] = t10;
68
- } else {
69
- t10 = $[18];
70
- }
71
- t7 = /*#__PURE__*/_jsxs(CollapsibleTrigger, {
9
+ export function Sources({
10
+ sources,
11
+ onOpen,
12
+ defaultOpen = false,
13
+ className
14
+ }) {
15
+ if (sources.length === 0) return null;
16
+ const citations = sources.map(toCitation);
17
+ return /*#__PURE__*/_jsxs(Collapsible, {
18
+ "data-slot": "sources",
19
+ defaultOpen: defaultOpen,
20
+ className: cn("flex min-w-0 flex-col gap-2", className),
21
+ children: [/*#__PURE__*/_jsxs(CollapsibleTrigger, {
72
22
  className: collapsibleTriggerClass,
73
23
  children: [/*#__PURE__*/_jsx("span", {
74
24
  "aria-hidden": true,
75
25
  className: "flex -space-x-1",
76
- children: citations.slice(0, stackedMarkLimit).map(t8)
77
- }), "Used ", t9, t10]
78
- });
79
- T0 = CollapsibleContent;
80
- t2 = ruledListClass;
81
- let t11;
82
- if ($[19] !== onOpen || $[20] !== sources) {
83
- t11 = (citation_0, position_0) => /*#__PURE__*/_jsx(SourceRow, {
84
- citation: citation_0,
85
- onOpen: onOpen
86
- }, sourceKey(sources[position_0], position_0));
87
- $[19] = onOpen;
88
- $[20] = sources;
89
- $[21] = t11;
90
- } else {
91
- t11 = $[21];
92
- }
93
- t3 = citations.map(t11);
94
- $[0] = className;
95
- $[1] = defaultOpen;
96
- $[2] = onOpen;
97
- $[3] = sources;
98
- $[4] = T0;
99
- $[5] = T1;
100
- $[6] = t2;
101
- $[7] = t3;
102
- $[8] = t4;
103
- $[9] = t5;
104
- $[10] = t6;
105
- $[11] = t7;
106
- } else {
107
- T0 = $[4];
108
- T1 = $[5];
109
- t2 = $[6];
110
- t3 = $[7];
111
- t4 = $[8];
112
- t5 = $[9];
113
- t6 = $[10];
114
- t7 = $[11];
115
- }
116
- let t8;
117
- if ($[22] !== t2 || $[23] !== t3) {
118
- t8 = /*#__PURE__*/_jsx("ol", {
119
- className: t2,
120
- children: t3
121
- });
122
- $[22] = t2;
123
- $[23] = t3;
124
- $[24] = t8;
125
- } else {
126
- t8 = $[24];
127
- }
128
- let t9;
129
- if ($[25] !== T0 || $[26] !== t8) {
130
- t9 = /*#__PURE__*/_jsx(T0, {
131
- children: t8
132
- });
133
- $[25] = T0;
134
- $[26] = t8;
135
- $[27] = t9;
136
- } else {
137
- t9 = $[27];
138
- }
139
- let t10;
140
- if ($[28] !== T1 || $[29] !== t4 || $[30] !== t5 || $[31] !== t6 || $[32] !== t7 || $[33] !== t9) {
141
- t10 = /*#__PURE__*/_jsxs(T1, {
142
- "data-slot": t4,
143
- defaultOpen: t5,
144
- className: t6,
145
- children: [t7, t9]
146
- });
147
- $[28] = T1;
148
- $[29] = t4;
149
- $[30] = t5;
150
- $[31] = t6;
151
- $[32] = t7;
152
- $[33] = t9;
153
- $[34] = t10;
154
- } else {
155
- t10 = $[34];
156
- }
157
- return t10;
26
+ children: citations.slice(0, stackedMarkLimit).map((citation, position) => /*#__PURE__*/_jsx(SourceMark, {
27
+ citation: citation,
28
+ className: "ring-card"
29
+ }, sourceKey(sources[position], position)))
30
+ }), "Used ", pluralize(sources.length, "source"), /*#__PURE__*/_jsx(ChevronRightIcon, {
31
+ "aria-hidden": true,
32
+ className: chevronClass
33
+ })]
34
+ }), /*#__PURE__*/_jsx(CollapsibleContent, {
35
+ children: /*#__PURE__*/_jsx("ol", {
36
+ className: ruledListClass,
37
+ children: citations.map((citation, position) => /*#__PURE__*/_jsx(SourceRow, {
38
+ citation: citation,
39
+ onOpen: onOpen
40
+ }, sourceKey(sources[position], position)))
41
+ })
42
+ })]
43
+ });
158
44
  }
159
- function SourceRow(t0) {
160
- const $ = _c(21);
161
- const {
162
- citation,
163
- onOpen
164
- } = t0;
165
- let t1;
166
- if ($[0] !== citation.url) {
167
- t1 = hostLabel(citation.url);
168
- $[0] = citation.url;
169
- $[1] = t1;
170
- } else {
171
- t1 = $[1];
172
- }
173
- const host = t1;
45
+ function SourceRow({
46
+ citation,
47
+ onOpen
48
+ }) {
49
+ const host = hostLabel(citation.url);
174
50
  const showHost = host !== undefined && host !== citation.title;
175
- let t2;
176
- if ($[2] !== citation.index) {
177
- t2 = /*#__PURE__*/_jsx("span", {
51
+ const content = /*#__PURE__*/_jsxs(_Fragment, {
52
+ children: [/*#__PURE__*/_jsx("span", {
178
53
  className: "w-4 shrink-0 font-mono text-xs text-muted-foreground tabular-nums",
179
54
  children: citation.index
180
- });
181
- $[2] = citation.index;
182
- $[3] = t2;
183
- } else {
184
- t2 = $[3];
185
- }
186
- let t3;
187
- if ($[4] !== citation.title) {
188
- t3 = /*#__PURE__*/_jsx("span", {
55
+ }), /*#__PURE__*/_jsx("span", {
189
56
  className: "min-w-0 flex-1 truncate",
190
57
  children: citation.title
191
- });
192
- $[4] = citation.title;
193
- $[5] = t3;
194
- } else {
195
- t3 = $[5];
196
- }
197
- let t4;
198
- if ($[6] !== host || $[7] !== showHost) {
199
- t4 = showHost && /*#__PURE__*/_jsx("span", {
58
+ }), showHost && /*#__PURE__*/_jsx("span", {
200
59
  className: "max-w-[40%] shrink-0 truncate text-xs text-muted-foreground",
201
60
  children: host
202
- });
203
- $[6] = host;
204
- $[7] = showHost;
205
- $[8] = t4;
206
- } else {
207
- t4 = $[8];
208
- }
209
- let t5;
210
- if ($[9] !== t2 || $[10] !== t3 || $[11] !== t4) {
211
- t5 = /*#__PURE__*/_jsxs(_Fragment, {
212
- children: [t2, t3, t4]
213
- });
214
- $[9] = t2;
215
- $[10] = t3;
216
- $[11] = t4;
217
- $[12] = t5;
218
- } else {
219
- t5 = $[12];
220
- }
221
- const content = t5;
61
+ })]
62
+ });
63
+ const rowClass = ruledRowClass;
222
64
  const label = `Open source ${citation.index}: ${citation.title}`;
223
- let t6;
224
- if ($[13] !== citation || $[14] !== content || $[15] !== label || $[16] !== onOpen) {
225
- t6 = onOpen ? /*#__PURE__*/_jsx("button", {
65
+ return /*#__PURE__*/_jsx("li", {
66
+ "data-slot": "sources-item",
67
+ "data-index": citation.index,
68
+ children: onOpen ? /*#__PURE__*/_jsx("button", {
226
69
  type: "button",
227
70
  "aria-label": label,
228
71
  onClick: () => onOpen(citation),
229
- className: cn(ruledRowClass, interactiveRowClass),
72
+ className: cn(rowClass, interactiveRowClass),
230
73
  children: content
231
74
  }) : citation.url ? /*#__PURE__*/_jsx("a", {
232
75
  href: citation.url,
233
76
  target: "_blank",
234
77
  rel: "noreferrer",
235
78
  "aria-label": label,
236
- className: cn(ruledRowClass, interactiveRowClass),
79
+ className: cn(rowClass, interactiveRowClass),
237
80
  children: content
238
81
  }) : /*#__PURE__*/_jsx("div", {
239
- className: ruledRowClass,
82
+ className: rowClass,
240
83
  children: content
241
- });
242
- $[13] = citation;
243
- $[14] = content;
244
- $[15] = label;
245
- $[16] = onOpen;
246
- $[17] = t6;
247
- } else {
248
- t6 = $[17];
249
- }
250
- let t7;
251
- if ($[18] !== citation.index || $[19] !== t6) {
252
- t7 = /*#__PURE__*/_jsx("li", {
253
- "data-slot": "sources-item",
254
- "data-index": citation.index,
255
- children: t6
256
- });
257
- $[18] = citation.index;
258
- $[19] = t6;
259
- $[20] = t7;
260
- } else {
261
- t7 = $[20];
262
- }
263
- return t7;
84
+ })
85
+ });
264
86
  }
@@ -1,4 +1,3 @@
1
- import { c as _c } from "react/compiler-runtime";
2
1
  import { Checkmark as CheckIcon, Close as XIcon } from "@carbon/icons-react";
3
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
4
3
  const decisionTimeFormat = new Intl.DateTimeFormat("en-US", {
@@ -17,128 +16,47 @@ export function formatDecidedAt(value) {
17
16
  const date = toDate(value);
18
17
  return Number.isNaN(date.getTime()) ? "" : `${decisionTimeFormat.format(date)} UTC`;
19
18
  }
20
- function DecisionMeta(t0) {
21
- const $ = _c(6);
22
- const {
23
- decision,
24
- verb
25
- } = t0;
26
- const t1 = decision.by && ` by ${decision.by}`;
27
- let t2;
28
- if ($[0] !== decision.at) {
29
- t2 = decision.at !== undefined && /*#__PURE__*/_jsxs(_Fragment, {
30
- children: [" \xB7 ", /*#__PURE__*/_jsx("time", {
19
+ function DecisionMeta({
20
+ decision,
21
+ verb
22
+ }) {
23
+ return /*#__PURE__*/_jsxs("p", {
24
+ className: "text-xs text-muted-foreground",
25
+ children: [verb, decision.by && ` by ${decision.by}`, decision.at !== undefined && /*#__PURE__*/_jsxs(_Fragment, {
26
+ children: [" · ", /*#__PURE__*/_jsx("time", {
31
27
  dateTime: isoOf(decision.at),
32
28
  className: "tabular-nums",
33
29
  children: formatDecidedAt(decision.at)
34
30
  })]
35
- });
36
- $[0] = decision.at;
37
- $[1] = t2;
38
- } else {
39
- t2 = $[1];
40
- }
41
- let t3;
42
- if ($[2] !== t1 || $[3] !== t2 || $[4] !== verb) {
43
- t3 = /*#__PURE__*/_jsxs("p", {
44
- className: "text-xs text-muted-foreground",
45
- children: [verb, t1, t2]
46
- });
47
- $[2] = t1;
48
- $[3] = t2;
49
- $[4] = verb;
50
- $[5] = t3;
51
- } else {
52
- t3 = $[5];
53
- }
54
- return t3;
31
+ })]
32
+ });
55
33
  }
56
- export function DecisionSummary(t0) {
57
- const $ = _c(18);
58
- const {
59
- decision,
60
- result,
61
- approvedVerb: t1,
62
- deniedVerb: t2
63
- } = t0;
64
- const approvedVerb = t1 === undefined ? "Approved" : t1;
65
- const deniedVerb = t2 === undefined ? "Denied" : t2;
34
+ export function DecisionSummary({
35
+ decision,
36
+ result,
37
+ approvedVerb = "Approved",
38
+ deniedVerb = "Denied"
39
+ }) {
66
40
  const Icon = decision.approved ? CheckIcon : XIcon;
67
- const t3 = `mt-0.5 size-4 shrink-0 ${decision.approved ? "text-good" : "text-destructive"}`;
68
- let t4;
69
- if ($[0] !== Icon || $[1] !== t3) {
70
- t4 = /*#__PURE__*/_jsx(Icon, {
41
+ return /*#__PURE__*/_jsxs("div", {
42
+ "data-slot": "decision-summary",
43
+ "data-approved": decision.approved,
44
+ className: "flex items-start gap-2.5 text-sm",
45
+ children: [/*#__PURE__*/_jsx(Icon, {
71
46
  "aria-hidden": true,
72
- className: t3
73
- });
74
- $[0] = Icon;
75
- $[1] = t3;
76
- $[2] = t4;
77
- } else {
78
- t4 = $[2];
79
- }
80
- let t5;
81
- if ($[3] !== result) {
82
- t5 = /*#__PURE__*/_jsx("p", {
83
- className: "font-medium",
84
- children: result
85
- });
86
- $[3] = result;
87
- $[4] = t5;
88
- } else {
89
- t5 = $[4];
90
- }
91
- const t6 = decision.approved ? approvedVerb : deniedVerb;
92
- let t7;
93
- if ($[5] !== decision || $[6] !== t6) {
94
- t7 = /*#__PURE__*/_jsx(DecisionMeta, {
95
- decision: decision,
96
- verb: t6
97
- });
98
- $[5] = decision;
99
- $[6] = t6;
100
- $[7] = t7;
101
- } else {
102
- t7 = $[7];
103
- }
104
- let t8;
105
- if ($[8] !== decision.reason) {
106
- t8 = decision.reason && /*#__PURE__*/_jsxs("p", {
107
- className: "text-xs text-muted-foreground",
108
- children: ["Reason: ", decision.reason]
109
- });
110
- $[8] = decision.reason;
111
- $[9] = t8;
112
- } else {
113
- t8 = $[9];
114
- }
115
- let t9;
116
- if ($[10] !== t5 || $[11] !== t7 || $[12] !== t8) {
117
- t9 = /*#__PURE__*/_jsxs("div", {
47
+ className: `mt-0.5 size-4 shrink-0 ${decision.approved ? "text-good" : "text-destructive"}`
48
+ }), /*#__PURE__*/_jsxs("div", {
118
49
  className: "flex min-w-0 flex-col gap-0.5",
119
- children: [t5, t7, t8]
120
- });
121
- $[10] = t5;
122
- $[11] = t7;
123
- $[12] = t8;
124
- $[13] = t9;
125
- } else {
126
- t9 = $[13];
127
- }
128
- let t10;
129
- if ($[14] !== decision.approved || $[15] !== t4 || $[16] !== t9) {
130
- t10 = /*#__PURE__*/_jsxs("div", {
131
- "data-slot": "decision-summary",
132
- "data-approved": decision.approved,
133
- className: "flex items-start gap-2.5 text-sm",
134
- children: [t4, t9]
135
- });
136
- $[14] = decision.approved;
137
- $[15] = t4;
138
- $[16] = t9;
139
- $[17] = t10;
140
- } else {
141
- t10 = $[17];
142
- }
143
- return t10;
50
+ children: [/*#__PURE__*/_jsx("p", {
51
+ className: "font-medium",
52
+ children: result
53
+ }), /*#__PURE__*/_jsx(DecisionMeta, {
54
+ decision: decision,
55
+ verb: decision.approved ? approvedVerb : deniedVerb
56
+ }), decision.reason && /*#__PURE__*/_jsxs("p", {
57
+ className: "text-xs text-muted-foreground",
58
+ children: ["Reason: ", decision.reason]
59
+ })]
60
+ })]
61
+ });
144
62
  }
@@ -1,80 +1,22 @@
1
- import { c as _c } from "react/compiler-runtime";
2
1
  import { cn } from "@locusgraph/components";
3
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
- export function PanelEmpty(t0) {
5
- const $ = _c(18);
6
- let className;
7
- let description;
8
- let icon;
9
- let props;
10
- let title;
11
- if ($[0] !== t0) {
12
- ({
13
- icon,
14
- title,
15
- description,
16
- className,
17
- ...props
18
- } = t0);
19
- $[0] = t0;
20
- $[1] = className;
21
- $[2] = description;
22
- $[3] = icon;
23
- $[4] = props;
24
- $[5] = title;
25
- } else {
26
- className = $[1];
27
- description = $[2];
28
- icon = $[3];
29
- props = $[4];
30
- title = $[5];
31
- }
32
- let t1;
33
- if ($[6] !== className) {
34
- t1 = cn("flex flex-col items-center gap-1 px-6 pt-8 pb-10 text-center [&_svg]:mb-1 [&_svg]:size-5 [&_svg]:text-muted-foreground", className);
35
- $[6] = className;
36
- $[7] = t1;
37
- } else {
38
- t1 = $[7];
39
- }
40
- let t2;
41
- if ($[8] !== title) {
42
- t2 = /*#__PURE__*/_jsx("p", {
3
+ export function PanelEmpty({
4
+ icon,
5
+ title,
6
+ description,
7
+ className,
8
+ ...props
9
+ }) {
10
+ return /*#__PURE__*/_jsxs("div", {
11
+ "data-slot": "panel-empty",
12
+ ...props,
13
+ className: cn("flex flex-col items-center gap-1 px-6 pt-8 pb-10 text-center [&_svg]:mb-1 [&_svg]:size-5 [&_svg]:text-muted-foreground", className),
14
+ children: [icon, /*#__PURE__*/_jsx("p", {
43
15
  className: "text-sm font-medium",
44
16
  children: title
45
- });
46
- $[8] = title;
47
- $[9] = t2;
48
- } else {
49
- t2 = $[9];
50
- }
51
- let t3;
52
- if ($[10] !== description) {
53
- t3 = description && /*#__PURE__*/_jsx("p", {
17
+ }), description && /*#__PURE__*/_jsx("p", {
54
18
  className: "max-w-xs text-xs text-muted-foreground",
55
19
  children: description
56
- });
57
- $[10] = description;
58
- $[11] = t3;
59
- } else {
60
- t3 = $[11];
61
- }
62
- let t4;
63
- if ($[12] !== icon || $[13] !== props || $[14] !== t1 || $[15] !== t2 || $[16] !== t3) {
64
- t4 = /*#__PURE__*/_jsxs("div", {
65
- "data-slot": "panel-empty",
66
- ...props,
67
- className: t1,
68
- children: [icon, t2, t3]
69
- });
70
- $[12] = icon;
71
- $[13] = props;
72
- $[14] = t1;
73
- $[15] = t2;
74
- $[16] = t3;
75
- $[17] = t4;
76
- } else {
77
- t4 = $[17];
78
- }
79
- return t4;
20
+ })]
21
+ });
80
22
  }