@inkeep/agents-ui 0.15.26 → 0.15.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +166 -174
  3. package/dist/primitives/atoms/dialog.cjs +1 -1
  4. package/dist/primitives/atoms/dialog.js +110 -106
  5. package/dist/primitives/atoms/file-upload.cjs +1 -0
  6. package/dist/primitives/atoms/file-upload.d.ts +35 -0
  7. package/dist/primitives/atoms/file-upload.js +45 -0
  8. package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -1
  9. package/dist/primitives/atoms/icons/built-in-icons.d.ts +8 -1
  10. package/dist/primitives/atoms/icons/built-in-icons.js +86 -79
  11. package/dist/primitives/atoms/icons/collections/pi.cjs +1 -1
  12. package/dist/primitives/atoms/icons/collections/pi.d.ts +6 -0
  13. package/dist/primitives/atoms/icons/collections/pi.js +103 -13
  14. package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -1
  15. package/dist/primitives/atoms/icons/inkeep-default-icons.js +9 -1
  16. package/dist/primitives/components/embedded-chat/file-upload-input.cjs +1 -0
  17. package/dist/primitives/components/embedded-chat/file-upload-input.d.ts +68 -0
  18. package/dist/primitives/components/embedded-chat/file-upload-input.js +328 -0
  19. package/dist/primitives/components/embedded-chat/image-preview-modal.cjs +1 -0
  20. package/dist/primitives/components/embedded-chat/image-preview-modal.d.ts +15 -0
  21. package/dist/primitives/components/embedded-chat/image-preview-modal.js +71 -0
  22. package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
  23. package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +7 -5
  24. package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +277 -237
  25. package/dist/primitives/components/embedded-chat.cjs +4 -4
  26. package/dist/primitives/components/embedded-chat.d.ts +7 -116
  27. package/dist/primitives/components/embedded-chat.js +1082 -1484
  28. package/dist/primitives/components/embedded-search.d.ts +1 -1
  29. package/dist/primitives/hooks/index.cjs +1 -1
  30. package/dist/primitives/hooks/index.js +15 -14
  31. package/dist/primitives/hooks/use-input-notification.cjs +1 -0
  32. package/dist/primitives/hooks/use-input-notification.d.ts +9 -0
  33. package/dist/primitives/hooks/use-input-notification.js +18 -0
  34. package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -1
  35. package/dist/primitives/hooks/use-scrolling-fades.d.ts +1 -0
  36. package/dist/primitives/hooks/use-scrolling-fades.js +21 -5
  37. package/dist/primitives/index.cjs +1 -1
  38. package/dist/primitives/index.js +146 -154
  39. package/dist/primitives/providers/base-events-provider.cjs +1 -1
  40. package/dist/primitives/providers/base-events-provider.js +1 -1
  41. package/dist/primitives/providers/feedback-provider.cjs +1 -1
  42. package/dist/primitives/providers/feedback-provider.js +37 -38
  43. package/dist/primitives/providers/image-preview-provider.cjs +1 -0
  44. package/dist/primitives/providers/image-preview-provider.d.ts +15 -0
  45. package/dist/primitives/providers/image-preview-provider.js +23 -0
  46. package/dist/primitives/providers/index.cjs +1 -1
  47. package/dist/primitives/providers/index.d.ts +0 -3
  48. package/dist/primitives/providers/index.js +54 -63
  49. package/dist/primitives/utils/component-ids.cjs +1 -1
  50. package/dist/primitives/utils/component-ids.d.ts +54 -98
  51. package/dist/primitives/utils/component-ids.js +44 -66
  52. package/dist/primitives/utils/default-settings.cjs +1 -1
  53. package/dist/primitives/utils/default-settings.d.ts +0 -2
  54. package/dist/primitives/utils/default-settings.js +6 -8
  55. package/dist/react/embedded-chat.cjs +1 -1
  56. package/dist/react/embedded-chat.js +283 -287
  57. package/dist/react/index.cjs +1 -1
  58. package/dist/react/index.js +166 -174
  59. package/dist/styled/components/chat-history.cjs +1 -1
  60. package/dist/styled/components/chat-history.d.ts +1 -1
  61. package/dist/styled/components/chat-history.js +31 -29
  62. package/dist/styled/components/embedded-chat/file-upload-input.cjs +1 -0
  63. package/dist/styled/components/embedded-chat/file-upload-input.d.ts +20 -0
  64. package/dist/styled/components/embedded-chat/file-upload-input.js +300 -0
  65. package/dist/styled/components/embedded-chat/image-preview-modal.cjs +1 -0
  66. package/dist/styled/components/embedded-chat/image-preview-modal.d.ts +11 -0
  67. package/dist/styled/components/embedded-chat/image-preview-modal.js +77 -0
  68. package/dist/styled/components/embedded-chat.cjs +1 -1
  69. package/dist/styled/components/embedded-chat.d.ts +4 -50
  70. package/dist/styled/components/embedded-chat.js +567 -1010
  71. package/dist/styled/components/message.cjs +1 -1
  72. package/dist/styled/components/message.js +89 -88
  73. package/dist/styled/components/ui/recipes/citation.d.ts +1 -1
  74. package/dist/styled/components/ui/recipes/index.cjs +1 -1
  75. package/dist/styled/components/ui/recipes/index.d.ts +0 -1
  76. package/dist/styled/components/ui/recipes/index.js +31 -33
  77. package/dist/styled/index.cjs +1 -1
  78. package/dist/styled/index.js +154 -162
  79. package/dist/styled/inkeep.css.cjs +241 -61
  80. package/dist/styled/inkeep.css.js +241 -61
  81. package/dist/types/config/ai.d.ts +1 -10
  82. package/dist/types/icons/built-in.d.ts +1 -1
  83. package/dist/types/icons/custom.d.ts +8 -0
  84. package/dist/types/index.d.ts +0 -1
  85. package/package.json +7 -6
  86. package/dist/primitives/providers/attachment-item-provider.cjs +0 -1
  87. package/dist/primitives/providers/attachment-item-provider.d.ts +0 -9
  88. package/dist/primitives/providers/attachment-item-provider.js +0 -13
  89. package/dist/primitives/providers/attachments-bar-provider.cjs +0 -1
  90. package/dist/primitives/providers/attachments-bar-provider.d.ts +0 -30
  91. package/dist/primitives/providers/attachments-bar-provider.js +0 -57
  92. package/dist/primitives/providers/message-attachments-provider.cjs +0 -1
  93. package/dist/primitives/providers/message-attachments-provider.d.ts +0 -13
  94. package/dist/primitives/providers/message-attachments-provider.js +0 -27
  95. package/dist/primitives/utils/get-message-metadata.d.ts +0 -8
  96. package/dist/styled/components/ui/recipes/attachment.cjs +0 -1
  97. package/dist/styled/components/ui/recipes/attachment.d.ts +0 -4
  98. package/dist/styled/components/ui/recipes/attachment.js +0 -28
  99. package/dist/types/config/settings/workflow.d.ts +0 -86
@@ -1,191 +1,190 @@
1
1
  "use client";
2
- import { jsx as n, jsxs as j, Fragment as te } from "react/jsx-runtime";
3
- import Z, { memo as S, forwardRef as U, useRef as O, useState as q, useMemo as be, useEffect as $, useLayoutEffect as fe } from "react";
4
- import * as Ie from "react-dom/client";
5
- import ie from "react-textarea-autosize";
6
- import * as ae from "@radix-ui/react-avatar";
7
- import * as z from "@radix-ui/react-checkbox";
8
- import * as R from "@radix-ui/react-popover";
9
- import * as W from "@radix-ui/react-tooltip";
10
- import * as K from "@radix-ui/react-scroll-area";
11
- import { ItemText as Me, Trigger as Ee, Icon as Se, Content as ke, Viewport as Be, Item as ye, ItemIndicator as Te, Root as xe, Value as we } from "../atoms/select.js";
12
- import { ComboboxListItems as He, ComboboxRoot as Le, ComboboxItemText as De, ComboboxControl as Oe, ComboboxInput as Re, ComboboxTrigger as We, ComboboxSelectedTags as Ne, ComboboxContent as Ve, ComboboxPositioner as $e, ComboboxList as Qe, ComboboxItem as Ue, ComboboxItemIndicator as Ke, ComboboxListEmpty as qe } from "../atoms/combobox.js";
13
- import { Overlay as ne, Content as oe, Close as re, Title as se, Root as ce } from "../atoms/dialog.js";
14
- import je from "../atoms/avatars/ai.js";
15
- import ze from "../atoms/avatars/user.js";
16
- import { CustomIcon as E } from "../atoms/icons/custom-icon.js";
17
- import { BuiltInIconRenderer as x } from "../atoms/icons/built-in-icon-renderer.js";
18
- import { LinkWithQueryParams as Ge } from "../atoms/link.js";
19
- import { Markdown as G } from "../atoms/markdown/index.js";
20
- import { AttachmentItemProvider as pe, useAttachmentItem as Y } from "../providers/attachment-item-provider.js";
21
- import { useAttachmentsBar as k, AttachmentsBarProvider as Ye } from "../providers/attachments-bar-provider.js";
22
- import { SourceItemProvider as Je, useSourceItem as N } from "../providers/source-item-provider.js";
2
+ import { jsx as a, jsxs as Z, Fragment as re } from "react/jsx-runtime";
3
+ import G, { memo as S, forwardRef as Q, useRef as w, useState as $, useMemo as ne, useEffect as W, useLayoutEffect as Ce } from "react";
4
+ import * as be from "react-dom/client";
5
+ import se from "react-textarea-autosize";
6
+ import * as J from "@radix-ui/react-avatar";
7
+ import * as K from "@radix-ui/react-checkbox";
8
+ import * as D from "@radix-ui/react-popover";
9
+ import * as q from "@radix-ui/react-tooltip";
10
+ import * as U from "@radix-ui/react-scroll-area";
11
+ import { ItemText as pe, Trigger as ge, Icon as ve, Content as Fe, Viewport as _e, Item as Pe, ItemIndicator as fe, Root as Ie, Value as Ee } from "../atoms/select.js";
12
+ import { ComboboxListItems as Se, ComboboxRoot as Me, ComboboxItemText as ke, ComboboxControl as ye, ComboboxInput as Ae, ComboboxTrigger as xe, ComboboxSelectedTags as Te, ComboboxContent as He, ComboboxPositioner as Le, ComboboxList as we, ComboboxItem as De, ComboboxItemIndicator as Be, ComboboxListEmpty as Ne } from "../atoms/combobox.js";
13
+ import { Overlay as Re, Content as Oe, Title as Ve, Close as We, Root as Qe } from "../atoms/dialog.js";
14
+ import Ue from "../atoms/avatars/ai.js";
15
+ import $e from "../atoms/avatars/user.js";
16
+ import { CustomIcon as k } from "../atoms/icons/custom-icon.js";
17
+ import { BuiltInIconRenderer as N } from "../atoms/icons/built-in-icon-renderer.js";
18
+ import { LinkWithQueryParams as Ke } from "../atoms/link.js";
19
+ import { Markdown as j } from "../atoms/markdown/index.js";
20
+ import { SourceItemProvider as qe, useSourceItem as R } from "../providers/source-item-provider.js";
23
21
  import { useInkeepConfig as p } from "../providers/config-provider.js";
24
- import { useMessageFeedback as de } from "../providers/feedback-provider.js";
25
- import { MessageAttachmentsProvider as Xe, useMessageAttachments as J } from "../providers/message-attachments-provider.js";
26
- import { useMessage as P, MessageProvider as Ze } from "../providers/message-provider.js";
27
- import { CheckboxIcon as ve } from "../atoms/icons/checkbox-icon.js";
28
- import { useCopyToClipboard as ee } from "../hooks/use-copy-to-clipboard.js";
29
- import { FeedbackItemProvider as et, useFeedbackItem as me } from "../providers/feedback-item-provider.js";
30
- import { maybeRender as B, dataAttr as v, getInitials as tt, getMessageContent as _e } from "../utils/misc.js";
22
+ import { useMessageFeedback as X } from "../providers/feedback-provider.js";
23
+ import { useMessage as E, MessageProvider as je } from "../providers/message-provider.js";
24
+ import { CheckboxIcon as de } from "../atoms/icons/checkbox-icon.js";
25
+ import { useCopyToClipboard as Y } from "../hooks/use-copy-to-clipboard.js";
26
+ import { FeedbackItemProvider as ze, useFeedbackItem as ee } from "../providers/feedback-item-provider.js";
27
+ import { maybeRender as O, dataAttr as g, getInitials as Ge, getMessageContent as ce } from "../utils/misc.js";
31
28
  import { ikp as i } from "./factory.js";
