@inkeep/agents-ui 0.1.0 → 0.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +64 -0
- package/README.md +1 -67
- package/dist/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/color-mode/index.cjs +1 -0
- package/dist/color-mode/index.js +170 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +5093 -0
- package/dist/index.d.ts +5093 -0
- package/dist/index.js +213 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.cjs +1 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.js +8 -0
- package/dist/primitives/atoms/avatars/ai.cjs +1 -0
- package/dist/primitives/atoms/avatars/ai.js +99 -0
- package/dist/primitives/atoms/avatars/user.cjs +1 -0
- package/dist/primitives/atoms/avatars/user.js +27 -0
- package/dist/primitives/atoms/cmdk/command-score.cjs +1 -0
- package/dist/primitives/atoms/cmdk/command-score.js +46 -0
- package/dist/primitives/atoms/cmdk/index.cjs +1 -0
- package/dist/primitives/atoms/cmdk/index.js +521 -0
- package/dist/primitives/atoms/codeblock/index.cjs +1 -0
- package/dist/primitives/atoms/codeblock/index.js +40 -0
- package/dist/primitives/atoms/custom-styles.cjs +1 -0
- package/dist/primitives/atoms/custom-styles.js +57 -0
- package/dist/primitives/atoms/dialog.cjs +1 -0
- package/dist/primitives/atoms/dialog.js +226 -0
- package/dist/primitives/atoms/error-boundary.cjs +1 -0
- package/dist/primitives/atoms/error-boundary.js +9 -0
- package/dist/primitives/atoms/icons/built-in-icon-renderer.cjs +1 -0
- package/dist/primitives/atoms/icons/built-in-icon-renderer.js +51 -0
- package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -0
- package/dist/primitives/atoms/icons/built-in-icons.js +86 -0
- package/dist/primitives/atoms/icons/checkbox-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/checkbox-icon.js +24 -0
- package/dist/primitives/atoms/icons/collections/bi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/bi.js +49 -0
- package/dist/primitives/atoms/icons/collections/fi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/fi.js +29 -0
- package/dist/primitives/atoms/icons/collections/gr.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/gr.js +21 -0
- package/dist/primitives/atoms/icons/collections/io5.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/io5.js +806 -0
- package/dist/primitives/atoms/icons/collections/pi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/pi.js +49 -0
- package/dist/primitives/atoms/icons/custom-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/custom-icon.js +19 -0
- package/dist/primitives/atoms/icons/generate-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/generate-icon.js +56 -0
- package/dist/primitives/atoms/icons/index.cjs +1 -0
- package/dist/primitives/atoms/icons/index.js +6 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +24 -0
- package/dist/primitives/atoms/link.cjs +1 -0
- package/dist/primitives/atoms/link.js +35 -0
- package/dist/primitives/atoms/markdown/components.cjs +1 -0
- package/dist/primitives/atoms/markdown/components.js +73 -0
- package/dist/primitives/atoms/markdown/index.cjs +1 -0
- package/dist/primitives/atoms/markdown/index.js +115 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.cjs +1 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.js +12 -0
- package/dist/primitives/atoms/portal-with-theme.cjs +1 -0
- package/dist/primitives/atoms/portal-with-theme.js +12 -0
- package/dist/primitives/atoms/portal.cjs +1 -0
- package/dist/primitives/atoms/portal.js +19 -0
- package/dist/primitives/atoms/select.cjs +1 -0
- package/dist/primitives/atoms/select.js +785 -0
- package/dist/primitives/atoms/shadow/context.cjs +1 -0
- package/dist/primitives/atoms/shadow/context.js +54 -0
- package/dist/primitives/atoms/shadow/create.cjs +1 -0
- package/dist/primitives/atoms/shadow/create.js +56 -0
- package/dist/primitives/atoms/shadow/root.cjs +1 -0
- package/dist/primitives/atoms/shadow/root.js +22 -0
- package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.cjs +1 -0
- package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.js +11 -0
- package/dist/primitives/atoms/shadow/utils.cjs +1 -0
- package/dist/primitives/atoms/shadow/utils.js +16 -0
- package/dist/primitives/components/chat-button.cjs +1 -0
- package/dist/primitives/components/chat-button.js +46 -0
- package/dist/primitives/components/embedded-chat/chat-provider.cjs +1 -0
- package/dist/primitives/components/embedded-chat/chat-provider.js +20 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.js +38 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +160 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.js +82 -0
- package/dist/primitives/components/embedded-chat.cjs +11 -0
- package/dist/primitives/components/embedded-chat.js +1898 -0
- package/dist/primitives/components/embedded-search/search-provider.cjs +1 -0
- package/dist/primitives/components/embedded-search/search-provider.js +26 -0
- package/dist/primitives/components/embedded-search/transform-results.cjs +1 -0
- package/dist/primitives/components/embedded-search/transform-results.js +47 -0
- package/dist/primitives/components/embedded-search/url-query.cjs +1 -0
- package/dist/primitives/components/embedded-search/url-query.js +12 -0
- package/dist/primitives/components/embedded-search/use-inkeep-search.cjs +1 -0
- package/dist/primitives/components/embedded-search/use-inkeep-search.js +35 -0
- package/dist/primitives/components/embedded-search/use-search-filter.cjs +1 -0
- package/dist/primitives/components/embedded-search/use-search-filter.js +77 -0
- package/dist/primitives/components/embedded-search.cjs +1 -0
- package/dist/primitives/components/embedded-search.js +628 -0
- package/dist/primitives/components/factory.cjs +1 -0
- package/dist/primitives/components/factory.js +39 -0
- package/dist/primitives/components/index.cjs +1 -0
- package/dist/primitives/components/index.js +27 -0
- package/dist/primitives/components/modal/modal-provider.cjs +1 -0
- package/dist/primitives/components/modal/modal-provider.js +8 -0
- package/dist/primitives/components/modal/use-inkeep-modal.cjs +1 -0
- package/dist/primitives/components/modal/use-inkeep-modal.js +45 -0
- package/dist/primitives/components/modal/widget-auto-focus.cjs +1 -0
- package/dist/primitives/components/modal/widget-auto-focus.js +16 -0
- package/dist/primitives/components/modal.cjs +1 -0
- package/dist/primitives/components/modal.js +40 -0
- package/dist/primitives/components/presence.cjs +1 -0
- package/dist/primitives/components/presence.js +26 -0
- package/dist/primitives/components/searchbar.cjs +1 -0
- package/dist/primitives/components/searchbar.js +54 -0
- package/dist/primitives/components/sidebar-chat/index.cjs +1 -0
- package/dist/primitives/components/sidebar-chat/index.js +86 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.cjs +1 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.js +34 -0
- package/dist/primitives/components/tagline-logo-icon.cjs +1 -0
- package/dist/primitives/components/tagline-logo-icon.js +26 -0
- package/dist/primitives/components/use-component-trigger.cjs +1 -0
- package/dist/primitives/components/use-component-trigger.js +16 -0
- package/dist/primitives/constants/search.cjs +1 -0
- package/dist/primitives/constants/search.js +5 -0
- package/dist/primitives/hooks/index.cjs +1 -0
- package/dist/primitives/hooks/index.js +24 -0
- package/dist/primitives/hooks/use-boolean.cjs +1 -0
- package/dist/primitives/hooks/use-boolean.js +17 -0
- package/dist/primitives/hooks/use-component-classnames.cjs +1 -0
- package/dist/primitives/hooks/use-component-classnames.js +14 -0
- package/dist/primitives/hooks/use-container-size.cjs +1 -0
- package/dist/primitives/hooks/use-container-size.js +18 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.cjs +1 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.js +24 -0
- package/dist/primitives/hooks/use-debounce.cjs +1 -0
- package/dist/primitives/hooks/use-debounce.js +16 -0
- package/dist/primitives/hooks/use-instant-update.cjs +1 -0
- package/dist/primitives/hooks/use-instant-update.js +16 -0
- package/dist/primitives/hooks/use-is-mounted.cjs +1 -0
- package/dist/primitives/hooks/use-is-mounted.js +11 -0
- package/dist/primitives/hooks/use-media-query.cjs +1 -0
- package/dist/primitives/hooks/use-media-query.js +14 -0
- package/dist/primitives/hooks/use-resize-observer.cjs +1 -0
- package/dist/primitives/hooks/use-resize-observer.js +32 -0
- package/dist/primitives/hooks/use-scroll-to-bottom.cjs +1 -0
- package/dist/primitives/hooks/use-scroll-to-bottom.js +52 -0
- package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -0
- package/dist/primitives/hooks/use-scrolling-fades.js +18 -0
- package/dist/primitives/hooks/use-settle-action.cjs +1 -0
- package/dist/primitives/hooks/use-settle-action.js +11 -0
- package/dist/primitives/index.cjs +1 -0
- package/dist/primitives/index.js +155 -0
- package/dist/primitives/providers/attachment-item-provider.cjs +1 -0
- package/dist/primitives/providers/attachment-item-provider.js +13 -0
- package/dist/primitives/providers/attachments-bar-provider.cjs +1 -0
- package/dist/primitives/providers/attachments-bar-provider.js +57 -0
- package/dist/primitives/providers/base-events-provider.cjs +1 -0
- package/dist/primitives/providers/base-events-provider.js +37 -0
- package/dist/primitives/providers/chat-form-provider.cjs +1 -0
- package/dist/primitives/providers/chat-form-provider.js +109 -0
- package/dist/primitives/providers/config-provider.cjs +1 -0
- package/dist/primitives/providers/config-provider.js +38 -0
- package/dist/primitives/providers/feedback-item-provider.cjs +1 -0
- package/dist/primitives/providers/feedback-item-provider.js +16 -0
- package/dist/primitives/providers/feedback-provider.cjs +1 -0
- package/dist/primitives/providers/feedback-provider.js +83 -0
- package/dist/primitives/providers/form-field-provider.cjs +1 -0
- package/dist/primitives/providers/form-field-provider.js +17 -0
- package/dist/primitives/providers/help-menu-provider.cjs +1 -0
- package/dist/primitives/providers/help-menu-provider.js +19 -0
- package/dist/primitives/providers/hover-popover-provider.cjs +1 -0
- package/dist/primitives/providers/hover-popover-provider.js +13 -0
- package/dist/primitives/providers/index.cjs +1 -0
- package/dist/primitives/providers/index.js +57 -0
- package/dist/primitives/providers/markdown-provider.cjs +1 -0
- package/dist/primitives/providers/markdown-provider.js +8 -0
- package/dist/primitives/providers/message-attachments-provider.cjs +1 -0
- package/dist/primitives/providers/message-attachments-provider.js +27 -0
- package/dist/primitives/providers/message-provider.cjs +1 -0
- package/dist/primitives/providers/message-provider.js +14 -0
- package/dist/primitives/providers/root-provider.cjs +1 -0
- package/dist/primitives/providers/root-provider.js +21 -0
- package/dist/primitives/providers/search-events-provider.cjs +1 -0
- package/dist/primitives/providers/search-events-provider.js +17 -0
- package/dist/primitives/providers/sidebar-chat-provider.cjs +1 -0
- package/dist/primitives/providers/sidebar-chat-provider.js +41 -0
- package/dist/primitives/providers/source-item-provider.cjs +1 -0
- package/dist/primitives/providers/source-item-provider.js +13 -0
- package/dist/primitives/providers/theme-provider.cjs +3 -0
- package/dist/primitives/providers/theme-provider.js +79 -0
- package/dist/primitives/providers/widget-provider.cjs +1 -0
- package/dist/primitives/providers/widget-provider.js +8 -0
- package/dist/primitives/utils/component-ids.cjs +1 -0
- package/dist/primitives/utils/component-ids.js +309 -0
- package/dist/primitives/utils/compose-event-handlers.cjs +1 -0
- package/dist/primitives/utils/compose-event-handlers.js +10 -0
- package/dist/primitives/utils/compose-refs.cjs +1 -0
- package/dist/primitives/utils/compose-refs.js +30 -0
- package/dist/primitives/utils/default-settings.cjs +1 -0
- package/dist/primitives/utils/default-settings.js +50 -0
- package/dist/primitives/utils/form.cjs +1 -0
- package/dist/primitives/utils/form.js +17 -0
- package/dist/primitives/utils/generate-uid.cjs +1 -0
- package/dist/primitives/utils/generate-uid.js +14 -0
- package/dist/primitives/utils/get-source-icon.cjs +1 -0
- package/dist/primitives/utils/get-source-icon.js +11 -0
- package/dist/primitives/utils/highlight-emphasis.cjs +1 -0
- package/dist/primitives/utils/highlight-emphasis.js +15 -0
- package/dist/primitives/utils/merge-props.cjs +1 -0
- package/dist/primitives/utils/merge-props.js +41 -0
- package/dist/primitives/utils/misc.cjs +1 -0
- package/dist/primitives/utils/misc.js +31 -0
- package/dist/primitives/utils/split-props.cjs +1 -0
- package/dist/primitives/utils/split-props.js +10 -0
- package/dist/react/chat-button.cjs +1 -0
- package/dist/react/chat-button.js +60 -0
- package/dist/react/embedded-chat.cjs +1 -0
- package/dist/react/embedded-chat.js +380 -0
- package/dist/react/embedded-search-and-chat.cjs +1 -0
- package/dist/react/embedded-search-and-chat.impl.cjs +1 -0
- package/dist/react/embedded-search-and-chat.impl.js +43 -0
- package/dist/react/embedded-search-and-chat.js +66 -0
- package/dist/react/embedded-search.cjs +1 -0
- package/dist/react/embedded-search.js +181 -0
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.js +213 -0
- package/dist/react/modal.chat.cjs +1 -0
- package/dist/react/modal.chat.js +21 -0
- package/dist/react/modal.cjs +1 -0
- package/dist/react/modal.js +27 -0
- package/dist/react/modal.search-and-chat.cjs +1 -0
- package/dist/react/modal.search-and-chat.js +27 -0
- package/dist/react/modal.search.cjs +1 -0
- package/dist/react/modal.search.js +21 -0
- package/dist/react/searchbar.cjs +1 -0
- package/dist/react/searchbar.js +68 -0
- package/dist/react/sidebar-chat.cjs +1 -0
- package/dist/react/sidebar-chat.js +49 -0
- package/dist/react/utils.cjs +1 -0
- package/dist/react/utils.js +20 -0
- package/dist/react/widget-toggle.cjs +1 -0
- package/dist/react/widget-toggle.js +65 -0
- package/dist/styled/components/chat-button.cjs +1 -0
- package/dist/styled/components/chat-button.js +56 -0
- package/dist/styled/components/data-summary-group.cjs +1 -0
- package/dist/styled/components/data-summary-group.js +76 -0
- package/dist/styled/components/embedded-chat.cjs +1 -0
- package/dist/styled/components/embedded-chat.js +1816 -0
- package/dist/styled/components/embedded-search/results-loading.cjs +1 -0
- package/dist/styled/components/embedded-search/results-loading.js +39 -0
- package/dist/styled/components/embedded-search.cjs +1 -0
- package/dist/styled/components/embedded-search.js +680 -0
- package/dist/styled/components/index.cjs +1 -0
- package/dist/styled/components/index.js +24 -0
- package/dist/styled/components/loading-indicator.cjs +1 -0
- package/dist/styled/components/loading-indicator.js +36 -0
- package/dist/styled/components/message.cjs +1 -0
- package/dist/styled/components/message.js +140 -0
- package/dist/styled/components/modal.cjs +1 -0
- package/dist/styled/components/modal.js +46 -0
- package/dist/styled/components/searchbar.cjs +1 -0
- package/dist/styled/components/searchbar.js +81 -0
- package/dist/styled/components/shadow.cjs +1 -0
- package/dist/styled/components/shadow.js +8 -0
- package/dist/styled/components/sidebar-chat.cjs +1 -0
- package/dist/styled/components/sidebar-chat.js +90 -0
- package/dist/styled/components/ui/markdown-styles.cjs +1 -0
- package/dist/styled/components/ui/markdown-styles.js +38 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.cjs +1 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.js +32 -0
- package/dist/styled/components/ui/recipes/attachment.cjs +1 -0
- package/dist/styled/components/ui/recipes/attachment.js +28 -0
- package/dist/styled/components/ui/recipes/button.cjs +1 -0
- package/dist/styled/components/ui/recipes/button.js +81 -0
- package/dist/styled/components/ui/recipes/checkbox.cjs +1 -0
- package/dist/styled/components/ui/recipes/checkbox.js +23 -0
- package/dist/styled/components/ui/recipes/citation.cjs +1 -0
- package/dist/styled/components/ui/recipes/citation.js +75 -0
- package/dist/styled/components/ui/recipes/icon.cjs +1 -0
- package/dist/styled/components/ui/recipes/icon.js +6 -0
- package/dist/styled/components/ui/recipes/index.cjs +1 -0
- package/dist/styled/components/ui/recipes/index.js +37 -0
- package/dist/styled/components/ui/recipes/input.cjs +1 -0
- package/dist/styled/components/ui/recipes/input.js +34 -0
- package/dist/styled/components/ui/recipes/link.cjs +1 -0
- package/dist/styled/components/ui/recipes/link.js +13 -0
- package/dist/styled/components/ui/recipes/markdown.cjs +1 -0
- package/dist/styled/components/ui/recipes/markdown.js +103 -0
- package/dist/styled/components/ui/recipes/modal.cjs +1 -0
- package/dist/styled/components/ui/recipes/modal.js +59 -0
- package/dist/styled/components/ui/recipes/popover.cjs +1 -0
- package/dist/styled/components/ui/recipes/popover.js +20 -0
- package/dist/styled/components/ui/recipes/scrollable.cjs +1 -0
- package/dist/styled/components/ui/recipes/scrollable.js +15 -0
- package/dist/styled/components/ui/recipes/select.cjs +1 -0
- package/dist/styled/components/ui/recipes/select.js +38 -0
- package/dist/styled/components/ui/recipes/skeleton.cjs +1 -0
- package/dist/styled/components/ui/recipes/skeleton.js +16 -0
- package/dist/styled/components/ui/recipes/widget-toggle.cjs +1 -0
- package/dist/styled/components/ui/recipes/widget-toggle.js +35 -0
- package/dist/styled/index.cjs +1 -0
- package/dist/styled/index.js +177 -0
- package/dist/styled/inkeep.css.cjs +4049 -0
- package/dist/styled/inkeep.css.js +4053 -0
- package/dist/styled/utils.cjs +1 -0
- package/dist/styled/utils.js +11 -0
- package/dist/theme/color-utils.cjs +1 -0
- package/dist/theme/color-utils.js +21 -0
- package/dist/theme/colors.cjs +1 -0
- package/dist/theme/colors.js +143 -0
- package/dist/theme/index.cjs +1 -0
- package/dist/theme/index.js +58 -0
- package/dist/theme/utils/create-css-variables.cjs +1 -0
- package/dist/theme/utils/create-css-variables.js +24 -0
- package/dist/theme/utils/generate-theme-variables.cjs +1 -0
- package/dist/theme/utils/generate-theme-variables.js +34 -0
- package/dist/types/message.cjs +1 -0
- package/dist/types/message.js +5 -0
- package/dist/types/types.d.cts +1754 -0
- package/dist/types/types.d.ts +1754 -0
- package/package.json +132 -39
- package/LICENSE.md +0 -51
- package/dist/assets/index-3anqgmEs.js +0 -49
- package/dist/assets/index-CF_BRP1w.css +0 -1
- package/dist/index.html +0 -14
|
@@ -0,0 +1,1898 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n, jsxs as R, Fragment as X } from "react/jsx-runtime";
|
|
3
|
+
import G, { memo as E, forwardRef as N, useRef as O, useState as W, useEffect as Y, useLayoutEffect as Fe, useMemo as fe } from "react";
|
|
4
|
+
import * as Me from "react-dom/client";
|
|
5
|
+
import Z from "react-textarea-autosize";
|
|
6
|
+
import * as ee from "@radix-ui/react-avatar";
|
|
7
|
+
import * as V from "@radix-ui/react-checkbox";
|
|
8
|
+
import * as B from "@radix-ui/react-popover";
|
|
9
|
+
import * as y from "@radix-ui/react-tooltip";
|
|
10
|
+
import * as x from "@radix-ui/react-scroll-area";
|
|
11
|
+
import { ItemText as Ie, Trigger as Ee, Icon as Se, Content as ke, Viewport as Be, Item as ye, ItemIndicator as Te, Root as we, Value as He } from "../atoms/select.js";
|
|
12
|
+
import { Overlay as te, Content as ie, Close as ae, Title as ne, Root as re } from "../atoms/dialog.js";
|
|
13
|
+
import Le from "../atoms/avatars/ai.js";
|
|
14
|
+
import xe from "../atoms/avatars/user.js";
|
|
15
|
+
import { CustomIcon as I } from "../atoms/icons/custom-icon.js";
|
|
16
|
+
import { BuiltInIconRenderer as T } from "../atoms/icons/built-in-icon-renderer.js";
|
|
17
|
+
import { LinkWithQueryParams as De } from "../atoms/link.js";
|
|
18
|
+
import { Markdown as $ } from "../atoms/markdown/index.js";
|
|
19
|
+
import { AttachmentItemProvider as Ce, useAttachmentItem as Q } from "../providers/attachment-item-provider.js";
|
|
20
|
+
import { useAttachmentsBar as S, AttachmentsBarProvider as Oe } from "../providers/attachments-bar-provider.js";
|
|
21
|
+
import { SourceItemProvider as We, useSourceItem as H } from "../providers/source-item-provider.js";
|
|
22
|
+
import { useInkeepConfig as p } from "../providers/config-provider.js";
|
|
23
|
+
import { useMessageFeedback as oe } from "../providers/feedback-provider.js";
|
|
24
|
+
import { MessageAttachmentsProvider as Re, useMessageAttachments as U } from "../providers/message-attachments-provider.js";
|
|
25
|
+
import { useMessage as f, MessageProvider as Ne } from "../providers/message-provider.js";
|
|
26
|
+
import { CheckboxIcon as pe } from "../atoms/icons/checkbox-icon.js";
|
|
27
|
+
import { useCopyToClipboard as J } from "../hooks/use-copy-to-clipboard.js";
|
|
28
|
+
import { FeedbackItemProvider as Ve, useFeedbackItem as se } from "../providers/feedback-item-provider.js";
|
|
29
|
+
import { maybeRender as k, dataAttr as g, getInitials as $e, getMessageContent as ve } from "../utils/misc.js";
|
|
30
|
+
import { ikp as a } from "./factory.js";
|
|
31
|
+
import { useChat as b } from "./embedded-chat/chat-provider.js";
|
|
32
|
+
import { ChatProvider as ds } from "./embedded-chat/chat-provider.js";
|
|
33
|
+
import Qe from "./tagline-logo-icon.js";
|
|
34
|
+
import { useSettleAction as Ue } from "../hooks/use-settle-action.js";
|
|
35
|
+
import { useContainerSize as Ke } from "../hooks/use-container-size.js";
|
|
36
|
+
import { useChatAction as ce } from "./embedded-chat/use-chat-action.js";
|
|
37
|
+
import { useHelpMenuState as qe, HelpMenuProvider as je, useHelpMenu as ze } from "../providers/help-menu-provider.js";
|
|
38
|
+
import { useChatForm as P } from "../providers/chat-form-provider.js";
|
|
39
|
+
import { useFormField as L, FormFieldProvider as Ge } from "../providers/form-field-provider.js";
|
|
40
|
+
import { Controller as Ye } from "react-hook-form";
|
|
41
|
+
import { highlightEmphasis as Je } from "../utils/highlight-emphasis.js";
|
|
42
|
+
import { useModal as Xe } from "./modal/modal-provider.js";
|
|
43
|
+
import { useColorModeValue as Ze } from "../../color-mode/index.js";
|
|
44
|
+
import { useComposedRefs as de } from "../utils/compose-refs.js";
|
|
45
|
+
import { composeEventHandlers as h } from "../utils/compose-event-handlers.js";
|
|
46
|
+
import { useScrollToBottom as et } from "../hooks/use-scroll-to-bottom.js";
|
|
47
|
+
import { useDebounce as tt } from "../hooks/use-debounce.js";
|
|
48
|
+
import { HoverPopoverProvider as it, useHoverPopover as ge } from "../providers/hover-popover-provider.js";
|
|
49
|
+
import { useWidgetAutoFocus as at } from "./modal/widget-auto-focus.js";
|
|
50
|
+
import { useBaseEvents as me } from "../providers/base-events-provider.js";
|
|
51
|
+
import { useShadow as nt } from "../atoms/shadow/context.js";
|
|
52
|
+
import { getIcon as rt } from "../utils/get-source-icon.js";
|
|
53
|
+
import { CITATION_ARTIFACT_TYPE as be } from "@inkeep/cxkit-react-oss/types";
|
|
54
|
+
const ot = "__intro__", st = a("div", {
|
|
55
|
+
_id: "aiChatWrapper"
|
|
56
|
+
}), nn = N((t, e) => {
|
|
57
|
+
const { ...i } = t, { isHidden: r, isMobile: o } = b(), [s, c] = Ke(), d = de(e, s), m = c?.width ? c.width > 580 : !0, l = Xe();
|
|
58
|
+
return /* @__PURE__ */ n(
|
|
59
|
+
st,
|
|
60
|
+
{
|
|
61
|
+
ref: d,
|
|
62
|
+
"data-widget-md": g(m),
|
|
63
|
+
"data-hidden": g(r),
|
|
64
|
+
"data-in-modal": g(!!l),
|
|
65
|
+
"data-mobile": g(o),
|
|
66
|
+
...i
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}), ct = a("div", {
|
|
70
|
+
_id: "aiChatRoot"
|
|
71
|
+
}), rn = (t) => {
|
|
72
|
+
const { isHidden: e } = b(), { form: i } = P();
|
|
73
|
+
return i ? null : /* @__PURE__ */ n(ct, { "data-hidden": g(e), ...t });
|
|
74
|
+
}, on = a("div", {
|
|
75
|
+
_id: "aiChatHeader"
|
|
76
|
+
}), sn = a("div", {
|
|
77
|
+
_id: "aiChatHeader__Toolbar"
|
|
78
|
+
}), cn = a("div", {
|
|
79
|
+
_id: "aiChatHeader__ToolbarHeaderWrapper"
|
|
80
|
+
}), dt = a("div", {
|
|
81
|
+
_id: "aiChatHeader__ToolbarHeader"
|
|
82
|
+
}), dn = E(
|
|
83
|
+
(t) => {
|
|
84
|
+
const { aiChatSettings: e } = p(), i = `Ask ${e.aiAssistantName || "AI"}`;
|
|
85
|
+
return /* @__PURE__ */ n(dt, { ...t, children: i });
|
|
86
|
+
}
|
|
87
|
+
), mn = a("div", {
|
|
88
|
+
_id: "aiChatContent"
|
|
89
|
+
}), ln = a(x.Root, {
|
|
90
|
+
_id: "aiChatContentScrollArea"
|
|
91
|
+
}), mt = a(x.Viewport, {
|
|
92
|
+
_id: "aiChatContentScrollArea__Viewport"
|
|
93
|
+
}), hn = N(({ children: t, ...e }, i) => {
|
|
94
|
+
const { containerRef: r } = et(), o = de(i, r);
|
|
95
|
+
return /* @__PURE__ */ n(
|
|
96
|
+
mt,
|
|
97
|
+
{
|
|
98
|
+
ref: o,
|
|
99
|
+
children: (
|
|
100
|
+
/* added this to fix an overflow issue see https://github.com/radix-ui/primitives/issues/926 */
|
|
101
|
+
/* @__PURE__ */ n("div", { "data-part": "grid", style: { display: "grid" }, children: t })
|
|
102
|
+
),
|
|
103
|
+
...e
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}), un = a(
|
|
107
|
+
x.ScrollAreaScrollbar,
|
|
108
|
+
{
|
|
109
|
+
_id: "aiChatContentScrollArea__Scrollbar"
|
|
110
|
+
}
|
|
111
|
+
), Cn = a(
|
|
112
|
+
x.ScrollAreaThumb,
|
|
113
|
+
{
|
|
114
|
+
_id: "aiChatContentScrollArea__Thumb"
|
|
115
|
+
}
|
|
116
|
+
), pn = a(x.Corner, {
|
|
117
|
+
_id: "aiChatContentScrollArea__Corner"
|
|
118
|
+
}), lt = a("div", {
|
|
119
|
+
_id: "aiChatMessages"
|
|
120
|
+
}), vn = (t) => {
|
|
121
|
+
const e = b(), { children: i, ...r } = t;
|
|
122
|
+
return /* @__PURE__ */ n(lt, { children: k(i, e), ...r });
|
|
123
|
+
}, ht = a("div", {
|
|
124
|
+
_id: "aiChatDisclaimer"
|
|
125
|
+
}), gn = E(
|
|
126
|
+
(t) => {
|
|
127
|
+
const { aiChatSettings: e } = p(), [i, r] = W(!1), o = tt(i, 100);
|
|
128
|
+
return e.disclaimerSettings?.isEnabled ? /* @__PURE__ */ n(it, { open: i, setOpen: r, children: /* @__PURE__ */ n(B.Root, { open: o, onOpenChange: r, children: /* @__PURE__ */ n(ht, { ...t }) }) }) : null;
|
|
129
|
+
}
|
|
130
|
+
), ut = a("span", {
|
|
131
|
+
_id: "aiChatDisclaimerLabel"
|
|
132
|
+
}), bn = E(
|
|
133
|
+
(t) => {
|
|
134
|
+
const { aiChatSettings: e } = p(), i = e.disclaimerSettings;
|
|
135
|
+
return /* @__PURE__ */ n(ut, { children: i?.label, ...t });
|
|
136
|
+
}
|
|
137
|
+
), Ct = a(B.Trigger, {
|
|
138
|
+
_id: "aiChatDisclaimerTrigger",
|
|
139
|
+
children: /* @__PURE__ */ n(I, { iconKey: "info" })
|
|
140
|
+
}), _n = E(
|
|
141
|
+
(t) => {
|
|
142
|
+
const { setOpen: e } = ge();
|
|
143
|
+
return /* @__PURE__ */ n(
|
|
144
|
+
Ct,
|
|
145
|
+
{
|
|
146
|
+
onMouseEnter: () => e(!0),
|
|
147
|
+
onMouseLeave: () => e(!1),
|
|
148
|
+
...t
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
), pt = a(B.Content, {
|
|
153
|
+
_id: "aiChatDisclaimerContent"
|
|
154
|
+
}), An = (t) => {
|
|
155
|
+
const { setOpen: e } = ge();
|
|
156
|
+
return /* @__PURE__ */ n(
|
|
157
|
+
pt,
|
|
158
|
+
{
|
|
159
|
+
onMouseEnter: () => e(!0),
|
|
160
|
+
onMouseLeave: () => e(!1),
|
|
161
|
+
side: "top",
|
|
162
|
+
sideOffset: 8,
|
|
163
|
+
align: "end",
|
|
164
|
+
alignOffset: -10,
|
|
165
|
+
...t
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
}, vt = a($, {
|
|
169
|
+
_id: "aiChatDisclaimerText"
|
|
170
|
+
}), Pn = E(
|
|
171
|
+
(t) => {
|
|
172
|
+
const { aiChatSettings: e } = p(), i = e.aiAssistantName, o = e.disclaimerSettings?.tooltip || `Information provided by ${i || "this AI assistant"} is not guaranteed to be accurate or comprehensive.`;
|
|
173
|
+
return /* @__PURE__ */ n(vt, { shouldOpenLinksInNewTab: !0, children: o, ...t });
|
|
174
|
+
}
|
|
175
|
+
), Fn = a(B.Arrow, {
|
|
176
|
+
_id: "aiChatDisclaimerArrow"
|
|
177
|
+
}), gt = a("div", {
|
|
178
|
+
_id: "aiChatExampleQuestions"
|
|
179
|
+
}), fn = (t) => {
|
|
180
|
+
const { aiChatSettings: e } = p(), { messages: i } = b();
|
|
181
|
+
return !e.exampleQuestions?.length || i.length ? null : /* @__PURE__ */ n(gt, { ...t });
|
|
182
|
+
}, bt = a("h3", {
|
|
183
|
+
_id: "aiChatExampleQuestionsLabel"
|
|
184
|
+
}), Mn = E(
|
|
185
|
+
(t) => {
|
|
186
|
+
const { aiChatSettings: e } = p();
|
|
187
|
+
return /* @__PURE__ */ n(bt, { children: e.exampleQuestionsLabel, ...t });
|
|
188
|
+
}
|
|
189
|
+
), _t = a("div", {
|
|
190
|
+
_id: "aiChatExampleQuestionsList"
|
|
191
|
+
}), In = E(
|
|
192
|
+
(t) => {
|
|
193
|
+
const { aiChatSettings: e } = p(), i = e.exampleQuestions, { children: r, ...o } = t;
|
|
194
|
+
return /* @__PURE__ */ n(_t, { children: k(r, i), ...o });
|
|
195
|
+
}
|
|
196
|
+
), At = a("div", {
|
|
197
|
+
_id: "aiChatExampleQuestion"
|
|
198
|
+
}), En = N((t, e) => {
|
|
199
|
+
const { aiChatSettings: i } = p(), r = i.isFirstExampleQuestionHighlighted;
|
|
200
|
+
return /* @__PURE__ */ n(At, { ref: e, "data-highlight": g(r), ...t });
|
|
201
|
+
}), Pt = a("button", {
|
|
202
|
+
_id: "aiChatExampleQuestionButton"
|
|
203
|
+
}), Sn = (t) => {
|
|
204
|
+
const { question: e, onClick: i, ...r } = t, { handleSubmit: o } = b();
|
|
205
|
+
return /* @__PURE__ */ n(
|
|
206
|
+
Pt,
|
|
207
|
+
{
|
|
208
|
+
onClick: h(i, () => o(e)),
|
|
209
|
+
children: e,
|
|
210
|
+
...r
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
}, Ft = a("div", {
|
|
214
|
+
_id: "aiChatWorkflows"
|
|
215
|
+
}), kn = (t) => {
|
|
216
|
+
const { aiChatSettings: e } = p(), { messages: i } = b();
|
|
217
|
+
return !e.workflows?.length || i.length ? null : /* @__PURE__ */ n(Ft, { ...t });
|
|
218
|
+
}, ft = a("h3", {
|
|
219
|
+
_id: "aiChatWorkflowsLabel"
|
|
220
|
+
}), Bn = E((t) => {
|
|
221
|
+
const { aiChatSettings: e } = p();
|
|
222
|
+
return /* @__PURE__ */ n(ft, { children: e.workflowsHeader, ...t });
|
|
223
|
+
}), Mt = a("div", {
|
|
224
|
+
_id: "aiChatWorkflowsList"
|
|
225
|
+
}), yn = E(
|
|
226
|
+
(t) => {
|
|
227
|
+
const { aiChatSettings: e } = p(), i = e.workflows, { children: r, ...o } = t;
|
|
228
|
+
return /* @__PURE__ */ n(Mt, { children: k(r, i), ...o });
|
|
229
|
+
}
|
|
230
|
+
), It = a("button", {
|
|
231
|
+
_id: "aiChatWorkflow"
|
|
232
|
+
}), Tn = (t) => {
|
|
233
|
+
const { workflow: e, onClick: i, ...r } = t, o = (s) => {
|
|
234
|
+
};
|
|
235
|
+
return /* @__PURE__ */ n(
|
|
236
|
+
It,
|
|
237
|
+
{
|
|
238
|
+
onClick: h(i, () => o()),
|
|
239
|
+
children: e.displayName,
|
|
240
|
+
...r
|
|
241
|
+
}
|
|
242
|
+
);
|
|
243
|
+
}, Et = a("div", {
|
|
244
|
+
_id: "aiChatMessageWrapper"
|
|
245
|
+
}), St = (t) => {
|
|
246
|
+
const { message: e, ...i } = t;
|
|
247
|
+
return e.role === "system" ? null : /* @__PURE__ */ n(Ne, { message: e, children: /* @__PURE__ */ n(Et, { "data-role": e.role, ...i }) });
|
|
248
|
+
}, wn = E(
|
|
249
|
+
(t) => {
|
|
250
|
+
const { message: e, ...i } = t, { aiChatSettings: r, baseSettings: o } = p(), s = r.aiAssistantName, c = s ? `Hi, I'm ${s}!` : "Hi!", d = r.chatSubjectName ?? o.organizationDisplayName, m = d ? `
|
|
251
|
+
|
|
252
|
+
Ask me anything about \`${d}\`.` : `
|
|
253
|
+
|
|
254
|
+
How can I help?`, C = {
|
|
255
|
+
parts: [{ type: "text", text: r.introMessage ?? `${c}${m}` }],
|
|
256
|
+
id: ot,
|
|
257
|
+
...e,
|
|
258
|
+
role: "assistant"
|
|
259
|
+
};
|
|
260
|
+
return /* @__PURE__ */ n(St, { message: C, ...i });
|
|
261
|
+
}
|
|
262
|
+
), kt = a("div", {
|
|
263
|
+
_id: "aiChatMessageHeader"
|
|
264
|
+
}), Hn = (t) => {
|
|
265
|
+
const { message: e } = f();
|
|
266
|
+
return /* @__PURE__ */ n(kt, { "data-role": e.role, ...t });
|
|
267
|
+
}, Bt = a("div", {
|
|
268
|
+
_id: "aiChatMessageLoading",
|
|
269
|
+
children: "Thinking..."
|
|
270
|
+
}), Ln = (t) => /* @__PURE__ */ n(Bt, { ...t }), yt = a("div", {
|
|
271
|
+
_id: "aiChatMessageAvatar"
|
|
272
|
+
}), xn = (t) => {
|
|
273
|
+
const { message: e } = f();
|
|
274
|
+
return /* @__PURE__ */ n(yt, { "data-role": e.role, ...t });
|
|
275
|
+
}, Tt = a(ee.Root, {
|
|
276
|
+
_id: "aiChatMessageAvatarContent"
|
|
277
|
+
}), Dn = (t) => {
|
|
278
|
+
const { message: e } = f(), { baseSettings: i } = p();
|
|
279
|
+
return /* @__PURE__ */ n(
|
|
280
|
+
Tt,
|
|
281
|
+
{
|
|
282
|
+
"data-username": g(e.role === "user" && !!i.userProperties.name),
|
|
283
|
+
"data-role": e.role,
|
|
284
|
+
...t
|
|
285
|
+
}
|
|
286
|
+
);
|
|
287
|
+
}, wt = a(ee.Fallback, {
|
|
288
|
+
_id: "aiChatMessageAvatarFallback"
|
|
289
|
+
}), On = E(
|
|
290
|
+
(t) => {
|
|
291
|
+
const { baseSettings: e } = p(), { message: i } = f();
|
|
292
|
+
return e.userProperties.name ? /* @__PURE__ */ n(
|
|
293
|
+
wt,
|
|
294
|
+
{
|
|
295
|
+
"data-role": i.role,
|
|
296
|
+
children: $e(e.userProperties.name),
|
|
297
|
+
...t
|
|
298
|
+
}
|
|
299
|
+
) : null;
|
|
300
|
+
}
|
|
301
|
+
), ue = a(ee.Image, {
|
|
302
|
+
_id: "aiChatMessageAvatarImage"
|
|
303
|
+
}), Wn = E(
|
|
304
|
+
(t) => {
|
|
305
|
+
const { onLoadingStatusChange: e, ...i } = t, {
|
|
306
|
+
aiChatSettings: r,
|
|
307
|
+
baseSettings: { userProperties: o }
|
|
308
|
+
} = p(), { message: s } = f(), { aiAssistantAvatar: c } = r ?? {}, d = typeof c == "string" ? c : c?.light, m = (typeof c == "string" ? c : c?.dark) ?? d, l = Ze(d, m), [C, v] = W(l);
|
|
309
|
+
Y(() => {
|
|
310
|
+
v(l);
|
|
311
|
+
}, [l]);
|
|
312
|
+
const u = (_) => {
|
|
313
|
+
_ === "error" && v(null);
|
|
314
|
+
};
|
|
315
|
+
return s.role === "user" ? o.name ? null : r.userAvatar ? /* @__PURE__ */ n(
|
|
316
|
+
ue,
|
|
317
|
+
{
|
|
318
|
+
"data-type": "image",
|
|
319
|
+
alt: "User avatar",
|
|
320
|
+
"data-role": s.role,
|
|
321
|
+
src: r.userAvatar,
|
|
322
|
+
...t
|
|
323
|
+
}
|
|
324
|
+
) : /* @__PURE__ */ n(
|
|
325
|
+
xe,
|
|
326
|
+
{
|
|
327
|
+
"data-type": "icon",
|
|
328
|
+
"data-role": s.role,
|
|
329
|
+
...t
|
|
330
|
+
}
|
|
331
|
+
) : C ? /* @__PURE__ */ n(
|
|
332
|
+
ue,
|
|
333
|
+
{
|
|
334
|
+
src: C,
|
|
335
|
+
alt: "AI assistant avatar",
|
|
336
|
+
"data-type": "image",
|
|
337
|
+
"data-role": s.role,
|
|
338
|
+
onLoadingStatusChange: h(
|
|
339
|
+
e,
|
|
340
|
+
u
|
|
341
|
+
),
|
|
342
|
+
...i
|
|
343
|
+
}
|
|
344
|
+
) : /* @__PURE__ */ n(
|
|
345
|
+
Le,
|
|
346
|
+
{
|
|
347
|
+
"data-type": "icon",
|
|
348
|
+
"data-role": s.role,
|
|
349
|
+
...t
|
|
350
|
+
}
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
), Ht = a("span", {
|
|
354
|
+
_id: "aiChatMessageName"
|
|
355
|
+
}), Rn = (t) => {
|
|
356
|
+
const { message: e } = f();
|
|
357
|
+
return /* @__PURE__ */ n(
|
|
358
|
+
Ht,
|
|
359
|
+
{
|
|
360
|
+
"data-role": e.role,
|
|
361
|
+
children: e.role === "user" ? "You" : "AI assistant",
|
|
362
|
+
...t
|
|
363
|
+
}
|
|
364
|
+
);
|
|
365
|
+
}, Lt = a("div", {
|
|
366
|
+
_id: "aiChatMessageContentWrapper"
|
|
367
|
+
}), Nn = (t) => {
|
|
368
|
+
const { message: e } = f(), { messageButtons: i } = b(), r = i[e.id] || [];
|
|
369
|
+
return /* @__PURE__ */ n(
|
|
370
|
+
Lt,
|
|
371
|
+
{
|
|
372
|
+
"data-role": e.role,
|
|
373
|
+
"data-has-message-buttons": g(!!r.length),
|
|
374
|
+
...t
|
|
375
|
+
}
|
|
376
|
+
);
|
|
377
|
+
}, xt = a("div", {
|
|
378
|
+
_id: "aiChatMessageContent"
|
|
379
|
+
}), Vn = (t) => {
|
|
380
|
+
const { message: e } = f();
|
|
381
|
+
return /* @__PURE__ */ n(xt, { "data-role": e.role, ...t });
|
|
382
|
+
}, Dt = a("div", {
|
|
383
|
+
_id: "aiChatMessageAttachments"
|
|
384
|
+
}), $n = (t) => {
|
|
385
|
+
const { message: e } = f(), i = [];
|
|
386
|
+
return e.role !== "user" || !i?.length ? null : /* @__PURE__ */ n(Re, { children: /* @__PURE__ */ n(Dt, { ...t }) });
|
|
387
|
+
}, Ot = a("div", {
|
|
388
|
+
_id: "aiChatMessageAttachments__List"
|
|
389
|
+
}), Qn = (t) => {
|
|
390
|
+
const { children: e, ...i } = t, r = [];
|
|
391
|
+
return r ? /* @__PURE__ */ n(Ot, { children: k(e, r), ...i }) : null;
|
|
392
|
+
}, Wt = a("div", {
|
|
393
|
+
_id: "aiChatMessageAttachments__Item"
|
|
394
|
+
}), Un = (t) => {
|
|
395
|
+
const { attachment: e, onClick: i, ...r } = t, { selectItem: o, onOpen: s } = U();
|
|
396
|
+
return /* @__PURE__ */ n(Ce, { attachment: e, children: /* @__PURE__ */ n(
|
|
397
|
+
Wt,
|
|
398
|
+
{
|
|
399
|
+
onClick: h(i, () => {
|
|
400
|
+
o(e), s();
|
|
401
|
+
}),
|
|
402
|
+
...r
|
|
403
|
+
}
|
|
404
|
+
) });
|
|
405
|
+
}, Rt = a(T, {
|
|
406
|
+
_id: "aiChatMessageAttachments__ItemIcon"
|
|
407
|
+
}), Kn = (t) => {
|
|
408
|
+
const { attachment: e } = Q(), i = e.contentType?.attachmentIcon;
|
|
409
|
+
return i ? /* @__PURE__ */ n(Rt, { iconSettings: i, ...t }) : null;
|
|
410
|
+
}, Nt = a("span", {
|
|
411
|
+
_id: "aiChatMessageAttachments__ItemTitle"
|
|
412
|
+
}), qn = (t) => {
|
|
413
|
+
const { attachment: e } = Q();
|
|
414
|
+
return /* @__PURE__ */ n(Nt, { children: e.title, ...t });
|
|
415
|
+
}, Vt = a(re, {
|
|
416
|
+
_id: "aiChatMessageAttachmentsPreview"
|
|
417
|
+
}), jn = (t) => {
|
|
418
|
+
const { onOpenChange: e, ...i } = t, { selectItem: r, isOpen: o, onClose: s, selectedItem: c } = U();
|
|
419
|
+
return /* @__PURE__ */ n(
|
|
420
|
+
Vt,
|
|
421
|
+
{
|
|
422
|
+
open: o && c !== null,
|
|
423
|
+
onOpenChange: h(e, (m) => {
|
|
424
|
+
m || (s(), r(null));
|
|
425
|
+
}),
|
|
426
|
+
...i
|
|
427
|
+
}
|
|
428
|
+
);
|
|
429
|
+
}, zn = a(te, {
|
|
430
|
+
_id: "aiChatMessageAttachmentsPreview__Overlay"
|
|
431
|
+
}), Gn = a(ie, {
|
|
432
|
+
_id: "aiChatMessageAttachmentsPreview__Content",
|
|
433
|
+
"aria-describedby": void 0
|
|
434
|
+
}), $t = a(ne, {
|
|
435
|
+
_id: "aiChatMessageAttachmentsPreview__Header"
|
|
436
|
+
}), Yn = (t) => {
|
|
437
|
+
const { selectedItem: e } = U();
|
|
438
|
+
return /* @__PURE__ */ n(
|
|
439
|
+
$t,
|
|
440
|
+
{
|
|
441
|
+
children: e?.title || "Attachment",
|
|
442
|
+
...t
|
|
443
|
+
}
|
|
444
|
+
);
|
|
445
|
+
}, Jn = a(ae, {
|
|
446
|
+
_id: "aiChatMessageAttachmentsPreview__Close",
|
|
447
|
+
children: /* @__PURE__ */ n(I, { iconKey: "close" })
|
|
448
|
+
}), Qt = a("p", {
|
|
449
|
+
_id: "aiChatMessageAttachmentsPreview__Body"
|
|
450
|
+
}), Xn = (t) => {
|
|
451
|
+
const { selectedItem: e } = U();
|
|
452
|
+
return /* @__PURE__ */ n(Qt, { children: e?.content, ...t });
|
|
453
|
+
}, Zn = (t) => {
|
|
454
|
+
const { text: e, componentStyles: i, ...r } = t, { aiChatSettings: o } = p(), { shouldOpenLinksInNewTab: s } = o;
|
|
455
|
+
return /* @__PURE__ */ n(
|
|
456
|
+
$,
|
|
457
|
+
{
|
|
458
|
+
children: e,
|
|
459
|
+
componentStyles: i,
|
|
460
|
+
shouldOpenLinksInNewTab: s,
|
|
461
|
+
...r
|
|
462
|
+
}
|
|
463
|
+
);
|
|
464
|
+
}, er = ({
|
|
465
|
+
name: t,
|
|
466
|
+
props: e,
|
|
467
|
+
componentDef: i
|
|
468
|
+
}) => {
|
|
469
|
+
const o = nt()?.shadowHost, s = O(void 0), c = O(null), d = O(null), m = O(!1), [l, C] = W(!1), [v, u] = W(!1);
|
|
470
|
+
return Y(() => {
|
|
471
|
+
s.current || (s.current = `dyn:${t}:${crypto.randomUUID()}`, C(!0));
|
|
472
|
+
}, [t]), Fe(() => {
|
|
473
|
+
if (!i || !o || !l || !s.current)
|
|
474
|
+
return;
|
|
475
|
+
const _ = s.current, M = document.createElement("div");
|
|
476
|
+
return M.setAttribute("data-component", t), M.setAttribute("slot", _), c.current = M, m.current = !1, o.appendChild(M), u(!0), () => {
|
|
477
|
+
m.current = !0, u(!1), queueMicrotask(() => {
|
|
478
|
+
try {
|
|
479
|
+
d.current && (d.current.unmount(), d.current = null);
|
|
480
|
+
} catch (A) {
|
|
481
|
+
console.debug("Ignoring unmount error:", A);
|
|
482
|
+
}
|
|
483
|
+
M.parentNode === o && M.remove(), c.current = null;
|
|
484
|
+
});
|
|
485
|
+
};
|
|
486
|
+
}, [i, o, l, t]), Y(() => {
|
|
487
|
+
const _ = c.current;
|
|
488
|
+
if (!_ || m.current) return;
|
|
489
|
+
const M = (F) => {
|
|
490
|
+
if (typeof F != "function" || F.length > 1) return !1;
|
|
491
|
+
try {
|
|
492
|
+
if (typeof F == "function" && F.constructor === Function) {
|
|
493
|
+
const w = F({});
|
|
494
|
+
return G.isValidElement(w);
|
|
495
|
+
}
|
|
496
|
+
return !1;
|
|
497
|
+
} catch {
|
|
498
|
+
return !0;
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
let A;
|
|
502
|
+
if (M(i))
|
|
503
|
+
try {
|
|
504
|
+
const F = i;
|
|
505
|
+
A = G.createElement(F, e || {});
|
|
506
|
+
} catch (F) {
|
|
507
|
+
console.error("Error creating React element from component:", F);
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
510
|
+
else if (typeof i == "function")
|
|
511
|
+
A = i(e || {}, _, null);
|
|
512
|
+
else {
|
|
513
|
+
console.error("Invalid component definition");
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
if (G.isValidElement(A) || typeof A == "string") {
|
|
517
|
+
if (m.current) return;
|
|
518
|
+
d.current || (d.current = Me.createRoot(_)), !m.current && d.current && d.current.render(A);
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
d.current && !m.current && d.current.render(null);
|
|
522
|
+
}, [i, e, v]), /* @__PURE__ */ n("slot", { name: s.current });
|
|
523
|
+
}, tr = a("div", {
|
|
524
|
+
_id: "aiChatMessagePart"
|
|
525
|
+
}), Ut = a("div", {
|
|
526
|
+
_id: "aiChatMessageToolbar"
|
|
527
|
+
}), ir = (t) => {
|
|
528
|
+
const { isLoading: e, messages: i } = b(), { message: r } = f();
|
|
529
|
+
return i.at(-1)?.id === r?.id && e || r.role === "user" ? null : /* @__PURE__ */ n(Ut, { ...t });
|
|
530
|
+
}, Kt = a("div", {
|
|
531
|
+
_id: "aiChatMessageAnnotationActions"
|
|
532
|
+
}), ar = (t) => {
|
|
533
|
+
const { children: e, ...i } = t, { message: r } = f(), { messageButtons: o } = b(), s = o[r.id] || [];
|
|
534
|
+
return /* @__PURE__ */ n(Kt, { children: k(e, s), ...i });
|
|
535
|
+
}, qt = a("a", {
|
|
536
|
+
_id: "aiChatMessageAnnotationAction"
|
|
537
|
+
}), jt = a("button", {
|
|
538
|
+
_id: "aiChatMessageAnnotationAction"
|
|
539
|
+
}), nr = (t) => {
|
|
540
|
+
const { onClick: e, action: i, ...r } = t, { handleAction: o } = ce(i), { logEvent: s } = me(), { conversationId: c } = b(), d = () => {
|
|
541
|
+
o(), s({
|
|
542
|
+
eventName: "user_escalation_indicated",
|
|
543
|
+
properties: {
|
|
544
|
+
escalationType: "contact_us",
|
|
545
|
+
conversationId: c
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
}, m = i.label || "Contact Support", l = /* @__PURE__ */ R(X, { children: [
|
|
549
|
+
i.icon && /* @__PURE__ */ n(T, { iconSettings: i.icon }),
|
|
550
|
+
m
|
|
551
|
+
] });
|
|
552
|
+
return i.action.type === "open_link" ? /* @__PURE__ */ n(
|
|
553
|
+
qt,
|
|
554
|
+
{
|
|
555
|
+
href: i.action.url,
|
|
556
|
+
target: "_blank",
|
|
557
|
+
rel: "noopener",
|
|
558
|
+
"data-type": i.action.type,
|
|
559
|
+
onClick: h(e, d),
|
|
560
|
+
children: l,
|
|
561
|
+
...r
|
|
562
|
+
}
|
|
563
|
+
) : /* @__PURE__ */ n(
|
|
564
|
+
jt,
|
|
565
|
+
{
|
|
566
|
+
"data-type": i.action.type,
|
|
567
|
+
onClick: h(e, d),
|
|
568
|
+
children: l,
|
|
569
|
+
...r
|
|
570
|
+
}
|
|
571
|
+
);
|
|
572
|
+
}, zt = a("button", {
|
|
573
|
+
_id: "aiChatMessageAction"
|
|
574
|
+
}), rr = (t) => {
|
|
575
|
+
const { action: e, onClick: i, className: r, ...o } = t, { conversationId: s } = b(), {
|
|
576
|
+
baseSettings: { onFeedback: c }
|
|
577
|
+
} = p(), { message: d } = f(), { isStreaming: m, messages: l } = b(), [C, v] = J(), { feedback: u, submitPositiveFeedback: _, setCurrentFeedback: M, currentFeedback: A } = oe(), { logEvent: F } = me(), [w, le] = Ue(), K = l.at(-1)?.id === d?.id, q = d.role === "assistant";
|
|
578
|
+
if (K && m || !q) return null;
|
|
579
|
+
const D = {
|
|
580
|
+
copy() {
|
|
581
|
+
v(ve(d)), F({
|
|
582
|
+
eventName: "assistant_message_copied",
|
|
583
|
+
properties: {
|
|
584
|
+
conversationId: s
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
},
|
|
588
|
+
upvote() {
|
|
589
|
+
_(d.id).then(() => {
|
|
590
|
+
le();
|
|
591
|
+
});
|
|
592
|
+
},
|
|
593
|
+
downvote() {
|
|
594
|
+
M(d.id);
|
|
595
|
+
}
|
|
596
|
+
}, j = {
|
|
597
|
+
copy: "Copy Message",
|
|
598
|
+
upvote: "Upvote Message",
|
|
599
|
+
downvote: "Downvote Message"
|
|
600
|
+
}, z = {
|
|
601
|
+
copy: /* @__PURE__ */ n(I, { iconKey: C ? "messageCopied" : "messageCopy" }),
|
|
602
|
+
upvote: /* @__PURE__ */ n(I, { iconKey: w ? "messageCopied" : "thumbsUp" }),
|
|
603
|
+
downvote: /* @__PURE__ */ n(I, { iconKey: "thumbsDown" })
|
|
604
|
+
}, Pe = {
|
|
605
|
+
copy: { "data-copied": g(C) },
|
|
606
|
+
upvote: {
|
|
607
|
+
"data-upvoted": g(u[d.id]?.type === "positive")
|
|
608
|
+
},
|
|
609
|
+
downvote: {
|
|
610
|
+
"data-downvoted": g(u[d.id]?.type === "negative"),
|
|
611
|
+
"data-state": A === null ? "closed" : "open"
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
return {
|
|
615
|
+
copy: !1,
|
|
616
|
+
upvote: !c,
|
|
617
|
+
downvote: !c
|
|
618
|
+
}[e] ? null : /* @__PURE__ */ n(
|
|
619
|
+
zt,
|
|
620
|
+
{
|
|
621
|
+
"data-action": e,
|
|
622
|
+
...Pe[e],
|
|
623
|
+
children: z[e],
|
|
624
|
+
"aria-label": j[e],
|
|
625
|
+
className: `${r} ${e}`,
|
|
626
|
+
onClick: h(i, D[e]),
|
|
627
|
+
...o
|
|
628
|
+
}
|
|
629
|
+
);
|
|
630
|
+
}, Gt = a("div", {
|
|
631
|
+
_id: "aiChatMessageSources"
|
|
632
|
+
}), or = (t) => {
|
|
633
|
+
const { message: e } = f();
|
|
634
|
+
return e.role !== "assistant" || !e.parts.filter(
|
|
635
|
+
(r) => r.type === "data-artifact" && r.data?.type?.toLowerCase() === be
|
|
636
|
+
)?.length ? null : /* @__PURE__ */ n(Gt, { ...t });
|
|
637
|
+
}, Yt = a("div", {
|
|
638
|
+
_id: "aiChatMessageSources__Header"
|
|
639
|
+
}), sr = (t) => /* @__PURE__ */ n(Yt, { children: "Sources", ...t }), Jt = a("div", {
|
|
640
|
+
_id: "aiChatMessageSources__List"
|
|
641
|
+
}), cr = (t) => {
|
|
642
|
+
const { message: e } = f(), { children: i, ...r } = t, {
|
|
643
|
+
baseSettings: { transformSource: o, organizationDisplayName: s },
|
|
644
|
+
aiChatSettings: { shouldOpenLinksInNewTab: c },
|
|
645
|
+
searchSettings: { tabs: d }
|
|
646
|
+
} = p();
|
|
647
|
+
if (e.role !== "assistant") return null;
|
|
648
|
+
const m = e.parts.filter(
|
|
649
|
+
(v) => v.type === "data-artifact" && v.data?.type?.toLowerCase() === be
|
|
650
|
+
);
|
|
651
|
+
if (!m?.length) return null;
|
|
652
|
+
const l = /* @__PURE__ */ new Map(), C = m.filter((v) => {
|
|
653
|
+
const u = v.data.artifactSummary.url;
|
|
654
|
+
return !u || l.has(u) ? !1 : (l.set(u, !0), !0);
|
|
655
|
+
}).map((v) => {
|
|
656
|
+
const u = v.data, _ = {
|
|
657
|
+
id: u?.artifactId,
|
|
658
|
+
title: u?.artifactSummary?.title || u?.name,
|
|
659
|
+
url: u?.artifactSummary?.url || "",
|
|
660
|
+
description: "",
|
|
661
|
+
breadcrumbs: [],
|
|
662
|
+
type: u?.artifactSummary?.record_type,
|
|
663
|
+
contentType: u?.artifactType,
|
|
664
|
+
tag: u?.artifactType
|
|
665
|
+
}, A = (o ?? ((w) => ({
|
|
666
|
+
...w,
|
|
667
|
+
shouldOpenInNewTab: c,
|
|
668
|
+
icon: rt(w)
|
|
669
|
+
})))(_, "chatSourceItem", {
|
|
670
|
+
organizationDisplayName: s,
|
|
671
|
+
tabs: d
|
|
672
|
+
}), F = A.shouldOpenInNewTab !== void 0 ? A.shouldOpenInNewTab : c;
|
|
673
|
+
return { ...A, isExternal: F };
|
|
674
|
+
});
|
|
675
|
+
return /* @__PURE__ */ n(Jt, { children: k(i, C), ...r });
|
|
676
|
+
}, Xt = a(De, {
|
|
677
|
+
_id: "aiChatMessageSourceItem"
|
|
678
|
+
}), dr = (t) => {
|
|
679
|
+
const { source: e, onClick: i, ...r } = t, { logEvent: o } = me(), { conversationId: s } = b(), c = () => {
|
|
680
|
+
o({
|
|
681
|
+
eventName: "assistant_source_item_clicked",
|
|
682
|
+
properties: {
|
|
683
|
+
conversationId: s,
|
|
684
|
+
link: e
|
|
685
|
+
}
|
|
686
|
+
});
|
|
687
|
+
};
|
|
688
|
+
return /* @__PURE__ */ n(We, { source: e, children: /* @__PURE__ */ n(
|
|
689
|
+
Xt,
|
|
690
|
+
{
|
|
691
|
+
"data-type": e.type,
|
|
692
|
+
appendToUrl: e.appendToUrl,
|
|
693
|
+
isExternal: e.isExternal,
|
|
694
|
+
"data-breadcrumbs": !!e.breadcrumbs?.length,
|
|
695
|
+
onClick: h(i, c),
|
|
696
|
+
...r
|
|
697
|
+
}
|
|
698
|
+
) });
|
|
699
|
+
}, Zt = a("div", {
|
|
700
|
+
_id: "aiChatMessageSourceItem__Breadcrumbs"
|
|
701
|
+
}), mr = (t) => {
|
|
702
|
+
const { source: e } = H();
|
|
703
|
+
return e.breadcrumbs?.length ? /* @__PURE__ */ n(Zt, { "data-type": e.type, ...t }) : null;
|
|
704
|
+
}, lr = a(I, {
|
|
705
|
+
_id: "aiChatMessageSourceItem__BreadcrumbIcon",
|
|
706
|
+
iconKey: "breadcrumbSeparator"
|
|
707
|
+
}), ei = a(T, {
|
|
708
|
+
_id: "aiChatMessageSourceItem__Icon"
|
|
709
|
+
}), hr = (t) => {
|
|
710
|
+
const { source: e } = H();
|
|
711
|
+
return /* @__PURE__ */ n(ei, { iconSettings: e.icon, "data-type": e.type, ...t });
|
|
712
|
+
}, ti = a("span", {
|
|
713
|
+
_id: "aiChatMessageSourceItem__Title"
|
|
714
|
+
}), ur = (t) => {
|
|
715
|
+
const { source: e } = H();
|
|
716
|
+
return /* @__PURE__ */ n(ti, { "data-type": e.type, children: e.title, ...t });
|
|
717
|
+
}, ii = a("span", {
|
|
718
|
+
_id: "aiChatMessageSourceItem__Tag"
|
|
719
|
+
}), Cr = (t) => {
|
|
720
|
+
const { source: e } = H();
|
|
721
|
+
return /* @__PURE__ */ n(ii, { "data-type": e.type, ...t });
|
|
722
|
+
}, ai = a("span", {
|
|
723
|
+
_id: "aiChatMessageSourceItem__Description"
|
|
724
|
+
}), pr = (t) => {
|
|
725
|
+
const { source: e } = H(), { children: i, ...r } = t, o = fe(() => e.description ? Je(e.description) : [], [e.description]);
|
|
726
|
+
return o.length ? /* @__PURE__ */ n(
|
|
727
|
+
ai,
|
|
728
|
+
{
|
|
729
|
+
"data-type": e.type,
|
|
730
|
+
children: k(i, o),
|
|
731
|
+
...r
|
|
732
|
+
}
|
|
733
|
+
) : null;
|
|
734
|
+
}, ni = a("span", {
|
|
735
|
+
_id: "aiChatMessageSourceItem__DescriptionPart"
|
|
736
|
+
}), vr = (t) => {
|
|
737
|
+
const { part: e, ...i } = t, { source: r } = H();
|
|
738
|
+
return typeof e == "string" ? e : /* @__PURE__ */ n(
|
|
739
|
+
ni,
|
|
740
|
+
{
|
|
741
|
+
"data-type": r.type,
|
|
742
|
+
children: e.content,
|
|
743
|
+
"data-highlighted": g(e.highlighted),
|
|
744
|
+
...i
|
|
745
|
+
}
|
|
746
|
+
);
|
|
747
|
+
}, ri = a(I, {
|
|
748
|
+
_id: "aiChatMessageSourceItem__Indicator"
|
|
749
|
+
}), gr = (t) => {
|
|
750
|
+
const { source: e } = H();
|
|
751
|
+
return /* @__PURE__ */ n(
|
|
752
|
+
ri,
|
|
753
|
+
{
|
|
754
|
+
iconKey: e.isExternal ? "openLinkInNewTab" : "openLinkInSameTab",
|
|
755
|
+
...t
|
|
756
|
+
}
|
|
757
|
+
);
|
|
758
|
+
}, br = a("div", {
|
|
759
|
+
_id: "aiChatFooter"
|
|
760
|
+
}), _r = a("div", {
|
|
761
|
+
_id: "aiChatInput__Fieldset"
|
|
762
|
+
}), Ar = a("div", {
|
|
763
|
+
_id: "aiChatInput__Group"
|
|
764
|
+
}), oi = a("textarea", {
|
|
765
|
+
_id: "aiChatInput"
|
|
766
|
+
}), Pr = N(({ onChange: t, onKeyDown: e, ...i }, r) => {
|
|
767
|
+
const { handleInputChange: o, handleInputKeyDown: s, input: c, error: d, shouldAutoFocusInput: m, inputRef: l } = b(), { aiChatSettings: C } = p(), v = de(
|
|
768
|
+
r,
|
|
769
|
+
l
|
|
770
|
+
);
|
|
771
|
+
return at("chat", l, m), /* @__PURE__ */ n(
|
|
772
|
+
oi,
|
|
773
|
+
{
|
|
774
|
+
asChild: !0,
|
|
775
|
+
ref: v,
|
|
776
|
+
maxLength: 99999,
|
|
777
|
+
placeholder: C.placeholder,
|
|
778
|
+
value: c,
|
|
779
|
+
onChange: h(t, o),
|
|
780
|
+
onKeyDown: h(e, s),
|
|
781
|
+
disabled: !!d || C.isViewOnly,
|
|
782
|
+
...i,
|
|
783
|
+
children: /* @__PURE__ */ n(Z, {})
|
|
784
|
+
}
|
|
785
|
+
);
|
|
786
|
+
}), si = a("button", {
|
|
787
|
+
_id: "aiChatInput__SendButton"
|
|
788
|
+
}), Fr = (t) => {
|
|
789
|
+
const { handleSubmit: e, isSubmitDisabled: i, error: r } = b(), { aiChatSettings: o } = p(), { onClick: s, ...c } = t;
|
|
790
|
+
return /* @__PURE__ */ n(
|
|
791
|
+
si,
|
|
792
|
+
{
|
|
793
|
+
onClick: h(s, () => e()),
|
|
794
|
+
"aria-label": "Send message",
|
|
795
|
+
disabled: i || !!r || o.isViewOnly,
|
|
796
|
+
...c
|
|
797
|
+
}
|
|
798
|
+
);
|
|
799
|
+
}, fr = a(I, {
|
|
800
|
+
_id: "aiChatInput__SendButtonIcon",
|
|
801
|
+
iconKey: "chatSubmit"
|
|
802
|
+
}), ci = a("div", {
|
|
803
|
+
_id: "aiChatAttachmentsBar"
|
|
804
|
+
}), Mr = (t) => {
|
|
805
|
+
const e = { supportedInputs: [] };
|
|
806
|
+
return !e || !e.supportedInputs?.length ? null : /* @__PURE__ */ n(Oe, { children: /* @__PURE__ */ n(ci, { ...t }) });
|
|
807
|
+
}, di = a("div", {
|
|
808
|
+
_id: "aiChatAttachmentsBar__List"
|
|
809
|
+
}), Ir = (t) => {
|
|
810
|
+
const { children: e, ...i } = t;
|
|
811
|
+
return /* @__PURE__ */ n(di, { children: k(e, []), ...i });
|
|
812
|
+
}, mi = a("div", {
|
|
813
|
+
_id: "aiChatAttachmentsBar__Attachment"
|
|
814
|
+
}), Er = (t) => {
|
|
815
|
+
const { attachment: e, ...i } = t;
|
|
816
|
+
return /* @__PURE__ */ n(Ce, { attachment: e, children: /* @__PURE__ */ n(mi, { ...i }) });
|
|
817
|
+
}, li = a(T, {
|
|
818
|
+
_id: "aiChatAttachmentsBar__AttachmentIcon"
|
|
819
|
+
}), Sr = (t) => {
|
|
820
|
+
const { attachment: e } = Q(), i = e.contentType?.attachmentIcon;
|
|
821
|
+
return i ? /* @__PURE__ */ n(li, { iconSettings: i, ...t }) : null;
|
|
822
|
+
}, hi = a("span", {
|
|
823
|
+
_id: "aiChatAttachmentsBar__AttachmentTitle"
|
|
824
|
+
}), kr = (t) => {
|
|
825
|
+
const { attachment: e } = Q();
|
|
826
|
+
return /* @__PURE__ */ n(hi, { children: e.title, ...t });
|
|
827
|
+
}, ui = a("button", {
|
|
828
|
+
_id: "aiChatAttachmentsBar__AttachmentDelete"
|
|
829
|
+
}), Br = (t) => {
|
|
830
|
+
const { onClick: e, ...i } = t;
|
|
831
|
+
return /* @__PURE__ */ n(
|
|
832
|
+
ui,
|
|
833
|
+
{
|
|
834
|
+
"aria-label": "Remove attachment",
|
|
835
|
+
children: /* @__PURE__ */ n(I, { iconKey: "close" }),
|
|
836
|
+
onClick: h(e, () => {
|
|
837
|
+
}),
|
|
838
|
+
...i
|
|
839
|
+
}
|
|
840
|
+
);
|
|
841
|
+
}, yr = a("div", {
|
|
842
|
+
_id: "aiChatAttachmentsBar__Actions"
|
|
843
|
+
}), Tr = a(y.Tooltip, {
|
|
844
|
+
_id: "aiChatAttachmentsBar__InfoTip",
|
|
845
|
+
delayDuration: 0
|
|
846
|
+
}), wr = a(y.Trigger, {
|
|
847
|
+
_id: "aiChatAttachmentsBar__InfoTipIcon",
|
|
848
|
+
children: /* @__PURE__ */ n(I, { iconKey: "info" })
|
|
849
|
+
}), Ci = a(y.Arrow, {
|
|
850
|
+
_id: "aiChatAttachmentsBar__InfoTipArrow"
|
|
851
|
+
}), Hr = a(y.Content, {
|
|
852
|
+
_id: "aiChatAttachmentsBar__InfoTipText",
|
|
853
|
+
side: "bottom",
|
|
854
|
+
sideOffset: 3,
|
|
855
|
+
align: "center",
|
|
856
|
+
children: /* @__PURE__ */ R(X, { children: [
|
|
857
|
+
/* @__PURE__ */ n(Ci, {}),
|
|
858
|
+
"Attachments will be kept in context for the entire conversation."
|
|
859
|
+
] })
|
|
860
|
+
}), pi = a("div", {
|
|
861
|
+
_id: "aiChatAttachmentsBar__Inputs"
|
|
862
|
+
}), Lr = (t) => {
|
|
863
|
+
const { children: e, ...i } = t, r = { supportedInputs: [] };
|
|
864
|
+
return r?.supportedInputs ? /* @__PURE__ */ n(
|
|
865
|
+
pi,
|
|
866
|
+
{
|
|
867
|
+
children: k(e, r.supportedInputs),
|
|
868
|
+
...i
|
|
869
|
+
}
|
|
870
|
+
) : null;
|
|
871
|
+
}, vi = a("button", {
|
|
872
|
+
_id: "aiChatAttachmentsBar__Input"
|
|
873
|
+
}), xr = (t) => {
|
|
874
|
+
const { input: e, onClick: i, ...r } = t, o = { supportedInputs: [] }, s = [], c = () => {
|
|
875
|
+
}, { selectInput: d, onOpen: m } = S(), l = () => {
|
|
876
|
+
if (e.type === "FUNCTIONAL_MULTI_ATTACHMENT")
|
|
877
|
+
return o ? e.onInvoke(o, e, c, [...s]) : void 0;
|
|
878
|
+
d(e), m();
|
|
879
|
+
};
|
|
880
|
+
return /* @__PURE__ */ n(
|
|
881
|
+
vi,
|
|
882
|
+
{
|
|
883
|
+
children: e.displayName,
|
|
884
|
+
onClick: h(i, l),
|
|
885
|
+
...r
|
|
886
|
+
}
|
|
887
|
+
);
|
|
888
|
+
}, gi = a(re, {
|
|
889
|
+
_id: "aiChatAttachmentsBar__Modal"
|
|
890
|
+
}), Dr = (t) => {
|
|
891
|
+
const { onOpenChange: e, ...i } = t, { selectInput: r, isOpen: o, onClose: s, selectedInput: c } = S();
|
|
892
|
+
return /* @__PURE__ */ n(
|
|
893
|
+
gi,
|
|
894
|
+
{
|
|
895
|
+
open: o && c !== null,
|
|
896
|
+
onOpenChange: h(e, (m) => {
|
|
897
|
+
m || (s(), r(null));
|
|
898
|
+
}),
|
|
899
|
+
...i
|
|
900
|
+
}
|
|
901
|
+
);
|
|
902
|
+
}, Or = a(te, {
|
|
903
|
+
_id: "aiChatAttachmentsBar__ModalOverlay"
|
|
904
|
+
}), Wr = a(ie, {
|
|
905
|
+
_id: "aiChatAttachmentsBar__ModalContent",
|
|
906
|
+
"aria-describedby": void 0
|
|
907
|
+
}), Rr = a("div", {
|
|
908
|
+
_id: "aiChatAttachmentsBar__ModalHeader"
|
|
909
|
+
}), bi = a(ne, {
|
|
910
|
+
_id: "aiChatAttachmentsBar__ModalHeading"
|
|
911
|
+
}), Nr = (t) => {
|
|
912
|
+
const { selectedInput: e } = S(), i = `Add ${e?.displayName}`;
|
|
913
|
+
return /* @__PURE__ */ n(bi, { children: i, ...t });
|
|
914
|
+
}, _i = a("span", {
|
|
915
|
+
_id: "aiChatAttachmentsBar__ModalDescription"
|
|
916
|
+
}), Vr = (t) => {
|
|
917
|
+
const { selectedInput: e } = S(), i = e?.workflowModalProps?.modalHelpText;
|
|
918
|
+
return i ? /* @__PURE__ */ n(_i, { children: i, ...t }) : null;
|
|
919
|
+
}, Ai = a("div", {
|
|
920
|
+
_id: "aiChatAttachmentsBar__ModalHelp"
|
|
921
|
+
}), $r = (t) => {
|
|
922
|
+
const { children: e, ...i } = t, { selectedInput: r } = S(), o = r?.workflowModalProps?.modalHelpElement;
|
|
923
|
+
return o ? /* @__PURE__ */ n(Ai, { asChild: !e, children: e || o, ...i }) : null;
|
|
924
|
+
}, Qr = a(ae, {
|
|
925
|
+
_id: "aiChatAttachmentsBar__ModalClose",
|
|
926
|
+
children: /* @__PURE__ */ n(I, { iconKey: "close" })
|
|
927
|
+
}), Ur = a("div", {
|
|
928
|
+
_id: "aiChatAttachmentsBar__ModalBody"
|
|
929
|
+
}), Pi = a("form", {
|
|
930
|
+
_id: "aiChatAttachmentsBar__Form"
|
|
931
|
+
}), Kr = (t) => {
|
|
932
|
+
const { onSubmit: e, ...i } = t, { form: r } = S();
|
|
933
|
+
return /* @__PURE__ */ n(
|
|
934
|
+
Pi,
|
|
935
|
+
{
|
|
936
|
+
onSubmit: h(e, r.onSubmit),
|
|
937
|
+
...i
|
|
938
|
+
}
|
|
939
|
+
);
|
|
940
|
+
}, qr = a("div", {
|
|
941
|
+
_id: "aiChatAttachmentsBar__FormTitle",
|
|
942
|
+
role: "group"
|
|
943
|
+
}), Fi = a("label", {
|
|
944
|
+
_id: "aiChatAttachmentsBar__FormTitleLabel"
|
|
945
|
+
}), jr = (t) => {
|
|
946
|
+
const { form: e, selectedInput: i } = S();
|
|
947
|
+
return /* @__PURE__ */ n(
|
|
948
|
+
Fi,
|
|
949
|
+
{
|
|
950
|
+
htmlFor: `${i?.id}-title`,
|
|
951
|
+
children: e.labels.title,
|
|
952
|
+
...t
|
|
953
|
+
}
|
|
954
|
+
);
|
|
955
|
+
}, fi = a("input", {
|
|
956
|
+
_id: "aiChatAttachmentsBar__FormTitleInput"
|
|
957
|
+
}), zr = (t) => {
|
|
958
|
+
const { onChange: e, ...i } = t, { form: r, selectedInput: o } = S();
|
|
959
|
+
return /* @__PURE__ */ n(
|
|
960
|
+
fi,
|
|
961
|
+
{
|
|
962
|
+
name: "title",
|
|
963
|
+
value: r.data.title,
|
|
964
|
+
id: `${o?.id}-title`,
|
|
965
|
+
"data-invalid": g(!!r.errors.title),
|
|
966
|
+
"aria-invalid": !!r.errors.title,
|
|
967
|
+
onChange: h(e, r.onChange),
|
|
968
|
+
...i
|
|
969
|
+
}
|
|
970
|
+
);
|
|
971
|
+
}, Mi = a("span", {
|
|
972
|
+
_id: "aiChatAttachmentsBar__FormTitleError"
|
|
973
|
+
}), Gr = (t) => {
|
|
974
|
+
const { form: e } = S();
|
|
975
|
+
return e.errors.title ? /* @__PURE__ */ n(
|
|
976
|
+
Mi,
|
|
977
|
+
{
|
|
978
|
+
"aria-live": "polite",
|
|
979
|
+
children: e.errors.title,
|
|
980
|
+
...t
|
|
981
|
+
}
|
|
982
|
+
) : null;
|
|
983
|
+
}, Yr = a("div", {
|
|
984
|
+
_id: "aiChatAttachmentsBar__FormTitle",
|
|
985
|
+
role: "group"
|
|
986
|
+
}), Ii = a("label", {
|
|
987
|
+
_id: "aiChatAttachmentsBar__FormContentLabel"
|
|
988
|
+
}), Jr = (t) => {
|
|
989
|
+
const { form: e, selectedInput: i } = S();
|
|
990
|
+
return /* @__PURE__ */ n(
|
|
991
|
+
Ii,
|
|
992
|
+
{
|
|
993
|
+
htmlFor: `${i?.id}-content`,
|
|
994
|
+
children: e.labels.content,
|
|
995
|
+
...t
|
|
996
|
+
}
|
|
997
|
+
);
|
|
998
|
+
}, Ei = a("textarea", {
|
|
999
|
+
_id: "aiChatAttachmentsBar__FormTitleInput"
|
|
1000
|
+
}), Xr = (t) => {
|
|
1001
|
+
const { onChange: e, ...i } = t, { form: r, selectedInput: o } = S();
|
|
1002
|
+
return /* @__PURE__ */ n(
|
|
1003
|
+
Ei,
|
|
1004
|
+
{
|
|
1005
|
+
asChild: !0,
|
|
1006
|
+
rows: 4,
|
|
1007
|
+
name: "content",
|
|
1008
|
+
value: r.data.content,
|
|
1009
|
+
id: `${o?.id}-content`,
|
|
1010
|
+
"data-invalid": g(!!r.errors.content),
|
|
1011
|
+
"aria-invalid": !!r.errors.content,
|
|
1012
|
+
onChange: h(e, r.onChange),
|
|
1013
|
+
...i,
|
|
1014
|
+
children: /* @__PURE__ */ n(Z, { maxRows: 10 })
|
|
1015
|
+
}
|
|
1016
|
+
);
|
|
1017
|
+
}, Si = a("span", {
|
|
1018
|
+
_id: "aiChatAttachmentsBar__FormContentError"
|
|
1019
|
+
}), Zr = (t) => {
|
|
1020
|
+
const { form: e } = S();
|
|
1021
|
+
return e.errors.content ? /* @__PURE__ */ n(
|
|
1022
|
+
Si,
|
|
1023
|
+
{
|
|
1024
|
+
"aria-live": "polite",
|
|
1025
|
+
children: e.errors.content,
|
|
1026
|
+
...t
|
|
1027
|
+
}
|
|
1028
|
+
) : null;
|
|
1029
|
+
}, eo = a("button", {
|
|
1030
|
+
_id: "aiChatAttachmentsBar__FormSubmitButton",
|
|
1031
|
+
children: "Upload",
|
|
1032
|
+
type: "submit"
|
|
1033
|
+
}), to = a("div", {
|
|
1034
|
+
_id: "aiChatActionBar"
|
|
1035
|
+
}), io = a("div", {
|
|
1036
|
+
_id: "aiChat__ChatActions"
|
|
1037
|
+
}), ao = a("div", {
|
|
1038
|
+
_id: "aiChatTagline__Container"
|
|
1039
|
+
}), no = a("span", {
|
|
1040
|
+
_id: "aiChatTagline__Text",
|
|
1041
|
+
children: "Powered by"
|
|
1042
|
+
}), ro = a(Qe, {
|
|
1043
|
+
_id: "aiChatTagline__Logo"
|
|
1044
|
+
}), oo = a("a", {
|
|
1045
|
+
_id: "aiChatTagline__BrandName",
|
|
1046
|
+
children: "inkeep",
|
|
1047
|
+
href: "https://www.inkeep.com/",
|
|
1048
|
+
target: "_blank",
|
|
1049
|
+
rel: "noopener noreferrer"
|
|
1050
|
+
}), ki = a(y.Trigger, {
|
|
1051
|
+
_id: "aiChat__ChatAction"
|
|
1052
|
+
}), _e = (t) => {
|
|
1053
|
+
const { action: e, onClick: i, className: r, ...o } = t, s = {}, { clear: c, stop: d, isLoading: m, isStreaming: l, messages: C } = b(), { conversationId: v } = b(), { aiChatSettings: u } = p(), [_, M] = J(), [
|
|
1054
|
+
A
|
|
1055
|
+
/* copyShareUri */
|
|
1056
|
+
] = J();
|
|
1057
|
+
if ({
|
|
1058
|
+
help: !1,
|
|
1059
|
+
copy: C.length === 0 || !u.isCopyChatButtonVisible || m || l,
|
|
1060
|
+
share: C.length === 0 || !u.isShareButtonVisible || !v || !!s || m || l,
|
|
1061
|
+
clear: C.length === 0 || u.isViewOnly || m || l,
|
|
1062
|
+
stop: !m && !l
|
|
1063
|
+
}[e]) return null;
|
|
1064
|
+
const K = {
|
|
1065
|
+
// Help actions are handled by HelpAction component
|
|
1066
|
+
help: () => {
|
|
1067
|
+
},
|
|
1068
|
+
copy: () => {
|
|
1069
|
+
const he = C.map((D) => {
|
|
1070
|
+
const j = `**${D.role === "assistant" ? "AI Assistant" : "User"}**`, z = ve(D);
|
|
1071
|
+
return `${j}
|
|
1072
|
+
|
|
1073
|
+
${z}`;
|
|
1074
|
+
}).join(`
|
|
1075
|
+
|
|
1076
|
+
---
|
|
1077
|
+
|
|
1078
|
+
`);
|
|
1079
|
+
M(he);
|
|
1080
|
+
},
|
|
1081
|
+
share: async () => {
|
|
1082
|
+
},
|
|
1083
|
+
clear: c,
|
|
1084
|
+
stop: d
|
|
1085
|
+
}, q = {
|
|
1086
|
+
copy: _,
|
|
1087
|
+
share: A
|
|
1088
|
+
};
|
|
1089
|
+
return /* @__PURE__ */ n(y.Tooltip, { delayDuration: 0, open: q[e], children: /* @__PURE__ */ n(
|
|
1090
|
+
ki,
|
|
1091
|
+
{
|
|
1092
|
+
"data-type": e,
|
|
1093
|
+
"data-copied": g(_ || A),
|
|
1094
|
+
className: `${r} ${e}`,
|
|
1095
|
+
children: /* @__PURE__ */ n(yi, { action: e }),
|
|
1096
|
+
onClick: h(i, K[e]),
|
|
1097
|
+
...o
|
|
1098
|
+
}
|
|
1099
|
+
) });
|
|
1100
|
+
}, Bi = a("span", {
|
|
1101
|
+
_id: "aiChat__ChatActionLabel"
|
|
1102
|
+
}), yi = (t) => {
|
|
1103
|
+
const { action: e, ...i } = t, { aiChatSettings: r } = p(), o = r.toolbarButtonLabels ?? {}, s = {
|
|
1104
|
+
help: o.getHelp ?? "Get Help",
|
|
1105
|
+
copy: o.copyChat ?? "Copy",
|
|
1106
|
+
share: o.share ?? "Share",
|
|
1107
|
+
clear: o.clear ?? "Clear",
|
|
1108
|
+
stop: o.stop ?? "Stop"
|
|
1109
|
+
};
|
|
1110
|
+
return /* @__PURE__ */ n(Bi, { children: s[e], ...i });
|
|
1111
|
+
}, Ti = a(y.TooltipContent, {
|
|
1112
|
+
_id: "aiChat__ChatActionFeeback"
|
|
1113
|
+
}), so = (t) => {
|
|
1114
|
+
const { action: e, children: i, ...r } = t, o = {
|
|
1115
|
+
copy: "Copied!",
|
|
1116
|
+
share: "Link copied!"
|
|
1117
|
+
};
|
|
1118
|
+
return /* @__PURE__ */ R(Ti, { sideOffset: 5, ...r, children: [
|
|
1119
|
+
/* @__PURE__ */ n(y.Arrow, {}),
|
|
1120
|
+
i || o[e]
|
|
1121
|
+
] });
|
|
1122
|
+
}, wi = a(B.Root, {
|
|
1123
|
+
_id: "aiChatHelpActions"
|
|
1124
|
+
}), co = (t) => {
|
|
1125
|
+
const { children: e, ...i } = t, { aiChatSettings: r } = p(), { getHelpOptions: o } = r;
|
|
1126
|
+
if (!o || (o ?? []).length === 0)
|
|
1127
|
+
return null;
|
|
1128
|
+
const { _pinned: s, _unpinned: c } = o.reduce(
|
|
1129
|
+
(C, v) => {
|
|
1130
|
+
const u = v.isPinnedToToolbar ? "_pinned" : "_unpinned";
|
|
1131
|
+
return { ...C, [u]: [...C[u], v] };
|
|
1132
|
+
},
|
|
1133
|
+
{ _pinned: [], _unpinned: [] }
|
|
1134
|
+
), d = c.length === 1 ? [...s, c[0]] : s, m = c.length === 1 ? [] : c, l = qe();
|
|
1135
|
+
return /* @__PURE__ */ n(je, { value: l, children: /* @__PURE__ */ n(
|
|
1136
|
+
wi,
|
|
1137
|
+
{
|
|
1138
|
+
open: l.open,
|
|
1139
|
+
onOpenChange: l.setOpen,
|
|
1140
|
+
children: k(e, { pinned: d, unpinned: m }),
|
|
1141
|
+
...i
|
|
1142
|
+
}
|
|
1143
|
+
) });
|
|
1144
|
+
}, Hi = a(_e, {
|
|
1145
|
+
_id: "aiChatHelpAction",
|
|
1146
|
+
action: "help"
|
|
1147
|
+
}), Li = a("a", {
|
|
1148
|
+
_id: "aiChatHelpAction",
|
|
1149
|
+
target: "_blank",
|
|
1150
|
+
rel: "noreferrer"
|
|
1151
|
+
}), mo = (t) => {
|
|
1152
|
+
const { action: e, onClick: i, ...r } = t, { handleAction: o, logHelpAction: s } = ce(e), c = e.action.type, d = {
|
|
1153
|
+
"aria-label": e.name,
|
|
1154
|
+
"data-name": e.name,
|
|
1155
|
+
children: e.name,
|
|
1156
|
+
onClick: h(i, () => {
|
|
1157
|
+
o(), s();
|
|
1158
|
+
}),
|
|
1159
|
+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
1160
|
+
...r
|
|
1161
|
+
};
|
|
1162
|
+
return c === "open_link" ? /* @__PURE__ */ n(Li, { href: e.action.url, ...d }) : /* @__PURE__ */ n(Hi, { ...d });
|
|
1163
|
+
}, xi = a(B.Trigger, {
|
|
1164
|
+
_id: "aiChatHelpActions__Trigger"
|
|
1165
|
+
}), lo = E(
|
|
1166
|
+
(t) => {
|
|
1167
|
+
const { aiChatSettings: e } = p();
|
|
1168
|
+
return /* @__PURE__ */ n(_e, { action: "help", ...t, asChild: !0, children: /* @__PURE__ */ n(xi, { children: e.toolbarButtonLabels?.getHelp ?? "Get Help" }) });
|
|
1169
|
+
}
|
|
1170
|
+
), Di = a(B.Content, {
|
|
1171
|
+
_id: "aiChatHelpActions__Menu"
|
|
1172
|
+
}), ho = (t) => /* @__PURE__ */ n(
|
|
1173
|
+
Di,
|
|
1174
|
+
{
|
|
1175
|
+
side: "top",
|
|
1176
|
+
sideOffset: 8,
|
|
1177
|
+
align: "center",
|
|
1178
|
+
alignOffset: -10,
|
|
1179
|
+
...t
|
|
1180
|
+
}
|
|
1181
|
+
), uo = a(B.Arrow, {
|
|
1182
|
+
_id: "aiChatHelpActions__MenuArrow"
|
|
1183
|
+
}), Co = (t) => {
|
|
1184
|
+
const { action: e, onClick: i, ...r } = t, { handleAction: o, logHelpAction: s } = ce(e), { setOpen: c } = ze(), d = () => {
|
|
1185
|
+
o({
|
|
1186
|
+
onOpenForm: () => c(!1)
|
|
1187
|
+
}), s();
|
|
1188
|
+
}, m = e.action.type, l = a(m === "open_link" ? "a" : "button", {
|
|
1189
|
+
_id: "aiChatHelpActions__MenuItem",
|
|
1190
|
+
children: e.name,
|
|
1191
|
+
"aria-label": e.name,
|
|
1192
|
+
"data-name": e.name,
|
|
1193
|
+
"data-type": e.action.type,
|
|
1194
|
+
...m === "open_link" && {
|
|
1195
|
+
href: e.action.url,
|
|
1196
|
+
target: "_blank",
|
|
1197
|
+
rel: "noopener"
|
|
1198
|
+
},
|
|
1199
|
+
onClick: h(i, d)
|
|
1200
|
+
});
|
|
1201
|
+
return /* @__PURE__ */ n(l, { ...r });
|
|
1202
|
+
}, Oi = a(T, {
|
|
1203
|
+
_id: "aiChatHelpActions_MenuItemIcon"
|
|
1204
|
+
}), po = (t) => {
|
|
1205
|
+
const { action: e, ...i } = t;
|
|
1206
|
+
return e.icon ? /* @__PURE__ */ n(Oi, { iconSettings: e.icon, ...i }) : null;
|
|
1207
|
+
}, Wi = a(re, {
|
|
1208
|
+
_id: "aiChatFeedbackModal"
|
|
1209
|
+
}), vo = (t) => {
|
|
1210
|
+
const { onOpenChange: e, ...i } = t, { currentFeedback: r, setCurrentFeedback: o } = oe();
|
|
1211
|
+
return /* @__PURE__ */ n(
|
|
1212
|
+
Wi,
|
|
1213
|
+
{
|
|
1214
|
+
open: r !== null,
|
|
1215
|
+
onOpenChange: h(e, () => o(null)),
|
|
1216
|
+
...i
|
|
1217
|
+
}
|
|
1218
|
+
);
|
|
1219
|
+
}, go = a(te, {
|
|
1220
|
+
_id: "aiChatFeedbackModal__Overlay"
|
|
1221
|
+
}), bo = a(ie, {
|
|
1222
|
+
_id: "aiChatFeedbackModal__Content",
|
|
1223
|
+
"aria-describedby": void 0
|
|
1224
|
+
}), _o = a(ne, {
|
|
1225
|
+
_id: "aiChatFeedbackModal__Header",
|
|
1226
|
+
children: "Help improve my answers!"
|
|
1227
|
+
}), Ao = a(ae, {
|
|
1228
|
+
_id: "aiChatFeedbackModal__Close",
|
|
1229
|
+
children: /* @__PURE__ */ n(I, { iconKey: "close" })
|
|
1230
|
+
}), Po = a("div", {
|
|
1231
|
+
_id: "aiChatFeedbackModal__Body"
|
|
1232
|
+
}), Ri = a("form", {
|
|
1233
|
+
_id: "aiChatFeedbackForm"
|
|
1234
|
+
}), Fo = (t) => {
|
|
1235
|
+
const { onSubmit: e, ...i } = t, { submitNegativeFeedback: r, currentFeedback: o, setCurrentFeedback: s } = oe();
|
|
1236
|
+
return /* @__PURE__ */ n(Ri, { onSubmit: h(e, (d) => {
|
|
1237
|
+
d.preventDefault();
|
|
1238
|
+
const m = d.target, l = new FormData(m), C = Object.fromEntries(l.entries());
|
|
1239
|
+
o && (r(o, C), s(null));
|
|
1240
|
+
}), ...i });
|
|
1241
|
+
}, Ni = a("div", {
|
|
1242
|
+
_id: "aiChatFeedbackItem"
|
|
1243
|
+
}), fo = (t) => {
|
|
1244
|
+
const { name: e, ...i } = t;
|
|
1245
|
+
return /* @__PURE__ */ n(Ve, { name: e, children: /* @__PURE__ */ n(Ni, { ...i }) });
|
|
1246
|
+
}, Vi = a(V.Root, {
|
|
1247
|
+
_id: "aiChatFeedbackItem__Checkbox"
|
|
1248
|
+
}), Mo = (t) => {
|
|
1249
|
+
const { name: e, focusItem: i } = se(), { onCheckedChange: r, ...o } = t, s = (c) => {
|
|
1250
|
+
c && i?.current?.focus();
|
|
1251
|
+
};
|
|
1252
|
+
return /* @__PURE__ */ n(
|
|
1253
|
+
Vi,
|
|
1254
|
+
{
|
|
1255
|
+
id: `feedback-${e}`,
|
|
1256
|
+
name: e,
|
|
1257
|
+
onCheckedChange: h(r, s),
|
|
1258
|
+
...o
|
|
1259
|
+
}
|
|
1260
|
+
);
|
|
1261
|
+
}, Io = a(V.Indicator, {
|
|
1262
|
+
_id: "aiChatFeedbackItem__CheckboxIndicator",
|
|
1263
|
+
children: /* @__PURE__ */ n(pe, {})
|
|
1264
|
+
}), $i = a("label", {
|
|
1265
|
+
_id: "aiChatFeedbackItem__Label"
|
|
1266
|
+
}), Eo = (t) => {
|
|
1267
|
+
const { name: e } = se(), i = {
|
|
1268
|
+
unrelated_response: "Didn't answer my question",
|
|
1269
|
+
inaccurate_statement: "Inaccurate statement",
|
|
1270
|
+
inaccurate_code_snippet: "Inaccurate code snippet",
|
|
1271
|
+
irrelevant_citations: "Irrelevant citations"
|
|
1272
|
+
};
|
|
1273
|
+
return /* @__PURE__ */ n($i, { htmlFor: `feedback-${e}`, children: i[e], ...t });
|
|
1274
|
+
}, Qi = a("textarea", {
|
|
1275
|
+
_id: "aiChatFeedbackItem__Description",
|
|
1276
|
+
placeholder: "Please describe"
|
|
1277
|
+
}), So = (t) => {
|
|
1278
|
+
const { name: e, focusItem: i } = se();
|
|
1279
|
+
return /* @__PURE__ */ n(
|
|
1280
|
+
Qi,
|
|
1281
|
+
{
|
|
1282
|
+
ref: i,
|
|
1283
|
+
name: `${e}:description`,
|
|
1284
|
+
...t
|
|
1285
|
+
}
|
|
1286
|
+
);
|
|
1287
|
+
}, ko = a("button", {
|
|
1288
|
+
_id: "aiChatFeedbackForm__SubmitButton",
|
|
1289
|
+
children: "Submit",
|
|
1290
|
+
type: "submit"
|
|
1291
|
+
}), Ui = a("div", {
|
|
1292
|
+
_id: "aiChatForm__Wrapper"
|
|
1293
|
+
}), Bo = (t) => {
|
|
1294
|
+
const { form: e } = P();
|
|
1295
|
+
return e ? /* @__PURE__ */ n(Ui, { ...t }) : null;
|
|
1296
|
+
}, Ki = a("form", {
|
|
1297
|
+
_id: "aiChatForm"
|
|
1298
|
+
}), yo = (t) => {
|
|
1299
|
+
const { onSubmit: e, ...i } = t, { conversationId: r, messages: o } = b(), { handleSubmit: s, isSuccess: c } = P();
|
|
1300
|
+
return c ? null : /* @__PURE__ */ n(
|
|
1301
|
+
Ki,
|
|
1302
|
+
{
|
|
1303
|
+
onSubmit: h(
|
|
1304
|
+
e,
|
|
1305
|
+
(d) => s(d, { id: r, messages: o })
|
|
1306
|
+
),
|
|
1307
|
+
...i
|
|
1308
|
+
}
|
|
1309
|
+
);
|
|
1310
|
+
}, qi = a("button", {
|
|
1311
|
+
_id: "aiChatForm__Close",
|
|
1312
|
+
children: /* @__PURE__ */ n(I, { iconKey: "close" })
|
|
1313
|
+
}), To = (t) => {
|
|
1314
|
+
const { onClick: e, ...i } = t, { closeForm: r } = P();
|
|
1315
|
+
return /* @__PURE__ */ n(qi, { onClick: h(e, r), ...i });
|
|
1316
|
+
}, wo = a("div", {
|
|
1317
|
+
_id: "aiChatForm__Header"
|
|
1318
|
+
}), ji = a("h2", {
|
|
1319
|
+
_id: "aiChatForm__Heading"
|
|
1320
|
+
}), Ho = (t) => {
|
|
1321
|
+
const { form: e } = P();
|
|
1322
|
+
return e?.heading ? /* @__PURE__ */ n(ji, { children: e.heading, ...t }) : null;
|
|
1323
|
+
}, zi = a($, {
|
|
1324
|
+
_id: "aiChatForm__Description"
|
|
1325
|
+
}), Lo = (t) => {
|
|
1326
|
+
const { form: e } = P();
|
|
1327
|
+
return e?.description ? /* @__PURE__ */ n(zi, { children: e.description, ...t }) : null;
|
|
1328
|
+
}, Gi = a("div", {
|
|
1329
|
+
_id: "aiChatForm__Content"
|
|
1330
|
+
}), xo = (t) => {
|
|
1331
|
+
const { children: e, ...i } = t, { getFields: r } = P(), { conversationId: o } = b(), s = r(o) || [];
|
|
1332
|
+
return /* @__PURE__ */ n(Gi, { children: k(e, s), ...i });
|
|
1333
|
+
}, Yi = a("div", {
|
|
1334
|
+
_id: "aiChatForm__Field"
|
|
1335
|
+
}), Do = (t) => {
|
|
1336
|
+
const { field: e, autoFocus: i, ...r } = t, { control: o, errors: s } = P();
|
|
1337
|
+
return /* @__PURE__ */ n(
|
|
1338
|
+
Ye,
|
|
1339
|
+
{
|
|
1340
|
+
name: e.name,
|
|
1341
|
+
control: o,
|
|
1342
|
+
rules: { required: e.isRequired ? `${e.label} is required.` : void 0 },
|
|
1343
|
+
render: ({ field: c }) => {
|
|
1344
|
+
const d = c.value !== void 0 || e.inputType === "file";
|
|
1345
|
+
return /* @__PURE__ */ n(
|
|
1346
|
+
Ge,
|
|
1347
|
+
{
|
|
1348
|
+
"data-invalid": g(!!s[e.name]),
|
|
1349
|
+
field: e,
|
|
1350
|
+
fieldProps: c,
|
|
1351
|
+
autoFocus: i,
|
|
1352
|
+
children: d && /* @__PURE__ */ n(
|
|
1353
|
+
Yi,
|
|
1354
|
+
{
|
|
1355
|
+
"data-input-type": e.inputType,
|
|
1356
|
+
"data-hidden": g(e.isHidden),
|
|
1357
|
+
...r
|
|
1358
|
+
}
|
|
1359
|
+
)
|
|
1360
|
+
}
|
|
1361
|
+
);
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
);
|
|
1365
|
+
}, Ji = a("label", {
|
|
1366
|
+
_id: "aiChatForm__FieldLabel"
|
|
1367
|
+
}), Oo = (t) => {
|
|
1368
|
+
const { field: e } = L();
|
|
1369
|
+
return /* @__PURE__ */ n(
|
|
1370
|
+
Ji,
|
|
1371
|
+
{
|
|
1372
|
+
"data-required": g(e.isRequired),
|
|
1373
|
+
htmlFor: e.name,
|
|
1374
|
+
children: e.label,
|
|
1375
|
+
...t
|
|
1376
|
+
}
|
|
1377
|
+
);
|
|
1378
|
+
}, Xi = a("input", {
|
|
1379
|
+
_id: "aiChatForm__FieldText",
|
|
1380
|
+
type: "text"
|
|
1381
|
+
}), Ae = (t) => {
|
|
1382
|
+
const {
|
|
1383
|
+
field: e,
|
|
1384
|
+
error: i,
|
|
1385
|
+
fieldProps: { onChange: r, onBlur: o, ...s },
|
|
1386
|
+
autoFocus: c
|
|
1387
|
+
} = L(), { onChange: d, onBlur: m, ...l } = t;
|
|
1388
|
+
return /* @__PURE__ */ n(
|
|
1389
|
+
Xi,
|
|
1390
|
+
{
|
|
1391
|
+
id: e.name,
|
|
1392
|
+
autoFocus: c,
|
|
1393
|
+
placeholder: "placeholder" in e ? e.placeholder : void 0,
|
|
1394
|
+
"data-invalid": g(!!i),
|
|
1395
|
+
onChange: h(d, r),
|
|
1396
|
+
onBlur: h(m, o),
|
|
1397
|
+
...s,
|
|
1398
|
+
...l
|
|
1399
|
+
}
|
|
1400
|
+
);
|
|
1401
|
+
}, Wo = a(Ae, {
|
|
1402
|
+
_id: "aiChatForm__FieldEmail",
|
|
1403
|
+
type: "email"
|
|
1404
|
+
}), Zi = a("input", {
|
|
1405
|
+
_id: "aiChatForm__FieldFile",
|
|
1406
|
+
type: "file",
|
|
1407
|
+
multiple: !0
|
|
1408
|
+
}), Ro = (t) => {
|
|
1409
|
+
const {
|
|
1410
|
+
field: e,
|
|
1411
|
+
error: i,
|
|
1412
|
+
fieldProps: { value: r, onChange: o, onBlur: s, ...c },
|
|
1413
|
+
autoFocus: d
|
|
1414
|
+
} = L(), { onChange: m, onBlur: l, ...C } = t, v = (u) => {
|
|
1415
|
+
const _ = u.target.files;
|
|
1416
|
+
o(_);
|
|
1417
|
+
};
|
|
1418
|
+
return /* @__PURE__ */ n(
|
|
1419
|
+
Zi,
|
|
1420
|
+
{
|
|
1421
|
+
id: e.name,
|
|
1422
|
+
autoFocus: d,
|
|
1423
|
+
"data-value": r,
|
|
1424
|
+
"data-invalid": g(!!i),
|
|
1425
|
+
...C,
|
|
1426
|
+
...c,
|
|
1427
|
+
onChange: h(m, v),
|
|
1428
|
+
onBlur: h(l, s)
|
|
1429
|
+
}
|
|
1430
|
+
);
|
|
1431
|
+
}, No = a(Ae, {
|
|
1432
|
+
_id: "aiChatForm__FieldTextArea",
|
|
1433
|
+
type: "textarea",
|
|
1434
|
+
asChild: !0,
|
|
1435
|
+
children: /* @__PURE__ */ n(Z, { maxRows: 8 })
|
|
1436
|
+
}), ea = a(V.Root, {
|
|
1437
|
+
_id: "aiChatForm__FieldCheckbox"
|
|
1438
|
+
}), Vo = (t) => {
|
|
1439
|
+
const { field: e, error: i, fieldProps: r, autoFocus: o } = L(), { onCheckedChange: s, ...c } = t;
|
|
1440
|
+
return /* @__PURE__ */ n(
|
|
1441
|
+
ea,
|
|
1442
|
+
{
|
|
1443
|
+
id: e.name,
|
|
1444
|
+
name: e.name,
|
|
1445
|
+
autoFocus: o,
|
|
1446
|
+
"data-invalid": g(!!i),
|
|
1447
|
+
checked: r.value,
|
|
1448
|
+
onCheckedChange: h(s, r.onChange),
|
|
1449
|
+
...c
|
|
1450
|
+
}
|
|
1451
|
+
);
|
|
1452
|
+
}, $o = a(V.Indicator, {
|
|
1453
|
+
_id: "aiChatForm__FieldCheckboxIndicator",
|
|
1454
|
+
children: /* @__PURE__ */ n(pe, {})
|
|
1455
|
+
}), ta = a(we, {
|
|
1456
|
+
_id: "aiChatForm__FieldSelect"
|
|
1457
|
+
}), Qo = (t) => {
|
|
1458
|
+
const { field: e, error: i, fieldProps: r } = L(), { onValueChange: o, ...s } = t;
|
|
1459
|
+
return /* @__PURE__ */ n(
|
|
1460
|
+
ta,
|
|
1461
|
+
{
|
|
1462
|
+
name: e.name,
|
|
1463
|
+
"data-invalid": g(!!i),
|
|
1464
|
+
value: r.value,
|
|
1465
|
+
onValueChange: h(o, r.onChange),
|
|
1466
|
+
...s
|
|
1467
|
+
}
|
|
1468
|
+
);
|
|
1469
|
+
}, Uo = a(Ee, {
|
|
1470
|
+
_id: "aiChatForm__FieldSelect__Trigger"
|
|
1471
|
+
}), ia = a(He, {
|
|
1472
|
+
_id: "aiChatForm__FieldSelect__Value"
|
|
1473
|
+
}), Ko = (t) => {
|
|
1474
|
+
const { field: e } = L();
|
|
1475
|
+
return /* @__PURE__ */ n(
|
|
1476
|
+
ia,
|
|
1477
|
+
{
|
|
1478
|
+
placeholder: "placeholder" in e ? e.placeholder : void 0,
|
|
1479
|
+
...t
|
|
1480
|
+
}
|
|
1481
|
+
);
|
|
1482
|
+
}, qo = a(Se, {
|
|
1483
|
+
_id: "aiChatForm__FieldSelect__Icon",
|
|
1484
|
+
asChild: !0,
|
|
1485
|
+
children: /* @__PURE__ */ n(T, { iconSettings: { builtIn: "LuChevronDown" } })
|
|
1486
|
+
}), jo = a(ke, {
|
|
1487
|
+
_id: "aiChatForm__FieldSelect__Content",
|
|
1488
|
+
position: "popper"
|
|
1489
|
+
}), zo = a(Be, {
|
|
1490
|
+
_id: "aiChatForm__FieldSelect__Viewport"
|
|
1491
|
+
}), Go = a(ye, {
|
|
1492
|
+
_id: "aiChatForm__FieldSelect__Item"
|
|
1493
|
+
}), Yo = a(Ie, {
|
|
1494
|
+
_id: "aiChatForm__FieldSelect__ItemText"
|
|
1495
|
+
}), Jo = a(
|
|
1496
|
+
Te,
|
|
1497
|
+
{
|
|
1498
|
+
_id: "aiChatForm__FieldSelect__ItemIndicator",
|
|
1499
|
+
asChild: !0,
|
|
1500
|
+
children: /* @__PURE__ */ n(T, { iconSettings: { builtIn: "LuCheck" } })
|
|
1501
|
+
}
|
|
1502
|
+
), aa = a("span", {
|
|
1503
|
+
_id: "aiChatForm__FieldError"
|
|
1504
|
+
}), Xo = (t) => {
|
|
1505
|
+
const { error: e } = L();
|
|
1506
|
+
return e ? /* @__PURE__ */ n(aa, { children: e.message?.toString(), ...t }) : null;
|
|
1507
|
+
}, na = a("span", {
|
|
1508
|
+
_id: "aiChatForm__Error"
|
|
1509
|
+
}), Zo = (t) => {
|
|
1510
|
+
const { formError: e } = P();
|
|
1511
|
+
return e ? /* @__PURE__ */ n(na, { children: e.message, ...t }) : null;
|
|
1512
|
+
}, es = a("div", {
|
|
1513
|
+
_id: "aiChatForm__Footer"
|
|
1514
|
+
}), ra = a("button", {
|
|
1515
|
+
_id: "aiChatForm__Cancel",
|
|
1516
|
+
children: "Cancel",
|
|
1517
|
+
type: "button"
|
|
1518
|
+
}), ts = (t) => {
|
|
1519
|
+
const { onClick: e, ...i } = t, { closeForm: r } = P();
|
|
1520
|
+
return /* @__PURE__ */ n(ra, { onClick: h(e, r), ...i });
|
|
1521
|
+
}, oa = a("button", {
|
|
1522
|
+
_id: "aiChatForm__Submit",
|
|
1523
|
+
children: "Submit",
|
|
1524
|
+
type: "submit"
|
|
1525
|
+
}), is = (t) => {
|
|
1526
|
+
const { onClick: e, ...i } = t, { isSubmitting: r, form: o } = P(), s = o?.buttons.submit.label || "Submit";
|
|
1527
|
+
return /* @__PURE__ */ n(oa, { disabled: r, ...i, children: s });
|
|
1528
|
+
}, sa = a("div", {
|
|
1529
|
+
_id: "aiChatForm__Success"
|
|
1530
|
+
}), as = (t) => {
|
|
1531
|
+
const { isSuccess: e } = P();
|
|
1532
|
+
return e ? /* @__PURE__ */ n(sa, { ...t }) : null;
|
|
1533
|
+
}, ca = a("h2", {
|
|
1534
|
+
_id: "aiChatForm__SuccessHeading"
|
|
1535
|
+
}), ns = (t) => {
|
|
1536
|
+
const { form: e } = P();
|
|
1537
|
+
return /* @__PURE__ */ n(ca, { children: e?.successView?.heading, ...t });
|
|
1538
|
+
}, da = a($, {
|
|
1539
|
+
_id: "aiChatForm__SuccessMessage"
|
|
1540
|
+
}), rs = (t) => {
|
|
1541
|
+
const { form: e } = P();
|
|
1542
|
+
return /* @__PURE__ */ n(da, { children: e?.successView?.message, ...t });
|
|
1543
|
+
}, ma = a("button", {
|
|
1544
|
+
_id: "aiChatForm__SuccessButton"
|
|
1545
|
+
}), os = (t) => {
|
|
1546
|
+
const { onClick: e, ...i } = t, { form: r, closeForm: o } = P(), s = r?.successView?.doneButton;
|
|
1547
|
+
if (!s) return null;
|
|
1548
|
+
const c = s.icon && /* @__PURE__ */ n(T, { iconSettings: s.icon }), d = s.label;
|
|
1549
|
+
return /* @__PURE__ */ n(
|
|
1550
|
+
ma,
|
|
1551
|
+
{
|
|
1552
|
+
onClick: h(e, o),
|
|
1553
|
+
children: /* @__PURE__ */ R(X, { children: [
|
|
1554
|
+
c,
|
|
1555
|
+
d
|
|
1556
|
+
] }),
|
|
1557
|
+
...i
|
|
1558
|
+
}
|
|
1559
|
+
);
|
|
1560
|
+
};
|
|
1561
|
+
export {
|
|
1562
|
+
to as ActionBar,
|
|
1563
|
+
io as Actions,
|
|
1564
|
+
Mr as AttachmentsBar,
|
|
1565
|
+
yr as AttachmentsBarActions,
|
|
1566
|
+
Er as AttachmentsBarAttachment,
|
|
1567
|
+
Br as AttachmentsBarAttachmentDelete,
|
|
1568
|
+
Sr as AttachmentsBarAttachmentIcon,
|
|
1569
|
+
kr as AttachmentsBarAttachmentTitle,
|
|
1570
|
+
Kr as AttachmentsBarForm,
|
|
1571
|
+
Yr as AttachmentsBarFormContent,
|
|
1572
|
+
Zr as AttachmentsBarFormContentError,
|
|
1573
|
+
Xr as AttachmentsBarFormContentInput,
|
|
1574
|
+
Jr as AttachmentsBarFormContentLabel,
|
|
1575
|
+
eo as AttachmentsBarFormSubmitButton,
|
|
1576
|
+
qr as AttachmentsBarFormTitle,
|
|
1577
|
+
Gr as AttachmentsBarFormTitleError,
|
|
1578
|
+
zr as AttachmentsBarFormTitleInput,
|
|
1579
|
+
jr as AttachmentsBarFormTitleLabel,
|
|
1580
|
+
Tr as AttachmentsBarInfoTip,
|
|
1581
|
+
Ci as AttachmentsBarInfoTipArrow,
|
|
1582
|
+
wr as AttachmentsBarInfoTipIcon,
|
|
1583
|
+
Hr as AttachmentsBarInfoTipText,
|
|
1584
|
+
xr as AttachmentsBarInput,
|
|
1585
|
+
Lr as AttachmentsBarInputs,
|
|
1586
|
+
Ir as AttachmentsBarList,
|
|
1587
|
+
Dr as AttachmentsBarModal,
|
|
1588
|
+
Ur as AttachmentsBarModalBody,
|
|
1589
|
+
Qr as AttachmentsBarModalClose,
|
|
1590
|
+
Wr as AttachmentsBarModalContent,
|
|
1591
|
+
Vr as AttachmentsBarModalDescription,
|
|
1592
|
+
Rr as AttachmentsBarModalHeader,
|
|
1593
|
+
Nr as AttachmentsBarModalHeading,
|
|
1594
|
+
$r as AttachmentsBarModalHelp,
|
|
1595
|
+
Or as AttachmentsBarModalOverlay,
|
|
1596
|
+
_e as ChatAction,
|
|
1597
|
+
so as ChatActionFeedback,
|
|
1598
|
+
yi as ChatActionLabel,
|
|
1599
|
+
mo as ChatHelpAction,
|
|
1600
|
+
mn as Content,
|
|
1601
|
+
ln as ContentScrollArea,
|
|
1602
|
+
pn as ContentScrollAreaCorner,
|
|
1603
|
+
un as ContentScrollAreaScrollbar,
|
|
1604
|
+
Cn as ContentScrollAreaThumb,
|
|
1605
|
+
hn as ContentScrollAreaViewport,
|
|
1606
|
+
gn as Disclaimer,
|
|
1607
|
+
Fn as DisclaimerArrow,
|
|
1608
|
+
An as DisclaimerContent,
|
|
1609
|
+
bn as DisclaimerLabel,
|
|
1610
|
+
Pn as DisclaimerText,
|
|
1611
|
+
_n as DisclaimerTrigger,
|
|
1612
|
+
er as DynamicComponent,
|
|
1613
|
+
to as EmbeddedChatPrimitiveActionBar,
|
|
1614
|
+
io as EmbeddedChatPrimitiveActions,
|
|
1615
|
+
Mr as EmbeddedChatPrimitiveAttachmentsBar,
|
|
1616
|
+
yr as EmbeddedChatPrimitiveAttachmentsBarActions,
|
|
1617
|
+
Er as EmbeddedChatPrimitiveAttachmentsBarAttachment,
|
|
1618
|
+
Br as EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete,
|
|
1619
|
+
Sr as EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon,
|
|
1620
|
+
kr as EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle,
|
|
1621
|
+
Kr as EmbeddedChatPrimitiveAttachmentsBarForm,
|
|
1622
|
+
Yr as EmbeddedChatPrimitiveAttachmentsBarFormContent,
|
|
1623
|
+
Zr as EmbeddedChatPrimitiveAttachmentsBarFormContentError,
|
|
1624
|
+
Xr as EmbeddedChatPrimitiveAttachmentsBarFormContentInput,
|
|
1625
|
+
Jr as EmbeddedChatPrimitiveAttachmentsBarFormContentLabel,
|
|
1626
|
+
eo as EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton,
|
|
1627
|
+
qr as EmbeddedChatPrimitiveAttachmentsBarFormTitle,
|
|
1628
|
+
Gr as EmbeddedChatPrimitiveAttachmentsBarFormTitleError,
|
|
1629
|
+
zr as EmbeddedChatPrimitiveAttachmentsBarFormTitleInput,
|
|
1630
|
+
jr as EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel,
|
|
1631
|
+
Tr as EmbeddedChatPrimitiveAttachmentsBarInfoTip,
|
|
1632
|
+
Ci as EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow,
|
|
1633
|
+
wr as EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon,
|
|
1634
|
+
Hr as EmbeddedChatPrimitiveAttachmentsBarInfoTipText,
|
|
1635
|
+
xr as EmbeddedChatPrimitiveAttachmentsBarInput,
|
|
1636
|
+
Lr as EmbeddedChatPrimitiveAttachmentsBarInputs,
|
|
1637
|
+
Ir as EmbeddedChatPrimitiveAttachmentsBarList,
|
|
1638
|
+
Dr as EmbeddedChatPrimitiveAttachmentsBarModal,
|
|
1639
|
+
Ur as EmbeddedChatPrimitiveAttachmentsBarModalBody,
|
|
1640
|
+
Qr as EmbeddedChatPrimitiveAttachmentsBarModalClose,
|
|
1641
|
+
Wr as EmbeddedChatPrimitiveAttachmentsBarModalContent,
|
|
1642
|
+
Vr as EmbeddedChatPrimitiveAttachmentsBarModalDescription,
|
|
1643
|
+
Rr as EmbeddedChatPrimitiveAttachmentsBarModalHeader,
|
|
1644
|
+
Nr as EmbeddedChatPrimitiveAttachmentsBarModalHeading,
|
|
1645
|
+
$r as EmbeddedChatPrimitiveAttachmentsBarModalHelp,
|
|
1646
|
+
Or as EmbeddedChatPrimitiveAttachmentsBarModalOverlay,
|
|
1647
|
+
_e as EmbeddedChatPrimitiveChatAction,
|
|
1648
|
+
so as EmbeddedChatPrimitiveChatActionFeedback,
|
|
1649
|
+
yi as EmbeddedChatPrimitiveChatActionLabel,
|
|
1650
|
+
mo as EmbeddedChatPrimitiveChatHelpAction,
|
|
1651
|
+
mn as EmbeddedChatPrimitiveContent,
|
|
1652
|
+
ln as EmbeddedChatPrimitiveContentScrollArea,
|
|
1653
|
+
pn as EmbeddedChatPrimitiveContentScrollAreaCorner,
|
|
1654
|
+
un as EmbeddedChatPrimitiveContentScrollAreaScrollbar,
|
|
1655
|
+
Cn as EmbeddedChatPrimitiveContentScrollAreaThumb,
|
|
1656
|
+
hn as EmbeddedChatPrimitiveContentScrollAreaViewport,
|
|
1657
|
+
gn as EmbeddedChatPrimitiveDisclaimer,
|
|
1658
|
+
Fn as EmbeddedChatPrimitiveDisclaimerArrow,
|
|
1659
|
+
An as EmbeddedChatPrimitiveDisclaimerContent,
|
|
1660
|
+
bn as EmbeddedChatPrimitiveDisclaimerLabel,
|
|
1661
|
+
Pn as EmbeddedChatPrimitiveDisclaimerText,
|
|
1662
|
+
_n as EmbeddedChatPrimitiveDisclaimerTrigger,
|
|
1663
|
+
er as EmbeddedChatPrimitiveDynamicComponent,
|
|
1664
|
+
En as EmbeddedChatPrimitiveExampleQuestion,
|
|
1665
|
+
Sn as EmbeddedChatPrimitiveExampleQuestionButton,
|
|
1666
|
+
fn as EmbeddedChatPrimitiveExampleQuestions,
|
|
1667
|
+
Mn as EmbeddedChatPrimitiveExampleQuestionsLabel,
|
|
1668
|
+
In as EmbeddedChatPrimitiveExampleQuestionsList,
|
|
1669
|
+
Fo as EmbeddedChatPrimitiveFeedbackForm,
|
|
1670
|
+
fo as EmbeddedChatPrimitiveFeedbackItem,
|
|
1671
|
+
Mo as EmbeddedChatPrimitiveFeedbackItemCheckbox,
|
|
1672
|
+
Io as EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator,
|
|
1673
|
+
So as EmbeddedChatPrimitiveFeedbackItemDescription,
|
|
1674
|
+
Eo as EmbeddedChatPrimitiveFeedbackItemLabel,
|
|
1675
|
+
vo as EmbeddedChatPrimitiveFeedbackModal,
|
|
1676
|
+
Po as EmbeddedChatPrimitiveFeedbackModalBody,
|
|
1677
|
+
Ao as EmbeddedChatPrimitiveFeedbackModalClose,
|
|
1678
|
+
bo as EmbeddedChatPrimitiveFeedbackModalContent,
|
|
1679
|
+
_o as EmbeddedChatPrimitiveFeedbackModalHeader,
|
|
1680
|
+
go as EmbeddedChatPrimitiveFeedbackModalOverlay,
|
|
1681
|
+
ko as EmbeddedChatPrimitiveFeedbackSubmitButton,
|
|
1682
|
+
br as EmbeddedChatPrimitiveFooter,
|
|
1683
|
+
yo as EmbeddedChatPrimitiveForm,
|
|
1684
|
+
ts as EmbeddedChatPrimitiveFormCancel,
|
|
1685
|
+
To as EmbeddedChatPrimitiveFormClose,
|
|
1686
|
+
xo as EmbeddedChatPrimitiveFormContent,
|
|
1687
|
+
Lo as EmbeddedChatPrimitiveFormDescription,
|
|
1688
|
+
Zo as EmbeddedChatPrimitiveFormError,
|
|
1689
|
+
Do as EmbeddedChatPrimitiveFormField,
|
|
1690
|
+
Vo as EmbeddedChatPrimitiveFormFieldCheckbox,
|
|
1691
|
+
$o as EmbeddedChatPrimitiveFormFieldCheckboxIndicator,
|
|
1692
|
+
Wo as EmbeddedChatPrimitiveFormFieldEmail,
|
|
1693
|
+
Xo as EmbeddedChatPrimitiveFormFieldError,
|
|
1694
|
+
Ro as EmbeddedChatPrimitiveFormFieldFile,
|
|
1695
|
+
Oo as EmbeddedChatPrimitiveFormFieldLabel,
|
|
1696
|
+
Qo as EmbeddedChatPrimitiveFormFieldSelect,
|
|
1697
|
+
jo as EmbeddedChatPrimitiveFormFieldSelectContent,
|
|
1698
|
+
qo as EmbeddedChatPrimitiveFormFieldSelectIcon,
|
|
1699
|
+
Go as EmbeddedChatPrimitiveFormFieldSelectItem,
|
|
1700
|
+
Jo as EmbeddedChatPrimitiveFormFieldSelectItemIndicator,
|
|
1701
|
+
Yo as EmbeddedChatPrimitiveFormFieldSelectItemText,
|
|
1702
|
+
Uo as EmbeddedChatPrimitiveFormFieldSelectTrigger,
|
|
1703
|
+
Ko as EmbeddedChatPrimitiveFormFieldSelectValue,
|
|
1704
|
+
zo as EmbeddedChatPrimitiveFormFieldSelectViewport,
|
|
1705
|
+
Ae as EmbeddedChatPrimitiveFormFieldText,
|
|
1706
|
+
No as EmbeddedChatPrimitiveFormFieldTextArea,
|
|
1707
|
+
es as EmbeddedChatPrimitiveFormFooter,
|
|
1708
|
+
wo as EmbeddedChatPrimitiveFormHeader,
|
|
1709
|
+
Ho as EmbeddedChatPrimitiveFormHeading,
|
|
1710
|
+
is as EmbeddedChatPrimitiveFormSubmit,
|
|
1711
|
+
as as EmbeddedChatPrimitiveFormSuccess,
|
|
1712
|
+
os as EmbeddedChatPrimitiveFormSuccessButton,
|
|
1713
|
+
ns as EmbeddedChatPrimitiveFormSuccessHeading,
|
|
1714
|
+
rs as EmbeddedChatPrimitiveFormSuccessMessage,
|
|
1715
|
+
Bo as EmbeddedChatPrimitiveFormWrapper,
|
|
1716
|
+
sn as EmbeddedChatPrimitiveHeaderToolbar,
|
|
1717
|
+
co as EmbeddedChatPrimitiveHelpActions,
|
|
1718
|
+
ho as EmbeddedChatPrimitiveHelpActionsMenu,
|
|
1719
|
+
uo as EmbeddedChatPrimitiveHelpActionsMenuArrow,
|
|
1720
|
+
Co as EmbeddedChatPrimitiveHelpActionsMenuItem,
|
|
1721
|
+
po as EmbeddedChatPrimitiveHelpActionsMenuItemIcon,
|
|
1722
|
+
lo as EmbeddedChatPrimitiveHelpActionsTrigger,
|
|
1723
|
+
Pr as EmbeddedChatPrimitiveInput,
|
|
1724
|
+
_r as EmbeddedChatPrimitiveInputFieldset,
|
|
1725
|
+
Ar as EmbeddedChatPrimitiveInputGroup,
|
|
1726
|
+
wn as EmbeddedChatPrimitiveIntroMessageWrapper,
|
|
1727
|
+
Zn as EmbeddedChatPrimitiveMarkdown,
|
|
1728
|
+
rr as EmbeddedChatPrimitiveMessageAction,
|
|
1729
|
+
nr as EmbeddedChatPrimitiveMessageAnnotationAction,
|
|
1730
|
+
ar as EmbeddedChatPrimitiveMessageAnnotationActions,
|
|
1731
|
+
$n as EmbeddedChatPrimitiveMessageAttachments,
|
|
1732
|
+
Un as EmbeddedChatPrimitiveMessageAttachmentsItem,
|
|
1733
|
+
Kn as EmbeddedChatPrimitiveMessageAttachmentsItemIcon,
|
|
1734
|
+
qn as EmbeddedChatPrimitiveMessageAttachmentsItemTitle,
|
|
1735
|
+
Qn as EmbeddedChatPrimitiveMessageAttachmentsList,
|
|
1736
|
+
jn as EmbeddedChatPrimitiveMessageAttachmentsPreview,
|
|
1737
|
+
Xn as EmbeddedChatPrimitiveMessageAttachmentsPreviewBody,
|
|
1738
|
+
Jn as EmbeddedChatPrimitiveMessageAttachmentsPreviewClose,
|
|
1739
|
+
Gn as EmbeddedChatPrimitiveMessageAttachmentsPreviewContent,
|
|
1740
|
+
Yn as EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader,
|
|
1741
|
+
zn as EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay,
|
|
1742
|
+
xn as EmbeddedChatPrimitiveMessageAvatar,
|
|
1743
|
+
Dn as EmbeddedChatPrimitiveMessageAvatarContent,
|
|
1744
|
+
On as EmbeddedChatPrimitiveMessageAvatarFallback,
|
|
1745
|
+
Wn as EmbeddedChatPrimitiveMessageAvatarImage,
|
|
1746
|
+
Vn as EmbeddedChatPrimitiveMessageContent,
|
|
1747
|
+
Nn as EmbeddedChatPrimitiveMessageContentWrapper,
|
|
1748
|
+
Hn as EmbeddedChatPrimitiveMessageHeader,
|
|
1749
|
+
Ln as EmbeddedChatPrimitiveMessageLoading,
|
|
1750
|
+
Rn as EmbeddedChatPrimitiveMessageName,
|
|
1751
|
+
dr as EmbeddedChatPrimitiveMessageSourceItem,
|
|
1752
|
+
mr as EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,
|
|
1753
|
+
pr as EmbeddedChatPrimitiveMessageSourceItemDescription,
|
|
1754
|
+
vr as EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,
|
|
1755
|
+
hr as EmbeddedChatPrimitiveMessageSourceItemIcon,
|
|
1756
|
+
gr as EmbeddedChatPrimitiveMessageSourceItemIndicator,
|
|
1757
|
+
Cr as EmbeddedChatPrimitiveMessageSourceItemTag,
|
|
1758
|
+
ur as EmbeddedChatPrimitiveMessageSourceItemTitle,
|
|
1759
|
+
or as EmbeddedChatPrimitiveMessageSources,
|
|
1760
|
+
sr as EmbeddedChatPrimitiveMessageSourcesHeader,
|
|
1761
|
+
cr as EmbeddedChatPrimitiveMessageSourcesList,
|
|
1762
|
+
ir as EmbeddedChatPrimitiveMessageToolbar,
|
|
1763
|
+
St as EmbeddedChatPrimitiveMessageWrapper,
|
|
1764
|
+
vn as EmbeddedChatPrimitiveMessages,
|
|
1765
|
+
rn as EmbeddedChatPrimitiveRoot,
|
|
1766
|
+
Fr as EmbeddedChatPrimitiveSendButton,
|
|
1767
|
+
fr as EmbeddedChatPrimitiveSendButtonIcon,
|
|
1768
|
+
oo as EmbeddedChatPrimitiveTaglineBrandName,
|
|
1769
|
+
ao as EmbeddedChatPrimitiveTaglineContainer,
|
|
1770
|
+
ro as EmbeddedChatPrimitiveTaglineLogo,
|
|
1771
|
+
no as EmbeddedChatPrimitiveTaglineText,
|
|
1772
|
+
dn as EmbeddedChatPrimitiveToolbarHeader,
|
|
1773
|
+
cn as EmbeddedChatPrimitiveToolbarHeaderWrapper,
|
|
1774
|
+
Tn as EmbeddedChatPrimitiveWorkflow,
|
|
1775
|
+
kn as EmbeddedChatPrimitiveWorkflows,
|
|
1776
|
+
Bn as EmbeddedChatPrimitiveWorkflowsLabel,
|
|
1777
|
+
yn as EmbeddedChatPrimitiveWorkflowsList,
|
|
1778
|
+
nn as EmbeddedChatPrimitiveWrapper,
|
|
1779
|
+
En as ExampleQuestion,
|
|
1780
|
+
Sn as ExampleQuestionButton,
|
|
1781
|
+
fn as ExampleQuestions,
|
|
1782
|
+
Mn as ExampleQuestionsLabel,
|
|
1783
|
+
In as ExampleQuestionsList,
|
|
1784
|
+
Fo as FeedbackForm,
|
|
1785
|
+
fo as FeedbackItem,
|
|
1786
|
+
Mo as FeedbackItemCheckbox,
|
|
1787
|
+
Io as FeedbackItemCheckboxIndicator,
|
|
1788
|
+
So as FeedbackItemDescription,
|
|
1789
|
+
Eo as FeedbackItemLabel,
|
|
1790
|
+
vo as FeedbackModal,
|
|
1791
|
+
Po as FeedbackModalBody,
|
|
1792
|
+
Ao as FeedbackModalClose,
|
|
1793
|
+
bo as FeedbackModalContent,
|
|
1794
|
+
_o as FeedbackModalHeader,
|
|
1795
|
+
go as FeedbackModalOverlay,
|
|
1796
|
+
ko as FeedbackSubmitButton,
|
|
1797
|
+
br as Footer,
|
|
1798
|
+
yo as Form,
|
|
1799
|
+
ts as FormCancel,
|
|
1800
|
+
To as FormClose,
|
|
1801
|
+
xo as FormContent,
|
|
1802
|
+
Lo as FormDescription,
|
|
1803
|
+
Zo as FormError,
|
|
1804
|
+
Do as FormField,
|
|
1805
|
+
Vo as FormFieldCheckbox,
|
|
1806
|
+
$o as FormFieldCheckboxIndicator,
|
|
1807
|
+
Wo as FormFieldEmail,
|
|
1808
|
+
Xo as FormFieldError,
|
|
1809
|
+
Ro as FormFieldFile,
|
|
1810
|
+
Oo as FormFieldLabel,
|
|
1811
|
+
Qo as FormFieldSelect,
|
|
1812
|
+
jo as FormFieldSelectContent,
|
|
1813
|
+
qo as FormFieldSelectIcon,
|
|
1814
|
+
Go as FormFieldSelectItem,
|
|
1815
|
+
Jo as FormFieldSelectItemIndicator,
|
|
1816
|
+
Yo as FormFieldSelectItemText,
|
|
1817
|
+
Uo as FormFieldSelectTrigger,
|
|
1818
|
+
Ko as FormFieldSelectValue,
|
|
1819
|
+
zo as FormFieldSelectViewport,
|
|
1820
|
+
Ae as FormFieldText,
|
|
1821
|
+
No as FormFieldTextArea,
|
|
1822
|
+
es as FormFooter,
|
|
1823
|
+
wo as FormHeader,
|
|
1824
|
+
Ho as FormHeading,
|
|
1825
|
+
is as FormSubmit,
|
|
1826
|
+
as as FormSuccess,
|
|
1827
|
+
os as FormSuccessButton,
|
|
1828
|
+
ns as FormSuccessHeading,
|
|
1829
|
+
rs as FormSuccessMessage,
|
|
1830
|
+
Bo as FormWrapper,
|
|
1831
|
+
on as Header,
|
|
1832
|
+
sn as HeaderToolbar,
|
|
1833
|
+
cn as HeaderToolbarWrapper,
|
|
1834
|
+
co as HelpActions,
|
|
1835
|
+
ho as HelpActionsMenu,
|
|
1836
|
+
uo as HelpActionsMenuArrow,
|
|
1837
|
+
Co as HelpActionsMenuItem,
|
|
1838
|
+
po as HelpActionsMenuItemIcon,
|
|
1839
|
+
lo as HelpActionsTrigger,
|
|
1840
|
+
Pr as Input,
|
|
1841
|
+
_r as InputFieldset,
|
|
1842
|
+
Ar as InputGroup,
|
|
1843
|
+
wn as IntroMessageWrapper,
|
|
1844
|
+
Zn as Markdown,
|
|
1845
|
+
rr as MessageAction,
|
|
1846
|
+
nr as MessageAnnotationAction,
|
|
1847
|
+
ar as MessageAnnotationActions,
|
|
1848
|
+
$n as MessageAttachments,
|
|
1849
|
+
Un as MessageAttachmentsItem,
|
|
1850
|
+
Kn as MessageAttachmentsItemIcon,
|
|
1851
|
+
qn as MessageAttachmentsItemTitle,
|
|
1852
|
+
Qn as MessageAttachmentsList,
|
|
1853
|
+
jn as MessageAttachmentsPreview,
|
|
1854
|
+
Xn as MessageAttachmentsPreviewBody,
|
|
1855
|
+
Jn as MessageAttachmentsPreviewClose,
|
|
1856
|
+
Gn as MessageAttachmentsPreviewContent,
|
|
1857
|
+
Yn as MessageAttachmentsPreviewHeader,
|
|
1858
|
+
zn as MessageAttachmentsPreviewOverlay,
|
|
1859
|
+
xn as MessageAvatar,
|
|
1860
|
+
Dn as MessageAvatarContent,
|
|
1861
|
+
On as MessageAvatarFallback,
|
|
1862
|
+
Wn as MessageAvatarImage,
|
|
1863
|
+
Vn as MessageContent,
|
|
1864
|
+
Nn as MessageContentWrapper,
|
|
1865
|
+
Hn as MessageHeader,
|
|
1866
|
+
Ln as MessageLoading,
|
|
1867
|
+
Rn as MessageName,
|
|
1868
|
+
dr as MessageSourceItem,
|
|
1869
|
+
lr as MessageSourceItemBreadcrumbIcon,
|
|
1870
|
+
mr as MessageSourceItemBreadcrumbs,
|
|
1871
|
+
pr as MessageSourceItemDescription,
|
|
1872
|
+
vr as MessageSourceItemDescriptionPart,
|
|
1873
|
+
hr as MessageSourceItemIcon,
|
|
1874
|
+
gr as MessageSourceItemIndicator,
|
|
1875
|
+
Cr as MessageSourceItemTag,
|
|
1876
|
+
ur as MessageSourceItemTitle,
|
|
1877
|
+
or as MessageSources,
|
|
1878
|
+
sr as MessageSourcesHeader,
|
|
1879
|
+
cr as MessageSourcesList,
|
|
1880
|
+
ir as MessageToolbar,
|
|
1881
|
+
St as MessageWrapper,
|
|
1882
|
+
vn as Messages,
|
|
1883
|
+
tr as PrimitiveMessagePart,
|
|
1884
|
+
ds as Provider,
|
|
1885
|
+
rn as Root,
|
|
1886
|
+
Fr as SendButton,
|
|
1887
|
+
fr as SendButtonIcon,
|
|
1888
|
+
oo as TaglineBrandName,
|
|
1889
|
+
ao as TaglineContainer,
|
|
1890
|
+
ro as TaglineLogo,
|
|
1891
|
+
no as TaglineText,
|
|
1892
|
+
dn as ToolbarHeader,
|
|
1893
|
+
Tn as Workflow,
|
|
1894
|
+
kn as Workflows,
|
|
1895
|
+
Bn as WorkflowsLabel,
|
|
1896
|
+
yn as WorkflowsList,
|
|
1897
|
+
nn as Wrapper
|
|
1898
|
+
};
|