@inkeep/agents-ui 0.14.10 → 0.14.12

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.
@@ -1,52 +1,52 @@
1
1
  "use client";
2
2
  import { jsx as e, jsxs as t, Fragment as E } from "react/jsx-runtime";
3
3
  import M, { Fragment as T } from "react";
4
- import { Provider as N, Wrapper as $, Root as R, Header as j, HeaderToolbar as G, HeaderToolbarWrapper as z, ToolbarHeader as J, Disclaimer as k, DisclaimerTrigger as H, DisclaimerContent as f, DisclaimerText as v, DisclaimerArrow as w, Content as K, ContentScrollArea as U, ContentScrollAreaViewport as X, ContentScrollAreaScrollbar as Y, ContentScrollAreaThumb as Z, ContentScrollAreaCorner as q, Footer as ee, FeedbackModal as te, FeedbackModalOverlay as ae, FeedbackModalContent as de, FeedbackModalHeader as re, FeedbackModalClose as ne, FeedbackModalBody as se, FeedbackForm as oe, FeedbackItem as h, FeedbackItemCheckbox as l, FeedbackItemCheckboxIndicator as b, FeedbackItemLabel as C, FeedbackItemDescription as F, FeedbackSubmitButton as me, FormWrapper as ce, FormClose as ie, Form as he, FormHeader as le, FormHeading as be, FormDescription as Ce, FormContent as Ee, FormField as Fe, FormFieldLabel as pe, FormFieldText as ue, FormFieldEmail as Ae, FormFieldFile as ge, FormFieldTextArea as Me, FormFieldCheckbox as Ie, FormFieldCheckboxIndicator as Be, FormFieldSelect as Se, FormFieldSelectTrigger as Te, FormFieldSelectValue as ke, FormFieldSelectIcon as He, FormFieldSelectContent as fe, FormFieldSelectViewport as ve, FormFieldSelectItem as we, FormFieldSelectItemText as xe, FormFieldSelectItemIndicator as ye, FormFieldError as De, FormError as Le, FormFooter as Pe, FormCancel as We, FormSubmit as _e, FormSuccess as Ve, FormSuccessHeading as Qe, FormSuccessMessage as Oe, FormSuccessButton as Ne, Messages as $e, MessageWrapper as I, MessageContentWrapper as x, MessageContent as y, DynamicComponent as Re, InputFieldset as je, InputGroup as Ge, Input as ze, SendButton as Je, SendButtonIcon as Ke, AttachmentsBar as Ue, AttachmentsBarList as Xe, AttachmentsBarAttachment as Ye, AttachmentsBarAttachmentIcon as Ze, AttachmentsBarAttachmentTitle as qe, AttachmentsBarAttachmentDelete as et, AttachmentsBarActions as tt, AttachmentsBarInfoTip as at, AttachmentsBarInfoTipIcon as dt, AttachmentsBarInfoTipText as rt, AttachmentsBarInputs as nt, AttachmentsBarInput as st, AttachmentsBarModal as ot, AttachmentsBarModalOverlay as mt, AttachmentsBarModalContent as ct, AttachmentsBarModalHeader as it, AttachmentsBarModalHeading as ht, AttachmentsBarModalDescription as lt, AttachmentsBarModalHelp as bt, AttachmentsBarModalClose as Ct, AttachmentsBarModalBody as Et, AttachmentsBarForm as Ft, AttachmentsBarFormTitle as pt, AttachmentsBarFormTitleLabel as ut, AttachmentsBarFormTitleInput as At, AttachmentsBarFormTitleError as gt, AttachmentsBarFormContent as Mt, AttachmentsBarFormContentLabel as It, AttachmentsBarFormContentInput as Bt, AttachmentsBarFormContentError as St, AttachmentsBarFormSubmitButton as Tt, ActionBar as kt, TaglineContainer as Ht, TaglineText as ft, TaglineLogo as vt, TaglineBrandName as wt, Actions as xt, HelpActions as yt, HelpAction as Dt, HelpActionsTrigger as Lt, HelpActionsMenu as Pt, HelpActionsMenuArrow as Wt, HelpActionsMenuItem as _t, HelpActionsMenuItemIcon as Vt, ChatAction as p, ChatActionLabel as Qt, ChatActionFeedback as Ot, IntroMessageWrapper as Nt, MessageHeader as D, MessageAvatar as L, MessageAvatarContent as P, MessageAvatarFallback as W, MessageAvatarImage as _, MessageName as V, DisclaimerLabel as $t, ExampleQuestions as Rt, ExampleQuestionsLabel as jt, ExampleQuestionsList as Gt, ExampleQuestion as zt, ExampleQuestionButton as Jt, Markdown as Kt, MessageSources as Ut, MessageSourcesHeader as Xt, MessageSourcesList as Yt, MessageSourceItem as Zt, MessageSourceItemBreadcrumbs as qt, MessageSourceItemBreadcrumbIcon as ea, MessageSourceItemIcon as ta, MessageSourceItemTitle as aa, MessageSourceItemTag as da, MessageSourceItemDescription as ra, MessageSourceItemDescriptionPart as na, MessageSourceItemIndicator as sa, MessageAttachments as oa, MessageAttachmentsList as ma, MessageAttachmentsItem as ca, MessageAttachmentsItemIcon as ia, MessageAttachmentsItemTitle as ha, MessageAttachmentsPreview as la, MessageAttachmentsPreviewOverlay as ba, MessageAttachmentsPreviewContent as Ca, MessageAttachmentsPreviewHeader as Ea, MessageAttachmentsPreviewClose as Fa, MessageAttachmentsPreviewBody as pa, MessageToolbar as ua, MessageAnnotationActions as Aa, MessageAnnotationAction as ga, MessageAction as u } from "../styled/components/embedded-chat.js";
4
+ import { Provider as N, Wrapper as $, Root as R, Header as j, HeaderToolbar as G, HeaderToolbarWrapper as z, ToolbarHeader as J, Disclaimer as k, DisclaimerTrigger as H, DisclaimerContent as f, DisclaimerText as v, DisclaimerArrow as w, Content as K, ContentScrollArea as U, ContentScrollAreaViewport as X, ContentScrollAreaScrollbar as Y, ContentScrollAreaThumb as Z, ContentScrollAreaCorner as q, Footer as ee, FeedbackModal as te, FeedbackModalOverlay as ae, FeedbackModalContent as de, FeedbackModalHeader as re, FeedbackModalClose as ne, FeedbackModalBody as se, FeedbackForm as oe, FeedbackItem as h, FeedbackItemCheckbox as l, FeedbackItemCheckboxIndicator as b, FeedbackItemLabel as C, FeedbackItemDescription as F, FeedbackSubmitButton as me, FormWrapper as ce, FormClose as ie, Form as he, FormHeader as le, FormHeading as be, FormDescription as Ce, FormContent as Ee, FormField as Fe, FormFieldLabel as pe, FormFieldText as ue, FormFieldEmail as Ae, FormFieldFile as ge, FormFieldTextArea as Me, FormFieldCheckbox as Ie, FormFieldCheckboxIndicator as Be, FormFieldSelect as Se, FormFieldSelectTrigger as Te, FormFieldSelectValue as ke, FormFieldSelectIcon as He, FormFieldSelectContent as fe, FormFieldSelectViewport as ve, FormFieldSelectItem as we, FormFieldSelectItemText as xe, FormFieldSelectItemIndicator as ye, FormFieldError as Le, FormError as De, FormFooter as Pe, FormCancel as We, FormSubmit as _e, FormSuccess as Ve, FormSuccessHeading as Qe, FormSuccessMessage as Oe, FormSuccessButton as Ne, Messages as $e, MessageWrapper as I, MessageContentWrapper as x, MessageContent as y, DynamicComponent as Re, MessageLoading as je, InputFieldset as Ge, InputGroup as ze, Input as Je, SendButton as Ke, SendButtonIcon as Ue, AttachmentsBar as Xe, AttachmentsBarList as Ye, AttachmentsBarAttachment as Ze, AttachmentsBarAttachmentIcon as qe, AttachmentsBarAttachmentTitle as et, AttachmentsBarAttachmentDelete as tt, AttachmentsBarActions as at, AttachmentsBarInfoTip as dt, AttachmentsBarInfoTipIcon as rt, AttachmentsBarInfoTipText as nt, AttachmentsBarInputs as st, AttachmentsBarInput as ot, AttachmentsBarModal as mt, AttachmentsBarModalOverlay as ct, AttachmentsBarModalContent as it, AttachmentsBarModalHeader as ht, AttachmentsBarModalHeading as lt, AttachmentsBarModalDescription as bt, AttachmentsBarModalHelp as Ct, AttachmentsBarModalClose as Et, AttachmentsBarModalBody as Ft, AttachmentsBarForm as pt, AttachmentsBarFormTitle as ut, AttachmentsBarFormTitleLabel as At, AttachmentsBarFormTitleInput as gt, AttachmentsBarFormTitleError as Mt, AttachmentsBarFormContent as It, AttachmentsBarFormContentLabel as Bt, AttachmentsBarFormContentInput as St, AttachmentsBarFormContentError as Tt, AttachmentsBarFormSubmitButton as kt, ActionBar as Ht, TaglineContainer as ft, TaglineText as vt, TaglineLogo as wt, TaglineBrandName as xt, Actions as yt, HelpActions as Lt, HelpAction as Dt, HelpActionsTrigger as Pt, HelpActionsMenu as Wt, HelpActionsMenuArrow as _t, HelpActionsMenuItem as Vt, HelpActionsMenuItemIcon as Qt, ChatAction as p, ChatActionLabel as Ot, ChatActionFeedback as Nt, IntroMessageWrapper as $t, MessageHeader as L, MessageAvatar as D, MessageAvatarContent as P, MessageAvatarFallback as W, MessageAvatarImage as _, MessageName as V, DisclaimerLabel as Rt, ExampleQuestions as jt, ExampleQuestionsLabel as Gt, ExampleQuestionsList as zt, ExampleQuestion as Jt, ExampleQuestionButton as Kt, Markdown as Ut, MessageSources as Xt, MessageSourcesHeader as Yt, MessageSourcesList as Zt, MessageSourceItem as qt, MessageSourceItemBreadcrumbs as ea, MessageSourceItemBreadcrumbIcon as ta, MessageSourceItemIcon as aa, MessageSourceItemTitle as da, MessageSourceItemTag as ra, MessageSourceItemDescription as na, MessageSourceItemDescriptionPart as sa, MessageSourceItemIndicator as oa, MessageAttachments as ma, MessageAttachmentsList as ca, MessageAttachmentsItem as ia, MessageAttachmentsItemIcon as ha, MessageAttachmentsItemTitle as la, MessageAttachmentsPreview as ba, MessageAttachmentsPreviewOverlay as Ca, MessageAttachmentsPreviewContent as Ea, MessageAttachmentsPreviewHeader as Fa, MessageAttachmentsPreviewClose as pa, MessageAttachmentsPreviewBody as ua, MessageToolbar as Aa, MessageAnnotationActions as ga, MessageAnnotationAction as Ma, MessageAction as u } from "../styled/components/embedded-chat.js";
5
5
  import { Close as B } from "../styled/components/modal.js";
