@inkeep/agents-ui 0.15.1 → 0.15.3
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/primitives/components/embedded-chat/use-chat-action.cjs +1 -1
- package/dist/primitives/components/embedded-chat/use-chat-action.d.ts +1 -1
- package/dist/primitives/components/embedded-chat/use-chat-action.js +20 -17
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +2 -2
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +0 -1
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +73 -66
- package/dist/primitives/components/embedded-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat.d.ts +16 -10
- package/dist/primitives/components/embedded-chat.js +419 -426
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/primitives/utils/component-ids.cjs +1 -1
- package/dist/primitives/utils/component-ids.d.ts +4 -4
- package/dist/primitives/utils/component-ids.js +2 -2
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +19 -13
- package/dist/styled/components/data-summary-group.cjs +1 -1
- package/dist/styled/components/data-summary-group.js +13 -13
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.d.ts +3 -3
- package/dist/styled/components/embedded-chat.js +29 -29
- package/dist/styled/components/message.cjs +1 -1
- package/dist/styled/components/message.js +33 -33
- package/dist/types/config/ai.d.ts +10 -3
- package/dist/types/config/settings/actions.d.ts +13 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),t=require("react"),l=require("./config-provider.cjs"),a=t.createContext(void 0),p=({children:e})=>{const{baseSettings:s,componentType:n}=l.useInkeepConfig(),{tags:o,analyticsProperties:r}=s,i=t.useMemo(()=>({widgetLibraryVersion:"0.15.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),t=require("react"),l=require("./config-provider.cjs"),a=t.createContext(void 0),p=({children:e})=>{const{baseSettings:s,componentType:n}=l.useInkeepConfig(),{tags:o,analyticsProperties:r}=s,i=t.useMemo(()=>({widgetLibraryVersion:"0.15.2",componentType:n,tags:o}),[n,o]),u={logEvent:t.useCallback(async c=>{const v={...i,...c.properties,...r},d={eventName:c.eventName,properties:v};return s.onEvent?.(d)},[s,i,r])};return E.jsx(a.Provider,{value:u,children:e})},g=()=>{const e=t.useContext(a);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e};exports.BaseEventsProvider=p;exports.useBaseEvents=g;
|
|
@@ -5,7 +5,7 @@ import { useInkeepConfig as g } from "./config-provider.js";
|
|
|
5
5
|
const a = d(void 0), P = ({ children: e }) => {
|
|
6
6
|
const { baseSettings: t, componentType: o } = g(), { tags: s, analyticsProperties: n } = t, r = u(
|
|
7
7
|
() => ({
|
|
8
|
-
widgetLibraryVersion: "0.15.
|
|
8
|
+
widgetLibraryVersion: "0.15.2",
|
|
9
9
|
componentType: o,
|
|
10
10
|
tags: s
|
|
11
11
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a={icon:"icon",loadingIndicator__Text:"loadingIndicator__Text",loadingIndicator__Dots:"loadingIndicator__Dots",loadingIndicator__Dot:"loadingIndicator__Dot",view_toggle:"view_toggle",view_toggle_button:"view_toggle_button",view_toggle_icon:"view_toggle_icon"},t={codeblockContainer:"codeblockContainer",codeblockHeader:"codeblockHeader",codeblockHeaderLanguage:"codeblockHeaderLanguage",codeblockCopyButton:"codeblockCopyButton",codeblockHighlighterWrapper:"codeblockHighlighterWrapper",codeblockHighlighter:"codeblockHighlighter",codeblockCode:"codeblockCode",markdownH1:"markdownH1",markdownH2:"markdownH2",markdownP:"markdownP",markdownLi:"markdownLi",markdownUl:"markdownUl",markdownOl:"markdownOl",markdownLink:"markdownLink",markdownSourceLink:"markdownSourceLink",markdownTable:"markdownTable",markdownTh:"markdownTh",markdownTd:"markdownTd",markdownCode:"markdownCode",markdownInput:"markdownInput",markdownSup:"markdownSup",markdownImg:"markdownImg",markdownHr:"markdownHr"},e={aiChatWrapper:"aiChatWrapper",aiChatRoot:"aiChatRoot",aiChatHeader:"aiChatHeader",aiChatHeader__Toolbar:"aiChatHeader__Toolbar",aiChatHeader__ToolbarHeader:"aiChatHeader__ToolbarHeader",aiChatHeader__ToolbarHeaderWrapper:"aiChatHeader__ToolbarHeaderWrapper",aiChatContent:"aiChatContent",aiChatContentScrollArea:"aiChatContentScrollArea",aiChatContentScrollArea__Viewport:"aiChatContentScrollArea__Viewport",aiChatContentScrollArea__Scrollbar:"aiChatContentScrollArea__Scrollbar",aiChatContentScrollArea__Thumb:"aiChatContentScrollArea__Thumb",aiChatContentScrollArea__Corner:"aiChatContentScrollArea__Corner",aiChatDisclaimer:"aiChatDisclaimer",aiChatDisclaimerLabel:"aiChatDisclaimerLabel",aiChatDisclaimerTrigger:"aiChatDisclaimerTrigger",aiChatDisclaimerContent:"aiChatDisclaimerContent",aiChatDisclaimerText:"aiChatDisclaimerText",aiChatDisclaimerArrow:"aiChatDisclaimerArrow",aiChatExampleQuestions:"aiChatExampleQuestions",aiChatExampleQuestionsLabel:"aiChatExampleQuestionsLabel",aiChatExampleQuestionsList:"aiChatExampleQuestionsList",aiChatExampleQuestion:"aiChatExampleQuestion",aiChatExampleQuestionButton:"aiChatExampleQuestionButton",aiChatWorkflows:"aiChatWorkflows",aiChatWorkflowsLabel:"aiChatWorkflowsLabel",aiChatWorkflowsList:"aiChatWorkflowsList",aiChatWorkflow:"aiChatWorkflow",aiChatWorkflow__Icon:"aiChatWorkflow__Icon",aiChatMessages:"aiChatMessages",aiChatMessageWrapper:"aiChatMessageWrapper",aiChatMessageHeader:"aiChatMessageHeader",aiChatMessageLoading:"aiChatMessageLoading",aiChatMessageAvatar:"aiChatMessageAvatar",aiChatMessageAvatarFallback:"aiChatMessageAvatarFallback",aiChatMessageAvatarImage:"aiChatMessageAvatarImage",aiChatMessageAvatarContent:"aiChatMessageAvatarContent",aiChatMessageName:"aiChatMessageName",aiChatMessageContentWrapper:"aiChatMessageContentWrapper",aiChatMessageContent:"aiChatMessageContent",aiChatMessageAttachments:"aiChatMessageAttachments",aiChatMessageAttachments__List:"aiChatMessageAttachments__List",aiChatMessageAttachments__Item:"aiChatMessageAttachments__Item",aiChatMessageAttachments__ItemIcon:"aiChatMessageAttachments__ItemIcon",aiChatMessageAttachments__ItemTitle:"aiChatMessageAttachments__ItemTitle",aiChatMessageAttachmentsPreview:"aiChatMessageAttachmentsPreview",aiChatMessageAttachmentsPreview__Overlay:"aiChatMessageAttachmentsPreview__Overlay",aiChatMessageAttachmentsPreview__Content:"aiChatMessageAttachmentsPreview__Content",aiChatMessageAttachmentsPreview__Header:"aiChatMessageAttachmentsPreview__Header",aiChatMessageAttachmentsPreview__Close:"aiChatMessageAttachmentsPreview__Close",aiChatMessageAttachmentsPreview__Body:"aiChatMessageAttachmentsPreview__Body",aiChatMessagePart:"aiChatMessagePart",aiChatMessageToolbar:"aiChatMessageToolbar",aiChatMessageAnnotationActions:"aiChatMessageAnnotationActions",aiChatMessageAnnotationAction:"aiChatMessageAnnotationAction",aiChatMessageAction:"aiChatMessageAction",aiChatMessageSources:"aiChatMessageSources",aiChatMessageSources__Header:"aiChatMessageSources__Header",aiChatMessageSources__List:"aiChatMessageSources__List",aiChatMessageSourceItem:"aiChatMessageSourceItem",aiChatMessageSourceItem__Icon:"aiChatMessageSourceItem__Icon",aiChatMessageSourceItem__Breadcrumbs:"aiChatMessageSourceItem__Breadcrumbs",aiChatMessageSourceItem__Breadcrumb:"aiChatMessageSourceItem__Breadcrumb",aiChatMessageSourceItem__BreadcrumbIcon:"aiChatMessageSourceItem__BreadcrumbIcon",aiChatMessageSourceItem__Title:"aiChatMessageSourceItem__Title",aiChatMessageSourceItem__Tag:"aiChatMessageSourceItem__Tag",aiChatMessageSourceItem__Description:"aiChatMessageSourceItem__Description",aiChatMessageSourceItem__DescriptionPart:"aiChatMessageSourceItem__DescriptionPart",aiChatMessageSourceItem__Indicator:"aiChatMessageSourceItem__Indicator",aiChatFooter:"aiChatFooter",aiChatInput__Fieldset:"aiChatInput__Fieldset",aiChatInput__Group:"aiChatInput__Group",aiChatInput:"aiChatInput",aiChatInput__SendButton:"aiChatInput__SendButton",aiChatInput__SendButtonIcon:"aiChatInput__SendButtonIcon",aiChatAttachmentsBar:"aiChatAttachmentsBar",aiChatAttachmentsBar__List:"aiChatAttachmentsBar__List",aiChatAttachmentsBar__Attachment:"aiChatAttachmentsBar__Attachment",aiChatAttachmentsBar__AttachmentIcon:"aiChatAttachmentsBar__AttachmentIcon",aiChatAttachmentsBar__AttachmentTitle:"aiChatAttachmentsBar__AttachmentTitle",aiChatAttachmentsBar__AttachmentDelete:"aiChatAttachmentsBar__AttachmentDelete",aiChatAttachmentsBar__Actions:"aiChatAttachmentsBar__Actions",aiChatAttachmentsBar__InfoTip:"aiChatAttachmentsBar__InfoTip",aiChatAttachmentsBar__InfoTipIcon:"aiChatAttachmentsBar__InfoTipIcon",aiChatAttachmentsBar__InfoTipArrow:"aiChatAttachmentsBar__InfoTipArrow",aiChatAttachmentsBar__InfoTipText:"aiChatAttachmentsBar__InfoTipText",aiChatAttachmentsBar__Inputs:"aiChatAttachmentsBar__Inputs",aiChatAttachmentsBar__Input:"aiChatAttachmentsBar__Input",aiChatAttachmentsBar__InputIcon:"aiChatAttachmentsBar__InputIcon",aiChatAttachmentsBar__Modal:"aiChatAttachmentsBar__Modal",aiChatAttachmentsBar__ModalOverlay:"aiChatAttachmentsBar__ModalOverlay",aiChatAttachmentsBar__ModalContent:"aiChatAttachmentsBar__ModalContent",aiChatAttachmentsBar__ModalHeader:"aiChatAttachmentsBar__ModalHeader",aiChatAttachmentsBar__ModalClose:"aiChatAttachmentsBar__ModalClose",aiChatAttachmentsBar__ModalBody:"aiChatAttachmentsBar__ModalBody",aiChatAttachmentsBar__ModalHeading:"aiChatAttachmentsBar__ModalHeading",aiChatAttachmentsBar__ModalDescription:"aiChatAttachmentsBar__ModalDescription",aiChatAttachmentsBar__ModalHelp:"aiChatAttachmentsBar__ModalHelp",aiChatAttachmentsBar__Form:"aiChatAttachmentsBar__Form",aiChatAttachmentsBar__FormTitle:"aiChatAttachmentsBar__FormTitle",aiChatAttachmentsBar__FormTitleLabel:"aiChatAttachmentsBar__FormTitleLabel",aiChatAttachmentsBar__FormTitleInput:"aiChatAttachmentsBar__FormTitleInput",aiChatAttachmentsBar__FormTitleError:"aiChatAttachmentsBar__FormTitleError",aiChatAttachmentsBar__FormContent:"aiChatAttachmentsBar__FormContent",aiChatAttachmentsBar__FormContentLabel:"aiChatAttachmentsBar__FormContentLabel",aiChatAttachmentsBar__FormContentInput:"aiChatAttachmentsBar__FormContentInput",aiChatAttachmentsBar__FormContentError:"aiChatAttachmentsBar__FormContentError",aiChatAttachmentsBar__FormSubmitButton:"aiChatAttachmentsBar__FormSubmitButton",aiChatActionBar:"aiChatActionBar",aiChat__ChatActions:"aiChat__ChatActions",aiChat__ChatAction:"aiChat__ChatAction",aiChat__ChatActionLabel:"aiChat__ChatActionLabel",aiChat__ChatActionFeeback:"aiChat__ChatActionFeeback",aiChatHelpActions:"aiChatHelpActions",aiChatHelpAction:"aiChatHelpAction",aiChatHelpActions__Trigger:"aiChatHelpActions__Trigger",aiChatHelpActions__Menu:"aiChatHelpActions__Menu",aiChatHelpActions__MenuArrow:"aiChatHelpActions__MenuArrow",aiChatHelpActions__MenuItem:"aiChatHelpActions__MenuItem",aiChatHelpActions_MenuItemIcon:"aiChatHelpActions_MenuItemIcon",aiChatTagline__Container:"aiChatTagline__Container",aiChatTagline__Text:"aiChatTagline__Text",aiChatTagline__Logo:"aiChatTagline__Logo",aiChatTagline__BrandName:"aiChatTagline__BrandName",aiChatFeedbackModal:"aiChatFeedbackModal",aiChatFeedbackModal__Overlay:"aiChatFeedbackModal__Overlay",aiChatFeedbackModal__Content:"aiChatFeedbackModal__Content",aiChatFeedbackModal__Header:"aiChatFeedbackModal__Header",aiChatFeedbackModal__Close:"aiChatFeedbackModal__Close",aiChatFeedbackModal__Body:"aiChatFeedbackModal__Body",aiChatFeedbackForm:"aiChatFeedbackForm",aiChatFeedbackItem:"aiChatFeedbackItem",aiChatFeedbackItem__Checkbox:"aiChatFeedbackItem__Checkbox",aiChatFeedbackItem__CheckboxIndicator:"aiChatFeedbackItem__CheckboxIndicator",aiChatFeedbackItem__Label:"aiChatFeedbackItem__Label",aiChatFeedbackItem__Description:"aiChatFeedbackItem__Description",aiChatFeedbackForm__SubmitButton:"aiChatFeedbackForm__SubmitButton",aiChatForm__Wrapper:"aiChatForm__Wrapper",aiChatForm:"aiChatForm",aiChatForm__Close:"aiChatForm__Close",aiChatForm__Header:"aiChatForm__Header",aiChatForm__Heading:"aiChatForm__Heading",aiChatForm__Description:"aiChatForm__Description",aiChatForm__Content:"aiChatForm__Content",aiChatForm__Field:"aiChatForm__Field",aiChatForm__FieldLabel:"aiChatForm__FieldLabel",aiChatForm__FieldText:"aiChatForm__FieldText",aiChatForm__FieldEmail:"aiChatForm__FieldEmail",aiChatForm__FieldFile:"aiChatForm__FieldFile",aiChatForm__FieldTextArea:"aiChatForm__FieldTextArea",aiChatForm__FieldCheckbox:"aiChatForm__FieldCheckbox",aiChatForm__FieldCheckboxIndicator:"aiChatForm__FieldCheckboxIndicator",aiChatForm__FieldSelect:"aiChatForm__FieldSelect",aiChatForm__FieldSelect__Trigger:"aiChatForm__FieldSelect__Trigger",aiChatForm__FieldSelect__Value:"aiChatForm__FieldSelect__Value",aiChatForm__FieldSelect__Icon:"aiChatForm__FieldSelect__Icon",aiChatForm__FieldSelect__Content:"aiChatForm__FieldSelect__Content",aiChatForm__FieldSelect__Viewport:"aiChatForm__FieldSelect__Viewport",aiChatForm__FieldSelect__Item:"aiChatForm__FieldSelect__Item",aiChatForm__FieldSelect__ItemIndicator:"aiChatForm__FieldSelect__ItemIndicator",aiChatForm__FieldSelect__ItemText:"aiChatForm__FieldSelect__ItemText",aiChatForm__FieldError:"aiChatForm__FieldError",aiChatForm__Error:"aiChatForm__Error",aiChatForm__Footer:"aiChatForm__Footer",aiChatForm__Cancel:"aiChatForm__Cancel",aiChatForm__Submit:"aiChatForm__Submit",aiChatForm__Success:"aiChatForm__Success",aiChatForm__SuccessHeading:"aiChatForm__SuccessHeading",aiChatForm__SuccessMessage:"aiChatForm__SuccessMessage",aiChatForm__SuccessButton:"aiChatForm__SuccessButton",aiChatLink:"aiChatLink"},_={aiSearchWrapper:"aiSearchWrapper",aiSearchRoot:"aiSearchRoot",aiSearchContent:"aiSearchContent",aiSearchInputGroup:"aiSearchInputGroup",aiSearchInputIcon:"aiSearchInputIcon",aiSearchInput:"aiSearchInput",aiSearchLoading:"aiSearchLoading",aiAskAITrigger:"aiAskAITrigger",aiAskAITrigger__Icon:"aiAskAITrigger__Icon",aiAskAITrigger__Label:"aiAskAITrigger__Label",aiAskAITrigger__Query:"aiAskAITrigger__Query",aiAskAITrigger__Indicator:"aiAskAITrigger__Indicator",aiAskAITrigger__IndicatorText:"aiAskAITrigger__IndicatorText",aiSearchResults:"aiSearchResults",aiSearchResults__Loading:"aiSearchResults__Loading",aiSearchResults__Empty:"aiSearchResults__Empty",aiSearchResults__TabList:"aiSearchResults__TabList",aiSearchResults__Tab:"aiSearchResults__Tab",aiSearchResults__Content:"aiSearchResults__Content",aiSearchResults__ScrollArea:"aiSearchResults__ScrollArea",aiSearchResults__ScrollAreaViewport:"aiSearchResults__ScrollAreaViewport",aiSearchResults__List:"aiSearchResults__List",aiSearchResults__Item:"aiSearchResults__Item",aiSearchResults__ItemIcon:"aiSearchResults__ItemIcon",aiSearchResults__ItemBreadcrumbs:"aiSearchResults__ItemBreadcrumbs",aiSearchResults__ItemBreadcrumbIcon:"aiSearchResults__ItemBreadcrumbIcon",aiSearchResults__ItemTitle:"aiSearchResults__ItemTitle",aiSearchResults__ItemTag:"aiSearchResults__ItemTag",aiSearchResults__ItemDescription:"aiSearchResults__ItemDescription",aiSearchResults__ItemDescriptionPart:"aiSearchResults__ItemDescriptionPart",aiSearchResults__ItemIndicator:"aiSearchResults__ItemIndicator",aiSearchResults__ItemPreview:"aiSearchResults__ItemPreview",aiSearchResults__ItemPreview__Header:"aiSearchResults__ItemPreview__Header",aiSearchResults__ItemPreview__Heading:"aiSearchResults__ItemPreview__Heading",aiSearchResults__ItemPreview__Title:"aiSearchResults__ItemPreview__Title",aiSearchResults__ItemPreview__Title__LinkIcon:"aiSearchResults__ItemPreview__Title__LinkIcon",aiSearchResults__ItemPreview__Breadcrumbs:"aiSearchResults__ItemPreview__Breadcrumbs",aiSearchResults__ItemPreview__BreadcrumbIcon:"aiSearchResults__ItemPreview__BreadcrumbIcon",aiSearchResults__ItemPreview__Body:"aiSearchResults__ItemPreview__Body",aiSearchResults__ItemPreview__Outline:"aiSearchResults__ItemPreview__Outline",aiSearchResults__ItemPreview__Outline__Title:"aiSearchResults__ItemPreview__Outline__Title",aiSearchResults__ItemPreview__Outline__List:"aiSearchResults__ItemPreview__Outline__List",aiSearchResults__ItemPreview__Outline__Item:"aiSearchResults__ItemPreview__Outline__Item",aiSearchResults__ItemPreview__Outline__ItemIcon:"aiSearchResults__ItemPreview__Outline__ItemIcon",aiSearchResults__ItemPreview__Outline__ItemText:"aiSearchResults__ItemPreview__Outline__ItemText",aiSearchResults__ItemPreview__Outline__ItemLinkIcon:"aiSearchResults__ItemPreview__Outline__ItemLinkIcon",aiSearchResults__ScrollAreaScrollbar:"aiSearchResults__ScrollAreaScrollbar",aiSearchResults__ScrollAreaThumb:"aiSearchResults__ScrollAreaThumb",aiSearchResults__ScrollAreaCorner:"aiSearchResults__ScrollAreaCorner",aiSearchFooter:"aiSearchFooter",aiSearchTagline__Container:"aiSearchTagline__Container",aiSearchTagline__Text:"aiSearchTagline__Text",aiSearchTagline__Logo:"aiSearchTagline__Logo",aiSearchTagline__BrandName:"aiSearchTagline__BrandName"},i={modal:"modal",modal__Overlay:"modal__Overlay",modal__Content:"modal__Content",modal__Close:"modal__Close"},r={chatButton__Text:"chatButton__Text",chatButton__Button:"chatButton__Button",chatButton__Container:"chatButton__Container",chatButton__AvatarImage:"chatButton__AvatarImage",chatButton__AvatarContent:"chatButton__AvatarContent",chatButton__CloseIcon:"chatButton__CloseIcon"},o={searchBar__Container:"searchBar__Container",searchBar__Button:"searchBar__Button",searchBar__ContentWrapper:"searchBar__ContentWrapper",searchBar__Text:"searchBar__Text",searchBar__Icon:"searchBar__Icon",searchBar__KbdWrapper:"searchBar__KbdWrapper",searchBar__CmdIcon:"searchBar__CmdIcon",searchBar__Ctrl:"searchBar__Ctrl",searchBar__KbdShortcutKey:"searchBar__KbdShortcutKey"},h={sidebarChat__Root:"sidebarChat__Root",sidebarChat__Resizer:"sidebarChat__Resizer",sidebarChat__CloseButton:"sidebarChat__CloseButton",sidebarChat__Header:"sidebarChat__Header"},n={chatBubble__Root:"chatBubble__Root",chatBubble__CloseButton:"chatBubble__CloseButton",chatBubble__Header:"chatBubble__Header"},s={dataSummary__Group:"dataSummary__Group",dataSummary__Toggle:"dataSummary__Toggle",dataSummary__ToggleText:"dataSummary__ToggleText",dataSummary__Collapsible:"dataSummary__Collapsible",dataSummary__List:"dataSummary__List",dataSummary__Item:"dataSummary__Item",dataSummary__Connector:"dataSummary__Connector",dataSummary__IconContainer:"dataSummary__IconContainer",dataSummary__Content:"dataSummary__Content",dataSummary__Details:"dataSummary__Details",dataSummary__Label:"dataSummary__Label"},c={...t,...e,..._,...i,...r,...o,...a,...h,...n,...s};exports.ChatBubbleComponentIds=n;exports.DataSummaryComponentIds=s;exports.SearchBarComponentIds=o;exports.SidebarChatComponentIds=h;exports.aiChatComponentIds=e;exports.aiSearchComponentIds=_;exports.chatButtonComponentIds=r;exports.componentIDs=c;exports.markDownComponentIds=t;exports.miscellanousComponentIds=a;exports.modalComponentIds=i;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a={icon:"icon",loadingIndicator__Text:"loadingIndicator__Text",loadingIndicator__Dots:"loadingIndicator__Dots",loadingIndicator__Dot:"loadingIndicator__Dot",view_toggle:"view_toggle",view_toggle_button:"view_toggle_button",view_toggle_icon:"view_toggle_icon"},t={codeblockContainer:"codeblockContainer",codeblockHeader:"codeblockHeader",codeblockHeaderLanguage:"codeblockHeaderLanguage",codeblockCopyButton:"codeblockCopyButton",codeblockHighlighterWrapper:"codeblockHighlighterWrapper",codeblockHighlighter:"codeblockHighlighter",codeblockCode:"codeblockCode",markdownH1:"markdownH1",markdownH2:"markdownH2",markdownP:"markdownP",markdownLi:"markdownLi",markdownUl:"markdownUl",markdownOl:"markdownOl",markdownLink:"markdownLink",markdownSourceLink:"markdownSourceLink",markdownTable:"markdownTable",markdownTh:"markdownTh",markdownTd:"markdownTd",markdownCode:"markdownCode",markdownInput:"markdownInput",markdownSup:"markdownSup",markdownImg:"markdownImg",markdownHr:"markdownHr"},e={aiChatWrapper:"aiChatWrapper",aiChatRoot:"aiChatRoot",aiChatHeader:"aiChatHeader",aiChatHeader__Toolbar:"aiChatHeader__Toolbar",aiChatHeader__ToolbarHeader:"aiChatHeader__ToolbarHeader",aiChatHeader__ToolbarHeaderWrapper:"aiChatHeader__ToolbarHeaderWrapper",aiChatContent:"aiChatContent",aiChatContentScrollArea:"aiChatContentScrollArea",aiChatContentScrollArea__Viewport:"aiChatContentScrollArea__Viewport",aiChatContentScrollArea__Scrollbar:"aiChatContentScrollArea__Scrollbar",aiChatContentScrollArea__Thumb:"aiChatContentScrollArea__Thumb",aiChatContentScrollArea__Corner:"aiChatContentScrollArea__Corner",aiChatDisclaimer:"aiChatDisclaimer",aiChatDisclaimerLabel:"aiChatDisclaimerLabel",aiChatDisclaimerTrigger:"aiChatDisclaimerTrigger",aiChatDisclaimerContent:"aiChatDisclaimerContent",aiChatDisclaimerText:"aiChatDisclaimerText",aiChatDisclaimerArrow:"aiChatDisclaimerArrow",aiChatExampleQuestions:"aiChatExampleQuestions",aiChatExampleQuestionsLabel:"aiChatExampleQuestionsLabel",aiChatExampleQuestionsList:"aiChatExampleQuestionsList",aiChatExampleQuestion:"aiChatExampleQuestion",aiChatExampleQuestionButton:"aiChatExampleQuestionButton",aiChatWorkflows:"aiChatWorkflows",aiChatWorkflowsLabel:"aiChatWorkflowsLabel",aiChatWorkflowsList:"aiChatWorkflowsList",aiChatWorkflow:"aiChatWorkflow",aiChatWorkflow__Icon:"aiChatWorkflow__Icon",aiChatMessages:"aiChatMessages",aiChatMessageWrapper:"aiChatMessageWrapper",aiChatMessageHeader:"aiChatMessageHeader",aiChatMessageLoading:"aiChatMessageLoading",aiChatMessageAvatar:"aiChatMessageAvatar",aiChatMessageAvatarFallback:"aiChatMessageAvatarFallback",aiChatMessageAvatarImage:"aiChatMessageAvatarImage",aiChatMessageAvatarContent:"aiChatMessageAvatarContent",aiChatMessageName:"aiChatMessageName",aiChatMessageContentWrapper:"aiChatMessageContentWrapper",aiChatMessageContent:"aiChatMessageContent",aiChatMessageAttachments:"aiChatMessageAttachments",aiChatMessageAttachments__List:"aiChatMessageAttachments__List",aiChatMessageAttachments__Item:"aiChatMessageAttachments__Item",aiChatMessageAttachments__ItemIcon:"aiChatMessageAttachments__ItemIcon",aiChatMessageAttachments__ItemTitle:"aiChatMessageAttachments__ItemTitle",aiChatMessageAttachmentsPreview:"aiChatMessageAttachmentsPreview",aiChatMessageAttachmentsPreview__Overlay:"aiChatMessageAttachmentsPreview__Overlay",aiChatMessageAttachmentsPreview__Content:"aiChatMessageAttachmentsPreview__Content",aiChatMessageAttachmentsPreview__Header:"aiChatMessageAttachmentsPreview__Header",aiChatMessageAttachmentsPreview__Close:"aiChatMessageAttachmentsPreview__Close",aiChatMessageAttachmentsPreview__Body:"aiChatMessageAttachmentsPreview__Body",aiChatMessagePart:"aiChatMessagePart",aiChatMessageToolbar:"aiChatMessageToolbar",aiChatMessageCustomActions:"aiChatMessageCustomActions",aiChatMessageCustomAction:"aiChatMessageCustomAction",aiChatMessageAction:"aiChatMessageAction",aiChatMessageSources:"aiChatMessageSources",aiChatMessageSources__Header:"aiChatMessageSources__Header",aiChatMessageSources__List:"aiChatMessageSources__List",aiChatMessageSourceItem:"aiChatMessageSourceItem",aiChatMessageSourceItem__Icon:"aiChatMessageSourceItem__Icon",aiChatMessageSourceItem__Breadcrumbs:"aiChatMessageSourceItem__Breadcrumbs",aiChatMessageSourceItem__Breadcrumb:"aiChatMessageSourceItem__Breadcrumb",aiChatMessageSourceItem__BreadcrumbIcon:"aiChatMessageSourceItem__BreadcrumbIcon",aiChatMessageSourceItem__Title:"aiChatMessageSourceItem__Title",aiChatMessageSourceItem__Tag:"aiChatMessageSourceItem__Tag",aiChatMessageSourceItem__Description:"aiChatMessageSourceItem__Description",aiChatMessageSourceItem__DescriptionPart:"aiChatMessageSourceItem__DescriptionPart",aiChatMessageSourceItem__Indicator:"aiChatMessageSourceItem__Indicator",aiChatFooter:"aiChatFooter",aiChatInput__Fieldset:"aiChatInput__Fieldset",aiChatInput__Group:"aiChatInput__Group",aiChatInput:"aiChatInput",aiChatInput__SendButton:"aiChatInput__SendButton",aiChatInput__SendButtonIcon:"aiChatInput__SendButtonIcon",aiChatAttachmentsBar:"aiChatAttachmentsBar",aiChatAttachmentsBar__List:"aiChatAttachmentsBar__List",aiChatAttachmentsBar__Attachment:"aiChatAttachmentsBar__Attachment",aiChatAttachmentsBar__AttachmentIcon:"aiChatAttachmentsBar__AttachmentIcon",aiChatAttachmentsBar__AttachmentTitle:"aiChatAttachmentsBar__AttachmentTitle",aiChatAttachmentsBar__AttachmentDelete:"aiChatAttachmentsBar__AttachmentDelete",aiChatAttachmentsBar__Actions:"aiChatAttachmentsBar__Actions",aiChatAttachmentsBar__InfoTip:"aiChatAttachmentsBar__InfoTip",aiChatAttachmentsBar__InfoTipIcon:"aiChatAttachmentsBar__InfoTipIcon",aiChatAttachmentsBar__InfoTipArrow:"aiChatAttachmentsBar__InfoTipArrow",aiChatAttachmentsBar__InfoTipText:"aiChatAttachmentsBar__InfoTipText",aiChatAttachmentsBar__Inputs:"aiChatAttachmentsBar__Inputs",aiChatAttachmentsBar__Input:"aiChatAttachmentsBar__Input",aiChatAttachmentsBar__InputIcon:"aiChatAttachmentsBar__InputIcon",aiChatAttachmentsBar__Modal:"aiChatAttachmentsBar__Modal",aiChatAttachmentsBar__ModalOverlay:"aiChatAttachmentsBar__ModalOverlay",aiChatAttachmentsBar__ModalContent:"aiChatAttachmentsBar__ModalContent",aiChatAttachmentsBar__ModalHeader:"aiChatAttachmentsBar__ModalHeader",aiChatAttachmentsBar__ModalClose:"aiChatAttachmentsBar__ModalClose",aiChatAttachmentsBar__ModalBody:"aiChatAttachmentsBar__ModalBody",aiChatAttachmentsBar__ModalHeading:"aiChatAttachmentsBar__ModalHeading",aiChatAttachmentsBar__ModalDescription:"aiChatAttachmentsBar__ModalDescription",aiChatAttachmentsBar__ModalHelp:"aiChatAttachmentsBar__ModalHelp",aiChatAttachmentsBar__Form:"aiChatAttachmentsBar__Form",aiChatAttachmentsBar__FormTitle:"aiChatAttachmentsBar__FormTitle",aiChatAttachmentsBar__FormTitleLabel:"aiChatAttachmentsBar__FormTitleLabel",aiChatAttachmentsBar__FormTitleInput:"aiChatAttachmentsBar__FormTitleInput",aiChatAttachmentsBar__FormTitleError:"aiChatAttachmentsBar__FormTitleError",aiChatAttachmentsBar__FormContent:"aiChatAttachmentsBar__FormContent",aiChatAttachmentsBar__FormContentLabel:"aiChatAttachmentsBar__FormContentLabel",aiChatAttachmentsBar__FormContentInput:"aiChatAttachmentsBar__FormContentInput",aiChatAttachmentsBar__FormContentError:"aiChatAttachmentsBar__FormContentError",aiChatAttachmentsBar__FormSubmitButton:"aiChatAttachmentsBar__FormSubmitButton",aiChatActionBar:"aiChatActionBar",aiChat__ChatActions:"aiChat__ChatActions",aiChat__ChatAction:"aiChat__ChatAction",aiChat__ChatActionLabel:"aiChat__ChatActionLabel",aiChat__ChatActionFeeback:"aiChat__ChatActionFeeback",aiChatHelpActions:"aiChatHelpActions",aiChatHelpAction:"aiChatHelpAction",aiChatHelpActions__Trigger:"aiChatHelpActions__Trigger",aiChatHelpActions__Menu:"aiChatHelpActions__Menu",aiChatHelpActions__MenuArrow:"aiChatHelpActions__MenuArrow",aiChatHelpActions__MenuItem:"aiChatHelpActions__MenuItem",aiChatHelpActions_MenuItemIcon:"aiChatHelpActions_MenuItemIcon",aiChatTagline__Container:"aiChatTagline__Container",aiChatTagline__Text:"aiChatTagline__Text",aiChatTagline__Logo:"aiChatTagline__Logo",aiChatTagline__BrandName:"aiChatTagline__BrandName",aiChatFeedbackModal:"aiChatFeedbackModal",aiChatFeedbackModal__Overlay:"aiChatFeedbackModal__Overlay",aiChatFeedbackModal__Content:"aiChatFeedbackModal__Content",aiChatFeedbackModal__Header:"aiChatFeedbackModal__Header",aiChatFeedbackModal__Close:"aiChatFeedbackModal__Close",aiChatFeedbackModal__Body:"aiChatFeedbackModal__Body",aiChatFeedbackForm:"aiChatFeedbackForm",aiChatFeedbackItem:"aiChatFeedbackItem",aiChatFeedbackItem__Checkbox:"aiChatFeedbackItem__Checkbox",aiChatFeedbackItem__CheckboxIndicator:"aiChatFeedbackItem__CheckboxIndicator",aiChatFeedbackItem__Label:"aiChatFeedbackItem__Label",aiChatFeedbackItem__Description:"aiChatFeedbackItem__Description",aiChatFeedbackForm__SubmitButton:"aiChatFeedbackForm__SubmitButton",aiChatForm__Wrapper:"aiChatForm__Wrapper",aiChatForm:"aiChatForm",aiChatForm__Close:"aiChatForm__Close",aiChatForm__Header:"aiChatForm__Header",aiChatForm__Heading:"aiChatForm__Heading",aiChatForm__Description:"aiChatForm__Description",aiChatForm__Content:"aiChatForm__Content",aiChatForm__Field:"aiChatForm__Field",aiChatForm__FieldLabel:"aiChatForm__FieldLabel",aiChatForm__FieldText:"aiChatForm__FieldText",aiChatForm__FieldEmail:"aiChatForm__FieldEmail",aiChatForm__FieldFile:"aiChatForm__FieldFile",aiChatForm__FieldTextArea:"aiChatForm__FieldTextArea",aiChatForm__FieldCheckbox:"aiChatForm__FieldCheckbox",aiChatForm__FieldCheckboxIndicator:"aiChatForm__FieldCheckboxIndicator",aiChatForm__FieldSelect:"aiChatForm__FieldSelect",aiChatForm__FieldSelect__Trigger:"aiChatForm__FieldSelect__Trigger",aiChatForm__FieldSelect__Value:"aiChatForm__FieldSelect__Value",aiChatForm__FieldSelect__Icon:"aiChatForm__FieldSelect__Icon",aiChatForm__FieldSelect__Content:"aiChatForm__FieldSelect__Content",aiChatForm__FieldSelect__Viewport:"aiChatForm__FieldSelect__Viewport",aiChatForm__FieldSelect__Item:"aiChatForm__FieldSelect__Item",aiChatForm__FieldSelect__ItemIndicator:"aiChatForm__FieldSelect__ItemIndicator",aiChatForm__FieldSelect__ItemText:"aiChatForm__FieldSelect__ItemText",aiChatForm__FieldError:"aiChatForm__FieldError",aiChatForm__Error:"aiChatForm__Error",aiChatForm__Footer:"aiChatForm__Footer",aiChatForm__Cancel:"aiChatForm__Cancel",aiChatForm__Submit:"aiChatForm__Submit",aiChatForm__Success:"aiChatForm__Success",aiChatForm__SuccessHeading:"aiChatForm__SuccessHeading",aiChatForm__SuccessMessage:"aiChatForm__SuccessMessage",aiChatForm__SuccessButton:"aiChatForm__SuccessButton",aiChatLink:"aiChatLink"},_={aiSearchWrapper:"aiSearchWrapper",aiSearchRoot:"aiSearchRoot",aiSearchContent:"aiSearchContent",aiSearchInputGroup:"aiSearchInputGroup",aiSearchInputIcon:"aiSearchInputIcon",aiSearchInput:"aiSearchInput",aiSearchLoading:"aiSearchLoading",aiAskAITrigger:"aiAskAITrigger",aiAskAITrigger__Icon:"aiAskAITrigger__Icon",aiAskAITrigger__Label:"aiAskAITrigger__Label",aiAskAITrigger__Query:"aiAskAITrigger__Query",aiAskAITrigger__Indicator:"aiAskAITrigger__Indicator",aiAskAITrigger__IndicatorText:"aiAskAITrigger__IndicatorText",aiSearchResults:"aiSearchResults",aiSearchResults__Loading:"aiSearchResults__Loading",aiSearchResults__Empty:"aiSearchResults__Empty",aiSearchResults__TabList:"aiSearchResults__TabList",aiSearchResults__Tab:"aiSearchResults__Tab",aiSearchResults__Content:"aiSearchResults__Content",aiSearchResults__ScrollArea:"aiSearchResults__ScrollArea",aiSearchResults__ScrollAreaViewport:"aiSearchResults__ScrollAreaViewport",aiSearchResults__List:"aiSearchResults__List",aiSearchResults__Item:"aiSearchResults__Item",aiSearchResults__ItemIcon:"aiSearchResults__ItemIcon",aiSearchResults__ItemBreadcrumbs:"aiSearchResults__ItemBreadcrumbs",aiSearchResults__ItemBreadcrumbIcon:"aiSearchResults__ItemBreadcrumbIcon",aiSearchResults__ItemTitle:"aiSearchResults__ItemTitle",aiSearchResults__ItemTag:"aiSearchResults__ItemTag",aiSearchResults__ItemDescription:"aiSearchResults__ItemDescription",aiSearchResults__ItemDescriptionPart:"aiSearchResults__ItemDescriptionPart",aiSearchResults__ItemIndicator:"aiSearchResults__ItemIndicator",aiSearchResults__ItemPreview:"aiSearchResults__ItemPreview",aiSearchResults__ItemPreview__Header:"aiSearchResults__ItemPreview__Header",aiSearchResults__ItemPreview__Heading:"aiSearchResults__ItemPreview__Heading",aiSearchResults__ItemPreview__Title:"aiSearchResults__ItemPreview__Title",aiSearchResults__ItemPreview__Title__LinkIcon:"aiSearchResults__ItemPreview__Title__LinkIcon",aiSearchResults__ItemPreview__Breadcrumbs:"aiSearchResults__ItemPreview__Breadcrumbs",aiSearchResults__ItemPreview__BreadcrumbIcon:"aiSearchResults__ItemPreview__BreadcrumbIcon",aiSearchResults__ItemPreview__Body:"aiSearchResults__ItemPreview__Body",aiSearchResults__ItemPreview__Outline:"aiSearchResults__ItemPreview__Outline",aiSearchResults__ItemPreview__Outline__Title:"aiSearchResults__ItemPreview__Outline__Title",aiSearchResults__ItemPreview__Outline__List:"aiSearchResults__ItemPreview__Outline__List",aiSearchResults__ItemPreview__Outline__Item:"aiSearchResults__ItemPreview__Outline__Item",aiSearchResults__ItemPreview__Outline__ItemIcon:"aiSearchResults__ItemPreview__Outline__ItemIcon",aiSearchResults__ItemPreview__Outline__ItemText:"aiSearchResults__ItemPreview__Outline__ItemText",aiSearchResults__ItemPreview__Outline__ItemLinkIcon:"aiSearchResults__ItemPreview__Outline__ItemLinkIcon",aiSearchResults__ScrollAreaScrollbar:"aiSearchResults__ScrollAreaScrollbar",aiSearchResults__ScrollAreaThumb:"aiSearchResults__ScrollAreaThumb",aiSearchResults__ScrollAreaCorner:"aiSearchResults__ScrollAreaCorner",aiSearchFooter:"aiSearchFooter",aiSearchTagline__Container:"aiSearchTagline__Container",aiSearchTagline__Text:"aiSearchTagline__Text",aiSearchTagline__Logo:"aiSearchTagline__Logo",aiSearchTagline__BrandName:"aiSearchTagline__BrandName"},i={modal:"modal",modal__Overlay:"modal__Overlay",modal__Content:"modal__Content",modal__Close:"modal__Close"},r={chatButton__Text:"chatButton__Text",chatButton__Button:"chatButton__Button",chatButton__Container:"chatButton__Container",chatButton__AvatarImage:"chatButton__AvatarImage",chatButton__AvatarContent:"chatButton__AvatarContent",chatButton__CloseIcon:"chatButton__CloseIcon"},o={searchBar__Container:"searchBar__Container",searchBar__Button:"searchBar__Button",searchBar__ContentWrapper:"searchBar__ContentWrapper",searchBar__Text:"searchBar__Text",searchBar__Icon:"searchBar__Icon",searchBar__KbdWrapper:"searchBar__KbdWrapper",searchBar__CmdIcon:"searchBar__CmdIcon",searchBar__Ctrl:"searchBar__Ctrl",searchBar__KbdShortcutKey:"searchBar__KbdShortcutKey"},s={sidebarChat__Root:"sidebarChat__Root",sidebarChat__Resizer:"sidebarChat__Resizer",sidebarChat__CloseButton:"sidebarChat__CloseButton",sidebarChat__Header:"sidebarChat__Header"},h={chatBubble__Root:"chatBubble__Root",chatBubble__CloseButton:"chatBubble__CloseButton",chatBubble__Header:"chatBubble__Header"},n={dataSummary__Group:"dataSummary__Group",dataSummary__Toggle:"dataSummary__Toggle",dataSummary__ToggleText:"dataSummary__ToggleText",dataSummary__Collapsible:"dataSummary__Collapsible",dataSummary__List:"dataSummary__List",dataSummary__Item:"dataSummary__Item",dataSummary__Connector:"dataSummary__Connector",dataSummary__IconContainer:"dataSummary__IconContainer",dataSummary__Content:"dataSummary__Content",dataSummary__Details:"dataSummary__Details",dataSummary__Label:"dataSummary__Label"},c={...t,...e,..._,...i,...r,...o,...a,...s,...h,...n};exports.ChatBubbleComponentIds=h;exports.DataSummaryComponentIds=n;exports.SearchBarComponentIds=o;exports.SidebarChatComponentIds=s;exports.aiChatComponentIds=e;exports.aiSearchComponentIds=_;exports.chatButtonComponentIds=r;exports.componentIDs=c;exports.markDownComponentIds=t;exports.miscellanousComponentIds=a;exports.modalComponentIds=i;
|
|
@@ -85,8 +85,8 @@ export declare const aiChatComponentIds: {
|
|
|
85
85
|
aiChatMessageAttachmentsPreview__Body: "aiChatMessageAttachmentsPreview__Body";
|
|
86
86
|
aiChatMessagePart: "aiChatMessagePart";
|
|
87
87
|
aiChatMessageToolbar: "aiChatMessageToolbar";
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
aiChatMessageCustomActions: "aiChatMessageCustomActions";
|
|
89
|
+
aiChatMessageCustomAction: "aiChatMessageCustomAction";
|
|
90
90
|
aiChatMessageAction: "aiChatMessageAction";
|
|
91
91
|
aiChatMessageSources: "aiChatMessageSources";
|
|
92
92
|
aiChatMessageSources__Header: "aiChatMessageSources__Header";
|
|
@@ -460,8 +460,8 @@ export declare const componentIDs: {
|
|
|
460
460
|
aiChatMessageAttachmentsPreview__Body: "aiChatMessageAttachmentsPreview__Body";
|
|
461
461
|
aiChatMessagePart: "aiChatMessagePart";
|
|
462
462
|
aiChatMessageToolbar: "aiChatMessageToolbar";
|
|
463
|
-
|
|
464
|
-
|
|
463
|
+
aiChatMessageCustomActions: "aiChatMessageCustomActions";
|
|
464
|
+
aiChatMessageCustomAction: "aiChatMessageCustomAction";
|
|
465
465
|
aiChatMessageAction: "aiChatMessageAction";
|
|
466
466
|
aiChatMessageSources: "aiChatMessageSources";
|
|
467
467
|
aiChatMessageSources__Header: "aiChatMessageSources__Header";
|
|
@@ -85,8 +85,8 @@ const a = {
|
|
|
85
85
|
aiChatMessageAttachmentsPreview__Body: "aiChatMessageAttachmentsPreview__Body",
|
|
86
86
|
aiChatMessagePart: "aiChatMessagePart",
|
|
87
87
|
aiChatMessageToolbar: "aiChatMessageToolbar",
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
aiChatMessageCustomActions: "aiChatMessageCustomActions",
|
|
89
|
+
aiChatMessageCustomAction: "aiChatMessageCustomAction",
|
|
90
90
|
aiChatMessageAction: "aiChatMessageAction",
|
|
91
91
|
aiChatMessageSources: "aiChatMessageSources",
|
|
92
92
|
aiChatMessageSources__Header: "aiChatMessageSources__Header",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("react"),s=require("../styled/components/embedded-chat.cjs"),h=require("../styled/components/modal.cjs"),M=require("../styled/components/shadow.cjs"),g=require("../styled/components/message.cjs"),p=require("../primitives/providers/config-provider.cjs"),C=require("../primitives/providers/root-provider.cjs"),k=require("../primitives/providers/widget-provider.cjs"),T=require("../primitives/components/modal/modal-provider.cjs"),F=require("../primitives/utils/misc.cjs"),j=require("../primitives/atoms/portal-with-theme.cjs"),B=require("../primitives/atoms/error-boundary.cjs"),S=require("./modal.cjs"),v=require("./widget-toggle.cjs");function w(n){const{baseSettings:t,aiChatSettings:r}=n;return e.jsx(B.ErrorBoundary,{children:e.jsx(M.Shadow,{wrapperStyles:{height:"inherit",width:"inherit"},children:e.jsx(C.RootProvider,{config:{baseSettings:t,aiChatSettings:r},componentType:p.WebWidgetInteractionType.EmbeddedChat,children:e.jsx(I,{...n})})})})}function A(n){const{children:t,onToggleView:r,isHidden:a,shouldAutoFocusInput:c=!r}=n;return e.jsx(s.Provider,{isHidden:a,shouldAutoFocusInput:c,children:t})}function I(n){return e.jsx(A,{...n,children:e.jsx(b,{...n})})}function b(n){const{onToggleView:t,variant:r,header:a=y}=n,c=T.useModal(),i=k.useWidget(),o=c&&!i?S.ModalContent:x.Fragment;return e.jsx(o,{children:e.jsxs(s.Wrapper,{variant:r??(t?"no-shadow":"container-with-shadow"),"data-composite":F.dataAttr(!!n.onToggleView||c?.isOpen),children:[e.jsxs(s.Root,{children:[a&&e.jsx(a,{...n}),e.jsx(f,{}),e.jsx(W,{})]}),e.jsx(V,{}),e.jsx(O,{})]})})}const y=n=>{const{onToggleView:t,askAILabel:r,searchLabel:a}=n,c=!!t;return e.jsx(s.Header,{"data-show-toolbar":F.dataAttr(c),children:c?e.jsxs(s.HeaderToolbar,{children:[e.jsxs(s.HeaderToolbarWrapper,{children:[e.jsx(s.ToolbarHeader,{}),e.jsxs(s.Disclaimer,{children:[e.jsx(s.DisclaimerTrigger,{}),e.jsxs(s.DisclaimerContent,{side:"bottom",align:"start",children:[e.jsx(s.DisclaimerText,{}),e.jsx(s.DisclaimerArrow,{})]})]})]}),e.jsx(v.WidgetToggle,{onToggleView:t,askAILabel:r,searchLabel:a,view:"chat"}),e.jsx(h.Close,{})]}):e.jsx(h.Close,{})})};function f(){return e.jsx(s.Content,{children:e.jsxs(s.ContentScrollArea,{children:[e.jsx(s.ContentScrollAreaViewport,{children:e.jsx(E,{})}),e.jsx(s.ContentScrollAreaScrollbar,{children:e.jsx(s.ContentScrollAreaThumb,{})}),e.jsx(s.ContentScrollAreaCorner,{})]})})}function E(){const{aiChatSettings:{components:n}}=p.useInkeepConfig();return e.jsx(s.Messages,{children:({messages:t,isLoading:r})=>{const a=t.at(-1),c=(o,m)=>{const d=n?.[o];if(!d)return console.warn(`Component "${o}" not found in components config`),null;try{if(typeof d=="function"&&d.length<=1)return x.createElement(d,m);const l=d(m,document.createElement("div"),null);return x.isValidElement(l)||typeof l=="string"?l:null}catch(l){return console.error(`🔍 [renderComponent] Error rendering component "${o}":`,l),null}},i=o=>e.jsx(s.Markdown,{text:o});return e.jsxs(e.Fragment,{children:[e.jsx(H,{}),t.map(o=>e.jsxs(s.MessageWrapper,{message:o,children:[e.jsx(u,{}),e.jsxs(s.MessageContentWrapper,{children:[e.jsx(s.MessageContent,{children:n?.IkpMessage?e.jsx(s.DynamicComponent,{name:"IkpMessage",props:{message:o,renderComponent:c,renderMarkdown:i},componentDef:n.IkpMessage}):e.jsxs(e.Fragment,{children:[e.jsx(g.EmbeddedChatMessagePart,{isLast:a?.id===o.id}),e.jsx(L,{})]})}),e.jsx(D,{}),e.jsx(P,{})]})]},o.id)),r&&a?.parts.length&&e.jsxs(s.MessageWrapper,{message:{id:"___loader___",role:"assistant",parts:[{type:"text",text:"Thinking..."}]},children:[e.jsx(u,{}),e.jsx(s.MessageLoading,{})]})]})}})}function H(){return e.jsxs(s.IntroMessageWrapper,{children:[e.jsxs(s.MessageHeader,{children:[e.jsx(s.MessageAvatar,{children:e.jsx(s.MessageAvatarContent,{children:e.jsx(s.MessageAvatarImage,{})})}),e.jsx(s.MessageName,{})]}),e.jsxs(s.MessageContentWrapper,{children:[e.jsx(s.MessageContent,{children:e.jsx(g.EmbeddedChatMessagePart,{isLast:!1})}),e.jsxs(s.Disclaimer,{children:[e.jsx(s.DisclaimerLabel,{}),e.jsx(s.DisclaimerTrigger,{}),e.jsxs(s.DisclaimerContent,{children:[e.jsx(s.DisclaimerText,{}),e.jsx(s.DisclaimerArrow,{})]})]}),e.jsxs(s.ExampleQuestions,{children:[e.jsx(s.ExampleQuestionsLabel,{}),e.jsx(s.ExampleQuestionsList,{children:n=>n.map(t=>e.jsx(s.ExampleQuestion,{children:e.jsx(s.ExampleQuestionButton,{question:t})},t))})]})]})]})}function u(){return e.jsxs(s.MessageHeader,{children:[e.jsx(s.MessageAvatar,{children:e.jsx(s.MessageAvatarContent,{children:e.jsx(s.MessageAvatarImage,{})})}),e.jsx(s.MessageName,{})]})}function D(){return e.jsxs(s.MessageAttachments,{children:[e.jsx(s.MessageAttachmentsList,{children:n=>n.map(t=>e.jsxs(s.MessageAttachmentsItem,{attachment:t,children:[e.jsx(s.MessageAttachmentsItemIcon,{}),e.jsx(s.MessageAttachmentsItemTitle,{})]},t.id))}),e.jsx(s.MessageAttachmentsPreview,{children:e.jsx(j.PortalWithTheme,{children:e.jsx(s.MessageAttachmentsPreviewOverlay,{children:e.jsxs(s.MessageAttachmentsPreviewContent,{children:[e.jsx(s.MessageAttachmentsPreviewHeader,{}),e.jsx(s.MessageAttachmentsPreviewClose,{}),e.jsx(s.MessageAttachmentsPreviewBody,{})]})})})})]})}function P(){return e.jsxs(s.MessageToolbar,{children:[e.jsx(s.MessageAnnotationActions,{children:n=>n.map((t,r)=>e.jsx(s.MessageAnnotationAction,{action:t},`action-${r}`))}),e.jsx(s.MessageAction,{action:"copy"}),e.jsx(s.MessageAction,{action:"upvote"}),e.jsx(s.MessageAction,{action:"downvote"})]})}function L(){return e.jsxs(s.MessageSources,{children:[e.jsx(s.MessageSourcesHeader,{}),e.jsx(s.MessageSourcesList,{children:n=>n.map((t,r)=>e.jsxs(s.MessageSourceItem,{href:t.url,source:t,children:[e.jsx(s.MessageSourceItemBreadcrumbs,{children:t.breadcrumbs?.map(a=>e.jsxs(x.Fragment,{children:[a,e.jsx(s.MessageSourceItemBreadcrumbIcon,{})]},a))}),e.jsx(s.MessageSourceItemIcon,{}),e.jsx(s.MessageSourceItemTitle,{}),e.jsx(s.MessageSourceItemTag,{}),e.jsx(s.MessageSourceItemDescription,{children:a=>a.map((c,i)=>e.jsx(s.MessageSourceItemDescriptionPart,{part:c},`part-${i}`))}),e.jsx(s.MessageSourceItemIndicator,{})]},r))})]})}function W(){return e.jsxs(s.Footer,{children:[e.jsx(q,{}),e.jsx(_,{})]})}function q(){return e.jsxs(s.InputFieldset,{children:[e.jsxs(s.InputGroup,{children:[e.jsx(s.Input,{}),e.jsx(s.SendButton,{children:e.jsx(s.SendButtonIcon,{})})]}),e.jsxs(s.AttachmentsBar,{children:[e.jsx(s.AttachmentsBarList,{children:n=>n.map(t=>e.jsxs(s.AttachmentsBarAttachment,{attachment:t,children:[e.jsx(s.AttachmentsBarAttachmentIcon,{}),e.jsx(s.AttachmentsBarAttachmentTitle,{}),e.jsx(s.AttachmentsBarAttachmentDelete,{})]},t.id))}),e.jsxs(s.AttachmentsBarActions,{children:[e.jsxs(s.AttachmentsBarInfoTip,{children:[e.jsx(s.AttachmentsBarInfoTipIcon,{}),e.jsx(s.AttachmentsBarInfoTipText,{})]}),e.jsx(s.AttachmentsBarInputs,{children:n=>n.map(t=>e.jsx(s.AttachmentsBarInput,{input:t,children:t.displayName},t.id))})]}),e.jsx(j.PortalWithTheme,{children:e.jsx(s.AttachmentsBarModal,{children:e.jsx(s.AttachmentsBarModalOverlay,{children:e.jsxs(s.AttachmentsBarModalContent,{children:[e.jsxs(s.AttachmentsBarModalHeader,{children:[e.jsx(s.AttachmentsBarModalHeading,{}),e.jsx(s.AttachmentsBarModalDescription,{}),e.jsx(s.AttachmentsBarModalHelp,{})]}),e.jsx(s.AttachmentsBarModalClose,{}),e.jsx(s.AttachmentsBarModalBody,{children:e.jsxs(s.AttachmentsBarForm,{children:[e.jsxs(s.AttachmentsBarFormTitle,{children:[e.jsx(s.AttachmentsBarFormTitleLabel,{}),e.jsx(s.AttachmentsBarFormTitleInput,{}),e.jsx(s.AttachmentsBarFormTitleError,{})]}),e.jsxs(s.AttachmentsBarFormContent,{children:[e.jsx(s.AttachmentsBarFormContentLabel,{}),e.jsx(s.AttachmentsBarFormContentInput,{}),e.jsx(s.AttachmentsBarFormContentError,{})]}),e.jsx(s.AttachmentsBarFormSubmitButton,{})]})})]})})})})]})]})}function _(){return e.jsxs(s.ActionBar,{children:[e.jsxs(s.TaglineContainer,{children:[e.jsx(s.TaglineText,{}),e.jsx(s.TaglineLogo,{}),e.jsx(s.TaglineBrandName,{})]}),e.jsxs(s.Actions,{children:[e.jsx(s.HelpActions,{children:({pinned:n,unpinned:t})=>e.jsxs(e.Fragment,{children:[n.map(r=>e.jsx(s.HelpAction,{action:r},r.name)),t.length>0&&e.jsx(s.HelpActionsTrigger,{}),e.jsxs(s.HelpActionsMenu,{children:[e.jsx(s.HelpActionsMenuArrow,{}),t.map(r=>e.jsxs(s.HelpActionsMenuItem,{action:r,children:[e.jsx(s.HelpActionsMenuItemIcon,{action:r}),r.name]},r.name))]})]})}),e.jsxs(s.ChatAction,{action:"copy",children:[e.jsx(s.ChatActionLabel,{action:"copy"}),e.jsx(s.ChatActionFeedback,{action:"copy"})]}),e.jsx(s.ChatAction,{action:"clear"}),e.jsx(s.ChatAction,{action:"stop"})]})]})}function V(){return e.jsx(j.PortalWithTheme,{children:e.jsx(s.FeedbackModal,{children:e.jsx(s.FeedbackModalOverlay,{children:e.jsxs(s.FeedbackModalContent,{children:[e.jsx(s.FeedbackModalHeader,{}),e.jsx(s.FeedbackModalClose,{}),e.jsx(s.FeedbackModalBody,{children:e.jsxs(s.FeedbackForm,{children:[e.jsxs(s.FeedbackItem,{name:"unrelated_response",children:[e.jsx(s.FeedbackItemCheckbox,{children:e.jsx(s.FeedbackItemCheckboxIndicator,{})}),e.jsx(s.FeedbackItemLabel,{}),e.jsx(s.FeedbackItemDescription,{})]}),e.jsxs(s.FeedbackItem,{name:"inaccurate_statement",children:[e.jsx(s.FeedbackItemCheckbox,{children:e.jsx(s.FeedbackItemCheckboxIndicator,{})}),e.jsx(s.FeedbackItemLabel,{}),e.jsx(s.FeedbackItemDescription,{})]}),e.jsxs(s.FeedbackItem,{name:"inaccurate_code_snippet",children:[e.jsx(s.FeedbackItemCheckbox,{children:e.jsx(s.FeedbackItemCheckboxIndicator,{})}),e.jsx(s.FeedbackItemLabel,{}),e.jsx(s.FeedbackItemDescription,{})]}),e.jsxs(s.FeedbackItem,{name:"irrelevant_citations",children:[e.jsx(s.FeedbackItemCheckbox,{children:e.jsx(s.FeedbackItemCheckboxIndicator,{})}),e.jsx(s.FeedbackItemLabel,{})]}),e.jsx(s.FeedbackSubmitButton,{})]})})]})})})})}function O(){return e.jsxs(s.FormWrapper,{children:[e.jsx(s.FormClose,{}),e.jsxs(s.Form,{children:[e.jsxs(s.FormHeader,{children:[e.jsx(s.FormHeading,{}),e.jsx(s.FormDescription,{})]}),e.jsx(s.FormContent,{children:n=>e.jsxs(e.Fragment,{children:[n.map((t,r)=>e.jsxs(s.FormField,{field:t,autoFocus:r===0,children:[e.jsx(s.FormFieldLabel,{}),t.inputType==="text"&&e.jsx(s.FormFieldText,{}),t.inputType==="email"&&e.jsx(s.FormFieldEmail,{}),t.inputType==="file"&&e.jsx(s.FormFieldFile,{}),t.inputType==="textarea"&&e.jsx(s.FormFieldTextArea,{}),t.inputType==="checkbox"&&e.jsx(s.FormFieldCheckbox,{children:e.jsx(s.FormFieldCheckboxIndicator,{})}),t.inputType==="select"&&e.jsxs(s.FormFieldSelect,{children:[e.jsxs(s.FormFieldSelectTrigger,{children:[e.jsx(s.FormFieldSelectValue,{}),e.jsx(s.FormFieldSelectIcon,{})]}),e.jsx(s.FormFieldSelectContent,{children:e.jsx(s.FormFieldSelectViewport,{children:t.items.map(a=>e.jsxs(s.FormFieldSelectItem,{value:a.value,children:[e.jsx(s.FormFieldSelectItemText,{children:a.label}),e.jsx(s.FormFieldSelectItemIndicator,{})]},a.value))})})]}),e.jsx(s.FormFieldError,{})]},t.name)),e.jsx(s.FormError,{})]})}),e.jsxs(s.FormFooter,{children:[e.jsx(s.FormCancel,{}),e.jsx(s.FormSubmit,{})]})]}),e.jsxs(s.FormSuccess,{children:[e.jsx(s.FormSuccessHeading,{}),e.jsx(s.FormSuccessMessage,{}),e.jsx(s.FormSuccessButton,{})]})]})}exports.InkeepEmbeddedChat=w;exports.InkeepEmbeddedChatImpl=I;exports.InkeepEmbeddedChatImplContent=b;exports.InkeepEmbeddedChatProvider=A;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("react"),s=require("../styled/components/embedded-chat.cjs"),h=require("../styled/components/modal.cjs"),M=require("../styled/components/shadow.cjs"),g=require("../styled/components/message.cjs"),p=require("../primitives/providers/config-provider.cjs"),C=require("../primitives/providers/root-provider.cjs"),k=require("../primitives/providers/widget-provider.cjs"),T=require("../primitives/components/modal/modal-provider.cjs"),F=require("../primitives/utils/misc.cjs"),j=require("../primitives/atoms/portal-with-theme.cjs"),B=require("../primitives/atoms/error-boundary.cjs"),S=require("./modal.cjs"),v=require("./widget-toggle.cjs");function w(r){const{baseSettings:t,aiChatSettings:n}=r;return e.jsx(B.ErrorBoundary,{children:e.jsx(M.Shadow,{wrapperStyles:{height:"inherit",width:"inherit"},children:e.jsx(C.RootProvider,{config:{baseSettings:t,aiChatSettings:n},componentType:p.WebWidgetInteractionType.EmbeddedChat,children:e.jsx(b,{...r})})})})}function A(r){const{children:t,onToggleView:n,isHidden:a,shouldAutoFocusInput:o=!n}=r;return e.jsx(s.Provider,{isHidden:a,shouldAutoFocusInput:o,children:t})}function b(r){return e.jsx(A,{...r,children:e.jsx(I,{...r})})}function I(r){const{onToggleView:t,variant:n,header:a=y}=r,o=T.useModal(),i=k.useWidget(),c=o&&!i?S.ModalContent:x.Fragment;return e.jsx(c,{children:e.jsxs(s.Wrapper,{variant:n??(t?"no-shadow":"container-with-shadow"),"data-composite":F.dataAttr(!!r.onToggleView||o?.isOpen),children:[e.jsxs(s.Root,{children:[a&&e.jsx(a,{...r}),e.jsx(f,{}),e.jsx(W,{})]}),e.jsx(V,{}),e.jsx(O,{})]})})}const y=r=>{const{onToggleView:t,askAILabel:n,searchLabel:a}=r,o=!!t;return e.jsx(s.Header,{"data-show-toolbar":F.dataAttr(o),children:o?e.jsxs(s.HeaderToolbar,{children:[e.jsxs(s.HeaderToolbarWrapper,{children:[e.jsx(s.ToolbarHeader,{}),e.jsxs(s.Disclaimer,{children:[e.jsx(s.DisclaimerTrigger,{}),e.jsxs(s.DisclaimerContent,{side:"bottom",align:"start",children:[e.jsx(s.DisclaimerText,{}),e.jsx(s.DisclaimerArrow,{})]})]})]}),e.jsx(v.WidgetToggle,{onToggleView:t,askAILabel:n,searchLabel:a,view:"chat"}),e.jsx(h.Close,{})]}):e.jsx(h.Close,{})})};function f(){return e.jsx(s.Content,{children:e.jsxs(s.ContentScrollArea,{children:[e.jsx(s.ContentScrollAreaViewport,{children:e.jsx(E,{})}),e.jsx(s.ContentScrollAreaScrollbar,{children:e.jsx(s.ContentScrollAreaThumb,{})}),e.jsx(s.ContentScrollAreaCorner,{})]})})}function E(){const{aiChatSettings:{components:r}}=p.useInkeepConfig();return e.jsx(s.Messages,{children:({messages:t,isLoading:n})=>{const a=t.at(-1),o=(c,m)=>{const d=r?.[c];if(!d)return console.warn(`Component "${c}" not found in components config`),null;try{if(typeof d=="function"&&d.length<=1)return x.createElement(d,m);const l=d(m,document.createElement("div"),null);return x.isValidElement(l)||typeof l=="string"?l:null}catch(l){return console.error(`🔍 [renderComponent] Error rendering component "${c}":`,l),null}},i=c=>e.jsx(s.Markdown,{text:c});return e.jsxs(e.Fragment,{children:[e.jsx(H,{}),t.map(c=>e.jsxs(s.MessageWrapper,{message:c,children:[e.jsx(u,{}),e.jsxs(s.MessageContentWrapper,{children:[e.jsx(s.MessageContent,{children:r?.IkpMessage?e.jsx(s.DynamicComponent,{name:"IkpMessage",props:{message:c,renderComponent:o,renderMarkdown:i},componentDef:r.IkpMessage}):e.jsxs(e.Fragment,{children:[e.jsx(g.EmbeddedChatMessagePart,{isLast:a?.id===c.id}),e.jsx(L,{})]})}),e.jsx(D,{}),e.jsx(P,{})]})]},c.id)),n&&a?.parts.length&&e.jsxs(s.MessageWrapper,{message:{id:"___loader___",role:"assistant",parts:[{type:"text",text:"Thinking..."}]},children:[e.jsx(u,{}),e.jsx(s.MessageLoading,{})]})]})}})}function H(){return e.jsxs(s.IntroMessageWrapper,{children:[e.jsxs(s.MessageHeader,{children:[e.jsx(s.MessageAvatar,{children:e.jsx(s.MessageAvatarContent,{children:e.jsx(s.MessageAvatarImage,{})})}),e.jsx(s.MessageName,{})]}),e.jsxs(s.MessageContentWrapper,{children:[e.jsx(s.MessageContent,{children:e.jsx(g.EmbeddedChatMessagePart,{isLast:!1})}),e.jsxs(s.Disclaimer,{children:[e.jsx(s.DisclaimerLabel,{}),e.jsx(s.DisclaimerTrigger,{}),e.jsxs(s.DisclaimerContent,{children:[e.jsx(s.DisclaimerText,{}),e.jsx(s.DisclaimerArrow,{})]})]}),e.jsxs(s.ExampleQuestions,{children:[e.jsx(s.ExampleQuestionsLabel,{}),e.jsx(s.ExampleQuestionsList,{children:r=>r.map(t=>e.jsx(s.ExampleQuestion,{children:e.jsx(s.ExampleQuestionButton,{question:t})},typeof t=="object"?t.label:t))})]})]})]})}function u(){return e.jsxs(s.MessageHeader,{children:[e.jsx(s.MessageAvatar,{children:e.jsx(s.MessageAvatarContent,{children:e.jsx(s.MessageAvatarImage,{})})}),e.jsx(s.MessageName,{})]})}function D(){return e.jsxs(s.MessageAttachments,{children:[e.jsx(s.MessageAttachmentsList,{children:r=>r.map(t=>e.jsxs(s.MessageAttachmentsItem,{attachment:t,children:[e.jsx(s.MessageAttachmentsItemIcon,{}),e.jsx(s.MessageAttachmentsItemTitle,{})]},t.id))}),e.jsx(s.MessageAttachmentsPreview,{children:e.jsx(j.PortalWithTheme,{children:e.jsx(s.MessageAttachmentsPreviewOverlay,{children:e.jsxs(s.MessageAttachmentsPreviewContent,{children:[e.jsx(s.MessageAttachmentsPreviewHeader,{}),e.jsx(s.MessageAttachmentsPreviewClose,{}),e.jsx(s.MessageAttachmentsPreviewBody,{})]})})})})]})}function P(){return e.jsxs(s.MessageToolbar,{children:[e.jsx(s.MessageCustomActions,{children:r=>r.map((t,n)=>e.jsx(s.MessageCustomAction,{action:t},`action-${n}`))}),e.jsx(s.MessageAction,{action:"copy"}),e.jsx(s.MessageAction,{action:"upvote"}),e.jsx(s.MessageAction,{action:"downvote"})]})}function L(){return e.jsxs(s.MessageSources,{children:[e.jsx(s.MessageSourcesHeader,{}),e.jsx(s.MessageSourcesList,{children:r=>r.map((t,n)=>e.jsxs(s.MessageSourceItem,{href:t.url,source:t,children:[e.jsx(s.MessageSourceItemBreadcrumbs,{children:t.breadcrumbs?.map(a=>e.jsxs(x.Fragment,{children:[a,e.jsx(s.MessageSourceItemBreadcrumbIcon,{})]},a))}),e.jsx(s.MessageSourceItemIcon,{}),e.jsx(s.MessageSourceItemTitle,{}),e.jsx(s.MessageSourceItemTag,{}),e.jsx(s.MessageSourceItemDescription,{children:a=>a.map((o,i)=>e.jsx(s.MessageSourceItemDescriptionPart,{part:o},`part-${i}`))}),e.jsx(s.MessageSourceItemIndicator,{})]},n))})]})}function W(){return e.jsxs(s.Footer,{children:[e.jsx(q,{}),e.jsx(_,{})]})}function q(){return e.jsxs(s.InputFieldset,{children:[e.jsxs(s.InputGroup,{children:[e.jsx(s.Input,{}),e.jsx(s.SendButton,{children:e.jsx(s.SendButtonIcon,{})})]}),e.jsxs(s.AttachmentsBar,{children:[e.jsx(s.AttachmentsBarList,{children:r=>r.map(t=>e.jsxs(s.AttachmentsBarAttachment,{attachment:t,children:[e.jsx(s.AttachmentsBarAttachmentIcon,{}),e.jsx(s.AttachmentsBarAttachmentTitle,{}),e.jsx(s.AttachmentsBarAttachmentDelete,{})]},t.id))}),e.jsxs(s.AttachmentsBarActions,{children:[e.jsxs(s.AttachmentsBarInfoTip,{children:[e.jsx(s.AttachmentsBarInfoTipIcon,{}),e.jsx(s.AttachmentsBarInfoTipText,{})]}),e.jsx(s.AttachmentsBarInputs,{children:r=>r.map(t=>e.jsx(s.AttachmentsBarInput,{input:t,children:t.displayName},t.id))})]}),e.jsx(j.PortalWithTheme,{children:e.jsx(s.AttachmentsBarModal,{children:e.jsx(s.AttachmentsBarModalOverlay,{children:e.jsxs(s.AttachmentsBarModalContent,{children:[e.jsxs(s.AttachmentsBarModalHeader,{children:[e.jsx(s.AttachmentsBarModalHeading,{}),e.jsx(s.AttachmentsBarModalDescription,{}),e.jsx(s.AttachmentsBarModalHelp,{})]}),e.jsx(s.AttachmentsBarModalClose,{}),e.jsx(s.AttachmentsBarModalBody,{children:e.jsxs(s.AttachmentsBarForm,{children:[e.jsxs(s.AttachmentsBarFormTitle,{children:[e.jsx(s.AttachmentsBarFormTitleLabel,{}),e.jsx(s.AttachmentsBarFormTitleInput,{}),e.jsx(s.AttachmentsBarFormTitleError,{})]}),e.jsxs(s.AttachmentsBarFormContent,{children:[e.jsx(s.AttachmentsBarFormContentLabel,{}),e.jsx(s.AttachmentsBarFormContentInput,{}),e.jsx(s.AttachmentsBarFormContentError,{})]}),e.jsx(s.AttachmentsBarFormSubmitButton,{})]})})]})})})})]})]})}function _(){return e.jsxs(s.ActionBar,{children:[e.jsxs(s.TaglineContainer,{children:[e.jsx(s.TaglineText,{}),e.jsx(s.TaglineLogo,{}),e.jsx(s.TaglineBrandName,{})]}),e.jsxs(s.Actions,{children:[e.jsx(s.HelpActions,{children:({pinned:r,unpinned:t})=>e.jsxs(e.Fragment,{children:[r.map(n=>e.jsx(s.HelpAction,{action:n},n.name)),t.length>0&&e.jsx(s.HelpActionsTrigger,{}),e.jsxs(s.HelpActionsMenu,{children:[e.jsx(s.HelpActionsMenuArrow,{}),t.map(n=>e.jsxs(s.HelpActionsMenuItem,{action:n,children:[e.jsx(s.HelpActionsMenuItemIcon,{action:n}),n.name]},n.name))]})]})}),e.jsxs(s.ChatAction,{action:"copy",children:[e.jsx(s.ChatActionLabel,{action:"copy"}),e.jsx(s.ChatActionFeedback,{action:"copy"})]}),e.jsx(s.ChatAction,{action:"clear"}),e.jsx(s.ChatAction,{action:"stop"})]})]})}function V(){return e.jsx(j.PortalWithTheme,{children:e.jsx(s.FeedbackModal,{children:e.jsx(s.FeedbackModalOverlay,{children:e.jsxs(s.FeedbackModalContent,{children:[e.jsx(s.FeedbackModalHeader,{}),e.jsx(s.FeedbackModalClose,{}),e.jsx(s.FeedbackModalBody,{children:e.jsxs(s.FeedbackForm,{children:[e.jsxs(s.FeedbackItem,{name:"unrelated_response",children:[e.jsx(s.FeedbackItemCheckbox,{children:e.jsx(s.FeedbackItemCheckboxIndicator,{})}),e.jsx(s.FeedbackItemLabel,{}),e.jsx(s.FeedbackItemDescription,{})]}),e.jsxs(s.FeedbackItem,{name:"inaccurate_statement",children:[e.jsx(s.FeedbackItemCheckbox,{children:e.jsx(s.FeedbackItemCheckboxIndicator,{})}),e.jsx(s.FeedbackItemLabel,{}),e.jsx(s.FeedbackItemDescription,{})]}),e.jsxs(s.FeedbackItem,{name:"inaccurate_code_snippet",children:[e.jsx(s.FeedbackItemCheckbox,{children:e.jsx(s.FeedbackItemCheckboxIndicator,{})}),e.jsx(s.FeedbackItemLabel,{}),e.jsx(s.FeedbackItemDescription,{})]}),e.jsxs(s.FeedbackItem,{name:"irrelevant_citations",children:[e.jsx(s.FeedbackItemCheckbox,{children:e.jsx(s.FeedbackItemCheckboxIndicator,{})}),e.jsx(s.FeedbackItemLabel,{})]}),e.jsx(s.FeedbackSubmitButton,{})]})})]})})})})}function O(){return e.jsxs(s.FormWrapper,{children:[e.jsx(s.FormClose,{}),e.jsxs(s.Form,{children:[e.jsxs(s.FormHeader,{children:[e.jsx(s.FormHeading,{}),e.jsx(s.FormDescription,{})]}),e.jsx(s.FormContent,{children:r=>e.jsxs(e.Fragment,{children:[r.map((t,n)=>e.jsxs(s.FormField,{field:t,autoFocus:n===0,children:[e.jsx(s.FormFieldLabel,{}),t.inputType==="text"&&e.jsx(s.FormFieldText,{}),t.inputType==="email"&&e.jsx(s.FormFieldEmail,{}),t.inputType==="file"&&e.jsx(s.FormFieldFile,{}),t.inputType==="textarea"&&e.jsx(s.FormFieldTextArea,{}),t.inputType==="checkbox"&&e.jsx(s.FormFieldCheckbox,{children:e.jsx(s.FormFieldCheckboxIndicator,{})}),t.inputType==="select"&&e.jsxs(s.FormFieldSelect,{children:[e.jsxs(s.FormFieldSelectTrigger,{children:[e.jsx(s.FormFieldSelectValue,{}),e.jsx(s.FormFieldSelectIcon,{})]}),e.jsx(s.FormFieldSelectContent,{children:e.jsx(s.FormFieldSelectViewport,{children:t.items.map(a=>e.jsxs(s.FormFieldSelectItem,{value:a.value,children:[e.jsx(s.FormFieldSelectItemText,{children:a.label}),e.jsx(s.FormFieldSelectItemIndicator,{})]},a.value))})})]}),e.jsx(s.FormFieldError,{})]},t.name)),e.jsx(s.FormError,{})]})}),e.jsxs(s.FormFooter,{children:[e.jsx(s.FormCancel,{}),e.jsx(s.FormSubmit,{})]})]}),e.jsxs(s.FormSuccess,{children:[e.jsx(s.FormSuccessHeading,{}),e.jsx(s.FormSuccessMessage,{}),e.jsx(s.FormSuccessButton,{})]})]})}exports.InkeepEmbeddedChat=w;exports.InkeepEmbeddedChatImpl=b;exports.InkeepEmbeddedChatImplContent=I;exports.InkeepEmbeddedChatProvider=A;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as t, Fragment as E } from "react/jsx-runtime";
|
|
3
3
|
import M, { Fragment as T } from "react";
|
|
4
|
-
import { Provider as O, Wrapper as N, Root as $, Header as R, HeaderToolbar as j, HeaderToolbarWrapper as G, ToolbarHeader as z, Disclaimer as k, DisclaimerTrigger as
|
|
4
|
+
import { Provider as O, Wrapper as N, Root as $, Header as R, HeaderToolbar as j, HeaderToolbarWrapper as G, ToolbarHeader as z, Disclaimer as k, DisclaimerTrigger as f, DisclaimerContent as H, DisclaimerText as w, DisclaimerArrow as v, Content as J, ContentScrollArea as K, ContentScrollAreaViewport as U, ContentScrollAreaScrollbar as X, ContentScrollAreaThumb as Y, ContentScrollAreaCorner as Z, Footer as q, FeedbackModal as ee, FeedbackModalOverlay as te, FeedbackModalContent as ae, FeedbackModalHeader as de, FeedbackModalClose as re, FeedbackModalBody as ne, FeedbackForm as se, FeedbackItem as h, FeedbackItemCheckbox as l, FeedbackItemCheckboxIndicator as b, FeedbackItemLabel as C, FeedbackItemDescription as F, FeedbackSubmitButton as oe, FormWrapper as me, FormClose as ce, Form as ie, FormHeader as he, FormHeading as le, FormDescription as be, FormContent as Ce, FormField as Ee, FormFieldLabel as Fe, FormFieldText as pe, FormFieldEmail as ue, FormFieldFile as Ae, FormFieldTextArea as ge, FormFieldCheckbox as Me, FormFieldCheckboxIndicator as Ie, FormFieldSelect as Be, FormFieldSelectTrigger as Se, FormFieldSelectValue as Te, FormFieldSelectIcon as ke, FormFieldSelectContent as fe, FormFieldSelectViewport as He, FormFieldSelectItem as we, FormFieldSelectItemText as ve, FormFieldSelectItemIndicator as xe, FormFieldError as ye, FormError as Le, FormFooter as De, FormCancel as Pe, FormSubmit as We, FormSuccess as _e, FormSuccessHeading as Ve, FormSuccessMessage as Qe, FormSuccessButton as Oe, Messages as Ne, MessageWrapper as I, MessageContentWrapper as x, MessageContent as y, DynamicComponent as $e, MessageLoading as Re, InputFieldset as je, InputGroup as Ge, Input as ze, SendButton as Je, SendButtonIcon as Ke, AttachmentsBar as Ue, AttachmentsBarList as Xe, AttachmentsBarAttachment as Ye, AttachmentsBarAttachmentIcon as Ze, AttachmentsBarAttachmentTitle as qe, AttachmentsBarAttachmentDelete as et, AttachmentsBarActions as tt, AttachmentsBarInfoTip as at, AttachmentsBarInfoTipIcon as dt, AttachmentsBarInfoTipText as rt, AttachmentsBarInputs as nt, AttachmentsBarInput as st, AttachmentsBarModal as ot, AttachmentsBarModalOverlay as mt, AttachmentsBarModalContent as ct, AttachmentsBarModalHeader as it, AttachmentsBarModalHeading as ht, AttachmentsBarModalDescription as lt, AttachmentsBarModalHelp as bt, AttachmentsBarModalClose as Ct, AttachmentsBarModalBody as Et, AttachmentsBarForm as Ft, AttachmentsBarFormTitle as pt, AttachmentsBarFormTitleLabel as ut, AttachmentsBarFormTitleInput as At, AttachmentsBarFormTitleError as gt, AttachmentsBarFormContent as Mt, AttachmentsBarFormContentLabel as It, AttachmentsBarFormContentInput as Bt, AttachmentsBarFormContentError as St, AttachmentsBarFormSubmitButton as Tt, ActionBar as kt, TaglineContainer as ft, TaglineText as Ht, TaglineLogo as wt, TaglineBrandName as vt, Actions as xt, HelpActions as yt, HelpAction as Lt, HelpActionsTrigger as Dt, HelpActionsMenu as Pt, HelpActionsMenuArrow as Wt, HelpActionsMenuItem as _t, HelpActionsMenuItemIcon as Vt, ChatAction as p, ChatActionLabel as Qt, ChatActionFeedback as Ot, IntroMessageWrapper as Nt, MessageHeader as L, MessageAvatar as D, MessageAvatarContent as P, MessageAvatarImage as W, MessageName as _, DisclaimerLabel as $t, ExampleQuestions as Rt, ExampleQuestionsLabel as jt, ExampleQuestionsList as Gt, ExampleQuestion as zt, ExampleQuestionButton as Jt, Markdown as Kt, MessageSources as Ut, MessageSourcesHeader as Xt, MessageSourcesList as Yt, MessageSourceItem as Zt, MessageSourceItemBreadcrumbs as qt, MessageSourceItemBreadcrumbIcon as ea, MessageSourceItemIcon as ta, MessageSourceItemTitle as aa, MessageSourceItemTag as da, MessageSourceItemDescription as ra, MessageSourceItemDescriptionPart as na, MessageSourceItemIndicator as sa, MessageAttachments as oa, MessageAttachmentsList as ma, MessageAttachmentsItem as ca, MessageAttachmentsItemIcon as ia, MessageAttachmentsItemTitle as ha, MessageAttachmentsPreview as la, MessageAttachmentsPreviewOverlay as ba, MessageAttachmentsPreviewContent as Ca, MessageAttachmentsPreviewHeader as Ea, MessageAttachmentsPreviewClose as Fa, MessageAttachmentsPreviewBody as pa, MessageToolbar as ua, MessageCustomActions as Aa, MessageCustomAction as ga, MessageAction as u } from "../styled/components/embedded-chat.js";
|
|
5
5
|
import { Close as B } from "../styled/components/modal.js";
|
|
6
6
|
import { Shadow as Ma } from "../styled/components/shadow.js";
|
|
7
7
|
import { EmbeddedChatMessagePart as V } from "../styled/components/message.js";
|
|
@@ -11,12 +11,12 @@ import { useWidget as Ta } from "../primitives/providers/widget-provider.js";
|
|
|
11
11
|
import { useModal as ka } from "../primitives/components/modal/modal-provider.js";
|
|
12
12
|
import { dataAttr as Q } from "../primitives/utils/misc.js";
|
|
13
13
|
import { PortalWithTheme as A } from "../primitives/atoms/portal-with-theme.js";
|
|
14
|
-
import { ErrorBoundary as
|
|
15
|
-
import { ModalContent as
|
|
14
|
+
import { ErrorBoundary as fa } from "../primitives/atoms/error-boundary.js";
|
|
15
|
+
import { ModalContent as Ha } from "./modal.js";
|
|
16
16
|
import { WidgetToggle as wa } from "./widget-toggle.js";
|
|
17
17
|
function sd(d) {
|
|
18
18
|
const { baseSettings: a, aiChatSettings: r } = d;
|
|
19
|
-
return /* @__PURE__ */ e(
|
|
19
|
+
return /* @__PURE__ */ e(fa, { children: /* @__PURE__ */ e(
|
|
20
20
|
Ma,
|
|
21
21
|
{
|
|
22
22
|
wrapperStyles: {
|
|
@@ -46,7 +46,7 @@ function xa(d) {
|
|
|
46
46
|
}
|
|
47
47
|
function ya(d) {
|
|
48
48
|
const { onToggleView: a, variant: r, header: n = La } = d, s = ka(), m = Ta();
|
|
49
|
-
return /* @__PURE__ */ e(s && !m ?
|
|
49
|
+
return /* @__PURE__ */ e(s && !m ? Ha : T, { children: /* @__PURE__ */ t(
|
|
50
50
|
N,
|
|
51
51
|
{
|
|
52
52
|
variant: r ?? (a ? "no-shadow" : "container-with-shadow"),
|
|
@@ -69,8 +69,8 @@ const La = (d) => {
|
|
|
69
69
|
/* @__PURE__ */ t(G, { children: [
|
|
70
70
|
/* @__PURE__ */ e(z, {}),
|
|
71
71
|
/* @__PURE__ */ t(k, { children: [
|
|
72
|
-
/* @__PURE__ */ e(
|
|
73
|
-
/* @__PURE__ */ t(
|
|
72
|
+
/* @__PURE__ */ e(f, {}),
|
|
73
|
+
/* @__PURE__ */ t(H, { side: "bottom", align: "start", children: [
|
|
74
74
|
/* @__PURE__ */ e(w, {}),
|
|
75
75
|
/* @__PURE__ */ e(v, {})
|
|
76
76
|
] })
|
|
@@ -160,15 +160,21 @@ function Wa() {
|
|
|
160
160
|
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(V, { isLast: !1 }) }),
|
|
161
161
|
/* @__PURE__ */ t(k, { children: [
|
|
162
162
|
/* @__PURE__ */ e($t, {}),
|
|
163
|
-
/* @__PURE__ */ e(
|
|
164
|
-
/* @__PURE__ */ t(
|
|
163
|
+
/* @__PURE__ */ e(f, {}),
|
|
164
|
+
/* @__PURE__ */ t(H, { children: [
|
|
165
165
|
/* @__PURE__ */ e(w, {}),
|
|
166
166
|
/* @__PURE__ */ e(v, {})
|
|
167
167
|
] })
|
|
168
168
|
] }),
|
|
169
169
|
/* @__PURE__ */ t(Rt, { children: [
|
|
170
170
|
/* @__PURE__ */ e(jt, {}),
|
|
171
|
-
/* @__PURE__ */ e(Gt, { children: (d) => d.map((a) => /* @__PURE__ */ e(
|
|
171
|
+
/* @__PURE__ */ e(Gt, { children: (d) => d.map((a) => /* @__PURE__ */ e(
|
|
172
|
+
zt,
|
|
173
|
+
{
|
|
174
|
+
children: /* @__PURE__ */ e(Jt, { question: a })
|
|
175
|
+
},
|
|
176
|
+
typeof a == "object" ? a.label : a
|
|
177
|
+
)) })
|
|
172
178
|
] })
|
|
173
179
|
] })
|
|
174
180
|
] });
|
|
@@ -273,8 +279,8 @@ function Na() {
|
|
|
273
279
|
}
|
|
274
280
|
function $a() {
|
|
275
281
|
return /* @__PURE__ */ t(kt, { children: [
|
|
276
|
-
/* @__PURE__ */ t(
|
|
277
|
-
/* @__PURE__ */ e(
|
|
282
|
+
/* @__PURE__ */ t(ft, { children: [
|
|
283
|
+
/* @__PURE__ */ e(Ht, {}),
|
|
278
284
|
/* @__PURE__ */ e(wt, {}),
|
|
279
285
|
/* @__PURE__ */ e(vt, {})
|
|
280
286
|
] }),
|
|
@@ -348,7 +354,7 @@ function ja() {
|
|
|
348
354
|
/* @__PURE__ */ e(Te, {}),
|
|
349
355
|
/* @__PURE__ */ e(ke, {})
|
|
350
356
|
] }),
|
|
351
|
-
/* @__PURE__ */ e(
|
|
357
|
+
/* @__PURE__ */ e(fe, { children: /* @__PURE__ */ e(He, { children: a.items.map((n) => /* @__PURE__ */ t(we, { value: n.value, children: [
|
|
352
358
|
/* @__PURE__ */ e(ve, { children: n.label }),
|
|
353
359
|
/* @__PURE__ */ e(xe, {})
|
|
354
360
|
] }, n.value)) }) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),a=require("lucide-react"),r=require("../../primitives/components/data-summaries.cjs"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),a=require("lucide-react"),r=require("../../primitives/components/data-summaries.cjs"),d=t=>{const{type:l,label:s}=t;return s||l.replace(/_/g," ").replace(/\b\w/g,i=>i.toUpperCase())},m={agent_generate:e.jsx(a.RefreshCw,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),agent_reasoning:e.jsx(a.Brain,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),tool_call:e.jsx(a.Hammer,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),tool_result:e.jsx(a.Hammer,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),transfer:e.jsx(a.ArrowRight,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),delegation_sent:e.jsx(a.Forward,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),delegation_returned:e.jsx(a.CheckCheck,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),artifact_saved:e.jsx(a.Download,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),error:e.jsx(a.TriangleAlert,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),agent_initializing:e.jsx(a.CircleDot,{className:"w-3 h-3 animate-spin"}),completion:e.jsx(a.CheckCheck,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),default:e.jsx(a.Dot,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"})},h={retrieve:e.jsx(a.Search,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),action:e.jsx(a.CheckCheck,{className:"w-3 h-3 text-gray-500 dark:text-white-alpha-500"}),...m},p=n.memo(({summary:t,showConnector:l})=>{const s=n.useMemo(()=>t.details&&Object.keys(t.details).length>0?JSON.stringify(t.details,null,2):null,[t.details]),i=n.useMemo(()=>d(t),[t]),c=n.useMemo(()=>h[t.type]||h.default,[t.type]);return e.jsxs(r.DataSummaryItem,{className:"flex items-start gap-2 text-xs relative",children:[l&&e.jsx(r.DataSummaryConnector,{className:"absolute left-1.5 top-4 bottom-0 w-px bg-gray-200 dark:bg-white-alpha-200 -mb-3"}),e.jsx(r.DataSummaryIconContainer,{className:"flex items-center justify-center w-3 h-3 relative z-10 mt-0.5",children:c}),e.jsxs(r.DataSummaryContent,{className:"flex-1",children:[e.jsx(r.DataSummaryLabel,{className:"text-gray-700 dark:text-white-alpha-600",children:i}),s&&e.jsx(r.DataSummaryDetails,{className:"mt-2 text-xs whitespace-pre-wrap font-mono bg-gray-50 dark:bg-gray-dark-900 p-2 rounded-md px-3 py-2",children:s})]})]})}),g=n.memo(({summaries:t,isCompleted:l})=>{const[s,i]=n.useState(!l);n.useEffect(()=>{let o;return l?o=setTimeout(()=>{i(!1)},1e3):i(!0),()=>{o&&clearTimeout(o)}},[l]);const c=n.useCallback(()=>{i(!s)},[s]);return e.jsxs(r.DataSummaryGroup,{className:"flex flex-col items-start mb-2.5 mt-2.5 first:mt-1 relative",children:[e.jsx(r.DataSummaryToggle,{type:"button",onClick:c,"data-expanded":s,className:"inline-flex items-center group gap-2 text-xs text-gray-500 dark:text-white-alpha-600 hover:text-gray-700 dark:hover:text-white-alpha-700 transition-colors cursor-pointer",children:l?e.jsxs(e.Fragment,{children:[e.jsx(a.Check,{className:"check-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 absolute opacity-100 group-hover:opacity-0 group-data-[expanded=true]:opacity-0"}),e.jsx(a.ChevronRight,{className:"chevron-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 transform opacity-0 rotate-0 group-hover:opacity-100 group-data-[expanded=true]:opacity-100 group-data-[expanded=true]:rotate-90"}),e.jsx(r.DataSummaryToggleText,{className:"font-medium",children:"Completed"})]}):e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"w-3 h-3 animate-spin"}),e.jsx(r.DataSummaryToggleText,{className:"font-medium",children:"Thinking..."})]})}),e.jsx(r.DataSummaryCollapsible,{"data-expanded":s,className:"overflow-hidden transition-all duration-300 ease-in-out data-[expanded=true]:opacity-100 data-[expanded=false]:max-h-0 data-[expanded=false]:opacity-0 max-w-full",children:e.jsx(r.DataSummaryList,{className:"pb-2 mt-1.5 space-y-3 relative",children:t.map((o,x)=>e.jsx(p,{summary:o,showConnector:t.length>1&&x<t.length-1},`op-${o.type}-${x}`))})})]})});exports.DataSummaryGroup=g;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as s, jsx as a, Fragment as h } from "react/jsx-runtime";
|
|
3
|
-
import { memo as g, useState as u, useEffect as y, useCallback as w, useMemo as
|
|
4
|
-
import { Check as f, ChevronRight as N, LoaderCircle as
|
|
5
|
-
import { DataSummaryGroup as A, DataSummaryToggle as L, DataSummaryToggleText as p, DataSummaryCollapsible as
|
|
3
|
+
import { memo as g, useState as u, useEffect as y, useCallback as w, useMemo as o } from "react";
|
|
4
|
+
import { Check as f, ChevronRight as N, LoaderCircle as k, CheckCheck as m, Search as D, Dot as S, CircleDot as v, TriangleAlert as b, Download as C, Forward as P, ArrowRight as _, Hammer as d, Brain as T, RefreshCw as I } from "lucide-react";
|
|
5
|
+
import { DataSummaryGroup as A, DataSummaryToggle as L, DataSummaryToggleText as p, DataSummaryCollapsible as O, DataSummaryList as E, DataSummaryItem as M, DataSummaryConnector as R, DataSummaryIconContainer as j, DataSummaryContent as G, DataSummaryLabel as z, DataSummaryDetails as F } from "../../primitives/components/data-summaries.js";
|
|
6
6
|
const U = (t) => {
|
|
7
7
|
const { type: r, label: e } = t;
|
|
8
8
|
return e || r.replace(/_/g, " ").replace(/\b\w/g, (i) => i.toUpperCase());
|
|
@@ -18,19 +18,19 @@ const U = (t) => {
|
|
|
18
18
|
error: /* @__PURE__ */ a(b, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
19
19
|
agent_initializing: /* @__PURE__ */ a(v, { className: "w-3 h-3 animate-spin" }),
|
|
20
20
|
completion: /* @__PURE__ */ a(m, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
21
|
-
default: /* @__PURE__ */ a(
|
|
21
|
+
default: /* @__PURE__ */ a(S, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" })
|
|
22
22
|
}, x = {
|
|
23
|
-
retrieve: /* @__PURE__ */ a(
|
|
23
|
+
retrieve: /* @__PURE__ */ a(D, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
24
24
|
action: /* @__PURE__ */ a(m, { className: "w-3 h-3 text-gray-500 dark:text-white-alpha-500" }),
|
|
25
25
|
...$
|
|
26
26
|
}, B = g(({ summary: t, showConnector: r }) => {
|
|
27
|
-
const e =
|
|
27
|
+
const e = o(() => t.details && Object.keys(t.details).length > 0 ? JSON.stringify(t.details, null, 2) : null, [t.details]), i = o(() => U(t), [t]), n = o(
|
|
28
28
|
() => x[t.type] || x.default,
|
|
29
29
|
[t.type]
|
|
30
30
|
);
|
|
31
|
-
return /* @__PURE__ */ s(
|
|
31
|
+
return /* @__PURE__ */ s(M, { className: "flex items-start gap-2 text-xs relative", children: [
|
|
32
32
|
r && /* @__PURE__ */ a(R, { className: "absolute left-1.5 top-4 bottom-0 w-px bg-gray-200 dark:bg-white-alpha-200 -mb-3" }),
|
|
33
|
-
/* @__PURE__ */ a(j, { className: "flex items-center justify-center w-3 h-3 relative z-10 mt-0.5", children:
|
|
33
|
+
/* @__PURE__ */ a(j, { className: "flex items-center justify-center w-3 h-3 relative z-10 mt-0.5", children: n }),
|
|
34
34
|
/* @__PURE__ */ s(G, { className: "flex-1", children: [
|
|
35
35
|
/* @__PURE__ */ a(z, { className: "text-gray-700 dark:text-white-alpha-600", children: i }),
|
|
36
36
|
e && /* @__PURE__ */ a(F, { className: "mt-2 text-xs whitespace-pre-wrap font-mono bg-gray-50 dark:bg-gray-dark-900 p-2 rounded-md px-3 py-2", children: e })
|
|
@@ -46,7 +46,7 @@ const U = (t) => {
|
|
|
46
46
|
l && clearTimeout(l);
|
|
47
47
|
};
|
|
48
48
|
}, [r]);
|
|
49
|
-
const
|
|
49
|
+
const n = w(() => {
|
|
50
50
|
i(!e);
|
|
51
51
|
}, [e]);
|
|
52
52
|
return /* @__PURE__ */ s(A, { className: "flex flex-col items-start mb-2.5 mt-2.5 first:mt-1 relative", children: [
|
|
@@ -54,7 +54,7 @@ const U = (t) => {
|
|
|
54
54
|
L,
|
|
55
55
|
{
|
|
56
56
|
type: "button",
|
|
57
|
-
onClick:
|
|
57
|
+
onClick: n,
|
|
58
58
|
"data-expanded": e,
|
|
59
59
|
className: "inline-flex items-center group gap-2 text-xs text-gray-500 dark:text-white-alpha-600 hover:text-gray-700 dark:hover:text-white-alpha-700 transition-colors cursor-pointer",
|
|
60
60
|
children: r ? /* @__PURE__ */ s(h, { children: [
|
|
@@ -62,17 +62,17 @@ const U = (t) => {
|
|
|
62
62
|
/* @__PURE__ */ a(N, { className: "chevron-icon w-3 h-3 text-gray-500 dark:text-white-alpha-500 transition-all duration-200 transform opacity-0 rotate-0 group-hover:opacity-100 group-data-[expanded=true]:opacity-100 group-data-[expanded=true]:rotate-90" }),
|
|
63
63
|
/* @__PURE__ */ a(p, { className: "font-medium", children: "Completed" })
|
|
64
64
|
] }) : /* @__PURE__ */ s(h, { children: [
|
|
65
|
-
/* @__PURE__ */ a(
|
|
65
|
+
/* @__PURE__ */ a(k, { className: "w-3 h-3 animate-spin" }),
|
|
66
66
|
/* @__PURE__ */ a(p, { className: "font-medium", children: "Thinking..." })
|
|
67
67
|
] })
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
70
|
/* @__PURE__ */ a(
|
|
71
|
-
|
|
71
|
+
O,
|
|
72
72
|
{
|
|
73
73
|
"data-expanded": e,
|
|
74
74
|
className: "overflow-hidden transition-all duration-300 ease-in-out data-[expanded=true]:opacity-100 data-[expanded=false]:max-h-0 data-[expanded=false]:opacity-0 max-w-full",
|
|
75
|
-
children: /* @__PURE__ */ a(
|
|
75
|
+
children: /* @__PURE__ */ a(E, { className: "pb-2 mt-1.5 space-y-3 relative", children: t.map((l, c) => /* @__PURE__ */ a(
|
|
76
76
|
B,
|
|
77
77
|
{
|
|
78
78
|
summary: l,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),a=require("../../primitives/components/embedded-chat.cjs"),k=require("../../primitives/components/embedded-chat/chat-provider.cjs"),w=require("../../primitives/hooks/use-resize-observer.cjs"),P=require("../../primitives/utils/compose-refs.cjs"),M=require("./ui/recipes/ai-chat-page-wrapper.cjs"),i=require("./ui/recipes/attachment.cjs"),o=require("./ui/recipes/button.cjs"),x=require("./ui/recipes/checkbox.cjs"),m=require("./ui/recipes/citation.cjs"),j=require("./ui/recipes/icon.cjs"),l=require("./ui/recipes/input.cjs"),y=require("./ui/recipes/link.cjs"),r=require("./ui/recipes/modal.cjs"),p=require("./ui/recipes/popover.cjs"),C=require("./ui/recipes/scrollable.cjs"),h=require("./ui/recipes/select.cjs"),N=require("class-variance-authority"),I=require("merge-anything"),c=require("react"),s=require("../utils.cjs"),B=require("./ui/markdown-styles.cjs"),S=require("./loading-indicator.cjs"),T=require("./message.cjs"),H=k.ChatProvider,L=c.forwardRef(({className:e,size:t,variant:n,...u},b)=>d.jsx(a.EmbeddedChatPrimitiveWrapper,{ref:b,className:s.cn(M.aiChatPageWrapper({size:t,variant:n}),"data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950","data-[composite]:w-full","max-h-[min(85vh,850px)]","[[data-sidebar]_&]:m-[unset] [[data-sidebar]_&]:mt-auto","[[data-sidebar]_&]:h-full [[data-sidebar]_&]:w-full","[[data-sidebar]_&]:max-h-[unset]","[[data-chat-bubble]_&]:max-h-[unset]","[[data-chat-bubble]_&]:h-full [[data-chat-bubble]_&]:w-full [[data-chat-bubble]_&]:rounded-[inherit]",e),...u})),D=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveRoot,{className:s.cn(C.scrollable({section:"wrapper"}),"rounded-[inherit] font-body",e),...t}),W=({className:e,...t})=>d.jsx(a.Header,{className:s.cn(C.scrollable({section:"header"}),"flex items-center","bg-white dark:bg-gray-dark-950","data-[show-toolbar]:after:absolute","data-[show-toolbar]:after:left-0","data-[show-toolbar]:after:top-full","data-[show-toolbar]:after:h-[1rem]","data-[show-toolbar]:after:w-full","data-[show-toolbar]:after:text-white","data-[show-toolbar]:after:dark:text-gray-dark-950","data-[show-toolbar]:after:bg-[linear-gradient(currentColor,_transparent)]","data-[show-toolbar]:after:z-start",e),...t}),_=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHeaderToolbar,{className:s.cn("flex items-center gap-3 w-full","px-5 py-2 pt-4 justify-between *:m-0",e),...t}),q=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveToolbarHeaderWrapper,{className:s.cn("flex items-center gap-1.5",e),...t}),z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveToolbarHeader,{className:s.cn("text-gray-600 dark:text-gray-dark-100 text-sm",e),...t}),Q=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContent,{className:s.cn(C.scrollable({section:"content"}),"justify-end",e),...t}),R=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContentScrollArea,{className:s.cn("overflow-hidden",e),...t}),O=c.forwardRef(({className:e,...t},n)=>d.jsx(a.EmbeddedChatPrimitiveContentScrollAreaViewport,{ref:n,className:s.cn("h-full w-full rounded-[inherit]","[[data-chat-bubble]_&]:overscroll-contain",e),...t})),V=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContentScrollAreaScrollbar,{className:s.cn("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),G=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContentScrollAreaThumb,{className:s.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),$=a.EmbeddedChatPrimitiveContentScrollAreaCorner,J=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimer,{className:s.cn("ml-auto text-sm flex items-center gap-1",e),...t}),K=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerLabel,{className:s.cn("text-gray-700 dark:text-gray-dark-100",e),...t}),U=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerTrigger,{className:s.cn("cursor-pointer text-gray-700 dark:text-gray-dark-100","focus-visible:ring-gray-500 dark:focus-visible:ring-white-alpha-900 focus-visible:ring-2 focus:outline-none",e),...t}),X=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerContent,{className:s.cn(p.popover({slot:"content"}),"px-4 py-2 font-normal text-sm","w-[250px] sm:w-[420px]",e),...t}),Y=a.EmbeddedChatPrimitiveDisclaimerText,Z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerArrow,{className:s.cn(p.popover({slot:"arrow"}),e),...t}),ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestions,{className:s.cn("mt-4 flex flex-col gap-2",e),...t}),te=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestionsLabel,{className:s.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestionsList,{className:s.cn("flex flex-col","ikp-md:flex-row","flex-wrap gap-2",e),...t}),de=c.forwardRef(({className:e,style:t,...n},u)=>{const b=c.useRef(null),v=P.composeRefs(u,b),{width:f=0,height:F=0}=w.useResizeObserver({ref:b,box:"border-box"}),A=Math.max(F,f);return d.jsx(a.EmbeddedChatPrimitiveExampleQuestion,{ref:v,style:{"--before-size":`${A+100}px`,...t},className:s.cn("flex items-center justify-center relative z-base","min-h-9 rounded-md overflow-hidden","before:absolute before:z-hide","before:bg-gray-300 dark:before:bg-gray-dark-950","before:bg-no-repeat before:[background-position:0_0]","before:[background-size:cover] before:m-auto","before:w-[--before-size] before:h-[--before-size]","data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.600),transparent_30%)]","dark:data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.300),transparent_30%)]","data-[highlight]:first:before:animate-[spin_4s_linear_infinite]","after:absolute after:z-base after:top-[1px] after:left-[1px]","after:w-[calc(100%-2px)] after:h-[calc(100%-2px)]","after:rounded-[5px] after:bg-white dark:after:bg-gray-dark-950",e),...n})}),se=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestionButton,{className:s.cn(o.button({size:"sm"}),"text-sm font-normal h-auto w-full py-1.5 z-start","whitespace-normal text-center leading-[unset]","border border-solid","text-gray-800 dark:text-white-alpha-950","border-white-alpha-200","[&:where(:hover,:focus)]:bg-slate-400/5","dark:[&:where(:hover,:focus)]:bg-white-alpha-100 focus:z-start",e),...t}),re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveWorkflows,{className:s.cn("mt-4 flex flex-col gap-2",e),...t}),oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveWorkflowsLabel,{className:s.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),me=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveWorkflowsList,{className:s.cn("flex flex-wrap gap-2",e),...t}),ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveWorkflow,{className:s.cn(o.button({size:"sm"}),"min-h-9 px-3 py-2 h-auto font-medium","text-sm gap-2 whitespace-normal border ","text-inkeep-primary-strong dark:text-inkeep-expanded-primary-300","border-inkeep-expanded-primary-200","dark:border-inkeep-expanded-primary-200","hover:bg-inkeep-primary-light-subtle","dark:hover:bg-white-alpha-100",e),...t}),ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessages,{className:s.cn("flex flex-col w-full min-w-0 min-h-0 text-sm relative",e),...t}),g=N.cva(["flex relative w-full overflow-hidden ikp-md:py-6 py-4","px-5","flex-col ikp-md:flex-row","min-w-0 grow-[2] data-[role=user]:grow-0"]),ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageWrapper,{className:s.cn(g(),e),...t}),le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveIntroMessageWrapper,{className:s.cn(g(),e),...t}),he=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageHeader,{className:s.cn("flex justify-start overflow-hidden shrink-0 select-none","flex-row ikp-md:flex-col","items-center ikp-md:items-start","ikp-md:pl-3","ikp-md:pr-6","mb-4 ikp-md:mb-0","data-[role=user]:hidden",e),...t}),be=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageLoading,{className:s.cn("flex items-center gap-3 h-auto w-full",e),children:d.jsx(S.LoadingIndicator,{}),...t}),xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatar,{className:s.cn("flex items-center justify-center rounded-full","h-auto",e),...t}),pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatarContent,{className:s.cn("relative flex h-6 w-6 shrink-0 overflow-hidden","data-[username]:bg-inkeep-primary-lighter","dark:data-[username]:bg-inkeep-expanded-primary-300","text-inkeep-primary-stronger font-semibold ","data-[role=user]:hidden","justify-center items-center",e),...t}),Ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatarFallback,{className:s.cn("hidden data-[role=user]:block",e),...t}),ue=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatarImage,{className:s.cn("data-[type=icon]:data-[role=user]:text-inkeep-primary-medium","dark:data-[type=icon]:data-[role=user]:text-inkeep-expanded-primary-300","data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.300)]","data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),Ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageName,{className:s.cn("py-1 ml-3","text-1sm font-medium","text-gray-600 dark:text-white-alpha-600","data-[role=user]:hidden","ikp-md:hidden",e),...t}),ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageContentWrapper,{className:s.cn("overflow-hidden flex flex-col","justify-start grow-2 w-full","data-[role=user]:justify-end","data-[role=user]:items-end","data-[role=user]:shrink-2","data-[role=user]:grow-0","ikp-md:pr-3",e),...t}),ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageContent,{className:s.cn("text-sm flex-wrap break-words min-w-0 shrink-1 max-w-full data-[role=user]:py-2 data-[role=user]:px-4 data-[role=user]:bg-gray-100 data-[role=user]:dark:bg-white-alpha-100 rounded-3xl xs:data-[role=user]:max-w-[75%] rounded-br-sm",e),...t}),fe=a.EmbeddedChatPrimitiveMessageAttachments,Fe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsList,{className:s.cn("flex flex-wrap gap-2",e),...t}),Ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsItem,{className:s.cn(o.button({variant:"ghost"}),i.attachment({slot:"root"}),"font-normal px-2",e),...t}),ke=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsItemIcon,{className:s.cn(i.attachment({slot:"icon"}),e),...t}),we=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsItemTitle,{className:s.cn(i.attachment({slot:"title"}),e),...t}),Pe=a.EmbeddedChatPrimitiveMessageAttachmentsPreview,Me=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay,{className:s.cn(r.modal({slot:"overlay"}),e),...t}),je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsPreviewContent,{className:s.cn(r.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader,{className:s.cn(r.modal({slot:"header"}),"px-0 pt-0 pb-8 flex flex-col gap-6","font-semibold",e),...t}),Ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsPreviewClose,{className:s.cn(r.modal({slot:"close"}),e),...t}),Ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsPreviewBody,{className:s.cn(r.modal({slot:"body"}),"p-0",e),...t}),Be=a.EmbeddedChatPrimitiveDynamicComponent,Se=({componentStyles:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMarkdown,{componentStyles:I.merge(B.markdownStyles,e??{}),...t}),Te=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageToolbar,{className:s.cn("flex items-center mt-2 mb-3",e),...t}),He=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAnnotationActions,{className:s.cn("mr-auto flex items-center gap-2",e),...t}),Le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAnnotationAction,{className:s.cn(o.button({size:"xs",variant:"outline"}),"text-xs h-[30px] text-gray-700 dark:text-gray-200 gap-1",e),...t}),De=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAction,{className:s.cn(o.button({variant:"iconButton",size:"sm"}),"data-[upvoted]:text-inkeep-primary-medium","data-[downvoted]:text-inkeep-primary-medium","data-[upvoted]:dark:text-inkeep-expanded-primary-300","data-[downvoted]:dark:text-inkeep-expanded-primary-300","dark:hover:text-inkeep-expanded-primary-300 px-2 text-md",e),...t}),We=a.EmbeddedChatPrimitiveMessageSources,_e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourcesHeader,{className:s.cn("block text-xs font-medium my-2 text-gray-700 dark:text-gray-dark-300",e),...t}),qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourcesList,{className:s.cn("w-full relative flex flex-col gap-3 py-[1px]",e),...t}),ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItem,{className:s.cn(m.citation({slot:"root"}),e),...t}),Qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,{className:s.cn(m.citation({slot:"breadcrumbs"}),e),...t}),Re=({className:e,...t})=>d.jsx(a.MessageSourceItemBreadcrumbIcon,{className:s.cn(m.citation({slot:"breadcrumbsIcon"}),e),...t}),Oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemIcon,{className:s.cn(m.citation({slot:"icon"}),e),...t}),Ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemTitle,{className:s.cn(m.citation({slot:"title"}),e),...t}),Ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemTag,{className:s.cn(m.citation({slot:"tag"}),e),...t}),$e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemDescription,{className:s.cn(m.citation({slot:"description"}),e),...t}),Je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,{className:s.cn(m.citation({slot:"descriptionPart"}),e),...t}),Ke=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemIndicator,{className:s.cn(m.citation({slot:"indicator"}),e),...t}),Ue=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFooter,{className:s.cn("bg-white dark:bg-gray-dark-950 pt-6 pb-4","px-5 relative","before:absolute before:block before:top-0 before:left-0","before:pointer-events-none before:w-full before:h-3","before:bg-[linear-gradient(transparent,_white)] dark:before:bg-[linear-gradient(transparent,_var(--ikp-color-gray-dark-950))]","before:-translate-y-full",e),...t}),Xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveInputFieldset,{className:s.cn("relative flex flex-col w-full py-1 px-2","rounded-lg items-stretch shadow-md dark:shadow-none","bg-gray-50 dark:bg-white-alpha-50",e),...t}),Ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveInputGroup,{className:s.cn("flex",e),...t}),Ze=c.forwardRef(({className:e,...t},n)=>d.jsx(a.EmbeddedChatPrimitiveInput,{ref:n,className:s.cn("min-h-[unset] text-sm overflow-hidden w-full resize-none","placeholder:text-gray-500 dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent","px-3 py-2 mr-2 max-h-[200px] overflow-y-auto disabled:cursor-not-allowed",e),...t})),et=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveSendButton,{className:s.cn(o.button({}),"bg-transparent relative size-9 min-w-[unset] rounded-lg transition-all ease-linear","text-inkeep-primary-medium dark:text-inkeep-expanded-primary-500","active:bg-gray-300 dark:active:bg-white-alpha-100","hover:bg-gray-200 hover:text-inkeep-primary-strong","dark:hover:bg-white-alpha-100 dark:hover:text-inkeep-expanded-primary-300","disabled:text-gray-500 dark:disabled:text-white-alpha-200","disabled:cursor-not-allowed hover:disabled:[background:none] active:disabled:[background:none]",e),...t}),tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveSendButtonIcon,{className:s.cn(j.icon(),"text-inherit",e),...t}),at=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBar,{className:s.cn("flex items-center justify-between","flex-wrap gap-2 px-1 pt-2 pb-1",e),...t}),dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarList,{className:s.cn("flex items-center gap-2 flex-wrap px-3 min-w-0",e),...t}),st=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarAttachment,{className:s.cn(i.attachment({slot:"root"}),e),...t}),rt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon,{className:s.cn(i.attachment({slot:"icon"}),e),...t}),ot=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle,{className:s.cn(i.attachment({slot:"title"}),e),...t}),mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete,{className:s.cn(i.attachment({slot:"delete"}),e),...t}),nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarActions,{className:s.cn("flex items-center justify-between","gap-2 flex-wrap px-3",e),...t}),it=a.EmbeddedChatPrimitiveAttachmentsBarInfoTip,ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon,{className:s.cn("cursor-pointer text-sm text-gray-600","dark:text-white-alpha-600",e),...t}),lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarInfoTipText,{className:s.cn("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-950 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)] z-dropdown","px-3 py-2 rounded-md text-sm font-normal max-w-[200px]",e),...t}),ht=a.EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow,bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarInputs,{className:s.cn("contents",e),...t}),xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarInput,{className:s.cn(o.button({variant:"outline",size:"xs"}),"light:text-gray-700 gap-1",e),...t}),pt=a.EmbeddedChatPrimitiveAttachmentsBarModal,Ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalOverlay,{className:s.cn(r.modal({slot:"overlay"}),e),...t}),ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalContent,{className:s.cn(r.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),Et=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalHeader,{className:s.cn(r.modal({slot:"header"}),"px-0 pt-0 pb-8 gap-y-2","font-semibold",e),...t}),gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalHeading,{className:s.cn("w-full semibold",e),...t}),vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalDescription,{className:s.cn("text-gray-700 dark:text-white-alpha-700","text-sm font-normal w-full",e),...t}),ft=a.EmbeddedChatPrimitiveAttachmentsBarModalHelp,Ft=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalClose,{className:s.cn(r.modal({slot:"close"}),e),...t}),At=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalBody,{className:s.cn(r.modal({slot:"body"}),"p-0",e),...t}),kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarForm,{className:s.cn("flex flex-col gap-8",e),...t}),wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormTitle,{className:s.cn("flex flex-col gap-2",e),...t}),Pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel,{className:s.cn("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),Mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormTitleInput,{className:s.cn("h-9 px-3 rounded-md border","focus:outline-none focus:[--shadow-color:theme(colors.blue.500)]","data-[invalid]:[--shadow-color:theme(colors.red.500)]","shadow-[0_0_0_2px_var(--shadow-color)]",e),...t}),jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormTitleError,{className:s.cn("text-sm text-red-500",e),...t}),yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormContent,{className:s.cn("flex flex-col gap-2",e),...t}),Nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormContentLabel,{className:s.cn("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),It=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormContentInput,{className:s.cn(l.input({size:"md",variant:"outline"}),"min-h-20 px-3 py-1 text-sm",e),...t}),Bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormContentError,{className:s.cn("text-sm text-red-500",e),...t}),St=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton,{className:s.cn(o.button({preset:"neutralFilled"}),"ml-auto",e),...t}),Tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveActionBar,{className:s.cn("mt-4 flex items-start justify-between flex-wrap-reverse gap-2.5",e),...t}),Ht=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveActions,{className:s.cn("flex items-center gap-2.5 flex-wrap",e),...t}),Lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineContainer,{className:s.cn("flex items-center whitespace-nowrap",e),...t}),Dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineText,{className:s.cn("text-xs text-gray-500 dark:text-white-alpha-600",e),...t}),Wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineLogo,{className:s.cn("text-gray-500 dark:text-white-alpha-600","w-5 ml-1 mr-0.5",e),...t}),_t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineBrandName,{className:s.cn(y.link(),"inline-flex text-1sm text-gray-500","dark:text-white-alpha-600 font-medium",e),...t}),E=s.cn(o.button({size:"xs",variant:"outline"}),"text-gray-700 dark:text-white-alpha-700"),qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatAction,{className:s.cn(E,e),...t}),zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatActionLabel,{className:s.cn("cursor-pointer",e),...t}),Qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatActionFeedback,{className:s.cn("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-900 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)]","px-2 py-3 rounded-md text-sm font-normal",e),...t}),Rt=a.EmbeddedChatPrimitiveHelpActions,Ot=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatHelpAction,{className:s.cn(E,e),...t}),Vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsTrigger,{className:s.cn(E,e),...t}),Gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenu,{className:s.cn(p.popover({slot:"content"}),"gap-3 px-3 py-4 ","w-[254px] text-sm font-normal",e),...t}),$t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenuArrow,{className:s.cn(p.popover({slot:"arrow"}),e),...t}),Jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenuItem,{className:s.cn("flex items-center cursor-pointer hover:underline",e),...t}),Kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenuItemIcon,{className:s.cn("mr-2 text-inkeep-primary-medium",e),...t}),Ut=a.EmbeddedChatPrimitiveFeedbackModal,Xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalOverlay,{className:s.cn(r.modal({slot:"overlay"}),e),...t}),Yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalContent,{className:s.cn(r.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-[480px]",e),...t}),Zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalHeader,{className:s.cn(r.modal({slot:"header"}),"px-0 pt-0 pb-8","font-semibold",e),...t}),ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalClose,{className:s.cn(r.modal({slot:"close"}),e),...t}),ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalBody,{className:s.cn(r.modal({slot:"body"}),"p-0",e),...t}),aa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackForm,{className:s.cn("flex flex-col gap-8",e),...t}),da=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItem,{className:s.cn("flex flex-wrap items-center","gap-[.75rem_0.5rem]",e),...t}),sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemCheckbox,{className:s.cn(x.checkbox({slot:"root"}),e),...t}),ra=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator,{className:s.cn(x.checkbox({slot:"indicator"}),e),...t}),oa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemLabel,{className:s.cn("select-none cursor-pointer font-medium text-sm","text-gray-700 dark:text-white-alpha-700",e),...t}),ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemDescription,{className:s.cn("flex-[0_0_100%]","min-h-20 border rounded-md","px-3 py-2 text-sm",e),...t}),na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackSubmitButton,{className:s.cn(o.button({preset:"neutralFilled"}),"ml-auto",e),...t}),ia=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormWrapper,{className:s.cn("w-full overflow-y-auto [scrollbar-width:thin]",e),...t}),ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveForm,{className:s.cn(C.scrollable({section:"content"}),"relative pt-4 pb-8 gap-8","items-start justify-center w-full","px-6 ikp-md:px-10 ikp-md:pb-12",e),...t}),la=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormClose,{className:s.cn(o.button({variant:"ghost"}),"absolute right-1 top-1","text-xl text-gray-500 dark:text-white-alpha-500 w-10 h-10 z-modal",e),...t}),ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormHeader,{className:s.cn("mt-8 flex flex-col gap-6",e),...t}),ba=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormHeading,{className:s.cn("font-semibold text-xl leading-5",e),...t}),xa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormDescription,{className:s.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),pa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormContent,{className:s.cn("w-full space-y-8",e),...t}),Ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormField,{className:s.cn("flex flex-col gap-2 data-[hidden]:hidden","data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:items-center",e),...t}),ua=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldLabel,{className:s.cn("font-medium text-sm text-gray-700","dark:text-white-alpha-700 ","font-medium relative","data-[required]:after:absolute",'data-[required]:after:[content:"*"]',"data-[required]:after:ml-1","data-[required]:after:mt-0","data-[required]:after:text-red-500","dark:data-[required]:after:text-red-300",e),...t}),Ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldText,{className:s.cn(l.input({size:"md",variant:"outline"}),e),...t}),ga=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldEmail,{className:s.cn(l.input({size:"md",variant:"outline"}),e),...t}),va=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldFile,{className:s.cn(l.input({size:"md",variant:"outline"}),"text-sm pl-2 file:h-full file:cursor-pointer py-0","file:bg-transparent file:border-none file:font-medium","file:text-sm file:text-gray-700 dark:file:text-white-alpha-700",e),...t}),fa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldTextArea,{className:s.cn(l.input({size:"md",variant:"outline"}),"min-h-20 px-3 py-2 text-sm",e),...t}),Fa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldCheckbox,{className:s.cn(x.checkbox({slot:"root"}),e),...t}),Aa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldCheckboxIndicator,{className:s.cn(x.checkbox({slot:"indicator"}),e),...t}),ka=a.EmbeddedChatPrimitiveFormFieldSelect,wa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectTrigger,{className:s.cn(h.select({slot:"trigger"}),e),...t}),Pa=a.EmbeddedChatPrimitiveFormFieldSelectValue,Ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectIcon,{className:s.cn("h-4 w-4 opacity-45",e),...t}),ja=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectContent,{className:s.cn(h.select({slot:"content"}),e),...t}),ya=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectViewport,{className:s.cn(h.select({slot:"viewport"}),e),...t}),Na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectItem,{className:s.cn(h.select({slot:"item"}),e),...t}),Ia=a.EmbeddedChatPrimitiveFormFieldSelectItemText,Ba=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectItemIndicator,{className:s.cn(h.select({slot:"itemIndicator"}),e),...t}),Sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldError,{className:s.cn("text-sm flex items-center text-red-500 dark:text-red-300",e),...t}),Ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormError,{className:s.cn("text-red-500 dark:text-red-300",e),...t}),Ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFooter,{className:s.cn("flex items-center justify-end gap-4 w-full",e),...t}),La=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormCancel,{className:s.cn(o.button({variant:"outline"}),e),...t}),Da=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSubmit,{className:s.cn(o.button({preset:"neutralFilled"}),e),...t}),Wa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSuccess,{className:s.cn("flex flex-col items-center justify-center h-auto","m-auto px-6 py-8 ikp-md:py-14 ikp-md:px-10",e),...t}),_a=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSuccessHeading,{className:s.cn("mb-6 font-bold tracking-tight","text-3xl md:text-4xl leading-6 md:leading-5",e),...t}),qa=a.EmbeddedChatPrimitiveFormSuccessMessage,za=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSuccessButton,{className:s.cn(o.button({preset:"neutralFilled"}),"w-full mt-12 gap-2 shrink-0",e),...t});exports.MessagePart=T.EmbeddedChatMessagePart;exports.ActionBar=Tt;exports.Actions=Ht;exports.AttachmentsBar=at;exports.AttachmentsBarActions=nt;exports.AttachmentsBarAttachment=st;exports.AttachmentsBarAttachmentDelete=mt;exports.AttachmentsBarAttachmentIcon=rt;exports.AttachmentsBarAttachmentTitle=ot;exports.AttachmentsBarForm=kt;exports.AttachmentsBarFormContent=yt;exports.AttachmentsBarFormContentError=Bt;exports.AttachmentsBarFormContentInput=It;exports.AttachmentsBarFormContentLabel=Nt;exports.AttachmentsBarFormSubmitButton=St;exports.AttachmentsBarFormTitle=wt;exports.AttachmentsBarFormTitleError=jt;exports.AttachmentsBarFormTitleInput=Mt;exports.AttachmentsBarFormTitleLabel=Pt;exports.AttachmentsBarInfoTip=it;exports.AttachmentsBarInfoTipArrow=ht;exports.AttachmentsBarInfoTipIcon=ct;exports.AttachmentsBarInfoTipText=lt;exports.AttachmentsBarInput=xt;exports.AttachmentsBarInputs=bt;exports.AttachmentsBarList=dt;exports.AttachmentsBarModal=pt;exports.AttachmentsBarModalBody=At;exports.AttachmentsBarModalClose=Ft;exports.AttachmentsBarModalContent=ut;exports.AttachmentsBarModalDescription=vt;exports.AttachmentsBarModalHeader=Et;exports.AttachmentsBarModalHeading=gt;exports.AttachmentsBarModalHelp=ft;exports.AttachmentsBarModalOverlay=Ct;exports.ChatAction=qt;exports.ChatActionFeedback=Qt;exports.ChatActionLabel=zt;exports.Content=Q;exports.ContentScrollArea=R;exports.ContentScrollAreaCorner=$;exports.ContentScrollAreaScrollbar=V;exports.ContentScrollAreaThumb=G;exports.ContentScrollAreaViewport=O;exports.Disclaimer=J;exports.DisclaimerArrow=Z;exports.DisclaimerContent=X;exports.DisclaimerLabel=K;exports.DisclaimerText=Y;exports.DisclaimerTrigger=U;exports.DynamicComponent=Be;exports.ExampleQuestion=de;exports.ExampleQuestionButton=se;exports.ExampleQuestions=ee;exports.ExampleQuestionsLabel=te;exports.ExampleQuestionsList=ae;exports.FeedbackForm=aa;exports.FeedbackItem=da;exports.FeedbackItemCheckbox=sa;exports.FeedbackItemCheckboxIndicator=ra;exports.FeedbackItemDescription=ma;exports.FeedbackItemLabel=oa;exports.FeedbackModal=Ut;exports.FeedbackModalBody=ta;exports.FeedbackModalClose=ea;exports.FeedbackModalContent=Yt;exports.FeedbackModalHeader=Zt;exports.FeedbackModalOverlay=Xt;exports.FeedbackSubmitButton=na;exports.Footer=Ue;exports.Form=ca;exports.FormCancel=La;exports.FormClose=la;exports.FormContent=pa;exports.FormDescription=xa;exports.FormError=Ta;exports.FormField=Ca;exports.FormFieldCheckbox=Fa;exports.FormFieldCheckboxIndicator=Aa;exports.FormFieldEmail=ga;exports.FormFieldError=Sa;exports.FormFieldFile=va;exports.FormFieldLabel=ua;exports.FormFieldSelect=ka;exports.FormFieldSelectContent=ja;exports.FormFieldSelectIcon=Ma;exports.FormFieldSelectItem=Na;exports.FormFieldSelectItemIndicator=Ba;exports.FormFieldSelectItemText=Ia;exports.FormFieldSelectTrigger=wa;exports.FormFieldSelectValue=Pa;exports.FormFieldSelectViewport=ya;exports.FormFieldText=Ea;exports.FormFieldTextArea=fa;exports.FormFooter=Ha;exports.FormHeader=ha;exports.FormHeading=ba;exports.FormSubmit=Da;exports.FormSuccess=Wa;exports.FormSuccessButton=za;exports.FormSuccessHeading=_a;exports.FormSuccessMessage=qa;exports.FormWrapper=ia;exports.Header=W;exports.HeaderToolbar=_;exports.HeaderToolbarWrapper=q;exports.HelpAction=Ot;exports.HelpActions=Rt;exports.HelpActionsMenu=Gt;exports.HelpActionsMenuArrow=$t;exports.HelpActionsMenuItem=Jt;exports.HelpActionsMenuItemIcon=Kt;exports.HelpActionsTrigger=Vt;exports.Input=Ze;exports.InputFieldset=Xe;exports.InputGroup=Ye;exports.IntroMessageWrapper=le;exports.Markdown=Se;exports.MessageAction=De;exports.MessageAnnotationAction=Le;exports.MessageAnnotationActions=He;exports.MessageAttachments=fe;exports.MessageAttachmentsItem=Ae;exports.MessageAttachmentsItemIcon=ke;exports.MessageAttachmentsItemTitle=we;exports.MessageAttachmentsList=Fe;exports.MessageAttachmentsPreview=Pe;exports.MessageAttachmentsPreviewBody=Ie;exports.MessageAttachmentsPreviewClose=Ne;exports.MessageAttachmentsPreviewContent=je;exports.MessageAttachmentsPreviewHeader=ye;exports.MessageAttachmentsPreviewOverlay=Me;exports.MessageAvatar=xe;exports.MessageAvatarContent=pe;exports.MessageAvatarFallback=Ce;exports.MessageAvatarImage=ue;exports.MessageContent=ve;exports.MessageContentWrapper=ge;exports.MessageHeader=he;exports.MessageLoading=be;exports.MessageName=Ee;exports.MessageSourceItem=ze;exports.MessageSourceItemBreadcrumbIcon=Re;exports.MessageSourceItemBreadcrumbs=Qe;exports.MessageSourceItemDescription=$e;exports.MessageSourceItemDescriptionPart=Je;exports.MessageSourceItemIcon=Oe;exports.MessageSourceItemIndicator=Ke;exports.MessageSourceItemTag=Ge;exports.MessageSourceItemTitle=Ve;exports.MessageSources=We;exports.MessageSourcesHeader=_e;exports.MessageSourcesList=qe;exports.MessageToolbar=Te;exports.MessageWrapper=ce;exports.Messages=ie;exports.Provider=H;exports.Root=D;exports.SendButton=et;exports.SendButtonIcon=tt;exports.TaglineBrandName=_t;exports.TaglineContainer=Lt;exports.TaglineLogo=Wt;exports.TaglineText=Dt;exports.ToolbarHeader=z;exports.Workflow=ne;exports.Workflows=re;exports.WorkflowsLabel=oe;exports.WorkflowsList=me;exports.Wrapper=L;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),a=require("../../primitives/components/embedded-chat.cjs"),k=require("../../primitives/components/embedded-chat/chat-provider.cjs"),w=require("../../primitives/hooks/use-resize-observer.cjs"),P=require("../../primitives/utils/compose-refs.cjs"),M=require("./ui/recipes/ai-chat-page-wrapper.cjs"),n=require("./ui/recipes/attachment.cjs"),o=require("./ui/recipes/button.cjs"),x=require("./ui/recipes/checkbox.cjs"),m=require("./ui/recipes/citation.cjs"),j=require("./ui/recipes/icon.cjs"),l=require("./ui/recipes/input.cjs"),y=require("./ui/recipes/link.cjs"),r=require("./ui/recipes/modal.cjs"),p=require("./ui/recipes/popover.cjs"),C=require("./ui/recipes/scrollable.cjs"),h=require("./ui/recipes/select.cjs"),N=require("class-variance-authority"),I=require("merge-anything"),c=require("react"),s=require("../utils.cjs"),B=require("./ui/markdown-styles.cjs"),S=require("./loading-indicator.cjs"),T=require("./message.cjs"),H=k.ChatProvider,L=c.forwardRef(({className:e,size:t,variant:i,...u},b)=>d.jsx(a.EmbeddedChatPrimitiveWrapper,{ref:b,className:s.cn(M.aiChatPageWrapper({size:t,variant:i}),"data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950","data-[composite]:w-full","max-h-[min(85vh,850px)]","[[data-sidebar]_&]:m-[unset] [[data-sidebar]_&]:mt-auto","[[data-sidebar]_&]:h-full [[data-sidebar]_&]:w-full","[[data-sidebar]_&]:max-h-[unset]","[[data-chat-bubble]_&]:max-h-[unset]","[[data-chat-bubble]_&]:h-full [[data-chat-bubble]_&]:w-full [[data-chat-bubble]_&]:rounded-[inherit]",e),...u})),D=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveRoot,{className:s.cn(C.scrollable({section:"wrapper"}),"rounded-[inherit] font-body",e),...t}),W=({className:e,...t})=>d.jsx(a.Header,{className:s.cn(C.scrollable({section:"header"}),"flex items-center","bg-white dark:bg-gray-dark-950","data-[show-toolbar]:after:absolute","data-[show-toolbar]:after:left-0","data-[show-toolbar]:after:top-full","data-[show-toolbar]:after:h-[1rem]","data-[show-toolbar]:after:w-full","data-[show-toolbar]:after:text-white","data-[show-toolbar]:after:dark:text-gray-dark-950","data-[show-toolbar]:after:bg-[linear-gradient(currentColor,_transparent)]","data-[show-toolbar]:after:z-start",e),...t}),_=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHeaderToolbar,{className:s.cn("flex items-center gap-3 w-full","px-5 py-2 pt-4 justify-between *:m-0",e),...t}),q=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveToolbarHeaderWrapper,{className:s.cn("flex items-center gap-1.5",e),...t}),z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveToolbarHeader,{className:s.cn("text-gray-600 dark:text-gray-dark-100 text-sm",e),...t}),Q=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContent,{className:s.cn(C.scrollable({section:"content"}),"justify-end",e),...t}),R=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContentScrollArea,{className:s.cn("overflow-hidden",e),...t}),O=c.forwardRef(({className:e,...t},i)=>d.jsx(a.EmbeddedChatPrimitiveContentScrollAreaViewport,{ref:i,className:s.cn("h-full w-full rounded-[inherit]","[[data-chat-bubble]_&]:overscroll-contain",e),...t})),V=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContentScrollAreaScrollbar,{className:s.cn("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),G=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContentScrollAreaThumb,{className:s.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),$=a.EmbeddedChatPrimitiveContentScrollAreaCorner,J=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimer,{className:s.cn("ml-auto text-sm flex items-center gap-1",e),...t}),K=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerLabel,{className:s.cn("text-gray-700 dark:text-gray-dark-100",e),...t}),U=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerTrigger,{className:s.cn("cursor-pointer text-gray-700 dark:text-gray-dark-100","focus-visible:ring-gray-500 dark:focus-visible:ring-white-alpha-900 focus-visible:ring-2 focus:outline-none",e),...t}),X=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerContent,{className:s.cn(p.popover({slot:"content"}),"px-4 py-2 font-normal text-sm","w-[250px] sm:w-[420px]",e),...t}),Y=a.EmbeddedChatPrimitiveDisclaimerText,Z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerArrow,{className:s.cn(p.popover({slot:"arrow"}),e),...t}),ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestions,{className:s.cn("mt-4 flex flex-col gap-2",e),...t}),te=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestionsLabel,{className:s.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestionsList,{className:s.cn("flex flex-col","ikp-md:flex-row","flex-wrap gap-2",e),...t}),de=c.forwardRef(({className:e,style:t,...i},u)=>{const b=c.useRef(null),v=P.composeRefs(u,b),{width:f=0,height:F=0}=w.useResizeObserver({ref:b,box:"border-box"}),A=Math.max(F,f);return d.jsx(a.EmbeddedChatPrimitiveExampleQuestion,{ref:v,style:{"--before-size":`${A+100}px`,...t},className:s.cn("flex items-center justify-center relative z-base","min-h-9 rounded-md overflow-hidden","before:absolute before:z-hide","before:bg-gray-300 dark:before:bg-gray-dark-950","before:bg-no-repeat before:[background-position:0_0]","before:[background-size:cover] before:m-auto","before:w-[--before-size] before:h-[--before-size]","data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.600),transparent_30%)]","dark:data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.300),transparent_30%)]","data-[highlight]:first:before:animate-[spin_4s_linear_infinite]","after:absolute after:z-base after:top-[1px] after:left-[1px]","after:w-[calc(100%-2px)] after:h-[calc(100%-2px)]","after:rounded-[5px] after:bg-white dark:after:bg-gray-dark-950",e),...i})}),se=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestionButton,{className:s.cn(o.button({size:"sm"}),"text-sm font-normal h-auto w-full py-1.5 z-start","whitespace-normal text-center leading-[unset]","border border-solid","text-gray-800 dark:text-white-alpha-950","border-white-alpha-200","[&:where(:hover,:focus)]:bg-slate-400/5","dark:[&:where(:hover,:focus)]:bg-white-alpha-100 focus:z-start",e),...t}),re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveWorkflows,{className:s.cn("mt-4 flex flex-col gap-2",e),...t}),oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveWorkflowsLabel,{className:s.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),me=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveWorkflowsList,{className:s.cn("flex flex-wrap gap-2",e),...t}),ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveWorkflow,{className:s.cn(o.button({size:"sm"}),"min-h-9 px-3 py-2 h-auto font-medium","text-sm gap-2 whitespace-normal border ","text-inkeep-primary-strong dark:text-inkeep-expanded-primary-300","border-inkeep-expanded-primary-200","dark:border-inkeep-expanded-primary-200","hover:bg-inkeep-primary-light-subtle","dark:hover:bg-white-alpha-100",e),...t}),ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessages,{className:s.cn("flex flex-col w-full min-w-0 min-h-0 text-sm relative",e),...t}),g=N.cva(["flex relative w-full overflow-hidden ikp-md:py-6 py-4","px-5","flex-col ikp-md:flex-row","min-w-0 grow-[2] data-[role=user]:grow-0"]),ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageWrapper,{className:s.cn(g(),e),...t}),le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveIntroMessageWrapper,{className:s.cn(g(),e),...t}),he=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageHeader,{className:s.cn("flex justify-start overflow-hidden shrink-0 select-none","flex-row ikp-md:flex-col","items-center ikp-md:items-start","ikp-md:pl-3","ikp-md:pr-6","mb-4 ikp-md:mb-0","data-[role=user]:hidden",e),...t}),be=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageLoading,{className:s.cn("flex items-center gap-3 h-auto w-full",e),children:d.jsx(S.LoadingIndicator,{}),...t}),xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatar,{className:s.cn("flex items-center justify-center rounded-full","h-auto",e),...t}),pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatarContent,{className:s.cn("relative flex h-6 w-6 shrink-0 overflow-hidden","data-[username]:bg-inkeep-primary-lighter","dark:data-[username]:bg-inkeep-expanded-primary-300","text-inkeep-primary-stronger font-semibold ","data-[role=user]:hidden","justify-center items-center",e),...t}),Ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatarFallback,{className:s.cn("hidden data-[role=user]:block",e),...t}),ue=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatarImage,{className:s.cn("data-[type=icon]:data-[role=user]:text-inkeep-primary-medium","dark:data-[type=icon]:data-[role=user]:text-inkeep-expanded-primary-300","data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.300)]","data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),Ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageName,{className:s.cn("py-1 ml-3","text-1sm font-medium","text-gray-600 dark:text-white-alpha-600","data-[role=user]:hidden","ikp-md:hidden",e),...t}),ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageContentWrapper,{className:s.cn("overflow-hidden flex flex-col","justify-start grow-2 w-full","data-[role=user]:justify-end","data-[role=user]:items-end","data-[role=user]:shrink-2","data-[role=user]:grow-0","ikp-md:pr-3",e),...t}),ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageContent,{className:s.cn("text-sm flex-wrap break-words min-w-0 shrink-1 max-w-full data-[role=user]:py-2 data-[role=user]:px-4 data-[role=user]:bg-gray-100 data-[role=user]:dark:bg-white-alpha-100 rounded-3xl xs:data-[role=user]:max-w-[75%] rounded-br-sm",e),...t}),fe=a.EmbeddedChatPrimitiveMessageAttachments,Fe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsList,{className:s.cn("flex flex-wrap gap-2",e),...t}),Ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsItem,{className:s.cn(o.button({variant:"ghost"}),n.attachment({slot:"root"}),"font-normal px-2",e),...t}),ke=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsItemIcon,{className:s.cn(n.attachment({slot:"icon"}),e),...t}),we=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsItemTitle,{className:s.cn(n.attachment({slot:"title"}),e),...t}),Pe=a.EmbeddedChatPrimitiveMessageAttachmentsPreview,Me=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay,{className:s.cn(r.modal({slot:"overlay"}),e),...t}),je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsPreviewContent,{className:s.cn(r.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader,{className:s.cn(r.modal({slot:"header"}),"px-0 pt-0 pb-8 flex flex-col gap-6","font-semibold",e),...t}),Ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsPreviewClose,{className:s.cn(r.modal({slot:"close"}),e),...t}),Ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAttachmentsPreviewBody,{className:s.cn(r.modal({slot:"body"}),"p-0",e),...t}),Be=a.EmbeddedChatPrimitiveDynamicComponent,Se=({componentStyles:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMarkdown,{componentStyles:I.merge(B.markdownStyles,e??{}),...t}),Te=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageToolbar,{className:s.cn("flex items-center mt-2 mb-3",e),...t}),He=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageCustomActions,{className:s.cn("mr-auto flex items-center gap-2",e),...t}),Le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageCustomAction,{className:s.cn(o.button({size:"xs",variant:"outline"}),"text-xs h-[30px] text-gray-700 dark:text-gray-200 gap-1",e),...t}),De=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAction,{className:s.cn(o.button({variant:"iconButton",size:"sm"}),"data-[upvoted]:text-inkeep-primary-medium","data-[downvoted]:text-inkeep-primary-medium","data-[upvoted]:dark:text-inkeep-expanded-primary-300","data-[downvoted]:dark:text-inkeep-expanded-primary-300","dark:hover:text-inkeep-expanded-primary-300 px-2 text-md",e),...t}),We=a.EmbeddedChatPrimitiveMessageSources,_e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourcesHeader,{className:s.cn("block text-xs font-medium my-2 text-gray-700 dark:text-gray-dark-300",e),...t}),qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourcesList,{className:s.cn("w-full relative flex flex-col gap-3 py-[1px]",e),...t}),ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItem,{className:s.cn(m.citation({slot:"root"}),e),...t}),Qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,{className:s.cn(m.citation({slot:"breadcrumbs"}),e),...t}),Re=({className:e,...t})=>d.jsx(a.MessageSourceItemBreadcrumbIcon,{className:s.cn(m.citation({slot:"breadcrumbsIcon"}),e),...t}),Oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemIcon,{className:s.cn(m.citation({slot:"icon"}),e),...t}),Ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemTitle,{className:s.cn(m.citation({slot:"title"}),e),...t}),Ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemTag,{className:s.cn(m.citation({slot:"tag"}),e),...t}),$e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemDescription,{className:s.cn(m.citation({slot:"description"}),e),...t}),Je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,{className:s.cn(m.citation({slot:"descriptionPart"}),e),...t}),Ke=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemIndicator,{className:s.cn(m.citation({slot:"indicator"}),e),...t}),Ue=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFooter,{className:s.cn("bg-white dark:bg-gray-dark-950 pt-6 pb-4","px-5 relative","before:absolute before:block before:top-0 before:left-0","before:pointer-events-none before:w-full before:h-3","before:bg-[linear-gradient(transparent,_white)] dark:before:bg-[linear-gradient(transparent,_var(--ikp-color-gray-dark-950))]","before:-translate-y-full",e),...t}),Xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveInputFieldset,{className:s.cn("relative flex flex-col w-full py-1 px-2","rounded-lg items-stretch shadow-md dark:shadow-none","bg-gray-50 dark:bg-white-alpha-50",e),...t}),Ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveInputGroup,{className:s.cn("flex",e),...t}),Ze=c.forwardRef(({className:e,...t},i)=>d.jsx(a.EmbeddedChatPrimitiveInput,{ref:i,className:s.cn("min-h-[unset] text-sm overflow-hidden w-full resize-none","placeholder:text-gray-500 dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent","px-3 py-2 mr-2 max-h-[200px] overflow-y-auto disabled:cursor-not-allowed",e),...t})),et=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveSendButton,{className:s.cn(o.button({}),"bg-transparent relative size-9 min-w-[unset] rounded-lg transition-all ease-linear","text-inkeep-primary-medium dark:text-inkeep-expanded-primary-500","active:bg-gray-300 dark:active:bg-white-alpha-100","hover:bg-gray-200 hover:text-inkeep-primary-strong","dark:hover:bg-white-alpha-100 dark:hover:text-inkeep-expanded-primary-300","disabled:text-gray-500 dark:disabled:text-white-alpha-200","disabled:cursor-not-allowed hover:disabled:[background:none] active:disabled:[background:none]",e),...t}),tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveSendButtonIcon,{className:s.cn(j.icon(),"text-inherit",e),...t}),at=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBar,{className:s.cn("flex items-center justify-between","flex-wrap gap-2 px-1 pt-2 pb-1",e),...t}),dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarList,{className:s.cn("flex items-center gap-2 flex-wrap px-3 min-w-0",e),...t}),st=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarAttachment,{className:s.cn(n.attachment({slot:"root"}),e),...t}),rt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon,{className:s.cn(n.attachment({slot:"icon"}),e),...t}),ot=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle,{className:s.cn(n.attachment({slot:"title"}),e),...t}),mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete,{className:s.cn(n.attachment({slot:"delete"}),e),...t}),it=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarActions,{className:s.cn("flex items-center justify-between","gap-2 flex-wrap px-3",e),...t}),nt=a.EmbeddedChatPrimitiveAttachmentsBarInfoTip,ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon,{className:s.cn("cursor-pointer text-sm text-gray-600","dark:text-white-alpha-600",e),...t}),lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarInfoTipText,{className:s.cn("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-950 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)] z-dropdown","px-3 py-2 rounded-md text-sm font-normal max-w-[200px]",e),...t}),ht=a.EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow,bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarInputs,{className:s.cn("contents",e),...t}),xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarInput,{className:s.cn(o.button({variant:"outline",size:"xs"}),"light:text-gray-700 gap-1",e),...t}),pt=a.EmbeddedChatPrimitiveAttachmentsBarModal,Ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalOverlay,{className:s.cn(r.modal({slot:"overlay"}),e),...t}),ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalContent,{className:s.cn(r.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),Et=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalHeader,{className:s.cn(r.modal({slot:"header"}),"px-0 pt-0 pb-8 gap-y-2","font-semibold",e),...t}),gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalHeading,{className:s.cn("w-full semibold",e),...t}),vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalDescription,{className:s.cn("text-gray-700 dark:text-white-alpha-700","text-sm font-normal w-full",e),...t}),ft=a.EmbeddedChatPrimitiveAttachmentsBarModalHelp,Ft=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalClose,{className:s.cn(r.modal({slot:"close"}),e),...t}),At=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarModalBody,{className:s.cn(r.modal({slot:"body"}),"p-0",e),...t}),kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarForm,{className:s.cn("flex flex-col gap-8",e),...t}),wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormTitle,{className:s.cn("flex flex-col gap-2",e),...t}),Pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel,{className:s.cn("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),Mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormTitleInput,{className:s.cn("h-9 px-3 rounded-md border","focus:outline-none focus:[--shadow-color:theme(colors.blue.500)]","data-[invalid]:[--shadow-color:theme(colors.red.500)]","shadow-[0_0_0_2px_var(--shadow-color)]",e),...t}),jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormTitleError,{className:s.cn("text-sm text-red-500",e),...t}),yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormContent,{className:s.cn("flex flex-col gap-2",e),...t}),Nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormContentLabel,{className:s.cn("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),It=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormContentInput,{className:s.cn(l.input({size:"md",variant:"outline"}),"min-h-20 px-3 py-1 text-sm",e),...t}),Bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormContentError,{className:s.cn("text-sm text-red-500",e),...t}),St=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton,{className:s.cn(o.button({preset:"neutralFilled"}),"ml-auto",e),...t}),Tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveActionBar,{className:s.cn("mt-4 flex items-start justify-between flex-wrap-reverse gap-2.5",e),...t}),Ht=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveActions,{className:s.cn("flex items-center gap-2.5 flex-wrap",e),...t}),Lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineContainer,{className:s.cn("flex items-center whitespace-nowrap",e),...t}),Dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineText,{className:s.cn("text-xs text-gray-500 dark:text-white-alpha-600",e),...t}),Wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineLogo,{className:s.cn("text-gray-500 dark:text-white-alpha-600","w-5 ml-1 mr-0.5",e),...t}),_t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineBrandName,{className:s.cn(y.link(),"inline-flex text-1sm text-gray-500","dark:text-white-alpha-600 font-medium",e),...t}),E=s.cn(o.button({size:"xs",variant:"outline"}),"text-gray-700 dark:text-white-alpha-700"),qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatAction,{className:s.cn(E,e),...t}),zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatActionLabel,{className:s.cn("cursor-pointer",e),...t}),Qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatActionFeedback,{className:s.cn("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-900 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)]","px-2 py-3 rounded-md text-sm font-normal",e),...t}),Rt=a.EmbeddedChatPrimitiveHelpActions,Ot=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatHelpAction,{className:s.cn(E,e),...t}),Vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsTrigger,{className:s.cn(E,e),...t}),Gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenu,{className:s.cn(p.popover({slot:"content"}),"gap-3 px-3 py-4 ","w-[254px] text-sm font-normal",e),...t}),$t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenuArrow,{className:s.cn(p.popover({slot:"arrow"}),e),...t}),Jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenuItem,{className:s.cn("flex items-center cursor-pointer hover:underline",e),...t}),Kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenuItemIcon,{className:s.cn("mr-2 text-inkeep-primary-medium",e),...t}),Ut=a.EmbeddedChatPrimitiveFeedbackModal,Xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalOverlay,{className:s.cn(r.modal({slot:"overlay"}),e),...t}),Yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalContent,{className:s.cn(r.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-[480px]",e),...t}),Zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalHeader,{className:s.cn(r.modal({slot:"header"}),"px-0 pt-0 pb-8","font-semibold",e),...t}),ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalClose,{className:s.cn(r.modal({slot:"close"}),e),...t}),ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalBody,{className:s.cn(r.modal({slot:"body"}),"p-0",e),...t}),aa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackForm,{className:s.cn("flex flex-col gap-8",e),...t}),da=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItem,{className:s.cn("flex flex-wrap items-center","gap-[.75rem_0.5rem]",e),...t}),sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemCheckbox,{className:s.cn(x.checkbox({slot:"root"}),e),...t}),ra=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator,{className:s.cn(x.checkbox({slot:"indicator"}),e),...t}),oa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemLabel,{className:s.cn("select-none cursor-pointer font-medium text-sm","text-gray-700 dark:text-white-alpha-700",e),...t}),ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemDescription,{className:s.cn("flex-[0_0_100%]","min-h-20 border rounded-md","px-3 py-2 text-sm",e),...t}),ia=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackSubmitButton,{className:s.cn(o.button({preset:"neutralFilled"}),"ml-auto",e),...t}),na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormWrapper,{className:s.cn("w-full overflow-y-auto [scrollbar-width:thin]",e),...t}),ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveForm,{className:s.cn(C.scrollable({section:"content"}),"relative pt-4 pb-8 gap-8","items-start justify-center w-full","px-6 ikp-md:px-10 ikp-md:pb-12",e),...t}),la=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormClose,{className:s.cn(o.button({variant:"ghost"}),"absolute right-1 top-1","text-xl text-gray-500 dark:text-white-alpha-500 w-10 h-10 z-modal",e),...t}),ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormHeader,{className:s.cn("mt-8 flex flex-col gap-6",e),...t}),ba=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormHeading,{className:s.cn("font-semibold text-xl leading-5",e),...t}),xa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormDescription,{className:s.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),pa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormContent,{className:s.cn("w-full space-y-8",e),...t}),Ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormField,{className:s.cn("flex flex-col gap-2 data-[hidden]:hidden","data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:items-center",e),...t}),ua=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldLabel,{className:s.cn("font-medium text-sm text-gray-700","dark:text-white-alpha-700 ","font-medium relative","data-[required]:after:absolute",'data-[required]:after:[content:"*"]',"data-[required]:after:ml-1","data-[required]:after:mt-0","data-[required]:after:text-red-500","dark:data-[required]:after:text-red-300",e),...t}),Ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldText,{className:s.cn(l.input({size:"md",variant:"outline"}),e),...t}),ga=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldEmail,{className:s.cn(l.input({size:"md",variant:"outline"}),e),...t}),va=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldFile,{className:s.cn(l.input({size:"md",variant:"outline"}),"text-sm pl-2 file:h-full file:cursor-pointer py-0","file:bg-transparent file:border-none file:font-medium","file:text-sm file:text-gray-700 dark:file:text-white-alpha-700",e),...t}),fa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldTextArea,{className:s.cn(l.input({size:"md",variant:"outline"}),"min-h-20 px-3 py-2 text-sm",e),...t}),Fa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldCheckbox,{className:s.cn(x.checkbox({slot:"root"}),e),...t}),Aa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldCheckboxIndicator,{className:s.cn(x.checkbox({slot:"indicator"}),e),...t}),ka=a.EmbeddedChatPrimitiveFormFieldSelect,wa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectTrigger,{className:s.cn(h.select({slot:"trigger"}),e),...t}),Pa=a.EmbeddedChatPrimitiveFormFieldSelectValue,Ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectIcon,{className:s.cn("h-4 w-4 opacity-45",e),...t}),ja=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectContent,{className:s.cn(h.select({slot:"content"}),e),...t}),ya=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectViewport,{className:s.cn(h.select({slot:"viewport"}),e),...t}),Na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectItem,{className:s.cn(h.select({slot:"item"}),e),...t}),Ia=a.EmbeddedChatPrimitiveFormFieldSelectItemText,Ba=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectItemIndicator,{className:s.cn(h.select({slot:"itemIndicator"}),e),...t}),Sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldError,{className:s.cn("text-sm flex items-center text-red-500 dark:text-red-300",e),...t}),Ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormError,{className:s.cn("text-red-500 dark:text-red-300",e),...t}),Ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFooter,{className:s.cn("flex items-center justify-end gap-4 w-full",e),...t}),La=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormCancel,{className:s.cn(o.button({variant:"outline"}),e),...t}),Da=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSubmit,{className:s.cn(o.button({preset:"neutralFilled"}),e),...t}),Wa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSuccess,{className:s.cn("flex flex-col items-center justify-center h-auto","m-auto px-6 py-8 ikp-md:py-14 ikp-md:px-10",e),...t}),_a=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSuccessHeading,{className:s.cn("mb-6 font-bold tracking-tight","text-3xl md:text-4xl leading-6 md:leading-5",e),...t}),qa=a.EmbeddedChatPrimitiveFormSuccessMessage,za=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSuccessButton,{className:s.cn(o.button({preset:"neutralFilled"}),"w-full mt-12 gap-2 shrink-0",e),...t});exports.MessagePart=T.EmbeddedChatMessagePart;exports.ActionBar=Tt;exports.Actions=Ht;exports.AttachmentsBar=at;exports.AttachmentsBarActions=it;exports.AttachmentsBarAttachment=st;exports.AttachmentsBarAttachmentDelete=mt;exports.AttachmentsBarAttachmentIcon=rt;exports.AttachmentsBarAttachmentTitle=ot;exports.AttachmentsBarForm=kt;exports.AttachmentsBarFormContent=yt;exports.AttachmentsBarFormContentError=Bt;exports.AttachmentsBarFormContentInput=It;exports.AttachmentsBarFormContentLabel=Nt;exports.AttachmentsBarFormSubmitButton=St;exports.AttachmentsBarFormTitle=wt;exports.AttachmentsBarFormTitleError=jt;exports.AttachmentsBarFormTitleInput=Mt;exports.AttachmentsBarFormTitleLabel=Pt;exports.AttachmentsBarInfoTip=nt;exports.AttachmentsBarInfoTipArrow=ht;exports.AttachmentsBarInfoTipIcon=ct;exports.AttachmentsBarInfoTipText=lt;exports.AttachmentsBarInput=xt;exports.AttachmentsBarInputs=bt;exports.AttachmentsBarList=dt;exports.AttachmentsBarModal=pt;exports.AttachmentsBarModalBody=At;exports.AttachmentsBarModalClose=Ft;exports.AttachmentsBarModalContent=ut;exports.AttachmentsBarModalDescription=vt;exports.AttachmentsBarModalHeader=Et;exports.AttachmentsBarModalHeading=gt;exports.AttachmentsBarModalHelp=ft;exports.AttachmentsBarModalOverlay=Ct;exports.ChatAction=qt;exports.ChatActionFeedback=Qt;exports.ChatActionLabel=zt;exports.Content=Q;exports.ContentScrollArea=R;exports.ContentScrollAreaCorner=$;exports.ContentScrollAreaScrollbar=V;exports.ContentScrollAreaThumb=G;exports.ContentScrollAreaViewport=O;exports.Disclaimer=J;exports.DisclaimerArrow=Z;exports.DisclaimerContent=X;exports.DisclaimerLabel=K;exports.DisclaimerText=Y;exports.DisclaimerTrigger=U;exports.DynamicComponent=Be;exports.ExampleQuestion=de;exports.ExampleQuestionButton=se;exports.ExampleQuestions=ee;exports.ExampleQuestionsLabel=te;exports.ExampleQuestionsList=ae;exports.FeedbackForm=aa;exports.FeedbackItem=da;exports.FeedbackItemCheckbox=sa;exports.FeedbackItemCheckboxIndicator=ra;exports.FeedbackItemDescription=ma;exports.FeedbackItemLabel=oa;exports.FeedbackModal=Ut;exports.FeedbackModalBody=ta;exports.FeedbackModalClose=ea;exports.FeedbackModalContent=Yt;exports.FeedbackModalHeader=Zt;exports.FeedbackModalOverlay=Xt;exports.FeedbackSubmitButton=ia;exports.Footer=Ue;exports.Form=ca;exports.FormCancel=La;exports.FormClose=la;exports.FormContent=pa;exports.FormDescription=xa;exports.FormError=Ta;exports.FormField=Ca;exports.FormFieldCheckbox=Fa;exports.FormFieldCheckboxIndicator=Aa;exports.FormFieldEmail=ga;exports.FormFieldError=Sa;exports.FormFieldFile=va;exports.FormFieldLabel=ua;exports.FormFieldSelect=ka;exports.FormFieldSelectContent=ja;exports.FormFieldSelectIcon=Ma;exports.FormFieldSelectItem=Na;exports.FormFieldSelectItemIndicator=Ba;exports.FormFieldSelectItemText=Ia;exports.FormFieldSelectTrigger=wa;exports.FormFieldSelectValue=Pa;exports.FormFieldSelectViewport=ya;exports.FormFieldText=Ea;exports.FormFieldTextArea=fa;exports.FormFooter=Ha;exports.FormHeader=ha;exports.FormHeading=ba;exports.FormSubmit=Da;exports.FormSuccess=Wa;exports.FormSuccessButton=za;exports.FormSuccessHeading=_a;exports.FormSuccessMessage=qa;exports.FormWrapper=na;exports.Header=W;exports.HeaderToolbar=_;exports.HeaderToolbarWrapper=q;exports.HelpAction=Ot;exports.HelpActions=Rt;exports.HelpActionsMenu=Gt;exports.HelpActionsMenuArrow=$t;exports.HelpActionsMenuItem=Jt;exports.HelpActionsMenuItemIcon=Kt;exports.HelpActionsTrigger=Vt;exports.Input=Ze;exports.InputFieldset=Xe;exports.InputGroup=Ye;exports.IntroMessageWrapper=le;exports.Markdown=Se;exports.MessageAction=De;exports.MessageAttachments=fe;exports.MessageAttachmentsItem=Ae;exports.MessageAttachmentsItemIcon=ke;exports.MessageAttachmentsItemTitle=we;exports.MessageAttachmentsList=Fe;exports.MessageAttachmentsPreview=Pe;exports.MessageAttachmentsPreviewBody=Ie;exports.MessageAttachmentsPreviewClose=Ne;exports.MessageAttachmentsPreviewContent=je;exports.MessageAttachmentsPreviewHeader=ye;exports.MessageAttachmentsPreviewOverlay=Me;exports.MessageAvatar=xe;exports.MessageAvatarContent=pe;exports.MessageAvatarFallback=Ce;exports.MessageAvatarImage=ue;exports.MessageContent=ve;exports.MessageContentWrapper=ge;exports.MessageCustomAction=Le;exports.MessageCustomActions=He;exports.MessageHeader=he;exports.MessageLoading=be;exports.MessageName=Ee;exports.MessageSourceItem=ze;exports.MessageSourceItemBreadcrumbIcon=Re;exports.MessageSourceItemBreadcrumbs=Qe;exports.MessageSourceItemDescription=$e;exports.MessageSourceItemDescriptionPart=Je;exports.MessageSourceItemIcon=Oe;exports.MessageSourceItemIndicator=Ke;exports.MessageSourceItemTag=Ge;exports.MessageSourceItemTitle=Ve;exports.MessageSources=We;exports.MessageSourcesHeader=_e;exports.MessageSourcesList=qe;exports.MessageToolbar=Te;exports.MessageWrapper=ce;exports.Messages=ne;exports.Provider=H;exports.Root=D;exports.SendButton=et;exports.SendButtonIcon=tt;exports.TaglineBrandName=_t;exports.TaglineContainer=Lt;exports.TaglineLogo=Wt;exports.TaglineText=Dt;exports.ToolbarHeader=z;exports.Workflow=ie;exports.Workflows=re;exports.WorkflowsLabel=oe;exports.WorkflowsList=me;exports.Wrapper=L;
|