@inkeep/agents-ui 0.0.0-dev-20260401193828 → 0.0.0-dev-20260402200940

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