@mcp-b/react-components 0.67.0 → 0.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/{AgentComputer-BP9ixGGE.js → AgentComputer-CFJxjMFE.js} +32 -3
  2. package/dist/ComputerFileThumbnail-CXHy127c.js +393 -0
  3. package/dist/{ThinkSchedule-D4Ulsa0-.d.ts → ThinkSchedule-9nzxIoX1.d.ts} +1 -1
  4. package/dist/{Workspace-B9nuTfIi.d.ts → Workspace-mZddFyvP.d.ts} +7 -3
  5. package/dist/{WorkspaceAutomation-C0fghGLi.d.ts → WorkspaceAutomation-hwl6C1aX.d.ts} +2 -2
  6. package/dist/{WorkspaceBrowser-Dz48H-7X.d.ts → WorkspaceBrowser-CNVAKXXZ.d.ts} +4 -11
  7. package/dist/{WorkspaceBrowser-oBJv-Dac.js → WorkspaceBrowser-ojoZy0uO.js} +202 -210
  8. package/dist/{WorkspaceConcept-D46cYerS.d.ts → WorkspaceConcept-DqzfZWws.d.ts} +1 -1
  9. package/dist/{WorkspaceFileCommands-1s9Ol8CG.d.ts → WorkspaceFileCommands-CN2oVUzx.d.ts} +5 -2
  10. package/dist/{WorkspaceFileTransfer-BRD22nW-.d.ts → WorkspaceFileTransfer-D--dVla2.d.ts} +1 -1
  11. package/dist/components/agents-sdk/AgentComputer.d.ts +1 -1
  12. package/dist/components/agents-sdk/AgentComputer.js +1 -1
  13. package/dist/components/agents-sdk/ComputerAppIds.d.ts +15 -0
  14. package/dist/components/agents-sdk/ComputerAppIds.js +14 -0
  15. package/dist/components/agents-sdk/ComputerAutomations.d.ts +23 -14
  16. package/dist/components/agents-sdk/ComputerAutomations.js +437 -354
  17. package/dist/components/agents-sdk/ComputerCalendar.js +16 -15
  18. package/dist/components/agents-sdk/ComputerCustomWallpaper.d.ts +39 -0
  19. package/dist/components/agents-sdk/ComputerCustomWallpaper.js +522 -0
  20. package/dist/components/agents-sdk/ComputerFileThumbnail.d.ts +17 -0
  21. package/dist/components/agents-sdk/ComputerFileThumbnail.js +2 -0
  22. package/dist/components/agents-sdk/ComputerFiles.d.ts +4 -6
  23. package/dist/components/agents-sdk/ComputerFiles.js +337 -316
  24. package/dist/components/agents-sdk/ComputerHome.js +1 -1
  25. package/dist/components/agents-sdk/ComputerLayout.d.ts +9 -0
  26. package/dist/components/agents-sdk/ComputerLayout.js +66 -0
  27. package/dist/components/agents-sdk/ComputerNotifications.js +60 -83
  28. package/dist/components/agents-sdk/ComputerScreen.d.ts +12 -6
  29. package/dist/components/agents-sdk/ComputerScreen.js +49 -36
  30. package/dist/components/agents-sdk/ComputerSettings.d.ts +10 -4
  31. package/dist/components/agents-sdk/ComputerSettings.js +92 -72
  32. package/dist/components/agents-sdk/ComputerSpotlight.js +1 -1
  33. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +2 -2
  34. package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
  35. package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
  36. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
  37. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  38. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  39. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +1 -1
  40. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  41. package/dist/components/agents-sdk/Workspace.js +197 -190
  42. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  43. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  44. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
  45. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  46. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  47. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  48. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +6 -6
  49. package/dist/components/agents-sdk/WorkspaceDesktop.js +126 -101
  50. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +2 -10
  51. package/dist/components/agents-sdk/WorkspaceExplorer.js +67 -71
  52. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +1 -1
  53. package/dist/components/agents-sdk/WorkspaceFileCommands.js +11 -6
  54. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +1 -1
  55. package/dist/components/agents-sdk/WorkspaceLive.d.ts +1 -1
  56. package/dist/components/agents-sdk/WorkspaceLive.js +7 -5
  57. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +1 -1
  58. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  59. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  60. package/dist/components/extension/FirstRunSetup.d.ts +2 -2
  61. package/dist/minute-clock-CXpRGCMF.js +35 -0
  62. package/dist/{parts-RXV6GGdB.js → parts-CPVz9l31.js} +1 -1
  63. package/dist/styles/computer-files.css +31 -0
  64. package/dist/{workspace-concept-panel-BDTBISNO.d.ts → workspace-concept-panel-D1czupvi.d.ts} +1 -1
  65. package/dist/{workspace-quick-look-9V-UFpjj.js → workspace-quick-look-DODjsfhH.js} +79 -251
  66. package/package.json +2 -2
@@ -10,15 +10,17 @@ import { Menu } from "../foundations/Menu.js";
10
10
  import { a as workspaceDirname, i as workspaceBasename } from "../../workspace-path-TZggP-u4.js";
11
11
  import { downloadWorkspaceFile, saveWorkspaceFileAs } from "./WorkspaceFileTransfer.js";
12
12
  import { r as useWorkspaceDragAndDrop } from "../../workspace-drag-B6hMXUNt.js";
13
- import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "../../AgentComputer-BP9ixGGE.js";
13
+ import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "../../AgentComputer-CFJxjMFE.js";
14
14
  import { Menubar } from "../foundations/Menubar.js";
15
15
  import { EmptyState } from "../foundations/EmptyState.js";
16
+ import { COMPUTER_APP_IDS } from "./ComputerAppIds.js";
16
17
  import { AppTopBar } from "../general-purpose/AppTopBar.js";
17
- import { n as computerAppTile } from "../../parts-RXV6GGdB.js";
18
+ import { n as computerAppTile } from "../../parts-CPVz9l31.js";
18
19
  import { SearchField } from "../foundations/SearchField.js";
19
20
  import { ToggleGroup } from "../foundations/ToggleGroup.js";
21
+ import { a as hasModifier } from "../../ComputerFileThumbnail-CXHy127c.js";
20
22
  import { useWorkspace, workspaceInfoQueryKey } from "./Workspace.js";
21
- import { o as hasModifier } from "../../workspace-quick-look-9V-UFpjj.js";
23
+ import { i as WorkspaceThumbnailContext } from "../../workspace-quick-look-DODjsfhH.js";
22
24
  import { WORKSPACE_TRASH, isHiddenWorkspaceEntry, isInWorkspaceTrash, isWithin, useWorkspaceFileCommands, workspaceFileCommandForKey, workspaceFileShortcut } from "./WorkspaceFileCommands.js";
23
25
  import { WorkspaceFileDetails, WorkspaceFileFacts } from "./WorkspaceFileDetails.js";
24
26
  import { WorkspaceFileView } from "./WorkspaceFileView.js";
@@ -66,37 +68,39 @@ function querySource(source, recent, search) {
66
68
  }
67
69
  /** What a desktop icon or Quick Look opens into: a folder's contents, or the file itself. */
