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