@inkeep/agents-ui 0.15.27 → 0.15.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +1 -1
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +185 -175
- package/dist/primitives/components/embedded-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat.d.ts +2 -3
- package/dist/primitives/components/embedded-chat.js +667 -672
- package/dist/primitives/components/embedded-search.cjs +1 -1
- package/dist/primitives/components/embedded-search.d.ts +3 -4
- package/dist/primitives/components/embedded-search.js +290 -294
- package/dist/primitives/components/tagline-logo-icon.cjs +1 -1
- package/dist/primitives/components/tagline-logo-icon.js +11 -21
- package/dist/primitives/hooks/use-initial-conversation.cjs +1 -0
- package/dist/primitives/hooks/use-initial-conversation.d.ts +16 -0
- package/dist/primitives/hooks/use-initial-conversation.js +31 -0
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/primitives/utils/component-ids.cjs +1 -1
- package/dist/primitives/utils/component-ids.d.ts +0 -4
- package/dist/primitives/utils/component-ids.js +1 -3
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +133 -134
- package/dist/react/embedded-search.cjs +1 -1
- package/dist/react/embedded-search.js +63 -64
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.d.ts +1 -2
- package/dist/styled/components/embedded-chat.js +372 -386
- package/dist/styled/components/embedded-search.cjs +1 -1
- package/dist/styled/components/embedded-search.d.ts +1 -2
- package/dist/styled/components/embedded-search.js +119 -133
- package/dist/styled/inkeep.css.cjs +3 -3
- package/dist/styled/inkeep.css.js +3 -3
- package/dist/types/config/ai.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as Z, Fragment as re } from "react/jsx-runtime";
|
|
3
|
-
import G, { memo as S, forwardRef as Q, useRef as
|
|
3
|
+
import G, { memo as S, forwardRef as Q, useRef as L, useState as $, useMemo as ne, useEffect as W, useLayoutEffect as Ce } from "react";
|
|
4
4
|
import * as be from "react-dom/client";
|
|
5
5
|
import se from "react-textarea-autosize";
|
|
6
6
|
import * as J from "@radix-ui/react-avatar";
|
|
@@ -8,8 +8,8 @@ import * as K from "@radix-ui/react-checkbox";
|
|
|
8
8
|
import * as D from "@radix-ui/react-popover";
|
|
9
9
|
import * as q from "@radix-ui/react-tooltip";
|
|
10
10
|
import * as U from "@radix-ui/react-scroll-area";
|
|
11
|
-
import { ItemText as pe, Trigger as
|
|
12
|
-
import { ComboboxListItems as Se, ComboboxRoot as Me, ComboboxItemText as ke, ComboboxControl as ye, ComboboxInput as Ae, ComboboxTrigger as xe, ComboboxSelectedTags as Te, ComboboxContent as He, ComboboxPositioner as
|
|
11
|
+
import { ItemText as pe, Trigger as ve, Icon as ge, Content as Fe, Viewport as _e, Item as Pe, ItemIndicator as fe, Root as Ie, Value as Ee } from "../atoms/select.js";
|
|
12
|
+
import { ComboboxListItems as Se, ComboboxRoot as Me, ComboboxItemText as ke, ComboboxControl as ye, ComboboxInput as Ae, ComboboxTrigger as xe, ComboboxSelectedTags as Te, ComboboxContent as He, ComboboxPositioner as we, ComboboxList as Le, ComboboxItem as De, ComboboxItemIndicator as Be, ComboboxListEmpty as Ne } from "../atoms/combobox.js";
|
|
13
13
|
import { Overlay as Re, Content as Oe, Title as Ve, Close as We, Root as Qe } from "../atoms/dialog.js";
|
|
14
14
|
import Ue from "../atoms/avatars/ai.js";
|
|
15
15
|
import $e from "../atoms/avatars/user.js";
|
|
@@ -24,34 +24,33 @@ import { useMessage as E, MessageProvider as je } from "../providers/message-pro
|
|
|
24
24
|
import { CheckboxIcon as de } from "../atoms/icons/checkbox-icon.js";
|
|
25
25
|
import { useCopyToClipboard as Y } from "../hooks/use-copy-to-clipboard.js";
|
|
26
26
|
import { FeedbackItemProvider as ze, useFeedbackItem as ee } from "../providers/feedback-item-provider.js";
|
|
27
|
-
import { maybeRender as O, dataAttr as
|
|
27
|
+
import { maybeRender as O, dataAttr as v, getInitials as Ge, getMessageContent as ce } from "../utils/misc.js";
|
|
28
28
|
import { ikp as i } from "./factory.js";
|
|
29
29
|
import { useChat as F } from "./embedded-chat/chat-provider.js";
|
|
30
|
-
import { ChatProvider as
|
|
31
|
-
import Ye from "
|
|
32
|
-
import {
|
|
33
|
-
import { useContainerSize as Je } from "../hooks/use-container-size.js";
|
|
30
|
+
import { ChatProvider as hn } from "./embedded-chat/chat-provider.js";
|
|
31
|
+
import { useSettleAction as Ye } from "../hooks/use-settle-action.js";
|
|
32
|
+
import { useContainerSize as Ze } from "../hooks/use-container-size.js";
|
|
34
33
|
import { useChatAction as te } from "./embedded-chat/use-chat-action.js";
|
|
35
|
-
import { useHelpMenuState as
|
|
34
|
+
import { useHelpMenuState as Je, HelpMenuProvider as Xe, useHelpMenu as et } from "../providers/help-menu-provider.js";
|
|
36
35
|
import { useChatForm as f } from "../providers/chat-form-provider.js";
|
|
37
|
-
import { useFormField as A, FormFieldProvider as
|
|
38
|
-
import { Controller as
|
|
39
|
-
import { highlightEmphasis as
|
|
40
|
-
import { useModal as
|
|
41
|
-
import { useColorModeValue as
|
|
36
|
+
import { useFormField as A, FormFieldProvider as tt } from "../providers/form-field-provider.js";
|
|
37
|
+
import { Controller as it } from "react-hook-form";
|
|
38
|
+
import { highlightEmphasis as ot } from "../utils/highlight-emphasis.js";
|
|
39
|
+
import { useModal as at } from "./modal/modal-provider.js";
|
|
40
|
+
import { useColorModeValue as rt } from "../../color-mode/index.js";
|
|
42
41
|
import { useComposedRefs as ie } from "../utils/compose-refs.js";
|
|
43
42
|
import { composeEventHandlers as b } from "../utils/compose-event-handlers.js";
|
|
44
|
-
import { useSimpleScroll as
|
|
45
|
-
import { useDebounce as
|
|
46
|
-
import { HoverPopoverProvider as
|
|
47
|
-
import { useWidgetAutoFocus as
|
|
43
|
+
import { useSimpleScroll as nt } from "../hooks/use-simple-scroll.js";
|
|
44
|
+
import { useDebounce as st } from "../hooks/use-debounce.js";
|
|
45
|
+
import { HoverPopoverProvider as dt, useHoverPopover as me } from "../providers/hover-popover-provider.js";
|
|
46
|
+
import { useWidgetAutoFocus as ct } from "./modal/widget-auto-focus.js";
|
|
48
47
|
import { useBaseEvents as oe } from "../providers/base-events-provider.js";
|
|
49
|
-
import { useShadow as
|
|
50
|
-
import { getIcon as
|
|
51
|
-
import { ChatHistoryProvider as
|
|
52
|
-
import { EmbeddedChatPrimitiveDropZone as
|
|
53
|
-
import { EmbeddedChatPrimitiveImagePreviewModal as
|
|
54
|
-
const
|
|
48
|
+
import { useShadow as mt } from "../atoms/shadow/context.js";
|
|
49
|
+
import { getIcon as lt } from "../utils/get-source-icon.js";
|
|
50
|
+
import { ChatHistoryProvider as ut } from "../providers/chat-history-provider.js";
|
|
51
|
+
import { EmbeddedChatPrimitiveDropZone as bn, EmbeddedChatPrimitiveFileContent as pn, EmbeddedChatPrimitiveFileInput as vn, EmbeddedChatPrimitiveFileItem as gn, EmbeddedChatPrimitiveFileList as Fn, EmbeddedChatPrimitiveFileName as _n, EmbeddedChatPrimitiveFilePreviewTrigger as Pn, EmbeddedChatPrimitiveFileRemove as fn, EmbeddedChatPrimitiveFileRemoveIcon as In, EmbeddedChatPrimitiveFileThumbnail as En, EmbeddedChatPrimitiveFileTypeIcon as Sn, EmbeddedChatPrimitiveFileUploadButton as Mn, EmbeddedChatPrimitiveFileUploadButtonIcon as kn, EmbeddedChatPrimitiveInputFieldset as yn, EmbeddedChatPrimitiveInputNotification as An, EmbeddedChatPrimitiveInputNotificationClose as xn, EmbeddedChatPrimitiveInputNotificationContent as Tn, EmbeddedChatPrimitiveInputNotificationHeader as Hn, EmbeddedChatPrimitiveInputNotificationMessage as wn, EmbeddedChatPrimitiveInputNotificationTitle as Ln, EmbeddedChatPrimitiveMessageFile as Dn, EmbeddedChatPrimitiveMessageFiles as Bn } from "./embedded-chat/file-upload-input.js";
|
|
52
|
+
import { EmbeddedChatPrimitiveImagePreviewModal as Rn, EmbeddedChatPrimitiveImagePreviewModalClose as On, EmbeddedChatPrimitiveImagePreviewModalContent as Vn, EmbeddedChatPrimitiveImagePreviewModalFileName as Wn, EmbeddedChatPrimitiveImagePreviewModalFooter as Qn, EmbeddedChatPrimitiveImagePreviewModalImage as Un, EmbeddedChatPrimitiveImagePreviewModalOverlay as $n } from "./embedded-chat/image-preview-modal.js";
|
|
53
|
+
const ht = "__intro__", Ct = 767, bt = i("div", {
|
|
55
54
|
_id: "aiChatWrapper"
|
|
56
55
|
}), le = Q(
|
|
57
56
|
({
|
|
@@ -67,12 +66,12 @@ const Ct = "__intro__", bt = 767, pt = i("div", {
|
|
|
67
66
|
}, [t, r, o]);
|
|
68
67
|
const c = t === "stack" && e;
|
|
69
68
|
return /* @__PURE__ */ a(
|
|
70
|
-
|
|
69
|
+
bt,
|
|
71
70
|
{
|
|
72
71
|
ref: d,
|
|
73
72
|
"data-chat-history-layout": t,
|
|
74
|
-
"data-chat-history-open":
|
|
75
|
-
"data-stack-history-open":
|
|
73
|
+
"data-chat-history-open": v(e),
|
|
74
|
+
"data-stack-history-open": v(c),
|
|
76
75
|
...s,
|
|
77
76
|
children: n
|
|
78
77
|
}
|
|
@@ -80,60 +79,60 @@ const Ct = "__intro__", bt = 767, pt = i("div", {
|
|
|
80
79
|
}
|
|
81
80
|
);
|
|
82
81
|
le.displayName = "EmbeddedChatWrapperInner";
|
|
83
|
-
const
|
|
84
|
-
const { children: o, ...r } = t, { isHidden: n, isMobile: s } = F(), { aiChatSettings: d } = p(), { isChatHistoryButtonVisible: c } = d, [m, l] =
|
|
85
|
-
return /* @__PURE__ */ a(
|
|
82
|
+
const Vo = Q((t, e) => {
|
|
83
|
+
const { children: o, ...r } = t, { isHidden: n, isMobile: s } = F(), { aiChatSettings: d } = p(), { isChatHistoryButtonVisible: c } = d, [m, l] = Ze(), u = ie(e, m), C = l?.width ? l.width > 580 : !0, h = at(), g = (l?.width ?? 0) > Ct ? "sidepane" : "stack";
|
|
84
|
+
return /* @__PURE__ */ a(ut, { layout: g, children: ({ isOpen: _, setIsOpen: M }) => /* @__PURE__ */ a(
|
|
86
85
|
le,
|
|
87
86
|
{
|
|
88
87
|
ref: u,
|
|
89
|
-
chatHistoryLayout:
|
|
88
|
+
chatHistoryLayout: g,
|
|
90
89
|
isChatHistoryOpen: _,
|
|
91
90
|
setChatHistoryOpen: M,
|
|
92
91
|
isChatHistoryButtonVisible: !!c,
|
|
93
|
-
"data-widget-md":
|
|
94
|
-
"data-hidden":
|
|
95
|
-
"data-in-modal":
|
|
96
|
-
"data-mobile":
|
|
92
|
+
"data-widget-md": v(C),
|
|
93
|
+
"data-hidden": v(n),
|
|
94
|
+
"data-in-modal": v(!!h),
|
|
95
|
+
"data-mobile": v(s),
|
|
97
96
|
...r,
|
|
98
97
|
children: o
|
|
99
98
|
}
|
|
100
99
|
) });
|
|
101
|
-
}),
|
|
100
|
+
}), pt = i("div", {
|
|
102
101
|
_id: "aiChatRoot"
|
|
103
|
-
}),
|
|
102
|
+
}), Wo = (t) => {
|
|
104
103
|
const { isHidden: e } = F(), { form: o } = f();
|
|
105
|
-
return o ? null : /* @__PURE__ */ a(
|
|
106
|
-
},
|
|
104
|
+
return o ? null : /* @__PURE__ */ a(pt, { "data-hidden": v(e), ...t });
|
|
105
|
+
}, Qo = i("div", {
|
|
107
106
|
_id: "aiChatHeader"
|
|
108
|
-
}),
|
|
107
|
+
}), Uo = i("div", {
|
|
109
108
|
_id: "aiChatHeader__Toolbar"
|
|
110
|
-
}),
|
|
109
|
+
}), $o = i("div", {
|
|
111
110
|
_id: "aiChatHeader__ToolbarHeaderWrapper"
|
|
112
111
|
}), vt = i(k, {
|
|
113
112
|
_id: "aiChatHeader__ChatHistoryButtonIcon"
|
|
114
|
-
}),
|
|
113
|
+
}), Ko = S(
|
|
115
114
|
(t) => /* @__PURE__ */ a(vt, { ...t })
|
|
116
|
-
),
|
|
115
|
+
), qo = i("button", {
|
|
117
116
|
_id: "aiChatHeader__ChatHistoryButton"
|
|
118
|
-
}),
|
|
117
|
+
}), gt = i("div", {
|
|
119
118
|
_id: "aiChatHeader__ToolbarHeader"
|
|
120
|
-
}),
|
|
119
|
+
}), jo = S(
|
|
121
120
|
(t) => {
|
|
122
121
|
const { aiChatSettings: e } = p(), o = `Ask ${e.aiAssistantName || "AI"}`;
|
|
123
|
-
return /* @__PURE__ */ a(
|
|
122
|
+
return /* @__PURE__ */ a(gt, { ...t, children: o });
|
|
124
123
|
}
|
|
125
|
-
),
|
|
124
|
+
), zo = i("div", {
|
|
126
125
|
_id: "aiChatContent"
|
|
127
|
-
}),
|
|
126
|
+
}), Go = i(U.Root, {
|
|
128
127
|
_id: "aiChatContentScrollArea"
|
|
129
|
-
}),
|
|
128
|
+
}), Ft = i(U.Viewport, {
|
|
130
129
|
_id: "aiChatContentScrollArea__Viewport"
|
|
131
|
-
}),
|
|
132
|
-
const { messages: r, isStreaming: n } = F(), { containerRef: s, scrollToBottom: d, handleScroll: c } =
|
|
130
|
+
}), Yo = Q(({ children: t, ...e }, o) => {
|
|
131
|
+
const { messages: r, isStreaming: n } = F(), { containerRef: s, scrollToBottom: d, handleScroll: c } = nt({ isStreaming: n }), m = ie(o, s);
|
|
133
132
|
return W(() => {
|
|
134
133
|
r.length > 0 && !n && d();
|
|
135
134
|
}, [r.length, d, n]), /* @__PURE__ */ a(
|
|
136
|
-
|
|
135
|
+
Ft,
|
|
137
136
|
{
|
|
138
137
|
ref: m,
|
|
139
138
|
tabIndex: -1,
|
|
@@ -146,45 +145,45 @@ const Qo = Q((t, e) => {
|
|
|
146
145
|
...e
|
|
147
146
|
}
|
|
148
147
|
);
|
|
149
|
-
}),
|
|
148
|
+
}), Zo = i(
|
|
150
149
|
U.ScrollAreaScrollbar,
|
|
151
150
|
{
|
|
152
151
|
_id: "aiChatContentScrollArea__Scrollbar"
|
|
153
152
|
}
|
|
154
|
-
),
|
|
153
|
+
), Jo = i(
|
|
155
154
|
U.ScrollAreaThumb,
|
|
156
155
|
{
|
|
157
156
|
_id: "aiChatContentScrollArea__Thumb"
|
|
158
157
|
}
|
|
159
|
-
),
|
|
158
|
+
), Xo = i(U.Corner, {
|
|
160
159
|
_id: "aiChatContentScrollArea__Corner"
|
|
161
|
-
}),
|
|
160
|
+
}), _t = i("div", {
|
|
162
161
|
_id: "aiChatMessages"
|
|
163
|
-
}),
|
|
162
|
+
}), ea = (t) => {
|
|
164
163
|
const e = F(), { children: o, ...r } = t;
|
|
165
|
-
return /* @__PURE__ */ a(
|
|
166
|
-
},
|
|
164
|
+
return /* @__PURE__ */ a(_t, { children: O(o, e), ...r });
|
|
165
|
+
}, Pt = i("div", {
|
|
167
166
|
_id: "aiChatDisclaimer"
|
|
168
|
-
}),
|
|
167
|
+
}), ta = S(
|
|
169
168
|
(t) => {
|
|
170
|
-
const { aiChatSettings: e } = p(), [o, r] = $(!1), n =
|
|
171
|
-
return e.disclaimerSettings?.isEnabled ? /* @__PURE__ */ a(
|
|
169
|
+
const { aiChatSettings: e } = p(), [o, r] = $(!1), n = st(o, 100);
|
|
170
|
+
return e.disclaimerSettings?.isEnabled ? /* @__PURE__ */ a(dt, { open: o, setOpen: r, children: /* @__PURE__ */ a(D.Root, { open: n, onOpenChange: r, children: /* @__PURE__ */ a(Pt, { ...t }) }) }) : null;
|
|
172
171
|
}
|
|
173
|
-
),
|
|
172
|
+
), ft = i("span", {
|
|
174
173
|
_id: "aiChatDisclaimerLabel"
|
|
175
|
-
}),
|
|
174
|
+
}), ia = S(
|
|
176
175
|
(t) => {
|
|
177
176
|
const { aiChatSettings: e } = p(), o = e.disclaimerSettings;
|
|
178
|
-
return /* @__PURE__ */ a(
|
|
177
|
+
return /* @__PURE__ */ a(ft, { children: o?.label, ...t });
|
|
179
178
|
}
|
|
180
|
-
),
|
|
179
|
+
), It = i(D.Trigger, {
|
|
181
180
|
_id: "aiChatDisclaimerTrigger",
|
|
182
181
|
children: /* @__PURE__ */ a(k, { iconKey: "info" })
|
|
183
|
-
}),
|
|
182
|
+
}), oa = S(
|
|
184
183
|
(t) => {
|
|
185
184
|
const { setOpen: e } = me();
|
|
186
185
|
return /* @__PURE__ */ a(
|
|
187
|
-
|
|
186
|
+
It,
|
|
188
187
|
{
|
|
189
188
|
onMouseEnter: () => e(!0),
|
|
190
189
|
onMouseLeave: () => e(!1),
|
|
@@ -192,12 +191,12 @@ const Qo = Q((t, e) => {
|
|
|
192
191
|
}
|
|
193
192
|
);
|
|
194
193
|
}
|
|
195
|
-
),
|
|
194
|
+
), Et = i(D.Content, {
|
|
196
195
|
_id: "aiChatDisclaimerContent"
|
|
197
|
-
}),
|
|
196
|
+
}), aa = (t) => {
|
|
198
197
|
const { setOpen: e } = me();
|
|
199
198
|
return /* @__PURE__ */ a(
|
|
200
|
-
|
|
199
|
+
Et,
|
|
201
200
|
{
|
|
202
201
|
onMouseEnter: () => e(!0),
|
|
203
202
|
onMouseLeave: () => e(!1),
|
|
@@ -208,57 +207,57 @@ const Qo = Q((t, e) => {
|
|
|
208
207
|
...t
|
|
209
208
|
}
|
|
210
209
|
);
|
|
211
|
-
},
|
|
210
|
+
}, St = i(j, {
|
|
212
211
|
_id: "aiChatDisclaimerText"
|
|
213
|
-
}),
|
|
212
|
+
}), ra = S(
|
|
214
213
|
(t) => {
|
|
215
214
|
const { aiChatSettings: e } = p(), o = e.aiAssistantName, n = e.disclaimerSettings?.tooltip || `Information provided by ${o || "this AI assistant"} is not guaranteed to be accurate or comprehensive.`;
|
|
216
|
-
return /* @__PURE__ */ a(
|
|
215
|
+
return /* @__PURE__ */ a(St, { shouldOpenLinksInNewTab: !0, children: n, ...t });
|
|
217
216
|
}
|
|
218
|
-
),
|
|
217
|
+
), na = i(D.Arrow, {
|
|
219
218
|
_id: "aiChatDisclaimerArrow"
|
|
220
|
-
}),
|
|
219
|
+
}), Mt = i("div", {
|
|
221
220
|
_id: "aiChatExampleQuestions"
|
|
222
|
-
}),
|
|
221
|
+
}), sa = (t) => {
|
|
223
222
|
const { aiChatSettings: e } = p(), { messages: o } = F();
|
|
224
|
-
return !e.exampleQuestions?.length || o.length ? null : /* @__PURE__ */ a(
|
|
225
|
-
},
|
|
223
|
+
return !e.exampleQuestions?.length || o.length ? null : /* @__PURE__ */ a(Mt, { ...t });
|
|
224
|
+
}, kt = i("h3", {
|
|
226
225
|
_id: "aiChatExampleQuestionsLabel"
|
|
227
|
-
}),
|
|
226
|
+
}), da = S(
|
|
228
227
|
(t) => {
|
|
229
228
|
const { aiChatSettings: e } = p();
|
|
230
|
-
return /* @__PURE__ */ a(
|
|
229
|
+
return /* @__PURE__ */ a(kt, { children: e.exampleQuestionsLabel, ...t });
|
|
231
230
|
}
|
|
232
|
-
),
|
|
231
|
+
), yt = i("div", {
|
|
233
232
|
_id: "aiChatExampleQuestionsList"
|
|
234
|
-
}),
|
|
233
|
+
}), ca = S(
|
|
235
234
|
(t) => {
|
|
236
235
|
const { aiChatSettings: e } = p(), o = e.exampleQuestions, { children: r, ...n } = t;
|
|
237
|
-
return /* @__PURE__ */ a(
|
|
236
|
+
return /* @__PURE__ */ a(yt, { children: O(r, o), ...n });
|
|
238
237
|
}
|
|
239
|
-
),
|
|
238
|
+
), At = i("div", {
|
|
240
239
|
_id: "aiChatExampleQuestion"
|
|
241
|
-
}),
|
|
240
|
+
}), ma = Q((t, e) => {
|
|
242
241
|
const { aiChatSettings: o } = p(), r = o.isFirstExampleQuestionHighlighted;
|
|
243
|
-
return /* @__PURE__ */ a(
|
|
244
|
-
}),
|
|
242
|
+
return /* @__PURE__ */ a(At, { ref: e, "data-highlight": v(r), ...t });
|
|
243
|
+
}), xt = i("button", {
|
|
245
244
|
_id: "aiChatExampleQuestionButton"
|
|
246
|
-
}),
|
|
245
|
+
}), la = (t) => {
|
|
247
246
|
const { question: e, onClick: o, ...r } = t, n = typeof e == "object" ? e.value : e, s = typeof e == "object" ? e.label : e, { handleSubmit: d } = F();
|
|
248
247
|
return /* @__PURE__ */ a(
|
|
249
|
-
|
|
248
|
+
xt,
|
|
250
249
|
{
|
|
251
250
|
onClick: b(o, () => d(n)),
|
|
252
251
|
children: s,
|
|
253
252
|
...r
|
|
254
253
|
}
|
|
255
254
|
);
|
|
256
|
-
},
|
|
255
|
+
}, Tt = i("div", {
|
|
257
256
|
_id: "aiChatMessageWrapper"
|
|
258
|
-
}),
|
|
257
|
+
}), Ht = (t) => {
|
|
259
258
|
const { message: e, ...o } = t;
|
|
260
|
-
return e.role === "system" ? null : /* @__PURE__ */ a(je, { message: e, children: /* @__PURE__ */ a(
|
|
261
|
-
},
|
|
259
|
+
return e.role === "system" ? null : /* @__PURE__ */ a(je, { message: e, children: /* @__PURE__ */ a(Tt, { "data-role": e.role, ...o }) });
|
|
260
|
+
}, ua = S(
|
|
262
261
|
(t) => {
|
|
263
262
|
const { message: e, ...o } = t, { aiChatSettings: r, baseSettings: n } = p(), s = r.aiAssistantName, d = s ? `Hi, I'm ${s}!` : "Hi!", c = r.chatSubjectName ?? n.organizationDisplayName, m = c ? `
|
|
264
263
|
|
|
@@ -266,44 +265,44 @@ const Qo = Q((t, e) => {
|
|
|
266
265
|
|
|
267
266
|
How can I help?`, u = {
|
|
268
267
|
parts: [{ type: "text", text: r.introMessage ?? `${d}${m}` }],
|
|
269
|
-
id:
|
|
268
|
+
id: ht,
|
|
270
269
|
...e,
|
|
271
270
|
role: "assistant"
|
|
272
271
|
};
|
|
273
|
-
return /* @__PURE__ */ a(
|
|
272
|
+
return /* @__PURE__ */ a(Ht, { message: u, ...o });
|
|
274
273
|
}
|
|
275
274
|
), wt = i("div", {
|
|
276
275
|
_id: "aiChatMessageHeader"
|
|
277
|
-
}),
|
|
276
|
+
}), ha = (t) => {
|
|
278
277
|
const { message: e } = E();
|
|
279
278
|
return /* @__PURE__ */ a(wt, { "data-role": e.role, ...t });
|
|
280
|
-
},
|
|
279
|
+
}, Lt = i("div", {
|
|
281
280
|
_id: "aiChatMessageLoading",
|
|
282
281
|
children: "Thinking..."
|
|
283
|
-
}),
|
|
282
|
+
}), Ca = (t) => /* @__PURE__ */ a(Lt, { ...t }), Dt = i("div", {
|
|
284
283
|
_id: "aiChatMessageAvatar"
|
|
285
|
-
}),
|
|
284
|
+
}), ba = (t) => {
|
|
286
285
|
const { message: e } = E();
|
|
287
|
-
return /* @__PURE__ */ a(
|
|
288
|
-
},
|
|
286
|
+
return /* @__PURE__ */ a(Dt, { "data-role": e.role, ...t });
|
|
287
|
+
}, Bt = i(J.Root, {
|
|
289
288
|
_id: "aiChatMessageAvatarContent"
|
|
290
|
-
}),
|
|
289
|
+
}), pa = (t) => {
|
|
291
290
|
const { message: e } = E(), { baseSettings: o } = p();
|
|
292
291
|
return /* @__PURE__ */ a(
|
|
293
|
-
|
|
292
|
+
Bt,
|
|
294
293
|
{
|
|
295
|
-
"data-username":
|
|
294
|
+
"data-username": v(e.role === "user" && !!o.userProperties.name),
|
|
296
295
|
"data-role": e.role,
|
|
297
296
|
...t
|
|
298
297
|
}
|
|
299
298
|
);
|
|
300
|
-
},
|
|
299
|
+
}, Nt = i(J.Fallback, {
|
|
301
300
|
_id: "aiChatMessageAvatarFallback"
|
|
302
|
-
}),
|
|
301
|
+
}), va = S(
|
|
303
302
|
(t) => {
|
|
304
303
|
const { baseSettings: e } = p(), { message: o } = E();
|
|
305
304
|
return e.userProperties.name ? /* @__PURE__ */ a(
|
|
306
|
-
|
|
305
|
+
Nt,
|
|
307
306
|
{
|
|
308
307
|
"data-role": o.role,
|
|
309
308
|
children: Ge(e.userProperties.name),
|
|
@@ -313,17 +312,17 @@ const Qo = Q((t, e) => {
|
|
|
313
312
|
}
|
|
314
313
|
), ae = i(J.Image, {
|
|
315
314
|
_id: "aiChatMessageAvatarImage"
|
|
316
|
-
}),
|
|
315
|
+
}), ga = S(
|
|
317
316
|
(t) => {
|
|
318
317
|
const { onLoadingStatusChange: e, ...o } = t, {
|
|
319
318
|
aiChatSettings: r,
|
|
320
319
|
baseSettings: { userProperties: n }
|
|
321
|
-
} = p(), { message: s } = E(), { aiAssistantAvatar: d } = r ?? {}, c = typeof d == "string" ? d : d?.light, m = (typeof d == "string" ? d : d?.dark) ?? c, l =
|
|
320
|
+
} = p(), { message: s } = E(), { aiAssistantAvatar: d } = r ?? {}, c = typeof d == "string" ? d : d?.light, m = (typeof d == "string" ? d : d?.dark) ?? c, l = rt(c, m), [u, C] = $(l);
|
|
322
321
|
W(() => {
|
|
323
322
|
C(l);
|
|
324
323
|
}, [l]);
|
|
325
|
-
const h = (
|
|
326
|
-
|
|
324
|
+
const h = (g) => {
|
|
325
|
+
g === "error" && C(null);
|
|
327
326
|
};
|
|
328
327
|
return s.role === "user" ? n.name ? null : r.userAvatar ? /* @__PURE__ */ a(
|
|
329
328
|
ae,
|
|
@@ -363,29 +362,29 @@ const Qo = Q((t, e) => {
|
|
|
363
362
|
}
|
|
364
363
|
);
|
|
365
364
|
}
|
|
366
|
-
),
|
|
365
|
+
), Rt = i("span", {
|
|
367
366
|
_id: "aiChatMessageName"
|
|
368
|
-
}),
|
|
367
|
+
}), Fa = (t) => {
|
|
369
368
|
const { message: e } = E(), { aiChatSettings: o } = p(), { aiAssistantName: r } = o;
|
|
370
369
|
return /* @__PURE__ */ a(
|
|
371
|
-
|
|
370
|
+
Rt,
|
|
372
371
|
{
|
|
373
372
|
"data-role": e.role,
|
|
374
373
|
children: e.role === "user" ? "You" : r || "AI assistant",
|
|
375
374
|
...t
|
|
376
375
|
}
|
|
377
376
|
);
|
|
378
|
-
},
|
|
377
|
+
}, Ot = i("div", {
|
|
379
378
|
_id: "aiChatMessageContentWrapper"
|
|
380
|
-
}),
|
|
379
|
+
}), _a = (t) => {
|
|
381
380
|
const { message: e } = E();
|
|
382
|
-
return /* @__PURE__ */ a(
|
|
383
|
-
},
|
|
381
|
+
return /* @__PURE__ */ a(Ot, { "data-role": e.role, ...t });
|
|
382
|
+
}, Vt = i("div", {
|
|
384
383
|
_id: "aiChatMessageContent"
|
|
385
|
-
}),
|
|
384
|
+
}), Pa = (t) => {
|
|
386
385
|
const { message: e } = E();
|
|
387
|
-
return /* @__PURE__ */ a(
|
|
388
|
-
},
|
|
386
|
+
return /* @__PURE__ */ a(Vt, { "data-role": e.role, ...t });
|
|
387
|
+
}, fa = (t) => {
|
|
389
388
|
const { text: e, componentStyles: o, ...r } = t, { aiChatSettings: n } = p(), { shouldOpenLinksInNewTab: s } = n;
|
|
390
389
|
return /* @__PURE__ */ a(
|
|
391
390
|
j,
|
|
@@ -396,18 +395,18 @@ const Qo = Q((t, e) => {
|
|
|
396
395
|
...r
|
|
397
396
|
}
|
|
398
397
|
);
|
|
399
|
-
},
|
|
398
|
+
}, Ia = ({
|
|
400
399
|
name: t,
|
|
401
400
|
props: e,
|
|
402
401
|
componentDef: o
|
|
403
402
|
}) => {
|
|
404
|
-
const n =
|
|
403
|
+
const n = mt()?.shadowHost, s = L(void 0), d = L(null), c = L(null), m = L(!1), [l, u] = $(!1), [C, h] = $(!1), g = L(o);
|
|
405
404
|
ne(() => {
|
|
406
|
-
o !==
|
|
405
|
+
o !== g.current && (typeof o == "function" && typeof g.current == "function" ? o.toString() !== g.current.toString() && (g.current = o) : g.current = o);
|
|
407
406
|
}, [o]);
|
|
408
|
-
const _ =
|
|
407
|
+
const _ = g.current, M = L(e);
|
|
409
408
|
M.current = e;
|
|
410
|
-
const I =
|
|
409
|
+
const I = L(null), x = L(_);
|
|
411
410
|
x.current !== _ && (I.current = null, x.current = _), W(() => {
|
|
412
411
|
s.current || (s.current = `dyn:${t}:${crypto.randomUUID()}`, u(!0));
|
|
413
412
|
}, [t]), Ce(() => {
|
|
@@ -428,13 +427,13 @@ const Qo = Q((t, e) => {
|
|
|
428
427
|
const V = (T) => {
|
|
429
428
|
const P = d.current;
|
|
430
429
|
if (!P || m.current) return;
|
|
431
|
-
const B = (
|
|
430
|
+
const B = (w) => {
|
|
432
431
|
if (I.current !== null) return I.current;
|
|
433
|
-
if (typeof
|
|
432
|
+
if (typeof w != "function" || w.length > 1)
|
|
434
433
|
return I.current = !1, !1;
|
|
435
434
|
try {
|
|
436
|
-
if (
|
|
437
|
-
const z =
|
|
435
|
+
if (w.constructor === Function) {
|
|
436
|
+
const z = w({});
|
|
438
437
|
return I.current = G.isValidElement(z), I.current;
|
|
439
438
|
}
|
|
440
439
|
return I.current = !1, !1;
|
|
@@ -443,15 +442,15 @@ const Qo = Q((t, e) => {
|
|
|
443
442
|
}
|
|
444
443
|
};
|
|
445
444
|
let y;
|
|
446
|
-
const H =
|
|
445
|
+
const H = g.current;
|
|
447
446
|
if (B(H))
|
|
448
447
|
try {
|
|
449
448
|
y = G.createElement(
|
|
450
449
|
H,
|
|
451
450
|
T || {}
|
|
452
451
|
);
|
|
453
|
-
} catch (
|
|
454
|
-
console.error("Error creating React element from component:",
|
|
452
|
+
} catch (w) {
|
|
453
|
+
console.error("Error creating React element from component:", w);
|
|
455
454
|
return;
|
|
456
455
|
}
|
|
457
456
|
else if (typeof H == "function")
|
|
@@ -472,23 +471,23 @@ const Qo = Q((t, e) => {
|
|
|
472
471
|
}, [_, C]), W(() => {
|
|
473
472
|
!c.current || m.current || V(e);
|
|
474
473
|
}, [e]), /* @__PURE__ */ a("slot", { name: s.current });
|
|
475
|
-
},
|
|
474
|
+
}, Ea = i("div", {
|
|
476
475
|
_id: "aiChatMessagePart"
|
|
477
|
-
}),
|
|
476
|
+
}), Wt = i("div", {
|
|
478
477
|
_id: "aiChatMessageToolbar"
|
|
479
|
-
}),
|
|
478
|
+
}), Sa = (t) => {
|
|
480
479
|
const { isLoading: e, messages: o } = F(), { message: r } = E();
|
|
481
|
-
return o.at(-1)?.id === r?.id && e || r.role === "user" ? null : /* @__PURE__ */ a(
|
|
482
|
-
},
|
|
480
|
+
return o.at(-1)?.id === r?.id && e || r.role === "user" ? null : /* @__PURE__ */ a(Wt, { ...t });
|
|
481
|
+
}, Qt = i("div", {
|
|
483
482
|
_id: "aiChatMessageCustomActions"
|
|
484
|
-
}),
|
|
483
|
+
}), Ma = (t) => {
|
|
485
484
|
const { children: e, ...o } = t, { aiChatSettings: r } = p(), { message: n } = E(), { isStreaming: s, messages: d } = F(), c = d.at(-1)?.id === n?.id, m = n.role === "assistant", l = r.messageActions || [];
|
|
486
|
-
return c && s || !m ? null : /* @__PURE__ */ a(
|
|
487
|
-
},
|
|
485
|
+
return c && s || !m ? null : /* @__PURE__ */ a(Qt, { children: O(e, l), ...o });
|
|
486
|
+
}, Ut = i("a", {
|
|
488
487
|
_id: "aiChatMessageCustomAction"
|
|
489
|
-
}),
|
|
488
|
+
}), $t = i("button", {
|
|
490
489
|
_id: "aiChatMessageCustomAction"
|
|
491
|
-
}),
|
|
490
|
+
}), ka = (t) => {
|
|
492
491
|
const { onClick: e, action: o, ...r } = t, { message: n } = E(), { handleAction: s } = te(o, n.id), { logEvent: d } = oe(), { conversationId: c } = F(), m = () => {
|
|
493
492
|
s(), d({
|
|
494
493
|
eventName: "user_escalation_indicated",
|
|
@@ -502,7 +501,7 @@ const Qo = Q((t, e) => {
|
|
|
502
501
|
l
|
|
503
502
|
] });
|
|
504
503
|
return o.action.type === "open_link" ? /* @__PURE__ */ a(
|
|
505
|
-
|
|
504
|
+
Ut,
|
|
506
505
|
{
|
|
507
506
|
href: o.action.url,
|
|
508
507
|
target: "_blank",
|
|
@@ -513,7 +512,7 @@ const Qo = Q((t, e) => {
|
|
|
513
512
|
...r
|
|
514
513
|
}
|
|
515
514
|
) : /* @__PURE__ */ a(
|
|
516
|
-
|
|
515
|
+
$t,
|
|
517
516
|
{
|
|
518
517
|
"data-type": o.action.type,
|
|
519
518
|
onClick: b(e, m),
|
|
@@ -521,12 +520,12 @@ const Qo = Q((t, e) => {
|
|
|
521
520
|
...r
|
|
522
521
|
}
|
|
523
522
|
);
|
|
524
|
-
},
|
|
523
|
+
}, Kt = i("button", {
|
|
525
524
|
_id: "aiChatMessageAction"
|
|
526
|
-
}),
|
|
525
|
+
}), ya = (t) => {
|
|
527
526
|
const { action: e, onClick: o, className: r, ...n } = t, { conversationId: s } = F(), {
|
|
528
527
|
baseSettings: { onFeedback: d }
|
|
529
|
-
} = p(), { message: c } = E(), { isStreaming: m, messages: l } = F(), [u, C] = Y(), { feedback: h, submitPositiveFeedback:
|
|
528
|
+
} = p(), { message: c } = E(), { isStreaming: m, messages: l } = F(), [u, C] = Y(), { feedback: h, submitPositiveFeedback: g, setCurrentFeedback: _, currentFeedback: M } = X(), { logEvent: I } = oe(), [x, V] = Ye(), T = l.at(-1)?.id === c?.id, P = c.role === "assistant";
|
|
530
529
|
if (T && m || !P) return null;
|
|
531
530
|
const y = {
|
|
532
531
|
copy() {
|
|
@@ -538,7 +537,7 @@ const Qo = Q((t, e) => {
|
|
|
538
537
|
});
|
|
539
538
|
},
|
|
540
539
|
upvote() {
|
|
541
|
-
|
|
540
|
+
g(c.id).then(() => {
|
|
542
541
|
V();
|
|
543
542
|
});
|
|
544
543
|
},
|
|
@@ -549,17 +548,17 @@ const Qo = Q((t, e) => {
|
|
|
549
548
|
copy: "Copy Message",
|
|
550
549
|
upvote: "Upvote Message",
|
|
551
550
|
downvote: "Downvote Message"
|
|
552
|
-
},
|
|
551
|
+
}, w = {
|
|
553
552
|
copy: /* @__PURE__ */ a(k, { iconKey: u ? "messageCopied" : "messageCopy" }),
|
|
554
553
|
upvote: /* @__PURE__ */ a(k, { iconKey: x ? "messageCopied" : "thumbsUp" }),
|
|
555
554
|
downvote: /* @__PURE__ */ a(k, { iconKey: "thumbsDown" })
|
|
556
555
|
}, z = {
|
|
557
|
-
copy: { "data-copied":
|
|
556
|
+
copy: { "data-copied": v(u) },
|
|
558
557
|
upvote: {
|
|
559
|
-
"data-upvoted":
|
|
558
|
+
"data-upvoted": v(h[c.id]?.type === "positive")
|
|
560
559
|
},
|
|
561
560
|
downvote: {
|
|
562
|
-
"data-downvoted":
|
|
561
|
+
"data-downvoted": v(h[c.id]?.type === "negative"),
|
|
563
562
|
"data-state": M === null ? "closed" : "open"
|
|
564
563
|
}
|
|
565
564
|
};
|
|
@@ -568,29 +567,29 @@ const Qo = Q((t, e) => {
|
|
|
568
567
|
upvote: !d,
|
|
569
568
|
downvote: !d
|
|
570
569
|
}[e] ? null : /* @__PURE__ */ a(
|
|
571
|
-
|
|
570
|
+
Kt,
|
|
572
571
|
{
|
|
573
572
|
"data-action": e,
|
|
574
573
|
...z[e],
|
|
575
|
-
children:
|
|
574
|
+
children: w[e],
|
|
576
575
|
"aria-label": H[e],
|
|
577
576
|
className: `${r} ${e}`,
|
|
578
577
|
onClick: b(o, y[e]),
|
|
579
578
|
...n
|
|
580
579
|
}
|
|
581
580
|
);
|
|
582
|
-
},
|
|
581
|
+
}, qt = i("div", {
|
|
583
582
|
_id: "aiChatMessageSources"
|
|
584
|
-
}),
|
|
583
|
+
}), Aa = (t) => {
|
|
585
584
|
const { message: e } = E();
|
|
586
585
|
return e.role !== "assistant" || !e.parts.filter(
|
|
587
586
|
(r) => r.type === "data-artifact" && r.data?.type?.toLowerCase() === "citation"
|
|
588
|
-
)?.length ? null : /* @__PURE__ */ a(
|
|
589
|
-
},
|
|
587
|
+
)?.length ? null : /* @__PURE__ */ a(qt, { ...t });
|
|
588
|
+
}, jt = i("div", {
|
|
590
589
|
_id: "aiChatMessageSources__Header"
|
|
591
|
-
}),
|
|
590
|
+
}), xa = (t) => /* @__PURE__ */ a(jt, { children: "Sources", ...t }), zt = i("div", {
|
|
592
591
|
_id: "aiChatMessageSources__List"
|
|
593
|
-
}),
|
|
592
|
+
}), Ta = (t) => {
|
|
594
593
|
const { message: e } = E(), { children: o, ...r } = t, {
|
|
595
594
|
baseSettings: { transformSource: n, organizationDisplayName: s },
|
|
596
595
|
aiChatSettings: { shouldOpenLinksInNewTab: d },
|
|
@@ -605,7 +604,7 @@ const Qo = Q((t, e) => {
|
|
|
605
604
|
const h = C.data.artifactSummary.url;
|
|
606
605
|
return !h || l.has(h) ? !1 : (l.set(h, !0), !0);
|
|
607
606
|
}).map((C) => {
|
|
608
|
-
const h = C.data,
|
|
607
|
+
const h = C.data, g = {
|
|
609
608
|
id: h?.artifactId,
|
|
610
609
|
title: h?.artifactSummary?.title || h?.name,
|
|
611
610
|
url: h?.artifactSummary?.url || "",
|
|
@@ -617,17 +616,17 @@ const Qo = Q((t, e) => {
|
|
|
617
616
|
}, M = (n ?? ((x) => ({
|
|
618
617
|
...x,
|
|
619
618
|
shouldOpenInNewTab: d,
|
|
620
|
-
icon:
|
|
621
|
-
})))(
|
|
619
|
+
icon: lt(x)
|
|
620
|
+
})))(g, "chatSourceItem", {
|
|
622
621
|
organizationDisplayName: s,
|
|
623
622
|
tabs: c
|
|
624
623
|
}), I = M.shouldOpenInNewTab !== void 0 ? M.shouldOpenInNewTab : d;
|
|
625
624
|
return { ...M, isExternal: I };
|
|
626
625
|
});
|
|
627
|
-
return /* @__PURE__ */ a(
|
|
628
|
-
},
|
|
626
|
+
return /* @__PURE__ */ a(zt, { children: O(o, u), ...r });
|
|
627
|
+
}, Gt = i(Ke, {
|
|
629
628
|
_id: "aiChatMessageSourceItem"
|
|
630
|
-
}),
|
|
629
|
+
}), Ha = (t) => {
|
|
631
630
|
const { source: e, onClick: o, ...r } = t, { logEvent: n } = oe(), { conversationId: s } = F(), d = () => {
|
|
632
631
|
n({
|
|
633
632
|
eventName: "assistant_source_item_clicked",
|
|
@@ -638,7 +637,7 @@ const Qo = Q((t, e) => {
|
|
|
638
637
|
});
|
|
639
638
|
};
|
|
640
639
|
return /* @__PURE__ */ a(qe, { source: e, children: /* @__PURE__ */ a(
|
|
641
|
-
|
|
640
|
+
Gt,
|
|
642
641
|
{
|
|
643
642
|
"data-type": e.type,
|
|
644
643
|
appendToUrl: e.appendToUrl,
|
|
@@ -648,78 +647,78 @@ const Qo = Q((t, e) => {
|
|
|
648
647
|
...r
|
|
649
648
|
}
|
|
650
649
|
) });
|
|
651
|
-
},
|
|
650
|
+
}, Yt = i("div", {
|
|
652
651
|
_id: "aiChatMessageSourceItem__Breadcrumbs"
|
|
653
|
-
}),
|
|
652
|
+
}), wa = (t) => {
|
|
654
653
|
const { source: e } = R();
|
|
655
|
-
return e.breadcrumbs?.length ? /* @__PURE__ */ a(
|
|
656
|
-
},
|
|
654
|
+
return e.breadcrumbs?.length ? /* @__PURE__ */ a(Yt, { "data-type": e.type, ...t }) : null;
|
|
655
|
+
}, La = i(k, {
|
|
657
656
|
_id: "aiChatMessageSourceItem__BreadcrumbIcon",
|
|
658
657
|
iconKey: "breadcrumbSeparator"
|
|
659
|
-
}),
|
|
658
|
+
}), Zt = i(N, {
|
|
660
659
|
_id: "aiChatMessageSourceItem__Icon"
|
|
661
|
-
}),
|
|
660
|
+
}), Da = (t) => {
|
|
662
661
|
const { source: e } = R();
|
|
663
|
-
return /* @__PURE__ */ a(
|
|
664
|
-
},
|
|
662
|
+
return /* @__PURE__ */ a(Zt, { iconSettings: e.icon, "data-type": e.type, ...t });
|
|
663
|
+
}, Jt = i("span", {
|
|
665
664
|
_id: "aiChatMessageSourceItem__Title"
|
|
666
|
-
}),
|
|
665
|
+
}), Ba = (t) => {
|
|
667
666
|
const { source: e } = R();
|
|
668
|
-
return /* @__PURE__ */ a(
|
|
669
|
-
},
|
|
667
|
+
return /* @__PURE__ */ a(Jt, { "data-type": e.type, children: e.title, ...t });
|
|
668
|
+
}, Xt = i("span", {
|
|
670
669
|
_id: "aiChatMessageSourceItem__Tag"
|
|
671
|
-
}),
|
|
670
|
+
}), Na = (t) => {
|
|
672
671
|
const { source: e } = R();
|
|
673
|
-
return /* @__PURE__ */ a(
|
|
674
|
-
},
|
|
672
|
+
return /* @__PURE__ */ a(Xt, { "data-type": e.type, ...t });
|
|
673
|
+
}, ei = i("span", {
|
|
675
674
|
_id: "aiChatMessageSourceItem__Description"
|
|
676
|
-
}),
|
|
677
|
-
const { source: e } = R(), { children: o, ...r } = t, n = ne(() => e.description ?
|
|
675
|
+
}), Ra = (t) => {
|
|
676
|
+
const { source: e } = R(), { children: o, ...r } = t, n = ne(() => e.description ? ot(e.description) : [], [e.description]);
|
|
678
677
|
return n.length ? /* @__PURE__ */ a(
|
|
679
|
-
|
|
678
|
+
ei,
|
|
680
679
|
{
|
|
681
680
|
"data-type": e.type,
|
|
682
681
|
children: O(o, n),
|
|
683
682
|
...r
|
|
684
683
|
}
|
|
685
684
|
) : null;
|
|
686
|
-
},
|
|
685
|
+
}, ti = i("span", {
|
|
687
686
|
_id: "aiChatMessageSourceItem__DescriptionPart"
|
|
688
|
-
}),
|
|
687
|
+
}), Oa = (t) => {
|
|
689
688
|
const { part: e, ...o } = t, { source: r } = R();
|
|
690
689
|
return typeof e == "string" ? e : /* @__PURE__ */ a(
|
|
691
|
-
|
|
690
|
+
ti,
|
|
692
691
|
{
|
|
693
692
|
"data-type": r.type,
|
|
694
693
|
children: e.content,
|
|
695
|
-
"data-highlighted":
|
|
694
|
+
"data-highlighted": v(e.highlighted),
|
|
696
695
|
...o
|
|
697
696
|
}
|
|
698
697
|
);
|
|
699
|
-
},
|
|
698
|
+
}, ii = i(k, {
|
|
700
699
|
_id: "aiChatMessageSourceItem__Indicator"
|
|
701
|
-
}),
|
|
700
|
+
}), Va = (t) => {
|
|
702
701
|
const { source: e } = R();
|
|
703
702
|
return /* @__PURE__ */ a(
|
|
704
|
-
|
|
703
|
+
ii,
|
|
705
704
|
{
|
|
706
705
|
iconKey: e.isExternal ? "openLinkInNewTab" : "openLinkInSameTab",
|
|
707
706
|
...t
|
|
708
707
|
}
|
|
709
708
|
);
|
|
710
|
-
},
|
|
709
|
+
}, Wa = i("div", {
|
|
711
710
|
_id: "aiChatFooter"
|
|
712
|
-
}),
|
|
711
|
+
}), Qa = i("div", {
|
|
713
712
|
_id: "aiChatInput__Group"
|
|
714
|
-
}),
|
|
713
|
+
}), oi = i("textarea", {
|
|
715
714
|
_id: "aiChatInput"
|
|
716
|
-
}),
|
|
715
|
+
}), Ua = Q(({ onChange: t, onKeyDown: e, ...o }, r) => {
|
|
717
716
|
const { handleInputChange: n, handleInputKeyDown: s, input: d, error: c, shouldAutoFocusInput: m, inputRef: l } = F(), { aiChatSettings: u } = p(), C = ie(
|
|
718
717
|
r,
|
|
719
718
|
l
|
|
720
719
|
);
|
|
721
|
-
return
|
|
722
|
-
|
|
720
|
+
return ct("chat", l, m), /* @__PURE__ */ a(
|
|
721
|
+
oi,
|
|
723
722
|
{
|
|
724
723
|
asChild: !0,
|
|
725
724
|
ref: C,
|
|
@@ -733,12 +732,12 @@ const Qo = Q((t, e) => {
|
|
|
733
732
|
children: /* @__PURE__ */ a(se, {})
|
|
734
733
|
}
|
|
735
734
|
);
|
|
736
|
-
}),
|
|
735
|
+
}), ai = i("button", {
|
|
737
736
|
_id: "aiChatInput__SendButton"
|
|
738
|
-
}),
|
|
737
|
+
}), $a = (t) => {
|
|
739
738
|
const { handleSubmit: e, isSubmitDisabled: o, error: r } = F(), { aiChatSettings: n } = p(), { onClick: s, ...d } = t;
|
|
740
739
|
return /* @__PURE__ */ a(
|
|
741
|
-
|
|
740
|
+
ai,
|
|
742
741
|
{
|
|
743
742
|
onClick: b(s, () => e()),
|
|
744
743
|
"aria-label": "Send message",
|
|
@@ -746,31 +745,29 @@ const Qo = Q((t, e) => {
|
|
|
746
745
|
...d
|
|
747
746
|
}
|
|
748
747
|
);
|
|
749
|
-
},
|
|
748
|
+
}, Ka = i(k, {
|
|
750
749
|
_id: "aiChatInput__SendButtonIcon",
|
|
751
750
|
iconKey: "chatSubmit"
|
|
752
|
-
}),
|
|
751
|
+
}), qa = i("div", {
|
|
753
752
|
_id: "aiChatActionBar"
|
|
754
|
-
}),
|
|
753
|
+
}), ja = i("div", {
|
|
755
754
|
_id: "aiChat__ChatActions"
|
|
756
|
-
}),
|
|
755
|
+
}), za = i("div", {
|
|
757
756
|
_id: "aiChatTagline__Container"
|
|
758
|
-
}),
|
|
757
|
+
}), Ga = i("span", {
|
|
759
758
|
_id: "aiChatTagline__Text",
|
|
760
759
|
children: "Powered by"
|
|
761
|
-
}),
|
|
762
|
-
_id: "aiChatTagline__Logo"
|
|
763
|
-
}), Xa = i("a", {
|
|
764
|
-
_id: "aiChatTagline__BrandName",
|
|
765
|
-
children: "inkeep",
|
|
760
|
+
}), Ya = i("a", {
|
|
761
|
+
_id: "aiChatTagline__Logo",
|
|
766
762
|
href: "https://www.inkeep.com/",
|
|
767
763
|
target: "_blank",
|
|
768
|
-
rel: "noopener noreferrer"
|
|
769
|
-
|
|
764
|
+
rel: "noopener noreferrer",
|
|
765
|
+
"aria-label": "Inkeep"
|
|
766
|
+
}), ri = i(q.Trigger, {
|
|
770
767
|
_id: "aiChat__ChatAction"
|
|
771
768
|
}), ue = (t) => {
|
|
772
769
|
const { action: e, onClick: o, className: r, ...n } = t, { clear: s, stop: d, isBusy: c, messages: m } = F(), { conversationId: l } = F(), { aiChatSettings: u } = p(), [C, h] = Y(), [
|
|
773
|
-
|
|
770
|
+
g
|
|
774
771
|
/* copyShareUri */
|
|
775
772
|
] = Y(), _ = m.length > 0;
|
|
776
773
|
if ({
|
|
@@ -803,22 +800,22 @@ ${H}`;
|
|
|
803
800
|
stop: d
|
|
804
801
|
}, T = {
|
|
805
802
|
copy: C,
|
|
806
|
-
share:
|
|
803
|
+
share: g
|
|
807
804
|
};
|
|
808
805
|
return /* @__PURE__ */ a(q.Tooltip, { delayDuration: 0, open: T[e], children: /* @__PURE__ */ a(
|
|
809
|
-
|
|
806
|
+
ri,
|
|
810
807
|
{
|
|
811
808
|
"data-type": e,
|
|
812
|
-
"data-copied":
|
|
809
|
+
"data-copied": v(C || g),
|
|
813
810
|
className: `${r} ${e}`,
|
|
814
|
-
children: /* @__PURE__ */ a(
|
|
811
|
+
children: /* @__PURE__ */ a(si, { action: e }),
|
|
815
812
|
onClick: b(o, V[e]),
|
|
816
813
|
...n
|
|
817
814
|
}
|
|
818
815
|
) });
|
|
819
|
-
},
|
|
816
|
+
}, ni = i("span", {
|
|
820
817
|
_id: "aiChat__ChatActionLabel"
|
|
821
|
-
}),
|
|
818
|
+
}), si = (t) => {
|
|
822
819
|
const { action: e, ...o } = t, { aiChatSettings: r } = p(), n = r.toolbarButtonLabels ?? {}, s = {
|
|
823
820
|
help: n.getHelp ?? "Get Help",
|
|
824
821
|
copy: n.copyChat ?? "Copy",
|
|
@@ -826,21 +823,21 @@ ${H}`;
|
|
|
826
823
|
clear: n.clear ?? "Clear",
|
|
827
824
|
stop: n.stop ?? "Stop"
|
|
828
825
|
};
|
|
829
|
-
return /* @__PURE__ */ a(
|
|
830
|
-
},
|
|
826
|
+
return /* @__PURE__ */ a(ni, { children: s[e], ...o });
|
|
827
|
+
}, di = i(q.TooltipContent, {
|
|
831
828
|
_id: "aiChat__ChatActionFeeback"
|
|
832
|
-
}),
|
|
829
|
+
}), Za = (t) => {
|
|
833
830
|
const { action: e, children: o, ...r } = t, n = {
|
|
834
831
|
copy: "Copied!",
|
|
835
832
|
share: "Link copied!"
|
|
836
833
|
};
|
|
837
|
-
return /* @__PURE__ */ Z(
|
|
834
|
+
return /* @__PURE__ */ Z(di, { sideOffset: 5, ...r, children: [
|
|
838
835
|
/* @__PURE__ */ a(q.Arrow, {}),
|
|
839
836
|
o || n[e]
|
|
840
837
|
] });
|
|
841
|
-
},
|
|
838
|
+
}, ci = i(D.Root, {
|
|
842
839
|
_id: "aiChatHelpActions"
|
|
843
|
-
}),
|
|
840
|
+
}), Ja = (t) => {
|
|
844
841
|
const { children: e, ...o } = t, { aiChatSettings: r } = p(), { getHelpOptions: n } = r;
|
|
845
842
|
if (!n || (n ?? []).length === 0)
|
|
846
843
|
return null;
|
|
@@ -850,9 +847,9 @@ ${H}`;
|
|
|
850
847
|
return { ...u, [h]: [...u[h], C] };
|
|
851
848
|
},
|
|
852
849
|
{ _pinned: [], _unpinned: [] }
|
|
853
|
-
), c = d.length === 1 ? [...s, d[0]] : s, m = d.length === 1 ? [] : d, l =
|
|
854
|
-
return /* @__PURE__ */ a(
|
|
855
|
-
|
|
850
|
+
), c = d.length === 1 ? [...s, d[0]] : s, m = d.length === 1 ? [] : d, l = Je();
|
|
851
|
+
return /* @__PURE__ */ a(Xe, { value: l, children: /* @__PURE__ */ a(
|
|
852
|
+
ci,
|
|
856
853
|
{
|
|
857
854
|
open: l.open,
|
|
858
855
|
onOpenChange: l.setOpen,
|
|
@@ -860,14 +857,14 @@ ${H}`;
|
|
|
860
857
|
...o
|
|
861
858
|
}
|
|
862
859
|
) });
|
|
863
|
-
},
|
|
860
|
+
}, mi = i(ue, {
|
|
864
861
|
_id: "aiChatHelpAction",
|
|
865
862
|
action: "help"
|
|
866
|
-
}),
|
|
863
|
+
}), li = i("a", {
|
|
867
864
|
_id: "aiChatHelpAction",
|
|
868
865
|
target: "_blank",
|
|
869
866
|
rel: "noreferrer"
|
|
870
|
-
}),
|
|
867
|
+
}), Xa = (t) => {
|
|
871
868
|
const { action: e, onClick: o, ...r } = t, { handleAction: n, logHelpAction: s } = te(e), d = e.action.type, c = {
|
|
872
869
|
"aria-label": e.name,
|
|
873
870
|
"data-name": e.name,
|
|
@@ -878,18 +875,18 @@ ${H}`;
|
|
|
878
875
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
879
876
|
...r
|
|
880
877
|
};
|
|
881
|
-
return d === "open_link" ? /* @__PURE__ */ a(
|
|
882
|
-
},
|
|
878
|
+
return d === "open_link" ? /* @__PURE__ */ a(li, { href: e.action.url, ...c }) : /* @__PURE__ */ a(mi, { ...c });
|
|
879
|
+
}, ui = i(D.Trigger, {
|
|
883
880
|
_id: "aiChatHelpActions__Trigger"
|
|
884
|
-
}),
|
|
881
|
+
}), er = S(
|
|
885
882
|
(t) => {
|
|
886
883
|
const { aiChatSettings: e } = p();
|
|
887
|
-
return /* @__PURE__ */ a(ue, { action: "help", ...t, asChild: !0, children: /* @__PURE__ */ a(
|
|
884
|
+
return /* @__PURE__ */ a(ue, { action: "help", ...t, asChild: !0, children: /* @__PURE__ */ a(ui, { children: e.toolbarButtonLabels?.getHelp ?? "Get Help" }) });
|
|
888
885
|
}
|
|
889
|
-
),
|
|
886
|
+
), hi = i(D.Content, {
|
|
890
887
|
_id: "aiChatHelpActions__Menu"
|
|
891
|
-
}),
|
|
892
|
-
|
|
888
|
+
}), tr = (t) => /* @__PURE__ */ a(
|
|
889
|
+
hi,
|
|
893
890
|
{
|
|
894
891
|
side: "top",
|
|
895
892
|
sideOffset: 8,
|
|
@@ -897,10 +894,10 @@ ${H}`;
|
|
|
897
894
|
alignOffset: -10,
|
|
898
895
|
...t
|
|
899
896
|
}
|
|
900
|
-
),
|
|
897
|
+
), ir = i(D.Arrow, {
|
|
901
898
|
_id: "aiChatHelpActions__MenuArrow"
|
|
902
|
-
}),
|
|
903
|
-
const { action: e, onClick: o, ...r } = t, { handleAction: n, logHelpAction: s } = te(e), { setOpen: d } =
|
|
899
|
+
}), or = (t) => {
|
|
900
|
+
const { action: e, onClick: o, ...r } = t, { handleAction: n, logHelpAction: s } = te(e), { setOpen: d } = et(), c = () => {
|
|
904
901
|
n({
|
|
905
902
|
onOpenForm: () => d(!1)
|
|
906
903
|
}), s();
|
|
@@ -918,58 +915,58 @@ ${H}`;
|
|
|
918
915
|
onClick: b(o, c)
|
|
919
916
|
});
|
|
920
917
|
return /* @__PURE__ */ a(l, { ...r });
|
|
921
|
-
},
|
|
918
|
+
}, Ci = i(N, {
|
|
922
919
|
_id: "aiChatHelpActions_MenuItemIcon"
|
|
923
|
-
}),
|
|
920
|
+
}), ar = (t) => {
|
|
924
921
|
const { action: e, ...o } = t;
|
|
925
|
-
return e.icon ? /* @__PURE__ */ a(
|
|
926
|
-
},
|
|
922
|
+
return e.icon ? /* @__PURE__ */ a(Ci, { iconSettings: e.icon, ...o }) : null;
|
|
923
|
+
}, bi = i(Qe, {
|
|
927
924
|
_id: "aiChatFeedbackModal"
|
|
928
|
-
}),
|
|
925
|
+
}), rr = (t) => {
|
|
929
926
|
const { onOpenChange: e, ...o } = t, { currentFeedback: r, setCurrentFeedback: n } = X();
|
|
930
927
|
return /* @__PURE__ */ a(
|
|
931
|
-
|
|
928
|
+
bi,
|
|
932
929
|
{
|
|
933
930
|
open: r !== null,
|
|
934
931
|
onOpenChange: b(e, () => n(null)),
|
|
935
932
|
...o
|
|
936
933
|
}
|
|
937
934
|
);
|
|
938
|
-
},
|
|
935
|
+
}, nr = i(Re, {
|
|
939
936
|
_id: "aiChatFeedbackModal__Overlay"
|
|
940
|
-
}),
|
|
937
|
+
}), sr = i(Oe, {
|
|
941
938
|
_id: "aiChatFeedbackModal__Content",
|
|
942
939
|
"aria-describedby": void 0
|
|
943
|
-
}),
|
|
940
|
+
}), dr = i(Ve, {
|
|
944
941
|
_id: "aiChatFeedbackModal__Header",
|
|
945
942
|
children: "Help improve my answers!"
|
|
946
|
-
}),
|
|
943
|
+
}), cr = i(We, {
|
|
947
944
|
_id: "aiChatFeedbackModal__Close",
|
|
948
945
|
children: /* @__PURE__ */ a(k, { iconKey: "close" })
|
|
949
|
-
}),
|
|
946
|
+
}), mr = i("div", {
|
|
950
947
|
_id: "aiChatFeedbackModal__Body"
|
|
951
|
-
}),
|
|
948
|
+
}), pi = i("form", {
|
|
952
949
|
_id: "aiChatFeedbackForm"
|
|
953
|
-
}),
|
|
950
|
+
}), lr = (t) => {
|
|
954
951
|
const { onSubmit: e, ...o } = t, { submitNegativeFeedback: r, currentFeedback: n, setCurrentFeedback: s } = X();
|
|
955
|
-
return /* @__PURE__ */ a(
|
|
952
|
+
return /* @__PURE__ */ a(pi, { onSubmit: b(e, (c) => {
|
|
956
953
|
c.preventDefault();
|
|
957
954
|
const m = c.target, l = new FormData(m), u = Object.fromEntries(l.entries());
|
|
958
955
|
n && (r(n, u), s(null));
|
|
959
956
|
}), ...o });
|
|
960
957
|
}, vi = i("div", {
|
|
961
958
|
_id: "aiChatFeedbackItem"
|
|
962
|
-
}),
|
|
959
|
+
}), ur = (t) => {
|
|
963
960
|
const { name: e, ...o } = t;
|
|
964
961
|
return /* @__PURE__ */ a(ze, { name: e, children: /* @__PURE__ */ a(vi, { ...o }) });
|
|
965
|
-
},
|
|
962
|
+
}, gi = i(K.Root, {
|
|
966
963
|
_id: "aiChatFeedbackItem__Checkbox"
|
|
967
|
-
}),
|
|
964
|
+
}), hr = (t) => {
|
|
968
965
|
const { name: e, focusItem: o } = ee(), { onCheckedChange: r, ...n } = t, s = (d) => {
|
|
969
966
|
d && o?.current?.focus();
|
|
970
967
|
};
|
|
971
968
|
return /* @__PURE__ */ a(
|
|
972
|
-
|
|
969
|
+
gi,
|
|
973
970
|
{
|
|
974
971
|
id: `feedback-${e}`,
|
|
975
972
|
name: e,
|
|
@@ -977,47 +974,47 @@ ${H}`;
|
|
|
977
974
|
...n
|
|
978
975
|
}
|
|
979
976
|
);
|
|
980
|
-
},
|
|
977
|
+
}, Cr = i(K.Indicator, {
|
|
981
978
|
_id: "aiChatFeedbackItem__CheckboxIndicator",
|
|
982
979
|
children: /* @__PURE__ */ a(de, {})
|
|
983
|
-
}),
|
|
980
|
+
}), Fi = i("label", {
|
|
984
981
|
_id: "aiChatFeedbackItem__Label"
|
|
985
|
-
}),
|
|
982
|
+
}), br = (t) => {
|
|
986
983
|
const { name: e } = ee(), o = {
|
|
987
984
|
unrelated_response: "Didn't answer my question",
|
|
988
985
|
inaccurate_statement: "Inaccurate statement",
|
|
989
986
|
inaccurate_code_snippet: "Inaccurate code snippet",
|
|
990
987
|
irrelevant_citations: "Irrelevant citations"
|
|
991
988
|
};
|
|
992
|
-
return /* @__PURE__ */ a(
|
|
993
|
-
},
|
|
989
|
+
return /* @__PURE__ */ a(Fi, { htmlFor: `feedback-${e}`, children: o[e], ...t });
|
|
990
|
+
}, _i = i("textarea", {
|
|
994
991
|
_id: "aiChatFeedbackItem__Description",
|
|
995
992
|
placeholder: "Please describe"
|
|
996
|
-
}),
|
|
993
|
+
}), pr = (t) => {
|
|
997
994
|
const { name: e, focusItem: o } = ee();
|
|
998
995
|
return /* @__PURE__ */ a(
|
|
999
|
-
|
|
996
|
+
_i,
|
|
1000
997
|
{
|
|
1001
998
|
ref: o,
|
|
1002
999
|
name: `${e}:description`,
|
|
1003
1000
|
...t
|
|
1004
1001
|
}
|
|
1005
1002
|
);
|
|
1006
|
-
},
|
|
1003
|
+
}, vr = i("button", {
|
|
1007
1004
|
_id: "aiChatFeedbackForm__SubmitButton",
|
|
1008
1005
|
children: "Submit",
|
|
1009
1006
|
type: "submit"
|
|
1010
|
-
}),
|
|
1007
|
+
}), Pi = i("div", {
|
|
1011
1008
|
_id: "aiChatForm__Wrapper"
|
|
1012
|
-
}),
|
|
1009
|
+
}), gr = (t) => {
|
|
1013
1010
|
const { form: e } = f();
|
|
1014
|
-
return e ? /* @__PURE__ */ a(
|
|
1015
|
-
},
|
|
1011
|
+
return e ? /* @__PURE__ */ a(Pi, { ...t }) : null;
|
|
1012
|
+
}, fi = i("form", {
|
|
1016
1013
|
_id: "aiChatForm"
|
|
1017
|
-
}),
|
|
1014
|
+
}), Fr = (t) => {
|
|
1018
1015
|
const { onSubmit: e, ...o } = t, { conversationId: r, messages: n } = F(), { handleSubmit: s, isSuccess: d } = f();
|
|
1019
1016
|
return d ? null : /* @__PURE__ */ a(
|
|
1020
|
-
|
|
1017
|
+
fi,
|
|
1021
1018
|
{
|
|
1022
1019
|
onSubmit: b(
|
|
1023
1020
|
e,
|
|
@@ -1026,35 +1023,35 @@ ${H}`;
|
|
|
1026
1023
|
...o
|
|
1027
1024
|
}
|
|
1028
1025
|
);
|
|
1029
|
-
},
|
|
1026
|
+
}, Ii = i("button", {
|
|
1030
1027
|
_id: "aiChatForm__Close",
|
|
1031
1028
|
children: /* @__PURE__ */ a(k, { iconKey: "close" })
|
|
1032
|
-
}),
|
|
1029
|
+
}), _r = (t) => {
|
|
1033
1030
|
const { onClick: e, ...o } = t, { closeForm: r } = f();
|
|
1034
|
-
return /* @__PURE__ */ a(
|
|
1035
|
-
},
|
|
1031
|
+
return /* @__PURE__ */ a(Ii, { onClick: b(e, r), ...o });
|
|
1032
|
+
}, Pr = i("div", {
|
|
1036
1033
|
_id: "aiChatForm__Header"
|
|
1037
|
-
}),
|
|
1034
|
+
}), Ei = i("h2", {
|
|
1038
1035
|
_id: "aiChatForm__Heading"
|
|
1039
|
-
}),
|
|
1036
|
+
}), fr = (t) => {
|
|
1040
1037
|
const { form: e } = f();
|
|
1041
|
-
return e?.heading ? /* @__PURE__ */ a(
|
|
1042
|
-
},
|
|
1038
|
+
return e?.heading ? /* @__PURE__ */ a(Ei, { children: e.heading, ...t }) : null;
|
|
1039
|
+
}, Si = i(j, {
|
|
1043
1040
|
_id: "aiChatForm__Description"
|
|
1044
|
-
}),
|
|
1041
|
+
}), Ir = (t) => {
|
|
1045
1042
|
const { form: e } = f();
|
|
1046
|
-
return e?.description ? /* @__PURE__ */ a(
|
|
1047
|
-
},
|
|
1043
|
+
return e?.description ? /* @__PURE__ */ a(Si, { shouldOpenLinksInNewTab: !0, children: e.description, ...t }) : null;
|
|
1044
|
+
}, Mi = i("div", {
|
|
1048
1045
|
_id: "aiChatForm__Content"
|
|
1049
|
-
}),
|
|
1046
|
+
}), Er = (t) => {
|
|
1050
1047
|
const { children: e, ...o } = t, { getFields: r } = f(), { conversationId: n } = F(), s = r(n) || [];
|
|
1051
|
-
return /* @__PURE__ */ a(
|
|
1052
|
-
},
|
|
1048
|
+
return /* @__PURE__ */ a(Mi, { children: O(e, s), ...o });
|
|
1049
|
+
}, ki = i("div", {
|
|
1053
1050
|
_id: "aiChatForm__Field"
|
|
1054
|
-
}),
|
|
1051
|
+
}), Sr = (t) => {
|
|
1055
1052
|
const { field: e, autoFocus: o, ...r } = t, { control: n, errors: s } = f();
|
|
1056
1053
|
return /* @__PURE__ */ a(
|
|
1057
|
-
|
|
1054
|
+
it,
|
|
1058
1055
|
{
|
|
1059
1056
|
name: e.name,
|
|
1060
1057
|
control: n,
|
|
@@ -1062,17 +1059,17 @@ ${H}`;
|
|
|
1062
1059
|
render: ({ field: d }) => {
|
|
1063
1060
|
const c = d.value !== void 0 || e.inputType === "file";
|
|
1064
1061
|
return /* @__PURE__ */ a(
|
|
1065
|
-
|
|
1062
|
+
tt,
|
|
1066
1063
|
{
|
|
1067
|
-
"data-invalid":
|
|
1064
|
+
"data-invalid": v(!!s[e.name]),
|
|
1068
1065
|
field: e,
|
|
1069
1066
|
fieldProps: d,
|
|
1070
1067
|
autoFocus: o,
|
|
1071
1068
|
children: c && /* @__PURE__ */ a(
|
|
1072
|
-
|
|
1069
|
+
ki,
|
|
1073
1070
|
{
|
|
1074
1071
|
"data-input-type": e.inputType,
|
|
1075
|
-
"data-hidden":
|
|
1072
|
+
"data-hidden": v(e.isHidden),
|
|
1076
1073
|
...r
|
|
1077
1074
|
}
|
|
1078
1075
|
)
|
|
@@ -1081,20 +1078,20 @@ ${H}`;
|
|
|
1081
1078
|
}
|
|
1082
1079
|
}
|
|
1083
1080
|
);
|
|
1084
|
-
},
|
|
1081
|
+
}, yi = i("label", {
|
|
1085
1082
|
_id: "aiChatForm__FieldLabel"
|
|
1086
|
-
}),
|
|
1083
|
+
}), Mr = (t) => {
|
|
1087
1084
|
const { field: e } = A();
|
|
1088
1085
|
return /* @__PURE__ */ a(
|
|
1089
|
-
|
|
1086
|
+
yi,
|
|
1090
1087
|
{
|
|
1091
|
-
"data-required":
|
|
1088
|
+
"data-required": v(e.isRequired),
|
|
1092
1089
|
htmlFor: e.name,
|
|
1093
1090
|
children: e.label,
|
|
1094
1091
|
...t
|
|
1095
1092
|
}
|
|
1096
1093
|
);
|
|
1097
|
-
},
|
|
1094
|
+
}, Ai = i("input", {
|
|
1098
1095
|
_id: "aiChatForm__FieldText",
|
|
1099
1096
|
type: "text"
|
|
1100
1097
|
}), he = (t) => {
|
|
@@ -1105,91 +1102,91 @@ ${H}`;
|
|
|
1105
1102
|
autoFocus: d
|
|
1106
1103
|
} = A(), { onChange: c, onBlur: m, ...l } = t;
|
|
1107
1104
|
return /* @__PURE__ */ a(
|
|
1108
|
-
|
|
1105
|
+
Ai,
|
|
1109
1106
|
{
|
|
1110
1107
|
id: e.name,
|
|
1111
1108
|
autoFocus: d,
|
|
1112
1109
|
placeholder: "placeholder" in e ? e.placeholder : void 0,
|
|
1113
|
-
"data-invalid":
|
|
1110
|
+
"data-invalid": v(!!o),
|
|
1114
1111
|
onChange: b(c, r),
|
|
1115
1112
|
onBlur: b(m, n),
|
|
1116
1113
|
...s,
|
|
1117
1114
|
...l
|
|
1118
1115
|
}
|
|
1119
1116
|
);
|
|
1120
|
-
},
|
|
1117
|
+
}, kr = i(he, {
|
|
1121
1118
|
_id: "aiChatForm__FieldEmail",
|
|
1122
1119
|
type: "email"
|
|
1123
|
-
}),
|
|
1120
|
+
}), xi = i("input", {
|
|
1124
1121
|
_id: "aiChatForm__FieldFile",
|
|
1125
1122
|
type: "file",
|
|
1126
1123
|
multiple: !0
|
|
1127
|
-
}),
|
|
1124
|
+
}), yr = (t) => {
|
|
1128
1125
|
const {
|
|
1129
1126
|
field: e,
|
|
1130
1127
|
error: o,
|
|
1131
1128
|
fieldProps: { value: r, onChange: n, onBlur: s, ...d },
|
|
1132
1129
|
autoFocus: c
|
|
1133
1130
|
} = A(), { onChange: m, onBlur: l, ...u } = t, C = (h) => {
|
|
1134
|
-
const
|
|
1135
|
-
n(
|
|
1131
|
+
const g = h.target.files;
|
|
1132
|
+
n(g);
|
|
1136
1133
|
};
|
|
1137
1134
|
return /* @__PURE__ */ a(
|
|
1138
|
-
|
|
1135
|
+
xi,
|
|
1139
1136
|
{
|
|
1140
1137
|
id: e.name,
|
|
1141
1138
|
autoFocus: c,
|
|
1142
1139
|
"data-value": r,
|
|
1143
|
-
"data-invalid":
|
|
1140
|
+
"data-invalid": v(!!o),
|
|
1144
1141
|
...u,
|
|
1145
1142
|
...d,
|
|
1146
1143
|
onChange: b(m, C),
|
|
1147
1144
|
onBlur: b(l, s)
|
|
1148
1145
|
}
|
|
1149
1146
|
);
|
|
1150
|
-
},
|
|
1147
|
+
}, Ar = i(he, {
|
|
1151
1148
|
_id: "aiChatForm__FieldTextArea",
|
|
1152
1149
|
type: "textarea",
|
|
1153
1150
|
asChild: !0,
|
|
1154
1151
|
children: /* @__PURE__ */ a(se, { maxRows: 8 })
|
|
1155
|
-
}),
|
|
1152
|
+
}), Ti = i(K.Root, {
|
|
1156
1153
|
_id: "aiChatForm__FieldCheckbox"
|
|
1157
|
-
}),
|
|
1154
|
+
}), xr = (t) => {
|
|
1158
1155
|
const { field: e, error: o, fieldProps: r, autoFocus: n } = A(), { onCheckedChange: s, ...d } = t;
|
|
1159
1156
|
return /* @__PURE__ */ a(
|
|
1160
|
-
|
|
1157
|
+
Ti,
|
|
1161
1158
|
{
|
|
1162
1159
|
id: e.name,
|
|
1163
1160
|
name: e.name,
|
|
1164
1161
|
autoFocus: n,
|
|
1165
|
-
"data-invalid":
|
|
1162
|
+
"data-invalid": v(!!o),
|
|
1166
1163
|
checked: r.value,
|
|
1167
1164
|
onCheckedChange: b(s, r.onChange),
|
|
1168
1165
|
...d
|
|
1169
1166
|
}
|
|
1170
1167
|
);
|
|
1171
|
-
},
|
|
1168
|
+
}, Tr = i(K.Indicator, {
|
|
1172
1169
|
_id: "aiChatForm__FieldCheckboxIndicator",
|
|
1173
1170
|
children: /* @__PURE__ */ a(de, {})
|
|
1174
|
-
}),
|
|
1171
|
+
}), Hi = i(Ie, {
|
|
1175
1172
|
_id: "aiChatForm__FieldSelect"
|
|
1176
|
-
}),
|
|
1173
|
+
}), Hr = (t) => {
|
|
1177
1174
|
const { field: e, error: o, fieldProps: r } = A(), { onValueChange: n, ...s } = t;
|
|
1178
1175
|
return /* @__PURE__ */ a(
|
|
1179
|
-
|
|
1176
|
+
Hi,
|
|
1180
1177
|
{
|
|
1181
1178
|
name: e.name,
|
|
1182
|
-
"data-invalid":
|
|
1179
|
+
"data-invalid": v(!!o),
|
|
1183
1180
|
value: r.value,
|
|
1184
1181
|
onValueChange: b(n, r.onChange),
|
|
1185
1182
|
...s
|
|
1186
1183
|
}
|
|
1187
1184
|
);
|
|
1188
|
-
},
|
|
1185
|
+
}, wr = i(ve, {
|
|
1189
1186
|
_id: "aiChatForm__FieldSelect__Trigger"
|
|
1190
1187
|
}), wi = i(Ee, {
|
|
1191
1188
|
_id: "aiChatForm__FieldSelect__Value"
|
|
1192
|
-
}),
|
|
1189
|
+
}), Lr = (t) => {
|
|
1193
1190
|
const { field: e } = A();
|
|
1194
1191
|
return /* @__PURE__ */ a(
|
|
1195
1192
|
wi,
|
|
@@ -1198,32 +1195,32 @@ ${H}`;
|
|
|
1198
1195
|
...t
|
|
1199
1196
|
}
|
|
1200
1197
|
);
|
|
1201
|
-
},
|
|
1198
|
+
}, Dr = i(ge, {
|
|
1202
1199
|
_id: "aiChatForm__FieldSelect__Icon",
|
|
1203
1200
|
asChild: !0,
|
|
1204
1201
|
children: /* @__PURE__ */ a(N, { iconSettings: { builtIn: "LuChevronDown" } })
|
|
1205
|
-
}),
|
|
1202
|
+
}), Br = i(Fe, {
|
|
1206
1203
|
_id: "aiChatForm__FieldSelect__Content",
|
|
1207
1204
|
position: "popper"
|
|
1208
|
-
}),
|
|
1205
|
+
}), Nr = i(_e, {
|
|
1209
1206
|
_id: "aiChatForm__FieldSelect__Viewport"
|
|
1210
|
-
}),
|
|
1207
|
+
}), Rr = i(Pe, {
|
|
1211
1208
|
_id: "aiChatForm__FieldSelect__Item"
|
|
1212
|
-
}),
|
|
1209
|
+
}), Or = i(pe, {
|
|
1213
1210
|
_id: "aiChatForm__FieldSelect__ItemText"
|
|
1214
|
-
}),
|
|
1211
|
+
}), Vr = i(
|
|
1215
1212
|
fe,
|
|
1216
1213
|
{
|
|
1217
1214
|
_id: "aiChatForm__FieldSelect__ItemIndicator",
|
|
1218
1215
|
asChild: !0,
|
|
1219
1216
|
children: /* @__PURE__ */ a(N, { iconSettings: { builtIn: "LuCheck" } })
|
|
1220
1217
|
}
|
|
1221
|
-
),
|
|
1218
|
+
), Wr = (t) => {
|
|
1222
1219
|
const { field: e, error: o, fieldProps: r } = A(), { onValueChange: n, ...s } = t;
|
|
1223
1220
|
if (e.inputType !== "combobox") return null;
|
|
1224
1221
|
const d = e, { items: c, placeholder: m, multiple: l } = d, u = Array.isArray(r.value) ? r.value : [], C = {
|
|
1225
1222
|
name: e.name,
|
|
1226
|
-
"data-invalid":
|
|
1223
|
+
"data-invalid": v(!!o) || void 0,
|
|
1227
1224
|
items: c,
|
|
1228
1225
|
defaultValue: u,
|
|
1229
1226
|
multiple: l ?? !1,
|
|
@@ -1240,102 +1237,102 @@ ${H}`;
|
|
|
1240
1237
|
...C
|
|
1241
1238
|
}
|
|
1242
1239
|
);
|
|
1243
|
-
},
|
|
1240
|
+
}, Li = { _id: "aiChatForm__FieldCombobox__Control" }, Qr = i(
|
|
1244
1241
|
ye,
|
|
1245
|
-
|
|
1246
|
-
),
|
|
1242
|
+
Li
|
|
1243
|
+
), Di = { _id: "aiChatForm__FieldCombobox__Input" }, Ur = i(
|
|
1247
1244
|
Ae,
|
|
1248
|
-
|
|
1249
|
-
),
|
|
1245
|
+
Di
|
|
1246
|
+
), Bi = {
|
|
1250
1247
|
_id: "aiChatForm__FieldCombobox__Trigger",
|
|
1251
1248
|
children: /* @__PURE__ */ a(N, { iconSettings: { builtIn: "LuChevronDown" } })
|
|
1252
|
-
},
|
|
1249
|
+
}, $r = i(
|
|
1253
1250
|
xe,
|
|
1254
|
-
|
|
1255
|
-
),
|
|
1251
|
+
Bi
|
|
1252
|
+
), Ni = { _id: "aiChatForm__FieldCombobox__SelectedTags" }, Kr = i(
|
|
1256
1253
|
Te,
|
|
1257
|
-
|
|
1258
|
-
),
|
|
1254
|
+
Ni
|
|
1255
|
+
), Ri = { _id: "aiChatForm__FieldCombobox__Content" }, qr = i(
|
|
1259
1256
|
He,
|
|
1257
|
+
Ri
|
|
1258
|
+
), Oi = { _id: "aiChatForm__FieldCombobox__Positioner" }, jr = i(
|
|
1259
|
+
we,
|
|
1260
1260
|
Oi
|
|
1261
|
-
), Vi = { _id: "
|
|
1261
|
+
), Vi = { _id: "aiChatForm__FieldCombobox__List" }, zr = i(
|
|
1262
1262
|
Le,
|
|
1263
1263
|
Vi
|
|
1264
|
-
),
|
|
1265
|
-
we,
|
|
1266
|
-
Wi
|
|
1267
|
-
), Jr = i(De, {
|
|
1264
|
+
), Gr = i(De, {
|
|
1268
1265
|
_id: "aiChatForm__FieldCombobox__Item"
|
|
1269
|
-
}),
|
|
1266
|
+
}), Yr = i(
|
|
1270
1267
|
ke,
|
|
1271
1268
|
{ _id: "aiChatForm__FieldCombobox__ItemText" }
|
|
1272
|
-
),
|
|
1269
|
+
), Zr = i(
|
|
1273
1270
|
Be,
|
|
1274
1271
|
{ _id: "aiChatForm__FieldCombobox__ItemIndicator" }
|
|
1275
|
-
),
|
|
1272
|
+
), Jr = Se, Xr = i(
|
|
1276
1273
|
Ne,
|
|
1277
1274
|
{ _id: "aiChatForm__FieldCombobox__ListEmpty" }
|
|
1278
|
-
),
|
|
1275
|
+
), Wi = i("p", {
|
|
1279
1276
|
_id: "aiChatForm__FieldDescription"
|
|
1280
|
-
}),
|
|
1277
|
+
}), en = (t) => {
|
|
1281
1278
|
const { field: e } = A();
|
|
1282
|
-
return e.description ? /* @__PURE__ */ a(
|
|
1283
|
-
},
|
|
1279
|
+
return e.description ? /* @__PURE__ */ a(Wi, { children: e.description, ...t }) : null;
|
|
1280
|
+
}, Qi = i("span", {
|
|
1284
1281
|
_id: "aiChatForm__FieldError"
|
|
1285
|
-
}),
|
|
1282
|
+
}), tn = (t) => {
|
|
1286
1283
|
const { error: e } = A();
|
|
1287
|
-
return e ? /* @__PURE__ */ a(
|
|
1288
|
-
},
|
|
1284
|
+
return e ? /* @__PURE__ */ a(Qi, { children: e.message?.toString(), ...t }) : null;
|
|
1285
|
+
}, Ui = i("span", {
|
|
1289
1286
|
_id: "aiChatForm__Error"
|
|
1290
|
-
}),
|
|
1287
|
+
}), on = (t) => {
|
|
1291
1288
|
const { formError: e } = f();
|
|
1292
|
-
return e ? /* @__PURE__ */ a(
|
|
1293
|
-
},
|
|
1289
|
+
return e ? /* @__PURE__ */ a(Ui, { children: e.message, ...t }) : null;
|
|
1290
|
+
}, an = i("div", {
|
|
1294
1291
|
_id: "aiChatForm__Footer"
|
|
1295
|
-
}),
|
|
1292
|
+
}), $i = i("button", {
|
|
1296
1293
|
_id: "aiChatForm__Cancel",
|
|
1297
1294
|
children: "Cancel",
|
|
1298
1295
|
type: "button"
|
|
1299
|
-
}),
|
|
1296
|
+
}), rn = (t) => {
|
|
1300
1297
|
const { onClick: e, ...o } = t, { closeForm: r } = f();
|
|
1301
|
-
return /* @__PURE__ */ a(
|
|
1302
|
-
},
|
|
1298
|
+
return /* @__PURE__ */ a($i, { onClick: b(e, r), ...o });
|
|
1299
|
+
}, Ki = i("button", {
|
|
1303
1300
|
_id: "aiChatForm__Submit",
|
|
1304
1301
|
children: "Submit",
|
|
1305
1302
|
type: "submit"
|
|
1306
|
-
}),
|
|
1303
|
+
}), nn = (t) => {
|
|
1307
1304
|
const { onClick: e, ...o } = t, { isSubmitting: r, form: n } = f(), s = n?.buttons.submit.label || "Submit";
|
|
1308
|
-
return /* @__PURE__ */ a(
|
|
1309
|
-
},
|
|
1305
|
+
return /* @__PURE__ */ a(Ki, { disabled: r, ...o, children: s });
|
|
1306
|
+
}, qi = i("div", {
|
|
1310
1307
|
_id: "aiChatForm__Success"
|
|
1311
|
-
}),
|
|
1308
|
+
}), sn = (t) => {
|
|
1312
1309
|
const { isSuccess: e } = f();
|
|
1313
|
-
return e ? /* @__PURE__ */ a(
|
|
1314
|
-
},
|
|
1310
|
+
return e ? /* @__PURE__ */ a(qi, { ...t }) : null;
|
|
1311
|
+
}, ji = i("h2", {
|
|
1315
1312
|
_id: "aiChatForm__SuccessHeading"
|
|
1316
|
-
}),
|
|
1313
|
+
}), dn = (t) => {
|
|
1317
1314
|
const { form: e } = f();
|
|
1318
|
-
return /* @__PURE__ */ a(
|
|
1319
|
-
},
|
|
1315
|
+
return /* @__PURE__ */ a(ji, { children: e?.successView?.heading, ...t });
|
|
1316
|
+
}, zi = i(j, {
|
|
1320
1317
|
_id: "aiChatForm__SuccessMessage"
|
|
1321
|
-
}),
|
|
1318
|
+
}), cn = (t) => {
|
|
1322
1319
|
const { form: e } = f();
|
|
1323
1320
|
return /* @__PURE__ */ a(
|
|
1324
|
-
|
|
1321
|
+
zi,
|
|
1325
1322
|
{
|
|
1326
1323
|
shouldOpenLinksInNewTab: !0,
|
|
1327
1324
|
children: e?.successView?.message,
|
|
1328
1325
|
...t
|
|
1329
1326
|
}
|
|
1330
1327
|
);
|
|
1331
|
-
},
|
|
1328
|
+
}, Gi = i("button", {
|
|
1332
1329
|
_id: "aiChatForm__SuccessButton"
|
|
1333
|
-
}),
|
|
1330
|
+
}), mn = (t) => {
|
|
1334
1331
|
const { onClick: e, ...o } = t, { form: r, closeForm: n } = f(), s = r?.successView?.doneButton;
|
|
1335
1332
|
if (!s) return null;
|
|
1336
1333
|
const d = s.icon && /* @__PURE__ */ a(N, { iconSettings: s.icon }), c = s.label;
|
|
1337
1334
|
return /* @__PURE__ */ a(
|
|
1338
|
-
|
|
1335
|
+
Gi,
|
|
1339
1336
|
{
|
|
1340
1337
|
onClick: b(e, n),
|
|
1341
1338
|
children: /* @__PURE__ */ Z(re, { children: [
|
|
@@ -1347,305 +1344,303 @@ ${H}`;
|
|
|
1347
1344
|
);
|
|
1348
1345
|
};
|
|
1349
1346
|
export {
|
|
1350
|
-
|
|
1351
|
-
|
|
1347
|
+
qa as ActionBar,
|
|
1348
|
+
ja as Actions,
|
|
1352
1349
|
ue as ChatAction,
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1350
|
+
Za as ChatActionFeedback,
|
|
1351
|
+
si as ChatActionLabel,
|
|
1352
|
+
Xa as ChatHelpAction,
|
|
1353
|
+
qo as ChatHistoryButton,
|
|
1354
|
+
Ko as ChatHistoryButtonIcon,
|
|
1355
|
+
zo as Content,
|
|
1356
|
+
Go as ContentScrollArea,
|
|
1357
|
+
Xo as ContentScrollAreaCorner,
|
|
1358
|
+
Zo as ContentScrollAreaScrollbar,
|
|
1359
|
+
Jo as ContentScrollAreaThumb,
|
|
1360
|
+
Yo as ContentScrollAreaViewport,
|
|
1361
|
+
ta as Disclaimer,
|
|
1362
|
+
na as DisclaimerArrow,
|
|
1363
|
+
aa as DisclaimerContent,
|
|
1364
|
+
ia as DisclaimerLabel,
|
|
1365
|
+
ra as DisclaimerText,
|
|
1366
|
+
oa as DisclaimerTrigger,
|
|
1367
|
+
bn as DropZone,
|
|
1368
|
+
Ia as DynamicComponent,
|
|
1369
|
+
qa as EmbeddedChatPrimitiveActionBar,
|
|
1370
|
+
ja as EmbeddedChatPrimitiveActions,
|
|
1374
1371
|
ue as EmbeddedChatPrimitiveChatAction,
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1372
|
+
Za as EmbeddedChatPrimitiveChatActionFeedback,
|
|
1373
|
+
si as EmbeddedChatPrimitiveChatActionLabel,
|
|
1374
|
+
Xa as EmbeddedChatPrimitiveChatHelpAction,
|
|
1375
|
+
qo as EmbeddedChatPrimitiveChatHistoryButton,
|
|
1376
|
+
Ko as EmbeddedChatPrimitiveChatHistoryButtonIcon,
|
|
1377
|
+
zo as EmbeddedChatPrimitiveContent,
|
|
1378
|
+
Go as EmbeddedChatPrimitiveContentScrollArea,
|
|
1379
|
+
Xo as EmbeddedChatPrimitiveContentScrollAreaCorner,
|
|
1380
|
+
Zo as EmbeddedChatPrimitiveContentScrollAreaScrollbar,
|
|
1381
|
+
Jo as EmbeddedChatPrimitiveContentScrollAreaThumb,
|
|
1382
|
+
Yo as EmbeddedChatPrimitiveContentScrollAreaViewport,
|
|
1383
|
+
ta as EmbeddedChatPrimitiveDisclaimer,
|
|
1384
|
+
na as EmbeddedChatPrimitiveDisclaimerArrow,
|
|
1385
|
+
aa as EmbeddedChatPrimitiveDisclaimerContent,
|
|
1386
|
+
ia as EmbeddedChatPrimitiveDisclaimerLabel,
|
|
1387
|
+
ra as EmbeddedChatPrimitiveDisclaimerText,
|
|
1388
|
+
oa as EmbeddedChatPrimitiveDisclaimerTrigger,
|
|
1389
|
+
Ia as EmbeddedChatPrimitiveDynamicComponent,
|
|
1390
|
+
ma as EmbeddedChatPrimitiveExampleQuestion,
|
|
1391
|
+
la as EmbeddedChatPrimitiveExampleQuestionButton,
|
|
1392
|
+
sa as EmbeddedChatPrimitiveExampleQuestions,
|
|
1393
|
+
da as EmbeddedChatPrimitiveExampleQuestionsLabel,
|
|
1394
|
+
ca as EmbeddedChatPrimitiveExampleQuestionsList,
|
|
1395
|
+
lr as EmbeddedChatPrimitiveFeedbackForm,
|
|
1396
|
+
ur as EmbeddedChatPrimitiveFeedbackItem,
|
|
1397
|
+
hr as EmbeddedChatPrimitiveFeedbackItemCheckbox,
|
|
1398
|
+
Cr as EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator,
|
|
1399
|
+
pr as EmbeddedChatPrimitiveFeedbackItemDescription,
|
|
1400
|
+
br as EmbeddedChatPrimitiveFeedbackItemLabel,
|
|
1401
|
+
rr as EmbeddedChatPrimitiveFeedbackModal,
|
|
1402
|
+
mr as EmbeddedChatPrimitiveFeedbackModalBody,
|
|
1403
|
+
cr as EmbeddedChatPrimitiveFeedbackModalClose,
|
|
1404
|
+
sr as EmbeddedChatPrimitiveFeedbackModalContent,
|
|
1405
|
+
dr as EmbeddedChatPrimitiveFeedbackModalHeader,
|
|
1406
|
+
nr as EmbeddedChatPrimitiveFeedbackModalOverlay,
|
|
1407
|
+
vr as EmbeddedChatPrimitiveFeedbackSubmitButton,
|
|
1408
|
+
Wa as EmbeddedChatPrimitiveFooter,
|
|
1409
|
+
Fr as EmbeddedChatPrimitiveForm,
|
|
1410
|
+
rn as EmbeddedChatPrimitiveFormCancel,
|
|
1411
|
+
_r as EmbeddedChatPrimitiveFormClose,
|
|
1412
|
+
Er as EmbeddedChatPrimitiveFormContent,
|
|
1413
|
+
Ir as EmbeddedChatPrimitiveFormDescription,
|
|
1414
|
+
on as EmbeddedChatPrimitiveFormError,
|
|
1415
|
+
Sr as EmbeddedChatPrimitiveFormField,
|
|
1416
|
+
xr as EmbeddedChatPrimitiveFormFieldCheckbox,
|
|
1417
|
+
Tr as EmbeddedChatPrimitiveFormFieldCheckboxIndicator,
|
|
1418
|
+
Wr as EmbeddedChatPrimitiveFormFieldCombobox,
|
|
1419
|
+
qr as EmbeddedChatPrimitiveFormFieldComboboxContent,
|
|
1420
|
+
Qr as EmbeddedChatPrimitiveFormFieldComboboxControl,
|
|
1421
|
+
Ur as EmbeddedChatPrimitiveFormFieldComboboxInput,
|
|
1422
|
+
Gr as EmbeddedChatPrimitiveFormFieldComboboxItem,
|
|
1423
|
+
Zr as EmbeddedChatPrimitiveFormFieldComboboxItemIndicator,
|
|
1424
|
+
Yr as EmbeddedChatPrimitiveFormFieldComboboxItemText,
|
|
1425
|
+
zr as EmbeddedChatPrimitiveFormFieldComboboxList,
|
|
1426
|
+
Xr as EmbeddedChatPrimitiveFormFieldComboboxListEmpty,
|
|
1427
|
+
Jr as EmbeddedChatPrimitiveFormFieldComboboxListItems,
|
|
1428
|
+
jr as EmbeddedChatPrimitiveFormFieldComboboxPositioner,
|
|
1429
|
+
Kr as EmbeddedChatPrimitiveFormFieldComboboxSelectedTags,
|
|
1430
|
+
$r as EmbeddedChatPrimitiveFormFieldComboboxTrigger,
|
|
1431
|
+
en as EmbeddedChatPrimitiveFormFieldDescription,
|
|
1432
|
+
kr as EmbeddedChatPrimitiveFormFieldEmail,
|
|
1433
|
+
tn as EmbeddedChatPrimitiveFormFieldError,
|
|
1434
|
+
yr as EmbeddedChatPrimitiveFormFieldFile,
|
|
1435
|
+
Mr as EmbeddedChatPrimitiveFormFieldLabel,
|
|
1436
|
+
Hr as EmbeddedChatPrimitiveFormFieldSelect,
|
|
1437
|
+
Br as EmbeddedChatPrimitiveFormFieldSelectContent,
|
|
1438
|
+
Dr as EmbeddedChatPrimitiveFormFieldSelectIcon,
|
|
1439
|
+
Rr as EmbeddedChatPrimitiveFormFieldSelectItem,
|
|
1440
|
+
Vr as EmbeddedChatPrimitiveFormFieldSelectItemIndicator,
|
|
1441
|
+
Or as EmbeddedChatPrimitiveFormFieldSelectItemText,
|
|
1442
|
+
wr as EmbeddedChatPrimitiveFormFieldSelectTrigger,
|
|
1443
|
+
Lr as EmbeddedChatPrimitiveFormFieldSelectValue,
|
|
1444
|
+
Nr as EmbeddedChatPrimitiveFormFieldSelectViewport,
|
|
1448
1445
|
he as EmbeddedChatPrimitiveFormFieldText,
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
Ya as
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
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
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
Rr as
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
Nr as
|
|
1572
|
-
Vr as FormFieldSelectViewport,
|
|
1446
|
+
Ar as EmbeddedChatPrimitiveFormFieldTextArea,
|
|
1447
|
+
an as EmbeddedChatPrimitiveFormFooter,
|
|
1448
|
+
Pr as EmbeddedChatPrimitiveFormHeader,
|
|
1449
|
+
fr as EmbeddedChatPrimitiveFormHeading,
|
|
1450
|
+
nn as EmbeddedChatPrimitiveFormSubmit,
|
|
1451
|
+
sn as EmbeddedChatPrimitiveFormSuccess,
|
|
1452
|
+
mn as EmbeddedChatPrimitiveFormSuccessButton,
|
|
1453
|
+
dn as EmbeddedChatPrimitiveFormSuccessHeading,
|
|
1454
|
+
cn as EmbeddedChatPrimitiveFormSuccessMessage,
|
|
1455
|
+
gr as EmbeddedChatPrimitiveFormWrapper,
|
|
1456
|
+
Uo as EmbeddedChatPrimitiveHeaderToolbar,
|
|
1457
|
+
Ja as EmbeddedChatPrimitiveHelpActions,
|
|
1458
|
+
tr as EmbeddedChatPrimitiveHelpActionsMenu,
|
|
1459
|
+
ir as EmbeddedChatPrimitiveHelpActionsMenuArrow,
|
|
1460
|
+
or as EmbeddedChatPrimitiveHelpActionsMenuItem,
|
|
1461
|
+
ar as EmbeddedChatPrimitiveHelpActionsMenuItemIcon,
|
|
1462
|
+
er as EmbeddedChatPrimitiveHelpActionsTrigger,
|
|
1463
|
+
Ua as EmbeddedChatPrimitiveInput,
|
|
1464
|
+
Qa as EmbeddedChatPrimitiveInputGroup,
|
|
1465
|
+
ua as EmbeddedChatPrimitiveIntroMessageWrapper,
|
|
1466
|
+
fa as EmbeddedChatPrimitiveMarkdown,
|
|
1467
|
+
ya as EmbeddedChatPrimitiveMessageAction,
|
|
1468
|
+
ba as EmbeddedChatPrimitiveMessageAvatar,
|
|
1469
|
+
pa as EmbeddedChatPrimitiveMessageAvatarContent,
|
|
1470
|
+
va as EmbeddedChatPrimitiveMessageAvatarFallback,
|
|
1471
|
+
ga as EmbeddedChatPrimitiveMessageAvatarImage,
|
|
1472
|
+
Pa as EmbeddedChatPrimitiveMessageContent,
|
|
1473
|
+
_a as EmbeddedChatPrimitiveMessageContentWrapper,
|
|
1474
|
+
ka as EmbeddedChatPrimitiveMessageCustomAction,
|
|
1475
|
+
Ma as EmbeddedChatPrimitiveMessageCustomActions,
|
|
1476
|
+
ha as EmbeddedChatPrimitiveMessageHeader,
|
|
1477
|
+
Ca as EmbeddedChatPrimitiveMessageLoading,
|
|
1478
|
+
Fa as EmbeddedChatPrimitiveMessageName,
|
|
1479
|
+
Ha as EmbeddedChatPrimitiveMessageSourceItem,
|
|
1480
|
+
wa as EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,
|
|
1481
|
+
Ra as EmbeddedChatPrimitiveMessageSourceItemDescription,
|
|
1482
|
+
Oa as EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,
|
|
1483
|
+
Da as EmbeddedChatPrimitiveMessageSourceItemIcon,
|
|
1484
|
+
Va as EmbeddedChatPrimitiveMessageSourceItemIndicator,
|
|
1485
|
+
Na as EmbeddedChatPrimitiveMessageSourceItemTag,
|
|
1486
|
+
Ba as EmbeddedChatPrimitiveMessageSourceItemTitle,
|
|
1487
|
+
Aa as EmbeddedChatPrimitiveMessageSources,
|
|
1488
|
+
xa as EmbeddedChatPrimitiveMessageSourcesHeader,
|
|
1489
|
+
Ta as EmbeddedChatPrimitiveMessageSourcesList,
|
|
1490
|
+
Sa as EmbeddedChatPrimitiveMessageToolbar,
|
|
1491
|
+
Ht as EmbeddedChatPrimitiveMessageWrapper,
|
|
1492
|
+
ea as EmbeddedChatPrimitiveMessages,
|
|
1493
|
+
Wo as EmbeddedChatPrimitiveRoot,
|
|
1494
|
+
$a as EmbeddedChatPrimitiveSendButton,
|
|
1495
|
+
Ka as EmbeddedChatPrimitiveSendButtonIcon,
|
|
1496
|
+
za as EmbeddedChatPrimitiveTaglineContainer,
|
|
1497
|
+
Ya as EmbeddedChatPrimitiveTaglineLogo,
|
|
1498
|
+
Ga as EmbeddedChatPrimitiveTaglineText,
|
|
1499
|
+
jo as EmbeddedChatPrimitiveToolbarHeader,
|
|
1500
|
+
$o as EmbeddedChatPrimitiveToolbarHeaderWrapper,
|
|
1501
|
+
Vo as EmbeddedChatPrimitiveWrapper,
|
|
1502
|
+
ma as ExampleQuestion,
|
|
1503
|
+
la as ExampleQuestionButton,
|
|
1504
|
+
sa as ExampleQuestions,
|
|
1505
|
+
da as ExampleQuestionsLabel,
|
|
1506
|
+
ca as ExampleQuestionsList,
|
|
1507
|
+
lr as FeedbackForm,
|
|
1508
|
+
ur as FeedbackItem,
|
|
1509
|
+
hr as FeedbackItemCheckbox,
|
|
1510
|
+
Cr as FeedbackItemCheckboxIndicator,
|
|
1511
|
+
pr as FeedbackItemDescription,
|
|
1512
|
+
br as FeedbackItemLabel,
|
|
1513
|
+
rr as FeedbackModal,
|
|
1514
|
+
mr as FeedbackModalBody,
|
|
1515
|
+
cr as FeedbackModalClose,
|
|
1516
|
+
sr as FeedbackModalContent,
|
|
1517
|
+
dr as FeedbackModalHeader,
|
|
1518
|
+
nr as FeedbackModalOverlay,
|
|
1519
|
+
vr as FeedbackSubmitButton,
|
|
1520
|
+
pn as FileContent,
|
|
1521
|
+
vn as FileInput,
|
|
1522
|
+
gn as FileItem,
|
|
1523
|
+
Fn as FileList,
|
|
1524
|
+
_n as FileName,
|
|
1525
|
+
Pn as FilePreviewTrigger,
|
|
1526
|
+
fn as FileRemove,
|
|
1527
|
+
In as FileRemoveIcon,
|
|
1528
|
+
En as FileThumbnail,
|
|
1529
|
+
Sn as FileTypeIcon,
|
|
1530
|
+
Mn as FileUploadButton,
|
|
1531
|
+
kn as FileUploadButtonIcon,
|
|
1532
|
+
Wa as Footer,
|
|
1533
|
+
Fr as Form,
|
|
1534
|
+
rn as FormCancel,
|
|
1535
|
+
_r as FormClose,
|
|
1536
|
+
Er as FormContent,
|
|
1537
|
+
Ir as FormDescription,
|
|
1538
|
+
on as FormError,
|
|
1539
|
+
Sr as FormField,
|
|
1540
|
+
xr as FormFieldCheckbox,
|
|
1541
|
+
Tr as FormFieldCheckboxIndicator,
|
|
1542
|
+
Wr as FormFieldCombobox,
|
|
1543
|
+
qr as FormFieldComboboxContent,
|
|
1544
|
+
Qr as FormFieldComboboxControl,
|
|
1545
|
+
Ur as FormFieldComboboxInput,
|
|
1546
|
+
Gr as FormFieldComboboxItem,
|
|
1547
|
+
Zr as FormFieldComboboxItemIndicator,
|
|
1548
|
+
Yr as FormFieldComboboxItemText,
|
|
1549
|
+
zr as FormFieldComboboxList,
|
|
1550
|
+
Xr as FormFieldComboboxListEmpty,
|
|
1551
|
+
Jr as FormFieldComboboxListItems,
|
|
1552
|
+
jr as FormFieldComboboxPositioner,
|
|
1553
|
+
Kr as FormFieldComboboxSelectedTags,
|
|
1554
|
+
$r as FormFieldComboboxTrigger,
|
|
1555
|
+
en as FormFieldDescription,
|
|
1556
|
+
kr as FormFieldEmail,
|
|
1557
|
+
tn as FormFieldError,
|
|
1558
|
+
yr as FormFieldFile,
|
|
1559
|
+
Mr as FormFieldLabel,
|
|
1560
|
+
Hr as FormFieldSelect,
|
|
1561
|
+
Br as FormFieldSelectContent,
|
|
1562
|
+
Dr as FormFieldSelectIcon,
|
|
1563
|
+
Rr as FormFieldSelectItem,
|
|
1564
|
+
Vr as FormFieldSelectItemIndicator,
|
|
1565
|
+
Or as FormFieldSelectItemText,
|
|
1566
|
+
wr as FormFieldSelectTrigger,
|
|
1567
|
+
Lr as FormFieldSelectValue,
|
|
1568
|
+
Nr as FormFieldSelectViewport,
|
|
1573
1569
|
he as FormFieldText,
|
|
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
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
Ya as
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
Qo as Wrapper
|
|
1570
|
+
Ar as FormFieldTextArea,
|
|
1571
|
+
an as FormFooter,
|
|
1572
|
+
Pr as FormHeader,
|
|
1573
|
+
fr as FormHeading,
|
|
1574
|
+
nn as FormSubmit,
|
|
1575
|
+
sn as FormSuccess,
|
|
1576
|
+
mn as FormSuccessButton,
|
|
1577
|
+
dn as FormSuccessHeading,
|
|
1578
|
+
cn as FormSuccessMessage,
|
|
1579
|
+
gr as FormWrapper,
|
|
1580
|
+
Qo as Header,
|
|
1581
|
+
Uo as HeaderToolbar,
|
|
1582
|
+
$o as HeaderToolbarWrapper,
|
|
1583
|
+
Ja as HelpActions,
|
|
1584
|
+
tr as HelpActionsMenu,
|
|
1585
|
+
ir as HelpActionsMenuArrow,
|
|
1586
|
+
or as HelpActionsMenuItem,
|
|
1587
|
+
ar as HelpActionsMenuItemIcon,
|
|
1588
|
+
er as HelpActionsTrigger,
|
|
1589
|
+
Rn as ImagePreviewModal,
|
|
1590
|
+
On as ImagePreviewModalClose,
|
|
1591
|
+
Vn as ImagePreviewModalContent,
|
|
1592
|
+
Wn as ImagePreviewModalFileName,
|
|
1593
|
+
Qn as ImagePreviewModalFooter,
|
|
1594
|
+
Un as ImagePreviewModalImage,
|
|
1595
|
+
$n as ImagePreviewModalOverlay,
|
|
1596
|
+
Ua as Input,
|
|
1597
|
+
yn as InputFieldset,
|
|
1598
|
+
Qa as InputGroup,
|
|
1599
|
+
An as InputNotification,
|
|
1600
|
+
xn as InputNotificationClose,
|
|
1601
|
+
Tn as InputNotificationContent,
|
|
1602
|
+
Hn as InputNotificationHeader,
|
|
1603
|
+
wn as InputNotificationMessage,
|
|
1604
|
+
Ln as InputNotificationTitle,
|
|
1605
|
+
ua as IntroMessageWrapper,
|
|
1606
|
+
fa as Markdown,
|
|
1607
|
+
ya as MessageAction,
|
|
1608
|
+
ba as MessageAvatar,
|
|
1609
|
+
pa as MessageAvatarContent,
|
|
1610
|
+
va as MessageAvatarFallback,
|
|
1611
|
+
ga as MessageAvatarImage,
|
|
1612
|
+
Pa as MessageContent,
|
|
1613
|
+
_a as MessageContentWrapper,
|
|
1614
|
+
ka as MessageCustomAction,
|
|
1615
|
+
Ma as MessageCustomActions,
|
|
1616
|
+
Dn as MessageFile,
|
|
1617
|
+
Bn as MessageFiles,
|
|
1618
|
+
ha as MessageHeader,
|
|
1619
|
+
Ca as MessageLoading,
|
|
1620
|
+
Fa as MessageName,
|
|
1621
|
+
Ha as MessageSourceItem,
|
|
1622
|
+
La as MessageSourceItemBreadcrumbIcon,
|
|
1623
|
+
wa as MessageSourceItemBreadcrumbs,
|
|
1624
|
+
Ra as MessageSourceItemDescription,
|
|
1625
|
+
Oa as MessageSourceItemDescriptionPart,
|
|
1626
|
+
Da as MessageSourceItemIcon,
|
|
1627
|
+
Va as MessageSourceItemIndicator,
|
|
1628
|
+
Na as MessageSourceItemTag,
|
|
1629
|
+
Ba as MessageSourceItemTitle,
|
|
1630
|
+
Aa as MessageSources,
|
|
1631
|
+
xa as MessageSourcesHeader,
|
|
1632
|
+
Ta as MessageSourcesList,
|
|
1633
|
+
Sa as MessageToolbar,
|
|
1634
|
+
Ht as MessageWrapper,
|
|
1635
|
+
ea as Messages,
|
|
1636
|
+
Ea as PrimitiveMessagePart,
|
|
1637
|
+
hn as Provider,
|
|
1638
|
+
Wo as Root,
|
|
1639
|
+
$a as SendButton,
|
|
1640
|
+
Ka as SendButtonIcon,
|
|
1641
|
+
za as TaglineContainer,
|
|
1642
|
+
Ya as TaglineLogo,
|
|
1643
|
+
Ga as TaglineText,
|
|
1644
|
+
jo as ToolbarHeader,
|
|
1645
|
+
Vo as Wrapper
|
|
1651
1646
|
};
|