@inkeep/cxkit-primitives 0.5.1 → 0.5.3

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