@pstdio/ui 0.44.0-nightly.20261017030225 → 0.44.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 (83) hide show
  1. package/dist/{MermaidComponent-b-SNuwm6.js → MermaidComponent-DhNTaUMt.js} +2 -2
  2. package/dist/{MermaidComponent-b-SNuwm6.js.map → MermaidComponent-DhNTaUMt.js.map} +1 -1
  3. package/dist/apply-theme-preference-B0vCu8zY.d.ts +26 -0
  4. package/dist/chat-ui.d.ts +52 -52
  5. package/dist/chat-ui.js +163 -161
  6. package/dist/chat-ui.js.map +1 -1
  7. package/dist/{collection-view-fields-Sa5HO5P7.d.ts → collection-view-fields-tMtZmuhS.d.ts} +0 -2
  8. package/dist/{collection-view-grouping-aKZhxYfX.js → collection-view-grouping-BKIr4QAb.js} +2 -2
  9. package/dist/{collection-view-grouping-aKZhxYfX.js.map → collection-view-grouping-BKIr4QAb.js.map} +1 -1
  10. package/dist/{collection-view-search-mHPkdyxT.js → collection-view-search-D7HFymZW.js} +160 -166
  11. package/dist/collection-view-search-D7HFymZW.js.map +1 -0
  12. package/dist/collection-view.d.ts +3 -90
  13. package/dist/collection-view.js +1 -1
  14. package/dist/data-table.d.ts +3 -2
  15. package/dist/data-table.js +98 -88
  16. package/dist/data-table.js.map +1 -1
  17. package/dist/{diff-drawer-BMl0zobj.js → diff-drawer-ByJsQg8F.js} +10 -10
  18. package/dist/diff-drawer-ByJsQg8F.js.map +1 -0
  19. package/dist/{diff-viewer-C5KXwq7E.js → diff-viewer-Cpiw-1ut.js} +4 -4
  20. package/dist/{diff-viewer-C5KXwq7E.js.map → diff-viewer-Cpiw-1ut.js.map} +1 -1
  21. package/dist/diff.js +2 -2
  22. package/dist/{display-sort-control-0_gG-W9g.js → display-sort-control-BuqijDAl.js} +3 -3
  23. package/dist/{display-sort-control-0_gG-W9g.js.map → display-sort-control-BuqijDAl.js.map} +1 -1
  24. package/dist/{edit-mode-data-table-BhJa4Z76.js → edit-mode-data-table-BwNTRik5.js} +147 -136
  25. package/dist/edit-mode-data-table-BwNTRik5.js.map +1 -0
  26. package/dist/host-storage-28AkEy1N.js +98 -0
  27. package/dist/host-storage-28AkEy1N.js.map +1 -0
  28. package/dist/index-3H4B61XK.d.ts +38 -0
  29. package/dist/{index-Bc2BsdD1.d.ts → index-Bq1BDCBk.d.ts} +6 -1
  30. package/dist/{index-BTABZd25.d.ts → index-DTjRTEez.d.ts} +2 -2
  31. package/dist/index-kYQwGcym.d.ts +91 -0
  32. package/dist/index.d.ts +350 -53
  33. package/dist/index.js +883 -880
  34. package/dist/index.js.map +1 -1
  35. package/dist/kanban-renderer.d.ts +2 -2
  36. package/dist/kanban-renderer.js +510 -495
  37. package/dist/kanban-renderer.js.map +1 -1
  38. package/dist/list-row-BDDAVuVd.js +1228 -0
  39. package/dist/list-row-BDDAVuVd.js.map +1 -0
  40. package/dist/{markdown-editor-hLUXSAns.js → markdown-editor-DUBUE7M-.js} +1170 -1057
  41. package/dist/markdown-editor-DUBUE7M-.js.map +1 -0
  42. package/dist/{param-editor-3B1GmtMi.js → param-editor-DK1uCOh3.js} +2 -2
  43. package/dist/{param-editor-3B1GmtMi.js.map → param-editor-DK1uCOh3.js.map} +1 -1
  44. package/dist/{param-editor-field-ZdF0maaH.js → param-editor-field-B5z6200g.js} +279 -283
  45. package/dist/param-editor-field-B5z6200g.js.map +1 -0
  46. package/dist/param-editor.js +2 -2
  47. package/dist/{prism-EZSmZh-a.js → prism-E3-NXX_t.js} +21 -20
  48. package/dist/prism-E3-NXX_t.js.map +1 -0
  49. package/dist/resolve-icon-component-Ck6ZyRnc.js +20 -0
  50. package/dist/resolve-icon-component-Ck6ZyRnc.js.map +1 -0
  51. package/dist/{resource-badge-nOWPqxFU.d.ts → resource-badge-DGwekS-G.d.ts} +1 -1
  52. package/dist/{rich-text-tfMib9o3.js → rich-text-2c_ra5gK.js} +585 -456
  53. package/dist/rich-text-2c_ra5gK.js.map +1 -0
  54. package/dist/rich-text.d.ts +1 -1
  55. package/dist/rich-text.js +3 -3
  56. package/dist/terminal.d.ts +28 -0
  57. package/dist/terminal.js +59 -32
  58. package/dist/terminal.js.map +1 -1
  59. package/dist/{theme-O8cKWJIk.js → theme-Chgjys_o.js} +285 -253
  60. package/dist/theme-Chgjys_o.js.map +1 -0
  61. package/dist/theme.d.ts +1 -1
  62. package/dist/theme.js +1 -1
  63. package/dist/{tree-list-Ces1hpRd.js → tree-list-B8Gtot1M.js} +99 -99
  64. package/dist/tree-list-B8Gtot1M.js.map +1 -0
  65. package/dist/{use-virtualizer-CfDHoDer.js → use-virtualizer-CqDYJolY.js} +8 -3
  66. package/dist/use-virtualizer-CqDYJolY.js.map +1 -0
  67. package/dist/{workspace-badge-CvQBU6Hs.d.ts → workspace-badge-BMjS8ii4.d.ts} +6 -1
  68. package/package.json +2 -2
  69. package/dist/collection-view-search-mHPkdyxT.js.map +0 -1
  70. package/dist/diff-drawer-BMl0zobj.js.map +0 -1
  71. package/dist/edit-mode-data-table-BhJa4Z76.js.map +0 -1
  72. package/dist/host-storage-BIo5azql.js +0 -31
  73. package/dist/host-storage-BIo5azql.js.map +0 -1
  74. package/dist/index-Dd6e8lU_.d.ts +0 -61
  75. package/dist/list-row-F8kBQGB-.js +0 -1232
  76. package/dist/list-row-F8kBQGB-.js.map +0 -1
  77. package/dist/markdown-editor-hLUXSAns.js.map +0 -1
  78. package/dist/param-editor-field-ZdF0maaH.js.map +0 -1
  79. package/dist/prism-EZSmZh-a.js.map +0 -1
  80. package/dist/rich-text-tfMib9o3.js.map +0 -1
  81. package/dist/theme-O8cKWJIk.js.map +0 -1
  82. package/dist/tree-list-Ces1hpRd.js.map +0 -1
  83. package/dist/use-virtualizer-CfDHoDer.js.map +0 -1
package/dist/chat-ui.js CHANGED
@@ -1,15 +1,16 @@
1
1
  import { t as e } from "./alert-MQ47wy7f.js";
2
2
  import { n as t, t as n } from "./scroll-area-IeoRS73V.js";
