@inkeep/agents-ui 0.15.11 → 0.15.13

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.
Files changed (46) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +171 -169
  3. package/dist/primitives/atoms/combobox.cjs +1 -0
  4. package/dist/primitives/atoms/combobox.js +275 -0
  5. package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -1
  6. package/dist/primitives/components/embedded-chat/use-stream-processor.js +74 -87
  7. package/dist/primitives/components/embedded-chat.cjs +4 -4
  8. package/dist/primitives/components/embedded-chat.d.ts +22 -1
  9. package/dist/primitives/components/embedded-chat.js +1249 -1137
  10. package/dist/primitives/hooks/use-simple-scroll.cjs +1 -1
  11. package/dist/primitives/hooks/use-simple-scroll.d.ts +12 -1
  12. package/dist/primitives/hooks/use-simple-scroll.js +45 -12
  13. package/dist/primitives/providers/base-events-provider.cjs +1 -1
  14. package/dist/primitives/providers/base-events-provider.js +1 -1
  15. package/dist/primitives/utils/component-ids.cjs +1 -1
  16. package/dist/primitives/utils/component-ids.d.ts +24 -0
  17. package/dist/primitives/utils/component-ids.js +12 -0
  18. package/dist/primitives/utils/form.cjs +1 -1
  19. package/dist/primitives/utils/form.d.ts +1 -1
  20. package/dist/primitives/utils/form.js +3 -1
  21. package/dist/react/chat-button-modal.cjs +1 -0
  22. package/dist/react/chat-button-modal.d.ts +22 -0
  23. package/dist/react/chat-button-modal.js +41 -0
  24. package/dist/react/embedded-chat.cjs +1 -1
  25. package/dist/react/embedded-chat.js +210 -191
  26. package/dist/react/index.cjs +1 -1
  27. package/dist/react/index.d.ts +1 -0
  28. package/dist/react/index.js +171 -169
  29. package/dist/styled/components/embedded-chat.cjs +1 -1
  30. package/dist/styled/components/embedded-chat.d.ts +16 -1
  31. package/dist/styled/components/embedded-chat.js +686 -568
  32. package/dist/styled/components/message.cjs +1 -1
  33. package/dist/styled/components/message.js +191 -183
  34. package/dist/styled/components/ui/recipes/combobox.cjs +1 -0
  35. package/dist/styled/components/ui/recipes/combobox.d.ts +4 -0
  36. package/dist/styled/components/ui/recipes/combobox.js +57 -0
  37. package/dist/styled/components/ui/recipes/index.cjs +1 -1
  38. package/dist/styled/components/ui/recipes/index.d.ts +1 -0
  39. package/dist/styled/components/ui/recipes/index.js +29 -27
  40. package/dist/styled/components/ui/recipes/modal.d.ts +1 -1
  41. package/dist/styled/components/ui/recipes/scrollable.d.ts +1 -1
  42. package/dist/styled/components/ui/recipes/select.d.ts +1 -1
  43. package/dist/styled/inkeep.css.cjs +182 -2
  44. package/dist/styled/inkeep.css.js +182 -2
  45. package/dist/types/config/settings/form.d.ts +9 -1
  46. package/package.json +6 -5
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react");function c(){const o=t.useRef(null),r=t.useCallback((l=!0)=>{const e=o.current;e&&e.scrollTo({top:e.scrollHeight,behavior:l?"smooth":"auto"})},[]);return{containerRef:o,scrollToBottom:r}}exports.useSimpleScroll=c;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),R=10;function b(f={}){const{isStreaming:r=!1}=f,o=e.useRef(null),n=e.useRef(!0),l=e.useRef(!1),s=e.useRef(null),u=e.useCallback(()=>{const t=o.current;if(!t)return!0;const{scrollTop:c,scrollHeight:S,clientHeight:m}=t;return S-c-m<=R},[]),i=e.useCallback((t=!0)=>{const c=o.current;c&&(l.current||c.scrollTo({top:c.scrollHeight,behavior:t?"smooth":"auto"}))},[]),a=e.useCallback(()=>{o.current&&(l.current=!0,s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{l.current=!1,r&&u()&&(n.current=!0)},150),r&&!u()&&(n.current=!1))},[r,u]);return e.useEffect(()=>{if(!r){n.current=!0;return}const t=o.current;if(!t)return;const c=new MutationObserver(()=>{n.current&&!l.current&&r&&i(!1)});return c.observe(t,{childList:!0,subtree:!0,characterData:!0}),()=>c.disconnect()},[r,i]),e.useEffect(()=>{r&&(n.current=u())},[r,u]),e.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),{containerRef:o,scrollToBottom:i,handleScroll:a,isAtBottom:u,shouldAutoScroll:()=>n.current}}exports.useSimpleScroll=b;
@@ -1,5 +1,16 @@
1
1
  import { RefObject } from 'react';
