@inkeep/agents-ui 0.15.29 → 0.15.30

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 (42) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +156 -158
  3. package/dist/primitives/components/embedded-chat.cjs +4 -4
  4. package/dist/primitives/components/embedded-chat.d.ts +5 -14
  5. package/dist/primitives/components/embedded-chat.js +821 -866
  6. package/dist/primitives/hooks/use-feedback-api.cjs +1 -0
  7. package/dist/primitives/hooks/use-feedback-api.d.ts +19 -0
  8. package/dist/primitives/hooks/use-feedback-api.js +37 -0
  9. package/dist/primitives/index.cjs +1 -1
  10. package/dist/primitives/index.js +134 -137
  11. package/dist/primitives/providers/base-events-provider.cjs +1 -1
  12. package/dist/primitives/providers/base-events-provider.js +1 -1
  13. package/dist/primitives/providers/feedback-provider.cjs +1 -1
  14. package/dist/primitives/providers/feedback-provider.d.ts +1 -1
  15. package/dist/primitives/providers/feedback-provider.js +57 -64
  16. package/dist/primitives/providers/index.cjs +1 -1
  17. package/dist/primitives/providers/index.d.ts +0 -1
  18. package/dist/primitives/providers/index.js +42 -45
  19. package/dist/primitives/utils/component-ids.cjs +1 -1
  20. package/dist/primitives/utils/component-ids.d.ts +2 -6
  21. package/dist/primitives/utils/component-ids.js +1 -3
  22. package/dist/react/embedded-chat.cjs +1 -1
  23. package/dist/react/embedded-chat.js +248 -263
  24. package/dist/react/index.cjs +1 -1
  25. package/dist/react/index.js +156 -158
  26. package/dist/styled/components/embedded-chat.cjs +1 -1
  27. package/dist/styled/components/embedded-chat.d.ts +2 -4
  28. package/dist/styled/components/embedded-chat.js +381 -411
  29. package/dist/styled/components/index.cjs +1 -1
  30. package/dist/styled/components/index.js +12 -11
  31. package/dist/styled/components/message.cjs +1 -1
  32. package/dist/styled/components/message.d.ts +20 -0
  33. package/dist/styled/components/message.js +304 -228
  34. package/dist/styled/index.cjs +1 -1
  35. package/dist/styled/index.js +152 -154
  36. package/dist/styled/inkeep.css.cjs +79 -12
  37. package/dist/styled/inkeep.css.js +79 -12
  38. package/dist/types/events.d.ts +3 -17
  39. package/package.json +1 -1
  40. package/dist/primitives/providers/feedback-item-provider.cjs +0 -1
  41. package/dist/primitives/providers/feedback-item-provider.d.ts +0 -10
  42. package/dist/primitives/providers/feedback-item-provider.js +0 -16
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./embedded-chat.cjs"),f=require("./sidebar-chat.cjs"),l=require("./embedded-search-and-chat.cjs"),d=require("./embedded-search.cjs"),R=require("./modal.chat.cjs"),A=require("./modal.search-and-chat.cjs"),$=require("./modal.search.cjs"),p=require("./modal.cjs"),I=require("./chat-button.cjs"),T=require("./chat-button-modal.cjs"),b=require("./searchbar.cjs"),D=require("../styled/components/embedded-chat.cjs"),O=require("../styled/components/chat-history.cjs"),W=require("../styled/components/sidebar-chat.cjs"),x=require("../styled/components/chat-bubble.cjs"),z=require("../styled/components/embedded-search.cjs"),L=require("../styled/components/modal.cjs"),j=require("../styled/components/chat-button.cjs"),G=require("../styled/components/searchbar.cjs"),Q=require("../styled/components/shadow.cjs"),U=require("../styled/components/loading-indicator.cjs"),_=require("../styled/components/ui/recipes/widget-toggle.cjs"),K=require("../styled/components/message.cjs"),N=require("../styled/components/data-summary-group.cjs"),S=require("../primitives/providers/base-events-provider.cjs"),u=require("../primitives/providers/chat-form-provider.cjs"),P=require("../primitives/providers/chat-history-provider.cjs"),m=require("../primitives/providers/config-provider.cjs"),v=require("../primitives/providers/feedback-item-provider.cjs"),q=require("../primitives/providers/feedback-provider.cjs"),k=require("../primitives/providers/form-field-provider.cjs"),c=require("../primitives/providers/help-menu-provider.cjs"),M=require("../primitives/providers/markdown-provider.cjs"),C=require("../primitives/providers/message-provider.cjs"),V=require("../primitives/providers/root-provider.cjs"),g=require("../primitives/providers/source-item-provider.cjs"),J=require("../primitives/providers/theme-provider.cjs"),B=require("../primitives/providers/widget-provider.cjs"),n=require("../primitives/providers/sidebar-chat-provider.cjs"),s=require("../primitives/providers/chat-bubble-provider.cjs"),y=require("../primitives/components/factory.cjs"),X=require("../primitives/components/embedded-chat.cjs"),Y=require("../primitives/components/sidebar-chat/index.cjs"),E=require("../primitives/components/embedded-chat/chat-provider.cjs"),Z=require("../primitives/components/embedded-search.cjs"),h=require("../primitives/components/embedded-search/search-provider.cjs"),ee=require("../primitives/components/modal.cjs"),F=require("../primitives/components/modal/modal-provider.cjs"),re=require("../primitives/components/chat-button.cjs"),oe=require("../primitives/components/searchbar.cjs"),te=require("../primitives/components/chat-bubble/index.cjs"),ae=require("../primitives/components/data-summaries.cjs"),de=require("../primitives/components/chat-history/index.cjs"),ne=require("../primitives/hooks/use-boolean.cjs"),se=require("../primitives/hooks/use-component-classnames.cjs"),ie=require("../primitives/hooks/use-container-size.cjs"),ue=require("../primitives/hooks/use-inkeep-open-state.cjs"),me=require("../primitives/hooks/use-copy-to-clipboard.cjs"),ce=require("../primitives/hooks/use-instant-update.cjs"),Ce=require("../primitives/hooks/use-is-mounted.cjs"),he=require("../primitives/hooks/use-media-query.cjs"),le=require("../primitives/hooks/use-resize-observer.cjs"),w=require("../primitives/hooks/use-scrolling-fades.cjs"),pe=require("../primitives/hooks/use-settle-action.cjs"),Ie=require("../primitives/hooks/use-simple-scroll.cjs"),o=require("../primitives/utils/misc.cjs"),e=require("../primitives/utils/component-ids.cjs"),H=require("../primitives/utils/compose-refs.cjs"),be=require("../primitives/utils/merge-props.cjs"),Se=require("../primitives/atoms/portal.cjs"),Pe=require("../primitives/atoms/icons/custom-icon.cjs"),ve=require("../primitives/atoms/icons/built-in-icon-renderer.cjs"),qe=require("../primitives/atoms/portal-with-theme.cjs"),r=require("../primitives/atoms/cmdk/index.cjs"),ke=require("../primitives/atoms/error-boundary.cjs"),t=require("../color-mode/index.cjs"),i=require("../primitives/atoms/shadow/context.cjs");exports.InkeepEmbeddedChat=a.InkeepEmbeddedChat;exports.InkeepEmbeddedChatImpl=a.InkeepEmbeddedChatImpl;exports.InkeepEmbeddedChatImplContent=a.InkeepEmbeddedChatImplContent;exports.InkeepEmbeddedChatProvider=a.InkeepEmbeddedChatProvider;exports.InkeepSidebarChat=f.InkeepSidebarChat;exports.InkeepEmbeddedSearchAndChat=l.InkeepEmbeddedSearchAndChat;exports.InkeepEmbeddedSearchAndChatImpl=l.InkeepEmbeddedSearchAndChatImpl;exports.InkeepEmbeddedSearch=d.InkeepEmbeddedSearch;exports.InkeepEmbeddedSearchImpl=d.InkeepEmbeddedSearchImpl;exports.InkeepEmbeddedSearchImplContent=d.InkeepEmbeddedSearchImplContent;exports.InkeepEmbeddedSearchProvider=d.InkeepEmbeddedSearchProvider;exports.InkeepModalChat=R.InkeepModalChat;exports.InkeepModalSearchAndChat=A.InkeepModalSearchAndChat;exports.InkeepModalSearch=$.InkeepModalSearch;exports.InkeepModal=p.InkeepModal;exports.ModalContent=p.ModalContent;exports.ChatButtonImpl=I.ChatButtonImpl;exports.InkeepChatButton=I.InkeepChatButton;exports.InkeepChatButtonModal=T.InkeepChatButtonModal;exports.InkeepSearchBar=b.InkeepSearchBar;exports.SearchBarImpl=b.SearchBarImpl;exports.EmbeddedChat=D;exports.ChatHistory=O;exports.SidebarChat=W;exports.ChatBubble=x;exports.EmbeddedSearch=z;exports.Modal=L;exports.ChatButton=j;exports.SearchBar=G;exports.Shadow=Q.Shadow;exports.LoadingIndicator=U.LoadingIndicator;exports.widgetToggle=_.widgetToggle;exports.EmbeddedChatMessagePart=K.EmbeddedChatMessagePart;exports.DataSummaryGroup=N.DataSummaryGroup;exports.BaseEventsProvider=S.BaseEventsProvider;exports.useBaseEvents=S.useBaseEvents;exports.ChatFormProvider=u.ChatFormProvider;exports.useChatForm=u.useChatForm;exports.useChatFormState=u.useChatFormState;exports.ChatHistoryProvider=P.ChatHistoryProvider;exports.useChatHistory=P.useChatHistory;exports.InkeepConfigProvider=m.InkeepConfigProvider;exports.WebWidgetInteractionType=m.WebWidgetInteractionType;exports.useInkeepConfig=m.useInkeepConfig;exports.FeedbackItemProvider=v.FeedbackItemProvider;exports.useFeedbackItem=v.useFeedbackItem;exports.FeedbackProvider=q.FeedbackProvider;exports.useMessageFeedback=q.useMessageFeedback;exports.FormFieldProvider=k.FormFieldProvider;exports.useFormField=k.useFormField;exports.HelpMenuProvider=c.HelpMenuProvider;exports.useHelpMenu=c.useHelpMenu;exports.useHelpMenuState=c.useHelpMenuState;exports.ChatMarkdownProvider=M.ChatMarkdownProvider;exports.useChatMarkdown=M.useChatMarkdown;exports.MessageProvider=C.MessageProvider;exports.useMessage=C.useMessage;exports.useOptionalMessage=C.useOptionalMessage;exports.RootProvider=V.RootProvider;exports.SourceItemProvider=g.SourceItemProvider;exports.useSourceItem=g.useSourceItem;exports.ThemeProvider=J.ThemeProvider;exports.WidgetProvider=B.WidgetProvider;exports.useWidget=B.useWidget;exports.SidebarChatProvider=n.SidebarChatProvider;exports.useInkeepSidebarChat=n.useInkeepSidebarChat;exports.useOptionalSidebarChat=n.useOptionalSidebarChat;exports.useSidebarChat=n.useSidebarChat;exports.ChatBubbleProvider=s.ChatBubbleProvider;exports.useChatBubble=s.useChatBubble;exports.useInkeepChatBubble=s.useInkeepChatBubble;exports.useOptionalChatBubble=s.useOptionalChatBubble;exports.ikp=y.ikp;exports.jsxFactory=y.jsxFactory;exports.EmbeddedChatPrimitive=X;exports.SidebarChatPrimitive=Y;exports.ChatProvider=E.ChatProvider;exports.useChat=E.useChat;exports.EmbeddedSearchPrimitive=Z;exports.SearchProvider=h.SearchProvider;exports.SearchProviderImpl=h.SearchProviderImpl;exports.useSearch=h.useSearch;exports.ModalPrimitive=ee;exports.ModalProvider=F.ModalProvider;exports.useModal=F.useModal;exports.ChatButtonPrimitive=re;exports.SearchBarPrimitive=oe;exports.ChatBubblePrimitive=te;exports.DataSummaryPrimitive=ae;exports.ChatHistoryPrimitive=de;exports.useBoolean=ne.useBoolean;exports.useComponentClassNames=se.useComponentClassNames;exports.useContainerSize=ie.useContainerSize;exports.useInkeepOpenState=ue.useInkeepOpenState;exports.useCopyToClipboard=me.useCopyToClipboard;exports.useInstantUpdate=ce.useInstantUpdate;exports.useIsMounted=Ce.useIsMounted;exports.useMediaQuery=he.useMediaQuery;exports.useResizeObserver=le.useResizeObserver;exports.useScrollingFades=w.useScrollingFades;exports.useScrollingFadesHorizontal=w.useScrollingFadesHorizontal;exports.useSettleAction=pe.useSettleAction;exports.useSimpleScroll=Ie.useSimpleScroll;exports.callAll=o.callAll;exports.dataAttr=o.dataAttr;exports.getInitials=o.getInitials;exports.getMessageContent=o.getMessageContent;exports.isString=o.isString;exports.maybeRender=o.maybeRender;exports.toKebabCase=o.toKebabCase;exports.ChatBubbleComponentIds=e.ChatBubbleComponentIds;exports.DataSummaryComponentIds=e.DataSummaryComponentIds;exports.SearchBarComponentIds=e.SearchBarComponentIds;exports.SidebarChatComponentIds=e.SidebarChatComponentIds;exports.aiChatComponentIds=e.aiChatComponentIds;exports.aiChatHistoryComponentIds=e.aiChatHistoryComponentIds;exports.aiSearchComponentIds=e.aiSearchComponentIds;exports.chatButtonComponentIds=e.chatButtonComponentIds;exports.componentIDs=e.componentIDs;exports.markDownComponentIds=e.markDownComponentIds;exports.miscellanousComponentIds=e.miscellanousComponentIds;exports.modalComponentIds=e.modalComponentIds;exports.composeRefs=H.composeRefs;exports.useComposedRefs=H.useComposedRefs;exports.mergeProps=be.mergeProps;exports.Portal=Se.Portal;exports.CustomIcon=Pe.CustomIcon;exports.BuiltInIconRenderer=ve.BuiltInIconRenderer;exports.PortalWithTheme=qe.PortalWithTheme;exports.Command=r.Command;exports.CommandDialog=r.CommandDialog;exports.CommandEmpty=r.CommandEmpty;exports.CommandInput=r.CommandInput;exports.CommandItem=r.CommandItem;exports.CommandList=r.CommandList;exports.CommandLoading=r.CommandLoading;exports.CommandRoot=r.CommandRoot;exports.CommandSeparator=r.CommandSeparator;exports.defaultFilter=r.defaultFilter;exports.useCommandState=r.useCommandState;exports.useCommandStore=r.useCommandStore;exports.ErrorBoundary=ke.ErrorBoundary;exports.ColorMode=t.ColorMode;exports.ColorModeProvider=t.ColorModeProvider;exports.DarkModeProvider=t.DarkModeProvider;exports.useColorMode=t.useColorMode;exports.useColorModeValue=t.useColorModeValue;exports.InkeepShadow=i.InkeepShadow;exports.InkeepShadowProvider=i.InkeepShadowProvider;exports.ShadowContext=i.ShadowContext;exports.useShadow=i.useShadow;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./embedded-chat.cjs"),H=require("./sidebar-chat.cjs"),l=require("./embedded-search-and-chat.cjs"),d=require("./embedded-search.cjs"),R=require("./modal.chat.cjs"),T=require("./modal.search-and-chat.cjs"),A=require("./modal.search.cjs"),p=require("./modal.cjs"),I=require("./chat-button.cjs"),D=require("./chat-button-modal.cjs"),S=require("./searchbar.cjs"),$=require("../styled/components/embedded-chat.cjs"),O=require("../styled/components/chat-history.cjs"),W=require("../styled/components/sidebar-chat.cjs"),x=require("../styled/components/chat-bubble.cjs"),z=require("../styled/components/embedded-search.cjs"),L=require("../styled/components/modal.cjs"),j=require("../styled/components/chat-button.cjs"),G=require("../styled/components/searchbar.cjs"),Q=require("../styled/components/shadow.cjs"),U=require("../styled/components/loading-indicator.cjs"),_=require("../styled/components/ui/recipes/widget-toggle.cjs"),b=require("../styled/components/message.cjs"),K=require("../styled/components/data-summary-group.cjs"),P=require("../primitives/providers/base-events-provider.cjs"),u=require("../primitives/providers/chat-form-provider.cjs"),v=require("../primitives/providers/chat-history-provider.cjs"),m=require("../primitives/providers/config-provider.cjs"),q=require("../primitives/providers/feedback-provider.cjs"),k=require("../primitives/providers/form-field-provider.cjs"),c=require("../primitives/providers/help-menu-provider.cjs"),M=require("../primitives/providers/markdown-provider.cjs"),C=require("../primitives/providers/message-provider.cjs"),N=require("../primitives/providers/root-provider.cjs"),g=require("../primitives/providers/source-item-provider.cjs"),V=require("../primitives/providers/theme-provider.cjs"),B=require("../primitives/providers/widget-provider.cjs"),n=require("../primitives/providers/sidebar-chat-provider.cjs"),s=require("../primitives/providers/chat-bubble-provider.cjs"),y=require("../primitives/components/factory.cjs"),J=require("../primitives/components/embedded-chat.cjs"),X=require("../primitives/components/sidebar-chat/index.cjs"),E=require("../primitives/components/embedded-chat/chat-provider.cjs"),Y=require("../primitives/components/embedded-search.cjs"),h=require("../primitives/components/embedded-search/search-provider.cjs"),Z=require("../primitives/components/modal.cjs"),F=require("../primitives/components/modal/modal-provider.cjs"),ee=require("../primitives/components/chat-button.cjs"),re=require("../primitives/components/searchbar.cjs"),oe=require("../primitives/components/chat-bubble/index.cjs"),te=require("../primitives/components/data-summaries.cjs"),ae=require("../primitives/components/chat-history/index.cjs"),de=require("../primitives/hooks/use-boolean.cjs"),ne=require("../primitives/hooks/use-component-classnames.cjs"),se=require("../primitives/hooks/use-container-size.cjs"),ie=require("../primitives/hooks/use-inkeep-open-state.cjs"),ue=require("../primitives/hooks/use-copy-to-clipboard.cjs"),me=require("../primitives/hooks/use-instant-update.cjs"),ce=require("../primitives/hooks/use-is-mounted.cjs"),Ce=require("../primitives/hooks/use-media-query.cjs"),he=require("../primitives/hooks/use-resize-observer.cjs"),w=require("../primitives/hooks/use-scrolling-fades.cjs"),le=require("../primitives/hooks/use-settle-action.cjs"),pe=require("../primitives/hooks/use-simple-scroll.cjs"),o=require("../primitives/utils/misc.cjs"),e=require("../primitives/utils/component-ids.cjs"),f=require("../primitives/utils/compose-refs.cjs"),Ie=require("../primitives/utils/merge-props.cjs"),Se=require("../primitives/atoms/portal.cjs"),be=require("../primitives/atoms/icons/custom-icon.cjs"),Pe=require("../primitives/atoms/icons/built-in-icon-renderer.cjs"),ve=require("../primitives/atoms/portal-with-theme.cjs"),r=require("../primitives/atoms/cmdk/index.cjs"),qe=require("../primitives/atoms/error-boundary.cjs"),t=require("../color-mode/index.cjs"),i=require("../primitives/atoms/shadow/context.cjs");exports.InkeepEmbeddedChat=a.InkeepEmbeddedChat;exports.InkeepEmbeddedChatImpl=a.InkeepEmbeddedChatImpl;exports.InkeepEmbeddedChatImplContent=a.InkeepEmbeddedChatImplContent;exports.InkeepEmbeddedChatProvider=a.InkeepEmbeddedChatProvider;exports.InkeepSidebarChat=H.InkeepSidebarChat;exports.InkeepEmbeddedSearchAndChat=l.InkeepEmbeddedSearchAndChat;exports.InkeepEmbeddedSearchAndChatImpl=l.InkeepEmbeddedSearchAndChatImpl;exports.InkeepEmbeddedSearch=d.InkeepEmbeddedSearch;exports.InkeepEmbeddedSearchImpl=d.InkeepEmbeddedSearchImpl;exports.InkeepEmbeddedSearchImplContent=d.InkeepEmbeddedSearchImplContent;exports.InkeepEmbeddedSearchProvider=d.InkeepEmbeddedSearchProvider;exports.InkeepModalChat=R.InkeepModalChat;exports.InkeepModalSearchAndChat=T.InkeepModalSearchAndChat;exports.InkeepModalSearch=A.InkeepModalSearch;exports.InkeepModal=p.InkeepModal;exports.ModalContent=p.ModalContent;exports.ChatButtonImpl=I.ChatButtonImpl;exports.InkeepChatButton=I.InkeepChatButton;exports.InkeepChatButtonModal=D.InkeepChatButtonModal;exports.InkeepSearchBar=S.InkeepSearchBar;exports.SearchBarImpl=S.SearchBarImpl;exports.EmbeddedChat=$;exports.ChatHistory=O;exports.SidebarChat=W;exports.ChatBubble=x;exports.EmbeddedSearch=z;exports.Modal=L;exports.ChatButton=j;exports.SearchBar=G;exports.Shadow=Q.Shadow;exports.LoadingIndicator=U.LoadingIndicator;exports.widgetToggle=_.widgetToggle;exports.DefaultToolComponent=b.DefaultToolComponent;exports.EmbeddedChatMessagePart=b.EmbeddedChatMessagePart;exports.DataSummaryGroup=K.DataSummaryGroup;exports.BaseEventsProvider=P.BaseEventsProvider;exports.useBaseEvents=P.useBaseEvents;exports.ChatFormProvider=u.ChatFormProvider;exports.useChatForm=u.useChatForm;exports.useChatFormState=u.useChatFormState;exports.ChatHistoryProvider=v.ChatHistoryProvider;exports.useChatHistory=v.useChatHistory;exports.InkeepConfigProvider=m.InkeepConfigProvider;exports.WebWidgetInteractionType=m.WebWidgetInteractionType;exports.useInkeepConfig=m.useInkeepConfig;exports.FeedbackProvider=q.FeedbackProvider;exports.useMessageFeedback=q.useMessageFeedback;exports.FormFieldProvider=k.FormFieldProvider;exports.useFormField=k.useFormField;exports.HelpMenuProvider=c.HelpMenuProvider;exports.useHelpMenu=c.useHelpMenu;exports.useHelpMenuState=c.useHelpMenuState;exports.ChatMarkdownProvider=M.ChatMarkdownProvider;exports.useChatMarkdown=M.useChatMarkdown;exports.MessageProvider=C.MessageProvider;exports.useMessage=C.useMessage;exports.useOptionalMessage=C.useOptionalMessage;exports.RootProvider=N.RootProvider;exports.SourceItemProvider=g.SourceItemProvider;exports.useSourceItem=g.useSourceItem;exports.ThemeProvider=V.ThemeProvider;exports.WidgetProvider=B.WidgetProvider;exports.useWidget=B.useWidget;exports.SidebarChatProvider=n.SidebarChatProvider;exports.useInkeepSidebarChat=n.useInkeepSidebarChat;exports.useOptionalSidebarChat=n.useOptionalSidebarChat;exports.useSidebarChat=n.useSidebarChat;exports.ChatBubbleProvider=s.ChatBubbleProvider;exports.useChatBubble=s.useChatBubble;exports.useInkeepChatBubble=s.useInkeepChatBubble;exports.useOptionalChatBubble=s.useOptionalChatBubble;exports.ikp=y.ikp;exports.jsxFactory=y.jsxFactory;exports.EmbeddedChatPrimitive=J;exports.SidebarChatPrimitive=X;exports.ChatProvider=E.ChatProvider;exports.useChat=E.useChat;exports.EmbeddedSearchPrimitive=Y;exports.SearchProvider=h.SearchProvider;exports.SearchProviderImpl=h.SearchProviderImpl;exports.useSearch=h.useSearch;exports.ModalPrimitive=Z;exports.ModalProvider=F.ModalProvider;exports.useModal=F.useModal;exports.ChatButtonPrimitive=ee;exports.SearchBarPrimitive=re;exports.ChatBubblePrimitive=oe;exports.DataSummaryPrimitive=te;exports.ChatHistoryPrimitive=ae;exports.useBoolean=de.useBoolean;exports.useComponentClassNames=ne.useComponentClassNames;exports.useContainerSize=se.useContainerSize;exports.useInkeepOpenState=ie.useInkeepOpenState;exports.useCopyToClipboard=ue.useCopyToClipboard;exports.useInstantUpdate=me.useInstantUpdate;exports.useIsMounted=ce.useIsMounted;exports.useMediaQuery=Ce.useMediaQuery;exports.useResizeObserver=he.useResizeObserver;exports.useScrollingFades=w.useScrollingFades;exports.useScrollingFadesHorizontal=w.useScrollingFadesHorizontal;exports.useSettleAction=le.useSettleAction;exports.useSimpleScroll=pe.useSimpleScroll;exports.callAll=o.callAll;exports.dataAttr=o.dataAttr;exports.getInitials=o.getInitials;exports.getMessageContent=o.getMessageContent;exports.isString=o.isString;exports.maybeRender=o.maybeRender;exports.toKebabCase=o.toKebabCase;exports.ChatBubbleComponentIds=e.ChatBubbleComponentIds;exports.DataSummaryComponentIds=e.DataSummaryComponentIds;exports.SearchBarComponentIds=e.SearchBarComponentIds;exports.SidebarChatComponentIds=e.SidebarChatComponentIds;exports.aiChatComponentIds=e.aiChatComponentIds;exports.aiChatHistoryComponentIds=e.aiChatHistoryComponentIds;exports.aiSearchComponentIds=e.aiSearchComponentIds;exports.chatButtonComponentIds=e.chatButtonComponentIds;exports.componentIDs=e.componentIDs;exports.markDownComponentIds=e.markDownComponentIds;exports.miscellanousComponentIds=e.miscellanousComponentIds;exports.modalComponentIds=e.modalComponentIds;exports.composeRefs=f.composeRefs;exports.useComposedRefs=f.useComposedRefs;exports.mergeProps=Ie.mergeProps;exports.Portal=Se.Portal;exports.CustomIcon=be.CustomIcon;exports.BuiltInIconRenderer=Pe.BuiltInIconRenderer;exports.PortalWithTheme=ve.PortalWithTheme;exports.Command=r.Command;exports.CommandDialog=r.CommandDialog;exports.CommandEmpty=r.CommandEmpty;exports.CommandInput=r.CommandInput;exports.CommandItem=r.CommandItem;exports.CommandList=r.CommandList;exports.CommandLoading=r.CommandLoading;exports.CommandRoot=r.CommandRoot;exports.CommandSeparator=r.CommandSeparator;exports.defaultFilter=r.defaultFilter;exports.useCommandState=r.useCommandState;exports.useCommandStore=r.useCommandStore;exports.ErrorBoundary=qe.ErrorBoundary;exports.ColorMode=t.ColorMode;exports.ColorModeProvider=t.ColorModeProvider;exports.DarkModeProvider=t.DarkModeProvider;exports.useColorMode=t.useColorMode;exports.useColorModeValue=t.useColorModeValue;exports.InkeepShadow=i.InkeepShadow;exports.InkeepShadowProvider=i.InkeepShadowProvider;exports.ShadowContext=i.ShadowContext;exports.useShadow=i.useShadow;
@@ -3,7 +3,7 @@ import { InkeepSidebarChat as M } from "./sidebar-chat.js";
3
3
  import { InkeepEmbeddedSearchAndChat as g, InkeepEmbeddedSearchAndChatImpl as E } from "./embedded-search-and-chat.js";
