@mcp-use/inspector 20.0.0-beta.4 → 20.0.0-beta.40
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 +31 -78
- package/dist/app/inspector.css.gz +0 -0
- package/dist/app/inspector.js.gz +0 -0
- package/dist/app/providers/anthropic.png +0 -0
- package/dist/app/providers/google.png +0 -0
- package/dist/app/providers/openai.png +0 -0
- package/dist/cli.js +74 -1398
- package/dist/client/index.d.ts +1402 -50
- package/dist/client/index.js +165 -24019
- package/dist/server/index.d.ts +79 -7
- package/dist/server/index.js +99 -23
- package/package.json +77 -35
- package/dist/cdn/AnimatePresence-Dcw-FOy8.js +0 -393
- package/dist/cdn/ChatTab-UQAPDRQG.js +0 -6744
- package/dist/cdn/CheckboxIndicator-Bt4IICtv.js +0 -251
- package/dist/cdn/ConnectionSettingsForm-DrY1p-NO.js +0 -929
- package/dist/cdn/ConnectionSettingsTab-B1cRD7hz.js +0 -150
- package/dist/cdn/ElicitationTab-CL1KJ0bz.js +0 -654
- package/dist/cdn/FormContext-tmgN_Vdr.js +0 -135
- package/dist/cdn/InspectorContext-UjtEbNod.js +0 -123
- package/dist/cdn/JSONDisplay-BFxf5oEu.js +0 -324
- package/dist/cdn/ListTabHeader-Cv-GmtGF.js +0 -88
- package/dist/cdn/ManufactOAuthCallback-B98kSYCj.js +0 -31
- package/dist/cdn/MarkdownRenderer-BoDJE8tP.js +0 -3610
- package/dist/cdn/NotificationsTab-CeImSrhx.js +0 -290
- package/dist/cdn/OAuthCallback-C9AvCkOn.js +0 -58
- package/dist/cdn/PromptsTab-CkAWyWVb.js +0 -901
- package/dist/cdn/ResourcesTab-BtBKxd4c.js +0 -564
- package/dist/cdn/SamplingTab-Czp7Rmhz.js +0 -658
- package/dist/cdn/ServerMetadataTab-CvrKX8fz.js +0 -244
- package/dist/cdn/StatusIcon-D0-ARyOh.js +0 -66
- package/dist/cdn/ToolsTab-Dm4vCB8D.js +0 -2033
- package/dist/cdn/ViewPreview-CZvl_7x-.js +0 -238
- package/dist/cdn/WidgetDebugContext-D4usL_MA.js +0 -324
- package/dist/cdn/WidgetWrapper-DeiogRXV.js +0 -2210
- package/dist/cdn/basePath-B8HuhIMu.js +0 -25
- package/dist/cdn/bell-CGjAO_0s.js +0 -10
- package/dist/cdn/browser-CbQIH4w2.js +0 -42
- package/dist/cdn/brush-B_mKhyxG.js +0 -17
- package/dist/cdn/card-DgiYnSg-.js +0 -41
- package/dist/cdn/cfWorker-Bxcs9rNe.js +0 -10799
- package/dist/cdn/checkbox-By0FklhG.js +0 -20
- package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +0 -1508
- package/dist/cdn/clock-CmUbSx_B.js +0 -12
- package/dist/cdn/code-V_0nf5rg.js +0 -10
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
- package/dist/cdn/dialog-BsDpuJd3.js +0 -1028
- package/dist/cdn/dist-3QLh0dt8.js +0 -2306
- package/dist/cdn/dist-DaMB0Su9.js +0 -616
- package/dist/cdn/external-link-CjmfT6rW.js +0 -17
- package/dist/cdn/eye-B7H96av8.js +0 -29
- package/dist/cdn/folder-open-B3lu2rG_.js +0 -7
- package/dist/cdn/hash-BVQnWi7q.js +0 -33
- package/dist/cdn/history-Csw4rb44.js +0 -17
- package/dist/cdn/index-browser-CIoYSwCt.js +0 -1934
- package/dist/cdn/info-CNiOwqkf.js +0 -19
- package/dist/cdn/input-C2OBd4PJ.js +0 -12160
- package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +0 -4
- package/dist/cdn/inspector.css +0 -2
- package/dist/cdn/inspector.js +0 -24523
- package/dist/cdn/jsx-runtime-CIxvMpEo.js +0 -180
- package/dist/cdn/label-B9Jmm9be.js +0 -60
- package/dist/cdn/loader-circle-BLy9A_pp.js +0 -7
- package/dist/cdn/manufact-auth-BQMHhbLV.js +0 -423
- package/dist/cdn/maximize-2-CH5Lq90B.js +0 -21
- package/dist/cdn/maximize-BALCV_ep.js +0 -21
- package/dist/cdn/message-square-BnxdpJxZ.js +0 -7
- package/dist/cdn/not-found-DEtSM_Wd.js +0 -34
- package/dist/cdn/play-vuZ5PLnI.js +0 -7
- package/dist/cdn/providerMeta-BQIfHuNL.js +0 -379
- package/dist/cdn/providers/anthropic.png +0 -0
- package/dist/cdn/providers/google.png +0 -0
- package/dist/cdn/providers/openai.png +0 -0
- package/dist/cdn/react-0oJnFpBS.js +0 -5425
- package/dist/cdn/react-BIs9pQ3H.js +0 -926
- package/dist/cdn/refresh-cw-BXY-Pa0U.js +0 -21
- package/dist/cdn/save-Tgil_AJZ.js +0 -34
- package/dist/cdn/schemaHelpers-DTV38jGq.js +0 -16
- package/dist/cdn/select-DDdiIPR2.js +0 -2594
- package/dist/cdn/servers-Dm72iTpY.js +0 -26
- package/dist/cdn/shared-DaILIQPP.js +0 -1700
- package/dist/cdn/sheet-Br_l2kry.js +0 -2077
- package/dist/cdn/sparkles-BntO2rDR.js +0 -23
- package/dist/cdn/spinner-jQtC7EBj.js +0 -15
- package/dist/cdn/square-check-big-BvwQ17Bl.js +0 -10
- package/dist/cdn/switch-C3IyQuid.js +0 -664
- package/dist/cdn/tabs-subtle-CkdI6Mac.js +0 -787
- package/dist/cdn/telemetry-BbhH1Z_E.js +0 -240
- package/dist/cdn/textarea-DSbwcFVt.js +0 -14
- package/dist/cdn/trash-2-RwpJY5SL.js +0 -25
- package/dist/cdn/useAriaLabelledBy-DqAdnppm.js +0 -29
- package/dist/cdn/useCompositeItem-BRqEzYh-.js +0 -26
- package/dist/cdn/useConfig-BNpU7Atw.js +0 -235
- package/dist/cdn/useSavedRequests-Ci2I919u.js +0 -51
- package/dist/cdn/useViewHostProps-ru80AnlT.js +0 -349
- package/dist/cdn/wrench-DzGmCfnb.js +0 -7
- package/dist/cdn/x-C3vRQIYu.js +0 -10
- package/dist/cdn/zap-Mb-pbw2X.js +0 -10
- package/dist/client/auth/manufact-auth.d.ts +0 -32
- package/dist/client/auth/manufact-auth.d.ts.map +0 -1
- package/dist/client/chat-history/ChatHistoryHeader.d.ts +0 -4
- package/dist/client/chat-history/ChatHistoryHeader.d.ts.map +0 -1
- package/dist/client/chat-history/ChatHistoryPanel.d.ts +0 -28
- package/dist/client/chat-history/ChatHistoryPanel.d.ts.map +0 -1
- package/dist/client/chat-history/ChatHistoryRail.d.ts +0 -5
- package/dist/client/chat-history/ChatHistoryRail.d.ts.map +0 -1
- package/dist/client/chat-history/ChatList.d.ts +0 -18
- package/dist/client/chat-history/ChatList.d.ts.map +0 -1
- package/dist/client/chat-history/ChatTitleReveal.d.ts +0 -10
- package/dist/client/chat-history/ChatTitleReveal.d.ts.map +0 -1
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts +0 -13
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts.map +0 -1
- package/dist/client/chat-history/chat-title.d.ts +0 -10
- package/dist/client/chat-history/chat-title.d.ts.map +0 -1
- package/dist/client/chat-history/providers/local-storage.d.ts +0 -21
- package/dist/client/chat-history/providers/local-storage.d.ts.map +0 -1
- package/dist/client/chat-history/types.d.ts +0 -39
- package/dist/client/chat-history/types.d.ts.map +0 -1
- package/dist/client/chat-history/useChatHistory.d.ts +0 -20
- package/dist/client/chat-history/useChatHistory.d.ts.map +0 -1
- package/dist/client/chat-history/useChatTitleGeneration.d.ts +0 -17
- package/dist/client/chat-history/useChatTitleGeneration.d.ts.map +0 -1
- package/dist/client/components/AddToClientDropdown.d.ts +0 -52
- package/dist/client/components/AddToClientDropdown.d.ts.map +0 -1
- package/dist/client/components/ChatTab.d.ts +0 -98
- package/dist/client/components/ChatTab.d.ts.map +0 -1
- package/dist/client/components/IframeConsole.d.ts +0 -7
- package/dist/client/components/IframeConsole.d.ts.map +0 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts +0 -19
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +0 -1
- package/dist/client/components/PromptsTab.d.ts +0 -34
- package/dist/client/components/PromptsTab.d.ts.map +0 -1
- package/dist/client/components/ResourcesTab.d.ts +0 -31
- package/dist/client/components/ResourcesTab.d.ts.map +0 -1
- package/dist/client/components/ToolsTab.d.ts +0 -39
- package/dist/client/components/ToolsTab.d.ts.map +0 -1
- package/dist/client/components/chat/AssistantMessage.d.ts +0 -10
- package/dist/client/components/chat/AssistantMessage.d.ts.map +0 -1
- package/dist/client/components/chat/ChatHeader.d.ts +0 -70
- package/dist/client/components/chat/ChatHeader.d.ts.map +0 -1
- package/dist/client/components/chat/ChatInput.d.ts +0 -29
- package/dist/client/components/chat/ChatInput.d.ts.map +0 -1
- package/dist/client/components/chat/ChatInputArea.d.ts +0 -65
- package/dist/client/components/chat/ChatInputArea.d.ts.map +0 -1
- package/dist/client/components/chat/ChatLandingForm.d.ts +0 -15
- package/dist/client/components/chat/ChatLandingForm.d.ts.map +0 -1
- package/dist/client/components/chat/ChatManagedNotice.d.ts +0 -10
- package/dist/client/components/chat/ChatManagedNotice.d.ts.map +0 -1
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts +0 -7
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts.map +0 -1
- package/dist/client/components/chat/ChatScrollTopFade.d.ts +0 -7
- package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +0 -1
- package/dist/client/components/chat/ChatTraceView.d.ts +0 -7
- package/dist/client/components/chat/ChatTraceView.d.ts.map +0 -1
- package/dist/client/components/chat/ConfigurationDialog.d.ts +0 -42
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +0 -1
- package/dist/client/components/chat/ConfigureEmptyState.d.ts +0 -6
- package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +0 -1
- package/dist/client/components/chat/CopyButton.d.ts +0 -10
- package/dist/client/components/chat/CopyButton.d.ts.map +0 -1
- package/dist/client/components/chat/FloatingChatElicitation.d.ts +0 -10
- package/dist/client/components/chat/FloatingChatElicitation.d.ts.map +0 -1
- package/dist/client/components/chat/McpReconnectBanner.d.ts +0 -10
- package/dist/client/components/chat/McpReconnectBanner.d.ts.map +0 -1
- package/dist/client/components/chat/MessageList.d.ts +0 -47
- package/dist/client/components/chat/MessageList.d.ts.map +0 -1
- package/dist/client/components/chat/MessageMetaActions.d.ts +0 -7
- package/dist/client/components/chat/MessageMetaActions.d.ts.map +0 -1
- package/dist/client/components/chat/PromptResultsList.d.ts +0 -8
- package/dist/client/components/chat/PromptResultsList.d.ts.map +0 -1
- package/dist/client/components/chat/PromptsDropdown.d.ts +0 -11
- package/dist/client/components/chat/PromptsDropdown.d.ts.map +0 -1
- package/dist/client/components/chat/StreamingAssistantContent.d.ts +0 -7
- package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +0 -1
- package/dist/client/components/chat/SystemPromptButton.d.ts +0 -11
- package/dist/client/components/chat/SystemPromptButton.d.ts.map +0 -1
- package/dist/client/components/chat/ToolCallDisplay.d.ts +0 -10
- package/dist/client/components/chat/ToolCallDisplay.d.ts.map +0 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts +0 -15
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +0 -1
- package/dist/client/components/chat/ToolSelector.d.ts +0 -13
- package/dist/client/components/chat/ToolSelector.d.ts.map +0 -1
- package/dist/client/components/chat/UserMessage.d.ts +0 -10
- package/dist/client/components/chat/UserMessage.d.ts.map +0 -1
- package/dist/client/components/chat/chat-bar-styles.d.ts +0 -6
- package/dist/client/components/chat/chat-bar-styles.d.ts.map +0 -1
- package/dist/client/components/chat/chatModeStorage.d.ts +0 -11
- package/dist/client/components/chat/chatModeStorage.d.ts.map +0 -1
- package/dist/client/components/chat/conversion.d.ts +0 -19
- package/dist/client/components/chat/conversion.d.ts.map +0 -1
- package/dist/client/components/chat/freeTier.d.ts +0 -32
- package/dist/client/components/chat/freeTier.d.ts.map +0 -1
- package/dist/client/components/chat/managedChatNotice.d.ts +0 -16
- package/dist/client/components/chat/managedChatNotice.d.ts.map +0 -1
- package/dist/client/components/chat/providerMeta.d.ts +0 -27
- package/dist/client/components/chat/providerMeta.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt/local-storage.d.ts +0 -5
- package/dist/client/components/chat/system-prompt/local-storage.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt/types.d.ts +0 -8
- package/dist/client/components/chat/system-prompt/types.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts +0 -3
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt-default.d.ts +0 -2
- package/dist/client/components/chat/system-prompt-default.d.ts.map +0 -1
- package/dist/client/components/chat/trace.d.ts +0 -84
- package/dist/client/components/chat/trace.d.ts.map +0 -1
- package/dist/client/components/chat/types.d.ts +0 -75
- package/dist/client/components/chat/types.d.ts.map +0 -1
- package/dist/client/components/chat/useChatMessages.d.ts +0 -76
- package/dist/client/components/chat/useChatMessages.d.ts.map +0 -1
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts +0 -43
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +0 -1
- package/dist/client/components/chat/useChatScrollToBottom.d.ts +0 -14
- package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +0 -1
- package/dist/client/components/chat/useConfig.d.ts +0 -24
- package/dist/client/components/chat/useConfig.d.ts.map +0 -1
- package/dist/client/components/chat/useHostedChatMode.d.ts +0 -14
- package/dist/client/components/chat/useHostedChatMode.d.ts.map +0 -1
- package/dist/client/components/chat/useManagedCloudModel.d.ts +0 -14
- package/dist/client/components/chat/useManagedCloudModel.d.ts.map +0 -1
- package/dist/client/components/chat/utils.d.ts +0 -11
- package/dist/client/components/chat/utils.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts +0 -12
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts +0 -9
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/schemaHelpers.d.ts +0 -8
- package/dist/client/components/elicitation/shared/schemaHelpers.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts +0 -13
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptInputForm.d.ts +0 -9
- package/dist/client/components/prompts/PromptInputForm.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptMessageCard.d.ts +0 -29
- package/dist/client/components/prompts/PromptMessageCard.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptResultDisplay.d.ts +0 -34
- package/dist/client/components/prompts/PromptResultDisplay.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptsList.d.ts +0 -10
- package/dist/client/components/prompts/PromptsList.d.ts.map +0 -1
- package/dist/client/components/prompts/SavedPromptsList.d.ts +0 -19
- package/dist/client/components/prompts/SavedPromptsList.d.ts.map +0 -1
- package/dist/client/components/resources/PropsConfigDialog.d.ts +0 -16
- package/dist/client/components/resources/PropsConfigDialog.d.ts.map +0 -1
- package/dist/client/components/resources/ResourceResultDisplay.d.ts +0 -30
- package/dist/client/components/resources/ResourceResultDisplay.d.ts.map +0 -1
- package/dist/client/components/resources/ResourcesList.d.ts +0 -10
- package/dist/client/components/resources/ResourcesList.d.ts.map +0 -1
- package/dist/client/components/shared/CollapsibleJSON.d.ts +0 -6
- package/dist/client/components/shared/CollapsibleJSON.d.ts.map +0 -1
- package/dist/client/components/shared/InspectorScrollArea.d.ts +0 -9
- package/dist/client/components/shared/InspectorScrollArea.d.ts.map +0 -1
- package/dist/client/components/shared/JSONDisplay.d.ts +0 -12
- package/dist/client/components/shared/JSONDisplay.d.ts.map +0 -1
- package/dist/client/components/shared/ListItem.d.ts +0 -24
- package/dist/client/components/shared/ListItem.d.ts.map +0 -1
- package/dist/client/components/shared/ListTabHeader.d.ts +0 -47
- package/dist/client/components/shared/ListTabHeader.d.ts.map +0 -1
- package/dist/client/components/shared/MarkdownRenderer.d.ts +0 -15
- package/dist/client/components/shared/MarkdownRenderer.d.ts.map +0 -1
- package/dist/client/components/shared/SchemaFormField.d.ts +0 -12
- package/dist/client/components/shared/SchemaFormField.d.ts.map +0 -1
- package/dist/client/components/shared/SearchTabHeader.d.ts +0 -28
- package/dist/client/components/shared/SearchTabHeader.d.ts.map +0 -1
- package/dist/client/components/shared/StatusIcon.d.ts +0 -12
- package/dist/client/components/shared/StatusIcon.d.ts.map +0 -1
- package/dist/client/components/shared/index.d.ts +0 -7
- package/dist/client/components/shared/index.d.ts.map +0 -1
- package/dist/client/components/tools/SaveRequestDialog.d.ts +0 -11
- package/dist/client/components/tools/SaveRequestDialog.d.ts.map +0 -1
- package/dist/client/components/tools/SavedRequestsList.d.ts +0 -19
- package/dist/client/components/tools/SavedRequestsList.d.ts.map +0 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts +0 -20
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +0 -1
- package/dist/client/components/tools/ToolInputForm.d.ts +0 -14
- package/dist/client/components/tools/ToolInputForm.d.ts.map +0 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +0 -24
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +0 -1
- package/dist/client/components/tools/ToolsList.d.ts +0 -10
- package/dist/client/components/tools/ToolsList.d.ts.map +0 -1
- package/dist/client/components/tools/schema-utils.d.ts +0 -13
- package/dist/client/components/tools/schema-utils.d.ts.map +0 -1
- package/dist/client/components/tools/useToolExecution.d.ts +0 -26
- package/dist/client/components/tools/useToolExecution.d.ts.map +0 -1
- package/dist/client/components/tools/useToolsTabNavigation.d.ts +0 -35
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +0 -1
- package/dist/client/components/ui/MeshGradientCanvas.d.ts +0 -13
- package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +0 -1
- package/dist/client/components/ui/WidgetWrapper.d.ts +0 -12
- package/dist/client/components/ui/WidgetWrapper.d.ts.map +0 -1
- package/dist/client/components/ui/alert-dialog.d.ts +0 -15
- package/dist/client/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/client/components/ui/ask-user-questions.d.ts +0 -80
- package/dist/client/components/ui/ask-user-questions.d.ts.map +0 -1
- package/dist/client/components/ui/badge.d.ts +0 -34
- package/dist/client/components/ui/badge.d.ts.map +0 -1
- package/dist/client/components/ui/blur-fade.d.ts +0 -25
- package/dist/client/components/ui/blur-fade.d.ts.map +0 -1
- package/dist/client/components/ui/button.d.ts +0 -34
- package/dist/client/components/ui/button.d.ts.map +0 -1
- package/dist/client/components/ui/chat-message.d.ts +0 -23
- package/dist/client/components/ui/chat-message.d.ts.map +0 -1
- package/dist/client/components/ui/checkbox.d.ts +0 -4
- package/dist/client/components/ui/checkbox.d.ts.map +0 -1
- package/dist/client/components/ui/client-icons.d.ts +0 -20
- package/dist/client/components/ui/client-icons.d.ts.map +0 -1
- package/dist/client/components/ui/command.d.ts +0 -17
- package/dist/client/components/ui/command.d.ts.map +0 -1
- package/dist/client/components/ui/dialog.d.ts +0 -37
- package/dist/client/components/ui/dialog.d.ts.map +0 -1
- package/dist/client/components/ui/dropdown-menu.d.ts +0 -25
- package/dist/client/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/client/components/ui/dropdown.d.ts +0 -30
- package/dist/client/components/ui/dropdown.d.ts.map +0 -1
- package/dist/client/components/ui/file-thumbnail.d.ts +0 -9
- package/dist/client/components/ui/file-thumbnail.d.ts.map +0 -1
- package/dist/client/components/ui/input.d.ts +0 -4
- package/dist/client/components/ui/input.d.ts.map +0 -1
- package/dist/client/components/ui/kbd.d.ts +0 -3
- package/dist/client/components/ui/kbd.d.ts.map +0 -1
- package/dist/client/components/ui/label.d.ts +0 -4
- package/dist/client/components/ui/label.d.ts.map +0 -1
- package/dist/client/components/ui/menu-item.d.ts +0 -52
- package/dist/client/components/ui/menu-item.d.ts.map +0 -1
- package/dist/client/components/ui/mesh-tab-background.d.ts +0 -12
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +0 -1
- package/dist/client/components/ui/not-found.d.ts +0 -9
- package/dist/client/components/ui/not-found.d.ts.map +0 -1
- package/dist/client/components/ui/popover.d.ts +0 -6
- package/dist/client/components/ui/popover.d.ts.map +0 -1
- package/dist/client/components/ui/resizable.d.ts +0 -10
- package/dist/client/components/ui/resizable.d.ts.map +0 -1
- package/dist/client/components/ui/scroll-area.d.ts +0 -4
- package/dist/client/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/client/components/ui/select.d.ts +0 -52
- package/dist/client/components/ui/select.d.ts.map +0 -1
- package/dist/client/components/ui/sheet.d.ts +0 -14
- package/dist/client/components/ui/sheet.d.ts.map +0 -1
- package/dist/client/components/ui/skeleton.d.ts +0 -4
- package/dist/client/components/ui/skeleton.d.ts.map +0 -1
- package/dist/client/components/ui/spinner.d.ts +0 -3
- package/dist/client/components/ui/spinner.d.ts.map +0 -1
- package/dist/client/components/ui/switch.d.ts +0 -22
- package/dist/client/components/ui/switch.d.ts.map +0 -1
- package/dist/client/components/ui/table.d.ts +0 -9
- package/dist/client/components/ui/table.d.ts.map +0 -1
- package/dist/client/components/ui/tabs-subtle.d.ts +0 -25
- package/dist/client/components/ui/tabs-subtle.d.ts.map +0 -1
- package/dist/client/components/ui/text-shimmer.d.ts +0 -11
- package/dist/client/components/ui/text-shimmer.d.ts.map +0 -1
- package/dist/client/components/ui/textarea.d.ts +0 -4
- package/dist/client/components/ui/textarea.d.ts.map +0 -1
- package/dist/client/components/ui/tooltip.d.ts +0 -43
- package/dist/client/components/ui/tooltip.d.ts.map +0 -1
- package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts +0 -19
- package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts.map +0 -1
- package/dist/client/console-log-bus.d.ts +0 -24
- package/dist/client/console-log-bus.d.ts.map +0 -1
- package/dist/client/constants/debug-options.d.ts +0 -16
- package/dist/client/constants/debug-options.d.ts.map +0 -1
- package/dist/client/context/InspectorContext.d.ts +0 -134
- package/dist/client/context/InspectorContext.d.ts.map +0 -1
- package/dist/client/context/ThemeContext.d.ts +0 -17
- package/dist/client/context/ThemeContext.d.ts.map +0 -1
- package/dist/client/context/WidgetDebugContext.d.ts +0 -121
- package/dist/client/context/WidgetDebugContext.d.ts.map +0 -1
- package/dist/client/hooks/use-merge-split.d.ts +0 -36
- package/dist/client/hooks/use-merge-split.d.ts.map +0 -1
- package/dist/client/hooks/use-proximity-hover-index.d.ts +0 -27
- package/dist/client/hooks/use-proximity-hover-index.d.ts.map +0 -1
- package/dist/client/hooks/use-proximity-hover.d.ts +0 -26
- package/dist/client/hooks/use-proximity-hover.d.ts.map +0 -1
- package/dist/client/hooks/use-touch-primary.d.ts +0 -2
- package/dist/client/hooks/use-touch-primary.d.ts.map +0 -1
- package/dist/client/hooks/useDeviceViewport.d.ts +0 -18
- package/dist/client/hooks/useDeviceViewport.d.ts.map +0 -1
- package/dist/client/hooks/useHostedSession.d.ts +0 -9
- package/dist/client/hooks/useHostedSession.d.ts.map +0 -1
- package/dist/client/hooks/useIframeConsole.d.ts +0 -24
- package/dist/client/hooks/useIframeConsole.d.ts.map +0 -1
- package/dist/client/hooks/useKeyboardShortcuts.d.ts +0 -28
- package/dist/client/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/client/hooks/useMCPPrompts.d.ts +0 -94
- package/dist/client/hooks/useMCPPrompts.d.ts.map +0 -1
- package/dist/client/hooks/useMcpAppsHostContext.d.ts +0 -27
- package/dist/client/hooks/useMcpAppsHostContext.d.ts.map +0 -1
- package/dist/client/hooks/usePropsLLM.d.ts +0 -20
- package/dist/client/hooks/usePropsLLM.d.ts.map +0 -1
- package/dist/client/hooks/useResourceProps.d.ts +0 -14
- package/dist/client/hooks/useResourceProps.d.ts.map +0 -1
- package/dist/client/hooks/useSavedRequests.d.ts +0 -6
- package/dist/client/hooks/useSavedRequests.d.ts.map +0 -1
- package/dist/client/hooks/useViewHostProps.d.ts +0 -19
- package/dist/client/hooks/useViewHostProps.d.ts.map +0 -1
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/lib/elevated.d.ts +0 -28
- package/dist/client/lib/elevated.d.ts.map +0 -1
- package/dist/client/lib/font-weight.d.ts +0 -10
- package/dist/client/lib/font-weight.d.ts.map +0 -1
- package/dist/client/lib/icon-context.d.ts +0 -15
- package/dist/client/lib/icon-context.d.ts.map +0 -1
- package/dist/client/lib/shape-context.d.ts +0 -21
- package/dist/client/lib/shape-context.d.ts.map +0 -1
- package/dist/client/lib/springs.d.ts +0 -32
- package/dist/client/lib/springs.d.ts.map +0 -1
- package/dist/client/lib/surface-classes.d.ts +0 -2
- package/dist/client/lib/surface-classes.d.ts.map +0 -1
- package/dist/client/lib/surface-context.d.ts +0 -7
- package/dist/client/lib/surface-context.d.ts.map +0 -1
- package/dist/client/lib/utils.d.ts +0 -3
- package/dist/client/lib/utils.d.ts.map +0 -1
- package/dist/client/mcp-apps/csp.d.ts +0 -26
- package/dist/client/mcp-apps/csp.d.ts.map +0 -1
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts +0 -17
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts.map +0 -1
- package/dist/client/mcp-apps/logging-transport.d.ts +0 -13
- package/dist/client/mcp-apps/logging-transport.d.ts.map +0 -1
- package/dist/client/rpc-traffic-coalesce.d.ts +0 -7
- package/dist/client/rpc-traffic-coalesce.d.ts.map +0 -1
- package/dist/client/rpc-traffic-store.d.ts +0 -37
- package/dist/client/rpc-traffic-store.d.ts.map +0 -1
- package/dist/client/telemetry/capture.d.ts +0 -7
- package/dist/client/telemetry/capture.d.ts.map +0 -1
- package/dist/client/telemetry/events.d.ts +0 -168
- package/dist/client/telemetry/events.d.ts.map +0 -1
- package/dist/client/telemetry/index.d.ts +0 -5
- package/dist/client/telemetry/index.d.ts.map +0 -1
- package/dist/client/telemetry/init.d.ts +0 -2
- package/dist/client/telemetry/init.d.ts.map +0 -1
- package/dist/client/telemetry/utils.d.ts +0 -7
- package/dist/client/telemetry/utils.d.ts.map +0 -1
- package/dist/client/types/message-content-block.d.ts +0 -19
- package/dist/client/types/message-content-block.d.ts.map +0 -1
- package/dist/client/types/pending-requests.d.ts +0 -17
- package/dist/client/types/pending-requests.d.ts.map +0 -1
- package/dist/client/utils/basePath.d.ts +0 -34
- package/dist/client/utils/basePath.d.ts.map +0 -1
- package/dist/client/utils/browser.d.ts +0 -5
- package/dist/client/utils/browser.d.ts.map +0 -1
- package/dist/client/utils/format.d.ts +0 -4
- package/dist/client/utils/format.d.ts.map +0 -1
- package/dist/client/utils/highlightJson.d.ts +0 -11
- package/dist/client/utils/highlightJson.d.ts.map +0 -1
- package/dist/client/utils/jsonUtils.d.ts +0 -24
- package/dist/client/utils/jsonUtils.d.ts.map +0 -1
- package/dist/client/utils/mcpClientUtils.d.ts +0 -131
- package/dist/client/utils/mcpClientUtils.d.ts.map +0 -1
- package/dist/client/utils/servers.d.ts +0 -14
- package/dist/client/utils/servers.d.ts.map +0 -1
- package/dist/server/asset-urls.d.ts +0 -18
- package/dist/server/asset-urls.d.ts.map +0 -1
- package/dist/server/asset-urls.js +0 -17
- package/dist/server/cdn-shell.d.ts +0 -18
- package/dist/server/cdn-shell.d.ts.map +0 -1
- package/dist/server/cdn-shell.js +0 -12
- package/dist/server/chunk-5L3HMC5B.js +0 -72
- package/dist/server/chunk-BEJGHVKM.js +0 -148
- package/dist/server/chunk-H6ZCIKBS.js +0 -63
- package/dist/server/chunk-IKTZUWSX.js +0 -0
- package/dist/server/chunk-J4FNYLBF.js +0 -54
- package/dist/server/chunk-K2F2AJOI.js +0 -619
- package/dist/server/chunk-KD7K27XK.js +0 -77
- package/dist/server/chunk-M5TZA42I.js +0 -54
- package/dist/server/chunk-OWR2BIBW.js +0 -40
- package/dist/server/chunk-PGN3B3MQ.js +0 -156
- package/dist/server/chunk-PKBMQBKP.js +0 -7
- package/dist/server/chunk-UJLXHNQP.js +0 -43
- package/dist/server/chunk-WFT4JHYI.js +0 -24
- package/dist/server/chunk-XCNS5CIW.js +0 -199
- package/dist/server/cli.d.ts +0 -3
- package/dist/server/cli.d.ts.map +0 -1
- package/dist/server/cli.js +0 -141
- package/dist/server/create-dev-api-app.d.ts +0 -4
- package/dist/server/create-dev-api-app.d.ts.map +0 -1
- package/dist/server/create-dev-api-app.js +0 -11
- package/dist/server/dev-callback-redirect.d.ts +0 -3
- package/dist/server/dev-callback-redirect.d.ts.map +0 -1
- package/dist/server/dev-callback-redirect.js +0 -18
- package/dist/server/favicon-links.d.ts +0 -12
- package/dist/server/favicon-links.d.ts.map +0 -1
- package/dist/server/favicon-links.js +0 -11
- package/dist/server/favicon-static.d.ts +0 -4
- package/dist/server/favicon-static.d.ts.map +0 -1
- package/dist/server/favicon-static.js +0 -8
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/middleware.d.ts +0 -40
- package/dist/server/middleware.d.ts.map +0 -1
- package/dist/server/middleware.js +0 -17
- package/dist/server/proxy/index.d.ts +0 -3
- package/dist/server/proxy/index.d.ts.map +0 -1
- package/dist/server/proxy/index.js +0 -12
- package/dist/server/proxy/mcp-proxy.d.ts +0 -101
- package/dist/server/proxy/mcp-proxy.d.ts.map +0 -1
- package/dist/server/proxy/mcp-proxy.js +0 -10
- package/dist/server/proxy/oauth-proxy.d.ts +0 -26
- package/dist/server/proxy/oauth-proxy.d.ts.map +0 -1
- package/dist/server/proxy/oauth-proxy.js +0 -9
- package/dist/server/proxy-routes.d.ts +0 -16
- package/dist/server/proxy-routes.d.ts.map +0 -1
- package/dist/server/proxy-routes.js +0 -10
- package/dist/server/rpc-log-bus.d.ts +0 -17
- package/dist/server/rpc-log-bus.d.ts.map +0 -1
- package/dist/server/rpc-log-bus.js +0 -77
- package/dist/server/server.d.ts +0 -15
- package/dist/server/server.d.ts.map +0 -1
- package/dist/server/server.js +0 -66
- package/dist/server/static-assets.d.ts +0 -5
- package/dist/server/static-assets.d.ts.map +0 -1
- package/dist/server/static-assets.js +0 -9
- package/dist/server/utils.d.ts +0 -33
- package/dist/server/utils.d.ts.map +0 -1
- package/dist/server/utils.js +0 -17
- package/dist/server/version.d.ts +0 -7
- package/dist/server/version.d.ts.map +0 -1
- package/dist/server/version.js +0 -9
- package/dist/server/vite-dev-api-plugin.d.ts +0 -4
- package/dist/server/vite-dev-api-plugin.d.ts.map +0 -1
- package/dist/server/vite-dev-api-plugin.js +0 -30
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/assets/AnimatePresence-C5p0yiY1.js +0 -9
- package/dist/web/assets/ChatTab-B_5S87J1.js +0 -18
- package/dist/web/assets/ConnectionSettingsTab-XwjwKfsO.js +0 -1
- package/dist/web/assets/ElicitationTab-BD1tfmYR.js +0 -1
- package/dist/web/assets/FormContext-DH2caWKO.js +0 -1
- package/dist/web/assets/ListTabHeader-R17w_JsB.js +0 -1
- package/dist/web/assets/ManufactOAuthCallback-DD3qfIC3.js +0 -1
- package/dist/web/assets/MarkdownRenderer-DH-7vpw0.js +0 -47
- package/dist/web/assets/NotificationsTab-Cg48O6IH.js +0 -1
- package/dist/web/assets/OAuthCallback-4i2i3YpE.js +0 -1
- package/dist/web/assets/PromptsTab-pAR6izrQ.js +0 -15
- package/dist/web/assets/ResourcesTab-CgvfWrsU.js +0 -2
- package/dist/web/assets/SamplingTab-DfIWMQFY.js +0 -1
- package/dist/web/assets/ServerMetadataTab-Dsz8Qhyr.js +0 -1
- package/dist/web/assets/ToolsTab-ln9w58BW.js +0 -8
- package/dist/web/assets/ViewPreview-CQ3G3VP0.js +0 -1
- package/dist/web/assets/WidgetWrapper-A-zaxY5s.js +0 -34
- package/dist/web/assets/brush--0LobUi4.js +0 -1
- package/dist/web/assets/checkbox-DZWS_U_i.js +0 -1
- package/dist/web/assets/code-tME-5H6D.js +0 -1
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
- package/dist/web/assets/dist-DxRFPg-B.js +0 -21
- package/dist/web/assets/index-CoRK2C3M.js +0 -492
- package/dist/web/assets/index-fBX3akc8.css +0 -1
- package/dist/web/assets/input-CLYhA7PK.js +0 -1
- package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +0 -1
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
- package/dist/web/assets/label-Cdim77Jw.js +0 -1
- package/dist/web/assets/maximize-2-BTT9QQU9.js +0 -1
- package/dist/web/assets/maximize-_O55kFcr.js +0 -1
- package/dist/web/assets/react-CU_d2d5K.js +0 -1
- package/dist/web/assets/refresh-cw-C9wQl8_d.js +0 -1
- package/dist/web/assets/save-B-MsgxX9.js +0 -1
- package/dist/web/assets/schemaHelpers-DLNTQr_6.js +0 -1
- package/dist/web/assets/select-CJ57-Bor.js +0 -1
- package/dist/web/assets/shared-Dbc2GbRx.js +0 -1
- package/dist/web/assets/sparkles-2OAsc1aP.js +0 -1
- package/dist/web/assets/tabs-subtle-CxMZqhP6.js +0 -1
- package/dist/web/assets/textarea-DLAmNVf_.js +0 -1
- package/dist/web/assets/useConfig-Cg-BtSHA.js +0 -1
- package/dist/web/assets/useViewHostProps-CMgPpdfy.js +0 -1
- package/dist/web/assets/zap-Du2Uc5pa.js +0 -1
- package/dist/web/favicon-96x96.png +0 -0
- package/dist/web/favicon-black.svg +0 -5
- package/dist/web/favicon-white.svg +0 -5
- package/dist/web/favicon.ico +0 -0
- package/dist/web/favicon.svg +0 -5
- package/dist/web/index.html +0 -89
- package/dist/web/providers/anthropic.png +0 -0
- package/dist/web/providers/google.png +0 -0
- package/dist/web/providers/openai.png +0 -0
- package/dist/web/site.webmanifest +0 -21
- package/dist/web/web-app-manifest-192x192.png +0 -0
- package/dist/web/web-app-manifest-512x512.png +0 -0
- /package/dist/{cdn → app}/apple-touch-icon.png +0 -0
- /package/dist/{cdn → app}/favicon-96x96.png +0 -0
- /package/dist/{cdn → app}/favicon-black.svg +0 -0
- /package/dist/{cdn → app}/favicon-white.svg +0 -0
- /package/dist/{cdn → app}/favicon.ico +0 -0
- /package/dist/{cdn → app}/favicon.svg +0 -0
- /package/dist/{cdn → app}/site.webmanifest +0 -0
- /package/dist/{cdn → app}/web-app-manifest-192x192.png +0 -0
- /package/dist/{cdn → app}/web-app-manifest-512x512.png +0 -0
|
@@ -1,616 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { Br as n } from "./input-C2OBd4PJ.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/sonner@2.0.7_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/sonner/dist/index.mjs
|
|
4
|
-
var r = /* @__PURE__ */ e(t(), 1), i = /* @__PURE__ */ e(n(), 1);
|
|
5
|
-
function a(e) {
|
|
6
|
-
if (!e || typeof document > "u") return;
|
|
7
|
-
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
8
|
-
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
9
|
-
}
|
|
10
|
-
var o = (e) => {
|
|
11
|
-
switch (e) {
|
|
12
|
-
case "success": return l;
|
|
13
|
-
case "info": return d;
|
|
14
|
-
case "warning": return u;
|
|
15
|
-
case "error": return f;
|
|
16
|
-
default: return null;
|
|
17
|
-
}
|
|
18
|
-
}, s = Array(12).fill(0), c = ({ visible: e, className: t }) => /*#__PURE__*/ r.createElement("div", {
|
|
19
|
-
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
|
|
20
|
-
"data-visible": e
|
|
21
|
-
}, /*#__PURE__*/ r.createElement("div", { className: "sonner-spinner" }, s.map((e, t) => /*#__PURE__*/ r.createElement("div", {
|
|
22
|
-
className: "sonner-loading-bar",
|
|
23
|
-
key: `spinner-bar-${t}`
|
|
24
|
-
})))), l = /*#__PURE__*/ r.createElement("svg", {
|
|
25
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
-
viewBox: "0 0 20 20",
|
|
27
|
-
fill: "currentColor",
|
|
28
|
-
height: "20",
|
|
29
|
-
width: "20"
|
|
30
|
-
}, /*#__PURE__*/ r.createElement("path", {
|
|
31
|
-
fillRule: "evenodd",
|
|
32
|
-
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
|
|
33
|
-
clipRule: "evenodd"
|
|
34
|
-
})), u = /*#__PURE__*/ r.createElement("svg", {
|
|
35
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
-
viewBox: "0 0 24 24",
|
|
37
|
-
fill: "currentColor",
|
|
38
|
-
height: "20",
|
|
39
|
-
width: "20"
|
|
40
|
-
}, /*#__PURE__*/ r.createElement("path", {
|
|
41
|
-
fillRule: "evenodd",
|
|
42
|
-
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
43
|
-
clipRule: "evenodd"
|
|
44
|
-
})), d = /*#__PURE__*/ r.createElement("svg", {
|
|
45
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
-
viewBox: "0 0 20 20",
|
|
47
|
-
fill: "currentColor",
|
|
48
|
-
height: "20",
|
|
49
|
-
width: "20"
|
|
50
|
-
}, /*#__PURE__*/ r.createElement("path", {
|
|
51
|
-
fillRule: "evenodd",
|
|
52
|
-
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
|
|
53
|
-
clipRule: "evenodd"
|
|
54
|
-
})), f = /*#__PURE__*/ r.createElement("svg", {
|
|
55
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
56
|
-
viewBox: "0 0 20 20",
|
|
57
|
-
fill: "currentColor",
|
|
58
|
-
height: "20",
|
|
59
|
-
width: "20"
|
|
60
|
-
}, /*#__PURE__*/ r.createElement("path", {
|
|
61
|
-
fillRule: "evenodd",
|
|
62
|
-
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
|
|
63
|
-
clipRule: "evenodd"
|
|
64
|
-
})), p = /*#__PURE__*/ r.createElement("svg", {
|
|
65
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
66
|
-
width: "12",
|
|
67
|
-
height: "12",
|
|
68
|
-
viewBox: "0 0 24 24",
|
|
69
|
-
fill: "none",
|
|
70
|
-
stroke: "currentColor",
|
|
71
|
-
strokeWidth: "1.5",
|
|
72
|
-
strokeLinecap: "round",
|
|
73
|
-
strokeLinejoin: "round"
|
|
74
|
-
}, /*#__PURE__*/ r.createElement("line", {
|
|
75
|
-
x1: "18",
|
|
76
|
-
y1: "6",
|
|
77
|
-
x2: "6",
|
|
78
|
-
y2: "18"
|
|
79
|
-
}), /*#__PURE__*/ r.createElement("line", {
|
|
80
|
-
x1: "6",
|
|
81
|
-
y1: "6",
|
|
82
|
-
x2: "18",
|
|
83
|
-
y2: "18"
|
|
84
|
-
})), ee = () => {
|
|
85
|
-
let [e, t] = r.useState(document.hidden);
|
|
86
|
-
return r.useEffect(() => {
|
|
87
|
-
let e = () => {
|
|
88
|
-
t(document.hidden);
|
|
89
|
-
};
|
|
90
|
-
return document.addEventListener("visibilitychange", e), () => window.removeEventListener("visibilitychange", e);
|
|
91
|
-
}, []), e;
|
|
92
|
-
}, m = 1, h = new class {
|
|
93
|
-
constructor() {
|
|
94
|
-
this.subscribe = (e) => (this.subscribers.push(e), () => {
|
|
95
|
-
let t = this.subscribers.indexOf(e);
|
|
96
|
-
this.subscribers.splice(t, 1);
|
|
97
|
-
}), this.publish = (e) => {
|
|
98
|
-
this.subscribers.forEach((t) => t(e));
|
|
99
|
-
}, this.addToast = (e) => {
|
|
100
|
-
this.publish(e), this.toasts = [...this.toasts, e];
|
|
101
|
-
}, this.create = (e) => {
|
|
102
|
-
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id : m++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 ? !0 : e.dismissible;
|
|
103
|
-
return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), i ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
|
|
104
|
-
...n,
|
|
105
|
-
...e,
|
|
106
|
-
id: r,
|
|
107
|
-
title: t
|
|
108
|
-
}), {
|
|
109
|
-
...n,
|
|
110
|
-
...e,
|
|
111
|
-
id: r,
|
|
112
|
-
dismissible: a,
|
|
113
|
-
title: t
|
|
114
|
-
}) : n) : this.addToast({
|
|
115
|
-
title: t,
|
|
116
|
-
...n,
|
|
117
|
-
dismissible: a,
|
|
118
|
-
id: r
|
|
119
|
-
}), r;
|
|
120
|
-
}, this.dismiss = (e) => (e ? (this.dismissedToasts.add(e), requestAnimationFrame(() => this.subscribers.forEach((t) => t({
|
|
121
|
-
id: e,
|
|
122
|
-
dismiss: !0
|
|
123
|
-
})))) : this.toasts.forEach((e) => {
|
|
124
|
-
this.subscribers.forEach((t) => t({
|
|
125
|
-
id: e.id,
|
|
126
|
-
dismiss: !0
|
|
127
|
-
}));
|
|
128
|
-
}), e), this.message = (e, t) => this.create({
|
|
129
|
-
...t,
|
|
130
|
-
message: e
|
|
131
|
-
}), this.error = (e, t) => this.create({
|
|
132
|
-
...t,
|
|
133
|
-
message: e,
|
|
134
|
-
type: "error"
|
|
135
|
-
}), this.success = (e, t) => this.create({
|
|
136
|
-
...t,
|
|
137
|
-
type: "success",
|
|
138
|
-
message: e
|
|
139
|
-
}), this.info = (e, t) => this.create({
|
|
140
|
-
...t,
|
|
141
|
-
type: "info",
|
|
142
|
-
message: e
|
|
143
|
-
}), this.warning = (e, t) => this.create({
|
|
144
|
-
...t,
|
|
145
|
-
type: "warning",
|
|
146
|
-
message: e
|
|
147
|
-
}), this.loading = (e, t) => this.create({
|
|
148
|
-
...t,
|
|
149
|
-
type: "loading",
|
|
150
|
-
message: e
|
|
151
|
-
}), this.promise = (e, t) => {
|
|
152
|
-
if (!t) return;
|
|
153
|
-
let n;
|
|
154
|
-
t.loading !== void 0 && (n = this.create({
|
|
155
|
-
...t,
|
|
156
|
-
promise: e,
|
|
157
|
-
type: "loading",
|
|
158
|
-
message: t.loading,
|
|
159
|
-
description: typeof t.description == "function" ? void 0 : t.description
|
|
160
|
-
}));
|
|
161
|
-
let i = Promise.resolve(e instanceof Function ? e() : e), a = n !== void 0, o, s = i.then(async (e) => {
|
|
162
|
-
if (o = ["resolve", e], r.isValidElement(e)) a = !1, this.create({
|
|
163
|
-
id: n,
|
|
164
|
-
type: "default",
|
|
165
|
-
message: e
|
|
166
|
-
});
|
|
167
|
-
else if (_(e) && !e.ok) {
|
|
168
|
-
a = !1;
|
|
169
|
-
let i = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, o = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, s = typeof i == "object" && !r.isValidElement(i) ? i : { message: i };
|
|
170
|
-
this.create({
|
|
171
|
-
id: n,
|
|
172
|
-
type: "error",
|
|
173
|
-
description: o,
|
|
174
|
-
...s
|
|
175
|
-
});
|
|
176
|
-
} else if (e instanceof Error) {
|
|
177
|
-
a = !1;
|
|
178
|
-
let i = typeof t.error == "function" ? await t.error(e) : t.error, o = typeof t.description == "function" ? await t.description(e) : t.description, s = typeof i == "object" && !r.isValidElement(i) ? i : { message: i };
|
|
179
|
-
this.create({
|
|
180
|
-
id: n,
|
|
181
|
-
type: "error",
|
|
182
|
-
description: o,
|
|
183
|
-
...s
|
|
184
|
-
});
|
|
185
|
-
} else if (t.success !== void 0) {
|
|
186
|
-
a = !1;
|
|
187
|
-
let i = typeof t.success == "function" ? await t.success(e) : t.success, o = typeof t.description == "function" ? await t.description(e) : t.description, s = typeof i == "object" && !r.isValidElement(i) ? i : { message: i };
|
|
188
|
-
this.create({
|
|
189
|
-
id: n,
|
|
190
|
-
type: "success",
|
|
191
|
-
description: o,
|
|
192
|
-
...s
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
}).catch(async (e) => {
|
|
196
|
-
if (o = ["reject", e], t.error !== void 0) {
|
|
197
|
-
a = !1;
|
|
198
|
-
let i = typeof t.error == "function" ? await t.error(e) : t.error, o = typeof t.description == "function" ? await t.description(e) : t.description, s = typeof i == "object" && !r.isValidElement(i) ? i : { message: i };
|
|
199
|
-
this.create({
|
|
200
|
-
id: n,
|
|
201
|
-
type: "error",
|
|
202
|
-
description: o,
|
|
203
|
-
...s
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
}).finally(() => {
|
|
207
|
-
a && (this.dismiss(n), n = void 0), t.finally == null || t.finally.call(t);
|
|
208
|
-
}), c = () => new Promise((e, t) => s.then(() => o[0] === "reject" ? t(o[1]) : e(o[1])).catch(t));
|
|
209
|
-
return typeof n != "string" && typeof n != "number" ? { unwrap: c } : Object.assign(n, { unwrap: c });
|
|
210
|
-
}, this.custom = (e, t) => {
|
|
211
|
-
let n = t?.id || m++;
|
|
212
|
-
return this.create({
|
|
213
|
-
jsx: e(n),
|
|
214
|
-
id: n,
|
|
215
|
-
...t
|
|
216
|
-
}), n;
|
|
217
|
-
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
218
|
-
}
|
|
219
|
-
}(), g = (e, t) => {
|
|
220
|
-
let n = t?.id || m++;
|
|
221
|
-
return h.addToast({
|
|
222
|
-
title: e,
|
|
223
|
-
...t,
|
|
224
|
-
id: n
|
|
225
|
-
}), n;
|
|
226
|
-
}, _ = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", v = Object.assign(g, {
|
|
227
|
-
success: h.success,
|
|
228
|
-
info: h.info,
|
|
229
|
-
warning: h.warning,
|
|
230
|
-
error: h.error,
|
|
231
|
-
custom: h.custom,
|
|
232
|
-
message: h.message,
|
|
233
|
-
promise: h.promise,
|
|
234
|
-
dismiss: h.dismiss,
|
|
235
|
-
loading: h.loading
|
|
236
|
-
}, {
|
|
237
|
-
getHistory: () => h.toasts,
|
|
238
|
-
getToasts: () => h.getActiveToasts()
|
|
239
|
-
});
|
|
240
|
-
a("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
241
|
-
function y(e) {
|
|
242
|
-
return e.label !== void 0;
|
|
243
|
-
}
|
|
244
|
-
var te = 3, b = "24px", x = "16px", S = 4e3, C = 356, w = 14, T = 45, E = 200;
|
|
245
|
-
function D(...e) {
|
|
246
|
-
return e.filter(Boolean).join(" ");
|
|
247
|
-
}
|
|
248
|
-
function ne(e) {
|
|
249
|
-
let [t, n] = e.split("-"), r = [];
|
|
250
|
-
return t && r.push(t), n && r.push(n), r;
|
|
251
|
-
}
|
|
252
|
-
var O = (e) => {
|
|
253
|
-
let { invert: t, toast: n, unstyled: i, interacting: a, setHeights: s, visibleToasts: l, heights: u, index: d, toasts: f, expanded: m, removeToast: h, defaultRichColors: g, closeButton: _, style: v, cancelButtonStyle: te, actionButtonStyle: b, className: x = "", descriptionClassName: C = "", duration: w, position: O, gap: k, expandByDefault: A, classNames: j, icons: M, closeButtonAriaLabel: re = "Close toast" } = e, [N, P] = r.useState(null), [F, ie] = r.useState(null), [I, L] = r.useState(!1), [R, z] = r.useState(!1), [B, V] = r.useState(!1), [ae, oe] = r.useState(!1), [se, ce] = r.useState(!1), [le, H] = r.useState(0), [ue, U] = r.useState(0), W = r.useRef(n.duration || w || S), de = r.useRef(null), G = r.useRef(null), fe = d === 0, pe = d + 1 <= l, K = n.type, q = n.dismissible !== !1, me = n.className || "", he = n.descriptionClassName || "", J = r.useMemo(() => u.findIndex((e) => e.toastId === n.id) || 0, [u, n.id]), ge = r.useMemo(() => n.closeButton ?? _, [n.closeButton, _]), _e = r.useMemo(() => n.duration || w || S, [n.duration, w]), Y = r.useRef(0), X = r.useRef(0), ve = r.useRef(0), Z = r.useRef(null), [ye, be] = O.split("-"), xe = r.useMemo(() => u.reduce((e, t, n) => n >= J ? e : e + t.height, 0), [u, J]), Se = ee(), Ce = n.invert || t, Q = K === "loading";
|
|
254
|
-
X.current = r.useMemo(() => J * k + xe, [J, xe]), r.useEffect(() => {
|
|
255
|
-
W.current = _e;
|
|
256
|
-
}, [_e]), r.useEffect(() => {
|
|
257
|
-
L(!0);
|
|
258
|
-
}, []), r.useEffect(() => {
|
|
259
|
-
let e = G.current;
|
|
260
|
-
if (e) {
|
|
261
|
-
let t = e.getBoundingClientRect().height;
|
|
262
|
-
return U(t), s((e) => [{
|
|
263
|
-
toastId: n.id,
|
|
264
|
-
height: t,
|
|
265
|
-
position: n.position
|
|
266
|
-
}, ...e]), () => s((e) => e.filter((e) => e.toastId !== n.id));
|
|
267
|
-
}
|
|
268
|
-
}, [s, n.id]), r.useLayoutEffect(() => {
|
|
269
|
-
if (!I) return;
|
|
270
|
-
let e = G.current, t = e.style.height;
|
|
271
|
-
e.style.height = "auto";
|
|
272
|
-
let r = e.getBoundingClientRect().height;
|
|
273
|
-
e.style.height = t, U(r), s((e) => e.find((e) => e.toastId === n.id) ? e.map((e) => e.toastId === n.id ? {
|
|
274
|
-
...e,
|
|
275
|
-
height: r
|
|
276
|
-
} : e) : [{
|
|
277
|
-
toastId: n.id,
|
|
278
|
-
height: r,
|
|
279
|
-
position: n.position
|
|
280
|
-
}, ...e]);
|
|
281
|
-
}, [
|
|
282
|
-
I,
|
|
283
|
-
n.title,
|
|
284
|
-
n.description,
|
|
285
|
-
s,
|
|
286
|
-
n.id,
|
|
287
|
-
n.jsx,
|
|
288
|
-
n.action,
|
|
289
|
-
n.cancel
|
|
290
|
-
]);
|
|
291
|
-
let $ = r.useCallback(() => {
|
|
292
|
-
z(!0), H(X.current), s((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
|
|
293
|
-
h(n);
|
|
294
|
-
}, E);
|
|
295
|
-
}, [
|
|
296
|
-
n,
|
|
297
|
-
h,
|
|
298
|
-
s,
|
|
299
|
-
X
|
|
300
|
-
]);
|
|
301
|
-
r.useEffect(() => {
|
|
302
|
-
if (n.promise && K === "loading" || n.duration === Infinity || n.type === "loading") return;
|
|
303
|
-
let e;
|
|
304
|
-
return m || a || Se ? (() => {
|
|
305
|
-
if (ve.current < Y.current) {
|
|
306
|
-
let e = (/* @__PURE__ */ new Date()).getTime() - Y.current;
|
|
307
|
-
W.current -= e;
|
|
308
|
-
}
|
|
309
|
-
ve.current = (/* @__PURE__ */ new Date()).getTime();
|
|
310
|
-
})() : W.current !== Infinity && (Y.current = (/* @__PURE__ */ new Date()).getTime(), e = setTimeout(() => {
|
|
311
|
-
n.onAutoClose == null || n.onAutoClose.call(n, n), $();
|
|
312
|
-
}, W.current)), () => clearTimeout(e);
|
|
313
|
-
}, [
|
|
314
|
-
m,
|
|
315
|
-
a,
|
|
316
|
-
n,
|
|
317
|
-
K,
|
|
318
|
-
Se,
|
|
319
|
-
$
|
|
320
|
-
]), r.useEffect(() => {
|
|
321
|
-
n.delete && ($(), n.onDismiss == null || n.onDismiss.call(n, n));
|
|
322
|
-
}, [$, n.delete]);
|
|
323
|
-
function we() {
|
|
324
|
-
return M?.loading ? /*#__PURE__*/ r.createElement("div", {
|
|
325
|
-
className: D(j?.loader, n?.classNames?.loader, "sonner-loader"),
|
|
326
|
-
"data-visible": K === "loading"
|
|
327
|
-
}, M.loading) : /*#__PURE__*/ r.createElement(c, {
|
|
328
|
-
className: D(j?.loader, n?.classNames?.loader),
|
|
329
|
-
visible: K === "loading"
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
let Te = n.icon || M?.[K] || o(K);
|
|
333
|
-
return /*#__PURE__*/ r.createElement("li", {
|
|
334
|
-
tabIndex: 0,
|
|
335
|
-
ref: G,
|
|
336
|
-
className: D(x, me, j?.toast, n?.classNames?.toast, j?.default, j?.[K], n?.classNames?.[K]),
|
|
337
|
-
"data-sonner-toast": "",
|
|
338
|
-
"data-rich-colors": n.richColors ?? g,
|
|
339
|
-
"data-styled": !(n.jsx || n.unstyled || i),
|
|
340
|
-
"data-mounted": I,
|
|
341
|
-
"data-promise": !!n.promise,
|
|
342
|
-
"data-swiped": se,
|
|
343
|
-
"data-removed": R,
|
|
344
|
-
"data-visible": pe,
|
|
345
|
-
"data-y-position": ye,
|
|
346
|
-
"data-x-position": be,
|
|
347
|
-
"data-index": d,
|
|
348
|
-
"data-front": fe,
|
|
349
|
-
"data-swiping": B,
|
|
350
|
-
"data-dismissible": q,
|
|
351
|
-
"data-type": K,
|
|
352
|
-
"data-invert": Ce,
|
|
353
|
-
"data-swipe-out": ae,
|
|
354
|
-
"data-swipe-direction": F,
|
|
355
|
-
"data-expanded": !!(m || A && I),
|
|
356
|
-
"data-testid": n.testId,
|
|
357
|
-
style: {
|
|
358
|
-
"--index": d,
|
|
359
|
-
"--toasts-before": d,
|
|
360
|
-
"--z-index": f.length - d,
|
|
361
|
-
"--offset": `${R ? le : X.current}px`,
|
|
362
|
-
"--initial-height": A ? "auto" : `${ue}px`,
|
|
363
|
-
...v,
|
|
364
|
-
...n.style
|
|
365
|
-
},
|
|
366
|
-
onDragEnd: () => {
|
|
367
|
-
V(!1), P(null), Z.current = null;
|
|
368
|
-
},
|
|
369
|
-
onPointerDown: (e) => {
|
|
370
|
-
e.button !== 2 && (Q || !q || (de.current = /* @__PURE__ */ new Date(), H(X.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (V(!0), Z.current = {
|
|
371
|
-
x: e.clientX,
|
|
372
|
-
y: e.clientY
|
|
373
|
-
})));
|
|
374
|
-
},
|
|
375
|
-
onPointerUp: () => {
|
|
376
|
-
if (ae || !q) return;
|
|
377
|
-
Z.current = null;
|
|
378
|
-
let e = Number(G.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(G.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - de.current?.getTime(), i = N === "x" ? e : t, a = Math.abs(i) / r;
|
|
379
|
-
if (Math.abs(i) >= T || a > .11) {
|
|
380
|
-
H(X.current), n.onDismiss == null || n.onDismiss.call(n, n), ie(N === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), $(), oe(!0);
|
|
381
|
-
return;
|
|
382
|
-
} else {
|
|
383
|
-
var o, s;
|
|
384
|
-
(o = G.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = G.current) == null || s.style.setProperty("--swipe-amount-y", "0px");
|
|
385
|
-
}
|
|
386
|
-
ce(!1), V(!1), P(null);
|
|
387
|
-
},
|
|
388
|
-
onPointerMove: (t) => {
|
|
389
|
-
var n, r;
|
|
390
|
-
if (!Z.current || !q || window.getSelection()?.toString().length > 0) return;
|
|
391
|
-
let i = t.clientY - Z.current.y, a = t.clientX - Z.current.x, o = e.swipeDirections ?? ne(O);
|
|
392
|
-
!N && (Math.abs(a) > 1 || Math.abs(i) > 1) && P(Math.abs(a) > Math.abs(i) ? "x" : "y");
|
|
393
|
-
let s = {
|
|
394
|
-
x: 0,
|
|
395
|
-
y: 0
|
|
396
|
-
}, c = (e) => 1 / (1.5 + Math.abs(e) / 20);
|
|
397
|
-
if (N === "y") {
|
|
398
|
-
if (o.includes("top") || o.includes("bottom")) if (o.includes("top") && i < 0 || o.includes("bottom") && i > 0) s.y = i;
|
|
399
|
-
else {
|
|
400
|
-
let e = i * c(i);
|
|
401
|
-
s.y = Math.abs(e) < Math.abs(i) ? e : i;
|
|
402
|
-
}
|
|
403
|
-
} else if (N === "x" && (o.includes("left") || o.includes("right"))) if (o.includes("left") && a < 0 || o.includes("right") && a > 0) s.x = a;
|
|
404
|
-
else {
|
|
405
|
-
let e = a * c(a);
|
|
406
|
-
s.x = Math.abs(e) < Math.abs(a) ? e : a;
|
|
407
|
-
}
|
|
408
|
-
(Math.abs(s.x) > 0 || Math.abs(s.y) > 0) && ce(!0), (n = G.current) == null || n.style.setProperty("--swipe-amount-x", `${s.x}px`), (r = G.current) == null || r.style.setProperty("--swipe-amount-y", `${s.y}px`);
|
|
409
|
-
}
|
|
410
|
-
}, ge && !n.jsx && K !== "loading" ? /*#__PURE__*/ r.createElement("button", {
|
|
411
|
-
"aria-label": re,
|
|
412
|
-
"data-disabled": Q,
|
|
413
|
-
"data-close-button": !0,
|
|
414
|
-
onClick: Q || !q ? () => {} : () => {
|
|
415
|
-
$(), n.onDismiss == null || n.onDismiss.call(n, n);
|
|
416
|
-
},
|
|
417
|
-
className: D(j?.closeButton, n?.classNames?.closeButton)
|
|
418
|
-
}, M?.close ?? p) : null, (K || n.icon || n.promise) && n.icon !== null && (M?.[K] !== null || n.icon) ? /*#__PURE__*/ r.createElement("div", {
|
|
419
|
-
"data-icon": "",
|
|
420
|
-
className: D(j?.icon, n?.classNames?.icon)
|
|
421
|
-
}, n.promise || n.type === "loading" && !n.icon ? n.icon || we() : null, n.type === "loading" ? null : Te) : null, /*#__PURE__*/ r.createElement("div", {
|
|
422
|
-
"data-content": "",
|
|
423
|
-
className: D(j?.content, n?.classNames?.content)
|
|
424
|
-
}, /*#__PURE__*/ r.createElement("div", {
|
|
425
|
-
"data-title": "",
|
|
426
|
-
className: D(j?.title, n?.classNames?.title)
|
|
427
|
-
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ r.createElement("div", {
|
|
428
|
-
"data-description": "",
|
|
429
|
-
className: D(C, he, j?.description, n?.classNames?.description)
|
|
430
|
-
}, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ r.isValidElement(n.cancel) ? n.cancel : n.cancel && y(n.cancel) ? /*#__PURE__*/ r.createElement("button", {
|
|
431
|
-
"data-button": !0,
|
|
432
|
-
"data-cancel": !0,
|
|
433
|
-
style: n.cancelButtonStyle || te,
|
|
434
|
-
onClick: (e) => {
|
|
435
|
-
y(n.cancel) && q && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), $());
|
|
436
|
-
},
|
|
437
|
-
className: D(j?.cancelButton, n?.classNames?.cancelButton)
|
|
438
|
-
}, n.cancel.label) : null, /*#__PURE__*/ r.isValidElement(n.action) ? n.action : n.action && y(n.action) ? /*#__PURE__*/ r.createElement("button", {
|
|
439
|
-
"data-button": !0,
|
|
440
|
-
"data-action": !0,
|
|
441
|
-
style: n.actionButtonStyle || b,
|
|
442
|
-
onClick: (e) => {
|
|
443
|
-
y(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && $());
|
|
444
|
-
},
|
|
445
|
-
className: D(j?.actionButton, n?.classNames?.actionButton)
|
|
446
|
-
}, n.action.label) : null);
|
|
447
|
-
};
|
|
448
|
-
function k() {
|
|
449
|
-
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
450
|
-
let e = document.documentElement.getAttribute("dir");
|
|
451
|
-
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
|
452
|
-
}
|
|
453
|
-
function A(e, t) {
|
|
454
|
-
let n = {};
|
|
455
|
-
return [e, t].forEach((e, t) => {
|
|
456
|
-
let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? x : b;
|
|
457
|
-
function o(e) {
|
|
458
|
-
[
|
|
459
|
-
"top",
|
|
460
|
-
"right",
|
|
461
|
-
"bottom",
|
|
462
|
-
"left"
|
|
463
|
-
].forEach((t) => {
|
|
464
|
-
n[`${i}-${t}`] = typeof e == "number" ? `${e}px` : e;
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
typeof e == "number" || typeof e == "string" ? o(e) : typeof e == "object" ? [
|
|
468
|
-
"top",
|
|
469
|
-
"right",
|
|
470
|
-
"bottom",
|
|
471
|
-
"left"
|
|
472
|
-
].forEach((t) => {
|
|
473
|
-
e[t] === void 0 ? n[`${i}-${t}`] = a : n[`${i}-${t}`] = typeof e[t] == "number" ? `${e[t]}px` : e[t];
|
|
474
|
-
}) : o(a);
|
|
475
|
-
}), n;
|
|
476
|
-
}
|
|
477
|
-
var j = /*#__PURE__*/ r.forwardRef(function(e, t) {
|
|
478
|
-
let { id: n, invert: a, position: o = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: c, closeButton: l, className: u, offset: d, mobileOffset: f, theme: p = "light", richColors: ee, duration: m, style: g, visibleToasts: _ = te, toastOptions: v, dir: y = k(), gap: b = w, icons: x, containerAriaLabel: S = "Notifications" } = e, [T, E] = r.useState([]), D = r.useMemo(() => n ? T.filter((e) => e.toasterId === n) : T.filter((e) => !e.toasterId), [T, n]), ne = r.useMemo(() => Array.from(new Set([o].concat(D.filter((e) => e.position).map((e) => e.position)))), [D, o]), [j, M] = r.useState([]), [re, N] = r.useState(!1), [P, F] = r.useState(!1), [ie, I] = r.useState(p === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : p), L = r.useRef(null), R = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), z = r.useRef(null), B = r.useRef(!1), V = r.useCallback((e) => {
|
|
479
|
-
E((t) => (t.find((t) => t.id === e.id)?.delete || h.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
|
|
480
|
-
}, []);
|
|
481
|
-
return r.useEffect(() => h.subscribe((e) => {
|
|
482
|
-
if (e.dismiss) {
|
|
483
|
-
requestAnimationFrame(() => {
|
|
484
|
-
E((t) => t.map((t) => t.id === e.id ? {
|
|
485
|
-
...t,
|
|
486
|
-
delete: !0
|
|
487
|
-
} : t));
|
|
488
|
-
});
|
|
489
|
-
return;
|
|
490
|
-
}
|
|
491
|
-
setTimeout(() => {
|
|
492
|
-
i.flushSync(() => {
|
|
493
|
-
E((t) => {
|
|
494
|
-
let n = t.findIndex((t) => t.id === e.id);
|
|
495
|
-
return n === -1 ? [e, ...t] : [
|
|
496
|
-
...t.slice(0, n),
|
|
497
|
-
{
|
|
498
|
-
...t[n],
|
|
499
|
-
...e
|
|
500
|
-
},
|
|
501
|
-
...t.slice(n + 1)
|
|
502
|
-
];
|
|
503
|
-
});
|
|
504
|
-
});
|
|
505
|
-
});
|
|
506
|
-
}), [T]), r.useEffect(() => {
|
|
507
|
-
if (p !== "system") {
|
|
508
|
-
I(p);
|
|
509
|
-
return;
|
|
510
|
-
}
|
|
511
|
-
if (p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? I("dark") : I("light")), typeof window > "u") return;
|
|
512
|
-
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
513
|
-
try {
|
|
514
|
-
e.addEventListener("change", ({ matches: e }) => {
|
|
515
|
-
I(e ? "dark" : "light");
|
|
516
|
-
});
|
|
517
|
-
} catch {
|
|
518
|
-
e.addListener(({ matches: e }) => {
|
|
519
|
-
try {
|
|
520
|
-
I(e ? "dark" : "light");
|
|
521
|
-
} catch (e) {
|
|
522
|
-
console.error(e);
|
|
523
|
-
}
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
}, [p]), r.useEffect(() => {
|
|
527
|
-
T.length <= 1 && N(!1);
|
|
528
|
-
}, [T]), r.useEffect(() => {
|
|
529
|
-
let e = (e) => {
|
|
530
|
-
if (s.every((t) => e[t] || e.code === t)) {
|
|
531
|
-
var t;
|
|
532
|
-
N(!0), (t = L.current) == null || t.focus();
|
|
533
|
-
}
|
|
534
|
-
e.code === "Escape" && (document.activeElement === L.current || L.current?.contains(document.activeElement)) && N(!1);
|
|
535
|
-
};
|
|
536
|
-
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
537
|
-
}, [s]), r.useEffect(() => {
|
|
538
|
-
if (L.current) return () => {
|
|
539
|
-
z.current && (z.current.focus({ preventScroll: !0 }), z.current = null, B.current = !1);
|
|
540
|
-
};
|
|
541
|
-
}, [L.current]), /*#__PURE__*/ r.createElement("section", {
|
|
542
|
-
ref: t,
|
|
543
|
-
"aria-label": `${S} ${R}`,
|
|
544
|
-
tabIndex: -1,
|
|
545
|
-
"aria-live": "polite",
|
|
546
|
-
"aria-relevant": "additions text",
|
|
547
|
-
"aria-atomic": "false",
|
|
548
|
-
suppressHydrationWarning: !0
|
|
549
|
-
}, ne.map((t, n) => {
|
|
550
|
-
let [i, o] = t.split("-");
|
|
551
|
-
return D.length ? /*#__PURE__*/ r.createElement("ol", {
|
|
552
|
-
key: t,
|
|
553
|
-
dir: y === "auto" ? k() : y,
|
|
554
|
-
tabIndex: -1,
|
|
555
|
-
ref: L,
|
|
556
|
-
className: u,
|
|
557
|
-
"data-sonner-toaster": !0,
|
|
558
|
-
"data-sonner-theme": ie,
|
|
559
|
-
"data-y-position": i,
|
|
560
|
-
"data-x-position": o,
|
|
561
|
-
style: {
|
|
562
|
-
"--front-toast-height": `${j[0]?.height || 0}px`,
|
|
563
|
-
"--width": `${C}px`,
|
|
564
|
-
"--gap": `${b}px`,
|
|
565
|
-
...g,
|
|
566
|
-
...A(d, f)
|
|
567
|
-
},
|
|
568
|
-
onBlur: (e) => {
|
|
569
|
-
B.current && !e.currentTarget.contains(e.relatedTarget) && (B.current = !1, z.current &&= (z.current.focus({ preventScroll: !0 }), null));
|
|
570
|
-
},
|
|
571
|
-
onFocus: (e) => {
|
|
572
|
-
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || B.current || (B.current = !0, z.current = e.relatedTarget);
|
|
573
|
-
},
|
|
574
|
-
onMouseEnter: () => N(!0),
|
|
575
|
-
onMouseMove: () => N(!0),
|
|
576
|
-
onMouseLeave: () => {
|
|
577
|
-
P || N(!1);
|
|
578
|
-
},
|
|
579
|
-
onDragEnd: () => N(!1),
|
|
580
|
-
onPointerDown: (e) => {
|
|
581
|
-
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || F(!0);
|
|
582
|
-
},
|
|
583
|
-
onPointerUp: () => F(!1)
|
|
584
|
-
}, D.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ r.createElement(O, {
|
|
585
|
-
key: n.id,
|
|
586
|
-
icons: x,
|
|
587
|
-
index: i,
|
|
588
|
-
toast: n,
|
|
589
|
-
defaultRichColors: ee,
|
|
590
|
-
duration: v?.duration ?? m,
|
|
591
|
-
className: v?.className,
|
|
592
|
-
descriptionClassName: v?.descriptionClassName,
|
|
593
|
-
invert: a,
|
|
594
|
-
visibleToasts: _,
|
|
595
|
-
closeButton: v?.closeButton ?? l,
|
|
596
|
-
interacting: P,
|
|
597
|
-
position: t,
|
|
598
|
-
style: v?.style,
|
|
599
|
-
unstyled: v?.unstyled,
|
|
600
|
-
classNames: v?.classNames,
|
|
601
|
-
cancelButtonStyle: v?.cancelButtonStyle,
|
|
602
|
-
actionButtonStyle: v?.actionButtonStyle,
|
|
603
|
-
closeButtonAriaLabel: v?.closeButtonAriaLabel,
|
|
604
|
-
removeToast: V,
|
|
605
|
-
toasts: D.filter((e) => e.position == n.position),
|
|
606
|
-
heights: j.filter((e) => e.position == n.position),
|
|
607
|
-
setHeights: M,
|
|
608
|
-
expandByDefault: c,
|
|
609
|
-
gap: b,
|
|
610
|
-
expanded: re,
|
|
611
|
-
swipeDirections: e.swipeDirections
|
|
612
|
-
}))) : null;
|
|
613
|
-
}));
|
|
614
|
-
});
|
|
615
|
-
//#endregion
|
|
616
|
-
export { v as n, j as t };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
|
|
2
|
-
var t = e("external-link", [
|
|
3
|
-
["path", {
|
|
4
|
-
d: "M15 3h6v6",
|
|
5
|
-
key: "1q9fwt"
|
|
6
|
-
}],
|
|
7
|
-
["path", {
|
|
8
|
-
d: "M10 14 21 3",
|
|
9
|
-
key: "gplh6r"
|
|
10
|
-
}],
|
|
11
|
-
["path", {
|
|
12
|
-
d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",
|
|
13
|
-
key: "a6xqqp"
|
|
14
|
-
}]
|
|
15
|
-
]);
|
|
16
|
-
//#endregion
|
|
17
|
-
export { t };
|