2
- export declare function useSimpleScroll(): {
2
+ export interface UseSimpleScrollOptions {
3
+ /**
4
+ * Whether streaming is currently active.
5
+ * When true, auto-scroll behavior is enabled.
6
+ */
7
+ isStreaming?: boolean;
8
+ }
9
+ export declare function useSimpleScroll(options?: UseSimpleScrollOptions): {
3
10
  containerRef: RefObject<HTMLDivElement | null>;
4
11
  scrollToBottom: (smooth?: boolean) => void;
12
+ handleScroll: () => void;
13
+ isAtBottom: () => boolean;
14
+ /** Whether auto-scroll is currently active (not hijacked by user) */
15
+ shouldAutoScroll: () => boolean;
5
16
  };
@@ -1,18 +1,51 @@
1
1
  "use client";
2
- import { useRef as l, useCallback as n } from "react";
3
- function s() {
4
- const t = l(null), e = n((r = !0) => {
5
- const o = t.current;
6
- o && o.scrollTo({
7
- top: o.scrollHeight,
8
- behavior: r ? "smooth" : "auto"
2
+ import { useRef as l, useCallback as f, useEffect as a } from "react";
3
+ const R = 10;
4
+ function d(m = {}) {
5
+ const { isStreaming: r = !1 } = m, o = l(null), n = l(!0), s = l(!1), u = l(null), c = f(() => {
6
+ const t = o.current;
7
+ if (!t) return !0;
8
+ const { scrollTop: e, scrollHeight: S, clientHeight: T } = t;
9
+ return S - e - T <= R;
10
+ }, []), i = f((t = !0) => {
11
+ const e = o.current;
12
+ e && (s.current || e.scrollTo({
13
+ top: e.scrollHeight,
14
+ behavior: t ? "smooth" : "auto"
15
+ }));
16
+ }, []), h = f(() => {
17
+ o.current && (s.current = !0, u.current && clearTimeout(u.current), u.current = setTimeout(() => {
18
+ s.current = !1, r && c() && (n.current = !0);
19
+ }, 150), r && !c() && (n.current = !1));
20
+ }, [r, c]);
21
+ return a(() => {
22
+ if (!r) {
23
+ n.current = !0;
24
+ return;
25
+ }
26
+ const t = o.current;
27
+ if (!t) return;
28
+ const e = new MutationObserver(() => {
29
+ n.current && !s.current && r && i(!1);
9
30
  });
10
- }, []);
11
- return {
12
- containerRef: t,
13
- scrollToBottom: e
31
+ return e.observe(t, {
32
+ childList: !0,
33
+ subtree: !0,
34
+ characterData: !0
35
+ }), () => e.disconnect();
36
+ }, [r, i]), a(() => {
37
+ r && (n.current = c());
38
+ }, [r, c]), a(() => () => {
39
+ u.current && clearTimeout(u.current);
40
+ }, []), {
41
+ containerRef: o,
42
+ scrollToBottom: i,
43
+ handleScroll: h,
44
+ isAtBottom: c,
45
+ /** Whether auto-scroll is currently active (not hijacked by user) */
46
+ shouldAutoScroll: () => n.current
14
47
  };
15
48
  }
16
49
  export {
17
- s as useSimpleScroll
50
+ d as useSimpleScroll
18
51
  };
@@ -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.10",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;
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.12",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.10",
8
+ widgetLibraryVersion: "0.15.12",
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",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;
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__FieldCombobox__Control:"aiChatForm__FieldCombobox__Control",aiChatForm__FieldCombobox__Positioner:"aiChatForm__FieldCombobox__Positioner",aiChatForm__FieldCombobox__Input:"aiChatForm__FieldCombobox__Input",aiChatForm__FieldCombobox__Trigger:"aiChatForm__FieldCombobox__Trigger",aiChatForm__FieldCombobox__SelectedTags:"aiChatForm__FieldCombobox__SelectedTags",aiChatForm__FieldCombobox__Content:"aiChatForm__FieldCombobox__Content",aiChatForm__FieldCombobox__List:"aiChatForm__FieldCombobox__List",aiChatForm__FieldCombobox__ListEmpty:"aiChatForm__FieldCombobox__ListEmpty",aiChatForm__FieldCombobox__Item:"aiChatForm__FieldCombobox__Item",aiChatForm__FieldCombobox__ItemText:"aiChatForm__FieldCombobox__ItemText",aiChatForm__FieldCombobox__ItemIndicator:"aiChatForm__FieldCombobox__ItemIndicator",aiChatForm__FieldDescription:"aiChatForm__FieldDescription",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"},s={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,...h,...s,...n};exports.ChatBubbleComponentIds=s;exports.DataSummaryComponentIds=n;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;
@@ -193,6 +193,18 @@ export declare const aiChatComponentIds: {
193
193
  aiChatForm__FieldSelect__Item: "aiChatForm__FieldSelect__Item";
194
194
  aiChatForm__FieldSelect__ItemIndicator: "aiChatForm__FieldSelect__ItemIndicator";
195
195
  aiChatForm__FieldSelect__ItemText: "aiChatForm__FieldSelect__ItemText";
196
+ aiChatForm__FieldCombobox__Control: "aiChatForm__FieldCombobox__Control";
197
+ aiChatForm__FieldCombobox__Positioner: "aiChatForm__FieldCombobox__Positioner";
198
+ aiChatForm__FieldCombobox__Input: "aiChatForm__FieldCombobox__Input";
199
+ aiChatForm__FieldCombobox__Trigger: "aiChatForm__FieldCombobox__Trigger";
200
+ aiChatForm__FieldCombobox__SelectedTags: "aiChatForm__FieldCombobox__SelectedTags";
201
+ aiChatForm__FieldCombobox__Content: "aiChatForm__FieldCombobox__Content";
202
+ aiChatForm__FieldCombobox__List: "aiChatForm__FieldCombobox__List";
203
+ aiChatForm__FieldCombobox__ListEmpty: "aiChatForm__FieldCombobox__ListEmpty";
204
+ aiChatForm__FieldCombobox__Item: "aiChatForm__FieldCombobox__Item";
205
+ aiChatForm__FieldCombobox__ItemText: "aiChatForm__FieldCombobox__ItemText";
206
+ aiChatForm__FieldCombobox__ItemIndicator: "aiChatForm__FieldCombobox__ItemIndicator";
207
+ aiChatForm__FieldDescription: "aiChatForm__FieldDescription";
196
208
  aiChatForm__FieldError: "aiChatForm__FieldError";
197
209
  aiChatForm__Error: "aiChatForm__Error";
198
210
  aiChatForm__Footer: "aiChatForm__Footer";
@@ -568,6 +580,18 @@ export declare const componentIDs: {
568
580
  aiChatForm__FieldSelect__Item: "aiChatForm__FieldSelect__Item";
569
581
  aiChatForm__FieldSelect__ItemIndicator: "aiChatForm__FieldSelect__ItemIndicator";
570
582
  aiChatForm__FieldSelect__ItemText: "aiChatForm__FieldSelect__ItemText";
583
+ aiChatForm__FieldCombobox__Control: "aiChatForm__FieldCombobox__Control";
584
+ aiChatForm__FieldCombobox__Positioner: "aiChatForm__FieldCombobox__Positioner";
585
+ aiChatForm__FieldCombobox__Input: "aiChatForm__FieldCombobox__Input";
586
+ aiChatForm__FieldCombobox__Trigger: "aiChatForm__FieldCombobox__Trigger";
587
+ aiChatForm__FieldCombobox__SelectedTags: "aiChatForm__FieldCombobox__SelectedTags";
588
+ aiChatForm__FieldCombobox__Content: "aiChatForm__FieldCombobox__Content";
589
+ aiChatForm__FieldCombobox__List: "aiChatForm__FieldCombobox__List";
590
+ aiChatForm__FieldCombobox__ListEmpty: "aiChatForm__FieldCombobox__ListEmpty";
591
+ aiChatForm__FieldCombobox__Item: "aiChatForm__FieldCombobox__Item";
592
+ aiChatForm__FieldCombobox__ItemText: "aiChatForm__FieldCombobox__ItemText";
593
+ aiChatForm__FieldCombobox__ItemIndicator: "aiChatForm__FieldCombobox__ItemIndicator";
594
+ aiChatForm__FieldDescription: "aiChatForm__FieldDescription";
571
595
  aiChatForm__FieldError: "aiChatForm__FieldError";
572
596
  aiChatForm__Error: "aiChatForm__Error";
573
597
  aiChatForm__Footer: "aiChatForm__Footer";
@@ -193,6 +193,18 @@ const a = {
193
193
  aiChatForm__FieldSelect__Item: "aiChatForm__FieldSelect__Item",
194
194
  aiChatForm__FieldSelect__ItemIndicator: "aiChatForm__FieldSelect__ItemIndicator",
195
195
  aiChatForm__FieldSelect__ItemText: "aiChatForm__FieldSelect__ItemText",
196
+ aiChatForm__FieldCombobox__Control: "aiChatForm__FieldCombobox__Control",
197
+ aiChatForm__FieldCombobox__Positioner: "aiChatForm__FieldCombobox__Positioner",
198
+ aiChatForm__FieldCombobox__Input: "aiChatForm__FieldCombobox__Input",
199
+ aiChatForm__FieldCombobox__Trigger: "aiChatForm__FieldCombobox__Trigger",
200
+ aiChatForm__FieldCombobox__SelectedTags: "aiChatForm__FieldCombobox__SelectedTags",
201
+ aiChatForm__FieldCombobox__Content: "aiChatForm__FieldCombobox__Content",
202
+ aiChatForm__FieldCombobox__List: "aiChatForm__FieldCombobox__List",
203
+ aiChatForm__FieldCombobox__ListEmpty: "aiChatForm__FieldCombobox__ListEmpty",
204
+ aiChatForm__FieldCombobox__Item: "aiChatForm__FieldCombobox__Item",
205
+ aiChatForm__FieldCombobox__ItemText: "aiChatForm__FieldCombobox__ItemText",
206
+ aiChatForm__FieldCombobox__ItemIndicator: "aiChatForm__FieldCombobox__ItemIndicator",
207
+ aiChatForm__FieldDescription: "aiChatForm__FieldDescription",
196
208
  aiChatForm__FieldError: "aiChatForm__FieldError",
197
209
  aiChatForm__Error: "aiChatForm__Error",
198
210
  aiChatForm__Footer: "aiChatForm__Footer",
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a={text:"",email:"",checkbox:!1,textarea:"",file:void 0,select:""};function l(u){return u?u?.reduce((t,e)=>("defaultValue"in e&&e.defaultValue?t[e.name]=e.defaultValue:e.inputType&&(t[e.name]=a[e.inputType]),t),{}):{}}exports.defaultInputValues=a;exports.getFormDefaultValues=l;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a={text:"",email:"",checkbox:!1,textarea:"",file:void 0,select:"",combobox:[]};function l(u){return u?u?.reduce((t,e)=>("defaultValue"in e&&e.defaultValue?t[e.name]=e.defaultValue:e.inputType&&(t[e.name]=a[e.inputType]),t),{}):{}}exports.defaultInputValues=a;exports.getFormDefaultValues=l;
@@ -1,3 +1,3 @@
1
1
  import { FormField, FormInputType } from '../../types/index.ts';
2
- export declare const defaultInputValues: Record<FormInputType, string | boolean | undefined>;
2
+ export declare const defaultInputValues: Record<FormInputType, string | string[] | boolean | undefined>;
3
3
  export declare function getFormDefaultValues(fields: FormField[] | undefined): Record<string, any>;
@@ -6,7 +6,9 @@ const a = {
6
6
  textarea: "",
7
7
  file: void 0,
8
8
  // file inputs are always uncontrolled since their value can only be set by the user so it's ok to use undefined here
9
- select: ""
9
+ select: "",
10
+ combobox: []
11
+ // value is always string[] (single = [one value])
10
12
  };
11
13
  function n(u) {
12
14
  return u ? u?.reduce((t, e) => ("defaultValue" in e && e.defaultValue ? t[e.name] = e.defaultValue : e.inputType && (t[e.name] = a[e.inputType]), t), {}) : {};
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),C=require("../styled/components/modal.cjs"),c=require("../styled/components/shadow.cjs"),d=require("../primitives/providers/config-provider.cjs"),l=require("../primitives/providers/root-provider.cjs"),j=require("../primitives/atoms/portal.cjs"),u=require("../primitives/atoms/error-boundary.cjs"),S=require("./embedded-search-and-chat.impl.cjs"),q=require("./embedded-search-and-chat.cjs"),x=require("./chat-button.cjs"),y=require("./utils.cjs"),b=require("@radix-ui/react-use-controllable-state");function B(n){const{label:h,avatar:p,openSettings:t,...f}=n,{config:o,...i}=S.useWidgetImpl({defaultView:"chat",...f}),g=s=>{n.forceDefaultView&&!s&&i.setView(n.defaultView??"chat"),t?.isOpen===void 0&&r(!!s)},[m=t?.defaultOpen??!1,r]=b.useControllableState({prop:t?.isOpen,defaultProp:t?.defaultOpen??!1,onChange:y.composeEventHandlers(t?.onOpenChange,g)}),a={...t,isOpen:m,onOpenChange:r};return e.jsxs(e.Fragment,{children:[e.jsx(u.ErrorBoundary,{children:e.jsx(c.Shadow,{wrapperStyles:{display:"contents"},children:e.jsx(l.RootProvider,{config:o,componentType:d.WebWidgetInteractionType.ChatButton,children:e.jsx(x.ChatButtonImpl,{label:h,avatar:p,onOpenChange:r,openSettings:a})})})}),e.jsx(u.ErrorBoundary,{children:e.jsx(j.Portal,{children:e.jsx(c.Shadow,{children:e.jsx(l.RootProvider,{config:o,componentType:d.WebWidgetInteractionType.ChatButton,children:e.jsx(C.Root,{config:a,children:e.jsx(q.InkeepEmbeddedSearchAndChatImpl,{...i})})})})})})]})}exports.InkeepChatButtonModal=B;
@@ -0,0 +1,22 @@
1
+ import { InkeepAIChatSettings, OpenSettingsModal } from '../types/index.ts';
2
+ import { InkeepEmbeddedSearchAndChatProps } from './embedded-search-and-chat';
3
+ export interface InkeepChatButtonModalProps extends InkeepEmbeddedSearchAndChatProps {
4
+ /**
5
+ * Label for the chat button.
6
+ */
7
+ label?: string;
8
+ /**
9
+ * URL to the AI assistant's avatar image.
10
+ * Should be a square image, recommended size 40x40px.
11
+ * Supports common image formats (PNG, JPG, SVG).
12
+ *
13
+ * You can pass a string or an object to configure for different color modes.
14
+ * {
15
+ * light: 'https://example.com/avatar-light.png',
16
+ * dark: 'https://example.com/avatar-dark.png',
17
+ * }
18
+ */
19
+ avatar?: InkeepAIChatSettings['aiAssistantAvatar'];
20
+ openSettings?: OpenSettingsModal;
21
+ }
22
+ export declare function InkeepChatButtonModal(props: InkeepChatButtonModalProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,41 @@
1
+ "use client";
2
+ import { jsxs as C, Fragment as O, jsx as e } from "react/jsx-runtime";
3
+ import { Root as S } from "../styled/components/modal.js";
4
+ import { Shadow as l } from "../styled/components/shadow.js";
5
+ import { WebWidgetInteractionType as m } from "../primitives/providers/config-provider.js";
6
+ import { RootProvider as d } from "../primitives/providers/root-provider.js";
7
+ import { Portal as w } from "../primitives/atoms/portal.js";
8
+ import { ErrorBoundary as c } from "../primitives/atoms/error-boundary.js";
9
+ import { useWidgetImpl as y } from "./embedded-search-and-chat.impl.js";
10
+ import { InkeepEmbeddedSearchAndChatImpl as I } from "./embedded-search-and-chat.js";
11
+ import { ChatButtonImpl as B } from "./chat-button.js";
12
+ import { composeEventHandlers as b } from "./utils.js";
13
+ import { useControllableState as v } from "@radix-ui/react-use-controllable-state";
14
+ function F(o) {
15
+ const { label: f, avatar: s, openSettings: t, ...h } = o, { config: r, ...i } = y({ defaultView: "chat", ...h }), u = (p) => {
16
+ o.forceDefaultView && !p && i.setView(o.defaultView ?? "chat"), t?.isOpen === void 0 && n(!!p);
17
+ }, [g = t?.defaultOpen ?? !1, n] = v({
18
+ prop: t?.isOpen,
19
+ defaultProp: t?.defaultOpen ?? !1,
20
+ onChange: b(t?.onOpenChange, u)
21
+ }), a = {
22
+ ...t,
23
+ isOpen: g,
24
+ onOpenChange: n
25
+ };
26
+ return /* @__PURE__ */ C(O, { children: [
27
+ /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(l, { wrapperStyles: { display: "contents" }, children: /* @__PURE__ */ e(d, { config: r, componentType: m.ChatButton, children: /* @__PURE__ */ e(
28
+ B,
29
+ {
30
+ label: f,
31
+ avatar: s,
32
+ onOpenChange: n,
33
+ openSettings: a
34
+ }
35
+ ) }) }) }),
36
+ /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(d, { config: r, componentType: m.ChatButton, children: /* @__PURE__ */ e(S, { config: a, children: /* @__PURE__ */ e(I, { ...i }) }) }) }) }) })
37
+ ] });
38
+ }
39
+ export {
40
+ F as InkeepChatButtonModal
41
+ };
@@ -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(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
+ "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"),A=require("../styled/components/shadow.cjs"),F=require("../styled/components/message.cjs"),p=require("../primitives/providers/config-provider.cjs"),M=require("../primitives/providers/root-provider.cjs"),k=require("../primitives/providers/widget-provider.cjs"),T=require("../primitives/components/modal/modal-provider.cjs"),g=require("../primitives/utils/misc.cjs"),m=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(A.Shadow,{wrapperStyles:{height:"inherit",width:"inherit"},children:e.jsx(M.RootProvider,{config:{baseSettings:t,aiChatSettings:n},componentType:p.WebWidgetInteractionType.EmbeddedChat,children:e.jsx(I,{...r})})})})}function b(r){const{children:t,onToggleView:n,isHidden:o,shouldAutoFocusInput:a=!n}=r;return e.jsx(s.Provider,{isHidden:o,shouldAutoFocusInput:a,children:t})}function I(r){return e.jsx(b,{...r,children:e.jsx(C,{...r})})}function C(r){const{onToggleView:t,variant:n,header:o=y}=r,a=T.useModal(),i=k.useWidget(),c=a&&!i?S.ModalContent:x.Fragment;return e.jsx(c,{children:e.jsxs(s.Wrapper,{variant:n??(t?"no-shadow":"container-with-shadow"),"data-composite":g.dataAttr(!!r.onToggleView||a?.isOpen),children:[e.jsxs(s.Root,{children:[o&&e.jsx(o,{...r}),e.jsx(E,{}),e.jsx(W,{})]}),e.jsx(V,{}),e.jsx(O,{})]})})}const y=r=>{const{onToggleView:t,askAILabel:n,searchLabel:o}=r,a=!!t;return e.jsx(s.Header,{"data-show-toolbar":g.dataAttr(a),children:a?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:o,view:"chat"}),e.jsx(h.Close,{})]}):e.jsx(h.Close,{})})};function E(){return e.jsx(s.Content,{children:e.jsxs(s.ContentScrollArea,{children:[e.jsx(s.ContentScrollAreaViewport,{children:e.jsx(f,{})}),e.jsx(s.ContentScrollAreaScrollbar,{children:e.jsx(s.ContentScrollAreaThumb,{})}),e.jsx(s.ContentScrollAreaCorner,{})]})})}function f(){const{aiChatSettings:{components:r}}=p.useInkeepConfig();return e.jsx(s.Messages,{children:({messages:t,isLoading:n})=>{const o=t.at(-1),a=(c,j)=>{const l=r?.[c];if(!l)return console.warn(`Component "${c}" not found in components config`),null;try{if(typeof l=="function"&&l.length<=1)return x.createElement(l,j);const d=l(j,document.createElement("div"),null);return x.isValidElement(d)||typeof d=="string"?d:null}catch(d){return console.error(`🔍 [renderComponent] Error rendering component "${c}":`,d),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:a,renderMarkdown:i},componentDef:r.IkpMessage}):e.jsxs(e.Fragment,{children:[e.jsx(F.EmbeddedChatMessagePart,{isLast:o?.id===c.id}),e.jsx(P,{})]})}),e.jsx(D,{}),e.jsx(L,{})]})]},c.id)),n&&o?.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(F.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(m.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 L(){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 P(){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(o=>e.jsxs(x.Fragment,{children:[o,e.jsx(s.MessageSourceItemBreadcrumbIcon,{})]},o))}),e.jsx(s.MessageSourceItemIcon,{}),e.jsx(s.MessageSourceItemTitle,{}),e.jsx(s.MessageSourceItemTag,{}),e.jsx(s.MessageSourceItemDescription,{children:o=>o.map((a,i)=>e.jsx(s.MessageSourceItemDescriptionPart,{part:a},`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(m.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(m.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(o=>e.jsxs(s.FormFieldSelectItem,{value:o.value,children:[e.jsx(s.FormFieldSelectItemText,{children:o.label}),e.jsx(s.FormFieldSelectItemIndicator,{})]},o.value))})})]}),t.inputType==="combobox"&&e.jsxs(s.FormFieldCombobox,{children:[e.jsxs(s.FormFieldComboboxControl,{children:["multiple"in t&&t.multiple&&e.jsx(s.FormFieldComboboxSelectedTags,{}),e.jsx(s.FormFieldComboboxInput,{}),e.jsx(s.FormFieldComboboxTrigger,{})]}),e.jsx(s.FormFieldComboboxPositioner,{children:e.jsx(s.FormFieldComboboxContent,{children:e.jsx(s.FormFieldComboboxList,{children:e.jsx(s.FormFieldComboboxListItems,{children:o=>o.length===0?e.jsx(s.FormFieldComboboxListEmpty,{}):o.map(a=>e.jsxs(s.FormFieldComboboxItem,{item:a,children:[e.jsx(s.FormFieldComboboxItemText,{children:a.label}),e.jsx(s.FormFieldComboboxItemIndicator,{})]},a.value))})})})})]}),e.jsx(s.FormFieldDescription,{}),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=C;exports.InkeepEmbeddedChatProvider=b;