@mcp-b/react-components 0.70.0 → 0.71.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/AgentComputer-CpS9R2KG.d.ts +305 -0
  2. package/dist/{AgentComputer-CFJxjMFE.js → AgentComputer-CsWDnHwj.js} +1859 -478
  3. package/dist/CommandPalette-DDctKdpC.d.ts +53 -0
  4. package/dist/ComputerCalendar-Z6k_DVJF.js +1360 -0
  5. package/dist/ComputerCustomWallpaper-CnGQYHp0.js +518 -0
  6. package/dist/ComputerCustomWallpaper-D4lgwj2k.d.ts +18 -0
  7. package/dist/ComputerNotifications-q7eeELZ8.d.ts +41 -0
  8. package/dist/ComputerPresentation-BEQKYAjc.js +888 -0
  9. package/dist/{ExecutionResult-C7SzVquo.js → ExecutionResult-CXnGcmM4.js} +1 -1
  10. package/dist/{WorkspaceBrowser-ojoZy0uO.js → WorkspaceBrowser-mRScUczT.js} +5 -5
  11. package/dist/WorkspaceFileTransfer-D2cOoVyO.js +1625 -0
  12. package/dist/{WorkspaceMessageResponse-BoeeltJM.js → WorkspaceMessageResponse-CXGOQgpo.js} +1 -1
  13. package/dist/components/agents-sdk/AgentComputer.d.ts +2 -276
  14. package/dist/components/agents-sdk/AgentComputer.js +1 -1
  15. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  16. package/dist/components/agents-sdk/ComputerAutomations.d.ts +5 -15
  17. package/dist/components/agents-sdk/ComputerAutomations.js +164 -145
  18. package/dist/components/agents-sdk/ComputerCalendar.d.ts +1 -1
  19. package/dist/components/agents-sdk/ComputerCalendar.js +1 -1344
  20. package/dist/components/agents-sdk/ComputerCustomWallpaper.d.ts +2 -39
  21. package/dist/components/agents-sdk/ComputerCustomWallpaper.js +2 -522
  22. package/dist/components/agents-sdk/ComputerFiles.d.ts +18 -81
  23. package/dist/components/agents-sdk/ComputerFiles.js +386 -98
  24. package/dist/components/agents-sdk/ComputerHome.d.ts +6 -11
  25. package/dist/components/agents-sdk/ComputerHome.js +1 -89
  26. package/dist/components/agents-sdk/ComputerHost.d.ts +43 -0
  27. package/dist/components/agents-sdk/ComputerHost.js +97 -0
  28. package/dist/components/agents-sdk/ComputerLayout.d.ts +1 -1
  29. package/dist/components/agents-sdk/ComputerNotifications.d.ts +2 -54
  30. package/dist/components/agents-sdk/ComputerNotifications.js +1 -668
  31. package/dist/components/agents-sdk/ComputerPresentation.d.ts +2 -0
  32. package/dist/components/agents-sdk/ComputerPresentation.js +2 -0
  33. package/dist/components/agents-sdk/ComputerScreen.d.ts +14 -14
  34. package/dist/components/agents-sdk/ComputerScreen.js +109 -50
  35. package/dist/components/agents-sdk/ComputerSettings.d.ts +12 -40
  36. package/dist/components/agents-sdk/ComputerSettings.js +249 -1038
  37. package/dist/components/agents-sdk/ComputerSpotlight.d.ts +13 -15
  38. package/dist/components/agents-sdk/ComputerSpotlight.js +1 -231
  39. package/dist/components/agents-sdk/ComputerViewer.d.ts +13 -17
  40. package/dist/components/agents-sdk/ComputerViewer.js +176 -187
  41. package/dist/components/agents-sdk/ComputerWallpapers.d.ts +1 -1
  42. package/dist/components/agents-sdk/EmployeeChat.js +2 -2
  43. package/dist/components/agents-sdk/EmployeeChrome.js +3 -3
  44. package/dist/components/agents-sdk/EmployeeSchedules.js +2 -2
  45. package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
  46. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  47. package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
  48. package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
  49. package/dist/components/agents-sdk/ThinkChat.js +1 -1
  50. package/dist/components/agents-sdk/ThinkChatToolPanels.js +3 -3
  51. package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
  52. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +2 -2
  53. package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
  54. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +1 -1
  55. package/dist/components/agents-sdk/ThinkScheduleDetail.js +4 -4
  56. package/dist/components/agents-sdk/ThinkScheduleForm.js +3 -3
  57. package/dist/components/agents-sdk/WorkspaceAutomation.js +3 -3
  58. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
  59. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  60. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -5
  61. package/dist/components/agents-sdk/WorkspaceDesktop.js +53 -41
  62. package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -3
  63. package/dist/components/agents-sdk/WorkspaceFileCommands.js +1 -924
  64. package/dist/components/agents-sdk/WorkspaceFileDetails.js +1 -1
  65. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +1 -504
  66. package/dist/components/agents-sdk/WorkspaceFileView.js +6 -6
  67. package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
  68. package/dist/components/agents-sdk/WorkspaceLive.d.ts +9 -0
  69. package/dist/components/agents-sdk/WorkspaceLive.js +2 -177
  70. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  71. package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
  72. package/dist/components/ai-sdk/Context.js +1 -1
  73. package/dist/components/ai-sdk/PromptInput.js +1 -1
  74. package/dist/components/extension/FirstRunSetup.js +2 -2
  75. package/dist/components/foundations/ThemeProvider.d.ts +2 -0
  76. package/dist/components/foundations/ThemeProvider.js +2 -1
  77. package/dist/components/general-purpose/CommandPalette.d.ts +2 -52
  78. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  79. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -2
  80. package/dist/components/nanites/AgentConnection.js +1 -1
  81. package/dist/components/nanites/AgentToolDetail.js +1 -1
  82. package/dist/context-BWJpR084.js +94 -0
  83. package/dist/{parts-CPVz9l31.js → parts-BFK5iocu.js} +1 -1
  84. package/dist/styles/agent-computer.css +16 -0
  85. package/dist/styles/computer-files.css +5 -0
  86. package/dist/styles/computer-notifications.css +1 -0
  87. package/dist/{workspace-drag-B6hMXUNt.js → workspace-drag-BNhZIN8F.js} +1 -1
  88. package/dist/{workspace-quick-look-DODjsfhH.js → workspace-quick-look-8cbGu1Xf.js} +2 -2
  89. package/package.json +2 -2
  90. package/dist/WallpaperPicker-C-FItmDS.d.ts +0 -34
  91. package/dist/automations-host-DPORjdc7.js +0 -17
  92. package/dist/context-Ddsp8HgD.js +0 -43
  93. package/dist/minute-clock-CXpRGCMF.js +0 -35
  94. package/dist/{Context-DQDumCV8.js → Context-CYUxZrwW.js} +1 -1
  95. package/dist/{ManagerOffice-kSK7vTBl.js → ManagerOffice-BJ2vs-Lr.js} +2 -2
  96. package/dist/{WorkspaceLink-DK9kdMUH.js → WorkspaceLink-DDkj-Tq5.js} +1 -1
@@ -1,6 +1,6 @@
1
1
  import { desktopArtwork } from "./utils/desktop-artwork.js";
2
2
  import { t as cx } from "./class-names-BiMDVpUo.js";
3
- import { U as MinusIcon, W as MonitorIcon, gt as XIcon, h as ChevronLeftIcon, mt as WarningIcon, p as CheckIcon, z as MaximizeIcon } from "./icons-nLTnB9kd.js";
3
+ import { N as KeyboardIcon, U as MinusIcon, W as MonitorIcon, c as BellIcon, g as ChevronRightIcon, gt as XIcon, h as ChevronLeftIcon, ht as WrenchIcon, mt as WarningIcon, p as CheckIcon, tt as SearchIcon, z as MaximizeIcon } from "./icons-nLTnB9kd.js";
4
4
  import { a as formatErrorMessage, n as clamp } from "./format-DL7f2rqp.js";
5
5
  import { Button } from "./components/foundations/Button.js";
6
6
  import { Tooltip } from "./components/foundations/Tooltip.js";
@@ -8,17 +8,26 @@ import { IconButton } from "./components/foundations/IconButton.js";
8
8
  import { r as useMergedRefs } from "./merge-refs-DTX97mLp.js";
9
9
  import { AppIcon } from "./components/foundations/AppIcon.js";
10
10
  import { Menu } from "./components/foundations/Menu.js";
11
- import { n as readWorkspaceDrop, t as WORKSPACE_DRAG_TYPE } from "./workspace-drag-B6hMXUNt.js";
12
- import { COMPUTER_WALLPAPERS, DEFAULT_COMPUTER_WALLPAPER } from "./components/agents-sdk/ComputerWallpapers.js";
11
+ import { n as readWorkspaceDrop, t as WORKSPACE_DRAG_TYPE } from "./workspace-drag-BNhZIN8F.js";
13
12
  import { AppFrame } from "./components/general-purpose/AppFrame.js";
14
13
  import { t as motionIsReduced } from "./motion-preferences-6qsDIDvH.js";
15
14
  import { a as project, c as scrubTiming, d as trackVelocity, i as fly, l as settle, n as cssEasing, o as rubberBand, r as cssNumber, s as scrub, t as cssDuration, u as supportsScopedViewTransitions } from "./motion-CGM3i6lX.js";
16
15
  import { n as rootRem } from "./container-width-C43ccJ84.js";
17
- import { a as WindowActiveContext, c as useComputerSlice, i as PortalContext, n as ComputerContext, o as WindowContext, r as HandlersContext, s as useComputer, t as ActionsContext } from "./context-Ddsp8HgD.js";
16
+ import { a as HandlersContext, c as PortalContext, d as WindowContext, g as usePresentation, h as useComputerSlice, i as ComputerContext, l as PresentationContext, n as AppHostsContext, o as HostContext, p as useComputer, r as AppearanceContext, t as ActionsContext, u as WindowActiveContext } from "./context-BWJpR084.js";
17
+ import { n as useComputerWallpaper } from "./ComputerCustomWallpaper-CnGQYHp0.js";
18
+ import { COMPUTER_APP_IDS } from "./components/agents-sdk/ComputerAppIds.js";
19
+ import { l as arrangeDock, t as DEFAULT_COMPUTER_PRESENTATION } from "./ComputerPresentation-BEQKYAjc.js";
20
+ import { Popover } from "./components/foundations/Popover.js";
21
+ import { Toast } from "./components/foundations/Toast.js";
22
+ import { ThemeContext } from "./components/foundations/ThemeProvider.js";
23
+ import { ThemeModeControl } from "./components/general-purpose/ThemeModeControl.js";
24
+ import { CommandPalette } from "./components/general-purpose/CommandPalette.js";
25
+ import { ComputerViewerToggle } from "./components/agents-sdk/ComputerViewer.js";
18
26
  import { Menubar } from "./components/foundations/Menubar.js";
19
27
  import { EmptyState } from "./components/foundations/EmptyState.js";
20
28
  import { c } from "react/compiler-runtime";
21
29
  import * as React from "react";
30
+ import { use, useEffect, useRef, useState } from "react";
22
31
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
23
32
  import { createPortal, flushSync } from "react-dom";
24
33
  //#region src/components/_internal/agent-computer/dock-flights.ts
@@ -926,7 +935,8 @@ var ComputerStore = class {
926
935
  expose: null,
927
936
  attention: [],
928
937
  agentSteps: /* @__PURE__ */ new Map(),
929
- dragging: false
938
+ dragging: false,
939
+ spotlight: false
930
940
  };
931
941
  }
