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