68
70
  function ComputerFilesPreview(t0) {
69
- const $ = c(28);
70
- const { entry, source, sourceKey, renderUnsupported: t1 } = t0;
71
+ const $ = c(29);
72
+ const { entry, source, sourceKey, resolveFileAsset, renderUnsupported: t1 } = t0;
71
73
  const renderUnsupported = t1 === void 0 ? NO_UNSUPPORTED : t1;
72
74
  const t2 = entry.type === "directory" ? entry.path : "/";
73
75
  const t3 = entry.type === "file" ? entry.path : null;
74
76
  let t4;
75
- if ($[0] !== source || $[1] !== sourceKey || $[2] !== t2 || $[3] !== t3) {
77
+ if ($[0] !== resolveFileAsset || $[1] !== source || $[2] !== sourceKey || $[3] !== t2 || $[4] !== t3) {
76
78
  t4 = {
77
79
  source,
78
80
  sourceKey,
81
+ resolveFileAsset,
79
82
  root: t2,
80
83
  selectedPath: t3
81
84
  };
82
- $[0] = source;
83
- $[1] = sourceKey;
84
- $[2] = t2;
85
- $[3] = t3;
86
- $[4] = t4;
87
- } else t4 = $[4];
85
+ $[0] = resolveFileAsset;
86
+ $[1] = source;
87
+ $[2] = sourceKey;
88
+ $[3] = t2;
89
+ $[4] = t3;
90
+ $[5] = t4;
91
+ } else t4 = $[5];
88
92
  const workspace = useWorkspace(t4);
89
93
  if (entry.type === "directory") {
90
94
  let t5;
91
- if ($[5] !== entry.path || $[6] !== workspace.entriesByDirectory) {
95
+ if ($[6] !== entry.path || $[7] !== workspace.entriesByDirectory) {
92
96
  t5 = workspace.entriesByDirectory[entry.path] ?? [];
93
- $[5] = entry.path;
94
- $[6] = workspace.entriesByDirectory;
95
- $[7] = t5;
96
- } else t5 = $[7];
97
+ $[6] = entry.path;
98
+ $[7] = workspace.entriesByDirectory;
99
+ $[8] = t5;
100
+ } else t5 = $[8];
97
101
  const children = t5;
98
102
  let t6;
99
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
103
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
100
104
  t6 = /* @__PURE__ */ jsx(AppIcon.Root, {
101
105
  "aria-hidden": "true",
102
106
  children: /* @__PURE__ */ jsx(AppIcon.Image, {
@@ -104,29 +108,29 @@ function ComputerFilesPreview(t0) {
104
108
  alt: ""
105
109
  })
106
110
  });
107
- $[8] = t6;
108
- } else t6 = $[8];
111
+ $[9] = t6;
112
+ } else t6 = $[9];
109
113
  const t7 = workspace.error ?? (workspace.isLoading ? "Loading folder…" : `${children.length} items`);
110
114
  let t8;
111
- if ($[9] !== t7) {
115
+ if ($[10] !== t7) {
112
116
  t8 = /* @__PURE__ */ jsx("p", { children: t7 });
113
- $[9] = t7;
114
- $[10] = t8;
115
- } else t8 = $[10];
117
+ $[10] = t7;
118
+ $[11] = t8;
119
+ } else t8 = $[11];
116
120
  let t9;
117
- if ($[11] !== children) {
121
+ if ($[12] !== children) {
118
122
  t9 = children.map(_temp$1);
119
- $[11] = children;
120
- $[12] = t9;
121
- } else t9 = $[12];
123
+ $[12] = children;
124
+ $[13] = t9;
125
+ } else t9 = $[13];
122
126
  let t10;
123
- if ($[13] !== t9) {
127
+ if ($[14] !== t9) {
124
128
  t10 = /* @__PURE__ */ jsx("ul", { children: t9 });
125
- $[13] = t9;
126
- $[14] = t10;
127
- } else t10 = $[14];
129
+ $[14] = t9;
130
+ $[15] = t10;
131
+ } else t10 = $[15];
128
132
  let t11;
129
- if ($[15] !== t10 || $[16] !== t8) {
133
+ if ($[16] !== t10 || $[17] !== t8) {
130
134
  t11 = /* @__PURE__ */ jsxs("div", {
131
135
  className: "computer-files-folder-preview",
132
136
  children: [
@@ -135,23 +139,23 @@ function ComputerFilesPreview(t0) {
135
139
  t10
136
140
  ]
137
141
  });
138
- $[15] = t10;
139
- $[16] = t8;
140
- $[17] = t11;
141
- } else t11 = $[17];
142
+ $[16] = t10;
143
+ $[17] = t8;
144
+ $[18] = t11;
145
+ } else t11 = $[18];
142
146
  return t11;
143
147
  }
144
148
  const t5 = entry.path;
145
149
  const t6 = workspace.selectedFile;
146
150
  let t7;
147
- if ($[18] !== entry.path || $[19] !== workspace.loadingPaths) {
151
+ if ($[19] !== entry.path || $[20] !== workspace.loadingPaths) {
148
152
  t7 = workspace.loadingPaths.has(entry.path);
149
- $[18] = entry.path;
150
- $[19] = workspace.loadingPaths;
151
- $[20] = t7;
152
- } else t7 = $[20];
153
+ $[19] = entry.path;
154
+ $[20] = workspace.loadingPaths;
155
+ $[21] = t7;
156
+ } else t7 = $[21];
153
157
  let t8;
154
- if ($[21] !== entry.path || $[22] !== renderUnsupported || $[23] !== t7 || $[24] !== workspace.isLoading || $[25] !== workspace.refresh || $[26] !== workspace.selectedFile) {
158
+ if ($[22] !== entry.path || $[23] !== renderUnsupported || $[24] !== t7 || $[25] !== workspace.isLoading || $[26] !== workspace.refresh || $[27] !== workspace.selectedFile) {
155
159
  t8 = /* @__PURE__ */ jsx(WorkspaceFileView, {
156
160
  header: "none",
157
161
  appearance: "fill",
@@ -162,14 +166,14 @@ function ComputerFilesPreview(t0) {
162
166
  renderUnsupported,
163
167
  onRefresh: workspace.refresh
164
168
  });
165
- $[21] = entry.path;
166
- $[22] = renderUnsupported;
167
- $[23] = t7;
168
- $[24] = workspace.isLoading;
169
- $[25] = workspace.refresh;
170
- $[26] = workspace.selectedFile;
171
- $[27] = t8;
172
- } else t8 = $[27];
169
+ $[22] = entry.path;
170
+ $[23] = renderUnsupported;
171
+ $[24] = t7;
172
+ $[25] = workspace.isLoading;
173
+ $[26] = workspace.refresh;
174
+ $[27] = workspace.selectedFile;
175
+ $[28] = t8;
176
+ } else t8 = $[28];
173
177
  return t8;
174
178
  }
175
179
  function _temp$1(child) {
@@ -810,8 +814,8 @@ function FinderRailRow(t0) {
810
814
  return t4;
811
815
  }
812
816
  function ComputerFinder(t0) {
813
- const $ = c(58);
814
- const { workspace, source, sourceKey, navigation, location, onLocation, filter, onFilterChange, view, onViewChange, renderThumbnail, renderUnsupported, phone, layout, onLayoutChange, sort, onSortChange, locations, projects, titles, toolbarActions, dialogs, status, dragAndDrop, commands, actionsRef, railDragAndDrop } = t0;
817
+ const $ = c(61);
818
+ const { workspace, source, sourceKey, resolveFileAsset, navigation, location, onLocation, filter, onFilterChange, view, onViewChange, renderUnsupported, phone, layout, onLayoutChange, sort, onSortChange, locations, projects, titles, toolbarActions, dialogs, status, dragAndDrop, commands, actionsRef, railDragAndDrop } = t0;
815
819
  let T0;
816
820
  let back;
817
821
  let selectedPath;
@@ -819,42 +823,53 @@ function ComputerFinder(t0) {
819
823
  let t2;
820
824
  let t3;
821
825
  let t4;
822
- if ($[0] !== actionsRef || $[1] !== commands || $[2] !== dragAndDrop || $[3] !== filter || $[4] !== layout || $[5] !== location || $[6] !== locations || $[7] !== navigation || $[8] !== onFilterChange || $[9] !== onLayoutChange || $[10] !== onLocation || $[11] !== onSortChange || $[12] !== onViewChange || $[13] !== phone || $[14] !== projects || $[15] !== railDragAndDrop || $[16] !== renderThumbnail || $[17] !== renderUnsupported || $[18] !== sort || $[19] !== source || $[20] !== sourceKey || $[21] !== status || $[22] !== titles || $[23] !== toolbarActions || $[24] !== view || $[25] !== workspace) {
826
+ if ($[0] !== actionsRef || $[1] !== commands || $[2] !== dragAndDrop || $[3] !== filter || $[4] !== layout || $[5] !== location || $[6] !== locations || $[7] !== navigation || $[8] !== onFilterChange || $[9] !== onLayoutChange || $[10] !== onLocation || $[11] !== onSortChange || $[12] !== onViewChange || $[13] !== phone || $[14] !== projects || $[15] !== railDragAndDrop || $[16] !== renderUnsupported || $[17] !== resolveFileAsset || $[18] !== sort || $[19] !== source || $[20] !== sourceKey || $[21] !== status || $[22] !== titles || $[23] !== toolbarActions || $[24] !== view || $[25] !== workspace) {
823
827
  selectedPath = openFilePath(navigation);
828
+ let t5;
829
+ if ($[33] !== source || $[34] !== sourceKey) {
830
+ t5 = {
831
+ source,
832
+ sourceKey
833
+ };
834
+ $[33] = source;
835
+ $[34] = sourceKey;
836
+ $[35] = t5;
837
+ } else t5 = $[35];
838
+ const thumbnails = t5;
824
839
  const places = finderDetail(selectedPath ? workspaceDirname(selectedPath) : location, selectedPath);
825
840
  const top = places.at(-1);
826
- let t5;
827
- if ($[33] !== titles) {
828
- t5 = folderName("/", titles);
829
- $[33] = titles;
830
- $[34] = t5;
831
- } else t5 = $[34];
832
- const rootLabel = t5;
841
+ let t6;
842
+ if ($[36] !== titles) {
843
+ t6 = folderName("/", titles);
844
+ $[36] = titles;
845
+ $[37] = t6;
846
+ } else t6 = $[37];
847
+ const rootLabel = t6;
833
848
  back = phoneBack({
834
849
  ...top,
835
850
  workspace,
836
851
  titles
837
852
  }, onLocation);
838
- const t6 = phone ? void 0 : railDragAndDrop;
839
- let t7;
840
- if ($[35] !== location || $[36] !== locations || $[37] !== onLocation || $[38] !== phone || $[39] !== projects || $[40] !== t6) {
841
- t7 = /* @__PURE__ */ jsx(FinderRail, {
853
+ const t7 = phone ? void 0 : railDragAndDrop;
854
+ let t8;
855
+ if ($[38] !== location || $[39] !== locations || $[40] !== onLocation || $[41] !== phone || $[42] !== projects || $[43] !== t7) {
856
+ t8 = /* @__PURE__ */ jsx(FinderRail, {
842
857
  phone,
843
858
  location,
844
859
  onLocation,
845
860
  places: locations,
846
861
  projects,
847
- railDragAndDrop: t6
862
+ railDragAndDrop: t7
848
863
  });
849
- $[35] = location;
850
- $[36] = locations;
851
- $[37] = onLocation;
852
- $[38] = phone;
853
- $[39] = projects;
854
- $[40] = t6;
855
- $[41] = t7;
856
- } else t7 = $[41];
857
- const rail = t7;
864
+ $[38] = location;
865
+ $[39] = locations;
866
+ $[40] = onLocation;
867
+ $[41] = phone;
868
+ $[42] = projects;
869
+ $[43] = t7;
870
+ $[44] = t8;
871
+ } else t8 = $[44];
872
+ const rail = t8;
858
873
  const content = function content(screen) {
859
874
  const currentScreen = screen.key === top.key;
860
875
  return /* @__PURE__ */ jsxs("div", {
@@ -869,36 +884,39 @@ function ComputerFinder(t0) {
869
884
  onLocation
870
885
  }),
871
886
  currentScreen ? status : null,
872
- /* @__PURE__ */ jsx(WorkspaceExplorer, {
873
- workspace: screen.workspace,
874
- navigation: screen.file !== selectedPath ? {
875
- ...navigation,
876
- current: {
877
- ...navigation.current,
878
- destination: { kind: "files" }
879
- }
880
- } : navigation,
881
- header: "none",
882
- layout,
883
- sort,
884
- showFilter: phone && !screen.file,
885
- filterPlaceholder: "Search files",
886
- filter,
887
- onFilterChange,
888
- view,
889
- onViewChange,
890
- onDirectoryOpen: onLocation,
891
- renderThumbnail,
892
- renderUnsupported,
893
- renderPreview: (entry) => /* @__PURE__ */ jsx(ComputerFilesPreview, {
894
- entry,
895
- source,
896
- sourceKey,
897
- renderUnsupported
898
- }),
899
- actionsRef: currentScreen ? actionsRef : void 0,
900
- dragAndDrop: phone || !currentScreen ? void 0 : dragAndDrop,
901
- commands: phone || !currentScreen ? void 0 : commands
887
+ /* @__PURE__ */ jsx(WorkspaceThumbnailContext, {
888
+ value: thumbnails,
889
+ children: /* @__PURE__ */ jsx(WorkspaceExplorer, {
890
+ workspace: screen.workspace,
891
+ navigation: screen.file !== selectedPath ? {
892
+ ...navigation,
893
+ current: {
894
+ ...navigation.current,
895
+ destination: { kind: "files" }
896
+ }
897
+ } : navigation,
898
+ header: "none",
899
+ layout,
900
+ sort,
901
+ showFilter: phone && !screen.file,
902
+ filterPlaceholder: "Search files",
903
+ filter,
904
+ onFilterChange,
905
+ view,
906
+ onViewChange,
907
+ onDirectoryOpen: onLocation,
908
+ renderUnsupported,
909
+ renderPreview: (entry) => /* @__PURE__ */ jsx(ComputerFilesPreview, {
910
+ entry,
911
+ source,
912
+ sourceKey,
913
+ resolveFileAsset,
914
+ renderUnsupported
915
+ }),
916
+ actionsRef: currentScreen ? actionsRef : void 0,
917
+ dragAndDrop: phone || !currentScreen ? void 0 : dragAndDrop,
918
+ commands: phone || !currentScreen ? void 0 : commands
919
+ })
902
920
  })
903
921
  ]
904
922
  });
@@ -930,7 +948,7 @@ function ComputerFinder(t0) {
930
948
  };
931
949
  T0 = ListDetail;
932
950
  t1 = "computer-finder";
933
- if ($[42] !== phone || $[43] !== rail || $[44] !== rootLabel || $[45] !== toolbarActions) {
951
+ if ($[45] !== phone || $[46] !== rail || $[47] !== rootLabel || $[48] !== toolbarActions) {
934
952
  t2 = phone ? /* @__PURE__ */ jsxs("div", {
935
953
  className: "computer-finder-browse",
936
954
  children: [
@@ -955,12 +973,12 @@ function ComputerFinder(t0) {
955
973
  rail
956
974
  ]
957
975
  }) : rail;
958
- $[42] = phone;
959
- $[43] = rail;
960
- $[44] = rootLabel;
961
- $[45] = toolbarActions;
962
- $[46] = t2;
963
- } else t2 = $[46];
976
+ $[45] = phone;
977
+ $[46] = rail;
978
+ $[47] = rootLabel;
979
+ $[48] = toolbarActions;
980
+ $[49] = t2;
981
+ } else t2 = $[49];
964
982
  t3 = "Locations";
965
983
  t4 = places.map((place) => ({
966
984
  key: place.key,
@@ -995,8 +1013,8 @@ function ComputerFinder(t0) {
995
1013
  $[13] = phone;
996
1014
  $[14] = projects;
997
1015
  $[15] = railDragAndDrop;
998
- $[16] = renderThumbnail;
999
- $[17] = renderUnsupported;
1016
+ $[16] = renderUnsupported;
1017
+ $[17] = resolveFileAsset;
1000
1018
  $[18] = sort;
1001
1019
  $[19] = source;
1002
1020
  $[20] = sourceKey;
@@ -1024,7 +1042,7 @@ function ComputerFinder(t0) {
1024
1042
  const t5 = !(location === "/" && !selectedPath);
1025
1043
  const t6 = back?.go;
1026
1044
  let t7;
1027
- if ($[47] !== T0 || $[48] !== t1 || $[49] !== t2 || $[50] !== t3 || $[51] !== t4 || $[52] !== t5 || $[53] !== t6) {
1045
+ if ($[50] !== T0 || $[51] !== t1 || $[52] !== t2 || $[53] !== t3 || $[54] !== t4 || $[55] !== t5 || $[56] !== t6) {
1028
1046
  t7 = /* @__PURE__ */ jsx(T0, {
1029
1047
  className: t1,
1030
1048
  list: t2,
@@ -1034,22 +1052,22 @@ function ComputerFinder(t0) {
1034
1052
  open: t5,
1035
1053
  onBack: t6
1036
1054
  });
1037
- $[47] = T0;
1038
- $[48] = t1;
1039
- $[49] = t2;
1040
- $[50] = t3;
1041
- $[51] = t4;
1042
- $[52] = t5;
1043
- $[53] = t6;
1044
- $[54] = t7;
1045
- } else t7 = $[54];
1055
+ $[50] = T0;
1056
+ $[51] = t1;
1057
+ $[52] = t2;
1058
+ $[53] = t3;
1059
+ $[54] = t4;
1060
+ $[55] = t5;
1061
+ $[56] = t6;
1062
+ $[57] = t7;
1063
+ } else t7 = $[57];
1046
1064
  let t8;
1047
- if ($[55] !== dialogs || $[56] !== t7) {
1065
+ if ($[58] !== dialogs || $[59] !== t7) {
1048
1066
  t8 = /* @__PURE__ */ jsxs(Fragment, { children: [t7, dialogs] });
1049
- $[55] = dialogs;
1050
- $[56] = t7;
1051
- $[57] = t8;
1052
- } else t8 = $[57];
1067
+ $[58] = dialogs;
1068
+ $[59] = t7;
1069
+ $[60] = t8;
1070
+ } else t8 = $[60];
1053
1071
  return t8;
1054
1072
  }
1055
1073
  /**
@@ -1296,9 +1314,9 @@ function folderLineage(path) {
1296
1314
  * are separate subtrees of the same window.
1297
1315
  */
1298
1316
  function useFinderModel(host) {
1299
- const $ = c(129);
1317
+ const $ = c(130);
1300
1318
  const { files, navigation, location, onLocation, onBack, onForward, projects, onOpenConversation, onStartConversation, views } = host;
1301
- const { source, sourceKey } = files.home;
1319
+ const { source, sourceKey, resolveFileAsset } = files.home;
1302
1320
  const queryClient = useQueryClient();
1303
1321
  const places = finderPlaces(files.locations);
1304
1322
  let t0;
@@ -1336,33 +1354,35 @@ function useFinderModel(host) {
1336
1354
  const finderSource = t2;
1337
1355
  const t3 = file ? "/" : searching ? `${SEARCH}${encodeURIComponent(query)}` : location;
1338
1356
  let t4;
1339
- if ($[8] !== file || $[9] !== finderSource || $[10] !== sourceKey || $[11] !== t3) {
1357
+ if ($[8] !== file || $[9] !== finderSource || $[10] !== resolveFileAsset || $[11] !== sourceKey || $[12] !== t3) {
1340
1358
  t4 = {
1341
1359
  source: finderSource,
1342
1360
  sourceKey,
1361
+ resolveFileAsset,
1343
1362
  root: t3,
1344
1363
  selectedPath: file
1345
1364
  };
1346
1365
  $[8] = file;
1347
1366
  $[9] = finderSource;
1348
- $[10] = sourceKey;
1349
- $[11] = t3;
1350
- $[12] = t4;
1351
- } else t4 = $[12];
1367
+ $[10] = resolveFileAsset;
1368
+ $[11] = sourceKey;
1369
+ $[12] = t3;
1370
+ $[13] = t4;
1371
+ } else t4 = $[13];
1352
1372
  const workspace = useWorkspace(t4);
1353
1373
  let t5;
1354
- if ($[13] !== location || $[14] !== projects) {
1374
+ if ($[14] !== location || $[15] !== projects) {
1355
1375
  let t6;
1356
- if ($[16] !== location) {
1376
+ if ($[17] !== location) {
1357
1377
  t6 = (candidate) => workspaceDirname(candidate.path) === location;
1358
- $[16] = location;
1359
- $[17] = t6;
1360
- } else t6 = $[17];
1378
+ $[17] = location;
1379
+ $[18] = t6;
1380
+ } else t6 = $[18];
1361
1381
  t5 = projects.find(t6);
1362
- $[13] = location;
1363
- $[14] = projects;
1364
- $[15] = t5;
1365
- } else t5 = $[15];
1382
+ $[14] = location;
1383
+ $[15] = projects;
1384
+ $[16] = t5;
1385
+ } else t5 = $[16];
1366
1386
  const project = t5;
1367
1387
  const titles = new Map([
1368
1388
  ["/", files.home.name],
@@ -1373,40 +1393,40 @@ function useFinderModel(host) {
1373
1393
  const lockedHere = readOnlyAt(location);
1374
1394
  const [view, setView] = useState("preview");
1375
1395
  let t6;
1376
- if ($[18] !== location || $[19] !== recents || $[20] !== views) {
1396
+ if ($[19] !== location || $[20] !== recents || $[21] !== views) {
1377
1397
  t6 = () => (recents ? [location] : folderLineage(location)).map((folder) => views.get(folder)).find(Boolean) ?? (recents ? RECENTS_VIEW : FOLDER_VIEW);
1378
- $[18] = location;
1379
- $[19] = recents;
1380
- $[20] = views;
1381
- $[21] = t6;
1382
- } else t6 = $[21];
1398
+ $[19] = location;
1399
+ $[20] = recents;
1400
+ $[21] = views;
1401
+ $[22] = t6;
1402
+ } else t6 = $[22];
1383
1403
  const folderView = useSyncExternalStore(views.subscribe, t6);
1384
1404
  const { layout, sort } = folderView;
1385
1405
  let t7;
1386
- if ($[22] !== folderView || $[23] !== location || $[24] !== views) {
1406
+ if ($[23] !== folderView || $[24] !== location || $[25] !== views) {
1387
1407
  t7 = (patch) => views.set(location, {
1388
1408
  ...folderView,
1389
1409
  ...patch
1390
1410
  });
1391
- $[22] = folderView;
1392
- $[23] = location;
1393
- $[24] = views;
1394
- $[25] = t7;
1395
- } else t7 = $[25];
1411
+ $[23] = folderView;
1412
+ $[24] = location;
1413
+ $[25] = views;
1414
+ $[26] = t7;
1415
+ } else t7 = $[26];
1396
1416
  const setFolderView = t7;
1397
1417
  let t8;
1398
- if ($[26] !== setFolderView) {
1418
+ if ($[27] !== setFolderView) {
1399
1419
  t8 = (next) => setFolderView({ layout: next });
1400
- $[26] = setFolderView;
1401
- $[27] = t8;
1402
- } else t8 = $[27];
1420
+ $[27] = setFolderView;
1421
+ $[28] = t8;
1422
+ } else t8 = $[28];
1403
1423
  const setLayout = t8;
1404
1424
  let t9;
1405
- if ($[28] !== setFolderView) {
1425
+ if ($[29] !== setFolderView) {
1406
1426
  t9 = (next_0) => setFolderView({ sort: next_0 });
1407
- $[28] = setFolderView;
1408
- $[29] = t9;
1409
- } else t9 = $[29];
1427
+ $[29] = setFolderView;
1428
+ $[30] = t9;
1429
+ } else t9 = $[30];
1410
1430
  const setSort = t9;
1411
1431
  const [newProjectOpen, setNewProjectOpen] = useState(false);
1412
1432
  const inTrash = location === WORKSPACE_TRASH;
@@ -1421,7 +1441,7 @@ function useFinderModel(host) {
1421
1441
  const importFolder = virtual ? "/" : location;
1422
1442
  const importLocked = readOnlyAt(importFolder);
1423
1443
  let t10;
1424
- if ($[30] !== files || $[31] !== onLocation || $[32] !== queryClient || $[33] !== source || $[34] !== sourceKey) {
1444
+ if ($[31] !== files || $[32] !== onLocation || $[33] !== queryClient || $[34] !== source || $[35] !== sourceKey) {
1425
1445
  t10 = async function createProject(name, description) {
1426
1446
  const slug = projectSlug(name);
1427
1447
  if (!slug) throw new Error("Use at least one letter or number in the name.");
@@ -1431,16 +1451,16 @@ function useFinderModel(host) {
1431
1451
  onLocation(folderPath);
1432
1452
  files.setStatus(`Created ${name} in Agent files.`);
1433
1453
  };
1434
- $[30] = files;
1435
- $[31] = onLocation;
1436
- $[32] = queryClient;
1437
- $[33] = source;
1438
- $[34] = sourceKey;
1439
- $[35] = t10;
1440
- } else t10 = $[35];
1454
+ $[31] = files;
1455
+ $[32] = onLocation;
1456
+ $[33] = queryClient;
1457
+ $[34] = source;
1458
+ $[35] = sourceKey;
1459
+ $[36] = t10;
1460
+ } else t10 = $[36];
1441
1461
  const createProject = t10;
1442
1462
  let t11;
1443
- if ($[36] !== file || $[37] !== files || $[38] !== setExportFeedback || $[39] !== setExporting || $[40] !== source) {
1463
+ if ($[37] !== file || $[38] !== files || $[39] !== setExportFeedback || $[40] !== setExporting || $[41] !== source) {
1444
1464
  t11 = async function exportFile(mode) {
1445
1465
  if (!file || exportBusyRef.current) return;
1446
1466
  exportBusyRef.current = true;
@@ -1456,16 +1476,16 @@ function useFinderModel(host) {
1456
1476
  exportBusyRef.current = false;
1457
1477
  setExporting(false);
1458
1478
  };
1459
- $[36] = file;
1460
- $[37] = files;
1461
- $[38] = setExportFeedback;
1462
- $[39] = setExporting;
1463
- $[40] = source;
1464
- $[41] = t11;
1465
- } else t11 = $[41];
1479
+ $[37] = file;
1480
+ $[38] = files;
1481
+ $[39] = setExportFeedback;
1482
+ $[40] = setExporting;
1483
+ $[41] = source;
1484
+ $[42] = t11;
1485
+ } else t11 = $[42];
1466
1486
  const exportFile = t11;
1467
1487
  let t12;
1468
- if ($[42] !== files || $[43] !== readOnlyAt || $[44] !== source || $[45] !== sourceKey) {
1488
+ if ($[43] !== files || $[44] !== readOnlyAt || $[45] !== source || $[46] !== sourceKey) {
1469
1489
  t12 = function dragAndDropAt(folder_0) {
1470
1490
  return readOnlyAt(folder_0) ? {
1471
1491
  source,
@@ -1476,24 +1496,24 @@ function useFinderModel(host) {
1476
1496
  onDrop: (drop, into, operation) => void files.drop(files.home, drop, into, operation)
1477
1497
  };
1478
1498
  };
1479
- $[42] = files;
1480
- $[43] = readOnlyAt;
1481
- $[44] = source;
1482
- $[45] = sourceKey;
1483
- $[46] = t12;
1484
- } else t12 = $[46];
1499
+ $[43] = files;
1500
+ $[44] = readOnlyAt;
1501
+ $[45] = source;
1502
+ $[46] = sourceKey;
1503
+ $[47] = t12;
1504
+ } else t12 = $[47];
1485
1505
  const dragAndDropAt = t12;
1486
1506
  let t13;
1487
- if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
1507
+ if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
1488
1508
  t13 = function perform(command) {
1489
1509
  focusAfterMenu.current = command === "rename" || command === "new-folder";
1490
1510
  actionsRef.current?.run(command);
1491
1511
  };
1492
- $[47] = t13;
1493
- } else t13 = $[47];
1512
+ $[48] = t13;
1513
+ } else t13 = $[48];
1494
1514
  const perform = t13;
1495
1515
  let t14;
1496
- if ($[48] !== listing || $[49] !== virtual) {
1516
+ if ($[49] !== listing || $[50] !== virtual) {
1497
1517
  t14 = function fileItem(command_0, label, t15) {
1498
1518
  const disabled = t15 === void 0 ? false : t15;
1499
1519
  const shortcut = workspaceFileShortcut(command_0);
@@ -1504,23 +1524,23 @@ function useFinderModel(host) {
1504
1524
  children: [label, shortcut ? /* @__PURE__ */ jsx(Menubar.Shortcut, { children: shortcut.glyph }) : null]
1505
1525
  });
1506
1526
  };
1507
- $[48] = listing;
1508
- $[49] = virtual;
1509
- $[50] = t14;
1510
- } else t14 = $[50];
1527
+ $[49] = listing;
1528
+ $[50] = virtual;
1529
+ $[51] = t14;
1530
+ } else t14 = $[51];
1511
1531
  const fileItem = t14;
1512
1532
  let t15;
1513
- if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
1533
+ if ($[52] === Symbol.for("react.memo_cache_sentinel")) {
1514
1534
  t15 = function keepFieldFocus() {
1515
1535
  if (!focusAfterMenu.current) return true;
1516
1536
  focusAfterMenu.current = false;
1517
1537
  return false;
1518
1538
  };
1519
- $[51] = t15;
1520
- } else t15 = $[51];
1539
+ $[52] = t15;
1540
+ } else t15 = $[52];
1521
1541
  const keepFieldFocus = t15;
1522
1542
  let t16;
1523
- if ($[52] !== files || $[53] !== importFolder) {
1543
+ if ($[53] !== files || $[54] !== importFolder) {
1524
1544
  t16 = async function importFiles(chosen) {
1525
1545
  if (chosen.length === 0) return;
1526
1546
  await files.drop(files.home, {
@@ -1529,33 +1549,33 @@ function useFinderModel(host) {
1529
1549
  }, importFolder, "copy");
1530
1550
  if (inputRef.current) inputRef.current.value = "";
1531
1551
  };
1532
- $[52] = files;
1533
- $[53] = importFolder;
1534
- $[54] = t16;
1535
- } else t16 = $[54];
1552
+ $[53] = files;
1553
+ $[54] = importFolder;
1554
+ $[55] = t16;
1555
+ } else t16 = $[55];
1536
1556
  const importFiles = t16;
1537
1557
  let t17;
1538
- if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
1558
+ if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
1539
1559
  t17 = function find() {
1540
1560
  searchRef.current?.focus();
1541
1561
  searchRef.current?.select();
1542
1562
  };
1543
- $[55] = t17;
1544
- } else t17 = $[55];
1563
+ $[56] = t17;
1564
+ } else t17 = $[56];
1545
1565
  const find = t17;
1546
1566
  let t18;
1547
- if ($[56] !== onLocation || $[57] !== setFilter) {
1567
+ if ($[57] !== onLocation || $[58] !== setFilter) {
1548
1568
  t18 = function goTo(path_1) {
1549
1569
  setFilter("");
1550
1570
  onLocation(path_1);
1551
1571
  };
1552
- $[56] = onLocation;
1553
- $[57] = setFilter;
1554
- $[58] = t18;
1555
- } else t18 = $[58];
1572
+ $[57] = onLocation;
1573
+ $[58] = setFilter;
1574
+ $[59] = t18;
1575
+ } else t18 = $[59];
1556
1576
  const goTo = t18;
1557
1577
  let t19;
1558
- if ($[59] !== importFiles) {
1578
+ if ($[60] !== importFiles) {
1559
1579
  t19 = /* @__PURE__ */ jsx("input", {
1560
1580
  ref: inputRef,
1561
1581
  className: "sigvelo-visually-hidden",
@@ -1565,32 +1585,32 @@ function useFinderModel(host) {
1565
1585
  "aria-hidden": "true",
1566
1586
  onChange: (event) => void importFiles([...event.currentTarget.files ?? []])
1567
1587
  });
1568
- $[59] = importFiles;
1569
- $[60] = t19;
1570
- } else t19 = $[60];
1588
+ $[60] = importFiles;
1589
+ $[61] = t19;
1590
+ } else t19 = $[61];
1571
1591
  let t20;
1572
- if ($[61] !== createProject || $[62] !== newProjectOpen || $[63] !== setNewProjectOpen) {
1592
+ if ($[62] !== createProject || $[63] !== newProjectOpen || $[64] !== setNewProjectOpen) {
1573
1593
  t20 = /* @__PURE__ */ jsx(NewProjectDialog, {
1574
1594
  open: newProjectOpen,
1575
1595
  onOpenChange: setNewProjectOpen,
1576
1596
  onCreate: createProject
1577
1597
  });
1578
- $[61] = createProject;
1579
- $[62] = newProjectOpen;
1580
- $[63] = setNewProjectOpen;
1581
- $[64] = t20;
1582
- } else t20 = $[64];
1598
+ $[62] = createProject;
1599
+ $[63] = newProjectOpen;
1600
+ $[64] = setNewProjectOpen;
1601
+ $[65] = t20;
1602
+ } else t20 = $[65];
1583
1603
  let t21;
1584
- if ($[65] !== t19 || $[66] !== t20) {
1604
+ if ($[66] !== t19 || $[67] !== t20) {
1585
1605
  t21 = /* @__PURE__ */ jsxs(Fragment, { children: [t19, t20] });
1586
- $[65] = t19;
1587
- $[66] = t20;
1588
- $[67] = t21;
1589
- } else t21 = $[67];
1606
+ $[66] = t19;
1607
+ $[67] = t20;
1608
+ $[68] = t21;
1609
+ } else t21 = $[68];
1590
1610
  const dialogs = t21;
1591
1611
  const conversationId = project && listing ? project.conversationId : null;
1592
1612
  let t22;
1593
- if ($[68] !== conversationId || $[69] !== onOpenConversation) {
1613
+ if ($[69] !== conversationId || $[70] !== onOpenConversation) {
1594
1614
  t22 = conversationId ? /* @__PURE__ */ jsx(IconButton, {
1595
1615
  label: "Resume conversation",
1596
1616
  variant: "ghost",
@@ -1598,12 +1618,12 @@ function useFinderModel(host) {
1598
1618
  onClick: () => onOpenConversation(conversationId),
1599
1619
  children: /* @__PURE__ */ jsx(MessageSquareIcon, {})
1600
1620
  }) : null;
1601
- $[68] = conversationId;
1602
- $[69] = onOpenConversation;
1603
- $[70] = t22;
1604
- } else t22 = $[70];
1621
+ $[69] = conversationId;
1622
+ $[70] = onOpenConversation;
1623
+ $[71] = t22;
1624
+ } else t22 = $[71];
1605
1625
  let t23;
1606
- if ($[71] !== listing || $[72] !== onStartConversation || $[73] !== project) {
1626
+ if ($[72] !== listing || $[73] !== onStartConversation || $[74] !== project) {
1607
1627
  t23 = project && listing ? /* @__PURE__ */ jsx(IconButton, {
1608
1628
  label: "Start conversation",
1609
1629
  variant: "ghost",
@@ -1611,13 +1631,13 @@ function useFinderModel(host) {
1611
1631
  onClick: () => onStartConversation(project.path, project.name),
1612
1632
  children: /* @__PURE__ */ jsx(PencilIcon, {})
1613
1633
  }) : null;
1614
- $[71] = listing;
1615
- $[72] = onStartConversation;
1616
- $[73] = project;
1617
- $[74] = t23;
1618
- } else t23 = $[74];
1634
+ $[72] = listing;
1635
+ $[73] = onStartConversation;
1636
+ $[74] = project;
1637
+ $[75] = t23;
1638
+ } else t23 = $[75];
1619
1639
  let t24;
1620
- if ($[75] !== exportFile || $[76] !== exporting || $[77] !== files.emptyTrash || $[78] !== files.transferring || $[79] !== files.trashFull || $[80] !== importLocked || $[81] !== inTrash || $[82] !== listing || $[83] !== setNewProjectOpen) {
1640
+ if ($[76] !== exportFile || $[77] !== exporting || $[78] !== files.emptyTrash || $[79] !== files.transferring || $[80] !== files.trashFull || $[81] !== importLocked || $[82] !== inTrash || $[83] !== listing || $[84] !== setNewProjectOpen) {
1621
1641
  t24 = inTrash ? /* @__PURE__ */ jsx(Button, {
1622
1642
  variant: "ghost",
1623
1643
  color: "neutral",
@@ -1659,19 +1679,19 @@ function useFinderModel(host) {
1659
1679
  children: "Save As…"
1660
1680
  })] })
1661
1681
  }) })] });
1662
- $[75] = exportFile;
1663
- $[76] = exporting;
1664
- $[77] = files.emptyTrash;
1665
- $[78] = files.transferring;
1666
- $[79] = files.trashFull;
1667
- $[80] = importLocked;
1668
- $[81] = inTrash;
1669
- $[82] = listing;
1670
- $[83] = setNewProjectOpen;
1671
- $[84] = t24;
1672
- } else t24 = $[84];
1682
+ $[76] = exportFile;
1683
+ $[77] = exporting;
1684
+ $[78] = files.emptyTrash;
1685
+ $[79] = files.transferring;
1686
+ $[80] = files.trashFull;
1687
+ $[81] = importLocked;
1688
+ $[82] = inTrash;
1689
+ $[83] = listing;
1690
+ $[84] = setNewProjectOpen;
1691
+ $[85] = t24;
1692
+ } else t24 = $[85];
1673
1693
  let t25;
1674
- if ($[85] !== t22 || $[86] !== t23 || $[87] !== t24) {
1694
+ if ($[86] !== t22 || $[87] !== t23 || $[88] !== t24) {
1675
1695
  t25 = /* @__PURE__ */ jsxs("div", {
1676
1696
  className: "computer-finder-toolbar__actions",
1677
1697
  children: [
@@ -1680,14 +1700,14 @@ function useFinderModel(host) {
1680
1700
  t24
1681
1701
  ]
1682
1702
  });
1683
- $[85] = t22;
1684
- $[86] = t23;
1685
- $[87] = t24;
1686
- $[88] = t25;
1687
- } else t25 = $[88];
1703
+ $[86] = t22;
1704
+ $[87] = t23;
1705
+ $[88] = t24;
1706
+ $[89] = t25;
1707
+ } else t25 = $[89];
1688
1708
  const toolbarActions = t25;
1689
1709
  let t26;
1690
- if ($[89] !== files || $[90] !== filter || $[91] !== listing || $[92] !== setFilter) {
1710
+ if ($[90] !== files || $[91] !== filter || $[92] !== listing || $[93] !== setFilter) {
1691
1711
  t26 = (event_0) => {
1692
1712
  const command_1 = event_0.defaultPrevented ? null : workspaceFileCommandForKey(event_0.nativeEvent);
1693
1713
  if (command_1 === "undo" || command_1 === "redo") {
@@ -1702,26 +1722,26 @@ function useFinderModel(host) {
1702
1722
  setFilter("");
1703
1723
  }
1704
1724
  };
1705
- $[89] = files;
1706
- $[90] = filter;
1707
- $[91] = listing;
1708
- $[92] = setFilter;
1709
- $[93] = t26;
1710
- } else t26 = $[93];
1725
+ $[90] = files;
1726
+ $[91] = filter;
1727
+ $[92] = listing;
1728
+ $[93] = setFilter;
1729
+ $[94] = t26;
1730
+ } else t26 = $[94];
1711
1731
  let t27;
1712
- if ($[94] !== files.emptyTrash || $[95] !== files.trashFull) {
1732
+ if ($[95] !== files.emptyTrash || $[96] !== files.trashFull) {
1713
1733
  t27 = () => /* @__PURE__ */ jsxs(Menubar.Item, {
1714
1734
  disabled: !files.trashFull,
1715
1735
  "aria-keyshortcuts": workspaceFileShortcut("empty-trash")?.aria,
1716
1736
  onClick: files.emptyTrash,
1717
1737
  children: ["Empty Trash…", /* @__PURE__ */ jsx(Menubar.Shortcut, { children: workspaceFileShortcut("empty-trash")?.glyph })]
1718
1738
  });
1719
- $[94] = files.emptyTrash;
1720
- $[95] = files.trashFull;
1721
- $[96] = t27;
1722
- } else t27 = $[96];
1739
+ $[95] = files.emptyTrash;
1740
+ $[96] = files.trashFull;
1741
+ $[97] = t27;
1742
+ } else t27 = $[97];
1723
1743
  let t28;
1724
- if ($[97] !== exportFile || $[98] !== exporting || $[99] !== file || $[100] !== fileItem || $[101] !== files.redo || $[102] !== files.redoLabel || $[103] !== files.transferring || $[104] !== files.undo || $[105] !== files.undoLabel || $[106] !== goTo || $[107] !== importLocked || $[108] !== inTrash || $[109] !== layout || $[110] !== listing || $[111] !== lockedHere || $[112] !== onBack || $[113] !== onForward || $[114] !== places || $[115] !== setLayout || $[116] !== setNewProjectOpen || $[117] !== setSort || $[118] !== setView || $[119] !== sort || $[120] !== view || $[121] !== workspace) {
1744
+ if ($[98] !== exportFile || $[99] !== exporting || $[100] !== file || $[101] !== fileItem || $[102] !== files.redo || $[103] !== files.redoLabel || $[104] !== files.transferring || $[105] !== files.undo || $[106] !== files.undoLabel || $[107] !== goTo || $[108] !== importLocked || $[109] !== inTrash || $[110] !== layout || $[111] !== listing || $[112] !== lockedHere || $[113] !== onBack || $[114] !== onForward || $[115] !== places || $[116] !== setLayout || $[117] !== setNewProjectOpen || $[118] !== setSort || $[119] !== setView || $[120] !== sort || $[121] !== view || $[122] !== workspace) {
1725
1745
  t28 = () => /* @__PURE__ */ jsxs(Fragment, { children: [
1726
1746
  /* @__PURE__ */ jsxs(Menubar.Menu, { children: [/* @__PURE__ */ jsx(Menubar.Trigger, { children: "File" }), /* @__PURE__ */ jsx(Menubar.Portal, { children: /* @__PURE__ */ jsx(Menubar.Positioner, {
1727
1747
  align: "start",
@@ -1892,33 +1912,33 @@ function useFinderModel(host) {
1892
1912
  ] })
1893
1913
  }) })] })
1894
1914
  ] });
1895
- $[97] = exportFile;
1896
- $[98] = exporting;
1897
- $[99] = file;
1898
- $[100] = fileItem;
1899
- $[101] = files.redo;
1900
- $[102] = files.redoLabel;
1901
- $[103] = files.transferring;
1902
- $[104] = files.undo;
1903
- $[105] = files.undoLabel;
1904
- $[106] = goTo;
1905
- $[107] = importLocked;
1906
- $[108] = inTrash;
1907
- $[109] = layout;
1908
- $[110] = listing;
1909
- $[111] = lockedHere;
1910
- $[112] = onBack;
1911
- $[113] = onForward;
1912
- $[114] = places;
1913
- $[115] = setLayout;
1914
- $[116] = setNewProjectOpen;
1915
- $[117] = setSort;
1916
- $[118] = setView;
1917
- $[119] = sort;
1918
- $[120] = view;
1919
- $[121] = workspace;
1920
- $[122] = t28;
1921
- } else t28 = $[122];
1915
+ $[98] = exportFile;
1916
+ $[99] = exporting;
1917
+ $[100] = file;
1918
+ $[101] = fileItem;
1919
+ $[102] = files.redo;
1920
+ $[103] = files.redoLabel;
1921
+ $[104] = files.transferring;
1922
+ $[105] = files.undo;
1923
+ $[106] = files.undoLabel;
1924
+ $[107] = goTo;
1925
+ $[108] = importLocked;
1926
+ $[109] = inTrash;
1927
+ $[110] = layout;
1928
+ $[111] = listing;
1929
+ $[112] = lockedHere;
1930
+ $[113] = onBack;
1931
+ $[114] = onForward;
1932
+ $[115] = places;
1933
+ $[116] = setLayout;
1934
+ $[117] = setNewProjectOpen;
1935
+ $[118] = setSort;
1936
+ $[119] = setView;
1937
+ $[120] = sort;
1938
+ $[121] = view;
1939
+ $[122] = workspace;
1940
+ $[123] = t28;
1941
+ } else t28 = $[123];
1922
1942
  const t29 = (t30) => {
1923
1943
  const { phone } = t30;
1924
1944
  return phone ? null : /* @__PURE__ */ jsx(ComputerFinderToolbar, {
@@ -1952,6 +1972,7 @@ function useFinderModel(host) {
1952
1972
  workspace,
1953
1973
  source: finderSource,
1954
1974
  sourceKey,
1975
+ resolveFileAsset,
1955
1976
  navigation,
1956
1977
  location,
1957
1978
  onLocation: goTo,
@@ -1959,7 +1980,6 @@ function useFinderModel(host) {
1959
1980
  onFilterChange: setFilter,
1960
1981
  view,
1961
1982
  onViewChange: setView,
1962
- renderThumbnail: host.renderThumbnail,
1963
1983
  renderUnsupported: host.renderUnsupported ?? NO_UNSUPPORTED,
1964
1984
  layout,
1965
1985
  onLayoutChange: setLayout,
@@ -1983,7 +2003,7 @@ function useFinderModel(host) {
1983
2003
  });
1984
2004
  };
1985
2005
  let t33;
1986
- if ($[123] !== t26 || $[124] !== t27 || $[125] !== t28 || $[126] !== t29 || $[127] !== t31) {
2006
+ if ($[124] !== t26 || $[125] !== t27 || $[126] !== t28 || $[127] !== t29 || $[128] !== t31) {
1987
2007
  t33 = {
1988
2008
  onKeyDown: t26,
1989
2009
  renderAppMenu: t27,
@@ -1991,13 +2011,13 @@ function useFinderModel(host) {
1991
2011
  renderTitle: t29,
1992
2012
  render: t31
1993
2013
  };
1994
- $[123] = t26;
1995
- $[124] = t27;
1996
- $[125] = t28;
1997
- $[126] = t29;
1998
- $[127] = t31;
1999
- $[128] = t33;
2000
- } else t33 = $[128];
2014
+ $[124] = t26;
2015
+ $[125] = t27;
2016
+ $[126] = t28;
2017
+ $[127] = t29;
2018
+ $[128] = t31;
2019
+ $[129] = t33;
2020
+ } else t33 = $[129];
2001
2021
  return t33;
2002
2022
  }
2003
2023
  function _temp9(t0) {
@@ -2023,7 +2043,6 @@ function _temp6(candidate_0) {
2023
2043
  }
2024
2044
  //#endregion
2025
2045
  //#region src/components/_internal/computer-files/files.tsx
2026
- const FILES_APP_ID = "files";
2027
2046
  const FILES_ICON = computerAppTile(/* @__PURE__ */ jsx(AppIcon.Image, {
2028
2047
  src: desktopArtwork.folder,
2029
2048
  alt: ""
@@ -2054,7 +2073,7 @@ function InfoPanel() {
2054
2073
  const { volume, path } = React.use(InfoPanels)[id];
2055
2074
  let t0;
2056
2075
  if ($[0] !== path || $[1] !== volume.sourceKey) {
2057
- t0 = [...workspaceInfoQueryKey(volume.sourceKey, "/"), path];
2076
+ t0 = [...workspaceInfoQueryKey(volume.sourceKey), path];
2058
2077
  $[0] = path;
2059
2078
  $[1] = volume.sourceKey;
2060
2079
  $[2] = t0;
@@ -2098,7 +2117,7 @@ function infoApp(id, { volume, path }) {
2098
2117
  id,
2099
2118
  label: `${path === "/" ? volume.name : workspaceBasename(path)} Info`,
2100
2119
  icon: FILES_ICON,
2101
- owner: FILES_APP_ID,
2120
+ owner: COMPUTER_APP_IDS.files,
2102
2121
  panel: true,
2103
2122
  defaultWindowSize: {
2104
2123
  width: 320,
@@ -2347,23 +2366,25 @@ function Content() {
2347
2366
  }
2348
2367
  /** What a desktop icon opens into, as Quick Look shows it: a folder's contents, or the file. */
2349
2368
  function Preview(t0) {
2350
- const $ = c(5);
2369
+ const $ = c(6);
2351
2370
  const { entry } = t0;
2352
2371
  const { files, renderUnsupported } = useHost();
2353
2372
  let t1;
2354
- if ($[0] !== entry || $[1] !== files.home.source || $[2] !== files.home.sourceKey || $[3] !== renderUnsupported) {
2373
+ if ($[0] !== entry || $[1] !== files.home.resolveFileAsset || $[2] !== files.home.source || $[3] !== files.home.sourceKey || $[4] !== renderUnsupported) {
2355
2374
  t1 = /* @__PURE__ */ jsx(ComputerFilesPreview, {
2356
2375
  entry,
2357
2376
  source: files.home.source,
2358
2377
  sourceKey: files.home.sourceKey,
2378
+ resolveFileAsset: files.home.resolveFileAsset,
2359
2379
  renderUnsupported
2360
2380
  });
2361
2381
  $[0] = entry;
2362
- $[1] = files.home.source;
2363
- $[2] = files.home.sourceKey;
2364
- $[3] = renderUnsupported;
2365
- $[4] = t1;
2366
- } else t1 = $[4];
2382
+ $[1] = files.home.resolveFileAsset;
2383
+ $[2] = files.home.source;
2384
+ $[3] = files.home.sourceKey;
2385
+ $[4] = renderUnsupported;
2386
+ $[5] = t1;
2387
+ } else t1 = $[5];
2367
2388
  return t1;
2368
2389
  }
2369
2390
  /**
@@ -2382,7 +2403,7 @@ function Preview(t0) {
2382
2403
  */
2383
2404
  const ComputerFiles = {
2384
2405
  app: {
2385
- id: FILES_APP_ID,
2406
+ id: COMPUTER_APP_IDS.files,
2386
2407
  label: "Files",
2387
2408
  icon: FILES_ICON,
2388
2409
  launcher: "favorite",