932
942
  subscribe = (listener) => {
@@ -1017,6 +1027,7 @@ var ComputerStore = class {
1017
1027
  this.requested = id;
1018
1028
  this.onActiveAppChange?.(id);
1019
1029
  }
1030
+ setSpotlight = (spotlight) => this.set({ spotlight });
1020
1031
  setPhone(phone) {
1021
1032
  this.set({ phone });
1022
1033
  }
@@ -2014,7 +2025,10 @@ function attribute(element) {
2014
2025
  */
2015
2026
  var WindowActions = class extends PhoneMotion {
2016
2027
  /** One actions object for the computer's lifetime: reading it renders nothing. */
2017
- actions = { openApp: (id, options) => this.openApp(id, options) };
2028
+ actions = {
2029
+ openApp: (id, options) => this.openApp(id, options),
2030
+ openSpotlight: () => this.setSpotlight(true)
2031
+ };
2018
2032
  exits = /* @__PURE__ */ new Map();
2019
2033
  placements = /* @__PURE__ */ new Map();
2020
2034
  pendingQuits = /* @__PURE__ */ new Set();
@@ -2036,19 +2050,20 @@ var WindowActions = class extends PhoneMotion {
2036
2050
  this.onActiveAppChange = onActiveAppChange;
2037
2051
  this.onLayoutChange = onLayoutChange;
2038
2052
  const state = this.state;
2039
- if (selected === state.selected && (apps === state.apps || sameApps(apps, state.apps))) return;
2053
+ const raise = selected != null && selected === state.selected && this.requested === void 0 && apps.some((app) => app.id === selected) && (!state.openIds.includes(selected) || state.closedIds.includes(selected) || state.minimized.some((entry) => entry.id === selected));
2054
+ if (!raise && selected === state.selected && (apps === state.apps || sameApps(apps, state.apps))) return;
2040
2055
  const previous = state.selected;
2041
2056
  const patch = {
2042
2057
  apps,
2043
2058
  selected
2044
2059
  };
2045
- if (selected && selected !== previous) patch.frontApp = null;
2046
- if (selected !== previous) {
2060
+ if (selected && (selected !== previous || raise)) patch.frontApp = null;
2061
+ if (selected !== previous || raise) {
2047
2062
  const { stack, back } = derive({
2048
2063
  ...state,
2049
2064
  apps
2050
2065
  });
2051
- if (!(selected === null ? state.home || state.inspecting : selected === stack[stack.length - 1 - back])) {
2066
+ if (!(selected === null ? state.home || state.inspecting : !raise && selected === stack[stack.length - 1 - back])) {
2052
2067
  if (selected && apps.some((app) => app.id === selected)) {
2053
2068
  patch.openIds = [...without(state.openIds, selected), selected];
2054
2069
  patch.minimized = withoutWindow(state.minimized, selected);
@@ -3066,8 +3081,8 @@ function clearExpose(element) {
3066
3081
  function ShellExpose() {
3067
3082
  const $ = c(24);
3068
3083
  const computer = useComputer();
3069
- const expose = useComputerSlice(_temp$6);
3070
- const apps = useComputerSlice(_temp2$4);
3084
+ const expose = useComputerSlice(_temp$9);
3085
+ const apps = useComputerSlice(_temp2$7);
3071
3086
  const layer = React.useRef(null);
3072
3087
  const open = expose !== null;
3073
3088
  let t0;
@@ -3168,7 +3183,7 @@ function ShellExpose() {
3168
3183
  className: "agent-computer__expose",
3169
3184
  role: "group",
3170
3185
  "aria-label": t3,
3171
- onMouseDown: _temp3$4,
3186
+ onMouseDown: _temp3$6,
3172
3187
  onClick: t4,
3173
3188
  onKeyDown: t5,
3174
3189
  children: t6
@@ -3181,13 +3196,13 @@ function ShellExpose() {
3181
3196
  } else t7 = $[23];
3182
3197
  return t7;
3183
3198
  }
3184
- function _temp3$4(event) {
3199
+ function _temp3$6(event) {
3185
3200
  if (event.target === event.currentTarget) event.preventDefault();
3186
3201
  }
3187
- function _temp2$4(c_0) {
3202
+ function _temp2$7(c_0) {
3188
3203
  return c_0.getState().apps;
3189
3204
  }
3190
- function _temp$6(c) {
3205
+ function _temp$9(c) {
3191
3206
  return c.getState().expose;
3192
3207
  }
3193
3208
  function ExposeTarget(t0) {
@@ -3437,6 +3452,11 @@ var ComputerController = class extends ExposeActions {
3437
3452
  lastLaidOut;
3438
3453
  lastPainted;
3439
3454
  /**
3455
+ * Where focus goes when a desktop Quick Look closes after the desktop was
3456
+ * covered: the key window, else Home's first launcher, else the desktop.
3457
+ */
3458
+ previewFallbackFocus = () => [...this.root?.querySelectorAll("[data-slot=\"computer-window\"][data-active], .computer-home__launcher, .workspace-desktop") ?? []].find((element) => element.getClientRects().length > 0 && !element.closest("[inert]") && getComputedStyle(element).visibility === "visible") ?? null;
3459
+ /**
3440
3460
  * The shell's layout effects, after each commit and in this order: each
3441
3461
  * runs when a field it reads changed since the last commit, or on mount.
3442
3462
  * Flights measure between two layouts, then focus settles.
@@ -3597,6 +3617,1234 @@ function changes(last, next) {
3597
3617
  return (...keys) => !last || keys.some((key) => key === "activeId" || key === "homeShown" ? last.view[key] !== next.view[key] : last.state[key] !== next.state[key]);
3598
3618
  }
3599
3619
  //#endregion
3620
+ //#region src/components/_internal/agent-computer/presentation.ts
3621
+ /**
3622
+ * The computer's presentation, owned here and reported whole to the host on
3623
+ * every change: the controller reports the layout, Settings the wallpaper and
3624
+ * Dock, and Files each folder's view.
3625
+ */
3626
+ var PresentationStore = class {
3627
+ presentation;
3628
+ listeners = /* @__PURE__ */ new Set();
3629
+ onChange;
3630
+ /** Takes the host's latest `onPresentationChange`, from a layout effect. */
3631
+ receive(onChange) {
3632
+ this.onChange = onChange;
3633
+ }
3634
+ constructor(presentation) {
3635
+ this.presentation = presentation;
3636
+ }
3637
+ subscribe = (listener) => {
3638
+ this.listeners.add(listener);
3639
+ return () => {
3640
+ this.listeners.delete(listener);
3641
+ };
3642
+ };
3643
+ get = () => this.presentation;
3644
+ update(patch) {
3645
+ this.presentation = {
3646
+ ...this.presentation,
3647
+ ...patch
3648
+ };
3649
+ for (const listener of this.listeners) listener();
3650
+ this.onChange?.(this.presentation);
3651
+ }
3652
+ setLayout = (layout) => this.update({ layout });
3653
+ /** Records one folder's view, keeping the most recently arranged {@link MAX_FOLDER_VIEWS}. */
3654
+ setFolderView(path, view) {
3655
+ const { [path]: _replaced, ...rest } = this.presentation.folders;
3656
+ const kept = Object.entries(rest).slice(-199);
3657
+ this.update({ folders: Object.fromEntries([...kept, [path, view]]) });
3658
+ }
3659
+ };
3660
+ //#endregion
3661
+ //#region src/components/_internal/computer-apps/minute-clock.ts
3662
+ /** The instant `now` reads, read again on each minute boundary. */
3663
+ function useMinuteClock(now) {
3664
+ const $ = c(3);
3665
+ const [instant, setInstant] = useState(now);
3666
+ let t0;
3667
+ let t1;
3668
+ if ($[0] !== now) {
3669
+ t0 = () => {
3670
+ let timer;
3671
+ const schedule = (current) => {
3672
+ timer = setTimeout(() => {
3673
+ const next = now();
3674
+ setInstant(next);
3675
+ schedule(next);
3676
+ }, 6e4 - current % 6e4);
3677
+ };
3678
+ schedule(now());
3679
+ return () => clearTimeout(timer);
3680
+ };
3681
+ t1 = [now];
3682
+ $[0] = now;
3683
+ $[1] = t0;
3684
+ $[2] = t1;
3685
+ } else {
3686
+ t0 = $[1];
3687
+ t1 = $[2];
3688
+ }
3689
+ useEffect(t0, t1);
3690
+ return instant;
3691
+ }
3692
+ //#endregion
3693
+ //#region src/components/agents-sdk/ComputerNotifications.tsx
3694
+ /** The `ComputerHost`'s clock: its instant and its zone, the reader's own by default. */
3695
+ function useComputerClock() {
3696
+ const clock = use(HostContext)?.clock;
3697
+ return {
3698
+ now: clock?.now ?? Date.now,
3699
+ timeZone: clock?.timeZone
3700
+ };
3701
+ }
3702
+ /** The source line every notification leads with: its app and when it arrived. */
3703
+ function NotificationSource(t0) {
3704
+ const $ = c(13);
3705
+ const { item } = t0;
3706
+ const { timeZone } = useComputerClock();
3707
+ let t1;
3708
+ if ($[0] !== timeZone) {
3709
+ t1 = new Intl.DateTimeFormat(void 0, {
3710
+ hour: "numeric",
3711
+ minute: "2-digit",
3712
+ timeZone
3713
+ });
3714
+ $[0] = timeZone;
3715
+ $[1] = t1;
3716
+ } else t1 = $[1];
3717
+ const timeOfDay = t1;
3718
+ const t2 = item.source;
3719
+ let t3;
3720
+ if ($[2] !== item.at) {
3721
+ t3 = new Date(item.at).toISOString();
3722
+ $[2] = item.at;
3723
+ $[3] = t3;
3724
+ } else t3 = $[3];
3725
+ let t4;
3726
+ if ($[4] !== item.at || $[5] !== timeOfDay) {
3727
+ t4 = timeOfDay.format(item.at);
3728
+ $[4] = item.at;
3729
+ $[5] = timeOfDay;
3730
+ $[6] = t4;
3731
+ } else t4 = $[6];
3732
+ let t5;
3733
+ if ($[7] !== t3 || $[8] !== t4) {
3734
+ t5 = /* @__PURE__ */ jsx("time", {
3735
+ dateTime: t3,
3736
+ children: t4
3737
+ });
3738
+ $[7] = t3;
3739
+ $[8] = t4;
3740
+ $[9] = t5;
3741
+ } else t5 = $[9];
3742
+ let t6;
3743
+ if ($[10] !== item.source || $[11] !== t5) {
3744
+ t6 = /* @__PURE__ */ jsxs("span", {
3745
+ className: "computer-notifications__source",
3746
+ children: [t2, t5]
3747
+ });
3748
+ $[10] = item.source;
3749
+ $[11] = t5;
3750
+ $[12] = t6;
3751
+ } else t6 = $[12];
3752
+ return t6;
3753
+ }
3754
+ /**
3755
+ * Banners keep clear of keyboard focus: one that would cover the focused
3756
+ * control steps down below it until focus moves on, so a toolbar or a first
3757
+ * row under the top-right corner stays visible while it is being used.
3758
+ */
3759
+ function useBannersYieldToFocus(element) {
3760
+ const $ = c(3);
3761
+ let t0;
3762
+ let t1;
3763
+ if ($[0] !== element) {
3764
+ t0 = () => {
3765
+ if (!element) return;
3766
+ const viewport = element;
3767
+ const doc = viewport.ownerDocument;
3768
+ let shift = 0;
3769
+ const place = function place(event) {
3770
+ const target = event.target;
3771
+ if (!(target instanceof Element) || viewport.contains(target)) return;
3772
+ const banners = [...viewport.querySelectorAll("[data-slot=\"toast\"]")].map(_temp$8);
3773
+ let next = 0;
3774
+ if (banners.length && target.matches(":focus-visible")) {
3775
+ const top = Math.min(...banners.map(_temp2$6)) - shift;
3776
+ const bottom = Math.max(...banners.map(_temp3$5)) - shift;
3777
+ const left = Math.min(...banners.map(_temp4$5));
3778
+ const right = Math.max(...banners.map(_temp5$3));
3779
+ const focus = target.getBoundingClientRect();
3780
+ if (focus.height < bottom - top && focus.bottom > top && focus.top < bottom && focus.right > left && focus.left < right) next = Math.ceil(focus.bottom - top) + 8;
3781
+ }
3782
+ if (next === shift) return;
3783
+ shift = next;
3784
+ viewport.style.setProperty("--notifications-banner-yield", `${shift}px`);
3785
+ };
3786
+ doc.addEventListener("focusin", place);
3787
+ return () => doc.removeEventListener("focusin", place);
3788
+ };
3789
+ t1 = [element];
3790
+ $[0] = element;
3791
+ $[1] = t0;
3792
+ $[2] = t1;
3793
+ } else {
3794
+ t0 = $[1];
3795
+ t1 = $[2];
3796
+ }
3797
+ useEffect(t0, t1);
3798
+ }
3799
+ function _temp5$3(box_2) {
3800
+ return box_2.right;
3801
+ }
3802
+ function _temp4$5(box_1) {
3803
+ return box_1.left;
3804
+ }
3805
+ function _temp3$5(box_0) {
3806
+ return box_0.bottom;
3807
+ }
3808
+ function _temp2$6(box) {
3809
+ return box.top;
3810
+ }
3811
+ function _temp$8(banner) {
3812
+ return banner.getBoundingClientRect();
3813
+ }
3814
+ function NotificationBanners(t0) {
3815
+ const $ = c(22);
3816
+ const { items, centerOpen } = t0;
3817
+ const manager = Toast.useToastManager();
3818
+ const container = useAgentComputerPortalContainer();
3819
+ let t1;
3820
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
3821
+ t1 = /* @__PURE__ */ new Set();
3822
+ $[0] = t1;
3823
+ } else t1 = $[0];
3824
+ const announced = useRef(t1);
3825
+ const [viewport, setViewport] = useState(null);
3826
+ useBannersYieldToFocus(viewport);
3827
+ let t2;
3828
+ let t3;
3829
+ if ($[1] !== items || $[2] !== manager) {
3830
+ t2 = () => {
3831
+ for (const item of items) {
3832
+ if (announced.current.has(item.id)) continue;
3833
+ announced.current.add(item.id);
3834
+ manager.add({
3835
+ id: item.id,
3836
+ title: item.title,
3837
+ description: item.body,
3838
+ timeout: 8e3
3839
+ });
3840
+ }
3841
+ for (const toast of manager.toasts) {
3842
+ const item_0 = items.find((candidate) => candidate.id === toast.id);
3843
+ if (!item_0 && !toast.transitionStatus) manager.close(toast.id);
3844
+ else if (item_0 && toast.transitionStatus !== "ending" && (toast.title !== item_0.title || toast.description !== item_0.body)) manager.update(toast.id, {
3845
+ title: item_0.title,
3846
+ description: item_0.body
3847
+ });
3848
+ }
3849
+ };
3850
+ t3 = [items, manager];
3851
+ $[1] = items;
3852
+ $[2] = manager;
3853
+ $[3] = t2;
3854
+ $[4] = t3;
3855
+ } else {
3856
+ t2 = $[3];
3857
+ t3 = $[4];
3858
+ }
3859
+ useEffect(t2, t3);
3860
+ let t4;
3861
+ let t5;
3862
+ if ($[5] !== container || $[6] !== manager) {
3863
+ t4 = () => {
3864
+ const computer = container?.closest("[data-slot=\"agent-computer\"]");
3865
+ if (!computer) return;
3866
+ const retract = (event) => {
3867
+ if (!computer.matches("[data-phone]")) return;
3868
+ if (event.target.closest(".computer-notifications__banners")) return;
3869
+ manager.close();
3870
+ };
3871
+ computer.addEventListener("pointerdown", retract, true);
3872
+ return () => computer.removeEventListener("pointerdown", retract, true);
3873
+ };
3874
+ t5 = [container, manager];
3875
+ $[5] = container;
3876
+ $[6] = manager;
3877
+ $[7] = t4;
3878
+ $[8] = t5;
3879
+ } else {
3880
+ t4 = $[7];
3881
+ t5 = $[8];
3882
+ }
3883
+ useEffect(t4, t5);
3884
+ let t6;
3885
+ let t7;
3886
+ if ($[9] !== centerOpen || $[10] !== manager) {
3887
+ t6 = () => {
3888
+ if (!centerOpen) return;
3889
+ for (const toast_0 of manager.toasts) if (toast_0.transitionStatus !== "ending") manager.close(toast_0.id);
3890
+ };
3891
+ t7 = [centerOpen, manager];
3892
+ $[9] = centerOpen;
3893
+ $[10] = manager;
3894
+ $[11] = t6;
3895
+ $[12] = t7;
3896
+ } else {
3897
+ t6 = $[11];
3898
+ t7 = $[12];
3899
+ }
3900
+ useEffect(t6, t7);
3901
+ let t8;
3902
+ if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
3903
+ t8 = {
3904
+ x: 0,
3905
+ y: 0
3906
+ };
3907
+ $[13] = t8;
3908
+ } else t8 = $[13];
3909
+ const press = useRef(t8);
3910
+ let t9;
3911
+ if ($[14] !== items || $[15] !== manager) {
3912
+ t9 = manager.toasts.map((toast_1) => {
3913
+ const item_1 = items.find((candidate_0) => candidate_0.id === toast_1.id);
3914
+ if (!item_1) return null;
3915
+ return /* @__PURE__ */ jsxs(Toast.Root, {
3916
+ toast: toast_1,
3917
+ swipeDirection: ["up", "right"],
3918
+ children: [/* @__PURE__ */ jsxs(Toast.Content, {
3919
+ className: "computer-notifications__card",
3920
+ onPointerDown: (event_0) => {
3921
+ press.current = {
3922
+ x: event_0.clientX,
3923
+ y: event_0.clientY
3924
+ };
3925
+ },
3926
+ onClick: (event_1) => {
3927
+ if (event_1.target.closest("button")) return;
3928
+ const moved = Math.hypot(event_1.clientX - press.current.x, event_1.clientY - press.current.y);
3929
+ if (event_1.detail !== 0 && moved > 8) return;
3930
+ event_1.currentTarget.querySelector("[data-slot=\"toast-action\"]")?.click();
3931
+ },
3932
+ children: [/* @__PURE__ */ jsx(AppIcon.Root, {
3933
+ size: "md",
3934
+ "aria-hidden": "true",
3935
+ children: item_1.icon
3936
+ }), /* @__PURE__ */ jsxs("span", {
3937
+ className: "computer-notifications__copy",
3938
+ children: [
3939
+ /* @__PURE__ */ jsx(NotificationSource, { item: item_1 }),
3940
+ /* @__PURE__ */ jsx(Toast.Title, {
3941
+ className: "computer-notifications__title",
3942
+ children: item_1.title
3943
+ }),
3944
+ /* @__PURE__ */ jsx(Toast.Description, {
3945
+ className: "computer-notifications__body",
3946
+ children: item_1.body
3947
+ }),
3948
+ /* @__PURE__ */ jsx(Toast.Action, {
3949
+ render: /* @__PURE__ */ jsx("button", { type: "button" }),
3950
+ className: "computer-notifications__action",
3951
+ onClick: (event_2) => {
3952
+ const banner = event_2.currentTarget.closest("[data-slot=\"toast\"]");
3953
+ manager.close(toast_1.id);
3954
+ item_1.onOpen(banner);
3955
+ },
3956
+ children: item_1.action
3957
+ })
3958
+ ]
3959
+ })]
3960
+ }), /* @__PURE__ */ jsx(Toast.Close, { label: `Dismiss ${item_1.title} banner` })]
3961
+ }, toast_1.id);
3962
+ });
3963
+ $[14] = items;
3964
+ $[15] = manager;
3965
+ $[16] = t9;
3966
+ } else t9 = $[16];
3967
+ let t10;
3968
+ if ($[17] !== t9) {
3969
+ t10 = /* @__PURE__ */ jsx(Toast.Viewport, {
3970
+ ref: setViewport,
3971
+ position: "top-end",
3972
+ className: "computer-notifications__banners",
3973
+ children: t9
3974
+ });
3975
+ $[17] = t9;
3976
+ $[18] = t10;
3977
+ } else t10 = $[18];
3978
+ let t11;
3979
+ if ($[19] !== container || $[20] !== t10) {
3980
+ t11 = /* @__PURE__ */ jsx(Toast.Portal, {
3981
+ container,
3982
+ children: t10
3983
+ });
3984
+ $[19] = container;
3985
+ $[20] = t10;
3986
+ $[21] = t11;
3987
+ } else t11 = $[21];
3988
+ return t11;
3989
+ }
3990
+ /**
3991
+ * The menu bar's date and time, as macOS ends its status items: "Mon Sep 7
3992
+ * 9:41 AM", in a `<time>` with the instant shown, ticking on the minute, on
3993
+ * the `ComputerHost`'s clock. `ComputerNotifications` draws it.
3994
+ */
3995
+ function ComputerClock() {
3996
+ const $ = c(23);
3997
+ const { now, timeZone } = useComputerClock();
3998
+ const instant = useMinuteClock(now);
3999
+ let t0;
4000
+ if ($[0] !== timeZone) {
4001
+ t0 = new Intl.DateTimeFormat(void 0, {
4002
+ weekday: "short",
4003
+ month: "short",
4004
+ day: "numeric",
4005
+ timeZone
4006
+ });
4007
+ $[0] = timeZone;
4008
+ $[1] = t0;
4009
+ } else t0 = $[1];
4010
+ let t1;
4011
+ if ($[2] !== timeZone) {
4012
+ t1 = new Intl.DateTimeFormat(void 0, {
4013
+ hour: "numeric",
4014
+ minute: "2-digit",
4015
+ timeZone
4016
+ });
4017
+ $[2] = timeZone;
4018
+ $[3] = t1;
4019
+ } else t1 = $[3];
4020
+ let t2;
4021
+ if ($[4] !== t0 || $[5] !== t1) {
4022
+ t2 = [t0, t1];
4023
+ $[4] = t0;
4024
+ $[5] = t1;
4025
+ $[6] = t2;
4026
+ } else t2 = $[6];
4027
+ const [date, time] = t2;
4028
+ let t3;
4029
+ if ($[7] !== instant) {
4030
+ t3 = new Date(instant).toISOString();
4031
+ $[7] = instant;
4032
+ $[8] = t3;
4033
+ } else t3 = $[8];
4034
+ let t4;
4035
+ if ($[9] !== date || $[10] !== instant) {
4036
+ t4 = date.format(instant).replace(",", "");
4037
+ $[9] = date;
4038
+ $[10] = instant;
4039
+ $[11] = t4;
4040
+ } else t4 = $[11];
4041
+ let t5;
4042
+ if ($[12] !== t4) {
4043
+ t5 = /* @__PURE__ */ jsx("span", { children: t4 });
4044
+ $[12] = t4;
4045
+ $[13] = t5;
4046
+ } else t5 = $[13];
4047
+ let t6;
4048
+ if ($[14] !== instant || $[15] !== time) {
4049
+ t6 = time.format(instant);
4050
+ $[14] = instant;
4051
+ $[15] = time;
4052
+ $[16] = t6;
4053
+ } else t6 = $[16];
4054
+ let t7;
4055
+ if ($[17] !== t6) {
4056
+ t7 = /* @__PURE__ */ jsx("span", { children: t6 });
4057
+ $[17] = t6;
4058
+ $[18] = t7;
4059
+ } else t7 = $[18];
4060
+ let t8;
4061
+ if ($[19] !== t3 || $[20] !== t5 || $[21] !== t7) {
4062
+ t8 = /* @__PURE__ */ jsxs("time", {
4063
+ className: "computer-clock",
4064
+ dateTime: t3,
4065
+ children: [t5, t7]
4066
+ });
4067
+ $[19] = t3;
4068
+ $[20] = t5;
4069
+ $[21] = t7;
4070
+ $[22] = t8;
4071
+ } else t8 = $[22];
4072
+ return t8;
4073
+ }
4074
+ /**
4075
+ * Notification Center behind the menu-bar clock, which opens it as macOS's
4076
+ * does, and the banners that announce each new notification, portalled into
4077
+ * the computer. `AgentComputer` draws it from its `notifications`.
4078
+ */
4079
+ function ComputerNotifications(t0) {
4080
+ const $ = c(25);
4081
+ const { items } = t0;
4082
+ const [open, setOpen] = useState(false);
4083
+ const container = useAgentComputerPortalContainer();
4084
+ let t1;
4085
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
4086
+ t1 = /* @__PURE__ */ jsx(Button, {
4087
+ variant: "ghost",
4088
+ size: "xs"
4089
+ });
4090
+ $[0] = t1;
4091
+ } else t1 = $[0];
4092
+ const t2 = `Notifications, ${items.length} ${items.length === 1 ? "notification" : "notifications"}`;
4093
+ let t3;
4094
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
4095
+ t3 = /* @__PURE__ */ jsx(BellIcon, {});
4096
+ $[1] = t3;
4097
+ } else t3 = $[1];
4098
+ let t4;
4099
+ if ($[2] !== items.length) {
4100
+ t4 = items.length > 0 ? /* @__PURE__ */ jsx("span", {
4101
+ className: "computer-notifications__count",
4102
+ children: items.length
4103
+ }) : null;
4104
+ $[2] = items.length;
4105
+ $[3] = t4;
4106
+ } else t4 = $[3];
4107
+ let t5;
4108
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
4109
+ t5 = /* @__PURE__ */ jsx(ComputerClock, {});
4110
+ $[4] = t5;
4111
+ } else t5 = $[4];
4112
+ let t6;
4113
+ if ($[5] !== t2 || $[6] !== t4) {
4114
+ t6 = /* @__PURE__ */ jsxs(Popover.Trigger, {
4115
+ className: "computer-notifications__trigger",
4116
+ render: t1,
4117
+ "aria-label": t2,
4118
+ children: [
4119
+ t3,
4120
+ t4,
4121
+ t5
4122
+ ]
4123
+ });
4124
+ $[5] = t2;
4125
+ $[6] = t4;
4126
+ $[7] = t6;
4127
+ } else t6 = $[7];
4128
+ let t7;
4129
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
4130
+ t7 = /* @__PURE__ */ jsx(Popover.Backdrop, { className: "computer-notifications__scrim" });
4131
+ $[8] = t7;
4132
+ } else t7 = $[8];
4133
+ let t8;
4134
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
4135
+ t8 = /* @__PURE__ */ jsx(Popover.Title, {
4136
+ className: "sigvelo-visually-hidden",
4137
+ children: "Notifications"
4138
+ });
4139
+ $[9] = t8;
4140
+ } else t8 = $[9];
4141
+ let t9;
4142
+ if ($[10] !== items) {
4143
+ t9 = /* @__PURE__ */ jsx(Popover.Positioner, {
4144
+ align: "end",
4145
+ sideOffset: 12,
4146
+ children: /* @__PURE__ */ jsxs(Popover.Popup, {
4147
+ className: "computer-notifications__center",
4148
+ children: [t8, items.length ? /* @__PURE__ */ jsx("ol", {
4149
+ className: "computer-notifications__list",
4150
+ children: items.map(_temp6$3)
4151
+ }) : /* @__PURE__ */ jsxs("p", {
4152
+ className: "computer-notifications__empty",
4153
+ children: [/* @__PURE__ */ jsx(CheckIcon, {}), " No notifications"]
4154
+ })]
4155
+ })
4156
+ });
4157
+ $[10] = items;
4158
+ $[11] = t9;
4159
+ } else t9 = $[11];
4160
+ let t10;
4161
+ if ($[12] !== container || $[13] !== t9) {
4162
+ t10 = /* @__PURE__ */ jsxs(Popover.Portal, {
4163
+ container,
4164
+ children: [t7, t9]
4165
+ });
4166
+ $[12] = container;
4167
+ $[13] = t9;
4168
+ $[14] = t10;
4169
+ } else t10 = $[14];
4170
+ let t11;
4171
+ if ($[15] !== open || $[16] !== t10 || $[17] !== t6) {
4172
+ t11 = /* @__PURE__ */ jsxs(Popover.Root, {
4173
+ open,
4174
+ onOpenChange: setOpen,
4175
+ children: [t6, t10]
4176
+ });
4177
+ $[15] = open;
4178
+ $[16] = t10;
4179
+ $[17] = t6;
4180
+ $[18] = t11;
4181
+ } else t11 = $[18];
4182
+ let t12;
4183
+ if ($[19] !== items || $[20] !== open) {
4184
+ t12 = /* @__PURE__ */ jsx(NotificationBanners, {
4185
+ items,
4186
+ centerOpen: open
4187
+ });
4188
+ $[19] = items;
4189
+ $[20] = open;
4190
+ $[21] = t12;
4191
+ } else t12 = $[21];
4192
+ let t13;
4193
+ if ($[22] !== t11 || $[23] !== t12) {
4194
+ t13 = /* @__PURE__ */ jsxs(Toast.Provider, { children: [t11, t12] });
4195
+ $[22] = t11;
4196
+ $[23] = t12;
4197
+ $[24] = t13;
4198
+ } else t13 = $[24];
4199
+ return t13;
4200
+ }
4201
+ function _temp6$3(item) {
4202
+ return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Popover.Close, {
4203
+ className: "computer-notifications__card",
4204
+ render: /* @__PURE__ */ jsx("button", { type: "button" }),
4205
+ onClick: (event) => item.onOpen(event.currentTarget),
4206
+ children: [/* @__PURE__ */ jsx(AppIcon.Root, {
4207
+ size: "md",
4208
+ "aria-hidden": "true",
4209
+ children: item.icon
4210
+ }), /* @__PURE__ */ jsxs("span", {
4211
+ className: "computer-notifications__copy",
4212
+ children: [
4213
+ /* @__PURE__ */ jsx(NotificationSource, { item }),
4214
+ /* @__PURE__ */ jsx("strong", {
4215
+ className: "computer-notifications__title",
4216
+ children: item.title
4217
+ }),
4218
+ /* @__PURE__ */ jsx("span", {
4219
+ className: "computer-notifications__body",
4220
+ children: item.body
4221
+ }),
4222
+ /* @__PURE__ */ jsx("span", {
4223
+ className: "computer-notifications__action",
4224
+ children: item.action
4225
+ })
4226
+ ]
4227
+ })]
4228
+ }) }, item.id);
4229
+ }
4230
+ /**
4231
+ * The menu bar's Appearance extra: the theme, and the way to Settings ›
4232
+ * Appearance for the background. `AgentComputer` draws it under a Settings Host.
4233
+ */
4234
+ function ComputerAppearanceMenu() {
4235
+ const $ = c(23);
4236
+ const openingApp = useRef(false);
4237
+ const appearance = use(AppearanceContext);
4238
+ const settings = use(AppHostsContext).settings;
4239
+ const themed = use(ThemeContext) !== null;
4240
+ if (!appearance || !settings) return null;
4241
+ const wallpaper = appearance.selected;
4242
+ let t0;
4243
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
4244
+ t0 = (open) => {
4245
+ if (open) openingApp.current = false;
4246
+ };
4247
+ $[0] = t0;
4248
+ } else t0 = $[0];
4249
+ let t1;
4250
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
4251
+ t1 = /* @__PURE__ */ jsx(Popover.Trigger, {
4252
+ unstyled: true,
4253
+ className: "computer-appearance__trigger",
4254
+ render: /* @__PURE__ */ jsx(IconButton, {
4255
+ label: "Appearance",
4256
+ size: "xs",
4257
+ variant: "ghost",
4258
+ color: "neutral",
4259
+ children: /* @__PURE__ */ jsx(MonitorIcon, {})
4260
+ })
4261
+ });
4262
+ $[1] = t1;
4263
+ } else t1 = $[1];
4264
+ let t2;
4265
+ let t3;
4266
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
4267
+ t2 = () => openingApp.current ? false : true;
4268
+ t3 = /* @__PURE__ */ jsx(Popover.Title, { children: "Appearance" });
4269
+ $[2] = t2;
4270
+ $[3] = t3;
4271
+ } else {
4272
+ t2 = $[2];
4273
+ t3 = $[3];
4274
+ }
4275
+ let t4;
4276
+ if ($[4] !== themed) {
4277
+ t4 = themed ? /* @__PURE__ */ jsx(ThemeModeControl, { variant: "segmented" }) : null;
4278
+ $[4] = themed;
4279
+ $[5] = t4;
4280
+ } else t4 = $[5];
4281
+ let t5;
4282
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
4283
+ t5 = /* @__PURE__ */ jsx(Button, {
4284
+ variant: "ghost",
4285
+ color: "neutral",
4286
+ className: "computer-appearance__wallpaper"
4287
+ });
4288
+ $[6] = t5;
4289
+ } else t5 = $[6];
4290
+ let t6;
4291
+ if ($[7] !== settings) {
4292
+ t6 = () => {
4293
+ openingApp.current = true;
4294
+ settings.open("appearance");
4295
+ };
4296
+ $[7] = settings;
4297
+ $[8] = t6;
4298
+ } else t6 = $[8];
4299
+ let t7;
4300
+ if ($[9] !== wallpaper.background) {
4301
+ t7 = /* @__PURE__ */ jsx("span", {
4302
+ className: "computer-appearance__thumbnail",
4303
+ style: { background: wallpaper.background },
4304
+ "aria-hidden": "true"
4305
+ });
4306
+ $[9] = wallpaper.background;
4307
+ $[10] = t7;
4308
+ } else t7 = $[10];
4309
+ let t8;
4310
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
4311
+ t8 = /* @__PURE__ */ jsx("span", {
4312
+ className: "computer-appearance__label",
4313
+ children: "Background"
4314
+ });
4315
+ $[11] = t8;
4316
+ } else t8 = $[11];
4317
+ let t9;
4318
+ if ($[12] !== wallpaper.label) {
4319
+ t9 = /* @__PURE__ */ jsxs("span", { children: [t8, /* @__PURE__ */ jsx("span", {
4320
+ className: "computer-appearance__name",
4321
+ children: wallpaper.label
4322
+ })] });
4323
+ $[12] = wallpaper.label;
4324
+ $[13] = t9;
4325
+ } else t9 = $[13];
4326
+ let t10;
4327
+ let t11;
4328
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
4329
+ t10 = /* @__PURE__ */ jsx(ChevronRightIcon, {});
4330
+ t11 = /* @__PURE__ */ jsx("span", {
4331
+ className: "sigvelo-visually-hidden",
4332
+ children: "Change background"
4333
+ });
4334
+ $[14] = t10;
4335
+ $[15] = t11;
4336
+ } else {
4337
+ t10 = $[14];
4338
+ t11 = $[15];
4339
+ }
4340
+ let t12;
4341
+ if ($[16] !== t6 || $[17] !== t7 || $[18] !== t9) {
4342
+ t12 = /* @__PURE__ */ jsxs(Popover.Close, {
4343
+ render: t5,
4344
+ onClick: t6,
4345
+ children: [
4346
+ t7,
4347
+ t9,
4348
+ t10,
4349
+ t11
4350
+ ]
4351
+ });
4352
+ $[16] = t6;
4353
+ $[17] = t7;
4354
+ $[18] = t9;
4355
+ $[19] = t12;
4356
+ } else t12 = $[19];
4357
+ let t13;
4358
+ if ($[20] !== t12 || $[21] !== t4) {
4359
+ t13 = /* @__PURE__ */ jsxs(Popover.Root, {
4360
+ onOpenChange: t0,
4361
+ children: [t1, /* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(Popover.Positioner, {
4362
+ side: "bottom",
4363
+ align: "end",
4364
+ sideOffset: 8,
4365
+ children: /* @__PURE__ */ jsxs(Popover.Popup, {
4366
+ className: "computer-appearance",
4367
+ finalFocus: t2,
4368
+ children: [
4369
+ t3,
4370
+ t4,
4371
+ t12
4372
+ ]
4373
+ })
4374
+ }) })]
4375
+ });
4376
+ $[20] = t12;
4377
+ $[21] = t4;
4378
+ $[22] = t13;
4379
+ } else t13 = $[22];
4380
+ return t13;
4381
+ }
4382
+ //#endregion
4383
+ //#region src/components/agents-sdk/ComputerSpotlight.tsx
4384
+ /** ⌘K, and ⌥Space standing in for Spotlight's ⌘Space, which macOS keeps. */
4385
+ const COMPUTER_SPOTLIGHT_SHORTCUT = {
4386
+ glyph: "⌘K or ⌥Space",
4387
+ aria: "Meta+K Control+K Alt+Space"
4388
+ };
4389
+ const NO_RESULTS = async () => [];
4390
+ /** How long a typed query rests before the workspace is searched. */
4391
+ const SEARCH_DEBOUNCE_MS = 150;
4392
+ /**
4393
+ * Spotlight, which `AgentComputer` draws in its menu bar: a trigger, the ⌘K,
4394
+ * ⌃K and ⌥Space shortcuts within this computer, and `CommandPalette` over the
4395
+ * apps, the files last written, the host's results, Settings' actions, and
4396
+ * the workspace's other files and folders. It centres on this screen and
4397
+ * blocks only it.
4398
+ */
4399
+ function ComputerSpotlight(t0) {
4400
+ const $ = c(51);
4401
+ const { extraResults: t1 } = t0;
4402
+ const extraResults = t1 === void 0 ? NO_RESULTS : t1;
4403
+ const { openApp } = useAgentComputerActions();
4404
+ const computer = useComputer();
4405
+ const open = useComputerSlice(_temp$7);
4406
+ const onOpenChange = computer.setSpotlight;
4407
+ const catalog = useComputerSlice(_temp2$5);
4408
+ const arrangement = usePresentation(_temp3$4);
4409
+ let t2;
4410
+ if ($[0] !== arrangement || $[1] !== catalog) {
4411
+ t2 = arrangeDock(catalog, arrangement);
4412
+ $[0] = arrangement;
4413
+ $[1] = catalog;
4414
+ $[2] = t2;
4415
+ } else t2 = $[2];
4416
+ const apps = t2.ordered;
4417
+ const { files, settings } = React.use(AppHostsContext);
4418
+ let t3;
4419
+ if ($[3] !== extraResults || $[4] !== files || $[5] !== settings) {
4420
+ t3 = async function search(query) {
4421
+ const [found, extra] = await Promise.all([files?.spotlight(query) ?? {
4422
+ recent: [],
4423
+ found: []
4424
+ }, extraResults(query)]);
4425
+ const actions = settings ? [
4426
+ {
4427
+ id: "action:background",
4428
+ label: "Change background",
4429
+ group: "Actions",
4430
+ keywords: ["wallpaper", "image"],
4431
+ icon: /* @__PURE__ */ jsx(WrenchIcon, {}),
4432
+ onSelect: () => settings.open("appearance")
4433
+ },
4434
+ {
4435
+ id: "action:dock",
4436
+ label: "Customize Dock",
4437
+ group: "Actions",
4438
+ keywords: [
4439
+ "pin",
4440
+ "reorder",
4441
+ "hide"
4442
+ ],
4443
+ icon: /* @__PURE__ */ jsx(WrenchIcon, {}),
4444
+ onSelect: () => settings.open("dock")
4445
+ },
4446
+ {
4447
+ id: "action:shortcuts",
4448
+ label: "Keyboard shortcuts",
4449
+ group: "Actions",
4450
+ icon: /* @__PURE__ */ jsx(KeyboardIcon, {}),
4451
+ onSelect: () => settings.open("shortcuts")
4452
+ }
4453
+ ] : [];
4454
+ return [
4455
+ ...found.recent,
4456
+ ...extra,
4457
+ ...actions,
4458
+ ...found.found
4459
+ ];
4460
+ };
4461
+ $[3] = extraResults;
4462
+ $[4] = files;
4463
+ $[5] = settings;
4464
+ $[6] = t3;
4465
+ } else t3 = $[6];
4466
+ const search = t3;
4467
+ const container = useAgentComputerPortalContainer();
4468
+ const trigger = React.useRef(null);
4469
+ const [query_0, setQuery] = React.useState("");
4470
+ const [attempt, setAttempt] = React.useState(0);
4471
+ let t4;
4472
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
4473
+ t4 = {
4474
+ request: null,
4475
+ status: "done",
4476
+ commands: []
4477
+ };
4478
+ $[7] = t4;
4479
+ } else t4 = $[7];
4480
+ const [results, setResults] = React.useState(t4);
4481
+ const request = `${attempt}:${query_0}`;
4482
+ const status = results.request === request ? results.status : "loading";
4483
+ let t5;
4484
+ if ($[8] !== query_0 || $[9] !== request || $[10] !== search) {
4485
+ t5 = (signal) => {
4486
+ search(query_0).then((commands) => !signal.stale && setResults({
4487
+ request,
4488
+ status: "done",
4489
+ commands
4490
+ }), () => !signal.stale && setResults((current) => ({
4491
+ request,
4492
+ status: "error",
4493
+ commands: current.commands
4494
+ })));
4495
+ };
4496
+ $[8] = query_0;
4497
+ $[9] = request;
4498
+ $[10] = search;
4499
+ $[11] = t5;
4500
+ } else t5 = $[11];
4501
+ const run = React.useEffectEvent(t5);
4502
+ let t6;
4503
+ if ($[12] !== open || $[13] !== query_0 || $[14] !== run) {
4504
+ t6 = () => {
4505
+ if (!open) return;
4506
+ const signal_0 = { stale: false };
4507
+ const timer = setTimeout(() => run(signal_0), query_0 === "" ? 0 : SEARCH_DEBOUNCE_MS);
4508
+ return () => {
4509
+ signal_0.stale = true;
4510
+ clearTimeout(timer);
4511
+ };
4512
+ };
4513
+ $[12] = open;
4514
+ $[13] = query_0;
4515
+ $[14] = run;
4516
+ $[15] = t6;
4517
+ } else t6 = $[15];
4518
+ let t7;
4519
+ if ($[16] !== open || $[17] !== query_0 || $[18] !== request) {
4520
+ t7 = [
4521
+ open,
4522
+ query_0,
4523
+ request
4524
+ ];
4525
+ $[16] = open;
4526
+ $[17] = query_0;
4527
+ $[18] = request;
4528
+ $[19] = t7;
4529
+ } else t7 = $[19];
4530
+ React.useEffect(t6, t7);
4531
+ let t8;
4532
+ if ($[20] !== open) {
4533
+ t8 = () => open;
4534
+ $[20] = open;
4535
+ $[21] = t8;
4536
+ } else t8 = $[21];
4537
+ const isOpen = React.useEffectEvent(t8);
4538
+ let t9;
4539
+ if ($[22] !== onOpenChange || $[23] !== open) {
4540
+ t9 = () => onOpenChange(!open);
4541
+ $[22] = onOpenChange;
4542
+ $[23] = open;
4543
+ $[24] = t9;
4544
+ } else t9 = $[24];
4545
+ const toggle = React.useEffectEvent(t9);
4546
+ let t10;
4547
+ if ($[25] !== isOpen || $[26] !== toggle) {
4548
+ t10 = () => {
4549
+ const computer_0 = trigger.current?.closest("[data-slot=\"agent-computer\"]");
4550
+ if (!computer_0) return;
4551
+ const doc = computer_0.ownerDocument;
4552
+ const shortcut = function shortcut(event) {
4553
+ const commandK = !event.altKey && (event.ctrlKey || event.metaKey) && event.key.toLowerCase() === "k";
4554
+ const spotlight = event.altKey && !event.ctrlKey && !event.metaKey && event.code === "Space";
4555
+ if (event.defaultPrevented || event.isComposing || event.shiftKey || !(commandK || spotlight)) return;
4556
+ const target = event.target;
4557
+ if (!(target instanceof HTMLElement)) return;
4558
+ const inPalette = isOpen() && target.closest("[data-command-palette]");
4559
+ if (!computer_0.contains(target) && target !== doc.body && !inPalette) return;
4560
+ if (target.closest("[role=\"dialog\"], [role=\"menu\"]") && !inPalette) return;
4561
+ event.preventDefault();
4562
+ toggle();
4563
+ };
4564
+ doc.addEventListener("keydown", shortcut);
4565
+ return () => doc.removeEventListener("keydown", shortcut);
4566
+ };
4567
+ $[25] = isOpen;
4568
+ $[26] = toggle;
4569
+ $[27] = t10;
4570
+ } else t10 = $[27];
4571
+ let t11;
4572
+ if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
4573
+ t11 = [];
4574
+ $[28] = t11;
4575
+ } else t11 = $[28];
4576
+ React.useEffect(t10, t11);
4577
+ let t12;
4578
+ if ($[29] !== apps || $[30] !== openApp || $[31] !== results.commands) {
4579
+ let t13;
4580
+ if ($[33] !== openApp) {
4581
+ t13 = (app) => ({
4582
+ id: `app:${app.id}`,
4583
+ label: app.label,
4584
+ group: "Applications",
4585
+ icon: /* @__PURE__ */ jsx(AppIcon.Root, {
4586
+ size: "sm",
4587
+ "aria-hidden": "true",
4588
+ children: app.icon
4589
+ }),
4590
+ onSelect: () => void openApp(app.id),
4591
+ preload: app.preload
4592
+ });
4593
+ $[33] = openApp;
4594
+ $[34] = t13;
4595
+ } else t13 = $[34];
4596
+ t12 = [...apps.map(t13), ...results.commands];
4597
+ $[29] = apps;
4598
+ $[30] = openApp;
4599
+ $[31] = results.commands;
4600
+ $[32] = t12;
4601
+ } else t12 = $[32];
4602
+ const commands_0 = t12;
4603
+ let t13;
4604
+ if ($[35] !== onOpenChange) {
4605
+ t13 = () => onOpenChange(true);
4606
+ $[35] = onOpenChange;
4607
+ $[36] = t13;
4608
+ } else t13 = $[36];
4609
+ let t14;
4610
+ if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
4611
+ t14 = /* @__PURE__ */ jsx(SearchIcon, {});
4612
+ $[37] = t14;
4613
+ } else t14 = $[37];
4614
+ let t15;
4615
+ if ($[38] !== t13) {
4616
+ t15 = /* @__PURE__ */ jsx(IconButton, {
4617
+ ref: trigger,
4618
+ label: "Search workspace",
4619
+ tooltip: `Search workspace (${COMPUTER_SPOTLIGHT_SHORTCUT.glyph})`,
4620
+ "aria-keyshortcuts": COMPUTER_SPOTLIGHT_SHORTCUT.aria,
4621
+ variant: "ghost",
4622
+ color: "neutral",
4623
+ className: "computer-spotlight__trigger",
4624
+ onClick: t13,
4625
+ children: t14
4626
+ });
4627
+ $[38] = t13;
4628
+ $[39] = t15;
4629
+ } else t15 = $[39];
4630
+ let t16;
4631
+ if ($[40] !== status) {
4632
+ t16 = status === "error" ? /* @__PURE__ */ jsxs("p", {
4633
+ role: "status",
4634
+ children: [
4635
+ "The workspace couldn’t be searched.",
4636
+ " ",
4637
+ /* @__PURE__ */ jsx(Button, {
4638
+ size: "sm",
4639
+ variant: "ghost",
4640
+ onClick: () => setAttempt(_temp4$4),
4641
+ children: "Retry search"
4642
+ })
4643
+ ]
4644
+ }) : status === "loading" ? /* @__PURE__ */ jsx("p", { children: "Searching the workspace…" }) : null;
4645
+ $[40] = status;
4646
+ $[41] = t16;
4647
+ } else t16 = $[41];
4648
+ let t17;
4649
+ if ($[42] !== commands_0 || $[43] !== container || $[44] !== onOpenChange || $[45] !== open || $[46] !== t16) {
4650
+ t17 = /* @__PURE__ */ jsx(CommandPalette, {
4651
+ commands: commands_0,
4652
+ open,
4653
+ onOpenChange,
4654
+ onQueryChange: setQuery,
4655
+ container,
4656
+ children: t16
4657
+ });
4658
+ $[42] = commands_0;
4659
+ $[43] = container;
4660
+ $[44] = onOpenChange;
4661
+ $[45] = open;
4662
+ $[46] = t16;
4663
+ $[47] = t17;
4664
+ } else t17 = $[47];
4665
+ let t18;
4666
+ if ($[48] !== t15 || $[49] !== t17) {
4667
+ t18 = /* @__PURE__ */ jsxs(Fragment, { children: [t15, t17] });
4668
+ $[48] = t15;
4669
+ $[49] = t17;
4670
+ $[50] = t18;
4671
+ } else t18 = $[50];
4672
+ return t18;
4673
+ }
4674
+ function _temp4$4(count) {
4675
+ return count + 1;
4676
+ }
4677
+ function _temp3$4(store) {
4678
+ return store.get().dock;
4679
+ }
4680
+ function _temp2$5(c_0) {
4681
+ return c_0.getState().apps;
4682
+ }
4683
+ function _temp$7(c) {
4684
+ return c.getState().spotlight;
4685
+ }
4686
+ //#endregion
4687
+ //#region src/components/_internal/agent-computer/extras.tsx
4688
+ const NO_NOTIFICATIONS = [];
4689
+ /**
4690
+ * The menu bar's extras, in macOS's order: Spotlight, Appearance, the host's
4691
+ * own, the connection warning, the conversation, and the clock that opens
4692
+ * Notification Center.
4693
+ */
4694
+ function ComputerMenuExtras(t0) {
4695
+ const $ = c(13);
4696
+ const { notifications: t1, connection, extraResults, extras } = t0;
4697
+ const notifications = t1 === void 0 ? NO_NOTIFICATIONS : t1;
4698
+ let t2;
4699
+ if ($[0] !== extraResults) {
4700
+ t2 = /* @__PURE__ */ jsx(ComputerSpotlight, { extraResults });
4701
+ $[0] = extraResults;
4702
+ $[1] = t2;
4703
+ } else t2 = $[1];
4704
+ let t3;
4705
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
4706
+ t3 = /* @__PURE__ */ jsx(ComputerAppearanceMenu, {});
4707
+ $[2] = t3;
4708
+ } else t3 = $[2];
4709
+ let t4;
4710
+ if ($[3] !== connection) {
4711
+ t4 = connection ? /* @__PURE__ */ jsxs("span", {
4712
+ className: "agent-computer__connection",
4713
+ title: connection,
4714
+ children: [/* @__PURE__ */ jsx(WarningIcon, {}), /* @__PURE__ */ jsx("span", {
4715
+ className: "sigvelo-visually-hidden",
4716
+ children: connection
4717
+ })]
4718
+ }) : null;
4719
+ $[3] = connection;
4720
+ $[4] = t4;
4721
+ } else t4 = $[4];
4722
+ let t5;
4723
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
4724
+ t5 = /* @__PURE__ */ jsx(ComputerViewerToggle, {});
4725
+ $[5] = t5;
4726
+ } else t5 = $[5];
4727
+ let t6;
4728
+ if ($[6] !== notifications) {
4729
+ t6 = /* @__PURE__ */ jsx(ComputerNotifications, { items: notifications });
4730
+ $[6] = notifications;
4731
+ $[7] = t6;
4732
+ } else t6 = $[7];
4733
+ let t7;
4734
+ if ($[8] !== extras || $[9] !== t2 || $[10] !== t4 || $[11] !== t6) {
4735
+ t7 = /* @__PURE__ */ jsxs(Fragment, { children: [
4736
+ t2,
4737
+ t3,
4738
+ extras,
4739
+ t4,
4740
+ t5,
4741
+ t6
4742
+ ] });
4743
+ $[8] = extras;
4744
+ $[9] = t2;
4745
+ $[10] = t4;
4746
+ $[11] = t6;
4747
+ $[12] = t7;
4748
+ } else t7 = $[12];
4749
+ return t7;
4750
+ }
4751
+ //#endregion
4752
+ //#region src/components/agents-sdk/ComputerHome.tsx
4753
+ /**
4754
+ * Home: the launchpad, in the Dock's order with the apps hidden from the Dock
4755
+ * kept, and the workspace search. `AgentComputer` draws it. A launcher opens
4756
+ * its app from its own icon. On a phone the Dock's favorites are not
4757
+ * repeated, as iOS never repeats a Dock app on the Home page.
4758
+ */
4759
+ function ComputerHome() {
4760
+ const $ = c(16);
4761
+ const { openApp, openSpotlight } = useAgentComputerActions();
4762
+ const catalog = useComputerSlice(_temp$6);
4763
+ const arrangement = usePresentation(_temp2$4);
4764
+ let t0;
4765
+ if ($[0] !== arrangement || $[1] !== catalog) {
4766
+ t0 = arrangeDock(catalog, arrangement);
4767
+ $[0] = arrangement;
4768
+ $[1] = catalog;
4769
+ $[2] = t0;
4770
+ } else t0 = $[2];
4771
+ const apps = t0.ordered;
4772
+ let t1;
4773
+ if ($[3] !== apps || $[4] !== openApp) {
4774
+ let t2;
4775
+ if ($[6] !== openApp) {
4776
+ t2 = (app) => /* @__PURE__ */ jsxs(Button, {
4777
+ className: "computer-home__launcher",
4778
+ "data-favorite": app.launcher === "favorite" ? "" : void 0,
4779
+ variant: "ghost",
4780
+ color: "neutral",
4781
+ onClick: (event) => void openApp(app.id, { from: event.currentTarget.querySelector("[data-app-id]") ?? void 0 }),
4782
+ children: [/* @__PURE__ */ jsx(AppIcon.Root, {
4783
+ className: "computer-home__icon",
4784
+ "data-app-id": app.id,
4785
+ size: "2xl",
4786
+ "aria-hidden": "true",
4787
+ children: app.icon
4788
+ }), /* @__PURE__ */ jsx("span", {
4789
+ className: "computer-home__label",
4790
+ children: app.label
4791
+ })]
4792
+ }, app.id);
4793
+ $[6] = openApp;
4794
+ $[7] = t2;
4795
+ } else t2 = $[7];
4796
+ t1 = apps.map(t2);
4797
+ $[3] = apps;
4798
+ $[4] = openApp;
4799
+ $[5] = t1;
4800
+ } else t1 = $[5];
4801
+ let t2;
4802
+ if ($[8] !== t1) {
4803
+ t2 = /* @__PURE__ */ jsx("nav", {
4804
+ className: "computer-home__launchpad",
4805
+ "aria-label": "Applications",
4806
+ children: t1
4807
+ });
4808
+ $[8] = t1;
4809
+ $[9] = t2;
4810
+ } else t2 = $[9];
4811
+ let t3;
4812
+ if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
4813
+ t3 = /* @__PURE__ */ jsx(SearchIcon, {});
4814
+ $[10] = t3;
4815
+ } else t3 = $[10];
4816
+ let t4;
4817
+ if ($[11] !== openSpotlight) {
4818
+ t4 = /* @__PURE__ */ jsxs(Button, {
4819
+ className: "computer-home__search",
4820
+ variant: "surface",
4821
+ color: "neutral",
4822
+ "aria-keyshortcuts": "Meta+K Control+K Alt+Space",
4823
+ onClick: openSpotlight,
4824
+ children: [t3, " Search workspace"]
4825
+ });
4826
+ $[11] = openSpotlight;
4827
+ $[12] = t4;
4828
+ } else t4 = $[12];
4829
+ let t5;
4830
+ if ($[13] !== t2 || $[14] !== t4) {
4831
+ t5 = /* @__PURE__ */ jsxs("div", {
4832
+ className: "computer-home",
4833
+ children: [t2, t4]
4834
+ });
4835
+ $[13] = t2;
4836
+ $[14] = t4;
4837
+ $[15] = t5;
4838
+ } else t5 = $[15];
4839
+ return t5;
4840
+ }
4841
+ function _temp2$4(store) {
4842
+ return store.get().dock;
4843
+ }
4844
+ function _temp$6(computer) {
4845
+ return computer.getState().apps;
4846
+ }
4847
+ //#endregion
3600
4848
  //#region src/components/_internal/agent-computer/bar-focus.ts
