@mcp-b/react-components 0.63.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--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
- 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-yDZorXla.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/command-search-1fjmCBBo.js +34 -0
- package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
- 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 +1113 -386
- 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 +164 -21
- 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 +108 -46
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +500 -99
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
- 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 +142 -35
- 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 +332 -117
- package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
- package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
- 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 +542 -158
- package/dist/components/agents-sdk/ModelSelector.js +1151 -253
- package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
- 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 +357 -129
- package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
- package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkChat.js +321 -132
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
- 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 +1386 -404
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
- 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 +505 -124
- package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
- package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -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 +363 -132
- 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 +311 -90
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
- 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 +1492 -415
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
- 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 +267 -85
- 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 +118 -58
- 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 +193 -68
- 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.js +75 -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 +737 -178
- 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 +2735 -794
- 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 +792 -154
- 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 +1 -1
- package/dist/components/extension/CodexModelSelector.js +467 -146
- 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 +3834 -1012
- 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 +82 -17
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +129 -26
- 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 +3 -3
- package/dist/components/foundations/ToggleGroup.js +215 -59
- 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 +33 -6
- 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 +209 -84
- package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
- 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.js +235 -77
- 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 +66 -23
- 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 +233 -53
- 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/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 +4 -4
- 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 -133
- 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/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/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-C_oYhPSx.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-DYQdZUH6.js +0 -318
- package/dist/ExecutionResult-2fBkpIGN.js +0 -279
- package/dist/FileTree-CDLOD643.js +0 -323
- package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
- package/dist/SetupChecklist-B-iEta9v.js +0 -78
- package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
- package/dist/WorkspaceFileView-DwIkehSM.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-D8AT6x4c.js +0 -32
- package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
- package/dist/copy-button-DbR932tF.js +0 -45
- package/dist/icons-GoybMAB2.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-F3r6XltC.js +0 -107
- package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
- package/dist/workspace-delete-CQvv1eDE.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
|
@@ -0,0 +1,1295 @@
|
|
|
1
|
+
import { C as DownloadIcon, U as MinusIcon, Z as PlusIcon, z as MaximizeIcon } from "./icons-nLTnB9kd.js";
|
|
2
|
+
import { i as formatClock } from "./format-DL7f2rqp.js";
|
|
3
|
+
import { Button } from "./components/foundations/Button.js";
|
|
4
|
+
import { IconButton } from "./components/foundations/IconButton.js";
|
|
5
|
+
import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import Lightbox from "yet-another-react-lightbox";
|
|
10
|
+
import Fullscreen from "yet-another-react-lightbox/plugins/fullscreen";
|
|
11
|
+
import Zoom from "yet-another-react-lightbox/plugins/zoom";
|
|
12
|
+
//#region src/components/_internal/workspace-media-preview.tsx
|
|
13
|
+
const lightboxPlugins = [Zoom, Fullscreen];
|
|
14
|
+
/**
|
|
15
|
+
* A window around the preview that names the file and owns its chrome — Quick
|
|
16
|
+
* Look. Inside one, an image draws no sizing controls of its own: the frame's
|
|
17
|
+
* element hears the zoom keys, wherever focus is in it, and a pinch zooms.
|
|
18
|
+
*/
|
|
19
|
+
const WorkspacePreviewFrame = React.createContext(null);
|
|
20
|
+
const allowedAssetProtocols = /* @__PURE__ */ new Set([
|
|
21
|
+
"http:",
|
|
22
|
+
"https:",
|
|
23
|
+
"blob:"
|
|
24
|
+
]);
|
|
25
|
+
const SVG_MIME_TYPE = "image/svg+xml";
|
|
26
|
+
const lightboxThemeProperties = [
|
|
27
|
+
"--sigvelo-color-surface",
|
|
28
|
+
"--sigvelo-color-text",
|
|
29
|
+
"--sigvelo-color-text-muted",
|
|
30
|
+
"--sigvelo-color-neutral-border-subtle",
|
|
31
|
+
"--sigvelo-border-style",
|
|
32
|
+
"--sigvelo-border-width",
|
|
33
|
+
"--sigvelo-spacing-1",
|
|
34
|
+
"--sigvelo-spacing-2",
|
|
35
|
+
"--sigvelo-radius-md",
|
|
36
|
+
"--sigvelo-focus-ring",
|
|
37
|
+
"--sigvelo-focus-offset"
|
|
38
|
+
];
|
|
39
|
+
function safeAssetUrl(value) {
|
|
40
|
+
if (!value?.trim()) return null;
|
|
41
|
+
try {
|
|
42
|
+
const parsed = new URL(value, "https://workspace.invalid/");
|
|
43
|
+
return allowedAssetProtocols.has(parsed.protocol) ? value : null;
|
|
44
|
+
} catch {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function toBlobPart(data) {
|
|
49
|
+
return data;
|
|
50
|
+
}
|
|
51
|
+
function resolveLightboxTheme(element) {
|
|
52
|
+
const computedStyle = getComputedStyle(element);
|
|
53
|
+
return {
|
|
54
|
+
colorScheme: computedStyle.colorScheme,
|
|
55
|
+
...Object.fromEntries(lightboxThemeProperties.map((property) => [property, computedStyle.getPropertyValue(property)]))
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/** One store per asset bytes and type, shared by every preview showing them. */
|
|
59
|
+
const assetUrlStores = /* @__PURE__ */ new WeakMap();
|
|
60
|
+
/**
|
|
61
|
+
* Object URLs for an asset's bytes, alive while something is subscribed to
|
|
62
|
+
* them. The first subscriber creates them and the last one revokes them, so a
|
|
63
|
+
* URL never outlives the previews that show it.
|
|
64
|
+
*/
|
|
65
|
+
function assetUrlStore(asset, mimeType) {
|
|
66
|
+
let byType = assetUrlStores.get(asset);
|
|
67
|
+
if (!byType) assetUrlStores.set(asset, byType = /* @__PURE__ */ new Map());
|
|
68
|
+
let store = byType.get(mimeType);
|
|
69
|
+
if (store) return store;
|
|
70
|
+
let snapshot = null;
|
|
71
|
+
let revoke = () => {};
|
|
72
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
73
|
+
store = {
|
|
74
|
+
subscribe(listener) {
|
|
75
|
+
if (!listeners.size) {
|
|
76
|
+
const previewBlob = new Blob([toBlobPart(asset.data)], { type: mimeType });
|
|
77
|
+
const url = URL.createObjectURL(previewBlob);
|
|
78
|
+
const downloadUrl = mimeType === SVG_MIME_TYPE ? URL.createObjectURL(new Blob([previewBlob], { type: "application/octet-stream" })) : url;
|
|
79
|
+
snapshot = {
|
|
80
|
+
url,
|
|
81
|
+
downloadUrl,
|
|
82
|
+
error: null
|
|
83
|
+
};
|
|
84
|
+
revoke = () => {
|
|
85
|
+
URL.revokeObjectURL(url);
|
|
86
|
+
if (downloadUrl !== url) URL.revokeObjectURL(downloadUrl);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
listeners.add(listener);
|
|
90
|
+
return () => {
|
|
91
|
+
listeners.delete(listener);
|
|
92
|
+
if (listeners.size) return;
|
|
93
|
+
revoke();
|
|
94
|
+
snapshot = null;
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
getSnapshot: () => snapshot
|
|
98
|
+
};
|
|
99
|
+
byType.set(mimeType, store);
|
|
100
|
+
return store;
|
|
101
|
+
}
|
|
102
|
+
const noAssetUrl = {
|
|
103
|
+
url: null,
|
|
104
|
+
downloadUrl: null,
|
|
105
|
+
error: null
|
|
106
|
+
};
|
|
107
|
+
const unsubscribed = () => () => {};
|
|
108
|
+
const pendingAssetUrl = () => null;
|
|
109
|
+
function canCreateObjectUrls() {
|
|
110
|
+
return typeof URL !== "undefined" && typeof URL.createObjectURL === "function" && typeof Blob !== "undefined";
|
|
111
|
+
}
|
|
112
|
+
/** Create component-owned object URLs for bytes and revoke them on replacement. */
|
|
113
|
+
function useWorkspaceAssetUrl(asset, mimeType) {
|
|
114
|
+
const $ = c(12);
|
|
115
|
+
let t0;
|
|
116
|
+
if ($[0] !== asset || $[1] !== mimeType) {
|
|
117
|
+
t0 = asset?.kind === "data" && canCreateObjectUrls() ? assetUrlStore(asset, mimeType) : null;
|
|
118
|
+
$[0] = asset;
|
|
119
|
+
$[1] = mimeType;
|
|
120
|
+
$[2] = t0;
|
|
121
|
+
} else t0 = $[2];
|
|
122
|
+
const store = t0;
|
|
123
|
+
const objectUrl = React.useSyncExternalStore(store?.subscribe ?? unsubscribed, store?.getSnapshot ?? pendingAssetUrl, pendingAssetUrl);
|
|
124
|
+
if (!asset) return noAssetUrl;
|
|
125
|
+
if (asset.kind === "url") {
|
|
126
|
+
let t1;
|
|
127
|
+
if ($[3] !== asset.url) {
|
|
128
|
+
t1 = safeAssetUrl(asset.url);
|
|
129
|
+
$[3] = asset.url;
|
|
130
|
+
$[4] = t1;
|
|
131
|
+
} else t1 = $[4];
|
|
132
|
+
const url = t1;
|
|
133
|
+
let t2;
|
|
134
|
+
if ($[5] !== asset.downloadUrl) {
|
|
135
|
+
t2 = safeAssetUrl(asset.downloadUrl);
|
|
136
|
+
$[5] = asset.downloadUrl;
|
|
137
|
+
$[6] = t2;
|
|
138
|
+
} else t2 = $[6];
|
|
139
|
+
const explicitDownloadUrl = t2;
|
|
140
|
+
const t3 = url ? null : "The host returned an unsupported asset URL.";
|
|
141
|
+
let t4;
|
|
142
|
+
if ($[7] !== explicitDownloadUrl || $[8] !== t3 || $[9] !== url) {
|
|
143
|
+
t4 = {
|
|
144
|
+
url,
|
|
145
|
+
downloadUrl: explicitDownloadUrl,
|
|
146
|
+
error: t3
|
|
147
|
+
};
|
|
148
|
+
$[7] = explicitDownloadUrl;
|
|
149
|
+
$[8] = t3;
|
|
150
|
+
$[9] = url;
|
|
151
|
+
$[10] = t4;
|
|
152
|
+
} else t4 = $[10];
|
|
153
|
+
return t4;
|
|
154
|
+
}
|
|
155
|
+
if (!store) {
|
|
156
|
+
let t1;
|
|
157
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
158
|
+
t1 = {
|
|
159
|
+
url: null,
|
|
160
|
+
downloadUrl: null,
|
|
161
|
+
error: "This browser cannot prepare a local preview."
|
|
162
|
+
};
|
|
163
|
+
$[11] = t1;
|
|
164
|
+
} else t1 = $[11];
|
|
165
|
+
return t1;
|
|
166
|
+
}
|
|
167
|
+
return objectUrl ?? noAssetUrl;
|
|
168
|
+
}
|
|
169
|
+
function WorkspaceAssetActions(t0) {
|
|
170
|
+
const $ = c(10);
|
|
171
|
+
const { fileName, url, downloadUrl, allowOpen: t1 } = t0;
|
|
172
|
+
const allowOpen = t1 === void 0 ? true : t1;
|
|
173
|
+
let t2;
|
|
174
|
+
if ($[0] !== allowOpen || $[1] !== fileName || $[2] !== url) {
|
|
175
|
+
t2 = allowOpen ? /* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
176
|
+
label: `Open ${fileName} in a new tab`,
|
|
177
|
+
href: url,
|
|
178
|
+
target: "_blank",
|
|
179
|
+
rel: "noreferrer",
|
|
180
|
+
children: /* @__PURE__ */ jsx(MaximizeIcon, { "aria-hidden": "true" })
|
|
181
|
+
}) : null;
|
|
182
|
+
$[0] = allowOpen;
|
|
183
|
+
$[1] = fileName;
|
|
184
|
+
$[2] = url;
|
|
185
|
+
$[3] = t2;
|
|
186
|
+
} else t2 = $[3];
|
|
187
|
+
let t3;
|
|
188
|
+
if ($[4] !== downloadUrl || $[5] !== fileName) {
|
|
189
|
+
t3 = downloadUrl ? /* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
190
|
+
label: `Download ${fileName}`,
|
|
191
|
+
href: downloadUrl,
|
|
192
|
+
download: fileName,
|
|
193
|
+
rel: "noreferrer",
|
|
194
|
+
children: /* @__PURE__ */ jsx(DownloadIcon, { "aria-hidden": "true" })
|
|
195
|
+
}) : null;
|
|
196
|
+
$[4] = downloadUrl;
|
|
197
|
+
$[5] = fileName;
|
|
198
|
+
$[6] = t3;
|
|
199
|
+
} else t3 = $[6];
|
|
200
|
+
let t4;
|
|
201
|
+
if ($[7] !== t2 || $[8] !== t3) {
|
|
202
|
+
t4 = /* @__PURE__ */ jsxs(Fragment, { children: [t2, t3] });
|
|
203
|
+
$[7] = t2;
|
|
204
|
+
$[8] = t3;
|
|
205
|
+
$[9] = t4;
|
|
206
|
+
} else t4 = $[9];
|
|
207
|
+
return t4;
|
|
208
|
+
}
|
|
209
|
+
function formatBytes(size) {
|
|
210
|
+
if (size < 1024) return `${size} ${size === 1 ? "byte" : "bytes"}`;
|
|
211
|
+
const units = [
|
|
212
|
+
"KB",
|
|
213
|
+
"MB",
|
|
214
|
+
"GB",
|
|
215
|
+
"TB"
|
|
216
|
+
];
|
|
217
|
+
let value = size / 1024;
|
|
218
|
+
let unit = units[0];
|
|
219
|
+
for (let index = 1; index < units.length && value >= 1024; index += 1) {
|
|
220
|
+
value /= 1024;
|
|
221
|
+
unit = units[index];
|
|
222
|
+
}
|
|
223
|
+
return `${value >= 10 ? value.toFixed(0) : value.toFixed(1)} ${unit}`;
|
|
224
|
+
}
|
|
225
|
+
function WorkspaceMediaDetails(t0) {
|
|
226
|
+
const $ = c(22);
|
|
227
|
+
const { details: t1, mimeType, size, dimensions, dimensionsPending: t2, duration, durationPending: t3, transcriptUrl } = t0;
|
|
228
|
+
const details = t1 === void 0 ? "caption" : t1;
|
|
229
|
+
const dimensionsPending = t2 === void 0 ? false : t2;
|
|
230
|
+
const durationPending = t3 === void 0 ? false : t3;
|
|
231
|
+
if (details === "none") return null;
|
|
232
|
+
const dimensionValue = dimensionsPending ? "Loading…" : dimensions ? `${dimensions.width} × ${dimensions.height} px` : null;
|
|
233
|
+
let t4;
|
|
234
|
+
if ($[0] !== duration || $[1] !== durationPending) {
|
|
235
|
+
t4 = durationPending ? "Loading…" : duration !== void 0 && duration !== null ? formatClock(Math.round(duration)) : null;
|
|
236
|
+
$[0] = duration;
|
|
237
|
+
$[1] = durationPending;
|
|
238
|
+
$[2] = t4;
|
|
239
|
+
} else t4 = $[2];
|
|
240
|
+
const durationValue = t4;
|
|
241
|
+
let t5;
|
|
242
|
+
if ($[3] !== dimensionValue) {
|
|
243
|
+
t5 = dimensionValue ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Dimensions" }), /* @__PURE__ */ jsx("dd", { children: dimensionValue })] }) : null;
|
|
244
|
+
$[3] = dimensionValue;
|
|
245
|
+
$[4] = t5;
|
|
246
|
+
} else t5 = $[4];
|
|
247
|
+
let t6;
|
|
248
|
+
if ($[5] !== durationValue) {
|
|
249
|
+
t6 = durationValue ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Duration" }), /* @__PURE__ */ jsx("dd", { children: durationValue })] }) : null;
|
|
250
|
+
$[5] = durationValue;
|
|
251
|
+
$[6] = t6;
|
|
252
|
+
} else t6 = $[6];
|
|
253
|
+
let t7;
|
|
254
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
255
|
+
t7 = /* @__PURE__ */ jsx("dt", { children: "Type" });
|
|
256
|
+
$[7] = t7;
|
|
257
|
+
} else t7 = $[7];
|
|
258
|
+
let t8;
|
|
259
|
+
if ($[8] !== mimeType) {
|
|
260
|
+
t8 = /* @__PURE__ */ jsxs("div", { children: [t7, /* @__PURE__ */ jsx("dd", { children: mimeType })] });
|
|
261
|
+
$[8] = mimeType;
|
|
262
|
+
$[9] = t8;
|
|
263
|
+
} else t8 = $[9];
|
|
264
|
+
let t9;
|
|
265
|
+
if ($[10] !== size) {
|
|
266
|
+
t9 = size !== void 0 ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Size" }), /* @__PURE__ */ jsx("dd", { children: formatBytes(size) })] }) : null;
|
|
267
|
+
$[10] = size;
|
|
268
|
+
$[11] = t9;
|
|
269
|
+
} else t9 = $[11];
|
|
270
|
+
let t10;
|
|
271
|
+
if ($[12] !== t5 || $[13] !== t6 || $[14] !== t8 || $[15] !== t9) {
|
|
272
|
+
t10 = /* @__PURE__ */ jsxs("dl", {
|
|
273
|
+
className: "workspace-explorer__media-details",
|
|
274
|
+
children: [
|
|
275
|
+
t5,
|
|
276
|
+
t6,
|
|
277
|
+
t8,
|
|
278
|
+
t9
|
|
279
|
+
]
|
|
280
|
+
});
|
|
281
|
+
$[12] = t5;
|
|
282
|
+
$[13] = t6;
|
|
283
|
+
$[14] = t8;
|
|
284
|
+
$[15] = t9;
|
|
285
|
+
$[16] = t10;
|
|
286
|
+
} else t10 = $[16];
|
|
287
|
+
let t11;
|
|
288
|
+
if ($[17] !== transcriptUrl) {
|
|
289
|
+
t11 = transcriptUrl ? /* @__PURE__ */ jsx("a", {
|
|
290
|
+
className: "workspace-explorer__media-transcript",
|
|
291
|
+
href: transcriptUrl,
|
|
292
|
+
target: "_blank",
|
|
293
|
+
rel: "noreferrer",
|
|
294
|
+
children: "Open transcript"
|
|
295
|
+
}) : null;
|
|
296
|
+
$[17] = transcriptUrl;
|
|
297
|
+
$[18] = t11;
|
|
298
|
+
} else t11 = $[18];
|
|
299
|
+
let t12;
|
|
300
|
+
if ($[19] !== t10 || $[20] !== t11) {
|
|
301
|
+
t12 = /* @__PURE__ */ jsxs("figcaption", {
|
|
302
|
+
className: "workspace-explorer__media-caption",
|
|
303
|
+
children: [t10, t11]
|
|
304
|
+
});
|
|
305
|
+
$[19] = t10;
|
|
306
|
+
$[20] = t11;
|
|
307
|
+
$[21] = t12;
|
|
308
|
+
} else t12 = $[21];
|
|
309
|
+
return t12;
|
|
310
|
+
}
|
|
311
|
+
function safeTracks(tracks) {
|
|
312
|
+
return tracks?.filter((track) => safeAssetUrl(track.src)) ?? [];
|
|
313
|
+
}
|
|
314
|
+
function WorkspaceMediaError(t0) {
|
|
315
|
+
const $ = c(2);
|
|
316
|
+
const { active, children } = t0;
|
|
317
|
+
const t1 = active ? children : null;
|
|
318
|
+
let t2;
|
|
319
|
+
if ($[0] !== t1) {
|
|
320
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
321
|
+
className: "workspace-explorer__media-error",
|
|
322
|
+
role: "status",
|
|
323
|
+
"aria-live": "polite",
|
|
324
|
+
"aria-atomic": "true",
|
|
325
|
+
children: t1
|
|
326
|
+
});
|
|
327
|
+
$[0] = t1;
|
|
328
|
+
$[1] = t2;
|
|
329
|
+
} else t2 = $[1];
|
|
330
|
+
return t2;
|
|
331
|
+
}
|
|
332
|
+
function WorkspaceImagePreview(t0) {
|
|
333
|
+
const $ = c(79);
|
|
334
|
+
const { asset, fileName, media, url, details } = t0;
|
|
335
|
+
const [open, setOpen] = React.useState(false);
|
|
336
|
+
const [dimensions, setDimensions] = React.useState(null);
|
|
337
|
+
const [hasLoaded, setHasLoaded] = React.useState(false);
|
|
338
|
+
const [loadFailed, setLoadFailed] = React.useState(false);
|
|
339
|
+
const figureRef = React.useRef(null);
|
|
340
|
+
const imageRef = React.useRef(null);
|
|
341
|
+
const stageRef = React.useRef(null);
|
|
342
|
+
const [zoom, setZoom] = React.useState(null);
|
|
343
|
+
const [lightboxTheme, setLightboxTheme] = React.useState();
|
|
344
|
+
const frame = React.use(WorkspacePreviewFrame);
|
|
345
|
+
let t1;
|
|
346
|
+
if ($[0] !== dimensions || $[1] !== loadFailed || $[2] !== zoom) {
|
|
347
|
+
t1 = function changeZoom(factor) {
|
|
348
|
+
if (!dimensions || loadFailed) return;
|
|
349
|
+
const current = zoom ?? (imageRef.current?.clientWidth ?? dimensions.width) / dimensions.width;
|
|
350
|
+
const next = Math.min(4, Math.max(.05, Math.round(current * factor * 100) / 100));
|
|
351
|
+
if (next === 4 || next === .05) imageRef.current?.closest("button")?.focus({ preventScroll: true });
|
|
352
|
+
setZoom(next);
|
|
353
|
+
};
|
|
354
|
+
$[0] = dimensions;
|
|
355
|
+
$[1] = loadFailed;
|
|
356
|
+
$[2] = zoom;
|
|
357
|
+
$[3] = t1;
|
|
358
|
+
} else t1 = $[3];
|
|
359
|
+
const changeZoom = t1;
|
|
360
|
+
let t2;
|
|
361
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
362
|
+
t2 = function fitImage() {
|
|
363
|
+
setZoom(null);
|
|
364
|
+
stageRef.current?.scrollTo({
|
|
365
|
+
top: 0,
|
|
366
|
+
left: 0,
|
|
367
|
+
behavior: "auto"
|
|
368
|
+
});
|
|
369
|
+
};
|
|
370
|
+
$[4] = t2;
|
|
371
|
+
} else t2 = $[4];
|
|
372
|
+
const fitImage = t2;
|
|
373
|
+
let t3;
|
|
374
|
+
if ($[5] !== changeZoom || $[6] !== dimensions || $[7] !== loadFailed) {
|
|
375
|
+
t3 = (event) => {
|
|
376
|
+
if (event.defaultPrevented || event.altKey || !dimensions || loadFailed || event.target instanceof Element && event.target.closest("input, textarea, select")) return;
|
|
377
|
+
if (event.key === "+" || event.key === "=") changeZoom(1.25);
|
|
378
|
+
else if (event.key === "-") changeZoom(.8);
|
|
379
|
+
else if (event.key === "0") fitImage();
|
|
380
|
+
else if (event.key === "1") setZoom(1);
|
|
381
|
+
else return;
|
|
382
|
+
event.preventDefault();
|
|
383
|
+
event.stopPropagation();
|
|
384
|
+
};
|
|
385
|
+
$[5] = changeZoom;
|
|
386
|
+
$[6] = dimensions;
|
|
387
|
+
$[7] = loadFailed;
|
|
388
|
+
$[8] = t3;
|
|
389
|
+
} else t3 = $[8];
|
|
390
|
+
const zoomKey = React.useEffectEvent(t3);
|
|
391
|
+
let t4;
|
|
392
|
+
if ($[9] !== changeZoom || $[10] !== dimensions || $[11] !== loadFailed) {
|
|
393
|
+
t4 = (event_0) => {
|
|
394
|
+
if (!event_0.ctrlKey || !dimensions || loadFailed) return;
|
|
395
|
+
event_0.preventDefault();
|
|
396
|
+
changeZoom(Math.exp(-event_0.deltaY / 100));
|
|
397
|
+
};
|
|
398
|
+
$[9] = changeZoom;
|
|
399
|
+
$[10] = dimensions;
|
|
400
|
+
$[11] = loadFailed;
|
|
401
|
+
$[12] = t4;
|
|
402
|
+
} else t4 = $[12];
|
|
403
|
+
const pinch = React.useEffectEvent(t4);
|
|
404
|
+
let t5;
|
|
405
|
+
if ($[13] !== frame?.current || $[14] !== pinch || $[15] !== zoomKey) {
|
|
406
|
+
t5 = () => {
|
|
407
|
+
const keys = frame?.current ?? figureRef.current?.closest("[data-workspace-file-content]");
|
|
408
|
+
const stage = stageRef.current;
|
|
409
|
+
keys?.addEventListener("keydown", zoomKey);
|
|
410
|
+
stage?.addEventListener("wheel", pinch, { passive: false });
|
|
411
|
+
return () => {
|
|
412
|
+
keys?.removeEventListener("keydown", zoomKey);
|
|
413
|
+
stage?.removeEventListener("wheel", pinch);
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
$[13] = frame?.current;
|
|
417
|
+
$[14] = pinch;
|
|
418
|
+
$[15] = zoomKey;
|
|
419
|
+
$[16] = t5;
|
|
420
|
+
} else t5 = $[16];
|
|
421
|
+
let t6;
|
|
422
|
+
if ($[17] !== frame) {
|
|
423
|
+
t6 = [frame];
|
|
424
|
+
$[17] = frame;
|
|
425
|
+
$[18] = t6;
|
|
426
|
+
} else t6 = $[18];
|
|
427
|
+
React.useEffect(t5, t6);
|
|
428
|
+
let t7;
|
|
429
|
+
if ($[19] !== asset.alt || $[20] !== fileName) {
|
|
430
|
+
t7 = asset.alt?.trim() || fileName;
|
|
431
|
+
$[19] = asset.alt;
|
|
432
|
+
$[20] = fileName;
|
|
433
|
+
$[21] = t7;
|
|
434
|
+
} else t7 = $[21];
|
|
435
|
+
const alt = t7;
|
|
436
|
+
const t8 = dimensions?.width;
|
|
437
|
+
const t9 = dimensions?.height;
|
|
438
|
+
let t10;
|
|
439
|
+
if ($[22] !== alt || $[23] !== t8 || $[24] !== t9 || $[25] !== url) {
|
|
440
|
+
t10 = {
|
|
441
|
+
src: url,
|
|
442
|
+
alt,
|
|
443
|
+
width: t8,
|
|
444
|
+
height: t9
|
|
445
|
+
};
|
|
446
|
+
$[22] = alt;
|
|
447
|
+
$[23] = t8;
|
|
448
|
+
$[24] = t9;
|
|
449
|
+
$[25] = url;
|
|
450
|
+
$[26] = t10;
|
|
451
|
+
} else t10 = $[26];
|
|
452
|
+
const slide = t10;
|
|
453
|
+
let t11;
|
|
454
|
+
if ($[27] !== changeZoom || $[28] !== dimensions || $[29] !== frame || $[30] !== loadFailed || $[31] !== zoom) {
|
|
455
|
+
t11 = frame ? /* @__PURE__ */ jsx("span", {
|
|
456
|
+
className: "sigvelo-visually-hidden",
|
|
457
|
+
role: "status",
|
|
458
|
+
"aria-atomic": "true",
|
|
459
|
+
children: zoom === null ? null : `${Math.round(zoom * 100)}%`
|
|
460
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
461
|
+
className: "workspace-explorer__image-controls",
|
|
462
|
+
role: "group",
|
|
463
|
+
"aria-label": "Image sizing",
|
|
464
|
+
children: [
|
|
465
|
+
/* @__PURE__ */ jsx(IconButton, {
|
|
466
|
+
label: "Zoom out",
|
|
467
|
+
variant: "ghost",
|
|
468
|
+
color: "neutral",
|
|
469
|
+
disabled: !dimensions || loadFailed || zoom === .05,
|
|
470
|
+
onClick: () => changeZoom(.8),
|
|
471
|
+
"aria-keyshortcuts": "-",
|
|
472
|
+
children: /* @__PURE__ */ jsx(MinusIcon, {})
|
|
473
|
+
}),
|
|
474
|
+
/* @__PURE__ */ jsx(IconButton, {
|
|
475
|
+
label: "Zoom in",
|
|
476
|
+
variant: "ghost",
|
|
477
|
+
color: "neutral",
|
|
478
|
+
disabled: !dimensions || loadFailed || zoom === 4,
|
|
479
|
+
onClick: () => changeZoom(1.25),
|
|
480
|
+
"aria-keyshortcuts": "+",
|
|
481
|
+
children: /* @__PURE__ */ jsx(PlusIcon, {})
|
|
482
|
+
}),
|
|
483
|
+
/* @__PURE__ */ jsx(Button, {
|
|
484
|
+
size: "sm",
|
|
485
|
+
variant: "ghost",
|
|
486
|
+
color: "neutral",
|
|
487
|
+
"aria-pressed": zoom === null,
|
|
488
|
+
disabled: !dimensions || loadFailed,
|
|
489
|
+
onClick: fitImage,
|
|
490
|
+
"aria-keyshortcuts": "0",
|
|
491
|
+
children: "Fit"
|
|
492
|
+
}),
|
|
493
|
+
/* @__PURE__ */ jsx(Button, {
|
|
494
|
+
size: "sm",
|
|
495
|
+
variant: "ghost",
|
|
496
|
+
color: "neutral",
|
|
497
|
+
"aria-pressed": zoom === 1,
|
|
498
|
+
disabled: !dimensions || loadFailed,
|
|
499
|
+
onClick: () => setZoom(1),
|
|
500
|
+
"aria-keyshortcuts": "1",
|
|
501
|
+
children: "100%"
|
|
502
|
+
}),
|
|
503
|
+
/* @__PURE__ */ jsx("span", {
|
|
504
|
+
className: "workspace-explorer__image-scale",
|
|
505
|
+
role: "status",
|
|
506
|
+
"aria-atomic": "true",
|
|
507
|
+
children: zoom === null ? "Fit to view" : `${Math.round(zoom * 100)}%`
|
|
508
|
+
})
|
|
509
|
+
]
|
|
510
|
+
});
|
|
511
|
+
$[27] = changeZoom;
|
|
512
|
+
$[28] = dimensions;
|
|
513
|
+
$[29] = frame;
|
|
514
|
+
$[30] = loadFailed;
|
|
515
|
+
$[31] = zoom;
|
|
516
|
+
$[32] = t11;
|
|
517
|
+
} else t11 = $[32];
|
|
518
|
+
const t12 = zoom === null ? "fit" : "zoom";
|
|
519
|
+
const t13 = loadFailed ? `${fileName} image preview unavailable` : `Open ${fileName} image viewer`;
|
|
520
|
+
const t14 = loadFailed || void 0;
|
|
521
|
+
let t15;
|
|
522
|
+
if ($[33] !== loadFailed) {
|
|
523
|
+
t15 = () => {
|
|
524
|
+
if (!loadFailed) {
|
|
525
|
+
if (figureRef.current) setLightboxTheme(resolveLightboxTheme(figureRef.current));
|
|
526
|
+
setOpen(true);
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
$[33] = loadFailed;
|
|
530
|
+
$[34] = t15;
|
|
531
|
+
} else t15 = $[34];
|
|
532
|
+
let t16;
|
|
533
|
+
if ($[35] !== alt || $[36] !== dimensions || $[37] !== loadFailed || $[38] !== url || $[39] !== zoom) {
|
|
534
|
+
t16 = loadFailed ? /* @__PURE__ */ jsx("span", {
|
|
535
|
+
className: "workspace-explorer__media-error",
|
|
536
|
+
"aria-hidden": "true",
|
|
537
|
+
children: "This image could not be decoded by the browser."
|
|
538
|
+
}) : /* @__PURE__ */ jsx("img", {
|
|
539
|
+
ref: imageRef,
|
|
540
|
+
className: "workspace-explorer__image",
|
|
541
|
+
src: url,
|
|
542
|
+
alt,
|
|
543
|
+
width: dimensions?.width,
|
|
544
|
+
height: dimensions?.height,
|
|
545
|
+
style: zoom !== null && dimensions ? { inlineSize: dimensions.width * zoom } : void 0,
|
|
546
|
+
onLoad: (event_1) => {
|
|
547
|
+
const { naturalWidth: width, naturalHeight: height } = event_1.currentTarget;
|
|
548
|
+
setHasLoaded(true);
|
|
549
|
+
setDimensions(width > 0 && height > 0 ? {
|
|
550
|
+
width,
|
|
551
|
+
height
|
|
552
|
+
} : null);
|
|
553
|
+
},
|
|
554
|
+
onError: () => setLoadFailed(true)
|
|
555
|
+
});
|
|
556
|
+
$[35] = alt;
|
|
557
|
+
$[36] = dimensions;
|
|
558
|
+
$[37] = loadFailed;
|
|
559
|
+
$[38] = url;
|
|
560
|
+
$[39] = zoom;
|
|
561
|
+
$[40] = t16;
|
|
562
|
+
} else t16 = $[40];
|
|
563
|
+
let t17;
|
|
564
|
+
if ($[41] !== t13 || $[42] !== t14 || $[43] !== t15 || $[44] !== t16) {
|
|
565
|
+
t17 = /* @__PURE__ */ jsx("button", {
|
|
566
|
+
className: "workspace-explorer__image-trigger",
|
|
567
|
+
type: "button",
|
|
568
|
+
"aria-label": t13,
|
|
569
|
+
"aria-disabled": t14,
|
|
570
|
+
onClick: t15,
|
|
571
|
+
children: t16
|
|
572
|
+
});
|
|
573
|
+
$[41] = t13;
|
|
574
|
+
$[42] = t14;
|
|
575
|
+
$[43] = t15;
|
|
576
|
+
$[44] = t16;
|
|
577
|
+
$[45] = t17;
|
|
578
|
+
} else t17 = $[45];
|
|
579
|
+
const t18 = loadFailed ? `The ${fileName} image preview could not be decoded.` : null;
|
|
580
|
+
let t19;
|
|
581
|
+
if ($[46] !== t18) {
|
|
582
|
+
t19 = /* @__PURE__ */ jsx("div", {
|
|
583
|
+
className: "sigvelo-visually-hidden",
|
|
584
|
+
role: "status",
|
|
585
|
+
"aria-live": "polite",
|
|
586
|
+
"aria-atomic": "true",
|
|
587
|
+
children: t18
|
|
588
|
+
});
|
|
589
|
+
$[46] = t18;
|
|
590
|
+
$[47] = t19;
|
|
591
|
+
} else t19 = $[47];
|
|
592
|
+
let t20;
|
|
593
|
+
if ($[48] !== t12 || $[49] !== t17 || $[50] !== t19) {
|
|
594
|
+
t20 = /* @__PURE__ */ jsxs("div", {
|
|
595
|
+
ref: stageRef,
|
|
596
|
+
className: "workspace-explorer__media-stage",
|
|
597
|
+
"data-image-sizing": t12,
|
|
598
|
+
children: [t17, t19]
|
|
599
|
+
});
|
|
600
|
+
$[48] = t12;
|
|
601
|
+
$[49] = t17;
|
|
602
|
+
$[50] = t19;
|
|
603
|
+
$[51] = t20;
|
|
604
|
+
} else t20 = $[51];
|
|
605
|
+
let t21;
|
|
606
|
+
if ($[52] === Symbol.for("react.memo_cache_sentinel")) {
|
|
607
|
+
t21 = () => setOpen(false);
|
|
608
|
+
$[52] = t21;
|
|
609
|
+
} else t21 = $[52];
|
|
610
|
+
let t22;
|
|
611
|
+
if ($[53] !== slide) {
|
|
612
|
+
t22 = [slide];
|
|
613
|
+
$[53] = slide;
|
|
614
|
+
$[54] = t22;
|
|
615
|
+
} else t22 = $[54];
|
|
616
|
+
const t23 = `${fileName} image viewer`;
|
|
617
|
+
let t24;
|
|
618
|
+
if ($[55] !== t23) {
|
|
619
|
+
t24 = { Lightbox: t23 };
|
|
620
|
+
$[55] = t23;
|
|
621
|
+
$[56] = t24;
|
|
622
|
+
} else t24 = $[56];
|
|
623
|
+
let t25;
|
|
624
|
+
let t26;
|
|
625
|
+
let t27;
|
|
626
|
+
if ($[57] === Symbol.for("react.memo_cache_sentinel")) {
|
|
627
|
+
t25 = {
|
|
628
|
+
finite: true,
|
|
629
|
+
imageFit: "contain"
|
|
630
|
+
};
|
|
631
|
+
t26 = {
|
|
632
|
+
closeOnBackdropClick: true,
|
|
633
|
+
disableSwipeNavigation: true
|
|
634
|
+
};
|
|
635
|
+
t27 = {
|
|
636
|
+
buttonPrev: _temp,
|
|
637
|
+
buttonNext: _temp2
|
|
638
|
+
};
|
|
639
|
+
$[57] = t25;
|
|
640
|
+
$[58] = t26;
|
|
641
|
+
$[59] = t27;
|
|
642
|
+
} else {
|
|
643
|
+
t25 = $[57];
|
|
644
|
+
t26 = $[58];
|
|
645
|
+
t27 = $[59];
|
|
646
|
+
}
|
|
647
|
+
let t28;
|
|
648
|
+
if ($[60] !== lightboxTheme) {
|
|
649
|
+
t28 = { root: lightboxTheme };
|
|
650
|
+
$[60] = lightboxTheme;
|
|
651
|
+
$[61] = t28;
|
|
652
|
+
} else t28 = $[61];
|
|
653
|
+
let t29;
|
|
654
|
+
if ($[62] === Symbol.for("react.memo_cache_sentinel")) {
|
|
655
|
+
t29 = { scrollToZoom: true };
|
|
656
|
+
$[62] = t29;
|
|
657
|
+
} else t29 = $[62];
|
|
658
|
+
let t30;
|
|
659
|
+
if ($[63] !== open || $[64] !== t22 || $[65] !== t24 || $[66] !== t28) {
|
|
660
|
+
t30 = /* @__PURE__ */ jsx(Lightbox, {
|
|
661
|
+
className: "workspace-media-lightbox",
|
|
662
|
+
open,
|
|
663
|
+
close: t21,
|
|
664
|
+
slides: t22,
|
|
665
|
+
plugins: lightboxPlugins,
|
|
666
|
+
labels: t24,
|
|
667
|
+
carousel: t25,
|
|
668
|
+
controller: t26,
|
|
669
|
+
render: t27,
|
|
670
|
+
styles: t28,
|
|
671
|
+
zoom: t29
|
|
672
|
+
});
|
|
673
|
+
$[63] = open;
|
|
674
|
+
$[64] = t22;
|
|
675
|
+
$[65] = t24;
|
|
676
|
+
$[66] = t28;
|
|
677
|
+
$[67] = t30;
|
|
678
|
+
} else t30 = $[67];
|
|
679
|
+
const t31 = !loadFailed && !hasLoaded;
|
|
680
|
+
let t32;
|
|
681
|
+
if ($[68] !== asset.size || $[69] !== details || $[70] !== dimensions || $[71] !== media.mimeType || $[72] !== t31) {
|
|
682
|
+
t32 = /* @__PURE__ */ jsx(WorkspaceMediaDetails, {
|
|
683
|
+
details,
|
|
684
|
+
mimeType: media.mimeType,
|
|
685
|
+
size: asset.size,
|
|
686
|
+
dimensions,
|
|
687
|
+
dimensionsPending: t31
|
|
688
|
+
});
|
|
689
|
+
$[68] = asset.size;
|
|
690
|
+
$[69] = details;
|
|
691
|
+
$[70] = dimensions;
|
|
692
|
+
$[71] = media.mimeType;
|
|
693
|
+
$[72] = t31;
|
|
694
|
+
$[73] = t32;
|
|
695
|
+
} else t32 = $[73];
|
|
696
|
+
let t33;
|
|
697
|
+
if ($[74] !== t11 || $[75] !== t20 || $[76] !== t30 || $[77] !== t32) {
|
|
698
|
+
t33 = /* @__PURE__ */ jsxs("figure", {
|
|
699
|
+
ref: figureRef,
|
|
700
|
+
className: "workspace-explorer__media-figure workspace-explorer__media-figure--image",
|
|
701
|
+
children: [
|
|
702
|
+
t11,
|
|
703
|
+
t20,
|
|
704
|
+
t30,
|
|
705
|
+
t32
|
|
706
|
+
]
|
|
707
|
+
});
|
|
708
|
+
$[74] = t11;
|
|
709
|
+
$[75] = t20;
|
|
710
|
+
$[76] = t30;
|
|
711
|
+
$[77] = t32;
|
|
712
|
+
$[78] = t33;
|
|
713
|
+
} else t33 = $[78];
|
|
714
|
+
return t33;
|
|
715
|
+
}
|
|
716
|
+
function _temp2() {
|
|
717
|
+
return null;
|
|
718
|
+
}
|
|
719
|
+
function _temp() {
|
|
720
|
+
return null;
|
|
721
|
+
}
|
|
722
|
+
function WorkspacePdfPreview(t0) {
|
|
723
|
+
const $ = c(20);
|
|
724
|
+
const { asset, fileName, media, url, downloadUrl, details } = t0;
|
|
725
|
+
const t1 = `PDF preview: ${fileName}`;
|
|
726
|
+
let t2;
|
|
727
|
+
if ($[0] !== fileName || $[1] !== url) {
|
|
728
|
+
t2 = /* @__PURE__ */ jsxs("a", {
|
|
729
|
+
href: url,
|
|
730
|
+
target: "_blank",
|
|
731
|
+
rel: "noreferrer",
|
|
732
|
+
children: ["Open ", fileName]
|
|
733
|
+
});
|
|
734
|
+
$[0] = fileName;
|
|
735
|
+
$[1] = url;
|
|
736
|
+
$[2] = t2;
|
|
737
|
+
} else t2 = $[2];
|
|
738
|
+
let t3;
|
|
739
|
+
if ($[3] !== downloadUrl || $[4] !== fileName) {
|
|
740
|
+
t3 = downloadUrl ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
741
|
+
" ",
|
|
742
|
+
"or",
|
|
743
|
+
" ",
|
|
744
|
+
/* @__PURE__ */ jsx("a", {
|
|
745
|
+
href: downloadUrl,
|
|
746
|
+
download: fileName,
|
|
747
|
+
children: "download it"
|
|
748
|
+
})
|
|
749
|
+
] }) : null;
|
|
750
|
+
$[3] = downloadUrl;
|
|
751
|
+
$[4] = fileName;
|
|
752
|
+
$[5] = t3;
|
|
753
|
+
} else t3 = $[5];
|
|
754
|
+
let t4;
|
|
755
|
+
if ($[6] !== t2 || $[7] !== t3) {
|
|
756
|
+
t4 = /* @__PURE__ */ jsxs("p", {
|
|
757
|
+
className: "workspace-explorer__media-fallback",
|
|
758
|
+
children: [
|
|
759
|
+
"PDF preview is unavailable.",
|
|
760
|
+
" ",
|
|
761
|
+
t2,
|
|
762
|
+
t3,
|
|
763
|
+
"."
|
|
764
|
+
]
|
|
765
|
+
});
|
|
766
|
+
$[6] = t2;
|
|
767
|
+
$[7] = t3;
|
|
768
|
+
$[8] = t4;
|
|
769
|
+
} else t4 = $[8];
|
|
770
|
+
let t5;
|
|
771
|
+
if ($[9] !== t1 || $[10] !== t4 || $[11] !== url) {
|
|
772
|
+
t5 = /* @__PURE__ */ jsx("div", {
|
|
773
|
+
className: "workspace-explorer__media-stage",
|
|
774
|
+
children: /* @__PURE__ */ jsx("object", {
|
|
775
|
+
className: "workspace-explorer__pdf",
|
|
776
|
+
data: url,
|
|
777
|
+
type: "application/pdf",
|
|
778
|
+
"aria-label": t1,
|
|
779
|
+
children: t4
|
|
780
|
+
})
|
|
781
|
+
});
|
|
782
|
+
$[9] = t1;
|
|
783
|
+
$[10] = t4;
|
|
784
|
+
$[11] = url;
|
|
785
|
+
$[12] = t5;
|
|
786
|
+
} else t5 = $[12];
|
|
787
|
+
let t6;
|
|
788
|
+
if ($[13] !== asset.size || $[14] !== details || $[15] !== media.mimeType) {
|
|
789
|
+
t6 = /* @__PURE__ */ jsx(WorkspaceMediaDetails, {
|
|
790
|
+
details,
|
|
791
|
+
mimeType: media.mimeType,
|
|
792
|
+
size: asset.size
|
|
793
|
+
});
|
|
794
|
+
$[13] = asset.size;
|
|
795
|
+
$[14] = details;
|
|
796
|
+
$[15] = media.mimeType;
|
|
797
|
+
$[16] = t6;
|
|
798
|
+
} else t6 = $[16];
|
|
799
|
+
let t7;
|
|
800
|
+
if ($[17] !== t5 || $[18] !== t6) {
|
|
801
|
+
t7 = /* @__PURE__ */ jsxs("figure", {
|
|
802
|
+
className: "workspace-explorer__media-figure workspace-explorer__media-figure--document",
|
|
803
|
+
children: [t5, t6]
|
|
804
|
+
});
|
|
805
|
+
$[17] = t5;
|
|
806
|
+
$[18] = t6;
|
|
807
|
+
$[19] = t7;
|
|
808
|
+
} else t7 = $[19];
|
|
809
|
+
return t7;
|
|
810
|
+
}
|
|
811
|
+
function WorkspaceAudioPreview(t0) {
|
|
812
|
+
const $ = c(58);
|
|
813
|
+
const { asset, fileName, media, url, details } = t0;
|
|
814
|
+
const [duration, setDuration] = React.useState(null);
|
|
815
|
+
const [metadataLoaded, setMetadataLoaded] = React.useState(false);
|
|
816
|
+
const [loadFailed, setLoadFailed] = React.useState(false);
|
|
817
|
+
let t1;
|
|
818
|
+
let t10;
|
|
819
|
+
let t11;
|
|
820
|
+
let t12;
|
|
821
|
+
let t2;
|
|
822
|
+
let t3;
|
|
823
|
+
let t4;
|
|
824
|
+
let t5;
|
|
825
|
+
let t6;
|
|
826
|
+
let t7;
|
|
827
|
+
let t8;
|
|
828
|
+
let t9;
|
|
829
|
+
let transcriptUrl;
|
|
830
|
+
if ($[0] !== asset.crossOrigin || $[1] !== asset.tracks || $[2] !== asset.transcriptUrl || $[3] !== fileName || $[4] !== media.mimeType || $[5] !== url) {
|
|
831
|
+
const tracks = safeTracks(asset.tracks);
|
|
832
|
+
let t13;
|
|
833
|
+
if ($[19] !== asset.transcriptUrl) {
|
|
834
|
+
t13 = safeAssetUrl(asset.transcriptUrl);
|
|
835
|
+
$[19] = asset.transcriptUrl;
|
|
836
|
+
$[20] = t13;
|
|
837
|
+
} else t13 = $[20];
|
|
838
|
+
transcriptUrl = t13;
|
|
839
|
+
t12 = "workspace-explorer__media-figure workspace-explorer__media-figure--audio";
|
|
840
|
+
t11 = "workspace-explorer__media-stage";
|
|
841
|
+
t1 = url;
|
|
842
|
+
t2 = "workspace-explorer__audio";
|
|
843
|
+
t3 = true;
|
|
844
|
+
t4 = "metadata";
|
|
845
|
+
t5 = asset.crossOrigin;
|
|
846
|
+
t6 = `Audio preview: ${fileName}`;
|
|
847
|
+
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
848
|
+
t7 = (event) => {
|
|
849
|
+
const nextDuration = event.currentTarget.duration;
|
|
850
|
+
setMetadataLoaded(true);
|
|
851
|
+
setDuration(Number.isFinite(nextDuration) ? nextDuration : null);
|
|
852
|
+
};
|
|
853
|
+
t8 = () => setLoadFailed(true);
|
|
854
|
+
$[21] = t7;
|
|
855
|
+
$[22] = t8;
|
|
856
|
+
} else {
|
|
857
|
+
t7 = $[21];
|
|
858
|
+
t8 = $[22];
|
|
859
|
+
}
|
|
860
|
+
if ($[23] !== media.mimeType || $[24] !== url) {
|
|
861
|
+
t9 = /* @__PURE__ */ jsx("source", {
|
|
862
|
+
src: url,
|
|
863
|
+
type: media.mimeType
|
|
864
|
+
});
|
|
865
|
+
$[23] = media.mimeType;
|
|
866
|
+
$[24] = url;
|
|
867
|
+
$[25] = t9;
|
|
868
|
+
} else t9 = $[25];
|
|
869
|
+
t10 = tracks.map(_temp3);
|
|
870
|
+
$[0] = asset.crossOrigin;
|
|
871
|
+
$[1] = asset.tracks;
|
|
872
|
+
$[2] = asset.transcriptUrl;
|
|
873
|
+
$[3] = fileName;
|
|
874
|
+
$[4] = media.mimeType;
|
|
875
|
+
$[5] = url;
|
|
876
|
+
$[6] = t1;
|
|
877
|
+
$[7] = t10;
|
|
878
|
+
$[8] = t11;
|
|
879
|
+
$[9] = t12;
|
|
880
|
+
$[10] = t2;
|
|
881
|
+
$[11] = t3;
|
|
882
|
+
$[12] = t4;
|
|
883
|
+
$[13] = t5;
|
|
884
|
+
$[14] = t6;
|
|
885
|
+
$[15] = t7;
|
|
886
|
+
$[16] = t8;
|
|
887
|
+
$[17] = t9;
|
|
888
|
+
$[18] = transcriptUrl;
|
|
889
|
+
} else {
|
|
890
|
+
t1 = $[6];
|
|
891
|
+
t10 = $[7];
|
|
892
|
+
t11 = $[8];
|
|
893
|
+
t12 = $[9];
|
|
894
|
+
t2 = $[10];
|
|
895
|
+
t3 = $[11];
|
|
896
|
+
t4 = $[12];
|
|
897
|
+
t5 = $[13];
|
|
898
|
+
t6 = $[14];
|
|
899
|
+
t7 = $[15];
|
|
900
|
+
t8 = $[16];
|
|
901
|
+
t9 = $[17];
|
|
902
|
+
transcriptUrl = $[18];
|
|
903
|
+
}
|
|
904
|
+
let t13;
|
|
905
|
+
if ($[26] !== fileName || $[27] !== url) {
|
|
906
|
+
t13 = /* @__PURE__ */ jsxs("a", {
|
|
907
|
+
href: url,
|
|
908
|
+
children: ["Open ", fileName]
|
|
909
|
+
});
|
|
910
|
+
$[26] = fileName;
|
|
911
|
+
$[27] = url;
|
|
912
|
+
$[28] = t13;
|
|
913
|
+
} else t13 = $[28];
|
|
914
|
+
let t14;
|
|
915
|
+
if ($[29] !== t1 || $[30] !== t10 || $[31] !== t13 || $[32] !== t2 || $[33] !== t3 || $[34] !== t4 || $[35] !== t5 || $[36] !== t6 || $[37] !== t7 || $[38] !== t8 || $[39] !== t9) {
|
|
916
|
+
t14 = /* @__PURE__ */ jsxs("audio", {
|
|
917
|
+
className: t2,
|
|
918
|
+
controls: t3,
|
|
919
|
+
preload: t4,
|
|
920
|
+
crossOrigin: t5,
|
|
921
|
+
"aria-label": t6,
|
|
922
|
+
onLoadedMetadata: t7,
|
|
923
|
+
onError: t8,
|
|
924
|
+
children: [
|
|
925
|
+
t9,
|
|
926
|
+
t10,
|
|
927
|
+
t13
|
|
928
|
+
]
|
|
929
|
+
}, t1);
|
|
930
|
+
$[29] = t1;
|
|
931
|
+
$[30] = t10;
|
|
932
|
+
$[31] = t13;
|
|
933
|
+
$[32] = t2;
|
|
934
|
+
$[33] = t3;
|
|
935
|
+
$[34] = t4;
|
|
936
|
+
$[35] = t5;
|
|
937
|
+
$[36] = t6;
|
|
938
|
+
$[37] = t7;
|
|
939
|
+
$[38] = t8;
|
|
940
|
+
$[39] = t9;
|
|
941
|
+
$[40] = t14;
|
|
942
|
+
} else t14 = $[40];
|
|
943
|
+
let t15;
|
|
944
|
+
if ($[41] !== loadFailed) {
|
|
945
|
+
t15 = /* @__PURE__ */ jsx(WorkspaceMediaError, {
|
|
946
|
+
active: loadFailed,
|
|
947
|
+
children: "This audio format could not be played by the browser."
|
|
948
|
+
});
|
|
949
|
+
$[41] = loadFailed;
|
|
950
|
+
$[42] = t15;
|
|
951
|
+
} else t15 = $[42];
|
|
952
|
+
let t16;
|
|
953
|
+
if ($[43] !== t11 || $[44] !== t14 || $[45] !== t15) {
|
|
954
|
+
t16 = /* @__PURE__ */ jsxs("div", {
|
|
955
|
+
className: t11,
|
|
956
|
+
children: [t14, t15]
|
|
957
|
+
});
|
|
958
|
+
$[43] = t11;
|
|
959
|
+
$[44] = t14;
|
|
960
|
+
$[45] = t15;
|
|
961
|
+
$[46] = t16;
|
|
962
|
+
} else t16 = $[46];
|
|
963
|
+
const t17 = !loadFailed && !metadataLoaded;
|
|
964
|
+
let t18;
|
|
965
|
+
if ($[47] !== asset.size || $[48] !== details || $[49] !== duration || $[50] !== media.mimeType || $[51] !== t17 || $[52] !== transcriptUrl) {
|
|
966
|
+
t18 = /* @__PURE__ */ jsx(WorkspaceMediaDetails, {
|
|
967
|
+
details,
|
|
968
|
+
mimeType: media.mimeType,
|
|
969
|
+
size: asset.size,
|
|
970
|
+
duration,
|
|
971
|
+
durationPending: t17,
|
|
972
|
+
transcriptUrl
|
|
973
|
+
});
|
|
974
|
+
$[47] = asset.size;
|
|
975
|
+
$[48] = details;
|
|
976
|
+
$[49] = duration;
|
|
977
|
+
$[50] = media.mimeType;
|
|
978
|
+
$[51] = t17;
|
|
979
|
+
$[52] = transcriptUrl;
|
|
980
|
+
$[53] = t18;
|
|
981
|
+
} else t18 = $[53];
|
|
982
|
+
let t19;
|
|
983
|
+
if ($[54] !== t12 || $[55] !== t16 || $[56] !== t18) {
|
|
984
|
+
t19 = /* @__PURE__ */ jsxs("figure", {
|
|
985
|
+
className: t12,
|
|
986
|
+
children: [t16, t18]
|
|
987
|
+
});
|
|
988
|
+
$[54] = t12;
|
|
989
|
+
$[55] = t16;
|
|
990
|
+
$[56] = t18;
|
|
991
|
+
$[57] = t19;
|
|
992
|
+
} else t19 = $[57];
|
|
993
|
+
return t19;
|
|
994
|
+
}
|
|
995
|
+
function _temp3(track) {
|
|
996
|
+
return /* @__PURE__ */ jsx("track", {
|
|
997
|
+
src: track.src,
|
|
998
|
+
kind: track.kind,
|
|
999
|
+
srcLang: track.srcLang,
|
|
1000
|
+
label: track.label,
|
|
1001
|
+
default: track.default
|
|
1002
|
+
}, `${track.kind}:${track.srcLang}:${track.src}`);
|
|
1003
|
+
}
|
|
1004
|
+
function WorkspaceVideoPreview(t0) {
|
|
1005
|
+
const $ = c(73);
|
|
1006
|
+
const { asset, fileName, media, url, details } = t0;
|
|
1007
|
+
const [duration, setDuration] = React.useState(null);
|
|
1008
|
+
const [dimensions, setDimensions] = React.useState(null);
|
|
1009
|
+
const [metadataLoaded, setMetadataLoaded] = React.useState(false);
|
|
1010
|
+
const [loadFailed, setLoadFailed] = React.useState(false);
|
|
1011
|
+
let t1;
|
|
1012
|
+
let t10;
|
|
1013
|
+
let t11;
|
|
1014
|
+
let t12;
|
|
1015
|
+
let t13;
|
|
1016
|
+
let t14;
|
|
1017
|
+
let t15;
|
|
1018
|
+
let t16;
|
|
1019
|
+
let t2;
|
|
1020
|
+
let t3;
|
|
1021
|
+
let t4;
|
|
1022
|
+
let t5;
|
|
1023
|
+
let t6;
|
|
1024
|
+
let t7;
|
|
1025
|
+
let t8;
|
|
1026
|
+
let t9;
|
|
1027
|
+
let transcriptUrl;
|
|
1028
|
+
if ($[0] !== asset.crossOrigin || $[1] !== asset.posterUrl || $[2] !== asset.tracks || $[3] !== asset.transcriptUrl || $[4] !== dimensions?.height || $[5] !== dimensions?.width || $[6] !== fileName || $[7] !== media.mimeType || $[8] !== url) {
|
|
1029
|
+
const tracks = safeTracks(asset.tracks);
|
|
1030
|
+
let t17;
|
|
1031
|
+
if ($[26] !== asset.posterUrl) {
|
|
1032
|
+
t17 = safeAssetUrl(asset.posterUrl) ?? void 0;
|
|
1033
|
+
$[26] = asset.posterUrl;
|
|
1034
|
+
$[27] = t17;
|
|
1035
|
+
} else t17 = $[27];
|
|
1036
|
+
const posterUrl = t17;
|
|
1037
|
+
let t18;
|
|
1038
|
+
if ($[28] !== asset.transcriptUrl) {
|
|
1039
|
+
t18 = safeAssetUrl(asset.transcriptUrl);
|
|
1040
|
+
$[28] = asset.transcriptUrl;
|
|
1041
|
+
$[29] = t18;
|
|
1042
|
+
} else t18 = $[29];
|
|
1043
|
+
transcriptUrl = t18;
|
|
1044
|
+
t16 = "workspace-explorer__media-figure workspace-explorer__media-figure--video";
|
|
1045
|
+
t15 = "workspace-explorer__media-stage";
|
|
1046
|
+
t1 = url;
|
|
1047
|
+
t2 = "workspace-explorer__video";
|
|
1048
|
+
t3 = true;
|
|
1049
|
+
t4 = "metadata";
|
|
1050
|
+
t5 = true;
|
|
1051
|
+
t6 = asset.crossOrigin;
|
|
1052
|
+
t7 = posterUrl;
|
|
1053
|
+
t8 = dimensions?.width;
|
|
1054
|
+
t9 = dimensions?.height;
|
|
1055
|
+
t10 = `Video preview: ${fileName}`;
|
|
1056
|
+
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1057
|
+
t11 = (event) => {
|
|
1058
|
+
const video = event.currentTarget;
|
|
1059
|
+
setMetadataLoaded(true);
|
|
1060
|
+
setDuration(Number.isFinite(video.duration) ? video.duration : null);
|
|
1061
|
+
setDimensions(video.videoWidth > 0 && video.videoHeight > 0 ? {
|
|
1062
|
+
width: video.videoWidth,
|
|
1063
|
+
height: video.videoHeight
|
|
1064
|
+
} : null);
|
|
1065
|
+
};
|
|
1066
|
+
t12 = () => setLoadFailed(true);
|
|
1067
|
+
$[30] = t11;
|
|
1068
|
+
$[31] = t12;
|
|
1069
|
+
} else {
|
|
1070
|
+
t11 = $[30];
|
|
1071
|
+
t12 = $[31];
|
|
1072
|
+
}
|
|
1073
|
+
if ($[32] !== media.mimeType || $[33] !== url) {
|
|
1074
|
+
t13 = /* @__PURE__ */ jsx("source", {
|
|
1075
|
+
src: url,
|
|
1076
|
+
type: media.mimeType
|
|
1077
|
+
});
|
|
1078
|
+
$[32] = media.mimeType;
|
|
1079
|
+
$[33] = url;
|
|
1080
|
+
$[34] = t13;
|
|
1081
|
+
} else t13 = $[34];
|
|
1082
|
+
t14 = tracks.map(_temp4);
|
|
1083
|
+
$[0] = asset.crossOrigin;
|
|
1084
|
+
$[1] = asset.posterUrl;
|
|
1085
|
+
$[2] = asset.tracks;
|
|
1086
|
+
$[3] = asset.transcriptUrl;
|
|
1087
|
+
$[4] = dimensions?.height;
|
|
1088
|
+
$[5] = dimensions?.width;
|
|
1089
|
+
$[6] = fileName;
|
|
1090
|
+
$[7] = media.mimeType;
|
|
1091
|
+
$[8] = url;
|
|
1092
|
+
$[9] = t1;
|
|
1093
|
+
$[10] = t10;
|
|
1094
|
+
$[11] = t11;
|
|
1095
|
+
$[12] = t12;
|
|
1096
|
+
$[13] = t13;
|
|
1097
|
+
$[14] = t14;
|
|
1098
|
+
$[15] = t15;
|
|
1099
|
+
$[16] = t16;
|
|
1100
|
+
$[17] = t2;
|
|
1101
|
+
$[18] = t3;
|
|
1102
|
+
$[19] = t4;
|
|
1103
|
+
$[20] = t5;
|
|
1104
|
+
$[21] = t6;
|
|
1105
|
+
$[22] = t7;
|
|
1106
|
+
$[23] = t8;
|
|
1107
|
+
$[24] = t9;
|
|
1108
|
+
$[25] = transcriptUrl;
|
|
1109
|
+
} else {
|
|
1110
|
+
t1 = $[9];
|
|
1111
|
+
t10 = $[10];
|
|
1112
|
+
t11 = $[11];
|
|
1113
|
+
t12 = $[12];
|
|
1114
|
+
t13 = $[13];
|
|
1115
|
+
t14 = $[14];
|
|
1116
|
+
t15 = $[15];
|
|
1117
|
+
t16 = $[16];
|
|
1118
|
+
t2 = $[17];
|
|
1119
|
+
t3 = $[18];
|
|
1120
|
+
t4 = $[19];
|
|
1121
|
+
t5 = $[20];
|
|
1122
|
+
t6 = $[21];
|
|
1123
|
+
t7 = $[22];
|
|
1124
|
+
t8 = $[23];
|
|
1125
|
+
t9 = $[24];
|
|
1126
|
+
transcriptUrl = $[25];
|
|
1127
|
+
}
|
|
1128
|
+
let t17;
|
|
1129
|
+
if ($[35] !== fileName || $[36] !== url) {
|
|
1130
|
+
t17 = /* @__PURE__ */ jsxs("a", {
|
|
1131
|
+
href: url,
|
|
1132
|
+
children: ["Open ", fileName]
|
|
1133
|
+
});
|
|
1134
|
+
$[35] = fileName;
|
|
1135
|
+
$[36] = url;
|
|
1136
|
+
$[37] = t17;
|
|
1137
|
+
} else t17 = $[37];
|
|
1138
|
+
let t18;
|
|
1139
|
+
if ($[38] !== t1 || $[39] !== t10 || $[40] !== t11 || $[41] !== t12 || $[42] !== t13 || $[43] !== t14 || $[44] !== t17 || $[45] !== t2 || $[46] !== t3 || $[47] !== t4 || $[48] !== t5 || $[49] !== t6 || $[50] !== t7 || $[51] !== t8 || $[52] !== t9) {
|
|
1140
|
+
t18 = /* @__PURE__ */ jsxs("video", {
|
|
1141
|
+
className: t2,
|
|
1142
|
+
controls: t3,
|
|
1143
|
+
preload: t4,
|
|
1144
|
+
playsInline: t5,
|
|
1145
|
+
crossOrigin: t6,
|
|
1146
|
+
poster: t7,
|
|
1147
|
+
width: t8,
|
|
1148
|
+
height: t9,
|
|
1149
|
+
"aria-label": t10,
|
|
1150
|
+
onLoadedMetadata: t11,
|
|
1151
|
+
onError: t12,
|
|
1152
|
+
children: [
|
|
1153
|
+
t13,
|
|
1154
|
+
t14,
|
|
1155
|
+
t17
|
|
1156
|
+
]
|
|
1157
|
+
}, t1);
|
|
1158
|
+
$[38] = t1;
|
|
1159
|
+
$[39] = t10;
|
|
1160
|
+
$[40] = t11;
|
|
1161
|
+
$[41] = t12;
|
|
1162
|
+
$[42] = t13;
|
|
1163
|
+
$[43] = t14;
|
|
1164
|
+
$[44] = t17;
|
|
1165
|
+
$[45] = t2;
|
|
1166
|
+
$[46] = t3;
|
|
1167
|
+
$[47] = t4;
|
|
1168
|
+
$[48] = t5;
|
|
1169
|
+
$[49] = t6;
|
|
1170
|
+
$[50] = t7;
|
|
1171
|
+
$[51] = t8;
|
|
1172
|
+
$[52] = t9;
|
|
1173
|
+
$[53] = t18;
|
|
1174
|
+
} else t18 = $[53];
|
|
1175
|
+
let t19;
|
|
1176
|
+
if ($[54] !== loadFailed) {
|
|
1177
|
+
t19 = /* @__PURE__ */ jsx(WorkspaceMediaError, {
|
|
1178
|
+
active: loadFailed,
|
|
1179
|
+
children: "This video format could not be played by the browser."
|
|
1180
|
+
});
|
|
1181
|
+
$[54] = loadFailed;
|
|
1182
|
+
$[55] = t19;
|
|
1183
|
+
} else t19 = $[55];
|
|
1184
|
+
let t20;
|
|
1185
|
+
if ($[56] !== t15 || $[57] !== t18 || $[58] !== t19) {
|
|
1186
|
+
t20 = /* @__PURE__ */ jsxs("div", {
|
|
1187
|
+
className: t15,
|
|
1188
|
+
children: [t18, t19]
|
|
1189
|
+
});
|
|
1190
|
+
$[56] = t15;
|
|
1191
|
+
$[57] = t18;
|
|
1192
|
+
$[58] = t19;
|
|
1193
|
+
$[59] = t20;
|
|
1194
|
+
} else t20 = $[59];
|
|
1195
|
+
const t21 = !loadFailed && !metadataLoaded;
|
|
1196
|
+
const t22 = !loadFailed && !metadataLoaded;
|
|
1197
|
+
let t23;
|
|
1198
|
+
if ($[60] !== asset.size || $[61] !== details || $[62] !== dimensions || $[63] !== duration || $[64] !== media.mimeType || $[65] !== t21 || $[66] !== t22 || $[67] !== transcriptUrl) {
|
|
1199
|
+
t23 = /* @__PURE__ */ jsx(WorkspaceMediaDetails, {
|
|
1200
|
+
details,
|
|
1201
|
+
mimeType: media.mimeType,
|
|
1202
|
+
size: asset.size,
|
|
1203
|
+
dimensions,
|
|
1204
|
+
dimensionsPending: t21,
|
|
1205
|
+
duration,
|
|
1206
|
+
durationPending: t22,
|
|
1207
|
+
transcriptUrl
|
|
1208
|
+
});
|
|
1209
|
+
$[60] = asset.size;
|
|
1210
|
+
$[61] = details;
|
|
1211
|
+
$[62] = dimensions;
|
|
1212
|
+
$[63] = duration;
|
|
1213
|
+
$[64] = media.mimeType;
|
|
1214
|
+
$[65] = t21;
|
|
1215
|
+
$[66] = t22;
|
|
1216
|
+
$[67] = transcriptUrl;
|
|
1217
|
+
$[68] = t23;
|
|
1218
|
+
} else t23 = $[68];
|
|
1219
|
+
let t24;
|
|
1220
|
+
if ($[69] !== t16 || $[70] !== t20 || $[71] !== t23) {
|
|
1221
|
+
t24 = /* @__PURE__ */ jsxs("figure", {
|
|
1222
|
+
className: t16,
|
|
1223
|
+
children: [t20, t23]
|
|
1224
|
+
});
|
|
1225
|
+
$[69] = t16;
|
|
1226
|
+
$[70] = t20;
|
|
1227
|
+
$[71] = t23;
|
|
1228
|
+
$[72] = t24;
|
|
1229
|
+
} else t24 = $[72];
|
|
1230
|
+
return t24;
|
|
1231
|
+
}
|
|
1232
|
+
function _temp4(track) {
|
|
1233
|
+
return /* @__PURE__ */ jsx("track", {
|
|
1234
|
+
src: track.src,
|
|
1235
|
+
kind: track.kind,
|
|
1236
|
+
srcLang: track.srcLang,
|
|
1237
|
+
label: track.label,
|
|
1238
|
+
default: track.default
|
|
1239
|
+
}, `${track.kind}:${track.srcLang}:${track.src}`);
|
|
1240
|
+
}
|
|
1241
|
+
/** Finished workspace preview surface for one resolved media asset. */
|
|
1242
|
+
function WorkspaceMediaPreview(props) {
|
|
1243
|
+
const $ = c(14);
|
|
1244
|
+
const { onScroll } = props;
|
|
1245
|
+
let t0;
|
|
1246
|
+
if ($[0] !== props) {
|
|
1247
|
+
t0 = props.media.kind === "image" ? /* @__PURE__ */ jsx(WorkspaceImagePreview, { ...props }, props.url) : null;
|
|
1248
|
+
$[0] = props;
|
|
1249
|
+
$[1] = t0;
|
|
1250
|
+
} else t0 = $[1];
|
|
1251
|
+
let t1;
|
|
1252
|
+
if ($[2] !== props) {
|
|
1253
|
+
t1 = props.media.kind === "pdf" ? /* @__PURE__ */ jsx(WorkspacePdfPreview, { ...props }) : null;
|
|
1254
|
+
$[2] = props;
|
|
1255
|
+
$[3] = t1;
|
|
1256
|
+
} else t1 = $[3];
|
|
1257
|
+
let t2;
|
|
1258
|
+
if ($[4] !== props) {
|
|
1259
|
+
t2 = props.media.kind === "audio" ? /* @__PURE__ */ jsx(WorkspaceAudioPreview, { ...props }, props.url) : null;
|
|
1260
|
+
$[4] = props;
|
|
1261
|
+
$[5] = t2;
|
|
1262
|
+
} else t2 = $[5];
|
|
1263
|
+
let t3;
|
|
1264
|
+
if ($[6] !== props) {
|
|
1265
|
+
t3 = props.media.kind === "video" ? /* @__PURE__ */ jsx(WorkspaceVideoPreview, { ...props }, props.url) : null;
|
|
1266
|
+
$[6] = props;
|
|
1267
|
+
$[7] = t3;
|
|
1268
|
+
} else t3 = $[7];
|
|
1269
|
+
let t4;
|
|
1270
|
+
if ($[8] !== onScroll || $[9] !== t0 || $[10] !== t1 || $[11] !== t2 || $[12] !== t3) {
|
|
1271
|
+
t4 = /* @__PURE__ */ jsxs("div", {
|
|
1272
|
+
className: "workspace-explorer__media-scroll",
|
|
1273
|
+
"data-workspace-file-content": "",
|
|
1274
|
+
"data-workspace-focus-target": "",
|
|
1275
|
+
"data-workspace-scroll": "",
|
|
1276
|
+
onScroll,
|
|
1277
|
+
tabIndex: -1,
|
|
1278
|
+
children: [
|
|
1279
|
+
t0,
|
|
1280
|
+
t1,
|
|
1281
|
+
t2,
|
|
1282
|
+
t3
|
|
1283
|
+
]
|
|
1284
|
+
});
|
|
1285
|
+
$[8] = onScroll;
|
|
1286
|
+
$[9] = t0;
|
|
1287
|
+
$[10] = t1;
|
|
1288
|
+
$[11] = t2;
|
|
1289
|
+
$[12] = t3;
|
|
1290
|
+
$[13] = t4;
|
|
1291
|
+
} else t4 = $[13];
|
|
1292
|
+
return t4;
|
|
1293
|
+
}
|
|
1294
|
+
//#endregion
|
|
1295
|
+
export { useWorkspaceAssetUrl as i, WorkspaceMediaPreview as n, WorkspacePreviewFrame as r, WorkspaceAssetActions as t };
|