@inkeep/agents-ui 0.15.29 → 0.15.30

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