4
4
  import { InkeepEmbeddedSearch as F, InkeepEmbeddedSearchImpl as H, InkeepEmbeddedSearchImplContent as w, InkeepEmbeddedSearchProvider as D } from "./embedded-search.js";
5
5
  import { InkeepModalChat as $ } from "./modal.chat.js";
6
- import { InkeepModalSearchAndChat as O } from "./modal.search-and-chat.js";
6
+ import { InkeepModalSearchAndChat as T } from "./modal.search-and-chat.js";
7
7
  import { InkeepModalSearch as W } from "./modal.search.js";
8
8
  import { InkeepModal as L, ModalContent as j } from "./modal.js";
9
9
  import { ChatButtonImpl as K, InkeepChatButton as N } from "./chat-button.js";
@@ -20,106 +20,105 @@ import * as p from "../styled/components/searchbar.js";
20
20
  import { Shadow as Y } from "../styled/components/shadow.js";
21
21
  import { LoadingIndicator as _ } from "../styled/components/loading-indicator.js";
22
22
  import { widgetToggle as oe } from "../styled/components/ui/recipes/widget-toggle.js";
23
- import { EmbeddedChatMessagePart as te } from "../styled/components/message.js";
24
- import { DataSummaryGroup as me } from "../styled/components/data-summary-group.js";
25
- import { BaseEventsProvider as pe, useBaseEvents as se } from "../primitives/providers/base-events-provider.js";
26
- import { ChatFormProvider as ne, useChatForm as Ce, useChatFormState as he } from "../primitives/providers/chat-form-provider.js";
27
- import { ChatHistoryProvider as xe, useChatHistory as ue } from "../primitives/providers/chat-history-provider.js";
28
- import { InkeepConfigProvider as Ie, WebWidgetInteractionType as be, useInkeepConfig as Se } from "../primitives/providers/config-provider.js";
29
- import { FeedbackItemProvider as Pe, useFeedbackItem as ve } from "../primitives/providers/feedback-item-provider.js";
30
- import { FeedbackProvider as Me, useMessageFeedback as Be } from "../primitives/providers/feedback-provider.js";
31
- import { FormFieldProvider as Ee, useFormField as ye } from "../primitives/providers/form-field-provider.js";
32
- import { HelpMenuProvider as He, useHelpMenu as we, useHelpMenuState as De } from "../primitives/providers/help-menu-provider.js";
33
- import { ChatMarkdownProvider as $e, useChatMarkdown as Ae } from "../primitives/providers/markdown-provider.js";
34
- import { MessageProvider as Te, useMessage as We, useOptionalMessage as ze } from "../primitives/providers/message-provider.js";
35
- import { RootProvider as je } from "../primitives/providers/root-provider.js";
36
- import { SourceItemProvider as Ke, useSourceItem as Ne } from "../primitives/providers/source-item-provider.js";
37
- import { ThemeProvider as Ue } from "../primitives/providers/theme-provider.js";
38
- import { WidgetProvider as qe, useWidget as Je } from "../primitives/providers/widget-provider.js";
39
- import { SidebarChatProvider as Ye, useInkeepSidebarChat as Ze, useOptionalSidebarChat as _e, useSidebarChat as eo } from "../primitives/providers/sidebar-chat-provider.js";
40
- import { ChatBubbleProvider as ro, useChatBubble as to, useInkeepChatBubble as ao, useOptionalChatBubble as mo } from "../primitives/providers/chat-bubble-provider.js";
41
- import { ikp as so, jsxFactory as io } from "../primitives/components/factory.js";
23
+ import { DefaultToolComponent as te, EmbeddedChatMessagePart as ae } from "../styled/components/message.js";
24
+ import { DataSummaryGroup as de } from "../styled/components/data-summary-group.js";
25
+ import { BaseEventsProvider as se, useBaseEvents as ie } from "../primitives/providers/base-events-provider.js";
26
+ import { ChatFormProvider as Ce, useChatForm as he, useChatFormState as fe } from "../primitives/providers/chat-form-provider.js";
27
+ import { ChatHistoryProvider as ue, useChatHistory as le } from "../primitives/providers/chat-history-provider.js";
28
+ import { InkeepConfigProvider as be, WebWidgetInteractionType as Se, useInkeepConfig as ce } from "../primitives/providers/config-provider.js";
29
+ import { FeedbackProvider as ve, useMessageFeedback as ke } from "../primitives/providers/feedback-provider.js";
30
+ import { FormFieldProvider as Be, useFormField as ge } from "../primitives/providers/form-field-provider.js";
31
+ import { HelpMenuProvider as ye, useHelpMenu as Fe, useHelpMenuState as He } from "../primitives/providers/help-menu-provider.js";
32
+ import { ChatMarkdownProvider as De, useChatMarkdown as Re } from "../primitives/providers/markdown-provider.js";
33
+ import { MessageProvider as Ae, useMessage as Te, useOptionalMessage as Oe } from "../primitives/providers/message-provider.js";
34
+ import { RootProvider as ze } from "../primitives/providers/root-provider.js";
35
+ import { SourceItemProvider as je, useSourceItem as Ge } from "../primitives/providers/source-item-provider.js";
36
+ import { ThemeProvider as Ne } from "../primitives/providers/theme-provider.js";
37
+ import { WidgetProvider as Ue, useWidget as Ve } from "../primitives/providers/widget-provider.js";
38
+ import { SidebarChatProvider as Je, useInkeepSidebarChat as Xe, useOptionalSidebarChat as Ye, useSidebarChat as Ze } from "../primitives/providers/sidebar-chat-provider.js";
39
+ import { ChatBubbleProvider as eo, useChatBubble as oo, useInkeepChatBubble as ro, useOptionalChatBubble as to } from "../primitives/providers/chat-bubble-provider.js";
40
+ import { ikp as mo, jsxFactory as po } from "../primitives/components/factory.js";
42
41
  import * as s from "../primitives/components/embedded-chat.js";