3
- import { a as r, t as i } from "./list-row-F8kBQGB-.js";
4
- import { t as a } from "./use-virtualizer-CfDHoDer.js";
5
- import { i as o } from "./prism-EZSmZh-a.js";
3
+ import { t as r } from "./list-row-BDDAVuVd.js";
4
+ import { t as i } from "./use-virtualizer-CqDYJolY.js";
5
+ import { i as a } from "./prism-E3-NXX_t.js";
6
+ import { a as o } from "./host-storage-28AkEy1N.js";
6
7
  import { t as s } from "./drop-indicator-HjlBSIeV.js";
7
8
  import { t as c } from "./empty-state-3mVV_pV-.js";
8
9
  import { t as l } from "./icon-options-Tt6Wzhtv.js";
9
10
  import { n as u, t as d } from "./radio-CiFrDN6O.js";
10
11
  import { n as f, t as p } from "./queued-follow-up-Bj_vtMgd.js";
11
- import { A as m, C as h, E as g, M as _, S as v, T as y, j as b, k as x, w as S } from "./markdown-editor-hLUXSAns.js";
12
- import { c as C, l as w, o as T, s as E } from "./rich-text-tfMib9o3.js";
12
+ import { A as m, C as h, E as g, M as _, N as v, S as y, T as b, j as x, w as S } from "./markdown-editor-DUBUE7M-.js";
13
+ import { c as C, l as w, o as T, s as E } from "./rich-text-2c_ra5gK.js";
13
14
  import { t as D } from "./diff-bubble-DewUd_2w.js";
14
15
  import { AbsoluteCenter as O, Avatar as k, Box as A, Button as j, Card as M, Code as N, Field as P, Flex as F, HStack as I, Icon as L, IconButton as R, Image as z, Input as ee, Kbd as B, Link as te, Menu as V, Popover as ne, Portal as H, Skeleton as re, Span as U, Spinner as ie, Stack as W, Tag as ae, Text as G, Textarea as oe, Timeline as se, Tooltip as ce, chakra as K, createSlotRecipeContext as le, defineSlotRecipe as ue, useRecipe as de, useSlotRecipe as fe } from "@chakra-ui/react";
15
16
  import { c as q } from "react/compiler-runtime";
@@ -270,17 +271,17 @@ var at = () => {
270
271
  })
271
272
  }), t[15] = l, t[16] = u, t[17] = h, t[18] = g) : g = t[18], g;
