@inkeep/agents-ui 0.15.12 → 0.15.14

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