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