@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.
Files changed (484) hide show
  1. package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
  2. package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
  3. package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
  4. package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
  5. package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
  6. package/dist/CodeBlock-dt0L8md0.js +892 -0
  7. package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
  8. package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
  9. package/dist/ExecutionResult-CXnGcmM4.js +671 -0
  10. package/dist/FileTree-CjfzpN6X.js +968 -0
  11. package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
  12. package/dist/ManagerOffice-T79utm-P.js +2469 -0
  13. package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
  14. package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
  15. package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
  16. package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
  17. package/dist/SetupChecklist-DwscX3Bw.js +230 -0
  18. package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
  19. package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
  20. package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
  21. package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
  22. package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
  23. package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
  24. package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
  25. package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
  26. package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
  27. package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
  28. package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
  29. package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
  30. package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
  31. package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
  32. package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
  33. package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
  34. package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
  35. package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
  36. package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
  37. package/dist/assets/desktop/README.md +43 -0
  38. package/dist/assets/desktop/automations.svg +19 -0
  39. package/dist/assets/desktop/document.svg +24 -0
  40. package/dist/assets/desktop/folder.png +0 -0
  41. package/dist/assets/desktop/mail.svg +31 -0
  42. package/dist/assets/desktop/settings.svg +9 -0
  43. package/dist/assets/desktop/trash-full.svg +23 -0
  44. package/dist/assets/desktop/trash.svg +19 -0
  45. package/dist/attachment-preview-DeRqFjdz.js +68 -0
  46. package/dist/attempt-CySQHJsF.js +21 -0
  47. package/dist/command-search-1fjmCBBo.js +34 -0
  48. package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
  49. package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
  50. package/dist/components/agents-sdk/AgentActivity.js +78 -31
  51. package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
  52. package/dist/components/agents-sdk/AgentChat.js +1113 -386
  53. package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
  54. package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
  55. package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
  56. package/dist/components/agents-sdk/AgentComputer.js +8045 -0
  57. package/dist/components/agents-sdk/AgentEvent.js +164 -21
  58. package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
  59. package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
  60. package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
  61. package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
  62. package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
  63. package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
  64. package/dist/components/agents-sdk/BrowserReplay.js +298 -133
  65. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
  66. package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
  67. package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
  68. package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
  69. package/dist/components/agents-sdk/EmployeeApp.js +108 -46
  70. package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
  71. package/dist/components/agents-sdk/EmployeeChat.js +500 -99
  72. package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
  73. package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
  74. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
  75. package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
  76. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
  77. package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
  78. package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
  79. package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
  80. package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
  81. package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
  82. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  83. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  84. package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
  85. package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
  86. package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
  87. package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
  88. package/dist/components/agents-sdk/McpServerIcon.js +57 -14
  89. package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
  90. package/dist/components/agents-sdk/McpServerPicker.js +542 -158
  91. package/dist/components/agents-sdk/ModelSelector.js +1151 -253
  92. package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
  93. package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
  94. package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
  95. package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
  96. package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
  97. package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
  98. package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
  99. package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
  100. package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
  101. package/dist/components/agents-sdk/ThinkChat.js +321 -132
  102. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  103. package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
  104. package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
  105. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
  106. package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
  107. package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
  108. package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
  109. package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
  110. package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
  111. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
  112. package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
  113. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
  114. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
  115. package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
  116. package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
  117. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
  118. package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
  119. package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
  120. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
  121. package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
  122. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  123. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
  124. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  125. package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
  126. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
  127. package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
  128. package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
  129. package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
  130. package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
  131. package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
  132. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  133. package/dist/components/agents-sdk/Workspace.js +491 -166
  134. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  135. package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
  136. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  137. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
  138. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
  139. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
  140. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  141. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  142. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
  143. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
  144. package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
  145. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
  146. package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
  147. package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
  148. package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
  149. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
  150. package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
  151. package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
  152. package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
  153. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
  154. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
  155. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
  156. package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
  157. package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
  158. package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
  159. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
  160. package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
  161. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
  162. package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
  163. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
  164. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  165. package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
  166. package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
  167. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  168. package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
  169. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  170. package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
  171. package/dist/components/ai-sdk/Activity.js +768 -192
  172. package/dist/components/ai-sdk/AgentAttention.js +286 -58
  173. package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
  174. package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
  175. package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
  176. package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
  177. package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
  178. package/dist/components/ai-sdk/Approval.js +574 -172
  179. package/dist/components/ai-sdk/Artifact.d.ts +1 -1
  180. package/dist/components/ai-sdk/Artifact.js +535 -128
  181. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  182. package/dist/components/ai-sdk/ChainOfThought.js +404 -80
  183. package/dist/components/ai-sdk/Checkpoint.js +229 -45
  184. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  185. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  186. package/dist/components/ai-sdk/ComposerLink.js +216 -48
  187. package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
  188. package/dist/components/ai-sdk/Context.js +737 -178
  189. package/dist/components/ai-sdk/Conversation.d.ts +1 -1
  190. package/dist/components/ai-sdk/Conversation.js +305 -68
  191. package/dist/components/ai-sdk/ExpansionState.js +74 -15
  192. package/dist/components/ai-sdk/Goal.js +435 -116
  193. package/dist/components/ai-sdk/InlineCitation.js +313 -76
  194. package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
  195. package/dist/components/ai-sdk/Message.d.ts +1 -1
  196. package/dist/components/ai-sdk/Message.js +1010 -195
  197. package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
  198. package/dist/components/ai-sdk/MessageScroller.js +264 -46
  199. package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
  200. package/dist/components/ai-sdk/Plan.js +639 -128
  201. package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
  202. package/dist/components/ai-sdk/PromptInput.js +2735 -794
  203. package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
  204. package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
  205. package/dist/components/ai-sdk/Queue.js +792 -154
  206. package/dist/components/ai-sdk/Reasoning.js +268 -69
  207. package/dist/components/ai-sdk/Sources.js +226 -63
  208. package/dist/components/ai-sdk/Task.js +294 -71
  209. package/dist/components/ai-sdk/ToolApproval.js +126 -26
  210. package/dist/components/ai-sdk/ToolInvocation.js +112 -22
  211. package/dist/components/extension/ChatGptSignInScreen.js +1 -82
  212. package/dist/components/extension/CodexModelSelector.d.ts +1 -1
  213. package/dist/components/extension/CodexModelSelector.js +467 -146
  214. package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
  215. package/dist/components/extension/ConversationTabPicker.js +254 -76
  216. package/dist/components/extension/FirstRunSetup.d.ts +61 -35
  217. package/dist/components/extension/FirstRunSetup.js +3834 -1012
  218. package/dist/components/foundations/Accordion.js +186 -41
  219. package/dist/components/foundations/AlertDialog.js +425 -97
  220. package/dist/components/foundations/AppIcon.d.ts +13 -13
  221. package/dist/components/foundations/AppIcon.js +183 -34
  222. package/dist/components/foundations/Autocomplete.js +408 -89
  223. package/dist/components/foundations/Avatar.d.ts +100 -2
  224. package/dist/components/foundations/Avatar.js +204 -44
  225. package/dist/components/foundations/Button.js +64 -13
  226. package/dist/components/foundations/Card.js +357 -63
  227. package/dist/components/foundations/Checkbox.js +82 -17
  228. package/dist/components/foundations/CheckboxGroup.js +266 -58
  229. package/dist/components/foundations/Collapsible.d.ts +2 -1
  230. package/dist/components/foundations/Collapsible.js +129 -26
  231. package/dist/components/foundations/Combobox.js +408 -89
  232. package/dist/components/foundations/ContextMenu.d.ts +2 -2
  233. package/dist/components/foundations/ContextMenu.js +591 -117
  234. package/dist/components/foundations/DescriptionList.js +159 -28
  235. package/dist/components/foundations/Dialog.js +373 -89
  236. package/dist/components/foundations/EmptyState.js +86 -23
  237. package/dist/components/foundations/Favicon.d.ts +17 -0
  238. package/dist/components/foundations/Favicon.js +62 -0
  239. package/dist/components/foundations/Field.js +525 -108
  240. package/dist/components/foundations/Fieldset.js +115 -23
  241. package/dist/components/foundations/Form.js +38 -9
  242. package/dist/components/foundations/FormattedDate.d.ts +19 -5
  243. package/dist/components/foundations/FormattedDate.js +82 -12
  244. package/dist/components/foundations/IconButton.d.ts +1 -1
  245. package/dist/components/foundations/IconButton.js +114 -17
  246. package/dist/components/foundations/Input.js +38 -9
  247. package/dist/components/foundations/Kbd.js +55 -10
  248. package/dist/components/foundations/Label.js +56 -12
  249. package/dist/components/foundations/LinkButton.js +67 -15
  250. package/dist/components/foundations/Marker.js +138 -29
  251. package/dist/components/foundations/Menu.d.ts +1 -1
  252. package/dist/components/foundations/Menu.js +634 -136
  253. package/dist/components/foundations/Menubar.d.ts +2 -2
  254. package/dist/components/foundations/Menubar.js +685 -130
  255. package/dist/components/foundations/Meter.js +186 -41
  256. package/dist/components/foundations/NavigationMenu.js +426 -95
  257. package/dist/components/foundations/NumberField.js +223 -49
  258. package/dist/components/foundations/Popover.js +398 -88
  259. package/dist/components/foundations/PreviewCard.js +234 -53
  260. package/dist/components/foundations/Progress.js +117 -25
  261. package/dist/components/foundations/RadioGroup.d.ts +13 -5
  262. package/dist/components/foundations/RadioGroup.js +132 -25
  263. package/dist/components/foundations/ScrollArea.js +230 -51
  264. package/dist/components/foundations/SearchField.d.ts +8 -3
  265. package/dist/components/foundations/SearchField.js +129 -28
  266. package/dist/components/foundations/Select.js +648 -145
  267. package/dist/components/foundations/Separator.js +61 -12
  268. package/dist/components/foundations/Slider.js +260 -57
  269. package/dist/components/foundations/Stepper.d.ts +1 -1
  270. package/dist/components/foundations/Stepper.js +561 -127
  271. package/dist/components/foundations/Switch.js +82 -18
  272. package/dist/components/foundations/Tabs.d.ts +2 -2
  273. package/dist/components/foundations/Tabs.js +282 -53
  274. package/dist/components/foundations/Textarea.js +43 -9
  275. package/dist/components/foundations/ThemeProvider.js +138 -52
  276. package/dist/components/foundations/Toast.d.ts +10 -2
  277. package/dist/components/foundations/Toast.js +322 -75
  278. package/dist/components/foundations/Toggle.d.ts +5 -2
  279. package/dist/components/foundations/Toggle.js +51 -10
  280. package/dist/components/foundations/ToggleGroup.d.ts +3 -3
  281. package/dist/components/foundations/ToggleGroup.js +215 -59
  282. package/dist/components/foundations/Toolbar.js +249 -61
  283. package/dist/components/foundations/Tooltip.d.ts +3 -3
  284. package/dist/components/foundations/Tooltip.js +311 -55
  285. package/dist/components/foundations/TransitionSurface.js +43 -9
  286. package/dist/components/foundations/icons.d.ts +2 -2
  287. package/dist/components/foundations/icons.js +2 -2
  288. package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
  289. package/dist/components/general-purpose/ActionGuide.js +290 -64
  290. package/dist/components/general-purpose/AppFrame.js +72 -14
  291. package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
  292. package/dist/components/general-purpose/AppTopBar.js +349 -60
  293. package/dist/components/general-purpose/BrandLoading.js +37 -9
  294. package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
  295. package/dist/components/general-purpose/CommandPalette.js +271 -0
  296. package/dist/components/general-purpose/Commit.d.ts +1 -1
  297. package/dist/components/general-purpose/Commit.js +937 -167
  298. package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
  299. package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
  300. package/dist/components/general-purpose/FileTree.d.ts +20 -7
  301. package/dist/components/general-purpose/FileTree.js +1 -1
  302. package/dist/components/general-purpose/ListDetail.d.ts +84 -0
  303. package/dist/components/general-purpose/ListDetail.js +423 -0
  304. package/dist/components/general-purpose/NotificationPrompt.js +20 -11
  305. package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
  306. package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
  307. package/dist/components/general-purpose/PricingFAQ.js +53 -12
  308. package/dist/components/general-purpose/PricingPage.js +376 -139
  309. package/dist/components/general-purpose/PricingPlanCard.js +209 -84
  310. package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
  311. package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
  312. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
  313. package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
  314. package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
  315. package/dist/components/general-purpose/ScreenStack.js +427 -0
  316. package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
  317. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  318. package/dist/components/general-purpose/StatusScreen.js +82 -24
  319. package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
  320. package/dist/components/general-purpose/SwipeActions.js +357 -0
  321. package/dist/components/general-purpose/Terminal.d.ts +22 -48
  322. package/dist/components/general-purpose/Terminal.js +320 -174
  323. package/dist/components/general-purpose/TestResults.js +975 -196
  324. package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
  325. package/dist/components/general-purpose/ThemeModeControl.js +66 -23
  326. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
  327. package/dist/components/general-purpose/WallpaperPicker.js +180 -0
  328. package/dist/components/general-purpose/WebPreview.d.ts +5 -7
  329. package/dist/components/general-purpose/WebPreview.js +770 -203
  330. package/dist/components/nanites/AgentConnection.js +323 -84
  331. package/dist/components/nanites/AgentToolDetail.js +233 -53
  332. package/dist/components/nanites/GithubMotionMark.js +37 -9
  333. package/dist/components/nanites/NaniteScene.js +535 -323
  334. package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
  335. package/dist/container-width-C43ccJ84.js +17 -0
  336. package/dist/context-Ddsp8HgD.js +43 -0
  337. package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
  338. package/dist/copy-button-DWBVJR6D.js +118 -0
  339. package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
  340. package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
  341. package/dist/icons-nLTnB9kd.js +470 -0
  342. package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
  343. package/dist/motion-CGM3i6lX.js +319 -0
  344. package/dist/motion-preferences-6qsDIDvH.js +13 -0
  345. package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
  346. package/dist/progress-ring-BO649JA9.js +79 -0
  347. package/dist/provider-logos-Ceu7iYFx.js +362 -0
  348. package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
  349. package/dist/styles/accessibility.css +26 -0
  350. package/dist/styles/accordion.css +0 -2
  351. package/dist/styles/activity.css +20 -12
  352. package/dist/styles/agent-attention.css +31 -10
  353. package/dist/styles/agent-chat.css +7 -6
  354. package/dist/styles/agent-computer-motion-reduction.css +118 -0
  355. package/dist/styles/agent-computer-motion.css +127 -0
  356. package/dist/styles/agent-computer-phone.css +942 -0
  357. package/dist/styles/agent-computer.css +1764 -0
  358. package/dist/styles/agent-connection.css +5 -5
  359. package/dist/styles/agent-screen-switcher.css +313 -0
  360. package/dist/styles/app-icon.css +34 -30
  361. package/dist/styles/app-top-bar.css +33 -18
  362. package/dist/styles/approval.css +3 -3
  363. package/dist/styles/artifact.css +1 -1
  364. package/dist/styles/attachment-preview.css +2 -4
  365. package/dist/styles/avatar.css +12 -14
  366. package/dist/styles/base-ui-motion.css +84 -18
  367. package/dist/styles/base-ui-motion.test.tsx +305 -0
  368. package/dist/styles/base.css +16 -12
  369. package/dist/styles/brand.test.ts +7 -20
  370. package/dist/styles/browser-control-overlay.css +1 -1
  371. package/dist/styles/browser-live-screen.css +2 -2
  372. package/dist/styles/browser-live-view.css +1 -1
  373. package/dist/styles/browser-replay.css +0 -8
  374. package/dist/styles/browser-run-panel.css +275 -37
  375. package/dist/styles/button.css +52 -9
  376. package/dist/styles/card.css +6 -5
  377. package/dist/styles/chain-of-thought.css +0 -10
  378. package/dist/styles/checkpoint.css +2 -2
  379. package/dist/styles/codex-model-selector.css +2 -2
  380. package/dist/styles/color-contrast.test.ts +18 -1
  381. package/dist/styles/command-palette.css +110 -0
  382. package/dist/styles/composer-link.css +11 -7
  383. package/dist/styles/composition-motion.css +3 -14
  384. package/dist/styles/context.css +2 -2
  385. package/dist/styles/conversation-tab-picker.css +7 -0
  386. package/dist/styles/conversation.css +8 -2
  387. package/dist/styles/dialog.css +2 -2
  388. package/dist/styles/employee-app.css +8 -2
  389. package/dist/styles/employee-chrome.css +4 -4
  390. package/dist/styles/execution-board.css +206 -114
  391. package/dist/styles/execution-result.css +2 -2
  392. package/dist/styles/field.css +187 -4
  393. package/dist/styles/file-tree.css +218 -40
  394. package/dist/styles/first-run-setup.css +914 -187
  395. package/dist/styles/github-motion-mark.css +0 -8
  396. package/dist/styles/index.css +145 -133
  397. package/dist/styles/inline-citation.css +5 -4
  398. package/dist/styles/list-detail.css +57 -0
  399. package/dist/styles/manager-office.css +6 -8
  400. package/dist/styles/manager-work.css +4 -2
  401. package/dist/styles/mcp-plugin-catalog.css +2 -2
  402. package/dist/styles/mcp-server-picker.css +3 -6
  403. package/dist/styles/media-preview-card.css +2 -2
  404. package/dist/styles/menu.css +0 -9
  405. package/dist/styles/menubar.css +18 -6
  406. package/dist/styles/message-scroller.css +47 -9
  407. package/dist/styles/message.css +3 -3
  408. package/dist/styles/model-selector.css +1 -1
  409. package/dist/styles/motion-reduction.css +39 -6
  410. package/dist/styles/pricing-page.css +1 -1
  411. package/dist/styles/prompt-input.css +29 -29
  412. package/dist/styles/queue.css +1 -1
  413. package/dist/styles/recipes.css +212 -28
  414. package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
  415. package/dist/styles/responsive-sidebar-shell.css +40 -43
  416. package/dist/styles/screen-stack.css +123 -0
  417. package/dist/styles/search-field.css +80 -3
  418. package/dist/styles/stepper.css +0 -10
  419. package/dist/styles/streamdown.css +2 -2
  420. package/dist/styles/subagent-run.css +9 -5
  421. package/dist/styles/swipe-actions.css +158 -0
  422. package/dist/styles/tabs.css +80 -23
  423. package/dist/styles/task.css +7 -1
  424. package/dist/styles/terminal.css +66 -78
  425. package/dist/styles/test-results.css +1 -19
  426. package/dist/styles/textarea.css +2 -1
  427. package/dist/styles/theme-mode-control.css +154 -26
  428. package/dist/styles/think-chat-tool-panels.css +1 -1
  429. package/dist/styles/think-execution-workbench.css +0 -9
  430. package/dist/styles/think-full-app.css +7 -1
  431. package/dist/styles/think-schedule.css +81 -54
  432. package/dist/styles/think-thread-picker.css +28 -37
  433. package/dist/styles/toast.css +11 -0
  434. package/dist/styles/toggle-group.css +0 -10
  435. package/dist/styles/toggle.css +13 -0
  436. package/dist/styles/tooltip.css +12 -0
  437. package/dist/styles/transition-surface.css +1 -0
  438. package/dist/styles/wallpaper-picker.css +224 -0
  439. package/dist/styles/web-preview.css +47 -18
  440. package/dist/styles/workspace-automation.css +116 -17
  441. package/dist/styles/workspace-concepts.css +1 -1
  442. package/dist/styles/workspace-desktop.css +124 -0
  443. package/dist/styles/workspace-entity-card.css +3 -1
  444. package/dist/styles/workspace-explorer.css +499 -5
  445. package/dist/utils/brand-marks.d.ts +13 -0
  446. package/dist/utils/brand-marks.js +14 -0
  447. package/dist/utils/desktop-artwork.d.ts +17 -0
  448. package/dist/utils/desktop-artwork.js +18 -0
  449. package/dist/utils/favicon.d.ts +6 -2
  450. package/dist/utils/favicon.js +16 -4
  451. package/dist/utils/structured-code.d.ts +1 -1
  452. package/dist/workspace-assets-DdtnBDU3.js +213 -0
  453. package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
  454. package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
  455. package/dist/workspace-delete-BOY6CMBf.js +183 -0
  456. package/dist/workspace-drag-B6hMXUNt.js +304 -0
  457. package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
  458. package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
  459. package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
  460. package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
  461. package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
  462. package/package.json +9 -3
  463. package/dist/Avatar-t1YRzdwB.d.ts +0 -101
  464. package/dist/CodeBlock-DYQdZUH6.js +0 -318
  465. package/dist/ExecutionResult-2fBkpIGN.js +0 -279
  466. package/dist/FileTree-CDLOD643.js +0 -323
  467. package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
  468. package/dist/SetupChecklist-B-iEta9v.js +0 -78
  469. package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
  470. package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
  471. package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
  472. package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
  473. package/dist/attachment-preview-1CXJvrmb.js +0 -25
  474. package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
  475. package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
  476. package/dist/copy-button-DbR932tF.js +0 -45
  477. package/dist/icons-GoybMAB2.js +0 -141
  478. package/dist/progress-ring-L2bbF0ji.js +0 -40
  479. package/dist/provider-logos-DWYY8wNz.js +0 -99
  480. package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
  481. package/dist/workspace-assets-F3r6XltC.js +0 -107
  482. package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
  483. package/dist/workspace-delete-CQvv1eDE.js +0 -81
  484. package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
