@inkeep/cxkit-primitives 0.5.36 → 0.5.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/cmdk/index.cjs +1 -1
- package/dist/atoms/cmdk/index.js +328 -320
- package/dist/components/embedded-chat/use-inkeep-chat.cjs +3 -3
- package/dist/components/embedded-chat/use-inkeep-chat.js +138 -143
- package/dist/components/embedded-chat.cjs +2 -2
- package/dist/components/embedded-chat.js +306 -306
- package/dist/components/embedded-search/search-provider.cjs +1 -1
- package/dist/components/embedded-search/search-provider.js +19 -12
- package/dist/components/embedded-search/transform-results.cjs +1 -1
- package/dist/components/embedded-search/transform-results.js +56 -72
- package/dist/components/embedded-search/url-query.cjs +1 -0
- package/dist/components/embedded-search/url-query.js +12 -0
- package/dist/components/embedded-search/use-inkeep-search.cjs +1 -1
- package/dist/components/embedded-search/use-inkeep-search.js +27 -149
- package/dist/components/embedded-search/use-search-filter.cjs +1 -0
- package/dist/components/embedded-search/use-search-filter.js +91 -0
- package/dist/components/embedded-search.cjs +1 -1
- package/dist/components/embedded-search.js +372 -365
- package/dist/components/intelligent-form/actions/escalation-schema.cjs +1 -1
- package/dist/components/intelligent-form/actions/escalation-schema.js +1 -2
- package/dist/constants/search.cjs +1 -0
- package/dist/constants/search.js +5 -0
- package/dist/index.d.cts +17 -122
- package/dist/index.d.ts +17 -122
- package/dist/providers/base-events-provider.cjs +1 -1
- package/dist/providers/base-events-provider.js +1 -1
- package/dist/providers/config-provider.cjs +1 -1
- package/dist/providers/config-provider.js +15 -15
- package/dist/utils/component-ids.cjs +1 -1
- package/dist/utils/component-ids.js +1 -1
- package/dist/utils/default-settings.cjs +1 -1
- package/dist/utils/default-settings.js +7 -21
- package/dist/utils/tools/{links-schema.cjs → links-tool.cjs} +1 -1
- package/dist/utils/tools/{links-schema.js → links-tool.js} +13 -4
- package/package.json +4 -4
|
@@ -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 re, Root as oe } 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 Zr } 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: r } = g(), [o, c] = Qe(), d = ue(e, o), 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(r),
|
|
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(), r = ue(a, s);
|
|
100
100
|
return /* @__PURE__ */ n(
|
|
101
101
|
nt,
|
|
102
102
|
{
|
|
103
|
-
ref:
|
|
103
|
+
ref: r,
|
|
104
104
|
children: (
|
|
105
105
|
/* added this to fix an overflow issue see https://github.com/radix-ui/primitives/issues/926 */
|
|
106
106
|
/* @__PURE__ */ n("div", { "data-part": "grid", style: { display: "grid" }, children: t })
|
|
@@ -118,26 +118,26 @@ const Ze = "__intro__", et = i("div", {
|
|
|
118
118
|
{
|
|
119
119
|
_id: "aiChatContentScrollArea__Thumb"
|
|
120
120
|
}
|
|
121
|
-
),
|
|
121
|
+
), rn = i(x.Corner, {
|
|
122
122
|
_id: "aiChatContentScrollArea__Corner"
|
|
123
123
|
}), st = i("div", {
|
|
124
124
|
_id: "aiChatMessages"
|
|
125
|
-
}),
|
|
125
|
+
}), on = (t) => {
|
|
126
126
|
const e = g(), { children: a, ...s } = t;
|
|
127
127
|
return /* @__PURE__ */ n(st, { children: I(a, e), ...s });
|
|
128
|
-
},
|
|
128
|
+
}, rt = i("div", {
|
|
129
129
|
_id: "aiChatDisclaimer"
|
|
130
130
|
}), cn = F(
|
|
131
131
|
(t) => {
|
|
132
132
|
const { aiChatSettings: e } = u();
|
|
133
|
-
return e.disclaimerSettings?.isEnabled ? /* @__PURE__ */ n(K.Root, { openDelay: 100, children: /* @__PURE__ */ n(
|
|
133
|
+
return e.disclaimerSettings?.isEnabled ? /* @__PURE__ */ n(K.Root, { openDelay: 100, children: /* @__PURE__ */ n(rt, { ...t }) }) : null;
|
|
134
134
|
}
|
|
135
|
-
),
|
|
135
|
+
), ot = i("span", {
|
|
136
136
|
_id: "aiChatDisclaimerLabel"
|
|
137
137
|
}), dn = F(
|
|
138
138
|
(t) => {
|
|
139
139
|
const { aiChatSettings: e } = u(), a = e.disclaimerSettings;
|
|
140
|
-
return /* @__PURE__ */ n(
|
|
140
|
+
return /* @__PURE__ */ n(ot, { children: a?.label, ...t });
|
|
141
141
|
}
|
|
142
142
|
), mn = i(K.Trigger, {
|
|
143
143
|
_id: "aiChatDisclaimerTrigger",
|
|
@@ -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, r = e.disclaimerSettings?.tooltip || `Information provided by ${a || "this AI assistant"} is not guaranteed to be accurate or comprehensive.`;
|
|
161
|
+
return /* @__PURE__ */ n(dt, { shouldOpenLinksInNewTab: !0, children: r, ...t });
|
|
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, ...r } = t;
|
|
182
|
+
return /* @__PURE__ */ n(ht, { children: I(s, a), ...r });
|
|
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: r } = g();
|
|
193
193
|
return /* @__PURE__ */ n(
|
|
194
194
|
Ct,
|
|
195
195
|
{
|
|
196
|
-
onClick: h(a, () =>
|
|
196
|
+
onClick: h(a, () => r(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, ...r } = t;
|
|
216
|
+
return /* @__PURE__ */ n(gt, { children: I(s, a), ...r });
|
|
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: r } = g();
|
|
222
222
|
return /* @__PURE__ */ n(
|
|
223
223
|
_t,
|
|
224
224
|
{
|
|
225
|
-
onClick: h(a, () =>
|
|
225
|
+
onClick: h(a, () => r(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: r } = u(), o = s.aiAssistantName, c = o ? `Hi, I'm ${o}!` : "Hi!", d = s.chatSubjectName ?? r.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: r } = _();
|
|
263
|
+
return !(s.at(-1)?.id === r?.id) || r.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: r }
|
|
302
|
+
} = u(), { message: o } = _(), { aiAssistantAvatar: c } = s ?? {}, d = typeof c == "string" ? c : c?.light, m = (typeof c == "string" ? c : c?.dark) ?? d, l = ze(d, m), [C, p] = fe(l);
|
|
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 o.role === "user" ? r.name ? null : s.userAvatar ? /* @__PURE__ */ n(
|
|
310
310
|
ge,
|
|
311
311
|
{
|
|
312
312
|
"data-type": "image",
|
|
313
|
-
"data-role":
|
|
313
|
+
"data-role": o.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": o.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": o.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": o.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 } = _(), r = s.metadata?.attributes?.attachments;
|
|
376
|
+
return r ? /* @__PURE__ */ n(yt, { children: I(e, r), ...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: r, onOpen: o } = G();
|
|
381
381
|
return /* @__PURE__ */ n(Ae, { attachment: e, children: /* @__PURE__ */ n(
|
|
382
382
|
wt,
|
|
383
383
|
{
|
|
384
384
|
onClick: h(a, () => {
|
|
385
|
-
|
|
385
|
+
r(e), o();
|
|
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(oe, {
|
|
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: r, onClose: o, selectedItem: c } = G();
|
|
404
404
|
return /* @__PURE__ */ n(
|
|
405
405
|
xt,
|
|
406
406
|
{
|
|
407
|
-
open:
|
|
407
|
+
open: r && c !== null,
|
|
408
408
|
onOpenChange: h(e, (m) => {
|
|
409
|
-
m || (
|
|
409
|
+
m || (o(), 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(re, {
|
|
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: r } = _(), { logEvent: o } = j(), c = le(r), { conversation: d } = q();
|
|
442
|
+
return r.role === "user" ? /* @__PURE__ */ n(_e, { "data-role": r.role, children: c, ...s }) : /* @__PURE__ */ n(_e, { "data-role": r.role, ...s, children: /* @__PURE__ */ n(
|
|
443
443
|
ce,
|
|
444
444
|
{
|
|
445
445
|
children: c,
|
|
446
446
|
componentStyles: a,
|
|
447
447
|
shouldOpenLinksInNewTab: e.shouldOpenLinksInNewTab,
|
|
448
448
|
onLinkClick: (m, l) => {
|
|
449
|
-
|
|
449
|
+
o({
|
|
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
|
+
o({
|
|
459
459
|
eventName: "assistant_code_block_copied",
|
|
460
460
|
properties: {
|
|
461
461
|
conversation: d,
|
|
@@ -467,18 +467,18 @@ const Ze = "__intro__", et = i("div", {
|
|
|
467
467
|
}
|
|
468
468
|
) });
|
|
469
469
|
}, Wt = i("div", {
|
|
470
|
-
_id: "
|
|
470
|
+
_id: "aiChatMessageToolbar"
|
|
471
471
|
}), qn = (t) => {
|
|
472
472
|
const { isLoading: e, messages: a } = g(), { message: s } = _();
|
|
473
473
|
return a.at(-1)?.id === s?.id && e || s.role === "user" ? null : /* @__PURE__ */ n(Wt, { ...t });
|
|
474
474
|
}, Nt = i("div", {
|
|
475
475
|
_id: "aiChatMessageToolActions"
|
|
476
476
|
}), jn = (t) => {
|
|
477
|
-
const { children: e, ...a } = t, { message: s } = _(), {
|
|
478
|
-
return /* @__PURE__ */ n(Nt, { children: I(e,
|
|
477
|
+
const { children: e, ...a } = t, { message: s } = _(), { messageButtons: r } = g(), o = r[s.id] || [];
|
|
478
|
+
return /* @__PURE__ */ n(Nt, { children: I(e, o), ...a });
|
|
479
479
|
}, Gn = (t) => {
|
|
480
|
-
const { onClick: e, action: a, ...s } = t, { handleAction:
|
|
481
|
-
|
|
480
|
+
const { onClick: e, action: a, ...s } = t, { handleAction: r } = he(a), o = () => {
|
|
481
|
+
r();
|
|
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, o)
|
|
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, ...r } = t, { conversation: o } = q(), { message: c } = _(), { isStreaming: d, messages: m } = g(), [l, C] = Z(), { feedback: p, submitPositiveFeedback: P, setCurrentFeedback: T, currentFeedback: O } = de(), { logEvent: z } = j(), [W, Y] = $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: o
|
|
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
|
+
...r
|
|
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: r, organizationDisplayName: o },
|
|
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: o,
|
|
574
574
|
tabs: d,
|
|
575
|
-
transformSource:
|
|
575
|
+
transformSource: r
|
|
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: r } = j(), { conversation: o } = q(), c = () => {
|
|
584
|
+
r({
|
|
585
585
|
eventName: "assistant_source_item_clicked",
|
|
586
586
|
properties: {
|
|
587
|
-
conversation:
|
|
587
|
+
conversation: o,
|
|
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, r = Se(() => e.description ? Ge(e.description) : [], [e.description]);
|
|
630
|
+
return r.length ? /* @__PURE__ */ n(
|
|
631
631
|
zt,
|
|
632
632
|
{
|
|
633
633
|
"data-type": e.type,
|
|
634
|
-
children: I(a,
|
|
634
|
+
children: I(a, r),
|
|
635
635
|
...s
|
|
636
636
|
}
|
|
637
637
|
) : null;
|
|
638
638
|
}, Yt = i("span", {
|
|
639
639
|
_id: "aiChatMessageSourceItem__DescriptionPart"
|
|
640
|
-
}),
|
|
640
|
+
}), rs = (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
|
+
}), os = (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: r, handleInputKeyDown: o, 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, r),
|
|
688
|
+
onKeyDown: h(e, o),
|
|
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: r } = u(), { onClick: o, ...c } = t;
|
|
698
698
|
return /* @__PURE__ */ n(
|
|
699
699
|
Zt,
|
|
700
700
|
{
|
|
701
|
-
onClick: h(
|
|
701
|
+
onClick: h(o, () => e()),
|
|
702
702
|
"aria-label": "Send message",
|
|
703
|
-
disabled: a || !!s ||
|
|
703
|
+
disabled: a || !!s || r.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: r } = 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
|
+
r((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
|
+
}), ri = 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(ri, {}),
|
|
767
767
|
"Attachments will be kept in context for the entire conversation."
|
|
768
768
|
] })
|
|
769
|
-
}),
|
|
769
|
+
}), oi = 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
|
+
oi,
|
|
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: r, messageAttachments: o, setMessageAttachments: c } = g(), { selectInput: d, onOpen: m } = M(), l = () => {
|
|
784
784
|
if (e.type === "FUNCTIONAL_MULTI_ATTACHMENT")
|
|
785
|
-
return
|
|
785
|
+
return r ? e.onInvoke(r, e, c, [...o]) : 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(oe, {
|
|
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: r, onClose: o, selectedInput: c } = M();
|
|
802
802
|
return /* @__PURE__ */ n(
|
|
803
803
|
di,
|
|
804
804
|
{
|
|
805
|
-
open:
|
|
805
|
+
open: r && c !== null,
|
|
806
806
|
onOpenChange: h(e, (m) => {
|
|
807
|
-
m || (
|
|
807
|
+
m || (o(), 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(re, {
|
|
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(), r = s?.workflowModalProps?.modalHelpElement;
|
|
833
|
+
return r ? /* @__PURE__ */ n(hi, { asChild: !e, children: e || r, ...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: r } = 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: `${r?.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: r } = 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: `${r?.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, ...r } = t, { clear: o, stop: c, isLoading: d, messages: m, selectedWorkflow: l } = g(), { conversation: C } = q(), { aiChatSettings: p, baseSettings: P } = u(), { logEvent: T } = j(), [O, z] = Z(), [W, Y] = Z();
|
|
964
964
|
if ({
|
|
965
965
|
help: !1,
|
|
966
966
|
copy: m.length === 0 || !p.isCopyChatButtonVisible || d,
|
|
@@ -1020,7 +1020,7 @@ ${S}${R}`;
|
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
1022
1022
|
},
|
|
1023
|
-
clear:
|
|
1023
|
+
clear: o,
|
|
1024
1024
|
stop: c
|
|
1025
1025
|
}, ve = {
|
|
1026
1026
|
copy: O,
|
|
@@ -1034,44 +1034,44 @@ ${S}${R}`;
|
|
|
1034
1034
|
className: `${s} ${e}`,
|
|
1035
1035
|
children: /* @__PURE__ */ n(Fi, { action: e }),
|
|
1036
1036
|
onClick: h(a, X[e]),
|
|
1037
|
-
...
|
|
1037
|
+
...r
|
|
1038
1038
|
}
|
|
1039
1039
|
) });
|
|
1040
1040
|
}, Pi = i(k.Trigger, {
|
|
1041
1041
|
_id: "aiChat__ChatActionLabel"
|
|
1042
1042
|
}), Fi = (t) => {
|
|
1043
|
-
const { action: e, ...a } = t, { aiChatSettings: s } = u(),
|
|
1044
|
-
help:
|
|
1045
|
-
copy:
|
|
1046
|
-
share:
|
|
1047
|
-
clear:
|
|
1048
|
-
stop:
|
|
1043
|
+
const { action: e, ...a } = t, { aiChatSettings: s } = u(), r = s.toolbarButtonLabels ?? {}, o = {
|
|
1044
|
+
help: r.getHelp ?? "Get Help",
|
|
1045
|
+
copy: r.copyChat ?? "Copy",
|
|
1046
|
+
share: r.share ?? "Share",
|
|
1047
|
+
clear: r.clear ?? "Clear",
|
|
1048
|
+
stop: r.stop ?? "Stop"
|
|
1049
1049
|
};
|
|
1050
|
-
return /* @__PURE__ */ n(Pi, { children:
|
|
1050
|
+
return /* @__PURE__ */ n(Pi, { children: o[e], ...a });
|
|
1051
1051
|
}, Mi = i(k.TooltipContent, {
|
|
1052
1052
|
_id: "aiChat__ChatActionFeeback"
|
|
1053
1053
|
}), Xs = (t) => {
|
|
1054
|
-
const { action: e, children: a, ...s } = t,
|
|
1054
|
+
const { action: e, children: a, ...s } = t, r = {
|
|
1055
1055
|
copy: "Copied!",
|
|
1056
1056
|
share: "Link copied!"
|
|
1057
1057
|
};
|
|
1058
1058
|
return /* @__PURE__ */ $(Mi, { sideOffset: 5, ...s, children: [
|
|
1059
1059
|
/* @__PURE__ */ n(k.Arrow, {}),
|
|
1060
|
-
a ||
|
|
1060
|
+
a || r[e]
|
|
1061
1061
|
] });
|
|
1062
1062
|
}, Ii = i(U.Root, {
|
|
1063
1063
|
_id: "aiChatHelpActions"
|
|
1064
1064
|
}), Zs = (t) => {
|
|
1065
|
-
const { children: e, ...a } = t, { aiChatSettings: s } = u(), { getHelpOptions:
|
|
1066
|
-
if (!
|
|
1065
|
+
const { children: e, ...a } = t, { aiChatSettings: s } = u(), { getHelpOptions: r } = s;
|
|
1066
|
+
if (!r || (r ?? []).length === 0)
|
|
1067
1067
|
return null;
|
|
1068
|
-
const { _pinned:
|
|
1068
|
+
const { _pinned: o, _unpinned: c } = r.reduce(
|
|
1069
1069
|
(C, p) => {
|
|
1070
1070
|
const P = p.isPinnedToToolbar ? "_pinned" : "_unpinned";
|
|
1071
1071
|
return { ...C, [P]: [...C[P], p] };
|
|
1072
1072
|
},
|
|
1073
1073
|
{ _pinned: [], _unpinned: [] }
|
|
1074
|
-
), d = c.length === 1 ? [...
|
|
1074
|
+
), d = c.length === 1 ? [...o, c[0]] : o, m = c.length === 1 ? [] : c, l = Ve();
|
|
1075
1075
|
return /* @__PURE__ */ n(Ue, { value: l, children: /* @__PURE__ */ n(
|
|
1076
1076
|
Ii,
|
|
1077
1077
|
{
|
|
@@ -1088,13 +1088,13 @@ ${S}${R}`;
|
|
|
1088
1088
|
_id: "aiChatHelpAction",
|
|
1089
1089
|
target: "_blank",
|
|
1090
1090
|
rel: "noreferrer"
|
|
1091
|
-
}),
|
|
1092
|
-
const { action: e, onClick: a, ...s } = t, { handleAction:
|
|
1091
|
+
}), er = (t) => {
|
|
1092
|
+
const { action: e, onClick: a, ...s } = t, { handleAction: r, logHelpAction: o } = he(e), c = e.action.type, d = {
|
|
1093
1093
|
"aria-label": e.name,
|
|
1094
1094
|
"data-name": e.name,
|
|
1095
1095
|
children: e.name,
|
|
1096
1096
|
onClick: h(a, () => {
|
|
1097
|
-
|
|
1097
|
+
r(), o();
|
|
1098
1098
|
}),
|
|
1099
1099
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
1100
1100
|
...s
|
|
@@ -1102,14 +1102,14 @@ ${S}${R}`;
|
|
|
1102
1102
|
return c === "open_link" ? /* @__PURE__ */ n(Si, { href: e.action.url, ...d }) : /* @__PURE__ */ n(fi, { ...d });
|
|
1103
1103
|
}, Ei = i(U.Trigger, {
|
|
1104
1104
|
_id: "aiChatHelpActions__Trigger"
|
|
1105
|
-
}),
|
|
1105
|
+
}), tr = F(
|
|
1106
1106
|
(t) => {
|
|
1107
1107
|
const { aiChatSettings: e } = u();
|
|
1108
1108
|
return /* @__PURE__ */ n(Me, { action: "help", ...t, asChild: !0, children: /* @__PURE__ */ n(Ei, { children: e.toolbarButtonLabels?.getHelp ?? "Get Help" }) });
|
|
1109
1109
|
}
|
|
1110
1110
|
), ki = i(U.Content, {
|
|
1111
1111
|
_id: "aiChatHelpActions__Menu"
|
|
1112
|
-
}),
|
|
1112
|
+
}), ir = (t) => /* @__PURE__ */ n(
|
|
1113
1113
|
ki,
|
|
1114
1114
|
{
|
|
1115
1115
|
side: "top",
|
|
@@ -1118,13 +1118,13 @@ ${S}${R}`;
|
|
|
1118
1118
|
alignOffset: -10,
|
|
1119
1119
|
...t
|
|
1120
1120
|
}
|
|
1121
|
-
),
|
|
1121
|
+
), ar = i(U.Arrow, {
|
|
1122
1122
|
_id: "aiChatHelpActions__MenuArrow"
|
|
1123
|
-
}),
|
|
1124
|
-
const { action: e, onClick: a, ...s } = t, { handleAction:
|
|
1125
|
-
|
|
1123
|
+
}), nr = (t) => {
|
|
1124
|
+
const { action: e, onClick: a, ...s } = t, { handleAction: r, logHelpAction: o } = he(e), { setOpen: c } = Ke(), d = () => {
|
|
1125
|
+
r({
|
|
1126
1126
|
onOpenForm: () => c(!1)
|
|
1127
|
-
}),
|
|
1127
|
+
}), o();
|
|
1128
1128
|
}, m = e.action.type, l = i(m === "open_link" ? "a" : "button", {
|
|
1129
1129
|
_id: "aiChatHelpActions__MenuItem",
|
|
1130
1130
|
children: e.name,
|
|
@@ -1141,52 +1141,52 @@ ${S}${R}`;
|
|
|
1141
1141
|
return /* @__PURE__ */ n(l, { ...s });
|
|
1142
1142
|
}, Bi = i(B, {
|
|
1143
1143
|
_id: "aiChatHelpActions_MenuItemIcon"
|
|
1144
|
-
}),
|
|
1144
|
+
}), sr = (t) => {
|
|
1145
1145
|
const { action: e, ...a } = t;
|
|
1146
1146
|
return e.icon ? /* @__PURE__ */ n(Bi, { iconSettings: e.icon, ...a }) : null;
|
|
1147
|
-
}, Ti = i(
|
|
1147
|
+
}, Ti = i(oe, {
|
|
1148
1148
|
_id: "aiChatFeedbackModal"
|
|
1149
|
-
}),
|
|
1150
|
-
const { onOpenChange: e, ...a } = t, { currentFeedback: s, setCurrentFeedback:
|
|
1149
|
+
}), rr = (t) => {
|
|
1150
|
+
const { onOpenChange: e, ...a } = t, { currentFeedback: s, setCurrentFeedback: r } = de();
|
|
1151
1151
|
return /* @__PURE__ */ n(
|
|
1152
1152
|
Ti,
|
|
1153
1153
|
{
|
|
1154
1154
|
open: s !== null,
|
|
1155
|
-
onOpenChange: h(e, () =>
|
|
1155
|
+
onOpenChange: h(e, () => r(null)),
|
|
1156
1156
|
...a
|
|
1157
1157
|
}
|
|
1158
1158
|
);
|
|
1159
|
-
},
|
|
1159
|
+
}, or = i(ae, {
|
|
1160
1160
|
_id: "aiChatFeedbackModal__Overlay"
|
|
1161
|
-
}),
|
|
1161
|
+
}), cr = i(ne, {
|
|
1162
1162
|
_id: "aiChatFeedbackModal__Content",
|
|
1163
1163
|
"aria-describedby": void 0
|
|
1164
|
-
}),
|
|
1164
|
+
}), dr = i(re, {
|
|
1165
1165
|
_id: "aiChatFeedbackModal__Header",
|
|
1166
1166
|
children: "Help improve my answers!"
|
|
1167
|
-
}),
|
|
1167
|
+
}), mr = i(se, {
|
|
1168
1168
|
_id: "aiChatFeedbackModal__Close",
|
|
1169
1169
|
children: /* @__PURE__ */ n(A, { iconKey: "close" })
|
|
1170
|
-
}),
|
|
1170
|
+
}), lr = i("div", {
|
|
1171
1171
|
_id: "aiChatFeedbackModal__Body"
|
|
1172
1172
|
}), yi = i("form", {
|
|
1173
1173
|
_id: "aiChatFeedbackForm"
|
|
1174
|
-
}),
|
|
1175
|
-
const { onSubmit: e, ...a } = t, { submitNegativeFeedback: s, currentFeedback:
|
|
1174
|
+
}), hr = (t) => {
|
|
1175
|
+
const { onSubmit: e, ...a } = t, { submitNegativeFeedback: s, currentFeedback: r, setCurrentFeedback: o } = de();
|
|
1176
1176
|
return /* @__PURE__ */ n(yi, { onSubmit: h(e, (d) => {
|
|
1177
1177
|
d.preventDefault();
|
|
1178
1178
|
const m = d.target, l = new FormData(m), C = Object.fromEntries(l.entries());
|
|
1179
|
-
|
|
1179
|
+
r && (s(r, C), o(null));
|
|
1180
1180
|
}), ...a });
|
|
1181
1181
|
}, wi = i("div", {
|
|
1182
1182
|
_id: "aiChatFeedbackItem"
|
|
1183
|
-
}),
|
|
1183
|
+
}), ur = (t) => {
|
|
1184
1184
|
const { name: e, ...a } = t;
|
|
1185
1185
|
return /* @__PURE__ */ n(Oe, { name: e, children: /* @__PURE__ */ n(wi, { ...a }) });
|
|
1186
1186
|
}, Hi = i(V.Root, {
|
|
1187
1187
|
_id: "aiChatFeedbackItem__Checkbox"
|
|
1188
|
-
}),
|
|
1189
|
-
const { name: e, focusItem: a } = me(), { onCheckedChange: s, ...
|
|
1188
|
+
}), Cr = (t) => {
|
|
1189
|
+
const { name: e, focusItem: a } = me(), { onCheckedChange: s, ...r } = t, o = (c) => {
|
|
1190
1190
|
c && a?.current?.focus();
|
|
1191
1191
|
};
|
|
1192
1192
|
return /* @__PURE__ */ n(
|
|
@@ -1194,16 +1194,16 @@ ${S}${R}`;
|
|
|
1194
1194
|
{
|
|
1195
1195
|
id: `feedback-${e}`,
|
|
1196
1196
|
name: e,
|
|
1197
|
-
onCheckedChange: h(s,
|
|
1198
|
-
...
|
|
1197
|
+
onCheckedChange: h(s, o),
|
|
1198
|
+
...r
|
|
1199
1199
|
}
|
|
1200
1200
|
);
|
|
1201
|
-
},
|
|
1201
|
+
}, pr = i(V.Indicator, {
|
|
1202
1202
|
_id: "aiChatFeedbackItem__CheckboxIndicator",
|
|
1203
1203
|
children: /* @__PURE__ */ n(Pe, {})
|
|
1204
1204
|
}), Li = i("label", {
|
|
1205
1205
|
_id: "aiChatFeedbackItem__Label"
|
|
1206
|
-
}),
|
|
1206
|
+
}), vr = (t) => {
|
|
1207
1207
|
const { name: e } = me(), a = {
|
|
1208
1208
|
unrelated_response: "Didn't answer my question",
|
|
1209
1209
|
inaccurate_statement: "Inaccurate statement",
|
|
@@ -1214,7 +1214,7 @@ ${S}${R}`;
|
|
|
1214
1214
|
}, xi = i("textarea", {
|
|
1215
1215
|
_id: "aiChatFeedbackItem__Description",
|
|
1216
1216
|
placeholder: "Please describe"
|
|
1217
|
-
}),
|
|
1217
|
+
}), gr = (t) => {
|
|
1218
1218
|
const { name: e, focusItem: a } = me();
|
|
1219
1219
|
return /* @__PURE__ */ n(
|
|
1220
1220
|
xi,
|
|
@@ -1224,59 +1224,59 @@ ${S}${R}`;
|
|
|
1224
1224
|
...t
|
|
1225
1225
|
}
|
|
1226
1226
|
);
|
|
1227
|
-
},
|
|
1227
|
+
}, _r = i("button", {
|
|
1228
1228
|
_id: "aiChatFeedbackForm__SubmitButton",
|
|
1229
1229
|
children: "Submit",
|
|
1230
1230
|
type: "submit"
|
|
1231
1231
|
}), Di = i("div", {
|
|
1232
1232
|
_id: "aiChatForm__Wrapper"
|
|
1233
|
-
}),
|
|
1233
|
+
}), br = (t) => {
|
|
1234
1234
|
const { form: e } = b();
|
|
1235
1235
|
return e ? /* @__PURE__ */ n(Di, { ...t }) : null;
|
|
1236
1236
|
}, Oi = i("form", {
|
|
1237
1237
|
_id: "aiChatForm"
|
|
1238
|
-
}),
|
|
1239
|
-
const { onSubmit: e, ...a } = t, { handleSubmit: s, isSuccess:
|
|
1240
|
-
return
|
|
1238
|
+
}), Ar = (t) => {
|
|
1239
|
+
const { onSubmit: e, ...a } = t, { handleSubmit: s, isSuccess: r } = b();
|
|
1240
|
+
return r ? null : /* @__PURE__ */ n(Oi, { onSubmit: h(e, s), ...a });
|
|
1241
1241
|
}, Wi = i("button", {
|
|
1242
1242
|
_id: "aiChatForm__Close",
|
|
1243
1243
|
children: /* @__PURE__ */ n(A, { iconKey: "close" })
|
|
1244
|
-
}),
|
|
1244
|
+
}), Pr = (t) => {
|
|
1245
1245
|
const { onClick: e, ...a } = t, { closeForm: s } = b();
|
|
1246
1246
|
return /* @__PURE__ */ n(Wi, { onClick: h(e, s), ...a });
|
|
1247
|
-
},
|
|
1247
|
+
}, Fr = i("div", {
|
|
1248
1248
|
_id: "aiChatForm__Header"
|
|
1249
1249
|
}), Ni = i("h2", {
|
|
1250
1250
|
_id: "aiChatForm__Heading"
|
|
1251
|
-
}),
|
|
1251
|
+
}), Mr = (t) => {
|
|
1252
1252
|
const { form: e } = b();
|
|
1253
1253
|
return e?.heading ? /* @__PURE__ */ n(Ni, { children: e.heading, ...t }) : null;
|
|
1254
1254
|
}, Ri = i("span", {
|
|
1255
1255
|
_id: "aiChatForm__Description"
|
|
1256
|
-
}),
|
|
1256
|
+
}), Ir = (t) => {
|
|
1257
1257
|
const { form: e } = b();
|
|
1258
1258
|
return e?.description ? /* @__PURE__ */ n(Ri, { children: e.description, ...t }) : null;
|
|
1259
1259
|
}, $i = i("div", {
|
|
1260
1260
|
_id: "aiChatForm__Content"
|
|
1261
|
-
}),
|
|
1261
|
+
}), fr = (t) => {
|
|
1262
1262
|
const { children: e, ...a } = t, { fields: s = [] } = b();
|
|
1263
1263
|
return /* @__PURE__ */ n($i, { children: I(e, s), ...a });
|
|
1264
1264
|
}, Qi = i("div", {
|
|
1265
1265
|
_id: "aiChatForm__Field"
|
|
1266
|
-
}),
|
|
1267
|
-
const { field: e, autoFocus: a, ...s } = t, { control:
|
|
1266
|
+
}), Sr = (t) => {
|
|
1267
|
+
const { field: e, autoFocus: a, ...s } = t, { control: r, errors: o } = b();
|
|
1268
1268
|
return /* @__PURE__ */ n(
|
|
1269
1269
|
je,
|
|
1270
1270
|
{
|
|
1271
1271
|
name: e.name,
|
|
1272
|
-
control:
|
|
1272
|
+
control: r,
|
|
1273
1273
|
rules: { required: e.isRequired ? `${e.label} is required.` : void 0 },
|
|
1274
1274
|
render: ({ field: c }) => {
|
|
1275
1275
|
const d = c.value !== void 0 || e.inputType === "file";
|
|
1276
1276
|
return /* @__PURE__ */ n(
|
|
1277
1277
|
qe,
|
|
1278
1278
|
{
|
|
1279
|
-
"data-invalid": v(!!
|
|
1279
|
+
"data-invalid": v(!!o[e.name]),
|
|
1280
1280
|
field: e,
|
|
1281
1281
|
fieldProps: c,
|
|
1282
1282
|
autoFocus: a,
|
|
@@ -1295,7 +1295,7 @@ ${S}${R}`;
|
|
|
1295
1295
|
);
|
|
1296
1296
|
}, Vi = i("label", {
|
|
1297
1297
|
_id: "aiChatForm__FieldLabel"
|
|
1298
|
-
}),
|
|
1298
|
+
}), Er = (t) => {
|
|
1299
1299
|
const { field: e } = H();
|
|
1300
1300
|
return /* @__PURE__ */ n(
|
|
1301
1301
|
Vi,
|
|
@@ -1313,7 +1313,7 @@ ${S}${R}`;
|
|
|
1313
1313
|
const {
|
|
1314
1314
|
field: e,
|
|
1315
1315
|
error: a,
|
|
1316
|
-
fieldProps: { onChange: s, onBlur:
|
|
1316
|
+
fieldProps: { onChange: s, onBlur: r, ...o },
|
|
1317
1317
|
autoFocus: c
|
|
1318
1318
|
} = H(), { onChange: d, onBlur: m, ...l } = t;
|
|
1319
1319
|
return /* @__PURE__ */ n(
|
|
@@ -1324,27 +1324,27 @@ ${S}${R}`;
|
|
|
1324
1324
|
placeholder: "placeholder" in e ? e.placeholder : void 0,
|
|
1325
1325
|
"data-invalid": v(!!a),
|
|
1326
1326
|
onChange: h(d, s),
|
|
1327
|
-
onBlur: h(m,
|
|
1328
|
-
...
|
|
1327
|
+
onBlur: h(m, r),
|
|
1328
|
+
...o,
|
|
1329
1329
|
...l
|
|
1330
1330
|
}
|
|
1331
1331
|
);
|
|
1332
|
-
},
|
|
1332
|
+
}, kr = i(Ie, {
|
|
1333
1333
|
_id: "aiChatForm__FieldEmail",
|
|
1334
1334
|
type: "email"
|
|
1335
1335
|
}), Ki = i("input", {
|
|
1336
1336
|
_id: "aiChatForm__FieldFile",
|
|
1337
1337
|
type: "file",
|
|
1338
1338
|
multiple: !0
|
|
1339
|
-
}),
|
|
1339
|
+
}), Br = (t) => {
|
|
1340
1340
|
const {
|
|
1341
1341
|
field: e,
|
|
1342
1342
|
error: a,
|
|
1343
|
-
fieldProps: { value: s, onChange:
|
|
1343
|
+
fieldProps: { value: s, onChange: r, onBlur: o, ...c },
|
|
1344
1344
|
autoFocus: d
|
|
1345
1345
|
} = H(), { onChange: m, onBlur: l, ...C } = t, p = (P) => {
|
|
1346
1346
|
const T = P.target.files;
|
|
1347
|
-
|
|
1347
|
+
r(T);
|
|
1348
1348
|
};
|
|
1349
1349
|
return /* @__PURE__ */ n(
|
|
1350
1350
|
Ki,
|
|
@@ -1356,52 +1356,52 @@ ${S}${R}`;
|
|
|
1356
1356
|
...C,
|
|
1357
1357
|
...c,
|
|
1358
1358
|
onChange: h(m, p),
|
|
1359
|
-
onBlur: h(l,
|
|
1359
|
+
onBlur: h(l, o)
|
|
1360
1360
|
}
|
|
1361
1361
|
);
|
|
1362
|
-
},
|
|
1362
|
+
}, Tr = i(Ie, {
|
|
1363
1363
|
_id: "aiChatForm__FieldTextArea",
|
|
1364
1364
|
type: "textarea",
|
|
1365
1365
|
asChild: !0,
|
|
1366
1366
|
children: /* @__PURE__ */ n(te, { maxRows: 8 })
|
|
1367
1367
|
}), qi = i(V.Root, {
|
|
1368
1368
|
_id: "aiChatForm__FieldCheckbox"
|
|
1369
|
-
}),
|
|
1370
|
-
const { field: e, error: a, fieldProps: s, autoFocus:
|
|
1369
|
+
}), yr = (t) => {
|
|
1370
|
+
const { field: e, error: a, fieldProps: s, autoFocus: r } = H(), { onCheckedChange: o, ...c } = t;
|
|
1371
1371
|
return /* @__PURE__ */ n(
|
|
1372
1372
|
qi,
|
|
1373
1373
|
{
|
|
1374
1374
|
id: e.name,
|
|
1375
1375
|
name: e.name,
|
|
1376
|
-
autoFocus:
|
|
1376
|
+
autoFocus: r,
|
|
1377
1377
|
"data-invalid": v(!!a),
|
|
1378
1378
|
checked: s.value,
|
|
1379
|
-
onCheckedChange: h(
|
|
1379
|
+
onCheckedChange: h(o, s.onChange),
|
|
1380
1380
|
...c
|
|
1381
1381
|
}
|
|
1382
1382
|
);
|
|
1383
|
-
},
|
|
1383
|
+
}, wr = i(V.Indicator, {
|
|
1384
1384
|
_id: "aiChatForm__FieldCheckboxIndicator",
|
|
1385
1385
|
children: /* @__PURE__ */ n(Pe, {})
|
|
1386
1386
|
}), ji = i(f.Root, {
|
|
1387
1387
|
_id: "aiChatForm__FieldSelect"
|
|
1388
|
-
}),
|
|
1389
|
-
const { field: e, error: a, fieldProps: s } = H(), { onValueChange:
|
|
1388
|
+
}), Hr = (t) => {
|
|
1389
|
+
const { field: e, error: a, fieldProps: s } = H(), { onValueChange: r, ...o } = t;
|
|
1390
1390
|
return /* @__PURE__ */ n(
|
|
1391
1391
|
ji,
|
|
1392
1392
|
{
|
|
1393
1393
|
name: e.name,
|
|
1394
1394
|
"data-invalid": v(!!a),
|
|
1395
1395
|
value: s.value,
|
|
1396
|
-
onValueChange: h(
|
|
1397
|
-
...
|
|
1396
|
+
onValueChange: h(r, s.onChange),
|
|
1397
|
+
...o
|
|
1398
1398
|
}
|
|
1399
1399
|
);
|
|
1400
|
-
},
|
|
1400
|
+
}, Lr = i(f.Trigger, {
|
|
1401
1401
|
_id: "aiChatForm__FieldSelect__Trigger"
|
|
1402
1402
|
}), Gi = i(f.Value, {
|
|
1403
1403
|
_id: "aiChatForm__FieldSelect__Value"
|
|
1404
|
-
}),
|
|
1404
|
+
}), xr = (t) => {
|
|
1405
1405
|
const { field: e } = H();
|
|
1406
1406
|
return /* @__PURE__ */ n(
|
|
1407
1407
|
Gi,
|
|
@@ -1410,20 +1410,20 @@ ${S}${R}`;
|
|
|
1410
1410
|
...t
|
|
1411
1411
|
}
|
|
1412
1412
|
);
|
|
1413
|
-
},
|
|
1413
|
+
}, Dr = i(f.Icon, {
|
|
1414
1414
|
_id: "aiChatForm__FieldSelect__Icon",
|
|
1415
1415
|
asChild: !0,
|
|
1416
1416
|
children: /* @__PURE__ */ n(B, { iconSettings: { builtIn: "LuChevronDown" } })
|
|
1417
|
-
}),
|
|
1417
|
+
}), Or = i(f.Content, {
|
|
1418
1418
|
_id: "aiChatForm__FieldSelect__Content",
|
|
1419
1419
|
position: "popper"
|
|
1420
|
-
}),
|
|
1420
|
+
}), Wr = i(f.Viewport, {
|
|
1421
1421
|
_id: "aiChatForm__FieldSelect__Viewport"
|
|
1422
|
-
}),
|
|
1422
|
+
}), Nr = i(f.Item, {
|
|
1423
1423
|
_id: "aiChatForm__FieldSelect__Item"
|
|
1424
|
-
}),
|
|
1424
|
+
}), Rr = i(f.ItemText, {
|
|
1425
1425
|
_id: "aiChatForm__FieldSelect__ItemText"
|
|
1426
|
-
}),
|
|
1426
|
+
}), $r = i(
|
|
1427
1427
|
f.ItemIndicator,
|
|
1428
1428
|
{
|
|
1429
1429
|
_id: "aiChatForm__FieldSelect__ItemIndicator",
|
|
@@ -1432,54 +1432,54 @@ ${S}${R}`;
|
|
|
1432
1432
|
}
|
|
1433
1433
|
), zi = i("span", {
|
|
1434
1434
|
_id: "aiChatForm__FieldError"
|
|
1435
|
-
}),
|
|
1435
|
+
}), Qr = (t) => {
|
|
1436
1436
|
const { error: e } = H();
|
|
1437
1437
|
return e ? /* @__PURE__ */ n(zi, { children: e.message?.toString(), ...t }) : null;
|
|
1438
1438
|
}, Yi = i("span", {
|
|
1439
1439
|
_id: "aiChatForm__Error"
|
|
1440
|
-
}),
|
|
1440
|
+
}), Vr = (t) => {
|
|
1441
1441
|
const { formError: e } = b();
|
|
1442
1442
|
return e ? /* @__PURE__ */ n(Yi, { children: e.message, ...t }) : null;
|
|
1443
|
-
},
|
|
1443
|
+
}, Ur = i("div", {
|
|
1444
1444
|
_id: "aiChatForm__Footer"
|
|
1445
1445
|
}), Ji = i("button", {
|
|
1446
1446
|
_id: "aiChatForm__Cancel",
|
|
1447
1447
|
children: "Cancel"
|
|
1448
|
-
}),
|
|
1448
|
+
}), Kr = (t) => {
|
|
1449
1449
|
const { onClick: e, ...a } = t, { closeForm: s } = b();
|
|
1450
1450
|
return /* @__PURE__ */ n(Ji, { onClick: h(e, s), ...a });
|
|
1451
1451
|
}, Xi = i("button", {
|
|
1452
1452
|
_id: "aiChatForm__Submit",
|
|
1453
1453
|
children: "Submit",
|
|
1454
1454
|
type: "submit"
|
|
1455
|
-
}),
|
|
1455
|
+
}), qr = (t) => {
|
|
1456
1456
|
const { onClick: e, ...a } = t, { isSubmitting: s } = b();
|
|
1457
1457
|
return /* @__PURE__ */ n(Xi, { disabled: s, ...a });
|
|
1458
1458
|
}, Zi = i("div", {
|
|
1459
1459
|
_id: "aiChatForm__Success"
|
|
1460
|
-
}),
|
|
1460
|
+
}), jr = (t) => {
|
|
1461
1461
|
const { isSuccess: e } = b();
|
|
1462
1462
|
return e ? /* @__PURE__ */ n(Zi, { ...t }) : null;
|
|
1463
1463
|
}, ea = i("h2", {
|
|
1464
1464
|
_id: "aiChatForm__SuccessHeading"
|
|
1465
|
-
}),
|
|
1465
|
+
}), Gr = (t) => {
|
|
1466
1466
|
const { form: e } = b();
|
|
1467
1467
|
return /* @__PURE__ */ n(ea, { children: e?.successView.heading, ...t });
|
|
1468
1468
|
}, ta = i(ce, {
|
|
1469
1469
|
_id: "aiChatForm__SuccessMessage"
|
|
1470
|
-
}),
|
|
1470
|
+
}), zr = (t) => {
|
|
1471
1471
|
const { form: e } = b();
|
|
1472
1472
|
return /* @__PURE__ */ n(ta, { children: e?.successView.message, ...t });
|
|
1473
1473
|
}, ia = i("button", {
|
|
1474
1474
|
_id: "aiChatForm__SuccessButton"
|
|
1475
|
-
}),
|
|
1476
|
-
const { onClick: e, ...a } = t, { form: s, closeForm:
|
|
1477
|
-
if (!
|
|
1478
|
-
const c =
|
|
1475
|
+
}), Yr = (t) => {
|
|
1476
|
+
const { onClick: e, ...a } = t, { form: s, closeForm: r } = b(), o = s?.successView?.doneButton;
|
|
1477
|
+
if (!o) return null;
|
|
1478
|
+
const c = o.icon && /* @__PURE__ */ n(B, { iconSettings: o.icon }), d = o.label;
|
|
1479
1479
|
return /* @__PURE__ */ n(
|
|
1480
1480
|
ia,
|
|
1481
1481
|
{
|
|
1482
|
-
onClick: h(e,
|
|
1482
|
+
onClick: h(e, r),
|
|
1483
1483
|
children: /* @__PURE__ */ $(ee, { children: [
|
|
1484
1484
|
c,
|
|
1485
1485
|
d
|
|
@@ -1508,7 +1508,7 @@ export {
|
|
|
1508
1508
|
Ns as AttachmentsBarFormTitleInput,
|
|
1509
1509
|
Ws as AttachmentsBarFormTitleLabel,
|
|
1510
1510
|
Ps as AttachmentsBarInfoTip,
|
|
1511
|
-
|
|
1511
|
+
ri as AttachmentsBarInfoTipArrow,
|
|
1512
1512
|
Fs as AttachmentsBarInfoTipIcon,
|
|
1513
1513
|
Ms as AttachmentsBarInfoTipText,
|
|
1514
1514
|
fs as AttachmentsBarInput,
|
|
@@ -1527,10 +1527,10 @@ export {
|
|
|
1527
1527
|
Me as ChatAction,
|
|
1528
1528
|
Xs as ChatActionFeedback,
|
|
1529
1529
|
Fi as ChatActionLabel,
|
|
1530
|
-
|
|
1530
|
+
er as ChatHelpAction,
|
|
1531
1531
|
en as Content,
|
|
1532
1532
|
tn as ContentScrollArea,
|
|
1533
|
-
|
|
1533
|
+
rn as ContentScrollAreaCorner,
|
|
1534
1534
|
nn as ContentScrollAreaScrollbar,
|
|
1535
1535
|
sn as ContentScrollAreaThumb,
|
|
1536
1536
|
an as ContentScrollAreaViewport,
|
|
@@ -1560,7 +1560,7 @@ export {
|
|
|
1560
1560
|
Ns as EmbeddedChatPrimitiveAttachmentsBarFormTitleInput,
|
|
1561
1561
|
Ws as EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel,
|
|
1562
1562
|
Ps as EmbeddedChatPrimitiveAttachmentsBarInfoTip,
|
|
1563
|
-
|
|
1563
|
+
ri as EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow,
|
|
1564
1564
|
Fs as EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon,
|
|
1565
1565
|
Ms as EmbeddedChatPrimitiveAttachmentsBarInfoTipText,
|
|
1566
1566
|
fs as EmbeddedChatPrimitiveAttachmentsBarInput,
|
|
@@ -1579,10 +1579,10 @@ export {
|
|
|
1579
1579
|
Me as EmbeddedChatPrimitiveChatAction,
|
|
1580
1580
|
Xs as EmbeddedChatPrimitiveChatActionFeedback,
|
|
1581
1581
|
Fi as EmbeddedChatPrimitiveChatActionLabel,
|
|
1582
|
-
|
|
1582
|
+
er as EmbeddedChatPrimitiveChatHelpAction,
|
|
1583
1583
|
en as EmbeddedChatPrimitiveContent,
|
|
1584
1584
|
tn as EmbeddedChatPrimitiveContentScrollArea,
|
|
1585
|
-
|
|
1585
|
+
rn as EmbeddedChatPrimitiveContentScrollAreaCorner,
|
|
1586
1586
|
nn as EmbeddedChatPrimitiveContentScrollAreaScrollbar,
|
|
1587
1587
|
sn as EmbeddedChatPrimitiveContentScrollAreaThumb,
|
|
1588
1588
|
an as EmbeddedChatPrimitiveContentScrollAreaViewport,
|
|
@@ -1598,67 +1598,66 @@ export {
|
|
|
1598
1598
|
Cn as EmbeddedChatPrimitiveExampleQuestions,
|
|
1599
1599
|
pn as EmbeddedChatPrimitiveExampleQuestionsLabel,
|
|
1600
1600
|
vn as EmbeddedChatPrimitiveExampleQuestionsList,
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1601
|
+
hr as EmbeddedChatPrimitiveFeedbackForm,
|
|
1602
|
+
ur as EmbeddedChatPrimitiveFeedbackItem,
|
|
1603
|
+
Cr as EmbeddedChatPrimitiveFeedbackItemCheckbox,
|
|
1604
|
+
pr as EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator,
|
|
1605
|
+
gr as EmbeddedChatPrimitiveFeedbackItemDescription,
|
|
1606
|
+
vr as EmbeddedChatPrimitiveFeedbackItemLabel,
|
|
1607
|
+
rr as EmbeddedChatPrimitiveFeedbackModal,
|
|
1608
|
+
lr as EmbeddedChatPrimitiveFeedbackModalBody,
|
|
1609
|
+
mr as EmbeddedChatPrimitiveFeedbackModalClose,
|
|
1610
|
+
cr as EmbeddedChatPrimitiveFeedbackModalContent,
|
|
1611
|
+
dr as EmbeddedChatPrimitiveFeedbackModalHeader,
|
|
1612
|
+
or as EmbeddedChatPrimitiveFeedbackModalOverlay,
|
|
1613
|
+
_r as EmbeddedChatPrimitiveFeedbackSubmitButton,
|
|
1614
1614
|
cs as EmbeddedChatPrimitiveFooter,
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1615
|
+
Ar as EmbeddedChatPrimitiveForm,
|
|
1616
|
+
Kr as EmbeddedChatPrimitiveFormCancel,
|
|
1617
|
+
Pr as EmbeddedChatPrimitiveFormClose,
|
|
1618
|
+
fr as EmbeddedChatPrimitiveFormContent,
|
|
1619
|
+
Ir as EmbeddedChatPrimitiveFormDescription,
|
|
1620
|
+
Vr as EmbeddedChatPrimitiveFormError,
|
|
1621
|
+
Sr as EmbeddedChatPrimitiveFormField,
|
|
1622
|
+
yr as EmbeddedChatPrimitiveFormFieldCheckbox,
|
|
1623
|
+
wr as EmbeddedChatPrimitiveFormFieldCheckboxIndicator,
|
|
1624
|
+
kr as EmbeddedChatPrimitiveFormFieldEmail,
|
|
1625
|
+
Qr as EmbeddedChatPrimitiveFormFieldError,
|
|
1626
|
+
Br as EmbeddedChatPrimitiveFormFieldFile,
|
|
1627
|
+
Er as EmbeddedChatPrimitiveFormFieldLabel,
|
|
1628
|
+
Hr as EmbeddedChatPrimitiveFormFieldSelect,
|
|
1629
|
+
Or as EmbeddedChatPrimitiveFormFieldSelectContent,
|
|
1630
|
+
Dr as EmbeddedChatPrimitiveFormFieldSelectIcon,
|
|
1631
|
+
Nr as EmbeddedChatPrimitiveFormFieldSelectItem,
|
|
1632
|
+
$r as EmbeddedChatPrimitiveFormFieldSelectItemIndicator,
|
|
1633
|
+
Rr as EmbeddedChatPrimitiveFormFieldSelectItemText,
|
|
1634
|
+
Lr as EmbeddedChatPrimitiveFormFieldSelectTrigger,
|
|
1635
|
+
xr as EmbeddedChatPrimitiveFormFieldSelectValue,
|
|
1636
|
+
Wr as EmbeddedChatPrimitiveFormFieldSelectViewport,
|
|
1637
1637
|
Ie as EmbeddedChatPrimitiveFormFieldText,
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1638
|
+
Tr as EmbeddedChatPrimitiveFormFieldTextArea,
|
|
1639
|
+
Ur as EmbeddedChatPrimitiveFormFooter,
|
|
1640
|
+
Fr as EmbeddedChatPrimitiveFormHeader,
|
|
1641
|
+
Mr as EmbeddedChatPrimitiveFormHeading,
|
|
1642
|
+
qr as EmbeddedChatPrimitiveFormSubmit,
|
|
1643
|
+
jr as EmbeddedChatPrimitiveFormSuccess,
|
|
1644
|
+
Yr as EmbeddedChatPrimitiveFormSuccessButton,
|
|
1645
|
+
Gr as EmbeddedChatPrimitiveFormSuccessHeading,
|
|
1646
|
+
zr as EmbeddedChatPrimitiveFormSuccessMessage,
|
|
1647
|
+
br as EmbeddedChatPrimitiveFormWrapper,
|
|
1648
1648
|
Ja as EmbeddedChatPrimitiveHeaderToolbar,
|
|
1649
1649
|
Zs as EmbeddedChatPrimitiveHelpActions,
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1650
|
+
ir as EmbeddedChatPrimitiveHelpActionsMenu,
|
|
1651
|
+
ar as EmbeddedChatPrimitiveHelpActionsMenuArrow,
|
|
1652
|
+
nr as EmbeddedChatPrimitiveHelpActionsMenuItem,
|
|
1653
|
+
sr as EmbeddedChatPrimitiveHelpActionsMenuItemIcon,
|
|
1654
|
+
tr as EmbeddedChatPrimitiveHelpActionsTrigger,
|
|
1655
1655
|
ls as EmbeddedChatPrimitiveInput,
|
|
1656
1656
|
ds as EmbeddedChatPrimitiveInputFieldset,
|
|
1657
1657
|
ms as EmbeddedChatPrimitiveInputGroup,
|
|
1658
1658
|
In as EmbeddedChatPrimitiveIntroMessageWrapper,
|
|
1659
1659
|
Kn as EmbeddedChatPrimitiveMessage,
|
|
1660
1660
|
zn as EmbeddedChatPrimitiveMessageAction,
|
|
1661
|
-
qn as EmbeddedChatPrimitiveMessageActions,
|
|
1662
1661
|
Ln as EmbeddedChatPrimitiveMessageAttachments,
|
|
1663
1662
|
Dn as EmbeddedChatPrimitiveMessageAttachmentsItem,
|
|
1664
1663
|
On as EmbeddedChatPrimitiveMessageAttachmentsItemIcon,
|
|
@@ -1682,9 +1681,9 @@ export {
|
|
|
1682
1681
|
Zn as EmbeddedChatPrimitiveMessageSourceItem,
|
|
1683
1682
|
es as EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,
|
|
1684
1683
|
ss as EmbeddedChatPrimitiveMessageSourceItemDescription,
|
|
1685
|
-
|
|
1684
|
+
rs as EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,
|
|
1686
1685
|
is as EmbeddedChatPrimitiveMessageSourceItemIcon,
|
|
1687
|
-
|
|
1686
|
+
os as EmbeddedChatPrimitiveMessageSourceItemIndicator,
|
|
1688
1687
|
ns as EmbeddedChatPrimitiveMessageSourceItemTag,
|
|
1689
1688
|
as as EmbeddedChatPrimitiveMessageSourceItemTitle,
|
|
1690
1689
|
Yn as EmbeddedChatPrimitiveMessageSources,
|
|
@@ -1692,8 +1691,9 @@ export {
|
|
|
1692
1691
|
Xn as EmbeddedChatPrimitiveMessageSourcesList,
|
|
1693
1692
|
Gn as EmbeddedChatPrimitiveMessageToolAction,
|
|
1694
1693
|
jn as EmbeddedChatPrimitiveMessageToolActions,
|
|
1694
|
+
qn as EmbeddedChatPrimitiveMessageToolbar,
|
|
1695
1695
|
Pt as EmbeddedChatPrimitiveMessageWrapper,
|
|
1696
|
-
|
|
1696
|
+
on as EmbeddedChatPrimitiveMessages,
|
|
1697
1697
|
za as EmbeddedChatPrimitiveRoot,
|
|
1698
1698
|
hs as EmbeddedChatPrimitiveSendButton,
|
|
1699
1699
|
us as EmbeddedChatPrimitiveSendButtonIcon,
|
|
@@ -1714,69 +1714,68 @@ export {
|
|
|
1714
1714
|
Cn as ExampleQuestions,
|
|
1715
1715
|
pn as ExampleQuestionsLabel,
|
|
1716
1716
|
vn as ExampleQuestionsList,
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1717
|
+
hr as FeedbackForm,
|
|
1718
|
+
ur as FeedbackItem,
|
|
1719
|
+
Cr as FeedbackItemCheckbox,
|
|
1720
|
+
pr as FeedbackItemCheckboxIndicator,
|
|
1721
|
+
gr as FeedbackItemDescription,
|
|
1722
|
+
vr as FeedbackItemLabel,
|
|
1723
|
+
rr as FeedbackModal,
|
|
1724
|
+
lr as FeedbackModalBody,
|
|
1725
|
+
mr as FeedbackModalClose,
|
|
1726
|
+
cr as FeedbackModalContent,
|
|
1727
|
+
dr as FeedbackModalHeader,
|
|
1728
|
+
or as FeedbackModalOverlay,
|
|
1729
|
+
_r as FeedbackSubmitButton,
|
|
1730
1730
|
cs as Footer,
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1731
|
+
Ar as Form,
|
|
1732
|
+
Kr as FormCancel,
|
|
1733
|
+
Pr as FormClose,
|
|
1734
|
+
fr as FormContent,
|
|
1735
|
+
Ir as FormDescription,
|
|
1736
|
+
Vr as FormError,
|
|
1737
|
+
Sr as FormField,
|
|
1738
|
+
yr as FormFieldCheckbox,
|
|
1739
|
+
wr as FormFieldCheckboxIndicator,
|
|
1740
|
+
kr as FormFieldEmail,
|
|
1741
|
+
Qr as FormFieldError,
|
|
1742
|
+
Br as FormFieldFile,
|
|
1743
|
+
Er as FormFieldLabel,
|
|
1744
|
+
Hr as FormFieldSelect,
|
|
1745
|
+
Or as FormFieldSelectContent,
|
|
1746
|
+
Dr as FormFieldSelectIcon,
|
|
1747
|
+
Nr as FormFieldSelectItem,
|
|
1748
|
+
$r as FormFieldSelectItemIndicator,
|
|
1749
|
+
Rr as FormFieldSelectItemText,
|
|
1750
|
+
Lr as FormFieldSelectTrigger,
|
|
1751
|
+
xr as FormFieldSelectValue,
|
|
1752
|
+
Wr as FormFieldSelectViewport,
|
|
1753
1753
|
Ie as FormFieldText,
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1754
|
+
Tr as FormFieldTextArea,
|
|
1755
|
+
Ur as FormFooter,
|
|
1756
|
+
Fr as FormHeader,
|
|
1757
|
+
Mr as FormHeading,
|
|
1758
|
+
qr as FormSubmit,
|
|
1759
|
+
jr as FormSuccess,
|
|
1760
|
+
Yr as FormSuccessButton,
|
|
1761
|
+
Gr as FormSuccessHeading,
|
|
1762
|
+
zr as FormSuccessMessage,
|
|
1763
|
+
br as FormWrapper,
|
|
1764
1764
|
Ya as Header,
|
|
1765
1765
|
Ja as HeaderToolbar,
|
|
1766
1766
|
Xa as HeaderToolbarWrapper,
|
|
1767
1767
|
Zs as HelpActions,
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1768
|
+
ir as HelpActionsMenu,
|
|
1769
|
+
ar as HelpActionsMenuArrow,
|
|
1770
|
+
nr as HelpActionsMenuItem,
|
|
1771
|
+
sr as HelpActionsMenuItemIcon,
|
|
1772
|
+
tr as HelpActionsTrigger,
|
|
1773
1773
|
ls as Input,
|
|
1774
1774
|
ds as InputFieldset,
|
|
1775
1775
|
ms as InputGroup,
|
|
1776
1776
|
In as IntroMessageWrapper,
|
|
1777
1777
|
Kn as Message,
|
|
1778
1778
|
zn as MessageAction,
|
|
1779
|
-
qn as MessageActions,
|
|
1780
1779
|
Ln as MessageAttachments,
|
|
1781
1780
|
Dn as MessageAttachmentsItem,
|
|
1782
1781
|
On as MessageAttachmentsItemIcon,
|
|
@@ -1801,9 +1800,9 @@ export {
|
|
|
1801
1800
|
ts as MessageSourceItemBreadcrumbIcon,
|
|
1802
1801
|
es as MessageSourceItemBreadcrumbs,
|
|
1803
1802
|
ss as MessageSourceItemDescription,
|
|
1804
|
-
|
|
1803
|
+
rs as MessageSourceItemDescriptionPart,
|
|
1805
1804
|
is as MessageSourceItemIcon,
|
|
1806
|
-
|
|
1805
|
+
os as MessageSourceItemIndicator,
|
|
1807
1806
|
ns as MessageSourceItemTag,
|
|
1808
1807
|
as as MessageSourceItemTitle,
|
|
1809
1808
|
Yn as MessageSources,
|
|
@@ -1811,9 +1810,10 @@ export {
|
|
|
1811
1810
|
Xn as MessageSourcesList,
|
|
1812
1811
|
Gn as MessageToolAction,
|
|
1813
1812
|
jn as MessageToolActions,
|
|
1813
|
+
qn as MessageToolbar,
|
|
1814
1814
|
Pt as MessageWrapper,
|
|
1815
|
-
|
|
1816
|
-
|
|
1815
|
+
on as Messages,
|
|
1816
|
+
Zr as Provider,
|
|
1817
1817
|
za as Root,
|
|
1818
1818
|
hs as SendButton,
|
|
1819
1819
|
us as SendButtonIcon,
|