43
42
  import * as i from "../primitives/components/sidebar-chat/index.js";
44
- import { ChatProvider as Co, useChat as ho } from "../primitives/components/embedded-chat/chat-provider.js";
43
+ import { ChatProvider as io, useChat as no } from "../primitives/components/embedded-chat/chat-provider.js";
45
44
  import * as n from "../primitives/components/embedded-search.js";
46
- import { SearchProvider as xo, SearchProviderImpl as uo, useSearch as lo } from "../primitives/components/embedded-search/search-provider.js";
45
+ import { SearchProvider as ho, SearchProviderImpl as fo, useSearch as xo } from "../primitives/components/embedded-search/search-provider.js";
47
46
  import * as C from "../primitives/components/modal.js";
48
- import { ModalProvider as bo, useModal as So } from "../primitives/components/modal/modal-provider.js";
47
+ import { ModalProvider as lo, useModal as Io } from "../primitives/components/modal/modal-provider.js";
49
48
  import * as h from "../primitives/components/chat-button.js";
50
49
  import * as f from "../primitives/components/searchbar.js";
51
50
  import * as x from "../primitives/components/chat-bubble/index.js";
52
51
  import * as u from "../primitives/components/data-summaries.js";
53
52
  import * as l from "../primitives/components/chat-history/index.js";
