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

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 (58) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +165 -174
  3. package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
  4. package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +2 -6
  5. package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +232 -227
  6. package/dist/primitives/components/embedded-chat.cjs +5 -5
  7. package/dist/primitives/components/embedded-chat.d.ts +2 -112
  8. package/dist/primitives/components/embedded-chat.js +1082 -1511
  9. package/dist/primitives/hooks/use-initial-conversation.cjs +1 -0
  10. package/dist/primitives/hooks/use-initial-conversation.d.ts +16 -0
  11. package/dist/primitives/hooks/use-initial-conversation.js +31 -0
  12. package/dist/primitives/index.cjs +1 -1
  13. package/dist/primitives/index.js +146 -155
  14. package/dist/primitives/providers/base-events-provider.cjs +1 -1
  15. package/dist/primitives/providers/base-events-provider.js +1 -1
  16. package/dist/primitives/providers/feedback-provider.cjs +1 -1
  17. package/dist/primitives/providers/feedback-provider.js +37 -38
  18. package/dist/primitives/providers/index.cjs +1 -1
  19. package/dist/primitives/providers/index.d.ts +0 -3
  20. package/dist/primitives/providers/index.js +54 -63
  21. package/dist/primitives/utils/component-ids.cjs +1 -1
  22. package/dist/primitives/utils/component-ids.d.ts +0 -98
  23. package/dist/primitives/utils/component-ids.js +7 -56
  24. package/dist/primitives/utils/default-settings.cjs +1 -1
  25. package/dist/primitives/utils/default-settings.d.ts +0 -2
  26. package/dist/primitives/utils/default-settings.js +6 -8
  27. package/dist/react/embedded-chat.cjs +1 -1
  28. package/dist/react/embedded-chat.js +261 -310
  29. package/dist/react/index.cjs +1 -1
  30. package/dist/react/index.js +165 -174
  31. package/dist/styled/components/embedded-chat.cjs +1 -1
  32. package/dist/styled/components/embedded-chat.d.ts +2 -50
  33. package/dist/styled/components/embedded-chat.js +568 -1041
  34. package/dist/styled/components/ui/recipes/citation.d.ts +1 -1
  35. package/dist/styled/components/ui/recipes/index.cjs +1 -1
  36. package/dist/styled/components/ui/recipes/index.d.ts +0 -1
  37. package/dist/styled/components/ui/recipes/index.js +31 -33
  38. package/dist/styled/index.cjs +1 -1
  39. package/dist/styled/index.js +150 -159
  40. package/dist/styled/inkeep.css.cjs +0 -66
  41. package/dist/styled/inkeep.css.js +0 -66
  42. package/dist/types/config/ai.d.ts +8 -10
  43. package/dist/types/index.d.ts +0 -1
  44. package/package.json +1 -1
  45. package/dist/primitives/providers/attachment-item-provider.cjs +0 -1
  46. package/dist/primitives/providers/attachment-item-provider.d.ts +0 -9
  47. package/dist/primitives/providers/attachment-item-provider.js +0 -13
  48. package/dist/primitives/providers/attachments-bar-provider.cjs +0 -1
  49. package/dist/primitives/providers/attachments-bar-provider.d.ts +0 -30
  50. package/dist/primitives/providers/attachments-bar-provider.js +0 -57
  51. package/dist/primitives/providers/message-attachments-provider.cjs +0 -1
  52. package/dist/primitives/providers/message-attachments-provider.d.ts +0 -13
  53. package/dist/primitives/providers/message-attachments-provider.js +0 -27
  54. package/dist/primitives/utils/get-message-metadata.d.ts +0 -8
  55. package/dist/styled/components/ui/recipes/attachment.cjs +0 -1
  56. package/dist/styled/components/ui/recipes/attachment.d.ts +0 -4
  57. package/dist/styled/components/ui/recipes/attachment.js +0 -28
  58. package/dist/types/config/settings/workflow.d.ts +0 -86
