@inkeep/agents-ui 0.15.16 → 0.15.17

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