@inkeep/agents-ui 0.1.0 → 0.14.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +64 -0
- package/README.md +1 -67
- package/dist/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/color-mode/index.cjs +1 -0
- package/dist/color-mode/index.js +170 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +5093 -0
- package/dist/index.d.ts +5093 -0
- package/dist/index.js +213 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.cjs +1 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.js +8 -0
- package/dist/primitives/atoms/avatars/ai.cjs +1 -0
- package/dist/primitives/atoms/avatars/ai.js +99 -0
- package/dist/primitives/atoms/avatars/user.cjs +1 -0
- package/dist/primitives/atoms/avatars/user.js +27 -0
- package/dist/primitives/atoms/cmdk/command-score.cjs +1 -0
- package/dist/primitives/atoms/cmdk/command-score.js +46 -0
- package/dist/primitives/atoms/cmdk/index.cjs +1 -0
- package/dist/primitives/atoms/cmdk/index.js +521 -0
- package/dist/primitives/atoms/codeblock/index.cjs +1 -0
- package/dist/primitives/atoms/codeblock/index.js +40 -0
- package/dist/primitives/atoms/custom-styles.cjs +1 -0
- package/dist/primitives/atoms/custom-styles.js +57 -0
- package/dist/primitives/atoms/dialog.cjs +1 -0
- package/dist/primitives/atoms/dialog.js +226 -0
- package/dist/primitives/atoms/error-boundary.cjs +1 -0
- package/dist/primitives/atoms/error-boundary.js +9 -0
- package/dist/primitives/atoms/icons/built-in-icon-renderer.cjs +1 -0
- package/dist/primitives/atoms/icons/built-in-icon-renderer.js +51 -0
- package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -0
- package/dist/primitives/atoms/icons/built-in-icons.js +86 -0
- package/dist/primitives/atoms/icons/checkbox-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/checkbox-icon.js +24 -0
- package/dist/primitives/atoms/icons/collections/bi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/bi.js +49 -0
- package/dist/primitives/atoms/icons/collections/fi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/fi.js +29 -0
- package/dist/primitives/atoms/icons/collections/gr.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/gr.js +21 -0
- package/dist/primitives/atoms/icons/collections/io5.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/io5.js +806 -0
- package/dist/primitives/atoms/icons/collections/pi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/pi.js +49 -0
- package/dist/primitives/atoms/icons/custom-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/custom-icon.js +19 -0
- package/dist/primitives/atoms/icons/generate-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/generate-icon.js +56 -0
- package/dist/primitives/atoms/icons/index.cjs +1 -0
- package/dist/primitives/atoms/icons/index.js +6 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +24 -0
- package/dist/primitives/atoms/link.cjs +1 -0
- package/dist/primitives/atoms/link.js +35 -0
- package/dist/primitives/atoms/markdown/components.cjs +1 -0
- package/dist/primitives/atoms/markdown/components.js +73 -0
- package/dist/primitives/atoms/markdown/index.cjs +1 -0
- package/dist/primitives/atoms/markdown/index.js +115 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.cjs +1 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.js +12 -0
- package/dist/primitives/atoms/portal-with-theme.cjs +1 -0
- package/dist/primitives/atoms/portal-with-theme.js +12 -0
- package/dist/primitives/atoms/portal.cjs +1 -0
- package/dist/primitives/atoms/portal.js +19 -0
- package/dist/primitives/atoms/select.cjs +1 -0
- package/dist/primitives/atoms/select.js +785 -0
- package/dist/primitives/atoms/shadow/context.cjs +1 -0
- package/dist/primitives/atoms/shadow/context.js +54 -0
- package/dist/primitives/atoms/shadow/create.cjs +1 -0
- package/dist/primitives/atoms/shadow/create.js +56 -0
- package/dist/primitives/atoms/shadow/root.cjs +1 -0
- package/dist/primitives/atoms/shadow/root.js +22 -0
- package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.cjs +1 -0
- package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.js +11 -0
- package/dist/primitives/atoms/shadow/utils.cjs +1 -0
- package/dist/primitives/atoms/shadow/utils.js +16 -0
- package/dist/primitives/components/chat-button.cjs +1 -0
- package/dist/primitives/components/chat-button.js +46 -0
- package/dist/primitives/components/embedded-chat/chat-provider.cjs +1 -0
- package/dist/primitives/components/embedded-chat/chat-provider.js +20 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.js +38 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +160 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.js +82 -0
- package/dist/primitives/components/embedded-chat.cjs +11 -0
- package/dist/primitives/components/embedded-chat.js +1898 -0
- package/dist/primitives/components/embedded-search/search-provider.cjs +1 -0
- package/dist/primitives/components/embedded-search/search-provider.js +26 -0
- package/dist/primitives/components/embedded-search/transform-results.cjs +1 -0
- package/dist/primitives/components/embedded-search/transform-results.js +47 -0
- package/dist/primitives/components/embedded-search/url-query.cjs +1 -0
- package/dist/primitives/components/embedded-search/url-query.js +12 -0
- package/dist/primitives/components/embedded-search/use-inkeep-search.cjs +1 -0
- package/dist/primitives/components/embedded-search/use-inkeep-search.js +35 -0
- package/dist/primitives/components/embedded-search/use-search-filter.cjs +1 -0
- package/dist/primitives/components/embedded-search/use-search-filter.js +77 -0
- package/dist/primitives/components/embedded-search.cjs +1 -0
- package/dist/primitives/components/embedded-search.js +628 -0
- package/dist/primitives/components/factory.cjs +1 -0
- package/dist/primitives/components/factory.js +39 -0
- package/dist/primitives/components/index.cjs +1 -0
- package/dist/primitives/components/index.js +27 -0
- package/dist/primitives/components/modal/modal-provider.cjs +1 -0
- package/dist/primitives/components/modal/modal-provider.js +8 -0
- package/dist/primitives/components/modal/use-inkeep-modal.cjs +1 -0
- package/dist/primitives/components/modal/use-inkeep-modal.js +45 -0
- package/dist/primitives/components/modal/widget-auto-focus.cjs +1 -0
- package/dist/primitives/components/modal/widget-auto-focus.js +16 -0
- package/dist/primitives/components/modal.cjs +1 -0
- package/dist/primitives/components/modal.js +40 -0
- package/dist/primitives/components/presence.cjs +1 -0
- package/dist/primitives/components/presence.js +26 -0
- package/dist/primitives/components/searchbar.cjs +1 -0
- package/dist/primitives/components/searchbar.js +54 -0
- package/dist/primitives/components/sidebar-chat/index.cjs +1 -0
- package/dist/primitives/components/sidebar-chat/index.js +86 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.cjs +1 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.js +34 -0
- package/dist/primitives/components/tagline-logo-icon.cjs +1 -0
- package/dist/primitives/components/tagline-logo-icon.js +26 -0
- package/dist/primitives/components/use-component-trigger.cjs +1 -0
- package/dist/primitives/components/use-component-trigger.js +16 -0
- package/dist/primitives/constants/search.cjs +1 -0
- package/dist/primitives/constants/search.js +5 -0
- package/dist/primitives/hooks/index.cjs +1 -0
- package/dist/primitives/hooks/index.js +24 -0
- package/dist/primitives/hooks/use-boolean.cjs +1 -0
- package/dist/primitives/hooks/use-boolean.js +17 -0
- package/dist/primitives/hooks/use-component-classnames.cjs +1 -0
- package/dist/primitives/hooks/use-component-classnames.js +14 -0
- package/dist/primitives/hooks/use-container-size.cjs +1 -0
- package/dist/primitives/hooks/use-container-size.js +18 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.cjs +1 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.js +24 -0
- package/dist/primitives/hooks/use-debounce.cjs +1 -0
- package/dist/primitives/hooks/use-debounce.js +16 -0
- package/dist/primitives/hooks/use-instant-update.cjs +1 -0
- package/dist/primitives/hooks/use-instant-update.js +16 -0
- package/dist/primitives/hooks/use-is-mounted.cjs +1 -0
- package/dist/primitives/hooks/use-is-mounted.js +11 -0
- package/dist/primitives/hooks/use-media-query.cjs +1 -0
- package/dist/primitives/hooks/use-media-query.js +14 -0
- package/dist/primitives/hooks/use-resize-observer.cjs +1 -0
- package/dist/primitives/hooks/use-resize-observer.js +32 -0
- package/dist/primitives/hooks/use-scroll-to-bottom.cjs +1 -0
- package/dist/primitives/hooks/use-scroll-to-bottom.js +52 -0
- package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -0
- package/dist/primitives/hooks/use-scrolling-fades.js +18 -0
- package/dist/primitives/hooks/use-settle-action.cjs +1 -0
- package/dist/primitives/hooks/use-settle-action.js +11 -0
- package/dist/primitives/index.cjs +1 -0
- package/dist/primitives/index.js +155 -0
- package/dist/primitives/providers/attachment-item-provider.cjs +1 -0
- package/dist/primitives/providers/attachment-item-provider.js +13 -0
- package/dist/primitives/providers/attachments-bar-provider.cjs +1 -0
- package/dist/primitives/providers/attachments-bar-provider.js +57 -0
- package/dist/primitives/providers/base-events-provider.cjs +1 -0
- package/dist/primitives/providers/base-events-provider.js +37 -0
- package/dist/primitives/providers/chat-form-provider.cjs +1 -0
- package/dist/primitives/providers/chat-form-provider.js +109 -0
- package/dist/primitives/providers/config-provider.cjs +1 -0
- package/dist/primitives/providers/config-provider.js +38 -0
- package/dist/primitives/providers/feedback-item-provider.cjs +1 -0
- package/dist/primitives/providers/feedback-item-provider.js +16 -0
- package/dist/primitives/providers/feedback-provider.cjs +1 -0
- package/dist/primitives/providers/feedback-provider.js +83 -0
- package/dist/primitives/providers/form-field-provider.cjs +1 -0
- package/dist/primitives/providers/form-field-provider.js +17 -0
- package/dist/primitives/providers/help-menu-provider.cjs +1 -0
- package/dist/primitives/providers/help-menu-provider.js +19 -0
- package/dist/primitives/providers/hover-popover-provider.cjs +1 -0
- package/dist/primitives/providers/hover-popover-provider.js +13 -0
- package/dist/primitives/providers/index.cjs +1 -0
- package/dist/primitives/providers/index.js +57 -0
- package/dist/primitives/providers/markdown-provider.cjs +1 -0
- package/dist/primitives/providers/markdown-provider.js +8 -0
- package/dist/primitives/providers/message-attachments-provider.cjs +1 -0
- package/dist/primitives/providers/message-attachments-provider.js +27 -0
- package/dist/primitives/providers/message-provider.cjs +1 -0
- package/dist/primitives/providers/message-provider.js +14 -0
- package/dist/primitives/providers/root-provider.cjs +1 -0
- package/dist/primitives/providers/root-provider.js +21 -0
- package/dist/primitives/providers/search-events-provider.cjs +1 -0
- package/dist/primitives/providers/search-events-provider.js +17 -0
- package/dist/primitives/providers/sidebar-chat-provider.cjs +1 -0
- package/dist/primitives/providers/sidebar-chat-provider.js +41 -0
- package/dist/primitives/providers/source-item-provider.cjs +1 -0
- package/dist/primitives/providers/source-item-provider.js +13 -0
- package/dist/primitives/providers/theme-provider.cjs +3 -0
- package/dist/primitives/providers/theme-provider.js +79 -0
- package/dist/primitives/providers/widget-provider.cjs +1 -0
- package/dist/primitives/providers/widget-provider.js +8 -0
- package/dist/primitives/utils/component-ids.cjs +1 -0
- package/dist/primitives/utils/component-ids.js +309 -0
- package/dist/primitives/utils/compose-event-handlers.cjs +1 -0
- package/dist/primitives/utils/compose-event-handlers.js +10 -0
- package/dist/primitives/utils/compose-refs.cjs +1 -0
- package/dist/primitives/utils/compose-refs.js +30 -0
- package/dist/primitives/utils/default-settings.cjs +1 -0
- package/dist/primitives/utils/default-settings.js +50 -0
- package/dist/primitives/utils/form.cjs +1 -0
- package/dist/primitives/utils/form.js +17 -0
- package/dist/primitives/utils/generate-uid.cjs +1 -0
- package/dist/primitives/utils/generate-uid.js +14 -0
- package/dist/primitives/utils/get-source-icon.cjs +1 -0
- package/dist/primitives/utils/get-source-icon.js +11 -0
- package/dist/primitives/utils/highlight-emphasis.cjs +1 -0
- package/dist/primitives/utils/highlight-emphasis.js +15 -0
- package/dist/primitives/utils/merge-props.cjs +1 -0
- package/dist/primitives/utils/merge-props.js +41 -0
- package/dist/primitives/utils/misc.cjs +1 -0
- package/dist/primitives/utils/misc.js +31 -0
- package/dist/primitives/utils/split-props.cjs +1 -0
- package/dist/primitives/utils/split-props.js +10 -0
- package/dist/react/chat-button.cjs +1 -0
- package/dist/react/chat-button.js +60 -0
- package/dist/react/embedded-chat.cjs +1 -0
- package/dist/react/embedded-chat.js +380 -0
- package/dist/react/embedded-search-and-chat.cjs +1 -0
- package/dist/react/embedded-search-and-chat.impl.cjs +1 -0
- package/dist/react/embedded-search-and-chat.impl.js +43 -0
- package/dist/react/embedded-search-and-chat.js +66 -0
- package/dist/react/embedded-search.cjs +1 -0
- package/dist/react/embedded-search.js +181 -0
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.js +213 -0
- package/dist/react/modal.chat.cjs +1 -0
- package/dist/react/modal.chat.js +21 -0
- package/dist/react/modal.cjs +1 -0
- package/dist/react/modal.js +27 -0
- package/dist/react/modal.search-and-chat.cjs +1 -0
- package/dist/react/modal.search-and-chat.js +27 -0
- package/dist/react/modal.search.cjs +1 -0
- package/dist/react/modal.search.js +21 -0
- package/dist/react/searchbar.cjs +1 -0
- package/dist/react/searchbar.js +68 -0
- package/dist/react/sidebar-chat.cjs +1 -0
- package/dist/react/sidebar-chat.js +49 -0
- package/dist/react/utils.cjs +1 -0
- package/dist/react/utils.js +20 -0
- package/dist/react/widget-toggle.cjs +1 -0
- package/dist/react/widget-toggle.js +65 -0
- package/dist/styled/components/chat-button.cjs +1 -0
- package/dist/styled/components/chat-button.js +56 -0
- package/dist/styled/components/data-summary-group.cjs +1 -0
- package/dist/styled/components/data-summary-group.js +76 -0
- package/dist/styled/components/embedded-chat.cjs +1 -0
- package/dist/styled/components/embedded-chat.js +1816 -0
- package/dist/styled/components/embedded-search/results-loading.cjs +1 -0
- package/dist/styled/components/embedded-search/results-loading.js +39 -0
- package/dist/styled/components/embedded-search.cjs +1 -0
- package/dist/styled/components/embedded-search.js +680 -0
- package/dist/styled/components/index.cjs +1 -0
- package/dist/styled/components/index.js +24 -0
- package/dist/styled/components/loading-indicator.cjs +1 -0
- package/dist/styled/components/loading-indicator.js +36 -0
- package/dist/styled/components/message.cjs +1 -0
- package/dist/styled/components/message.js +140 -0
- package/dist/styled/components/modal.cjs +1 -0
- package/dist/styled/components/modal.js +46 -0
- package/dist/styled/components/searchbar.cjs +1 -0
- package/dist/styled/components/searchbar.js +81 -0
- package/dist/styled/components/shadow.cjs +1 -0
- package/dist/styled/components/shadow.js +8 -0
- package/dist/styled/components/sidebar-chat.cjs +1 -0
- package/dist/styled/components/sidebar-chat.js +90 -0
- package/dist/styled/components/ui/markdown-styles.cjs +1 -0
- package/dist/styled/components/ui/markdown-styles.js +38 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.cjs +1 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.js +32 -0
- package/dist/styled/components/ui/recipes/attachment.cjs +1 -0
- package/dist/styled/components/ui/recipes/attachment.js +28 -0
- package/dist/styled/components/ui/recipes/button.cjs +1 -0
- package/dist/styled/components/ui/recipes/button.js +81 -0
- package/dist/styled/components/ui/recipes/checkbox.cjs +1 -0
- package/dist/styled/components/ui/recipes/checkbox.js +23 -0
- package/dist/styled/components/ui/recipes/citation.cjs +1 -0
- package/dist/styled/components/ui/recipes/citation.js +75 -0
- package/dist/styled/components/ui/recipes/icon.cjs +1 -0
- package/dist/styled/components/ui/recipes/icon.js +6 -0
- package/dist/styled/components/ui/recipes/index.cjs +1 -0
- package/dist/styled/components/ui/recipes/index.js +37 -0
- package/dist/styled/components/ui/recipes/input.cjs +1 -0
- package/dist/styled/components/ui/recipes/input.js +34 -0
- package/dist/styled/components/ui/recipes/link.cjs +1 -0
- package/dist/styled/components/ui/recipes/link.js +13 -0
- package/dist/styled/components/ui/recipes/markdown.cjs +1 -0
- package/dist/styled/components/ui/recipes/markdown.js +103 -0
- package/dist/styled/components/ui/recipes/modal.cjs +1 -0
- package/dist/styled/components/ui/recipes/modal.js +59 -0
- package/dist/styled/components/ui/recipes/popover.cjs +1 -0
- package/dist/styled/components/ui/recipes/popover.js +20 -0
- package/dist/styled/components/ui/recipes/scrollable.cjs +1 -0
- package/dist/styled/components/ui/recipes/scrollable.js +15 -0
- package/dist/styled/components/ui/recipes/select.cjs +1 -0
- package/dist/styled/components/ui/recipes/select.js +38 -0
- package/dist/styled/components/ui/recipes/skeleton.cjs +1 -0
- package/dist/styled/components/ui/recipes/skeleton.js +16 -0
- package/dist/styled/components/ui/recipes/widget-toggle.cjs +1 -0
- package/dist/styled/components/ui/recipes/widget-toggle.js +35 -0
- package/dist/styled/index.cjs +1 -0
- package/dist/styled/index.js +177 -0
- package/dist/styled/inkeep.css.cjs +4049 -0
- package/dist/styled/inkeep.css.js +4053 -0
- package/dist/styled/utils.cjs +1 -0
- package/dist/styled/utils.js +11 -0
- package/dist/theme/color-utils.cjs +1 -0
- package/dist/theme/color-utils.js +21 -0
- package/dist/theme/colors.cjs +1 -0
- package/dist/theme/colors.js +143 -0
- package/dist/theme/index.cjs +1 -0
- package/dist/theme/index.js +58 -0
- package/dist/theme/utils/create-css-variables.cjs +1 -0
- package/dist/theme/utils/create-css-variables.js +24 -0
- package/dist/theme/utils/generate-theme-variables.cjs +1 -0
- package/dist/theme/utils/generate-theme-variables.js +34 -0
- package/dist/types/message.cjs +1 -0
- package/dist/types/message.js +5 -0
- package/dist/types/types.d.cts +1754 -0
- package/dist/types/types.d.ts +1754 -0
- package/package.json +132 -39
- package/LICENSE.md +0 -51
- package/dist/assets/index-3anqgmEs.js +0 -49
- package/dist/assets/index-CF_BRP1w.css +0 -1
- package/dist/index.html +0 -14
package/dist/index.js
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { InkeepEmbeddedChat as C, InkeepEmbeddedChatImpl as u, InkeepEmbeddedChatImplContent as I, InkeepEmbeddedChatProvider as l } from "./react/embedded-chat.js";
|
|
2
|
+
import { InkeepSidebarChat as S } from "./react/sidebar-chat.js";
|
|
3
|
+
import { InkeepEmbeddedSearchAndChat as P, InkeepEmbeddedSearchAndChatImpl as v } from "./react/embedded-search-and-chat.js";
|
|
4
|
+
import { InkeepEmbeddedSearch as M, InkeepEmbeddedSearchImpl as g, InkeepEmbeddedSearchImplContent as B, InkeepEmbeddedSearchProvider as E } from "./react/embedded-search.js";
|
|
5
|
+
import { InkeepModalChat as A } from "./react/modal.chat.js";
|
|
6
|
+
import { InkeepModalSearchAndChat as y } from "./react/modal.search-and-chat.js";
|
|
7
|
+
import { InkeepModalSearch as T } from "./react/modal.search.js";
|
|
8
|
+
import { InkeepModal as W, ModalContent as $ } from "./react/modal.js";
|
|
9
|
+
import { ChatButtonImpl as L, InkeepChatButton as O } from "./react/chat-button.js";
|
|
10
|
+
import { InkeepSearchBar as j, SearchBarImpl as G } from "./react/searchbar.js";
|
|
11
|
+
import * as e from "./styled/components/embedded-chat.js";
|
|
12
|
+
import * as o from "./styled/components/sidebar-chat.js";
|
|
13
|
+
import * as r from "./styled/components/embedded-search.js";
|
|
14
|
+
import * as t from "./styled/components/modal.js";
|
|
15
|
+
import * as a from "./styled/components/chat-button.js";
|
|
16
|
+
import * as m from "./styled/components/searchbar.js";
|
|
17
|
+
import { Shadow as N } from "./styled/components/shadow.js";
|
|
18
|
+
import { LoadingIndicator as U } from "./styled/components/loading-indicator.js";
|
|
19
|
+
import { widgetToggle as q } from "./styled/components/ui/recipes/widget-toggle.js";
|
|
20
|
+
import { EmbeddedChatMessagePart as X } from "./styled/components/message.js";
|
|
21
|
+
import { DataSummaryGroup as Z } from "./styled/components/data-summary-group.js";
|
|
22
|
+
import { AttachmentItemProvider as ee, useAttachmentItem as oe } from "./primitives/providers/attachment-item-provider.js";
|
|
23
|
+
import { AttachmentsBarProvider as te, useAttachmentsBar as ae } from "./primitives/providers/attachments-bar-provider.js";
|
|
24
|
+
import { BaseEventsProvider as de, useBaseEvents as pe } from "./primitives/providers/base-events-provider.js";
|
|
25
|
+
import { ChatFormProvider as ne, useChatForm as ie, useChatFormState as fe } from "./primitives/providers/chat-form-provider.js";
|
|
26
|
+
import { InkeepConfigProvider as xe, WebWidgetInteractionType as Ce, useInkeepConfig as ue } from "./primitives/providers/config-provider.js";
|
|
27
|
+
import { FeedbackItemProvider as le, useFeedbackItem as ce } from "./primitives/providers/feedback-item-provider.js";
|
|
28
|
+
import { FeedbackProvider as be, useMessageFeedback as Pe } from "./primitives/providers/feedback-provider.js";
|
|
29
|
+
import { FormFieldProvider as ke, useFormField as Me } from "./primitives/providers/form-field-provider.js";
|
|
30
|
+
import { HelpMenuProvider as Be, useHelpMenu as Ee, useHelpMenuState as Fe } from "./primitives/providers/help-menu-provider.js";
|
|
31
|
+
import { ChatMarkdownProvider as we, useChatMarkdown as ye } from "./primitives/providers/markdown-provider.js";
|
|
32
|
+
import { MessageAttachmentsProvider as Te, useMessageAttachments as De } from "./primitives/providers/message-attachments-provider.js";
|
|
33
|
+
import { MessageProvider as $e, useMessage as He, useOptionalMessage as Le } from "./primitives/providers/message-provider.js";
|
|
34
|
+
import { RootProvider as ze } from "./primitives/providers/root-provider.js";
|
|
35
|
+
import { SourceItemProvider as Ge, useSourceItem as Ke } from "./primitives/providers/source-item-provider.js";
|
|
36
|
+
import { ThemeProvider as Qe } from "./primitives/providers/theme-provider.js";
|
|
37
|
+
import { WidgetProvider as Ve, useWidget as qe } from "./primitives/providers/widget-provider.js";
|
|
38
|
+
import { SidebarChatProvider as Xe, useInkeepSidebarChat as Ye, useOptionalSidebarChat as Ze, useSidebarChat as _e } from "./primitives/providers/sidebar-chat-provider.js";
|
|
39
|
+
import { ikp as oo, jsxFactory as ro } from "./primitives/components/factory.js";
|
|
40
|
+
import * as d from "./primitives/components/embedded-chat.js";
|
|
41
|
+
import * as p from "./primitives/components/sidebar-chat/index.js";
|
|
42
|
+
import { ChatProvider as ao, useChat as mo } from "./primitives/components/embedded-chat/chat-provider.js";
|
|
43
|
+
import * as s from "./primitives/components/embedded-search.js";
|
|
44
|
+
import { SearchProvider as so, SearchProviderImpl as no, useSearch as io } from "./primitives/components/embedded-search/search-provider.js";
|
|
45
|
+
import * as n from "./primitives/components/modal.js";
|
|
46
|
+
import { ModalProvider as ho, useModal as xo } from "./primitives/components/modal/modal-provider.js";
|
|
47
|
+
import * as i from "./primitives/components/chat-button.js";
|
|
48
|
+
import * as f from "./primitives/components/searchbar.js";
|
|
49
|
+
import { useBoolean as uo } from "./primitives/hooks/use-boolean.js";
|
|
50
|
+
import { useComponentClassNames as lo } from "./primitives/hooks/use-component-classnames.js";
|
|
51
|
+
import { useContainerSize as So } from "./primitives/hooks/use-container-size.js";
|
|
52
|
+
import { useCopyToClipboard as Po } from "./primitives/hooks/use-copy-to-clipboard.js";
|
|
53
|
+
import { useInstantUpdate as ko } from "./primitives/hooks/use-instant-update.js";
|
|
54
|
+
import { useIsMounted as go } from "./primitives/hooks/use-is-mounted.js";
|
|
55
|
+
import { useMediaQuery as Eo } from "./primitives/hooks/use-media-query.js";
|
|
56
|
+
import { useResizeObserver as Ao } from "./primitives/hooks/use-resize-observer.js";
|
|
57
|
+
import { useScrollingFades as yo } from "./primitives/hooks/use-scrolling-fades.js";
|
|
58
|
+
import { useSettleAction as To } from "./primitives/hooks/use-settle-action.js";
|
|
59
|
+
import { useScrollToBottom as Wo } from "./primitives/hooks/use-scroll-to-bottom.js";
|
|
60
|
+
import { callAll as Ho, dataAttr as Lo, getInitials as Oo, getMessageContent as zo, isString as jo, maybeRender as Go, toKebabCase as Ko } from "./primitives/utils/misc.js";
|
|
61
|
+
import { SearchBarComponentIds as Qo, SidebarChatComponentIds as Uo, aiChatComponentIds as Vo, aiSearchComponentIds as qo, chatButtonComponentIds as Jo, componentIDs as Xo, markDownComponentIds as Yo, miscellanousComponentIds as Zo, modalComponentIds as _o } from "./primitives/utils/component-ids.js";
|
|
62
|
+
import { composeRefs as or, useComposedRefs as rr } from "./primitives/utils/compose-refs.js";
|
|
63
|
+
import { mergeProps as ar } from "./primitives/utils/merge-props.js";
|
|
64
|
+
import { Portal as dr } from "./primitives/atoms/portal.js";
|
|
65
|
+
import { CustomIcon as sr } from "./primitives/atoms/icons/custom-icon.js";
|
|
66
|
+
import { BuiltInIconRenderer as ir } from "./primitives/atoms/icons/built-in-icon-renderer.js";
|
|
67
|
+
import { PortalWithTheme as hr } from "./primitives/atoms/portal-with-theme.js";
|
|
68
|
+
import { Command as Cr, CommandDialog as ur, CommandEmpty as Ir, CommandInput as lr, CommandItem as cr, CommandList as Sr, CommandLoading as br, CommandRoot as Pr, CommandSeparator as vr, defaultFilter as kr, useCommandState as Mr, useCommandStore as gr } from "./primitives/atoms/cmdk/index.js";
|
|
69
|
+
import { ErrorBoundary as Er } from "./primitives/atoms/error-boundary.js";
|
|
70
|
+
import { ColorMode as Ar, ColorModeProvider as wr, DarkModeProvider as yr, useColorMode as Rr, useColorModeValue as Tr } from "./color-mode/index.js";
|
|
71
|
+
import { InkeepShadow as Wr, InkeepShadowProvider as $r, ShadowContext as Hr, useShadow as Lr } from "./primitives/atoms/shadow/context.js";
|
|
72
|
+
export {
|
|
73
|
+
ee as AttachmentItemProvider,
|
|
74
|
+
te as AttachmentsBarProvider,
|
|
75
|
+
de as BaseEventsProvider,
|
|
76
|
+
ir as BuiltInIconRenderer,
|
|
77
|
+
a as ChatButton,
|
|
78
|
+
L as ChatButtonImpl,
|
|
79
|
+
i as ChatButtonPrimitive,
|
|
80
|
+
ne as ChatFormProvider,
|
|
81
|
+
we as ChatMarkdownProvider,
|
|
82
|
+
ao as ChatProvider,
|
|
83
|
+
Ar as ColorMode,
|
|
84
|
+
wr as ColorModeProvider,
|
|
85
|
+
Cr as Command,
|
|
86
|
+
ur as CommandDialog,
|
|
87
|
+
Ir as CommandEmpty,
|
|
88
|
+
lr as CommandInput,
|
|
89
|
+
cr as CommandItem,
|
|
90
|
+
Sr as CommandList,
|
|
91
|
+
br as CommandLoading,
|
|
92
|
+
Pr as CommandRoot,
|
|
93
|
+
vr as CommandSeparator,
|
|
94
|
+
sr as CustomIcon,
|
|
95
|
+
yr as DarkModeProvider,
|
|
96
|
+
Z as DataSummaryGroup,
|
|
97
|
+
e as EmbeddedChat,
|
|
98
|
+
X as EmbeddedChatMessagePart,
|
|
99
|
+
d as EmbeddedChatPrimitive,
|
|
100
|
+
r as EmbeddedSearch,
|
|
101
|
+
s as EmbeddedSearchPrimitive,
|
|
102
|
+
Er as ErrorBoundary,
|
|
103
|
+
le as FeedbackItemProvider,
|
|
104
|
+
be as FeedbackProvider,
|
|
105
|
+
ke as FormFieldProvider,
|
|
106
|
+
Be as HelpMenuProvider,
|
|
107
|
+
O as InkeepChatButton,
|
|
108
|
+
xe as InkeepConfigProvider,
|
|
109
|
+
C as InkeepEmbeddedChat,
|
|
110
|
+
u as InkeepEmbeddedChatImpl,
|
|
111
|
+
I as InkeepEmbeddedChatImplContent,
|
|
112
|
+
l as InkeepEmbeddedChatProvider,
|
|
113
|
+
M as InkeepEmbeddedSearch,
|
|
114
|
+
P as InkeepEmbeddedSearchAndChat,
|
|
115
|
+
v as InkeepEmbeddedSearchAndChatImpl,
|
|
116
|
+
g as InkeepEmbeddedSearchImpl,
|
|
117
|
+
B as InkeepEmbeddedSearchImplContent,
|
|
118
|
+
E as InkeepEmbeddedSearchProvider,
|
|
119
|
+
W as InkeepModal,
|
|
120
|
+
A as InkeepModalChat,
|
|
121
|
+
T as InkeepModalSearch,
|
|
122
|
+
y as InkeepModalSearchAndChat,
|
|
123
|
+
j as InkeepSearchBar,
|
|
124
|
+
Wr as InkeepShadow,
|
|
125
|
+
$r as InkeepShadowProvider,
|
|
126
|
+
S as InkeepSidebarChat,
|
|
127
|
+
U as LoadingIndicator,
|
|
128
|
+
Te as MessageAttachmentsProvider,
|
|
129
|
+
$e as MessageProvider,
|
|
130
|
+
t as Modal,
|
|
131
|
+
$ as ModalContent,
|
|
132
|
+
n as ModalPrimitive,
|
|
133
|
+
ho as ModalProvider,
|
|
134
|
+
dr as Portal,
|
|
135
|
+
hr as PortalWithTheme,
|
|
136
|
+
ze as RootProvider,
|
|
137
|
+
m as SearchBar,
|
|
138
|
+
Qo as SearchBarComponentIds,
|
|
139
|
+
G as SearchBarImpl,
|
|
140
|
+
f as SearchBarPrimitive,
|
|
141
|
+
so as SearchProvider,
|
|
142
|
+
no as SearchProviderImpl,
|
|
143
|
+
N as Shadow,
|
|
144
|
+
Hr as ShadowContext,
|
|
145
|
+
o as SidebarChat,
|
|
146
|
+
Uo as SidebarChatComponentIds,
|
|
147
|
+
p as SidebarChatPrimitive,
|
|
148
|
+
Xe as SidebarChatProvider,
|
|
149
|
+
Ge as SourceItemProvider,
|
|
150
|
+
Qe as ThemeProvider,
|
|
151
|
+
Ce as WebWidgetInteractionType,
|
|
152
|
+
Ve as WidgetProvider,
|
|
153
|
+
Vo as aiChatComponentIds,
|
|
154
|
+
qo as aiSearchComponentIds,
|
|
155
|
+
Ho as callAll,
|
|
156
|
+
Jo as chatButtonComponentIds,
|
|
157
|
+
Xo as componentIDs,
|
|
158
|
+
or as composeRefs,
|
|
159
|
+
Lo as dataAttr,
|
|
160
|
+
kr as defaultFilter,
|
|
161
|
+
Oo as getInitials,
|
|
162
|
+
zo as getMessageContent,
|
|
163
|
+
oo as ikp,
|
|
164
|
+
jo as isString,
|
|
165
|
+
ro as jsxFactory,
|
|
166
|
+
Yo as markDownComponentIds,
|
|
167
|
+
Go as maybeRender,
|
|
168
|
+
ar as mergeProps,
|
|
169
|
+
Zo as miscellanousComponentIds,
|
|
170
|
+
_o as modalComponentIds,
|
|
171
|
+
Ko as toKebabCase,
|
|
172
|
+
oe as useAttachmentItem,
|
|
173
|
+
ae as useAttachmentsBar,
|
|
174
|
+
pe as useBaseEvents,
|
|
175
|
+
uo as useBoolean,
|
|
176
|
+
mo as useChat,
|
|
177
|
+
ie as useChatForm,
|
|
178
|
+
fe as useChatFormState,
|
|
179
|
+
ye as useChatMarkdown,
|
|
180
|
+
Rr as useColorMode,
|
|
181
|
+
Tr as useColorModeValue,
|
|
182
|
+
Mr as useCommandState,
|
|
183
|
+
gr as useCommandStore,
|
|
184
|
+
lo as useComponentClassNames,
|
|
185
|
+
rr as useComposedRefs,
|
|
186
|
+
So as useContainerSize,
|
|
187
|
+
Po as useCopyToClipboard,
|
|
188
|
+
ce as useFeedbackItem,
|
|
189
|
+
Me as useFormField,
|
|
190
|
+
Ee as useHelpMenu,
|
|
191
|
+
Fe as useHelpMenuState,
|
|
192
|
+
ue as useInkeepConfig,
|
|
193
|
+
Ye as useInkeepSidebarChat,
|
|
194
|
+
ko as useInstantUpdate,
|
|
195
|
+
go as useIsMounted,
|
|
196
|
+
Eo as useMediaQuery,
|
|
197
|
+
He as useMessage,
|
|
198
|
+
De as useMessageAttachments,
|
|
199
|
+
Pe as useMessageFeedback,
|
|
200
|
+
xo as useModal,
|
|
201
|
+
Le as useOptionalMessage,
|
|
202
|
+
Ze as useOptionalSidebarChat,
|
|
203
|
+
Ao as useResizeObserver,
|
|
204
|
+
Wo as useScrollToBottom,
|
|
205
|
+
yo as useScrollingFades,
|
|
206
|
+
io as useSearch,
|
|
207
|
+
To as useSettleAction,
|
|
208
|
+
Lr as useShadow,
|
|
209
|
+
_e as useSidebarChat,
|
|
210
|
+
Ke as useSourceItem,
|
|
211
|
+
qe as useWidget,
|
|
212
|
+
q as widgetToggle
|
|
213
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../../_virtual/use-sync-external-store-shim.development.cjs"),h=require("react");/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var f;function T(){return f||(f=1,process.env.NODE_ENV!=="production"&&function(){function d(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function S(e,t){c||o.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var r=t();if(!l){var u=t();_(r,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}u=p({inst:{value:r,getSnapshot:t}});var n=u[0].inst,s=u[1];return y(function(){n.value=r,n.getSnapshot=t,a(n)&&s({inst:n})},[e,r,t]),E(function(){return a(n)&&s({inst:n}),e(function(){a(n)&&s({inst:n})})},[e]),L(r),r}function a(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!_(e,r)}catch{return!0}}function O(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=h,_=typeof Object.is=="function"?Object.is:d,p=o.useState,E=o.useEffect,y=o.useLayoutEffect,L=o.useDebugValue,c=!1,l=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?O:S;i.__exports.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),i.__exports}exports.__require=T;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exports as s } from "../../../../../../_virtual/use-sync-external-store-shim.development.js";
|
|
3
|
+
import h from "react";
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* use-sync-external-store-shim.development.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var l;
|
|
14
|
+
function A() {
|
|
15
|
+
return l ? s : (l = 1, process.env.NODE_ENV !== "production" && function() {
|
|
16
|
+
function d(e, t) {
|
|
17
|
+
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
18
|
+
}
|
|
19
|
+
function S(e, t) {
|
|
20
|
+
f || o.startTransition === void 0 || (f = !0, console.error(
|
|
21
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
22
|
+
));
|
|
23
|
+
var r = t();
|
|
24
|
+
if (!c) {
|
|
25
|
+
var u = t();
|
|
26
|
+
_(r, u) || (console.error(
|
|
27
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
28
|
+
), c = !0);
|
|
29
|
+
}
|
|
30
|
+
u = p({
|
|
31
|
+
inst: { value: r, getSnapshot: t }
|
|
32
|
+
});
|
|
33
|
+
var n = u[0].inst, i = u[1];
|
|
34
|
+
return L(
|
|
35
|
+
function() {
|
|
36
|
+
n.value = r, n.getSnapshot = t, a(n) && i({ inst: n });
|
|
37
|
+
},
|
|
38
|
+
[e, r, t]
|
|
39
|
+
), E(
|
|
40
|
+
function() {
|
|
41
|
+
return a(n) && i({ inst: n }), e(function() {
|
|
42
|
+
a(n) && i({ inst: n });
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
[e]
|
|
46
|
+
), y(r), r;
|
|
47
|
+
}
|
|
48
|
+
function a(e) {
|
|
49
|
+
var t = e.getSnapshot;
|
|
50
|
+
e = e.value;
|
|
51
|
+
try {
|
|
52
|
+
var r = t();
|
|
53
|
+
return !_(e, r);
|
|
54
|
+
} catch {
|
|
55
|
+
return !0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function O(e, t) {
|
|
59
|
+
return t();
|
|
60
|
+
}
|
|
61
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
62
|
+
var o = h, _ = typeof Object.is == "function" ? Object.is : d, p = o.useState, E = o.useEffect, L = o.useLayoutEffect, y = o.useDebugValue, f = !1, c = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? O : S;
|
|
63
|
+
s.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
64
|
+
}(), s);
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
A as __require
|
|
68
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../../_virtual/use-sync-external-store-shim.production.cjs"),h=require("react");/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var s;function m(){if(s)return i.__exports;s=1;var u=h;function f(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var S=typeof Object.is=="function"?Object.is:f,d=u.useState,l=u.useEffect,p=u.useLayoutEffect,y=u.useDebugValue;function v(e,t){var r=t(),c=d({inst:{value:r,getSnapshot:t}}),n=c[0].inst,a=c[1];return p(function(){n.value=r,n.getSnapshot=t,o(n)&&a({inst:n})},[e,r,t]),l(function(){return o(n)&&a({inst:n}),e(function(){o(n)&&a({inst:n})})},[e]),y(r),r}function o(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!S(e,r)}catch{return!0}}function E(e,t){return t()}var _=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?E:v;return i.__exports.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:_,i.__exports}exports.__require=m;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exports as i } from "../../../../../../_virtual/use-sync-external-store-shim.production.js";
|
|
3
|
+
import h from "react";
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* use-sync-external-store-shim.production.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var s;
|
|
14
|
+
function x() {
|
|
15
|
+
if (s) return i;
|
|
16
|
+
s = 1;
|
|
17
|
+
var u = h;
|
|
18
|
+
function f(e, t) {
|
|
19
|
+
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
20
|
+
}
|
|
21
|
+
var S = typeof Object.is == "function" ? Object.is : f, d = u.useState, l = u.useEffect, p = u.useLayoutEffect, E = u.useDebugValue;
|
|
22
|
+
function v(e, t) {
|
|
23
|
+
var r = t(), a = d({ inst: { value: r, getSnapshot: t } }), n = a[0].inst, c = a[1];
|
|
24
|
+
return p(
|
|
25
|
+
function() {
|
|
26
|
+
n.value = r, n.getSnapshot = t, o(n) && c({ inst: n });
|
|
27
|
+
},
|
|
28
|
+
[e, r, t]
|
|
29
|
+
), l(
|
|
30
|
+
function() {
|
|
31
|
+
return o(n) && c({ inst: n }), e(function() {
|
|
32
|
+
o(n) && c({ inst: n });
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
[e]
|
|
36
|
+
), E(r), r;
|
|
37
|
+
}
|
|
38
|
+
function o(e) {
|
|
39
|
+
var t = e.getSnapshot;
|
|
40
|
+
e = e.value;
|
|
41
|
+
try {
|
|
42
|
+
var r = t();
|
|
43
|
+
return !S(e, r);
|
|
44
|
+
} catch {
|
|
45
|
+
return !0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function y(e, t) {
|
|
49
|
+
return t();
|
|
50
|
+
}
|
|
51
|
+
var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : v;
|
|
52
|
+
return i.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : m, i;
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
x as __require
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../../_virtual/index.cjs"),r=require("../cjs/use-sync-external-store-shim.production.cjs"),o=require("../cjs/use-sync-external-store-shim.development.cjs");process.env.NODE_ENV==="production"?e.__module.exports=r.__require():e.__module.exports=o.__require();var t=e.__module.exports;exports.shimExports=t;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __module as r } from "../../../../../../_virtual/index.js";
|
|
2
|
+
import { __require as e } from "../cjs/use-sync-external-store-shim.production.js";
|
|
3
|
+
import { __require as o } from "../cjs/use-sync-external-store-shim.development.js";
|
|
4
|
+
process.env.NODE_ENV === "production" ? r.exports = e() : r.exports = o();
|
|
5
|
+
var m = r.exports;
|
|
6
|
+
export {
|
|
7
|
+
m as s
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("react"),t=o.forwardRef((r,C)=>{const s=o.useId();return e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"100%",width:"100%",ref:C,...r,children:[e.jsx("title",{children:"AI Avatar"}),e.jsx("path",{d:"M9.937 15.5002C9.84772 15.1542 9.66734 14.8384 9.41462 14.5856C9.1619 14.3329 8.84607 14.1525 8.5 14.0632L2.365 12.4812C2.26033 12.4515 2.16821 12.3885 2.10261 12.3017C2.03702 12.2149 2.00153 12.1091 2.00153 12.0002C2.00153 11.8914 2.03702 11.7856 2.10261 11.6988C2.16821 11.612 2.26033 11.549 2.365 11.5192L8.5 9.93625C8.84595 9.84706 9.16169 9.66682 9.4144 9.41429C9.66711 9.16175 9.84757 8.84614 9.937 8.50025L11.519 2.36525C11.5484 2.26017 11.6114 2.16759 11.6983 2.10164C11.7853 2.0357 11.8914 2 12.0005 2C12.1096 2 12.2157 2.0357 12.3027 2.10164C12.3896 2.16759 12.4526 2.26017 12.482 2.36525L14.063 8.50025C14.1523 8.84632 14.3327 9.16215 14.5854 9.41487C14.8381 9.66759 15.1539 9.84797 15.5 9.93725L21.635 11.5182C21.7405 11.5473 21.8335 11.6103 21.8998 11.6973C21.9661 11.7844 22.0021 11.8908 22.0021 12.0002C22.0021 12.1097 21.9661 12.2161 21.8998 12.3032C21.8335 12.3902 21.7405 12.4531 21.635 12.4822L15.5 14.0632C15.1539 14.1525 14.8381 14.3329 14.5854 14.5856C14.3327 14.8384 14.1523 15.1542 14.063 15.5002L12.481 21.6353C12.4516 21.7403 12.3886 21.8329 12.3017 21.8989C12.2147 21.9648 12.1086 22.0005 11.9995 22.0005C11.8904 22.0005 11.7843 21.9648 11.6973 21.8989C11.6104 21.8329 11.5474 21.7403 11.518 21.6353L9.937 15.5002Z",stroke:`url(#${s}-stroke1)`,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M18.9838 5.37522C18.9615 5.28871 18.9164 5.20975 18.8532 5.14657C18.79 5.08339 18.7111 5.0383 18.6246 5.01598L17.0909 4.62049C17.0647 4.61306 17.0417 4.5973 17.0253 4.5756C17.0089 4.5539 17 4.52744 17 4.50024C17 4.47304 17.0089 4.44659 17.0253 4.42488C17.0417 4.40318 17.0647 4.38742 17.0909 4.38L18.6246 3.98426C18.7111 3.96196 18.79 3.9169 18.8532 3.85377C18.9163 3.79064 18.9615 3.71174 18.9838 3.62527L19.3793 2.09155C19.3867 2.06528 19.4024 2.04214 19.4241 2.02565C19.4459 2.00917 19.4724 2.00024 19.4997 2.00024C19.527 2.00024 19.5535 2.00917 19.5752 2.02565C19.597 2.04214 19.6127 2.06528 19.6201 2.09155L20.0153 3.62527C20.0376 3.71178 20.0827 3.79074 20.1459 3.85391C20.2091 3.91709 20.288 3.96219 20.3745 3.98451L21.9082 4.37975C21.9346 4.38702 21.9579 4.40275 21.9744 4.42452C21.991 4.44628 22 4.47288 22 4.50024C22 4.5276 21.991 4.55421 21.9744 4.57597C21.9579 4.59774 21.9346 4.61347 21.9082 4.62074L20.3745 5.01598C20.288 5.0383 20.2091 5.08339 20.1459 5.14657C20.0827 5.20975 20.0376 5.28871 20.0153 5.37522L19.6198 6.90893C19.6124 6.9352 19.5967 6.95835 19.575 6.97483C19.5532 6.99132 19.5267 7.00024 19.4994 7.00024C19.4721 7.00024 19.4456 6.99132 19.4239 6.97483C19.4022 6.95835 19.3864 6.9352 19.3791 6.90893L18.9838 5.37522Z",stroke:`url(#${s}-stroke2)`,strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M3.98382 20.3752C3.9615 20.2887 3.9164 20.2098 3.85322 20.1466C3.79005 20.0834 3.71109 20.0383 3.62458 20.016L2.09087 19.6205C2.0647 19.6131 2.04167 19.5973 2.02527 19.5756C2.00887 19.5539 2 19.5274 2 19.5002C2 19.473 2.00887 19.4466 2.02527 19.4249C2.04167 19.4032 2.0647 19.3874 2.09087 19.38L3.62458 18.9843C3.71106 18.962 3.78999 18.9169 3.85317 18.8538C3.91635 18.7906 3.96146 18.7117 3.98382 18.6253L4.37931 17.0916C4.38666 17.0653 4.4024 17.0421 4.42414 17.0257C4.44587 17.0092 4.4724 17.0002 4.49968 17.0002C4.52696 17.0002 4.55349 17.0092 4.57522 17.0257C4.59695 17.0421 4.6127 17.0653 4.62005 17.0916L5.01529 18.6253C5.03761 18.7118 5.0827 18.7907 5.14588 18.8539C5.20906 18.9171 5.28801 18.9622 5.37453 18.9845L6.90824 19.3797C6.93461 19.387 6.95787 19.4027 6.97445 19.4245C6.99102 19.4463 7 19.4729 7 19.5002C7 19.5276 6.99102 19.5542 6.97445 19.576C6.95787 19.5977 6.93461 19.6135 6.90824 19.6207L5.37453 20.016C5.28801 20.0383 5.20906 20.0834 5.14588 20.1466C5.0827 20.2098 5.03761 20.2887 5.01529 20.3752L4.6198 21.9089C4.61245 21.9352 4.5967 21.9583 4.57497 21.9748C4.55324 21.9913 4.52671 22.0002 4.49943 22.0002C4.47215 22.0002 4.44562 21.9913 4.42389 21.9748C4.40215 21.9583 4.38641 21.9352 4.37906 21.9089L3.98382 20.3752Z",stroke:`url(#${s}-stroke3)`,strokeLinecap:"round",strokeLinejoin:"round"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:`${s}-stroke1`,x1:"0.149625",y1:"0.148102",x2:"23.8539",y2:"23.8524",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),e.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]}),e.jsxs("linearGradient",{id:`${s}-stroke2`,x1:"16.537",y1:"1.53728",x2:"22.463",y2:"7.46321",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),e.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]}),e.jsxs("linearGradient",{id:`${s}-stroke3`,x1:"1.53704",y1:"16.5373",x2:"7.46296",y2:"22.4632",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),e.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]})]})]})});exports.default=t;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as s, useId as n } from "react";
|
|
4
|
+
const a = s((t, e) => {
|
|
5
|
+
const C = n();
|
|
6
|
+
return /* @__PURE__ */ r(
|
|
7
|
+
"svg",
|
|
8
|
+
{
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
height: "100%",
|
|
13
|
+
width: "100%",
|
|
14
|
+
ref: e,
|
|
15
|
+
...t,
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ o("title", { children: "AI Avatar" }),
|
|
18
|
+
/* @__PURE__ */ o(
|
|
19
|
+
"path",
|
|
20
|
+
{
|
|
21
|
+
d: "M9.937 15.5002C9.84772 15.1542 9.66734 14.8384 9.41462 14.5856C9.1619 14.3329 8.84607 14.1525 8.5 14.0632L2.365 12.4812C2.26033 12.4515 2.16821 12.3885 2.10261 12.3017C2.03702 12.2149 2.00153 12.1091 2.00153 12.0002C2.00153 11.8914 2.03702 11.7856 2.10261 11.6988C2.16821 11.612 2.26033 11.549 2.365 11.5192L8.5 9.93625C8.84595 9.84706 9.16169 9.66682 9.4144 9.41429C9.66711 9.16175 9.84757 8.84614 9.937 8.50025L11.519 2.36525C11.5484 2.26017 11.6114 2.16759 11.6983 2.10164C11.7853 2.0357 11.8914 2 12.0005 2C12.1096 2 12.2157 2.0357 12.3027 2.10164C12.3896 2.16759 12.4526 2.26017 12.482 2.36525L14.063 8.50025C14.1523 8.84632 14.3327 9.16215 14.5854 9.41487C14.8381 9.66759 15.1539 9.84797 15.5 9.93725L21.635 11.5182C21.7405 11.5473 21.8335 11.6103 21.8998 11.6973C21.9661 11.7844 22.0021 11.8908 22.0021 12.0002C22.0021 12.1097 21.9661 12.2161 21.8998 12.3032C21.8335 12.3902 21.7405 12.4531 21.635 12.4822L15.5 14.0632C15.1539 14.1525 14.8381 14.3329 14.5854 14.5856C14.3327 14.8384 14.1523 15.1542 14.063 15.5002L12.481 21.6353C12.4516 21.7403 12.3886 21.8329 12.3017 21.8989C12.2147 21.9648 12.1086 22.0005 11.9995 22.0005C11.8904 22.0005 11.7843 21.9648 11.6973 21.8989C11.6104 21.8329 11.5474 21.7403 11.518 21.6353L9.937 15.5002Z",
|
|
22
|
+
stroke: `url(#${C}-stroke1)`,
|
|
23
|
+
strokeWidth: "2",
|
|
24
|
+
strokeLinecap: "round",
|
|
25
|
+
strokeLinejoin: "round"
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ o(
|
|
29
|
+
"path",
|
|
30
|
+
{
|
|
31
|
+
d: "M18.9838 5.37522C18.9615 5.28871 18.9164 5.20975 18.8532 5.14657C18.79 5.08339 18.7111 5.0383 18.6246 5.01598L17.0909 4.62049C17.0647 4.61306 17.0417 4.5973 17.0253 4.5756C17.0089 4.5539 17 4.52744 17 4.50024C17 4.47304 17.0089 4.44659 17.0253 4.42488C17.0417 4.40318 17.0647 4.38742 17.0909 4.38L18.6246 3.98426C18.7111 3.96196 18.79 3.9169 18.8532 3.85377C18.9163 3.79064 18.9615 3.71174 18.9838 3.62527L19.3793 2.09155C19.3867 2.06528 19.4024 2.04214 19.4241 2.02565C19.4459 2.00917 19.4724 2.00024 19.4997 2.00024C19.527 2.00024 19.5535 2.00917 19.5752 2.02565C19.597 2.04214 19.6127 2.06528 19.6201 2.09155L20.0153 3.62527C20.0376 3.71178 20.0827 3.79074 20.1459 3.85391C20.2091 3.91709 20.288 3.96219 20.3745 3.98451L21.9082 4.37975C21.9346 4.38702 21.9579 4.40275 21.9744 4.42452C21.991 4.44628 22 4.47288 22 4.50024C22 4.5276 21.991 4.55421 21.9744 4.57597C21.9579 4.59774 21.9346 4.61347 21.9082 4.62074L20.3745 5.01598C20.288 5.0383 20.2091 5.08339 20.1459 5.14657C20.0827 5.20975 20.0376 5.28871 20.0153 5.37522L19.6198 6.90893C19.6124 6.9352 19.5967 6.95835 19.575 6.97483C19.5532 6.99132 19.5267 7.00024 19.4994 7.00024C19.4721 7.00024 19.4456 6.99132 19.4239 6.97483C19.4022 6.95835 19.3864 6.9352 19.3791 6.90893L18.9838 5.37522Z",
|
|
32
|
+
stroke: `url(#${C}-stroke2)`,
|
|
33
|
+
strokeLinecap: "round",
|
|
34
|
+
strokeLinejoin: "round"
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ o(
|
|
38
|
+
"path",
|
|
39
|
+
{
|
|
40
|
+
d: "M3.98382 20.3752C3.9615 20.2887 3.9164 20.2098 3.85322 20.1466C3.79005 20.0834 3.71109 20.0383 3.62458 20.016L2.09087 19.6205C2.0647 19.6131 2.04167 19.5973 2.02527 19.5756C2.00887 19.5539 2 19.5274 2 19.5002C2 19.473 2.00887 19.4466 2.02527 19.4249C2.04167 19.4032 2.0647 19.3874 2.09087 19.38L3.62458 18.9843C3.71106 18.962 3.78999 18.9169 3.85317 18.8538C3.91635 18.7906 3.96146 18.7117 3.98382 18.6253L4.37931 17.0916C4.38666 17.0653 4.4024 17.0421 4.42414 17.0257C4.44587 17.0092 4.4724 17.0002 4.49968 17.0002C4.52696 17.0002 4.55349 17.0092 4.57522 17.0257C4.59695 17.0421 4.6127 17.0653 4.62005 17.0916L5.01529 18.6253C5.03761 18.7118 5.0827 18.7907 5.14588 18.8539C5.20906 18.9171 5.28801 18.9622 5.37453 18.9845L6.90824 19.3797C6.93461 19.387 6.95787 19.4027 6.97445 19.4245C6.99102 19.4463 7 19.4729 7 19.5002C7 19.5276 6.99102 19.5542 6.97445 19.576C6.95787 19.5977 6.93461 19.6135 6.90824 19.6207L5.37453 20.016C5.28801 20.0383 5.20906 20.0834 5.14588 20.1466C5.0827 20.2098 5.03761 20.2887 5.01529 20.3752L4.6198 21.9089C4.61245 21.9352 4.5967 21.9583 4.57497 21.9748C4.55324 21.9913 4.52671 22.0002 4.49943 22.0002C4.47215 22.0002 4.44562 21.9913 4.42389 21.9748C4.40215 21.9583 4.38641 21.9352 4.37906 21.9089L3.98382 20.3752Z",
|
|
41
|
+
stroke: `url(#${C}-stroke3)`,
|
|
42
|
+
strokeLinecap: "round",
|
|
43
|
+
strokeLinejoin: "round"
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ r("defs", { children: [
|
|
47
|
+
/* @__PURE__ */ r(
|
|
48
|
+
"linearGradient",
|
|
49
|
+
{
|
|
50
|
+
id: `${C}-stroke1`,
|
|
51
|
+
x1: "0.149625",
|
|
52
|
+
y1: "0.148102",
|
|
53
|
+
x2: "23.8539",
|
|
54
|
+
y2: "23.8524",
|
|
55
|
+
gradientUnits: "userSpaceOnUse",
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ o("stop", { offset: "0.287444", stopColor: "var(--start-color)" }),
|
|
58
|
+
/* @__PURE__ */ o("stop", { offset: "0.728693", stopColor: "var(--end-color)" })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ r(
|
|
63
|
+
"linearGradient",
|
|
64
|
+
{
|
|
65
|
+
id: `${C}-stroke2`,
|
|
66
|
+
x1: "16.537",
|
|
67
|
+
y1: "1.53728",
|
|
68
|
+
x2: "22.463",
|
|
69
|
+
y2: "7.46321",
|
|
70
|
+
gradientUnits: "userSpaceOnUse",
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ o("stop", { offset: "0.287444", stopColor: "var(--start-color)" }),
|
|
73
|
+
/* @__PURE__ */ o("stop", { offset: "0.728693", stopColor: "var(--end-color)" })
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ r(
|
|
78
|
+
"linearGradient",
|
|
79
|
+
{
|
|
80
|
+
id: `${C}-stroke3`,
|
|
81
|
+
x1: "1.53704",
|
|
82
|
+
y1: "16.5373",
|
|
83
|
+
x2: "7.46296",
|
|
84
|
+
y2: "22.4632",
|
|
85
|
+
gradientUnits: "userSpaceOnUse",
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ o("stop", { offset: "0.287444", stopColor: "var(--start-color)" }),
|
|
88
|
+
/* @__PURE__ */ o("stop", { offset: "0.728693", stopColor: "var(--end-color)" })
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
] })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
});
|
|
97
|
+
export {
|
|
98
|
+
a as default
|
|
99
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),s=require("react"),q=s.forwardRef((t,r)=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"32px",viewBox:"0 96 960 960",width:"32px",ref:r,...t,children:[e.jsx("title",{children:"User Avatar"}),e.jsx("path",{d:"M222 801q63-40 124.5-60.5T480 720q72 0 134 20.5T739 801q44-54 62.5-109T820 576q0-145-97.5-242.5T480 236q-145 0-242.5 97.5T140 576q0 61 19 116t63 109Zm257.814-195Q422 606 382.5 566.314q-39.5-39.686-39.5-97.5t39.686-97.314q39.686-39.5 97.5-39.5t97.314 39.686q39.5 39.686 39.5 97.5T577.314 566.5q-39.686 39.5-97.5 39.5Zm-.219 370q-83.146 0-156.275-31.5t-127.225-86Q142 804 111 731.159 80 658.319 80 575.5q0-82.819 31.5-155.659Q143 347 197.5 293t127.341-85.5Q397.681 176 480.5 176q82.819 0 155.659 31.5Q709 239 763 293t85.5 127Q880 493 880 575.734q0 82.734-31.5 155.5T763 858.5q-54 54.5-127.129 86T479.595 976Z",fill:"currentColor"})]}));exports.default=q;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as o } from "react";
|
|
4
|
+
const l = o((r, q) => /* @__PURE__ */ e(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
height: "32px",
|
|
9
|
+
viewBox: "0 96 960 960",
|
|
10
|
+
width: "32px",
|
|
11
|
+
ref: q,
|
|
12
|
+
...r,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ t("title", { children: "User Avatar" }),
|
|
15
|
+
/* @__PURE__ */ t(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
d: "M222 801q63-40 124.5-60.5T480 720q72 0 134 20.5T739 801q44-54 62.5-109T820 576q0-145-97.5-242.5T480 236q-145 0-242.5 97.5T140 576q0 61 19 116t63 109Zm257.814-195Q422 606 382.5 566.314q-39.5-39.686-39.5-97.5t39.686-97.314q39.686-39.5 97.5-39.5t97.314 39.686q39.5 39.686 39.5 97.5T577.314 566.5q-39.686 39.5-97.5 39.5Zm-.219 370q-83.146 0-156.275-31.5t-127.225-86Q142 804 111 731.159 80 658.319 80 575.5q0-82.819 31.5-155.659Q143 347 197.5 293t127.341-85.5Q397.681 176 480.5 176q82.819 0 155.659 31.5Q709 239 763 293t85.5 127Q880 493 880 575.734q0 82.734-31.5 155.5T763 858.5q-54 54.5-127.129 86T479.595 976Z",
|
|
19
|
+
fill: "currentColor"
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
));
|
|
25
|
+
export {
|
|
26
|
+
l as default
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var L=1,y=.9,D=.8,H=.17,R=.1,p=.999,J=.9999,Y=.99,$=/[\\\/_+.#"@\[\(\{&]/,a=/[\\\/_+.#"@\[\(\{&]/g,j=/[\s-]/,X=/[\s-]/g;function G(c,A,h,C,f,P,S){if(P===A.length)return f===c.length?L:Y;var T=`${f},${P}`;if(S[T]!==void 0)return S[T];for(var U=C.charAt(P),E=h.indexOf(U,f),O=0,_,N,M,u;E>=0;)_=G(c,A,h,C,E+1,P+1,S),_>O&&(E===f?_*=L:$.test(c.charAt(E-1))?(_*=D,M=c.slice(f,E-1).match(a),M&&f>0&&(_*=Math.pow(p,M.length))):j.test(c.charAt(E-1))?(_*=y,u=c.slice(f,E-1).match(X),u&&f>0&&(_*=Math.pow(p,u.length))):(_*=H,f>0&&(_*=Math.pow(p,E-f))),c.charAt(E)!==A.charAt(P)&&(_*=J)),(_<R&&h.charAt(E-1)===C.charAt(P+1)||C.charAt(P+1)===C.charAt(P)&&h.charAt(E-1)!==C.charAt(P))&&(N=G(c,A,h,C,E+1,P+2,S),N*R>_&&(_=N*R)),_>O&&(O=_),E=h.indexOf(U,E+1);return S[T]=O,O}function m(c){return c.toLowerCase().replace(X," ")}function k(c,A,h){return c=h&&h.length>0?`${c+" "+h.join(" ")}`:c,G(c,A,m(c),m(A),0,0,{})}exports.commandScore=k;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var L = 1, H = 0.9, J = 0.8, Y = 0.17, p = 0.1, u = 0.999, $ = 0.9999, k = 0.99, B = /[\\\/_+.#"@\[\(\{&]/, K = /[\\\/_+.#"@\[\(\{&]/g, W = /[\s-]/, D = /[\s-]/g;
|
|
3
|
+
function G(c, C, h, P, f, A, O) {
|
|
4
|
+
if (A === C.length)
|
|
5
|
+
return f === c.length ? L : k;
|
|
6
|
+
var T = `${f},${A}`;
|
|
7
|
+
if (O[T] !== void 0)
|
|
8
|
+
return O[T];
|
|
9
|
+
for (var U = P.charAt(A), E = h.indexOf(U, f), S = 0, _, N, M, R; E >= 0; )
|
|
10
|
+
_ = G(
|
|
11
|
+
c,
|
|
12
|
+
C,
|
|
13
|
+
h,
|
|
14
|
+
P,
|
|
15
|
+
E + 1,
|
|
16
|
+
A + 1,
|
|
17
|
+
O
|
|
18
|
+
), _ > S && (E === f ? _ *= L : B.test(c.charAt(E - 1)) ? (_ *= J, M = c.slice(f, E - 1).match(K), M && f > 0 && (_ *= Math.pow(u, M.length))) : W.test(c.charAt(E - 1)) ? (_ *= H, R = c.slice(f, E - 1).match(D), R && f > 0 && (_ *= Math.pow(u, R.length))) : (_ *= Y, f > 0 && (_ *= Math.pow(u, E - f))), c.charAt(E) !== C.charAt(A) && (_ *= $)), (_ < p && h.charAt(E - 1) === P.charAt(A + 1) || P.charAt(A + 1) === P.charAt(A) && // allow duplicate letters. Ref #7428
|
|
19
|
+
h.charAt(E - 1) !== P.charAt(A)) && (N = G(
|
|
20
|
+
c,
|
|
21
|
+
C,
|
|
22
|
+
h,
|
|
23
|
+
P,
|
|
24
|
+
E + 1,
|
|
25
|
+
A + 2,
|
|
26
|
+
O
|
|
27
|
+
), N * p > _ && (_ = N * p)), _ > S && (S = _), E = h.indexOf(U, E + 1);
|
|
28
|
+
return O[T] = S, S;
|
|
29
|
+
}
|
|
30
|
+
function X(c) {
|
|
31
|
+
return c.toLowerCase().replace(D, " ");
|
|
32
|
+
}
|
|
33
|
+
function j(c, C, h) {
|
|
34
|
+
return c = h && h.length > 0 ? `${c + " " + h.join(" ")}` : c, G(
|
|
35
|
+
c,
|
|
36
|
+
C,
|
|
37
|
+
X(c),
|
|
38
|
+
X(C),
|
|
39
|
+
0,
|
|
40
|
+
0,
|
|
41
|
+
{}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
j as commandScore
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),D=require("../dialog.cjs"),G=require("react"),je=require("./command-score.cjs"),I=require("@radix-ui/react-primitive"),q=require("@radix-ui/react-id"),Pe=require("../../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.cjs"),Ae=require("../../constants/search.cjs"),_e=require("../../utils/compose-event-handlers.cjs"),Me=require("../../providers/widget-provider.cjs"),Le=require("../shadow/context.cjs");function Oe(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>t[r]})}}return n.default=t,Object.freeze(n)}const c=Oe(G),O='[cmdk-group=""]',ee='[cmdk-group-items=""]',qe='[cmdk-group-heading=""]',de='[cmdk-item=""]',ae=`${de}:not([aria-disabled="true"])`,te="cmdk-item-select",_="data-value",fe=(t,n,r)=>je.commandScore(t,n,r??[]),me=c.createContext(void 0),V=()=>c.useContext(me),ve=c.createContext(void 0),K=()=>c.useContext(ve),he=c.createContext(void 0),re=c.forwardRef((t,n)=>{const r=M(()=>new Set),s=M(()=>new Map),a=M(()=>new Map),f=M(()=>new Set),i=we(t),{label:h,children:d,value:S,onValueChange:E,filter:w,shouldFilter:C,loop:y,disablePointerSelection:A=!1,vimBindings:B=!0,defaultSearch:ne,...$}=t,g=M(()=>({search:ne??"",value:t.value??t.defaultValue??"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),U=q.useId(),z=q.useId(),H=q.useId(),R=c.useRef(null),b=Ge();j(()=>{if(S!==void 0){const e=S.trim();g.current.value=e,x.emit()}},[S]),j(()=>{b(6,ce)},[]);const F=Le.useShadow(),x=c.useMemo(()=>({subscribe:e=>(f.current.add(e),()=>f.current.delete(e)),snapshot:()=>g.current,setState:(e,l,o)=>{if(!Object.is(g.current[e],l)){if(g.current[e]=l,e==="search")X(),J(),b(1,Q);else if(e==="value"&&(F?.shadowHost?.shadowRoot?.activeElement?.hasAttribute("cmdk-input")||b(1,()=>{k()?.focus()}),b(7,()=>{g.current.selectedItemId=k()?.id,x.emit()}),o||b(5,ce),i.current?.value!==void 0)){const p=l??"";i.current.onValueChange?.(p);return}x.emit()}},emit:()=>{f.current.forEach(e=>e())}}),[]),W=c.useMemo(()=>({value:(e,l,o)=>{l!==a.current.get(e)?.value&&(a.current.set(e,{value:l,keywords:o}),g.current.filtered.items.set(e,oe(l,o)),b(2,()=>{J(),x.emit()}))},item:(e,l)=>(r.current.add(e),l&&(s.current.has(l)?s.current?.get(l)?.add(e):s.current.set(l,new Set([e]))),b(3,()=>{X(),J(),g.current.value||Q(),x.emit()}),()=>{a.current.delete(e),r.current.delete(e),g.current.filtered.items.delete(e);const o=k();b(4,()=>{X(),o?.getAttribute("id")===e&&Q(),x.emit()})}),group:e=>(s.current.has(e)||s.current.set(e,new Set),()=>{a.current.delete(e),s.current.delete(e)}),filter:()=>!!i.current.shouldFilter,label:h||t["aria-label"]||"",getDisablePointerSelection:()=>!!i.current.disablePointerSelection,listId:U,inputId:H,labelId:z,listInnerRef:R}),[]);function oe(e,l){const o=i.current?.filter??fe;return e?o?.(e,g.current.search,l):0}function J(){if(!g.current.search||i.current.shouldFilter===!1)return;const e=g.current.filtered.items,l=[];g.current.filtered.groups.forEach(u=>{const m=s.current.get(u);let p=0;m.forEach(Z=>{const ke=e.get(Z);p=Math.max(ke,p)}),l.push([u,p])});const o=R.current;L().sort((u,m)=>{const p=u.getAttribute("id"),Z=m.getAttribute("id");return(e.get(Z)??0)-(e.get(p)??0)}).forEach(u=>{const m=u.closest(ee);if(m){const p=u.parentElement===m?u:u.closest(`${ee} > *`);p&&m.appendChild(p)}else{const p=u.parentElement===o?u:u.closest(`${ee} > *`);p&&o?.appendChild(p)}}),l.sort((u,m)=>m[1]-u[1]).forEach(u=>{const m=R.current?.querySelector(`${O}[${_}="${encodeURIComponent(u[0])}"]`);m?.parentElement?.appendChild(m)})}function Q(){const l=L().find(o=>o.getAttribute("aria-disabled")!=="true"&&o.getAttribute("data-value")!==Ae.ASK_AI_TRIGGER_VALUE)?.getAttribute(_);x.setState("value",l||void 0)}function X(){if(!g.current.search||i.current.shouldFilter===!1){g.current.filtered.count=r.current.size;return}g.current.filtered.groups=new Set;let e=0;for(const l of r.current){const o=a.current.get(l)?.value??"",u=a.current.get(l)?.keywords??[],m=oe(o,u);g.current.filtered.items.set(l,m),m>0&&e++}for(const[l,o]of s.current)for(const u of o){const m=g.current.filtered.items.get(u);if(m&&m>0){g.current.filtered.groups.add(l);break}}g.current.filtered.count=e}function ce(){const e=k();e&&(e.parentElement?.firstChild===e&&e.closest(O)?.querySelector(qe)?.scrollIntoView({block:"nearest"}),e.scrollIntoView({block:"nearest"}))}function k(){return R.current?.querySelector(`${de}[aria-selected="true"]`)}function L(){return Array.from(R.current?.querySelectorAll(ae)||[])}function se(e){const o=L()[e];o&&x.setState("value",o.getAttribute(_))}function Y(e){const l=k(),o=L(),u=o.findIndex(p=>p===l);let m=o[u+e];i.current?.loop&&(m=u+e<0?o[o.length-1]:u+e===o.length?o[0]:o[u+e]),m&&x.setState("value",m.getAttribute(_))}function ie(e){let o=k()?.closest(O),u;for(;o&&!u;)o=e>0?Fe(o,O):De(o,O),u=o?.querySelector(ae);u?x.setState("value",u.getAttribute(_)):Y(e)}const Ie=()=>se(L().length-1),le=e=>{e.preventDefault(),e.metaKey?Ie():e.altKey?ie(1):Y(1)},ue=e=>{e.preventDefault(),e.metaKey?se(0):e.altKey?ie(-1):Y(-1)},Re=Me.useWidget();return v.jsxs(I.Primitive.div,{ref:n,tabIndex:-1,...$,"cmdk-root":"",onKeyDown:e=>{if(Re?.view==="search"&&($.onKeyDown?.(e),!e.defaultPrevented))switch(e.key){case"n":case"j":{B&&e.ctrlKey&&le(e);break}case"ArrowDown":{le(e);break}case"p":case"k":{B&&e.ctrlKey&&ue(e);break}case"ArrowUp":{ue(e);break}case"Enter":if(!e.nativeEvent.isComposing&&e.keyCode!==229){e.preventDefault();const l=k();if(l){const o=new Event(te);l.dispatchEvent(o)}}}},style:{display:"contents"},children:[v.jsx("label",{"cmdk-label":"",htmlFor:W.inputId,id:W.labelId,style:Ne,children:h}),N(t,e=>v.jsx(ve.Provider,{value:x,children:v.jsx(me.Provider,{value:W,children:e})}))]})}),ge=c.forwardRef((t,n)=>{const{id:r}=t,s=c.useRef(null),a=c.useContext(he),f=V(),i=we(t),h=i.current?.forceMount??a?.forceMount;j(()=>{if(!h)return f.item(r,a?.id)},[h]);const d=ye(r,s,[t.value,t.children,s],t.keywords),S=K(),E=P(b=>b.value&&b.value===d.current),w=P(b=>h||f.filter()===!1?!0:b.search?b.filtered.items.get(r)>0:!0);c.useEffect(()=>{const b=s.current;if(!b||t.disabled)return;const F=()=>y("keyboard");return b.addEventListener(te,F),()=>b.removeEventListener(te,F)},[w,t.onSelect,t.disabled]);const C=G.useCallback(()=>{S.setState("value",d.current,!0)},[S,d]),y=G.useCallback((b="click")=>{C(),i.current.onSelect?.({value:d.current,trigger:b})},[C,i,d]);if(!w)return null;const{disabled:A,value:B,onSelect:ne,forceMount:$,keywords:g,onClick:U,...z}=t,H=G.useMemo(()=>T([s,n]),[s,n]),R=_e.composeEventHandlers(U,y);return v.jsx(I.Primitive.div,{ref:H,...z,id:r,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!E,"data-disabled":!!A,"data-selected":!!E,onPointerMove:A||f.getDisablePointerSelection()?void 0:C,onClick:A?void 0:R,onFocus:A?void 0:C,children:t.children})}),Te=c.forwardRef((t,n)=>{const{heading:r,children:s,forceMount:a,...f}=t,i=q.useId(),h=c.useRef(null),d=c.useRef(null),S=q.useId(),E=V(),w=P(y=>a||E.filter()===!1?!0:y.search?y.filtered.groups.has(i):!0);j(()=>E.group(i),[]),ye(i,h,[t.value,t.heading,d]);const C=c.useMemo(()=>({id:i,forceMount:a}),[a]);return v.jsxs(I.Primitive.div,{ref:T([h,n]),...f,"cmdk-group":"",role:"presentation",hidden:w?void 0:!0,children:[r&&v.jsx("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:S,children:r}),N(t,y=>v.jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?S:void 0,children:v.jsx(he.Provider,{value:C,children:y})}))]})}),be=c.forwardRef((t,n)=>{const{alwaysRender:r,...s}=t,a=c.useRef(null),f=P(i=>!i.search);return!r&&!f?null:v.jsx(I.Primitive.div,{ref:T([a,n]),...s,"cmdk-separator":"",role:"separator"})}),pe=c.forwardRef((t,n)=>{const{onValueChange:r,...s}=t,a=t.value!=null,f=K(),i=P(d=>d.search),h=V();return c.useEffect(()=>{t.value!=null&&f.setState("search",t.value)},[t.value]),v.jsx(I.Primitive.input,{ref:n,...s,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":h.listId,"aria-labelledby":h.labelId,id:h.inputId,type:"text",value:a?t.value:i,onChange:d=>{a||f.setState("search",d.target.value),r?.(d.target.value)}})}),Se=c.forwardRef((t,n)=>{const{children:r,label:s="Suggestions",...a}=t,f=c.useRef(null),i=c.useRef(null),h=V();return c.useEffect(()=>{if(i.current&&f.current){const d=i.current,S=f.current;let E;const w=new ResizeObserver(()=>{E=requestAnimationFrame(()=>{const C=d.offsetHeight;S.style.setProperty("--cmdk-list-height",C.toFixed(1)+"px")})});return w.observe(d),()=>{cancelAnimationFrame(E),w.unobserve(d)}}},[]),v.jsx(I.Primitive.div,{ref:T([f,n]),...a,"cmdk-list":"",tabIndex:-1,"aria-label":s,id:h.listId,children:N(t,d=>v.jsx("div",{ref:T([i,h.listInnerRef]),"cmdk-list-sizer":"",children:d}))})}),xe=c.forwardRef((t,n)=>{const{open:r,onOpenChange:s,overlayClassName:a,contentClassName:f,container:i,...h}=t;return v.jsx(D.Root,{open:r,onOpenChange:s,children:v.jsxs(D.Portal,{container:i,children:[v.jsx(D.Overlay,{"cmdk-overlay":"",className:a}),v.jsx(D.Content,{"aria-label":t.label,"cmdk-dialog":"",className:f,children:v.jsx(re,{ref:n,...h})})]})})}),Ee=c.forwardRef((t,n)=>P(s=>s.filtered.count===0)?v.jsx(I.Primitive.div,{ref:n,...t,"cmdk-empty":"",role:"presentation"}):null),Ce=c.forwardRef((t,n)=>{const{progress:r,children:s,label:a="Loading...",...f}=t;return v.jsx(I.Primitive.div,{ref:n,...f,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,children:N(t,i=>v.jsx("div",{"aria-hidden":!0,children:i}))})}),Ve=Object.assign(re,{List:Se,Item:ge,Input:pe,Group:Te,Separator:be,Dialog:xe,Empty:Ee,Loading:Ce});function Fe(t,n){let r=t.nextElementSibling;for(;r;){if(r.matches(n))return r;r=r.nextElementSibling}}function De(t,n){let r=t.previousElementSibling;for(;r;){if(r.matches(n))return r;r=r.previousElementSibling}}function we(t){const n=c.useRef(t);return j(()=>{n.current=t}),n}const j=typeof window>"u"?c.useEffect:c.useLayoutEffect;function M(t){const n=c.useRef(void 0);return n.current===void 0&&(n.current=t()),n}function T(t){return n=>{t.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}function P(t){const n=K(),r=()=>t(n.snapshot());return Pe.shimExports.useSyncExternalStore(n.subscribe,r,r)}function ye(t,n,r,s=[]){const a=c.useRef(void 0),f=V();return j(()=>{const i=(()=>{for(const d of r){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?d.current.textContent?.trim():a.current}})(),h=s.map(d=>d.trim());f.value(t,i,h),n.current?.setAttribute(_,i),a.current=i}),a}const Ge=()=>{const[t,n]=c.useState(),r=M(()=>new Map);return j(()=>{r.current.forEach(s=>s()),r.current=new Map},[t]),(s,a)=>{r.current.set(s,a),n({})}};function Ke(t){const n=t.type;return typeof n=="function"?n(t.props):"render"in n?n.render(t.props):t}function N({asChild:t,children:n},r){return t&&c.isValidElement(n)?c.cloneElement(Ke(n),{ref:n.ref},r(n.props.children)):r(n)}const Ne={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};exports.Command=Ve;exports.CommandDialog=xe;exports.CommandEmpty=Ee;exports.CommandInput=pe;exports.CommandItem=ge;exports.CommandList=Se;exports.CommandLoading=Ce;exports.CommandRoot=re;exports.CommandSeparator=be;exports.defaultFilter=fe;exports.useCommandState=P;exports.useCommandStore=K;
|