@@ -1,145 +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 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
- import { useChat as _ } from "../primitives/components/embedded-chat/chat-provider.js";
14
- import { useModal as ma } from "../primitives/components/modal/modal-provider.js";
15
- import { dataAttr as u } from "../primitives/utils/misc.js";
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";
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
+ import { EmbeddedChatMessagePart as P } from "../styled/components/message.js";
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
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,
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,
28
28
  {
29
29
  wrapperStyles: {
30
30
  height: "inherit",
31
31
  width: "inherit"
32
32
  },
33
33
  children: /* @__PURE__ */ e(
34
- na,
34
+ pt,
35
35
  {
36
36
  config: {
37
- baseSettings: d,
38
- aiChatSettings: r
37
+ baseSettings: t,
38
+ aiChatSettings: o
39
39
  },
40
- componentType: oa.EmbeddedChat,
41
- children: /* @__PURE__ */ e(Na, { ...a })
40
+ componentType: ut.EmbeddedChat,
41
+ children: /* @__PURE__ */ e(zt, { ...a })
42
42
  }
43
43
  )
44
44
  }
45
45
  ) });
46
46
  }
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 });
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 });
50
50
  }
51
- function Na(a) {
52
- return /* @__PURE__ */ e(Wa, { ...a, children: /* @__PURE__ */ e(_a, { ...a }) });
51
+ function zt(a) {
52
+ return /* @__PURE__ */ e(Zt, { ...a, children: /* @__PURE__ */ e(Jt, { ...a }) });
53
53
  }
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
+ 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,
58
58
  {
59
- variant: r ?? (d ? "no-shadow" : "container-with-shadow"),
60
- "data-composite": u(!!a.onToggleView || n?.isOpen),
59
+ variant: o ?? (t ? "no-shadow" : "container-with-shadow"),
60
+ "data-composite": p(!!a.onToggleView || n?.isOpen),
61
61
  children: [
62
- /* @__PURE__ */ e(Xa, {}),
63
- /* @__PURE__ */ t(j, { children: [
64
- o && /* @__PURE__ */ e(o, { ...a }),
65
- /* @__PURE__ */ e(Qa, {}),
66
- /* @__PURE__ */ e(Za, {})
62
+ /* @__PURE__ */ e(ma, {}),
63
+ /* @__PURE__ */ d(j, { children: [
64
+ r && /* @__PURE__ */ e(r, { ...a }),
65
+ /* @__PURE__ */ e(Yt, {}),
66
+ /* @__PURE__ */ e(ra, {})
67
67
  ] }),
68
- /* @__PURE__ */ e(Ya, {}),
69
- /* @__PURE__ */ e(Ra, {}),
70
- /* @__PURE__ */ e(qa, {})
68
+ /* @__PURE__ */ e(sa, {}),
69
+ /* @__PURE__ */ e(da, {}),
70
+ /* @__PURE__ */ e(ca, {})
71
71
  ]
72
72
  }
73
73
  ) }) });
74
74
  }
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: [
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
78
  /* @__PURE__ */ e(K, { children: m && /* @__PURE__ */ e(Z, {}) }),
79
- d && /* @__PURE__ */ e(
80
- la,
79
+ t && /* @__PURE__ */ e(
80
+ xt,
81
81
  {
82
- onToggleView: d,
83
- askAILabel: r,
84
- searchLabel: o,
82
+ onToggleView: t,
83
+ askAILabel: o,
84
+ searchLabel: r,
85
85
  view: "chat"
86
86
  }
87
87
  ),
88
- /* @__PURE__ */ e(B, {})
89
- ] }) : /* @__PURE__ */ e(B, {}) });
88
+ /* @__PURE__ */ e(S, {})
89
+ ] }) : /* @__PURE__ */ e(S, {}) });
90
90
  };
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, {}) }),
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
95
  /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(ee, {}) }),
96
- /* @__PURE__ */ e(te, {})
96
+ /* @__PURE__ */ e(de, {})
97
97
  ] }) });
98
98
  }
