@inkeep/agents-ui 0.17.7 → 0.17.8

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,85 +1,85 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as d, Fragment as b } from "react/jsx-runtime";
3
- import M, { Fragment as x } from "react";
4
- import { Wrapper as Q, Root as $, Provider as _, Header as R, HeaderToolbar as O, HeaderToolbarWrapper as j, ChatHistoryTrigger as G, Content as U, ContentScrollArea as K, ContentScrollAreaViewport as Z, MessagesSessionLoading as z, ContentScrollAreaScrollbar as J, ContentScrollAreaThumb as X, ContentScrollAreaCorner as Y, Footer as q, FeedbackModal as ee, FeedbackModalOverlay as de, FeedbackModalContent as te, FeedbackModalHeader as ae, FeedbackModalClose as oe, FeedbackModalBody as re, FeedbackForm as ne, FeedbackField as ie, FeedbackItemLabel as me, FeedbackItemDescription as se, FeedbackSubmitButton as le, FormWrapper as ce, FormClose as he, Form as be, FormHeader as Ce, FormHeading as Fe, FormDescription as Ee, FormContent as pe, FormField as ue, FormFieldLabel as ge, FormFieldText as Ie, FormFieldEmail as Me, FormFieldFile as Se, FormFieldTextArea as Te, FormFieldCheckbox as xe, FormFieldCheckboxIndicator as Ae, FormFieldSelect as He, FormFieldSelectTrigger as fe, FormFieldSelectValue as ye, FormFieldSelectIcon as ke, FormFieldSelectContent as ve, FormFieldSelectViewport as we, FormFieldSelectItem as Le, FormFieldSelectItemText as Be, FormFieldSelectItemIndicator as De, FormFieldCombobox as Pe, FormFieldComboboxControl as We, FormFieldComboboxSelectedTags as Ve, FormFieldComboboxInput as Ne, FormFieldComboboxTrigger as Qe, FormFieldComboboxPositioner as $e, FormFieldComboboxContent as _e, FormFieldComboboxList as Re, FormFieldComboboxListItems as Oe, FormFieldComboboxListEmpty as je, FormFieldComboboxItem as Ge, FormFieldComboboxItemText as Ue, FormFieldComboboxItemIndicator as Ke, FormFieldDescription as Ze, FormFieldError as ze, FormError as Je, FormFooter as Xe, FormCancel as Ye, FormSubmit as qe, FormSuccess as ed, FormSuccessHeading as dd, FormSuccessMessage as td, FormSuccessButton as ad, Messages as od, MessageWrapper as S, MessageContentWrapper as A, MessageContent as H, DynamicComponent as rd, MessageLoading as nd, InputFieldset as id, InputGroup as md, Input as sd, SendButton as ld, SendButtonIcon as cd, ActionBar as hd, TaglineContainer as bd, TaglineText as Cd, TaglineLogo as Fd, Actions as Ed, HelpActions as pd, HelpAction as ud, HelpActionsTrigger as gd, HelpActionsMenu as Id, HelpActionsMenuArrow as Md, HelpActionsMenuItem as Sd, HelpActionsMenuItemIcon as Td, ChatAction as E, ChatActionLabel as xd, ChatActionFeedback as Ad, IntroMessageWrapper as Hd, MessageHeader as f, MessageAvatar as y, MessageAvatarContent as k, MessageAvatarImage as v, MessageName as w, Disclaimer as fd, DisclaimerLabel as yd, DisclaimerTrigger as kd, DisclaimerContent as vd, DisclaimerText as wd, DisclaimerArrow as Ld, ExampleQuestions as Bd, ExampleQuestionsLabel as Dd, ExampleQuestionsList as Pd, ExampleQuestion as Wd, ExampleQuestionButton as Vd, Markdown as Nd, MessageSources as Qd, MessageSourcesHeader as $d, MessageSourcesList as _d, MessageSourceItem as Rd, MessageSourceItemBreadcrumbs as Od, MessageSourceItemBreadcrumbIcon as jd, MessageSourceItemIcon as Gd, MessageSourceItemTitle as Ud, MessageSourceItemTag as Kd, MessageSourceItemDescription as Zd, MessageSourceItemDescriptionPart as zd, MessageSourceItemIndicator as Jd, MessageToolbar as Xd, MessageCustomActions as Yd, MessageCustomAction as qd, MessageAction as p } from "../styled/components/embedded-chat.js";
5
- import { EmbeddedChatHistoryRoot as et, EmbeddedChatHistoryHeader as dt, EmbeddedChatHistoryBackButton as tt, EmbeddedChatHistoryBackButtonIcon as at, EmbeddedChatHistoryTitle as ot, EmbeddedChatHistoryList as rt, EmbeddedChatHistoryItem as nt, EmbeddedChatHistoryItemTitle as it, EmbeddedChatHistoryItemDate as mt, formatSessionDate as st, EmbeddedChatHistoryEmptyState as lt, EmbeddedChatHistoryLoadingState as ct, EmbeddedChatHistoryFooter as ht, EmbeddedChatHistoryNewConversationButton as bt } from "../styled/components/chat-history.js";
6
- import { Close as u } from "../styled/components/modal.js";
7
- import { Shadow as Ct } from "../styled/components/shadow.js";
8
- import { EmbeddedChatMessagePart as L } from "../styled/components/message.js";
9
- import { ChatAuthProvider as Ft } from "../primitives/providers/chat-auth-provider.js";
10
- import { ChatBaseEventsProvider as Et } from "../primitives/providers/chat-base-events-provider.js";
11
- import { useChatHistory as pt } from "../primitives/providers/chat-history-provider.js";
12
- import { WebWidgetInteractionType as ut, useInkeepConfig as B } from "../primitives/providers/config-provider.js";
13
- import { RootProvider as gt } from "../primitives/providers/root-provider.js";
14
- import { useWidget as It } from "../primitives/providers/widget-provider.js";
15
- import { useChat as D } from "../primitives/components/embedded-chat/chat-provider.js";
16
- import { useModal as Mt } from "../primitives/components/modal/modal-provider.js";
17
- import { dataAttr as C } from "../primitives/utils/misc.js";
18
- import { PortalWithTheme as P } from "../primitives/atoms/portal-with-theme.js";
19
- import { ErrorBoundary as St } from "../primitives/atoms/error-boundary.js";
20
- import { ModalContent as Tt } from "./modal.js";
21
- import { ImagePreviewProvider as xt } from "../primitives/providers/image-preview-provider.js";
22
- import { WidgetToggle as At } from "./widget-toggle.js";
23
- import { isImageMimeType as W } from "../primitives/components/embedded-chat/file-upload-input.js";
24
- import { EmbeddedChatInputNotification as Ht, EmbeddedChatInputNotificationContent as ft, EmbeddedChatInputNotificationHeader as yt, EmbeddedChatInputNotificationTitle as kt, EmbeddedChatInputNotificationClose as vt, EmbeddedChatInputNotificationMessage as wt, EmbeddedChatFileInput as Lt, EmbeddedChatDropZone as Bt, EmbeddedChatFileList as Dt, EmbeddedChatFileItem as Pt, EmbeddedChatFilePreviewTrigger as Wt, EmbeddedChatFileThumbnail as V, EmbeddedChatFileName as g, EmbeddedChatFileContent as Vt, EmbeddedChatFileTypeIcon as N, EmbeddedChatFileRemove as Nt, EmbeddedChatFileUploadButton as Qt, EmbeddedChatMessageFiles as $t, EmbeddedChatMessageFile as _t } from "../styled/components/embedded-chat/file-upload-input.js";
25
- import { EmbeddedChatImagePreviewModal as Rt, EmbeddedChatImagePreviewModalOverlay as Ot, EmbeddedChatImagePreviewModalContent as jt, EmbeddedChatImagePreviewModalClose as Gt, EmbeddedChatImagePreviewModalImage as Ut, EmbeddedChatImagePreviewModalFooter as Kt, EmbeddedChatImagePreviewModalFileName as Zt } from "../styled/components/embedded-chat/image-preview-modal.js";
2
+ import { jsx as e, jsxs as d, Fragment as h } from "react/jsx-runtime";
3
+ import b, { Fragment as I } from "react";
4
+ import { Wrapper as V, Root as N, Provider as Q, Header as $, HeaderToolbar as _, HeaderToolbarWrapper as R, ChatHistoryTrigger as O, Content as j, ContentScrollArea as G, ContentScrollAreaViewport as U, MessagesSessionLoading as K, ContentScrollAreaScrollbar as Z, ContentScrollAreaThumb as z, ContentScrollAreaCorner as J, Footer as X, FeedbackModal as Y, FeedbackModalOverlay as q, FeedbackModalContent as ee, FeedbackModalHeader as de, FeedbackModalClose as te, FeedbackModalBody as ae, FeedbackForm as oe, FeedbackField as re, FeedbackItemLabel as ne, FeedbackItemDescription as ie, FeedbackSubmitButton as se, FormWrapper as me, FormClose as le, Form as ce, FormHeader as he, FormHeading as be, FormDescription as Ce, FormContent as Fe, FormField as Ee, FormFieldLabel as ue, FormFieldText as pe, FormFieldEmail as ge, FormFieldFile as Ie, FormFieldTextArea as Me, FormFieldCheckbox as Se, FormFieldCheckboxIndicator as Te, FormFieldSelect as xe, FormFieldSelectTrigger as Ae, FormFieldSelectValue as fe, FormFieldSelectIcon as He, FormFieldSelectContent as ye, FormFieldSelectViewport as ke, FormFieldSelectItem as ve, FormFieldSelectItemText as we, FormFieldSelectItemIndicator as Le, FormFieldCombobox as Be, FormFieldComboboxControl as De, FormFieldComboboxSelectedTags as Pe, FormFieldComboboxInput as We, FormFieldComboboxTrigger as Ve, FormFieldComboboxPositioner as Ne, FormFieldComboboxContent as Qe, FormFieldComboboxList as $e, FormFieldComboboxListItems as _e, FormFieldComboboxListEmpty as Re, FormFieldComboboxItem as Oe, FormFieldComboboxItemText as je, FormFieldComboboxItemIndicator as Ge, FormFieldDescription as Ue, FormFieldError as Ke, FormError as Ze, FormFooter as ze, FormCancel as Je, FormSubmit as Xe, FormSuccess as Ye, FormSuccessHeading as qe, FormSuccessMessage as ed, FormSuccessButton as dd, Messages as td, MessageWrapper as M, MessageLoading as ad, InputFieldset as od, InputGroup as rd, Input as nd, SendButton as id, SendButtonIcon as sd, ActionBar as md, TaglineContainer as ld, TaglineText as cd, TaglineLogo as hd, Actions as bd, HelpActions as Cd, HelpAction as Fd, HelpActionsTrigger as Ed, HelpActionsMenu as ud, HelpActionsMenuArrow as pd, HelpActionsMenuItem as gd, HelpActionsMenuItemIcon as Id, ChatAction as C, ChatActionLabel as Md, ChatActionFeedback as Sd, IntroMessageWrapper as Td, MessageHeader as S, MessageAvatar as T, MessageAvatarContent as x, MessageAvatarImage as A, MessageName as f, MessageContentWrapper as H, MessageContent as y, Disclaimer as xd, DisclaimerLabel as Ad, DisclaimerTrigger as fd, DisclaimerContent as Hd, DisclaimerText as yd, DisclaimerArrow as kd, ExampleQuestions as vd, ExampleQuestionsLabel as wd, ExampleQuestionsList as Ld, ExampleQuestion as Bd, ExampleQuestionButton as Dd, DynamicComponent as Pd, Markdown as Wd, MessageSources as Vd, MessageSourcesHeader as Nd, MessageSourcesList as Qd, MessageSourceItem as $d, MessageSourceItemBreadcrumbs as _d, MessageSourceItemBreadcrumbIcon as Rd, MessageSourceItemIcon as Od, MessageSourceItemTitle as jd, MessageSourceItemTag as Gd, MessageSourceItemDescription as Ud, MessageSourceItemDescriptionPart as Kd, MessageSourceItemIndicator as Zd, MessageToolbar as zd, MessageCustomActions as Jd, MessageCustomAction as Xd, MessageAction as F } from "../styled/components/embedded-chat.js";
5
+ import { EmbeddedChatHistoryRoot as Yd, EmbeddedChatHistoryHeader as qd, EmbeddedChatHistoryBackButton as et, EmbeddedChatHistoryBackButtonIcon as dt, EmbeddedChatHistoryTitle as tt, EmbeddedChatHistoryList as at, EmbeddedChatHistoryItem as ot, EmbeddedChatHistoryItemTitle as rt, EmbeddedChatHistoryItemDate as nt, formatSessionDate as it, EmbeddedChatHistoryEmptyState as st, EmbeddedChatHistoryLoadingState as mt, EmbeddedChatHistoryFooter as lt, EmbeddedChatHistoryNewConversationButton as ct } from "../styled/components/chat-history.js";
6
+ import { Close as E } from "../styled/components/modal.js";
7
+ import { Shadow as ht } from "../styled/components/shadow.js";
8
+ import { EmbeddedChatMessagePart as k } from "../styled/components/message.js";
9
+ import { ChatAuthProvider as bt } from "../primitives/providers/chat-auth-provider.js";
10
+ import { ChatBaseEventsProvider as Ct } from "../primitives/providers/chat-base-events-provider.js";
11
+ import { useChatHistory as Ft } from "../primitives/providers/chat-history-provider.js";
12
+ import { WebWidgetInteractionType as Et, useInkeepConfig as v } from "../primitives/providers/config-provider.js";
13
+ import { RootProvider as ut } from "../primitives/providers/root-provider.js";
14
+ import { useWidget as pt } from "../primitives/providers/widget-provider.js";
15
+ import { useChat as p } from "../primitives/components/embedded-chat/chat-provider.js";
16
+ import { useModal as gt } from "../primitives/components/modal/modal-provider.js";
17
+ import { dataAttr as c } from "../primitives/utils/misc.js";
18
+ import { PortalWithTheme as w } from "../primitives/atoms/portal-with-theme.js";
19
+ import { ErrorBoundary as It } from "../primitives/atoms/error-boundary.js";
20
+ import { ModalContent as Mt } from "./modal.js";
21
+ import { ImagePreviewProvider as St } from "../primitives/providers/image-preview-provider.js";
22
+ import { WidgetToggle as Tt } from "./widget-toggle.js";
23
+ import { isImageMimeType as L } from "../primitives/components/embedded-chat/file-upload-input.js";
24
+ import { EmbeddedChatInputNotification as xt, EmbeddedChatInputNotificationContent as At, EmbeddedChatInputNotificationHeader as ft, EmbeddedChatInputNotificationTitle as Ht, EmbeddedChatInputNotificationClose as yt, EmbeddedChatInputNotificationMessage as kt, EmbeddedChatFileInput as vt, EmbeddedChatDropZone as wt, EmbeddedChatFileList as Lt, EmbeddedChatFileItem as Bt, EmbeddedChatFilePreviewTrigger as Dt, EmbeddedChatFileThumbnail as B, EmbeddedChatFileName as u, EmbeddedChatFileContent as Pt, EmbeddedChatFileTypeIcon as D, EmbeddedChatFileRemove as Wt, EmbeddedChatFileUploadButton as Vt, EmbeddedChatMessageFiles as Nt, EmbeddedChatMessageFile as Qt } from "../styled/components/embedded-chat/file-upload-input.js";
25
+ import { EmbeddedChatImagePreviewModal as $t, EmbeddedChatImagePreviewModalOverlay as _t, EmbeddedChatImagePreviewModalContent as Rt, EmbeddedChatImagePreviewModalClose as Ot, EmbeddedChatImagePreviewModalImage as jt, EmbeddedChatImagePreviewModalFooter as Gt, EmbeddedChatImagePreviewModalFileName as Ut } from "../styled/components/embedded-chat/image-preview-modal.js";
26
26
  function Wa(a) {
27
27
  const { baseSettings: t, aiChatSettings: o } = a;
28
- return /* @__PURE__ */ e(St, { children: /* @__PURE__ */ e(
29
- Ct,
28
+ return /* @__PURE__ */ e(It, { children: /* @__PURE__ */ e(
29
+ ht,
30
30
  {
31
31
  wrapperStyles: {
32
32
  height: "inherit",
33
33
  width: "inherit"
34
34
  },
35
35
  children: /* @__PURE__ */ e(
36
- gt,
36
+ ut,
37
37
  {
38
38
  config: {
39
39
  baseSettings: t,
40
40
  aiChatSettings: o
41
41
  },
42
- componentType: ut.EmbeddedChat,
43
- children: /* @__PURE__ */ e(Jt, { ...a })
42
+ componentType: Et.EmbeddedChat,
43
+ children: /* @__PURE__ */ e(Zt, { ...a })
44
44
  }
45
45
  )
46
46
  }
47
47
  ) });
48
48
  }
49
- function zt(a) {
49
+ function Kt(a) {
50
50
  const { children: t, onToggleView: o, isHidden: r, shouldAutoFocusInput: n = !o } = a;
51
- return /* @__PURE__ */ e(Ft, { children: /* @__PURE__ */ e(Et, { children: /* @__PURE__ */ e(_, { isHidden: r, shouldAutoFocusInput: n, children: t }) }) });
51
+ return /* @__PURE__ */ e(bt, { children: /* @__PURE__ */ e(Ct, { children: /* @__PURE__ */ e(Q, { isHidden: r, shouldAutoFocusInput: n, children: t }) }) });
52
52
  }
53
- function Jt(a) {
54
- return /* @__PURE__ */ e(zt, { ...a, children: /* @__PURE__ */ e(Xt, { ...a }) });
53
+ function Zt(a) {
54
+ return /* @__PURE__ */ e(Kt, { ...a, children: /* @__PURE__ */ e(zt, { ...a }) });
55
55
  }
56
- function Xt(a) {
57
- const { onToggleView: t, variant: o, header: r = Yt } = a, n = Mt(), i = It();
58
- return /* @__PURE__ */ e(xt, { children: /* @__PURE__ */ e(n && !i ? Tt : x, { children: /* @__PURE__ */ d(
59
- Q,
56
+ function zt(a) {
57
+ const { onToggleView: t, variant: o, header: r = Jt } = a, n = gt(), i = pt();
58
+ return /* @__PURE__ */ e(St, { children: /* @__PURE__ */ e(n && !i ? Mt : I, { children: /* @__PURE__ */ d(
59
+ V,
60
60
  {
61
61
  variant: o ?? (t ? "no-shadow" : "container-with-shadow"),
62
- "data-composite": C(!!a.onToggleView || n?.isOpen),
62
+ "data-composite": c(!!a.onToggleView || n?.isOpen),
63
63
  children: [
64
- /* @__PURE__ */ e(sa, {}),
65
- /* @__PURE__ */ d($, { children: [
64
+ /* @__PURE__ */ e(ma, {}),
65
+ /* @__PURE__ */ d(N, { children: [
66
66
  r && /* @__PURE__ */ e(r, { ...a }),
67
- /* @__PURE__ */ e(qt, {}),
67
+ /* @__PURE__ */ e(Xt, {}),
68
68
  /* @__PURE__ */ e(na, {})
69
69
  ] }),
70
70
  /* @__PURE__ */ e(la, {}),
71
- /* @__PURE__ */ e(ta, {}),
71
+ /* @__PURE__ */ e(aa, {}),
72
72
  /* @__PURE__ */ e(ca, {})
73
73
  ]
74
74
  }
75
75
  ) }) });
76
76
  }
77
- const Yt = (a) => {
78
- const { onToggleView: t, askAILabel: o, searchLabel: r } = a, { aiChatSettings: n } = B(), i = n.isChatHistoryButtonVisible, s = !!t || i;
79
- return /* @__PURE__ */ e(R, { "data-show-toolbar": C(s), children: s ? /* @__PURE__ */ d(O, { "data-show-widget-toggle": C(!!t), children: [
80
- /* @__PURE__ */ e(j, { children: i && /* @__PURE__ */ e(G, {}) }),
77
+ const Jt = (a) => {
78
+ const { onToggleView: t, askAILabel: o, searchLabel: r } = a, { aiChatSettings: n } = v(), i = n.isChatHistoryButtonVisible, s = !!t || i;
79
+ return /* @__PURE__ */ e($, { "data-show-toolbar": c(s), children: s ? /* @__PURE__ */ d(_, { "data-show-widget-toggle": c(!!t), children: [
80
+ /* @__PURE__ */ e(R, { children: i && /* @__PURE__ */ e(O, {}) }),
81
81
  t && /* @__PURE__ */ e(
82
- At,
82
+ Tt,
83
83
  {
84
84
  onToggleView: t,
85
85
  askAILabel: o,
@@ -87,64 +87,82 @@ const Yt = (a) => {
87
87
  view: "chat"
88
88
  }
89
89
  ),
90
- /* @__PURE__ */ e(u, {})
91
- ] }) : /* @__PURE__ */ e(u, {}) });
90
+ /* @__PURE__ */ e(E, {})
91
+ ] }) : /* @__PURE__ */ e(E, {}) });
92
92
  };
93
- function qt() {
94
- const { isSessionLoading: a } = D();
95
- return /* @__PURE__ */ e(U, { children: /* @__PURE__ */ d(K, { children: [
96
- /* @__PURE__ */ e(Z, { children: a ? /* @__PURE__ */ e(z, {}) : /* @__PURE__ */ e(ea, {}) }),
97
- /* @__PURE__ */ e(J, { children: /* @__PURE__ */ e(X, {}) }),
98
- /* @__PURE__ */ e(Y, {})
93
+ function Xt() {
94
+ const { isSessionLoading: a } = p();
95
+ return /* @__PURE__ */ e(j, { children: /* @__PURE__ */ d(G, { children: [
96
+ /* @__PURE__ */ e(U, { children: a ? /* @__PURE__ */ e(K, {}) : /* @__PURE__ */ e(da, {}) }),
97
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(z, {}) }),
98
+ /* @__PURE__ */ e(J, {})
99
99
  ] }) });
100
100
  }
101
- function ea() {
101
+ const Yt = (a) => /* @__PURE__ */ e(Wd, { text: a });
102
+ function qt() {
103
+ const { isStreaming: a } = p();
104
+ return a ? null : /* @__PURE__ */ e(W, {});
105
+ }
106
+ const ea = b.memo(function({
107
+ message: t,
108
+ isLast: o,
109
+ components: r
110
+ }) {
111
+ const n = (i, s) => {
112
+ const m = r?.[i];
113
+ if (!m)
114
+ return console.warn(`Component "${i}" not found in components config`), null;
115
+ const g = { ...s, messageId: t.id };
116
+ try {
117
+ if (typeof m == "function" && m.length <= 1)
118
+ return b.createElement(
119
+ m,
120
+ g
121
+ );
122
+ const l = m(g, document.createElement("div"), null);
123
+ return b.isValidElement(l) || typeof l == "string" ? l : null;
124
+ } catch (l) {
125
+ return console.error(`🔍 [renderComponent] Error rendering component "${i}":`, l), null;
126
+ }
127
+ };
128
+ return /* @__PURE__ */ d(M, { message: t, children: [
129
+ /* @__PURE__ */ e(P, {}),
130
+ /* @__PURE__ */ d(H, { children: [
131
+ /* @__PURE__ */ e(y, { children: r?.IkpMessage ? /* @__PURE__ */ e(
132
+ Pd,
133
+ {
134
+ name: "IkpMessage",
135
+ props: { message: t, renderComponent: n, renderMarkdown: Yt },
136
+ componentDef: r.IkpMessage
137
+ }
138
+ ) : /* @__PURE__ */ d(h, { children: [
139
+ /* @__PURE__ */ e(k, { isLast: o }),
140
+ o ? /* @__PURE__ */ e(qt, {}) : /* @__PURE__ */ e(W, {})
141
+ ] }) }),
142
+ /* @__PURE__ */ e(oa, {}),
143
+ /* @__PURE__ */ e(ra, {})
144
+ ] })
145
+ ] });
146
+ });
147
+ function da() {
102
148
  const {
103
149
  aiChatSettings: { components: a }
104
- } = B();
105
- return /* @__PURE__ */ e(od, { children: ({ messages: t, isLoading: o, isStreaming: r }) => {
106
- const n = t.at(-1), i = (m) => (l, F) => {
107
- const c = a?.[l];
108
- if (!c)
109
- return console.warn(`Component "${l}" not found in components config`), null;
110
- const I = { ...F, messageId: m.id };
111
- try {
112
- if (typeof c == "function" && c.length <= 1)
113
- return M.createElement(
114
- c,
115
- I
116
- );
117
- const h = c(I, document.createElement("div"), null);
118
- return M.isValidElement(h) || typeof h == "string" ? h : null;
119
- } catch (h) {
120
- return console.error(`🔍 [renderComponent] Error rendering component "${l}":`, h), null;
121
- }
122
- }, s = (m) => /* @__PURE__ */ e(Nd, { text: m });
123
- return /* @__PURE__ */ d(b, { children: [
124
- /* @__PURE__ */ e(da, {}),
125
- t.map((m) => {
126
- const l = n?.id === m.id, F = i(m);
127
- return /* @__PURE__ */ d(S, { message: m, children: [
128
- /* @__PURE__ */ e(T, {}),
129
- /* @__PURE__ */ d(A, { children: [
130
- /* @__PURE__ */ e(H, { children: a?.IkpMessage ? /* @__PURE__ */ e(
131
- rd,
132
- {
133
- name: "IkpMessage",
134
- props: { message: m, renderComponent: F, renderMarkdown: s },
135
- componentDef: a.IkpMessage
136
- }
137
- ) : /* @__PURE__ */ d(b, { children: [
138
- /* @__PURE__ */ e(L, { isLast: l }),
139
- (!r || !l) && /* @__PURE__ */ e(ra, {})
140
- ] }) }),
141
- /* @__PURE__ */ e(aa, {}),
142
- /* @__PURE__ */ e(oa, {})
143
- ] })
144
- ] }, m.id);
145
- }),
146
- o && n?.role === "user" && n?.parts.length && /* @__PURE__ */ d(
147
- S,
150
+ } = v();
151
+ return /* @__PURE__ */ e(td, { children: ({ messages: t, isLoading: o }) => {
152
+ const r = t.at(-1);
153
+ return /* @__PURE__ */ d(h, { children: [
154
+ /* @__PURE__ */ e(ta, {}),
155
+ t.map((n) => /* @__PURE__ */ e(
156
+ ea,
157
+ {
158
+ message: n,
159
+ isLast: r?.id === n.id,
160
+ components: a
161
+ },
162
+ n.id
163
+ )),
164
+ o && r?.role === "user" && r?.parts.length && /* @__PURE__ */ d(
165
+ M,
148
166
  {
149
167
  message: {
150
168
  id: "___loader___",
@@ -152,36 +170,36 @@ function ea() {
152
170
  parts: [{ type: "text", text: "Thinking..." }]
153
171
  },
154
172
  children: [
155
- /* @__PURE__ */ e(T, {}),
156
- /* @__PURE__ */ e(nd, {})
173
+ /* @__PURE__ */ e(P, {}),
174
+ /* @__PURE__ */ e(ad, {})
157
175
  ]
158
176
  }
159
177
  )
160
178
  ] });
161
179
  } });
162
180
  }
163
- function da() {
164
- return /* @__PURE__ */ d(Hd, { children: [
165
- /* @__PURE__ */ d(f, { children: [
166
- /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(v, {}) }) }),
167
- /* @__PURE__ */ e(w, {})
181
+ function ta() {
182
+ return /* @__PURE__ */ d(Td, { children: [
183
+ /* @__PURE__ */ d(S, { children: [
184
+ /* @__PURE__ */ e(T, { children: /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(A, {}) }) }),
185
+ /* @__PURE__ */ e(f, {})
168
186
  ] }),
169
- /* @__PURE__ */ d(A, { children: [
170
- /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(L, { isLast: !1 }) }),
171
- /* @__PURE__ */ d(fd, { children: [
172
- /* @__PURE__ */ e(yd, {}),
173
- /* @__PURE__ */ e(kd, {}),
174
- /* @__PURE__ */ d(vd, { children: [
175
- /* @__PURE__ */ e(wd, {}),
176
- /* @__PURE__ */ e(Ld, {})
187
+ /* @__PURE__ */ d(H, { children: [
188
+ /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(k, { isLast: !1 }) }),
189
+ /* @__PURE__ */ d(xd, { children: [
190
+ /* @__PURE__ */ e(Ad, {}),
191
+ /* @__PURE__ */ e(fd, {}),
192
+ /* @__PURE__ */ d(Hd, { children: [
193
+ /* @__PURE__ */ e(yd, {}),
194
+ /* @__PURE__ */ e(kd, {})
177
195
  ] })
178
196
  ] }),
179
- /* @__PURE__ */ d(Bd, { children: [
180
- /* @__PURE__ */ e(Dd, {}),
181
- /* @__PURE__ */ e(Pd, { children: (a) => a.map((t) => /* @__PURE__ */ e(
182
- Wd,
197
+ /* @__PURE__ */ d(vd, { children: [
198
+ /* @__PURE__ */ e(wd, {}),
199
+ /* @__PURE__ */ e(Ld, { children: (a) => a.map((t) => /* @__PURE__ */ e(
200
+ Bd,
183
201
  {
184
- children: /* @__PURE__ */ e(Vd, { question: t })
202
+ children: /* @__PURE__ */ e(Dd, { question: t })
185
203
  },
186
204
  typeof t == "object" ? t.label : t
187
205
  )) })
@@ -189,229 +207,229 @@ function da() {
189
207
  ] })
190
208
  ] });
191
209
  }
192
- function T() {
193
- return /* @__PURE__ */ d(f, { children: [
194
- /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(v, {}) }) }),
195
- /* @__PURE__ */ e(w, {})
210
+ function P() {
211
+ return /* @__PURE__ */ d(S, { children: [
212
+ /* @__PURE__ */ e(T, { children: /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(A, {}) }) }),
213
+ /* @__PURE__ */ e(f, {})
196
214
  ] });
197
215
  }
198
- function ta() {
199
- return /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(Rt, { children: /* @__PURE__ */ e(Ot, { children: /* @__PURE__ */ d(jt, { children: [
200
- /* @__PURE__ */ e(Gt, {}),
201
- /* @__PURE__ */ e(Ut, {}),
202
- /* @__PURE__ */ e(Kt, { children: /* @__PURE__ */ e(Zt, {}) })
216
+ function aa() {
217
+ return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e($t, { children: /* @__PURE__ */ e(_t, { children: /* @__PURE__ */ d(Rt, { children: [
218
+ /* @__PURE__ */ e(Ot, {}),
219
+ /* @__PURE__ */ e(jt, {}),
220
+ /* @__PURE__ */ e(Gt, { children: /* @__PURE__ */ e(Ut, {}) })
203
221
  ] }) }) }) });
204
222
  }
205
- function aa() {
206
- return /* @__PURE__ */ e($t, { children: (a) => a.map((t, o) => {
207
- const r = t.url, n = t.mediaType ?? "", i = n.split("/").pop(), s = t.filename ?? (i ? `untitled.${i}` : "untitled"), m = W(n);
208
- return /* @__PURE__ */ d(_t, { url: r, name: s, mediaType: n, children: [
209
- m ? /* @__PURE__ */ e(V, {}) : /* @__PURE__ */ e(N, {}),
210
- /* @__PURE__ */ e(g, {})
223
+ function oa() {
224
+ return /* @__PURE__ */ e(Nt, { children: (a) => a.map((t, o) => {
225
+ const r = t.url, n = t.mediaType ?? "", i = n.split("/").pop(), s = t.filename ?? (i ? `untitled.${i}` : "untitled"), m = L(n);
226
+ return /* @__PURE__ */ d(Qt, { url: r, name: s, mediaType: n, children: [
227
+ m ? /* @__PURE__ */ e(B, {}) : /* @__PURE__ */ e(D, {}),
228
+ /* @__PURE__ */ e(u, {})
211
229
  ] }, r || o);
212
230
  }) });
213
231
  }
214
- function oa() {
215
- return /* @__PURE__ */ d(Xd, { children: [
216
- /* @__PURE__ */ e(Yd, { children: (a) => a.map((t, o) => /* @__PURE__ */ e(qd, { action: t }, `action-${o}`)) }),
217
- /* @__PURE__ */ e(p, { action: "copy" }),
218
- /* @__PURE__ */ e(p, { action: "upvote" }),
219
- /* @__PURE__ */ e(p, { action: "downvote" })
232
+ function ra() {
233
+ return /* @__PURE__ */ d(zd, { children: [
234
+ /* @__PURE__ */ e(Jd, { children: (a) => a.map((t, o) => /* @__PURE__ */ e(Xd, { action: t }, `action-${o}`)) }),
235
+ /* @__PURE__ */ e(F, { action: "copy" }),
236
+ /* @__PURE__ */ e(F, { action: "upvote" }),
237
+ /* @__PURE__ */ e(F, { action: "downvote" })
220
238
  ] });
221
239
  }
222
- function ra() {
223
- return /* @__PURE__ */ d(Qd, { children: [
224
- /* @__PURE__ */ e($d, {}),
225
- /* @__PURE__ */ e(_d, { children: (a) => a.map((t, o) => /* @__PURE__ */ d(Rd, { href: t.url, source: t, children: [
226
- /* @__PURE__ */ e(Od, { children: t.breadcrumbs?.map((r) => /* @__PURE__ */ d(x, { children: [
240
+ function W() {
241
+ return /* @__PURE__ */ d(Vd, { children: [
242
+ /* @__PURE__ */ e(Nd, {}),
243
+ /* @__PURE__ */ e(Qd, { children: (a) => a.map((t, o) => /* @__PURE__ */ d($d, { href: t.url, source: t, children: [
244
+ /* @__PURE__ */ e(_d, { children: t.breadcrumbs?.map((r) => /* @__PURE__ */ d(I, { children: [
227
245
  r,
228
- /* @__PURE__ */ e(jd, {})
246
+ /* @__PURE__ */ e(Rd, {})
229
247
  ] }, r)) }),
248
+ /* @__PURE__ */ e(Od, {}),
249
+ /* @__PURE__ */ e(jd, {}),
230
250
  /* @__PURE__ */ e(Gd, {}),
231
- /* @__PURE__ */ e(Ud, {}),
232
- /* @__PURE__ */ e(Kd, {}),
233
- /* @__PURE__ */ e(Zd, { children: (r) => r.map((n, i) => /* @__PURE__ */ e(
234
- zd,
251
+ /* @__PURE__ */ e(Ud, { children: (r) => r.map((n, i) => /* @__PURE__ */ e(
252
+ Kd,
235
253
  {
236
254
  descriptionPart: n
237
255
  },
238
256
  `part-${i}`
239
257
  )) }),
240
- /* @__PURE__ */ e(Jd, {})
258
+ /* @__PURE__ */ e(Zd, {})
241
259
  ] }, o)) })
242
260
  ] });
243
261
  }
244
262
  function na() {
245
- return /* @__PURE__ */ d(q, { children: [
246
- /* @__PURE__ */ e(Ht, { children: /* @__PURE__ */ d(ft, { children: [
247
- /* @__PURE__ */ d(yt, { children: [
248
- /* @__PURE__ */ e(kt, {}),
249
- /* @__PURE__ */ e(vt, {})
263
+ return /* @__PURE__ */ d(X, { children: [
264
+ /* @__PURE__ */ e(xt, { children: /* @__PURE__ */ d(At, { children: [
265
+ /* @__PURE__ */ d(ft, { children: [
266
+ /* @__PURE__ */ e(Ht, {}),
267
+ /* @__PURE__ */ e(yt, {})
250
268
  ] }),
251
- /* @__PURE__ */ e(wt, {})
269
+ /* @__PURE__ */ e(kt, {})
252
270
  ] }) }),
253
271
  /* @__PURE__ */ e(ia, {}),
254
- /* @__PURE__ */ e(ma, {})
272
+ /* @__PURE__ */ e(sa, {})
255
273
  ] });
256
274
  }
257
275
  function ia() {
258
- return /* @__PURE__ */ d(id, { children: [
259
- /* @__PURE__ */ e(Lt, {}),
260
- /* @__PURE__ */ e(Bt, { children: "Drop files here to add to chat" }),
261
- /* @__PURE__ */ e(Dt, { children: (a) => a.map((t, o) => {
262
- const r = W(t.type);
263
- return /* @__PURE__ */ d(Pt, { file: t, children: [
264
- r ? /* @__PURE__ */ d(Wt, { children: [
265
- /* @__PURE__ */ e(V, {}),
266
- /* @__PURE__ */ e(g, {})
267
- ] }) : /* @__PURE__ */ d(Vt, { children: [
268
- /* @__PURE__ */ e(N, {}),
269
- /* @__PURE__ */ e(g, {})
276
+ return /* @__PURE__ */ d(od, { children: [
277
+ /* @__PURE__ */ e(vt, {}),
278
+ /* @__PURE__ */ e(wt, { children: "Drop files here to add to chat" }),
279
+ /* @__PURE__ */ e(Lt, { children: (a) => a.map((t, o) => {
280
+ const r = L(t.type);
281
+ return /* @__PURE__ */ d(Bt, { file: t, children: [
282
+ r ? /* @__PURE__ */ d(Dt, { children: [
283
+ /* @__PURE__ */ e(B, {}),
284
+ /* @__PURE__ */ e(u, {})
285
+ ] }) : /* @__PURE__ */ d(Pt, { children: [
286
+ /* @__PURE__ */ e(D, {}),
287
+ /* @__PURE__ */ e(u, {})
270
288
  ] }),
271
- /* @__PURE__ */ e(Nt, {})
289
+ /* @__PURE__ */ e(Wt, {})
272
290
  ] }, `${t.name}-${t.lastModified}-${o}`);
273
291
  }) }),
274
- /* @__PURE__ */ d(md, { children: [
275
- /* @__PURE__ */ e(Qt, {}),
276
- /* @__PURE__ */ e(sd, {}),
277
- /* @__PURE__ */ e(ld, { children: /* @__PURE__ */ e(cd, {}) })
292
+ /* @__PURE__ */ d(rd, { children: [
293
+ /* @__PURE__ */ e(Vt, {}),
294
+ /* @__PURE__ */ e(nd, {}),
295
+ /* @__PURE__ */ e(id, { children: /* @__PURE__ */ e(sd, {}) })
278
296
  ] })
279
297
  ] });
280
298
  }
281
- function ma() {
282
- return /* @__PURE__ */ d(hd, { children: [
283
- /* @__PURE__ */ d(bd, { children: [
284
- /* @__PURE__ */ e(Cd, {}),
285
- /* @__PURE__ */ e(Fd, {})
299
+ function sa() {
300
+ return /* @__PURE__ */ d(md, { children: [
301
+ /* @__PURE__ */ d(ld, { children: [
302
+ /* @__PURE__ */ e(cd, {}),
303
+ /* @__PURE__ */ e(hd, {})
286
304
  ] }),
287
- /* @__PURE__ */ d(Ed, { children: [
288
- /* @__PURE__ */ e(pd, { children: ({ pinned: a, unpinned: t }) => /* @__PURE__ */ d(b, { children: [
289
- a.map((o) => /* @__PURE__ */ e(ud, { action: o }, o.name)),
290
- t.length > 0 && /* @__PURE__ */ e(gd, {}),
291
- /* @__PURE__ */ d(Id, { children: [
292
- /* @__PURE__ */ e(Md, {}),
293
- t.map((o) => /* @__PURE__ */ d(Sd, { action: o, children: [
294
- /* @__PURE__ */ e(Td, { action: o }),
305
+ /* @__PURE__ */ d(bd, { children: [
306
+ /* @__PURE__ */ e(Cd, { children: ({ pinned: a, unpinned: t }) => /* @__PURE__ */ d(h, { children: [
307
+ a.map((o) => /* @__PURE__ */ e(Fd, { action: o }, o.name)),
308
+ t.length > 0 && /* @__PURE__ */ e(Ed, {}),
309
+ /* @__PURE__ */ d(ud, { children: [
310
+ /* @__PURE__ */ e(pd, {}),
311
+ t.map((o) => /* @__PURE__ */ d(gd, { action: o, children: [
312
+ /* @__PURE__ */ e(Id, { action: o }),
295
313
  o.name
296
314
  ] }, o.name))
297
315
  ] })
298
316
  ] }) }),
299
- /* @__PURE__ */ d(E, { action: "copy", children: [
300
- /* @__PURE__ */ e(xd, { action: "copy" }),
301
- /* @__PURE__ */ e(Ad, { action: "copy" })
317
+ /* @__PURE__ */ d(C, { action: "copy", children: [
318
+ /* @__PURE__ */ e(Md, { action: "copy" }),
319
+ /* @__PURE__ */ e(Sd, { action: "copy" })
302
320
  ] }),
303
- /* @__PURE__ */ e(E, { action: "clear" }),
304
- /* @__PURE__ */ e(E, { action: "stop" })
321
+ /* @__PURE__ */ e(C, { action: "clear" }),
322
+ /* @__PURE__ */ e(C, { action: "stop" })
305
323
  ] })
306
324
  ] });
307
325
  }
308
- function sa() {
309
- const { sessions: a } = pt(), { conversationId: t } = D();
310
- return /* @__PURE__ */ d(et, { children: [
311
- /* @__PURE__ */ d(dt, { children: [
312
- /* @__PURE__ */ d(tt, { children: [
313
- /* @__PURE__ */ e(at, { iconKey: "backToChat" }),
326
+ function ma() {
327
+ const { sessions: a } = Ft(), { conversationId: t } = p();
328
+ return /* @__PURE__ */ d(Yd, { children: [
329
+ /* @__PURE__ */ d(qd, { children: [
330
+ /* @__PURE__ */ d(et, { children: [
331
+ /* @__PURE__ */ e(dt, { iconKey: "backToChat" }),
314
332
  "Back to chat"
315
333
  ] }),
316
- /* @__PURE__ */ e(ot, {}),
317
- /* @__PURE__ */ e(u, {})
334
+ /* @__PURE__ */ e(tt, {}),
335
+ /* @__PURE__ */ e(E, {})
318
336
  ] }),
319
- /* @__PURE__ */ d(rt, { children: [
337
+ /* @__PURE__ */ d(at, { children: [
320
338
  a.map((o) => /* @__PURE__ */ d(
321
- nt,
339
+ ot,
322
340
  {
323
341
  sessionId: o.id,
324
- "data-active": C(o.id === t),
342
+ "data-active": c(o.id === t),
325
343
  children: [
326
- /* @__PURE__ */ e(it, { children: o.title }),
327
- /* @__PURE__ */ e(mt, { children: st(o.updatedAt) })
344
+ /* @__PURE__ */ e(rt, { children: o.title }),
345
+ /* @__PURE__ */ e(nt, { children: it(o.updatedAt) })
328
346
  ]
329
347
  },
330
348
  o.id
331
349
  )),
332
- /* @__PURE__ */ e(lt, {}),
333
- /* @__PURE__ */ e(ct, {})
350
+ /* @__PURE__ */ e(st, {}),
351
+ /* @__PURE__ */ e(mt, {})
334
352
  ] }),
335
- /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(bt, {}) })
353
+ /* @__PURE__ */ e(lt, { children: /* @__PURE__ */ e(ct, {}) })
336
354
  ] });
337
355
  }
338
356
  function la() {
339
- return /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(de, { children: /* @__PURE__ */ d(te, { children: [
340
- /* @__PURE__ */ e(ae, {}),
341
- /* @__PURE__ */ e(oe, {}),
342
- /* @__PURE__ */ e(re, { children: /* @__PURE__ */ d(ne, { children: [
343
- /* @__PURE__ */ d(ie, { children: [
344
- /* @__PURE__ */ e(me, {}),
345
- /* @__PURE__ */ e(se, {})
357
+ return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(q, { children: /* @__PURE__ */ d(ee, { children: [
358
+ /* @__PURE__ */ e(de, {}),
359
+ /* @__PURE__ */ e(te, {}),
360
+ /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ d(oe, { children: [
361
+ /* @__PURE__ */ d(re, { children: [
362
+ /* @__PURE__ */ e(ne, {}),
363
+ /* @__PURE__ */ e(ie, {})
346
364
  ] }),
347
- /* @__PURE__ */ e(le, {})
365
+ /* @__PURE__ */ e(se, {})
348
366
  ] }) })
349
367
  ] }) }) }) });
350
368
  }
351
369
  function ca() {
352
- return /* @__PURE__ */ d(ce, { children: [
353
- /* @__PURE__ */ e(he, {}),
354
- /* @__PURE__ */ d(be, { children: [
355
- /* @__PURE__ */ d(Ce, { children: [
356
- /* @__PURE__ */ e(Fe, {}),
357
- /* @__PURE__ */ e(Ee, {})
370
+ return /* @__PURE__ */ d(me, { children: [
371
+ /* @__PURE__ */ e(le, {}),
372
+ /* @__PURE__ */ d(ce, { children: [
373
+ /* @__PURE__ */ d(he, { children: [
374
+ /* @__PURE__ */ e(be, {}),
375
+ /* @__PURE__ */ e(Ce, {})
358
376
  ] }),
359
- /* @__PURE__ */ e(pe, { children: (a) => /* @__PURE__ */ d(b, { children: [
360
- a.map((t, o) => /* @__PURE__ */ d(ue, { field: t, autoFocus: o === 0, children: [
361
- /* @__PURE__ */ e(ge, {}),
362
- t.inputType === "text" && /* @__PURE__ */ e(Ie, {}),
363
- t.inputType === "email" && /* @__PURE__ */ e(Me, {}),
364
- t.inputType === "file" && /* @__PURE__ */ e(Se, {}),
365
- t.inputType === "textarea" && /* @__PURE__ */ e(Te, {}),
366
- t.inputType === "checkbox" && /* @__PURE__ */ e(xe, { children: /* @__PURE__ */ e(Ae, {}) }),
367
- t.inputType === "select" && /* @__PURE__ */ d(He, { children: [
368
- /* @__PURE__ */ d(fe, { children: [
369
- /* @__PURE__ */ e(ye, {}),
370
- /* @__PURE__ */ e(ke, {})
377
+ /* @__PURE__ */ e(Fe, { children: (a) => /* @__PURE__ */ d(h, { children: [
378
+ a.map((t, o) => /* @__PURE__ */ d(Ee, { field: t, autoFocus: o === 0, children: [
379
+ /* @__PURE__ */ e(ue, {}),
380
+ t.inputType === "text" && /* @__PURE__ */ e(pe, {}),
381
+ t.inputType === "email" && /* @__PURE__ */ e(ge, {}),
382
+ t.inputType === "file" && /* @__PURE__ */ e(Ie, {}),
383
+ t.inputType === "textarea" && /* @__PURE__ */ e(Me, {}),
384
+ t.inputType === "checkbox" && /* @__PURE__ */ e(Se, { children: /* @__PURE__ */ e(Te, {}) }),
385
+ t.inputType === "select" && /* @__PURE__ */ d(xe, { children: [
386
+ /* @__PURE__ */ d(Ae, { children: [
387
+ /* @__PURE__ */ e(fe, {}),
388
+ /* @__PURE__ */ e(He, {})
371
389
  ] }),
372
- /* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(we, { children: t.items.map((r) => /* @__PURE__ */ d(Le, { value: r.value, children: [
373
- /* @__PURE__ */ e(Be, { children: r.label }),
374
- /* @__PURE__ */ e(De, {})
390
+ /* @__PURE__ */ e(ye, { children: /* @__PURE__ */ e(ke, { children: t.items.map((r) => /* @__PURE__ */ d(ve, { value: r.value, children: [
391
+ /* @__PURE__ */ e(we, { children: r.label }),
392
+ /* @__PURE__ */ e(Le, {})
375
393
  ] }, r.value)) }) })
376
394
  ] }),
377
- t.inputType === "combobox" && /* @__PURE__ */ d(Pe, { children: [
378
- /* @__PURE__ */ d(We, { children: [
379
- "multiple" in t && t.multiple && /* @__PURE__ */ e(Ve, {}),
380
- /* @__PURE__ */ e(Ne, {}),
381
- /* @__PURE__ */ e(Qe, {})
395
+ t.inputType === "combobox" && /* @__PURE__ */ d(Be, { children: [
396
+ /* @__PURE__ */ d(De, { children: [
397
+ "multiple" in t && t.multiple && /* @__PURE__ */ e(Pe, {}),
398
+ /* @__PURE__ */ e(We, {}),
399
+ /* @__PURE__ */ e(Ve, {})
382
400
  ] }),
383
- /* @__PURE__ */ e($e, { children: /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Oe, { children: (r) => r.length === 0 ? /* @__PURE__ */ e(je, {}) : r.map((n) => /* @__PURE__ */ d(
384
- Ge,
401
+ /* @__PURE__ */ e(Ne, { children: /* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ e($e, { children: /* @__PURE__ */ e(_e, { children: (r) => r.length === 0 ? /* @__PURE__ */ e(Re, {}) : r.map((n) => /* @__PURE__ */ d(
402
+ Oe,
385
403
  {
386
404
  item: n,
387
405
  children: [
388
- /* @__PURE__ */ e(Ue, { children: n.label }),
389
- /* @__PURE__ */ e(Ke, {})
406
+ /* @__PURE__ */ e(je, { children: n.label }),
407
+ /* @__PURE__ */ e(Ge, {})
390
408
  ]
391
409
  },
392
410
  n.value
393
411
  )) }) }) }) })
394
412
  ] }),
395
- /* @__PURE__ */ e(Ze, {}),
396
- /* @__PURE__ */ e(ze, {})
413
+ /* @__PURE__ */ e(Ue, {}),
414
+ /* @__PURE__ */ e(Ke, {})
397
415
  ] }, t.name)),
398
- /* @__PURE__ */ e(Je, {})
416
+ /* @__PURE__ */ e(Ze, {})
399
417
  ] }) }),
400
- /* @__PURE__ */ d(Xe, { children: [
401
- /* @__PURE__ */ e(Ye, {}),
402
- /* @__PURE__ */ e(qe, {})
418
+ /* @__PURE__ */ d(ze, { children: [
419
+ /* @__PURE__ */ e(Je, {}),
420
+ /* @__PURE__ */ e(Xe, {})
403
421
  ] })
404
422
  ] }),
405
- /* @__PURE__ */ d(ed, { children: [
406
- /* @__PURE__ */ e(dd, {}),
407
- /* @__PURE__ */ e(td, {}),
408
- /* @__PURE__ */ e(ad, {})
423
+ /* @__PURE__ */ d(Ye, { children: [
424
+ /* @__PURE__ */ e(qe, {}),
425
+ /* @__PURE__ */ e(ed, {}),
426
+ /* @__PURE__ */ e(dd, {})
409
427
  ] })
410
428
  ] });
411
429
  }
412
430
  export {
413
431
  Wa as InkeepEmbeddedChat,
414
- Jt as InkeepEmbeddedChatImpl,
415
- Xt as InkeepEmbeddedChatImplContent,
416
- zt as InkeepEmbeddedChatProvider
432
+ Zt as InkeepEmbeddedChatImpl,
433
+ zt as InkeepEmbeddedChatImplContent,
434
+ Kt as InkeepEmbeddedChatProvider
417
435
  };