@mcp-b/react-components 0.62.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
- package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
- package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
- package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
- package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
- package/dist/CodeBlock-dt0L8md0.js +892 -0
- package/dist/{EmployeeChrome-D5x4EM9y.d.ts → EmployeeChrome-kegSASjC.d.ts} +15 -8
- package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
- package/dist/ExecutionResult-CXnGcmM4.js +671 -0
- package/dist/FileTree-CjfzpN6X.js +968 -0
- package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
- package/dist/ManagerOffice-T79utm-P.js +2469 -0
- package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
- package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
- package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
- package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
- package/dist/SetupChecklist-DwscX3Bw.js +230 -0
- package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
- package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
- package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
- package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
- package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
- package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
- package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
- package/dist/{WorkspaceAutomation-CMvICi-p.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
- package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
- package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
- package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
- package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
- package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
- package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
- package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
- package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
- package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
- package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
- package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
- package/dist/assets/desktop/README.md +43 -0
- package/dist/assets/desktop/automations.svg +19 -0
- package/dist/assets/desktop/document.svg +24 -0
- package/dist/assets/desktop/folder.png +0 -0
- package/dist/assets/desktop/mail.svg +31 -0
- package/dist/assets/desktop/settings.svg +9 -0
- package/dist/assets/desktop/trash-full.svg +23 -0
- package/dist/assets/desktop/trash.svg +19 -0
- package/dist/attachment-preview-DeRqFjdz.js +68 -0
- package/dist/attempt-CySQHJsF.js +21 -0
- package/dist/{codex-model-catalog-18yO7dln.d.ts → codex-model-catalog-CFEGgUAj.d.ts} +8 -8
- package/dist/command-search-1fjmCBBo.js +34 -0
- package/dist/components/agents-sdk/AIProviderDialog.d.ts +53 -0
- package/dist/components/agents-sdk/AIProviderDialog.js +902 -0
- package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
- package/dist/components/agents-sdk/AgentActivity.js +78 -31
- package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
- package/dist/components/agents-sdk/AgentChat.js +1120 -393
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
- package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
- package/dist/components/agents-sdk/AgentComputer.js +8045 -0
- package/dist/components/agents-sdk/AgentEvent.js +165 -22
- package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
- package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
- package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
- package/dist/components/agents-sdk/BrowserReplay.js +298 -133
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
- package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
- package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +109 -47
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +504 -103
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +1383 -522
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +283 -66
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
- package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
- package/dist/components/agents-sdk/ManagerAccountActions.js +143 -36
- package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
- package/dist/components/agents-sdk/McpConnectionRequest.js +331 -116
- package/dist/components/agents-sdk/McpConnectorForm.js +321 -101
- package/dist/components/agents-sdk/McpPluginCatalog.js +698 -250
- package/dist/components/agents-sdk/McpServerIcon.js +57 -14
- package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +543 -159
- package/dist/components/agents-sdk/ModelSelector.d.ts +1 -1
- package/dist/components/agents-sdk/ModelSelector.js +1154 -256
- package/dist/components/agents-sdk/PromptInputApproval.js +116 -28
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
- package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
- package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
- package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
- package/dist/components/agents-sdk/SubagentRunPanel.js +359 -131
- package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
- package/dist/components/agents-sdk/ThinkChat.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkChat.js +321 -129
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +307 -101
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +1389 -407
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +220 -46
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +506 -125
- package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
- package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
- package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +3 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +72 -26
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
- package/dist/components/agents-sdk/ThinkScheduleActions.js +364 -133
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +312 -91
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +1324 -481
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +435 -215
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
- package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +491 -166
- package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.js +1496 -419
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1320 -529
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
- package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +268 -86
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
- package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
- package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
- package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
- package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
- package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +119 -59
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
- package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
- package/dist/components/ai-sdk/Activity.js +768 -192
- package/dist/components/ai-sdk/AgentAttention.js +286 -58
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +194 -69
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
- package/dist/components/ai-sdk/AgentChatTurnError.d.ts +6 -1
- package/dist/components/ai-sdk/AgentChatTurnError.js +77 -25
- package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
- package/dist/components/ai-sdk/Approval.js +574 -172
- package/dist/components/ai-sdk/Artifact.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.js +535 -128
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +404 -80
- package/dist/components/ai-sdk/Checkpoint.js +229 -45
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +216 -48
- package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
- package/dist/components/ai-sdk/Context.js +738 -179
- package/dist/components/ai-sdk/Conversation.d.ts +1 -1
- package/dist/components/ai-sdk/Conversation.js +305 -68
- package/dist/components/ai-sdk/ExpansionState.js +74 -15
- package/dist/components/ai-sdk/Goal.js +435 -116
- package/dist/components/ai-sdk/InlineCitation.js +313 -76
- package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
- package/dist/components/ai-sdk/Message.d.ts +1 -1
- package/dist/components/ai-sdk/Message.js +1010 -195
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScroller.js +264 -46
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
- package/dist/components/ai-sdk/Plan.js +639 -128
- package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.js +2738 -797
- package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
- package/dist/components/ai-sdk/Queue.js +793 -155
- package/dist/components/ai-sdk/Reasoning.js +268 -69
- package/dist/components/ai-sdk/Sources.js +226 -63
- package/dist/components/ai-sdk/Task.js +294 -71
- package/dist/components/ai-sdk/ToolApproval.js +126 -26
- package/dist/components/ai-sdk/ToolInvocation.js +112 -22
- package/dist/components/extension/ChatGptSignInScreen.js +1 -82
- package/dist/components/extension/CodexModelSelector.d.ts +2 -2
- package/dist/components/extension/CodexModelSelector.js +468 -147
- package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
- package/dist/components/extension/ConversationTabPicker.js +254 -76
- package/dist/components/extension/FirstRunSetup.d.ts +61 -35
- package/dist/components/extension/FirstRunSetup.js +3833 -1011
- package/dist/components/foundations/Accordion.js +186 -41
- package/dist/components/foundations/AlertDialog.js +425 -97
- package/dist/components/foundations/AppIcon.d.ts +13 -13
- package/dist/components/foundations/AppIcon.js +183 -34
- package/dist/components/foundations/Autocomplete.js +408 -89
- package/dist/components/foundations/Avatar.d.ts +100 -2
- package/dist/components/foundations/Avatar.js +204 -44
- package/dist/components/foundations/Button.js +64 -13
- package/dist/components/foundations/Card.js +357 -63
- package/dist/components/foundations/Checkbox.js +83 -18
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +130 -27
- package/dist/components/foundations/Combobox.js +408 -89
- package/dist/components/foundations/ContextMenu.d.ts +2 -2
- package/dist/components/foundations/ContextMenu.js +591 -117
- package/dist/components/foundations/DescriptionList.js +159 -28
- package/dist/components/foundations/Dialog.js +373 -89
- package/dist/components/foundations/EmptyState.js +86 -23
- package/dist/components/foundations/Favicon.d.ts +17 -0
- package/dist/components/foundations/Favicon.js +62 -0
- package/dist/components/foundations/Field.js +525 -108
- package/dist/components/foundations/Fieldset.js +115 -23
- package/dist/components/foundations/Form.js +38 -9
- package/dist/components/foundations/FormattedDate.d.ts +19 -5
- package/dist/components/foundations/FormattedDate.js +82 -12
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/IconButton.js +114 -17
- package/dist/components/foundations/Input.js +38 -9
- package/dist/components/foundations/Kbd.js +55 -10
- package/dist/components/foundations/Label.js +56 -12
- package/dist/components/foundations/LinkButton.js +67 -15
- package/dist/components/foundations/Marker.js +138 -29
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +634 -136
- package/dist/components/foundations/Menubar.d.ts +2 -2
- package/dist/components/foundations/Menubar.js +685 -130
- package/dist/components/foundations/Meter.js +186 -41
- package/dist/components/foundations/NavigationMenu.js +426 -95
- package/dist/components/foundations/NumberField.js +223 -49
- package/dist/components/foundations/Popover.js +398 -88
- package/dist/components/foundations/PreviewCard.js +234 -53
- package/dist/components/foundations/Progress.js +117 -25
- package/dist/components/foundations/RadioGroup.d.ts +13 -5
- package/dist/components/foundations/RadioGroup.js +132 -25
- package/dist/components/foundations/ScrollArea.js +230 -51
- package/dist/components/foundations/SearchField.d.ts +8 -3
- package/dist/components/foundations/SearchField.js +129 -28
- package/dist/components/foundations/Select.js +648 -145
- package/dist/components/foundations/Separator.js +61 -12
- package/dist/components/foundations/Slider.js +260 -57
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Stepper.js +561 -127
- package/dist/components/foundations/Switch.js +82 -18
- package/dist/components/foundations/Tabs.d.ts +2 -2
- package/dist/components/foundations/Tabs.js +282 -53
- package/dist/components/foundations/Textarea.js +43 -9
- package/dist/components/foundations/ThemeProvider.js +138 -52
- package/dist/components/foundations/Toast.d.ts +10 -2
- package/dist/components/foundations/Toast.js +322 -75
- package/dist/components/foundations/Toggle.d.ts +5 -2
- package/dist/components/foundations/Toggle.js +51 -10
- package/dist/components/foundations/ToggleGroup.d.ts +4 -4
- package/dist/components/foundations/ToggleGroup.js +216 -60
- package/dist/components/foundations/Toolbar.js +249 -61
- package/dist/components/foundations/Tooltip.d.ts +3 -3
- package/dist/components/foundations/Tooltip.js +311 -55
- package/dist/components/foundations/TransitionSurface.js +43 -9
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
- package/dist/components/general-purpose/ActionGuide.js +290 -64
- package/dist/components/general-purpose/AppFrame.js +72 -14
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
- package/dist/components/general-purpose/AppTopBar.js +349 -60
- package/dist/components/general-purpose/BrandLoading.js +37 -9
- package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
- package/dist/components/general-purpose/CommandPalette.js +271 -0
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +937 -167
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
- package/dist/components/general-purpose/FileTree.d.ts +20 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/ListDetail.d.ts +84 -0
- package/dist/components/general-purpose/ListDetail.js +423 -0
- package/dist/components/general-purpose/NotificationPrompt.js +20 -11
- package/dist/components/general-purpose/PricingBillingToggle.js +34 -7
- package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
- package/dist/components/general-purpose/PricingFAQ.js +53 -12
- package/dist/components/general-purpose/PricingPage.js +376 -139
- package/dist/components/general-purpose/PricingPlanCard.js +210 -85
- package/dist/components/general-purpose/PricingUsageCalculator.js +233 -83
- package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
- package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
- package/dist/components/general-purpose/ScreenStack.js +427 -0
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +10 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +238 -74
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.js +82 -24
- package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
- package/dist/components/general-purpose/SwipeActions.js +357 -0
- package/dist/components/general-purpose/Terminal.d.ts +22 -48
- package/dist/components/general-purpose/Terminal.js +320 -174
- package/dist/components/general-purpose/TestResults.js +975 -196
- package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
- package/dist/components/general-purpose/ThemeModeControl.js +67 -24
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
- package/dist/components/general-purpose/WallpaperPicker.js +180 -0
- package/dist/components/general-purpose/WebPreview.d.ts +5 -7
- package/dist/components/general-purpose/WebPreview.js +770 -203
- package/dist/components/nanites/AgentConnection.js +323 -84
- package/dist/components/nanites/AgentToolDetail.js +237 -57
- package/dist/components/nanites/GithubMotionMark.js +37 -9
- package/dist/components/nanites/NaniteScene.js +535 -323
- package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
- package/dist/container-width-C43ccJ84.js +17 -0
- package/dist/context-Ddsp8HgD.js +43 -0
- package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
- package/dist/copy-button-DWBVJR6D.js +118 -0
- package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
- package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
- package/dist/icons-nLTnB9kd.js +470 -0
- package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
- package/dist/motion-CGM3i6lX.js +319 -0
- package/dist/motion-preferences-6qsDIDvH.js +13 -0
- package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
- package/dist/progress-ring-BO649JA9.js +79 -0
- package/dist/provider-logos-Ceu7iYFx.js +362 -0
- package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
- package/dist/styles/accessibility.css +26 -0
- package/dist/styles/accordion.css +0 -2
- package/dist/styles/activity.css +20 -12
- package/dist/styles/agent-attention.css +31 -10
- package/dist/styles/agent-chat.css +7 -6
- package/dist/styles/agent-computer-motion-reduction.css +118 -0
- package/dist/styles/agent-computer-motion.css +127 -0
- package/dist/styles/agent-computer-phone.css +942 -0
- package/dist/styles/agent-computer.css +1764 -0
- package/dist/styles/agent-connection.css +5 -5
- package/dist/styles/agent-screen-switcher.css +313 -0
- package/dist/styles/ai-provider-dialog.css +46 -0
- package/dist/styles/app-icon.css +34 -30
- package/dist/styles/app-top-bar.css +33 -18
- package/dist/styles/approval.css +3 -3
- package/dist/styles/artifact.css +1 -1
- package/dist/styles/attachment-preview.css +2 -4
- package/dist/styles/avatar.css +12 -14
- package/dist/styles/base-ui-motion.css +84 -18
- package/dist/styles/base-ui-motion.test.tsx +305 -0
- package/dist/styles/base.css +16 -12
- package/dist/styles/brand.test.ts +7 -20
- package/dist/styles/browser-control-overlay.css +1 -1
- package/dist/styles/browser-live-screen.css +2 -2
- package/dist/styles/browser-live-view.css +1 -1
- package/dist/styles/browser-replay.css +0 -8
- package/dist/styles/browser-run-panel.css +275 -37
- package/dist/styles/button.css +52 -9
- package/dist/styles/card.css +6 -5
- package/dist/styles/chain-of-thought.css +0 -10
- package/dist/styles/checkpoint.css +2 -2
- package/dist/styles/codex-model-selector.css +2 -2
- package/dist/styles/color-contrast.test.ts +18 -1
- package/dist/styles/command-palette.css +110 -0
- package/dist/styles/composer-link.css +11 -7
- package/dist/styles/composition-motion.css +3 -14
- package/dist/styles/context.css +2 -2
- package/dist/styles/conversation-tab-picker.css +7 -0
- package/dist/styles/conversation.css +8 -2
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/employee-app.css +8 -2
- package/dist/styles/employee-chrome.css +15 -6
- package/dist/styles/execution-board.css +206 -114
- package/dist/styles/execution-result.css +2 -2
- package/dist/styles/field.css +187 -4
- package/dist/styles/file-tree.css +218 -40
- package/dist/styles/first-run-setup.css +914 -187
- package/dist/styles/github-motion-mark.css +0 -8
- package/dist/styles/index.css +145 -132
- package/dist/styles/inline-citation.css +5 -4
- package/dist/styles/list-detail.css +57 -0
- package/dist/styles/manager-office.css +6 -8
- package/dist/styles/manager-work.css +4 -2
- package/dist/styles/mcp-plugin-catalog.css +2 -2
- package/dist/styles/mcp-server-picker.css +3 -6
- package/dist/styles/media-preview-card.css +2 -2
- package/dist/styles/menu.css +0 -9
- package/dist/styles/menubar.css +18 -6
- package/dist/styles/message-scroller.css +47 -9
- package/dist/styles/message.css +3 -3
- package/dist/styles/model-selector.css +1 -1
- package/dist/styles/motion-reduction.css +39 -6
- package/dist/styles/pricing-page.css +1 -1
- package/dist/styles/prompt-input.css +29 -29
- package/dist/styles/queue.css +1 -1
- package/dist/styles/recipes.css +212 -28
- package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
- package/dist/styles/responsive-sidebar-shell.css +40 -43
- package/dist/styles/screen-stack.css +123 -0
- package/dist/styles/search-field.css +80 -3
- package/dist/styles/stepper.css +0 -10
- package/dist/styles/streamdown.css +2 -2
- package/dist/styles/subagent-run.css +9 -5
- package/dist/styles/swipe-actions.css +158 -0
- package/dist/styles/tabs.css +80 -23
- package/dist/styles/task.css +7 -1
- package/dist/styles/terminal.css +66 -78
- package/dist/styles/test-results.css +1 -19
- package/dist/styles/textarea.css +2 -1
- package/dist/styles/theme-mode-control.css +154 -26
- package/dist/styles/think-chat-tool-panels.css +1 -1
- package/dist/styles/think-execution-workbench.css +0 -9
- package/dist/styles/think-full-app.css +7 -1
- package/dist/styles/think-schedule.css +81 -54
- package/dist/styles/think-thread-picker.css +28 -37
- package/dist/styles/toast.css +11 -0
- package/dist/styles/toggle-group.css +0 -10
- package/dist/styles/toggle.css +13 -0
- package/dist/styles/tooltip.css +12 -0
- package/dist/styles/transition-surface.css +1 -0
- package/dist/styles/wallpaper-picker.css +224 -0
- package/dist/styles/web-preview.css +47 -18
- package/dist/styles/workspace-automation.css +116 -17
- package/dist/styles/workspace-concepts.css +1 -1
- package/dist/styles/workspace-desktop.css +124 -0
- package/dist/styles/workspace-entity-card.css +3 -1
- package/dist/styles/workspace-explorer.css +499 -5
- package/dist/utils/brand-marks.d.ts +13 -0
- package/dist/utils/brand-marks.js +14 -0
- package/dist/utils/codex-model-catalog.d.ts +1 -1
- package/dist/utils/desktop-artwork.d.ts +17 -0
- package/dist/utils/desktop-artwork.js +18 -0
- package/dist/utils/favicon.d.ts +6 -2
- package/dist/utils/favicon.js +16 -4
- package/dist/utils/model-provider-error.d.ts +17 -0
- package/dist/utils/model-provider-error.js +76 -0
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-KpMmznB_.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
- package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
- package/dist/workspace-delete-BOY6CMBf.js +183 -0
- package/dist/workspace-drag-B6hMXUNt.js +304 -0
- package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
- package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
- package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
- package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
- package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
- package/package.json +9 -3
- package/dist/Avatar-t1YRzdwB.d.ts +0 -101
- package/dist/CodeBlock-CNvOYR0Q.js +0 -318
- package/dist/ExecutionResult-DmC21cll.js +0 -279
- package/dist/FileTree-H31EVRv_.js +0 -323
- package/dist/ManagerOffice-B3X3iZV9.js +0 -1129
- package/dist/SetupChecklist-Wo4akaSG.js +0 -78
- package/dist/ThinkSchedule-CSuDGrZ9.d.ts +0 -34
- package/dist/WorkspaceFileView-BWI_AJlV.js +0 -783
- package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
- package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
- package/dist/attachment-preview-1CXJvrmb.js +0 -25
- package/dist/chatgpt-sign-in-button-DNchrZHs.js +0 -32
- package/dist/components/agents-sdk/ModelEndpointDialog.d.ts +0 -31
- package/dist/components/agents-sdk/ModelEndpointDialog.js +0 -141
- package/dist/connected-app-drafts-B9i69bkj.js +0 -283
- package/dist/copy-button-z20VEXRF.js +0 -45
- package/dist/icons-Yp99gmMC.js +0 -141
- package/dist/progress-ring-L2bbF0ji.js +0 -40
- package/dist/provider-logos-DWYY8wNz.js +0 -99
- package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
- package/dist/workspace-assets-Dq5toMQc.js +0 -107
- package/dist/workspace-concept-panel-CxZfmFkP.js +0 -66
- package/dist/workspace-delete-CoB0l6ZU.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { m as ChevronDownIcon, tt as SearchIcon } from "../../icons-nLTnB9kd.js";
|
|
3
|
+
import { l as titleCase } from "../../format-DL7f2rqp.js";
|
|
4
4
|
import { Button } from "../foundations/Button.js";
|
|
5
|
-
import { Autocomplete } from "../foundations/Autocomplete.js";
|
|
6
5
|
import { Dialog } from "../foundations/Dialog.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as ProviderLogo } from "../../provider-logos-DWYY8wNz.js";
|
|
6
|
+
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
7
|
+
import { Autocomplete } from "../foundations/Autocomplete.js";
|
|
10
8
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
9
|
+
import { t as ProviderLogo } from "../../provider-logos-Ceu7iYFx.js";
|
|
10
|
+
import { Separator } from "../foundations/Separator.js";
|
|
11
|
+
import { c } from "react/compiler-runtime";
|
|
11
12
|
import * as React from "react";
|
|
12
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
14
|
import { createPortal } from "react-dom";
|
|
@@ -198,39 +199,125 @@ function useModelSelectorContext() {
|
|
|
198
199
|
* </ModelSelector>
|
|
199
200
|
* ```
|
|
200
201
|
*/
|
|
201
|
-
function ModelSelector(
|
|
202
|
+
function ModelSelector(t0) {
|
|
203
|
+
const $ = c(34);
|
|
204
|
+
let children;
|
|
205
|
+
let className;
|
|
206
|
+
let onOpenChange;
|
|
207
|
+
let open;
|
|
208
|
+
let props;
|
|
209
|
+
let ref;
|
|
210
|
+
let t1;
|
|
211
|
+
if ($[0] !== t0) {
|
|
212
|
+
({open, defaultOpen: t1, onOpenChange, children, className, ref, ...props} = t0);
|
|
213
|
+
$[0] = t0;
|
|
214
|
+
$[1] = children;
|
|
215
|
+
$[2] = className;
|
|
216
|
+
$[3] = onOpenChange;
|
|
217
|
+
$[4] = open;
|
|
218
|
+
$[5] = props;
|
|
219
|
+
$[6] = ref;
|
|
220
|
+
$[7] = t1;
|
|
221
|
+
} else {
|
|
222
|
+
children = $[1];
|
|
223
|
+
className = $[2];
|
|
224
|
+
onOpenChange = $[3];
|
|
225
|
+
open = $[4];
|
|
226
|
+
props = $[5];
|
|
227
|
+
ref = $[6];
|
|
228
|
+
t1 = $[7];
|
|
229
|
+
}
|
|
230
|
+
const defaultOpen = t1 === void 0 ? false : t1;
|
|
202
231
|
const [query, setQuery] = React.useState("");
|
|
203
|
-
const [registeredGroups, setRegisteredGroups] = React.useState(
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
232
|
+
const [registeredGroups, setRegisteredGroups] = React.useState(_temp);
|
|
233
|
+
let t2;
|
|
234
|
+
if ($[8] !== onOpenChange) {
|
|
235
|
+
t2 = (...t3) => {
|
|
236
|
+
const args = t3;
|
|
237
|
+
const [next, eventDetails] = args;
|
|
238
|
+
onOpenChange?.(...args);
|
|
239
|
+
if (!eventDetails.isCanceled && !next) setQuery("");
|
|
240
|
+
};
|
|
241
|
+
$[8] = onOpenChange;
|
|
242
|
+
$[9] = t2;
|
|
243
|
+
} else t2 = $[9];
|
|
244
|
+
const handleOpenChange = t2;
|
|
245
|
+
let t3;
|
|
246
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
247
|
+
t3 = (id, items) => {
|
|
217
248
|
setRegisteredGroups((current) => {
|
|
218
|
-
if (
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
return
|
|
249
|
+
if (equalItems(current.get(id), items)) return current;
|
|
250
|
+
const next_0 = new Map(current);
|
|
251
|
+
next_0.set(id, items);
|
|
252
|
+
return next_0;
|
|
222
253
|
});
|
|
254
|
+
return () => {
|
|
255
|
+
setRegisteredGroups((current_0) => {
|
|
256
|
+
if (!current_0.has(id)) return current_0;
|
|
257
|
+
const next_1 = new Map(current_0);
|
|
258
|
+
next_1.delete(id);
|
|
259
|
+
return next_1;
|
|
260
|
+
});
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
$[10] = t3;
|
|
264
|
+
} else t3 = $[10];
|
|
265
|
+
const registerGroup = t3;
|
|
266
|
+
let t4;
|
|
267
|
+
if ($[11] !== registeredGroups) {
|
|
268
|
+
t4 = Array.from(registeredGroups.values()).flat();
|
|
269
|
+
$[11] = registeredGroups;
|
|
270
|
+
$[12] = t4;
|
|
271
|
+
} else t4 = $[12];
|
|
272
|
+
const autocompleteItems = t4;
|
|
273
|
+
let t5;
|
|
274
|
+
if ($[13] !== query) {
|
|
275
|
+
t5 = {
|
|
276
|
+
query,
|
|
277
|
+
registerGroup,
|
|
278
|
+
setQuery
|
|
223
279
|
};
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
280
|
+
$[13] = query;
|
|
281
|
+
$[14] = t5;
|
|
282
|
+
} else t5 = $[14];
|
|
283
|
+
const ctxValue = t5;
|
|
284
|
+
let t6;
|
|
285
|
+
if ($[15] !== className) {
|
|
286
|
+
t6 = cx("model-selector", className);
|
|
287
|
+
$[15] = className;
|
|
288
|
+
$[16] = t6;
|
|
289
|
+
} else t6 = $[16];
|
|
290
|
+
let t7;
|
|
291
|
+
if ($[17] !== children || $[18] !== defaultOpen || $[19] !== handleOpenChange || $[20] !== open) {
|
|
292
|
+
t7 = /* @__PURE__ */ jsx(Dialog.Root, {
|
|
293
|
+
open,
|
|
294
|
+
defaultOpen,
|
|
295
|
+
onOpenChange: handleOpenChange,
|
|
296
|
+
children
|
|
297
|
+
});
|
|
298
|
+
$[17] = children;
|
|
299
|
+
$[18] = defaultOpen;
|
|
300
|
+
$[19] = handleOpenChange;
|
|
301
|
+
$[20] = open;
|
|
302
|
+
$[21] = t7;
|
|
303
|
+
} else t7 = $[21];
|
|
304
|
+
let t8;
|
|
305
|
+
if ($[22] !== props || $[23] !== ref || $[24] !== t6 || $[25] !== t7) {
|
|
306
|
+
t8 = /* @__PURE__ */ jsx("div", {
|
|
307
|
+
ref,
|
|
308
|
+
className: t6,
|
|
309
|
+
...props,
|
|
310
|
+
children: t7
|
|
311
|
+
});
|
|
312
|
+
$[22] = props;
|
|
313
|
+
$[23] = ref;
|
|
314
|
+
$[24] = t6;
|
|
315
|
+
$[25] = t7;
|
|
316
|
+
$[26] = t8;
|
|
317
|
+
} else t8 = $[26];
|
|
318
|
+
let t9;
|
|
319
|
+
if ($[27] !== autocompleteItems || $[28] !== query || $[29] !== t8) {
|
|
320
|
+
t9 = /* @__PURE__ */ jsx(Autocomplete.Root, {
|
|
234
321
|
open: true,
|
|
235
322
|
inline: true,
|
|
236
323
|
items: autocompleteItems,
|
|
@@ -239,254 +326,1032 @@ function ModelSelector({ open, defaultOpen = false, onOpenChange, children, clas
|
|
|
239
326
|
onValueChange: setQuery,
|
|
240
327
|
autoHighlight: "always",
|
|
241
328
|
keepHighlight: true,
|
|
242
|
-
children:
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
329
|
+
children: t8
|
|
330
|
+
});
|
|
331
|
+
$[27] = autocompleteItems;
|
|
332
|
+
$[28] = query;
|
|
333
|
+
$[29] = t8;
|
|
334
|
+
$[30] = t9;
|
|
335
|
+
} else t9 = $[30];
|
|
336
|
+
let t10;
|
|
337
|
+
if ($[31] !== ctxValue || $[32] !== t9) {
|
|
338
|
+
t10 = /* @__PURE__ */ jsx(ModelSelectorContext.Provider, {
|
|
339
|
+
value: ctxValue,
|
|
340
|
+
children: t9
|
|
341
|
+
});
|
|
342
|
+
$[31] = ctxValue;
|
|
343
|
+
$[32] = t9;
|
|
344
|
+
$[33] = t10;
|
|
345
|
+
} else t10 = $[33];
|
|
346
|
+
return t10;
|
|
347
|
+
}
|
|
348
|
+
function _temp() {
|
|
349
|
+
return /* @__PURE__ */ new Map();
|
|
350
|
+
}
|
|
351
|
+
function CloudflareModelSelector(t0) {
|
|
352
|
+
const $ = c(52);
|
|
353
|
+
let models;
|
|
354
|
+
let onOpenChange;
|
|
355
|
+
let onSelectModel;
|
|
356
|
+
let props;
|
|
357
|
+
let t1;
|
|
358
|
+
let t2;
|
|
359
|
+
let t3;
|
|
360
|
+
let t4;
|
|
361
|
+
let t5;
|
|
362
|
+
let t6;
|
|
363
|
+
if ($[0] !== t0) {
|
|
364
|
+
({models, selectedModelId: t1, onSelectModel, disabled: t2, placeholder: t3, triggerLabel: t4, emptyLabel: t5, allowTypedModel: t6, onOpenChange, ...props} = t0);
|
|
365
|
+
$[0] = t0;
|
|
366
|
+
$[1] = models;
|
|
367
|
+
$[2] = onOpenChange;
|
|
368
|
+
$[3] = onSelectModel;
|
|
369
|
+
$[4] = props;
|
|
370
|
+
$[5] = t1;
|
|
371
|
+
$[6] = t2;
|
|
372
|
+
$[7] = t3;
|
|
373
|
+
$[8] = t4;
|
|
374
|
+
$[9] = t5;
|
|
375
|
+
$[10] = t6;
|
|
376
|
+
} else {
|
|
377
|
+
models = $[1];
|
|
378
|
+
onOpenChange = $[2];
|
|
379
|
+
onSelectModel = $[3];
|
|
380
|
+
props = $[4];
|
|
381
|
+
t1 = $[5];
|
|
382
|
+
t2 = $[6];
|
|
383
|
+
t3 = $[7];
|
|
384
|
+
t4 = $[8];
|
|
385
|
+
t5 = $[9];
|
|
386
|
+
t6 = $[10];
|
|
387
|
+
}
|
|
388
|
+
const selectedModelId = t1 === void 0 ? null : t1;
|
|
389
|
+
const disabled = t2 === void 0 ? false : t2;
|
|
390
|
+
const placeholder = t3 === void 0 ? "Search or paste an AI Gateway model id..." : t3;
|
|
391
|
+
const triggerLabel = t4 === void 0 ? "Select a model" : t4;
|
|
392
|
+
const emptyLabel = t5 === void 0 ? "No models found" : t5;
|
|
393
|
+
const allowTypedModel = t6 === void 0 ? true : t6;
|
|
394
|
+
let t7;
|
|
395
|
+
if ($[11] !== models) {
|
|
396
|
+
t7 = normalizeCloudflareModelSelectorModels(models);
|
|
397
|
+
$[11] = models;
|
|
398
|
+
$[12] = t7;
|
|
399
|
+
} else t7 = $[12];
|
|
400
|
+
const options = t7;
|
|
401
|
+
let t8;
|
|
402
|
+
if ($[13] !== options) {
|
|
403
|
+
t8 = groupCloudflareModelOptions(options);
|
|
404
|
+
$[13] = options;
|
|
405
|
+
$[14] = t8;
|
|
406
|
+
} else t8 = $[14];
|
|
407
|
+
const groups = t8;
|
|
408
|
+
let t9;
|
|
409
|
+
if ($[15] !== options || $[16] !== selectedModelId) {
|
|
410
|
+
t9 = selectedModelId ? options.find((option) => option.id === selectedModelId) ?? {
|
|
411
|
+
id: selectedModelId,
|
|
412
|
+
provider: getCloudflareModelProvider(selectedModelId),
|
|
413
|
+
providerLabel: formatCloudflareModelProvider(getCloudflareModelProvider(selectedModelId)),
|
|
414
|
+
source: selectedModelId.startsWith("@") ? "workers-ai" : "ai-gateway",
|
|
415
|
+
description: null
|
|
416
|
+
} : null;
|
|
417
|
+
$[15] = options;
|
|
418
|
+
$[16] = selectedModelId;
|
|
419
|
+
$[17] = t9;
|
|
420
|
+
} else t9 = $[17];
|
|
421
|
+
const selectedOption = t9;
|
|
422
|
+
let t10;
|
|
423
|
+
if ($[18] !== selectedOption || $[19] !== triggerLabel) {
|
|
424
|
+
t10 = selectedOption ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ModelSelectorLogo, { provider: selectedOption.provider }), /* @__PURE__ */ jsx(ModelSelectorName, { children: selectedOption.id })] }) : /* @__PURE__ */ jsx(ModelSelectorName, { children: triggerLabel });
|
|
425
|
+
$[18] = selectedOption;
|
|
426
|
+
$[19] = triggerLabel;
|
|
427
|
+
$[20] = t10;
|
|
428
|
+
} else t10 = $[20];
|
|
429
|
+
let t11;
|
|
430
|
+
if ($[21] !== disabled || $[22] !== t10) {
|
|
431
|
+
t11 = /* @__PURE__ */ jsx(ModelSelectorTrigger, {
|
|
270
432
|
disabled,
|
|
271
|
-
children:
|
|
272
|
-
})
|
|
433
|
+
children: t10
|
|
434
|
+
});
|
|
435
|
+
$[21] = disabled;
|
|
436
|
+
$[22] = t10;
|
|
437
|
+
$[23] = t11;
|
|
438
|
+
} else t11 = $[23];
|
|
439
|
+
let t12;
|
|
440
|
+
if ($[24] !== placeholder) {
|
|
441
|
+
t12 = /* @__PURE__ */ jsx(ModelSelectorInput, {
|
|
442
|
+
"aria-label": "Search Cloudflare AI models",
|
|
443
|
+
placeholder
|
|
444
|
+
});
|
|
445
|
+
$[24] = placeholder;
|
|
446
|
+
$[25] = t12;
|
|
447
|
+
} else t12 = $[25];
|
|
448
|
+
let t13;
|
|
449
|
+
if ($[26] !== allowTypedModel || $[27] !== onSelectModel || $[28] !== options || $[29] !== selectedModelId) {
|
|
450
|
+
t13 = /* @__PURE__ */ jsx(CloudflareTypedModelOption, {
|
|
451
|
+
allowTypedModel,
|
|
452
|
+
onSelectModel,
|
|
453
|
+
options,
|
|
454
|
+
selectedModelId
|
|
455
|
+
});
|
|
456
|
+
$[26] = allowTypedModel;
|
|
457
|
+
$[27] = onSelectModel;
|
|
458
|
+
$[28] = options;
|
|
459
|
+
$[29] = selectedModelId;
|
|
460
|
+
$[30] = t13;
|
|
461
|
+
} else t13 = $[30];
|
|
462
|
+
let t14;
|
|
463
|
+
if ($[31] !== groups || $[32] !== onSelectModel || $[33] !== selectedModelId) {
|
|
464
|
+
let t15;
|
|
465
|
+
if ($[35] !== onSelectModel || $[36] !== selectedModelId) {
|
|
466
|
+
t15 = (group) => /* @__PURE__ */ jsx(ModelSelectorGroup, {
|
|
467
|
+
label: group.providerLabel,
|
|
468
|
+
children: group.options.map((option_0) => /* @__PURE__ */ jsxs(ModelSelectorItem, {
|
|
469
|
+
value: option_0.id,
|
|
470
|
+
keywords: `${option_0.provider} ${option_0.providerLabel} ${option_0.source} ${option_0.description ?? ""}`,
|
|
471
|
+
selected: option_0.id === selectedModelId,
|
|
472
|
+
onSelect: onSelectModel,
|
|
473
|
+
children: [
|
|
474
|
+
/* @__PURE__ */ jsx(ModelSelectorLogo, { provider: option_0.provider }),
|
|
475
|
+
/* @__PURE__ */ jsx(ModelSelectorName, { children: option_0.id }),
|
|
476
|
+
/* @__PURE__ */ jsx(ModelSelectorSource, { children: option_0.source === "workers-ai" ? "Workers AI" : "Gateway" })
|
|
477
|
+
]
|
|
478
|
+
}, option_0.id))
|
|
479
|
+
}, group.providerLabel);
|
|
480
|
+
$[35] = onSelectModel;
|
|
481
|
+
$[36] = selectedModelId;
|
|
482
|
+
$[37] = t15;
|
|
483
|
+
} else t15 = $[37];
|
|
484
|
+
t14 = groups.map(t15);
|
|
485
|
+
$[31] = groups;
|
|
486
|
+
$[32] = onSelectModel;
|
|
487
|
+
$[33] = selectedModelId;
|
|
488
|
+
$[34] = t14;
|
|
489
|
+
} else t14 = $[34];
|
|
490
|
+
let t15;
|
|
491
|
+
if ($[38] !== emptyLabel) {
|
|
492
|
+
t15 = /* @__PURE__ */ jsx(ModelSelectorEmpty, { children: emptyLabel });
|
|
493
|
+
$[38] = emptyLabel;
|
|
494
|
+
$[39] = t15;
|
|
495
|
+
} else t15 = $[39];
|
|
496
|
+
let t16;
|
|
497
|
+
if ($[40] !== t13 || $[41] !== t14 || $[42] !== t15) {
|
|
498
|
+
t16 = /* @__PURE__ */ jsxs(ModelSelectorList, { children: [
|
|
499
|
+
t13,
|
|
500
|
+
t14,
|
|
501
|
+
t15
|
|
502
|
+
] });
|
|
503
|
+
$[40] = t13;
|
|
504
|
+
$[41] = t14;
|
|
505
|
+
$[42] = t15;
|
|
506
|
+
$[43] = t16;
|
|
507
|
+
} else t16 = $[43];
|
|
508
|
+
let t17;
|
|
509
|
+
if ($[44] !== t12 || $[45] !== t16) {
|
|
510
|
+
t17 = /* @__PURE__ */ jsx(ModelSelectorContent, {
|
|
273
511
|
title: "Cloudflare model selector",
|
|
274
|
-
children: /* @__PURE__ */ jsxs(ModelSelectorDialog, { children: [
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
/* @__PURE__ */ jsx(ModelSelectorEmpty, { children: emptyLabel })
|
|
299
|
-
] })] })
|
|
300
|
-
})]
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
function CloudflareTypedModelOption({ allowTypedModel, onSelectModel, options, selectedModelId }) {
|
|
512
|
+
children: /* @__PURE__ */ jsxs(ModelSelectorDialog, { children: [t12, t16] })
|
|
513
|
+
});
|
|
514
|
+
$[44] = t12;
|
|
515
|
+
$[45] = t16;
|
|
516
|
+
$[46] = t17;
|
|
517
|
+
} else t17 = $[46];
|
|
518
|
+
let t18;
|
|
519
|
+
if ($[47] !== onOpenChange || $[48] !== props || $[49] !== t11 || $[50] !== t17) {
|
|
520
|
+
t18 = /* @__PURE__ */ jsxs(ModelSelector, {
|
|
521
|
+
onOpenChange,
|
|
522
|
+
...props,
|
|
523
|
+
children: [t11, t17]
|
|
524
|
+
});
|
|
525
|
+
$[47] = onOpenChange;
|
|
526
|
+
$[48] = props;
|
|
527
|
+
$[49] = t11;
|
|
528
|
+
$[50] = t17;
|
|
529
|
+
$[51] = t18;
|
|
530
|
+
} else t18 = $[51];
|
|
531
|
+
return t18;
|
|
532
|
+
}
|
|
533
|
+
function CloudflareTypedModelOption(t0) {
|
|
534
|
+
const $ = c(30);
|
|
535
|
+
const { allowTypedModel, onSelectModel, options, selectedModelId } = t0;
|
|
304
536
|
const { query } = useModelSelectorContext();
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
537
|
+
let T0;
|
|
538
|
+
let T1;
|
|
539
|
+
let T2;
|
|
540
|
+
let t1;
|
|
541
|
+
let t2;
|
|
542
|
+
let t3;
|
|
543
|
+
let t4;
|
|
544
|
+
let t5;
|
|
545
|
+
let typedModelId;
|
|
546
|
+
if ($[0] !== allowTypedModel || $[1] !== onSelectModel || $[2] !== options || $[3] !== query || $[4] !== selectedModelId) {
|
|
547
|
+
t5 = Symbol.for("react.early_return_sentinel");
|
|
548
|
+
bb0: {
|
|
549
|
+
typedModelId = query.trim();
|
|
550
|
+
if (!allowTypedModel || !isCloudflareRunnableModelId(typedModelId) || typedModelId === selectedModelId || options.some((option) => option.id === typedModelId)) {
|
|
551
|
+
t5 = null;
|
|
552
|
+
break bb0;
|
|
553
|
+
}
|
|
554
|
+
T2 = ModelSelectorGroup;
|
|
555
|
+
t4 = "AI Gateway";
|
|
556
|
+
T1 = ModelSelectorItem;
|
|
557
|
+
t2 = typedModelId;
|
|
558
|
+
t3 = onSelectModel;
|
|
559
|
+
T0 = ModelSelectorLogo;
|
|
560
|
+
t1 = getCloudflareModelProvider(typedModelId);
|
|
561
|
+
}
|
|
562
|
+
$[0] = allowTypedModel;
|
|
563
|
+
$[1] = onSelectModel;
|
|
564
|
+
$[2] = options;
|
|
565
|
+
$[3] = query;
|
|
566
|
+
$[4] = selectedModelId;
|
|
567
|
+
$[5] = T0;
|
|
568
|
+
$[6] = T1;
|
|
569
|
+
$[7] = T2;
|
|
570
|
+
$[8] = t1;
|
|
571
|
+
$[9] = t2;
|
|
572
|
+
$[10] = t3;
|
|
573
|
+
$[11] = t4;
|
|
574
|
+
$[12] = t5;
|
|
575
|
+
$[13] = typedModelId;
|
|
576
|
+
} else {
|
|
577
|
+
T0 = $[5];
|
|
578
|
+
T1 = $[6];
|
|
579
|
+
T2 = $[7];
|
|
580
|
+
t1 = $[8];
|
|
581
|
+
t2 = $[9];
|
|
582
|
+
t3 = $[10];
|
|
583
|
+
t4 = $[11];
|
|
584
|
+
t5 = $[12];
|
|
585
|
+
typedModelId = $[13];
|
|
586
|
+
}
|
|
587
|
+
if (t5 !== Symbol.for("react.early_return_sentinel")) return t5;
|
|
588
|
+
let t6;
|
|
589
|
+
if ($[14] !== T0 || $[15] !== t1) {
|
|
590
|
+
t6 = /* @__PURE__ */ jsx(T0, { provider: t1 });
|
|
591
|
+
$[14] = T0;
|
|
592
|
+
$[15] = t1;
|
|
593
|
+
$[16] = t6;
|
|
594
|
+
} else t6 = $[16];
|
|
595
|
+
let t7;
|
|
596
|
+
if ($[17] !== typedModelId) {
|
|
597
|
+
t7 = /* @__PURE__ */ jsx(ModelSelectorName, { children: typedModelId });
|
|
598
|
+
$[17] = typedModelId;
|
|
599
|
+
$[18] = t7;
|
|
600
|
+
} else t7 = $[18];
|
|
601
|
+
let t8;
|
|
602
|
+
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
603
|
+
t8 = /* @__PURE__ */ jsx(ModelSelectorSource, { children: "Use" });
|
|
604
|
+
$[19] = t8;
|
|
605
|
+
} else t8 = $[19];
|
|
606
|
+
let t9;
|
|
607
|
+
if ($[20] !== T1 || $[21] !== t2 || $[22] !== t3 || $[23] !== t6 || $[24] !== t7) {
|
|
608
|
+
t9 = /* @__PURE__ */ jsxs(T1, {
|
|
609
|
+
value: t2,
|
|
610
|
+
onSelect: t3,
|
|
312
611
|
children: [
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
612
|
+
t6,
|
|
613
|
+
t7,
|
|
614
|
+
t8
|
|
316
615
|
]
|
|
317
|
-
})
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
616
|
+
});
|
|
617
|
+
$[20] = T1;
|
|
618
|
+
$[21] = t2;
|
|
619
|
+
$[22] = t3;
|
|
620
|
+
$[23] = t6;
|
|
621
|
+
$[24] = t7;
|
|
622
|
+
$[25] = t9;
|
|
623
|
+
} else t9 = $[25];
|
|
624
|
+
let t10;
|
|
625
|
+
if ($[26] !== T2 || $[27] !== t4 || $[28] !== t9) {
|
|
626
|
+
t10 = /* @__PURE__ */ jsx(T2, {
|
|
627
|
+
label: t4,
|
|
628
|
+
children: t9
|
|
629
|
+
});
|
|
630
|
+
$[26] = T2;
|
|
631
|
+
$[27] = t4;
|
|
632
|
+
$[28] = t9;
|
|
633
|
+
$[29] = t10;
|
|
634
|
+
} else t10 = $[29];
|
|
635
|
+
return t10;
|
|
636
|
+
}
|
|
637
|
+
function ModelSelectorTrigger(t0) {
|
|
638
|
+
const $ = c(11);
|
|
639
|
+
let children;
|
|
640
|
+
let className;
|
|
641
|
+
let props;
|
|
642
|
+
if ($[0] !== t0) {
|
|
643
|
+
({className, children, ...props} = t0);
|
|
644
|
+
$[0] = t0;
|
|
645
|
+
$[1] = children;
|
|
646
|
+
$[2] = className;
|
|
647
|
+
$[3] = props;
|
|
648
|
+
} else {
|
|
649
|
+
children = $[1];
|
|
650
|
+
className = $[2];
|
|
651
|
+
props = $[3];
|
|
652
|
+
}
|
|
653
|
+
let t1;
|
|
654
|
+
if ($[4] !== className) {
|
|
655
|
+
t1 = cx("model-selector__trigger", className);
|
|
656
|
+
$[4] = className;
|
|
657
|
+
$[5] = t1;
|
|
658
|
+
} else t1 = $[5];
|
|
659
|
+
let t2;
|
|
660
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
661
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
327
662
|
className: "model-selector__trigger-chevron",
|
|
328
663
|
"aria-hidden": "true",
|
|
329
664
|
children: /* @__PURE__ */ jsx(ChevronDownIcon, {})
|
|
330
|
-
})
|
|
331
|
-
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
665
|
+
});
|
|
666
|
+
$[6] = t2;
|
|
667
|
+
} else t2 = $[6];
|
|
668
|
+
let t3;
|
|
669
|
+
if ($[7] !== children || $[8] !== props || $[9] !== t1) {
|
|
670
|
+
t3 = /* @__PURE__ */ jsx(Dialog.Trigger, { render: /* @__PURE__ */ jsxs(Button, {
|
|
671
|
+
variant: "surface",
|
|
672
|
+
color: "neutral",
|
|
673
|
+
className: t1,
|
|
674
|
+
...props,
|
|
675
|
+
children: [children, t2]
|
|
676
|
+
}) });
|
|
677
|
+
$[7] = children;
|
|
678
|
+
$[8] = props;
|
|
679
|
+
$[9] = t1;
|
|
680
|
+
$[10] = t3;
|
|
681
|
+
} else t3 = $[10];
|
|
682
|
+
return t3;
|
|
683
|
+
}
|
|
684
|
+
function ModelSelectorContent(t0) {
|
|
685
|
+
const $ = c(15);
|
|
686
|
+
let children;
|
|
687
|
+
let className;
|
|
688
|
+
let props;
|
|
689
|
+
let t1;
|
|
690
|
+
if ($[0] !== t0) {
|
|
691
|
+
({children, className, title: t1, ...props} = t0);
|
|
692
|
+
$[0] = t0;
|
|
693
|
+
$[1] = children;
|
|
694
|
+
$[2] = className;
|
|
695
|
+
$[3] = props;
|
|
696
|
+
$[4] = t1;
|
|
697
|
+
} else {
|
|
698
|
+
children = $[1];
|
|
699
|
+
className = $[2];
|
|
700
|
+
props = $[3];
|
|
701
|
+
t1 = $[4];
|
|
702
|
+
}
|
|
703
|
+
const title = t1 === void 0 ? "Model Selector" : t1;
|
|
704
|
+
let t2;
|
|
705
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
706
|
+
t2 = /* @__PURE__ */ jsx(Dialog.Backdrop, {});
|
|
707
|
+
$[5] = t2;
|
|
708
|
+
} else t2 = $[5];
|
|
709
|
+
let t3;
|
|
710
|
+
if ($[6] !== className) {
|
|
711
|
+
t3 = cx("model-selector__popup", className);
|
|
712
|
+
$[6] = className;
|
|
713
|
+
$[7] = t3;
|
|
714
|
+
} else t3 = $[7];
|
|
715
|
+
let t4;
|
|
716
|
+
if ($[8] !== title) {
|
|
717
|
+
t4 = /* @__PURE__ */ jsx(Dialog.Title, {
|
|
338
718
|
className: "model-selector__title sigvelo-visually-hidden",
|
|
339
719
|
children: title
|
|
340
|
-
})
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
720
|
+
});
|
|
721
|
+
$[8] = title;
|
|
722
|
+
$[9] = t4;
|
|
723
|
+
} else t4 = $[9];
|
|
724
|
+
let t5;
|
|
725
|
+
if ($[10] !== children || $[11] !== props || $[12] !== t3 || $[13] !== t4) {
|
|
726
|
+
t5 = /* @__PURE__ */ jsxs(Dialog.Portal, { children: [t2, /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsxs(Dialog.Popup, {
|
|
727
|
+
className: t3,
|
|
728
|
+
...props,
|
|
729
|
+
children: [t4, children]
|
|
730
|
+
}) })] });
|
|
731
|
+
$[10] = children;
|
|
732
|
+
$[11] = props;
|
|
733
|
+
$[12] = t3;
|
|
734
|
+
$[13] = t4;
|
|
735
|
+
$[14] = t5;
|
|
736
|
+
} else t5 = $[14];
|
|
737
|
+
return t5;
|
|
738
|
+
}
|
|
739
|
+
function ModelSelectorDialog(t0) {
|
|
740
|
+
const $ = c(12);
|
|
741
|
+
let children;
|
|
742
|
+
let className;
|
|
743
|
+
let props;
|
|
744
|
+
let ref;
|
|
745
|
+
if ($[0] !== t0) {
|
|
746
|
+
({className, children, ref, ...props} = t0);
|
|
747
|
+
$[0] = t0;
|
|
748
|
+
$[1] = children;
|
|
749
|
+
$[2] = className;
|
|
750
|
+
$[3] = props;
|
|
751
|
+
$[4] = ref;
|
|
752
|
+
} else {
|
|
753
|
+
children = $[1];
|
|
754
|
+
className = $[2];
|
|
755
|
+
props = $[3];
|
|
756
|
+
ref = $[4];
|
|
757
|
+
}
|
|
758
|
+
let t1;
|
|
759
|
+
if ($[5] !== className) {
|
|
760
|
+
t1 = cx("model-selector__dialog", className);
|
|
761
|
+
$[5] = className;
|
|
762
|
+
$[6] = t1;
|
|
763
|
+
} else t1 = $[6];
|
|
764
|
+
let t2;
|
|
765
|
+
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
|
|
766
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
767
|
+
ref,
|
|
768
|
+
className: t1,
|
|
769
|
+
...props,
|
|
770
|
+
children
|
|
771
|
+
});
|
|
772
|
+
$[7] = children;
|
|
773
|
+
$[8] = props;
|
|
774
|
+
$[9] = ref;
|
|
775
|
+
$[10] = t1;
|
|
776
|
+
$[11] = t2;
|
|
777
|
+
} else t2 = $[11];
|
|
778
|
+
return t2;
|
|
779
|
+
}
|
|
780
|
+
function ModelSelectorInput(t0) {
|
|
781
|
+
const $ = c(13);
|
|
782
|
+
let className;
|
|
783
|
+
let props;
|
|
784
|
+
let ref;
|
|
785
|
+
let t1;
|
|
786
|
+
if ($[0] !== t0) {
|
|
787
|
+
({className, placeholder: t1, ref, ...props} = t0);
|
|
788
|
+
$[0] = t0;
|
|
789
|
+
$[1] = className;
|
|
790
|
+
$[2] = props;
|
|
791
|
+
$[3] = ref;
|
|
792
|
+
$[4] = t1;
|
|
793
|
+
} else {
|
|
794
|
+
className = $[1];
|
|
795
|
+
props = $[2];
|
|
796
|
+
ref = $[3];
|
|
797
|
+
t1 = $[4];
|
|
798
|
+
}
|
|
799
|
+
const placeholder = t1 === void 0 ? "Search models…" : t1;
|
|
800
|
+
let t2;
|
|
801
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
802
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
355
803
|
className: "model-selector__search-icon",
|
|
356
804
|
"aria-hidden": "true",
|
|
357
805
|
children: /* @__PURE__ */ jsx(SearchIcon, {})
|
|
358
|
-
})
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
806
|
+
});
|
|
807
|
+
$[5] = t2;
|
|
808
|
+
} else t2 = $[5];
|
|
809
|
+
let t3;
|
|
810
|
+
if ($[6] !== className) {
|
|
811
|
+
t3 = cx("model-selector__input", className);
|
|
812
|
+
$[6] = className;
|
|
813
|
+
$[7] = t3;
|
|
814
|
+
} else t3 = $[7];
|
|
815
|
+
let t4;
|
|
816
|
+
if ($[8] !== placeholder || $[9] !== props || $[10] !== ref || $[11] !== t3) {
|
|
817
|
+
t4 = /* @__PURE__ */ jsxs("div", {
|
|
818
|
+
className: "model-selector__search",
|
|
819
|
+
children: [t2, /* @__PURE__ */ jsx(Autocomplete.Input, {
|
|
820
|
+
ref,
|
|
821
|
+
type: "search",
|
|
822
|
+
placeholder,
|
|
823
|
+
className: t3,
|
|
824
|
+
autoFocus: true,
|
|
825
|
+
"aria-expanded": "true",
|
|
826
|
+
...props
|
|
827
|
+
})]
|
|
828
|
+
});
|
|
829
|
+
$[8] = placeholder;
|
|
830
|
+
$[9] = props;
|
|
831
|
+
$[10] = ref;
|
|
832
|
+
$[11] = t3;
|
|
833
|
+
$[12] = t4;
|
|
834
|
+
} else t4 = $[12];
|
|
835
|
+
return t4;
|
|
368
836
|
}
|
|
369
|
-
function ModelSelectorList(
|
|
837
|
+
function ModelSelectorList(t0) {
|
|
838
|
+
const $ = c(20);
|
|
839
|
+
let children;
|
|
840
|
+
let className;
|
|
841
|
+
let props;
|
|
842
|
+
let ref;
|
|
843
|
+
if ($[0] !== t0) {
|
|
844
|
+
({className, children, ref, ...props} = t0);
|
|
845
|
+
$[0] = t0;
|
|
846
|
+
$[1] = children;
|
|
847
|
+
$[2] = className;
|
|
848
|
+
$[3] = props;
|
|
849
|
+
$[4] = ref;
|
|
850
|
+
} else {
|
|
851
|
+
children = $[1];
|
|
852
|
+
className = $[2];
|
|
853
|
+
props = $[3];
|
|
854
|
+
ref = $[4];
|
|
855
|
+
}
|
|
370
856
|
const [contentElement, setContentElement] = React.useState(null);
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
857
|
+
let t1;
|
|
858
|
+
if ($[5] !== className) {
|
|
859
|
+
t1 = cx("model-selector__list-viewport", className);
|
|
860
|
+
$[5] = className;
|
|
861
|
+
$[6] = t1;
|
|
862
|
+
} else t1 = $[6];
|
|
863
|
+
let t2;
|
|
864
|
+
if ($[7] !== children) {
|
|
865
|
+
t2 = /* @__PURE__ */ jsx(Autocomplete.List, {
|
|
866
|
+
className: "model-selector__options",
|
|
867
|
+
children
|
|
868
|
+
});
|
|
869
|
+
$[7] = children;
|
|
870
|
+
$[8] = t2;
|
|
871
|
+
} else t2 = $[8];
|
|
872
|
+
let t3;
|
|
873
|
+
if ($[9] !== contentElement || $[10] !== t2) {
|
|
874
|
+
t3 = /* @__PURE__ */ jsx(ScrollArea.Content, {
|
|
875
|
+
ref: setContentElement,
|
|
876
|
+
className: "model-selector__list-content",
|
|
877
|
+
children: /* @__PURE__ */ jsx(ModelSelectorEmptyContainerContext.Provider, {
|
|
878
|
+
value: contentElement,
|
|
879
|
+
children: t2
|
|
880
|
+
})
|
|
881
|
+
});
|
|
882
|
+
$[9] = contentElement;
|
|
883
|
+
$[10] = t2;
|
|
884
|
+
$[11] = t3;
|
|
885
|
+
} else t3 = $[11];
|
|
886
|
+
let t4;
|
|
887
|
+
if ($[12] !== props || $[13] !== ref || $[14] !== t1 || $[15] !== t3) {
|
|
888
|
+
t4 = /* @__PURE__ */ jsx(ScrollArea.Viewport, {
|
|
374
889
|
ref,
|
|
375
|
-
className:
|
|
890
|
+
className: t1,
|
|
376
891
|
...props,
|
|
377
|
-
children:
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
}), /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
|
|
892
|
+
children: t3
|
|
893
|
+
});
|
|
894
|
+
$[12] = props;
|
|
895
|
+
$[13] = ref;
|
|
896
|
+
$[14] = t1;
|
|
897
|
+
$[15] = t3;
|
|
898
|
+
$[16] = t4;
|
|
899
|
+
} else t4 = $[16];
|
|
900
|
+
let t5;
|
|
901
|
+
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
902
|
+
t5 = /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
|
|
389
903
|
orientation: "vertical",
|
|
390
904
|
children: /* @__PURE__ */ jsx(ScrollArea.Thumb, {})
|
|
391
|
-
})
|
|
392
|
-
|
|
905
|
+
});
|
|
906
|
+
$[17] = t5;
|
|
907
|
+
} else t5 = $[17];
|
|
908
|
+
let t6;
|
|
909
|
+
if ($[18] !== t4) {
|
|
910
|
+
t6 = /* @__PURE__ */ jsxs(ScrollArea.Root, {
|
|
911
|
+
className: "model-selector__list",
|
|
912
|
+
children: [t4, t5]
|
|
913
|
+
});
|
|
914
|
+
$[18] = t4;
|
|
915
|
+
$[19] = t6;
|
|
916
|
+
} else t6 = $[19];
|
|
917
|
+
return t6;
|
|
393
918
|
}
|
|
394
|
-
function ModelSelectorGroup(
|
|
919
|
+
function ModelSelectorGroup(t0) {
|
|
920
|
+
const $ = c(28);
|
|
921
|
+
let children;
|
|
922
|
+
let className;
|
|
923
|
+
let label;
|
|
924
|
+
let props;
|
|
925
|
+
let ref;
|
|
926
|
+
if ($[0] !== t0) {
|
|
927
|
+
({className, label, children, ref, ...props} = t0);
|
|
928
|
+
$[0] = t0;
|
|
929
|
+
$[1] = children;
|
|
930
|
+
$[2] = className;
|
|
931
|
+
$[3] = label;
|
|
932
|
+
$[4] = props;
|
|
933
|
+
$[5] = ref;
|
|
934
|
+
} else {
|
|
935
|
+
children = $[1];
|
|
936
|
+
className = $[2];
|
|
937
|
+
label = $[3];
|
|
938
|
+
props = $[4];
|
|
939
|
+
ref = $[5];
|
|
940
|
+
}
|
|
395
941
|
const { query, registerGroup } = useModelSelectorContext();
|
|
396
942
|
const groupId = React.useId();
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
}
|
|
943
|
+
let t1;
|
|
944
|
+
if ($[6] !== children) {
|
|
945
|
+
t1 = React.Children.toArray(children).filter(_temp2);
|
|
946
|
+
$[6] = children;
|
|
947
|
+
$[7] = t1;
|
|
948
|
+
} else t1 = $[7];
|
|
949
|
+
const childArray = t1;
|
|
950
|
+
let t2;
|
|
951
|
+
if ($[8] !== childArray) {
|
|
952
|
+
t2 = childArray.map(_temp3);
|
|
953
|
+
$[8] = childArray;
|
|
954
|
+
$[9] = t2;
|
|
955
|
+
} else t2 = $[9];
|
|
956
|
+
const items = t2;
|
|
957
|
+
let t3;
|
|
958
|
+
let t4;
|
|
959
|
+
if ($[10] !== groupId || $[11] !== items || $[12] !== registerGroup) {
|
|
960
|
+
t3 = () => registerGroup(groupId, items);
|
|
961
|
+
t4 = [
|
|
962
|
+
groupId,
|
|
963
|
+
items,
|
|
964
|
+
registerGroup
|
|
965
|
+
];
|
|
966
|
+
$[10] = groupId;
|
|
967
|
+
$[11] = items;
|
|
968
|
+
$[12] = registerGroup;
|
|
969
|
+
$[13] = t3;
|
|
970
|
+
$[14] = t4;
|
|
971
|
+
} else {
|
|
972
|
+
t3 = $[13];
|
|
973
|
+
t4 = $[14];
|
|
974
|
+
}
|
|
975
|
+
React.useEffect(t3, t4);
|
|
976
|
+
let t5;
|
|
977
|
+
if ($[15] !== childArray || $[16] !== query) {
|
|
978
|
+
const q = query.trim().toLowerCase();
|
|
979
|
+
t5 = q ? childArray.filter((child_1) => {
|
|
980
|
+
const value = String(child_1.props.value ?? "").toLowerCase();
|
|
981
|
+
const keywords = String(child_1.props.keywords ?? "").toLowerCase();
|
|
982
|
+
return value.includes(q) || keywords.includes(q);
|
|
983
|
+
}) : childArray;
|
|
984
|
+
$[15] = childArray;
|
|
985
|
+
$[16] = query;
|
|
986
|
+
$[17] = t5;
|
|
987
|
+
} else t5 = $[17];
|
|
988
|
+
const filtered = t5;
|
|
410
989
|
if (filtered.length === 0) return null;
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
990
|
+
let t6;
|
|
991
|
+
if ($[18] !== className) {
|
|
992
|
+
t6 = cx("model-selector__group", className);
|
|
993
|
+
$[18] = className;
|
|
994
|
+
$[19] = t6;
|
|
995
|
+
} else t6 = $[19];
|
|
996
|
+
let t7;
|
|
997
|
+
if ($[20] !== label) {
|
|
998
|
+
t7 = /* @__PURE__ */ jsx(Autocomplete.GroupLabel, {
|
|
416
999
|
className: "model-selector__group-label",
|
|
417
1000
|
children: label
|
|
418
|
-
})
|
|
419
|
-
|
|
1001
|
+
});
|
|
1002
|
+
$[20] = label;
|
|
1003
|
+
$[21] = t7;
|
|
1004
|
+
} else t7 = $[21];
|
|
1005
|
+
let t8;
|
|
1006
|
+
if ($[22] !== filtered || $[23] !== props || $[24] !== ref || $[25] !== t6 || $[26] !== t7) {
|
|
1007
|
+
t8 = /* @__PURE__ */ jsxs(Autocomplete.Group, {
|
|
1008
|
+
ref,
|
|
1009
|
+
className: t6,
|
|
1010
|
+
...props,
|
|
1011
|
+
children: [t7, filtered]
|
|
1012
|
+
});
|
|
1013
|
+
$[22] = filtered;
|
|
1014
|
+
$[23] = props;
|
|
1015
|
+
$[24] = ref;
|
|
1016
|
+
$[25] = t6;
|
|
1017
|
+
$[26] = t7;
|
|
1018
|
+
$[27] = t8;
|
|
1019
|
+
} else t8 = $[27];
|
|
1020
|
+
return t8;
|
|
420
1021
|
}
|
|
421
|
-
function
|
|
422
|
-
return
|
|
423
|
-
|
|
1022
|
+
function _temp3(child_0) {
|
|
1023
|
+
return modelSelectorItemSearchValue(child_0.props);
|
|
1024
|
+
}
|
|
1025
|
+
function _temp2(child) {
|
|
1026
|
+
return React.isValidElement(child);
|
|
1027
|
+
}
|
|
1028
|
+
function ModelSelectorItem(t0) {
|
|
1029
|
+
const $ = c(36);
|
|
1030
|
+
let children;
|
|
1031
|
+
let className;
|
|
1032
|
+
let disabled;
|
|
1033
|
+
let keywords;
|
|
1034
|
+
let onClick;
|
|
1035
|
+
let onSelect;
|
|
1036
|
+
let props;
|
|
1037
|
+
let ref;
|
|
1038
|
+
let selected;
|
|
1039
|
+
let value;
|
|
1040
|
+
if ($[0] !== t0) {
|
|
1041
|
+
({className, value, keywords, selected, onSelect, children, onClick, ref, disabled, ...props} = t0);
|
|
1042
|
+
$[0] = t0;
|
|
1043
|
+
$[1] = children;
|
|
1044
|
+
$[2] = className;
|
|
1045
|
+
$[3] = disabled;
|
|
1046
|
+
$[4] = keywords;
|
|
1047
|
+
$[5] = onClick;
|
|
1048
|
+
$[6] = onSelect;
|
|
1049
|
+
$[7] = props;
|
|
1050
|
+
$[8] = ref;
|
|
1051
|
+
$[9] = selected;
|
|
1052
|
+
$[10] = value;
|
|
1053
|
+
} else {
|
|
1054
|
+
children = $[1];
|
|
1055
|
+
className = $[2];
|
|
1056
|
+
disabled = $[3];
|
|
1057
|
+
keywords = $[4];
|
|
1058
|
+
onClick = $[5];
|
|
1059
|
+
onSelect = $[6];
|
|
1060
|
+
props = $[7];
|
|
1061
|
+
ref = $[8];
|
|
1062
|
+
selected = $[9];
|
|
1063
|
+
value = $[10];
|
|
1064
|
+
}
|
|
1065
|
+
let t1;
|
|
1066
|
+
if ($[11] !== keywords || $[12] !== value) {
|
|
1067
|
+
t1 = modelSelectorItemSearchValue({
|
|
424
1068
|
keywords,
|
|
425
1069
|
value
|
|
426
|
-
})
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
1070
|
+
});
|
|
1071
|
+
$[11] = keywords;
|
|
1072
|
+
$[12] = value;
|
|
1073
|
+
$[13] = t1;
|
|
1074
|
+
} else t1 = $[13];
|
|
1075
|
+
const t2 = selected ? "true" : "false";
|
|
1076
|
+
const t3 = selected ? "" : void 0;
|
|
1077
|
+
let t4;
|
|
1078
|
+
if ($[14] !== onSelect || $[15] !== value) {
|
|
1079
|
+
t4 = () => onSelect?.(value);
|
|
1080
|
+
$[14] = onSelect;
|
|
1081
|
+
$[15] = value;
|
|
1082
|
+
$[16] = t4;
|
|
1083
|
+
} else t4 = $[16];
|
|
1084
|
+
let t5;
|
|
1085
|
+
if ($[17] !== className) {
|
|
1086
|
+
t5 = cx("model-selector__item", className);
|
|
1087
|
+
$[17] = className;
|
|
1088
|
+
$[18] = t5;
|
|
1089
|
+
} else t5 = $[18];
|
|
1090
|
+
let t6;
|
|
1091
|
+
if ($[19] !== children || $[20] !== disabled || $[21] !== onClick || $[22] !== props || $[23] !== ref || $[24] !== t5) {
|
|
1092
|
+
t6 = /* @__PURE__ */ jsx(Button, {
|
|
1093
|
+
ref,
|
|
1094
|
+
variant: "ghost",
|
|
1095
|
+
color: "neutral",
|
|
434
1096
|
disabled,
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
1097
|
+
className: t5,
|
|
1098
|
+
onClick,
|
|
1099
|
+
...props,
|
|
1100
|
+
children
|
|
1101
|
+
});
|
|
1102
|
+
$[19] = children;
|
|
1103
|
+
$[20] = disabled;
|
|
1104
|
+
$[21] = onClick;
|
|
1105
|
+
$[22] = props;
|
|
1106
|
+
$[23] = ref;
|
|
1107
|
+
$[24] = t5;
|
|
1108
|
+
$[25] = t6;
|
|
1109
|
+
} else t6 = $[25];
|
|
1110
|
+
let t7;
|
|
1111
|
+
if ($[26] !== disabled || $[27] !== t6) {
|
|
1112
|
+
t7 = /* @__PURE__ */ jsx(Dialog.Close, {
|
|
1113
|
+
disabled,
|
|
1114
|
+
render: t6
|
|
1115
|
+
});
|
|
1116
|
+
$[26] = disabled;
|
|
1117
|
+
$[27] = t6;
|
|
1118
|
+
$[28] = t7;
|
|
1119
|
+
} else t7 = $[28];
|
|
1120
|
+
let t8;
|
|
1121
|
+
if ($[29] !== disabled || $[30] !== t1 || $[31] !== t2 || $[32] !== t3 || $[33] !== t4 || $[34] !== t7) {
|
|
1122
|
+
t8 = /* @__PURE__ */ jsx(Autocomplete.Item, {
|
|
1123
|
+
value: t1,
|
|
1124
|
+
disabled,
|
|
1125
|
+
nativeButton: true,
|
|
1126
|
+
"aria-selected": t2,
|
|
1127
|
+
"data-selected": t3,
|
|
1128
|
+
tabIndex: -1,
|
|
1129
|
+
onClick: t4,
|
|
1130
|
+
render: t7
|
|
1131
|
+
});
|
|
1132
|
+
$[29] = disabled;
|
|
1133
|
+
$[30] = t1;
|
|
1134
|
+
$[31] = t2;
|
|
1135
|
+
$[32] = t3;
|
|
1136
|
+
$[33] = t4;
|
|
1137
|
+
$[34] = t7;
|
|
1138
|
+
$[35] = t8;
|
|
1139
|
+
} else t8 = $[35];
|
|
1140
|
+
return t8;
|
|
447
1141
|
}
|
|
448
|
-
function ModelSelectorEmpty(
|
|
1142
|
+
function ModelSelectorEmpty(t0) {
|
|
1143
|
+
const $ = c(15);
|
|
1144
|
+
let className;
|
|
1145
|
+
let props;
|
|
1146
|
+
let ref;
|
|
1147
|
+
let t1;
|
|
1148
|
+
if ($[0] !== t0) {
|
|
1149
|
+
({className, children: t1, ref, ...props} = t0);
|
|
1150
|
+
$[0] = t0;
|
|
1151
|
+
$[1] = className;
|
|
1152
|
+
$[2] = props;
|
|
1153
|
+
$[3] = ref;
|
|
1154
|
+
$[4] = t1;
|
|
1155
|
+
} else {
|
|
1156
|
+
className = $[1];
|
|
1157
|
+
props = $[2];
|
|
1158
|
+
ref = $[3];
|
|
1159
|
+
t1 = $[4];
|
|
1160
|
+
}
|
|
1161
|
+
const children = t1 === void 0 ? "No models found" : t1;
|
|
449
1162
|
const container = React.useContext(ModelSelectorEmptyContainerContext);
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
}
|
|
1163
|
+
let t2;
|
|
1164
|
+
if ($[5] !== className) {
|
|
1165
|
+
t2 = cx("model-selector__empty", className);
|
|
1166
|
+
$[5] = className;
|
|
1167
|
+
$[6] = t2;
|
|
1168
|
+
} else t2 = $[6];
|
|
1169
|
+
let t3;
|
|
1170
|
+
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t2) {
|
|
1171
|
+
t3 = /* @__PURE__ */ jsx(Autocomplete.Empty, { children: /* @__PURE__ */ jsx(EmptyState, {
|
|
1172
|
+
ref,
|
|
1173
|
+
className: t2,
|
|
1174
|
+
...props,
|
|
1175
|
+
children
|
|
1176
|
+
}) });
|
|
1177
|
+
$[7] = children;
|
|
1178
|
+
$[8] = props;
|
|
1179
|
+
$[9] = ref;
|
|
1180
|
+
$[10] = t2;
|
|
1181
|
+
$[11] = t3;
|
|
1182
|
+
} else t3 = $[11];
|
|
1183
|
+
const empty = t3;
|
|
456
1184
|
if (container === null) return null;
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}
|
|
466
|
-
function
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
1185
|
+
let t4;
|
|
1186
|
+
if ($[12] !== container || $[13] !== empty) {
|
|
1187
|
+
t4 = container ? createPortal(empty, container) : empty;
|
|
1188
|
+
$[12] = container;
|
|
1189
|
+
$[13] = empty;
|
|
1190
|
+
$[14] = t4;
|
|
1191
|
+
} else t4 = $[14];
|
|
1192
|
+
return t4;
|
|
1193
|
+
}
|
|
1194
|
+
function ModelSelectorSeparator(t0) {
|
|
1195
|
+
const $ = c(10);
|
|
1196
|
+
let className;
|
|
1197
|
+
let props;
|
|
1198
|
+
let ref;
|
|
1199
|
+
if ($[0] !== t0) {
|
|
1200
|
+
({className, ref, ...props} = t0);
|
|
1201
|
+
$[0] = t0;
|
|
1202
|
+
$[1] = className;
|
|
1203
|
+
$[2] = props;
|
|
1204
|
+
$[3] = ref;
|
|
1205
|
+
} else {
|
|
1206
|
+
className = $[1];
|
|
1207
|
+
props = $[2];
|
|
1208
|
+
ref = $[3];
|
|
1209
|
+
}
|
|
1210
|
+
let t1;
|
|
1211
|
+
if ($[4] !== className) {
|
|
1212
|
+
t1 = cx("model-selector__separator", className);
|
|
1213
|
+
$[4] = className;
|
|
1214
|
+
$[5] = t1;
|
|
1215
|
+
} else t1 = $[5];
|
|
1216
|
+
let t2;
|
|
1217
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
1218
|
+
t2 = /* @__PURE__ */ jsx(Separator, {
|
|
1219
|
+
ref,
|
|
1220
|
+
className: t1,
|
|
1221
|
+
...props
|
|
1222
|
+
});
|
|
1223
|
+
$[6] = props;
|
|
1224
|
+
$[7] = ref;
|
|
1225
|
+
$[8] = t1;
|
|
1226
|
+
$[9] = t2;
|
|
1227
|
+
} else t2 = $[9];
|
|
1228
|
+
return t2;
|
|
1229
|
+
}
|
|
1230
|
+
function ModelSelectorLogo(t0) {
|
|
1231
|
+
const $ = c(12);
|
|
1232
|
+
let className;
|
|
1233
|
+
let props;
|
|
1234
|
+
let provider;
|
|
1235
|
+
if ($[0] !== t0) {
|
|
1236
|
+
({className, provider, ...props} = t0);
|
|
1237
|
+
$[0] = t0;
|
|
1238
|
+
$[1] = className;
|
|
1239
|
+
$[2] = props;
|
|
1240
|
+
$[3] = provider;
|
|
1241
|
+
} else {
|
|
1242
|
+
className = $[1];
|
|
1243
|
+
props = $[2];
|
|
1244
|
+
provider = $[3];
|
|
1245
|
+
}
|
|
1246
|
+
let t1;
|
|
1247
|
+
if ($[4] !== className) {
|
|
1248
|
+
t1 = cx("model-selector__logo", className);
|
|
1249
|
+
$[4] = className;
|
|
1250
|
+
$[5] = t1;
|
|
1251
|
+
} else t1 = $[5];
|
|
1252
|
+
let t2;
|
|
1253
|
+
if ($[6] !== props || $[7] !== provider) {
|
|
1254
|
+
t2 = /* @__PURE__ */ jsx(ProviderLogo, {
|
|
470
1255
|
provider,
|
|
471
1256
|
...props
|
|
472
|
-
})
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
1257
|
+
});
|
|
1258
|
+
$[6] = props;
|
|
1259
|
+
$[7] = provider;
|
|
1260
|
+
$[8] = t2;
|
|
1261
|
+
} else t2 = $[8];
|
|
1262
|
+
let t3;
|
|
1263
|
+
if ($[9] !== t1 || $[10] !== t2) {
|
|
1264
|
+
t3 = /* @__PURE__ */ jsx("span", {
|
|
1265
|
+
className: t1,
|
|
1266
|
+
children: t2
|
|
1267
|
+
});
|
|
1268
|
+
$[9] = t1;
|
|
1269
|
+
$[10] = t2;
|
|
1270
|
+
$[11] = t3;
|
|
1271
|
+
} else t3 = $[11];
|
|
1272
|
+
return t3;
|
|
1273
|
+
}
|
|
1274
|
+
function ModelSelectorLogoGroup(t0) {
|
|
1275
|
+
const $ = c(12);
|
|
1276
|
+
let children;
|
|
1277
|
+
let className;
|
|
1278
|
+
let props;
|
|
1279
|
+
let ref;
|
|
1280
|
+
if ($[0] !== t0) {
|
|
1281
|
+
({className, children, ref, ...props} = t0);
|
|
1282
|
+
$[0] = t0;
|
|
1283
|
+
$[1] = children;
|
|
1284
|
+
$[2] = className;
|
|
1285
|
+
$[3] = props;
|
|
1286
|
+
$[4] = ref;
|
|
1287
|
+
} else {
|
|
1288
|
+
children = $[1];
|
|
1289
|
+
className = $[2];
|
|
1290
|
+
props = $[3];
|
|
1291
|
+
ref = $[4];
|
|
1292
|
+
}
|
|
1293
|
+
let t1;
|
|
1294
|
+
if ($[5] !== className) {
|
|
1295
|
+
t1 = cx("model-selector__logo-group", className);
|
|
1296
|
+
$[5] = className;
|
|
1297
|
+
$[6] = t1;
|
|
1298
|
+
} else t1 = $[6];
|
|
1299
|
+
let t2;
|
|
1300
|
+
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
|
|
1301
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
1302
|
+
ref,
|
|
1303
|
+
className: t1,
|
|
1304
|
+
...props,
|
|
1305
|
+
children
|
|
1306
|
+
});
|
|
1307
|
+
$[7] = children;
|
|
1308
|
+
$[8] = props;
|
|
1309
|
+
$[9] = ref;
|
|
1310
|
+
$[10] = t1;
|
|
1311
|
+
$[11] = t2;
|
|
1312
|
+
} else t2 = $[11];
|
|
1313
|
+
return t2;
|
|
1314
|
+
}
|
|
1315
|
+
function ModelSelectorName(t0) {
|
|
1316
|
+
const $ = c(12);
|
|
1317
|
+
let children;
|
|
1318
|
+
let className;
|
|
1319
|
+
let props;
|
|
1320
|
+
let ref;
|
|
1321
|
+
if ($[0] !== t0) {
|
|
1322
|
+
({className, children, ref, ...props} = t0);
|
|
1323
|
+
$[0] = t0;
|
|
1324
|
+
$[1] = children;
|
|
1325
|
+
$[2] = className;
|
|
1326
|
+
$[3] = props;
|
|
1327
|
+
$[4] = ref;
|
|
1328
|
+
} else {
|
|
1329
|
+
children = $[1];
|
|
1330
|
+
className = $[2];
|
|
1331
|
+
props = $[3];
|
|
1332
|
+
ref = $[4];
|
|
1333
|
+
}
|
|
1334
|
+
let t1;
|
|
1335
|
+
if ($[5] !== className) {
|
|
1336
|
+
t1 = cx("model-selector__name", "sigvelo-truncate", "sigvelo-truncate-grow", className);
|
|
1337
|
+
$[5] = className;
|
|
1338
|
+
$[6] = t1;
|
|
1339
|
+
} else t1 = $[6];
|
|
1340
|
+
let t2;
|
|
1341
|
+
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
|
|
1342
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
1343
|
+
ref,
|
|
1344
|
+
className: t1,
|
|
1345
|
+
...props,
|
|
1346
|
+
children
|
|
1347
|
+
});
|
|
1348
|
+
$[7] = children;
|
|
1349
|
+
$[8] = props;
|
|
1350
|
+
$[9] = ref;
|
|
1351
|
+
$[10] = t1;
|
|
1352
|
+
$[11] = t2;
|
|
1353
|
+
} else t2 = $[11];
|
|
1354
|
+
return t2;
|
|
490
1355
|
}
|
|
491
1356
|
/**
|
|
492
1357
|
* Where a model comes from — "Workers AI", "Gateway" — shown at the end of its
|
|
@@ -494,13 +1359,46 @@ function ModelSelectorName({ className, children, ref, ...props }) {
|
|
|
494
1359
|
* "Workers AI" to a screen reader as keyboard input and offered a shortcut
|
|
495
1360
|
* that does not exist.
|
|
496
1361
|
*/
|
|
497
|
-
function ModelSelectorSource(
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
1362
|
+
function ModelSelectorSource(t0) {
|
|
1363
|
+
const $ = c(12);
|
|
1364
|
+
let children;
|
|
1365
|
+
let className;
|
|
1366
|
+
let props;
|
|
1367
|
+
let ref;
|
|
1368
|
+
if ($[0] !== t0) {
|
|
1369
|
+
({className, children, ref, ...props} = t0);
|
|
1370
|
+
$[0] = t0;
|
|
1371
|
+
$[1] = children;
|
|
1372
|
+
$[2] = className;
|
|
1373
|
+
$[3] = props;
|
|
1374
|
+
$[4] = ref;
|
|
1375
|
+
} else {
|
|
1376
|
+
children = $[1];
|
|
1377
|
+
className = $[2];
|
|
1378
|
+
props = $[3];
|
|
1379
|
+
ref = $[4];
|
|
1380
|
+
}
|
|
1381
|
+
let t1;
|
|
1382
|
+
if ($[5] !== className) {
|
|
1383
|
+
t1 = cx("model-selector__source", className);
|
|
1384
|
+
$[5] = className;
|
|
1385
|
+
$[6] = t1;
|
|
1386
|
+
} else t1 = $[6];
|
|
1387
|
+
let t2;
|
|
1388
|
+
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
|
|
1389
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
1390
|
+
ref,
|
|
1391
|
+
className: t1,
|
|
1392
|
+
...props,
|
|
1393
|
+
children
|
|
1394
|
+
});
|
|
1395
|
+
$[7] = children;
|
|
1396
|
+
$[8] = props;
|
|
1397
|
+
$[9] = ref;
|
|
1398
|
+
$[10] = t1;
|
|
1399
|
+
$[11] = t2;
|
|
1400
|
+
} else t2 = $[11];
|
|
1401
|
+
return t2;
|
|
504
1402
|
}
|
|
505
1403
|
//#endregion
|
|
506
1404
|
export { CloudflareModelSelector, ModelSelector, ModelSelectorContent, ModelSelectorDialog, ModelSelectorEmpty, ModelSelectorGroup, ModelSelectorInput, ModelSelectorItem, ModelSelectorList, ModelSelectorLogo, ModelSelectorLogoGroup, ModelSelectorName, ModelSelectorSeparator, ModelSelectorSource, ModelSelectorTrigger, formatCloudflareModelProvider, getCloudflareModelProvider, isCloudflareRunnableModelId, listCloudflareModelSelectorOptions, normalizeCloudflareModelSelectorModels, readCloudflareModelId };
|