99
- function $a() {
99
+ function qt() {
100
100
  const {
101
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];
106
- if (!h)
107
- return console.warn(`Component "${s}" not found in components config`), null;
102
+ } = W();
103
+ return /* @__PURE__ */ e(od, { children: ({ messages: t, isLoading: o, isStreaming: r }) => {
104
+ const n = t.at(-1), m = (i, c) => {
105
+ const l = a?.[i];
106
+ if (!l)
107
+ return console.warn(`Component "${i}" not found in components config`), null;
108
108
  try {
109
- if (typeof h == "function" && h.length <= 1)
110
- return S.createElement(h, c);
111
- const l = h(c, document.createElement("div"), null);
112
- return S.isValidElement(l) || typeof l == "string" ? l : null;
113
- } catch (l) {
114
- 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;
115
115
  }
116
- }, i = (s) => /* @__PURE__ */ e(Fd, { text: s });
117
- return /* @__PURE__ */ t(p, { children: [
118
- /* @__PURE__ */ e(Oa, {}),
119
- d.map((s) => {
120
- const c = n?.id === s.id;
121
- return /* @__PURE__ */ t(x, { message: s, children: [
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
122
  /* @__PURE__ */ e(H, {}),
123
- /* @__PURE__ */ t(f, { children: [
124
- /* @__PURE__ */ e(k, { children: a?.IkpMessage ? /* @__PURE__ */ e(
125
- ot,
123
+ /* @__PURE__ */ d(y, { children: [
124
+ /* @__PURE__ */ e(f, { children: a?.IkpMessage ? /* @__PURE__ */ e(
125
+ rd,
126
126
  {
127
127
  name: "IkpMessage",
128
- props: { message: s, renderComponent: m, renderMarkdown: i },
128
+ props: { message: i, renderComponent: m, renderMarkdown: s },
129
129
  componentDef: a.IkpMessage
130
130
  }
131
- ) : /* @__PURE__ */ t(p, { children: [
132
- /* @__PURE__ */ e(W, { isLast: c }),
133
- (!o || !c) && /* @__PURE__ */ e(Ka, {})
131
+ ) : /* @__PURE__ */ d(u, { children: [
132
+ /* @__PURE__ */ e(P, { isLast: c }),
133
+ (!r || !c) && /* @__PURE__ */ e(oa, {})
134
134
  ] }) }),
135
- /* @__PURE__ */ e(ja, {}),
136
- /* @__PURE__ */ e(Ga, {}),
137
- /* @__PURE__ */ e(Ua, {})
135
+ /* @__PURE__ */ e(ta, {}),
136
+ /* @__PURE__ */ e(aa, {})
138
137
  ] })
139
- ] }, s.id);
138
+ ] }, i.id);
140
139
  }),
141
- r && n?.parts.length && /* @__PURE__ */ t(
142
- x,
140
+ o && n?.parts.length && /* @__PURE__ */ d(
141
+ A,
143
142
  {
144
143
  message: {
145
144
  id: "___loader___",
@@ -148,298 +147,250 @@ function $a() {
148
147
  },
149
148
  children: [
150
149
  /* @__PURE__ */ e(H, {}),
151
- /* @__PURE__ */ e(nt, {})
150
+ /* @__PURE__ */ e(nd, {})
152
151
  ]
153
152
  }
154
153
  )
155
154
  ] });
156
155
  } });
157
156
  }
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
+ 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, {}) }) }),
161
+ /* @__PURE__ */ e(D, {})
163
162
  ] }),
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, {})
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, {})
172
171
  ] })
173
172
  ] }),
174
- /* @__PURE__ */ t(hd, { children: [
175
- /* @__PURE__ */ e(ld, {}),
176
- /* @__PURE__ */ e(bd, { children: (a) => a.map((d) => /* @__PURE__ */ e(
177
- Cd,
173
+ /* @__PURE__ */ d(Dd, { children: [
174
+ /* @__PURE__ */ e(Pd, {}),
175
+ /* @__PURE__ */ e(Wd, { children: (a) => a.map((t) => /* @__PURE__ */ e(
176
+ Nd,
178
177
  {
179
- children: /* @__PURE__ */ e(Ed, { question: d })
178
+ children: /* @__PURE__ */ e(_d, { question: t })
180
179
  },
181
- typeof d == "object" ? d.label : d
180
+ typeof t == "object" ? t.label : t
182
181
  )) })
183
182
  ] })
184
183
  ] })
185
184
  ] });
186
185
  }
187
186
  function H() {
188
- return /* @__PURE__ */ t(v, { children: [
189
- /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(D, {}) }) }),
190
- /* @__PURE__ */ e(P, {})
187
+ return /* @__PURE__ */ d(w, { children: [
188
+ /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(B, {}) }) }),
189
+ /* @__PURE__ */ e(D, {})
191
190
  ] });
