@inkeep/agents-ui 0.15.26 → 0.15.28
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 +166 -174
- package/dist/primitives/atoms/dialog.cjs +1 -1
- package/dist/primitives/atoms/dialog.js +110 -106
- package/dist/primitives/atoms/file-upload.cjs +1 -0
- package/dist/primitives/atoms/file-upload.d.ts +35 -0
- package/dist/primitives/atoms/file-upload.js +45 -0
- package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/built-in-icons.d.ts +8 -1
- package/dist/primitives/atoms/icons/built-in-icons.js +86 -79
- package/dist/primitives/atoms/icons/collections/pi.cjs +1 -1
- package/dist/primitives/atoms/icons/collections/pi.d.ts +6 -0
- package/dist/primitives/atoms/icons/collections/pi.js +103 -13
- package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +9 -1
- package/dist/primitives/components/embedded-chat/file-upload-input.cjs +1 -0
- package/dist/primitives/components/embedded-chat/file-upload-input.d.ts +68 -0
- package/dist/primitives/components/embedded-chat/file-upload-input.js +328 -0
- package/dist/primitives/components/embedded-chat/image-preview-modal.cjs +1 -0
- package/dist/primitives/components/embedded-chat/image-preview-modal.d.ts +15 -0
- package/dist/primitives/components/embedded-chat/image-preview-modal.js +71 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +8 -6
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +277 -227
- package/dist/primitives/components/embedded-chat.cjs +4 -4
- package/dist/primitives/components/embedded-chat.d.ts +7 -116
- package/dist/primitives/components/embedded-chat.js +1082 -1484
- package/dist/primitives/components/embedded-search.d.ts +1 -1
- package/dist/primitives/hooks/index.cjs +1 -1
- package/dist/primitives/hooks/index.js +15 -14
- 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/hooks/use-input-notification.cjs +1 -0
- package/dist/primitives/hooks/use-input-notification.d.ts +9 -0
- package/dist/primitives/hooks/use-input-notification.js +18 -0
- package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -1
- package/dist/primitives/hooks/use-scrolling-fades.d.ts +1 -0
- package/dist/primitives/hooks/use-scrolling-fades.js +21 -5
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +146 -154
- 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/image-preview-provider.cjs +1 -0
- package/dist/primitives/providers/image-preview-provider.d.ts +15 -0
- package/dist/primitives/providers/image-preview-provider.js +23 -0
- 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 +54 -98
- package/dist/primitives/utils/component-ids.js +44 -66
- 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 +283 -287
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +166 -174
- package/dist/styled/components/chat-history.cjs +1 -1
- package/dist/styled/components/chat-history.d.ts +1 -1
- package/dist/styled/components/chat-history.js +31 -29
- package/dist/styled/components/embedded-chat/file-upload-input.cjs +1 -0
- package/dist/styled/components/embedded-chat/file-upload-input.d.ts +20 -0
- package/dist/styled/components/embedded-chat/file-upload-input.js +300 -0
- package/dist/styled/components/embedded-chat/image-preview-modal.cjs +1 -0
- package/dist/styled/components/embedded-chat/image-preview-modal.d.ts +11 -0
- package/dist/styled/components/embedded-chat/image-preview-modal.js +77 -0
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.d.ts +4 -50
- package/dist/styled/components/embedded-chat.js +567 -1010
- package/dist/styled/components/message.cjs +1 -1
- package/dist/styled/components/message.js +89 -88
- 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 +154 -162
- package/dist/styled/inkeep.css.cjs +241 -61
- package/dist/styled/inkeep.css.js +241 -61
- package/dist/types/config/ai.d.ts +8 -10
- package/dist/types/icons/built-in.d.ts +1 -1
- package/dist/types/icons/custom.d.ts +8 -0
- package/dist/types/index.d.ts +0 -1
- package/package.json +7 -6
- 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,139 +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
|
|
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
8
|
import { EmbeddedChatMessagePart as P } from "../styled/components/message.js";
|
|
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 {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
+
import { isImageMimeType as V } from "../primitives/components/embedded-chat/file-upload-input.js";
|
|
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,
|
|
24
28
|
{
|
|
25
29
|
wrapperStyles: {
|
|
26
30
|
height: "inherit",
|
|
27
31
|
width: "inherit"
|
|
28
32
|
},
|
|
29
33
|
children: /* @__PURE__ */ e(
|
|
30
|
-
|
|
34
|
+
pt,
|
|
31
35
|
{
|
|
32
36
|
config: {
|
|
33
|
-
baseSettings:
|
|
34
|
-
aiChatSettings:
|
|
37
|
+
baseSettings: t,
|
|
38
|
+
aiChatSettings: o
|
|
35
39
|
},
|
|
36
|
-
componentType:
|
|
37
|
-
children: /* @__PURE__ */ e(
|
|
40
|
+
componentType: ut.EmbeddedChat,
|
|
41
|
+
children: /* @__PURE__ */ e(zt, { ...a })
|
|
38
42
|
}
|
|
39
43
|
)
|
|
40
44
|
}
|
|
41
45
|
) });
|
|
42
46
|
}
|
|
43
|
-
function
|
|
44
|
-
const { children:
|
|
45
|
-
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 });
|
|
46
50
|
}
|
|
47
|
-
function
|
|
48
|
-
return /* @__PURE__ */ e(
|
|
51
|
+
function zt(a) {
|
|
52
|
+
return /* @__PURE__ */ e(Zt, { ...a, children: /* @__PURE__ */ e(Jt, { ...a }) });
|
|
49
53
|
}
|
|
50
|
-
function
|
|
51
|
-
const { onToggleView:
|
|
52
|
-
return /* @__PURE__ */ e(n && !m ?
|
|
53
|
-
|
|
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,
|
|
54
58
|
{
|
|
55
|
-
variant:
|
|
56
|
-
"data-composite":
|
|
59
|
+
variant: o ?? (t ? "no-shadow" : "container-with-shadow"),
|
|
60
|
+
"data-composite": p(!!a.onToggleView || n?.isOpen),
|
|
57
61
|
children: [
|
|
58
|
-
/* @__PURE__ */ e(
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
|
|
61
|
-
/* @__PURE__ */ e(
|
|
62
|
-
/* @__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, {})
|
|
63
67
|
] }),
|
|
64
|
-
/* @__PURE__ */ e(
|
|
65
|
-
/* @__PURE__ */ e(
|
|
68
|
+
/* @__PURE__ */ e(sa, {}),
|
|
69
|
+
/* @__PURE__ */ e(da, {}),
|
|
70
|
+
/* @__PURE__ */ e(ca, {})
|
|
66
71
|
]
|
|
67
72
|
}
|
|
68
|
-
) });
|
|
73
|
+
) }) });
|
|
69
74
|
}
|
|
70
|
-
const
|
|
71
|
-
const { onToggleView:
|
|
72
|
-
return /* @__PURE__ */ e(
|
|
73
|
-
/* @__PURE__ */ e(
|
|
74
|
-
|
|
75
|
-
|
|
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
|
+
/* @__PURE__ */ e(K, { children: m && /* @__PURE__ */ e(Z, {}) }),
|
|
79
|
+
t && /* @__PURE__ */ e(
|
|
80
|
+
xt,
|
|
76
81
|
{
|
|
77
|
-
onToggleView:
|
|
78
|
-
askAILabel:
|
|
79
|
-
searchLabel:
|
|
82
|
+
onToggleView: t,
|
|
83
|
+
askAILabel: o,
|
|
84
|
+
searchLabel: r,
|
|
80
85
|
view: "chat"
|
|
81
86
|
}
|
|
82
87
|
),
|
|
83
|
-
/* @__PURE__ */ e(
|
|
84
|
-
] }) : /* @__PURE__ */ e(
|
|
88
|
+
/* @__PURE__ */ e(S, {})
|
|
89
|
+
] }) : /* @__PURE__ */ e(S, {}) });
|
|
85
90
|
};
|
|
86
|
-
function
|
|
87
|
-
const { isSessionLoading:
|
|
88
|
-
return /* @__PURE__ */ e(
|
|
89
|
-
/* @__PURE__ */ e(
|
|
90
|
-
/* @__PURE__ */ e(
|
|
91
|
-
/* @__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
|
+
/* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(ee, {}) }),
|
|
96
|
+
/* @__PURE__ */ e(de, {})
|
|
92
97
|
] }) });
|
|
93
98
|
}
|
|
94
|
-
function
|
|
99
|
+
function qt() {
|
|
95
100
|
const {
|
|
96
|
-
aiChatSettings: { components:
|
|
101
|
+
aiChatSettings: { components: a }
|
|
97
102
|
} = W();
|
|
98
|
-
return /* @__PURE__ */ e(
|
|
99
|
-
const n =
|
|
100
|
-
const
|
|
101
|
-
if (!
|
|
102
|
-
return console.warn(`Component "${
|
|
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;
|
|
103
108
|
try {
|
|
104
|
-
if (typeof
|
|
105
|
-
return
|
|
106
|
-
const
|
|
107
|
-
return
|
|
108
|
-
} catch (
|
|
109
|
-
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;
|
|
110
115
|
}
|
|
111
|
-
},
|
|
112
|
-
return /* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */ e(
|
|
114
|
-
|
|
115
|
-
const c = n?.id ===
|
|
116
|
-
return /* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */ e(
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
/* @__PURE__ */ e(
|
|
120
|
-
|
|
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
|
+
/* @__PURE__ */ e(H, {}),
|
|
123
|
+
/* @__PURE__ */ d(y, { children: [
|
|
124
|
+
/* @__PURE__ */ e(f, { children: a?.IkpMessage ? /* @__PURE__ */ e(
|
|
125
|
+
rd,
|
|
121
126
|
{
|
|
122
127
|
name: "IkpMessage",
|
|
123
|
-
props: { message:
|
|
124
|
-
componentDef:
|
|
128
|
+
props: { message: i, renderComponent: m, renderMarkdown: s },
|
|
129
|
+
componentDef: a.IkpMessage
|
|
125
130
|
}
|
|
126
|
-
) : /* @__PURE__ */
|
|
131
|
+
) : /* @__PURE__ */ d(u, { children: [
|
|
127
132
|
/* @__PURE__ */ e(P, { isLast: c }),
|
|
128
|
-
(!
|
|
133
|
+
(!r || !c) && /* @__PURE__ */ e(oa, {})
|
|
129
134
|
] }) }),
|
|
130
|
-
/* @__PURE__ */ e(
|
|
131
|
-
/* @__PURE__ */ e(
|
|
135
|
+
/* @__PURE__ */ e(ta, {}),
|
|
136
|
+
/* @__PURE__ */ e(aa, {})
|
|
132
137
|
] })
|
|
133
|
-
] },
|
|
138
|
+
] }, i.id);
|
|
134
139
|
}),
|
|
135
|
-
|
|
136
|
-
|
|
140
|
+
o && n?.parts.length && /* @__PURE__ */ d(
|
|
141
|
+
A,
|
|
137
142
|
{
|
|
138
143
|
message: {
|
|
139
144
|
id: "___loader___",
|
|
@@ -141,291 +146,282 @@ function bd() {
|
|
|
141
146
|
parts: [{ type: "text", text: "Thinking..." }]
|
|
142
147
|
},
|
|
143
148
|
children: [
|
|
144
|
-
/* @__PURE__ */ e(
|
|
145
|
-
/* @__PURE__ */ e(
|
|
149
|
+
/* @__PURE__ */ e(H, {}),
|
|
150
|
+
/* @__PURE__ */ e(nd, {})
|
|
146
151
|
]
|
|
147
152
|
}
|
|
148
153
|
)
|
|
149
154
|
] });
|
|
150
155
|
} });
|
|
151
156
|
}
|
|
152
|
-
function
|
|
153
|
-
return /* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
/* @__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, {}) }) }),
|
|
156
161
|
/* @__PURE__ */ e(D, {})
|
|
157
162
|
] }),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
/* @__PURE__ */ e(
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
/* @__PURE__ */ e(
|
|
162
|
-
/* @__PURE__ */ e(
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */ e(
|
|
165
|
-
/* @__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, {})
|
|
166
171
|
] })
|
|
167
172
|
] }),
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */ e(
|
|
170
|
-
/* @__PURE__ */ e(
|
|
171
|
-
|
|
173
|
+
/* @__PURE__ */ d(Dd, { children: [
|
|
174
|
+
/* @__PURE__ */ e(Pd, {}),
|
|
175
|
+
/* @__PURE__ */ e(Wd, { children: (a) => a.map((t) => /* @__PURE__ */ e(
|
|
176
|
+
Nd,
|
|
172
177
|
{
|
|
173
|
-
children: /* @__PURE__ */ e(
|
|
178
|
+
children: /* @__PURE__ */ e(_d, { question: t })
|
|
174
179
|
},
|
|
175
|
-
typeof
|
|
180
|
+
typeof t == "object" ? t.label : t
|
|
176
181
|
)) })
|
|
177
182
|
] })
|
|
178
183
|
] })
|
|
179
184
|
] });
|
|
180
185
|
}
|
|
181
|
-
function
|
|
182
|
-
return /* @__PURE__ */
|
|
183
|
-
/* @__PURE__ */ e(
|
|
186
|
+
function H() {
|
|
187
|
+
return /* @__PURE__ */ d(w, { children: [
|
|
188
|
+
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(B, {}) }) }),
|
|
184
189
|
/* @__PURE__ */ e(D, {})
|
|
185
190
|
] });
|
|
186
191
|
}
|
|
187
|
-
function
|
|
188
|
-
return /* @__PURE__ */ t(
|
|
189
|
-
/* @__PURE__ */ e(
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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, {}) })
|
|
197
|
+
] }) }) }) });
|
|
198
|
+
}
|
|
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($, {}),
|
|
204
|
+
/* @__PURE__ */ e(T, {})
|
|
205
|
+
] }, r || o);
|
|
206
|
+
}) });
|
|
199
207
|
}
|
|
200
|
-
function
|
|
201
|
-
return /* @__PURE__ */
|
|
202
|
-
/* @__PURE__ */ e(
|
|
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}`)) }),
|
|
203
211
|
/* @__PURE__ */ e(M, { action: "copy" }),
|
|
204
212
|
/* @__PURE__ */ e(M, { action: "upvote" }),
|
|
205
213
|
/* @__PURE__ */ e(M, { action: "downvote" })
|
|
206
214
|
] });
|
|
207
215
|
}
|
|
208
|
-
function
|
|
209
|
-
return /* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */ e(
|
|
211
|
-
/* @__PURE__ */ e(
|
|
212
|
-
/* @__PURE__ */ e(
|
|
213
|
-
|
|
214
|
-
/* @__PURE__ */ e(
|
|
215
|
-
] },
|
|
216
|
-
/* @__PURE__ */ e(
|
|
217
|
-
/* @__PURE__ */ e(
|
|
218
|
-
/* @__PURE__ */ e(
|
|
219
|
-
/* @__PURE__ */ e(
|
|
220
|
-
|
|
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,
|
|
221
229
|
{
|
|
222
230
|
part: n
|
|
223
231
|
},
|
|
224
232
|
`part-${m}`
|
|
225
233
|
)) }),
|
|
226
|
-
/* @__PURE__ */ e(
|
|
227
|
-
] },
|
|
234
|
+
/* @__PURE__ */ e(Xd, {})
|
|
235
|
+
] }, o)) })
|
|
228
236
|
] });
|
|
229
237
|
}
|
|
230
|
-
function
|
|
231
|
-
return /* @__PURE__ */
|
|
232
|
-
/* @__PURE__ */ e(
|
|
233
|
-
|
|
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, {})
|
|
244
|
+
] }),
|
|
245
|
+
/* @__PURE__ */ e(wt, {})
|
|
246
|
+
] }) }),
|
|
247
|
+
/* @__PURE__ */ e(na, {}),
|
|
248
|
+
/* @__PURE__ */ e(ia, {})
|
|
234
249
|
] });
|
|
235
250
|
}
|
|
236
|
-
function
|
|
237
|
-
return /* @__PURE__ */
|
|
238
|
-
/* @__PURE__ */
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
/* @__PURE__ */ t(Ft, { children: [
|
|
250
|
-
/* @__PURE__ */ e(Et, {}),
|
|
251
|
-
/* @__PURE__ */ e(pt, {})
|
|
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: [
|
|
259
|
+
/* @__PURE__ */ e(Q, {}),
|
|
260
|
+
/* @__PURE__ */ e(T, {})
|
|
261
|
+
] }) : /* @__PURE__ */ d(Wt, { children: [
|
|
262
|
+
/* @__PURE__ */ e($, {}),
|
|
263
|
+
/* @__PURE__ */ e(T, {})
|
|
252
264
|
] }),
|
|
253
|
-
/* @__PURE__ */ e(
|
|
254
|
-
] })
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
] }),
|
|
261
|
-
/* @__PURE__ */ e(Ht, {}),
|
|
262
|
-
/* @__PURE__ */ e(yt, { children: /* @__PURE__ */ t(kt, { children: [
|
|
263
|
-
/* @__PURE__ */ t(ft, { children: [
|
|
264
|
-
/* @__PURE__ */ e(wt, {}),
|
|
265
|
-
/* @__PURE__ */ e(vt, {}),
|
|
266
|
-
/* @__PURE__ */ e(Lt, {})
|
|
267
|
-
] }),
|
|
268
|
-
/* @__PURE__ */ t(Dt, { children: [
|
|
269
|
-
/* @__PURE__ */ e(Pt, {}),
|
|
270
|
-
/* @__PURE__ */ e(Wt, {}),
|
|
271
|
-
/* @__PURE__ */ e(_t, {})
|
|
272
|
-
] }),
|
|
273
|
-
/* @__PURE__ */ e(Vt, {})
|
|
274
|
-
] }) })
|
|
275
|
-
] }) }) }) })
|
|
265
|
+
/* @__PURE__ */ e(Nt, {})
|
|
266
|
+
] }, `${t.name}-${t.lastModified}-${o}`);
|
|
267
|
+
}) }),
|
|
268
|
+
/* @__PURE__ */ d(md, { children: [
|
|
269
|
+
/* @__PURE__ */ e(_t, {}),
|
|
270
|
+
/* @__PURE__ */ e(sd, {}),
|
|
271
|
+
/* @__PURE__ */ e(cd, { children: /* @__PURE__ */ e(ld, {}) })
|
|
276
272
|
] })
|
|
277
273
|
] });
|
|
278
274
|
}
|
|
279
|
-
function
|
|
280
|
-
return /* @__PURE__ */
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
/* @__PURE__ */ e(
|
|
283
|
-
/* @__PURE__ */ e(
|
|
284
|
-
/* @__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, {})
|
|
285
281
|
] }),
|
|
286
|
-
/* @__PURE__ */
|
|
287
|
-
/* @__PURE__ */ e(
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
/* @__PURE__ */ e(
|
|
292
|
-
|
|
293
|
-
/* @__PURE__ */ e(
|
|
294
|
-
|
|
295
|
-
] },
|
|
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))
|
|
296
292
|
] })
|
|
297
293
|
] }) }),
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
-
/* @__PURE__ */ e(
|
|
300
|
-
/* @__PURE__ */ e(
|
|
294
|
+
/* @__PURE__ */ d(I, { action: "copy", children: [
|
|
295
|
+
/* @__PURE__ */ e(Ad, { action: "copy" }),
|
|
296
|
+
/* @__PURE__ */ e(Hd, { action: "copy" })
|
|
301
297
|
] }),
|
|
302
|
-
/* @__PURE__ */ e(
|
|
303
|
-
/* @__PURE__ */ e(
|
|
298
|
+
/* @__PURE__ */ e(I, { action: "clear" }),
|
|
299
|
+
/* @__PURE__ */ e(I, { action: "stop" })
|
|
304
300
|
] })
|
|
305
301
|
] });
|
|
306
302
|
}
|
|
307
|
-
function
|
|
308
|
-
const { sessions:
|
|
309
|
-
return /* @__PURE__ */
|
|
310
|
-
/* @__PURE__ */
|
|
311
|
-
/* @__PURE__ */
|
|
312
|
-
/* @__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" }),
|
|
313
309
|
"Back to chat"
|
|
314
310
|
] }),
|
|
315
|
-
/* @__PURE__ */ e(
|
|
316
|
-
/* @__PURE__ */ e(
|
|
311
|
+
/* @__PURE__ */ e(rt, {}),
|
|
312
|
+
/* @__PURE__ */ e(S, {})
|
|
317
313
|
] }),
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
-
|
|
320
|
-
|
|
314
|
+
/* @__PURE__ */ d(nt, { children: [
|
|
315
|
+
a.map((o) => /* @__PURE__ */ d(
|
|
316
|
+
it,
|
|
321
317
|
{
|
|
322
|
-
sessionId:
|
|
323
|
-
"data-active":
|
|
318
|
+
sessionId: o.id,
|
|
319
|
+
"data-active": p(o.id === t),
|
|
324
320
|
children: [
|
|
325
|
-
/* @__PURE__ */ e(
|
|
326
|
-
/* @__PURE__ */ e(
|
|
321
|
+
/* @__PURE__ */ e(mt, { children: o.title }),
|
|
322
|
+
/* @__PURE__ */ e(st, { children: ct(o.updatedAt) })
|
|
327
323
|
]
|
|
328
324
|
},
|
|
329
|
-
|
|
325
|
+
o.id
|
|
330
326
|
)),
|
|
331
|
-
/* @__PURE__ */ e(
|
|
332
|
-
/* @__PURE__ */ e(
|
|
327
|
+
/* @__PURE__ */ e(lt, {}),
|
|
328
|
+
/* @__PURE__ */ e(ht, {})
|
|
333
329
|
] }),
|
|
334
|
-
/* @__PURE__ */ e(
|
|
330
|
+
/* @__PURE__ */ e(bt, { children: /* @__PURE__ */ e(Ct, {}) })
|
|
335
331
|
] });
|
|
336
332
|
}
|
|
337
|
-
function
|
|
338
|
-
return /* @__PURE__ */ e(
|
|
339
|
-
/* @__PURE__ */ e(
|
|
340
|
-
/* @__PURE__ */ e(
|
|
341
|
-
/* @__PURE__ */ e(
|
|
342
|
-
/* @__PURE__ */
|
|
333
|
+
function sa() {
|
|
334
|
+
return /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ d(re, { children: [
|
|
335
|
+
/* @__PURE__ */ e(ne, {}),
|
|
336
|
+
/* @__PURE__ */ e(ie, {}),
|
|
337
|
+
/* @__PURE__ */ e(me, { children: /* @__PURE__ */ d(se, { children: [
|
|
338
|
+
/* @__PURE__ */ d(b, { name: "unrelated_response", children: [
|
|
343
339
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(F, {}) }),
|
|
344
340
|
/* @__PURE__ */ e(E, {}),
|
|
345
341
|
/* @__PURE__ */ e(g, {})
|
|
346
342
|
] }),
|
|
347
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ d(b, { name: "inaccurate_statement", children: [
|
|
348
344
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(F, {}) }),
|
|
349
345
|
/* @__PURE__ */ e(E, {}),
|
|
350
346
|
/* @__PURE__ */ e(g, {})
|
|
351
347
|
] }),
|
|
352
|
-
/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ d(b, { name: "inaccurate_code_snippet", children: [
|
|
353
349
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(F, {}) }),
|
|
354
350
|
/* @__PURE__ */ e(E, {}),
|
|
355
351
|
/* @__PURE__ */ e(g, {})
|
|
356
352
|
] }),
|
|
357
|
-
/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ d(b, { name: "irrelevant_citations", children: [
|
|
358
354
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(F, {}) }),
|
|
359
355
|
/* @__PURE__ */ e(E, {})
|
|
360
356
|
] }),
|
|
361
|
-
/* @__PURE__ */ e(
|
|
357
|
+
/* @__PURE__ */ e(ce, {})
|
|
362
358
|
] }) })
|
|
363
359
|
] }) }) }) });
|
|
364
360
|
}
|
|
365
|
-
function
|
|
366
|
-
return /* @__PURE__ */
|
|
367
|
-
/* @__PURE__ */ e(
|
|
368
|
-
/* @__PURE__ */
|
|
369
|
-
/* @__PURE__ */
|
|
370
|
-
/* @__PURE__ */ e(
|
|
371
|
-
/* @__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, {})
|
|
372
368
|
] }),
|
|
373
|
-
/* @__PURE__ */ e(
|
|
374
|
-
|
|
375
|
-
/* @__PURE__ */ e(
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
/* @__PURE__ */
|
|
383
|
-
/* @__PURE__ */ e(
|
|
384
|
-
/* @__PURE__ */ e(Te, {})
|
|
385
|
-
] }),
|
|
386
|
-
/* @__PURE__ */ e(xe, { children: /* @__PURE__ */ e(He, { children: a.items.map((o) => /* @__PURE__ */ t(ye, { value: o.value, children: [
|
|
387
|
-
/* @__PURE__ */ e(ke, { children: o.label }),
|
|
369
|
+
/* @__PURE__ */ e(ue, { children: (a) => /* @__PURE__ */ d(u, { children: [
|
|
370
|
+
a.map((t, o) => /* @__PURE__ */ d(pe, { field: t, autoFocus: o === 0, children: [
|
|
371
|
+
/* @__PURE__ */ e(ge, {}),
|
|
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: [
|
|
379
|
+
/* @__PURE__ */ e(ye, {}),
|
|
388
380
|
/* @__PURE__ */ e(fe, {})
|
|
389
|
-
] },
|
|
381
|
+
] }),
|
|
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 }),
|
|
384
|
+
/* @__PURE__ */ e(De, {})
|
|
385
|
+
] }, r.value)) }) })
|
|
390
386
|
] }),
|
|
391
|
-
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
"multiple" in
|
|
394
|
-
/* @__PURE__ */ e(
|
|
395
|
-
/* @__PURE__ */ e(
|
|
387
|
+
t.inputType === "combobox" && /* @__PURE__ */ d(Pe, { children: [
|
|
388
|
+
/* @__PURE__ */ d(We, { children: [
|
|
389
|
+
"multiple" in t && t.multiple && /* @__PURE__ */ e(Ne, {}),
|
|
390
|
+
/* @__PURE__ */ e(_e, {}),
|
|
391
|
+
/* @__PURE__ */ e(Ve, {})
|
|
396
392
|
] }),
|
|
397
|
-
/* @__PURE__ */ e(
|
|
398
|
-
|
|
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(
|
|
394
|
+
Ge,
|
|
399
395
|
{
|
|
400
396
|
item: n,
|
|
401
397
|
children: [
|
|
402
|
-
/* @__PURE__ */ e(
|
|
403
|
-
/* @__PURE__ */ e(
|
|
398
|
+
/* @__PURE__ */ e(Ue, { children: n.label }),
|
|
399
|
+
/* @__PURE__ */ e(Ke, {})
|
|
404
400
|
]
|
|
405
401
|
},
|
|
406
402
|
n.value
|
|
407
403
|
)) }) }) }) })
|
|
408
404
|
] }),
|
|
409
|
-
/* @__PURE__ */ e(
|
|
410
|
-
/* @__PURE__ */ e(
|
|
411
|
-
] },
|
|
412
|
-
/* @__PURE__ */ e(
|
|
405
|
+
/* @__PURE__ */ e(Ze, {}),
|
|
406
|
+
/* @__PURE__ */ e(ze, {})
|
|
407
|
+
] }, t.name)),
|
|
408
|
+
/* @__PURE__ */ e(Je, {})
|
|
413
409
|
] }) }),
|
|
414
|
-
/* @__PURE__ */
|
|
415
|
-
/* @__PURE__ */ e(
|
|
416
|
-
/* @__PURE__ */ e(
|
|
410
|
+
/* @__PURE__ */ d(Xe, { children: [
|
|
411
|
+
/* @__PURE__ */ e(Ye, {}),
|
|
412
|
+
/* @__PURE__ */ e(qe, {})
|
|
417
413
|
] })
|
|
418
414
|
] }),
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
-
/* @__PURE__ */ e(
|
|
421
|
-
/* @__PURE__ */ e(
|
|
422
|
-
/* @__PURE__ */ e(
|
|
415
|
+
/* @__PURE__ */ d(ed, { children: [
|
|
416
|
+
/* @__PURE__ */ e(dd, {}),
|
|
417
|
+
/* @__PURE__ */ e(td, {}),
|
|
418
|
+
/* @__PURE__ */ e(ad, {})
|
|
423
419
|
] })
|
|
424
420
|
] });
|
|
425
421
|
}
|
|
426
422
|
export {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
423
|
+
Ba as InkeepEmbeddedChat,
|
|
424
|
+
zt as InkeepEmbeddedChatImpl,
|
|
425
|
+
Jt as InkeepEmbeddedChatImplContent,
|
|
426
|
+
Zt as InkeepEmbeddedChatProvider
|
|
431
427
|
};
|