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