@mcp-use/inspector 12.0.4-canary.1 → 20.0.0-beta.1
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-D8uwCHAf.js +13218 -0
- package/dist/cdn/CheckboxIndicator-BF2cKfbA.js +251 -0
- package/dist/cdn/ConnectionSettingsForm-BNS6bOMD.js +873 -0
- package/dist/cdn/ConnectionSettingsTab-B97gPPJW.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-k3oeLtIC.js +58 -0
- package/dist/cdn/PromptsTab-Cspfnl6n.js +4400 -0
- package/dist/cdn/ResourcesTab-KfamsM6-.js +584 -0
- package/dist/cdn/SamplingTab-vcufuK24.js +658 -0
- package/dist/cdn/ServerMetadataTab-DS0eiyyD.js +244 -0
- package/dist/cdn/StatusIcon-BGXOEU2u.js +66 -0
- package/dist/cdn/ToolsTab-DRjcZnpu.js +2067 -0
- package/dist/cdn/ViewPreview-B_onhcUB.js +237 -0
- package/dist/cdn/WidgetDebugContext-D4usL_MA.js +324 -0
- package/dist/cdn/WidgetWrapper-D29YDxIu.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 +10860 -133725
- 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-BxO-uEDZ.js +5417 -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-Dr6W2ooF.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 +1143 -3582
- 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/asset-urls.d.ts +14 -0
- package/dist/server/asset-urls.d.ts.map +1 -0
- package/dist/server/asset-urls.js +13 -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 +12 -0
- package/dist/server/chunk-5B3SXGZP.js +43 -0
- package/dist/server/chunk-6XWDZEFF.js +194 -0
- package/dist/server/chunk-IKTZUWSX.js +0 -0
- package/dist/server/{chunk-57KIBVKX.js → chunk-IXYK6ZOY.js} +27 -26
- package/dist/server/chunk-J4FNYLBF.js +54 -0
- package/dist/server/chunk-K2F2AJOI.js +619 -0
- package/dist/server/chunk-K2V2SDQD.js +40 -0
- package/dist/server/chunk-KBVKS4J5.js +53 -0
- package/dist/server/chunk-M5TZA42I.js +54 -0
- package/dist/server/chunk-VDUV6LR6.js +137 -0
- package/dist/server/chunk-WFT4JHYI.js +24 -0
- package/dist/server/{chunk-R4ISUE7T.js → chunk-Y2GBQOQW.js} +32 -33
- package/dist/server/cli.js +25 -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 +15 -17
- package/dist/server/middleware.d.ts +14 -3
- package/dist/server/middleware.d.ts.map +1 -1
- package/dist/server/middleware.js +11 -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/static-assets.d.ts +5 -0
- package/dist/server/static-assets.d.ts.map +1 -0
- package/dist/server/static-assets.js +9 -0
- 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-Cy8eyFYI.js +460 -0
- package/dist/web/assets/ConnectionSettingsTab-sDZGaUJn.js +1 -0
- package/dist/web/assets/ElicitationTab-wDKgU1qL.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-DCLbW-mz.js +1 -0
- package/dist/web/assets/NotificationsTab-JevzvJTg.js +1 -0
- package/dist/web/assets/OAuthCallback-BjcRxLh5.js +1 -0
- package/dist/web/assets/PromptsTab-DsQVOjKH.js +61 -0
- package/dist/web/assets/ResourcesTab-Bw8_p6M1.js +2 -0
- package/dist/web/assets/SamplingTab-BrcF1zJF.js +1 -0
- package/dist/web/assets/ServerMetadataTab-Bydeh1Po.js +1 -0
- package/dist/web/assets/ToolsTab-DJWF7Q_x.js +8 -0
- package/dist/web/assets/ViewPreview-jgeU7bY9.js +1 -0
- package/dist/web/assets/WidgetWrapper-B_vJU9uF.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-BA-XURSj.js +1 -0
- package/dist/web/assets/chunk-BO2N2NFS-CGbd3eLY.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-BcAQZluc.js +21 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-BBJFbIMp.js +1 -0
- package/dist/web/assets/index-BjH-Qp85.css +1 -0
- package/dist/web/assets/index-D2UxaT9v.js +475 -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-B4MKVODA.js +1 -0
- package/dist/web/assets/pdf-CuwKm9zO.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-DQE60Op-.js +1 -0
- package/dist/web/assets/sheet-7TIkLdpr.js +1 -0
- package/dist/web/assets/sparkles-2OAsc1aP.js +1 -0
- package/dist/web/assets/tabs-subtle-AkJZvdxS.js +1 -0
- package/dist/web/assets/textarea-Ci09-en6.js +1 -0
- package/dist/web/assets/useConfig-Qglo4xs1.js +1 -0
- package/dist/web/assets/useMCPPrompts-USLYc1I4.js +1 -0
- package/dist/web/assets/useViewHostProps-DXAD1g7g.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 +30 -31
- 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-A4VH7AIP.js +0 -738
- package/dist/server/chunk-CVECQ7BJ.js +0 -78
- package/dist/server/chunk-IDMHJUEM.js +0 -42
- package/dist/server/chunk-JWSNP6DN.js +0 -164
- package/dist/server/chunk-LJ4XSPDK.js +0 -322
- package/dist/server/chunk-OBMEB36B.js +0 -71
- package/dist/server/chunk-PJNKFX2R.js +0 -2351
- package/dist/server/chunk-QQ37LGLJ.js +0 -127
- 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-Ck39aYGA.js +0 -1
- package/dist/web/assets/abnf-BuzL1jyp.js +0 -1
- package/dist/web/assets/accesslog-C4d8zjYK.js +0 -1
- package/dist/web/assets/actionscript-yhwXJGpA.js +0 -1
- package/dist/web/assets/ada-DS7GMjM1.js +0 -1
- package/dist/web/assets/angelscript-BNqWtPa-.js +0 -1
- package/dist/web/assets/apache-CDWq3Rq5.js +0 -1
- package/dist/web/assets/applescript-8S6EVXRM.js +0 -1
- package/dist/web/assets/arcade-DC7EGdDp.js +0 -1
- package/dist/web/assets/arduino-8rhiPNbi.js +0 -1
- package/dist/web/assets/armasm-CXSk1xrZ.js +0 -1
- package/dist/web/assets/asciidoc-Cky4dUsA.js +0 -1
- package/dist/web/assets/aspectj-Dq_7W5m_.js +0 -1
- package/dist/web/assets/autohotkey-BNhcw-Zd.js +0 -1
- package/dist/web/assets/autoit-B6QVlGNy.js +0 -1
- package/dist/web/assets/avrasm-CHV0d4It.js +0 -1
- package/dist/web/assets/awk-DCB3Eg4O.js +0 -1
- package/dist/web/assets/axapta-Dxohu7yY.js +0 -1
- package/dist/web/assets/bash-Bvq6q0eu.js +0 -1
- package/dist/web/assets/basic-B6HvpaoU.js +0 -1
- package/dist/web/assets/bnf-CuNWJiZD.js +0 -1
- package/dist/web/assets/brainfuck-CwbwmNek.js +0 -3
- package/dist/web/assets/c-J3NpqNLd.js +0 -1
- package/dist/web/assets/c-like-CEyttHu3.js +0 -1
- package/dist/web/assets/cal-De1Inhwg.js +0 -1
- package/dist/web/assets/capnproto-Dfm52ju9.js +0 -1
- package/dist/web/assets/ceylon-C7k7iR7b.js +0 -1
- package/dist/web/assets/clean-BApy5Jiy.js +0 -1
- package/dist/web/assets/clojure-D99J3Nqd.js +0 -1
- package/dist/web/assets/clojure-repl-C-7y8JbJ.js +0 -1
- package/dist/web/assets/cmake-Cyp9hqgM.js +0 -1
- package/dist/web/assets/coffeescript-Di8oatND.js +0 -1
- package/dist/web/assets/coq-CTcQXuml.js +0 -1
- package/dist/web/assets/core-Dn-Gjdkn.js +0 -4
- package/dist/web/assets/cos-B5PyisGk.js +0 -1
- package/dist/web/assets/cpp-CpoL8Vn2.js +0 -1
- package/dist/web/assets/crmsh-BzEJ2UMf.js +0 -1
- package/dist/web/assets/crystal-DwthdjeS.js +0 -1
- package/dist/web/assets/csharp-DX0uiYC_.js +0 -1
- package/dist/web/assets/csp-Dz_hLI0l.js +0 -1
- package/dist/web/assets/css-CBX-iPig.js +0 -1
- package/dist/web/assets/d-BFcEc2Wd.js +0 -1
- package/dist/web/assets/dart-XM_3t8vN.js +0 -1
- package/dist/web/assets/delphi-DoGEkNsl.js +0 -1
- package/dist/web/assets/diff-DmFtonrj.js +0 -1
- package/dist/web/assets/django-BdZ5M382.js +0 -1
- package/dist/web/assets/dns-D08imUXg.js +0 -1
- package/dist/web/assets/dockerfile-B5VmPrWY.js +0 -1
- package/dist/web/assets/dos-CGSFxCkI.js +0 -1
- package/dist/web/assets/dsconfig-ca2r_GVK.js +0 -1
- package/dist/web/assets/dts-JQegxFM5.js +0 -1
- package/dist/web/assets/dust-Djaschl2.js +0 -1
- package/dist/web/assets/ebnf-CZryUL-X.js +0 -1
- package/dist/web/assets/elixir-D0_cpeEe.js +0 -1
- package/dist/web/assets/elm-CeVRiPaW.js +0 -1
- package/dist/web/assets/erb-xkDOjk65.js +0 -1
- package/dist/web/assets/erlang-Bjd1hpKB.js +0 -1
- package/dist/web/assets/erlang-repl-CAHsxSfj.js +0 -1
- package/dist/web/assets/excel-kF3e3kEL.js +0 -1
- package/dist/web/assets/fix-DcDIoRCK.js +0 -1
- package/dist/web/assets/flix-Ho4BNqBJ.js +0 -1
- package/dist/web/assets/fortran-14t4qTUY.js +0 -1
- package/dist/web/assets/fsharp-L5i6f6LO.js +0 -1
- package/dist/web/assets/gams-B1FvFmVr.js +0 -1
- package/dist/web/assets/gauss-DhPFrKEG.js +0 -1
- package/dist/web/assets/gcode-fU_PdGTz.js +0 -1
- package/dist/web/assets/gherkin-D35RpAlM.js +0 -1
- package/dist/web/assets/glsl-Ce3B2spn.js +0 -1
- package/dist/web/assets/gml-q_8zkRjy.js +0 -1
- package/dist/web/assets/go-tjnmgxFo.js +0 -1
- package/dist/web/assets/golo-D0DdehTP.js +0 -1
- package/dist/web/assets/gradle-BuEALrHh.js +0 -1
- package/dist/web/assets/groovy-BwBwLxy1.js +0 -1
- package/dist/web/assets/haml-BBZG2pIn.js +0 -1
- package/dist/web/assets/handlebars-CBCTIWBg.js +0 -1
- package/dist/web/assets/haskell-Ddd09HDp.js +0 -1
- package/dist/web/assets/haxe-B2rZ5fx2.js +0 -1
- package/dist/web/assets/hsp-I8h4zcwW.js +0 -1
- package/dist/web/assets/htmlbars-BU4KGKFH.js +0 -1
- package/dist/web/assets/http-DN5nyOjy.js +0 -1
- package/dist/web/assets/hy-CpeSsEuG.js +0 -1
- package/dist/web/assets/index-C4BqUITd.css +0 -2
- package/dist/web/assets/index-C8FrI8_O.js +0 -848
- package/dist/web/assets/inform7-BE7aHqNb.js +0 -1
- package/dist/web/assets/ini-Z84ip27g.js +0 -1
- package/dist/web/assets/irpf90-CVwarimj.js +0 -1
- package/dist/web/assets/isbl-ghISknvV.js +0 -1
- package/dist/web/assets/java-CEw02vbP.js +0 -1
- package/dist/web/assets/javascript-gThRHhsu.js +0 -1
- package/dist/web/assets/jboss-cli-C9bhouu8.js +0 -1
- package/dist/web/assets/json-CajKCx8k.js +0 -1
- package/dist/web/assets/julia-DoYLhEhE.js +0 -1
- package/dist/web/assets/julia-repl-BZUBP0N8.js +0 -1
- package/dist/web/assets/kotlin-DwLRtiOv.js +0 -2
- package/dist/web/assets/lasso-DzjodXDX.js +0 -1
- package/dist/web/assets/latex-TLlwzbIz.js +0 -1
- package/dist/web/assets/ldif-CCayDc2m.js +0 -1
- package/dist/web/assets/leaf-Bz7MjUha.js +0 -1
- package/dist/web/assets/less-5c3Sx665.js +0 -1
- package/dist/web/assets/lisp-nrbFh6lg.js +0 -1
- package/dist/web/assets/livecodeserver-B6AET3RQ.js +0 -1
- package/dist/web/assets/livescript-DluKBsMk.js +0 -1
- package/dist/web/assets/llvm-7haFOmp0.js +0 -1
- package/dist/web/assets/lsl-vQhUcPVp.js +0 -1
- package/dist/web/assets/lua-D6YEEohY.js +0 -1
- package/dist/web/assets/makefile-ps86vsQu.js +0 -1
- package/dist/web/assets/markdown-D4av7eDS.js +0 -1
- package/dist/web/assets/mathematica-KZAZ3f_4.js +0 -1
- package/dist/web/assets/matlab-DvaEq_2L.js +0 -1
- package/dist/web/assets/maxima-DmpshiQZ.js +0 -1
- package/dist/web/assets/mel-B-mMlzQm.js +0 -1
- package/dist/web/assets/mercury-C7wy29Qr.js +0 -1
- package/dist/web/assets/mipsasm-BWGxDN2L.js +0 -1
- package/dist/web/assets/mizar-BO0ByJsv.js +0 -1
- package/dist/web/assets/module-3nkmv-tD.js +0 -4
- package/dist/web/assets/mojolicious-DQzQPzHI.js +0 -1
- package/dist/web/assets/monkey-zmRhai32.js +0 -1
- package/dist/web/assets/moonscript-I4NDcPGQ.js +0 -1
- package/dist/web/assets/n1ql-DWiekVW7.js +0 -1
- package/dist/web/assets/nginx-DzGKMR5i.js +0 -1
- package/dist/web/assets/nim-CkSCDiz8.js +0 -1
- package/dist/web/assets/nix-ZeFazZ2H.js +0 -1
- package/dist/web/assets/node-repl-CPsBepeY.js +0 -1
- package/dist/web/assets/nsis-CPX7KHgX.js +0 -1
- package/dist/web/assets/objectivec-C9QgxLTf.js +0 -1
- package/dist/web/assets/ocaml-C3nG7mvn.js +0 -1
- package/dist/web/assets/openscad-DeCdwUSM.js +0 -1
- package/dist/web/assets/oxygene-DYdFEz9Q.js +0 -1
- package/dist/web/assets/parser3-ZcIhJT1P.js +0 -1
- package/dist/web/assets/perl-C6XfEYw8.js +0 -1
- package/dist/web/assets/pf-8XkdEzY8.js +0 -1
- package/dist/web/assets/pgsql-DAhhqJ5S.js +0 -1
- package/dist/web/assets/php-CSilrJt2.js +0 -1
- package/dist/web/assets/php-template-BNZ8XzCJ.js +0 -1
- package/dist/web/assets/plaintext-Bh7iCuMT.js +0 -1
- package/dist/web/assets/pony-CSAjk_Rh.js +0 -1
- package/dist/web/assets/powershell-5tevpPDi.js +0 -1
- package/dist/web/assets/processing-B5UBw4db.js +0 -1
- package/dist/web/assets/profile-BYWKRUf-.js +0 -1
- package/dist/web/assets/prolog-Z-kheNQb.js +0 -1
- package/dist/web/assets/properties-CP2GAgCT.js +0 -1
- package/dist/web/assets/protobuf-DwaP-ZBz.js +0 -1
- package/dist/web/assets/puppet-DCo1p-e1.js +0 -1
- package/dist/web/assets/purebasic-B4oTIbaC.js +0 -1
- package/dist/web/assets/python-Cxw0FOMN.js +0 -1
- package/dist/web/assets/python-repl-BggDorti.js +0 -1
- package/dist/web/assets/q-D0x0YPyq.js +0 -1
- package/dist/web/assets/qml-Dphl0SMd.js +0 -1
- package/dist/web/assets/r-D_JMfTn3.js +0 -1
- package/dist/web/assets/reasonml-CXdNSKcE.js +0 -1
- package/dist/web/assets/rib-D3-TlPeW.js +0 -1
- package/dist/web/assets/roboconf-DEm7cd22.js +0 -1
- package/dist/web/assets/routeros-DdjuRfl6.js +0 -1
- package/dist/web/assets/rpc-logger-TPNV75J4-C40n6UNr.js +0 -1
- package/dist/web/assets/rsl-BrnG8AH0.js +0 -1
- package/dist/web/assets/ruby-aB1innqz.js +0 -1
- package/dist/web/assets/ruleslanguage-BPmfiapH.js +0 -1
- package/dist/web/assets/rust-DqQz2VhN.js +0 -1
- package/dist/web/assets/sas-D4-lEVkU.js +0 -1
- package/dist/web/assets/scala-77Na58um.js +0 -1
- package/dist/web/assets/scheme-2Qe3EDmu.js +0 -1
- package/dist/web/assets/scilab-DZps5Q31.js +0 -1
- package/dist/web/assets/scss-B3Vtu9UP.js +0 -1
- package/dist/web/assets/shell-CrQcV8OK.js +0 -1
- package/dist/web/assets/smali-BTfpnEqn.js +0 -2
- package/dist/web/assets/smalltalk-CpIWoTp_.js +0 -1
- package/dist/web/assets/sml-DoJUdr8i.js +0 -1
- package/dist/web/assets/sqf-Bs26a1hR.js +0 -1
- package/dist/web/assets/sql-BXs9CZyk.js +0 -1
- package/dist/web/assets/sql_more-CQVJyFAZ.js +0 -1
- package/dist/web/assets/stan-B6HH5NgR.js +0 -1
- package/dist/web/assets/stata-VKr1FNBF.js +0 -3
- package/dist/web/assets/step21-Ba6oj9Wj.js +0 -1
- package/dist/web/assets/stylus-DhJmSeI6.js +0 -1
- package/dist/web/assets/subunit-B0bGuVIS.js +0 -3
- package/dist/web/assets/swift-C5NITCOW.js +0 -1
- package/dist/web/assets/taggerscript-DzMn6Q_H.js +0 -1
- package/dist/web/assets/tap-D-CsbE0z.js +0 -1
- package/dist/web/assets/tcl-mxaB-b0O.js +0 -1
- package/dist/web/assets/thrift-D15bAw3O.js +0 -1
- package/dist/web/assets/tp-CYW80aaN.js +0 -1
- package/dist/web/assets/twig-DUx5lHKo.js +0 -1
- package/dist/web/assets/typescript-FKxWpH0A.js +0 -1
- package/dist/web/assets/vala-C8SPe1Je.js +0 -1
- package/dist/web/assets/vbnet-DPOz3qH4.js +0 -1
- package/dist/web/assets/vbscript-BFMfNF7s.js +0 -1
- package/dist/web/assets/vbscript-html-3FBmwJu9.js +0 -1
- package/dist/web/assets/verilog-CiVb5cnG.js +0 -1
- package/dist/web/assets/vhdl-BQaFQ0Ys.js +0 -1
- package/dist/web/assets/vim-k5mEfOIE.js +0 -1
- package/dist/web/assets/x86asm-B-SWMOrZ.js +0 -1
- package/dist/web/assets/xl-BpV7JOX6.js +0 -1
- package/dist/web/assets/xml-7_gIAAop.js +0 -1
- package/dist/web/assets/xquery-D3UKuxgH.js +0 -1
- package/dist/web/assets/yaml-CL8bO3oj.js +0 -1
- package/dist/web/assets/zephir-foimhbl6.js +0 -1
|
@@ -0,0 +1,664 @@
|
|
|
1
|
+
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
+
import { t as n } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
|
+
import { A as r, B as i, D as a, E as o, F as s, I as c, L as l, M as u, Mn as d, N as f, Nn as p, O as m, Or as h, P as g, R as _, Rr as v, S as y, Sr as b, T as x, U as S, Yn as C, _ as w, _r as T, an as E, b as D, br as O, dr as k, f as A, g as j, gr as ee, h as te, in as ne, j as M, k as N, m as re, pr as ie, s as P, v as ae, w as F, x as oe, xr as se, y as I, z as L } from "./input-BLxOA7V-.js";
|
|
4
|
+
import { n as ce } from "./label-CBvG613A.js";
|
|
5
|
+
import { c as le } from "./select-BZ_IoKxg.js";
|
|
6
|
+
import { c as R, i as ue, l as de, o as fe, r as pe, t as me } from "./FormContext-Cl51-7O7.js";
|
|
7
|
+
import { t as he } from "./useAriaLabelledBy-Bm9qHGK6.js";
|
|
8
|
+
//#region ../../node_modules/.pnpm/motion-utils@12.39.0/node_modules/motion-utils/dist/es/wrap.mjs
|
|
9
|
+
var ge = (e, t, n) => {
|
|
10
|
+
let r = t - e;
|
|
11
|
+
return ((n - e) % r + r) % r + e;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region ../../node_modules/.pnpm/motion-utils@12.39.0/node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs
|
|
15
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
16
|
+
function z(e, t) {
|
|
17
|
+
return g(e) ? e[ge(0, e.length, t)] : e;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.42.2/node_modules/motion-dom/dist/es/animation/GroupAnimation.mjs
|
|
21
|
+
var B = class {
|
|
22
|
+
constructor(e) {
|
|
23
|
+
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
|
24
|
+
}
|
|
25
|
+
get finished() {
|
|
26
|
+
return Promise.all(this.animations.map((e) => e.finished));
|
|
27
|
+
}
|
|
28
|
+
getAll(e) {
|
|
29
|
+
return this.animations[0][e];
|
|
30
|
+
}
|
|
31
|
+
setAll(e, t) {
|
|
32
|
+
for (let n = 0; n < this.animations.length; n++) this.animations[n][e] = t;
|
|
33
|
+
}
|
|
34
|
+
attachTimeline(e) {
|
|
35
|
+
let t = this.animations.map((t) => t.attachTimeline(e));
|
|
36
|
+
return () => {
|
|
37
|
+
t.forEach((e, t) => {
|
|
38
|
+
e && e(), this.animations[t].stop();
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
get time() {
|
|
43
|
+
return this.getAll("time");
|
|
44
|
+
}
|
|
45
|
+
set time(e) {
|
|
46
|
+
this.setAll("time", e);
|
|
47
|
+
}
|
|
48
|
+
get speed() {
|
|
49
|
+
return this.getAll("speed");
|
|
50
|
+
}
|
|
51
|
+
set speed(e) {
|
|
52
|
+
this.setAll("speed", e);
|
|
53
|
+
}
|
|
54
|
+
get state() {
|
|
55
|
+
return this.getAll("state");
|
|
56
|
+
}
|
|
57
|
+
get startTime() {
|
|
58
|
+
return this.getAll("startTime");
|
|
59
|
+
}
|
|
60
|
+
get duration() {
|
|
61
|
+
return V(this.animations, "duration");
|
|
62
|
+
}
|
|
63
|
+
get iterationDuration() {
|
|
64
|
+
return V(this.animations, "iterationDuration");
|
|
65
|
+
}
|
|
66
|
+
runAll(e) {
|
|
67
|
+
this.animations.forEach((t) => t[e]());
|
|
68
|
+
}
|
|
69
|
+
play() {
|
|
70
|
+
this.runAll("play");
|
|
71
|
+
}
|
|
72
|
+
pause() {
|
|
73
|
+
this.runAll("pause");
|
|
74
|
+
}
|
|
75
|
+
cancel() {
|
|
76
|
+
this.runAll("cancel");
|
|
77
|
+
}
|
|
78
|
+
complete() {
|
|
79
|
+
this.runAll("complete");
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
function V(e, t) {
|
|
83
|
+
let n = 0;
|
|
84
|
+
for (let r = 0; r < e.length; r++) {
|
|
85
|
+
let i = e[r][t];
|
|
86
|
+
i !== null && i > n && (n = i);
|
|
87
|
+
}
|
|
88
|
+
return n;
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.42.2/node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
|
|
92
|
+
var H = class extends B {
|
|
93
|
+
then(e, t) {
|
|
94
|
+
return this.finished.finally(e).then(() => {});
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.42.2/node_modules/motion-dom/dist/es/render/object/ObjectVisualElement.mjs
|
|
99
|
+
function U(e, t) {
|
|
100
|
+
return e in t;
|
|
101
|
+
}
|
|
102
|
+
var _e = class extends ae {
|
|
103
|
+
constructor() {
|
|
104
|
+
super(...arguments), this.type = "object";
|
|
105
|
+
}
|
|
106
|
+
readValueFromInstance(e, t) {
|
|
107
|
+
if (U(t, e)) {
|
|
108
|
+
let n = e[t];
|
|
109
|
+
if (typeof n == "string" || typeof n == "number") return n;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
getBaseTargetFromProps() {}
|
|
113
|
+
removeValueFromRenderState(e, t) {
|
|
114
|
+
delete t.output[e];
|
|
115
|
+
}
|
|
116
|
+
measureInstanceViewportBox() {
|
|
117
|
+
return D();
|
|
118
|
+
}
|
|
119
|
+
build(e, t) {
|
|
120
|
+
Object.assign(e.output, t);
|
|
121
|
+
}
|
|
122
|
+
renderInstance(e, { output: t }) {
|
|
123
|
+
Object.assign(e, t);
|
|
124
|
+
}
|
|
125
|
+
sortInstanceNodePosition() {
|
|
126
|
+
return 0;
|
|
127
|
+
}
|
|
128
|
+
}, W = /* @__PURE__ */ e(t(), 1);
|
|
129
|
+
function ve(e) {
|
|
130
|
+
let t = S(() => a(e)), { isStatic: n } = (0, W.useContext)(re);
|
|
131
|
+
if (n) {
|
|
132
|
+
let [, n] = (0, W.useState)(e);
|
|
133
|
+
(0, W.useEffect)(() => t.on("change", n), []);
|
|
134
|
+
}
|
|
135
|
+
return t;
|
|
136
|
+
}
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
|
|
139
|
+
function G(e) {
|
|
140
|
+
return typeof e == "object" && !Array.isArray(e);
|
|
141
|
+
}
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
|
|
144
|
+
function K(e, t, n, r) {
|
|
145
|
+
return e == null ? [] : typeof e == "string" && G(t) ? F(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
146
|
+
}
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
|
|
149
|
+
function ye(e, t, n) {
|
|
150
|
+
return e * (t + 1) + n * t;
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
|
|
154
|
+
function q(e, t, n, r) {
|
|
155
|
+
return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : r.get(t) ?? e;
|
|
156
|
+
}
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
|
|
159
|
+
function J(e, t, n) {
|
|
160
|
+
for (let r = 0; r < e.length; r++) {
|
|
161
|
+
let a = e[r];
|
|
162
|
+
a.at > t && a.at < n && (i(e, a), r--);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function be(e, t, n, r, i, a) {
|
|
166
|
+
J(e, i, a);
|
|
167
|
+
for (let o = 0; o < t.length; o++) e.push({
|
|
168
|
+
value: t[o],
|
|
169
|
+
at: f(i, a, r[o]),
|
|
170
|
+
easing: /* @__PURE__ */ z(n, o)
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
|
|
175
|
+
function xe(e, t, n = 0) {
|
|
176
|
+
let r = t + 1 + t * n;
|
|
177
|
+
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
|
|
178
|
+
}
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
|
|
181
|
+
function Se(e, t) {
|
|
182
|
+
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
|
|
183
|
+
}
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/animation/sequence/create.mjs
|
|
186
|
+
var Ce = "easeInOut", Y = 20;
|
|
187
|
+
function we(e, { defaultTransition: t = {}, ...n } = {}, i, a) {
|
|
188
|
+
let d = t.duration || .3, f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), h = {}, g = /* @__PURE__ */ new Map(), _ = 0, v = 0, y = 0;
|
|
189
|
+
for (let n = 0; n < e.length; n++) {
|
|
190
|
+
let l = e[n];
|
|
191
|
+
if (typeof l == "string") {
|
|
192
|
+
g.set(l, v);
|
|
193
|
+
continue;
|
|
194
|
+
} else if (!Array.isArray(l)) {
|
|
195
|
+
g.set(l.name, q(v, l.at, _, g));
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
let [f, b, x = {}] = l;
|
|
199
|
+
x.at !== void 0 && (v = q(v, x.at, _, g));
|
|
200
|
+
let S = 0, C = (e, n, i, o = 0, l = 0) => {
|
|
201
|
+
let f = De(e), { delay: p = 0, times: h = N(f), type: g = t.type || "keyframes", repeat: _, repeatType: b, repeatDelay: x = 0, ...C } = n, { ease: w = t.ease || "easeOut", duration: T } = n, E = typeof p == "function" ? p(o, l) : p, D = f.length, O = m(g) ? g : a?.[g || "keyframes"];
|
|
202
|
+
if (D <= 2 && O) {
|
|
203
|
+
let e = 100;
|
|
204
|
+
if (D === 2 && Ae(f)) {
|
|
205
|
+
let t = f[1] - f[0];
|
|
206
|
+
e = Math.abs(t);
|
|
207
|
+
}
|
|
208
|
+
let n = {
|
|
209
|
+
...t,
|
|
210
|
+
...C
|
|
211
|
+
};
|
|
212
|
+
T !== void 0 && (n.duration = c(T));
|
|
213
|
+
let r = u(n, e, O);
|
|
214
|
+
w = r.ease, T = r.duration;
|
|
215
|
+
}
|
|
216
|
+
T ??= d;
|
|
217
|
+
let k = v + E;
|
|
218
|
+
h.length === 1 && h[0] === 0 && (h[1] = 1);
|
|
219
|
+
let A = h.length - f.length;
|
|
220
|
+
if (A > 0 && r(h, A), f.length === 1 && f.unshift(null), _ && L(_ < Y, `Sequence segments can't repeat ${_} times — ignoring repeat option. Use a value below ${Y} or apply repeat at the sequence level instead.`), _ && _ < Y) {
|
|
221
|
+
let e = T > 0 ? x / T : 0;
|
|
222
|
+
T = ye(T, _, x);
|
|
223
|
+
let t = [...f], n = [...h];
|
|
224
|
+
w = Array.isArray(w) ? [...w] : [w];
|
|
225
|
+
let r = [...w], i = b === "reverse" || b === "mirror", a = t, o = r;
|
|
226
|
+
i && (a = [...t].reverse(), b === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? s(e) : e)));
|
|
227
|
+
for (let s = 0; s < _; s++) {
|
|
228
|
+
let c = i && s % 2 == 0, l = c ? a : t, u = c ? o : r, d = (s + 1) * (1 + e);
|
|
229
|
+
e > 0 && (f.push(f[f.length - 1]), h.push(d), w.push("linear")), f.push(...l);
|
|
230
|
+
for (let e = 0; e < l.length; e++) h.push(n[e] + d), w.push(e === 0 ? "linear" : /* @__PURE__ */ z(u, e - 1));
|
|
231
|
+
}
|
|
232
|
+
xe(h, _, e);
|
|
233
|
+
}
|
|
234
|
+
let j = k + T;
|
|
235
|
+
be(i, f, w, h, k, j), S = Math.max(E + T, S), y = Math.max(j, y);
|
|
236
|
+
};
|
|
237
|
+
if (o(f)) {
|
|
238
|
+
let e = Te(f, p);
|
|
239
|
+
C(b, x, Ee("default", e));
|
|
240
|
+
} else {
|
|
241
|
+
let e = K(f, b, i, h), t = e.length;
|
|
242
|
+
for (let n = 0; n < t; n++) {
|
|
243
|
+
b = b, x = x;
|
|
244
|
+
let r = e[n], i = Te(r, p);
|
|
245
|
+
for (let e in b) C(b[e], Oe(x, e), Ee(e, i), n, t);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
_ = v, v += S;
|
|
249
|
+
}
|
|
250
|
+
return p.forEach((e, r) => {
|
|
251
|
+
for (let i in e) {
|
|
252
|
+
let a = e[i];
|
|
253
|
+
a.sort(Se);
|
|
254
|
+
let o = [], s = [], c = [];
|
|
255
|
+
for (let e = 0; e < a.length; e++) {
|
|
256
|
+
let { at: t, value: n, easing: r } = a[e];
|
|
257
|
+
o.push(n), s.push(l(0, y, t)), c.push(r || "easeOut");
|
|
258
|
+
}
|
|
259
|
+
s[0] !== 0 && (s.unshift(0), o.unshift(o[0]), c.unshift(Ce)), s[s.length - 1] !== 1 && (s.push(1), o.push(null)), f.has(r) || f.set(r, {
|
|
260
|
+
keyframes: {},
|
|
261
|
+
transition: {}
|
|
262
|
+
});
|
|
263
|
+
let u = f.get(r);
|
|
264
|
+
u.keyframes[i] = o;
|
|
265
|
+
let { type: d, ...p } = t;
|
|
266
|
+
u.transition[i] = {
|
|
267
|
+
...p,
|
|
268
|
+
duration: y,
|
|
269
|
+
ease: c,
|
|
270
|
+
times: s,
|
|
271
|
+
...n
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
}), f;
|
|
275
|
+
}
|
|
276
|
+
function Te(e, t) {
|
|
277
|
+
return !t.has(e) && t.set(e, {}), t.get(e);
|
|
278
|
+
}
|
|
279
|
+
function Ee(e, t) {
|
|
280
|
+
return t[e] || (t[e] = []), t[e];
|
|
281
|
+
}
|
|
282
|
+
function De(e) {
|
|
283
|
+
return Array.isArray(e) ? e : [e];
|
|
284
|
+
}
|
|
285
|
+
function Oe(e, t) {
|
|
286
|
+
return e && e[t] ? {
|
|
287
|
+
...e,
|
|
288
|
+
...e[t]
|
|
289
|
+
} : { ...e };
|
|
290
|
+
}
|
|
291
|
+
var ke = (e) => typeof e == "number", Ae = (e) => e.every(ke);
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.mjs
|
|
294
|
+
function je(e) {
|
|
295
|
+
let t = {
|
|
296
|
+
presenceContext: null,
|
|
297
|
+
props: {},
|
|
298
|
+
visualState: {
|
|
299
|
+
renderState: {
|
|
300
|
+
transform: {},
|
|
301
|
+
transformOrigin: {},
|
|
302
|
+
style: {},
|
|
303
|
+
vars: {},
|
|
304
|
+
attrs: {}
|
|
305
|
+
},
|
|
306
|
+
latestValues: {}
|
|
307
|
+
}
|
|
308
|
+
}, n = y(e) && !oe(e) ? new j(t) : new w(t);
|
|
309
|
+
n.mount(e), I.set(e, n);
|
|
310
|
+
}
|
|
311
|
+
function Me(e) {
|
|
312
|
+
let t = new _e({
|
|
313
|
+
presenceContext: null,
|
|
314
|
+
props: {},
|
|
315
|
+
visualState: {
|
|
316
|
+
renderState: { output: {} },
|
|
317
|
+
latestValues: {}
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
t.mount(e), I.set(e, t);
|
|
321
|
+
}
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/animation/animate/subject.mjs
|
|
324
|
+
function Ne(e, t) {
|
|
325
|
+
return o(e) || typeof e == "number" || typeof e == "string" && !G(t);
|
|
326
|
+
}
|
|
327
|
+
function Pe(e, t, n, r) {
|
|
328
|
+
let i = [];
|
|
329
|
+
if (Ne(e, t)) i.push(te(e, G(t) && t.default || t, n && (n.default || n)));
|
|
330
|
+
else {
|
|
331
|
+
if (e == null) return i;
|
|
332
|
+
let a = K(e, t, r), o = a.length;
|
|
333
|
+
_(!!o, "No valid elements provided.", "no-valid-elements");
|
|
334
|
+
for (let e = 0; e < o; e++) {
|
|
335
|
+
let r = a[e], s = r instanceof Element ? je : Me;
|
|
336
|
+
I.has(r) || s(r);
|
|
337
|
+
let c = I.get(r), l = { ...n };
|
|
338
|
+
"delay" in l && typeof l.delay == "function" && (l.delay = l.delay(e, o)), i.push(...x(c, {
|
|
339
|
+
...t,
|
|
340
|
+
transition: l
|
|
341
|
+
}, {}));
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return i;
|
|
345
|
+
}
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
|
|
348
|
+
function Fe(e, t, n) {
|
|
349
|
+
let r = [];
|
|
350
|
+
return we(e.map((e) => {
|
|
351
|
+
if (Array.isArray(e) && typeof e[0] == "function") {
|
|
352
|
+
let t = e[0], n = a(0);
|
|
353
|
+
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
|
|
354
|
+
n,
|
|
355
|
+
[0, 1],
|
|
356
|
+
e[1]
|
|
357
|
+
] : [
|
|
358
|
+
n,
|
|
359
|
+
e[1],
|
|
360
|
+
e[2]
|
|
361
|
+
];
|
|
362
|
+
}
|
|
363
|
+
return e;
|
|
364
|
+
}), t, n, { spring: M }).forEach(({ keyframes: e, transition: t }, n) => {
|
|
365
|
+
r.push(...Pe(n, e, t));
|
|
366
|
+
}), r;
|
|
367
|
+
}
|
|
368
|
+
//#endregion
|
|
369
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/animation/animate/index.mjs
|
|
370
|
+
function Ie(e) {
|
|
371
|
+
return Array.isArray(e) && e.some(Array.isArray);
|
|
372
|
+
}
|
|
373
|
+
function Le(e = {}) {
|
|
374
|
+
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
|
|
375
|
+
function a(e, a, o) {
|
|
376
|
+
let s = [], c, l = {};
|
|
377
|
+
if (n !== void 0 && (l.reduceMotion = n), r !== void 0 && (l.skipAnimations = r), Ie(e)) {
|
|
378
|
+
let { onComplete: n, ...r } = a || {};
|
|
379
|
+
typeof n == "function" && (c = n), s = Fe(e, {
|
|
380
|
+
...l,
|
|
381
|
+
...r
|
|
382
|
+
}, t);
|
|
383
|
+
} else {
|
|
384
|
+
let { onComplete: n, ...r } = o || {};
|
|
385
|
+
typeof n == "function" && (c = n), s = Pe(e, a, {
|
|
386
|
+
...l,
|
|
387
|
+
...r
|
|
388
|
+
}, t);
|
|
389
|
+
}
|
|
390
|
+
let u = new H(s);
|
|
391
|
+
return c && u.finished.then(c), t && (t.animations.push(u), u.finished.then(() => {
|
|
392
|
+
i(t.animations, u);
|
|
393
|
+
})), u;
|
|
394
|
+
}
|
|
395
|
+
return a;
|
|
396
|
+
}
|
|
397
|
+
var Re = Le(), ze = /*#__PURE__*/ W.createContext(void 0);
|
|
398
|
+
process.env.NODE_ENV !== "production" && (ze.displayName = "SwitchRootContext");
|
|
399
|
+
function Be() {
|
|
400
|
+
let e = W.useContext(ze);
|
|
401
|
+
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? O(63) : "Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.");
|
|
402
|
+
return e;
|
|
403
|
+
}
|
|
404
|
+
//#endregion
|
|
405
|
+
//#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/switch/root/SwitchRootDataAttributes.mjs
|
|
406
|
+
var Ve = /*#__PURE__*/ function(e) {
|
|
407
|
+
return e.checked = "data-checked", e.unchecked = "data-unchecked", e.disabled = "data-disabled", e.readonly = "data-readonly", e.required = "data-required", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
|
|
408
|
+
}({}), He = {
|
|
409
|
+
...R,
|
|
410
|
+
checked(e) {
|
|
411
|
+
return e ? { [Ve.checked]: "" } : { [Ve.unchecked]: "" };
|
|
412
|
+
}
|
|
413
|
+
}, X = n(), Ue = /*#__PURE__*/ W.forwardRef(function(e, t) {
|
|
414
|
+
let { checked: n, className: r, defaultChecked: i, "aria-labelledby": a, form: o, id: s, inputRef: c, name: l, nativeButton: u = !1, onCheckedChange: f, readOnly: m = !1, required: g = !1, disabled: _ = !1, render: v, uncheckedValue: y, value: x, style: S, ...w } = e, { clearErrors: D } = me(), { state: O, setTouched: A, setDirty: j, validityData: te, setFilled: M, setFocused: N, validationMode: re, disabled: P, name: ae, validation: F } = fe(), { labelId: oe } = pe(), I = P || _, L = ae ?? l, R = W.useRef(null), ge = ee(R, c, F.inputRef), z = W.useRef(null), B = p(), V = le({
|
|
415
|
+
id: s,
|
|
416
|
+
implicit: !1,
|
|
417
|
+
controlRef: z
|
|
418
|
+
}), H = u ? void 0 : V, [U, _e] = ce({
|
|
419
|
+
controlled: n,
|
|
420
|
+
default: !!i,
|
|
421
|
+
name: "Switch",
|
|
422
|
+
state: "checked"
|
|
423
|
+
});
|
|
424
|
+
ue(z, B, U, void 0, !I, l), b(() => {
|
|
425
|
+
R.current && M(R.current.checked);
|
|
426
|
+
}, [R, M]), de(U, () => {
|
|
427
|
+
D(L), j(U !== te.initialValue), M(U), F.change(U);
|
|
428
|
+
});
|
|
429
|
+
let { getButtonProps: ve, buttonRef: G } = T({
|
|
430
|
+
disabled: I,
|
|
431
|
+
native: u
|
|
432
|
+
}), K = he(a, oe, R, !u, H), ye = {
|
|
433
|
+
id: u ? V : B,
|
|
434
|
+
role: "switch",
|
|
435
|
+
"aria-checked": U,
|
|
436
|
+
"aria-readonly": m || void 0,
|
|
437
|
+
"aria-required": g || void 0,
|
|
438
|
+
"aria-labelledby": K,
|
|
439
|
+
onFocus() {
|
|
440
|
+
I || N(!0);
|
|
441
|
+
},
|
|
442
|
+
onBlur() {
|
|
443
|
+
let e = R.current;
|
|
444
|
+
!e || I || (A(!0), N(!1), re === "onBlur" && F.commit(e.checked));
|
|
445
|
+
},
|
|
446
|
+
onClick(e) {
|
|
447
|
+
if (m || I) return;
|
|
448
|
+
e.preventDefault();
|
|
449
|
+
let t = R.current;
|
|
450
|
+
t && t.dispatchEvent(new (h(t)).PointerEvent("click", {
|
|
451
|
+
bubbles: !0,
|
|
452
|
+
shiftKey: e.shiftKey,
|
|
453
|
+
ctrlKey: e.ctrlKey,
|
|
454
|
+
altKey: e.altKey,
|
|
455
|
+
metaKey: e.metaKey
|
|
456
|
+
}));
|
|
457
|
+
}
|
|
458
|
+
}, q = se({
|
|
459
|
+
checked: U,
|
|
460
|
+
disabled: I,
|
|
461
|
+
form: o,
|
|
462
|
+
id: H,
|
|
463
|
+
name: L,
|
|
464
|
+
required: g,
|
|
465
|
+
style: L ? E : ne,
|
|
466
|
+
tabIndex: -1,
|
|
467
|
+
type: "checkbox",
|
|
468
|
+
"aria-hidden": !0,
|
|
469
|
+
ref: ge,
|
|
470
|
+
onChange(e) {
|
|
471
|
+
if (e.nativeEvent.defaultPrevented) return;
|
|
472
|
+
if (m) {
|
|
473
|
+
e.preventDefault();
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
let t = e.currentTarget.checked, n = d(C, e.nativeEvent);
|
|
477
|
+
f?.(t, n), !n.isCanceled && _e(t);
|
|
478
|
+
},
|
|
479
|
+
onFocus() {
|
|
480
|
+
z.current?.focus();
|
|
481
|
+
}
|
|
482
|
+
}, (e) => F.getValidationProps(I, e), x === void 0 ? ie : { value: x }), J = W.useMemo(() => ({
|
|
483
|
+
...O,
|
|
484
|
+
checked: U,
|
|
485
|
+
disabled: I,
|
|
486
|
+
readOnly: m,
|
|
487
|
+
required: g
|
|
488
|
+
}), [
|
|
489
|
+
O,
|
|
490
|
+
U,
|
|
491
|
+
I,
|
|
492
|
+
m,
|
|
493
|
+
g
|
|
494
|
+
]), be = k("span", e, {
|
|
495
|
+
state: J,
|
|
496
|
+
ref: [
|
|
497
|
+
t,
|
|
498
|
+
z,
|
|
499
|
+
G
|
|
500
|
+
],
|
|
501
|
+
props: [
|
|
502
|
+
ye,
|
|
503
|
+
w,
|
|
504
|
+
ve,
|
|
505
|
+
(e) => F.getValidationProps(I, e)
|
|
506
|
+
],
|
|
507
|
+
stateAttributesMapping: He
|
|
508
|
+
});
|
|
509
|
+
return /*#__PURE__*/ (0, X.jsxs)(ze.Provider, {
|
|
510
|
+
value: J,
|
|
511
|
+
children: [
|
|
512
|
+
be,
|
|
513
|
+
!U && L && y !== void 0 && /*#__PURE__*/ (0, X.jsx)("input", {
|
|
514
|
+
type: "hidden",
|
|
515
|
+
form: o,
|
|
516
|
+
name: L,
|
|
517
|
+
value: y,
|
|
518
|
+
disabled: I
|
|
519
|
+
}),
|
|
520
|
+
/*#__PURE__*/ (0, X.jsx)("input", {
|
|
521
|
+
...q,
|
|
522
|
+
suppressHydrationWarning: !0
|
|
523
|
+
})
|
|
524
|
+
]
|
|
525
|
+
});
|
|
526
|
+
});
|
|
527
|
+
process.env.NODE_ENV !== "production" && (Ue.displayName = "SwitchRoot");
|
|
528
|
+
//#endregion
|
|
529
|
+
//#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/switch/thumb/SwitchThumb.mjs
|
|
530
|
+
var Z = /*#__PURE__*/ W.forwardRef(function(e, t) {
|
|
531
|
+
let { render: n, className: r, style: i, ...a } = e;
|
|
532
|
+
return k("span", e, {
|
|
533
|
+
state: Be(),
|
|
534
|
+
ref: t,
|
|
535
|
+
stateAttributesMapping: He,
|
|
536
|
+
props: a
|
|
537
|
+
});
|
|
538
|
+
});
|
|
539
|
+
process.env.NODE_ENV !== "production" && (Z.displayName = "SwitchThumb");
|
|
540
|
+
//#endregion
|
|
541
|
+
//#region src/client/components/ui/switch.tsx
|
|
542
|
+
var We = 34, Ge = 20, Q = 16, $ = 2, Ke = 4, qe = 2;
|
|
543
|
+
function Je(e) {
|
|
544
|
+
return "label" in e && typeof e.label == "string";
|
|
545
|
+
}
|
|
546
|
+
var Ye = (0, W.forwardRef)(({ label: e, checked: t, onToggle: n, disabled: r = !1, thumbTransition: i, uncheckedTrackColor: a, uncheckedTrackColorHovered: o, className: s, ...c }, l) => {
|
|
547
|
+
let u = (0, W.useId)(), d = (0, W.useRef)(!1), [f, p] = (0, W.useState)(!1), [m, h] = (0, W.useState)(!1), g = (0, W.useRef)(!1), _ = (0, W.useRef)(!1), y = (0, W.useRef)(null), b = ve(t ? 16 : $);
|
|
548
|
+
(0, W.useEffect)(() => {
|
|
549
|
+
d.current = !0;
|
|
550
|
+
}, []);
|
|
551
|
+
let x = m ? 20 : f ? 18 : Q, S = m ? Q - Ke : Q, C = m ? 4 : $, w = x - Q, T = t ? 16 - w : $;
|
|
552
|
+
(0, W.useEffect)(() => {
|
|
553
|
+
g.current || (d.current ? Re(b, T, i ?? P.moderate) : b.set(T));
|
|
554
|
+
}, [
|
|
555
|
+
T,
|
|
556
|
+
b,
|
|
557
|
+
i
|
|
558
|
+
]);
|
|
559
|
+
let E = (0, W.useCallback)((e) => {
|
|
560
|
+
r || e.pointerType === "mouse" && e.button !== 0 || (h(!0), g.current = !1, _.current = !1, y.current = {
|
|
561
|
+
clientX: e.clientX,
|
|
562
|
+
originX: b.get()
|
|
563
|
+
}, e.currentTarget.setPointerCapture(e.pointerId));
|
|
564
|
+
}, [r, b]), D = (0, W.useCallback)((e) => {
|
|
565
|
+
if (!y.current) return;
|
|
566
|
+
let t = e.clientX - y.current.clientX;
|
|
567
|
+
if (!g.current) {
|
|
568
|
+
if (Math.abs(t) < qe) return;
|
|
569
|
+
g.current = !0;
|
|
570
|
+
}
|
|
571
|
+
let n = $, r = We - $ - 20, i = y.current.originX + t;
|
|
572
|
+
b.set(Math.max(n, Math.min(r, i)));
|
|
573
|
+
}, [b]), O = (0, W.useCallback)((e) => {
|
|
574
|
+
y.current &&= (h(!1), g.current && (_.current = !0, g.current = !1, e && (b.get() > 14 / 2 === t ? Re(b, t ? 16 : $, i ?? P.moderate) : n()), requestAnimationFrame(() => {
|
|
575
|
+
_.current = !1;
|
|
576
|
+
})), null);
|
|
577
|
+
}, [
|
|
578
|
+
t,
|
|
579
|
+
n,
|
|
580
|
+
b,
|
|
581
|
+
i
|
|
582
|
+
]);
|
|
583
|
+
return /* @__PURE__ */ (0, X.jsxs)("div", {
|
|
584
|
+
ref: l,
|
|
585
|
+
className: v("relative z-10 flex items-center gap-2.5 px-3 py-2 cursor-pointer select-none touch-none", r && "opacity-50 pointer-events-none", s),
|
|
586
|
+
onPointerEnter: (e) => {
|
|
587
|
+
e.pointerType === "mouse" && p(!0);
|
|
588
|
+
},
|
|
589
|
+
onPointerLeave: () => p(!1),
|
|
590
|
+
onPointerDown: E,
|
|
591
|
+
onPointerMove: D,
|
|
592
|
+
onPointerUp: () => O(!0),
|
|
593
|
+
onPointerCancel: () => {
|
|
594
|
+
y.current &&= (h(!1), g.current && (g.current = !1, Re(b, t ? 16 : $, i ?? P.moderate)), null);
|
|
595
|
+
},
|
|
596
|
+
onClick: () => {
|
|
597
|
+
r || _.current || n();
|
|
598
|
+
},
|
|
599
|
+
...c,
|
|
600
|
+
children: [/* @__PURE__ */ (0, X.jsx)(Ue, {
|
|
601
|
+
checked: t,
|
|
602
|
+
"aria-labelledby": u,
|
|
603
|
+
onCheckedChange: () => {
|
|
604
|
+
_.current || n();
|
|
605
|
+
},
|
|
606
|
+
disabled: r,
|
|
607
|
+
tabIndex: 0,
|
|
608
|
+
className: v("relative shrink-0 rounded-full outline-none cursor-pointer", "transition-colors duration-80", "focus-visible:ring-1 focus-visible:ring-[color:var(--focus-ring,#6B97FF)] focus-visible:ring-offset-2 focus-visible:ring-offset-background"),
|
|
609
|
+
style: {
|
|
610
|
+
width: We,
|
|
611
|
+
height: Ge,
|
|
612
|
+
backgroundColor: t ? f ? "color-mix(in oklab, var(--primary) 88%, black)" : "var(--primary)" : f ? o ?? "color-mix(in oklab, var(--accent), rgb(var(--overlay)) 10%)" : a ?? "var(--accent)"
|
|
613
|
+
},
|
|
614
|
+
onClick: (e) => e.stopPropagation(),
|
|
615
|
+
children: /* @__PURE__ */ (0, X.jsx)(Z, { render: (e) => {
|
|
616
|
+
let { style: t, onDrag: n, onDragStart: r, onDragEnd: a, onAnimationStart: o, onAnimationEnd: s, onAnimationIteration: c, ...l } = e;
|
|
617
|
+
return /* @__PURE__ */ (0, X.jsx)(A.span, {
|
|
618
|
+
...l,
|
|
619
|
+
className: "absolute top-0 left-0 block rounded-full bg-white shadow-sm",
|
|
620
|
+
initial: !1,
|
|
621
|
+
style: {
|
|
622
|
+
...t,
|
|
623
|
+
x: b
|
|
624
|
+
},
|
|
625
|
+
animate: {
|
|
626
|
+
y: C,
|
|
627
|
+
width: x,
|
|
628
|
+
height: S
|
|
629
|
+
},
|
|
630
|
+
transition: d.current ? i ?? P.moderate : { duration: 0 }
|
|
631
|
+
});
|
|
632
|
+
} })
|
|
633
|
+
}), /* @__PURE__ */ (0, X.jsx)("span", {
|
|
634
|
+
id: u,
|
|
635
|
+
className: v("text-[13px] [text-box:trim-both_cap_alphabetic] transition-[color] duration-80", t ? "text-foreground" : "text-muted-foreground"),
|
|
636
|
+
children: e
|
|
637
|
+
})]
|
|
638
|
+
});
|
|
639
|
+
});
|
|
640
|
+
Ye.displayName = "FluidSwitch";
|
|
641
|
+
var Xe = (0, W.forwardRef)(({ checked: e, defaultChecked: t = !1, onCheckedChange: n, disabled: r = !1, className: i }, a) => {
|
|
642
|
+
let [o, s] = (0, W.useState)(t), c = e ?? o;
|
|
643
|
+
return /* @__PURE__ */ (0, X.jsx)(Ue, {
|
|
644
|
+
ref: a,
|
|
645
|
+
checked: c,
|
|
646
|
+
disabled: r,
|
|
647
|
+
onCheckedChange: (t) => {
|
|
648
|
+
e === void 0 && s(t), n?.(t);
|
|
649
|
+
},
|
|
650
|
+
className: v("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-xs transition-colors duration-80", "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--focus-ring,#6B97FF)]", "disabled:cursor-not-allowed disabled:opacity-50", "data-checked:bg-primary data-unchecked:bg-input", i),
|
|
651
|
+
children: /* @__PURE__ */ (0, X.jsx)(Z, { className: v("pointer-events-none block size-4 rounded-full bg-background shadow-sm ring-0 transition-transform duration-80", "data-checked:translate-x-4 data-unchecked:translate-x-0") })
|
|
652
|
+
});
|
|
653
|
+
});
|
|
654
|
+
Xe.displayName = "ShadcnSwitch";
|
|
655
|
+
var Ze = (0, W.forwardRef)((e, t) => Je(e) ? /* @__PURE__ */ (0, X.jsx)(Ye, {
|
|
656
|
+
ref: t,
|
|
657
|
+
...e
|
|
658
|
+
}) : /* @__PURE__ */ (0, X.jsx)(Xe, {
|
|
659
|
+
ref: t,
|
|
660
|
+
...e
|
|
661
|
+
}));
|
|
662
|
+
Ze.displayName = "Switch";
|
|
663
|
+
//#endregion
|
|
664
|
+
export { Ze as t };
|