@inkeep/agents-ui 0.15.25 → 0.15.27

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