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