192
191
  }
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, {}) })
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, {}) })
198
197
  ] }) }) }) });
199
198
  }
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($, {}),
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($, {}),
205
204
  /* @__PURE__ */ e(T, {})
206
- ] }, o || r);
205
+ ] }, r || o);
207
206
  }) });
208
207
  }
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, {})
219
- ] }) }) }) })
220
- ] });
221
- }
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}`)) }),
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}`)) }),
225
211
  /* @__PURE__ */ e(M, { action: "copy" }),
226
212
  /* @__PURE__ */ e(M, { action: "upvote" }),
227
213
  /* @__PURE__ */ e(M, { action: "downvote" })
228
214
  ] });
229
215
  }
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: [
235
- o,
236
- /* @__PURE__ */ e(Md, {})
237
- ] }, o)) }),
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,
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,
243
229
  {
244
230
  part: n
245
231
  },
246
232
  `part-${m}`
247
233
  )) }),
248
- /* @__PURE__ */ e(yd, {})
249
- ] }, r)) })
234
+ /* @__PURE__ */ e(Xd, {})
235
+ ] }, o)) })
250
236
  ] });
251
237
  }
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, {})
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, {})
258
244
  ] }),
259
- /* @__PURE__ */ e(ua, {})
245
+ /* @__PURE__ */ e(wt, {})
260
246
  ] }) }),
261
- /* @__PURE__ */ e(za, {}),
262
- /* @__PURE__ */ e(Ja, {})
247
+ /* @__PURE__ */ e(na, {}),
248
+ /* @__PURE__ */ e(ia, {})
263
249
  ] });
264
250
  }
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: [
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: [
273
259
  /* @__PURE__ */ e(Q, {}),
274
260
  /* @__PURE__ */ e(T, {})
275
- ] }) : /* @__PURE__ */ t(Ta, { children: [
261
+ ] }) : /* @__PURE__ */ d(Wt, { children: [
276
262
  /* @__PURE__ */ e($, {}),
277
263
  /* @__PURE__ */ e(T, {})
278
264
  ] }),
279
- /* @__PURE__ */ e(Sa, {})
280
- ] }, `${d.name}-${d.lastModified}-${r}`);
265
+ /* @__PURE__ */ e(Nt, {})
266
+ ] }, `${t.name}-${t.lastModified}-${o}`);
281
267
  }) }),
282
- /* @__PURE__ */ t(mt, { children: [
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, {})
297
- ] }),
298
- /* @__PURE__ */ e(Mt, { children: (a) => a.map((d) => /* @__PURE__ */ e(Bt, { input: d, children: d.displayName }, d.id)) })
299
- ] }),
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, {})
305
- ] }),
306
- /* @__PURE__ */ e(vt, {}),
307
- /* @__PURE__ */ e(wt, { children: /* @__PURE__ */ t(Lt, { children: [
308
- /* @__PURE__ */ t(Dt, { children: [
309
- /* @__PURE__ */ e(Pt, {}),
310
- /* @__PURE__ */ e(Wt, {}),
311
- /* @__PURE__ */ e(Nt, {})
312
- ] }),
313
- /* @__PURE__ */ t(_t, { children: [
314
- /* @__PURE__ */ e(Vt, {}),
315
- /* @__PURE__ */ e(Qt, {}),
316
- /* @__PURE__ */ e($t, {})
317
- ] }),
318
- /* @__PURE__ */ e(Ot, {})
319
- ] }) })
320
- ] }) }) }) })
268
+ /* @__PURE__ */ d(md, { children: [
269
+ /* @__PURE__ */ e(_t, {}),
270
+ /* @__PURE__ */ e(sd, {}),
271
+ /* @__PURE__ */ e(cd, { children: /* @__PURE__ */ e(ld, {}) })
321
272
  ] })
322
273
  ] });
323
274
  }
324
- function Ja() {
325
- return /* @__PURE__ */ t(Rt, { children: [
326
- /* @__PURE__ */ t(jt, { children: [
327
- /* @__PURE__ */ e(Gt, {}),
328
- /* @__PURE__ */ e(Ut, {}),
329
- /* @__PURE__ */ e(Kt, {})
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, {})
330
281
  ] }),
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 }),
339
- r.name
340
- ] }, 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))
341
292
  ] })
