@inkeep/agents-ui 0.15.28 → 0.15.30

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