@inkeep/cxkit-primitives 0.5.35 → 0.5.36
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.
|
@@ -9,7 +9,7 @@ import * as k from "@radix-ui/react-tooltip";
|
|
|
9
9
|
import * as K from "@radix-ui/react-hover-card";
|
|
10
10
|
import * as x from "@radix-ui/react-scroll-area";
|
|
11
11
|
import * as f from "@radix-ui/react-select";
|
|
12
|
-
import { Overlay as ae, Content as ne, Close as se, Title as
|
|
12
|
+
import { Overlay as ae, Content as ne, Close as se, Title as oe, Root as re } from "../atoms/dialog.js";
|
|
13
13
|
import { HiMiniBolt as Ee } 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 ke } 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";
|
|
@@ -34,7 +34,7 @@ import { stringifyAttachments as We } from "../utils/get-message-metadata.js";
|
|
|
34
34
|
import { dataAttr as v, maybeRender as I, getInitials as Ne, 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 er } from "./embedded-chat/chat-provider.js";
|
|
38
38
|
import Re from "./tagline-logo-icon.js";
|
|
39
39
|
import { useSettleAction as $e } from "../hooks/use-settle-action.js";
|
|
40
40
|
import { useContainerSize as Qe } from "../hooks/use-container-size.js";
|
|
@@ -54,7 +54,7 @@ import { transformInkeepSource as Xe } from "../utils/transform-source/index.js"
|
|
|
54
54
|
const Ze = "__intro__", et = i("div", {
|
|
55
55
|
_id: "aiChatWrapper"
|
|
56
56
|
}), ja = Q((t, e) => {
|
|
57
|
-
const { ...a } = t, { isHidden: s, isMobile:
|
|
57
|
+
const { ...a } = t, { isHidden: s, isMobile: o } = g(), [r, c] = Qe(), d = ue(e, r), m = c?.width ? c.width > 580 : !0, l = Fe();
|
|
58
58
|
return /* @__PURE__ */ n(
|
|
59
59
|
et,
|
|
60
60
|
{
|
|
@@ -62,7 +62,7 @@ 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(o),
|
|
66
66
|
...a
|
|
67
67
|
}
|
|
68
68
|
);
|
|
@@ -96,11 +96,11 @@ const Ze = "__intro__", et = i("div", {
|
|
|
96
96
|
}), nt = i(x.Viewport, {
|
|
97
97
|
_id: "aiChatContentScrollArea__Viewport"
|
|
98
98
|
}), an = Q(({ children: t, ...e }, a) => {
|
|
99
|
-
const { containerRef: s } = Ye(),
|
|
99
|
+
const { containerRef: s } = Ye(), o = ue(a, s);
|
|
100
100
|
return /* @__PURE__ */ n(
|
|
101
101
|
nt,
|
|
102
102
|
{
|
|
103
|
-
ref:
|
|
103
|
+
ref: o,
|
|
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 })
|
|
@@ -118,26 +118,26 @@ const Ze = "__intro__", et = i("div", {
|
|
|
118
118
|
{
|
|
119
119
|
_id: "aiChatContentScrollArea__Thumb"
|
|
120
120
|
}
|
|
121
|
-
),
|
|
121
|
+
), on = i(x.Corner, {
|
|
122
122
|
_id: "aiChatContentScrollArea__Corner"
|
|
123
123
|
}), st = i("div", {
|
|
124
124
|
_id: "aiChatMessages"
|
|
125
|
-
}),
|
|
125
|
+
}), rn = (t) => {
|
|
126
126
|
const e = g(), { children: a, ...s } = t;
|
|
127
127
|
return /* @__PURE__ */ n(st, { children: I(a, e), ...s });
|
|
128
|
-
},
|
|
128
|
+
}, ot = 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(ot, { ...t }) }) : null;
|
|
134
134
|
}
|
|
135
|
-
),
|
|
135
|
+
), rt = 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(rt, { children: a?.label, ...t });
|
|
141
141
|
}
|
|
142
142
|
), mn = i(K.Trigger, {
|
|
143
143
|
_id: "aiChatDisclaimerTrigger",
|
|
@@ -157,8 +157,8 @@ const Ze = "__intro__", et = i("div", {
|
|
|
157
157
|
_id: "aiChatDisclaimerText"
|
|
158
158
|
}), hn = F(
|
|
159
159
|
(t) => {
|
|
160
|
-
const { aiChatSettings: e } = u(), a = e.aiAssistantName,
|
|
161
|
-
return /* @__PURE__ */ n(dt, { shouldOpenLinksInNewTab: !0, children:
|
|
160
|
+
const { aiChatSettings: e } = u(), a = e.aiAssistantName, o = e.disclaimerSettings?.tooltip || `Information provided by ${a || "this AI assistant"} is not guaranteed to be accurate or comprehensive.`;
|
|
161
|
+
return /* @__PURE__ */ n(dt, { shouldOpenLinksInNewTab: !0, children: o, ...t });
|
|
162
162
|
}
|
|
163
163
|
), un = i(K.Arrow, {
|
|
164
164
|
_id: "aiChatDisclaimerArrow"
|
|
@@ -178,8 +178,8 @@ const Ze = "__intro__", et = i("div", {
|
|
|
178
178
|
_id: "aiChatExampleQuestionsList"
|
|
179
179
|
}), vn = F(
|
|
180
180
|
(t) => {
|
|
181
|
-
const { aiChatSettings: e } = u(), a = e.exampleQuestions, { children: s, ...
|
|
182
|
-
return /* @__PURE__ */ n(ht, { children: I(s, a), ...
|
|
181
|
+
const { aiChatSettings: e } = u(), a = e.exampleQuestions, { children: s, ...o } = t;
|
|
182
|
+
return /* @__PURE__ */ n(ht, { children: I(s, a), ...o });
|
|
183
183
|
}
|
|
184
184
|
), ut = i("div", {
|
|
185
185
|
_id: "aiChatExampleQuestion"
|
|
@@ -189,11 +189,11 @@ const Ze = "__intro__", et = i("div", {
|
|
|
189
189
|
}), Ct = i("button", {
|
|
190
190
|
_id: "aiChatExampleQuestionButton"
|
|
191
191
|
}), _n = (t) => {
|
|
192
|
-
const { question: e, onClick: a, ...s } = t, { handleSubmit:
|
|
192
|
+
const { question: e, onClick: a, ...s } = t, { handleSubmit: o } = g();
|
|
193
193
|
return /* @__PURE__ */ n(
|
|
194
194
|
Ct,
|
|
195
195
|
{
|
|
196
|
-
onClick: h(a, () =>
|
|
196
|
+
onClick: h(a, () => o(e)),
|
|
197
197
|
children: e,
|
|
198
198
|
...s
|
|
199
199
|
}
|
|
@@ -212,17 +212,17 @@ const Ze = "__intro__", et = i("div", {
|
|
|
212
212
|
_id: "aiChatWorkflowsList"
|
|
213
213
|
}), Pn = F(
|
|
214
214
|
(t) => {
|
|
215
|
-
const { aiChatSettings: e } = u(), a = e.workflows, { children: s, ...
|
|
216
|
-
return /* @__PURE__ */ n(gt, { children: I(s, a), ...
|
|
215
|
+
const { aiChatSettings: e } = u(), a = e.workflows, { children: s, ...o } = t;
|
|
216
|
+
return /* @__PURE__ */ n(gt, { children: I(s, a), ...o });
|
|
217
217
|
}
|
|
218
218
|
), _t = i("button", {
|
|
219
219
|
_id: "aiChatWorkflow"
|
|
220
220
|
}), Fn = (t) => {
|
|
221
|
-
const { workflow: e, onClick: a, ...s } = t, { handleWorkflow:
|
|
221
|
+
const { workflow: e, onClick: a, ...s } = t, { handleWorkflow: o } = g();
|
|
222
222
|
return /* @__PURE__ */ n(
|
|
223
223
|
_t,
|
|
224
224
|
{
|
|
225
|
-
onClick: h(a, () =>
|
|
225
|
+
onClick: h(a, () => o(e)),
|
|
226
226
|
children: e.displayName,
|
|
227
227
|
...s
|
|
228
228
|
}
|
|
@@ -236,7 +236,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
236
236
|
return e.role === "system" ? null : /* @__PURE__ */ n(De, { message: e, children: /* @__PURE__ */ n(At, { "data-role": e.role, ...a }) });
|
|
237
237
|
}, In = F(
|
|
238
238
|
(t) => {
|
|
239
|
-
const { message: e, ...a } = t, { aiChatSettings: s, baseSettings:
|
|
239
|
+
const { message: e, ...a } = t, { aiChatSettings: s, baseSettings: o } = u(), r = s.aiAssistantName, c = r ? `Hi, I'm ${r}!` : "Hi!", d = s.chatSubjectName ?? o.organizationDisplayName, m = `${c}
|
|
240
240
|
|
|
241
241
|
I'm an AI assistant trained on documentation, help articles, and other content.`, l = d ? `
|
|
242
242
|
|
|
@@ -259,8 +259,8 @@ const Ze = "__intro__", et = i("div", {
|
|
|
259
259
|
}, Mt = i("div", {
|
|
260
260
|
_id: "aiChatMessageLoading"
|
|
261
261
|
}), Sn = (t) => {
|
|
262
|
-
const { isLoading: e, isStreaming: a, messages: s } = g(), { message:
|
|
263
|
-
return !(s.at(-1)?.id ===
|
|
262
|
+
const { isLoading: e, isStreaming: a, messages: s } = g(), { message: o } = _();
|
|
263
|
+
return !(s.at(-1)?.id === o?.id) || o.role !== "assistant" || !e || a ? null : /* @__PURE__ */ n(Mt, { children: "Thinking...", ...t });
|
|
264
264
|
}, It = i("div", {
|
|
265
265
|
_id: "aiChatMessageAvatar"
|
|
266
266
|
}), En = (t) => {
|
|
@@ -298,19 +298,19 @@ const Ze = "__intro__", et = i("div", {
|
|
|
298
298
|
(t) => {
|
|
299
299
|
const { onLoadingStatusChange: e, ...a } = t, {
|
|
300
300
|
aiChatSettings: s,
|
|
301
|
-
baseSettings: { userProperties:
|
|
302
|
-
} = u(), { message:
|
|
301
|
+
baseSettings: { userProperties: o }
|
|
302
|
+
} = u(), { message: r } = _(), { 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);
|
|
303
303
|
be(() => {
|
|
304
304
|
p(l);
|
|
305
305
|
}, [l]);
|
|
306
306
|
const P = (T) => {
|
|
307
307
|
T === "error" && p(null);
|
|
308
308
|
};
|
|
309
|
-
return
|
|
309
|
+
return r.role === "user" ? o.name ? null : s.userAvatar ? /* @__PURE__ */ n(
|
|
310
310
|
ge,
|
|
311
311
|
{
|
|
312
312
|
"data-type": "image",
|
|
313
|
-
"data-role":
|
|
313
|
+
"data-role": r.role,
|
|
314
314
|
src: s.userAvatar,
|
|
315
315
|
...t
|
|
316
316
|
}
|
|
@@ -318,7 +318,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
318
318
|
Te,
|
|
319
319
|
{
|
|
320
320
|
"data-type": "icon",
|
|
321
|
-
"data-role":
|
|
321
|
+
"data-role": r.role,
|
|
322
322
|
...t
|
|
323
323
|
}
|
|
324
324
|
) : C ? /* @__PURE__ */ n(
|
|
@@ -326,7 +326,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
326
326
|
{
|
|
327
327
|
src: C,
|
|
328
328
|
"data-type": "image",
|
|
329
|
-
"data-role":
|
|
329
|
+
"data-role": r.role,
|
|
330
330
|
onLoadingStatusChange: h(
|
|
331
331
|
e,
|
|
332
332
|
P
|
|
@@ -337,7 +337,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
337
337
|
Be,
|
|
338
338
|
{
|
|
339
339
|
"data-type": "icon",
|
|
340
|
-
"data-role":
|
|
340
|
+
"data-role": r.role,
|
|
341
341
|
...t
|
|
342
342
|
}
|
|
343
343
|
);
|
|
@@ -372,17 +372,17 @@ const Ze = "__intro__", et = i("div", {
|
|
|
372
372
|
}, yt = i("div", {
|
|
373
373
|
_id: "aiChatMessageAttachments__List"
|
|
374
374
|
}), xn = (t) => {
|
|
375
|
-
const { children: e, ...a } = t, { message: s } = _(),
|
|
376
|
-
return
|
|
375
|
+
const { children: e, ...a } = t, { message: s } = _(), o = s.metadata?.attributes?.attachments;
|
|
376
|
+
return o ? /* @__PURE__ */ n(yt, { children: I(e, o), ...a }) : null;
|
|
377
377
|
}, wt = i("div", {
|
|
378
378
|
_id: "aiChatMessageAttachments__Item"
|
|
379
379
|
}), Dn = (t) => {
|
|
380
|
-
const { attachment: e, onClick: a, ...s } = t, { selectItem:
|
|
380
|
+
const { attachment: e, onClick: a, ...s } = t, { selectItem: o, onOpen: r } = G();
|
|
381
381
|
return /* @__PURE__ */ n(Ae, { attachment: e, children: /* @__PURE__ */ n(
|
|
382
382
|
wt,
|
|
383
383
|
{
|
|
384
384
|
onClick: h(a, () => {
|
|
385
|
-
|
|
385
|
+
o(e), r();
|
|
386
386
|
}),
|
|
387
387
|
...s
|
|
388
388
|
}
|
|
@@ -397,16 +397,16 @@ const Ze = "__intro__", et = i("div", {
|
|
|
397
397
|
}), Wn = (t) => {
|
|
398
398
|
const { attachment: e } = D();
|
|
399
399
|
return /* @__PURE__ */ n(Lt, { children: e.title, ...t });
|
|
400
|
-
}, xt = i(
|
|
400
|
+
}, xt = i(re, {
|
|
401
401
|
_id: "aiChatMessageAttachmentsPreview"
|
|
402
402
|
}), Nn = (t) => {
|
|
403
|
-
const { onOpenChange: e, ...a } = t, { selectItem: s, isOpen:
|
|
403
|
+
const { onOpenChange: e, ...a } = t, { selectItem: s, isOpen: o, onClose: r, selectedItem: c } = G();
|
|
404
404
|
return /* @__PURE__ */ n(
|
|
405
405
|
xt,
|
|
406
406
|
{
|
|
407
|
-
open:
|
|
407
|
+
open: o && c !== null,
|
|
408
408
|
onOpenChange: h(e, (m) => {
|
|
409
|
-
m || (
|
|
409
|
+
m || (r(), s(null));
|
|
410
410
|
}),
|
|
411
411
|
...a
|
|
412
412
|
}
|
|
@@ -416,7 +416,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
416
416
|
}), $n = i(ne, {
|
|
417
417
|
_id: "aiChatMessageAttachmentsPreview__Content",
|
|
418
418
|
"aria-describedby": void 0
|
|
419
|
-
}), Dt = i(
|
|
419
|
+
}), Dt = i(oe, {
|
|
420
420
|
_id: "aiChatMessageAttachmentsPreview__Header"
|
|
421
421
|
}), Qn = (t) => {
|
|
422
422
|
const { selectedItem: e } = G();
|
|
@@ -438,15 +438,15 @@ const Ze = "__intro__", et = i("div", {
|
|
|
438
438
|
}, _e = i("div", {
|
|
439
439
|
_id: "aiChatMessage"
|
|
440
440
|
}), Kn = (t) => {
|
|
441
|
-
const { aiChatSettings: e } = u(), { componentStyles: a, ...s } = t, { message:
|
|
442
|
-
return
|
|
441
|
+
const { aiChatSettings: e } = u(), { componentStyles: a, ...s } = t, { message: o } = _(), { logEvent: r } = j(), c = le(o), { conversation: d } = q();
|
|
442
|
+
return o.role === "user" ? /* @__PURE__ */ n(_e, { "data-role": o.role, children: c, ...s }) : /* @__PURE__ */ n(_e, { "data-role": o.role, ...s, children: /* @__PURE__ */ n(
|
|
443
443
|
ce,
|
|
444
444
|
{
|
|
445
445
|
children: c,
|
|
446
446
|
componentStyles: a,
|
|
447
447
|
shouldOpenLinksInNewTab: e.shouldOpenLinksInNewTab,
|
|
448
448
|
onLinkClick: (m, l) => {
|
|
449
|
-
|
|
449
|
+
r({
|
|
450
450
|
eventName: "assistant_message_inline_link_opened",
|
|
451
451
|
properties: {
|
|
452
452
|
title: l?.toString(),
|
|
@@ -455,7 +455,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
455
455
|
});
|
|
456
456
|
},
|
|
457
457
|
onCodeCopy: (m, l) => {
|
|
458
|
-
|
|
458
|
+
r({
|
|
459
459
|
eventName: "assistant_code_block_copied",
|
|
460
460
|
properties: {
|
|
461
461
|
conversation: d,
|
|
@@ -474,11 +474,11 @@ const Ze = "__intro__", et = i("div", {
|
|
|
474
474
|
}, Nt = i("div", {
|
|
475
475
|
_id: "aiChatMessageToolActions"
|
|
476
476
|
}), jn = (t) => {
|
|
477
|
-
const { children: e, ...a } = t, { message: s } = _(), { messageToolCalls:
|
|
478
|
-
return /* @__PURE__ */ n(Nt, { children: I(e,
|
|
477
|
+
const { children: e, ...a } = t, { message: s } = _(), { messageToolCalls: o } = g(), r = o[s.id] || [];
|
|
478
|
+
return /* @__PURE__ */ n(Nt, { children: I(e, r), ...a });
|
|
479
479
|
}, Gn = (t) => {
|
|
480
|
-
const { onClick: e, action: a, ...s } = t, { handleAction:
|
|
481
|
-
|
|
480
|
+
const { onClick: e, action: a, ...s } = t, { handleAction: o } = he(a), r = () => {
|
|
481
|
+
o();
|
|
482
482
|
}, c = a.label || "Contact Support", d = /* @__PURE__ */ $(ee, { children: [
|
|
483
483
|
a.icon && /* @__PURE__ */ n(B, { iconSettings: a.icon }),
|
|
484
484
|
c
|
|
@@ -491,13 +491,13 @@ const Ze = "__intro__", et = i("div", {
|
|
|
491
491
|
target: "_blank",
|
|
492
492
|
rel: "noopener"
|
|
493
493
|
},
|
|
494
|
-
onClick: h(e,
|
|
494
|
+
onClick: h(e, r)
|
|
495
495
|
});
|
|
496
496
|
return /* @__PURE__ */ n(l, { ...s });
|
|
497
497
|
}, Rt = i("button", {
|
|
498
498
|
_id: "aiChatMessageAction"
|
|
499
499
|
}), zn = (t) => {
|
|
500
|
-
const { action: e, onClick: a, className: s, ...
|
|
500
|
+
const { action: e, onClick: a, className: s, ...o } = t, { conversation: r } = 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] = $e(), {
|
|
501
501
|
baseSettings: { privacyPreferences: Ce }
|
|
502
502
|
} = u(), { optOutAllAnalytics: J } = Ce, pe = m.at(-1)?.id === c?.id, X = c.role === "assistant";
|
|
503
503
|
if (pe && d || !X || {
|
|
@@ -510,7 +510,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
510
510
|
C(le(c)), z({
|
|
511
511
|
eventName: "assistant_message_copied",
|
|
512
512
|
properties: {
|
|
513
|
-
conversation:
|
|
513
|
+
conversation: r
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
516
|
},
|
|
@@ -549,7 +549,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
549
549
|
"aria-label": L[e],
|
|
550
550
|
className: `${s} ${e}`,
|
|
551
551
|
onClick: h(a, y[e]),
|
|
552
|
-
...
|
|
552
|
+
...o
|
|
553
553
|
}
|
|
554
554
|
);
|
|
555
555
|
}, $t = i("div", {
|
|
@@ -563,16 +563,16 @@ const Ze = "__intro__", et = i("div", {
|
|
|
563
563
|
_id: "aiChatMessageSources__List"
|
|
564
564
|
}), Xn = (t) => {
|
|
565
565
|
const { message: e } = _(), { children: a, ...s } = t, {
|
|
566
|
-
baseSettings: { transformSource:
|
|
566
|
+
baseSettings: { transformSource: o, organizationDisplayName: r },
|
|
567
567
|
aiChatSettings: { shouldOpenLinksInNewTab: c },
|
|
568
568
|
searchSettings: { tabs: d }
|
|
569
569
|
} = u();
|
|
570
570
|
if (e.role !== "assistant") return null;
|
|
571
571
|
const m = e.links.map((l) => {
|
|
572
572
|
const C = Xe(l, "chatSourceItem", {
|
|
573
|
-
organizationDisplayName:
|
|
573
|
+
organizationDisplayName: r,
|
|
574
574
|
tabs: d,
|
|
575
|
-
transformSource:
|
|
575
|
+
transformSource: o
|
|
576
576
|
}), p = C.shouldOpenInNewTab !== void 0 ? C.shouldOpenInNewTab : c;
|
|
577
577
|
return { ...C, isExternal: p };
|
|
578
578
|
});
|
|
@@ -580,11 +580,11 @@ const Ze = "__intro__", et = i("div", {
|
|
|
580
580
|
}, Ut = i(ye, {
|
|
581
581
|
_id: "aiChatMessageSourceItem"
|
|
582
582
|
}), Zn = (t) => {
|
|
583
|
-
const { source: e, onClick: a, ...s } = t, { logEvent:
|
|
584
|
-
|
|
583
|
+
const { source: e, onClick: a, ...s } = t, { logEvent: o } = j(), { conversation: r } = q(), c = () => {
|
|
584
|
+
o({
|
|
585
585
|
eventName: "assistant_source_item_clicked",
|
|
586
586
|
properties: {
|
|
587
|
-
conversation:
|
|
587
|
+
conversation: r,
|
|
588
588
|
link: e
|
|
589
589
|
}
|
|
590
590
|
});
|
|
@@ -626,18 +626,18 @@ const Ze = "__intro__", et = i("div", {
|
|
|
626
626
|
}, zt = i("span", {
|
|
627
627
|
_id: "aiChatMessageSourceItem__Description"
|
|
628
628
|
}), ss = (t) => {
|
|
629
|
-
const { source: e } = w(), { children: a, ...s } = t,
|
|
630
|
-
return
|
|
629
|
+
const { source: e } = w(), { children: a, ...s } = t, o = Se(() => e.description ? Ge(e.description) : [], [e.description]);
|
|
630
|
+
return o.length ? /* @__PURE__ */ n(
|
|
631
631
|
zt,
|
|
632
632
|
{
|
|
633
633
|
"data-type": e.type,
|
|
634
|
-
children: I(a,
|
|
634
|
+
children: I(a, o),
|
|
635
635
|
...s
|
|
636
636
|
}
|
|
637
637
|
) : null;
|
|
638
638
|
}, Yt = i("span", {
|
|
639
639
|
_id: "aiChatMessageSourceItem__DescriptionPart"
|
|
640
|
-
}),
|
|
640
|
+
}), os = (t) => {
|
|
641
641
|
const { part: e, ...a } = t, { source: s } = w();
|
|
642
642
|
return typeof e == "string" ? e : /* @__PURE__ */ n(
|
|
643
643
|
Yt,
|
|
@@ -650,7 +650,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
650
650
|
);
|
|
651
651
|
}, Jt = i(A, {
|
|
652
652
|
_id: "aiChatMessageSourceItem__Indicator"
|
|
653
|
-
}),
|
|
653
|
+
}), rs = (t) => {
|
|
654
654
|
const { source: e } = w();
|
|
655
655
|
return /* @__PURE__ */ n(
|
|
656
656
|
Jt,
|
|
@@ -668,7 +668,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
668
668
|
}), Xt = i("textarea", {
|
|
669
669
|
_id: "aiChatInput"
|
|
670
670
|
}), ls = Q(({ onChange: t, onKeyDown: e, ...a }, s) => {
|
|
671
|
-
const { handleInputChange:
|
|
671
|
+
const { handleInputChange: o, handleInputKeyDown: r, input: c, error: d, shouldAutoFocusInput: m, inputRef: l } = g(), { aiChatSettings: C } = u(), p = ue(
|
|
672
672
|
s,
|
|
673
673
|
l
|
|
674
674
|
), P = Fe();
|
|
@@ -684,8 +684,8 @@ const Ze = "__intro__", et = i("div", {
|
|
|
684
684
|
maxLength: 99999,
|
|
685
685
|
placeholder: C.placeholder,
|
|
686
686
|
value: c,
|
|
687
|
-
onChange: h(t,
|
|
688
|
-
onKeyDown: h(e,
|
|
687
|
+
onChange: h(t, o),
|
|
688
|
+
onKeyDown: h(e, r),
|
|
689
689
|
disabled: !!d || C.isViewOnly,
|
|
690
690
|
...a,
|
|
691
691
|
children: /* @__PURE__ */ n(te, {})
|
|
@@ -694,13 +694,13 @@ const Ze = "__intro__", et = i("div", {
|
|
|
694
694
|
}), Zt = i("button", {
|
|
695
695
|
_id: "aiChatInput__SendButton"
|
|
696
696
|
}), hs = (t) => {
|
|
697
|
-
const { handleSubmit: e, isSubmitDisabled: a, error: s } = g(), { aiChatSettings:
|
|
697
|
+
const { handleSubmit: e, isSubmitDisabled: a, error: s } = g(), { aiChatSettings: o } = u(), { onClick: r, ...c } = t;
|
|
698
698
|
return /* @__PURE__ */ n(
|
|
699
699
|
Zt,
|
|
700
700
|
{
|
|
701
|
-
onClick: h(
|
|
701
|
+
onClick: h(r, () => e()),
|
|
702
702
|
"aria-label": "Send message",
|
|
703
|
-
disabled: a || !!s ||
|
|
703
|
+
disabled: a || !!s || o.isViewOnly,
|
|
704
704
|
...c
|
|
705
705
|
}
|
|
706
706
|
);
|
|
@@ -735,14 +735,14 @@ const Ze = "__intro__", et = i("div", {
|
|
|
735
735
|
}, si = i("button", {
|
|
736
736
|
_id: "aiChatAttachmentsBar__AttachmentDelete"
|
|
737
737
|
}), bs = (t) => {
|
|
738
|
-
const { onClick: e, ...a } = t, { attachment: s } = D(), { setMessageAttachments:
|
|
738
|
+
const { onClick: e, ...a } = t, { attachment: s } = D(), { setMessageAttachments: o } = g();
|
|
739
739
|
return /* @__PURE__ */ n(
|
|
740
740
|
si,
|
|
741
741
|
{
|
|
742
742
|
"aria-label": "Remove attachment",
|
|
743
743
|
children: /* @__PURE__ */ n(A, { iconKey: "close" }),
|
|
744
744
|
onClick: h(e, () => {
|
|
745
|
-
|
|
745
|
+
o((c) => c.filter((d) => d.id !== s.id));
|
|
746
746
|
}),
|
|
747
747
|
...a
|
|
748
748
|
}
|
|
@@ -755,7 +755,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
755
755
|
}), Fs = i(k.Trigger, {
|
|
756
756
|
_id: "aiChatAttachmentsBar__InfoTipIcon",
|
|
757
757
|
children: /* @__PURE__ */ n(A, { iconKey: "info" })
|
|
758
|
-
}),
|
|
758
|
+
}), oi = i(k.Arrow, {
|
|
759
759
|
_id: "aiChatAttachmentsBar__InfoTipArrow"
|
|
760
760
|
}), Ms = i(k.Content, {
|
|
761
761
|
_id: "aiChatAttachmentsBar__InfoTipText",
|
|
@@ -763,15 +763,15 @@ const Ze = "__intro__", et = i("div", {
|
|
|
763
763
|
sideOffset: 3,
|
|
764
764
|
align: "center",
|
|
765
765
|
children: /* @__PURE__ */ $(ee, { children: [
|
|
766
|
-
/* @__PURE__ */ n(
|
|
766
|
+
/* @__PURE__ */ n(oi, {}),
|
|
767
767
|
"Attachments will be kept in context for the entire conversation."
|
|
768
768
|
] })
|
|
769
|
-
}),
|
|
769
|
+
}), ri = i("div", {
|
|
770
770
|
_id: "aiChatAttachmentsBar__Inputs"
|
|
771
771
|
}), Is = (t) => {
|
|
772
772
|
const { children: e, ...a } = t, { selectedWorkflow: s } = g();
|
|
773
773
|
return s?.supportedInputs ? /* @__PURE__ */ n(
|
|
774
|
-
|
|
774
|
+
ri,
|
|
775
775
|
{
|
|
776
776
|
children: I(e, s.supportedInputs),
|
|
777
777
|
...a
|
|
@@ -780,9 +780,9 @@ const Ze = "__intro__", et = i("div", {
|
|
|
780
780
|
}, ci = i("button", {
|
|
781
781
|
_id: "aiChatAttachmentsBar__Input"
|
|
782
782
|
}), fs = (t) => {
|
|
783
|
-
const { input: e, onClick: a, ...s } = t, { selectedWorkflow:
|
|
783
|
+
const { input: e, onClick: a, ...s } = t, { selectedWorkflow: o, messageAttachments: r, setMessageAttachments: c } = g(), { selectInput: d, onOpen: m } = M(), l = () => {
|
|
784
784
|
if (e.type === "FUNCTIONAL_MULTI_ATTACHMENT")
|
|
785
|
-
return
|
|
785
|
+
return o ? e.onInvoke(o, e, c, [...r]) : void 0;
|
|
786
786
|
d(e), m();
|
|
787
787
|
};
|
|
788
788
|
return /* @__PURE__ */ n(
|
|
@@ -795,16 +795,16 @@ const Ze = "__intro__", et = i("div", {
|
|
|
795
795
|
);
|
|
796
796
|
}, Ss = i(ke, {
|
|
797
797
|
_id: "aiChatAttachmentsBar__InputIcon"
|
|
798
|
-
}), di = i(
|
|
798
|
+
}), di = i(re, {
|
|
799
799
|
_id: "aiChatAttachmentsBar__Modal"
|
|
800
800
|
}), Es = (t) => {
|
|
801
|
-
const { onOpenChange: e, ...a } = t, { selectInput: s, isOpen:
|
|
801
|
+
const { onOpenChange: e, ...a } = t, { selectInput: s, isOpen: o, onClose: r, selectedInput: c } = M();
|
|
802
802
|
return /* @__PURE__ */ n(
|
|
803
803
|
di,
|
|
804
804
|
{
|
|
805
|
-
open:
|
|
805
|
+
open: o && c !== null,
|
|
806
806
|
onOpenChange: h(e, (m) => {
|
|
807
|
-
m || (
|
|
807
|
+
m || (r(), s(null));
|
|
808
808
|
}),
|
|
809
809
|
...a
|
|
810
810
|
}
|
|
@@ -816,7 +816,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
816
816
|
"aria-describedby": void 0
|
|
817
817
|
}), Ts = i("div", {
|
|
818
818
|
_id: "aiChatAttachmentsBar__ModalHeader"
|
|
819
|
-
}), mi = i(
|
|
819
|
+
}), mi = i(oe, {
|
|
820
820
|
_id: "aiChatAttachmentsBar__ModalHeading"
|
|
821
821
|
}), ys = (t) => {
|
|
822
822
|
const { selectedInput: e } = M(), a = `Add ${e?.displayName}`;
|
|
@@ -829,8 +829,8 @@ const Ze = "__intro__", et = i("div", {
|
|
|
829
829
|
}, hi = i("div", {
|
|
830
830
|
_id: "aiChatAttachmentsBar__ModalHelp"
|
|
831
831
|
}), Hs = (t) => {
|
|
832
|
-
const { children: e, ...a } = t, { selectedInput: s } = M(),
|
|
833
|
-
return
|
|
832
|
+
const { children: e, ...a } = t, { selectedInput: s } = M(), o = s?.workflowModalProps?.modalHelpElement;
|
|
833
|
+
return o ? /* @__PURE__ */ n(hi, { asChild: !e, children: e || o, ...a }) : null;
|
|
834
834
|
}, Ls = i(se, {
|
|
835
835
|
_id: "aiChatAttachmentsBar__ModalClose",
|
|
836
836
|
children: /* @__PURE__ */ n(A, { iconKey: "close" })
|
|
@@ -865,13 +865,13 @@ const Ze = "__intro__", et = i("div", {
|
|
|
865
865
|
}, pi = i("input", {
|
|
866
866
|
_id: "aiChatAttachmentsBar__FormTitleInput"
|
|
867
867
|
}), Ns = (t) => {
|
|
868
|
-
const { onChange: e, ...a } = t, { form: s, selectedInput:
|
|
868
|
+
const { onChange: e, ...a } = t, { form: s, selectedInput: o } = M();
|
|
869
869
|
return /* @__PURE__ */ n(
|
|
870
870
|
pi,
|
|
871
871
|
{
|
|
872
872
|
name: "title",
|
|
873
873
|
value: s.data.title,
|
|
874
|
-
id: `${
|
|
874
|
+
id: `${o?.id}-title`,
|
|
875
875
|
"data-invalid": v(!!s.errors.title),
|
|
876
876
|
"aria-invalid": !!s.errors.title,
|
|
877
877
|
onChange: h(e, s.onChange),
|
|
@@ -908,7 +908,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
908
908
|
}, _i = i("textarea", {
|
|
909
909
|
_id: "aiChatAttachmentsBar__FormTitleInput"
|
|
910
910
|
}), Vs = (t) => {
|
|
911
|
-
const { onChange: e, ...a } = t, { form: s, selectedInput:
|
|
911
|
+
const { onChange: e, ...a } = t, { form: s, selectedInput: o } = M();
|
|
912
912
|
return /* @__PURE__ */ n(
|
|
913
913
|
_i,
|
|
914
914
|
{
|
|
@@ -916,7 +916,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
916
916
|
rows: 4,
|
|
917
917
|
name: "content",
|
|
918
918
|
value: s.data.content,
|
|
919
|
-
id: `${
|
|
919
|
+
id: `${o?.id}-content`,
|
|
920
920
|
"data-invalid": v(!!s.errors.content),
|
|
921
921
|
"aria-invalid": !!s.errors.content,
|
|
922
922
|
onChange: h(e, s.onChange),
|
|
@@ -960,7 +960,7 @@ const Ze = "__intro__", et = i("div", {
|
|
|
960
960
|
}), Ai = i("div", {
|
|
961
961
|
_id: "aiChat__ChatAction"
|
|
962
962
|
}), Me = (t) => {
|
|
963
|
-
const { action: e, onClick: a, className: s, ...
|
|
963
|
+
const { action: e, onClick: a, className: s, ...o } = t, { clear: r, 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();
|
|
964
964
|
if ({
|
|
965
965
|
help: !1,
|
|
966
966
|
copy: m.length === 0 || !p.isCopyChatButtonVisible || d,
|
|
@@ -996,6 +996,8 @@ ${S}${R}`;
|
|
|
996
996
|
userProperties: {},
|
|
997
997
|
messages: C.messages.map((E) => ({
|
|
998
998
|
...E,
|
|
999
|
+
createdAt: void 0,
|
|
1000
|
+
updatedAt: void 0,
|
|
999
1001
|
id: Date.now().toString() + E.id,
|
|
1000
1002
|
conversationId: void 0
|
|
1001
1003
|
}))
|
|
@@ -1018,7 +1020,7 @@ ${S}${R}`;
|
|
|
1018
1020
|
});
|
|
1019
1021
|
}
|
|
1020
1022
|
},
|
|
1021
|
-
clear:
|
|
1023
|
+
clear: r,
|
|
1022
1024
|
stop: c
|
|
1023
1025
|
}, ve = {
|
|
1024
1026
|
copy: O,
|
|
@@ -1032,44 +1034,44 @@ ${S}${R}`;
|
|
|
1032
1034
|
className: `${s} ${e}`,
|
|
1033
1035
|
children: /* @__PURE__ */ n(Fi, { action: e }),
|
|
1034
1036
|
onClick: h(a, X[e]),
|
|
1035
|
-
...
|
|
1037
|
+
...o
|
|
1036
1038
|
}
|
|
1037
1039
|
) });
|
|
1038
1040
|
}, Pi = i(k.Trigger, {
|
|
1039
1041
|
_id: "aiChat__ChatActionLabel"
|
|
1040
1042
|
}), Fi = (t) => {
|
|
1041
|
-
const { action: e, ...a } = t, { aiChatSettings: s } = u(),
|
|
1042
|
-
help:
|
|
1043
|
-
copy:
|
|
1044
|
-
share:
|
|
1045
|
-
clear:
|
|
1046
|
-
stop:
|
|
1043
|
+
const { action: e, ...a } = t, { aiChatSettings: s } = u(), o = s.toolbarButtonLabels ?? {}, r = {
|
|
1044
|
+
help: o.getHelp ?? "Get Help",
|
|
1045
|
+
copy: o.copyChat ?? "Copy",
|
|
1046
|
+
share: o.share ?? "Share",
|
|
1047
|
+
clear: o.clear ?? "Clear",
|
|
1048
|
+
stop: o.stop ?? "Stop"
|
|
1047
1049
|
};
|
|
1048
|
-
return /* @__PURE__ */ n(Pi, { children:
|
|
1050
|
+
return /* @__PURE__ */ n(Pi, { children: r[e], ...a });
|
|
1049
1051
|
}, Mi = i(k.TooltipContent, {
|
|
1050
1052
|
_id: "aiChat__ChatActionFeeback"
|
|
1051
1053
|
}), Xs = (t) => {
|
|
1052
|
-
const { action: e, children: a, ...s } = t,
|
|
1054
|
+
const { action: e, children: a, ...s } = t, o = {
|
|
1053
1055
|
copy: "Copied!",
|
|
1054
1056
|
share: "Link copied!"
|
|
1055
1057
|
};
|
|
1056
1058
|
return /* @__PURE__ */ $(Mi, { sideOffset: 5, ...s, children: [
|
|
1057
1059
|
/* @__PURE__ */ n(k.Arrow, {}),
|
|
1058
|
-
a ||
|
|
1060
|
+
a || o[e]
|
|
1059
1061
|
] });
|
|
1060
1062
|
}, Ii = i(U.Root, {
|
|
1061
1063
|
_id: "aiChatHelpActions"
|
|
1062
1064
|
}), Zs = (t) => {
|
|
1063
|
-
const { children: e, ...a } = t, { aiChatSettings: s } = u(), { getHelpOptions:
|
|
1064
|
-
if (!
|
|
1065
|
+
const { children: e, ...a } = t, { aiChatSettings: s } = u(), { getHelpOptions: o } = s;
|
|
1066
|
+
if (!o || (o ?? []).length === 0)
|
|
1065
1067
|
return null;
|
|
1066
|
-
const { _pinned:
|
|
1068
|
+
const { _pinned: r, _unpinned: c } = o.reduce(
|
|
1067
1069
|
(C, p) => {
|
|
1068
1070
|
const P = p.isPinnedToToolbar ? "_pinned" : "_unpinned";
|
|
1069
1071
|
return { ...C, [P]: [...C[P], p] };
|
|
1070
1072
|
},
|
|
1071
1073
|
{ _pinned: [], _unpinned: [] }
|
|
1072
|
-
), d = c.length === 1 ? [...
|
|
1074
|
+
), d = c.length === 1 ? [...r, c[0]] : r, m = c.length === 1 ? [] : c, l = Ve();
|
|
1073
1075
|
return /* @__PURE__ */ n(Ue, { value: l, children: /* @__PURE__ */ n(
|
|
1074
1076
|
Ii,
|
|
1075
1077
|
{
|
|
@@ -1086,13 +1088,13 @@ ${S}${R}`;
|
|
|
1086
1088
|
_id: "aiChatHelpAction",
|
|
1087
1089
|
target: "_blank",
|
|
1088
1090
|
rel: "noreferrer"
|
|
1089
|
-
}),
|
|
1090
|
-
const { action: e, onClick: a, ...s } = t, { handleAction:
|
|
1091
|
+
}), eo = (t) => {
|
|
1092
|
+
const { action: e, onClick: a, ...s } = t, { handleAction: o, logHelpAction: r } = he(e), c = e.action.type, d = {
|
|
1091
1093
|
"aria-label": e.name,
|
|
1092
1094
|
"data-name": e.name,
|
|
1093
1095
|
children: e.name,
|
|
1094
1096
|
onClick: h(a, () => {
|
|
1095
|
-
|
|
1097
|
+
o(), r();
|
|
1096
1098
|
}),
|
|
1097
1099
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
1098
1100
|
...s
|
|
@@ -1100,14 +1102,14 @@ ${S}${R}`;
|
|
|
1100
1102
|
return c === "open_link" ? /* @__PURE__ */ n(Si, { href: e.action.url, ...d }) : /* @__PURE__ */ n(fi, { ...d });
|
|
1101
1103
|
}, Ei = i(U.Trigger, {
|
|
1102
1104
|
_id: "aiChatHelpActions__Trigger"
|
|
1103
|
-
}),
|
|
1105
|
+
}), to = F(
|
|
1104
1106
|
(t) => {
|
|
1105
1107
|
const { aiChatSettings: e } = u();
|
|
1106
1108
|
return /* @__PURE__ */ n(Me, { action: "help", ...t, asChild: !0, children: /* @__PURE__ */ n(Ei, { children: e.toolbarButtonLabels?.getHelp ?? "Get Help" }) });
|
|
1107
1109
|
}
|
|
1108
1110
|
), ki = i(U.Content, {
|
|
1109
1111
|
_id: "aiChatHelpActions__Menu"
|
|
1110
|
-
}),
|
|
1112
|
+
}), io = (t) => /* @__PURE__ */ n(
|
|
1111
1113
|
ki,
|
|
1112
1114
|
{
|
|
1113
1115
|
side: "top",
|
|
@@ -1116,13 +1118,13 @@ ${S}${R}`;
|
|
|
1116
1118
|
alignOffset: -10,
|
|
1117
1119
|
...t
|
|
1118
1120
|
}
|
|
1119
|
-
),
|
|
1121
|
+
), ao = i(U.Arrow, {
|
|
1120
1122
|
_id: "aiChatHelpActions__MenuArrow"
|
|
1121
|
-
}),
|
|
1122
|
-
const { action: e, onClick: a, ...s } = t, { handleAction:
|
|
1123
|
-
|
|
1123
|
+
}), no = (t) => {
|
|
1124
|
+
const { action: e, onClick: a, ...s } = t, { handleAction: o, logHelpAction: r } = he(e), { setOpen: c } = Ke(), d = () => {
|
|
1125
|
+
o({
|
|
1124
1126
|
onOpenForm: () => c(!1)
|
|
1125
|
-
}),
|
|
1127
|
+
}), r();
|
|
1126
1128
|
}, m = e.action.type, l = i(m === "open_link" ? "a" : "button", {
|
|
1127
1129
|
_id: "aiChatHelpActions__MenuItem",
|
|
1128
1130
|
children: e.name,
|
|
@@ -1139,52 +1141,52 @@ ${S}${R}`;
|
|
|
1139
1141
|
return /* @__PURE__ */ n(l, { ...s });
|
|
1140
1142
|
}, Bi = i(B, {
|
|
1141
1143
|
_id: "aiChatHelpActions_MenuItemIcon"
|
|
1142
|
-
}),
|
|
1144
|
+
}), so = (t) => {
|
|
1143
1145
|
const { action: e, ...a } = t;
|
|
1144
1146
|
return e.icon ? /* @__PURE__ */ n(Bi, { iconSettings: e.icon, ...a }) : null;
|
|
1145
|
-
}, Ti = i(
|
|
1147
|
+
}, Ti = i(re, {
|
|
1146
1148
|
_id: "aiChatFeedbackModal"
|
|
1147
|
-
}),
|
|
1148
|
-
const { onOpenChange: e, ...a } = t, { currentFeedback: s, setCurrentFeedback:
|
|
1149
|
+
}), oo = (t) => {
|
|
1150
|
+
const { onOpenChange: e, ...a } = t, { currentFeedback: s, setCurrentFeedback: o } = de();
|
|
1149
1151
|
return /* @__PURE__ */ n(
|
|
1150
1152
|
Ti,
|
|
1151
1153
|
{
|
|
1152
1154
|
open: s !== null,
|
|
1153
|
-
onOpenChange: h(e, () =>
|
|
1155
|
+
onOpenChange: h(e, () => o(null)),
|
|
1154
1156
|
...a
|
|
1155
1157
|
}
|
|
1156
1158
|
);
|
|
1157
|
-
},
|
|
1159
|
+
}, ro = i(ae, {
|
|
1158
1160
|
_id: "aiChatFeedbackModal__Overlay"
|
|
1159
|
-
}),
|
|
1161
|
+
}), co = i(ne, {
|
|
1160
1162
|
_id: "aiChatFeedbackModal__Content",
|
|
1161
1163
|
"aria-describedby": void 0
|
|
1162
|
-
}),
|
|
1164
|
+
}), mo = i(oe, {
|
|
1163
1165
|
_id: "aiChatFeedbackModal__Header",
|
|
1164
1166
|
children: "Help improve my answers!"
|
|
1165
|
-
}),
|
|
1167
|
+
}), lo = i(se, {
|
|
1166
1168
|
_id: "aiChatFeedbackModal__Close",
|
|
1167
1169
|
children: /* @__PURE__ */ n(A, { iconKey: "close" })
|
|
1168
|
-
}),
|
|
1170
|
+
}), ho = i("div", {
|
|
1169
1171
|
_id: "aiChatFeedbackModal__Body"
|
|
1170
1172
|
}), yi = i("form", {
|
|
1171
1173
|
_id: "aiChatFeedbackForm"
|
|
1172
|
-
}),
|
|
1173
|
-
const { onSubmit: e, ...a } = t, { submitNegativeFeedback: s, currentFeedback:
|
|
1174
|
+
}), uo = (t) => {
|
|
1175
|
+
const { onSubmit: e, ...a } = t, { submitNegativeFeedback: s, currentFeedback: o, setCurrentFeedback: r } = de();
|
|
1174
1176
|
return /* @__PURE__ */ n(yi, { onSubmit: h(e, (d) => {
|
|
1175
1177
|
d.preventDefault();
|
|
1176
1178
|
const m = d.target, l = new FormData(m), C = Object.fromEntries(l.entries());
|
|
1177
|
-
|
|
1179
|
+
o && (s(o, C), r(null));
|
|
1178
1180
|
}), ...a });
|
|
1179
1181
|
}, wi = i("div", {
|
|
1180
1182
|
_id: "aiChatFeedbackItem"
|
|
1181
|
-
}),
|
|
1183
|
+
}), Co = (t) => {
|
|
1182
1184
|
const { name: e, ...a } = t;
|
|
1183
1185
|
return /* @__PURE__ */ n(Oe, { name: e, children: /* @__PURE__ */ n(wi, { ...a }) });
|
|
1184
1186
|
}, Hi = i(V.Root, {
|
|
1185
1187
|
_id: "aiChatFeedbackItem__Checkbox"
|
|
1186
|
-
}),
|
|
1187
|
-
const { name: e, focusItem: a } = me(), { onCheckedChange: s, ...
|
|
1188
|
+
}), po = (t) => {
|
|
1189
|
+
const { name: e, focusItem: a } = me(), { onCheckedChange: s, ...o } = t, r = (c) => {
|
|
1188
1190
|
c && a?.current?.focus();
|
|
1189
1191
|
};
|
|
1190
1192
|
return /* @__PURE__ */ n(
|
|
@@ -1192,16 +1194,16 @@ ${S}${R}`;
|
|
|
1192
1194
|
{
|
|
1193
1195
|
id: `feedback-${e}`,
|
|
1194
1196
|
name: e,
|
|
1195
|
-
onCheckedChange: h(s,
|
|
1196
|
-
...
|
|
1197
|
+
onCheckedChange: h(s, r),
|
|
1198
|
+
...o
|
|
1197
1199
|
}
|
|
1198
1200
|
);
|
|
1199
|
-
},
|
|
1201
|
+
}, vo = i(V.Indicator, {
|
|
1200
1202
|
_id: "aiChatFeedbackItem__CheckboxIndicator",
|
|
1201
1203
|
children: /* @__PURE__ */ n(Pe, {})
|
|
1202
1204
|
}), Li = i("label", {
|
|
1203
1205
|
_id: "aiChatFeedbackItem__Label"
|
|
1204
|
-
}),
|
|
1206
|
+
}), go = (t) => {
|
|
1205
1207
|
const { name: e } = me(), a = {
|
|
1206
1208
|
unrelated_response: "Didn't answer my question",
|
|
1207
1209
|
inaccurate_statement: "Inaccurate statement",
|
|
@@ -1212,7 +1214,7 @@ ${S}${R}`;
|
|
|
1212
1214
|
}, xi = i("textarea", {
|
|
1213
1215
|
_id: "aiChatFeedbackItem__Description",
|
|
1214
1216
|
placeholder: "Please describe"
|
|
1215
|
-
}),
|
|
1217
|
+
}), _o = (t) => {
|
|
1216
1218
|
const { name: e, focusItem: a } = me();
|
|
1217
1219
|
return /* @__PURE__ */ n(
|
|
1218
1220
|
xi,
|
|
@@ -1222,59 +1224,59 @@ ${S}${R}`;
|
|
|
1222
1224
|
...t
|
|
1223
1225
|
}
|
|
1224
1226
|
);
|
|
1225
|
-
},
|
|
1227
|
+
}, bo = i("button", {
|
|
1226
1228
|
_id: "aiChatFeedbackForm__SubmitButton",
|
|
1227
1229
|
children: "Submit",
|
|
1228
1230
|
type: "submit"
|
|
1229
1231
|
}), Di = i("div", {
|
|
1230
1232
|
_id: "aiChatForm__Wrapper"
|
|
1231
|
-
}),
|
|
1233
|
+
}), Ao = (t) => {
|
|
1232
1234
|
const { form: e } = b();
|
|
1233
1235
|
return e ? /* @__PURE__ */ n(Di, { ...t }) : null;
|
|
1234
1236
|
}, Oi = i("form", {
|
|
1235
1237
|
_id: "aiChatForm"
|
|
1236
|
-
}),
|
|
1237
|
-
const { onSubmit: e, ...a } = t, { handleSubmit: s, isSuccess:
|
|
1238
|
-
return
|
|
1238
|
+
}), Po = (t) => {
|
|
1239
|
+
const { onSubmit: e, ...a } = t, { handleSubmit: s, isSuccess: o } = b();
|
|
1240
|
+
return o ? null : /* @__PURE__ */ n(Oi, { onSubmit: h(e, s), ...a });
|
|
1239
1241
|
}, Wi = i("button", {
|
|
1240
1242
|
_id: "aiChatForm__Close",
|
|
1241
1243
|
children: /* @__PURE__ */ n(A, { iconKey: "close" })
|
|
1242
|
-
}),
|
|
1244
|
+
}), Fo = (t) => {
|
|
1243
1245
|
const { onClick: e, ...a } = t, { closeForm: s } = b();
|
|
1244
1246
|
return /* @__PURE__ */ n(Wi, { onClick: h(e, s), ...a });
|
|
1245
|
-
},
|
|
1247
|
+
}, Mo = i("div", {
|
|
1246
1248
|
_id: "aiChatForm__Header"
|
|
1247
1249
|
}), Ni = i("h2", {
|
|
1248
1250
|
_id: "aiChatForm__Heading"
|
|
1249
|
-
}),
|
|
1251
|
+
}), Io = (t) => {
|
|
1250
1252
|
const { form: e } = b();
|
|
1251
1253
|
return e?.heading ? /* @__PURE__ */ n(Ni, { children: e.heading, ...t }) : null;
|
|
1252
1254
|
}, Ri = i("span", {
|
|
1253
1255
|
_id: "aiChatForm__Description"
|
|
1254
|
-
}),
|
|
1256
|
+
}), fo = (t) => {
|
|
1255
1257
|
const { form: e } = b();
|
|
1256
1258
|
return e?.description ? /* @__PURE__ */ n(Ri, { children: e.description, ...t }) : null;
|
|
1257
1259
|
}, $i = i("div", {
|
|
1258
1260
|
_id: "aiChatForm__Content"
|
|
1259
|
-
}),
|
|
1261
|
+
}), So = (t) => {
|
|
1260
1262
|
const { children: e, ...a } = t, { fields: s = [] } = b();
|
|
1261
1263
|
return /* @__PURE__ */ n($i, { children: I(e, s), ...a });
|
|
1262
1264
|
}, Qi = i("div", {
|
|
1263
1265
|
_id: "aiChatForm__Field"
|
|
1264
|
-
}),
|
|
1265
|
-
const { field: e, autoFocus: a, ...s } = t, { control:
|
|
1266
|
+
}), Eo = (t) => {
|
|
1267
|
+
const { field: e, autoFocus: a, ...s } = t, { control: o, errors: r } = b();
|
|
1266
1268
|
return /* @__PURE__ */ n(
|
|
1267
1269
|
je,
|
|
1268
1270
|
{
|
|
1269
1271
|
name: e.name,
|
|
1270
|
-
control:
|
|
1272
|
+
control: o,
|
|
1271
1273
|
rules: { required: e.isRequired ? `${e.label} is required.` : void 0 },
|
|
1272
1274
|
render: ({ field: c }) => {
|
|
1273
1275
|
const d = c.value !== void 0 || e.inputType === "file";
|
|
1274
1276
|
return /* @__PURE__ */ n(
|
|
1275
1277
|
qe,
|
|
1276
1278
|
{
|
|
1277
|
-
"data-invalid": v(!!
|
|
1279
|
+
"data-invalid": v(!!r[e.name]),
|
|
1278
1280
|
field: e,
|
|
1279
1281
|
fieldProps: c,
|
|
1280
1282
|
autoFocus: a,
|
|
@@ -1293,7 +1295,7 @@ ${S}${R}`;
|
|
|
1293
1295
|
);
|
|
1294
1296
|
}, Vi = i("label", {
|
|
1295
1297
|
_id: "aiChatForm__FieldLabel"
|
|
1296
|
-
}),
|
|
1298
|
+
}), ko = (t) => {
|
|
1297
1299
|
const { field: e } = H();
|
|
1298
1300
|
return /* @__PURE__ */ n(
|
|
1299
1301
|
Vi,
|
|
@@ -1311,7 +1313,7 @@ ${S}${R}`;
|
|
|
1311
1313
|
const {
|
|
1312
1314
|
field: e,
|
|
1313
1315
|
error: a,
|
|
1314
|
-
fieldProps: { onChange: s, onBlur:
|
|
1316
|
+
fieldProps: { onChange: s, onBlur: o, ...r },
|
|
1315
1317
|
autoFocus: c
|
|
1316
1318
|
} = H(), { onChange: d, onBlur: m, ...l } = t;
|
|
1317
1319
|
return /* @__PURE__ */ n(
|
|
@@ -1322,27 +1324,27 @@ ${S}${R}`;
|
|
|
1322
1324
|
placeholder: "placeholder" in e ? e.placeholder : void 0,
|
|
1323
1325
|
"data-invalid": v(!!a),
|
|
1324
1326
|
onChange: h(d, s),
|
|
1325
|
-
onBlur: h(m,
|
|
1326
|
-
...
|
|
1327
|
+
onBlur: h(m, o),
|
|
1328
|
+
...r,
|
|
1327
1329
|
...l
|
|
1328
1330
|
}
|
|
1329
1331
|
);
|
|
1330
|
-
},
|
|
1332
|
+
}, Bo = i(Ie, {
|
|
1331
1333
|
_id: "aiChatForm__FieldEmail",
|
|
1332
1334
|
type: "email"
|
|
1333
1335
|
}), Ki = i("input", {
|
|
1334
1336
|
_id: "aiChatForm__FieldFile",
|
|
1335
1337
|
type: "file",
|
|
1336
1338
|
multiple: !0
|
|
1337
|
-
}),
|
|
1339
|
+
}), To = (t) => {
|
|
1338
1340
|
const {
|
|
1339
1341
|
field: e,
|
|
1340
1342
|
error: a,
|
|
1341
|
-
fieldProps: { value: s, onChange:
|
|
1343
|
+
fieldProps: { value: s, onChange: o, onBlur: r, ...c },
|
|
1342
1344
|
autoFocus: d
|
|
1343
1345
|
} = H(), { onChange: m, onBlur: l, ...C } = t, p = (P) => {
|
|
1344
1346
|
const T = P.target.files;
|
|
1345
|
-
|
|
1347
|
+
o(T);
|
|
1346
1348
|
};
|
|
1347
1349
|
return /* @__PURE__ */ n(
|
|
1348
1350
|
Ki,
|
|
@@ -1354,52 +1356,52 @@ ${S}${R}`;
|
|
|
1354
1356
|
...C,
|
|
1355
1357
|
...c,
|
|
1356
1358
|
onChange: h(m, p),
|
|
1357
|
-
onBlur: h(l,
|
|
1359
|
+
onBlur: h(l, r)
|
|
1358
1360
|
}
|
|
1359
1361
|
);
|
|
1360
|
-
},
|
|
1362
|
+
}, yo = i(Ie, {
|
|
1361
1363
|
_id: "aiChatForm__FieldTextArea",
|
|
1362
1364
|
type: "textarea",
|
|
1363
1365
|
asChild: !0,
|
|
1364
1366
|
children: /* @__PURE__ */ n(te, { maxRows: 8 })
|
|
1365
1367
|
}), qi = i(V.Root, {
|
|
1366
1368
|
_id: "aiChatForm__FieldCheckbox"
|
|
1367
|
-
}),
|
|
1368
|
-
const { field: e, error: a, fieldProps: s, autoFocus:
|
|
1369
|
+
}), wo = (t) => {
|
|
1370
|
+
const { field: e, error: a, fieldProps: s, autoFocus: o } = H(), { onCheckedChange: r, ...c } = t;
|
|
1369
1371
|
return /* @__PURE__ */ n(
|
|
1370
1372
|
qi,
|
|
1371
1373
|
{
|
|
1372
1374
|
id: e.name,
|
|
1373
1375
|
name: e.name,
|
|
1374
|
-
autoFocus:
|
|
1376
|
+
autoFocus: o,
|
|
1375
1377
|
"data-invalid": v(!!a),
|
|
1376
1378
|
checked: s.value,
|
|
1377
|
-
onCheckedChange: h(
|
|
1379
|
+
onCheckedChange: h(r, s.onChange),
|
|
1378
1380
|
...c
|
|
1379
1381
|
}
|
|
1380
1382
|
);
|
|
1381
|
-
},
|
|
1383
|
+
}, Ho = i(V.Indicator, {
|
|
1382
1384
|
_id: "aiChatForm__FieldCheckboxIndicator",
|
|
1383
1385
|
children: /* @__PURE__ */ n(Pe, {})
|
|
1384
1386
|
}), ji = i(f.Root, {
|
|
1385
1387
|
_id: "aiChatForm__FieldSelect"
|
|
1386
|
-
}),
|
|
1387
|
-
const { field: e, error: a, fieldProps: s } = H(), { onValueChange:
|
|
1388
|
+
}), Lo = (t) => {
|
|
1389
|
+
const { field: e, error: a, fieldProps: s } = H(), { onValueChange: o, ...r } = t;
|
|
1388
1390
|
return /* @__PURE__ */ n(
|
|
1389
1391
|
ji,
|
|
1390
1392
|
{
|
|
1391
1393
|
name: e.name,
|
|
1392
1394
|
"data-invalid": v(!!a),
|
|
1393
1395
|
value: s.value,
|
|
1394
|
-
onValueChange: h(
|
|
1395
|
-
...
|
|
1396
|
+
onValueChange: h(o, s.onChange),
|
|
1397
|
+
...r
|
|
1396
1398
|
}
|
|
1397
1399
|
);
|
|
1398
|
-
},
|
|
1400
|
+
}, xo = i(f.Trigger, {
|
|
1399
1401
|
_id: "aiChatForm__FieldSelect__Trigger"
|
|
1400
1402
|
}), Gi = i(f.Value, {
|
|
1401
1403
|
_id: "aiChatForm__FieldSelect__Value"
|
|
1402
|
-
}),
|
|
1404
|
+
}), Do = (t) => {
|
|
1403
1405
|
const { field: e } = H();
|
|
1404
1406
|
return /* @__PURE__ */ n(
|
|
1405
1407
|
Gi,
|
|
@@ -1408,20 +1410,20 @@ ${S}${R}`;
|
|
|
1408
1410
|
...t
|
|
1409
1411
|
}
|
|
1410
1412
|
);
|
|
1411
|
-
},
|
|
1413
|
+
}, Oo = i(f.Icon, {
|
|
1412
1414
|
_id: "aiChatForm__FieldSelect__Icon",
|
|
1413
1415
|
asChild: !0,
|
|
1414
1416
|
children: /* @__PURE__ */ n(B, { iconSettings: { builtIn: "LuChevronDown" } })
|
|
1415
|
-
}),
|
|
1417
|
+
}), Wo = i(f.Content, {
|
|
1416
1418
|
_id: "aiChatForm__FieldSelect__Content",
|
|
1417
1419
|
position: "popper"
|
|
1418
|
-
}),
|
|
1420
|
+
}), No = i(f.Viewport, {
|
|
1419
1421
|
_id: "aiChatForm__FieldSelect__Viewport"
|
|
1420
|
-
}),
|
|
1422
|
+
}), Ro = i(f.Item, {
|
|
1421
1423
|
_id: "aiChatForm__FieldSelect__Item"
|
|
1422
|
-
}),
|
|
1424
|
+
}), $o = i(f.ItemText, {
|
|
1423
1425
|
_id: "aiChatForm__FieldSelect__ItemText"
|
|
1424
|
-
}),
|
|
1426
|
+
}), Qo = i(
|
|
1425
1427
|
f.ItemIndicator,
|
|
1426
1428
|
{
|
|
1427
1429
|
_id: "aiChatForm__FieldSelect__ItemIndicator",
|
|
@@ -1430,54 +1432,54 @@ ${S}${R}`;
|
|
|
1430
1432
|
}
|
|
1431
1433
|
), zi = i("span", {
|
|
1432
1434
|
_id: "aiChatForm__FieldError"
|
|
1433
|
-
}),
|
|
1435
|
+
}), Vo = (t) => {
|
|
1434
1436
|
const { error: e } = H();
|
|
1435
1437
|
return e ? /* @__PURE__ */ n(zi, { children: e.message?.toString(), ...t }) : null;
|
|
1436
1438
|
}, Yi = i("span", {
|
|
1437
1439
|
_id: "aiChatForm__Error"
|
|
1438
|
-
}),
|
|
1440
|
+
}), Uo = (t) => {
|
|
1439
1441
|
const { formError: e } = b();
|
|
1440
1442
|
return e ? /* @__PURE__ */ n(Yi, { children: e.message, ...t }) : null;
|
|
1441
|
-
},
|
|
1443
|
+
}, Ko = i("div", {
|
|
1442
1444
|
_id: "aiChatForm__Footer"
|
|
1443
1445
|
}), Ji = i("button", {
|
|
1444
1446
|
_id: "aiChatForm__Cancel",
|
|
1445
1447
|
children: "Cancel"
|
|
1446
|
-
}),
|
|
1448
|
+
}), qo = (t) => {
|
|
1447
1449
|
const { onClick: e, ...a } = t, { closeForm: s } = b();
|
|
1448
1450
|
return /* @__PURE__ */ n(Ji, { onClick: h(e, s), ...a });
|
|
1449
1451
|
}, Xi = i("button", {
|
|
1450
1452
|
_id: "aiChatForm__Submit",
|
|
1451
1453
|
children: "Submit",
|
|
1452
1454
|
type: "submit"
|
|
1453
|
-
}),
|
|
1455
|
+
}), jo = (t) => {
|
|
1454
1456
|
const { onClick: e, ...a } = t, { isSubmitting: s } = b();
|
|
1455
1457
|
return /* @__PURE__ */ n(Xi, { disabled: s, ...a });
|
|
1456
1458
|
}, Zi = i("div", {
|
|
1457
1459
|
_id: "aiChatForm__Success"
|
|
1458
|
-
}),
|
|
1460
|
+
}), Go = (t) => {
|
|
1459
1461
|
const { isSuccess: e } = b();
|
|
1460
1462
|
return e ? /* @__PURE__ */ n(Zi, { ...t }) : null;
|
|
1461
1463
|
}, ea = i("h2", {
|
|
1462
1464
|
_id: "aiChatForm__SuccessHeading"
|
|
1463
|
-
}),
|
|
1465
|
+
}), zo = (t) => {
|
|
1464
1466
|
const { form: e } = b();
|
|
1465
1467
|
return /* @__PURE__ */ n(ea, { children: e?.successView.heading, ...t });
|
|
1466
1468
|
}, ta = i(ce, {
|
|
1467
1469
|
_id: "aiChatForm__SuccessMessage"
|
|
1468
|
-
}),
|
|
1470
|
+
}), Yo = (t) => {
|
|
1469
1471
|
const { form: e } = b();
|
|
1470
1472
|
return /* @__PURE__ */ n(ta, { children: e?.successView.message, ...t });
|
|
1471
1473
|
}, ia = i("button", {
|
|
1472
1474
|
_id: "aiChatForm__SuccessButton"
|
|
1473
|
-
}),
|
|
1474
|
-
const { onClick: e, ...a } = t, { form: s, closeForm:
|
|
1475
|
-
if (!
|
|
1476
|
-
const c =
|
|
1475
|
+
}), Jo = (t) => {
|
|
1476
|
+
const { onClick: e, ...a } = t, { form: s, closeForm: o } = b(), r = s?.successView?.doneButton;
|
|
1477
|
+
if (!r) return null;
|
|
1478
|
+
const c = r.icon && /* @__PURE__ */ n(B, { iconSettings: r.icon }), d = r.label;
|
|
1477
1479
|
return /* @__PURE__ */ n(
|
|
1478
1480
|
ia,
|
|
1479
1481
|
{
|
|
1480
|
-
onClick: h(e,
|
|
1482
|
+
onClick: h(e, o),
|
|
1481
1483
|
children: /* @__PURE__ */ $(ee, { children: [
|
|
1482
1484
|
c,
|
|
1483
1485
|
d
|
|
@@ -1506,7 +1508,7 @@ export {
|
|
|
1506
1508
|
Ns as AttachmentsBarFormTitleInput,
|
|
1507
1509
|
Ws as AttachmentsBarFormTitleLabel,
|
|
1508
1510
|
Ps as AttachmentsBarInfoTip,
|
|
1509
|
-
|
|
1511
|
+
oi as AttachmentsBarInfoTipArrow,
|
|
1510
1512
|
Fs as AttachmentsBarInfoTipIcon,
|
|
1511
1513
|
Ms as AttachmentsBarInfoTipText,
|
|
1512
1514
|
fs as AttachmentsBarInput,
|
|
@@ -1525,10 +1527,10 @@ export {
|
|
|
1525
1527
|
Me as ChatAction,
|
|
1526
1528
|
Xs as ChatActionFeedback,
|
|
1527
1529
|
Fi as ChatActionLabel,
|
|
1528
|
-
|
|
1530
|
+
eo as ChatHelpAction,
|
|
1529
1531
|
en as Content,
|
|
1530
1532
|
tn as ContentScrollArea,
|
|
1531
|
-
|
|
1533
|
+
on as ContentScrollAreaCorner,
|
|
1532
1534
|
nn as ContentScrollAreaScrollbar,
|
|
1533
1535
|
sn as ContentScrollAreaThumb,
|
|
1534
1536
|
an as ContentScrollAreaViewport,
|
|
@@ -1558,7 +1560,7 @@ export {
|
|
|
1558
1560
|
Ns as EmbeddedChatPrimitiveAttachmentsBarFormTitleInput,
|
|
1559
1561
|
Ws as EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel,
|
|
1560
1562
|
Ps as EmbeddedChatPrimitiveAttachmentsBarInfoTip,
|
|
1561
|
-
|
|
1563
|
+
oi as EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow,
|
|
1562
1564
|
Fs as EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon,
|
|
1563
1565
|
Ms as EmbeddedChatPrimitiveAttachmentsBarInfoTipText,
|
|
1564
1566
|
fs as EmbeddedChatPrimitiveAttachmentsBarInput,
|
|
@@ -1577,10 +1579,10 @@ export {
|
|
|
1577
1579
|
Me as EmbeddedChatPrimitiveChatAction,
|
|
1578
1580
|
Xs as EmbeddedChatPrimitiveChatActionFeedback,
|
|
1579
1581
|
Fi as EmbeddedChatPrimitiveChatActionLabel,
|
|
1580
|
-
|
|
1582
|
+
eo as EmbeddedChatPrimitiveChatHelpAction,
|
|
1581
1583
|
en as EmbeddedChatPrimitiveContent,
|
|
1582
1584
|
tn as EmbeddedChatPrimitiveContentScrollArea,
|
|
1583
|
-
|
|
1585
|
+
on as EmbeddedChatPrimitiveContentScrollAreaCorner,
|
|
1584
1586
|
nn as EmbeddedChatPrimitiveContentScrollAreaScrollbar,
|
|
1585
1587
|
sn as EmbeddedChatPrimitiveContentScrollAreaThumb,
|
|
1586
1588
|
an as EmbeddedChatPrimitiveContentScrollAreaViewport,
|
|
@@ -1596,60 +1598,60 @@ export {
|
|
|
1596
1598
|
Cn as EmbeddedChatPrimitiveExampleQuestions,
|
|
1597
1599
|
pn as EmbeddedChatPrimitiveExampleQuestionsLabel,
|
|
1598
1600
|
vn as EmbeddedChatPrimitiveExampleQuestionsList,
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1601
|
+
uo as EmbeddedChatPrimitiveFeedbackForm,
|
|
1602
|
+
Co as EmbeddedChatPrimitiveFeedbackItem,
|
|
1603
|
+
po as EmbeddedChatPrimitiveFeedbackItemCheckbox,
|
|
1604
|
+
vo as EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator,
|
|
1605
|
+
_o as EmbeddedChatPrimitiveFeedbackItemDescription,
|
|
1606
|
+
go as EmbeddedChatPrimitiveFeedbackItemLabel,
|
|
1607
|
+
oo as EmbeddedChatPrimitiveFeedbackModal,
|
|
1608
|
+
ho as EmbeddedChatPrimitiveFeedbackModalBody,
|
|
1609
|
+
lo as EmbeddedChatPrimitiveFeedbackModalClose,
|
|
1610
|
+
co as EmbeddedChatPrimitiveFeedbackModalContent,
|
|
1611
|
+
mo as EmbeddedChatPrimitiveFeedbackModalHeader,
|
|
1612
|
+
ro as EmbeddedChatPrimitiveFeedbackModalOverlay,
|
|
1613
|
+
bo as EmbeddedChatPrimitiveFeedbackSubmitButton,
|
|
1612
1614
|
cs as EmbeddedChatPrimitiveFooter,
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1615
|
+
Po as EmbeddedChatPrimitiveForm,
|
|
1616
|
+
qo as EmbeddedChatPrimitiveFormCancel,
|
|
1617
|
+
Fo as EmbeddedChatPrimitiveFormClose,
|
|
1618
|
+
So as EmbeddedChatPrimitiveFormContent,
|
|
1619
|
+
fo as EmbeddedChatPrimitiveFormDescription,
|
|
1620
|
+
Uo as EmbeddedChatPrimitiveFormError,
|
|
1621
|
+
Eo as EmbeddedChatPrimitiveFormField,
|
|
1622
|
+
wo as EmbeddedChatPrimitiveFormFieldCheckbox,
|
|
1623
|
+
Ho as EmbeddedChatPrimitiveFormFieldCheckboxIndicator,
|
|
1624
|
+
Bo as EmbeddedChatPrimitiveFormFieldEmail,
|
|
1625
|
+
Vo as EmbeddedChatPrimitiveFormFieldError,
|
|
1626
|
+
To as EmbeddedChatPrimitiveFormFieldFile,
|
|
1627
|
+
ko as EmbeddedChatPrimitiveFormFieldLabel,
|
|
1628
|
+
Lo as EmbeddedChatPrimitiveFormFieldSelect,
|
|
1629
|
+
Wo as EmbeddedChatPrimitiveFormFieldSelectContent,
|
|
1630
|
+
Oo as EmbeddedChatPrimitiveFormFieldSelectIcon,
|
|
1631
|
+
Ro as EmbeddedChatPrimitiveFormFieldSelectItem,
|
|
1632
|
+
Qo as EmbeddedChatPrimitiveFormFieldSelectItemIndicator,
|
|
1633
|
+
$o as EmbeddedChatPrimitiveFormFieldSelectItemText,
|
|
1634
|
+
xo as EmbeddedChatPrimitiveFormFieldSelectTrigger,
|
|
1635
|
+
Do as EmbeddedChatPrimitiveFormFieldSelectValue,
|
|
1636
|
+
No as EmbeddedChatPrimitiveFormFieldSelectViewport,
|
|
1635
1637
|
Ie as EmbeddedChatPrimitiveFormFieldText,
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1638
|
+
yo as EmbeddedChatPrimitiveFormFieldTextArea,
|
|
1639
|
+
Ko as EmbeddedChatPrimitiveFormFooter,
|
|
1640
|
+
Mo as EmbeddedChatPrimitiveFormHeader,
|
|
1641
|
+
Io as EmbeddedChatPrimitiveFormHeading,
|
|
1642
|
+
jo as EmbeddedChatPrimitiveFormSubmit,
|
|
1643
|
+
Go as EmbeddedChatPrimitiveFormSuccess,
|
|
1644
|
+
Jo as EmbeddedChatPrimitiveFormSuccessButton,
|
|
1645
|
+
zo as EmbeddedChatPrimitiveFormSuccessHeading,
|
|
1646
|
+
Yo as EmbeddedChatPrimitiveFormSuccessMessage,
|
|
1647
|
+
Ao as EmbeddedChatPrimitiveFormWrapper,
|
|
1646
1648
|
Ja as EmbeddedChatPrimitiveHeaderToolbar,
|
|
1647
1649
|
Zs as EmbeddedChatPrimitiveHelpActions,
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1650
|
+
io as EmbeddedChatPrimitiveHelpActionsMenu,
|
|
1651
|
+
ao as EmbeddedChatPrimitiveHelpActionsMenuArrow,
|
|
1652
|
+
no as EmbeddedChatPrimitiveHelpActionsMenuItem,
|
|
1653
|
+
so as EmbeddedChatPrimitiveHelpActionsMenuItemIcon,
|
|
1654
|
+
to as EmbeddedChatPrimitiveHelpActionsTrigger,
|
|
1653
1655
|
ls as EmbeddedChatPrimitiveInput,
|
|
1654
1656
|
ds as EmbeddedChatPrimitiveInputFieldset,
|
|
1655
1657
|
ms as EmbeddedChatPrimitiveInputGroup,
|
|
@@ -1680,9 +1682,9 @@ export {
|
|
|
1680
1682
|
Zn as EmbeddedChatPrimitiveMessageSourceItem,
|
|
1681
1683
|
es as EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,
|
|
1682
1684
|
ss as EmbeddedChatPrimitiveMessageSourceItemDescription,
|
|
1683
|
-
|
|
1685
|
+
os as EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,
|
|
1684
1686
|
is as EmbeddedChatPrimitiveMessageSourceItemIcon,
|
|
1685
|
-
|
|
1687
|
+
rs as EmbeddedChatPrimitiveMessageSourceItemIndicator,
|
|
1686
1688
|
ns as EmbeddedChatPrimitiveMessageSourceItemTag,
|
|
1687
1689
|
as as EmbeddedChatPrimitiveMessageSourceItemTitle,
|
|
1688
1690
|
Yn as EmbeddedChatPrimitiveMessageSources,
|
|
@@ -1691,7 +1693,7 @@ export {
|
|
|
1691
1693
|
Gn as EmbeddedChatPrimitiveMessageToolAction,
|
|
1692
1694
|
jn as EmbeddedChatPrimitiveMessageToolActions,
|
|
1693
1695
|
Pt as EmbeddedChatPrimitiveMessageWrapper,
|
|
1694
|
-
|
|
1696
|
+
rn as EmbeddedChatPrimitiveMessages,
|
|
1695
1697
|
za as EmbeddedChatPrimitiveRoot,
|
|
1696
1698
|
hs as EmbeddedChatPrimitiveSendButton,
|
|
1697
1699
|
us as EmbeddedChatPrimitiveSendButtonIcon,
|
|
@@ -1712,62 +1714,62 @@ export {
|
|
|
1712
1714
|
Cn as ExampleQuestions,
|
|
1713
1715
|
pn as ExampleQuestionsLabel,
|
|
1714
1716
|
vn as ExampleQuestionsList,
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1717
|
+
uo as FeedbackForm,
|
|
1718
|
+
Co as FeedbackItem,
|
|
1719
|
+
po as FeedbackItemCheckbox,
|
|
1720
|
+
vo as FeedbackItemCheckboxIndicator,
|
|
1721
|
+
_o as FeedbackItemDescription,
|
|
1722
|
+
go as FeedbackItemLabel,
|
|
1723
|
+
oo as FeedbackModal,
|
|
1724
|
+
ho as FeedbackModalBody,
|
|
1725
|
+
lo as FeedbackModalClose,
|
|
1726
|
+
co as FeedbackModalContent,
|
|
1727
|
+
mo as FeedbackModalHeader,
|
|
1728
|
+
ro as FeedbackModalOverlay,
|
|
1729
|
+
bo as FeedbackSubmitButton,
|
|
1728
1730
|
cs as Footer,
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1731
|
+
Po as Form,
|
|
1732
|
+
qo as FormCancel,
|
|
1733
|
+
Fo as FormClose,
|
|
1734
|
+
So as FormContent,
|
|
1735
|
+
fo as FormDescription,
|
|
1736
|
+
Uo as FormError,
|
|
1737
|
+
Eo as FormField,
|
|
1738
|
+
wo as FormFieldCheckbox,
|
|
1739
|
+
Ho as FormFieldCheckboxIndicator,
|
|
1740
|
+
Bo as FormFieldEmail,
|
|
1741
|
+
Vo as FormFieldError,
|
|
1742
|
+
To as FormFieldFile,
|
|
1743
|
+
ko as FormFieldLabel,
|
|
1744
|
+
Lo as FormFieldSelect,
|
|
1745
|
+
Wo as FormFieldSelectContent,
|
|
1746
|
+
Oo as FormFieldSelectIcon,
|
|
1747
|
+
Ro as FormFieldSelectItem,
|
|
1748
|
+
Qo as FormFieldSelectItemIndicator,
|
|
1749
|
+
$o as FormFieldSelectItemText,
|
|
1750
|
+
xo as FormFieldSelectTrigger,
|
|
1751
|
+
Do as FormFieldSelectValue,
|
|
1752
|
+
No as FormFieldSelectViewport,
|
|
1751
1753
|
Ie as FormFieldText,
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1754
|
+
yo as FormFieldTextArea,
|
|
1755
|
+
Ko as FormFooter,
|
|
1756
|
+
Mo as FormHeader,
|
|
1757
|
+
Io as FormHeading,
|
|
1758
|
+
jo as FormSubmit,
|
|
1759
|
+
Go as FormSuccess,
|
|
1760
|
+
Jo as FormSuccessButton,
|
|
1761
|
+
zo as FormSuccessHeading,
|
|
1762
|
+
Yo as FormSuccessMessage,
|
|
1763
|
+
Ao as FormWrapper,
|
|
1762
1764
|
Ya as Header,
|
|
1763
1765
|
Ja as HeaderToolbar,
|
|
1764
1766
|
Xa as HeaderToolbarWrapper,
|
|
1765
1767
|
Zs as HelpActions,
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1768
|
+
io as HelpActionsMenu,
|
|
1769
|
+
ao as HelpActionsMenuArrow,
|
|
1770
|
+
no as HelpActionsMenuItem,
|
|
1771
|
+
so as HelpActionsMenuItemIcon,
|
|
1772
|
+
to as HelpActionsTrigger,
|
|
1771
1773
|
ls as Input,
|
|
1772
1774
|
ds as InputFieldset,
|
|
1773
1775
|
ms as InputGroup,
|
|
@@ -1799,9 +1801,9 @@ export {
|
|
|
1799
1801
|
ts as MessageSourceItemBreadcrumbIcon,
|
|
1800
1802
|
es as MessageSourceItemBreadcrumbs,
|
|
1801
1803
|
ss as MessageSourceItemDescription,
|
|
1802
|
-
|
|
1804
|
+
os as MessageSourceItemDescriptionPart,
|
|
1803
1805
|
is as MessageSourceItemIcon,
|
|
1804
|
-
|
|
1806
|
+
rs as MessageSourceItemIndicator,
|
|
1805
1807
|
ns as MessageSourceItemTag,
|
|
1806
1808
|
as as MessageSourceItemTitle,
|
|
1807
1809
|
Yn as MessageSources,
|
|
@@ -1810,8 +1812,8 @@ export {
|
|
|
1810
1812
|
Gn as MessageToolAction,
|
|
1811
1813
|
jn as MessageToolActions,
|
|
1812
1814
|
Pt as MessageWrapper,
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
+
rn as Messages,
|
|
1816
|
+
er as Provider,
|
|
1815
1817
|
za as Root,
|
|
1816
1818
|
hs as SendButton,
|
|
1817
1819
|
us as SendButtonIcon,
|