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