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