@inkeep/agents-ui 0.15.2 → 0.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -1
- package/dist/primitives/components/embedded-chat/use-chat-action.d.ts +1 -1
- package/dist/primitives/components/embedded-chat/use-chat-action.js +20 -17
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +2 -2
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +0 -1
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +61 -62
- package/dist/primitives/components/embedded-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat.d.ts +16 -10
- package/dist/primitives/components/embedded-chat.js +420 -427
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/primitives/utils/component-ids.cjs +1 -1
- package/dist/primitives/utils/component-ids.d.ts +4 -4
- package/dist/primitives/utils/component-ids.js +2 -2
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +19 -13
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.d.ts +3 -3
- package/dist/styled/components/embedded-chat.js +29 -29
- package/dist/types/config/ai.d.ts +10 -3
- package/dist/types/config/settings/actions.d.ts +13 -4
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import * as T from "@radix-ui/react-popover";
|
|
|
9
9
|
import * as w from "@radix-ui/react-tooltip";
|
|
10
10
|
import * as W from "@radix-ui/react-scroll-area";
|
|
11
11
|
import { ItemText as Me, Trigger as Ie, Icon as Ee, Content as Se, Viewport as ke, Item as Be, ItemIndicator as ye, Root as Te, Value as we } from "../atoms/select.js";
|
|
12
|
-
import { Overlay as ie, Content as ae, Close as ne, Title as re, Root as
|
|
12
|
+
import { Overlay as ie, Content as ae, Close as ne, Title as re, Root as se } from "../atoms/dialog.js";
|
|
13
13
|
import He from "../atoms/avatars/ai.js";
|
|
14
14
|
import Le from "../atoms/avatars/user.js";
|
|
15
15
|
import { CustomIcon as I } from "../atoms/icons/custom-icon.js";
|
|
@@ -20,22 +20,22 @@ import { AttachmentItemProvider as pe, useAttachmentItem as q } from "../provide
|
|
|
20
20
|
import { useAttachmentsBar as k, AttachmentsBarProvider as De } from "../providers/attachments-bar-provider.js";
|
|
21
21
|
import { SourceItemProvider as Oe, useSourceItem as L } from "../providers/source-item-provider.js";
|
|
22
22
|
import { useInkeepConfig as p } from "../providers/config-provider.js";
|
|
23
|
-
import { useMessageFeedback as
|
|
23
|
+
import { useMessageFeedback as oe } from "../providers/feedback-provider.js";
|
|
24
24
|
import { MessageAttachmentsProvider as We, useMessageAttachments as j } from "../providers/message-attachments-provider.js";
|
|
25
|
-
import { useMessage as
|
|
25
|
+
import { useMessage as A, MessageProvider as Re } from "../providers/message-provider.js";
|
|
26
26
|
import { CheckboxIcon as ve } from "../atoms/icons/checkbox-icon.js";
|
|
27
27
|
import { useCopyToClipboard as X } from "../hooks/use-copy-to-clipboard.js";
|
|
28
28
|
import { FeedbackItemProvider as Ne, useFeedbackItem as ce } from "../providers/feedback-item-provider.js";
|
|
29
29
|
import { maybeRender as y, dataAttr as g, getInitials as Ve, getMessageContent as ge } from "../utils/misc.js";
|
|
30
30
|
import { ikp as a } from "./factory.js";
|
|
31
31
|
import { useChat as b } from "./embedded-chat/chat-provider.js";
|
|
32
|
-
import { ChatProvider as
|
|
32
|
+
import { ChatProvider as so } from "./embedded-chat/chat-provider.js";
|
|
33
33
|
import $e from "./tagline-logo-icon.js";
|
|
34
34
|
import { useSettleAction as Qe } from "../hooks/use-settle-action.js";
|
|
35
35
|
import { useContainerSize as Ue } from "../hooks/use-container-size.js";
|
|
36
36
|
import { useChatAction as de } from "./embedded-chat/use-chat-action.js";
|
|
37
37
|
import { useHelpMenuState as Ke, HelpMenuProvider as qe, useHelpMenu as je } from "../providers/help-menu-provider.js";
|
|
38
|
-
import { useChatForm as
|
|
38
|
+
import { useChatForm as P } from "../providers/chat-form-provider.js";
|
|
39
39
|
import { useFormField as x, FormFieldProvider as ze } from "../providers/form-field-provider.js";
|
|
40
40
|
import { Controller as Ge } from "react-hook-form";
|
|
41
41
|
import { highlightEmphasis as Ye } from "../utils/highlight-emphasis.js";
|
|
@@ -50,35 +50,35 @@ import { useWidgetAutoFocus as it } from "./modal/widget-auto-focus.js";
|
|
|
50
50
|
import { useBaseEvents as le } from "../providers/base-events-provider.js";
|
|
51
51
|
import { useShadow as at } from "../atoms/shadow/context.js";
|
|
52
52
|
import { getIcon as nt } from "../utils/get-source-icon.js";
|
|
53
|
-
const rt = "__intro__",
|
|
53
|
+
const rt = "__intro__", st = a("div", {
|
|
54
54
|
_id: "aiChatWrapper"
|
|
55
55
|
}), tn = Q((t, e) => {
|
|
56
|
-
const { ...i } = t, { isHidden: r, isMobile:
|
|
56
|
+
const { ...i } = t, { isHidden: r, isMobile: s } = b(), [o, c] = Ue(), d = me(e, o), m = c?.width ? c.width > 580 : !0, l = Je();
|
|
57
57
|
return /* @__PURE__ */ n(
|
|
58
|
-
|
|
58
|
+
st,
|
|
59
59
|
{
|
|
60
60
|
ref: d,
|
|
61
61
|
"data-widget-md": g(m),
|
|
62
62
|
"data-hidden": g(r),
|
|
63
63
|
"data-in-modal": g(!!l),
|
|
64
|
-
"data-mobile": g(
|
|
64
|
+
"data-mobile": g(s),
|
|
65
65
|
...i
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
|
-
}),
|
|
68
|
+
}), ot = a("div", {
|
|
69
69
|
_id: "aiChatRoot"
|
|
70
70
|
}), an = (t) => {
|
|
71
|
-
const { isHidden: e } = b(), { form: i } =
|
|
72
|
-
return i ? null : /* @__PURE__ */ n(
|
|
71
|
+
const { isHidden: e } = b(), { form: i } = P();
|
|
72
|
+
return i ? null : /* @__PURE__ */ n(ot, { "data-hidden": g(e), ...t });
|
|
73
73
|
}, nn = a("div", {
|
|
74
74
|
_id: "aiChatHeader"
|
|
75
75
|
}), rn = a("div", {
|
|
76
76
|
_id: "aiChatHeader__Toolbar"
|
|
77
|
-
}),
|
|
77
|
+
}), sn = a("div", {
|
|
78
78
|
_id: "aiChatHeader__ToolbarHeaderWrapper"
|
|
79
79
|
}), ct = a("div", {
|
|
80
80
|
_id: "aiChatHeader__ToolbarHeader"
|
|
81
|
-
}),
|
|
81
|
+
}), on = E(
|
|
82
82
|
(t) => {
|
|
83
83
|
const { aiChatSettings: e } = p(), i = `Ask ${e.aiAssistantName || "AI"}`;
|
|
84
84
|
return /* @__PURE__ */ n(ct, { ...t, children: i });
|
|
@@ -90,13 +90,13 @@ const rt = "__intro__", ot = a("div", {
|
|
|
90
90
|
}), dt = a(W.Viewport, {
|
|
91
91
|
_id: "aiChatContentScrollArea__Viewport"
|
|
92
92
|
}), mn = Q(({ children: t, ...e }, i) => {
|
|
93
|
-
const { containerRef: r, scrollToBottom:
|
|
93
|
+
const { containerRef: r, scrollToBottom: s } = Ze(), o = me(i, r), { messages: c } = b();
|
|
94
94
|
return V(() => {
|
|
95
|
-
c.length > 0 &&
|
|
96
|
-
}, [c.length,
|
|
95
|
+
c.length > 0 && s();
|
|
96
|
+
}, [c.length, s]), /* @__PURE__ */ n(
|
|
97
97
|
dt,
|
|
98
98
|
{
|
|
99
|
-
ref:
|
|
99
|
+
ref: o,
|
|
100
100
|
children: (
|
|
101
101
|
/* added this to fix an overflow issue see https://github.com/radix-ui/primitives/issues/926 */
|
|
102
102
|
/* @__PURE__ */ n("div", { "data-part": "grid", style: { display: "grid" }, children: t })
|
|
@@ -125,8 +125,8 @@ const rt = "__intro__", ot = a("div", {
|
|
|
125
125
|
_id: "aiChatDisclaimer"
|
|
126
126
|
}), pn = E(
|
|
127
127
|
(t) => {
|
|
128
|
-
const { aiChatSettings: e } = p(), [i, r] = N(!1),
|
|
129
|
-
return e.disclaimerSettings?.isEnabled ? /* @__PURE__ */ n(tt, { open: i, setOpen: r, children: /* @__PURE__ */ n(T.Root, { open:
|
|
128
|
+
const { aiChatSettings: e } = p(), [i, r] = N(!1), s = et(i, 100);
|
|
129
|
+
return e.disclaimerSettings?.isEnabled ? /* @__PURE__ */ n(tt, { open: i, setOpen: r, children: /* @__PURE__ */ n(T.Root, { open: s, onOpenChange: r, children: /* @__PURE__ */ n(lt, { ...t }) }) }) : null;
|
|
130
130
|
}
|
|
131
131
|
), ht = a("span", {
|
|
132
132
|
_id: "aiChatDisclaimerLabel"
|
|
@@ -170,8 +170,8 @@ const rt = "__intro__", ot = a("div", {
|
|
|
170
170
|
_id: "aiChatDisclaimerText"
|
|
171
171
|
}), _n = E(
|
|
172
172
|
(t) => {
|
|
173
|
-
const { aiChatSettings: e } = p(), i = e.aiAssistantName,
|
|
174
|
-
return /* @__PURE__ */ n(pt, { shouldOpenLinksInNewTab: !0, children:
|
|
173
|
+
const { aiChatSettings: e } = p(), i = e.aiAssistantName, s = e.disclaimerSettings?.tooltip || `Information provided by ${i || "this AI assistant"} is not guaranteed to be accurate or comprehensive.`;
|
|
174
|
+
return /* @__PURE__ */ n(pt, { shouldOpenLinksInNewTab: !0, children: s, ...t });
|
|
175
175
|
}
|
|
176
176
|
), An = a(T.Arrow, {
|
|
177
177
|
_id: "aiChatDisclaimerArrow"
|
|
@@ -191,8 +191,8 @@ const rt = "__intro__", ot = a("div", {
|
|
|
191
191
|
_id: "aiChatExampleQuestionsList"
|
|
192
192
|
}), fn = E(
|
|
193
193
|
(t) => {
|
|
194
|
-
const { aiChatSettings: e } = p(), i = e.exampleQuestions, { children: r, ...
|
|
195
|
-
return /* @__PURE__ */ n(bt, { children: y(r, i), ...
|
|
194
|
+
const { aiChatSettings: e } = p(), i = e.exampleQuestions, { children: r, ...s } = t;
|
|
195
|
+
return /* @__PURE__ */ n(bt, { children: y(r, i), ...s });
|
|
196
196
|
}
|
|
197
197
|
), _t = a("div", {
|
|
198
198
|
_id: "aiChatExampleQuestion"
|
|
@@ -202,12 +202,12 @@ const rt = "__intro__", ot = a("div", {
|
|
|
202
202
|
}), At = a("button", {
|
|
203
203
|
_id: "aiChatExampleQuestionButton"
|
|
204
204
|
}), In = (t) => {
|
|
205
|
-
const { question: e, onClick: i, ...r } = t, { handleSubmit:
|
|
205
|
+
const { question: e, onClick: i, ...r } = t, s = typeof e == "object" ? e.value : e, o = typeof e == "object" ? e.label : e, { handleSubmit: c } = b();
|
|
206
206
|
return /* @__PURE__ */ n(
|
|
207
207
|
At,
|
|
208
208
|
{
|
|
209
|
-
onClick: h(i, () =>
|
|
210
|
-
children:
|
|
209
|
+
onClick: h(i, () => c(s)),
|
|
210
|
+
children: o,
|
|
211
211
|
...r
|
|
212
212
|
}
|
|
213
213
|
);
|
|
@@ -225,18 +225,18 @@ const rt = "__intro__", ot = a("div", {
|
|
|
225
225
|
_id: "aiChatWorkflowsList"
|
|
226
226
|
}), kn = E(
|
|
227
227
|
(t) => {
|
|
228
|
-
const { aiChatSettings: e } = p(), i = e.workflows, { children: r, ...
|
|
229
|
-
return /* @__PURE__ */ n(ft, { children: y(r, i), ...
|
|
228
|
+
const { aiChatSettings: e } = p(), i = e.workflows, { children: r, ...s } = t;
|
|
229
|
+
return /* @__PURE__ */ n(ft, { children: y(r, i), ...s });
|
|
230
230
|
}
|
|
231
231
|
), Mt = a("button", {
|
|
232
232
|
_id: "aiChatWorkflow"
|
|
233
233
|
}), Bn = (t) => {
|
|
234
|
-
const { workflow: e, onClick: i, ...r } = t,
|
|
234
|
+
const { workflow: e, onClick: i, ...r } = t, s = (o) => {
|
|
235
235
|
};
|
|
236
236
|
return /* @__PURE__ */ n(
|
|
237
237
|
Mt,
|
|
238
238
|
{
|
|
239
|
-
onClick: h(i, () =>
|
|
239
|
+
onClick: h(i, () => s()),
|
|
240
240
|
children: e.displayName,
|
|
241
241
|
...r
|
|
242
242
|
}
|
|
@@ -248,22 +248,22 @@ const rt = "__intro__", ot = a("div", {
|
|
|
248
248
|
return e.role === "system" ? null : /* @__PURE__ */ n(Re, { message: e, children: /* @__PURE__ */ n(It, { "data-role": e.role, ...i }) });
|
|
249
249
|
}, yn = E(
|
|
250
250
|
(t) => {
|
|
251
|
-
const { message: e, ...i } = t, { aiChatSettings: r, baseSettings:
|
|
251
|
+
const { message: e, ...i } = t, { aiChatSettings: r, baseSettings: s } = p(), o = r.aiAssistantName, c = o ? `Hi, I'm ${o}!` : "Hi!", d = r.chatSubjectName ?? s.organizationDisplayName, m = d ? `
|
|
252
252
|
|
|
253
253
|
Ask me anything about \`${d}\`.` : `
|
|
254
254
|
|
|
255
|
-
How can I help?`,
|
|
255
|
+
How can I help?`, u = {
|
|
256
256
|
parts: [{ type: "text", text: r.introMessage ?? `${c}${m}` }],
|
|
257
257
|
id: rt,
|
|
258
258
|
...e,
|
|
259
259
|
role: "assistant"
|
|
260
260
|
};
|
|
261
|
-
return /* @__PURE__ */ n(Et, { message:
|
|
261
|
+
return /* @__PURE__ */ n(Et, { message: u, ...i });
|
|
262
262
|
}
|
|
263
263
|
), St = a("div", {
|
|
264
264
|
_id: "aiChatMessageHeader"
|
|
265
265
|
}), Tn = (t) => {
|
|
266
|
-
const { message: e } =
|
|
266
|
+
const { message: e } = A();
|
|
267
267
|
return /* @__PURE__ */ n(St, { "data-role": e.role, ...t });
|
|
268
268
|
}, kt = a("div", {
|
|
269
269
|
_id: "aiChatMessageLoading",
|
|
@@ -271,12 +271,12 @@ const rt = "__intro__", ot = a("div", {
|
|
|
271
271
|
}), wn = (t) => /* @__PURE__ */ n(kt, { ...t }), Bt = a("div", {
|
|
272
272
|
_id: "aiChatMessageAvatar"
|
|
273
273
|
}), Hn = (t) => {
|
|
274
|
-
const { message: e } =
|
|
274
|
+
const { message: e } = A();
|
|
275
275
|
return /* @__PURE__ */ n(Bt, { "data-role": e.role, ...t });
|
|
276
276
|
}, yt = a(te.Root, {
|
|
277
277
|
_id: "aiChatMessageAvatarContent"
|
|
278
278
|
}), Ln = (t) => {
|
|
279
|
-
const { message: e } =
|
|
279
|
+
const { message: e } = A(), { baseSettings: i } = p();
|
|
280
280
|
return /* @__PURE__ */ n(
|
|
281
281
|
yt,
|
|
282
282
|
{
|
|
@@ -289,7 +289,7 @@ const rt = "__intro__", ot = a("div", {
|
|
|
289
289
|
_id: "aiChatMessageAvatarFallback"
|
|
290
290
|
}), xn = E(
|
|
291
291
|
(t) => {
|
|
292
|
-
const { baseSettings: e } = p(), { message: i } =
|
|
292
|
+
const { baseSettings: e } = p(), { message: i } = A();
|
|
293
293
|
return e.userProperties.name ? /* @__PURE__ */ n(
|
|
294
294
|
Tt,
|
|
295
295
|
{
|
|
@@ -305,20 +305,20 @@ const rt = "__intro__", ot = a("div", {
|
|
|
305
305
|
(t) => {
|
|
306
306
|
const { onLoadingStatusChange: e, ...i } = t, {
|
|
307
307
|
aiChatSettings: r,
|
|
308
|
-
baseSettings: { userProperties:
|
|
309
|
-
} = p(), { message:
|
|
308
|
+
baseSettings: { userProperties: s }
|
|
309
|
+
} = p(), { message: o } = A(), { aiAssistantAvatar: c } = r ?? {}, d = typeof c == "string" ? c : c?.light, m = (typeof c == "string" ? c : c?.dark) ?? d, l = Xe(d, m), [u, v] = N(l);
|
|
310
310
|
V(() => {
|
|
311
311
|
v(l);
|
|
312
312
|
}, [l]);
|
|
313
|
-
const
|
|
313
|
+
const C = (_) => {
|
|
314
314
|
_ === "error" && v(null);
|
|
315
315
|
};
|
|
316
|
-
return
|
|
316
|
+
return o.role === "user" ? s.name ? null : r.userAvatar ? /* @__PURE__ */ n(
|
|
317
317
|
ue,
|
|
318
318
|
{
|
|
319
319
|
"data-type": "image",
|
|
320
320
|
alt: "User avatar",
|
|
321
|
-
"data-role":
|
|
321
|
+
"data-role": o.role,
|
|
322
322
|
src: r.userAvatar,
|
|
323
323
|
...t
|
|
324
324
|
}
|
|
@@ -326,19 +326,19 @@ const rt = "__intro__", ot = a("div", {
|
|
|
326
326
|
Le,
|
|
327
327
|
{
|
|
328
328
|
"data-type": "icon",
|
|
329
|
-
"data-role":
|
|
329
|
+
"data-role": o.role,
|
|
330
330
|
...t
|
|
331
331
|
}
|
|
332
|
-
) :
|
|
332
|
+
) : u ? /* @__PURE__ */ n(
|
|
333
333
|
ue,
|
|
334
334
|
{
|
|
335
|
-
src:
|
|
335
|
+
src: u,
|
|
336
336
|
alt: "AI assistant avatar",
|
|
337
337
|
"data-type": "image",
|
|
338
|
-
"data-role":
|
|
338
|
+
"data-role": o.role,
|
|
339
339
|
onLoadingStatusChange: h(
|
|
340
340
|
e,
|
|
341
|
-
|
|
341
|
+
C
|
|
342
342
|
),
|
|
343
343
|
...i
|
|
344
344
|
}
|
|
@@ -346,7 +346,7 @@ const rt = "__intro__", ot = a("div", {
|
|
|
346
346
|
He,
|
|
347
347
|
{
|
|
348
348
|
"data-type": "icon",
|
|
349
|
-
"data-role":
|
|
349
|
+
"data-role": o.role,
|
|
350
350
|
...t
|
|
351
351
|
}
|
|
352
352
|
);
|
|
@@ -354,36 +354,29 @@ const rt = "__intro__", ot = a("div", {
|
|
|
354
354
|
), wt = a("span", {
|
|
355
355
|
_id: "aiChatMessageName"
|
|
356
356
|
}), On = (t) => {
|
|
357
|
-
const { message: e } =
|
|
357
|
+
const { message: e } = A(), { aiChatSettings: i } = p(), { aiAssistantName: r } = i;
|
|
358
358
|
return /* @__PURE__ */ n(
|
|
359
359
|
wt,
|
|
360
360
|
{
|
|
361
361
|
"data-role": e.role,
|
|
362
|
-
children: e.role === "user" ? "You" : "AI assistant",
|
|
362
|
+
children: e.role === "user" ? "You" : r || "AI assistant",
|
|
363
363
|
...t
|
|
364
364
|
}
|
|
365
365
|
);
|
|
366
366
|
}, Ht = a("div", {
|
|
367
367
|
_id: "aiChatMessageContentWrapper"
|
|
368
368
|
}), Wn = (t) => {
|
|
369
|
-
const { message: e } =
|
|
370
|
-
return /* @__PURE__ */ n(
|
|
371
|
-
Ht,
|
|
372
|
-
{
|
|
373
|
-
"data-role": e.role,
|
|
374
|
-
"data-has-message-buttons": g(!!r.length),
|
|
375
|
-
...t
|
|
376
|
-
}
|
|
377
|
-
);
|
|
369
|
+
const { message: e } = A();
|
|
370
|
+
return /* @__PURE__ */ n(Ht, { "data-role": e.role, ...t });
|
|
378
371
|
}, Lt = a("div", {
|
|
379
372
|
_id: "aiChatMessageContent"
|
|
380
373
|
}), Rn = (t) => {
|
|
381
|
-
const { message: e } =
|
|
374
|
+
const { message: e } = A();
|
|
382
375
|
return /* @__PURE__ */ n(Lt, { "data-role": e.role, ...t });
|
|
383
376
|
}, xt = a("div", {
|
|
384
377
|
_id: "aiChatMessageAttachments"
|
|
385
378
|
}), Nn = (t) => {
|
|
386
|
-
const { message: e } =
|
|
379
|
+
const { message: e } = A(), i = [];
|
|
387
380
|
return e.role !== "user" || !i?.length ? null : /* @__PURE__ */ n(We, { children: /* @__PURE__ */ n(xt, { ...t }) });
|
|
388
381
|
}, Dt = a("div", {
|
|
389
382
|
_id: "aiChatMessageAttachments__List"
|
|
@@ -393,12 +386,12 @@ const rt = "__intro__", ot = a("div", {
|
|
|
393
386
|
}, Ot = a("div", {
|
|
394
387
|
_id: "aiChatMessageAttachments__Item"
|
|
395
388
|
}), $n = (t) => {
|
|
396
|
-
const { attachment: e, onClick: i, ...r } = t, { selectItem:
|
|
389
|
+
const { attachment: e, onClick: i, ...r } = t, { selectItem: s, onOpen: o } = j();
|
|
397
390
|
return /* @__PURE__ */ n(pe, { attachment: e, children: /* @__PURE__ */ n(
|
|
398
391
|
Ot,
|
|
399
392
|
{
|
|
400
393
|
onClick: h(i, () => {
|
|
401
|
-
|
|
394
|
+
s(e), o();
|
|
402
395
|
}),
|
|
403
396
|
...r
|
|
404
397
|
}
|
|
@@ -413,16 +406,16 @@ const rt = "__intro__", ot = a("div", {
|
|
|
413
406
|
}), Un = (t) => {
|
|
414
407
|
const { attachment: e } = q();
|
|
415
408
|
return /* @__PURE__ */ n(Rt, { children: e.title, ...t });
|
|
416
|
-
}, Nt = a(
|
|
409
|
+
}, Nt = a(se, {
|
|
417
410
|
_id: "aiChatMessageAttachmentsPreview"
|
|
418
411
|
}), Kn = (t) => {
|
|
419
|
-
const { onOpenChange: e, ...i } = t, { selectItem: r, isOpen:
|
|
412
|
+
const { onOpenChange: e, ...i } = t, { selectItem: r, isOpen: s, onClose: o, selectedItem: c } = j();
|
|
420
413
|
return /* @__PURE__ */ n(
|
|
421
414
|
Nt,
|
|
422
415
|
{
|
|
423
|
-
open:
|
|
416
|
+
open: s && c !== null,
|
|
424
417
|
onOpenChange: h(e, (m) => {
|
|
425
|
-
m || (
|
|
418
|
+
m || (o(), r(null));
|
|
426
419
|
}),
|
|
427
420
|
...i
|
|
428
421
|
}
|
|
@@ -452,13 +445,13 @@ const rt = "__intro__", ot = a("div", {
|
|
|
452
445
|
const { selectedItem: e } = j();
|
|
453
446
|
return /* @__PURE__ */ n($t, { children: e?.content, ...t });
|
|
454
447
|
}, Jn = (t) => {
|
|
455
|
-
const { text: e, componentStyles: i, ...r } = t, { aiChatSettings:
|
|
448
|
+
const { text: e, componentStyles: i, ...r } = t, { aiChatSettings: s } = p(), { shouldOpenLinksInNewTab: o } = s;
|
|
456
449
|
return /* @__PURE__ */ n(
|
|
457
450
|
K,
|
|
458
451
|
{
|
|
459
452
|
children: e,
|
|
460
453
|
componentStyles: i,
|
|
461
|
-
shouldOpenLinksInNewTab:
|
|
454
|
+
shouldOpenLinksInNewTab: o,
|
|
462
455
|
...r
|
|
463
456
|
}
|
|
464
457
|
);
|
|
@@ -467,31 +460,31 @@ const rt = "__intro__", ot = a("div", {
|
|
|
467
460
|
props: e,
|
|
468
461
|
componentDef: i
|
|
469
462
|
}) => {
|
|
470
|
-
const
|
|
463
|
+
const s = at()?.shadowHost, o = O(void 0), c = O(null), d = O(null), m = O(!1), [l, u] = N(!1), [v, C] = N(!1), _ = O(i);
|
|
471
464
|
Ce(() => {
|
|
472
465
|
i !== _.current && (typeof i == "function" && typeof _.current == "function" ? i.toString() !== _.current.toString() && (_.current = i) : _.current = i);
|
|
473
466
|
}, [i]);
|
|
474
467
|
const B = _.current;
|
|
475
468
|
return V(() => {
|
|
476
|
-
|
|
469
|
+
o.current || (o.current = `dyn:${t}:${crypto.randomUUID()}`, u(!0));
|
|
477
470
|
}, [t]), Fe(() => {
|
|
478
|
-
if (!B || !
|
|
471
|
+
if (!B || !s || !l || !o.current)
|
|
479
472
|
return;
|
|
480
|
-
const
|
|
481
|
-
return
|
|
482
|
-
m.current = !0,
|
|
473
|
+
const F = o.current, f = document.createElement("div");
|
|
474
|
+
return f.setAttribute("data-ikp-component", ""), f.setAttribute("data-component", t), f.setAttribute("slot", F), c.current = f, m.current = !1, s.appendChild(f), C(!0), () => {
|
|
475
|
+
m.current = !0, C(!1), queueMicrotask(() => {
|
|
483
476
|
try {
|
|
484
477
|
d.current && (d.current.unmount(), d.current = null);
|
|
485
478
|
} catch (M) {
|
|
486
479
|
console.debug("Ignoring unmount error:", M);
|
|
487
480
|
}
|
|
488
|
-
|
|
481
|
+
f.parentNode === s && f.remove(), c.current = null;
|
|
489
482
|
});
|
|
490
483
|
};
|
|
491
|
-
}, [B,
|
|
492
|
-
const
|
|
493
|
-
if (!
|
|
494
|
-
const
|
|
484
|
+
}, [B, s, l, t]), V(() => {
|
|
485
|
+
const F = c.current;
|
|
486
|
+
if (!F || m.current) return;
|
|
487
|
+
const f = (S) => {
|
|
495
488
|
if (typeof S != "function" || S.length > 1) return !1;
|
|
496
489
|
try {
|
|
497
490
|
if (typeof S == "function" && S.constructor === Function) {
|
|
@@ -504,7 +497,7 @@ const rt = "__intro__", ot = a("div", {
|
|
|
504
497
|
}
|
|
505
498
|
};
|
|
506
499
|
let M;
|
|
507
|
-
if (
|
|
500
|
+
if (f(B))
|
|
508
501
|
try {
|
|
509
502
|
const S = B;
|
|
510
503
|
M = J.createElement(S, e || {});
|
|
@@ -513,46 +506,46 @@ const rt = "__intro__", ot = a("div", {
|
|
|
513
506
|
return;
|
|
514
507
|
}
|
|
515
508
|
else if (typeof B == "function")
|
|
516
|
-
M = B(e || {},
|
|
509
|
+
M = B(e || {}, F, null);
|
|
517
510
|
else {
|
|
518
511
|
console.error("Invalid component definition");
|
|
519
512
|
return;
|
|
520
513
|
}
|
|
521
514
|
if (J.isValidElement(M) || typeof M == "string") {
|
|
522
515
|
if (m.current) return;
|
|
523
|
-
d.current || (d.current = fe.createRoot(
|
|
516
|
+
d.current || (d.current = fe.createRoot(F)), !m.current && d.current && d.current.render(M);
|
|
524
517
|
return;
|
|
525
518
|
}
|
|
526
519
|
d.current && !m.current && d.current.render(null);
|
|
527
|
-
}, [i, e, v]), /* @__PURE__ */ n("slot", { name:
|
|
520
|
+
}, [i, e, v]), /* @__PURE__ */ n("slot", { name: o.current });
|
|
528
521
|
}, Zn = a("div", {
|
|
529
522
|
_id: "aiChatMessagePart"
|
|
530
523
|
}), Qt = a("div", {
|
|
531
524
|
_id: "aiChatMessageToolbar"
|
|
532
525
|
}), er = (t) => {
|
|
533
|
-
const { isLoading: e, messages: i } = b(), { message: r } =
|
|
526
|
+
const { isLoading: e, messages: i } = b(), { message: r } = A();
|
|
534
527
|
return i.at(-1)?.id === r?.id && e || r.role === "user" ? null : /* @__PURE__ */ n(Qt, { ...t });
|
|
535
528
|
}, Ut = a("div", {
|
|
536
|
-
_id: "
|
|
529
|
+
_id: "aiChatMessageCustomActions"
|
|
537
530
|
}), tr = (t) => {
|
|
538
|
-
const { children: e, ...i } = t, {
|
|
539
|
-
return /* @__PURE__ */ n(Ut, { children: y(e,
|
|
531
|
+
const { children: e, ...i } = t, { aiChatSettings: r } = p(), { message: s } = A(), { isStreaming: o, messages: c } = b(), d = c.at(-1)?.id === s?.id, m = s.role === "assistant", l = r.messageActions || [];
|
|
532
|
+
return d && o || !m ? null : /* @__PURE__ */ n(Ut, { children: y(e, l), ...i });
|
|
540
533
|
}, Kt = a("a", {
|
|
541
|
-
_id: "
|
|
534
|
+
_id: "aiChatMessageCustomAction"
|
|
542
535
|
}), qt = a("button", {
|
|
543
|
-
_id: "
|
|
536
|
+
_id: "aiChatMessageCustomAction"
|
|
544
537
|
}), ir = (t) => {
|
|
545
|
-
const { onClick: e, action: i, ...r } = t, { handleAction: o } = de(i), { logEvent:
|
|
546
|
-
o(),
|
|
538
|
+
const { onClick: e, action: i, ...r } = t, { message: s } = A(), { handleAction: o } = de(i, s.id), { logEvent: c } = le(), { conversationId: d } = b(), m = () => {
|
|
539
|
+
o(), c({
|
|
547
540
|
eventName: "user_escalation_indicated",
|
|
548
541
|
properties: {
|
|
549
542
|
escalationType: "contact_us",
|
|
550
|
-
conversationId:
|
|
543
|
+
conversationId: d
|
|
551
544
|
}
|
|
552
545
|
});
|
|
553
|
-
},
|
|
546
|
+
}, l = i.label, u = /* @__PURE__ */ $(Z, { children: [
|
|
554
547
|
i.icon && /* @__PURE__ */ n(H, { iconSettings: i.icon }),
|
|
555
|
-
|
|
548
|
+
l
|
|
556
549
|
] });
|
|
557
550
|
return i.action.type === "open_link" ? /* @__PURE__ */ n(
|
|
558
551
|
Kt,
|
|
@@ -561,32 +554,32 @@ const rt = "__intro__", ot = a("div", {
|
|
|
561
554
|
target: "_blank",
|
|
562
555
|
rel: "noopener",
|
|
563
556
|
"data-type": i.action.type,
|
|
564
|
-
onClick: h(e,
|
|
565
|
-
children:
|
|
557
|
+
onClick: h(e, m),
|
|
558
|
+
children: u,
|
|
566
559
|
...r
|
|
567
560
|
}
|
|
568
561
|
) : /* @__PURE__ */ n(
|
|
569
562
|
qt,
|
|
570
563
|
{
|
|
571
564
|
"data-type": i.action.type,
|
|
572
|
-
onClick: h(e,
|
|
573
|
-
children:
|
|
565
|
+
onClick: h(e, m),
|
|
566
|
+
children: u,
|
|
574
567
|
...r
|
|
575
568
|
}
|
|
576
569
|
);
|
|
577
570
|
}, jt = a("button", {
|
|
578
571
|
_id: "aiChatMessageAction"
|
|
579
572
|
}), ar = (t) => {
|
|
580
|
-
const { action: e, onClick: i, className: r, ...
|
|
573
|
+
const { action: e, onClick: i, className: r, ...s } = t, { conversationId: o } = b(), {
|
|
581
574
|
baseSettings: { onFeedback: c }
|
|
582
|
-
} = p(), { message: d } =
|
|
575
|
+
} = p(), { message: d } = A(), { isStreaming: m, messages: l } = b(), [u, v] = X(), { feedback: C, submitPositiveFeedback: _, setCurrentFeedback: B, currentFeedback: F } = oe(), { logEvent: f } = le(), [M, S] = Qe(), D = l.at(-1)?.id === d?.id, z = d.role === "assistant";
|
|
583
576
|
if (D && m || !z) return null;
|
|
584
577
|
const R = {
|
|
585
578
|
copy() {
|
|
586
|
-
v(ge(d)),
|
|
579
|
+
v(ge(d)), f({
|
|
587
580
|
eventName: "assistant_message_copied",
|
|
588
581
|
properties: {
|
|
589
|
-
conversationId:
|
|
582
|
+
conversationId: o
|
|
590
583
|
}
|
|
591
584
|
});
|
|
592
585
|
},
|
|
@@ -603,17 +596,17 @@ const rt = "__intro__", ot = a("div", {
|
|
|
603
596
|
upvote: "Upvote Message",
|
|
604
597
|
downvote: "Downvote Message"
|
|
605
598
|
}, Y = {
|
|
606
|
-
copy: /* @__PURE__ */ n(I, { iconKey:
|
|
599
|
+
copy: /* @__PURE__ */ n(I, { iconKey: u ? "messageCopied" : "messageCopy" }),
|
|
607
600
|
upvote: /* @__PURE__ */ n(I, { iconKey: M ? "messageCopied" : "thumbsUp" }),
|
|
608
601
|
downvote: /* @__PURE__ */ n(I, { iconKey: "thumbsDown" })
|
|
609
602
|
}, Pe = {
|
|
610
|
-
copy: { "data-copied": g(
|
|
603
|
+
copy: { "data-copied": g(u) },
|
|
611
604
|
upvote: {
|
|
612
|
-
"data-upvoted": g(
|
|
605
|
+
"data-upvoted": g(C[d.id]?.type === "positive")
|
|
613
606
|
},
|
|
614
607
|
downvote: {
|
|
615
|
-
"data-downvoted": g(
|
|
616
|
-
"data-state":
|
|
608
|
+
"data-downvoted": g(C[d.id]?.type === "negative"),
|
|
609
|
+
"data-state": F === null ? "closed" : "open"
|
|
617
610
|
}
|
|
618
611
|
};
|
|
619
612
|
return {
|
|
@@ -629,13 +622,13 @@ const rt = "__intro__", ot = a("div", {
|
|
|
629
622
|
"aria-label": G[e],
|
|
630
623
|
className: `${r} ${e}`,
|
|
631
624
|
onClick: h(i, R[e]),
|
|
632
|
-
...
|
|
625
|
+
...s
|
|
633
626
|
}
|
|
634
627
|
);
|
|
635
628
|
}, zt = a("div", {
|
|
636
629
|
_id: "aiChatMessageSources"
|
|
637
630
|
}), nr = (t) => {
|
|
638
|
-
const { message: e } =
|
|
631
|
+
const { message: e } = A();
|
|
639
632
|
return e.role !== "assistant" || !e.parts.filter(
|
|
640
633
|
(r) => r.type === "data-artifact" && r.data?.type?.toLowerCase() === "citation"
|
|
641
634
|
)?.length ? null : /* @__PURE__ */ n(zt, { ...t });
|
|
@@ -643,9 +636,9 @@ const rt = "__intro__", ot = a("div", {
|
|
|
643
636
|
_id: "aiChatMessageSources__Header"
|
|
644
637
|
}), rr = (t) => /* @__PURE__ */ n(Gt, { children: "Sources", ...t }), Yt = a("div", {
|
|
645
638
|
_id: "aiChatMessageSources__List"
|
|
646
|
-
}),
|
|
647
|
-
const { message: e } =
|
|
648
|
-
baseSettings: { transformSource:
|
|
639
|
+
}), sr = (t) => {
|
|
640
|
+
const { message: e } = A(), { children: i, ...r } = t, {
|
|
641
|
+
baseSettings: { transformSource: s, organizationDisplayName: o },
|
|
649
642
|
aiChatSettings: { shouldOpenLinksInNewTab: c },
|
|
650
643
|
searchSettings: { tabs: d }
|
|
651
644
|
} = p();
|
|
@@ -654,38 +647,38 @@ const rt = "__intro__", ot = a("div", {
|
|
|
654
647
|
(v) => v.type === "data-artifact" && v.data?.type?.toLowerCase() === "citation"
|
|
655
648
|
);
|
|
656
649
|
if (!m?.length) return null;
|
|
657
|
-
const l = /* @__PURE__ */ new Map(),
|
|
658
|
-
const
|
|
659
|
-
return !
|
|
650
|
+
const l = /* @__PURE__ */ new Map(), u = m.filter((v) => {
|
|
651
|
+
const C = v.data.artifactSummary.url;
|
|
652
|
+
return !C || l.has(C) ? !1 : (l.set(C, !0), !0);
|
|
660
653
|
}).map((v) => {
|
|
661
|
-
const
|
|
662
|
-
id:
|
|
663
|
-
title:
|
|
664
|
-
url:
|
|
654
|
+
const C = v.data, _ = {
|
|
655
|
+
id: C?.artifactId,
|
|
656
|
+
title: C?.artifactSummary?.title || C?.name,
|
|
657
|
+
url: C?.artifactSummary?.url || "",
|
|
665
658
|
description: "",
|
|
666
659
|
breadcrumbs: [],
|
|
667
|
-
type:
|
|
668
|
-
contentType:
|
|
669
|
-
tag:
|
|
670
|
-
},
|
|
660
|
+
type: C?.artifactSummary?.record_type,
|
|
661
|
+
contentType: C?.artifactType,
|
|
662
|
+
tag: C?.artifactType
|
|
663
|
+
}, F = (s ?? ((M) => ({
|
|
671
664
|
...M,
|
|
672
665
|
shouldOpenInNewTab: c,
|
|
673
666
|
icon: nt(M)
|
|
674
667
|
})))(_, "chatSourceItem", {
|
|
675
|
-
organizationDisplayName:
|
|
668
|
+
organizationDisplayName: o,
|
|
676
669
|
tabs: d
|
|
677
|
-
}),
|
|
678
|
-
return { ...
|
|
670
|
+
}), f = F.shouldOpenInNewTab !== void 0 ? F.shouldOpenInNewTab : c;
|
|
671
|
+
return { ...F, isExternal: f };
|
|
679
672
|
});
|
|
680
|
-
return /* @__PURE__ */ n(Yt, { children: y(i,
|
|
673
|
+
return /* @__PURE__ */ n(Yt, { children: y(i, u), ...r });
|
|
681
674
|
}, Jt = a(xe, {
|
|
682
675
|
_id: "aiChatMessageSourceItem"
|
|
683
|
-
}),
|
|
684
|
-
const { source: e, onClick: i, ...r } = t, { logEvent:
|
|
685
|
-
|
|
676
|
+
}), or = (t) => {
|
|
677
|
+
const { source: e, onClick: i, ...r } = t, { logEvent: s } = le(), { conversationId: o } = b(), c = () => {
|
|
678
|
+
s({
|
|
686
679
|
eventName: "assistant_source_item_clicked",
|
|
687
680
|
properties: {
|
|
688
|
-
conversationId:
|
|
681
|
+
conversationId: o,
|
|
689
682
|
link: e
|
|
690
683
|
}
|
|
691
684
|
});
|
|
@@ -727,12 +720,12 @@ const rt = "__intro__", ot = a("div", {
|
|
|
727
720
|
}, ii = a("span", {
|
|
728
721
|
_id: "aiChatMessageSourceItem__Description"
|
|
729
722
|
}), ur = (t) => {
|
|
730
|
-
const { source: e } = L(), { children: i, ...r } = t,
|
|
731
|
-
return
|
|
723
|
+
const { source: e } = L(), { children: i, ...r } = t, s = Ce(() => e.description ? Ye(e.description) : [], [e.description]);
|
|
724
|
+
return s.length ? /* @__PURE__ */ n(
|
|
732
725
|
ii,
|
|
733
726
|
{
|
|
734
727
|
"data-type": e.type,
|
|
735
|
-
children: y(i,
|
|
728
|
+
children: y(i, s),
|
|
736
729
|
...r
|
|
737
730
|
}
|
|
738
731
|
) : null;
|
|
@@ -769,7 +762,7 @@ const rt = "__intro__", ot = a("div", {
|
|
|
769
762
|
}), ri = a("textarea", {
|
|
770
763
|
_id: "aiChatInput"
|
|
771
764
|
}), _r = Q(({ onChange: t, onKeyDown: e, ...i }, r) => {
|
|
772
|
-
const { handleInputChange:
|
|
765
|
+
const { handleInputChange: s, handleInputKeyDown: o, input: c, error: d, shouldAutoFocusInput: m, inputRef: l } = b(), { aiChatSettings: u } = p(), v = me(
|
|
773
766
|
r,
|
|
774
767
|
l
|
|
775
768
|
);
|
|
@@ -779,36 +772,36 @@ const rt = "__intro__", ot = a("div", {
|
|
|
779
772
|
asChild: !0,
|
|
780
773
|
ref: v,
|
|
781
774
|
maxLength: 99999,
|
|
782
|
-
placeholder:
|
|
775
|
+
placeholder: u.placeholder,
|
|
783
776
|
value: c,
|
|
784
|
-
onChange: h(t,
|
|
785
|
-
onKeyDown: h(e,
|
|
786
|
-
disabled: !!d ||
|
|
777
|
+
onChange: h(t, s),
|
|
778
|
+
onKeyDown: h(e, o),
|
|
779
|
+
disabled: !!d || u.isViewOnly,
|
|
787
780
|
...i,
|
|
788
781
|
children: /* @__PURE__ */ n(ee, {})
|
|
789
782
|
}
|
|
790
783
|
);
|
|
791
|
-
}),
|
|
784
|
+
}), si = a("button", {
|
|
792
785
|
_id: "aiChatInput__SendButton"
|
|
793
786
|
}), Ar = (t) => {
|
|
794
|
-
const { handleSubmit: e, isSubmitDisabled: i, error: r } = b(), { aiChatSettings:
|
|
787
|
+
const { handleSubmit: e, isSubmitDisabled: i, error: r } = b(), { aiChatSettings: s } = p(), { onClick: o, ...c } = t;
|
|
795
788
|
return /* @__PURE__ */ n(
|
|
796
|
-
|
|
789
|
+
si,
|
|
797
790
|
{
|
|
798
|
-
onClick: h(
|
|
791
|
+
onClick: h(o, () => e()),
|
|
799
792
|
"aria-label": "Send message",
|
|
800
|
-
disabled: i || !!r ||
|
|
793
|
+
disabled: i || !!r || s.isViewOnly,
|
|
801
794
|
...c
|
|
802
795
|
}
|
|
803
796
|
);
|
|
804
797
|
}, Pr = a(I, {
|
|
805
798
|
_id: "aiChatInput__SendButtonIcon",
|
|
806
799
|
iconKey: "chatSubmit"
|
|
807
|
-
}),
|
|
800
|
+
}), oi = a("div", {
|
|
808
801
|
_id: "aiChatAttachmentsBar"
|
|
809
802
|
}), Fr = (t) => {
|
|
810
803
|
const e = { supportedInputs: [] };
|
|
811
|
-
return !e || !e.supportedInputs?.length ? null : /* @__PURE__ */ n(De, { children: /* @__PURE__ */ n(
|
|
804
|
+
return !e || !e.supportedInputs?.length ? null : /* @__PURE__ */ n(De, { children: /* @__PURE__ */ n(oi, { ...t }) });
|
|
812
805
|
}, ci = a("div", {
|
|
813
806
|
_id: "aiChatAttachmentsBar__List"
|
|
814
807
|
}), fr = (t) => {
|
|
@@ -876,10 +869,10 @@ const rt = "__intro__", ot = a("div", {
|
|
|
876
869
|
}, pi = a("button", {
|
|
877
870
|
_id: "aiChatAttachmentsBar__Input"
|
|
878
871
|
}), Hr = (t) => {
|
|
879
|
-
const { input: e, onClick: i, ...r } = t,
|
|
872
|
+
const { input: e, onClick: i, ...r } = t, s = { supportedInputs: [] }, o = [], c = () => {
|
|
880
873
|
}, { selectInput: d, onOpen: m } = k(), l = () => {
|
|
881
874
|
if (e.type === "FUNCTIONAL_MULTI_ATTACHMENT")
|
|
882
|
-
return
|
|
875
|
+
return s ? e.onInvoke(s, e, c, [...o]) : void 0;
|
|
883
876
|
d(e), m();
|
|
884
877
|
};
|
|
885
878
|
return /* @__PURE__ */ n(
|
|
@@ -890,16 +883,16 @@ const rt = "__intro__", ot = a("div", {
|
|
|
890
883
|
...r
|
|
891
884
|
}
|
|
892
885
|
);
|
|
893
|
-
}, vi = a(
|
|
886
|
+
}, vi = a(se, {
|
|
894
887
|
_id: "aiChatAttachmentsBar__Modal"
|
|
895
888
|
}), Lr = (t) => {
|
|
896
|
-
const { onOpenChange: e, ...i } = t, { selectInput: r, isOpen:
|
|
889
|
+
const { onOpenChange: e, ...i } = t, { selectInput: r, isOpen: s, onClose: o, selectedInput: c } = k();
|
|
897
890
|
return /* @__PURE__ */ n(
|
|
898
891
|
vi,
|
|
899
892
|
{
|
|
900
|
-
open:
|
|
893
|
+
open: s && c !== null,
|
|
901
894
|
onOpenChange: h(e, (m) => {
|
|
902
|
-
m || (
|
|
895
|
+
m || (o(), r(null));
|
|
903
896
|
}),
|
|
904
897
|
...i
|
|
905
898
|
}
|
|
@@ -924,8 +917,8 @@ const rt = "__intro__", ot = a("div", {
|
|
|
924
917
|
}, _i = a("div", {
|
|
925
918
|
_id: "aiChatAttachmentsBar__ModalHelp"
|
|
926
919
|
}), Nr = (t) => {
|
|
927
|
-
const { children: e, ...i } = t, { selectedInput: r } = k(),
|
|
928
|
-
return
|
|
920
|
+
const { children: e, ...i } = t, { selectedInput: r } = k(), s = r?.workflowModalProps?.modalHelpElement;
|
|
921
|
+
return s ? /* @__PURE__ */ n(_i, { asChild: !e, children: e || s, ...i }) : null;
|
|
929
922
|
}, Vr = a(ne, {
|
|
930
923
|
_id: "aiChatAttachmentsBar__ModalClose",
|
|
931
924
|
children: /* @__PURE__ */ n(I, { iconKey: "close" })
|
|
@@ -960,13 +953,13 @@ const rt = "__intro__", ot = a("div", {
|
|
|
960
953
|
}, Fi = a("input", {
|
|
961
954
|
_id: "aiChatAttachmentsBar__FormTitleInput"
|
|
962
955
|
}), qr = (t) => {
|
|
963
|
-
const { onChange: e, ...i } = t, { form: r, selectedInput:
|
|
956
|
+
const { onChange: e, ...i } = t, { form: r, selectedInput: s } = k();
|
|
964
957
|
return /* @__PURE__ */ n(
|
|
965
958
|
Fi,
|
|
966
959
|
{
|
|
967
960
|
name: "title",
|
|
968
961
|
value: r.data.title,
|
|
969
|
-
id: `${
|
|
962
|
+
id: `${s?.id}-title`,
|
|
970
963
|
"data-invalid": g(!!r.errors.title),
|
|
971
964
|
"aria-invalid": !!r.errors.title,
|
|
972
965
|
onChange: h(e, r.onChange),
|
|
@@ -1003,7 +996,7 @@ const rt = "__intro__", ot = a("div", {
|
|
|
1003
996
|
}, Ii = a("textarea", {
|
|
1004
997
|
_id: "aiChatAttachmentsBar__FormTitleInput"
|
|
1005
998
|
}), Yr = (t) => {
|
|
1006
|
-
const { onChange: e, ...i } = t, { form: r, selectedInput:
|
|
999
|
+
const { onChange: e, ...i } = t, { form: r, selectedInput: s } = k();
|
|
1007
1000
|
return /* @__PURE__ */ n(
|
|
1008
1001
|
Ii,
|
|
1009
1002
|
{
|
|
@@ -1011,7 +1004,7 @@ const rt = "__intro__", ot = a("div", {
|
|
|
1011
1004
|
rows: 4,
|
|
1012
1005
|
name: "content",
|
|
1013
1006
|
value: r.data.content,
|
|
1014
|
-
id: `${
|
|
1007
|
+
id: `${s?.id}-content`,
|
|
1015
1008
|
"data-invalid": g(!!r.errors.content),
|
|
1016
1009
|
"aria-invalid": !!r.errors.content,
|
|
1017
1010
|
onChange: h(e, r.onChange),
|
|
@@ -1037,16 +1030,16 @@ const rt = "__intro__", ot = a("div", {
|
|
|
1037
1030
|
type: "submit"
|
|
1038
1031
|
}), Zr = a("div", {
|
|
1039
1032
|
_id: "aiChatActionBar"
|
|
1040
|
-
}),
|
|
1033
|
+
}), es = a("div", {
|
|
1041
1034
|
_id: "aiChat__ChatActions"
|
|
1042
|
-
}),
|
|
1035
|
+
}), ts = a("div", {
|
|
1043
1036
|
_id: "aiChatTagline__Container"
|
|
1044
|
-
}),
|
|
1037
|
+
}), is = a("span", {
|
|
1045
1038
|
_id: "aiChatTagline__Text",
|
|
1046
1039
|
children: "Powered by"
|
|
1047
|
-
}),
|
|
1040
|
+
}), as = a($e, {
|
|
1048
1041
|
_id: "aiChatTagline__Logo"
|
|
1049
|
-
}),
|
|
1042
|
+
}), ns = a("a", {
|
|
1050
1043
|
_id: "aiChatTagline__BrandName",
|
|
1051
1044
|
children: "inkeep",
|
|
1052
1045
|
href: "https://www.inkeep.com/",
|
|
@@ -1055,15 +1048,15 @@ const rt = "__intro__", ot = a("div", {
|
|
|
1055
1048
|
}), Si = a(w.Trigger, {
|
|
1056
1049
|
_id: "aiChat__ChatAction"
|
|
1057
1050
|
}), _e = (t) => {
|
|
1058
|
-
const { action: e, onClick: i, className: r, ...
|
|
1059
|
-
|
|
1051
|
+
const { action: e, onClick: i, className: r, ...s } = t, o = {}, { clear: c, stop: d, isLoading: m, isStreaming: l, messages: u } = b(), { conversationId: v } = b(), { aiChatSettings: C } = p(), [_, B] = X(), [
|
|
1052
|
+
F
|
|
1060
1053
|
/* copyShareUri */
|
|
1061
1054
|
] = X();
|
|
1062
1055
|
if ({
|
|
1063
1056
|
help: !1,
|
|
1064
|
-
copy:
|
|
1065
|
-
share:
|
|
1066
|
-
clear:
|
|
1057
|
+
copy: u.length === 0 || !C.isCopyChatButtonVisible || m || l,
|
|
1058
|
+
share: u.length === 0 || !C.isShareButtonVisible || !v || !!o || m || l,
|
|
1059
|
+
clear: u.length === 0 || C.isViewOnly || m || l,
|
|
1067
1060
|
stop: !m && !l
|
|
1068
1061
|
}[e]) return null;
|
|
1069
1062
|
const D = {
|
|
@@ -1071,7 +1064,7 @@ const rt = "__intro__", ot = a("div", {
|
|
|
1071
1064
|
help: () => {
|
|
1072
1065
|
},
|
|
1073
1066
|
copy: () => {
|
|
1074
|
-
const he =
|
|
1067
|
+
const he = u.map((R) => {
|
|
1075
1068
|
const G = `**${R.role === "assistant" ? "AI Assistant" : "User"}**`, Y = ge(R);
|
|
1076
1069
|
return `${G}
|
|
1077
1070
|
|
|
@@ -1089,54 +1082,54 @@ ${Y}`;
|
|
|
1089
1082
|
stop: d
|
|
1090
1083
|
}, z = {
|
|
1091
1084
|
copy: _,
|
|
1092
|
-
share:
|
|
1085
|
+
share: F
|
|
1093
1086
|
};
|
|
1094
1087
|
return /* @__PURE__ */ n(w.Tooltip, { delayDuration: 0, open: z[e], children: /* @__PURE__ */ n(
|
|
1095
1088
|
Si,
|
|
1096
1089
|
{
|
|
1097
1090
|
"data-type": e,
|
|
1098
|
-
"data-copied": g(_ ||
|
|
1091
|
+
"data-copied": g(_ || F),
|
|
1099
1092
|
className: `${r} ${e}`,
|
|
1100
1093
|
children: /* @__PURE__ */ n(Bi, { action: e }),
|
|
1101
1094
|
onClick: h(i, D[e]),
|
|
1102
|
-
...
|
|
1095
|
+
...s
|
|
1103
1096
|
}
|
|
1104
1097
|
) });
|
|
1105
1098
|
}, ki = a("span", {
|
|
1106
1099
|
_id: "aiChat__ChatActionLabel"
|
|
1107
1100
|
}), Bi = (t) => {
|
|
1108
|
-
const { action: e, ...i } = t, { aiChatSettings: r } = p(),
|
|
1109
|
-
help:
|
|
1110
|
-
copy:
|
|
1111
|
-
share:
|
|
1112
|
-
clear:
|
|
1113
|
-
stop:
|
|
1101
|
+
const { action: e, ...i } = t, { aiChatSettings: r } = p(), s = r.toolbarButtonLabels ?? {}, o = {
|
|
1102
|
+
help: s.getHelp ?? "Get Help",
|
|
1103
|
+
copy: s.copyChat ?? "Copy",
|
|
1104
|
+
share: s.share ?? "Share",
|
|
1105
|
+
clear: s.clear ?? "Clear",
|
|
1106
|
+
stop: s.stop ?? "Stop"
|
|
1114
1107
|
};
|
|
1115
|
-
return /* @__PURE__ */ n(ki, { children:
|
|
1108
|
+
return /* @__PURE__ */ n(ki, { children: o[e], ...i });
|
|
1116
1109
|
}, yi = a(w.TooltipContent, {
|
|
1117
1110
|
_id: "aiChat__ChatActionFeeback"
|
|
1118
|
-
}),
|
|
1119
|
-
const { action: e, children: i, ...r } = t,
|
|
1111
|
+
}), rs = (t) => {
|
|
1112
|
+
const { action: e, children: i, ...r } = t, s = {
|
|
1120
1113
|
copy: "Copied!",
|
|
1121
1114
|
share: "Link copied!"
|
|
1122
1115
|
};
|
|
1123
1116
|
return /* @__PURE__ */ $(yi, { sideOffset: 5, ...r, children: [
|
|
1124
1117
|
/* @__PURE__ */ n(w.Arrow, {}),
|
|
1125
|
-
i ||
|
|
1118
|
+
i || s[e]
|
|
1126
1119
|
] });
|
|
1127
1120
|
}, Ti = a(T.Root, {
|
|
1128
1121
|
_id: "aiChatHelpActions"
|
|
1129
|
-
}),
|
|
1130
|
-
const { children: e, ...i } = t, { aiChatSettings: r } = p(), { getHelpOptions:
|
|
1131
|
-
if (!
|
|
1122
|
+
}), ss = (t) => {
|
|
1123
|
+
const { children: e, ...i } = t, { aiChatSettings: r } = p(), { getHelpOptions: s } = r;
|
|
1124
|
+
if (!s || (s ?? []).length === 0)
|
|
1132
1125
|
return null;
|
|
1133
|
-
const { _pinned:
|
|
1134
|
-
(
|
|
1135
|
-
const
|
|
1136
|
-
return { ...
|
|
1126
|
+
const { _pinned: o, _unpinned: c } = s.reduce(
|
|
1127
|
+
(u, v) => {
|
|
1128
|
+
const C = v.isPinnedToToolbar ? "_pinned" : "_unpinned";
|
|
1129
|
+
return { ...u, [C]: [...u[C], v] };
|
|
1137
1130
|
},
|
|
1138
1131
|
{ _pinned: [], _unpinned: [] }
|
|
1139
|
-
), d = c.length === 1 ? [...
|
|
1132
|
+
), d = c.length === 1 ? [...o, c[0]] : o, m = c.length === 1 ? [] : c, l = Ke();
|
|
1140
1133
|
return /* @__PURE__ */ n(qe, { value: l, children: /* @__PURE__ */ n(
|
|
1141
1134
|
Ti,
|
|
1142
1135
|
{
|
|
@@ -1153,13 +1146,13 @@ ${Y}`;
|
|
|
1153
1146
|
_id: "aiChatHelpAction",
|
|
1154
1147
|
target: "_blank",
|
|
1155
1148
|
rel: "noreferrer"
|
|
1156
|
-
}),
|
|
1157
|
-
const { action: e, onClick: i, ...r } = t, { handleAction:
|
|
1149
|
+
}), os = (t) => {
|
|
1150
|
+
const { action: e, onClick: i, ...r } = t, { handleAction: s, logHelpAction: o } = de(e), c = e.action.type, d = {
|
|
1158
1151
|
"aria-label": e.name,
|
|
1159
1152
|
"data-name": e.name,
|
|
1160
1153
|
children: e.name,
|
|
1161
1154
|
onClick: h(i, () => {
|
|
1162
|
-
|
|
1155
|
+
s(), o();
|
|
1163
1156
|
}),
|
|
1164
1157
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
1165
1158
|
...r
|
|
@@ -1167,14 +1160,14 @@ ${Y}`;
|
|
|
1167
1160
|
return c === "open_link" ? /* @__PURE__ */ n(Hi, { href: e.action.url, ...d }) : /* @__PURE__ */ n(wi, { ...d });
|
|
1168
1161
|
}, Li = a(T.Trigger, {
|
|
1169
1162
|
_id: "aiChatHelpActions__Trigger"
|
|
1170
|
-
}),
|
|
1163
|
+
}), cs = E(
|
|
1171
1164
|
(t) => {
|
|
1172
1165
|
const { aiChatSettings: e } = p();
|
|
1173
1166
|
return /* @__PURE__ */ n(_e, { action: "help", ...t, asChild: !0, children: /* @__PURE__ */ n(Li, { children: e.toolbarButtonLabels?.getHelp ?? "Get Help" }) });
|
|
1174
1167
|
}
|
|
1175
1168
|
), xi = a(T.Content, {
|
|
1176
1169
|
_id: "aiChatHelpActions__Menu"
|
|
1177
|
-
}),
|
|
1170
|
+
}), ds = (t) => /* @__PURE__ */ n(
|
|
1178
1171
|
xi,
|
|
1179
1172
|
{
|
|
1180
1173
|
side: "top",
|
|
@@ -1183,13 +1176,13 @@ ${Y}`;
|
|
|
1183
1176
|
alignOffset: -10,
|
|
1184
1177
|
...t
|
|
1185
1178
|
}
|
|
1186
|
-
),
|
|
1179
|
+
), ms = a(T.Arrow, {
|
|
1187
1180
|
_id: "aiChatHelpActions__MenuArrow"
|
|
1188
|
-
}),
|
|
1189
|
-
const { action: e, onClick: i, ...r } = t, { handleAction:
|
|
1190
|
-
|
|
1181
|
+
}), ls = (t) => {
|
|
1182
|
+
const { action: e, onClick: i, ...r } = t, { handleAction: s, logHelpAction: o } = de(e), { setOpen: c } = je(), d = () => {
|
|
1183
|
+
s({
|
|
1191
1184
|
onOpenForm: () => c(!1)
|
|
1192
|
-
}),
|
|
1185
|
+
}), o();
|
|
1193
1186
|
}, m = e.action.type, l = a(m === "open_link" ? "a" : "button", {
|
|
1194
1187
|
_id: "aiChatHelpActions__MenuItem",
|
|
1195
1188
|
children: e.name,
|
|
@@ -1206,52 +1199,52 @@ ${Y}`;
|
|
|
1206
1199
|
return /* @__PURE__ */ n(l, { ...r });
|
|
1207
1200
|
}, Di = a(H, {
|
|
1208
1201
|
_id: "aiChatHelpActions_MenuItemIcon"
|
|
1209
|
-
}),
|
|
1202
|
+
}), hs = (t) => {
|
|
1210
1203
|
const { action: e, ...i } = t;
|
|
1211
1204
|
return e.icon ? /* @__PURE__ */ n(Di, { iconSettings: e.icon, ...i }) : null;
|
|
1212
|
-
}, Oi = a(
|
|
1205
|
+
}, Oi = a(se, {
|
|
1213
1206
|
_id: "aiChatFeedbackModal"
|
|
1214
|
-
}),
|
|
1215
|
-
const { onOpenChange: e, ...i } = t, { currentFeedback: r, setCurrentFeedback:
|
|
1207
|
+
}), us = (t) => {
|
|
1208
|
+
const { onOpenChange: e, ...i } = t, { currentFeedback: r, setCurrentFeedback: s } = oe();
|
|
1216
1209
|
return /* @__PURE__ */ n(
|
|
1217
1210
|
Oi,
|
|
1218
1211
|
{
|
|
1219
1212
|
open: r !== null,
|
|
1220
|
-
onOpenChange: h(e, () =>
|
|
1213
|
+
onOpenChange: h(e, () => s(null)),
|
|
1221
1214
|
...i
|
|
1222
1215
|
}
|
|
1223
1216
|
);
|
|
1224
|
-
},
|
|
1217
|
+
}, Cs = a(ie, {
|
|
1225
1218
|
_id: "aiChatFeedbackModal__Overlay"
|
|
1226
|
-
}),
|
|
1219
|
+
}), ps = a(ae, {
|
|
1227
1220
|
_id: "aiChatFeedbackModal__Content",
|
|
1228
1221
|
"aria-describedby": void 0
|
|
1229
|
-
}),
|
|
1222
|
+
}), vs = a(re, {
|
|
1230
1223
|
_id: "aiChatFeedbackModal__Header",
|
|
1231
1224
|
children: "Help improve my answers!"
|
|
1232
|
-
}),
|
|
1225
|
+
}), gs = a(ne, {
|
|
1233
1226
|
_id: "aiChatFeedbackModal__Close",
|
|
1234
1227
|
children: /* @__PURE__ */ n(I, { iconKey: "close" })
|
|
1235
|
-
}),
|
|
1228
|
+
}), bs = a("div", {
|
|
1236
1229
|
_id: "aiChatFeedbackModal__Body"
|
|
1237
1230
|
}), Wi = a("form", {
|
|
1238
1231
|
_id: "aiChatFeedbackForm"
|
|
1239
|
-
}),
|
|
1240
|
-
const { onSubmit: e, ...i } = t, { submitNegativeFeedback: r, currentFeedback:
|
|
1232
|
+
}), _s = (t) => {
|
|
1233
|
+
const { onSubmit: e, ...i } = t, { submitNegativeFeedback: r, currentFeedback: s, setCurrentFeedback: o } = oe();
|
|
1241
1234
|
return /* @__PURE__ */ n(Wi, { onSubmit: h(e, (d) => {
|
|
1242
1235
|
d.preventDefault();
|
|
1243
|
-
const m = d.target, l = new FormData(m),
|
|
1244
|
-
|
|
1236
|
+
const m = d.target, l = new FormData(m), u = Object.fromEntries(l.entries());
|
|
1237
|
+
s && (r(s, u), o(null));
|
|
1245
1238
|
}), ...i });
|
|
1246
1239
|
}, Ri = a("div", {
|
|
1247
1240
|
_id: "aiChatFeedbackItem"
|
|
1248
|
-
}),
|
|
1241
|
+
}), As = (t) => {
|
|
1249
1242
|
const { name: e, ...i } = t;
|
|
1250
1243
|
return /* @__PURE__ */ n(Ne, { name: e, children: /* @__PURE__ */ n(Ri, { ...i }) });
|
|
1251
1244
|
}, Ni = a(U.Root, {
|
|
1252
1245
|
_id: "aiChatFeedbackItem__Checkbox"
|
|
1253
|
-
}),
|
|
1254
|
-
const { name: e, focusItem: i } = ce(), { onCheckedChange: r, ...
|
|
1246
|
+
}), Ps = (t) => {
|
|
1247
|
+
const { name: e, focusItem: i } = ce(), { onCheckedChange: r, ...s } = t, o = (c) => {
|
|
1255
1248
|
c && i?.current?.focus();
|
|
1256
1249
|
};
|
|
1257
1250
|
return /* @__PURE__ */ n(
|
|
@@ -1259,16 +1252,16 @@ ${Y}`;
|
|
|
1259
1252
|
{
|
|
1260
1253
|
id: `feedback-${e}`,
|
|
1261
1254
|
name: e,
|
|
1262
|
-
onCheckedChange: h(r,
|
|
1263
|
-
...
|
|
1255
|
+
onCheckedChange: h(r, o),
|
|
1256
|
+
...s
|
|
1264
1257
|
}
|
|
1265
1258
|
);
|
|
1266
|
-
},
|
|
1259
|
+
}, Fs = a(U.Indicator, {
|
|
1267
1260
|
_id: "aiChatFeedbackItem__CheckboxIndicator",
|
|
1268
1261
|
children: /* @__PURE__ */ n(ve, {})
|
|
1269
1262
|
}), Vi = a("label", {
|
|
1270
1263
|
_id: "aiChatFeedbackItem__Label"
|
|
1271
|
-
}),
|
|
1264
|
+
}), fs = (t) => {
|
|
1272
1265
|
const { name: e } = ce(), i = {
|
|
1273
1266
|
unrelated_response: "Didn't answer my question",
|
|
1274
1267
|
inaccurate_statement: "Inaccurate statement",
|
|
@@ -1279,7 +1272,7 @@ ${Y}`;
|
|
|
1279
1272
|
}, $i = a("textarea", {
|
|
1280
1273
|
_id: "aiChatFeedbackItem__Description",
|
|
1281
1274
|
placeholder: "Please describe"
|
|
1282
|
-
}),
|
|
1275
|
+
}), Ms = (t) => {
|
|
1283
1276
|
const { name: e, focusItem: i } = ce();
|
|
1284
1277
|
return /* @__PURE__ */ n(
|
|
1285
1278
|
$i,
|
|
@@ -1289,25 +1282,25 @@ ${Y}`;
|
|
|
1289
1282
|
...t
|
|
1290
1283
|
}
|
|
1291
1284
|
);
|
|
1292
|
-
},
|
|
1285
|
+
}, Is = a("button", {
|
|
1293
1286
|
_id: "aiChatFeedbackForm__SubmitButton",
|
|
1294
1287
|
children: "Submit",
|
|
1295
1288
|
type: "submit"
|
|
1296
1289
|
}), Qi = a("div", {
|
|
1297
1290
|
_id: "aiChatForm__Wrapper"
|
|
1298
|
-
}),
|
|
1299
|
-
const { form: e } =
|
|
1291
|
+
}), Es = (t) => {
|
|
1292
|
+
const { form: e } = P();
|
|
1300
1293
|
return e ? /* @__PURE__ */ n(Qi, { ...t }) : null;
|
|
1301
1294
|
}, Ui = a("form", {
|
|
1302
1295
|
_id: "aiChatForm"
|
|
1303
|
-
}),
|
|
1304
|
-
const { onSubmit: e, ...i } = t, { conversationId: r, messages:
|
|
1296
|
+
}), Ss = (t) => {
|
|
1297
|
+
const { onSubmit: e, ...i } = t, { conversationId: r, messages: s } = b(), { handleSubmit: o, isSuccess: c } = P();
|
|
1305
1298
|
return c ? null : /* @__PURE__ */ n(
|
|
1306
1299
|
Ui,
|
|
1307
1300
|
{
|
|
1308
1301
|
onSubmit: h(
|
|
1309
1302
|
e,
|
|
1310
|
-
(d) =>
|
|
1303
|
+
(d) => o(d, { id: r, messages: s })
|
|
1311
1304
|
),
|
|
1312
1305
|
...i
|
|
1313
1306
|
}
|
|
@@ -1315,42 +1308,42 @@ ${Y}`;
|
|
|
1315
1308
|
}, Ki = a("button", {
|
|
1316
1309
|
_id: "aiChatForm__Close",
|
|
1317
1310
|
children: /* @__PURE__ */ n(I, { iconKey: "close" })
|
|
1318
|
-
}),
|
|
1319
|
-
const { onClick: e, ...i } = t, { closeForm: r } =
|
|
1311
|
+
}), ks = (t) => {
|
|
1312
|
+
const { onClick: e, ...i } = t, { closeForm: r } = P();
|
|
1320
1313
|
return /* @__PURE__ */ n(Ki, { onClick: h(e, r), ...i });
|
|
1321
|
-
},
|
|
1314
|
+
}, Bs = a("div", {
|
|
1322
1315
|
_id: "aiChatForm__Header"
|
|
1323
1316
|
}), qi = a("h2", {
|
|
1324
1317
|
_id: "aiChatForm__Heading"
|
|
1325
|
-
}),
|
|
1326
|
-
const { form: e } =
|
|
1318
|
+
}), ys = (t) => {
|
|
1319
|
+
const { form: e } = P();
|
|
1327
1320
|
return e?.heading ? /* @__PURE__ */ n(qi, { children: e.heading, ...t }) : null;
|
|
1328
1321
|
}, ji = a(K, {
|
|
1329
1322
|
_id: "aiChatForm__Description"
|
|
1330
|
-
}),
|
|
1331
|
-
const { form: e } =
|
|
1323
|
+
}), Ts = (t) => {
|
|
1324
|
+
const { form: e } = P();
|
|
1332
1325
|
return e?.description ? /* @__PURE__ */ n(ji, { children: e.description, ...t }) : null;
|
|
1333
1326
|
}, zi = a("div", {
|
|
1334
1327
|
_id: "aiChatForm__Content"
|
|
1335
|
-
}),
|
|
1336
|
-
const { children: e, ...i } = t, { getFields: r } =
|
|
1337
|
-
return /* @__PURE__ */ n(zi, { children: y(e,
|
|
1328
|
+
}), ws = (t) => {
|
|
1329
|
+
const { children: e, ...i } = t, { getFields: r } = P(), { conversationId: s } = b(), o = r(s) || [];
|
|
1330
|
+
return /* @__PURE__ */ n(zi, { children: y(e, o), ...i });
|
|
1338
1331
|
}, Gi = a("div", {
|
|
1339
1332
|
_id: "aiChatForm__Field"
|
|
1340
|
-
}),
|
|
1341
|
-
const { field: e, autoFocus: i, ...r } = t, { control:
|
|
1333
|
+
}), Hs = (t) => {
|
|
1334
|
+
const { field: e, autoFocus: i, ...r } = t, { control: s, errors: o } = P();
|
|
1342
1335
|
return /* @__PURE__ */ n(
|
|
1343
1336
|
Ge,
|
|
1344
1337
|
{
|
|
1345
1338
|
name: e.name,
|
|
1346
|
-
control:
|
|
1339
|
+
control: s,
|
|
1347
1340
|
rules: { required: e.isRequired ? `${e.label} is required.` : void 0 },
|
|
1348
1341
|
render: ({ field: c }) => {
|
|
1349
1342
|
const d = c.value !== void 0 || e.inputType === "file";
|
|
1350
1343
|
return /* @__PURE__ */ n(
|
|
1351
1344
|
ze,
|
|
1352
1345
|
{
|
|
1353
|
-
"data-invalid": g(!!
|
|
1346
|
+
"data-invalid": g(!!o[e.name]),
|
|
1354
1347
|
field: e,
|
|
1355
1348
|
fieldProps: c,
|
|
1356
1349
|
autoFocus: i,
|
|
@@ -1369,7 +1362,7 @@ ${Y}`;
|
|
|
1369
1362
|
);
|
|
1370
1363
|
}, Yi = a("label", {
|
|
1371
1364
|
_id: "aiChatForm__FieldLabel"
|
|
1372
|
-
}),
|
|
1365
|
+
}), Ls = (t) => {
|
|
1373
1366
|
const { field: e } = x();
|
|
1374
1367
|
return /* @__PURE__ */ n(
|
|
1375
1368
|
Yi,
|
|
@@ -1387,7 +1380,7 @@ ${Y}`;
|
|
|
1387
1380
|
const {
|
|
1388
1381
|
field: e,
|
|
1389
1382
|
error: i,
|
|
1390
|
-
fieldProps: { onChange: r, onBlur:
|
|
1383
|
+
fieldProps: { onChange: r, onBlur: s, ...o },
|
|
1391
1384
|
autoFocus: c
|
|
1392
1385
|
} = x(), { onChange: d, onBlur: m, ...l } = t;
|
|
1393
1386
|
return /* @__PURE__ */ n(
|
|
@@ -1398,27 +1391,27 @@ ${Y}`;
|
|
|
1398
1391
|
placeholder: "placeholder" in e ? e.placeholder : void 0,
|
|
1399
1392
|
"data-invalid": g(!!i),
|
|
1400
1393
|
onChange: h(d, r),
|
|
1401
|
-
onBlur: h(m,
|
|
1402
|
-
...
|
|
1394
|
+
onBlur: h(m, s),
|
|
1395
|
+
...o,
|
|
1403
1396
|
...l
|
|
1404
1397
|
}
|
|
1405
1398
|
);
|
|
1406
|
-
},
|
|
1399
|
+
}, xs = a(Ae, {
|
|
1407
1400
|
_id: "aiChatForm__FieldEmail",
|
|
1408
1401
|
type: "email"
|
|
1409
1402
|
}), Xi = a("input", {
|
|
1410
1403
|
_id: "aiChatForm__FieldFile",
|
|
1411
1404
|
type: "file",
|
|
1412
1405
|
multiple: !0
|
|
1413
|
-
}),
|
|
1406
|
+
}), Ds = (t) => {
|
|
1414
1407
|
const {
|
|
1415
1408
|
field: e,
|
|
1416
1409
|
error: i,
|
|
1417
|
-
fieldProps: { value: r, onChange:
|
|
1410
|
+
fieldProps: { value: r, onChange: s, onBlur: o, ...c },
|
|
1418
1411
|
autoFocus: d
|
|
1419
|
-
} = x(), { onChange: m, onBlur: l, ...
|
|
1420
|
-
const _ =
|
|
1421
|
-
|
|
1412
|
+
} = x(), { onChange: m, onBlur: l, ...u } = t, v = (C) => {
|
|
1413
|
+
const _ = C.target.files;
|
|
1414
|
+
s(_);
|
|
1422
1415
|
};
|
|
1423
1416
|
return /* @__PURE__ */ n(
|
|
1424
1417
|
Xi,
|
|
@@ -1427,55 +1420,55 @@ ${Y}`;
|
|
|
1427
1420
|
autoFocus: d,
|
|
1428
1421
|
"data-value": r,
|
|
1429
1422
|
"data-invalid": g(!!i),
|
|
1430
|
-
...
|
|
1423
|
+
...u,
|
|
1431
1424
|
...c,
|
|
1432
1425
|
onChange: h(m, v),
|
|
1433
|
-
onBlur: h(l,
|
|
1426
|
+
onBlur: h(l, o)
|
|
1434
1427
|
}
|
|
1435
1428
|
);
|
|
1436
|
-
},
|
|
1429
|
+
}, Os = a(Ae, {
|
|
1437
1430
|
_id: "aiChatForm__FieldTextArea",
|
|
1438
1431
|
type: "textarea",
|
|
1439
1432
|
asChild: !0,
|
|
1440
1433
|
children: /* @__PURE__ */ n(ee, { maxRows: 8 })
|
|
1441
1434
|
}), Zi = a(U.Root, {
|
|
1442
1435
|
_id: "aiChatForm__FieldCheckbox"
|
|
1443
|
-
}),
|
|
1444
|
-
const { field: e, error: i, fieldProps: r, autoFocus:
|
|
1436
|
+
}), Ws = (t) => {
|
|
1437
|
+
const { field: e, error: i, fieldProps: r, autoFocus: s } = x(), { onCheckedChange: o, ...c } = t;
|
|
1445
1438
|
return /* @__PURE__ */ n(
|
|
1446
1439
|
Zi,
|
|
1447
1440
|
{
|
|
1448
1441
|
id: e.name,
|
|
1449
1442
|
name: e.name,
|
|
1450
|
-
autoFocus:
|
|
1443
|
+
autoFocus: s,
|
|
1451
1444
|
"data-invalid": g(!!i),
|
|
1452
1445
|
checked: r.value,
|
|
1453
|
-
onCheckedChange: h(
|
|
1446
|
+
onCheckedChange: h(o, r.onChange),
|
|
1454
1447
|
...c
|
|
1455
1448
|
}
|
|
1456
1449
|
);
|
|
1457
|
-
},
|
|
1450
|
+
}, Rs = a(U.Indicator, {
|
|
1458
1451
|
_id: "aiChatForm__FieldCheckboxIndicator",
|
|
1459
1452
|
children: /* @__PURE__ */ n(ve, {})
|
|
1460
1453
|
}), ea = a(Te, {
|
|
1461
1454
|
_id: "aiChatForm__FieldSelect"
|
|
1462
|
-
}),
|
|
1463
|
-
const { field: e, error: i, fieldProps: r } = x(), { onValueChange:
|
|
1455
|
+
}), Ns = (t) => {
|
|
1456
|
+
const { field: e, error: i, fieldProps: r } = x(), { onValueChange: s, ...o } = t;
|
|
1464
1457
|
return /* @__PURE__ */ n(
|
|
1465
1458
|
ea,
|
|
1466
1459
|
{
|
|
1467
1460
|
name: e.name,
|
|
1468
1461
|
"data-invalid": g(!!i),
|
|
1469
1462
|
value: r.value,
|
|
1470
|
-
onValueChange: h(
|
|
1471
|
-
...
|
|
1463
|
+
onValueChange: h(s, r.onChange),
|
|
1464
|
+
...o
|
|
1472
1465
|
}
|
|
1473
1466
|
);
|
|
1474
|
-
},
|
|
1467
|
+
}, Vs = a(Ie, {
|
|
1475
1468
|
_id: "aiChatForm__FieldSelect__Trigger"
|
|
1476
1469
|
}), ta = a(we, {
|
|
1477
1470
|
_id: "aiChatForm__FieldSelect__Value"
|
|
1478
|
-
}),
|
|
1471
|
+
}), $s = (t) => {
|
|
1479
1472
|
const { field: e } = x();
|
|
1480
1473
|
return /* @__PURE__ */ n(
|
|
1481
1474
|
ta,
|
|
@@ -1484,20 +1477,20 @@ ${Y}`;
|
|
|
1484
1477
|
...t
|
|
1485
1478
|
}
|
|
1486
1479
|
);
|
|
1487
|
-
},
|
|
1480
|
+
}, Qs = a(Ee, {
|
|
1488
1481
|
_id: "aiChatForm__FieldSelect__Icon",
|
|
1489
1482
|
asChild: !0,
|
|
1490
1483
|
children: /* @__PURE__ */ n(H, { iconSettings: { builtIn: "LuChevronDown" } })
|
|
1491
|
-
}),
|
|
1484
|
+
}), Us = a(Se, {
|
|
1492
1485
|
_id: "aiChatForm__FieldSelect__Content",
|
|
1493
1486
|
position: "popper"
|
|
1494
|
-
}),
|
|
1487
|
+
}), Ks = a(ke, {
|
|
1495
1488
|
_id: "aiChatForm__FieldSelect__Viewport"
|
|
1496
|
-
}),
|
|
1489
|
+
}), qs = a(Be, {
|
|
1497
1490
|
_id: "aiChatForm__FieldSelect__Item"
|
|
1498
|
-
}),
|
|
1491
|
+
}), js = a(Me, {
|
|
1499
1492
|
_id: "aiChatForm__FieldSelect__ItemText"
|
|
1500
|
-
}),
|
|
1493
|
+
}), zs = a(
|
|
1501
1494
|
ye,
|
|
1502
1495
|
{
|
|
1503
1496
|
_id: "aiChatForm__FieldSelect__ItemIndicator",
|
|
@@ -1506,55 +1499,55 @@ ${Y}`;
|
|
|
1506
1499
|
}
|
|
1507
1500
|
), ia = a("span", {
|
|
1508
1501
|
_id: "aiChatForm__FieldError"
|
|
1509
|
-
}),
|
|
1502
|
+
}), Gs = (t) => {
|
|
1510
1503
|
const { error: e } = x();
|
|
1511
1504
|
return e ? /* @__PURE__ */ n(ia, { children: e.message?.toString(), ...t }) : null;
|
|
1512
1505
|
}, aa = a("span", {
|
|
1513
1506
|
_id: "aiChatForm__Error"
|
|
1514
|
-
}),
|
|
1515
|
-
const { formError: e } =
|
|
1507
|
+
}), Ys = (t) => {
|
|
1508
|
+
const { formError: e } = P();
|
|
1516
1509
|
return e ? /* @__PURE__ */ n(aa, { children: e.message, ...t }) : null;
|
|
1517
|
-
},
|
|
1510
|
+
}, Js = a("div", {
|
|
1518
1511
|
_id: "aiChatForm__Footer"
|
|
1519
1512
|
}), na = a("button", {
|
|
1520
1513
|
_id: "aiChatForm__Cancel",
|
|
1521
1514
|
children: "Cancel",
|
|
1522
1515
|
type: "button"
|
|
1523
|
-
}),
|
|
1524
|
-
const { onClick: e, ...i } = t, { closeForm: r } =
|
|
1516
|
+
}), Xs = (t) => {
|
|
1517
|
+
const { onClick: e, ...i } = t, { closeForm: r } = P();
|
|
1525
1518
|
return /* @__PURE__ */ n(na, { onClick: h(e, r), ...i });
|
|
1526
1519
|
}, ra = a("button", {
|
|
1527
1520
|
_id: "aiChatForm__Submit",
|
|
1528
1521
|
children: "Submit",
|
|
1529
1522
|
type: "submit"
|
|
1530
|
-
}),
|
|
1531
|
-
const { onClick: e, ...i } = t, { isSubmitting: r, form:
|
|
1532
|
-
return /* @__PURE__ */ n(ra, { disabled: r, ...i, children:
|
|
1533
|
-
},
|
|
1523
|
+
}), Zs = (t) => {
|
|
1524
|
+
const { onClick: e, ...i } = t, { isSubmitting: r, form: s } = P(), o = s?.buttons.submit.label || "Submit";
|
|
1525
|
+
return /* @__PURE__ */ n(ra, { disabled: r, ...i, children: o });
|
|
1526
|
+
}, sa = a("div", {
|
|
1534
1527
|
_id: "aiChatForm__Success"
|
|
1535
|
-
}),
|
|
1536
|
-
const { isSuccess: e } =
|
|
1537
|
-
return e ? /* @__PURE__ */ n(
|
|
1538
|
-
},
|
|
1528
|
+
}), eo = (t) => {
|
|
1529
|
+
const { isSuccess: e } = P();
|
|
1530
|
+
return e ? /* @__PURE__ */ n(sa, { ...t }) : null;
|
|
1531
|
+
}, oa = a("h2", {
|
|
1539
1532
|
_id: "aiChatForm__SuccessHeading"
|
|
1540
|
-
}),
|
|
1541
|
-
const { form: e } =
|
|
1542
|
-
return /* @__PURE__ */ n(
|
|
1533
|
+
}), to = (t) => {
|
|
1534
|
+
const { form: e } = P();
|
|
1535
|
+
return /* @__PURE__ */ n(oa, { children: e?.successView?.heading, ...t });
|
|
1543
1536
|
}, ca = a(K, {
|
|
1544
1537
|
_id: "aiChatForm__SuccessMessage"
|
|
1545
|
-
}),
|
|
1546
|
-
const { form: e } =
|
|
1538
|
+
}), io = (t) => {
|
|
1539
|
+
const { form: e } = P();
|
|
1547
1540
|
return /* @__PURE__ */ n(ca, { children: e?.successView?.message, ...t });
|
|
1548
1541
|
}, da = a("button", {
|
|
1549
1542
|
_id: "aiChatForm__SuccessButton"
|
|
1550
|
-
}),
|
|
1551
|
-
const { onClick: e, ...i } = t, { form: r, closeForm:
|
|
1552
|
-
if (!
|
|
1553
|
-
const c =
|
|
1543
|
+
}), ao = (t) => {
|
|
1544
|
+
const { onClick: e, ...i } = t, { form: r, closeForm: s } = P(), o = r?.successView?.doneButton;
|
|
1545
|
+
if (!o) return null;
|
|
1546
|
+
const c = o.icon && /* @__PURE__ */ n(H, { iconSettings: o.icon }), d = o.label;
|
|
1554
1547
|
return /* @__PURE__ */ n(
|
|
1555
1548
|
da,
|
|
1556
1549
|
{
|
|
1557
|
-
onClick: h(e,
|
|
1550
|
+
onClick: h(e, s),
|
|
1558
1551
|
children: /* @__PURE__ */ $(Z, { children: [
|
|
1559
1552
|
c,
|
|
1560
1553
|
d
|
|
@@ -1565,7 +1558,7 @@ ${Y}`;
|
|
|
1565
1558
|
};
|
|
1566
1559
|
export {
|
|
1567
1560
|
Zr as ActionBar,
|
|
1568
|
-
|
|
1561
|
+
es as Actions,
|
|
1569
1562
|
Fr as AttachmentsBar,
|
|
1570
1563
|
kr as AttachmentsBarActions,
|
|
1571
1564
|
Mr as AttachmentsBarAttachment,
|
|
@@ -1599,9 +1592,9 @@ export {
|
|
|
1599
1592
|
Nr as AttachmentsBarModalHelp,
|
|
1600
1593
|
xr as AttachmentsBarModalOverlay,
|
|
1601
1594
|
_e as ChatAction,
|
|
1602
|
-
|
|
1595
|
+
rs as ChatActionFeedback,
|
|
1603
1596
|
Bi as ChatActionLabel,
|
|
1604
|
-
|
|
1597
|
+
os as ChatHelpAction,
|
|
1605
1598
|
cn as Content,
|
|
1606
1599
|
dn as ContentScrollArea,
|
|
1607
1600
|
un as ContentScrollAreaCorner,
|
|
@@ -1616,7 +1609,7 @@ export {
|
|
|
1616
1609
|
gn as DisclaimerTrigger,
|
|
1617
1610
|
Xn as DynamicComponent,
|
|
1618
1611
|
Zr as EmbeddedChatPrimitiveActionBar,
|
|
1619
|
-
|
|
1612
|
+
es as EmbeddedChatPrimitiveActions,
|
|
1620
1613
|
Fr as EmbeddedChatPrimitiveAttachmentsBar,
|
|
1621
1614
|
kr as EmbeddedChatPrimitiveAttachmentsBarActions,
|
|
1622
1615
|
Mr as EmbeddedChatPrimitiveAttachmentsBarAttachment,
|
|
@@ -1650,9 +1643,9 @@ export {
|
|
|
1650
1643
|
Nr as EmbeddedChatPrimitiveAttachmentsBarModalHelp,
|
|
1651
1644
|
xr as EmbeddedChatPrimitiveAttachmentsBarModalOverlay,
|
|
1652
1645
|
_e as EmbeddedChatPrimitiveChatAction,
|
|
1653
|
-
|
|
1646
|
+
rs as EmbeddedChatPrimitiveChatActionFeedback,
|
|
1654
1647
|
Bi as EmbeddedChatPrimitiveChatActionLabel,
|
|
1655
|
-
|
|
1648
|
+
os as EmbeddedChatPrimitiveChatHelpAction,
|
|
1656
1649
|
cn as EmbeddedChatPrimitiveContent,
|
|
1657
1650
|
dn as EmbeddedChatPrimitiveContentScrollArea,
|
|
1658
1651
|
un as EmbeddedChatPrimitiveContentScrollAreaCorner,
|
|
@@ -1671,68 +1664,66 @@ export {
|
|
|
1671
1664
|
Pn as EmbeddedChatPrimitiveExampleQuestions,
|
|
1672
1665
|
Fn as EmbeddedChatPrimitiveExampleQuestionsLabel,
|
|
1673
1666
|
fn as EmbeddedChatPrimitiveExampleQuestionsList,
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1667
|
+
_s as EmbeddedChatPrimitiveFeedbackForm,
|
|
1668
|
+
As as EmbeddedChatPrimitiveFeedbackItem,
|
|
1669
|
+
Ps as EmbeddedChatPrimitiveFeedbackItemCheckbox,
|
|
1670
|
+
Fs as EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator,
|
|
1671
|
+
Ms as EmbeddedChatPrimitiveFeedbackItemDescription,
|
|
1672
|
+
fs as EmbeddedChatPrimitiveFeedbackItemLabel,
|
|
1673
|
+
us as EmbeddedChatPrimitiveFeedbackModal,
|
|
1674
|
+
bs as EmbeddedChatPrimitiveFeedbackModalBody,
|
|
1675
|
+
gs as EmbeddedChatPrimitiveFeedbackModalClose,
|
|
1676
|
+
ps as EmbeddedChatPrimitiveFeedbackModalContent,
|
|
1677
|
+
vs as EmbeddedChatPrimitiveFeedbackModalHeader,
|
|
1678
|
+
Cs as EmbeddedChatPrimitiveFeedbackModalOverlay,
|
|
1679
|
+
Is as EmbeddedChatPrimitiveFeedbackSubmitButton,
|
|
1687
1680
|
vr as EmbeddedChatPrimitiveFooter,
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1681
|
+
Ss as EmbeddedChatPrimitiveForm,
|
|
1682
|
+
Xs as EmbeddedChatPrimitiveFormCancel,
|
|
1683
|
+
ks as EmbeddedChatPrimitiveFormClose,
|
|
1684
|
+
ws as EmbeddedChatPrimitiveFormContent,
|
|
1685
|
+
Ts as EmbeddedChatPrimitiveFormDescription,
|
|
1686
|
+
Ys as EmbeddedChatPrimitiveFormError,
|
|
1687
|
+
Hs as EmbeddedChatPrimitiveFormField,
|
|
1688
|
+
Ws as EmbeddedChatPrimitiveFormFieldCheckbox,
|
|
1689
|
+
Rs as EmbeddedChatPrimitiveFormFieldCheckboxIndicator,
|
|
1690
|
+
xs as EmbeddedChatPrimitiveFormFieldEmail,
|
|
1691
|
+
Gs as EmbeddedChatPrimitiveFormFieldError,
|
|
1692
|
+
Ds as EmbeddedChatPrimitiveFormFieldFile,
|
|
1693
|
+
Ls as EmbeddedChatPrimitiveFormFieldLabel,
|
|
1694
|
+
Ns as EmbeddedChatPrimitiveFormFieldSelect,
|
|
1695
|
+
Us as EmbeddedChatPrimitiveFormFieldSelectContent,
|
|
1696
|
+
Qs as EmbeddedChatPrimitiveFormFieldSelectIcon,
|
|
1697
|
+
qs as EmbeddedChatPrimitiveFormFieldSelectItem,
|
|
1698
|
+
zs as EmbeddedChatPrimitiveFormFieldSelectItemIndicator,
|
|
1699
|
+
js as EmbeddedChatPrimitiveFormFieldSelectItemText,
|
|
1700
|
+
Vs as EmbeddedChatPrimitiveFormFieldSelectTrigger,
|
|
1701
|
+
$s as EmbeddedChatPrimitiveFormFieldSelectValue,
|
|
1702
|
+
Ks as EmbeddedChatPrimitiveFormFieldSelectViewport,
|
|
1710
1703
|
Ae as EmbeddedChatPrimitiveFormFieldText,
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1704
|
+
Os as EmbeddedChatPrimitiveFormFieldTextArea,
|
|
1705
|
+
Js as EmbeddedChatPrimitiveFormFooter,
|
|
1706
|
+
Bs as EmbeddedChatPrimitiveFormHeader,
|
|
1707
|
+
ys as EmbeddedChatPrimitiveFormHeading,
|
|
1708
|
+
Zs as EmbeddedChatPrimitiveFormSubmit,
|
|
1709
|
+
eo as EmbeddedChatPrimitiveFormSuccess,
|
|
1710
|
+
ao as EmbeddedChatPrimitiveFormSuccessButton,
|
|
1711
|
+
to as EmbeddedChatPrimitiveFormSuccessHeading,
|
|
1712
|
+
io as EmbeddedChatPrimitiveFormSuccessMessage,
|
|
1713
|
+
Es as EmbeddedChatPrimitiveFormWrapper,
|
|
1721
1714
|
rn as EmbeddedChatPrimitiveHeaderToolbar,
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1715
|
+
ss as EmbeddedChatPrimitiveHelpActions,
|
|
1716
|
+
ds as EmbeddedChatPrimitiveHelpActionsMenu,
|
|
1717
|
+
ms as EmbeddedChatPrimitiveHelpActionsMenuArrow,
|
|
1718
|
+
ls as EmbeddedChatPrimitiveHelpActionsMenuItem,
|
|
1719
|
+
hs as EmbeddedChatPrimitiveHelpActionsMenuItemIcon,
|
|
1720
|
+
cs as EmbeddedChatPrimitiveHelpActionsTrigger,
|
|
1728
1721
|
_r as EmbeddedChatPrimitiveInput,
|
|
1729
1722
|
gr as EmbeddedChatPrimitiveInputFieldset,
|
|
1730
1723
|
br as EmbeddedChatPrimitiveInputGroup,
|
|
1731
1724
|
yn as EmbeddedChatPrimitiveIntroMessageWrapper,
|
|
1732
1725
|
Jn as EmbeddedChatPrimitiveMarkdown,
|
|
1733
1726
|
ar as EmbeddedChatPrimitiveMessageAction,
|
|
1734
|
-
ir as EmbeddedChatPrimitiveMessageAnnotationAction,
|
|
1735
|
-
tr as EmbeddedChatPrimitiveMessageAnnotationActions,
|
|
1736
1727
|
Nn as EmbeddedChatPrimitiveMessageAttachments,
|
|
1737
1728
|
$n as EmbeddedChatPrimitiveMessageAttachmentsItem,
|
|
1738
1729
|
Qn as EmbeddedChatPrimitiveMessageAttachmentsItemIcon,
|
|
@@ -1750,10 +1741,12 @@ export {
|
|
|
1750
1741
|
Dn as EmbeddedChatPrimitiveMessageAvatarImage,
|
|
1751
1742
|
Rn as EmbeddedChatPrimitiveMessageContent,
|
|
1752
1743
|
Wn as EmbeddedChatPrimitiveMessageContentWrapper,
|
|
1744
|
+
ir as EmbeddedChatPrimitiveMessageCustomAction,
|
|
1745
|
+
tr as EmbeddedChatPrimitiveMessageCustomActions,
|
|
1753
1746
|
Tn as EmbeddedChatPrimitiveMessageHeader,
|
|
1754
1747
|
wn as EmbeddedChatPrimitiveMessageLoading,
|
|
1755
1748
|
On as EmbeddedChatPrimitiveMessageName,
|
|
1756
|
-
|
|
1749
|
+
or as EmbeddedChatPrimitiveMessageSourceItem,
|
|
1757
1750
|
cr as EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,
|
|
1758
1751
|
ur as EmbeddedChatPrimitiveMessageSourceItemDescription,
|
|
1759
1752
|
Cr as EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,
|
|
@@ -1763,19 +1756,19 @@ export {
|
|
|
1763
1756
|
lr as EmbeddedChatPrimitiveMessageSourceItemTitle,
|
|
1764
1757
|
nr as EmbeddedChatPrimitiveMessageSources,
|
|
1765
1758
|
rr as EmbeddedChatPrimitiveMessageSourcesHeader,
|
|
1766
|
-
|
|
1759
|
+
sr as EmbeddedChatPrimitiveMessageSourcesList,
|
|
1767
1760
|
er as EmbeddedChatPrimitiveMessageToolbar,
|
|
1768
1761
|
Et as EmbeddedChatPrimitiveMessageWrapper,
|
|
1769
1762
|
Cn as EmbeddedChatPrimitiveMessages,
|
|
1770
1763
|
an as EmbeddedChatPrimitiveRoot,
|
|
1771
1764
|
Ar as EmbeddedChatPrimitiveSendButton,
|
|
1772
1765
|
Pr as EmbeddedChatPrimitiveSendButtonIcon,
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1766
|
+
ns as EmbeddedChatPrimitiveTaglineBrandName,
|
|
1767
|
+
ts as EmbeddedChatPrimitiveTaglineContainer,
|
|
1768
|
+
as as EmbeddedChatPrimitiveTaglineLogo,
|
|
1769
|
+
is as EmbeddedChatPrimitiveTaglineText,
|
|
1770
|
+
on as EmbeddedChatPrimitiveToolbarHeader,
|
|
1771
|
+
sn as EmbeddedChatPrimitiveToolbarHeaderWrapper,
|
|
1779
1772
|
Bn as EmbeddedChatPrimitiveWorkflow,
|
|
1780
1773
|
En as EmbeddedChatPrimitiveWorkflows,
|
|
1781
1774
|
Sn as EmbeddedChatPrimitiveWorkflowsLabel,
|
|
@@ -1786,70 +1779,68 @@ export {
|
|
|
1786
1779
|
Pn as ExampleQuestions,
|
|
1787
1780
|
Fn as ExampleQuestionsLabel,
|
|
1788
1781
|
fn as ExampleQuestionsList,
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1782
|
+
_s as FeedbackForm,
|
|
1783
|
+
As as FeedbackItem,
|
|
1784
|
+
Ps as FeedbackItemCheckbox,
|
|
1785
|
+
Fs as FeedbackItemCheckboxIndicator,
|
|
1786
|
+
Ms as FeedbackItemDescription,
|
|
1787
|
+
fs as FeedbackItemLabel,
|
|
1788
|
+
us as FeedbackModal,
|
|
1789
|
+
bs as FeedbackModalBody,
|
|
1790
|
+
gs as FeedbackModalClose,
|
|
1791
|
+
ps as FeedbackModalContent,
|
|
1792
|
+
vs as FeedbackModalHeader,
|
|
1793
|
+
Cs as FeedbackModalOverlay,
|
|
1794
|
+
Is as FeedbackSubmitButton,
|
|
1802
1795
|
vr as Footer,
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1796
|
+
Ss as Form,
|
|
1797
|
+
Xs as FormCancel,
|
|
1798
|
+
ks as FormClose,
|
|
1799
|
+
ws as FormContent,
|
|
1800
|
+
Ts as FormDescription,
|
|
1801
|
+
Ys as FormError,
|
|
1802
|
+
Hs as FormField,
|
|
1803
|
+
Ws as FormFieldCheckbox,
|
|
1804
|
+
Rs as FormFieldCheckboxIndicator,
|
|
1805
|
+
xs as FormFieldEmail,
|
|
1806
|
+
Gs as FormFieldError,
|
|
1807
|
+
Ds as FormFieldFile,
|
|
1808
|
+
Ls as FormFieldLabel,
|
|
1809
|
+
Ns as FormFieldSelect,
|
|
1810
|
+
Us as FormFieldSelectContent,
|
|
1811
|
+
Qs as FormFieldSelectIcon,
|
|
1812
|
+
qs as FormFieldSelectItem,
|
|
1813
|
+
zs as FormFieldSelectItemIndicator,
|
|
1814
|
+
js as FormFieldSelectItemText,
|
|
1815
|
+
Vs as FormFieldSelectTrigger,
|
|
1816
|
+
$s as FormFieldSelectValue,
|
|
1817
|
+
Ks as FormFieldSelectViewport,
|
|
1825
1818
|
Ae as FormFieldText,
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1819
|
+
Os as FormFieldTextArea,
|
|
1820
|
+
Js as FormFooter,
|
|
1821
|
+
Bs as FormHeader,
|
|
1822
|
+
ys as FormHeading,
|
|
1823
|
+
Zs as FormSubmit,
|
|
1824
|
+
eo as FormSuccess,
|
|
1825
|
+
ao as FormSuccessButton,
|
|
1826
|
+
to as FormSuccessHeading,
|
|
1827
|
+
io as FormSuccessMessage,
|
|
1828
|
+
Es as FormWrapper,
|
|
1836
1829
|
nn as Header,
|
|
1837
1830
|
rn as HeaderToolbar,
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1831
|
+
sn as HeaderToolbarWrapper,
|
|
1832
|
+
ss as HelpActions,
|
|
1833
|
+
ds as HelpActionsMenu,
|
|
1834
|
+
ms as HelpActionsMenuArrow,
|
|
1835
|
+
ls as HelpActionsMenuItem,
|
|
1836
|
+
hs as HelpActionsMenuItemIcon,
|
|
1837
|
+
cs as HelpActionsTrigger,
|
|
1845
1838
|
_r as Input,
|
|
1846
1839
|
gr as InputFieldset,
|
|
1847
1840
|
br as InputGroup,
|
|
1848
1841
|
yn as IntroMessageWrapper,
|
|
1849
1842
|
Jn as Markdown,
|
|
1850
1843
|
ar as MessageAction,
|
|
1851
|
-
ir as MessageAnnotationAction,
|
|
1852
|
-
tr as MessageAnnotationActions,
|
|
1853
1844
|
Nn as MessageAttachments,
|
|
1854
1845
|
$n as MessageAttachmentsItem,
|
|
1855
1846
|
Qn as MessageAttachmentsItemIcon,
|
|
@@ -1867,10 +1858,12 @@ export {
|
|
|
1867
1858
|
Dn as MessageAvatarImage,
|
|
1868
1859
|
Rn as MessageContent,
|
|
1869
1860
|
Wn as MessageContentWrapper,
|
|
1861
|
+
ir as MessageCustomAction,
|
|
1862
|
+
tr as MessageCustomActions,
|
|
1870
1863
|
Tn as MessageHeader,
|
|
1871
1864
|
wn as MessageLoading,
|
|
1872
1865
|
On as MessageName,
|
|
1873
|
-
|
|
1866
|
+
or as MessageSourceItem,
|
|
1874
1867
|
dr as MessageSourceItemBreadcrumbIcon,
|
|
1875
1868
|
cr as MessageSourceItemBreadcrumbs,
|
|
1876
1869
|
ur as MessageSourceItemDescription,
|
|
@@ -1881,20 +1874,20 @@ export {
|
|
|
1881
1874
|
lr as MessageSourceItemTitle,
|
|
1882
1875
|
nr as MessageSources,
|
|
1883
1876
|
rr as MessageSourcesHeader,
|
|
1884
|
-
|
|
1877
|
+
sr as MessageSourcesList,
|
|
1885
1878
|
er as MessageToolbar,
|
|
1886
1879
|
Et as MessageWrapper,
|
|
1887
1880
|
Cn as Messages,
|
|
1888
1881
|
Zn as PrimitiveMessagePart,
|
|
1889
|
-
|
|
1882
|
+
so as Provider,
|
|
1890
1883
|
an as Root,
|
|
1891
1884
|
Ar as SendButton,
|
|
1892
1885
|
Pr as SendButtonIcon,
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1886
|
+
ns as TaglineBrandName,
|
|
1887
|
+
ts as TaglineContainer,
|
|
1888
|
+
as as TaglineLogo,
|
|
1889
|
+
is as TaglineText,
|
|
1890
|
+
on as ToolbarHeader,
|
|
1898
1891
|
Bn as Workflow,
|
|
1899
1892
|
En as Workflows,
|
|
1900
1893
|
Sn as WorkflowsLabel,
|