@inkeep/agents-ui 0.0.0-dev-20260401193828 → 0.0.0-dev-20260402200940
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/index.cjs +1 -1
- package/dist/index.js +78 -77
- package/dist/primitives/atoms/dialog.cjs +1 -1
- package/dist/primitives/atoms/dialog.js +110 -106
- package/dist/primitives/atoms/file-upload.cjs +1 -0
- package/dist/primitives/atoms/file-upload.d.ts +35 -0
- package/dist/primitives/atoms/file-upload.js +45 -0
- package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/built-in-icons.d.ts +8 -1
- package/dist/primitives/atoms/icons/built-in-icons.js +86 -79
- package/dist/primitives/atoms/icons/collections/pi.cjs +1 -1
- package/dist/primitives/atoms/icons/collections/pi.d.ts +6 -0
- package/dist/primitives/atoms/icons/collections/pi.js +103 -13
- package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +9 -1
- package/dist/primitives/components/embedded-chat/file-upload-input.cjs +1 -0
- package/dist/primitives/components/embedded-chat/file-upload-input.d.ts +68 -0
- package/dist/primitives/components/embedded-chat/file-upload-input.js +328 -0
- package/dist/primitives/components/embedded-chat/image-preview-modal.cjs +1 -0
- package/dist/primitives/components/embedded-chat/image-preview-modal.d.ts +15 -0
- package/dist/primitives/components/embedded-chat/image-preview-modal.js +71 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +6 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +282 -237
- package/dist/primitives/components/embedded-chat.cjs +5 -5
- package/dist/primitives/components/embedded-chat.d.ts +6 -5
- package/dist/primitives/components/embedded-chat.js +934 -907
- package/dist/primitives/components/embedded-search.d.ts +1 -1
- package/dist/primitives/hooks/index.cjs +1 -1
- package/dist/primitives/hooks/index.js +15 -14
- package/dist/primitives/hooks/use-input-notification.cjs +1 -0
- package/dist/primitives/hooks/use-input-notification.d.ts +9 -0
- package/dist/primitives/hooks/use-input-notification.js +18 -0
- package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -1
- package/dist/primitives/hooks/use-scrolling-fades.d.ts +1 -0
- package/dist/primitives/hooks/use-scrolling-fades.js +21 -5
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +69 -68
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/primitives/providers/image-preview-provider.cjs +1 -0
- package/dist/primitives/providers/image-preview-provider.d.ts +15 -0
- package/dist/primitives/providers/image-preview-provider.js +23 -0
- package/dist/primitives/utils/component-ids.cjs +1 -1
- package/dist/primitives/utils/component-ids.d.ts +54 -0
- package/dist/primitives/utils/component-ids.js +37 -10
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +305 -260
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +78 -77
- package/dist/styled/components/chat-history.cjs +1 -1
- package/dist/styled/components/chat-history.d.ts +1 -1
- package/dist/styled/components/chat-history.js +31 -29
- package/dist/styled/components/embedded-chat/file-upload-input.cjs +1 -0
- package/dist/styled/components/embedded-chat/file-upload-input.d.ts +20 -0
- package/dist/styled/components/embedded-chat/file-upload-input.js +300 -0
- package/dist/styled/components/embedded-chat/image-preview-modal.cjs +1 -0
- package/dist/styled/components/embedded-chat/image-preview-modal.d.ts +11 -0
- package/dist/styled/components/embedded-chat/image-preview-modal.js +77 -0
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.d.ts +2 -0
- package/dist/styled/components/embedded-chat.js +479 -449
- package/dist/styled/components/message.cjs +1 -1
- package/dist/styled/components/message.js +89 -88
- package/dist/styled/index.cjs +1 -1
- package/dist/styled/index.js +77 -76
- package/dist/styled/inkeep.css.cjs +253 -7
- package/dist/styled/inkeep.css.js +253 -7
- package/dist/types/icons/built-in.d.ts +1 -1
- package/dist/types/icons/custom.d.ts +8 -0
- package/package.json +7 -6
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
2
|
+
import { jsx as o, jsxs as j, Fragment as te } from "react/jsx-runtime";
|
|
3
|
+
import X, { memo as S, forwardRef as Q, useRef as O, useState as q, useMemo as be, useEffect as U, useLayoutEffect as Ie } from "react";
|
|
4
|
+
import * as fe from "react-dom/client";
|
|
5
5
|
import ie from "react-textarea-autosize";
|
|
6
6
|
import * as ae from "@radix-ui/react-avatar";
|
|
7
7
|
import * as z from "@radix-ui/react-checkbox";
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
8
|
+
import * as N from "@radix-ui/react-popover";
|
|
9
|
+
import * as R from "@radix-ui/react-tooltip";
|
|
10
10
|
import * as K from "@radix-ui/react-scroll-area";
|
|
11
11
|
import { ItemText as Me, Trigger as Ee, Icon as Se, Content as ke, Viewport as Be, Item as ye, ItemIndicator as Te, Root as xe, Value as we } from "../atoms/select.js";
|
|
12
|
-
import { ComboboxListItems as He, ComboboxRoot as Le, ComboboxItemText as De, ComboboxControl as Oe, ComboboxInput as
|
|
13
|
-
import { Overlay as
|
|
12
|
+
import { ComboboxListItems as He, ComboboxRoot as Le, ComboboxItemText as De, ComboboxControl as Oe, ComboboxInput as Ne, ComboboxTrigger as Re, ComboboxSelectedTags as We, ComboboxContent as Ve, ComboboxPositioner as Ue, ComboboxList as $e, ComboboxItem as Qe, ComboboxItemIndicator as Ke, ComboboxListEmpty as qe } from "../atoms/combobox.js";
|
|
13
|
+
import { Overlay as oe, Content as ne, Close as re, Title as se, Root as ce } from "../atoms/dialog.js";
|
|
14
14
|
import je from "../atoms/avatars/ai.js";
|
|
15
15
|
import ze from "../atoms/avatars/user.js";
|
|
16
16
|
import { CustomIcon as E } from "../atoms/icons/custom-icon.js";
|
|
@@ -19,23 +19,23 @@ import { LinkWithQueryParams as Ge } from "../atoms/link.js";
|
|
|
19
19
|
import { Markdown as G } from "../atoms/markdown/index.js";
|
|
20
20
|
import { AttachmentItemProvider as pe, useAttachmentItem as Y } from "../providers/attachment-item-provider.js";
|
|
21
21
|
import { useAttachmentsBar as k, AttachmentsBarProvider as Ye } from "../providers/attachments-bar-provider.js";
|
|
22
|
-
import { SourceItemProvider as
|
|
22
|
+
import { SourceItemProvider as Ze, useSourceItem as W } from "../providers/source-item-provider.js";
|
|
23
23
|
import { useInkeepConfig as p } from "../providers/config-provider.js";
|
|
24
24
|
import { useMessageFeedback as de } from "../providers/feedback-provider.js";
|
|
25
|
-
import { MessageAttachmentsProvider as
|
|
26
|
-
import { useMessage as P, MessageProvider as
|
|
25
|
+
import { MessageAttachmentsProvider as Je, useMessageAttachments as Z } from "../providers/message-attachments-provider.js";
|
|
26
|
+
import { useMessage as P, MessageProvider as Xe } from "../providers/message-provider.js";
|
|
27
27
|
import { CheckboxIcon as ve } from "../atoms/icons/checkbox-icon.js";
|
|
28
28
|
import { useCopyToClipboard as ee } from "../hooks/use-copy-to-clipboard.js";
|
|
29
29
|
import { FeedbackItemProvider as et, useFeedbackItem as me } from "../providers/feedback-item-provider.js";
|
|
30
|
-
import { maybeRender as B, dataAttr as v, getInitials as tt, getMessageContent as
|
|
30
|
+
import { maybeRender as B, dataAttr as v, getInitials as tt, getMessageContent as ge } from "../utils/misc.js";
|
|
31
31
|
import { ikp as i } from "./factory.js";
|
|
32
|
-
import { useChat as
|
|
33
|
-
import { ChatProvider as
|
|
32
|
+
import { useChat as _ } from "./embedded-chat/chat-provider.js";
|
|
33
|
+
import { ChatProvider as Gs } from "./embedded-chat/chat-provider.js";
|
|
34
34
|
import it from "./tagline-logo-icon.js";
|
|
35
35
|
import { useSettleAction as at } from "../hooks/use-settle-action.js";
|
|
36
|
-
import { useContainerSize as
|
|
36
|
+
import { useContainerSize as ot } from "../hooks/use-container-size.js";
|
|
37
37
|
import { useChatAction as le } from "./embedded-chat/use-chat-action.js";
|
|
38
|
-
import { useHelpMenuState as
|
|
38
|
+
import { useHelpMenuState as nt, HelpMenuProvider as rt, useHelpMenu as st } from "../providers/help-menu-provider.js";
|
|
39
39
|
import { useChatForm as A } from "../providers/chat-form-provider.js";
|
|
40
40
|
import { useFormField as w, FormFieldProvider as ct } from "../providers/form-field-provider.js";
|
|
41
41
|
import { Controller as dt } from "react-hook-form";
|
|
@@ -46,28 +46,30 @@ import { useComposedRefs as he } from "../utils/compose-refs.js";
|
|
|
46
46
|
import { composeEventHandlers as h } from "../utils/compose-event-handlers.js";
|
|
47
47
|
import { useSimpleScroll as ut } from "../hooks/use-simple-scroll.js";
|
|
48
48
|
import { useDebounce as Ct } from "../hooks/use-debounce.js";
|
|
49
|
-
import { HoverPopoverProvider as bt, useHoverPopover as
|
|
49
|
+
import { HoverPopoverProvider as bt, useHoverPopover as _e } from "../providers/hover-popover-provider.js";
|
|
50
50
|
import { useWidgetAutoFocus as pt } from "./modal/widget-auto-focus.js";
|
|
51
51
|
import { useBaseEvents as ue } from "../providers/base-events-provider.js";
|
|
52
52
|
import { useShadow as vt } from "../atoms/shadow/context.js";
|
|
53
|
-
import { getIcon as
|
|
54
|
-
import { ChatHistoryProvider as
|
|
53
|
+
import { getIcon as gt } from "../utils/get-source-icon.js";
|
|
54
|
+
import { ChatHistoryProvider as _t } from "../providers/chat-history-provider.js";
|
|
55
|
+
import { EmbeddedChatPrimitiveDropZone as Zs, EmbeddedChatPrimitiveFileContent as Js, EmbeddedChatPrimitiveFileInput as Xs, EmbeddedChatPrimitiveFileItem as ec, EmbeddedChatPrimitiveFileList as tc, EmbeddedChatPrimitiveFileName as ic, EmbeddedChatPrimitiveFilePreviewTrigger as ac, EmbeddedChatPrimitiveFileRemove as oc, EmbeddedChatPrimitiveFileRemoveIcon as nc, EmbeddedChatPrimitiveFileThumbnail as rc, EmbeddedChatPrimitiveFileTypeIcon as sc, EmbeddedChatPrimitiveFileUploadButton as cc, EmbeddedChatPrimitiveFileUploadButtonIcon as dc, EmbeddedChatPrimitiveInputFieldset as mc, EmbeddedChatPrimitiveInputNotification as lc, EmbeddedChatPrimitiveInputNotificationClose as hc, EmbeddedChatPrimitiveInputNotificationContent as uc, EmbeddedChatPrimitiveInputNotificationHeader as Cc, EmbeddedChatPrimitiveInputNotificationMessage as bc, EmbeddedChatPrimitiveInputNotificationTitle as pc, EmbeddedChatPrimitiveMessageFile as vc, EmbeddedChatPrimitiveMessageFiles as gc } from "./embedded-chat/file-upload-input.js";
|
|
56
|
+
import { EmbeddedChatPrimitiveImagePreviewModal as Fc, EmbeddedChatPrimitiveImagePreviewModalClose as Pc, EmbeddedChatPrimitiveImagePreviewModalContent as Ac, EmbeddedChatPrimitiveImagePreviewModalFileName as Ic, EmbeddedChatPrimitiveImagePreviewModalFooter as fc, EmbeddedChatPrimitiveImagePreviewModalImage as Mc, EmbeddedChatPrimitiveImagePreviewModalOverlay as Ec } from "./embedded-chat/image-preview-modal.js";
|
|
55
57
|
const Ft = "__intro__", Pt = 767, At = i("div", {
|
|
56
58
|
_id: "aiChatWrapper"
|
|
57
|
-
}), Fe =
|
|
59
|
+
}), Fe = Q(
|
|
58
60
|
({
|
|
59
61
|
chatHistoryLayout: t,
|
|
60
62
|
isChatHistoryOpen: e,
|
|
61
63
|
setChatHistoryOpen: a,
|
|
62
|
-
isChatHistoryButtonVisible:
|
|
64
|
+
isChatHistoryButtonVisible: n,
|
|
63
65
|
children: r,
|
|
64
66
|
...s
|
|
65
67
|
}, c) => {
|
|
66
|
-
|
|
67
|
-
t === "stack" ? a(!1) : t === "sidepane" &&
|
|
68
|
-
}, [t,
|
|
68
|
+
U(() => {
|
|
69
|
+
t === "stack" ? a(!1) : t === "sidepane" && n && a(!0);
|
|
70
|
+
}, [t, n, a]);
|
|
69
71
|
const d = t === "stack" && e;
|
|
70
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ o(
|
|
71
73
|
At,
|
|
72
74
|
{
|
|
73
75
|
ref: c,
|
|
@@ -81,59 +83,59 @@ const Ft = "__intro__", Pt = 767, At = i("div", {
|
|
|
81
83
|
}
|
|
82
84
|
);
|
|
83
85
|
Fe.displayName = "EmbeddedChatWrapperInner";
|
|
84
|
-
const
|
|
85
|
-
const { children: a, ...
|
|
86
|
-
return /* @__PURE__ */
|
|
86
|
+
const Bo = Q((t, e) => {
|
|
87
|
+
const { children: a, ...n } = t, { isHidden: r, isMobile: s } = _(), { aiChatSettings: c } = p(), { isChatHistoryButtonVisible: d } = c, [m, l] = ot(), u = he(e, m), b = l?.width ? l.width > 580 : !0, C = lt(), g = (l?.width ?? 0) > Pt ? "sidepane" : "stack";
|
|
88
|
+
return /* @__PURE__ */ o(_t, { layout: g, children: ({ isOpen: I, setIsOpen: f }) => /* @__PURE__ */ o(
|
|
87
89
|
Fe,
|
|
88
90
|
{
|
|
89
91
|
ref: u,
|
|
90
|
-
chatHistoryLayout:
|
|
91
|
-
isChatHistoryOpen:
|
|
92
|
-
setChatHistoryOpen:
|
|
92
|
+
chatHistoryLayout: g,
|
|
93
|
+
isChatHistoryOpen: I,
|
|
94
|
+
setChatHistoryOpen: f,
|
|
93
95
|
isChatHistoryButtonVisible: !!d,
|
|
94
96
|
"data-widget-md": v(b),
|
|
95
97
|
"data-hidden": v(r),
|
|
96
98
|
"data-in-modal": v(!!C),
|
|
97
99
|
"data-mobile": v(s),
|
|
98
|
-
...
|
|
100
|
+
...n,
|
|
99
101
|
children: a
|
|
100
102
|
}
|
|
101
103
|
) });
|
|
102
|
-
}),
|
|
104
|
+
}), It = i("div", {
|
|
103
105
|
_id: "aiChatRoot"
|
|
104
|
-
}),
|
|
105
|
-
const { isHidden: e } =
|
|
106
|
-
return a ? null : /* @__PURE__ */
|
|
107
|
-
},
|
|
106
|
+
}), yo = (t) => {
|
|
107
|
+
const { isHidden: e } = _(), { form: a } = A();
|
|
108
|
+
return a ? null : /* @__PURE__ */ o(It, { "data-hidden": v(e), ...t });
|
|
109
|
+
}, To = i("div", {
|
|
108
110
|
_id: "aiChatHeader"
|
|
109
|
-
}),
|
|
111
|
+
}), xo = i("div", {
|
|
110
112
|
_id: "aiChatHeader__Toolbar"
|
|
111
|
-
}),
|
|
113
|
+
}), wo = i("div", {
|
|
112
114
|
_id: "aiChatHeader__ToolbarHeaderWrapper"
|
|
113
|
-
}),
|
|
115
|
+
}), ft = i(E, {
|
|
114
116
|
_id: "aiChatHeader__ChatHistoryButtonIcon"
|
|
115
|
-
}),
|
|
116
|
-
(t) => /* @__PURE__ */
|
|
117
|
-
),
|
|
117
|
+
}), Ho = S(
|
|
118
|
+
(t) => /* @__PURE__ */ o(ft, { ...t })
|
|
119
|
+
), Lo = i("button", {
|
|
118
120
|
_id: "aiChatHeader__ChatHistoryButton"
|
|
119
121
|
}), Mt = i("div", {
|
|
120
122
|
_id: "aiChatHeader__ToolbarHeader"
|
|
121
|
-
}),
|
|
123
|
+
}), Do = S(
|
|
122
124
|
(t) => {
|
|
123
125
|
const { aiChatSettings: e } = p(), a = `Ask ${e.aiAssistantName || "AI"}`;
|
|
124
|
-
return /* @__PURE__ */
|
|
126
|
+
return /* @__PURE__ */ o(Mt, { ...t, children: a });
|
|
125
127
|
}
|
|
126
|
-
),
|
|
128
|
+
), Oo = i("div", {
|
|
127
129
|
_id: "aiChatContent"
|
|
128
|
-
}),
|
|
130
|
+
}), No = i(K.Root, {
|
|
129
131
|
_id: "aiChatContentScrollArea"
|
|
130
132
|
}), Et = i(K.Viewport, {
|
|
131
133
|
_id: "aiChatContentScrollArea__Viewport"
|
|
132
|
-
}),
|
|
133
|
-
const { messages:
|
|
134
|
-
return
|
|
135
|
-
|
|
136
|
-
}, [
|
|
134
|
+
}), Ro = Q(({ children: t, ...e }, a) => {
|
|
135
|
+
const { messages: n, isStreaming: r } = _(), { containerRef: s, scrollToBottom: c, handleScroll: d } = ut({ isStreaming: r }), m = he(a, s);
|
|
136
|
+
return U(() => {
|
|
137
|
+
n.length > 0 && !r && c();
|
|
138
|
+
}, [n.length, c, r]), /* @__PURE__ */ o(
|
|
137
139
|
Et,
|
|
138
140
|
{
|
|
139
141
|
ref: m,
|
|
@@ -142,49 +144,49 @@ const Bn = U((t, e) => {
|
|
|
142
144
|
style: { outline: "none" },
|
|
143
145
|
children: (
|
|
144
146
|
/* added this to fix an overflow issue see https://github.com/radix-ui/primitives/issues/926 */
|
|
145
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ o("div", { "data-part": "grid", tabIndex: -1, style: { display: "grid", outline: "none" }, children: t })
|
|
146
148
|
),
|
|
147
149
|
...e
|
|
148
150
|
}
|
|
149
151
|
);
|
|
150
|
-
}),
|
|
152
|
+
}), Wo = i(
|
|
151
153
|
K.ScrollAreaScrollbar,
|
|
152
154
|
{
|
|
153
155
|
_id: "aiChatContentScrollArea__Scrollbar"
|
|
154
156
|
}
|
|
155
|
-
),
|
|
157
|
+
), Vo = i(
|
|
156
158
|
K.ScrollAreaThumb,
|
|
157
159
|
{
|
|
158
160
|
_id: "aiChatContentScrollArea__Thumb"
|
|
159
161
|
}
|
|
160
|
-
),
|
|
162
|
+
), Uo = i(K.Corner, {
|
|
161
163
|
_id: "aiChatContentScrollArea__Corner"
|
|
162
164
|
}), St = i("div", {
|
|
163
165
|
_id: "aiChatMessages"
|
|
164
|
-
}),
|
|
165
|
-
const e =
|
|
166
|
-
return /* @__PURE__ */
|
|
166
|
+
}), $o = (t) => {
|
|
167
|
+
const e = _(), { children: a, ...n } = t;
|
|
168
|
+
return /* @__PURE__ */ o(St, { children: B(a, e), ...n });
|
|
167
169
|
}, kt = i("div", {
|
|
168
170
|
_id: "aiChatDisclaimer"
|
|
169
|
-
}),
|
|
171
|
+
}), Qo = S(
|
|
170
172
|
(t) => {
|
|
171
|
-
const { aiChatSettings: e } = p(), [a,
|
|
172
|
-
return e.disclaimerSettings?.isEnabled ? /* @__PURE__ */
|
|
173
|
+
const { aiChatSettings: e } = p(), [a, n] = q(!1), r = Ct(a, 100);
|
|
174
|
+
return e.disclaimerSettings?.isEnabled ? /* @__PURE__ */ o(bt, { open: a, setOpen: n, children: /* @__PURE__ */ o(N.Root, { open: r, onOpenChange: n, children: /* @__PURE__ */ o(kt, { ...t }) }) }) : null;
|
|
173
175
|
}
|
|
174
176
|
), Bt = i("span", {
|
|
175
177
|
_id: "aiChatDisclaimerLabel"
|
|
176
|
-
}),
|
|
178
|
+
}), Ko = S(
|
|
177
179
|
(t) => {
|
|
178
180
|
const { aiChatSettings: e } = p(), a = e.disclaimerSettings;
|
|
179
|
-
return /* @__PURE__ */
|
|
181
|
+
return /* @__PURE__ */ o(Bt, { children: a?.label, ...t });
|
|
180
182
|
}
|
|
181
|
-
), yt = i(
|
|
183
|
+
), yt = i(N.Trigger, {
|
|
182
184
|
_id: "aiChatDisclaimerTrigger",
|
|
183
|
-
children: /* @__PURE__ */
|
|
184
|
-
}),
|
|
185
|
+
children: /* @__PURE__ */ o(E, { iconKey: "info" })
|
|
186
|
+
}), qo = S(
|
|
185
187
|
(t) => {
|
|
186
|
-
const { setOpen: e } =
|
|
187
|
-
return /* @__PURE__ */
|
|
188
|
+
const { setOpen: e } = _e();
|
|
189
|
+
return /* @__PURE__ */ o(
|
|
188
190
|
yt,
|
|
189
191
|
{
|
|
190
192
|
onMouseEnter: () => e(!0),
|
|
@@ -193,11 +195,11 @@ const Bn = U((t, e) => {
|
|
|
193
195
|
}
|
|
194
196
|
);
|
|
195
197
|
}
|
|
196
|
-
), Tt = i(
|
|
198
|
+
), Tt = i(N.Content, {
|
|
197
199
|
_id: "aiChatDisclaimerContent"
|
|
198
|
-
}),
|
|
199
|
-
const { setOpen: e } =
|
|
200
|
-
return /* @__PURE__ */
|
|
200
|
+
}), jo = (t) => {
|
|
201
|
+
const { setOpen: e } = _e();
|
|
202
|
+
return /* @__PURE__ */ o(
|
|
201
203
|
Tt,
|
|
202
204
|
{
|
|
203
205
|
onMouseEnter: () => e(!0),
|
|
@@ -211,116 +213,116 @@ const Bn = U((t, e) => {
|
|
|
211
213
|
);
|
|
212
214
|
}, xt = i(G, {
|
|
213
215
|
_id: "aiChatDisclaimerText"
|
|
214
|
-
}),
|
|
216
|
+
}), zo = S(
|
|
215
217
|
(t) => {
|
|
216
218
|
const { aiChatSettings: e } = p(), a = e.aiAssistantName, r = e.disclaimerSettings?.tooltip || `Information provided by ${a || "this AI assistant"} is not guaranteed to be accurate or comprehensive.`;
|
|
217
|
-
return /* @__PURE__ */
|
|
219
|
+
return /* @__PURE__ */ o(xt, { shouldOpenLinksInNewTab: !0, children: r, ...t });
|
|
218
220
|
}
|
|
219
|
-
),
|
|
221
|
+
), Go = i(N.Arrow, {
|
|
220
222
|
_id: "aiChatDisclaimerArrow"
|
|
221
223
|
}), wt = i("div", {
|
|
222
224
|
_id: "aiChatExampleQuestions"
|
|
223
|
-
}),
|
|
224
|
-
const { aiChatSettings: e } = p(), { messages: a } =
|
|
225
|
-
return !e.exampleQuestions?.length || a.length ? null : /* @__PURE__ */
|
|
225
|
+
}), Yo = (t) => {
|
|
226
|
+
const { aiChatSettings: e } = p(), { messages: a } = _();
|
|
227
|
+
return !e.exampleQuestions?.length || a.length ? null : /* @__PURE__ */ o(wt, { ...t });
|
|
226
228
|
}, Ht = i("h3", {
|
|
227
229
|
_id: "aiChatExampleQuestionsLabel"
|
|
228
|
-
}),
|
|
230
|
+
}), Zo = S(
|
|
229
231
|
(t) => {
|
|
230
232
|
const { aiChatSettings: e } = p();
|
|
231
|
-
return /* @__PURE__ */
|
|
233
|
+
return /* @__PURE__ */ o(Ht, { children: e.exampleQuestionsLabel, ...t });
|
|
232
234
|
}
|
|
233
235
|
), Lt = i("div", {
|
|
234
236
|
_id: "aiChatExampleQuestionsList"
|
|
235
|
-
}),
|
|
237
|
+
}), Jo = S(
|
|
236
238
|
(t) => {
|
|
237
|
-
const { aiChatSettings: e } = p(), a = e.exampleQuestions, { children:
|
|
238
|
-
return /* @__PURE__ */
|
|
239
|
+
const { aiChatSettings: e } = p(), a = e.exampleQuestions, { children: n, ...r } = t;
|
|
240
|
+
return /* @__PURE__ */ o(Lt, { children: B(n, a), ...r });
|
|
239
241
|
}
|
|
240
242
|
), Dt = i("div", {
|
|
241
243
|
_id: "aiChatExampleQuestion"
|
|
242
|
-
}),
|
|
243
|
-
const { aiChatSettings: a } = p(),
|
|
244
|
-
return /* @__PURE__ */
|
|
244
|
+
}), Xo = Q((t, e) => {
|
|
245
|
+
const { aiChatSettings: a } = p(), n = a.isFirstExampleQuestionHighlighted;
|
|
246
|
+
return /* @__PURE__ */ o(Dt, { ref: e, "data-highlight": v(n), ...t });
|
|
245
247
|
}), Ot = i("button", {
|
|
246
248
|
_id: "aiChatExampleQuestionButton"
|
|
247
|
-
}),
|
|
248
|
-
const { question: e, onClick: a, ...
|
|
249
|
-
return /* @__PURE__ */
|
|
249
|
+
}), en = (t) => {
|
|
250
|
+
const { question: e, onClick: a, ...n } = t, r = typeof e == "object" ? e.value : e, s = typeof e == "object" ? e.label : e, { handleSubmit: c } = _();
|
|
251
|
+
return /* @__PURE__ */ o(
|
|
250
252
|
Ot,
|
|
251
253
|
{
|
|
252
254
|
onClick: h(a, () => c(r)),
|
|
253
255
|
children: s,
|
|
254
|
-
...
|
|
256
|
+
...n
|
|
255
257
|
}
|
|
256
258
|
);
|
|
257
|
-
},
|
|
259
|
+
}, Nt = i("div", {
|
|
258
260
|
_id: "aiChatWorkflows"
|
|
259
|
-
}),
|
|
260
|
-
const { aiChatSettings: e } = p(), { messages: a } =
|
|
261
|
-
return !e.workflows?.length || a.length ? null : /* @__PURE__ */
|
|
262
|
-
},
|
|
261
|
+
}), tn = (t) => {
|
|
262
|
+
const { aiChatSettings: e } = p(), { messages: a } = _();
|
|
263
|
+
return !e.workflows?.length || a.length ? null : /* @__PURE__ */ o(Nt, { ...t });
|
|
264
|
+
}, Rt = i("h3", {
|
|
263
265
|
_id: "aiChatWorkflowsLabel"
|
|
264
|
-
}),
|
|
266
|
+
}), an = S((t) => {
|
|
265
267
|
const { aiChatSettings: e } = p();
|
|
266
|
-
return /* @__PURE__ */
|
|
267
|
-
}),
|
|
268
|
+
return /* @__PURE__ */ o(Rt, { children: e.workflowsHeader, ...t });
|
|
269
|
+
}), Wt = i("div", {
|
|
268
270
|
_id: "aiChatWorkflowsList"
|
|
269
|
-
}),
|
|
271
|
+
}), on = S(
|
|
270
272
|
(t) => {
|
|
271
|
-
const { aiChatSettings: e } = p(), a = e.workflows, { children:
|
|
272
|
-
return /* @__PURE__ */
|
|
273
|
+
const { aiChatSettings: e } = p(), a = e.workflows, { children: n, ...r } = t;
|
|
274
|
+
return /* @__PURE__ */ o(Wt, { children: B(n, a), ...r });
|
|
273
275
|
}
|
|
274
276
|
), Vt = i("button", {
|
|
275
277
|
_id: "aiChatWorkflow"
|
|
276
|
-
}),
|
|
277
|
-
const { workflow: e, onClick: a, ...
|
|
278
|
+
}), nn = (t) => {
|
|
279
|
+
const { workflow: e, onClick: a, ...n } = t, r = (s) => {
|
|
278
280
|
};
|
|
279
|
-
return /* @__PURE__ */
|
|
281
|
+
return /* @__PURE__ */ o(
|
|
280
282
|
Vt,
|
|
281
283
|
{
|
|
282
284
|
onClick: h(a, () => r()),
|
|
283
285
|
children: e.displayName,
|
|
284
|
-
...
|
|
286
|
+
...n
|
|
285
287
|
}
|
|
286
288
|
);
|
|
287
|
-
},
|
|
289
|
+
}, Ut = i("div", {
|
|
288
290
|
_id: "aiChatMessageWrapper"
|
|
289
|
-
}),
|
|
291
|
+
}), $t = (t) => {
|
|
290
292
|
const { message: e, ...a } = t;
|
|
291
|
-
return e.role === "system" ? null : /* @__PURE__ */
|
|
292
|
-
},
|
|
293
|
+
return e.role === "system" ? null : /* @__PURE__ */ o(Xe, { message: e, children: /* @__PURE__ */ o(Ut, { "data-role": e.role, ...a }) });
|
|
294
|
+
}, rn = S(
|
|
293
295
|
(t) => {
|
|
294
|
-
const { message: e, ...a } = t, { aiChatSettings:
|
|
296
|
+
const { message: e, ...a } = t, { aiChatSettings: n, baseSettings: r } = p(), s = n.aiAssistantName, c = s ? `Hi, I'm ${s}!` : "Hi!", d = n.chatSubjectName ?? r.organizationDisplayName, m = d ? `
|
|
295
297
|
|
|
296
298
|
Ask me anything about \`${d}\`.` : `
|
|
297
299
|
|
|
298
300
|
How can I help?`, u = {
|
|
299
|
-
parts: [{ type: "text", text:
|
|
301
|
+
parts: [{ type: "text", text: n.introMessage ?? `${c}${m}` }],
|
|
300
302
|
id: Ft,
|
|
301
303
|
...e,
|
|
302
304
|
role: "assistant"
|
|
303
305
|
};
|
|
304
|
-
return /* @__PURE__ */
|
|
306
|
+
return /* @__PURE__ */ o($t, { message: u, ...a });
|
|
305
307
|
}
|
|
306
|
-
),
|
|
308
|
+
), Qt = i("div", {
|
|
307
309
|
_id: "aiChatMessageHeader"
|
|
308
|
-
}),
|
|
310
|
+
}), sn = (t) => {
|
|
309
311
|
const { message: e } = P();
|
|
310
|
-
return /* @__PURE__ */
|
|
312
|
+
return /* @__PURE__ */ o(Qt, { "data-role": e.role, ...t });
|
|
311
313
|
}, Kt = i("div", {
|
|
312
314
|
_id: "aiChatMessageLoading",
|
|
313
315
|
children: "Thinking..."
|
|
314
|
-
}),
|
|
316
|
+
}), cn = (t) => /* @__PURE__ */ o(Kt, { ...t }), qt = i("div", {
|
|
315
317
|
_id: "aiChatMessageAvatar"
|
|
316
|
-
}),
|
|
318
|
+
}), dn = (t) => {
|
|
317
319
|
const { message: e } = P();
|
|
318
|
-
return /* @__PURE__ */
|
|
320
|
+
return /* @__PURE__ */ o(qt, { "data-role": e.role, ...t });
|
|
319
321
|
}, jt = i(ae.Root, {
|
|
320
322
|
_id: "aiChatMessageAvatarContent"
|
|
321
|
-
}),
|
|
323
|
+
}), mn = (t) => {
|
|
322
324
|
const { message: e } = P(), { baseSettings: a } = p();
|
|
323
|
-
return /* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ o(
|
|
324
326
|
jt,
|
|
325
327
|
{
|
|
326
328
|
"data-username": v(e.role === "user" && !!a.userProperties.name),
|
|
@@ -330,10 +332,10 @@ const Bn = U((t, e) => {
|
|
|
330
332
|
);
|
|
331
333
|
}, zt = i(ae.Fallback, {
|
|
332
334
|
_id: "aiChatMessageAvatarFallback"
|
|
333
|
-
}),
|
|
335
|
+
}), ln = S(
|
|
334
336
|
(t) => {
|
|
335
337
|
const { baseSettings: e } = p(), { message: a } = P();
|
|
336
|
-
return e.userProperties.name ? /* @__PURE__ */
|
|
338
|
+
return e.userProperties.name ? /* @__PURE__ */ o(
|
|
337
339
|
zt,
|
|
338
340
|
{
|
|
339
341
|
"data-role": a.role,
|
|
@@ -344,35 +346,35 @@ const Bn = U((t, e) => {
|
|
|
344
346
|
}
|
|
345
347
|
), Ce = i(ae.Image, {
|
|
346
348
|
_id: "aiChatMessageAvatarImage"
|
|
347
|
-
}),
|
|
349
|
+
}), hn = S(
|
|
348
350
|
(t) => {
|
|
349
351
|
const { onLoadingStatusChange: e, ...a } = t, {
|
|
350
|
-
aiChatSettings:
|
|
352
|
+
aiChatSettings: n,
|
|
351
353
|
baseSettings: { userProperties: r }
|
|
352
|
-
} = p(), { message: s } = P(), { aiAssistantAvatar: c } =
|
|
353
|
-
|
|
354
|
+
} = p(), { message: s } = P(), { aiAssistantAvatar: c } = n ?? {}, d = typeof c == "string" ? c : c?.light, m = (typeof c == "string" ? c : c?.dark) ?? d, l = ht(d, m), [u, b] = q(l);
|
|
355
|
+
U(() => {
|
|
354
356
|
b(l);
|
|
355
357
|
}, [l]);
|
|
356
|
-
const C = (
|
|
357
|
-
|
|
358
|
+
const C = (g) => {
|
|
359
|
+
g === "error" && b(null);
|
|
358
360
|
};
|
|
359
|
-
return s.role === "user" ? r.name ? null :
|
|
361
|
+
return s.role === "user" ? r.name ? null : n.userAvatar ? /* @__PURE__ */ o(
|
|
360
362
|
Ce,
|
|
361
363
|
{
|
|
362
364
|
"data-type": "image",
|
|
363
365
|
alt: "User avatar",
|
|
364
366
|
"data-role": s.role,
|
|
365
|
-
src:
|
|
367
|
+
src: n.userAvatar,
|
|
366
368
|
...t
|
|
367
369
|
}
|
|
368
|
-
) : /* @__PURE__ */
|
|
370
|
+
) : /* @__PURE__ */ o(
|
|
369
371
|
ze,
|
|
370
372
|
{
|
|
371
373
|
"data-type": "icon",
|
|
372
374
|
"data-role": s.role,
|
|
373
375
|
...t
|
|
374
376
|
}
|
|
375
|
-
) : u ? /* @__PURE__ */
|
|
377
|
+
) : u ? /* @__PURE__ */ o(
|
|
376
378
|
Ce,
|
|
377
379
|
{
|
|
378
380
|
src: u,
|
|
@@ -385,7 +387,7 @@ const Bn = U((t, e) => {
|
|
|
385
387
|
),
|
|
386
388
|
...a
|
|
387
389
|
}
|
|
388
|
-
) : /* @__PURE__ */
|
|
390
|
+
) : /* @__PURE__ */ o(
|
|
389
391
|
je,
|
|
390
392
|
{
|
|
391
393
|
"data-type": "icon",
|
|
@@ -396,124 +398,124 @@ const Bn = U((t, e) => {
|
|
|
396
398
|
}
|
|
397
399
|
), Gt = i("span", {
|
|
398
400
|
_id: "aiChatMessageName"
|
|
399
|
-
}),
|
|
400
|
-
const { message: e } = P(), { aiChatSettings: a } = p(), { aiAssistantName:
|
|
401
|
-
return /* @__PURE__ */
|
|
401
|
+
}), un = (t) => {
|
|
402
|
+
const { message: e } = P(), { aiChatSettings: a } = p(), { aiAssistantName: n } = a;
|
|
403
|
+
return /* @__PURE__ */ o(
|
|
402
404
|
Gt,
|
|
403
405
|
{
|
|
404
406
|
"data-role": e.role,
|
|
405
|
-
children: e.role === "user" ? "You" :
|
|
407
|
+
children: e.role === "user" ? "You" : n || "AI assistant",
|
|
406
408
|
...t
|
|
407
409
|
}
|
|
408
410
|
);
|
|
409
411
|
}, Yt = i("div", {
|
|
410
412
|
_id: "aiChatMessageContentWrapper"
|
|
411
|
-
}),
|
|
413
|
+
}), Cn = (t) => {
|
|
412
414
|
const { message: e } = P();
|
|
413
|
-
return /* @__PURE__ */
|
|
414
|
-
},
|
|
415
|
+
return /* @__PURE__ */ o(Yt, { "data-role": e.role, ...t });
|
|
416
|
+
}, Zt = i("div", {
|
|
415
417
|
_id: "aiChatMessageContent"
|
|
416
|
-
}),
|
|
418
|
+
}), bn = (t) => {
|
|
417
419
|
const { message: e } = P();
|
|
418
|
-
return /* @__PURE__ */
|
|
419
|
-
},
|
|
420
|
+
return /* @__PURE__ */ o(Zt, { "data-role": e.role, ...t });
|
|
421
|
+
}, Jt = i("div", {
|
|
420
422
|
_id: "aiChatMessageAttachments"
|
|
421
|
-
}),
|
|
423
|
+
}), pn = (t) => {
|
|
422
424
|
const { message: e } = P(), a = [];
|
|
423
|
-
return e.role !== "user" || !a?.length ? null : /* @__PURE__ */
|
|
424
|
-
},
|
|
425
|
+
return e.role !== "user" || !a?.length ? null : /* @__PURE__ */ o(Je, { children: /* @__PURE__ */ o(Jt, { ...t }) });
|
|
426
|
+
}, Xt = i("div", {
|
|
425
427
|
_id: "aiChatMessageAttachments__List"
|
|
426
|
-
}),
|
|
427
|
-
const { children: e, ...a } = t,
|
|
428
|
-
return
|
|
428
|
+
}), vn = (t) => {
|
|
429
|
+
const { children: e, ...a } = t, n = [];
|
|
430
|
+
return n ? /* @__PURE__ */ o(Xt, { children: B(e, n), ...a }) : null;
|
|
429
431
|
}, ei = i("div", {
|
|
430
432
|
_id: "aiChatMessageAttachments__Item"
|
|
431
|
-
}),
|
|
432
|
-
const { attachment: e, onClick: a, ...
|
|
433
|
-
return /* @__PURE__ */
|
|
433
|
+
}), gn = (t) => {
|
|
434
|
+
const { attachment: e, onClick: a, ...n } = t, { selectItem: r, onOpen: s } = Z();
|
|
435
|
+
return /* @__PURE__ */ o(pe, { attachment: e, children: /* @__PURE__ */ o(
|
|
434
436
|
ei,
|
|
435
437
|
{
|
|
436
438
|
onClick: h(a, () => {
|
|
437
439
|
r(e), s();
|
|
438
440
|
}),
|
|
439
|
-
...
|
|
441
|
+
...n
|
|
440
442
|
}
|
|
441
443
|
) });
|
|
442
444
|
}, ti = i(x, {
|
|
443
445
|
_id: "aiChatMessageAttachments__ItemIcon"
|
|
444
|
-
}),
|
|
446
|
+
}), _n = (t) => {
|
|
445
447
|
const { attachment: e } = Y(), a = e.contentType?.attachmentIcon;
|
|
446
|
-
return a ? /* @__PURE__ */
|
|
448
|
+
return a ? /* @__PURE__ */ o(ti, { iconSettings: a, ...t }) : null;
|
|
447
449
|
}, ii = i("span", {
|
|
448
450
|
_id: "aiChatMessageAttachments__ItemTitle"
|
|
449
|
-
}),
|
|
451
|
+
}), Fn = (t) => {
|
|
450
452
|
const { attachment: e } = Y();
|
|
451
|
-
return /* @__PURE__ */
|
|
453
|
+
return /* @__PURE__ */ o(ii, { children: e.title, ...t });
|
|
452
454
|
}, ai = i(ce, {
|
|
453
455
|
_id: "aiChatMessageAttachmentsPreview"
|
|
454
|
-
}),
|
|
455
|
-
const { onOpenChange: e, ...a } = t, { selectItem:
|
|
456
|
-
return /* @__PURE__ */
|
|
456
|
+
}), Pn = (t) => {
|
|
457
|
+
const { onOpenChange: e, ...a } = t, { selectItem: n, isOpen: r, onClose: s, selectedItem: c } = Z();
|
|
458
|
+
return /* @__PURE__ */ o(
|
|
457
459
|
ai,
|
|
458
460
|
{
|
|
459
461
|
open: r && c !== null,
|
|
460
462
|
onOpenChange: h(e, (m) => {
|
|
461
|
-
m || (s(),
|
|
463
|
+
m || (s(), n(null));
|
|
462
464
|
}),
|
|
463
465
|
...a
|
|
464
466
|
}
|
|
465
467
|
);
|
|
466
|
-
},
|
|
468
|
+
}, An = i(oe, {
|
|
467
469
|
_id: "aiChatMessageAttachmentsPreview__Overlay"
|
|
468
|
-
}),
|
|
470
|
+
}), In = i(ne, {
|
|
469
471
|
_id: "aiChatMessageAttachmentsPreview__Content",
|
|
470
472
|
"aria-describedby": void 0
|
|
471
|
-
}),
|
|
473
|
+
}), oi = i(se, {
|
|
472
474
|
_id: "aiChatMessageAttachmentsPreview__Header"
|
|
473
|
-
}),
|
|
474
|
-
const { selectedItem: e } =
|
|
475
|
-
return /* @__PURE__ */
|
|
476
|
-
|
|
475
|
+
}), fn = (t) => {
|
|
476
|
+
const { selectedItem: e } = Z();
|
|
477
|
+
return /* @__PURE__ */ o(
|
|
478
|
+
oi,
|
|
477
479
|
{
|
|
478
480
|
children: e?.title || "Attachment",
|
|
479
481
|
...t
|
|
480
482
|
}
|
|
481
483
|
);
|
|
482
|
-
},
|
|
484
|
+
}, Mn = i(re, {
|
|
483
485
|
_id: "aiChatMessageAttachmentsPreview__Close",
|
|
484
|
-
children: /* @__PURE__ */
|
|
485
|
-
}),
|
|
486
|
+
children: /* @__PURE__ */ o(E, { iconKey: "close" })
|
|
487
|
+
}), ni = i("p", {
|
|
486
488
|
_id: "aiChatMessageAttachmentsPreview__Body"
|
|
487
|
-
}),
|
|
488
|
-
const { selectedItem: e } =
|
|
489
|
-
return /* @__PURE__ */
|
|
490
|
-
},
|
|
491
|
-
const { text: e, componentStyles: a, ...
|
|
492
|
-
return /* @__PURE__ */
|
|
489
|
+
}), En = (t) => {
|
|
490
|
+
const { selectedItem: e } = Z();
|
|
491
|
+
return /* @__PURE__ */ o(ni, { children: e?.content, ...t });
|
|
492
|
+
}, Sn = (t) => {
|
|
493
|
+
const { text: e, componentStyles: a, ...n } = t, { aiChatSettings: r } = p(), { shouldOpenLinksInNewTab: s } = r;
|
|
494
|
+
return /* @__PURE__ */ o(
|
|
493
495
|
G,
|
|
494
496
|
{
|
|
495
497
|
children: e,
|
|
496
498
|
componentStyles: a,
|
|
497
499
|
shouldOpenLinksInNewTab: s,
|
|
498
|
-
...
|
|
500
|
+
...n
|
|
499
501
|
}
|
|
500
502
|
);
|
|
501
|
-
},
|
|
503
|
+
}, kn = ({
|
|
502
504
|
name: t,
|
|
503
505
|
props: e,
|
|
504
506
|
componentDef: a
|
|
505
507
|
}) => {
|
|
506
|
-
const r = vt()?.shadowHost, s = O(void 0), c = O(null), d = O(null), m = O(!1), [l, u] = q(!1), [b, C] = q(!1),
|
|
508
|
+
const r = vt()?.shadowHost, s = O(void 0), c = O(null), d = O(null), m = O(!1), [l, u] = q(!1), [b, C] = q(!1), g = O(a);
|
|
507
509
|
be(() => {
|
|
508
|
-
a !==
|
|
510
|
+
a !== g.current && (typeof a == "function" && typeof g.current == "function" ? a.toString() !== g.current.toString() && (g.current = a) : g.current = a);
|
|
509
511
|
}, [a]);
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
const M = O(null), H = O(
|
|
513
|
-
H.current !==
|
|
512
|
+
const I = g.current, f = O(e);
|
|
513
|
+
f.current = e;
|
|
514
|
+
const M = O(null), H = O(I);
|
|
515
|
+
H.current !== I && (M.current = null, H.current = I), U(() => {
|
|
514
516
|
s.current || (s.current = `dyn:${t}:${crypto.randomUUID()}`, u(!0));
|
|
515
|
-
}, [t]),
|
|
516
|
-
if (!
|
|
517
|
+
}, [t]), Ie(() => {
|
|
518
|
+
if (!I || !r || !l || !s.current)
|
|
517
519
|
return;
|
|
518
520
|
const L = s.current, F = document.createElement("div");
|
|
519
521
|
return F.setAttribute("data-ikp-component", ""), F.setAttribute("data-component", t), F.setAttribute("slot", L), c.current = F, m.current = !1, r.appendChild(F), C(!0), () => {
|
|
@@ -526,8 +528,8 @@ const Bn = U((t, e) => {
|
|
|
526
528
|
F.parentNode === r && F.remove(), c.current = null;
|
|
527
529
|
});
|
|
528
530
|
};
|
|
529
|
-
}, [
|
|
530
|
-
const
|
|
531
|
+
}, [I, r, l, t]);
|
|
532
|
+
const $ = (L) => {
|
|
531
533
|
const F = c.current;
|
|
532
534
|
if (!F || m.current) return;
|
|
533
535
|
const V = (T) => {
|
|
@@ -536,8 +538,8 @@ const Bn = U((t, e) => {
|
|
|
536
538
|
return M.current = !1, !1;
|
|
537
539
|
try {
|
|
538
540
|
if (T.constructor === Function) {
|
|
539
|
-
const
|
|
540
|
-
return M.current =
|
|
541
|
+
const J = T({});
|
|
542
|
+
return M.current = X.isValidElement(J), M.current;
|
|
541
543
|
}
|
|
542
544
|
return M.current = !1, !1;
|
|
543
545
|
} catch {
|
|
@@ -545,10 +547,10 @@ const Bn = U((t, e) => {
|
|
|
545
547
|
}
|
|
546
548
|
};
|
|
547
549
|
let y;
|
|
548
|
-
const D =
|
|
550
|
+
const D = g.current;
|
|
549
551
|
if (V(D))
|
|
550
552
|
try {
|
|
551
|
-
y =
|
|
553
|
+
y = X.createElement(
|
|
552
554
|
D,
|
|
553
555
|
L || {}
|
|
554
556
|
);
|
|
@@ -562,36 +564,36 @@ const Bn = U((t, e) => {
|
|
|
562
564
|
console.error("Invalid component definition");
|
|
563
565
|
return;
|
|
564
566
|
}
|
|
565
|
-
if (
|
|
567
|
+
if (X.isValidElement(y) || typeof y == "string") {
|
|
566
568
|
if (m.current) return;
|
|
567
|
-
d.current || (d.current =
|
|
569
|
+
d.current || (d.current = fe.createRoot(F)), !m.current && d.current && d.current.render(y);
|
|
568
570
|
return;
|
|
569
571
|
}
|
|
570
572
|
d.current && !m.current && d.current.render(null);
|
|
571
573
|
};
|
|
572
|
-
return
|
|
573
|
-
|
|
574
|
-
}, [
|
|
575
|
-
!d.current || m.current ||
|
|
576
|
-
}, [e]), /* @__PURE__ */
|
|
577
|
-
},
|
|
574
|
+
return U(() => {
|
|
575
|
+
$(f.current);
|
|
576
|
+
}, [I, b]), U(() => {
|
|
577
|
+
!d.current || m.current || $(e);
|
|
578
|
+
}, [e]), /* @__PURE__ */ o("slot", { name: s.current });
|
|
579
|
+
}, Bn = i("div", {
|
|
578
580
|
_id: "aiChatMessagePart"
|
|
579
581
|
}), ri = i("div", {
|
|
580
582
|
_id: "aiChatMessageToolbar"
|
|
581
|
-
}),
|
|
582
|
-
const { isLoading: e, messages: a } =
|
|
583
|
-
return a.at(-1)?.id ===
|
|
583
|
+
}), yn = (t) => {
|
|
584
|
+
const { isLoading: e, messages: a } = _(), { message: n } = P();
|
|
585
|
+
return a.at(-1)?.id === n?.id && e || n.role === "user" ? null : /* @__PURE__ */ o(ri, { ...t });
|
|
584
586
|
}, si = i("div", {
|
|
585
587
|
_id: "aiChatMessageCustomActions"
|
|
586
|
-
}),
|
|
587
|
-
const { children: e, ...a } = t, { aiChatSettings:
|
|
588
|
-
return d && s || !m ? null : /* @__PURE__ */
|
|
588
|
+
}), Tn = (t) => {
|
|
589
|
+
const { children: e, ...a } = t, { aiChatSettings: n } = p(), { message: r } = P(), { isStreaming: s, messages: c } = _(), d = c.at(-1)?.id === r?.id, m = r.role === "assistant", l = n.messageActions || [];
|
|
590
|
+
return d && s || !m ? null : /* @__PURE__ */ o(si, { children: B(e, l), ...a });
|
|
589
591
|
}, ci = i("a", {
|
|
590
592
|
_id: "aiChatMessageCustomAction"
|
|
591
593
|
}), di = i("button", {
|
|
592
594
|
_id: "aiChatMessageCustomAction"
|
|
593
|
-
}),
|
|
594
|
-
const { onClick: e, action: a, ...
|
|
595
|
+
}), xn = (t) => {
|
|
596
|
+
const { onClick: e, action: a, ...n } = t, { message: r } = P(), { handleAction: s } = le(a, r.id), { logEvent: c } = ue(), { conversationId: d } = _(), m = () => {
|
|
595
597
|
s(), c({
|
|
596
598
|
eventName: "user_escalation_indicated",
|
|
597
599
|
properties: {
|
|
@@ -600,10 +602,10 @@ const Bn = U((t, e) => {
|
|
|
600
602
|
}
|
|
601
603
|
});
|
|
602
604
|
}, l = a.label, u = /* @__PURE__ */ j(te, { children: [
|
|
603
|
-
a.icon && /* @__PURE__ */
|
|
605
|
+
a.icon && /* @__PURE__ */ o(x, { iconSettings: a.icon }),
|
|
604
606
|
l
|
|
605
607
|
] });
|
|
606
|
-
return a.action.type === "open_link" ? /* @__PURE__ */
|
|
608
|
+
return a.action.type === "open_link" ? /* @__PURE__ */ o(
|
|
607
609
|
ci,
|
|
608
610
|
{
|
|
609
611
|
href: a.action.url,
|
|
@@ -612,27 +614,27 @@ const Bn = U((t, e) => {
|
|
|
612
614
|
"data-type": a.action.type,
|
|
613
615
|
onClick: h(e, m),
|
|
614
616
|
children: u,
|
|
615
|
-
...
|
|
617
|
+
...n
|
|
616
618
|
}
|
|
617
|
-
) : /* @__PURE__ */
|
|
619
|
+
) : /* @__PURE__ */ o(
|
|
618
620
|
di,
|
|
619
621
|
{
|
|
620
622
|
"data-type": a.action.type,
|
|
621
623
|
onClick: h(e, m),
|
|
622
624
|
children: u,
|
|
623
|
-
...
|
|
625
|
+
...n
|
|
624
626
|
}
|
|
625
627
|
);
|
|
626
628
|
}, mi = i("button", {
|
|
627
629
|
_id: "aiChatMessageAction"
|
|
628
|
-
}),
|
|
629
|
-
const { action: e, onClick: a, className:
|
|
630
|
+
}), wn = (t) => {
|
|
631
|
+
const { action: e, onClick: a, className: n, ...r } = t, { conversationId: s } = _(), {
|
|
630
632
|
baseSettings: { onFeedback: c }
|
|
631
|
-
} = p(), { message: d } = P(), { isStreaming: m, messages: l } =
|
|
633
|
+
} = p(), { message: d } = P(), { isStreaming: m, messages: l } = _(), [u, b] = ee(), { feedback: C, submitPositiveFeedback: g, setCurrentFeedback: I, currentFeedback: f } = de(), { logEvent: M } = ue(), [H, $] = at(), L = l.at(-1)?.id === d?.id, F = d.role === "assistant";
|
|
632
634
|
if (L && m || !F) return null;
|
|
633
635
|
const y = {
|
|
634
636
|
copy() {
|
|
635
|
-
b(
|
|
637
|
+
b(ge(d)), M({
|
|
636
638
|
eventName: "assistant_message_copied",
|
|
637
639
|
properties: {
|
|
638
640
|
conversationId: s
|
|
@@ -640,60 +642,60 @@ const Bn = U((t, e) => {
|
|
|
640
642
|
});
|
|
641
643
|
},
|
|
642
644
|
upvote() {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
+
g(d.id).then(() => {
|
|
646
|
+
$();
|
|
645
647
|
});
|
|
646
648
|
},
|
|
647
649
|
downvote() {
|
|
648
|
-
|
|
650
|
+
I(d.id);
|
|
649
651
|
}
|
|
650
652
|
}, D = {
|
|
651
653
|
copy: "Copy Message",
|
|
652
654
|
upvote: "Upvote Message",
|
|
653
655
|
downvote: "Downvote Message"
|
|
654
656
|
}, T = {
|
|
655
|
-
copy: /* @__PURE__ */
|
|
656
|
-
upvote: /* @__PURE__ */
|
|
657
|
-
downvote: /* @__PURE__ */
|
|
658
|
-
},
|
|
657
|
+
copy: /* @__PURE__ */ o(E, { iconKey: u ? "messageCopied" : "messageCopy" }),
|
|
658
|
+
upvote: /* @__PURE__ */ o(E, { iconKey: H ? "messageCopied" : "thumbsUp" }),
|
|
659
|
+
downvote: /* @__PURE__ */ o(E, { iconKey: "thumbsDown" })
|
|
660
|
+
}, J = {
|
|
659
661
|
copy: { "data-copied": v(u) },
|
|
660
662
|
upvote: {
|
|
661
663
|
"data-upvoted": v(C[d.id]?.type === "positive")
|
|
662
664
|
},
|
|
663
665
|
downvote: {
|
|
664
666
|
"data-downvoted": v(C[d.id]?.type === "negative"),
|
|
665
|
-
"data-state":
|
|
667
|
+
"data-state": f === null ? "closed" : "open"
|
|
666
668
|
}
|
|
667
669
|
};
|
|
668
670
|
return {
|
|
669
671
|
copy: !1,
|
|
670
672
|
upvote: !c,
|
|
671
673
|
downvote: !c
|
|
672
|
-
}[e] ? null : /* @__PURE__ */
|
|
674
|
+
}[e] ? null : /* @__PURE__ */ o(
|
|
673
675
|
mi,
|
|
674
676
|
{
|
|
675
677
|
"data-action": e,
|
|
676
|
-
...
|
|
678
|
+
...J[e],
|
|
677
679
|
children: T[e],
|
|
678
680
|
"aria-label": D[e],
|
|
679
|
-
className: `${
|
|
681
|
+
className: `${n} ${e}`,
|
|
680
682
|
onClick: h(a, y[e]),
|
|
681
683
|
...r
|
|
682
684
|
}
|
|
683
685
|
);
|
|
684
686
|
}, li = i("div", {
|
|
685
687
|
_id: "aiChatMessageSources"
|
|
686
|
-
}),
|
|
688
|
+
}), Hn = (t) => {
|
|
687
689
|
const { message: e } = P();
|
|
688
690
|
return e.role !== "assistant" || !e.parts.filter(
|
|
689
|
-
(
|
|
690
|
-
)?.length ? null : /* @__PURE__ */
|
|
691
|
+
(n) => n.type === "data-artifact" && n.data?.type?.toLowerCase() === "citation"
|
|
692
|
+
)?.length ? null : /* @__PURE__ */ o(li, { ...t });
|
|
691
693
|
}, hi = i("div", {
|
|
692
694
|
_id: "aiChatMessageSources__Header"
|
|
693
|
-
}),
|
|
695
|
+
}), Ln = (t) => /* @__PURE__ */ o(hi, { children: "Sources", ...t }), ui = i("div", {
|
|
694
696
|
_id: "aiChatMessageSources__List"
|
|
695
|
-
}),
|
|
696
|
-
const { message: e } = P(), { children: a, ...
|
|
697
|
+
}), Dn = (t) => {
|
|
698
|
+
const { message: e } = P(), { children: a, ...n } = t, {
|
|
697
699
|
baseSettings: { transformSource: r, organizationDisplayName: s },
|
|
698
700
|
aiChatSettings: { shouldOpenLinksInNewTab: c },
|
|
699
701
|
searchSettings: { tabs: d }
|
|
@@ -707,7 +709,7 @@ const Bn = U((t, e) => {
|
|
|
707
709
|
const C = b.data.artifactSummary.url;
|
|
708
710
|
return !C || l.has(C) ? !1 : (l.set(C, !0), !0);
|
|
709
711
|
}).map((b) => {
|
|
710
|
-
const C = b.data,
|
|
712
|
+
const C = b.data, g = {
|
|
711
713
|
id: C?.artifactId,
|
|
712
714
|
title: C?.artifactSummary?.title || C?.name,
|
|
713
715
|
url: C?.artifactSummary?.url || "",
|
|
@@ -716,21 +718,21 @@ const Bn = U((t, e) => {
|
|
|
716
718
|
type: C?.artifactSummary?.record_type,
|
|
717
719
|
contentType: C?.artifactType,
|
|
718
720
|
tag: C?.artifactType
|
|
719
|
-
},
|
|
721
|
+
}, f = (r ?? ((H) => ({
|
|
720
722
|
...H,
|
|
721
723
|
shouldOpenInNewTab: c,
|
|
722
|
-
icon:
|
|
723
|
-
})))(
|
|
724
|
+
icon: gt(H)
|
|
725
|
+
})))(g, "chatSourceItem", {
|
|
724
726
|
organizationDisplayName: s,
|
|
725
727
|
tabs: d
|
|
726
|
-
}), M =
|
|
727
|
-
return { ...
|
|
728
|
+
}), M = f.shouldOpenInNewTab !== void 0 ? f.shouldOpenInNewTab : c;
|
|
729
|
+
return { ...f, isExternal: M };
|
|
728
730
|
});
|
|
729
|
-
return /* @__PURE__ */
|
|
731
|
+
return /* @__PURE__ */ o(ui, { children: B(a, u), ...n });
|
|
730
732
|
}, Ci = i(Ge, {
|
|
731
733
|
_id: "aiChatMessageSourceItem"
|
|
732
|
-
}),
|
|
733
|
-
const { source: e, onClick: a, ...
|
|
734
|
+
}), On = (t) => {
|
|
735
|
+
const { source: e, onClick: a, ...n } = t, { logEvent: r } = ue(), { conversationId: s } = _(), c = () => {
|
|
734
736
|
r({
|
|
735
737
|
eventName: "assistant_source_item_clicked",
|
|
736
738
|
properties: {
|
|
@@ -739,7 +741,7 @@ const Bn = U((t, e) => {
|
|
|
739
741
|
}
|
|
740
742
|
});
|
|
741
743
|
};
|
|
742
|
-
return /* @__PURE__ */
|
|
744
|
+
return /* @__PURE__ */ o(Ze, { source: e, children: /* @__PURE__ */ o(
|
|
743
745
|
Ci,
|
|
744
746
|
{
|
|
745
747
|
"data-type": e.type,
|
|
@@ -747,52 +749,52 @@ const Bn = U((t, e) => {
|
|
|
747
749
|
isExternal: e.isExternal,
|
|
748
750
|
"data-breadcrumbs": !!e.breadcrumbs?.length,
|
|
749
751
|
onClick: h(a, c),
|
|
750
|
-
...
|
|
752
|
+
...n
|
|
751
753
|
}
|
|
752
754
|
) });
|
|
753
755
|
}, bi = i("div", {
|
|
754
756
|
_id: "aiChatMessageSourceItem__Breadcrumbs"
|
|
755
|
-
}),
|
|
756
|
-
const { source: e } =
|
|
757
|
-
return e.breadcrumbs?.length ? /* @__PURE__ */
|
|
758
|
-
},
|
|
757
|
+
}), Nn = (t) => {
|
|
758
|
+
const { source: e } = W();
|
|
759
|
+
return e.breadcrumbs?.length ? /* @__PURE__ */ o(bi, { "data-type": e.type, ...t }) : null;
|
|
760
|
+
}, Rn = i(E, {
|
|
759
761
|
_id: "aiChatMessageSourceItem__BreadcrumbIcon",
|
|
760
762
|
iconKey: "breadcrumbSeparator"
|
|
761
763
|
}), pi = i(x, {
|
|
762
764
|
_id: "aiChatMessageSourceItem__Icon"
|
|
763
|
-
}),
|
|
764
|
-
const { source: e } =
|
|
765
|
-
return /* @__PURE__ */
|
|
765
|
+
}), Wn = (t) => {
|
|
766
|
+
const { source: e } = W();
|
|
767
|
+
return /* @__PURE__ */ o(pi, { iconSettings: e.icon, "data-type": e.type, ...t });
|
|
766
768
|
}, vi = i("span", {
|
|
767
769
|
_id: "aiChatMessageSourceItem__Title"
|
|
768
|
-
}),
|
|
769
|
-
const { source: e } =
|
|
770
|
-
return /* @__PURE__ */
|
|
771
|
-
}, _i = i("span", {
|
|
772
|
-
_id: "aiChatMessageSourceItem__Tag"
|
|
773
|
-
}), $o = (t) => {
|
|
774
|
-
const { source: e } = N();
|
|
775
|
-
return /* @__PURE__ */ n(_i, { "data-type": e.type, ...t });
|
|
770
|
+
}), Vn = (t) => {
|
|
771
|
+
const { source: e } = W();
|
|
772
|
+
return /* @__PURE__ */ o(vi, { "data-type": e.type, children: e.title, ...t });
|
|
776
773
|
}, gi = i("span", {
|
|
774
|
+
_id: "aiChatMessageSourceItem__Tag"
|
|
775
|
+
}), Un = (t) => {
|
|
776
|
+
const { source: e } = W();
|
|
777
|
+
return /* @__PURE__ */ o(gi, { "data-type": e.type, ...t });
|
|
778
|
+
}, _i = i("span", {
|
|
777
779
|
_id: "aiChatMessageSourceItem__Description"
|
|
778
|
-
}),
|
|
779
|
-
const { source: e } =
|
|
780
|
-
return r.length ? /* @__PURE__ */
|
|
781
|
-
|
|
780
|
+
}), $n = (t) => {
|
|
781
|
+
const { source: e } = W(), { children: a, ...n } = t, r = be(() => e.description ? mt(e.description) : [], [e.description]);
|
|
782
|
+
return r.length ? /* @__PURE__ */ o(
|
|
783
|
+
_i,
|
|
782
784
|
{
|
|
783
785
|
"data-type": e.type,
|
|
784
786
|
children: B(a, r),
|
|
785
|
-
...
|
|
787
|
+
...n
|
|
786
788
|
}
|
|
787
789
|
) : null;
|
|
788
790
|
}, Fi = i("span", {
|
|
789
791
|
_id: "aiChatMessageSourceItem__DescriptionPart"
|
|
790
|
-
}),
|
|
791
|
-
const { part: e, ...a } = t, { source:
|
|
792
|
-
return typeof e == "string" ? e : /* @__PURE__ */
|
|
792
|
+
}), Qn = (t) => {
|
|
793
|
+
const { part: e, ...a } = t, { source: n } = W();
|
|
794
|
+
return typeof e == "string" ? e : /* @__PURE__ */ o(
|
|
793
795
|
Fi,
|
|
794
796
|
{
|
|
795
|
-
"data-type":
|
|
797
|
+
"data-type": n.type,
|
|
796
798
|
children: e.content,
|
|
797
799
|
"data-highlighted": v(e.highlighted),
|
|
798
800
|
...a
|
|
@@ -800,29 +802,27 @@ const Bn = U((t, e) => {
|
|
|
800
802
|
);
|
|
801
803
|
}, Pi = i(E, {
|
|
802
804
|
_id: "aiChatMessageSourceItem__Indicator"
|
|
803
|
-
}),
|
|
804
|
-
const { source: e } =
|
|
805
|
-
return /* @__PURE__ */
|
|
805
|
+
}), Kn = (t) => {
|
|
806
|
+
const { source: e } = W();
|
|
807
|
+
return /* @__PURE__ */ o(
|
|
806
808
|
Pi,
|
|
807
809
|
{
|
|
808
810
|
iconKey: e.isExternal ? "openLinkInNewTab" : "openLinkInSameTab",
|
|
809
811
|
...t
|
|
810
812
|
}
|
|
811
813
|
);
|
|
812
|
-
},
|
|
814
|
+
}, qn = i("div", {
|
|
813
815
|
_id: "aiChatFooter"
|
|
814
|
-
}),
|
|
815
|
-
_id: "aiChatInput__Fieldset"
|
|
816
|
-
}), zo = i("div", {
|
|
816
|
+
}), jn = i("div", {
|
|
817
817
|
_id: "aiChatInput__Group"
|
|
818
818
|
}), Ai = i("textarea", {
|
|
819
819
|
_id: "aiChatInput"
|
|
820
|
-
}),
|
|
821
|
-
const { handleInputChange: r, handleInputKeyDown: s, input: c, error: d, shouldAutoFocusInput: m, inputRef: l } =
|
|
822
|
-
|
|
820
|
+
}), zn = Q(({ onChange: t, onKeyDown: e, ...a }, n) => {
|
|
821
|
+
const { handleInputChange: r, handleInputKeyDown: s, input: c, error: d, shouldAutoFocusInput: m, inputRef: l } = _(), { aiChatSettings: u } = p(), b = he(
|
|
822
|
+
n,
|
|
823
823
|
l
|
|
824
824
|
);
|
|
825
|
-
return pt("chat", l, m), /* @__PURE__ */
|
|
825
|
+
return pt("chat", l, m), /* @__PURE__ */ o(
|
|
826
826
|
Ai,
|
|
827
827
|
{
|
|
828
828
|
asChild: !0,
|
|
@@ -834,200 +834,200 @@ const Bn = U((t, e) => {
|
|
|
834
834
|
onKeyDown: h(e, s),
|
|
835
835
|
disabled: !!d || u.isViewOnly,
|
|
836
836
|
...a,
|
|
837
|
-
children: /* @__PURE__ */
|
|
837
|
+
children: /* @__PURE__ */ o(ie, {})
|
|
838
838
|
}
|
|
839
839
|
);
|
|
840
|
-
}),
|
|
840
|
+
}), Ii = i("button", {
|
|
841
841
|
_id: "aiChatInput__SendButton"
|
|
842
|
-
}),
|
|
843
|
-
const { handleSubmit: e, isSubmitDisabled: a, error:
|
|
844
|
-
return /* @__PURE__ */
|
|
845
|
-
|
|
842
|
+
}), Gn = (t) => {
|
|
843
|
+
const { handleSubmit: e, isSubmitDisabled: a, error: n } = _(), { aiChatSettings: r } = p(), { onClick: s, ...c } = t;
|
|
844
|
+
return /* @__PURE__ */ o(
|
|
845
|
+
Ii,
|
|
846
846
|
{
|
|
847
847
|
onClick: h(s, () => e()),
|
|
848
848
|
"aria-label": "Send message",
|
|
849
|
-
disabled: a || !!
|
|
849
|
+
disabled: a || !!n || r.isViewOnly,
|
|
850
850
|
...c
|
|
851
851
|
}
|
|
852
852
|
);
|
|
853
|
-
},
|
|
853
|
+
}, Yn = i(E, {
|
|
854
854
|
_id: "aiChatInput__SendButtonIcon",
|
|
855
855
|
iconKey: "chatSubmit"
|
|
856
|
-
}),
|
|
856
|
+
}), fi = i("div", {
|
|
857
857
|
_id: "aiChatAttachmentsBar"
|
|
858
|
-
}),
|
|
858
|
+
}), Zn = (t) => {
|
|
859
859
|
const e = { supportedInputs: [] };
|
|
860
|
-
return !e || !e.supportedInputs?.length ? null : /* @__PURE__ */
|
|
860
|
+
return !e || !e.supportedInputs?.length ? null : /* @__PURE__ */ o(Ye, { children: /* @__PURE__ */ o(fi, { ...t }) });
|
|
861
861
|
}, Mi = i("div", {
|
|
862
862
|
_id: "aiChatAttachmentsBar__List"
|
|
863
|
-
}),
|
|
863
|
+
}), Jn = (t) => {
|
|
864
864
|
const { children: e, ...a } = t;
|
|
865
|
-
return /* @__PURE__ */
|
|
865
|
+
return /* @__PURE__ */ o(Mi, { children: B(e, []), ...a });
|
|
866
866
|
}, Ei = i("div", {
|
|
867
867
|
_id: "aiChatAttachmentsBar__Attachment"
|
|
868
|
-
}),
|
|
868
|
+
}), Xn = (t) => {
|
|
869
869
|
const { attachment: e, ...a } = t;
|
|
870
|
-
return /* @__PURE__ */
|
|
870
|
+
return /* @__PURE__ */ o(pe, { attachment: e, children: /* @__PURE__ */ o(Ei, { ...a }) });
|
|
871
871
|
}, Si = i(x, {
|
|
872
872
|
_id: "aiChatAttachmentsBar__AttachmentIcon"
|
|
873
|
-
}),
|
|
873
|
+
}), er = (t) => {
|
|
874
874
|
const { attachment: e } = Y(), a = e.contentType?.attachmentIcon;
|
|
875
|
-
return a ? /* @__PURE__ */
|
|
875
|
+
return a ? /* @__PURE__ */ o(Si, { iconSettings: a, ...t }) : null;
|
|
876
876
|
}, ki = i("span", {
|
|
877
877
|
_id: "aiChatAttachmentsBar__AttachmentTitle"
|
|
878
|
-
}),
|
|
878
|
+
}), tr = (t) => {
|
|
879
879
|
const { attachment: e } = Y();
|
|
880
|
-
return /* @__PURE__ */
|
|
880
|
+
return /* @__PURE__ */ o(ki, { children: e.title, ...t });
|
|
881
881
|
}, Bi = i("button", {
|
|
882
882
|
_id: "aiChatAttachmentsBar__AttachmentDelete"
|
|
883
|
-
}),
|
|
883
|
+
}), ir = (t) => {
|
|
884
884
|
const { onClick: e, ...a } = t;
|
|
885
|
-
return /* @__PURE__ */
|
|
885
|
+
return /* @__PURE__ */ o(
|
|
886
886
|
Bi,
|
|
887
887
|
{
|
|
888
888
|
"aria-label": "Remove attachment",
|
|
889
|
-
children: /* @__PURE__ */
|
|
889
|
+
children: /* @__PURE__ */ o(E, { iconKey: "close" }),
|
|
890
890
|
onClick: h(e, () => {
|
|
891
891
|
}),
|
|
892
892
|
...a
|
|
893
893
|
}
|
|
894
894
|
);
|
|
895
|
-
},
|
|
895
|
+
}, ar = i("div", {
|
|
896
896
|
_id: "aiChatAttachmentsBar__Actions"
|
|
897
|
-
}), or = i(
|
|
897
|
+
}), or = i(R.Tooltip, {
|
|
898
898
|
_id: "aiChatAttachmentsBar__InfoTip",
|
|
899
899
|
delayDuration: 0
|
|
900
|
-
}),
|
|
900
|
+
}), nr = i(R.Trigger, {
|
|
901
901
|
_id: "aiChatAttachmentsBar__InfoTipIcon",
|
|
902
|
-
children: /* @__PURE__ */
|
|
903
|
-
}), yi = i(
|
|
902
|
+
children: /* @__PURE__ */ o(E, { iconKey: "info" })
|
|
903
|
+
}), yi = i(R.Arrow, {
|
|
904
904
|
_id: "aiChatAttachmentsBar__InfoTipArrow"
|
|
905
|
-
}),
|
|
905
|
+
}), rr = i(R.Content, {
|
|
906
906
|
_id: "aiChatAttachmentsBar__InfoTipText",
|
|
907
907
|
side: "bottom",
|
|
908
908
|
sideOffset: 3,
|
|
909
909
|
align: "center",
|
|
910
910
|
children: /* @__PURE__ */ j(te, { children: [
|
|
911
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ o(yi, {}),
|
|
912
912
|
"Attachments will be kept in context for the entire conversation."
|
|
913
913
|
] })
|
|
914
914
|
}), Ti = i("div", {
|
|
915
915
|
_id: "aiChatAttachmentsBar__Inputs"
|
|
916
|
-
}),
|
|
917
|
-
const { children: e, ...a } = t,
|
|
918
|
-
return
|
|
916
|
+
}), sr = (t) => {
|
|
917
|
+
const { children: e, ...a } = t, n = { supportedInputs: [] };
|
|
918
|
+
return n?.supportedInputs ? /* @__PURE__ */ o(
|
|
919
919
|
Ti,
|
|
920
920
|
{
|
|
921
|
-
children: B(e,
|
|
921
|
+
children: B(e, n.supportedInputs),
|
|
922
922
|
...a
|
|
923
923
|
}
|
|
924
924
|
) : null;
|
|
925
925
|
}, xi = i("button", {
|
|
926
926
|
_id: "aiChatAttachmentsBar__Input"
|
|
927
|
-
}),
|
|
928
|
-
const { input: e, onClick: a, ...
|
|
927
|
+
}), cr = (t) => {
|
|
928
|
+
const { input: e, onClick: a, ...n } = t, r = { supportedInputs: [] }, s = [], c = () => {
|
|
929
929
|
}, { selectInput: d, onOpen: m } = k(), l = () => {
|
|
930
930
|
if (e.type === "FUNCTIONAL_MULTI_ATTACHMENT")
|
|
931
931
|
return r ? e.onInvoke(r, e, c, [...s]) : void 0;
|
|
932
932
|
d(e), m();
|
|
933
933
|
};
|
|
934
|
-
return /* @__PURE__ */
|
|
934
|
+
return /* @__PURE__ */ o(
|
|
935
935
|
xi,
|
|
936
936
|
{
|
|
937
937
|
children: e.displayName,
|
|
938
938
|
onClick: h(a, l),
|
|
939
|
-
...
|
|
939
|
+
...n
|
|
940
940
|
}
|
|
941
941
|
);
|
|
942
942
|
}, wi = i(ce, {
|
|
943
943
|
_id: "aiChatAttachmentsBar__Modal"
|
|
944
|
-
}),
|
|
945
|
-
const { onOpenChange: e, ...a } = t, { selectInput:
|
|
946
|
-
return /* @__PURE__ */
|
|
944
|
+
}), dr = (t) => {
|
|
945
|
+
const { onOpenChange: e, ...a } = t, { selectInput: n, isOpen: r, onClose: s, selectedInput: c } = k();
|
|
946
|
+
return /* @__PURE__ */ o(
|
|
947
947
|
wi,
|
|
948
948
|
{
|
|
949
949
|
open: r && c !== null,
|
|
950
950
|
onOpenChange: h(e, (m) => {
|
|
951
|
-
m || (s(),
|
|
951
|
+
m || (s(), n(null));
|
|
952
952
|
}),
|
|
953
953
|
...a
|
|
954
954
|
}
|
|
955
955
|
);
|
|
956
|
-
},
|
|
956
|
+
}, mr = i(oe, {
|
|
957
957
|
_id: "aiChatAttachmentsBar__ModalOverlay"
|
|
958
|
-
}),
|
|
958
|
+
}), lr = i(ne, {
|
|
959
959
|
_id: "aiChatAttachmentsBar__ModalContent",
|
|
960
960
|
"aria-describedby": void 0
|
|
961
|
-
}),
|
|
961
|
+
}), hr = i("div", {
|
|
962
962
|
_id: "aiChatAttachmentsBar__ModalHeader"
|
|
963
963
|
}), Hi = i(se, {
|
|
964
964
|
_id: "aiChatAttachmentsBar__ModalHeading"
|
|
965
|
-
}),
|
|
965
|
+
}), ur = (t) => {
|
|
966
966
|
const { selectedInput: e } = k(), a = `Add ${e?.displayName}`;
|
|
967
|
-
return /* @__PURE__ */
|
|
967
|
+
return /* @__PURE__ */ o(Hi, { children: a, ...t });
|
|
968
968
|
}, Li = i("span", {
|
|
969
969
|
_id: "aiChatAttachmentsBar__ModalDescription"
|
|
970
|
-
}),
|
|
970
|
+
}), Cr = (t) => {
|
|
971
971
|
const { selectedInput: e } = k(), a = e?.workflowModalProps?.modalHelpText;
|
|
972
|
-
return a ? /* @__PURE__ */
|
|
972
|
+
return a ? /* @__PURE__ */ o(Li, { children: a, ...t }) : null;
|
|
973
973
|
}, Di = i("div", {
|
|
974
974
|
_id: "aiChatAttachmentsBar__ModalHelp"
|
|
975
|
-
}),
|
|
976
|
-
const { children: e, ...a } = t, { selectedInput:
|
|
977
|
-
return r ? /* @__PURE__ */
|
|
978
|
-
},
|
|
975
|
+
}), br = (t) => {
|
|
976
|
+
const { children: e, ...a } = t, { selectedInput: n } = k(), r = n?.workflowModalProps?.modalHelpElement;
|
|
977
|
+
return r ? /* @__PURE__ */ o(Di, { asChild: !e, children: e || r, ...a }) : null;
|
|
978
|
+
}, pr = i(re, {
|
|
979
979
|
_id: "aiChatAttachmentsBar__ModalClose",
|
|
980
|
-
children: /* @__PURE__ */
|
|
981
|
-
}),
|
|
980
|
+
children: /* @__PURE__ */ o(E, { iconKey: "close" })
|
|
981
|
+
}), vr = i("div", {
|
|
982
982
|
_id: "aiChatAttachmentsBar__ModalBody"
|
|
983
983
|
}), Oi = i("form", {
|
|
984
984
|
_id: "aiChatAttachmentsBar__Form"
|
|
985
985
|
}), gr = (t) => {
|
|
986
|
-
const { onSubmit: e, ...a } = t, { form:
|
|
987
|
-
return /* @__PURE__ */
|
|
986
|
+
const { onSubmit: e, ...a } = t, { form: n } = k();
|
|
987
|
+
return /* @__PURE__ */ o(
|
|
988
988
|
Oi,
|
|
989
989
|
{
|
|
990
|
-
onSubmit: h(e,
|
|
990
|
+
onSubmit: h(e, n.onSubmit),
|
|
991
991
|
...a
|
|
992
992
|
}
|
|
993
993
|
);
|
|
994
|
-
},
|
|
994
|
+
}, _r = i("div", {
|
|
995
995
|
_id: "aiChatAttachmentsBar__FormTitle",
|
|
996
996
|
role: "group"
|
|
997
|
-
}),
|
|
997
|
+
}), Ni = i("label", {
|
|
998
998
|
_id: "aiChatAttachmentsBar__FormTitleLabel"
|
|
999
|
-
}),
|
|
999
|
+
}), Fr = (t) => {
|
|
1000
1000
|
const { form: e, selectedInput: a } = k();
|
|
1001
|
-
return /* @__PURE__ */
|
|
1002
|
-
|
|
1001
|
+
return /* @__PURE__ */ o(
|
|
1002
|
+
Ni,
|
|
1003
1003
|
{
|
|
1004
1004
|
htmlFor: `${a?.id}-title`,
|
|
1005
1005
|
children: e.labels.title,
|
|
1006
1006
|
...t
|
|
1007
1007
|
}
|
|
1008
1008
|
);
|
|
1009
|
-
},
|
|
1009
|
+
}, Ri = i("input", {
|
|
1010
1010
|
_id: "aiChatAttachmentsBar__FormTitleInput"
|
|
1011
|
-
}),
|
|
1012
|
-
const { onChange: e, ...a } = t, { form:
|
|
1013
|
-
return /* @__PURE__ */
|
|
1014
|
-
|
|
1011
|
+
}), Pr = (t) => {
|
|
1012
|
+
const { onChange: e, ...a } = t, { form: n, selectedInput: r } = k();
|
|
1013
|
+
return /* @__PURE__ */ o(
|
|
1014
|
+
Ri,
|
|
1015
1015
|
{
|
|
1016
1016
|
name: "title",
|
|
1017
|
-
value:
|
|
1017
|
+
value: n.data.title,
|
|
1018
1018
|
id: `${r?.id}-title`,
|
|
1019
|
-
"data-invalid": v(!!
|
|
1020
|
-
"aria-invalid": !!
|
|
1021
|
-
onChange: h(e,
|
|
1019
|
+
"data-invalid": v(!!n.errors.title),
|
|
1020
|
+
"aria-invalid": !!n.errors.title,
|
|
1021
|
+
onChange: h(e, n.onChange),
|
|
1022
1022
|
...a
|
|
1023
1023
|
}
|
|
1024
1024
|
);
|
|
1025
|
-
},
|
|
1025
|
+
}, Wi = i("span", {
|
|
1026
1026
|
_id: "aiChatAttachmentsBar__FormTitleError"
|
|
1027
|
-
}),
|
|
1027
|
+
}), Ar = (t) => {
|
|
1028
1028
|
const { form: e } = k();
|
|
1029
|
-
return e.errors.title ? /* @__PURE__ */
|
|
1030
|
-
|
|
1029
|
+
return e.errors.title ? /* @__PURE__ */ o(
|
|
1030
|
+
Wi,
|
|
1031
1031
|
{
|
|
1032
1032
|
"aria-live": "polite",
|
|
1033
1033
|
children: e.errors.title,
|
|
@@ -1039,9 +1039,9 @@ const Bn = U((t, e) => {
|
|
|
1039
1039
|
role: "group"
|
|
1040
1040
|
}), Vi = i("label", {
|
|
1041
1041
|
_id: "aiChatAttachmentsBar__FormContentLabel"
|
|
1042
|
-
}),
|
|
1042
|
+
}), fr = (t) => {
|
|
1043
1043
|
const { form: e, selectedInput: a } = k();
|
|
1044
|
-
return /* @__PURE__ */
|
|
1044
|
+
return /* @__PURE__ */ o(
|
|
1045
1045
|
Vi,
|
|
1046
1046
|
{
|
|
1047
1047
|
htmlFor: `${a?.id}-content`,
|
|
@@ -1049,70 +1049,70 @@ const Bn = U((t, e) => {
|
|
|
1049
1049
|
...t
|
|
1050
1050
|
}
|
|
1051
1051
|
);
|
|
1052
|
-
},
|
|
1052
|
+
}, Ui = i("textarea", {
|
|
1053
1053
|
_id: "aiChatAttachmentsBar__FormTitleInput"
|
|
1054
|
-
}),
|
|
1055
|
-
const { onChange: e, ...a } = t, { form:
|
|
1056
|
-
return /* @__PURE__ */
|
|
1057
|
-
|
|
1054
|
+
}), Mr = (t) => {
|
|
1055
|
+
const { onChange: e, ...a } = t, { form: n, selectedInput: r } = k();
|
|
1056
|
+
return /* @__PURE__ */ o(
|
|
1057
|
+
Ui,
|
|
1058
1058
|
{
|
|
1059
1059
|
asChild: !0,
|
|
1060
1060
|
rows: 4,
|
|
1061
1061
|
name: "content",
|
|
1062
|
-
value:
|
|
1062
|
+
value: n.data.content,
|
|
1063
1063
|
id: `${r?.id}-content`,
|
|
1064
|
-
"data-invalid": v(!!
|
|
1065
|
-
"aria-invalid": !!
|
|
1066
|
-
onChange: h(e,
|
|
1064
|
+
"data-invalid": v(!!n.errors.content),
|
|
1065
|
+
"aria-invalid": !!n.errors.content,
|
|
1066
|
+
onChange: h(e, n.onChange),
|
|
1067
1067
|
...a,
|
|
1068
|
-
children: /* @__PURE__ */
|
|
1068
|
+
children: /* @__PURE__ */ o(ie, { maxRows: 10 })
|
|
1069
1069
|
}
|
|
1070
1070
|
);
|
|
1071
|
-
},
|
|
1071
|
+
}, $i = i("span", {
|
|
1072
1072
|
_id: "aiChatAttachmentsBar__FormContentError"
|
|
1073
|
-
}),
|
|
1073
|
+
}), Er = (t) => {
|
|
1074
1074
|
const { form: e } = k();
|
|
1075
|
-
return e.errors.content ? /* @__PURE__ */
|
|
1076
|
-
|
|
1075
|
+
return e.errors.content ? /* @__PURE__ */ o(
|
|
1076
|
+
$i,
|
|
1077
1077
|
{
|
|
1078
1078
|
"aria-live": "polite",
|
|
1079
1079
|
children: e.errors.content,
|
|
1080
1080
|
...t
|
|
1081
1081
|
}
|
|
1082
1082
|
) : null;
|
|
1083
|
-
},
|
|
1083
|
+
}, Sr = i("button", {
|
|
1084
1084
|
_id: "aiChatAttachmentsBar__FormSubmitButton",
|
|
1085
1085
|
children: "Upload",
|
|
1086
1086
|
type: "submit"
|
|
1087
|
-
}),
|
|
1087
|
+
}), kr = i("div", {
|
|
1088
1088
|
_id: "aiChatActionBar"
|
|
1089
|
-
}),
|
|
1089
|
+
}), Br = i("div", {
|
|
1090
1090
|
_id: "aiChat__ChatActions"
|
|
1091
|
-
}),
|
|
1091
|
+
}), yr = i("div", {
|
|
1092
1092
|
_id: "aiChatTagline__Container"
|
|
1093
|
-
}),
|
|
1093
|
+
}), Tr = i("span", {
|
|
1094
1094
|
_id: "aiChatTagline__Text",
|
|
1095
1095
|
children: "Powered by"
|
|
1096
|
-
}),
|
|
1096
|
+
}), xr = i(it, {
|
|
1097
1097
|
_id: "aiChatTagline__Logo"
|
|
1098
|
-
}),
|
|
1098
|
+
}), wr = i("a", {
|
|
1099
1099
|
_id: "aiChatTagline__BrandName",
|
|
1100
1100
|
children: "inkeep",
|
|
1101
1101
|
href: "https://www.inkeep.com/",
|
|
1102
1102
|
target: "_blank",
|
|
1103
1103
|
rel: "noopener noreferrer"
|
|
1104
|
-
}),
|
|
1104
|
+
}), Qi = i(R.Trigger, {
|
|
1105
1105
|
_id: "aiChat__ChatAction"
|
|
1106
1106
|
}), Pe = (t) => {
|
|
1107
|
-
const { action: e, onClick: a, className:
|
|
1108
|
-
|
|
1107
|
+
const { action: e, onClick: a, className: n, ...r } = t, s = {}, { clear: c, stop: d, isBusy: m, messages: l } = _(), { conversationId: u } = _(), { aiChatSettings: b } = p(), [C, g] = ee(), [
|
|
1108
|
+
I
|
|
1109
1109
|
/* copyShareUri */
|
|
1110
|
-
] = ee(),
|
|
1110
|
+
] = ee(), f = l.length > 0;
|
|
1111
1111
|
if ({
|
|
1112
1112
|
help: !1,
|
|
1113
|
-
copy: !
|
|
1114
|
-
share: !
|
|
1115
|
-
clear: !
|
|
1113
|
+
copy: !f || !b.isCopyChatButtonVisible || m,
|
|
1114
|
+
share: !f || !b.isShareButtonVisible || !u || !!s || m,
|
|
1115
|
+
clear: !f || b.isViewOnly || m,
|
|
1116
1116
|
stop: !m
|
|
1117
1117
|
}[e]) return null;
|
|
1118
1118
|
const L = {
|
|
@@ -1121,7 +1121,7 @@ const Bn = U((t, e) => {
|
|
|
1121
1121
|
},
|
|
1122
1122
|
copy: () => {
|
|
1123
1123
|
const V = l.map((y) => {
|
|
1124
|
-
const D = `**${y.role === "assistant" ? "AI Assistant" : "User"}**`, T =
|
|
1124
|
+
const D = `**${y.role === "assistant" ? "AI Assistant" : "User"}**`, T = ge(y);
|
|
1125
1125
|
return `${D}
|
|
1126
1126
|
|
|
1127
1127
|
${T}`;
|
|
@@ -1130,7 +1130,7 @@ ${T}`;
|
|
|
1130
1130
|
---
|
|
1131
1131
|
|
|
1132
1132
|
`);
|
|
1133
|
-
|
|
1133
|
+
g(V);
|
|
1134
1134
|
},
|
|
1135
1135
|
share: async () => {
|
|
1136
1136
|
},
|
|
@@ -1138,15 +1138,15 @@ ${T}`;
|
|
|
1138
1138
|
stop: d
|
|
1139
1139
|
}, F = {
|
|
1140
1140
|
copy: C,
|
|
1141
|
-
share:
|
|
1141
|
+
share: I
|
|
1142
1142
|
};
|
|
1143
|
-
return /* @__PURE__ */
|
|
1144
|
-
|
|
1143
|
+
return /* @__PURE__ */ o(R.Tooltip, { delayDuration: 0, open: F[e], children: /* @__PURE__ */ o(
|
|
1144
|
+
Qi,
|
|
1145
1145
|
{
|
|
1146
1146
|
"data-type": e,
|
|
1147
|
-
"data-copied": v(C ||
|
|
1148
|
-
className: `${
|
|
1149
|
-
children: /* @__PURE__ */
|
|
1147
|
+
"data-copied": v(C || I),
|
|
1148
|
+
className: `${n} ${e}`,
|
|
1149
|
+
children: /* @__PURE__ */ o(qi, { action: e }),
|
|
1150
1150
|
onClick: h(a, L[e]),
|
|
1151
1151
|
...r
|
|
1152
1152
|
}
|
|
@@ -1154,29 +1154,29 @@ ${T}`;
|
|
|
1154
1154
|
}, Ki = i("span", {
|
|
1155
1155
|
_id: "aiChat__ChatActionLabel"
|
|
1156
1156
|
}), qi = (t) => {
|
|
1157
|
-
const { action: e, ...a } = t, { aiChatSettings:
|
|
1157
|
+
const { action: e, ...a } = t, { aiChatSettings: n } = p(), r = n.toolbarButtonLabels ?? {}, s = {
|
|
1158
1158
|
help: r.getHelp ?? "Get Help",
|
|
1159
1159
|
copy: r.copyChat ?? "Copy",
|
|
1160
1160
|
share: r.share ?? "Share",
|
|
1161
1161
|
clear: r.clear ?? "Clear",
|
|
1162
1162
|
stop: r.stop ?? "Stop"
|
|
1163
1163
|
};
|
|
1164
|
-
return /* @__PURE__ */
|
|
1165
|
-
}, ji = i(
|
|
1164
|
+
return /* @__PURE__ */ o(Ki, { children: s[e], ...a });
|
|
1165
|
+
}, ji = i(R.TooltipContent, {
|
|
1166
1166
|
_id: "aiChat__ChatActionFeeback"
|
|
1167
|
-
}),
|
|
1168
|
-
const { action: e, children: a, ...
|
|
1167
|
+
}), Hr = (t) => {
|
|
1168
|
+
const { action: e, children: a, ...n } = t, r = {
|
|
1169
1169
|
copy: "Copied!",
|
|
1170
1170
|
share: "Link copied!"
|
|
1171
1171
|
};
|
|
1172
|
-
return /* @__PURE__ */ j(ji, { sideOffset: 5, ...
|
|
1173
|
-
/* @__PURE__ */
|
|
1172
|
+
return /* @__PURE__ */ j(ji, { sideOffset: 5, ...n, children: [
|
|
1173
|
+
/* @__PURE__ */ o(R.Arrow, {}),
|
|
1174
1174
|
a || r[e]
|
|
1175
1175
|
] });
|
|
1176
|
-
}, zi = i(
|
|
1176
|
+
}, zi = i(N.Root, {
|
|
1177
1177
|
_id: "aiChatHelpActions"
|
|
1178
|
-
}),
|
|
1179
|
-
const { children: e, ...a } = t, { aiChatSettings:
|
|
1178
|
+
}), Lr = (t) => {
|
|
1179
|
+
const { children: e, ...a } = t, { aiChatSettings: n } = p(), { getHelpOptions: r } = n;
|
|
1180
1180
|
if (!r || (r ?? []).length === 0)
|
|
1181
1181
|
return null;
|
|
1182
1182
|
const { _pinned: s, _unpinned: c } = r.reduce(
|
|
@@ -1185,8 +1185,8 @@ ${T}`;
|
|
|
1185
1185
|
return { ...u, [C]: [...u[C], b] };
|
|
1186
1186
|
},
|
|
1187
1187
|
{ _pinned: [], _unpinned: [] }
|
|
1188
|
-
), d = c.length === 1 ? [...s, c[0]] : s, m = c.length === 1 ? [] : c, l =
|
|
1189
|
-
return /* @__PURE__ */
|
|
1188
|
+
), d = c.length === 1 ? [...s, c[0]] : s, m = c.length === 1 ? [] : c, l = nt();
|
|
1189
|
+
return /* @__PURE__ */ o(rt, { value: l, children: /* @__PURE__ */ o(
|
|
1190
1190
|
zi,
|
|
1191
1191
|
{
|
|
1192
1192
|
open: l.open,
|
|
@@ -1202,8 +1202,8 @@ ${T}`;
|
|
|
1202
1202
|
_id: "aiChatHelpAction",
|
|
1203
1203
|
target: "_blank",
|
|
1204
1204
|
rel: "noreferrer"
|
|
1205
|
-
}),
|
|
1206
|
-
const { action: e, onClick: a, ...
|
|
1205
|
+
}), Dr = (t) => {
|
|
1206
|
+
const { action: e, onClick: a, ...n } = t, { handleAction: r, logHelpAction: s } = le(e), c = e.action.type, d = {
|
|
1207
1207
|
"aria-label": e.name,
|
|
1208
1208
|
"data-name": e.name,
|
|
1209
1209
|
children: e.name,
|
|
@@ -1211,20 +1211,20 @@ ${T}`;
|
|
|
1211
1211
|
r(), s();
|
|
1212
1212
|
}),
|
|
1213
1213
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
1214
|
-
...
|
|
1214
|
+
...n
|
|
1215
1215
|
};
|
|
1216
|
-
return c === "open_link" ? /* @__PURE__ */
|
|
1217
|
-
},
|
|
1216
|
+
return c === "open_link" ? /* @__PURE__ */ o(Yi, { href: e.action.url, ...d }) : /* @__PURE__ */ o(Gi, { ...d });
|
|
1217
|
+
}, Zi = i(N.Trigger, {
|
|
1218
1218
|
_id: "aiChatHelpActions__Trigger"
|
|
1219
|
-
}),
|
|
1219
|
+
}), Or = S(
|
|
1220
1220
|
(t) => {
|
|
1221
1221
|
const { aiChatSettings: e } = p();
|
|
1222
|
-
return /* @__PURE__ */
|
|
1222
|
+
return /* @__PURE__ */ o(Pe, { action: "help", ...t, asChild: !0, children: /* @__PURE__ */ o(Zi, { children: e.toolbarButtonLabels?.getHelp ?? "Get Help" }) });
|
|
1223
1223
|
}
|
|
1224
|
-
),
|
|
1224
|
+
), Ji = i(N.Content, {
|
|
1225
1225
|
_id: "aiChatHelpActions__Menu"
|
|
1226
|
-
}),
|
|
1227
|
-
|
|
1226
|
+
}), Nr = (t) => /* @__PURE__ */ o(
|
|
1227
|
+
Ji,
|
|
1228
1228
|
{
|
|
1229
1229
|
side: "top",
|
|
1230
1230
|
sideOffset: 8,
|
|
@@ -1232,10 +1232,10 @@ ${T}`;
|
|
|
1232
1232
|
alignOffset: -10,
|
|
1233
1233
|
...t
|
|
1234
1234
|
}
|
|
1235
|
-
),
|
|
1235
|
+
), Rr = i(N.Arrow, {
|
|
1236
1236
|
_id: "aiChatHelpActions__MenuArrow"
|
|
1237
|
-
}),
|
|
1238
|
-
const { action: e, onClick: a, ...
|
|
1237
|
+
}), Wr = (t) => {
|
|
1238
|
+
const { action: e, onClick: a, ...n } = t, { handleAction: r, logHelpAction: s } = le(e), { setOpen: c } = st(), d = () => {
|
|
1239
1239
|
r({
|
|
1240
1240
|
onOpenForm: () => c(!1)
|
|
1241
1241
|
}), s();
|
|
@@ -1252,143 +1252,143 @@ ${T}`;
|
|
|
1252
1252
|
},
|
|
1253
1253
|
onClick: h(a, d)
|
|
1254
1254
|
});
|
|
1255
|
-
return /* @__PURE__ */
|
|
1256
|
-
},
|
|
1255
|
+
return /* @__PURE__ */ o(l, { ...n });
|
|
1256
|
+
}, Xi = i(x, {
|
|
1257
1257
|
_id: "aiChatHelpActions_MenuItemIcon"
|
|
1258
|
-
}),
|
|
1258
|
+
}), Vr = (t) => {
|
|
1259
1259
|
const { action: e, ...a } = t;
|
|
1260
|
-
return e.icon ? /* @__PURE__ */
|
|
1260
|
+
return e.icon ? /* @__PURE__ */ o(Xi, { iconSettings: e.icon, ...a }) : null;
|
|
1261
1261
|
}, ea = i(ce, {
|
|
1262
1262
|
_id: "aiChatFeedbackModal"
|
|
1263
|
-
}),
|
|
1264
|
-
const { onOpenChange: e, ...a } = t, { currentFeedback:
|
|
1265
|
-
return /* @__PURE__ */
|
|
1263
|
+
}), Ur = (t) => {
|
|
1264
|
+
const { onOpenChange: e, ...a } = t, { currentFeedback: n, setCurrentFeedback: r } = de();
|
|
1265
|
+
return /* @__PURE__ */ o(
|
|
1266
1266
|
ea,
|
|
1267
1267
|
{
|
|
1268
|
-
open:
|
|
1268
|
+
open: n !== null,
|
|
1269
1269
|
onOpenChange: h(e, () => r(null)),
|
|
1270
1270
|
...a
|
|
1271
1271
|
}
|
|
1272
1272
|
);
|
|
1273
|
-
},
|
|
1273
|
+
}, $r = i(oe, {
|
|
1274
1274
|
_id: "aiChatFeedbackModal__Overlay"
|
|
1275
|
-
}),
|
|
1275
|
+
}), Qr = i(ne, {
|
|
1276
1276
|
_id: "aiChatFeedbackModal__Content",
|
|
1277
1277
|
"aria-describedby": void 0
|
|
1278
|
-
}),
|
|
1278
|
+
}), Kr = i(se, {
|
|
1279
1279
|
_id: "aiChatFeedbackModal__Header",
|
|
1280
1280
|
children: "Help improve my answers!"
|
|
1281
|
-
}),
|
|
1281
|
+
}), qr = i(re, {
|
|
1282
1282
|
_id: "aiChatFeedbackModal__Close",
|
|
1283
|
-
children: /* @__PURE__ */
|
|
1284
|
-
}),
|
|
1283
|
+
children: /* @__PURE__ */ o(E, { iconKey: "close" })
|
|
1284
|
+
}), jr = i("div", {
|
|
1285
1285
|
_id: "aiChatFeedbackModal__Body"
|
|
1286
1286
|
}), ta = i("form", {
|
|
1287
1287
|
_id: "aiChatFeedbackForm"
|
|
1288
|
-
}),
|
|
1289
|
-
const { onSubmit: e, ...a } = t, { submitNegativeFeedback:
|
|
1290
|
-
return /* @__PURE__ */
|
|
1288
|
+
}), zr = (t) => {
|
|
1289
|
+
const { onSubmit: e, ...a } = t, { submitNegativeFeedback: n, currentFeedback: r, setCurrentFeedback: s } = de();
|
|
1290
|
+
return /* @__PURE__ */ o(ta, { onSubmit: h(e, (d) => {
|
|
1291
1291
|
d.preventDefault();
|
|
1292
1292
|
const m = d.target, l = new FormData(m), u = Object.fromEntries(l.entries());
|
|
1293
|
-
r && (
|
|
1293
|
+
r && (n(r, u), s(null));
|
|
1294
1294
|
}), ...a });
|
|
1295
1295
|
}, ia = i("div", {
|
|
1296
1296
|
_id: "aiChatFeedbackItem"
|
|
1297
|
-
}),
|
|
1297
|
+
}), Gr = (t) => {
|
|
1298
1298
|
const { name: e, ...a } = t;
|
|
1299
|
-
return /* @__PURE__ */
|
|
1299
|
+
return /* @__PURE__ */ o(et, { name: e, children: /* @__PURE__ */ o(ia, { ...a }) });
|
|
1300
1300
|
}, aa = i(z.Root, {
|
|
1301
1301
|
_id: "aiChatFeedbackItem__Checkbox"
|
|
1302
|
-
}),
|
|
1303
|
-
const { name: e, focusItem: a } = me(), { onCheckedChange:
|
|
1302
|
+
}), Yr = (t) => {
|
|
1303
|
+
const { name: e, focusItem: a } = me(), { onCheckedChange: n, ...r } = t, s = (c) => {
|
|
1304
1304
|
c && a?.current?.focus();
|
|
1305
1305
|
};
|
|
1306
|
-
return /* @__PURE__ */
|
|
1306
|
+
return /* @__PURE__ */ o(
|
|
1307
1307
|
aa,
|
|
1308
1308
|
{
|
|
1309
1309
|
id: `feedback-${e}`,
|
|
1310
1310
|
name: e,
|
|
1311
|
-
onCheckedChange: h(
|
|
1311
|
+
onCheckedChange: h(n, s),
|
|
1312
1312
|
...r
|
|
1313
1313
|
}
|
|
1314
1314
|
);
|
|
1315
|
-
},
|
|
1315
|
+
}, Zr = i(z.Indicator, {
|
|
1316
1316
|
_id: "aiChatFeedbackItem__CheckboxIndicator",
|
|
1317
|
-
children: /* @__PURE__ */
|
|
1318
|
-
}),
|
|
1317
|
+
children: /* @__PURE__ */ o(ve, {})
|
|
1318
|
+
}), oa = i("label", {
|
|
1319
1319
|
_id: "aiChatFeedbackItem__Label"
|
|
1320
|
-
}),
|
|
1320
|
+
}), Jr = (t) => {
|
|
1321
1321
|
const { name: e } = me(), a = {
|
|
1322
1322
|
unrelated_response: "Didn't answer my question",
|
|
1323
1323
|
inaccurate_statement: "Inaccurate statement",
|
|
1324
1324
|
inaccurate_code_snippet: "Inaccurate code snippet",
|
|
1325
1325
|
irrelevant_citations: "Irrelevant citations"
|
|
1326
1326
|
};
|
|
1327
|
-
return /* @__PURE__ */
|
|
1328
|
-
},
|
|
1327
|
+
return /* @__PURE__ */ o(oa, { htmlFor: `feedback-${e}`, children: a[e], ...t });
|
|
1328
|
+
}, na = i("textarea", {
|
|
1329
1329
|
_id: "aiChatFeedbackItem__Description",
|
|
1330
1330
|
placeholder: "Please describe"
|
|
1331
|
-
}),
|
|
1331
|
+
}), Xr = (t) => {
|
|
1332
1332
|
const { name: e, focusItem: a } = me();
|
|
1333
|
-
return /* @__PURE__ */
|
|
1334
|
-
|
|
1333
|
+
return /* @__PURE__ */ o(
|
|
1334
|
+
na,
|
|
1335
1335
|
{
|
|
1336
1336
|
ref: a,
|
|
1337
1337
|
name: `${e}:description`,
|
|
1338
1338
|
...t
|
|
1339
1339
|
}
|
|
1340
1340
|
);
|
|
1341
|
-
},
|
|
1341
|
+
}, es = i("button", {
|
|
1342
1342
|
_id: "aiChatFeedbackForm__SubmitButton",
|
|
1343
1343
|
children: "Submit",
|
|
1344
1344
|
type: "submit"
|
|
1345
1345
|
}), ra = i("div", {
|
|
1346
1346
|
_id: "aiChatForm__Wrapper"
|
|
1347
|
-
}),
|
|
1347
|
+
}), ts = (t) => {
|
|
1348
1348
|
const { form: e } = A();
|
|
1349
|
-
return e ? /* @__PURE__ */
|
|
1349
|
+
return e ? /* @__PURE__ */ o(ra, { ...t }) : null;
|
|
1350
1350
|
}, sa = i("form", {
|
|
1351
1351
|
_id: "aiChatForm"
|
|
1352
|
-
}),
|
|
1353
|
-
const { onSubmit: e, ...a } = t, { conversationId:
|
|
1354
|
-
return c ? null : /* @__PURE__ */
|
|
1352
|
+
}), is = (t) => {
|
|
1353
|
+
const { onSubmit: e, ...a } = t, { conversationId: n, messages: r } = _(), { handleSubmit: s, isSuccess: c } = A();
|
|
1354
|
+
return c ? null : /* @__PURE__ */ o(
|
|
1355
1355
|
sa,
|
|
1356
1356
|
{
|
|
1357
1357
|
onSubmit: h(
|
|
1358
1358
|
e,
|
|
1359
|
-
(d) => s(d, { id:
|
|
1359
|
+
(d) => s(d, { id: n, messages: r })
|
|
1360
1360
|
),
|
|
1361
1361
|
...a
|
|
1362
1362
|
}
|
|
1363
1363
|
);
|
|
1364
1364
|
}, ca = i("button", {
|
|
1365
1365
|
_id: "aiChatForm__Close",
|
|
1366
|
-
children: /* @__PURE__ */
|
|
1367
|
-
}),
|
|
1368
|
-
const { onClick: e, ...a } = t, { closeForm:
|
|
1369
|
-
return /* @__PURE__ */
|
|
1366
|
+
children: /* @__PURE__ */ o(E, { iconKey: "close" })
|
|
1367
|
+
}), as = (t) => {
|
|
1368
|
+
const { onClick: e, ...a } = t, { closeForm: n } = A();
|
|
1369
|
+
return /* @__PURE__ */ o(ca, { onClick: h(e, n), ...a });
|
|
1370
1370
|
}, os = i("div", {
|
|
1371
1371
|
_id: "aiChatForm__Header"
|
|
1372
1372
|
}), da = i("h2", {
|
|
1373
1373
|
_id: "aiChatForm__Heading"
|
|
1374
|
-
}),
|
|
1374
|
+
}), ns = (t) => {
|
|
1375
1375
|
const { form: e } = A();
|
|
1376
|
-
return e?.heading ? /* @__PURE__ */
|
|
1376
|
+
return e?.heading ? /* @__PURE__ */ o(da, { children: e.heading, ...t }) : null;
|
|
1377
1377
|
}, ma = i(G, {
|
|
1378
1378
|
_id: "aiChatForm__Description"
|
|
1379
|
-
}),
|
|
1379
|
+
}), rs = (t) => {
|
|
1380
1380
|
const { form: e } = A();
|
|
1381
|
-
return e?.description ? /* @__PURE__ */
|
|
1381
|
+
return e?.description ? /* @__PURE__ */ o(ma, { shouldOpenLinksInNewTab: !0, children: e.description, ...t }) : null;
|
|
1382
1382
|
}, la = i("div", {
|
|
1383
1383
|
_id: "aiChatForm__Content"
|
|
1384
|
-
}),
|
|
1385
|
-
const { children: e, ...a } = t, { getFields:
|
|
1386
|
-
return /* @__PURE__ */
|
|
1384
|
+
}), ss = (t) => {
|
|
1385
|
+
const { children: e, ...a } = t, { getFields: n } = A(), { conversationId: r } = _(), s = n(r) || [];
|
|
1386
|
+
return /* @__PURE__ */ o(la, { children: B(e, s), ...a });
|
|
1387
1387
|
}, ha = i("div", {
|
|
1388
1388
|
_id: "aiChatForm__Field"
|
|
1389
|
-
}),
|
|
1390
|
-
const { field: e, autoFocus: a, ...
|
|
1391
|
-
return /* @__PURE__ */
|
|
1389
|
+
}), cs = (t) => {
|
|
1390
|
+
const { field: e, autoFocus: a, ...n } = t, { control: r, errors: s } = A();
|
|
1391
|
+
return /* @__PURE__ */ o(
|
|
1392
1392
|
dt,
|
|
1393
1393
|
{
|
|
1394
1394
|
name: e.name,
|
|
@@ -1396,19 +1396,19 @@ ${T}`;
|
|
|
1396
1396
|
rules: { required: e.isRequired ? `${e.label} is required.` : void 0 },
|
|
1397
1397
|
render: ({ field: c }) => {
|
|
1398
1398
|
const d = c.value !== void 0 || e.inputType === "file";
|
|
1399
|
-
return /* @__PURE__ */
|
|
1399
|
+
return /* @__PURE__ */ o(
|
|
1400
1400
|
ct,
|
|
1401
1401
|
{
|
|
1402
1402
|
"data-invalid": v(!!s[e.name]),
|
|
1403
1403
|
field: e,
|
|
1404
1404
|
fieldProps: c,
|
|
1405
1405
|
autoFocus: a,
|
|
1406
|
-
children: d && /* @__PURE__ */
|
|
1406
|
+
children: d && /* @__PURE__ */ o(
|
|
1407
1407
|
ha,
|
|
1408
1408
|
{
|
|
1409
1409
|
"data-input-type": e.inputType,
|
|
1410
1410
|
"data-hidden": v(e.isHidden),
|
|
1411
|
-
...
|
|
1411
|
+
...n
|
|
1412
1412
|
}
|
|
1413
1413
|
)
|
|
1414
1414
|
}
|
|
@@ -1418,9 +1418,9 @@ ${T}`;
|
|
|
1418
1418
|
);
|
|
1419
1419
|
}, ua = i("label", {
|
|
1420
1420
|
_id: "aiChatForm__FieldLabel"
|
|
1421
|
-
}),
|
|
1421
|
+
}), ds = (t) => {
|
|
1422
1422
|
const { field: e } = w();
|
|
1423
|
-
return /* @__PURE__ */
|
|
1423
|
+
return /* @__PURE__ */ o(
|
|
1424
1424
|
ua,
|
|
1425
1425
|
{
|
|
1426
1426
|
"data-required": v(e.isRequired),
|
|
@@ -1436,45 +1436,45 @@ ${T}`;
|
|
|
1436
1436
|
const {
|
|
1437
1437
|
field: e,
|
|
1438
1438
|
error: a,
|
|
1439
|
-
fieldProps: { onChange:
|
|
1439
|
+
fieldProps: { onChange: n, onBlur: r, ...s },
|
|
1440
1440
|
autoFocus: c
|
|
1441
1441
|
} = w(), { onChange: d, onBlur: m, ...l } = t;
|
|
1442
|
-
return /* @__PURE__ */
|
|
1442
|
+
return /* @__PURE__ */ o(
|
|
1443
1443
|
Ca,
|
|
1444
1444
|
{
|
|
1445
1445
|
id: e.name,
|
|
1446
1446
|
autoFocus: c,
|
|
1447
1447
|
placeholder: "placeholder" in e ? e.placeholder : void 0,
|
|
1448
1448
|
"data-invalid": v(!!a),
|
|
1449
|
-
onChange: h(d,
|
|
1449
|
+
onChange: h(d, n),
|
|
1450
1450
|
onBlur: h(m, r),
|
|
1451
1451
|
...s,
|
|
1452
1452
|
...l
|
|
1453
1453
|
}
|
|
1454
1454
|
);
|
|
1455
|
-
},
|
|
1455
|
+
}, ms = i(Ae, {
|
|
1456
1456
|
_id: "aiChatForm__FieldEmail",
|
|
1457
1457
|
type: "email"
|
|
1458
1458
|
}), ba = i("input", {
|
|
1459
1459
|
_id: "aiChatForm__FieldFile",
|
|
1460
1460
|
type: "file",
|
|
1461
1461
|
multiple: !0
|
|
1462
|
-
}),
|
|
1462
|
+
}), ls = (t) => {
|
|
1463
1463
|
const {
|
|
1464
1464
|
field: e,
|
|
1465
1465
|
error: a,
|
|
1466
|
-
fieldProps: { value:
|
|
1466
|
+
fieldProps: { value: n, onChange: r, onBlur: s, ...c },
|
|
1467
1467
|
autoFocus: d
|
|
1468
1468
|
} = w(), { onChange: m, onBlur: l, ...u } = t, b = (C) => {
|
|
1469
|
-
const
|
|
1470
|
-
r(
|
|
1469
|
+
const g = C.target.files;
|
|
1470
|
+
r(g);
|
|
1471
1471
|
};
|
|
1472
|
-
return /* @__PURE__ */
|
|
1472
|
+
return /* @__PURE__ */ o(
|
|
1473
1473
|
ba,
|
|
1474
1474
|
{
|
|
1475
1475
|
id: e.name,
|
|
1476
1476
|
autoFocus: d,
|
|
1477
|
-
"data-value":
|
|
1477
|
+
"data-value": n,
|
|
1478
1478
|
"data-invalid": v(!!a),
|
|
1479
1479
|
...u,
|
|
1480
1480
|
...c,
|
|
@@ -1482,52 +1482,52 @@ ${T}`;
|
|
|
1482
1482
|
onBlur: h(l, s)
|
|
1483
1483
|
}
|
|
1484
1484
|
);
|
|
1485
|
-
},
|
|
1485
|
+
}, hs = i(Ae, {
|
|
1486
1486
|
_id: "aiChatForm__FieldTextArea",
|
|
1487
1487
|
type: "textarea",
|
|
1488
1488
|
asChild: !0,
|
|
1489
|
-
children: /* @__PURE__ */
|
|
1489
|
+
children: /* @__PURE__ */ o(ie, { maxRows: 8 })
|
|
1490
1490
|
}), pa = i(z.Root, {
|
|
1491
1491
|
_id: "aiChatForm__FieldCheckbox"
|
|
1492
|
-
}),
|
|
1493
|
-
const { field: e, error: a, fieldProps:
|
|
1494
|
-
return /* @__PURE__ */
|
|
1492
|
+
}), us = (t) => {
|
|
1493
|
+
const { field: e, error: a, fieldProps: n, autoFocus: r } = w(), { onCheckedChange: s, ...c } = t;
|
|
1494
|
+
return /* @__PURE__ */ o(
|
|
1495
1495
|
pa,
|
|
1496
1496
|
{
|
|
1497
1497
|
id: e.name,
|
|
1498
1498
|
name: e.name,
|
|
1499
1499
|
autoFocus: r,
|
|
1500
1500
|
"data-invalid": v(!!a),
|
|
1501
|
-
checked:
|
|
1502
|
-
onCheckedChange: h(s,
|
|
1501
|
+
checked: n.value,
|
|
1502
|
+
onCheckedChange: h(s, n.onChange),
|
|
1503
1503
|
...c
|
|
1504
1504
|
}
|
|
1505
1505
|
);
|
|
1506
|
-
},
|
|
1506
|
+
}, Cs = i(z.Indicator, {
|
|
1507
1507
|
_id: "aiChatForm__FieldCheckboxIndicator",
|
|
1508
|
-
children: /* @__PURE__ */
|
|
1508
|
+
children: /* @__PURE__ */ o(ve, {})
|
|
1509
1509
|
}), va = i(xe, {
|
|
1510
1510
|
_id: "aiChatForm__FieldSelect"
|
|
1511
|
-
}),
|
|
1512
|
-
const { field: e, error: a, fieldProps:
|
|
1513
|
-
return /* @__PURE__ */
|
|
1511
|
+
}), bs = (t) => {
|
|
1512
|
+
const { field: e, error: a, fieldProps: n } = w(), { onValueChange: r, ...s } = t;
|
|
1513
|
+
return /* @__PURE__ */ o(
|
|
1514
1514
|
va,
|
|
1515
1515
|
{
|
|
1516
1516
|
name: e.name,
|
|
1517
1517
|
"data-invalid": v(!!a),
|
|
1518
|
-
value:
|
|
1519
|
-
onValueChange: h(r,
|
|
1518
|
+
value: n.value,
|
|
1519
|
+
onValueChange: h(r, n.onChange),
|
|
1520
1520
|
...s
|
|
1521
1521
|
}
|
|
1522
1522
|
);
|
|
1523
|
-
},
|
|
1523
|
+
}, ps = i(Ee, {
|
|
1524
1524
|
_id: "aiChatForm__FieldSelect__Trigger"
|
|
1525
|
-
}),
|
|
1525
|
+
}), ga = i(we, {
|
|
1526
1526
|
_id: "aiChatForm__FieldSelect__Value"
|
|
1527
|
-
}),
|
|
1527
|
+
}), vs = (t) => {
|
|
1528
1528
|
const { field: e } = w();
|
|
1529
|
-
return /* @__PURE__ */
|
|
1530
|
-
|
|
1529
|
+
return /* @__PURE__ */ o(
|
|
1530
|
+
ga,
|
|
1531
1531
|
{
|
|
1532
1532
|
placeholder: "placeholder" in e ? e.placeholder : void 0,
|
|
1533
1533
|
...t
|
|
@@ -1536,27 +1536,27 @@ ${T}`;
|
|
|
1536
1536
|
}, gs = i(Se, {
|
|
1537
1537
|
_id: "aiChatForm__FieldSelect__Icon",
|
|
1538
1538
|
asChild: !0,
|
|
1539
|
-
children: /* @__PURE__ */
|
|
1540
|
-
}),
|
|
1539
|
+
children: /* @__PURE__ */ o(x, { iconSettings: { builtIn: "LuChevronDown" } })
|
|
1540
|
+
}), _s = i(ke, {
|
|
1541
1541
|
_id: "aiChatForm__FieldSelect__Content",
|
|
1542
1542
|
position: "popper"
|
|
1543
|
-
}),
|
|
1543
|
+
}), Fs = i(Be, {
|
|
1544
1544
|
_id: "aiChatForm__FieldSelect__Viewport"
|
|
1545
|
-
}),
|
|
1545
|
+
}), Ps = i(ye, {
|
|
1546
1546
|
_id: "aiChatForm__FieldSelect__Item"
|
|
1547
|
-
}),
|
|
1547
|
+
}), As = i(Me, {
|
|
1548
1548
|
_id: "aiChatForm__FieldSelect__ItemText"
|
|
1549
1549
|
}), Is = i(
|
|
1550
1550
|
Te,
|
|
1551
1551
|
{
|
|
1552
1552
|
_id: "aiChatForm__FieldSelect__ItemIndicator",
|
|
1553
1553
|
asChild: !0,
|
|
1554
|
-
children: /* @__PURE__ */
|
|
1554
|
+
children: /* @__PURE__ */ o(x, { iconSettings: { builtIn: "LuCheck" } })
|
|
1555
1555
|
}
|
|
1556
|
-
),
|
|
1557
|
-
const { field: e, error: a, fieldProps:
|
|
1556
|
+
), fs = (t) => {
|
|
1557
|
+
const { field: e, error: a, fieldProps: n } = w(), { onValueChange: r, ...s } = t;
|
|
1558
1558
|
if (e.inputType !== "combobox") return null;
|
|
1559
|
-
const c = e, { items: d, placeholder: m, multiple: l } = c, u = Array.isArray(
|
|
1559
|
+
const c = e, { items: d, placeholder: m, multiple: l } = c, u = Array.isArray(n.value) ? n.value : [], b = {
|
|
1560
1560
|
name: e.name,
|
|
1561
1561
|
"data-invalid": v(!!a) || void 0,
|
|
1562
1562
|
items: d,
|
|
@@ -1565,97 +1565,97 @@ ${T}`;
|
|
|
1565
1565
|
placeholder: m,
|
|
1566
1566
|
onValueChange: h(
|
|
1567
1567
|
r,
|
|
1568
|
-
(C) =>
|
|
1568
|
+
(C) => n.onChange(C.value)
|
|
1569
1569
|
),
|
|
1570
1570
|
...s
|
|
1571
1571
|
};
|
|
1572
|
-
return /* @__PURE__ */
|
|
1572
|
+
return /* @__PURE__ */ o(
|
|
1573
1573
|
Le,
|
|
1574
1574
|
{
|
|
1575
1575
|
...b
|
|
1576
1576
|
}
|
|
1577
1577
|
);
|
|
1578
|
-
},
|
|
1578
|
+
}, _a = { _id: "aiChatForm__FieldCombobox__Control" }, Ms = i(
|
|
1579
1579
|
Oe,
|
|
1580
|
-
|
|
1581
|
-
), Fa = { _id: "aiChatForm__FieldCombobox__Input" },
|
|
1582
|
-
|
|
1580
|
+
_a
|
|
1581
|
+
), Fa = { _id: "aiChatForm__FieldCombobox__Input" }, Es = i(
|
|
1582
|
+
Ne,
|
|
1583
1583
|
Fa
|
|
1584
1584
|
), Pa = {
|
|
1585
1585
|
_id: "aiChatForm__FieldCombobox__Trigger",
|
|
1586
|
-
children: /* @__PURE__ */
|
|
1587
|
-
},
|
|
1588
|
-
|
|
1586
|
+
children: /* @__PURE__ */ o(x, { iconSettings: { builtIn: "LuChevronDown" } })
|
|
1587
|
+
}, Ss = i(
|
|
1588
|
+
Re,
|
|
1589
1589
|
Pa
|
|
1590
|
-
), Aa = { _id: "aiChatForm__FieldCombobox__SelectedTags" },
|
|
1591
|
-
|
|
1590
|
+
), Aa = { _id: "aiChatForm__FieldCombobox__SelectedTags" }, ks = i(
|
|
1591
|
+
We,
|
|
1592
1592
|
Aa
|
|
1593
|
-
),
|
|
1593
|
+
), Ia = { _id: "aiChatForm__FieldCombobox__Content" }, Bs = i(
|
|
1594
1594
|
Ve,
|
|
1595
|
+
Ia
|
|
1596
|
+
), fa = { _id: "aiChatForm__FieldCombobox__Positioner" }, ys = i(
|
|
1597
|
+
Ue,
|
|
1595
1598
|
fa
|
|
1596
|
-
),
|
|
1599
|
+
), Ma = { _id: "aiChatForm__FieldCombobox__List" }, Ts = i(
|
|
1597
1600
|
$e,
|
|
1598
|
-
Ia
|
|
1599
|
-
), Ma = { _id: "aiChatForm__FieldCombobox__List" }, xs = i(
|
|
1600
|
-
Qe,
|
|
1601
1601
|
Ma
|
|
1602
|
-
),
|
|
1602
|
+
), xs = i(Qe, {
|
|
1603
1603
|
_id: "aiChatForm__FieldCombobox__Item"
|
|
1604
|
-
}),
|
|
1604
|
+
}), ws = i(
|
|
1605
1605
|
De,
|
|
1606
1606
|
{ _id: "aiChatForm__FieldCombobox__ItemText" }
|
|
1607
|
-
),
|
|
1607
|
+
), Hs = i(
|
|
1608
1608
|
Ke,
|
|
1609
1609
|
{ _id: "aiChatForm__FieldCombobox__ItemIndicator" }
|
|
1610
|
-
),
|
|
1610
|
+
), Ls = He, Ds = i(
|
|
1611
1611
|
qe,
|
|
1612
1612
|
{ _id: "aiChatForm__FieldCombobox__ListEmpty" }
|
|
1613
1613
|
), Ea = i("p", {
|
|
1614
1614
|
_id: "aiChatForm__FieldDescription"
|
|
1615
|
-
}),
|
|
1615
|
+
}), Os = (t) => {
|
|
1616
1616
|
const { field: e } = w();
|
|
1617
|
-
return e.description ? /* @__PURE__ */
|
|
1617
|
+
return e.description ? /* @__PURE__ */ o(Ea, { children: e.description, ...t }) : null;
|
|
1618
1618
|
}, Sa = i("span", {
|
|
1619
1619
|
_id: "aiChatForm__FieldError"
|
|
1620
|
-
}),
|
|
1620
|
+
}), Ns = (t) => {
|
|
1621
1621
|
const { error: e } = w();
|
|
1622
|
-
return e ? /* @__PURE__ */
|
|
1622
|
+
return e ? /* @__PURE__ */ o(Sa, { children: e.message?.toString(), ...t }) : null;
|
|
1623
1623
|
}, ka = i("span", {
|
|
1624
1624
|
_id: "aiChatForm__Error"
|
|
1625
|
-
}),
|
|
1625
|
+
}), Rs = (t) => {
|
|
1626
1626
|
const { formError: e } = A();
|
|
1627
|
-
return e ? /* @__PURE__ */
|
|
1628
|
-
},
|
|
1627
|
+
return e ? /* @__PURE__ */ o(ka, { children: e.message, ...t }) : null;
|
|
1628
|
+
}, Ws = i("div", {
|
|
1629
1629
|
_id: "aiChatForm__Footer"
|
|
1630
1630
|
}), Ba = i("button", {
|
|
1631
1631
|
_id: "aiChatForm__Cancel",
|
|
1632
1632
|
children: "Cancel",
|
|
1633
1633
|
type: "button"
|
|
1634
|
-
}),
|
|
1635
|
-
const { onClick: e, ...a } = t, { closeForm:
|
|
1636
|
-
return /* @__PURE__ */
|
|
1634
|
+
}), Vs = (t) => {
|
|
1635
|
+
const { onClick: e, ...a } = t, { closeForm: n } = A();
|
|
1636
|
+
return /* @__PURE__ */ o(Ba, { onClick: h(e, n), ...a });
|
|
1637
1637
|
}, ya = i("button", {
|
|
1638
1638
|
_id: "aiChatForm__Submit",
|
|
1639
1639
|
children: "Submit",
|
|
1640
1640
|
type: "submit"
|
|
1641
|
-
}),
|
|
1642
|
-
const { onClick: e, ...a } = t, { isSubmitting:
|
|
1643
|
-
return /* @__PURE__ */
|
|
1641
|
+
}), Us = (t) => {
|
|
1642
|
+
const { onClick: e, ...a } = t, { isSubmitting: n, form: r } = A(), s = r?.buttons.submit.label || "Submit";
|
|
1643
|
+
return /* @__PURE__ */ o(ya, { disabled: n, ...a, children: s });
|
|
1644
1644
|
}, Ta = i("div", {
|
|
1645
1645
|
_id: "aiChatForm__Success"
|
|
1646
|
-
}),
|
|
1646
|
+
}), $s = (t) => {
|
|
1647
1647
|
const { isSuccess: e } = A();
|
|
1648
|
-
return e ? /* @__PURE__ */
|
|
1648
|
+
return e ? /* @__PURE__ */ o(Ta, { ...t }) : null;
|
|
1649
1649
|
}, xa = i("h2", {
|
|
1650
1650
|
_id: "aiChatForm__SuccessHeading"
|
|
1651
|
-
}),
|
|
1651
|
+
}), Qs = (t) => {
|
|
1652
1652
|
const { form: e } = A();
|
|
1653
|
-
return /* @__PURE__ */
|
|
1653
|
+
return /* @__PURE__ */ o(xa, { children: e?.successView?.heading, ...t });
|
|
1654
1654
|
}, wa = i(G, {
|
|
1655
1655
|
_id: "aiChatForm__SuccessMessage"
|
|
1656
|
-
}),
|
|
1656
|
+
}), Ks = (t) => {
|
|
1657
1657
|
const { form: e } = A();
|
|
1658
|
-
return /* @__PURE__ */
|
|
1658
|
+
return /* @__PURE__ */ o(
|
|
1659
1659
|
wa,
|
|
1660
1660
|
{
|
|
1661
1661
|
shouldOpenLinksInNewTab: !0,
|
|
@@ -1665,11 +1665,11 @@ ${T}`;
|
|
|
1665
1665
|
);
|
|
1666
1666
|
}, Ha = i("button", {
|
|
1667
1667
|
_id: "aiChatForm__SuccessButton"
|
|
1668
|
-
}),
|
|
1669
|
-
const { onClick: e, ...a } = t, { form:
|
|
1668
|
+
}), qs = (t) => {
|
|
1669
|
+
const { onClick: e, ...a } = t, { form: n, closeForm: r } = A(), s = n?.successView?.doneButton;
|
|
1670
1670
|
if (!s) return null;
|
|
1671
|
-
const c = s.icon && /* @__PURE__ */
|
|
1672
|
-
return /* @__PURE__ */
|
|
1671
|
+
const c = s.icon && /* @__PURE__ */ o(x, { iconSettings: s.icon }), d = s.label;
|
|
1672
|
+
return /* @__PURE__ */ o(
|
|
1673
1673
|
Ha,
|
|
1674
1674
|
{
|
|
1675
1675
|
onClick: h(e, r),
|
|
@@ -1682,372 +1682,399 @@ ${T}`;
|
|
|
1682
1682
|
);
|
|
1683
1683
|
};
|
|
1684
1684
|
export {
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1685
|
+
kr as ActionBar,
|
|
1686
|
+
Br as Actions,
|
|
1687
|
+
Zn as AttachmentsBar,
|
|
1688
|
+
ar as AttachmentsBarActions,
|
|
1689
|
+
Xn as AttachmentsBarAttachment,
|
|
1690
|
+
ir as AttachmentsBarAttachmentDelete,
|
|
1691
|
+
er as AttachmentsBarAttachmentIcon,
|
|
1692
|
+
tr as AttachmentsBarAttachmentTitle,
|
|
1693
1693
|
gr as AttachmentsBarForm,
|
|
1694
1694
|
Ir as AttachmentsBarFormContent,
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1695
|
+
Er as AttachmentsBarFormContentError,
|
|
1696
|
+
Mr as AttachmentsBarFormContentInput,
|
|
1697
|
+
fr as AttachmentsBarFormContentLabel,
|
|
1698
|
+
Sr as AttachmentsBarFormSubmitButton,
|
|
1699
|
+
_r as AttachmentsBarFormTitle,
|
|
1700
|
+
Ar as AttachmentsBarFormTitleError,
|
|
1701
|
+
Pr as AttachmentsBarFormTitleInput,
|
|
1702
|
+
Fr as AttachmentsBarFormTitleLabel,
|
|
1703
1703
|
or as AttachmentsBarInfoTip,
|
|
1704
1704
|
yi as AttachmentsBarInfoTipArrow,
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1705
|
+
nr as AttachmentsBarInfoTipIcon,
|
|
1706
|
+
rr as AttachmentsBarInfoTipText,
|
|
1707
|
+
cr as AttachmentsBarInput,
|
|
1708
|
+
sr as AttachmentsBarInputs,
|
|
1709
|
+
Jn as AttachmentsBarList,
|
|
1710
|
+
dr as AttachmentsBarModal,
|
|
1711
|
+
vr as AttachmentsBarModalBody,
|
|
1712
|
+
pr as AttachmentsBarModalClose,
|
|
1713
|
+
lr as AttachmentsBarModalContent,
|
|
1714
|
+
Cr as AttachmentsBarModalDescription,
|
|
1715
|
+
hr as AttachmentsBarModalHeader,
|
|
1716
|
+
ur as AttachmentsBarModalHeading,
|
|
1717
|
+
br as AttachmentsBarModalHelp,
|
|
1718
|
+
mr as AttachmentsBarModalOverlay,
|
|
1719
1719
|
Pe as ChatAction,
|
|
1720
|
-
|
|
1720
|
+
Hr as ChatActionFeedback,
|
|
1721
1721
|
qi as ChatActionLabel,
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1722
|
+
Dr as ChatHelpAction,
|
|
1723
|
+
Lo as ChatHistoryButton,
|
|
1724
|
+
Ho as ChatHistoryButtonIcon,
|
|
1725
|
+
Oo as Content,
|
|
1726
|
+
No as ContentScrollArea,
|
|
1727
|
+
Uo as ContentScrollAreaCorner,
|
|
1728
|
+
Wo as ContentScrollAreaScrollbar,
|
|
1729
|
+
Vo as ContentScrollAreaThumb,
|
|
1730
|
+
Ro as ContentScrollAreaViewport,
|
|
1731
|
+
Qo as Disclaimer,
|
|
1732
|
+
Go as DisclaimerArrow,
|
|
1733
|
+
jo as DisclaimerContent,
|
|
1734
|
+
Ko as DisclaimerLabel,
|
|
1735
|
+
zo as DisclaimerText,
|
|
1736
|
+
qo as DisclaimerTrigger,
|
|
1737
|
+
Zs as DropZone,
|
|
1738
|
+
kn as DynamicComponent,
|
|
1739
|
+
kr as EmbeddedChatPrimitiveActionBar,
|
|
1740
|
+
Br as EmbeddedChatPrimitiveActions,
|
|
1741
|
+
Zn as EmbeddedChatPrimitiveAttachmentsBar,
|
|
1742
|
+
ar as EmbeddedChatPrimitiveAttachmentsBarActions,
|
|
1743
|
+
Xn as EmbeddedChatPrimitiveAttachmentsBarAttachment,
|
|
1744
|
+
ir as EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete,
|
|
1745
|
+
er as EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon,
|
|
1746
|
+
tr as EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle,
|
|
1746
1747
|
gr as EmbeddedChatPrimitiveAttachmentsBarForm,
|
|
1747
1748
|
Ir as EmbeddedChatPrimitiveAttachmentsBarFormContent,
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1749
|
+
Er as EmbeddedChatPrimitiveAttachmentsBarFormContentError,
|
|
1750
|
+
Mr as EmbeddedChatPrimitiveAttachmentsBarFormContentInput,
|
|
1751
|
+
fr as EmbeddedChatPrimitiveAttachmentsBarFormContentLabel,
|
|
1752
|
+
Sr as EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton,
|
|
1753
|
+
_r as EmbeddedChatPrimitiveAttachmentsBarFormTitle,
|
|
1754
|
+
Ar as EmbeddedChatPrimitiveAttachmentsBarFormTitleError,
|
|
1755
|
+
Pr as EmbeddedChatPrimitiveAttachmentsBarFormTitleInput,
|
|
1756
|
+
Fr as EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel,
|
|
1756
1757
|
or as EmbeddedChatPrimitiveAttachmentsBarInfoTip,
|
|
1757
1758
|
yi as EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow,
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1759
|
+
nr as EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon,
|
|
1760
|
+
rr as EmbeddedChatPrimitiveAttachmentsBarInfoTipText,
|
|
1761
|
+
cr as EmbeddedChatPrimitiveAttachmentsBarInput,
|
|
1762
|
+
sr as EmbeddedChatPrimitiveAttachmentsBarInputs,
|
|
1763
|
+
Jn as EmbeddedChatPrimitiveAttachmentsBarList,
|
|
1764
|
+
dr as EmbeddedChatPrimitiveAttachmentsBarModal,
|
|
1765
|
+
vr as EmbeddedChatPrimitiveAttachmentsBarModalBody,
|
|
1766
|
+
pr as EmbeddedChatPrimitiveAttachmentsBarModalClose,
|
|
1767
|
+
lr as EmbeddedChatPrimitiveAttachmentsBarModalContent,
|
|
1768
|
+
Cr as EmbeddedChatPrimitiveAttachmentsBarModalDescription,
|
|
1769
|
+
hr as EmbeddedChatPrimitiveAttachmentsBarModalHeader,
|
|
1770
|
+
ur as EmbeddedChatPrimitiveAttachmentsBarModalHeading,
|
|
1771
|
+
br as EmbeddedChatPrimitiveAttachmentsBarModalHelp,
|
|
1772
|
+
mr as EmbeddedChatPrimitiveAttachmentsBarModalOverlay,
|
|
1772
1773
|
Pe as EmbeddedChatPrimitiveChatAction,
|
|
1773
|
-
|
|
1774
|
+
Hr as EmbeddedChatPrimitiveChatActionFeedback,
|
|
1774
1775
|
qi as EmbeddedChatPrimitiveChatActionLabel,
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
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
|
-
|
|
1776
|
+
Dr as EmbeddedChatPrimitiveChatHelpAction,
|
|
1777
|
+
Lo as EmbeddedChatPrimitiveChatHistoryButton,
|
|
1778
|
+
Ho as EmbeddedChatPrimitiveChatHistoryButtonIcon,
|
|
1779
|
+
Oo as EmbeddedChatPrimitiveContent,
|
|
1780
|
+
No as EmbeddedChatPrimitiveContentScrollArea,
|
|
1781
|
+
Uo as EmbeddedChatPrimitiveContentScrollAreaCorner,
|
|
1782
|
+
Wo as EmbeddedChatPrimitiveContentScrollAreaScrollbar,
|
|
1783
|
+
Vo as EmbeddedChatPrimitiveContentScrollAreaThumb,
|
|
1784
|
+
Ro as EmbeddedChatPrimitiveContentScrollAreaViewport,
|
|
1785
|
+
Qo as EmbeddedChatPrimitiveDisclaimer,
|
|
1786
|
+
Go as EmbeddedChatPrimitiveDisclaimerArrow,
|
|
1787
|
+
jo as EmbeddedChatPrimitiveDisclaimerContent,
|
|
1788
|
+
Ko as EmbeddedChatPrimitiveDisclaimerLabel,
|
|
1789
|
+
zo as EmbeddedChatPrimitiveDisclaimerText,
|
|
1790
|
+
qo as EmbeddedChatPrimitiveDisclaimerTrigger,
|
|
1791
|
+
kn as EmbeddedChatPrimitiveDynamicComponent,
|
|
1792
|
+
Xo as EmbeddedChatPrimitiveExampleQuestion,
|
|
1793
|
+
en as EmbeddedChatPrimitiveExampleQuestionButton,
|
|
1794
|
+
Yo as EmbeddedChatPrimitiveExampleQuestions,
|
|
1795
|
+
Zo as EmbeddedChatPrimitiveExampleQuestionsLabel,
|
|
1796
|
+
Jo as EmbeddedChatPrimitiveExampleQuestionsList,
|
|
1797
|
+
zr as EmbeddedChatPrimitiveFeedbackForm,
|
|
1798
|
+
Gr as EmbeddedChatPrimitiveFeedbackItem,
|
|
1799
|
+
Yr as EmbeddedChatPrimitiveFeedbackItemCheckbox,
|
|
1800
|
+
Zr as EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator,
|
|
1801
|
+
Xr as EmbeddedChatPrimitiveFeedbackItemDescription,
|
|
1802
|
+
Jr as EmbeddedChatPrimitiveFeedbackItemLabel,
|
|
1803
|
+
Ur as EmbeddedChatPrimitiveFeedbackModal,
|
|
1804
|
+
jr as EmbeddedChatPrimitiveFeedbackModalBody,
|
|
1805
|
+
qr as EmbeddedChatPrimitiveFeedbackModalClose,
|
|
1806
|
+
Qr as EmbeddedChatPrimitiveFeedbackModalContent,
|
|
1807
|
+
Kr as EmbeddedChatPrimitiveFeedbackModalHeader,
|
|
1808
|
+
$r as EmbeddedChatPrimitiveFeedbackModalOverlay,
|
|
1809
|
+
es as EmbeddedChatPrimitiveFeedbackSubmitButton,
|
|
1810
|
+
qn as EmbeddedChatPrimitiveFooter,
|
|
1811
|
+
is as EmbeddedChatPrimitiveForm,
|
|
1812
|
+
Vs as EmbeddedChatPrimitiveFormCancel,
|
|
1813
|
+
as as EmbeddedChatPrimitiveFormClose,
|
|
1814
|
+
ss as EmbeddedChatPrimitiveFormContent,
|
|
1815
|
+
rs as EmbeddedChatPrimitiveFormDescription,
|
|
1816
|
+
Rs as EmbeddedChatPrimitiveFormError,
|
|
1817
|
+
cs as EmbeddedChatPrimitiveFormField,
|
|
1818
|
+
us as EmbeddedChatPrimitiveFormFieldCheckbox,
|
|
1819
|
+
Cs as EmbeddedChatPrimitiveFormFieldCheckboxIndicator,
|
|
1820
|
+
fs as EmbeddedChatPrimitiveFormFieldCombobox,
|
|
1821
|
+
Bs as EmbeddedChatPrimitiveFormFieldComboboxContent,
|
|
1822
|
+
Ms as EmbeddedChatPrimitiveFormFieldComboboxControl,
|
|
1823
|
+
Es as EmbeddedChatPrimitiveFormFieldComboboxInput,
|
|
1824
|
+
xs as EmbeddedChatPrimitiveFormFieldComboboxItem,
|
|
1825
|
+
Hs as EmbeddedChatPrimitiveFormFieldComboboxItemIndicator,
|
|
1826
|
+
ws as EmbeddedChatPrimitiveFormFieldComboboxItemText,
|
|
1827
|
+
Ts as EmbeddedChatPrimitiveFormFieldComboboxList,
|
|
1828
|
+
Ds as EmbeddedChatPrimitiveFormFieldComboboxListEmpty,
|
|
1829
|
+
Ls as EmbeddedChatPrimitiveFormFieldComboboxListItems,
|
|
1830
|
+
ys as EmbeddedChatPrimitiveFormFieldComboboxPositioner,
|
|
1831
|
+
ks as EmbeddedChatPrimitiveFormFieldComboboxSelectedTags,
|
|
1832
|
+
Ss as EmbeddedChatPrimitiveFormFieldComboboxTrigger,
|
|
1833
|
+
Os as EmbeddedChatPrimitiveFormFieldDescription,
|
|
1834
|
+
ms as EmbeddedChatPrimitiveFormFieldEmail,
|
|
1835
|
+
Ns as EmbeddedChatPrimitiveFormFieldError,
|
|
1836
|
+
ls as EmbeddedChatPrimitiveFormFieldFile,
|
|
1837
|
+
ds as EmbeddedChatPrimitiveFormFieldLabel,
|
|
1838
|
+
bs as EmbeddedChatPrimitiveFormFieldSelect,
|
|
1839
|
+
_s as EmbeddedChatPrimitiveFormFieldSelectContent,
|
|
1839
1840
|
gs as EmbeddedChatPrimitiveFormFieldSelectIcon,
|
|
1840
|
-
|
|
1841
|
+
Ps as EmbeddedChatPrimitiveFormFieldSelectItem,
|
|
1841
1842
|
Is as EmbeddedChatPrimitiveFormFieldSelectItemIndicator,
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1843
|
+
As as EmbeddedChatPrimitiveFormFieldSelectItemText,
|
|
1844
|
+
ps as EmbeddedChatPrimitiveFormFieldSelectTrigger,
|
|
1845
|
+
vs as EmbeddedChatPrimitiveFormFieldSelectValue,
|
|
1846
|
+
Fs as EmbeddedChatPrimitiveFormFieldSelectViewport,
|
|
1846
1847
|
Ae as EmbeddedChatPrimitiveFormFieldText,
|
|
1847
|
-
|
|
1848
|
-
|
|
1848
|
+
hs as EmbeddedChatPrimitiveFormFieldTextArea,
|
|
1849
|
+
Ws as EmbeddedChatPrimitiveFormFooter,
|
|
1849
1850
|
os as EmbeddedChatPrimitiveFormHeader,
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
Gr as
|
|
1926
|
-
Yr as
|
|
1927
|
-
|
|
1928
|
-
Xr as
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
Kr as
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1851
|
+
ns as EmbeddedChatPrimitiveFormHeading,
|
|
1852
|
+
Us as EmbeddedChatPrimitiveFormSubmit,
|
|
1853
|
+
$s as EmbeddedChatPrimitiveFormSuccess,
|
|
1854
|
+
qs as EmbeddedChatPrimitiveFormSuccessButton,
|
|
1855
|
+
Qs as EmbeddedChatPrimitiveFormSuccessHeading,
|
|
1856
|
+
Ks as EmbeddedChatPrimitiveFormSuccessMessage,
|
|
1857
|
+
ts as EmbeddedChatPrimitiveFormWrapper,
|
|
1858
|
+
xo as EmbeddedChatPrimitiveHeaderToolbar,
|
|
1859
|
+
Lr as EmbeddedChatPrimitiveHelpActions,
|
|
1860
|
+
Nr as EmbeddedChatPrimitiveHelpActionsMenu,
|
|
1861
|
+
Rr as EmbeddedChatPrimitiveHelpActionsMenuArrow,
|
|
1862
|
+
Wr as EmbeddedChatPrimitiveHelpActionsMenuItem,
|
|
1863
|
+
Vr as EmbeddedChatPrimitiveHelpActionsMenuItemIcon,
|
|
1864
|
+
Or as EmbeddedChatPrimitiveHelpActionsTrigger,
|
|
1865
|
+
zn as EmbeddedChatPrimitiveInput,
|
|
1866
|
+
jn as EmbeddedChatPrimitiveInputGroup,
|
|
1867
|
+
rn as EmbeddedChatPrimitiveIntroMessageWrapper,
|
|
1868
|
+
Sn as EmbeddedChatPrimitiveMarkdown,
|
|
1869
|
+
wn as EmbeddedChatPrimitiveMessageAction,
|
|
1870
|
+
pn as EmbeddedChatPrimitiveMessageAttachments,
|
|
1871
|
+
gn as EmbeddedChatPrimitiveMessageAttachmentsItem,
|
|
1872
|
+
_n as EmbeddedChatPrimitiveMessageAttachmentsItemIcon,
|
|
1873
|
+
Fn as EmbeddedChatPrimitiveMessageAttachmentsItemTitle,
|
|
1874
|
+
vn as EmbeddedChatPrimitiveMessageAttachmentsList,
|
|
1875
|
+
Pn as EmbeddedChatPrimitiveMessageAttachmentsPreview,
|
|
1876
|
+
En as EmbeddedChatPrimitiveMessageAttachmentsPreviewBody,
|
|
1877
|
+
Mn as EmbeddedChatPrimitiveMessageAttachmentsPreviewClose,
|
|
1878
|
+
In as EmbeddedChatPrimitiveMessageAttachmentsPreviewContent,
|
|
1879
|
+
fn as EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader,
|
|
1880
|
+
An as EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay,
|
|
1881
|
+
dn as EmbeddedChatPrimitiveMessageAvatar,
|
|
1882
|
+
mn as EmbeddedChatPrimitiveMessageAvatarContent,
|
|
1883
|
+
ln as EmbeddedChatPrimitiveMessageAvatarFallback,
|
|
1884
|
+
hn as EmbeddedChatPrimitiveMessageAvatarImage,
|
|
1885
|
+
bn as EmbeddedChatPrimitiveMessageContent,
|
|
1886
|
+
Cn as EmbeddedChatPrimitiveMessageContentWrapper,
|
|
1887
|
+
xn as EmbeddedChatPrimitiveMessageCustomAction,
|
|
1888
|
+
Tn as EmbeddedChatPrimitiveMessageCustomActions,
|
|
1889
|
+
sn as EmbeddedChatPrimitiveMessageHeader,
|
|
1890
|
+
cn as EmbeddedChatPrimitiveMessageLoading,
|
|
1891
|
+
un as EmbeddedChatPrimitiveMessageName,
|
|
1892
|
+
On as EmbeddedChatPrimitiveMessageSourceItem,
|
|
1893
|
+
Nn as EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,
|
|
1894
|
+
$n as EmbeddedChatPrimitiveMessageSourceItemDescription,
|
|
1895
|
+
Qn as EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,
|
|
1896
|
+
Wn as EmbeddedChatPrimitiveMessageSourceItemIcon,
|
|
1897
|
+
Kn as EmbeddedChatPrimitiveMessageSourceItemIndicator,
|
|
1898
|
+
Un as EmbeddedChatPrimitiveMessageSourceItemTag,
|
|
1899
|
+
Vn as EmbeddedChatPrimitiveMessageSourceItemTitle,
|
|
1900
|
+
Hn as EmbeddedChatPrimitiveMessageSources,
|
|
1901
|
+
Ln as EmbeddedChatPrimitiveMessageSourcesHeader,
|
|
1902
|
+
Dn as EmbeddedChatPrimitiveMessageSourcesList,
|
|
1903
|
+
yn as EmbeddedChatPrimitiveMessageToolbar,
|
|
1904
|
+
$t as EmbeddedChatPrimitiveMessageWrapper,
|
|
1905
|
+
$o as EmbeddedChatPrimitiveMessages,
|
|
1906
|
+
yo as EmbeddedChatPrimitiveRoot,
|
|
1907
|
+
Gn as EmbeddedChatPrimitiveSendButton,
|
|
1908
|
+
Yn as EmbeddedChatPrimitiveSendButtonIcon,
|
|
1909
|
+
wr as EmbeddedChatPrimitiveTaglineBrandName,
|
|
1910
|
+
yr as EmbeddedChatPrimitiveTaglineContainer,
|
|
1911
|
+
xr as EmbeddedChatPrimitiveTaglineLogo,
|
|
1912
|
+
Tr as EmbeddedChatPrimitiveTaglineText,
|
|
1913
|
+
Do as EmbeddedChatPrimitiveToolbarHeader,
|
|
1914
|
+
wo as EmbeddedChatPrimitiveToolbarHeaderWrapper,
|
|
1915
|
+
nn as EmbeddedChatPrimitiveWorkflow,
|
|
1916
|
+
tn as EmbeddedChatPrimitiveWorkflows,
|
|
1917
|
+
an as EmbeddedChatPrimitiveWorkflowsLabel,
|
|
1918
|
+
on as EmbeddedChatPrimitiveWorkflowsList,
|
|
1919
|
+
Bo as EmbeddedChatPrimitiveWrapper,
|
|
1920
|
+
Xo as ExampleQuestion,
|
|
1921
|
+
en as ExampleQuestionButton,
|
|
1922
|
+
Yo as ExampleQuestions,
|
|
1923
|
+
Zo as ExampleQuestionsLabel,
|
|
1924
|
+
Jo as ExampleQuestionsList,
|
|
1925
|
+
zr as FeedbackForm,
|
|
1926
|
+
Gr as FeedbackItem,
|
|
1927
|
+
Yr as FeedbackItemCheckbox,
|
|
1928
|
+
Zr as FeedbackItemCheckboxIndicator,
|
|
1929
|
+
Xr as FeedbackItemDescription,
|
|
1930
|
+
Jr as FeedbackItemLabel,
|
|
1931
|
+
Ur as FeedbackModal,
|
|
1932
|
+
jr as FeedbackModalBody,
|
|
1933
|
+
qr as FeedbackModalClose,
|
|
1934
|
+
Qr as FeedbackModalContent,
|
|
1935
|
+
Kr as FeedbackModalHeader,
|
|
1936
|
+
$r as FeedbackModalOverlay,
|
|
1937
|
+
es as FeedbackSubmitButton,
|
|
1938
|
+
Js as FileContent,
|
|
1939
|
+
Xs as FileInput,
|
|
1940
|
+
ec as FileItem,
|
|
1941
|
+
tc as FileList,
|
|
1942
|
+
ic as FileName,
|
|
1943
|
+
ac as FilePreviewTrigger,
|
|
1944
|
+
oc as FileRemove,
|
|
1945
|
+
nc as FileRemoveIcon,
|
|
1946
|
+
rc as FileThumbnail,
|
|
1947
|
+
sc as FileTypeIcon,
|
|
1948
|
+
cc as FileUploadButton,
|
|
1949
|
+
dc as FileUploadButtonIcon,
|
|
1950
|
+
qn as Footer,
|
|
1951
|
+
is as Form,
|
|
1952
|
+
Vs as FormCancel,
|
|
1953
|
+
as as FormClose,
|
|
1954
|
+
ss as FormContent,
|
|
1955
|
+
rs as FormDescription,
|
|
1956
|
+
Rs as FormError,
|
|
1957
|
+
cs as FormField,
|
|
1958
|
+
us as FormFieldCheckbox,
|
|
1959
|
+
Cs as FormFieldCheckboxIndicator,
|
|
1960
|
+
fs as FormFieldCombobox,
|
|
1961
|
+
Bs as FormFieldComboboxContent,
|
|
1962
|
+
Ms as FormFieldComboboxControl,
|
|
1963
|
+
Es as FormFieldComboboxInput,
|
|
1964
|
+
xs as FormFieldComboboxItem,
|
|
1965
|
+
Hs as FormFieldComboboxItemIndicator,
|
|
1966
|
+
ws as FormFieldComboboxItemText,
|
|
1967
|
+
Ts as FormFieldComboboxList,
|
|
1968
|
+
Ds as FormFieldComboboxListEmpty,
|
|
1969
|
+
Ls as FormFieldComboboxListItems,
|
|
1970
|
+
ys as FormFieldComboboxPositioner,
|
|
1971
|
+
ks as FormFieldComboboxSelectedTags,
|
|
1972
|
+
Ss as FormFieldComboboxTrigger,
|
|
1973
|
+
Os as FormFieldDescription,
|
|
1974
|
+
ms as FormFieldEmail,
|
|
1975
|
+
Ns as FormFieldError,
|
|
1976
|
+
ls as FormFieldFile,
|
|
1977
|
+
ds as FormFieldLabel,
|
|
1978
|
+
bs as FormFieldSelect,
|
|
1979
|
+
_s as FormFieldSelectContent,
|
|
1968
1980
|
gs as FormFieldSelectIcon,
|
|
1969
|
-
|
|
1981
|
+
Ps as FormFieldSelectItem,
|
|
1970
1982
|
Is as FormFieldSelectItemIndicator,
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1983
|
+
As as FormFieldSelectItemText,
|
|
1984
|
+
ps as FormFieldSelectTrigger,
|
|
1985
|
+
vs as FormFieldSelectValue,
|
|
1986
|
+
Fs as FormFieldSelectViewport,
|
|
1975
1987
|
Ae as FormFieldText,
|
|
1976
|
-
|
|
1977
|
-
|
|
1988
|
+
hs as FormFieldTextArea,
|
|
1989
|
+
Ws as FormFooter,
|
|
1978
1990
|
os as FormHeader,
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
1991
|
+
ns as FormHeading,
|
|
1992
|
+
Us as FormSubmit,
|
|
1993
|
+
$s as FormSuccess,
|
|
1994
|
+
qs as FormSuccessButton,
|
|
1995
|
+
Qs as FormSuccessHeading,
|
|
1996
|
+
Ks as FormSuccessMessage,
|
|
1997
|
+
ts as FormWrapper,
|
|
1998
|
+
To as Header,
|
|
1999
|
+
xo as HeaderToolbar,
|
|
2000
|
+
wo as HeaderToolbarWrapper,
|
|
2001
|
+
Lr as HelpActions,
|
|
2002
|
+
Nr as HelpActionsMenu,
|
|
2003
|
+
Rr as HelpActionsMenuArrow,
|
|
2004
|
+
Wr as HelpActionsMenuItem,
|
|
2005
|
+
Vr as HelpActionsMenuItemIcon,
|
|
2006
|
+
Or as HelpActionsTrigger,
|
|
2007
|
+
Fc as ImagePreviewModal,
|
|
2008
|
+
Pc as ImagePreviewModalClose,
|
|
2009
|
+
Ac as ImagePreviewModalContent,
|
|
2010
|
+
Ic as ImagePreviewModalFileName,
|
|
2011
|
+
fc as ImagePreviewModalFooter,
|
|
2012
|
+
Mc as ImagePreviewModalImage,
|
|
2013
|
+
Ec as ImagePreviewModalOverlay,
|
|
2014
|
+
zn as Input,
|
|
2015
|
+
mc as InputFieldset,
|
|
2016
|
+
jn as InputGroup,
|
|
2017
|
+
lc as InputNotification,
|
|
2018
|
+
hc as InputNotificationClose,
|
|
2019
|
+
uc as InputNotificationContent,
|
|
2020
|
+
Cc as InputNotificationHeader,
|
|
2021
|
+
bc as InputNotificationMessage,
|
|
2022
|
+
pc as InputNotificationTitle,
|
|
2023
|
+
rn as IntroMessageWrapper,
|
|
2024
|
+
Sn as Markdown,
|
|
2025
|
+
wn as MessageAction,
|
|
2026
|
+
pn as MessageAttachments,
|
|
2027
|
+
gn as MessageAttachmentsItem,
|
|
2028
|
+
_n as MessageAttachmentsItemIcon,
|
|
2029
|
+
Fn as MessageAttachmentsItemTitle,
|
|
2030
|
+
vn as MessageAttachmentsList,
|
|
2031
|
+
Pn as MessageAttachmentsPreview,
|
|
2032
|
+
En as MessageAttachmentsPreviewBody,
|
|
2033
|
+
Mn as MessageAttachmentsPreviewClose,
|
|
2034
|
+
In as MessageAttachmentsPreviewContent,
|
|
2035
|
+
fn as MessageAttachmentsPreviewHeader,
|
|
2036
|
+
An as MessageAttachmentsPreviewOverlay,
|
|
2037
|
+
dn as MessageAvatar,
|
|
2038
|
+
mn as MessageAvatarContent,
|
|
2039
|
+
ln as MessageAvatarFallback,
|
|
2040
|
+
hn as MessageAvatarImage,
|
|
2041
|
+
bn as MessageContent,
|
|
2042
|
+
Cn as MessageContentWrapper,
|
|
2043
|
+
xn as MessageCustomAction,
|
|
2044
|
+
Tn as MessageCustomActions,
|
|
2045
|
+
vc as MessageFile,
|
|
2046
|
+
gc as MessageFiles,
|
|
2047
|
+
sn as MessageHeader,
|
|
2048
|
+
cn as MessageLoading,
|
|
2049
|
+
un as MessageName,
|
|
2050
|
+
On as MessageSourceItem,
|
|
2051
|
+
Rn as MessageSourceItemBreadcrumbIcon,
|
|
2052
|
+
Nn as MessageSourceItemBreadcrumbs,
|
|
2053
|
+
$n as MessageSourceItemDescription,
|
|
2054
|
+
Qn as MessageSourceItemDescriptionPart,
|
|
2055
|
+
Wn as MessageSourceItemIcon,
|
|
2056
|
+
Kn as MessageSourceItemIndicator,
|
|
2057
|
+
Un as MessageSourceItemTag,
|
|
2058
|
+
Vn as MessageSourceItemTitle,
|
|
2059
|
+
Hn as MessageSources,
|
|
2060
|
+
Ln as MessageSourcesHeader,
|
|
2061
|
+
Dn as MessageSourcesList,
|
|
2062
|
+
yn as MessageToolbar,
|
|
2063
|
+
$t as MessageWrapper,
|
|
2064
|
+
$o as Messages,
|
|
2065
|
+
Bn as PrimitiveMessagePart,
|
|
2066
|
+
Gs as Provider,
|
|
2067
|
+
yo as Root,
|
|
2068
|
+
Gn as SendButton,
|
|
2069
|
+
Yn as SendButtonIcon,
|
|
2070
|
+
wr as TaglineBrandName,
|
|
2071
|
+
yr as TaglineContainer,
|
|
2072
|
+
xr as TaglineLogo,
|
|
2073
|
+
Tr as TaglineText,
|
|
2074
|
+
Do as ToolbarHeader,
|
|
2075
|
+
nn as Workflow,
|
|
2076
|
+
tn as Workflows,
|
|
2077
|
+
an as WorkflowsLabel,
|
|
2078
|
+
on as WorkflowsList,
|
|
2079
|
+
Bo as Wrapper
|
|
2053
2080
|
};
|