6
- import { Shadow as Ma } from "../styled/components/shadow.js";
6
+ import { Shadow as Ia } from "../styled/components/shadow.js";
7
7
  import { EmbeddedChatMessagePart as Q } from "../styled/components/message.js";
8
- import { WebWidgetInteractionType as Ia, useInkeepConfig as Ba } from "../primitives/providers/config-provider.js";
9
- import { RootProvider as Sa } from "../primitives/providers/root-provider.js";
10
- import { useWidget as Ta } from "../primitives/providers/widget-provider.js";
11
- import { useModal as ka } from "../primitives/components/modal/modal-provider.js";
8
+ import { WebWidgetInteractionType as Ba, useInkeepConfig as Sa } from "../primitives/providers/config-provider.js";
9
+ import { RootProvider as Ta } from "../primitives/providers/root-provider.js";
10
+ import { useWidget as ka } from "../primitives/providers/widget-provider.js";
11
+ import { useModal as Ha } from "../primitives/components/modal/modal-provider.js";
12
12
  import { dataAttr as O } from "../primitives/utils/misc.js";
13
13
  import { PortalWithTheme as A } from "../primitives/atoms/portal-with-theme.js";
14
- import { ErrorBoundary as Ha } from "../primitives/atoms/error-boundary.js";
15
- import { ModalContent as fa } from "./modal.js";
16
- import { WidgetToggle as va } from "./widget-toggle.js";
17
- function sd(d) {
14
+ import { ErrorBoundary as fa } from "../primitives/atoms/error-boundary.js";
15
+ import { ModalContent as va } from "./modal.js";
16
+ import { WidgetToggle as wa } from "./widget-toggle.js";
17
+ function od(d) {
18
18
  const { baseSettings: a, aiChatSettings: r } = d;
19
- return /* @__PURE__ */ e(Ha, { children: /* @__PURE__ */ e(
20
- Ma,
19
+ return /* @__PURE__ */ e(fa, { children: /* @__PURE__ */ e(
20
+ Ia,
21
21
  {
22
22
  wrapperStyles: {
23
23
  height: "inherit",
24
24
  width: "inherit"
25
25
  },
26
26
  children: /* @__PURE__ */ e(
27
- Sa,
27
+ Ta,
28
28
  {
29
29
  config: {
30
30
  baseSettings: a,
31
31
  aiChatSettings: r
32
32
  },
33
- componentType: Ia.EmbeddedChat,
34
- children: /* @__PURE__ */ e(xa, { ...d })
33
+ componentType: Ba.EmbeddedChat,
34
+ children: /* @__PURE__ */ e(ya, { ...d })
35
35
  }
36
36
  )
37
37
  }
38
38
  ) });
39
39
  }
40
- function wa(d) {
40
+ function xa(d) {
41
41
  const { children: a, onToggleView: r, isHidden: n, shouldAutoFocusInput: s = !r } = d;
42
42
  return /* @__PURE__ */ e(N, { isHidden: n, shouldAutoFocusInput: s, children: a });
43
43
  }
44
- function xa(d) {
45
- return /* @__PURE__ */ e(wa, { ...d, children: /* @__PURE__ */ e(ya, { ...d }) });
46
- }
47
44
  function ya(d) {
48
- const { onToggleView: a, variant: r, header: n = Da } = d, s = ka(), m = Ta();
49
- return /* @__PURE__ */ e(s && !m ? fa : T, { children: /* @__PURE__ */ t(
45
+ return /* @__PURE__ */ e(xa, { ...d, children: /* @__PURE__ */ e(La, { ...d }) });
46
+ }
47
+ function La(d) {
48
+ const { onToggleView: a, variant: r, header: n = Da } = d, s = Ha(), m = ka();
49
+ return /* @__PURE__ */ e(s && !m ? va : T, { children: /* @__PURE__ */ t(
50
50
  $,
51
51
  {
52
52
  variant: r ?? (a ? "no-shadow" : "container-with-shadow"),
@@ -54,11 +54,11 @@ function ya(d) {
54
54
  children: [
55
55
  /* @__PURE__ */ t(R, { children: [
56
56
  n && /* @__PURE__ */ e(n, { ...d }),
57
- /* @__PURE__ */ e(La, {}),
58
- /* @__PURE__ */ e(Oa, {})
57
+ /* @__PURE__ */ e(Pa, {}),
58
+ /* @__PURE__ */ e(Na, {})
59
59
  ] }),
60
- /* @__PURE__ */ e(Ra, {}),
61
- /* @__PURE__ */ e(ja, {})
60
+ /* @__PURE__ */ e(ja, {}),
61
+ /* @__PURE__ */ e(Ga, {})
62
62
  ]
63
63
  }
64
64
  ) });
@@ -77,7 +77,7 @@ const Da = (d) => {
77
77
  ] })
78
78
  ] }),
79
79
  /* @__PURE__ */ e(
80
- va,
80
+ wa,
81
81
  {
82
82
  onToggleView: a,
83
83
  askAILabel: r,
@@ -88,17 +88,17 @@ const Da = (d) => {
88
88
  /* @__PURE__ */ e(B, {})
89
89
  ] }) : /* @__PURE__ */ e(B, {}) });
90
90
  };
91
- function La() {
91
+ function Pa() {
92
92
  return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ t(U, { children: [
93
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(Pa, {}) }),
93
+ /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(Wa, {}) }),
94
94
  /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(Z, {}) }),
95
95
  /* @__PURE__ */ e(q, {})
96
96
  ] }) });