342
293
  ] }) }),
343
- /* @__PURE__ */ t(I, { action: "copy", children: [
344
- /* @__PURE__ */ e(dd, { action: "copy" }),
345
- /* @__PURE__ */ e(ad, { action: "copy" })
294
+ /* @__PURE__ */ d(I, { action: "copy", children: [
295
+ /* @__PURE__ */ e(Ad, { action: "copy" }),
296
+ /* @__PURE__ */ e(Hd, { action: "copy" })
346
297
  ] }),
347
298
  /* @__PURE__ */ e(I, { action: "clear" }),
348
299
  /* @__PURE__ */ e(I, { action: "stop" })
349
300
  ] })
350
301
  ] });
351
302
  }
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" }),
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" }),
358
309
  "Back to chat"
359
310
  ] }),
360
- /* @__PURE__ */ e(Kd, {}),
361
- /* @__PURE__ */ e(B, {})
311
+ /* @__PURE__ */ e(rt, {}),
312
+ /* @__PURE__ */ e(S, {})
362
313
  ] }),
363
- /* @__PURE__ */ t(Zd, { children: [
364
- a.map((r) => /* @__PURE__ */ t(
365
- zd,
314
+ /* @__PURE__ */ d(nt, { children: [
315
+ a.map((o) => /* @__PURE__ */ d(
316
+ it,
366
317
  {
367
- sessionId: r.id,
368
- "data-active": u(r.id === d),
318
+ sessionId: o.id,
319
+ "data-active": p(o.id === t),
369
320
  children: [
370
- /* @__PURE__ */ e(Jd, { children: r.title }),
371
- /* @__PURE__ */ e(Xd, { children: Yd(r.updatedAt) })
321
+ /* @__PURE__ */ e(mt, { children: o.title }),
322
+ /* @__PURE__ */ e(st, { children: ct(o.updatedAt) })
372
323
  ]
373
324
  },
374
- r.id
325
+ o.id
375
326
  )),
376
- /* @__PURE__ */ e(qd, {}),
377
- /* @__PURE__ */ e(ea, {})
327
+ /* @__PURE__ */ e(lt, {}),
328
+ /* @__PURE__ */ e(ht, {})
378
329
  ] }),
379
- /* @__PURE__ */ e(ta, { children: /* @__PURE__ */ e(da, {}) })
330
+ /* @__PURE__ */ e(bt, { children: /* @__PURE__ */ e(Ct, {}) })
380
331
  ] });
381
332
  }
382
- function Ya() {
383
- return /* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(re, { children: /* @__PURE__ */ t(oe, { children: [
333
+ function sa() {
334
+ return /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ d(re, { children: [
384
335
  /* @__PURE__ */ e(ne, {}),
385
- /* @__PURE__ */ e(se, {}),
386
- /* @__PURE__ */ e(me, { children: /* @__PURE__ */ t(ie, { children: [
387
- /* @__PURE__ */ t(b, { name: "unrelated_response", children: [
388
- /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(E, {}) }),
389
- /* @__PURE__ */ e(F, {}),
390
- /* @__PURE__ */ e(A, {})
336
+ /* @__PURE__ */ e(ie, {}),
337
+ /* @__PURE__ */ e(me, { children: /* @__PURE__ */ d(se, { children: [
338
+ /* @__PURE__ */ d(b, { name: "unrelated_response", children: [
339
+ /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(F, {}) }),
340
+ /* @__PURE__ */ e(E, {}),
341
+ /* @__PURE__ */ e(g, {})
391
342
  ] }),
392
- /* @__PURE__ */ t(b, { name: "inaccurate_statement", children: [
393
- /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(E, {}) }),
394
- /* @__PURE__ */ e(F, {}),
395
- /* @__PURE__ */ e(A, {})
343
+ /* @__PURE__ */ d(b, { name: "inaccurate_statement", children: [
344
+ /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(F, {}) }),
345
+ /* @__PURE__ */ e(E, {}),
346
+ /* @__PURE__ */ e(g, {})
396
347
  ] }),
397
- /* @__PURE__ */ t(b, { name: "inaccurate_code_snippet", children: [
398
- /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(E, {}) }),
399
- /* @__PURE__ */ e(F, {}),
400
- /* @__PURE__ */ e(A, {})
348
+ /* @__PURE__ */ d(b, { name: "inaccurate_code_snippet", children: [
349
+ /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(F, {}) }),
350
+ /* @__PURE__ */ e(E, {}),
351
+ /* @__PURE__ */ e(g, {})
401
352
  ] }),
402
- /* @__PURE__ */ t(b, { name: "irrelevant_citations", children: [
403
- /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(E, {}) }),
404
- /* @__PURE__ */ e(F, {})
353
+ /* @__PURE__ */ d(b, { name: "irrelevant_citations", children: [
354
+ /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(F, {}) }),
355
+ /* @__PURE__ */ e(E, {})
405
356
  ] }),
406
357
  /* @__PURE__ */ e(ce, {})
407
358
  ] }) })
408
359
  ] }) }) }) });
409
360
  }
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, {})
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, {})
417
368
  ] }),