@@ -0,0 +1,2469 @@
1
+ import { findCatalogMcpServerCard, getMcpServerIconSrc, providerCardForHref } from "./utils/mcp-server-catalog.js";
2
+ import { t as cx } from "./class-names-BiMDVpUo.js";
3
+ import { F as LinkIcon, M as InfoIcon, O as FileIcon, S as DotIcon, V as MessageSquareIcon, W as MonitorIcon, f as CalendarIcon, g as ChevronRightIcon, gt as XIcon, it as SpinnerIcon, k as FolderIcon, m as ChevronDownIcon, mt as WarningIcon, p as CheckIcon, q as PauseIcon } from "./icons-nLTnB9kd.js";
4
+ import { Button } from "./components/foundations/Button.js";
5
+ import { Collapsible } from "./components/foundations/Collapsible.js";
6
+ import { Tooltip } from "./components/foundations/Tooltip.js";
7
+ import { AppIcon } from "./components/foundations/AppIcon.js";
8
+ import { EmptyState } from "./components/foundations/EmptyState.js";
9
+ import { Favicon } from "./components/foundations/Favicon.js";
10
+ import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "./components/ai-sdk/AgentAttention.js";
11
+ import { Avatar } from "./components/foundations/Avatar.js";
12
+ import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
13
+ import { LinkButton } from "./components/foundations/LinkButton.js";
14
+ import { getThinkExecutionRunStatus } from "./components/agents-sdk/ThinkExecutionRun.js";
15
+ import { formatThinkScheduleRepeat } from "./components/agents-sdk/ThinkSchedule.js";
16
+ import { c } from "react/compiler-runtime";
17
+ import * as React from "react";
18
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
19
+ import { useRender } from "@base-ui/react/use-render";
20
+ import { mergeProps } from "@base-ui/react/merge-props";
21
+ //#region src/components/_internal/chrome-profile-colors.ts
22
+ const PALETTE = [
23
+ {
24
+ bg: "#ffab40",
25
+ fg: "#1f1f1f"
26
+ },
27
+ {
28
+ bg: "#43a047",
29
+ fg: "#ffffff"
30
+ },
31
+ {
32
+ bg: "#199da9",
33
+ fg: "#ffffff"
34
+ },
35
+ {
36
+ bg: "#5d93e4",
37
+ fg: "#ffffff"
38
+ },
39
+ {
40
+ bg: "#ffaebd",
41
+ fg: "#1f1f1f"
42
+ },
43
+ {
44
+ bg: "#bd165c",
45
+ fg: "#ffffff"
46
+ },
47
+ {
48
+ bg: "#b71c1c",
49
+ fg: "#ffffff"
50
+ },
51
+ {
52
+ bg: "#2e7d32",
53
+ fg: "#ffffff"
54
+ },
55
+ {
56
+ bg: "#006e78",
57
+ fg: "#ffffff"
58
+ },
59
+ {
60
+ bg: "#1565c0",
61
+ fg: "#ffffff"
62
+ },
63
+ {
64
+ bg: "#5b3689",
65
+ fg: "#ffffff"
66
+ }
67
+ ];
68
+ /** FNV-1a, for a stable pick from the same seat across reloads. */
69
+ function hash(seed) {
70
+ let value = 2166136261;
71
+ for (let index = 0; index < seed.length; index++) {
72
+ value ^= seed.charCodeAt(index);
73
+ value = Math.imul(value, 16777619);
74
+ }
75
+ return value >>> 0;
76
+ }
77
+ /**
78
+ * Deterministic Chrome-style profile color for one identity. Pass the set of
79
+ * `bg` values already assigned to the rest of the roster so two profiles only
80
+ * share a color once the palette is exhausted, exactly as Chrome avoids
81
+ * colors in use by other profiles.
82
+ */
83
+ function chromeProfileColor(seed, taken) {
84
+ const start = hash(seed) % PALETTE.length;
85
+ for (let offset = 0; offset < PALETTE.length; offset++) {
86
+ const candidate = PALETTE[(start + offset) % PALETTE.length];
87
+ if (!taken?.has(candidate.bg)) return candidate;
88
+ }
89
+ return PALETTE[start];
90
+ }
91
+ //#endregion
92
+ //#region src/components/agents-sdk/ManagerOffice.tsx
93
+ const OfficeContext = React.createContext(null);
94
+ const EmployeeContext = React.createContext(null);
95
+ function useOffice() {
96
+ const value = React.useContext(OfficeContext);
97
+ if (!value) throw new Error("ManagerOffice parts require ManagerOffice.Root.");
98
+ return value;
99
+ }
100
+ function useEmployee() {
101
+ const value = React.useContext(EmployeeContext);
102
+ if (!value) throw new Error("Employee parts require ManagerOffice.Employee.");
103
+ return value;
104
+ }
105
+ const statusLabels = {
106
+ "needs-you": "Waiting on you",
107
+ working: "Working",
108
+ idle: "Idle",
109
+ issue: "Waiting on you",
110
+ offline: "Offline",
111
+ connecting: "Connecting…",
112
+ unavailable: "Unavailable"
113
+ };
114
+ /**
115
+ * Named positively, so a status added to the union later is disconnected until
116
+ * someone says otherwise. The negative form — "not offline, connecting, or
117
+ * unavailable" — silently admits every new status, and the first thing this
118
+ * component does with a connected employee is read `handoffs`, which a
119
+ * disconnected one does not carry.
120
+ */
121
+ const CONNECTED_STATUSES = {
122
+ "needs-you": true,
123
+ working: true,
124
+ idle: true,
125
+ issue: true
126
+ };
127
+ function isConnected(employee) {
128
+ return employee.status in CONNECTED_STATUSES;
129
+ }
130
+ function employeeAttentionCount(employee) {
131
+ return isConnected(employee) ? employee.handoffs.length : 0;
132
+ }
133
+ /** The roster spells out what its handoff count measures. */
134
+ function employeeStatusText(employee) {
135
+ const count = employeeAttentionCount(employee);
136
+ const label = statusLabels[employee.status];
137
+ return count ? `${label} · ${count} handoff${count === 1 ? "" : "s"}` : label;
138
+ }
139
+ function EmployeePresence(t0) {
140
+ const $ = c(5);
141
+ const { employee } = t0;
142
+ let t1;
143
+ if ($[0] !== employee.status) {
144
+ t1 = employee.status === "needs-you" || employee.status === "issue" ? /* @__PURE__ */ jsx(WarningIcon, {}) : employee.status === "unavailable" ? /* @__PURE__ */ jsx(XIcon, {}) : employee.status === "working" || employee.status === "connecting" ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : employee.status === "offline" ? /* @__PURE__ */ jsx(MonitorIcon, {}) : /* @__PURE__ */ jsx(PauseIcon, {});
145
+ $[0] = employee.status;
146
+ $[1] = t1;
147
+ } else t1 = $[1];
148
+ let t2;
149
+ if ($[2] !== employee.status || $[3] !== t1) {
150
+ t2 = /* @__PURE__ */ jsx("span", {
151
+ className: "manager-office__nav-status",
152
+ "data-status": employee.status,
153
+ "aria-hidden": "true",
154
+ children: t1
155
+ });
156
+ $[2] = employee.status;
157
+ $[3] = t1;
158
+ $[4] = t2;
159
+ } else t2 = $[4];
160
+ return t2;
161
+ }
162
+ /**
163
+ * Each employee is a Chrome profile, so the bubble wears its profile color —
164
+ * the same palette Chrome assigns profiles from. Chrome's pick is per-machine
165
+ * state the host can't read, so the roster re-derives it: a stable hash per
166
+ * seat, skipping colors already worn by earlier roster entries the way Chrome
167
+ * skips colors in use by other profiles.
168
+ */
169
+ function rosterProfileColors(employees) {
170
+ const taken = /* @__PURE__ */ new Set();
171
+ const colors = /* @__PURE__ */ new Map();
172
+ for (const employee of employees) {
173
+ const color = chromeProfileColor(employee.id, taken);
174
+ taken.add(color.bg);
175
+ colors.set(employee.id, color);
176
+ }
177
+ return colors;
178
+ }
179
+ function EmployeeAvatar(t0) {
180
+ const $ = c(32);
181
+ const { color, employee, index: t1, size: t2 } = t0;
182
+ const index = t1 === void 0 ? 0 : t1;
183
+ const size = t2 === void 0 ? "sm" : t2;
184
+ const variant = index % 4;
185
+ let t3;
186
+ if ($[0] !== color.fg) {
187
+ t3 = {
188
+ color: color.fg,
189
+ backgroundColor: "transparent"
190
+ };
191
+ $[0] = color.fg;
192
+ $[1] = t3;
193
+ } else t3 = $[1];
194
+ let t4;
195
+ if ($[2] !== color.bg) {
196
+ t4 = { fill: color.bg };
197
+ $[2] = color.bg;
198
+ $[3] = t4;
199
+ } else t4 = $[3];
200
+ let t5;
201
+ let t6;
202
+ let t7;
203
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
204
+ t5 = /* @__PURE__ */ jsx("rect", {
205
+ x: "5",
206
+ y: "6",
207
+ width: "26",
208
+ height: "25",
209
+ rx: "7"
210
+ });
211
+ t6 = /* @__PURE__ */ jsx("rect", {
212
+ x: "8",
213
+ y: "28",
214
+ width: "8",
215
+ height: "5",
216
+ rx: "2.5",
217
+ opacity: "0.78"
218
+ });
219
+ t7 = /* @__PURE__ */ jsx("rect", {
220
+ x: "20",
221
+ y: "28",
222
+ width: "8",
223
+ height: "5",
224
+ rx: "2.5",
225
+ opacity: "0.78"
226
+ });
227
+ $[4] = t5;
228
+ $[5] = t6;
229
+ $[6] = t7;
230
+ } else {
231
+ t5 = $[4];
232
+ t6 = $[5];
233
+ t7 = $[6];
234
+ }
235
+ let t8;
236
+ if ($[7] !== color.bg || $[8] !== variant) {
237
+ t8 = variant === 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M10 7c.6-3 3.2-5 6.2-5h3.6c3 0 5.6 2 6.2 5Z" }), /* @__PURE__ */ jsx("circle", {
238
+ cx: "18",
239
+ cy: "3",
240
+ r: "1.8"
241
+ })] }) : variant === 1 ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("rect", {
242
+ x: "2.5",
243
+ y: "13",
244
+ width: "4",
245
+ height: "10",
246
+ rx: "2"
247
+ }), /* @__PURE__ */ jsx("rect", {
248
+ x: "29.5",
249
+ y: "13",
250
+ width: "4",
251
+ height: "10",
252
+ rx: "2"
253
+ })] }) : variant === 2 ? /* @__PURE__ */ jsx("path", {
254
+ d: "M11 6V3.5h14V6M15 3.5V1.5h6v2",
255
+ fill: "none",
256
+ stroke: color.bg,
257
+ strokeWidth: "2",
258
+ strokeLinecap: "round",
259
+ strokeLinejoin: "round"
260
+ }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 7V3l4 3 4-4 4 5Z" }), /* @__PURE__ */ jsx("circle", {
261
+ cx: "26.5",
262
+ cy: "7",
263
+ r: "2"
264
+ })] });
265
+ $[7] = color.bg;
266
+ $[8] = variant;
267
+ $[9] = t8;
268
+ } else t8 = $[9];
269
+ let t9;
270
+ if ($[10] !== color.bg || $[11] !== variant) {
271
+ t9 = variant === 1 ? /* @__PURE__ */ jsxs(Fragment, { children: [
272
+ /* @__PURE__ */ jsx("rect", {
273
+ className: "manager-office__employee-character-visor",
274
+ x: "10",
275
+ y: "14",
276
+ width: "16",
277
+ height: "8",
278
+ rx: "4",
279
+ opacity: "0.94"
280
+ }),
281
+ /* @__PURE__ */ jsx("circle", {
282
+ cx: "14",
283
+ cy: "18",
284
+ r: "1.5",
285
+ fill: color.bg
286
+ }),
287
+ /* @__PURE__ */ jsx("circle", {
288
+ cx: "22",
289
+ cy: "18",
290
+ r: "1.5",
291
+ fill: color.bg
292
+ })
293
+ ] }) : variant === 3 ? /* @__PURE__ */ jsxs("g", {
294
+ className: "manager-office__employee-character-glasses",
295
+ children: [
296
+ /* @__PURE__ */ jsx("circle", {
297
+ className: "manager-office__employee-character-lens",
298
+ cx: "13.5",
299
+ cy: "17",
300
+ r: "3"
301
+ }),
302
+ /* @__PURE__ */ jsx("circle", {
303
+ className: "manager-office__employee-character-lens",
304
+ cx: "22.5",
305
+ cy: "17",
306
+ r: "3"
307
+ }),
308
+ /* @__PURE__ */ jsx("path", {
309
+ className: "manager-office__employee-character-bridge",
310
+ d: "M16.5 17h3"
311
+ })
312
+ ]
313
+ }) : /* @__PURE__ */ jsxs(Fragment, { children: [
314
+ /* @__PURE__ */ jsx("circle", {
315
+ cx: "13.5",
316
+ cy: "17",
317
+ r: "3.2"
318
+ }),
319
+ /* @__PURE__ */ jsx("circle", {
320
+ cx: "22.5",
321
+ cy: "17",
322
+ r: "3.2"
323
+ }),
324
+ /* @__PURE__ */ jsx("circle", {
325
+ cx: "14.5",
326
+ cy: "16",
327
+ r: "1",
328
+ fill: color.bg,
329
+ opacity: "0.72"
330
+ }),
331
+ /* @__PURE__ */ jsx("circle", {
332
+ cx: "23.5",
333
+ cy: "16",
334
+ r: "1",
335
+ fill: color.bg,
336
+ opacity: "0.72"
337
+ })
338
+ ] });
339
+ $[10] = color.bg;
340
+ $[11] = variant;
341
+ $[12] = t9;
342
+ } else t9 = $[12];
343
+ let t10;
344
+ if ($[13] !== color.fg || $[14] !== t9) {
345
+ t10 = /* @__PURE__ */ jsx("g", {
346
+ className: "manager-office__employee-character-face",
347
+ fill: color.fg,
348
+ children: t9
349
+ });
350
+ $[13] = color.fg;
351
+ $[14] = t9;
352
+ $[15] = t10;
353
+ } else t10 = $[15];
354
+ let t11;
355
+ if ($[16] !== color.fg) {
356
+ t11 = /* @__PURE__ */ jsx("path", {
357
+ className: "manager-office__employee-character-shine",
358
+ d: "M9 11c2-2 4.7-3 7.7-3",
359
+ fill: "none",
360
+ stroke: color.fg,
361
+ strokeWidth: "1.5",
362
+ strokeLinecap: "round"
363
+ });
364
+ $[16] = color.fg;
365
+ $[17] = t11;
366
+ } else t11 = $[17];
367
+ let t12;
368
+ if ($[18] !== t10 || $[19] !== t11 || $[20] !== t4 || $[21] !== t8) {
369
+ t12 = /* @__PURE__ */ jsxs("svg", {
370
+ viewBox: "0 0 36 36",
371
+ focusable: "false",
372
+ role: "presentation",
373
+ style: t4,
374
+ children: [
375
+ t5,
376
+ t6,
377
+ t7,
378
+ t8,
379
+ t10,
380
+ t11
381
+ ]
382
+ });
383
+ $[18] = t10;
384
+ $[19] = t11;
385
+ $[20] = t4;
386
+ $[21] = t8;
387
+ $[22] = t12;
388
+ } else t12 = $[22];
389
+ let t13;
390
+ if ($[23] !== employee.initials) {
391
+ t13 = /* @__PURE__ */ jsx("span", {
392
+ className: "sigvelo-visually-hidden",
393
+ children: employee.initials
394
+ });
395
+ $[23] = employee.initials;
396
+ $[24] = t13;
397
+ } else t13 = $[24];
398
+ let t14;
399
+ if ($[25] !== t12 || $[26] !== t13 || $[27] !== t3) {
400
+ t14 = /* @__PURE__ */ jsxs(Avatar.Fallback, {
401
+ className: "manager-office__employee-character-fallback",
402
+ style: t3,
403
+ children: [t12, t13]
404
+ });
405
+ $[25] = t12;
406
+ $[26] = t13;
407
+ $[27] = t3;
408
+ $[28] = t14;
409
+ } else t14 = $[28];
410
+ let t15;
411
+ if ($[29] !== size || $[30] !== t14) {
412
+ t15 = /* @__PURE__ */ jsx(Avatar.Root, {
413
+ size,
414
+ shape: "rounded",
415
+ className: "manager-office__employee-character",
416
+ "aria-hidden": "true",
417
+ children: t14
418
+ });
419
+ $[29] = size;
420
+ $[30] = t14;
421
+ $[31] = t15;
422
+ } else t15 = $[31];
423
+ return t15;
424
+ }
425
+ /**
426
+ * One glyph per manager action, not one glyph per backend state. Both an
427
+ * employee asking for a person (`needs-you`) and one blocked by an issue
428
+ * (`issue`) require the same response here, so the roster presents both as
429
+ * "Waiting on you" with the warning glyph. An unreachable employee remains a
430
+ * distinct shape because there is no work for the manager to resume yet.
431
+ *
432
+ * `working` and `connecting` deliberately share the spinner: both mean "in
433
+ * motion, wait", and mistaking one for the other costs the manager nothing.
434
+ */
435
+ function ThreadStatusIcon(t0) {
436
+ const $ = c(5);
437
+ const { status } = t0;
438
+ let t1;
439
+ if ($[0] !== status) {
440
+ t1 = status === "running" ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : status === "error" ? /* @__PURE__ */ jsx(WarningIcon, {}) : status === "interrupted" ? /* @__PURE__ */ jsx(PauseIcon, {}) : /* @__PURE__ */ jsx(DotIcon, {});
441
+ $[0] = status;
442
+ $[1] = t1;
443
+ } else t1 = $[1];
444
+ let t2;
445
+ if ($[2] !== status || $[3] !== t1) {
446
+ t2 = /* @__PURE__ */ jsx("span", {
447
+ className: "manager-office__thread-status",
448
+ "data-status": status,
449
+ "aria-hidden": "true",
450
+ children: t1
451
+ });
452
+ $[2] = status;
453
+ $[3] = t1;
454
+ $[4] = t2;
455
+ } else t2 = $[4];
456
+ return t2;
457
+ }
458
+ function threadStatusLabel(status) {
459
+ if (status === "attention") return "Update ready";
460
+ if (status === "running") return "Working";
461
+ if (status === "error") return "Issue";
462
+ if (status === "interrupted") return "Stopped";
463
+ return "Updated";
464
+ }
465
+ function relativeTime(timestamp, now) {
466
+ const elapsed = Math.max(0, now - timestamp);
467
+ const minute = 6e4;
468
+ const hour = 60 * minute;
469
+ const day = 24 * hour;
470
+ if (elapsed < minute) return "now";
471
+ if (elapsed < hour) return `${Math.floor(elapsed / minute)}m`;
472
+ if (elapsed < day) return `${Math.floor(elapsed / hour)}h`;
473
+ return `${Math.floor(elapsed / day)}d`;
474
+ }
475
+ function Timestamp(t0) {
476
+ const $ = c(10);
477
+ const { now, timestamp } = t0;
478
+ let t1;
479
+ let t2;
480
+ if ($[0] !== timestamp) {
481
+ const date = new Date(timestamp);
482
+ t1 = date.toISOString();
483
+ t2 = date.toLocaleString();
484
+ $[0] = timestamp;
485
+ $[1] = t1;
486
+ $[2] = t2;
487
+ } else {
488
+ t1 = $[1];
489
+ t2 = $[2];
490
+ }
491
+ let t3;
492
+ if ($[3] !== now || $[4] !== timestamp) {
493
+ t3 = relativeTime(timestamp, now);
494
+ $[3] = now;
495
+ $[4] = timestamp;
496
+ $[5] = t3;
497
+ } else t3 = $[5];
498
+ let t4;
499
+ if ($[6] !== t1 || $[7] !== t2 || $[8] !== t3) {
500
+ t4 = /* @__PURE__ */ jsx("time", {
501
+ dateTime: t1,
502
+ title: t2,
503
+ children: t3
504
+ });
505
+ $[6] = t1;
506
+ $[7] = t2;
507
+ $[8] = t3;
508
+ $[9] = t4;
509
+ } else t4 = $[9];
510
+ return t4;
511
+ }
512
+ /**
513
+ * Deliberately the same three glyphs the employee statuses use: a channel that
514
+ * needs a sign-in is the same kind of event as an employee that needs one, and
515
+ * a manager should not have to learn a second vocabulary for it.
516
+ */
517
+ function channelStatusIcon(status) {
518
+ if (status === "connected") return /* @__PURE__ */ jsx(CheckIcon, {});
519
+ if (status === "needs-auth") return /* @__PURE__ */ jsx(InfoIcon, {});
520
+ return /* @__PURE__ */ jsx(WarningIcon, {});
521
+ }
522
+ const channelStatusLabels = {
523
+ connected: "Connected",
524
+ "needs-auth": "Needs sign-in",
525
+ error: "Error"
526
+ };
527
+ function ChannelMark(t0) {
528
+ const $ = c(18);
529
+ const { channel } = t0;
530
+ if (channel.icon) {
531
+ let t1;
532
+ if ($[0] !== channel.icon) {
533
+ t1 = /* @__PURE__ */ jsx("span", {
534
+ className: "manager-office__channel-mark",
535
+ children: channel.icon
536
+ });
537
+ $[0] = channel.icon;
538
+ $[1] = t1;
539
+ } else t1 = $[1];
540
+ return t1;
541
+ }
542
+ let t1;
543
+ if ($[2] !== channel.id || $[3] !== channel.name) {
544
+ const card = findCatalogMcpServerCard({
545
+ id: channel.id,
546
+ name: channel.name
547
+ });
548
+ t1 = card ? getMcpServerIconSrc(card) : void 0;
549
+ $[2] = channel.id;
550
+ $[3] = channel.name;
551
+ $[4] = t1;
552
+ } else t1 = $[4];
553
+ const src = t1;
554
+ if (src) {
555
+ let t2;
556
+ if ($[5] !== src) {
557
+ t2 = /* @__PURE__ */ jsx(AppIcon.Image, {
558
+ alt: "",
559
+ src
560
+ });
561
+ $[5] = src;
562
+ $[6] = t2;
563
+ } else t2 = $[6];
564
+ let t3;
565
+ if ($[7] !== channel.name) {
566
+ t3 = channel.name.slice(0, 1);
567
+ $[7] = channel.name;
568
+ $[8] = t3;
569
+ } else t3 = $[8];
570
+ let t4;
571
+ if ($[9] !== t3) {
572
+ t4 = /* @__PURE__ */ jsx(AppIcon.Fallback, { children: t3 });
573
+ $[9] = t3;
574
+ $[10] = t4;
575
+ } else t4 = $[10];
576
+ let t5;
577
+ if ($[11] !== t2 || $[12] !== t4) {
578
+ t5 = /* @__PURE__ */ jsxs("span", {
579
+ className: "manager-office__channel-mark",
580
+ children: [t2, t4]
581
+ });
582
+ $[11] = t2;
583
+ $[12] = t4;
584
+ $[13] = t5;
585
+ } else t5 = $[13];
586
+ return t5;
587
+ }
588
+ let t2;
589
+ if ($[14] !== channel.name) {
590
+ t2 = channel.name.slice(0, 1);
591
+ $[14] = channel.name;
592
+ $[15] = t2;
593
+ } else t2 = $[15];
594
+ let t3;
595
+ if ($[16] !== t2) {
596
+ t3 = /* @__PURE__ */ jsx(AppIcon.Fallback, { children: t2 });
597
+ $[16] = t2;
598
+ $[17] = t3;
599
+ } else t3 = $[17];
600
+ return t3;
601
+ }
602
+ function ChannelRow(t0) {
603
+ const $ = c(23);
604
+ const { channel } = t0;
605
+ const t1 = channel.status;
606
+ let t2;
607
+ if ($[0] !== channel) {
608
+ t2 = /* @__PURE__ */ jsx(AppIcon.Root, {
609
+ size: "sm",
610
+ "aria-hidden": "true",
611
+ children: /* @__PURE__ */ jsx(ChannelMark, { channel })
612
+ });
613
+ $[0] = channel;
614
+ $[1] = t2;
615
+ } else t2 = $[1];
616
+ let t3;
617
+ if ($[2] !== channel.name) {
618
+ t3 = /* @__PURE__ */ jsx("strong", {
619
+ className: "sigvelo-truncate",
620
+ children: channel.name
621
+ });
622
+ $[2] = channel.name;
623
+ $[3] = t3;
624
+ } else t3 = $[3];
625
+ const t4 = channel.detail ?? channelStatusLabels[channel.status];
626
+ let t5;
627
+ if ($[4] !== t4) {
628
+ t5 = /* @__PURE__ */ jsx("small", {
629
+ className: "sigvelo-truncate",
630
+ children: t4
631
+ });
632
+ $[4] = t4;
633
+ $[5] = t5;
634
+ } else t5 = $[5];
635
+ let t6;
636
+ if ($[6] !== t3 || $[7] !== t5) {
637
+ t6 = /* @__PURE__ */ jsxs("span", {
638
+ className: "manager-office__identity",
639
+ children: [t3, t5]
640
+ });
641
+ $[6] = t3;
642
+ $[7] = t5;
643
+ $[8] = t6;
644
+ } else t6 = $[8];
645
+ const t7 = channel.status;
646
+ const t8 = channelStatusLabels[channel.status];
647
+ let t9;
648
+ if ($[9] !== channel.status) {
649
+ t9 = channelStatusIcon(channel.status);
650
+ $[9] = channel.status;
651
+ $[10] = t9;
652
+ } else t9 = $[10];
653
+ const t10 = channelStatusLabels[channel.status];
654
+ let t11;
655
+ if ($[11] !== t10) {
656
+ t11 = /* @__PURE__ */ jsx("span", {
657
+ className: "sigvelo-visually-hidden",
658
+ children: t10
659
+ });
660
+ $[11] = t10;
661
+ $[12] = t11;
662
+ } else t11 = $[12];
663
+ let t12;
664
+ if ($[13] !== channel.status || $[14] !== t11 || $[15] !== t8 || $[16] !== t9) {
665
+ t12 = /* @__PURE__ */ jsxs("span", {
666
+ className: "manager-office__channel-status",
667
+ "data-status": t7,
668
+ title: t8,
669
+ children: [t9, t11]
670
+ });
671
+ $[13] = channel.status;
672
+ $[14] = t11;
673
+ $[15] = t8;
674
+ $[16] = t9;
675
+ $[17] = t12;
676
+ } else t12 = $[17];
677
+ let t13;
678
+ if ($[18] !== channel.status || $[19] !== t12 || $[20] !== t2 || $[21] !== t6) {
679
+ t13 = /* @__PURE__ */ jsxs("li", {
680
+ className: "manager-office__channel",
681
+ "data-status": t1,
682
+ children: [
683
+ t2,
684
+ t6,
685
+ t12
686
+ ]
687
+ });
688
+ $[18] = channel.status;
689
+ $[19] = t12;
690
+ $[20] = t2;
691
+ $[21] = t6;
692
+ $[22] = t13;
693
+ } else t13 = $[22];
694
+ return t13;
695
+ }
696
+ /**
697
+ * A handoff is the one thing on this surface that is waiting on a person, so
698
+ * it gets the surface built for that — `AgentAttention` in its warning tone —
699
+ * rather than another ghost row indistinguishable from the work beneath it.
700
+ * The action is a link into the owning work, because that is where the single
701
+ * approval surface lives; nothing is approved or dismissed from the roster.
702
+ */
703
+ function HandoffCard(t0) {
704
+ const $ = c(30);
705
+ const { employee, handoff, renderLink, now, showEmployee } = t0;
706
+ const t1 = !handoff.request && "manager-office__handoff--bare";
707
+ let t2;
708
+ if ($[0] !== t1) {
709
+ t2 = cx("manager-office__handoff", t1);
710
+ $[0] = t1;
711
+ $[1] = t2;
712
+ } else t2 = $[1];
713
+ let t3;
714
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
715
+ t3 = /* @__PURE__ */ jsx(InfoIcon, {});
716
+ $[2] = t3;
717
+ } else t3 = $[2];
718
+ const t4 = showEmployee ? `${employee.name} · ` : null;
719
+ let t5;
720
+ if ($[3] !== handoff.createdAt || $[4] !== now) {
721
+ t5 = /* @__PURE__ */ jsx(Timestamp, {
722
+ timestamp: handoff.createdAt,
723
+ now
724
+ });
725
+ $[3] = handoff.createdAt;
726
+ $[4] = now;
727
+ $[5] = t5;
728
+ } else t5 = $[5];
729
+ let t6;
730
+ if ($[6] !== handoff.workTitle || $[7] !== t4 || $[8] !== t5) {
731
+ t6 = /* @__PURE__ */ jsxs(Fragment, { children: [
732
+ t4,
733
+ handoff.workTitle,
734
+ " · ",
735
+ t5
736
+ ] });
737
+ $[6] = handoff.workTitle;
738
+ $[7] = t4;
739
+ $[8] = t5;
740
+ $[9] = t6;
741
+ } else t6 = $[9];
742
+ let t7;
743
+ if ($[10] !== handoff.reason || $[11] !== t6) {
744
+ t7 = /* @__PURE__ */ jsx(AgentAttentionHeader, {
745
+ icon: t3,
746
+ title: handoff.reason,
747
+ description: t6
748
+ });
749
+ $[10] = handoff.reason;
750
+ $[11] = t6;
751
+ $[12] = t7;
752
+ } else t7 = $[12];
753
+ let t8;
754
+ if ($[13] !== handoff.request) {
755
+ t8 = handoff.request ? /* @__PURE__ */ jsx(AgentAttentionBody, {
756
+ className: "manager-office__handoff-ask",
757
+ children: handoff.request
758
+ }) : null;
759
+ $[13] = handoff.request;
760
+ $[14] = t8;
761
+ } else t8 = $[14];
762
+ let t9;
763
+ if ($[15] !== employee || $[16] !== handoff || $[17] !== renderLink) {
764
+ t9 = renderLink({
765
+ kind: "handoff",
766
+ employee,
767
+ handoff
768
+ });
769
+ $[15] = employee;
770
+ $[16] = handoff;
771
+ $[17] = renderLink;
772
+ $[18] = t9;
773
+ } else t9 = $[18];
774
+ const t10 = handoff.workTitle;
775
+ let t11;
776
+ if ($[19] !== handoff.reason) {
777
+ t11 = handoff.reason.toLowerCase();
778
+ $[19] = handoff.reason;
779
+ $[20] = t11;
780
+ } else t11 = $[20];
781
+ const t12 = `Open ${t10} to ${t11}`;
782
+ let t13;
783
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
784
+ t13 = /* @__PURE__ */ jsx(MonitorIcon, {});
785
+ $[21] = t13;
786
+ } else t13 = $[21];
787
+ let t14;
788
+ if ($[22] !== t12 || $[23] !== t9) {
789
+ t14 = /* @__PURE__ */ jsx(AgentAttentionActions, { children: /* @__PURE__ */ jsxs(LinkButton, {
790
+ render: t9,
791
+ size: "sm",
792
+ "aria-label": t12,
793
+ children: [t13, "Open browser"]
794
+ }) });
795
+ $[22] = t12;
796
+ $[23] = t9;
797
+ $[24] = t14;
798
+ } else t14 = $[24];
799
+ let t15;
800
+ if ($[25] !== t14 || $[26] !== t2 || $[27] !== t7 || $[28] !== t8) {
801
+ t15 = /* @__PURE__ */ jsxs(AgentAttention, {
802
+ tone: "attention",
803
+ className: t2,
804
+ children: [
805
+ t7,
806
+ t8,
807
+ t14
808
+ ]
809
+ });
810
+ $[25] = t14;
811
+ $[26] = t2;
812
+ $[27] = t7;
813
+ $[28] = t8;
814
+ $[29] = t15;
815
+ } else t15 = $[29];
816
+ return t15;
817
+ }
818
+ /** Dense nested action for an employee alert already signalled by the roster status. */
819
+ function ManagerOfficeSidebarAlert(t0) {
820
+ const $ = c(22);
821
+ let className;
822
+ let detail;
823
+ let props;
824
+ let title;
825
+ if ($[0] !== t0) {
826
+ ({className, detail, title, ...props} = t0);
827
+ $[0] = t0;
828
+ $[1] = className;
829
+ $[2] = detail;
830
+ $[3] = props;
831
+ $[4] = title;
832
+ } else {
833
+ className = $[1];
834
+ detail = $[2];
835
+ props = $[3];
836
+ title = $[4];
837
+ }
838
+ let t1;
839
+ if ($[5] !== className) {
840
+ t1 = cx("manager-office__sidebar-alert", className);
841
+ $[5] = className;
842
+ $[6] = t1;
843
+ } else t1 = $[6];
844
+ let t2;
845
+ if ($[7] !== title) {
846
+ t2 = /* @__PURE__ */ jsx("strong", { children: title });
847
+ $[7] = title;
848
+ $[8] = t2;
849
+ } else t2 = $[8];
850
+ let t3;
851
+ if ($[9] !== detail) {
852
+ t3 = detail ? /* @__PURE__ */ jsx("small", { children: detail }) : null;
853
+ $[9] = detail;
854
+ $[10] = t3;
855
+ } else t3 = $[10];
856
+ let t4;
857
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
858
+ t4 = /* @__PURE__ */ jsx("span", {
859
+ className: "manager-office__sidebar-alert-status",
860
+ children: "Blocked"
861
+ });
862
+ $[11] = t4;
863
+ } else t4 = $[11];
864
+ let t5;
865
+ if ($[12] !== t3) {
866
+ t5 = /* @__PURE__ */ jsxs("span", {
867
+ className: "manager-office__sidebar-alert-meta",
868
+ children: [t3, t4]
869
+ });
870
+ $[12] = t3;
871
+ $[13] = t5;
872
+ } else t5 = $[13];
873
+ let t6;
874
+ if ($[14] !== t2 || $[15] !== t5) {
875
+ t6 = /* @__PURE__ */ jsxs("span", {
876
+ className: "manager-office__sidebar-alert-copy",
877
+ children: [t2, t5]
878
+ });
879
+ $[14] = t2;
880
+ $[15] = t5;
881
+ $[16] = t6;
882
+ } else t6 = $[16];
883
+ let t7;
884
+ if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
885
+ t7 = /* @__PURE__ */ jsx(ChevronRightIcon, {
886
+ className: "manager-office__sidebar-alert-chevron",
887
+ "aria-hidden": "true"
888
+ });
889
+ $[17] = t7;
890
+ } else t7 = $[17];
891
+ let t8;
892
+ if ($[18] !== props || $[19] !== t1 || $[20] !== t6) {
893
+ t8 = /* @__PURE__ */ jsxs(LinkButton, {
894
+ variant: "ghost",
895
+ color: "neutral",
896
+ size: "sm",
897
+ className: t1,
898
+ ...props,
899
+ children: [t6, t7]
900
+ });
901
+ $[18] = props;
902
+ $[19] = t1;
903
+ $[20] = t6;
904
+ $[21] = t8;
905
+ } else t8 = $[21];
906
+ return t8;
907
+ }
908
+ /**
909
+ * Shared Manager Office rail. Stories and host shells may add employee-owned
910
+ * content, but the Workforce header, roster identity, status language, scrolling,
911
+ * and footer placement stay component-owned and therefore cannot drift.
912
+ */
913
+ function moveRosterFocus(event, layout) {
914
+ const nextKey = layout === "office" ? "ArrowDown" : "ArrowRight";
915
+ const prevKey = layout === "office" ? "ArrowUp" : "ArrowLeft";
916
+ if (event.key !== nextKey && event.key !== prevKey && event.key !== "Home" && event.key !== "End") return;
917
+ const links = [...event.currentTarget.querySelectorAll("a[href], button")];
918
+ const index = links.findIndex((link) => link === document.activeElement);
919
+ if (index < 0) return;
920
+ event.preventDefault();
921
+ const last = links.length - 1;
922
+ links[event.key === "Home" ? 0 : event.key === "End" ? last : event.key === nextKey ? Math.min(last, index + 1) : Math.max(0, index - 1)]?.focus();
923
+ }
924
+ function ManagerOfficeSidebar(t0) {
925
+ const $ = c(66);
926
+ let className;
927
+ let closeSidebarOnCompact;
928
+ let content;
929
+ let employees;
930
+ let footer;
931
+ let officeActions;
932
+ let props;
933
+ let renderLink;
934
+ let selectedEmployeeId;
935
+ let t1;
936
+ if ($[0] !== t0) {
937
+ ({className, closeSidebarOnCompact, content, employees, renderLink, footer, layout: t1, officeActions, selectedEmployeeId, ...props} = t0);
938
+ $[0] = t0;
939
+ $[1] = className;
940
+ $[2] = closeSidebarOnCompact;
941
+ $[3] = content;
942
+ $[4] = employees;
943
+ $[5] = footer;
944
+ $[6] = officeActions;
945
+ $[7] = props;
946
+ $[8] = renderLink;
947
+ $[9] = selectedEmployeeId;
948
+ $[10] = t1;
949
+ } else {
950
+ className = $[1];
951
+ closeSidebarOnCompact = $[2];
952
+ content = $[3];
953
+ employees = $[4];
954
+ footer = $[5];
955
+ officeActions = $[6];
956
+ props = $[7];
957
+ renderLink = $[8];
958
+ selectedEmployeeId = $[9];
959
+ t1 = $[10];
960
+ }
961
+ const layout = t1 === void 0 ? "office" : t1;
962
+ const rosterLabelId = React.useId();
963
+ let T0;
964
+ let t10;
965
+ let t11;
966
+ let t12;
967
+ let t2;
968
+ let t3;
969
+ let t4;
970
+ let t5;
971
+ let t6;
972
+ let t7;
973
+ let t8;
974
+ let t9;
975
+ if ($[11] !== className || $[12] !== closeSidebarOnCompact || $[13] !== employees || $[14] !== layout || $[15] !== officeActions || $[16] !== props || $[17] !== renderLink || $[18] !== rosterLabelId || $[19] !== selectedEmployeeId) {
976
+ const profileColors = rosterProfileColors(employees);
977
+ const isChat = layout === "chat";
978
+ T0 = Tooltip.Provider;
979
+ if ($[32] !== className) {
980
+ t7 = cx("manager-office__sidebar", className);
981
+ $[32] = className;
982
+ $[33] = t7;
983
+ } else t7 = $[33];
984
+ t8 = "Workforce";
985
+ t9 = layout;
986
+ t10 = props;
987
+ let t13;
988
+ if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
989
+ t13 = /* @__PURE__ */ jsx("strong", { children: "Workforce" });
990
+ $[34] = t13;
991
+ } else t13 = $[34];
992
+ let t14;
993
+ if ($[35] !== officeActions) {
994
+ t14 = officeActions ? /* @__PURE__ */ jsx("span", {
995
+ className: "manager-office__sidebar-actions",
996
+ children: officeActions
997
+ }) : null;
998
+ $[35] = officeActions;
999
+ $[36] = t14;
1000
+ } else t14 = $[36];
1001
+ if ($[37] !== t14) {
1002
+ t11 = /* @__PURE__ */ jsxs("div", {
1003
+ className: "manager-office__sidebar-heading",
1004
+ children: [t13, t14]
1005
+ });
1006
+ $[37] = t14;
1007
+ $[38] = t11;
1008
+ } else t11 = $[38];
1009
+ if ($[39] !== rosterLabelId) {
1010
+ t12 = /* @__PURE__ */ jsx("p", {
1011
+ className: "manager-office__nav-label sigvelo-visually-hidden",
1012
+ id: rosterLabelId,
1013
+ children: "Employees"
1014
+ });
1015
+ $[39] = rosterLabelId;
1016
+ $[40] = t12;
1017
+ } else t12 = $[40];
1018
+ t2 = "manager-office__employee-nav";
1019
+ t3 = "list";
1020
+ t4 = rosterLabelId;
1021
+ if ($[41] !== layout) {
1022
+ t5 = (event) => moveRosterFocus(event, layout);
1023
+ $[41] = layout;
1024
+ $[42] = t5;
1025
+ } else t5 = $[42];
1026
+ t6 = employees.map((employee, index) => {
1027
+ const selected = selectedEmployeeId === employee.id;
1028
+ const status = employeeStatusText(employee);
1029
+ return /* @__PURE__ */ jsx("li", {
1030
+ className: "manager-office__employee-group",
1031
+ children: /* @__PURE__ */ jsxs(LinkButton, {
1032
+ render: renderLink({
1033
+ kind: "employee",
1034
+ employee
1035
+ }),
1036
+ onClick: closeSidebarOnCompact,
1037
+ variant: "ghost",
1038
+ color: "neutral",
1039
+ size: "sm",
1040
+ className: "manager-office__employee-link",
1041
+ "aria-current": selected ? "page" : void 0,
1042
+ "aria-label": `Open ${employee.name} · ${status}`,
1043
+ title: isChat ? `${employee.name} · ${status}` : void 0,
1044
+ children: [/* @__PURE__ */ jsxs("span", {
1045
+ className: "manager-office__employee-avatar",
1046
+ children: [/* @__PURE__ */ jsx(EmployeeAvatar, {
1047
+ employee,
1048
+ color: profileColors.get(employee.id),
1049
+ index,
1050
+ size: isChat ? "sm" : "md"
1051
+ }), /* @__PURE__ */ jsx(EmployeePresence, { employee })]
1052
+ }), isChat ? null : /* @__PURE__ */ jsxs("span", {
1053
+ className: "manager-office__identity",
1054
+ children: [/* @__PURE__ */ jsx("strong", {
1055
+ className: "sigvelo-truncate",
1056
+ children: employee.name
1057
+ }), /* @__PURE__ */ jsx("small", {
1058
+ className: "sigvelo-truncate",
1059
+ children: statusLabels[employee.status]
1060
+ })]
1061
+ })]
1062
+ })
1063
+ }, employee.id);
1064
+ });
1065
+ $[11] = className;
1066
+ $[12] = closeSidebarOnCompact;
1067
+ $[13] = employees;
1068
+ $[14] = layout;
1069
+ $[15] = officeActions;
1070
+ $[16] = props;
1071
+ $[17] = renderLink;
1072
+ $[18] = rosterLabelId;
1073
+ $[19] = selectedEmployeeId;
1074
+ $[20] = T0;
1075
+ $[21] = t10;
1076
+ $[22] = t11;
1077
+ $[23] = t12;
1078
+ $[24] = t2;
1079
+ $[25] = t3;
1080
+ $[26] = t4;
1081
+ $[27] = t5;
1082
+ $[28] = t6;
1083
+ $[29] = t7;
1084
+ $[30] = t8;
1085
+ $[31] = t9;
1086
+ } else {
1087
+ T0 = $[20];
1088
+ t10 = $[21];
1089
+ t11 = $[22];
1090
+ t12 = $[23];
1091
+ t2 = $[24];
1092
+ t3 = $[25];
1093
+ t4 = $[26];
1094
+ t5 = $[27];
1095
+ t6 = $[28];
1096
+ t7 = $[29];
1097
+ t8 = $[30];
1098
+ t9 = $[31];
1099
+ }
1100
+ let t13;
1101
+ if ($[43] !== t2 || $[44] !== t3 || $[45] !== t4 || $[46] !== t5 || $[47] !== t6) {
1102
+ t13 = /* @__PURE__ */ jsx("ul", {
1103
+ className: t2,
1104
+ role: t3,
1105
+ "aria-labelledby": t4,
1106
+ onKeyDown: t5,
1107
+ children: t6
1108
+ });
1109
+ $[43] = t2;
1110
+ $[44] = t3;
1111
+ $[45] = t4;
1112
+ $[46] = t5;
1113
+ $[47] = t6;
1114
+ $[48] = t13;
1115
+ } else t13 = $[48];
1116
+ let t14;
1117
+ if ($[49] !== content) {
1118
+ t14 = content ? /* @__PURE__ */ jsx("div", {
1119
+ className: "manager-office__sidebar-content",
1120
+ children: content
1121
+ }) : null;
1122
+ $[49] = content;
1123
+ $[50] = t14;
1124
+ } else t14 = $[50];
1125
+ let t15;
1126
+ if ($[51] !== footer) {
1127
+ t15 = footer ? /* @__PURE__ */ jsx("div", {
1128
+ className: "manager-office__sidebar-footer",
1129
+ children: footer
1130
+ }) : null;
1131
+ $[51] = footer;
1132
+ $[52] = t15;
1133
+ } else t15 = $[52];
1134
+ let t16;
1135
+ if ($[53] !== t10 || $[54] !== t11 || $[55] !== t12 || $[56] !== t13 || $[57] !== t14 || $[58] !== t15 || $[59] !== t7 || $[60] !== t8 || $[61] !== t9) {
1136
+ t16 = /* @__PURE__ */ jsxs("nav", {
1137
+ className: t7,
1138
+ "aria-label": t8,
1139
+ "data-layout": t9,
1140
+ ...t10,
1141
+ children: [
1142
+ t11,
1143
+ t12,
1144
+ t13,
1145
+ t14,
1146
+ t15
1147
+ ]
1148
+ });
1149
+ $[53] = t10;
1150
+ $[54] = t11;
1151
+ $[55] = t12;
1152
+ $[56] = t13;
1153
+ $[57] = t14;
1154
+ $[58] = t15;
1155
+ $[59] = t7;
1156
+ $[60] = t8;
1157
+ $[61] = t9;
1158
+ $[62] = t16;
1159
+ } else t16 = $[62];
1160
+ let t17;
1161
+ if ($[63] !== T0 || $[64] !== t16) {
1162
+ t17 = /* @__PURE__ */ jsx(T0, { children: t16 });
1163
+ $[63] = T0;
1164
+ $[64] = t16;
1165
+ $[65] = t17;
1166
+ } else t17 = $[65];
1167
+ return t17;
1168
+ }
1169
+ function isReviewWork(work) {
1170
+ return work.status === "attention" || work.status === "error";
1171
+ }
1172
+ /** Finished or failed work the manager should open in chat — not a live-tab wait. */
1173
+ function reviewWorkFor(employee) {
1174
+ const waiting = new Set(employee.handoffs.map((handoff) => handoff.workId));
1175
+ return employee.work.filter((work) => isReviewWork(work) && !waiting.has(work.id));
1176
+ }
1177
+ function workingSetOf(work) {
1178
+ return work.workingSet ?? [];
1179
+ }
1180
+ function workingSetKey(item) {
1181
+ return item.kind === "link" ? `link:${item.href}` : `${item.kind}:${item.path}`;
1182
+ }
1183
+ function safeHttpUrl(url) {
1184
+ try {
1185
+ const parsed = new URL(url);
1186
+ if (parsed.protocol !== "https:" && parsed.protocol !== "http:") return void 0;
1187
+ return parsed.href;
1188
+ } catch {
1189
+ return;
1190
+ }
1191
+ }
1192
+ function workingSetLinkDetail(item) {
1193
+ const card = providerCardForHref(item.href);
1194
+ if (card) return card.name;
1195
+ try {
1196
+ return new URL(item.href).hostname.replace(/^www\./u, "");
1197
+ } catch {
1198
+ return item.href;
1199
+ }
1200
+ }
1201
+ function WorkingSetMark(t0) {
1202
+ const $ = c(5);
1203
+ const { item } = t0;
1204
+ if (item.kind === "file") {
1205
+ let t1;
1206
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1207
+ t1 = /* @__PURE__ */ jsx(FileIcon, {});
1208
+ $[0] = t1;
1209
+ } else t1 = $[0];
1210
+ return t1;
1211
+ }
1212
+ if (item.kind === "folder") {
1213
+ let t1;
1214
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1215
+ t1 = /* @__PURE__ */ jsx(FolderIcon, {});
1216
+ $[1] = t1;
1217
+ } else t1 = $[1];
1218
+ return t1;
1219
+ }
1220
+ let t1;
1221
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
1222
+ t1 = /* @__PURE__ */ jsx(LinkIcon, {});
1223
+ $[2] = t1;
1224
+ } else t1 = $[2];
1225
+ let t2;
1226
+ if ($[3] !== item.href) {
1227
+ t2 = /* @__PURE__ */ jsx(Favicon, {
1228
+ href: item.href,
1229
+ fallback: t1
1230
+ });
1231
+ $[3] = item.href;
1232
+ $[4] = t2;
1233
+ } else t2 = $[4];
1234
+ return t2;
1235
+ }
1236
+ function scheduleDetail(schedule) {
1237
+ const every = formatThinkScheduleRepeat(schedule.task.schedule, "timezone" in schedule.task ? schedule.task.timezone : void 0);
1238
+ const repeats = schedule.enabled ? every : `Paused · ${every}`;
1239
+ const finishedRuns = schedule.runs.filter((run) => run.completedAt != null);
1240
+ if (!finishedRuns.length) return repeats;
1241
+ return `${repeats} · ${finishedRuns.filter((run) => {
1242
+ const status = getThinkExecutionRunStatus(run);
1243
+ return status === "completed" || status === "complete";
1244
+ }).length} of ${finishedRuns.length} recent runs completed`;
1245
+ }
1246
+ /**
1247
+ * Where a work link sits decides whether it draws its own surface: a row in a
1248
+ * work list is a bounded row, while a lane heading sits inside the lane card,
1249
+ * which already draws one.
1250
+ */
1251
+ const workLinkClassNames = {
1252
+ row: "manager-office__work-link",
1253
+ lane: "manager-office__lane-title"
1254
+ };
1255
+ /** The link onto a work thread, shared by standalone rows and lane headings. */
1256
+ function WorkLink(t0) {
1257
+ const $ = c(32);
1258
+ const { employee, placement, renderLink, now, showEmployee, work } = t0;
1259
+ let t1;
1260
+ if ($[0] !== employee || $[1] !== renderLink || $[2] !== work) {
1261
+ t1 = renderLink({
1262
+ kind: "work",
1263
+ employee,
1264
+ work
1265
+ });
1266
+ $[0] = employee;
1267
+ $[1] = renderLink;
1268
+ $[2] = work;
1269
+ $[3] = t1;
1270
+ } else t1 = $[3];
1271
+ const t2 = workLinkClassNames[placement];
1272
+ const t3 = work.title;
1273
+ let t4;
1274
+ if ($[4] !== work.status) {
1275
+ t4 = threadStatusLabel(work.status).toLowerCase();
1276
+ $[4] = work.status;
1277
+ $[5] = t4;
1278
+ } else t4 = $[5];
1279
+ const t5 = `Open ${t3} to ${t4}`;
1280
+ let t6;
1281
+ if ($[6] !== work.status) {
1282
+ t6 = /* @__PURE__ */ jsx(ThreadStatusIcon, { status: work.status });
1283
+ $[6] = work.status;
1284
+ $[7] = t6;
1285
+ } else t6 = $[7];
1286
+ let t7;
1287
+ if ($[8] !== work.status) {
1288
+ t7 = work.status === "attention" ? /* @__PURE__ */ jsx("span", {
1289
+ className: "manager-office__unread-dot",
1290
+ "aria-hidden": "true"
1291
+ }) : null;
1292
+ $[8] = work.status;
1293
+ $[9] = t7;
1294
+ } else t7 = $[9];
1295
+ let t8;
1296
+ if ($[10] !== t7 || $[11] !== work.title) {
1297
+ t8 = /* @__PURE__ */ jsxs("strong", {
1298
+ className: "sigvelo-truncate",
1299
+ children: [work.title, t7]
1300
+ });
1301
+ $[10] = t7;
1302
+ $[11] = work.title;
1303
+ $[12] = t8;
1304
+ } else t8 = $[12];
1305
+ const t9 = showEmployee ? `${employee.name} · ` : null;
1306
+ let t10;
1307
+ if ($[13] !== work.status) {
1308
+ t10 = threadStatusLabel(work.status);
1309
+ $[13] = work.status;
1310
+ $[14] = t10;
1311
+ } else t10 = $[14];
1312
+ let t11;
1313
+ if ($[15] !== now || $[16] !== work.updatedAt) {
1314
+ t11 = /* @__PURE__ */ jsx(Timestamp, {
1315
+ timestamp: work.updatedAt,
1316
+ now
1317
+ });
1318
+ $[15] = now;
1319
+ $[16] = work.updatedAt;
1320
+ $[17] = t11;
1321
+ } else t11 = $[17];
1322
+ let t12;
1323
+ if ($[18] !== t10 || $[19] !== t11 || $[20] !== t9) {
1324
+ t12 = /* @__PURE__ */ jsxs("small", {
1325
+ className: "sigvelo-truncate",
1326
+ children: [
1327
+ t9,
1328
+ t10,
1329
+ " · ",
1330
+ t11
1331
+ ]
1332
+ });
1333
+ $[18] = t10;
1334
+ $[19] = t11;
1335
+ $[20] = t9;
1336
+ $[21] = t12;
1337
+ } else t12 = $[21];
1338
+ let t13;
1339
+ if ($[22] !== t12 || $[23] !== t8) {
1340
+ t13 = /* @__PURE__ */ jsxs("span", {
1341
+ className: "manager-office__identity",
1342
+ children: [t8, t12]
1343
+ });
1344
+ $[22] = t12;
1345
+ $[23] = t8;
1346
+ $[24] = t13;
1347
+ } else t13 = $[24];
1348
+ let t14;
1349
+ if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
1350
+ t14 = /* @__PURE__ */ jsx(ChevronRightIcon, { className: "manager-office__row-chevron" });
1351
+ $[25] = t14;
1352
+ } else t14 = $[25];
1353
+ let t15;
1354
+ if ($[26] !== t1 || $[27] !== t13 || $[28] !== t2 || $[29] !== t5 || $[30] !== t6) {
1355
+ t15 = /* @__PURE__ */ jsxs(LinkButton, {
1356
+ render: t1,
1357
+ variant: "ghost",
1358
+ color: "neutral",
1359
+ size: "sm",
1360
+ className: t2,
1361
+ "aria-label": t5,
1362
+ children: [
1363
+ t6,
1364
+ t13,
1365
+ t14
1366
+ ]
1367
+ });
1368
+ $[26] = t1;
1369
+ $[27] = t13;
1370
+ $[28] = t2;
1371
+ $[29] = t5;
1372
+ $[30] = t6;
1373
+ $[31] = t15;
1374
+ } else t15 = $[31];
1375
+ return t15;
1376
+ }
1377
+ function workingSetItemCaption(item) {
1378
+ if (item.kind === "link") return workingSetLinkDetail(item);
1379
+ return item.kind === "folder" ? "Workspace folder" : "Workspace file";
1380
+ }
1381
+ function WorkingSetAttachment(props) {
1382
+ const $ = c(18);
1383
+ const { caption, label, mark, title } = props;
1384
+ let t0;
1385
+ if ($[0] !== mark) {
1386
+ t0 = /* @__PURE__ */ jsx("span", {
1387
+ className: "manager-office__working-set-mark",
1388
+ "aria-hidden": "true",
1389
+ children: mark
1390
+ });
1391
+ $[0] = mark;
1392
+ $[1] = t0;
1393
+ } else t0 = $[1];
1394
+ let t1;
1395
+ if ($[2] !== title) {
1396
+ t1 = /* @__PURE__ */ jsx("strong", {
1397
+ className: "sigvelo-truncate",
1398
+ children: title
1399
+ });
1400
+ $[2] = title;
1401
+ $[3] = t1;
1402
+ } else t1 = $[3];
1403
+ let t2;
1404
+ if ($[4] !== t0 || $[5] !== t1) {
1405
+ t2 = /* @__PURE__ */ jsxs(Fragment, { children: [t0, t1] });
1406
+ $[4] = t0;
1407
+ $[5] = t1;
1408
+ $[6] = t2;
1409
+ } else t2 = $[6];
1410
+ const contents = t2;
1411
+ let t3;
1412
+ if ($[7] !== contents || $[8] !== label || $[9] !== props) {
1413
+ t3 = "href" in props ? /* @__PURE__ */ jsx(LinkButton, {
1414
+ href: props.href,
1415
+ target: "_blank",
1416
+ rel: "noreferrer",
1417
+ variant: "ghost",
1418
+ color: "neutral",
1419
+ size: "sm",
1420
+ className: "manager-office__working-set-link",
1421
+ "aria-label": label,
1422
+ children: contents
1423
+ }) : /* @__PURE__ */ jsx(LinkButton, {
1424
+ render: props.render,
1425
+ variant: "ghost",
1426
+ color: "neutral",
1427
+ size: "sm",
1428
+ className: "manager-office__working-set-link",
1429
+ "aria-label": label,
1430
+ children: contents
1431
+ });
1432
+ $[7] = contents;
1433
+ $[8] = label;
1434
+ $[9] = props;
1435
+ $[10] = t3;
1436
+ } else t3 = $[10];
1437
+ const link = t3;
1438
+ let t4;
1439
+ if ($[11] !== link) {
1440
+ t4 = /* @__PURE__ */ jsx(Tooltip.Trigger, { render: link });
1441
+ $[11] = link;
1442
+ $[12] = t4;
1443
+ } else t4 = $[12];
1444
+ let t5;
1445
+ if ($[13] !== caption) {
1446
+ t5 = /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, {
1447
+ side: "bottom",
1448
+ sideOffset: 6,
1449
+ children: /* @__PURE__ */ jsx(Tooltip.Popup, { children: caption })
1450
+ }) });
1451
+ $[13] = caption;
1452
+ $[14] = t5;
1453
+ } else t5 = $[14];
1454
+ let t6;
1455
+ if ($[15] !== t4 || $[16] !== t5) {
1456
+ t6 = /* @__PURE__ */ jsxs(Tooltip.Root, { children: [t4, t5] });
1457
+ $[15] = t4;
1458
+ $[16] = t5;
1459
+ $[17] = t6;
1460
+ } else t6 = $[17];
1461
+ return t6;
1462
+ }
1463
+ function WorkingSetItemRow(t0) {
1464
+ const $ = c(23);
1465
+ const { employee, item, renderLink, work } = t0;
1466
+ let t1;
1467
+ if ($[0] !== item) {
1468
+ t1 = workingSetItemCaption(item);
1469
+ $[0] = item;
1470
+ $[1] = t1;
1471
+ } else t1 = $[1];
1472
+ const caption = t1;
1473
+ let t2;
1474
+ if ($[2] !== item) {
1475
+ t2 = /* @__PURE__ */ jsx(WorkingSetMark, { item });
1476
+ $[2] = item;
1477
+ $[3] = t2;
1478
+ } else t2 = $[3];
1479
+ const mark = t2;
1480
+ if (item.kind === "link") {
1481
+ let t3;
1482
+ if ($[4] !== item.href) {
1483
+ t3 = safeHttpUrl(item.href);
1484
+ $[4] = item.href;
1485
+ $[5] = t3;
1486
+ } else t3 = $[5];
1487
+ const href = t3;
1488
+ if (!href) return null;
1489
+ const t4 = `${item.title} (${caption}, opens in a new tab)`;
1490
+ let t5;
1491
+ if ($[6] !== caption || $[7] !== href || $[8] !== item.title || $[9] !== mark || $[10] !== t4) {
1492
+ t5 = /* @__PURE__ */ jsx("li", {
1493
+ className: "manager-office__working-set-item",
1494
+ children: /* @__PURE__ */ jsx(WorkingSetAttachment, {
1495
+ caption,
1496
+ label: t4,
1497
+ href,
1498
+ mark,
1499
+ title: item.title
1500
+ })
1501
+ });
1502
+ $[6] = caption;
1503
+ $[7] = href;
1504
+ $[8] = item.title;
1505
+ $[9] = mark;
1506
+ $[10] = t4;
1507
+ $[11] = t5;
1508
+ } else t5 = $[11];
1509
+ return t5;
1510
+ }
1511
+ const location = item.kind === "folder" ? "folder" : "file";
1512
+ const t3 = `Open ${item.title} ${location} in workspace`;
1513
+ let t4;
1514
+ if ($[12] !== employee || $[13] !== item.path || $[14] !== renderLink || $[15] !== work) {
1515
+ t4 = renderLink({
1516
+ kind: "workspace",
1517
+ employee,
1518
+ work,
1519
+ path: item.path
1520
+ });
1521
+ $[12] = employee;
1522
+ $[13] = item.path;
1523
+ $[14] = renderLink;
1524
+ $[15] = work;
1525
+ $[16] = t4;
1526
+ } else t4 = $[16];
1527
+ let t5;
1528
+ if ($[17] !== caption || $[18] !== item.title || $[19] !== mark || $[20] !== t3 || $[21] !== t4) {
1529
+ t5 = /* @__PURE__ */ jsx("li", {
1530
+ className: "manager-office__working-set-item",
1531
+ children: /* @__PURE__ */ jsx(WorkingSetAttachment, {
1532
+ caption,
1533
+ label: t3,
1534
+ render: t4,
1535
+ mark,
1536
+ title: item.title
1537
+ })
1538
+ });
1539
+ $[17] = caption;
1540
+ $[18] = item.title;
1541
+ $[19] = mark;
1542
+ $[20] = t3;
1543
+ $[21] = t4;
1544
+ $[22] = t5;
1545
+ } else t5 = $[22];
1546
+ return t5;
1547
+ }
1548
+ function WorkLane(t0) {
1549
+ const $ = c(16);
1550
+ const { employee, now, renderLink, work } = t0;
1551
+ const titleId = React.useId();
1552
+ let t1;
1553
+ if ($[0] !== employee || $[1] !== now || $[2] !== renderLink || $[3] !== titleId || $[4] !== work) {
1554
+ const workingSet = workingSetOf(work);
1555
+ let t2;
1556
+ if ($[6] !== employee || $[7] !== now || $[8] !== renderLink || $[9] !== work) {
1557
+ t2 = /* @__PURE__ */ jsx(WorkLink, {
1558
+ employee,
1559
+ now,
1560
+ placement: "lane",
1561
+ renderLink,
1562
+ showEmployee: false,
1563
+ work
1564
+ });
1565
+ $[6] = employee;
1566
+ $[7] = now;
1567
+ $[8] = renderLink;
1568
+ $[9] = work;
1569
+ $[10] = t2;
1570
+ } else t2 = $[10];
1571
+ let t3;
1572
+ if ($[11] !== t2 || $[12] !== titleId) {
1573
+ t3 = /* @__PURE__ */ jsx("h3", {
1574
+ id: titleId,
1575
+ className: "manager-office__lane-heading",
1576
+ children: t2
1577
+ });
1578
+ $[11] = t2;
1579
+ $[12] = titleId;
1580
+ $[13] = t3;
1581
+ } else t3 = $[13];
1582
+ let t4;
1583
+ if ($[14] !== work.summary) {
1584
+ t4 = work.summary ? /* @__PURE__ */ jsx("p", {
1585
+ className: "manager-office__lane-summary",
1586
+ children: work.summary
1587
+ }) : null;
1588
+ $[14] = work.summary;
1589
+ $[15] = t4;
1590
+ } else t4 = $[15];
1591
+ t1 = /* @__PURE__ */ jsxs("article", {
1592
+ className: "manager-office__lane",
1593
+ "aria-labelledby": titleId,
1594
+ children: [
1595
+ t3,
1596
+ t4,
1597
+ workingSet.length ? /* @__PURE__ */ jsx("ul", {
1598
+ className: "manager-office__working-set",
1599
+ role: "list",
1600
+ "aria-label": "Working set",
1601
+ children: workingSet.map((item) => /* @__PURE__ */ jsx(WorkingSetItemRow, {
1602
+ employee,
1603
+ item,
1604
+ renderLink,
1605
+ work
1606
+ }, workingSetKey(item)))
1607
+ }) : null
1608
+ ]
1609
+ });
1610
+ $[0] = employee;
1611
+ $[1] = now;
1612
+ $[2] = renderLink;
1613
+ $[3] = titleId;
1614
+ $[4] = work;
1615
+ $[5] = t1;
1616
+ } else t1 = $[5];
1617
+ return t1;
1618
+ }
1619
+ function ManagerOfficeAttention(t0) {
1620
+ const $ = c(28);
1621
+ let className;
1622
+ let props;
1623
+ if ($[0] !== t0) {
1624
+ ({className, ...props} = t0);
1625
+ $[0] = t0;
1626
+ $[1] = className;
1627
+ $[2] = props;
1628
+ } else {
1629
+ className = $[1];
1630
+ props = $[2];
1631
+ }
1632
+ const { employees, renderLink, now } = useOffice();
1633
+ let t1;
1634
+ let t2;
1635
+ let t3;
1636
+ let t4;
1637
+ let t5;
1638
+ let t6;
1639
+ if ($[3] !== className || $[4] !== employees || $[5] !== now || $[6] !== props || $[7] !== renderLink) {
1640
+ t6 = Symbol.for("react.early_return_sentinel");
1641
+ bb0: {
1642
+ const waits = employees.flatMap(_temp);
1643
+ const reviews = employees.flatMap(_temp2);
1644
+ if (!waits.length && !reviews.length) {
1645
+ let t7;
1646
+ if ($[14] !== className) {
1647
+ t7 = cx("manager-office__attention", className);
1648
+ $[14] = className;
1649
+ $[15] = t7;
1650
+ } else t7 = $[15];
1651
+ let t8;
1652
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
1653
+ t8 = /* @__PURE__ */ jsx(EmptyState, {
1654
+ icon: /* @__PURE__ */ jsx(CheckIcon, {}),
1655
+ title: "Nothing needs you",
1656
+ description: "Employee connection state remains visible in the roster."
1657
+ });
1658
+ $[16] = t8;
1659
+ } else t8 = $[16];
1660
+ let t9;
1661
+ if ($[17] !== props || $[18] !== t7) {
1662
+ t9 = /* @__PURE__ */ jsx("div", {
1663
+ ...props,
1664
+ className: t7,
1665
+ "data-recipe": "page",
1666
+ children: t8
1667
+ });
1668
+ $[17] = props;
1669
+ $[18] = t7;
1670
+ $[19] = t9;
1671
+ } else t9 = $[19];
1672
+ t6 = t9;
1673
+ break bb0;
1674
+ }
1675
+ const both = waits.length > 0 && reviews.length > 0;
1676
+ t1 = props;
1677
+ if ($[20] !== className) {
1678
+ t2 = cx("manager-office__attention", className);
1679
+ $[20] = className;
1680
+ $[21] = t2;
1681
+ } else t2 = $[21];
1682
+ t3 = "page";
1683
+ t4 = waits.length ? /* @__PURE__ */ jsxs("div", {
1684
+ className: "manager-office__attention-group",
1685
+ children: [both ? /* @__PURE__ */ jsx("h2", {
1686
+ className: "manager-office__section-title",
1687
+ children: "Needs you in the browser"
1688
+ }) : null, /* @__PURE__ */ jsx("ul", {
1689
+ className: "manager-office__attention-list sigvelo-stack-list",
1690
+ "aria-label": "Waiting on you",
1691
+ children: waits.map((t7) => {
1692
+ const { employee: employee_1, handoff: handoff_0 } = t7;
1693
+ return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(HandoffCard, {
1694
+ employee: employee_1,
1695
+ handoff: handoff_0,
1696
+ renderLink,
1697
+ now,
1698
+ showEmployee: true
1699
+ }) }, `${employee_1.id}:${handoff_0.id}`);
1700
+ })
1701
+ })]
1702
+ }) : null;
1703
+ t5 = reviews.length ? /* @__PURE__ */ jsxs("div", {
1704
+ className: "manager-office__attention-group",
1705
+ children: [/* @__PURE__ */ jsx("h2", {
1706
+ className: "manager-office__section-title",
1707
+ children: "Ready for you"
1708
+ }), /* @__PURE__ */ jsx("ul", {
1709
+ className: "manager-office__work-list sigvelo-stack-list",
1710
+ "aria-label": "Ready for you",
1711
+ children: reviews.map((t8) => {
1712
+ const { employee: employee_2, work: work_0 } = t8;
1713
+ return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(WorkLink, {
1714
+ employee: employee_2,
1715
+ work: work_0,
1716
+ placement: "row",
1717
+ renderLink,
1718
+ now,
1719
+ showEmployee: true
1720
+ }) }, `${employee_2.id}:${work_0.id}`);
1721
+ })
1722
+ })]
1723
+ }) : null;
1724
+ }
1725
+ $[3] = className;
1726
+ $[4] = employees;
1727
+ $[5] = now;
1728
+ $[6] = props;
1729
+ $[7] = renderLink;
1730
+ $[8] = t1;
1731
+ $[9] = t2;
1732
+ $[10] = t3;
1733
+ $[11] = t4;
1734
+ $[12] = t5;
1735
+ $[13] = t6;
1736
+ } else {
1737
+ t1 = $[8];
1738
+ t2 = $[9];
1739
+ t3 = $[10];
1740
+ t4 = $[11];
1741
+ t5 = $[12];
1742
+ t6 = $[13];
1743
+ }
1744
+ if (t6 !== Symbol.for("react.early_return_sentinel")) return t6;
1745
+ let t7;
1746
+ if ($[22] !== t1 || $[23] !== t2 || $[24] !== t3 || $[25] !== t4 || $[26] !== t5) {
1747
+ t7 = /* @__PURE__ */ jsxs("div", {
1748
+ ...t1,
1749
+ className: t2,
1750
+ "data-recipe": t3,
1751
+ children: [t4, t5]
1752
+ });
1753
+ $[22] = t1;
1754
+ $[23] = t2;
1755
+ $[24] = t3;
1756
+ $[25] = t4;
1757
+ $[26] = t5;
1758
+ $[27] = t7;
1759
+ } else t7 = $[27];
1760
+ return t7;
1761
+ }
1762
+ function _temp2(employee_0) {
1763
+ return isConnected(employee_0) ? reviewWorkFor(employee_0).map((work) => ({
1764
+ employee: employee_0,
1765
+ work
1766
+ })) : [];
1767
+ }
1768
+ function _temp(employee) {
1769
+ return isConnected(employee) ? employee.handoffs.map((handoff) => ({
1770
+ employee,
1771
+ handoff
1772
+ })) : [];
1773
+ }
1774
+ const employeeDefaults = {
1775
+ className: "manager-office__employee-detail",
1776
+ "data-recipe": "page"
1777
+ };
1778
+ /** Scope the selected employee without imposing dossier content or column order. */
1779
+ function ManagerOfficeEmployeeRoot(t0) {
1780
+ const $ = c(15);
1781
+ let employee;
1782
+ let t1;
1783
+ let t2;
1784
+ let t3;
1785
+ let t4;
1786
+ let t5;
1787
+ if ($[0] !== t0) {
1788
+ const { employee: t6, render, ref, ...props } = t0;
1789
+ employee = t6;
1790
+ t5 = useRender;
1791
+ t1 = "div";
1792
+ t2 = render;
1793
+ t3 = ref;
1794
+ t4 = mergeProps(employeeDefaults, props);
1795
+ $[0] = t0;
1796
+ $[1] = employee;
1797
+ $[2] = t1;
1798
+ $[3] = t2;
1799
+ $[4] = t3;
1800
+ $[5] = t4;
1801
+ $[6] = t5;
1802
+ } else {
1803
+ employee = $[1];
1804
+ t1 = $[2];
1805
+ t2 = $[3];
1806
+ t3 = $[4];
1807
+ t4 = $[5];
1808
+ t5 = $[6];
1809
+ }
1810
+ let t6;
1811
+ if ($[7] !== t1 || $[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
1812
+ t6 = {
1813
+ defaultTagName: t1,
1814
+ render: t2,
1815
+ ref: t3,
1816
+ props: t4
1817
+ };
1818
+ $[7] = t1;
1819
+ $[8] = t2;
1820
+ $[9] = t3;
1821
+ $[10] = t4;
1822
+ $[11] = t6;
1823
+ } else t6 = $[11];
1824
+ const element = t5(t6);
1825
+ let t7;
1826
+ if ($[12] !== element || $[13] !== employee) {
1827
+ t7 = /* @__PURE__ */ jsx(EmployeeContext.Provider, {
1828
+ value: employee,
1829
+ children: element
1830
+ });
1831
+ $[12] = element;
1832
+ $[13] = employee;
1833
+ $[14] = t7;
1834
+ } else t7 = $[14];
1835
+ return t7;
1836
+ }
1837
+ function ManagerOfficeEmployeeHeader(t0) {
1838
+ const $ = c(26);
1839
+ let className;
1840
+ let props;
1841
+ if ($[0] !== t0) {
1842
+ ({className, ...props} = t0);
1843
+ $[0] = t0;
1844
+ $[1] = className;
1845
+ $[2] = props;
1846
+ } else {
1847
+ className = $[1];
1848
+ props = $[2];
1849
+ }
1850
+ const employee = useEmployee();
1851
+ const { profileColors } = useOffice();
1852
+ let t1;
1853
+ if ($[3] !== employee.id || $[4] !== profileColors) {
1854
+ t1 = profileColors.get(employee.id) ?? chromeProfileColor(employee.id);
1855
+ $[3] = employee.id;
1856
+ $[4] = profileColors;
1857
+ $[5] = t1;
1858
+ } else t1 = $[5];
1859
+ const profileColor = t1;
1860
+ let t2;
1861
+ if ($[6] !== className) {
1862
+ t2 = cx("manager-office__employee-header", className);
1863
+ $[6] = className;
1864
+ $[7] = t2;
1865
+ } else t2 = $[7];
1866
+ let t3;
1867
+ if ($[8] !== employee || $[9] !== profileColor) {
1868
+ t3 = /* @__PURE__ */ jsx(EmployeeAvatar, {
1869
+ employee,
1870
+ color: profileColor,
1871
+ size: "lg"
1872
+ });
1873
+ $[8] = employee;
1874
+ $[9] = profileColor;
1875
+ $[10] = t3;
1876
+ } else t3 = $[10];
1877
+ let t4;
1878
+ if ($[11] !== employee.name) {
1879
+ t4 = /* @__PURE__ */ jsx("strong", {
1880
+ className: "sigvelo-truncate",
1881
+ children: employee.name
1882
+ });
1883
+ $[11] = employee.name;
1884
+ $[12] = t4;
1885
+ } else t4 = $[12];
1886
+ let t5;
1887
+ if ($[13] !== employee.email) {
1888
+ t5 = /* @__PURE__ */ jsx("small", {
1889
+ className: "sigvelo-truncate",
1890
+ children: employee.email
1891
+ });
1892
+ $[13] = employee.email;
1893
+ $[14] = t5;
1894
+ } else t5 = $[14];
1895
+ let t6;
1896
+ if ($[15] !== employee.role) {
1897
+ t6 = /* @__PURE__ */ jsx("p", {
1898
+ className: "manager-office__role",
1899
+ children: employee.role
1900
+ });
1901
+ $[15] = employee.role;
1902
+ $[16] = t6;
1903
+ } else t6 = $[16];
1904
+ let t7;
1905
+ if ($[17] !== t4 || $[18] !== t5 || $[19] !== t6) {
1906
+ t7 = /* @__PURE__ */ jsxs("div", {
1907
+ className: "manager-office__briefing",
1908
+ children: [
1909
+ t4,
1910
+ t5,
1911
+ t6
1912
+ ]
1913
+ });
1914
+ $[17] = t4;
1915
+ $[18] = t5;
1916
+ $[19] = t6;
1917
+ $[20] = t7;
1918
+ } else t7 = $[20];
1919
+ let t8;
1920
+ if ($[21] !== props || $[22] !== t2 || $[23] !== t3 || $[24] !== t7) {
1921
+ t8 = /* @__PURE__ */ jsxs("header", {
1922
+ ...props,
1923
+ className: t2,
1924
+ children: [t3, t7]
1925
+ });
1926
+ $[21] = props;
1927
+ $[22] = t2;
1928
+ $[23] = t3;
1929
+ $[24] = t7;
1930
+ $[25] = t8;
1931
+ } else t8 = $[25];
1932
+ return t8;
1933
+ }
1934
+ function ManagerOfficeHandoffs(t0) {
1935
+ const $ = c(9);
1936
+ let className;
1937
+ let props;
1938
+ if ($[0] !== t0) {
1939
+ ({className, ...props} = t0);
1940
+ $[0] = t0;
1941
+ $[1] = className;
1942
+ $[2] = props;
1943
+ } else {
1944
+ className = $[1];
1945
+ props = $[2];
1946
+ }
1947
+ const employee = useEmployee();
1948
+ const { renderLink, now } = useOffice();
1949
+ let t1;
1950
+ if ($[3] !== className || $[4] !== employee || $[5] !== now || $[6] !== props || $[7] !== renderLink) {
1951
+ t1 = employee.handoffs.length ? /* @__PURE__ */ jsx("section", {
1952
+ ...props,
1953
+ className: cx("manager-office__employee-handoffs", className),
1954
+ "aria-label": "Waiting on you",
1955
+ children: employee.handoffs.map((handoff) => /* @__PURE__ */ jsx(HandoffCard, {
1956
+ employee,
1957
+ handoff,
1958
+ renderLink,
1959
+ now,
1960
+ showEmployee: false
1961
+ }, handoff.id))
1962
+ }) : null;
1963
+ $[3] = className;
1964
+ $[4] = employee;
1965
+ $[5] = now;
1966
+ $[6] = props;
1967
+ $[7] = renderLink;
1968
+ $[8] = t1;
1969
+ } else t1 = $[8];
1970
+ return t1;
1971
+ }
1972
+ function ManagerOfficeWorkSection(t0) {
1973
+ const $ = c(14);
1974
+ let className;
1975
+ let props;
1976
+ if ($[0] !== t0) {
1977
+ ({className, ...props} = t0);
1978
+ $[0] = t0;
1979
+ $[1] = className;
1980
+ $[2] = props;
1981
+ } else {
1982
+ className = $[1];
1983
+ props = $[2];
1984
+ }
1985
+ const employee = useEmployee();
1986
+ const { renderLink, now } = useOffice();
1987
+ let t1;
1988
+ if ($[3] !== className) {
1989
+ t1 = cx("manager-office__section", className);
1990
+ $[3] = className;
1991
+ $[4] = t1;
1992
+ } else t1 = $[4];
1993
+ let t2;
1994
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
1995
+ t2 = /* @__PURE__ */ jsx("header", {
1996
+ className: "manager-office__section-header",
1997
+ children: /* @__PURE__ */ jsxs("h2", {
1998
+ className: "manager-office__section-title",
1999
+ children: [/* @__PURE__ */ jsx(MessageSquareIcon, {}), "Work"]
2000
+ })
2001
+ });
2002
+ $[5] = t2;
2003
+ } else t2 = $[5];
2004
+ let t3;
2005
+ if ($[6] !== employee || $[7] !== now || $[8] !== renderLink) {
2006
+ t3 = /* @__PURE__ */ jsx("div", {
2007
+ className: "manager-office__section-content",
2008
+ children: employee.work.length ? /* @__PURE__ */ jsx("ul", {
2009
+ className: "manager-office__work-list sigvelo-stack-list",
2010
+ children: employee.work.map((work) => /* @__PURE__ */ jsx("li", { children: workingSetOf(work).length ? /* @__PURE__ */ jsx(WorkLane, {
2011
+ employee,
2012
+ now,
2013
+ renderLink,
2014
+ work
2015
+ }) : /* @__PURE__ */ jsx(WorkLink, {
2016
+ employee,
2017
+ now,
2018
+ placement: "row",
2019
+ renderLink,
2020
+ showEmployee: false,
2021
+ work
2022
+ }) }, work.id))
2023
+ }) : /* @__PURE__ */ jsx("p", {
2024
+ className: "manager-office__section-empty",
2025
+ children: "No work yet."
2026
+ })
2027
+ });
2028
+ $[6] = employee;
2029
+ $[7] = now;
2030
+ $[8] = renderLink;
2031
+ $[9] = t3;
2032
+ } else t3 = $[9];
2033
+ let t4;
2034
+ if ($[10] !== props || $[11] !== t1 || $[12] !== t3) {
2035
+ t4 = /* @__PURE__ */ jsxs("section", {
2036
+ ...props,
2037
+ className: t1,
2038
+ children: [t2, t3]
2039
+ });
2040
+ $[10] = props;
2041
+ $[11] = t1;
2042
+ $[12] = t3;
2043
+ $[13] = t4;
2044
+ } else t4 = $[13];
2045
+ return t4;
2046
+ }
2047
+ function ManagerOfficeSchedules(t0) {
2048
+ const $ = c(14);
2049
+ let className;
2050
+ let props;
2051
+ if ($[0] !== t0) {
2052
+ ({className, ...props} = t0);
2053
+ $[0] = t0;
2054
+ $[1] = className;
2055
+ $[2] = props;
2056
+ } else {
2057
+ className = $[1];
2058
+ props = $[2];
2059
+ }
2060
+ const employee = useEmployee();
2061
+ const { renderLink } = useOffice();
2062
+ let t1;
2063
+ if ($[3] !== className) {
2064
+ t1 = cx("manager-office__section", className);
2065
+ $[3] = className;
2066
+ $[4] = t1;
2067
+ } else t1 = $[4];
2068
+ let t2;
2069
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
2070
+ t2 = /* @__PURE__ */ jsx(Collapsible.Trigger, { unstyled: true });
2071
+ $[5] = t2;
2072
+ } else t2 = $[5];
2073
+ let t3;
2074
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
2075
+ t3 = /* @__PURE__ */ jsxs(Button, {
2076
+ render: t2,
2077
+ type: "button",
2078
+ variant: "ghost",
2079
+ color: "neutral",
2080
+ size: "sm",
2081
+ className: "manager-office__schedule-trigger",
2082
+ children: [/* @__PURE__ */ jsxs("span", {
2083
+ className: "manager-office__identity",
2084
+ children: [/* @__PURE__ */ jsx(CalendarIcon, {}), /* @__PURE__ */ jsx("strong", { children: "Schedules" })]
2085
+ }), /* @__PURE__ */ jsx(ChevronDownIcon, { className: "sigvelo-disclosure-chevron" })]
2086
+ });
2087
+ $[6] = t3;
2088
+ } else t3 = $[6];
2089
+ let t4;
2090
+ if ($[7] !== employee || $[8] !== renderLink) {
2091
+ t4 = /* @__PURE__ */ jsxs(Collapsible.Root, {
2092
+ defaultOpen: true,
2093
+ children: [t3, /* @__PURE__ */ jsx(Collapsible.Panel, {
2094
+ unstyled: true,
2095
+ children: employee.schedules.length ? /* @__PURE__ */ jsx("ul", {
2096
+ className: "manager-office__schedule-list sigvelo-stack-list",
2097
+ children: employee.schedules.map((schedule) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(LinkButton, {
2098
+ render: renderLink({
2099
+ kind: "schedule",
2100
+ employee,
2101
+ schedule
2102
+ }),
2103
+ variant: "ghost",
2104
+ color: "neutral",
2105
+ size: "sm",
2106
+ className: "manager-office__schedule-link",
2107
+ children: [
2108
+ schedule.enabled ? /* @__PURE__ */ jsx(CalendarIcon, {}) : /* @__PURE__ */ jsx(PauseIcon, {}),
2109
+ /* @__PURE__ */ jsxs("span", {
2110
+ className: "manager-office__identity",
2111
+ children: [/* @__PURE__ */ jsx("strong", {
2112
+ className: "sigvelo-truncate",
2113
+ children: schedule.name
2114
+ }), /* @__PURE__ */ jsx("small", {
2115
+ className: "sigvelo-truncate",
2116
+ children: scheduleDetail(schedule)
2117
+ })]
2118
+ }),
2119
+ /* @__PURE__ */ jsx(ChevronRightIcon, { className: "manager-office__row-chevron" })
2120
+ ]
2121
+ }) }, schedule.id))
2122
+ }) : /* @__PURE__ */ jsx("p", {
2123
+ className: "manager-office__section-empty",
2124
+ children: "No schedules yet."
2125
+ })
2126
+ })]
2127
+ });
2128
+ $[7] = employee;
2129
+ $[8] = renderLink;
2130
+ $[9] = t4;
2131
+ } else t4 = $[9];
2132
+ let t5;
2133
+ if ($[10] !== props || $[11] !== t1 || $[12] !== t4) {
2134
+ t5 = /* @__PURE__ */ jsx("section", {
2135
+ ...props,
2136
+ className: t1,
2137
+ "aria-label": "Schedules",
2138
+ children: t4
2139
+ });
2140
+ $[10] = props;
2141
+ $[11] = t1;
2142
+ $[12] = t4;
2143
+ $[13] = t5;
2144
+ } else t5 = $[13];
2145
+ return t5;
2146
+ }
2147
+ function ManagerOfficeChannels(t0) {
2148
+ const $ = c(12);
2149
+ let className;
2150
+ let props;
2151
+ if ($[0] !== t0) {
2152
+ ({className, ...props} = t0);
2153
+ $[0] = t0;
2154
+ $[1] = className;
2155
+ $[2] = props;
2156
+ } else {
2157
+ className = $[1];
2158
+ props = $[2];
2159
+ }
2160
+ const employee = useEmployee();
2161
+ let t1;
2162
+ if ($[3] !== className) {
2163
+ t1 = cx("manager-office__section", "manager-office__channels", className);
2164
+ $[3] = className;
2165
+ $[4] = t1;
2166
+ } else t1 = $[4];
2167
+ let t2;
2168
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
2169
+ t2 = /* @__PURE__ */ jsx(AppTopBar.Root, {
2170
+ className: "manager-office__channels-header",
2171
+ "aria-label": "Channels controls",
2172
+ titleAlign: "start",
2173
+ children: /* @__PURE__ */ jsxs(AppTopBar.Title, {
2174
+ className: "manager-office__channels-title",
2175
+ render: /* @__PURE__ */ jsx("h2", { "aria-label": "Channels" }),
2176
+ children: [/* @__PURE__ */ jsx(LinkIcon, { "aria-hidden": "true" }), "Channels"]
2177
+ })
2178
+ });
2179
+ $[5] = t2;
2180
+ } else t2 = $[5];
2181
+ let t3;
2182
+ if ($[6] !== employee.channels) {
2183
+ t3 = /* @__PURE__ */ jsx("div", {
2184
+ className: "manager-office__section-content",
2185
+ children: employee.channels.length ? /* @__PURE__ */ jsx("ul", {
2186
+ className: "manager-office__channel-list sigvelo-stack-list",
2187
+ children: employee.channels.map(_temp3)
2188
+ }) : /* @__PURE__ */ jsx("p", {
2189
+ className: "manager-office__section-empty",
2190
+ children: "Nothing connected yet."
2191
+ })
2192
+ });
2193
+ $[6] = employee.channels;
2194
+ $[7] = t3;
2195
+ } else t3 = $[7];
2196
+ let t4;
2197
+ if ($[8] !== props || $[9] !== t1 || $[10] !== t3) {
2198
+ t4 = /* @__PURE__ */ jsxs("section", {
2199
+ ...props,
2200
+ className: t1,
2201
+ children: [t2, t3]
2202
+ });
2203
+ $[8] = props;
2204
+ $[9] = t1;
2205
+ $[10] = t3;
2206
+ $[11] = t4;
2207
+ } else t4 = $[11];
2208
+ return t4;
2209
+ }
2210
+ function _temp3(channel) {
2211
+ return /* @__PURE__ */ jsx(ChannelRow, { channel }, channel.id);
2212
+ }
2213
+ function ManagerOfficeMain(t0) {
2214
+ const $ = c(11);
2215
+ let t1;
2216
+ let t2;
2217
+ let t3;
2218
+ let t4;
2219
+ let t5;
2220
+ if ($[0] !== t0) {
2221
+ const { render, ref, ...props } = t0;
2222
+ t5 = useRender;
2223
+ t1 = "main";
2224
+ t2 = render;
2225
+ t3 = ref;
2226
+ t4 = mergeProps({ className: "manager-office__main" }, props);
2227
+ $[0] = t0;
2228
+ $[1] = t1;
2229
+ $[2] = t2;
2230
+ $[3] = t3;
2231
+ $[4] = t4;
2232
+ $[5] = t5;
2233
+ } else {
2234
+ t1 = $[1];
2235
+ t2 = $[2];
2236
+ t3 = $[3];
2237
+ t4 = $[4];
2238
+ t5 = $[5];
2239
+ }
2240
+ let t6;
2241
+ if ($[6] !== t1 || $[7] !== t2 || $[8] !== t3 || $[9] !== t4) {
2242
+ t6 = {
2243
+ defaultTagName: t1,
2244
+ render: t2,
2245
+ ref: t3,
2246
+ props: t4
2247
+ };
2248
+ $[6] = t1;
2249
+ $[7] = t2;
2250
+ $[8] = t3;
2251
+ $[9] = t4;
2252
+ $[10] = t6;
2253
+ } else t6 = $[10];
2254
+ return t5(t6);
2255
+ }
2256
+ function ManagerOfficeColumns(t0) {
2257
+ const $ = c(11);
2258
+ let t1;
2259
+ let t2;
2260
+ let t3;
2261
+ let t4;
2262
+ let t5;
2263
+ if ($[0] !== t0) {
2264
+ const { render, ref, ...props } = t0;
2265
+ t5 = useRender;
2266
+ t1 = "div";
2267
+ t2 = render;
2268
+ t3 = ref;
2269
+ t4 = mergeProps({ className: "manager-office__employee-columns" }, props);
2270
+ $[0] = t0;
2271
+ $[1] = t1;
2272
+ $[2] = t2;
2273
+ $[3] = t3;
2274
+ $[4] = t4;
2275
+ $[5] = t5;
2276
+ } else {
2277
+ t1 = $[1];
2278
+ t2 = $[2];
2279
+ t3 = $[3];
2280
+ t4 = $[4];
2281
+ t5 = $[5];
2282
+ }
2283
+ let t6;
2284
+ if ($[6] !== t1 || $[7] !== t2 || $[8] !== t3 || $[9] !== t4) {
2285
+ t6 = {
2286
+ defaultTagName: t1,
2287
+ render: t2,
2288
+ ref: t3,
2289
+ props: t4
2290
+ };
2291
+ $[6] = t1;
2292
+ $[7] = t2;
2293
+ $[8] = t3;
2294
+ $[9] = t4;
2295
+ $[10] = t6;
2296
+ } else t6 = $[10];
2297
+ return t5(t6);
2298
+ }
2299
+ function ManagerOfficeAside(t0) {
2300
+ const $ = c(11);
2301
+ let t1;
2302
+ let t2;
2303
+ let t3;
2304
+ let t4;
2305
+ let t5;
2306
+ if ($[0] !== t0) {
2307
+ const { render, ref, ...props } = t0;
2308
+ t5 = useRender;
2309
+ t1 = "aside";
2310
+ t2 = render;
2311
+ t3 = ref;
2312
+ t4 = mergeProps({ className: "manager-office__employee-aside" }, props);
2313
+ $[0] = t0;
2314
+ $[1] = t1;
2315
+ $[2] = t2;
2316
+ $[3] = t3;
2317
+ $[4] = t4;
2318
+ $[5] = t5;
2319
+ } else {
2320
+ t1 = $[1];
2321
+ t2 = $[2];
2322
+ t3 = $[3];
2323
+ t4 = $[4];
2324
+ t5 = $[5];
2325
+ }
2326
+ let t6;
2327
+ if ($[6] !== t1 || $[7] !== t2 || $[8] !== t3 || $[9] !== t4) {
2328
+ t6 = {
2329
+ defaultTagName: t1,
2330
+ render: t2,
2331
+ ref: t3,
2332
+ props: t4
2333
+ };
2334
+ $[6] = t1;
2335
+ $[7] = t2;
2336
+ $[8] = t3;
2337
+ $[9] = t4;
2338
+ $[10] = t6;
2339
+ } else t6 = $[10];
2340
+ return t5(t6);
2341
+ }
2342
+ /** Honest disconnected state; the host chooses when and where to display it. */
2343
+ function ManagerOfficeConnectionState(t0) {
2344
+ const $ = c(8);
2345
+ const { employee } = t0;
2346
+ let t1;
2347
+ if ($[0] !== employee.status) {
2348
+ t1 = employee.status === "connecting" ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : /* @__PURE__ */ jsx(MonitorIcon, {});
2349
+ $[0] = employee.status;
2350
+ $[1] = t1;
2351
+ } else t1 = $[1];
2352
+ const t2 = employee.name;
2353
+ const t3 = statusLabels[employee.status];
2354
+ let t4;
2355
+ if ($[2] !== t3) {
2356
+ t4 = t3.toLowerCase();
2357
+ $[2] = t3;
2358
+ $[3] = t4;
2359
+ } else t4 = $[3];
2360
+ const t5 = `${t2} is ${t4}`;
2361
+ let t6;
2362
+ if ($[4] !== employee.statusDescription || $[5] !== t1 || $[6] !== t5) {
2363
+ t6 = /* @__PURE__ */ jsx("div", {
2364
+ "data-recipe": "page",
2365
+ children: /* @__PURE__ */ jsx(EmptyState, {
2366
+ icon: t1,
2367
+ title: t5,
2368
+ description: employee.statusDescription
2369
+ })
2370
+ });
2371
+ $[4] = employee.statusDescription;
2372
+ $[5] = t1;
2373
+ $[6] = t5;
2374
+ $[7] = t6;
2375
+ } else t6 = $[7];
2376
+ return t6;
2377
+ }
2378
+ /** Office data and relative-time boundary; hosts compose their shell and routed content. */
2379
+ function ManagerOfficeRoot(t0) {
2380
+ const $ = c(18);
2381
+ const { employees, renderLink, render, ref, ...props } = t0;
2382
+ const [now, setNow] = React.useState(Date.now);
2383
+ let t1;
2384
+ let t2;
2385
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
2386
+ t1 = () => {
2387
+ const interval = window.setInterval(() => setNow(Date.now()), 6e4);
2388
+ return () => window.clearInterval(interval);
2389
+ };
2390
+ t2 = [];
2391
+ $[0] = t1;
2392
+ $[1] = t2;
2393
+ } else {
2394
+ t1 = $[0];
2395
+ t2 = $[1];
2396
+ }
2397
+ React.useEffect(t1, t2);
2398
+ let t3;
2399
+ if ($[2] !== employees) {
2400
+ t3 = rosterProfileColors(employees);
2401
+ $[2] = employees;
2402
+ $[3] = t3;
2403
+ } else t3 = $[3];
2404
+ const profileColors = t3;
2405
+ let t4;
2406
+ if ($[4] !== employees || $[5] !== now || $[6] !== profileColors || $[7] !== renderLink) {
2407
+ t4 = {
2408
+ employees,
2409
+ renderLink,
2410
+ now,
2411
+ profileColors
2412
+ };
2413
+ $[4] = employees;
2414
+ $[5] = now;
2415
+ $[6] = profileColors;
2416
+ $[7] = renderLink;
2417
+ $[8] = t4;
2418
+ } else t4 = $[8];
2419
+ const value = t4;
2420
+ const t5 = "div";
2421
+ const t6 = mergeProps({ className: "manager-office" }, props);
2422
+ let t7;
2423
+ if ($[9] !== ref || $[10] !== render || $[11] !== t6) {
2424
+ t7 = {
2425
+ defaultTagName: t5,
2426
+ render,
2427
+ ref,
2428
+ props: t6
2429
+ };
2430
+ $[9] = ref;
2431
+ $[10] = render;
2432
+ $[11] = t6;
2433
+ $[12] = t7;
2434
+ } else t7 = $[12];
2435
+ const element = useRender(t7);
2436
+ let t8;
2437
+ if ($[13] !== element) {
2438
+ t8 = /* @__PURE__ */ jsx(Tooltip.Provider, { children: element });
2439
+ $[13] = element;
2440
+ $[14] = t8;
2441
+ } else t8 = $[14];
2442
+ let t9;
2443
+ if ($[15] !== t8 || $[16] !== value) {
2444
+ t9 = /* @__PURE__ */ jsx(OfficeContext.Provider, {
2445
+ value,
2446
+ children: t8
2447
+ });
2448
+ $[15] = t8;
2449
+ $[16] = value;
2450
+ $[17] = t9;
2451
+ } else t9 = $[17];
2452
+ return t9;
2453
+ }
2454
+ const ManagerOffice = {
2455
+ Root: ManagerOfficeRoot,
2456
+ Main: ManagerOfficeMain,
2457
+ Attention: ManagerOfficeAttention,
2458
+ Employee: ManagerOfficeEmployeeRoot,
2459
+ EmployeeHeader: ManagerOfficeEmployeeHeader,
2460
+ Handoffs: ManagerOfficeHandoffs,
2461
+ Columns: ManagerOfficeColumns,
2462
+ Aside: ManagerOfficeAside,
2463
+ Work: ManagerOfficeWorkSection,
2464
+ Schedules: ManagerOfficeSchedules,
2465
+ Channels: ManagerOfficeChannels,
2466
+ ConnectionState: ManagerOfficeConnectionState
2467
+ };
2468
+ //#endregion
2469
+ export { ManagerOfficeSidebar as n, ManagerOfficeSidebarAlert as r, ManagerOffice as t };