@pstdio/workbench 0.10.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensions.js +265 -258
- package/dist/extensions.js.map +1 -1
- package/dist/{file-renderer-view-kfJRY3yR.js → file-renderer-view-Bfmw6RxV.js} +2 -2
- package/dist/{file-renderer-view-kfJRY3yR.js.map → file-renderer-view-Bfmw6RxV.js.map} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +966 -991
- package/dist/index.js.map +1 -1
- package/dist/react.js +945 -949
- package/dist/react.js.map +1 -1
- package/dist/webview-runtime.js +1 -1
- package/dist/webview-runtime.js.map +1 -1
- package/dist/workbench-renderers-BhgHQ-Ne.js +871 -0
- package/dist/workbench-renderers-BhgHQ-Ne.js.map +1 -0
- package/package.json +3 -3
- package/dist/workbench-renderers-DmsrBGC7.js +0 -960
- package/dist/workbench-renderers-DmsrBGC7.js.map +0 -1
package/dist/react.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { jsx as u, jsxs as H, Fragment as Rt } from "react/jsx-runtime";
|
|
2
2
|
import { c as k } from "react/compiler-runtime";
|
|
3
|
-
import { Text as me, HStack as
|
|
4
|
-
import { Breadcrumb as Yo, SessionIndicator as
|
|
3
|
+
import { Text as me, HStack as Re, Dialog as ye, Stack as Te, CloseButton as jn, Button as ze, Box as F, Menu as oe, IconButton as we, Portal as Xe, Icon as jo, Center as tn, Flex as he, Tabs as nn, Skeleton as Go, InputGroup as Uo, Input as Qo, Spinner as Zo, Grid as Sn } from "@chakra-ui/react";
|
|
4
|
+
import { Breadcrumb as Yo, SessionIndicator as Xo, ParamEditorRow as Jo, ScrollArea as Ee, handleDialogAcceptShortcut as ei, useThemePreference as Gn, Palette as ti, PaletteShortcut as ut, ListRow as mt, Tooltip as Ie, toaster as St, PANEL_HEADER_CONTROL_SIZE as Je, useTabVisibilityStore as ni, filterVisibleTabs as oi, buildTabVisibilityMenuActions as ii, PANEL_HEADER_TAB_SIZE as ri, EmptyState as Be, ParamEditor as Un, TreeList as Zt, Header as He, useTreeListVisibilityStore as it, useTreeListOrderStore as Oe, applyTreeListOrder as si, filterVisibleSections as Ht, buildTreeVisibilityMenuActions as li, resolveVisibility as ai, TreeListDragProvider as ci, ResizableSplitLayout as ft, AttachedMenu as di, AttachedPanel as ui, BubbleButton as mi, BubblePanel as fi, defaultThemePreferences as hi, ThemePreferenceProvider as pi, ChakraProvider as gi, psTheme as bi, FileIconThemePreferenceProvider as yi, ResourceActionMenu as vi, ResourceContextMenu as Si, Toaster as wi } from "@pstdio/ui";
|
|
5
5
|
import { u as E, W as L, c as Ii } from "./workspaces-DJwFj8uq.js";
|
|
6
|
-
import { a as
|
|
7
|
-
import { useState as Q, useEffect as ue, Fragment as
|
|
6
|
+
import { a as $m } from "./workspaces-DJwFj8uq.js";
|
|
7
|
+
import { useState as Q, useEffect as ue, Fragment as Qn, useRef as pe, useSyncExternalStore as Zn, useContext as Pi, createContext as xi, createElement as Ye, Suspense as Ci, lazy as ki, useLayoutEffect as Yn } from "react";
|
|
8
8
|
import { resourceKey as ge } from "@pstdio/sdk/extensions";
|
|
9
|
-
import { Terminal as
|
|
10
|
-
import {
|
|
11
|
-
import { w as
|
|
12
|
-
import { useHotkeys as
|
|
13
|
-
import { useSensors as
|
|
14
|
-
import { useSortable as
|
|
15
|
-
import { CSS as
|
|
16
|
-
import { DataTable as
|
|
17
|
-
import { DiffBubble as
|
|
18
|
-
import { useShallow as
|
|
19
|
-
import { Terminal as
|
|
20
|
-
import { useKanbanRendererStore as wn, KanbanRenderer as
|
|
21
|
-
import { createPortal as
|
|
22
|
-
const
|
|
9
|
+
import { Terminal as Ri, Search as Wi, Minimize2 as Ti, MessageCircle as _i } from "lucide-react";
|
|
10
|
+
import { s as Xn, b as Ai, U as Wt, O as Jn, Z as Mi, X as $i, Y as Ei, $ as eo, Q as Ni, a0 as X, t as Tt, q as to, a1 as on, a2 as Oi, a3 as ht, a4 as rn, F as _t, a5 as sn, u as ln, S as zi, W as Bi, R as Hi, E as Di } from "./workbench-renderers-BhgHQ-Ne.js";
|
|
11
|
+
import { w as Vi, r as no, c as Li, d as Fi, e as Ki, a as qi } from "./workbench-menu-paths-B_QJzcNU.js";
|
|
12
|
+
import { useHotkeys as ji } from "@tanstack/react-hotkeys";
|
|
13
|
+
import { useSensors as Gi, useSensor as Ui, PointerSensor as Qi, DndContext as Zi, closestCenter as Yi } from "@dnd-kit/core";
|
|
14
|
+
import { useSortable as Xi, SortableContext as Ji, horizontalListSortingStrategy as er } from "@dnd-kit/sortable";
|
|
15
|
+
import { CSS as tr } from "@dnd-kit/utilities";
|
|
16
|
+
import { DataTable as nr, DataTableSkeleton as or } from "@pstdio/ui/data-table";
|
|
17
|
+
import { DiffBubble as ir } from "@pstdio/ui/diff";
|
|
18
|
+
import { useShallow as rr } from "zustand/react/shallow";
|
|
19
|
+
import { Terminal as sr } from "@pstdio/ui/terminal";
|
|
20
|
+
import { useKanbanRendererStore as wn, KanbanRenderer as lr, isAttributesSource as ar } from "@pstdio/ui/kanban-renderer";
|
|
21
|
+
import { createPortal as cr } from "react-dom";
|
|
22
|
+
const dr = (t) => typeof t.resource?.metadata?.status == "string" ? t.resource.metadata.status : void 0, ur = (t) => {
|
|
23
23
|
const e = k(6), {
|
|
24
24
|
item: n
|
|
25
25
|
} = t;
|
|
26
26
|
let i;
|
|
27
|
-
e[0] !== n ? (i =
|
|
27
|
+
e[0] !== n ? (i = dr(n), e[0] = n, e[1] = i) : i = e[1];
|
|
28
28
|
const o = i;
|
|
29
29
|
if (n.indicator === "session-status" || n.resource?.type === "session") {
|
|
30
30
|
let s;
|
|
31
|
-
return e[2] !== o ? (s = /* @__PURE__ */ u(
|
|
31
|
+
return e[2] !== o ? (s = /* @__PURE__ */ u(Xo, { status: o, boxSize: "14px" }), e[2] = o, e[3] = s) : s = e[3], s;
|
|
32
32
|
}
|
|
33
33
|
if (!n.icon)
|
|
34
34
|
return null;
|
|
35
35
|
let r;
|
|
36
36
|
return e[4] !== n.icon ? (r = /* @__PURE__ */ u(me, { as: "span", "aria-hidden": "true", color: "fg.muted", display: "inline-flex", flexShrink: 0, children: /* @__PURE__ */ u(L, { name: n.icon, size: 14 }) }), e[4] = n.icon, e[5] = r) : r = e[5], r;
|
|
37
|
-
},
|
|
37
|
+
}, mr = (t) => {
|
|
38
38
|
const e = k(7), {
|
|
39
39
|
item: n
|
|
40
40
|
} = t, i = n.title;
|
|
41
41
|
let o;
|
|
42
|
-
e[0] !== n ? (o = /* @__PURE__ */ u(
|
|
42
|
+
e[0] !== n ? (o = /* @__PURE__ */ u(ur, { item: n }), e[0] = n, e[1] = o) : o = e[1];
|
|
43
43
|
let r;
|
|
44
44
|
e[2] !== i ? (r = /* @__PURE__ */ u(me, { as: "span", minW: "0", maxW: "15rem", truncate: !0, children: i }), e[2] = i, e[3] = r) : r = e[3];
|
|
45
45
|
let s;
|
|
46
|
-
return e[4] !== o || e[5] !== r ? (s = /* @__PURE__ */ H(
|
|
46
|
+
return e[4] !== o || e[5] !== r ? (s = /* @__PURE__ */ H(Re, { as: "span", gap: "2xs", minW: "0", children: [
|
|
47
47
|
o,
|
|
48
48
|
r
|
|
49
49
|
] }), e[4] = o, e[5] = r, e[6] = s) : s = e[6], s;
|
|
50
|
-
},
|
|
51
|
-
title: /* @__PURE__ */ u(
|
|
50
|
+
}, fr = (t) => (t ?? []).map((e) => ({
|
|
51
|
+
title: /* @__PURE__ */ u(mr, { item: e }),
|
|
52
52
|
url: e.url,
|
|
53
53
|
onClick: e.onClick
|
|
54
|
-
})),
|
|
54
|
+
})), hr = (t) => {
|
|
55
55
|
const e = k(4), {
|
|
56
56
|
workbench: n
|
|
57
|
-
} = t, i = E(n.breadcrumbs.store,
|
|
57
|
+
} = t, i = E(n.breadcrumbs.store, pr) ?? [];
|
|
58
58
|
if (i.length === 0)
|
|
59
59
|
return null;
|
|
60
60
|
let o;
|
|
61
|
-
e[0] !== i ? (o =
|
|
61
|
+
e[0] !== i ? (o = fr(i), e[0] = i, e[1] = o) : o = e[1];
|
|
62
62
|
let r;
|
|
63
63
|
return e[2] !== o ? (r = /* @__PURE__ */ u(Yo, { items: o, separator: "/", separatorGap: "xs", display: "flex", h: "full" }), e[2] = o, e[3] = r) : r = e[3], r;
|
|
64
64
|
};
|
|
65
|
-
function
|
|
65
|
+
function pr(t) {
|
|
66
66
|
return t.items;
|
|
67
67
|
}
|
|
68
68
|
const oo = (t) => {
|
|
@@ -72,63 +72,59 @@ const oo = (t) => {
|
|
|
72
72
|
secondary: t.composition.panelsFor("secondary"),
|
|
73
73
|
side: t.composition.panelsFor("side")
|
|
74
74
|
};
|
|
75
|
-
},
|
|
76
|
-
activityBar: "var(--chakra-colors-bg-muted)",
|
|
75
|
+
}, wt = {
|
|
77
76
|
sidenav: "var(--chakra-colors-bg-subtle)",
|
|
78
77
|
main: "var(--chakra-colors-bg)",
|
|
79
|
-
panel: "var(--chakra-colors-bg-panel)"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"main-
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"secondary-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"side-
|
|
103
|
-
"side-left-menu": Z.widget,
|
|
104
|
-
side: Z.widget,
|
|
105
|
-
"side-right-menu": Z.widget
|
|
78
|
+
panel: "var(--chakra-colors-bg-panel)"
|
|
79
|
+
}, Qe = (t, e) => `var(--chakra-colors-vscode-${t.replaceAll(".", "-")}, ${e})`, Y = {
|
|
80
|
+
sidenav: Qe("sideBar.background", wt.sidenav),
|
|
81
|
+
main: Qe("editor.background", wt.main),
|
|
82
|
+
panel: Qe("panel.background", wt.panel),
|
|
83
|
+
widget: Qe("editorWidget.background", Qe("panel.background", wt.panel))
|
|
84
|
+
}, gr = {
|
|
85
|
+
nav: Y.main,
|
|
86
|
+
activity: Y.main,
|
|
87
|
+
sidenav: Y.sidenav,
|
|
88
|
+
"main-header": Y.main,
|
|
89
|
+
"main-left-menu": Y.panel,
|
|
90
|
+
main: Y.main,
|
|
91
|
+
"main-right-menu": Y.panel,
|
|
92
|
+
"secondary-header": Y.panel,
|
|
93
|
+
"secondary-left-menu": Y.panel,
|
|
94
|
+
secondary: Y.panel,
|
|
95
|
+
"secondary-right-menu": Y.panel,
|
|
96
|
+
status: Y.main,
|
|
97
|
+
overlay: Y.widget,
|
|
98
|
+
"side-header": Y.widget,
|
|
99
|
+
"side-left-menu": Y.widget,
|
|
100
|
+
side: Y.widget,
|
|
101
|
+
"side-right-menu": Y.widget
|
|
106
102
|
};
|
|
107
|
-
|
|
108
|
-
const
|
|
103
|
+
Qe("focusBorder", "var(--chakra-colors-color-palette-focus-ring)");
|
|
104
|
+
const br = Y.widget, yr = (t) => gr[t], vr = (t) => {
|
|
109
105
|
const e = t.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[-_]+/g, " ").trim();
|
|
110
106
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
111
|
-
},
|
|
107
|
+
}, at = (t) => typeof t == "object" && t !== null && !Array.isArray(t), an = (t) => !at(t) || !at(t.file) ? !1 : typeof t.id == "string" && typeof t.file.name == "string" && typeof t.status == "string", De = (t) => at(t) && Array.isArray(t.refs) && t.refs.every((e) => typeof e == "string") && Array.isArray(t.uploads) && t.uploads.every(an), Ze = (t = {}) => ({
|
|
112
108
|
refs: [...t.refs ?? []],
|
|
113
109
|
uploads: [...t.uploads ?? []]
|
|
114
|
-
}),
|
|
115
|
-
const n =
|
|
110
|
+
}), Sr = (t, e) => {
|
|
111
|
+
const n = De(t) ? Ze(t) : Ze({
|
|
116
112
|
refs: Array.isArray(t) ? t.filter((i) => typeof i == "string") : [],
|
|
117
113
|
uploads: Array.isArray(t) ? t.filter(an) : []
|
|
118
114
|
});
|
|
119
|
-
return e !== !1 ? n : n.uploads[0] ?
|
|
115
|
+
return e !== !1 ? n : n.uploads[0] ? Ze({
|
|
120
116
|
uploads: [n.uploads[0]]
|
|
121
|
-
}) :
|
|
117
|
+
}) : Ze({
|
|
122
118
|
refs: n.refs.slice(0, 1)
|
|
123
119
|
});
|
|
124
|
-
},
|
|
120
|
+
}, wr = (t) => t == null ? "" : typeof t == "string" ? t : typeof t == "number" || typeof t == "boolean" ? String(t) : JSON.stringify(t), Ir = (t) => t.replace(/[^a-zA-Z0-9]+([a-zA-Z0-9])/g, (e, n) => n.toUpperCase()).replace(/^[A-Z]/, (e) => e.toLowerCase()), Pr = (t, e) => {
|
|
125
121
|
const n = t?.[e];
|
|
126
122
|
if (typeof n == "string") return n;
|
|
127
123
|
if (typeof n == "number") return String(n);
|
|
128
|
-
},
|
|
124
|
+
}, xr = (t, e) => {
|
|
129
125
|
const n = e?.resource;
|
|
130
126
|
if (!n) return;
|
|
131
|
-
const i =
|
|
127
|
+
const i = Pr(n.metadata, t.key);
|
|
132
128
|
if (i !== void 0) return i;
|
|
133
129
|
if (t.key === `${Ir(n.type)}Id`) return n.id ?? ge(n);
|
|
134
130
|
if (t.type === "resource" && (!t.resourceType || t.resourceType === n.type))
|
|
@@ -142,79 +138,79 @@ const yr = Z.widget, vr = (t) => br[t], Sr = (t) => {
|
|
|
142
138
|
metadata: n.metadata
|
|
143
139
|
} : {}
|
|
144
140
|
};
|
|
145
|
-
},
|
|
141
|
+
}, Cr = (t) => {
|
|
146
142
|
if (!t) return t;
|
|
147
143
|
const e = /* @__PURE__ */ new Set();
|
|
148
144
|
return t.filter((n) => e.has(n.value) ? !1 : (e.add(n.value), !0));
|
|
149
|
-
},
|
|
145
|
+
}, et = (t) => At(t).length > 0, At = (t) => Object.entries(t ?? {}).flatMap(([e, n]) => n.resolvedFrom === "resource" ? [] : [{
|
|
150
146
|
...n,
|
|
151
|
-
options:
|
|
147
|
+
options: Cr(n.options),
|
|
152
148
|
key: e,
|
|
153
|
-
label: n.label ??
|
|
154
|
-
}]),
|
|
155
|
-
const i =
|
|
149
|
+
label: n.label ?? vr(e)
|
|
150
|
+
}]), In = (t, e, n) => {
|
|
151
|
+
const i = at(e) ? e : {}, o = {};
|
|
156
152
|
for (const r of At(t)) {
|
|
157
|
-
const s = Object.hasOwn(i, r.key) ? i[r.key] :
|
|
153
|
+
const s = Object.hasOwn(i, r.key) ? i[r.key] : xr(r, n) ?? r.defaultValue;
|
|
158
154
|
if (r.type === "boolean") {
|
|
159
155
|
o[r.key] = s === void 0 ? void 0 : s === !0 || s === "true";
|
|
160
156
|
continue;
|
|
161
157
|
}
|
|
162
158
|
if (r.type === "files") {
|
|
163
|
-
o[r.key] =
|
|
159
|
+
o[r.key] = Sr(s, r.multiple);
|
|
164
160
|
continue;
|
|
165
161
|
}
|
|
166
162
|
if (r.type === "multi-select") {
|
|
167
163
|
o[r.key] = Array.isArray(s) ? s.map(String) : [];
|
|
168
164
|
continue;
|
|
169
165
|
}
|
|
170
|
-
o[r.key] =
|
|
166
|
+
o[r.key] = wr(s);
|
|
171
167
|
}
|
|
172
168
|
return o;
|
|
173
|
-
},
|
|
169
|
+
}, kr = (t) => De(t) ? t.refs.length === 0 && t.uploads.length === 0 : t === void 0 || t === "" || Array.isArray(t) && t.length === 0, Rr = (t, e) => {
|
|
174
170
|
if (typeof e != "string") return e;
|
|
175
171
|
try {
|
|
176
172
|
return JSON.parse(e);
|
|
177
173
|
} catch {
|
|
178
174
|
throw new Error(`Invalid JSON for ${t.label}`);
|
|
179
175
|
}
|
|
180
|
-
},
|
|
176
|
+
}, Wr = (t, e) => {
|
|
181
177
|
if (t.type === "number") {
|
|
182
178
|
const n = Number(e);
|
|
183
179
|
if (!Number.isFinite(n)) throw new Error(`Invalid number for ${t.label}`);
|
|
184
180
|
return n;
|
|
185
181
|
}
|
|
186
|
-
return t.type === "boolean" ? e === !0 || e === "true" : t.type === "files" ?
|
|
187
|
-
},
|
|
182
|
+
return t.type === "boolean" ? e === !0 || e === "true" : t.type === "files" ? De(e) ? e : Ze() : t.type === "json" || t.type === "resource" || t.type === "repo" || t.type === "harness" ? Rr(t, e) : t.type === "multi-select" ? Array.isArray(e) ? e : String(e).split(",").filter(Boolean) : String(e ?? "");
|
|
183
|
+
}, Tr = (t, e) => {
|
|
188
184
|
const n = {};
|
|
189
185
|
for (const i of At(t)) {
|
|
190
186
|
const o = e[i.key];
|
|
191
|
-
if (
|
|
187
|
+
if (kr(o)) {
|
|
192
188
|
if (i.required) throw new Error(`Missing required parameter: ${i.label}`);
|
|
193
189
|
continue;
|
|
194
190
|
}
|
|
195
|
-
n[i.key] =
|
|
191
|
+
n[i.key] = Wr(i, o);
|
|
196
192
|
}
|
|
197
193
|
return n;
|
|
198
|
-
},
|
|
199
|
-
...
|
|
194
|
+
}, _r = (t, e) => ({
|
|
195
|
+
...at(t) ? t : {},
|
|
200
196
|
...e
|
|
201
|
-
}), cn = "search",
|
|
197
|
+
}), cn = "search", pt = "command", io = "theme", Ar = [{
|
|
202
198
|
id: cn
|
|
203
199
|
}, {
|
|
204
|
-
id:
|
|
200
|
+
id: pt,
|
|
205
201
|
inputPrefix: ">"
|
|
206
|
-
}],
|
|
207
|
-
if (
|
|
208
|
-
},
|
|
202
|
+
}], tt = (t) => t === io, ro = tt, Mr = (t) => {
|
|
203
|
+
if (tt(t)) return io;
|
|
204
|
+
}, $r = (t) => {
|
|
209
205
|
if (!ro(t))
|
|
210
|
-
return
|
|
211
|
-
},
|
|
206
|
+
return Ar;
|
|
207
|
+
}, Er = (t) => tt(t.view) ? t.themeInitialActiveIndex : 0, Nr = (t) => tt(t.view) ? /* @__PURE__ */ u(L, { name: "Palette", size: 16 }) : t.mode === pt ? /* @__PURE__ */ u(Ri, { size: 16, "aria-hidden": "true" }) : /* @__PURE__ */ u(Wi, { size: 16, "aria-hidden": "true" }), Or = (t) => tt(t.view) ? "Search themes" : t.mode === pt ? "Run command" : "Search resources", zr = 25, Br = 150, Hr = (t) => {
|
|
212
208
|
const e = k(12), {
|
|
213
209
|
workbench: n,
|
|
214
210
|
query: i,
|
|
215
211
|
open: o,
|
|
216
212
|
onClose: r
|
|
217
|
-
} = t, s = E(n.commandPaletteResources.store,
|
|
213
|
+
} = t, s = E(n.commandPaletteResources.store, Dr);
|
|
218
214
|
let l;
|
|
219
215
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[0] = l) : l = e[0];
|
|
220
216
|
const [d, a] = Q(l);
|
|
@@ -228,7 +224,7 @@ const yr = Z.widget, vr = (t) => br[t], Sr = (t) => {
|
|
|
228
224
|
const h = setTimeout(() => {
|
|
229
225
|
n.commandPaletteResources.queryProviders({
|
|
230
226
|
query: i,
|
|
231
|
-
limit:
|
|
227
|
+
limit: zr
|
|
232
228
|
}).then((p) => {
|
|
233
229
|
f || a(p.flatMap((g) => g.results.map((w) => ({
|
|
234
230
|
id: `workbench-command-palette-resource:${w.id}`,
|
|
@@ -239,11 +235,11 @@ const yr = Z.widget, vr = (t) => br[t], Sr = (t) => {
|
|
|
239
235
|
group: w.group ?? g.title,
|
|
240
236
|
icon: w.icon ? /* @__PURE__ */ u(L, { name: w.icon }) : void 0,
|
|
241
237
|
onActivate: () => {
|
|
242
|
-
r(), Promise.resolve(w.activate()).catch(
|
|
238
|
+
r(), Promise.resolve(w.activate()).catch(Vr);
|
|
243
239
|
}
|
|
244
240
|
}))));
|
|
245
241
|
});
|
|
246
|
-
},
|
|
242
|
+
}, Br);
|
|
247
243
|
return () => {
|
|
248
244
|
f = !0, clearTimeout(h);
|
|
249
245
|
};
|
|
@@ -251,19 +247,19 @@ const yr = Z.widget, vr = (t) => br[t], Sr = (t) => {
|
|
|
251
247
|
let m;
|
|
252
248
|
return e[6] !== r || e[7] !== o || e[8] !== i || e[9] !== s || e[10] !== n ? (m = [n, i, o, s, r], e[6] = r, e[7] = o, e[8] = i, e[9] = s, e[10] = n, e[11] = m) : m = e[11], ue(c, m), d;
|
|
253
249
|
};
|
|
254
|
-
function
|
|
250
|
+
function Dr(t) {
|
|
255
251
|
return t.refreshToken;
|
|
256
252
|
}
|
|
257
|
-
function
|
|
253
|
+
function Vr() {
|
|
258
254
|
}
|
|
259
|
-
const
|
|
255
|
+
const rt = (t) => typeof t == "string" ? t : "", Lr = (t) => Array.isArray(t) ? t : [], Fr = (t) => `${t.label}${t.required ? " *" : ""}`, Pn = (t) => (t.options ?? []).map((e) => ({
|
|
260
256
|
id: e.value,
|
|
261
257
|
name: e.label,
|
|
262
258
|
icon: e.icon
|
|
263
|
-
})),
|
|
259
|
+
})), Kr = /* @__PURE__ */ new Set(["json", "resource", "repo", "harness"]), qr = (t, e) => {
|
|
264
260
|
const n = {
|
|
265
261
|
id: t.key,
|
|
266
|
-
name:
|
|
262
|
+
name: Fr(t),
|
|
267
263
|
description: t.description
|
|
268
264
|
};
|
|
269
265
|
return t.type === "boolean" ? {
|
|
@@ -273,47 +269,47 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
273
269
|
} : t.type === "number" ? {
|
|
274
270
|
...n,
|
|
275
271
|
type: "number",
|
|
276
|
-
defaultValue: Number(
|
|
272
|
+
defaultValue: Number(rt(e))
|
|
277
273
|
} : t.type === "markdown" ? {
|
|
278
274
|
...n,
|
|
279
275
|
type: "markdown",
|
|
280
|
-
defaultValue:
|
|
276
|
+
defaultValue: rt(e)
|
|
281
277
|
} : t.type === "files" ? {
|
|
282
278
|
...n,
|
|
283
279
|
type: "fileUpload",
|
|
284
|
-
defaultValue:
|
|
280
|
+
defaultValue: De(e) ? e.uploads : [],
|
|
285
281
|
accept: t.accept,
|
|
286
282
|
multiple: t.multiple
|
|
287
283
|
} : t.type === "multi-select" ? {
|
|
288
284
|
...n,
|
|
289
285
|
type: "selection",
|
|
290
|
-
defaultValue:
|
|
291
|
-
options:
|
|
286
|
+
defaultValue: Lr(e),
|
|
287
|
+
options: Pn(t),
|
|
292
288
|
multiSelect: !0,
|
|
293
289
|
placeholder: `Select ${t.label.toLowerCase()}`,
|
|
294
290
|
searchable: (t.options?.length ?? 0) > 5
|
|
295
291
|
} : (t.type === "select" || t.type === "template") && t.options?.length ? {
|
|
296
292
|
...n,
|
|
297
293
|
type: "selection",
|
|
298
|
-
defaultValue:
|
|
299
|
-
options:
|
|
294
|
+
defaultValue: rt(e),
|
|
295
|
+
options: Pn(t),
|
|
300
296
|
placeholder: `Select ${t.label.toLowerCase()}`,
|
|
301
297
|
searchable: t.options.length > 5,
|
|
302
298
|
clearable: !t.required
|
|
303
|
-
} : t.type === "longtext" ||
|
|
299
|
+
} : t.type === "longtext" || Kr.has(t.type) ? {
|
|
304
300
|
...n,
|
|
305
301
|
type: "text",
|
|
306
|
-
defaultValue:
|
|
302
|
+
defaultValue: rt(e),
|
|
307
303
|
singleLine: !1
|
|
308
304
|
} : {
|
|
309
305
|
...n,
|
|
310
306
|
type: "text",
|
|
311
|
-
defaultValue:
|
|
307
|
+
defaultValue: rt(e),
|
|
312
308
|
singleLine: !0
|
|
313
309
|
};
|
|
314
|
-
},
|
|
310
|
+
}, jr = (t, e) => typeof t == "boolean" ? t : e?.type === "files" ? Ze({
|
|
315
311
|
uploads: Array.isArray(t) ? t.filter(an) : []
|
|
316
|
-
}) : Array.isArray(t) ? t.map(String) : String(t ?? ""),
|
|
312
|
+
}) : Array.isArray(t) ? t.map(String) : String(t ?? ""), Gr = (t) => {
|
|
317
313
|
const e = k(13), {
|
|
318
314
|
entry: n,
|
|
319
315
|
value: i,
|
|
@@ -322,8 +318,8 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
322
318
|
} = t;
|
|
323
319
|
let s;
|
|
324
320
|
e[0] !== n || e[1] !== r || e[2] !== i ? (s = (m) => {
|
|
325
|
-
const f =
|
|
326
|
-
if (n.type !== "files" || !
|
|
321
|
+
const f = jr(m, n);
|
|
322
|
+
if (n.type !== "files" || !De(i) || !De(f)) {
|
|
327
323
|
r(f);
|
|
328
324
|
return;
|
|
329
325
|
}
|
|
@@ -335,12 +331,12 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
335
331
|
}, e[0] = n, e[1] = r, e[2] = i, e[3] = s) : s = e[3];
|
|
336
332
|
const l = s;
|
|
337
333
|
let d;
|
|
338
|
-
e[4] !== n || e[5] !== i ? (d =
|
|
334
|
+
e[4] !== n || e[5] !== i ? (d = qr(n, i), e[4] = n, e[5] = i, e[6] = d) : d = e[6];
|
|
339
335
|
let a;
|
|
340
336
|
e[7] !== l ? (a = (m, f) => l(f), e[7] = l, e[8] = a) : a = e[8];
|
|
341
337
|
let c;
|
|
342
|
-
return e[9] !== o || e[10] !== d || e[11] !== a ? (c = /* @__PURE__ */ u(
|
|
343
|
-
},
|
|
338
|
+
return e[9] !== o || e[10] !== d || e[11] !== a ? (c = /* @__PURE__ */ u(Jo, { param: d, readOnly: o, onChange: a }), e[9] = o, e[10] = d, e[11] = a, e[12] = c) : c = e[12], c;
|
|
339
|
+
}, Ur = (t, e) => t.type === "boolean" ? e !== void 0 : De(e) ? e.refs.length + e.uploads.length > 0 : (Array.isArray(e) || typeof e == "string") && e.length > 0, so = (t) => {
|
|
344
340
|
const {
|
|
345
341
|
request: e,
|
|
346
342
|
renderParamField: n,
|
|
@@ -349,7 +345,7 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
349
345
|
onRun: r
|
|
350
346
|
} = t, [s, l] = Q({}), [d, a] = Q(), [c, m] = Q(!1), f = At(e?.record.command.params);
|
|
351
347
|
ue(() => {
|
|
352
|
-
l(
|
|
348
|
+
l(In(e?.record.command.params, e?.args, e?.context)), a(void 0), m(!1);
|
|
353
349
|
}, [e]);
|
|
354
350
|
const h = () => {
|
|
355
351
|
c || o();
|
|
@@ -362,11 +358,11 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
362
358
|
if (!(!e || c)) {
|
|
363
359
|
m(!0), a(void 0);
|
|
364
360
|
try {
|
|
365
|
-
const y =
|
|
361
|
+
const y = Tr(e.record.command.params, s), b = _r(e.args, y), v = i ? await i({
|
|
366
362
|
commandId: e.record.command.id,
|
|
367
363
|
args: b,
|
|
368
364
|
context: e.context,
|
|
369
|
-
onArgsChange: (S) => l(
|
|
365
|
+
onArgsChange: (S) => l(In(e.record.command.params, S, e.context))
|
|
370
366
|
}) : b;
|
|
371
367
|
await r({
|
|
372
368
|
commandId: e.record.command.id,
|
|
@@ -380,23 +376,23 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
380
376
|
m(!1);
|
|
381
377
|
}
|
|
382
378
|
}
|
|
383
|
-
}, w = f.every((y) => !y.required ||
|
|
379
|
+
}, w = f.every((y) => !y.required || Ur(y, s[y.key]));
|
|
384
380
|
return /* @__PURE__ */ H(ye.Root, { open: e !== null, size: "lg", scrollBehavior: "inside", onOpenChange: (y) => !y.open && h(), children: [
|
|
385
381
|
/* @__PURE__ */ u(ye.Backdrop, {}),
|
|
386
|
-
/* @__PURE__ */ u(ye.Positioner, { children: /* @__PURE__ */ H(ye.Content, { display: "flex", flexDirection: "column", maxH: "calc(100% - 48px)", onKeyDownCapture: (y) =>
|
|
382
|
+
/* @__PURE__ */ u(ye.Positioner, { children: /* @__PURE__ */ H(ye.Content, { display: "flex", flexDirection: "column", maxH: "calc(100% - 48px)", onKeyDownCapture: (y) => ei(y, () => {
|
|
387
383
|
g();
|
|
388
384
|
}, w && !c), children: [
|
|
389
385
|
/* @__PURE__ */ H(ye.Header, { children: [
|
|
390
|
-
/* @__PURE__ */ H(
|
|
386
|
+
/* @__PURE__ */ H(Te, { gap: "2xs", minW: "0", children: [
|
|
391
387
|
/* @__PURE__ */ u(me, { textStyle: "heading/M/semibold", children: e?.label ?? "Run command" }),
|
|
392
388
|
e?.record.command.description ? /* @__PURE__ */ u(me, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: e.record.command.description }) : null
|
|
393
389
|
] }),
|
|
394
390
|
/* @__PURE__ */ u(ye.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ u(jn, { size: "sm", disabled: c }) })
|
|
395
391
|
] }),
|
|
396
|
-
/* @__PURE__ */ u(ye.Body, { flex: "1", minH: "0", p: "0", children: /* @__PURE__ */ u(
|
|
392
|
+
/* @__PURE__ */ u(ye.Body, { flex: "1", minH: "0", p: "0", children: /* @__PURE__ */ u(Ee, { h: "full", contentProps: {
|
|
397
393
|
px: "sm",
|
|
398
394
|
py: "md"
|
|
399
|
-
}, children: /* @__PURE__ */ H(
|
|
395
|
+
}, children: /* @__PURE__ */ H(Te, { gap: "0", children: [
|
|
400
396
|
f.map((y) => {
|
|
401
397
|
const b = {
|
|
402
398
|
entry: y,
|
|
@@ -407,13 +403,13 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
407
403
|
...b,
|
|
408
404
|
context: e?.context
|
|
409
405
|
});
|
|
410
|
-
return /* @__PURE__ */ u(
|
|
406
|
+
return /* @__PURE__ */ u(Qn, { children: v ?? /* @__PURE__ */ u(Gr, { ...b }) }, y.key);
|
|
411
407
|
}),
|
|
412
408
|
d ? /* @__PURE__ */ u(me, { textStyle: "paragraph/S/regular", color: "fg.error", px: "sm", pt: "xs", children: d }) : null
|
|
413
409
|
] }) }) }),
|
|
414
|
-
/* @__PURE__ */ u(ye.Footer, { children: /* @__PURE__ */ H(
|
|
415
|
-
/* @__PURE__ */ u(
|
|
416
|
-
/* @__PURE__ */ u(
|
|
410
|
+
/* @__PURE__ */ u(ye.Footer, { children: /* @__PURE__ */ H(Re, { gap: "2", children: [
|
|
411
|
+
/* @__PURE__ */ u(ze, { size: "sm", variant: "ghost", disabled: c, onClick: h, children: "Cancel" }),
|
|
412
|
+
/* @__PURE__ */ u(ze, { size: "sm", variant: "primary", disabled: !w, loading: c, onClick: () => {
|
|
417
413
|
g();
|
|
418
414
|
}, children: e?.submitLabel ?? "Run" })
|
|
419
415
|
] }) })
|
|
@@ -450,17 +446,17 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
450
446
|
});
|
|
451
447
|
}
|
|
452
448
|
i === "secondary" && s.shell.setRegionOpen("secondary", !0), i === "side" && s.sidePanel.getMode() === "closed" && s.sidePanel.setMode("attached");
|
|
453
|
-
},
|
|
449
|
+
}, Zr = (t) => {
|
|
454
450
|
const {
|
|
455
451
|
onClose: e,
|
|
456
452
|
panelsByRegion: n,
|
|
457
453
|
workbench: i
|
|
458
454
|
} = t, o = i.getPrimaryResource();
|
|
459
|
-
return
|
|
455
|
+
return Xn.flatMap((r) => (n?.[r] ?? i.composition.panelsFor(r)).addable.map((s) => {
|
|
460
456
|
const l = s.contribution, d = Qr(r), a = `Open ${l.title} in ${d} Panel`;
|
|
461
457
|
return {
|
|
462
458
|
id: `workbench-panel:${r}:${l.id}`,
|
|
463
|
-
mode:
|
|
459
|
+
mode: pt,
|
|
464
460
|
label: a,
|
|
465
461
|
searchText: `${a} ${l.id}`,
|
|
466
462
|
group: "Panels",
|
|
@@ -500,7 +496,7 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
500
496
|
});
|
|
501
497
|
}
|
|
502
498
|
};
|
|
503
|
-
},
|
|
499
|
+
}, Xr = (t) => {
|
|
504
500
|
const {
|
|
505
501
|
onClose: e,
|
|
506
502
|
query: n,
|
|
@@ -511,29 +507,29 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
511
507
|
entry: o,
|
|
512
508
|
onClose: e
|
|
513
509
|
})).filter((o) => o !== void 0);
|
|
514
|
-
},
|
|
510
|
+
}, Jr = "theme", es = (t) => t === "pstdio-light" ? "Sun" : t === "pstdio-dark" ? "Moon" : "Palette", Yt = (t) => t.title ?? t.id, ts = (t, e) => {
|
|
515
511
|
const n = e.findIndex((i) => i.id === t);
|
|
516
512
|
return Math.max(n, 0);
|
|
517
|
-
},
|
|
513
|
+
}, ns = {
|
|
518
514
|
light: "Light",
|
|
519
515
|
dark: "Dark"
|
|
520
|
-
},
|
|
516
|
+
}, os = (t, e) => t.mode !== e.mode ? t.mode === "light" ? -1 : 1 : Yt(t).localeCompare(Yt(e)), is = (t) => {
|
|
521
517
|
const {
|
|
522
518
|
onClose: e,
|
|
523
519
|
setThemePreference: n,
|
|
524
520
|
themePreference: i,
|
|
525
521
|
themePreferences: o
|
|
526
522
|
} = t;
|
|
527
|
-
return [...o].sort(
|
|
528
|
-
const s =
|
|
523
|
+
return [...o].sort(os).map((r) => {
|
|
524
|
+
const s = Yt(r);
|
|
529
525
|
return {
|
|
530
526
|
id: `theme:${r.id}`,
|
|
531
527
|
themePreference: r.id,
|
|
532
|
-
mode:
|
|
528
|
+
mode: Jr,
|
|
533
529
|
label: s,
|
|
534
530
|
searchText: `theme color appearance ${r.mode} ${r.id} ${s}`,
|
|
535
|
-
group:
|
|
536
|
-
icon: /* @__PURE__ */ u(L, { name:
|
|
531
|
+
group: ns[r.mode],
|
|
532
|
+
icon: /* @__PURE__ */ u(L, { name: es(r.id) }),
|
|
537
533
|
isSelected: r.id === i,
|
|
538
534
|
onActivate: () => {
|
|
539
535
|
n(r.id), e();
|
|
@@ -543,7 +539,7 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
543
539
|
}, Dt = (t, e) => {
|
|
544
540
|
const n = e.current;
|
|
545
541
|
e.current = null, n && t(n.baseTheme);
|
|
546
|
-
},
|
|
542
|
+
}, rs = (t, e) => [e, t.id, t.description, t.category].filter(Boolean).join(" "), ss = (t) => new Map(t.keybindings.listCommandKeybindings().map((e) => [e.commandId, e.keybinding])), ls = (t) => t ? /* @__PURE__ */ u(ut, { binding: t }) : void 0, as = (t) => t instanceof Error ? t.message : "Command failed.", cs = (t) => {
|
|
547
543
|
const e = t.getPrimaryResource();
|
|
548
544
|
return e ? {
|
|
549
545
|
resource: e
|
|
@@ -562,10 +558,10 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
562
558
|
r.notifications.show({
|
|
563
559
|
level: "error",
|
|
564
560
|
title: `${o} failed`,
|
|
565
|
-
message:
|
|
561
|
+
message: as(s)
|
|
566
562
|
});
|
|
567
563
|
}
|
|
568
|
-
},
|
|
564
|
+
}, ds = (t) => {
|
|
569
565
|
const {
|
|
570
566
|
action: e,
|
|
571
567
|
onClose: n,
|
|
@@ -579,16 +575,16 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
579
575
|
return {
|
|
580
576
|
id: `workbench-command:${o.command.id}`,
|
|
581
577
|
commandId: o.command.id,
|
|
582
|
-
mode:
|
|
578
|
+
mode: pt,
|
|
583
579
|
label: d,
|
|
584
|
-
searchText:
|
|
580
|
+
searchText: rs(o.command, d),
|
|
585
581
|
description: o.command.description,
|
|
586
582
|
group: c,
|
|
587
583
|
icon: a ? /* @__PURE__ */ u(L, { name: a }) : void 0,
|
|
588
|
-
shortcut:
|
|
584
|
+
shortcut: ls(s.get(o.command.id)),
|
|
589
585
|
onActivate: () => {
|
|
590
|
-
const m =
|
|
591
|
-
if (n(),
|
|
586
|
+
const m = cs(r);
|
|
587
|
+
if (n(), et(o.command.params) && i) {
|
|
592
588
|
i({
|
|
593
589
|
record: o,
|
|
594
590
|
action: e,
|
|
@@ -607,10 +603,10 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
607
603
|
});
|
|
608
604
|
}
|
|
609
605
|
};
|
|
610
|
-
}, xn = (t) => t.action?.group ?? t.record.command.category ?? "", Cn = (t) => t.action?.order ?? 0,
|
|
606
|
+
}, xn = (t) => t.action?.group ?? t.record.command.category ?? "", Cn = (t) => t.action?.order ?? 0, us = (t, e) => {
|
|
611
607
|
const n = xn(t).localeCompare(xn(e));
|
|
612
608
|
return n !== 0 ? n : Cn(t) - Cn(e);
|
|
613
|
-
},
|
|
609
|
+
}, ms = (t, e) => e ? t.layout.listMenuItems(e).filter((n) => t.context.matches(n.when)).map((n) => {
|
|
614
610
|
const i = t.commands.getCommand(n.commandId);
|
|
615
611
|
return i ? {
|
|
616
612
|
record: i,
|
|
@@ -619,17 +615,17 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
619
615
|
}).filter((n) => n !== null) : t.commands.listCommands().map((n) => ({
|
|
620
616
|
record: n,
|
|
621
617
|
action: void 0
|
|
622
|
-
})),
|
|
618
|
+
})), fs = (t) => {
|
|
623
619
|
const {
|
|
624
620
|
menuPath: e,
|
|
625
621
|
onClose: n,
|
|
626
622
|
onRequestParams: i,
|
|
627
623
|
workbench: o
|
|
628
|
-
} = t, r =
|
|
629
|
-
return
|
|
624
|
+
} = t, r = ss(o);
|
|
625
|
+
return ms(o, e).sort(us).map(({
|
|
630
626
|
record: s,
|
|
631
627
|
action: l
|
|
632
|
-
}) =>
|
|
628
|
+
}) => ds({
|
|
633
629
|
workbench: o,
|
|
634
630
|
record: s,
|
|
635
631
|
action: l,
|
|
@@ -637,11 +633,11 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
637
633
|
onClose: n,
|
|
638
634
|
onRequestParams: i
|
|
639
635
|
})).filter((s) => s !== null);
|
|
640
|
-
},
|
|
636
|
+
}, hs = (t) => {
|
|
641
637
|
const {
|
|
642
638
|
workbench: e,
|
|
643
639
|
open: n,
|
|
644
|
-
menuPath: i =
|
|
640
|
+
menuPath: i = Vi,
|
|
645
641
|
initialQuery: o = "",
|
|
646
642
|
renderParamField: r,
|
|
647
643
|
onClose: s
|
|
@@ -649,7 +645,7 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
649
645
|
themePreference: l,
|
|
650
646
|
themePreferences: d,
|
|
651
647
|
setThemePreference: a
|
|
652
|
-
} = Gn(), c = E(e.commandPalette.store, (A) => A.view), m = pe(null), f = E(e.commandPalette.store, (A) => A.paramsRequest), [h, p] = Q(o), g =
|
|
648
|
+
} = Gn(), c = E(e.commandPalette.store, (A) => A.view), m = pe(null), f = E(e.commandPalette.store, (A) => A.paramsRequest), [h, p] = Q(o), g = Hr({
|
|
653
649
|
workbench: e,
|
|
654
650
|
query: h,
|
|
655
651
|
open: n,
|
|
@@ -662,28 +658,28 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
662
658
|
});
|
|
663
659
|
}, v = () => {
|
|
664
660
|
m.current = null, s();
|
|
665
|
-
}, S =
|
|
661
|
+
}, S = fs({
|
|
666
662
|
workbench: e,
|
|
667
663
|
menuPath: i,
|
|
668
664
|
onClose: s,
|
|
669
665
|
onRequestParams: (A) => e.commandPalette.requestParams(A)
|
|
670
|
-
}),
|
|
666
|
+
}), P = Xr({
|
|
671
667
|
workbench: e,
|
|
672
668
|
query: o,
|
|
673
669
|
onClose: s
|
|
674
|
-
}),
|
|
670
|
+
}), I = is({
|
|
675
671
|
themePreference: l,
|
|
676
672
|
themePreferences: d,
|
|
677
673
|
setThemePreference: a,
|
|
678
674
|
onClose: v
|
|
679
|
-
}), x =
|
|
675
|
+
}), x = Zr({
|
|
680
676
|
workbench: e,
|
|
681
677
|
onClose: s,
|
|
682
678
|
panelsByRegion: w
|
|
683
|
-
}), C = [...
|
|
679
|
+
}), C = [...P, ...g, ...S, ...x, ...I], R = ts(l, d), W = tt(c), T = Er({
|
|
684
680
|
view: c,
|
|
685
681
|
themeInitialActiveIndex: R
|
|
686
|
-
}), _ =
|
|
682
|
+
}), _ = Mr(c), N = $r(c);
|
|
687
683
|
return ue(() => {
|
|
688
684
|
n && p(o);
|
|
689
685
|
}, [o, n]), ue(() => {
|
|
@@ -709,16 +705,16 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
709
705
|
w: "full"
|
|
710
706
|
},
|
|
711
707
|
"& [data-scope=dialog][data-part=content]": {
|
|
712
|
-
background:
|
|
708
|
+
background: br
|
|
713
709
|
}
|
|
714
|
-
}, children: /* @__PURE__ */ u(
|
|
710
|
+
}, children: /* @__PURE__ */ u(ti, { open: n, entries: C, initialQuery: o, initialActiveIndex: T, mode: _, modes: N, resetKey: `${c}:${o}`, inputIcon: ({
|
|
715
711
|
mode: A
|
|
716
|
-
}) =>
|
|
712
|
+
}) => Nr({
|
|
717
713
|
view: c,
|
|
718
714
|
mode: A
|
|
719
715
|
}), placeholder: ({
|
|
720
716
|
mode: A
|
|
721
|
-
}) =>
|
|
717
|
+
}) => Or({
|
|
722
718
|
view: c,
|
|
723
719
|
mode: A
|
|
724
720
|
}), emptyLabel: "No results found.", onActiveEntryChange: (A) => {
|
|
@@ -731,7 +727,7 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
731
727
|
...A
|
|
732
728
|
}) })
|
|
733
729
|
] });
|
|
734
|
-
},
|
|
730
|
+
}, nt = (t) => {
|
|
735
731
|
const e = k(16);
|
|
736
732
|
let n, i, o, r;
|
|
737
733
|
e[0] !== t ? ({
|
|
@@ -740,7 +736,7 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
740
736
|
children: i,
|
|
741
737
|
...n
|
|
742
738
|
} = t, e[0] = t, e[1] = n, e[2] = i, e[3] = o, e[4] = r) : (n = e[1], i = e[2], o = e[3], r = e[4]);
|
|
743
|
-
const s = E(r.focus.store,
|
|
739
|
+
const s = E(r.focus.store, ps), l = pe(null);
|
|
744
740
|
let d, a;
|
|
745
741
|
e[5] !== s || e[6] !== o ? (d = () => {
|
|
746
742
|
const f = l.current;
|
|
@@ -755,22 +751,22 @@ const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ?
|
|
|
755
751
|
let m;
|
|
756
752
|
return e[12] !== n || e[13] !== i || e[14] !== c ? (m = /* @__PURE__ */ u(F, { ref: l, tabIndex: -1, outline: "none", onFocusCapture: c, ...n, children: i }), e[12] = n, e[13] = i, e[14] = c, e[15] = m) : m = e[15], m;
|
|
757
753
|
};
|
|
758
|
-
function
|
|
754
|
+
function ps(t) {
|
|
759
755
|
return t.activeRegion;
|
|
760
756
|
}
|
|
761
|
-
const
|
|
757
|
+
const gs = (t) => t.join("/"), bs = Ei(""), ys = (t) => t === Mi || t === $i || t.startsWith(bs), vs = (t) => {
|
|
762
758
|
const e = {};
|
|
763
759
|
for (const [n, i] of Object.entries(t))
|
|
764
|
-
|
|
760
|
+
ys(n) || (e[n] = i);
|
|
765
761
|
return e;
|
|
766
|
-
},
|
|
767
|
-
...e ?
|
|
762
|
+
}, Ss = (t, e) => ({
|
|
763
|
+
...e ? vs(t.contextValues) : t.contextValues,
|
|
768
764
|
...Jn(e?.resource)
|
|
769
765
|
}), dn = (t, e, n) => {
|
|
770
|
-
const i =
|
|
771
|
-
return [...t.itemsByPath[
|
|
766
|
+
const i = Ss(t, n);
|
|
767
|
+
return [...t.itemsByPath[gs(e)] ?? []].sort((o, r) => {
|
|
772
768
|
const s = o.order ?? 0, l = r.order ?? 0;
|
|
773
|
-
return s - l ||
|
|
769
|
+
return s - l || Ai(o, r);
|
|
774
770
|
}).filter((o) => Wt(i, o.when)).map((o, r) => {
|
|
775
771
|
const s = t.commands[o.commandId];
|
|
776
772
|
if (!s) return null;
|
|
@@ -797,11 +793,11 @@ const bs = (t) => t.join("/"), ys = Ni(""), vs = (t) => t === $i || t === Ei ||
|
|
|
797
793
|
} : {}
|
|
798
794
|
};
|
|
799
795
|
}).filter((o) => o !== null);
|
|
800
|
-
},
|
|
796
|
+
}, Cm = (t, e, n) => dn({
|
|
801
797
|
itemsByPath: t.layout.menuStore.getState().itemsByPath,
|
|
802
798
|
commands: t.commands.store.getState().commands,
|
|
803
799
|
contextValues: t.context.store.getState().values
|
|
804
|
-
}, e, n),
|
|
800
|
+
}, e, n), Xt = (t) => t.group === "kernel", kn = (t) => t.group === "overflow" || Xt(t), ws = (t, e) => {
|
|
805
801
|
if (!e || t.length === 0) return t;
|
|
806
802
|
const [n, ...i] = t;
|
|
807
803
|
return n ? [{
|
|
@@ -809,14 +805,14 @@ const bs = (t) => t.join("/"), ys = Ni(""), vs = (t) => t === $i || t === Ei ||
|
|
|
809
805
|
separatorBefore: !0
|
|
810
806
|
}, ...i] : i;
|
|
811
807
|
}, Is = (t) => {
|
|
812
|
-
const e = t.filter((i) => !
|
|
813
|
-
return [...e, ...
|
|
814
|
-
},
|
|
808
|
+
const e = t.filter((i) => !Xt(i)), n = t.filter(Xt);
|
|
809
|
+
return [...e, ...ws(n, e.length > 0)];
|
|
810
|
+
}, Ps = (t) => ({
|
|
815
811
|
inlineItems: t.filter((e) => !kn(e)),
|
|
816
812
|
overflowItems: Is(t.filter(kn))
|
|
817
|
-
}),
|
|
813
|
+
}), xs = (t) => t.find((e) => e.overflowLabel)?.overflowLabel ?? "More header actions", Cs = (t) => t ? {
|
|
818
814
|
resource: t
|
|
819
|
-
} : void 0,
|
|
815
|
+
} : void 0, ks = (t) => {
|
|
820
816
|
const e = k(25), {
|
|
821
817
|
controlSize: n,
|
|
822
818
|
item: i,
|
|
@@ -830,7 +826,7 @@ const bs = (t) => t.join("/"), ys = Ni(""), vs = (t) => t === $i || t === Ei ||
|
|
|
830
826
|
let m;
|
|
831
827
|
e[3] !== i.icon ? (m = i.icon ? /* @__PURE__ */ u(L, { name: i.icon, size: 14 }) : null, e[3] = i.icon, e[4] = m) : m = e[4];
|
|
832
828
|
let f;
|
|
833
|
-
return e[5] !== n || e[6] !== i.disabled || e[7] !== i.id || e[8] !== i.label || e[9] !== s || e[10] !== c || e[11] !== m ? (f = /* @__PURE__ */ H(
|
|
829
|
+
return e[5] !== n || e[6] !== i.disabled || e[7] !== i.id || e[8] !== i.label || e[9] !== s || e[10] !== c || e[11] !== m ? (f = /* @__PURE__ */ H(ze, { size: n, variant: c, disabled: i.disabled, onClick: s, children: [
|
|
834
830
|
m,
|
|
835
831
|
i.label
|
|
836
832
|
] }, i.id), e[5] = n, e[6] = i.disabled, e[7] = i.id, e[8] = i.label, e[9] = s, e[10] = c, e[11] = m, e[12] = f) : f = e[12], f;
|
|
@@ -840,13 +836,13 @@ const bs = (t) => t.join("/"), ys = Ni(""), vs = (t) => t === $i || t === Ei ||
|
|
|
840
836
|
let d;
|
|
841
837
|
e[15] !== n || e[16] !== i.disabled || e[17] !== i.label || e[18] !== s || e[19] !== l ? (d = /* @__PURE__ */ u(we, { size: n, variant: "ghost", "aria-label": i.label, disabled: i.disabled, onClick: s, children: l }), e[15] = n, e[16] = i.disabled, e[17] = i.label, e[18] = s, e[19] = l, e[20] = d) : d = e[20];
|
|
842
838
|
let a;
|
|
843
|
-
return e[21] !== i.id || e[22] !== i.label || e[23] !== d ? (a = /* @__PURE__ */ u(
|
|
839
|
+
return e[21] !== i.id || e[22] !== i.label || e[23] !== d ? (a = /* @__PURE__ */ u(Ie, { content: i.label, children: d }, i.id), e[21] = i.id, e[22] = i.label, e[23] = d, e[24] = a) : a = e[24], a;
|
|
844
840
|
}, Jt = (t) => {
|
|
845
841
|
const e = k(30), {
|
|
846
842
|
controlSize: n,
|
|
847
843
|
menuPath: i,
|
|
848
844
|
workbench: o
|
|
849
|
-
} = t, r = n === void 0 ? "xs" : n, s = E(o.commands.store,
|
|
845
|
+
} = t, r = n === void 0 ? "xs" : n, s = E(o.commands.store, Rs), l = E(o.context.store, Ws), d = E(o.layout.menuStore, Ts), a = E(o.layout.store, _s);
|
|
850
846
|
let c, m, f, h, p, g, w;
|
|
851
847
|
if (e[0] !== s || e[1] !== l || e[2] !== r || e[3] !== d || e[4] !== i || e[5] !== a || e[6] !== o.commandPalette || e[7] !== o.commands) {
|
|
852
848
|
w = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
@@ -860,11 +856,11 @@ const bs = (t) => t.join("/"), ys = Ni(""), vs = (t) => t === $i || t === Ei ||
|
|
|
860
856
|
}), {
|
|
861
857
|
inlineItems: v,
|
|
862
858
|
overflowItems: S
|
|
863
|
-
} =
|
|
864
|
-
let
|
|
865
|
-
e[15] !== s || e[16] !== a || e[17] !== o.commandPalette || e[18] !== o.commands ? (
|
|
866
|
-
const R = s[C.commandId]?.command, W = C.args, T =
|
|
867
|
-
if (R &&
|
|
859
|
+
} = Ps(b);
|
|
860
|
+
let P;
|
|
861
|
+
e[15] !== s || e[16] !== a || e[17] !== o.commandPalette || e[18] !== o.commands ? (P = (C) => {
|
|
862
|
+
const R = s[C.commandId]?.command, W = C.args, T = Cs(a);
|
|
863
|
+
if (R && et(R.params)) {
|
|
868
864
|
o.commandPalette.requestParams({
|
|
869
865
|
record: {
|
|
870
866
|
command: R
|
|
@@ -875,20 +871,20 @@ const bs = (t) => t.join("/"), ys = Ni(""), vs = (t) => t === $i || t === Ei ||
|
|
|
875
871
|
});
|
|
876
872
|
return;
|
|
877
873
|
}
|
|
878
|
-
o.commands.executeCommand(C.commandId, W, T).catch(
|
|
879
|
-
}, e[15] = s, e[16] = a, e[17] = o.commandPalette, e[18] = o.commands, e[19] =
|
|
880
|
-
const
|
|
874
|
+
o.commands.executeCommand(C.commandId, W, T).catch(As);
|
|
875
|
+
}, e[15] = s, e[16] = a, e[17] = o.commandPalette, e[18] = o.commands, e[19] = P) : P = e[19];
|
|
876
|
+
const I = P;
|
|
881
877
|
if (b.length === 0) {
|
|
882
878
|
w = null;
|
|
883
879
|
break e;
|
|
884
880
|
}
|
|
885
|
-
c =
|
|
881
|
+
c = Re, m = 0, f = "2xs", h = "0";
|
|
886
882
|
let x;
|
|
887
|
-
e[20] !== r || e[21] !==
|
|
888
|
-
/* @__PURE__ */ u(oe.Trigger, { asChild: !0, children: /* @__PURE__ */ u(we, { size: r, variant: "ghost", "aria-label":
|
|
889
|
-
/* @__PURE__ */ u(
|
|
883
|
+
e[20] !== r || e[21] !== I ? (x = (C) => /* @__PURE__ */ u(ks, { item: C, onSelect: I, controlSize: r }, C.id), e[20] = r, e[21] = I, e[22] = x) : x = e[22], p = v.map(x), g = S.length > 0 ? /* @__PURE__ */ H(oe.Root, { children: [
|
|
884
|
+
/* @__PURE__ */ u(oe.Trigger, { asChild: !0, children: /* @__PURE__ */ u(we, { size: r, variant: "ghost", "aria-label": xs(S), children: /* @__PURE__ */ u(L, { name: "MoreHorizontal", size: 16 }) }) }),
|
|
885
|
+
/* @__PURE__ */ u(Xe, { children: /* @__PURE__ */ u(oe.Positioner, { children: /* @__PURE__ */ u(oe.Content, { minW: "220px", bg: "bg", children: S.map((C) => /* @__PURE__ */ H(Qn, { children: [
|
|
890
886
|
C.separatorBefore ? /* @__PURE__ */ u(oe.Separator, {}) : null,
|
|
891
|
-
/* @__PURE__ */ u(oe.Item, { value: C.id, asChild: !0, children: /* @__PURE__ */ u(
|
|
887
|
+
/* @__PURE__ */ u(oe.Item, { value: C.id, asChild: !0, children: /* @__PURE__ */ u(mt, { asChild: !0, variant: "full-width", id: C.id, label: C.label, icon: C.icon ? /* @__PURE__ */ u(L, { name: C.icon, size: 16 }) : void 0, disabled: C.disabled, onActivate: () => I(C) }) })
|
|
892
888
|
] }, C.id)) }) }) })
|
|
893
889
|
] }) : null;
|
|
894
890
|
}
|
|
@@ -903,33 +899,33 @@ const bs = (t) => t.join("/"), ys = Ni(""), vs = (t) => t === $i || t === Ei ||
|
|
|
903
899
|
g
|
|
904
900
|
] }), e[23] = c, e[24] = m, e[25] = f, e[26] = h, e[27] = p, e[28] = g, e[29] = y) : y = e[29], y;
|
|
905
901
|
};
|
|
906
|
-
function
|
|
902
|
+
function Rs(t) {
|
|
907
903
|
return t.commands;
|
|
908
904
|
}
|
|
909
|
-
function
|
|
905
|
+
function Ws(t) {
|
|
910
906
|
return t.values;
|
|
911
907
|
}
|
|
912
|
-
function
|
|
908
|
+
function Ts(t) {
|
|
913
909
|
return t.itemsByPath;
|
|
914
910
|
}
|
|
915
|
-
function
|
|
911
|
+
function _s(t) {
|
|
916
912
|
return eo(t.layout, "primary");
|
|
917
913
|
}
|
|
918
|
-
function
|
|
914
|
+
function As() {
|
|
919
915
|
}
|
|
920
|
-
const
|
|
916
|
+
const Ms = (t) => {
|
|
921
917
|
const e = k(3);
|
|
922
918
|
let n;
|
|
923
|
-
e[0] !== t ? (n = t.map(
|
|
919
|
+
e[0] !== t ? (n = t.map($s), e[0] = t, e[1] = n) : n = e[1];
|
|
924
920
|
const i = n;
|
|
925
921
|
let o;
|
|
926
922
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
927
923
|
ignoreInputs: !0,
|
|
928
924
|
preventDefault: !0,
|
|
929
925
|
stopPropagation: !0
|
|
930
|
-
}, e[2] = o) : o = e[2],
|
|
926
|
+
}, e[2] = o) : o = e[2], ji(i, o);
|
|
931
927
|
};
|
|
932
|
-
function
|
|
928
|
+
function $s(t) {
|
|
933
929
|
return {
|
|
934
930
|
hotkey: t.hotkey,
|
|
935
931
|
callback: (e) => {
|
|
@@ -943,7 +939,7 @@ function Es(t) {
|
|
|
943
939
|
}
|
|
944
940
|
};
|
|
945
941
|
}
|
|
946
|
-
const
|
|
942
|
+
const Es = {
|
|
947
943
|
alt: "Alt",
|
|
948
944
|
cmd: "Meta",
|
|
949
945
|
command: "Meta",
|
|
@@ -953,13 +949,13 @@ const Ns = {
|
|
|
953
949
|
mod: "Mod",
|
|
954
950
|
option: "Alt",
|
|
955
951
|
shift: "Shift"
|
|
956
|
-
},
|
|
957
|
-
const n = e.trim(), i =
|
|
952
|
+
}, Ns = (t) => t.split("+").map((e) => {
|
|
953
|
+
const n = e.trim(), i = Es[n.toLowerCase()];
|
|
958
954
|
return i || (n.length === 1 ? n.toUpperCase() : n.slice(0, 1).toUpperCase() + n.slice(1));
|
|
959
955
|
}).join("+"), Rn = (t) => {
|
|
960
|
-
const e =
|
|
956
|
+
const e = Ni(t).map(Ns);
|
|
961
957
|
return e.length === 1 ? e[0] ?? "" : e;
|
|
962
|
-
},
|
|
958
|
+
}, Os = (t) => {
|
|
963
959
|
const {
|
|
964
960
|
workbench: e,
|
|
965
961
|
disabled: n = !1,
|
|
@@ -988,33 +984,33 @@ const Ns = {
|
|
|
988
984
|
execute: () => e.navigation.openTarget(l)
|
|
989
985
|
}];
|
|
990
986
|
});
|
|
991
|
-
},
|
|
987
|
+
}, zs = (t) => {
|
|
992
988
|
const e = k(4), {
|
|
993
989
|
workbench: n,
|
|
994
990
|
disabled: i,
|
|
995
991
|
commandIds: o
|
|
996
992
|
} = t;
|
|
997
|
-
E(n.keybindings.store,
|
|
993
|
+
E(n.keybindings.store, Bs), E(n.context.store, Hs), E(n.commands.store, Ds);
|
|
998
994
|
let r;
|
|
999
|
-
return e[0] !== o || e[1] !== i || e[2] !== n ? (r =
|
|
995
|
+
return e[0] !== o || e[1] !== i || e[2] !== n ? (r = Os({
|
|
1000
996
|
workbench: n,
|
|
1001
997
|
disabled: i,
|
|
1002
998
|
commandIds: o
|
|
1003
|
-
}), e[0] = o, e[1] = i, e[2] = n, e[3] = r) : r = e[3],
|
|
999
|
+
}), e[0] = o, e[1] = i, e[2] = n, e[3] = r) : r = e[3], Ms(r), null;
|
|
1004
1000
|
};
|
|
1005
|
-
function
|
|
1001
|
+
function Bs(t) {
|
|
1006
1002
|
return t.keybindings;
|
|
1007
1003
|
}
|
|
1008
|
-
function
|
|
1004
|
+
function Hs(t) {
|
|
1009
1005
|
return t.values;
|
|
1010
1006
|
}
|
|
1011
|
-
function
|
|
1007
|
+
function Ds(t) {
|
|
1012
1008
|
return t.commands;
|
|
1013
1009
|
}
|
|
1014
1010
|
const un = (t, e) => ({
|
|
1015
1011
|
...t.context.snapshot(),
|
|
1016
1012
|
...Jn(e?.resource)
|
|
1017
|
-
}), co = (t, e, n) => Wt(n, t.command.when) ? t.handler.isVisible?.(e) !== !1 : !1,
|
|
1013
|
+
}), co = (t, e, n) => Wt(n, t.command.when) ? t.handler.isVisible?.(e) !== !1 : !1, Vs = async (t) => {
|
|
1018
1014
|
const {
|
|
1019
1015
|
action: e,
|
|
1020
1016
|
args: n,
|
|
@@ -1031,7 +1027,7 @@ const un = (t, e) => ({
|
|
|
1031
1027
|
workbench: r
|
|
1032
1028
|
} = t;
|
|
1033
1029
|
try {
|
|
1034
|
-
await
|
|
1030
|
+
await Vs({
|
|
1035
1031
|
action: e,
|
|
1036
1032
|
args: n,
|
|
1037
1033
|
context: i,
|
|
@@ -1051,7 +1047,7 @@ const un = (t, e) => ({
|
|
|
1051
1047
|
if (e.disabled) return !1;
|
|
1052
1048
|
const n = Mt(t, e);
|
|
1053
1049
|
return n ? t.commands.isCommandEnabled(n.command.id, e.args) : !0;
|
|
1054
|
-
},
|
|
1050
|
+
}, Ls = (t) => {
|
|
1055
1051
|
const {
|
|
1056
1052
|
icon: e,
|
|
1057
1053
|
iconSrc: n
|
|
@@ -1062,21 +1058,21 @@ const un = (t, e) => ({
|
|
|
1062
1058
|
height: "100%",
|
|
1063
1059
|
objectFit: "contain"
|
|
1064
1060
|
} }) }) : e ? /* @__PURE__ */ u(L, { name: e }) : void 0;
|
|
1065
|
-
},
|
|
1061
|
+
}, Fs = (t) => {
|
|
1066
1062
|
const {
|
|
1067
1063
|
binding: e,
|
|
1068
1064
|
external: n
|
|
1069
1065
|
} = t;
|
|
1070
1066
|
if (n) return /* @__PURE__ */ u(L, { name: "ArrowUpRight", size: 14, color: "fg.muted" });
|
|
1071
|
-
if (e) return /* @__PURE__ */ u(
|
|
1072
|
-
},
|
|
1067
|
+
if (e) return /* @__PURE__ */ u(ut, { binding: e });
|
|
1068
|
+
}, Ks = (t, e) => {
|
|
1073
1069
|
if (!e || t.length === 0) return t;
|
|
1074
1070
|
const [n, ...i] = t;
|
|
1075
1071
|
return [{
|
|
1076
1072
|
...n,
|
|
1077
1073
|
separatorBefore: !0
|
|
1078
1074
|
}, ...i];
|
|
1079
|
-
},
|
|
1075
|
+
}, qs = (t) => t === "kernel", js = (t) => {
|
|
1080
1076
|
const {
|
|
1081
1077
|
context: e,
|
|
1082
1078
|
menuPath: n,
|
|
@@ -1090,7 +1086,7 @@ const un = (t, e) => ({
|
|
|
1090
1086
|
if (!f) continue;
|
|
1091
1087
|
const h = m.args;
|
|
1092
1088
|
if (!co(f, h, s)) continue;
|
|
1093
|
-
const p = m.icon ?? f.command.icon, g = l.get(f.command.id), w = m.readOnly === !0, y = m.label ?? f.command.label, b =
|
|
1089
|
+
const p = m.icon ?? f.command.icon, g = l.get(f.command.id), w = m.readOnly === !0, y = m.label ?? f.command.label, b = et(f.command.params) && o ? () => o({
|
|
1094
1090
|
request: {
|
|
1095
1091
|
record: {
|
|
1096
1092
|
command: f.command
|
|
@@ -1102,8 +1098,8 @@ const un = (t, e) => ({
|
|
|
1102
1098
|
run: async (S) => {
|
|
1103
1099
|
try {
|
|
1104
1100
|
await r.commands.executeCommand(f.command.id, S, e);
|
|
1105
|
-
} catch (
|
|
1106
|
-
throw i?.(
|
|
1101
|
+
} catch (P) {
|
|
1102
|
+
throw i?.(P), P;
|
|
1107
1103
|
}
|
|
1108
1104
|
}
|
|
1109
1105
|
}) : void 0, v = {
|
|
@@ -1111,11 +1107,11 @@ const un = (t, e) => ({
|
|
|
1111
1107
|
label: y,
|
|
1112
1108
|
commandId: m.sourceCommandId ?? f.command.id,
|
|
1113
1109
|
description: m.description ?? f.command.description,
|
|
1114
|
-
icon:
|
|
1110
|
+
icon: Ls({
|
|
1115
1111
|
icon: p,
|
|
1116
1112
|
iconSrc: m.iconSrc
|
|
1117
1113
|
}),
|
|
1118
|
-
endContent:
|
|
1114
|
+
endContent: Fs({
|
|
1119
1115
|
external: m.external,
|
|
1120
1116
|
binding: g
|
|
1121
1117
|
}),
|
|
@@ -1129,13 +1125,13 @@ const un = (t, e) => ({
|
|
|
1129
1125
|
r.commands.executeCommand(f.command.id, h, e).catch((S) => i?.(S));
|
|
1130
1126
|
}
|
|
1131
1127
|
};
|
|
1132
|
-
|
|
1128
|
+
qs(m.group) ? a.push(v) : d.push(v);
|
|
1133
1129
|
}
|
|
1134
1130
|
return {
|
|
1135
1131
|
regularItems: d,
|
|
1136
1132
|
kernelItems: a
|
|
1137
1133
|
};
|
|
1138
|
-
},
|
|
1134
|
+
}, Gs = (t) => {
|
|
1139
1135
|
const {
|
|
1140
1136
|
actions: e = [],
|
|
1141
1137
|
context: n,
|
|
@@ -1147,7 +1143,7 @@ const un = (t, e) => ({
|
|
|
1147
1143
|
if (!uo(r, a, s)) continue;
|
|
1148
1144
|
const c = Mt(r, a), m = a.label ?? c?.command.label;
|
|
1149
1145
|
if (!m) continue;
|
|
1150
|
-
const f = a.icon ?? c?.command.icon, h = !mo(r, a), p = a.commandId ? l.get(a.commandId) : void 0, g =
|
|
1146
|
+
const f = a.icon ?? c?.command.icon, h = !mo(r, a), p = a.commandId ? l.get(a.commandId) : void 0, g = et(a.params) && o ? () => o({
|
|
1151
1147
|
request: {
|
|
1152
1148
|
record: {
|
|
1153
1149
|
command: {
|
|
@@ -1174,7 +1170,7 @@ const un = (t, e) => ({
|
|
|
1174
1170
|
label: m,
|
|
1175
1171
|
commandId: c?.command.id ?? a.commandId,
|
|
1176
1172
|
icon: f ? /* @__PURE__ */ u(L, { name: f }) : void 0,
|
|
1177
|
-
endContent: p ? /* @__PURE__ */ u(
|
|
1173
|
+
endContent: p ? /* @__PURE__ */ u(ut, { binding: p }) : void 0,
|
|
1178
1174
|
disabled: h,
|
|
1179
1175
|
onAction: () => {
|
|
1180
1176
|
if (!h) {
|
|
@@ -1195,17 +1191,17 @@ const un = (t, e) => ({
|
|
|
1195
1191
|
}
|
|
1196
1192
|
return d;
|
|
1197
1193
|
}, fo = (t) => {
|
|
1198
|
-
const e =
|
|
1194
|
+
const e = Gs(t), {
|
|
1199
1195
|
regularItems: n,
|
|
1200
1196
|
kernelItems: i
|
|
1201
|
-
} = t.menuPath ?
|
|
1197
|
+
} = t.menuPath ? js({
|
|
1202
1198
|
...t,
|
|
1203
1199
|
menuPath: t.menuPath
|
|
1204
1200
|
}) : {
|
|
1205
1201
|
regularItems: [],
|
|
1206
1202
|
kernelItems: []
|
|
1207
1203
|
}, o = [...e, ...n];
|
|
1208
|
-
return [...o, ...
|
|
1204
|
+
return [...o, ...Ks(i, o.length > 0)];
|
|
1209
1205
|
}, ho = (t) => {
|
|
1210
1206
|
const {
|
|
1211
1207
|
actions: e = [],
|
|
@@ -1218,7 +1214,7 @@ const un = (t, e) => ({
|
|
|
1218
1214
|
if (!uo(r, a, s) || !mo(r, a)) continue;
|
|
1219
1215
|
const c = Mt(r, a), m = a.label ?? c?.command.label;
|
|
1220
1216
|
if (!m) continue;
|
|
1221
|
-
const f = a.icon ?? c?.command.icon, h = a.commandId ? l.get(a.commandId) : void 0, p =
|
|
1217
|
+
const f = a.icon ?? c?.command.icon, h = a.commandId ? l.get(a.commandId) : void 0, p = et(a.params) && o ? () => o({
|
|
1222
1218
|
request: {
|
|
1223
1219
|
record: {
|
|
1224
1220
|
command: {
|
|
@@ -1244,9 +1240,9 @@ const un = (t, e) => ({
|
|
|
1244
1240
|
id: a.id,
|
|
1245
1241
|
label: m,
|
|
1246
1242
|
icon: f ? /* @__PURE__ */ u(L, { name: f }) : void 0,
|
|
1247
|
-
tooltip: h ? /* @__PURE__ */ H(
|
|
1243
|
+
tooltip: h ? /* @__PURE__ */ H(Re, { gap: "2", children: [
|
|
1248
1244
|
/* @__PURE__ */ u(me, { children: m }),
|
|
1249
|
-
/* @__PURE__ */ u(
|
|
1245
|
+
/* @__PURE__ */ u(ut, { binding: h })
|
|
1250
1246
|
] }) : void 0,
|
|
1251
1247
|
onAction: () => {
|
|
1252
1248
|
if (p) {
|
|
@@ -1264,11 +1260,11 @@ const un = (t, e) => ({
|
|
|
1264
1260
|
});
|
|
1265
1261
|
}
|
|
1266
1262
|
return d;
|
|
1267
|
-
},
|
|
1263
|
+
}, Us = (t) => ({
|
|
1268
1264
|
key: t.id,
|
|
1269
1265
|
label: t.label,
|
|
1270
1266
|
commandId: t.commandId,
|
|
1271
|
-
icon: typeof t.icon == "function" ? /* @__PURE__ */ u(
|
|
1267
|
+
icon: typeof t.icon == "function" ? /* @__PURE__ */ u(jo, { as: t.icon, boxSize: "16px" }) : t.icon,
|
|
1272
1268
|
endContent: t.endContent,
|
|
1273
1269
|
isDisabled: t.disabled,
|
|
1274
1270
|
separatorBefore: t.separatorBefore,
|
|
@@ -1282,29 +1278,29 @@ const un = (t, e) => ({
|
|
|
1282
1278
|
onRequestParams: ({
|
|
1283
1279
|
request: n
|
|
1284
1280
|
}) => t.commandPalette.requestParams(n)
|
|
1285
|
-
}).map(
|
|
1281
|
+
}).map(Us), mn = (t) => {
|
|
1286
1282
|
const e = k(2);
|
|
1287
|
-
E(t.commands.store,
|
|
1283
|
+
E(t.commands.store, Zs), E(t.context.store, Ys), E(t.layout.menuStore, Xs);
|
|
1288
1284
|
let n;
|
|
1289
1285
|
return e[0] !== t ? (n = (i) => Qs(t, i), e[0] = t, e[1] = n) : n = e[1], n;
|
|
1290
1286
|
};
|
|
1291
|
-
function
|
|
1287
|
+
function Zs(t) {
|
|
1292
1288
|
return t.commands;
|
|
1293
1289
|
}
|
|
1294
1290
|
function Ys(t) {
|
|
1295
1291
|
return t.values;
|
|
1296
1292
|
}
|
|
1297
|
-
function
|
|
1293
|
+
function Xs(t) {
|
|
1298
1294
|
return t.itemsByPath;
|
|
1299
1295
|
}
|
|
1300
|
-
const
|
|
1296
|
+
const Js = (t) => {
|
|
1301
1297
|
const {
|
|
1302
1298
|
action: e,
|
|
1303
1299
|
workbench: n
|
|
1304
1300
|
} = t;
|
|
1305
1301
|
n.commands.executeCommand(e.commandId, e.args).catch(() => {
|
|
1306
1302
|
});
|
|
1307
|
-
},
|
|
1303
|
+
}, el = (t) => {
|
|
1308
1304
|
const e = k(4), {
|
|
1309
1305
|
workbench: n
|
|
1310
1306
|
} = t;
|
|
@@ -1316,7 +1312,7 @@ const el = (t) => {
|
|
|
1316
1312
|
const l = (a) => {
|
|
1317
1313
|
const c = a.actions?.[0], m = c ? {
|
|
1318
1314
|
label: c.title,
|
|
1319
|
-
onClick: () =>
|
|
1315
|
+
onClick: () => Js({
|
|
1320
1316
|
action: c,
|
|
1321
1317
|
workbench: n
|
|
1322
1318
|
})
|
|
@@ -1332,10 +1328,10 @@ const el = (t) => {
|
|
|
1332
1328
|
}
|
|
1333
1329
|
};
|
|
1334
1330
|
if (o.current.has(a.id)) {
|
|
1335
|
-
|
|
1331
|
+
St.update(a.id, f);
|
|
1336
1332
|
return;
|
|
1337
1333
|
}
|
|
1338
|
-
o.current.add(a.id),
|
|
1334
|
+
o.current.add(a.id), St.create(f);
|
|
1339
1335
|
};
|
|
1340
1336
|
for (const a of n.notifications.listNotifications())
|
|
1341
1337
|
l(a);
|
|
@@ -1344,20 +1340,20 @@ const el = (t) => {
|
|
|
1344
1340
|
l(a.notification);
|
|
1345
1341
|
return;
|
|
1346
1342
|
}
|
|
1347
|
-
o.current.delete(a.id),
|
|
1343
|
+
o.current.delete(a.id), St.dismiss(a.id);
|
|
1348
1344
|
});
|
|
1349
1345
|
return () => {
|
|
1350
1346
|
d.dispose();
|
|
1351
1347
|
for (const a of o.current)
|
|
1352
|
-
|
|
1348
|
+
St.dismiss(a);
|
|
1353
1349
|
o.current.clear();
|
|
1354
1350
|
};
|
|
1355
1351
|
}, s = [n], e[1] = n, e[2] = r, e[3] = s) : (r = e[2], s = e[3]), ue(r, s), null;
|
|
1356
|
-
},
|
|
1357
|
-
function
|
|
1352
|
+
}, gt = (t) => E(t.pages.store, tl), ot = (t) => E(t.modes.store, nl);
|
|
1353
|
+
function tl(t) {
|
|
1358
1354
|
return t.location?.resource;
|
|
1359
1355
|
}
|
|
1360
|
-
function
|
|
1356
|
+
function nl(t) {
|
|
1361
1357
|
return t.activeModeId;
|
|
1362
1358
|
}
|
|
1363
1359
|
const Vt = (t) => {
|
|
@@ -1368,14 +1364,14 @@ const Vt = (t) => {
|
|
|
1368
1364
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ u(L, { name: "circle-alert", size: 20 }), e[0] = i) : i = e[0];
|
|
1369
1365
|
let o;
|
|
1370
1366
|
return e[1] !== n ? (o = /* @__PURE__ */ u(tn, { h: "full", w: "full", color: "fg.muted", p: "md", "aria-label": n, children: i }), e[1] = n, e[2] = o) : o = e[2], o;
|
|
1371
|
-
},
|
|
1367
|
+
}, ol = (t) => {
|
|
1372
1368
|
const e = k(2), {
|
|
1373
1369
|
children: n
|
|
1374
1370
|
} = t;
|
|
1375
1371
|
let i;
|
|
1376
1372
|
return e[0] !== n ? (i = /* @__PURE__ */ u(F, { flex: "1", minW: "0", minH: "0", w: "full", h: "full", overflow: "hidden", children: n }), e[0] = n, e[1] = i) : i = e[1], i;
|
|
1377
|
-
},
|
|
1378
|
-
},
|
|
1373
|
+
}, il = () => {
|
|
1374
|
+
}, rl = (t) => {
|
|
1379
1375
|
if (t.view)
|
|
1380
1376
|
return {
|
|
1381
1377
|
id: t.placement.contributionId,
|
|
@@ -1392,32 +1388,32 @@ const Vt = (t) => {
|
|
|
1392
1388
|
placement: i
|
|
1393
1389
|
} = t, o = t.widget ?? n.layout.getWidget(i.contributionId), r = i.viewId ? n.views.getView(i.viewId) : void 0, s = r?.id ?? o?.rendererId ?? "";
|
|
1394
1390
|
let l;
|
|
1395
|
-
e[0] !== n ? (l =
|
|
1396
|
-
const a = E(l.store, (
|
|
1391
|
+
e[0] !== n ? (l = X(n), e[0] = n, e[1] = l) : l = e[1];
|
|
1392
|
+
const a = E(l.store, (I) => I.renderers[s]) ?? X(n).getRenderer(s);
|
|
1397
1393
|
let c;
|
|
1398
|
-
if (e[2] !== n ? (c =
|
|
1399
|
-
let
|
|
1400
|
-
return e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1394
|
+
if (e[2] !== n ? (c = X(n), e[2] = n, e[3] = c) : c = e[3], E(c.store, (I) => I.refreshKeys[s] ?? 0), !o && !r) {
|
|
1395
|
+
let I;
|
|
1396
|
+
return e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ u(Vt, { label: "Widget contribution is no longer registered." }), e[4] = I) : I = e[4], I;
|
|
1401
1397
|
}
|
|
1402
|
-
const m =
|
|
1398
|
+
const m = rl({
|
|
1403
1399
|
placement: i,
|
|
1404
1400
|
region: t.region,
|
|
1405
1401
|
view: r,
|
|
1406
1402
|
widget: o
|
|
1407
1403
|
});
|
|
1408
1404
|
if (!m) {
|
|
1409
|
-
let
|
|
1410
|
-
return e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1405
|
+
let I;
|
|
1406
|
+
return e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ u(Vt, { label: "View contribution is no longer registered." }), e[5] = I) : I = e[5], I;
|
|
1411
1407
|
}
|
|
1412
|
-
const f = Tt(i), h = F, p = "flex", g = "1 0 auto", w = "0", y = "0", b = "full", v = "hidden", S = a ? /* @__PURE__ */ u(
|
|
1408
|
+
const f = Tt(i), h = F, p = "flex", g = "1 0 auto", w = "0", y = "0", b = "full", v = "hidden", S = a ? /* @__PURE__ */ u(ol, { children: a.render({
|
|
1413
1409
|
workbench: n,
|
|
1414
1410
|
panel: m,
|
|
1415
1411
|
instance: f,
|
|
1416
|
-
refresh:
|
|
1412
|
+
refresh: il
|
|
1417
1413
|
}) }) : /* @__PURE__ */ u(Vt, { label: `No renderer registered for ${s}.` });
|
|
1418
|
-
let
|
|
1419
|
-
return e[6] !== h || e[7] !== S ? (
|
|
1420
|
-
},
|
|
1414
|
+
let P;
|
|
1415
|
+
return e[6] !== h || e[7] !== S ? (P = /* @__PURE__ */ u(h, { display: p, flex: g, minW: w, minH: y, w: b, overflow: v, children: S }), e[6] = h, e[7] = S, e[8] = P) : P = e[8], P;
|
|
1416
|
+
}, bt = (t, e) => {
|
|
1421
1417
|
const n = k(2);
|
|
1422
1418
|
let i;
|
|
1423
1419
|
return n[0] !== e ? (i = (o) => {
|
|
@@ -1440,22 +1436,22 @@ const Vt = (t) => {
|
|
|
1440
1436
|
}, e[0] = i, e[1] = r) : r = e[1];
|
|
1441
1437
|
let s;
|
|
1442
1438
|
return e[2] !== o || e[3] !== r || e[4] !== i || e[5] !== n ? (s = /* @__PURE__ */ u(F, { h: "full", w: "full", minH: "0", position: "relative", children: /* @__PURE__ */ u(F, { position: "absolute", inset: "0", display: "flex", children: /* @__PURE__ */ u($t, { workbench: n, region: o, placement: r }, i) }) }), e[2] = o, e[3] = r, e[4] = i, e[5] = n, e[6] = s) : s = e[6], s;
|
|
1443
|
-
},
|
|
1439
|
+
}, sl = /* @__PURE__ */ new Set(["nav", "main-header", "secondary-header", "side-header", "status"]), ll = new Set(Object.values(ln).flatMap((t) => Object.values(t))), Wn = /* @__PURE__ */ new Set(["side", "side-header", "side-left-menu", "side-right-menu"]), al = {
|
|
1444
1440
|
display: "flex",
|
|
1445
1441
|
flexDirection: "column",
|
|
1446
1442
|
minH: "100%",
|
|
1447
1443
|
position: "relative"
|
|
1448
|
-
},
|
|
1444
|
+
}, cl = {
|
|
1449
1445
|
display: "flex",
|
|
1450
1446
|
alignItems: "stretch",
|
|
1451
1447
|
h: "full",
|
|
1452
1448
|
minH: "100%",
|
|
1453
1449
|
position: "relative"
|
|
1454
|
-
}, po = (t, e) => t.find((n) => n.widgetId === e) ?? t[0],
|
|
1450
|
+
}, po = (t, e) => t.find((n) => n.widgetId === e) ?? t[0], dl = (t, e, n) => {
|
|
1455
1451
|
if (n === "sidenav") return t;
|
|
1456
1452
|
const i = po(t, e);
|
|
1457
1453
|
return i ? t.filter((o) => o.widgetId === i.widgetId || o.mountStrategy === "keep-mounted") : [];
|
|
1458
|
-
},
|
|
1454
|
+
}, ul = (t, e, n) => {
|
|
1459
1455
|
const i = t.widgetId === e, o = n === "sidenav";
|
|
1460
1456
|
return {
|
|
1461
1457
|
active: i,
|
|
@@ -1464,12 +1460,12 @@ const Vt = (t) => {
|
|
|
1464
1460
|
position: i || o ? "relative" : "absolute",
|
|
1465
1461
|
visibility: i || o ? "visible" : "hidden"
|
|
1466
1462
|
};
|
|
1467
|
-
},
|
|
1463
|
+
}, ml = (t) => ({
|
|
1468
1464
|
widgetId: t.id,
|
|
1469
1465
|
contributionId: t.id,
|
|
1470
1466
|
title: t.title,
|
|
1471
1467
|
closable: !1
|
|
1472
|
-
}),
|
|
1468
|
+
}), fl = (t) => {
|
|
1473
1469
|
const e = k(22), {
|
|
1474
1470
|
workbench: n,
|
|
1475
1471
|
placement: i,
|
|
@@ -1478,7 +1474,7 @@ const Vt = (t) => {
|
|
|
1478
1474
|
region: s
|
|
1479
1475
|
} = t;
|
|
1480
1476
|
let l;
|
|
1481
|
-
e[0] !== o || e[1] !== i || e[2] !== s ? (l =
|
|
1477
|
+
e[0] !== o || e[1] !== i || e[2] !== s ? (l = ul(i, o, s), e[0] = o, e[1] = i, e[2] = s, e[3] = l) : l = e[3];
|
|
1482
1478
|
const d = l, a = s === "sidenav", c = !d.active && !a;
|
|
1483
1479
|
let m;
|
|
1484
1480
|
a ? m = "1 1 0" : d.active && (m = "1 0 auto");
|
|
@@ -1491,16 +1487,16 @@ const Vt = (t) => {
|
|
|
1491
1487
|
e[8] !== i || e[9] !== n ? (b = /* @__PURE__ */ u($t, { workbench: n, placement: i }), e[8] = i, e[9] = n, e[10] = b) : b = e[10];
|
|
1492
1488
|
let v;
|
|
1493
1489
|
return e[11] !== m || e[12] !== d.display || e[13] !== d.pointerEvents || e[14] !== d.position || e[15] !== d.visibility || e[16] !== p || e[17] !== g || e[18] !== w || e[19] !== y || e[20] !== b ? (v = /* @__PURE__ */ u(F, { display: d.display, flex: m, h: p, inset: g, minH: "0", minW: "0", onPointerDown: w, onFocusCapture: y, overflow: "hidden", pointerEvents: d.pointerEvents, position: d.position, visibility: d.visibility, w: "full", children: b }), e[11] = m, e[12] = d.display, e[13] = d.pointerEvents, e[14] = d.position, e[15] = d.visibility, e[16] = p, e[17] = g, e[18] = w, e[19] = y, e[20] = b, e[21] = v) : v = e[21], v;
|
|
1494
|
-
},
|
|
1490
|
+
}, Pe = (t) => {
|
|
1495
1491
|
const e = k(29), {
|
|
1496
1492
|
workbench: n,
|
|
1497
1493
|
region: i,
|
|
1498
1494
|
title: o,
|
|
1499
1495
|
pointerEvents: r,
|
|
1500
1496
|
transparent: s
|
|
1501
|
-
} = t, l = r === void 0 ? "auto" : r, d = s === void 0 ? !1 : s, a =
|
|
1497
|
+
} = t, l = r === void 0 ? "auto" : r, d = s === void 0 ? !1 : s, a = bt(n, i), c = gt(n), m = ot(n), f = E(n.layout.store, hl), h = f.regions[i], p = E(n.layout.store, pl), g = ll.has(i) ? on(f, Oi(i), c, {
|
|
1502
1498
|
ignoreOwnerResourceKey: Wn.has(i)
|
|
1503
|
-
}) : void 0, w =
|
|
1499
|
+
}) : void 0, w = ht(f), y = {
|
|
1504
1500
|
...h,
|
|
1505
1501
|
widgets: h.widgets.filter((ie) => {
|
|
1506
1502
|
const xe = p[ie.contributionId];
|
|
@@ -1511,17 +1507,17 @@ const Vt = (t) => {
|
|
|
1511
1507
|
subPanel: g
|
|
1512
1508
|
}) : !1;
|
|
1513
1509
|
})
|
|
1514
|
-
}, b = E(n.layout.store,
|
|
1510
|
+
}, b = E(n.layout.store, gl), v = po(y.widgets, y.activeWidgetId), S = v ? void 0 : n.layout.getPlaceholder(i), P = v ?? (S ? ml(S) : void 0), I = v ? dl(y.widgets, v.widgetId, i) : [];
|
|
1515
1511
|
if (a === !1)
|
|
1516
1512
|
return null;
|
|
1517
1513
|
if (a) {
|
|
1518
1514
|
let ie;
|
|
1519
1515
|
return e[0] !== a || e[1] !== i || e[2] !== n ? (ie = /* @__PURE__ */ u(fn, { workbench: n, region: i, viewId: a }), e[0] = a, e[1] = i, e[2] = n, e[3] = ie) : ie = e[3], ie;
|
|
1520
1516
|
}
|
|
1521
|
-
if (!
|
|
1517
|
+
if (!P)
|
|
1522
1518
|
return null;
|
|
1523
1519
|
let x;
|
|
1524
|
-
e[4] !== i ? (x =
|
|
1520
|
+
e[4] !== i ? (x = sl.has(i), e[4] = i, e[5] = x) : x = e[5];
|
|
1525
1521
|
const C = x;
|
|
1526
1522
|
let R;
|
|
1527
1523
|
e[6] !== b || e[7] !== n.layout ? (R = (ie) => {
|
|
@@ -1529,25 +1525,25 @@ const Vt = (t) => {
|
|
|
1529
1525
|
}, e[6] = b, e[7] = n.layout, e[8] = R) : R = e[8];
|
|
1530
1526
|
const W = R, T = i === "sidenav", _ = he, N = "section", A = "column", $ = "full", B = "0", z = "0", M = "full";
|
|
1531
1527
|
let O;
|
|
1532
|
-
e[9] !== i || e[10] !== d ? (O = d ? "transparent" :
|
|
1533
|
-
const D = "hidden", q = o ?? i, re = T ? void 0 : () => W(v), se = T ? void 0 : () => W(v), U =
|
|
1528
|
+
e[9] !== i || e[10] !== d ? (O = d ? "transparent" : yr(i), e[9] = i, e[10] = d, e[11] = O) : O = e[11];
|
|
1529
|
+
const D = "hidden", q = o ?? i, re = T ? void 0 : () => W(v), se = T ? void 0 : () => W(v), U = Ee, j = "1", ae = "0", le = "0", V = "full", ce = "xs", de = !C;
|
|
1534
1530
|
let K;
|
|
1535
1531
|
e[12] !== C ? (K = C ? {
|
|
1536
1532
|
justifyContent: "center"
|
|
1537
1533
|
} : void 0, e[12] = C, e[13] = K) : K = e[13];
|
|
1538
|
-
const J = C ?
|
|
1534
|
+
const J = C ? cl : al, te = S ? /* @__PURE__ */ u($t, { workbench: n, placement: P, widget: S }) : I.map((ie) => /* @__PURE__ */ u(fl, { workbench: n, placement: ie, activeWidgetId: v?.widgetId, globalActiveWidgetId: b, region: i }, ie.widgetId));
|
|
1539
1535
|
let ne;
|
|
1540
1536
|
e[14] !== U || e[15] !== C || e[16] !== de || e[17] !== K || e[18] !== J || e[19] !== te ? (ne = /* @__PURE__ */ u(U, { flex: j, minH: ae, minW: le, w: V, size: ce, showVerticalScrollbar: de, showHorizontalScrollbar: C, viewportProps: K, contentProps: J, children: te }), e[14] = U, e[15] = C, e[16] = de, e[17] = K, e[18] = J, e[19] = te, e[20] = ne) : ne = e[20];
|
|
1541
1537
|
let fe;
|
|
1542
1538
|
return e[21] !== _ || e[22] !== l || e[23] !== O || e[24] !== q || e[25] !== re || e[26] !== se || e[27] !== ne ? (fe = /* @__PURE__ */ u(_, { as: N, direction: A, h: $, minH: B, minW: z, w: M, bg: O, overflow: D, pointerEvents: l, "aria-label": q, onPointerDown: re, onFocusCapture: se, children: ne }), e[21] = _, e[22] = l, e[23] = O, e[24] = q, e[25] = re, e[26] = se, e[27] = ne, e[28] = fe) : fe = e[28], fe;
|
|
1543
1539
|
};
|
|
1544
|
-
function
|
|
1540
|
+
function hl(t) {
|
|
1545
1541
|
return t.layout;
|
|
1546
1542
|
}
|
|
1547
|
-
function
|
|
1543
|
+
function pl(t) {
|
|
1548
1544
|
return t.widgets;
|
|
1549
1545
|
}
|
|
1550
|
-
function
|
|
1546
|
+
function gl(t) {
|
|
1551
1547
|
return t.layout.activeWidgetId;
|
|
1552
1548
|
}
|
|
1553
1549
|
const go = (t) => {
|
|
@@ -1574,11 +1570,11 @@ const go = (t) => {
|
|
|
1574
1570
|
let m;
|
|
1575
1571
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ u(L, { name: "plus", size: 13 }), e[8] = m) : m = e[8];
|
|
1576
1572
|
let f;
|
|
1577
|
-
e[9] !== a || e[10] !== c ? (f = /* @__PURE__ */ u(we, { ref: a, size:
|
|
1573
|
+
e[9] !== a || e[10] !== c ? (f = /* @__PURE__ */ u(we, { ref: a, size: Je, variant: "ghost", "aria-label": "Add panel", flexShrink: 0, onClick: c, children: m }), e[9] = a, e[10] = c, e[11] = f) : f = e[11];
|
|
1578
1574
|
const h = f;
|
|
1579
1575
|
if (n.length === 1) {
|
|
1580
1576
|
let v;
|
|
1581
|
-
return e[12] !== h ? (v = /* @__PURE__ */ u(
|
|
1577
|
+
return e[12] !== h ? (v = /* @__PURE__ */ u(Ie, { content: "Add panel", children: h }), e[12] = h, e[13] = v) : v = e[13], v;
|
|
1582
1578
|
}
|
|
1583
1579
|
let p;
|
|
1584
1580
|
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
@@ -1586,39 +1582,39 @@ const go = (t) => {
|
|
|
1586
1582
|
getAnchorElement: () => s.current
|
|
1587
1583
|
}, e[14] = p) : p = e[14];
|
|
1588
1584
|
let g;
|
|
1589
|
-
e[15] !== h ? (g = /* @__PURE__ */ u(
|
|
1585
|
+
e[15] !== h ? (g = /* @__PURE__ */ u(Ie, { content: "Add panel", children: /* @__PURE__ */ u(oe.Trigger, { asChild: !0, children: h }) }), e[15] = h, e[16] = g) : g = e[16];
|
|
1590
1586
|
let w;
|
|
1591
1587
|
if (e[17] !== d || e[18] !== n) {
|
|
1592
1588
|
let v;
|
|
1593
|
-
e[20] !== d ? (v = (S) => /* @__PURE__ */ u(oe.Item, { value: `widget:${S.contribution.id}`, asChild: !0, children: /* @__PURE__ */ u(
|
|
1589
|
+
e[20] !== d ? (v = (S) => /* @__PURE__ */ u(oe.Item, { value: `widget:${S.contribution.id}`, asChild: !0, children: /* @__PURE__ */ u(mt, { asChild: !0, variant: "full-width", label: S.contribution.title, icon: S.contribution.icon ? /* @__PURE__ */ u(L, { name: S.contribution.icon, size: 14 }) : void 0, onActivate: () => d(S) }) }, S.contribution.id), e[20] = d, e[21] = v) : v = e[21], w = n.map(v), e[17] = d, e[18] = n, e[19] = w;
|
|
1594
1590
|
} else
|
|
1595
1591
|
w = e[19];
|
|
1596
1592
|
let y;
|
|
1597
|
-
e[22] !== w ? (y = /* @__PURE__ */ u(
|
|
1593
|
+
e[22] !== w ? (y = /* @__PURE__ */ u(Xe, { children: /* @__PURE__ */ u(oe.Positioner, { children: /* @__PURE__ */ u(oe.Content, { "aria-label": "Add panel", minW: "17.5rem", bg: "bg", children: w }) }) }), e[22] = w, e[23] = y) : y = e[23];
|
|
1598
1594
|
let b;
|
|
1599
1595
|
return e[24] !== g || e[25] !== y ? (b = /* @__PURE__ */ H(oe.Root, { positioning: p, children: [
|
|
1600
1596
|
g,
|
|
1601
1597
|
y
|
|
1602
1598
|
] }), e[24] = g, e[25] = y, e[26] = b) : b = e[26], b;
|
|
1603
|
-
}, bo = (t, e) => `${t}:${e.contributionId}`,
|
|
1599
|
+
}, bo = (t, e) => `${t}:${e.contributionId}`, bl = (t, e) => t === "sidenav", yo = (t, e, n) => {
|
|
1604
1600
|
const i = t.resource?.icon ?? n;
|
|
1605
1601
|
return t.role === "sub-panel" ? e?.icon ?? i : i ?? e?.icon;
|
|
1606
|
-
},
|
|
1602
|
+
}, yl = (t, e) => e && t.some((i) => i.widgetId === e) ? e : t[0]?.widgetId, vl = (t) => Xn.some((e) => e === t), Sl = (t, e = {}) => t.length > 1 || t.length === 1 && (e.alwaysShowTabs ?? t[0]?.closable) === !0, wl = (t) => t.hasTabs === !0 || t.hasPanelMenus === !0 || t.hasHeaderActions === !0, vo = (t, e, n, i = t.getPrimaryResource(), o = t.modes.getActiveModeId()) => {
|
|
1607
1603
|
const r = t.layout.getWidget(n.contributionId);
|
|
1608
1604
|
return r ? _t(r, i, o, n, {
|
|
1609
1605
|
ignoreResourceLocation: e === "side",
|
|
1610
|
-
location:
|
|
1606
|
+
location: ht(t.layout.getLayout())
|
|
1611
1607
|
}) : !1;
|
|
1612
1608
|
}, hn = (t, e, n) => {
|
|
1613
|
-
const i = k(55), o = E(t.commands.store,
|
|
1609
|
+
const i = k(55), o = E(t.commands.store, Pl), r = E(t.context.store, xl), s = E(t.layout.menuStore, Cl), l = E(t.layout.store, kl), d = gt(t), a = ot(t), c = oo(t), m = ni(n ?? e, Rl), f = l.layout.regions[e];
|
|
1614
1610
|
let h, p;
|
|
1615
1611
|
if (i[0] !== a || i[1] !== e || i[2] !== f.widgets || i[3] !== d || i[4] !== m.tabOverrides || i[5] !== t) {
|
|
1616
1612
|
let R;
|
|
1617
1613
|
i[8] !== a || i[9] !== e || i[10] !== d || i[11] !== t ? (R = (_) => _.role === "sub-panel" && vo(t, e, _, d, a), i[8] = a, i[9] = e, i[10] = d, i[11] = t, i[12] = R) : R = i[12], h = f.widgets.filter(R);
|
|
1618
1614
|
let W;
|
|
1619
1615
|
i[13] !== e ? (W = (_) => bo(e, _), i[13] = e, i[14] = W) : W = i[14];
|
|
1620
|
-
const T =
|
|
1621
|
-
p = new Set(T.map(
|
|
1616
|
+
const T = oi(h, m.tabOverrides, W);
|
|
1617
|
+
p = new Set(T.map(Wl)), i[0] = a, i[1] = e, i[2] = f.widgets, i[3] = d, i[4] = m.tabOverrides, i[5] = t, i[6] = h, i[7] = p;
|
|
1622
1618
|
} else
|
|
1623
1619
|
h = i[6], p = i[7];
|
|
1624
1620
|
const g = p;
|
|
@@ -1631,14 +1627,14 @@ const go = (t) => {
|
|
|
1631
1627
|
itemsByPath: s,
|
|
1632
1628
|
commands: o,
|
|
1633
1629
|
contextValues: r
|
|
1634
|
-
},
|
|
1630
|
+
}, Li(e)), i[31] = o, i[32] = r, i[33] = s, i[34] = e, i[35] = W) : W = i[35], y = W, b = vl(e) ? e : void 0;
|
|
1635
1631
|
let T;
|
|
1636
|
-
i[36] !== c || i[37] !== b ? (T = b ? c[b].addable : [], i[36] = c, i[37] = b, i[38] = T) : T = i[38], w = T, v = !
|
|
1632
|
+
i[36] !== c || i[37] !== b ? (T = b ? c[b].addable : [], i[36] = c, i[37] = b, i[38] = T) : T = i[38], w = T, v = !bl(e) && Sl(S, {
|
|
1637
1633
|
alwaysShowTabs: t.layout.getRegionSettings(e)?.alwaysShowTabs
|
|
1638
1634
|
}), i[15] = o, i[16] = c, i[17] = r, i[18] = s, i[19] = e, i[20] = f.widgets, i[21] = g, i[22] = t.layout, i[23] = w, i[24] = y, i[25] = b, i[26] = v, i[27] = S;
|
|
1639
1635
|
} else
|
|
1640
1636
|
w = i[23], y = i[24], b = i[25], v = i[26], S = i[27];
|
|
1641
|
-
const
|
|
1637
|
+
const P = v, I = y.length > 0 || w.length > 0;
|
|
1642
1638
|
let x;
|
|
1643
1639
|
i[39] !== m.reset || i[40] !== m.tabOverrides || i[41] !== m.toggleTab ? (x = {
|
|
1644
1640
|
tabOverrides: m.tabOverrides,
|
|
@@ -1646,7 +1642,7 @@ const go = (t) => {
|
|
|
1646
1642
|
reset: m.reset
|
|
1647
1643
|
}, i[39] = m.reset, i[40] = m.tabOverrides, i[41] = m.toggleTab, i[42] = x) : x = i[42];
|
|
1648
1644
|
let C;
|
|
1649
|
-
return i[43] !== o || i[44] !== w || i[45] !==
|
|
1645
|
+
return i[43] !== o || i[44] !== w || i[45] !== I || i[46] !== y || i[47] !== b || i[48] !== f || i[49] !== d || i[50] !== P || i[51] !== h || i[52] !== x || i[53] !== S ? (C = {
|
|
1650
1646
|
commands: o,
|
|
1651
1647
|
regionState: f,
|
|
1652
1648
|
resource: d,
|
|
@@ -1656,11 +1652,11 @@ const go = (t) => {
|
|
|
1656
1652
|
leadingItems: y,
|
|
1657
1653
|
panelRegion: b,
|
|
1658
1654
|
eligibleSubPanels: w,
|
|
1659
|
-
showTabs:
|
|
1660
|
-
hasActions:
|
|
1661
|
-
}, i[43] = o, i[44] = w, i[45] =
|
|
1662
|
-
},
|
|
1663
|
-
const n = k(11), i = E(t.layout.store,
|
|
1655
|
+
showTabs: P,
|
|
1656
|
+
hasActions: I
|
|
1657
|
+
}, i[43] = o, i[44] = w, i[45] = I, i[46] = y, i[47] = b, i[48] = f, i[49] = d, i[50] = P, i[51] = h, i[52] = x, i[53] = S, i[54] = C) : C = i[54], C;
|
|
1658
|
+
}, ct = (t, e) => {
|
|
1659
|
+
const n = k(11), i = E(t.layout.store, Tl), o = gt(t), r = ot(t), {
|
|
1664
1660
|
showTabs: s,
|
|
1665
1661
|
hasActions: l
|
|
1666
1662
|
} = hn(t, e);
|
|
@@ -1668,7 +1664,7 @@ const go = (t) => {
|
|
|
1668
1664
|
if (n[0] !== i.layout || n[1] !== i.widgets || n[2] !== r || n[3] !== e || n[4] !== o || n[5] !== t) {
|
|
1669
1665
|
const m = on(i.layout, e, o, {
|
|
1670
1666
|
ignoreOwnerResourceKey: e === "side"
|
|
1671
|
-
}), f =
|
|
1667
|
+
}), f = ht(i.layout), h = ln[e];
|
|
1672
1668
|
d = [h.left, h.right].some((p) => i.layout.regions[p].widgets.some((g) => vo(t, e, g, o, r) && sn(i.widgets[g.contributionId], {
|
|
1673
1669
|
locationPanel: f,
|
|
1674
1670
|
subPanel: m
|
|
@@ -1677,7 +1673,7 @@ const go = (t) => {
|
|
|
1677
1673
|
d = n[6];
|
|
1678
1674
|
const a = d;
|
|
1679
1675
|
let c;
|
|
1680
|
-
return n[7] !== l || n[8] !== a || n[9] !== s ? (c =
|
|
1676
|
+
return n[7] !== l || n[8] !== a || n[9] !== s ? (c = wl({
|
|
1681
1677
|
hasTabs: s,
|
|
1682
1678
|
hasHeaderActions: l,
|
|
1683
1679
|
hasPanelMenus: a
|
|
@@ -1689,32 +1685,32 @@ const go = (t) => {
|
|
|
1689
1685
|
} = hn(t, e);
|
|
1690
1686
|
return n || i;
|
|
1691
1687
|
};
|
|
1692
|
-
function
|
|
1688
|
+
function Pl(t) {
|
|
1693
1689
|
return t.commands;
|
|
1694
1690
|
}
|
|
1695
|
-
function
|
|
1691
|
+
function xl(t) {
|
|
1696
1692
|
return t.values;
|
|
1697
1693
|
}
|
|
1698
|
-
function
|
|
1694
|
+
function Cl(t) {
|
|
1699
1695
|
return t.itemsByPath;
|
|
1700
1696
|
}
|
|
1701
|
-
function
|
|
1697
|
+
function kl(t) {
|
|
1702
1698
|
return t;
|
|
1703
1699
|
}
|
|
1704
|
-
function
|
|
1700
|
+
function Rl(t) {
|
|
1705
1701
|
return t;
|
|
1706
1702
|
}
|
|
1707
|
-
function
|
|
1703
|
+
function Wl(t) {
|
|
1708
1704
|
return t.widgetId;
|
|
1709
1705
|
}
|
|
1710
|
-
function
|
|
1706
|
+
function Tl(t) {
|
|
1711
1707
|
return t;
|
|
1712
1708
|
}
|
|
1713
|
-
const
|
|
1709
|
+
const _l = (t) => {
|
|
1714
1710
|
const e = k(8), n = t.tab, [, i] = Q(0);
|
|
1715
1711
|
let o;
|
|
1716
1712
|
e[0] !== i || e[1] !== n ? (o = () => {
|
|
1717
|
-
const l = n?.subscribe?.(() => i(
|
|
1713
|
+
const l = n?.subscribe?.(() => i(Hl));
|
|
1718
1714
|
if (l)
|
|
1719
1715
|
return typeof l == "function" ? l : () => l.dispose();
|
|
1720
1716
|
}, e[0] = i, e[1] = n, e[2] = o) : o = e[2];
|
|
@@ -1722,7 +1718,7 @@ const Al = (t) => {
|
|
|
1722
1718
|
e[3] !== n ? (r = [n], e[3] = n, e[4] = r) : r = e[4], ue(o, r);
|
|
1723
1719
|
let s;
|
|
1724
1720
|
return e[5] !== t || e[6] !== n ? (s = n?.getSnapshot(Tt(t)) ?? {}, e[5] = t, e[6] = n, e[7] = s) : s = e[7], s;
|
|
1725
|
-
},
|
|
1721
|
+
}, Al = (t, e) => {
|
|
1726
1722
|
const n = k(32), {
|
|
1727
1723
|
disabled: i,
|
|
1728
1724
|
nextWidgetId: o,
|
|
@@ -1732,14 +1728,14 @@ const Al = (t) => {
|
|
|
1732
1728
|
workbench: d
|
|
1733
1729
|
} = t, a = i === void 0 ? !1 : i, c = l === void 0 ? !1 : l, m = r.tabRetention === "preview";
|
|
1734
1730
|
let f;
|
|
1735
|
-
n[0] !== e.menu ? (f = e.menu?.some(
|
|
1731
|
+
n[0] !== e.menu ? (f = e.menu?.some(Dl), n[0] = e.menu, n[1] = f) : f = n[1];
|
|
1736
1732
|
const h = !!f, p = m, g = a || !c;
|
|
1737
1733
|
let w;
|
|
1738
1734
|
n[2] !== r.widgetId || n[3] !== g ? (w = {
|
|
1739
1735
|
id: r.widgetId,
|
|
1740
1736
|
disabled: g
|
|
1741
1737
|
}, n[2] = r.widgetId, n[3] = g, n[4] = w) : w = n[4];
|
|
1742
|
-
const y =
|
|
1738
|
+
const y = Xi(w), [b, v] = Q();
|
|
1743
1739
|
let S;
|
|
1744
1740
|
n[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
1745
1741
|
x: 0,
|
|
@@ -1747,12 +1743,12 @@ const Al = (t) => {
|
|
|
1747
1743
|
width: 0,
|
|
1748
1744
|
height: 0
|
|
1749
1745
|
}, n[5] = S) : S = n[5];
|
|
1750
|
-
const [
|
|
1746
|
+
const [P, I] = Q(S);
|
|
1751
1747
|
let x;
|
|
1752
1748
|
n[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = (M, O) => {
|
|
1753
1749
|
O.preventDefault(), O.stopPropagation();
|
|
1754
1750
|
const D = O.currentTarget.getBoundingClientRect();
|
|
1755
|
-
|
|
1751
|
+
I({
|
|
1756
1752
|
x: D.x,
|
|
1757
1753
|
y: D.y,
|
|
1758
1754
|
width: D.width,
|
|
@@ -1785,8 +1781,8 @@ const Al = (t) => {
|
|
|
1785
1781
|
}, n[14] = a, n[15] = o, n[16] = r.widgetId, n[17] = s, n[18] = c, n[19] = d, n[20] = $) : $ = n[20];
|
|
1786
1782
|
const B = $;
|
|
1787
1783
|
let z;
|
|
1788
|
-
return n[21] !==
|
|
1789
|
-
anchor:
|
|
1784
|
+
return n[21] !== P || n[22] !== p || n[23] !== h || n[24] !== m || n[25] !== _ || n[26] !== W || n[27] !== b || n[28] !== B || n[29] !== y || n[30] !== e ? (z = {
|
|
1785
|
+
anchor: P,
|
|
1790
1786
|
hasCustomMenu: h,
|
|
1791
1787
|
hasContextMenu: p,
|
|
1792
1788
|
isPreview: m,
|
|
@@ -1797,7 +1793,7 @@ const Al = (t) => {
|
|
|
1797
1793
|
setMenuOpen: A,
|
|
1798
1794
|
sortableState: y,
|
|
1799
1795
|
tabSnapshot: e
|
|
1800
|
-
}, n[21] =
|
|
1796
|
+
}, n[21] = P, n[22] = p, n[23] = h, n[24] = m, n[25] = _, n[26] = W, n[27] = b, n[28] = B, n[29] = y, n[30] = e, n[31] = z) : z = n[31], z;
|
|
1801
1797
|
}, So = (t) => {
|
|
1802
1798
|
const e = k(15), {
|
|
1803
1799
|
anchor: n,
|
|
@@ -1821,10 +1817,10 @@ const Al = (t) => {
|
|
|
1821
1817
|
offset: a
|
|
1822
1818
|
}, e[5] = d, e[6] = c) : c = e[6];
|
|
1823
1819
|
let m;
|
|
1824
|
-
e[7] !== i || e[8] !== o ? (m = /* @__PURE__ */ u(
|
|
1820
|
+
e[7] !== i || e[8] !== o ? (m = /* @__PURE__ */ u(Xe, { children: /* @__PURE__ */ u(oe.Positioner, { children: /* @__PURE__ */ u(oe.Content, { "aria-label": o, minW: "18.75rem", bg: "bg", children: i }) }) }), e[7] = i, e[8] = o, e[9] = m) : m = e[9];
|
|
1825
1821
|
let f;
|
|
1826
1822
|
return e[10] !== r || e[11] !== l || e[12] !== c || e[13] !== m ? (f = /* @__PURE__ */ u(oe.Root, { open: r, onOpenChange: l, positioning: c, children: m }), e[10] = r, e[11] = l, e[12] = c, e[13] = m, e[14] = f) : f = e[14], f;
|
|
1827
|
-
},
|
|
1823
|
+
}, Ml = (t) => {
|
|
1828
1824
|
const e = k(11), {
|
|
1829
1825
|
anchor: n,
|
|
1830
1826
|
label: i,
|
|
@@ -1836,7 +1832,7 @@ const Al = (t) => {
|
|
|
1836
1832
|
let a;
|
|
1837
1833
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ u(L, { name: "pin", size: 14 }), e[0] = a) : a = e[0];
|
|
1838
1834
|
let c;
|
|
1839
|
-
e[1] !== r.placementIdentity || e[2] !== r.widgetId || e[3] !== l ? (c = /* @__PURE__ */ u(oe.Item, { value: "keep-open", asChild: !0, children: /* @__PURE__ */ u(
|
|
1835
|
+
e[1] !== r.placementIdentity || e[2] !== r.widgetId || e[3] !== l ? (c = /* @__PURE__ */ u(oe.Item, { value: "keep-open", asChild: !0, children: /* @__PURE__ */ u(mt, { asChild: !0, variant: "full-width", id: "keep-open", label: "Keep Open", icon: a, onActivate: () => {
|
|
1840
1836
|
r.placementIdentity ? l.pinPlacement(r.placementIdentity) : l.layout.updatePanel(r.widgetId, {
|
|
1841
1837
|
strategy: {
|
|
1842
1838
|
kind: "persistent"
|
|
@@ -1845,7 +1841,7 @@ const Al = (t) => {
|
|
|
1845
1841
|
} }) }), e[1] = r.placementIdentity, e[2] = r.widgetId, e[3] = l, e[4] = c) : c = e[4];
|
|
1846
1842
|
let m;
|
|
1847
1843
|
return e[5] !== n || e[6] !== o || e[7] !== s || e[8] !== d || e[9] !== c ? (m = /* @__PURE__ */ u(So, { anchor: n, label: d, open: o, setMenuOpen: s, children: c }), e[5] = n, e[6] = o, e[7] = s, e[8] = d, e[9] = c, e[10] = m) : m = e[10], m;
|
|
1848
|
-
},
|
|
1844
|
+
}, $l = (t) => {
|
|
1849
1845
|
const e = k(9), {
|
|
1850
1846
|
icon: n,
|
|
1851
1847
|
id: i,
|
|
@@ -1861,22 +1857,22 @@ const Al = (t) => {
|
|
|
1861
1857
|
s,
|
|
1862
1858
|
l
|
|
1863
1859
|
] }), e[6] = s, e[7] = l, e[8] = d) : d = e[8], d;
|
|
1864
|
-
},
|
|
1860
|
+
}, El = (t, e) => {
|
|
1865
1861
|
if (e.kind === "command") {
|
|
1866
1862
|
t.commands.executeCommand(e.commandId, e.args);
|
|
1867
1863
|
return;
|
|
1868
1864
|
}
|
|
1869
1865
|
t.navigation.openTarget(e.target);
|
|
1870
|
-
},
|
|
1866
|
+
}, Nl = (t) => {
|
|
1871
1867
|
const {
|
|
1872
1868
|
groups: e,
|
|
1873
1869
|
workbench: n
|
|
1874
1870
|
} = t;
|
|
1875
1871
|
return e.map((i, o) => /* @__PURE__ */ H(F, { display: "contents", children: [
|
|
1876
1872
|
o > 0 ? /* @__PURE__ */ u(oe.Separator, {}) : null,
|
|
1877
|
-
i.rows.map((r) => /* @__PURE__ */ u(oe.Item, { value: r.id, disabled: r.disabled, asChild: !0, children: /* @__PURE__ */ u(
|
|
1873
|
+
i.rows.map((r) => /* @__PURE__ */ u(oe.Item, { value: r.id, disabled: r.disabled, asChild: !0, children: /* @__PURE__ */ u(mt, { asChild: !0, variant: "full-width", id: r.id, label: r.label, icon: r.icon ? /* @__PURE__ */ u(L, { name: r.icon, size: 16 }) : void 0, iconColor: r.iconColor, isSelected: r.selected, disabled: r.disabled, onActivate: r.action ? () => El(n, r.action) : void 0 }) }, r.id))
|
|
1878
1874
|
] }, i.id));
|
|
1879
|
-
},
|
|
1875
|
+
}, Ol = (t) => {
|
|
1880
1876
|
const e = k(15), {
|
|
1881
1877
|
disabled: n,
|
|
1882
1878
|
isActive: i,
|
|
@@ -1912,8 +1908,8 @@ const Al = (t) => {
|
|
|
1912
1908
|
s.layout.closePanel(r.widgetId);
|
|
1913
1909
|
}, e[4] = n, e[5] = r.placementIdentity, e[6] = r.widgetId, e[7] = s, e[8] = p) : p = e[8];
|
|
1914
1910
|
let g;
|
|
1915
|
-
return e[9] !== n || e[10] !== l || e[11] !== d || e[12] !== a || e[13] !== p ? (g = /* @__PURE__ */ u(jn, { as: "span", role: "button", "aria-label": l, "aria-disabled": n, size: "2xs", boxSize: "1rem", minW: "1rem", p: "0", borderRadius: "2xs", flexShrink: 0, me: "-1", opacity: d, pointerEvents: a, color: "fg.muted", _groupHover: c, _groupFocusWithin: m, _hover: f, _active: h, transition: "opacity 120ms ease", onPointerDown:
|
|
1916
|
-
},
|
|
1911
|
+
return e[9] !== n || e[10] !== l || e[11] !== d || e[12] !== a || e[13] !== p ? (g = /* @__PURE__ */ u(jn, { as: "span", role: "button", "aria-label": l, "aria-disabled": n, size: "2xs", boxSize: "1rem", minW: "1rem", p: "0", borderRadius: "2xs", flexShrink: 0, me: "-1", opacity: d, pointerEvents: a, color: "fg.muted", _groupHover: c, _groupFocusWithin: m, _hover: f, _active: h, transition: "opacity 120ms ease", onPointerDown: Vl, onClick: p }), e[9] = n, e[10] = l, e[11] = d, e[12] = a, e[13] = p, e[14] = g) : g = e[14], g;
|
|
1912
|
+
}, zl = (t) => {
|
|
1917
1913
|
const e = k(12), {
|
|
1918
1914
|
behavior: n,
|
|
1919
1915
|
label: i,
|
|
@@ -1921,65 +1917,65 @@ const Al = (t) => {
|
|
|
1921
1917
|
workbench: r
|
|
1922
1918
|
} = t;
|
|
1923
1919
|
let s;
|
|
1924
|
-
e[0] !== n || e[1] !== i || e[2] !== r ? (s = n.hasCustomMenu ? /* @__PURE__ */ u(So, { anchor: n.anchor, label: `${i} menu`, open: n.openMenu === "custom", setMenuOpen: (a) => n.setMenuOpen("custom", a), children: /* @__PURE__ */ u(
|
|
1920
|
+
e[0] !== n || e[1] !== i || e[2] !== r ? (s = n.hasCustomMenu ? /* @__PURE__ */ u(So, { anchor: n.anchor, label: `${i} menu`, open: n.openMenu === "custom", setMenuOpen: (a) => n.setMenuOpen("custom", a), children: /* @__PURE__ */ u(Nl, { groups: n.tabSnapshot.menu ?? [], workbench: r }) }) : null, e[0] = n, e[1] = i, e[2] = r, e[3] = s) : s = e[3];
|
|
1925
1921
|
let l;
|
|
1926
|
-
e[4] !== n || e[5] !== i || e[6] !== o || e[7] !== r ? (l = n.hasContextMenu ? /* @__PURE__ */ u(
|
|
1922
|
+
e[4] !== n || e[5] !== i || e[6] !== o || e[7] !== r ? (l = n.hasContextMenu ? /* @__PURE__ */ u(Ml, { anchor: n.anchor, label: i, open: n.openMenu === "context", placement: o, setMenuOpen: (a) => n.setMenuOpen("context", a), workbench: r }) : null, e[4] = n, e[5] = i, e[6] = o, e[7] = r, e[8] = l) : l = e[8];
|
|
1927
1923
|
let d;
|
|
1928
1924
|
return e[9] !== s || e[10] !== l ? (d = /* @__PURE__ */ H(Rt, { children: [
|
|
1929
1925
|
s,
|
|
1930
1926
|
l
|
|
1931
1927
|
] }), e[9] = s, e[10] = l, e[11] = d) : d = e[11], d;
|
|
1932
|
-
},
|
|
1928
|
+
}, Bl = (t) => {
|
|
1933
1929
|
const e = k(44), {
|
|
1934
1930
|
activeWidgetId: n,
|
|
1935
1931
|
disabled: i,
|
|
1936
1932
|
placement: o,
|
|
1937
1933
|
sortable: r,
|
|
1938
1934
|
workbench: s
|
|
1939
|
-
} = t, l = i === void 0 ? !1 : i, d = r === void 0 ? !1 : r, a = o.widgetId === n, c =
|
|
1935
|
+
} = t, l = i === void 0 ? !1 : i, d = r === void 0 ? !1 : r, a = o.widgetId === n, c = _l(o), m = c.label ?? o.resource?.label ?? o.title ?? o.contributionId, f = `workbench-tab-label-${o.widgetId}`;
|
|
1940
1936
|
let h;
|
|
1941
1937
|
if (e[0] !== o || e[1] !== s.layout || e[2] !== s.resources) {
|
|
1942
1938
|
const q = s.layout.getWidget(o.contributionId);
|
|
1943
1939
|
h = yo(o, q, o.resource ? s.resources.getKind(o.resource.type)?.icon : void 0), e[0] = o, e[1] = s.layout, e[2] = s.resources, e[3] = h;
|
|
1944
1940
|
} else
|
|
1945
1941
|
h = e[3];
|
|
1946
|
-
const p = h, g =
|
|
1942
|
+
const p = h, g = Al(t, c), {
|
|
1947
1943
|
isDragging: w,
|
|
1948
1944
|
listeners: y,
|
|
1949
1945
|
setNodeRef: b,
|
|
1950
1946
|
transform: v,
|
|
1951
1947
|
transition: S
|
|
1952
|
-
} = g.sortableState,
|
|
1948
|
+
} = g.sortableState, P = g.openMenu === "custom" && g.hasCustomMenu || g.openMenu === "context" && g.hasContextMenu, I = o.widgetId, x = g.hasCustomMenu || g.hasContextMenu ? "menu" : void 0, C = g.hasCustomMenu || g.hasContextMenu ? P : void 0, R = d ? "Alt+ArrowLeft Alt+ArrowRight" : void 0, W = g.isPreview ? "italic" : void 0, T = w ? "0.5" : void 0;
|
|
1953
1949
|
let _;
|
|
1954
|
-
e[4] !== v ? (_ =
|
|
1950
|
+
e[4] !== v ? (_ = tr.Transform.toString(v), e[4] = v, e[5] = _) : _ = e[5];
|
|
1955
1951
|
const N = g.hasContextMenu ? g.openContextMenu : void 0, A = g.hasCustomMenu && a && !l ? g.openCustomMenu : void 0, $ = c.icon ?? p;
|
|
1956
1952
|
let B;
|
|
1957
|
-
e[6] !== m || e[7] !== f || e[8] !== $ || e[9] !== c.indicator ? (B = /* @__PURE__ */ u(
|
|
1953
|
+
e[6] !== m || e[7] !== f || e[8] !== $ || e[9] !== c.indicator ? (B = /* @__PURE__ */ u($l, { icon: $, id: f, indicator: c.indicator, label: m }), e[6] = m, e[7] = f, e[8] = $, e[9] = c.indicator, e[10] = B) : B = e[10];
|
|
1958
1954
|
let z;
|
|
1959
|
-
e[11] !== l || e[12] !== a || e[13] !== m || e[14] !== o || e[15] !== s ? (z = /* @__PURE__ */ u(
|
|
1955
|
+
e[11] !== l || e[12] !== a || e[13] !== m || e[14] !== o || e[15] !== s ? (z = /* @__PURE__ */ u(Ol, { disabled: l, isActive: a, label: m, placement: o, workbench: s }), e[11] = l, e[12] = a, e[13] = m, e[14] = o, e[15] = s, e[16] = z) : z = e[16];
|
|
1960
1956
|
let M;
|
|
1961
|
-
e[17] !== g.reorderWithKeyboard || e[18] !== l || e[19] !== m || e[20] !== f || e[21] !== y || e[22] !== o.widgetId || e[23] !== b || e[24] !== N || e[25] !== A || e[26] !== B || e[27] !== z || e[28] !== x || e[29] !== C || e[30] !== R || e[31] !== W || e[32] !== T || e[33] !== _ || e[34] !== S ? (M = /* @__PURE__ */ H(nn.Trigger, { ref: b, value:
|
|
1957
|
+
e[17] !== g.reorderWithKeyboard || e[18] !== l || e[19] !== m || e[20] !== f || e[21] !== y || e[22] !== o.widgetId || e[23] !== b || e[24] !== N || e[25] !== A || e[26] !== B || e[27] !== z || e[28] !== x || e[29] !== C || e[30] !== R || e[31] !== W || e[32] !== T || e[33] !== _ || e[34] !== S ? (M = /* @__PURE__ */ H(nn.Trigger, { ref: b, value: I, maxW: "12rem", minW: "0", flexShrink: 0, title: m, "aria-labelledby": f, disabled: l, className: "group", "aria-haspopup": x, "aria-expanded": C, "aria-keyshortcuts": R, fontStyle: W, opacity: T, transform: _, transition: S, ...y, onKeyDown: g.reorderWithKeyboard, onContextMenu: N, onClick: A, children: [
|
|
1962
1958
|
B,
|
|
1963
1959
|
z
|
|
1964
1960
|
] }), e[17] = g.reorderWithKeyboard, e[18] = l, e[19] = m, e[20] = f, e[21] = y, e[22] = o.widgetId, e[23] = b, e[24] = N, e[25] = A, e[26] = B, e[27] = z, e[28] = x, e[29] = C, e[30] = R, e[31] = W, e[32] = T, e[33] = _, e[34] = S, e[35] = M) : M = e[35];
|
|
1965
1961
|
let O;
|
|
1966
|
-
e[36] !== g || e[37] !== m || e[38] !== o || e[39] !== s ? (O = /* @__PURE__ */ u(
|
|
1962
|
+
e[36] !== g || e[37] !== m || e[38] !== o || e[39] !== s ? (O = /* @__PURE__ */ u(zl, { behavior: g, label: m, placement: o, workbench: s }), e[36] = g, e[37] = m, e[38] = o, e[39] = s, e[40] = O) : O = e[40];
|
|
1967
1963
|
let D;
|
|
1968
1964
|
return e[41] !== M || e[42] !== O ? (D = /* @__PURE__ */ H(Rt, { children: [
|
|
1969
1965
|
M,
|
|
1970
1966
|
O
|
|
1971
1967
|
] }), e[41] = M, e[42] = O, e[43] = D) : D = e[43], D;
|
|
1972
1968
|
};
|
|
1973
|
-
function
|
|
1969
|
+
function Hl(t) {
|
|
1974
1970
|
return t + 1;
|
|
1975
1971
|
}
|
|
1976
|
-
function
|
|
1972
|
+
function Dl(t) {
|
|
1977
1973
|
return t.rows.length > 0;
|
|
1978
1974
|
}
|
|
1979
|
-
function
|
|
1975
|
+
function Vl(t) {
|
|
1980
1976
|
return t.stopPropagation();
|
|
1981
1977
|
}
|
|
1982
|
-
const
|
|
1978
|
+
const Ll = (t) => {
|
|
1983
1979
|
const e = k(53), {
|
|
1984
1980
|
activeWidgetId: n,
|
|
1985
1981
|
disabled: i,
|
|
@@ -1996,10 +1992,10 @@ const Fl = (t) => {
|
|
|
1996
1992
|
distance: 5
|
|
1997
1993
|
}
|
|
1998
1994
|
}, e[0] = c) : c = e[0];
|
|
1999
|
-
const m = Ui(
|
|
2000
|
-
let f, h, p, g, w, y, b, v, S,
|
|
1995
|
+
const m = Gi(Ui(Qi, c));
|
|
1996
|
+
let f, h, p, g, w, y, b, v, S, P, I, x, C, R, W;
|
|
2001
1997
|
if (e[1] !== n || e[2] !== i || e[3] !== l || e[4] !== m || e[5] !== a) {
|
|
2002
|
-
const $ = l.filter(
|
|
1998
|
+
const $ = l.filter(Fl);
|
|
2003
1999
|
let B;
|
|
2004
2000
|
e[21] !== l || e[22] !== a ? (B = (M) => {
|
|
2005
2001
|
const {
|
|
@@ -2016,32 +2012,32 @@ const Fl = (t) => {
|
|
|
2016
2012
|
});
|
|
2017
2013
|
}, e[21] = l, e[22] = a, e[23] = B) : B = e[23];
|
|
2018
2014
|
const z = B;
|
|
2019
|
-
p =
|
|
2015
|
+
p = Zi, w = m, y = Yi, b = z, h = Ji, e[24] !== l ? (R = l.map(Kl), e[24] = l, e[25] = R) : R = e[25], W = er, f = nn.List, g = "full", v = "0", S = "max-content", P = "center", I = "2xs", x = "flex-start", C = l.map((M) => {
|
|
2020
2016
|
const O = $.findIndex((D) => D.widgetId === M.widgetId);
|
|
2021
|
-
return /* @__PURE__ */ u(
|
|
2022
|
-
}), e[1] = n, e[2] = i, e[3] = l, e[4] = m, e[5] = a, e[6] = f, e[7] = h, e[8] = p, e[9] = g, e[10] = w, e[11] = y, e[12] = b, e[13] = v, e[14] = S, e[15] =
|
|
2017
|
+
return /* @__PURE__ */ u(Bl, { workbench: a, placement: M, activeWidgetId: n, disabled: i, sortable: O >= 0, previousWidgetId: $[O - 1]?.widgetId, nextWidgetId: $[O + 1]?.widgetId }, M.widgetId);
|
|
2018
|
+
}), e[1] = n, e[2] = i, e[3] = l, e[4] = m, e[5] = a, e[6] = f, e[7] = h, e[8] = p, e[9] = g, e[10] = w, e[11] = y, e[12] = b, e[13] = v, e[14] = S, e[15] = P, e[16] = I, e[17] = x, e[18] = C, e[19] = R, e[20] = W;
|
|
2023
2019
|
} else
|
|
2024
|
-
f = e[6], h = e[7], p = e[8], g = e[9], w = e[10], y = e[11], b = e[12], v = e[13], S = e[14],
|
|
2020
|
+
f = e[6], h = e[7], p = e[8], g = e[9], w = e[10], y = e[11], b = e[12], v = e[13], S = e[14], P = e[15], I = e[16], x = e[17], C = e[18], R = e[19], W = e[20];
|
|
2025
2021
|
let T;
|
|
2026
2022
|
e[26] !== o || e[27] !== s || e[28] !== d || e[29] !== a ? (T = s ? /* @__PURE__ */ u(go, { workbench: a, region: s, resource: d, panels: o }) : null, e[26] = o, e[27] = s, e[28] = d, e[29] = a, e[30] = T) : T = e[30];
|
|
2027
2023
|
let _;
|
|
2028
|
-
e[31] !== f || e[32] !== r || e[33] !== g || e[34] !== T || e[35] !== v || e[36] !== S || e[37] !==
|
|
2024
|
+
e[31] !== f || e[32] !== r || e[33] !== g || e[34] !== T || e[35] !== v || e[36] !== S || e[37] !== P || e[38] !== I || e[39] !== x || e[40] !== C ? (_ = /* @__PURE__ */ H(f, { h: g, minH: v, minW: S, alignItems: P, gap: I, justifyContent: x, children: [
|
|
2029
2025
|
C,
|
|
2030
2026
|
T,
|
|
2031
2027
|
r
|
|
2032
|
-
] }), e[31] = f, e[32] = r, e[33] = g, e[34] = T, e[35] = v, e[36] = S, e[37] =
|
|
2028
|
+
] }), e[31] = f, e[32] = r, e[33] = g, e[34] = T, e[35] = v, e[36] = S, e[37] = P, e[38] = I, e[39] = x, e[40] = C, e[41] = _) : _ = e[41];
|
|
2033
2029
|
let N;
|
|
2034
2030
|
e[42] !== h || e[43] !== _ || e[44] !== R || e[45] !== W ? (N = /* @__PURE__ */ u(h, { items: R, strategy: W, children: _ }), e[42] = h, e[43] = _, e[44] = R, e[45] = W, e[46] = N) : N = e[46];
|
|
2035
2031
|
let A;
|
|
2036
2032
|
return e[47] !== p || e[48] !== w || e[49] !== y || e[50] !== b || e[51] !== N ? (A = /* @__PURE__ */ u(p, { sensors: w, collisionDetection: y, onDragEnd: b, children: N }), e[47] = p, e[48] = w, e[49] = y, e[50] = b, e[51] = N, e[52] = A) : A = e[52], A;
|
|
2037
2033
|
};
|
|
2038
|
-
function
|
|
2034
|
+
function Fl(t) {
|
|
2039
2035
|
return t.role === "sub-panel" && t.tabRetention !== "preview";
|
|
2040
2036
|
}
|
|
2041
|
-
function
|
|
2037
|
+
function Kl(t) {
|
|
2042
2038
|
return t.widgetId;
|
|
2043
2039
|
}
|
|
2044
|
-
const
|
|
2040
|
+
const ql = (t, e) => {
|
|
2045
2041
|
const n = yo(e, t.layout.getWidget(e.contributionId), e.resource ? t.resources.getKind(e.resource.type)?.icon : void 0);
|
|
2046
2042
|
return n ? /* @__PURE__ */ u(L, { name: n, size: 14 }) : void 0;
|
|
2047
2043
|
}, pn = (t) => {
|
|
@@ -2064,7 +2060,7 @@ const jl = (t, e) => {
|
|
|
2064
2060
|
} = hn(n, i, o), w = d.tabOverrides;
|
|
2065
2061
|
let y;
|
|
2066
2062
|
e[0] !== i ? (y = (G) => bo(i, G), e[0] = i, e[1] = y) : y = e[1];
|
|
2067
|
-
const b = y, [v, S] = Q(null), [
|
|
2063
|
+
const b = y, [v, S] = Q(null), [P, I] = Q(!1);
|
|
2068
2064
|
let x;
|
|
2069
2065
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {
|
|
2070
2066
|
x: 0,
|
|
@@ -2078,8 +2074,8 @@ const jl = (t, e) => {
|
|
|
2078
2074
|
let _, N, A;
|
|
2079
2075
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ u(L, { name: "eye", size: 14 }), N = /* @__PURE__ */ u(L, { name: "eye-off", size: 14 }), A = /* @__PURE__ */ u(L, { name: "rotate-ccw", size: 14 }), e[6] = _, e[7] = N, e[8] = A) : (_ = e[6], N = e[7], A = e[8]);
|
|
2080
2076
|
let $;
|
|
2081
|
-
e[9] !== n ? ($ = (G) =>
|
|
2082
|
-
const B =
|
|
2077
|
+
e[9] !== n ? ($ = (G) => ql(n, G), e[9] = n, e[10] = $) : $ = e[10];
|
|
2078
|
+
const B = ii(a, w, {
|
|
2083
2079
|
onToggleTab: W,
|
|
2084
2080
|
onResetAll: T
|
|
2085
2081
|
}, b, {
|
|
@@ -2098,7 +2094,7 @@ const jl = (t, e) => {
|
|
|
2098
2094
|
y: ve.y,
|
|
2099
2095
|
width: ve.width,
|
|
2100
2096
|
height: ve.height
|
|
2101
|
-
}),
|
|
2097
|
+
}), I(!0);
|
|
2102
2098
|
}, e[11] = z, e[12] = M) : M = e[12];
|
|
2103
2099
|
const O = M;
|
|
2104
2100
|
let D, q;
|
|
@@ -2114,12 +2110,12 @@ const jl = (t, e) => {
|
|
|
2114
2110
|
}, D = [v], e[13] = v, e[14] = D, e[15] = q) : (D = e[14], q = e[15]), ue(q, D), !p && !g)
|
|
2115
2111
|
return null;
|
|
2116
2112
|
let re;
|
|
2117
|
-
e[16] !== s.activeWidgetId || e[17] !== c ? (re =
|
|
2113
|
+
e[16] !== s.activeWidgetId || e[17] !== c ? (re = yl(c, s.activeWidgetId), e[16] = s.activeWidgetId, e[17] = c, e[18] = re) : re = e[18];
|
|
2118
2114
|
const se = re;
|
|
2119
2115
|
let U;
|
|
2120
2116
|
e[19] !== r || e[20] !== n ? (U = (G) => {
|
|
2121
2117
|
const ee = r[G.commandId]?.command;
|
|
2122
|
-
if (ee &&
|
|
2118
|
+
if (ee && et(ee.params)) {
|
|
2123
2119
|
n.commandPalette.requestParams({
|
|
2124
2120
|
record: {
|
|
2125
2121
|
command: ee
|
|
@@ -2129,13 +2125,13 @@ const jl = (t, e) => {
|
|
|
2129
2125
|
});
|
|
2130
2126
|
return;
|
|
2131
2127
|
}
|
|
2132
|
-
n.commands.executeCommand(G.commandId, G.args).catch(
|
|
2128
|
+
n.commands.executeCommand(G.commandId, G.args).catch(jl);
|
|
2133
2129
|
}, e[19] = r, e[20] = n, e[21] = U) : U = e[21];
|
|
2134
2130
|
const j = U;
|
|
2135
2131
|
let ae;
|
|
2136
2132
|
if (e[22] !== m || e[23] !== j) {
|
|
2137
2133
|
let G;
|
|
2138
|
-
e[25] !== j ? (G = (ee) => /* @__PURE__ */ u(
|
|
2134
|
+
e[25] !== j ? (G = (ee) => /* @__PURE__ */ u(Ie, { content: ee.label, children: /* @__PURE__ */ u(we, { size: Je, variant: "ghost", "aria-label": ee.label, disabled: ee.disabled, flexShrink: 0, onPointerDown: Gl, onClick: (ve) => {
|
|
2139
2135
|
ve.stopPropagation(), j(ee);
|
|
2140
2136
|
}, children: /* @__PURE__ */ u(L, { name: ee.icon ?? "plus", size: 14 }) }) }, ee.id), e[25] = j, e[26] = G) : G = e[26], ae = m.map(G), e[22] = m, e[23] = j, e[24] = ae;
|
|
2141
2137
|
} else
|
|
@@ -2145,7 +2141,7 @@ const jl = (t, e) => {
|
|
|
2145
2141
|
let G;
|
|
2146
2142
|
e[27] !== h || e[28] !== f || e[29] !== l || e[30] !== n ? (G = f ? /* @__PURE__ */ u(go, { workbench: n, region: f, resource: l, panels: h }) : null, e[27] = h, e[28] = f, e[29] = l, e[30] = n, e[31] = G) : G = e[31];
|
|
2147
2143
|
let ee;
|
|
2148
|
-
return e[32] !== le || e[33] !== G ? (ee = /* @__PURE__ */ H(
|
|
2144
|
+
return e[32] !== le || e[33] !== G ? (ee = /* @__PURE__ */ H(Re, { flex: "1 1 auto", h: "full", minW: "0", gap: "2xs", children: [
|
|
2149
2145
|
G,
|
|
2150
2146
|
le
|
|
2151
2147
|
] }), e[32] = le, e[33] = G, e[34] = ee) : ee = e[34], ee;
|
|
@@ -2160,33 +2156,33 @@ const jl = (t, e) => {
|
|
|
2160
2156
|
}
|
|
2161
2157
|
n.layout.activatePanel(G.value);
|
|
2162
2158
|
}, e[35] = i, e[36] = c, e[37] = n.layout, e[38] = ce) : ce = e[38];
|
|
2163
|
-
const de = "subtle", K = "gray", J = "start", te =
|
|
2164
|
-
let
|
|
2165
|
-
e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2159
|
+
const de = "subtle", K = "gray", J = "start", te = ri, ne = "stretch", fe = "1 1 auto", ie = "full", xe = "0", _e = "full", Ot = "relative", zt = "1", Ce = z ? O : void 0;
|
|
2160
|
+
let Ae;
|
|
2161
|
+
e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = {
|
|
2166
2162
|
h: "full"
|
|
2167
|
-
}, e[39] =
|
|
2163
|
+
}, e[39] = Ae) : Ae = e[39];
|
|
2168
2164
|
let be;
|
|
2169
|
-
e[40] !== se || e[41] !== h || e[42] !== le || e[43] !== f || e[44] !== l || e[45] !== c || e[46] !== n ? (be = /* @__PURE__ */ u(
|
|
2170
|
-
const
|
|
2165
|
+
e[40] !== se || e[41] !== h || e[42] !== le || e[43] !== f || e[44] !== l || e[45] !== c || e[46] !== n ? (be = /* @__PURE__ */ u(Ee, { viewportRef: S, size: "xs", h: "full", w: "max-content", maxW: "full", minW: "0", showVerticalScrollbar: !1, showHorizontalScrollbar: !0, contentProps: Ae, children: /* @__PURE__ */ u(Ll, { disabled: !1, workbench: n, placements: c, activeWidgetId: se, panelRegion: f, resource: l, eligibleSubPanels: h, leadingActions: le }) }), e[40] = se, e[41] = h, e[42] = le, e[43] = f, e[44] = l, e[45] = c, e[46] = n, e[47] = be) : be = e[47];
|
|
2166
|
+
const Me = z ? /* @__PURE__ */ u(oe.Root, { open: P, onOpenChange: (G) => I(G.open), positioning: {
|
|
2171
2167
|
placement: "bottom-start",
|
|
2172
2168
|
getAnchorRect: () => C,
|
|
2173
2169
|
offset: {
|
|
2174
2170
|
mainAxis: 0
|
|
2175
2171
|
}
|
|
2176
|
-
}, children: /* @__PURE__ */ u(
|
|
2177
|
-
let
|
|
2178
|
-
return e[48] !== se || e[49] !== V.Root || e[50] !== ce || e[51] !== te || e[52] !== Ce || e[53] !== be || e[54] !==
|
|
2172
|
+
}, children: /* @__PURE__ */ u(Xe, { children: /* @__PURE__ */ u(oe.Positioner, { children: /* @__PURE__ */ u(oe.Content, { minW: "220px", bg: "bg", children: B.map(Ul) }) }) }) }) : null;
|
|
2173
|
+
let We;
|
|
2174
|
+
return e[48] !== se || e[49] !== V.Root || e[50] !== ce || e[51] !== te || e[52] !== Ce || e[53] !== be || e[54] !== Me ? (We = /* @__PURE__ */ H(V.Root, { value: se, onValueChange: ce, variant: de, colorPalette: K, justify: J, size: te, alignSelf: ne, flex: fe, maxW: ie, minW: xe, h: _e, position: Ot, zIndex: zt, onContextMenu: Ce, children: [
|
|
2179
2175
|
be,
|
|
2180
|
-
|
|
2181
|
-
] }), e[48] = se, e[49] = V.Root, e[50] = ce, e[51] = te, e[52] = Ce, e[53] = be, e[54] =
|
|
2176
|
+
Me
|
|
2177
|
+
] }), e[48] = se, e[49] = V.Root, e[50] = ce, e[51] = te, e[52] = Ce, e[53] = be, e[54] = Me, e[55] = We) : We = e[55], We;
|
|
2182
2178
|
};
|
|
2183
|
-
function
|
|
2179
|
+
function jl() {
|
|
2184
2180
|
}
|
|
2185
|
-
function
|
|
2181
|
+
function Gl(t) {
|
|
2186
2182
|
return t.stopPropagation();
|
|
2187
2183
|
}
|
|
2188
|
-
function
|
|
2189
|
-
return /* @__PURE__ */ u(oe.Item, { value: t.key, asChild: !0, children: /* @__PURE__ */ u(
|
|
2184
|
+
function Ul(t) {
|
|
2185
|
+
return /* @__PURE__ */ u(oe.Item, { value: t.key, asChild: !0, children: /* @__PURE__ */ u(mt, { asChild: !0, variant: "full-width", label: t.label, icon: t.icon, endContent: t.endContent, disabled: t.isDisabled, onActivate: t.onClick }) }, t.key);
|
|
2190
2186
|
}
|
|
2191
2187
|
const Ql = (t, e) => {
|
|
2192
2188
|
if (t.columns) return t.columns;
|
|
@@ -2195,7 +2191,7 @@ const Ql = (t, e) => {
|
|
|
2195
2191
|
return n ? Object.keys(n.values).map((i) => ({
|
|
2196
2192
|
id: i
|
|
2197
2193
|
})) : [];
|
|
2198
|
-
},
|
|
2194
|
+
}, Zl = (t, e) => {
|
|
2199
2195
|
const n = /* @__PURE__ */ new WeakMap();
|
|
2200
2196
|
return {
|
|
2201
2197
|
data: t.map((o) => {
|
|
@@ -2224,22 +2220,22 @@ const Ql = (t, e) => {
|
|
|
2224
2220
|
o.onClick();
|
|
2225
2221
|
}
|
|
2226
2222
|
})) : [];
|
|
2227
|
-
},
|
|
2223
|
+
}, Xl = (t, e) => {
|
|
2228
2224
|
const n = ge(e.resource) ?? e.resource?.id ?? "unscoped";
|
|
2229
2225
|
return `pstdio:workbench:dataTableRenderer:${t}:${e.instanceId}:${n}`;
|
|
2230
|
-
},
|
|
2226
|
+
}, Jl = {
|
|
2231
2227
|
rows: []
|
|
2232
|
-
}, Lt = /* @__PURE__ */ new Map(),
|
|
2228
|
+
}, Lt = /* @__PURE__ */ new Map(), ea = (t, e) => `${t} ${ge(e.resource) ?? ""}`, ta = (t) => {
|
|
2233
2229
|
const e = k(86), {
|
|
2234
2230
|
workbench: n,
|
|
2235
2231
|
contribution: i,
|
|
2236
2232
|
placement: o
|
|
2237
2233
|
} = t, r = mn(n);
|
|
2238
2234
|
let s;
|
|
2239
|
-
e[0] !== i.id || e[1] !== o ? (s =
|
|
2235
|
+
e[0] !== i.id || e[1] !== o ? (s = ea(i.id, o), e[0] = i.id, e[1] = o, e[2] = s) : s = e[2];
|
|
2240
2236
|
const l = s;
|
|
2241
2237
|
let d;
|
|
2242
|
-
e[3] !== l ? (d = () => Lt.get(l) ??
|
|
2238
|
+
e[3] !== l ? (d = () => Lt.get(l) ?? Jl, e[3] = l, e[4] = d) : d = e[4];
|
|
2243
2239
|
const [a, c] = Q(d);
|
|
2244
2240
|
let m;
|
|
2245
2241
|
e[5] !== l ? (m = () => !Lt.has(l), e[5] = l, e[6] = m) : m = e[6];
|
|
@@ -2258,7 +2254,7 @@ const Ql = (t, e) => {
|
|
|
2258
2254
|
});
|
|
2259
2255
|
};
|
|
2260
2256
|
J();
|
|
2261
|
-
const te = i.subscribe?.(J), ne =
|
|
2257
|
+
const te = i.subscribe?.(J), ne = X(n).onDidRefreshDataTableRenderer((fe) => {
|
|
2262
2258
|
fe.dataTableRendererId === i.id && J();
|
|
2263
2259
|
});
|
|
2264
2260
|
return () => {
|
|
@@ -2269,22 +2265,22 @@ const Ql = (t, e) => {
|
|
|
2269
2265
|
e[13] !== i.columns || e[14] !== a ? (y = Ql(a, i.columns), e[13] = i.columns, e[14] = a, e[15] = y) : y = e[15];
|
|
2270
2266
|
const b = y;
|
|
2271
2267
|
let v;
|
|
2272
|
-
e[16] !== b || e[17] !== a.rows ? (v =
|
|
2268
|
+
e[16] !== b || e[17] !== a.rows ? (v = Zl(a.rows, b), e[16] = b, e[17] = a.rows, e[18] = v) : v = e[18];
|
|
2273
2269
|
const S = v;
|
|
2274
|
-
let
|
|
2275
|
-
e[19] !== b ? (
|
|
2276
|
-
const
|
|
2270
|
+
let P;
|
|
2271
|
+
e[19] !== b ? (P = Object.fromEntries(b.filter(na).map(oa)), e[19] = b, e[20] = P) : P = e[20];
|
|
2272
|
+
const I = P;
|
|
2277
2273
|
let x;
|
|
2278
|
-
e[21] !== b ? (x = Object.fromEntries(b.filter(
|
|
2274
|
+
e[21] !== b ? (x = Object.fromEntries(b.filter(ia).map(ra)), e[21] = b, e[22] = x) : x = e[22];
|
|
2279
2275
|
const C = x;
|
|
2280
2276
|
let R;
|
|
2281
|
-
e[23] !== b ? (R = Object.fromEntries(b.filter(
|
|
2277
|
+
e[23] !== b ? (R = Object.fromEntries(b.filter(sa).map(la)), e[23] = b, e[24] = R) : R = e[24];
|
|
2282
2278
|
const W = R;
|
|
2283
2279
|
let T;
|
|
2284
|
-
e[25] !== b ? (T = Object.fromEntries(b.filter(
|
|
2280
|
+
e[25] !== b ? (T = Object.fromEntries(b.filter(aa).map(ca)), e[25] = b, e[26] = T) : T = e[26];
|
|
2285
2281
|
const _ = T;
|
|
2286
2282
|
let N;
|
|
2287
|
-
e[27] !== b ? (N = Object.fromEntries(b.filter(
|
|
2283
|
+
e[27] !== b ? (N = Object.fromEntries(b.filter(da).map(ua)), e[27] = b, e[28] = N) : N = e[28];
|
|
2288
2284
|
const A = N;
|
|
2289
2285
|
let $;
|
|
2290
2286
|
e[29] !== i.rowActions ? ($ = i.rowActions ?? [], e[29] = i.rowActions, e[30] = $) : $ = e[30];
|
|
@@ -2311,28 +2307,28 @@ const Ql = (t, e) => {
|
|
|
2311
2307
|
let q;
|
|
2312
2308
|
e[41] !== i || e[42] !== S.rowByData ? (q = (K) => {
|
|
2313
2309
|
const J = S.rowByData.get(K);
|
|
2314
|
-
J && i.onRowActivate && Promise.resolve(i.onRowActivate(J)).catch(
|
|
2310
|
+
J && i.onRowActivate && Promise.resolve(i.onRowActivate(J)).catch(ma);
|
|
2315
2311
|
}, e[41] = i, e[42] = S.rowByData, e[43] = q) : q = e[43];
|
|
2316
2312
|
const re = q;
|
|
2317
2313
|
if (f) {
|
|
2318
2314
|
let K;
|
|
2319
|
-
e[44] !== i.columns ? (K = (i.columns ?? []).filter(
|
|
2315
|
+
e[44] !== i.columns ? (K = (i.columns ?? []).filter(fa).map(ha), e[44] = i.columns, e[45] = K) : K = e[45];
|
|
2320
2316
|
const J = K, te = J.length > 0 ? J : void 0;
|
|
2321
2317
|
let ne;
|
|
2322
|
-
return e[46] !== te ? (ne = /* @__PURE__ */ u(
|
|
2318
|
+
return e[46] !== te ? (ne = /* @__PURE__ */ u(Te, { h: "full", minH: "0", minW: "0", gap: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ u(or, { columns: te }) }), e[46] = te, e[47] = ne) : ne = e[47], ne;
|
|
2323
2319
|
}
|
|
2324
2320
|
if (a.rows.length === 0) {
|
|
2325
2321
|
const K = i.emptyTitle ?? "No rows";
|
|
2326
2322
|
let J;
|
|
2327
|
-
return e[48] !== i.emptyDescription || e[49] !== K ? (J = /* @__PURE__ */ u(
|
|
2323
|
+
return e[48] !== i.emptyDescription || e[49] !== K ? (J = /* @__PURE__ */ u(Be, { h: "full", title: K, description: i.emptyDescription }), e[48] = i.emptyDescription, e[49] = K, e[50] = J) : J = e[50], J;
|
|
2328
2324
|
}
|
|
2329
2325
|
const se = S.data;
|
|
2330
2326
|
let U;
|
|
2331
2327
|
e[51] !== S.rowByData ? (U = (K) => S.rowByData.get(K)?.id ?? "", e[51] = S.rowByData, e[52] = U) : U = e[52];
|
|
2332
2328
|
let j;
|
|
2333
|
-
e[53] !== i.id || e[54] !== o ? (j =
|
|
2329
|
+
e[53] !== i.id || e[54] !== o ? (j = Xl(i.id, o), e[53] = i.id, e[54] = o, e[55] = j) : j = e[55];
|
|
2334
2330
|
let ae;
|
|
2335
|
-
e[56] !== b ? (ae = b.filter(
|
|
2331
|
+
e[56] !== b ? (ae = b.filter(pa).map(ga), e[56] = b, e[57] = ae) : ae = e[57];
|
|
2336
2332
|
let le;
|
|
2337
2333
|
e[58] !== S.rowByData || e[59] !== r ? (le = (K) => Tn(K, S.rowByData, r), e[58] = S.rowByData, e[59] = r, e[60] = le) : le = e[60];
|
|
2338
2334
|
let V;
|
|
@@ -2340,56 +2336,56 @@ const Ql = (t, e) => {
|
|
|
2340
2336
|
let ce;
|
|
2341
2337
|
e[64] !== S.rowByData || e[65] !== r ? (ce = (K) => Tn(K.row, S.rowByData, r), e[64] = S.rowByData, e[65] = r, e[66] = ce) : ce = e[66];
|
|
2342
2338
|
let de;
|
|
2343
|
-
return e[67] !== i.initialPageSize || e[68] !== i.pageSizeOptions || e[69] !== i.selectionMode || e[70] !== C || e[71] !== W || e[72] !==
|
|
2339
|
+
return e[67] !== i.initialPageSize || e[68] !== i.pageSizeOptions || e[69] !== i.selectionMode || e[70] !== C || e[71] !== W || e[72] !== I || e[73] !== S.data || e[74] !== re || e[75] !== A || e[76] !== z || e[77] !== D || e[78] !== _ || e[79] !== U || e[80] !== j || e[81] !== ae || e[82] !== le || e[83] !== V || e[84] !== ce ? (de = /* @__PURE__ */ u(Te, { h: "full", minH: "0", minW: "0", gap: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ u(nr, { data: se, getRowId: U, toolbarStorageKey: j, compactHeaders: I, columnDescriptions: C, columnIcons: W, hiddenColumns: ae, columnStats: _, columnRenderers: A, initialPageSize: i.initialPageSize, pageSizeOptions: i.pageSizeOptions, selectionMode: i.selectionMode, selectionActions: D, rowActions: z, getRowActions: le, onRowClick: re, isRowInteractive: V, getCellContextMenuActions: ce, fullWidth: !0 }) }), e[67] = i.initialPageSize, e[68] = i.pageSizeOptions, e[69] = i.selectionMode, e[70] = C, e[71] = W, e[72] = I, e[73] = S.data, e[74] = re, e[75] = A, e[76] = z, e[77] = D, e[78] = _, e[79] = U, e[80] = j, e[81] = ae, e[82] = le, e[83] = V, e[84] = ce, e[85] = de) : de = e[85], de;
|
|
2344
2340
|
};
|
|
2345
|
-
function
|
|
2341
|
+
function na(t) {
|
|
2346
2342
|
return t.label;
|
|
2347
2343
|
}
|
|
2348
|
-
function
|
|
2344
|
+
function oa(t) {
|
|
2349
2345
|
return [t.id, t.label];
|
|
2350
2346
|
}
|
|
2351
|
-
function
|
|
2347
|
+
function ia(t) {
|
|
2352
2348
|
return t.description;
|
|
2353
2349
|
}
|
|
2354
|
-
function
|
|
2350
|
+
function ra(t) {
|
|
2355
2351
|
return [t.id, t.description];
|
|
2356
2352
|
}
|
|
2357
|
-
function
|
|
2353
|
+
function sa(t) {
|
|
2358
2354
|
return t.icon;
|
|
2359
2355
|
}
|
|
2360
|
-
function
|
|
2356
|
+
function la(t) {
|
|
2361
2357
|
return [t.id, t.icon];
|
|
2362
2358
|
}
|
|
2363
|
-
function
|
|
2359
|
+
function aa(t) {
|
|
2364
2360
|
return t.stat;
|
|
2365
2361
|
}
|
|
2366
|
-
function
|
|
2362
|
+
function ca(t) {
|
|
2367
2363
|
return [t.id, t.stat];
|
|
2368
2364
|
}
|
|
2369
|
-
function
|
|
2365
|
+
function da(t) {
|
|
2370
2366
|
return t.renderer;
|
|
2371
2367
|
}
|
|
2372
|
-
function
|
|
2368
|
+
function ua(t) {
|
|
2373
2369
|
return [t.id, t.renderer];
|
|
2374
2370
|
}
|
|
2375
|
-
function
|
|
2371
|
+
function ma() {
|
|
2376
2372
|
}
|
|
2377
|
-
function
|
|
2373
|
+
function fa(t) {
|
|
2378
2374
|
return !t.hidden;
|
|
2379
2375
|
}
|
|
2380
|
-
function
|
|
2376
|
+
function ha(t) {
|
|
2381
2377
|
return {
|
|
2382
2378
|
id: t.id,
|
|
2383
2379
|
label: t.label ?? t.id
|
|
2384
2380
|
};
|
|
2385
2381
|
}
|
|
2386
|
-
function
|
|
2382
|
+
function pa(t) {
|
|
2387
2383
|
return t.hidden;
|
|
2388
2384
|
}
|
|
2389
|
-
function
|
|
2385
|
+
function ga(t) {
|
|
2390
2386
|
return t.id;
|
|
2391
2387
|
}
|
|
2392
|
-
const
|
|
2388
|
+
const ba = [{
|
|
2393
2389
|
id: "true",
|
|
2394
2390
|
name: "On"
|
|
2395
2391
|
}, {
|
|
@@ -2401,7 +2397,7 @@ const ya = [{
|
|
|
2401
2397
|
}, _n = (t) => t.map((e) => ({
|
|
2402
2398
|
id: String(e),
|
|
2403
2399
|
name: wo(String(e))
|
|
2404
|
-
})),
|
|
2400
|
+
})), ya = (t) => {
|
|
2405
2401
|
const {
|
|
2406
2402
|
name: e,
|
|
2407
2403
|
schema: n
|
|
@@ -2421,7 +2417,7 @@ const ya = [{
|
|
|
2421
2417
|
...s,
|
|
2422
2418
|
type: "selection",
|
|
2423
2419
|
defaultValue: String(!!r),
|
|
2424
|
-
options:
|
|
2420
|
+
options: ba
|
|
2425
2421
|
};
|
|
2426
2422
|
if (n.type === "string")
|
|
2427
2423
|
return n.enum ? {
|
|
@@ -2445,7 +2441,7 @@ const ya = [{
|
|
|
2445
2441
|
options: _n(n.enum)
|
|
2446
2442
|
};
|
|
2447
2443
|
}
|
|
2448
|
-
},
|
|
2444
|
+
}, va = (t) => t.map(ya).filter((e) => e !== void 0), Sa = (t, e) => t.type === "boolean" ? e === "true" : t.type === "number" ? Number(e) : t.type === "array" ? Array.isArray(e) ? e.map(String) : [] : String(e), wa = (t) => typeof t == "string" ? {
|
|
2449
2445
|
name: t
|
|
2450
2446
|
} : t, Ia = (t) => {
|
|
2451
2447
|
const e = k(34), {
|
|
@@ -2470,7 +2466,7 @@ const ya = [{
|
|
|
2470
2466
|
const {
|
|
2471
2467
|
name: z,
|
|
2472
2468
|
label: M
|
|
2473
|
-
} =
|
|
2469
|
+
} = wa(B), O = n.getSchema(z);
|
|
2474
2470
|
O && p.push({
|
|
2475
2471
|
name: z,
|
|
2476
2472
|
label: M,
|
|
@@ -2478,21 +2474,21 @@ const ya = [{
|
|
|
2478
2474
|
value: n.getValue(z, h(O.scope))
|
|
2479
2475
|
});
|
|
2480
2476
|
}
|
|
2481
|
-
g =
|
|
2477
|
+
g = va(p), e[3] = i, e[4] = n, e[5] = h, e[6] = p, e[7] = g;
|
|
2482
2478
|
} else
|
|
2483
2479
|
p = e[6], g = e[7];
|
|
2484
2480
|
const w = g;
|
|
2485
2481
|
let y;
|
|
2486
|
-
e[8] !== p ? (y = new Map(p.map(
|
|
2482
|
+
e[8] !== p ? (y = new Map(p.map(Pa)), e[8] = p, e[9] = y) : y = e[9];
|
|
2487
2483
|
const b = y;
|
|
2488
2484
|
let v;
|
|
2489
2485
|
e[10] !== n || e[11] !== b || e[12] !== h ? (v = (B, z) => {
|
|
2490
2486
|
const M = b.get(B);
|
|
2491
|
-
M && n.setValue(B,
|
|
2487
|
+
M && n.setValue(B, Sa(M, z), h(M.scope));
|
|
2492
2488
|
}, e[10] = n, e[11] = b, e[12] = h, e[13] = v) : v = e[13];
|
|
2493
2489
|
const S = v;
|
|
2494
|
-
let
|
|
2495
|
-
e[14] !== s || e[15] !== S ? (
|
|
2490
|
+
let P;
|
|
2491
|
+
e[14] !== s || e[15] !== S ? (P = (B, z) => {
|
|
2496
2492
|
if (s === "apply") {
|
|
2497
2493
|
a((M) => ({
|
|
2498
2494
|
...M,
|
|
@@ -2501,61 +2497,61 @@ const ya = [{
|
|
|
2501
2497
|
return;
|
|
2502
2498
|
}
|
|
2503
2499
|
S(B, z);
|
|
2504
|
-
}, e[14] = s, e[15] = S, e[16] =
|
|
2505
|
-
const
|
|
2500
|
+
}, e[14] = s, e[15] = S, e[16] = P) : P = e[16];
|
|
2501
|
+
const I = P;
|
|
2506
2502
|
let x;
|
|
2507
2503
|
e[17] !== S || e[18] !== d ? (x = () => {
|
|
2508
2504
|
for (const [B, z] of Object.entries(d))
|
|
2509
2505
|
S(B, z);
|
|
2510
|
-
a({}), m(
|
|
2506
|
+
a({}), m(xa);
|
|
2511
2507
|
}, e[17] = S, e[18] = d, e[19] = x) : x = e[19];
|
|
2512
2508
|
const C = x;
|
|
2513
2509
|
let R;
|
|
2514
2510
|
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = () => {
|
|
2515
|
-
a({}), m(
|
|
2511
|
+
a({}), m(Ca);
|
|
2516
2512
|
}, e[20] = R) : R = e[20];
|
|
2517
2513
|
const W = R;
|
|
2518
2514
|
let T;
|
|
2519
2515
|
e[21] !== d ? (T = Object.keys(d), e[21] = d, e[22] = T) : T = e[22];
|
|
2520
2516
|
const _ = T.length > 0;
|
|
2521
2517
|
let N;
|
|
2522
|
-
e[23] !== c || e[24] !==
|
|
2518
|
+
e[23] !== c || e[24] !== I || e[25] !== w ? (N = /* @__PURE__ */ u(Un, { params: w, onChange: I, fullWidth: !0 }, c), e[23] = c, e[24] = I, e[25] = w, e[26] = N) : N = e[26];
|
|
2523
2519
|
let A;
|
|
2524
|
-
e[27] !== _ || e[28] !== s || e[29] !== C ? (A = s === "apply" && /* @__PURE__ */ H(
|
|
2525
|
-
/* @__PURE__ */ u(
|
|
2526
|
-
/* @__PURE__ */ u(
|
|
2520
|
+
e[27] !== _ || e[28] !== s || e[29] !== C ? (A = s === "apply" && /* @__PURE__ */ H(Re, { gap: "sm", children: [
|
|
2521
|
+
/* @__PURE__ */ u(ze, { size: "sm", onClick: C, disabled: !_, children: "Save" }),
|
|
2522
|
+
/* @__PURE__ */ u(ze, { size: "sm", variant: "outline", onClick: W, disabled: !_, children: "Discard" })
|
|
2527
2523
|
] }), e[27] = _, e[28] = s, e[29] = C, e[30] = A) : A = e[30];
|
|
2528
2524
|
let $;
|
|
2529
|
-
return e[31] !== N || e[32] !== A ? ($ = /* @__PURE__ */ H(
|
|
2525
|
+
return e[31] !== N || e[32] !== A ? ($ = /* @__PURE__ */ H(Te, { gap: "md", maxW: "640px", children: [
|
|
2530
2526
|
N,
|
|
2531
2527
|
A
|
|
2532
2528
|
] }), e[31] = N, e[32] = A, e[33] = $) : $ = e[33], $;
|
|
2533
2529
|
};
|
|
2534
|
-
function
|
|
2530
|
+
function Pa(t) {
|
|
2535
2531
|
return [t.name, t.schema];
|
|
2536
2532
|
}
|
|
2537
|
-
function
|
|
2533
|
+
function xa(t) {
|
|
2538
2534
|
return t + 1;
|
|
2539
2535
|
}
|
|
2540
|
-
function
|
|
2536
|
+
function Ca(t) {
|
|
2541
2537
|
return t + 1;
|
|
2542
2538
|
}
|
|
2543
2539
|
const Et = (t) => {
|
|
2544
2540
|
const e = [...new Set(t)];
|
|
2545
2541
|
if (e.length !== 0)
|
|
2546
2542
|
return e.length === 1 ? e[0] : e;
|
|
2547
|
-
},
|
|
2543
|
+
}, Io = (t) => {
|
|
2548
2544
|
if (t.resource) return ge(t.resource);
|
|
2549
|
-
},
|
|
2545
|
+
}, Po = (t, e) => t.flatMap((n) => [n, ...Po([...n.children ?? [], ...e[n.id] ?? []], e)]), Nt = (t, e) => t.flatMap((n) => Po(n.nodes, e)), ka = (t, e, n) => {
|
|
2550
2546
|
const i = Nt(t, e);
|
|
2551
2547
|
for (const o of n) {
|
|
2552
|
-
const r = i.filter((s) => s.id === o ||
|
|
2548
|
+
const r = i.filter((s) => s.id === o || Io(s) === o).map((s) => s.id);
|
|
2553
2549
|
if (r.length > 0) return Et(r);
|
|
2554
2550
|
}
|
|
2555
|
-
}, xo = (t, e, n) => Nt(t, n).find((i) => i.id === e), Ft = (t, e, n) => Et((typeof n == "string" ? [n] : n ?? []).filter((o) => xo(t, o, e))),
|
|
2551
|
+
}, xo = (t, e, n) => Nt(t, n).find((i) => i.id === e), Ft = (t, e, n) => Et((typeof n == "string" ? [n] : n ?? []).filter((o) => xo(t, o, e))), Ra = (t, e) => t.id === e.id && t.extensionId === e.extensionId, Co = (t, e, n) => t ? (t.kind === "compound" ? t.targets : [t]).some((o) => o.kind === "page" && Ra(o.page, e) && (o.resource ? n !== void 0 && ge(o.resource) === ge(n) : n === void 0)) : !1, Wa = (t, e, n, i) => {
|
|
2556
2552
|
if (n)
|
|
2557
2553
|
return Et(Nt(t, e).filter((o) => Co(o.target, n, i)).map((o) => o.id));
|
|
2558
|
-
},
|
|
2554
|
+
}, Ta = (t) => {
|
|
2559
2555
|
const {
|
|
2560
2556
|
sections: e,
|
|
2561
2557
|
childrenByNodeId: n,
|
|
@@ -2567,20 +2563,20 @@ const Et = (t) => {
|
|
|
2567
2563
|
if (i) return i;
|
|
2568
2564
|
const l = Et(Nt(e, n).filter((f) => f.selected).map((f) => f.id));
|
|
2569
2565
|
if (l) return l;
|
|
2570
|
-
const d =
|
|
2566
|
+
const d = zi(r);
|
|
2571
2567
|
let a;
|
|
2572
2568
|
if (s) {
|
|
2573
2569
|
const f = xo(e, s, n);
|
|
2574
|
-
if (a = f ?
|
|
2570
|
+
if (a = f ? Io(f) : void 0, a && d.includes(a) || o && Co(f?.target, o.page, o.resource))
|
|
2575
2571
|
return s;
|
|
2576
2572
|
}
|
|
2577
|
-
const c =
|
|
2573
|
+
const c = ka(e, n, d);
|
|
2578
2574
|
if (c) return c;
|
|
2579
|
-
const m =
|
|
2575
|
+
const m = Wa(e, n, o?.page, o?.resource);
|
|
2580
2576
|
if (m) return m;
|
|
2581
2577
|
if (s && !(d.length > 0 && a))
|
|
2582
2578
|
return s;
|
|
2583
|
-
},
|
|
2579
|
+
}, _a = (t) => t.inlineInput === void 0 && t.isContainer !== !0 && (t.children ?? []).length === 0, Aa = (t) => t.every((e) => e.nodes.every(_a)), ko = (t, e, n) => {
|
|
2584
2580
|
for (const i of t) {
|
|
2585
2581
|
if (i.id === e) return i;
|
|
2586
2582
|
const o = ko([...i.children ?? [], ...n[i.id] ?? []], e, n);
|
|
@@ -2593,10 +2589,10 @@ const Et = (t) => {
|
|
|
2593
2589
|
if (o) return o;
|
|
2594
2590
|
}
|
|
2595
2591
|
return null;
|
|
2596
|
-
},
|
|
2592
|
+
}, Ma = (t, e) => e ? /* @__PURE__ */ u(Ie, { content: e, openDelay: 300, children: /* @__PURE__ */ u(F, { as: "span", display: "inline-flex", alignItems: "center", justifyContent: "center", children: t }) }) : t, $a = (t) => {
|
|
2597
2593
|
let e;
|
|
2598
|
-
return t.iconElement !== void 0 ? e = t.iconElement : t.icon && (e = /* @__PURE__ */ u(L, { name: t.icon })), e === void 0 ? void 0 :
|
|
2599
|
-
},
|
|
2594
|
+
return t.iconElement !== void 0 ? e = t.iconElement : t.icon && (e = /* @__PURE__ */ u(L, { name: t.icon })), e === void 0 ? void 0 : Ma(e, t.iconTooltip);
|
|
2595
|
+
}, Ea = (t) => {
|
|
2600
2596
|
if (t.target) return {
|
|
2601
2597
|
id: "target",
|
|
2602
2598
|
payload: t.target
|
|
@@ -2605,21 +2601,21 @@ const Et = (t) => {
|
|
|
2605
2601
|
id: "resource",
|
|
2606
2602
|
payload: t.resource
|
|
2607
2603
|
};
|
|
2608
|
-
},
|
|
2604
|
+
}, Na = (t) => {
|
|
2609
2605
|
if (t.resource) return t.resource;
|
|
2610
|
-
},
|
|
2606
|
+
}, Oa = (t) => {
|
|
2611
2607
|
if (t)
|
|
2612
2608
|
return /* @__PURE__ */ u(F, { opacity: "0", pointerEvents: "none", display: "inline-flex", alignItems: "center", transition: "opacity 120ms ease", _groupHover: {
|
|
2613
2609
|
opacity: "1"
|
|
2614
|
-
}, children: /* @__PURE__ */ u(
|
|
2615
|
-
},
|
|
2610
|
+
}, children: /* @__PURE__ */ u(ut, { binding: t }) });
|
|
2611
|
+
}, za = (t, e, n) => {
|
|
2616
2612
|
if (t.endContent !== void 0) return t.endContent;
|
|
2617
|
-
const i =
|
|
2613
|
+
const i = Oa(n);
|
|
2618
2614
|
if (i) return i;
|
|
2619
2615
|
const o = e?.metadata?.diffAdditions, r = e?.metadata?.diffDeletions;
|
|
2620
2616
|
if (!(e?.type !== "workspace" || typeof o != "number" || typeof r != "number"))
|
|
2621
|
-
return /* @__PURE__ */ u(
|
|
2622
|
-
},
|
|
2617
|
+
return /* @__PURE__ */ u(ir, { additions: o, deletions: r, variant: "ghost", size: "small" });
|
|
2618
|
+
}, Ba = (t) => {
|
|
2623
2619
|
if (!(!t.emptyState || t.nodes.length > 0))
|
|
2624
2620
|
return {
|
|
2625
2621
|
id: `${t.id}:empty`,
|
|
@@ -2630,7 +2626,7 @@ const Et = (t) => {
|
|
|
2630
2626
|
rowVariant: "empty-state"
|
|
2631
2627
|
};
|
|
2632
2628
|
}, Ro = (t, e, n) => {
|
|
2633
|
-
const i =
|
|
2629
|
+
const i = Ea(t), o = Na(t), r = o ? {
|
|
2634
2630
|
resource: o
|
|
2635
2631
|
} : void 0, s = fo({
|
|
2636
2632
|
actions: t.contextMenuActions,
|
|
@@ -2645,7 +2641,7 @@ const Et = (t) => {
|
|
|
2645
2641
|
moveScope: t.moveScope,
|
|
2646
2642
|
label: t.label,
|
|
2647
2643
|
description: t.description,
|
|
2648
|
-
icon:
|
|
2644
|
+
icon: $a(t),
|
|
2649
2645
|
iconColor: t.iconColor,
|
|
2650
2646
|
disabled: t.disabled,
|
|
2651
2647
|
rowVariant: t.rowVariant,
|
|
@@ -2663,7 +2659,7 @@ const Et = (t) => {
|
|
|
2663
2659
|
onCommandError: n.onCommandError,
|
|
2664
2660
|
onRequestParams: n.onRequestParams
|
|
2665
2661
|
}),
|
|
2666
|
-
endContent:
|
|
2662
|
+
endContent: za(t, o, a),
|
|
2667
2663
|
menuItems: l,
|
|
2668
2664
|
contextMenuItems: s.length > 0 ? s : void 0,
|
|
2669
2665
|
...t.menuPlacement ? {
|
|
@@ -2675,7 +2671,7 @@ const Et = (t) => {
|
|
|
2675
2671
|
children: [...t.children ?? [], ...e[t.id] ?? []].map((m) => Ro(m, e, n))
|
|
2676
2672
|
};
|
|
2677
2673
|
}, Kt = (t, e, n) => {
|
|
2678
|
-
const i =
|
|
2674
|
+
const i = Ba(t);
|
|
2679
2675
|
return {
|
|
2680
2676
|
id: t.id,
|
|
2681
2677
|
moveScope: t.moveScope,
|
|
@@ -2692,7 +2688,7 @@ const Et = (t) => {
|
|
|
2692
2688
|
hiddenByDefault: t.hiddenByDefault,
|
|
2693
2689
|
nodes: i ? [i] : t.nodes.map((o) => Ro(o, e, n))
|
|
2694
2690
|
};
|
|
2695
|
-
},
|
|
2691
|
+
}, Ha = (t) => {
|
|
2696
2692
|
const e = k(10), {
|
|
2697
2693
|
request: n,
|
|
2698
2694
|
renderParamField: i,
|
|
@@ -2710,11 +2706,11 @@ const Et = (t) => {
|
|
|
2710
2706
|
}, e[2] = n, e[3] = d) : d = e[3];
|
|
2711
2707
|
let a;
|
|
2712
2708
|
return e[4] !== r || e[5] !== i || e[6] !== s || e[7] !== l || e[8] !== d ? (a = /* @__PURE__ */ u(so, { request: s, renderParamField: i, prepareArgs: l, onClose: r, onRun: d }), e[4] = r, e[5] = i, e[6] = s, e[7] = l, e[8] = d, e[9] = a) : a = e[9], a;
|
|
2713
|
-
},
|
|
2709
|
+
}, Da = ["70%", "50%", "82%", "60%", "44%", "76%"], Va = () => {
|
|
2714
2710
|
const t = k(1);
|
|
2715
2711
|
let e;
|
|
2716
|
-
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ u(
|
|
2717
|
-
},
|
|
2712
|
+
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ u(Te, { gap: "sm", px: "sm", py: "xs", "aria-hidden": !0, children: Da.map(Fa) }), t[0] = e) : e = t[0], e;
|
|
2713
|
+
}, La = (t) => {
|
|
2718
2714
|
const e = k(22), {
|
|
2719
2715
|
error: n,
|
|
2720
2716
|
loading: i,
|
|
@@ -2736,31 +2732,31 @@ const Et = (t) => {
|
|
|
2736
2732
|
onNavigate: v
|
|
2737
2733
|
} = t;
|
|
2738
2734
|
if (n) {
|
|
2739
|
-
let
|
|
2740
|
-
return e[0] !== n ? (
|
|
2735
|
+
let I;
|
|
2736
|
+
return e[0] !== n ? (I = /* @__PURE__ */ u(Be, { title: "Could not load files", description: n }), e[0] = n, e[1] = I) : I = e[1], I;
|
|
2741
2737
|
}
|
|
2742
2738
|
if (i)
|
|
2743
2739
|
return null;
|
|
2744
2740
|
if (o) {
|
|
2745
|
-
let
|
|
2746
|
-
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2741
|
+
let I;
|
|
2742
|
+
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ u(Va, {}), e[2] = I) : I = e[2], I;
|
|
2747
2743
|
}
|
|
2748
2744
|
if (r.length === 0 && (s?.length ?? 0) === 0 && !d) {
|
|
2749
|
-
let
|
|
2750
|
-
return e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2745
|
+
let I;
|
|
2746
|
+
return e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ u(Be, { minH: "12rem", title: "No tree items" }), e[3] = I) : I = e[3], I;
|
|
2751
2747
|
}
|
|
2752
2748
|
let S;
|
|
2753
|
-
e[4] !== r ? (S =
|
|
2754
|
-
let
|
|
2755
|
-
return e[6] !== a || e[7] !== s || e[8] !== y || e[9] !== l || e[10] !== c || e[11] !== m || e[12] !== b || e[13] !== v || e[14] !== w || e[15] !== g || e[16] !== p || e[17] !== h || e[18] !== f || e[19] !== r || e[20] !== S ? (
|
|
2749
|
+
e[4] !== r ? (S = Aa(r), e[4] = r, e[5] = S) : S = e[5];
|
|
2750
|
+
let P;
|
|
2751
|
+
return e[6] !== a || e[7] !== s || e[8] !== y || e[9] !== l || e[10] !== c || e[11] !== m || e[12] !== b || e[13] !== v || e[14] !== w || e[15] !== g || e[16] !== p || e[17] !== h || e[18] !== f || e[19] !== r || e[20] !== S ? (P = /* @__PURE__ */ u(Zt, { sections: r, backgroundContextActions: s, draggable: l, expandedNodeIds: c, expandedSectionIds: m, activeNodeId: a, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", virtualize: S, scrollRef: f, onToggleSection: h, onToggleNode: p, onReorderSections: g, onReorderNodes: w, canMove: y, onMoveNode: b, onNavigate: v }), e[6] = a, e[7] = s, e[8] = y, e[9] = l, e[10] = c, e[11] = m, e[12] = b, e[13] = v, e[14] = w, e[15] = g, e[16] = p, e[17] = h, e[18] = f, e[19] = r, e[20] = S, e[21] = P) : P = e[21], P;
|
|
2756
2752
|
};
|
|
2757
|
-
function
|
|
2758
|
-
return /* @__PURE__ */ u(
|
|
2753
|
+
function Fa(t, e) {
|
|
2754
|
+
return /* @__PURE__ */ u(Go, { height: "4", width: t, borderRadius: "xs" }, `${t}-${e}`);
|
|
2759
2755
|
}
|
|
2760
|
-
const
|
|
2756
|
+
const Ka = (t) => t.renderer.moveNode ? (e, n) => {
|
|
2761
2757
|
const i = Ct(t.sections, e, t.childrenByNodeId), o = n ? Ct(t.sections, n, t.childrenByNodeId) ?? void 0 : void 0;
|
|
2762
2758
|
if (!i || n && !o) return;
|
|
2763
|
-
const r =
|
|
2759
|
+
const r = X(t.workbench);
|
|
2764
2760
|
Promise.resolve(t.renderer.moveNode?.(i, o, {
|
|
2765
2761
|
resource: t.resource,
|
|
2766
2762
|
viewId: t.viewId,
|
|
@@ -2768,7 +2764,7 @@ const qa = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2768
2764
|
refresh: () => r.refresh(t.renderer.id),
|
|
2769
2765
|
setSelectedNode: (s) => r.setSelectedNode(t.renderer.id, s)
|
|
2770
2766
|
})).catch(t.onError);
|
|
2771
|
-
} : void 0,
|
|
2767
|
+
} : void 0, qa = (t) => (t.kind === "compound" ? t.targets : [t]).some((n) => n.kind === "page" || n.kind === "panel"), ja = (t) => {
|
|
2772
2768
|
const e = k(7), {
|
|
2773
2769
|
visible: n,
|
|
2774
2770
|
placeholder: i,
|
|
@@ -2782,8 +2778,8 @@ const qa = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2782
2778
|
let d;
|
|
2783
2779
|
e[1] !== r ? (d = (c) => r(c.target.value), e[1] = r, e[2] = d) : d = e[2];
|
|
2784
2780
|
let a;
|
|
2785
|
-
return e[3] !== s || e[4] !== d || e[5] !== o ? (a = /* @__PURE__ */ u(
|
|
2786
|
-
},
|
|
2781
|
+
return e[3] !== s || e[4] !== d || e[5] !== o ? (a = /* @__PURE__ */ u(He, { flexShrink: 0, borderBottomWidth: "1px", borderColor: "border.subtle", bg: "bg", children: /* @__PURE__ */ u(Uo, { startElement: l, width: "full", children: /* @__PURE__ */ u(Qo, { size: "sm", variant: "borderless", "aria-label": s, placeholder: s, value: o, onChange: d }) }) }), e[3] = s, e[4] = d, e[5] = o, e[6] = a) : a = e[6], a;
|
|
2782
|
+
}, Ga = (t, e, n) => n instanceof Error && n.message === `Tree renderer not registered: ${e}` && !t.getTreeRenderer(e), Ua = (t) => [...t.header.flatMap((e) => e.nodes), ...t.body.flatMap((e) => e.nodes), ...t.footer.flatMap((e) => e.nodes)], Qa = async (t, e, n, i, o = {}) => {
|
|
2787
2783
|
const r = new Set(i), s = /* @__PURE__ */ new Set(), l = {}, d = async (a) => {
|
|
2788
2784
|
await Promise.all(a.map(async (c) => {
|
|
2789
2785
|
if (!r.has(c.id) || s.has(c.id)) return;
|
|
@@ -2792,13 +2788,13 @@ const qa = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2792
2788
|
c.children || (l[c.id] = m), await d(m);
|
|
2793
2789
|
}));
|
|
2794
2790
|
};
|
|
2795
|
-
return await d(
|
|
2796
|
-
},
|
|
2791
|
+
return await d(Ua(n)), l;
|
|
2792
|
+
}, Za = (t, e) => t !== e, Ya = (t, e) => {
|
|
2797
2793
|
const n = t.getTreeRenderer(e);
|
|
2798
2794
|
if (n)
|
|
2799
2795
|
for (const i of n.defaultExpandedSectionIds ?? [])
|
|
2800
2796
|
t.setSectionExpanded(e, i, !0);
|
|
2801
|
-
},
|
|
2797
|
+
}, Xa = async (t, e, n = {}) => {
|
|
2802
2798
|
if (!t.getTreeRenderer(e)) return null;
|
|
2803
2799
|
try {
|
|
2804
2800
|
const [i, o, r] = await Promise.all([t.getHeader(e, n), t.getBody(e, n), t.getFooter(e, n)]);
|
|
@@ -2808,10 +2804,10 @@ const qa = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2808
2804
|
footer: r
|
|
2809
2805
|
};
|
|
2810
2806
|
} catch (i) {
|
|
2811
|
-
if (
|
|
2807
|
+
if (Ga(t, e, i)) return null;
|
|
2812
2808
|
throw i;
|
|
2813
2809
|
}
|
|
2814
|
-
},
|
|
2810
|
+
}, Ja = (t, e, n, i, o) => {
|
|
2815
2811
|
const r = k(18);
|
|
2816
2812
|
let s;
|
|
2817
2813
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = [], r[0] = s) : s = r[0];
|
|
@@ -2824,32 +2820,32 @@ const qa = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2824
2820
|
const [h, p] = Q(f);
|
|
2825
2821
|
let g;
|
|
2826
2822
|
r[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {}, r[3] = g) : g = r[3];
|
|
2827
|
-
const [w, y] = Q(g), [b, v] = Q(null), [S,
|
|
2823
|
+
const [w, y] = Q(g), [b, v] = Q(null), [S, P] = Q(!0), I = pe(null), x = pe(0);
|
|
2828
2824
|
let C, R;
|
|
2829
2825
|
r[4] !== o || r[5] !== n || r[6] !== e || r[7] !== i || r[8] !== t ? (C = () => {
|
|
2830
2826
|
let T = !1;
|
|
2831
|
-
Ya(
|
|
2827
|
+
Ya(X(t), e);
|
|
2832
2828
|
const _ = () => {
|
|
2833
2829
|
const A = x.current = x.current + 1;
|
|
2834
|
-
|
|
2830
|
+
Za(I.current, e) && P(!0), v(null), Xa(X(t), e, {
|
|
2835
2831
|
resource: n,
|
|
2836
2832
|
viewId: i,
|
|
2837
2833
|
filter: o
|
|
2838
2834
|
}).then(async ($) => {
|
|
2839
2835
|
if (T || A !== x.current)
|
|
2840
2836
|
return;
|
|
2841
|
-
const B =
|
|
2837
|
+
const B = X(t).getTreeRenderer(e), z = $ && B ? await Qa(X(t), e, $, X(t).getTreeState(e).expandedNodeIds, {
|
|
2842
2838
|
resource: n,
|
|
2843
2839
|
viewId: i,
|
|
2844
2840
|
filter: o
|
|
2845
2841
|
}) : {};
|
|
2846
|
-
T || A !== x.current || (
|
|
2842
|
+
T || A !== x.current || (I.current = e, d($?.header ?? []), m($?.body ?? []), p($?.footer ?? []), y(z), P(!1));
|
|
2847
2843
|
}).catch(($) => {
|
|
2848
|
-
T || A !== x.current || (v($ instanceof Error ? $.message : "The file tree could not be loaded."),
|
|
2844
|
+
T || A !== x.current || (v($ instanceof Error ? $.message : "The file tree could not be loaded."), P(!1));
|
|
2849
2845
|
});
|
|
2850
2846
|
};
|
|
2851
2847
|
_();
|
|
2852
|
-
const N =
|
|
2848
|
+
const N = X(t).onDidRefresh((A) => {
|
|
2853
2849
|
A.treeId === e && _();
|
|
2854
2850
|
});
|
|
2855
2851
|
return () => {
|
|
@@ -2866,23 +2862,23 @@ const qa = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2866
2862
|
loading: S,
|
|
2867
2863
|
setChildrenByNodeId: y
|
|
2868
2864
|
}, r[11] = c, r[12] = w, r[13] = b, r[14] = h, r[15] = l, r[16] = S, r[17] = W) : W = r[17], W;
|
|
2869
|
-
},
|
|
2870
|
-
if (!
|
|
2871
|
-
const o = t.hiddenByDefault === !0, r =
|
|
2865
|
+
}, Ve = (t, e) => typeof t == "string" ? t : e, ec = (t) => t.canHide === !0 || t.hiddenByDefault === !0, tc = (t, e) => t === "shown" ? e.hiddenIcon : e.visibleIcon, nc = (t, e, n, i) => {
|
|
2866
|
+
if (!ec(t)) return;
|
|
2867
|
+
const o = t.hiddenByDefault === !0, r = ai(e[t.id], o), s = Ve(t.label, t.id), l = t.contextMenuItems ?? [];
|
|
2872
2868
|
return {
|
|
2873
2869
|
id: `tree-visibility:${t.id}`,
|
|
2874
2870
|
label: r === "shown" ? `Hide ${s}` : `Show ${s}`,
|
|
2875
|
-
icon:
|
|
2871
|
+
icon: tc(r, i),
|
|
2876
2872
|
...l.length > 0 ? {
|
|
2877
2873
|
separatorBefore: !0
|
|
2878
2874
|
} : {},
|
|
2879
2875
|
onAction: () => n.onToggleNode(t.id, o)
|
|
2880
2876
|
};
|
|
2881
|
-
},
|
|
2877
|
+
}, oc = (t, e, n, i, o = !0) => {
|
|
2882
2878
|
if (!o) return t;
|
|
2883
2879
|
let r = !1;
|
|
2884
2880
|
const s = t.map((l) => {
|
|
2885
|
-
const d =
|
|
2881
|
+
const d = nc(l, e, n, i);
|
|
2886
2882
|
return d ? (r = !0, {
|
|
2887
2883
|
...l,
|
|
2888
2884
|
contextMenuItems: [...l.contextMenuItems ?? [], d]
|
|
@@ -2892,23 +2888,23 @@ const qa = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2892
2888
|
}, qt = (t, e, n, i, o) => {
|
|
2893
2889
|
let r = !1;
|
|
2894
2890
|
const s = t.map((l) => {
|
|
2895
|
-
const d =
|
|
2891
|
+
const d = oc(l.nodes, e, n, i, o);
|
|
2896
2892
|
return d === l.nodes ? l : (r = !0, {
|
|
2897
2893
|
...l,
|
|
2898
2894
|
nodes: d
|
|
2899
2895
|
});
|
|
2900
2896
|
});
|
|
2901
2897
|
return r ? s : t;
|
|
2902
|
-
},
|
|
2898
|
+
}, ic = (t, e, n, i) => {
|
|
2903
2899
|
const o = k(50);
|
|
2904
2900
|
let r;
|
|
2905
2901
|
o[0] !== i ? (r = i === void 0 ? {} : i, o[0] = i, o[1] = r) : r = o[1];
|
|
2906
|
-
const s = r, l =
|
|
2902
|
+
const s = r, l = it(t, rc), d = it(t, sc), a = it(t, lc), c = it(t, ac), m = it(t, cc), f = Oe(t, dc), h = Oe(t, uc), p = Oe(t, mc), g = Oe(t, fc), w = Oe(t, hc), y = Oe(t, pc), b = Oe(t, gc);
|
|
2907
2903
|
let v;
|
|
2908
2904
|
o[2] !== b || o[3] !== m ? (v = () => {
|
|
2909
2905
|
m(), b();
|
|
2910
2906
|
}, o[2] = b, o[3] = m, o[4] = v) : v = o[4];
|
|
2911
|
-
let S,
|
|
2907
|
+
let S, P, I, x, C, R, W, T, _;
|
|
2912
2908
|
if (o[5] !== n || o[6] !== h || o[7] !== d || o[8] !== s || o[9] !== e.footerSections || o[10] !== e.headerSections || o[11] !== e.sections || o[12] !== f || o[13] !== l || o[14] !== p || o[15] !== v || o[16] !== c || o[17] !== a) {
|
|
2913
2909
|
const z = {
|
|
2914
2910
|
onToggleSection: a,
|
|
@@ -2916,49 +2912,49 @@ const qa = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2916
2912
|
onResetAll: v
|
|
2917
2913
|
};
|
|
2918
2914
|
let M;
|
|
2919
|
-
o[27] !== e.footerSections || o[28] !== e.headerSections || o[29] !== e.sections ? (M = new Map([...e.headerSections.map(
|
|
2915
|
+
o[27] !== e.footerSections || o[28] !== e.headerSections || o[29] !== e.sections ? (M = new Map([...e.headerSections.map(bc), ...e.sections.map(yc), ...e.footerSections.map(vc)]), o[27] = e.footerSections, o[28] = e.headerSections, o[29] = e.sections, o[30] = M) : M = o[30], P = M;
|
|
2920
2916
|
const O = {
|
|
2921
2917
|
header: [],
|
|
2922
2918
|
content: [],
|
|
2923
2919
|
footer: []
|
|
2924
|
-
}, D =
|
|
2920
|
+
}, D = si([...e.headerSections, ...e.sections, ...e.footerSections], f, h);
|
|
2925
2921
|
for (const j of D) {
|
|
2926
|
-
const ae = p[j.id] ??
|
|
2922
|
+
const ae = p[j.id] ?? P.get(j.id) ?? "content";
|
|
2927
2923
|
O[ae].push(j);
|
|
2928
2924
|
}
|
|
2929
|
-
x = O.header, C = O.content,
|
|
2930
|
-
const q = s.suppressNodeContextMenus !== !0, re = qt(x, d, z, n, q), se = qt(C, d, z, n, q), U = qt(
|
|
2931
|
-
T = Ht(re, l, d), _ = Ht(se, l, d), W = Ht(U, l, d), S =
|
|
2925
|
+
x = O.header, C = O.content, I = O.footer;
|
|
2926
|
+
const q = s.suppressNodeContextMenus !== !0, re = qt(x, d, z, n, q), se = qt(C, d, z, n, q), U = qt(I, d, z, n, q);
|
|
2927
|
+
T = Ht(re, l, d), _ = Ht(se, l, d), W = Ht(U, l, d), S = li({
|
|
2932
2928
|
headerSections: x,
|
|
2933
2929
|
sections: C,
|
|
2934
|
-
footerSections:
|
|
2930
|
+
footerSections: I
|
|
2935
2931
|
}, l, d, z, n), R = JSON.stringify({
|
|
2936
|
-
header: x.map(
|
|
2937
|
-
main: C.map(
|
|
2938
|
-
footer:
|
|
2932
|
+
header: x.map(wc),
|
|
2933
|
+
main: C.map(Pc),
|
|
2934
|
+
footer: I.map(Cc),
|
|
2939
2935
|
sectionOverrides: l,
|
|
2940
2936
|
nodeOverrides: d,
|
|
2941
2937
|
sectionOrder: f,
|
|
2942
2938
|
nodeOrderBySection: h,
|
|
2943
2939
|
sectionSlotById: p
|
|
2944
|
-
}), o[5] = n, o[6] = h, o[7] = d, o[8] = s, o[9] = e.footerSections, o[10] = e.headerSections, o[11] = e.sections, o[12] = f, o[13] = l, o[14] = p, o[15] = v, o[16] = c, o[17] = a, o[18] = S, o[19] =
|
|
2940
|
+
}), o[5] = n, o[6] = h, o[7] = d, o[8] = s, o[9] = e.footerSections, o[10] = e.headerSections, o[11] = e.sections, o[12] = f, o[13] = l, o[14] = p, o[15] = v, o[16] = c, o[17] = a, o[18] = S, o[19] = P, o[20] = I, o[21] = x, o[22] = C, o[23] = R, o[24] = W, o[25] = T, o[26] = _;
|
|
2945
2941
|
} else
|
|
2946
|
-
S = o[18],
|
|
2942
|
+
S = o[18], P = o[19], I = o[20], x = o[21], C = o[22], R = o[23], W = o[24], T = o[25], _ = o[26];
|
|
2947
2943
|
const N = R;
|
|
2948
2944
|
let A;
|
|
2949
|
-
o[31] !==
|
|
2945
|
+
o[31] !== I || o[32] !== x || o[33] !== C || o[34] !== g ? (A = (z, M) => {
|
|
2950
2946
|
const O = {
|
|
2951
|
-
header: x.map(
|
|
2952
|
-
content: C.map(
|
|
2953
|
-
footer:
|
|
2947
|
+
header: x.map(kc),
|
|
2948
|
+
content: C.map(Rc),
|
|
2949
|
+
footer: I.map(Wc)
|
|
2954
2950
|
};
|
|
2955
2951
|
O[z] = M, g([...O.header, ...O.content, ...O.footer]);
|
|
2956
|
-
}, o[31] =
|
|
2952
|
+
}, o[31] = I, o[32] = x, o[33] = C, o[34] = g, o[35] = A) : A = o[35];
|
|
2957
2953
|
let $;
|
|
2958
|
-
o[36] !==
|
|
2959
|
-
const D = p[O] ??
|
|
2954
|
+
o[36] !== P || o[37] !== p || o[38] !== g || o[39] !== y ? ($ = (z, M, O) => {
|
|
2955
|
+
const D = p[O] ?? P.get(O) ?? "content";
|
|
2960
2956
|
y(M, D), g(z);
|
|
2961
|
-
}, o[36] =
|
|
2957
|
+
}, o[36] = P, o[37] = p, o[38] = g, o[39] = y, o[40] = $) : $ = o[40];
|
|
2962
2958
|
let B;
|
|
2963
2959
|
return o[41] !== S || o[42] !== N || o[43] !== w || o[44] !== A || o[45] !== $ || o[46] !== W || o[47] !== T || o[48] !== _ ? (B = {
|
|
2964
2960
|
visibleHeaderSections: T,
|
|
@@ -2971,68 +2967,71 @@ const qa = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2971
2967
|
onReorderNodes: w
|
|
2972
2968
|
}, o[41] = S, o[42] = N, o[43] = w, o[44] = A, o[45] = $, o[46] = W, o[47] = T, o[48] = _, o[49] = B) : B = o[49], B;
|
|
2973
2969
|
};
|
|
2974
|
-
function
|
|
2970
|
+
function rc(t) {
|
|
2975
2971
|
return t.sectionOverrides;
|
|
2976
2972
|
}
|
|
2977
|
-
function
|
|
2973
|
+
function sc(t) {
|
|
2978
2974
|
return t.nodeOverrides;
|
|
2979
2975
|
}
|
|
2980
|
-
function
|
|
2976
|
+
function lc(t) {
|
|
2981
2977
|
return t.toggleSection;
|
|
2982
2978
|
}
|
|
2983
|
-
function
|
|
2979
|
+
function ac(t) {
|
|
2984
2980
|
return t.toggleNode;
|
|
2985
2981
|
}
|
|
2986
|
-
function
|
|
2982
|
+
function cc(t) {
|
|
2987
2983
|
return t.reset;
|
|
2988
2984
|
}
|
|
2989
|
-
function
|
|
2985
|
+
function dc(t) {
|
|
2990
2986
|
return t.sectionOrder;
|
|
2991
2987
|
}
|
|
2992
|
-
function
|
|
2988
|
+
function uc(t) {
|
|
2993
2989
|
return t.nodeOrderBySection;
|
|
2994
2990
|
}
|
|
2995
|
-
function
|
|
2991
|
+
function mc(t) {
|
|
2996
2992
|
return t.sectionSlotById;
|
|
2997
2993
|
}
|
|
2998
|
-
function
|
|
2994
|
+
function fc(t) {
|
|
2999
2995
|
return t.setSectionOrder;
|
|
3000
2996
|
}
|
|
3001
|
-
function
|
|
2997
|
+
function hc(t) {
|
|
3002
2998
|
return t.setNodeOrder;
|
|
3003
2999
|
}
|
|
3004
|
-
function
|
|
3000
|
+
function pc(t) {
|
|
3005
3001
|
return t.setSectionSlot;
|
|
3006
3002
|
}
|
|
3007
|
-
function
|
|
3003
|
+
function gc(t) {
|
|
3008
3004
|
return t.reset;
|
|
3009
3005
|
}
|
|
3010
|
-
function
|
|
3006
|
+
function bc(t) {
|
|
3011
3007
|
return [t.id, "header"];
|
|
3012
3008
|
}
|
|
3013
|
-
function
|
|
3009
|
+
function yc(t) {
|
|
3014
3010
|
return [t.id, "content"];
|
|
3015
3011
|
}
|
|
3016
|
-
function
|
|
3012
|
+
function vc(t) {
|
|
3017
3013
|
return [t.id, "footer"];
|
|
3018
3014
|
}
|
|
3019
|
-
function
|
|
3020
|
-
return [t.id,
|
|
3015
|
+
function Sc(t) {
|
|
3016
|
+
return [t.id, Ve(t.label, t.id)];
|
|
3021
3017
|
}
|
|
3022
|
-
function
|
|
3023
|
-
return [t.id,
|
|
3018
|
+
function wc(t) {
|
|
3019
|
+
return [t.id, Ve(t.label, t.id), t.nodes.map(Sc)];
|
|
3024
3020
|
}
|
|
3025
3021
|
function Ic(t) {
|
|
3026
|
-
return [t.id,
|
|
3022
|
+
return [t.id, Ve(t.label, t.id)];
|
|
3023
|
+
}
|
|
3024
|
+
function Pc(t) {
|
|
3025
|
+
return [t.id, Ve(t.label, t.id), t.nodes.map(Ic)];
|
|
3027
3026
|
}
|
|
3028
3027
|
function xc(t) {
|
|
3029
|
-
return [t.id,
|
|
3028
|
+
return [t.id, Ve(t.label, t.id)];
|
|
3030
3029
|
}
|
|
3031
3030
|
function Cc(t) {
|
|
3032
|
-
return [t.id,
|
|
3031
|
+
return [t.id, Ve(t.label, t.id), t.nodes.map(xc)];
|
|
3033
3032
|
}
|
|
3034
3033
|
function kc(t) {
|
|
3035
|
-
return
|
|
3034
|
+
return t.id;
|
|
3036
3035
|
}
|
|
3037
3036
|
function Rc(t) {
|
|
3038
3037
|
return t.id;
|
|
@@ -3040,13 +3039,10 @@ function Rc(t) {
|
|
|
3040
3039
|
function Wc(t) {
|
|
3041
3040
|
return t.id;
|
|
3042
3041
|
}
|
|
3043
|
-
|
|
3044
|
-
return t.id;
|
|
3045
|
-
}
|
|
3046
|
-
const _c = {
|
|
3042
|
+
const Tc = {
|
|
3047
3043
|
expandedNodeIds: [],
|
|
3048
3044
|
expandedSectionIds: []
|
|
3049
|
-
},
|
|
3045
|
+
}, _c = (t, e) => t.find((n) => n.widgetId === e) ?? t[0], Ac = (t) => _c(t.regions.overlay.widgets, t.regions.overlay.activeWidgetId)?.resource ?? eo(t, "primary"), Mc = (t, e, n) => {
|
|
3050
3046
|
const i = pe(t);
|
|
3051
3047
|
i.current = t, ue(() => {
|
|
3052
3048
|
n?.(i.current);
|
|
@@ -3056,14 +3052,14 @@ const _c = {
|
|
|
3056
3052
|
}, jt = (t, e, n) => {
|
|
3057
3053
|
if (n?.id === "target") {
|
|
3058
3054
|
const i = n.payload;
|
|
3059
|
-
|
|
3055
|
+
qa(i) && X(t.workbench).setSelectedNode(t.treeViewId, e), t.workbench.navigation.openTarget(i).catch(t.onOpenResourceError);
|
|
3060
3056
|
return;
|
|
3061
3057
|
}
|
|
3062
|
-
},
|
|
3058
|
+
}, $c = (t) => (e) => {
|
|
3063
3059
|
const n = Ct(t.body, e, t.childrenByNodeId) ?? Ct([...t.header, ...t.footer], e, t.childrenByNodeId);
|
|
3064
3060
|
if (!n) return;
|
|
3065
3061
|
const i = t.expandedNodeIds.includes(e);
|
|
3066
|
-
|
|
3062
|
+
X(t.workbench).setNodeExpanded(t.treeViewId, e, !i), !(i || t.childrenByNodeId[e] || n.children) && X(t.workbench).getChildren(t.treeViewId, n, {
|
|
3067
3063
|
resource: t.resource,
|
|
3068
3064
|
viewId: t.viewId
|
|
3069
3065
|
}).then((o) => {
|
|
@@ -3082,23 +3078,23 @@ const _c = {
|
|
|
3082
3078
|
renderParamField: l,
|
|
3083
3079
|
onOpenResourceError: d,
|
|
3084
3080
|
onSidenavContextActionsChange: a
|
|
3085
|
-
} = t, c = pe(null), m =
|
|
3081
|
+
} = t, c = pe(null), m = X(n).getTreeRenderer(i), [f, h] = Q(""), p = E(X(n).treeStore, (Z) => Z.statesByTreeId[i]) ?? Tc, g = E(n.pages.store, Ec), w = E(n.pages.store, Nc), y = E(n.layout.store, Oc), {
|
|
3086
3082
|
body: b,
|
|
3087
3083
|
childrenByNodeId: v,
|
|
3088
3084
|
error: S,
|
|
3089
|
-
footer:
|
|
3090
|
-
header:
|
|
3085
|
+
footer: P,
|
|
3086
|
+
header: I,
|
|
3091
3087
|
loading: x,
|
|
3092
3088
|
setChildrenByNodeId: C
|
|
3093
|
-
} =
|
|
3089
|
+
} = Ja(n, i, r, s, m?.searchable && f.trim() || void 0), [R, W] = Q(null);
|
|
3094
3090
|
let T, _, N;
|
|
3095
|
-
if (e[0] !== b || e[1] !== v || e[2] !==
|
|
3096
|
-
const
|
|
3091
|
+
if (e[0] !== b || e[1] !== v || e[2] !== P || e[3] !== I || e[4] !== d || e[5] !== W || e[6] !== n) {
|
|
3092
|
+
const Z = {
|
|
3097
3093
|
workbench: n,
|
|
3098
3094
|
onCommandError: d,
|
|
3099
3095
|
onRequestParams: W
|
|
3100
3096
|
};
|
|
3101
|
-
_ = b.map((
|
|
3097
|
+
_ = b.map((Ne) => Kt(Ne, v, Z)), T = I.map((Ne) => Kt(Ne, v, Z)), N = P.map((Ne) => Kt(Ne, v, Z)), e[0] = b, e[1] = v, e[2] = P, e[3] = I, e[4] = d, e[5] = W, e[6] = n, e[7] = T, e[8] = _, e[9] = N;
|
|
3102
3098
|
} else
|
|
3103
3099
|
T = e[7], _ = e[8], N = e[9];
|
|
3104
3100
|
const A = N;
|
|
@@ -3128,31 +3124,31 @@ const _c = {
|
|
|
3128
3124
|
onReorderSections: U,
|
|
3129
3125
|
onReorderNodes: j,
|
|
3130
3126
|
onMoveSection: ae
|
|
3131
|
-
} =
|
|
3132
|
-
if (
|
|
3133
|
-
let
|
|
3134
|
-
return e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3127
|
+
} = ic(`${i}:${g ?? "global"}`, $, B, M);
|
|
3128
|
+
if (Mc(re, se, a), !m) {
|
|
3129
|
+
let Z;
|
|
3130
|
+
return e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ u(me, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Tree renderer is no longer registered." }), e[17] = Z) : Z = e[17], Z;
|
|
3135
3131
|
}
|
|
3136
3132
|
let le;
|
|
3137
|
-
e[18] !== b || e[19] !== v || e[20] !==
|
|
3133
|
+
e[18] !== b || e[19] !== v || e[20] !== P || e[21] !== I || e[22] !== r || e[23] !== C || e[24] !== p.expandedNodeIds || e[25] !== i || e[26] !== s || e[27] !== n ? (le = $c({
|
|
3138
3134
|
workbench: n,
|
|
3139
3135
|
treeViewId: i,
|
|
3140
3136
|
resource: r,
|
|
3141
3137
|
viewId: s,
|
|
3142
3138
|
body: b,
|
|
3143
|
-
header:
|
|
3144
|
-
footer:
|
|
3139
|
+
header: I,
|
|
3140
|
+
footer: P,
|
|
3145
3141
|
childrenByNodeId: v,
|
|
3146
3142
|
expandedNodeIds: p.expandedNodeIds,
|
|
3147
3143
|
setChildrenByNodeId: C
|
|
3148
|
-
}), e[18] = b, e[19] = v, e[20] =
|
|
3144
|
+
}), e[18] = b, e[19] = v, e[20] = P, e[21] = I, e[22] = r, e[23] = C, e[24] = p.expandedNodeIds, e[25] = i, e[26] = s, e[27] = n, e[28] = le) : le = e[28];
|
|
3149
3145
|
const V = le;
|
|
3150
3146
|
let ce;
|
|
3151
|
-
e[29] !== p.expandedSectionIds || e[30] !== i || e[31] !== n ? (ce = (
|
|
3152
|
-
const
|
|
3153
|
-
|
|
3147
|
+
e[29] !== p.expandedSectionIds || e[30] !== i || e[31] !== n ? (ce = (Z) => {
|
|
3148
|
+
const Ne = p.expandedSectionIds.includes(Z);
|
|
3149
|
+
X(n).setSectionExpanded(i, Z, !Ne);
|
|
3154
3150
|
}, e[29] = p.expandedSectionIds, e[30] = i, e[31] = n, e[32] = ce) : ce = e[32];
|
|
3155
|
-
const de = ce, K =
|
|
3151
|
+
const de = ce, K = Ka({
|
|
3156
3152
|
workbench: n,
|
|
3157
3153
|
renderer: m,
|
|
3158
3154
|
resource: r,
|
|
@@ -3169,34 +3165,34 @@ const _c = {
|
|
|
3169
3165
|
}, e[33] = d, e[34] = i, e[35] = n, e[36] = J) : J = e[36];
|
|
3170
3166
|
const te = J;
|
|
3171
3167
|
let ne, fe, ie;
|
|
3172
|
-
if (e[37] !== w || e[38] !== o || e[39] !== y || e[40] !== b || e[41] !== v || e[42] !==
|
|
3173
|
-
const
|
|
3174
|
-
sections: [...
|
|
3168
|
+
if (e[37] !== w || e[38] !== o || e[39] !== y || e[40] !== b || e[41] !== v || e[42] !== P || e[43] !== I || e[44] !== p.selectedNodeId) {
|
|
3169
|
+
const Z = Ta({
|
|
3170
|
+
sections: [...I, ...b, ...P],
|
|
3175
3171
|
childrenByNodeId: v,
|
|
3176
3172
|
activeNodeId: o,
|
|
3177
3173
|
activeLocation: w,
|
|
3178
3174
|
activeResource: y,
|
|
3179
3175
|
selectedNodeId: p.selectedNodeId
|
|
3180
3176
|
});
|
|
3181
|
-
fe = Ft(
|
|
3177
|
+
fe = Ft(I, v, Z), ne = Ft(b, v, Z), ie = Ft(P, v, Z), e[37] = w, e[38] = o, e[39] = y, e[40] = b, e[41] = v, e[42] = P, e[43] = I, e[44] = p.selectedNodeId, e[45] = ne, e[46] = fe, e[47] = ie;
|
|
3182
3178
|
} else
|
|
3183
3179
|
ne = e[45], fe = e[46], ie = e[47];
|
|
3184
3180
|
const xe = ie;
|
|
3185
|
-
let
|
|
3186
|
-
e[48] !== q || e[49] !== O || e[50] !== D ? (
|
|
3181
|
+
let _e;
|
|
3182
|
+
e[48] !== q || e[49] !== O || e[50] !== D ? (_e = [...O, ...D, ...q], e[48] = q, e[49] = O, e[50] = D, e[51] = _e) : _e = e[51];
|
|
3187
3183
|
const Ot = m.canMove, zt = m.title;
|
|
3188
3184
|
let Ce;
|
|
3189
|
-
e[52] !== fe || e[53] !== x || e[54] !== te || e[55] !== j || e[56] !== U || e[57] !== a || e[58] !== V || e[59] !== de || e[60] !== m.canMove || e[61] !== p.expandedNodeIds || e[62] !== p.expandedSectionIds || e[63] !== O ? (Ce = !x && O.length > 0 ? /* @__PURE__ */ u(he, { bg:
|
|
3190
|
-
const
|
|
3185
|
+
e[52] !== fe || e[53] !== x || e[54] !== te || e[55] !== j || e[56] !== U || e[57] !== a || e[58] !== V || e[59] !== de || e[60] !== m.canMove || e[61] !== p.expandedNodeIds || e[62] !== p.expandedSectionIds || e[63] !== O ? (Ce = !x && O.length > 0 ? /* @__PURE__ */ u(he, { bg: Y.sidenav, flexShrink: 0, children: /* @__PURE__ */ u(Zt, { sections: O, draggable: !!a, expandedNodeIds: p.expandedNodeIds, expandedSectionIds: p.expandedSectionIds, activeNodeId: fe, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", onToggleSection: de, onToggleNode: V, onReorderSections: (Z) => U("header", Z), onReorderNodes: j, canMove: m.canMove, onNavigate: (Z) => jt(te, Z.nodeId, Z.intent) }) }) : null, e[52] = fe, e[53] = x, e[54] = te, e[55] = j, e[56] = U, e[57] = a, e[58] = V, e[59] = de, e[60] = m.canMove, e[61] = p.expandedNodeIds, e[62] = p.expandedSectionIds, e[63] = O, e[64] = Ce) : Ce = e[64];
|
|
3186
|
+
const Ae = !x && !!m.searchable;
|
|
3191
3187
|
let be;
|
|
3192
|
-
e[65] !== f || e[66] !== h || e[67] !==
|
|
3193
|
-
let
|
|
3194
|
-
e[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3188
|
+
e[65] !== f || e[66] !== h || e[67] !== Ae || e[68] !== m.searchPlaceholder ? (be = /* @__PURE__ */ u(ja, { visible: Ae, placeholder: m.searchPlaceholder, value: f, onChange: h }), e[65] = f, e[66] = h, e[67] = Ae, e[68] = m.searchPlaceholder, e[69] = be) : be = e[69];
|
|
3189
|
+
let Me, We;
|
|
3190
|
+
e[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Me = {
|
|
3195
3191
|
display: "block",
|
|
3196
3192
|
style: {
|
|
3197
3193
|
overflowX: "hidden"
|
|
3198
3194
|
}
|
|
3199
|
-
},
|
|
3195
|
+
}, We = {
|
|
3200
3196
|
style: {
|
|
3201
3197
|
minWidth: "100%",
|
|
3202
3198
|
width: "100%",
|
|
@@ -3204,49 +3200,49 @@ const _c = {
|
|
|
3204
3200
|
display: "flex",
|
|
3205
3201
|
flexDirection: "column"
|
|
3206
3202
|
}
|
|
3207
|
-
}, e[70] =
|
|
3203
|
+
}, e[70] = Me, e[71] = We) : (Me = e[70], We = e[71]);
|
|
3208
3204
|
const G = p.loading, ee = a ? void 0 : re, ve = !!a, Bt = !!a;
|
|
3205
|
+
let Le;
|
|
3206
|
+
e[72] !== U ? (Le = (Z) => U("content", Z), e[72] = U, e[73] = Le) : Le = e[73];
|
|
3209
3207
|
let Fe;
|
|
3210
|
-
e[
|
|
3208
|
+
e[74] !== te ? (Fe = (Z) => jt(te, Z.nodeId, Z.intent), e[74] = te, e[75] = Fe) : Fe = e[75];
|
|
3211
3209
|
let Ke;
|
|
3212
|
-
e[
|
|
3210
|
+
e[76] !== ne || e[77] !== S || e[78] !== x || e[79] !== K || e[80] !== j || e[81] !== ee || e[82] !== ve || e[83] !== Bt || e[84] !== Le || e[85] !== Fe || e[86] !== V || e[87] !== de || e[88] !== m.canMove || e[89] !== p.expandedNodeIds || e[90] !== p.expandedSectionIds || e[91] !== p.loading || e[92] !== D ? (Ke = /* @__PURE__ */ u(Ee, { flex: "1", minH: "0", w: "full", viewportRef: c, viewportProps: Me, contentProps: We, children: /* @__PURE__ */ u(F, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: /* @__PURE__ */ u(La, { error: S, loading: x, moduleLoading: G, sections: D, backgroundContextActions: ee, draggable: ve, customizationAvailable: Bt, activeNodeId: ne, expandedNodeIds: p.expandedNodeIds, expandedSectionIds: p.expandedSectionIds, scrollRef: c, onToggleSection: de, onToggleNode: V, onReorderSections: Le, onReorderNodes: j, canMove: m.canMove, onMoveNode: K, onNavigate: Fe }) }) }), e[76] = ne, e[77] = S, e[78] = x, e[79] = K, e[80] = j, e[81] = ee, e[82] = ve, e[83] = Bt, e[84] = Le, e[85] = Fe, e[86] = V, e[87] = de, e[88] = m.canMove, e[89] = p.expandedNodeIds, e[90] = p.expandedSectionIds, e[91] = p.loading, e[92] = D, e[93] = Ke) : Ke = e[93];
|
|
3213
3211
|
let qe;
|
|
3214
|
-
e[
|
|
3212
|
+
e[94] !== xe || e[95] !== x || e[96] !== te || e[97] !== j || e[98] !== U || e[99] !== a || e[100] !== V || e[101] !== de || e[102] !== m.canMove || e[103] !== p.expandedNodeIds || e[104] !== p.expandedSectionIds || e[105] !== q ? (qe = !x && q.length > 0 ? /* @__PURE__ */ u(he, { bg: Y.sidenav, flexShrink: 0, children: /* @__PURE__ */ u(Zt, { sections: q, draggable: !!a, expandedNodeIds: p.expandedNodeIds, expandedSectionIds: p.expandedSectionIds, activeNodeId: xe, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", onToggleSection: de, onToggleNode: V, onReorderSections: (Z) => U("footer", Z), onReorderNodes: j, canMove: m.canMove, onNavigate: (Z) => jt(te, Z.nodeId, Z.intent) }) }) : null, e[94] = xe, e[95] = x, e[96] = te, e[97] = j, e[98] = U, e[99] = a, e[100] = V, e[101] = de, e[102] = m.canMove, e[103] = p.expandedNodeIds, e[104] = p.expandedSectionIds, e[105] = q, e[106] = qe) : qe = e[106];
|
|
3215
3213
|
let je;
|
|
3216
|
-
e[
|
|
3214
|
+
e[107] !== W ? (je = () => W(null), e[107] = W, e[108] = je) : je = e[108];
|
|
3217
3215
|
let Ge;
|
|
3218
|
-
e[
|
|
3216
|
+
e[109] !== R || e[110] !== l || e[111] !== je || e[112] !== n ? (Ge = /* @__PURE__ */ u(Ha, { request: R, renderParamField: l, workbench: n, onClose: je }), e[109] = R, e[110] = l, e[111] = je, e[112] = n, e[113] = Ge) : Ge = e[113];
|
|
3219
3217
|
let Ue;
|
|
3220
|
-
e[
|
|
3221
|
-
let Ze;
|
|
3222
|
-
e[114] !== Ce || e[115] !== be || e[116] !== qe || e[117] !== je || e[118] !== Ue || e[119] !== m.title ? (Ze = /* @__PURE__ */ H(he, { as: "section", direction: "column", h: "full", minH: "0", minW: "0", "aria-label": zt, children: [
|
|
3218
|
+
e[114] !== Ce || e[115] !== be || e[116] !== Ke || e[117] !== qe || e[118] !== Ge || e[119] !== m.title ? (Ue = /* @__PURE__ */ H(he, { as: "section", direction: "column", h: "full", minH: "0", minW: "0", "aria-label": zt, children: [
|
|
3223
3219
|
Ce,
|
|
3224
3220
|
be,
|
|
3221
|
+
Ke,
|
|
3225
3222
|
qe,
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
return e[121] !== ae || e[122] !== j || e[123] !== Ze || e[124] !== Ae || e[125] !== m.canMove ? (St = /* @__PURE__ */ u(di, { sections: Ae, canMove: Ot, onReorderSections: ae, onReorderNodes: j, children: Ze }), e[121] = ae, e[122] = j, e[123] = Ze, e[124] = Ae, e[125] = m.canMove, e[126] = St) : St = e[126], St;
|
|
3223
|
+
Ge
|
|
3224
|
+
] }), e[114] = Ce, e[115] = be, e[116] = Ke, e[117] = qe, e[118] = Ge, e[119] = m.title, e[120] = Ue) : Ue = e[120];
|
|
3225
|
+
let vt;
|
|
3226
|
+
return e[121] !== ae || e[122] !== j || e[123] !== Ue || e[124] !== _e || e[125] !== m.canMove ? (vt = /* @__PURE__ */ u(ci, { sections: _e, canMove: Ot, onReorderSections: ae, onReorderNodes: j, children: Ue }), e[121] = ae, e[122] = j, e[123] = Ue, e[124] = _e, e[125] = m.canMove, e[126] = vt) : vt = e[126], vt;
|
|
3231
3227
|
};
|
|
3232
|
-
function
|
|
3228
|
+
function Ec(t) {
|
|
3233
3229
|
return t.projectId;
|
|
3234
3230
|
}
|
|
3235
|
-
function
|
|
3231
|
+
function Nc(t) {
|
|
3236
3232
|
return t.location;
|
|
3237
3233
|
}
|
|
3238
|
-
function
|
|
3239
|
-
return
|
|
3234
|
+
function Oc(t) {
|
|
3235
|
+
return Ac(t.layout);
|
|
3240
3236
|
}
|
|
3241
3237
|
const To = (t) => {
|
|
3242
3238
|
const e = k(4);
|
|
3243
3239
|
let n, i, o;
|
|
3244
|
-
return e[0] !== t.store ? (n = (r) => t.store.subscribe(() => r()), i = () => t.store.getState().revision, o = () => t.store.getState().revision, e[0] = t.store, e[1] = n, e[2] = i, e[3] = o) : (n = e[1], i = e[2], o = e[3]),
|
|
3245
|
-
},
|
|
3240
|
+
return e[0] !== t.store ? (n = (r) => t.store.subscribe(() => r()), i = () => t.store.getState().revision, o = () => t.store.getState().revision, e[0] = t.store, e[1] = n, e[2] = i, e[3] = o) : (n = e[1], i = e[2], o = e[3]), Zn(n, i, o);
|
|
3241
|
+
}, dt = (t) => {
|
|
3246
3242
|
const e = k(2);
|
|
3247
3243
|
let n;
|
|
3248
3244
|
return e[0] !== t.children ? (n = /* @__PURE__ */ u(he, { h: "full", minH: "0", align: "center", justify: "center", p: "lg", children: t.children }), e[0] = t.children, e[1] = n) : n = e[1], n;
|
|
3249
|
-
},
|
|
3245
|
+
}, zc = (t) => {
|
|
3250
3246
|
const e = k(3);
|
|
3251
3247
|
let n;
|
|
3252
3248
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
@@ -3254,7 +3250,7 @@ const To = (t) => {
|
|
|
3254
3250
|
minH: "full"
|
|
3255
3251
|
}, e[0] = n) : n = e[0];
|
|
3256
3252
|
let i;
|
|
3257
|
-
return e[1] !== t.children ? (i = /* @__PURE__ */ u(
|
|
3253
|
+
return e[1] !== t.children ? (i = /* @__PURE__ */ u(Ee, { h: "full", minH: "0", contentProps: n, children: /* @__PURE__ */ u(F, { h: "full", minH: "full", children: t.children }) }), e[1] = t.children, e[2] = i) : i = e[2], i;
|
|
3258
3254
|
}, _o = (t) => {
|
|
3259
3255
|
const e = k(16), {
|
|
3260
3256
|
input: n,
|
|
@@ -3262,16 +3258,16 @@ const To = (t) => {
|
|
|
3262
3258
|
viewId: o
|
|
3263
3259
|
} = t;
|
|
3264
3260
|
let r;
|
|
3265
|
-
e[0] !== n.workbench ? (r =
|
|
3261
|
+
e[0] !== n.workbench ? (r = X(n.workbench), e[0] = n.workbench, e[1] = r) : r = e[1];
|
|
3266
3262
|
let s;
|
|
3267
3263
|
e[2] !== o ? (s = (h) => h.renderers[o], e[2] = o, e[3] = s) : s = e[3];
|
|
3268
3264
|
const l = E(r.store, s);
|
|
3269
3265
|
let d;
|
|
3270
|
-
e[4] !== n.workbench ? (d =
|
|
3266
|
+
e[4] !== n.workbench ? (d = X(n.workbench), e[4] = n.workbench, e[5] = d) : d = e[5];
|
|
3271
3267
|
let a;
|
|
3272
3268
|
if (e[6] !== o ? (a = (h) => h.refreshKeys[o] ?? 0, e[6] = o, e[7] = a) : a = e[7], E(d.store, a), !l) {
|
|
3273
3269
|
let h;
|
|
3274
|
-
return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ u(
|
|
3270
|
+
return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ u(dt, { children: /* @__PURE__ */ u(Be, { title: "Settings View not found" }) }), e[8] = h) : h = e[8], h;
|
|
3275
3271
|
}
|
|
3276
3272
|
let c;
|
|
3277
3273
|
e[9] !== n || e[10] !== i || e[11] !== l || e[12] !== o ? (c = l.render({
|
|
@@ -3284,8 +3280,8 @@ const To = (t) => {
|
|
|
3284
3280
|
}), e[9] = n, e[10] = i, e[11] = l, e[12] = o, e[13] = c) : c = e[13];
|
|
3285
3281
|
const m = c;
|
|
3286
3282
|
let f;
|
|
3287
|
-
return e[14] !== m ? (f = /* @__PURE__ */ u(
|
|
3288
|
-
},
|
|
3283
|
+
return e[14] !== m ? (f = /* @__PURE__ */ u(zc, { children: m }), e[14] = m, e[15] = f) : f = e[15], f;
|
|
3284
|
+
}, Bc = (t) => {
|
|
3289
3285
|
const e = k(15), {
|
|
3290
3286
|
panel: n,
|
|
3291
3287
|
itemId: i,
|
|
@@ -3314,11 +3310,11 @@ const To = (t) => {
|
|
|
3314
3310
|
let c;
|
|
3315
3311
|
if (e[5] !== i || e[6] !== n || e[7] !== r ? (c = [n, i, r], e[5] = i, e[6] = n, e[7] = r, e[8] = c) : c = e[8], ue(a, c), l.status === "loading") {
|
|
3316
3312
|
let f;
|
|
3317
|
-
return e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ u(
|
|
3313
|
+
return e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ u(dt, { children: /* @__PURE__ */ u(Zo, { size: "sm" }) }), e[9] = f) : f = e[9], f;
|
|
3318
3314
|
}
|
|
3319
3315
|
if (l.status === "missing") {
|
|
3320
3316
|
let f;
|
|
3321
|
-
return e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ u(
|
|
3317
|
+
return e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ u(dt, { children: /* @__PURE__ */ u(Be, { title: "Item not found" }) }), e[10] = f) : f = e[10], f;
|
|
3322
3318
|
}
|
|
3323
3319
|
let m;
|
|
3324
3320
|
return e[11] !== o || e[12] !== n.id || e[13] !== n.viewId ? (m = /* @__PURE__ */ u(_o, { input: o, panelId: n.id, viewId: n.viewId }), e[11] = o, e[12] = n.id, e[13] = n.viewId, e[14] = m) : m = e[14], m;
|
|
@@ -3333,7 +3329,7 @@ const To = (t) => {
|
|
|
3333
3329
|
const c = a;
|
|
3334
3330
|
if (!c) {
|
|
3335
3331
|
let b;
|
|
3336
|
-
return e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ u(
|
|
3332
|
+
return e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ u(dt, { children: /* @__PURE__ */ u(Be, { title: "Select a settings entry", description: "Pick an item from the settings sidenav." }) }), e[3] = b) : b = e[3], b;
|
|
3337
3333
|
}
|
|
3338
3334
|
if (c.kind === "view") {
|
|
3339
3335
|
let b;
|
|
@@ -3341,14 +3337,14 @@ const To = (t) => {
|
|
|
3341
3337
|
}
|
|
3342
3338
|
if (c.kind === "collection") {
|
|
3343
3339
|
if (!d) {
|
|
3344
|
-
let
|
|
3345
|
-
return e[8] !== c.title ? (
|
|
3340
|
+
let P;
|
|
3341
|
+
return e[8] !== c.title ? (P = /* @__PURE__ */ u(dt, { children: /* @__PURE__ */ u(Be, { title: c.title }) }), e[8] = c.title, e[9] = P) : P = e[9], P;
|
|
3346
3342
|
}
|
|
3347
3343
|
let b;
|
|
3348
3344
|
e[10] !== d || e[11] !== s ? (b = ge(s) ?? d, e[10] = d, e[11] = s, e[12] = b) : b = e[12];
|
|
3349
3345
|
const v = `${b}:${r}`;
|
|
3350
3346
|
let S;
|
|
3351
|
-
return e[13] !== n || e[14] !== d || e[15] !== c || e[16] !== v ? (S = /* @__PURE__ */ u(
|
|
3347
|
+
return e[13] !== n || e[14] !== d || e[15] !== c || e[16] !== v ? (S = /* @__PURE__ */ u(Bc, { panel: c, itemId: d, input: n }, v), e[13] = n, e[14] = d, e[15] = c, e[16] = v, e[17] = S) : S = e[17], S;
|
|
3352
3348
|
}
|
|
3353
3349
|
let m;
|
|
3354
3350
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
@@ -3362,7 +3358,7 @@ const To = (t) => {
|
|
|
3362
3358
|
let h;
|
|
3363
3359
|
e[21] !== c.description ? (h = c.description && /* @__PURE__ */ u(me, { textStyle: "paragraph/S/regular", color: "fg.muted", maxW: "640px", children: c.description }), e[21] = c.description, e[22] = h) : h = e[22];
|
|
3364
3360
|
let p;
|
|
3365
|
-
e[23] !== f || e[24] !== h ? (p = /* @__PURE__ */ H(
|
|
3361
|
+
e[23] !== f || e[24] !== h ? (p = /* @__PURE__ */ H(Te, { gap: "xs", children: [
|
|
3366
3362
|
f,
|
|
3367
3363
|
h
|
|
3368
3364
|
] }), e[23] = f, e[24] = h, e[25] = p) : p = e[25];
|
|
@@ -3370,11 +3366,11 @@ const To = (t) => {
|
|
|
3370
3366
|
let w;
|
|
3371
3367
|
e[26] !== n.workbench.preferences || e[27] !== c.preferences || e[28] !== o || e[29] !== g ? (w = /* @__PURE__ */ u(Ia, { preferences: n.workbench.preferences, names: c.preferences, resolveScopeId: o, mode: g }), e[26] = n.workbench.preferences, e[27] = c.preferences, e[28] = o, e[29] = g, e[30] = w) : w = e[30];
|
|
3372
3368
|
let y;
|
|
3373
|
-
return e[31] !== p || e[32] !== w ? (y = /* @__PURE__ */ H(
|
|
3369
|
+
return e[31] !== p || e[32] !== w ? (y = /* @__PURE__ */ H(Ee, { h: "full", minH: "0", contentProps: m, children: [
|
|
3374
3370
|
p,
|
|
3375
3371
|
w
|
|
3376
3372
|
] }), e[31] = p, e[32] = w, e[33] = y) : y = e[33], y;
|
|
3377
|
-
},
|
|
3373
|
+
}, Hc = (t) => {
|
|
3378
3374
|
const e = k(20), {
|
|
3379
3375
|
input: n,
|
|
3380
3376
|
settings: i,
|
|
@@ -3400,7 +3396,7 @@ const To = (t) => {
|
|
|
3400
3396
|
/* @__PURE__ */ u(me, { fontWeight: "semibold", textStyle: "sm", children: r })
|
|
3401
3397
|
] }), e[12] = r, e[13] = g) : g = e[13];
|
|
3402
3398
|
let w;
|
|
3403
|
-
e[14] !== h || e[15] !== m ? (w = /* @__PURE__ */ u(F, { flex: "1", minH: "0", minW: "0", position: "relative", overflow: "hidden", children: /* @__PURE__ */ u(
|
|
3399
|
+
e[14] !== h || e[15] !== m ? (w = /* @__PURE__ */ u(F, { flex: "1", minH: "0", minW: "0", position: "relative", overflow: "hidden", children: /* @__PURE__ */ u(ft, { position: "absolute", inset: "0", minH: "0", minW: "0", resizableSide: "left", resizablePanel: m, contentPanel: h, defaultSizePx: 280, minSizePx: 220, maxSizePx: 420, contentMinSizePx: 360, collapsible: !1, resizeLabel: "Resize settings navigation", separator: "line" }) }), e[14] = h, e[15] = m, e[16] = w) : w = e[16];
|
|
3404
3400
|
let y;
|
|
3405
3401
|
return e[17] !== g || e[18] !== w ? (y = /* @__PURE__ */ H(he, { direction: "column", position: "absolute", inset: "0", minH: "0", minW: "0", overflow: "hidden", children: [
|
|
3406
3402
|
g,
|
|
@@ -3423,7 +3419,7 @@ const To = (t) => {
|
|
|
3423
3419
|
panelId: t,
|
|
3424
3420
|
itemId: e.id
|
|
3425
3421
|
}
|
|
3426
|
-
}), No = (t, e) => (t ?? "project") !== "project" || e,
|
|
3422
|
+
}), No = (t, e) => (t ?? "project") !== "project" || e, lt = "settings", Oo = (t) => t?.map((e) => ({
|
|
3427
3423
|
id: e.id,
|
|
3428
3424
|
label: e.label,
|
|
3429
3425
|
icon: e.icon,
|
|
@@ -3448,13 +3444,13 @@ const To = (t) => {
|
|
|
3448
3444
|
}
|
|
3449
3445
|
}
|
|
3450
3446
|
};
|
|
3451
|
-
},
|
|
3447
|
+
}, Dc = (t, e) => {
|
|
3452
3448
|
const n = (i) => {
|
|
3453
3449
|
const o = e?.indexOf(i) ?? -1;
|
|
3454
3450
|
return o === -1 ? Number.POSITIVE_INFINITY : o;
|
|
3455
3451
|
};
|
|
3456
3452
|
return [...t].sort((i, o) => n(i) - n(o));
|
|
3457
|
-
},
|
|
3453
|
+
}, Vc = async (t) => {
|
|
3458
3454
|
const e = await Promise.resolve(t.items()).catch(() => []);
|
|
3459
3455
|
if (!t.groupBy) return e.map((o) => An(t, o));
|
|
3460
3456
|
const n = t.groupBy, i = /* @__PURE__ */ new Map();
|
|
@@ -3462,14 +3458,14 @@ const To = (t) => {
|
|
|
3462
3458
|
const r = n.key(o), s = i.get(r) ?? [];
|
|
3463
3459
|
s.push(o), i.set(r, s);
|
|
3464
3460
|
}
|
|
3465
|
-
return
|
|
3461
|
+
return Dc([...i.keys()], n.order).map((o) => ({
|
|
3466
3462
|
id: `${t.id}:group:${o}`,
|
|
3467
3463
|
label: n.label(o),
|
|
3468
3464
|
icon: n.icon?.(o),
|
|
3469
3465
|
collapsible: !0,
|
|
3470
3466
|
children: (i.get(o) ?? []).map((r) => An(t, r))
|
|
3471
3467
|
}));
|
|
3472
|
-
},
|
|
3468
|
+
}, Lc = async (t) => {
|
|
3473
3469
|
if (t.kind === "collection")
|
|
3474
3470
|
return {
|
|
3475
3471
|
id: `settings-collection:${t.id}`,
|
|
@@ -3477,7 +3473,7 @@ const To = (t) => {
|
|
|
3477
3473
|
icon: t.icon,
|
|
3478
3474
|
collapsible: !0,
|
|
3479
3475
|
actions: Oo(t.actions),
|
|
3480
|
-
children: await
|
|
3476
|
+
children: await Vc(t)
|
|
3481
3477
|
};
|
|
3482
3478
|
const e = $o(t);
|
|
3483
3479
|
return {
|
|
@@ -3493,18 +3489,18 @@ const To = (t) => {
|
|
|
3493
3489
|
}
|
|
3494
3490
|
}
|
|
3495
3491
|
};
|
|
3496
|
-
},
|
|
3492
|
+
}, Fc = async (t) => {
|
|
3497
3493
|
const {
|
|
3498
3494
|
settings: e,
|
|
3499
3495
|
hasProjectScope: n,
|
|
3500
3496
|
matchesWhen: i
|
|
3501
3497
|
} = t, o = e.listSections(), r = new Map(o.map((c) => [c.id, c])), s = e.listPanels().filter((c) => No(c.scope, n) && i(c.when)), l = /* @__PURE__ */ new Map();
|
|
3502
3498
|
for (const c of s) {
|
|
3503
|
-
const m = c.section && r.has(c.section) ? c.section :
|
|
3499
|
+
const m = c.section && r.has(c.section) ? c.section : lt, f = l.get(m) ?? [];
|
|
3504
3500
|
f.push(c), l.set(m, f);
|
|
3505
3501
|
}
|
|
3506
3502
|
const d = o.map((c) => c.id);
|
|
3507
|
-
l.has(
|
|
3503
|
+
l.has(lt) && !r.has(lt) && d.push(lt);
|
|
3508
3504
|
const a = [];
|
|
3509
3505
|
for (const c of d) {
|
|
3510
3506
|
const m = r.get(c);
|
|
@@ -3512,7 +3508,7 @@ const To = (t) => {
|
|
|
3512
3508
|
const f = l.get(c) ?? [], h = Oo(m?.actions);
|
|
3513
3509
|
if (f.length === 0 && !h) continue;
|
|
3514
3510
|
const p = [];
|
|
3515
|
-
for (const g of f) p.push(await
|
|
3511
|
+
for (const g of f) p.push(await Lc(g));
|
|
3516
3512
|
a.push({
|
|
3517
3513
|
id: c,
|
|
3518
3514
|
label: m?.title,
|
|
@@ -3522,7 +3518,7 @@ const To = (t) => {
|
|
|
3522
3518
|
});
|
|
3523
3519
|
}
|
|
3524
3520
|
return a;
|
|
3525
|
-
},
|
|
3521
|
+
}, Kc = "workbench.settings", It = "workbench.settings.nav", qc = "workbench.settings.panel", Pt = Kc, jc = (t) => {
|
|
3526
3522
|
const {
|
|
3527
3523
|
args: e,
|
|
3528
3524
|
ctx: n,
|
|
@@ -3533,23 +3529,23 @@ const To = (t) => {
|
|
|
3533
3529
|
id: s,
|
|
3534
3530
|
label: s
|
|
3535
3531
|
}) : $o(a);
|
|
3536
|
-
return n.overlays.openOverlay(
|
|
3532
|
+
return n.overlays.openOverlay(Pt, {
|
|
3537
3533
|
resource: c,
|
|
3538
3534
|
title: c.label
|
|
3539
3535
|
}), c;
|
|
3540
|
-
},
|
|
3536
|
+
}, km = (t = {}) => {
|
|
3541
3537
|
const e = t.title ?? "Settings", n = () => t.resolveScopeId?.("project") !== void 0;
|
|
3542
3538
|
return {
|
|
3543
3539
|
id: "workbench.settings.surface",
|
|
3544
3540
|
activate(i) {
|
|
3545
3541
|
i.views.registerView({
|
|
3546
|
-
id:
|
|
3542
|
+
id: It,
|
|
3547
3543
|
title: `${e} navigation`,
|
|
3548
3544
|
body: {
|
|
3549
3545
|
kind: "tree",
|
|
3550
3546
|
// Settings sections read as a single scannable list, so every section starts expanded.
|
|
3551
|
-
defaultExpandedSectionIds: [...i.settings.listSections().map((l) => l.id),
|
|
3552
|
-
getBody: () =>
|
|
3547
|
+
defaultExpandedSectionIds: [...i.settings.listSections().map((l) => l.id), lt],
|
|
3548
|
+
getBody: () => Fc({
|
|
3553
3549
|
settings: i.settings,
|
|
3554
3550
|
hasProjectScope: n(),
|
|
3555
3551
|
matchesWhen: (l) => i.context.matches(l)
|
|
@@ -3557,22 +3553,22 @@ const To = (t) => {
|
|
|
3557
3553
|
getChildren: () => []
|
|
3558
3554
|
}
|
|
3559
3555
|
}), i.views.registerView({
|
|
3560
|
-
id:
|
|
3556
|
+
id: qc,
|
|
3561
3557
|
title: e,
|
|
3562
3558
|
body: {
|
|
3563
3559
|
kind: "react",
|
|
3564
3560
|
render: (l) => /* @__PURE__ */ u(Ao, { input: l, settings: i.settings, resolveScopeId: t.resolveScopeId })
|
|
3565
3561
|
}
|
|
3566
3562
|
}), i.views.registerView({
|
|
3567
|
-
id:
|
|
3563
|
+
id: Pt,
|
|
3568
3564
|
title: e,
|
|
3569
3565
|
body: {
|
|
3570
3566
|
kind: "react",
|
|
3571
|
-
render: (l) => /* @__PURE__ */ u(
|
|
3567
|
+
render: (l) => /* @__PURE__ */ u(Hc, { input: l, settings: i.settings, navTreeId: It, title: e, resolveScopeId: t.resolveScopeId })
|
|
3572
3568
|
}
|
|
3573
3569
|
}), i.overlays.registerOverlay({
|
|
3574
|
-
id:
|
|
3575
|
-
viewId:
|
|
3570
|
+
id: Pt,
|
|
3571
|
+
viewId: Pt,
|
|
3576
3572
|
config: {
|
|
3577
3573
|
size: "xl",
|
|
3578
3574
|
scrollBehavior: "inside",
|
|
@@ -3589,16 +3585,16 @@ const To = (t) => {
|
|
|
3589
3585
|
id: gn,
|
|
3590
3586
|
label: "Open settings",
|
|
3591
3587
|
category: "Settings",
|
|
3592
|
-
icon:
|
|
3588
|
+
icon: Bi.settings
|
|
3593
3589
|
}, {
|
|
3594
|
-
execute: (l) =>
|
|
3590
|
+
execute: (l) => jc({
|
|
3595
3591
|
args: l,
|
|
3596
3592
|
ctx: i,
|
|
3597
3593
|
hasProjectScope: n
|
|
3598
3594
|
})
|
|
3599
3595
|
});
|
|
3600
3596
|
const o = () => {
|
|
3601
|
-
i.views.getView(
|
|
3597
|
+
i.views.getView(It) && i.views.refreshView(It);
|
|
3602
3598
|
}, r = i.settings.store.subscribe(o), s = i.context.store.subscribe(o);
|
|
3603
3599
|
return {
|
|
3604
3600
|
dispose() {
|
|
@@ -3607,28 +3603,28 @@ const To = (t) => {
|
|
|
3607
3603
|
};
|
|
3608
3604
|
}
|
|
3609
3605
|
};
|
|
3610
|
-
}, bn = (t, ...e) => e.every((n) => t.layout.getRegionCollapsible(n)), zo = 120,
|
|
3611
|
-
const e = [...t.attachedMenuMinSizes, t.targetMenuMinSize], n = zo + e.reduce((i, o) => i + o, 0) + e.length *
|
|
3606
|
+
}, bn = (t, ...e) => e.every((n) => t.layout.getRegionCollapsible(n)), zo = 120, Gc = 1, Uc = 480, Bo = (t) => t > 0 && t <= Uc, Qc = (t) => {
|
|
3607
|
+
const e = [...t.attachedMenuMinSizes, t.targetMenuMinSize], n = zo + e.reduce((i, o) => i + o, 0) + e.length * Gc;
|
|
3612
3608
|
return t.panelWidth >= n;
|
|
3613
3609
|
}, Gt = {
|
|
3614
3610
|
defaultPx: 280,
|
|
3615
3611
|
minPx: 144,
|
|
3616
3612
|
maxPx: 320
|
|
3617
|
-
},
|
|
3613
|
+
}, Zc = {
|
|
3618
3614
|
main: "Main",
|
|
3619
3615
|
secondary: "Secondary",
|
|
3620
3616
|
side: "Side"
|
|
3621
|
-
},
|
|
3617
|
+
}, Yc = (t) => ({
|
|
3622
3618
|
defaultPx: t?.defaultPx ?? Gt.defaultPx,
|
|
3623
3619
|
minPx: t?.minPx ?? Gt.minPx,
|
|
3624
3620
|
maxPx: t ? t.maxPx : Gt.maxPx
|
|
3625
|
-
}), Mn = (t, e) => `${
|
|
3626
|
-
const o = k(47), r = i === void 0 ? !1 : i, s = ln[e][n], l =
|
|
3621
|
+
}), Mn = (t, e) => `${Zc[t]} ${e} menu`, kt = (t, e, n, i) => {
|
|
3622
|
+
const o = k(47), r = i === void 0 ? !1 : i, s = ln[e][n], l = gt(t), d = ot(t), a = E(t.layout.store, ed), c = E(t.layout.store, td), m = a.regions[s];
|
|
3627
3623
|
let f, h;
|
|
3628
3624
|
if (o[0] !== m || o[1] !== a || o[2] !== l || o[3] !== d || o[4] !== e || o[5] !== c) {
|
|
3629
3625
|
const A = on(a, e, l, {
|
|
3630
3626
|
ignoreOwnerResourceKey: e === "side"
|
|
3631
|
-
}), $ =
|
|
3627
|
+
}), $ = ht(a);
|
|
3632
3628
|
f = {
|
|
3633
3629
|
...m,
|
|
3634
3630
|
widgets: m.widgets.filter((B) => {
|
|
@@ -3650,16 +3646,16 @@ const To = (t) => {
|
|
|
3650
3646
|
let v;
|
|
3651
3647
|
o[11] !== b ? (v = (A) => A.openByMenuId[b] ?? !0, o[11] = b, o[12] = v) : v = o[12];
|
|
3652
3648
|
const S = E(t.panelMenuState.store, v);
|
|
3653
|
-
let I;
|
|
3654
|
-
o[13] !== e || o[14] !== n ? (I = Mn(e, n), o[13] = e, o[14] = n, o[15] = I) : I = o[15];
|
|
3655
3649
|
let P;
|
|
3656
|
-
o[
|
|
3650
|
+
o[13] !== e || o[14] !== n ? (P = Mn(e, n), o[13] = e, o[14] = n, o[15] = P) : P = o[15];
|
|
3651
|
+
let I;
|
|
3652
|
+
o[16] !== e || o[17] !== n || o[18] !== g?.title ? (I = g?.title ?? Mn(e, n), o[16] = e, o[17] = n, o[18] = g?.title, o[19] = I) : I = o[19];
|
|
3657
3653
|
const x = g?.icon ?? (n === "left" ? "PanelLeft" : "PanelRight");
|
|
3658
3654
|
let C;
|
|
3659
3655
|
o[20] !== s || o[21] !== f.widgets.length || o[22] !== t.layout ? (C = f.widgets.length > 0 || !!t.layout.getPlaceholder(s), o[20] = s, o[21] = f.widgets.length, o[22] = t.layout, o[23] = C) : C = o[23];
|
|
3660
3656
|
const R = (!S || r) && y;
|
|
3661
3657
|
let W;
|
|
3662
|
-
o[24] !== s || o[25] !== t.layout ? (W =
|
|
3658
|
+
o[24] !== s || o[25] !== t.layout ? (W = Yc(t.layout.getRegionSize(s)), o[24] = s, o[25] = t.layout, o[26] = W) : W = o[26];
|
|
3663
3659
|
let T;
|
|
3664
3660
|
o[27] !== b || o[28] !== t.panelMenuState ? (T = () => t.panelMenuState.setOpen(b, !0), o[27] = b, o[28] = t.panelMenuState, o[29] = T) : T = o[29];
|
|
3665
3661
|
let _;
|
|
@@ -3667,11 +3663,11 @@ const To = (t) => {
|
|
|
3667
3663
|
(!A || y) && t.panelMenuState.setOpen(b, !A);
|
|
3668
3664
|
}, o[30] = y, o[31] = b, o[32] = t.panelMenuState, o[33] = _) : _ = o[33];
|
|
3669
3665
|
let N;
|
|
3670
|
-
return o[34] !== y || o[35] !== s || o[36] !== r || o[37] !== n || o[38] !== T || o[39] !== _ || o[40] !==
|
|
3666
|
+
return o[34] !== y || o[35] !== s || o[36] !== r || o[37] !== n || o[38] !== T || o[39] !== _ || o[40] !== P || o[41] !== I || o[42] !== x || o[43] !== C || o[44] !== R || o[45] !== W ? (N = {
|
|
3671
3667
|
region: s,
|
|
3672
3668
|
side: n,
|
|
3673
|
-
label:
|
|
3674
|
-
title:
|
|
3669
|
+
label: P,
|
|
3670
|
+
title: I,
|
|
3675
3671
|
icon: x,
|
|
3676
3672
|
has: C,
|
|
3677
3673
|
collapsed: R,
|
|
@@ -3680,34 +3676,34 @@ const To = (t) => {
|
|
|
3680
3676
|
size: W,
|
|
3681
3677
|
onOpen: T,
|
|
3682
3678
|
onCollapsedChange: _
|
|
3683
|
-
}, o[34] = y, o[35] = s, o[36] = r, o[37] = n, o[38] = T, o[39] = _, o[40] =
|
|
3684
|
-
},
|
|
3679
|
+
}, o[34] = y, o[35] = s, o[36] = r, o[37] = n, o[38] = T, o[39] = _, o[40] = P, o[41] = I, o[42] = x, o[43] = C, o[44] = R, o[45] = W, o[46] = N) : N = o[46], N;
|
|
3680
|
+
}, Xc = (t) => {
|
|
3685
3681
|
const e = k(11), {
|
|
3686
3682
|
view: n,
|
|
3687
3683
|
workbench: i
|
|
3688
3684
|
} = t;
|
|
3689
3685
|
let o;
|
|
3690
3686
|
e[0] !== n.region ? (o = n.region.split("-"), e[0] = n.region, e[1] = o) : o = e[1];
|
|
3691
|
-
const r = o[0], s = r === "side" ?
|
|
3687
|
+
const r = o[0], s = r === "side" ? Y.widget : Y.panel, l = `${r}-${n.side}`;
|
|
3692
3688
|
let d;
|
|
3693
|
-
e[2] !== n.label || e[3] !== n.region || e[4] !== i ? (d = /* @__PURE__ */ u(
|
|
3689
|
+
e[2] !== n.label || e[3] !== n.region || e[4] !== i ? (d = /* @__PURE__ */ u(Pe, { workbench: i, region: n.region, title: n.label, transparent: !0 }), e[2] = n.label, e[3] = n.region, e[4] = i, e[5] = d) : d = e[5];
|
|
3694
3690
|
let a;
|
|
3695
|
-
return e[6] !== s || e[7] !== l || e[8] !== d || e[9] !== n.region ? (a = /* @__PURE__ */ u(
|
|
3691
|
+
return e[6] !== s || e[7] !== l || e[8] !== d || e[9] !== n.region ? (a = /* @__PURE__ */ u(di, { "data-workbench-panel-menu": l, "data-workbench-region": n.region, bg: s, children: d }), e[6] = s, e[7] = l, e[8] = d, e[9] = n.region, e[10] = a) : a = e[10], a;
|
|
3696
3692
|
}, $n = (t) => {
|
|
3697
3693
|
const {
|
|
3698
3694
|
content: e,
|
|
3699
3695
|
view: n,
|
|
3700
3696
|
workbench: i
|
|
3701
3697
|
} = t;
|
|
3702
|
-
return n.has ? /* @__PURE__ */ u(
|
|
3698
|
+
return n.has ? /* @__PURE__ */ u(ft, { minH: "0", minW: "0", resizableSide: n.side, resizablePanel: /* @__PURE__ */ u(Xc, { workbench: i, view: n }), contentPanel: e, collapsed: n.collapsed, collapsible: n.collapsible, defaultSizePx: n.size.defaultPx, minSizePx: n.size.minPx, maxSizePx: n.size.maxPx, contentMinSizePx: zo, resizeLabel: `Resize ${n.label}`, separator: "line", onSizeChange: (o) => i.layout.setRegionSize(n.region, o), onCollapsedChange: n.onCollapsedChange }) : e;
|
|
3703
3699
|
}, yn = (t) => {
|
|
3704
3700
|
const e = k(7), {
|
|
3705
3701
|
children: n,
|
|
3706
3702
|
panel: i,
|
|
3707
3703
|
workbench: o
|
|
3708
|
-
} = t, r =
|
|
3704
|
+
} = t, r = Ho(i);
|
|
3709
3705
|
let s;
|
|
3710
|
-
e[0] !== r ? (s =
|
|
3706
|
+
e[0] !== r ? (s = Bo(r), e[0] = r, e[1] = s) : s = e[1];
|
|
3711
3707
|
const l = s, d = kt(o, i, "left", l), a = kt(o, i, "right", l);
|
|
3712
3708
|
let c;
|
|
3713
3709
|
if (e[2] !== n || e[3] !== d || e[4] !== a || e[5] !== o) {
|
|
@@ -3724,7 +3720,7 @@ const To = (t) => {
|
|
|
3724
3720
|
} else
|
|
3725
3721
|
c = e[6];
|
|
3726
3722
|
return c;
|
|
3727
|
-
},
|
|
3723
|
+
}, Ho = (t) => {
|
|
3728
3724
|
const e = k(3), [n, i] = Q(0);
|
|
3729
3725
|
let o, r;
|
|
3730
3726
|
return e[0] !== t ? (o = () => {
|
|
@@ -3754,9 +3750,9 @@ const To = (t) => {
|
|
|
3754
3750
|
let c;
|
|
3755
3751
|
e[2] !== a ? (c = /* @__PURE__ */ u(L, { name: a, size: 14 }), e[2] = a, e[3] = c) : c = e[3];
|
|
3756
3752
|
let m;
|
|
3757
|
-
e[4] !== d || e[5] !== c ? (m = /* @__PURE__ */ u(oe.Trigger, { asChild: !0, children: /* @__PURE__ */ u(we, { ref: r, variant: "ghost", size:
|
|
3753
|
+
e[4] !== d || e[5] !== c ? (m = /* @__PURE__ */ u(oe.Trigger, { asChild: !0, children: /* @__PURE__ */ u(we, { ref: r, variant: "ghost", size: Je, "aria-label": d, flexShrink: 0, children: c }) }), e[4] = d, e[5] = c, e[6] = m) : m = e[6];
|
|
3758
3754
|
let f;
|
|
3759
|
-
e[7] !== m || e[8] !== i.title ? (f = /* @__PURE__ */ u(
|
|
3755
|
+
e[7] !== m || e[8] !== i.title ? (f = /* @__PURE__ */ u(Ie, { content: i.title, children: m }), e[7] = m, e[8] = i.title, e[9] = f) : f = e[9];
|
|
3760
3756
|
const h = `${i.label} controls`;
|
|
3761
3757
|
let p;
|
|
3762
3758
|
e[10] !== i.icon ? (p = /* @__PURE__ */ u(L, { name: i.icon, size: 14 }), e[10] = i.icon, e[11] = p) : p = e[11];
|
|
@@ -3765,20 +3761,20 @@ const To = (t) => {
|
|
|
3765
3761
|
const w = n ? `Attach ${i.label}` : "Panel is too narrow to attach this menu", y = `Attach ${i.label}`, b = !n, v = i.side === "left" ? "PanelLeft" : "PanelRight";
|
|
3766
3762
|
let S;
|
|
3767
3763
|
e[14] !== v ? (S = /* @__PURE__ */ u(L, { name: v, size: 14 }), e[14] = v, e[15] = S) : S = e[15];
|
|
3768
|
-
let I;
|
|
3769
|
-
e[16] !== y || e[17] !== b || e[18] !== S || e[19] !== i.onOpen ? (I = /* @__PURE__ */ u(F, { as: "span", display: "inline-flex", children: /* @__PURE__ */ u(we, { variant: "ghost", size: "xs", "aria-label": y, disabled: b, onClick: i.onOpen, children: S }) }), e[16] = y, e[17] = b, e[18] = S, e[19] = i.onOpen, e[20] = I) : I = e[20];
|
|
3770
3764
|
let P;
|
|
3771
|
-
e[
|
|
3765
|
+
e[16] !== y || e[17] !== b || e[18] !== S || e[19] !== i.onOpen ? (P = /* @__PURE__ */ u(F, { as: "span", display: "inline-flex", children: /* @__PURE__ */ u(we, { variant: "ghost", size: "xs", "aria-label": y, disabled: b, onClick: i.onOpen, children: S }) }), e[16] = y, e[17] = b, e[18] = S, e[19] = i.onOpen, e[20] = P) : P = e[20];
|
|
3766
|
+
let I;
|
|
3767
|
+
e[21] !== w || e[22] !== P ? (I = /* @__PURE__ */ u(Ie, { content: w, children: P }), e[21] = w, e[22] = P, e[23] = I) : I = e[23];
|
|
3772
3768
|
let x;
|
|
3773
|
-
e[24] !==
|
|
3769
|
+
e[24] !== I || e[25] !== p || e[26] !== g ? (x = /* @__PURE__ */ H(He, { variant: "narrow", borderBottomWidth: "1px", borderColor: "border.subtle", flexShrink: 0, gap: "xs", children: [
|
|
3774
3770
|
p,
|
|
3775
3771
|
g,
|
|
3776
|
-
|
|
3777
|
-
] }), e[24] =
|
|
3772
|
+
I
|
|
3773
|
+
] }), e[24] = I, e[25] = p, e[26] = g, e[27] = x) : x = e[27];
|
|
3778
3774
|
let C;
|
|
3779
|
-
e[28] !== i.label || e[29] !== i.region || e[30] !== o ? (C = /* @__PURE__ */ u(F, { flex: "1", minH: "0", minW: "0", children: /* @__PURE__ */ u(
|
|
3775
|
+
e[28] !== i.label || e[29] !== i.region || e[30] !== o ? (C = /* @__PURE__ */ u(F, { flex: "1", minH: "0", minW: "0", children: /* @__PURE__ */ u(Pe, { workbench: o, region: i.region, title: i.label, transparent: !0 }) }), e[28] = i.label, e[29] = i.region, e[30] = o, e[31] = C) : C = e[31];
|
|
3780
3776
|
let R;
|
|
3781
|
-
e[32] !== x || e[33] !== C || e[34] !== h || e[35] !== i.region ? (R = /* @__PURE__ */ u(
|
|
3777
|
+
e[32] !== x || e[33] !== C || e[34] !== h || e[35] !== i.region ? (R = /* @__PURE__ */ u(Xe, { children: /* @__PURE__ */ u(oe.Positioner, { children: /* @__PURE__ */ H(oe.Content, { "aria-label": h, "data-workbench-panel-menu-controls": i.region, boxShadow: "none", display: "flex", flexDirection: "column", h: "64", maxW: "64", minW: "64", overflow: "hidden", p: "0", w: "64", children: [
|
|
3782
3778
|
x,
|
|
3783
3779
|
C
|
|
3784
3780
|
] }) }) }), e[32] = x, e[33] = C, e[34] = h, e[35] = i.region, e[36] = R) : R = e[36];
|
|
@@ -3791,9 +3787,9 @@ const To = (t) => {
|
|
|
3791
3787
|
const e = k(8), {
|
|
3792
3788
|
panel: n,
|
|
3793
3789
|
workbench: i
|
|
3794
|
-
} = t, o =
|
|
3790
|
+
} = t, o = Ho(n);
|
|
3795
3791
|
let r;
|
|
3796
|
-
e[0] !== o ? (r =
|
|
3792
|
+
e[0] !== o ? (r = Bo(o), e[0] = o, e[1] = r) : r = e[1];
|
|
3797
3793
|
const s = r, l = kt(i, n, "left", s), d = kt(i, n, "right", s);
|
|
3798
3794
|
let a, c;
|
|
3799
3795
|
if (e[2] !== l || e[3] !== o || e[4] !== d || e[5] !== i) {
|
|
@@ -3804,8 +3800,8 @@ const To = (t) => {
|
|
|
3804
3800
|
c = null;
|
|
3805
3801
|
break e;
|
|
3806
3802
|
}
|
|
3807
|
-
a = /* @__PURE__ */ u(
|
|
3808
|
-
const p = m.filter(od).map(id), g = !h.responsiveCollapsed &&
|
|
3803
|
+
a = /* @__PURE__ */ u(Re, { flexShrink: 0, gap: "2xs", minW: "0", children: f.map((h) => {
|
|
3804
|
+
const p = m.filter(od).map(id), g = !h.responsiveCollapsed && Qc({
|
|
3809
3805
|
panelWidth: o,
|
|
3810
3806
|
targetMenuMinSize: h.size.minPx,
|
|
3811
3807
|
attachedMenuMinSizes: p
|
|
@@ -3833,15 +3829,15 @@ function od(t) {
|
|
|
3833
3829
|
function id(t) {
|
|
3834
3830
|
return t.size.minPx;
|
|
3835
3831
|
}
|
|
3836
|
-
const
|
|
3832
|
+
const yt = (t, e) => {
|
|
3837
3833
|
const n = k(3);
|
|
3838
3834
|
let i;
|
|
3839
|
-
return n[0] !== e || n[1] !== t.layout ? (i = () => t.layout.getRegionSettings(e), n[0] = e, n[1] = t.layout, n[2] = i) : i = n[2], E(t.modes.store,
|
|
3835
|
+
return n[0] !== e || n[1] !== t.layout ? (i = () => t.layout.getRegionSettings(e), n[0] = e, n[1] = t.layout, n[2] = i) : i = n[2], E(t.modes.store, rr(i));
|
|
3840
3836
|
}, rd = (t) => t ? `calc(${t} + 0.75rem)` : "3", sd = (t) => t ? `calc(${t} + 1.5rem)` : "6", ld = () => {
|
|
3841
3837
|
const t = k(1);
|
|
3842
3838
|
let e;
|
|
3843
3839
|
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ u(F, { flex: "1", minW: "0", children: /* @__PURE__ */ u(me, { textStyle: "label/S/medium", color: "fg", truncate: !0, children: "Side Panel" }) }), t[0] = e) : e = t[0], e;
|
|
3844
|
-
},
|
|
3840
|
+
}, Do = (t) => {
|
|
3845
3841
|
const e = k(2), {
|
|
3846
3842
|
header: n
|
|
3847
3843
|
} = t;
|
|
@@ -3852,24 +3848,24 @@ const vt = (t, e) => {
|
|
|
3852
3848
|
workbench: n,
|
|
3853
3849
|
contentSlotRef: i,
|
|
3854
3850
|
header: o
|
|
3855
|
-
} = t, r =
|
|
3851
|
+
} = t, r = yt(n, "side");
|
|
3856
3852
|
let s;
|
|
3857
3853
|
e[0] !== n.sidePanel ? (s = () => n.sidePanel.canFloat(), e[0] = n.sidePanel, e[1] = s) : s = e[1];
|
|
3858
3854
|
const l = E(n.modes.store, s);
|
|
3859
3855
|
let d;
|
|
3860
|
-
e[2] !== l || e[3] !== o || e[4] !== r?.showHeader || e[5] !== n ? (d = r?.showHeader !== !1 && (o || l) ? /* @__PURE__ */ H(
|
|
3861
|
-
/* @__PURE__ */ u(
|
|
3856
|
+
e[2] !== l || e[3] !== o || e[4] !== r?.showHeader || e[5] !== n ? (d = r?.showHeader !== !1 && (o || l) ? /* @__PURE__ */ H(He, { "data-workbench-panel-header": "side", variant: "main", flexShrink: 0, gap: "sm", children: [
|
|
3857
|
+
/* @__PURE__ */ u(Do, { header: o }),
|
|
3862
3858
|
/* @__PURE__ */ u(vn, { workbench: n, panel: "side" }),
|
|
3863
|
-
l ? /* @__PURE__ */ u(
|
|
3859
|
+
l ? /* @__PURE__ */ u(Ie, { content: "Float Side Panel", children: /* @__PURE__ */ u(we, { size: Je, variant: "ghost", "aria-label": "Float Side Panel", onClick: () => n.sidePanel.setMode("floating"), children: /* @__PURE__ */ u(Ti, { size: 16 }) }) }) : null
|
|
3864
3860
|
] }) : void 0, e[2] = l, e[3] = o, e[4] = r?.showHeader, e[5] = n, e[6] = d) : d = e[6];
|
|
3865
3861
|
let a;
|
|
3866
3862
|
e[7] !== i ? (a = /* @__PURE__ */ u(he, { ref: i, flex: "1", minH: 0, direction: "column" }), e[7] = i, e[8] = a) : a = e[8];
|
|
3867
3863
|
let c;
|
|
3868
3864
|
e[9] !== a || e[10] !== n ? (c = /* @__PURE__ */ u(yn, { workbench: n, panel: "side", children: a }), e[9] = a, e[10] = n, e[11] = c) : c = e[11];
|
|
3869
3865
|
let m;
|
|
3870
|
-
e[12] !== d || e[13] !== c ? (m = /* @__PURE__ */ u(
|
|
3866
|
+
e[12] !== d || e[13] !== c ? (m = /* @__PURE__ */ u(ui, { "data-testid": "workbench-side-panel-attached", "data-workbench-panel": "side", "data-workbench-region": "side", width: "full", minWidth: "0", bg: Y.widget, layerStyle: "panel", header: d, children: c }), e[12] = d, e[13] = c, e[14] = m) : m = e[14];
|
|
3871
3867
|
let f;
|
|
3872
|
-
return e[15] !== m || e[16] !== n ? (f = /* @__PURE__ */ u(
|
|
3868
|
+
return e[15] !== m || e[16] !== n ? (f = /* @__PURE__ */ u(nt, { workbench: n, region: "side", h: "full", minH: "0", minW: "0", w: "full", children: m }), e[15] = m, e[16] = n, e[17] = f) : f = e[17], f;
|
|
3873
3869
|
}, cd = (t) => {
|
|
3874
3870
|
const e = k(30), {
|
|
3875
3871
|
workbench: n,
|
|
@@ -3891,25 +3887,25 @@ const vt = (t, e) => {
|
|
|
3891
3887
|
let b;
|
|
3892
3888
|
e[4] !== l || e[5] !== n.sidePanel ? (b = l ?? (() => n.sidePanel.setMode("floating")), e[4] = l, e[5] = n.sidePanel, e[6] = b) : b = e[6];
|
|
3893
3889
|
let v;
|
|
3894
|
-
e[7] !== s ? (v = s ?? /* @__PURE__ */ u(
|
|
3890
|
+
e[7] !== s ? (v = s ?? /* @__PURE__ */ u(_i, { size: 20, strokeWidth: 2 }), e[7] = s, e[8] = v) : v = e[8];
|
|
3895
3891
|
let S;
|
|
3896
|
-
return e[9] !== y || e[10] !== b || e[11] !== v ? (S = /* @__PURE__ */ u(
|
|
3892
|
+
return e[9] !== y || e[10] !== b || e[11] !== v ? (S = /* @__PURE__ */ u(mi, { "aria-label": "Open Side Panel", containerProps: y, tooltip: "Open Side Panel", onClick: b, children: v }), e[9] = y, e[10] = b, e[11] = v, e[12] = S) : S = e[12], S;
|
|
3897
3893
|
}
|
|
3898
3894
|
let a;
|
|
3899
3895
|
e[13] !== o ? (a = rd(o), e[13] = o, e[14] = a) : a = e[14];
|
|
3900
3896
|
let c;
|
|
3901
3897
|
e[15] !== a ? (c = {
|
|
3902
3898
|
bottom: a,
|
|
3903
|
-
bg:
|
|
3899
|
+
bg: Y.widget
|
|
3904
3900
|
}, e[15] = a, e[16] = c) : c = e[16];
|
|
3905
3901
|
let m, f;
|
|
3906
3902
|
e[17] !== n.sidePanel ? (m = () => n.sidePanel.setMode("closed"), f = () => n.sidePanel.setMode("attached"), e[17] = n.sidePanel, e[18] = m, e[19] = f) : (m = e[18], f = e[19]);
|
|
3907
3903
|
let h;
|
|
3908
|
-
e[20] !== r ? (h = /* @__PURE__ */ u(
|
|
3904
|
+
e[20] !== r ? (h = /* @__PURE__ */ u(Do, { header: r }), e[20] = r, e[21] = h) : h = e[21];
|
|
3909
3905
|
let p;
|
|
3910
3906
|
e[22] !== i ? (p = /* @__PURE__ */ u(he, { ref: i, flex: "1", minH: 0, direction: "column" }), e[22] = i, e[23] = p) : p = e[23];
|
|
3911
3907
|
let g;
|
|
3912
|
-
return e[24] !== c || e[25] !== m || e[26] !== f || e[27] !== h || e[28] !== p ? (g = /* @__PURE__ */ u(
|
|
3908
|
+
return e[24] !== c || e[25] !== m || e[26] !== f || e[27] !== h || e[28] !== p ? (g = /* @__PURE__ */ u(fi, { isOpen: !0, "aria-label": "Side Panel", testId: "workbench-side-panel-floating", closeLabel: "Close Side Panel", containerProps: c, popOutLabel: "Reattach Side Panel", onClose: m, onPopOut: f, menu: h, children: p }), e[24] = c, e[25] = m, e[26] = f, e[27] = h, e[28] = p, e[29] = g) : g = e[29], g;
|
|
3913
3909
|
}, en = (t, e) => JSON.stringify([t, e]), dd = (t) => {
|
|
3914
3910
|
const e = t?.metadata?.workspacePath;
|
|
3915
3911
|
return typeof e == "string" && e.length > 0 ? e : void 0;
|
|
@@ -3979,11 +3975,11 @@ const vt = (t, e) => {
|
|
|
3979
3975
|
label: d
|
|
3980
3976
|
}
|
|
3981
3977
|
});
|
|
3982
|
-
}, [s, d, e.instanceId, n.layout, c]), n.terminal.isAvailable() ? /* @__PURE__ */ u(F, { h: "full", minH: "0", minW: "0", w: "full", children: /* @__PURE__ */ u(
|
|
3983
|
-
},
|
|
3978
|
+
}, [s, d, e.instanceId, n.layout, c]), n.terminal.isAvailable() ? /* @__PURE__ */ u(F, { h: "full", minH: "0", minW: "0", w: "full", children: /* @__PURE__ */ u(sr, { bridge: r, theme: /dark/i.test(i) ? "dark" : "light", autoFocus: a, killOnUnmount: !1, onSessionOpen: l }) }) : /* @__PURE__ */ u(tn, { h: "full", px: "md", children: /* @__PURE__ */ u(me, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Terminal sessions are not available in this workbench host." }) });
|
|
3979
|
+
}, $e = "workbench.terminal", En = "workbench.terminal.open", Rm = {
|
|
3984
3980
|
defaultPx: 240,
|
|
3985
3981
|
minPx: 128
|
|
3986
|
-
}, hd = (t) => new Set(t.layout.listPanelInstances("secondary").filter((e) => e.viewId ===
|
|
3982
|
+
}, hd = (t) => new Set(t.layout.listPanelInstances("secondary").filter((e) => e.viewId === $e).map((e) => e.instanceId)), pd = (t) => {
|
|
3987
3983
|
let e = !1;
|
|
3988
3984
|
const n = t.layout.onWillChangePersistenceScope(() => {
|
|
3989
3985
|
e = !0;
|
|
@@ -3991,7 +3987,7 @@ const vt = (t, e) => {
|
|
|
3991
3987
|
e = !1;
|
|
3992
3988
|
}), o = t.layout.store.subscribe((r, s) => {
|
|
3993
3989
|
if (e) return;
|
|
3994
|
-
const l = new Set(r.layout.regions.secondary.widgets.filter((c) => c.viewId ===
|
|
3990
|
+
const l = new Set(r.layout.regions.secondary.widgets.filter((c) => c.viewId === $e).map((c) => c.widgetId)), d = s.layout.regions.secondary.widgets.filter((c) => c.viewId === $e).map((c) => c.widgetId), a = t.layout.getPersistenceScope();
|
|
3995
3991
|
for (const c of d)
|
|
3996
3992
|
l.has(c) || t.terminal.killBinding(en(a, c));
|
|
3997
3993
|
});
|
|
@@ -4003,8 +3999,8 @@ const vt = (t, e) => {
|
|
|
4003
3999
|
t.terminal.killBinding(en(r, s));
|
|
4004
4000
|
}
|
|
4005
4001
|
};
|
|
4006
|
-
},
|
|
4007
|
-
const e = t.layout.getLayout().regions.secondary.widgets.filter((i) => i.viewId ===
|
|
4002
|
+
}, Vo = /^Terminal (\d+)$/, Nn = /* @__PURE__ */ new WeakMap(), gd = (t) => {
|
|
4003
|
+
const e = t.layout.getLayout().regions.secondary.widgets.filter((i) => i.viewId === $e), n = e.map((i) => Vo.exec(i.title ?? "")?.[1]).filter((i) => i !== void 0).map((i) => Number.parseInt(i, 10));
|
|
4008
4004
|
return Math.max(e.length, ...n) + 1;
|
|
4009
4005
|
}, bd = (t) => {
|
|
4010
4006
|
const e = Math.max(Nn.get(t.layout.store) ?? 1, gd(t));
|
|
@@ -4015,14 +4011,14 @@ const vt = (t, e) => {
|
|
|
4015
4011
|
}, vd = (t, e = {}) => {
|
|
4016
4012
|
const {
|
|
4017
4013
|
reveal: n = !0
|
|
4018
|
-
} = e, i = yd(t, e.resource), o = bd(t), r = Number.parseInt(
|
|
4014
|
+
} = e, i = yd(t, e.resource), o = bd(t), r = Number.parseInt(Vo.exec(o)?.[1] ?? "1", 10), l = {
|
|
4019
4015
|
type: "terminal",
|
|
4020
4016
|
id: `${String(r).padStart(8, "0")}-${globalThis.crypto.randomUUID()}`,
|
|
4021
4017
|
label: o,
|
|
4022
4018
|
icon: "SquareTerminal",
|
|
4023
4019
|
metadata: i?.metadata
|
|
4024
4020
|
}, d = t.shellPlacements.openPlacement({
|
|
4025
|
-
placementId:
|
|
4021
|
+
placementId: $e,
|
|
4026
4022
|
resource: l,
|
|
4027
4023
|
open: "pin",
|
|
4028
4024
|
title: o
|
|
@@ -4032,18 +4028,18 @@ const vt = (t, e) => {
|
|
|
4032
4028
|
const a = t.layout.getLayout().regions.secondary.widgets.find((c) => c.placementIdentity?.kind === "shell" && c.placementIdentity.placementId === d.placementId && c.placementIdentity.instanceKey === d.instanceKey);
|
|
4033
4029
|
if (!a) throw new Error(`Terminal placement did not open: ${d.instanceKey}`);
|
|
4034
4030
|
return Tt(a);
|
|
4035
|
-
},
|
|
4031
|
+
}, Wm = () => ({
|
|
4036
4032
|
id: "workbench.terminal.surface",
|
|
4037
4033
|
activate(t) {
|
|
4038
4034
|
return [t.views.registerView({
|
|
4039
|
-
id:
|
|
4035
|
+
id: $e,
|
|
4040
4036
|
title: "Terminal",
|
|
4041
4037
|
body: {
|
|
4042
4038
|
kind: "react",
|
|
4043
4039
|
render: (n) => /* @__PURE__ */ u(fd, { placement: n.instance, workbench: n.workbench })
|
|
4044
4040
|
}
|
|
4045
4041
|
}), t.shellPlacements.registerPlacement({
|
|
4046
|
-
id:
|
|
4042
|
+
id: $e,
|
|
4047
4043
|
item: {
|
|
4048
4044
|
kind: "binding",
|
|
4049
4045
|
binding: {
|
|
@@ -4053,7 +4049,7 @@ const vt = (t, e) => {
|
|
|
4053
4049
|
}],
|
|
4054
4050
|
view: {
|
|
4055
4051
|
kind: "view",
|
|
4056
|
-
id:
|
|
4052
|
+
id: $e
|
|
4057
4053
|
},
|
|
4058
4054
|
cardinality: "many",
|
|
4059
4055
|
add: {
|
|
@@ -4086,27 +4082,27 @@ const vt = (t, e) => {
|
|
|
4086
4082
|
}), Sd = (t) => {
|
|
4087
4083
|
const e = k(2), n = E(t.themes.store, wd);
|
|
4088
4084
|
let i;
|
|
4089
|
-
return e[0] !== n ? (i = [...
|
|
4085
|
+
return e[0] !== n ? (i = [...hi, ...n], e[0] = n, e[1] = i) : i = e[1], i;
|
|
4090
4086
|
};
|
|
4091
4087
|
function wd(t) {
|
|
4092
4088
|
return t.themes;
|
|
4093
4089
|
}
|
|
4094
|
-
const On =
|
|
4090
|
+
const On = xi(!1), Id = (t) => {
|
|
4095
4091
|
const e = k(11), {
|
|
4096
4092
|
children: n,
|
|
4097
4093
|
initialThemePreference: i,
|
|
4098
4094
|
themePreferences: o,
|
|
4099
4095
|
fileIconThemePreferences: r
|
|
4100
4096
|
} = t;
|
|
4101
|
-
if (
|
|
4097
|
+
if (Pi(On))
|
|
4102
4098
|
return n;
|
|
4103
4099
|
let l;
|
|
4104
|
-
e[0] !== n ? (l = /* @__PURE__ */ u(
|
|
4100
|
+
e[0] !== n ? (l = /* @__PURE__ */ u(gi, { value: bi, children: n }), e[0] = n, e[1] = l) : l = e[1];
|
|
4105
4101
|
let d;
|
|
4106
|
-
e[2] !== r || e[3] !== l ? (d = /* @__PURE__ */ u(
|
|
4102
|
+
e[2] !== r || e[3] !== l ? (d = /* @__PURE__ */ u(yi, { themePreferences: r, children: l }), e[2] = r, e[3] = l, e[4] = d) : d = e[4];
|
|
4107
4103
|
let a;
|
|
4108
|
-
return e[5] !== i || e[6] !== t.defaultThemePreference || e[7] !== t.preferenceScope || e[8] !== d || e[9] !== o ? (a = /* @__PURE__ */ u(On, { value: !0, children: /* @__PURE__ */ u(
|
|
4109
|
-
},
|
|
4104
|
+
return e[5] !== i || e[6] !== t.defaultThemePreference || e[7] !== t.preferenceScope || e[8] !== d || e[9] !== o ? (a = /* @__PURE__ */ u(On, { value: !0, children: /* @__PURE__ */ u(pi, { initialPreference: i, defaultPreference: t.defaultThemePreference, preferenceScope: t.preferenceScope, themePreferences: o, children: d }) }), e[5] = i, e[6] = t.defaultThemePreference, e[7] = t.preferenceScope, e[8] = d, e[9] = o, e[10] = a) : a = e[10], a;
|
|
4105
|
+
}, Pd = (t) => {
|
|
4110
4106
|
const e = k(6);
|
|
4111
4107
|
let n, i;
|
|
4112
4108
|
e[0] !== t ? ({
|
|
@@ -4118,12 +4114,12 @@ const On = Ci(!1), Pd = (t) => {
|
|
|
4118
4114
|
}, xd = (t) => typeof t == "object" && t !== null && !Array.isArray(t), Se = (t, e) => {
|
|
4119
4115
|
const n = t[e];
|
|
4120
4116
|
return typeof n == "string" ? n : void 0;
|
|
4121
|
-
},
|
|
4117
|
+
}, st = (t, e) => {
|
|
4122
4118
|
const n = t[e];
|
|
4123
4119
|
return typeof n == "boolean" ? n : void 0;
|
|
4124
4120
|
}, Cd = (t) => {
|
|
4125
4121
|
if (!xd(t)) return {};
|
|
4126
|
-
const e = {}, n = Se(t, "size"), i = Se(t, "placement"), o = Se(t, "scrollBehavior"), r =
|
|
4122
|
+
const e = {}, n = Se(t, "size"), i = Se(t, "placement"), o = Se(t, "scrollBehavior"), r = st(t, "closeOnEscape"), s = st(t, "closeOnInteractOutside"), l = st(t, "modal"), d = st(t, "preventScroll"), a = st(t, "trapFocus"), c = Se(t, "motionPreset"), m = Se(t, "role"), f = Se(t, "contentHeight"), h = Se(t, "contentMaxHeight"), p = Se(t, "contentMinHeight"), g = Se(t, "contentWidth"), w = Se(t, "contentMaxWidth"), y = Se(t, "closeTriggerTop");
|
|
4127
4123
|
return n && (e.size = n), i && (e.placement = i), o && (e.scrollBehavior = o), r !== void 0 && (e.closeOnEscape = r), s !== void 0 && (e.closeOnInteractOutside = s), l !== void 0 && (e.modal = l), d !== void 0 && (e.preventScroll = d), a !== void 0 && (e.trapFocus = a), c && (e.motionPreset = c), m && (e.role = m), f && (e.contentHeight = f), h && (e.contentMaxHeight = h), p && (e.contentMinHeight = p), g && (e.contentWidth = g), w && (e.contentMaxWidth = w), y && (e.closeTriggerTop = y), e;
|
|
4128
4124
|
}, kd = (t, e) => {
|
|
4129
4125
|
const n = t.closable === !0, i = Cd(e);
|
|
@@ -4157,10 +4153,10 @@ const On = Ci(!1), Pd = (t) => {
|
|
|
4157
4153
|
workbench: n
|
|
4158
4154
|
} = t, i = E(n.layout.store, Ad);
|
|
4159
4155
|
let o;
|
|
4160
|
-
e[0] !== n ? (o =
|
|
4156
|
+
e[0] !== n ? (o = X(n), e[0] = n, e[1] = o) : o = e[1];
|
|
4161
4157
|
const r = E(o.store, Md);
|
|
4162
4158
|
let s;
|
|
4163
|
-
e[2] !== n ? (s =
|
|
4159
|
+
e[2] !== n ? (s = X(n), e[2] = n, e[3] = s) : s = e[3], E(s.store, $d);
|
|
4164
4160
|
const [l, d] = Q(), a = Rd(i.widgets, i.activeWidgetId), c = Wd(a, l);
|
|
4165
4161
|
if (ue(() => {
|
|
4166
4162
|
a && d(void 0);
|
|
@@ -4176,8 +4172,8 @@ const On = Ci(!1), Pd = (t) => {
|
|
|
4176
4172
|
contentWidth: b,
|
|
4177
4173
|
contentMaxWidth: v,
|
|
4178
4174
|
closeTriggerTop: S,
|
|
4179
|
-
...
|
|
4180
|
-
} = p,
|
|
4175
|
+
...P
|
|
4176
|
+
} = p, I = h ? r[h.rendererId] : void 0, x = m && f.closable === !0, C = f.title ?? h?.title ?? "overlay", R = h && I ? I.render({
|
|
4181
4177
|
workbench: n,
|
|
4182
4178
|
panel: to(h),
|
|
4183
4179
|
instance: Tt(f),
|
|
@@ -4195,7 +4191,7 @@ const On = Ci(!1), Pd = (t) => {
|
|
|
4195
4191
|
const N = _, A = Nd;
|
|
4196
4192
|
let $;
|
|
4197
4193
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ u(ye.Backdrop, { position: "fixed", inset: "0", pointerEvents: "auto" }), e[10] = $) : $ = e[10];
|
|
4198
|
-
const B =
|
|
4194
|
+
const B = P.scrollBehavior === "outside" ? "auto" : "hidden";
|
|
4199
4195
|
let z;
|
|
4200
4196
|
e[11] !== x || e[12] !== C || e[13] !== S ? (z = x ? /* @__PURE__ */ u(ye.CloseTrigger, { "aria-label": `Close ${C}`, alignItems: "center", borderRadius: "sm", color: "fg.muted", cursor: "pointer", display: "inline-flex", h: "5", insetEnd: "1", justifyContent: "center", position: "absolute", top: S ?? "1", w: "5", zIndex: "1", _hover: {
|
|
4201
4197
|
bg: "bg.subtle",
|
|
@@ -4207,12 +4203,12 @@ const On = Ci(!1), Pd = (t) => {
|
|
|
4207
4203
|
z
|
|
4208
4204
|
] }), e[15] = R, e[16] = g, e[17] = w, e[18] = v, e[19] = y, e[20] = b, e[21] = z, e[22] = M) : M = e[22];
|
|
4209
4205
|
let O;
|
|
4210
|
-
e[23] !== B || e[24] !== M ? (O = /* @__PURE__ */ H(
|
|
4206
|
+
e[23] !== B || e[24] !== M ? (O = /* @__PURE__ */ H(Xe, { children: [
|
|
4211
4207
|
$,
|
|
4212
4208
|
/* @__PURE__ */ u(ye.Positioner, { position: "fixed", inset: "0", overflow: B, pointerEvents: "auto", children: M })
|
|
4213
4209
|
] }), e[23] = B, e[24] = M, e[25] = O) : O = e[25];
|
|
4214
4210
|
let D;
|
|
4215
|
-
return e[26] !==
|
|
4211
|
+
return e[26] !== P || e[27] !== N || e[28] !== T || e[29] !== m || e[30] !== O ? (D = /* @__PURE__ */ u(ye.Root, { ...P, open: m, onExitComplete: N, onOpenChange: T, onInteractOutside: A, children: O }), e[26] = P, e[27] = N, e[28] = T, e[29] = m, e[30] = O, e[31] = D) : D = e[31], D;
|
|
4216
4212
|
};
|
|
4217
4213
|
function Ad(t) {
|
|
4218
4214
|
return t.layout.regions.overlay;
|
|
@@ -4246,21 +4242,21 @@ const Od = (t) => {
|
|
|
4246
4242
|
let m;
|
|
4247
4243
|
e[2] !== a ? (m = /* @__PURE__ */ u(we, { size: "xs", variant: "ghost", "aria-label": a, "data-workbench-breadcrumb-resource-actions": "", children: c }), e[2] = a, e[3] = m) : m = e[3];
|
|
4248
4244
|
let f;
|
|
4249
|
-
return e[4] !== s || e[5] !== m ? (f = /* @__PURE__ */ u(
|
|
4245
|
+
return e[4] !== s || e[5] !== m ? (f = /* @__PURE__ */ u(vi, { actions: s, positioning: d, children: m }), e[4] = s, e[5] = m, e[6] = f) : f = e[6], f;
|
|
4250
4246
|
};
|
|
4251
4247
|
function zd(t) {
|
|
4252
4248
|
return t.items;
|
|
4253
4249
|
}
|
|
4254
|
-
const
|
|
4250
|
+
const Lo = (t) => {
|
|
4255
4251
|
const e = k(10), {
|
|
4256
4252
|
control: n
|
|
4257
4253
|
} = t;
|
|
4258
4254
|
let i;
|
|
4259
4255
|
e[0] !== n.icon ? (i = /* @__PURE__ */ u(L, { name: n.icon, size: 14 }), e[0] = n.icon, e[1] = i) : i = e[1];
|
|
4260
4256
|
let o;
|
|
4261
|
-
e[2] !== n.label || e[3] !== n.onToggle || e[4] !== n.open || e[5] !== i ? (o = /* @__PURE__ */ u(we, { size:
|
|
4257
|
+
e[2] !== n.label || e[3] !== n.onToggle || e[4] !== n.open || e[5] !== i ? (o = /* @__PURE__ */ u(we, { size: Je, variant: "ghost", "aria-label": n.label, "aria-pressed": n.open, onClick: n.onToggle, children: i }), e[2] = n.label, e[3] = n.onToggle, e[4] = n.open, e[5] = i, e[6] = o) : o = e[6];
|
|
4262
4258
|
let r;
|
|
4263
|
-
return e[7] !== n.label || e[8] !== o ? (r = /* @__PURE__ */ u(
|
|
4259
|
+
return e[7] !== n.label || e[8] !== o ? (r = /* @__PURE__ */ u(Ie, { content: n.label, children: o }), e[7] = n.label, e[8] = o, e[9] = r) : r = e[9], r;
|
|
4264
4260
|
}, Bd = (t) => {
|
|
4265
4261
|
const e = k(18), {
|
|
4266
4262
|
workbench: n,
|
|
@@ -4274,16 +4270,16 @@ const Fo = (t) => {
|
|
|
4274
4270
|
let d;
|
|
4275
4271
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ u(L, { name: "ArrowLeft", size: 14 }), e[4] = d) : d = e[4];
|
|
4276
4272
|
let a;
|
|
4277
|
-
e[5] !== s || e[6] !== l ? (a = /* @__PURE__ */ u(
|
|
4273
|
+
e[5] !== s || e[6] !== l ? (a = /* @__PURE__ */ u(Ie, { content: "Navigate back", children: /* @__PURE__ */ u(we, { size: "xs", variant: "ghost", "aria-label": "Navigate back", disabled: s, onClick: l, children: d }) }), e[5] = s, e[6] = l, e[7] = a) : a = e[7];
|
|
4278
4274
|
const c = !o.canGoForward;
|
|
4279
4275
|
let m;
|
|
4280
4276
|
e[8] !== n.pageLocations ? (m = () => n.pageLocations.goForward(), e[8] = n.pageLocations, e[9] = m) : m = e[9];
|
|
4281
4277
|
let f;
|
|
4282
4278
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ u(L, { name: "ArrowRight", size: 14 }), e[10] = f) : f = e[10];
|
|
4283
4279
|
let h;
|
|
4284
|
-
e[11] !== c || e[12] !== m ? (h = /* @__PURE__ */ u(
|
|
4280
|
+
e[11] !== c || e[12] !== m ? (h = /* @__PURE__ */ u(Ie, { content: "Navigate forward", children: /* @__PURE__ */ u(we, { size: "xs", variant: "ghost", "aria-label": "Navigate forward", disabled: c, onClick: m, children: f }) }), e[11] = c, e[12] = m, e[13] = h) : h = e[13];
|
|
4285
4281
|
let p;
|
|
4286
|
-
return e[14] !== r || e[15] !== a || e[16] !== h ? (p = /* @__PURE__ */ H(
|
|
4282
|
+
return e[14] !== r || e[15] !== a || e[16] !== h ? (p = /* @__PURE__ */ H(Re, { gap: "2xs", flexShrink: 0, children: [
|
|
4287
4283
|
r,
|
|
4288
4284
|
a,
|
|
4289
4285
|
h
|
|
@@ -4295,13 +4291,13 @@ const Fo = (t) => {
|
|
|
4295
4291
|
let i;
|
|
4296
4292
|
e[0] !== n ? (i = n.map(Ld), e[0] = n, e[1] = i) : i = e[1];
|
|
4297
4293
|
let o;
|
|
4298
|
-
return e[2] !== i ? (o = /* @__PURE__ */ u(
|
|
4294
|
+
return e[2] !== i ? (o = /* @__PURE__ */ u(Re, { gap: "2xs", flexShrink: 0, children: i }), e[2] = i, e[3] = o) : o = e[3], o;
|
|
4299
4295
|
}, Hd = (t) => {
|
|
4300
4296
|
const e = k(34), {
|
|
4301
4297
|
workbench: n,
|
|
4302
4298
|
hasNav: i,
|
|
4303
4299
|
regionControls: o
|
|
4304
|
-
} = t, r =
|
|
4300
|
+
} = t, r = bt(n, "nav");
|
|
4305
4301
|
let s;
|
|
4306
4302
|
e[0] !== o ? (s = o.filter(Fd), e[0] = o, e[1] = s) : s = e[1];
|
|
4307
4303
|
const l = s;
|
|
@@ -4316,27 +4312,27 @@ const Fo = (t) => {
|
|
|
4316
4312
|
let v;
|
|
4317
4313
|
e[7] !== o ? (v = /* @__PURE__ */ u(zn, { controls: o }), e[7] = o, e[8] = v) : v = e[8];
|
|
4318
4314
|
let S;
|
|
4319
|
-
return e[9] !== b || e[10] !== v ? (S = /* @__PURE__ */ H(
|
|
4315
|
+
return e[9] !== b || e[10] !== v ? (S = /* @__PURE__ */ H(He, { "data-workbench-region": "nav", variant: "main", padding: "0", flexShrink: 0, children: [
|
|
4320
4316
|
b,
|
|
4321
4317
|
v
|
|
4322
4318
|
] }), e[9] = b, e[10] = v, e[11] = S) : S = e[11], S;
|
|
4323
4319
|
}
|
|
4324
4320
|
let c;
|
|
4325
|
-
e[12] !== n ? (c = /* @__PURE__ */ u(Jt, { workbench: n, menuPath:
|
|
4321
|
+
e[12] !== n ? (c = /* @__PURE__ */ u(Jt, { workbench: n, menuPath: Fi }), e[12] = n, e[13] = c) : c = e[13];
|
|
4326
4322
|
let m;
|
|
4327
4323
|
e[14] !== l || e[15] !== n ? (m = /* @__PURE__ */ u(Bd, { workbench: n, regionControls: l }), e[14] = l, e[15] = n, e[16] = m) : m = e[16];
|
|
4328
4324
|
let f;
|
|
4329
|
-
e[17] !== i || e[18] !== n ? (f = /* @__PURE__ */ u(F, { h: "full", minW: "0", maxW: "60%", overflow: "hidden", children: i ? /* @__PURE__ */ u(
|
|
4325
|
+
e[17] !== i || e[18] !== n ? (f = /* @__PURE__ */ u(F, { h: "full", minW: "0", maxW: "60%", overflow: "hidden", children: i ? /* @__PURE__ */ u(Pe, { workbench: n, region: "nav", title: "Nav Chrome" }) : /* @__PURE__ */ u(hr, { workbench: n }) }), e[17] = i, e[18] = n, e[19] = f) : f = e[19];
|
|
4330
4326
|
let h;
|
|
4331
|
-
e[20] !== n ? (h = /* @__PURE__ */ u(
|
|
4327
|
+
e[20] !== n ? (h = /* @__PURE__ */ u(Re, { "data-workbench-breadcrumb-action-slot": "", flexShrink: 0, gap: "2xs", h: "6", justifyContent: "center", minW: "6", children: /* @__PURE__ */ u(Od, { workbench: n }) }), e[20] = n, e[21] = h) : h = e[21];
|
|
4332
4328
|
let p;
|
|
4333
4329
|
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ u(F, { flex: "1", minW: "0" }), e[22] = p) : p = e[22];
|
|
4334
4330
|
let g;
|
|
4335
|
-
e[23] !== n ? (g = /* @__PURE__ */ u(Jt, { workbench: n, menuPath:
|
|
4331
|
+
e[23] !== n ? (g = /* @__PURE__ */ u(Jt, { workbench: n, menuPath: Ki }), e[23] = n, e[24] = g) : g = e[24];
|
|
4336
4332
|
let w;
|
|
4337
4333
|
e[25] !== a ? (w = /* @__PURE__ */ u(zn, { controls: a }), e[25] = a, e[26] = w) : w = e[26];
|
|
4338
4334
|
let y;
|
|
4339
|
-
return e[27] !== c || e[28] !== m || e[29] !== f || e[30] !== h || e[31] !== g || e[32] !== w ? (y = /* @__PURE__ */ H(
|
|
4335
|
+
return e[27] !== c || e[28] !== m || e[29] !== f || e[30] !== h || e[31] !== g || e[32] !== w ? (y = /* @__PURE__ */ H(He, { "data-workbench-region": "nav", variant: "main", bg: Y.main, position: "relative", flexShrink: 0, gap: "xs", overflow: "hidden", overflowY: "hidden", children: [
|
|
4340
4336
|
c,
|
|
4341
4337
|
m,
|
|
4342
4338
|
f,
|
|
@@ -4350,10 +4346,10 @@ function Dd(t) {
|
|
|
4350
4346
|
return t;
|
|
4351
4347
|
}
|
|
4352
4348
|
function Vd(t) {
|
|
4353
|
-
return /* @__PURE__ */ u(
|
|
4349
|
+
return /* @__PURE__ */ u(Lo, { control: t }, t.id);
|
|
4354
4350
|
}
|
|
4355
4351
|
function Ld(t) {
|
|
4356
|
-
return /* @__PURE__ */ u(
|
|
4352
|
+
return /* @__PURE__ */ u(Lo, { control: t }, t.id);
|
|
4357
4353
|
}
|
|
4358
4354
|
function Fd(t) {
|
|
4359
4355
|
return t.id === "sidenav";
|
|
@@ -4361,7 +4357,7 @@ function Fd(t) {
|
|
|
4361
4357
|
function Kd(t) {
|
|
4362
4358
|
return t.id !== "sidenav";
|
|
4363
4359
|
}
|
|
4364
|
-
const
|
|
4360
|
+
const Qt = {
|
|
4365
4361
|
params: [],
|
|
4366
4362
|
groups: [],
|
|
4367
4363
|
values: {},
|
|
@@ -4372,16 +4368,16 @@ const Zt = {
|
|
|
4372
4368
|
workbench: n,
|
|
4373
4369
|
contribution: i,
|
|
4374
4370
|
placement: o
|
|
4375
|
-
} = t, r = o.resource, [s, l] = Q(
|
|
4371
|
+
} = t, r = o.resource, [s, l] = Q(Qt), d = pe(0);
|
|
4376
4372
|
let a, c;
|
|
4377
4373
|
e[0] !== i || e[1] !== r || e[2] !== n ? (a = () => {
|
|
4378
4374
|
let b = !1;
|
|
4379
|
-
l(
|
|
4375
|
+
l(Qt);
|
|
4380
4376
|
const v = () => {
|
|
4381
4377
|
d.current = d.current + 1;
|
|
4382
|
-
const
|
|
4378
|
+
const I = d.current;
|
|
4383
4379
|
Promise.resolve().then(() => i.executeQuery(r)).then((x) => {
|
|
4384
|
-
if (b || d.current !==
|
|
4380
|
+
if (b || d.current !== I)
|
|
4385
4381
|
return;
|
|
4386
4382
|
const C = {
|
|
4387
4383
|
...i.defaultValues ?? {},
|
|
@@ -4395,52 +4391,52 @@ const Zt = {
|
|
|
4395
4391
|
};
|
|
4396
4392
|
l(R);
|
|
4397
4393
|
}).catch((x) => {
|
|
4398
|
-
b || d.current !==
|
|
4399
|
-
...
|
|
4394
|
+
b || d.current !== I || l({
|
|
4395
|
+
...Qt,
|
|
4400
4396
|
loading: !1,
|
|
4401
4397
|
error: x instanceof Error ? x.message : String(x)
|
|
4402
4398
|
});
|
|
4403
4399
|
});
|
|
4404
4400
|
};
|
|
4405
4401
|
v();
|
|
4406
|
-
const S = i.subscribe?.(v),
|
|
4407
|
-
|
|
4402
|
+
const S = i.subscribe?.(v), P = X(n).onDidRefreshControlsRenderer((I) => {
|
|
4403
|
+
I.controlsRendererId === i.id && v();
|
|
4408
4404
|
});
|
|
4409
4405
|
return () => {
|
|
4410
|
-
b = !0, typeof S == "function" ? S() : S?.dispose(),
|
|
4406
|
+
b = !0, typeof S == "function" ? S() : S?.dispose(), P.dispose();
|
|
4411
4407
|
};
|
|
4412
4408
|
}, c = [i, r, n], e[0] = i, e[1] = r, e[2] = n, e[3] = a, e[4] = c) : (a = e[3], c = e[4]), ue(a, c);
|
|
4413
4409
|
const m = s.readOnly || !i.updateValue && !i.apply, f = !m && (!!i.apply || !!i.reset);
|
|
4414
4410
|
let h;
|
|
4415
4411
|
e[5] !== i || e[6] !== r || e[7] !== s.values ? (h = (b, v) => {
|
|
4416
|
-
const S = Ii.parse(v),
|
|
4412
|
+
const S = Ii.parse(v), P = {
|
|
4417
4413
|
...s.values,
|
|
4418
4414
|
[b]: S
|
|
4419
4415
|
};
|
|
4420
4416
|
i.updateValue && i.updateValue({
|
|
4421
4417
|
controlId: b,
|
|
4422
4418
|
value: S,
|
|
4423
|
-
values:
|
|
4419
|
+
values: P,
|
|
4424
4420
|
resource: r
|
|
4425
|
-
}), l((
|
|
4426
|
-
...
|
|
4421
|
+
}), l((I) => ({
|
|
4422
|
+
...I,
|
|
4427
4423
|
values: {
|
|
4428
|
-
...
|
|
4424
|
+
...I.values,
|
|
4429
4425
|
[b]: S
|
|
4430
4426
|
}
|
|
4431
4427
|
}));
|
|
4432
4428
|
}, e[5] = i, e[6] = r, e[7] = s.values, e[8] = h) : h = e[8];
|
|
4433
4429
|
const p = h;
|
|
4434
4430
|
let g;
|
|
4435
|
-
e[9] !== i || e[10] !== p || e[11] !== m || e[12] !== s ? (g = /* @__PURE__ */ u(
|
|
4431
|
+
e[9] !== i || e[10] !== p || e[11] !== m || e[12] !== s ? (g = /* @__PURE__ */ u(Ee, { flex: "1", minH: "0", minW: "0", w: "full", size: "xs", children: /* @__PURE__ */ u(jd, { state: s, contribution: i, readOnly: m, onChange: p }) }), e[9] = i, e[10] = p, e[11] = m, e[12] = s, e[13] = g) : g = e[13];
|
|
4436
4432
|
let w;
|
|
4437
4433
|
e[14] !== i || e[15] !== r || e[16] !== f || e[17] !== s.values ? (w = f ? /* @__PURE__ */ H(he, { borderTopWidth: "1px", borderColor: "border.muted", px: "sm", py: "xs", gap: "xs", justifyContent: "flex-end", children: [
|
|
4438
|
-
i.reset ? /* @__PURE__ */ u(
|
|
4434
|
+
i.reset ? /* @__PURE__ */ u(ze, { size: "xs", variant: "ghost", onClick: () => {
|
|
4439
4435
|
i.reset?.({
|
|
4440
4436
|
resource: r
|
|
4441
4437
|
});
|
|
4442
4438
|
}, children: "Reset" }) : null,
|
|
4443
|
-
i.apply ? /* @__PURE__ */ u(
|
|
4439
|
+
i.apply ? /* @__PURE__ */ u(ze, { size: "xs", variant: "subtle", onClick: () => {
|
|
4444
4440
|
i.apply?.({
|
|
4445
4441
|
values: s.values,
|
|
4446
4442
|
resource: r
|
|
@@ -4448,7 +4444,7 @@ const Zt = {
|
|
|
4448
4444
|
}, children: "Apply" }) : null
|
|
4449
4445
|
] }) : null, e[14] = i, e[15] = r, e[16] = f, e[17] = s.values, e[18] = w) : w = e[18];
|
|
4450
4446
|
let y;
|
|
4451
|
-
return e[19] !== g || e[20] !== w ? (y = /* @__PURE__ */ H(
|
|
4447
|
+
return e[19] !== g || e[20] !== w ? (y = /* @__PURE__ */ H(Te, { h: "full", minH: "0", gap: "0", bg: "bg", overflow: "hidden", children: [
|
|
4452
4448
|
g,
|
|
4453
4449
|
w
|
|
4454
4450
|
] }), e[19] = g, e[20] = w, e[21] = y) : y = e[21], y;
|
|
@@ -4482,12 +4478,12 @@ const Zt = {
|
|
|
4482
4478
|
d
|
|
4483
4479
|
] }), e[13] = l, e[14] = d, e[15] = a) : a = e[15], a;
|
|
4484
4480
|
}, Bn = /* @__PURE__ */ new WeakSet(), Gd = (t) => {
|
|
4485
|
-
Bn.has(t) || (Bn.add(t),
|
|
4481
|
+
Bn.has(t) || (Bn.add(t), X(t).setControlsRendererImplementation(({
|
|
4486
4482
|
workbench: e,
|
|
4487
4483
|
instance: n,
|
|
4488
4484
|
controlsRendererId: i
|
|
4489
4485
|
}) => {
|
|
4490
|
-
const o =
|
|
4486
|
+
const o = X(e).getControlsRenderer(i);
|
|
4491
4487
|
return o ? Ye(qd, {
|
|
4492
4488
|
workbench: e,
|
|
4493
4489
|
contribution: o,
|
|
@@ -4495,36 +4491,36 @@ const Zt = {
|
|
|
4495
4491
|
}) : null;
|
|
4496
4492
|
}));
|
|
4497
4493
|
}, Hn = /* @__PURE__ */ new WeakSet(), Ud = (t) => {
|
|
4498
|
-
Hn.has(t) || (Hn.add(t),
|
|
4494
|
+
Hn.has(t) || (Hn.add(t), X(t).setDataTableRendererImplementation(({
|
|
4499
4495
|
workbench: e,
|
|
4500
4496
|
instance: n,
|
|
4501
4497
|
dataTableRendererId: i
|
|
4502
4498
|
}) => {
|
|
4503
|
-
const o =
|
|
4504
|
-
return o ? Ye(
|
|
4499
|
+
const o = X(e).getDataTableRenderer(i);
|
|
4500
|
+
return o ? Ye(ta, {
|
|
4505
4501
|
workbench: e,
|
|
4506
4502
|
contribution: o,
|
|
4507
4503
|
placement: n
|
|
4508
4504
|
}) : null;
|
|
4509
4505
|
}));
|
|
4510
|
-
},
|
|
4506
|
+
}, Qd = () => import("./file-renderer-view-Bfmw6RxV.js").then((t) => ({
|
|
4511
4507
|
default: t.WorkbenchFileRendererView
|
|
4512
|
-
})),
|
|
4513
|
-
Dn.has(t) || (Dn.add(t),
|
|
4508
|
+
})), Zd = ki(Qd), Dn = /* @__PURE__ */ new WeakSet(), Yd = (t) => {
|
|
4509
|
+
Dn.has(t) || (Dn.add(t), X(t).setFileRendererImplementation(({
|
|
4514
4510
|
workbench: e,
|
|
4515
4511
|
instance: n,
|
|
4516
4512
|
fileRendererId: i
|
|
4517
4513
|
}) => {
|
|
4518
|
-
const o =
|
|
4519
|
-
return o ? Ye(
|
|
4514
|
+
const o = X(e).getFileRenderer(i);
|
|
4515
|
+
return o ? Ye(Ci, {
|
|
4520
4516
|
fallback: null
|
|
4521
|
-
}, Ye(
|
|
4517
|
+
}, Ye(Zd, {
|
|
4522
4518
|
workbench: e,
|
|
4523
4519
|
contribution: o,
|
|
4524
4520
|
placement: n
|
|
4525
4521
|
})) : null;
|
|
4526
4522
|
}));
|
|
4527
|
-
},
|
|
4523
|
+
}, Xd = (t) => t, Jd = () => {
|
|
4528
4524
|
let t = 0;
|
|
4529
4525
|
return {
|
|
4530
4526
|
next: () => (t += 1, t),
|
|
@@ -4557,16 +4553,16 @@ const Zt = {
|
|
|
4557
4553
|
usesInternalScroll: i
|
|
4558
4554
|
} = t, o = i ? "relative" : void 0;
|
|
4559
4555
|
let r;
|
|
4560
|
-
e[0] !== n || e[1] !== i ? (r = i ? /* @__PURE__ */ u(F, { position: "absolute", inset: "0", minH: "0", minW: "0", overflow: "hidden", children: n }) : /* @__PURE__ */ u(
|
|
4556
|
+
e[0] !== n || e[1] !== i ? (r = i ? /* @__PURE__ */ u(F, { position: "absolute", inset: "0", minH: "0", minW: "0", overflow: "hidden", children: n }) : /* @__PURE__ */ u(Ee, { flex: "1", minH: "0", minW: "0", w: "full", size: "xs", contentProps: ou, children: n }), e[0] = n, e[1] = i, e[2] = r) : r = e[2];
|
|
4561
4557
|
let s;
|
|
4562
|
-
return e[3] !== o || e[4] !== r ? (s = /* @__PURE__ */ u(
|
|
4558
|
+
return e[3] !== o || e[4] !== r ? (s = /* @__PURE__ */ u(Te, { h: "full", minH: "0", gap: "0", bg: "bg", overflow: "hidden", position: o, children: r }), e[3] = o, e[4] = r, e[5] = s) : s = e[5], s;
|
|
4563
4559
|
}, ru = () => () => {
|
|
4564
4560
|
}, su = (t) => !!(t && typeof t == "object" && "type" in t && typeof t.type == "string" && "id" in t && typeof t.id == "string"), lu = (t) => {
|
|
4565
|
-
const e = k(3), n =
|
|
4561
|
+
const e = k(3), n = ar(t) ? t : void 0, i = n ? void 0 : t, o = n ? n.subscribe : ru;
|
|
4566
4562
|
let r;
|
|
4567
4563
|
e[0] !== i || e[1] !== n ? (r = n ? n.getSnapshot : () => i, e[0] = i, e[1] = n, e[2] = r) : r = e[2];
|
|
4568
4564
|
const s = r;
|
|
4569
|
-
return
|
|
4565
|
+
return Zn(o, s, s);
|
|
4570
4566
|
}, au = (t, e) => {
|
|
4571
4567
|
const n = new Set(t.map((o) => o.key)), i = new Set(t.flatMap((o) => o.commandId ? [o.commandId] : []));
|
|
4572
4568
|
return [...t, ...e.filter((o) => !n.has(o.key) && (!o.commandId || !i.has(o.commandId)))];
|
|
@@ -4574,7 +4570,7 @@ const Zt = {
|
|
|
4574
4570
|
const e = k(40), {
|
|
4575
4571
|
workbench: n,
|
|
4576
4572
|
placement: i
|
|
4577
|
-
} = t, o =
|
|
4573
|
+
} = t, o = Xd(t.contribution), r = mn(n), s = lu(o.attributes), l = nu(o.id, i, o.storageScope);
|
|
4578
4574
|
let d;
|
|
4579
4575
|
e[0] !== o.defaultActiveViewId || e[1] !== o.defaultFilters || e[2] !== o.defaultSettings || e[3] !== o.defaultViews ? (d = {
|
|
4580
4576
|
settings: o.defaultSettings,
|
|
@@ -4602,7 +4598,7 @@ const Zt = {
|
|
|
4602
4598
|
});
|
|
4603
4599
|
};
|
|
4604
4600
|
_();
|
|
4605
|
-
const N = o.subscribe?.(_), A =
|
|
4601
|
+
const N = o.subscribe?.(_), A = X(n).onDidRefreshKanbanRenderer(($) => {
|
|
4606
4602
|
$.kanbanRendererId === o.id && _();
|
|
4607
4603
|
});
|
|
4608
4604
|
return () => {
|
|
@@ -4614,14 +4610,14 @@ const Zt = {
|
|
|
4614
4610
|
o.onRowActivate && Promise.resolve(o.onRowActivate(T)).catch(mu);
|
|
4615
4611
|
}, e[13] = o, e[14] = v) : v = e[14];
|
|
4616
4612
|
const S = v;
|
|
4617
|
-
let
|
|
4618
|
-
e[15] !== o || e[16] !== r ? (
|
|
4613
|
+
let P;
|
|
4614
|
+
e[15] !== o || e[16] !== r ? (P = (T) => {
|
|
4619
4615
|
const _ = su(T.resource) ? r(T.resource) : [], N = o.getRowContextMenuActions?.(T) ?? [];
|
|
4620
4616
|
return au(_, N);
|
|
4621
|
-
}, e[15] = o, e[16] = r, e[17] =
|
|
4622
|
-
const
|
|
4617
|
+
}, e[15] = o, e[16] = r, e[17] = P) : P = e[17];
|
|
4618
|
+
const I = P, x = c.viewMode === "board", C = o.onRowActivate ? S : void 0;
|
|
4623
4619
|
let R;
|
|
4624
|
-
e[18] !== s || e[19] !== o.createRow || e[20] !== o.defaultActiveViewId || e[21] !== o.defaultFilters || e[22] !== o.defaultSettings || e[23] !== o.defaultViews || e[24] !== o.emptyDescription || e[25] !== o.emptyTitle || e[26] !== o.getBoardColumnConfig || e[27] !== o.hideToolbar || e[28] !== o.onAttributeChange || e[29] !== o.onColumnAction || e[30] !== o.onCreateRow || e[31] !== o.onReorder || e[32] !==
|
|
4620
|
+
e[18] !== s || e[19] !== o.createRow || e[20] !== o.defaultActiveViewId || e[21] !== o.defaultFilters || e[22] !== o.defaultSettings || e[23] !== o.defaultViews || e[24] !== o.emptyDescription || e[25] !== o.emptyTitle || e[26] !== o.getBoardColumnConfig || e[27] !== o.hideToolbar || e[28] !== o.onAttributeChange || e[29] !== o.onColumnAction || e[30] !== o.onCreateRow || e[31] !== o.onReorder || e[32] !== I || e[33] !== h || e[34] !== l || e[35] !== C ? (R = /* @__PURE__ */ u(lr, { rows: h, storageKey: l, attributes: s, defaultSettings: o.defaultSettings, defaultFilters: o.defaultFilters, defaultViews: o.defaultViews, defaultActiveViewId: o.defaultActiveViewId, emptyTitle: o.emptyTitle, emptyDescription: o.emptyDescription, getBoardColumnConfig: o.getBoardColumnConfig, hideToolbar: o.hideToolbar, onRowClick: C, onAttributeChange: o.onAttributeChange, onReorder: o.onReorder, createRow: o.createRow, onCreateRow: o.onCreateRow, onColumnAction: o.onColumnAction, getRowContextMenuActions: I }), e[18] = s, e[19] = o.createRow, e[20] = o.defaultActiveViewId, e[21] = o.defaultFilters, e[22] = o.defaultSettings, e[23] = o.defaultViews, e[24] = o.emptyDescription, e[25] = o.emptyTitle, e[26] = o.getBoardColumnConfig, e[27] = o.hideToolbar, e[28] = o.onAttributeChange, e[29] = o.onColumnAction, e[30] = o.onCreateRow, e[31] = o.onReorder, e[32] = I, e[33] = h, e[34] = l, e[35] = C, e[36] = R) : R = e[36];
|
|
4625
4621
|
let W;
|
|
4626
4622
|
return e[37] !== x || e[38] !== R ? (W = /* @__PURE__ */ u(iu, { usesInternalScroll: x, children: R }), e[37] = x, e[38] = R, e[39] = W) : W = e[39], W;
|
|
4627
4623
|
};
|
|
@@ -4634,12 +4630,12 @@ function uu(t) {
|
|
|
4634
4630
|
function mu() {
|
|
4635
4631
|
}
|
|
4636
4632
|
const Vn = /* @__PURE__ */ new WeakSet(), fu = (t) => {
|
|
4637
|
-
Vn.has(t) || (Vn.add(t),
|
|
4633
|
+
Vn.has(t) || (Vn.add(t), X(t).setKanbanRendererImplementation(({
|
|
4638
4634
|
workbench: e,
|
|
4639
4635
|
instance: n,
|
|
4640
4636
|
kanbanRendererId: i
|
|
4641
4637
|
}) => {
|
|
4642
|
-
const o =
|
|
4638
|
+
const o = X(e).getKanbanRenderer(i);
|
|
4643
4639
|
return o ? Ye(cu, {
|
|
4644
4640
|
workbench: e,
|
|
4645
4641
|
contribution: o,
|
|
@@ -4663,7 +4659,7 @@ const Vn = /* @__PURE__ */ new WeakSet(), fu = (t) => {
|
|
|
4663
4659
|
renderParamField: e.renderParamField,
|
|
4664
4660
|
onSidenavContextActionsChange: e.onSidenavContextActionsChange
|
|
4665
4661
|
};
|
|
4666
|
-
Ln.set(t, i),
|
|
4662
|
+
Ln.set(t, i), X(t).setTreeRendererImplementation(({
|
|
4667
4663
|
workbench: o,
|
|
4668
4664
|
instance: r,
|
|
4669
4665
|
treeId: s
|
|
@@ -4679,15 +4675,15 @@ const Vn = /* @__PURE__ */ new WeakSet(), fu = (t) => {
|
|
|
4679
4675
|
function yu(t) {
|
|
4680
4676
|
return t.themes;
|
|
4681
4677
|
}
|
|
4682
|
-
const
|
|
4678
|
+
const ke = (t, e, n) => {
|
|
4683
4679
|
const i = k(13);
|
|
4684
4680
|
let o;
|
|
4685
4681
|
i[0] !== n ? (o = n === void 0 ? {} : n, i[0] = n, i[1] = o) : o = i[1];
|
|
4686
|
-
const r = o, s =
|
|
4682
|
+
const r = o, s = bt(t, e), l = gt(t), d = ot(t);
|
|
4687
4683
|
let a;
|
|
4688
4684
|
if (i[2] !== d || i[3] !== e || i[4] !== t.modes) {
|
|
4689
|
-
const f =
|
|
4690
|
-
a = !f ||
|
|
4685
|
+
const f = Hi(e);
|
|
4686
|
+
a = !f || Di(d ? t.modes.getMode(d) : void 0, f), i[2] = d, i[3] = e, i[4] = t.modes, i[5] = a;
|
|
4691
4687
|
} else
|
|
4692
4688
|
a = i[5];
|
|
4693
4689
|
const c = a;
|
|
@@ -4695,10 +4691,10 @@ const Re = (t, e, n) => {
|
|
|
4695
4691
|
return i[6] !== s || i[7] !== d || i[8] !== r || i[9] !== c || i[10] !== e || i[11] !== l ? (m = (f) => s !== void 0 ? s !== !1 : c ? f.placeholders[e] ? !0 : r.locationScoped ? f.layout.regions[e].widgets.some((h) => {
|
|
4696
4692
|
const p = f.widgets[h.contributionId];
|
|
4697
4693
|
return p ? e === "side" ? rn(p, d) : _t(p, l, d, h, {
|
|
4698
|
-
location:
|
|
4694
|
+
location: ht(f.layout)
|
|
4699
4695
|
}) : !1;
|
|
4700
4696
|
}) : f.layout.regions[e].widgets.length > 0 : !1, i[6] = s, i[7] = d, i[8] = r, i[9] = c, i[10] = e, i[11] = l, i[12] = m) : m = i[12], E(t.layout.store, m);
|
|
4701
|
-
},
|
|
4697
|
+
}, Fo = (t) => {
|
|
4702
4698
|
const e = k(1), {
|
|
4703
4699
|
workbench: n,
|
|
4704
4700
|
region: i
|
|
@@ -4713,7 +4709,7 @@ const Re = (t, e, n) => {
|
|
|
4713
4709
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
4714
4710
|
locationScoped: !0
|
|
4715
4711
|
}, e[0] = n) : n = e[0];
|
|
4716
|
-
const i =
|
|
4712
|
+
const i = ke(t, "secondary", n), o = ke(t, "secondary-header"), r = ct(t, "secondary");
|
|
4717
4713
|
let s;
|
|
4718
4714
|
e[1] !== t ? (s = () => bn(t, "secondary-header", "secondary"), e[1] = t, e[2] = s) : s = e[2];
|
|
4719
4715
|
const l = E(t.layout.store, s), d = E(t.layout.store, wu), a = i || o || r, c = !d;
|
|
@@ -4730,7 +4726,7 @@ const Re = (t, e, n) => {
|
|
|
4730
4726
|
onCollapsedChange: m
|
|
4731
4727
|
}, e[6] = l, e[7] = o, e[8] = a, e[9] = c, e[10] = m, e[11] = f) : f = e[11], f;
|
|
4732
4728
|
}, Su = (t) => {
|
|
4733
|
-
const e = k(3), n =
|
|
4729
|
+
const e = k(3), n = ke(t, "main-header"), i = vu(t);
|
|
4734
4730
|
let o;
|
|
4735
4731
|
return e[0] !== n || e[1] !== i ? (o = {
|
|
4736
4732
|
hasMainHeader: n,
|
|
@@ -4740,85 +4736,85 @@ const Re = (t, e, n) => {
|
|
|
4740
4736
|
function wu(t) {
|
|
4741
4737
|
return t.layout.regions.secondary.visible;
|
|
4742
4738
|
}
|
|
4743
|
-
const
|
|
4739
|
+
const Iu = (t) => {
|
|
4744
4740
|
const e = k(14), {
|
|
4745
4741
|
workbench: n,
|
|
4746
4742
|
hasSecondaryHeader: i
|
|
4747
|
-
} = t, o =
|
|
4743
|
+
} = t, o = ct(n, "secondary"), r = yt(n, "secondary");
|
|
4748
4744
|
let s;
|
|
4749
|
-
e[0] !== o || e[1] !== i || e[2] !== r?.showHeader || e[3] !== n ? (s = r?.showHeader !== !1 && (i || o) ? /* @__PURE__ */ H(
|
|
4745
|
+
e[0] !== o || e[1] !== i || e[2] !== r?.showHeader || e[3] !== n ? (s = r?.showHeader !== !1 && (i || o) ? /* @__PURE__ */ H(He, { "data-workbench-panel-header": "secondary", variant: "main", bg: Y.panel, position: "relative", flexShrink: 0, gap: "xs", overflow: "hidden", overflowY: "hidden", children: [
|
|
4750
4746
|
/* @__PURE__ */ u(pn, { workbench: n, region: "secondary" }),
|
|
4751
|
-
i ? /* @__PURE__ */ u(F, { flex: "1", h: "full", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(
|
|
4747
|
+
i ? /* @__PURE__ */ u(F, { flex: "1", h: "full", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(Pe, { workbench: n, region: "secondary-header", title: "Secondary Panel header" }) }) : null,
|
|
4752
4748
|
/* @__PURE__ */ u(vn, { workbench: n, panel: "secondary" }),
|
|
4753
|
-
/* @__PURE__ */ u(
|
|
4749
|
+
/* @__PURE__ */ u(Fo, { workbench: n, region: "secondary-header" })
|
|
4754
4750
|
] }) : null, e[0] = o, e[1] = i, e[2] = r?.showHeader, e[3] = n, e[4] = s) : s = e[4];
|
|
4755
4751
|
let l;
|
|
4756
|
-
e[5] !== n ? (l = /* @__PURE__ */ u(
|
|
4752
|
+
e[5] !== n ? (l = /* @__PURE__ */ u(Pe, { workbench: n, region: "secondary", title: "Secondary Panel" }), e[5] = n, e[6] = l) : l = e[6];
|
|
4757
4753
|
let d;
|
|
4758
4754
|
e[7] !== l || e[8] !== n ? (d = /* @__PURE__ */ u(F, { flex: "1", minH: "0", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(yn, { workbench: n, panel: "secondary", children: l }) }), e[7] = l, e[8] = n, e[9] = d) : d = e[9];
|
|
4759
4755
|
let a;
|
|
4760
|
-
return e[10] !== s || e[11] !== d || e[12] !== n ? (a = /* @__PURE__ */ H(
|
|
4756
|
+
return e[10] !== s || e[11] !== d || e[12] !== n ? (a = /* @__PURE__ */ H(nt, { workbench: n, region: "secondary", "data-workbench-panel": "secondary", "data-workbench-region": "secondary", as: "section", bg: Y.panel, layerStyle: "panel", flex: "1", h: "full", minH: "0", minW: "0", overflow: "hidden", display: "flex", flexDirection: "column", w: "full", children: [
|
|
4761
4757
|
s,
|
|
4762
4758
|
d
|
|
4763
4759
|
] }), e[10] = s, e[11] = d, e[12] = n, e[13] = a) : a = e[13], a;
|
|
4764
|
-
},
|
|
4760
|
+
}, Pu = {
|
|
4765
4761
|
defaultPx: 240,
|
|
4766
4762
|
minPx: 128,
|
|
4767
4763
|
maxPx: 420
|
|
4768
|
-
}, xu = 240, Cu =
|
|
4764
|
+
}, xu = 240, Cu = qi("main"), ku = (t, e, n) => ({
|
|
4769
4765
|
defaultPx: e ?? t?.defaultPx ?? n.defaultPx,
|
|
4770
4766
|
minPx: t?.minPx ?? n.minPx,
|
|
4771
4767
|
maxPx: t ? t.maxPx : n.maxPx
|
|
4772
|
-
}),
|
|
4768
|
+
}), Ru = (t) => {
|
|
4773
4769
|
const e = k(18), {
|
|
4774
4770
|
workbench: n,
|
|
4775
4771
|
hasMainHeader: i
|
|
4776
|
-
} = t, o = Il(n, "main"), r =
|
|
4777
|
-
if (
|
|
4772
|
+
} = t, o = Il(n, "main"), r = ct(n, "main");
|
|
4773
|
+
if (yt(n, "main")?.showHeader === !1 || !i && !r)
|
|
4778
4774
|
return null;
|
|
4779
4775
|
let l;
|
|
4780
4776
|
e[0] !== n ? (l = /* @__PURE__ */ u(pn, { workbench: n, region: "main" }), e[0] = n, e[1] = l) : l = e[1];
|
|
4781
4777
|
const d = i || !o ? "1" : "0";
|
|
4782
4778
|
let a;
|
|
4783
|
-
e[2] !== i || e[3] !== n ? (a = i ? /* @__PURE__ */ u(
|
|
4779
|
+
e[2] !== i || e[3] !== n ? (a = i ? /* @__PURE__ */ u(Pe, { workbench: n, region: "main-header", title: "Main header" }) : null, e[2] = i, e[3] = n, e[4] = a) : a = e[4];
|
|
4784
4780
|
let c;
|
|
4785
4781
|
e[5] !== d || e[6] !== a ? (c = /* @__PURE__ */ u(F, { flex: d, h: "full", minW: "0", overflow: "hidden", children: a }), e[5] = d, e[6] = a, e[7] = c) : c = e[7];
|
|
4786
4782
|
let m, f, h;
|
|
4787
|
-
e[8] !== n ? (m = /* @__PURE__ */ u(Jt, { workbench: n, menuPath:
|
|
4783
|
+
e[8] !== n ? (m = /* @__PURE__ */ u(Jt, { workbench: n, menuPath: Cu, controlSize: Je }), f = /* @__PURE__ */ u(vn, { workbench: n, panel: "main" }), h = /* @__PURE__ */ u(Fo, { workbench: n, region: "main-header" }), e[8] = n, e[9] = m, e[10] = f, e[11] = h) : (m = e[9], f = e[10], h = e[11]);
|
|
4788
4784
|
let p;
|
|
4789
|
-
return e[12] !== l || e[13] !== c || e[14] !== m || e[15] !== f || e[16] !== h ? (p = /* @__PURE__ */ H(
|
|
4785
|
+
return e[12] !== l || e[13] !== c || e[14] !== m || e[15] !== f || e[16] !== h ? (p = /* @__PURE__ */ H(He, { "data-workbench-panel-header": "main", variant: "main", bg: Y.main, position: "relative", flexShrink: 0, gap: "xs", overflow: "hidden", overflowY: "hidden", children: [
|
|
4790
4786
|
l,
|
|
4791
4787
|
c,
|
|
4792
4788
|
m,
|
|
4793
4789
|
f,
|
|
4794
4790
|
h
|
|
4795
4791
|
] }), e[12] = l, e[13] = c, e[14] = m, e[15] = f, e[16] = h, e[17] = p) : p = e[17], p;
|
|
4796
|
-
},
|
|
4792
|
+
}, Wu = (t) => {
|
|
4797
4793
|
const e = k(39), {
|
|
4798
4794
|
workbench: n
|
|
4799
|
-
} = t, i =
|
|
4795
|
+
} = t, i = yt(n, "secondary"), o = Su(n), {
|
|
4800
4796
|
hasMainHeader: r,
|
|
4801
4797
|
secondaryPanel: s
|
|
4802
|
-
} = o, l = E(n.layout.store,
|
|
4798
|
+
} = o, l = E(n.layout.store, Tu);
|
|
4803
4799
|
let d;
|
|
4804
4800
|
e[0] !== i?.size || e[1] !== n.layout ? (d = i?.size ?? n.layout.getRegionSize("secondary"), e[0] = i?.size, e[1] = n.layout, e[2] = d) : d = e[2];
|
|
4805
4801
|
let a;
|
|
4806
|
-
e[3] !== l || e[4] !== d ? (a =
|
|
4802
|
+
e[3] !== l || e[4] !== d ? (a = ku(d, l, Pu), e[3] = l, e[4] = d, e[5] = a) : a = e[5];
|
|
4807
4803
|
const c = a;
|
|
4808
4804
|
let m;
|
|
4809
|
-
e[6] !== n ? (m = /* @__PURE__ */ u(
|
|
4805
|
+
e[6] !== n ? (m = /* @__PURE__ */ u(Pe, { workbench: n, region: "main", title: "Main" }), e[6] = n, e[7] = m) : m = e[7];
|
|
4810
4806
|
let f;
|
|
4811
|
-
e[8] !== m || e[9] !== n ? (f = /* @__PURE__ */ u(
|
|
4807
|
+
e[8] !== m || e[9] !== n ? (f = /* @__PURE__ */ u(nt, { workbench: n, region: "main", "data-workbench-region": "main", bg: Y.main, flex: "1", h: "full", minH: "0", minW: "0", w: "full", overflow: "hidden", children: m }), e[8] = m, e[9] = n, e[10] = f) : f = e[10];
|
|
4812
4808
|
const h = f;
|
|
4813
4809
|
let p;
|
|
4814
4810
|
e[11] !== h || e[12] !== n ? (p = /* @__PURE__ */ u(yn, { workbench: n, panel: "main", children: h }), e[11] = h, e[12] = n, e[13] = p) : p = e[13];
|
|
4815
4811
|
const g = p;
|
|
4816
4812
|
let w;
|
|
4817
|
-
e[14] !== r || e[15] !== n ? (w = /* @__PURE__ */ u(
|
|
4813
|
+
e[14] !== r || e[15] !== n ? (w = /* @__PURE__ */ u(Ru, { workbench: n, hasMainHeader: r }), e[14] = r, e[15] = n, e[16] = w) : w = e[16];
|
|
4818
4814
|
let y;
|
|
4819
4815
|
e[17] !== g ? (y = /* @__PURE__ */ u(F, { gridRow: "2", h: "full", minH: "0", minW: "0", overflow: "hidden", children: g }), e[17] = g, e[18] = y) : y = e[18];
|
|
4820
4816
|
let b;
|
|
4821
|
-
e[19] !== w || e[20] !== y ? (b = /* @__PURE__ */ H(Sn, { "data-workbench-panel": "main", gridTemplateRows: "auto minmax(0, 1fr)", h: "full", minH: "0", minW: "0", w: "full", children: [
|
|
4817
|
+
e[19] !== w || e[20] !== y ? (b = /* @__PURE__ */ H(Sn, { "data-workbench-panel": "main", gridTemplateRows: "auto minmax(0, 1fr)", h: "full", minH: "0", minW: "0", w: "full", bg: Y.main, layerStyle: "panel", children: [
|
|
4822
4818
|
w,
|
|
4823
4819
|
y
|
|
4824
4820
|
] }), e[19] = w, e[20] = y, e[21] = b) : b = e[21];
|
|
@@ -4828,31 +4824,31 @@ const Pu = (t) => {
|
|
|
4828
4824
|
return e[22] !== v ? (x = /* @__PURE__ */ u(Sn, { as: "main", h: "full", minH: "0", minW: "0", w: "full", children: v }), e[22] = v, e[23] = x) : x = e[23], x;
|
|
4829
4825
|
}
|
|
4830
4826
|
let S;
|
|
4831
|
-
e[24] !== s.hasHeader || e[25] !== n ? (S = /* @__PURE__ */ u(
|
|
4832
|
-
let I;
|
|
4833
|
-
e[27] !== n.layout ? (I = (x) => n.layout.setRegionSize("secondary", x), e[27] = n.layout, e[28] = I) : I = e[28];
|
|
4827
|
+
e[24] !== s.hasHeader || e[25] !== n ? (S = /* @__PURE__ */ u(Iu, { workbench: n, hasSecondaryHeader: s.hasHeader }), e[24] = s.hasHeader, e[25] = n, e[26] = S) : S = e[26];
|
|
4834
4828
|
let P;
|
|
4835
|
-
|
|
4829
|
+
e[27] !== n.layout ? (P = (x) => n.layout.setRegionSize("secondary", x), e[27] = n.layout, e[28] = P) : P = e[28];
|
|
4830
|
+
let I;
|
|
4831
|
+
return e[29] !== v || e[30] !== s.collapsed || e[31] !== s.collapsible || e[32] !== s.onCollapsedChange || e[33] !== c.defaultPx || e[34] !== c.maxPx || e[35] !== c.minPx || e[36] !== S || e[37] !== P ? (I = /* @__PURE__ */ u(ft, { as: "main", minH: "0", minW: "0", resizableSide: "bottom", contentPanel: v, resizablePanel: S, collapsed: s.collapsed, collapsible: s.collapsible, defaultSizePx: c.defaultPx, minSizePx: c.minPx, maxSizePx: c.maxPx, contentMinSizePx: xu, resizeLabel: "Resize Secondary Panel", onSizeChange: P, onCollapsedChange: s.onCollapsedChange }), e[29] = v, e[30] = s.collapsed, e[31] = s.collapsible, e[32] = s.onCollapsedChange, e[33] = c.defaultPx, e[34] = c.maxPx, e[35] = c.minPx, e[36] = S, e[37] = P, e[38] = I) : I = e[38], I;
|
|
4836
4832
|
};
|
|
4837
|
-
function
|
|
4833
|
+
function Tu(t) {
|
|
4838
4834
|
return t.layout.regions.secondary.size;
|
|
4839
4835
|
}
|
|
4840
|
-
const
|
|
4836
|
+
const _u = (t) => {
|
|
4841
4837
|
const e = k(8), {
|
|
4842
4838
|
workbench: n,
|
|
4843
4839
|
contextActions: i
|
|
4844
4840
|
} = t;
|
|
4845
4841
|
let o;
|
|
4846
|
-
e[0] !== n ? (o = /* @__PURE__ */ u(F, { flex: "1", minH: "0", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(
|
|
4842
|
+
e[0] !== n ? (o = /* @__PURE__ */ u(F, { flex: "1", minH: "0", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(Pe, { workbench: n, region: "sidenav", title: "Sidenav" }) }), e[0] = n, e[1] = o) : o = e[1];
|
|
4847
4843
|
let r;
|
|
4848
|
-
e[2] !== o || e[3] !== n ? (r = /* @__PURE__ */ u(F, { h: "full", minH: "0", minW: "0", w: "full", children: /* @__PURE__ */ u(
|
|
4844
|
+
e[2] !== o || e[3] !== n ? (r = /* @__PURE__ */ u(F, { h: "full", minH: "0", minW: "0", w: "full", children: /* @__PURE__ */ u(nt, { workbench: n, region: "sidenav", "data-workbench-region": "sidenav", as: "aside", bg: Y.sidenav, layerStyle: "panel", display: "flex", flexDirection: "column", h: "full", minH: "0", minW: "0", overflow: "hidden", w: "full", children: o }) }), e[2] = o, e[3] = n, e[4] = r) : r = e[4];
|
|
4849
4845
|
let s;
|
|
4850
|
-
return e[5] !== i || e[6] !== r ? (s = /* @__PURE__ */ u(
|
|
4851
|
-
},
|
|
4846
|
+
return e[5] !== i || e[6] !== r ? (s = /* @__PURE__ */ u(Si, { actions: i, closeOnSelect: !1, keepMountedWhenEmpty: !0, children: r }), e[5] = i, e[6] = r, e[7] = s) : s = e[7], s;
|
|
4847
|
+
}, Ko = "2rem", Fn = (t) => {
|
|
4852
4848
|
const e = k(6), {
|
|
4853
4849
|
slot: n,
|
|
4854
4850
|
workbench: i
|
|
4855
|
-
} = t, o =
|
|
4851
|
+
} = t, o = ot(i);
|
|
4856
4852
|
let r;
|
|
4857
4853
|
if (e[0] !== o || e[1] !== n || e[2] !== i) {
|
|
4858
4854
|
const s = o === i.modes.getActiveModeId() ? i.statusBar.listVisibleItems(n) : [];
|
|
@@ -4870,32 +4866,32 @@ const Au = (t) => {
|
|
|
4870
4866
|
} else
|
|
4871
4867
|
r = e[3];
|
|
4872
4868
|
return r;
|
|
4873
|
-
},
|
|
4869
|
+
}, Au = (t) => {
|
|
4874
4870
|
const e = k(5), {
|
|
4875
4871
|
workbench: n
|
|
4876
4872
|
} = t;
|
|
4877
4873
|
let i;
|
|
4878
|
-
e[0] !== n ? (i = /* @__PURE__ */ u(
|
|
4874
|
+
e[0] !== n ? (i = /* @__PURE__ */ u(Pe, { workbench: n, region: "activity", title: "Activity bar" }), e[0] = n, e[1] = i) : i = e[1];
|
|
4879
4875
|
let o;
|
|
4880
|
-
return e[2] !== i || e[3] !== n ? (o = /* @__PURE__ */ u(
|
|
4881
|
-
},
|
|
4876
|
+
return e[2] !== i || e[3] !== n ? (o = /* @__PURE__ */ u(nt, { workbench: n, region: "activity", "data-workbench-region": "activity", as: "nav", flexShrink: 0, h: "full", minH: "0", overflow: "hidden", w: "3.5rem", children: i }), e[2] = i, e[3] = n, e[4] = o) : o = e[4], o;
|
|
4877
|
+
}, Mu = (t) => {
|
|
4882
4878
|
const e = k(6), {
|
|
4883
4879
|
workbench: n
|
|
4884
4880
|
} = t;
|
|
4885
|
-
E(n.statusBar.store,
|
|
4886
|
-
const i =
|
|
4881
|
+
E(n.statusBar.store, $u);
|
|
4882
|
+
const i = bt(n, "status");
|
|
4887
4883
|
let o;
|
|
4888
4884
|
e[0] !== i || e[1] !== n ? (o = i ? /* @__PURE__ */ u(fn, { workbench: n, region: "status", viewId: i }) : /* @__PURE__ */ H(F, { display: "flex", alignItems: "stretch", justifyContent: "space-between", h: "full", minW: "0", w: "full", children: [
|
|
4889
4885
|
/* @__PURE__ */ u(F, { display: "flex", alignItems: "stretch", minW: "0", h: "full", children: /* @__PURE__ */ u(Fn, { workbench: n, slot: "leading" }) }),
|
|
4890
4886
|
/* @__PURE__ */ u(F, { display: "flex", alignItems: "stretch", minW: "0", h: "full", children: /* @__PURE__ */ u(Fn, { workbench: n, slot: "trailing" }) })
|
|
4891
4887
|
] }), e[0] = i, e[1] = n, e[2] = o) : o = e[2];
|
|
4892
4888
|
let r;
|
|
4893
|
-
return e[3] !== o || e[4] !== n ? (r = /* @__PURE__ */ u(
|
|
4889
|
+
return e[3] !== o || e[4] !== n ? (r = /* @__PURE__ */ u(nt, { workbench: n, region: "status", "data-workbench-region": "status", as: "footer", flexShrink: 0, h: Ko, minH: "0", minW: "0", overflow: "hidden", children: o }), e[3] = o, e[4] = n, e[5] = r) : r = e[5], r;
|
|
4894
4890
|
};
|
|
4895
|
-
function
|
|
4891
|
+
function $u(t) {
|
|
4896
4892
|
return t.items;
|
|
4897
4893
|
}
|
|
4898
|
-
const
|
|
4894
|
+
const Eu = 420, Nu = 320, Ou = (t) => {
|
|
4899
4895
|
const e = k(5), {
|
|
4900
4896
|
workbench: n,
|
|
4901
4897
|
hasSidePanel: i,
|
|
@@ -4905,10 +4901,10 @@ const Nu = 420, Ou = 320, zu = (t) => {
|
|
|
4905
4901
|
if (!i || !o || !r)
|
|
4906
4902
|
return null;
|
|
4907
4903
|
let s;
|
|
4908
|
-
e[0] !== n ? (s = /* @__PURE__ */ u(
|
|
4904
|
+
e[0] !== n ? (s = /* @__PURE__ */ u(Pe, { workbench: n, region: "side", title: "Side Panel", transparent: !0 }), e[0] = n, e[1] = s) : s = e[1];
|
|
4909
4905
|
let l;
|
|
4910
|
-
return e[2] !== r || e[3] !== s ? (l =
|
|
4911
|
-
},
|
|
4906
|
+
return e[2] !== r || e[3] !== s ? (l = cr(s, r), e[2] = r, e[3] = s, e[4] = l) : l = e[4], l;
|
|
4907
|
+
}, zu = (t) => {
|
|
4912
4908
|
const e = k(8), {
|
|
4913
4909
|
workbench: n,
|
|
4914
4910
|
hasSideHeader: i
|
|
@@ -4916,13 +4912,13 @@ const Nu = 420, Ou = 320, zu = (t) => {
|
|
|
4916
4912
|
let o;
|
|
4917
4913
|
e[0] !== n ? (o = /* @__PURE__ */ u(pn, { workbench: n, region: "side" }), e[0] = n, e[1] = o) : o = e[1];
|
|
4918
4914
|
let r;
|
|
4919
|
-
e[2] !== i || e[3] !== n ? (r = i ? /* @__PURE__ */ u(F, { flex: "1", h: "full", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(
|
|
4915
|
+
e[2] !== i || e[3] !== n ? (r = i ? /* @__PURE__ */ u(F, { flex: "1", h: "full", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(Pe, { workbench: n, region: "side-header", title: "Side Panel header", transparent: !0 }) }) : null, e[2] = i, e[3] = n, e[4] = r) : r = e[4];
|
|
4920
4916
|
let s;
|
|
4921
4917
|
return e[5] !== o || e[6] !== r ? (s = /* @__PURE__ */ H(F, { alignItems: "center", display: "flex", flex: "1", h: "full", minW: "0", overflow: "hidden", w: "full", children: [
|
|
4922
4918
|
o,
|
|
4923
4919
|
r
|
|
4924
4920
|
] }), e[5] = o, e[6] = r, e[7] = s) : s = e[7], s;
|
|
4925
|
-
},
|
|
4921
|
+
}, Bu = (t) => {
|
|
4926
4922
|
const e = k(26), {
|
|
4927
4923
|
workbench: n,
|
|
4928
4924
|
attached: i,
|
|
@@ -4931,7 +4927,7 @@ const Nu = 420, Ou = 320, zu = (t) => {
|
|
|
4931
4927
|
header: s,
|
|
4932
4928
|
onAttachedSlotChange: l,
|
|
4933
4929
|
onCollapse: d
|
|
4934
|
-
} = t, a = E(n.layout.store,
|
|
4930
|
+
} = t, a = E(n.layout.store, Hu), c = yt(n, "side");
|
|
4935
4931
|
let m;
|
|
4936
4932
|
e[0] !== c?.size || e[1] !== n.layout ? (m = c?.size ?? n.layout.getRegionSize("side"), e[0] = c?.size, e[1] = n.layout, e[2] = m) : m = e[2];
|
|
4937
4933
|
const f = m;
|
|
@@ -4940,34 +4936,34 @@ const Nu = 420, Ou = 320, zu = (t) => {
|
|
|
4940
4936
|
const p = h;
|
|
4941
4937
|
let g;
|
|
4942
4938
|
e[6] !== s || e[7] !== l || e[8] !== n ? (g = /* @__PURE__ */ u(ad, { workbench: n, contentSlotRef: l, header: s }), e[6] = s, e[7] = l, e[8] = n, e[9] = g) : g = e[9];
|
|
4943
|
-
const w = !i, y = a ?? f?.defaultPx ??
|
|
4939
|
+
const w = !i, y = a ?? f?.defaultPx ?? Eu, b = f?.minPx ?? Nu, v = f?.maxPx;
|
|
4944
4940
|
let S;
|
|
4945
4941
|
e[10] !== n.layout ? (S = (x) => n.layout.setRegionSize("side", x), e[10] = n.layout, e[11] = S) : S = e[11];
|
|
4946
|
-
let I;
|
|
4947
|
-
e[12] !== i || e[13] !== d ? (I = (x) => {
|
|
4948
|
-
i && x && d();
|
|
4949
|
-
}, e[12] = i, e[13] = d, e[14] = I) : I = e[14];
|
|
4950
4942
|
let P;
|
|
4951
|
-
|
|
4943
|
+
e[12] !== i || e[13] !== d ? (P = (x) => {
|
|
4944
|
+
i && x && d();
|
|
4945
|
+
}, e[12] = i, e[13] = d, e[14] = P) : P = e[14];
|
|
4946
|
+
let I;
|
|
4947
|
+
return e[15] !== p || e[16] !== r || e[17] !== o || e[18] !== g || e[19] !== w || e[20] !== y || e[21] !== b || e[22] !== v || e[23] !== S || e[24] !== P ? (I = /* @__PURE__ */ u(ft, { h: "full", minH: "0", minW: "0", w: "full", resizableSide: "right", contentPanel: o, resizablePanel: g, collapsed: w, defaultSizePx: y, minSizePx: b, maxSizePx: v, collapsible: p, onSizeChange: S, contentMinSizePx: r, resizeLabel: "Resize Side Panel", onCollapsedChange: P }), e[15] = p, e[16] = r, e[17] = o, e[18] = g, e[19] = w, e[20] = y, e[21] = b, e[22] = v, e[23] = S, e[24] = P, e[25] = I) : I = e[25], I;
|
|
4952
4948
|
};
|
|
4953
|
-
function
|
|
4949
|
+
function Hu(t) {
|
|
4954
4950
|
return t.layout.regions.side.size;
|
|
4955
4951
|
}
|
|
4956
|
-
const
|
|
4952
|
+
const Du = ["a[href]", "button", "input", "select", "textarea", "[contenteditable='true']", "[role='button']", "[role='checkbox']", "[role='menuitem']", "[role='option']", "[role='radio']", "[role='switch']", "[tabindex]:not([tabindex='-1'])"].join(","), Vu = (t) => typeof t?.closest == "function", Lu = (t, e) => t === e ? !0 : Vu(t) ? !t.closest(Du) : !1, qo = (t) => {
|
|
4957
4953
|
t?.focus({
|
|
4958
4954
|
preventScroll: !0
|
|
4959
4955
|
});
|
|
4960
|
-
},
|
|
4956
|
+
}, Fu = (t) => {
|
|
4961
4957
|
const e = k(4), {
|
|
4962
4958
|
children: n
|
|
4963
4959
|
} = t, i = pe(null);
|
|
4964
4960
|
let o, r;
|
|
4965
4961
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = () => {
|
|
4966
|
-
|
|
4967
|
-
}, r = [], e[0] = o, e[1] = r) : (o = e[0], r = e[1]),
|
|
4962
|
+
qo(i.current);
|
|
4963
|
+
}, r = [], e[0] = o, e[1] = r) : (o = e[0], r = e[1]), Yn(o, r);
|
|
4968
4964
|
let s;
|
|
4969
|
-
return e[2] !== n ? (s = /* @__PURE__ */ u(he, { ref: i, h: "full", minH: "0", minW: "0", w: "full", tabIndex: -1, outline: "none", onPointerDown:
|
|
4970
|
-
},
|
|
4965
|
+
return e[2] !== n ? (s = /* @__PURE__ */ u(he, { ref: i, h: "full", minH: "0", minW: "0", w: "full", tabIndex: -1, outline: "none", onPointerDown: qu, children: n }), e[2] = n, e[3] = s) : s = e[3], s;
|
|
4966
|
+
}, Ku = (t) => {
|
|
4971
4967
|
const e = k(10), {
|
|
4972
4968
|
workbench: n,
|
|
4973
4969
|
showAttachedSidePanel: i,
|
|
@@ -4979,36 +4975,36 @@ const Vu = ["a[href]", "button", "input", "select", "textarea", "[contenteditabl
|
|
|
4979
4975
|
let d;
|
|
4980
4976
|
e[0] !== n.sidePanel ? (d = () => n.sidePanel.setMode("closed"), e[0] = n.sidePanel, e[1] = d) : d = e[1];
|
|
4981
4977
|
let a;
|
|
4982
|
-
return e[2] !== o || e[3] !== s || e[4] !== l || e[5] !== i || e[6] !== r || e[7] !== d || e[8] !== n ? (a = /* @__PURE__ */ u(
|
|
4978
|
+
return e[2] !== o || e[3] !== s || e[4] !== l || e[5] !== i || e[6] !== r || e[7] !== d || e[8] !== n ? (a = /* @__PURE__ */ u(Fu, { children: /* @__PURE__ */ u(Bu, { workbench: n, attached: i, contentPanel: o, contentMinSizePx: s, header: r, onAttachedSlotChange: l, onCollapse: d }) }), e[2] = o, e[3] = s, e[4] = l, e[5] = i, e[6] = r, e[7] = d, e[8] = n, e[9] = a) : a = e[9], a;
|
|
4983
4979
|
};
|
|
4984
|
-
function
|
|
4985
|
-
|
|
4980
|
+
function qu(t) {
|
|
4981
|
+
Lu(t.target, t.currentTarget) && qo(t.currentTarget);
|
|
4986
4982
|
}
|
|
4987
|
-
const
|
|
4983
|
+
const ju = 250, Gu = 200, Kn = 320, Uu = (t, e) => {
|
|
4988
4984
|
const n = t.layout.getRegionSize("sidenav");
|
|
4989
4985
|
return {
|
|
4990
|
-
defaultPx: e ?? n?.defaultPx ??
|
|
4991
|
-
minPx: n?.minPx ??
|
|
4986
|
+
defaultPx: e ?? n?.defaultPx ?? ju,
|
|
4987
|
+
minPx: n?.minPx ?? Gu,
|
|
4992
4988
|
maxPx: n?.maxPx
|
|
4993
4989
|
};
|
|
4994
4990
|
}, Qu = () => {
|
|
4995
4991
|
if (typeof document > "u") return null;
|
|
4996
4992
|
const t = document.createElement("div");
|
|
4997
4993
|
return t.style.display = "contents", t.dataset.workbenchSidePanelHost = "", t;
|
|
4998
|
-
},
|
|
4999
|
-
const e = k(17), n =
|
|
5000
|
-
E(t.context.store,
|
|
5001
|
-
const o = E(t.modes.store,
|
|
4994
|
+
}, Zu = (t) => t.mounted ? t.mode === "floating" ? t.floatingSlot : t.attachedSlot : null, Yu = (t) => {
|
|
4995
|
+
const e = k(17), n = bt(t, "status"), i = E(t.statusBar.store, em);
|
|
4996
|
+
E(t.context.store, tm);
|
|
4997
|
+
const o = E(t.modes.store, nm), r = ke(t, "nav"), s = ke(t, "activity"), l = ke(t, "sidenav"), d = ke(t, "secondary-header");
|
|
5002
4998
|
let a;
|
|
5003
4999
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
5004
5000
|
locationScoped: !0
|
|
5005
5001
|
}, e[0] = a) : a = e[0];
|
|
5006
|
-
const c =
|
|
5002
|
+
const c = ke(t, "secondary", a), m = ke(t, "side-header");
|
|
5007
5003
|
let f;
|
|
5008
5004
|
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
5009
5005
|
locationScoped: !0
|
|
5010
5006
|
}, e[1] = f) : f = e[1];
|
|
5011
|
-
const h =
|
|
5007
|
+
const h = ke(t, "side", f);
|
|
5012
5008
|
let p;
|
|
5013
5009
|
e[2] !== o || e[3] !== i || e[4] !== n || e[5] !== t.modes || e[6] !== t.statusBar ? (p = n !== void 0 ? n !== !1 : o === t.modes.getActiveModeId() && Object.keys(i).length > 0 && t.statusBar.listVisibleItems().length > 0, e[2] = o, e[3] = i, e[4] = n, e[5] = t.modes, e[6] = t.statusBar, e[7] = p) : p = e[7];
|
|
5014
5010
|
let g;
|
|
@@ -5022,7 +5018,7 @@ const Gu = 250, Uu = 200, Kn = 320, Zu = (t, e) => {
|
|
|
5022
5018
|
hasSideWidgets: h,
|
|
5023
5019
|
hasStatusWidgets: p
|
|
5024
5020
|
}, e[8] = r, e[9] = s, e[10] = l, e[11] = d, e[12] = c, e[13] = m, e[14] = h, e[15] = p, e[16] = g) : g = e[16], g;
|
|
5025
|
-
},
|
|
5021
|
+
}, Xu = (t) => {
|
|
5026
5022
|
const e = [];
|
|
5027
5023
|
if (t.showSidenav && !t.sidenavOpen && e.push({
|
|
5028
5024
|
id: "sidenav",
|
|
@@ -5047,7 +5043,7 @@ const Gu = 250, Uu = 200, Kn = 320, Zu = (t, e) => {
|
|
|
5047
5043
|
});
|
|
5048
5044
|
}
|
|
5049
5045
|
return e;
|
|
5050
|
-
},
|
|
5046
|
+
}, Ju = (t) => {
|
|
5051
5047
|
const {
|
|
5052
5048
|
workbench: e,
|
|
5053
5049
|
renderParamField: n,
|
|
@@ -5058,19 +5054,19 @@ const Gu = 250, Uu = 200, Kn = 320, Zu = (t, e) => {
|
|
|
5058
5054
|
gu(e, {
|
|
5059
5055
|
renderParamField: n,
|
|
5060
5056
|
onSidenavContextActionsChange: l
|
|
5061
|
-
}), fu(e), Ud(e),
|
|
5057
|
+
}), fu(e), Ud(e), Yd(e), Gd(e);
|
|
5062
5058
|
const [d, a] = Q(null), [c, m] = Q(null), f = pe(null);
|
|
5063
5059
|
f.current || (f.current = Qu());
|
|
5064
|
-
const h = E(e.sidePanel.store, (V) => V.mode), p = E(e.commandPalette.store, (V) => V.open), g = E(e.commandPalette.store, (V) => V.initialQuery), w = E(e.layout.store, (V) => V.layout.regions.sidenav.visible), y = E(e.layout.store, (V) => V.layout.regions.secondary.visible), b =
|
|
5065
|
-
hasActivityBarWidgets:
|
|
5066
|
-
hasNavWidgets:
|
|
5060
|
+
const h = E(e.sidePanel.store, (V) => V.mode), p = E(e.commandPalette.store, (V) => V.open), g = E(e.commandPalette.store, (V) => V.initialQuery), w = E(e.layout.store, (V) => V.layout.regions.sidenav.visible), y = E(e.layout.store, (V) => V.layout.regions.secondary.visible), b = ct(e, "secondary"), v = ct(e, "side"), S = E(e.modes.store, () => e.sidePanel.canFloat()), {
|
|
5061
|
+
hasActivityBarWidgets: P,
|
|
5062
|
+
hasNavWidgets: I,
|
|
5067
5063
|
hasSideHeaderWidgets: x,
|
|
5068
5064
|
hasSideWidgets: C,
|
|
5069
5065
|
hasSidenavWidgets: R,
|
|
5070
5066
|
hasSecondaryHeaderWidgets: W,
|
|
5071
5067
|
hasSecondaryWidgets: T,
|
|
5072
5068
|
hasStatusWidgets: _
|
|
5073
|
-
} = Yu(e), N = x || C || v, A = R, $ = bn(e, "sidenav"), B = W || T || b, z = E(e.layout.store, (V) => V.layout.regions.sidenav.size), M =
|
|
5069
|
+
} = Yu(e), N = x || C || v, A = R, $ = bn(e, "sidenav"), B = W || T || b, z = E(e.layout.store, (V) => V.layout.regions.sidenav.size), M = Uu(e, z), O = N && h === "attached", D = N, q = e.shell.setRegionOpen, re = Xu({
|
|
5074
5070
|
showSidenav: A,
|
|
5075
5071
|
sidenavOpen: w,
|
|
5076
5072
|
showSecondaryPanel: B,
|
|
@@ -5078,66 +5074,66 @@ const Gu = 250, Uu = 200, Kn = 320, Zu = (t, e) => {
|
|
|
5078
5074
|
hasSidePanel: N,
|
|
5079
5075
|
sidePanelMode: h,
|
|
5080
5076
|
setPanelOpen: q
|
|
5081
|
-
}), se = x || v ? /* @__PURE__ */ u(
|
|
5077
|
+
}), se = x || v ? /* @__PURE__ */ u(zu, { workbench: e, hasSideHeader: x }) : void 0, U = Zu({
|
|
5082
5078
|
mounted: D,
|
|
5083
5079
|
mode: h,
|
|
5084
5080
|
attachedSlot: d,
|
|
5085
5081
|
floatingSlot: c
|
|
5086
5082
|
});
|
|
5087
|
-
|
|
5083
|
+
Yn(() => {
|
|
5088
5084
|
const V = f.current;
|
|
5089
5085
|
V && (U ? V.parentNode !== U && U.appendChild(V) : !D && V.parentNode && V.parentNode.removeChild(V));
|
|
5090
5086
|
}, [U, D]);
|
|
5091
5087
|
const j = /* @__PURE__ */ H(he, { direction: "column", h: "full", minH: "0", minW: "0", w: "full", children: [
|
|
5092
|
-
/* @__PURE__ */ u(Hd, { workbench: e, hasNav:
|
|
5093
|
-
/* @__PURE__ */ u(he, { flex: "1", minH: "0", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(
|
|
5094
|
-
] }), ae = A ? /* @__PURE__ */ u(
|
|
5088
|
+
/* @__PURE__ */ u(Hd, { workbench: e, hasNav: I, regionControls: re }),
|
|
5089
|
+
/* @__PURE__ */ u(he, { flex: "1", minH: "0", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(Wu, { workbench: e }) })
|
|
5090
|
+
] }), ae = A ? /* @__PURE__ */ u(ft, { flex: "1", minH: "0", minW: "0", resizablePanel: /* @__PURE__ */ u(_u, { workbench: e, contextActions: s }), contentPanel: j, collapsed: !w, collapsible: $, defaultSizePx: M.defaultPx, minSizePx: M.minPx, maxSizePx: M.maxPx, contentMinSizePx: Kn, resizeLabel: "Resize sidenav", onSizeChange: (V) => e.layout.setRegionSize("sidenav", V), onCollapsedChange: (V) => {
|
|
5095
5091
|
(!V || $) && q("sidenav", !V);
|
|
5096
|
-
} }) : j, le = /* @__PURE__ */ H(he, { position: "relative", h: "full", minH: "0", minW: "0", w: "full", bg:
|
|
5097
|
-
|
|
5092
|
+
} }) : j, le = /* @__PURE__ */ H(he, { position: "relative", h: "full", minH: "0", minW: "0", w: "full", bg: Y.main, color: "fg", children: [
|
|
5093
|
+
P ? /* @__PURE__ */ u(Au, { workbench: e }) : null,
|
|
5098
5094
|
/* @__PURE__ */ u(he, { flex: "1", minH: "0", minW: "0", overflow: "hidden", position: "relative", children: ae }),
|
|
5099
5095
|
/* @__PURE__ */ u(_d, { workbench: e })
|
|
5100
5096
|
] });
|
|
5101
|
-
return /* @__PURE__ */ H(
|
|
5097
|
+
return /* @__PURE__ */ H(Pd, { h: "full", minH: "0", minW: "0", w: "full", children: [
|
|
5102
5098
|
/* @__PURE__ */ H(he, { direction: "column", h: "full", minH: "0", minW: "0", position: "relative", w: "full", children: [
|
|
5103
5099
|
r,
|
|
5104
|
-
/* @__PURE__ */ u(he, { flex: "1", minH: "0", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(
|
|
5105
|
-
_ ? /* @__PURE__ */ u(
|
|
5106
|
-
N && S ? /* @__PURE__ */ u(cd, { workbench: e, bubbleIcon: i, onOpen: o, contentSlotRef: m, bottomOffset: _ ?
|
|
5107
|
-
/* @__PURE__ */ u(
|
|
5108
|
-
/* @__PURE__ */ u(
|
|
5109
|
-
/* @__PURE__ */ u(
|
|
5100
|
+
/* @__PURE__ */ u(he, { flex: "1", minH: "0", minW: "0", overflow: "hidden", py: "panel-gap", pr: "panel-gap", pl: P ? "0" : "panel-gap", children: /* @__PURE__ */ u(Ku, { workbench: e, showAttachedSidePanel: O, contentFrame: le, sideHeader: se, contentMinSizePx: Kn, onAttachedSlotChange: a }) }),
|
|
5101
|
+
_ ? /* @__PURE__ */ u(Mu, { workbench: e }) : null,
|
|
5102
|
+
N && S ? /* @__PURE__ */ u(cd, { workbench: e, bubbleIcon: i, onOpen: o, contentSlotRef: m, bottomOffset: _ ? Ko : void 0, header: se }) : null,
|
|
5103
|
+
/* @__PURE__ */ u(hs, { workbench: e, open: p, initialQuery: g, renderParamField: n, onClose: () => e.commandPalette.close() }),
|
|
5104
|
+
/* @__PURE__ */ u(zs, { workbench: e }),
|
|
5105
|
+
/* @__PURE__ */ u(el, { workbench: e })
|
|
5110
5106
|
] }),
|
|
5111
|
-
/* @__PURE__ */ u(
|
|
5107
|
+
/* @__PURE__ */ u(Ou, { workbench: e, hasSidePanel: N, mounted: D, sidePanelHost: f.current })
|
|
5112
5108
|
] });
|
|
5113
|
-
},
|
|
5114
|
-
const e = k(9), n = Sd(t.workbench), i = E(t.workbench.modes.store,
|
|
5109
|
+
}, Tm = (t) => {
|
|
5110
|
+
const e = k(9), n = Sd(t.workbench), i = E(t.workbench.modes.store, om), o = bu(t.workbench), r = i?.defaultTheme, s = i?.defaultTheme ? i.id : void 0;
|
|
5115
5111
|
let l;
|
|
5116
|
-
e[0] !== t ? (l = /* @__PURE__ */ u(
|
|
5112
|
+
e[0] !== t ? (l = /* @__PURE__ */ u(Ju, { ...t }), e[0] = t, e[1] = l) : l = e[1];
|
|
5117
5113
|
let d;
|
|
5118
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ u(
|
|
5114
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ u(wi, {}), e[2] = d) : d = e[2];
|
|
5119
5115
|
let a;
|
|
5120
|
-
return e[3] !== o || e[4] !== r || e[5] !== s || e[6] !== l || e[7] !== n ? (a = /* @__PURE__ */ H(
|
|
5116
|
+
return e[3] !== o || e[4] !== r || e[5] !== s || e[6] !== l || e[7] !== n ? (a = /* @__PURE__ */ H(Id, { themePreferences: n, fileIconThemePreferences: o, defaultThemePreference: r, preferenceScope: s, children: [
|
|
5121
5117
|
l,
|
|
5122
5118
|
d
|
|
5123
5119
|
] }), e[3] = o, e[4] = r, e[5] = s, e[6] = l, e[7] = n, e[8] = a) : a = e[8], a;
|
|
5124
5120
|
};
|
|
5125
|
-
function
|
|
5121
|
+
function em(t) {
|
|
5126
5122
|
return t.items;
|
|
5127
5123
|
}
|
|
5128
|
-
function
|
|
5124
|
+
function tm(t) {
|
|
5129
5125
|
return t.values;
|
|
5130
5126
|
}
|
|
5131
|
-
function
|
|
5127
|
+
function nm(t) {
|
|
5132
5128
|
return t.activeModeId;
|
|
5133
5129
|
}
|
|
5134
|
-
function
|
|
5130
|
+
function om(t) {
|
|
5135
5131
|
return t.activeModeId ? t.modes[t.activeModeId] : void 0;
|
|
5136
5132
|
}
|
|
5137
5133
|
const qn = (t) => {
|
|
5138
5134
|
for (const e of t.values()) e.disposable.dispose();
|
|
5139
5135
|
t.clear();
|
|
5140
|
-
},
|
|
5136
|
+
}, im = (t, e, n) => {
|
|
5141
5137
|
const i = new Set(n.map((o) => o.id));
|
|
5142
5138
|
for (const [o, r] of e)
|
|
5143
5139
|
i.has(o) || (r.disposable.dispose(), e.delete(o));
|
|
@@ -5145,7 +5141,7 @@ const qn = (t) => {
|
|
|
5145
5141
|
e.has(o.id) || e.set(o.id, {
|
|
5146
5142
|
disposable: t.registerModule(o)
|
|
5147
5143
|
});
|
|
5148
|
-
},
|
|
5144
|
+
}, _m = (t) => {
|
|
5149
5145
|
const e = k(7), {
|
|
5150
5146
|
workbench: n,
|
|
5151
5147
|
modules: i
|
|
@@ -5155,58 +5151,58 @@ const qn = (t) => {
|
|
|
5155
5151
|
const s = pe(r);
|
|
5156
5152
|
let l, d;
|
|
5157
5153
|
e[1] !== i || e[2] !== n ? (l = () => {
|
|
5158
|
-
o.current !== n && (qn(s.current), o.current = n),
|
|
5154
|
+
o.current !== n && (qn(s.current), o.current = n), im(n, s.current, i);
|
|
5159
5155
|
}, d = [i, n], e[1] = i, e[2] = n, e[3] = l, e[4] = d) : (l = e[3], d = e[4]), ue(l, d);
|
|
5160
5156
|
let a, c;
|
|
5161
5157
|
return e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = () => () => qn(s.current), c = [], e[5] = a, e[6] = c) : (a = e[5], c = e[6]), ue(a, c), null;
|
|
5162
5158
|
};
|
|
5163
5159
|
export {
|
|
5164
|
-
|
|
5160
|
+
It as WORKBENCH_SETTINGS_NAV_WIDGET_ID,
|
|
5165
5161
|
gn as WORKBENCH_SETTINGS_OPEN_COMMAND_ID,
|
|
5166
|
-
|
|
5167
|
-
|
|
5162
|
+
qc as WORKBENCH_SETTINGS_PANEL_WIDGET_ID,
|
|
5163
|
+
Kc as WORKBENCH_SETTINGS_WIDGET_ID,
|
|
5168
5164
|
En as WORKBENCH_TERMINAL_OPEN_COMMAND_ID,
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5165
|
+
Rm as WORKBENCH_TERMINAL_PANEL_SIZE,
|
|
5166
|
+
$e as WORKBENCH_TERMINAL_WIDGET_ID,
|
|
5167
|
+
Tm as Workbench,
|
|
5172
5168
|
ad as WorkbenchAttachedSidePanel,
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5169
|
+
hr as WorkbenchBreadcrumbView,
|
|
5170
|
+
hs as WorkbenchCommandPalette,
|
|
5171
|
+
ta as WorkbenchDataTableView,
|
|
5176
5172
|
cd as WorkbenchFloatingSidePanel,
|
|
5177
|
-
|
|
5173
|
+
nt as WorkbenchFocusRegion,
|
|
5178
5174
|
Jt as WorkbenchHeaderActions,
|
|
5179
5175
|
L as WorkbenchIcon,
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5176
|
+
zs as WorkbenchKeybindingDispatcher,
|
|
5177
|
+
_m as WorkbenchModuleHost,
|
|
5178
|
+
el as WorkbenchNotificationHost,
|
|
5183
5179
|
_d as WorkbenchOverlayLayer,
|
|
5184
5180
|
Ia as WorkbenchPreferencesForm,
|
|
5185
|
-
|
|
5181
|
+
Pe as WorkbenchRegion,
|
|
5186
5182
|
pn as WorkbenchRegionTabs,
|
|
5187
5183
|
fd as WorkbenchTerminalPanel,
|
|
5188
|
-
|
|
5189
|
-
|
|
5184
|
+
Id as WorkbenchThemeProvider,
|
|
5185
|
+
Pd as WorkbenchThemeScope,
|
|
5190
5186
|
Wo as WorkbenchTreeView,
|
|
5191
5187
|
$t as WorkbenchWidgetHost,
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5188
|
+
$m as WorkflowStatusSettings,
|
|
5189
|
+
Fr as commandParamName,
|
|
5190
|
+
Ze as createCommandFilesParamValue,
|
|
5195
5191
|
md as createControllerTerminalBridge,
|
|
5196
5192
|
fo as createTreeContextMenuItems,
|
|
5197
|
-
|
|
5193
|
+
Os as createWorkbenchHotkeyRegistrations,
|
|
5198
5194
|
Qs as createWorkbenchResourceActions,
|
|
5199
|
-
|
|
5200
|
-
|
|
5195
|
+
km as createWorkbenchSettingsModule,
|
|
5196
|
+
Wm as createWorkbenchTerminalModule,
|
|
5201
5197
|
qn as disposeWorkbenchModuleHostRegistrations,
|
|
5202
|
-
|
|
5203
|
-
|
|
5198
|
+
De as isCommandFilesParamValue,
|
|
5199
|
+
Cm as listWorkbenchMenuItems,
|
|
5204
5200
|
Rn as normalizeWorkbenchKeybinding,
|
|
5205
5201
|
vd as openWorkbenchTerminal,
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5202
|
+
Sa as paramValueToPreference,
|
|
5203
|
+
va as preferenceSchemaToParams,
|
|
5204
|
+
jr as readCommandParamValue,
|
|
5205
|
+
im as syncWorkbenchModuleHostRegistrations,
|
|
5210
5206
|
mn as useWorkbenchResourceActionResolver,
|
|
5211
5207
|
E as useWorkbenchStore,
|
|
5212
5208
|
Sd as useWorkbenchThemePreferences
|