3601
4849
  /**
3602
4850
  * A menu or status popover opened from the bar with the pointer still returns
@@ -6939,49 +8187,58 @@ function fitTiles(dock) {
6939
8187
  * straight to the tiles' style, so a pointer moving over it renders nothing.
6940
8188
  */
6941
8189
  function ComputerDock(t0) {
6942
- const $ = c(81);
8190
+ const $ = c(84);
6943
8191
  const { trash, name } = t0;
6944
8192
  const computer = useComputer();
6945
8193
  const { launchers, miniatures } = computer;
6946
8194
  const apps = useComputerSlice(_temp);
6947
- const openIds = useComputerSlice(_temp2);
6948
- const activeApp = useComputerSlice(_temp3);
6949
- const phone = useComputerSlice(_temp4);
6950
- const inert = useComputerSlice(_temp5);
6951
- const minimized = useComputerSlice(_temp6);
6952
- const attention = useComputerSlice(_temp7);
8195
+ const arrangement = usePresentation(_temp2);
6953
8196
  let t1;
6954
- if ($[0] !== computer) {
6955
- t1 = (id, from) => void computer.openApp(id, { from });
6956
- $[0] = computer;
6957
- $[1] = t1;
6958
- } else t1 = $[1];
6959
- const onOpen = t1;
6960
- const dock = React.useRef(null);
6961
- const [labels] = React.useState(_temp8);
8197
+ if ($[0] !== apps || $[1] !== arrangement) {
8198
+ t1 = arrangeDock(apps, arrangement);
8199
+ $[0] = apps;
8200
+ $[1] = arrangement;
8201
+ $[2] = t1;
8202
+ } else t1 = $[2];
8203
+ const docked = t1.docked;
8204
+ const openIds = useComputerSlice(_temp3);
8205
+ const activeApp = useComputerSlice(_temp4);
8206
+ const phone = useComputerSlice(_temp5);
8207
+ const inert = useComputerSlice(_temp6);
8208
+ const minimized = useComputerSlice(_temp7);
8209
+ const attention = useComputerSlice(_temp8);
6962
8210
  let t2;
6963
- if ($[2] !== labels) {
6964
- t2 = {
8211
+ if ($[3] !== computer) {
8212
+ t2 = (id, from) => void computer.openApp(id, { from });
8213
+ $[3] = computer;
8214
+ $[4] = t2;
8215
+ } else t2 = $[4];
8216
+ const onOpen = t2;
8217
+ const dock = React.useRef(null);
8218
+ const [labels] = React.useState(_temp9);
8219
+ let t3;
8220
+ if ($[5] !== labels) {
8221
+ t3 = {
6965
8222
  pointer: null,
6966
8223
  frame: 0,
6967
8224
  labels,
6968
8225
  rest: null
6969
8226
  };
6970
- $[2] = labels;
6971
- $[3] = t2;
6972
- } else t2 = $[3];
6973
- const magnifier = React.useRef(t2);
8227
+ $[5] = labels;
8228
+ $[6] = t3;
8229
+ } else t3 = $[6];
8230
+ const magnifier = React.useRef(t3);
6974
8231
  const stop = React.useRef(null);
6975
- let t3;
6976
- if ($[4] !== apps) {
6977
- t3 = apps.map(_temp9).join("|");
6978
- $[4] = apps;
6979
- $[5] = t3;
6980
- } else t3 = $[5];
6981
- const dockItems = t3;
6982
8232
  let t4;
6983
- if ($[6] !== computer.dock || $[7] !== launchers) {
6984
- t4 = () => {
8233
+ if ($[7] !== docked) {
8234
+ t4 = docked.map(_temp10).join("|");
8235
+ $[7] = docked;
8236
+ $[8] = t4;
8237
+ } else t4 = $[8];
8238
+ const dockItems = t4;
8239
+ let t5;
8240
+ if ($[9] !== computer.dock || $[10] !== launchers) {
8241
+ t5 = () => {
6985
8242
  const element = dock.current;
6986
8243
  const state = magnifier.current;
6987
8244
  if (!element) return;
@@ -7006,83 +8263,83 @@ function ComputerDock(t0) {
7006
8263
  state.frame = 0;
7007
8264
  };
7008
8265
  };
7009
- $[6] = computer.dock;
7010
- $[7] = launchers;
7011
- $[8] = t4;
7012
- } else t4 = $[8];
7013
- let t5;
7014
- if ($[9] !== computer || $[10] !== dockItems || $[11] !== launchers || $[12] !== minimized.length || $[13] !== phone) {
7015
- t5 = [
8266
+ $[9] = computer.dock;
8267
+ $[10] = launchers;
8268
+ $[11] = t5;
8269
+ } else t5 = $[11];
8270
+ let t6;
8271
+ if ($[12] !== computer || $[13] !== dockItems || $[14] !== launchers || $[15] !== minimized.length || $[16] !== phone) {
8272
+ t6 = [
7016
8273
  dockItems,
7017
8274
  minimized.length,
7018
8275
  phone,
7019
8276
  computer,
7020
8277
  launchers
7021
8278
  ];
7022
- $[9] = computer;
7023
- $[10] = dockItems;
7024
- $[11] = launchers;
7025
- $[12] = minimized.length;
7026
- $[13] = phone;
7027
- $[14] = t5;
7028
- } else t5 = $[14];
7029
- React.useLayoutEffect(t4, t5);
7030
- let t6;
7031
- if ($[15] !== computer.dock) {
7032
- t6 = () => computer.dock.land();
7033
- $[15] = computer.dock;
7034
- $[16] = t6;
7035
- } else t6 = $[16];
8279
+ $[12] = computer;
8280
+ $[13] = dockItems;
8281
+ $[14] = launchers;
8282
+ $[15] = minimized.length;
8283
+ $[16] = phone;
8284
+ $[17] = t6;
8285
+ } else t6 = $[17];
8286
+ React.useLayoutEffect(t5, t6);
7036
8287
  let t7;
7037
- if ($[17] !== computer || $[18] !== minimized) {
7038
- t7 = [computer, minimized];
7039
- $[17] = computer;
7040
- $[18] = minimized;
8288
+ if ($[18] !== computer.dock) {
8289
+ t7 = () => computer.dock.land();
8290
+ $[18] = computer.dock;
7041
8291
  $[19] = t7;
7042
8292
  } else t7 = $[19];
7043
- React.useLayoutEffect(t6, t7);
7044
8293
  let t8;
7045
- if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
7046
- t8 = () => {
7047
- if (dock.current) rove(dock.current, stop.current);
7048
- };
7049
- $[20] = t8;
7050
- } else t8 = $[20];
7051
- React.useLayoutEffect(t8);
8294
+ if ($[20] !== computer || $[21] !== minimized) {
8295
+ t8 = [computer, minimized];
8296
+ $[20] = computer;
8297
+ $[21] = minimized;
8298
+ $[22] = t8;
8299
+ } else t8 = $[22];
8300
+ React.useLayoutEffect(t7, t8);
7052
8301
  let t9;
7053
- if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
8302
+ if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
7054
8303
  t9 = () => {
7055
- if (dock.current) resetMagnification(magnifier.current, dock.current);
8304
+ if (dock.current) rove(dock.current, stop.current);
7056
8305
  };
7057
- $[21] = t9;
7058
- } else t9 = $[21];
7059
- const reset_0 = t9;
8306
+ $[23] = t9;
8307
+ } else t9 = $[23];
8308
+ React.useLayoutEffect(t9);
7060
8309
  let t10;
7061
- if ($[22] !== apps || $[23] !== openIds) {
7062
- t10 = (id_1) => openIds.some((openId) => openId === id_1 || apps.find((app) => app.id === openId)?.owner === id_1);
7063
- $[22] = apps;
7064
- $[23] = openIds;
8310
+ if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
8311
+ t10 = () => {
8312
+ if (dock.current) resetMagnification(magnifier.current, dock.current);
8313
+ };
7065
8314
  $[24] = t10;
7066
8315
  } else t10 = $[24];
7067
- const running = t10;
8316
+ const reset_0 = t10;
7068
8317
  let t11;
7069
- if ($[25] !== computer.dock) {
7070
- t11 = (element_0) => {
8318
+ if ($[25] !== apps || $[26] !== openIds) {
8319
+ t11 = (id_1) => openIds.some((openId) => openId === id_1 || apps.find((app) => app.id === openId)?.owner === id_1);
8320
+ $[25] = apps;
8321
+ $[26] = openIds;
8322
+ $[27] = t11;
8323
+ } else t11 = $[27];
8324
+ const running = t11;
8325
+ let t12;
8326
+ if ($[28] !== computer.dock) {
8327
+ t12 = (element_0) => {
7071
8328
  dock.current = element_0;
7072
8329
  computer.dock.attach(element_0);
7073
8330
  };
7074
- $[25] = computer.dock;
7075
- $[26] = t11;
7076
- } else t11 = $[26];
7077
- let t12;
7078
- if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
7079
- t12 = ariaKeys("focusDock");
7080
- $[27] = t12;
7081
- } else t12 = $[27];
7082
- const t13 = apps.some(_temp10) ? "" : void 0;
7083
- let t14;
7084
- if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
7085
- t14 = (event) => {
8331
+ $[28] = computer.dock;
8332
+ $[29] = t12;
8333
+ } else t12 = $[29];
8334
+ let t13;
8335
+ if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
8336
+ t13 = ariaKeys("focusDock");
8337
+ $[30] = t13;
8338
+ } else t13 = $[30];
8339
+ const t14 = apps.some(_temp11) ? "" : void 0;
8340
+ let t15;
8341
+ if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
8342
+ t15 = (event) => {
7086
8343
  const element_1 = event.currentTarget;
7087
8344
  if (!magnifies(element_1) || event.pointerType === "touch" || event.buttons !== 0) {
7088
8345
  reset_0();
@@ -7091,75 +8348,75 @@ function ComputerDock(t0) {
7091
8348
  magnifier.current.pointer = event.clientX;
7092
8349
  queueMagnification(magnifier.current, element_1);
7093
8350
  };
7094
- $[28] = t14;
7095
- } else t14 = $[28];
7096
- let t15;
7097
- if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
7098
- t15 = (event_0) => {
8351
+ $[31] = t15;
8352
+ } else t15 = $[31];
8353
+ let t16;
8354
+ if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
8355
+ t16 = (event_0) => {
7099
8356
  const item = event_0.target.closest(STOPS);
7100
8357
  if (!item || !event_0.currentTarget.contains(item)) return;
7101
8358
  stop.current = item;
7102
8359
  rove(event_0.currentTarget, item);
7103
8360
  };
7104
- $[29] = t15;
7105
- } else t15 = $[29];
7106
- let t16;
7107
- if ($[30] !== activeApp?.id || $[31] !== activeApp?.owner || $[32] !== apps || $[33] !== attention || $[34] !== labels || $[35] !== launchers || $[36] !== name || $[37] !== onOpen || $[38] !== phone || $[39] !== running) {
7108
- let t17;
7109
- if ($[41] !== activeApp?.id || $[42] !== activeApp?.owner || $[43] !== attention || $[44] !== labels || $[45] !== launchers || $[46] !== name || $[47] !== onOpen || $[48] !== phone || $[49] !== running) {
7110
- t17 = (app_2) => /* @__PURE__ */ jsx(DockTile, {
7111
- app: app_2,
8361
+ $[32] = t16;
8362
+ } else t16 = $[32];
8363
+ let t17;
8364
+ if ($[33] !== activeApp?.id || $[34] !== activeApp?.owner || $[35] !== attention || $[36] !== docked || $[37] !== labels || $[38] !== launchers || $[39] !== name || $[40] !== onOpen || $[41] !== phone || $[42] !== running) {
8365
+ let t18;
8366
+ if ($[44] !== activeApp?.id || $[45] !== activeApp?.owner || $[46] !== attention || $[47] !== labels || $[48] !== launchers || $[49] !== name || $[50] !== onOpen || $[51] !== phone || $[52] !== running) {
8367
+ t18 = (app_1) => /* @__PURE__ */ jsx(DockTile, {
8368
+ app: app_1,
7112
8369
  phone,
7113
- running: running(app_2.id),
7114
- attention: attention.includes(app_2.id) ? name : void 0,
7115
- current: activeApp?.id === app_2.id || activeApp?.owner === app_2.id,
8370
+ running: running(app_1.id),
8371
+ attention: attention.includes(app_1.id) ? name : void 0,
8372
+ current: activeApp?.id === app_1.id || activeApp?.owner === app_1.id,
7116
8373
  launchers,
7117
8374
  labels,
7118
8375
  onOpen
7119
- }, app_2.id);
7120
- $[41] = activeApp?.id;
7121
- $[42] = activeApp?.owner;
7122
- $[43] = attention;
7123
- $[44] = labels;
7124
- $[45] = launchers;
7125
- $[46] = name;
7126
- $[47] = onOpen;
7127
- $[48] = phone;
7128
- $[49] = running;
7129
- $[50] = t17;
7130
- } else t17 = $[50];
7131
- t16 = apps.filter(_temp13).map(t17);
7132
- $[30] = activeApp?.id;
7133
- $[31] = activeApp?.owner;
7134
- $[32] = apps;
7135
- $[33] = attention;
7136
- $[34] = labels;
7137
- $[35] = launchers;
7138
- $[36] = name;
7139
- $[37] = onOpen;
7140
- $[38] = phone;
7141
- $[39] = running;
7142
- $[40] = t16;
7143
- } else t16 = $[40];
7144
- let t17;
7145
- if ($[51] !== minimized.length || $[52] !== phone) {
7146
- t17 = minimized.length || !phone ? /* @__PURE__ */ jsx("span", {
8376
+ }, app_1.id);
8377
+ $[44] = activeApp?.id;
8378
+ $[45] = activeApp?.owner;
8379
+ $[46] = attention;
8380
+ $[47] = labels;
8381
+ $[48] = launchers;
8382
+ $[49] = name;
8383
+ $[50] = onOpen;
8384
+ $[51] = phone;
8385
+ $[52] = running;
8386
+ $[53] = t18;
8387
+ } else t18 = $[53];
8388
+ t17 = docked.map(t18);
8389
+ $[33] = activeApp?.id;
8390
+ $[34] = activeApp?.owner;
8391
+ $[35] = attention;
8392
+ $[36] = docked;
8393
+ $[37] = labels;
8394
+ $[38] = launchers;
8395
+ $[39] = name;
8396
+ $[40] = onOpen;
8397
+ $[41] = phone;
8398
+ $[42] = running;
8399
+ $[43] = t17;
8400
+ } else t17 = $[43];
8401
+ let t18;
8402
+ if ($[54] !== minimized.length || $[55] !== phone) {
8403
+ t18 = minimized.length || !phone ? /* @__PURE__ */ jsx("span", {
7147
8404
  className: "agent-computer__dock-divider",
7148
8405
  "aria-hidden": "true"
7149
8406
  }) : null;
7150
- $[51] = minimized.length;
7151
- $[52] = phone;
7152
- $[53] = t17;
7153
- } else t17 = $[53];
7154
- let t18;
7155
- if ($[54] !== apps || $[55] !== computer || $[56] !== labels || $[57] !== miniatures || $[58] !== minimized || $[59] !== onOpen) {
7156
- let t19;
7157
- if ($[61] !== apps || $[62] !== computer || $[63] !== labels || $[64] !== miniatures || $[65] !== onOpen) {
7158
- t19 = (t20) => {
7159
- const { id: id_2, aspect } = t20;
7160
- const app_3 = apps.find((candidate) => candidate.id === id_2);
7161
- return app_3 ? /* @__PURE__ */ jsx(DockMiniature, {
7162
- app: app_3,
8407
+ $[54] = minimized.length;
8408
+ $[55] = phone;
8409
+ $[56] = t18;
8410
+ } else t18 = $[56];
8411
+ let t19;
8412
+ if ($[57] !== apps || $[58] !== computer || $[59] !== labels || $[60] !== miniatures || $[61] !== minimized || $[62] !== onOpen) {
8413
+ let t20;
8414
+ if ($[64] !== apps || $[65] !== computer || $[66] !== labels || $[67] !== miniatures || $[68] !== onOpen) {
8415
+ t20 = (t21) => {
8416
+ const { id: id_2, aspect } = t21;
8417
+ const app_2 = apps.find((candidate) => candidate.id === id_2);
8418
+ return app_2 ? /* @__PURE__ */ jsx(DockMiniature, {
8419
+ app: app_2,
7163
8420
  aspect,
7164
8421
  anchor: computer.anchorFor(id_2),
7165
8422
  miniatures,
@@ -7167,84 +8424,81 @@ function ComputerDock(t0) {
7167
8424
  onOpen
7168
8425
  }, id_2) : null;
7169
8426
  };
7170
- $[61] = apps;
7171
- $[62] = computer;
7172
- $[63] = labels;
7173
- $[64] = miniatures;
7174
- $[65] = onOpen;
7175
- $[66] = t19;
7176
- } else t19 = $[66];
7177
- t18 = minimized.map(t19);
7178
- $[54] = apps;
7179
- $[55] = computer;
7180
- $[56] = labels;
7181
- $[57] = miniatures;
7182
- $[58] = minimized;
7183
- $[59] = onOpen;
7184
- $[60] = t18;
7185
- } else t18 = $[60];
7186
- let t19;
7187
- if ($[67] !== labels || $[68] !== phone || $[69] !== trash) {
7188
- t19 = trash && !phone ? /* @__PURE__ */ jsx(DockTrash, {
8427
+ $[64] = apps;
8428
+ $[65] = computer;
8429
+ $[66] = labels;
8430
+ $[67] = miniatures;
8431
+ $[68] = onOpen;
8432
+ $[69] = t20;
8433
+ } else t20 = $[69];
8434
+ t19 = minimized.map(t20);
8435
+ $[57] = apps;
8436
+ $[58] = computer;
8437
+ $[59] = labels;
8438
+ $[60] = miniatures;
8439
+ $[61] = minimized;
8440
+ $[62] = onOpen;
8441
+ $[63] = t19;
8442
+ } else t19 = $[63];
8443
+ let t20;
8444
+ if ($[70] !== labels || $[71] !== phone || $[72] !== trash) {
8445
+ t20 = trash && !phone ? /* @__PURE__ */ jsx(DockTrash, {
7189
8446
  trash,
7190
8447
  labels
7191
8448
  }) : null;
7192
- $[67] = labels;
7193
- $[68] = phone;
7194
- $[69] = trash;
7195
- $[70] = t19;
7196
- } else t19 = $[70];
7197
- let t20;
7198
- if ($[71] !== t17 || $[72] !== t18 || $[73] !== t19) {
7199
- t20 = /* @__PURE__ */ jsxs("div", {
8449
+ $[70] = labels;
8450
+ $[71] = phone;
8451
+ $[72] = trash;
8452
+ $[73] = t20;
8453
+ } else t20 = $[73];
8454
+ let t21;
8455
+ if ($[74] !== t18 || $[75] !== t19 || $[76] !== t20) {
8456
+ t21 = /* @__PURE__ */ jsxs("div", {
7200
8457
  className: "agent-computer__dock-trailing",
7201
8458
  children: [
7202
- t17,
7203
8459
  t18,
7204
- t19
8460
+ t19,
8461
+ t20
7205
8462
  ]
7206
8463
  });
7207
- $[71] = t17;
7208
- $[72] = t18;
7209
- $[73] = t19;
7210
- $[74] = t20;
7211
- } else t20 = $[74];
7212
- let t21;
7213
- if ($[75] !== inert || $[76] !== t11 || $[77] !== t13 || $[78] !== t16 || $[79] !== t20) {
7214
- t21 = /* @__PURE__ */ jsx(Tooltip.Provider, {
8464
+ $[74] = t18;
8465
+ $[75] = t19;
8466
+ $[76] = t20;
8467
+ $[77] = t21;
8468
+ } else t21 = $[77];
8469
+ let t22;
8470
+ if ($[78] !== inert || $[79] !== t12 || $[80] !== t14 || $[81] !== t17 || $[82] !== t21) {
8471
+ t22 = /* @__PURE__ */ jsx(Tooltip.Provider, {
7215
8472
  delay: 0,
7216
8473
  children: /* @__PURE__ */ jsxs("nav", {
7217
- ref: t11,
8474
+ ref: t12,
7218
8475
  className: "agent-computer__dock",
7219
8476
  inert,
7220
8477
  "aria-label": "Computer apps",
7221
- "aria-keyshortcuts": t12,
7222
- "data-has-favorites": t13,
7223
- onPointerMove: t14,
8478
+ "aria-keyshortcuts": t13,
8479
+ "data-has-favorites": t14,
8480
+ onPointerMove: t15,
7224
8481
  onPointerLeave: reset_0,
7225
8482
  onPointerCancel: reset_0,
7226
- onFocus: t15,
7227
- onKeyDown: _temp12,
7228
- children: [t16, t20]
8483
+ onFocus: t16,
8484
+ onKeyDown: _temp13,
8485
+ children: [t17, t21]
7229
8486
  })
7230
8487
  });
7231
- $[75] = inert;
7232
- $[76] = t11;
7233
- $[77] = t13;
7234
- $[78] = t16;
7235
- $[79] = t20;
7236
- $[80] = t21;
7237
- } else t21 = $[80];
7238
- return t21;
7239
- }
7240
- function _temp13(app_1) {
7241
- return app_1.launcher !== "hidden" && !app_1.owner;
7242
- }
7243
- function _temp12(event_1) {
8488
+ $[78] = inert;
8489
+ $[79] = t12;
8490
+ $[80] = t14;
8491
+ $[81] = t17;
8492
+ $[82] = t21;
8493
+ $[83] = t22;
8494
+ } else t22 = $[83];
8495
+ return t22;
8496
+ }
8497
+ function _temp13(event_1) {
7244
8498
  const element_2 = event_1.currentTarget;
7245
8499
  if (!element_2.contains(event_1.target)) return;
7246
8500
  if (event_1.altKey || event_1.ctrlKey || event_1.metaKey || event_1.shiftKey) return;
7247
- const items = [...element_2.querySelectorAll(STOPS)].filter(_temp11);
8501
+ const items = [...element_2.querySelectorAll(STOPS)].filter(_temp12);
7248
8502
  const index = items.indexOf(event_1.target);
7249
8503
  if (index < 0) return;
7250
8504
  const moves = {
@@ -7257,37 +8511,40 @@ function _temp12(event_1) {
7257
8511
  event_1.preventDefault();
7258
8512
  moves[event_1.key]?.focus();
7259
8513
  }
7260
- function _temp11(item_0) {
8514
+ function _temp12(item_0) {
7261
8515
  return item_0.offsetParent;
7262
8516
  }
7263
- function _temp10(app_0) {
8517
+ function _temp11(app_0) {
7264
8518
  return app_0.launcher === "favorite";
7265
8519
  }
7266
- function _temp9(t0) {
8520
+ function _temp10(t0) {
7267
8521
  const { id: id_0, launcher } = t0;
7268
8522
  return `${id_0}:${launcher}`;
7269
8523
  }
7270
- function _temp8() {
8524
+ function _temp9() {
7271
8525
  return /* @__PURE__ */ new Map();
7272
8526
  }
7273
- function _temp7(c_5) {
8527
+ function _temp8(c_5) {
7274
8528
  return c_5.getState().attention;
7275
8529
  }
7276
- function _temp6(c_4) {
8530
+ function _temp7(c_4) {
7277
8531
  return c_4.getState().minimized;
7278
8532
  }
7279
- function _temp5(c_3) {
8533
+ function _temp6(c_3) {
7280
8534
  return c_3.view.scenery;
7281
8535
  }
7282
- function _temp4(c_2) {
8536
+ function _temp5(c_2) {
7283
8537
  return c_2.getState().phone;
7284
8538
  }
7285
- function _temp3(c_1) {
8539
+ function _temp4(c_1) {
7286
8540
  return c_1.view.activeApp;
7287
8541
  }
7288
- function _temp2(c_0) {
8542
+ function _temp3(c_0) {
7289
8543
  return c_0.view.openApps;
7290
8544
  }
8545
+ function _temp2(store) {
8546
+ return store.get().dock;
8547
+ }
7291
8548
  function _temp(c) {
7292
8549
  return c.getState().apps;
7293
8550
  }
@@ -7554,7 +8811,7 @@ function DockTrash(t0) {
7554
8811
  let t2;
7555
8812
  if ($[0] !== computer || $[1] !== trash) {
7556
8813
  t2 = (event_0) => {
7557
- computer.openApp(trash.app, { from: event_0.currentTarget.querySelector(".agent-computer__app-icon") ?? void 0 });
8814
+ computer.openApp(COMPUTER_APP_IDS.files, { from: event_0.currentTarget.querySelector(".agent-computer__app-icon") ?? void 0 });
7558
8815
  trash.onOpen();
7559
8816
  };
7560
8817
  $[0] = computer;
@@ -7811,7 +9068,7 @@ function useAgentComputerAppHandlers(handlers) {
7811
9068
  }
7812
9069
  /** Dims the applied picture; previews show it undimmed. */
7813
9070
  const VEIL = "linear-gradient(rgb(0 0 0 / 60%), rgb(0 0 0 / 60%))";
7814
- const SIGVELO = COMPUTER_WALLPAPERS.find((option) => option.value === DEFAULT_COMPUTER_WALLPAPER);
9071
+ const NO_APPS = [];
7815
9072
  /**
7816
9073
  * One employee's desktop, reflowing to full-screen apps on a narrow host.
7817
9074
  * Composes AppFrame; owns only ephemeral window order, placement, minimize,
@@ -7822,301 +9079,425 @@ const SIGVELO = COMPUTER_WALLPAPERS.find((option) => option.value === DEFAULT_CO
7822
9079
  * Use a key when changing employee identity to reset their presentation state.
7823
9080
  */
7824
9081
  function AgentComputer(t0) {
7825
- const $ = c(84);
9082
+ const $ = c(118);
7826
9083
  let actionsRef;
7827
- let apps;
7828
- let defaultLayout;
7829
- let desktop;
7830
- let home;
9084
+ let connection;
9085
+ let extraResults;
9086
+ let extras;
7831
9087
  let homeWidget;
7832
- let name;
9088
+ let notifications;
7833
9089
  let onActiveAppChange;
7834
- let onLayoutChange;
9090
+ let onPresentationChange;
7835
9091
  let props;
9092
+ let savedPresentation;
7836
9093
  let selected;
7837
- let status;
7838
9094
  let style;
7839
9095
  let t1;
7840
- let trash;
7841
9096
  if ($[0] !== t0) {
7842
- ({name, actionsRef, status, homeWidget, activeAppId: selected, onActiveAppChange, apps, defaultLayout, onLayoutChange, home, desktop, trash, wallpaper: t1, style, ...props} = t0);
9097
+ ({actionsRef, homeWidget, activeAppId: selected, onActiveAppChange, apps: t1, presentation: savedPresentation, onPresentationChange, notifications, connection, extraResults, extras, style, ...props} = t0);
7843
9098
  $[0] = t0;
7844
9099
  $[1] = actionsRef;
7845
- $[2] = apps;
7846
- $[3] = defaultLayout;
7847
- $[4] = desktop;
7848
- $[5] = home;
7849
- $[6] = homeWidget;
7850
- $[7] = name;
7851
- $[8] = onActiveAppChange;
7852
- $[9] = onLayoutChange;
7853
- $[10] = props;
9100
+ $[2] = connection;
9101
+ $[3] = extraResults;
9102
+ $[4] = extras;
9103
+ $[5] = homeWidget;
9104
+ $[6] = notifications;
9105
+ $[7] = onActiveAppChange;
9106
+ $[8] = onPresentationChange;
9107
+ $[9] = props;
9108
+ $[10] = savedPresentation;
7854
9109
  $[11] = selected;
7855
- $[12] = status;
7856
- $[13] = style;
7857
- $[14] = t1;
7858
- $[15] = trash;
9110
+ $[12] = style;
9111
+ $[13] = t1;
7859
9112
  } else {
7860
9113
  actionsRef = $[1];
7861
- apps = $[2];
7862
- defaultLayout = $[3];
7863
- desktop = $[4];
7864
- home = $[5];
7865
- homeWidget = $[6];
7866
- name = $[7];
7867
- onActiveAppChange = $[8];
7868
- onLayoutChange = $[9];
7869
- props = $[10];
9114
+ connection = $[2];
9115
+ extraResults = $[3];
9116
+ extras = $[4];
9117
+ homeWidget = $[5];
9118
+ notifications = $[6];
9119
+ onActiveAppChange = $[7];
9120
+ onPresentationChange = $[8];
9121
+ props = $[9];
9122
+ savedPresentation = $[10];
7870
9123
  selected = $[11];
7871
- status = $[12];
7872
- style = $[13];
7873
- t1 = $[14];
7874
- trash = $[15];
9124
+ style = $[12];
9125
+ t1 = $[13];
7875
9126
  }
7876
- const wallpaper = t1 === void 0 ? SIGVELO : t1;
7877
- const t2 = React.useId();
9127
+ const hostApps = t1 === void 0 ? NO_APPS : t1;
9128
+ const host = React.use(HostContext);
9129
+ const hosts = React.use(AppHostsContext);
9130
+ hosts.files?.apps;
9131
+ let t2;
9132
+ if ($[14] !== hosts.screen) {
9133
+ t2 = hosts.screen ?? [];
9134
+ $[14] = hosts.screen;
9135
+ $[15] = t2;
9136
+ } else t2 = $[15];
7878
9137
  let t3;
7879
- if ($[16] !== t2) {
7880
- let t4;
7881
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
7882
- t4 = /[^a-z0-9]/gi;
7883
- $[18] = t4;
7884
- } else t4 = $[18];
7885
- t3 = t2.replaceAll(t4, "");
7886
- $[16] = t2;
9138
+ if ($[16] !== hosts.files?.apps) {
9139
+ t3 = hosts.files?.apps ?? [];
9140
+ $[16] = hosts.files?.apps;
7887
9141
  $[17] = t3;
7888
9142
  } else t3 = $[17];
7889
- const anchorPrefix = `--computer-miniature-${t3}`;
7890
9143
  let t4;
7891
- if ($[19] !== anchorPrefix || $[20] !== apps || $[21] !== defaultLayout || $[22] !== onActiveAppChange || $[23] !== onLayoutChange || $[24] !== selected) {
7892
- t4 = () => new ComputerController({
7893
- apps,
7894
- selected,
7895
- onActiveAppChange,
7896
- onLayoutChange
7897
- }, defaultLayout, anchorPrefix);
7898
- $[19] = anchorPrefix;
7899
- $[20] = apps;
7900
- $[21] = defaultLayout;
7901
- $[22] = onActiveAppChange;
7902
- $[23] = onLayoutChange;
7903
- $[24] = selected;
7904
- $[25] = t4;
7905
- } else t4 = $[25];
7906
- const [computer] = React.useState(t4);
9144
+ if ($[18] !== hosts.automations) {
9145
+ t4 = hosts.automations ?? [];
9146
+ $[18] = hosts.automations;
9147
+ $[19] = t4;
9148
+ } else t4 = $[19];
7907
9149
  let t5;
7908
- if ($[26] !== apps || $[27] !== computer || $[28] !== onActiveAppChange || $[29] !== onLayoutChange || $[30] !== selected) {
7909
- t5 = () => computer.receive({
9150
+ if ($[20] !== hosts.settings) {
9151
+ t5 = hosts.settings ? [hosts.settings.app] : [];
9152
+ $[20] = hosts.settings;
9153
+ $[21] = t5;
9154
+ } else t5 = $[21];
9155
+ let t6;
9156
+ if ($[22] !== hostApps || $[23] !== t2 || $[24] !== t3 || $[25] !== t4 || $[26] !== t5) {
9157
+ t6 = [
9158
+ ...t2,
9159
+ ...t3,
9160
+ ...t4,
9161
+ ...t5,
9162
+ ...hostApps
9163
+ ];
9164
+ $[22] = hostApps;
9165
+ $[23] = t2;
9166
+ $[24] = t3;
9167
+ $[25] = t4;
9168
+ $[26] = t5;
9169
+ $[27] = t6;
9170
+ } else t6 = $[27];
9171
+ const apps = t6;
9172
+ const t7 = React.useId();
9173
+ let t8;
9174
+ if ($[28] !== t7) {
9175
+ let t9;
9176
+ if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
9177
+ t9 = /[^a-z0-9]/gi;
9178
+ $[30] = t9;
9179
+ } else t9 = $[30];
9180
+ t8 = t7.replaceAll(t9, "");
9181
+ $[28] = t7;
9182
+ $[29] = t8;
9183
+ } else t8 = $[29];
9184
+ const anchorPrefix = `--computer-miniature-${t8}`;
9185
+ let t9;
9186
+ if ($[31] !== savedPresentation) {
9187
+ t9 = () => new PresentationStore(savedPresentation ?? DEFAULT_COMPUTER_PRESENTATION);
9188
+ $[31] = savedPresentation;
9189
+ $[32] = t9;
9190
+ } else t9 = $[32];
9191
+ const [presentation] = React.useState(t9);
9192
+ let t10;
9193
+ if ($[33] !== anchorPrefix || $[34] !== apps || $[35] !== onActiveAppChange || $[36] !== presentation || $[37] !== selected) {
9194
+ t10 = () => new ComputerController({
7910
9195
  apps,
7911
9196
  selected,
7912
9197
  onActiveAppChange,
7913
- onLayoutChange
7914
- });
7915
- $[26] = apps;
7916
- $[27] = computer;
7917
- $[28] = onActiveAppChange;
7918
- $[29] = onLayoutChange;
7919
- $[30] = selected;
7920
- $[31] = t5;
7921
- } else t5 = $[31];
7922
- React.useLayoutEffect(t5);
7923
- let t6;
7924
- let t7;
7925
- if ($[32] !== computer) {
7926
- t6 = () => () => computer.dispose();
7927
- t7 = [computer];
7928
- $[32] = computer;
7929
- $[33] = t6;
7930
- $[34] = t7;
9198
+ onLayoutChange: presentation.setLayout
9199
+ }, presentation.get().layout ?? void 0, anchorPrefix);
9200
+ $[33] = anchorPrefix;
9201
+ $[34] = apps;
9202
+ $[35] = onActiveAppChange;
9203
+ $[36] = presentation;
9204
+ $[37] = selected;
9205
+ $[38] = t10;
9206
+ } else t10 = $[38];
9207
+ const [computer] = React.useState(t10);
9208
+ let t11;
9209
+ if ($[39] !== apps || $[40] !== computer || $[41] !== onActiveAppChange || $[42] !== onPresentationChange || $[43] !== presentation || $[44] !== selected) {
9210
+ t11 = () => {
9211
+ presentation.receive(onPresentationChange);
9212
+ computer.receive({
9213
+ apps,
9214
+ selected,
9215
+ onActiveAppChange,
9216
+ onLayoutChange: presentation.setLayout
9217
+ });
9218
+ };
9219
+ $[39] = apps;
9220
+ $[40] = computer;
9221
+ $[41] = onActiveAppChange;
9222
+ $[42] = onPresentationChange;
9223
+ $[43] = presentation;
9224
+ $[44] = selected;
9225
+ $[45] = t11;
9226
+ } else t11 = $[45];
9227
+ React.useLayoutEffect(t11);
9228
+ let t12;
9229
+ let t13;
9230
+ if ($[46] !== computer) {
9231
+ t12 = () => () => computer.dispose();
9232
+ t13 = [computer];
9233
+ $[46] = computer;
9234
+ $[47] = t12;
9235
+ $[48] = t13;
7931
9236
  } else {
7932
- t6 = $[33];
7933
- t7 = $[34];
9237
+ t12 = $[47];
9238
+ t13 = $[48];
7934
9239
  }
7935
- React.useEffect(t6, t7);
7936
- let t8;
7937
- if ($[35] !== computer.actions) {
7938
- t8 = () => computer.actions;
7939
- $[35] = computer.actions;
7940
- $[36] = t8;
7941
- } else t8 = $[36];
7942
- let t9;
7943
- if ($[37] !== computer) {
7944
- t9 = [computer];
7945
- $[37] = computer;
7946
- $[38] = t9;
7947
- } else t9 = $[38];
7948
- React.useImperativeHandle(actionsRef, t8, t9);
7949
- const [portal, setPortal] = React.useState(null);
7950
- const t10 = computer.actions;
7951
- const t11 = computer.handlers;
7952
- const t12 = `${VEIL}, ${wallpaper.background}`;
7953
- let t13;
7954
- if ($[39] !== wallpaper.darkBackground) {
7955
- t13 = wallpaper.darkBackground && { "--sigvelo-recipe-computer-wallpaper-dark": `${VEIL}, ${wallpaper.darkBackground}` };
7956
- $[39] = wallpaper.darkBackground;
7957
- $[40] = t13;
7958
- } else t13 = $[40];
9240
+ React.useEffect(t12, t13);
9241
+ const mounted = host?.computer;
7959
9242
  let t14;
7960
- if ($[41] !== style || $[42] !== t12 || $[43] !== t13) {
7961
- t14 = {
7962
- "--sigvelo-recipe-computer-wallpaper": t12,
7963
- ...t13,
7964
- ...style
7965
- };
7966
- $[41] = style;
7967
- $[42] = t12;
7968
- $[43] = t13;
7969
- $[44] = t14;
7970
- } else t14 = $[44];
7971
- const t15 = t14;
7972
- const t16 = Boolean(homeWidget);
7973
- const t17 = desktop !== void 0;
9243
+ let t15;
9244
+ if ($[49] !== computer || $[50] !== mounted) {
9245
+ t14 = () => mounted?.attach(computer);
9246
+ t15 = [mounted, computer];
9247
+ $[49] = computer;
9248
+ $[50] = mounted;
9249
+ $[51] = t14;
9250
+ $[52] = t15;
9251
+ } else {
9252
+ t14 = $[51];
9253
+ t15 = $[52];
9254
+ }
9255
+ React.useLayoutEffect(t14, t15);
9256
+ let t16;
9257
+ if ($[53] !== computer.actions) {
9258
+ t16 = () => computer.actions;
9259
+ $[53] = computer.actions;
9260
+ $[54] = t16;
9261
+ } else t16 = $[54];
9262
+ let t17;
9263
+ if ($[55] !== computer) {
9264
+ t17 = [computer];
9265
+ $[55] = computer;
9266
+ $[56] = t17;
9267
+ } else t17 = $[56];
9268
+ React.useImperativeHandle(actionsRef, t16, t17);
9269
+ const [portal, setPortal] = React.useState(null);
7974
9270
  let t18;
7975
- if ($[45] !== homeWidget || $[46] !== name || $[47] !== status) {
7976
- t18 = /* @__PURE__ */ jsx(ShellBar, {
7977
- name,
7978
- status,
7979
- homeWidget
7980
- });
7981
- $[45] = homeWidget;
7982
- $[46] = name;
7983
- $[47] = status;
7984
- $[48] = t18;
7985
- } else t18 = $[48];
9271
+ if ($[57] !== presentation) {
9272
+ t18 = () => presentation.get().wallpaper;
9273
+ $[57] = presentation;
9274
+ $[58] = t18;
9275
+ } else t18 = $[58];
9276
+ const savedWallpaper = React.useSyncExternalStore(presentation.subscribe, t18);
7986
9277
  let t19;
7987
- if ($[49] !== apps || $[50] !== desktop || $[51] !== home) {
7988
- t19 = /* @__PURE__ */ jsx(ShellStage, {
7989
- home,
9278
+ if ($[59] !== presentation) {
9279
+ t19 = (wallpaper) => presentation.update({ wallpaper });
9280
+ $[59] = presentation;
9281
+ $[60] = t19;
9282
+ } else t19 = $[60];
9283
+ const appearance = useComputerWallpaper(savedWallpaper, t19);
9284
+ const wallpaper_0 = appearance.selected;
9285
+ const desktop = hosts.files?.desktop;
9286
+ const t20 = computer.actions;
9287
+ const t21 = computer.handlers;
9288
+ const t22 = `${VEIL}, ${wallpaper_0.background}`;
9289
+ let t23;
9290
+ if ($[61] !== wallpaper_0.darkBackground) {
9291
+ t23 = wallpaper_0.darkBackground && { "--sigvelo-recipe-computer-wallpaper-dark": `${VEIL}, ${wallpaper_0.darkBackground}` };
9292
+ $[61] = wallpaper_0.darkBackground;
9293
+ $[62] = t23;
9294
+ } else t23 = $[62];
9295
+ let t24;
9296
+ if ($[63] !== style || $[64] !== t22 || $[65] !== t23) {
9297
+ t24 = {
9298
+ "--sigvelo-recipe-computer-wallpaper": t22,
9299
+ ...t23,
9300
+ ...style
9301
+ };
9302
+ $[63] = style;
9303
+ $[64] = t22;
9304
+ $[65] = t23;
9305
+ $[66] = t24;
9306
+ } else t24 = $[66];
9307
+ const t25 = t24;
9308
+ const t26 = Boolean(homeWidget);
9309
+ const t27 = desktop !== void 0;
9310
+ const t28 = host?.employee.name ?? "";
9311
+ let t29;
9312
+ if ($[67] !== connection || $[68] !== extraResults || $[69] !== extras || $[70] !== notifications) {
9313
+ t29 = /* @__PURE__ */ jsx(ComputerMenuExtras, {
9314
+ notifications,
9315
+ connection,
9316
+ extraResults,
9317
+ extras
9318
+ });
9319
+ $[67] = connection;
9320
+ $[68] = extraResults;
9321
+ $[69] = extras;
9322
+ $[70] = notifications;
9323
+ $[71] = t29;
9324
+ } else t29 = $[71];
9325
+ let t30;
9326
+ if ($[72] !== homeWidget || $[73] !== t28 || $[74] !== t29) {
9327
+ t30 = /* @__PURE__ */ jsx(ShellBar, {
9328
+ name: t28,
9329
+ homeWidget,
9330
+ status: t29
9331
+ });
9332
+ $[72] = homeWidget;
9333
+ $[73] = t28;
9334
+ $[74] = t29;
9335
+ $[75] = t30;
9336
+ } else t30 = $[75];
9337
+ let t31;
9338
+ if ($[76] === Symbol.for("react.memo_cache_sentinel")) {
9339
+ t31 = /* @__PURE__ */ jsx(ComputerHome, {});
9340
+ $[76] = t31;
9341
+ } else t31 = $[76];
9342
+ let t32;
9343
+ if ($[77] !== apps || $[78] !== desktop) {
9344
+ t32 = /* @__PURE__ */ jsx(ShellStage, {
9345
+ home: t31,
7990
9346
  desktop,
7991
9347
  apps
7992
9348
  });
7993
- $[49] = apps;
7994
- $[50] = desktop;
7995
- $[51] = home;
7996
- $[52] = t19;
7997
- } else t19 = $[52];
7998
- let t20;
7999
- if ($[53] === Symbol.for("react.memo_cache_sentinel")) {
8000
- t20 = /* @__PURE__ */ jsx(ShellExpose, {});
8001
- $[53] = t20;
8002
- } else t20 = $[53];
8003
- let t21;
8004
- if ($[54] !== name || $[55] !== trash) {
8005
- t21 = /* @__PURE__ */ jsx(ComputerDock, {
8006
- trash,
8007
- name
9349
+ $[77] = apps;
9350
+ $[78] = desktop;
9351
+ $[79] = t32;
9352
+ } else t32 = $[79];
9353
+ let t33;
9354
+ if ($[80] === Symbol.for("react.memo_cache_sentinel")) {
9355
+ t33 = /* @__PURE__ */ jsx(ShellExpose, {});
9356
+ $[80] = t33;
9357
+ } else t33 = $[80];
9358
+ const t34 = hosts.files?.trash;
9359
+ const t35 = host?.employee.name ?? "";
9360
+ let t36;
9361
+ if ($[81] !== t34 || $[82] !== t35) {
9362
+ t36 = /* @__PURE__ */ jsx(ComputerDock, {
9363
+ trash: t34,
9364
+ name: t35
8008
9365
  });
8009
- $[54] = name;
8010
- $[55] = trash;
8011
- $[56] = t21;
8012
- } else t21 = $[56];
8013
- let t22;
8014
- if ($[57] === Symbol.for("react.memo_cache_sentinel")) {
8015
- t22 = /* @__PURE__ */ jsx(ShellAnnouncer, {});
8016
- $[57] = t22;
8017
- } else t22 = $[57];
8018
- let t23;
8019
- if ($[58] !== t19 || $[59] !== t21) {
8020
- t23 = /* @__PURE__ */ jsxs(AppFrame.Body, {
9366
+ $[81] = t34;
9367
+ $[82] = t35;
9368
+ $[83] = t36;
9369
+ } else t36 = $[83];
9370
+ let t37;
9371
+ if ($[84] === Symbol.for("react.memo_cache_sentinel")) {
9372
+ t37 = /* @__PURE__ */ jsx(ShellAnnouncer, {});
9373
+ $[84] = t37;
9374
+ } else t37 = $[84];
9375
+ let t38;
9376
+ if ($[85] !== t32 || $[86] !== t36) {
9377
+ t38 = /* @__PURE__ */ jsxs(AppFrame.Body, {
8021
9378
  className: "agent-computer__body",
8022
9379
  children: [
8023
- t19,
8024
- t20,
8025
- t21,
8026
- t22
9380
+ t32,
9381
+ t33,
9382
+ t36,
9383
+ t37
8027
9384
  ]
8028
9385
  });
8029
- $[58] = t19;
8030
- $[59] = t21;
8031
- $[60] = t23;
8032
- } else t23 = $[60];
8033
- let t24;
8034
- let t25;
8035
- let t26;
8036
- let t27;
8037
- if ($[61] === Symbol.for("react.memo_cache_sentinel")) {
8038
- t24 = /* @__PURE__ */ jsx(ShellRevealEdges, {});
8039
- t25 = /* @__PURE__ */ jsx(ShellAppSwitch, {});
8040
- t26 = /* @__PURE__ */ jsx("div", {
9386
+ $[85] = t32;
9387
+ $[86] = t36;
9388
+ $[87] = t38;
9389
+ } else t38 = $[87];
9390
+ let t39;
9391
+ let t40;
9392
+ let t41;
9393
+ if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
9394
+ t39 = /* @__PURE__ */ jsx(ShellRevealEdges, {});
9395
+ t40 = /* @__PURE__ */ jsx(ShellAppSwitch, {});
9396
+ t41 = /* @__PURE__ */ jsx("div", {
8041
9397
  ref: setPortal,
8042
9398
  className: "agent-computer__portal"
8043
9399
  });
8044
- t27 = /* @__PURE__ */ jsx(ShellEffects, {});
8045
- $[61] = t24;
8046
- $[62] = t25;
8047
- $[63] = t26;
8048
- $[64] = t27;
9400
+ $[88] = t39;
9401
+ $[89] = t40;
9402
+ $[90] = t41;
8049
9403
  } else {
8050
- t24 = $[61];
8051
- t25 = $[62];
8052
- t26 = $[63];
8053
- t27 = $[64];
8054
- }
8055
- let t28;
8056
- if ($[65] !== props || $[66] !== t15 || $[67] !== t16 || $[68] !== t17 || $[69] !== t18 || $[70] !== t23) {
8057
- t28 = /* @__PURE__ */ jsxs(ShellRoot, {
9404
+ t39 = $[88];
9405
+ t40 = $[89];
9406
+ t41 = $[90];
9407
+ }
9408
+ const t42 = hosts.files?.dialogs;
9409
+ let t43;
9410
+ if ($[91] === Symbol.for("react.memo_cache_sentinel")) {
9411
+ t43 = /* @__PURE__ */ jsx(ShellEffects, {});
9412
+ $[91] = t43;
9413
+ } else t43 = $[91];
9414
+ let t44;
9415
+ if ($[92] !== props || $[93] !== t25 || $[94] !== t26 || $[95] !== t27 || $[96] !== t30 || $[97] !== t38 || $[98] !== t42) {
9416
+ t44 = /* @__PURE__ */ jsxs(ShellRoot, {
8058
9417
  ...props,
8059
- style: t15,
8060
- homeWidget: t16,
8061
- desktop: t17,
9418
+ style: t25,
9419
+ homeWidget: t26,
9420
+ desktop: t27,
8062
9421
  children: [
8063
- t18,
8064
- t23,
8065
- t24,
8066
- t25,
8067
- t26,
8068
- t27
9422
+ t30,
9423
+ t38,
9424
+ t39,
9425
+ t40,
9426
+ t41,
9427
+ t42,
9428
+ t43
8069
9429
  ]
8070
9430
  });
8071
- $[65] = props;
8072
- $[66] = t15;
8073
- $[67] = t16;
8074
- $[68] = t17;
8075
- $[69] = t18;
8076
- $[70] = t23;
8077
- $[71] = t28;
8078
- } else t28 = $[71];
8079
- let t29;
8080
- if ($[72] !== portal || $[73] !== t28) {
8081
- t29 = /* @__PURE__ */ jsx(PortalContext, {
9431
+ $[92] = props;
9432
+ $[93] = t25;
9433
+ $[94] = t26;
9434
+ $[95] = t27;
9435
+ $[96] = t30;
9436
+ $[97] = t38;
9437
+ $[98] = t42;
9438
+ $[99] = t44;
9439
+ } else t44 = $[99];
9440
+ let t45;
9441
+ if ($[100] !== appearance || $[101] !== t44) {
9442
+ t45 = /* @__PURE__ */ jsx(AppearanceContext, {
9443
+ value: appearance,
9444
+ children: t44
9445
+ });
9446
+ $[100] = appearance;
9447
+ $[101] = t44;
9448
+ $[102] = t45;
9449
+ } else t45 = $[102];
9450
+ let t46;
9451
+ if ($[103] !== presentation || $[104] !== t45) {
9452
+ t46 = /* @__PURE__ */ jsx(PresentationContext, {
9453
+ value: presentation,
9454
+ children: t45
9455
+ });
9456
+ $[103] = presentation;
9457
+ $[104] = t45;
9458
+ $[105] = t46;
9459
+ } else t46 = $[105];
9460
+ let t47;
9461
+ if ($[106] !== portal || $[107] !== t46) {
9462
+ t47 = /* @__PURE__ */ jsx(PortalContext, {
8082
9463
  value: portal,
8083
- children: t28
9464
+ children: t46
8084
9465
  });
8085
- $[72] = portal;
8086
- $[73] = t28;
8087
- $[74] = t29;
8088
- } else t29 = $[74];
8089
- let t30;
8090
- if ($[75] !== computer.handlers || $[76] !== t29) {
8091
- t30 = /* @__PURE__ */ jsx(HandlersContext, {
8092
- value: t11,
8093
- children: t29
8094
- });
8095
- $[75] = computer.handlers;
8096
- $[76] = t29;
8097
- $[77] = t30;
8098
- } else t30 = $[77];
8099
- let t31;
8100
- if ($[78] !== computer.actions || $[79] !== t30) {
8101
- t31 = /* @__PURE__ */ jsx(ActionsContext, {
8102
- value: t10,
8103
- children: t30
8104
- });
8105
- $[78] = computer.actions;
8106
- $[79] = t30;
8107
- $[80] = t31;
8108
- } else t31 = $[80];
8109
- let t32;
8110
- if ($[81] !== computer || $[82] !== t31) {
8111
- t32 = /* @__PURE__ */ jsx(ComputerContext, {
9466
+ $[106] = portal;
9467
+ $[107] = t46;
9468
+ $[108] = t47;
9469
+ } else t47 = $[108];
9470
+ let t48;
9471
+ if ($[109] !== computer.handlers || $[110] !== t47) {
9472
+ t48 = /* @__PURE__ */ jsx(HandlersContext, {
9473
+ value: t21,
9474
+ children: t47
9475
+ });
9476
+ $[109] = computer.handlers;
9477
+ $[110] = t47;
9478
+ $[111] = t48;
9479
+ } else t48 = $[111];
9480
+ let t49;
9481
+ if ($[112] !== computer.actions || $[113] !== t48) {
9482
+ t49 = /* @__PURE__ */ jsx(ActionsContext, {
9483
+ value: t20,
9484
+ children: t48
9485
+ });
9486
+ $[112] = computer.actions;
9487
+ $[113] = t48;
9488
+ $[114] = t49;
9489
+ } else t49 = $[114];
9490
+ let t50;
9491
+ if ($[115] !== computer || $[116] !== t49) {
9492
+ t50 = /* @__PURE__ */ jsx(ComputerContext, {
8112
9493
  value: computer,
8113
- children: t31
9494
+ children: t49
8114
9495
  });
8115
- $[81] = computer;
8116
- $[82] = t31;
8117
- $[83] = t32;
8118
- } else t32 = $[83];
8119
- return t32;
9496
+ $[115] = computer;
9497
+ $[116] = t49;
9498
+ $[117] = t50;
9499
+ } else t50 = $[117];
9500
+ return t50;
8120
9501
  }
8121
9502
  //#endregion
8122
- export { useAgentComputerWindow as a, useAgentComputerPortalContainer as i, useAgentComputerActions as n, useAgentComputerWindowActive as o, useAgentComputerAppHandlers as r, chordLabel as s, AgentComputer as t };
9503
+ export { useAgentComputerWindow as a, COMPUTER_SPOTLIGHT_SHORTCUT as c, ComputerClock as d, ComputerNotifications as f, useAgentComputerPortalContainer as i, ComputerSpotlight as l, chordLabel as m, useAgentComputerActions as n, useAgentComputerWindowActive as o, useMinuteClock as p, useAgentComputerAppHandlers as r, ComputerHome as s, AgentComputer as t, ComputerAppearanceMenu as u };