@inkeep/agents-ui 0.0.0-dev-20260402200940 → 0.0.0-dev-20260403205747
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 +165 -174
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +2 -6
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +232 -227
- package/dist/primitives/components/embedded-chat.cjs +5 -5
- package/dist/primitives/components/embedded-chat.d.ts +2 -112
- package/dist/primitives/components/embedded-chat.js +1082 -1511
- package/dist/primitives/hooks/use-initial-conversation.cjs +1 -0
- package/dist/primitives/hooks/use-initial-conversation.d.ts +16 -0
- package/dist/primitives/hooks/use-initial-conversation.js +31 -0
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +146 -155
- 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.js +37 -38
- package/dist/primitives/providers/index.cjs +1 -1
- package/dist/primitives/providers/index.d.ts +0 -3
- package/dist/primitives/providers/index.js +54 -63
- package/dist/primitives/utils/component-ids.cjs +1 -1
- package/dist/primitives/utils/component-ids.d.ts +0 -98
- package/dist/primitives/utils/component-ids.js +7 -56
- package/dist/primitives/utils/default-settings.cjs +1 -1
- package/dist/primitives/utils/default-settings.d.ts +0 -2
- package/dist/primitives/utils/default-settings.js +6 -8
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +261 -310
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +165 -174
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.d.ts +2 -50
- package/dist/styled/components/embedded-chat.js +568 -1041
- package/dist/styled/components/ui/recipes/citation.d.ts +1 -1
- package/dist/styled/components/ui/recipes/index.cjs +1 -1
- package/dist/styled/components/ui/recipes/index.d.ts +0 -1
- package/dist/styled/components/ui/recipes/index.js +31 -33
- package/dist/styled/index.cjs +1 -1
- package/dist/styled/index.js +150 -159
- package/dist/styled/inkeep.css.cjs +0 -66
- package/dist/styled/inkeep.css.js +0 -66
- package/dist/types/config/ai.d.ts +8 -10
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/primitives/providers/attachment-item-provider.cjs +0 -1
- package/dist/primitives/providers/attachment-item-provider.d.ts +0 -9
- package/dist/primitives/providers/attachment-item-provider.js +0 -13
- package/dist/primitives/providers/attachments-bar-provider.cjs +0 -1
- package/dist/primitives/providers/attachments-bar-provider.d.ts +0 -30
- package/dist/primitives/providers/attachments-bar-provider.js +0 -57
- package/dist/primitives/providers/message-attachments-provider.cjs +0 -1
- package/dist/primitives/providers/message-attachments-provider.d.ts +0 -13
- package/dist/primitives/providers/message-attachments-provider.js +0 -27
- package/dist/primitives/utils/get-message-metadata.d.ts +0 -8
- package/dist/styled/components/ui/recipes/attachment.cjs +0 -1
- package/dist/styled/components/ui/recipes/attachment.d.ts +0 -4
- package/dist/styled/components/ui/recipes/attachment.js +0 -28
- package/dist/types/config/settings/workflow.d.ts +0 -86
|
@@ -1,145 +1,144 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { Provider as
|
|
5
|
-
import { EmbeddedChatHistoryRoot as
|
|
6
|
-
import { Close as
|
|
7
|
-
import { Shadow as
|
|
8
|
-
import { EmbeddedChatMessagePart as
|
|
9
|
-
import { useChatHistory as
|
|
10
|
-
import { WebWidgetInteractionType as
|
|
11
|
-
import { RootProvider as
|
|
12
|
-
import { useWidget as
|
|
13
|
-
import { useChat as
|
|
14
|
-
import { useModal as
|
|
15
|
-
import { dataAttr as
|
|
16
|
-
import { PortalWithTheme as
|
|
17
|
-
import { ErrorBoundary as
|
|
18
|
-
import { ModalContent as
|
|
19
|
-
import { ImagePreviewProvider as
|
|
20
|
-
import { WidgetToggle as
|
|
2
|
+
import { jsx as e, jsxs as d, Fragment as u } from "react/jsx-runtime";
|
|
3
|
+
import x, { Fragment as k } from "react";
|
|
4
|
+
import { Provider as R, Wrapper as O, Root as j, Header as G, HeaderToolbar as U, HeaderToolbarWrapper as K, ChatHistoryTrigger as Z, Content as z, ContentScrollArea as J, ContentScrollAreaViewport as X, MessagesSessionLoading as Y, ContentScrollAreaScrollbar as q, ContentScrollAreaThumb as ee, ContentScrollAreaCorner as de, Footer as te, FeedbackModal as ae, FeedbackModalOverlay as oe, FeedbackModalContent as re, FeedbackModalHeader as ne, FeedbackModalClose as ie, FeedbackModalBody as me, FeedbackForm as se, FeedbackItem as b, FeedbackItemCheckbox as C, FeedbackItemCheckboxIndicator as F, FeedbackItemLabel as E, FeedbackItemDescription as g, FeedbackSubmitButton as ce, FormWrapper as le, FormClose as he, Form as be, FormHeader as Ce, FormHeading as Fe, FormDescription as Ee, FormContent as ue, FormField as pe, FormFieldLabel as ge, FormFieldText as Ie, FormFieldEmail as Me, FormFieldFile as Se, FormFieldTextArea as Te, FormFieldCheckbox as xe, FormFieldCheckboxIndicator as Ae, FormFieldSelect as He, FormFieldSelectTrigger as ke, FormFieldSelectValue as ye, FormFieldSelectIcon as fe, FormFieldSelectContent as we, FormFieldSelectViewport as ve, FormFieldSelectItem as Le, FormFieldSelectItemText as Be, FormFieldSelectItemIndicator as De, FormFieldCombobox as Pe, FormFieldComboboxControl as We, FormFieldComboboxSelectedTags as Ne, FormFieldComboboxInput as _e, FormFieldComboboxTrigger as Ve, FormFieldComboboxPositioner as Qe, FormFieldComboboxContent as $e, FormFieldComboboxList as Re, FormFieldComboboxListItems as Oe, FormFieldComboboxListEmpty as je, FormFieldComboboxItem as Ge, FormFieldComboboxItemText as Ue, FormFieldComboboxItemIndicator as Ke, FormFieldDescription as Ze, FormFieldError as ze, FormError as Je, FormFooter as Xe, FormCancel as Ye, FormSubmit as qe, FormSuccess as ed, FormSuccessHeading as dd, FormSuccessMessage as td, FormSuccessButton as ad, Messages as od, MessageWrapper as A, MessageContentWrapper as y, MessageContent as f, DynamicComponent as rd, MessageLoading as nd, InputFieldset as id, InputGroup as md, Input as sd, SendButton as cd, SendButtonIcon as ld, ActionBar as hd, TaglineContainer as bd, TaglineText as Cd, TaglineLogo as Fd, TaglineBrandName as Ed, Actions as ud, HelpActions as pd, HelpAction as gd, HelpActionsTrigger as Id, HelpActionsMenu as Md, HelpActionsMenuArrow as Sd, HelpActionsMenuItem as Td, HelpActionsMenuItemIcon as xd, ChatAction as I, ChatActionLabel as Ad, ChatActionFeedback as Hd, IntroMessageWrapper as kd, MessageHeader as w, MessageAvatar as v, MessageAvatarContent as L, MessageAvatarImage as B, MessageName as D, Disclaimer as yd, DisclaimerLabel as fd, DisclaimerTrigger as wd, DisclaimerContent as vd, DisclaimerText as Ld, DisclaimerArrow as Bd, ExampleQuestions as Dd, ExampleQuestionsLabel as Pd, ExampleQuestionsList as Wd, ExampleQuestion as Nd, ExampleQuestionButton as _d, Markdown as Vd, MessageSources as Qd, MessageSourcesHeader as $d, MessageSourcesList as Rd, MessageSourceItem as Od, MessageSourceItemBreadcrumbs as jd, MessageSourceItemBreadcrumbIcon as Gd, MessageSourceItemIcon as Ud, MessageSourceItemTitle as Kd, MessageSourceItemTag as Zd, MessageSourceItemDescription as zd, MessageSourceItemDescriptionPart as Jd, MessageSourceItemIndicator as Xd, MessageToolbar as Yd, MessageCustomActions as qd, MessageCustomAction as et, MessageAction as M } from "../styled/components/embedded-chat.js";
|
|
5
|
+
import { EmbeddedChatHistoryRoot as dt, EmbeddedChatHistoryHeader as tt, EmbeddedChatHistoryBackButton as at, EmbeddedChatHistoryBackButtonIcon as ot, EmbeddedChatHistoryTitle as rt, EmbeddedChatHistoryList as nt, EmbeddedChatHistoryItem as it, EmbeddedChatHistoryItemTitle as mt, EmbeddedChatHistoryItemDate as st, formatSessionDate as ct, EmbeddedChatHistoryEmptyState as lt, EmbeddedChatHistoryLoadingState as ht, EmbeddedChatHistoryFooter as bt, EmbeddedChatHistoryNewConversationButton as Ct } from "../styled/components/chat-history.js";
|
|
6
|
+
import { Close as S } from "../styled/components/modal.js";
|
|
7
|
+
import { Shadow as Ft } from "../styled/components/shadow.js";
|
|
8
|
+
import { EmbeddedChatMessagePart as P } from "../styled/components/message.js";
|
|
9
|
+
import { useChatHistory as Et } from "../primitives/providers/chat-history-provider.js";
|
|
10
|
+
import { WebWidgetInteractionType as ut, useInkeepConfig as W } from "../primitives/providers/config-provider.js";
|
|
11
|
+
import { RootProvider as pt } from "../primitives/providers/root-provider.js";
|
|
12
|
+
import { useWidget as gt } from "../primitives/providers/widget-provider.js";
|
|
13
|
+
import { useChat as N } from "../primitives/components/embedded-chat/chat-provider.js";
|
|
14
|
+
import { useModal as It } from "../primitives/components/modal/modal-provider.js";
|
|
15
|
+
import { dataAttr as p } from "../primitives/utils/misc.js";
|
|
16
|
+
import { PortalWithTheme as _ } from "../primitives/atoms/portal-with-theme.js";
|
|
17
|
+
import { ErrorBoundary as Mt } from "../primitives/atoms/error-boundary.js";
|
|
18
|
+
import { ModalContent as St } from "./modal.js";
|
|
19
|
+
import { ImagePreviewProvider as Tt } from "../primitives/providers/image-preview-provider.js";
|
|
20
|
+
import { WidgetToggle as xt } from "./widget-toggle.js";
|
|
21
21
|
import { isImageMimeType as V } from "../primitives/components/embedded-chat/file-upload-input.js";
|
|
22
|
-
import { EmbeddedChatInputNotification as
|
|
23
|
-
import { EmbeddedChatImagePreviewModal as
|
|
24
|
-
function
|
|
25
|
-
const { baseSettings:
|
|
26
|
-
return /* @__PURE__ */ e(
|
|
27
|
-
|
|
22
|
+
import { EmbeddedChatInputNotification as At, EmbeddedChatInputNotificationContent as Ht, EmbeddedChatInputNotificationHeader as kt, EmbeddedChatInputNotificationTitle as yt, EmbeddedChatInputNotificationClose as ft, EmbeddedChatInputNotificationMessage as wt, EmbeddedChatFileInput as vt, EmbeddedChatDropZone as Lt, EmbeddedChatFileList as Bt, EmbeddedChatFileItem as Dt, EmbeddedChatFilePreviewTrigger as Pt, EmbeddedChatFileThumbnail as Q, EmbeddedChatFileName as T, EmbeddedChatFileContent as Wt, EmbeddedChatFileTypeIcon as $, EmbeddedChatFileRemove as Nt, EmbeddedChatFileUploadButton as _t, EmbeddedChatMessageFiles as Vt, EmbeddedChatMessageFile as Qt } from "../styled/components/embedded-chat/file-upload-input.js";
|
|
23
|
+
import { EmbeddedChatImagePreviewModal as $t, EmbeddedChatImagePreviewModalOverlay as Rt, EmbeddedChatImagePreviewModalContent as Ot, EmbeddedChatImagePreviewModalClose as jt, EmbeddedChatImagePreviewModalImage as Gt, EmbeddedChatImagePreviewModalFooter as Ut, EmbeddedChatImagePreviewModalFileName as Kt } from "../styled/components/embedded-chat/image-preview-modal.js";
|
|
24
|
+
function Ba(a) {
|
|
25
|
+
const { baseSettings: t, aiChatSettings: o } = a;
|
|
26
|
+
return /* @__PURE__ */ e(Mt, { children: /* @__PURE__ */ e(
|
|
27
|
+
Ft,
|
|
28
28
|
{
|
|
29
29
|
wrapperStyles: {
|
|
30
30
|
height: "inherit",
|
|
31
31
|
width: "inherit"
|
|
32
32
|
},
|
|
33
33
|
children: /* @__PURE__ */ e(
|
|
34
|
-
|
|
34
|
+
pt,
|
|
35
35
|
{
|
|
36
36
|
config: {
|
|
37
|
-
baseSettings:
|
|
38
|
-
aiChatSettings:
|
|
37
|
+
baseSettings: t,
|
|
38
|
+
aiChatSettings: o
|
|
39
39
|
},
|
|
40
|
-
componentType:
|
|
41
|
-
children: /* @__PURE__ */ e(
|
|
40
|
+
componentType: ut.EmbeddedChat,
|
|
41
|
+
children: /* @__PURE__ */ e(zt, { ...a })
|
|
42
42
|
}
|
|
43
43
|
)
|
|
44
44
|
}
|
|
45
45
|
) });
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
const { children:
|
|
49
|
-
return /* @__PURE__ */ e(
|
|
47
|
+
function Zt(a) {
|
|
48
|
+
const { children: t, onToggleView: o, isHidden: r, shouldAutoFocusInput: n = !o } = a;
|
|
49
|
+
return /* @__PURE__ */ e(R, { isHidden: r, shouldAutoFocusInput: n, children: t });
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return /* @__PURE__ */ e(
|
|
51
|
+
function zt(a) {
|
|
52
|
+
return /* @__PURE__ */ e(Zt, { ...a, children: /* @__PURE__ */ e(Jt, { ...a }) });
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
const { onToggleView:
|
|
56
|
-
return /* @__PURE__ */ e(
|
|
57
|
-
|
|
54
|
+
function Jt(a) {
|
|
55
|
+
const { onToggleView: t, variant: o, header: r = Xt } = a, n = It(), m = gt();
|
|
56
|
+
return /* @__PURE__ */ e(Tt, { children: /* @__PURE__ */ e(n && !m ? St : k, { children: /* @__PURE__ */ d(
|
|
57
|
+
O,
|
|
58
58
|
{
|
|
59
|
-
variant:
|
|
60
|
-
"data-composite":
|
|
59
|
+
variant: o ?? (t ? "no-shadow" : "container-with-shadow"),
|
|
60
|
+
"data-composite": p(!!a.onToggleView || n?.isOpen),
|
|
61
61
|
children: [
|
|
62
|
-
/* @__PURE__ */ e(
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
|
|
65
|
-
/* @__PURE__ */ e(
|
|
66
|
-
/* @__PURE__ */ e(
|
|
62
|
+
/* @__PURE__ */ e(ma, {}),
|
|
63
|
+
/* @__PURE__ */ d(j, { children: [
|
|
64
|
+
r && /* @__PURE__ */ e(r, { ...a }),
|
|
65
|
+
/* @__PURE__ */ e(Yt, {}),
|
|
66
|
+
/* @__PURE__ */ e(ra, {})
|
|
67
67
|
] }),
|
|
68
|
-
/* @__PURE__ */ e(
|
|
69
|
-
/* @__PURE__ */ e(
|
|
70
|
-
/* @__PURE__ */ e(
|
|
68
|
+
/* @__PURE__ */ e(sa, {}),
|
|
69
|
+
/* @__PURE__ */ e(da, {}),
|
|
70
|
+
/* @__PURE__ */ e(ca, {})
|
|
71
71
|
]
|
|
72
72
|
}
|
|
73
73
|
) }) });
|
|
74
74
|
}
|
|
75
|
-
const
|
|
76
|
-
const { onToggleView:
|
|
77
|
-
return /* @__PURE__ */ e(G, { "data-show-toolbar":
|
|
75
|
+
const Xt = (a) => {
|
|
76
|
+
const { onToggleView: t, askAILabel: o, searchLabel: r } = a, { aiChatSettings: n } = W(), m = n.isChatHistoryButtonVisible, s = !!t || m;
|
|
77
|
+
return /* @__PURE__ */ e(G, { "data-show-toolbar": p(s), children: s ? /* @__PURE__ */ d(U, { "data-show-widget-toggle": p(!!t), children: [
|
|
78
78
|
/* @__PURE__ */ e(K, { children: m && /* @__PURE__ */ e(Z, {}) }),
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
t && /* @__PURE__ */ e(
|
|
80
|
+
xt,
|
|
81
81
|
{
|
|
82
|
-
onToggleView:
|
|
83
|
-
askAILabel:
|
|
84
|
-
searchLabel:
|
|
82
|
+
onToggleView: t,
|
|
83
|
+
askAILabel: o,
|
|
84
|
+
searchLabel: r,
|
|
85
85
|
view: "chat"
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
/* @__PURE__ */ e(
|
|
89
|
-
] }) : /* @__PURE__ */ e(
|
|
88
|
+
/* @__PURE__ */ e(S, {})
|
|
89
|
+
] }) : /* @__PURE__ */ e(S, {}) });
|
|
90
90
|
};
|
|
91
|
-
function
|
|
92
|
-
const { isSessionLoading: a } =
|
|
93
|
-
return /* @__PURE__ */ e(z, { children: /* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */ e(X, { children: a ? /* @__PURE__ */ e(Y, {}) : /* @__PURE__ */ e(
|
|
91
|
+
function Yt() {
|
|
92
|
+
const { isSessionLoading: a } = N();
|
|
93
|
+
return /* @__PURE__ */ e(z, { children: /* @__PURE__ */ d(J, { children: [
|
|
94
|
+
/* @__PURE__ */ e(X, { children: a ? /* @__PURE__ */ e(Y, {}) : /* @__PURE__ */ e(qt, {}) }),
|
|
95
95
|
/* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(ee, {}) }),
|
|
96
|
-
/* @__PURE__ */ e(
|
|
96
|
+
/* @__PURE__ */ e(de, {})
|
|
97
97
|
] }) });
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function qt() {
|
|
100
100
|
const {
|
|
101
101
|
aiChatSettings: { components: a }
|
|
102
|
-
} =
|
|
103
|
-
return /* @__PURE__ */ e(
|
|
104
|
-
const n =
|
|
105
|
-
const
|
|
106
|
-
if (!
|
|
107
|
-
return console.warn(`Component "${
|
|
102
|
+
} = W();
|
|
103
|
+
return /* @__PURE__ */ e(od, { children: ({ messages: t, isLoading: o, isStreaming: r }) => {
|
|
104
|
+
const n = t.at(-1), m = (i, c) => {
|
|
105
|
+
const l = a?.[i];
|
|
106
|
+
if (!l)
|
|
107
|
+
return console.warn(`Component "${i}" not found in components config`), null;
|
|
108
108
|
try {
|
|
109
|
-
if (typeof
|
|
110
|
-
return
|
|
111
|
-
const
|
|
112
|
-
return
|
|
113
|
-
} catch (
|
|
114
|
-
return console.error(`🔍 [renderComponent] Error rendering component "${
|
|
109
|
+
if (typeof l == "function" && l.length <= 1)
|
|
110
|
+
return x.createElement(l, c);
|
|
111
|
+
const h = l(c, document.createElement("div"), null);
|
|
112
|
+
return x.isValidElement(h) || typeof h == "string" ? h : null;
|
|
113
|
+
} catch (h) {
|
|
114
|
+
return console.error(`🔍 [renderComponent] Error rendering component "${i}":`, h), null;
|
|
115
115
|
}
|
|
116
|
-
},
|
|
117
|
-
return /* @__PURE__ */
|
|
118
|
-
/* @__PURE__ */ e(
|
|
119
|
-
|
|
120
|
-
const c = n?.id ===
|
|
121
|
-
return /* @__PURE__ */
|
|
116
|
+
}, s = (i) => /* @__PURE__ */ e(Vd, { text: i });
|
|
117
|
+
return /* @__PURE__ */ d(u, { children: [
|
|
118
|
+
/* @__PURE__ */ e(ea, {}),
|
|
119
|
+
t.map((i) => {
|
|
120
|
+
const c = n?.id === i.id;
|
|
121
|
+
return /* @__PURE__ */ d(A, { message: i, children: [
|
|
122
122
|
/* @__PURE__ */ e(H, {}),
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */ e(
|
|
125
|
-
|
|
123
|
+
/* @__PURE__ */ d(y, { children: [
|
|
124
|
+
/* @__PURE__ */ e(f, { children: a?.IkpMessage ? /* @__PURE__ */ e(
|
|
125
|
+
rd,
|
|
126
126
|
{
|
|
127
127
|
name: "IkpMessage",
|
|
128
|
-
props: { message:
|
|
128
|
+
props: { message: i, renderComponent: m, renderMarkdown: s },
|
|
129
129
|
componentDef: a.IkpMessage
|
|
130
130
|
}
|
|
131
|
-
) : /* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */ e(
|
|
133
|
-
(!
|
|
131
|
+
) : /* @__PURE__ */ d(u, { children: [
|
|
132
|
+
/* @__PURE__ */ e(P, { isLast: c }),
|
|
133
|
+
(!r || !c) && /* @__PURE__ */ e(oa, {})
|
|
134
134
|
] }) }),
|
|
135
|
-
/* @__PURE__ */ e(
|
|
136
|
-
/* @__PURE__ */ e(
|
|
137
|
-
/* @__PURE__ */ e(Ua, {})
|
|
135
|
+
/* @__PURE__ */ e(ta, {}),
|
|
136
|
+
/* @__PURE__ */ e(aa, {})
|
|
138
137
|
] })
|
|
139
|
-
] },
|
|
138
|
+
] }, i.id);
|
|
140
139
|
}),
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
o && n?.parts.length && /* @__PURE__ */ d(
|
|
141
|
+
A,
|
|
143
142
|
{
|
|
144
143
|
message: {
|
|
145
144
|
id: "___loader___",
|
|
@@ -148,298 +147,250 @@ function $a() {
|
|
|
148
147
|
},
|
|
149
148
|
children: [
|
|
150
149
|
/* @__PURE__ */ e(H, {}),
|
|
151
|
-
/* @__PURE__ */ e(
|
|
150
|
+
/* @__PURE__ */ e(nd, {})
|
|
152
151
|
]
|
|
153
152
|
}
|
|
154
153
|
)
|
|
155
154
|
] });
|
|
156
155
|
} });
|
|
157
156
|
}
|
|
158
|
-
function
|
|
159
|
-
return /* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
/* @__PURE__ */ e(
|
|
162
|
-
/* @__PURE__ */ e(
|
|
157
|
+
function ea() {
|
|
158
|
+
return /* @__PURE__ */ d(kd, { children: [
|
|
159
|
+
/* @__PURE__ */ d(w, { children: [
|
|
160
|
+
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(B, {}) }) }),
|
|
161
|
+
/* @__PURE__ */ e(D, {})
|
|
163
162
|
] }),
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */ e(
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */ e(
|
|
168
|
-
/* @__PURE__ */ e(
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */ e(
|
|
171
|
-
/* @__PURE__ */ e(
|
|
163
|
+
/* @__PURE__ */ d(y, { children: [
|
|
164
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(P, { isLast: !1 }) }),
|
|
165
|
+
/* @__PURE__ */ d(yd, { children: [
|
|
166
|
+
/* @__PURE__ */ e(fd, {}),
|
|
167
|
+
/* @__PURE__ */ e(wd, {}),
|
|
168
|
+
/* @__PURE__ */ d(vd, { children: [
|
|
169
|
+
/* @__PURE__ */ e(Ld, {}),
|
|
170
|
+
/* @__PURE__ */ e(Bd, {})
|
|
172
171
|
] })
|
|
173
172
|
] }),
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
/* @__PURE__ */ e(
|
|
176
|
-
/* @__PURE__ */ e(
|
|
177
|
-
|
|
173
|
+
/* @__PURE__ */ d(Dd, { children: [
|
|
174
|
+
/* @__PURE__ */ e(Pd, {}),
|
|
175
|
+
/* @__PURE__ */ e(Wd, { children: (a) => a.map((t) => /* @__PURE__ */ e(
|
|
176
|
+
Nd,
|
|
178
177
|
{
|
|
179
|
-
children: /* @__PURE__ */ e(
|
|
178
|
+
children: /* @__PURE__ */ e(_d, { question: t })
|
|
180
179
|
},
|
|
181
|
-
typeof
|
|
180
|
+
typeof t == "object" ? t.label : t
|
|
182
181
|
)) })
|
|
183
182
|
] })
|
|
184
183
|
] })
|
|
185
184
|
] });
|
|
186
185
|
}
|
|
187
186
|
function H() {
|
|
188
|
-
return /* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */ e(
|
|
190
|
-
/* @__PURE__ */ e(
|
|
187
|
+
return /* @__PURE__ */ d(w, { children: [
|
|
188
|
+
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(B, {}) }) }),
|
|
189
|
+
/* @__PURE__ */ e(D, {})
|
|
191
190
|
] });
|
|
192
191
|
}
|
|
193
|
-
function
|
|
194
|
-
return /* @__PURE__ */ e(
|
|
195
|
-
/* @__PURE__ */ e(
|
|
196
|
-
/* @__PURE__ */ e(
|
|
197
|
-
/* @__PURE__ */ e(
|
|
192
|
+
function da() {
|
|
193
|
+
return /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e($t, { children: /* @__PURE__ */ e(Rt, { children: /* @__PURE__ */ d(Ot, { children: [
|
|
194
|
+
/* @__PURE__ */ e(jt, {}),
|
|
195
|
+
/* @__PURE__ */ e(Gt, {}),
|
|
196
|
+
/* @__PURE__ */ e(Ut, { children: /* @__PURE__ */ e(Kt, {}) })
|
|
198
197
|
] }) }) }) });
|
|
199
198
|
}
|
|
200
|
-
function
|
|
201
|
-
return /* @__PURE__ */ e(
|
|
202
|
-
const
|
|
203
|
-
return /* @__PURE__ */
|
|
204
|
-
|
|
199
|
+
function ta() {
|
|
200
|
+
return /* @__PURE__ */ e(Vt, { children: (a) => a.map((t, o) => {
|
|
201
|
+
const r = t.url, n = t.mediaType ?? "", m = n.split("/").pop(), s = t.filename ?? (m ? `untitled.${m}` : "untitled"), i = V(n);
|
|
202
|
+
return /* @__PURE__ */ d(Qt, { url: r, name: s, mediaType: n, children: [
|
|
203
|
+
i ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ e($, {}),
|
|
205
204
|
/* @__PURE__ */ e(T, {})
|
|
206
|
-
] },
|
|
205
|
+
] }, r || o);
|
|
207
206
|
}) });
|
|
208
207
|
}
|
|
209
|
-
function
|
|
210
|
-
return /* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */ e(
|
|
212
|
-
/* @__PURE__ */ e(wd, {}),
|
|
213
|
-
/* @__PURE__ */ e(Ld, {})
|
|
214
|
-
] }, d.id)) }),
|
|
215
|
-
/* @__PURE__ */ e(Dd, { children: /* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(Pd, { children: /* @__PURE__ */ t(Wd, { children: [
|
|
216
|
-
/* @__PURE__ */ e(Nd, {}),
|
|
217
|
-
/* @__PURE__ */ e(_d, {}),
|
|
218
|
-
/* @__PURE__ */ e(Vd, {})
|
|
219
|
-
] }) }) }) })
|
|
220
|
-
] });
|
|
221
|
-
}
|
|
222
|
-
function Ua() {
|
|
223
|
-
return /* @__PURE__ */ t(Qd, { children: [
|
|
224
|
-
/* @__PURE__ */ e($d, { children: (a) => a.map((d, r) => /* @__PURE__ */ e(Od, { action: d }, `action-${r}`)) }),
|
|
208
|
+
function aa() {
|
|
209
|
+
return /* @__PURE__ */ d(Yd, { children: [
|
|
210
|
+
/* @__PURE__ */ e(qd, { children: (a) => a.map((t, o) => /* @__PURE__ */ e(et, { action: t }, `action-${o}`)) }),
|
|
225
211
|
/* @__PURE__ */ e(M, { action: "copy" }),
|
|
226
212
|
/* @__PURE__ */ e(M, { action: "upvote" }),
|
|
227
213
|
/* @__PURE__ */ e(M, { action: "downvote" })
|
|
228
214
|
] });
|
|
229
215
|
}
|
|
230
|
-
function
|
|
231
|
-
return /* @__PURE__ */
|
|
232
|
-
/* @__PURE__ */ e(
|
|
233
|
-
/* @__PURE__ */ e(
|
|
234
|
-
/* @__PURE__ */ e(
|
|
235
|
-
|
|
236
|
-
/* @__PURE__ */ e(
|
|
237
|
-
] },
|
|
238
|
-
/* @__PURE__ */ e(
|
|
239
|
-
/* @__PURE__ */ e(
|
|
240
|
-
/* @__PURE__ */ e(
|
|
241
|
-
/* @__PURE__ */ e(
|
|
242
|
-
|
|
216
|
+
function oa() {
|
|
217
|
+
return /* @__PURE__ */ d(Qd, { children: [
|
|
218
|
+
/* @__PURE__ */ e($d, {}),
|
|
219
|
+
/* @__PURE__ */ e(Rd, { children: (a) => a.map((t, o) => /* @__PURE__ */ d(Od, { href: t.url, source: t, children: [
|
|
220
|
+
/* @__PURE__ */ e(jd, { children: t.breadcrumbs?.map((r) => /* @__PURE__ */ d(k, { children: [
|
|
221
|
+
r,
|
|
222
|
+
/* @__PURE__ */ e(Gd, {})
|
|
223
|
+
] }, r)) }),
|
|
224
|
+
/* @__PURE__ */ e(Ud, {}),
|
|
225
|
+
/* @__PURE__ */ e(Kd, {}),
|
|
226
|
+
/* @__PURE__ */ e(Zd, {}),
|
|
227
|
+
/* @__PURE__ */ e(zd, { children: (r) => r.map((n, m) => /* @__PURE__ */ e(
|
|
228
|
+
Jd,
|
|
243
229
|
{
|
|
244
230
|
part: n
|
|
245
231
|
},
|
|
246
232
|
`part-${m}`
|
|
247
233
|
)) }),
|
|
248
|
-
/* @__PURE__ */ e(
|
|
249
|
-
] },
|
|
234
|
+
/* @__PURE__ */ e(Xd, {})
|
|
235
|
+
] }, o)) })
|
|
250
236
|
] });
|
|
251
237
|
}
|
|
252
|
-
function
|
|
253
|
-
return /* @__PURE__ */
|
|
254
|
-
/* @__PURE__ */ e(
|
|
255
|
-
/* @__PURE__ */
|
|
256
|
-
/* @__PURE__ */ e(
|
|
257
|
-
/* @__PURE__ */ e(
|
|
238
|
+
function ra() {
|
|
239
|
+
return /* @__PURE__ */ d(te, { children: [
|
|
240
|
+
/* @__PURE__ */ e(At, { children: /* @__PURE__ */ d(Ht, { children: [
|
|
241
|
+
/* @__PURE__ */ d(kt, { children: [
|
|
242
|
+
/* @__PURE__ */ e(yt, {}),
|
|
243
|
+
/* @__PURE__ */ e(ft, {})
|
|
258
244
|
] }),
|
|
259
|
-
/* @__PURE__ */ e(
|
|
245
|
+
/* @__PURE__ */ e(wt, {})
|
|
260
246
|
] }) }),
|
|
261
|
-
/* @__PURE__ */ e(
|
|
262
|
-
/* @__PURE__ */ e(
|
|
247
|
+
/* @__PURE__ */ e(na, {}),
|
|
248
|
+
/* @__PURE__ */ e(ia, {})
|
|
263
249
|
] });
|
|
264
250
|
}
|
|
265
|
-
function
|
|
266
|
-
return /* @__PURE__ */
|
|
267
|
-
/* @__PURE__ */ e(
|
|
268
|
-
/* @__PURE__ */ e(
|
|
269
|
-
/* @__PURE__ */ e(
|
|
270
|
-
const
|
|
271
|
-
return /* @__PURE__ */
|
|
272
|
-
|
|
251
|
+
function na() {
|
|
252
|
+
return /* @__PURE__ */ d(id, { children: [
|
|
253
|
+
/* @__PURE__ */ e(vt, {}),
|
|
254
|
+
/* @__PURE__ */ e(Lt, { children: "Drop files here to add to chat" }),
|
|
255
|
+
/* @__PURE__ */ e(Bt, { children: (a) => a.map((t, o) => {
|
|
256
|
+
const r = V(t.type);
|
|
257
|
+
return /* @__PURE__ */ d(Dt, { file: t, children: [
|
|
258
|
+
r ? /* @__PURE__ */ d(Pt, { children: [
|
|
273
259
|
/* @__PURE__ */ e(Q, {}),
|
|
274
260
|
/* @__PURE__ */ e(T, {})
|
|
275
|
-
] }) : /* @__PURE__ */
|
|
261
|
+
] }) : /* @__PURE__ */ d(Wt, { children: [
|
|
276
262
|
/* @__PURE__ */ e($, {}),
|
|
277
263
|
/* @__PURE__ */ e(T, {})
|
|
278
264
|
] }),
|
|
279
|
-
/* @__PURE__ */ e(
|
|
280
|
-
] }, `${
|
|
265
|
+
/* @__PURE__ */ e(Nt, {})
|
|
266
|
+
] }, `${t.name}-${t.lastModified}-${o}`);
|
|
281
267
|
}) }),
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
/* @__PURE__ */ e(
|
|
284
|
-
/* @__PURE__ */ e(
|
|
285
|
-
/* @__PURE__ */ e(
|
|
286
|
-
] }),
|
|
287
|
-
/* @__PURE__ */ t(lt, { children: [
|
|
288
|
-
/* @__PURE__ */ e(bt, { children: (a) => a.map((d) => /* @__PURE__ */ t(Ct, { attachment: d, children: [
|
|
289
|
-
/* @__PURE__ */ e(Et, {}),
|
|
290
|
-
/* @__PURE__ */ e(Ft, {}),
|
|
291
|
-
/* @__PURE__ */ e(pt, {})
|
|
292
|
-
] }, d.id)) }),
|
|
293
|
-
/* @__PURE__ */ t(ut, { children: [
|
|
294
|
-
/* @__PURE__ */ t(gt, { children: [
|
|
295
|
-
/* @__PURE__ */ e(At, {}),
|
|
296
|
-
/* @__PURE__ */ e(It, {})
|
|
297
|
-
] }),
|
|
298
|
-
/* @__PURE__ */ e(Mt, { children: (a) => a.map((d) => /* @__PURE__ */ e(Bt, { input: d, children: d.displayName }, d.id)) })
|
|
299
|
-
] }),
|
|
300
|
-
/* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(Tt, { children: /* @__PURE__ */ e(St, { children: /* @__PURE__ */ t(xt, { children: [
|
|
301
|
-
/* @__PURE__ */ t(Ht, { children: [
|
|
302
|
-
/* @__PURE__ */ e(yt, {}),
|
|
303
|
-
/* @__PURE__ */ e(ft, {}),
|
|
304
|
-
/* @__PURE__ */ e(kt, {})
|
|
305
|
-
] }),
|
|
306
|
-
/* @__PURE__ */ e(vt, {}),
|
|
307
|
-
/* @__PURE__ */ e(wt, { children: /* @__PURE__ */ t(Lt, { children: [
|
|
308
|
-
/* @__PURE__ */ t(Dt, { children: [
|
|
309
|
-
/* @__PURE__ */ e(Pt, {}),
|
|
310
|
-
/* @__PURE__ */ e(Wt, {}),
|
|
311
|
-
/* @__PURE__ */ e(Nt, {})
|
|
312
|
-
] }),
|
|
313
|
-
/* @__PURE__ */ t(_t, { children: [
|
|
314
|
-
/* @__PURE__ */ e(Vt, {}),
|
|
315
|
-
/* @__PURE__ */ e(Qt, {}),
|
|
316
|
-
/* @__PURE__ */ e($t, {})
|
|
317
|
-
] }),
|
|
318
|
-
/* @__PURE__ */ e(Ot, {})
|
|
319
|
-
] }) })
|
|
320
|
-
] }) }) }) })
|
|
268
|
+
/* @__PURE__ */ d(md, { children: [
|
|
269
|
+
/* @__PURE__ */ e(_t, {}),
|
|
270
|
+
/* @__PURE__ */ e(sd, {}),
|
|
271
|
+
/* @__PURE__ */ e(cd, { children: /* @__PURE__ */ e(ld, {}) })
|
|
321
272
|
] })
|
|
322
273
|
] });
|
|
323
274
|
}
|
|
324
|
-
function
|
|
325
|
-
return /* @__PURE__ */
|
|
326
|
-
/* @__PURE__ */
|
|
327
|
-
/* @__PURE__ */ e(
|
|
328
|
-
/* @__PURE__ */ e(
|
|
329
|
-
/* @__PURE__ */ e(
|
|
275
|
+
function ia() {
|
|
276
|
+
return /* @__PURE__ */ d(hd, { children: [
|
|
277
|
+
/* @__PURE__ */ d(bd, { children: [
|
|
278
|
+
/* @__PURE__ */ e(Cd, {}),
|
|
279
|
+
/* @__PURE__ */ e(Fd, {}),
|
|
280
|
+
/* @__PURE__ */ e(Ed, {})
|
|
330
281
|
] }),
|
|
331
|
-
/* @__PURE__ */
|
|
332
|
-
/* @__PURE__ */ e(
|
|
333
|
-
a.map((
|
|
334
|
-
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
/* @__PURE__ */ e(
|
|
337
|
-
|
|
338
|
-
/* @__PURE__ */ e(
|
|
339
|
-
|
|
340
|
-
] },
|
|
282
|
+
/* @__PURE__ */ d(ud, { children: [
|
|
283
|
+
/* @__PURE__ */ e(pd, { children: ({ pinned: a, unpinned: t }) => /* @__PURE__ */ d(u, { children: [
|
|
284
|
+
a.map((o) => /* @__PURE__ */ e(gd, { action: o }, o.name)),
|
|
285
|
+
t.length > 0 && /* @__PURE__ */ e(Id, {}),
|
|
286
|
+
/* @__PURE__ */ d(Md, { children: [
|
|
287
|
+
/* @__PURE__ */ e(Sd, {}),
|
|
288
|
+
t.map((o) => /* @__PURE__ */ d(Td, { action: o, children: [
|
|
289
|
+
/* @__PURE__ */ e(xd, { action: o }),
|
|
290
|
+
o.name
|
|
291
|
+
] }, o.name))
|
|
341
292
|
] })
|
|
342
293
|
] }) }),
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
-
/* @__PURE__ */ e(
|
|
345
|
-
/* @__PURE__ */ e(
|
|
294
|
+
/* @__PURE__ */ d(I, { action: "copy", children: [
|
|
295
|
+
/* @__PURE__ */ e(Ad, { action: "copy" }),
|
|
296
|
+
/* @__PURE__ */ e(Hd, { action: "copy" })
|
|
346
297
|
] }),
|
|
347
298
|
/* @__PURE__ */ e(I, { action: "clear" }),
|
|
348
299
|
/* @__PURE__ */ e(I, { action: "stop" })
|
|
349
300
|
] })
|
|
350
301
|
] });
|
|
351
302
|
}
|
|
352
|
-
function
|
|
353
|
-
const { sessions: a } =
|
|
354
|
-
return /* @__PURE__ */
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
/* @__PURE__ */
|
|
357
|
-
/* @__PURE__ */ e(
|
|
303
|
+
function ma() {
|
|
304
|
+
const { sessions: a } = Et(), { conversationId: t } = N();
|
|
305
|
+
return /* @__PURE__ */ d(dt, { children: [
|
|
306
|
+
/* @__PURE__ */ d(tt, { children: [
|
|
307
|
+
/* @__PURE__ */ d(at, { children: [
|
|
308
|
+
/* @__PURE__ */ e(ot, { iconKey: "backToChat" }),
|
|
358
309
|
"Back to chat"
|
|
359
310
|
] }),
|
|
360
|
-
/* @__PURE__ */ e(
|
|
361
|
-
/* @__PURE__ */ e(
|
|
311
|
+
/* @__PURE__ */ e(rt, {}),
|
|
312
|
+
/* @__PURE__ */ e(S, {})
|
|
362
313
|
] }),
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
a.map((
|
|
365
|
-
|
|
314
|
+
/* @__PURE__ */ d(nt, { children: [
|
|
315
|
+
a.map((o) => /* @__PURE__ */ d(
|
|
316
|
+
it,
|
|
366
317
|
{
|
|
367
|
-
sessionId:
|
|
368
|
-
"data-active":
|
|
318
|
+
sessionId: o.id,
|
|
319
|
+
"data-active": p(o.id === t),
|
|
369
320
|
children: [
|
|
370
|
-
/* @__PURE__ */ e(
|
|
371
|
-
/* @__PURE__ */ e(
|
|
321
|
+
/* @__PURE__ */ e(mt, { children: o.title }),
|
|
322
|
+
/* @__PURE__ */ e(st, { children: ct(o.updatedAt) })
|
|
372
323
|
]
|
|
373
324
|
},
|
|
374
|
-
|
|
325
|
+
o.id
|
|
375
326
|
)),
|
|
376
|
-
/* @__PURE__ */ e(
|
|
377
|
-
/* @__PURE__ */ e(
|
|
327
|
+
/* @__PURE__ */ e(lt, {}),
|
|
328
|
+
/* @__PURE__ */ e(ht, {})
|
|
378
329
|
] }),
|
|
379
|
-
/* @__PURE__ */ e(
|
|
330
|
+
/* @__PURE__ */ e(bt, { children: /* @__PURE__ */ e(Ct, {}) })
|
|
380
331
|
] });
|
|
381
332
|
}
|
|
382
|
-
function
|
|
383
|
-
return /* @__PURE__ */ e(
|
|
333
|
+
function sa() {
|
|
334
|
+
return /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ d(re, { children: [
|
|
384
335
|
/* @__PURE__ */ e(ne, {}),
|
|
385
|
-
/* @__PURE__ */ e(
|
|
386
|
-
/* @__PURE__ */ e(me, { children: /* @__PURE__ */
|
|
387
|
-
/* @__PURE__ */
|
|
388
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
389
|
-
/* @__PURE__ */ e(
|
|
390
|
-
/* @__PURE__ */ e(
|
|
336
|
+
/* @__PURE__ */ e(ie, {}),
|
|
337
|
+
/* @__PURE__ */ e(me, { children: /* @__PURE__ */ d(se, { children: [
|
|
338
|
+
/* @__PURE__ */ d(b, { name: "unrelated_response", children: [
|
|
339
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(F, {}) }),
|
|
340
|
+
/* @__PURE__ */ e(E, {}),
|
|
341
|
+
/* @__PURE__ */ e(g, {})
|
|
391
342
|
] }),
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
394
|
-
/* @__PURE__ */ e(
|
|
395
|
-
/* @__PURE__ */ e(
|
|
343
|
+
/* @__PURE__ */ d(b, { name: "inaccurate_statement", children: [
|
|
344
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(F, {}) }),
|
|
345
|
+
/* @__PURE__ */ e(E, {}),
|
|
346
|
+
/* @__PURE__ */ e(g, {})
|
|
396
347
|
] }),
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
399
|
-
/* @__PURE__ */ e(
|
|
400
|
-
/* @__PURE__ */ e(
|
|
348
|
+
/* @__PURE__ */ d(b, { name: "inaccurate_code_snippet", children: [
|
|
349
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(F, {}) }),
|
|
350
|
+
/* @__PURE__ */ e(E, {}),
|
|
351
|
+
/* @__PURE__ */ e(g, {})
|
|
401
352
|
] }),
|
|
402
|
-
/* @__PURE__ */
|
|
403
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
404
|
-
/* @__PURE__ */ e(
|
|
353
|
+
/* @__PURE__ */ d(b, { name: "irrelevant_citations", children: [
|
|
354
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(F, {}) }),
|
|
355
|
+
/* @__PURE__ */ e(E, {})
|
|
405
356
|
] }),
|
|
406
357
|
/* @__PURE__ */ e(ce, {})
|
|
407
358
|
] }) })
|
|
408
359
|
] }) }) }) });
|
|
409
360
|
}
|
|
410
|
-
function
|
|
411
|
-
return /* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */ e(
|
|
413
|
-
/* @__PURE__ */
|
|
414
|
-
/* @__PURE__ */
|
|
415
|
-
/* @__PURE__ */ e(
|
|
416
|
-
/* @__PURE__ */ e(
|
|
361
|
+
function ca() {
|
|
362
|
+
return /* @__PURE__ */ d(le, { children: [
|
|
363
|
+
/* @__PURE__ */ e(he, {}),
|
|
364
|
+
/* @__PURE__ */ d(be, { children: [
|
|
365
|
+
/* @__PURE__ */ d(Ce, { children: [
|
|
366
|
+
/* @__PURE__ */ e(Fe, {}),
|
|
367
|
+
/* @__PURE__ */ e(Ee, {})
|
|
417
368
|
] }),
|
|
418
|
-
/* @__PURE__ */ e(
|
|
419
|
-
a.map((
|
|
369
|
+
/* @__PURE__ */ e(ue, { children: (a) => /* @__PURE__ */ d(u, { children: [
|
|
370
|
+
a.map((t, o) => /* @__PURE__ */ d(pe, { field: t, autoFocus: o === 0, children: [
|
|
420
371
|
/* @__PURE__ */ e(ge, {}),
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
/* @__PURE__ */
|
|
372
|
+
t.inputType === "text" && /* @__PURE__ */ e(Ie, {}),
|
|
373
|
+
t.inputType === "email" && /* @__PURE__ */ e(Me, {}),
|
|
374
|
+
t.inputType === "file" && /* @__PURE__ */ e(Se, {}),
|
|
375
|
+
t.inputType === "textarea" && /* @__PURE__ */ e(Te, {}),
|
|
376
|
+
t.inputType === "checkbox" && /* @__PURE__ */ e(xe, { children: /* @__PURE__ */ e(Ae, {}) }),
|
|
377
|
+
t.inputType === "select" && /* @__PURE__ */ d(He, { children: [
|
|
378
|
+
/* @__PURE__ */ d(ke, { children: [
|
|
428
379
|
/* @__PURE__ */ e(ye, {}),
|
|
429
380
|
/* @__PURE__ */ e(fe, {})
|
|
430
381
|
] }),
|
|
431
|
-
/* @__PURE__ */ e(
|
|
432
|
-
/* @__PURE__ */ e(
|
|
382
|
+
/* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(ve, { children: t.items.map((r) => /* @__PURE__ */ d(Le, { value: r.value, children: [
|
|
383
|
+
/* @__PURE__ */ e(Be, { children: r.label }),
|
|
433
384
|
/* @__PURE__ */ e(De, {})
|
|
434
|
-
] },
|
|
385
|
+
] }, r.value)) }) })
|
|
435
386
|
] }),
|
|
436
|
-
|
|
437
|
-
/* @__PURE__ */
|
|
438
|
-
"multiple" in
|
|
387
|
+
t.inputType === "combobox" && /* @__PURE__ */ d(Pe, { children: [
|
|
388
|
+
/* @__PURE__ */ d(We, { children: [
|
|
389
|
+
"multiple" in t && t.multiple && /* @__PURE__ */ e(Ne, {}),
|
|
439
390
|
/* @__PURE__ */ e(_e, {}),
|
|
440
391
|
/* @__PURE__ */ e(Ve, {})
|
|
441
392
|
] }),
|
|
442
|
-
/* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ e($e, { children: /* @__PURE__ */ e(
|
|
393
|
+
/* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ e($e, { children: /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Oe, { children: (r) => r.length === 0 ? /* @__PURE__ */ e(je, {}) : r.map((n) => /* @__PURE__ */ d(
|
|
443
394
|
Ge,
|
|
444
395
|
{
|
|
445
396
|
item: n,
|
|
@@ -453,24 +404,24 @@ function qa() {
|
|
|
453
404
|
] }),
|
|
454
405
|
/* @__PURE__ */ e(Ze, {}),
|
|
455
406
|
/* @__PURE__ */ e(ze, {})
|
|
456
|
-
] },
|
|
407
|
+
] }, t.name)),
|
|
457
408
|
/* @__PURE__ */ e(Je, {})
|
|
458
409
|
] }) }),
|
|
459
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ d(Xe, { children: [
|
|
460
411
|
/* @__PURE__ */ e(Ye, {}),
|
|
461
412
|
/* @__PURE__ */ e(qe, {})
|
|
462
413
|
] })
|
|
463
414
|
] }),
|
|
464
|
-
/* @__PURE__ */
|
|
465
|
-
/* @__PURE__ */ e(
|
|
466
|
-
/* @__PURE__ */ e(
|
|
467
|
-
/* @__PURE__ */ e(
|
|
415
|
+
/* @__PURE__ */ d(ed, { children: [
|
|
416
|
+
/* @__PURE__ */ e(dd, {}),
|
|
417
|
+
/* @__PURE__ */ e(td, {}),
|
|
418
|
+
/* @__PURE__ */ e(ad, {})
|
|
468
419
|
] })
|
|
469
420
|
] });
|
|
470
421
|
}
|
|
471
422
|
export {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
423
|
+
Ba as InkeepEmbeddedChat,
|
|
424
|
+
zt as InkeepEmbeddedChatImpl,
|
|
425
|
+
Jt as InkeepEmbeddedChatImplContent,
|
|
426
|
+
Zt as InkeepEmbeddedChatProvider
|
|
476
427
|
};
|