97
97
  }
98
- function Pa() {
98
+ function Wa() {
99
99
  const {
100
100
  aiChatSettings: { components: d }
101
- } = Ba();
101
+ } = Sa();
102
102
  return /* @__PURE__ */ e($e, { children: ({ messages: a, isLoading: r }) => {
103
103
  const n = a.at(-1), s = (o, g) => {
104
104
  const c = d?.[o];
@@ -112,9 +112,9 @@ function Pa() {
112
112
  } catch (i) {
113
113
  return console.error(`🔍 [renderComponent] Error rendering component "${o}":`, i), null;
114
114
  }
115
- }, m = (o) => /* @__PURE__ */ e(Kt, { text: o });
115
+ }, m = (o) => /* @__PURE__ */ e(Ut, { text: o });
116
116
  return /* @__PURE__ */ t(E, { children: [
117
- /* @__PURE__ */ e(Wa, {}),
117
+ /* @__PURE__ */ e(_a, {}),
118
118
  a.map((o) => /* @__PURE__ */ t(I, { message: o, children: [
119
119
  /* @__PURE__ */ e(S, {}),
120
120
  /* @__PURE__ */ t(x, { children: [
@@ -127,13 +127,13 @@ function Pa() {
127
127
  }
128
128
  ) : /* @__PURE__ */ t(E, { children: [
129
129
  /* @__PURE__ */ e(Q, { isLast: n?.id === o.id }),
130
- /* @__PURE__ */ e(Qa, {})
130
+ /* @__PURE__ */ e(Oa, {})
131
131
  ] }) }),
132
- /* @__PURE__ */ e(_a, {}),
133
- /* @__PURE__ */ e(Va, {})
132
+ /* @__PURE__ */ e(Va, {}),
133
+ /* @__PURE__ */ e(Qa, {})
134
134
  ] })
135
135
  ] }, o.id)),
136
- r && n?.parts.length && /* @__PURE__ */ e(
136
+ r && n?.parts.length && /* @__PURE__ */ t(
137
137
  I,
138
138
  {
139
139
  message: {
@@ -141,16 +141,19 @@ function Pa() {
141
141
  role: "assistant",
142
142
  parts: [{ type: "text", text: "Thinking..." }]
143
143
  },
144
- children: /* @__PURE__ */ e(S, {})
144
+ children: [
145
+ /* @__PURE__ */ e(S, {}),
146
+ /* @__PURE__ */ e(je, {})
147
+ ]
145
148
  }
146
149
  )
147
150
  ] });
148
151
  } });
