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