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