418
- /* @__PURE__ */ e(pe, { children: (a) => /* @__PURE__ */ t(p, { children: [
419
- a.map((d, r) => /* @__PURE__ */ t(ue, { field: d, autoFocus: r === 0, children: [
369
+ /* @__PURE__ */ e(ue, { children: (a) => /* @__PURE__ */ d(u, { children: [
370
+ a.map((t, o) => /* @__PURE__ */ d(pe, { field: t, autoFocus: o === 0, children: [
420
371
  /* @__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: [
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: [
428
379
  /* @__PURE__ */ e(ye, {}),
429
380
  /* @__PURE__ */ e(fe, {})
430
381
  ] }),
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 }),
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 }),
433
384
  /* @__PURE__ */ e(De, {})
434
- ] }, o.value)) }) })
385
+ ] }, r.value)) }) })
435
386
  ] }),
436
- d.inputType === "combobox" && /* @__PURE__ */ t(Pe, { children: [
437
- /* @__PURE__ */ t(We, { children: [
438
- "multiple" in d && d.multiple && /* @__PURE__ */ e(Ne, {}),
387
+ t.inputType === "combobox" && /* @__PURE__ */ d(Pe, { children: [
388
+ /* @__PURE__ */ d(We, { children: [
389
+ "multiple" in t && t.multiple && /* @__PURE__ */ e(Ne, {}),
439
390
  /* @__PURE__ */ e(_e, {}),
440
391
  /* @__PURE__ */ e(Ve, {})
441
392
  ] }),
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(
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(
443
394
  Ge,
444
395
  {
445
396
  item: n,
@@ -453,24 +404,24 @@ function qa() {
453
404
  ] }),
454
405
  /* @__PURE__ */ e(Ze, {}),
455
406
  /* @__PURE__ */ e(ze, {})
456
- ] }, d.name)),
407
+ ] }, t.name)),
457
408
  /* @__PURE__ */ e(Je, {})
458
409
  ] }) }),
459
- /* @__PURE__ */ t(Xe, { children: [
410
+ /* @__PURE__ */ d(Xe, { children: [
460
411
  /* @__PURE__ */ e(Ye, {}),
461
412
  /* @__PURE__ */ e(qe, {})
462
413
  ] })
463
414
  ] }),
464
- /* @__PURE__ */ t(et, { children: [
465
- /* @__PURE__ */ e(tt, {}),
466
- /* @__PURE__ */ e(dt, {}),
467
- /* @__PURE__ */ e(at, {})
415
+ /* @__PURE__ */ d(ed, { children: [
416
+ /* @__PURE__ */ e(dd, {}),
417
+ /* @__PURE__ */ e(td, {}),
418
+ /* @__PURE__ */ e(ad, {})
468
419
  ] })
469
420
  ] });
470
421
  }
471
422
  export {
472
- Mr as InkeepEmbeddedChat,
473
- Na as InkeepEmbeddedChatImpl,
474
- _a as InkeepEmbeddedChatImplContent,
475
- Wa as InkeepEmbeddedChatProvider
423
+ Ba as InkeepEmbeddedChat,
424
+ zt as InkeepEmbeddedChatImpl,
425
+ Jt as InkeepEmbeddedChatImplContent,
426
+ Zt as InkeepEmbeddedChatProvider
476
427
  };