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