@carto/ps-react-ui 4.4.0-chat-ui.2 → 4.4.0-chat-ui.3

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.
package/dist/chat.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import { jsx as a, jsxs as T, Fragment as Te } from "react/jsx-runtime";
2
2
  import { c as z } from "react/compiler-runtime";
3
- import { styled as se, Typography as _, Box as y, Link as ke, ButtonBase as Se, Fab as _e, IconButton as H, FilledInput as $e, FormHelperText as Ae, FormControl as Ie, DialogTitle as Re, DialogContent as Ee, Dialog as Le, createSvgIcon as ae, Tooltip as De, Button as re, Collapse as le, CircularProgress as ze } from "@mui/material";
4
- import { ErrorOutline as he, ArrowUpward as Be, KeyboardArrowDown as Fe, Close as ge, StopCircleOutlined as We, ArrowUpwardOutlined as Me, ThumbUp as Oe, ThumbUpOutlined as He, ThumbDown as Pe, ThumbDownOutlined as Ve, ArrowRight as xe, Error as Ue, CheckCircle as je, ChevronRight as Ne } from "@mui/icons-material";
3
+ import { styled as se, Typography as _, Box as y, Link as ke, ButtonBase as Se, Fab as _e, IconButton as O, FilledInput as $e, FormHelperText as Ae, FormControl as Ie, DialogTitle as Re, DialogContent as Ee, Dialog as Le, createSvgIcon as ae, Tooltip as De, Button as re, Collapse as le, CircularProgress as ze } from "@mui/material";
4
+ import { ErrorOutline as ge, ArrowUpward as Be, KeyboardArrowDown as Fe, Close as he, StopCircleOutlined as We, ArrowUpwardOutlined as Me, ThumbUp as He, ThumbUpOutlined as Oe, ThumbDown as Pe, ThumbDownOutlined as Ve, ArrowRight as xe, Error as Ue, CheckCircle as je, ChevronRight as Ne } from "@mui/icons-material";
5
5
  import { keyframes as N } from "@mui/material/styles";
6
6
  import { useRef as be, forwardRef as ce, useState as ie, useEffect as Ge } from "react";