54
- import { useBoolean as Po } from "../primitives/hooks/use-boolean.js";
55
- import { useComponentClassNames as ko } from "../primitives/hooks/use-component-classnames.js";
56
- import { useContainerSize as Bo } from "../primitives/hooks/use-container-size.js";
57
- import { useInkeepOpenState as Eo } from "../primitives/hooks/use-inkeep-open-state.js";
58
- import { useCopyToClipboard as Fo } from "../primitives/hooks/use-copy-to-clipboard.js";
59
- import { useInstantUpdate as wo } from "../primitives/hooks/use-instant-update.js";
60
- import { useIsMounted as Ro } from "../primitives/hooks/use-is-mounted.js";
61
- import { useMediaQuery as Ao } from "../primitives/hooks/use-media-query.js";
62
- import { useResizeObserver as To } from "../primitives/hooks/use-resize-observer.js";
63
- import { useScrollingFades as zo, useScrollingFadesHorizontal as Lo } from "../primitives/hooks/use-scrolling-fades.js";
64
- import { useSettleAction as Go } from "../primitives/hooks/use-settle-action.js";
65
- import { useSimpleScroll as No } from "../primitives/hooks/use-simple-scroll.js";
66
- import { callAll as Uo, dataAttr as Vo, getInitials as qo, getMessageContent as Jo, isString as Xo, maybeRender as Yo, toKebabCase as Zo } from "../primitives/utils/misc.js";
67
- import { ChatBubbleComponentIds as er, DataSummaryComponentIds as or, SearchBarComponentIds as rr, SidebarChatComponentIds as tr, aiChatComponentIds as ar, aiChatHistoryComponentIds as mr, aiSearchComponentIds as dr, chatButtonComponentIds as pr, componentIDs as sr, markDownComponentIds as ir, miscellanousComponentIds as nr, modalComponentIds as Cr } from "../primitives/utils/component-ids.js";
68
- import { composeRefs as fr, useComposedRefs as xr } from "../primitives/utils/compose-refs.js";
69
- import { mergeProps as lr } from "../primitives/utils/merge-props.js";
70
- import { Portal as br } from "../primitives/atoms/portal.js";
71
- import { CustomIcon as cr } from "../primitives/atoms/icons/custom-icon.js";
72
- import { BuiltInIconRenderer as vr } from "../primitives/atoms/icons/built-in-icon-renderer.js";
73
- import { PortalWithTheme as Mr } from "../primitives/atoms/portal-with-theme.js";
74
- import { Command as gr, CommandDialog as Er, CommandEmpty as yr, CommandInput as Fr, CommandItem as Hr, CommandList as wr, CommandLoading as Dr, CommandRoot as Rr, CommandSeparator as $r, defaultFilter as Ar, useCommandState as Or, useCommandStore as Tr } from "../primitives/atoms/cmdk/index.js";
75
- import { ErrorBoundary as zr } from "../primitives/atoms/error-boundary.js";
76
- import { ColorMode as jr, ColorModeProvider as Gr, DarkModeProvider as Kr, useColorMode as Nr, useColorModeValue as Qr } from "../color-mode/index.js";
77
- import { InkeepShadow as Vr, InkeepShadowProvider as qr, ShadowContext as Jr, useShadow as Xr } from "../primitives/atoms/shadow/context.js";
53
+ import { useBoolean as So } from "../primitives/hooks/use-boolean.js";
54
+ import { useComponentClassNames as Po } from "../primitives/hooks/use-component-classnames.js";
55
+ import { useContainerSize as ko } from "../primitives/hooks/use-container-size.js";
56
+ import { useInkeepOpenState as Bo } from "../primitives/hooks/use-inkeep-open-state.js";
57
+ import { useCopyToClipboard as Eo } from "../primitives/hooks/use-copy-to-clipboard.js";
58
+ import { useInstantUpdate as Fo } from "../primitives/hooks/use-instant-update.js";
59
+ import { useIsMounted as wo } from "../primitives/hooks/use-is-mounted.js";
60
+ import { useMediaQuery as Ro } from "../primitives/hooks/use-media-query.js";
61
+ import { useResizeObserver as Ao } from "../primitives/hooks/use-resize-observer.js";
62
+ import { useScrollingFades as Oo, useScrollingFadesHorizontal as Wo } from "../primitives/hooks/use-scrolling-fades.js";
63
+ import { useSettleAction as Lo } from "../primitives/hooks/use-settle-action.js";
64
+ import { useSimpleScroll as Go } from "../primitives/hooks/use-simple-scroll.js";
65
+ import { callAll as No, dataAttr as Qo, getInitials as Uo, getMessageContent as Vo, isString as qo, maybeRender as Jo, toKebabCase as Xo } from "../primitives/utils/misc.js";
66
+ import { ChatBubbleComponentIds as Zo, DataSummaryComponentIds as _o, SearchBarComponentIds as er, SidebarChatComponentIds as or, aiChatComponentIds as rr, aiChatHistoryComponentIds as tr, aiSearchComponentIds as ar, chatButtonComponentIds as mr, componentIDs as dr, markDownComponentIds as pr, miscellanousComponentIds as sr, modalComponentIds as ir } from "../primitives/utils/component-ids.js";
67
+ import { composeRefs as Cr, useComposedRefs as hr } from "../primitives/utils/compose-refs.js";
68
+ import { mergeProps as xr } from "../primitives/utils/merge-props.js";
69
+ import { Portal as lr } from "../primitives/atoms/portal.js";
70
+ import { CustomIcon as br } from "../primitives/atoms/icons/custom-icon.js";
71
+ import { BuiltInIconRenderer as cr } from "../primitives/atoms/icons/built-in-icon-renderer.js";
72
+ import { PortalWithTheme as vr } from "../primitives/atoms/portal-with-theme.js";
73
+ import { Command as Mr, CommandDialog as Br, CommandEmpty as gr, CommandInput as Er, CommandItem as yr, CommandList as Fr, CommandLoading as Hr, CommandRoot as wr, CommandSeparator as Dr, defaultFilter as Rr, useCommandState as $r, useCommandStore as Ar } from "../primitives/atoms/cmdk/index.js";
74
+ import { ErrorBoundary as Or } from "../primitives/atoms/error-boundary.js";
75
+ import { ColorMode as zr, ColorModeProvider as Lr, DarkModeProvider as jr, useColorMode as Gr, useColorModeValue as Kr } from "../color-mode/index.js";
76
+ import { InkeepShadow as Qr, InkeepShadowProvider as Ur, ShadowContext as Vr, useShadow as qr } from "../primitives/atoms/shadow/context.js";
78
77
  export {
79
- pe as BaseEventsProvider,
80
- vr as BuiltInIconRenderer,
78
+ se as BaseEventsProvider,
79
+ cr as BuiltInIconRenderer,
81
80
  t as ChatBubble,
82
- er as ChatBubbleComponentIds,
81
+ Zo as ChatBubbleComponentIds,
83
82
  x as ChatBubblePrimitive,
84
- ro as ChatBubbleProvider,
83
+ eo as ChatBubbleProvider,
85
84
  d as ChatButton,
86
85
  K as ChatButtonImpl,
87
86
  h as ChatButtonPrimitive,
88
- ne as ChatFormProvider,
87
+ Ce as ChatFormProvider,
89
88
  o as ChatHistory,
90
89
  l as ChatHistoryPrimitive,
91
- xe as ChatHistoryProvider,
92
- $e as ChatMarkdownProvider,
93
- Co as ChatProvider,
94
- jr as ColorMode,
95
- Gr as ColorModeProvider,
96
- gr as Command,
97
- Er as CommandDialog,
98
- yr as CommandEmpty,
99
- Fr as CommandInput,
100
- Hr as CommandItem,
101
- wr as CommandList,
102
- Dr as CommandLoading,
103
- Rr as CommandRoot,
104
- $r as CommandSeparator,
105
- cr as CustomIcon,
106
- Kr as DarkModeProvider,
107
- or as DataSummaryComponentIds,
108
- me as DataSummaryGroup,
90
+ ue as ChatHistoryProvider,
91
+ De as ChatMarkdownProvider,
92
+ io as ChatProvider,
93
+ zr as ColorMode,
94
+ Lr as ColorModeProvider,
95
+ Mr as Command,
96
+ Br as CommandDialog,
97
+ gr as CommandEmpty,
98
+ Er as CommandInput,
99
+ yr as CommandItem,
100
+ Fr as CommandList,
101
+ Hr as CommandLoading,
102
+ wr as CommandRoot,
103
+ Dr as CommandSeparator,
104
+ br as CustomIcon,
105
+ jr as DarkModeProvider,
106
+ _o as DataSummaryComponentIds,
107
+ de as DataSummaryGroup,
109
108
  u as DataSummaryPrimitive,
109
+ te as DefaultToolComponent,
110
110
  e as EmbeddedChat,
111
- te as EmbeddedChatMessagePart,
111
+ ae as EmbeddedChatMessagePart,
112
112
  s as EmbeddedChatPrimitive,
113
113
  a as EmbeddedSearch,
114
114
  n as EmbeddedSearchPrimitive,
115
- zr as ErrorBoundary,
116
- Pe as FeedbackItemProvider,
117
- Me as FeedbackProvider,
118
- Ee as FormFieldProvider,
119
- He as HelpMenuProvider,
115
+ Or as ErrorBoundary,
116
+ ve as FeedbackProvider,
117
+ Be as FormFieldProvider,
118
+ ye as HelpMenuProvider,
120
119
  N as InkeepChatButton,
121
120
  U as InkeepChatButtonModal,
122
- Ie as InkeepConfigProvider,
121
+ be as InkeepConfigProvider,
123
122
  S as InkeepEmbeddedChat,
124
123
  c as InkeepEmbeddedChatImpl,
125
124
  P as InkeepEmbeddedChatImplContent,
@@ -133,98 +132,97 @@ export {
133
132
  L as InkeepModal,
134
133
  $ as InkeepModalChat,
135
134
  W as InkeepModalSearch,
136
- O as InkeepModalSearchAndChat,
135
+ T as InkeepModalSearchAndChat,
137
136
  q as InkeepSearchBar,
138
- Vr as InkeepShadow,
139
- qr as InkeepShadowProvider,
137
+ Qr as InkeepShadow,
138
+ Ur as InkeepShadowProvider,
140
139
  M as InkeepSidebarChat,
141
140
  _ as LoadingIndicator,
142
- Te as MessageProvider,
141
+ Ae as MessageProvider,
143
142
  m as Modal,
144
143
  j as ModalContent,
145
144
  C as ModalPrimitive,
146
- bo as ModalProvider,
147
- br as Portal,
148
- Mr as PortalWithTheme,
149
- je as RootProvider,
145
+ lo as ModalProvider,
146
+ lr as Portal,
147
+ vr as PortalWithTheme,
148
+ ze as RootProvider,
150
149
  p as SearchBar,
151
- rr as SearchBarComponentIds,
150
+ er as SearchBarComponentIds,
152
151
  J as SearchBarImpl,
153
152
  f as SearchBarPrimitive,
154
- xo as SearchProvider,
155
- uo as SearchProviderImpl,
153
+ ho as SearchProvider,
154
+ fo as SearchProviderImpl,
156
155
  Y as Shadow,
157
- Jr as ShadowContext,
156
+ Vr as ShadowContext,
158
157
  r as SidebarChat,
159
- tr as SidebarChatComponentIds,
158
+ or as SidebarChatComponentIds,
160
159
  i as SidebarChatPrimitive,
161
- Ye as SidebarChatProvider,
162
- Ke as SourceItemProvider,
163
- Ue as ThemeProvider,
164
- be as WebWidgetInteractionType,
165
- qe as WidgetProvider,
166
- ar as aiChatComponentIds,
167
- mr as aiChatHistoryComponentIds,
168
- dr as aiSearchComponentIds,
169
- Uo as callAll,
170
- pr as chatButtonComponentIds,
171
- sr as componentIDs,
172
- fr as composeRefs,
173
- Vo as dataAttr,
174
- Ar as defaultFilter,
175
- qo as getInitials,
176
- Jo as getMessageContent,
177
- so as ikp,
178
- Xo as isString,
179
- io as jsxFactory,
180
- ir as markDownComponentIds,
181
- Yo as maybeRender,
182
- lr as mergeProps,
183
- nr as miscellanousComponentIds,
184
- Cr as modalComponentIds,
185
- Zo as toKebabCase,
186
- se as useBaseEvents,
187
- Po as useBoolean,
188
- ho as useChat,
189
- to as useChatBubble,
190
- Ce as useChatForm,
191
- he as useChatFormState,
192
- ue as useChatHistory,
193
- Ae as useChatMarkdown,
194
- Nr as useColorMode,
195
- Qr as useColorModeValue,
196
- Or as useCommandState,
197
- Tr as useCommandStore,
198
- ko as useComponentClassNames,
199
- xr as useComposedRefs,
200
- Bo as useContainerSize,
201
- Fo as useCopyToClipboard,
202
- ve as useFeedbackItem,
203
- ye as useFormField,
204
- we as useHelpMenu,
205
- De as useHelpMenuState,
206
- ao as useInkeepChatBubble,
207
- Se as useInkeepConfig,
208
- Eo as useInkeepOpenState,
209
- Ze as useInkeepSidebarChat,
210
- wo as useInstantUpdate,
211
- Ro as useIsMounted,
212
- Ao as useMediaQuery,
213
- We as useMessage,
214
- Be as useMessageFeedback,
215
- So as useModal,
216
- mo as useOptionalChatBubble,
217
- ze as useOptionalMessage,
218
- _e as useOptionalSidebarChat,
219
- To as useResizeObserver,
220
- zo as useScrollingFades,
221
- Lo as useScrollingFadesHorizontal,
222
- lo as useSearch,
223
- Go as useSettleAction,
224
- Xr as useShadow,
225
- eo as useSidebarChat,
226
- No as useSimpleScroll,
227
- Ne as useSourceItem,
228
- Je as useWidget,
160
+ Je as SidebarChatProvider,
161
+ je as SourceItemProvider,
162
+ Ne as ThemeProvider,
163
+ Se as WebWidgetInteractionType,
164
+ Ue as WidgetProvider,
165
+ rr as aiChatComponentIds,
166
+ tr as aiChatHistoryComponentIds,
167
+ ar as aiSearchComponentIds,
168
+ No as callAll,
169
+ mr as chatButtonComponentIds,
170
+ dr as componentIDs,
171
+ Cr as composeRefs,
172
+ Qo as dataAttr,
173
+ Rr as defaultFilter,
174
+ Uo as getInitials,
175
+ Vo as getMessageContent,
176
+ mo as ikp,
177
+ qo as isString,
178
+ po as jsxFactory,
179
+ pr as markDownComponentIds,
180
+ Jo as maybeRender,
181
+ xr as mergeProps,
182
+ sr as miscellanousComponentIds,
183
+ ir as modalComponentIds,
184
+ Xo as toKebabCase,
185
+ ie as useBaseEvents,
186
+ So as useBoolean,
187
+ no as useChat,
188
+ oo as useChatBubble,
189
+ he as useChatForm,
190
+ fe as useChatFormState,
191
+ le as useChatHistory,
192
+ Re as useChatMarkdown,
193
+ Gr as useColorMode,
194
+ Kr as useColorModeValue,
195
+ $r as useCommandState,
196
+ Ar as useCommandStore,
197
+ Po as useComponentClassNames,
198
+ hr as useComposedRefs,
199
+ ko as useContainerSize,
200
+ Eo as useCopyToClipboard,
201
+ ge as useFormField,
202
+ Fe as useHelpMenu,
203
+ He as useHelpMenuState,
204
+ ro as useInkeepChatBubble,
205
+ ce as useInkeepConfig,
206
+ Bo as useInkeepOpenState,
207
+ Xe as useInkeepSidebarChat,
208
+ Fo as useInstantUpdate,
209
+ wo as useIsMounted,
210
+ Ro as useMediaQuery,
211
+ Te as useMessage,
212
+ ke as useMessageFeedback,
213
+ Io as useModal,
214
+ to as useOptionalChatBubble,
215
+ Oe as useOptionalMessage,
216
+ Ye as useOptionalSidebarChat,
217
+ Ao as useResizeObserver,
218
+ Oo as useScrollingFades,
219
+ Wo as useScrollingFadesHorizontal,
220
+ xo as useSearch,
221
+ Lo as useSettleAction,
222
+ qr as useShadow,
223
+ Ze as useSidebarChat,
224
+ Go as useSimpleScroll,
225
+ Ge as useSourceItem,
226
+ Ve as useWidget,
229
227
  oe as widgetToggle
230
228
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),M=require("../../primitives/providers/chat-history-provider.cjs"),j=require("../../primitives/providers/config-provider.cjs"),a=require("../../primitives/components/embedded-chat.cjs"),N=require("../../primitives/components/embedded-chat/chat-provider.cjs"),S=require("../../primitives/hooks/use-resize-observer.cjs"),A=require("../../primitives/utils/compose-refs.cjs"),T=require("./ui/recipes/ai-chat-page-wrapper.cjs"),i=require("./ui/recipes/button.cjs"),C=require("./ui/recipes/checkbox.cjs"),m=require("./ui/recipes/citation.cjs"),n=require("./ui/recipes/combobox.cjs"),H=require("./ui/recipes/icon.cjs"),p=require("./ui/recipes/input.cjs"),b=require("./ui/recipes/modal.cjs"),u=require("./ui/recipes/popover.cjs"),g=require("./ui/recipes/scrollable.cjs"),h=require("./ui/recipes/select.cjs"),L=require("class-variance-authority"),D=require("merge-anything"),l=require("react"),o=require("../utils.cjs"),q=require("./ui/markdown-styles.cjs"),B=require("./loading-indicator.cjs"),z=require("../../primitives/components/tagline-logo-icon.cjs"),_=require("./embedded-chat/session-loading.cjs"),W=require("./message.cjs"),r=require("./embedded-chat/file-upload-input.cjs"),c=require("./embedded-chat/image-preview-modal.cjs"),R=require("../../primitives/components/embedded-chat/file-upload-input.cjs"),Q=N.ChatProvider,V=l.forwardRef(({className:e,size:t,variant:s,...F},x)=>d.jsx(a.EmbeddedChatPrimitiveWrapper,{ref:x,className:o.cn(T.aiChatPageWrapper({size:t,variant:s}),"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]","group/chat-history","data-[chat-history-layout=sidepane]:flex-row",e),...F})),O=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveRoot,{className:o.cn(g.scrollable({section:"wrapper"}),"rounded-[inherit] font-body","group-data-[chat-history-layout=sidepane]/chat-history:flex-1","group-data-[chat-history-layout=sidepane]/chat-history:min-w-0","group-data-[stack-history-open]/chat-history:!hidden",e),...t}),U=({className:e,...t})=>d.jsx(a.Header,{className:o.cn(g.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}),G=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHeaderToolbar,{className:o.cn("flex items-center gap-3 w-full","px-5 py-2 pt-3 justify-between *:m-0",'data-[show-widget-toggle=""]:pt-4',e),...t}),K=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveToolbarHeaderWrapper,{className:o.cn("flex items-center gap-1.5",e),...t}),Z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveToolbarHeader,{className:o.cn("text-gray-600 dark:text-gray-dark-100 text-sm",e),...t}),E=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatHistoryButtonIcon,{className:o.cn("text-sm",e),...t}),f=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatHistoryButton,{className:o.cn(i.button({size:"xs",variant:"ghost"}),"gap-1.5 text-gray-600 hover:text-gray-800 dark:text-white dark:opacity-60 dark:hover:text-white dark:hover:opacity-95",e),...t}),$=()=>{const{aiChatSettings:e}=j.useInkeepConfig(),{setIsOpen:t,isOpen:s}=M.useChatHistory();return e.isChatHistoryButtonVisible?d.jsxs(f,{onClick:()=>t(!s),"aria-label":"Chat history",children:[d.jsx(E,{iconKey:"chatHistoryPanel",className:"!hidden group-data-[chat-history-layout=sidepane]/chat-history:!block"}),d.jsxs("span",{className:"flex items-center gap-1.5 group-data-[chat-history-layout=sidepane]/chat-history:hidden",children:[d.jsx(E,{iconKey:"chatHistory"}),"Chat history"]})]}):null},J=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContent,{className:o.cn(g.scrollable({section:"content"}),"justify-end",e),...t}),X=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContentScrollArea,{className:o.cn("overflow-hidden",e),...t}),Y=l.forwardRef(({className:e,...t},s)=>d.jsx(a.EmbeddedChatPrimitiveContentScrollAreaViewport,{ref:s,className:o.cn("h-full w-full rounded-[inherit]","[[data-chat-bubble]_&]:overscroll-contain",e),...t})),ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContentScrollAreaScrollbar,{className:o.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}),te=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContentScrollAreaThumb,{className:o.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),ae=a.EmbeddedChatPrimitiveContentScrollAreaCorner,de=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimer,{className:o.cn("ml-auto text-sm flex items-center gap-1",e),...t}),oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerLabel,{className:o.cn("text-gray-700 dark:text-gray-dark-100",e),...t}),re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerTrigger,{className:o.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}),ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerContent,{className:o.cn(u.popover({slot:"content"}),"px-4 py-2 font-normal text-sm","w-[250px] sm:w-[420px]",e),...t}),se=a.EmbeddedChatPrimitiveDisclaimerText,me=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerArrow,{className:o.cn(u.popover({slot:"arrow"}),e),...t}),ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestions,{className:o.cn("mt-4 flex flex-col gap-2",e),...t}),ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestionsLabel,{className:o.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestionsList,{className:o.cn("flex flex-col","ikp-md:flex-row","flex-wrap gap-2",e),...t}),be=l.forwardRef(({className:e,style:t,...s},F)=>{const x=l.useRef(null),y=A.composeRefs(F,x),{width:P=0,height:w=0}=S.useResizeObserver({ref:x,box:"border-box"}),I=Math.max(w,P);return d.jsx(a.EmbeddedChatPrimitiveExampleQuestion,{ref:y,style:{"--before-size":`${I+100}px`,...t},className:o.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),...s})}),he=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestionButton,{className:o.cn(i.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}),xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessages,{className:o.cn("flex flex-col w-full min-w-0 min-h-0 text-sm relative",e),...t}),k=L.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:o.cn(k(),e),...t}),pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveIntroMessageWrapper,{className:o.cn(k(),e),...t}),ue=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageHeader,{className:o.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}),ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageLoading,{className:o.cn("flex items-center gap-3 h-auto w-full",e),children:d.jsx(B.LoadingIndicator,{}),...t}),Fe=({className:e})=>d.jsx("div",{className:o.cn("w-full",e),children:d.jsx(_.MessagesSessionLoading,{})}),Ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatar,{className:o.cn("flex items-center justify-center rounded-full","h-auto",e),...t}),ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatarContent,{className:o.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}),fe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatarFallback,{className:o.cn("hidden data-[role=user]:block",e),...t}),ke=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatarImage,{className:o.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}),ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageName,{className:o.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}),Pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageContentWrapper,{className:o.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}),we=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageContent,{className:o.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}),Ie=a.EmbeddedChatPrimitiveDynamicComponent,Me=({componentStyles:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMarkdown,{componentStyles:D.merge(q.markdownStyles,e??{}),...t}),je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageToolbar,{className:o.cn("flex items-center mt-2 mb-3",e),...t}),Ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageCustomActions,{className:o.cn("mr-auto flex items-center gap-2",e),...t}),Se=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageCustomAction,{className:o.cn(i.button({size:"xs",variant:"outline"}),"text-xs h-[30px] text-gray-700 dark:text-gray-200 gap-1",e),...t}),Ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAction,{className:o.cn(i.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}),Te=a.EmbeddedChatPrimitiveMessageSources,He=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourcesHeader,{className:o.cn("block text-xs font-medium my-2 text-gray-700 dark:text-gray-dark-300",e),...t}),Le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourcesList,{className:o.cn("w-full relative flex flex-col gap-3 py-[1px]",e),...t}),De=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItem,{className:o.cn(m.citation({slot:"root"}),e),...t}),qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,{className:o.cn(m.citation({slot:"breadcrumbs"}),e),...t}),Be=({className:e,...t})=>d.jsx(a.MessageSourceItemBreadcrumbIcon,{className:o.cn(m.citation({slot:"breadcrumbsIcon"}),e),...t}),ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemIcon,{className:o.cn(m.citation({slot:"icon"}),e),...t}),_e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemTitle,{className:o.cn(m.citation({slot:"title"}),e),...t}),We=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemTag,{className:o.cn(m.citation({slot:"tag"}),e),...t}),Re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemDescription,{className:o.cn(m.citation({slot:"description"}),e),...t}),Qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,{className:o.cn(m.citation({slot:"descriptionPart"}),e),...t}),Ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemIndicator,{className:o.cn(m.citation({slot:"indicator"}),e),...t}),Oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFooter,{className:o.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}),Ue=({className:e,...t})=>d.jsx(R.EmbeddedChatPrimitiveInputFieldset,{className:o.cn("group/fieldset","relative flex flex-col w-full py-1.5 px-2","rounded-lg items-stretch shadow-md dark:shadow-none","bg-gray-50 dark:bg-gray-dark-900",e),...t}),Ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveInputGroup,{className:o.cn("flex items-end",e),...t}),Ke=l.forwardRef(({className:e,...t},s)=>d.jsx(a.EmbeddedChatPrimitiveInput,{ref:s,className:o.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-1 py-1.5 max-h-[200px] overflow-y-auto disabled:cursor-not-allowed",e),...t})),Ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveSendButton,{className:o.cn(i.button({}),"group","bg-transparent relative size-8 min-w-[unset] rounded-lg transition-all ease-linear","text-inkeep-primary-medium dark:text-inkeep-expanded-primary-500","active:bg-gray-200 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","disabled:cursor-not-allowed hover:disabled:[background:none] active:disabled:[background:none]",e),...t}),$e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveSendButtonIcon,{className:o.cn(H.icon(),"text-inherit group-disabled:opacity-60 ",e),...t}),Je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveActionBar,{className:o.cn("mt-4 flex items-center justify-between flex-wrap-reverse gap-2.5",e),...t}),Xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveActions,{className:o.cn("flex items-center gap-2.5 flex-wrap",e),...t}),Ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineContainer,{className:o.cn("flex items-center whitespace-nowrap",e),...t}),et=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineText,{className:o.cn("text-xs text-gray-500 dark:text-white-alpha-600",e),...t}),tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineLogo,{className:o.cn("inline-flex items-center",e),...t,children:d.jsx(z.default,{className:"text-gray-500 dark:text-white-alpha-600 ml-1 mt-0.5 w-11 h-auto","aria-hidden":"true"})}),v=o.cn(i.button({size:"xs",variant:"outline"}),"text-gray-700 dark:text-white-alpha-700"),at=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatAction,{className:o.cn(v,e),...t}),dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatActionLabel,{className:o.cn("cursor-pointer",e),...t}),ot=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatActionFeedback,{className:o.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,it=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatHelpAction,{className:o.cn(v,e),...t}),st=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsTrigger,{className:o.cn(v,e),...t}),mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenu,{className:o.cn(u.popover({slot:"content"}),"gap-3 px-3 py-4 ","w-[254px] text-sm font-normal",e),...t}),nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenuArrow,{className:o.cn(u.popover({slot:"arrow"}),e),...t}),ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenuItem,{className:o.cn("flex items-center cursor-pointer hover:underline",e),...t}),lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenuItemIcon,{className:o.cn("mr-2 text-inkeep-primary-medium",e),...t}),bt=a.EmbeddedChatPrimitiveFeedbackModal,ht=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalOverlay,{className:o.cn(b.modal({slot:"overlay"}),e),...t}),xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalContent,{className:o.cn(b.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}),Ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalHeader,{className:o.cn(b.modal({slot:"header"}),"px-0 pt-0 pb-8","font-semibold",e),...t}),pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalClose,{className:o.cn(b.modal({slot:"close"}),e),...t}),ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalBody,{className:o.cn(b.modal({slot:"body"}),"p-0",e),...t}),gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackForm,{className:o.cn("flex flex-col gap-8",e),...t}),Ft=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItem,{className:o.cn("flex flex-wrap items-center","gap-[.75rem_0.5rem]",e),...t}),Et=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemCheckbox,{className:o.cn(C.checkbox({slot:"root"}),e),...t}),vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator,{className:o.cn(C.checkbox({slot:"indicator"}),e),...t}),ft=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemLabel,{className:o.cn("select-none cursor-pointer font-medium text-sm","text-gray-700 dark:text-white-alpha-700",e),...t}),kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemDescription,{className:o.cn("flex-[0_0_100%]","min-h-20 border rounded-md","px-3 py-2 text-sm",e),...t}),yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackSubmitButton,{className:o.cn(i.button({variant:"primaryFilled"}),"ml-auto",e),...t}),Pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormWrapper,{className:o.cn("w-full overflow-y-auto [scrollbar-width:thin]",e),...t}),wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveForm,{className:o.cn(g.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}),It=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormClose,{className:o.cn(i.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}),Mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormHeader,{className:o.cn("mt-8 flex flex-col gap-6",e),...t}),jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormHeading,{className:o.cn("font-semibold text-xl leading-5",e),...t}),Nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormDescription,{className:o.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),St=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormContent,{className:o.cn("w-full space-y-8",e),...t}),At=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormField,{className:o.cn("group flex flex-col gap-2 data-[hidden]:hidden","data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:flex-wrap data-[input-type=checkbox]:items-center",e),...t}),Tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldLabel,{className:o.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",'dark:data-[required]:after:[content:"*"]',e),...t}),Ht=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldText,{className:o.cn(p.input({size:"md",variant:"outline"}),e),...t}),Lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldEmail,{className:o.cn(p.input({size:"md",variant:"outline"}),e),...t}),Dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldFile,{className:o.cn(p.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}),qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldTextArea,{className:o.cn(p.input({size:"md",variant:"outline"}),"min-h-20 px-3 py-2 text-sm",e),...t}),Bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldCheckbox,{className:o.cn(C.checkbox({slot:"root"}),e),...t}),zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldCheckboxIndicator,{className:o.cn(C.checkbox({slot:"indicator"}),e),...t}),_t=a.EmbeddedChatPrimitiveFormFieldSelect,Wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectTrigger,{className:o.cn(h.select({slot:"trigger"}),e),...t}),Rt=a.EmbeddedChatPrimitiveFormFieldSelectValue,Qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectIcon,{className:o.cn("h-4 w-4 opacity-45",e),...t}),Vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectContent,{className:o.cn(h.select({slot:"content"}),e),...t}),Ot=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectViewport,{className:o.cn(h.select({slot:"viewport"}),e),...t}),Ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectItem,{className:o.cn(h.select({slot:"item"}),e),...t}),Gt=a.EmbeddedChatPrimitiveFormFieldSelectItemText,Kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectItemIndicator,{className:o.cn(h.select({slot:"itemIndicator"}),e),...t}),Zt=a.EmbeddedChatPrimitiveFormFieldCombobox,$t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxControl,{className:o.cn(n.combobox({slot:"control"}),e),...t}),Jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxPositioner,{className:e,...t}),Xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxInput,{className:o.cn(n.combobox({slot:"input"}),e),...t}),Yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxTrigger,{className:o.cn(n.combobox({slot:"trigger"}),e),...t}),ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxSelectedTags,{className:o.cn(n.combobox({slot:"selectedTags"}),e),...t}),ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxContent,{className:o.cn(n.combobox({slot:"content"}),e),...t}),aa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxList,{className:o.cn(n.combobox({slot:"list"}),e),...t}),da=a.EmbeddedChatPrimitiveFormFieldComboboxListItems,oa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxListEmpty,{className:o.cn(n.combobox({slot:"emptyMessage"}),e),...t}),ra=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxItem,{className:o.cn(n.combobox({slot:"item"}),e),...t}),ia=a.EmbeddedChatPrimitiveFormFieldComboboxItemText,sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxItemIndicator,{className:o.cn(n.combobox({slot:"itemIndicator"}),e),...t}),ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldDescription,{className:o.cn("text-sm text-gray-600 dark:text-white-alpha-600","group-data-[input-type=checkbox]:w-full group-data-[input-type=checkbox]:basis-full",e),...t}),na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldError,{className:o.cn("text-sm flex items-center text-red-500 dark:text-red-300","group-data-[input-type=checkbox]:w-full group-data-[input-type=checkbox]:basis-full",e),...t}),ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormError,{className:o.cn("text-red-500 dark:text-red-300",e),...t}),la=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFooter,{className:o.cn("flex items-center justify-end gap-4 w-full",e),...t}),ba=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormCancel,{className:o.cn(i.button({variant:"outline"}),e),...t}),ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSubmit,{className:o.cn(i.button({variant:"primaryFilled"}),e),...t}),xa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSuccess,{className:o.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}),Ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSuccessHeading,{className:o.cn("mb-6 font-bold tracking-tight","text-3xl md:text-4xl leading-6 md:leading-5",e),...t}),pa=a.EmbeddedChatPrimitiveFormSuccessMessage,ua=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSuccessButton,{className:o.cn(i.button({variant:"primaryFilled"}),"w-full mt-12 gap-2 shrink-0",e),...t});exports.MessagePart=W.EmbeddedChatMessagePart;exports.DropZone=r.EmbeddedChatDropZone;exports.FileContent=r.EmbeddedChatFileContent;exports.FileInput=r.EmbeddedChatFileInput;exports.FileItem=r.EmbeddedChatFileItem;exports.FileList=r.EmbeddedChatFileList;exports.FileName=r.EmbeddedChatFileName;exports.FilePreviewTrigger=r.EmbeddedChatFilePreviewTrigger;exports.FileRemove=r.EmbeddedChatFileRemove;exports.FileThumbnail=r.EmbeddedChatFileThumbnail;exports.FileTypeIcon=r.EmbeddedChatFileTypeIcon;exports.FileUploadButton=r.EmbeddedChatFileUploadButton;exports.InputNotification=r.EmbeddedChatInputNotification;exports.InputNotificationClose=r.EmbeddedChatInputNotificationClose;exports.InputNotificationContent=r.EmbeddedChatInputNotificationContent;exports.InputNotificationHeader=r.EmbeddedChatInputNotificationHeader;exports.InputNotificationMessage=r.EmbeddedChatInputNotificationMessage;exports.InputNotificationTitle=r.EmbeddedChatInputNotificationTitle;exports.MessageFile=r.EmbeddedChatMessageFile;exports.MessageFiles=r.EmbeddedChatMessageFiles;exports.ImagePreviewModal=c.EmbeddedChatImagePreviewModal;exports.ImagePreviewModalClose=c.EmbeddedChatImagePreviewModalClose;exports.ImagePreviewModalContent=c.EmbeddedChatImagePreviewModalContent;exports.ImagePreviewModalFileName=c.EmbeddedChatImagePreviewModalFileName;exports.ImagePreviewModalFooter=c.EmbeddedChatImagePreviewModalFooter;exports.ImagePreviewModalImage=c.EmbeddedChatImagePreviewModalImage;exports.ImagePreviewModalOverlay=c.EmbeddedChatImagePreviewModalOverlay;exports.ActionBar=Je;exports.Actions=Xe;exports.ChatAction=at;exports.ChatActionFeedback=ot;exports.ChatActionLabel=dt;exports.ChatHistoryButton=f;exports.ChatHistoryButtonIcon=E;exports.ChatHistoryTrigger=$;exports.Content=J;exports.ContentScrollArea=X;exports.ContentScrollAreaCorner=ae;exports.ContentScrollAreaScrollbar=ee;exports.ContentScrollAreaThumb=te;exports.ContentScrollAreaViewport=Y;exports.Disclaimer=de;exports.DisclaimerArrow=me;exports.DisclaimerContent=ie;exports.DisclaimerLabel=oe;exports.DisclaimerText=se;exports.DisclaimerTrigger=re;exports.DynamicComponent=Ie;exports.ExampleQuestion=be;exports.ExampleQuestionButton=he;exports.ExampleQuestions=ne;exports.ExampleQuestionsLabel=ce;exports.ExampleQuestionsList=le;exports.FeedbackForm=gt;exports.FeedbackItem=Ft;exports.FeedbackItemCheckbox=Et;exports.FeedbackItemCheckboxIndicator=vt;exports.FeedbackItemDescription=kt;exports.FeedbackItemLabel=ft;exports.FeedbackModal=bt;exports.FeedbackModalBody=ut;exports.FeedbackModalClose=pt;exports.FeedbackModalContent=xt;exports.FeedbackModalHeader=Ct;exports.FeedbackModalOverlay=ht;exports.FeedbackSubmitButton=yt;exports.Footer=Oe;exports.Form=wt;exports.FormCancel=ba;exports.FormClose=It;exports.FormContent=St;exports.FormDescription=Nt;exports.FormError=ca;exports.FormField=At;exports.FormFieldCheckbox=Bt;exports.FormFieldCheckboxIndicator=zt;exports.FormFieldCombobox=Zt;exports.FormFieldComboboxContent=ta;exports.FormFieldComboboxControl=$t;exports.FormFieldComboboxInput=Xt;exports.FormFieldComboboxItem=ra;exports.FormFieldComboboxItemIndicator=sa;exports.FormFieldComboboxItemText=ia;exports.FormFieldComboboxList=aa;exports.FormFieldComboboxListEmpty=oa;exports.FormFieldComboboxListItems=da;exports.FormFieldComboboxPositioner=Jt;exports.FormFieldComboboxSelectedTags=ea;exports.FormFieldComboboxTrigger=Yt;exports.FormFieldDescription=ma;exports.FormFieldEmail=Lt;exports.FormFieldError=na;exports.FormFieldFile=Dt;exports.FormFieldLabel=Tt;exports.FormFieldSelect=_t;exports.FormFieldSelectContent=Vt;exports.FormFieldSelectIcon=Qt;exports.FormFieldSelectItem=Ut;exports.FormFieldSelectItemIndicator=Kt;exports.FormFieldSelectItemText=Gt;exports.FormFieldSelectTrigger=Wt;exports.FormFieldSelectValue=Rt;exports.FormFieldSelectViewport=Ot;exports.FormFieldText=Ht;exports.FormFieldTextArea=qt;exports.FormFooter=la;exports.FormHeader=Mt;exports.FormHeading=jt;exports.FormSubmit=ha;exports.FormSuccess=xa;exports.FormSuccessButton=ua;exports.FormSuccessHeading=Ca;exports.FormSuccessMessage=pa;exports.FormWrapper=Pt;exports.Header=U;exports.HeaderToolbar=G;exports.HeaderToolbarWrapper=K;exports.HelpAction=it;exports.HelpActions=rt;exports.HelpActionsMenu=mt;exports.HelpActionsMenuArrow=nt;exports.HelpActionsMenuItem=ct;exports.HelpActionsMenuItemIcon=lt;exports.HelpActionsTrigger=st;exports.Input=Ke;exports.InputFieldset=Ue;exports.InputGroup=Ge;exports.IntroMessageWrapper=pe;exports.Markdown=Me;exports.MessageAction=Ae;exports.MessageAvatar=Ee;exports.MessageAvatarContent=ve;exports.MessageAvatarFallback=fe;exports.MessageAvatarImage=ke;exports.MessageContent=we;exports.MessageContentWrapper=Pe;exports.MessageCustomAction=Se;exports.MessageCustomActions=Ne;exports.MessageHeader=ue;exports.MessageLoading=ge;exports.MessageName=ye;exports.MessageSourceItem=De;exports.MessageSourceItemBreadcrumbIcon=Be;exports.MessageSourceItemBreadcrumbs=qe;exports.MessageSourceItemDescription=Re;exports.MessageSourceItemDescriptionPart=Qe;exports.MessageSourceItemIcon=ze;exports.MessageSourceItemIndicator=Ve;exports.MessageSourceItemTag=We;exports.MessageSourceItemTitle=_e;exports.MessageSources=Te;exports.MessageSourcesHeader=He;exports.MessageSourcesList=Le;exports.MessageToolbar=je;exports.MessageWrapper=Ce;exports.Messages=xe;exports.MessagesSessionLoading=Fe;exports.Provider=Q;exports.Root=O;exports.SendButton=Ze;exports.SendButtonIcon=$e;exports.TaglineContainer=Ye;exports.TaglineLogo=tt;exports.TaglineText=et;exports.ToolbarHeader=Z;exports.Wrapper=V;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),M=require("../../primitives/providers/chat-history-provider.cjs"),j=require("../../primitives/providers/config-provider.cjs"),a=require("../../primitives/components/embedded-chat.cjs"),N=require("../../primitives/components/embedded-chat/chat-provider.cjs"),S=require("../../primitives/hooks/use-resize-observer.cjs"),A=require("../../primitives/utils/compose-refs.cjs"),T=require("./ui/recipes/ai-chat-page-wrapper.cjs"),i=require("./ui/recipes/button.cjs"),v=require("./ui/recipes/checkbox.cjs"),m=require("./ui/recipes/citation.cjs"),n=require("./ui/recipes/combobox.cjs"),H=require("./ui/recipes/icon.cjs"),C=require("./ui/recipes/input.cjs"),b=require("./ui/recipes/modal.cjs"),p=require("./ui/recipes/popover.cjs"),u=require("./ui/recipes/scrollable.cjs"),h=require("./ui/recipes/select.cjs"),L=require("class-variance-authority"),D=require("merge-anything"),l=require("react"),o=require("../utils.cjs"),q=require("./ui/markdown-styles.cjs"),B=require("./loading-indicator.cjs"),z=require("../../primitives/components/tagline-logo-icon.cjs"),_=require("./embedded-chat/session-loading.cjs"),W=require("./message.cjs"),r=require("./embedded-chat/file-upload-input.cjs"),c=require("./embedded-chat/image-preview-modal.cjs"),R=require("../../primitives/components/embedded-chat/file-upload-input.cjs"),Q=N.ChatProvider,V=l.forwardRef(({className:e,size:t,variant:s,...g},x)=>d.jsx(a.EmbeddedChatPrimitiveWrapper,{ref:x,className:o.cn(T.aiChatPageWrapper({size:t,variant:s}),"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]","group/chat-history","data-[chat-history-layout=sidepane]:flex-row",e),...g})),O=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveRoot,{className:o.cn(u.scrollable({section:"wrapper"}),"rounded-[inherit] font-body","group-data-[chat-history-layout=sidepane]/chat-history:flex-1","group-data-[chat-history-layout=sidepane]/chat-history:min-w-0","group-data-[stack-history-open]/chat-history:!hidden",e),...t}),U=({className:e,...t})=>d.jsx(a.Header,{className:o.cn(u.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}),G=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHeaderToolbar,{className:o.cn("flex items-center gap-3 w-full","px-5 py-2 pt-3 justify-between *:m-0",'data-[show-widget-toggle=""]:pt-4',e),...t}),K=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveToolbarHeaderWrapper,{className:o.cn("flex items-center gap-1.5",e),...t}),Z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveToolbarHeader,{className:o.cn("text-gray-600 dark:text-gray-dark-100 text-sm",e),...t}),F=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatHistoryButtonIcon,{className:o.cn("text-sm",e),...t}),f=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatHistoryButton,{className:o.cn(i.button({size:"xs",variant:"ghost"}),"gap-1.5 text-gray-600 hover:text-gray-800 dark:text-white dark:opacity-60 dark:hover:text-white dark:hover:opacity-95",e),...t}),$=()=>{const{aiChatSettings:e}=j.useInkeepConfig(),{setIsOpen:t,isOpen:s}=M.useChatHistory();return e.isChatHistoryButtonVisible?d.jsxs(f,{onClick:()=>t(!s),"aria-label":"Chat history",children:[d.jsx(F,{iconKey:"chatHistoryPanel",className:"!hidden group-data-[chat-history-layout=sidepane]/chat-history:!block"}),d.jsxs("span",{className:"flex items-center gap-1.5 group-data-[chat-history-layout=sidepane]/chat-history:hidden",children:[d.jsx(F,{iconKey:"chatHistory"}),"Chat history"]})]}):null},J=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContent,{className:o.cn(u.scrollable({section:"content"}),"justify-end",e),...t}),X=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContentScrollArea,{className:o.cn("overflow-hidden",e),...t}),Y=l.forwardRef(({className:e,...t},s)=>d.jsx(a.EmbeddedChatPrimitiveContentScrollAreaViewport,{ref:s,className:o.cn("h-full w-full rounded-[inherit]","[[data-chat-bubble]_&]:overscroll-contain",e),...t})),ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContentScrollAreaScrollbar,{className:o.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}),te=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveContentScrollAreaThumb,{className:o.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),ae=a.EmbeddedChatPrimitiveContentScrollAreaCorner,de=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimer,{className:o.cn("ml-auto text-sm flex items-center gap-1",e),...t}),oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerLabel,{className:o.cn("text-gray-700 dark:text-gray-dark-100",e),...t}),re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerTrigger,{className:o.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}),ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerContent,{className:o.cn(p.popover({slot:"content"}),"px-4 py-2 font-normal text-sm","w-[250px] sm:w-[420px]",e),...t}),se=a.EmbeddedChatPrimitiveDisclaimerText,me=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveDisclaimerArrow,{className:o.cn(p.popover({slot:"arrow"}),e),...t}),ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestions,{className:o.cn("mt-4 flex flex-col gap-2",e),...t}),ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestionsLabel,{className:o.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestionsList,{className:o.cn("flex flex-col","ikp-md:flex-row","flex-wrap gap-2",e),...t}),be=l.forwardRef(({className:e,style:t,...s},g)=>{const x=l.useRef(null),y=A.composeRefs(g,x),{width:P=0,height:w=0}=S.useResizeObserver({ref:x,box:"border-box"}),I=Math.max(w,P);return d.jsx(a.EmbeddedChatPrimitiveExampleQuestion,{ref:y,style:{"--before-size":`${I+100}px`,...t},className:o.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),...s})}),he=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveExampleQuestionButton,{className:o.cn(i.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}),xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessages,{className:o.cn("flex flex-col w-full min-w-0 min-h-0 text-sm relative",e),...t}),k=L.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:o.cn(k(),e),...t}),pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveIntroMessageWrapper,{className:o.cn(k(),e),...t}),ue=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageHeader,{className:o.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}),ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageLoading,{className:o.cn("flex items-center gap-3 h-auto w-full",e),children:d.jsx(B.LoadingIndicator,{}),...t}),Fe=({className:e})=>d.jsx("div",{className:o.cn("w-full",e),children:d.jsx(_.MessagesSessionLoading,{})}),Ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatar,{className:o.cn("flex items-center justify-center rounded-full","h-auto",e),...t}),ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatarContent,{className:o.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}),fe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatarFallback,{className:o.cn("hidden data-[role=user]:block",e),...t}),ke=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAvatarImage,{className:o.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}),ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageName,{className:o.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}),Pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageContentWrapper,{className:o.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}),we=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageContent,{className:o.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}),Ie=a.EmbeddedChatPrimitiveDynamicComponent,Me=({componentStyles:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMarkdown,{componentStyles:D.merge(q.markdownStyles,e??{}),...t}),je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageToolbar,{className:o.cn("flex items-center mt-2 mb-3",e),...t}),Ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageCustomActions,{className:o.cn("mr-auto flex items-center gap-2",e),...t}),Se=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageCustomAction,{className:o.cn(i.button({size:"xs",variant:"outline"}),"text-xs h-[30px] text-gray-700 dark:text-gray-200 gap-1",e),...t}),Ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageAction,{className:o.cn(i.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}),Te=a.EmbeddedChatPrimitiveMessageSources,He=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourcesHeader,{className:o.cn("block text-xs font-medium my-2 text-gray-700 dark:text-gray-dark-300",e),...t}),Le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourcesList,{className:o.cn("w-full relative flex flex-col gap-3 py-[1px]",e),...t}),De=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItem,{className:o.cn(m.citation({slot:"root"}),e),...t}),qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,{className:o.cn(m.citation({slot:"breadcrumbs"}),e),...t}),Be=({className:e,...t})=>d.jsx(a.MessageSourceItemBreadcrumbIcon,{className:o.cn(m.citation({slot:"breadcrumbsIcon"}),e),...t}),ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemIcon,{className:o.cn(m.citation({slot:"icon"}),e),...t}),_e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemTitle,{className:o.cn(m.citation({slot:"title"}),e),...t}),We=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemTag,{className:o.cn(m.citation({slot:"tag"}),e),...t}),Re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemDescription,{className:o.cn(m.citation({slot:"description"}),e),...t}),Qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,{className:o.cn(m.citation({slot:"descriptionPart"}),e),...t}),Ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveMessageSourceItemIndicator,{className:o.cn(m.citation({slot:"indicator"}),e),...t}),Oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFooter,{className:o.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}),Ue=({className:e,...t})=>d.jsx(R.EmbeddedChatPrimitiveInputFieldset,{className:o.cn("group/fieldset","relative flex flex-col w-full py-1.5 px-2","rounded-lg items-stretch shadow-md dark:shadow-none","bg-gray-50 dark:bg-gray-dark-900",e),...t}),Ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveInputGroup,{className:o.cn("flex items-end",e),...t}),Ke=l.forwardRef(({className:e,...t},s)=>d.jsx(a.EmbeddedChatPrimitiveInput,{ref:s,className:o.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-1 py-1.5 max-h-[200px] overflow-y-auto disabled:cursor-not-allowed",e),...t})),Ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveSendButton,{className:o.cn(i.button({}),"group","bg-transparent relative size-8 min-w-[unset] rounded-lg transition-all ease-linear","text-inkeep-primary-medium dark:text-inkeep-expanded-primary-500","active:bg-gray-200 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","disabled:cursor-not-allowed hover:disabled:[background:none] active:disabled:[background:none]",e),...t}),$e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveSendButtonIcon,{className:o.cn(H.icon(),"text-inherit group-disabled:opacity-60 ",e),...t}),Je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveActionBar,{className:o.cn("mt-4 flex items-center justify-between flex-wrap-reverse gap-2.5",e),...t}),Xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveActions,{className:o.cn("flex items-center gap-2.5 flex-wrap",e),...t}),Ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineContainer,{className:o.cn("flex items-center whitespace-nowrap",e),...t}),et=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineText,{className:o.cn("text-xs text-gray-500 dark:text-white-alpha-600",e),...t}),tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveTaglineLogo,{className:o.cn("inline-flex items-center",e),...t,children:d.jsx(z.default,{className:"text-gray-500 dark:text-white-alpha-600 ml-1 mt-0.5 w-11 h-auto","aria-hidden":"true"})}),E=o.cn(i.button({size:"xs",variant:"outline"}),"text-gray-700 dark:text-white-alpha-700"),at=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatAction,{className:o.cn(E,e),...t}),dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatActionLabel,{className:o.cn("cursor-pointer",e),...t}),ot=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatActionFeedback,{className:o.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,it=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveChatHelpAction,{className:o.cn(E,e),...t}),st=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsTrigger,{className:o.cn(E,e),...t}),mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenu,{className:o.cn(p.popover({slot:"content"}),"gap-3 px-3 py-4 ","w-[254px] text-sm font-normal",e),...t}),nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenuArrow,{className:o.cn(p.popover({slot:"arrow"}),e),...t}),ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenuItem,{className:o.cn("flex items-center cursor-pointer hover:underline",e),...t}),lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveHelpActionsMenuItemIcon,{className:o.cn("mr-2 text-inkeep-primary-medium",e),...t}),bt=a.EmbeddedChatPrimitiveFeedbackModal,ht=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalOverlay,{className:o.cn(b.modal({slot:"overlay"}),e),...t}),xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalContent,{className:o.cn(b.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}),Ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalHeader,{className:o.cn(b.modal({slot:"header"}),"px-0 pt-0 pb-6","font-semibold",e),...t}),pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalClose,{className:o.cn(b.modal({slot:"close"}),e),...t}),ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackModalBody,{className:o.cn(b.modal({slot:"body"}),"p-0",e),...t}),gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackForm,{className:o.cn("flex flex-col gap-8",e),...t}),Ft=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackField,{className:o.cn("flex flex-col gap-2",e),...t}),Et=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemLabel,{className:o.cn("font-medium text-sm","text-gray-700 dark:text-white-alpha-700",e),...t}),vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackItemDescription,{className:o.cn("flex-[0_0_100%]","min-h-20 border rounded-md","px-3 py-2 text-sm",e),...t}),ft=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFeedbackSubmitButton,{className:o.cn(i.button({variant:"primaryFilled"}),"ml-auto",e),...t}),kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormWrapper,{className:o.cn("w-full overflow-y-auto [scrollbar-width:thin]",e),...t}),yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveForm,{className:o.cn(u.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}),Pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormClose,{className:o.cn(i.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}),wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormHeader,{className:o.cn("mt-8 flex flex-col gap-6",e),...t}),It=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormHeading,{className:o.cn("font-semibold text-xl leading-5",e),...t}),Mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormDescription,{className:o.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormContent,{className:o.cn("w-full space-y-8",e),...t}),Nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormField,{className:o.cn("group flex flex-col gap-2 data-[hidden]:hidden","data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:flex-wrap data-[input-type=checkbox]:items-center",e),...t}),St=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldLabel,{className:o.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",'dark:data-[required]:after:[content:"*"]',e),...t}),At=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldText,{className:o.cn(C.input({size:"md",variant:"outline"}),e),...t}),Tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldEmail,{className:o.cn(C.input({size:"md",variant:"outline"}),e),...t}),Ht=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldFile,{className:o.cn(C.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}),Lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldTextArea,{className:o.cn(C.input({size:"md",variant:"outline"}),"min-h-20 px-3 py-2 text-sm",e),...t}),Dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldCheckbox,{className:o.cn(v.checkbox({slot:"root"}),e),...t}),qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldCheckboxIndicator,{className:o.cn(v.checkbox({slot:"indicator"}),e),...t}),Bt=a.EmbeddedChatPrimitiveFormFieldSelect,zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectTrigger,{className:o.cn(h.select({slot:"trigger"}),e),...t}),_t=a.EmbeddedChatPrimitiveFormFieldSelectValue,Wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectIcon,{className:o.cn("h-4 w-4 opacity-45",e),...t}),Rt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectContent,{className:o.cn(h.select({slot:"content"}),e),...t}),Qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectViewport,{className:o.cn(h.select({slot:"viewport"}),e),...t}),Vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectItem,{className:o.cn(h.select({slot:"item"}),e),...t}),Ot=a.EmbeddedChatPrimitiveFormFieldSelectItemText,Ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldSelectItemIndicator,{className:o.cn(h.select({slot:"itemIndicator"}),e),...t}),Gt=a.EmbeddedChatPrimitiveFormFieldCombobox,Kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxControl,{className:o.cn(n.combobox({slot:"control"}),e),...t}),Zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxPositioner,{className:e,...t}),$t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxInput,{className:o.cn(n.combobox({slot:"input"}),e),...t}),Jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxTrigger,{className:o.cn(n.combobox({slot:"trigger"}),e),...t}),Xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxSelectedTags,{className:o.cn(n.combobox({slot:"selectedTags"}),e),...t}),Yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxContent,{className:o.cn(n.combobox({slot:"content"}),e),...t}),ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxList,{className:o.cn(n.combobox({slot:"list"}),e),...t}),ta=a.EmbeddedChatPrimitiveFormFieldComboboxListItems,aa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxListEmpty,{className:o.cn(n.combobox({slot:"emptyMessage"}),e),...t}),da=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxItem,{className:o.cn(n.combobox({slot:"item"}),e),...t}),oa=a.EmbeddedChatPrimitiveFormFieldComboboxItemText,ra=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldComboboxItemIndicator,{className:o.cn(n.combobox({slot:"itemIndicator"}),e),...t}),ia=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldDescription,{className:o.cn("text-sm text-gray-600 dark:text-white-alpha-600","group-data-[input-type=checkbox]:w-full group-data-[input-type=checkbox]:basis-full",e),...t}),sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFieldError,{className:o.cn("text-sm flex items-center text-red-500 dark:text-red-300","group-data-[input-type=checkbox]:w-full group-data-[input-type=checkbox]:basis-full",e),...t}),ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormError,{className:o.cn("text-red-500 dark:text-red-300",e),...t}),na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormFooter,{className:o.cn("flex items-center justify-end gap-4 w-full",e),...t}),ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormCancel,{className:o.cn(i.button({variant:"outline"}),e),...t}),la=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSubmit,{className:o.cn(i.button({variant:"primaryFilled"}),e),...t}),ba=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSuccess,{className:o.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}),ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSuccessHeading,{className:o.cn("mb-6 font-bold tracking-tight","text-3xl md:text-4xl leading-6 md:leading-5",e),...t}),xa=a.EmbeddedChatPrimitiveFormSuccessMessage,Ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitiveFormSuccessButton,{className:o.cn(i.button({variant:"primaryFilled"}),"w-full mt-12 gap-2 shrink-0",e),...t});exports.MessagePart=W.EmbeddedChatMessagePart;exports.DropZone=r.EmbeddedChatDropZone;exports.FileContent=r.EmbeddedChatFileContent;exports.FileInput=r.EmbeddedChatFileInput;exports.FileItem=r.EmbeddedChatFileItem;exports.FileList=r.EmbeddedChatFileList;exports.FileName=r.EmbeddedChatFileName;exports.FilePreviewTrigger=r.EmbeddedChatFilePreviewTrigger;exports.FileRemove=r.EmbeddedChatFileRemove;exports.FileThumbnail=r.EmbeddedChatFileThumbnail;exports.FileTypeIcon=r.EmbeddedChatFileTypeIcon;exports.FileUploadButton=r.EmbeddedChatFileUploadButton;exports.InputNotification=r.EmbeddedChatInputNotification;exports.InputNotificationClose=r.EmbeddedChatInputNotificationClose;exports.InputNotificationContent=r.EmbeddedChatInputNotificationContent;exports.InputNotificationHeader=r.EmbeddedChatInputNotificationHeader;exports.InputNotificationMessage=r.EmbeddedChatInputNotificationMessage;exports.InputNotificationTitle=r.EmbeddedChatInputNotificationTitle;exports.MessageFile=r.EmbeddedChatMessageFile;exports.MessageFiles=r.EmbeddedChatMessageFiles;exports.ImagePreviewModal=c.EmbeddedChatImagePreviewModal;exports.ImagePreviewModalClose=c.EmbeddedChatImagePreviewModalClose;exports.ImagePreviewModalContent=c.EmbeddedChatImagePreviewModalContent;exports.ImagePreviewModalFileName=c.EmbeddedChatImagePreviewModalFileName;exports.ImagePreviewModalFooter=c.EmbeddedChatImagePreviewModalFooter;exports.ImagePreviewModalImage=c.EmbeddedChatImagePreviewModalImage;exports.ImagePreviewModalOverlay=c.EmbeddedChatImagePreviewModalOverlay;exports.ActionBar=Je;exports.Actions=Xe;exports.ChatAction=at;exports.ChatActionFeedback=ot;exports.ChatActionLabel=dt;exports.ChatHistoryButton=f;exports.ChatHistoryButtonIcon=F;exports.ChatHistoryTrigger=$;exports.Content=J;exports.ContentScrollArea=X;exports.ContentScrollAreaCorner=ae;exports.ContentScrollAreaScrollbar=ee;exports.ContentScrollAreaThumb=te;exports.ContentScrollAreaViewport=Y;exports.Disclaimer=de;exports.DisclaimerArrow=me;exports.DisclaimerContent=ie;exports.DisclaimerLabel=oe;exports.DisclaimerText=se;exports.DisclaimerTrigger=re;exports.DynamicComponent=Ie;exports.ExampleQuestion=be;exports.ExampleQuestionButton=he;exports.ExampleQuestions=ne;exports.ExampleQuestionsLabel=ce;exports.ExampleQuestionsList=le;exports.FeedbackField=Ft;exports.FeedbackForm=gt;exports.FeedbackItemDescription=vt;exports.FeedbackItemLabel=Et;exports.FeedbackModal=bt;exports.FeedbackModalBody=ut;exports.FeedbackModalClose=pt;exports.FeedbackModalContent=xt;exports.FeedbackModalHeader=Ct;exports.FeedbackModalOverlay=ht;exports.FeedbackSubmitButton=ft;exports.Footer=Oe;exports.Form=yt;exports.FormCancel=ca;exports.FormClose=Pt;exports.FormContent=jt;exports.FormDescription=Mt;exports.FormError=ma;exports.FormField=Nt;exports.FormFieldCheckbox=Dt;exports.FormFieldCheckboxIndicator=qt;exports.FormFieldCombobox=Gt;exports.FormFieldComboboxContent=Yt;exports.FormFieldComboboxControl=Kt;exports.FormFieldComboboxInput=$t;exports.FormFieldComboboxItem=da;exports.FormFieldComboboxItemIndicator=ra;exports.FormFieldComboboxItemText=oa;exports.FormFieldComboboxList=ea;exports.FormFieldComboboxListEmpty=aa;exports.FormFieldComboboxListItems=ta;exports.FormFieldComboboxPositioner=Zt;exports.FormFieldComboboxSelectedTags=Xt;exports.FormFieldComboboxTrigger=Jt;exports.FormFieldDescription=ia;exports.FormFieldEmail=Tt;exports.FormFieldError=sa;exports.FormFieldFile=Ht;exports.FormFieldLabel=St;exports.FormFieldSelect=Bt;exports.FormFieldSelectContent=Rt;exports.FormFieldSelectIcon=Wt;exports.FormFieldSelectItem=Vt;exports.FormFieldSelectItemIndicator=Ut;exports.FormFieldSelectItemText=Ot;exports.FormFieldSelectTrigger=zt;exports.FormFieldSelectValue=_t;exports.FormFieldSelectViewport=Qt;exports.FormFieldText=At;exports.FormFieldTextArea=Lt;exports.FormFooter=na;exports.FormHeader=wt;exports.FormHeading=It;exports.FormSubmit=la;exports.FormSuccess=ba;exports.FormSuccessButton=Ca;exports.FormSuccessHeading=ha;exports.FormSuccessMessage=xa;exports.FormWrapper=kt;exports.Header=U;exports.HeaderToolbar=G;exports.HeaderToolbarWrapper=K;exports.HelpAction=it;exports.HelpActions=rt;exports.HelpActionsMenu=mt;exports.HelpActionsMenuArrow=nt;exports.HelpActionsMenuItem=ct;exports.HelpActionsMenuItemIcon=lt;exports.HelpActionsTrigger=st;exports.Input=Ke;exports.InputFieldset=Ue;exports.InputGroup=Ge;exports.IntroMessageWrapper=pe;exports.Markdown=Me;exports.MessageAction=Ae;exports.MessageAvatar=Ee;exports.MessageAvatarContent=ve;exports.MessageAvatarFallback=fe;exports.MessageAvatarImage=ke;exports.MessageContent=we;exports.MessageContentWrapper=Pe;exports.MessageCustomAction=Se;exports.MessageCustomActions=Ne;exports.MessageHeader=ue;exports.MessageLoading=ge;exports.MessageName=ye;exports.MessageSourceItem=De;exports.MessageSourceItemBreadcrumbIcon=Be;exports.MessageSourceItemBreadcrumbs=qe;exports.MessageSourceItemDescription=Re;exports.MessageSourceItemDescriptionPart=Qe;exports.MessageSourceItemIcon=ze;exports.MessageSourceItemIndicator=Ve;exports.MessageSourceItemTag=We;exports.MessageSourceItemTitle=_e;exports.MessageSources=Te;exports.MessageSourcesHeader=He;exports.MessageSourcesList=Le;exports.MessageToolbar=je;exports.MessageWrapper=Ce;exports.Messages=xe;exports.MessagesSessionLoading=Fe;exports.Provider=Q;exports.Root=O;exports.SendButton=Ze;exports.SendButtonIcon=$e;exports.TaglineContainer=Ye;exports.TaglineLogo=tt;exports.TaglineText=et;exports.ToolbarHeader=Z;exports.Wrapper=V;