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