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