272
273
  }, gt = "md", _t = "neutral", vt = (e) => {
273
- let t = q(17), { attachments: n, onSelect: r, onRemove: i, renderBadge: a, size: s, tone: c } = e, l;
274
+ let t = q(17), { attachments: n, onSelect: r, onRemove: i, renderBadge: o, size: s, tone: c } = e, l;
274
275
  t[0] === n ? l = t[1] : (l = n === void 0 ? [] : n, t[0] = n, t[1] = l);
275
276
  let u = l, d = s === void 0 ? gt : s, f = c === void 0 ? _t : c;
276
277
  if (u.length === 0) return null;
277
278
  let p;
278
- if (t[2] !== u || t[3] !== i || t[4] !== r || t[5] !== a || t[6] !== d || t[7] !== f) {
279
+ if (t[2] !== u || t[3] !== i || t[4] !== r || t[5] !== o || t[6] !== d || t[7] !== f) {
279
280
  let e;
280
- t[9] !== i || t[10] !== r || t[11] !== a || t[12] !== d || t[13] !== f ? (e = (e) => {
281
+ t[9] !== i || t[10] !== r || t[11] !== o || t[12] !== d || t[13] !== f ? (e = (e) => {
281
282
  let t = r ? () => r(e) : void 0, n = i ? () => i(e) : void 0;
282
- if (a) {
283
- let r = a({
283
+ if (o) {
284
+ let r = o({
284
285
  attachmentId: e,
285
286
  onSelect: t,
286
287
  onRemove: n,
@@ -289,14 +290,14 @@ var at = () => {
289
290
  });
290
291
  return /* @__PURE__ */ J(me, { children: r }, e);
291
292
  }
292
- return /* @__PURE__ */ J(o, {
293
+ return /* @__PURE__ */ J(a, {
293
294
  fileName: e,
294
295
  onSelect: t,
295
296
  onRemove: n,
296
297
  size: d,
297
298
  tone: f
298
299
  }, e);
299
- }, t[9] = i, t[10] = r, t[11] = a, t[12] = d, t[13] = f, t[14] = e) : e = t[14], p = u.map(e), t[2] = u, t[3] = i, t[4] = r, t[5] = a, t[6] = d, t[7] = f, t[8] = p;
300
+ }, t[9] = i, t[10] = r, t[11] = o, t[12] = d, t[13] = f, t[14] = e) : e = t[14], p = u.map(e), t[2] = u, t[3] = i, t[4] = r, t[5] = o, t[6] = d, t[7] = f, t[8] = p;
300
301
  } else p = t[8];
301
302
  let m;
302
303
  return t[15] === p ? m = t[16] : (m = /* @__PURE__ */ J(W, {
@@ -723,21 +724,21 @@ var Ct = ue({
723
724
  children: [r, i]
724
725
  }), t[4] = r, t[5] = i, t[6] = a) : a = t[6], a;
725
726
  }, En = (e) => {
726
- let t = q(12), { option: n, name: i, checked: a, editable: o, onToggle: s } = e, c = !o, l = o ? void 0 : "true", u;
727
- t[0] === o ? u = t[1] : (u = o ? void 0 : { tabIndex: -1 }, t[0] = o, t[1] = u);
728
- let d = o ? s : void 0, f;
727
+ let t = q(12), { option: n, name: r, checked: i, editable: a, onToggle: s } = e, c = !a, l = a ? void 0 : "true", u;
728
+ t[0] === a ? u = t[1] : (u = a ? void 0 : { tabIndex: -1 }, t[0] = a, t[1] = u);
729
+ let d = a ? s : void 0, f;
729
730
  t[2] === n ? f = t[3] : (f = /* @__PURE__ */ J(Tn, { option: n }), t[2] = n, t[3] = f);
730
731
  let p;
731
- return t[4] !== a || t[5] !== i || t[6] !== c || t[7] !== l || t[8] !== u || t[9] !== d || t[10] !== f ? (p = /* @__PURE__ */ J(r, {
732
- name: i,
733
- checked: a,
732
+ return t[4] !== i || t[5] !== r || t[6] !== c || t[7] !== l || t[8] !== u || t[9] !== d || t[10] !== f ? (p = /* @__PURE__ */ J(o, {
733
+ name: r,
734
+ checked: i,
734
735
  readOnly: c,
735
736
  "aria-readonly": l,
736
737
  inputProps: u,
737
738
  alignItems: "flex-start",
738
739
  onCheckedChange: d,
739
740
  children: f
740
- }), t[4] = a, t[5] = i, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f, t[11] = p) : p = t[11], p;
741
+ }), t[4] = i, t[5] = r, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f, t[11] = p) : p = t[11], p;
741
742
  }, Dn = (e) => {
742
743
  let t = q(30), { question: n, questionIndex: r, name: i, selectedOption: a, otherSelected: o, editable: s, onToggleOption: c, onToggleOther: l } = e, { otherField: f } = e, p;
743
744
  t[0] === n ? p = t[1] : (p = It(n), t[0] = n, t[1] = p);
@@ -923,7 +924,7 @@ var Ct = ue({
923
924
  function Nn(e, t) {
924
925
  return /* @__PURE__ */ J(A, {
925
926
  as: "li",
926
- children: /* @__PURE__ */ J(r, {
927
+ children: /* @__PURE__ */ J(o, {
927
928
  checked: e.checked,
928
929
  readOnly: !0,
929
930
  "aria-readonly": "true",
@@ -2388,7 +2389,7 @@ function va(e) {
2388
2389
  }
2389
2390
  function ya(e) {
2390
2391
  let t = q(22), { seg: n, isClickable: r, onOpenFile: i } = e;
2391
- if (b() && (n.kind === "link" || n.kind === "diff") && (n.filePath || n.kind === "diff")) {
2392
+ if (_() && (n.kind === "link" || n.kind === "diff") && (n.filePath || n.kind === "diff")) {
2392
2393
  let e = n.filePath ?? (n.kind === "diff" ? n.fileName : n.text), r;
2393
2394
  t[0] === e ? r = t[1] : (r = {
2394
2395
  source: e,
@@ -2401,7 +2402,7 @@ function ya(e) {
2401
2402
  deletions: n.deletions ?? 0
2402
2403
  }) : n.text, t[2] = n.additions, t[3] = n.deletions, t[4] = n.fileName, t[5] = n.kind, t[6] = n.text, t[7] = i) : i = t[7];
2403
2404
  let a;
2404
- return t[8] !== r || t[9] !== i ? (a = /* @__PURE__ */ J(x, {
2405
+ return t[8] !== r || t[9] !== i ? (a = /* @__PURE__ */ J(m, {
2405
2406
  candidate: r,
2406
2407
  children: i
2407
2408
  }), t[8] = r, t[9] = i, t[10] = a) : a = t[10], a;
@@ -2586,12 +2587,12 @@ function Sa(e) {
2586
2587
  }
2587
2588
  }
2588
2589
  function Ca(e) {
2589
- return /* @__PURE__ */ J(x, {
2590
+ return /* @__PURE__ */ J(m, {
2590
2591
  candidate: {
2591
2592
  source: e,
2592
2593
  origin: "tool"
2593
2594
  },
2594
- children: /* @__PURE__ */ J(o, { fileName: e })
2595
+ children: /* @__PURE__ */ J(a, { fileName: e })
2595
2596
  }, e);
2596
2597
  }
2597
2598
  function wa(e) {
@@ -2670,52 +2671,52 @@ function wa(e) {
2670
2671
  }, r), t[19] = r, t[20] = u, t[21] = m, t[22] = h) : h = t[22], h;
2671
2672
  }
2672
2673
  function Ta(e) {
2673
- let t = q(5), n = b(), r = e.linkHandler ?? n, i;
2674
+ let t = q(5), n = _(), r = e.linkHandler ?? n, i;
2674
2675
  t[0] === e ? i = t[1] : (i = /* @__PURE__ */ J(Ea, { ...e }), t[0] = e, t[1] = i);
2675
2676
  let a;
2676
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ J(m, {
2677
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ J(x, {
2677
2678
  handler: r,
2678
2679
  children: i
2679
2680
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
2680
2681
  }
2681
2682
  function Ea(e) {
2682
- let t = q(14), { data: n, onOpenFile: r } = e, i = b(), a;
2683
- t[0] !== i || t[1] !== r ? (a = i ? (e) => {
2684
- i.open({
2683
+ let t = q(13), { data: n } = e, r = _(), i;
2684
+ t[0] === r ? i = t[1] : (i = r ? (e) => {
2685
+ r.open({
2685
2686
  source: e,
2686
2687
  origin: "tool"
2687
2688
  });
2688
- } : r, t[0] = i, t[1] = r, t[2] = a) : a = t[2];
2689
- let o = a, s;
2690
- t[3] === Symbol.for("react.memo_cache_sentinel") ? (s = {}, t[3] = s) : s = t[3];
2691
- let [c, l] = Q(s), u = Da, d;
2692
- t[4] === Symbol.for("react.memo_cache_sentinel") ? (d = (e) => {
2693
- l((t) => ({
2689
+ } : void 0, t[0] = r, t[1] = i);
2690
+ let a = i, o;
2691
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = {}, t[2] = o) : o = t[2];
2692
+ let [s, c] = Q(o), l = Da, u;
2693
+ t[3] === Symbol.for("react.memo_cache_sentinel") ? (u = (e) => {
2694
+ c((t) => ({
2694
2695
  ...t,
2695
2696
  [e]: !t[e]
2696
2697
  }));
2697
- }, t[4] = d) : d = t[4];
2698
- let f = d, p;
2699
- if (t[5] !== n.items || t[6] !== c || t[7] !== o) {
2698
+ }, t[3] = u) : u = t[3];
2699
+ let d = u, f;
2700
+ if (t[4] !== n.items || t[5] !== s || t[6] !== a) {
2700
2701
  let e;
2701
- t[9] !== c || t[10] !== o ? (e = (e, t) => {
2702
- let n = u(e, t), r = (e.blocks?.length ?? 0) > 0, i = (e.expandable ?? !0) && r, a = i ? c[n] ?? !1 : r;
2702
+ t[8] !== s || t[9] !== a ? (e = (e, t) => {
2703
+ let n = l(e, t), r = (e.blocks?.length ?? 0) > 0, i = (e.expandable ?? !0) && r, o = i ? s[n] ?? !1 : r;
2703
2704
  return /* @__PURE__ */ J(wa, {
2704
2705
  item: e,
2705
2706
  itemKey: n,
2706
- isOpen: a,
2707
+ isOpen: o,
2707
2708
  canExpand: i,
2708
2709
  hasBlocks: r,
2709
- onToggle: f,
2710
- onOpenFile: o
2710
+ onToggle: d,
2711
+ onOpenFile: a
2711
2712
  }, n);
2712
- }, t[9] = c, t[10] = o, t[11] = e) : e = t[11], p = n.items.map(e), t[5] = n.items, t[6] = c, t[7] = o, t[8] = p;
2713
- } else p = t[8];
2714
- let m;
2715
- return t[12] === p ? m = t[13] : (m = /* @__PURE__ */ J(ba.Root, {
2713
+ }, t[8] = s, t[9] = a, t[10] = e) : e = t[10], f = n.items.map(e), t[4] = n.items, t[5] = s, t[6] = a, t[7] = f;
2714
+ } else f = t[7];
2715
+ let p;
2716
+ return t[11] === f ? p = t[12] : (p = /* @__PURE__ */ J(ba.Root, {
2716
2717
  variant: "tool",
2717
- children: p
2718
- }), t[12] = p, t[13] = m), m;
2718
+ children: f
2719
+ }), t[11] = f, t[12] = p), p;
2719
2720
  }
2720
2721
  function Da(e, t) {
2721
2722
  return e.id ? `id:${e.id}` : `idx:${t}`;
@@ -2727,26 +2728,25 @@ var Oa = (e) => lr(e.tool ?? "").replace(/_/g, "") === "question", ka = (e) => {
2727
2728
  return typeof t == "string" ? t.trim().length > 0 : Array.isArray(t) ? t.length > 0 : t && typeof t == "object" ? Object.keys(t).length > 0 : t != null;
2728
2729
  };
2729
2730
  function Aa(e) {
2730
- let t = q(9), { invocations: n, labeledBlocks: r, hideQuestionForms: i, onOpenFile: a, linkHandler: o } = e, s = i !== void 0 && i, c, l;
2731
- if (t[0] !== s || t[1] !== n || t[2] !== r) {
2732
- l = Symbol.for("react.early_return_sentinel");
2731
+ let t = q(8), { invocations: n, labeledBlocks: r, hideQuestionForms: i, linkHandler: a } = e, o = i !== void 0 && i, s, c;
2732
+ if (t[0] !== o || t[1] !== n || t[2] !== r) {
2733
+ c = Symbol.for("react.early_return_sentinel");
2733
2734
  bb0: {
2734
- let e = s ? n.filter(ja) : n;
2735
+ let e = o ? n.filter(ja) : n;
2735
2736
  if (e.length === 0) {
2736
- l = null;
2737
+ c = null;
2737
2738
  break bb0;
2738
2739
  }
2739
- c = la(e, { labeledBlocks: r });
2740
+ s = la(e, { labeledBlocks: r });
2740
2741
  }
2741
- t[0] = s, t[1] = n, t[2] = r, t[3] = c, t[4] = l;
2742
- } else c = t[3], l = t[4];
2743
- if (l !== Symbol.for("react.early_return_sentinel")) return l;
2744
- let u = c, d;
2745
- return t[5] !== u || t[6] !== o || t[7] !== a ? (d = /* @__PURE__ */ J(Ta, {
2746
- data: u,
2747
- linkHandler: o,
2748
- onOpenFile: a
2749
- }), t[5] = u, t[6] = o, t[7] = a, t[8] = d) : d = t[8], d;
2742
+ t[0] = o, t[1] = n, t[2] = r, t[3] = s, t[4] = c;
2743
+ } else s = t[3], c = t[4];
2744
+ if (c !== Symbol.for("react.early_return_sentinel")) return c;
2745
+ let l = s, u;
2746
+ return t[5] !== l || t[6] !== a ? (u = /* @__PURE__ */ J(Ta, {
2747
+ data: l,
2748
+ linkHandler: a
2749
+ }), t[5] = l, t[6] = a, t[7] = u) : u = t[7], u;
2750
2750
  }
2751
2751
  function ja(e) {
2752
2752
  return !Oa(e) || ka(e);
@@ -2761,7 +2761,10 @@ var Ma = (e) => e.type === "tool", Na = (e) => e.filename ?? e.url.split("/").po
2761
2761
  objectFit: "cover"
2762
2762
  }) : void 0, La = (e, t) => {
2763
2763
  if (t) {
2764
- t(e.url);
2764
+ t.open({
2765
+ source: e.url,
2766
+ origin: "reference"
2767
+ });
2765
2768
  return;
2766
2769
  }
2767
2770
  typeof window < "u" && window.open(e.url, "_blank", "noopener,noreferrer");
@@ -2793,34 +2796,34 @@ var Ma = (e) => e.type === "tool", Na = (e) => e.filename ?? e.url.split("/").po
2793
2796
  };
2794
2797
  };
2795
2798
  function Va(e) {
2796
- let t = q(5), n = b(), r = e.linkHandler ?? n, i;
2799
+ let t = q(5), n = _(), r = e.linkHandler ?? n, i;
2797
2800
  t[0] === e ? i = t[1] : (i = /* @__PURE__ */ J(Ha, { ...e }), t[0] = e, t[1] = i);
2798
2801
  let a;
2799
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ J(m, {
2802
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ J(x, {
2800
2803
  handler: r,
2801
2804
  children: i
2802
2805
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
2803
2806
  }
2804
2807
  function Ha(t) {
2805
- let n = q(10), { message: r, streaming: i, hideQuestionForms: a, onOpenFile: s, toolInvocationTimeline: c } = t, l = i !== void 0 && i, u = a !== void 0 && a, d = b(), f = g(), p;
2806
- if (n[0] !== u || n[1] !== f || n[2] !== d || n[3] !== r || n[4] !== s || n[5] !== l || n[6] !== c) {
2807
- let t = y([r], d), i = c ?? Aa, a;
2808
- n[8] === r.parts ? a = n[9] : (a = r.parts ?? [], n[8] = r.parts, n[9] = a);
2809
- let m = a, g = [];
2810
- for (let n = 0; n < m.length; n += 1) {
2811
- let a = m[n], c = `${r.id}-${n}`;
2812
- bb0: switch (a.type) {
2808
+ let n = q(9), { message: r, streaming: i, hideQuestionForms: o, toolInvocationTimeline: s } = t, c = i !== void 0 && i, l = o !== void 0 && o, u = _(), d = g(), f;
2809
+ if (n[0] !== l || n[1] !== d || n[2] !== u || n[3] !== r || n[4] !== c || n[5] !== s) {
2810
+ let t = b([r], u), i = s ?? Aa, o;
2811
+ n[7] === r.parts ? o = n[8] : (o = r.parts ?? [], n[7] = r.parts, n[8] = o);
2812
+ let p = o, m = [];
2813
+ for (let n = 0; n < p.length; n += 1) {
2814
+ let o = p[n], s = `${r.id}-${n}`;
2815
+ bb0: switch (o.type) {
2813
2816
  case "text":
2814
- g.push(/* @__PURE__ */ J(h, {
2815
- value: f.get(a) ?? t.get(a) ?? S,
2817
+ m.push(/* @__PURE__ */ J(h, {
2818
+ value: d.get(o) ?? t.get(o) ?? S,
2816
2819
  children: /* @__PURE__ */ J("div", { children: /* @__PURE__ */ J(sr, {
2817
- streaming: l,
2818
- children: a.text
2820
+ streaming: c,
2821
+ children: o.text
2819
2822
  }) })
2820
- }, c));
2823
+ }, s));
2821
2824
  break bb0;
2822
2825
  case "reasoning":
2823
- g.push(/* @__PURE__ */ J(A, {
2826
+ m.push(/* @__PURE__ */ J(A, {
2824
2827
  padding: "0",
2825
2828
  css: { "& .rich-text, & .rich-text *": {
2826
2829
  color: "fg.subtle !important",
@@ -2828,75 +2831,74 @@ function Ha(t) {
2828
2831
  fontWeight: "normal !important"
2829
2832
  } },
2830
2833
  children: /* @__PURE__ */ J(T, {
2831
- defaultState: a.text,
2834
+ defaultState: o.text,
2832
2835
  fullWidth: !0
2833
2836
  })
2834
- }, c));
2837
+ }, s));
2835
2838
  break bb0;
2836
2839
  case "tool": {
2837
- if (a.tool === "question" && fn(a.state?.input)) {
2838
- g.push(/* @__PURE__ */ J(cr, { part: a }, c));
2840
+ if (o.tool === "question" && fn(o.state?.input)) {
2841
+ m.push(/* @__PURE__ */ J(cr, { part: o }, s));
2839
2842
  break bb0;
2840
2843
  }
2841
- let { invocations: e, nextIndex: t } = Ba(m, n);
2842
- n = t, g.push(/* @__PURE__ */ J(A, {
2844
+ let { invocations: e, nextIndex: t } = Ba(p, n);
2845
+ n = t, m.push(/* @__PURE__ */ J(A, {
2843
2846
  width: "full",
2844
2847
  children: /* @__PURE__ */ J(i, {
2845
2848
  invocations: e,
2846
- linkHandler: d,
2849
+ linkHandler: u,
2847
2850
  labeledBlocks: !0,
2848
- hideQuestionForms: u,
2849
- onOpenFile: s
2851
+ hideQuestionForms: l
2850
2852
  })
2851
- }, c));
2853
+ }, s));
2852
2854
  break bb0;
2853
2855
  }
2854
2856
  case "file":
2855
- g.push(/* @__PURE__ */ J(A, {
2857
+ m.push(/* @__PURE__ */ J(A, {
2856
2858
  width: "fit-content",
2857
- children: /* @__PURE__ */ J(o, {
2858
- fileName: Na(a),
2859
+ children: /* @__PURE__ */ J(a, {
2860
+ fileName: Na(o),
2859
2861
  size: "sm",
2860
2862
  tone: "neutral",
2861
- icon: Ia(a),
2862
- onSelect: () => La(a, s)
2863
+ icon: Ia(o),
2864
+ onSelect: () => La(o, u)
2863
2865
  })
2864
- }, c));
2866
+ }, s));
2865
2867
  break bb0;
2866
2868
  case "error":
2867
- g.push(/* @__PURE__ */ J(A, {
2869
+ m.push(/* @__PURE__ */ J(A, {
2868
2870
  py: "2",
2869
2871
  width: "full",
2870
2872
  children: /* @__PURE__ */ J(e, {
2871
2873
  borderRadius: "xs",
2872
2874
  status: "error",
2873
2875
  colorPalette: "red",
2874
- title: Ra(a),
2876
+ title: Ra(o),
2875
2877
  size: "sm"
2876
2878
  })
2877
- }, c));
2879
+ }, s));
2878
2880
  break bb0;
2879
2881
  case "token_usage": break bb0;
2880
2882
  case "alert":
2881
- g.push(/* @__PURE__ */ J(A, {
2883
+ m.push(/* @__PURE__ */ J(A, {
2882
2884
  width: "full",
2883
2885
  children: /* @__PURE__ */ J(e, {
2884
2886
  borderRadius: "xs",
2885
- status: a.status === "loading" ? "info" : a.status,
2886
- colorPalette: za[a.status],
2887
- title: a.title,
2888
- icon: a.status === "loading" ? /* @__PURE__ */ J(ie, { size: "sm" }) : void 0,
2887
+ status: o.status === "loading" ? "info" : o.status,
2888
+ colorPalette: za[o.status],
2889
+ title: o.title,
2890
+ icon: o.status === "loading" ? /* @__PURE__ */ J(ie, { size: "sm" }) : void 0,
2889
2891
  size: "sm",
2890
- children: a.message
2892
+ children: o.message
2891
2893
  })
2892
- }, c));
2894
+ }, s));
2893
2895
  break bb0;
2894
- default: g.push(null);
2896
+ default: m.push(null);
2895
2897
  }
2896
2898
  }
2897
- p = /* @__PURE__ */ J(pe, { children: g }), n[0] = u, n[1] = f, n[2] = d, n[3] = r, n[4] = s, n[5] = l, n[6] = c, n[7] = p;
2898
- } else p = n[7];
2899
- return p;
2899
+ f = /* @__PURE__ */ J(pe, { children: m }), n[0] = l, n[1] = d, n[2] = u, n[3] = r, n[4] = c, n[5] = s, n[6] = f;
2900
+ } else f = n[6];
2901
+ return f;
2900
2902
  }
2901
2903
  //#endregion
2902
2904
  //#region src/components/chat-ui/components/message-types.ts
@@ -3161,7 +3163,7 @@ var co = 3, lo = 20, uo = 1, fo = (e, t) => Math.abs(e.scrollTop - t.scrollTop)
3161
3163
  a
3162
3164
  ], t[3] = n, t[4] = i, t[5] = a, t[6] = l, t[7] = u) : (l = t[6], u = t[7]), ye(l, u);
3163
3165
  }, go = 360, _o = 4, vo = 8, yo = (e) => {
3164
- let { leadingResponses: t, groups: n, streaming: r, hideActiveQuestionForms: i, expandedStickyMessageIds: o, onToggleStickyMessage: s, onReady: c } = e, { scrollRef: l } = it(), u = to(t, n), d = tr(u.map((e) => e.key)), f = l.current?.clientHeight || 1, p = Math.max(t.length + n.length - 1, 0), m = a({
3166
+ let { leadingResponses: t, groups: n, streaming: r, hideActiveQuestionForms: a, expandedStickyMessageIds: o, onToggleStickyMessage: s, onReady: c } = e, { scrollRef: l } = it(), u = to(t, n), d = tr(u.map((e) => e.key)), f = l.current?.clientHeight || 1, p = Math.max(t.length + n.length - 1, 0), { virtualizer: m, virtualItems: h, totalSize: g, measurements: _ } = i({
3165
3167
  count: u.length,
3166
3168
  getScrollElement: () => l.current,
3167
3169
  estimateSize: (e) => go + (ro(u, e) ? vo : 0),
@@ -3176,22 +3178,22 @@ var co = 3, lo = 20, uo = 1, fo = (e, t) => Math.abs(e.scrollTop - t.scrollTop)
3176
3178
  let t = qe(e), n = no(u, e.startIndex);
3177
3179
  return n !== null && !t.includes(n) && t.unshift(n), t;
3178
3180
  }
3179
- }), h = m.getTotalSize(), g = m.measurementsCache;
3181
+ });
3180
3182
  return ho({
3181
3183
  itemCount: u.length,
3182
3184
  onReady: c,
3183
3185
  scrollRef: l,
3184
- totalSize: h
3186
+ totalSize: g
3185
3187
  }), /* @__PURE__ */ J(A, {
3186
3188
  px: "xs",
3187
3189
  children: /* @__PURE__ */ J(A, {
3188
3190
  position: "relative",
3189
3191
  width: "100%",
3190
- style: { height: h },
3191
- children: m.getVirtualItems().map((e) => {
3192
+ style: { height: g },
3193
+ children: h.map((e) => {
3192
3194
  let t = u[e.index];
3193
3195
  if (t.type === "user") {
3194
- let n = (g[t.endIndex]?.end ?? h) - (ro(u, t.endIndex) ? vo : 0);
3196
+ let n = (_[t.endIndex]?.end ?? g) - (ro(u, t.endIndex) ? vo : 0);
3195
3197
  return /* @__PURE__ */ J(A, {
3196
3198
  position: "absolute",
3197
3199
  left: "0",
@@ -3233,7 +3235,7 @@ var co = 3, lo = 20, uo = 1, fo = (e, t) => Math.abs(e.scrollTop - t.scrollTop)
3233
3235
  children: /* @__PURE__ */ J($a, {
3234
3236
  message: t.message,
3235
3237
  streaming: r && t.isActiveTurn && t.showAssistantActions,
3236
- hideQuestionForms: !t.isActiveTurn || i,
3238
+ hideQuestionForms: !t.isActiveTurn || a,
3237
3239
  animate: d.has(t.key),
3238
3240
  showAssistantActions: t.showAssistantActions
3239
3241
  })
@@ -3845,7 +3847,7 @@ var Mo = (e) => {
3845
3847
  })]
3846
3848
  }), t[6] = f, t[7] = p), p;
3847
3849
  }, Fo = (e) => {
3848
- let t = q(113), { conversationKey: n, linkHandler: r, messages: i, loading: a, streaming: o, streamingStartedAt: s, emptyStateTitle: l, emptyStateDescription: u, emptyStateContent: d, loaderComponent: f, chatInputPlaceholder: p, chatInputDefaultValue: h, onSubmitMessage: g, onInterrupt: _, onAttachFiles: b, onAttachText: x, onChatInputChange: S, actions: C, attachmentActions: w, composerHeader: T, attachedResources: E, onClearAttachments: D, attachmentList: O, approvalPrompt: k, conversationNotices: j, workspaceHub: M, workspaceInitializing: N, inputDisabled: P, submitDisabled: I, chatInputQuestionPrompt: L, composerDecision: R, chatInputAutoFocus: z, queuedFollowUps: ee, onQueuedFollowUpUpdate: B, onQueuedFollowUpCreate: te, onQueuedFollowUpRestoreDraft: V, canRestoreQueuedEditToDraft: ne, onQueuedFollowUpSelect: H, onQueuedFollowUpDiscard: re, onQueuedFollowUpSteer: U, onQueuedFollowUpCombine: ie, queueSteeringUnavailableReason: W, unsavedQueueItemIds: ae, onQueuedFollowUpRemove: G, onQueuedFollowUpMove: oe, chatInputCommands: se } = e, ce = a !== void 0 && a, K = o !== void 0 && o, le = h === void 0 ? "" : h, ue = N !== void 0 && N, de = P !== void 0 && P, fe = I !== void 0 && I, me = z !== void 0 && z, he;
3850
+ let t = q(113), { conversationKey: n, linkHandler: r, messages: i, loading: a, streaming: o, streamingStartedAt: s, emptyStateTitle: l, emptyStateDescription: u, emptyStateContent: d, loaderComponent: f, chatInputPlaceholder: p, chatInputDefaultValue: m, onSubmitMessage: h, onInterrupt: g, onAttachFiles: _, onAttachText: v, onChatInputChange: S, actions: C, attachmentActions: w, composerHeader: T, attachedResources: E, onClearAttachments: D, attachmentList: O, approvalPrompt: k, conversationNotices: j, workspaceHub: M, workspaceInitializing: N, inputDisabled: P, submitDisabled: I, chatInputQuestionPrompt: L, composerDecision: R, chatInputAutoFocus: z, queuedFollowUps: ee, onQueuedFollowUpUpdate: B, onQueuedFollowUpCreate: te, onQueuedFollowUpRestoreDraft: V, canRestoreQueuedEditToDraft: ne, onQueuedFollowUpSelect: H, onQueuedFollowUpDiscard: re, onQueuedFollowUpSteer: U, onQueuedFollowUpCombine: ie, queueSteeringUnavailableReason: W, unsavedQueueItemIds: ae, onQueuedFollowUpRemove: G, onQueuedFollowUpMove: oe, chatInputCommands: se } = e, ce = a !== void 0 && a, K = o !== void 0 && o, le = m === void 0 ? "" : m, ue = N !== void 0 && N, de = P !== void 0 && P, fe = I !== void 0 && I, me = z !== void 0 && z, he;
3849
3851
  t[0] === ee ? he = t[1] : (he = ee === void 0 ? [] : ee, t[0] = ee, t[1] = he);
3850
3852
  let ge = he, _e;
3851
3853
  t[2] === se ? _e = t[3] : (_e = se === void 0 ? [] : se, t[2] = se, t[3] = _e);
@@ -3868,11 +3870,11 @@ var Mo = (e) => {
3868
3870
  let je = Oe ? f : d ?? Ae, Me = !!M, Ne = Cn(i, n ?? i[0]?.id), Pe;
3869
3871
  t[16] !== L || t[17] !== i || t[18] !== Ne.prompt ? (Pe = Ne.prompt ?? L ?? yn(i), t[16] = L, t[17] = i, t[18] = Ne.prompt, t[19] = Pe) : Pe = t[19];
3870
3872
  let Fe = Pe, Ie = !!Fe, Le = K && X && !ue && !Fe, Re = !ye || Ee === ye, Be;
3871
- t[20] !== ne || t[21] !== le || t[22] !== de || t[23] !== S || t[24] !== te || t[25] !== re || t[26] !== V || t[27] !== H || t[28] !== B || t[29] !== g || t[30] !== ge ? (Be = {
3873
+ t[20] !== ne || t[21] !== le || t[22] !== de || t[23] !== S || t[24] !== te || t[25] !== re || t[26] !== V || t[27] !== H || t[28] !== B || t[29] !== h || t[30] !== ge ? (Be = {
3872
3874
  queuedFollowUps: ge,
3873
3875
  defaultValue: le,
3874
3876
  onChange: S,
3875
- onSubmit: g,
3877
+ onSubmit: h,
3876
3878
  onUpdate: B,
3877
3879
  onCreate: te,
3878
3880
  onRestoreDraft: V,
@@ -3880,7 +3882,7 @@ var Mo = (e) => {
3880
3882
  disabled: de,
3881
3883
  onSelect: H,
3882
3884
  onDiscard: re
3883
- }, t[20] = ne, t[21] = le, t[22] = de, t[23] = S, t[24] = te, t[25] = re, t[26] = V, t[27] = H, t[28] = B, t[29] = g, t[30] = ge, t[31] = Be) : Be = t[31];
3885
+ }, t[20] = ne, t[21] = le, t[22] = de, t[23] = S, t[24] = te, t[25] = re, t[26] = V, t[27] = H, t[28] = B, t[29] = h, t[30] = ge, t[31] = Be) : Be = t[31];
3884
3886
  let Ve = bo(Be), He;
3885
3887
  t[32] === Symbol.for("react.memo_cache_sentinel") ? (He = (e) => {
3886
3888
  Te((t) => {
@@ -3889,7 +3891,7 @@ var Mo = (e) => {
3889
3891
  });
3890
3892
  }, t[32] = He) : He = t[32];
3891
3893
  let Ue = He, We;
3892
- t[33] !== r || t[34] !== i ? (We = y(i, r), t[33] = r, t[34] = i, t[35] = We) : We = t[35];
3894
+ t[33] !== r || t[34] !== i ? (We = b(i, r), t[33] = r, t[34] = i, t[35] = We) : We = t[35];
3893
3895
  let Ge = Ne.value, Ke = Z ?? null, qe;
3894
3896
  t[36] !== Ke || t[37] !== xe ? (qe = /* @__PURE__ */ J(St, {
3895
3897
  conversationKey: Ke,
@@ -3926,7 +3928,7 @@ var Mo = (e) => {
3926
3928
  let et = n ?? i[0]?.id, tt;
3927
3929
  t[64] === i ? tt = t[65] : (tt = Un(i), t[64] = i, t[65] = tt);
3928
3930
  let nt = Ne.prompt ? void 0 : R, rt;
3929
- t[66] !== C || t[67] !== Fe || t[68] !== E || t[69] !== w || t[70] !== O || t[71] !== me || t[72] !== ve || t[73] !== p || t[74] !== T || t[75] !== Me || t[76] !== de || t[77] !== b || t[78] !== x || t[79] !== D || t[80] !== _ || t[81] !== ie || t[82] !== oe || t[83] !== G || t[84] !== U || t[85] !== B || t[86] !== W || t[87] !== Ve || t[88] !== ge || t[89] !== K || t[90] !== fe || t[91] !== et || t[92] !== tt || t[93] !== nt || t[94] !== ae || t[95] !== M ? (rt = /* @__PURE__ */ J(Mo, {
3931
+ t[66] !== C || t[67] !== Fe || t[68] !== E || t[69] !== w || t[70] !== O || t[71] !== me || t[72] !== ve || t[73] !== p || t[74] !== T || t[75] !== Me || t[76] !== de || t[77] !== _ || t[78] !== v || t[79] !== D || t[80] !== g || t[81] !== ie || t[82] !== oe || t[83] !== G || t[84] !== U || t[85] !== B || t[86] !== W || t[87] !== Ve || t[88] !== ge || t[89] !== K || t[90] !== fe || t[91] !== et || t[92] !== tt || t[93] !== nt || t[94] !== ae || t[95] !== M ? (rt = /* @__PURE__ */ J(Mo, {
3930
3932
  conversationKey: et,
3931
3933
  recentUserMessages: tt,
3932
3934
  actions: C,
@@ -3942,10 +3944,10 @@ var Mo = (e) => {
3942
3944
  hasWorkspaceHub: Me,
3943
3945
  inputDisabled: de,
3944
3946
  submitDisabled: fe,
3945
- onAttachFiles: b,
3946
- onAttachText: x,
3947
+ onAttachFiles: _,
3948
+ onAttachText: v,
3947
3949
  onClearAttachments: D,
3948
- onInterrupt: _,
3950
+ onInterrupt: g,
3949
3951
  onQueuedFollowUpMove: oe,
3950
3952
  onQueuedFollowUpRemove: G,
3951
3953
  onQueuedFollowUpUpdate: B,
@@ -3957,7 +3959,7 @@ var Mo = (e) => {
3957
3959
  queuedFollowUps: ge,
3958
3960
  streaming: K,
3959
3961
  workspaceHub: M
3960
- }), t[66] = C, t[67] = Fe, t[68] = E, t[69] = w, t[70] = O, t[71] = me, t[72] = ve, t[73] = p, t[74] = T, t[75] = Me, t[76] = de, t[77] = b, t[78] = x, t[79] = D, t[80] = _, t[81] = ie, t[82] = oe, t[83] = G, t[84] = U, t[85] = B, t[86] = W, t[87] = Ve, t[88] = ge, t[89] = K, t[90] = fe, t[91] = et, t[92] = tt, t[93] = nt, t[94] = ae, t[95] = M, t[96] = rt) : rt = t[96];
3962
+ }), t[66] = C, t[67] = Fe, t[68] = E, t[69] = w, t[70] = O, t[71] = me, t[72] = ve, t[73] = p, t[74] = T, t[75] = Me, t[76] = de, t[77] = _, t[78] = v, t[79] = D, t[80] = g, t[81] = ie, t[82] = oe, t[83] = G, t[84] = U, t[85] = B, t[86] = W, t[87] = Ve, t[88] = ge, t[89] = K, t[90] = fe, t[91] = et, t[92] = tt, t[93] = nt, t[94] = ae, t[95] = M, t[96] = rt) : rt = t[96];
3961
3963
  let it;
3962
3964
  t[97] !== k || t[98] !== $e || t[99] !== rt ? (it = /* @__PURE__ */ Y(A, {
3963
3965
  layerStyle: "chatContent",
@@ -3983,12 +3985,12 @@ var Mo = (e) => {
3983
3985
  children: at
3984
3986
  }), t[104] = Ne.value, t[105] = at, t[106] = ot) : ot = t[106];
3985
3987
  let st;
3986
- t[107] !== r || t[108] !== ot ? (st = /* @__PURE__ */ J(m, {
3988
+ t[107] !== r || t[108] !== ot ? (st = /* @__PURE__ */ J(x, {
3987
3989
  handler: r,
3988
3990
  children: ot
3989
3991
  }), t[107] = r, t[108] = ot, t[109] = st) : st = t[109];
3990
3992
  let ct;
3991
- return t[110] !== We || t[111] !== st ? (ct = /* @__PURE__ */ J(v, {
3993
+ return t[110] !== We || t[111] !== st ? (ct = /* @__PURE__ */ J(y, {
3992
3994
  value: We,
3993
3995
  children: st
3994
3996
  }), t[110] = We, t[111] = st, t[112] = ct) : ct = t[112], ct;
@@ -4193,49 +4195,49 @@ var Vo = 3, Ho = 10, Uo = 4, Wo = (e, t) => {
4193
4195
  let u;
4194
4196
  return n[14] !== c || n[15] !== l ? (u = /* @__PURE__ */ Y(V.Root, { children: [c, l] }), n[14] = c, n[15] = l, n[16] = u) : u = n[16], u;
4195
4197
  }, Yo = (e) => {
4196
- let n = q(64), { mode: r, pending: a, unavailable: o, onRequestConfirmation: s, onAction: c } = e, u;
4198
+ let n = q(64), { mode: i, pending: a, unavailable: o, onRequestConfirmation: s, onAction: c } = e, u;
4197
4199
  n[0] === Symbol.for("react.memo_cache_sentinel") ? (u = { key: "menu" }, n[0] = u) : u = n[0];
4198
4200
  let d = fe(u), f;
4199
4201
  n[1] === d ? f = n[2] : (f = d(), n[1] = d, n[2] = f);
4200
4202
  let p = f, [m, h] = Q(null), [g, _] = Q(""), [v, y] = Q(!1), b;
4201
- if (n[3] !== r.actions || n[4] !== r.closeActionId) {
4203
+ if (n[3] !== i.actions || n[4] !== i.closeActionId) {
4202
4204
  let e;
4203
- n[6] === r.closeActionId ? e = n[7] : (e = (e) => e.id === r.closeActionId && !e.argument, n[6] = r.closeActionId, n[7] = e), b = r.actions.find(e), n[3] = r.actions, n[4] = r.closeActionId, n[5] = b;
4205
+ n[6] === i.closeActionId ? e = n[7] : (e = (e) => e.id === i.closeActionId && !e.argument, n[6] = i.closeActionId, n[7] = e), b = i.actions.find(e), n[3] = i.actions, n[4] = i.closeActionId, n[5] = b;
4204
4206
  } else b = n[5];
4205
4207
  let x = b, S;
4206
- n[8] !== r || n[9] !== c ? (S = async (e, t, n) => {
4207
- let i = n === void 0 ? r : n;
4208
+ n[8] !== i || n[9] !== c ? (S = async (e, t, n) => {
4209
+ let r = n === void 0 ? i : n;
4208
4210
  try {
4209
- return await c(r.id, e.id, t, i), h(null), y(!1), !0;
4211
+ return await c(i.id, e.id, t, r), h(null), y(!1), !0;
4210
4212
  } catch {
4211
4213
  return !1;
4212
4214
  }
4213
- }, n[8] = r, n[9] = c, n[10] = S) : S = n[10];
4214
- let C = S, w = r.state;
4215
- a && (w = `Checking · Last confirmed: ${r.state}`), o && (w = `Status unavailable · Last confirmed: ${r.state}`);
4215
+ }, n[8] = i, n[9] = c, n[10] = S) : S = n[10];
4216
+ let C = S, w = i.state;
4217
+ a && (w = `Checking · Last confirmed: ${i.state}`), o && (w = `Status unavailable · Last confirmed: ${i.state}`);
4216
4218
  let T, E;
4217
4219
  n[11] === Symbol.for("react.memo_cache_sentinel") ? (T = { placement: "top-start" }, E = (e) => {
4218
4220
  y(e.open), e.open || h(null);
4219
4221
  }, n[11] = T, n[12] = E) : (T = n[11], E = n[12]);
4220
- let D = `${r.label}: ${r.description} · ${w}`, O;
4221
- n[13] !== r.indicator || n[14] !== o ? (O = r.indicator ? /* @__PURE__ */ J(ae.StartElement, { children: /* @__PURE__ */ J(K.span, {
4222
+ let D = `${i.label}: ${i.description} · ${w}`, O;
4223
+ n[13] !== i.indicator || n[14] !== o ? (O = i.indicator ? /* @__PURE__ */ J(ae.StartElement, { children: /* @__PURE__ */ J(K.span, {
4222
4224
  role: "img",
4223
- "aria-label": o ? "Status unavailable" : r.indicator.label,
4225
+ "aria-label": o ? "Status unavailable" : i.indicator.label,
4224
4226
  "data-status-dot": "",
4225
- "data-tone": o ? "neutral" : r.indicator.tone
4226
- }) }) : null, n[13] = r.indicator, n[14] = o, n[15] = O) : O = n[15];
4227
- let k = `${r.label} details`, A;
4228
- n[16] !== r.label || n[17] !== k ? (A = /* @__PURE__ */ J(ne.Trigger, {
4227
+ "data-tone": o ? "neutral" : i.indicator.tone
4228
+ }) }) : null, n[13] = i.indicator, n[14] = o, n[15] = O) : O = n[15];
4229
+ let k = `${i.label} details`, A;
4230
+ n[16] !== i.label || n[17] !== k ? (A = /* @__PURE__ */ J(ne.Trigger, {
4229
4231
  asChild: !0,
4230
4232
  children: /* @__PURE__ */ J(ae.Label, {
4231
4233
  asChild: !0,
4232
4234
  children: /* @__PURE__ */ J("button", {
4233
4235
  type: "button",
4234
4236
  "aria-label": k,
4235
- children: r.label
4237
+ children: i.label
4236
4238
  })
4237
4239
  })
4238
- }), n[16] = r.label, n[17] = k, n[18] = A) : A = n[18];
4240
+ }), n[16] = i.label, n[17] = k, n[18] = A) : A = n[18];
4239
4241
  let M;
4240
4242
  n[19] !== x || n[20] !== C || n[21] !== a || n[22] !== o ? (M = x ? /* @__PURE__ */ J(ae.CloseTrigger, {
4241
4243
  "aria-label": x.label,
@@ -4259,17 +4261,17 @@ var Vo = 3, Ho = 10, Uo = 4, Wo = (e, t) => {
4259
4261
  closeDelay: 150,
4260
4262
  children: N
4261
4263
  }), n[28] = N, n[29] = D, n[30] = F) : F = n[30];
4262
- let R = `${r.label} details`, z;
4263
- n[31] === r.label ? z = n[32] : (z = /* @__PURE__ */ J(G, {
4264
+ let R = `${i.label} details`, z;
4265
+ n[31] === i.label ? z = n[32] : (z = /* @__PURE__ */ J(G, {
4264
4266
  textStyle: "label/S/medium",
4265
- children: r.label
4266
- }), n[31] = r.label, n[32] = z);
4267
+ children: i.label
4268
+ }), n[31] = i.label, n[32] = z);
4267
4269
  let B;
4268
- n[33] === r.description ? B = n[34] : (B = /* @__PURE__ */ J(G, {
4270
+ n[33] === i.description ? B = n[34] : (B = /* @__PURE__ */ J(G, {
4269
4271
  textStyle: "label/S/regular",
4270
4272
  overflowWrap: "anywhere",
4271
- children: r.description
4272
- }), n[33] = r.description, n[34] = B);
4273
+ children: i.description
4274
+ }), n[33] = i.description, n[34] = B);
4273
4275
  let te;
4274
4276
  n[35] === w ? te = n[36] : (te = /* @__PURE__ */ J(G, {
4275
4277
  textStyle: "label/XS/regular",
@@ -4310,7 +4312,7 @@ var Vo = 3, Ho = 10, Uo = 4, Wo = (e, t) => {
4310
4312
  ]
4311
4313
  }), n[43] = z, n[44] = B, n[45] = te, n[46] = V, n[47] = re) : re = n[47];
4312
4314
  let U;
4313
- n[48] !== m || n[49] !== C || n[50] !== r || n[51] !== s || n[52] !== a || n[53] !== o ? (U = m ? null : r.actions.map((e) => /* @__PURE__ */ J(i, {
4315
+ n[48] !== m || n[49] !== C || n[50] !== i || n[51] !== s || n[52] !== a || n[53] !== o ? (U = m ? null : i.actions.map((e) => /* @__PURE__ */ J(r, {
4314
4316
  role: "button",
4315
4317
  variant: "full-width",
4316
4318
  label: e.label,
@@ -4318,14 +4320,14 @@ var Vo = 3, Ho = 10, Uo = 4, Wo = (e, t) => {
4318
4320
  as: l(e.icon),
4319
4321
  boxSize: "icon-xs"
4320
4322
  }) : void 0,
4321
- disabled: a || o || e.id === r.confirmation?.actionId && !s,
4323
+ disabled: a || o || e.id === i.confirmation?.actionId && !s,
4322
4324
  onActivate: () => {
4323
- e.id === r.confirmation?.actionId ? (y(!1), s?.(r.id)) : e.argument ? (_(e.argument.value ?? ""), h({
4325
+ e.id === i.confirmation?.actionId ? (y(!1), s?.(i.id)) : e.argument ? (_(e.argument.value ?? ""), h({
4324
4326
  action: e,
4325
- mode: r
4327
+ mode: i
4326
4328
  })) : C(e);
4327
4329
  }
4328
- }, e.id)), n[48] = m, n[49] = C, n[50] = r, n[51] = s, n[52] = a, n[53] = o, n[54] = U) : U = n[54];
4330
+ }, e.id)), n[48] = m, n[49] = C, n[50] = i, n[51] = s, n[52] = a, n[53] = o, n[54] = U) : U = n[54];
4329
4331
  let ie;
4330
4332
  n[55] !== p.content || n[56] !== R || n[57] !== re || n[58] !== U ? (ie = /* @__PURE__ */ J(H, { children: /* @__PURE__ */ J(ne.Positioner, { children: /* @__PURE__ */ Y(ne.Content, {
4331
4333
  css: p.content,
@@ -4454,6 +4456,6 @@ var Vo = 3, Ho = 10, Uo = 4, Wo = (e, t) => {
4454
4456
  }), t[10] = u, t[11] = d, t[12] = f) : f = t[12], f;
4455
4457
  };
4456
4458
  //#endregion
4457
- export { ht as ApprovalPrompt, vt as AttachmentList, St as AutoScroll, Zn as ChatInput, pt as ChatMessage, Fo as ChatPanel, lt as ChatPrimitives, zo as ChatSkeleton, Qo as ChatWorkspaceHub, qo as ConversationBrowse, Xo as HarnessControls, In as QuestionPromptControls, At as SendButton, wt as createSerializedPromptState, _ as parseChatLink, Rn as useQuestionPromptState };
4459
+ export { ht as ApprovalPrompt, vt as AttachmentList, St as AutoScroll, Zn as ChatInput, pt as ChatMessage, Fo as ChatPanel, lt as ChatPrimitives, zo as ChatSkeleton, Qo as ChatWorkspaceHub, qo as ConversationBrowse, Xo as HarnessControls, In as QuestionPromptControls, At as SendButton, wt as createSerializedPromptState, v as parseChatLink, Rn as useQuestionPromptState };
4458
4460
 
4459
4461
  //# sourceMappingURL=chat-ui.js.map