@mcp-b/react-components 0.69.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AgentComputer-CpS9R2KG.d.ts +305 -0
- package/dist/{AgentComputer-CFJxjMFE.js → AgentComputer-DZCyQkcE.js} +1850 -478
- package/dist/CommandPalette-DDctKdpC.d.ts +53 -0
- package/dist/ComputerCalendar-Ci7tLASe.js +1360 -0
- package/dist/ComputerCustomWallpaper-CnGQYHp0.js +518 -0
- package/dist/ComputerCustomWallpaper-D4lgwj2k.d.ts +18 -0
- package/dist/ComputerNotifications-q7eeELZ8.d.ts +41 -0
- package/dist/ComputerPresentation-BEQKYAjc.js +888 -0
- package/dist/Context-CYUxZrwW.js +918 -0
- package/dist/{ExecutionResult-C7SzVquo.js → ExecutionResult-CXnGcmM4.js} +1 -1
- package/dist/{WorkspaceBrowser-ojoZy0uO.js → WorkspaceBrowser-mRScUczT.js} +5 -5
- package/dist/WorkspaceFileTransfer-D2cOoVyO.js +1625 -0
- package/dist/{WorkspaceMessageResponse-BoeeltJM.js → WorkspaceMessageResponse-CXGOQgpo.js} +1 -1
- package/dist/components/agents-sdk/AgentComputer.d.ts +2 -276
- package/dist/components/agents-sdk/AgentComputer.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/ComputerAutomations.d.ts +5 -15
- package/dist/components/agents-sdk/ComputerAutomations.js +164 -145
- package/dist/components/agents-sdk/ComputerCalendar.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerCalendar.js +1 -1344
- package/dist/components/agents-sdk/ComputerCustomWallpaper.d.ts +2 -39
- package/dist/components/agents-sdk/ComputerCustomWallpaper.js +2 -522
- package/dist/components/agents-sdk/ComputerFiles.d.ts +18 -81
- package/dist/components/agents-sdk/ComputerFiles.js +365 -89
- package/dist/components/agents-sdk/ComputerHome.d.ts +6 -11
- package/dist/components/agents-sdk/ComputerHome.js +1 -89
- package/dist/components/agents-sdk/ComputerHost.d.ts +43 -0
- package/dist/components/agents-sdk/ComputerHost.js +97 -0
- package/dist/components/agents-sdk/ComputerLayout.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerNotifications.d.ts +2 -54
- package/dist/components/agents-sdk/ComputerNotifications.js +1 -668
- package/dist/components/agents-sdk/ComputerPresentation.d.ts +2 -0
- package/dist/components/agents-sdk/ComputerPresentation.js +2 -0
- package/dist/components/agents-sdk/ComputerScreen.d.ts +14 -14
- package/dist/components/agents-sdk/ComputerScreen.js +109 -50
- package/dist/components/agents-sdk/ComputerSettings.d.ts +12 -40
- package/dist/components/agents-sdk/ComputerSettings.js +249 -1038
- package/dist/components/agents-sdk/ComputerSpotlight.d.ts +13 -15
- package/dist/components/agents-sdk/ComputerSpotlight.js +1 -231
- package/dist/components/agents-sdk/ComputerViewer.d.ts +13 -17
- package/dist/components/agents-sdk/ComputerViewer.js +176 -187
- package/dist/components/agents-sdk/ComputerWallpapers.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +2 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +2 -2
- package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
- package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +3 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +2 -2
- package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +4 -4
- package/dist/components/agents-sdk/ThinkScheduleForm.js +3 -3
- package/dist/components/agents-sdk/WorkspaceAutomation.js +3 -3
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -5
- package/dist/components/agents-sdk/WorkspaceDesktop.js +53 -41
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -3
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +1 -924
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +1 -1
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +1 -504
- package/dist/components/agents-sdk/WorkspaceFileView.js +6 -6
- package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +9 -0
- package/dist/components/agents-sdk/WorkspaceLive.js +2 -177
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
- package/dist/components/ai-sdk/Context.js +1 -842
- package/dist/components/ai-sdk/Plan.d.ts +33 -9
- package/dist/components/ai-sdk/Plan.js +336 -107
- package/dist/components/ai-sdk/PromptInput.js +1 -1
- package/dist/components/extension/FirstRunSetup.js +2 -2
- package/dist/components/foundations/ThemeProvider.d.ts +2 -0
- package/dist/components/foundations/ThemeProvider.js +2 -1
- package/dist/components/general-purpose/CommandPalette.d.ts +2 -52
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -2
- package/dist/components/nanites/AgentConnection.js +1 -1
- package/dist/components/nanites/AgentToolDetail.js +1 -1
- package/dist/context-BWJpR084.js +94 -0
- package/dist/{parts-CPVz9l31.js → parts-DuT5-rDz.js} +1 -1
- package/dist/styles/agent-computer.css +16 -0
- package/dist/styles/computer-files.css +5 -0
- package/dist/styles/computer-notifications.css +1 -0
- package/dist/styles/plan.css +160 -23
- package/dist/{workspace-drag-B6hMXUNt.js → workspace-drag-BNhZIN8F.js} +1 -1
- package/dist/{workspace-quick-look-DODjsfhH.js → workspace-quick-look-8cbGu1Xf.js} +2 -2
- package/package.json +2 -2
- package/dist/WallpaperPicker-C-FItmDS.d.ts +0 -34
- package/dist/automations-host-DPORjdc7.js +0 -17
- package/dist/context-Ddsp8HgD.js +0 -43
- package/dist/minute-clock-CXpRGCMF.js +0 -35
- package/dist/progress-ring-BO649JA9.js +0 -79
- package/dist/{ManagerOffice-kSK7vTBl.js → ManagerOffice-BJ2vs-Lr.js} +2 -2
- 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-
|
|
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
|
|
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 = {
|
|
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
|
-
|
|
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$
|
|
3070
|
-
const apps = useComputerSlice(_temp2$
|
|
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$
|
|
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$
|
|
3199
|
+
function _temp3$6(event) {
|
|
3185
3200
|
if (event.target === event.currentTarget) event.preventDefault();
|
|
3186
3201
|
}
|
|
3187
|
-
function _temp2$
|
|
3202
|
+
function _temp2$7(c_0) {
|
|
3188
3203
|
return c_0.getState().apps;
|
|
3189
3204
|
}
|
|
3190
|
-
function _temp$
|
|
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,1225 @@ 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
|
+
/**
|
|
4391
|
+
* Spotlight, which `AgentComputer` draws in its menu bar: a trigger, the ⌘K,
|
|
4392
|
+
* ⌃K and ⌥Space shortcuts within this computer, and `CommandPalette` over the
|
|
4393
|
+
* apps, the files last written, the host's results, Settings' actions, and
|
|
4394
|
+
* the workspace's other files and folders. It centres on this screen and
|
|
4395
|
+
* blocks only it.
|
|
4396
|
+
*/
|
|
4397
|
+
function ComputerSpotlight(t0) {
|
|
4398
|
+
const $ = c(49);
|
|
4399
|
+
const { extraResults: t1 } = t0;
|
|
4400
|
+
const extraResults = t1 === void 0 ? NO_RESULTS : t1;
|
|
4401
|
+
const { openApp } = useAgentComputerActions();
|
|
4402
|
+
const computer = useComputer();
|
|
4403
|
+
const open = useComputerSlice(_temp$7);
|
|
4404
|
+
const onOpenChange = computer.setSpotlight;
|
|
4405
|
+
const catalog = useComputerSlice(_temp2$5);
|
|
4406
|
+
const arrangement = usePresentation(_temp3$4);
|
|
4407
|
+
let t2;
|
|
4408
|
+
if ($[0] !== arrangement || $[1] !== catalog) {
|
|
4409
|
+
t2 = arrangeDock(catalog, arrangement);
|
|
4410
|
+
$[0] = arrangement;
|
|
4411
|
+
$[1] = catalog;
|
|
4412
|
+
$[2] = t2;
|
|
4413
|
+
} else t2 = $[2];
|
|
4414
|
+
const apps = t2.ordered;
|
|
4415
|
+
const { files, settings } = React.use(AppHostsContext);
|
|
4416
|
+
let t3;
|
|
4417
|
+
if ($[3] !== extraResults || $[4] !== files || $[5] !== settings) {
|
|
4418
|
+
t3 = async function search(query) {
|
|
4419
|
+
const [found, extra] = await Promise.all([files?.spotlight(query) ?? {
|
|
4420
|
+
recent: [],
|
|
4421
|
+
found: []
|
|
4422
|
+
}, extraResults(query)]);
|
|
4423
|
+
const actions = settings ? [
|
|
4424
|
+
{
|
|
4425
|
+
id: "action:background",
|
|
4426
|
+
label: "Change background",
|
|
4427
|
+
group: "Actions",
|
|
4428
|
+
keywords: ["wallpaper", "image"],
|
|
4429
|
+
icon: /* @__PURE__ */ jsx(WrenchIcon, {}),
|
|
4430
|
+
onSelect: () => settings.open("appearance")
|
|
4431
|
+
},
|
|
4432
|
+
{
|
|
4433
|
+
id: "action:dock",
|
|
4434
|
+
label: "Customize Dock",
|
|
4435
|
+
group: "Actions",
|
|
4436
|
+
keywords: [
|
|
4437
|
+
"pin",
|
|
4438
|
+
"reorder",
|
|
4439
|
+
"hide"
|
|
4440
|
+
],
|
|
4441
|
+
icon: /* @__PURE__ */ jsx(WrenchIcon, {}),
|
|
4442
|
+
onSelect: () => settings.open("dock")
|
|
4443
|
+
},
|
|
4444
|
+
{
|
|
4445
|
+
id: "action:shortcuts",
|
|
4446
|
+
label: "Keyboard shortcuts",
|
|
4447
|
+
group: "Actions",
|
|
4448
|
+
icon: /* @__PURE__ */ jsx(KeyboardIcon, {}),
|
|
4449
|
+
onSelect: () => settings.open("shortcuts")
|
|
4450
|
+
}
|
|
4451
|
+
] : [];
|
|
4452
|
+
return [
|
|
4453
|
+
...found.recent,
|
|
4454
|
+
...extra,
|
|
4455
|
+
...actions,
|
|
4456
|
+
...found.found
|
|
4457
|
+
];
|
|
4458
|
+
};
|
|
4459
|
+
$[3] = extraResults;
|
|
4460
|
+
$[4] = files;
|
|
4461
|
+
$[5] = settings;
|
|
4462
|
+
$[6] = t3;
|
|
4463
|
+
} else t3 = $[6];
|
|
4464
|
+
const search = t3;
|
|
4465
|
+
const container = useAgentComputerPortalContainer();
|
|
4466
|
+
const trigger = React.useRef(null);
|
|
4467
|
+
const [query_0, setQuery] = React.useState("");
|
|
4468
|
+
const [attempt, setAttempt] = React.useState(0);
|
|
4469
|
+
let t4;
|
|
4470
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4471
|
+
t4 = {
|
|
4472
|
+
request: null,
|
|
4473
|
+
status: "done",
|
|
4474
|
+
commands: []
|
|
4475
|
+
};
|
|
4476
|
+
$[7] = t4;
|
|
4477
|
+
} else t4 = $[7];
|
|
4478
|
+
const [results, setResults] = React.useState(t4);
|
|
4479
|
+
const request = `${attempt}:${query_0}`;
|
|
4480
|
+
const status = results.request === request ? results.status : "loading";
|
|
4481
|
+
let t5;
|
|
4482
|
+
if ($[8] !== query_0 || $[9] !== request || $[10] !== search) {
|
|
4483
|
+
t5 = (signal) => {
|
|
4484
|
+
search(query_0).then((commands) => !signal.stale && setResults({
|
|
4485
|
+
request,
|
|
4486
|
+
status: "done",
|
|
4487
|
+
commands
|
|
4488
|
+
}), () => !signal.stale && setResults((current) => ({
|
|
4489
|
+
request,
|
|
4490
|
+
status: "error",
|
|
4491
|
+
commands: current.commands
|
|
4492
|
+
})));
|
|
4493
|
+
};
|
|
4494
|
+
$[8] = query_0;
|
|
4495
|
+
$[9] = request;
|
|
4496
|
+
$[10] = search;
|
|
4497
|
+
$[11] = t5;
|
|
4498
|
+
} else t5 = $[11];
|
|
4499
|
+
const run = React.useEffectEvent(t5);
|
|
4500
|
+
let t6;
|
|
4501
|
+
if ($[12] !== open || $[13] !== run) {
|
|
4502
|
+
t6 = () => {
|
|
4503
|
+
if (!open) return;
|
|
4504
|
+
const signal_0 = { stale: false };
|
|
4505
|
+
run(signal_0);
|
|
4506
|
+
return () => {
|
|
4507
|
+
signal_0.stale = true;
|
|
4508
|
+
};
|
|
4509
|
+
};
|
|
4510
|
+
$[12] = open;
|
|
4511
|
+
$[13] = run;
|
|
4512
|
+
$[14] = t6;
|
|
4513
|
+
} else t6 = $[14];
|
|
4514
|
+
let t7;
|
|
4515
|
+
if ($[15] !== open || $[16] !== request) {
|
|
4516
|
+
t7 = [open, request];
|
|
4517
|
+
$[15] = open;
|
|
4518
|
+
$[16] = request;
|
|
4519
|
+
$[17] = t7;
|
|
4520
|
+
} else t7 = $[17];
|
|
4521
|
+
React.useEffect(t6, t7);
|
|
4522
|
+
let t8;
|
|
4523
|
+
if ($[18] !== open) {
|
|
4524
|
+
t8 = () => open;
|
|
4525
|
+
$[18] = open;
|
|
4526
|
+
$[19] = t8;
|
|
4527
|
+
} else t8 = $[19];
|
|
4528
|
+
const isOpen = React.useEffectEvent(t8);
|
|
4529
|
+
let t9;
|
|
4530
|
+
if ($[20] !== onOpenChange || $[21] !== open) {
|
|
4531
|
+
t9 = () => onOpenChange(!open);
|
|
4532
|
+
$[20] = onOpenChange;
|
|
4533
|
+
$[21] = open;
|
|
4534
|
+
$[22] = t9;
|
|
4535
|
+
} else t9 = $[22];
|
|
4536
|
+
const toggle = React.useEffectEvent(t9);
|
|
4537
|
+
let t10;
|
|
4538
|
+
if ($[23] !== isOpen || $[24] !== toggle) {
|
|
4539
|
+
t10 = () => {
|
|
4540
|
+
const computer_0 = trigger.current?.closest("[data-slot=\"agent-computer\"]");
|
|
4541
|
+
if (!computer_0) return;
|
|
4542
|
+
const doc = computer_0.ownerDocument;
|
|
4543
|
+
const shortcut = function shortcut(event) {
|
|
4544
|
+
const commandK = !event.altKey && (event.ctrlKey || event.metaKey) && event.key.toLowerCase() === "k";
|
|
4545
|
+
const spotlight = event.altKey && !event.ctrlKey && !event.metaKey && event.code === "Space";
|
|
4546
|
+
if (event.defaultPrevented || event.isComposing || event.shiftKey || !(commandK || spotlight)) return;
|
|
4547
|
+
const target = event.target;
|
|
4548
|
+
if (!(target instanceof HTMLElement)) return;
|
|
4549
|
+
const inPalette = isOpen() && target.closest("[data-command-palette]");
|
|
4550
|
+
if (!computer_0.contains(target) && target !== doc.body && !inPalette) return;
|
|
4551
|
+
if (target.closest("[role=\"dialog\"], [role=\"menu\"]") && !inPalette) return;
|
|
4552
|
+
event.preventDefault();
|
|
4553
|
+
toggle();
|
|
4554
|
+
};
|
|
4555
|
+
doc.addEventListener("keydown", shortcut);
|
|
4556
|
+
return () => doc.removeEventListener("keydown", shortcut);
|
|
4557
|
+
};
|
|
4558
|
+
$[23] = isOpen;
|
|
4559
|
+
$[24] = toggle;
|
|
4560
|
+
$[25] = t10;
|
|
4561
|
+
} else t10 = $[25];
|
|
4562
|
+
let t11;
|
|
4563
|
+
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4564
|
+
t11 = [];
|
|
4565
|
+
$[26] = t11;
|
|
4566
|
+
} else t11 = $[26];
|
|
4567
|
+
React.useEffect(t10, t11);
|
|
4568
|
+
let t12;
|
|
4569
|
+
if ($[27] !== apps || $[28] !== openApp || $[29] !== results.commands) {
|
|
4570
|
+
let t13;
|
|
4571
|
+
if ($[31] !== openApp) {
|
|
4572
|
+
t13 = (app) => ({
|
|
4573
|
+
id: `app:${app.id}`,
|
|
4574
|
+
label: app.label,
|
|
4575
|
+
group: "Applications",
|
|
4576
|
+
icon: /* @__PURE__ */ jsx(AppIcon.Root, {
|
|
4577
|
+
size: "sm",
|
|
4578
|
+
"aria-hidden": "true",
|
|
4579
|
+
children: app.icon
|
|
4580
|
+
}),
|
|
4581
|
+
onSelect: () => void openApp(app.id),
|
|
4582
|
+
preload: app.preload
|
|
4583
|
+
});
|
|
4584
|
+
$[31] = openApp;
|
|
4585
|
+
$[32] = t13;
|
|
4586
|
+
} else t13 = $[32];
|
|
4587
|
+
t12 = [...apps.map(t13), ...results.commands];
|
|
4588
|
+
$[27] = apps;
|
|
4589
|
+
$[28] = openApp;
|
|
4590
|
+
$[29] = results.commands;
|
|
4591
|
+
$[30] = t12;
|
|
4592
|
+
} else t12 = $[30];
|
|
4593
|
+
const commands_0 = t12;
|
|
4594
|
+
let t13;
|
|
4595
|
+
if ($[33] !== onOpenChange) {
|
|
4596
|
+
t13 = () => onOpenChange(true);
|
|
4597
|
+
$[33] = onOpenChange;
|
|
4598
|
+
$[34] = t13;
|
|
4599
|
+
} else t13 = $[34];
|
|
4600
|
+
let t14;
|
|
4601
|
+
if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4602
|
+
t14 = /* @__PURE__ */ jsx(SearchIcon, {});
|
|
4603
|
+
$[35] = t14;
|
|
4604
|
+
} else t14 = $[35];
|
|
4605
|
+
let t15;
|
|
4606
|
+
if ($[36] !== t13) {
|
|
4607
|
+
t15 = /* @__PURE__ */ jsx(IconButton, {
|
|
4608
|
+
ref: trigger,
|
|
4609
|
+
label: "Search workspace",
|
|
4610
|
+
tooltip: `Search workspace (${COMPUTER_SPOTLIGHT_SHORTCUT.glyph})`,
|
|
4611
|
+
"aria-keyshortcuts": COMPUTER_SPOTLIGHT_SHORTCUT.aria,
|
|
4612
|
+
variant: "ghost",
|
|
4613
|
+
color: "neutral",
|
|
4614
|
+
className: "computer-spotlight__trigger",
|
|
4615
|
+
onClick: t13,
|
|
4616
|
+
children: t14
|
|
4617
|
+
});
|
|
4618
|
+
$[36] = t13;
|
|
4619
|
+
$[37] = t15;
|
|
4620
|
+
} else t15 = $[37];
|
|
4621
|
+
let t16;
|
|
4622
|
+
if ($[38] !== status) {
|
|
4623
|
+
t16 = status === "error" ? /* @__PURE__ */ jsxs("p", {
|
|
4624
|
+
role: "status",
|
|
4625
|
+
children: [
|
|
4626
|
+
"The workspace couldn’t be searched.",
|
|
4627
|
+
" ",
|
|
4628
|
+
/* @__PURE__ */ jsx(Button, {
|
|
4629
|
+
size: "sm",
|
|
4630
|
+
variant: "ghost",
|
|
4631
|
+
onClick: () => setAttempt(_temp4$4),
|
|
4632
|
+
children: "Retry search"
|
|
4633
|
+
})
|
|
4634
|
+
]
|
|
4635
|
+
}) : status === "loading" ? /* @__PURE__ */ jsx("p", { children: "Searching the workspace…" }) : null;
|
|
4636
|
+
$[38] = status;
|
|
4637
|
+
$[39] = t16;
|
|
4638
|
+
} else t16 = $[39];
|
|
4639
|
+
let t17;
|
|
4640
|
+
if ($[40] !== commands_0 || $[41] !== container || $[42] !== onOpenChange || $[43] !== open || $[44] !== t16) {
|
|
4641
|
+
t17 = /* @__PURE__ */ jsx(CommandPalette, {
|
|
4642
|
+
commands: commands_0,
|
|
4643
|
+
open,
|
|
4644
|
+
onOpenChange,
|
|
4645
|
+
onQueryChange: setQuery,
|
|
4646
|
+
container,
|
|
4647
|
+
children: t16
|
|
4648
|
+
});
|
|
4649
|
+
$[40] = commands_0;
|
|
4650
|
+
$[41] = container;
|
|
4651
|
+
$[42] = onOpenChange;
|
|
4652
|
+
$[43] = open;
|
|
4653
|
+
$[44] = t16;
|
|
4654
|
+
$[45] = t17;
|
|
4655
|
+
} else t17 = $[45];
|
|
4656
|
+
let t18;
|
|
4657
|
+
if ($[46] !== t15 || $[47] !== t17) {
|
|
4658
|
+
t18 = /* @__PURE__ */ jsxs(Fragment, { children: [t15, t17] });
|
|
4659
|
+
$[46] = t15;
|
|
4660
|
+
$[47] = t17;
|
|
4661
|
+
$[48] = t18;
|
|
4662
|
+
} else t18 = $[48];
|
|
4663
|
+
return t18;
|
|
4664
|
+
}
|
|
4665
|
+
function _temp4$4(count) {
|
|
4666
|
+
return count + 1;
|
|
4667
|
+
}
|
|
4668
|
+
function _temp3$4(store) {
|
|
4669
|
+
return store.get().dock;
|
|
4670
|
+
}
|
|
4671
|
+
function _temp2$5(c_0) {
|
|
4672
|
+
return c_0.getState().apps;
|
|
4673
|
+
}
|
|
4674
|
+
function _temp$7(c) {
|
|
4675
|
+
return c.getState().spotlight;
|
|
4676
|
+
}
|
|
4677
|
+
//#endregion
|
|
4678
|
+
//#region src/components/_internal/agent-computer/extras.tsx
|
|
4679
|
+
const NO_NOTIFICATIONS = [];
|
|
4680
|
+
/**
|
|
4681
|
+
* The menu bar's extras, in macOS's order: Spotlight, Appearance, the host's
|
|
4682
|
+
* own, the connection warning, the conversation, and the clock that opens
|
|
4683
|
+
* Notification Center.
|
|
4684
|
+
*/
|
|
4685
|
+
function ComputerMenuExtras(t0) {
|
|
4686
|
+
const $ = c(13);
|
|
4687
|
+
const { notifications: t1, connection, extraResults, extras } = t0;
|
|
4688
|
+
const notifications = t1 === void 0 ? NO_NOTIFICATIONS : t1;
|
|
4689
|
+
let t2;
|
|
4690
|
+
if ($[0] !== extraResults) {
|
|
4691
|
+
t2 = /* @__PURE__ */ jsx(ComputerSpotlight, { extraResults });
|
|
4692
|
+
$[0] = extraResults;
|
|
4693
|
+
$[1] = t2;
|
|
4694
|
+
} else t2 = $[1];
|
|
4695
|
+
let t3;
|
|
4696
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4697
|
+
t3 = /* @__PURE__ */ jsx(ComputerAppearanceMenu, {});
|
|
4698
|
+
$[2] = t3;
|
|
4699
|
+
} else t3 = $[2];
|
|
4700
|
+
let t4;
|
|
4701
|
+
if ($[3] !== connection) {
|
|
4702
|
+
t4 = connection ? /* @__PURE__ */ jsxs("span", {
|
|
4703
|
+
className: "agent-computer__connection",
|
|
4704
|
+
title: connection,
|
|
4705
|
+
children: [/* @__PURE__ */ jsx(WarningIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
4706
|
+
className: "sigvelo-visually-hidden",
|
|
4707
|
+
children: connection
|
|
4708
|
+
})]
|
|
4709
|
+
}) : null;
|
|
4710
|
+
$[3] = connection;
|
|
4711
|
+
$[4] = t4;
|
|
4712
|
+
} else t4 = $[4];
|
|
4713
|
+
let t5;
|
|
4714
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4715
|
+
t5 = /* @__PURE__ */ jsx(ComputerViewerToggle, {});
|
|
4716
|
+
$[5] = t5;
|
|
4717
|
+
} else t5 = $[5];
|
|
4718
|
+
let t6;
|
|
4719
|
+
if ($[6] !== notifications) {
|
|
4720
|
+
t6 = /* @__PURE__ */ jsx(ComputerNotifications, { items: notifications });
|
|
4721
|
+
$[6] = notifications;
|
|
4722
|
+
$[7] = t6;
|
|
4723
|
+
} else t6 = $[7];
|
|
4724
|
+
let t7;
|
|
4725
|
+
if ($[8] !== extras || $[9] !== t2 || $[10] !== t4 || $[11] !== t6) {
|
|
4726
|
+
t7 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4727
|
+
t2,
|
|
4728
|
+
t3,
|
|
4729
|
+
extras,
|
|
4730
|
+
t4,
|
|
4731
|
+
t5,
|
|
4732
|
+
t6
|
|
4733
|
+
] });
|
|
4734
|
+
$[8] = extras;
|
|
4735
|
+
$[9] = t2;
|
|
4736
|
+
$[10] = t4;
|
|
4737
|
+
$[11] = t6;
|
|
4738
|
+
$[12] = t7;
|
|
4739
|
+
} else t7 = $[12];
|
|
4740
|
+
return t7;
|
|
4741
|
+
}
|
|
4742
|
+
//#endregion
|
|
4743
|
+
//#region src/components/agents-sdk/ComputerHome.tsx
|
|
4744
|
+
/**
|
|
4745
|
+
* Home: the launchpad, in the Dock's order with the apps hidden from the Dock
|
|
4746
|
+
* kept, and the workspace search. `AgentComputer` draws it. A launcher opens
|
|
4747
|
+
* its app from its own icon. On a phone the Dock's favorites are not
|
|
4748
|
+
* repeated, as iOS never repeats a Dock app on the Home page.
|
|
4749
|
+
*/
|
|
4750
|
+
function ComputerHome() {
|
|
4751
|
+
const $ = c(16);
|
|
4752
|
+
const { openApp, openSpotlight } = useAgentComputerActions();
|
|
4753
|
+
const catalog = useComputerSlice(_temp$6);
|
|
4754
|
+
const arrangement = usePresentation(_temp2$4);
|
|
4755
|
+
let t0;
|
|
4756
|
+
if ($[0] !== arrangement || $[1] !== catalog) {
|
|
4757
|
+
t0 = arrangeDock(catalog, arrangement);
|
|
4758
|
+
$[0] = arrangement;
|
|
4759
|
+
$[1] = catalog;
|
|
4760
|
+
$[2] = t0;
|
|
4761
|
+
} else t0 = $[2];
|
|
4762
|
+
const apps = t0.ordered;
|
|
4763
|
+
let t1;
|
|
4764
|
+
if ($[3] !== apps || $[4] !== openApp) {
|
|
4765
|
+
let t2;
|
|
4766
|
+
if ($[6] !== openApp) {
|
|
4767
|
+
t2 = (app) => /* @__PURE__ */ jsxs(Button, {
|
|
4768
|
+
className: "computer-home__launcher",
|
|
4769
|
+
"data-favorite": app.launcher === "favorite" ? "" : void 0,
|
|
4770
|
+
variant: "ghost",
|
|
4771
|
+
color: "neutral",
|
|
4772
|
+
onClick: (event) => void openApp(app.id, { from: event.currentTarget.querySelector("[data-app-id]") ?? void 0 }),
|
|
4773
|
+
children: [/* @__PURE__ */ jsx(AppIcon.Root, {
|
|
4774
|
+
className: "computer-home__icon",
|
|
4775
|
+
"data-app-id": app.id,
|
|
4776
|
+
size: "2xl",
|
|
4777
|
+
"aria-hidden": "true",
|
|
4778
|
+
children: app.icon
|
|
4779
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
4780
|
+
className: "computer-home__label",
|
|
4781
|
+
children: app.label
|
|
4782
|
+
})]
|
|
4783
|
+
}, app.id);
|
|
4784
|
+
$[6] = openApp;
|
|
4785
|
+
$[7] = t2;
|
|
4786
|
+
} else t2 = $[7];
|
|
4787
|
+
t1 = apps.map(t2);
|
|
4788
|
+
$[3] = apps;
|
|
4789
|
+
$[4] = openApp;
|
|
4790
|
+
$[5] = t1;
|
|
4791
|
+
} else t1 = $[5];
|
|
4792
|
+
let t2;
|
|
4793
|
+
if ($[8] !== t1) {
|
|
4794
|
+
t2 = /* @__PURE__ */ jsx("nav", {
|
|
4795
|
+
className: "computer-home__launchpad",
|
|
4796
|
+
"aria-label": "Applications",
|
|
4797
|
+
children: t1
|
|
4798
|
+
});
|
|
4799
|
+
$[8] = t1;
|
|
4800
|
+
$[9] = t2;
|
|
4801
|
+
} else t2 = $[9];
|
|
4802
|
+
let t3;
|
|
4803
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4804
|
+
t3 = /* @__PURE__ */ jsx(SearchIcon, {});
|
|
4805
|
+
$[10] = t3;
|
|
4806
|
+
} else t3 = $[10];
|
|
4807
|
+
let t4;
|
|
4808
|
+
if ($[11] !== openSpotlight) {
|
|
4809
|
+
t4 = /* @__PURE__ */ jsxs(Button, {
|
|
4810
|
+
className: "computer-home__search",
|
|
4811
|
+
variant: "surface",
|
|
4812
|
+
color: "neutral",
|
|
4813
|
+
"aria-keyshortcuts": "Meta+K Control+K Alt+Space",
|
|
4814
|
+
onClick: openSpotlight,
|
|
4815
|
+
children: [t3, " Search workspace"]
|
|
4816
|
+
});
|
|
4817
|
+
$[11] = openSpotlight;
|
|
4818
|
+
$[12] = t4;
|
|
4819
|
+
} else t4 = $[12];
|
|
4820
|
+
let t5;
|
|
4821
|
+
if ($[13] !== t2 || $[14] !== t4) {
|
|
4822
|
+
t5 = /* @__PURE__ */ jsxs("div", {
|
|
4823
|
+
className: "computer-home",
|
|
4824
|
+
children: [t2, t4]
|
|
4825
|
+
});
|
|
4826
|
+
$[13] = t2;
|
|
4827
|
+
$[14] = t4;
|
|
4828
|
+
$[15] = t5;
|
|
4829
|
+
} else t5 = $[15];
|
|
4830
|
+
return t5;
|
|
4831
|
+
}
|
|
4832
|
+
function _temp2$4(store) {
|
|
4833
|
+
return store.get().dock;
|
|
4834
|
+
}
|
|
4835
|
+
function _temp$6(computer) {
|
|
4836
|
+
return computer.getState().apps;
|
|
4837
|
+
}
|
|
4838
|
+
//#endregion
|
|
3600
4839
|
//#region src/components/_internal/agent-computer/bar-focus.ts
|
|
3601
4840
|
/**
|
|
3602
4841
|
* A menu or status popover opened from the bar with the pointer still returns
|
|
@@ -6939,49 +8178,58 @@ function fitTiles(dock) {
|
|
|
6939
8178
|
* straight to the tiles' style, so a pointer moving over it renders nothing.
|
|
6940
8179
|
*/
|
|
6941
8180
|
function ComputerDock(t0) {
|
|
6942
|
-
const $ = c(
|
|
8181
|
+
const $ = c(84);
|
|
6943
8182
|
const { trash, name } = t0;
|
|
6944
8183
|
const computer = useComputer();
|
|
6945
8184
|
const { launchers, miniatures } = computer;
|
|
6946
8185
|
const apps = useComputerSlice(_temp);
|
|
6947
|
-
const
|
|
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);
|
|
8186
|
+
const arrangement = usePresentation(_temp2);
|
|
6953
8187
|
let t1;
|
|
6954
|
-
if ($[0] !==
|
|
6955
|
-
t1 = (
|
|
6956
|
-
$[0] =
|
|
6957
|
-
$[1] =
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
const
|
|
6961
|
-
const
|
|
8188
|
+
if ($[0] !== apps || $[1] !== arrangement) {
|
|
8189
|
+
t1 = arrangeDock(apps, arrangement);
|
|
8190
|
+
$[0] = apps;
|
|
8191
|
+
$[1] = arrangement;
|
|
8192
|
+
$[2] = t1;
|
|
8193
|
+
} else t1 = $[2];
|
|
8194
|
+
const docked = t1.docked;
|
|
8195
|
+
const openIds = useComputerSlice(_temp3);
|
|
8196
|
+
const activeApp = useComputerSlice(_temp4);
|
|
8197
|
+
const phone = useComputerSlice(_temp5);
|
|
8198
|
+
const inert = useComputerSlice(_temp6);
|
|
8199
|
+
const minimized = useComputerSlice(_temp7);
|
|
8200
|
+
const attention = useComputerSlice(_temp8);
|
|
6962
8201
|
let t2;
|
|
6963
|
-
if ($[
|
|
6964
|
-
t2 = {
|
|
8202
|
+
if ($[3] !== computer) {
|
|
8203
|
+
t2 = (id, from) => void computer.openApp(id, { from });
|
|
8204
|
+
$[3] = computer;
|
|
8205
|
+
$[4] = t2;
|
|
8206
|
+
} else t2 = $[4];
|
|
8207
|
+
const onOpen = t2;
|
|
8208
|
+
const dock = React.useRef(null);
|
|
8209
|
+
const [labels] = React.useState(_temp9);
|
|
8210
|
+
let t3;
|
|
8211
|
+
if ($[5] !== labels) {
|
|
8212
|
+
t3 = {
|
|
6965
8213
|
pointer: null,
|
|
6966
8214
|
frame: 0,
|
|
6967
8215
|
labels,
|
|
6968
8216
|
rest: null
|
|
6969
8217
|
};
|
|
6970
|
-
$[
|
|
6971
|
-
$[
|
|
6972
|
-
} else
|
|
6973
|
-
const magnifier = React.useRef(
|
|
8218
|
+
$[5] = labels;
|
|
8219
|
+
$[6] = t3;
|
|
8220
|
+
} else t3 = $[6];
|
|
8221
|
+
const magnifier = React.useRef(t3);
|
|
6974
8222
|
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
8223
|
let t4;
|
|
6983
|
-
if ($[
|
|
6984
|
-
t4 = ()
|
|
8224
|
+
if ($[7] !== docked) {
|
|
8225
|
+
t4 = docked.map(_temp10).join("|");
|
|
8226
|
+
$[7] = docked;
|
|
8227
|
+
$[8] = t4;
|
|
8228
|
+
} else t4 = $[8];
|
|
8229
|
+
const dockItems = t4;
|
|
8230
|
+
let t5;
|
|
8231
|
+
if ($[9] !== computer.dock || $[10] !== launchers) {
|
|
8232
|
+
t5 = () => {
|
|
6985
8233
|
const element = dock.current;
|
|
6986
8234
|
const state = magnifier.current;
|
|
6987
8235
|
if (!element) return;
|
|
@@ -7006,83 +8254,83 @@ function ComputerDock(t0) {
|
|
|
7006
8254
|
state.frame = 0;
|
|
7007
8255
|
};
|
|
7008
8256
|
};
|
|
7009
|
-
$[
|
|
7010
|
-
$[
|
|
7011
|
-
$[
|
|
7012
|
-
} else
|
|
7013
|
-
let
|
|
7014
|
-
if ($[
|
|
7015
|
-
|
|
8257
|
+
$[9] = computer.dock;
|
|
8258
|
+
$[10] = launchers;
|
|
8259
|
+
$[11] = t5;
|
|
8260
|
+
} else t5 = $[11];
|
|
8261
|
+
let t6;
|
|
8262
|
+
if ($[12] !== computer || $[13] !== dockItems || $[14] !== launchers || $[15] !== minimized.length || $[16] !== phone) {
|
|
8263
|
+
t6 = [
|
|
7016
8264
|
dockItems,
|
|
7017
8265
|
minimized.length,
|
|
7018
8266
|
phone,
|
|
7019
8267
|
computer,
|
|
7020
8268
|
launchers
|
|
7021
8269
|
];
|
|
7022
|
-
$[
|
|
7023
|
-
$[
|
|
7024
|
-
$[
|
|
7025
|
-
$[
|
|
7026
|
-
$[
|
|
7027
|
-
$[
|
|
7028
|
-
} else
|
|
7029
|
-
React.useLayoutEffect(
|
|
7030
|
-
let t6;
|
|
7031
|
-
if ($[15] !== computer.dock) {
|
|
7032
|
-
t6 = () => computer.dock.land();
|
|
7033
|
-
$[15] = computer.dock;
|
|
7034
|
-
$[16] = t6;
|
|
7035
|
-
} else t6 = $[16];
|
|
8270
|
+
$[12] = computer;
|
|
8271
|
+
$[13] = dockItems;
|
|
8272
|
+
$[14] = launchers;
|
|
8273
|
+
$[15] = minimized.length;
|
|
8274
|
+
$[16] = phone;
|
|
8275
|
+
$[17] = t6;
|
|
8276
|
+
} else t6 = $[17];
|
|
8277
|
+
React.useLayoutEffect(t5, t6);
|
|
7036
8278
|
let t7;
|
|
7037
|
-
if ($[
|
|
7038
|
-
t7 =
|
|
7039
|
-
$[
|
|
7040
|
-
$[18] = minimized;
|
|
8279
|
+
if ($[18] !== computer.dock) {
|
|
8280
|
+
t7 = () => computer.dock.land();
|
|
8281
|
+
$[18] = computer.dock;
|
|
7041
8282
|
$[19] = t7;
|
|
7042
8283
|
} else t7 = $[19];
|
|
7043
|
-
React.useLayoutEffect(t6, t7);
|
|
7044
8284
|
let t8;
|
|
7045
|
-
if ($[20]
|
|
7046
|
-
t8 =
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
$[
|
|
7050
|
-
} else t8 = $[
|
|
7051
|
-
React.useLayoutEffect(t8);
|
|
8285
|
+
if ($[20] !== computer || $[21] !== minimized) {
|
|
8286
|
+
t8 = [computer, minimized];
|
|
8287
|
+
$[20] = computer;
|
|
8288
|
+
$[21] = minimized;
|
|
8289
|
+
$[22] = t8;
|
|
8290
|
+
} else t8 = $[22];
|
|
8291
|
+
React.useLayoutEffect(t7, t8);
|
|
7052
8292
|
let t9;
|
|
7053
|
-
if ($[
|
|
8293
|
+
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
7054
8294
|
t9 = () => {
|
|
7055
|
-
if (dock.current)
|
|
8295
|
+
if (dock.current) rove(dock.current, stop.current);
|
|
7056
8296
|
};
|
|
7057
|
-
$[
|
|
7058
|
-
} else t9 = $[
|
|
7059
|
-
|
|
8297
|
+
$[23] = t9;
|
|
8298
|
+
} else t9 = $[23];
|
|
8299
|
+
React.useLayoutEffect(t9);
|
|
7060
8300
|
let t10;
|
|
7061
|
-
if ($[
|
|
7062
|
-
t10 = (
|
|
7063
|
-
|
|
7064
|
-
|
|
8301
|
+
if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
8302
|
+
t10 = () => {
|
|
8303
|
+
if (dock.current) resetMagnification(magnifier.current, dock.current);
|
|
8304
|
+
};
|
|
7065
8305
|
$[24] = t10;
|
|
7066
8306
|
} else t10 = $[24];
|
|
7067
|
-
const
|
|
8307
|
+
const reset_0 = t10;
|
|
7068
8308
|
let t11;
|
|
7069
|
-
if ($[25] !==
|
|
7070
|
-
t11 = (
|
|
8309
|
+
if ($[25] !== apps || $[26] !== openIds) {
|
|
8310
|
+
t11 = (id_1) => openIds.some((openId) => openId === id_1 || apps.find((app) => app.id === openId)?.owner === id_1);
|
|
8311
|
+
$[25] = apps;
|
|
8312
|
+
$[26] = openIds;
|
|
8313
|
+
$[27] = t11;
|
|
8314
|
+
} else t11 = $[27];
|
|
8315
|
+
const running = t11;
|
|
8316
|
+
let t12;
|
|
8317
|
+
if ($[28] !== computer.dock) {
|
|
8318
|
+
t12 = (element_0) => {
|
|
7071
8319
|
dock.current = element_0;
|
|
7072
8320
|
computer.dock.attach(element_0);
|
|
7073
8321
|
};
|
|
7074
|
-
$[
|
|
7075
|
-
$[
|
|
7076
|
-
} else
|
|
7077
|
-
let
|
|
7078
|
-
if ($[
|
|
7079
|
-
|
|
7080
|
-
$[
|
|
7081
|
-
} else
|
|
7082
|
-
const
|
|
7083
|
-
let
|
|
7084
|
-
if ($[
|
|
7085
|
-
|
|
8322
|
+
$[28] = computer.dock;
|
|
8323
|
+
$[29] = t12;
|
|
8324
|
+
} else t12 = $[29];
|
|
8325
|
+
let t13;
|
|
8326
|
+
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
8327
|
+
t13 = ariaKeys("focusDock");
|
|
8328
|
+
$[30] = t13;
|
|
8329
|
+
} else t13 = $[30];
|
|
8330
|
+
const t14 = apps.some(_temp11) ? "" : void 0;
|
|
8331
|
+
let t15;
|
|
8332
|
+
if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
|
|
8333
|
+
t15 = (event) => {
|
|
7086
8334
|
const element_1 = event.currentTarget;
|
|
7087
8335
|
if (!magnifies(element_1) || event.pointerType === "touch" || event.buttons !== 0) {
|
|
7088
8336
|
reset_0();
|
|
@@ -7091,75 +8339,75 @@ function ComputerDock(t0) {
|
|
|
7091
8339
|
magnifier.current.pointer = event.clientX;
|
|
7092
8340
|
queueMagnification(magnifier.current, element_1);
|
|
7093
8341
|
};
|
|
7094
|
-
$[
|
|
7095
|
-
} else
|
|
7096
|
-
let
|
|
7097
|
-
if ($[
|
|
7098
|
-
|
|
8342
|
+
$[31] = t15;
|
|
8343
|
+
} else t15 = $[31];
|
|
8344
|
+
let t16;
|
|
8345
|
+
if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
|
|
8346
|
+
t16 = (event_0) => {
|
|
7099
8347
|
const item = event_0.target.closest(STOPS);
|
|
7100
8348
|
if (!item || !event_0.currentTarget.contains(item)) return;
|
|
7101
8349
|
stop.current = item;
|
|
7102
8350
|
rove(event_0.currentTarget, item);
|
|
7103
8351
|
};
|
|
7104
|
-
$[
|
|
7105
|
-
} else
|
|
7106
|
-
let
|
|
7107
|
-
if ($[
|
|
7108
|
-
let
|
|
7109
|
-
if ($[
|
|
7110
|
-
|
|
7111
|
-
app:
|
|
8352
|
+
$[32] = t16;
|
|
8353
|
+
} else t16 = $[32];
|
|
8354
|
+
let t17;
|
|
8355
|
+
if ($[33] !== activeApp?.id || $[34] !== activeApp?.owner || $[35] !== attention || $[36] !== docked || $[37] !== labels || $[38] !== launchers || $[39] !== name || $[40] !== onOpen || $[41] !== phone || $[42] !== running) {
|
|
8356
|
+
let t18;
|
|
8357
|
+
if ($[44] !== activeApp?.id || $[45] !== activeApp?.owner || $[46] !== attention || $[47] !== labels || $[48] !== launchers || $[49] !== name || $[50] !== onOpen || $[51] !== phone || $[52] !== running) {
|
|
8358
|
+
t18 = (app_1) => /* @__PURE__ */ jsx(DockTile, {
|
|
8359
|
+
app: app_1,
|
|
7112
8360
|
phone,
|
|
7113
|
-
running: running(
|
|
7114
|
-
attention: attention.includes(
|
|
7115
|
-
current: activeApp?.id ===
|
|
8361
|
+
running: running(app_1.id),
|
|
8362
|
+
attention: attention.includes(app_1.id) ? name : void 0,
|
|
8363
|
+
current: activeApp?.id === app_1.id || activeApp?.owner === app_1.id,
|
|
7116
8364
|
launchers,
|
|
7117
8365
|
labels,
|
|
7118
8366
|
onOpen
|
|
7119
|
-
},
|
|
7120
|
-
$[
|
|
7121
|
-
$[
|
|
7122
|
-
$[
|
|
7123
|
-
$[
|
|
7124
|
-
$[
|
|
7125
|
-
$[
|
|
7126
|
-
$[
|
|
7127
|
-
$[
|
|
7128
|
-
$[
|
|
7129
|
-
$[
|
|
7130
|
-
} else
|
|
7131
|
-
|
|
7132
|
-
$[
|
|
7133
|
-
$[
|
|
7134
|
-
$[
|
|
7135
|
-
$[
|
|
7136
|
-
$[
|
|
7137
|
-
$[
|
|
7138
|
-
$[
|
|
7139
|
-
$[
|
|
7140
|
-
$[
|
|
7141
|
-
$[
|
|
7142
|
-
$[
|
|
7143
|
-
} else
|
|
7144
|
-
let
|
|
7145
|
-
if ($[
|
|
7146
|
-
|
|
8367
|
+
}, app_1.id);
|
|
8368
|
+
$[44] = activeApp?.id;
|
|
8369
|
+
$[45] = activeApp?.owner;
|
|
8370
|
+
$[46] = attention;
|
|
8371
|
+
$[47] = labels;
|
|
8372
|
+
$[48] = launchers;
|
|
8373
|
+
$[49] = name;
|
|
8374
|
+
$[50] = onOpen;
|
|
8375
|
+
$[51] = phone;
|
|
8376
|
+
$[52] = running;
|
|
8377
|
+
$[53] = t18;
|
|
8378
|
+
} else t18 = $[53];
|
|
8379
|
+
t17 = docked.map(t18);
|
|
8380
|
+
$[33] = activeApp?.id;
|
|
8381
|
+
$[34] = activeApp?.owner;
|
|
8382
|
+
$[35] = attention;
|
|
8383
|
+
$[36] = docked;
|
|
8384
|
+
$[37] = labels;
|
|
8385
|
+
$[38] = launchers;
|
|
8386
|
+
$[39] = name;
|
|
8387
|
+
$[40] = onOpen;
|
|
8388
|
+
$[41] = phone;
|
|
8389
|
+
$[42] = running;
|
|
8390
|
+
$[43] = t17;
|
|
8391
|
+
} else t17 = $[43];
|
|
8392
|
+
let t18;
|
|
8393
|
+
if ($[54] !== minimized.length || $[55] !== phone) {
|
|
8394
|
+
t18 = minimized.length || !phone ? /* @__PURE__ */ jsx("span", {
|
|
7147
8395
|
className: "agent-computer__dock-divider",
|
|
7148
8396
|
"aria-hidden": "true"
|
|
7149
8397
|
}) : null;
|
|
7150
|
-
$[
|
|
7151
|
-
$[
|
|
7152
|
-
$[
|
|
7153
|
-
} else
|
|
7154
|
-
let
|
|
7155
|
-
if ($[
|
|
7156
|
-
let
|
|
7157
|
-
if ($[
|
|
7158
|
-
|
|
7159
|
-
const { id: id_2, aspect } =
|
|
7160
|
-
const
|
|
7161
|
-
return
|
|
7162
|
-
app:
|
|
8398
|
+
$[54] = minimized.length;
|
|
8399
|
+
$[55] = phone;
|
|
8400
|
+
$[56] = t18;
|
|
8401
|
+
} else t18 = $[56];
|
|
8402
|
+
let t19;
|
|
8403
|
+
if ($[57] !== apps || $[58] !== computer || $[59] !== labels || $[60] !== miniatures || $[61] !== minimized || $[62] !== onOpen) {
|
|
8404
|
+
let t20;
|
|
8405
|
+
if ($[64] !== apps || $[65] !== computer || $[66] !== labels || $[67] !== miniatures || $[68] !== onOpen) {
|
|
8406
|
+
t20 = (t21) => {
|
|
8407
|
+
const { id: id_2, aspect } = t21;
|
|
8408
|
+
const app_2 = apps.find((candidate) => candidate.id === id_2);
|
|
8409
|
+
return app_2 ? /* @__PURE__ */ jsx(DockMiniature, {
|
|
8410
|
+
app: app_2,
|
|
7163
8411
|
aspect,
|
|
7164
8412
|
anchor: computer.anchorFor(id_2),
|
|
7165
8413
|
miniatures,
|
|
@@ -7167,84 +8415,81 @@ function ComputerDock(t0) {
|
|
|
7167
8415
|
onOpen
|
|
7168
8416
|
}, id_2) : null;
|
|
7169
8417
|
};
|
|
7170
|
-
$[
|
|
7171
|
-
$[
|
|
7172
|
-
$[
|
|
7173
|
-
$[
|
|
7174
|
-
$[
|
|
7175
|
-
$[
|
|
7176
|
-
} else
|
|
7177
|
-
|
|
7178
|
-
$[
|
|
7179
|
-
$[
|
|
7180
|
-
$[
|
|
7181
|
-
$[
|
|
7182
|
-
$[
|
|
7183
|
-
$[
|
|
7184
|
-
$[
|
|
7185
|
-
} else
|
|
7186
|
-
let
|
|
7187
|
-
if ($[
|
|
7188
|
-
|
|
8418
|
+
$[64] = apps;
|
|
8419
|
+
$[65] = computer;
|
|
8420
|
+
$[66] = labels;
|
|
8421
|
+
$[67] = miniatures;
|
|
8422
|
+
$[68] = onOpen;
|
|
8423
|
+
$[69] = t20;
|
|
8424
|
+
} else t20 = $[69];
|
|
8425
|
+
t19 = minimized.map(t20);
|
|
8426
|
+
$[57] = apps;
|
|
8427
|
+
$[58] = computer;
|
|
8428
|
+
$[59] = labels;
|
|
8429
|
+
$[60] = miniatures;
|
|
8430
|
+
$[61] = minimized;
|
|
8431
|
+
$[62] = onOpen;
|
|
8432
|
+
$[63] = t19;
|
|
8433
|
+
} else t19 = $[63];
|
|
8434
|
+
let t20;
|
|
8435
|
+
if ($[70] !== labels || $[71] !== phone || $[72] !== trash) {
|
|
8436
|
+
t20 = trash && !phone ? /* @__PURE__ */ jsx(DockTrash, {
|
|
7189
8437
|
trash,
|
|
7190
8438
|
labels
|
|
7191
8439
|
}) : null;
|
|
7192
|
-
$[
|
|
7193
|
-
$[
|
|
7194
|
-
$[
|
|
7195
|
-
$[
|
|
7196
|
-
} else
|
|
7197
|
-
let
|
|
7198
|
-
if ($[
|
|
7199
|
-
|
|
8440
|
+
$[70] = labels;
|
|
8441
|
+
$[71] = phone;
|
|
8442
|
+
$[72] = trash;
|
|
8443
|
+
$[73] = t20;
|
|
8444
|
+
} else t20 = $[73];
|
|
8445
|
+
let t21;
|
|
8446
|
+
if ($[74] !== t18 || $[75] !== t19 || $[76] !== t20) {
|
|
8447
|
+
t21 = /* @__PURE__ */ jsxs("div", {
|
|
7200
8448
|
className: "agent-computer__dock-trailing",
|
|
7201
8449
|
children: [
|
|
7202
|
-
t17,
|
|
7203
8450
|
t18,
|
|
7204
|
-
t19
|
|
8451
|
+
t19,
|
|
8452
|
+
t20
|
|
7205
8453
|
]
|
|
7206
8454
|
});
|
|
7207
|
-
$[
|
|
7208
|
-
$[
|
|
7209
|
-
$[
|
|
7210
|
-
$[
|
|
7211
|
-
} else
|
|
7212
|
-
let
|
|
7213
|
-
if ($[
|
|
7214
|
-
|
|
8455
|
+
$[74] = t18;
|
|
8456
|
+
$[75] = t19;
|
|
8457
|
+
$[76] = t20;
|
|
8458
|
+
$[77] = t21;
|
|
8459
|
+
} else t21 = $[77];
|
|
8460
|
+
let t22;
|
|
8461
|
+
if ($[78] !== inert || $[79] !== t12 || $[80] !== t14 || $[81] !== t17 || $[82] !== t21) {
|
|
8462
|
+
t22 = /* @__PURE__ */ jsx(Tooltip.Provider, {
|
|
7215
8463
|
delay: 0,
|
|
7216
8464
|
children: /* @__PURE__ */ jsxs("nav", {
|
|
7217
|
-
ref:
|
|
8465
|
+
ref: t12,
|
|
7218
8466
|
className: "agent-computer__dock",
|
|
7219
8467
|
inert,
|
|
7220
8468
|
"aria-label": "Computer apps",
|
|
7221
|
-
"aria-keyshortcuts":
|
|
7222
|
-
"data-has-favorites":
|
|
7223
|
-
onPointerMove:
|
|
8469
|
+
"aria-keyshortcuts": t13,
|
|
8470
|
+
"data-has-favorites": t14,
|
|
8471
|
+
onPointerMove: t15,
|
|
7224
8472
|
onPointerLeave: reset_0,
|
|
7225
8473
|
onPointerCancel: reset_0,
|
|
7226
|
-
onFocus:
|
|
7227
|
-
onKeyDown:
|
|
7228
|
-
children: [
|
|
8474
|
+
onFocus: t16,
|
|
8475
|
+
onKeyDown: _temp13,
|
|
8476
|
+
children: [t17, t21]
|
|
7229
8477
|
})
|
|
7230
8478
|
});
|
|
7231
|
-
$[
|
|
7232
|
-
$[
|
|
7233
|
-
$[
|
|
7234
|
-
$[
|
|
7235
|
-
$[
|
|
7236
|
-
$[
|
|
7237
|
-
} else
|
|
7238
|
-
return
|
|
7239
|
-
}
|
|
7240
|
-
function _temp13(
|
|
7241
|
-
return app_1.launcher !== "hidden" && !app_1.owner;
|
|
7242
|
-
}
|
|
7243
|
-
function _temp12(event_1) {
|
|
8479
|
+
$[78] = inert;
|
|
8480
|
+
$[79] = t12;
|
|
8481
|
+
$[80] = t14;
|
|
8482
|
+
$[81] = t17;
|
|
8483
|
+
$[82] = t21;
|
|
8484
|
+
$[83] = t22;
|
|
8485
|
+
} else t22 = $[83];
|
|
8486
|
+
return t22;
|
|
8487
|
+
}
|
|
8488
|
+
function _temp13(event_1) {
|
|
7244
8489
|
const element_2 = event_1.currentTarget;
|
|
7245
8490
|
if (!element_2.contains(event_1.target)) return;
|
|
7246
8491
|
if (event_1.altKey || event_1.ctrlKey || event_1.metaKey || event_1.shiftKey) return;
|
|
7247
|
-
const items = [...element_2.querySelectorAll(STOPS)].filter(
|
|
8492
|
+
const items = [...element_2.querySelectorAll(STOPS)].filter(_temp12);
|
|
7248
8493
|
const index = items.indexOf(event_1.target);
|
|
7249
8494
|
if (index < 0) return;
|
|
7250
8495
|
const moves = {
|
|
@@ -7257,37 +8502,40 @@ function _temp12(event_1) {
|
|
|
7257
8502
|
event_1.preventDefault();
|
|
7258
8503
|
moves[event_1.key]?.focus();
|
|
7259
8504
|
}
|
|
7260
|
-
function
|
|
8505
|
+
function _temp12(item_0) {
|
|
7261
8506
|
return item_0.offsetParent;
|
|
7262
8507
|
}
|
|
7263
|
-
function
|
|
8508
|
+
function _temp11(app_0) {
|
|
7264
8509
|
return app_0.launcher === "favorite";
|
|
7265
8510
|
}
|
|
7266
|
-
function
|
|
8511
|
+
function _temp10(t0) {
|
|
7267
8512
|
const { id: id_0, launcher } = t0;
|
|
7268
8513
|
return `${id_0}:${launcher}`;
|
|
7269
8514
|
}
|
|
7270
|
-
function
|
|
8515
|
+
function _temp9() {
|
|
7271
8516
|
return /* @__PURE__ */ new Map();
|
|
7272
8517
|
}
|
|
7273
|
-
function
|
|
8518
|
+
function _temp8(c_5) {
|
|
7274
8519
|
return c_5.getState().attention;
|
|
7275
8520
|
}
|
|
7276
|
-
function
|
|
8521
|
+
function _temp7(c_4) {
|
|
7277
8522
|
return c_4.getState().minimized;
|
|
7278
8523
|
}
|
|
7279
|
-
function
|
|
8524
|
+
function _temp6(c_3) {
|
|
7280
8525
|
return c_3.view.scenery;
|
|
7281
8526
|
}
|
|
7282
|
-
function
|
|
8527
|
+
function _temp5(c_2) {
|
|
7283
8528
|
return c_2.getState().phone;
|
|
7284
8529
|
}
|
|
7285
|
-
function
|
|
8530
|
+
function _temp4(c_1) {
|
|
7286
8531
|
return c_1.view.activeApp;
|
|
7287
8532
|
}
|
|
7288
|
-
function
|
|
8533
|
+
function _temp3(c_0) {
|
|
7289
8534
|
return c_0.view.openApps;
|
|
7290
8535
|
}
|
|
8536
|
+
function _temp2(store) {
|
|
8537
|
+
return store.get().dock;
|
|
8538
|
+
}
|
|
7291
8539
|
function _temp(c) {
|
|
7292
8540
|
return c.getState().apps;
|
|
7293
8541
|
}
|
|
@@ -7554,7 +8802,7 @@ function DockTrash(t0) {
|
|
|
7554
8802
|
let t2;
|
|
7555
8803
|
if ($[0] !== computer || $[1] !== trash) {
|
|
7556
8804
|
t2 = (event_0) => {
|
|
7557
|
-
computer.openApp(
|
|
8805
|
+
computer.openApp(COMPUTER_APP_IDS.files, { from: event_0.currentTarget.querySelector(".agent-computer__app-icon") ?? void 0 });
|
|
7558
8806
|
trash.onOpen();
|
|
7559
8807
|
};
|
|
7560
8808
|
$[0] = computer;
|
|
@@ -7811,7 +9059,7 @@ function useAgentComputerAppHandlers(handlers) {
|
|
|
7811
9059
|
}
|
|
7812
9060
|
/** Dims the applied picture; previews show it undimmed. */
|
|
7813
9061
|
const VEIL = "linear-gradient(rgb(0 0 0 / 60%), rgb(0 0 0 / 60%))";
|
|
7814
|
-
const
|
|
9062
|
+
const NO_APPS = [];
|
|
7815
9063
|
/**
|
|
7816
9064
|
* One employee's desktop, reflowing to full-screen apps on a narrow host.
|
|
7817
9065
|
* Composes AppFrame; owns only ephemeral window order, placement, minimize,
|
|
@@ -7822,301 +9070,425 @@ const SIGVELO = COMPUTER_WALLPAPERS.find((option) => option.value === DEFAULT_CO
|
|
|
7822
9070
|
* Use a key when changing employee identity to reset their presentation state.
|
|
7823
9071
|
*/
|
|
7824
9072
|
function AgentComputer(t0) {
|
|
7825
|
-
const $ = c(
|
|
9073
|
+
const $ = c(118);
|
|
7826
9074
|
let actionsRef;
|
|
7827
|
-
let
|
|
7828
|
-
let
|
|
7829
|
-
let
|
|
7830
|
-
let home;
|
|
9075
|
+
let connection;
|
|
9076
|
+
let extraResults;
|
|
9077
|
+
let extras;
|
|
7831
9078
|
let homeWidget;
|
|
7832
|
-
let
|
|
9079
|
+
let notifications;
|
|
7833
9080
|
let onActiveAppChange;
|
|
7834
|
-
let
|
|
9081
|
+
let onPresentationChange;
|
|
7835
9082
|
let props;
|
|
9083
|
+
let savedPresentation;
|
|
7836
9084
|
let selected;
|
|
7837
|
-
let status;
|
|
7838
9085
|
let style;
|
|
7839
9086
|
let t1;
|
|
7840
|
-
let trash;
|
|
7841
9087
|
if ($[0] !== t0) {
|
|
7842
|
-
({
|
|
9088
|
+
({actionsRef, homeWidget, activeAppId: selected, onActiveAppChange, apps: t1, presentation: savedPresentation, onPresentationChange, notifications, connection, extraResults, extras, style, ...props} = t0);
|
|
7843
9089
|
$[0] = t0;
|
|
7844
9090
|
$[1] = actionsRef;
|
|
7845
|
-
$[2] =
|
|
7846
|
-
$[3] =
|
|
7847
|
-
$[4] =
|
|
7848
|
-
$[5] =
|
|
7849
|
-
$[6] =
|
|
7850
|
-
$[7] =
|
|
7851
|
-
$[8] =
|
|
7852
|
-
$[9] =
|
|
7853
|
-
$[10] =
|
|
9091
|
+
$[2] = connection;
|
|
9092
|
+
$[3] = extraResults;
|
|
9093
|
+
$[4] = extras;
|
|
9094
|
+
$[5] = homeWidget;
|
|
9095
|
+
$[6] = notifications;
|
|
9096
|
+
$[7] = onActiveAppChange;
|
|
9097
|
+
$[8] = onPresentationChange;
|
|
9098
|
+
$[9] = props;
|
|
9099
|
+
$[10] = savedPresentation;
|
|
7854
9100
|
$[11] = selected;
|
|
7855
|
-
$[12] =
|
|
7856
|
-
$[13] =
|
|
7857
|
-
$[14] = t1;
|
|
7858
|
-
$[15] = trash;
|
|
9101
|
+
$[12] = style;
|
|
9102
|
+
$[13] = t1;
|
|
7859
9103
|
} else {
|
|
7860
9104
|
actionsRef = $[1];
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
9105
|
+
connection = $[2];
|
|
9106
|
+
extraResults = $[3];
|
|
9107
|
+
extras = $[4];
|
|
9108
|
+
homeWidget = $[5];
|
|
9109
|
+
notifications = $[6];
|
|
9110
|
+
onActiveAppChange = $[7];
|
|
9111
|
+
onPresentationChange = $[8];
|
|
9112
|
+
props = $[9];
|
|
9113
|
+
savedPresentation = $[10];
|
|
7870
9114
|
selected = $[11];
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
t1 = $[14];
|
|
7874
|
-
trash = $[15];
|
|
9115
|
+
style = $[12];
|
|
9116
|
+
t1 = $[13];
|
|
7875
9117
|
}
|
|
7876
|
-
const
|
|
7877
|
-
const
|
|
9118
|
+
const hostApps = t1 === void 0 ? NO_APPS : t1;
|
|
9119
|
+
const host = React.use(HostContext);
|
|
9120
|
+
const hosts = React.use(AppHostsContext);
|
|
9121
|
+
hosts.files?.apps;
|
|
9122
|
+
let t2;
|
|
9123
|
+
if ($[14] !== hosts.screen) {
|
|
9124
|
+
t2 = hosts.screen ?? [];
|
|
9125
|
+
$[14] = hosts.screen;
|
|
9126
|
+
$[15] = t2;
|
|
9127
|
+
} else t2 = $[15];
|
|
7878
9128
|
let t3;
|
|
7879
|
-
if ($[16] !==
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
t4 = /[^a-z0-9]/gi;
|
|
7883
|
-
$[18] = t4;
|
|
7884
|
-
} else t4 = $[18];
|
|
7885
|
-
t3 = t2.replaceAll(t4, "");
|
|
7886
|
-
$[16] = t2;
|
|
9129
|
+
if ($[16] !== hosts.files?.apps) {
|
|
9130
|
+
t3 = hosts.files?.apps ?? [];
|
|
9131
|
+
$[16] = hosts.files?.apps;
|
|
7887
9132
|
$[17] = t3;
|
|
7888
9133
|
} else t3 = $[17];
|
|
7889
|
-
const anchorPrefix = `--computer-miniature-${t3}`;
|
|
7890
9134
|
let t4;
|
|
7891
|
-
if ($[
|
|
7892
|
-
t4 =
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
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);
|
|
9135
|
+
if ($[18] !== hosts.automations) {
|
|
9136
|
+
t4 = hosts.automations ?? [];
|
|
9137
|
+
$[18] = hosts.automations;
|
|
9138
|
+
$[19] = t4;
|
|
9139
|
+
} else t4 = $[19];
|
|
7907
9140
|
let t5;
|
|
7908
|
-
if ($[
|
|
7909
|
-
t5 =
|
|
9141
|
+
if ($[20] !== hosts.settings) {
|
|
9142
|
+
t5 = hosts.settings ? [hosts.settings.app] : [];
|
|
9143
|
+
$[20] = hosts.settings;
|
|
9144
|
+
$[21] = t5;
|
|
9145
|
+
} else t5 = $[21];
|
|
9146
|
+
let t6;
|
|
9147
|
+
if ($[22] !== hostApps || $[23] !== t2 || $[24] !== t3 || $[25] !== t4 || $[26] !== t5) {
|
|
9148
|
+
t6 = [
|
|
9149
|
+
...t2,
|
|
9150
|
+
...t3,
|
|
9151
|
+
...t4,
|
|
9152
|
+
...t5,
|
|
9153
|
+
...hostApps
|
|
9154
|
+
];
|
|
9155
|
+
$[22] = hostApps;
|
|
9156
|
+
$[23] = t2;
|
|
9157
|
+
$[24] = t3;
|
|
9158
|
+
$[25] = t4;
|
|
9159
|
+
$[26] = t5;
|
|
9160
|
+
$[27] = t6;
|
|
9161
|
+
} else t6 = $[27];
|
|
9162
|
+
const apps = t6;
|
|
9163
|
+
const t7 = React.useId();
|
|
9164
|
+
let t8;
|
|
9165
|
+
if ($[28] !== t7) {
|
|
9166
|
+
let t9;
|
|
9167
|
+
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9168
|
+
t9 = /[^a-z0-9]/gi;
|
|
9169
|
+
$[30] = t9;
|
|
9170
|
+
} else t9 = $[30];
|
|
9171
|
+
t8 = t7.replaceAll(t9, "");
|
|
9172
|
+
$[28] = t7;
|
|
9173
|
+
$[29] = t8;
|
|
9174
|
+
} else t8 = $[29];
|
|
9175
|
+
const anchorPrefix = `--computer-miniature-${t8}`;
|
|
9176
|
+
let t9;
|
|
9177
|
+
if ($[31] !== savedPresentation) {
|
|
9178
|
+
t9 = () => new PresentationStore(savedPresentation ?? DEFAULT_COMPUTER_PRESENTATION);
|
|
9179
|
+
$[31] = savedPresentation;
|
|
9180
|
+
$[32] = t9;
|
|
9181
|
+
} else t9 = $[32];
|
|
9182
|
+
const [presentation] = React.useState(t9);
|
|
9183
|
+
let t10;
|
|
9184
|
+
if ($[33] !== anchorPrefix || $[34] !== apps || $[35] !== onActiveAppChange || $[36] !== presentation || $[37] !== selected) {
|
|
9185
|
+
t10 = () => new ComputerController({
|
|
7910
9186
|
apps,
|
|
7911
9187
|
selected,
|
|
7912
9188
|
onActiveAppChange,
|
|
7913
|
-
onLayoutChange
|
|
7914
|
-
});
|
|
7915
|
-
$[
|
|
7916
|
-
$[
|
|
7917
|
-
$[
|
|
7918
|
-
$[
|
|
7919
|
-
$[
|
|
7920
|
-
$[
|
|
7921
|
-
} else
|
|
7922
|
-
React.
|
|
7923
|
-
let
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
9189
|
+
onLayoutChange: presentation.setLayout
|
|
9190
|
+
}, presentation.get().layout ?? void 0, anchorPrefix);
|
|
9191
|
+
$[33] = anchorPrefix;
|
|
9192
|
+
$[34] = apps;
|
|
9193
|
+
$[35] = onActiveAppChange;
|
|
9194
|
+
$[36] = presentation;
|
|
9195
|
+
$[37] = selected;
|
|
9196
|
+
$[38] = t10;
|
|
9197
|
+
} else t10 = $[38];
|
|
9198
|
+
const [computer] = React.useState(t10);
|
|
9199
|
+
let t11;
|
|
9200
|
+
if ($[39] !== apps || $[40] !== computer || $[41] !== onActiveAppChange || $[42] !== onPresentationChange || $[43] !== presentation || $[44] !== selected) {
|
|
9201
|
+
t11 = () => {
|
|
9202
|
+
presentation.receive(onPresentationChange);
|
|
9203
|
+
computer.receive({
|
|
9204
|
+
apps,
|
|
9205
|
+
selected,
|
|
9206
|
+
onActiveAppChange,
|
|
9207
|
+
onLayoutChange: presentation.setLayout
|
|
9208
|
+
});
|
|
9209
|
+
};
|
|
9210
|
+
$[39] = apps;
|
|
9211
|
+
$[40] = computer;
|
|
9212
|
+
$[41] = onActiveAppChange;
|
|
9213
|
+
$[42] = onPresentationChange;
|
|
9214
|
+
$[43] = presentation;
|
|
9215
|
+
$[44] = selected;
|
|
9216
|
+
$[45] = t11;
|
|
9217
|
+
} else t11 = $[45];
|
|
9218
|
+
React.useLayoutEffect(t11);
|
|
9219
|
+
let t12;
|
|
9220
|
+
let t13;
|
|
9221
|
+
if ($[46] !== computer) {
|
|
9222
|
+
t12 = () => () => computer.dispose();
|
|
9223
|
+
t13 = [computer];
|
|
9224
|
+
$[46] = computer;
|
|
9225
|
+
$[47] = t12;
|
|
9226
|
+
$[48] = t13;
|
|
7931
9227
|
} else {
|
|
7932
|
-
|
|
7933
|
-
|
|
9228
|
+
t12 = $[47];
|
|
9229
|
+
t13 = $[48];
|
|
7934
9230
|
}
|
|
7935
|
-
React.useEffect(
|
|
7936
|
-
|
|
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];
|
|
9231
|
+
React.useEffect(t12, t13);
|
|
9232
|
+
const mounted = host?.computer;
|
|
7959
9233
|
let t14;
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
$[
|
|
7967
|
-
$[
|
|
7968
|
-
|
|
7969
|
-
$[
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
9234
|
+
let t15;
|
|
9235
|
+
if ($[49] !== computer || $[50] !== mounted) {
|
|
9236
|
+
t14 = () => mounted?.attach(computer);
|
|
9237
|
+
t15 = [mounted, computer];
|
|
9238
|
+
$[49] = computer;
|
|
9239
|
+
$[50] = mounted;
|
|
9240
|
+
$[51] = t14;
|
|
9241
|
+
$[52] = t15;
|
|
9242
|
+
} else {
|
|
9243
|
+
t14 = $[51];
|
|
9244
|
+
t15 = $[52];
|
|
9245
|
+
}
|
|
9246
|
+
React.useLayoutEffect(t14, t15);
|
|
9247
|
+
let t16;
|
|
9248
|
+
if ($[53] !== computer.actions) {
|
|
9249
|
+
t16 = () => computer.actions;
|
|
9250
|
+
$[53] = computer.actions;
|
|
9251
|
+
$[54] = t16;
|
|
9252
|
+
} else t16 = $[54];
|
|
9253
|
+
let t17;
|
|
9254
|
+
if ($[55] !== computer) {
|
|
9255
|
+
t17 = [computer];
|
|
9256
|
+
$[55] = computer;
|
|
9257
|
+
$[56] = t17;
|
|
9258
|
+
} else t17 = $[56];
|
|
9259
|
+
React.useImperativeHandle(actionsRef, t16, t17);
|
|
9260
|
+
const [portal, setPortal] = React.useState(null);
|
|
7974
9261
|
let t18;
|
|
7975
|
-
if ($[
|
|
7976
|
-
t18 =
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
$[45] = homeWidget;
|
|
7982
|
-
$[46] = name;
|
|
7983
|
-
$[47] = status;
|
|
7984
|
-
$[48] = t18;
|
|
7985
|
-
} else t18 = $[48];
|
|
9262
|
+
if ($[57] !== presentation) {
|
|
9263
|
+
t18 = () => presentation.get().wallpaper;
|
|
9264
|
+
$[57] = presentation;
|
|
9265
|
+
$[58] = t18;
|
|
9266
|
+
} else t18 = $[58];
|
|
9267
|
+
const savedWallpaper = React.useSyncExternalStore(presentation.subscribe, t18);
|
|
7986
9268
|
let t19;
|
|
7987
|
-
if ($[
|
|
7988
|
-
t19 =
|
|
7989
|
-
|
|
9269
|
+
if ($[59] !== presentation) {
|
|
9270
|
+
t19 = (wallpaper) => presentation.update({ wallpaper });
|
|
9271
|
+
$[59] = presentation;
|
|
9272
|
+
$[60] = t19;
|
|
9273
|
+
} else t19 = $[60];
|
|
9274
|
+
const appearance = useComputerWallpaper(savedWallpaper, t19);
|
|
9275
|
+
const wallpaper_0 = appearance.selected;
|
|
9276
|
+
const desktop = hosts.files?.desktop;
|
|
9277
|
+
const t20 = computer.actions;
|
|
9278
|
+
const t21 = computer.handlers;
|
|
9279
|
+
const t22 = `${VEIL}, ${wallpaper_0.background}`;
|
|
9280
|
+
let t23;
|
|
9281
|
+
if ($[61] !== wallpaper_0.darkBackground) {
|
|
9282
|
+
t23 = wallpaper_0.darkBackground && { "--sigvelo-recipe-computer-wallpaper-dark": `${VEIL}, ${wallpaper_0.darkBackground}` };
|
|
9283
|
+
$[61] = wallpaper_0.darkBackground;
|
|
9284
|
+
$[62] = t23;
|
|
9285
|
+
} else t23 = $[62];
|
|
9286
|
+
let t24;
|
|
9287
|
+
if ($[63] !== style || $[64] !== t22 || $[65] !== t23) {
|
|
9288
|
+
t24 = {
|
|
9289
|
+
"--sigvelo-recipe-computer-wallpaper": t22,
|
|
9290
|
+
...t23,
|
|
9291
|
+
...style
|
|
9292
|
+
};
|
|
9293
|
+
$[63] = style;
|
|
9294
|
+
$[64] = t22;
|
|
9295
|
+
$[65] = t23;
|
|
9296
|
+
$[66] = t24;
|
|
9297
|
+
} else t24 = $[66];
|
|
9298
|
+
const t25 = t24;
|
|
9299
|
+
const t26 = Boolean(homeWidget);
|
|
9300
|
+
const t27 = desktop !== void 0;
|
|
9301
|
+
const t28 = host?.employee.name ?? "";
|
|
9302
|
+
let t29;
|
|
9303
|
+
if ($[67] !== connection || $[68] !== extraResults || $[69] !== extras || $[70] !== notifications) {
|
|
9304
|
+
t29 = /* @__PURE__ */ jsx(ComputerMenuExtras, {
|
|
9305
|
+
notifications,
|
|
9306
|
+
connection,
|
|
9307
|
+
extraResults,
|
|
9308
|
+
extras
|
|
9309
|
+
});
|
|
9310
|
+
$[67] = connection;
|
|
9311
|
+
$[68] = extraResults;
|
|
9312
|
+
$[69] = extras;
|
|
9313
|
+
$[70] = notifications;
|
|
9314
|
+
$[71] = t29;
|
|
9315
|
+
} else t29 = $[71];
|
|
9316
|
+
let t30;
|
|
9317
|
+
if ($[72] !== homeWidget || $[73] !== t28 || $[74] !== t29) {
|
|
9318
|
+
t30 = /* @__PURE__ */ jsx(ShellBar, {
|
|
9319
|
+
name: t28,
|
|
9320
|
+
homeWidget,
|
|
9321
|
+
status: t29
|
|
9322
|
+
});
|
|
9323
|
+
$[72] = homeWidget;
|
|
9324
|
+
$[73] = t28;
|
|
9325
|
+
$[74] = t29;
|
|
9326
|
+
$[75] = t30;
|
|
9327
|
+
} else t30 = $[75];
|
|
9328
|
+
let t31;
|
|
9329
|
+
if ($[76] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9330
|
+
t31 = /* @__PURE__ */ jsx(ComputerHome, {});
|
|
9331
|
+
$[76] = t31;
|
|
9332
|
+
} else t31 = $[76];
|
|
9333
|
+
let t32;
|
|
9334
|
+
if ($[77] !== apps || $[78] !== desktop) {
|
|
9335
|
+
t32 = /* @__PURE__ */ jsx(ShellStage, {
|
|
9336
|
+
home: t31,
|
|
7990
9337
|
desktop,
|
|
7991
9338
|
apps
|
|
7992
9339
|
});
|
|
7993
|
-
$[
|
|
7994
|
-
$[
|
|
7995
|
-
$[
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
9340
|
+
$[77] = apps;
|
|
9341
|
+
$[78] = desktop;
|
|
9342
|
+
$[79] = t32;
|
|
9343
|
+
} else t32 = $[79];
|
|
9344
|
+
let t33;
|
|
9345
|
+
if ($[80] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9346
|
+
t33 = /* @__PURE__ */ jsx(ShellExpose, {});
|
|
9347
|
+
$[80] = t33;
|
|
9348
|
+
} else t33 = $[80];
|
|
9349
|
+
const t34 = hosts.files?.trash;
|
|
9350
|
+
const t35 = host?.employee.name ?? "";
|
|
9351
|
+
let t36;
|
|
9352
|
+
if ($[81] !== t34 || $[82] !== t35) {
|
|
9353
|
+
t36 = /* @__PURE__ */ jsx(ComputerDock, {
|
|
9354
|
+
trash: t34,
|
|
9355
|
+
name: t35
|
|
8008
9356
|
});
|
|
8009
|
-
$[
|
|
8010
|
-
$[
|
|
8011
|
-
$[
|
|
8012
|
-
} else
|
|
8013
|
-
let
|
|
8014
|
-
if ($[
|
|
8015
|
-
|
|
8016
|
-
$[
|
|
8017
|
-
} else
|
|
8018
|
-
let
|
|
8019
|
-
if ($[
|
|
8020
|
-
|
|
9357
|
+
$[81] = t34;
|
|
9358
|
+
$[82] = t35;
|
|
9359
|
+
$[83] = t36;
|
|
9360
|
+
} else t36 = $[83];
|
|
9361
|
+
let t37;
|
|
9362
|
+
if ($[84] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9363
|
+
t37 = /* @__PURE__ */ jsx(ShellAnnouncer, {});
|
|
9364
|
+
$[84] = t37;
|
|
9365
|
+
} else t37 = $[84];
|
|
9366
|
+
let t38;
|
|
9367
|
+
if ($[85] !== t32 || $[86] !== t36) {
|
|
9368
|
+
t38 = /* @__PURE__ */ jsxs(AppFrame.Body, {
|
|
8021
9369
|
className: "agent-computer__body",
|
|
8022
9370
|
children: [
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
9371
|
+
t32,
|
|
9372
|
+
t33,
|
|
9373
|
+
t36,
|
|
9374
|
+
t37
|
|
8027
9375
|
]
|
|
8028
9376
|
});
|
|
8029
|
-
$[
|
|
8030
|
-
$[
|
|
8031
|
-
$[
|
|
8032
|
-
} else
|
|
8033
|
-
let
|
|
8034
|
-
let
|
|
8035
|
-
let
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
t26 = /* @__PURE__ */ jsx("div", {
|
|
9377
|
+
$[85] = t32;
|
|
9378
|
+
$[86] = t36;
|
|
9379
|
+
$[87] = t38;
|
|
9380
|
+
} else t38 = $[87];
|
|
9381
|
+
let t39;
|
|
9382
|
+
let t40;
|
|
9383
|
+
let t41;
|
|
9384
|
+
if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9385
|
+
t39 = /* @__PURE__ */ jsx(ShellRevealEdges, {});
|
|
9386
|
+
t40 = /* @__PURE__ */ jsx(ShellAppSwitch, {});
|
|
9387
|
+
t41 = /* @__PURE__ */ jsx("div", {
|
|
8041
9388
|
ref: setPortal,
|
|
8042
9389
|
className: "agent-computer__portal"
|
|
8043
9390
|
});
|
|
8044
|
-
|
|
8045
|
-
$[
|
|
8046
|
-
$[
|
|
8047
|
-
$[63] = t26;
|
|
8048
|
-
$[64] = t27;
|
|
9391
|
+
$[88] = t39;
|
|
9392
|
+
$[89] = t40;
|
|
9393
|
+
$[90] = t41;
|
|
8049
9394
|
} else {
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
let
|
|
8056
|
-
if ($[
|
|
8057
|
-
|
|
9395
|
+
t39 = $[88];
|
|
9396
|
+
t40 = $[89];
|
|
9397
|
+
t41 = $[90];
|
|
9398
|
+
}
|
|
9399
|
+
const t42 = hosts.files?.dialogs;
|
|
9400
|
+
let t43;
|
|
9401
|
+
if ($[91] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9402
|
+
t43 = /* @__PURE__ */ jsx(ShellEffects, {});
|
|
9403
|
+
$[91] = t43;
|
|
9404
|
+
} else t43 = $[91];
|
|
9405
|
+
let t44;
|
|
9406
|
+
if ($[92] !== props || $[93] !== t25 || $[94] !== t26 || $[95] !== t27 || $[96] !== t30 || $[97] !== t38 || $[98] !== t42) {
|
|
9407
|
+
t44 = /* @__PURE__ */ jsxs(ShellRoot, {
|
|
8058
9408
|
...props,
|
|
8059
|
-
style:
|
|
8060
|
-
homeWidget:
|
|
8061
|
-
desktop:
|
|
9409
|
+
style: t25,
|
|
9410
|
+
homeWidget: t26,
|
|
9411
|
+
desktop: t27,
|
|
8062
9412
|
children: [
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
9413
|
+
t30,
|
|
9414
|
+
t38,
|
|
9415
|
+
t39,
|
|
9416
|
+
t40,
|
|
9417
|
+
t41,
|
|
9418
|
+
t42,
|
|
9419
|
+
t43
|
|
8069
9420
|
]
|
|
8070
9421
|
});
|
|
8071
|
-
$[
|
|
8072
|
-
$[
|
|
8073
|
-
$[
|
|
8074
|
-
$[
|
|
8075
|
-
$[
|
|
8076
|
-
$[
|
|
8077
|
-
$[
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
9422
|
+
$[92] = props;
|
|
9423
|
+
$[93] = t25;
|
|
9424
|
+
$[94] = t26;
|
|
9425
|
+
$[95] = t27;
|
|
9426
|
+
$[96] = t30;
|
|
9427
|
+
$[97] = t38;
|
|
9428
|
+
$[98] = t42;
|
|
9429
|
+
$[99] = t44;
|
|
9430
|
+
} else t44 = $[99];
|
|
9431
|
+
let t45;
|
|
9432
|
+
if ($[100] !== appearance || $[101] !== t44) {
|
|
9433
|
+
t45 = /* @__PURE__ */ jsx(AppearanceContext, {
|
|
9434
|
+
value: appearance,
|
|
9435
|
+
children: t44
|
|
9436
|
+
});
|
|
9437
|
+
$[100] = appearance;
|
|
9438
|
+
$[101] = t44;
|
|
9439
|
+
$[102] = t45;
|
|
9440
|
+
} else t45 = $[102];
|
|
9441
|
+
let t46;
|
|
9442
|
+
if ($[103] !== presentation || $[104] !== t45) {
|
|
9443
|
+
t46 = /* @__PURE__ */ jsx(PresentationContext, {
|
|
9444
|
+
value: presentation,
|
|
9445
|
+
children: t45
|
|
9446
|
+
});
|
|
9447
|
+
$[103] = presentation;
|
|
9448
|
+
$[104] = t45;
|
|
9449
|
+
$[105] = t46;
|
|
9450
|
+
} else t46 = $[105];
|
|
9451
|
+
let t47;
|
|
9452
|
+
if ($[106] !== portal || $[107] !== t46) {
|
|
9453
|
+
t47 = /* @__PURE__ */ jsx(PortalContext, {
|
|
8082
9454
|
value: portal,
|
|
8083
|
-
children:
|
|
9455
|
+
children: t46
|
|
8084
9456
|
});
|
|
8085
|
-
$[
|
|
8086
|
-
$[
|
|
8087
|
-
$[
|
|
8088
|
-
} else
|
|
8089
|
-
let
|
|
8090
|
-
if ($[
|
|
8091
|
-
|
|
8092
|
-
value:
|
|
8093
|
-
children:
|
|
8094
|
-
});
|
|
8095
|
-
$[
|
|
8096
|
-
$[
|
|
8097
|
-
$[
|
|
8098
|
-
} else
|
|
8099
|
-
let
|
|
8100
|
-
if ($[
|
|
8101
|
-
|
|
8102
|
-
value:
|
|
8103
|
-
children:
|
|
8104
|
-
});
|
|
8105
|
-
$[
|
|
8106
|
-
$[
|
|
8107
|
-
$[
|
|
8108
|
-
} else
|
|
8109
|
-
let
|
|
8110
|
-
if ($[
|
|
8111
|
-
|
|
9457
|
+
$[106] = portal;
|
|
9458
|
+
$[107] = t46;
|
|
9459
|
+
$[108] = t47;
|
|
9460
|
+
} else t47 = $[108];
|
|
9461
|
+
let t48;
|
|
9462
|
+
if ($[109] !== computer.handlers || $[110] !== t47) {
|
|
9463
|
+
t48 = /* @__PURE__ */ jsx(HandlersContext, {
|
|
9464
|
+
value: t21,
|
|
9465
|
+
children: t47
|
|
9466
|
+
});
|
|
9467
|
+
$[109] = computer.handlers;
|
|
9468
|
+
$[110] = t47;
|
|
9469
|
+
$[111] = t48;
|
|
9470
|
+
} else t48 = $[111];
|
|
9471
|
+
let t49;
|
|
9472
|
+
if ($[112] !== computer.actions || $[113] !== t48) {
|
|
9473
|
+
t49 = /* @__PURE__ */ jsx(ActionsContext, {
|
|
9474
|
+
value: t20,
|
|
9475
|
+
children: t48
|
|
9476
|
+
});
|
|
9477
|
+
$[112] = computer.actions;
|
|
9478
|
+
$[113] = t48;
|
|
9479
|
+
$[114] = t49;
|
|
9480
|
+
} else t49 = $[114];
|
|
9481
|
+
let t50;
|
|
9482
|
+
if ($[115] !== computer || $[116] !== t49) {
|
|
9483
|
+
t50 = /* @__PURE__ */ jsx(ComputerContext, {
|
|
8112
9484
|
value: computer,
|
|
8113
|
-
children:
|
|
9485
|
+
children: t49
|
|
8114
9486
|
});
|
|
8115
|
-
$[
|
|
8116
|
-
$[
|
|
8117
|
-
$[
|
|
8118
|
-
} else
|
|
8119
|
-
return
|
|
9487
|
+
$[115] = computer;
|
|
9488
|
+
$[116] = t49;
|
|
9489
|
+
$[117] = t50;
|
|
9490
|
+
} else t50 = $[117];
|
|
9491
|
+
return t50;
|
|
8120
9492
|
}
|
|
8121
9493
|
//#endregion
|
|
8122
|
-
export { useAgentComputerWindow as a, useAgentComputerPortalContainer as i, useAgentComputerActions as n, useAgentComputerWindowActive as o, useAgentComputerAppHandlers as r,
|
|
9494
|
+
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 };
|