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