7
- import { C as Ke } from "./copy-button-DGL1tyli.js";
8
- import { a as Xe } from "./index-BnyeR7Qx.js";
9
- const q = 768, Mt = 300, Ot = 100, Ye = 126, ye = se(_)(() => ({
7
+ import { C as Xe } from "./copy-button-DGL1tyli.js";
8
+ import { a as Ye } from "./index-BnyeR7Qx.js";
9
+ const q = 768, Mt = 300, Ht = 100, Ke = 126, ye = se(_)(() => ({
10
10
  whiteSpace: "pre-wrap",
11
11
  overflowX: "clip",
12
12
  overflowWrap: "break-word",
13
13
  maxWidth: "100%"
14
14
  }));
15
15
  ye.displayName = "ChatMessageOverflow";
16
- const O = {
16
+ const H = {
17
17
  agentMessageContainer: (t) => ({
18
18
  width: "100%",
19
19
  display: "flex",
@@ -25,6 +25,48 @@ const O = {
25
25
  },
26
26
  "& + .PsChat--user-message": {
27
27
  marginTop: t.spacing(3)
28
+ },
29
+ "& > p:first-of-type": {
30
+ marginTop: 0
31
+ },
32
+ "& table": {
33
+ alignSelf: "stretch",
34
+ display: "block",
35
+ overflowX: "auto",
36
+ maxWidth: "100%",
37
+ borderCollapse: "collapse",
38
+ margin: t.spacing(1, 0),
39
+ fontSize: "0.875em"
40
+ },
41
+ "& th, & td": {
42
+ border: `1px solid ${t.palette.divider}`,
43
+ padding: t.spacing(0.5, 1),
44
+ textAlign: "left"
45
+ },
46
+ "& th": {
47
+ backgroundColor: t.palette.action.hover,
48
+ fontWeight: 600
49
+ },
50
+ "& tr:nth-of-type(even) td": {
51
+ backgroundColor: t.palette.action.hover
52
+ },
53
+ "& ul.contains-task-list": {
54
+ listStyle: "none",
55
+ paddingLeft: 0
56
+ },
57
+ '& .task-list-item input[type="checkbox"]': {
58
+ marginRight: t.spacing(0.5)
59
+ },
60
+ "& del": {
61
+ textDecoration: "line-through",
62
+ opacity: 0.7
63
+ },
64
+ "& > ul, & > ol": {
65
+ margin: t.spacing(1, 0),
66
+ paddingLeft: t.spacing(3),
67
+ "& > li + li": {
68
+ marginTop: t.spacing(1)
69
+ }
28
70
  }
29
71
  }),
30
72
  userMessageContainer: {
@@ -163,7 +205,7 @@ const O = {
163
205
  }
164
206
  }
165
207
  };
166
- function Ht(t) {
208
+ function Ot(t) {
167
209
  const e = z(11), {
168
210
  children: o,
169
211
  muted: r,
@@ -171,18 +213,18 @@ function Ht(t) {
171
213
  sx: n
172
214
  } = t, u = r === void 0 ? !1 : r;
173
215
  let s;
174
- e[0] !== l ? (s = l && /* @__PURE__ */ a(y, { sx: O.userMessageTop, children: l }), e[0] = l, e[1] = s) : s = e[1];
175
- const i = u ? O.muted : void 0;
216
+ e[0] !== l ? (s = l && /* @__PURE__ */ a(y, { sx: H.userMessageTop, children: l }), e[0] = l, e[1] = s) : s = e[1];
217
+ const i = u ? H.muted : void 0;
176
218
  let c;
177
219
  e[2] !== n || e[3] !== i ? (c = {
178
- ...O.userMessage,
220
+ ...H.userMessage,
179
221
  ...i,
180
222
  ...n
181
223
  }, e[2] = n, e[3] = i, e[4] = c) : c = e[4];
182
224
  let d;
183
225
  e[5] !== o || e[6] !== c ? (d = /* @__PURE__ */ a(ye, { className: "PsChat--user-message-inner", variant: "body2", sx: c, children: o }), e[5] = o, e[6] = c, e[7] = d) : d = e[7];
184
226
  let x;
185
- return e[8] !== s || e[9] !== d ? (x = /* @__PURE__ */ T(y, { className: "PsChat--user-message", sx: O.userMessageContainer, children: [
227
+ return e[8] !== s || e[9] !== d ? (x = /* @__PURE__ */ T(y, { className: "PsChat--user-message", sx: H.userMessageContainer, children: [
186
228
  s,
187
229
  d
188
230
  ] }), e[8] = s, e[9] = d, e[10] = x) : x = e[10], x;
@@ -199,7 +241,7 @@ const Je = (t) => {
199
241
  return e[3] !== r || e[4] !== l ? (n = /* @__PURE__ */ a(y, { className: l, ...r }), e[3] = r, e[4] = l, e[5] = n) : n = e[5], n;
200
242
  }, qe = se(Je)(({
201
243
  theme: t
202
- }) => O.agentMessageContainer(t));
244
+ }) => H.agentMessageContainer(t));
203
245
  qe.displayName = "ChatAgentMessage";
204
246
  function Pt(t) {
205
247
  const e = z(13), {
@@ -210,15 +252,15 @@ function Pt(t) {
210
252
  } = t;
211
253
  let u;
212
254
  e[0] !== n ? (u = {
213
- ...O.errorMessage,
255
+ ...H.errorMessage,
214
256
  ...n
215
257
  }, e[0] = n, e[1] = u) : u = e[1];
216
258
  let s;
217
- e[2] !== r ? (s = r ?? /* @__PURE__ */ a(he, { fontSize: "medium", color: "error" }), e[2] = r, e[3] = s) : s = e[3];
259
+ e[2] !== r ? (s = r ?? /* @__PURE__ */ a(ge, { fontSize: "medium", color: "error" }), e[2] = r, e[3] = s) : s = e[3];
218
260
  let i;
219
261
  e[4] !== o ? (i = o.map(Ze), e[4] = o, e[5] = i) : i = e[5];
220
262
  let c;
221
- e[6] !== l ? (c = l?.length ? /* @__PURE__ */ a(y, { sx: O.errorActions, children: (l ?? []).map(Qe) }) : null, e[6] = l, e[7] = c) : c = e[7];
263
+ e[6] !== l ? (c = l?.length ? /* @__PURE__ */ a(y, { sx: H.errorActions, children: (l ?? []).map(Qe) }) : null, e[6] = l, e[7] = c) : c = e[7];
222
264
  let d;
223
265
  return e[8] !== u || e[9] !== s || e[10] !== i || e[11] !== c ? (d = /* @__PURE__ */ T(y, { sx: u, children: [
224
266
  s,
@@ -228,8 +270,8 @@ function Pt(t) {
228
270
  }
229
271
  function Qe(t, e) {
230
272
  return /* @__PURE__ */ T("span", { children: [
231
- e > 0 && /* @__PURE__ */ a(_, { component: "span", variant: "body2", sx: O.errorActionSeparator, children: "·" }),
232
- /* @__PURE__ */ a(ke, { component: "button", variant: "body2", onClick: t.onClick, sx: O.errorAction, children: t.label })
273
+ e > 0 && /* @__PURE__ */ a(_, { component: "span", variant: "body2", sx: H.errorActionSeparator, children: "·" }),
274
+ /* @__PURE__ */ a(ke, { component: "button", variant: "body2", onClick: t.onClick, sx: H.errorAction, children: t.label })
233
275
  ] }, e);
234
276
  }
235
277
  function Ze(t, e) {
@@ -250,7 +292,7 @@ function et(t) {
250
292
  } : void 0, e[5] = o, e[6] = u) : u = e[6];
251
293
  let s;
252
294
  e[7] !== n || e[8] !== u ? (s = {
253
- ...O.suggestionButton,
295
+ ...H.suggestionButton,
254
296
  ...u,
255
297
  ...n
256
298
  }, e[7] = n, e[8] = u, e[9] = s) : s = e[9];
@@ -594,24 +636,24 @@ function Vt(t) {
594
636
  ...l
595
637
  }, e[2] = n, e[3] = l, e[4] = c) : c = e[4];
596
638
  const d = n * 0.75, x = n * 0.75;
597
- let h;
598
- e[5] !== d || e[6] !== x ? (h = /* @__PURE__ */ a(y, { component: "span", sx: {
639
+ let g;
640
+ e[5] !== d || e[6] !== x ? (g = /* @__PURE__ */ a(y, { component: "span", sx: {
599
641
  ...w.loaderOuterCircle,
600
642
  width: d,
601
643
  height: x
602
- } }), e[5] = d, e[6] = x, e[7] = h) : h = e[7];
644
+ } }), e[5] = d, e[6] = x, e[7] = g) : g = e[7];
603
645
  const f = n * 0.32, m = n * 0.32;
604
- let g;
605
- e[8] !== m || e[9] !== f ? (g = /* @__PURE__ */ a(y, { component: "span", sx: {
646
+ let h;
647
+ e[8] !== m || e[9] !== f ? (h = /* @__PURE__ */ a(y, { component: "span", sx: {
606
648
  ...w.loaderInnerCircle,
607
649
  width: f,
608
650
  height: m
609
- } }), e[8] = m, e[9] = f, e[10] = g) : g = e[10];
651
+ } }), e[8] = m, e[9] = f, e[10] = h) : h = e[10];
610
652
  let p;
611
- return e[11] !== g || e[12] !== i || e[13] !== c || e[14] !== h ? (p = /* @__PURE__ */ T(y, { role: "status", "aria-busy": !0, "aria-label": i, sx: c, children: [
612
- h,
613
- g
614
- ] }), e[11] = g, e[12] = i, e[13] = c, e[14] = h, e[15] = p) : p = e[15], p;
653
+ return e[11] !== h || e[12] !== i || e[13] !== c || e[14] !== g ? (p = /* @__PURE__ */ T(y, { role: "status", "aria-busy": !0, "aria-label": i, sx: c, children: [
654
+ g,
655
+ h
656
+ ] }), e[11] = h, e[12] = i, e[13] = c, e[14] = g, e[15] = p) : p = e[15], p;
615
657
  }
616
658
  const lt = N`
617
659
  0% { border-top-color: transparent; border-bottom-color: var(--chat-border-color) }
@@ -661,7 +703,15 @@ const lt = N`
661
703
  },
662
704
  footer: {
663
705
  maxWidth: q,
664
- margin: "0 auto"
706
+ margin: "0 auto",
707
+ "& textarea": {
708
+ resize: "none",
709
+ maxHeight: "10em",
710
+ overflowY: "auto !important",
711
+ paddingRight: ({
712
+ spacing: t
713
+ }) => t(5)
714
+ }
665
715
  },
666
716
  footerCaption: {
667
717
  textAlign: "center"
@@ -756,10 +806,10 @@ function Ut(t) {
756
806
  ...l
757
807
  }, e[3] = l, e[4] = d) : d = e[4];
758
808
  const x = u.jumpToLatest ?? "Jump to latest";
759
- let h;
760
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(Fe, {}), e[5] = h) : h = e[5];
809
+ let g;
810
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ a(Fe, {}), e[5] = g) : g = e[5];
761
811
  let f;
762
- e[6] !== x ? (f = /* @__PURE__ */ a(y, { sx: W.jumpToLatestWrapper, children: /* @__PURE__ */ a(_e, { size: "small", onClick: c, "aria-label": x, sx: W.jumpToLatest, children: h }) }), e[6] = x, e[7] = f) : f = e[7];
812
+ e[6] !== x ? (f = /* @__PURE__ */ a(y, { sx: W.jumpToLatestWrapper, children: /* @__PURE__ */ a(_e, { size: "small", onClick: c, "aria-label": x, sx: W.jumpToLatest, children: g }) }), e[6] = x, e[7] = f) : f = e[7];
763
813
  let m;
764
814
  return e[8] !== o || e[9] !== d || e[10] !== f ? (m = /* @__PURE__ */ T(y, { ref: s, sx: d, children: [
765
815
  o,
@@ -782,7 +832,7 @@ function jt(t) {
782
832
  let i;
783
833
  e[2] !== r ? (i = /* @__PURE__ */ a(_, { variant: "subtitle2", sx: W.headerTitle, children: r }), e[2] = r, e[3] = i) : i = e[3];
784
834
  let c;
785
- e[4] !== n ? (c = n && /* @__PURE__ */ a(H, { size: "medium", onClick: n, "aria-label": "Close", children: /* @__PURE__ */ a(ge, {}) }), e[4] = n, e[5] = c) : c = e[5];
835
+ e[4] !== n ? (c = n && /* @__PURE__ */ a(O, { size: "medium", onClick: n, "aria-label": "Close", children: /* @__PURE__ */ a(he, {}) }), e[4] = n, e[5] = c) : c = e[5];
786
836
  let d;
787
837
  e[6] !== l || e[7] !== c ? (d = /* @__PURE__ */ T(y, { sx: W.headerActions, children: [
788
838
  l,
@@ -808,12 +858,12 @@ function Nt(t) {
808
858
  labels: c,
809
859
  caption: d,
810
860
  sx: x
811
- } = t, h = u === void 0 ? !1 : u, f = s === void 0 ? !1 : s, m = i === void 0 ? "Type a message..." : i;
812
- let g;
813
- e[0] !== c ? (g = c === void 0 ? {} : c, e[0] = c, e[1] = g) : g = e[1];
814
- const p = g, b = d === void 0 ? st : d;
861
+ } = t, g = u === void 0 ? !1 : u, f = s === void 0 ? !1 : s, m = i === void 0 ? "Type a message..." : i;
862
+ let h;
863
+ e[0] !== c ? (h = c === void 0 ? {} : c, e[0] = c, e[1] = h) : h = e[1];
864
+ const p = h, b = d === void 0 ? st : d;
815
865
  let v;
816
- e[2] !== f || e[3] !== h || e[4] !== o ? (v = o.trim() && !f && !h, e[2] = f, e[3] = h, e[4] = o, e[5] = v) : v = e[5];
866
+ e[2] !== f || e[3] !== g || e[4] !== o ? (v = o.trim() && !f && !g, e[2] = f, e[3] = g, e[4] = o, e[5] = v) : v = e[5];
817
867
  const C = v;
818
868
  let k;
819
869
  e[6] !== C || e[7] !== l ? (k = (M) => {
@@ -827,7 +877,7 @@ function Nt(t) {
827
877
  }, e[9] = x, e[10] = A) : A = e[10];
828
878
  let I;
829
879
  e[11] !== r ? (I = (M) => r(M.target.value), e[11] = r, e[12] = I) : I = e[12];
830
- const R = f || h;
880
+ const R = f || g;
831
881
  let $;
832
882
  e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
833
883
  minHeight: 0
@@ -835,7 +885,7 @@ function Nt(t) {
835
885
  let E;
836
886
  e[14] !== S || e[15] !== m || e[16] !== I || e[17] !== R || e[18] !== o ? (E = /* @__PURE__ */ a($e, { multiline: !0, value: o, onChange: I, onKeyDown: S, placeholder: m, disabled: R, sx: W.footer, style: $, fullWidth: !0, size: "small" }), e[14] = S, e[15] = m, e[16] = I, e[17] = R, e[18] = o, e[19] = E) : E = e[19];
837
887
  let B;
838
- e[20] !== C || e[21] !== f || e[22] !== h || e[23] !== p.send || e[24] !== p.stop || e[25] !== l || e[26] !== n ? (B = /* @__PURE__ */ a(y, { sx: W.footerCorner, children: h && n ? /* @__PURE__ */ a(H, { size: "small", onClick: n, disabled: f, "aria-label": p.stop ?? "Stop", children: /* @__PURE__ */ a(We, {}) }) : /* @__PURE__ */ a(H, { size: "small", variant: "contained", onClick: l, disabled: !C, "aria-label": p.send ?? "Send", children: /* @__PURE__ */ a(Me, {}) }) }), e[20] = C, e[21] = f, e[22] = h, e[23] = p.send, e[24] = p.stop, e[25] = l, e[26] = n, e[27] = B) : B = e[27];
888
+ e[20] !== C || e[21] !== f || e[22] !== g || e[23] !== p.send || e[24] !== p.stop || e[25] !== l || e[26] !== n ? (B = /* @__PURE__ */ a(y, { sx: W.footerCorner, children: g && n ? /* @__PURE__ */ a(O, { size: "small", onClick: n, disabled: f, "aria-label": p.stop ?? "Stop", children: /* @__PURE__ */ a(We, {}) }) : /* @__PURE__ */ a(O, { size: "small", variant: "contained", onClick: l, disabled: !C, "aria-label": p.send ?? "Send", children: /* @__PURE__ */ a(Me, {}) }) }), e[20] = C, e[21] = f, e[22] = g, e[23] = p.send, e[24] = p.stop, e[25] = l, e[26] = n, e[27] = B) : B = e[27];
839
889
  let L;
840
890
  e[28] !== b ? (L = b ? /* @__PURE__ */ a(Ae, { sx: W.footerCaption, children: b }) : null, e[28] = b, e[29] = L) : L = e[29];
841
891
  let D;
@@ -865,7 +915,7 @@ function Gt(t) {
865
915
  onSelect: s,
866
916
  sx: i
867
917
  } = t, c = u === void 0 ? "small" : u;
868
- let d, x, h, f, m, g, p, b;
918
+ let d, x, g, f, m, h, p, b;
869
919
  if (e[0] !== l || e[1] !== o || e[2] !== n || e[3] !== s || e[4] !== c || e[5] !== i || e[6] !== r) {
870
920
  const k = n.map(at);
871
921
  x = y;
@@ -874,26 +924,26 @@ function Gt(t) {
874
924
  ...W.starter,
875
925
  gap: S,
876
926
  ...i
877
- }, e[15] = i, e[16] = S, e[17] = m) : m = e[17], g = o, e[18] !== c || e[19] !== r ? (p = r && /* @__PURE__ */ a(_, { variant: c === "small" ? "h6" : "h5", children: r }), e[18] = c, e[19] = r, e[20] = p) : p = e[20], e[21] !== l || e[22] !== c ? (b = l && /* @__PURE__ */ a(_, { variant: c === "small" ? "body2" : "body1", color: "text.secondary", children: l }), e[21] = l, e[22] = c, e[23] = b) : b = e[23], d = y;
927
+ }, e[15] = i, e[16] = S, e[17] = m) : m = e[17], h = o, e[18] !== c || e[19] !== r ? (p = r && /* @__PURE__ */ a(_, { variant: c === "small" ? "h6" : "h5", children: r }), e[18] = c, e[19] = r, e[20] = p) : p = e[20], e[21] !== l || e[22] !== c ? (b = l && /* @__PURE__ */ a(_, { variant: c === "small" ? "body2" : "body1", color: "text.secondary", children: l }), e[21] = l, e[22] = c, e[23] = b) : b = e[23], d = y;
878
928
  const A = c === "small" ? 1 : 2, I = n.length > 2 ? W.starterItemsTwoCol : void 0;
879
- e[24] !== I || e[25] !== A ? (h = {
929
+ e[24] !== I || e[25] !== A ? (g = {
880
930
  ...W.starterItems,
881
931
  gap: A,
882
932
  ...I
883
- }, e[24] = I, e[25] = A, e[26] = h) : h = e[26];
933
+ }, e[24] = I, e[25] = A, e[26] = g) : g = e[26];
884
934
  let R;
885
- e[27] !== s ? (R = ($) => /* @__PURE__ */ a(et, { label: $.label, onClick: () => s?.($.label), color: $.color }, $.label), e[27] = s, e[28] = R) : R = e[28], f = k.map(R), e[0] = l, e[1] = o, e[2] = n, e[3] = s, e[4] = c, e[5] = i, e[6] = r, e[7] = d, e[8] = x, e[9] = h, e[10] = f, e[11] = m, e[12] = g, e[13] = p, e[14] = b;
935
+ e[27] !== s ? (R = ($) => /* @__PURE__ */ a(et, { label: $.label, onClick: () => s?.($.label), color: $.color }, $.label), e[27] = s, e[28] = R) : R = e[28], f = k.map(R), e[0] = l, e[1] = o, e[2] = n, e[3] = s, e[4] = c, e[5] = i, e[6] = r, e[7] = d, e[8] = x, e[9] = g, e[10] = f, e[11] = m, e[12] = h, e[13] = p, e[14] = b;
886
936
  } else
887
- d = e[7], x = e[8], h = e[9], f = e[10], m = e[11], g = e[12], p = e[13], b = e[14];
937
+ d = e[7], x = e[8], g = e[9], f = e[10], m = e[11], h = e[12], p = e[13], b = e[14];
888
938
  let v;
889
- e[29] !== d || e[30] !== h || e[31] !== f ? (v = /* @__PURE__ */ a(d, { sx: h, children: f }), e[29] = d, e[30] = h, e[31] = f, e[32] = v) : v = e[32];
939
+ e[29] !== d || e[30] !== g || e[31] !== f ? (v = /* @__PURE__ */ a(d, { sx: g, children: f }), e[29] = d, e[30] = g, e[31] = f, e[32] = v) : v = e[32];
890
940
  let C;
891
- return e[33] !== x || e[34] !== m || e[35] !== g || e[36] !== p || e[37] !== b || e[38] !== v ? (C = /* @__PURE__ */ T(x, { sx: m, children: [
892
- g,
941
+ return e[33] !== x || e[34] !== m || e[35] !== h || e[36] !== p || e[37] !== b || e[38] !== v ? (C = /* @__PURE__ */ T(x, { sx: m, children: [
942
+ h,
893
943
  p,
894
944
  b,
895
945
  v
896
- ] }), e[33] = x, e[34] = m, e[35] = g, e[36] = p, e[37] = b, e[38] = v, e[39] = C) : C = e[39], C;
946
+ ] }), e[33] = x, e[34] = m, e[35] = h, e[36] = p, e[37] = b, e[38] = v, e[39] = C) : C = e[39], C;
897
947
  }
898
948
  function at(t, e) {
899
949
  return typeof t == "string" ? {
@@ -904,14 +954,14 @@ function at(t, e) {
904
954
  color: t.color ?? de[e]
905
955
  };
906
956
  }
907
- const Kt = se(y)(({
957
+ const Xt = se(y)(({
908
958
  theme: t
909
959
  }) => ({
910
960
  display: "flex",
911
961
  alignItems: "center",
912
962
  gap: t.spacing(0.5)
913
963
  }));
914
- function Xt(t) {
964
+ function Yt(t) {
915
965
  const e = z(25), {
916
966
  rating: o,
917
967
  onRatingChange: r,
@@ -924,16 +974,16 @@ function Xt(t) {
924
974
  e[2] !== r || e[3] !== o ? (s = () => r?.(o === "up" ? null : "up"), e[2] = r, e[3] = o, e[4] = s) : s = e[4];
925
975
  const i = u.thumbUp ?? "Thumbs up", c = o === "up" ? "primary" : void 0;
926
976
  let d;
927
- e[5] !== o ? (d = o === "up" ? /* @__PURE__ */ a(Oe, { fontSize: "small" }) : /* @__PURE__ */ a(He, { fontSize: "small" }), e[5] = o, e[6] = d) : d = e[6];
977
+ e[5] !== o ? (d = o === "up" ? /* @__PURE__ */ a(He, { fontSize: "small" }) : /* @__PURE__ */ a(Oe, { fontSize: "small" }), e[5] = o, e[6] = d) : d = e[6];
928
978
  let x;
929
- e[7] !== s || e[8] !== i || e[9] !== c || e[10] !== d ? (x = /* @__PURE__ */ a(H, { size: "small", onClick: s, "aria-label": i, color: c, children: d }), e[7] = s, e[8] = i, e[9] = c, e[10] = d, e[11] = x) : x = e[11];
930
- let h;
931
- e[12] !== r || e[13] !== o ? (h = () => r?.(o === "down" ? null : "down"), e[12] = r, e[13] = o, e[14] = h) : h = e[14];
932
- const f = u.thumbDown ?? "Thumbs down", m = o === "down" ? "primary" : void 0;
979
+ e[7] !== s || e[8] !== i || e[9] !== c || e[10] !== d ? (x = /* @__PURE__ */ a(O, { size: "small", onClick: s, "aria-label": i, color: c, children: d }), e[7] = s, e[8] = i, e[9] = c, e[10] = d, e[11] = x) : x = e[11];
933
980
  let g;
934
- e[15] !== o ? (g = o === "down" ? /* @__PURE__ */ a(Pe, { fontSize: "small" }) : /* @__PURE__ */ a(Ve, { fontSize: "small" }), e[15] = o, e[16] = g) : g = e[16];
981
+ e[12] !== r || e[13] !== o ? (g = () => r?.(o === "down" ? null : "down"), e[12] = r, e[13] = o, e[14] = g) : g = e[14];
982
+ const f = u.thumbDown ?? "Thumbs down", m = o === "down" ? "primary" : void 0;
983
+ let h;
984
+ e[15] !== o ? (h = o === "down" ? /* @__PURE__ */ a(Pe, { fontSize: "small" }) : /* @__PURE__ */ a(Ve, { fontSize: "small" }), e[15] = o, e[16] = h) : h = e[16];
935
985
  let p;
936
- e[17] !== m || e[18] !== g || e[19] !== h || e[20] !== f ? (p = /* @__PURE__ */ a(H, { size: "small", onClick: h, "aria-label": f, color: m, children: g }), e[17] = m, e[18] = g, e[19] = h, e[20] = f, e[21] = p) : p = e[21];
986
+ e[17] !== m || e[18] !== h || e[19] !== g || e[20] !== f ? (p = /* @__PURE__ */ a(O, { size: "small", onClick: g, "aria-label": f, color: m, children: h }), e[17] = m, e[18] = h, e[19] = g, e[20] = f, e[21] = p) : p = e[21];
937
987
  let b;
938
988
  return e[22] !== p || e[23] !== x ? (b = /* @__PURE__ */ T(Te, { children: [
939
989
  x,
@@ -999,25 +1049,25 @@ function ut(t) {
999
1049
  gap: 0.5
1000
1050
  }, e[3] = c) : c = e[3];
1001
1051
  let d;
1002
- e[4] !== n ? (d = /* @__PURE__ */ a(Ke, { copyText: n, "aria-label": "Copy content" }), e[4] = n, e[5] = d) : d = e[5];
1052
+ e[4] !== n ? (d = /* @__PURE__ */ a(Xe, { copyText: n, "aria-label": "Copy content" }), e[4] = n, e[5] = d) : d = e[5];
1003
1053
  let x;
1004
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ a(ge, {}), e[6] = x) : x = e[6];
1005
- let h;
1006
- e[7] !== r ? (h = /* @__PURE__ */ a(H, { onClick: r, "aria-label": "close", children: x }), e[7] = r, e[8] = h) : h = e[8];
1054
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ a(he, {}), e[6] = x) : x = e[6];
1055
+ let g;
1056
+ e[7] !== r ? (g = /* @__PURE__ */ a(O, { onClick: r, "aria-label": "close", children: x }), e[7] = r, e[8] = g) : g = e[8];
1007
1057
  let f;
1008
- e[9] !== d || e[10] !== h ? (f = /* @__PURE__ */ T(y, { sx: c, children: [
1058
+ e[9] !== d || e[10] !== g ? (f = /* @__PURE__ */ T(y, { sx: c, children: [
1009
1059
  d,
1010
- h
1011
- ] }), e[9] = d, e[10] = h, e[11] = f) : f = e[11];
1060
+ g
1061
+ ] }), e[9] = d, e[10] = g, e[11] = f) : f = e[11];
1012
1062
  let m;
1013
1063
  e[12] !== f || e[13] !== l ? (m = /* @__PURE__ */ T(Re, { sx: w.fullViewTitle, children: [
1014
1064
  l,
1015
1065
  f
1016
1066
  ] }), e[12] = f, e[13] = l, e[14] = m) : m = e[14];
1017
- let g;
1018
- e[15] !== s ? (g = s.map(ft), e[15] = s, e[16] = g) : g = e[16];
1067
+ let h;
1068
+ e[15] !== s ? (h = s.map(ft), e[15] = s, e[16] = h) : h = e[16];
1019
1069
  let p;
1020
- e[17] !== g ? (p = /* @__PURE__ */ a(Ee, { sx: w.fullViewDialogContent, children: /* @__PURE__ */ a(y, { component: "pre", sx: w.fullViewPre, children: g }) }), e[17] = g, e[18] = p) : p = e[18];
1070
+ e[17] !== h ? (p = /* @__PURE__ */ a(Ee, { sx: w.fullViewDialogContent, children: /* @__PURE__ */ a(y, { component: "pre", sx: w.fullViewPre, children: h }) }), e[17] = h, e[18] = p) : p = e[18];
1021
1071
  let b;
1022
1072
  return e[19] !== r || e[20] !== o || e[21] !== p || e[22] !== m ? (b = /* @__PURE__ */ T(Le, { open: o, onClose: r, sx: w.fullViewDialog, PaperProps: i, fullScreen: !0, children: [
1023
1073
  m,
@@ -1037,7 +1087,7 @@ function pt(t, e) {
1037
1087
  function mt(t) {
1038
1088
  return dt(t);
1039
1089
  }
1040
- const ht = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ a(
1090
+ const gt = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ a(
1041
1091
  "path",
1042
1092
  {
1043
1093
  fill: "currentColor",
@@ -1045,10 +1095,10 @@ const ht = () => /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg",
1045
1095
  d: "M12.01 11.83 15.18 15l1.41-1.41L12.01 9l-4.59 4.59L8.84 15z",
1046
1096
  clipRule: "evenodd"
1047
1097
  }
1048
- ) }), gt = ae(ht(), "ArrowUp");
1098
+ ) }), ht = ae(gt(), "ArrowUp");
1049
1099
  function xt({ width: t, height: e, sx: o, ...r }, l) {
1050
1100
  return /* @__PURE__ */ a(
1051
- gt,
1101
+ ht,
1052
1102
  {
1053
1103
  ref: l,
1054
1104
  viewBox: "0 0 24 24",
@@ -1125,7 +1175,7 @@ function ue(t) {
1125
1175
  } = t, s = r === void 0 ? "" : r, i = l === void 0 ? !1 : l;
1126
1176
  let c;
1127
1177
  e[0] !== n ? (c = n === void 0 ? {} : n, e[0] = n, e[1] = c) : c = e[1];
1128
- const d = c, x = be(null), [h, f] = ie(!1), [m, g] = ie(!1);
1178
+ const d = c, x = be(null), [g, f] = ie(!1), [m, h] = ie(!1);
1129
1179
  let p;
1130
1180
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
1131
1181
  const D = x.current;
@@ -1154,15 +1204,15 @@ function ue(t) {
1154
1204
  let I;
1155
1205
  e[10] !== A ? (I = {
1156
1206
  ...w.codeAreaPre,
1157
- maxHeight: Ye,
1207
+ maxHeight: Ke,
1158
1208
  ...A
1159
1209
  }, e[10] = A, e[11] = I) : I = e[11];
1160
1210
  let R;
1161
1211
  e[12] !== o || e[13] !== I ? (R = /* @__PURE__ */ a(y, { component: "pre", ref: x, sx: I, children: o }), e[12] = o, e[13] = I, e[14] = R) : R = e[14];
1162
1212
  let $;
1163
- e[15] !== k || e[16] !== h ? ($ = h && /* @__PURE__ */ a(De, { title: k, children: /* @__PURE__ */ a(H, { size: "small", onClick: () => g(!0), sx: w.codeAreaFullViewButton, children: /* @__PURE__ */ a(Ce, {}) }) }), e[15] = k, e[16] = h, e[17] = $) : $ = e[17];
1213
+ e[15] !== k || e[16] !== g ? ($ = g && /* @__PURE__ */ a(De, { title: k, children: /* @__PURE__ */ a(O, { size: "small", onClick: () => h(!0), sx: w.codeAreaFullViewButton, children: /* @__PURE__ */ a(Ce, {}) }) }), e[15] = k, e[16] = g, e[17] = $) : $ = e[17];
1164
1214
  let E;
1165
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = () => g(!1), e[18] = E) : E = e[18];
1215
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = () => h(!1), e[18] = E) : E = e[18];
1166
1216
  let B;
1167
1217
  e[19] !== o || e[20] !== m || e[21] !== s ? (B = /* @__PURE__ */ a(ut, { open: m, onClose: E, title: s, content: o }), e[19] = o, e[20] = m, e[21] = s, e[22] = B) : B = e[22];
1168
1218
  let L;
@@ -1236,12 +1286,12 @@ function we(t) {
1236
1286
  } = t;
1237
1287
  let l;
1238
1288
  e[0] !== r ? (l = r === void 0 ? {} : r, e[0] = r, e[1] = l) : l = e[1];
1239
- const n = l, u = o.status === "error", s = n.toolExecuted ?? "Tool executed", i = n.reference ?? "Reference:", c = n.duration ?? "Duration:", d = n.status ?? "Status:", x = n.inputArguments ?? "Input arguments:", h = n.output ?? "Output:";
1289
+ const n = l, u = o.status === "error", s = n.toolExecuted ?? "Tool executed", i = n.reference ?? "Reference:", c = n.duration ?? "Duration:", d = n.status ?? "Status:", x = n.inputArguments ?? "Input arguments:", g = n.output ?? "Output:";
1240
1290
  let f;
1241
1291
  e[2] !== i || e[3] !== o.reference ? (f = o.reference && /* @__PURE__ */ T(y, { sx: w.traceField, children: [
1242
1292
  /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: i }),
1243
1293
  /* @__PURE__ */ T(y, { sx: w.traceReference, children: [
1244
- /* @__PURE__ */ a(Xe, { color: "success" }),
1294
+ /* @__PURE__ */ a(Ye, { color: "success" }),
1245
1295
  /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, children: o.reference })
1246
1296
  ] })
1247
1297
  ] }), e[2] = i, e[3] = o.reference, e[4] = f) : f = e[4];
@@ -1253,15 +1303,15 @@ function we(t) {
1253
1303
  "s"
1254
1304
  ] })
1255
1305
  ] }), e[5] = c, e[6] = o.duration, e[7] = m) : m = e[7];
1256
- let g;
1257
- e[8] !== d ? (g = /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: d }), e[8] = d, e[9] = g) : g = e[9];
1306
+ let h;
1307
+ e[8] !== d ? (h = /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceFieldLabel, children: d }), e[8] = d, e[9] = h) : h = e[9];
1258
1308
  let p;
1259
1309
  e[10] !== n || e[11] !== o.status ? (p = /* @__PURE__ */ a(_t, { status: o.status, labels: n }), e[10] = n, e[11] = o.status, e[12] = p) : p = e[12];
1260
1310
  let b;
1261
- e[13] !== g || e[14] !== p ? (b = /* @__PURE__ */ T(y, { sx: w.traceField, children: [
1262
- g,
1311
+ e[13] !== h || e[14] !== p ? (b = /* @__PURE__ */ T(y, { sx: w.traceField, children: [
1312
+ h,
1263
1313
  p
1264
- ] }), e[13] = g, e[14] = p, e[15] = b) : b = e[15];
1314
+ ] }), e[13] = h, e[14] = p, e[15] = b) : b = e[15];
1265
1315
  let v;
1266
1316
  e[16] !== x || e[17] !== u || e[18] !== o.inputArguments || e[19] !== o.output || e[20] !== s ? (v = o.inputArguments && /* @__PURE__ */ T(y, { children: [
1267
1317
  /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceField, children: x }),
@@ -1271,12 +1321,12 @@ function we(t) {
1271
1321
  }, content: o.inputArguments, title: `${s}: ${x}`, isError: u })
1272
1322
  ] }), e[16] = x, e[17] = u, e[18] = o.inputArguments, e[19] = o.output, e[20] = s, e[21] = v) : v = e[21];
1273
1323
  let C;
1274
- e[22] !== u || e[23] !== h || e[24] !== o.output || e[25] !== s ? (C = o.output && /* @__PURE__ */ T(y, { children: [
1275
- /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceField, children: h }),
1324
+ e[22] !== u || e[23] !== g || e[24] !== o.output || e[25] !== s ? (C = o.output && /* @__PURE__ */ T(y, { children: [
1325
+ /* @__PURE__ */ a(_, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: w.traceField, children: g }),
1276
1326
  /* @__PURE__ */ a(ue, { sx: {
1277
1327
  mt: 0.5
1278
- }, content: o.output, title: `${s}: ${h}`, isError: u })
1279
- ] }), e[22] = u, e[23] = h, e[24] = o.output, e[25] = s, e[26] = C) : C = e[26];
1328
+ }, content: o.output, title: `${s}: ${g}`, isError: u })
1329
+ ] }), e[22] = u, e[23] = g, e[24] = o.output, e[25] = s, e[26] = C) : C = e[26];
1280
1330
  let k;
1281
1331
  return e[27] !== f || e[28] !== m || e[29] !== b || e[30] !== v || e[31] !== C ? (k = /* @__PURE__ */ T(y, { children: [
1282
1332
  f,
@@ -1304,21 +1354,21 @@ function pe(t) {
1304
1354
  return e[4] !== k ? (S = /* @__PURE__ */ a(rt, { children: k }), e[4] = k, e[5] = S) : S = e[5], S;
1305
1355
  }
1306
1356
  const x = `PsChat--tool-trace ${o.name}`;
1307
- let h;
1308
- e[6] !== r || e[7] !== l ? (h = () => l?.(!r), e[6] = r, e[7] = l, e[8] = h) : h = e[8];
1357
+ let g;
1358
+ e[6] !== r || e[7] !== l ? (g = () => l?.(!r), e[6] = r, e[7] = l, e[8] = g) : g = e[8];
1309
1359
  let f;
1310
1360
  e[9] !== d ? (f = /* @__PURE__ */ a(_, { variant: "caption", fontWeight: 600, color: "text.secondary", children: d }), e[9] = d, e[10] = f) : f = e[10];
1311
1361
  const m = r ? "rotate(90deg)" : "rotate(0deg)";
1312
- let g;
1313
- e[11] !== m ? (g = /* @__PURE__ */ a(xe, { sx: {
1362
+ let h;
1363
+ e[11] !== m ? (h = /* @__PURE__ */ a(xe, { sx: {
1314
1364
  ...w.traceChevron,
1315
1365
  transform: m
1316
- } }), e[11] = m, e[12] = g) : g = e[12];
1366
+ } }), e[11] = m, e[12] = h) : h = e[12];
1317
1367
  let p;
1318
- e[13] !== r || e[14] !== h || e[15] !== f || e[16] !== g ? (p = /* @__PURE__ */ T(re, { size: "small", variant: "text", onClick: h, "aria-expanded": r, sx: w.traceHeader, children: [
1368
+ e[13] !== r || e[14] !== g || e[15] !== f || e[16] !== h ? (p = /* @__PURE__ */ T(re, { size: "small", variant: "text", onClick: g, "aria-expanded": r, sx: w.traceHeader, children: [
1319
1369
  f,
1320
- g
1321
- ] }), e[13] = r, e[14] = h, e[15] = f, e[16] = g, e[17] = p) : p = e[17];
1370
+ h
1371
+ ] }), e[13] = r, e[14] = g, e[15] = f, e[16] = h, e[17] = p) : p = e[17];
1322
1372
  let b;
1323
1373
  e[18] !== i || e[19] !== o ? (b = /* @__PURE__ */ a(y, { sx: w.traceDetailsWrapper, children: /* @__PURE__ */ a(we, { tool: o, labels: i }) }), e[18] = i, e[19] = o, e[20] = b) : b = e[20];
1324
1374
  let v;
@@ -1339,7 +1389,7 @@ function me(t, e) {
1339
1389
  return o[3] !== r ? (n = [r, l], o[3] = r, o[4] = n) : n = o[4], n;
1340
1390
  }
1341
1391
  }
1342
- function Yt(t) {
1392
+ function Kt(t) {
1343
1393
  const e = z(62), {
1344
1394
  tools: o,
1345
1395
  expanded: r,
@@ -1352,24 +1402,24 @@ function Yt(t) {
1352
1402
  let d;
1353
1403
  e[0] !== n ? (d = n === void 0 ? {} : n, e[0] = n, e[1] = d) : d = e[1];
1354
1404
  const x = d;
1355
- let h;
1356
- e[2] !== s ? (h = s === void 0 ? {} : s, e[2] = s, e[3] = h) : h = e[3];
1357
- const f = h, [m, g] = me(c, l), [p, b] = me(x, u);
1405
+ let g;
1406
+ e[2] !== s ? (g = s === void 0 ? {} : s, e[2] = s, e[3] = g) : g = e[3];
1407
+ const f = g, [m, h] = me(c, l), [p, b] = me(x, u);
1358
1408
  let v;
1359
1409
  e[4] !== o ? (v = o.filter(It), e[4] = o, e[5] = v) : v = e[5];
1360
1410
  const C = v.length;
1361
1411
  let k, S;
1362
- if (e[6] !== m || e[7] !== p || e[8] !== f || e[9] !== C || e[10] !== g || e[11] !== b || e[12] !== i || e[13] !== o) {
1412
+ if (e[6] !== m || e[7] !== p || e[8] !== f || e[9] !== C || e[10] !== h || e[11] !== b || e[12] !== i || e[13] !== o) {
1363
1413
  S = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
1364
1414
  e: {
1365
1415
  const A = o.filter(At), I = o.filter($t), R = f.toolsUsed ?? "tools used", $ = f.error ?? "Error";
1366
1416
  if (o.length === 1) {
1367
1417
  let F;
1368
- e[16] !== m || e[17] !== f || e[18] !== g || e[19] !== i || e[20] !== o[0] ? (F = /* @__PURE__ */ a(pe, { tool: o[0], expanded: m, onExpandedChange: g, labels: f, sx: i }), e[16] = m, e[17] = f, e[18] = g, e[19] = i, e[20] = o[0], e[21] = F) : F = e[21], S = F;
1418
+ e[16] !== m || e[17] !== f || e[18] !== h || e[19] !== i || e[20] !== o[0] ? (F = /* @__PURE__ */ a(pe, { tool: o[0], expanded: m, onExpandedChange: h, labels: f, sx: i }), e[16] = m, e[17] = f, e[18] = h, e[19] = i, e[20] = o[0], e[21] = F) : F = e[21], S = F;
1369
1419
  break e;
1370
1420
  }
1371
1421
  let E;
1372
- e[22] !== m || e[23] !== g ? (E = () => g(!m), e[22] = m, e[23] = g, e[24] = E) : E = e[24];
1422
+ e[22] !== m || e[23] !== h ? (E = () => h(!m), e[22] = m, e[23] = h, e[24] = E) : E = e[24];
1373
1423
  const B = C > 0 ? 0.5 : 0;
1374
1424
  let L;
1375
1425
  e[25] !== B ? (L = {
@@ -1391,7 +1441,7 @@ function Yt(t) {
1391
1441
  let V;
1392
1442
  e[32] !== C ? (V = C > 0 && /* @__PURE__ */ T(_, { variant: "code3", sx: w.errorBadge, children: [
1393
1443
  C,
1394
- /* @__PURE__ */ a(he, { sx: {
1444
+ /* @__PURE__ */ a(ge, { sx: {
1395
1445
  fontSize: 12
1396
1446
  }, color: "error" })
1397
1447
  ] }), e[32] = C, e[33] = V) : V = e[33];
@@ -1408,8 +1458,8 @@ function Yt(t) {
1408
1458
  p: 0,
1409
1459
  listStyle: "none"
1410
1460
  }, e[41] = U) : U = e[41];
1411
- let K;
1412
- e[42] !== $ || e[43] !== m || e[44] !== p || e[45] !== f || e[46] !== b ? (K = (F) => {
1461
+ let X;
1462
+ e[42] !== $ || e[43] !== m || e[44] !== p || e[45] !== f || e[46] !== b ? (X = (F) => {
1413
1463
  const J = p[F.id] ?? !1;
1414
1464
  return /* @__PURE__ */ T(y, { component: "li", sx: w.groupListItem, "aria-expanded": J, children: [
1415
1465
  /* @__PURE__ */ T(re, { variant: "text", color: "inherit", fullWidth: !0, onClick: () => b({
@@ -1425,23 +1475,23 @@ function Yt(t) {
1425
1475
  ] }),
1426
1476
  /* @__PURE__ */ a(le, { in: J, unmountOnExit: !0, children: /* @__PURE__ */ a(y, { px: 1.5, py: 1, children: /* @__PURE__ */ a(we, { tool: F, labels: f }) }) })
1427
1477
  ] }, F.id);
1428
- }, e[42] = $, e[43] = m, e[44] = p, e[45] = f, e[46] = b, e[47] = K) : K = e[47];
1429
- const ne = I.map(K);
1478
+ }, e[42] = $, e[43] = m, e[44] = p, e[45] = f, e[46] = b, e[47] = X) : X = e[47];
1479
+ const ne = I.map(X);
1430
1480
  let j;
1431
1481
  e[48] !== te || e[49] !== oe || e[50] !== U || e[51] !== ne ? (j = /* @__PURE__ */ a(te, { component: oe, sx: U, children: ne }), e[48] = te, e[49] = oe, e[50] = U, e[51] = ne, e[52] = j) : j = e[52];
1432
- let X;
1433
- e[53] !== Q || e[54] !== Z || e[55] !== ee || e[56] !== j ? (X = /* @__PURE__ */ a(Q, { in: Z, unmountOnExit: ee, children: j }), e[53] = Q, e[54] = Z, e[55] = ee, e[56] = j, e[57] = X) : X = e[57];
1434
1482
  let Y;
1435
- e[58] !== p || e[59] !== f || e[60] !== b ? (Y = (F) => /* @__PURE__ */ a(pe, { tool: F, labels: f, expanded: p[F.id], onExpandedChange: () => b({
1483
+ e[53] !== Q || e[54] !== Z || e[55] !== ee || e[56] !== j ? (Y = /* @__PURE__ */ a(Q, { in: Z, unmountOnExit: ee, children: j }), e[53] = Q, e[54] = Z, e[55] = ee, e[56] = j, e[57] = Y) : Y = e[57];
1484
+ let K;
1485
+ e[58] !== p || e[59] !== f || e[60] !== b ? (K = (F) => /* @__PURE__ */ a(pe, { tool: F, labels: f, expanded: p[F.id], onExpandedChange: () => b({
1436
1486
  ...p,
1437
1487
  [F.id]: !p[F.id]
1438
- }) }, F.id), e[58] = p, e[59] = f, e[60] = b, e[61] = Y) : Y = e[61], k = /* @__PURE__ */ T(y, { width: "100%", sx: i, className: "PsChat--tool-group", children: [
1488
+ }) }, F.id), e[58] = p, e[59] = f, e[60] = b, e[61] = K) : K = e[61], k = /* @__PURE__ */ T(y, { width: "100%", sx: i, className: "PsChat--tool-group", children: [
1439
1489
  G,
1440
- X,
1441
- A.map(Y)
1490
+ Y,
1491
+ A.map(K)
1442
1492
  ] });
1443
1493
  }
1444
- e[6] = m, e[7] = p, e[8] = f, e[9] = C, e[10] = g, e[11] = b, e[12] = i, e[13] = o, e[14] = k, e[15] = S;
1494
+ e[6] = m, e[7] = p, e[8] = f, e[9] = C, e[10] = h, e[11] = b, e[12] = i, e[13] = o, e[14] = k, e[15] = S;
1445
1495
  } else
1446
1496
  k = e[14], S = e[15];
1447
1497
  return S !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? S : k;
@@ -1456,11 +1506,11 @@ function It(t) {
1456
1506
  return t.status === "error";
1457
1507
  }
1458
1508
  export {
1459
- Ot as CHAT_DIVIDER_DELAY,
1509
+ Ht as CHAT_DIVIDER_DELAY,
1460
1510
  q as CHAT_MAX_WIDTH,
1461
1511
  Mt as CHAT_SCROLL_DELAY,
1462
- Ye as CHAT_TOOL_CODE_AREA_MAX_HEIGHT,
1463
- Kt as ChatActionsContainer,
1512
+ Ke as CHAT_TOOL_CODE_AREA_MAX_HEIGHT,
1513
+ Xt as ChatActionsContainer,
1464
1514
  qe as ChatAgentMessage,
1465
1515
  Ut as ChatContent,
1466
1516
  Pt as ChatErrorMessage,
@@ -1468,14 +1518,14 @@ export {
1468
1518
  jt as ChatHeader,
1469
1519
  Vt as ChatLoader,
1470
1520
  ye as ChatMessageOverflow,
1471
- Xt as ChatRatingAction,
1521
+ Yt as ChatRatingAction,
1472
1522
  Gt as ChatStarter,
1473
1523
  et as ChatSuggestionButton,
1474
1524
  rt as ChatThinking,
1475
1525
  ue as ChatToolCodeArea,
1476
1526
  ut as ChatToolFullViewDialog,
1477
- Yt as ChatToolGroup,
1527
+ Kt as ChatToolGroup,
1478
1528
  pe as ChatToolTrace,
1479
- Ht as ChatUserMessage
1529
+ Ot as ChatUserMessage
1480
1530
  };
1481
1531
  //# sourceMappingURL=chat.js.map