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

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