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