@locusgraph/loop 0.2.0 → 0.2.1

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 (68) 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/tool/json-block.js +11 -31
  12. package/dist/agent/tool/tool-status.js +12 -35
  13. package/dist/approval/inbox/inbox-row.js +76 -301
  14. package/dist/approval/inbox/inbox.js +39 -190
  15. package/dist/approval/inbox/virtual-inbox-list.js +26 -102
  16. package/dist/approval/memory/memory-review.js +36 -170
  17. package/dist/approval/memory/memory-row.js +50 -185
  18. package/dist/approval/plan/plan-review.js +73 -223
  19. package/dist/approval/plan/plan-step-row.js +76 -180
  20. package/dist/approval/plan/question-choices.js +44 -130
  21. package/dist/approval/plan/question.js +38 -154
  22. package/dist/approval/run/run-bar.js +39 -123
  23. package/dist/approval/shared/risk-badge.js +9 -24
  24. package/dist/approval/shared/use-focus-on-mount.js +5 -21
  25. package/dist/approval/spend/raise-cap-form.js +48 -221
  26. package/dist/approval/spend/spend-gate.js +40 -155
  27. package/dist/approval/spend/spend-meter.js +85 -312
  28. package/dist/approval/tool/approval.js +35 -194
  29. package/dist/approval/tool/args/args-editor.js +46 -204
  30. package/dist/approval/tool/args/args-field.js +55 -238
  31. package/dist/approval/tool/deny-form.js +36 -123
  32. package/dist/approval/tool/tool-inputs.js +23 -88
  33. package/dist/chat/chat/use-stick-to-bottom.js +60 -113
  34. package/dist/chat/chat/virtual-chat-items.js +34 -127
  35. package/dist/chat/composer/composer-actions.js +46 -129
  36. package/dist/chat/composer/use-auto-grow.js +8 -23
  37. package/dist/chat/files/files.js +66 -291
  38. package/dist/chat/reply/fenced-code.js +10 -32
  39. package/dist/chat/reply/reply.js +24 -99
  40. package/dist/chat/turn/turn.js +46 -197
  41. package/dist/cost/context.js +65 -282
  42. package/dist/cost/cost-steps.js +42 -195
  43. package/dist/cost/cost.js +108 -497
  44. package/dist/cost/model-picker.js +42 -172
  45. package/dist/cost/shared/context-breakdown.js +64 -280
  46. package/dist/cost/shared/meter-marks.js +34 -92
  47. package/dist/cost/shared/model-option-row.js +35 -158
  48. package/dist/cost/shared/step-cost-row.js +37 -222
  49. package/dist/memory/cite.js +58 -179
  50. package/dist/memory/memorized.js +42 -194
  51. package/dist/memory/recall.js +68 -263
  52. package/dist/memory/shared/source-mark.js +10 -38
  53. package/dist/memory/sources.js +52 -230
  54. package/dist/shared/decision-summary.js +35 -117
  55. package/dist/shared/panel-empty.js +15 -73
  56. package/dist/shared/panel.js +65 -239
  57. package/dist/shared/status-dot.js +10 -32
  58. package/dist/thread/actions/action-button.js +10 -53
  59. package/dist/thread/actions/branch-switcher.js +21 -95
  60. package/dist/thread/canvas/version-switcher.js +31 -126
  61. package/dist/thread/code/copy-code-button.js +24 -56
  62. package/dist/thread/history/row/history-row.js +18 -97
  63. package/dist/thread/history/row/thread-item-menu.js +19 -72
  64. package/dist/thread/history/row/thread-title-editor.js +29 -72
  65. package/dist/thread/history/virtual-history-list.js +46 -82
  66. package/dist/thread/starters/starters.js +27 -87
  67. package/dist/thread/use-copied.js +10 -38
  68. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
- import { c as _c } from "react/compiler-runtime";
2
1
  import { Checkmark as CheckIcon, Locked as LockIcon, Close as XIcon } from "@carbon/icons-react";
3
2
  import { Button, Checkbox, cn } from "@locusgraph/components";
4
3
  import { riskLabels } from "../shared/risk-badge.js";