149
152
  }
150
- function Wa() {
151
- return /* @__PURE__ */ t(Nt, { children: [
152
- /* @__PURE__ */ t(D, { children: [
153
- /* @__PURE__ */ e(L, { children: /* @__PURE__ */ t(P, { children: [
153
+ function _a() {
154
+ return /* @__PURE__ */ t($t, { children: [
155
+ /* @__PURE__ */ t(L, { children: [
156
+ /* @__PURE__ */ e(D, { children: /* @__PURE__ */ t(P, { children: [
154
157
  /* @__PURE__ */ e(W, {}),
155
158
  /* @__PURE__ */ e(_, {})
156
159
  ] }) }),
@@ -159,150 +162,150 @@ function Wa() {
159
162
  /* @__PURE__ */ t(x, { children: [
160
163
  /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(Q, { isLast: !1 }) }),
161
164
  /* @__PURE__ */ t(k, { children: [
162
- /* @__PURE__ */ e($t, {}),
165
+ /* @__PURE__ */ e(Rt, {}),
163
166
  /* @__PURE__ */ e(H, {}),
164
167
  /* @__PURE__ */ t(f, { children: [
165
168
  /* @__PURE__ */ e(v, {}),
166
169
  /* @__PURE__ */ e(w, {})
167
170
  ] })
168
171
  ] }),
169
- /* @__PURE__ */ t(Rt, { children: [
170
- /* @__PURE__ */ e(jt, {}),
171
- /* @__PURE__ */ e(Gt, { children: (d) => d.map((a) => /* @__PURE__ */ e(zt, { children: /* @__PURE__ */ e(Jt, { question: a }) }, a)) })
172
+ /* @__PURE__ */ t(jt, { children: [
173
+ /* @__PURE__ */ e(Gt, {}),
174
+ /* @__PURE__ */ e(zt, { children: (d) => d.map((a) => /* @__PURE__ */ e(Jt, { children: /* @__PURE__ */ e(Kt, { question: a }) }, a)) })
172
175
  ] })
173
176
  ] })
174
177
  ] });
175
178
  }
176
179
  function S() {
177
- return /* @__PURE__ */ t(D, { children: [
178
- /* @__PURE__ */ e(L, { children: /* @__PURE__ */ t(P, { children: [
180
+ return /* @__PURE__ */ t(L, { children: [
181
+ /* @__PURE__ */ e(D, { children: /* @__PURE__ */ t(P, { children: [
179
182
  /* @__PURE__ */ e(W, {}),
180
183
  /* @__PURE__ */ e(_, {})
181
184
  ] }) }),
182
185
  /* @__PURE__ */ e(V, {})
183
186
  ] });
184
187
  }
185
- function _a() {
186
- return /* @__PURE__ */ t(oa, { children: [
187
- /* @__PURE__ */ e(ma, { children: (d) => d.map((a) => /* @__PURE__ */ t(ca, { attachment: a, children: [
188
- /* @__PURE__ */ e(ia, {}),
189
- /* @__PURE__ */ e(ha, {})
188
+ function Va() {
189
+ return /* @__PURE__ */ t(ma, { children: [
190
+ /* @__PURE__ */ e(ca, { children: (d) => d.map((a) => /* @__PURE__ */ t(ia, { attachment: a, children: [
191
+ /* @__PURE__ */ e(ha, {}),
192
+ /* @__PURE__ */ e(la, {})
190
193
  ] }, a.id)) }),
191
- /* @__PURE__ */ e(la, { children: /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(ba, { children: /* @__PURE__ */ t(Ca, { children: [
192
- /* @__PURE__ */ e(Ea, {}),
194
+ /* @__PURE__ */ e(ba, { children: /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(Ca, { children: /* @__PURE__ */ t(Ea, { children: [
193
195
  /* @__PURE__ */ e(Fa, {}),
194
- /* @__PURE__ */ e(pa, {})
196
+ /* @__PURE__ */ e(pa, {}),
197
+ /* @__PURE__ */ e(ua, {})
195
198
  ] }) }) }) })
196
199
  ] });
197
200
  }
198
- function Va() {
199
- return /* @__PURE__ */ t(ua, { children: [
200
- /* @__PURE__ */ e(Aa, { children: (d) => d.map((a, r) => /* @__PURE__ */ e(ga, { action: a }, `action-${r}`)) }),
201
+ function Qa() {
202
+ return /* @__PURE__ */ t(Aa, { children: [
203
+ /* @__PURE__ */ e(ga, { children: (d) => d.map((a, r) => /* @__PURE__ */ e(Ma, { action: a }, `action-${r}`)) }),
201
204
  /* @__PURE__ */ e(u, { action: "copy" }),
202
205
  /* @__PURE__ */ e(u, { action: "upvote" }),
203
206
  /* @__PURE__ */ e(u, { action: "downvote" })
204
207
  ] });
205
208
  }
206
- function Qa() {
207
- return /* @__PURE__ */ t(Ut, { children: [
208
- /* @__PURE__ */ e(Xt, {}),
209
- /* @__PURE__ */ e(Yt, { children: (d) => d.map((a, r) => /* @__PURE__ */ t(Zt, { href: a.url, source: a, children: [
210
- /* @__PURE__ */ e(qt, { children: a.breadcrumbs?.map((n) => /* @__PURE__ */ t(T, { children: [
209
+ function Oa() {
210
+ return /* @__PURE__ */ t(Xt, { children: [
211
+ /* @__PURE__ */ e(Yt, {}),
212
+ /* @__PURE__ */ e(Zt, { children: (d) => d.map((a, r) => /* @__PURE__ */ t(qt, { href: a.url, source: a, children: [
213
+ /* @__PURE__ */ e(ea, { children: a.breadcrumbs?.map((n) => /* @__PURE__ */ t(T, { children: [
211
214
  n,
212
- /* @__PURE__ */ e(ea, {})
215
+ /* @__PURE__ */ e(ta, {})
213
216
  ] }, n)) }),
214
- /* @__PURE__ */ e(ta, {}),
215
217
  /* @__PURE__ */ e(aa, {}),
216
218
  /* @__PURE__ */ e(da, {}),
217
- /* @__PURE__ */ e(ra, { children: (n) => n.map((s, m) => /* @__PURE__ */ e(
218
- na,
219
+ /* @__PURE__ */ e(ra, {}),
220
+ /* @__PURE__ */ e(na, { children: (n) => n.map((s, m) => /* @__PURE__ */ e(
221
+ sa,
219
222
  {
220
223
  part: s
221
224
  },
222
225
  `part-${m}`
223
226
  )) }),
224
- /* @__PURE__ */ e(sa, {})
227
+ /* @__PURE__ */ e(oa, {})
225
228
  ] }, r)) })
226
229
  ] });
227
230
  }
228
- function Oa() {
231
+ function Na() {
229
232
  return /* @__PURE__ */ t(ee, { children: [
230
- /* @__PURE__ */ e(Na, {}),
231
- /* @__PURE__ */ e($a, {})
233
+ /* @__PURE__ */ e($a, {}),
234
+ /* @__PURE__ */ e(Ra, {})
232
235
  ] });
233
236
  }
234
- function Na() {
235
- return /* @__PURE__ */ t(je, { children: [
236
- /* @__PURE__ */ t(Ge, { children: [
237
- /* @__PURE__ */ e(ze, {}),
238
- /* @__PURE__ */ e(Je, { children: /* @__PURE__ */ e(Ke, {}) })
237
+ function $a() {
238
+ return /* @__PURE__ */ t(Ge, { children: [
239
+ /* @__PURE__ */ t(ze, { children: [
240
+ /* @__PURE__ */ e(Je, {}),
241
+ /* @__PURE__ */ e(Ke, { children: /* @__PURE__ */ e(Ue, {}) })
239
242
  ] }),
240
- /* @__PURE__ */ t(Ue, { children: [
241
- /* @__PURE__ */ e(Xe, { children: (d) => d.map((a) => /* @__PURE__ */ t(Ye, { attachment: a, children: [
242
- /* @__PURE__ */ e(Ze, {}),
243
+ /* @__PURE__ */ t(Xe, { children: [
244
+ /* @__PURE__ */ e(Ye, { children: (d) => d.map((a) => /* @__PURE__ */ t(Ze, { attachment: a, children: [
243
245
  /* @__PURE__ */ e(qe, {}),
244
- /* @__PURE__ */ e(et, {})
246
+ /* @__PURE__ */ e(et, {}),
247
+ /* @__PURE__ */ e(tt, {})
245
248
  ] }, a.id)) }),
246
- /* @__PURE__ */ t(tt, { children: [
247
- /* @__PURE__ */ t(at, { children: [
248
- /* @__PURE__ */ e(dt, {}),
249
- /* @__PURE__ */ e(rt, {})
249
+ /* @__PURE__ */ t(at, { children: [
250
+ /* @__PURE__ */ t(dt, { children: [
251
+ /* @__PURE__ */ e(rt, {}),
252
+ /* @__PURE__ */ e(nt, {})
250
253
  ] }),
251
- /* @__PURE__ */ e(nt, { children: (d) => d.map((a) => /* @__PURE__ */ e(st, { input: a, children: a.displayName }, a.id)) })
254
+ /* @__PURE__ */ e(st, { children: (d) => d.map((a) => /* @__PURE__ */ e(ot, { input: a, children: a.displayName }, a.id)) })
252
255
  ] }),
253
- /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(ot, { children: /* @__PURE__ */ e(mt, { children: /* @__PURE__ */ t(ct, { children: [
254
- /* @__PURE__ */ t(it, { children: [
255
- /* @__PURE__ */ e(ht, {}),
256
+ /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(mt, { children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ t(it, { children: [
257
+ /* @__PURE__ */ t(ht, { children: [
256
258
  /* @__PURE__ */ e(lt, {}),
257
- /* @__PURE__ */ e(bt, {})
259
+ /* @__PURE__ */ e(bt, {}),
260
+ /* @__PURE__ */ e(Ct, {})
258
261
  ] }),
259
- /* @__PURE__ */ e(Ct, {}),
260
- /* @__PURE__ */ e(Et, { children: /* @__PURE__ */ t(Ft, { children: [
261
- /* @__PURE__ */ t(pt, { children: [
262
- /* @__PURE__ */ e(ut, {}),
262
+ /* @__PURE__ */ e(Et, {}),
263
+ /* @__PURE__ */ e(Ft, { children: /* @__PURE__ */ t(pt, { children: [
264
+ /* @__PURE__ */ t(ut, { children: [
263
265
  /* @__PURE__ */ e(At, {}),
264
- /* @__PURE__ */ e(gt, {})
266
+ /* @__PURE__ */ e(gt, {}),
267
+ /* @__PURE__ */ e(Mt, {})
265
268
  ] }),
266
- /* @__PURE__ */ t(Mt, { children: [
267
- /* @__PURE__ */ e(It, {}),
269
+ /* @__PURE__ */ t(It, { children: [
268
270
  /* @__PURE__ */ e(Bt, {}),
269
- /* @__PURE__ */ e(St, {})
271
+ /* @__PURE__ */ e(St, {}),
272
+ /* @__PURE__ */ e(Tt, {})
270
273
  ] }),
271
- /* @__PURE__ */ e(Tt, {})
274
+ /* @__PURE__ */ e(kt, {})
272
275
  ] }) })
273
276
  ] }) }) }) })
274
277
  ] })
275
278
  ] });
276
279
  }
277
- function $a() {
278
- return /* @__PURE__ */ t(kt, { children: [
279
- /* @__PURE__ */ t(Ht, { children: [
280
- /* @__PURE__ */ e(ft, {}),
280
+ function Ra() {
281
+ return /* @__PURE__ */ t(Ht, { children: [
282
+ /* @__PURE__ */ t(ft, { children: [
281
283
  /* @__PURE__ */ e(vt, {}),
282
- /* @__PURE__ */ e(wt, {})
284
+ /* @__PURE__ */ e(wt, {}),
285
+ /* @__PURE__ */ e(xt, {})
283
286
  ] }),
284
- /* @__PURE__ */ t(xt, { children: [
285
- /* @__PURE__ */ e(yt, { children: ({ pinned: d, unpinned: a }) => /* @__PURE__ */ t(E, { children: [
287
+ /* @__PURE__ */ t(yt, { children: [
288
+ /* @__PURE__ */ e(Lt, { children: ({ pinned: d, unpinned: a }) => /* @__PURE__ */ t(E, { children: [
286
289
  d.map((r) => /* @__PURE__ */ e(Dt, { action: r }, r.name)),
287
- a.length > 0 && /* @__PURE__ */ e(Lt, {}),
288
- /* @__PURE__ */ t(Pt, { children: [
289
- /* @__PURE__ */ e(Wt, {}),
290
- a.map((r) => /* @__PURE__ */ t(_t, { action: r, children: [
291
- /* @__PURE__ */ e(Vt, { action: r }),
290
+ a.length > 0 && /* @__PURE__ */ e(Pt, {}),
291
+ /* @__PURE__ */ t(Wt, { children: [
292
+ /* @__PURE__ */ e(_t, {}),
293
+ a.map((r) => /* @__PURE__ */ t(Vt, { action: r, children: [
294
+ /* @__PURE__ */ e(Qt, { action: r }),
292
295
  r.name
293
296
  ] }, r.name))
294
297
  ] })
295
298
  ] }) }),
296
299
  /* @__PURE__ */ t(p, { action: "copy", children: [
297
- /* @__PURE__ */ e(Qt, { action: "copy" }),
298
- /* @__PURE__ */ e(Ot, { action: "copy" })
300
+ /* @__PURE__ */ e(Ot, { action: "copy" }),
301
+ /* @__PURE__ */ e(Nt, { action: "copy" })
299
302
  ] }),
300
303
  /* @__PURE__ */ e(p, { action: "clear" }),
301
304
  /* @__PURE__ */ e(p, { action: "stop" })
302
305
  ] })
303
306
  ] });
304
307
  }
305
- function Ra() {
308
+ function ja() {
306
309
  return /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ t(de, { children: [
307
310
  /* @__PURE__ */ e(re, {}),
308
311
  /* @__PURE__ */ e(ne, {}),
@@ -330,7 +333,7 @@ function Ra() {
330
333
  ] }) })
331
334
  ] }) }) }) });
332
335
  }
333
- function ja() {
336
+ function Ga() {
334
337
  return /* @__PURE__ */ t(ce, { children: [
335
338
  /* @__PURE__ */ e(ie, {}),
336
339
  /* @__PURE__ */ t(he, { children: [
@@ -356,9 +359,9 @@ function ja() {
356
359
  /* @__PURE__ */ e(ye, {})
357
360
  ] }, n.value)) }) })
358
361
  ] }),
359
- /* @__PURE__ */ e(De, {})
362
+ /* @__PURE__ */ e(Le, {})
360
363
  ] }, a.name)),
361
- /* @__PURE__ */ e(Le, {})
364
+ /* @__PURE__ */ e(De, {})
362
365
  ] }) }),
363
366
  /* @__PURE__ */ t(Pe, { children: [
364
367
  /* @__PURE__ */ e(We, {}),
@@ -373,8 +376,8 @@ function ja() {
373
376
  ] });
374
377
  }
375
378
  export {
376
- sd as InkeepEmbeddedChat,
377
- xa as InkeepEmbeddedChatImpl,
378
- ya as InkeepEmbeddedChatImplContent,
379
- wa as InkeepEmbeddedChatProvider
379
+ od as InkeepEmbeddedChat,
380
+ ya as InkeepEmbeddedChatImpl,
381
+ La as InkeepEmbeddedChatImplContent,
382
+ xa as InkeepEmbeddedChatProvider
380
383
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),i=require("lucide-react"),p=t=>{const{type:r,label:a}=t;return a||r.replace(/_/g," ").replace(/\b\w/g,s=>s.toUpperCase())},d={retrieve:e.jsx(i.Search,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),action:e.jsx(i.CheckCheck,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),default:e.jsx(i.Dot,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"})},x=n.memo(({summary:t,index:r,showConnector:a})=>{const s=n.useMemo(()=>t.details?JSON.stringify(t.details,null,2):null,[t.details]),o=n.useMemo(()=>p(t),[t]),l=n.useMemo(()=>d[t.type]||d.default,[t.type]);return e.jsxs("div",{className:"flex items-start gap-2 text-xs relative",children:[a&&e.jsx("div",{className:"absolute left-1.5 top-6 bottom-0 w-px bg-gray-200 dark:bg-white-alpha-200 -mb-3"}),e.jsx("div",{className:"flex items-center justify-center w-3 h-3 relative z-10 mt-0.5",children:l}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:" text-gray-700 dark:text-white-alpha-600 mb-2",children:o}),s&&e.jsx("pre",{className:"mt-1 text-xs whitespace-pre-wrap font-mono bg-gray-50 dark:bg-gray-dark-900 p-2 rounded-md px-3 py-2",children:s})]})]},`op-${t.type}-${r}`)}),h=n.memo(({summaries:t,isCompleted:r})=>{const[a,s]=n.useState(!r);n.useEffect(()=>{let l;return r?l=setTimeout(()=>{s(!1)},1e3):s(!0),()=>{l&&clearTimeout(l)}},[r]);const o=n.useCallback(()=>{s(!a)},[a]);return e.jsxs("div",{className:"flex flex-col items-start mb-2.5 mt-2.5 first:mt-1 relative",children:[e.jsx("button",{type:"button",onClick:o,"data-expanded":a,className:"inline-flex items-center group gap-2 text-xs text-gray-500 dark:text-white-alpha-600 hover:text-gray-700 dark:hover:text-white-alpha-700 transition-colors cursor-pointer",children:r?e.jsxs(e.Fragment,{children:[e.jsx(i.Check,{className:"check-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 absolute opacity-100 group-hover:opacity-0 group-data-[expanded=true]:opacity-0"}),e.jsx(i.ChevronRight,{className:"chevron-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 transform opacity-0 rotate-0 group-hover:opacity-100 group-data-[expanded=true]:opacity-100 group-data-[expanded=true]:rotate-90"}),e.jsx("span",{className:"font-medium",children:"Completed"})]}):e.jsxs(e.Fragment,{children:[e.jsx(i.LoaderCircle,{className:"w-3 h-3 animate-spin"}),e.jsx("span",{className:"font-medium",children:"Thinking..."})]})}),e.jsx("div",{"data-expanded":a,className:"overflow-hidden transition-all duration-300 ease-in-out data-[expanded=true]:max-h-96 data-[expanded=true]:opacity-100 data-[expanded=false]:max-h-0 data-[expanded=false]:opacity-0",children:e.jsx("div",{className:"pb-2 mt-1.5 space-y-3 relative",children:t.map((l,c)=>e.jsx(x,{summary:l,index:c,showConnector:t.length>1&&c<t.length-1},`op-${l.type}-${c}`))})})]})});exports.DataSummaryGroup=h;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),a=require("lucide-react"),x=t=>{const{type:s,label:r}=t;return r||s.replace(/_/g," ").replace(/\b\w/g,l=>l.toUpperCase())},h={agent_generate:e.jsx(a.RefreshCw,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),agent_reasoning:e.jsx(a.Brain,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),tool_execution:e.jsx(a.Hammer,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),transfer:e.jsx(a.ArrowRight,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),delegation_sent:e.jsx(a.Forward,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),delegation_returned:e.jsx(a.CheckCheck,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),artifact_saved:e.jsx(a.Download,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),default:e.jsx(a.Dot,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"})},d={retrieve:e.jsx(a.Search,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),action:e.jsx(a.CheckCheck,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),default:e.jsx(a.Dot,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),...h},p=n.memo(({summary:t,index:s,showConnector:r})=>{const l=n.useMemo(()=>t.details?JSON.stringify(t.details,null,2):null,[t.details]),o=n.useMemo(()=>x(t),[t]),i=n.useMemo(()=>d[t.type]||d.default,[t.type]);return e.jsxs("div",{className:"flex items-start gap-2 text-xs relative",children:[r&&e.jsx("div",{className:"absolute left-1.5 top-4 bottom-0 w-px bg-gray-200 dark:bg-white-alpha-200 -mb-3"}),e.jsx("div",{className:"flex items-center justify-center w-3 h-3 relative z-10 mt-0.5",children:i}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:" text-gray-700 dark:text-white-alpha-600",children:o}),l&&e.jsx("pre",{className:"mt-2 text-xs whitespace-pre-wrap font-mono bg-gray-50 dark:bg-gray-dark-900 p-2 rounded-md px-3 py-2",children:l})]})]},`op-${t.type}-${s}`)}),m=n.memo(({summaries:t,isCompleted:s})=>{const[r,l]=n.useState(!s);n.useEffect(()=>{let i;return s?i=setTimeout(()=>{l(!1)},1e3):l(!0),()=>{i&&clearTimeout(i)}},[s]);const o=n.useCallback(()=>{l(!r)},[r]);return e.jsxs("div",{className:"flex flex-col items-start mb-2.5 mt-2.5 first:mt-1 relative",children:[e.jsx("button",{type:"button",onClick:o,"data-expanded":r,className:"inline-flex items-center group gap-2 text-xs text-gray-500 dark:text-white-alpha-600 hover:text-gray-700 dark:hover:text-white-alpha-700 transition-colors cursor-pointer",children:s?e.jsxs(e.Fragment,{children:[e.jsx(a.Check,{className:"check-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 absolute opacity-100 group-hover:opacity-0 group-data-[expanded=true]:opacity-0"}),e.jsx(a.ChevronRight,{className:"chevron-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 transform opacity-0 rotate-0 group-hover:opacity-100 group-data-[expanded=true]:opacity-100 group-data-[expanded=true]:rotate-90"}),e.jsx("span",{className:"font-medium",children:"Completed"})]}):e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"w-3 h-3 animate-spin"}),e.jsx("span",{className:"font-medium",children:"Thinking..."})]})}),e.jsx("div",{"data-expanded":r,className:"overflow-hidden transition-all duration-300 ease-in-out data-[expanded=true]:opacity-100 data-[expanded=false]:max-h-0 data-[expanded=false]:opacity-0 max-w-full",children:e.jsx("div",{className:"pb-2 mt-1.5 space-y-3 relative",children:t.map((i,c)=>e.jsx(p,{summary:i,index:c,showConnector:t.length>1&&c<t.length-1},`op-${i.type}-${c}`))})})]})});exports.DataSummaryGroup=m;
@@ -1,30 +1,40 @@
1
1
  "use client";
2
- import { jsxs as n, jsx as e, Fragment as c } from "react/jsx-runtime";
3
- import { memo as h, useState as x, useEffect as m, useCallback as u, useMemo as d } from "react";
4
- import { Check as g, ChevronRight as f, LoaderCircle as y, Dot as w, CheckCheck as v, Search as N } from "lucide-react";
5
- const b = (t) => {
2
+ import { jsxs as s, jsx as e, Fragment as c } from "react/jsx-runtime";
3
+ import { memo as p, useState as g, useEffect as w, useCallback as u, useMemo as d } from "react";
4
+ import { Check as f, ChevronRight as y, LoaderCircle as N, Dot as x, CheckCheck as m, Search as k, Download as v, Forward as b, ArrowRight as _, Hammer as C, Brain as S, RefreshCw as A } from "lucide-react";
5
+ const E = (t) => {
6
6
  const { type: r, label: a } = t;
7
7
  return a || r.replace(/_/g, " ").replace(/\b\w/g, (l) => l.toUpperCase());
8
- }, p = {
9
- retrieve: /* @__PURE__ */ e(N, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
10
- action: /* @__PURE__ */ e(v, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
11
- default: /* @__PURE__ */ e(w, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" })
12
- }, k = h(({ summary: t, index: r, showConnector: a }) => {
13
- const l = d(() => t.details ? JSON.stringify(t.details, null, 2) : null, [t.details]), o = d(() => b(t), [t]), i = d(
14
- () => p[t.type] || p.default,
8
+ }, I = {
9
+ agent_generate: /* @__PURE__ */ e(A, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
10
+ agent_reasoning: /* @__PURE__ */ e(S, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
11
+ tool_execution: /* @__PURE__ */ e(C, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
12
+ transfer: /* @__PURE__ */ e(_, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
13
+ delegation_sent: /* @__PURE__ */ e(b, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
14
+ delegation_returned: /* @__PURE__ */ e(m, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
15
+ artifact_saved: /* @__PURE__ */ e(v, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
16
+ default: /* @__PURE__ */ e(x, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" })
17
+ }, h = {
18
+ retrieve: /* @__PURE__ */ e(k, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
19
+ action: /* @__PURE__ */ e(m, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
20
+ default: /* @__PURE__ */ e(x, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
21
+ ...I
22
+ }, M = p(({ summary: t, index: r, showConnector: a }) => {
23
+ const l = d(() => t.details ? JSON.stringify(t.details, null, 2) : null, [t.details]), n = d(() => E(t), [t]), i = d(
24
+ () => h[t.type] || h.default,
15
25
  [t.type]
16
26
  );
17
- return /* @__PURE__ */ n("div", { className: "flex items-start gap-2 text-xs relative", children: [
18
- a && /* @__PURE__ */ e("div", { className: "absolute left-1.5 top-6 bottom-0 w-px bg-gray-200 dark:bg-white-alpha-200 -mb-3" }),
27
+ return /* @__PURE__ */ s("div", { className: "flex items-start gap-2 text-xs relative", children: [
28
+ a && /* @__PURE__ */ e("div", { className: "absolute left-1.5 top-4 bottom-0 w-px bg-gray-200 dark:bg-white-alpha-200 -mb-3" }),
19
29
  /* @__PURE__ */ e("div", { className: "flex items-center justify-center w-3 h-3 relative z-10 mt-0.5", children: i }),
20
- /* @__PURE__ */ n("div", { className: "flex-1", children: [
21
- /* @__PURE__ */ e("div", { className: " text-gray-700 dark:text-white-alpha-600 mb-2", children: o }),
22
- l && /* @__PURE__ */ e("pre", { className: "mt-1 text-xs whitespace-pre-wrap font-mono bg-gray-50 dark:bg-gray-dark-900 p-2 rounded-md px-3 py-2", children: l })
30
+ /* @__PURE__ */ s("div", { className: "flex-1", children: [
31
+ /* @__PURE__ */ e("div", { className: " text-gray-700 dark:text-white-alpha-600", children: n }),
32
+ l && /* @__PURE__ */ e("pre", { className: "mt-2 text-xs whitespace-pre-wrap font-mono bg-gray-50 dark:bg-gray-dark-900 p-2 rounded-md px-3 py-2", children: l })
23
33
  ] })
24
34
  ] }, `op-${t.type}-${r}`);
25
- }), M = h(({ summaries: t, isCompleted: r }) => {
26
- const [a, l] = x(!r);
27
- m(() => {
35
+ }), T = p(({ summaries: t, isCompleted: r }) => {
36
+ const [a, l] = g(!r);
37
+ w(() => {
28
38
  let i;
29
39
  return r ? i = setTimeout(() => {
30
40
  l(!1);
@@ -32,23 +42,23 @@ const b = (t) => {
32
42
  i && clearTimeout(i);
33
43
  };
34
44
  }, [r]);
35
- const o = u(() => {
45
+ const n = u(() => {
36
46
  l(!a);
37
47
  }, [a]);
38
- return /* @__PURE__ */ n("div", { className: "flex flex-col items-start mb-2.5 mt-2.5 first:mt-1 relative", children: [
48
+ return /* @__PURE__ */ s("div", { className: "flex flex-col items-start mb-2.5 mt-2.5 first:mt-1 relative", children: [
39
49
  /* @__PURE__ */ e(
40
50
  "button",
41
51
  {
42
52
  type: "button",
43
- onClick: o,
53
+ onClick: n,
44
54
  "data-expanded": a,
45
55
  className: "inline-flex items-center group gap-2 text-xs text-gray-500 dark:text-white-alpha-600 hover:text-gray-700 dark:hover:text-white-alpha-700 transition-colors cursor-pointer",
46
- children: r ? /* @__PURE__ */ n(c, { children: [
47
- /* @__PURE__ */ e(g, { className: "check-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 absolute opacity-100 group-hover:opacity-0 group-data-[expanded=true]:opacity-0" }),
48
- /* @__PURE__ */ e(f, { className: "chevron-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 transform opacity-0 rotate-0 group-hover:opacity-100 group-data-[expanded=true]:opacity-100 group-data-[expanded=true]:rotate-90" }),
56
+ children: r ? /* @__PURE__ */ s(c, { children: [
57
+ /* @__PURE__ */ e(f, { className: "check-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 absolute opacity-100 group-hover:opacity-0 group-data-[expanded=true]:opacity-0" }),
58
+ /* @__PURE__ */ e(y, { className: "chevron-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 transform opacity-0 rotate-0 group-hover:opacity-100 group-data-[expanded=true]:opacity-100 group-data-[expanded=true]:rotate-90" }),
49
59
  /* @__PURE__ */ e("span", { className: "font-medium", children: "Completed" })
50
- ] }) : /* @__PURE__ */ n(c, { children: [
51
- /* @__PURE__ */ e(y, { className: "w-3 h-3 animate-spin" }),
60
+ ] }) : /* @__PURE__ */ s(c, { children: [
61
+ /* @__PURE__ */ e(N, { className: "w-3 h-3 animate-spin" }),
52
62
  /* @__PURE__ */ e("span", { className: "font-medium", children: "Thinking..." })
53
63
  ] })
54
64
  }
@@ -57,20 +67,20 @@ const b = (t) => {
57
67
  "div",
58
68
  {
59
69
  "data-expanded": a,
60
- className: "overflow-hidden transition-all duration-300 ease-in-out data-[expanded=true]:max-h-96 data-[expanded=true]:opacity-100 data-[expanded=false]:max-h-0 data-[expanded=false]:opacity-0",
61
- children: /* @__PURE__ */ e("div", { className: "pb-2 mt-1.5 space-y-3 relative", children: t.map((i, s) => /* @__PURE__ */ e(
62
- k,
70
+ className: "overflow-hidden transition-all duration-300 ease-in-out data-[expanded=true]:opacity-100 data-[expanded=false]:max-h-0 data-[expanded=false]:opacity-0 max-w-full",
71
+ children: /* @__PURE__ */ e("div", { className: "pb-2 mt-1.5 space-y-3 relative", children: t.map((i, o) => /* @__PURE__ */ e(
72
+ M,
63
73
  {
64
74
  summary: i,
65
- index: s,
66
- showConnector: t.length > 1 && s < t.length - 1
75
+ index: o,
76
+ showConnector: t.length > 1 && o < t.length - 1
67
77
  },
68
- `op-${i.type}-${s}`
78
+ `op-${i.type}-${o}`
69
79
  )) })
70
80
  }
71
81
  )
72
82
  ] });
73
83
  });
74
84
  export {
75
- M as DataSummaryGroup
85
+ T as DataSummaryGroup
76
86
  };