@inkeep/agents-ui 0.15.11 → 0.15.13

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