@mcp-b/react-components 0.63.0 → 0.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +100 -36
- package/dist/components/extension/FirstRunSetup.js +3974 -1016
- 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
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { t as attempt } from "../../attempt-CySQHJsF.js";
|
|
2
3
|
import { getPlanPrice } from "./Pricing.js";
|
|
3
4
|
import { PricingBillingToggle } from "./PricingBillingToggle.js";
|
|
4
5
|
import { PricingConfirmationDialog } from "./PricingConfirmationDialog.js";
|
|
5
6
|
import { PricingFAQ } from "./PricingFAQ.js";
|
|
6
7
|
import { PricingPlanCard } from "./PricingPlanCard.js";
|
|
7
8
|
import { PricingUsageCalculator } from "./PricingUsageCalculator.js";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
8
10
|
import * as React from "react";
|
|
9
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
12
|
//#region src/components/general-purpose/PricingPage.tsx
|
|
@@ -30,161 +32,396 @@ const EMPTY_USAGE_TIERS = [];
|
|
|
30
32
|
* />
|
|
31
33
|
* ```
|
|
32
34
|
*/
|
|
33
|
-
function PricingPage(
|
|
35
|
+
function PricingPage(t0) {
|
|
36
|
+
const $ = c(112);
|
|
37
|
+
const { title: t1, subtitle, plans, faq, showUsageCalculator: t2, usageTiers: t3, maxUsage: t4, usageUnit: t5, onSelectPlan, onConfirmUpgrade, className: t6, billingToggleVariant, productIds, currentProductId, isSubscribed: t7, checkoutUrl: t8, switchPlanUrl: t9, portalUrl: t10, isLoggedIn: t11, loginUrl: t12, hasPolarAccount: t13, onCheckout, onSwitchPlan, onPortalRedirect } = t0;
|
|
38
|
+
const title = t1 === void 0 ? "Simple, transparent pricing" : t1;
|
|
39
|
+
const showUsageCalculator = t2 === void 0 ? false : t2;
|
|
40
|
+
const usageTiers = t3 === void 0 ? EMPTY_USAGE_TIERS : t3;
|
|
41
|
+
const maxUsage = t4 === void 0 ? 1e5 : t4;
|
|
42
|
+
const usageUnit = t5 === void 0 ? "API calls" : t5;
|
|
43
|
+
const className = t6 === void 0 ? "" : t6;
|
|
44
|
+
const isSubscribed = t7 === void 0 ? false : t7;
|
|
45
|
+
const checkoutUrl = t8 === void 0 ? "/api/checkout" : t8;
|
|
46
|
+
const switchPlanUrl = t9 === void 0 ? "/api/switch-plan" : t9;
|
|
47
|
+
const portalUrl = t10 === void 0 ? "/api/portal" : t10;
|
|
48
|
+
const isLoggedIn = t11 === void 0 ? false : t11;
|
|
49
|
+
const loginUrl = t12 === void 0 ? "/auth/login" : t12;
|
|
50
|
+
const hasPolarAccount = t13 === void 0 ? false : t13;
|
|
34
51
|
const [billingPeriod, setBillingPeriod] = React.useState("monthly");
|
|
35
52
|
const [selectedPlan, setSelectedPlan] = React.useState(null);
|
|
36
53
|
const [confirmDialogOpen, setConfirmDialogOpen] = React.useState(false);
|
|
37
54
|
const [switching, setSwitching] = React.useState(false);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const ids = productIds[plan.id];
|
|
49
|
-
if (!ids) return false;
|
|
50
|
-
return ids.monthly === currentProductId || ids.yearly === currentProductId;
|
|
51
|
-
};
|
|
52
|
-
const currentPlan = isSubscribed ? plans.find((p) => isCurrentPlan(p)) : void 0;
|
|
53
|
-
const getSwitchDirection = (target) => {
|
|
54
|
-
if (!currentPlan) return "upgrade";
|
|
55
|
-
const currentPrice = getPlanPrice(currentPlan, billingPeriod);
|
|
56
|
-
const targetPrice = getPlanPrice(target, billingPeriod);
|
|
57
|
-
if (targetPrice > currentPrice) return "upgrade";
|
|
58
|
-
if (targetPrice < currentPrice) return "downgrade";
|
|
59
|
-
return "switch";
|
|
60
|
-
};
|
|
61
|
-
const getProductIdForPlan = (plan) => {
|
|
62
|
-
if (!productIds) return void 0;
|
|
63
|
-
const ids = productIds[plan.id];
|
|
64
|
-
if (!ids) return void 0;
|
|
65
|
-
return billingPeriod === "yearly" ? ids.yearly : ids.monthly;
|
|
66
|
-
};
|
|
67
|
-
const doCheckout = async (productId) => {
|
|
68
|
-
if (onCheckout) await onCheckout(productId);
|
|
69
|
-
else window.location.href = `${checkoutUrl}?products=${productId}`;
|
|
70
|
-
};
|
|
71
|
-
const doSwitchPlan = async (productId) => {
|
|
72
|
-
if (onSwitchPlan) return onSwitchPlan(productId);
|
|
73
|
-
return fetch(switchPlanUrl, {
|
|
74
|
-
method: "POST",
|
|
75
|
-
headers: { "Content-Type": "application/json" },
|
|
76
|
-
body: JSON.stringify({ productId })
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
const doPortalRedirect = async () => {
|
|
80
|
-
if (onPortalRedirect) await onPortalRedirect();
|
|
81
|
-
else window.location.href = portalUrl;
|
|
82
|
-
};
|
|
83
|
-
const handleSelectPlan = (plan) => {
|
|
84
|
-
if (isCurrentPlan(plan)) return;
|
|
85
|
-
if (!isLoggedIn && plan.monthlyPrice > 0) {
|
|
86
|
-
const productId = getProductIdForPlan(plan);
|
|
87
|
-
const checkoutPath = productId ? `${checkoutUrl}?products=${productId}` : window.location.pathname;
|
|
88
|
-
window.location.href = `${loginUrl}?redirect=${encodeURIComponent(checkoutPath)}`;
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
setSelectedPlan(plan);
|
|
92
|
-
setConfirmDialogOpen(true);
|
|
93
|
-
};
|
|
94
|
-
const handleConfirmUpgrade = async () => {
|
|
95
|
-
if (!selectedPlan) {
|
|
96
|
-
setConfirmDialogOpen(false);
|
|
97
|
-
return;
|
|
55
|
+
let t14;
|
|
56
|
+
if ($[0] !== plans) {
|
|
57
|
+
bb0: {
|
|
58
|
+
const paidPlans = plans.filter(_temp);
|
|
59
|
+
if (paidPlans.length === 0) {
|
|
60
|
+
t14 = 0;
|
|
61
|
+
break bb0;
|
|
62
|
+
}
|
|
63
|
+
const totalPercent = paidPlans.reduce(_temp2, 0);
|
|
64
|
+
t14 = Math.round(totalPercent / paidPlans.length);
|
|
98
65
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
66
|
+
$[0] = plans;
|
|
67
|
+
$[1] = t14;
|
|
68
|
+
} else t14 = $[1];
|
|
69
|
+
const yearlySavingsPercent = t14;
|
|
70
|
+
let t15;
|
|
71
|
+
if ($[2] !== currentProductId || $[3] !== productIds) {
|
|
72
|
+
t15 = (plan_0) => {
|
|
73
|
+
if (!currentProductId || !productIds) return false;
|
|
74
|
+
const ids = productIds[plan_0.id];
|
|
75
|
+
if (!ids) return false;
|
|
76
|
+
return ids.monthly === currentProductId || ids.yearly === currentProductId;
|
|
77
|
+
};
|
|
78
|
+
$[2] = currentProductId;
|
|
79
|
+
$[3] = productIds;
|
|
80
|
+
$[4] = t15;
|
|
81
|
+
} else t15 = $[4];
|
|
82
|
+
const isCurrentPlan = t15;
|
|
83
|
+
let T0;
|
|
84
|
+
let handleConfirmUpgrade;
|
|
85
|
+
let t16;
|
|
86
|
+
let t17;
|
|
87
|
+
let t18;
|
|
88
|
+
let t19;
|
|
89
|
+
let t20;
|
|
90
|
+
let t21;
|
|
91
|
+
let t22;
|
|
92
|
+
let t23;
|
|
93
|
+
let t24;
|
|
94
|
+
let t25;
|
|
95
|
+
if ($[5] !== billingPeriod || $[6] !== billingToggleVariant || $[7] !== checkoutUrl || $[8] !== className || $[9] !== confirmDialogOpen || $[10] !== faq || $[11] !== hasPolarAccount || $[12] !== isCurrentPlan || $[13] !== isLoggedIn || $[14] !== isSubscribed || $[15] !== loginUrl || $[16] !== maxUsage || $[17] !== onCheckout || $[18] !== onConfirmUpgrade || $[19] !== onPortalRedirect || $[20] !== onSelectPlan || $[21] !== onSwitchPlan || $[22] !== plans || $[23] !== portalUrl || $[24] !== productIds || $[25] !== selectedPlan || $[26] !== showUsageCalculator || $[27] !== subtitle || $[28] !== switchPlanUrl || $[29] !== title || $[30] !== usageTiers || $[31] !== usageUnit || $[32] !== yearlySavingsPercent) {
|
|
96
|
+
const currentPlan = isSubscribed ? plans.find((p_0) => isCurrentPlan(p_0)) : void 0;
|
|
97
|
+
const getSwitchDirection = (target) => {
|
|
98
|
+
if (!currentPlan) return "upgrade";
|
|
99
|
+
const currentPrice = getPlanPrice(currentPlan, billingPeriod);
|
|
100
|
+
const targetPrice = getPlanPrice(target, billingPeriod);
|
|
101
|
+
if (targetPrice > currentPrice) return "upgrade";
|
|
102
|
+
if (targetPrice < currentPrice) return "downgrade";
|
|
103
|
+
return "switch";
|
|
104
|
+
};
|
|
105
|
+
let t26;
|
|
106
|
+
if ($[45] !== billingPeriod || $[46] !== productIds) {
|
|
107
|
+
t26 = (plan_1) => {
|
|
108
|
+
if (!productIds) return;
|
|
109
|
+
const ids_0 = productIds[plan_1.id];
|
|
110
|
+
if (!ids_0) return;
|
|
111
|
+
return billingPeriod === "yearly" ? ids_0.yearly : ids_0.monthly;
|
|
112
|
+
};
|
|
113
|
+
$[45] = billingPeriod;
|
|
114
|
+
$[46] = productIds;
|
|
115
|
+
$[47] = t26;
|
|
116
|
+
} else t26 = $[47];
|
|
117
|
+
const getProductIdForPlan = t26;
|
|
118
|
+
let t27;
|
|
119
|
+
if ($[48] !== checkoutUrl || $[49] !== onCheckout) {
|
|
120
|
+
t27 = async (productId) => {
|
|
121
|
+
if (onCheckout) await onCheckout(productId);
|
|
122
|
+
else window.location.href = `${checkoutUrl}?products=${productId}`;
|
|
123
|
+
};
|
|
124
|
+
$[48] = checkoutUrl;
|
|
125
|
+
$[49] = onCheckout;
|
|
126
|
+
$[50] = t27;
|
|
127
|
+
} else t27 = $[50];
|
|
128
|
+
const doCheckout = t27;
|
|
129
|
+
let t28;
|
|
130
|
+
if ($[51] !== onSwitchPlan || $[52] !== switchPlanUrl) {
|
|
131
|
+
t28 = async (productId_0) => {
|
|
132
|
+
if (onSwitchPlan) return onSwitchPlan(productId_0);
|
|
133
|
+
return fetch(switchPlanUrl, {
|
|
134
|
+
method: "POST",
|
|
135
|
+
headers: { "Content-Type": "application/json" },
|
|
136
|
+
body: JSON.stringify({ productId: productId_0 })
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
$[51] = onSwitchPlan;
|
|
140
|
+
$[52] = switchPlanUrl;
|
|
141
|
+
$[53] = t28;
|
|
142
|
+
} else t28 = $[53];
|
|
143
|
+
const doSwitchPlan = t28;
|
|
144
|
+
let t29;
|
|
145
|
+
if ($[54] !== onPortalRedirect || $[55] !== portalUrl) {
|
|
146
|
+
t29 = async () => {
|
|
147
|
+
if (onPortalRedirect) await onPortalRedirect();
|
|
148
|
+
else window.location.href = portalUrl;
|
|
149
|
+
};
|
|
150
|
+
$[54] = onPortalRedirect;
|
|
151
|
+
$[55] = portalUrl;
|
|
152
|
+
$[56] = t29;
|
|
153
|
+
} else t29 = $[56];
|
|
154
|
+
const doPortalRedirect = t29;
|
|
155
|
+
let t30;
|
|
156
|
+
if ($[57] !== checkoutUrl || $[58] !== getProductIdForPlan || $[59] !== isCurrentPlan || $[60] !== isLoggedIn || $[61] !== loginUrl) {
|
|
157
|
+
t30 = (plan_2) => {
|
|
158
|
+
if (isCurrentPlan(plan_2)) return;
|
|
159
|
+
if (!isLoggedIn && plan_2.monthlyPrice > 0) {
|
|
160
|
+
const productId_1 = getProductIdForPlan(plan_2);
|
|
161
|
+
const checkoutPath = productId_1 ? `${checkoutUrl}?products=${productId_1}` : window.location.pathname;
|
|
162
|
+
window.location.href = `${loginUrl}?redirect=${encodeURIComponent(checkoutPath)}`;
|
|
107
163
|
return;
|
|
108
164
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
165
|
+
setSelectedPlan(plan_2);
|
|
166
|
+
setConfirmDialogOpen(true);
|
|
167
|
+
};
|
|
168
|
+
$[57] = checkoutUrl;
|
|
169
|
+
$[58] = getProductIdForPlan;
|
|
170
|
+
$[59] = isCurrentPlan;
|
|
171
|
+
$[60] = isLoggedIn;
|
|
172
|
+
$[61] = loginUrl;
|
|
173
|
+
$[62] = t30;
|
|
174
|
+
} else t30 = $[62];
|
|
175
|
+
const handleSelectPlan = t30;
|
|
176
|
+
let t31;
|
|
177
|
+
if ($[63] !== billingPeriod || $[64] !== doCheckout || $[65] !== doPortalRedirect || $[66] !== doSwitchPlan || $[67] !== getProductIdForPlan || $[68] !== hasPolarAccount || $[69] !== isSubscribed || $[70] !== onConfirmUpgrade || $[71] !== onSelectPlan || $[72] !== productIds || $[73] !== selectedPlan) {
|
|
178
|
+
t31 = async () => {
|
|
179
|
+
if (!selectedPlan) {
|
|
180
|
+
setConfirmDialogOpen(false);
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
onConfirmUpgrade?.(selectedPlan.id, billingPeriod);
|
|
184
|
+
onSelectPlan?.(selectedPlan.id, billingPeriod);
|
|
185
|
+
if (productIds) {
|
|
186
|
+
const productId_2 = getProductIdForPlan(selectedPlan);
|
|
187
|
+
if (!productId_2) return;
|
|
188
|
+
if (isSubscribed) {
|
|
189
|
+
if (!hasPolarAccount) {
|
|
190
|
+
await doCheckout(productId_2);
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
setSwitching(true);
|
|
194
|
+
const switched = await attempt(async () => {
|
|
195
|
+
const res = await doSwitchPlan(productId_2);
|
|
196
|
+
if (res.ok) {
|
|
197
|
+
window.location.reload();
|
|
198
|
+
return true;
|
|
199
|
+
}
|
|
200
|
+
if (res.status === 404) {
|
|
201
|
+
await doCheckout(productId_2);
|
|
202
|
+
return true;
|
|
203
|
+
}
|
|
204
|
+
if (res.status === 409) {
|
|
205
|
+
await doPortalRedirect();
|
|
206
|
+
return true;
|
|
207
|
+
}
|
|
208
|
+
return false;
|
|
209
|
+
});
|
|
210
|
+
setSwitching(false);
|
|
211
|
+
if (!switched.ok) throw switched.error;
|
|
212
|
+
if (switched.value) return;
|
|
213
|
+
} else {
|
|
214
|
+
await doCheckout(productId_2);
|
|
122
215
|
return;
|
|
123
216
|
}
|
|
124
|
-
} finally {
|
|
125
|
-
setSwitching(false);
|
|
126
217
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
218
|
+
setConfirmDialogOpen(false);
|
|
219
|
+
};
|
|
220
|
+
$[63] = billingPeriod;
|
|
221
|
+
$[64] = doCheckout;
|
|
222
|
+
$[65] = doPortalRedirect;
|
|
223
|
+
$[66] = doSwitchPlan;
|
|
224
|
+
$[67] = getProductIdForPlan;
|
|
225
|
+
$[68] = hasPolarAccount;
|
|
226
|
+
$[69] = isSubscribed;
|
|
227
|
+
$[70] = onConfirmUpgrade;
|
|
228
|
+
$[71] = onSelectPlan;
|
|
229
|
+
$[72] = productIds;
|
|
230
|
+
$[73] = selectedPlan;
|
|
231
|
+
$[74] = t31;
|
|
232
|
+
} else t31 = $[74];
|
|
233
|
+
handleConfirmUpgrade = t31;
|
|
234
|
+
const getPlanAction = (plan_3) => {
|
|
235
|
+
if (isCurrentPlan(plan_3)) return "current";
|
|
236
|
+
return isSubscribed ? getSwitchDirection(plan_3) : "select";
|
|
237
|
+
};
|
|
238
|
+
let t32;
|
|
239
|
+
if ($[75] !== className) {
|
|
240
|
+
t32 = cx("pricing-page", className);
|
|
241
|
+
$[75] = className;
|
|
242
|
+
$[76] = t32;
|
|
243
|
+
} else t32 = $[76];
|
|
244
|
+
t21 = t32;
|
|
245
|
+
let t33;
|
|
246
|
+
if ($[77] !== title) {
|
|
247
|
+
t33 = /* @__PURE__ */ jsx("h1", {
|
|
248
|
+
className: "pricing-page__title",
|
|
249
|
+
children: title
|
|
250
|
+
});
|
|
251
|
+
$[77] = title;
|
|
252
|
+
$[78] = t33;
|
|
253
|
+
} else t33 = $[78];
|
|
254
|
+
let t34;
|
|
255
|
+
if ($[79] !== subtitle) {
|
|
256
|
+
t34 = subtitle ? /* @__PURE__ */ jsx("p", {
|
|
257
|
+
className: "pricing-page__subtitle",
|
|
258
|
+
children: subtitle
|
|
259
|
+
}) : null;
|
|
260
|
+
$[79] = subtitle;
|
|
261
|
+
$[80] = t34;
|
|
262
|
+
} else t34 = $[80];
|
|
263
|
+
let t35;
|
|
264
|
+
if ($[81] !== billingPeriod || $[82] !== billingToggleVariant || $[83] !== yearlySavingsPercent) {
|
|
265
|
+
t35 = /* @__PURE__ */ jsx(PricingBillingToggle, {
|
|
266
|
+
value: billingPeriod,
|
|
267
|
+
onValueChange: setBillingPeriod,
|
|
268
|
+
yearlySavingsPercent,
|
|
269
|
+
variant: billingToggleVariant
|
|
270
|
+
});
|
|
271
|
+
$[81] = billingPeriod;
|
|
272
|
+
$[82] = billingToggleVariant;
|
|
273
|
+
$[83] = yearlySavingsPercent;
|
|
274
|
+
$[84] = t35;
|
|
275
|
+
} else t35 = $[84];
|
|
276
|
+
if ($[85] !== t33 || $[86] !== t34 || $[87] !== t35) {
|
|
277
|
+
t22 = /* @__PURE__ */ jsxs("header", {
|
|
143
278
|
className: "pricing-page__header",
|
|
144
279
|
children: [
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}),
|
|
149
|
-
subtitle ? /* @__PURE__ */ jsx("p", {
|
|
150
|
-
className: "pricing-page__subtitle",
|
|
151
|
-
children: subtitle
|
|
152
|
-
}) : null,
|
|
153
|
-
/* @__PURE__ */ jsx(PricingBillingToggle, {
|
|
154
|
-
value: billingPeriod,
|
|
155
|
-
onValueChange: setBillingPeriod,
|
|
156
|
-
yearlySavingsPercent,
|
|
157
|
-
variant: billingToggleVariant
|
|
158
|
-
})
|
|
280
|
+
t33,
|
|
281
|
+
t34,
|
|
282
|
+
t35
|
|
159
283
|
]
|
|
160
|
-
})
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
284
|
+
});
|
|
285
|
+
$[85] = t33;
|
|
286
|
+
$[86] = t34;
|
|
287
|
+
$[87] = t35;
|
|
288
|
+
$[88] = t22;
|
|
289
|
+
} else t22 = $[88];
|
|
290
|
+
t23 = /* @__PURE__ */ jsx("section", {
|
|
291
|
+
className: "pricing-page__plans",
|
|
292
|
+
"aria-label": "Plans",
|
|
293
|
+
children: plans.map((plan_4) => /* @__PURE__ */ jsx(PricingPlanCard, {
|
|
294
|
+
plan: plan_4,
|
|
295
|
+
billingPeriod,
|
|
296
|
+
action: getPlanAction(plan_4),
|
|
297
|
+
onSelect: handleSelectPlan
|
|
298
|
+
}, plan_4.id))
|
|
299
|
+
});
|
|
300
|
+
if ($[89] !== maxUsage || $[90] !== showUsageCalculator || $[91] !== usageTiers || $[92] !== usageUnit) {
|
|
301
|
+
t24 = showUsageCalculator && usageTiers.length > 0 ? /* @__PURE__ */ jsx(PricingUsageCalculator, {
|
|
172
302
|
usageTiers,
|
|
173
303
|
maxUsage,
|
|
174
304
|
usageUnit
|
|
175
|
-
}) : null
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
]
|
|
187
|
-
|
|
305
|
+
}) : null;
|
|
306
|
+
$[89] = maxUsage;
|
|
307
|
+
$[90] = showUsageCalculator;
|
|
308
|
+
$[91] = usageTiers;
|
|
309
|
+
$[92] = usageUnit;
|
|
310
|
+
$[93] = t24;
|
|
311
|
+
} else t24 = $[93];
|
|
312
|
+
if ($[94] !== faq) {
|
|
313
|
+
t25 = faq ? /* @__PURE__ */ jsx(PricingFAQ, { items: faq }) : null;
|
|
314
|
+
$[94] = faq;
|
|
315
|
+
$[95] = t25;
|
|
316
|
+
} else t25 = $[95];
|
|
317
|
+
T0 = PricingConfirmationDialog;
|
|
318
|
+
t16 = confirmDialogOpen;
|
|
319
|
+
t17 = setConfirmDialogOpen;
|
|
320
|
+
t18 = selectedPlan;
|
|
321
|
+
t19 = billingPeriod;
|
|
322
|
+
t20 = isSubscribed && selectedPlan ? getSwitchDirection(selectedPlan) : void 0;
|
|
323
|
+
$[5] = billingPeriod;
|
|
324
|
+
$[6] = billingToggleVariant;
|
|
325
|
+
$[7] = checkoutUrl;
|
|
326
|
+
$[8] = className;
|
|
327
|
+
$[9] = confirmDialogOpen;
|
|
328
|
+
$[10] = faq;
|
|
329
|
+
$[11] = hasPolarAccount;
|
|
330
|
+
$[12] = isCurrentPlan;
|
|
331
|
+
$[13] = isLoggedIn;
|
|
332
|
+
$[14] = isSubscribed;
|
|
333
|
+
$[15] = loginUrl;
|
|
334
|
+
$[16] = maxUsage;
|
|
335
|
+
$[17] = onCheckout;
|
|
336
|
+
$[18] = onConfirmUpgrade;
|
|
337
|
+
$[19] = onPortalRedirect;
|
|
338
|
+
$[20] = onSelectPlan;
|
|
339
|
+
$[21] = onSwitchPlan;
|
|
340
|
+
$[22] = plans;
|
|
341
|
+
$[23] = portalUrl;
|
|
342
|
+
$[24] = productIds;
|
|
343
|
+
$[25] = selectedPlan;
|
|
344
|
+
$[26] = showUsageCalculator;
|
|
345
|
+
$[27] = subtitle;
|
|
346
|
+
$[28] = switchPlanUrl;
|
|
347
|
+
$[29] = title;
|
|
348
|
+
$[30] = usageTiers;
|
|
349
|
+
$[31] = usageUnit;
|
|
350
|
+
$[32] = yearlySavingsPercent;
|
|
351
|
+
$[33] = T0;
|
|
352
|
+
$[34] = handleConfirmUpgrade;
|
|
353
|
+
$[35] = t16;
|
|
354
|
+
$[36] = t17;
|
|
355
|
+
$[37] = t18;
|
|
356
|
+
$[38] = t19;
|
|
357
|
+
$[39] = t20;
|
|
358
|
+
$[40] = t21;
|
|
359
|
+
$[41] = t22;
|
|
360
|
+
$[42] = t23;
|
|
361
|
+
$[43] = t24;
|
|
362
|
+
$[44] = t25;
|
|
363
|
+
} else {
|
|
364
|
+
T0 = $[33];
|
|
365
|
+
handleConfirmUpgrade = $[34];
|
|
366
|
+
t16 = $[35];
|
|
367
|
+
t17 = $[36];
|
|
368
|
+
t18 = $[37];
|
|
369
|
+
t19 = $[38];
|
|
370
|
+
t20 = $[39];
|
|
371
|
+
t21 = $[40];
|
|
372
|
+
t22 = $[41];
|
|
373
|
+
t23 = $[42];
|
|
374
|
+
t24 = $[43];
|
|
375
|
+
t25 = $[44];
|
|
376
|
+
}
|
|
377
|
+
let t26;
|
|
378
|
+
if ($[96] !== T0 || $[97] !== handleConfirmUpgrade || $[98] !== switching || $[99] !== t16 || $[100] !== t17 || $[101] !== t18 || $[102] !== t19 || $[103] !== t20) {
|
|
379
|
+
t26 = /* @__PURE__ */ jsx(T0, {
|
|
380
|
+
open: t16,
|
|
381
|
+
onOpenChange: t17,
|
|
382
|
+
plan: t18,
|
|
383
|
+
billingPeriod: t19,
|
|
384
|
+
action: t20,
|
|
385
|
+
switching,
|
|
386
|
+
onConfirm: handleConfirmUpgrade
|
|
387
|
+
});
|
|
388
|
+
$[96] = T0;
|
|
389
|
+
$[97] = handleConfirmUpgrade;
|
|
390
|
+
$[98] = switching;
|
|
391
|
+
$[99] = t16;
|
|
392
|
+
$[100] = t17;
|
|
393
|
+
$[101] = t18;
|
|
394
|
+
$[102] = t19;
|
|
395
|
+
$[103] = t20;
|
|
396
|
+
$[104] = t26;
|
|
397
|
+
} else t26 = $[104];
|
|
398
|
+
let t27;
|
|
399
|
+
if ($[105] !== t21 || $[106] !== t22 || $[107] !== t23 || $[108] !== t24 || $[109] !== t25 || $[110] !== t26) {
|
|
400
|
+
t27 = /* @__PURE__ */ jsxs("div", {
|
|
401
|
+
className: t21,
|
|
402
|
+
children: [
|
|
403
|
+
t22,
|
|
404
|
+
t23,
|
|
405
|
+
t24,
|
|
406
|
+
t25,
|
|
407
|
+
t26
|
|
408
|
+
]
|
|
409
|
+
});
|
|
410
|
+
$[105] = t21;
|
|
411
|
+
$[106] = t22;
|
|
412
|
+
$[107] = t23;
|
|
413
|
+
$[108] = t24;
|
|
414
|
+
$[109] = t25;
|
|
415
|
+
$[110] = t26;
|
|
416
|
+
$[111] = t27;
|
|
417
|
+
} else t27 = $[111];
|
|
418
|
+
return t27;
|
|
419
|
+
}
|
|
420
|
+
function _temp2(sum, plan) {
|
|
421
|
+
return sum + (plan.monthlyPrice - plan.yearlyPrice) / plan.monthlyPrice * 100;
|
|
422
|
+
}
|
|
423
|
+
function _temp(p) {
|
|
424
|
+
return p.monthlyPrice > 0;
|
|
188
425
|
}
|
|
189
426
|
//#endregion
|
|
190
427
|
export { PricingPage };
|