32
- import { useChat as g } from "./embedded-chat/chat-provider.js";
33
- import { ChatProvider as Ys } from "./embedded-chat/chat-provider.js";
34
- import it from "./tagline-logo-icon.js";
35
- import { useSettleAction as at } from "../hooks/use-settle-action.js";
36
- import { useContainerSize as nt } from "../hooks/use-container-size.js";
37
- import { useChatAction as le } from "./embedded-chat/use-chat-action.js";
38
- import { useHelpMenuState as ot, HelpMenuProvider as rt, useHelpMenu as st } from "../providers/help-menu-provider.js";
39
- import { useChatForm as A } from "../providers/chat-form-provider.js";
40
- import { useFormField as w, FormFieldProvider as ct } from "../providers/form-field-provider.js";
41
- import { Controller as dt } from "react-hook-form";
42
- import { highlightEmphasis as mt } from "../utils/highlight-emphasis.js";
43
- import { useModal as lt } from "./modal/modal-provider.js";
44
- import { useColorModeValue as ht } from "../../color-mode/index.js";
45
- import { useComposedRefs as he } from "../utils/compose-refs.js";
46
- import { composeEventHandlers as h } from "../utils/compose-event-handlers.js";
47
- import { useSimpleScroll as ut } from "../hooks/use-simple-scroll.js";
48
- import { useDebounce as Ct } from "../hooks/use-debounce.js";
49
- import { HoverPopoverProvider as bt, useHoverPopover as ge } from "../providers/hover-popover-provider.js";
50
- import { useWidgetAutoFocus as pt } from "./modal/widget-auto-focus.js";
51
- import { useBaseEvents as ue } from "../providers/base-events-provider.js";
52
- import { useShadow as vt } from "../atoms/shadow/context.js";
53
- import { getIcon as _t } from "../utils/get-source-icon.js";
54
- import { ChatHistoryProvider as gt } from "../providers/chat-history-provider.js";
55
- const Ft = "__intro__", Pt = 767, At = i("div", {
29
+ import { useChat as F } from "./embedded-chat/chat-provider.js";
30
+ import { ChatProvider as pn } from "./embedded-chat/chat-provider.js";
31
+ import Ye from "./tagline-logo-icon.js";
32
+ import { useSettleAction as Ze } from "../hooks/use-settle-action.js";
33
+ import { useContainerSize as Je } from "../hooks/use-container-size.js";
34
+ import { useChatAction as te } from "./embedded-chat/use-chat-action.js";
35
+ import { useHelpMenuState as Xe, HelpMenuProvider as et, useHelpMenu as tt } from "../providers/help-menu-provider.js";
36
+ import { useChatForm as f } from "../providers/chat-form-provider.js";
37
+ import { useFormField as A, FormFieldProvider as it } from "../providers/form-field-provider.js";
38
+ import { Controller as ot } from "react-hook-form";
39
+ import { highlightEmphasis as at } from "../utils/highlight-emphasis.js";
40
+ import { useModal as rt } from "./modal/modal-provider.js";
41
+ import { useColorModeValue as nt } from "../../color-mode/index.js";
42
+ import { useComposedRefs as ie } from "../utils/compose-refs.js";
43
+ import { composeEventHandlers as b } from "../utils/compose-event-handlers.js";
44
+ import { useSimpleScroll as st } from "../hooks/use-simple-scroll.js";
45
+ import { useDebounce as dt } from "../hooks/use-debounce.js";
46
+ import { HoverPopoverProvider as ct, useHoverPopover as me } from "../providers/hover-popover-provider.js";
47
+ import { useWidgetAutoFocus as mt } from "./modal/widget-auto-focus.js";
48
+ import { useBaseEvents as oe } from "../providers/base-events-provider.js";
49
+ import { useShadow as lt } from "../atoms/shadow/context.js";
50
+ import { getIcon as ut } from "../utils/get-source-icon.js";
51
+ import { ChatHistoryProvider as ht } from "../providers/chat-history-provider.js";
52
+ import { EmbeddedChatPrimitiveDropZone as vn, EmbeddedChatPrimitiveFileContent as Fn, EmbeddedChatPrimitiveFileInput as _n, EmbeddedChatPrimitiveFileItem as Pn, EmbeddedChatPrimitiveFileList as fn, EmbeddedChatPrimitiveFileName as In, EmbeddedChatPrimitiveFilePreviewTrigger as En, EmbeddedChatPrimitiveFileRemove as Sn, EmbeddedChatPrimitiveFileRemoveIcon as Mn, EmbeddedChatPrimitiveFileThumbnail as kn, EmbeddedChatPrimitiveFileTypeIcon as yn, EmbeddedChatPrimitiveFileUploadButton as An, EmbeddedChatPrimitiveFileUploadButtonIcon as xn, EmbeddedChatPrimitiveInputFieldset as Tn, EmbeddedChatPrimitiveInputNotification as Hn, EmbeddedChatPrimitiveInputNotificationClose as Ln, EmbeddedChatPrimitiveInputNotificationContent as wn, EmbeddedChatPrimitiveInputNotificationHeader as Dn, EmbeddedChatPrimitiveInputNotificationMessage as Bn, EmbeddedChatPrimitiveInputNotificationTitle as Nn, EmbeddedChatPrimitiveMessageFile as Rn, EmbeddedChatPrimitiveMessageFiles as On } from "./embedded-chat/file-upload-input.js";
53
+ import { EmbeddedChatPrimitiveImagePreviewModal as Wn, EmbeddedChatPrimitiveImagePreviewModalClose as Qn, EmbeddedChatPrimitiveImagePreviewModalContent as Un, EmbeddedChatPrimitiveImagePreviewModalFileName as $n, EmbeddedChatPrimitiveImagePreviewModalFooter as Kn, EmbeddedChatPrimitiveImagePreviewModalImage as qn, EmbeddedChatPrimitiveImagePreviewModalOverlay as jn } from "./embedded-chat/image-preview-modal.js";
54
+ const Ct = "__intro__", bt = 767, pt = i("div", {
56
55
  _id: "aiChatWrapper"
57
- }), Fe = U(
56
+ }), le = Q(
58
57
  ({
59
58
  chatHistoryLayout: t,
60
59
  isChatHistoryOpen: e,
61
- setChatHistoryOpen: a,
62
- isChatHistoryButtonVisible: o,
63
- children: r,
60
+ setChatHistoryOpen: o,
61
+ isChatHistoryButtonVisible: r,
62
+ children: n,
64
63
  ...s
65
- }, c) => {
66
- $(() => {
67
- t === "stack" ? a(!1) : t === "sidepane" && o && a(!0);
68
- }, [t, o, a]);
69
- const d = t === "stack" && e;
70
- return /* @__PURE__ */ n(
71
- At,
64
+ }, d) => {
65
+ W(() => {
66
+ t === "stack" ? o(!1) : t === "sidepane" && r && o(!0);
67
+ }, [t, r, o]);
68
+ const c = t === "stack" && e;
69
+ return /* @__PURE__ */ a(
70
+ pt,
72
71
  {
73
- ref: c,
72
+ ref: d,
74
73
  "data-chat-history-layout": t,
75
- "data-chat-history-open": v(e),
76
- "data-stack-history-open": v(d),
74
+ "data-chat-history-open": g(e),
75
+ "data-stack-history-open": g(c),
77
76
  ...s,
78
- children: r
77
+ children: n
79
78
  }
80
79
  );
81
80
  }
82
81
  );
83
- Fe.displayName = "EmbeddedChatWrapperInner";
84
- const Bn = U((t, e) => {
85
- const { children: a, ...o } = t, { isHidden: r, isMobile: s } = g(), { aiChatSettings: c } = p(), { isChatHistoryButtonVisible: d } = c, [m, l] = nt(), u = he(e, m), b = l?.width ? l.width > 580 : !0, C = lt(), _ = (l?.width ?? 0) > Pt ? "sidepane" : "stack";
86
- return /* @__PURE__ */ n(gt, { layout: _, children: ({ isOpen: f, setIsOpen: I }) => /* @__PURE__ */ n(
87
- Fe,
82
+ le.displayName = "EmbeddedChatWrapperInner";
83
+ const Qo = Q((t, e) => {
84
+ const { children: o, ...r } = t, { isHidden: n, isMobile: s } = F(), { aiChatSettings: d } = p(), { isChatHistoryButtonVisible: c } = d, [m, l] = Je(), u = ie(e, m), C = l?.width ? l.width > 580 : !0, h = rt(), v = (l?.width ?? 0) > bt ? "sidepane" : "stack";
85
+ return /* @__PURE__ */ a(ht, { layout: v, children: ({ isOpen: _, setIsOpen: M }) => /* @__PURE__ */ a(
86
+ le,
88
87
  {
89
88
  ref: u,
90
- chatHistoryLayout: _,
91
- isChatHistoryOpen: f,
92
- setChatHistoryOpen: I,
93
- isChatHistoryButtonVisible: !!d,
94
- "data-widget-md": v(b),
95
- "data-hidden": v(r),
96
- "data-in-modal": v(!!C),
97
- "data-mobile": v(s),
98
- ...o,
99
- children: a
89
+ chatHistoryLayout: v,
90
+ isChatHistoryOpen: _,
91
+ setChatHistoryOpen: M,
92
+ isChatHistoryButtonVisible: !!c,
93
+ "data-widget-md": g(C),
94
+ "data-hidden": g(n),
95
+ "data-in-modal": g(!!h),
96
+ "data-mobile": g(s),
97
+ ...r,
98
+ children: o
100
99
  }
101
100
  ) });
102
- }), ft = i("div", {
101
+ }), gt = i("div", {
103
102
  _id: "aiChatRoot"
104
- }), yn = (t) => {
105
- const { isHidden: e } = g(), { form: a } = A();
106
- return a ? null : /* @__PURE__ */ n(ft, { "data-hidden": v(e), ...t });
107
- }, Tn = i("div", {
103
+ }), Uo = (t) => {
104
+ const { isHidden: e } = F(), { form: o } = f();
105
+ return o ? null : /* @__PURE__ */ a(gt, { "data-hidden": g(e), ...t });
106
+ }, $o = i("div", {
108
107
  _id: "aiChatHeader"
109
- }), xn = i("div", {
108
+ }), Ko = i("div", {
110
109
  _id: "aiChatHeader__Toolbar"
111
- }), wn = i("div", {
110
+ }), qo = i("div", {
112
111
  _id: "aiChatHeader__ToolbarHeaderWrapper"
113
- }), It = i(E, {
112
+ }), vt = i(k, {
114
113
  _id: "aiChatHeader__ChatHistoryButtonIcon"
115
- }), Hn = S(
116
- (t) => /* @__PURE__ */ n(It, { ...t })
117
- ), Ln = i("button", {
114
+ }), jo = S(
115
+ (t) => /* @__PURE__ */ a(vt, { ...t })
116
+ ), zo = i("button", {
118
117
  _id: "aiChatHeader__ChatHistoryButton"
119
- }), Mt = i("div", {
118
+ }), Ft = i("div", {
120
119
  _id: "aiChatHeader__ToolbarHeader"
121
- }), Dn = S(
120
+ }), Go = S(
122
121
  (t) => {
123
- const { aiChatSettings: e } = p(), a = `Ask ${e.aiAssistantName || "AI"}`;
124
- return /* @__PURE__ */ n(Mt, { ...t, children: a });
122
+ const { aiChatSettings: e } = p(), o = `Ask ${e.aiAssistantName || "AI"}`;
123
+ return /* @__PURE__ */ a(Ft, { ...t, children: o });
125
124
  }
126
- ), On = i("div", {
125
+ ), Yo = i("div", {
127
126
  _id: "aiChatContent"
128
- }), Rn = i(K.Root, {
127
+ }), Zo = i(U.Root, {
129
128
  _id: "aiChatContentScrollArea"
130
- }), Et = i(K.Viewport, {
129
+ }), _t = i(U.Viewport, {
131
130
  _id: "aiChatContentScrollArea__Viewport"
132
- }), Wn = U(({ children: t, ...e }, a) => {
133
- const { messages: o, isStreaming: r } = g(), { containerRef: s, scrollToBottom: c, handleScroll: d } = ut({ isStreaming: r }), m = he(a, s);
134
- return $(() => {
135
- o.length > 0 && !r && c();
136
- }, [o.length, c, r]), /* @__PURE__ */ n(
137
- Et,
131
+ }), Jo = Q(({ children: t, ...e }, o) => {
132
+ const { messages: r, isStreaming: n } = F(), { containerRef: s, scrollToBottom: d, handleScroll: c } = st({ isStreaming: n }), m = ie(o, s);
133
+ return W(() => {
134
+ r.length > 0 && !n && d();
135
+ }, [r.length, d, n]), /* @__PURE__ */ a(
136
+ _t,
138
137
  {
139
138
  ref: m,
140
139
  tabIndex: -1,
141
- onScroll: d,
140
+ onScroll: c,
142
141
  style: { outline: "none" },
143
142
  children: (
144
143
  /* added this to fix an overflow issue see https://github.com/radix-ui/primitives/issues/926 */
145
- /* @__PURE__ */ n("div", { "data-part": "grid", tabIndex: -1, style: { display: "grid", outline: "none" }, children: t })
144
+ /* @__PURE__ */ a("div", { "data-part": "grid", tabIndex: -1, style: { display: "grid", outline: "none" }, children: t })
146
145
  ),
147
146
  ...e
148
147
  }
149
148
  );
150
- }), Nn = i(
151
- K.ScrollAreaScrollbar,
149
+ }), Xo = i(
150
+ U.ScrollAreaScrollbar,
152
151
  {
153
152
  _id: "aiChatContentScrollArea__Scrollbar"
154
153
  }
155
- ), Vn = i(
156
- K.ScrollAreaThumb,
154
+ ), ea = i(
155
+ U.ScrollAreaThumb,
157
156
  {
158
157
  _id: "aiChatContentScrollArea__Thumb"
159
158
  }
160
- ), $n = i(K.Corner, {
159
+ ), ta = i(U.Corner, {
161
160
  _id: "aiChatContentScrollArea__Corner"
162
- }), St = i("div", {
161
+ }), Pt = i("div", {
163
162
  _id: "aiChatMessages"
164
- }), Qn = (t) => {
165
- const e = g(), { children: a, ...o } = t;
166
- return /* @__PURE__ */ n(St, { children: B(a, e), ...o });
167
- }, kt = i("div", {
163
+ }), ia = (t) => {
164
+ const e = F(), { children: o, ...r } = t;
165
+ return /* @__PURE__ */ a(Pt, { children: O(o, e), ...r });
166
+ }, ft = i("div", {
168
167
  _id: "aiChatDisclaimer"
169
- }), Un = S(
168
+ }), oa = S(
170
169
  (t) => {
171
- const { aiChatSettings: e } = p(), [a, o] = q(!1), r = Ct(a, 100);
172
- return e.disclaimerSettings?.isEnabled ? /* @__PURE__ */ n(bt, { open: a, setOpen: o, children: /* @__PURE__ */ n(R.Root, { open: r, onOpenChange: o, children: /* @__PURE__ */ n(kt, { ...t }) }) }) : null;
170
+ const { aiChatSettings: e } = p(), [o, r] = $(!1), n = dt(o, 100);
171
+ return e.disclaimerSettings?.isEnabled ? /* @__PURE__ */ a(ct, { open: o, setOpen: r, children: /* @__PURE__ */ a(D.Root, { open: n, onOpenChange: r, children: /* @__PURE__ */ a(ft, { ...t }) }) }) : null;
173
172
  }
174
- ), Bt = i("span", {
173
+ ), It = i("span", {
175
174
  _id: "aiChatDisclaimerLabel"
176
- }), Kn = S(
175
+ }), aa = S(
177
176
  (t) => {
178
- const { aiChatSettings: e } = p(), a = e.disclaimerSettings;
179
- return /* @__PURE__ */ n(Bt, { children: a?.label, ...t });
177
+ const { aiChatSettings: e } = p(), o = e.disclaimerSettings;
178
+ return /* @__PURE__ */ a(It, { children: o?.label, ...t });
180
179
  }
181
- ), yt = i(R.Trigger, {
180
+ ), Et = i(D.Trigger, {
182
181
  _id: "aiChatDisclaimerTrigger",
183
- children: /* @__PURE__ */ n(E, { iconKey: "info" })
184
- }), qn = S(
182
+ children: /* @__PURE__ */ a(k, { iconKey: "info" })
183
+ }), ra = S(
185
184
  (t) => {
186
- const { setOpen: e } = ge();
187
- return /* @__PURE__ */ n(
188
- yt,
185
+ const { setOpen: e } = me();
186
+ return /* @__PURE__ */ a(
187
+ Et,
189
188
  {
190
189
  onMouseEnter: () => e(!0),
191
190
  onMouseLeave: () => e(!1),
@@ -193,12 +192,12 @@ const Bn = U((t, e) => {
193
192
  }
194
193
  );
195
194
  }
196
- ), Tt = i(R.Content, {
195
+ ), St = i(D.Content, {
197
196
  _id: "aiChatDisclaimerContent"
198
- }), jn = (t) => {
199
- const { setOpen: e } = ge();
200
- return /* @__PURE__ */ n(
201
- Tt,
197
+ }), na = (t) => {
198
+ const { setOpen: e } = me();
199
+ return /* @__PURE__ */ a(
200
+ St,
202
201
  {
203
202
  onMouseEnter: () => e(!0),
204
203
  onMouseLeave: () => e(!1),
@@ -209,184 +208,154 @@ const Bn = U((t, e) => {
209
208
  ...t
210
209
  }
211
210
  );
212
- }, xt = i(G, {
211
+ }, Mt = i(j, {
213
212
  _id: "aiChatDisclaimerText"
214
- }), zn = S(
213
+ }), sa = S(
215
214
  (t) => {
216
- const { aiChatSettings: e } = p(), a = e.aiAssistantName, r = e.disclaimerSettings?.tooltip || `Information provided by ${a || "this AI assistant"} is not guaranteed to be accurate or comprehensive.`;
217
- return /* @__PURE__ */ n(xt, { shouldOpenLinksInNewTab: !0, children: r, ...t });
215
+ const { aiChatSettings: e } = p(), o = e.aiAssistantName, n = e.disclaimerSettings?.tooltip || `Information provided by ${o || "this AI assistant"} is not guaranteed to be accurate or comprehensive.`;
216
+ return /* @__PURE__ */ a(Mt, { shouldOpenLinksInNewTab: !0, children: n, ...t });
218
217
  }
219
- ), Gn = i(R.Arrow, {
218
+ ), da = i(D.Arrow, {
220
219
  _id: "aiChatDisclaimerArrow"
221
- }), wt = i("div", {
220
+ }), kt = i("div", {
222
221
  _id: "aiChatExampleQuestions"
223
- }), Yn = (t) => {
224
- const { aiChatSettings: e } = p(), { messages: a } = g();
225
- return !e.exampleQuestions?.length || a.length ? null : /* @__PURE__ */ n(wt, { ...t });
226
- }, Ht = i("h3", {
222
+ }), ca = (t) => {
223
+ const { aiChatSettings: e } = p(), { messages: o } = F();
224
+ return !e.exampleQuestions?.length || o.length ? null : /* @__PURE__ */ a(kt, { ...t });
225
+ }, yt = i("h3", {
227
226
  _id: "aiChatExampleQuestionsLabel"
228
- }), Jn = S(
227
+ }), ma = S(
229
228
  (t) => {
230
229
  const { aiChatSettings: e } = p();
231
- return /* @__PURE__ */ n(Ht, { children: e.exampleQuestionsLabel, ...t });
230
+ return /* @__PURE__ */ a(yt, { children: e.exampleQuestionsLabel, ...t });
232
231
  }
233
- ), Lt = i("div", {
232
+ ), At = i("div", {
234
233
  _id: "aiChatExampleQuestionsList"
235
- }), Xn = S(
234
+ }), la = S(
236
235
  (t) => {
237
- const { aiChatSettings: e } = p(), a = e.exampleQuestions, { children: o, ...r } = t;
238
- return /* @__PURE__ */ n(Lt, { children: B(o, a), ...r });
236
+ const { aiChatSettings: e } = p(), o = e.exampleQuestions, { children: r, ...n } = t;
237
+ return /* @__PURE__ */ a(At, { children: O(r, o), ...n });
239
238
  }
240
- ), Dt = i("div", {
239
+ ), xt = i("div", {
241
240
  _id: "aiChatExampleQuestion"
242
- }), Zn = U((t, e) => {
243
- const { aiChatSettings: a } = p(), o = a.isFirstExampleQuestionHighlighted;
244
- return /* @__PURE__ */ n(Dt, { ref: e, "data-highlight": v(o), ...t });
245
- }), Ot = i("button", {
241
+ }), ua = Q((t, e) => {
242
+ const { aiChatSettings: o } = p(), r = o.isFirstExampleQuestionHighlighted;
243
+ return /* @__PURE__ */ a(xt, { ref: e, "data-highlight": g(r), ...t });
244
+ }), Tt = i("button", {
246
245
  _id: "aiChatExampleQuestionButton"
247
- }), eo = (t) => {
248
- const { question: e, onClick: a, ...o } = t, r = typeof e == "object" ? e.value : e, s = typeof e == "object" ? e.label : e, { handleSubmit: c } = g();
249
- return /* @__PURE__ */ n(
250
- Ot,
246
+ }), ha = (t) => {
247
+ const { question: e, onClick: o, ...r } = t, n = typeof e == "object" ? e.value : e, s = typeof e == "object" ? e.label : e, { handleSubmit: d } = F();
248
+ return /* @__PURE__ */ a(
249
+ Tt,
251
250
  {
252
- onClick: h(a, () => c(r)),
251
+ onClick: b(o, () => d(n)),
253
252
  children: s,
254
- ...o
255
- }
256
- );
257
- }, Rt = i("div", {
258
- _id: "aiChatWorkflows"
259
- }), to = (t) => {
260
- const { aiChatSettings: e } = p(), { messages: a } = g();
261
- return !e.workflows?.length || a.length ? null : /* @__PURE__ */ n(Rt, { ...t });
262
- }, Wt = i("h3", {
263
- _id: "aiChatWorkflowsLabel"
264
- }), io = S((t) => {
265
- const { aiChatSettings: e } = p();
266
- return /* @__PURE__ */ n(Wt, { children: e.workflowsHeader, ...t });
267
- }), Nt = i("div", {
268
- _id: "aiChatWorkflowsList"
269
- }), ao = S(
270
- (t) => {
271
- const { aiChatSettings: e } = p(), a = e.workflows, { children: o, ...r } = t;
272
- return /* @__PURE__ */ n(Nt, { children: B(o, a), ...r });
273
- }
274
- ), Vt = i("button", {
275
- _id: "aiChatWorkflow"
276
- }), no = (t) => {
277
- const { workflow: e, onClick: a, ...o } = t, r = (s) => {
278
- };
279
- return /* @__PURE__ */ n(
280
- Vt,
281
- {
282
- onClick: h(a, () => r()),
283
- children: e.displayName,
284
- ...o
253
+ ...r
285
254
  }
286
255
  );
287
- }, $t = i("div", {
256
+ }, Ht = i("div", {
288
257
  _id: "aiChatMessageWrapper"
289
- }), Qt = (t) => {
290
- const { message: e, ...a } = t;
291
- return e.role === "system" ? null : /* @__PURE__ */ n(Ze, { message: e, children: /* @__PURE__ */ n($t, { "data-role": e.role, ...a }) });
292
- }, oo = S(
258
+ }), Lt = (t) => {
259
+ const { message: e, ...o } = t;
260
+ return e.role === "system" ? null : /* @__PURE__ */ a(je, { message: e, children: /* @__PURE__ */ a(Ht, { "data-role": e.role, ...o }) });
261
+ }, Ca = S(
293
262
  (t) => {
294
- const { message: e, ...a } = t, { aiChatSettings: o, baseSettings: r } = p(), s = o.aiAssistantName, c = s ? `Hi, I'm ${s}!` : "Hi!", d = o.chatSubjectName ?? r.organizationDisplayName, m = d ? `
263
+ const { message: e, ...o } = t, { aiChatSettings: r, baseSettings: n } = p(), s = r.aiAssistantName, d = s ? `Hi, I'm ${s}!` : "Hi!", c = r.chatSubjectName ?? n.organizationDisplayName, m = c ? `
295
264
 
296
- Ask me anything about \`${d}\`.` : `
265
+ Ask me anything about \`${c}\`.` : `
297
266
 
298
267
  How can I help?`, u = {
299
- parts: [{ type: "text", text: o.introMessage ?? `${c}${m}` }],
300
- id: Ft,
268
+ parts: [{ type: "text", text: r.introMessage ?? `${d}${m}` }],
269
+ id: Ct,
301
270
  ...e,
302
271
  role: "assistant"
303
272
  };
304
- return /* @__PURE__ */ n(Qt, { message: u, ...a });
273
+ return /* @__PURE__ */ a(Lt, { message: u, ...o });
305
274
  }
306
- ), Ut = i("div", {
275
+ ), wt = i("div", {
307
276
  _id: "aiChatMessageHeader"
308
- }), ro = (t) => {
309
- const { message: e } = P();
310
- return /* @__PURE__ */ n(Ut, { "data-role": e.role, ...t });
311
- }, Kt = i("div", {
277
+ }), ba = (t) => {
278
+ const { message: e } = E();
279
+ return /* @__PURE__ */ a(wt, { "data-role": e.role, ...t });
280
+ }, Dt = i("div", {
312
281
  _id: "aiChatMessageLoading",
313
282
  children: "Thinking..."
314
- }), so = (t) => /* @__PURE__ */ n(Kt, { ...t }), qt = i("div", {
283
+ }), pa = (t) => /* @__PURE__ */ a(Dt, { ...t }), Bt = i("div", {
315
284
  _id: "aiChatMessageAvatar"
316
- }), co = (t) => {
317
- const { message: e } = P();
318
- return /* @__PURE__ */ n(qt, { "data-role": e.role, ...t });
319
- }, jt = i(ae.Root, {
285
+ }), ga = (t) => {
286
+ const { message: e } = E();
287
+ return /* @__PURE__ */ a(Bt, { "data-role": e.role, ...t });
288
+ }, Nt = i(J.Root, {
320
289
  _id: "aiChatMessageAvatarContent"
321
- }), mo = (t) => {
322
- const { message: e } = P(), { baseSettings: a } = p();
323
- return /* @__PURE__ */ n(
324
- jt,
290
+ }), va = (t) => {
291
+ const { message: e } = E(), { baseSettings: o } = p();
292
+ return /* @__PURE__ */ a(
293
+ Nt,
325
294
  {
326
- "data-username": v(e.role === "user" && !!a.userProperties.name),
295
+ "data-username": g(e.role === "user" && !!o.userProperties.name),
327
296
  "data-role": e.role,
328
297
  ...t
329
298
  }
330
299
  );
331
- }, zt = i(ae.Fallback, {
300
+ }, Rt = i(J.Fallback, {
332
301
  _id: "aiChatMessageAvatarFallback"
333
- }), lo = S(
302
+ }), Fa = S(
334
303
  (t) => {
335
- const { baseSettings: e } = p(), { message: a } = P();
336
- return e.userProperties.name ? /* @__PURE__ */ n(
337
- zt,
304
+ const { baseSettings: e } = p(), { message: o } = E();
305
+ return e.userProperties.name ? /* @__PURE__ */ a(
306
+ Rt,
338
307
  {
339
- "data-role": a.role,
340
- children: tt(e.userProperties.name),
308
+ "data-role": o.role,
309
+ children: Ge(e.userProperties.name),
341
310
  ...t
342
311
  }
343
312
  ) : null;
344
313
  }
345
- ), Ce = i(ae.Image, {
314
+ ), ae = i(J.Image, {
346
315
  _id: "aiChatMessageAvatarImage"
347
- }), ho = S(
316
+ }), _a = S(
348
317
  (t) => {
349
- const { onLoadingStatusChange: e, ...a } = t, {
350
- aiChatSettings: o,
351
- baseSettings: { userProperties: r }
352
- } = p(), { message: s } = P(), { aiAssistantAvatar: c } = o ?? {}, d = typeof c == "string" ? c : c?.light, m = (typeof c == "string" ? c : c?.dark) ?? d, l = ht(d, m), [u, b] = q(l);
353
- $(() => {
354
- b(l);
318
+ const { onLoadingStatusChange: e, ...o } = t, {
319
+ aiChatSettings: r,
320
+ baseSettings: { userProperties: n }
321
+ } = p(), { message: s } = E(), { aiAssistantAvatar: d } = r ?? {}, c = typeof d == "string" ? d : d?.light, m = (typeof d == "string" ? d : d?.dark) ?? c, l = nt(c, m), [u, C] = $(l);
322
+ W(() => {
323
+ C(l);
355
324
  }, [l]);
356
- const C = (_) => {
357
- _ === "error" && b(null);
325
+ const h = (v) => {
326
+ v === "error" && C(null);
358
327
  };
359
- return s.role === "user" ? r.name ? null : o.userAvatar ? /* @__PURE__ */ n(
360
- Ce,
328
+ return s.role === "user" ? n.name ? null : r.userAvatar ? /* @__PURE__ */ a(
329
+ ae,
361
330
  {
362
331
  "data-type": "image",
363
332
  alt: "User avatar",
364
333
  "data-role": s.role,
365
- src: o.userAvatar,
334
+ src: r.userAvatar,
366
335
  ...t
367
336
  }
368
- ) : /* @__PURE__ */ n(
369
- ze,
337
+ ) : /* @__PURE__ */ a(
338
+ $e,
370
339
  {
371
340
  "data-type": "icon",
372
341
  "data-role": s.role,
373
342
  ...t
374
343
  }
375
- ) : u ? /* @__PURE__ */ n(
376
- Ce,
344
+ ) : u ? /* @__PURE__ */ a(
345
+ ae,
377
346
  {
378
347
  src: u,
379
348
  alt: "AI assistant avatar",
380
349
  "data-type": "image",
381
350
  "data-role": s.role,
382
- onLoadingStatusChange: h(
351
+ onLoadingStatusChange: b(
383
352
  e,
384
- C
353
+ h
385
354
  ),
386
- ...a
355
+ ...o
387
356
  }
388
- ) : /* @__PURE__ */ n(
389
- je,
357
+ ) : /* @__PURE__ */ a(
358
+ Ue,
390
359
  {
391
360
  "data-type": "icon",
392
361
  "data-role": s.role,
@@ -394,245 +363,174 @@ const Bn = U((t, e) => {
394
363
  }
395
364
  );
396
365
  }
397
- ), Gt = i("span", {
366
+ ), Ot = i("span", {
398
367
  _id: "aiChatMessageName"
399
- }), uo = (t) => {
400
- const { message: e } = P(), { aiChatSettings: a } = p(), { aiAssistantName: o } = a;
401
- return /* @__PURE__ */ n(
402
- Gt,
368
+ }), Pa = (t) => {
369
+ const { message: e } = E(), { aiChatSettings: o } = p(), { aiAssistantName: r } = o;
370
+ return /* @__PURE__ */ a(
371
+ Ot,
403
372
  {
404
373
  "data-role": e.role,
405
- children: e.role === "user" ? "You" : o || "AI assistant",
374
+ children: e.role === "user" ? "You" : r || "AI assistant",
406
375
  ...t
407
376
  }
408
377
  );
409
- }, Yt = i("div", {
378
+ }, Vt = i("div", {
410
379
  _id: "aiChatMessageContentWrapper"
411
- }), Co = (t) => {
412
- const { message: e } = P();
413
- return /* @__PURE__ */ n(Yt, { "data-role": e.role, ...t });
414
- }, Jt = i("div", {
380
+ }), fa = (t) => {
381
+ const { message: e } = E();
382
+ return /* @__PURE__ */ a(Vt, { "data-role": e.role, ...t });
383
+ }, Wt = i("div", {
415
384
  _id: "aiChatMessageContent"
416
- }), bo = (t) => {
417
- const { message: e } = P();
418
- return /* @__PURE__ */ n(Jt, { "data-role": e.role, ...t });
419
- }, Xt = i("div", {
420
- _id: "aiChatMessageAttachments"
421
- }), po = (t) => {
422
- const { message: e } = P(), a = [];
423
- return e.role !== "user" || !a?.length ? null : /* @__PURE__ */ n(Xe, { children: /* @__PURE__ */ n(Xt, { ...t }) });
424
- }, Zt = i("div", {
425
- _id: "aiChatMessageAttachments__List"
426
- }), vo = (t) => {
427
- const { children: e, ...a } = t, o = [];
428
- return o ? /* @__PURE__ */ n(Zt, { children: B(e, o), ...a }) : null;
429
- }, ei = i("div", {
430
- _id: "aiChatMessageAttachments__Item"
431
- }), _o = (t) => {
432
- const { attachment: e, onClick: a, ...o } = t, { selectItem: r, onOpen: s } = J();
433
- return /* @__PURE__ */ n(pe, { attachment: e, children: /* @__PURE__ */ n(
434
- ei,
435
- {
436
- onClick: h(a, () => {
437
- r(e), s();
438
- }),
439
- ...o
440
- }
441
- ) });
442
- }, ti = i(x, {
443
- _id: "aiChatMessageAttachments__ItemIcon"
444
- }), go = (t) => {
445
- const { attachment: e } = Y(), a = e.contentType?.attachmentIcon;
446
- return a ? /* @__PURE__ */ n(ti, { iconSettings: a, ...t }) : null;
447
- }, ii = i("span", {
448
- _id: "aiChatMessageAttachments__ItemTitle"
449
- }), Fo = (t) => {
450
- const { attachment: e } = Y();
451
- return /* @__PURE__ */ n(ii, { children: e.title, ...t });
452
- }, ai = i(ce, {
453
- _id: "aiChatMessageAttachmentsPreview"
454
- }), Po = (t) => {
455
- const { onOpenChange: e, ...a } = t, { selectItem: o, isOpen: r, onClose: s, selectedItem: c } = J();
456
- return /* @__PURE__ */ n(
457
- ai,
458
- {
459
- open: r && c !== null,
460
- onOpenChange: h(e, (m) => {
461
- m || (s(), o(null));
462
- }),
463
- ...a
464
- }
465
- );
466
- }, Ao = i(ne, {
467
- _id: "aiChatMessageAttachmentsPreview__Overlay"
468
- }), fo = i(oe, {
469
- _id: "aiChatMessageAttachmentsPreview__Content",
470
- "aria-describedby": void 0
471
- }), ni = i(se, {
472
- _id: "aiChatMessageAttachmentsPreview__Header"
473
- }), Io = (t) => {
474
- const { selectedItem: e } = J();
475
- return /* @__PURE__ */ n(
476
- ni,
477
- {
478
- children: e?.title || "Attachment",
479
- ...t
480
- }
481
- );
482
- }, Mo = i(re, {
483
- _id: "aiChatMessageAttachmentsPreview__Close",
484
- children: /* @__PURE__ */ n(E, { iconKey: "close" })
485
- }), oi = i("p", {
486
- _id: "aiChatMessageAttachmentsPreview__Body"
487
- }), Eo = (t) => {
488
- const { selectedItem: e } = J();
489
- return /* @__PURE__ */ n(oi, { children: e?.content, ...t });
490
- }, So = (t) => {
491
- const { text: e, componentStyles: a, ...o } = t, { aiChatSettings: r } = p(), { shouldOpenLinksInNewTab: s } = r;
492
- return /* @__PURE__ */ n(
493
- G,
385
+ }), Ia = (t) => {
386
+ const { message: e } = E();
387
+ return /* @__PURE__ */ a(Wt, { "data-role": e.role, ...t });
388
+ }, Ea = (t) => {
389
+ const { text: e, componentStyles: o, ...r } = t, { aiChatSettings: n } = p(), { shouldOpenLinksInNewTab: s } = n;
390
+ return /* @__PURE__ */ a(
391
+ j,
494
392
  {
495
393
  children: e,
496
- componentStyles: a,
394
+ componentStyles: o,
497
395
  shouldOpenLinksInNewTab: s,
498
- ...o
396
+ ...r
499
397
  }
500
398
  );
501
- }, ko = ({
399
+ }, Sa = ({
502
400
  name: t,
503
401
  props: e,
504
- componentDef: a
402
+ componentDef: o
505
403
  }) => {
506
- const r = vt()?.shadowHost, s = O(void 0), c = O(null), d = O(null), m = O(!1), [l, u] = q(!1), [b, C] = q(!1), _ = O(a);
507
- be(() => {
508
- a !== _.current && (typeof a == "function" && typeof _.current == "function" ? a.toString() !== _.current.toString() && (_.current = a) : _.current = a);
509
- }, [a]);
510
- const f = _.current, I = O(e);
511
- I.current = e;
512
- const M = O(null), H = O(f);
513
- H.current !== f && (M.current = null, H.current = f), $(() => {
404
+ const n = lt()?.shadowHost, s = w(void 0), d = w(null), c = w(null), m = w(!1), [l, u] = $(!1), [C, h] = $(!1), v = w(o);
405
+ ne(() => {
406
+ o !== v.current && (typeof o == "function" && typeof v.current == "function" ? o.toString() !== v.current.toString() && (v.current = o) : v.current = o);
407
+ }, [o]);
408
+ const _ = v.current, M = w(e);
409
+ M.current = e;
410
+ const I = w(null), x = w(_);
411
+ x.current !== _ && (I.current = null, x.current = _), W(() => {
514
412
  s.current || (s.current = `dyn:${t}:${crypto.randomUUID()}`, u(!0));
515
- }, [t]), fe(() => {
516
- if (!f || !r || !l || !s.current)
413
+ }, [t]), Ce(() => {
414
+ if (!_ || !n || !l || !s.current)
517
415
  return;
518
- const L = s.current, F = document.createElement("div");
519
- return F.setAttribute("data-ikp-component", ""), F.setAttribute("data-component", t), F.setAttribute("slot", L), c.current = F, m.current = !1, r.appendChild(F), C(!0), () => {
520
- m.current = !0, C(!1), queueMicrotask(() => {
416
+ const T = s.current, P = document.createElement("div");
417
+ return P.setAttribute("data-ikp-component", ""), P.setAttribute("data-component", t), P.setAttribute("slot", T), d.current = P, m.current = !1, n.appendChild(P), h(!0), () => {
418
+ m.current = !0, h(!1), queueMicrotask(() => {
521
419
  try {
522
- d.current && (d.current.unmount(), d.current = null);
523
- } catch (V) {
524
- console.debug("Ignoring unmount error:", V);
420
+ c.current && (c.current.unmount(), c.current = null);
421
+ } catch (B) {
422
+ console.debug("Ignoring unmount error:", B);
525
423
  }
526
- F.parentNode === r && F.remove(), c.current = null;
424
+ P.parentNode === n && P.remove(), d.current = null;
527
425
  });
528
426
  };
529
- }, [f, r, l, t]);
530
- const Q = (L) => {
531
- const F = c.current;
532
- if (!F || m.current) return;
533
- const V = (T) => {
534
- if (M.current !== null) return M.current;
535
- if (typeof T != "function" || T.length > 1)
536
- return M.current = !1, !1;
427
+ }, [_, n, l, t]);
428
+ const V = (T) => {
429
+ const P = d.current;
430
+ if (!P || m.current) return;
431
+ const B = (L) => {
432
+ if (I.current !== null) return I.current;
433
+ if (typeof L != "function" || L.length > 1)
434
+ return I.current = !1, !1;
537
435
  try {
538
- if (T.constructor === Function) {
539
- const X = T({});
540
- return M.current = Z.isValidElement(X), M.current;
436
+ if (L.constructor === Function) {
437
+ const z = L({});
438
+ return I.current = G.isValidElement(z), I.current;
541
439
  }
542
- return M.current = !1, !1;
440
+ return I.current = !1, !1;
543
441
  } catch {
544
- return M.current = !0, !0;
442
+ return I.current = !0, !0;
545
443
  }
546
444
  };
547
445
  let y;
548
- const D = _.current;
549
- if (V(D))
446
+ const H = v.current;
447
+ if (B(H))
550
448
  try {
551
- y = Z.createElement(
552
- D,
553
- L || {}
449
+ y = G.createElement(
450
+ H,
451
+ T || {}
554
452
  );
555
- } catch (T) {
556
- console.error("Error creating React element from component:", T);
453
+ } catch (L) {
454
+ console.error("Error creating React element from component:", L);
557
455
  return;
558
456
  }
559
- else if (typeof D == "function")
560
- y = D(L || {}, F, null);
457
+ else if (typeof H == "function")
458
+ y = H(T || {}, P, null);
561
459
  else {
562
460
  console.error("Invalid component definition");
563
461
  return;
564
462
  }
565
- if (Z.isValidElement(y) || typeof y == "string") {
463
+ if (G.isValidElement(y) || typeof y == "string") {
566
464
  if (m.current) return;
567
- d.current || (d.current = Ie.createRoot(F)), !m.current && d.current && d.current.render(y);
465
+ c.current || (c.current = be.createRoot(P)), !m.current && c.current && c.current.render(y);
568
466
  return;
569
467
  }
570
- d.current && !m.current && d.current.render(null);
468
+ c.current && !m.current && c.current.render(null);
571
469
  };
572
- return $(() => {
573
- Q(I.current);
574
- }, [f, b]), $(() => {
575
- !d.current || m.current || Q(e);
576
- }, [e]), /* @__PURE__ */ n("slot", { name: s.current });
577
- }, Bo = i("div", {
470
+ return W(() => {
471
+ V(M.current);
472
+ }, [_, C]), W(() => {
473
+ !c.current || m.current || V(e);
474
+ }, [e]), /* @__PURE__ */ a("slot", { name: s.current });
475
+ }, Ma = i("div", {
578
476
  _id: "aiChatMessagePart"
579
- }), ri = i("div", {
477
+ }), Qt = i("div", {
580
478
  _id: "aiChatMessageToolbar"
581
- }), yo = (t) => {
582
- const { isLoading: e, messages: a } = g(), { message: o } = P();
583
- return a.at(-1)?.id === o?.id && e || o.role === "user" ? null : /* @__PURE__ */ n(ri, { ...t });
584
- }, si = i("div", {
479
+ }), ka = (t) => {
480
+ const { isLoading: e, messages: o } = F(), { message: r } = E();
481
+ return o.at(-1)?.id === r?.id && e || r.role === "user" ? null : /* @__PURE__ */ a(Qt, { ...t });
482
+ }, Ut = i("div", {
585
483
  _id: "aiChatMessageCustomActions"
586
- }), To = (t) => {
587
- const { children: e, ...a } = t, { aiChatSettings: o } = p(), { message: r } = P(), { isStreaming: s, messages: c } = g(), d = c.at(-1)?.id === r?.id, m = r.role === "assistant", l = o.messageActions || [];
588
- return d && s || !m ? null : /* @__PURE__ */ n(si, { children: B(e, l), ...a });
589
- }, ci = i("a", {
484
+ }), ya = (t) => {
485
+ const { children: e, ...o } = t, { aiChatSettings: r } = p(), { message: n } = E(), { isStreaming: s, messages: d } = F(), c = d.at(-1)?.id === n?.id, m = n.role === "assistant", l = r.messageActions || [];
486
+ return c && s || !m ? null : /* @__PURE__ */ a(Ut, { children: O(e, l), ...o });
487
+ }, $t = i("a", {
590
488
  _id: "aiChatMessageCustomAction"
591
- }), di = i("button", {
489
+ }), Kt = i("button", {
592
490
  _id: "aiChatMessageCustomAction"
593
- }), xo = (t) => {
594
- const { onClick: e, action: a, ...o } = t, { message: r } = P(), { handleAction: s } = le(a, r.id), { logEvent: c } = ue(), { conversationId: d } = g(), m = () => {
595
- s(), c({
491
+ }), Aa = (t) => {
492
+ const { onClick: e, action: o, ...r } = t, { message: n } = E(), { handleAction: s } = te(o, n.id), { logEvent: d } = oe(), { conversationId: c } = F(), m = () => {
493
+ s(), d({
596
494
  eventName: "user_escalation_indicated",
597
495
  properties: {
598
496
  escalationType: "contact_us",
599
- conversationId: d
497
+ conversationId: c
600
498
  }
601
499
  });
602
- }, l = a.label, u = /* @__PURE__ */ j(te, { children: [
603
- a.icon && /* @__PURE__ */ n(x, { iconSettings: a.icon }),
500
+ }, l = o.label, u = /* @__PURE__ */ Z(re, { children: [
501
+ o.icon && /* @__PURE__ */ a(N, { iconSettings: o.icon }),
604
502
  l
605
503
  ] });
606
- return a.action.type === "open_link" ? /* @__PURE__ */ n(
607
- ci,
504
+ return o.action.type === "open_link" ? /* @__PURE__ */ a(
505
+ $t,
608
506
  {
609
- href: a.action.url,
507
+ href: o.action.url,
610
508
  target: "_blank",
611
509
  rel: "noopener",
612
- "data-type": a.action.type,
613
- onClick: h(e, m),
510
+ "data-type": o.action.type,
511
+ onClick: b(e, m),
614
512
  children: u,
615
- ...o
513
+ ...r
616
514
  }
617
- ) : /* @__PURE__ */ n(
618
- di,
515
+ ) : /* @__PURE__ */ a(
516
+ Kt,
619
517
  {
620
- "data-type": a.action.type,
621
- onClick: h(e, m),
518
+ "data-type": o.action.type,
519
+ onClick: b(e, m),
622
520
  children: u,
623
- ...o
521
+ ...r
624
522
  }
625
523
  );
626
- }, mi = i("button", {
524
+ }, qt = i("button", {
627
525
  _id: "aiChatMessageAction"
628
- }), wo = (t) => {
629
- const { action: e, onClick: a, className: o, ...r } = t, { conversationId: s } = g(), {
630
- baseSettings: { onFeedback: c }
631
- } = p(), { message: d } = P(), { isStreaming: m, messages: l } = g(), [u, b] = ee(), { feedback: C, submitPositiveFeedback: _, setCurrentFeedback: f, currentFeedback: I } = de(), { logEvent: M } = ue(), [H, Q] = at(), L = l.at(-1)?.id === d?.id, F = d.role === "assistant";
632
- if (L && m || !F) return null;
526
+ }), xa = (t) => {
527
+ const { action: e, onClick: o, className: r, ...n } = t, { conversationId: s } = F(), {
528
+ baseSettings: { onFeedback: d }
529
+ } = p(), { message: c } = E(), { isStreaming: m, messages: l } = F(), [u, C] = Y(), { feedback: h, submitPositiveFeedback: v, setCurrentFeedback: _, currentFeedback: M } = X(), { logEvent: I } = oe(), [x, V] = Ze(), T = l.at(-1)?.id === c?.id, P = c.role === "assistant";
530
+ if (T && m || !P) return null;
633
531
  const y = {
634
532
  copy() {
635
- b(_e(d)), M({
533
+ C(ce(c)), I({
636
534
  eventName: "assistant_message_copied",
637
535
  properties: {
638
536
  conversationId: s
@@ -640,98 +538,98 @@ const Bn = U((t, e) => {
640
538
  });
641
539
  },
642
540
  upvote() {
643
- _(d.id).then(() => {
644
- Q();
541
+ v(c.id).then(() => {
542
+ V();
645
543
  });
646
544
  },
647
545
  downvote() {
648
- f(d.id);
546
+ _(c.id);
649
547
  }
650
- }, D = {
548
+ }, H = {
651
549
  copy: "Copy Message",
652
550
  upvote: "Upvote Message",
653
551
  downvote: "Downvote Message"
654
- }, T = {
655
- copy: /* @__PURE__ */ n(E, { iconKey: u ? "messageCopied" : "messageCopy" }),
656
- upvote: /* @__PURE__ */ n(E, { iconKey: H ? "messageCopied" : "thumbsUp" }),
657
- downvote: /* @__PURE__ */ n(E, { iconKey: "thumbsDown" })
658
- }, X = {
659
- copy: { "data-copied": v(u) },
552
+ }, L = {
553
+ copy: /* @__PURE__ */ a(k, { iconKey: u ? "messageCopied" : "messageCopy" }),
554
+ upvote: /* @__PURE__ */ a(k, { iconKey: x ? "messageCopied" : "thumbsUp" }),
555
+ downvote: /* @__PURE__ */ a(k, { iconKey: "thumbsDown" })
556
+ }, z = {
557
+ copy: { "data-copied": g(u) },
660
558
  upvote: {
661
- "data-upvoted": v(C[d.id]?.type === "positive")
559
+ "data-upvoted": g(h[c.id]?.type === "positive")
662
560
  },
663
561
  downvote: {
664
- "data-downvoted": v(C[d.id]?.type === "negative"),
665
- "data-state": I === null ? "closed" : "open"
562
+ "data-downvoted": g(h[c.id]?.type === "negative"),
563
+ "data-state": M === null ? "closed" : "open"
666
564
  }
667
565
  };
668
566
  return {
669
567
  copy: !1,
670
- upvote: !c,
671
- downvote: !c
672
- }[e] ? null : /* @__PURE__ */ n(
673
- mi,
568
+ upvote: !d,
569
+ downvote: !d
570
+ }[e] ? null : /* @__PURE__ */ a(
571
+ qt,
674
572
  {
675
573
  "data-action": e,
676
- ...X[e],
677
- children: T[e],
678
- "aria-label": D[e],
679
- className: `${o} ${e}`,
680
- onClick: h(a, y[e]),
681
- ...r
574
+ ...z[e],
575
+ children: L[e],
576
+ "aria-label": H[e],
577
+ className: `${r} ${e}`,
578
+ onClick: b(o, y[e]),
579
+ ...n
682
580
  }
683
581
  );
684
- }, li = i("div", {
582
+ }, jt = i("div", {
685
583
  _id: "aiChatMessageSources"
686
- }), Ho = (t) => {
687
- const { message: e } = P();
584
+ }), Ta = (t) => {
585
+ const { message: e } = E();
688
586
  return e.role !== "assistant" || !e.parts.filter(
689
- (o) => o.type === "data-artifact" && o.data?.type?.toLowerCase() === "citation"
690
- )?.length ? null : /* @__PURE__ */ n(li, { ...t });
691
- }, hi = i("div", {
587
+ (r) => r.type === "data-artifact" && r.data?.type?.toLowerCase() === "citation"
588
+ )?.length ? null : /* @__PURE__ */ a(jt, { ...t });
589
+ }, zt = i("div", {
692
590
  _id: "aiChatMessageSources__Header"
693
- }), Lo = (t) => /* @__PURE__ */ n(hi, { children: "Sources", ...t }), ui = i("div", {
591
+ }), Ha = (t) => /* @__PURE__ */ a(zt, { children: "Sources", ...t }), Gt = i("div", {
694
592
  _id: "aiChatMessageSources__List"
695
- }), Do = (t) => {
696
- const { message: e } = P(), { children: a, ...o } = t, {
697
- baseSettings: { transformSource: r, organizationDisplayName: s },
698
- aiChatSettings: { shouldOpenLinksInNewTab: c },
699
- searchSettings: { tabs: d }
593
+ }), La = (t) => {
594
+ const { message: e } = E(), { children: o, ...r } = t, {
595
+ baseSettings: { transformSource: n, organizationDisplayName: s },
596
+ aiChatSettings: { shouldOpenLinksInNewTab: d },
597
+ searchSettings: { tabs: c }
700
598
  } = p();
701
599
  if (e.role !== "assistant") return null;
702
600
  const m = e.parts.filter(
703
- (b) => b.type === "data-artifact" && b.data?.type?.toLowerCase() === "citation"
601
+ (C) => C.type === "data-artifact" && C.data?.type?.toLowerCase() === "citation"
704
602
  );
705
603
  if (!m?.length) return null;
706
- const l = /* @__PURE__ */ new Map(), u = m.filter((b) => {
707
- const C = b.data.artifactSummary.url;
708
- return !C || l.has(C) ? !1 : (l.set(C, !0), !0);
709
- }).map((b) => {
710
- const C = b.data, _ = {
711
- id: C?.artifactId,
712
- title: C?.artifactSummary?.title || C?.name,
713
- url: C?.artifactSummary?.url || "",
604
+ const l = /* @__PURE__ */ new Map(), u = m.filter((C) => {
605
+ const h = C.data.artifactSummary.url;
606
+ return !h || l.has(h) ? !1 : (l.set(h, !0), !0);
607
+ }).map((C) => {
608
+ const h = C.data, v = {
609
+ id: h?.artifactId,
610
+ title: h?.artifactSummary?.title || h?.name,
611
+ url: h?.artifactSummary?.url || "",
714
612
  description: "",
715
613
  breadcrumbs: [],
716
- type: C?.artifactSummary?.record_type,
717
- contentType: C?.artifactType,
718
- tag: C?.artifactType
719
- }, I = (r ?? ((H) => ({
720
- ...H,
721
- shouldOpenInNewTab: c,
722
- icon: _t(H)
723
- })))(_, "chatSourceItem", {
614
+ type: h?.artifactSummary?.record_type,
615
+ contentType: h?.artifactType,
616
+ tag: h?.artifactType
617
+ }, M = (n ?? ((x) => ({
618
+ ...x,
619
+ shouldOpenInNewTab: d,
620
+ icon: ut(x)
621
+ })))(v, "chatSourceItem", {
724
622
  organizationDisplayName: s,
725
- tabs: d
726
- }), M = I.shouldOpenInNewTab !== void 0 ? I.shouldOpenInNewTab : c;
727
- return { ...I, isExternal: M };
623
+ tabs: c
624
+ }), I = M.shouldOpenInNewTab !== void 0 ? M.shouldOpenInNewTab : d;
625
+ return { ...M, isExternal: I };
728
626
  });
729
- return /* @__PURE__ */ n(ui, { children: B(a, u), ...o });
730
- }, Ci = i(Ge, {
627
+ return /* @__PURE__ */ a(Gt, { children: O(o, u), ...r });
628
+ }, Yt = i(Ke, {
731
629
  _id: "aiChatMessageSourceItem"
732
- }), Oo = (t) => {
733
- const { source: e, onClick: a, ...o } = t, { logEvent: r } = ue(), { conversationId: s } = g(), c = () => {
734
- r({
630
+ }), wa = (t) => {
631
+ const { source: e, onClick: o, ...r } = t, { logEvent: n } = oe(), { conversationId: s } = F(), d = () => {
632
+ n({
735
633
  eventName: "assistant_source_item_clicked",
736
634
  properties: {
737
635
  conversationId: s,
@@ -739,492 +637,259 @@ const Bn = U((t, e) => {
739
637
  }
740
638
  });
741
639
  };
742
- return /* @__PURE__ */ n(Je, { source: e, children: /* @__PURE__ */ n(
743
- Ci,
640
+ return /* @__PURE__ */ a(qe, { source: e, children: /* @__PURE__ */ a(
641
+ Yt,
744
642
  {
745
643
  "data-type": e.type,
746
644
  appendToUrl: e.appendToUrl,
747
645
  isExternal: e.isExternal,
748
646
  "data-breadcrumbs": !!e.breadcrumbs?.length,
749
- onClick: h(a, c),
750
- ...o
647
+ onClick: b(o, d),
648
+ ...r
751
649
  }
752
650
  ) });
753
- }, bi = i("div", {
651
+ }, Zt = i("div", {
754
652
  _id: "aiChatMessageSourceItem__Breadcrumbs"
755
- }), Ro = (t) => {
756
- const { source: e } = N();
757
- return e.breadcrumbs?.length ? /* @__PURE__ */ n(bi, { "data-type": e.type, ...t }) : null;
758
- }, Wo = i(E, {
653
+ }), Da = (t) => {
654
+ const { source: e } = R();
655
+ return e.breadcrumbs?.length ? /* @__PURE__ */ a(Zt, { "data-type": e.type, ...t }) : null;
656
+ }, Ba = i(k, {
759
657
  _id: "aiChatMessageSourceItem__BreadcrumbIcon",
760
658
  iconKey: "breadcrumbSeparator"
761
- }), pi = i(x, {
659
+ }), Jt = i(N, {
762
660
  _id: "aiChatMessageSourceItem__Icon"
763
- }), No = (t) => {
764
- const { source: e } = N();
765
- return /* @__PURE__ */ n(pi, { iconSettings: e.icon, "data-type": e.type, ...t });
766
- }, vi = i("span", {
661
+ }), Na = (t) => {
662
+ const { source: e } = R();
663
+ return /* @__PURE__ */ a(Jt, { iconSettings: e.icon, "data-type": e.type, ...t });
664
+ }, Xt = i("span", {
767
665
  _id: "aiChatMessageSourceItem__Title"
768
- }), Vo = (t) => {
769
- const { source: e } = N();
770
- return /* @__PURE__ */ n(vi, { "data-type": e.type, children: e.title, ...t });
771
- }, _i = i("span", {
666
+ }), Ra = (t) => {
667
+ const { source: e } = R();
668
+ return /* @__PURE__ */ a(Xt, { "data-type": e.type, children: e.title, ...t });
669
+ }, ei = i("span", {
772
670
  _id: "aiChatMessageSourceItem__Tag"
773
- }), $o = (t) => {
774
- const { source: e } = N();
775
- return /* @__PURE__ */ n(_i, { "data-type": e.type, ...t });
776
- }, gi = i("span", {
671
+ }), Oa = (t) => {
672
+ const { source: e } = R();
673
+ return /* @__PURE__ */ a(ei, { "data-type": e.type, ...t });
674
+ }, ti = i("span", {
777
675
  _id: "aiChatMessageSourceItem__Description"
778
- }), Qo = (t) => {
779
- const { source: e } = N(), { children: a, ...o } = t, r = be(() => e.description ? mt(e.description) : [], [e.description]);
780
- return r.length ? /* @__PURE__ */ n(
781
- gi,
676
+ }), Va = (t) => {
677
+ const { source: e } = R(), { children: o, ...r } = t, n = ne(() => e.description ? at(e.description) : [], [e.description]);
678
+ return n.length ? /* @__PURE__ */ a(
679
+ ti,
782
680
  {
783
681
  "data-type": e.type,
784
- children: B(a, r),
785
- ...o
682
+ children: O(o, n),
683
+ ...r
786
684
  }
787
685
  ) : null;
788
- }, Fi = i("span", {
686
+ }, ii = i("span", {
789
687
  _id: "aiChatMessageSourceItem__DescriptionPart"
790
- }), Uo = (t) => {
791
- const { part: e, ...a } = t, { source: o } = N();
792
- return typeof e == "string" ? e : /* @__PURE__ */ n(
793
- Fi,
688
+ }), Wa = (t) => {
689
+ const { part: e, ...o } = t, { source: r } = R();
690
+ return typeof e == "string" ? e : /* @__PURE__ */ a(
691
+ ii,
794
692
  {
795
- "data-type": o.type,
693
+ "data-type": r.type,
796
694
  children: e.content,
797
- "data-highlighted": v(e.highlighted),
798
- ...a
695
+ "data-highlighted": g(e.highlighted),
696
+ ...o
799
697
  }
800
698
  );
801
- }, Pi = i(E, {
699
+ }, oi = i(k, {
802
700
  _id: "aiChatMessageSourceItem__Indicator"
803
- }), Ko = (t) => {
804
- const { source: e } = N();
805
- return /* @__PURE__ */ n(
806
- Pi,
701
+ }), Qa = (t) => {
702
+ const { source: e } = R();
703
+ return /* @__PURE__ */ a(
704
+ oi,
807
705
  {
808
706
  iconKey: e.isExternal ? "openLinkInNewTab" : "openLinkInSameTab",
809
707
  ...t
810
708
  }
811
709
  );
812
- }, qo = i("div", {
710
+ }, Ua = i("div", {
813
711
  _id: "aiChatFooter"
814
- }), jo = i("div", {
815
- _id: "aiChatInput__Fieldset"
816
- }), zo = i("div", {
712
+ }), $a = i("div", {
817
713
  _id: "aiChatInput__Group"
818
- }), Ai = i("textarea", {
714
+ }), ai = i("textarea", {
819
715
  _id: "aiChatInput"
820
- }), Go = U(({ onChange: t, onKeyDown: e, ...a }, o) => {
821
- const { handleInputChange: r, handleInputKeyDown: s, input: c, error: d, shouldAutoFocusInput: m, inputRef: l } = g(), { aiChatSettings: u } = p(), b = he(
822
- o,
716
+ }), Ka = Q(({ onChange: t, onKeyDown: e, ...o }, r) => {
717
+ const { handleInputChange: n, handleInputKeyDown: s, input: d, error: c, shouldAutoFocusInput: m, inputRef: l } = F(), { aiChatSettings: u } = p(), C = ie(
718
+ r,
823
719
  l
824
720
  );
825
- return pt("chat", l, m), /* @__PURE__ */ n(
826
- Ai,
721
+ return mt("chat", l, m), /* @__PURE__ */ a(
722
+ ai,
827
723
  {
828
724
  asChild: !0,
829
- ref: b,
725
+ ref: C,
830
726
  maxLength: 99999,
831
727
  placeholder: u.placeholder,
832
- value: c,
833
- onChange: h(t, r),
834
- onKeyDown: h(e, s),
835
- disabled: !!d || u.isViewOnly,
836
- ...a,
837
- children: /* @__PURE__ */ n(ie, {})
728
+ value: d,
729
+ onChange: b(t, n),
730
+ onKeyDown: b(e, s),
731
+ disabled: !!c || u.isViewOnly,
732
+ ...o,
733
+ children: /* @__PURE__ */ a(se, {})
838
734
  }
839
735
  );
840
- }), fi = i("button", {
736
+ }), ri = i("button", {
841
737
  _id: "aiChatInput__SendButton"
842
- }), Yo = (t) => {
843
- const { handleSubmit: e, isSubmitDisabled: a, error: o } = g(), { aiChatSettings: r } = p(), { onClick: s, ...c } = t;
844
- return /* @__PURE__ */ n(
845
- fi,
738
+ }), qa = (t) => {
739
+ const { handleSubmit: e, isSubmitDisabled: o, error: r } = F(), { aiChatSettings: n } = p(), { onClick: s, ...d } = t;
740
+ return /* @__PURE__ */ a(
741
+ ri,
846
742
  {
847
- onClick: h(s, () => e()),
743
+ onClick: b(s, () => e()),
848
744
  "aria-label": "Send message",
849
- disabled: a || !!o || r.isViewOnly,
850
- ...c
745
+ disabled: o || !!r || n.isViewOnly,
746
+ ...d
851
747
  }
852
748
  );
853
- }, Jo = i(E, {
749
+ }, ja = i(k, {
854
750
  _id: "aiChatInput__SendButtonIcon",
855
751
  iconKey: "chatSubmit"
856
- }), Ii = i("div", {
857
- _id: "aiChatAttachmentsBar"
858
- }), Xo = (t) => {
859
- const e = { supportedInputs: [] };
860
- return !e || !e.supportedInputs?.length ? null : /* @__PURE__ */ n(Ye, { children: /* @__PURE__ */ n(Ii, { ...t }) });
861
- }, Mi = i("div", {
862
- _id: "aiChatAttachmentsBar__List"
863
- }), Zo = (t) => {
864
- const { children: e, ...a } = t;
865
- return /* @__PURE__ */ n(Mi, { children: B(e, []), ...a });
866
- }, Ei = i("div", {
867
- _id: "aiChatAttachmentsBar__Attachment"
868
- }), er = (t) => {
869
- const { attachment: e, ...a } = t;
870
- return /* @__PURE__ */ n(pe, { attachment: e, children: /* @__PURE__ */ n(Ei, { ...a }) });
871
- }, Si = i(x, {
872
- _id: "aiChatAttachmentsBar__AttachmentIcon"
873
- }), tr = (t) => {
874
- const { attachment: e } = Y(), a = e.contentType?.attachmentIcon;
875
- return a ? /* @__PURE__ */ n(Si, { iconSettings: a, ...t }) : null;
876
- }, ki = i("span", {
877
- _id: "aiChatAttachmentsBar__AttachmentTitle"
878
- }), ir = (t) => {
879
- const { attachment: e } = Y();
880
- return /* @__PURE__ */ n(ki, { children: e.title, ...t });
881
- }, Bi = i("button", {
882
- _id: "aiChatAttachmentsBar__AttachmentDelete"
883
- }), ar = (t) => {
884
- const { onClick: e, ...a } = t;
885
- return /* @__PURE__ */ n(
886
- Bi,
887
- {
888
- "aria-label": "Remove attachment",
889
- children: /* @__PURE__ */ n(E, { iconKey: "close" }),
890
- onClick: h(e, () => {
891
- }),
892
- ...a
893
- }
894
- );
895
- }, nr = i("div", {
896
- _id: "aiChatAttachmentsBar__Actions"
897
- }), or = i(W.Tooltip, {
898
- _id: "aiChatAttachmentsBar__InfoTip",
899
- delayDuration: 0
900
- }), rr = i(W.Trigger, {
901
- _id: "aiChatAttachmentsBar__InfoTipIcon",
902
- children: /* @__PURE__ */ n(E, { iconKey: "info" })
903
- }), yi = i(W.Arrow, {
904
- _id: "aiChatAttachmentsBar__InfoTipArrow"
905
- }), sr = i(W.Content, {
906
- _id: "aiChatAttachmentsBar__InfoTipText",
907
- side: "bottom",
908
- sideOffset: 3,
909
- align: "center",
910
- children: /* @__PURE__ */ j(te, { children: [
911
- /* @__PURE__ */ n(yi, {}),
912
- "Attachments will be kept in context for the entire conversation."
913
- ] })
914
- }), Ti = i("div", {
915
- _id: "aiChatAttachmentsBar__Inputs"
916
- }), cr = (t) => {
917
- const { children: e, ...a } = t, o = { supportedInputs: [] };
918
- return o?.supportedInputs ? /* @__PURE__ */ n(
919
- Ti,
920
- {
921
- children: B(e, o.supportedInputs),
922
- ...a
923
- }
924
- ) : null;
925
- }, xi = i("button", {
926
- _id: "aiChatAttachmentsBar__Input"
927
- }), dr = (t) => {
928
- const { input: e, onClick: a, ...o } = t, r = { supportedInputs: [] }, s = [], c = () => {
929
- }, { selectInput: d, onOpen: m } = k(), l = () => {
930
- if (e.type === "FUNCTIONAL_MULTI_ATTACHMENT")
931
- return r ? e.onInvoke(r, e, c, [...s]) : void 0;
932
- d(e), m();
933
- };
934
- return /* @__PURE__ */ n(
935
- xi,
936
- {
937
- children: e.displayName,
938
- onClick: h(a, l),
939
- ...o
940
- }
941
- );
942
- }, wi = i(ce, {
943
- _id: "aiChatAttachmentsBar__Modal"
944
- }), mr = (t) => {
945
- const { onOpenChange: e, ...a } = t, { selectInput: o, isOpen: r, onClose: s, selectedInput: c } = k();
946
- return /* @__PURE__ */ n(
947
- wi,
948
- {
949
- open: r && c !== null,
950
- onOpenChange: h(e, (m) => {
951
- m || (s(), o(null));
952
- }),
953
- ...a
954
- }
955
- );
956
- }, lr = i(ne, {
957
- _id: "aiChatAttachmentsBar__ModalOverlay"
958
- }), hr = i(oe, {
959
- _id: "aiChatAttachmentsBar__ModalContent",
960
- "aria-describedby": void 0
961
- }), ur = i("div", {
962
- _id: "aiChatAttachmentsBar__ModalHeader"
963
- }), Hi = i(se, {
964
- _id: "aiChatAttachmentsBar__ModalHeading"
965
- }), Cr = (t) => {
966
- const { selectedInput: e } = k(), a = `Add ${e?.displayName}`;
967
- return /* @__PURE__ */ n(Hi, { children: a, ...t });
968
- }, Li = i("span", {
969
- _id: "aiChatAttachmentsBar__ModalDescription"
970
- }), br = (t) => {
971
- const { selectedInput: e } = k(), a = e?.workflowModalProps?.modalHelpText;
972
- return a ? /* @__PURE__ */ n(Li, { children: a, ...t }) : null;
973
- }, Di = i("div", {
974
- _id: "aiChatAttachmentsBar__ModalHelp"
975
- }), pr = (t) => {
976
- const { children: e, ...a } = t, { selectedInput: o } = k(), r = o?.workflowModalProps?.modalHelpElement;
977
- return r ? /* @__PURE__ */ n(Di, { asChild: !e, children: e || r, ...a }) : null;
978
- }, vr = i(re, {
979
- _id: "aiChatAttachmentsBar__ModalClose",
980
- children: /* @__PURE__ */ n(E, { iconKey: "close" })
981
- }), _r = i("div", {
982
- _id: "aiChatAttachmentsBar__ModalBody"
983
- }), Oi = i("form", {
984
- _id: "aiChatAttachmentsBar__Form"
985
- }), gr = (t) => {
986
- const { onSubmit: e, ...a } = t, { form: o } = k();
987
- return /* @__PURE__ */ n(
988
- Oi,
989
- {
990
- onSubmit: h(e, o.onSubmit),
991
- ...a
992
- }
993
- );
994
- }, Fr = i("div", {
995
- _id: "aiChatAttachmentsBar__FormTitle",
996
- role: "group"
997
- }), Ri = i("label", {
998
- _id: "aiChatAttachmentsBar__FormTitleLabel"
999
- }), Pr = (t) => {
1000
- const { form: e, selectedInput: a } = k();
1001
- return /* @__PURE__ */ n(
1002
- Ri,
1003
- {
1004
- htmlFor: `${a?.id}-title`,
1005
- children: e.labels.title,
1006
- ...t
1007
- }
1008
- );
1009
- }, Wi = i("input", {
1010
- _id: "aiChatAttachmentsBar__FormTitleInput"
1011
- }), Ar = (t) => {
1012
- const { onChange: e, ...a } = t, { form: o, selectedInput: r } = k();
1013
- return /* @__PURE__ */ n(
1014
- Wi,
1015
- {
1016
- name: "title",
1017
- value: o.data.title,
1018
- id: `${r?.id}-title`,
1019
- "data-invalid": v(!!o.errors.title),
1020
- "aria-invalid": !!o.errors.title,
1021
- onChange: h(e, o.onChange),
1022
- ...a
1023
- }
1024
- );
1025
- }, Ni = i("span", {
1026
- _id: "aiChatAttachmentsBar__FormTitleError"
1027
- }), fr = (t) => {
1028
- const { form: e } = k();
1029
- return e.errors.title ? /* @__PURE__ */ n(
1030
- Ni,
1031
- {
1032
- "aria-live": "polite",
1033
- children: e.errors.title,
1034
- ...t
1035
- }
1036
- ) : null;
1037
- }, Ir = i("div", {
1038
- _id: "aiChatAttachmentsBar__FormTitle",
1039
- role: "group"
1040
- }), Vi = i("label", {
1041
- _id: "aiChatAttachmentsBar__FormContentLabel"
1042
- }), Mr = (t) => {
1043
- const { form: e, selectedInput: a } = k();
1044
- return /* @__PURE__ */ n(
1045
- Vi,
1046
- {
1047
- htmlFor: `${a?.id}-content`,
1048
- children: e.labels.content,
1049
- ...t
1050
- }
1051
- );
1052
- }, $i = i("textarea", {
1053
- _id: "aiChatAttachmentsBar__FormTitleInput"
1054
- }), Er = (t) => {
1055
- const { onChange: e, ...a } = t, { form: o, selectedInput: r } = k();
1056
- return /* @__PURE__ */ n(
1057
- $i,
1058
- {
1059
- asChild: !0,
1060
- rows: 4,
1061
- name: "content",
1062
- value: o.data.content,
1063
- id: `${r?.id}-content`,
1064
- "data-invalid": v(!!o.errors.content),
1065
- "aria-invalid": !!o.errors.content,
1066
- onChange: h(e, o.onChange),
1067
- ...a,
1068
- children: /* @__PURE__ */ n(ie, { maxRows: 10 })
1069
- }
1070
- );
1071
- }, Qi = i("span", {
1072
- _id: "aiChatAttachmentsBar__FormContentError"
1073
- }), Sr = (t) => {
1074
- const { form: e } = k();
1075
- return e.errors.content ? /* @__PURE__ */ n(
1076
- Qi,
1077
- {
1078
- "aria-live": "polite",
1079
- children: e.errors.content,
1080
- ...t
1081
- }
1082
- ) : null;
1083
- }, kr = i("button", {
1084
- _id: "aiChatAttachmentsBar__FormSubmitButton",
1085
- children: "Upload",
1086
- type: "submit"
1087
- }), Br = i("div", {
752
+ }), za = i("div", {
1088
753
  _id: "aiChatActionBar"
1089
- }), yr = i("div", {
754
+ }), Ga = i("div", {
1090
755
  _id: "aiChat__ChatActions"
1091
- }), Tr = i("div", {
756
+ }), Ya = i("div", {
1092
757
  _id: "aiChatTagline__Container"
1093
- }), xr = i("span", {
758
+ }), Za = i("span", {
1094
759
  _id: "aiChatTagline__Text",
1095
760
  children: "Powered by"
1096
- }), wr = i(it, {
761
+ }), Ja = i(Ye, {
1097
762
  _id: "aiChatTagline__Logo"
1098
- }), Hr = i("a", {
763
+ }), Xa = i("a", {
1099
764
  _id: "aiChatTagline__BrandName",
1100
765
  children: "inkeep",
1101
766
  href: "https://www.inkeep.com/",
1102
767
  target: "_blank",
1103
768
  rel: "noopener noreferrer"
1104
- }), Ui = i(W.Trigger, {
769
+ }), ni = i(q.Trigger, {
1105
770
  _id: "aiChat__ChatAction"
1106
- }), Pe = (t) => {
1107
- const { action: e, onClick: a, className: o, ...r } = t, s = {}, { clear: c, stop: d, isBusy: m, messages: l } = g(), { conversationId: u } = g(), { aiChatSettings: b } = p(), [C, _] = ee(), [
1108
- f
771
+ }), ue = (t) => {
772
+ const { action: e, onClick: o, className: r, ...n } = t, { clear: s, stop: d, isBusy: c, messages: m } = F(), { conversationId: l } = F(), { aiChatSettings: u } = p(), [C, h] = Y(), [
773
+ v
1109
774
  /* copyShareUri */
1110
- ] = ee(), I = l.length > 0;
775
+ ] = Y(), _ = m.length > 0;
1111
776
  if ({
1112
777
  help: !1,
1113
- copy: !I || !b.isCopyChatButtonVisible || m,
1114
- share: !I || !b.isShareButtonVisible || !u || !!s || m,
1115
- clear: !I || b.isViewOnly || m,
1116
- stop: !m
778
+ copy: !_ || !u.isCopyChatButtonVisible || c,
779
+ share: !_ || !u.isShareButtonVisible || !l || c,
780
+ clear: !_ || u.isViewOnly || c,
781
+ stop: !c
1117
782
  }[e]) return null;
1118
- const L = {
783
+ const V = {
1119
784
  // Help actions are handled by HelpAction component
1120
785
  help: () => {
1121
786
  },
1122
787
  copy: () => {
1123
- const V = l.map((y) => {
1124
- const D = `**${y.role === "assistant" ? "AI Assistant" : "User"}**`, T = _e(y);
1125
- return `${D}
788
+ const P = m.map((B) => {
789
+ const y = `**${B.role === "assistant" ? "AI Assistant" : "User"}**`, H = ce(B);
790
+ return `${y}
1126
791
 
1127
- ${T}`;
792
+ ${H}`;
1128
793
  }).join(`
1129
794
 
1130
795
  ---
1131
796
 
1132
797
  `);
1133
- _(V);
798
+ h(P);
1134
799
  },
1135
800
  share: async () => {
1136
801
  },
1137
- clear: c,
802
+ clear: s,
1138
803
  stop: d
1139
- }, F = {
804
+ }, T = {
1140
805
  copy: C,
1141
- share: f
806
+ share: v
1142
807
  };
1143
- return /* @__PURE__ */ n(W.Tooltip, { delayDuration: 0, open: F[e], children: /* @__PURE__ */ n(
1144
- Ui,
808
+ return /* @__PURE__ */ a(q.Tooltip, { delayDuration: 0, open: T[e], children: /* @__PURE__ */ a(
809
+ ni,
1145
810
  {
1146
811
  "data-type": e,
1147
- "data-copied": v(C || f),
1148
- className: `${o} ${e}`,
1149
- children: /* @__PURE__ */ n(qi, { action: e }),
1150
- onClick: h(a, L[e]),
1151
- ...r
812
+ "data-copied": g(C || v),
813
+ className: `${r} ${e}`,
814
+ children: /* @__PURE__ */ a(di, { action: e }),
815
+ onClick: b(o, V[e]),
816
+ ...n
1152
817
  }
1153
818
  ) });
1154
- }, Ki = i("span", {
819
+ }, si = i("span", {
1155
820
  _id: "aiChat__ChatActionLabel"
1156
- }), qi = (t) => {
1157
- const { action: e, ...a } = t, { aiChatSettings: o } = p(), r = o.toolbarButtonLabels ?? {}, s = {
1158
- help: r.getHelp ?? "Get Help",
1159
- copy: r.copyChat ?? "Copy",
1160
- share: r.share ?? "Share",
1161
- clear: r.clear ?? "Clear",
1162
- stop: r.stop ?? "Stop"
821
+ }), di = (t) => {
822
+ const { action: e, ...o } = t, { aiChatSettings: r } = p(), n = r.toolbarButtonLabels ?? {}, s = {
823
+ help: n.getHelp ?? "Get Help",
824
+ copy: n.copyChat ?? "Copy",
825
+ share: n.share ?? "Share",
826
+ clear: n.clear ?? "Clear",
827
+ stop: n.stop ?? "Stop"
1163
828
  };
1164
- return /* @__PURE__ */ n(Ki, { children: s[e], ...a });
1165
- }, ji = i(W.TooltipContent, {
829
+ return /* @__PURE__ */ a(si, { children: s[e], ...o });
830
+ }, ci = i(q.TooltipContent, {
1166
831
  _id: "aiChat__ChatActionFeeback"
1167
- }), Lr = (t) => {
1168
- const { action: e, children: a, ...o } = t, r = {
832
+ }), er = (t) => {
833
+ const { action: e, children: o, ...r } = t, n = {
1169
834
  copy: "Copied!",
1170
835
  share: "Link copied!"
1171
836
  };
1172
- return /* @__PURE__ */ j(ji, { sideOffset: 5, ...o, children: [
1173
- /* @__PURE__ */ n(W.Arrow, {}),
1174
- a || r[e]
837
+ return /* @__PURE__ */ Z(ci, { sideOffset: 5, ...r, children: [
838
+ /* @__PURE__ */ a(q.Arrow, {}),
839
+ o || n[e]
1175
840
  ] });
1176
- }, zi = i(R.Root, {
841
+ }, mi = i(D.Root, {
1177
842
  _id: "aiChatHelpActions"
1178
- }), Dr = (t) => {
1179
- const { children: e, ...a } = t, { aiChatSettings: o } = p(), { getHelpOptions: r } = o;
1180
- if (!r || (r ?? []).length === 0)
843
+ }), tr = (t) => {
844
+ const { children: e, ...o } = t, { aiChatSettings: r } = p(), { getHelpOptions: n } = r;
845
+ if (!n || (n ?? []).length === 0)
1181
846
  return null;
1182
- const { _pinned: s, _unpinned: c } = r.reduce(
1183
- (u, b) => {
1184
- const C = b.isPinnedToToolbar ? "_pinned" : "_unpinned";
1185
- return { ...u, [C]: [...u[C], b] };
847
+ const { _pinned: s, _unpinned: d } = n.reduce(
848
+ (u, C) => {
849
+ const h = C.isPinnedToToolbar ? "_pinned" : "_unpinned";
850
+ return { ...u, [h]: [...u[h], C] };
1186
851
  },
1187
852
  { _pinned: [], _unpinned: [] }
1188
- ), d = c.length === 1 ? [...s, c[0]] : s, m = c.length === 1 ? [] : c, l = ot();
1189
- return /* @__PURE__ */ n(rt, { value: l, children: /* @__PURE__ */ n(
1190
- zi,
853
+ ), c = d.length === 1 ? [...s, d[0]] : s, m = d.length === 1 ? [] : d, l = Xe();
854
+ return /* @__PURE__ */ a(et, { value: l, children: /* @__PURE__ */ a(
855
+ mi,
1191
856
  {
1192
857
  open: l.open,
1193
858
  onOpenChange: l.setOpen,
1194
- children: B(e, { pinned: d, unpinned: m }),
1195
- ...a
859
+ children: O(e, { pinned: c, unpinned: m }),
860
+ ...o
1196
861
  }
1197
862
  ) });
1198
- }, Gi = i(Pe, {
863
+ }, li = i(ue, {
1199
864
  _id: "aiChatHelpAction",
1200
865
  action: "help"
1201
- }), Yi = i("a", {
866
+ }), ui = i("a", {
1202
867
  _id: "aiChatHelpAction",
1203
868
  target: "_blank",
1204
869
  rel: "noreferrer"
1205
- }), Or = (t) => {
1206
- const { action: e, onClick: a, ...o } = t, { handleAction: r, logHelpAction: s } = le(e), c = e.action.type, d = {
870
+ }), ir = (t) => {
871
+ const { action: e, onClick: o, ...r } = t, { handleAction: n, logHelpAction: s } = te(e), d = e.action.type, c = {
1207
872
  "aria-label": e.name,
1208
873
  "data-name": e.name,
1209
874
  children: e.name,
1210
- onClick: h(a, () => {
1211
- r(), s();
875
+ onClick: b(o, () => {
876
+ n(), s();
1212
877
  }),
1213
878
  // biome-ignore lint/suspicious/noExplicitAny: <explanation>
1214
- ...o
879
+ ...r
1215
880
  };
1216
- return c === "open_link" ? /* @__PURE__ */ n(Yi, { href: e.action.url, ...d }) : /* @__PURE__ */ n(Gi, { ...d });
1217
- }, Ji = i(R.Trigger, {
881
+ return d === "open_link" ? /* @__PURE__ */ a(ui, { href: e.action.url, ...c }) : /* @__PURE__ */ a(li, { ...c });
882
+ }, hi = i(D.Trigger, {
1218
883
  _id: "aiChatHelpActions__Trigger"
1219
- }), Rr = S(
884
+ }), or = S(
1220
885
  (t) => {
1221
886
  const { aiChatSettings: e } = p();
1222
- return /* @__PURE__ */ n(Pe, { action: "help", ...t, asChild: !0, children: /* @__PURE__ */ n(Ji, { children: e.toolbarButtonLabels?.getHelp ?? "Get Help" }) });
887
+ return /* @__PURE__ */ a(ue, { action: "help", ...t, asChild: !0, children: /* @__PURE__ */ a(hi, { children: e.toolbarButtonLabels?.getHelp ?? "Get Help" }) });
1223
888
  }
1224
- ), Xi = i(R.Content, {
889
+ ), Ci = i(D.Content, {
1225
890
  _id: "aiChatHelpActions__Menu"
1226
- }), Wr = (t) => /* @__PURE__ */ n(
1227
- Xi,
891
+ }), ar = (t) => /* @__PURE__ */ a(
892
+ Ci,
1228
893
  {
1229
894
  side: "top",
1230
895
  sideOffset: 8,
@@ -1232,12 +897,12 @@ ${T}`;
1232
897
  alignOffset: -10,
1233
898
  ...t
1234
899
  }
1235
- ), Nr = i(R.Arrow, {
900
+ ), rr = i(D.Arrow, {
1236
901
  _id: "aiChatHelpActions__MenuArrow"
1237
- }), Vr = (t) => {
1238
- const { action: e, onClick: a, ...o } = t, { handleAction: r, logHelpAction: s } = le(e), { setOpen: c } = st(), d = () => {
1239
- r({
1240
- onOpenForm: () => c(!1)
902
+ }), nr = (t) => {
903
+ const { action: e, onClick: o, ...r } = t, { handleAction: n, logHelpAction: s } = te(e), { setOpen: d } = tt(), c = () => {
904
+ n({
905
+ onOpenForm: () => d(!1)
1241
906
  }), s();
1242
907
  }, m = e.action.type, l = i(m === "open_link" ? "a" : "button", {
1243
908
  _id: "aiChatHelpActions__MenuItem",
@@ -1250,165 +915,165 @@ ${T}`;
1250
915
  target: "_blank",
1251
916
  rel: "noopener"
1252
917
  },
1253
- onClick: h(a, d)
918
+ onClick: b(o, c)
1254
919
  });
1255
- return /* @__PURE__ */ n(l, { ...o });
1256
- }, Zi = i(x, {
920
+ return /* @__PURE__ */ a(l, { ...r });
921
+ }, bi = i(N, {
1257
922
  _id: "aiChatHelpActions_MenuItemIcon"
1258
- }), $r = (t) => {
1259
- const { action: e, ...a } = t;
1260
- return e.icon ? /* @__PURE__ */ n(Zi, { iconSettings: e.icon, ...a }) : null;
1261
- }, ea = i(ce, {
923
+ }), sr = (t) => {
924
+ const { action: e, ...o } = t;
925
+ return e.icon ? /* @__PURE__ */ a(bi, { iconSettings: e.icon, ...o }) : null;
926
+ }, pi = i(Qe, {
1262
927
  _id: "aiChatFeedbackModal"
1263
- }), Qr = (t) => {
1264
- const { onOpenChange: e, ...a } = t, { currentFeedback: o, setCurrentFeedback: r } = de();
1265
- return /* @__PURE__ */ n(
1266
- ea,
928
+ }), dr = (t) => {
929
+ const { onOpenChange: e, ...o } = t, { currentFeedback: r, setCurrentFeedback: n } = X();
930
+ return /* @__PURE__ */ a(
931
+ pi,
1267
932
  {
1268
- open: o !== null,
1269
- onOpenChange: h(e, () => r(null)),
1270
- ...a
933
+ open: r !== null,
934
+ onOpenChange: b(e, () => n(null)),
935
+ ...o
1271
936
  }
1272
937
  );
1273
- }, Ur = i(ne, {
938
+ }, cr = i(Re, {
1274
939
  _id: "aiChatFeedbackModal__Overlay"
1275
- }), Kr = i(oe, {
940
+ }), mr = i(Oe, {
1276
941
  _id: "aiChatFeedbackModal__Content",
1277
942
  "aria-describedby": void 0
1278
- }), qr = i(se, {
943
+ }), lr = i(Ve, {
1279
944
  _id: "aiChatFeedbackModal__Header",
1280
945
  children: "Help improve my answers!"
1281
- }), jr = i(re, {
946
+ }), ur = i(We, {
1282
947
  _id: "aiChatFeedbackModal__Close",
1283
- children: /* @__PURE__ */ n(E, { iconKey: "close" })
1284
- }), zr = i("div", {
948
+ children: /* @__PURE__ */ a(k, { iconKey: "close" })
949
+ }), hr = i("div", {
1285
950
  _id: "aiChatFeedbackModal__Body"
1286
- }), ta = i("form", {
951
+ }), gi = i("form", {
1287
952
  _id: "aiChatFeedbackForm"
1288
- }), Gr = (t) => {
1289
- const { onSubmit: e, ...a } = t, { submitNegativeFeedback: o, currentFeedback: r, setCurrentFeedback: s } = de();
1290
- return /* @__PURE__ */ n(ta, { onSubmit: h(e, (d) => {
1291
- d.preventDefault();
1292
- const m = d.target, l = new FormData(m), u = Object.fromEntries(l.entries());
1293
- r && (o(r, u), s(null));
1294
- }), ...a });
1295
- }, ia = i("div", {
953
+ }), Cr = (t) => {
954
+ const { onSubmit: e, ...o } = t, { submitNegativeFeedback: r, currentFeedback: n, setCurrentFeedback: s } = X();
955
+ return /* @__PURE__ */ a(gi, { onSubmit: b(e, (c) => {
956
+ c.preventDefault();
957
+ const m = c.target, l = new FormData(m), u = Object.fromEntries(l.entries());
958
+ n && (r(n, u), s(null));
959
+ }), ...o });
960
+ }, vi = i("div", {
1296
961
  _id: "aiChatFeedbackItem"
1297
- }), Yr = (t) => {
1298
- const { name: e, ...a } = t;
1299
- return /* @__PURE__ */ n(et, { name: e, children: /* @__PURE__ */ n(ia, { ...a }) });
1300
- }, aa = i(z.Root, {
962
+ }), br = (t) => {
963
+ const { name: e, ...o } = t;
964
+ return /* @__PURE__ */ a(ze, { name: e, children: /* @__PURE__ */ a(vi, { ...o }) });
965
+ }, Fi = i(K.Root, {
1301
966
  _id: "aiChatFeedbackItem__Checkbox"
1302
- }), Jr = (t) => {
1303
- const { name: e, focusItem: a } = me(), { onCheckedChange: o, ...r } = t, s = (c) => {
1304
- c && a?.current?.focus();
967
+ }), pr = (t) => {
968
+ const { name: e, focusItem: o } = ee(), { onCheckedChange: r, ...n } = t, s = (d) => {
969
+ d && o?.current?.focus();
1305
970
  };
1306
- return /* @__PURE__ */ n(
1307
- aa,
971
+ return /* @__PURE__ */ a(
972
+ Fi,
1308
973
  {
1309
974
  id: `feedback-${e}`,
1310
975
  name: e,
1311
- onCheckedChange: h(o, s),
1312
- ...r
976
+ onCheckedChange: b(r, s),
977
+ ...n
1313
978
  }
1314
979
  );
1315
- }, Xr = i(z.Indicator, {
980
+ }, gr = i(K.Indicator, {
1316
981
  _id: "aiChatFeedbackItem__CheckboxIndicator",
1317
- children: /* @__PURE__ */ n(ve, {})
1318
- }), na = i("label", {
982
+ children: /* @__PURE__ */ a(de, {})
983
+ }), _i = i("label", {
1319
984
  _id: "aiChatFeedbackItem__Label"
1320
- }), Zr = (t) => {
1321
- const { name: e } = me(), a = {
985
+ }), vr = (t) => {
986
+ const { name: e } = ee(), o = {
1322
987
  unrelated_response: "Didn't answer my question",
1323
988
  inaccurate_statement: "Inaccurate statement",
1324
989
  inaccurate_code_snippet: "Inaccurate code snippet",
1325
990
  irrelevant_citations: "Irrelevant citations"
1326
991
  };
1327
- return /* @__PURE__ */ n(na, { htmlFor: `feedback-${e}`, children: a[e], ...t });
1328
- }, oa = i("textarea", {
992
+ return /* @__PURE__ */ a(_i, { htmlFor: `feedback-${e}`, children: o[e], ...t });
993
+ }, Pi = i("textarea", {
1329
994
  _id: "aiChatFeedbackItem__Description",
1330
995
  placeholder: "Please describe"
1331
- }), es = (t) => {
1332
- const { name: e, focusItem: a } = me();
1333
- return /* @__PURE__ */ n(
1334
- oa,
996
+ }), Fr = (t) => {
997
+ const { name: e, focusItem: o } = ee();
998
+ return /* @__PURE__ */ a(
999
+ Pi,
1335
1000
  {
1336
- ref: a,
1001
+ ref: o,
1337
1002
  name: `${e}:description`,
1338
1003
  ...t
1339
1004
  }
1340
1005
  );
1341
- }, ts = i("button", {
1006
+ }, _r = i("button", {
1342
1007
  _id: "aiChatFeedbackForm__SubmitButton",
1343
1008
  children: "Submit",
1344
1009
  type: "submit"
1345
- }), ra = i("div", {
1010
+ }), fi = i("div", {
1346
1011
  _id: "aiChatForm__Wrapper"
1347
- }), is = (t) => {
1348
- const { form: e } = A();
1349
- return e ? /* @__PURE__ */ n(ra, { ...t }) : null;
1350
- }, sa = i("form", {
1012
+ }), Pr = (t) => {
1013
+ const { form: e } = f();
1014
+ return e ? /* @__PURE__ */ a(fi, { ...t }) : null;
1015
+ }, Ii = i("form", {
1351
1016
  _id: "aiChatForm"
1352
- }), as = (t) => {
1353
- const { onSubmit: e, ...a } = t, { conversationId: o, messages: r } = g(), { handleSubmit: s, isSuccess: c } = A();
1354
- return c ? null : /* @__PURE__ */ n(
1355
- sa,
1017
+ }), fr = (t) => {
1018
+ const { onSubmit: e, ...o } = t, { conversationId: r, messages: n } = F(), { handleSubmit: s, isSuccess: d } = f();
1019
+ return d ? null : /* @__PURE__ */ a(
1020
+ Ii,
1356
1021
  {
1357
- onSubmit: h(
1022
+ onSubmit: b(
1358
1023
  e,
1359
- (d) => s(d, { id: o, messages: r })
1024
+ (c) => s(c, { id: r, messages: n })
1360
1025
  ),
1361
- ...a
1026
+ ...o
1362
1027
  }
1363
1028
  );
1364
- }, ca = i("button", {
1029
+ }, Ei = i("button", {
1365
1030
  _id: "aiChatForm__Close",
1366
- children: /* @__PURE__ */ n(E, { iconKey: "close" })
1367
- }), ns = (t) => {
1368
- const { onClick: e, ...a } = t, { closeForm: o } = A();
1369
- return /* @__PURE__ */ n(ca, { onClick: h(e, o), ...a });
1370
- }, os = i("div", {
1031
+ children: /* @__PURE__ */ a(k, { iconKey: "close" })
1032
+ }), Ir = (t) => {
1033
+ const { onClick: e, ...o } = t, { closeForm: r } = f();
1034
+ return /* @__PURE__ */ a(Ei, { onClick: b(e, r), ...o });
1035
+ }, Er = i("div", {
1371
1036
  _id: "aiChatForm__Header"
1372
- }), da = i("h2", {
1037
+ }), Si = i("h2", {
1373
1038
  _id: "aiChatForm__Heading"
1374
- }), rs = (t) => {
1375
- const { form: e } = A();
1376
- return e?.heading ? /* @__PURE__ */ n(da, { children: e.heading, ...t }) : null;
1377
- }, ma = i(G, {
1039
+ }), Sr = (t) => {
1040
+ const { form: e } = f();
1041
+ return e?.heading ? /* @__PURE__ */ a(Si, { children: e.heading, ...t }) : null;
1042
+ }, Mi = i(j, {
1378
1043
  _id: "aiChatForm__Description"
1379
- }), ss = (t) => {
1380
- const { form: e } = A();
1381
- return e?.description ? /* @__PURE__ */ n(ma, { shouldOpenLinksInNewTab: !0, children: e.description, ...t }) : null;
1382
- }, la = i("div", {
1044
+ }), Mr = (t) => {
1045
+ const { form: e } = f();
1046
+ return e?.description ? /* @__PURE__ */ a(Mi, { shouldOpenLinksInNewTab: !0, children: e.description, ...t }) : null;
1047
+ }, ki = i("div", {
1383
1048
  _id: "aiChatForm__Content"
1384
- }), cs = (t) => {
1385
- const { children: e, ...a } = t, { getFields: o } = A(), { conversationId: r } = g(), s = o(r) || [];
1386
- return /* @__PURE__ */ n(la, { children: B(e, s), ...a });
1387
- }, ha = i("div", {
1049
+ }), kr = (t) => {
1050
+ const { children: e, ...o } = t, { getFields: r } = f(), { conversationId: n } = F(), s = r(n) || [];
1051
+ return /* @__PURE__ */ a(ki, { children: O(e, s), ...o });
1052
+ }, yi = i("div", {
1388
1053
  _id: "aiChatForm__Field"
1389
- }), ds = (t) => {
1390
- const { field: e, autoFocus: a, ...o } = t, { control: r, errors: s } = A();
1391
- return /* @__PURE__ */ n(
1392
- dt,
1054
+ }), yr = (t) => {
1055
+ const { field: e, autoFocus: o, ...r } = t, { control: n, errors: s } = f();
1056
+ return /* @__PURE__ */ a(
1057
+ ot,
1393
1058
  {
1394
1059
  name: e.name,
1395
- control: r,
1060
+ control: n,
1396
1061
  rules: { required: e.isRequired ? `${e.label} is required.` : void 0 },
1397
- render: ({ field: c }) => {
1398
- const d = c.value !== void 0 || e.inputType === "file";
1399
- return /* @__PURE__ */ n(
1400
- ct,
1062
+ render: ({ field: d }) => {
1063
+ const c = d.value !== void 0 || e.inputType === "file";
1064
+ return /* @__PURE__ */ a(
1065
+ it,
1401
1066
  {
1402
- "data-invalid": v(!!s[e.name]),
1067
+ "data-invalid": g(!!s[e.name]),
1403
1068
  field: e,
1404
- fieldProps: c,
1405
- autoFocus: a,
1406
- children: d && /* @__PURE__ */ n(
1407
- ha,
1069
+ fieldProps: d,
1070
+ autoFocus: o,
1071
+ children: c && /* @__PURE__ */ a(
1072
+ yi,
1408
1073
  {
1409
1074
  "data-input-type": e.inputType,
1410
- "data-hidden": v(e.isHidden),
1411
- ...o
1075
+ "data-hidden": g(e.isHidden),
1076
+ ...r
1412
1077
  }
1413
1078
  )
1414
1079
  }
@@ -1416,638 +1081,571 @@ ${T}`;
1416
1081
  }
1417
1082
  }
1418
1083
  );
1419
- }, ua = i("label", {
1084
+ }, Ai = i("label", {
1420
1085
  _id: "aiChatForm__FieldLabel"
1421
- }), ms = (t) => {
1422
- const { field: e } = w();
1423
- return /* @__PURE__ */ n(
1424
- ua,
1086
+ }), Ar = (t) => {
1087
+ const { field: e } = A();
1088
+ return /* @__PURE__ */ a(
1089
+ Ai,
1425
1090
  {
1426
- "data-required": v(e.isRequired),
1091
+ "data-required": g(e.isRequired),
1427
1092
  htmlFor: e.name,
1428
1093
  children: e.label,
1429
1094
  ...t
1430
1095
  }
1431
1096
  );
1432
- }, Ca = i("input", {
1097
+ }, xi = i("input", {
1433
1098
  _id: "aiChatForm__FieldText",
1434
1099
  type: "text"
1435
- }), Ae = (t) => {
1100
+ }), he = (t) => {
1436
1101
  const {
1437
1102
  field: e,
1438
- error: a,
1439
- fieldProps: { onChange: o, onBlur: r, ...s },
1440
- autoFocus: c
1441
- } = w(), { onChange: d, onBlur: m, ...l } = t;
1442
- return /* @__PURE__ */ n(
1443
- Ca,
1103
+ error: o,
1104
+ fieldProps: { onChange: r, onBlur: n, ...s },
1105
+ autoFocus: d
1106
+ } = A(), { onChange: c, onBlur: m, ...l } = t;
1107
+ return /* @__PURE__ */ a(
1108
+ xi,
1444
1109
  {
1445
1110
  id: e.name,
1446
- autoFocus: c,
1111
+ autoFocus: d,
1447
1112
  placeholder: "placeholder" in e ? e.placeholder : void 0,
1448
- "data-invalid": v(!!a),
1449
- onChange: h(d, o),
1450
- onBlur: h(m, r),
1113
+ "data-invalid": g(!!o),
1114
+ onChange: b(c, r),
1115
+ onBlur: b(m, n),
1451
1116
  ...s,
1452
1117
  ...l
1453
1118
  }
1454
1119
  );
1455
- }, ls = i(Ae, {
1120
+ }, xr = i(he, {
1456
1121
  _id: "aiChatForm__FieldEmail",
1457
1122
  type: "email"
1458
- }), ba = i("input", {
1123
+ }), Ti = i("input", {
1459
1124
  _id: "aiChatForm__FieldFile",
1460
1125
  type: "file",
1461
1126
  multiple: !0
1462
- }), hs = (t) => {
1127
+ }), Tr = (t) => {
1463
1128
  const {
1464
1129
  field: e,
1465
- error: a,
1466
- fieldProps: { value: o, onChange: r, onBlur: s, ...c },
1467
- autoFocus: d
1468
- } = w(), { onChange: m, onBlur: l, ...u } = t, b = (C) => {
1469
- const _ = C.target.files;
1470
- r(_);
1130
+ error: o,
1131
+ fieldProps: { value: r, onChange: n, onBlur: s, ...d },
1132
+ autoFocus: c
1133
+ } = A(), { onChange: m, onBlur: l, ...u } = t, C = (h) => {
1134
+ const v = h.target.files;
1135
+ n(v);
1471
1136
  };
1472
- return /* @__PURE__ */ n(
1473
- ba,
1137
+ return /* @__PURE__ */ a(
1138
+ Ti,
1474
1139
  {
1475
1140
  id: e.name,
1476
- autoFocus: d,
1477
- "data-value": o,
1478
- "data-invalid": v(!!a),
1141
+ autoFocus: c,
1142
+ "data-value": r,
1143
+ "data-invalid": g(!!o),
1479
1144
  ...u,
1480
- ...c,
1481
- onChange: h(m, b),
1482
- onBlur: h(l, s)
1145
+ ...d,
1146
+ onChange: b(m, C),
1147
+ onBlur: b(l, s)
1483
1148
  }
1484
1149
  );
1485
- }, us = i(Ae, {
1150
+ }, Hr = i(he, {
1486
1151
  _id: "aiChatForm__FieldTextArea",
1487
1152
  type: "textarea",
1488
1153
  asChild: !0,
1489
- children: /* @__PURE__ */ n(ie, { maxRows: 8 })
1490
- }), pa = i(z.Root, {
1154
+ children: /* @__PURE__ */ a(se, { maxRows: 8 })
1155
+ }), Hi = i(K.Root, {
1491
1156
  _id: "aiChatForm__FieldCheckbox"
1492
- }), Cs = (t) => {
1493
- const { field: e, error: a, fieldProps: o, autoFocus: r } = w(), { onCheckedChange: s, ...c } = t;
1494
- return /* @__PURE__ */ n(
1495
- pa,
1157
+ }), Lr = (t) => {
1158
+ const { field: e, error: o, fieldProps: r, autoFocus: n } = A(), { onCheckedChange: s, ...d } = t;
1159
+ return /* @__PURE__ */ a(
1160
+ Hi,
1496
1161
  {
1497
1162
  id: e.name,
1498
1163
  name: e.name,
1499
- autoFocus: r,
1500
- "data-invalid": v(!!a),
1501
- checked: o.value,
1502
- onCheckedChange: h(s, o.onChange),
1503
- ...c
1164
+ autoFocus: n,
1165
+ "data-invalid": g(!!o),
1166
+ checked: r.value,
1167
+ onCheckedChange: b(s, r.onChange),
1168
+ ...d
1504
1169
  }
1505
1170
  );
1506
- }, bs = i(z.Indicator, {
1171
+ }, wr = i(K.Indicator, {
1507
1172
  _id: "aiChatForm__FieldCheckboxIndicator",
1508
- children: /* @__PURE__ */ n(ve, {})
1509
- }), va = i(xe, {
1173
+ children: /* @__PURE__ */ a(de, {})
1174
+ }), Li = i(Ie, {
1510
1175
  _id: "aiChatForm__FieldSelect"
1511
- }), ps = (t) => {
1512
- const { field: e, error: a, fieldProps: o } = w(), { onValueChange: r, ...s } = t;
1513
- return /* @__PURE__ */ n(
1514
- va,
1176
+ }), Dr = (t) => {
1177
+ const { field: e, error: o, fieldProps: r } = A(), { onValueChange: n, ...s } = t;
1178
+ return /* @__PURE__ */ a(
1179
+ Li,
1515
1180
  {
1516
1181
  name: e.name,
1517
- "data-invalid": v(!!a),
1518
- value: o.value,
1519
- onValueChange: h(r, o.onChange),
1182
+ "data-invalid": g(!!o),
1183
+ value: r.value,
1184
+ onValueChange: b(n, r.onChange),
1520
1185
  ...s
1521
1186
  }
1522
1187
  );
1523
- }, vs = i(Ee, {
1188
+ }, Br = i(ge, {
1524
1189
  _id: "aiChatForm__FieldSelect__Trigger"
1525
- }), _a = i(we, {
1190
+ }), wi = i(Ee, {
1526
1191
  _id: "aiChatForm__FieldSelect__Value"
1527
- }), _s = (t) => {
1528
- const { field: e } = w();
1529
- return /* @__PURE__ */ n(
1530
- _a,
1192
+ }), Nr = (t) => {
1193
+ const { field: e } = A();
1194
+ return /* @__PURE__ */ a(
1195
+ wi,
1531
1196
  {
1532
1197
  placeholder: "placeholder" in e ? e.placeholder : void 0,
1533
1198
  ...t
1534
1199
  }
1535
1200
  );
1536
- }, gs = i(Se, {
1201
+ }, Rr = i(ve, {
1537
1202
  _id: "aiChatForm__FieldSelect__Icon",
1538
1203
  asChild: !0,
1539
- children: /* @__PURE__ */ n(x, { iconSettings: { builtIn: "LuChevronDown" } })
1540
- }), Fs = i(ke, {
1204
+ children: /* @__PURE__ */ a(N, { iconSettings: { builtIn: "LuChevronDown" } })
1205
+ }), Or = i(Fe, {
1541
1206
  _id: "aiChatForm__FieldSelect__Content",
1542
1207
  position: "popper"
1543
- }), Ps = i(Be, {
1208
+ }), Vr = i(_e, {
1544
1209
  _id: "aiChatForm__FieldSelect__Viewport"
1545
- }), As = i(ye, {
1210
+ }), Wr = i(Pe, {
1546
1211
  _id: "aiChatForm__FieldSelect__Item"
1547
- }), fs = i(Me, {
1212
+ }), Qr = i(pe, {
1548
1213
  _id: "aiChatForm__FieldSelect__ItemText"
1549
- }), Is = i(
1550
- Te,
1214
+ }), Ur = i(
1215
+ fe,
1551
1216
  {
1552
1217
  _id: "aiChatForm__FieldSelect__ItemIndicator",
1553
1218
  asChild: !0,
1554
- children: /* @__PURE__ */ n(x, { iconSettings: { builtIn: "LuCheck" } })
1219
+ children: /* @__PURE__ */ a(N, { iconSettings: { builtIn: "LuCheck" } })
1555
1220
  }
1556
- ), Ms = (t) => {
1557
- const { field: e, error: a, fieldProps: o } = w(), { onValueChange: r, ...s } = t;
1221
+ ), $r = (t) => {
1222
+ const { field: e, error: o, fieldProps: r } = A(), { onValueChange: n, ...s } = t;
1558
1223
  if (e.inputType !== "combobox") return null;
1559
- const c = e, { items: d, placeholder: m, multiple: l } = c, u = Array.isArray(o.value) ? o.value : [], b = {
1224
+ const d = e, { items: c, placeholder: m, multiple: l } = d, u = Array.isArray(r.value) ? r.value : [], C = {
1560
1225
  name: e.name,
1561
- "data-invalid": v(!!a) || void 0,
1562
- items: d,
1226
+ "data-invalid": g(!!o) || void 0,
1227
+ items: c,
1563
1228
  defaultValue: u,
1564
1229
  multiple: l ?? !1,
1565
1230
  placeholder: m,
1566
- onValueChange: h(
1567
- r,
1568
- (C) => o.onChange(C.value)
1231
+ onValueChange: b(
1232
+ n,
1233
+ (h) => r.onChange(h.value)
1569
1234
  ),
1570
1235
  ...s
1571
1236
  };
1572
- return /* @__PURE__ */ n(
1573
- Le,
1237
+ return /* @__PURE__ */ a(
1238
+ Me,
1574
1239
  {
1575
- ...b
1240
+ ...C
1576
1241
  }
1577
1242
  );
1578
- }, ga = { _id: "aiChatForm__FieldCombobox__Control" }, Es = i(
1579
- Oe,
1580
- ga
1581
- ), Fa = { _id: "aiChatForm__FieldCombobox__Input" }, Ss = i(
1582
- Re,
1583
- Fa
1584
- ), Pa = {
1243
+ }, Di = { _id: "aiChatForm__FieldCombobox__Control" }, Kr = i(
1244
+ ye,
1245
+ Di
1246
+ ), Bi = { _id: "aiChatForm__FieldCombobox__Input" }, qr = i(
1247
+ Ae,
1248
+ Bi
1249
+ ), Ni = {
1585
1250
  _id: "aiChatForm__FieldCombobox__Trigger",
1586
- children: /* @__PURE__ */ n(x, { iconSettings: { builtIn: "LuChevronDown" } })
1587
- }, ks = i(
1588
- We,
1589
- Pa
1590
- ), Aa = { _id: "aiChatForm__FieldCombobox__SelectedTags" }, Bs = i(
1591
- Ne,
1592
- Aa
1593
- ), fa = { _id: "aiChatForm__FieldCombobox__Content" }, ys = i(
1594
- Ve,
1595
- fa
1596
- ), Ia = { _id: "aiChatForm__FieldCombobox__Positioner" }, Ts = i(
1597
- $e,
1598
- Ia
1599
- ), Ma = { _id: "aiChatForm__FieldCombobox__List" }, xs = i(
1600
- Qe,
1601
- Ma
1602
- ), ws = i(Ue, {
1251
+ children: /* @__PURE__ */ a(N, { iconSettings: { builtIn: "LuChevronDown" } })
1252
+ }, jr = i(
1253
+ xe,
1254
+ Ni
1255
+ ), Ri = { _id: "aiChatForm__FieldCombobox__SelectedTags" }, zr = i(
1256
+ Te,
1257
+ Ri
1258
+ ), Oi = { _id: "aiChatForm__FieldCombobox__Content" }, Gr = i(
1259
+ He,
1260
+ Oi
1261
+ ), Vi = { _id: "aiChatForm__FieldCombobox__Positioner" }, Yr = i(
1262
+ Le,
1263
+ Vi
1264
+ ), Wi = { _id: "aiChatForm__FieldCombobox__List" }, Zr = i(
1265
+ we,
1266
+ Wi
1267
+ ), Jr = i(De, {
1603
1268
  _id: "aiChatForm__FieldCombobox__Item"
1604
- }), Hs = i(
1605
- De,
1269
+ }), Xr = i(
1270
+ ke,
1606
1271
  { _id: "aiChatForm__FieldCombobox__ItemText" }
1607
- ), Ls = i(
1608
- Ke,
1272
+ ), en = i(
1273
+ Be,
1609
1274
  { _id: "aiChatForm__FieldCombobox__ItemIndicator" }
1610
- ), Ds = He, Os = i(
1611
- qe,
1275
+ ), tn = Se, on = i(
1276
+ Ne,
1612
1277
  { _id: "aiChatForm__FieldCombobox__ListEmpty" }
1613
- ), Ea = i("p", {
1278
+ ), Qi = i("p", {
1614
1279
  _id: "aiChatForm__FieldDescription"
1615
- }), Rs = (t) => {
1616
- const { field: e } = w();
1617
- return e.description ? /* @__PURE__ */ n(Ea, { children: e.description, ...t }) : null;
1618
- }, Sa = i("span", {
1280
+ }), an = (t) => {
1281
+ const { field: e } = A();
1282
+ return e.description ? /* @__PURE__ */ a(Qi, { children: e.description, ...t }) : null;
1283
+ }, Ui = i("span", {
1619
1284
  _id: "aiChatForm__FieldError"
1620
- }), Ws = (t) => {
1621
- const { error: e } = w();
1622
- return e ? /* @__PURE__ */ n(Sa, { children: e.message?.toString(), ...t }) : null;
1623
- }, ka = i("span", {
1285
+ }), rn = (t) => {
1286
+ const { error: e } = A();
1287
+ return e ? /* @__PURE__ */ a(Ui, { children: e.message?.toString(), ...t }) : null;
1288
+ }, $i = i("span", {
1624
1289
  _id: "aiChatForm__Error"
1625
- }), Ns = (t) => {
1626
- const { formError: e } = A();
1627
- return e ? /* @__PURE__ */ n(ka, { children: e.message, ...t }) : null;
1628
- }, Vs = i("div", {
1290
+ }), nn = (t) => {
1291
+ const { formError: e } = f();
1292
+ return e ? /* @__PURE__ */ a($i, { children: e.message, ...t }) : null;
1293
+ }, sn = i("div", {
1629
1294
  _id: "aiChatForm__Footer"
1630
- }), Ba = i("button", {
1295
+ }), Ki = i("button", {
1631
1296
  _id: "aiChatForm__Cancel",
1632
1297
  children: "Cancel",
1633
1298
  type: "button"
1634
- }), $s = (t) => {
1635
- const { onClick: e, ...a } = t, { closeForm: o } = A();
1636
- return /* @__PURE__ */ n(Ba, { onClick: h(e, o), ...a });
1637
- }, ya = i("button", {
1299
+ }), dn = (t) => {
1300
+ const { onClick: e, ...o } = t, { closeForm: r } = f();
1301
+ return /* @__PURE__ */ a(Ki, { onClick: b(e, r), ...o });
1302
+ }, qi = i("button", {
1638
1303
  _id: "aiChatForm__Submit",
1639
1304
  children: "Submit",
1640
1305
  type: "submit"
1641
- }), Qs = (t) => {
1642
- const { onClick: e, ...a } = t, { isSubmitting: o, form: r } = A(), s = r?.buttons.submit.label || "Submit";
1643
- return /* @__PURE__ */ n(ya, { disabled: o, ...a, children: s });
1644
- }, Ta = i("div", {
1306
+ }), cn = (t) => {
1307
+ const { onClick: e, ...o } = t, { isSubmitting: r, form: n } = f(), s = n?.buttons.submit.label || "Submit";
1308
+ return /* @__PURE__ */ a(qi, { disabled: r, ...o, children: s });
1309
+ }, ji = i("div", {
1645
1310
  _id: "aiChatForm__Success"
1646
- }), Us = (t) => {
1647
- const { isSuccess: e } = A();
1648
- return e ? /* @__PURE__ */ n(Ta, { ...t }) : null;
1649
- }, xa = i("h2", {
1311
+ }), mn = (t) => {
1312
+ const { isSuccess: e } = f();
1313
+ return e ? /* @__PURE__ */ a(ji, { ...t }) : null;
1314
+ }, zi = i("h2", {
1650
1315
  _id: "aiChatForm__SuccessHeading"
1651
- }), Ks = (t) => {
1652
- const { form: e } = A();
1653
- return /* @__PURE__ */ n(xa, { children: e?.successView?.heading, ...t });
1654
- }, wa = i(G, {
1316
+ }), ln = (t) => {
1317
+ const { form: e } = f();
1318
+ return /* @__PURE__ */ a(zi, { children: e?.successView?.heading, ...t });
1319
+ }, Gi = i(j, {
1655
1320
  _id: "aiChatForm__SuccessMessage"
1656
- }), qs = (t) => {
1657
- const { form: e } = A();
1658
- return /* @__PURE__ */ n(
1659
- wa,
1321
+ }), un = (t) => {
1322
+ const { form: e } = f();
1323
+ return /* @__PURE__ */ a(
1324
+ Gi,
1660
1325
  {
1661
1326
  shouldOpenLinksInNewTab: !0,
1662
1327
  children: e?.successView?.message,
1663
1328
  ...t
1664
1329
  }
1665
1330
  );
1666
- }, Ha = i("button", {
1331
+ }, Yi = i("button", {
1667
1332
  _id: "aiChatForm__SuccessButton"
1668
- }), js = (t) => {
1669
- const { onClick: e, ...a } = t, { form: o, closeForm: r } = A(), s = o?.successView?.doneButton;
1333
+ }), hn = (t) => {
1334
+ const { onClick: e, ...o } = t, { form: r, closeForm: n } = f(), s = r?.successView?.doneButton;
1670
1335
  if (!s) return null;
1671
- const c = s.icon && /* @__PURE__ */ n(x, { iconSettings: s.icon }), d = s.label;
1672
- return /* @__PURE__ */ n(
1673
- Ha,
1336
+ const d = s.icon && /* @__PURE__ */ a(N, { iconSettings: s.icon }), c = s.label;
1337
+ return /* @__PURE__ */ a(
1338
+ Yi,
1674
1339
  {
1675
- onClick: h(e, r),
1676
- children: /* @__PURE__ */ j(te, { children: [
1677
- c,
1678
- d
1340
+ onClick: b(e, n),
1341
+ children: /* @__PURE__ */ Z(re, { children: [
1342
+ d,
1343
+ c
1679
1344
  ] }),
1680
- ...a
1345
+ ...o
1681
1346
  }
1682
1347
  );
1683
1348
  };
1684
1349
  export {
1685
- Br as ActionBar,
1686
- yr as Actions,
1687
- Xo as AttachmentsBar,
1688
- nr as AttachmentsBarActions,
1689
- er as AttachmentsBarAttachment,
1690
- ar as AttachmentsBarAttachmentDelete,
1691
- tr as AttachmentsBarAttachmentIcon,
1692
- ir as AttachmentsBarAttachmentTitle,
1693
- gr as AttachmentsBarForm,
1694
- Ir as AttachmentsBarFormContent,
1695
- Sr as AttachmentsBarFormContentError,
1696
- Er as AttachmentsBarFormContentInput,
1697
- Mr as AttachmentsBarFormContentLabel,
1698
- kr as AttachmentsBarFormSubmitButton,
1699
- Fr as AttachmentsBarFormTitle,
1700
- fr as AttachmentsBarFormTitleError,
1701
- Ar as AttachmentsBarFormTitleInput,
1702
- Pr as AttachmentsBarFormTitleLabel,
1703
- or as AttachmentsBarInfoTip,
1704
- yi as AttachmentsBarInfoTipArrow,
1705
- rr as AttachmentsBarInfoTipIcon,
1706
- sr as AttachmentsBarInfoTipText,
1707
- dr as AttachmentsBarInput,
1708
- cr as AttachmentsBarInputs,
1709
- Zo as AttachmentsBarList,
1710
- mr as AttachmentsBarModal,
1711
- _r as AttachmentsBarModalBody,
1712
- vr as AttachmentsBarModalClose,
1713
- hr as AttachmentsBarModalContent,
1714
- br as AttachmentsBarModalDescription,
1715
- ur as AttachmentsBarModalHeader,
1716
- Cr as AttachmentsBarModalHeading,
1717
- pr as AttachmentsBarModalHelp,
1718
- lr as AttachmentsBarModalOverlay,
1719
- Pe as ChatAction,
1720
- Lr as ChatActionFeedback,
1721
- qi as ChatActionLabel,
1722
- Or as ChatHelpAction,
1723
- Ln as ChatHistoryButton,
1724
- Hn as ChatHistoryButtonIcon,
1725
- On as Content,
1726
- Rn as ContentScrollArea,
1727
- $n as ContentScrollAreaCorner,
1728
- Nn as ContentScrollAreaScrollbar,
1729
- Vn as ContentScrollAreaThumb,
1730
- Wn as ContentScrollAreaViewport,
1731
- Un as Disclaimer,
1732
- Gn as DisclaimerArrow,
1733
- jn as DisclaimerContent,
1734
- Kn as DisclaimerLabel,
1735
- zn as DisclaimerText,
1736
- qn as DisclaimerTrigger,
1737
- ko as DynamicComponent,
1738
- Br as EmbeddedChatPrimitiveActionBar,
1739
- yr as EmbeddedChatPrimitiveActions,
1740
- Xo as EmbeddedChatPrimitiveAttachmentsBar,
1741
- nr as EmbeddedChatPrimitiveAttachmentsBarActions,
1742
- er as EmbeddedChatPrimitiveAttachmentsBarAttachment,
1743
- ar as EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete,
1744
- tr as EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon,
1745
- ir as EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle,
1746
- gr as EmbeddedChatPrimitiveAttachmentsBarForm,
1747
- Ir as EmbeddedChatPrimitiveAttachmentsBarFormContent,
1748
- Sr as EmbeddedChatPrimitiveAttachmentsBarFormContentError,
1749
- Er as EmbeddedChatPrimitiveAttachmentsBarFormContentInput,
1750
- Mr as EmbeddedChatPrimitiveAttachmentsBarFormContentLabel,
1751
- kr as EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton,
1752
- Fr as EmbeddedChatPrimitiveAttachmentsBarFormTitle,
1753
- fr as EmbeddedChatPrimitiveAttachmentsBarFormTitleError,
1754
- Ar as EmbeddedChatPrimitiveAttachmentsBarFormTitleInput,
1755
- Pr as EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel,
1756
- or as EmbeddedChatPrimitiveAttachmentsBarInfoTip,
1757
- yi as EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow,
1758
- rr as EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon,
1759
- sr as EmbeddedChatPrimitiveAttachmentsBarInfoTipText,
1760
- dr as EmbeddedChatPrimitiveAttachmentsBarInput,
1761
- cr as EmbeddedChatPrimitiveAttachmentsBarInputs,
1762
- Zo as EmbeddedChatPrimitiveAttachmentsBarList,
1763
- mr as EmbeddedChatPrimitiveAttachmentsBarModal,
1764
- _r as EmbeddedChatPrimitiveAttachmentsBarModalBody,
1765
- vr as EmbeddedChatPrimitiveAttachmentsBarModalClose,
1766
- hr as EmbeddedChatPrimitiveAttachmentsBarModalContent,
1767
- br as EmbeddedChatPrimitiveAttachmentsBarModalDescription,
1768
- ur as EmbeddedChatPrimitiveAttachmentsBarModalHeader,
1769
- Cr as EmbeddedChatPrimitiveAttachmentsBarModalHeading,
1770
- pr as EmbeddedChatPrimitiveAttachmentsBarModalHelp,
1771
- lr as EmbeddedChatPrimitiveAttachmentsBarModalOverlay,
1772
- Pe as EmbeddedChatPrimitiveChatAction,
1773
- Lr as EmbeddedChatPrimitiveChatActionFeedback,
1774
- qi as EmbeddedChatPrimitiveChatActionLabel,
1775
- Or as EmbeddedChatPrimitiveChatHelpAction,
1776
- Ln as EmbeddedChatPrimitiveChatHistoryButton,
1777
- Hn as EmbeddedChatPrimitiveChatHistoryButtonIcon,
1778
- On as EmbeddedChatPrimitiveContent,
1779
- Rn as EmbeddedChatPrimitiveContentScrollArea,
1780
- $n as EmbeddedChatPrimitiveContentScrollAreaCorner,
1781
- Nn as EmbeddedChatPrimitiveContentScrollAreaScrollbar,
1782
- Vn as EmbeddedChatPrimitiveContentScrollAreaThumb,
1783
- Wn as EmbeddedChatPrimitiveContentScrollAreaViewport,
1784
- Un as EmbeddedChatPrimitiveDisclaimer,
1785
- Gn as EmbeddedChatPrimitiveDisclaimerArrow,
1786
- jn as EmbeddedChatPrimitiveDisclaimerContent,
1787
- Kn as EmbeddedChatPrimitiveDisclaimerLabel,
1788
- zn as EmbeddedChatPrimitiveDisclaimerText,
1789
- qn as EmbeddedChatPrimitiveDisclaimerTrigger,
1790
- ko as EmbeddedChatPrimitiveDynamicComponent,
1791
- Zn as EmbeddedChatPrimitiveExampleQuestion,
1792
- eo as EmbeddedChatPrimitiveExampleQuestionButton,
1793
- Yn as EmbeddedChatPrimitiveExampleQuestions,
1794
- Jn as EmbeddedChatPrimitiveExampleQuestionsLabel,
1795
- Xn as EmbeddedChatPrimitiveExampleQuestionsList,
1796
- Gr as EmbeddedChatPrimitiveFeedbackForm,
1797
- Yr as EmbeddedChatPrimitiveFeedbackItem,
1798
- Jr as EmbeddedChatPrimitiveFeedbackItemCheckbox,
1799
- Xr as EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator,
1800
- es as EmbeddedChatPrimitiveFeedbackItemDescription,
1801
- Zr as EmbeddedChatPrimitiveFeedbackItemLabel,
1802
- Qr as EmbeddedChatPrimitiveFeedbackModal,
1803
- zr as EmbeddedChatPrimitiveFeedbackModalBody,
1804
- jr as EmbeddedChatPrimitiveFeedbackModalClose,
1805
- Kr as EmbeddedChatPrimitiveFeedbackModalContent,
1806
- qr as EmbeddedChatPrimitiveFeedbackModalHeader,
1807
- Ur as EmbeddedChatPrimitiveFeedbackModalOverlay,
1808
- ts as EmbeddedChatPrimitiveFeedbackSubmitButton,
1809
- qo as EmbeddedChatPrimitiveFooter,
1810
- as as EmbeddedChatPrimitiveForm,
1811
- $s as EmbeddedChatPrimitiveFormCancel,
1812
- ns as EmbeddedChatPrimitiveFormClose,
1813
- cs as EmbeddedChatPrimitiveFormContent,
1814
- ss as EmbeddedChatPrimitiveFormDescription,
1815
- Ns as EmbeddedChatPrimitiveFormError,
1816
- ds as EmbeddedChatPrimitiveFormField,
1817
- Cs as EmbeddedChatPrimitiveFormFieldCheckbox,
1818
- bs as EmbeddedChatPrimitiveFormFieldCheckboxIndicator,
1819
- Ms as EmbeddedChatPrimitiveFormFieldCombobox,
1820
- ys as EmbeddedChatPrimitiveFormFieldComboboxContent,
1821
- Es as EmbeddedChatPrimitiveFormFieldComboboxControl,
1822
- Ss as EmbeddedChatPrimitiveFormFieldComboboxInput,
1823
- ws as EmbeddedChatPrimitiveFormFieldComboboxItem,
1824
- Ls as EmbeddedChatPrimitiveFormFieldComboboxItemIndicator,
1825
- Hs as EmbeddedChatPrimitiveFormFieldComboboxItemText,
1826
- xs as EmbeddedChatPrimitiveFormFieldComboboxList,
1827
- Os as EmbeddedChatPrimitiveFormFieldComboboxListEmpty,
1828
- Ds as EmbeddedChatPrimitiveFormFieldComboboxListItems,
1829
- Ts as EmbeddedChatPrimitiveFormFieldComboboxPositioner,
1830
- Bs as EmbeddedChatPrimitiveFormFieldComboboxSelectedTags,
1831
- ks as EmbeddedChatPrimitiveFormFieldComboboxTrigger,
1832
- Rs as EmbeddedChatPrimitiveFormFieldDescription,
1833
- ls as EmbeddedChatPrimitiveFormFieldEmail,
1834
- Ws as EmbeddedChatPrimitiveFormFieldError,
1835
- hs as EmbeddedChatPrimitiveFormFieldFile,
1836
- ms as EmbeddedChatPrimitiveFormFieldLabel,
1837
- ps as EmbeddedChatPrimitiveFormFieldSelect,
1838
- Fs as EmbeddedChatPrimitiveFormFieldSelectContent,
1839
- gs as EmbeddedChatPrimitiveFormFieldSelectIcon,
1840
- As as EmbeddedChatPrimitiveFormFieldSelectItem,
1841
- Is as EmbeddedChatPrimitiveFormFieldSelectItemIndicator,
1842
- fs as EmbeddedChatPrimitiveFormFieldSelectItemText,
1843
- vs as EmbeddedChatPrimitiveFormFieldSelectTrigger,
1844
- _s as EmbeddedChatPrimitiveFormFieldSelectValue,
1845
- Ps as EmbeddedChatPrimitiveFormFieldSelectViewport,
1846
- Ae as EmbeddedChatPrimitiveFormFieldText,
1847
- us as EmbeddedChatPrimitiveFormFieldTextArea,
1848
- Vs as EmbeddedChatPrimitiveFormFooter,
1849
- os as EmbeddedChatPrimitiveFormHeader,
1850
- rs as EmbeddedChatPrimitiveFormHeading,
1851
- Qs as EmbeddedChatPrimitiveFormSubmit,
1852
- Us as EmbeddedChatPrimitiveFormSuccess,
1853
- js as EmbeddedChatPrimitiveFormSuccessButton,
1854
- Ks as EmbeddedChatPrimitiveFormSuccessHeading,
1855
- qs as EmbeddedChatPrimitiveFormSuccessMessage,
1856
- is as EmbeddedChatPrimitiveFormWrapper,
1857
- xn as EmbeddedChatPrimitiveHeaderToolbar,
1858
- Dr as EmbeddedChatPrimitiveHelpActions,
1859
- Wr as EmbeddedChatPrimitiveHelpActionsMenu,
1860
- Nr as EmbeddedChatPrimitiveHelpActionsMenuArrow,
1861
- Vr as EmbeddedChatPrimitiveHelpActionsMenuItem,
1862
- $r as EmbeddedChatPrimitiveHelpActionsMenuItemIcon,
1863
- Rr as EmbeddedChatPrimitiveHelpActionsTrigger,
1864
- Go as EmbeddedChatPrimitiveInput,
1865
- jo as EmbeddedChatPrimitiveInputFieldset,
1866
- zo as EmbeddedChatPrimitiveInputGroup,
1867
- oo as EmbeddedChatPrimitiveIntroMessageWrapper,
1868
- So as EmbeddedChatPrimitiveMarkdown,
1869
- wo as EmbeddedChatPrimitiveMessageAction,
1870
- po as EmbeddedChatPrimitiveMessageAttachments,
1871
- _o as EmbeddedChatPrimitiveMessageAttachmentsItem,
1872
- go as EmbeddedChatPrimitiveMessageAttachmentsItemIcon,
1873
- Fo as EmbeddedChatPrimitiveMessageAttachmentsItemTitle,
1874
- vo as EmbeddedChatPrimitiveMessageAttachmentsList,
1875
- Po as EmbeddedChatPrimitiveMessageAttachmentsPreview,
1876
- Eo as EmbeddedChatPrimitiveMessageAttachmentsPreviewBody,
1877
- Mo as EmbeddedChatPrimitiveMessageAttachmentsPreviewClose,
1878
- fo as EmbeddedChatPrimitiveMessageAttachmentsPreviewContent,
1879
- Io as EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader,
1880
- Ao as EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay,
1881
- co as EmbeddedChatPrimitiveMessageAvatar,
1882
- mo as EmbeddedChatPrimitiveMessageAvatarContent,
1883
- lo as EmbeddedChatPrimitiveMessageAvatarFallback,
1884
- ho as EmbeddedChatPrimitiveMessageAvatarImage,
1885
- bo as EmbeddedChatPrimitiveMessageContent,
1886
- Co as EmbeddedChatPrimitiveMessageContentWrapper,
1887
- xo as EmbeddedChatPrimitiveMessageCustomAction,
1888
- To as EmbeddedChatPrimitiveMessageCustomActions,
1889
- ro as EmbeddedChatPrimitiveMessageHeader,
1890
- so as EmbeddedChatPrimitiveMessageLoading,
1891
- uo as EmbeddedChatPrimitiveMessageName,
1892
- Oo as EmbeddedChatPrimitiveMessageSourceItem,
1893
- Ro as EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,
1894
- Qo as EmbeddedChatPrimitiveMessageSourceItemDescription,
1895
- Uo as EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,
1896
- No as EmbeddedChatPrimitiveMessageSourceItemIcon,
1897
- Ko as EmbeddedChatPrimitiveMessageSourceItemIndicator,
1898
- $o as EmbeddedChatPrimitiveMessageSourceItemTag,
1899
- Vo as EmbeddedChatPrimitiveMessageSourceItemTitle,
1900
- Ho as EmbeddedChatPrimitiveMessageSources,
1901
- Lo as EmbeddedChatPrimitiveMessageSourcesHeader,
1902
- Do as EmbeddedChatPrimitiveMessageSourcesList,
1903
- yo as EmbeddedChatPrimitiveMessageToolbar,
1904
- Qt as EmbeddedChatPrimitiveMessageWrapper,
1905
- Qn as EmbeddedChatPrimitiveMessages,
1906
- yn as EmbeddedChatPrimitiveRoot,
1907
- Yo as EmbeddedChatPrimitiveSendButton,
1908
- Jo as EmbeddedChatPrimitiveSendButtonIcon,
1909
- Hr as EmbeddedChatPrimitiveTaglineBrandName,
1910
- Tr as EmbeddedChatPrimitiveTaglineContainer,
1911
- wr as EmbeddedChatPrimitiveTaglineLogo,
1912
- xr as EmbeddedChatPrimitiveTaglineText,
1913
- Dn as EmbeddedChatPrimitiveToolbarHeader,
1914
- wn as EmbeddedChatPrimitiveToolbarHeaderWrapper,
1915
- no as EmbeddedChatPrimitiveWorkflow,
1916
- to as EmbeddedChatPrimitiveWorkflows,
1917
- io as EmbeddedChatPrimitiveWorkflowsLabel,
1918
- ao as EmbeddedChatPrimitiveWorkflowsList,
1919
- Bn as EmbeddedChatPrimitiveWrapper,
1920
- Zn as ExampleQuestion,
1921
- eo as ExampleQuestionButton,
1922
- Yn as ExampleQuestions,
1923
- Jn as ExampleQuestionsLabel,
1924
- Xn as ExampleQuestionsList,
1925
- Gr as FeedbackForm,
1926
- Yr as FeedbackItem,
1927
- Jr as FeedbackItemCheckbox,
1928
- Xr as FeedbackItemCheckboxIndicator,
1929
- es as FeedbackItemDescription,
1930
- Zr as FeedbackItemLabel,
1931
- Qr as FeedbackModal,
1932
- zr as FeedbackModalBody,
1933
- jr as FeedbackModalClose,
1934
- Kr as FeedbackModalContent,
1935
- qr as FeedbackModalHeader,
1936
- Ur as FeedbackModalOverlay,
1937
- ts as FeedbackSubmitButton,
1938
- qo as Footer,
1939
- as as Form,
1940
- $s as FormCancel,
1941
- ns as FormClose,
1942
- cs as FormContent,
1943
- ss as FormDescription,
1944
- Ns as FormError,
1945
- ds as FormField,
1946
- Cs as FormFieldCheckbox,
1947
- bs as FormFieldCheckboxIndicator,
1948
- Ms as FormFieldCombobox,
1949
- ys as FormFieldComboboxContent,
1950
- Es as FormFieldComboboxControl,
1951
- Ss as FormFieldComboboxInput,
1952
- ws as FormFieldComboboxItem,
1953
- Ls as FormFieldComboboxItemIndicator,
1954
- Hs as FormFieldComboboxItemText,
1955
- xs as FormFieldComboboxList,
1956
- Os as FormFieldComboboxListEmpty,
1957
- Ds as FormFieldComboboxListItems,
1958
- Ts as FormFieldComboboxPositioner,
1959
- Bs as FormFieldComboboxSelectedTags,
1960
- ks as FormFieldComboboxTrigger,
1961
- Rs as FormFieldDescription,
1962
- ls as FormFieldEmail,
1963
- Ws as FormFieldError,
1964
- hs as FormFieldFile,
1965
- ms as FormFieldLabel,
1966
- ps as FormFieldSelect,
1967
- Fs as FormFieldSelectContent,
1968
- gs as FormFieldSelectIcon,
1969
- As as FormFieldSelectItem,
1970
- Is as FormFieldSelectItemIndicator,
1971
- fs as FormFieldSelectItemText,
1972
- vs as FormFieldSelectTrigger,
1973
- _s as FormFieldSelectValue,
1974
- Ps as FormFieldSelectViewport,
1975
- Ae as FormFieldText,
1976
- us as FormFieldTextArea,
1977
- Vs as FormFooter,
1978
- os as FormHeader,
1979
- rs as FormHeading,
1980
- Qs as FormSubmit,
1981
- Us as FormSuccess,
1982
- js as FormSuccessButton,
1983
- Ks as FormSuccessHeading,
1984
- qs as FormSuccessMessage,
1985
- is as FormWrapper,
1986
- Tn as Header,
1987
- xn as HeaderToolbar,
1988
- wn as HeaderToolbarWrapper,
1989
- Dr as HelpActions,
1990
- Wr as HelpActionsMenu,
1991
- Nr as HelpActionsMenuArrow,
1992
- Vr as HelpActionsMenuItem,
1993
- $r as HelpActionsMenuItemIcon,
1994
- Rr as HelpActionsTrigger,
1995
- Go as Input,
1996
- jo as InputFieldset,
1997
- zo as InputGroup,
1998
- oo as IntroMessageWrapper,
1999
- So as Markdown,
2000
- wo as MessageAction,
2001
- po as MessageAttachments,
2002
- _o as MessageAttachmentsItem,
2003
- go as MessageAttachmentsItemIcon,
2004
- Fo as MessageAttachmentsItemTitle,
2005
- vo as MessageAttachmentsList,
2006
- Po as MessageAttachmentsPreview,
2007
- Eo as MessageAttachmentsPreviewBody,
2008
- Mo as MessageAttachmentsPreviewClose,
2009
- fo as MessageAttachmentsPreviewContent,
2010
- Io as MessageAttachmentsPreviewHeader,
2011
- Ao as MessageAttachmentsPreviewOverlay,
2012
- co as MessageAvatar,
2013
- mo as MessageAvatarContent,
2014
- lo as MessageAvatarFallback,
2015
- ho as MessageAvatarImage,
2016
- bo as MessageContent,
2017
- Co as MessageContentWrapper,
2018
- xo as MessageCustomAction,
2019
- To as MessageCustomActions,
2020
- ro as MessageHeader,
2021
- so as MessageLoading,
2022
- uo as MessageName,
2023
- Oo as MessageSourceItem,
2024
- Wo as MessageSourceItemBreadcrumbIcon,
2025
- Ro as MessageSourceItemBreadcrumbs,
2026
- Qo as MessageSourceItemDescription,
2027
- Uo as MessageSourceItemDescriptionPart,
2028
- No as MessageSourceItemIcon,
2029
- Ko as MessageSourceItemIndicator,
2030
- $o as MessageSourceItemTag,
2031
- Vo as MessageSourceItemTitle,
2032
- Ho as MessageSources,
2033
- Lo as MessageSourcesHeader,
2034
- Do as MessageSourcesList,
2035
- yo as MessageToolbar,
2036
- Qt as MessageWrapper,
2037
- Qn as Messages,
2038
- Bo as PrimitiveMessagePart,
2039
- Ys as Provider,
2040
- yn as Root,
2041
- Yo as SendButton,
2042
- Jo as SendButtonIcon,
2043
- Hr as TaglineBrandName,
2044
- Tr as TaglineContainer,
2045
- wr as TaglineLogo,
2046
- xr as TaglineText,
2047
- Dn as ToolbarHeader,
2048
- no as Workflow,
2049
- to as Workflows,
2050
- io as WorkflowsLabel,
2051
- ao as WorkflowsList,
2052
- Bn as Wrapper
1350
+ za as ActionBar,
1351
+ Ga as Actions,
1352
+ ue as ChatAction,
1353
+ er as ChatActionFeedback,
1354
+ di as ChatActionLabel,
1355
+ ir as ChatHelpAction,
1356
+ zo as ChatHistoryButton,
1357
+ jo as ChatHistoryButtonIcon,
1358
+ Yo as Content,
1359
+ Zo as ContentScrollArea,
1360
+ ta as ContentScrollAreaCorner,
1361
+ Xo as ContentScrollAreaScrollbar,
1362
+ ea as ContentScrollAreaThumb,
1363
+ Jo as ContentScrollAreaViewport,
1364
+ oa as Disclaimer,
1365
+ da as DisclaimerArrow,
1366
+ na as DisclaimerContent,
1367
+ aa as DisclaimerLabel,
1368
+ sa as DisclaimerText,
1369
+ ra as DisclaimerTrigger,
1370
+ vn as DropZone,
1371
+ Sa as DynamicComponent,
1372
+ za as EmbeddedChatPrimitiveActionBar,
1373
+ Ga as EmbeddedChatPrimitiveActions,
1374
+ ue as EmbeddedChatPrimitiveChatAction,
1375
+ er as EmbeddedChatPrimitiveChatActionFeedback,
1376
+ di as EmbeddedChatPrimitiveChatActionLabel,
1377
+ ir as EmbeddedChatPrimitiveChatHelpAction,
1378
+ zo as EmbeddedChatPrimitiveChatHistoryButton,
1379
+ jo as EmbeddedChatPrimitiveChatHistoryButtonIcon,
1380
+ Yo as EmbeddedChatPrimitiveContent,
1381
+ Zo as EmbeddedChatPrimitiveContentScrollArea,
1382
+ ta as EmbeddedChatPrimitiveContentScrollAreaCorner,
1383
+ Xo as EmbeddedChatPrimitiveContentScrollAreaScrollbar,
1384
+ ea as EmbeddedChatPrimitiveContentScrollAreaThumb,
1385
+ Jo as EmbeddedChatPrimitiveContentScrollAreaViewport,
1386
+ oa as EmbeddedChatPrimitiveDisclaimer,
1387
+ da as EmbeddedChatPrimitiveDisclaimerArrow,
1388
+ na as EmbeddedChatPrimitiveDisclaimerContent,
1389
+ aa as EmbeddedChatPrimitiveDisclaimerLabel,
1390
+ sa as EmbeddedChatPrimitiveDisclaimerText,
1391
+ ra as EmbeddedChatPrimitiveDisclaimerTrigger,
1392
+ Sa as EmbeddedChatPrimitiveDynamicComponent,
1393
+ ua as EmbeddedChatPrimitiveExampleQuestion,
1394
+ ha as EmbeddedChatPrimitiveExampleQuestionButton,
1395
+ ca as EmbeddedChatPrimitiveExampleQuestions,
1396
+ ma as EmbeddedChatPrimitiveExampleQuestionsLabel,
1397
+ la as EmbeddedChatPrimitiveExampleQuestionsList,
1398
+ Cr as EmbeddedChatPrimitiveFeedbackForm,
1399
+ br as EmbeddedChatPrimitiveFeedbackItem,
1400
+ pr as EmbeddedChatPrimitiveFeedbackItemCheckbox,
1401
+ gr as EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator,
1402
+ Fr as EmbeddedChatPrimitiveFeedbackItemDescription,
1403
+ vr as EmbeddedChatPrimitiveFeedbackItemLabel,
1404
+ dr as EmbeddedChatPrimitiveFeedbackModal,
1405
+ hr as EmbeddedChatPrimitiveFeedbackModalBody,
1406
+ ur as EmbeddedChatPrimitiveFeedbackModalClose,
1407
+ mr as EmbeddedChatPrimitiveFeedbackModalContent,
1408
+ lr as EmbeddedChatPrimitiveFeedbackModalHeader,
1409
+ cr as EmbeddedChatPrimitiveFeedbackModalOverlay,
1410
+ _r as EmbeddedChatPrimitiveFeedbackSubmitButton,
1411
+ Ua as EmbeddedChatPrimitiveFooter,
1412
+ fr as EmbeddedChatPrimitiveForm,
1413
+ dn as EmbeddedChatPrimitiveFormCancel,
1414
+ Ir as EmbeddedChatPrimitiveFormClose,
1415
+ kr as EmbeddedChatPrimitiveFormContent,
1416
+ Mr as EmbeddedChatPrimitiveFormDescription,
1417
+ nn as EmbeddedChatPrimitiveFormError,
1418
+ yr as EmbeddedChatPrimitiveFormField,
1419
+ Lr as EmbeddedChatPrimitiveFormFieldCheckbox,
1420
+ wr as EmbeddedChatPrimitiveFormFieldCheckboxIndicator,
1421
+ $r as EmbeddedChatPrimitiveFormFieldCombobox,
1422
+ Gr as EmbeddedChatPrimitiveFormFieldComboboxContent,
1423
+ Kr as EmbeddedChatPrimitiveFormFieldComboboxControl,
1424
+ qr as EmbeddedChatPrimitiveFormFieldComboboxInput,
1425
+ Jr as EmbeddedChatPrimitiveFormFieldComboboxItem,
1426
+ en as EmbeddedChatPrimitiveFormFieldComboboxItemIndicator,
1427
+ Xr as EmbeddedChatPrimitiveFormFieldComboboxItemText,
1428
+ Zr as EmbeddedChatPrimitiveFormFieldComboboxList,
1429
+ on as EmbeddedChatPrimitiveFormFieldComboboxListEmpty,
1430
+ tn as EmbeddedChatPrimitiveFormFieldComboboxListItems,
1431
+ Yr as EmbeddedChatPrimitiveFormFieldComboboxPositioner,
1432
+ zr as EmbeddedChatPrimitiveFormFieldComboboxSelectedTags,
1433
+ jr as EmbeddedChatPrimitiveFormFieldComboboxTrigger,
1434
+ an as EmbeddedChatPrimitiveFormFieldDescription,
1435
+ xr as EmbeddedChatPrimitiveFormFieldEmail,
1436
+ rn as EmbeddedChatPrimitiveFormFieldError,
1437
+ Tr as EmbeddedChatPrimitiveFormFieldFile,
1438
+ Ar as EmbeddedChatPrimitiveFormFieldLabel,
1439
+ Dr as EmbeddedChatPrimitiveFormFieldSelect,
1440
+ Or as EmbeddedChatPrimitiveFormFieldSelectContent,
1441
+ Rr as EmbeddedChatPrimitiveFormFieldSelectIcon,
1442
+ Wr as EmbeddedChatPrimitiveFormFieldSelectItem,
1443
+ Ur as EmbeddedChatPrimitiveFormFieldSelectItemIndicator,
1444
+ Qr as EmbeddedChatPrimitiveFormFieldSelectItemText,
1445
+ Br as EmbeddedChatPrimitiveFormFieldSelectTrigger,
1446
+ Nr as EmbeddedChatPrimitiveFormFieldSelectValue,
1447
+ Vr as EmbeddedChatPrimitiveFormFieldSelectViewport,
1448
+ he as EmbeddedChatPrimitiveFormFieldText,
1449
+ Hr as EmbeddedChatPrimitiveFormFieldTextArea,
1450
+ sn as EmbeddedChatPrimitiveFormFooter,
1451
+ Er as EmbeddedChatPrimitiveFormHeader,
1452
+ Sr as EmbeddedChatPrimitiveFormHeading,
1453
+ cn as EmbeddedChatPrimitiveFormSubmit,
1454
+ mn as EmbeddedChatPrimitiveFormSuccess,
1455
+ hn as EmbeddedChatPrimitiveFormSuccessButton,
1456
+ ln as EmbeddedChatPrimitiveFormSuccessHeading,
1457
+ un as EmbeddedChatPrimitiveFormSuccessMessage,
1458
+ Pr as EmbeddedChatPrimitiveFormWrapper,
1459
+ Ko as EmbeddedChatPrimitiveHeaderToolbar,
1460
+ tr as EmbeddedChatPrimitiveHelpActions,
1461
+ ar as EmbeddedChatPrimitiveHelpActionsMenu,
1462
+ rr as EmbeddedChatPrimitiveHelpActionsMenuArrow,
1463
+ nr as EmbeddedChatPrimitiveHelpActionsMenuItem,
1464
+ sr as EmbeddedChatPrimitiveHelpActionsMenuItemIcon,
1465
+ or as EmbeddedChatPrimitiveHelpActionsTrigger,
1466
+ Ka as EmbeddedChatPrimitiveInput,
1467
+ $a as EmbeddedChatPrimitiveInputGroup,
1468
+ Ca as EmbeddedChatPrimitiveIntroMessageWrapper,
1469
+ Ea as EmbeddedChatPrimitiveMarkdown,
1470
+ xa as EmbeddedChatPrimitiveMessageAction,
1471
+ ga as EmbeddedChatPrimitiveMessageAvatar,
1472
+ va as EmbeddedChatPrimitiveMessageAvatarContent,
1473
+ Fa as EmbeddedChatPrimitiveMessageAvatarFallback,
1474
+ _a as EmbeddedChatPrimitiveMessageAvatarImage,
1475
+ Ia as EmbeddedChatPrimitiveMessageContent,
1476
+ fa as EmbeddedChatPrimitiveMessageContentWrapper,
1477
+ Aa as EmbeddedChatPrimitiveMessageCustomAction,
1478
+ ya as EmbeddedChatPrimitiveMessageCustomActions,
1479
+ ba as EmbeddedChatPrimitiveMessageHeader,
1480
+ pa as EmbeddedChatPrimitiveMessageLoading,
1481
+ Pa as EmbeddedChatPrimitiveMessageName,
1482
+ wa as EmbeddedChatPrimitiveMessageSourceItem,
1483
+ Da as EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,
1484
+ Va as EmbeddedChatPrimitiveMessageSourceItemDescription,
1485
+ Wa as EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,
1486
+ Na as EmbeddedChatPrimitiveMessageSourceItemIcon,
1487
+ Qa as EmbeddedChatPrimitiveMessageSourceItemIndicator,
1488
+ Oa as EmbeddedChatPrimitiveMessageSourceItemTag,
1489
+ Ra as EmbeddedChatPrimitiveMessageSourceItemTitle,
1490
+ Ta as EmbeddedChatPrimitiveMessageSources,
1491
+ Ha as EmbeddedChatPrimitiveMessageSourcesHeader,
1492
+ La as EmbeddedChatPrimitiveMessageSourcesList,
1493
+ ka as EmbeddedChatPrimitiveMessageToolbar,
1494
+ Lt as EmbeddedChatPrimitiveMessageWrapper,
1495
+ ia as EmbeddedChatPrimitiveMessages,
1496
+ Uo as EmbeddedChatPrimitiveRoot,
1497
+ qa as EmbeddedChatPrimitiveSendButton,
1498
+ ja as EmbeddedChatPrimitiveSendButtonIcon,
1499
+ Xa as EmbeddedChatPrimitiveTaglineBrandName,
1500
+ Ya as EmbeddedChatPrimitiveTaglineContainer,
1501
+ Ja as EmbeddedChatPrimitiveTaglineLogo,
1502
+ Za as EmbeddedChatPrimitiveTaglineText,
1503
+ Go as EmbeddedChatPrimitiveToolbarHeader,
1504
+ qo as EmbeddedChatPrimitiveToolbarHeaderWrapper,
1505
+ Qo as EmbeddedChatPrimitiveWrapper,
1506
+ ua as ExampleQuestion,
1507
+ ha as ExampleQuestionButton,
1508
+ ca as ExampleQuestions,
1509
+ ma as ExampleQuestionsLabel,
1510
+ la as ExampleQuestionsList,
1511
+ Cr as FeedbackForm,
1512
+ br as FeedbackItem,
1513
+ pr as FeedbackItemCheckbox,
1514
+ gr as FeedbackItemCheckboxIndicator,
1515
+ Fr as FeedbackItemDescription,
1516
+ vr as FeedbackItemLabel,
1517
+ dr as FeedbackModal,
1518
+ hr as FeedbackModalBody,
1519
+ ur as FeedbackModalClose,
1520
+ mr as FeedbackModalContent,
1521
+ lr as FeedbackModalHeader,
1522
+ cr as FeedbackModalOverlay,
1523
+ _r as FeedbackSubmitButton,
1524
+ Fn as FileContent,
1525
+ _n as FileInput,
1526
+ Pn as FileItem,
1527
+ fn as FileList,
1528
+ In as FileName,
1529
+ En as FilePreviewTrigger,
1530
+ Sn as FileRemove,
1531
+ Mn as FileRemoveIcon,
1532
+ kn as FileThumbnail,
1533
+ yn as FileTypeIcon,
1534
+ An as FileUploadButton,
1535
+ xn as FileUploadButtonIcon,
1536
+ Ua as Footer,
1537
+ fr as Form,
1538
+ dn as FormCancel,
1539
+ Ir as FormClose,
1540
+ kr as FormContent,
1541
+ Mr as FormDescription,
1542
+ nn as FormError,
1543
+ yr as FormField,
1544
+ Lr as FormFieldCheckbox,
1545
+ wr as FormFieldCheckboxIndicator,
1546
+ $r as FormFieldCombobox,
1547
+ Gr as FormFieldComboboxContent,
1548
+ Kr as FormFieldComboboxControl,
1549
+ qr as FormFieldComboboxInput,
1550
+ Jr as FormFieldComboboxItem,
1551
+ en as FormFieldComboboxItemIndicator,
1552
+ Xr as FormFieldComboboxItemText,
1553
+ Zr as FormFieldComboboxList,
1554
+ on as FormFieldComboboxListEmpty,
1555
+ tn as FormFieldComboboxListItems,
1556
+ Yr as FormFieldComboboxPositioner,
1557
+ zr as FormFieldComboboxSelectedTags,
1558
+ jr as FormFieldComboboxTrigger,
1559
+ an as FormFieldDescription,
1560
+ xr as FormFieldEmail,
1561
+ rn as FormFieldError,
1562
+ Tr as FormFieldFile,
1563
+ Ar as FormFieldLabel,
1564
+ Dr as FormFieldSelect,
1565
+ Or as FormFieldSelectContent,
1566
+ Rr as FormFieldSelectIcon,
1567
+ Wr as FormFieldSelectItem,
1568
+ Ur as FormFieldSelectItemIndicator,
1569
+ Qr as FormFieldSelectItemText,
1570
+ Br as FormFieldSelectTrigger,
1571
+ Nr as FormFieldSelectValue,
1572
+ Vr as FormFieldSelectViewport,
1573
+ he as FormFieldText,
1574
+ Hr as FormFieldTextArea,
1575
+ sn as FormFooter,
1576
+ Er as FormHeader,
1577
+ Sr as FormHeading,
1578
+ cn as FormSubmit,
1579
+ mn as FormSuccess,
1580
+ hn as FormSuccessButton,
1581
+ ln as FormSuccessHeading,
1582
+ un as FormSuccessMessage,
1583
+ Pr as FormWrapper,
1584
+ $o as Header,
1585
+ Ko as HeaderToolbar,
1586
+ qo as HeaderToolbarWrapper,
1587
+ tr as HelpActions,
1588
+ ar as HelpActionsMenu,
1589
+ rr as HelpActionsMenuArrow,
1590
+ nr as HelpActionsMenuItem,
1591
+ sr as HelpActionsMenuItemIcon,
1592
+ or as HelpActionsTrigger,
1593
+ Wn as ImagePreviewModal,
1594
+ Qn as ImagePreviewModalClose,
1595
+ Un as ImagePreviewModalContent,
1596
+ $n as ImagePreviewModalFileName,
1597
+ Kn as ImagePreviewModalFooter,
1598
+ qn as ImagePreviewModalImage,
1599
+ jn as ImagePreviewModalOverlay,
1600
+ Ka as Input,
1601
+ Tn as InputFieldset,
1602
+ $a as InputGroup,
1603
+ Hn as InputNotification,
1604
+ Ln as InputNotificationClose,
1605
+ wn as InputNotificationContent,
1606
+ Dn as InputNotificationHeader,
1607
+ Bn as InputNotificationMessage,
1608
+ Nn as InputNotificationTitle,
1609
+ Ca as IntroMessageWrapper,
1610
+ Ea as Markdown,
1611
+ xa as MessageAction,
1612
+ ga as MessageAvatar,
1613
+ va as MessageAvatarContent,
1614
+ Fa as MessageAvatarFallback,
1615
+ _a as MessageAvatarImage,
1616
+ Ia as MessageContent,
1617
+ fa as MessageContentWrapper,
1618
+ Aa as MessageCustomAction,
1619
+ ya as MessageCustomActions,
1620
+ Rn as MessageFile,
1621
+ On as MessageFiles,
1622
+ ba as MessageHeader,
1623
+ pa as MessageLoading,
1624
+ Pa as MessageName,
1625
+ wa as MessageSourceItem,
1626
+ Ba as MessageSourceItemBreadcrumbIcon,
1627
+ Da as MessageSourceItemBreadcrumbs,
1628
+ Va as MessageSourceItemDescription,
1629
+ Wa as MessageSourceItemDescriptionPart,
1630
+ Na as MessageSourceItemIcon,
1631
+ Qa as MessageSourceItemIndicator,
1632
+ Oa as MessageSourceItemTag,
1633
+ Ra as MessageSourceItemTitle,
1634
+ Ta as MessageSources,
1635
+ Ha as MessageSourcesHeader,
1636
+ La as MessageSourcesList,
1637
+ ka as MessageToolbar,
1638
+ Lt as MessageWrapper,
1639
+ ia as Messages,
1640
+ Ma as PrimitiveMessagePart,
1641
+ pn as Provider,
1642
+ Uo as Root,
1643
+ qa as SendButton,
1644
+ ja as SendButtonIcon,
1645
+ Xa as TaglineBrandName,
1646
+ Ya as TaglineContainer,
1647
+ Ja as TaglineLogo,
1648
+ Za as TaglineText,
1649
+ Go as ToolbarHeader,
1650
+ Qo as Wrapper
2053
1651
  };