@@ -9,62 +8,24 @@ const riskDot = {
9
8
  write: "bg-warn",
10
9
  destructive: "bg-destructive"
11
10
  };
12
- export function InboxRow(t0) {
13
- const $ = _c(70);
14
- let className;
15
- let item;
16
- let now;
17
- let onApprove;
18
- let onDeny;
19
- let onSelect;
20
- let props;
21
- let selected;
22
- if ($[0] !== t0) {
23
- ({
24
- item,
25
- now,
26
- selected,
27
- onSelect,
28
- onApprove,
29
- onDeny,
30
- className,
31
- ...props
32
- } = t0);
33
- $[0] = t0;
34
- $[1] = className;
35
- $[2] = item;
36
- $[3] = now;
37
- $[4] = onApprove;
38
- $[5] = onDeny;
39
- $[6] = onSelect;
40
- $[7] = props;
41
- $[8] = selected;
42
- } else {
43
- className = $[1];
44
- item = $[2];
45
- now = $[3];
46
- onApprove = $[4];
47
- onDeny = $[5];
48
- onSelect = $[6];
49
- props = $[7];
50
- selected = $[8];
51
- }
11
+ export function InboxRow({
12
+ item,
13
+ now,
14
+ selected,
15
+ onSelect,
16
+ onApprove,
17
+ onDeny,
18
+ className,
19
+ ...props
20
+ }) {
52
21
  const destructive = item.risk === "destructive";
53
- const t1 = item.risk;
54
- const t2 = selected || undefined;
55
- const t3 = selected ? "bg-accent" : "hover:bg-accent/50";
56
- let t4;
57
- if ($[9] !== className || $[10] !== t3) {
58
- t4 = cn("group flex items-center gap-3 px-5 py-2.5 motion-safe:transition-colors", t3, className);
59
- $[9] = className;
60
- $[10] = t3;
61
- $[11] = t4;
62
- } else {
63
- t4 = $[11];
64
- }
65
- let t5;
66
- if ($[12] !== destructive || $[13] !== item.title || $[14] !== onSelect || $[15] !== selected) {
67
- t5 = destructive ? /*#__PURE__*/_jsxs("span", {
22
+ return /*#__PURE__*/_jsxs("li", {
23
+ "data-slot": "inbox-item",
24
+ "data-risk": item.risk,
25
+ "data-selected": selected || undefined,
26
+ className: cn("group flex items-center gap-3 px-5 py-2.5 motion-safe:transition-colors", selected ? "bg-accent" : "hover:bg-accent/50", className),
27
+ ...props,
28
+ children: [destructive ? /*#__PURE__*/_jsxs("span", {
68
29
  className: "flex size-4 shrink-0 items-center justify-center text-muted-foreground",
69
30
  children: [/*#__PURE__*/_jsx(LockIcon, {
70
31
  "aria-hidden": true,
@@ -77,252 +38,66 @@ export function InboxRow(t0) {
77
38
  "aria-label": `Select ${item.title}`,
78
39
  checked: selected,
79
40
  onCheckedChange: checked => onSelect(checked === true)
80
- });
81
- $[12] = destructive;
82
- $[13] = item.title;
83
- $[14] = onSelect;
84
- $[15] = selected;
85
- $[16] = t5;
86
- } else {
87
- t5 = $[16];
88
- }
89
- let t6;
90
- if ($[17] !== item.title) {
91
- t6 = /*#__PURE__*/_jsx("span", {
92
- className: "truncate font-medium",
93
- children: item.title
94
- });
95
- $[17] = item.title;
96
- $[18] = t6;
97
- } else {
98
- t6 = $[18];
99
- }
100
- let t7;
101
- if ($[19] !== item.runName) {
102
- t7 = /*#__PURE__*/_jsx("span", {
103
- className: "hidden shrink-0 truncate text-xs text-muted-foreground sm:inline",
104
- children: item.runName
105
- });
106
- $[19] = item.runName;
107
- $[20] = t7;
108
- } else {
109
- t7 = $[20];
110
- }
111
- let t8;
112
- if ($[21] !== t6 || $[22] !== t7) {
113
- t8 = /*#__PURE__*/_jsxs("p", {
114
- className: "flex min-w-0 items-baseline gap-2 text-sm",
115
- children: [t6, t7]
116
- });
117
- $[21] = t6;
118
- $[22] = t7;
119
- $[23] = t8;
120
- } else {
121
- t8 = $[23];
122
- }
123
- const t9 = riskDot[item.risk];
124
- let t10;
125
- if ($[24] !== t9) {
126
- t10 = cn("size-1.5 shrink-0 rounded-full", t9);
127
- $[24] = t9;
128
- $[25] = t10;
129
- } else {
130
- t10 = $[25];
131
- }
132
- let t11;
133
- if ($[26] !== t10) {
134
- t11 = /*#__PURE__*/_jsx("span", {
135
- "aria-hidden": true,
136
- className: t10
137
- });
138
- $[26] = t10;
139
- $[27] = t11;
140
- } else {
141
- t11 = $[27];
142
- }
143
- const t12 = riskLabels[item.risk];
144
- let t13;
145
- if ($[28] !== t12) {
146
- t13 = /*#__PURE__*/_jsx("span", {
147
- className: "shrink-0",
148
- children: t12
149
- });
150
- $[28] = t12;
151
- $[29] = t13;
152
- } else {
153
- t13 = $[29];
154
- }
155
- let t14;
156
- if ($[30] !== item.summary) {
157
- t14 = item.summary && /*#__PURE__*/_jsxs(_Fragment, {
158
- children: [/*#__PURE__*/_jsx("span", {
159
- "aria-hidden": true,
160
- children: "\xB7"
161
- }), /*#__PURE__*/_jsx("span", {
162
- className: "truncate",
163
- children: item.summary
164
- })]
165
- });
166
- $[30] = item.summary;
167
- $[31] = t14;
168
- } else {
169
- t14 = $[31];
170
- }
171
- let t15;
172
- if ($[32] !== t11 || $[33] !== t13 || $[34] !== t14) {
173
- t15 = /*#__PURE__*/_jsxs("p", {
174
- className: "flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground",
175
- children: [t11, t13, t14]
176
- });
177
- $[32] = t11;
178
- $[33] = t13;
179
- $[34] = t14;
180
- $[35] = t15;
181
- } else {
182
- t15 = $[35];
183
- }
184
- let t16;
185
- if ($[36] !== item.runName) {
186
- t16 = /*#__PURE__*/_jsx("p", {
187
- className: "truncate text-xs text-muted-foreground sm:hidden",
188
- children: item.runName
189
- });
190
- $[36] = item.runName;
191
- $[37] = t16;
192
- } else {
193
- t16 = $[37];
194
- }
195
- let t17;
196
- if ($[38] !== t15 || $[39] !== t16 || $[40] !== t8) {
197
- t17 = /*#__PURE__*/_jsxs("div", {
41
+ }), /*#__PURE__*/_jsxs("div", {
198
42
  className: "flex min-w-0 flex-1 flex-col gap-0.5",
199
- children: [t8, t15, t16]
200
- });
201
- $[38] = t15;
202
- $[39] = t16;
203
- $[40] = t8;
204
- $[41] = t17;
205
- } else {
206
- t17 = $[41];
207
- }
208
- let t18;
209
- if ($[42] !== item.requestedAt) {
210
- t18 = isoOf(item.requestedAt);
211
- $[42] = item.requestedAt;
212
- $[43] = t18;
213
- } else {
214
- t18 = $[43];
215
- }
216
- let t19;
217
- if ($[44] !== item.requestedAt || $[45] !== now) {
218
- t19 = formatWaiting(item.requestedAt, now);
219
- $[44] = item.requestedAt;
220
- $[45] = now;
221
- $[46] = t19;
222
- } else {
223
- t19 = $[46];
224
- }
225
- let t20;
226
- if ($[47] !== t18 || $[48] !== t19) {
227
- t20 = /*#__PURE__*/_jsx("time", {
228
- dateTime: t18,
43
+ children: [/*#__PURE__*/_jsxs("p", {
44
+ className: "flex min-w-0 items-baseline gap-2 text-sm",
45
+ children: [/*#__PURE__*/_jsx("span", {
46
+ className: "truncate font-medium",
47
+ children: item.title
48
+ }), /*#__PURE__*/_jsx("span", {
49
+ className: "hidden shrink-0 truncate text-xs text-muted-foreground sm:inline",
50
+ children: item.runName
51
+ })]
52
+ }), /*#__PURE__*/_jsxs("p", {
53
+ className: "flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground",
54
+ children: [/*#__PURE__*/_jsx("span", {
55
+ "aria-hidden": true,
56
+ className: cn("size-1.5 shrink-0 rounded-full", riskDot[item.risk])
57
+ }), /*#__PURE__*/_jsx("span", {
58
+ className: "shrink-0",
59
+ children: riskLabels[item.risk]
60
+ }), item.summary && /*#__PURE__*/_jsxs(_Fragment, {
61
+ children: [/*#__PURE__*/_jsx("span", {
62
+ "aria-hidden": true,
63
+ children: "\xB7"
64
+ }), /*#__PURE__*/_jsx("span", {
65
+ className: "truncate",
66
+ children: item.summary
67
+ })]
68
+ })]
69
+ }), /*#__PURE__*/_jsx("p", {
70
+ className: "truncate text-xs text-muted-foreground sm:hidden",
71
+ children: item.runName
72
+ })]
73
+ }), /*#__PURE__*/_jsx("time", {
74
+ dateTime: isoOf(item.requestedAt),
229
75
  className: "w-12 shrink-0 text-right font-mono text-[11px] text-muted-foreground tabular-nums",
230
- children: t19
231
- });
232
- $[47] = t18;
233
- $[48] = t19;
234
- $[49] = t20;
235
- } else {
236
- t20 = $[49];
237
- }
238
- const t21 = `Approve ${item.title}`;
239
- let t22;
240
- if ($[50] === Symbol.for("react.memo_cache_sentinel")) {
241
- t22 = /*#__PURE__*/_jsx(CheckIcon, {
242
- "aria-hidden": true
243
- });
244
- $[50] = t22;
245
- } else {
246
- t22 = $[50];
247
- }
248
- let t23;
249
- if ($[51] !== onApprove || $[52] !== t21) {
250
- t23 = /*#__PURE__*/_jsx(Button, {
251
- type: "button",
252
- size: "icon-xs",
253
- variant: "outline",
254
- "aria-label": t21,
255
- title: "Approve",
256
- onClick: onApprove,
257
- children: t22
258
- });
259
- $[51] = onApprove;
260
- $[52] = t21;
261
- $[53] = t23;
262
- } else {
263
- t23 = $[53];
264
- }
265
- const t24 = `Deny ${item.title}`;
266
- let t25;
267
- if ($[54] === Symbol.for("react.memo_cache_sentinel")) {
268
- t25 = /*#__PURE__*/_jsx(XIcon, {
269
- "aria-hidden": true
270
- });
271
- $[54] = t25;
272
- } else {
273
- t25 = $[54];
274
- }
275
- let t26;
276
- if ($[55] !== onDeny || $[56] !== t24) {
277
- t26 = /*#__PURE__*/_jsx(Button, {
278
- type: "button",
279
- size: "icon-xs",
280
- variant: "ghost",
281
- "aria-label": t24,
282
- title: "Deny",
283
- className: "text-muted-foreground hover:text-foreground",
284
- onClick: onDeny,
285
- children: t25
286
- });
287
- $[55] = onDeny;
288
- $[56] = t24;
289
- $[57] = t26;
290
- } else {
291
- t26 = $[57];
292
- }
293
- let t27;
294
- if ($[58] !== t23 || $[59] !== t26) {
295
- t27 = /*#__PURE__*/_jsxs("span", {
76
+ children: formatWaiting(item.requestedAt, now)
77
+ }), /*#__PURE__*/_jsxs("span", {
296
78
  className: "flex shrink-0 gap-1",
297
- children: [t23, t26]
298
- });
299
- $[58] = t23;
300
- $[59] = t26;
301
- $[60] = t27;
302
- } else {
303
- t27 = $[60];
304
- }
305
- let t28;
306
- if ($[61] !== item.risk || $[62] !== props || $[63] !== t17 || $[64] !== t2 || $[65] !== t20 || $[66] !== t27 || $[67] !== t4 || $[68] !== t5) {
307
- t28 = /*#__PURE__*/_jsxs("li", {
308
- "data-slot": "inbox-item",
309
- "data-risk": t1,
310
- "data-selected": t2,
311
- className: t4,
312
- ...props,
313
- children: [t5, t17, t20, t27]
314
- });
315
- $[61] = item.risk;
316
- $[62] = props;
317
- $[63] = t17;
318
- $[64] = t2;
319
- $[65] = t20;
320
- $[66] = t27;
321
- $[67] = t4;
322
- $[68] = t5;
323
- $[69] = t28;
324
- } else {
325
- t28 = $[69];
326
- }
327
- return t28;
79
+ children: [/*#__PURE__*/_jsx(Button, {
80
+ type: "button",
81
+ size: "icon-xs",
82
+ variant: "outline",
83
+ "aria-label": `Approve ${item.title}`,
84
+ title: "Approve",
85
+ onClick: onApprove,
86
+ children: /*#__PURE__*/_jsx(CheckIcon, {
87
+ "aria-hidden": true
88
+ })
89
+ }), /*#__PURE__*/_jsx(Button, {
90
+ type: "button",
91
+ size: "icon-xs",
92
+ variant: "ghost",
93
+ "aria-label": `Deny ${item.title}`,
94
+ title: "Deny",
95
+ className: "text-muted-foreground hover:text-foreground",
96
+ onClick: onDeny,
97
+ children: /*#__PURE__*/_jsx(XIcon, {
98
+ "aria-hidden": true
99
+ })
100
+ })]
101
+ })]
102
+ });
328
103
  }
@@ -1,4 +1,3 @@
1
- import { c as _c } from "react/compiler-runtime";
2
1
  import { MailAll as InboxIcon } from "@carbon/icons-react";
3
2
  import { Button, Checkbox, Label } from "@locusgraph/components";
4
3
  import { pluralize } from "@locusgraph/utils";
@@ -10,118 +9,43 @@ import { InboxRow } from "./inbox-row.js";
10
9
  import { bulkApprovable, selectAllState, selectedIn, toggled } from "./inbox-selection.js";
11
10
  import { VirtualInboxList } from "./virtual-inbox-list.js";
12
11
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
- export function Inbox(t0) {
14
- const $ = _c(53);
15
- const {
16
- items,
17
- now: t1,
18
- title: t2,
19
- onApprove,
20
- onDeny,
21
- onApproveAll,
22
- virtualize: t3,
23
- className
24
- } = t0;
25
- let t4;
26
- if ($[0] !== t1) {
27
- t4 = t1 === undefined ? Date.now() : t1;
28
- $[0] = t1;
29
- $[1] = t4;
30
- } else {
31
- t4 = $[1];
32
- }
33
- const now = t4;
34
- const title = t2 === undefined ? "Waiting for approval" : t2;
35
- const virtualize = t3 === undefined ? true : t3;
12
+ export function Inbox({
13
+ items,
14
+ now = Date.now(),
15
+ title = "Waiting for approval",
16
+ onApprove,
17
+ onDeny,
18
+ onApproveAll,
19
+ virtualize = true,
20
+ className
21
+ }) {
36
22
  const selectAllId = useId();
37
- const [selected, setSelected] = useState(_temp);
38
- let selectable;
39
- let selectedIds;
40
- let t5;
41
- if ($[2] !== items || $[3] !== selected) {
42
- selectable = bulkApprovable(items);
43
- selectedIds = selectedIn(items, selected);
44
- t5 = selectAllState(selectable.length, selectedIds.length);
45
- $[2] = items;
46
- $[3] = selected;
47
- $[4] = selectable;
48
- $[5] = selectedIds;
49
- $[6] = t5;
50
- } else {
51
- selectable = $[4];
52
- selectedIds = $[5];
53
- t5 = $[6];
54
- }
55
- const allState = t5;
23
+ const [selected, setSelected] = useState(() => new Set());
24
+ const selectable = bulkApprovable(items);
25
+ const selectedIds = selectedIn(items, selected);
26
+ const allState = selectAllState(selectable.length, selectedIds.length);
56
27
  const hasDestructive = selectable.length < items.length;
57
28
  const empty = items.length === 0;
58
- let t6;
59
- if ($[7] !== selected) {
60
- t6 = id => selected.has(id);
61
- $[7] = selected;
62
- $[8] = t6;
63
- } else {
64
- t6 = $[8];
65
- }
66
- let t7;
67
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
68
- t7 = (id_0, on) => setSelected(current => toggled(current, id_0, on));
69
- $[9] = t7;
70
- } else {
71
- t7 = $[9];
72
- }
73
- let T0;
74
- let t10;
75
- let t11;
76
- let t12;
77
- let t13;
78
- let t8;
79
- let t9;
80
- if ($[10] !== allState || $[11] !== className || $[12] !== empty || $[13] !== hasDestructive || $[14] !== items || $[15] !== now || $[16] !== onApprove || $[17] !== onApproveAll || $[18] !== onDeny || $[19] !== selectAllId || $[20] !== selectable || $[21] !== selectedIds || $[22] !== t6 || $[23] !== title || $[24] !== virtualize) {
81
- const rowHandlers = {
82
- isSelected: t6,
83
- onSelect: t7,
84
- onApprove,
85
- onDeny
86
- };
87
- T0 = ApprovalPanel;
88
- t8 = "inbox";
89
- t9 = title;
90
- t10 = className;
91
- let t14;
92
- if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
93
- t14 = /*#__PURE__*/_jsx(InboxIcon, {
29
+ const rowHandlers = {
30
+ isSelected: id => selected.has(id),
31
+ onSelect: (id, on) => setSelected(current => toggled(current, id, on)),
32
+ onApprove,
33
+ onDeny
34
+ };
35
+ return /*#__PURE__*/_jsxs(ApprovalPanel, {
36
+ "data-slot": "inbox",
37
+ "aria-label": title,
38
+ className: className,
39
+ children: [/*#__PURE__*/_jsx(PanelHeader, {
40
+ icon: /*#__PURE__*/_jsx(InboxIcon, {
94
41
  "aria-hidden": true
95
- });
96
- $[32] = t14;
97
- } else {
98
- t14 = $[32];
99
- }
100
- const t15 = empty ? "All clear" : `${items.length} waiting`;
101
- const t16 = empty ? "done" : "waiting";
102
- if ($[33] !== t15 || $[34] !== t16) {
103
- t11 = /*#__PURE__*/_jsx(PanelHeader, {
104
- icon: t14,
105
- eyebrow: "Approvals",
106
- status: t15,
107
- tone: t16
108
- });
109
- $[33] = t15;
110
- $[34] = t16;
111
- $[35] = t11;
112
- } else {
113
- t11 = $[35];
114
- }
115
- if ($[36] !== title) {
116
- t12 = /*#__PURE__*/_jsx(PanelTitle, {
117
- children: title
118
- });
119
- $[36] = title;
120
- $[37] = t12;
121
- } else {
122
- t12 = $[37];
123
- }
124
- t13 = empty ? /*#__PURE__*/_jsx(PanelEmpty, {
42
+ }),
43
+ eyebrow: "Approvals",
44
+ status: empty ? "All clear" : `${items.length} waiting`,
45
+ tone: empty ? "done" : "waiting"
46
+ }), /*#__PURE__*/_jsx(PanelTitle, {
47
+ children: title
48
+ }), empty ? /*#__PURE__*/_jsx(PanelEmpty, {
125
49
  "data-slot": "inbox-empty",
126
50
  icon: /*#__PURE__*/_jsx(InboxIcon, {
127
51
  "aria-hidden": true
@@ -139,7 +63,7 @@ export function Inbox(t0) {
139
63
  item: item,
140
64
  now: now,
141
65
  selected: rowHandlers.isSelected(item.id),
142
- onSelect: on_0 => rowHandlers.onSelect(item.id, on_0),
66
+ onSelect: on => rowHandlers.onSelect(item.id, on),
143
67
  onApprove: () => onApprove(item.id),
144
68
  onDeny: () => onDeny(item.id)
145
69
  }, item.id))
@@ -150,7 +74,7 @@ export function Inbox(t0) {
150
74
  children: [selectable.length > 0 && /*#__PURE__*/_jsx(Checkbox, {
151
75
  id: selectAllId,
152
76
  checked: allState,
153
- onCheckedChange: checked => setSelected(checked === true ? new Set(selectable.map(_temp2)) : new Set())
77
+ onCheckedChange: checked => setSelected(checked === true ? new Set(selectable.map(item => item.id)) : new Set())
154
78
  }), /*#__PURE__*/_jsxs(Label, {
155
79
  htmlFor: selectAllId,
156
80
  className: "flex min-w-0 flex-col items-start gap-0 font-normal",
@@ -176,83 +100,8 @@ export function Inbox(t0) {
176
100
  children: selectedIds.length > 0 ? `Approve ${selectedIds.length} selected` : "Approve selected"
177
101
  })]
178
102
  })]
179
- });
180
- $[10] = allState;
181
- $[11] = className;
182
- $[12] = empty;
183
- $[13] = hasDestructive;
184
- $[14] = items;
185
- $[15] = now;
186
- $[16] = onApprove;
187
- $[17] = onApproveAll;
188
- $[18] = onDeny;
189
- $[19] = selectAllId;
190
- $[20] = selectable;
191
- $[21] = selectedIds;
192
- $[22] = t6;
193
- $[23] = title;
194
- $[24] = virtualize;
195
- $[25] = T0;
196
- $[26] = t10;
197
- $[27] = t11;
198
- $[28] = t12;
199
- $[29] = t13;
200
- $[30] = t8;
201
- $[31] = t9;
202
- } else {
203
- T0 = $[25];
204
- t10 = $[26];
205
- t11 = $[27];
206
- t12 = $[28];
207
- t13 = $[29];
208
- t8 = $[30];
209
- t9 = $[31];
210
- }
211
- let t14;
212
- if ($[38] !== empty || $[39] !== items.length || $[40] !== selectedIds) {
213
- t14 = empty ? "No approvals waiting" : `${pluralize(items.length, "approval")} waiting, ${selectedIds.length} selected`;
214
- $[38] = empty;
215
- $[39] = items.length;
216
- $[40] = selectedIds;
217
- $[41] = t14;
218
- } else {
219
- t14 = $[41];
220
- }
221
- let t15;
222
- if ($[42] !== t14) {
223
- t15 = /*#__PURE__*/_jsx(LiveStatus, {
224
- message: t14
225
- });
226
- $[42] = t14;
227
- $[43] = t15;
228
- } else {
229
- t15 = $[43];
230
- }
231
- let t16;
232
- if ($[44] !== T0 || $[45] !== t10 || $[46] !== t11 || $[47] !== t12 || $[48] !== t13 || $[49] !== t15 || $[50] !== t8 || $[51] !== t9) {
233
- t16 = /*#__PURE__*/_jsxs(T0, {
234
- "data-slot": t8,
235
- "aria-label": t9,
236
- className: t10,
237
- children: [t11, t12, t13, t15]
238
- });
239
- $[44] = T0;
240
- $[45] = t10;
241
- $[46] = t11;
242
- $[47] = t12;
243
- $[48] = t13;
244
- $[49] = t15;
245
- $[50] = t8;
246
- $[51] = t9;
247
- $[52] = t16;
248
- } else {
249
- t16 = $[52];
250
- }
251
- return t16;
252
- }
253
- function _temp2(item_0) {
254
- return item_0.id;
255
- }
256
- function _temp() {
257
- return new Set();
103
+ }), /*#__PURE__*/_jsx(LiveStatus, {
104
+ message: empty ? "No approvals waiting" : `${pluralize(items.length, "approval")} waiting, ${selectedIds.length} selected`
105
+ })]
106
+ });
258
107
  }