@mcp-use/inspector 12.0.4-canary.0 → 20.0.0-beta.0
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/README.md +39 -6
- package/dist/cdn/AnimatePresence-B4HhIdgq.js +393 -0
- package/dist/cdn/ChatTab-5ya_YTFV.js +13218 -0
- package/dist/cdn/CheckboxIndicator-BF2cKfbA.js +251 -0
- package/dist/cdn/ConnectionSettingsForm-iwNW86ZU.js +873 -0
- package/dist/cdn/ConnectionSettingsTab-CeK83dxn.js +145 -0
- package/dist/cdn/ElicitationTab-upPXq2q7.js +654 -0
- package/dist/cdn/FormContext-Cl51-7O7.js +135 -0
- package/dist/cdn/InspectorContext-DzXtgyTx.js +143 -0
- package/dist/cdn/JSONDisplay-D3RcyO9z.js +324 -0
- package/dist/cdn/ListTabHeader-8lULn-90.js +88 -0
- package/dist/cdn/ManufactOAuthCallback-DEM8mhWD.js +31 -0
- package/dist/cdn/NotificationsTab-CWopTIzT.js +290 -0
- package/dist/cdn/OAuthCallback-BxuOVgdb.js +58 -0
- package/dist/cdn/PromptsTab-Cspfnl6n.js +4400 -0
- package/dist/cdn/ResourcesTab-BczUMFil.js +584 -0
- package/dist/cdn/SamplingTab-6u5s845G.js +658 -0
- package/dist/cdn/ServerMetadataTab-DS0eiyyD.js +244 -0
- package/dist/cdn/StatusIcon-BGXOEU2u.js +66 -0
- package/dist/cdn/ToolsTab-CUhwP4rZ.js +2067 -0
- package/dist/cdn/ViewPreview-CxJc1Kht.js +237 -0
- package/dist/cdn/WidgetDebugContext-D4usL_MA.js +324 -0
- package/dist/cdn/WidgetWrapper-BJJtLqMb.js +2211 -0
- package/dist/cdn/apple-touch-icon.png +0 -0
- package/dist/cdn/basePath-B8HuhIMu.js +25 -0
- package/dist/cdn/bell-CGjAO_0s.js +10 -0
- package/dist/cdn/browser-CbQIH4w2.js +42 -0
- package/dist/cdn/brush-B_mKhyxG.js +17 -0
- package/dist/cdn/bundle-mjs-B0nmHDtp.js +1953 -0
- package/dist/cdn/card-DqjqAq0o.js +41 -0
- package/dist/cdn/cfWorker-Bxcs9rNe.js +10799 -0
- package/dist/cdn/checkbox-B4oUG6Rr.js +20 -0
- package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +17500 -0
- package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +1508 -0
- package/dist/cdn/clock-CmUbSx_B.js +12 -0
- package/dist/cdn/code-V_0nf5rg.js +10 -0
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +38 -0
- package/dist/cdn/dialog-Dnl-pZsY.js +1028 -0
- package/dist/cdn/dist-DjXr_YO3.js +616 -0
- package/dist/cdn/dist-mRDqCgKU.js +2305 -0
- package/dist/cdn/external-link-CjmfT6rW.js +17 -0
- package/dist/cdn/eye-B7H96av8.js +29 -0
- package/dist/cdn/favicon-96x96.png +0 -0
- package/dist/cdn/favicon-black.svg +5 -8
- package/dist/cdn/favicon-white.svg +4 -7
- package/dist/cdn/favicon.ico +0 -0
- package/dist/cdn/favicon.svg +5 -0
- package/dist/cdn/folder-open-B3lu2rG_.js +7 -0
- package/dist/cdn/hash-BVQnWi7q.js +33 -0
- package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +36 -0
- package/dist/cdn/history-Csw4rb44.js +17 -0
- package/dist/cdn/index-browser-CVUwR-Bu.js +1934 -0
- package/dist/cdn/info-CNiOwqkf.js +19 -0
- package/dist/cdn/input-BLxOA7V-.js +10215 -0
- package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +4 -0
- package/dist/cdn/inspector.css +1 -2
- package/dist/cdn/inspector.js +10854 -133726
- package/dist/cdn/jsx-runtime-CIxvMpEo.js +180 -0
- package/dist/cdn/label-CBvG613A.js +60 -0
- package/dist/cdn/loader-circle-BLy9A_pp.js +7 -0
- package/dist/cdn/manufact-auth-0TVxpeTA.js +387 -0
- package/dist/cdn/maximize-2-CH5Lq90B.js +21 -0
- package/dist/cdn/maximize-BALCV_ep.js +21 -0
- package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +2 -0
- package/dist/cdn/message-square-BnxdpJxZ.js +7 -0
- package/dist/cdn/not-found-BcNNsTjS.js +34 -0
- package/dist/cdn/pdf-CxFT9FER.js +16291 -0
- package/dist/cdn/play-vuZ5PLnI.js +7 -0
- package/dist/cdn/popover-C_SSrXT0.js +2005 -0
- package/dist/cdn/react-BIs9pQ3H.js +926 -0
- package/dist/cdn/react-yUi9mVK4.js +5411 -0
- package/dist/cdn/refresh-cw-BXY-Pa0U.js +21 -0
- package/dist/cdn/save-Tgil_AJZ.js +34 -0
- package/dist/cdn/schemaHelpers-DTV38jGq.js +16 -0
- package/dist/cdn/select-BZ_IoKxg.js +2594 -0
- package/dist/cdn/servers-Dm72iTpY.js +26 -0
- package/dist/cdn/shared-uMiV6Fx1.js +1700 -0
- package/dist/cdn/sheet-CerCdhxz.js +78 -0
- package/dist/cdn/site.webmanifest +21 -0
- package/dist/cdn/sparkles-BntO2rDR.js +23 -0
- package/dist/cdn/spinner-CWcJhIY_.js +15 -0
- package/dist/cdn/square-check-big-BvwQ17Bl.js +10 -0
- package/dist/cdn/switch-DtQOLb9R.js +664 -0
- package/dist/cdn/tabs-subtle-C5cy35sY.js +787 -0
- package/dist/cdn/telemetry-Ct6pVkM1.js +240 -0
- package/dist/cdn/textarea-Bj-CT7hC.js +14 -0
- package/dist/cdn/trash-2-RwpJY5SL.js +25 -0
- package/dist/cdn/useAriaLabelledBy-Bm9qHGK6.js +29 -0
- package/dist/cdn/useCompositeItem-CNJ6MXdi.js +26 -0
- package/dist/cdn/useConfig-CwxZ6Quj.js +208 -0
- package/dist/cdn/useHostedSession-BA39Aegc.js +153 -0
- package/dist/cdn/useMCPPrompts-D3_Hla_z.js +104 -0
- package/dist/cdn/useSavedRequests-Ci2I919u.js +51 -0
- package/dist/cdn/useViewHostProps-C7vjco2m.js +348 -0
- package/dist/cdn/web-app-manifest-192x192.png +0 -0
- package/dist/cdn/web-app-manifest-512x512.png +0 -0
- package/dist/cdn/wrench-DzGmCfnb.js +7 -0
- package/dist/cdn/x-C3vRQIYu.js +10 -0
- package/dist/cdn/zap-Mb-pbw2X.js +10 -0
- package/dist/cli.js +1060 -3601
- package/dist/client/auth/manufact-auth.d.ts +30 -0
- package/dist/client/auth/manufact-auth.d.ts.map +1 -0
- package/dist/client/chat-history/ChatHistoryHeader.d.ts +4 -0
- package/dist/client/chat-history/ChatHistoryHeader.d.ts.map +1 -0
- package/dist/client/chat-history/ChatHistoryPanel.d.ts +28 -0
- package/dist/client/chat-history/ChatHistoryPanel.d.ts.map +1 -0
- package/dist/client/chat-history/ChatHistoryRail.d.ts +5 -0
- package/dist/client/chat-history/ChatHistoryRail.d.ts.map +1 -0
- package/dist/client/chat-history/ChatList.d.ts +18 -0
- package/dist/client/chat-history/ChatList.d.ts.map +1 -0
- package/dist/client/chat-history/ChatTitleReveal.d.ts +10 -0
- package/dist/client/chat-history/ChatTitleReveal.d.ts.map +1 -0
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts +13 -0
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts.map +1 -0
- package/dist/client/chat-history/chat-title.d.ts +10 -0
- package/dist/client/chat-history/chat-title.d.ts.map +1 -0
- package/dist/client/chat-history/providers/local-storage.d.ts +21 -0
- package/dist/client/chat-history/providers/local-storage.d.ts.map +1 -0
- package/dist/client/chat-history/types.d.ts +39 -0
- package/dist/client/chat-history/types.d.ts.map +1 -0
- package/dist/client/chat-history/useChatHistory.d.ts +20 -0
- package/dist/client/chat-history/useChatHistory.d.ts.map +1 -0
- package/dist/client/chat-history/useChatTitleGeneration.d.ts +17 -0
- package/dist/client/chat-history/useChatTitleGeneration.d.ts.map +1 -0
- package/dist/client/components/AddToClientDropdown.d.ts.map +1 -1
- package/dist/client/components/ChatTab.d.ts +28 -3
- package/dist/client/components/ChatTab.d.ts.map +1 -1
- package/dist/client/components/IframeConsole.d.ts.map +1 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts +2 -18
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
- package/dist/client/components/PromptsTab.d.ts +1 -1
- package/dist/client/components/PromptsTab.d.ts.map +1 -1
- package/dist/client/components/ResourcesTab.d.ts +1 -1
- package/dist/client/components/ResourcesTab.d.ts.map +1 -1
- package/dist/client/components/ToolsTab.d.ts +3 -3
- package/dist/client/components/ToolsTab.d.ts.map +1 -1
- package/dist/client/components/chat/AssistantMessage.d.ts +2 -1
- package/dist/client/components/chat/AssistantMessage.d.ts.map +1 -1
- package/dist/client/components/chat/ChatHeader.d.ts +20 -2
- package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
- package/dist/client/components/chat/ChatInput.d.ts +6 -2
- package/dist/client/components/chat/ChatInput.d.ts.map +1 -1
- package/dist/client/components/chat/ChatInputArea.d.ts +31 -3
- package/dist/client/components/chat/ChatInputArea.d.ts.map +1 -1
- package/dist/client/components/chat/ChatLandingForm.d.ts +5 -42
- package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts +7 -0
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts.map +1 -0
- package/dist/client/components/chat/ChatTraceView.d.ts +7 -0
- package/dist/client/components/chat/ChatTraceView.d.ts.map +1 -0
- package/dist/client/components/chat/ConfigurationDialog.d.ts +12 -2
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
- package/dist/client/components/chat/ConfigureEmptyState.d.ts +2 -5
- package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
- package/dist/client/components/chat/CopyButton.d.ts.map +1 -1
- package/dist/client/components/chat/FloatingChatElicitation.d.ts +10 -0
- package/dist/client/components/chat/FloatingChatElicitation.d.ts.map +1 -0
- package/dist/client/components/chat/MessageList.d.ts +6 -11
- package/dist/client/components/chat/MessageList.d.ts.map +1 -1
- package/dist/client/components/chat/MessageMetaActions.d.ts +7 -0
- package/dist/client/components/chat/MessageMetaActions.d.ts.map +1 -0
- package/dist/client/components/chat/PromptsDropdown.d.ts +1 -1
- package/dist/client/components/chat/PromptsDropdown.d.ts.map +1 -1
- package/dist/client/components/chat/StreamingAssistantContent.d.ts +7 -0
- package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -0
- package/dist/client/components/chat/SystemPromptButton.d.ts +11 -0
- package/dist/client/components/chat/SystemPromptButton.d.ts.map +1 -0
- package/dist/client/components/chat/ToolCallDisplay.d.ts.map +1 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts +2 -9
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
- package/dist/client/components/chat/ToolSelector.d.ts.map +1 -1
- package/dist/client/components/chat/UserMessage.d.ts +2 -1
- package/dist/client/components/chat/UserMessage.d.ts.map +1 -1
- package/dist/client/components/chat/chat-bar-styles.d.ts +6 -0
- package/dist/client/components/chat/chat-bar-styles.d.ts.map +1 -0
- package/dist/client/components/chat/conversion.d.ts +1 -1
- package/dist/client/components/chat/conversion.d.ts.map +1 -1
- package/dist/client/components/chat/freeTier.d.ts +11 -0
- package/dist/client/components/chat/freeTier.d.ts.map +1 -1
- package/dist/client/components/chat/providerMeta.d.ts +10 -1
- package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
- package/dist/client/components/chat/streamdown-code-slim.d.ts +4 -0
- package/dist/client/components/chat/streamdown-code-slim.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt/local-storage.d.ts +5 -0
- package/dist/client/components/chat/system-prompt/local-storage.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt/types.d.ts +8 -0
- package/dist/client/components/chat/system-prompt/types.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts +3 -0
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt-default.d.ts +2 -0
- package/dist/client/components/chat/system-prompt-default.d.ts.map +1 -0
- package/dist/client/components/chat/trace.d.ts +84 -0
- package/dist/client/components/chat/trace.d.ts.map +1 -0
- package/dist/client/components/chat/types.d.ts +2 -1
- package/dist/client/components/chat/types.d.ts.map +1 -1
- package/dist/client/components/chat/useChatMessages.d.ts +4 -0
- package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts +14 -2
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
- package/dist/client/components/chat/useChatScrollToBottom.d.ts +13 -0
- package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -0
- package/dist/client/components/chat/useConfig.d.ts +2 -2
- package/dist/client/components/chat/useConfig.d.ts.map +1 -1
- package/dist/client/components/chat/useHostedChatMode.d.ts +14 -0
- package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -0
- package/dist/client/components/chat/useManagedCloudModel.d.ts +14 -0
- package/dist/client/components/chat/useManagedCloudModel.d.ts.map +1 -0
- package/dist/client/components/chat/utils.d.ts +0 -4
- package/dist/client/components/chat/utils.d.ts.map +1 -1
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts +12 -0
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts.map +1 -0
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts +9 -0
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts.map +1 -0
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts +1 -1
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/prompts/PromptInputForm.d.ts +1 -1
- package/dist/client/components/prompts/PromptInputForm.d.ts.map +1 -1
- package/dist/client/components/prompts/PromptResultDisplay.d.ts +1 -1
- package/dist/client/components/prompts/PromptResultDisplay.d.ts.map +1 -1
- package/dist/client/components/prompts/PromptsList.d.ts +1 -1
- package/dist/client/components/prompts/PromptsList.d.ts.map +1 -1
- package/dist/client/components/prompts/SavedPromptsList.d.ts.map +1 -1
- package/dist/client/components/resources/PropsConfigDialog.d.ts +1 -1
- package/dist/client/components/resources/PropsConfigDialog.d.ts.map +1 -1
- package/dist/client/components/resources/ResourceResultDisplay.d.ts +1 -1
- package/dist/client/components/resources/ResourceResultDisplay.d.ts.map +1 -1
- package/dist/client/components/resources/ResourcesList.d.ts +1 -1
- package/dist/client/components/resources/ResourcesList.d.ts.map +1 -1
- package/dist/client/components/shared/CollapsibleJSON.d.ts +6 -0
- package/dist/client/components/shared/CollapsibleJSON.d.ts.map +1 -0
- package/dist/client/components/shared/InspectorScrollArea.d.ts +9 -0
- package/dist/client/components/shared/InspectorScrollArea.d.ts.map +1 -0
- package/dist/client/components/shared/JSONDisplay.d.ts +5 -1
- package/dist/client/components/shared/JSONDisplay.d.ts.map +1 -1
- package/dist/client/components/shared/ListItem.d.ts +1 -3
- package/dist/client/components/shared/ListItem.d.ts.map +1 -1
- package/dist/client/components/shared/ListTabHeader.d.ts +4 -1
- package/dist/client/components/shared/ListTabHeader.d.ts.map +1 -1
- package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
- package/dist/client/components/shared/SearchTabHeader.d.ts +28 -0
- package/dist/client/components/shared/SearchTabHeader.d.ts.map +1 -0
- package/dist/client/components/shared/StatusIcon.d.ts +12 -0
- package/dist/client/components/shared/StatusIcon.d.ts.map +1 -0
- package/dist/client/components/shared/index.d.ts +4 -1
- package/dist/client/components/shared/index.d.ts.map +1 -1
- package/dist/client/components/tools/SavedRequestsList.d.ts.map +1 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts +1 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/tools/ToolInputForm.d.ts +1 -1
- package/dist/client/components/tools/ToolInputForm.d.ts.map +1 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +0 -6
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
- package/dist/client/components/tools/ToolsList.d.ts +1 -1
- package/dist/client/components/tools/ToolsList.d.ts.map +1 -1
- package/dist/client/components/tools/useToolExecution.d.ts +26 -0
- package/dist/client/components/tools/useToolExecution.d.ts.map +1 -0
- package/dist/client/components/tools/useToolsTabNavigation.d.ts +35 -0
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -0
- package/dist/client/components/ui/WidgetWrapper.d.ts +2 -2
- package/dist/client/components/ui/WidgetWrapper.d.ts.map +1 -1
- package/dist/client/components/ui/alert-dialog.d.ts +8 -5
- package/dist/client/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/client/components/ui/ask-user-questions.d.ts +80 -0
- package/dist/client/components/ui/ask-user-questions.d.ts.map +1 -0
- package/dist/client/components/ui/badge.d.ts +32 -7
- package/dist/client/components/ui/badge.d.ts.map +1 -1
- package/dist/client/components/ui/button.d.ts +31 -11
- package/dist/client/components/ui/button.d.ts.map +1 -1
- package/dist/client/components/ui/chat-message.d.ts +23 -0
- package/dist/client/components/ui/chat-message.d.ts.map +1 -0
- package/dist/client/components/ui/checkbox.d.ts +2 -3
- package/dist/client/components/ui/checkbox.d.ts.map +1 -1
- package/dist/client/components/ui/client-icons.d.ts +0 -4
- package/dist/client/components/ui/client-icons.d.ts.map +1 -1
- package/dist/client/components/ui/command.d.ts +13 -64
- package/dist/client/components/ui/command.d.ts.map +1 -1
- package/dist/client/components/ui/dialog.d.ts +36 -12
- package/dist/client/components/ui/dialog.d.ts.map +1 -1
- package/dist/client/components/ui/dropdown-menu.d.ts +17 -48
- package/dist/client/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/client/components/ui/dropdown.d.ts +30 -0
- package/dist/client/components/ui/dropdown.d.ts.map +1 -0
- package/dist/client/components/ui/file-thumbnail.d.ts +9 -0
- package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -0
- package/dist/client/components/ui/label.d.ts +1 -2
- package/dist/client/components/ui/label.d.ts.map +1 -1
- package/dist/client/components/ui/menu-item.d.ts +52 -0
- package/dist/client/components/ui/menu-item.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts +10 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -0
- package/dist/client/components/ui/not-found.d.ts.map +1 -1
- package/dist/client/components/ui/popover.d.ts +4 -5
- package/dist/client/components/ui/popover.d.ts.map +1 -1
- package/dist/client/components/ui/scroll-area.d.ts +4 -0
- package/dist/client/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/client/components/ui/select.d.ts +50 -9
- package/dist/client/components/ui/select.d.ts.map +1 -1
- package/dist/client/components/ui/sheet.d.ts +9 -7
- package/dist/client/components/ui/sheet.d.ts.map +1 -1
- package/dist/client/components/ui/skeleton.d.ts +4 -0
- package/dist/client/components/ui/skeleton.d.ts.map +1 -0
- package/dist/client/components/ui/spinner.d.ts +1 -1
- package/dist/client/components/ui/spinner.d.ts.map +1 -1
- package/dist/client/components/ui/switch.d.ts +19 -7
- package/dist/client/components/ui/switch.d.ts.map +1 -1
- package/dist/client/components/ui/tabs-subtle.d.ts +25 -0
- package/dist/client/components/ui/tabs-subtle.d.ts.map +1 -0
- package/dist/client/components/ui/tooltip.d.ts +41 -6
- package/dist/client/components/ui/tooltip.d.ts.map +1 -1
- package/dist/client/context/InspectorContext.d.ts +6 -10
- package/dist/client/context/InspectorContext.d.ts.map +1 -1
- package/dist/client/context/WidgetDebugContext.d.ts +2 -3
- package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
- package/dist/client/hooks/use-merge-split.d.ts +36 -0
- package/dist/client/hooks/use-merge-split.d.ts.map +1 -0
- package/dist/client/hooks/use-proximity-hover-index.d.ts +27 -0
- package/dist/client/hooks/use-proximity-hover-index.d.ts.map +1 -0
- package/dist/client/hooks/use-proximity-hover.d.ts +26 -0
- package/dist/client/hooks/use-proximity-hover.d.ts.map +1 -0
- package/dist/client/hooks/use-touch-primary.d.ts +2 -0
- package/dist/client/hooks/use-touch-primary.d.ts.map +1 -0
- package/dist/client/hooks/useHostedSession.d.ts +4 -14
- package/dist/client/hooks/useHostedSession.d.ts.map +1 -1
- package/dist/client/hooks/useMCPPrompts.d.ts +1 -1
- package/dist/client/hooks/useMCPPrompts.d.ts.map +1 -1
- package/dist/client/hooks/useMcpAppsHostContext.d.ts +2 -2
- package/dist/client/hooks/useMcpAppsHostContext.d.ts.map +1 -1
- package/dist/client/hooks/usePropsLLM.d.ts +1 -1
- package/dist/client/hooks/usePropsLLM.d.ts.map +1 -1
- package/dist/client/hooks/useSavedRequests.d.ts +6 -0
- package/dist/client/hooks/useSavedRequests.d.ts.map +1 -0
- package/dist/client/hooks/useViewHostProps.d.ts +19 -0
- package/dist/client/hooks/useViewHostProps.d.ts.map +1 -0
- package/dist/client/index.d.ts +19 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +19306 -16141
- package/dist/client/lib/elevated.d.ts +28 -0
- package/dist/client/lib/elevated.d.ts.map +1 -0
- package/dist/client/lib/font-weight.d.ts +10 -0
- package/dist/client/lib/font-weight.d.ts.map +1 -0
- package/dist/client/lib/icon-context.d.ts +15 -0
- package/dist/client/lib/icon-context.d.ts.map +1 -0
- package/dist/client/lib/shape-context.d.ts +21 -0
- package/dist/client/lib/shape-context.d.ts.map +1 -0
- package/dist/client/lib/springs.d.ts +32 -0
- package/dist/client/lib/springs.d.ts.map +1 -0
- package/dist/client/lib/surface-classes.d.ts +2 -0
- package/dist/client/lib/surface-classes.d.ts.map +1 -0
- package/dist/client/lib/surface-context.d.ts +7 -0
- package/dist/client/lib/surface-context.d.ts.map +1 -0
- package/dist/client/lib/utils.d.ts +1 -1
- package/dist/client/lib/utils.d.ts.map +1 -1
- package/dist/client/mcp-apps/csp.d.ts +26 -0
- package/dist/client/mcp-apps/csp.d.ts.map +1 -0
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts +17 -0
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts.map +1 -0
- package/dist/client/mcp-apps/logging-transport.d.ts +13 -0
- package/dist/client/mcp-apps/logging-transport.d.ts.map +1 -0
- package/dist/client/rpc-traffic-coalesce.d.ts +7 -0
- package/dist/client/rpc-traffic-coalesce.d.ts.map +1 -0
- package/dist/client/rpc-traffic-store.d.ts +37 -0
- package/dist/client/rpc-traffic-store.d.ts.map +1 -0
- package/dist/client/telemetry/capture.d.ts +7 -0
- package/dist/client/telemetry/capture.d.ts.map +1 -0
- package/dist/client/telemetry/events.d.ts +1 -1
- package/dist/client/telemetry/events.d.ts.map +1 -1
- package/dist/client/telemetry/index.d.ts +2 -1
- package/dist/client/telemetry/index.d.ts.map +1 -1
- package/dist/client/telemetry/init.d.ts +2 -0
- package/dist/client/telemetry/init.d.ts.map +1 -0
- package/dist/client/telemetry/utils.d.ts +5 -0
- package/dist/client/telemetry/utils.d.ts.map +1 -1
- package/dist/client/types/message-content-block.d.ts +19 -0
- package/dist/client/types/message-content-block.d.ts.map +1 -0
- package/dist/client/types/pending-requests.d.ts +17 -0
- package/dist/client/types/pending-requests.d.ts.map +1 -0
- package/dist/client/utils/basePath.d.ts +34 -0
- package/dist/client/utils/basePath.d.ts.map +1 -0
- package/dist/client/utils/browser.d.ts +5 -0
- package/dist/client/utils/browser.d.ts.map +1 -0
- package/dist/client/utils/format.d.ts +4 -0
- package/dist/client/utils/format.d.ts.map +1 -0
- package/dist/client/utils/highlightJson.d.ts +11 -0
- package/dist/client/utils/highlightJson.d.ts.map +1 -0
- package/dist/client/utils/jsonUtils.d.ts +4 -0
- package/dist/client/utils/jsonUtils.d.ts.map +1 -1
- package/dist/client/utils/mcpClientUtils.d.ts.map +1 -1
- package/dist/client/utils/servers.d.ts +14 -0
- package/dist/client/utils/servers.d.ts.map +1 -0
- package/dist/server/cdn-shell.d.ts +18 -0
- package/dist/server/cdn-shell.d.ts.map +1 -0
- package/dist/server/cdn-shell.js +10 -0
- package/dist/server/chunk-5B3SXGZP.js +43 -0
- package/dist/server/chunk-6XWDZEFF.js +194 -0
- package/dist/server/chunk-ESODOPDD.js +50 -0
- package/dist/server/chunk-IKTZUWSX.js +0 -0
- package/dist/server/{chunk-57KIBVKX.js → chunk-J67FVPHF.js} +27 -26
- package/dist/server/chunk-K2F2AJOI.js +619 -0
- package/dist/server/chunk-K2V2SDQD.js +40 -0
- package/dist/server/{chunk-ZPHNDECP.js → chunk-THQ67TSE.js} +31 -32
- package/dist/server/chunk-TPHRVELX.js +130 -0
- package/dist/server/chunk-WFT4JHYI.js +24 -0
- package/dist/server/cli.js +23 -25
- package/dist/server/create-dev-api-app.d.ts +4 -0
- package/dist/server/create-dev-api-app.d.ts.map +1 -0
- package/dist/server/create-dev-api-app.js +11 -0
- package/dist/server/favicon-links.d.ts +12 -0
- package/dist/server/favicon-links.d.ts.map +1 -0
- package/dist/server/favicon-links.js +11 -0
- package/dist/server/favicon-static.d.ts +4 -0
- package/dist/server/favicon-static.d.ts.map +1 -0
- package/dist/server/favicon-static.js +8 -0
- package/dist/server/index.d.ts +3 -4
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +13 -17
- package/dist/server/middleware.d.ts +14 -3
- package/dist/server/middleware.d.ts.map +1 -1
- package/dist/server/middleware.js +9 -9
- package/dist/server/proxy/index.d.ts +3 -0
- package/dist/server/proxy/index.d.ts.map +1 -0
- package/dist/server/proxy/index.js +12 -0
- package/dist/server/proxy/mcp-proxy.d.ts +99 -0
- package/dist/server/proxy/mcp-proxy.d.ts.map +1 -0
- package/dist/server/proxy/mcp-proxy.js +8 -0
- package/dist/server/proxy/oauth-proxy.d.ts +26 -0
- package/dist/server/proxy/oauth-proxy.d.ts.map +1 -0
- package/dist/server/proxy/oauth-proxy.js +9 -0
- package/dist/server/proxy-routes.d.ts +16 -0
- package/dist/server/proxy-routes.d.ts.map +1 -0
- package/dist/server/proxy-routes.js +10 -0
- package/dist/server/rpc-log-bus.js +73 -3
- package/dist/server/server.d.ts +3 -8
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/server.js +15 -92
- package/dist/server/version.js +1 -1
- package/dist/server/vite-dev-api-plugin.d.ts +4 -0
- package/dist/server/vite-dev-api-plugin.d.ts.map +1 -0
- package/dist/server/vite-dev-api-plugin.js +30 -0
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/assets/AnimatePresence-CthXziG2.js +9 -0
- package/dist/web/assets/ChatTab-CiAqtqhj.js +460 -0
- package/dist/web/assets/ConnectionSettingsTab-CTh6MFKE.js +1 -0
- package/dist/web/assets/ElicitationTab-B3Eg0_Jm.js +1 -0
- package/dist/web/assets/FormContext-Cqc_A12u.js +1 -0
- package/dist/web/assets/ListTabHeader-G-nQX18m.js +1 -0
- package/dist/web/assets/ManufactOAuthCallback-B-tdkUA2.js +1 -0
- package/dist/web/assets/NotificationsTab-BgLjxuos.js +1 -0
- package/dist/web/assets/OAuthCallback-Bp-jLoQs.js +1 -0
- package/dist/web/assets/PromptsTab-CA-SZs43.js +61 -0
- package/dist/web/assets/ResourcesTab-DdMIW_af.js +2 -0
- package/dist/web/assets/SamplingTab-DjyDG01W.js +1 -0
- package/dist/web/assets/ServerMetadataTab-Q4PlqP_B.js +1 -0
- package/dist/web/assets/ToolsTab-BHk8GCmd.js +8 -0
- package/dist/web/assets/ViewPreview-DWtmwzCb.js +1 -0
- package/dist/web/assets/WidgetWrapper-B43lqbld.js +34 -0
- package/dist/web/assets/brush--0LobUi4.js +1 -0
- package/dist/web/assets/bundle-mjs-8puS6ou7.js +1 -0
- package/dist/web/assets/checkbox-_GzEPQic.js +1 -0
- package/dist/web/assets/chunk-BO2N2NFS-BdIeB5Lr.js +131 -0
- package/dist/web/assets/code-tME-5H6D.js +1 -0
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +1 -0
- package/dist/web/assets/dist-DQjEDTKs.js +21 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-Dp3e1QHL.js +1 -0
- package/dist/web/assets/index-Bbn-6QR2.js +475 -0
- package/dist/web/assets/index-BjH-Qp85.css +1 -0
- package/dist/web/assets/input-CjmxOFr6.js +1 -0
- package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +1 -0
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +1 -0
- package/dist/web/assets/label-B5Q_Zr8M.js +1 -0
- package/dist/web/assets/maximize-2-BTT9QQU9.js +1 -0
- package/dist/web/assets/maximize-_O55kFcr.js +1 -0
- package/dist/web/assets/mermaid-GHXKKRXX-yq1lkD3x.js +1 -0
- package/dist/web/assets/pdf-C3cfS_Ha.js +54 -0
- package/dist/web/assets/react-CU_d2d5K.js +1 -0
- package/dist/web/assets/refresh-cw-C9wQl8_d.js +1 -0
- package/dist/web/assets/save-B-MsgxX9.js +1 -0
- package/dist/web/assets/schemaHelpers-DLNTQr_6.js +1 -0
- package/dist/web/assets/select-C0xlfLAa.js +1 -0
- package/dist/web/assets/shared-Dfwy7nyg.js +1 -0
- package/dist/web/assets/sheet-CRPrEqAa.js +1 -0
- package/dist/web/assets/sparkles-2OAsc1aP.js +1 -0
- package/dist/web/assets/tabs-subtle-Dxgism9f.js +1 -0
- package/dist/web/assets/textarea-Ci09-en6.js +1 -0
- package/dist/web/assets/useConfig-b1f_iVFH.js +1 -0
- package/dist/web/assets/useMCPPrompts-CPskz9af.js +1 -0
- package/dist/web/assets/useViewHostProps-BgsQ2yYl.js +1 -0
- package/dist/web/assets/zap-Du2Uc5pa.js +1 -0
- package/dist/web/favicon-96x96.png +0 -0
- package/dist/web/favicon-black.svg +5 -8
- package/dist/web/favicon-white.svg +4 -7
- package/dist/web/favicon.ico +0 -0
- package/dist/web/favicon.svg +5 -0
- package/dist/web/index.html +13 -20
- package/dist/web/site.webmanifest +21 -0
- package/dist/web/web-app-manifest-192x192.png +0 -0
- package/dist/web/web-app-manifest-512x512.png +0 -0
- package/package.json +29 -30
- package/dist/client/components/FullscreenNavbar.d.ts +0 -9
- package/dist/client/components/FullscreenNavbar.d.ts.map +0 -1
- package/dist/client/components/LoginModal.d.ts +0 -11
- package/dist/client/components/LoginModal.d.ts.map +0 -1
- package/dist/client/components/MCPAppsRenderer.d.ts +0 -53
- package/dist/client/components/MCPAppsRenderer.d.ts.map +0 -1
- package/dist/client/components/McpUIRenderer.d.ts +0 -19
- package/dist/client/components/McpUIRenderer.d.ts.map +0 -1
- package/dist/client/components/OpenAIComponentRenderer.d.ts +0 -51
- package/dist/client/components/OpenAIComponentRenderer.d.ts.map +0 -1
- package/dist/client/components/chat/InlineElicitationCard.d.ts +0 -10
- package/dist/client/components/chat/InlineElicitationCard.d.ts.map +0 -1
- package/dist/client/components/chat/MCPUIResource.d.ts +0 -11
- package/dist/client/components/chat/MCPUIResource.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/ElicitationFormFields.d.ts +0 -21
- package/dist/client/components/elicitation/shared/ElicitationFormFields.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/index.d.ts +0 -3
- package/dist/client/components/elicitation/shared/index.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/useElicitationForm.d.ts +0 -23
- package/dist/client/components/elicitation/shared/useElicitationForm.d.ts.map +0 -1
- package/dist/client/components/logging/JsonRpcLoggerView.d.ts +0 -20
- package/dist/client/components/logging/JsonRpcLoggerView.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptsTabHeader.d.ts +0 -17
- package/dist/client/components/prompts/PromptsTabHeader.d.ts.map +0 -1
- package/dist/client/components/prompts/index.d.ts +0 -6
- package/dist/client/components/prompts/index.d.ts.map +0 -1
- package/dist/client/components/resources/ResourcesTabHeader.d.ts +0 -16
- package/dist/client/components/resources/ResourcesTabHeader.d.ts.map +0 -1
- package/dist/client/components/resources/index.d.ts +0 -4
- package/dist/client/components/resources/index.d.ts.map +0 -1
- package/dist/client/components/shared/RpcPanel.d.ts +0 -21
- package/dist/client/components/shared/RpcPanel.d.ts.map +0 -1
- package/dist/client/components/tools/ToolsTabHeader.d.ts +0 -17
- package/dist/client/components/tools/ToolsTabHeader.d.ts.map +0 -1
- package/dist/client/components/tools/index.d.ts +0 -7
- package/dist/client/components/tools/index.d.ts.map +0 -1
- package/dist/client/components/ui/SandboxedIframe.d.ts +0 -64
- package/dist/client/components/ui/SandboxedIframe.d.ts.map +0 -1
- package/dist/client/components/ui/aurora-background.d.ts +0 -9
- package/dist/client/components/ui/aurora-background.d.ts.map +0 -1
- package/dist/client/constants/iframe.d.ts +0 -9
- package/dist/client/constants/iframe.d.ts.map +0 -1
- package/dist/client/constants/index.d.ts +0 -7
- package/dist/client/constants/index.d.ts.map +0 -1
- package/dist/client/constants/mcp-apps.d.ts +0 -39
- package/dist/client/constants/mcp-apps.d.ts.map +0 -1
- package/dist/client/hooks/usePrismTheme.d.ts +0 -5
- package/dist/client/hooks/usePrismTheme.d.ts.map +0 -1
- package/dist/client/lib/use-sandbox-remount-generation.d.ts +0 -9
- package/dist/client/lib/use-sandbox-remount-generation.d.ts.map +0 -1
- package/dist/client/lib/widget-fullscreen.d.ts +0 -17
- package/dist/client/lib/widget-fullscreen.d.ts.map +0 -1
- package/dist/client/telemetry/telemetry.d.ts +0 -42
- package/dist/client/telemetry/telemetry.d.ts.map +0 -1
- package/dist/client/types/elicitation.d.ts +0 -9
- package/dist/client/types/elicitation.d.ts.map +0 -1
- package/dist/client/utils/clipboard.d.ts +0 -6
- package/dist/client/utils/clipboard.d.ts.map +0 -1
- package/dist/client/utils/iframeConsoleInterceptor.d.ts +0 -6
- package/dist/client/utils/iframeConsoleInterceptor.d.ts.map +0 -1
- package/dist/client/utils/widget-detection.d.ts +0 -31
- package/dist/client/utils/widget-detection.d.ts.map +0 -1
- package/dist/llm/__tests__/messageFormat.test.d.ts +0 -2
- package/dist/llm/__tests__/messageFormat.test.d.ts.map +0 -1
- package/dist/llm/__tests__/providerToolResults.test.d.ts +0 -2
- package/dist/llm/__tests__/providerToolResults.test.d.ts.map +0 -1
- package/dist/llm/__tests__/toolResultParts.test.d.ts +0 -2
- package/dist/llm/__tests__/toolResultParts.test.d.ts.map +0 -1
- package/dist/llm/messageFormat.d.ts +0 -48
- package/dist/llm/messageFormat.d.ts.map +0 -1
- package/dist/llm/ndjson.d.ts +0 -5
- package/dist/llm/ndjson.d.ts.map +0 -1
- package/dist/llm/providers/anthropic.d.ts +0 -19
- package/dist/llm/providers/anthropic.d.ts.map +0 -1
- package/dist/llm/providers/google.d.ts +0 -19
- package/dist/llm/providers/google.d.ts.map +0 -1
- package/dist/llm/providers/index.d.ts +0 -19
- package/dist/llm/providers/index.d.ts.map +0 -1
- package/dist/llm/providers/ollama/index.d.ts +0 -18
- package/dist/llm/providers/ollama/index.d.ts.map +0 -1
- package/dist/llm/providers/ollama/utils.d.ts +0 -7
- package/dist/llm/providers/ollama/utils.d.ts.map +0 -1
- package/dist/llm/providers/openai.d.ts +0 -19
- package/dist/llm/providers/openai.d.ts.map +0 -1
- package/dist/llm/schemaUtils.d.ts +0 -2
- package/dist/llm/schemaUtils.d.ts.map +0 -1
- package/dist/llm/sse.d.ts +0 -15
- package/dist/llm/sse.d.ts.map +0 -1
- package/dist/llm/toolLoop.d.ts +0 -40
- package/dist/llm/toolLoop.d.ts.map +0 -1
- package/dist/llm/toolResultParts.d.ts +0 -28
- package/dist/llm/toolResultParts.d.ts.map +0 -1
- package/dist/llm/types.d.ts +0 -102
- package/dist/llm/types.d.ts.map +0 -1
- package/dist/server/chunk-63EJEHRP.js +0 -71
- package/dist/server/chunk-A4VH7AIP.js +0 -738
- package/dist/server/chunk-CVECQ7BJ.js +0 -78
- package/dist/server/chunk-IDMHJUEM.js +0 -42
- package/dist/server/chunk-KIJYOTYZ.js +0 -322
- package/dist/server/chunk-PJNKFX2R.js +0 -2351
- package/dist/server/chunk-QQ37LGLJ.js +0 -127
- package/dist/server/chunk-R4ISUE7T.js +0 -164
- package/dist/server/chunk-UTW44YSH.js +0 -322
- package/dist/server/file-utils.d.ts +0 -11
- package/dist/server/file-utils.d.ts.map +0 -1
- package/dist/server/file-utils.js +0 -11
- package/dist/server/routes/mcp-apps.d.ts +0 -12
- package/dist/server/routes/mcp-apps.d.ts.map +0 -1
- package/dist/server/shared-routes.d.ts +0 -11
- package/dist/server/shared-routes.d.ts.map +0 -1
- package/dist/server/shared-routes.js +0 -11
- package/dist/server/shared-static.d.ts +0 -57
- package/dist/server/shared-static.d.ts.map +0 -1
- package/dist/server/shared-static.js +0 -11
- package/dist/server/shared-utils.d.ts +0 -175
- package/dist/server/shared-utils.d.ts.map +0 -1
- package/dist/server/shared-utils.js +0 -21
- package/dist/server/transport-wrapper.d.ts +0 -6
- package/dist/server/transport-wrapper.d.ts.map +0 -1
- package/dist/server/transport-wrapper.js +0 -68
- package/dist/server/tunnel.d.ts +0 -11
- package/dist/server/tunnel.d.ts.map +0 -1
- package/dist/server/tunnel.js +0 -13
- package/dist/web/assets/1c-D19GPo3L.js +0 -1
- package/dist/web/assets/abnf-BR1TaWs-.js +0 -1
- package/dist/web/assets/accesslog-CZxiyYuK.js +0 -1
- package/dist/web/assets/actionscript-BS1fMZ9M.js +0 -1
- package/dist/web/assets/ada-Dhy1EabM.js +0 -1
- package/dist/web/assets/angelscript-Gjldi7xi.js +0 -1
- package/dist/web/assets/apache-Cx8TUABI.js +0 -1
- package/dist/web/assets/applescript-JfBNOabq.js +0 -1
- package/dist/web/assets/arcade-E6zGzFSx.js +0 -1
- package/dist/web/assets/arduino-D7Y37T_-.js +0 -1
- package/dist/web/assets/armasm-vpTNgAzt.js +0 -1
- package/dist/web/assets/asciidoc-DaVECsQY.js +0 -1
- package/dist/web/assets/aspectj-CdRAuqVM.js +0 -1
- package/dist/web/assets/autohotkey-DvZQekH9.js +0 -1
- package/dist/web/assets/autoit-oLytjhLA.js +0 -1
- package/dist/web/assets/avrasm-5Cf9yIw9.js +0 -1
- package/dist/web/assets/awk-Bf_S2P0n.js +0 -1
- package/dist/web/assets/axapta-DrOS6bUw.js +0 -1
- package/dist/web/assets/bash-DCVWALRV.js +0 -1
- package/dist/web/assets/basic-D0GZ3REU.js +0 -1
- package/dist/web/assets/bnf-D74FvP-b.js +0 -1
- package/dist/web/assets/brainfuck-DwUXsIlY.js +0 -3
- package/dist/web/assets/c-CPGbDsng.js +0 -1
- package/dist/web/assets/c-like-DLj4FsHF.js +0 -1
- package/dist/web/assets/cal-Czm5e2Qe.js +0 -1
- package/dist/web/assets/capnproto-CVJ2fID7.js +0 -1
- package/dist/web/assets/ceylon-DR5D2yFU.js +0 -1
- package/dist/web/assets/clean-CkIuagdM.js +0 -1
- package/dist/web/assets/clojure-VwyIEQaz.js +0 -1
- package/dist/web/assets/clojure-repl-jCSr2ntH.js +0 -1
- package/dist/web/assets/cmake-D2Zl_q65.js +0 -1
- package/dist/web/assets/coffeescript-C7Hfrw9O.js +0 -1
- package/dist/web/assets/coq-DAxtVI93.js +0 -1
- package/dist/web/assets/core-ICctFm9I.js +0 -4
- package/dist/web/assets/cos-0GHB8yn1.js +0 -1
- package/dist/web/assets/cpp-DdlDGc99.js +0 -1
- package/dist/web/assets/crmsh-C0vbH3xd.js +0 -1
- package/dist/web/assets/crystal-BloCCkus.js +0 -1
- package/dist/web/assets/csharp-YhN72Cls.js +0 -1
- package/dist/web/assets/csp-OAeIWScz.js +0 -1
- package/dist/web/assets/css-D1ih01yA.js +0 -1
- package/dist/web/assets/d-yGrz2xEC.js +0 -1
- package/dist/web/assets/dart-C3qG0xpq.js +0 -1
- package/dist/web/assets/delphi-CvoiTamH.js +0 -1
- package/dist/web/assets/diff-zDaBDf86.js +0 -1
- package/dist/web/assets/django-DBYOwnaY.js +0 -1
- package/dist/web/assets/dns-BWy_Oa_w.js +0 -1
- package/dist/web/assets/dockerfile-Cj5YqQiP.js +0 -1
- package/dist/web/assets/dos-AaJBzvG4.js +0 -1
- package/dist/web/assets/dsconfig-BgEbyf_A.js +0 -1
- package/dist/web/assets/dts-z64kku76.js +0 -1
- package/dist/web/assets/dust-C-6seNMG.js +0 -1
- package/dist/web/assets/ebnf-DC6yB_8o.js +0 -1
- package/dist/web/assets/elixir-DVZgqY4T.js +0 -1
- package/dist/web/assets/elm-Css3uC5x.js +0 -1
- package/dist/web/assets/erb-C538Iixw.js +0 -1
- package/dist/web/assets/erlang-DyDPiXgX.js +0 -1
- package/dist/web/assets/erlang-repl-CVIWmQKC.js +0 -1
- package/dist/web/assets/excel-BLHu7SPw.js +0 -1
- package/dist/web/assets/fix-JPCm4C-u.js +0 -1
- package/dist/web/assets/flix-DejUTEwL.js +0 -1
- package/dist/web/assets/fortran-CK7Rlzc4.js +0 -1
- package/dist/web/assets/fsharp-ZgHvh-ZT.js +0 -1
- package/dist/web/assets/gams-BIBfDr3x.js +0 -1
- package/dist/web/assets/gauss-DttPF6Qr.js +0 -1
- package/dist/web/assets/gcode-BXL931mb.js +0 -1
- package/dist/web/assets/gherkin-B7qFZ0rb.js +0 -1
- package/dist/web/assets/glsl-BSKhKy8T.js +0 -1
- package/dist/web/assets/gml-BcbsDsfr.js +0 -1
- package/dist/web/assets/go-BksciLaM.js +0 -1
- package/dist/web/assets/golo-D2QFLiUq.js +0 -1
- package/dist/web/assets/gradle-BH3VzvYn.js +0 -1
- package/dist/web/assets/groovy-Bv9ooqes.js +0 -1
- package/dist/web/assets/haml-CacWyVgj.js +0 -1
- package/dist/web/assets/handlebars-Cpp3MUlG.js +0 -1
- package/dist/web/assets/haskell-BQM3-EaA.js +0 -1
- package/dist/web/assets/haxe-Df4nG9sq.js +0 -1
- package/dist/web/assets/hsp-sHEckFHE.js +0 -1
- package/dist/web/assets/htmlbars-shnKLbrr.js +0 -1
- package/dist/web/assets/http-CNJ01fsj.js +0 -1
- package/dist/web/assets/hy-B3oY6sFO.js +0 -1
- package/dist/web/assets/index-C4BqUITd.css +0 -2
- package/dist/web/assets/index-DB2yAAMO.js +0 -848
- package/dist/web/assets/inform7-CNEOVpOE.js +0 -1
- package/dist/web/assets/ini-q6ZmK_Ll.js +0 -1
- package/dist/web/assets/irpf90-CHcNzzFG.js +0 -1
- package/dist/web/assets/isbl-ClZ-43Pe.js +0 -1
- package/dist/web/assets/java-C63Whuw3.js +0 -1
- package/dist/web/assets/javascript-BAgDYvOy.js +0 -1
- package/dist/web/assets/jboss-cli-qjpm-ZOy.js +0 -1
- package/dist/web/assets/json-DT8at3fD.js +0 -1
- package/dist/web/assets/julia-B3hjMqCS.js +0 -1
- package/dist/web/assets/julia-repl-BWC_EUt4.js +0 -1
- package/dist/web/assets/kotlin-DnDhVR1g.js +0 -2
- package/dist/web/assets/lasso-7_9jkuWm.js +0 -1
- package/dist/web/assets/latex-7NcBU-sp.js +0 -1
- package/dist/web/assets/ldif-BKsNETfE.js +0 -1
- package/dist/web/assets/leaf-Dr24XSMP.js +0 -1
- package/dist/web/assets/less-Da52wdLB.js +0 -1
- package/dist/web/assets/lisp-CxEhJv_S.js +0 -1
- package/dist/web/assets/livecodeserver-DyLLEQa3.js +0 -1
- package/dist/web/assets/livescript-DuMxIrKU.js +0 -1
- package/dist/web/assets/llvm-M9yuLNva.js +0 -1
- package/dist/web/assets/lsl-BP2wVZAx.js +0 -1
- package/dist/web/assets/lua-B0U8rByV.js +0 -1
- package/dist/web/assets/makefile-DL3DBvu0.js +0 -1
- package/dist/web/assets/markdown-jLDab-Ns.js +0 -1
- package/dist/web/assets/mathematica-2lChxOtk.js +0 -1
- package/dist/web/assets/matlab-BbPZe1tR.js +0 -1
- package/dist/web/assets/maxima-BdT1lNyu.js +0 -1
- package/dist/web/assets/mel-CxSMh57a.js +0 -1
- package/dist/web/assets/mercury-e3yoICSq.js +0 -1
- package/dist/web/assets/mipsasm--tpOiQ5I.js +0 -1
- package/dist/web/assets/mizar-DN4-ri-A.js +0 -1
- package/dist/web/assets/module-3nkmv-tD.js +0 -4
- package/dist/web/assets/mojolicious-lKYGBrCw.js +0 -1
- package/dist/web/assets/monkey-CvEgDQbs.js +0 -1
- package/dist/web/assets/moonscript-BgjEcnsm.js +0 -1
- package/dist/web/assets/n1ql-CtsXVmUQ.js +0 -1
- package/dist/web/assets/nginx-C6tprI2e.js +0 -1
- package/dist/web/assets/nim-B3y0lYop.js +0 -1
- package/dist/web/assets/nix-BczA7CjW.js +0 -1
- package/dist/web/assets/node-repl-DGgD94SZ.js +0 -1
- package/dist/web/assets/nsis-C_SmguFH.js +0 -1
- package/dist/web/assets/objectivec-2mUTCw1f.js +0 -1
- package/dist/web/assets/ocaml-Cn7F37_9.js +0 -1
- package/dist/web/assets/openscad-CkenTSp3.js +0 -1
- package/dist/web/assets/oxygene-D7pQi21T.js +0 -1
- package/dist/web/assets/parser3--pt_dbbu.js +0 -1
- package/dist/web/assets/perl-C0job7Qz.js +0 -1
- package/dist/web/assets/pf-CfWQAyKz.js +0 -1
- package/dist/web/assets/pgsql-CKshFhGu.js +0 -1
- package/dist/web/assets/php-CNUWaUh2.js +0 -1
- package/dist/web/assets/php-template-BCrABFi4.js +0 -1
- package/dist/web/assets/plaintext-ChYroSk0.js +0 -1
- package/dist/web/assets/pony-Bh4zwDWt.js +0 -1
- package/dist/web/assets/powershell-BuAlXUWx.js +0 -1
- package/dist/web/assets/processing-Bb5btTkH.js +0 -1
- package/dist/web/assets/profile-BOk16iWu.js +0 -1
- package/dist/web/assets/prolog-MHE4b3nq.js +0 -1
- package/dist/web/assets/properties-CZfxER-Q.js +0 -1
- package/dist/web/assets/protobuf-C_54DU4K.js +0 -1
- package/dist/web/assets/puppet-Z-t3L629.js +0 -1
- package/dist/web/assets/purebasic-CZKfEDHv.js +0 -1
- package/dist/web/assets/python-BvGG_JZE.js +0 -1
- package/dist/web/assets/python-repl-DaUVEuDx.js +0 -1
- package/dist/web/assets/q-CvWis_nQ.js +0 -1
- package/dist/web/assets/qml-2XPxalcH.js +0 -1
- package/dist/web/assets/r-DTTPbRAt.js +0 -1
- package/dist/web/assets/reasonml-CyJw_qBZ.js +0 -1
- package/dist/web/assets/rib-GYMKCC1Y.js +0 -1
- package/dist/web/assets/roboconf-CV_6N_o7.js +0 -1
- package/dist/web/assets/routeros-C11OKG9F.js +0 -1
- package/dist/web/assets/rpc-logger-TPNV75J4-CvwEntuM.js +0 -1
- package/dist/web/assets/rsl-rez9LEUy.js +0 -1
- package/dist/web/assets/ruby-_B4GQ_7D.js +0 -1
- package/dist/web/assets/ruleslanguage-jRg89I6w.js +0 -1
- package/dist/web/assets/rust-qdkaNniS.js +0 -1
- package/dist/web/assets/sas-BNjYSnSg.js +0 -1
- package/dist/web/assets/scala-CVLdU51z.js +0 -1
- package/dist/web/assets/scheme-Cneig3hI.js +0 -1
- package/dist/web/assets/scilab-DxKCNrof.js +0 -1
- package/dist/web/assets/scss-DQ23aG9u.js +0 -1
- package/dist/web/assets/shell-BgVIEdPP.js +0 -1
- package/dist/web/assets/smali-KZ0XB6tA.js +0 -2
- package/dist/web/assets/smalltalk-CYsrtMqX.js +0 -1
- package/dist/web/assets/sml-CwPjhShZ.js +0 -1
- package/dist/web/assets/sqf-Dyh-UyfR.js +0 -1
- package/dist/web/assets/sql-BqwecpD_.js +0 -1
- package/dist/web/assets/sql_more-CUF5pbmY.js +0 -1
- package/dist/web/assets/stan-Ddf5JFRA.js +0 -1
- package/dist/web/assets/stata-XlPupwqv.js +0 -3
- package/dist/web/assets/step21-CucMyzRd.js +0 -1
- package/dist/web/assets/stylus-nj6mAxkC.js +0 -1
- package/dist/web/assets/subunit-CiXRLQcz.js +0 -3
- package/dist/web/assets/swift-CIdqZMKK.js +0 -1
- package/dist/web/assets/taggerscript-m6_DnfoH.js +0 -1
- package/dist/web/assets/tap-DbEec7Q2.js +0 -1
- package/dist/web/assets/tcl-n8aGQ2H6.js +0 -1
- package/dist/web/assets/thrift-J1PtwUUl.js +0 -1
- package/dist/web/assets/tp-CnbYKLYQ.js +0 -1
- package/dist/web/assets/twig-BEBOjZvM.js +0 -1
- package/dist/web/assets/typescript-BwvhN9Dw.js +0 -1
- package/dist/web/assets/vala-BSRZa9oU.js +0 -1
- package/dist/web/assets/vbnet-BhOhpmOF.js +0 -1
- package/dist/web/assets/vbscript-BpRpQGFw.js +0 -1
- package/dist/web/assets/vbscript-html-z-0GWV6e.js +0 -1
- package/dist/web/assets/verilog-CE-mWkfc.js +0 -1
- package/dist/web/assets/vhdl-hkUj0_K7.js +0 -1
- package/dist/web/assets/vim-XK7W3JN3.js +0 -1
- package/dist/web/assets/x86asm-D0cmZUWd.js +0 -1
- package/dist/web/assets/xl-dRKa8VcI.js +0 -1
- package/dist/web/assets/xml-BGrFHpDb.js +0 -1
- package/dist/web/assets/xquery-B7qeO1Sf.js +0 -1
- package/dist/web/assets/yaml-DErfnXTM.js +0 -1
- package/dist/web/assets/zephir-O2ApOQbM.js +0 -1
|
@@ -0,0 +1,2594 @@
|
|
|
1
|
+
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
+
import { t as n } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
|
+
import { $t as r, An as i, Ar as a, Bt as o, Cn as s, Dt as c, En as l, Er as u, Et as d, Fn as f, Ft as p, Ht as m, In as h, J as g, Jt as _, Kn as v, Ln as y, Lr as b, Lt as x, Mn as S, Mr as ee, Mt as C, Nn as w, Nr as T, On as E, Or as D, Pt as O, Qt as k, Rr as A, Sn as te, Sr as j, Tn as M, Tr as N, Tt as P, Un as ne, Ut as re, Vt as ie, Wt as F, X as I, Xt as L, Yn as R, Yt as z, Z as B, Zt as ae, _n as V, _r as H, an as U, bn as W, br as oe, bt as se, cn as ce, dn as le, dr as ue, en as de, er as fe, f as pe, fn as me, fr as he, gn as ge, gr as _e, hn as ve, hr as ye, in as be, ir as xe, jn as Se, jt as Ce, kn as G, kr as we, ln as Te, mn as K, mr as Ee, nn as De, nt as Oe, o as ke, on as q, or as Ae, pn as je, pr as Me, q as Ne, qn as Pe, qt as Fe, rn as Ie, rr as Le, s as Re, sn as ze, st as Be, tn as Ve, tr as He, un as Ue, vn as We, wn as Ge, wr as J, wt as Y, xn as Ke, xr as qe, xt as X, yn as Je, zn as Ye, zr as Xe, zt as Ze } from "./input-BLxOA7V-.js";
|
|
4
|
+
import { n as Qe } from "./label-CBvG613A.js";
|
|
5
|
+
import { b as $e, l as et, n as tt, r as nt, t as rt, y as it } from "./AnimatePresence-B4HhIdgq.js";
|
|
6
|
+
import { c as at, i as ot, l as st, o as ct, r as lt, t as ut } from "./FormContext-Cl51-7O7.js";
|
|
7
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/floating-ui-react/utils/enqueueFocus.mjs
|
|
8
|
+
var Z = /* @__PURE__ */ e(t(), 1), dt = 0;
|
|
9
|
+
function ft(e, t = {}) {
|
|
10
|
+
let { preventScroll: n = !1, sync: r = !1, shouldFocus: i } = t;
|
|
11
|
+
cancelAnimationFrame(dt);
|
|
12
|
+
function a() {
|
|
13
|
+
i && !i() || e?.focus({ preventScroll: n });
|
|
14
|
+
}
|
|
15
|
+
if (r) return a(), Ee;
|
|
16
|
+
let o = requestAnimationFrame(a);
|
|
17
|
+
return dt = o, () => {
|
|
18
|
+
dt === o && (cancelAnimationFrame(o), dt = 0);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/floating-ui-react/utils/markOthers.mjs
|
|
23
|
+
var pt = {
|
|
24
|
+
inert: /* @__PURE__ */ new WeakMap(),
|
|
25
|
+
"aria-hidden": /* @__PURE__ */ new WeakMap()
|
|
26
|
+
}, mt = "data-base-ui-inert", ht = {
|
|
27
|
+
inert: /* @__PURE__ */ new WeakSet(),
|
|
28
|
+
"aria-hidden": /* @__PURE__ */ new WeakSet()
|
|
29
|
+
}, gt = /* @__PURE__ */ new WeakMap(), _t = 0;
|
|
30
|
+
function vt(e) {
|
|
31
|
+
return ht[e];
|
|
32
|
+
}
|
|
33
|
+
function yt(e) {
|
|
34
|
+
return e ? T(e) ? e.host : yt(e.parentNode) : null;
|
|
35
|
+
}
|
|
36
|
+
var bt = (e, t) => t.map((t) => {
|
|
37
|
+
if (e.contains(t)) return t;
|
|
38
|
+
let n = yt(t);
|
|
39
|
+
return e.contains(n) ? n : null;
|
|
40
|
+
}).filter((e) => e != null), xt = (e) => {
|
|
41
|
+
let t = /* @__PURE__ */ new Set();
|
|
42
|
+
return e.forEach((e) => {
|
|
43
|
+
let n = e;
|
|
44
|
+
for (; n && !t.has(n);) t.add(n), n = n.parentNode;
|
|
45
|
+
}), t;
|
|
46
|
+
}, St = (e, t, n) => {
|
|
47
|
+
let r = [], i = (e) => {
|
|
48
|
+
!e || n.has(e) || Array.from(e.children).forEach((e) => {
|
|
49
|
+
u(e) !== "script" && (t.has(e) ? i(e) : r.push(e));
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
return i(e), r;
|
|
53
|
+
};
|
|
54
|
+
function Ct(e, t, n, r, { mark: i = !0 }) {
|
|
55
|
+
let a = null;
|
|
56
|
+
r ? a = "inert" : n && (a = "aria-hidden");
|
|
57
|
+
let o = null, s = null, c = bt(t, e), l = i ? St(t, xt(c), new Set(c)) : [], u = [], d = [];
|
|
58
|
+
if (a) {
|
|
59
|
+
let e = pt[a], n = vt(a);
|
|
60
|
+
s = n, o = e;
|
|
61
|
+
let r = bt(t, Array.from(t.querySelectorAll("[aria-live]"))), i = c.concat(r);
|
|
62
|
+
St(t, xt(i), new Set(i)).forEach((t) => {
|
|
63
|
+
let r = t.getAttribute(a), i = r !== null && r !== "false", o = (e.get(t) || 0) + 1;
|
|
64
|
+
e.set(t, o), u.push(t), o === 1 && i && n.add(t), i || t.setAttribute(a, a === "inert" ? "" : "true");
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
return i && l.forEach((e) => {
|
|
68
|
+
let t = (gt.get(e) || 0) + 1;
|
|
69
|
+
gt.set(e, t), d.push(e), t === 1 && e.setAttribute(mt, "");
|
|
70
|
+
}), _t += 1, () => {
|
|
71
|
+
o && u.forEach((e) => {
|
|
72
|
+
let t = (o.get(e) || 0) - 1;
|
|
73
|
+
o.set(e, t), t || (!s?.has(e) && a && e.removeAttribute(a), s?.delete(e));
|
|
74
|
+
}), i && d.forEach((e) => {
|
|
75
|
+
let t = (gt.get(e) || 0) - 1;
|
|
76
|
+
gt.set(e, t), t || e.removeAttribute(mt);
|
|
77
|
+
}), --_t, _t || (pt.inert = /* @__PURE__ */ new WeakMap(), pt["aria-hidden"] = /* @__PURE__ */ new WeakMap(), ht.inert = /* @__PURE__ */ new WeakSet(), ht["aria-hidden"] = /* @__PURE__ */ new WeakSet(), gt = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function wt(e, t = {}) {
|
|
81
|
+
let { ariaHidden: n = !1, inert: r = !1, mark: i = !0 } = t, a = q(e[0]).body;
|
|
82
|
+
return Ct(e, a, n, r, { mark: i });
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/floating-ui-react/components/FloatingFocusManager.mjs
|
|
86
|
+
var Q = n();
|
|
87
|
+
function Tt(e, t) {
|
|
88
|
+
let n = D(ve(e));
|
|
89
|
+
return e instanceof n.KeyboardEvent ? "keyboard" : e instanceof n.FocusEvent ? t || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof n.MouseEvent ? t || (e.detail === 0 ? "keyboard" : "mouse") : "";
|
|
90
|
+
}
|
|
91
|
+
var Et = 20, Dt = [];
|
|
92
|
+
function Ot() {
|
|
93
|
+
Dt = Dt.filter((e) => e.deref()?.isConnected);
|
|
94
|
+
}
|
|
95
|
+
function kt(e) {
|
|
96
|
+
Ot(), e && u(e) !== "body" && (Dt.push(new WeakRef(e)), Dt.length > Et && (Dt = Dt.slice(-20)));
|
|
97
|
+
}
|
|
98
|
+
function At() {
|
|
99
|
+
return Ot(), Dt[Dt.length - 1]?.deref();
|
|
100
|
+
}
|
|
101
|
+
function jt(e) {
|
|
102
|
+
return e ? _(e) ? e : z(e)[0] || e : null;
|
|
103
|
+
}
|
|
104
|
+
function Mt(e) {
|
|
105
|
+
if (e.hasAttribute("tabindex") && !e.hasAttribute("data-tabindex") || !e.getAttribute("role")?.includes("dialog")) return;
|
|
106
|
+
let t = m(e).filter((e) => {
|
|
107
|
+
let t = e.getAttribute("data-tabindex") || "";
|
|
108
|
+
return _(e) || e.hasAttribute("data-tabindex") && !t.startsWith("-");
|
|
109
|
+
}), n = e.getAttribute("tabindex");
|
|
110
|
+
t.length === 0 ? n !== "0" && (e.setAttribute("tabindex", "0"), e.setAttribute("data-tabindex", "0")) : (n !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
|
|
111
|
+
}
|
|
112
|
+
function Nt(e) {
|
|
113
|
+
let { context: t, children: n, disabled: i = !1, initialFocus: c = !0, returnFocus: l = !0, restoreFocus: d = !1, modal: f = !0, closeOnFocusOut: m = !0, openInteractionType: g = "", nextFocusableElement: v, previousFocusableElement: y, beforeContentFocusGuardRef: b, externalTree: x, getInsideElements: ee } = e, w = "rootStore" in t ? t.rootStore : t, T = w.useState("open"), D = w.useState("domReferenceElement"), O = w.useState("floatingElement"), { events: k, dataRef: A } = w.context, N = J(() => A.current.floatingContext?.nodeId), P = c === !1, I = le(D) && P, L = ze(c), R = ze(l), B = ze(g), ae = ze(T), V = C(x), H = p(), U = Z.useRef(!1), W = Z.useRef(!1), oe = Z.useRef(!1), se = Z.useRef(null), ue = Z.useRef(""), de = Z.useRef(""), fe = Z.useRef(null), pe = Z.useRef(null), he = _e(fe, b, H?.beforeInsideRef), ge = _e(pe, H?.afterInsideRef), ye = M(), be = M(), xe = Se(), Ce = H != null, G = Ue(O), we = J((e = G) => e ? z(e) : []), Ee = J(() => ee?.().filter((e) => e != null) ?? []);
|
|
114
|
+
Z.useEffect(() => {
|
|
115
|
+
if (i || !f) return;
|
|
116
|
+
function e(e) {
|
|
117
|
+
e.key === "Tab" && K(G, je(q(G))) && we().length === 0 && !I && s(e);
|
|
118
|
+
}
|
|
119
|
+
return Te(q(G), "keydown", e);
|
|
120
|
+
}, [
|
|
121
|
+
i,
|
|
122
|
+
G,
|
|
123
|
+
f,
|
|
124
|
+
I,
|
|
125
|
+
we
|
|
126
|
+
]), Z.useEffect(() => {
|
|
127
|
+
if (i || !T) return;
|
|
128
|
+
let e = q(G);
|
|
129
|
+
function t() {
|
|
130
|
+
oe.current = !1;
|
|
131
|
+
}
|
|
132
|
+
function n(e) {
|
|
133
|
+
let t = ve(e), n = Ee();
|
|
134
|
+
oe.current = !(K(O, t) || K(D, t) || K(H?.portalNode, t) || n.some((e) => e === t || K(e, t))), de.current = e.pointerType || "keyboard", t?.closest("[data-base-ui-click-trigger]") && (W.current = !0, be.start(0, () => {
|
|
135
|
+
W.current = !1;
|
|
136
|
+
}));
|
|
137
|
+
}
|
|
138
|
+
function r() {
|
|
139
|
+
de.current = "keyboard";
|
|
140
|
+
}
|
|
141
|
+
return ce(Te(e, "pointerdown", n, !0), Te(e, "pointerup", t, !0), Te(e, "pointercancel", t, !0), Te(e, "keydown", r, !0), t);
|
|
142
|
+
}, [
|
|
143
|
+
i,
|
|
144
|
+
O,
|
|
145
|
+
D,
|
|
146
|
+
G,
|
|
147
|
+
T,
|
|
148
|
+
H,
|
|
149
|
+
be,
|
|
150
|
+
Ee
|
|
151
|
+
]), Z.useEffect(() => {
|
|
152
|
+
if (i || !m) return;
|
|
153
|
+
let e = q(G);
|
|
154
|
+
function t() {
|
|
155
|
+
W.current = !0, be.start(0, () => {
|
|
156
|
+
W.current = !1;
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function n(e) {
|
|
160
|
+
let t = ve(e);
|
|
161
|
+
_(t) && (se.current = t);
|
|
162
|
+
}
|
|
163
|
+
function s(t) {
|
|
164
|
+
let n = t.relatedTarget, i = t.currentTarget, s = ve(t);
|
|
165
|
+
f && n == null && s != null && K(O, s) && kt(s), queueMicrotask(() => {
|
|
166
|
+
let c = N(), l = w.context.triggerElements, u = Ee(), p = n?.hasAttribute(Ze("focus-guard")) && [
|
|
167
|
+
fe.current,
|
|
168
|
+
pe.current,
|
|
169
|
+
H?.beforeInsideRef.current,
|
|
170
|
+
H?.afterInsideRef.current,
|
|
171
|
+
H?.beforeOutsideRef.current,
|
|
172
|
+
H?.afterOutsideRef.current,
|
|
173
|
+
E(y),
|
|
174
|
+
E(v)
|
|
175
|
+
].includes(n), m = !(K(D, n) || K(O, n) || K(n, O) || K(H?.portalNode, n) || u.some((e) => e === n || K(e, n)) || n != null && l.hasElement(n) || l.hasMatchingElement((e) => K(e, n)) || p || V && (ie(V.nodesRef.current, c).find((e) => K(e.context?.elements.floating, n) || K(e.context?.elements.domReference, n)) || o(V.nodesRef.current, c).find((e) => [e.context?.elements.floating, Ue(e.context?.elements.floating)].includes(n) || e.context?.elements.domReference === n)));
|
|
176
|
+
if (i === D && G && Mt(G), d && i !== D && !r(s) && je(e) === e.body) {
|
|
177
|
+
if (a(G) && (G.focus(), d === "popup")) {
|
|
178
|
+
xe.request(() => {
|
|
179
|
+
G.focus();
|
|
180
|
+
});
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
let e = we(), t = se.current, n = (t && e.includes(t) ? t : null) || e[e.length - 1] || G;
|
|
184
|
+
a(n) && n.focus();
|
|
185
|
+
}
|
|
186
|
+
if (A.current.insideReactTree) {
|
|
187
|
+
A.current.insideReactTree = !1;
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
(I || !f) && n && m && !W.current && (I || n !== At()) && (U.current = !0, w.setOpen(!1, S(ne, t)));
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function c() {
|
|
194
|
+
oe.current || (A.current.insideReactTree = !0, ye.start(0, () => {
|
|
195
|
+
A.current.insideReactTree = !1;
|
|
196
|
+
}));
|
|
197
|
+
}
|
|
198
|
+
let l = a(D) ? D : null;
|
|
199
|
+
if (!(!O && !l)) return ce(l && Te(l, "focusout", s), l && Te(l, "pointerdown", t), O && Te(O, "focusin", n), O && Te(O, "focusout", s), O && H && Te(O, "focusout", c, !0));
|
|
200
|
+
}, [
|
|
201
|
+
i,
|
|
202
|
+
D,
|
|
203
|
+
O,
|
|
204
|
+
G,
|
|
205
|
+
f,
|
|
206
|
+
V,
|
|
207
|
+
H,
|
|
208
|
+
w,
|
|
209
|
+
m,
|
|
210
|
+
d,
|
|
211
|
+
we,
|
|
212
|
+
I,
|
|
213
|
+
N,
|
|
214
|
+
A,
|
|
215
|
+
ye,
|
|
216
|
+
be,
|
|
217
|
+
xe,
|
|
218
|
+
v,
|
|
219
|
+
y,
|
|
220
|
+
Ee
|
|
221
|
+
]), Z.useEffect(() => {
|
|
222
|
+
if (i || !O || !T) return;
|
|
223
|
+
let e = Array.from(H?.portalNode?.querySelectorAll(`[${Ze("portal")}]`) || []), t = (V ? o(V.nodesRef.current, N()) : []).find((e) => le(e.context?.elements.domReference || null))?.context?.elements.domReference, n = wt([
|
|
224
|
+
O,
|
|
225
|
+
...e,
|
|
226
|
+
fe.current,
|
|
227
|
+
pe.current,
|
|
228
|
+
H?.beforeOutsideRef.current,
|
|
229
|
+
H?.afterOutsideRef.current,
|
|
230
|
+
...Ee(),
|
|
231
|
+
t,
|
|
232
|
+
E(y),
|
|
233
|
+
E(v),
|
|
234
|
+
I ? D : null
|
|
235
|
+
].filter((e) => e != null), {
|
|
236
|
+
ariaHidden: f || I,
|
|
237
|
+
mark: !1
|
|
238
|
+
}), r = wt([O, ...e].filter((e) => e != null));
|
|
239
|
+
return () => {
|
|
240
|
+
r(), n();
|
|
241
|
+
};
|
|
242
|
+
}, [
|
|
243
|
+
T,
|
|
244
|
+
i,
|
|
245
|
+
D,
|
|
246
|
+
O,
|
|
247
|
+
f,
|
|
248
|
+
H,
|
|
249
|
+
I,
|
|
250
|
+
V,
|
|
251
|
+
N,
|
|
252
|
+
v,
|
|
253
|
+
y,
|
|
254
|
+
Ee
|
|
255
|
+
]), j(() => {
|
|
256
|
+
if (!T || i || !a(G)) return;
|
|
257
|
+
let e = q(G), t = je(e);
|
|
258
|
+
queueMicrotask(() => {
|
|
259
|
+
let n = L.current, r = typeof n == "function" ? n(B.current || "") : n;
|
|
260
|
+
if (r === void 0 || r === !1 || K(G, t)) return;
|
|
261
|
+
let i = null, a = () => (i ??= we(G), i[0] || G), o;
|
|
262
|
+
o = r === !0 || r === null ? a() : E(r), o ||= a();
|
|
263
|
+
let s = K(G, je(e));
|
|
264
|
+
ft(o, {
|
|
265
|
+
preventScroll: o === G,
|
|
266
|
+
shouldFocus() {
|
|
267
|
+
if (!ae.current) return !1;
|
|
268
|
+
if (s) return !0;
|
|
269
|
+
let t = je(e);
|
|
270
|
+
return !(t !== o && K(G, t));
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
}, [
|
|
275
|
+
i,
|
|
276
|
+
T,
|
|
277
|
+
G,
|
|
278
|
+
we,
|
|
279
|
+
L,
|
|
280
|
+
B,
|
|
281
|
+
ae
|
|
282
|
+
]), j(() => {
|
|
283
|
+
if (i || !G) return;
|
|
284
|
+
let e = q(G), t = je(e), n = B.current == null;
|
|
285
|
+
kt(t);
|
|
286
|
+
function r(e) {
|
|
287
|
+
if (e.open || (ue.current = Tt(e.nativeEvent, de.current)), e.reason === "trigger-hover" && e.nativeEvent.type === "mouseleave" && (U.current = !0), e.reason === "outside-press") if (e.nested) U.current = !1;
|
|
288
|
+
else if (Ke(e.nativeEvent) || te(e.nativeEvent)) U.current = !1;
|
|
289
|
+
else {
|
|
290
|
+
let e = !1;
|
|
291
|
+
q(G).createElement("div").focus({ get preventScroll() {
|
|
292
|
+
return e = !0, !1;
|
|
293
|
+
} }), e ? U.current = !1 : U.current = !0;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
k.on("openchange", r);
|
|
297
|
+
function o() {
|
|
298
|
+
let e = R.current, r = typeof e == "function" ? e(ue.current) : e;
|
|
299
|
+
if (r === void 0 || r === !1) return null;
|
|
300
|
+
r === null && (r = !0);
|
|
301
|
+
let i = D?.isConnected ? D : null, a = t?.isConnected && u(t) !== "body" ? t : null, o = n ? a || i : i || a;
|
|
302
|
+
return o ||= At() || null, typeof r == "boolean" ? o : E(r) || o || null;
|
|
303
|
+
}
|
|
304
|
+
return () => {
|
|
305
|
+
k.off("openchange", r);
|
|
306
|
+
let t = je(e), n = Ee(), i = K(O, t) || n.some((e) => e === t || K(e, t)) || V && ie(V.nodesRef.current, N(), !1).some((e) => K(e.context?.elements.floating, t)), s = R.current, c = o();
|
|
307
|
+
queueMicrotask(() => {
|
|
308
|
+
let n = jt(c), r = typeof s != "boolean";
|
|
309
|
+
s && !U.current && a(n) && (!(!r && n !== t && t !== e.body) || i) && n.focus({ preventScroll: !0 }), U.current = !1;
|
|
310
|
+
});
|
|
311
|
+
};
|
|
312
|
+
}, [
|
|
313
|
+
i,
|
|
314
|
+
O,
|
|
315
|
+
G,
|
|
316
|
+
R,
|
|
317
|
+
B,
|
|
318
|
+
k,
|
|
319
|
+
V,
|
|
320
|
+
D,
|
|
321
|
+
N,
|
|
322
|
+
Ee
|
|
323
|
+
]), j(() => {
|
|
324
|
+
if (!h || T || !O) return;
|
|
325
|
+
let e = je(q(O));
|
|
326
|
+
!a(e) || !me(e) || K(O, e) && e.blur();
|
|
327
|
+
}, [T, O]), j(() => {
|
|
328
|
+
if (!(i || !H)) return H.setFocusManagerState({
|
|
329
|
+
modal: f,
|
|
330
|
+
closeOnFocusOut: m,
|
|
331
|
+
open: T,
|
|
332
|
+
onOpenChange: w.setOpen,
|
|
333
|
+
domReference: D
|
|
334
|
+
}), () => {
|
|
335
|
+
H.setFocusManagerState(null);
|
|
336
|
+
};
|
|
337
|
+
}, [
|
|
338
|
+
i,
|
|
339
|
+
H,
|
|
340
|
+
f,
|
|
341
|
+
T,
|
|
342
|
+
w,
|
|
343
|
+
m,
|
|
344
|
+
D
|
|
345
|
+
]), j(() => {
|
|
346
|
+
if (!(i || !G)) return Mt(G), () => {
|
|
347
|
+
queueMicrotask(Ot);
|
|
348
|
+
};
|
|
349
|
+
}, [i, G]);
|
|
350
|
+
let De = !i && (f ? !I : !0) && (Ce || f);
|
|
351
|
+
return /*#__PURE__*/ (0, Q.jsxs)(Z.Fragment, { children: [
|
|
352
|
+
De && /*#__PURE__*/ (0, Q.jsx)(Ie, {
|
|
353
|
+
"data-type": "inside",
|
|
354
|
+
ref: he,
|
|
355
|
+
onFocus: (e) => {
|
|
356
|
+
if (f) {
|
|
357
|
+
let e = we();
|
|
358
|
+
ft(e[e.length - 1]);
|
|
359
|
+
} else H?.portalNode && (U.current = !1, Fe(e, H.portalNode) ? re(D)?.focus() : E(y ?? H.beforeOutsideRef)?.focus());
|
|
360
|
+
}
|
|
361
|
+
}),
|
|
362
|
+
n,
|
|
363
|
+
De && /*#__PURE__*/ (0, Q.jsx)(Ie, {
|
|
364
|
+
"data-type": "inside",
|
|
365
|
+
ref: ge,
|
|
366
|
+
onFocus: (e) => {
|
|
367
|
+
f ? ft(we()[0]) : H?.portalNode && (m && (U.current = !0), Fe(e, H.portalNode) ? F(D)?.focus() : E(v ?? H.afterOutsideRef)?.focus());
|
|
368
|
+
}
|
|
369
|
+
})
|
|
370
|
+
] });
|
|
371
|
+
}
|
|
372
|
+
//#endregion
|
|
373
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/floating-ui-react/hooks/useClick.mjs
|
|
374
|
+
function Pt(e, t = {}) {
|
|
375
|
+
let { enabled: n = !0, event: r = "click", toggle: i = !0, ignoreMouse: a = !1, stickIfOpen: o = !0, touchOpenDelay: s = 0, reason: c = fe } = t, l = "rootStore" in e ? e.rootStore : e, u = l.context.dataRef, d = Z.useRef(void 0), f = Se(), p = M(), m = Z.useMemo(() => {
|
|
376
|
+
function e(e, t, n, r) {
|
|
377
|
+
let i = S(c, t, n);
|
|
378
|
+
e && r === "touch" && s > 0 ? p.start(s, () => {
|
|
379
|
+
l.setOpen(!0, i);
|
|
380
|
+
}) : l.setOpen(e, i);
|
|
381
|
+
}
|
|
382
|
+
function t(e, t, n) {
|
|
383
|
+
let r = u.current.openEvent, a = l.select("domReferenceElement") !== t;
|
|
384
|
+
return e && a || !e || !i ? !0 : r && o ? !n(r.type) : !1;
|
|
385
|
+
}
|
|
386
|
+
return {
|
|
387
|
+
onPointerDown(e) {
|
|
388
|
+
d.current = e.pointerType;
|
|
389
|
+
},
|
|
390
|
+
onMouseDown(n) {
|
|
391
|
+
let i = d.current, o = n.nativeEvent, s = l.select("open");
|
|
392
|
+
if (n.button !== 0 || r === "click" || W(i, !0) && a) return;
|
|
393
|
+
let c = t(s, n.currentTarget, (e) => e === "click" || e === "mousedown"), u = ve(o);
|
|
394
|
+
if (me(u)) {
|
|
395
|
+
e(c, o, u, i);
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
let p = n.currentTarget;
|
|
399
|
+
f.request(() => {
|
|
400
|
+
e(c, o, p, i);
|
|
401
|
+
});
|
|
402
|
+
},
|
|
403
|
+
onClick(n) {
|
|
404
|
+
if (r === "mousedown-only") return;
|
|
405
|
+
let i = d.current;
|
|
406
|
+
if (r === "mousedown" && i) {
|
|
407
|
+
d.current = void 0;
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
W(i, !0) && a || e(t(l.select("open"), n.currentTarget, (e) => e === "click" || e === "mousedown" || e === "keydown" || e === "keyup"), n.nativeEvent, n.currentTarget, i);
|
|
411
|
+
},
|
|
412
|
+
onKeyDown() {
|
|
413
|
+
d.current = void 0;
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
}, [
|
|
417
|
+
u,
|
|
418
|
+
r,
|
|
419
|
+
a,
|
|
420
|
+
c,
|
|
421
|
+
l,
|
|
422
|
+
o,
|
|
423
|
+
i,
|
|
424
|
+
f,
|
|
425
|
+
p,
|
|
426
|
+
s
|
|
427
|
+
]);
|
|
428
|
+
return Z.useMemo(() => n ? { reference: m } : Me, [n, m]);
|
|
429
|
+
}
|
|
430
|
+
//#endregion
|
|
431
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/floating-ui-react/hooks/useListNavigation.mjs
|
|
432
|
+
var Ft = "Escape";
|
|
433
|
+
function It(e, t, n) {
|
|
434
|
+
switch (e) {
|
|
435
|
+
case "vertical": return t;
|
|
436
|
+
case "horizontal": return n;
|
|
437
|
+
default: return t || n;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
function Lt(e, t) {
|
|
441
|
+
return It(t, e === "ArrowUp" || e === "ArrowDown", e === "ArrowLeft" || e === "ArrowRight");
|
|
442
|
+
}
|
|
443
|
+
function Rt(e, t, n) {
|
|
444
|
+
return It(t, e === "ArrowDown", n ? e === "ArrowLeft" : e === "ArrowRight") || e === "Enter" || e === " " || e === "";
|
|
445
|
+
}
|
|
446
|
+
function zt(e, t, n) {
|
|
447
|
+
return It(t, n ? e === V : e === We, e === ge);
|
|
448
|
+
}
|
|
449
|
+
function Bt(e, t, n, r) {
|
|
450
|
+
return t === "both" || t === "horizontal" && r ? e === Ft : It(t, n ? e === We : e === V, e === Je);
|
|
451
|
+
}
|
|
452
|
+
function Vt(e, t) {
|
|
453
|
+
let { listRef: n, activeIndex: r, onNavigate: i = () => {}, enabled: o = !0, selectedIndex: c = null, allowEscape: l = !1, loopFocus: u = !1, nested: d = !1, rtl: f = !1, virtual: p = !1, focusItemOnOpen: m = "auto", focusItemOnHover: h = !0, openOnArrowKeyDown: g = !0, disabledIndices: _ = void 0, orientation: v = "vertical", parentOrientation: y, id: b, resetOnPointerLeave: x = !0, externalTree: ee, grid: w } = t, T = w != null;
|
|
454
|
+
process.env.NODE_ENV !== "production" && (l && (u || console.warn("`useListNavigation` looping must be enabled to allow escaping."), p || console.warn("`useListNavigation` must be virtual to allow escaping.")), v === "vertical" && T && console.warn("In grid list navigation mode, the `orientation` should", "be either \"horizontal\" or \"both\"."));
|
|
455
|
+
let E = "rootStore" in e ? e.rootStore : e, D = E.useState("open"), O = E.useState("floatingElement"), A = E.useState("domReferenceElement"), M = E.context.dataRef, N = Ue(O), P = le(A), re = ze(N), ie = Ce(), F = C(ee), I = Z.useRef(m), R = Z.useRef(c ?? -1), z = Z.useRef(null), B = Z.useRef(!0), V = J((e) => {
|
|
456
|
+
i(R.current === -1 ? null : R.current, e);
|
|
457
|
+
}), H = Z.useRef(!!O), U = Z.useRef(D), W = Z.useRef(!1), oe = Z.useRef(!1), se = Z.useRef(null), ce = ze(_), ue = ze(D), fe = ze(c), pe = ze(x), me = Se(), he = Se(), ge = J(() => {
|
|
458
|
+
function e(e) {
|
|
459
|
+
p ? F?.events.emit("virtualfocus", e) : se.current = ft(e, {
|
|
460
|
+
sync: W.current,
|
|
461
|
+
preventScroll: !0
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
let t = n.current[R.current], r = oe.current;
|
|
465
|
+
t && e(t), (W.current ? (e) => e() : (e) => me.request(e))(() => {
|
|
466
|
+
let i = n.current[R.current] || t;
|
|
467
|
+
i && (t || e(i), we && (r || !B.current) && i.scrollIntoView?.({
|
|
468
|
+
block: "nearest",
|
|
469
|
+
inline: "nearest"
|
|
470
|
+
}));
|
|
471
|
+
});
|
|
472
|
+
});
|
|
473
|
+
j(() => {
|
|
474
|
+
M.current.orientation = v;
|
|
475
|
+
}, [M, v]), j(() => {
|
|
476
|
+
o && (D && O ? (R.current = c ?? -1, I.current && c != null && (oe.current = !0, V())) : H.current && (R.current = -1, V()));
|
|
477
|
+
}, [
|
|
478
|
+
o,
|
|
479
|
+
D,
|
|
480
|
+
O,
|
|
481
|
+
c,
|
|
482
|
+
V
|
|
483
|
+
]), j(() => {
|
|
484
|
+
if (o) {
|
|
485
|
+
if (!D) {
|
|
486
|
+
W.current = !1;
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
if (O) if (r == null) {
|
|
490
|
+
if (W.current = !1, fe.current != null) return;
|
|
491
|
+
if (H.current && (R.current = -1, ge()), (!U.current || !H.current) && I.current && (z.current != null || I.current === !0 && z.current == null)) {
|
|
492
|
+
let e = 0, t = () => {
|
|
493
|
+
n.current[0] == null ? (e < 2 && (e ? (e) => he.request(e) : queueMicrotask)(t), e += 1) : (R.current = z.current == null || Rt(z.current, v, f) || d ? k(n) : ae(n), z.current = null, V());
|
|
494
|
+
};
|
|
495
|
+
t();
|
|
496
|
+
}
|
|
497
|
+
} else de(n.current, r) || (R.current = r, ge(), oe.current = !1);
|
|
498
|
+
}
|
|
499
|
+
}, [
|
|
500
|
+
o,
|
|
501
|
+
D,
|
|
502
|
+
O,
|
|
503
|
+
r,
|
|
504
|
+
fe,
|
|
505
|
+
d,
|
|
506
|
+
n,
|
|
507
|
+
v,
|
|
508
|
+
f,
|
|
509
|
+
V,
|
|
510
|
+
ge,
|
|
511
|
+
he
|
|
512
|
+
]), j(() => {
|
|
513
|
+
if (!o || O || !F || p || !H.current) return;
|
|
514
|
+
let e = F.nodesRef.current, t = e.find((e) => e.id === ie)?.context?.elements.floating, n = je(q(A ?? t ?? null)), r = e.some((e) => e.context && K(e.context.elements.floating, n));
|
|
515
|
+
t && !r && B.current && t.focus({ preventScroll: !0 });
|
|
516
|
+
}, [
|
|
517
|
+
o,
|
|
518
|
+
O,
|
|
519
|
+
A,
|
|
520
|
+
F,
|
|
521
|
+
ie,
|
|
522
|
+
p
|
|
523
|
+
]), j(() => {
|
|
524
|
+
U.current = D, H.current = !!O;
|
|
525
|
+
}), j(() => {
|
|
526
|
+
D || (z.current = null, I.current = m);
|
|
527
|
+
}, [D, m]);
|
|
528
|
+
let _e = r != null, ye = J((e) => {
|
|
529
|
+
if (!ue.current) return;
|
|
530
|
+
let t = n.current.indexOf(e.currentTarget);
|
|
531
|
+
t !== -1 && (R.current !== t || r !== t) && (R.current = t, V(e));
|
|
532
|
+
}), be = J(() => y ?? F?.nodesRef.current.find((e) => e.id === ie)?.context?.dataRef?.current.orientation), xe = J(() => k(n, ce.current)), G = J((e) => {
|
|
533
|
+
if (B.current = !1, W.current = !0, e.which === 229 || !ue.current && e.currentTarget === re.current) return;
|
|
534
|
+
if (d && Bt(e.key, v, f, T)) {
|
|
535
|
+
Lt(e.key, be()) || s(e), E.setOpen(!1, S(Pe, e.nativeEvent)), a(A) && (p ? F?.events.emit("virtualfocus", A) : A.focus());
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
let t = R.current, r = k(n, _), i = ae(n, _);
|
|
539
|
+
if (P || (e.key === "Home" && (s(e), R.current = r, V(e)), e.key === "End" && (s(e), R.current = i, V(e))), w != null) {
|
|
540
|
+
let t = w(e, R.current, n, v, u, f, _, r, i);
|
|
541
|
+
if (t != null && (R.current = t, V(e)), v === "both") return;
|
|
542
|
+
}
|
|
543
|
+
if (Lt(e.key, v)) {
|
|
544
|
+
if (s(e), D && !p && je(e.currentTarget.ownerDocument) === e.currentTarget) {
|
|
545
|
+
R.current = Rt(e.key, v, f) ? r : i, V(e);
|
|
546
|
+
return;
|
|
547
|
+
}
|
|
548
|
+
Rt(e.key, v, f) ? u ? t >= i ? l && t !== n.current.length ? R.current = -1 : (W.current = !1, R.current = r) : R.current = L(n.current, {
|
|
549
|
+
startingIndex: t,
|
|
550
|
+
disabledIndices: _
|
|
551
|
+
}) : R.current = Math.min(i, L(n.current, {
|
|
552
|
+
startingIndex: t,
|
|
553
|
+
disabledIndices: _
|
|
554
|
+
})) : u ? t <= r ? l && t !== -1 ? R.current = n.current.length : (W.current = !1, R.current = i) : R.current = L(n.current, {
|
|
555
|
+
startingIndex: t,
|
|
556
|
+
decrement: !0,
|
|
557
|
+
disabledIndices: _
|
|
558
|
+
}) : R.current = Math.max(r, L(n.current, {
|
|
559
|
+
startingIndex: t,
|
|
560
|
+
decrement: !0,
|
|
561
|
+
disabledIndices: _
|
|
562
|
+
})), de(n.current, R.current) && (R.current = -1), V(e);
|
|
563
|
+
}
|
|
564
|
+
}), we = Z.useMemo(() => ({
|
|
565
|
+
onFocus(e) {
|
|
566
|
+
W.current = !0, ye(e);
|
|
567
|
+
},
|
|
568
|
+
onClick: ({ currentTarget: e }) => e.focus({ preventScroll: !0 }),
|
|
569
|
+
onMouseMove(e) {
|
|
570
|
+
W.current = !0, oe.current = !1, h && ye(e);
|
|
571
|
+
},
|
|
572
|
+
onPointerLeave(e) {
|
|
573
|
+
if (!ue.current || !B.current || e.pointerType === "touch") return;
|
|
574
|
+
W.current = !0;
|
|
575
|
+
let t = e.relatedTarget;
|
|
576
|
+
if (!(!h || n.current.includes(t)) && pe.current && (se.current?.(), se.current = null, R.current = -1, V(e), !p)) {
|
|
577
|
+
let e = re.current, t = je(q(e));
|
|
578
|
+
e && K(e, t) && e.focus({ preventScroll: !0 });
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}), [
|
|
582
|
+
ye,
|
|
583
|
+
ue,
|
|
584
|
+
re,
|
|
585
|
+
h,
|
|
586
|
+
n,
|
|
587
|
+
V,
|
|
588
|
+
pe,
|
|
589
|
+
p
|
|
590
|
+
]), Te = Z.useMemo(() => p && D && _e && { "aria-activedescendant": `${b}-${r}` }, [
|
|
591
|
+
p,
|
|
592
|
+
D,
|
|
593
|
+
_e,
|
|
594
|
+
b,
|
|
595
|
+
r
|
|
596
|
+
]), Ee = Z.useMemo(() => ({
|
|
597
|
+
"aria-orientation": v === "both" ? void 0 : v,
|
|
598
|
+
...P ? {} : Te,
|
|
599
|
+
onKeyDown(e) {
|
|
600
|
+
if (e.key === "Tab" && e.shiftKey && D && !p) {
|
|
601
|
+
let t = ve(e.nativeEvent);
|
|
602
|
+
if (t && !K(re.current, t)) return;
|
|
603
|
+
s(e), E.setOpen(!1, S(ne, e.nativeEvent)), a(A) && A.focus();
|
|
604
|
+
return;
|
|
605
|
+
}
|
|
606
|
+
G(e);
|
|
607
|
+
},
|
|
608
|
+
onPointerMove() {
|
|
609
|
+
B.current = !0;
|
|
610
|
+
}
|
|
611
|
+
}), [
|
|
612
|
+
Te,
|
|
613
|
+
G,
|
|
614
|
+
re,
|
|
615
|
+
v,
|
|
616
|
+
P,
|
|
617
|
+
E,
|
|
618
|
+
D,
|
|
619
|
+
p,
|
|
620
|
+
A
|
|
621
|
+
]), De = Z.useMemo(() => {
|
|
622
|
+
function e(e) {
|
|
623
|
+
E.setOpen(!0, S(Pe, e.nativeEvent, e.currentTarget));
|
|
624
|
+
}
|
|
625
|
+
function t(e) {
|
|
626
|
+
m === "auto" && Ke(e.nativeEvent) && (I.current = !p);
|
|
627
|
+
}
|
|
628
|
+
function n(e) {
|
|
629
|
+
I.current = m, m === "auto" && te(e.nativeEvent) && (I.current = !0);
|
|
630
|
+
}
|
|
631
|
+
return {
|
|
632
|
+
onKeyDown(t) {
|
|
633
|
+
let n = E.select("open");
|
|
634
|
+
B.current = !1;
|
|
635
|
+
let r = t.key.startsWith("Arrow"), i = zt(t.key, be(), f), a = Lt(t.key, v), o = (d ? i : a) || t.key === "Enter" || t.key.trim() === "";
|
|
636
|
+
if (p && n) return G(t);
|
|
637
|
+
if (!(!n && !g && r)) {
|
|
638
|
+
if (o) {
|
|
639
|
+
let e = Lt(t.key, be());
|
|
640
|
+
z.current = d && e ? null : t.key;
|
|
641
|
+
}
|
|
642
|
+
if (d) {
|
|
643
|
+
i && (s(t), n ? (R.current = xe(), V(t)) : e(t));
|
|
644
|
+
return;
|
|
645
|
+
}
|
|
646
|
+
a && (fe.current != null && (R.current = fe.current), s(t), !n && g ? e(t) : G(t), n && V(t));
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
onFocus(e) {
|
|
650
|
+
E.select("open") && !p && (R.current = -1, V(e));
|
|
651
|
+
},
|
|
652
|
+
onPointerDown: n,
|
|
653
|
+
onPointerEnter: n,
|
|
654
|
+
onMouseDown: t,
|
|
655
|
+
onClick: t
|
|
656
|
+
};
|
|
657
|
+
}, [
|
|
658
|
+
G,
|
|
659
|
+
m,
|
|
660
|
+
xe,
|
|
661
|
+
d,
|
|
662
|
+
V,
|
|
663
|
+
E,
|
|
664
|
+
g,
|
|
665
|
+
v,
|
|
666
|
+
be,
|
|
667
|
+
f,
|
|
668
|
+
fe,
|
|
669
|
+
p
|
|
670
|
+
]), Oe = Z.useMemo(() => ({
|
|
671
|
+
...Te,
|
|
672
|
+
...De
|
|
673
|
+
}), [Te, De]);
|
|
674
|
+
return Z.useMemo(() => o ? {
|
|
675
|
+
reference: Oe,
|
|
676
|
+
floating: Ee,
|
|
677
|
+
item: we,
|
|
678
|
+
trigger: De
|
|
679
|
+
} : {}, [
|
|
680
|
+
o,
|
|
681
|
+
Oe,
|
|
682
|
+
Ee,
|
|
683
|
+
De,
|
|
684
|
+
we
|
|
685
|
+
]);
|
|
686
|
+
}
|
|
687
|
+
//#endregion
|
|
688
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/floating-ui-react/hooks/useTypeahead.mjs
|
|
689
|
+
function Ht(e, t) {
|
|
690
|
+
let { listRef: n, elementsRef: i, activeIndex: a, onMatch: o, disabledIndices: c, onTyping: l, enabled: u = !0, resetMs: d = 750, selectedIndex: f = null } = t, p = "rootStore" in e ? e.rootStore : e, m = p.useState("open"), h = M(), g = Z.useRef(""), _ = Z.useRef(f ?? a ?? -1), v = Z.useRef(null), y = J((e) => {
|
|
691
|
+
function t(e) {
|
|
692
|
+
let t = i?.current[e];
|
|
693
|
+
return !t || r(t);
|
|
694
|
+
}
|
|
695
|
+
function u(e) {
|
|
696
|
+
return t(e) ? c == null || !Ve(he, e, c) : !1;
|
|
697
|
+
}
|
|
698
|
+
function p(e, t, n = 0) {
|
|
699
|
+
if (e.length === 0) return -1;
|
|
700
|
+
let r = (n % e.length + e.length) % e.length, i = t.toLowerCase();
|
|
701
|
+
for (let t = 0; t < e.length; t += 1) {
|
|
702
|
+
let n = (r + t) % e.length;
|
|
703
|
+
if (!(!e[n]?.toLowerCase().startsWith(i) || !u(n))) return n;
|
|
704
|
+
}
|
|
705
|
+
return -1;
|
|
706
|
+
}
|
|
707
|
+
let y = n.current;
|
|
708
|
+
if (g.current.length > 0 && e.key === " " && (s(e), l?.(!0)), g.current.length > 0 && g.current[0] !== " " && p(y, g.current) === -1 && e.key !== " " && l?.(!1), y == null || e.key.length !== 1 || e.ctrlKey || e.metaKey || e.altKey) return;
|
|
709
|
+
m && e.key !== " " && (s(e), l?.(!0));
|
|
710
|
+
let b = g.current === "";
|
|
711
|
+
b && (_.current = f ?? a ?? -1), y.every((e, t) => e && u(t) ? e[0]?.toLowerCase() !== e[1]?.toLowerCase() : !0) && g.current === e.key && (g.current = "", _.current = v.current), g.current += e.key, h.start(d, () => {
|
|
712
|
+
g.current = "", _.current = v.current, l?.(!1);
|
|
713
|
+
});
|
|
714
|
+
let x = ((b ? f ?? a ?? -1 : _.current) ?? 0) + 1, S = p(y, g.current, x);
|
|
715
|
+
S === -1 ? e.key !== " " && (g.current = "", l?.(!1)) : (o?.(S), v.current = S);
|
|
716
|
+
}), b = J((e) => {
|
|
717
|
+
let t = e.relatedTarget, n = p.select("domReferenceElement"), r = p.select("floatingElement");
|
|
718
|
+
K(n, t) || K(r, t) || (h.clear(), g.current = "", _.current = v.current, l?.(!1));
|
|
719
|
+
});
|
|
720
|
+
j(() => {
|
|
721
|
+
!m && f !== null || (h.clear(), v.current = null, g.current !== "" && (g.current = ""));
|
|
722
|
+
}, [
|
|
723
|
+
m,
|
|
724
|
+
f,
|
|
725
|
+
h
|
|
726
|
+
]), j(() => {
|
|
727
|
+
m && g.current === "" && (_.current = f ?? a ?? -1);
|
|
728
|
+
}, [
|
|
729
|
+
m,
|
|
730
|
+
f,
|
|
731
|
+
a
|
|
732
|
+
]);
|
|
733
|
+
let x = Z.useMemo(() => ({
|
|
734
|
+
onKeyDown: y,
|
|
735
|
+
onBlur: b
|
|
736
|
+
}), [y, b]);
|
|
737
|
+
return Z.useMemo(() => u ? {
|
|
738
|
+
reference: x,
|
|
739
|
+
floating: x
|
|
740
|
+
} : {}, [u, x]);
|
|
741
|
+
}
|
|
742
|
+
//#endregion
|
|
743
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/toolbar/root/ToolbarRootContext.mjs
|
|
744
|
+
var Ut = /*#__PURE__*/ Z.createContext(void 0);
|
|
745
|
+
process.env.NODE_ENV !== "production" && (Ut.displayName = "ToolbarRootContext");
|
|
746
|
+
function Wt(e) {
|
|
747
|
+
let t = Z.useContext(Ut);
|
|
748
|
+
if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? oe(69) : "Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.");
|
|
749
|
+
return t;
|
|
750
|
+
}
|
|
751
|
+
//#endregion
|
|
752
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/utils/inertValue.mjs
|
|
753
|
+
function Gt(e) {
|
|
754
|
+
return ye(19) ? e : e ? "true" : void 0;
|
|
755
|
+
}
|
|
756
|
+
//#endregion
|
|
757
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/utils/InternalBackdrop.mjs
|
|
758
|
+
var Kt = /*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
759
|
+
let { cutout: n, ...r } = e, i;
|
|
760
|
+
if (n) {
|
|
761
|
+
let e = n.getBoundingClientRect();
|
|
762
|
+
i = `polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`;
|
|
763
|
+
}
|
|
764
|
+
return /*#__PURE__*/ (0, Q.jsx)("div", {
|
|
765
|
+
ref: t,
|
|
766
|
+
role: "presentation",
|
|
767
|
+
"data-base-ui-inert": "",
|
|
768
|
+
...r,
|
|
769
|
+
style: {
|
|
770
|
+
position: "fixed",
|
|
771
|
+
inset: 0,
|
|
772
|
+
userSelect: "none",
|
|
773
|
+
WebkitUserSelect: "none",
|
|
774
|
+
clipPath: i
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
});
|
|
778
|
+
process.env.NODE_ENV !== "production" && (Kt.displayName = "InternalBackdrop");
|
|
779
|
+
//#endregion
|
|
780
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/utils/useScrollLock.mjs
|
|
781
|
+
var qt = {}, Jt = {}, Yt = "";
|
|
782
|
+
function Xt(e) {
|
|
783
|
+
if (typeof document > "u") return !1;
|
|
784
|
+
let t = q(e);
|
|
785
|
+
return D(t).innerWidth - t.documentElement.clientWidth > 0;
|
|
786
|
+
}
|
|
787
|
+
function Zt(e) {
|
|
788
|
+
if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u") return !1;
|
|
789
|
+
let t = q(e), n = t.documentElement, r = t.body, i = ee(n) ? n : r, a = i.style.overflowY, o = n.style.scrollbarGutter;
|
|
790
|
+
n.style.scrollbarGutter = "stable", i.style.overflowY = "scroll";
|
|
791
|
+
let s = i.offsetWidth;
|
|
792
|
+
i.style.overflowY = "hidden";
|
|
793
|
+
let c = i.offsetWidth;
|
|
794
|
+
return i.style.overflowY = a, n.style.scrollbarGutter = o, s === c;
|
|
795
|
+
}
|
|
796
|
+
function Qt(e) {
|
|
797
|
+
let t = q(e), n = t.documentElement, r = t.body, i = ee(n) ? n : r, a = {
|
|
798
|
+
overflowY: i.style.overflowY,
|
|
799
|
+
overflowX: i.style.overflowX
|
|
800
|
+
};
|
|
801
|
+
return Object.assign(i.style, {
|
|
802
|
+
overflowY: "hidden",
|
|
803
|
+
overflowX: "hidden"
|
|
804
|
+
}), () => {
|
|
805
|
+
Object.assign(i.style, a);
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
function $t(e) {
|
|
809
|
+
let t = q(e), n = t.documentElement, r = t.body, a = D(n), o = 0, s = 0, c = !1, l = i.create();
|
|
810
|
+
if (h && (a.visualViewport?.scale ?? 1) !== 1) return () => {};
|
|
811
|
+
function u() {
|
|
812
|
+
let t = a.getComputedStyle(n), i = a.getComputedStyle(r), l = (t.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
|
|
813
|
+
o = n.scrollTop, s = n.scrollLeft, qt = {
|
|
814
|
+
scrollbarGutter: n.style.scrollbarGutter,
|
|
815
|
+
overflowY: n.style.overflowY,
|
|
816
|
+
overflowX: n.style.overflowX
|
|
817
|
+
}, Yt = n.style.scrollBehavior, Jt = {
|
|
818
|
+
position: r.style.position,
|
|
819
|
+
height: r.style.height,
|
|
820
|
+
width: r.style.width,
|
|
821
|
+
boxSizing: r.style.boxSizing,
|
|
822
|
+
overflowY: r.style.overflowY,
|
|
823
|
+
overflowX: r.style.overflowX,
|
|
824
|
+
scrollBehavior: r.style.scrollBehavior
|
|
825
|
+
};
|
|
826
|
+
let u = n.scrollHeight > n.clientHeight, d = n.scrollWidth > n.clientWidth, f = t.overflowY === "scroll" || i.overflowY === "scroll", p = t.overflowX === "scroll" || i.overflowX === "scroll", m = Math.max(0, a.innerWidth - r.clientWidth), h = Math.max(0, a.innerHeight - r.clientHeight), g = parseFloat(i.marginTop) + parseFloat(i.marginBottom), _ = parseFloat(i.marginLeft) + parseFloat(i.marginRight), v = ee(n) ? n : r;
|
|
827
|
+
if (c = Zt(e), c) {
|
|
828
|
+
n.style.scrollbarGutter = l, v.style.overflowY = "hidden", v.style.overflowX = "hidden";
|
|
829
|
+
return;
|
|
830
|
+
}
|
|
831
|
+
Object.assign(n.style, {
|
|
832
|
+
scrollbarGutter: l,
|
|
833
|
+
overflowY: "hidden",
|
|
834
|
+
overflowX: "hidden"
|
|
835
|
+
}), (u || f) && (n.style.overflowY = "scroll"), (d || p) && (n.style.overflowX = "scroll"), Object.assign(r.style, {
|
|
836
|
+
position: "relative",
|
|
837
|
+
height: g || h ? `calc(100dvh - ${g + h}px)` : "100dvh",
|
|
838
|
+
width: _ || m ? `calc(100vw - ${_ + m}px)` : "100vw",
|
|
839
|
+
boxSizing: "border-box",
|
|
840
|
+
overflow: "hidden",
|
|
841
|
+
scrollBehavior: "unset"
|
|
842
|
+
}), r.scrollTop = o, r.scrollLeft = s, n.setAttribute("data-base-ui-scroll-locked", ""), n.style.scrollBehavior = "unset";
|
|
843
|
+
}
|
|
844
|
+
function d() {
|
|
845
|
+
Object.assign(n.style, qt), Object.assign(r.style, Jt), c || (n.scrollTop = o, n.scrollLeft = s, n.removeAttribute("data-base-ui-scroll-locked"), n.style.scrollBehavior = Yt);
|
|
846
|
+
}
|
|
847
|
+
function f() {
|
|
848
|
+
d(), l.request(u);
|
|
849
|
+
}
|
|
850
|
+
u();
|
|
851
|
+
let p = Te(a, "resize", f);
|
|
852
|
+
return () => {
|
|
853
|
+
l.cancel(), d(), typeof a.removeEventListener == "function" && p();
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
var en = new class {
|
|
857
|
+
lockCount = 0;
|
|
858
|
+
restore = null;
|
|
859
|
+
timeoutLock = Ge.create();
|
|
860
|
+
timeoutUnlock = Ge.create();
|
|
861
|
+
acquire(e) {
|
|
862
|
+
return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(e)), this.release;
|
|
863
|
+
}
|
|
864
|
+
release = () => {
|
|
865
|
+
--this.lockCount, this.lockCount === 0 && this.restore && this.timeoutUnlock.start(0, this.unlock);
|
|
866
|
+
};
|
|
867
|
+
unlock = () => {
|
|
868
|
+
this.lockCount === 0 && this.restore && (this.restore?.(), this.restore = null);
|
|
869
|
+
};
|
|
870
|
+
lock(e) {
|
|
871
|
+
if (this.lockCount === 0 || this.restore !== null) return;
|
|
872
|
+
let t = q(e).documentElement, n = D(t).getComputedStyle(t).overflowY;
|
|
873
|
+
if (n === "hidden" || n === "clip") {
|
|
874
|
+
this.restore = Ee;
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
877
|
+
let r = y || !Xt(e);
|
|
878
|
+
this.restore = r ? Qt(e) : $t(e);
|
|
879
|
+
}
|
|
880
|
+
}();
|
|
881
|
+
function tn(e = !0, t = null) {
|
|
882
|
+
j(() => {
|
|
883
|
+
if (e) return en.acquire(t);
|
|
884
|
+
}, [e, t]);
|
|
885
|
+
}
|
|
886
|
+
//#endregion
|
|
887
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/utils/useAnchoredPopupScrollLock.mjs
|
|
888
|
+
var nn = 20;
|
|
889
|
+
function rn(e, t, n, r) {
|
|
890
|
+
let [i, a] = Z.useState(!1);
|
|
891
|
+
j(() => {
|
|
892
|
+
if (!e || !t || n == null) {
|
|
893
|
+
a(!1);
|
|
894
|
+
return;
|
|
895
|
+
}
|
|
896
|
+
let r = q(n).documentElement.clientWidth, i = n.offsetWidth;
|
|
897
|
+
a(r > 0 && i > 0 && i >= r - nn);
|
|
898
|
+
}, [
|
|
899
|
+
e,
|
|
900
|
+
t,
|
|
901
|
+
n
|
|
902
|
+
]), tn(e && (!t || i), r);
|
|
903
|
+
}
|
|
904
|
+
//#endregion
|
|
905
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/utils/useEnhancedClickHandler.mjs
|
|
906
|
+
function an(e) {
|
|
907
|
+
let t = Z.useRef(""), n = Z.useCallback((n) => {
|
|
908
|
+
n.defaultPrevented || (t.current = n.pointerType, e(n, n.pointerType));
|
|
909
|
+
}, [e]);
|
|
910
|
+
return {
|
|
911
|
+
onClick: Z.useCallback((n) => {
|
|
912
|
+
if (n.detail === 0) {
|
|
913
|
+
e(n, "keyboard");
|
|
914
|
+
return;
|
|
915
|
+
}
|
|
916
|
+
"pointerType" in n ? e(n, n.pointerType) : e(n, t.current), t.current = "";
|
|
917
|
+
}, [e]),
|
|
918
|
+
onPointerDown: n
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
//#endregion
|
|
922
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/utils/useOpenInteractionType.mjs
|
|
923
|
+
function on(e, t) {
|
|
924
|
+
let { onClick: n, onPointerDown: r } = an(J((n, r) => {
|
|
925
|
+
(typeof e == "function" ? e() : e) || t(r || (y ? "touch" : ""));
|
|
926
|
+
}));
|
|
927
|
+
return Z.useMemo(() => ({
|
|
928
|
+
onClick: n,
|
|
929
|
+
onPointerDown: r
|
|
930
|
+
}), [n, r]);
|
|
931
|
+
}
|
|
932
|
+
function sn(e) {
|
|
933
|
+
let [t, n] = Z.useState(null), r = on(e, n);
|
|
934
|
+
return st(e, (t) => {
|
|
935
|
+
t && !e && n(null);
|
|
936
|
+
}), Z.useMemo(() => ({
|
|
937
|
+
openMethod: t,
|
|
938
|
+
triggerProps: r
|
|
939
|
+
}), [t, r]);
|
|
940
|
+
}
|
|
941
|
+
//#endregion
|
|
942
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/utils/getPseudoElementBounds.mjs
|
|
943
|
+
function cn(e) {
|
|
944
|
+
let t = e.getBoundingClientRect(), n = D(e);
|
|
945
|
+
if (f) return t;
|
|
946
|
+
let r = n.getComputedStyle(e, "::before"), i = n.getComputedStyle(e, "::after");
|
|
947
|
+
if (!(r.content !== "none" || i.content !== "none")) return t;
|
|
948
|
+
let a = parseFloat(r.width) || 0, o = parseFloat(r.height) || 0, s = parseFloat(i.width) || 0, c = parseFloat(i.height) || 0, l = Math.max(t.width, a, s), u = Math.max(t.height, o, c), d = l - t.width, p = u - t.height;
|
|
949
|
+
return {
|
|
950
|
+
left: t.left - d / 2,
|
|
951
|
+
right: t.right + d / 2,
|
|
952
|
+
top: t.top - p / 2,
|
|
953
|
+
bottom: t.bottom + p / 2
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
//#endregion
|
|
957
|
+
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/utils/usePreviousValue.mjs
|
|
958
|
+
function ln(e) {
|
|
959
|
+
let [t, n] = Z.useState({
|
|
960
|
+
current: e,
|
|
961
|
+
previous: null
|
|
962
|
+
});
|
|
963
|
+
return e !== t.current && n({
|
|
964
|
+
current: e,
|
|
965
|
+
previous: t.current
|
|
966
|
+
}), t.previous;
|
|
967
|
+
}
|
|
968
|
+
//#endregion
|
|
969
|
+
//#region src/client/hooks/use-proximity-hover.ts
|
|
970
|
+
function un(e, t) {
|
|
971
|
+
let n = e.getBoundingClientRect(), r = t === "x" ? e.offsetWidth : e.offsetHeight, i = t === "x" ? n.width : n.height;
|
|
972
|
+
return r > 0 ? i / r : 1;
|
|
973
|
+
}
|
|
974
|
+
function dn(e, t) {
|
|
975
|
+
let n = e.getBoundingClientRect(), r = un(e, "x"), i = un(e, "y"), a = [];
|
|
976
|
+
return t.forEach((t, o) => {
|
|
977
|
+
let s = t.getBoundingClientRect();
|
|
978
|
+
a[o] = {
|
|
979
|
+
top: (s.top - n.top) / i + e.scrollTop,
|
|
980
|
+
left: (s.left - n.left) / r + e.scrollLeft,
|
|
981
|
+
width: t.offsetWidth,
|
|
982
|
+
height: t.offsetHeight
|
|
983
|
+
};
|
|
984
|
+
}), a;
|
|
985
|
+
}
|
|
986
|
+
function fn(e, t, n, r) {
|
|
987
|
+
let i = r === "x" ? t : n, a = null, o = Infinity, s = null;
|
|
988
|
+
return e.forEach((e, t) => {
|
|
989
|
+
let n = e.getBoundingClientRect(), c = r === "x" ? n.left : n.top, l = r === "x" ? n.right : n.bottom;
|
|
990
|
+
i >= c && i <= l && (s = t);
|
|
991
|
+
let u = (c + l) / 2, d = Math.abs(i - u);
|
|
992
|
+
d < o && (o = d, a = t);
|
|
993
|
+
}), s ?? a;
|
|
994
|
+
}
|
|
995
|
+
function pn(e, t) {
|
|
996
|
+
if (e.length !== t.length) return !0;
|
|
997
|
+
for (let n = 0; n < t.length; n++) {
|
|
998
|
+
let r = e[n], i = t[n];
|
|
999
|
+
if (r !== i && (!r || !i || r.top !== i.top || r.left !== i.left || r.width !== i.width || r.height !== i.height)) return !0;
|
|
1000
|
+
}
|
|
1001
|
+
return !1;
|
|
1002
|
+
}
|
|
1003
|
+
function mn(e, t = {}) {
|
|
1004
|
+
let { axis: n = "y" } = t, r = (0, Z.useRef)(/* @__PURE__ */ new Map()), [i, a] = (0, Z.useState)(null), [o, s] = (0, Z.useState)([]), c = (0, Z.useRef)([]), l = (0, Z.useRef)(0), u = (0, Z.useRef)(null), d = (0, Z.useRef)(null), f = (0, Z.useRef)(null), p = (0, Z.useCallback)(() => {
|
|
1005
|
+
let t = e.current;
|
|
1006
|
+
if (!t) return;
|
|
1007
|
+
let n = dn(t, r.current);
|
|
1008
|
+
pn(c.current, n) && (c.current = n, s(n));
|
|
1009
|
+
}, [e]), m = (0, Z.useCallback)((e, t) => {
|
|
1010
|
+
a(fn(r.current, e, t, n));
|
|
1011
|
+
}, [n]), h = (0, Z.useCallback)((e, t) => {
|
|
1012
|
+
t ? r.current.set(e, t) : r.current.delete(e), d.current !== null && cancelAnimationFrame(d.current), d.current = requestAnimationFrame(() => {
|
|
1013
|
+
d.current = null, p();
|
|
1014
|
+
});
|
|
1015
|
+
}, [p]), g = (0, Z.useCallback)((e) => {
|
|
1016
|
+
f.current = {
|
|
1017
|
+
x: e.clientX,
|
|
1018
|
+
y: e.clientY
|
|
1019
|
+
}, u.current !== null && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(() => {
|
|
1020
|
+
u.current = null, p(), m(e.clientX, e.clientY);
|
|
1021
|
+
});
|
|
1022
|
+
}, [p, m]), _ = (0, Z.useCallback)(() => {
|
|
1023
|
+
l.current += 1;
|
|
1024
|
+
}, []), v = (0, Z.useCallback)(() => {
|
|
1025
|
+
u.current !== null && (cancelAnimationFrame(u.current), u.current = null), f.current = null, a(null);
|
|
1026
|
+
}, []);
|
|
1027
|
+
return (0, Z.useEffect)(() => {
|
|
1028
|
+
let t = e.current;
|
|
1029
|
+
if (!t || typeof ResizeObserver > "u") return;
|
|
1030
|
+
let n = new ResizeObserver(() => {
|
|
1031
|
+
d.current !== null && cancelAnimationFrame(d.current), d.current = requestAnimationFrame(() => {
|
|
1032
|
+
d.current = null, p();
|
|
1033
|
+
});
|
|
1034
|
+
});
|
|
1035
|
+
return n.observe(t), () => n.disconnect();
|
|
1036
|
+
}, [e, p]), (0, Z.useEffect)(() => {
|
|
1037
|
+
let t = e.current;
|
|
1038
|
+
if (!t) return;
|
|
1039
|
+
let n = () => {
|
|
1040
|
+
p();
|
|
1041
|
+
let e = f.current;
|
|
1042
|
+
e && m(e.x, e.y);
|
|
1043
|
+
};
|
|
1044
|
+
return t.addEventListener("scroll", n, {
|
|
1045
|
+
capture: !0,
|
|
1046
|
+
passive: !0
|
|
1047
|
+
}), () => t.removeEventListener("scroll", n, { capture: !0 });
|
|
1048
|
+
}, [
|
|
1049
|
+
e,
|
|
1050
|
+
p,
|
|
1051
|
+
m
|
|
1052
|
+
]), (0, Z.useEffect)(() => () => {
|
|
1053
|
+
u.current !== null && cancelAnimationFrame(u.current), d.current !== null && cancelAnimationFrame(d.current);
|
|
1054
|
+
}, []), {
|
|
1055
|
+
activeIndex: i,
|
|
1056
|
+
setActiveIndex: a,
|
|
1057
|
+
itemRects: o,
|
|
1058
|
+
sessionRef: l,
|
|
1059
|
+
handlers: {
|
|
1060
|
+
onMouseMove: g,
|
|
1061
|
+
onMouseEnter: _,
|
|
1062
|
+
onMouseLeave: v
|
|
1063
|
+
},
|
|
1064
|
+
registerItem: h,
|
|
1065
|
+
measureItems: p
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
//#endregion
|
|
1069
|
+
//#region src/client/lib/surface-context.tsx
|
|
1070
|
+
var hn = (0, Z.createContext)(1);
|
|
1071
|
+
function gn() {
|
|
1072
|
+
return (0, Z.useContext)(hn);
|
|
1073
|
+
}
|
|
1074
|
+
function _n({ value: e, children: t }) {
|
|
1075
|
+
return /* @__PURE__ */ (0, Q.jsx)(hn.Provider, {
|
|
1076
|
+
value: Math.max(1, Math.min(8, e)),
|
|
1077
|
+
children: t
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
//#endregion
|
|
1081
|
+
//#region src/client/lib/surface-classes.ts
|
|
1082
|
+
var vn = {
|
|
1083
|
+
1: "bg-surface-1",
|
|
1084
|
+
2: "bg-surface-2",
|
|
1085
|
+
3: "bg-surface-3",
|
|
1086
|
+
4: "bg-surface-4",
|
|
1087
|
+
5: "bg-surface-5",
|
|
1088
|
+
6: "bg-surface-6",
|
|
1089
|
+
7: "bg-surface-7",
|
|
1090
|
+
8: "bg-surface-8"
|
|
1091
|
+
}, yn = {
|
|
1092
|
+
1: "shadow-surface-1",
|
|
1093
|
+
2: "shadow-surface-2",
|
|
1094
|
+
3: "shadow-surface-3",
|
|
1095
|
+
4: "shadow-surface-4",
|
|
1096
|
+
5: "shadow-surface-5",
|
|
1097
|
+
6: "shadow-surface-6",
|
|
1098
|
+
7: "shadow-surface-7",
|
|
1099
|
+
8: "shadow-surface-8"
|
|
1100
|
+
};
|
|
1101
|
+
function bn(e, t = e) {
|
|
1102
|
+
let n = Math.round(Math.max(1, Math.min(8, e))), r = Math.round(Math.max(1, Math.min(8, t)));
|
|
1103
|
+
return `${vn[n]} ${yn[r]}`;
|
|
1104
|
+
}
|
|
1105
|
+
//#endregion
|
|
1106
|
+
//#region src/client/lib/elevated.tsx
|
|
1107
|
+
var xn = (0, Z.forwardRef)(({ offset: e, shadowLevel: t, className: n, children: r, ...i }, a) => {
|
|
1108
|
+
let o = gn(), s = Math.min(o + e, 8);
|
|
1109
|
+
return /* @__PURE__ */ (0, Q.jsx)(_n, {
|
|
1110
|
+
value: s,
|
|
1111
|
+
children: /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
1112
|
+
ref: a,
|
|
1113
|
+
className: A(bn(s, t ?? s), n),
|
|
1114
|
+
...i,
|
|
1115
|
+
children: r
|
|
1116
|
+
})
|
|
1117
|
+
});
|
|
1118
|
+
});
|
|
1119
|
+
xn.displayName = "Elevated";
|
|
1120
|
+
//#endregion
|
|
1121
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/root/SelectRootContext.mjs
|
|
1122
|
+
var Sn = /*#__PURE__*/ Z.createContext(null);
|
|
1123
|
+
process.env.NODE_ENV !== "production" && (Sn.displayName = "SelectRootContext");
|
|
1124
|
+
var Cn = /*#__PURE__*/ Z.createContext(null);
|
|
1125
|
+
process.env.NODE_ENV !== "production" && (Cn.displayName = "SelectFloatingContext");
|
|
1126
|
+
function wn() {
|
|
1127
|
+
let e = Z.useContext(Sn);
|
|
1128
|
+
if (e === null) throw Error(process.env.NODE_ENV === "production" ? oe(60) : "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");
|
|
1129
|
+
return e;
|
|
1130
|
+
}
|
|
1131
|
+
function Tn() {
|
|
1132
|
+
let e = Z.useContext(Cn);
|
|
1133
|
+
if (e === null) throw Error(process.env.NODE_ENV === "production" ? oe(61) : "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.");
|
|
1134
|
+
return e;
|
|
1135
|
+
}
|
|
1136
|
+
//#endregion
|
|
1137
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/labelable-provider/useLabelableId.mjs
|
|
1138
|
+
function En(e = {}) {
|
|
1139
|
+
let { id: t, implicit: n = !1, controlRef: r } = e, { controlId: i, registerControlId: a } = lt(), o = w(t), s = n ? i : void 0, c = N(() => Symbol("labelable-control")), l = Z.useRef(!1), u = Z.useRef(t != null), d = J(() => {
|
|
1140
|
+
!l.current || a === Ee || (l.current = !1, a(c.current, void 0));
|
|
1141
|
+
});
|
|
1142
|
+
return j(() => {
|
|
1143
|
+
if (a === Ee) return;
|
|
1144
|
+
let e;
|
|
1145
|
+
if (n) {
|
|
1146
|
+
let n = r?.current;
|
|
1147
|
+
e = we(n) && n.closest("label") != null ? t ?? null : s ?? o;
|
|
1148
|
+
} else if (t != null) u.current = !0, e = t;
|
|
1149
|
+
else if (u.current) e = o;
|
|
1150
|
+
else {
|
|
1151
|
+
d();
|
|
1152
|
+
return;
|
|
1153
|
+
}
|
|
1154
|
+
if (e === void 0) {
|
|
1155
|
+
d();
|
|
1156
|
+
return;
|
|
1157
|
+
}
|
|
1158
|
+
l.current = !0, a(c.current, e);
|
|
1159
|
+
}, [
|
|
1160
|
+
t,
|
|
1161
|
+
r,
|
|
1162
|
+
s,
|
|
1163
|
+
a,
|
|
1164
|
+
n,
|
|
1165
|
+
o,
|
|
1166
|
+
c,
|
|
1167
|
+
d
|
|
1168
|
+
]), Z.useEffect(() => d, [d]), i ?? o;
|
|
1169
|
+
}
|
|
1170
|
+
//#endregion
|
|
1171
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/itemEquality.mjs
|
|
1172
|
+
var Dn = (e, t) => Object.is(e, t);
|
|
1173
|
+
function On(e, t, n) {
|
|
1174
|
+
return e == null || t == null ? Object.is(e, t) : n(e, t);
|
|
1175
|
+
}
|
|
1176
|
+
function kn(e, t, n) {
|
|
1177
|
+
return !e || e.length === 0 ? !1 : e.some((e) => e === void 0 ? !1 : On(t, e, n));
|
|
1178
|
+
}
|
|
1179
|
+
function An(e, t, n) {
|
|
1180
|
+
return !e || e.length === 0 ? -1 : e.findIndex((e) => e === void 0 ? !1 : On(e, t, n));
|
|
1181
|
+
}
|
|
1182
|
+
function jn(e, t, n) {
|
|
1183
|
+
return e.filter((e) => !On(t, e, n));
|
|
1184
|
+
}
|
|
1185
|
+
//#endregion
|
|
1186
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/serializeValue.mjs
|
|
1187
|
+
function Mn(e) {
|
|
1188
|
+
if (e == null) return "";
|
|
1189
|
+
if (typeof e == "string") return e;
|
|
1190
|
+
try {
|
|
1191
|
+
return JSON.stringify(e);
|
|
1192
|
+
} catch {
|
|
1193
|
+
return String(e);
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
//#endregion
|
|
1197
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/resolveValueLabel.mjs
|
|
1198
|
+
function Nn(e) {
|
|
1199
|
+
return e != null && e.length > 0 && typeof e[0] == "object" && e[0] != null && "items" in e[0];
|
|
1200
|
+
}
|
|
1201
|
+
function Pn(e) {
|
|
1202
|
+
if (!Array.isArray(e)) return e != null && "null" in e;
|
|
1203
|
+
let t = e;
|
|
1204
|
+
if (Nn(t)) {
|
|
1205
|
+
for (let e of t) for (let t of e.items) if (t && t.value == null && t.label != null) return !0;
|
|
1206
|
+
return !1;
|
|
1207
|
+
}
|
|
1208
|
+
for (let e of t) if (e && e.value == null && e.label != null) return !0;
|
|
1209
|
+
return !1;
|
|
1210
|
+
}
|
|
1211
|
+
function Fn(e, t) {
|
|
1212
|
+
if (t && e != null) return t(e) ?? "";
|
|
1213
|
+
if (e && typeof e == "object") {
|
|
1214
|
+
if ("label" in e && e.label != null) return String(e.label);
|
|
1215
|
+
if ("value" in e) return String(e.value);
|
|
1216
|
+
}
|
|
1217
|
+
return Mn(e);
|
|
1218
|
+
}
|
|
1219
|
+
function In(e, t) {
|
|
1220
|
+
return t && e != null ? t(e) ?? "" : e && typeof e == "object" && "value" in e && "label" in e ? Mn(e.value) : Mn(e);
|
|
1221
|
+
}
|
|
1222
|
+
function Ln(e, t, n) {
|
|
1223
|
+
function r() {
|
|
1224
|
+
return Fn(e, n);
|
|
1225
|
+
}
|
|
1226
|
+
if (n && e != null) return n(e);
|
|
1227
|
+
if (e && typeof e == "object" && "label" in e && e.label != null) return e.label;
|
|
1228
|
+
if (t && !Array.isArray(t)) return t[e] ?? r();
|
|
1229
|
+
if (Array.isArray(t)) {
|
|
1230
|
+
let n = t, i = Nn(n) ? n.flatMap((e) => e.items) : n;
|
|
1231
|
+
if (typeof e != "object" || !e) {
|
|
1232
|
+
let t = i.find((t) => t.value === e);
|
|
1233
|
+
return t && t.label != null ? t.label : r();
|
|
1234
|
+
}
|
|
1235
|
+
if ("value" in e) {
|
|
1236
|
+
let t = i.find((t) => t && t.value === e.value);
|
|
1237
|
+
if (t && t.label != null) return t.label;
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
return r();
|
|
1241
|
+
}
|
|
1242
|
+
function Rn(e, t, n) {
|
|
1243
|
+
return e.reduce((e, r, i) => (i > 0 && e.push(", "), e.push(/*#__PURE__*/ (0, Q.jsx)(Z.Fragment, { children: Ln(r, t, n) }, i)), e), []);
|
|
1244
|
+
}
|
|
1245
|
+
//#endregion
|
|
1246
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/store.mjs
|
|
1247
|
+
var $ = {
|
|
1248
|
+
id: Y((e) => e.id),
|
|
1249
|
+
labelId: Y((e) => e.labelId),
|
|
1250
|
+
modal: Y((e) => e.modal),
|
|
1251
|
+
multiple: Y((e) => e.multiple),
|
|
1252
|
+
items: Y((e) => e.items),
|
|
1253
|
+
itemToStringLabel: Y((e) => e.itemToStringLabel),
|
|
1254
|
+
itemToStringValue: Y((e) => e.itemToStringValue),
|
|
1255
|
+
isItemEqualToValue: Y((e) => e.isItemEqualToValue),
|
|
1256
|
+
value: Y((e) => e.value),
|
|
1257
|
+
hasSelectedValue: Y((e) => {
|
|
1258
|
+
let { value: t, multiple: n, itemToStringValue: r } = e;
|
|
1259
|
+
return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 : In(t, r) !== "";
|
|
1260
|
+
}),
|
|
1261
|
+
hasNullItemLabel: Y((e, t) => t ? Pn(e.items) : !1),
|
|
1262
|
+
open: Y((e) => e.open),
|
|
1263
|
+
mounted: Y((e) => e.mounted),
|
|
1264
|
+
forceMount: Y((e) => e.forceMount),
|
|
1265
|
+
transitionStatus: Y((e) => e.transitionStatus),
|
|
1266
|
+
openMethod: Y((e) => e.openMethod),
|
|
1267
|
+
activeIndex: Y((e) => e.activeIndex),
|
|
1268
|
+
selectedIndex: Y((e) => e.selectedIndex),
|
|
1269
|
+
isActive: Y((e, t) => e.activeIndex === t),
|
|
1270
|
+
isSelected: Y((e, t) => {
|
|
1271
|
+
let n = e.isItemEqualToValue, r = e.value;
|
|
1272
|
+
return e.multiple ? Array.isArray(r) && r.some((e) => On(t, e, n)) : On(t, r, n);
|
|
1273
|
+
}),
|
|
1274
|
+
isSelectedByFocus: Y((e, t) => e.selectedIndex === t),
|
|
1275
|
+
popupProps: Y((e) => e.popupProps),
|
|
1276
|
+
triggerProps: Y((e) => e.triggerProps),
|
|
1277
|
+
triggerElement: Y((e) => e.triggerElement),
|
|
1278
|
+
positionerElement: Y((e) => e.positionerElement),
|
|
1279
|
+
listElement: Y((e) => e.listElement),
|
|
1280
|
+
popupSide: Y((e) => e.popupSide),
|
|
1281
|
+
scrollUpArrowVisible: Y((e) => e.scrollUpArrowVisible),
|
|
1282
|
+
scrollDownArrowVisible: Y((e) => e.scrollDownArrowVisible),
|
|
1283
|
+
hasScrollArrows: Y((e) => e.hasScrollArrows)
|
|
1284
|
+
};
|
|
1285
|
+
//#endregion
|
|
1286
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/areArraysEqual.mjs
|
|
1287
|
+
function zn(e, t, n = (e, t) => e === t) {
|
|
1288
|
+
return e.length === t.length && e.every((e, r) => n(e, t[r]));
|
|
1289
|
+
}
|
|
1290
|
+
//#endregion
|
|
1291
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/clamp.mjs
|
|
1292
|
+
function Bn(e, t = -(2 ** 53 - 1), n = 2 ** 53 - 1) {
|
|
1293
|
+
return Math.max(t, Math.min(e, n));
|
|
1294
|
+
}
|
|
1295
|
+
function Vn(e, t) {
|
|
1296
|
+
return Math.max(0, e - t);
|
|
1297
|
+
}
|
|
1298
|
+
function Hn(e, t) {
|
|
1299
|
+
if (t <= 0) return 0;
|
|
1300
|
+
let n = Bn(e, 0, t), r = n, i = t - n, a = r <= 1, o = i <= 1;
|
|
1301
|
+
return a && o ? r <= i ? 0 : t : a ? 0 : o ? t : n;
|
|
1302
|
+
}
|
|
1303
|
+
//#endregion
|
|
1304
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/root/SelectRoot.mjs
|
|
1305
|
+
function Un(e) {
|
|
1306
|
+
let { id: t, value: n, defaultValue: r = null, onValueChange: i, open: a, defaultOpen: o = !1, onOpenChange: s, name: u, form: d, autoComplete: f, disabled: p = !1, readOnly: m = !1, required: h = !1, modal: g = !0, actionsRef: _, inputRef: v, onOpenChangeComplete: y, items: b, multiple: x = !1, itemToStringLabel: ee, itemToStringValue: C, isItemEqualToValue: w = Dn, highlightItemOnHover: T = !0, children: E } = e, { clearErrors: D } = ut(), { setDirty: O, setTouched: k, setFocused: A, validityData: te, setFilled: M, name: ne, disabled: re, validation: ie, validationMode: F } = ct(), I = En({ id: t }), L = re || p, z = ne ?? u, [B, ae] = Qe({
|
|
1307
|
+
controlled: n,
|
|
1308
|
+
default: x ? r ?? he : r,
|
|
1309
|
+
name: "Select",
|
|
1310
|
+
state: "value"
|
|
1311
|
+
}), [V, H] = Qe({
|
|
1312
|
+
controlled: a,
|
|
1313
|
+
default: o,
|
|
1314
|
+
name: "Select",
|
|
1315
|
+
state: "open"
|
|
1316
|
+
}), W = Z.useRef([]), oe = Z.useRef([]), ce = Z.useRef(null), le = Z.useRef(null), ue = Z.useRef(0), de = Z.useRef(null), fe = Z.useRef([]), pe = Z.useRef(!1), me = Z.useRef(null), ge = Z.useRef(null), ve = Z.useRef({
|
|
1317
|
+
allowSelectedMouseUp: !1,
|
|
1318
|
+
allowUnselectedMouseUp: !1,
|
|
1319
|
+
dragY: 0
|
|
1320
|
+
}), ye = Z.useRef(!1), { mounted: xe, setMounted: Se, transitionStatus: Ce } = G(V), { openMethod: we, triggerProps: Te } = sn(V), K = N(() => new se({
|
|
1321
|
+
id: I,
|
|
1322
|
+
labelId: void 0,
|
|
1323
|
+
modal: g,
|
|
1324
|
+
multiple: x,
|
|
1325
|
+
itemToStringLabel: ee,
|
|
1326
|
+
itemToStringValue: C,
|
|
1327
|
+
isItemEqualToValue: w,
|
|
1328
|
+
value: B,
|
|
1329
|
+
open: V,
|
|
1330
|
+
mounted: xe,
|
|
1331
|
+
transitionStatus: Ce,
|
|
1332
|
+
items: b,
|
|
1333
|
+
forceMount: !1,
|
|
1334
|
+
openMethod: null,
|
|
1335
|
+
activeIndex: null,
|
|
1336
|
+
selectedIndex: null,
|
|
1337
|
+
popupProps: {},
|
|
1338
|
+
triggerProps: {},
|
|
1339
|
+
triggerElement: null,
|
|
1340
|
+
positionerElement: null,
|
|
1341
|
+
listElement: null,
|
|
1342
|
+
popupSide: null,
|
|
1343
|
+
scrollUpArrowVisible: !1,
|
|
1344
|
+
scrollDownArrowVisible: !1,
|
|
1345
|
+
hasScrollArrows: !1
|
|
1346
|
+
})).current, Ee = X(K, $.activeIndex), De = X(K, $.selectedIndex), ke = X(K, $.triggerElement), q = X(K, $.positionerElement), Ae = ln(we), je = we ?? Ae ?? null, Ne = Z.useMemo(() => x ? "" : In(B, C), [
|
|
1347
|
+
x,
|
|
1348
|
+
B,
|
|
1349
|
+
C
|
|
1350
|
+
]), Pe = Z.useMemo(() => x && Array.isArray(B) ? B.map((e) => In(e, C)) : In(B, C), [
|
|
1351
|
+
x,
|
|
1352
|
+
B,
|
|
1353
|
+
C
|
|
1354
|
+
]);
|
|
1355
|
+
ot(ze(K.state.triggerElement), I, B, J(() => Pe), !L, u);
|
|
1356
|
+
let Fe = Z.useRef(B), Ie = x ? Array.isArray(B) && B.length > 0 : B != null && In(B, C) !== "";
|
|
1357
|
+
j(() => {
|
|
1358
|
+
B !== Fe.current && K.set("forceMount", !0);
|
|
1359
|
+
}, [K, B]), j(() => {
|
|
1360
|
+
M(Ie);
|
|
1361
|
+
}, [Ie, M]), j(function() {
|
|
1362
|
+
let e = fe.current, t;
|
|
1363
|
+
if (x) {
|
|
1364
|
+
let n = Array.isArray(B) ? B : [];
|
|
1365
|
+
if (n.length === 0) t = null;
|
|
1366
|
+
else {
|
|
1367
|
+
let r = n[n.length - 1], i = An(e, r, w);
|
|
1368
|
+
t = i === -1 ? null : i;
|
|
1369
|
+
}
|
|
1370
|
+
} else {
|
|
1371
|
+
let n = An(e, B, w);
|
|
1372
|
+
t = n === -1 ? null : n;
|
|
1373
|
+
}
|
|
1374
|
+
t === null && (ge.current = null), !V && K.set("selectedIndex", t);
|
|
1375
|
+
}, [
|
|
1376
|
+
Ie,
|
|
1377
|
+
x,
|
|
1378
|
+
V,
|
|
1379
|
+
B,
|
|
1380
|
+
fe,
|
|
1381
|
+
w,
|
|
1382
|
+
K,
|
|
1383
|
+
ge
|
|
1384
|
+
]);
|
|
1385
|
+
function Le(e) {
|
|
1386
|
+
let t = te.initialValue;
|
|
1387
|
+
return Array.isArray(e) && Array.isArray(t) ? !zn(e, t, (e, t) => On(e, t, w)) : e !== t;
|
|
1388
|
+
}
|
|
1389
|
+
st(B, () => {
|
|
1390
|
+
D(z), O(Le(B)), ie.change(B);
|
|
1391
|
+
});
|
|
1392
|
+
let Re = J((e, t) => {
|
|
1393
|
+
s?.(e, t), !t.isCanceled && (H(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (k(!0), A(!1), F === "onBlur" && ie.commit(B)));
|
|
1394
|
+
}), Ve = J(() => {
|
|
1395
|
+
Se(!1), K.update({
|
|
1396
|
+
activeIndex: null,
|
|
1397
|
+
openMethod: null
|
|
1398
|
+
}), y?.(!1);
|
|
1399
|
+
});
|
|
1400
|
+
l({
|
|
1401
|
+
enabled: !_,
|
|
1402
|
+
open: V,
|
|
1403
|
+
ref: ce,
|
|
1404
|
+
onComplete() {
|
|
1405
|
+
V || Ve();
|
|
1406
|
+
}
|
|
1407
|
+
}), Z.useImperativeHandle(_, () => ({ unmount: Ve }), [Ve]);
|
|
1408
|
+
let He = J((e, t) => {
|
|
1409
|
+
i?.(e, t), !t.isCanceled && ae(e);
|
|
1410
|
+
}), Ue = J(() => {
|
|
1411
|
+
let e = K.state.listElement || ce.current;
|
|
1412
|
+
if (!e) return;
|
|
1413
|
+
let t = Vn(e.scrollHeight, e.clientHeight), n = Hn(e.scrollTop, t), r = n > 0, i = n < t;
|
|
1414
|
+
K.state.scrollUpArrowVisible !== r && K.set("scrollUpArrowVisible", r), K.state.scrollDownArrowVisible !== i && K.set("scrollDownArrowVisible", i);
|
|
1415
|
+
}), We = Oe({
|
|
1416
|
+
open: V,
|
|
1417
|
+
onOpenChange: Re,
|
|
1418
|
+
elements: {
|
|
1419
|
+
reference: ke,
|
|
1420
|
+
floating: q
|
|
1421
|
+
}
|
|
1422
|
+
}), Ge = Pt(We, {
|
|
1423
|
+
enabled: !m && !L,
|
|
1424
|
+
event: "mousedown"
|
|
1425
|
+
}), Y = c(We), Ke = Vt(We, {
|
|
1426
|
+
enabled: !m && !L,
|
|
1427
|
+
listRef: W,
|
|
1428
|
+
activeIndex: Ee,
|
|
1429
|
+
selectedIndex: De,
|
|
1430
|
+
disabledIndices: he,
|
|
1431
|
+
onNavigate(e) {
|
|
1432
|
+
e === null && !V || K.set("activeIndex", e);
|
|
1433
|
+
},
|
|
1434
|
+
focusItemOnHover: T
|
|
1435
|
+
}), Je = Ht(We, {
|
|
1436
|
+
enabled: !m && !L && (V || !x),
|
|
1437
|
+
listRef: oe,
|
|
1438
|
+
activeIndex: Ee,
|
|
1439
|
+
selectedIndex: De,
|
|
1440
|
+
disabledIndices: (e) => tt(W.current[e]),
|
|
1441
|
+
onMatch(e) {
|
|
1442
|
+
V ? K.set("activeIndex", e) : He(fe.current[e], S("none"));
|
|
1443
|
+
},
|
|
1444
|
+
onTyping(e) {
|
|
1445
|
+
pe.current = e;
|
|
1446
|
+
}
|
|
1447
|
+
}), Ye = Z.useMemo(() => {
|
|
1448
|
+
let e = qe(Je.reference, Ke.reference, Y.reference, Ge.reference, Te);
|
|
1449
|
+
return I && (e.id = I), e;
|
|
1450
|
+
}, [
|
|
1451
|
+
Ge.reference,
|
|
1452
|
+
Je.reference,
|
|
1453
|
+
Ke.reference,
|
|
1454
|
+
Y.reference,
|
|
1455
|
+
Te,
|
|
1456
|
+
I
|
|
1457
|
+
]), Xe = Z.useMemo(() => qe(Be, Je.floating, Ke.floating, Y.floating), [
|
|
1458
|
+
Je.floating,
|
|
1459
|
+
Ke.floating,
|
|
1460
|
+
Y.floating
|
|
1461
|
+
]), Ze = Ke.item ?? Me;
|
|
1462
|
+
P(() => {
|
|
1463
|
+
K.update({
|
|
1464
|
+
popupProps: Xe,
|
|
1465
|
+
triggerProps: Ye
|
|
1466
|
+
});
|
|
1467
|
+
}), j(() => {
|
|
1468
|
+
K.update({
|
|
1469
|
+
id: I,
|
|
1470
|
+
modal: g,
|
|
1471
|
+
multiple: x,
|
|
1472
|
+
value: B,
|
|
1473
|
+
open: V,
|
|
1474
|
+
mounted: xe,
|
|
1475
|
+
transitionStatus: Ce,
|
|
1476
|
+
popupProps: Xe,
|
|
1477
|
+
triggerProps: Ye,
|
|
1478
|
+
items: b,
|
|
1479
|
+
itemToStringLabel: ee,
|
|
1480
|
+
itemToStringValue: C,
|
|
1481
|
+
isItemEqualToValue: w,
|
|
1482
|
+
openMethod: je
|
|
1483
|
+
});
|
|
1484
|
+
}, [
|
|
1485
|
+
K,
|
|
1486
|
+
I,
|
|
1487
|
+
g,
|
|
1488
|
+
x,
|
|
1489
|
+
B,
|
|
1490
|
+
V,
|
|
1491
|
+
xe,
|
|
1492
|
+
Ce,
|
|
1493
|
+
Xe,
|
|
1494
|
+
Ye,
|
|
1495
|
+
b,
|
|
1496
|
+
ee,
|
|
1497
|
+
C,
|
|
1498
|
+
w,
|
|
1499
|
+
je
|
|
1500
|
+
]);
|
|
1501
|
+
let $e = Z.useMemo(() => ({
|
|
1502
|
+
store: K,
|
|
1503
|
+
name: z,
|
|
1504
|
+
required: h,
|
|
1505
|
+
disabled: L,
|
|
1506
|
+
readOnly: m,
|
|
1507
|
+
multiple: x,
|
|
1508
|
+
highlightItemOnHover: T,
|
|
1509
|
+
setValue: He,
|
|
1510
|
+
setOpen: Re,
|
|
1511
|
+
listRef: W,
|
|
1512
|
+
popupRef: ce,
|
|
1513
|
+
scrollHandlerRef: le,
|
|
1514
|
+
handleScrollArrowVisibility: Ue,
|
|
1515
|
+
scrollArrowsMountedCountRef: ue,
|
|
1516
|
+
itemProps: Ze,
|
|
1517
|
+
valueRef: de,
|
|
1518
|
+
valuesRef: fe,
|
|
1519
|
+
labelsRef: oe,
|
|
1520
|
+
typingRef: pe,
|
|
1521
|
+
selectionRef: ve,
|
|
1522
|
+
firstItemTextRef: me,
|
|
1523
|
+
selectedItemTextRef: ge,
|
|
1524
|
+
validation: ie,
|
|
1525
|
+
onOpenChangeComplete: y,
|
|
1526
|
+
alignItemWithTriggerActiveRef: ye,
|
|
1527
|
+
initialValueRef: Fe
|
|
1528
|
+
}), [
|
|
1529
|
+
K,
|
|
1530
|
+
z,
|
|
1531
|
+
h,
|
|
1532
|
+
L,
|
|
1533
|
+
m,
|
|
1534
|
+
x,
|
|
1535
|
+
T,
|
|
1536
|
+
He,
|
|
1537
|
+
Re,
|
|
1538
|
+
Ze,
|
|
1539
|
+
ie,
|
|
1540
|
+
y,
|
|
1541
|
+
Ue
|
|
1542
|
+
]), et = _e(v, ie.inputRef), nt = x && Array.isArray(B) && B.length > 0, rt = x ? void 0 : z, it = Z.useMemo(() => !x || !Array.isArray(B) || !z ? null : B.map((e) => {
|
|
1543
|
+
let t = In(e, C);
|
|
1544
|
+
return /*#__PURE__*/ (0, Q.jsx)("input", {
|
|
1545
|
+
type: "hidden",
|
|
1546
|
+
form: d,
|
|
1547
|
+
name: z,
|
|
1548
|
+
value: t,
|
|
1549
|
+
disabled: L
|
|
1550
|
+
}, t);
|
|
1551
|
+
}), [
|
|
1552
|
+
x,
|
|
1553
|
+
B,
|
|
1554
|
+
d,
|
|
1555
|
+
z,
|
|
1556
|
+
C,
|
|
1557
|
+
L
|
|
1558
|
+
]);
|
|
1559
|
+
return /*#__PURE__*/ (0, Q.jsx)(Sn.Provider, {
|
|
1560
|
+
value: $e,
|
|
1561
|
+
children: /*#__PURE__*/ (0, Q.jsxs)(Cn.Provider, {
|
|
1562
|
+
value: We,
|
|
1563
|
+
children: [
|
|
1564
|
+
E,
|
|
1565
|
+
/*#__PURE__*/ (0, Q.jsx)("input", {
|
|
1566
|
+
...ie.getValidationProps(L, {
|
|
1567
|
+
onFocus() {
|
|
1568
|
+
K.state.triggerElement?.focus({ focusVisible: !0 });
|
|
1569
|
+
},
|
|
1570
|
+
onChange(e) {
|
|
1571
|
+
if (e.nativeEvent.defaultPrevented || L || m) return;
|
|
1572
|
+
let t = e.currentTarget.value, n = S(R, e.nativeEvent);
|
|
1573
|
+
function r() {
|
|
1574
|
+
if (x) return;
|
|
1575
|
+
let e = t.toLowerCase(), r = fe.current.findIndex((t) => In(t, C).toLowerCase() === e || Fn(t, ee).toLowerCase() === e);
|
|
1576
|
+
r === -1 && (r = fe.current.findIndex((t, n) => {
|
|
1577
|
+
let r = oe.current[n];
|
|
1578
|
+
return r != null && r.toLowerCase() === e;
|
|
1579
|
+
}));
|
|
1580
|
+
let i = r === -1 ? void 0 : fe.current[r];
|
|
1581
|
+
i != null && He(i, n);
|
|
1582
|
+
}
|
|
1583
|
+
K.set("forceMount", !0), queueMicrotask(r);
|
|
1584
|
+
}
|
|
1585
|
+
}),
|
|
1586
|
+
id: I && rt == null ? `${I}-hidden-input` : void 0,
|
|
1587
|
+
form: d,
|
|
1588
|
+
name: rt,
|
|
1589
|
+
autoComplete: f,
|
|
1590
|
+
value: Ne,
|
|
1591
|
+
disabled: L,
|
|
1592
|
+
required: h && !nt,
|
|
1593
|
+
readOnly: m,
|
|
1594
|
+
ref: et,
|
|
1595
|
+
style: z ? U : be,
|
|
1596
|
+
tabIndex: -1,
|
|
1597
|
+
"aria-hidden": !0,
|
|
1598
|
+
suppressHydrationWarning: !0
|
|
1599
|
+
}),
|
|
1600
|
+
it
|
|
1601
|
+
]
|
|
1602
|
+
})
|
|
1603
|
+
});
|
|
1604
|
+
}
|
|
1605
|
+
//#endregion
|
|
1606
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/utils/resolveAriaLabelledBy.mjs
|
|
1607
|
+
function Wn(e, t) {
|
|
1608
|
+
return e ?? t;
|
|
1609
|
+
}
|
|
1610
|
+
//#endregion
|
|
1611
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/trigger/SelectTrigger.mjs
|
|
1612
|
+
var Gn = 2, Kn = 400, qn = {
|
|
1613
|
+
...xe,
|
|
1614
|
+
...at,
|
|
1615
|
+
popupSide: (e) => e ? { "data-popup-side": e } : null,
|
|
1616
|
+
value: () => null
|
|
1617
|
+
}, Jn = /*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
1618
|
+
let { render: n, className: r, id: i, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { setTouched: l, setFocused: u, validationMode: d, state: f, disabled: p } = ct(), { labelId: m } = lt(), { store: h, setOpen: g, selectionRef: _, validation: v, readOnly: y, required: b, alignItemWithTriggerActiveRef: x, disabled: ee } = wn(), C = p || ee || a, w = X(h, $.open), T = X(h, $.mounted), E = X(h, $.value), D = X(h, $.triggerProps), O = X(h, $.positionerElement), k = X(h, $.listElement), A = X(h, $.popupSide), te = X(h, $.id), j = X(h, $.labelId), N = X(h, $.hasSelectedValue), P = T && O ? A : null, ne = i ?? te, re = Wn(m, j);
|
|
1619
|
+
En({ id: ne });
|
|
1620
|
+
let ie = ze(O), F = Z.useRef(null), { getButtonProps: I, buttonRef: L } = H({
|
|
1621
|
+
disabled: C,
|
|
1622
|
+
native: o
|
|
1623
|
+
}), z = J((e) => {
|
|
1624
|
+
h.set("triggerElement", e);
|
|
1625
|
+
}), B = M(), ae = M(), V = M();
|
|
1626
|
+
Z.useEffect(() => {
|
|
1627
|
+
if (w) return V.start(Kn, () => {
|
|
1628
|
+
_.current.allowUnselectedMouseUp = !0, _.current.allowSelectedMouseUp = !0;
|
|
1629
|
+
}), () => {
|
|
1630
|
+
V.clear();
|
|
1631
|
+
};
|
|
1632
|
+
_.current = {
|
|
1633
|
+
allowSelectedMouseUp: !1,
|
|
1634
|
+
allowUnselectedMouseUp: !1,
|
|
1635
|
+
dragY: 0
|
|
1636
|
+
}, ae.clear();
|
|
1637
|
+
}, [
|
|
1638
|
+
w,
|
|
1639
|
+
_,
|
|
1640
|
+
ae,
|
|
1641
|
+
V
|
|
1642
|
+
]);
|
|
1643
|
+
let U = qe(D, {
|
|
1644
|
+
id: ne,
|
|
1645
|
+
role: "combobox",
|
|
1646
|
+
"aria-expanded": w ? "true" : "false",
|
|
1647
|
+
"aria-haspopup": "listbox",
|
|
1648
|
+
"aria-controls": w ? k?.id ?? Ue(O)?.id : void 0,
|
|
1649
|
+
"aria-labelledby": re,
|
|
1650
|
+
"aria-readonly": y || void 0,
|
|
1651
|
+
"aria-required": b || void 0,
|
|
1652
|
+
tabIndex: C ? -1 : 0,
|
|
1653
|
+
onFocus(e) {
|
|
1654
|
+
u(!0), w && x.current && g(!1, S(R, e.nativeEvent)), B.start(0, () => {
|
|
1655
|
+
h.set("forceMount", !0);
|
|
1656
|
+
});
|
|
1657
|
+
},
|
|
1658
|
+
onBlur(e) {
|
|
1659
|
+
K(O, e.relatedTarget) || (l(!0), u(!1), d === "onBlur" && v.commit(E));
|
|
1660
|
+
},
|
|
1661
|
+
onMouseDown(e) {
|
|
1662
|
+
if (w) return;
|
|
1663
|
+
let t = q(e.currentTarget);
|
|
1664
|
+
function n(e) {
|
|
1665
|
+
if (!F.current) return;
|
|
1666
|
+
let t = e.target;
|
|
1667
|
+
if (K(F.current, t) || K(ie.current, t)) return;
|
|
1668
|
+
let n = cn(F.current);
|
|
1669
|
+
e.clientX >= n.left - Gn && e.clientX <= n.right + Gn && e.clientY >= n.top - Gn && e.clientY <= n.bottom + Gn || g(!1, S(Ye, e));
|
|
1670
|
+
}
|
|
1671
|
+
ae.start(0, () => {
|
|
1672
|
+
t.addEventListener("mouseup", n, { once: !0 });
|
|
1673
|
+
});
|
|
1674
|
+
}
|
|
1675
|
+
}, c, I), W = v.getValidationProps(C, U);
|
|
1676
|
+
W.role = "combobox";
|
|
1677
|
+
let oe = {
|
|
1678
|
+
...f,
|
|
1679
|
+
open: w,
|
|
1680
|
+
disabled: C,
|
|
1681
|
+
value: E,
|
|
1682
|
+
readOnly: y,
|
|
1683
|
+
popupSide: P,
|
|
1684
|
+
placeholder: !N
|
|
1685
|
+
};
|
|
1686
|
+
return ue("button", e, {
|
|
1687
|
+
ref: [
|
|
1688
|
+
t,
|
|
1689
|
+
F,
|
|
1690
|
+
L,
|
|
1691
|
+
z
|
|
1692
|
+
],
|
|
1693
|
+
state: oe,
|
|
1694
|
+
stateAttributesMapping: qn,
|
|
1695
|
+
props: W
|
|
1696
|
+
});
|
|
1697
|
+
});
|
|
1698
|
+
process.env.NODE_ENV !== "production" && (Jn.displayName = "SelectTrigger");
|
|
1699
|
+
//#endregion
|
|
1700
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/value/SelectValue.mjs
|
|
1701
|
+
var Yn = { value: () => null }, Xn = /*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
1702
|
+
let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store: c, valueRef: l } = wn(), u = X(c, $.value), d = X(c, $.items), f = X(c, $.itemToStringLabel), p = X(c, $.hasSelectedValue), m = !p && a != null && i == null, h = X(c, $.hasNullItemLabel, m), g = {
|
|
1703
|
+
value: u,
|
|
1704
|
+
placeholder: !p
|
|
1705
|
+
}, _ = null;
|
|
1706
|
+
return _ = typeof i == "function" ? i(u) : i ?? (!p && a != null && !h ? a : Array.isArray(u) ? Rn(u, d, f) : Ln(u, d, f)), ue("span", e, {
|
|
1707
|
+
state: g,
|
|
1708
|
+
ref: [t, l],
|
|
1709
|
+
props: [{ children: _ }, s],
|
|
1710
|
+
stateAttributesMapping: Yn
|
|
1711
|
+
});
|
|
1712
|
+
});
|
|
1713
|
+
process.env.NODE_ENV !== "production" && (Xn.displayName = "SelectValue");
|
|
1714
|
+
//#endregion
|
|
1715
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/portal/SelectPortalContext.mjs
|
|
1716
|
+
var Zn = /*#__PURE__*/ Z.createContext(void 0);
|
|
1717
|
+
process.env.NODE_ENV !== "production" && (Zn.displayName = "SelectPortalContext");
|
|
1718
|
+
//#endregion
|
|
1719
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/portal/SelectPortal.mjs
|
|
1720
|
+
var Qn = /*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
1721
|
+
let { store: n } = wn(), r = X(n, $.mounted), i = X(n, $.forceMount);
|
|
1722
|
+
return r || i ? /*#__PURE__*/ (0, Q.jsx)(Zn.Provider, {
|
|
1723
|
+
value: !0,
|
|
1724
|
+
children: /*#__PURE__*/ (0, Q.jsx)(O, {
|
|
1725
|
+
ref: t,
|
|
1726
|
+
...e
|
|
1727
|
+
})
|
|
1728
|
+
}) : null;
|
|
1729
|
+
});
|
|
1730
|
+
process.env.NODE_ENV !== "production" && (Qn.displayName = "SelectPortal");
|
|
1731
|
+
//#endregion
|
|
1732
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/positioner/SelectPositionerContext.mjs
|
|
1733
|
+
var $n = /*#__PURE__*/ Z.createContext(void 0);
|
|
1734
|
+
process.env.NODE_ENV !== "production" && ($n.displayName = "SelectPositionerContext");
|
|
1735
|
+
function er() {
|
|
1736
|
+
let e = Z.useContext($n);
|
|
1737
|
+
if (!e) throw Error(process.env.NODE_ENV === "production" ? oe(59) : "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");
|
|
1738
|
+
return e;
|
|
1739
|
+
}
|
|
1740
|
+
//#endregion
|
|
1741
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/popup/utils.mjs
|
|
1742
|
+
function tr(e, t) {
|
|
1743
|
+
e && Object.assign(e.style, t);
|
|
1744
|
+
}
|
|
1745
|
+
var nr = {
|
|
1746
|
+
position: "relative",
|
|
1747
|
+
maxHeight: "100%",
|
|
1748
|
+
overflowX: "hidden",
|
|
1749
|
+
overflowY: "auto"
|
|
1750
|
+
}, rr = { position: "fixed" }, ir = /*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
1751
|
+
let { anchor: n, positionMethod: r = "absolute", className: i, render: a, side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: d, arrowPadding: f = 5, sticky: p = !1, disableAnchorTracking: m, alignItemWithTrigger: h = !0, collisionAvoidance: _ = x, style: v, ...y } = e, { store: b, listRef: ee, labelsRef: C, alignItemWithTriggerActiveRef: w, selectedItemTextRef: T, valuesRef: E, initialValueRef: D, popupRef: O, setValue: k } = wn(), A = Tn(), te = X(b, $.open), M = X(b, $.mounted), N = X(b, $.modal), P = X(b, $.value), ne = X(b, $.openMethod), re = X(b, $.positionerElement), ie = X(b, $.triggerElement), F = X(b, $.isItemEqualToValue), I = X(b, $.transitionStatus), L = Z.useRef(null), z = Z.useRef(null), [B, ae] = Z.useState(h), V = M && B && ne !== "touch";
|
|
1752
|
+
!M && B !== h && ae(h), j(() => {
|
|
1753
|
+
M || ($.scrollUpArrowVisible(b.state) && b.set("scrollUpArrowVisible", !1), $.scrollDownArrowVisible(b.state) && b.set("scrollDownArrowVisible", !1));
|
|
1754
|
+
}, [b, M]), Z.useImperativeHandle(w, () => V), rn((V || N) && te, ne === "touch", re, ie);
|
|
1755
|
+
let H = g({
|
|
1756
|
+
anchor: n,
|
|
1757
|
+
floatingRootContext: A,
|
|
1758
|
+
positionMethod: r,
|
|
1759
|
+
mounted: M,
|
|
1760
|
+
side: o,
|
|
1761
|
+
sideOffset: c,
|
|
1762
|
+
align: s,
|
|
1763
|
+
alignOffset: l,
|
|
1764
|
+
arrowPadding: f,
|
|
1765
|
+
collisionBoundary: u,
|
|
1766
|
+
collisionPadding: d,
|
|
1767
|
+
sticky: p,
|
|
1768
|
+
disableAnchorTracking: m ?? V,
|
|
1769
|
+
collisionAvoidance: _,
|
|
1770
|
+
keepMounted: !0
|
|
1771
|
+
}), U = V ? "none" : H.side, W = V ? rr : H.positionerStyles, oe = {
|
|
1772
|
+
open: te,
|
|
1773
|
+
side: U,
|
|
1774
|
+
align: H.align,
|
|
1775
|
+
anchorHidden: H.anchorHidden
|
|
1776
|
+
};
|
|
1777
|
+
j(() => {
|
|
1778
|
+
b.set("popupSide", H.side);
|
|
1779
|
+
}, [b, H.side]);
|
|
1780
|
+
let se = Ne(e, oe, {
|
|
1781
|
+
styles: W,
|
|
1782
|
+
transitionStatus: I,
|
|
1783
|
+
props: y,
|
|
1784
|
+
refs: [t, J((e) => {
|
|
1785
|
+
b.set("positionerElement", e);
|
|
1786
|
+
})],
|
|
1787
|
+
hidden: !M,
|
|
1788
|
+
inert: !te
|
|
1789
|
+
}), ce = Z.useRef(0), le = J((e) => {
|
|
1790
|
+
if (e.size === 0 && ce.current === 0 || E.current.length === 0) return;
|
|
1791
|
+
let t = ce.current;
|
|
1792
|
+
if (ce.current = e.size, e.size === t) return;
|
|
1793
|
+
let n = S(R);
|
|
1794
|
+
if (t !== 0 && !b.state.multiple && P !== null && An(E.current, P, F) === -1) {
|
|
1795
|
+
let e = D.current, t = e != null && An(E.current, e, F) !== -1 ? e : null;
|
|
1796
|
+
k(t, n), t === null && (b.set("selectedIndex", null), T.current = null);
|
|
1797
|
+
}
|
|
1798
|
+
if (t !== 0 && b.state.multiple && Array.isArray(P)) {
|
|
1799
|
+
let e = (e) => An(E.current, e, F) !== -1, t = P.filter((t) => e(t));
|
|
1800
|
+
(t.length !== P.length || t.some((e) => !kn(P, e, F))) && (k(t, n), t.length === 0 && (b.set("selectedIndex", null), T.current = null));
|
|
1801
|
+
}
|
|
1802
|
+
if (te && V) {
|
|
1803
|
+
b.update({
|
|
1804
|
+
scrollUpArrowVisible: !1,
|
|
1805
|
+
scrollDownArrowVisible: !1
|
|
1806
|
+
});
|
|
1807
|
+
let e = { height: "" };
|
|
1808
|
+
tr(re, e), tr(O.current, e);
|
|
1809
|
+
}
|
|
1810
|
+
}), ue = Z.useMemo(() => ({
|
|
1811
|
+
...H,
|
|
1812
|
+
side: U,
|
|
1813
|
+
alignItemWithTriggerActive: V,
|
|
1814
|
+
setControlledAlignItemWithTrigger: ae,
|
|
1815
|
+
scrollUpArrowRef: L,
|
|
1816
|
+
scrollDownArrowRef: z
|
|
1817
|
+
}), [
|
|
1818
|
+
H,
|
|
1819
|
+
U,
|
|
1820
|
+
V,
|
|
1821
|
+
ae
|
|
1822
|
+
]);
|
|
1823
|
+
return /*#__PURE__*/ (0, Q.jsx)(nt, {
|
|
1824
|
+
elementsRef: ee,
|
|
1825
|
+
labelsRef: C,
|
|
1826
|
+
onMapChange: le,
|
|
1827
|
+
children: /*#__PURE__*/ (0, Q.jsxs)($n.Provider, {
|
|
1828
|
+
value: ue,
|
|
1829
|
+
children: [M && N && /*#__PURE__*/ (0, Q.jsx)(Kt, {
|
|
1830
|
+
inert: Gt(!te),
|
|
1831
|
+
cutout: ie
|
|
1832
|
+
}), se]
|
|
1833
|
+
})
|
|
1834
|
+
});
|
|
1835
|
+
});
|
|
1836
|
+
process.env.NODE_ENV !== "production" && (ir.displayName = "SelectPositioner");
|
|
1837
|
+
//#endregion
|
|
1838
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/utils/styles.mjs
|
|
1839
|
+
var ar = "base-ui-disable-scrollbar", or = {
|
|
1840
|
+
className: ar,
|
|
1841
|
+
getElement(e) {
|
|
1842
|
+
return /*#__PURE__*/ (0, Q.jsx)("style", {
|
|
1843
|
+
nonce: e,
|
|
1844
|
+
href: ar,
|
|
1845
|
+
precedence: "base-ui:low",
|
|
1846
|
+
children: `.${ar}{scrollbar-width:none}.${ar}::-webkit-scrollbar{display:none}`
|
|
1847
|
+
});
|
|
1848
|
+
}
|
|
1849
|
+
};
|
|
1850
|
+
process.env.NODE_ENV !== "production" && (or.getElement.displayName = "styleDisableScrollbar.getElement");
|
|
1851
|
+
//#endregion
|
|
1852
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/csp-context/CSPContext.mjs
|
|
1853
|
+
var sr = /*#__PURE__*/ Z.createContext(void 0);
|
|
1854
|
+
process.env.NODE_ENV !== "production" && (sr.displayName = "CSPContext");
|
|
1855
|
+
var cr = { disableStyleElements: !1 };
|
|
1856
|
+
function lr() {
|
|
1857
|
+
return Z.useContext(sr) ?? cr;
|
|
1858
|
+
}
|
|
1859
|
+
//#endregion
|
|
1860
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/popup/SelectPopup.mjs
|
|
1861
|
+
var ur = {
|
|
1862
|
+
...Le,
|
|
1863
|
+
...Ae
|
|
1864
|
+
}, dr = /*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
1865
|
+
let { render: n, className: r, style: i, finalFocus: a, ...o } = e, { store: s, popupRef: c, onOpenChangeComplete: u, setOpen: d, valueRef: f, firstItemTextRef: p, selectedItemTextRef: m, multiple: g, handleScrollArrowVisibility: _, scrollHandlerRef: v, listRef: y, highlightItemOnHover: b } = wn(), { side: x, align: ee, alignItemWithTriggerActive: C, isPositioned: w, setControlledAlignItemWithTrigger: T } = er(), E = Wt(!0) != null, O = Tn(), k = I(), { nonce: A, disableStyleElements: te } = lr(), M = X(s, $.id), N = X(s, $.open), P = X(s, $.openMethod), ne = X(s, $.mounted), re = X(s, $.popupProps), ie = X(s, $.transitionStatus), F = X(s, $.triggerElement), L = X(s, $.positionerElement), R = X(s, $.listElement), z = Z.useRef(!1), ae = Z.useRef(!1), V = Z.useRef({}), H = Se(), U = J((e) => {
|
|
1866
|
+
if (!L || !c.current || !ae.current) return;
|
|
1867
|
+
if (z.current || !C) {
|
|
1868
|
+
_();
|
|
1869
|
+
return;
|
|
1870
|
+
}
|
|
1871
|
+
let t = L.style.top === "0px", n = L.style.bottom === "0px";
|
|
1872
|
+
if (!t && !n) {
|
|
1873
|
+
_();
|
|
1874
|
+
return;
|
|
1875
|
+
}
|
|
1876
|
+
let r = mr(L), i = hr(L.getBoundingClientRect().height, "y", r), a = q(L), o = D(L), s = o.getComputedStyle(L), l = parseFloat(s.marginTop), u = parseFloat(s.marginBottom), d = fr(o.getComputedStyle(c.current)), f = Math.min(a.documentElement.clientHeight - l - u, d), p = e.scrollTop, m = pr(e), h = 0, g = null, v = !1, y = !1, b = (e) => {
|
|
1877
|
+
L.style.height = `${e}px`;
|
|
1878
|
+
}, x = (t, n) => {
|
|
1879
|
+
let r = Bn(t, 0, f - i);
|
|
1880
|
+
r > 0 && b(i + r), e.scrollTop = n, f - (i + r) <= 1 && (z.current = !0), _();
|
|
1881
|
+
}, S = t ? m - p : p, ee = Math.min(i + S, f);
|
|
1882
|
+
if (h = ee, S <= 1) {
|
|
1883
|
+
x(S, t ? m : 0);
|
|
1884
|
+
return;
|
|
1885
|
+
}
|
|
1886
|
+
if (f - ee > 1 ? t ? y = !0 : g = 0 : (v = !0, n && p < m && (g = p - (S - (i + S - f)))), h = Math.ceil(h), h !== 0 && b(h), y || g != null) {
|
|
1887
|
+
let t = pr(e), n = y ? t : Bn(g, 0, t);
|
|
1888
|
+
Math.abs(e.scrollTop - n) > 1 && (e.scrollTop = n);
|
|
1889
|
+
}
|
|
1890
|
+
(v || h >= f - 1) && (z.current = !0), _();
|
|
1891
|
+
});
|
|
1892
|
+
Z.useImperativeHandle(v, () => U, [U]), l({
|
|
1893
|
+
open: N,
|
|
1894
|
+
ref: c,
|
|
1895
|
+
onComplete() {
|
|
1896
|
+
N && u?.(!0);
|
|
1897
|
+
}
|
|
1898
|
+
});
|
|
1899
|
+
let W = {
|
|
1900
|
+
open: N,
|
|
1901
|
+
transitionStatus: ie,
|
|
1902
|
+
side: x,
|
|
1903
|
+
align: ee
|
|
1904
|
+
};
|
|
1905
|
+
j(() => {
|
|
1906
|
+
!L || !c.current || Object.keys(V.current).length || (V.current = {
|
|
1907
|
+
top: L.style.top || "0",
|
|
1908
|
+
left: L.style.left || "0",
|
|
1909
|
+
right: L.style.right,
|
|
1910
|
+
height: L.style.height,
|
|
1911
|
+
bottom: L.style.bottom,
|
|
1912
|
+
minHeight: L.style.minHeight,
|
|
1913
|
+
maxHeight: L.style.maxHeight,
|
|
1914
|
+
marginTop: L.style.marginTop,
|
|
1915
|
+
marginBottom: L.style.marginBottom
|
|
1916
|
+
});
|
|
1917
|
+
}, [c, L]), j(() => {
|
|
1918
|
+
N || C || (ae.current = !1, z.current = !1, tr(L, V.current));
|
|
1919
|
+
}, [
|
|
1920
|
+
N,
|
|
1921
|
+
C,
|
|
1922
|
+
L,
|
|
1923
|
+
c
|
|
1924
|
+
]), j(() => {
|
|
1925
|
+
let e = c.current;
|
|
1926
|
+
if (!N || !F || !L || !e || C && !w || s.state.transitionStatus === "ending") return;
|
|
1927
|
+
if (!C) {
|
|
1928
|
+
ae.current = !0, H.request(_), e.style.removeProperty("--transform-origin");
|
|
1929
|
+
return;
|
|
1930
|
+
}
|
|
1931
|
+
let t = vr(e);
|
|
1932
|
+
e.style.removeProperty("--transform-origin");
|
|
1933
|
+
try {
|
|
1934
|
+
let t = m.current;
|
|
1935
|
+
t?.isConnected || (t = !$.hasSelectedValue(s.state) && p.current?.isConnected ? p.current : null);
|
|
1936
|
+
let n = f.current, r = D(L), i = r.getComputedStyle(L), a = r.getComputedStyle(e), o = q(F), c = mr(F), l = gr(F.getBoundingClientRect(), c), u = gr(L.getBoundingClientRect(), c), d = l.height, g = R || e, v = g.scrollHeight, x = parseFloat(a.borderBottomWidth), S = parseFloat(i.marginTop) || 10, ee = parseFloat(i.marginBottom) || 10, C = parseFloat(i.minHeight) || 100, w = fr(a), E = o.documentElement.clientHeight - S - ee, O = o.documentElement.clientWidth, A = E - l.bottom + d, te, j = k === "rtl" ? l.right - u.width : l.left, M = 0;
|
|
1937
|
+
if (t && n) {
|
|
1938
|
+
let e = gr(n.getBoundingClientRect(), c);
|
|
1939
|
+
te = gr(t.getBoundingClientRect(), c), j = u.left + (k === "rtl" ? e.right - te.right : e.left - te.left);
|
|
1940
|
+
let r = e.top - l.top + e.height / 2;
|
|
1941
|
+
M = te.top - u.top + te.height / 2 - r;
|
|
1942
|
+
}
|
|
1943
|
+
let N = A + M + ee + x, P = Math.min(E, N), ne = E - S - ee, re = N - P, ie = O - 5;
|
|
1944
|
+
L.style.left = `${Bn(j, 5, ie - u.width)}px`, L.style.height = `${P}px`, L.style.maxHeight = "none", L.style.marginTop = `${S}px`, L.style.marginBottom = `${ee}px`, e.style.height = "100%";
|
|
1945
|
+
let I = pr(g), B = re >= I - 1;
|
|
1946
|
+
B && (P = Math.min(E, u.height) - (re - I));
|
|
1947
|
+
let H = l.top < 20 || l.bottom > E - 20 || Math.ceil(P) + 1 < Math.min(v, C), U = (r.visualViewport?.scale ?? 1) !== 1 && h;
|
|
1948
|
+
if (H || U) {
|
|
1949
|
+
ae.current = !0, tr(L, V.current), T(!1);
|
|
1950
|
+
return;
|
|
1951
|
+
}
|
|
1952
|
+
let W = Math.max(C, P);
|
|
1953
|
+
if (B) {
|
|
1954
|
+
let e = Math.max(0, E - N);
|
|
1955
|
+
L.style.top = u.height >= ne ? "0" : `${e}px`, L.style.height = `${P}px`, g.scrollTop = pr(g);
|
|
1956
|
+
} else L.style.bottom = "0", g.scrollTop = re;
|
|
1957
|
+
if (te) {
|
|
1958
|
+
let t = u.top, n = u.height, r = te.top + te.height / 2, i = Bn(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
|
|
1959
|
+
e.style.setProperty("--transform-origin", `50% ${i}%`);
|
|
1960
|
+
}
|
|
1961
|
+
(W === E || P >= w) && (z.current = !0), _(), b && s.state.selectedIndex === null && s.state.activeIndex === null && y.current[0] != null && s.set("activeIndex", 0), ae.current = !0;
|
|
1962
|
+
} finally {
|
|
1963
|
+
t();
|
|
1964
|
+
}
|
|
1965
|
+
}, [
|
|
1966
|
+
s,
|
|
1967
|
+
N,
|
|
1968
|
+
L,
|
|
1969
|
+
F,
|
|
1970
|
+
f,
|
|
1971
|
+
p,
|
|
1972
|
+
m,
|
|
1973
|
+
c,
|
|
1974
|
+
_,
|
|
1975
|
+
C,
|
|
1976
|
+
T,
|
|
1977
|
+
H,
|
|
1978
|
+
R,
|
|
1979
|
+
y,
|
|
1980
|
+
b,
|
|
1981
|
+
k,
|
|
1982
|
+
w
|
|
1983
|
+
]), Z.useEffect(() => {
|
|
1984
|
+
if (!C || !L || !N) return;
|
|
1985
|
+
let e = D(L);
|
|
1986
|
+
function t(e) {
|
|
1987
|
+
d(!1, S(He, e));
|
|
1988
|
+
}
|
|
1989
|
+
return Te(e, "resize", t);
|
|
1990
|
+
}, [
|
|
1991
|
+
d,
|
|
1992
|
+
C,
|
|
1993
|
+
L,
|
|
1994
|
+
N
|
|
1995
|
+
]);
|
|
1996
|
+
let oe = {
|
|
1997
|
+
...R ? {
|
|
1998
|
+
role: "presentation",
|
|
1999
|
+
"aria-orientation": void 0
|
|
2000
|
+
} : {
|
|
2001
|
+
role: "listbox",
|
|
2002
|
+
"aria-multiselectable": g || void 0,
|
|
2003
|
+
id: `${M}-list`
|
|
2004
|
+
},
|
|
2005
|
+
onKeyDown(e) {
|
|
2006
|
+
E && et.has(e.key) && e.stopPropagation();
|
|
2007
|
+
},
|
|
2008
|
+
onScroll(e) {
|
|
2009
|
+
R || U(e.currentTarget);
|
|
2010
|
+
},
|
|
2011
|
+
...C && { style: R ? { height: "100%" } : nr }
|
|
2012
|
+
}, se = ue("div", e, {
|
|
2013
|
+
ref: [t, c],
|
|
2014
|
+
state: W,
|
|
2015
|
+
stateAttributesMapping: ur,
|
|
2016
|
+
props: [
|
|
2017
|
+
re,
|
|
2018
|
+
oe,
|
|
2019
|
+
B(ie),
|
|
2020
|
+
{ className: !R && C ? or.className : void 0 },
|
|
2021
|
+
o
|
|
2022
|
+
]
|
|
2023
|
+
});
|
|
2024
|
+
return /*#__PURE__*/ (0, Q.jsxs)(Z.Fragment, { children: [!te && or.getElement(A), /*#__PURE__*/ (0, Q.jsx)(Nt, {
|
|
2025
|
+
context: O,
|
|
2026
|
+
modal: !1,
|
|
2027
|
+
disabled: !ne,
|
|
2028
|
+
openInteractionType: P,
|
|
2029
|
+
returnFocus: a,
|
|
2030
|
+
restoreFocus: !0,
|
|
2031
|
+
children: se
|
|
2032
|
+
})] });
|
|
2033
|
+
});
|
|
2034
|
+
process.env.NODE_ENV !== "production" && (dr.displayName = "SelectPopup");
|
|
2035
|
+
function fr(e) {
|
|
2036
|
+
let t = e.maxHeight || "";
|
|
2037
|
+
return t.endsWith("px") && parseFloat(t) || Infinity;
|
|
2038
|
+
}
|
|
2039
|
+
function pr(e) {
|
|
2040
|
+
return Vn(e.scrollHeight, e.clientHeight);
|
|
2041
|
+
}
|
|
2042
|
+
function mr(e) {
|
|
2043
|
+
return d.getScale(e);
|
|
2044
|
+
}
|
|
2045
|
+
function hr(e, t, n) {
|
|
2046
|
+
return e / n[t];
|
|
2047
|
+
}
|
|
2048
|
+
function gr(e, t) {
|
|
2049
|
+
return De({
|
|
2050
|
+
x: hr(e.x, "x", t),
|
|
2051
|
+
y: hr(e.y, "y", t),
|
|
2052
|
+
width: hr(e.width, "x", t),
|
|
2053
|
+
height: hr(e.height, "y", t)
|
|
2054
|
+
});
|
|
2055
|
+
}
|
|
2056
|
+
var _r = [
|
|
2057
|
+
["transform", "none"],
|
|
2058
|
+
["scale", "1"],
|
|
2059
|
+
["translate", "0 0"]
|
|
2060
|
+
];
|
|
2061
|
+
function vr(e) {
|
|
2062
|
+
let { style: t } = e, n = {};
|
|
2063
|
+
for (let [e, r] of _r) n[e] = t.getPropertyValue(e), t.setProperty(e, r, "important");
|
|
2064
|
+
return () => {
|
|
2065
|
+
for (let [e] of _r) {
|
|
2066
|
+
let r = n[e];
|
|
2067
|
+
r ? t.setProperty(e, r) : t.removeProperty(e);
|
|
2068
|
+
}
|
|
2069
|
+
};
|
|
2070
|
+
}
|
|
2071
|
+
//#endregion
|
|
2072
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/item/SelectItemContext.mjs
|
|
2073
|
+
var yr = /*#__PURE__*/ Z.createContext(void 0);
|
|
2074
|
+
process.env.NODE_ENV !== "production" && (yr.displayName = "SelectItemContext");
|
|
2075
|
+
function br() {
|
|
2076
|
+
let e = Z.useContext(yr);
|
|
2077
|
+
if (!e) throw Error(process.env.NODE_ENV === "production" ? oe(57) : "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.");
|
|
2078
|
+
return e;
|
|
2079
|
+
}
|
|
2080
|
+
//#endregion
|
|
2081
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/item/SelectItem.mjs
|
|
2082
|
+
var xr = /*#__PURE__*/ Z.memo(/*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
2083
|
+
let { render: n, className: r, style: i, value: a = null, label: o, disabled: s = !1, nativeButton: c = !1, ...l } = e, u = Z.useRef(null), d = $e({
|
|
2084
|
+
label: o,
|
|
2085
|
+
textRef: u,
|
|
2086
|
+
indexGuessBehavior: it.GuessFromOrder
|
|
2087
|
+
}), { store: f, itemProps: p, setOpen: m, setValue: h, selectionRef: g, typingRef: _, valuesRef: y, multiple: b, selectedItemTextRef: x, disabled: ee, readOnly: C } = wn(), w = X(f, $.isActive, d.index), T = X(f, $.open), E = X(f, $.isSelected, a), D = X(f, $.isSelectedByFocus, d.index), O = X(f, $.isItemEqualToValue), k = d.index, A = k !== -1, te = Z.useRef(null);
|
|
2088
|
+
j(() => {
|
|
2089
|
+
if (!A) return;
|
|
2090
|
+
let e = y.current;
|
|
2091
|
+
return e[k] = a, () => {
|
|
2092
|
+
delete e[k];
|
|
2093
|
+
};
|
|
2094
|
+
}, [
|
|
2095
|
+
A,
|
|
2096
|
+
k,
|
|
2097
|
+
a,
|
|
2098
|
+
y
|
|
2099
|
+
]), j(() => {
|
|
2100
|
+
if (!A) return;
|
|
2101
|
+
let e = f.state.value, t = e;
|
|
2102
|
+
b && Array.isArray(e) && (t = e.length > 0 ? e[e.length - 1] : void 0), t !== void 0 && On(a, t, O) && (f.set("selectedIndex", k), u.current && (x.current = u.current));
|
|
2103
|
+
}, [
|
|
2104
|
+
A,
|
|
2105
|
+
k,
|
|
2106
|
+
b,
|
|
2107
|
+
O,
|
|
2108
|
+
f,
|
|
2109
|
+
a,
|
|
2110
|
+
x
|
|
2111
|
+
]);
|
|
2112
|
+
let M = Z.useRef(null), N = Z.useRef("mouse"), P = Z.useRef(!1), { getButtonProps: ne, buttonRef: re } = H({
|
|
2113
|
+
disabled: s,
|
|
2114
|
+
focusableWhenDisabled: !0,
|
|
2115
|
+
native: c,
|
|
2116
|
+
composite: !0
|
|
2117
|
+
}), ie = {
|
|
2118
|
+
disabled: s,
|
|
2119
|
+
selected: E,
|
|
2120
|
+
highlighted: w
|
|
2121
|
+
};
|
|
2122
|
+
function F(e) {
|
|
2123
|
+
if (ee || C) return;
|
|
2124
|
+
let t = f.state.value;
|
|
2125
|
+
if (b) {
|
|
2126
|
+
let n = Array.isArray(t) ? t : [];
|
|
2127
|
+
h(E ? jn(n, a, O) : [...n, a], S(v, e));
|
|
2128
|
+
} else h(a, S(v, e)), m(!1, S(v, e));
|
|
2129
|
+
}
|
|
2130
|
+
function I() {
|
|
2131
|
+
g.current.dragY = 0;
|
|
2132
|
+
}
|
|
2133
|
+
let L = {
|
|
2134
|
+
role: "option",
|
|
2135
|
+
"aria-selected": E,
|
|
2136
|
+
tabIndex: T && w ? 0 : -1,
|
|
2137
|
+
onKeyDown(e) {
|
|
2138
|
+
M.current = e.key, f.set("activeIndex", k), e.key === " " && _.current && e.preventDefault();
|
|
2139
|
+
},
|
|
2140
|
+
onClick(e) {
|
|
2141
|
+
let t = e.type === "click" && N.current !== "touch", n = e.nativeEvent.pointerType, r = t && Ke(e.nativeEvent) && (n !== void 0 || w), i = t && !r && !P.current;
|
|
2142
|
+
P.current = !1, !(e.type === "keydown" && M.current === null) && (s || e.type === "keydown" && M.current === " " && _.current || i || (M.current = null, F(e.nativeEvent)));
|
|
2143
|
+
},
|
|
2144
|
+
onPointerEnter(e) {
|
|
2145
|
+
N.current = e.pointerType;
|
|
2146
|
+
},
|
|
2147
|
+
onPointerMove(e) {
|
|
2148
|
+
if (e.pointerType === "mouse" && e.buttons === 1) {
|
|
2149
|
+
let t = g.current;
|
|
2150
|
+
t.dragY += e.movementY, t.dragY ** 2 >= 64 && (t.allowUnselectedMouseUp = !0);
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
onPointerDown(e) {
|
|
2154
|
+
N.current = e.pointerType, P.current = !0, I();
|
|
2155
|
+
},
|
|
2156
|
+
onMouseUp() {
|
|
2157
|
+
if (I(), s || N.current === "touch" || P.current) return;
|
|
2158
|
+
let e = !g.current.allowSelectedMouseUp && E, t = !g.current.allowUnselectedMouseUp && !E;
|
|
2159
|
+
e || t || (P.current = !0, te.current?.click(), P.current = !1);
|
|
2160
|
+
}
|
|
2161
|
+
}, R = ue("div", e, {
|
|
2162
|
+
ref: [
|
|
2163
|
+
re,
|
|
2164
|
+
t,
|
|
2165
|
+
d.ref,
|
|
2166
|
+
te
|
|
2167
|
+
],
|
|
2168
|
+
state: ie,
|
|
2169
|
+
props: [
|
|
2170
|
+
p,
|
|
2171
|
+
L,
|
|
2172
|
+
l,
|
|
2173
|
+
ne
|
|
2174
|
+
]
|
|
2175
|
+
}), z = Z.useMemo(() => ({
|
|
2176
|
+
selected: E,
|
|
2177
|
+
index: k,
|
|
2178
|
+
textRef: u,
|
|
2179
|
+
selectedByFocus: D,
|
|
2180
|
+
hasRegistered: A
|
|
2181
|
+
}), [
|
|
2182
|
+
E,
|
|
2183
|
+
k,
|
|
2184
|
+
u,
|
|
2185
|
+
D,
|
|
2186
|
+
A
|
|
2187
|
+
]);
|
|
2188
|
+
return /*#__PURE__*/ (0, Q.jsx)(yr.Provider, {
|
|
2189
|
+
value: z,
|
|
2190
|
+
children: R
|
|
2191
|
+
});
|
|
2192
|
+
}));
|
|
2193
|
+
process.env.NODE_ENV !== "production" && (xr.displayName = "SelectItem");
|
|
2194
|
+
//#endregion
|
|
2195
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/select/item-text/SelectItemText.mjs
|
|
2196
|
+
var Sr = /*#__PURE__*/ Z.memo(/*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
2197
|
+
let { index: n, textRef: r, selectedByFocus: i, hasRegistered: a } = br(), { firstItemTextRef: o, selectedItemTextRef: s } = wn(), { render: c, className: l, style: u, ...d } = e;
|
|
2198
|
+
return ue("div", e, {
|
|
2199
|
+
ref: [
|
|
2200
|
+
Z.useCallback((e) => {
|
|
2201
|
+
e && (a && n === 0 && (o.current = e), a && i && (s.current = e));
|
|
2202
|
+
}, [
|
|
2203
|
+
o,
|
|
2204
|
+
s,
|
|
2205
|
+
n,
|
|
2206
|
+
i,
|
|
2207
|
+
a
|
|
2208
|
+
]),
|
|
2209
|
+
t,
|
|
2210
|
+
r
|
|
2211
|
+
],
|
|
2212
|
+
props: d
|
|
2213
|
+
});
|
|
2214
|
+
}));
|
|
2215
|
+
process.env.NODE_ENV !== "production" && (Sr.displayName = "SelectItemText");
|
|
2216
|
+
//#endregion
|
|
2217
|
+
//#region src/client/components/ui/select.tsx
|
|
2218
|
+
var Cr = (0, Z.createContext)(null);
|
|
2219
|
+
function wr() {
|
|
2220
|
+
let e = (0, Z.useContext)(Cr);
|
|
2221
|
+
if (!e) throw Error("Select compound components must be inside <Select>");
|
|
2222
|
+
return e;
|
|
2223
|
+
}
|
|
2224
|
+
var Tr = (0, Z.createContext)(null);
|
|
2225
|
+
function Er(e, t = []) {
|
|
2226
|
+
return Z.Children.forEach(e, (e) => {
|
|
2227
|
+
if (!(0, Z.isValidElement)(e)) return;
|
|
2228
|
+
let n = e.props;
|
|
2229
|
+
typeof n.value == "string" ? t.push({
|
|
2230
|
+
value: n.value,
|
|
2231
|
+
label: n.label ?? (typeof n.children == "string" ? n.children : n.value)
|
|
2232
|
+
}) : n.children && Er(n.children, t);
|
|
2233
|
+
}), t;
|
|
2234
|
+
}
|
|
2235
|
+
function Dr({ children: e, value: t, defaultValue: n, onValueChange: r, disabled: i = !1, name: a, required: o }) {
|
|
2236
|
+
let [s, c] = (0, Z.useState)(n ?? ""), [l, u] = (0, Z.useState)(!1), d = (0, Z.useRef)(null), f = t === void 0 ? s : t, p = (0, Z.useMemo)(() => Er(e), [e]), m = (0, Z.useCallback)((e) => {
|
|
2237
|
+
let n = e ?? "";
|
|
2238
|
+
t === void 0 && c(n), r?.(n);
|
|
2239
|
+
}, [t, r]), h = (0, Z.useMemo)(() => ({
|
|
2240
|
+
value: f,
|
|
2241
|
+
open: l,
|
|
2242
|
+
actionsRef: d
|
|
2243
|
+
}), [f, l]);
|
|
2244
|
+
return /* @__PURE__ */ (0, Q.jsx)(Cr.Provider, {
|
|
2245
|
+
value: h,
|
|
2246
|
+
children: /* @__PURE__ */ (0, Q.jsx)(Un, {
|
|
2247
|
+
value: f === "" ? null : f,
|
|
2248
|
+
onValueChange: m,
|
|
2249
|
+
open: l,
|
|
2250
|
+
onOpenChange: u,
|
|
2251
|
+
actionsRef: d,
|
|
2252
|
+
items: p,
|
|
2253
|
+
disabled: i,
|
|
2254
|
+
name: a,
|
|
2255
|
+
required: o,
|
|
2256
|
+
modal: !1,
|
|
2257
|
+
children: e
|
|
2258
|
+
})
|
|
2259
|
+
});
|
|
2260
|
+
}
|
|
2261
|
+
Dr.displayName = "Select";
|
|
2262
|
+
var Or = Xe([
|
|
2263
|
+
"group inline-flex items-center justify-between gap-2 outline-none cursor-pointer",
|
|
2264
|
+
"text-[13px] h-9 px-3 min-w-[160px]",
|
|
2265
|
+
"transition-all duration-80",
|
|
2266
|
+
"disabled:opacity-50 disabled:pointer-events-none",
|
|
2267
|
+
"focus-visible:ring-1 focus-visible:ring-[color:var(--focus-ring,#6B97FF)]"
|
|
2268
|
+
], {
|
|
2269
|
+
variants: { variant: {
|
|
2270
|
+
bordered: "border border-border bg-transparent text-foreground hover:bg-hover",
|
|
2271
|
+
borderless: "border border-transparent bg-transparent text-foreground hover:bg-hover"
|
|
2272
|
+
} },
|
|
2273
|
+
defaultVariants: { variant: "bordered" }
|
|
2274
|
+
}), kr = (0, Z.forwardRef)(({ className: e, variant: t, icon: n, leading: r, placeholder: i = "Select…", error: a, ...o }, s) => {
|
|
2275
|
+
let c = b();
|
|
2276
|
+
return /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
2277
|
+
className: "flex flex-col gap-1",
|
|
2278
|
+
children: [/* @__PURE__ */ (0, Q.jsxs)(Jn, {
|
|
2279
|
+
ref: s,
|
|
2280
|
+
"aria-invalid": !!a || void 0,
|
|
2281
|
+
className: A(Or({ variant: t }), c.input, a && "border-destructive/50 hover:border-destructive/50", e),
|
|
2282
|
+
...o,
|
|
2283
|
+
children: [/* @__PURE__ */ (0, Q.jsxs)("span", {
|
|
2284
|
+
className: "flex items-center gap-2 min-w-0 flex-1",
|
|
2285
|
+
children: [
|
|
2286
|
+
r,
|
|
2287
|
+
!r && n && /* @__PURE__ */ (0, Q.jsx)(n, {
|
|
2288
|
+
size: 16,
|
|
2289
|
+
strokeWidth: 1.5,
|
|
2290
|
+
className: "shrink-0 text-muted-foreground transition-[color,stroke-width] duration-80 group-hover:text-foreground group-hover:stroke-[2]"
|
|
2291
|
+
}),
|
|
2292
|
+
/* @__PURE__ */ (0, Q.jsx)(Xn, {
|
|
2293
|
+
placeholder: i,
|
|
2294
|
+
className: "min-w-0 flex-1 text-left truncate [text-box:trim-both_cap_alphabetic] py-1 -my-1 data-[placeholder]:text-muted-foreground"
|
|
2295
|
+
})
|
|
2296
|
+
]
|
|
2297
|
+
}), /* @__PURE__ */ (0, Q.jsx)("svg", {
|
|
2298
|
+
width: 16,
|
|
2299
|
+
height: 16,
|
|
2300
|
+
viewBox: "0 0 24 24",
|
|
2301
|
+
fill: "none",
|
|
2302
|
+
stroke: "currentColor",
|
|
2303
|
+
strokeWidth: 2,
|
|
2304
|
+
strokeLinecap: "round",
|
|
2305
|
+
strokeLinejoin: "round",
|
|
2306
|
+
className: "shrink-0 text-muted-foreground transition-colors duration-80 group-hover:text-foreground",
|
|
2307
|
+
children: /* @__PURE__ */ (0, Q.jsx)("path", { d: "M6 9l6 6 6-6" })
|
|
2308
|
+
})]
|
|
2309
|
+
}), a && /* @__PURE__ */ (0, Q.jsx)("span", {
|
|
2310
|
+
className: "text-[12px] text-destructive pl-3",
|
|
2311
|
+
children: a
|
|
2312
|
+
})]
|
|
2313
|
+
});
|
|
2314
|
+
});
|
|
2315
|
+
kr.displayName = "SelectTrigger";
|
|
2316
|
+
var Ar = (0, Z.forwardRef)(({ className: e, children: t }, n) => {
|
|
2317
|
+
let { open: r, value: i, actionsRef: a } = wr(), o = b(), s = (0, Z.useRef)(null), { activeIndex: c, setActiveIndex: l, itemRects: u, sessionRef: d, handlers: f, registerItem: p, measureItems: m } = mn(s), [h, g] = (0, Z.useState)(null), [_, v] = (0, Z.useState)(void 0);
|
|
2318
|
+
(0, Z.useEffect)(() => {
|
|
2319
|
+
if (r) return;
|
|
2320
|
+
let e = setTimeout(() => a.current?.unmount(), ke(Re.fast));
|
|
2321
|
+
return () => clearTimeout(e);
|
|
2322
|
+
}, [r, a]), (0, Z.useEffect)(() => {
|
|
2323
|
+
if (!r) return;
|
|
2324
|
+
let e, t = requestAnimationFrame(() => {
|
|
2325
|
+
e = requestAnimationFrame(() => {
|
|
2326
|
+
m();
|
|
2327
|
+
let e = s.current;
|
|
2328
|
+
if (e) {
|
|
2329
|
+
let t = Array.from(e.querySelectorAll("[data-proximity-index]")).findIndex((e) => e.getAttribute("data-value") === i);
|
|
2330
|
+
v(t === -1 ? void 0 : t);
|
|
2331
|
+
}
|
|
2332
|
+
});
|
|
2333
|
+
});
|
|
2334
|
+
return () => {
|
|
2335
|
+
cancelAnimationFrame(t), cancelAnimationFrame(e);
|
|
2336
|
+
};
|
|
2337
|
+
}, [
|
|
2338
|
+
r,
|
|
2339
|
+
m,
|
|
2340
|
+
i
|
|
2341
|
+
]);
|
|
2342
|
+
let y = c === null ? null : u[c], x = _ == null ? null : u[_], S = h === null ? null : u[h], ee = c !== null && c !== _, C = (0, Z.useMemo)(() => ({
|
|
2343
|
+
registerItem: p,
|
|
2344
|
+
activeIndex: c,
|
|
2345
|
+
checkedIndex: _
|
|
2346
|
+
}), [
|
|
2347
|
+
p,
|
|
2348
|
+
c,
|
|
2349
|
+
_
|
|
2350
|
+
]);
|
|
2351
|
+
return /* @__PURE__ */ (0, Q.jsx)(Qn, { children: /* @__PURE__ */ (0, Q.jsx)(ir, {
|
|
2352
|
+
side: "bottom",
|
|
2353
|
+
align: "start",
|
|
2354
|
+
sideOffset: 6,
|
|
2355
|
+
alignItemWithTrigger: !1,
|
|
2356
|
+
className: "z-50 outline-none",
|
|
2357
|
+
children: /* @__PURE__ */ (0, Q.jsx)(pe.div, {
|
|
2358
|
+
initial: {
|
|
2359
|
+
opacity: 0,
|
|
2360
|
+
y: -4,
|
|
2361
|
+
scaleY: .96
|
|
2362
|
+
},
|
|
2363
|
+
animate: r ? {
|
|
2364
|
+
opacity: 1,
|
|
2365
|
+
y: 0,
|
|
2366
|
+
scaleY: 1
|
|
2367
|
+
} : {
|
|
2368
|
+
opacity: 0,
|
|
2369
|
+
y: -4,
|
|
2370
|
+
scaleY: .96
|
|
2371
|
+
},
|
|
2372
|
+
transition: r ? Re.fast : Re.fast.exit,
|
|
2373
|
+
style: { transformOrigin: "top center" },
|
|
2374
|
+
onAnimationComplete: () => {
|
|
2375
|
+
r || a.current?.unmount();
|
|
2376
|
+
},
|
|
2377
|
+
children: /* @__PURE__ */ (0, Q.jsx)(Tr.Provider, {
|
|
2378
|
+
value: C,
|
|
2379
|
+
children: /* @__PURE__ */ (0, Q.jsxs)(dr, {
|
|
2380
|
+
render: /* @__PURE__ */ (0, Q.jsx)(xn, {
|
|
2381
|
+
offset: 2,
|
|
2382
|
+
shadowLevel: 3,
|
|
2383
|
+
ref: (e) => {
|
|
2384
|
+
s.current = e, typeof n == "function" ? n(e) : n && (n.current = e);
|
|
2385
|
+
}
|
|
2386
|
+
}),
|
|
2387
|
+
onMouseEnter: () => {
|
|
2388
|
+
f.onMouseEnter(), g(null);
|
|
2389
|
+
},
|
|
2390
|
+
onMouseMove: f.onMouseMove,
|
|
2391
|
+
onMouseLeave: f.onMouseLeave,
|
|
2392
|
+
onFocus: (e) => {
|
|
2393
|
+
let t = e.target.closest("[data-proximity-index]")?.getAttribute("data-proximity-index");
|
|
2394
|
+
if (t != null) {
|
|
2395
|
+
let n = Number(t);
|
|
2396
|
+
l(n), g(e.target.matches(":focus-visible") ? n : null);
|
|
2397
|
+
}
|
|
2398
|
+
},
|
|
2399
|
+
onBlur: (e) => {
|
|
2400
|
+
s.current?.contains(e.relatedTarget) || (g(null), l(null));
|
|
2401
|
+
},
|
|
2402
|
+
className: A(`relative flex flex-col gap-0.5 min-w-[var(--anchor-width)] max-h-[min(300px,var(--available-height))] overflow-y-auto ${o.container} p-1 select-none outline-none`, e),
|
|
2403
|
+
children: [
|
|
2404
|
+
/* @__PURE__ */ (0, Q.jsx)(rt, { children: x && /* @__PURE__ */ (0, Q.jsx)(pe.div, {
|
|
2405
|
+
className: `absolute ${o.bg} bg-active pointer-events-none`,
|
|
2406
|
+
initial: !1,
|
|
2407
|
+
animate: {
|
|
2408
|
+
top: x.top,
|
|
2409
|
+
left: x.left,
|
|
2410
|
+
width: x.width,
|
|
2411
|
+
height: x.height,
|
|
2412
|
+
opacity: ee ? .8 : 1
|
|
2413
|
+
},
|
|
2414
|
+
exit: {
|
|
2415
|
+
opacity: 0,
|
|
2416
|
+
transition: Re.moderate.exit
|
|
2417
|
+
},
|
|
2418
|
+
transition: {
|
|
2419
|
+
...Re.moderate,
|
|
2420
|
+
opacity: { duration: .08 }
|
|
2421
|
+
}
|
|
2422
|
+
}) }),
|
|
2423
|
+
/* @__PURE__ */ (0, Q.jsx)(rt, { children: y && /* @__PURE__ */ (0, Q.jsx)(pe.div, {
|
|
2424
|
+
className: `absolute ${o.bg} bg-hover pointer-events-none`,
|
|
2425
|
+
initial: {
|
|
2426
|
+
opacity: 0,
|
|
2427
|
+
top: x?.top ?? y.top,
|
|
2428
|
+
left: x?.left ?? y.left,
|
|
2429
|
+
width: x?.width ?? y.width,
|
|
2430
|
+
height: x?.height ?? y.height
|
|
2431
|
+
},
|
|
2432
|
+
animate: {
|
|
2433
|
+
opacity: 1,
|
|
2434
|
+
top: y.top,
|
|
2435
|
+
left: y.left,
|
|
2436
|
+
width: y.width,
|
|
2437
|
+
height: y.height
|
|
2438
|
+
},
|
|
2439
|
+
exit: {
|
|
2440
|
+
opacity: 0,
|
|
2441
|
+
transition: Re.fast.exit
|
|
2442
|
+
},
|
|
2443
|
+
transition: {
|
|
2444
|
+
...Re.fast,
|
|
2445
|
+
opacity: { duration: .08 }
|
|
2446
|
+
}
|
|
2447
|
+
}, d.current) }),
|
|
2448
|
+
/* @__PURE__ */ (0, Q.jsx)(rt, { children: S && /* @__PURE__ */ (0, Q.jsx)(pe.div, {
|
|
2449
|
+
className: `absolute ${o.focusRing} pointer-events-none z-20 border border-[color:var(--focus-ring,#6B97FF)]`,
|
|
2450
|
+
initial: !1,
|
|
2451
|
+
animate: {
|
|
2452
|
+
left: S.left - 2,
|
|
2453
|
+
top: S.top - 2,
|
|
2454
|
+
width: S.width + 4,
|
|
2455
|
+
height: S.height + 4
|
|
2456
|
+
},
|
|
2457
|
+
exit: {
|
|
2458
|
+
opacity: 0,
|
|
2459
|
+
transition: Re.fast.exit
|
|
2460
|
+
},
|
|
2461
|
+
transition: {
|
|
2462
|
+
...Re.fast,
|
|
2463
|
+
opacity: { duration: .08 }
|
|
2464
|
+
}
|
|
2465
|
+
}) }),
|
|
2466
|
+
t
|
|
2467
|
+
]
|
|
2468
|
+
})
|
|
2469
|
+
})
|
|
2470
|
+
})
|
|
2471
|
+
}) });
|
|
2472
|
+
});
|
|
2473
|
+
Ar.displayName = "SelectContent";
|
|
2474
|
+
var jr = (0, Z.forwardRef)(({ className: e, children: t, icon: n, value: r, index: i, disabled: a = !1, ...o }, s) => {
|
|
2475
|
+
let c = wr(), l = (0, Z.useContext)(Tr), u = (0, Z.useRef)(null), d = b(), f = (0, Z.useRef)(!1);
|
|
2476
|
+
(0, Z.useEffect)(() => {
|
|
2477
|
+
f.current = !0;
|
|
2478
|
+
}, []), (0, Z.useEffect)(() => (l?.registerItem(i, u.current), () => l?.registerItem(i, null)), [i, l]);
|
|
2479
|
+
let p = l?.activeIndex === i, m = c.value === r, h = !f.current;
|
|
2480
|
+
return /* @__PURE__ */ (0, Q.jsxs)(xr, {
|
|
2481
|
+
value: r,
|
|
2482
|
+
disabled: a,
|
|
2483
|
+
label: typeof t == "string" ? t : void 0,
|
|
2484
|
+
render: /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
2485
|
+
ref: (e) => {
|
|
2486
|
+
u.current = e, typeof s == "function" ? s(e) : s && (s.current = e);
|
|
2487
|
+
},
|
|
2488
|
+
"data-proximity-index": i,
|
|
2489
|
+
"data-value": r,
|
|
2490
|
+
className: A(`relative z-10 flex h-9 items-center gap-2 ${d.item} px-2 text-[13px] cursor-pointer outline-none select-none`, "transition-[color] duration-80", p || m ? "text-foreground" : "text-muted-foreground", a && "opacity-50 pointer-events-none", e),
|
|
2491
|
+
...o
|
|
2492
|
+
}),
|
|
2493
|
+
children: [
|
|
2494
|
+
n && /* @__PURE__ */ (0, Q.jsx)(n, {
|
|
2495
|
+
size: 16,
|
|
2496
|
+
strokeWidth: p || m ? 2 : 1.5,
|
|
2497
|
+
className: "shrink-0 transition-[color,stroke-width] duration-80"
|
|
2498
|
+
}),
|
|
2499
|
+
/* @__PURE__ */ (0, Q.jsx)(Sr, {
|
|
2500
|
+
render: /* @__PURE__ */ (0, Q.jsx)("span", { className: "flex-1 min-w-0 truncate [text-box:trim-both_cap_alphabetic] py-1 -my-1" }),
|
|
2501
|
+
children: t
|
|
2502
|
+
}),
|
|
2503
|
+
/* @__PURE__ */ (0, Q.jsx)(rt, { children: m && /* @__PURE__ */ (0, Q.jsx)(pe.svg, {
|
|
2504
|
+
width: 16,
|
|
2505
|
+
height: 16,
|
|
2506
|
+
viewBox: "0 0 24 24",
|
|
2507
|
+
fill: "none",
|
|
2508
|
+
stroke: "currentColor",
|
|
2509
|
+
strokeWidth: 2,
|
|
2510
|
+
strokeLinecap: "round",
|
|
2511
|
+
strokeLinejoin: "round",
|
|
2512
|
+
className: "shrink-0 text-foreground",
|
|
2513
|
+
initial: { opacity: 1 },
|
|
2514
|
+
animate: { opacity: 1 },
|
|
2515
|
+
exit: { opacity: 1 },
|
|
2516
|
+
children: /* @__PURE__ */ (0, Q.jsx)(pe.path, {
|
|
2517
|
+
d: "M4 12L9 17L20 6",
|
|
2518
|
+
initial: { pathLength: +!!h },
|
|
2519
|
+
animate: {
|
|
2520
|
+
pathLength: 1,
|
|
2521
|
+
transition: {
|
|
2522
|
+
duration: .08,
|
|
2523
|
+
ease: "easeOut"
|
|
2524
|
+
}
|
|
2525
|
+
},
|
|
2526
|
+
exit: {
|
|
2527
|
+
pathLength: 0,
|
|
2528
|
+
transition: {
|
|
2529
|
+
duration: .04,
|
|
2530
|
+
ease: "easeIn"
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
})
|
|
2534
|
+
}, "check") })
|
|
2535
|
+
]
|
|
2536
|
+
});
|
|
2537
|
+
});
|
|
2538
|
+
jr.displayName = "SelectItem";
|
|
2539
|
+
function Mr({ children: e, className: t, ...n }) {
|
|
2540
|
+
return /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
2541
|
+
role: "group",
|
|
2542
|
+
className: t,
|
|
2543
|
+
...n,
|
|
2544
|
+
children: e
|
|
2545
|
+
});
|
|
2546
|
+
}
|
|
2547
|
+
Mr.displayName = "SelectGroup";
|
|
2548
|
+
var Nr = (0, Z.forwardRef)(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
2549
|
+
ref: n,
|
|
2550
|
+
className: A("px-2 py-1.5 text-[11px] text-muted-foreground", e),
|
|
2551
|
+
...t
|
|
2552
|
+
}));
|
|
2553
|
+
Nr.displayName = "SelectLabel";
|
|
2554
|
+
var Pr = (0, Z.forwardRef)(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
2555
|
+
ref: n,
|
|
2556
|
+
role: "separator",
|
|
2557
|
+
className: A("my-1 -mx-1 h-px bg-border/60", e),
|
|
2558
|
+
...t
|
|
2559
|
+
}));
|
|
2560
|
+
Pr.displayName = "SelectSeparator";
|
|
2561
|
+
var Fr = (0, Z.createContext)(null);
|
|
2562
|
+
function Ir({ placeholder: e }) {
|
|
2563
|
+
return null;
|
|
2564
|
+
}
|
|
2565
|
+
Ir.displayName = "SelectValue";
|
|
2566
|
+
function Lr({ children: e, ...t }) {
|
|
2567
|
+
let n = (0, Z.useRef)(0), r = (0, Z.useMemo)(() => ({ next: () => n.current++ }), []);
|
|
2568
|
+
return n.current = 0, /* @__PURE__ */ (0, Q.jsx)(Fr.Provider, {
|
|
2569
|
+
value: r,
|
|
2570
|
+
children: /* @__PURE__ */ (0, Q.jsx)(Ar, {
|
|
2571
|
+
...t,
|
|
2572
|
+
children: e
|
|
2573
|
+
})
|
|
2574
|
+
});
|
|
2575
|
+
}
|
|
2576
|
+
function Rr({ index: e, label: t, children: n, ...r }) {
|
|
2577
|
+
let i = (0, Z.useContext)(Fr);
|
|
2578
|
+
return /* @__PURE__ */ (0, Q.jsx)(jr, {
|
|
2579
|
+
index: e ?? i?.next() ?? 0,
|
|
2580
|
+
...r,
|
|
2581
|
+
children: n
|
|
2582
|
+
});
|
|
2583
|
+
}
|
|
2584
|
+
function zr({ children: e, placeholder: t, ...n }) {
|
|
2585
|
+
let r = t;
|
|
2586
|
+
return Z.Children.forEach(e, (e) => {
|
|
2587
|
+
(0, Z.isValidElement)(e) && e.type === Ir && (r = e.props.placeholder ?? r);
|
|
2588
|
+
}), /* @__PURE__ */ (0, Q.jsx)(kr, {
|
|
2589
|
+
placeholder: r,
|
|
2590
|
+
...n
|
|
2591
|
+
});
|
|
2592
|
+
}
|
|
2593
|
+
//#endregion
|
|
2594
|
+
export { Vt as C, Ht as S, Nt as T, rn as _, Ir as a, Gt as b, En as c, _n as d, gn as f, on as g, sn as h, zr as i, xn as l, cn as m, Lr as n, zn as o, mn as p, Rr as r, Mn as s, Dr as t, bn as u, tn as v, Pt as w, Wt as x, Kt as y };
|