@inkeep/cxkit-primitives 0.5.90 → 0.5.92

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