@pstdio/workbench 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react.d.ts +2 -0
- package/dist/react.js +1002 -1007
- package/dist/react.js.map +1 -1
- package/dist/webview-runtime.js +1 -1
- package/dist/webview-runtime.js.map +1 -1
- package/package.json +3 -3
package/dist/react.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
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 We, Dialog as ye, Stack as _e, CloseButton as
|
|
4
|
-
import { Breadcrumb as
|
|
5
|
-
import { u as
|
|
6
|
-
import { a as
|
|
7
|
-
import { useState as Q, useEffect as ue, Fragment as
|
|
3
|
+
import { Text as me, HStack as We, Dialog as ye, Stack as _e, CloseButton as jn, Button as Be, Box as F, Menu as oe, IconButton as we, Portal as Je, Icon as Go, Center as tn, Flex as he, Tabs as nn, Skeleton as Uo, InputGroup as Zo, Input as Qo, Spinner as Xo, Grid as Sn } from "@chakra-ui/react";
|
|
4
|
+
import { Breadcrumb as Yo, SessionIndicator as Jo, ParamEditorRow as ei, ScrollArea as Ne, handleDialogAcceptShortcut as ti, useThemePreference as Gn, Palette as ni, PaletteShortcut as mt, ListRow as ft, Tooltip as Pe, toaster as wt, PANEL_HEADER_CONTROL_SIZE as et, useTabVisibilityStore as oi, filterVisibleTabs as ii, buildTabVisibilityMenuActions as ri, PANEL_HEADER_TAB_SIZE as si, EmptyState as He, ParamEditor as Un, TreeList as Qt, Header as De, useTreeListVisibilityStore as rt, useTreeListOrderStore as ze, applyTreeListOrder as li, filterVisibleSections as Ht, buildTreeVisibilityMenuActions as ai, resolveVisibility as ci, TreeListDragProvider as di, ResizableSplitLayout as ht, AttachedMenu as ui, AttachedPanel as mi, BubbleButton as fi, BubblePanel as hi, defaultThemePreferences as pi, ThemePreferenceProvider as gi, ChakraProvider as bi, psTheme as yi, FileIconThemePreferenceProvider as vi, ResourceActionMenu as Si, ResourceContextMenu as wi, Toaster as Pi } from "@pstdio/ui";
|
|
5
|
+
import { u as E, W as L, c as Ii } from "./workspaces-DJwFj8uq.js";
|
|
6
|
+
import { a as Em } from "./workspaces-DJwFj8uq.js";
|
|
7
|
+
import { useState as Q, useEffect as ue, Fragment as Zn, useRef as pe, useSyncExternalStore as Qn, useContext as xi, createContext as Ci, createElement as Ye, Suspense as ki, lazy as Ri, useLayoutEffect as Xn } from "react";
|
|
8
8
|
import { resourceKey as ge } from "@pstdio/sdk/extensions";
|
|
9
|
-
import { Terminal as
|
|
10
|
-
import { w as
|
|
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 Wi, Search as Ti, Minimize2 as _i, MessageCircle as Ai } from "lucide-react";
|
|
10
|
+
import { w as Yn, b as Mi, X as Wt, R as Jn, a0 as $i, _ as Ei, $ as Ni, a2 as eo, T as Oi, a3 as Y, t as Tt, v as to, a4 as on, a5 as zi, a6 as pt, a7 as rn, H as _t, a8 as sn, x as ln, V as Bi, Z as Hi, U as Di, G as Vi } from "./workbench-renderers-DmsrBGC7.js";
|
|
11
|
+
import { w as Li, r as no, c as Fi, d as Ki, e as qi, a as ji } from "./workbench-menu-paths-B_QJzcNU.js";
|
|
12
|
+
import { useHotkeys as Gi } from "@tanstack/react-hotkeys";
|
|
13
|
+
import { useSensors as Ui, useSensor as Zi, PointerSensor as Qi, DndContext as Xi, closestCenter as Yi } from "@dnd-kit/core";
|
|
14
|
+
import { useSortable as Ji, SortableContext as er, horizontalListSortingStrategy as tr } from "@dnd-kit/sortable";
|
|
15
|
+
import { CSS as nr } from "@dnd-kit/utilities";
|
|
16
|
+
import { DataTable as or, DataTableSkeleton as ir } from "@pstdio/ui/data-table";
|
|
17
|
+
import { DiffBubble as rr } from "@pstdio/ui/diff";
|
|
18
|
+
import { useShallow as sr } from "zustand/react/shallow";
|
|
19
|
+
import { Terminal as lr } from "@pstdio/ui/terminal";
|
|
20
|
+
import { useKanbanRendererStore as wn, KanbanRenderer as ar, isAttributesSource as cr } from "@pstdio/ui/kanban-renderer";
|
|
21
|
+
import { createPortal as dr } from "react-dom";
|
|
22
|
+
const ur = (t) => typeof t.resource?.metadata?.status == "string" ? t.resource.metadata.status : void 0, mr = (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 = ur(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(Jo, { 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
|
+
}, fr = (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(mr, { 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;
|
|
@@ -47,27 +47,27 @@ const mr = (t) => typeof t.resource?.metadata?.status == "string" ? t.resource.m
|
|
|
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
|
+
}, hr = (t) => (t ?? []).map((e) => ({
|
|
51
|
+
title: /* @__PURE__ */ u(fr, { item: e }),
|
|
52
52
|
url: e.url,
|
|
53
53
|
onClick: e.onClick
|
|
54
|
-
})),
|
|
54
|
+
})), pr = (t) => {
|
|
55
55
|
const e = k(4), {
|
|
56
56
|
workbench: n
|
|
57
|
-
} = t, i =
|
|
57
|
+
} = t, i = E(n.breadcrumbs.store, gr) ?? [];
|
|
58
58
|
if (i.length === 0)
|
|
59
59
|
return null;
|
|
60
60
|
let o;
|
|
61
|
-
e[0] !== i ? (o =
|
|
61
|
+
e[0] !== i ? (o = hr(i), e[0] = i, e[1] = o) : o = e[1];
|
|
62
62
|
let r;
|
|
63
|
-
return e[2] !== o ? (r = /* @__PURE__ */ u(
|
|
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 gr(t) {
|
|
66
66
|
return t.items;
|
|
67
67
|
}
|
|
68
68
|
const oo = (t) => {
|
|
69
69
|
"use no memo";
|
|
70
|
-
return
|
|
70
|
+
return E(t.layout.store, (e) => e), E(t.modes.store, (e) => e.activeModeId), E(t.commands.store, (e) => e), E(t.context.store, (e) => e), {
|
|
71
71
|
main: t.composition.panelsFor("main"),
|
|
72
72
|
secondary: t.composition.panelsFor("secondary"),
|
|
73
73
|
side: t.composition.panelsFor("side")
|
|
@@ -85,7 +85,7 @@ const oo = (t) => {
|
|
|
85
85
|
panel: ke("panel.background", Qe.panel),
|
|
86
86
|
statusBar: ke("statusBar.background", ke("sideBar.background", Qe.statusBar)),
|
|
87
87
|
widget: ke("editorWidget.background", ke("panel.background", Qe.panel))
|
|
88
|
-
},
|
|
88
|
+
}, br = {
|
|
89
89
|
nav: Z.main,
|
|
90
90
|
activity: Z.activityBar,
|
|
91
91
|
sidenav: Z.sidenav,
|
|
@@ -105,13 +105,13 @@ const oo = (t) => {
|
|
|
105
105
|
"side-right-menu": Z.widget
|
|
106
106
|
};
|
|
107
107
|
ke("focusBorder", "var(--chakra-colors-color-palette-focus-ring)");
|
|
108
|
-
const
|
|
108
|
+
const yr = Z.widget, vr = (t) => br[t], Sr = (t) => {
|
|
109
109
|
const e = t.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[-_]+/g, " ").trim();
|
|
110
110
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
111
111
|
}, ct = (t) => typeof t == "object" && t !== null && !Array.isArray(t), an = (t) => !ct(t) || !ct(t.file) ? !1 : typeof t.id == "string" && typeof t.file.name == "string" && typeof t.status == "string", Ve = (t) => ct(t) && Array.isArray(t.refs) && t.refs.every((e) => typeof e == "string") && Array.isArray(t.uploads) && t.uploads.every(an), Xe = (t = {}) => ({
|
|
112
112
|
refs: [...t.refs ?? []],
|
|
113
113
|
uploads: [...t.uploads ?? []]
|
|
114
|
-
}),
|
|
114
|
+
}), wr = (t, e) => {
|
|
115
115
|
const n = Ve(t) ? Xe(t) : Xe({
|
|
116
116
|
refs: Array.isArray(t) ? t.filter((i) => typeof i == "string") : [],
|
|
117
117
|
uploads: Array.isArray(t) ? t.filter(an) : []
|
|
@@ -121,16 +121,16 @@ const vr = Z.widget, Sr = (t) => yr[t], wr = (t) => {
|
|
|
121
121
|
}) : Xe({
|
|
122
122
|
refs: n.refs.slice(0, 1)
|
|
123
123
|
});
|
|
124
|
-
},
|
|
124
|
+
}, Pr = (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()), xr = (t, e) => {
|
|
125
125
|
const n = t?.[e];
|
|
126
126
|
if (typeof n == "string") return n;
|
|
127
127
|
if (typeof n == "number") return String(n);
|
|
128
|
-
},
|
|
128
|
+
}, Cr = (t, e) => {
|
|
129
129
|
const n = e?.resource;
|
|
130
130
|
if (!n) return;
|
|
131
|
-
const i =
|
|
131
|
+
const i = xr(n.metadata, t.key);
|
|
132
132
|
if (i !== void 0) return i;
|
|
133
|
-
if (t.key === `${
|
|
133
|
+
if (t.key === `${Ir(n.type)}Id`) return n.id ?? ge(n);
|
|
134
134
|
if (t.type === "resource" && (!t.resourceType || t.resourceType === n.type))
|
|
135
135
|
return {
|
|
136
136
|
type: n.type,
|
|
@@ -142,79 +142,79 @@ const vr = Z.widget, Sr = (t) => yr[t], wr = (t) => {
|
|
|
142
142
|
metadata: n.metadata
|
|
143
143
|
} : {}
|
|
144
144
|
};
|
|
145
|
-
},
|
|
145
|
+
}, kr = (t) => {
|
|
146
146
|
if (!t) return t;
|
|
147
147
|
const e = /* @__PURE__ */ new Set();
|
|
148
148
|
return t.filter((n) => e.has(n.value) ? !1 : (e.add(n.value), !0));
|
|
149
149
|
}, tt = (t) => At(t).length > 0, At = (t) => Object.entries(t ?? {}).flatMap(([e, n]) => n.resolvedFrom === "resource" ? [] : [{
|
|
150
150
|
...n,
|
|
151
|
-
options:
|
|
151
|
+
options: kr(n.options),
|
|
152
152
|
key: e,
|
|
153
|
-
label: n.label ??
|
|
153
|
+
label: n.label ?? Sr(e)
|
|
154
154
|
}]), Pn = (t, e, n) => {
|
|
155
155
|
const i = ct(e) ? e : {}, o = {};
|
|
156
156
|
for (const r of At(t)) {
|
|
157
|
-
const s = Object.hasOwn(i, r.key) ? i[r.key] :
|
|
157
|
+
const s = Object.hasOwn(i, r.key) ? i[r.key] : Cr(r, n) ?? r.defaultValue;
|
|
158
158
|
if (r.type === "boolean") {
|
|
159
159
|
o[r.key] = s === void 0 ? void 0 : s === !0 || s === "true";
|
|
160
160
|
continue;
|
|
161
161
|
}
|
|
162
162
|
if (r.type === "files") {
|
|
163
|
-
o[r.key] =
|
|
163
|
+
o[r.key] = wr(s, r.multiple);
|
|
164
164
|
continue;
|
|
165
165
|
}
|
|
166
166
|
if (r.type === "multi-select") {
|
|
167
167
|
o[r.key] = Array.isArray(s) ? s.map(String) : [];
|
|
168
168
|
continue;
|
|
169
169
|
}
|
|
170
|
-
o[r.key] =
|
|
170
|
+
o[r.key] = Pr(s);
|
|
171
171
|
}
|
|
172
172
|
return o;
|
|
173
|
-
},
|
|
173
|
+
}, Rr = (t) => Ve(t) ? t.refs.length === 0 && t.uploads.length === 0 : t === void 0 || t === "" || Array.isArray(t) && t.length === 0, Wr = (t, e) => {
|
|
174
174
|
if (typeof e != "string") return e;
|
|
175
175
|
try {
|
|
176
176
|
return JSON.parse(e);
|
|
177
177
|
} catch {
|
|
178
178
|
throw new Error(`Invalid JSON for ${t.label}`);
|
|
179
179
|
}
|
|
180
|
-
},
|
|
180
|
+
}, Tr = (t, e) => {
|
|
181
181
|
if (t.type === "number") {
|
|
182
182
|
const n = Number(e);
|
|
183
183
|
if (!Number.isFinite(n)) throw new Error(`Invalid number for ${t.label}`);
|
|
184
184
|
return n;
|
|
185
185
|
}
|
|
186
|
-
return t.type === "boolean" ? e === !0 || e === "true" : t.type === "files" ? Ve(e) ? e : Xe() : t.type === "json" || t.type === "resource" || t.type === "repo" || t.type === "harness" ?
|
|
187
|
-
},
|
|
186
|
+
return t.type === "boolean" ? e === !0 || e === "true" : t.type === "files" ? Ve(e) ? e : Xe() : t.type === "json" || t.type === "resource" || t.type === "repo" || t.type === "harness" ? Wr(t, e) : t.type === "multi-select" ? Array.isArray(e) ? e : String(e).split(",").filter(Boolean) : String(e ?? "");
|
|
187
|
+
}, _r = (t, e) => {
|
|
188
188
|
const n = {};
|
|
189
189
|
for (const i of At(t)) {
|
|
190
190
|
const o = e[i.key];
|
|
191
|
-
if (
|
|
191
|
+
if (Rr(o)) {
|
|
192
192
|
if (i.required) throw new Error(`Missing required parameter: ${i.label}`);
|
|
193
193
|
continue;
|
|
194
194
|
}
|
|
195
|
-
n[i.key] =
|
|
195
|
+
n[i.key] = Tr(i, o);
|
|
196
196
|
}
|
|
197
197
|
return n;
|
|
198
|
-
},
|
|
198
|
+
}, Ar = (t, e) => ({
|
|
199
199
|
...ct(t) ? t : {},
|
|
200
200
|
...e
|
|
201
|
-
}), cn = "search", gt = "command", io = "theme",
|
|
201
|
+
}), cn = "search", gt = "command", io = "theme", Mr = [{
|
|
202
202
|
id: cn
|
|
203
203
|
}, {
|
|
204
204
|
id: gt,
|
|
205
205
|
inputPrefix: ">"
|
|
206
|
-
}], nt = (t) => t === io, ro = nt,
|
|
206
|
+
}], nt = (t) => t === io, ro = nt, $r = (t) => {
|
|
207
207
|
if (nt(t)) return io;
|
|
208
|
-
},
|
|
208
|
+
}, Er = (t) => {
|
|
209
209
|
if (!ro(t))
|
|
210
|
-
return
|
|
211
|
-
},
|
|
210
|
+
return Mr;
|
|
211
|
+
}, Nr = (t) => nt(t.view) ? t.themeInitialActiveIndex : 0, Or = (t) => nt(t.view) ? /* @__PURE__ */ u(L, { name: "Palette", size: 16 }) : t.mode === gt ? /* @__PURE__ */ u(Wi, { size: 16, "aria-hidden": "true" }) : /* @__PURE__ */ u(Ti, { size: 16, "aria-hidden": "true" }), zr = (t) => nt(t.view) ? "Search themes" : t.mode === gt ? "Run command" : "Search resources", Br = 25, Hr = 150, Dr = (t) => {
|
|
212
212
|
const e = k(12), {
|
|
213
213
|
workbench: n,
|
|
214
214
|
query: i,
|
|
215
215
|
open: o,
|
|
216
216
|
onClose: r
|
|
217
|
-
} = t, s =
|
|
217
|
+
} = t, s = E(n.commandPaletteResources.store, Vr);
|
|
218
218
|
let l;
|
|
219
219
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[0] = l) : l = e[0];
|
|
220
220
|
const [d, a] = Q(l);
|
|
@@ -228,7 +228,7 @@ const vr = Z.widget, Sr = (t) => yr[t], wr = (t) => {
|
|
|
228
228
|
const h = setTimeout(() => {
|
|
229
229
|
n.commandPaletteResources.queryProviders({
|
|
230
230
|
query: i,
|
|
231
|
-
limit:
|
|
231
|
+
limit: Br
|
|
232
232
|
}).then((p) => {
|
|
233
233
|
f || a(p.flatMap((g) => g.results.map((w) => ({
|
|
234
234
|
id: `workbench-command-palette-resource:${w.id}`,
|
|
@@ -239,11 +239,11 @@ const vr = Z.widget, Sr = (t) => yr[t], wr = (t) => {
|
|
|
239
239
|
group: w.group ?? g.title,
|
|
240
240
|
icon: w.icon ? /* @__PURE__ */ u(L, { name: w.icon }) : void 0,
|
|
241
241
|
onActivate: () => {
|
|
242
|
-
r(), Promise.resolve(w.activate()).catch(
|
|
242
|
+
r(), Promise.resolve(w.activate()).catch(Lr);
|
|
243
243
|
}
|
|
244
244
|
}))));
|
|
245
245
|
});
|
|
246
|
-
},
|
|
246
|
+
}, Hr);
|
|
247
247
|
return () => {
|
|
248
248
|
f = !0, clearTimeout(h);
|
|
249
249
|
};
|
|
@@ -251,19 +251,19 @@ const vr = Z.widget, Sr = (t) => yr[t], wr = (t) => {
|
|
|
251
251
|
let m;
|
|
252
252
|
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
253
|
};
|
|
254
|
-
function
|
|
254
|
+
function Vr(t) {
|
|
255
255
|
return t.refreshToken;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Lr() {
|
|
258
258
|
}
|
|
259
|
-
const st = (t) => typeof t == "string" ? t : "",
|
|
259
|
+
const st = (t) => typeof t == "string" ? t : "", Fr = (t) => Array.isArray(t) ? t : [], Kr = (t) => `${t.label}${t.required ? " *" : ""}`, In = (t) => (t.options ?? []).map((e) => ({
|
|
260
260
|
id: e.value,
|
|
261
261
|
name: e.label,
|
|
262
262
|
icon: e.icon
|
|
263
|
-
})),
|
|
263
|
+
})), qr = /* @__PURE__ */ new Set(["json", "resource", "repo", "harness"]), jr = (t, e) => {
|
|
264
264
|
const n = {
|
|
265
265
|
id: t.key,
|
|
266
|
-
name:
|
|
266
|
+
name: Kr(t),
|
|
267
267
|
description: t.description
|
|
268
268
|
};
|
|
269
269
|
return t.type === "boolean" ? {
|
|
@@ -287,7 +287,7 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
287
287
|
} : t.type === "multi-select" ? {
|
|
288
288
|
...n,
|
|
289
289
|
type: "selection",
|
|
290
|
-
defaultValue:
|
|
290
|
+
defaultValue: Fr(e),
|
|
291
291
|
options: In(t),
|
|
292
292
|
multiSelect: !0,
|
|
293
293
|
placeholder: `Select ${t.label.toLowerCase()}`,
|
|
@@ -300,7 +300,7 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
300
300
|
placeholder: `Select ${t.label.toLowerCase()}`,
|
|
301
301
|
searchable: t.options.length > 5,
|
|
302
302
|
clearable: !t.required
|
|
303
|
-
} : t.type === "longtext" ||
|
|
303
|
+
} : t.type === "longtext" || qr.has(t.type) ? {
|
|
304
304
|
...n,
|
|
305
305
|
type: "text",
|
|
306
306
|
defaultValue: st(e),
|
|
@@ -311,9 +311,9 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
311
311
|
defaultValue: st(e),
|
|
312
312
|
singleLine: !0
|
|
313
313
|
};
|
|
314
|
-
},
|
|
314
|
+
}, Gr = (t, e) => typeof t == "boolean" ? t : e?.type === "files" ? Xe({
|
|
315
315
|
uploads: Array.isArray(t) ? t.filter(an) : []
|
|
316
|
-
}) : Array.isArray(t) ? t.map(String) : String(t ?? ""),
|
|
316
|
+
}) : Array.isArray(t) ? t.map(String) : String(t ?? ""), Ur = (t) => {
|
|
317
317
|
const e = k(13), {
|
|
318
318
|
entry: n,
|
|
319
319
|
value: i,
|
|
@@ -322,7 +322,7 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
322
322
|
} = t;
|
|
323
323
|
let s;
|
|
324
324
|
e[0] !== n || e[1] !== r || e[2] !== i ? (s = (m) => {
|
|
325
|
-
const f =
|
|
325
|
+
const f = Gr(m, n);
|
|
326
326
|
if (n.type !== "files" || !Ve(i) || !Ve(f)) {
|
|
327
327
|
r(f);
|
|
328
328
|
return;
|
|
@@ -335,12 +335,12 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
335
335
|
}, e[0] = n, e[1] = r, e[2] = i, e[3] = s) : s = e[3];
|
|
336
336
|
const l = s;
|
|
337
337
|
let d;
|
|
338
|
-
e[4] !== n || e[5] !== i ? (d =
|
|
338
|
+
e[4] !== n || e[5] !== i ? (d = jr(n, i), e[4] = n, e[5] = i, e[6] = d) : d = e[6];
|
|
339
339
|
let a;
|
|
340
340
|
e[7] !== l ? (a = (m, f) => l(f), e[7] = l, e[8] = a) : a = e[8];
|
|
341
341
|
let c;
|
|
342
|
-
return e[9] !== o || e[10] !== d || e[11] !== a ? (c = /* @__PURE__ */ u(
|
|
343
|
-
},
|
|
342
|
+
return e[9] !== o || e[10] !== d || e[11] !== a ? (c = /* @__PURE__ */ u(ei, { param: d, readOnly: o, onChange: a }), e[9] = o, e[10] = d, e[11] = a, e[12] = c) : c = e[12], c;
|
|
343
|
+
}, Zr = (t, e) => t.type === "boolean" ? e !== void 0 : Ve(e) ? e.refs.length + e.uploads.length > 0 : (Array.isArray(e) || typeof e == "string") && e.length > 0, so = (t) => {
|
|
344
344
|
const {
|
|
345
345
|
request: e,
|
|
346
346
|
renderParamField: n,
|
|
@@ -362,7 +362,7 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
362
362
|
if (!(!e || c)) {
|
|
363
363
|
m(!0), a(void 0);
|
|
364
364
|
try {
|
|
365
|
-
const y =
|
|
365
|
+
const y = _r(e.record.command.params, s), b = Ar(e.args, y), v = i ? await i({
|
|
366
366
|
commandId: e.record.command.id,
|
|
367
367
|
args: b,
|
|
368
368
|
context: e.context,
|
|
@@ -380,10 +380,10 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
380
380
|
m(!1);
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
}, w = f.every((y) => !y.required ||
|
|
383
|
+
}, w = f.every((y) => !y.required || Zr(y, s[y.key]));
|
|
384
384
|
return /* @__PURE__ */ H(ye.Root, { open: e !== null, size: "lg", scrollBehavior: "inside", onOpenChange: (y) => !y.open && h(), children: [
|
|
385
385
|
/* @__PURE__ */ u(ye.Backdrop, {}),
|
|
386
|
-
/* @__PURE__ */ u(ye.Positioner, { children: /* @__PURE__ */ H(ye.Content, { display: "flex", flexDirection: "column", maxH: "calc(100% - 48px)", onKeyDownCapture: (y) =>
|
|
386
|
+
/* @__PURE__ */ u(ye.Positioner, { children: /* @__PURE__ */ H(ye.Content, { display: "flex", flexDirection: "column", maxH: "calc(100% - 48px)", onKeyDownCapture: (y) => ti(y, () => {
|
|
387
387
|
g();
|
|
388
388
|
}, w && !c), children: [
|
|
389
389
|
/* @__PURE__ */ H(ye.Header, { children: [
|
|
@@ -391,7 +391,7 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
391
391
|
/* @__PURE__ */ u(me, { textStyle: "heading/M/semibold", children: e?.label ?? "Run command" }),
|
|
392
392
|
e?.record.command.description ? /* @__PURE__ */ u(me, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: e.record.command.description }) : null
|
|
393
393
|
] }),
|
|
394
|
-
/* @__PURE__ */ u(ye.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ u(
|
|
394
|
+
/* @__PURE__ */ u(ye.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ u(jn, { size: "sm", disabled: c }) })
|
|
395
395
|
] }),
|
|
396
396
|
/* @__PURE__ */ u(ye.Body, { flex: "1", minH: "0", p: "0", children: /* @__PURE__ */ u(Ne, { h: "full", contentProps: {
|
|
397
397
|
px: "sm",
|
|
@@ -407,7 +407,7 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
407
407
|
...b,
|
|
408
408
|
context: e?.context
|
|
409
409
|
});
|
|
410
|
-
return /* @__PURE__ */ u(
|
|
410
|
+
return /* @__PURE__ */ u(Zn, { children: v ?? /* @__PURE__ */ u(Ur, { ...b }) }, y.key);
|
|
411
411
|
}),
|
|
412
412
|
d ? /* @__PURE__ */ u(me, { textStyle: "paragraph/S/regular", color: "fg.error", px: "sm", pt: "xs", children: d }) : null
|
|
413
413
|
] }) }) }),
|
|
@@ -419,7 +419,7 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
419
419
|
] }) })
|
|
420
420
|
] }) })
|
|
421
421
|
] });
|
|
422
|
-
},
|
|
422
|
+
}, Qr = (t) => t === "secondary" ? "Secondary" : t === "side" ? "Side" : "Main", lo = (t) => {
|
|
423
423
|
const {
|
|
424
424
|
open: e,
|
|
425
425
|
pinned: n,
|
|
@@ -450,14 +450,14 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
i === "secondary" && s.shell.setRegionOpen("secondary", !0), i === "side" && s.sidePanel.getMode() === "closed" && s.sidePanel.setMode("attached");
|
|
453
|
-
},
|
|
453
|
+
}, Xr = (t) => {
|
|
454
454
|
const {
|
|
455
455
|
onClose: e,
|
|
456
456
|
panelsByRegion: n,
|
|
457
457
|
workbench: i
|
|
458
458
|
} = t, o = i.getPrimaryResource();
|
|
459
|
-
return
|
|
460
|
-
const l = s.contribution, d =
|
|
459
|
+
return Yn.flatMap((r) => (n?.[r] ?? i.composition.panelsFor(r)).addable.map((s) => {
|
|
460
|
+
const l = s.contribution, d = Qr(r), a = `Open ${l.title} in ${d} Panel`;
|
|
461
461
|
return {
|
|
462
462
|
id: `workbench-panel:${r}:${l.id}`,
|
|
463
463
|
mode: gt,
|
|
@@ -477,7 +477,7 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
479
|
}));
|
|
480
|
-
},
|
|
480
|
+
}, Yr = (t) => {
|
|
481
481
|
const {
|
|
482
482
|
entry: e,
|
|
483
483
|
onClose: n,
|
|
@@ -500,40 +500,40 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
502
|
};
|
|
503
|
-
},
|
|
503
|
+
}, Jr = (t) => {
|
|
504
504
|
const {
|
|
505
505
|
onClose: e,
|
|
506
506
|
query: n,
|
|
507
507
|
workbench: i
|
|
508
508
|
} = t;
|
|
509
|
-
return i.resources.listResources(n).map((o) =>
|
|
509
|
+
return i.resources.listResources(n).map((o) => Yr({
|
|
510
510
|
workbench: i,
|
|
511
511
|
entry: o,
|
|
512
512
|
onClose: e
|
|
513
513
|
})).filter((o) => o !== void 0);
|
|
514
|
-
},
|
|
514
|
+
}, es = "theme", ts = (t) => t === "pstdio-light" ? "Sun" : t === "pstdio-dark" ? "Moon" : "Palette", Xt = (t) => t.title ?? t.id, ns = (t, e) => {
|
|
515
515
|
const n = e.findIndex((i) => i.id === t);
|
|
516
516
|
return Math.max(n, 0);
|
|
517
|
-
},
|
|
517
|
+
}, os = {
|
|
518
518
|
light: "Light",
|
|
519
519
|
dark: "Dark"
|
|
520
|
-
},
|
|
520
|
+
}, is = (t, e) => t.mode !== e.mode ? t.mode === "light" ? -1 : 1 : Xt(t).localeCompare(Xt(e)), rs = (t) => {
|
|
521
521
|
const {
|
|
522
522
|
onClose: e,
|
|
523
523
|
setThemePreference: n,
|
|
524
524
|
themePreference: i,
|
|
525
525
|
themePreferences: o
|
|
526
526
|
} = t;
|
|
527
|
-
return [...o].sort(
|
|
527
|
+
return [...o].sort(is).map((r) => {
|
|
528
528
|
const s = Xt(r);
|
|
529
529
|
return {
|
|
530
530
|
id: `theme:${r.id}`,
|
|
531
531
|
themePreference: r.id,
|
|
532
|
-
mode:
|
|
532
|
+
mode: es,
|
|
533
533
|
label: s,
|
|
534
534
|
searchText: `theme color appearance ${r.mode} ${r.id} ${s}`,
|
|
535
|
-
group:
|
|
536
|
-
icon: /* @__PURE__ */ u(L, { name:
|
|
535
|
+
group: os[r.mode],
|
|
536
|
+
icon: /* @__PURE__ */ u(L, { name: ts(r.id) }),
|
|
537
537
|
isSelected: r.id === i,
|
|
538
538
|
onActivate: () => {
|
|
539
539
|
n(r.id), e();
|
|
@@ -543,7 +543,7 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
543
543
|
}, Dt = (t, e) => {
|
|
544
544
|
const n = e.current;
|
|
545
545
|
e.current = null, n && t(n.baseTheme);
|
|
546
|
-
},
|
|
546
|
+
}, ss = (t, e) => [e, t.id, t.description, t.category].filter(Boolean).join(" "), ls = (t) => new Map(t.keybindings.listCommandKeybindings().map((e) => [e.commandId, e.keybinding])), as = (t) => t ? /* @__PURE__ */ u(mt, { binding: t }) : void 0, cs = (t) => t instanceof Error ? t.message : "Command failed.", ds = (t) => {
|
|
547
547
|
const e = t.getPrimaryResource();
|
|
548
548
|
return e ? {
|
|
549
549
|
resource: e
|
|
@@ -562,10 +562,10 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
562
562
|
r.notifications.show({
|
|
563
563
|
level: "error",
|
|
564
564
|
title: `${o} failed`,
|
|
565
|
-
message:
|
|
565
|
+
message: cs(s)
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
|
-
},
|
|
568
|
+
}, us = (t) => {
|
|
569
569
|
const {
|
|
570
570
|
action: e,
|
|
571
571
|
onClose: n,
|
|
@@ -581,13 +581,13 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
581
581
|
commandId: o.command.id,
|
|
582
582
|
mode: gt,
|
|
583
583
|
label: d,
|
|
584
|
-
searchText:
|
|
584
|
+
searchText: ss(o.command, d),
|
|
585
585
|
description: o.command.description,
|
|
586
586
|
group: c,
|
|
587
587
|
icon: a ? /* @__PURE__ */ u(L, { name: a }) : void 0,
|
|
588
|
-
shortcut:
|
|
588
|
+
shortcut: as(s.get(o.command.id)),
|
|
589
589
|
onActivate: () => {
|
|
590
|
-
const m =
|
|
590
|
+
const m = ds(r);
|
|
591
591
|
if (n(), tt(o.command.params) && i) {
|
|
592
592
|
i({
|
|
593
593
|
record: o,
|
|
@@ -607,10 +607,10 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
609
|
};
|
|
610
|
-
}, xn = (t) => t.action?.group ?? t.record.command.category ?? "", Cn = (t) => t.action?.order ?? 0,
|
|
610
|
+
}, xn = (t) => t.action?.group ?? t.record.command.category ?? "", Cn = (t) => t.action?.order ?? 0, ms = (t, e) => {
|
|
611
611
|
const n = xn(t).localeCompare(xn(e));
|
|
612
612
|
return n !== 0 ? n : Cn(t) - Cn(e);
|
|
613
|
-
},
|
|
613
|
+
}, fs = (t, e) => e ? t.layout.listMenuItems(e).filter((n) => t.context.matches(n.when)).map((n) => {
|
|
614
614
|
const i = t.commands.getCommand(n.commandId);
|
|
615
615
|
return i ? {
|
|
616
616
|
record: i,
|
|
@@ -619,17 +619,17 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
619
619
|
}).filter((n) => n !== null) : t.commands.listCommands().map((n) => ({
|
|
620
620
|
record: n,
|
|
621
621
|
action: void 0
|
|
622
|
-
})),
|
|
622
|
+
})), hs = (t) => {
|
|
623
623
|
const {
|
|
624
624
|
menuPath: e,
|
|
625
625
|
onClose: n,
|
|
626
626
|
onRequestParams: i,
|
|
627
627
|
workbench: o
|
|
628
|
-
} = t, r =
|
|
629
|
-
return
|
|
628
|
+
} = t, r = ls(o);
|
|
629
|
+
return fs(o, e).sort(ms).map(({
|
|
630
630
|
record: s,
|
|
631
631
|
action: l
|
|
632
|
-
}) =>
|
|
632
|
+
}) => us({
|
|
633
633
|
workbench: o,
|
|
634
634
|
record: s,
|
|
635
635
|
action: l,
|
|
@@ -637,11 +637,11 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
637
637
|
onClose: n,
|
|
638
638
|
onRequestParams: i
|
|
639
639
|
})).filter((s) => s !== null);
|
|
640
|
-
},
|
|
640
|
+
}, ps = (t) => {
|
|
641
641
|
const {
|
|
642
642
|
workbench: e,
|
|
643
643
|
open: n,
|
|
644
|
-
menuPath: i =
|
|
644
|
+
menuPath: i = Li,
|
|
645
645
|
initialQuery: o = "",
|
|
646
646
|
renderParamField: r,
|
|
647
647
|
onClose: s
|
|
@@ -649,7 +649,7 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
649
649
|
themePreference: l,
|
|
650
650
|
themePreferences: d,
|
|
651
651
|
setThemePreference: a
|
|
652
|
-
} =
|
|
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 = Dr({
|
|
653
653
|
workbench: e,
|
|
654
654
|
query: h,
|
|
655
655
|
open: n,
|
|
@@ -662,28 +662,28 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
662
662
|
});
|
|
663
663
|
}, v = () => {
|
|
664
664
|
m.current = null, s();
|
|
665
|
-
}, S =
|
|
665
|
+
}, S = hs({
|
|
666
666
|
workbench: e,
|
|
667
667
|
menuPath: i,
|
|
668
668
|
onClose: s,
|
|
669
669
|
onRequestParams: (A) => e.commandPalette.requestParams(A)
|
|
670
|
-
}), I =
|
|
670
|
+
}), I = Jr({
|
|
671
671
|
workbench: e,
|
|
672
672
|
query: o,
|
|
673
673
|
onClose: s
|
|
674
|
-
}), P =
|
|
674
|
+
}), P = rs({
|
|
675
675
|
themePreference: l,
|
|
676
676
|
themePreferences: d,
|
|
677
677
|
setThemePreference: a,
|
|
678
678
|
onClose: v
|
|
679
|
-
}), x =
|
|
679
|
+
}), x = Xr({
|
|
680
680
|
workbench: e,
|
|
681
681
|
onClose: s,
|
|
682
682
|
panelsByRegion: w
|
|
683
|
-
}), C = [...I, ...g, ...S, ...x, ...P], R =
|
|
683
|
+
}), C = [...I, ...g, ...S, ...x, ...P], R = ns(l, d), W = nt(c), T = Nr({
|
|
684
684
|
view: c,
|
|
685
685
|
themeInitialActiveIndex: R
|
|
686
|
-
}), _ =
|
|
686
|
+
}), _ = $r(c), N = Er(c);
|
|
687
687
|
return ue(() => {
|
|
688
688
|
n && p(o);
|
|
689
689
|
}, [o, n]), ue(() => {
|
|
@@ -709,22 +709,22 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
709
709
|
w: "full"
|
|
710
710
|
},
|
|
711
711
|
"& [data-scope=dialog][data-part=content]": {
|
|
712
|
-
background:
|
|
712
|
+
background: yr
|
|
713
713
|
}
|
|
714
|
-
}, children: /* @__PURE__ */ u(
|
|
714
|
+
}, children: /* @__PURE__ */ u(ni, { open: n, entries: C, initialQuery: o, initialActiveIndex: T, mode: _, modes: N, resetKey: `${c}:${o}`, inputIcon: ({
|
|
715
715
|
mode: A
|
|
716
|
-
}) =>
|
|
716
|
+
}) => Or({
|
|
717
717
|
view: c,
|
|
718
718
|
mode: A
|
|
719
719
|
}), placeholder: ({
|
|
720
720
|
mode: A
|
|
721
|
-
}) =>
|
|
721
|
+
}) => zr({
|
|
722
722
|
view: c,
|
|
723
723
|
mode: A
|
|
724
724
|
}), emptyLabel: "No results found.", onActiveEntryChange: (A) => {
|
|
725
725
|
if (!n || !W) return;
|
|
726
|
-
const
|
|
727
|
-
|
|
726
|
+
const $ = A;
|
|
727
|
+
!$?.themePreference || $.themePreference === l || a($.themePreference);
|
|
728
728
|
}, onQueryChange: p, onClose: y, onEscape: (A) => ro(c) ? (b(), !0) : A.query.length > 0 ? (A.setQuery(""), A.setActiveIndex(0), !0) : (y(), !0) }) }),
|
|
729
729
|
/* @__PURE__ */ u(so, { request: f, renderParamField: r, prepareArgs: (A) => e.commands.prepareCommandArgs(A.commandId, A.args, A.context, A.onArgsChange), onClose: () => e.commandPalette.clearParams(), onRun: (A) => ao({
|
|
730
730
|
workbench: e,
|
|
@@ -740,7 +740,7 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
740
740
|
children: i,
|
|
741
741
|
...n
|
|
742
742
|
} = 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 =
|
|
743
|
+
const s = E(r.focus.store, gs), l = pe(null);
|
|
744
744
|
let d, a;
|
|
745
745
|
e[5] !== s || e[6] !== o ? (d = () => {
|
|
746
746
|
const f = l.current;
|
|
@@ -755,22 +755,22 @@ const st = (t) => typeof t == "string" ? t : "", Kr = (t) => Array.isArray(t) ?
|
|
|
755
755
|
let m;
|
|
756
756
|
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
757
|
};
|
|
758
|
-
function
|
|
758
|
+
function gs(t) {
|
|
759
759
|
return t.activeRegion;
|
|
760
760
|
}
|
|
761
|
-
const
|
|
761
|
+
const bs = (t) => t.join("/"), ys = Ni(""), vs = (t) => t === $i || t === Ei || t.startsWith(ys), Ss = (t) => {
|
|
762
762
|
const e = {};
|
|
763
763
|
for (const [n, i] of Object.entries(t))
|
|
764
|
-
|
|
764
|
+
vs(n) || (e[n] = i);
|
|
765
765
|
return e;
|
|
766
|
-
},
|
|
767
|
-
...e ?
|
|
768
|
-
...
|
|
766
|
+
}, ws = (t, e) => ({
|
|
767
|
+
...e ? Ss(t.contextValues) : t.contextValues,
|
|
768
|
+
...Jn(e?.resource)
|
|
769
769
|
}), dn = (t, e, n) => {
|
|
770
|
-
const i =
|
|
771
|
-
return [...t.itemsByPath[
|
|
770
|
+
const i = ws(t, n);
|
|
771
|
+
return [...t.itemsByPath[bs(e)] ?? []].sort((o, r) => {
|
|
772
772
|
const s = o.order ?? 0, l = r.order ?? 0;
|
|
773
|
-
return s - l ||
|
|
773
|
+
return s - l || Mi(o, r);
|
|
774
774
|
}).filter((o) => Wt(i, o.when)).map((o, r) => {
|
|
775
775
|
const s = t.commands[o.commandId];
|
|
776
776
|
if (!s) return null;
|
|
@@ -797,26 +797,26 @@ const ys = (t) => t.join("/"), vs = Oi(""), Ss = (t) => t === Ei || t === Ni ||
|
|
|
797
797
|
} : {}
|
|
798
798
|
};
|
|
799
799
|
}).filter((o) => o !== null);
|
|
800
|
-
},
|
|
800
|
+
}, km = (t, e, n) => dn({
|
|
801
801
|
itemsByPath: t.layout.menuStore.getState().itemsByPath,
|
|
802
802
|
commands: t.commands.store.getState().commands,
|
|
803
803
|
contextValues: t.context.store.getState().values
|
|
804
|
-
}, e, n), Yt = (t) => t.group === "kernel", kn = (t) => t.group === "overflow" || Yt(t),
|
|
804
|
+
}, e, n), Yt = (t) => t.group === "kernel", kn = (t) => t.group === "overflow" || Yt(t), Ps = (t, e) => {
|
|
805
805
|
if (!e || t.length === 0) return t;
|
|
806
806
|
const [n, ...i] = t;
|
|
807
807
|
return n ? [{
|
|
808
808
|
...n,
|
|
809
809
|
separatorBefore: !0
|
|
810
810
|
}, ...i] : i;
|
|
811
|
-
},
|
|
811
|
+
}, Is = (t) => {
|
|
812
812
|
const e = t.filter((i) => !Yt(i)), n = t.filter(Yt);
|
|
813
|
-
return [...e, ...
|
|
814
|
-
},
|
|
813
|
+
return [...e, ...Ps(n, e.length > 0)];
|
|
814
|
+
}, xs = (t) => ({
|
|
815
815
|
inlineItems: t.filter((e) => !kn(e)),
|
|
816
|
-
overflowItems:
|
|
817
|
-
}),
|
|
816
|
+
overflowItems: Is(t.filter(kn))
|
|
817
|
+
}), Cs = (t) => t.find((e) => e.overflowLabel)?.overflowLabel ?? "More header actions", ks = (t) => t ? {
|
|
818
818
|
resource: t
|
|
819
|
-
} : void 0,
|
|
819
|
+
} : void 0, Rs = (t) => {
|
|
820
820
|
const e = k(25), {
|
|
821
821
|
controlSize: n,
|
|
822
822
|
item: i,
|
|
@@ -846,7 +846,7 @@ const ys = (t) => t.join("/"), vs = Oi(""), Ss = (t) => t === Ei || t === Ni ||
|
|
|
846
846
|
controlSize: n,
|
|
847
847
|
menuPath: i,
|
|
848
848
|
workbench: o
|
|
849
|
-
} = t, r = n === void 0 ? "xs" : n, s =
|
|
849
|
+
} = t, r = n === void 0 ? "xs" : n, s = E(o.commands.store, Ws), l = E(o.context.store, Ts), d = E(o.layout.menuStore, _s), a = E(o.layout.store, As);
|
|
850
850
|
let c, m, f, h, p, g, w;
|
|
851
851
|
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
852
|
w = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
@@ -860,10 +860,10 @@ const ys = (t) => t.join("/"), vs = Oi(""), Ss = (t) => t === Ei || t === Ni ||
|
|
|
860
860
|
}), {
|
|
861
861
|
inlineItems: v,
|
|
862
862
|
overflowItems: S
|
|
863
|
-
} =
|
|
863
|
+
} = xs(b);
|
|
864
864
|
let I;
|
|
865
865
|
e[15] !== s || e[16] !== a || e[17] !== o.commandPalette || e[18] !== o.commands ? (I = (C) => {
|
|
866
|
-
const R = s[C.commandId]?.command, W = C.args, T =
|
|
866
|
+
const R = s[C.commandId]?.command, W = C.args, T = ks(a);
|
|
867
867
|
if (R && tt(R.params)) {
|
|
868
868
|
o.commandPalette.requestParams({
|
|
869
869
|
record: {
|
|
@@ -875,7 +875,7 @@ const ys = (t) => t.join("/"), vs = Oi(""), Ss = (t) => t === Ei || t === Ni ||
|
|
|
875
875
|
});
|
|
876
876
|
return;
|
|
877
877
|
}
|
|
878
|
-
o.commands.executeCommand(C.commandId, W, T).catch(
|
|
878
|
+
o.commands.executeCommand(C.commandId, W, T).catch(Ms);
|
|
879
879
|
}, e[15] = s, e[16] = a, e[17] = o.commandPalette, e[18] = o.commands, e[19] = I) : I = e[19];
|
|
880
880
|
const P = I;
|
|
881
881
|
if (b.length === 0) {
|
|
@@ -884,9 +884,9 @@ const ys = (t) => t.join("/"), vs = Oi(""), Ss = (t) => t === Ei || t === Ni ||
|
|
|
884
884
|
}
|
|
885
885
|
c = We, m = 0, f = "2xs", h = "0";
|
|
886
886
|
let x;
|
|
887
|
-
e[20] !== r || e[21] !== P ? (x = (C) => /* @__PURE__ */ u(
|
|
888
|
-
/* @__PURE__ */ u(oe.Trigger, { asChild: !0, children: /* @__PURE__ */ u(we, { size: r, variant: "ghost", "aria-label":
|
|
889
|
-
/* @__PURE__ */ u(Je, { children: /* @__PURE__ */ u(oe.Positioner, { children: /* @__PURE__ */ u(oe.Content, { minW: "220px", bg: "bg", children: S.map((C) => /* @__PURE__ */ H(
|
|
887
|
+
e[20] !== r || e[21] !== P ? (x = (C) => /* @__PURE__ */ u(Rs, { item: C, onSelect: P, controlSize: r }, C.id), e[20] = r, e[21] = P, e[22] = x) : x = e[22], p = v.map(x), g = S.length > 0 ? /* @__PURE__ */ H(oe.Root, { children: [
|
|
888
|
+
/* @__PURE__ */ u(oe.Trigger, { asChild: !0, children: /* @__PURE__ */ u(we, { size: r, variant: "ghost", "aria-label": Cs(S), children: /* @__PURE__ */ u(L, { name: "MoreHorizontal", size: 16 }) }) }),
|
|
889
|
+
/* @__PURE__ */ u(Je, { children: /* @__PURE__ */ u(oe.Positioner, { children: /* @__PURE__ */ u(oe.Content, { minW: "220px", bg: "bg", children: S.map((C) => /* @__PURE__ */ H(Zn, { children: [
|
|
890
890
|
C.separatorBefore ? /* @__PURE__ */ u(oe.Separator, {}) : null,
|
|
891
891
|
/* @__PURE__ */ u(oe.Item, { value: C.id, asChild: !0, children: /* @__PURE__ */ u(ft, { 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: () => P(C) }) })
|
|
892
892
|
] }, C.id)) }) }) })
|
|
@@ -903,33 +903,33 @@ const ys = (t) => t.join("/"), vs = Oi(""), Ss = (t) => t === Ei || t === Ni ||
|
|
|
903
903
|
g
|
|
904
904
|
] }), 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
905
|
};
|
|
906
|
-
function
|
|
906
|
+
function Ws(t) {
|
|
907
907
|
return t.commands;
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function Ts(t) {
|
|
910
910
|
return t.values;
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function _s(t) {
|
|
913
913
|
return t.itemsByPath;
|
|
914
914
|
}
|
|
915
|
-
function
|
|
916
|
-
return
|
|
915
|
+
function As(t) {
|
|
916
|
+
return eo(t.layout, "primary");
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function Ms() {
|
|
919
919
|
}
|
|
920
|
-
const
|
|
920
|
+
const $s = (t) => {
|
|
921
921
|
const e = k(3);
|
|
922
922
|
let n;
|
|
923
|
-
e[0] !== t ? (n = t.map(
|
|
923
|
+
e[0] !== t ? (n = t.map(Es), e[0] = t, e[1] = n) : n = e[1];
|
|
924
924
|
const i = n;
|
|
925
925
|
let o;
|
|
926
926
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
927
927
|
ignoreInputs: !0,
|
|
928
928
|
preventDefault: !0,
|
|
929
929
|
stopPropagation: !0
|
|
930
|
-
}, e[2] = o) : o = e[2],
|
|
930
|
+
}, e[2] = o) : o = e[2], Gi(i, o);
|
|
931
931
|
};
|
|
932
|
-
function
|
|
932
|
+
function Es(t) {
|
|
933
933
|
return {
|
|
934
934
|
hotkey: t.hotkey,
|
|
935
935
|
callback: (e) => {
|
|
@@ -943,7 +943,7 @@ function Ns(t) {
|
|
|
943
943
|
}
|
|
944
944
|
};
|
|
945
945
|
}
|
|
946
|
-
const
|
|
946
|
+
const Ns = {
|
|
947
947
|
alt: "Alt",
|
|
948
948
|
cmd: "Meta",
|
|
949
949
|
command: "Meta",
|
|
@@ -953,13 +953,13 @@ const Os = {
|
|
|
953
953
|
mod: "Mod",
|
|
954
954
|
option: "Alt",
|
|
955
955
|
shift: "Shift"
|
|
956
|
-
},
|
|
957
|
-
const n = e.trim(), i =
|
|
956
|
+
}, Os = (t) => t.split("+").map((e) => {
|
|
957
|
+
const n = e.trim(), i = Ns[n.toLowerCase()];
|
|
958
958
|
return i || (n.length === 1 ? n.toUpperCase() : n.slice(0, 1).toUpperCase() + n.slice(1));
|
|
959
959
|
}).join("+"), Rn = (t) => {
|
|
960
|
-
const e =
|
|
960
|
+
const e = Oi(t).map(Os);
|
|
961
961
|
return e.length === 1 ? e[0] ?? "" : e;
|
|
962
|
-
},
|
|
962
|
+
}, zs = (t) => {
|
|
963
963
|
const {
|
|
964
964
|
workbench: e,
|
|
965
965
|
disabled: n = !1,
|
|
@@ -988,33 +988,33 @@ const Os = {
|
|
|
988
988
|
execute: () => e.navigation.openTarget(l)
|
|
989
989
|
}];
|
|
990
990
|
});
|
|
991
|
-
},
|
|
991
|
+
}, Bs = (t) => {
|
|
992
992
|
const e = k(4), {
|
|
993
993
|
workbench: n,
|
|
994
994
|
disabled: i,
|
|
995
995
|
commandIds: o
|
|
996
996
|
} = t;
|
|
997
|
-
|
|
997
|
+
E(n.keybindings.store, Hs), E(n.context.store, Ds), E(n.commands.store, Vs);
|
|
998
998
|
let r;
|
|
999
|
-
return e[0] !== o || e[1] !== i || e[2] !== n ? (r =
|
|
999
|
+
return e[0] !== o || e[1] !== i || e[2] !== n ? (r = zs({
|
|
1000
1000
|
workbench: n,
|
|
1001
1001
|
disabled: i,
|
|
1002
1002
|
commandIds: o
|
|
1003
|
-
}), e[0] = o, e[1] = i, e[2] = n, e[3] = r) : r = e[3],
|
|
1003
|
+
}), e[0] = o, e[1] = i, e[2] = n, e[3] = r) : r = e[3], $s(r), null;
|
|
1004
1004
|
};
|
|
1005
|
-
function
|
|
1005
|
+
function Hs(t) {
|
|
1006
1006
|
return t.keybindings;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function Ds(t) {
|
|
1009
1009
|
return t.values;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function Vs(t) {
|
|
1012
1012
|
return t.commands;
|
|
1013
1013
|
}
|
|
1014
1014
|
const un = (t, e) => ({
|
|
1015
1015
|
...t.context.snapshot(),
|
|
1016
|
-
...
|
|
1017
|
-
}), co = (t, e, n) => Wt(n, t.command.when) ? t.handler.isVisible?.(e) !== !1 : !1,
|
|
1016
|
+
...Jn(e?.resource)
|
|
1017
|
+
}), co = (t, e, n) => Wt(n, t.command.when) ? t.handler.isVisible?.(e) !== !1 : !1, Ls = async (t) => {
|
|
1018
1018
|
const {
|
|
1019
1019
|
action: e,
|
|
1020
1020
|
args: n,
|
|
@@ -1031,7 +1031,7 @@ const un = (t, e) => ({
|
|
|
1031
1031
|
workbench: r
|
|
1032
1032
|
} = t;
|
|
1033
1033
|
try {
|
|
1034
|
-
await
|
|
1034
|
+
await Ls({
|
|
1035
1035
|
action: e,
|
|
1036
1036
|
args: n,
|
|
1037
1037
|
context: i,
|
|
@@ -1051,7 +1051,7 @@ const un = (t, e) => ({
|
|
|
1051
1051
|
if (e.disabled) return !1;
|
|
1052
1052
|
const n = Mt(t, e);
|
|
1053
1053
|
return n ? t.commands.isCommandEnabled(n.command.id, e.args) : !0;
|
|
1054
|
-
},
|
|
1054
|
+
}, Fs = (t) => {
|
|
1055
1055
|
const {
|
|
1056
1056
|
icon: e,
|
|
1057
1057
|
iconSrc: n
|
|
@@ -1062,21 +1062,21 @@ const un = (t, e) => ({
|
|
|
1062
1062
|
height: "100%",
|
|
1063
1063
|
objectFit: "contain"
|
|
1064
1064
|
} }) }) : e ? /* @__PURE__ */ u(L, { name: e }) : void 0;
|
|
1065
|
-
},
|
|
1065
|
+
}, Ks = (t) => {
|
|
1066
1066
|
const {
|
|
1067
1067
|
binding: e,
|
|
1068
1068
|
external: n
|
|
1069
1069
|
} = t;
|
|
1070
1070
|
if (n) return /* @__PURE__ */ u(L, { name: "ArrowUpRight", size: 14, color: "fg.muted" });
|
|
1071
1071
|
if (e) return /* @__PURE__ */ u(mt, { binding: e });
|
|
1072
|
-
},
|
|
1072
|
+
}, qs = (t, e) => {
|
|
1073
1073
|
if (!e || t.length === 0) return t;
|
|
1074
1074
|
const [n, ...i] = t;
|
|
1075
1075
|
return [{
|
|
1076
1076
|
...n,
|
|
1077
1077
|
separatorBefore: !0
|
|
1078
1078
|
}, ...i];
|
|
1079
|
-
},
|
|
1079
|
+
}, js = (t) => t === "kernel", Gs = (t) => {
|
|
1080
1080
|
const {
|
|
1081
1081
|
context: e,
|
|
1082
1082
|
menuPath: n,
|
|
@@ -1111,11 +1111,11 @@ const un = (t, e) => ({
|
|
|
1111
1111
|
label: y,
|
|
1112
1112
|
commandId: m.sourceCommandId ?? f.command.id,
|
|
1113
1113
|
description: m.description ?? f.command.description,
|
|
1114
|
-
icon:
|
|
1114
|
+
icon: Fs({
|
|
1115
1115
|
icon: p,
|
|
1116
1116
|
iconSrc: m.iconSrc
|
|
1117
1117
|
}),
|
|
1118
|
-
endContent:
|
|
1118
|
+
endContent: Ks({
|
|
1119
1119
|
external: m.external,
|
|
1120
1120
|
binding: g
|
|
1121
1121
|
}),
|
|
@@ -1129,13 +1129,13 @@ const un = (t, e) => ({
|
|
|
1129
1129
|
r.commands.executeCommand(f.command.id, h, e).catch((S) => i?.(S));
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
|
-
|
|
1132
|
+
js(m.group) ? a.push(v) : d.push(v);
|
|
1133
1133
|
}
|
|
1134
1134
|
return {
|
|
1135
1135
|
regularItems: d,
|
|
1136
1136
|
kernelItems: a
|
|
1137
1137
|
};
|
|
1138
|
-
},
|
|
1138
|
+
}, Us = (t) => {
|
|
1139
1139
|
const {
|
|
1140
1140
|
actions: e = [],
|
|
1141
1141
|
context: n,
|
|
@@ -1195,17 +1195,17 @@ const un = (t, e) => ({
|
|
|
1195
1195
|
}
|
|
1196
1196
|
return d;
|
|
1197
1197
|
}, fo = (t) => {
|
|
1198
|
-
const e =
|
|
1198
|
+
const e = Us(t), {
|
|
1199
1199
|
regularItems: n,
|
|
1200
1200
|
kernelItems: i
|
|
1201
|
-
} = t.menuPath ?
|
|
1201
|
+
} = t.menuPath ? Gs({
|
|
1202
1202
|
...t,
|
|
1203
1203
|
menuPath: t.menuPath
|
|
1204
1204
|
}) : {
|
|
1205
1205
|
regularItems: [],
|
|
1206
1206
|
kernelItems: []
|
|
1207
1207
|
}, o = [...e, ...n];
|
|
1208
|
-
return [...o, ...
|
|
1208
|
+
return [...o, ...qs(i, o.length > 0)];
|
|
1209
1209
|
}, ho = (t) => {
|
|
1210
1210
|
const {
|
|
1211
1211
|
actions: e = [],
|
|
@@ -1264,17 +1264,17 @@ const un = (t, e) => ({
|
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
1266
1266
|
return d;
|
|
1267
|
-
},
|
|
1267
|
+
}, Zs = (t) => ({
|
|
1268
1268
|
key: t.id,
|
|
1269
1269
|
label: t.label,
|
|
1270
1270
|
commandId: t.commandId,
|
|
1271
|
-
icon: typeof t.icon == "function" ? /* @__PURE__ */ u(
|
|
1271
|
+
icon: typeof t.icon == "function" ? /* @__PURE__ */ u(Go, { as: t.icon, boxSize: "16px" }) : t.icon,
|
|
1272
1272
|
endContent: t.endContent,
|
|
1273
1273
|
isDisabled: t.disabled,
|
|
1274
1274
|
separatorBefore: t.separatorBefore,
|
|
1275
1275
|
onClick: () => t.onAction?.()
|
|
1276
|
-
}),
|
|
1277
|
-
menuPath:
|
|
1276
|
+
}), Qs = (t, e) => fo({
|
|
1277
|
+
menuPath: no(e.type),
|
|
1278
1278
|
workbench: t,
|
|
1279
1279
|
context: {
|
|
1280
1280
|
resource: e
|
|
@@ -1282,29 +1282,29 @@ const un = (t, e) => ({
|
|
|
1282
1282
|
onRequestParams: ({
|
|
1283
1283
|
request: n
|
|
1284
1284
|
}) => t.commandPalette.requestParams(n)
|
|
1285
|
-
}).map(
|
|
1285
|
+
}).map(Zs), mn = (t) => {
|
|
1286
1286
|
const e = k(2);
|
|
1287
|
-
|
|
1287
|
+
E(t.commands.store, Xs), E(t.context.store, Ys), E(t.layout.menuStore, Js);
|
|
1288
1288
|
let n;
|
|
1289
|
-
return e[0] !== t ? (n = (i) =>
|
|
1289
|
+
return e[0] !== t ? (n = (i) => Qs(t, i), e[0] = t, e[1] = n) : n = e[1], n;
|
|
1290
1290
|
};
|
|
1291
|
-
function
|
|
1291
|
+
function Xs(t) {
|
|
1292
1292
|
return t.commands;
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function Ys(t) {
|
|
1295
1295
|
return t.values;
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function Js(t) {
|
|
1298
1298
|
return t.itemsByPath;
|
|
1299
1299
|
}
|
|
1300
|
-
const
|
|
1300
|
+
const el = (t) => {
|
|
1301
1301
|
const {
|
|
1302
1302
|
action: e,
|
|
1303
1303
|
workbench: n
|
|
1304
1304
|
} = t;
|
|
1305
1305
|
n.commands.executeCommand(e.commandId, e.args).catch(() => {
|
|
1306
1306
|
});
|
|
1307
|
-
},
|
|
1307
|
+
}, tl = (t) => {
|
|
1308
1308
|
const e = k(4), {
|
|
1309
1309
|
workbench: n
|
|
1310
1310
|
} = t;
|
|
@@ -1316,7 +1316,7 @@ const tl = (t) => {
|
|
|
1316
1316
|
const l = (a) => {
|
|
1317
1317
|
const c = a.actions?.[0], m = c ? {
|
|
1318
1318
|
label: c.title,
|
|
1319
|
-
onClick: () =>
|
|
1319
|
+
onClick: () => el({
|
|
1320
1320
|
action: c,
|
|
1321
1321
|
workbench: n
|
|
1322
1322
|
})
|
|
@@ -1353,11 +1353,11 @@ const tl = (t) => {
|
|
|
1353
1353
|
o.current.clear();
|
|
1354
1354
|
};
|
|
1355
1355
|
}, s = [n], e[1] = n, e[2] = r, e[3] = s) : (r = e[2], s = e[3]), ue(r, s), null;
|
|
1356
|
-
}, bt = (t) =>
|
|
1357
|
-
function
|
|
1356
|
+
}, bt = (t) => E(t.pages.store, nl), it = (t) => E(t.modes.store, ol);
|
|
1357
|
+
function nl(t) {
|
|
1358
1358
|
return t.location?.resource;
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function ol(t) {
|
|
1361
1361
|
return t.activeModeId;
|
|
1362
1362
|
}
|
|
1363
1363
|
const Vt = (t) => {
|
|
@@ -1368,14 +1368,14 @@ const Vt = (t) => {
|
|
|
1368
1368
|
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
1369
|
let o;
|
|
1370
1370
|
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
|
-
},
|
|
1371
|
+
}, il = (t) => {
|
|
1372
1372
|
const e = k(2), {
|
|
1373
1373
|
children: n
|
|
1374
1374
|
} = t;
|
|
1375
1375
|
let i;
|
|
1376
1376
|
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
|
-
},
|
|
1377
|
+
}, rl = () => {
|
|
1378
|
+
}, sl = (t) => {
|
|
1379
1379
|
if (t.view)
|
|
1380
1380
|
return {
|
|
1381
1381
|
id: t.placement.contributionId,
|
|
@@ -1385,7 +1385,7 @@ const Vt = (t) => {
|
|
|
1385
1385
|
rendererId: t.view.id
|
|
1386
1386
|
};
|
|
1387
1387
|
if (t.widget)
|
|
1388
|
-
return "singleton" in t.widget ?
|
|
1388
|
+
return "singleton" in t.widget ? to(t.widget) : t.widget;
|
|
1389
1389
|
}, $t = (t) => {
|
|
1390
1390
|
const e = k(9), {
|
|
1391
1391
|
workbench: n,
|
|
@@ -1393,13 +1393,13 @@ const Vt = (t) => {
|
|
|
1393
1393
|
} = 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
1394
|
let l;
|
|
1395
1395
|
e[0] !== n ? (l = Y(n), e[0] = n, e[1] = l) : l = e[1];
|
|
1396
|
-
const a =
|
|
1396
|
+
const a = E(l.store, (P) => P.renderers[s]) ?? Y(n).getRenderer(s);
|
|
1397
1397
|
let c;
|
|
1398
|
-
if (e[2] !== n ? (c = Y(n), e[2] = n, e[3] = c) : c = e[3],
|
|
1398
|
+
if (e[2] !== n ? (c = Y(n), e[2] = n, e[3] = c) : c = e[3], E(c.store, (P) => P.refreshKeys[s] ?? 0), !o && !r) {
|
|
1399
1399
|
let P;
|
|
1400
1400
|
return e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ u(Vt, { label: "Widget contribution is no longer registered." }), e[4] = P) : P = e[4], P;
|
|
1401
1401
|
}
|
|
1402
|
-
const m =
|
|
1402
|
+
const m = sl({
|
|
1403
1403
|
placement: i,
|
|
1404
1404
|
region: t.region,
|
|
1405
1405
|
view: r,
|
|
@@ -1409,11 +1409,11 @@ const Vt = (t) => {
|
|
|
1409
1409
|
let P;
|
|
1410
1410
|
return e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ u(Vt, { label: "View contribution is no longer registered." }), e[5] = P) : P = e[5], P;
|
|
1411
1411
|
}
|
|
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(
|
|
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(il, { children: a.render({
|
|
1413
1413
|
workbench: n,
|
|
1414
1414
|
panel: m,
|
|
1415
1415
|
instance: f,
|
|
1416
|
-
refresh:
|
|
1416
|
+
refresh: rl
|
|
1417
1417
|
}) }) : /* @__PURE__ */ u(Vt, { label: `No renderer registered for ${s}.` });
|
|
1418
1418
|
let I;
|
|
1419
1419
|
return e[6] !== h || e[7] !== S ? (I = /* @__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] = I) : I = e[8], I;
|
|
@@ -1424,7 +1424,7 @@ const Vt = (t) => {
|
|
|
1424
1424
|
const r = o.activeModeId ? o.modes[o.activeModeId] : void 0;
|
|
1425
1425
|
if (!(e !== "nav" && e !== "sidenav" && e !== "activity" && e !== "status"))
|
|
1426
1426
|
return r?.chrome?.[e];
|
|
1427
|
-
}, n[0] = e, n[1] = i) : i = n[1],
|
|
1427
|
+
}, n[0] = e, n[1] = i) : i = n[1], E(t.modes.store, i);
|
|
1428
1428
|
}, fn = (t) => {
|
|
1429
1429
|
const e = k(7), {
|
|
1430
1430
|
workbench: n,
|
|
@@ -1440,22 +1440,22 @@ const Vt = (t) => {
|
|
|
1440
1440
|
}, e[0] = i, e[1] = r) : r = e[1];
|
|
1441
1441
|
let s;
|
|
1442
1442
|
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
|
-
},
|
|
1443
|
+
}, ll = /* @__PURE__ */ new Set(["nav", "main-header", "secondary-header", "side-header", "status"]), al = new Set(Object.values(ln).flatMap((t) => Object.values(t))), Wn = /* @__PURE__ */ new Set(["side", "side-header", "side-left-menu", "side-right-menu"]), cl = {
|
|
1444
1444
|
display: "flex",
|
|
1445
1445
|
flexDirection: "column",
|
|
1446
1446
|
minH: "100%",
|
|
1447
1447
|
position: "relative"
|
|
1448
|
-
},
|
|
1448
|
+
}, dl = {
|
|
1449
1449
|
display: "flex",
|
|
1450
1450
|
alignItems: "stretch",
|
|
1451
1451
|
h: "full",
|
|
1452
1452
|
minH: "100%",
|
|
1453
1453
|
position: "relative"
|
|
1454
|
-
}, po = (t, e) => t.find((n) => n.widgetId === e) ?? t[0],
|
|
1454
|
+
}, po = (t, e) => t.find((n) => n.widgetId === e) ?? t[0], ul = (t, e, n) => {
|
|
1455
1455
|
if (n === "sidenav") return t;
|
|
1456
1456
|
const i = po(t, e);
|
|
1457
1457
|
return i ? t.filter((o) => o.widgetId === i.widgetId || o.mountStrategy === "keep-mounted") : [];
|
|
1458
|
-
},
|
|
1458
|
+
}, ml = (t, e, n) => {
|
|
1459
1459
|
const i = t.widgetId === e, o = n === "sidenav";
|
|
1460
1460
|
return {
|
|
1461
1461
|
active: i,
|
|
@@ -1464,12 +1464,12 @@ const Vt = (t) => {
|
|
|
1464
1464
|
position: i || o ? "relative" : "absolute",
|
|
1465
1465
|
visibility: i || o ? "visible" : "hidden"
|
|
1466
1466
|
};
|
|
1467
|
-
},
|
|
1467
|
+
}, fl = (t) => ({
|
|
1468
1468
|
widgetId: t.id,
|
|
1469
1469
|
contributionId: t.id,
|
|
1470
1470
|
title: t.title,
|
|
1471
1471
|
closable: !1
|
|
1472
|
-
}),
|
|
1472
|
+
}), hl = (t) => {
|
|
1473
1473
|
const e = k(22), {
|
|
1474
1474
|
workbench: n,
|
|
1475
1475
|
placement: i,
|
|
@@ -1478,7 +1478,7 @@ const Vt = (t) => {
|
|
|
1478
1478
|
region: s
|
|
1479
1479
|
} = t;
|
|
1480
1480
|
let l;
|
|
1481
|
-
e[0] !== o || e[1] !== i || e[2] !== s ? (l =
|
|
1481
|
+
e[0] !== o || e[1] !== i || e[2] !== s ? (l = ml(i, o, s), e[0] = o, e[1] = i, e[2] = s, e[3] = l) : l = e[3];
|
|
1482
1482
|
const d = l, a = s === "sidenav", c = !d.active && !a;
|
|
1483
1483
|
let m;
|
|
1484
1484
|
a ? m = "1 1 0" : d.active && (m = "1 0 auto");
|
|
@@ -1498,56 +1498,56 @@ const Vt = (t) => {
|
|
|
1498
1498
|
title: o,
|
|
1499
1499
|
pointerEvents: r,
|
|
1500
1500
|
transparent: s
|
|
1501
|
-
} = t, l = r === void 0 ? "auto" : r, d = s === void 0 ? !1 : s, a = yt(n, i), c = bt(n), m = it(n), f =
|
|
1501
|
+
} = t, l = r === void 0 ? "auto" : r, d = s === void 0 ? !1 : s, a = yt(n, i), c = bt(n), m = it(n), f = E(n.layout.store, pl), h = f.regions[i], p = E(n.layout.store, gl), g = al.has(i) ? on(f, zi(i), c, {
|
|
1502
1502
|
ignoreOwnerResourceKey: Wn.has(i)
|
|
1503
1503
|
}) : void 0, w = pt(f), y = {
|
|
1504
1504
|
...h,
|
|
1505
|
-
widgets: h.widgets.filter((
|
|
1506
|
-
const xe = p[
|
|
1507
|
-
return xe ? (Wn.has(i) ? rn(xe, m) : _t(xe, c, m,
|
|
1505
|
+
widgets: h.widgets.filter((ie) => {
|
|
1506
|
+
const xe = p[ie.contributionId];
|
|
1507
|
+
return xe ? (Wn.has(i) ? rn(xe, m) : _t(xe, c, m, ie, {
|
|
1508
1508
|
location: w
|
|
1509
1509
|
})) && sn(xe, {
|
|
1510
1510
|
locationPanel: w,
|
|
1511
1511
|
subPanel: g
|
|
1512
1512
|
}) : !1;
|
|
1513
1513
|
})
|
|
1514
|
-
}, b =
|
|
1514
|
+
}, b = E(n.layout.store, bl), v = po(y.widgets, y.activeWidgetId), S = v ? void 0 : n.layout.getPlaceholder(i), I = v ?? (S ? fl(S) : void 0), P = v ? ul(y.widgets, v.widgetId, i) : [];
|
|
1515
1515
|
if (a === !1)
|
|
1516
1516
|
return null;
|
|
1517
1517
|
if (a) {
|
|
1518
|
-
let
|
|
1519
|
-
return e[0] !== a || e[1] !== i || e[2] !== n ? (
|
|
1518
|
+
let ie;
|
|
1519
|
+
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
1520
|
}
|
|
1521
1521
|
if (!I)
|
|
1522
1522
|
return null;
|
|
1523
1523
|
let x;
|
|
1524
|
-
e[4] !== i ? (x =
|
|
1524
|
+
e[4] !== i ? (x = ll.has(i), e[4] = i, e[5] = x) : x = e[5];
|
|
1525
1525
|
const C = x;
|
|
1526
1526
|
let R;
|
|
1527
|
-
e[6] !== b || e[7] !== n.layout ? (R = (
|
|
1528
|
-
|
|
1527
|
+
e[6] !== b || e[7] !== n.layout ? (R = (ie) => {
|
|
1528
|
+
ie && ie.widgetId !== b && n.layout.activatePanel(ie.widgetId);
|
|
1529
1529
|
}, e[6] = b, e[7] = n.layout, e[8] = R) : R = e[8];
|
|
1530
|
-
const W = R, T = i === "sidenav", _ = he,
|
|
1531
|
-
let
|
|
1532
|
-
e[9] !== i || e[10] !== d ? (
|
|
1533
|
-
const D = "hidden",
|
|
1530
|
+
const W = R, T = i === "sidenav", _ = he, N = "section", A = "column", $ = "full", B = "0", z = "0", M = "full";
|
|
1531
|
+
let O;
|
|
1532
|
+
e[9] !== i || e[10] !== d ? (O = d ? "transparent" : vr(i), e[9] = i, e[10] = d, e[11] = O) : O = e[11];
|
|
1533
|
+
const D = "hidden", q = o ?? i, re = T ? void 0 : () => W(v), se = T ? void 0 : () => W(v), U = Ne, j = "1", ae = "0", le = "0", V = "full", ce = "xs", de = !C;
|
|
1534
1534
|
let K;
|
|
1535
1535
|
e[12] !== C ? (K = C ? {
|
|
1536
1536
|
justifyContent: "center"
|
|
1537
1537
|
} : void 0, e[12] = C, e[13] = K) : K = e[13];
|
|
1538
|
-
const J = C ?
|
|
1538
|
+
const J = C ? dl : cl, te = S ? /* @__PURE__ */ u($t, { workbench: n, placement: I, widget: S }) : P.map((ie) => /* @__PURE__ */ u(hl, { workbench: n, placement: ie, activeWidgetId: v?.widgetId, globalActiveWidgetId: b, region: i }, ie.widgetId));
|
|
1539
1539
|
let ne;
|
|
1540
|
-
e[14] !== U || e[15] !== C || e[16] !== de || e[17] !== K || e[18] !== J || e[19] !== te ? (ne = /* @__PURE__ */ u(U, { flex:
|
|
1540
|
+
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
1541
|
let fe;
|
|
1542
|
-
return e[21] !== _ || e[22] !== l || e[23] !==
|
|
1542
|
+
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
1543
|
};
|
|
1544
|
-
function
|
|
1544
|
+
function pl(t) {
|
|
1545
1545
|
return t.layout;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function gl(t) {
|
|
1548
1548
|
return t.widgets;
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1550
|
+
function bl(t) {
|
|
1551
1551
|
return t.layout.activeWidgetId;
|
|
1552
1552
|
}
|
|
1553
1553
|
const go = (t) => {
|
|
@@ -1600,25 +1600,25 @@ const go = (t) => {
|
|
|
1600
1600
|
g,
|
|
1601
1601
|
y
|
|
1602
1602
|
] }), e[24] = g, e[25] = y, e[26] = b) : b = e[26], b;
|
|
1603
|
-
}, bo = (t, e) => `${t}:${e.contributionId}`,
|
|
1603
|
+
}, bo = (t, e) => `${t}:${e.contributionId}`, yl = (t, e) => t === "sidenav", yo = (t, e, n) => {
|
|
1604
1604
|
const i = t.resource?.icon ?? n;
|
|
1605
1605
|
return t.role === "sub-panel" ? e?.icon ?? i : i ?? e?.icon;
|
|
1606
|
-
},
|
|
1606
|
+
}, vl = (t, e) => e && t.some((i) => i.widgetId === e) ? e : t[0]?.widgetId, Sl = (t) => Yn.some((e) => e === t), wl = (t, e = {}) => t.length > 1 || t.length === 1 && (e.alwaysShowTabs ?? t[0]?.closable) === !0, Pl = (t) => t.hasTabs === !0 || t.hasPanelMenus === !0 || t.hasHeaderActions === !0, vo = (t, e, n, i = t.getPrimaryResource(), o = t.modes.getActiveModeId()) => {
|
|
1607
1607
|
const r = t.layout.getWidget(n.contributionId);
|
|
1608
1608
|
return r ? _t(r, i, o, n, {
|
|
1609
1609
|
ignoreResourceLocation: e === "side",
|
|
1610
1610
|
location: pt(t.layout.getLayout())
|
|
1611
1611
|
}) : !1;
|
|
1612
1612
|
}, hn = (t, e, n) => {
|
|
1613
|
-
const i = k(55), o =
|
|
1613
|
+
const i = k(55), o = E(t.commands.store, xl), r = E(t.context.store, Cl), s = E(t.layout.menuStore, kl), l = E(t.layout.store, Rl), d = bt(t), a = it(t), c = oo(t), m = oi(n ?? e, Wl), f = l.layout.regions[e];
|
|
1614
1614
|
let h, p;
|
|
1615
1615
|
if (i[0] !== a || i[1] !== e || i[2] !== f.widgets || i[3] !== d || i[4] !== m.tabOverrides || i[5] !== t) {
|
|
1616
1616
|
let R;
|
|
1617
1617
|
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
1618
|
let W;
|
|
1619
1619
|
i[13] !== e ? (W = (_) => bo(e, _), i[13] = e, i[14] = W) : W = i[14];
|
|
1620
|
-
const T =
|
|
1621
|
-
p = new Set(T.map(
|
|
1620
|
+
const T = ii(h, m.tabOverrides, W);
|
|
1621
|
+
p = new Set(T.map(Tl)), 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
1622
|
} else
|
|
1623
1623
|
h = i[6], p = i[7];
|
|
1624
1624
|
const g = p;
|
|
@@ -1631,9 +1631,9 @@ const go = (t) => {
|
|
|
1631
1631
|
itemsByPath: s,
|
|
1632
1632
|
commands: o,
|
|
1633
1633
|
contextValues: r
|
|
1634
|
-
},
|
|
1634
|
+
}, Fi(e)), i[31] = o, i[32] = r, i[33] = s, i[34] = e, i[35] = W) : W = i[35], y = W, b = Sl(e) ? e : void 0;
|
|
1635
1635
|
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 = !
|
|
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 = !yl(e) && wl(S, {
|
|
1637
1637
|
alwaysShowTabs: t.layout.getRegionSettings(e)?.alwaysShowTabs
|
|
1638
1638
|
}), 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
1639
|
} else
|
|
@@ -1660,7 +1660,7 @@ const go = (t) => {
|
|
|
1660
1660
|
hasActions: P
|
|
1661
1661
|
}, i[43] = o, i[44] = w, i[45] = P, i[46] = y, i[47] = b, i[48] = f, i[49] = d, i[50] = I, i[51] = h, i[52] = x, i[53] = S, i[54] = C) : C = i[54], C;
|
|
1662
1662
|
}, dt = (t, e) => {
|
|
1663
|
-
const n = k(11), i =
|
|
1663
|
+
const n = k(11), i = E(t.layout.store, _l), o = bt(t), r = it(t), {
|
|
1664
1664
|
showTabs: s,
|
|
1665
1665
|
hasActions: l
|
|
1666
1666
|
} = hn(t, e);
|
|
@@ -1677,44 +1677,44 @@ const go = (t) => {
|
|
|
1677
1677
|
d = n[6];
|
|
1678
1678
|
const a = d;
|
|
1679
1679
|
let c;
|
|
1680
|
-
return n[7] !== l || n[8] !== a || n[9] !== s ? (c =
|
|
1680
|
+
return n[7] !== l || n[8] !== a || n[9] !== s ? (c = Pl({
|
|
1681
1681
|
hasTabs: s,
|
|
1682
1682
|
hasHeaderActions: l,
|
|
1683
1683
|
hasPanelMenus: a
|
|
1684
1684
|
}), n[7] = l, n[8] = a, n[9] = s, n[10] = c) : c = n[10], c;
|
|
1685
|
-
},
|
|
1685
|
+
}, Il = (t, e) => {
|
|
1686
1686
|
const {
|
|
1687
1687
|
showTabs: n,
|
|
1688
1688
|
hasActions: i
|
|
1689
1689
|
} = hn(t, e);
|
|
1690
1690
|
return n || i;
|
|
1691
1691
|
};
|
|
1692
|
-
function
|
|
1692
|
+
function xl(t) {
|
|
1693
1693
|
return t.commands;
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1695
|
+
function Cl(t) {
|
|
1696
1696
|
return t.values;
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function kl(t) {
|
|
1699
1699
|
return t.itemsByPath;
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1701
|
+
function Rl(t) {
|
|
1702
1702
|
return t;
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function Wl(t) {
|
|
1705
1705
|
return t;
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1707
|
+
function Tl(t) {
|
|
1708
1708
|
return t.widgetId;
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function _l(t) {
|
|
1711
1711
|
return t;
|
|
1712
1712
|
}
|
|
1713
|
-
const
|
|
1713
|
+
const Al = (t) => {
|
|
1714
1714
|
const e = k(8), n = t.tab, [, i] = Q(0);
|
|
1715
1715
|
let o;
|
|
1716
1716
|
e[0] !== i || e[1] !== n ? (o = () => {
|
|
1717
|
-
const l = n?.subscribe?.(() => i(
|
|
1717
|
+
const l = n?.subscribe?.(() => i(Dl));
|
|
1718
1718
|
if (l)
|
|
1719
1719
|
return typeof l == "function" ? l : () => l.dispose();
|
|
1720
1720
|
}, e[0] = i, e[1] = n, e[2] = o) : o = e[2];
|
|
@@ -1722,7 +1722,7 @@ const Ml = (t) => {
|
|
|
1722
1722
|
e[3] !== n ? (r = [n], e[3] = n, e[4] = r) : r = e[4], ue(o, r);
|
|
1723
1723
|
let s;
|
|
1724
1724
|
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
|
-
},
|
|
1725
|
+
}, Ml = (t, e) => {
|
|
1726
1726
|
const n = k(32), {
|
|
1727
1727
|
disabled: i,
|
|
1728
1728
|
nextWidgetId: o,
|
|
@@ -1732,14 +1732,14 @@ const Ml = (t) => {
|
|
|
1732
1732
|
workbench: d
|
|
1733
1733
|
} = t, a = i === void 0 ? !1 : i, c = l === void 0 ? !1 : l, m = r.tabRetention === "preview";
|
|
1734
1734
|
let f;
|
|
1735
|
-
n[0] !== e.menu ? (f = e.menu?.some(
|
|
1735
|
+
n[0] !== e.menu ? (f = e.menu?.some(Vl), n[0] = e.menu, n[1] = f) : f = n[1];
|
|
1736
1736
|
const h = !!f, p = m, g = a || !c;
|
|
1737
1737
|
let w;
|
|
1738
1738
|
n[2] !== r.widgetId || n[3] !== g ? (w = {
|
|
1739
1739
|
id: r.widgetId,
|
|
1740
1740
|
disabled: g
|
|
1741
1741
|
}, n[2] = r.widgetId, n[3] = g, n[4] = w) : w = n[4];
|
|
1742
|
-
const y =
|
|
1742
|
+
const y = Ji(w), [b, v] = Q();
|
|
1743
1743
|
let S;
|
|
1744
1744
|
n[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
1745
1745
|
x: 0,
|
|
@@ -1749,9 +1749,9 @@ const Ml = (t) => {
|
|
|
1749
1749
|
}, n[5] = S) : S = n[5];
|
|
1750
1750
|
const [I, P] = Q(S);
|
|
1751
1751
|
let x;
|
|
1752
|
-
n[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = (M,
|
|
1753
|
-
|
|
1754
|
-
const D =
|
|
1752
|
+
n[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = (M, O) => {
|
|
1753
|
+
O.preventDefault(), O.stopPropagation();
|
|
1754
|
+
const D = O.currentTarget.getBoundingClientRect();
|
|
1755
1755
|
P({
|
|
1756
1756
|
x: D.x,
|
|
1757
1757
|
y: D.y,
|
|
@@ -1770,22 +1770,22 @@ const Ml = (t) => {
|
|
|
1770
1770
|
p && !a && C("context", M);
|
|
1771
1771
|
}, n[10] = a, n[11] = p, n[12] = T) : T = n[12];
|
|
1772
1772
|
const _ = T;
|
|
1773
|
-
let
|
|
1774
|
-
n[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1775
|
-
v((D) =>
|
|
1776
|
-
}, n[13] =
|
|
1777
|
-
const A =
|
|
1778
|
-
let
|
|
1779
|
-
n[14] !== a || n[15] !== o || n[16] !== r.widgetId || n[17] !== s || n[18] !== c || n[19] !== d ? (
|
|
1773
|
+
let N;
|
|
1774
|
+
n[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = (M, O) => {
|
|
1775
|
+
v((D) => O ? M : D === M ? void 0 : D);
|
|
1776
|
+
}, n[13] = N) : N = n[13];
|
|
1777
|
+
const A = N;
|
|
1778
|
+
let $;
|
|
1779
|
+
n[14] !== a || n[15] !== o || n[16] !== r.widgetId || n[17] !== s || n[18] !== c || n[19] !== d ? ($ = (M) => {
|
|
1780
1780
|
!c || a || !M.altKey || (M.key === "ArrowLeft" && s && (M.preventDefault(), d.layout.reorderPanel(r.widgetId, {
|
|
1781
1781
|
beforeWidgetId: s
|
|
1782
1782
|
})), M.key === "ArrowRight" && o && (M.preventDefault(), d.layout.reorderPanel(r.widgetId, {
|
|
1783
1783
|
afterWidgetId: o
|
|
1784
1784
|
})));
|
|
1785
|
-
}, n[14] = a, n[15] = o, n[16] = r.widgetId, n[17] = s, n[18] = c, n[19] = d, n[20] =
|
|
1786
|
-
const B =
|
|
1787
|
-
let
|
|
1788
|
-
return n[21] !== I || 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 ? (
|
|
1785
|
+
}, n[14] = a, n[15] = o, n[16] = r.widgetId, n[17] = s, n[18] = c, n[19] = d, n[20] = $) : $ = n[20];
|
|
1786
|
+
const B = $;
|
|
1787
|
+
let z;
|
|
1788
|
+
return n[21] !== I || 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 = {
|
|
1789
1789
|
anchor: I,
|
|
1790
1790
|
hasCustomMenu: h,
|
|
1791
1791
|
hasContextMenu: p,
|
|
@@ -1797,7 +1797,7 @@ const Ml = (t) => {
|
|
|
1797
1797
|
setMenuOpen: A,
|
|
1798
1798
|
sortableState: y,
|
|
1799
1799
|
tabSnapshot: e
|
|
1800
|
-
}, n[21] = I, 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] =
|
|
1800
|
+
}, n[21] = I, 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
1801
|
}, So = (t) => {
|
|
1802
1802
|
const e = k(15), {
|
|
1803
1803
|
anchor: n,
|
|
@@ -1824,7 +1824,7 @@ const Ml = (t) => {
|
|
|
1824
1824
|
e[7] !== i || e[8] !== o ? (m = /* @__PURE__ */ u(Je, { 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
1825
|
let f;
|
|
1826
1826
|
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
|
-
},
|
|
1827
|
+
}, $l = (t) => {
|
|
1828
1828
|
const e = k(11), {
|
|
1829
1829
|
anchor: n,
|
|
1830
1830
|
label: i,
|
|
@@ -1845,7 +1845,7 @@ const Ml = (t) => {
|
|
|
1845
1845
|
} }) }), e[1] = r.placementIdentity, e[2] = r.widgetId, e[3] = l, e[4] = c) : c = e[4];
|
|
1846
1846
|
let m;
|
|
1847
1847
|
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
|
-
},
|
|
1848
|
+
}, El = (t) => {
|
|
1849
1849
|
const e = k(9), {
|
|
1850
1850
|
icon: n,
|
|
1851
1851
|
id: i,
|
|
@@ -1861,22 +1861,22 @@ const Ml = (t) => {
|
|
|
1861
1861
|
s,
|
|
1862
1862
|
l
|
|
1863
1863
|
] }), e[6] = s, e[7] = l, e[8] = d) : d = e[8], d;
|
|
1864
|
-
},
|
|
1864
|
+
}, Nl = (t, e) => {
|
|
1865
1865
|
if (e.kind === "command") {
|
|
1866
1866
|
t.commands.executeCommand(e.commandId, e.args);
|
|
1867
1867
|
return;
|
|
1868
1868
|
}
|
|
1869
1869
|
t.navigation.openTarget(e.target);
|
|
1870
|
-
},
|
|
1870
|
+
}, Ol = (t) => {
|
|
1871
1871
|
const {
|
|
1872
1872
|
groups: e,
|
|
1873
1873
|
workbench: n
|
|
1874
1874
|
} = t;
|
|
1875
1875
|
return e.map((i, o) => /* @__PURE__ */ H(F, { display: "contents", children: [
|
|
1876
1876
|
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(ft, { 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 ? () =>
|
|
1877
|
+
i.rows.map((r) => /* @__PURE__ */ u(oe.Item, { value: r.id, disabled: r.disabled, asChild: !0, children: /* @__PURE__ */ u(ft, { 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 ? () => Nl(n, r.action) : void 0 }) }, r.id))
|
|
1878
1878
|
] }, i.id));
|
|
1879
|
-
},
|
|
1879
|
+
}, zl = (t) => {
|
|
1880
1880
|
const e = k(15), {
|
|
1881
1881
|
disabled: n,
|
|
1882
1882
|
isActive: i,
|
|
@@ -1912,8 +1912,8 @@ const Ml = (t) => {
|
|
|
1912
1912
|
s.layout.closePanel(r.widgetId);
|
|
1913
1913
|
}, e[4] = n, e[5] = r.placementIdentity, e[6] = r.widgetId, e[7] = s, e[8] = p) : p = e[8];
|
|
1914
1914
|
let g;
|
|
1915
|
-
return e[9] !== n || e[10] !== l || e[11] !== d || e[12] !== a || e[13] !== p ? (g = /* @__PURE__ */ u(
|
|
1916
|
-
},
|
|
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: Ll, onClick: p }), e[9] = n, e[10] = l, e[11] = d, e[12] = a, e[13] = p, e[14] = g) : g = e[14], g;
|
|
1916
|
+
}, Bl = (t) => {
|
|
1917
1917
|
const e = k(12), {
|
|
1918
1918
|
behavior: n,
|
|
1919
1919
|
label: i,
|
|
@@ -1921,29 +1921,29 @@ const Ml = (t) => {
|
|
|
1921
1921
|
workbench: r
|
|
1922
1922
|
} = t;
|
|
1923
1923
|
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(
|
|
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(Ol, { groups: n.tabSnapshot.menu ?? [], workbench: r }) }) : null, e[0] = n, e[1] = i, e[2] = r, e[3] = s) : s = e[3];
|
|
1925
1925
|
let l;
|
|
1926
|
-
e[4] !== n || e[5] !== i || e[6] !== o || e[7] !== r ? (l = n.hasContextMenu ? /* @__PURE__ */ u(
|
|
1926
|
+
e[4] !== n || e[5] !== i || e[6] !== o || e[7] !== r ? (l = n.hasContextMenu ? /* @__PURE__ */ u($l, { 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
1927
|
let d;
|
|
1928
1928
|
return e[9] !== s || e[10] !== l ? (d = /* @__PURE__ */ H(Rt, { children: [
|
|
1929
1929
|
s,
|
|
1930
1930
|
l
|
|
1931
1931
|
] }), e[9] = s, e[10] = l, e[11] = d) : d = e[11], d;
|
|
1932
|
-
},
|
|
1932
|
+
}, Hl = (t) => {
|
|
1933
1933
|
const e = k(44), {
|
|
1934
1934
|
activeWidgetId: n,
|
|
1935
1935
|
disabled: i,
|
|
1936
1936
|
placement: o,
|
|
1937
1937
|
sortable: r,
|
|
1938
1938
|
workbench: s
|
|
1939
|
-
} = t, l = i === void 0 ? !1 : i, d = r === void 0 ? !1 : r, a = o.widgetId === n, c =
|
|
1939
|
+
} = t, l = i === void 0 ? !1 : i, d = r === void 0 ? !1 : r, a = o.widgetId === n, c = Al(o), m = c.label ?? o.resource?.label ?? o.title ?? o.contributionId, f = `workbench-tab-label-${o.widgetId}`;
|
|
1940
1940
|
let h;
|
|
1941
1941
|
if (e[0] !== o || e[1] !== s.layout || e[2] !== s.resources) {
|
|
1942
|
-
const
|
|
1943
|
-
h = yo(o,
|
|
1942
|
+
const q = s.layout.getWidget(o.contributionId);
|
|
1943
|
+
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
1944
|
} else
|
|
1945
1945
|
h = e[3];
|
|
1946
|
-
const p = h, g =
|
|
1946
|
+
const p = h, g = Ml(t, c), {
|
|
1947
1947
|
isDragging: w,
|
|
1948
1948
|
listeners: y,
|
|
1949
1949
|
setNodeRef: b,
|
|
@@ -1951,35 +1951,35 @@ const Ml = (t) => {
|
|
|
1951
1951
|
transition: S
|
|
1952
1952
|
} = g.sortableState, I = g.openMenu === "custom" && g.hasCustomMenu || g.openMenu === "context" && g.hasContextMenu, P = o.widgetId, x = g.hasCustomMenu || g.hasContextMenu ? "menu" : void 0, C = g.hasCustomMenu || g.hasContextMenu ? I : void 0, R = d ? "Alt+ArrowLeft Alt+ArrowRight" : void 0, W = g.isPreview ? "italic" : void 0, T = w ? "0.5" : void 0;
|
|
1953
1953
|
let _;
|
|
1954
|
-
e[4] !== v ? (_ =
|
|
1955
|
-
const
|
|
1954
|
+
e[4] !== v ? (_ = nr.Transform.toString(v), e[4] = v, e[5] = _) : _ = e[5];
|
|
1955
|
+
const N = g.hasContextMenu ? g.openContextMenu : void 0, A = g.hasCustomMenu && a && !l ? g.openCustomMenu : void 0, $ = c.icon ?? p;
|
|
1956
1956
|
let B;
|
|
1957
|
-
e[6] !== m || e[7] !== f || e[8] !==
|
|
1958
|
-
let
|
|
1959
|
-
e[11] !== l || e[12] !== a || e[13] !== m || e[14] !== o || e[15] !== s ? (
|
|
1957
|
+
e[6] !== m || e[7] !== f || e[8] !== $ || e[9] !== c.indicator ? (B = /* @__PURE__ */ u(El, { 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
|
+
let z;
|
|
1959
|
+
e[11] !== l || e[12] !== a || e[13] !== m || e[14] !== o || e[15] !== s ? (z = /* @__PURE__ */ u(zl, { 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
1960
|
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] !==
|
|
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: P, 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
1962
|
B,
|
|
1963
|
-
|
|
1964
|
-
] }), 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] =
|
|
1965
|
-
let
|
|
1966
|
-
e[36] !== g || e[37] !== m || e[38] !== o || e[39] !== s ? (
|
|
1963
|
+
z
|
|
1964
|
+
] }), 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
|
+
let O;
|
|
1966
|
+
e[36] !== g || e[37] !== m || e[38] !== o || e[39] !== s ? (O = /* @__PURE__ */ u(Bl, { 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
1967
|
let D;
|
|
1968
|
-
return e[41] !== M || e[42] !==
|
|
1968
|
+
return e[41] !== M || e[42] !== O ? (D = /* @__PURE__ */ H(Rt, { children: [
|
|
1969
1969
|
M,
|
|
1970
|
-
|
|
1971
|
-
] }), e[41] = M, e[42] =
|
|
1970
|
+
O
|
|
1971
|
+
] }), e[41] = M, e[42] = O, e[43] = D) : D = e[43], D;
|
|
1972
1972
|
};
|
|
1973
|
-
function
|
|
1973
|
+
function Dl(t) {
|
|
1974
1974
|
return t + 1;
|
|
1975
1975
|
}
|
|
1976
|
-
function
|
|
1976
|
+
function Vl(t) {
|
|
1977
1977
|
return t.rows.length > 0;
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function Ll(t) {
|
|
1980
1980
|
return t.stopPropagation();
|
|
1981
1981
|
}
|
|
1982
|
-
const
|
|
1982
|
+
const Fl = (t) => {
|
|
1983
1983
|
const e = k(53), {
|
|
1984
1984
|
activeWidgetId: n,
|
|
1985
1985
|
disabled: i,
|
|
@@ -1996,29 +1996,29 @@ const Kl = (t) => {
|
|
|
1996
1996
|
distance: 5
|
|
1997
1997
|
}
|
|
1998
1998
|
}, e[0] = c) : c = e[0];
|
|
1999
|
-
const m = Zi(Qi
|
|
1999
|
+
const m = Ui(Zi(Qi, c));
|
|
2000
2000
|
let f, h, p, g, w, y, b, v, S, I, P, x, C, R, W;
|
|
2001
2001
|
if (e[1] !== n || e[2] !== i || e[3] !== l || e[4] !== m || e[5] !== a) {
|
|
2002
|
-
const
|
|
2002
|
+
const $ = l.filter(Kl);
|
|
2003
2003
|
let B;
|
|
2004
2004
|
e[21] !== l || e[22] !== a ? (B = (M) => {
|
|
2005
2005
|
const {
|
|
2006
|
-
active:
|
|
2006
|
+
active: O,
|
|
2007
2007
|
over: D
|
|
2008
2008
|
} = M;
|
|
2009
|
-
if (!D ||
|
|
2009
|
+
if (!D || O.id === D.id)
|
|
2010
2010
|
return;
|
|
2011
|
-
const
|
|
2012
|
-
|
|
2011
|
+
const q = l.findIndex((j) => j.widgetId === O.id), re = l.findIndex((j) => j.widgetId === D.id), se = l[q], U = l[re];
|
|
2012
|
+
se?.role !== "sub-panel" || se.tabRetention === "preview" || U?.role !== "sub-panel" || U.tabRetention === "preview" || a.layout.reorderPanel(String(O.id), q < re ? {
|
|
2013
2013
|
afterWidgetId: U.widgetId
|
|
2014
2014
|
} : {
|
|
2015
2015
|
beforeWidgetId: U.widgetId
|
|
2016
2016
|
});
|
|
2017
2017
|
}, e[21] = l, e[22] = a, e[23] = B) : B = e[23];
|
|
2018
|
-
const
|
|
2019
|
-
p =
|
|
2020
|
-
const
|
|
2021
|
-
return /* @__PURE__ */ u(
|
|
2018
|
+
const z = B;
|
|
2019
|
+
p = Xi, w = m, y = Yi, b = z, h = er, e[24] !== l ? (R = l.map(ql), e[24] = l, e[25] = R) : R = e[25], W = tr, f = nn.List, g = "full", v = "0", S = "max-content", I = "center", P = "2xs", x = "flex-start", C = l.map((M) => {
|
|
2020
|
+
const O = $.findIndex((D) => D.widgetId === M.widgetId);
|
|
2021
|
+
return /* @__PURE__ */ u(Hl, { workbench: a, placement: M, activeWidgetId: n, disabled: i, sortable: O >= 0, previousWidgetId: $[O - 1]?.widgetId, nextWidgetId: $[O + 1]?.widgetId }, M.widgetId);
|
|
2022
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] = I, e[16] = P, e[17] = x, e[18] = C, e[19] = R, e[20] = W;
|
|
2023
2023
|
} else
|
|
2024
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], I = e[15], P = e[16], x = e[17], C = e[18], R = e[19], W = e[20];
|
|
@@ -2030,18 +2030,18 @@ const Kl = (t) => {
|
|
|
2030
2030
|
T,
|
|
2031
2031
|
r
|
|
2032
2032
|
] }), e[31] = f, e[32] = r, e[33] = g, e[34] = T, e[35] = v, e[36] = S, e[37] = I, e[38] = P, e[39] = x, e[40] = C, e[41] = _) : _ = e[41];
|
|
2033
|
-
let
|
|
2034
|
-
e[42] !== h || e[43] !== _ || e[44] !== R || e[45] !== W ? (
|
|
2033
|
+
let N;
|
|
2034
|
+
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
2035
|
let A;
|
|
2036
|
-
return e[47] !== p || e[48] !== w || e[49] !== y || e[50] !== b || e[51] !==
|
|
2036
|
+
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
2037
|
};
|
|
2038
|
-
function
|
|
2038
|
+
function Kl(t) {
|
|
2039
2039
|
return t.role === "sub-panel" && t.tabRetention !== "preview";
|
|
2040
2040
|
}
|
|
2041
|
-
function
|
|
2041
|
+
function ql(t) {
|
|
2042
2042
|
return t.widgetId;
|
|
2043
2043
|
}
|
|
2044
|
-
const
|
|
2044
|
+
const jl = (t, e) => {
|
|
2045
2045
|
const n = yo(e, t.layout.getWidget(e.contributionId), e.resource ? t.resources.getKind(e.resource.type)?.icon : void 0);
|
|
2046
2046
|
return n ? /* @__PURE__ */ u(L, { name: n, size: 14 }) : void 0;
|
|
2047
2047
|
}, pn = (t) => {
|
|
@@ -2063,7 +2063,7 @@ const Gl = (t, e) => {
|
|
|
2063
2063
|
hasActions: g
|
|
2064
2064
|
} = hn(n, i, o), w = d.tabOverrides;
|
|
2065
2065
|
let y;
|
|
2066
|
-
e[0] !== i ? (y = (
|
|
2066
|
+
e[0] !== i ? (y = (G) => bo(i, G), e[0] = i, e[1] = y) : y = e[1];
|
|
2067
2067
|
const b = y, [v, S] = Q(null), [I, P] = Q(!1);
|
|
2068
2068
|
let x;
|
|
2069
2069
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {
|
|
@@ -2074,128 +2074,128 @@ const Gl = (t, e) => {
|
|
|
2074
2074
|
}, e[2] = x) : x = e[2];
|
|
2075
2075
|
const [C, R] = Q(x);
|
|
2076
2076
|
let W, T;
|
|
2077
|
-
e[3] !== d ? (W = (
|
|
2078
|
-
let _,
|
|
2079
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ u(L, { name: "eye", size: 14 }),
|
|
2080
|
-
let
|
|
2081
|
-
e[9] !== n ? (
|
|
2082
|
-
const B =
|
|
2077
|
+
e[3] !== d ? (W = (G, ee) => d.toggleTab(G, ee), T = () => d.reset(), e[3] = d, e[4] = W, e[5] = T) : (W = e[4], T = e[5]);
|
|
2078
|
+
let _, N, A;
|
|
2079
|
+
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
|
+
let $;
|
|
2081
|
+
e[9] !== n ? ($ = (G) => jl(n, G), e[9] = n, e[10] = $) : $ = e[10];
|
|
2082
|
+
const B = ri(a, w, {
|
|
2083
2083
|
onToggleTab: W,
|
|
2084
2084
|
onResetAll: T
|
|
2085
2085
|
}, b, {
|
|
2086
2086
|
visibleIcon: _,
|
|
2087
|
-
hiddenIcon:
|
|
2087
|
+
hiddenIcon: N,
|
|
2088
2088
|
resetIcon: A
|
|
2089
|
-
},
|
|
2089
|
+
}, $), z = B.length > 0;
|
|
2090
2090
|
let M;
|
|
2091
|
-
e[11] !==
|
|
2092
|
-
if (!
|
|
2091
|
+
e[11] !== z ? (M = (G) => {
|
|
2092
|
+
if (!z)
|
|
2093
2093
|
return;
|
|
2094
|
-
|
|
2095
|
-
const ve = ((
|
|
2094
|
+
G.preventDefault();
|
|
2095
|
+
const ve = ((G.target instanceof Element ? G.target.closest('[role="tab"]') : void 0) ?? G.currentTarget).getBoundingClientRect();
|
|
2096
2096
|
R({
|
|
2097
2097
|
x: ve.x,
|
|
2098
2098
|
y: ve.y,
|
|
2099
2099
|
width: ve.width,
|
|
2100
2100
|
height: ve.height
|
|
2101
2101
|
}), P(!0);
|
|
2102
|
-
}, e[11] =
|
|
2103
|
-
const
|
|
2104
|
-
let D,
|
|
2105
|
-
if (e[13] !== v ? (
|
|
2102
|
+
}, e[11] = z, e[12] = M) : M = e[12];
|
|
2103
|
+
const O = M;
|
|
2104
|
+
let D, q;
|
|
2105
|
+
if (e[13] !== v ? (q = () => {
|
|
2106
2106
|
if (!v)
|
|
2107
2107
|
return;
|
|
2108
|
-
const
|
|
2108
|
+
const G = (ee) => {
|
|
2109
2109
|
ee.deltaY === 0 || v.scrollWidth <= v.clientWidth || (v.scrollLeft = v.scrollLeft + ee.deltaY, ee.preventDefault());
|
|
2110
2110
|
};
|
|
2111
|
-
return v.addEventListener("wheel",
|
|
2111
|
+
return v.addEventListener("wheel", G, {
|
|
2112
2112
|
passive: !1
|
|
2113
|
-
}), () => v.removeEventListener("wheel",
|
|
2114
|
-
}, D = [v], e[13] = v, e[14] = D, e[15] =
|
|
2113
|
+
}), () => v.removeEventListener("wheel", G);
|
|
2114
|
+
}, D = [v], e[13] = v, e[14] = D, e[15] = q) : (D = e[14], q = e[15]), ue(q, D), !p && !g)
|
|
2115
2115
|
return null;
|
|
2116
|
-
let
|
|
2117
|
-
e[16] !== s.activeWidgetId || e[17] !== c ? (
|
|
2118
|
-
const
|
|
2116
|
+
let re;
|
|
2117
|
+
e[16] !== s.activeWidgetId || e[17] !== c ? (re = vl(c, s.activeWidgetId), e[16] = s.activeWidgetId, e[17] = c, e[18] = re) : re = e[18];
|
|
2118
|
+
const se = re;
|
|
2119
2119
|
let U;
|
|
2120
|
-
e[19] !== r || e[20] !== n ? (U = (
|
|
2121
|
-
const ee = r[
|
|
2120
|
+
e[19] !== r || e[20] !== n ? (U = (G) => {
|
|
2121
|
+
const ee = r[G.commandId]?.command;
|
|
2122
2122
|
if (ee && tt(ee.params)) {
|
|
2123
2123
|
n.commandPalette.requestParams({
|
|
2124
2124
|
record: {
|
|
2125
2125
|
command: ee
|
|
2126
2126
|
},
|
|
2127
|
-
label:
|
|
2128
|
-
args:
|
|
2127
|
+
label: G.label,
|
|
2128
|
+
args: G.args
|
|
2129
2129
|
});
|
|
2130
2130
|
return;
|
|
2131
2131
|
}
|
|
2132
|
-
n.commands.executeCommand(
|
|
2132
|
+
n.commands.executeCommand(G.commandId, G.args).catch(Gl);
|
|
2133
2133
|
}, e[19] = r, e[20] = n, e[21] = U) : U = e[21];
|
|
2134
|
-
const
|
|
2134
|
+
const j = U;
|
|
2135
2135
|
let ae;
|
|
2136
|
-
if (e[22] !== m || e[23] !==
|
|
2137
|
-
let
|
|
2138
|
-
e[25] !==
|
|
2139
|
-
ve.stopPropagation(),
|
|
2140
|
-
}, children: /* @__PURE__ */ u(L, { name: ee.icon ?? "plus", size: 14 }) }) }, ee.id), e[25] =
|
|
2136
|
+
if (e[22] !== m || e[23] !== j) {
|
|
2137
|
+
let G;
|
|
2138
|
+
e[25] !== j ? (G = (ee) => /* @__PURE__ */ u(Pe, { content: ee.label, children: /* @__PURE__ */ u(we, { size: et, variant: "ghost", "aria-label": ee.label, disabled: ee.disabled, flexShrink: 0, onPointerDown: Ul, onClick: (ve) => {
|
|
2139
|
+
ve.stopPropagation(), j(ee);
|
|
2140
|
+
}, 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
2141
|
} else
|
|
2142
2142
|
ae = e[24];
|
|
2143
|
-
const
|
|
2143
|
+
const le = ae;
|
|
2144
2144
|
if (!p) {
|
|
2145
|
-
let
|
|
2146
|
-
e[27] !== h || e[28] !== f || e[29] !== l || e[30] !== n ? (
|
|
2145
|
+
let G;
|
|
2146
|
+
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
2147
|
let ee;
|
|
2148
|
-
return e[32] !==
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
] }), e[32] =
|
|
2148
|
+
return e[32] !== le || e[33] !== G ? (ee = /* @__PURE__ */ H(We, { flex: "1 1 auto", h: "full", minW: "0", gap: "2xs", children: [
|
|
2149
|
+
G,
|
|
2150
|
+
le
|
|
2151
|
+
] }), e[32] = le, e[33] = G, e[34] = ee) : ee = e[34], ee;
|
|
2152
2152
|
}
|
|
2153
|
-
const
|
|
2153
|
+
const V = nn;
|
|
2154
2154
|
let ce;
|
|
2155
|
-
e[35] !== i || e[36] !== c || e[37] !== n.layout ? (ce = (
|
|
2156
|
-
const ee = c.find((ve) => ve.widgetId ===
|
|
2155
|
+
e[35] !== i || e[36] !== c || e[37] !== n.layout ? (ce = (G) => {
|
|
2156
|
+
const ee = c.find((ve) => ve.widgetId === G.value);
|
|
2157
2157
|
if (ee?.role === "location") {
|
|
2158
2158
|
n.layout.setRegionActiveWidget(i, ee.widgetId);
|
|
2159
2159
|
return;
|
|
2160
2160
|
}
|
|
2161
|
-
n.layout.activatePanel(
|
|
2161
|
+
n.layout.activatePanel(G.value);
|
|
2162
2162
|
}, 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 =
|
|
2163
|
+
const de = "subtle", K = "gray", J = "start", te = si, ne = "stretch", fe = "1 1 auto", ie = "full", xe = "0", Ae = "full", Ot = "relative", zt = "1", Ce = z ? O : void 0;
|
|
2164
2164
|
let Me;
|
|
2165
2165
|
e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Me = {
|
|
2166
2166
|
h: "full"
|
|
2167
2167
|
}, e[39] = Me) : Me = e[39];
|
|
2168
2168
|
let be;
|
|
2169
|
-
e[40] !==
|
|
2170
|
-
const $e =
|
|
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(Ne, { viewportRef: S, size: "xs", h: "full", w: "max-content", maxW: "full", minW: "0", showVerticalScrollbar: !1, showHorizontalScrollbar: !0, contentProps: Me, children: /* @__PURE__ */ u(Fl, { 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];
|
|
2170
|
+
const $e = z ? /* @__PURE__ */ u(oe.Root, { open: I, onOpenChange: (G) => P(G.open), positioning: {
|
|
2171
2171
|
placement: "bottom-start",
|
|
2172
2172
|
getAnchorRect: () => C,
|
|
2173
2173
|
offset: {
|
|
2174
2174
|
mainAxis: 0
|
|
2175
2175
|
}
|
|
2176
|
-
}, children: /* @__PURE__ */ u(Je, { children: /* @__PURE__ */ u(oe.Positioner, { children: /* @__PURE__ */ u(oe.Content, { minW: "220px", bg: "bg", children: B.map(
|
|
2176
|
+
}, children: /* @__PURE__ */ u(Je, { children: /* @__PURE__ */ u(oe.Positioner, { children: /* @__PURE__ */ u(oe.Content, { minW: "220px", bg: "bg", children: B.map(Zl) }) }) }) }) : null;
|
|
2177
2177
|
let Te;
|
|
2178
|
-
return e[48] !==
|
|
2178
|
+
return e[48] !== se || e[49] !== V.Root || e[50] !== ce || e[51] !== te || e[52] !== Ce || e[53] !== be || e[54] !== $e ? (Te = /* @__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: Ae, position: Ot, zIndex: zt, onContextMenu: Ce, children: [
|
|
2179
2179
|
be,
|
|
2180
2180
|
$e
|
|
2181
|
-
] }), e[48] =
|
|
2181
|
+
] }), e[48] = se, e[49] = V.Root, e[50] = ce, e[51] = te, e[52] = Ce, e[53] = be, e[54] = $e, e[55] = Te) : Te = e[55], Te;
|
|
2182
2182
|
};
|
|
2183
|
-
function
|
|
2183
|
+
function Gl() {
|
|
2184
2184
|
}
|
|
2185
|
-
function
|
|
2185
|
+
function Ul(t) {
|
|
2186
2186
|
return t.stopPropagation();
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2188
|
+
function Zl(t) {
|
|
2189
2189
|
return /* @__PURE__ */ u(oe.Item, { value: t.key, asChild: !0, children: /* @__PURE__ */ u(ft, { asChild: !0, variant: "full-width", label: t.label, icon: t.icon, endContent: t.endContent, disabled: t.isDisabled, onActivate: t.onClick }) }, t.key);
|
|
2190
2190
|
}
|
|
2191
|
-
const
|
|
2191
|
+
const Ql = (t, e) => {
|
|
2192
2192
|
if (t.columns) return t.columns;
|
|
2193
2193
|
if (e) return e;
|
|
2194
2194
|
const n = t.rows[0];
|
|
2195
2195
|
return n ? Object.keys(n.values).map((i) => ({
|
|
2196
2196
|
id: i
|
|
2197
2197
|
})) : [];
|
|
2198
|
-
},
|
|
2198
|
+
}, Xl = (t, e) => {
|
|
2199
2199
|
const n = /* @__PURE__ */ new WeakMap();
|
|
2200
2200
|
return {
|
|
2201
2201
|
data: t.map((o) => {
|
|
@@ -2204,7 +2204,7 @@ const Xl = (t, e) => {
|
|
|
2204
2204
|
}),
|
|
2205
2205
|
rowByData: n
|
|
2206
2206
|
};
|
|
2207
|
-
},
|
|
2207
|
+
}, Yl = (t, e) => t.map((n) => ({
|
|
2208
2208
|
label: n.label,
|
|
2209
2209
|
icon: n.icon,
|
|
2210
2210
|
destructive: n.destructive,
|
|
@@ -2224,22 +2224,22 @@ const Xl = (t, e) => {
|
|
|
2224
2224
|
o.onClick();
|
|
2225
2225
|
}
|
|
2226
2226
|
})) : [];
|
|
2227
|
-
},
|
|
2227
|
+
}, Jl = (t, e) => {
|
|
2228
2228
|
const n = ge(e.resource) ?? e.resource?.id ?? "unscoped";
|
|
2229
2229
|
return `pstdio:workbench:dataTableRenderer:${t}:${e.instanceId}:${n}`;
|
|
2230
|
-
},
|
|
2230
|
+
}, ea = {
|
|
2231
2231
|
rows: []
|
|
2232
|
-
}, Lt = /* @__PURE__ */ new Map(),
|
|
2232
|
+
}, Lt = /* @__PURE__ */ new Map(), ta = (t, e) => `${t} ${ge(e.resource) ?? ""}`, na = (t) => {
|
|
2233
2233
|
const e = k(86), {
|
|
2234
2234
|
workbench: n,
|
|
2235
2235
|
contribution: i,
|
|
2236
2236
|
placement: o
|
|
2237
2237
|
} = t, r = mn(n);
|
|
2238
2238
|
let s;
|
|
2239
|
-
e[0] !== i.id || e[1] !== o ? (s =
|
|
2239
|
+
e[0] !== i.id || e[1] !== o ? (s = ta(i.id, o), e[0] = i.id, e[1] = o, e[2] = s) : s = e[2];
|
|
2240
2240
|
const l = s;
|
|
2241
2241
|
let d;
|
|
2242
|
-
e[3] !== l ? (d = () => Lt.get(l) ??
|
|
2242
|
+
e[3] !== l ? (d = () => Lt.get(l) ?? ea, e[3] = l, e[4] = d) : d = e[4];
|
|
2243
2243
|
const [a, c] = Q(d);
|
|
2244
2244
|
let m;
|
|
2245
2245
|
e[5] !== l ? (m = () => !Lt.has(l), e[5] = l, e[6] = m) : m = e[6];
|
|
@@ -2253,8 +2253,8 @@ const Xl = (t, e) => {
|
|
|
2253
2253
|
Promise.resolve(i.executeQuery({
|
|
2254
2254
|
resource: o.resource,
|
|
2255
2255
|
modeId: n.modes.getActiveModeId()
|
|
2256
|
-
})).then((
|
|
2257
|
-
K || p.current !== fe || (Lt.set(l,
|
|
2256
|
+
})).then((ie) => {
|
|
2257
|
+
K || p.current !== fe || (Lt.set(l, ie), c(ie), h(!1));
|
|
2258
2258
|
});
|
|
2259
2259
|
};
|
|
2260
2260
|
J();
|
|
@@ -2266,30 +2266,30 @@ const Xl = (t, e) => {
|
|
|
2266
2266
|
};
|
|
2267
2267
|
}, w = [l, i, o.resource, n], e[7] = l, e[8] = i, e[9] = o.resource, e[10] = n, e[11] = g, e[12] = w) : (g = e[11], w = e[12]), ue(g, w);
|
|
2268
2268
|
let y;
|
|
2269
|
-
e[13] !== i.columns || e[14] !== a ? (y =
|
|
2269
|
+
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
2270
|
const b = y;
|
|
2271
2271
|
let v;
|
|
2272
|
-
e[16] !== b || e[17] !== a.rows ? (v =
|
|
2272
|
+
e[16] !== b || e[17] !== a.rows ? (v = Xl(a.rows, b), e[16] = b, e[17] = a.rows, e[18] = v) : v = e[18];
|
|
2273
2273
|
const S = v;
|
|
2274
2274
|
let I;
|
|
2275
|
-
e[19] !== b ? (I = Object.fromEntries(b.filter(
|
|
2275
|
+
e[19] !== b ? (I = Object.fromEntries(b.filter(oa).map(ia)), e[19] = b, e[20] = I) : I = e[20];
|
|
2276
2276
|
const P = I;
|
|
2277
2277
|
let x;
|
|
2278
|
-
e[21] !== b ? (x = Object.fromEntries(b.filter(
|
|
2278
|
+
e[21] !== b ? (x = Object.fromEntries(b.filter(ra).map(sa)), e[21] = b, e[22] = x) : x = e[22];
|
|
2279
2279
|
const C = x;
|
|
2280
2280
|
let R;
|
|
2281
|
-
e[23] !== b ? (R = Object.fromEntries(b.filter(
|
|
2281
|
+
e[23] !== b ? (R = Object.fromEntries(b.filter(la).map(aa)), e[23] = b, e[24] = R) : R = e[24];
|
|
2282
2282
|
const W = R;
|
|
2283
2283
|
let T;
|
|
2284
|
-
e[25] !== b ? (T = Object.fromEntries(b.filter(
|
|
2284
|
+
e[25] !== b ? (T = Object.fromEntries(b.filter(ca).map(da)), e[25] = b, e[26] = T) : T = e[26];
|
|
2285
2285
|
const _ = T;
|
|
2286
|
-
let
|
|
2287
|
-
e[27] !== b ? (
|
|
2288
|
-
const A =
|
|
2289
|
-
let
|
|
2290
|
-
e[29] !== i.rowActions ? (
|
|
2286
|
+
let N;
|
|
2287
|
+
e[27] !== b ? (N = Object.fromEntries(b.filter(ua).map(ma)), e[27] = b, e[28] = N) : N = e[28];
|
|
2288
|
+
const A = N;
|
|
2289
|
+
let $;
|
|
2290
|
+
e[29] !== i.rowActions ? ($ = i.rowActions ?? [], e[29] = i.rowActions, e[30] = $) : $ = e[30];
|
|
2291
2291
|
let B;
|
|
2292
|
-
if (e[31] !== S.rowByData || e[32] !==
|
|
2292
|
+
if (e[31] !== S.rowByData || e[32] !== $) {
|
|
2293
2293
|
let K;
|
|
2294
2294
|
e[34] !== S.rowByData ? (K = (J) => ({
|
|
2295
2295
|
label: J.label,
|
|
@@ -2299,97 +2299,97 @@ const Xl = (t, e) => {
|
|
|
2299
2299
|
const ne = S.rowByData.get(te);
|
|
2300
2300
|
ne && J.run(ne);
|
|
2301
2301
|
}
|
|
2302
|
-
}), e[34] = S.rowByData, e[35] = K) : K = e[35], B =
|
|
2302
|
+
}), e[34] = S.rowByData, e[35] = K) : K = e[35], B = $.map(K), e[31] = S.rowByData, e[32] = $, e[33] = B;
|
|
2303
2303
|
} else
|
|
2304
2304
|
B = e[33];
|
|
2305
|
-
const
|
|
2305
|
+
const z = B;
|
|
2306
2306
|
let M;
|
|
2307
2307
|
e[36] !== i.selectionActions ? (M = i.selectionActions ?? [], e[36] = i.selectionActions, e[37] = M) : M = e[37];
|
|
2308
|
-
let
|
|
2309
|
-
e[38] !== S.rowByData || e[39] !== M ? (
|
|
2310
|
-
const D =
|
|
2311
|
-
let
|
|
2312
|
-
e[41] !== i || e[42] !== S.rowByData ? (
|
|
2308
|
+
let O;
|
|
2309
|
+
e[38] !== S.rowByData || e[39] !== M ? (O = Yl(M, S.rowByData), e[38] = S.rowByData, e[39] = M, e[40] = O) : O = e[40];
|
|
2310
|
+
const D = O;
|
|
2311
|
+
let q;
|
|
2312
|
+
e[41] !== i || e[42] !== S.rowByData ? (q = (K) => {
|
|
2313
2313
|
const J = S.rowByData.get(K);
|
|
2314
|
-
J && i.onRowActivate && Promise.resolve(i.onRowActivate(J)).catch(
|
|
2315
|
-
}, e[41] = i, e[42] = S.rowByData, e[43] =
|
|
2316
|
-
const
|
|
2314
|
+
J && i.onRowActivate && Promise.resolve(i.onRowActivate(J)).catch(fa);
|
|
2315
|
+
}, e[41] = i, e[42] = S.rowByData, e[43] = q) : q = e[43];
|
|
2316
|
+
const re = q;
|
|
2317
2317
|
if (f) {
|
|
2318
2318
|
let K;
|
|
2319
|
-
e[44] !== i.columns ? (K = (i.columns ?? []).filter(
|
|
2319
|
+
e[44] !== i.columns ? (K = (i.columns ?? []).filter(ha).map(pa), e[44] = i.columns, e[45] = K) : K = e[45];
|
|
2320
2320
|
const J = K, te = J.length > 0 ? J : void 0;
|
|
2321
2321
|
let ne;
|
|
2322
|
-
return e[46] !== te ? (ne = /* @__PURE__ */ u(_e, { h: "full", minH: "0", minW: "0", gap: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ u(
|
|
2322
|
+
return e[46] !== te ? (ne = /* @__PURE__ */ u(_e, { h: "full", minH: "0", minW: "0", gap: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ u(ir, { columns: te }) }), e[46] = te, e[47] = ne) : ne = e[47], ne;
|
|
2323
2323
|
}
|
|
2324
2324
|
if (a.rows.length === 0) {
|
|
2325
2325
|
const K = i.emptyTitle ?? "No rows";
|
|
2326
2326
|
let J;
|
|
2327
2327
|
return e[48] !== i.emptyDescription || e[49] !== K ? (J = /* @__PURE__ */ u(He, { h: "full", title: K, description: i.emptyDescription }), e[48] = i.emptyDescription, e[49] = K, e[50] = J) : J = e[50], J;
|
|
2328
2328
|
}
|
|
2329
|
-
const
|
|
2329
|
+
const se = S.data;
|
|
2330
2330
|
let U;
|
|
2331
2331
|
e[51] !== S.rowByData ? (U = (K) => S.rowByData.get(K)?.id ?? "", e[51] = S.rowByData, e[52] = U) : U = e[52];
|
|
2332
|
-
let
|
|
2333
|
-
e[53] !== i.id || e[54] !== o ? (
|
|
2332
|
+
let j;
|
|
2333
|
+
e[53] !== i.id || e[54] !== o ? (j = Jl(i.id, o), e[53] = i.id, e[54] = o, e[55] = j) : j = e[55];
|
|
2334
2334
|
let ae;
|
|
2335
|
-
e[56] !== b ? (ae = b.filter(
|
|
2336
|
-
let V;
|
|
2337
|
-
e[58] !== S.rowByData || e[59] !== r ? (V = (K) => Tn(K, S.rowByData, r), e[58] = S.rowByData, e[59] = r, e[60] = V) : V = e[60];
|
|
2335
|
+
e[56] !== b ? (ae = b.filter(ga).map(ba), e[56] = b, e[57] = ae) : ae = e[57];
|
|
2338
2336
|
let le;
|
|
2339
|
-
e[
|
|
2337
|
+
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
|
+
let V;
|
|
2339
|
+
e[61] !== i.onRowActivate || e[62] !== S.rowByData ? (V = (K) => !!(S.rowByData.get(K) && i.onRowActivate), e[61] = i.onRowActivate, e[62] = S.rowByData, e[63] = V) : V = e[63];
|
|
2340
2340
|
let ce;
|
|
2341
2341
|
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
2342
|
let de;
|
|
2343
|
-
return e[67] !== i.initialPageSize || e[68] !== i.pageSizeOptions || e[69] !== i.selectionMode || e[70] !== C || e[71] !== W || e[72] !== P || e[73] !== S.data || e[74] !==
|
|
2343
|
+
return e[67] !== i.initialPageSize || e[68] !== i.pageSizeOptions || e[69] !== i.selectionMode || e[70] !== C || e[71] !== W || e[72] !== P || 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(_e, { h: "full", minH: "0", minW: "0", gap: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ u(or, { data: se, getRowId: U, toolbarStorageKey: j, compactHeaders: P, 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] = P, 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
2344
|
};
|
|
2345
|
-
function
|
|
2345
|
+
function oa(t) {
|
|
2346
2346
|
return t.label;
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2348
|
+
function ia(t) {
|
|
2349
2349
|
return [t.id, t.label];
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function ra(t) {
|
|
2352
2352
|
return t.description;
|
|
2353
2353
|
}
|
|
2354
|
-
function
|
|
2354
|
+
function sa(t) {
|
|
2355
2355
|
return [t.id, t.description];
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function la(t) {
|
|
2358
2358
|
return t.icon;
|
|
2359
2359
|
}
|
|
2360
|
-
function
|
|
2360
|
+
function aa(t) {
|
|
2361
2361
|
return [t.id, t.icon];
|
|
2362
2362
|
}
|
|
2363
|
-
function
|
|
2363
|
+
function ca(t) {
|
|
2364
2364
|
return t.stat;
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function da(t) {
|
|
2367
2367
|
return [t.id, t.stat];
|
|
2368
2368
|
}
|
|
2369
|
-
function
|
|
2369
|
+
function ua(t) {
|
|
2370
2370
|
return t.renderer;
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function ma(t) {
|
|
2373
2373
|
return [t.id, t.renderer];
|
|
2374
2374
|
}
|
|
2375
|
-
function
|
|
2375
|
+
function fa() {
|
|
2376
2376
|
}
|
|
2377
|
-
function
|
|
2377
|
+
function ha(t) {
|
|
2378
2378
|
return !t.hidden;
|
|
2379
2379
|
}
|
|
2380
|
-
function
|
|
2380
|
+
function pa(t) {
|
|
2381
2381
|
return {
|
|
2382
2382
|
id: t.id,
|
|
2383
2383
|
label: t.label ?? t.id
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2386
|
+
function ga(t) {
|
|
2387
2387
|
return t.hidden;
|
|
2388
2388
|
}
|
|
2389
|
-
function
|
|
2389
|
+
function ba(t) {
|
|
2390
2390
|
return t.id;
|
|
2391
2391
|
}
|
|
2392
|
-
const
|
|
2392
|
+
const ya = [{
|
|
2393
2393
|
id: "true",
|
|
2394
2394
|
name: "On"
|
|
2395
2395
|
}, {
|
|
@@ -2401,7 +2401,7 @@ const va = [{
|
|
|
2401
2401
|
}, _n = (t) => t.map((e) => ({
|
|
2402
2402
|
id: String(e),
|
|
2403
2403
|
name: wo(String(e))
|
|
2404
|
-
})),
|
|
2404
|
+
})), va = (t) => {
|
|
2405
2405
|
const {
|
|
2406
2406
|
name: e,
|
|
2407
2407
|
schema: n
|
|
@@ -2421,7 +2421,7 @@ const va = [{
|
|
|
2421
2421
|
...s,
|
|
2422
2422
|
type: "selection",
|
|
2423
2423
|
defaultValue: String(!!r),
|
|
2424
|
-
options:
|
|
2424
|
+
options: ya
|
|
2425
2425
|
};
|
|
2426
2426
|
if (n.type === "string")
|
|
2427
2427
|
return n.enum ? {
|
|
@@ -2445,9 +2445,9 @@ const va = [{
|
|
|
2445
2445
|
options: _n(n.enum)
|
|
2446
2446
|
};
|
|
2447
2447
|
}
|
|
2448
|
-
},
|
|
2448
|
+
}, Sa = (t) => t.map(va).filter((e) => e !== void 0), wa = (t, e) => t.type === "boolean" ? e === "true" : t.type === "number" ? Number(e) : t.type === "array" ? Array.isArray(e) ? e.map(String) : [] : String(e), Pa = (t) => typeof t == "string" ? {
|
|
2449
2449
|
name: t
|
|
2450
|
-
} : t,
|
|
2450
|
+
} : t, Ia = (t) => {
|
|
2451
2451
|
const e = k(34), {
|
|
2452
2452
|
preferences: n,
|
|
2453
2453
|
names: i,
|
|
@@ -2468,76 +2468,76 @@ const va = [{
|
|
|
2468
2468
|
p = [];
|
|
2469
2469
|
for (const B of i) {
|
|
2470
2470
|
const {
|
|
2471
|
-
name:
|
|
2471
|
+
name: z,
|
|
2472
2472
|
label: M
|
|
2473
|
-
} =
|
|
2474
|
-
|
|
2475
|
-
name:
|
|
2473
|
+
} = Pa(B), O = n.getSchema(z);
|
|
2474
|
+
O && p.push({
|
|
2475
|
+
name: z,
|
|
2476
2476
|
label: M,
|
|
2477
|
-
schema:
|
|
2478
|
-
value: n.getValue(
|
|
2477
|
+
schema: O,
|
|
2478
|
+
value: n.getValue(z, h(O.scope))
|
|
2479
2479
|
});
|
|
2480
2480
|
}
|
|
2481
|
-
g =
|
|
2481
|
+
g = Sa(p), e[3] = i, e[4] = n, e[5] = h, e[6] = p, e[7] = g;
|
|
2482
2482
|
} else
|
|
2483
2483
|
p = e[6], g = e[7];
|
|
2484
2484
|
const w = g;
|
|
2485
2485
|
let y;
|
|
2486
|
-
e[8] !== p ? (y = new Map(p.map(
|
|
2486
|
+
e[8] !== p ? (y = new Map(p.map(xa)), e[8] = p, e[9] = y) : y = e[9];
|
|
2487
2487
|
const b = y;
|
|
2488
2488
|
let v;
|
|
2489
|
-
e[10] !== n || e[11] !== b || e[12] !== h ? (v = (B,
|
|
2489
|
+
e[10] !== n || e[11] !== b || e[12] !== h ? (v = (B, z) => {
|
|
2490
2490
|
const M = b.get(B);
|
|
2491
|
-
M && n.setValue(B,
|
|
2491
|
+
M && n.setValue(B, wa(M, z), h(M.scope));
|
|
2492
2492
|
}, e[10] = n, e[11] = b, e[12] = h, e[13] = v) : v = e[13];
|
|
2493
2493
|
const S = v;
|
|
2494
2494
|
let I;
|
|
2495
|
-
e[14] !== s || e[15] !== S ? (I = (B,
|
|
2495
|
+
e[14] !== s || e[15] !== S ? (I = (B, z) => {
|
|
2496
2496
|
if (s === "apply") {
|
|
2497
2497
|
a((M) => ({
|
|
2498
2498
|
...M,
|
|
2499
|
-
[B]:
|
|
2499
|
+
[B]: z
|
|
2500
2500
|
}));
|
|
2501
2501
|
return;
|
|
2502
2502
|
}
|
|
2503
|
-
S(B,
|
|
2503
|
+
S(B, z);
|
|
2504
2504
|
}, e[14] = s, e[15] = S, e[16] = I) : I = e[16];
|
|
2505
2505
|
const P = I;
|
|
2506
2506
|
let x;
|
|
2507
2507
|
e[17] !== S || e[18] !== d ? (x = () => {
|
|
2508
|
-
for (const [B,
|
|
2509
|
-
S(B,
|
|
2510
|
-
a({}), m(
|
|
2508
|
+
for (const [B, z] of Object.entries(d))
|
|
2509
|
+
S(B, z);
|
|
2510
|
+
a({}), m(Ca);
|
|
2511
2511
|
}, e[17] = S, e[18] = d, e[19] = x) : x = e[19];
|
|
2512
2512
|
const C = x;
|
|
2513
2513
|
let R;
|
|
2514
2514
|
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = () => {
|
|
2515
|
-
a({}), m(
|
|
2515
|
+
a({}), m(ka);
|
|
2516
2516
|
}, e[20] = R) : R = e[20];
|
|
2517
2517
|
const W = R;
|
|
2518
2518
|
let T;
|
|
2519
2519
|
e[21] !== d ? (T = Object.keys(d), e[21] = d, e[22] = T) : T = e[22];
|
|
2520
2520
|
const _ = T.length > 0;
|
|
2521
|
-
let
|
|
2522
|
-
e[23] !== c || e[24] !== P || e[25] !== w ? (
|
|
2521
|
+
let N;
|
|
2522
|
+
e[23] !== c || e[24] !== P || e[25] !== w ? (N = /* @__PURE__ */ u(Un, { params: w, onChange: P, fullWidth: !0 }, c), e[23] = c, e[24] = P, e[25] = w, e[26] = N) : N = e[26];
|
|
2523
2523
|
let A;
|
|
2524
2524
|
e[27] !== _ || e[28] !== s || e[29] !== C ? (A = s === "apply" && /* @__PURE__ */ H(We, { gap: "sm", children: [
|
|
2525
2525
|
/* @__PURE__ */ u(Be, { size: "sm", onClick: C, disabled: !_, children: "Save" }),
|
|
2526
2526
|
/* @__PURE__ */ u(Be, { size: "sm", variant: "outline", onClick: W, disabled: !_, children: "Discard" })
|
|
2527
2527
|
] }), e[27] = _, e[28] = s, e[29] = C, e[30] = A) : A = e[30];
|
|
2528
|
-
let
|
|
2529
|
-
return e[31] !==
|
|
2530
|
-
|
|
2528
|
+
let $;
|
|
2529
|
+
return e[31] !== N || e[32] !== A ? ($ = /* @__PURE__ */ H(_e, { gap: "md", maxW: "640px", children: [
|
|
2530
|
+
N,
|
|
2531
2531
|
A
|
|
2532
|
-
] }), e[31] =
|
|
2532
|
+
] }), e[31] = N, e[32] = A, e[33] = $) : $ = e[33], $;
|
|
2533
2533
|
};
|
|
2534
|
-
function
|
|
2534
|
+
function xa(t) {
|
|
2535
2535
|
return [t.name, t.schema];
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function Ca(t) {
|
|
2538
2538
|
return t + 1;
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function ka(t) {
|
|
2541
2541
|
return t + 1;
|
|
2542
2542
|
}
|
|
2543
2543
|
const Et = (t) => {
|
|
@@ -2546,16 +2546,16 @@ const Et = (t) => {
|
|
|
2546
2546
|
return e.length === 1 ? e[0] : e;
|
|
2547
2547
|
}, Po = (t) => {
|
|
2548
2548
|
if (t.resource) return ge(t.resource);
|
|
2549
|
-
}, Io = (t, e) => t.flatMap((n) => [n, ...Io([...n.children ?? [], ...e[n.id] ?? []], e)]), Nt = (t, e) => t.flatMap((n) => Io(n.nodes, e)),
|
|
2549
|
+
}, Io = (t, e) => t.flatMap((n) => [n, ...Io([...n.children ?? [], ...e[n.id] ?? []], e)]), Nt = (t, e) => t.flatMap((n) => Io(n.nodes, e)), Ra = (t, e, n) => {
|
|
2550
2550
|
const i = Nt(t, e);
|
|
2551
2551
|
for (const o of n) {
|
|
2552
2552
|
const r = i.filter((s) => s.id === o || Po(s) === o).map((s) => s.id);
|
|
2553
2553
|
if (r.length > 0) return Et(r);
|
|
2554
2554
|
}
|
|
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))),
|
|
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))), Wa = (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" && Wa(o.page, e) && (o.resource ? n !== void 0 && ge(o.resource) === ge(n) : n === void 0)) : !1, Ta = (t, e, n, i) => {
|
|
2556
2556
|
if (n)
|
|
2557
2557
|
return Et(Nt(t, e).filter((o) => Co(o.target, n, i)).map((o) => o.id));
|
|
2558
|
-
},
|
|
2558
|
+
}, _a = (t) => {
|
|
2559
2559
|
const {
|
|
2560
2560
|
sections: e,
|
|
2561
2561
|
childrenByNodeId: n,
|
|
@@ -2567,20 +2567,20 @@ const Et = (t) => {
|
|
|
2567
2567
|
if (i) return i;
|
|
2568
2568
|
const l = Et(Nt(e, n).filter((f) => f.selected).map((f) => f.id));
|
|
2569
2569
|
if (l) return l;
|
|
2570
|
-
const d =
|
|
2570
|
+
const d = Bi(r);
|
|
2571
2571
|
let a;
|
|
2572
2572
|
if (s) {
|
|
2573
2573
|
const f = xo(e, s, n);
|
|
2574
2574
|
if (a = f ? Po(f) : void 0, a && d.includes(a) || o && Co(f?.target, o.page, o.resource))
|
|
2575
2575
|
return s;
|
|
2576
2576
|
}
|
|
2577
|
-
const c =
|
|
2577
|
+
const c = Ra(e, n, d);
|
|
2578
2578
|
if (c) return c;
|
|
2579
|
-
const m =
|
|
2579
|
+
const m = Ta(e, n, o?.page, o?.resource);
|
|
2580
2580
|
if (m) return m;
|
|
2581
2581
|
if (s && !(d.length > 0 && a))
|
|
2582
2582
|
return s;
|
|
2583
|
-
},
|
|
2583
|
+
}, Aa = (t) => t.inlineInput === void 0 && t.isContainer !== !0 && (t.children ?? []).length === 0, Ma = (t) => t.every((e) => e.nodes.every(Aa)), ko = (t, e, n) => {
|
|
2584
2584
|
for (const i of t) {
|
|
2585
2585
|
if (i.id === e) return i;
|
|
2586
2586
|
const o = ko([...i.children ?? [], ...n[i.id] ?? []], e, n);
|
|
@@ -2593,10 +2593,10 @@ const Et = (t) => {
|
|
|
2593
2593
|
if (o) return o;
|
|
2594
2594
|
}
|
|
2595
2595
|
return null;
|
|
2596
|
-
},
|
|
2596
|
+
}, $a = (t, e) => e ? /* @__PURE__ */ u(Pe, { content: e, openDelay: 300, children: /* @__PURE__ */ u(F, { as: "span", display: "inline-flex", alignItems: "center", justifyContent: "center", children: t }) }) : t, Ea = (t) => {
|
|
2597
2597
|
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
|
-
},
|
|
2598
|
+
return t.iconElement !== void 0 ? e = t.iconElement : t.icon && (e = /* @__PURE__ */ u(L, { name: t.icon })), e === void 0 ? void 0 : $a(e, t.iconTooltip);
|
|
2599
|
+
}, Na = (t) => {
|
|
2600
2600
|
if (t.target) return {
|
|
2601
2601
|
id: "target",
|
|
2602
2602
|
payload: t.target
|
|
@@ -2605,21 +2605,21 @@ const Et = (t) => {
|
|
|
2605
2605
|
id: "resource",
|
|
2606
2606
|
payload: t.resource
|
|
2607
2607
|
};
|
|
2608
|
-
},
|
|
2608
|
+
}, Oa = (t) => {
|
|
2609
2609
|
if (t.resource) return t.resource;
|
|
2610
|
-
},
|
|
2610
|
+
}, za = (t) => {
|
|
2611
2611
|
if (t)
|
|
2612
2612
|
return /* @__PURE__ */ u(F, { opacity: "0", pointerEvents: "none", display: "inline-flex", alignItems: "center", transition: "opacity 120ms ease", _groupHover: {
|
|
2613
2613
|
opacity: "1"
|
|
2614
2614
|
}, children: /* @__PURE__ */ u(mt, { binding: t }) });
|
|
2615
|
-
},
|
|
2615
|
+
}, Ba = (t, e, n) => {
|
|
2616
2616
|
if (t.endContent !== void 0) return t.endContent;
|
|
2617
|
-
const i =
|
|
2617
|
+
const i = za(n);
|
|
2618
2618
|
if (i) return i;
|
|
2619
2619
|
const o = e?.metadata?.diffAdditions, r = e?.metadata?.diffDeletions;
|
|
2620
2620
|
if (!(e?.type !== "workspace" || typeof o != "number" || typeof r != "number"))
|
|
2621
|
-
return /* @__PURE__ */ u(
|
|
2622
|
-
},
|
|
2621
|
+
return /* @__PURE__ */ u(rr, { additions: o, deletions: r, variant: "ghost", size: "small" });
|
|
2622
|
+
}, Ha = (t) => {
|
|
2623
2623
|
if (!(!t.emptyState || t.nodes.length > 0))
|
|
2624
2624
|
return {
|
|
2625
2625
|
id: `${t.id}:empty`,
|
|
@@ -2630,11 +2630,11 @@ const Et = (t) => {
|
|
|
2630
2630
|
rowVariant: "empty-state"
|
|
2631
2631
|
};
|
|
2632
2632
|
}, Ro = (t, e, n) => {
|
|
2633
|
-
const i =
|
|
2633
|
+
const i = Na(t), o = Oa(t), r = o ? {
|
|
2634
2634
|
resource: o
|
|
2635
2635
|
} : void 0, s = fo({
|
|
2636
2636
|
actions: t.contextMenuActions,
|
|
2637
|
-
menuPath: t.contextMenuPath ?? t.menuPath ?? (o ?
|
|
2637
|
+
menuPath: t.contextMenuPath ?? t.menuPath ?? (o ? no(o.type) : void 0),
|
|
2638
2638
|
workbench: n.workbench,
|
|
2639
2639
|
context: r,
|
|
2640
2640
|
onCommandError: n.onCommandError,
|
|
@@ -2645,7 +2645,7 @@ const Et = (t) => {
|
|
|
2645
2645
|
moveScope: t.moveScope,
|
|
2646
2646
|
label: t.label,
|
|
2647
2647
|
description: t.description,
|
|
2648
|
-
icon:
|
|
2648
|
+
icon: Ea(t),
|
|
2649
2649
|
iconColor: t.iconColor,
|
|
2650
2650
|
disabled: t.disabled,
|
|
2651
2651
|
rowVariant: t.rowVariant,
|
|
@@ -2663,7 +2663,7 @@ const Et = (t) => {
|
|
|
2663
2663
|
onCommandError: n.onCommandError,
|
|
2664
2664
|
onRequestParams: n.onRequestParams
|
|
2665
2665
|
}),
|
|
2666
|
-
endContent:
|
|
2666
|
+
endContent: Ba(t, o, a),
|
|
2667
2667
|
menuItems: l,
|
|
2668
2668
|
contextMenuItems: s.length > 0 ? s : void 0,
|
|
2669
2669
|
...t.menuPlacement ? {
|
|
@@ -2675,7 +2675,7 @@ const Et = (t) => {
|
|
|
2675
2675
|
children: [...t.children ?? [], ...e[t.id] ?? []].map((m) => Ro(m, e, n))
|
|
2676
2676
|
};
|
|
2677
2677
|
}, Kt = (t, e, n) => {
|
|
2678
|
-
const i =
|
|
2678
|
+
const i = Ha(t);
|
|
2679
2679
|
return {
|
|
2680
2680
|
id: t.id,
|
|
2681
2681
|
moveScope: t.moveScope,
|
|
@@ -2692,7 +2692,7 @@ const Et = (t) => {
|
|
|
2692
2692
|
hiddenByDefault: t.hiddenByDefault,
|
|
2693
2693
|
nodes: i ? [i] : t.nodes.map((o) => Ro(o, e, n))
|
|
2694
2694
|
};
|
|
2695
|
-
},
|
|
2695
|
+
}, Da = (t) => {
|
|
2696
2696
|
const e = k(10), {
|
|
2697
2697
|
request: n,
|
|
2698
2698
|
renderParamField: i,
|
|
@@ -2710,11 +2710,11 @@ const Et = (t) => {
|
|
|
2710
2710
|
}, e[2] = n, e[3] = d) : d = e[3];
|
|
2711
2711
|
let a;
|
|
2712
2712
|
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
|
-
},
|
|
2713
|
+
}, Va = ["70%", "50%", "82%", "60%", "44%", "76%"], La = () => {
|
|
2714
2714
|
const t = k(1);
|
|
2715
2715
|
let e;
|
|
2716
|
-
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ u(_e, { gap: "sm", px: "sm", py: "xs", "aria-hidden": !0, children:
|
|
2717
|
-
},
|
|
2716
|
+
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ u(_e, { gap: "sm", px: "sm", py: "xs", "aria-hidden": !0, children: Va.map(Ka) }), t[0] = e) : e = t[0], e;
|
|
2717
|
+
}, Fa = (t) => {
|
|
2718
2718
|
const e = k(22), {
|
|
2719
2719
|
error: n,
|
|
2720
2720
|
loading: i,
|
|
@@ -2743,21 +2743,21 @@ const Et = (t) => {
|
|
|
2743
2743
|
return null;
|
|
2744
2744
|
if (o) {
|
|
2745
2745
|
let P;
|
|
2746
|
-
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ u(
|
|
2746
|
+
return e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ u(La, {}), e[2] = P) : P = e[2], P;
|
|
2747
2747
|
}
|
|
2748
2748
|
if (r.length === 0 && (s?.length ?? 0) === 0 && !d) {
|
|
2749
2749
|
let P;
|
|
2750
2750
|
return e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ u(He, { minH: "12rem", title: "No tree items" }), e[3] = P) : P = e[3], P;
|
|
2751
2751
|
}
|
|
2752
2752
|
let S;
|
|
2753
|
-
e[4] !== r ? (S =
|
|
2753
|
+
e[4] !== r ? (S = Ma(r), e[4] = r, e[5] = S) : S = e[5];
|
|
2754
2754
|
let I;
|
|
2755
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 ? (I = /* @__PURE__ */ u(Qt, { 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] = I) : I = e[21], I;
|
|
2756
2756
|
};
|
|
2757
|
-
function
|
|
2758
|
-
return /* @__PURE__ */ u(
|
|
2757
|
+
function Ka(t, e) {
|
|
2758
|
+
return /* @__PURE__ */ u(Uo, { height: "4", width: t, borderRadius: "xs" }, `${t}-${e}`);
|
|
2759
2759
|
}
|
|
2760
|
-
const
|
|
2760
|
+
const qa = (t) => t.renderer.moveNode ? (e, n) => {
|
|
2761
2761
|
const i = Ct(t.sections, e, t.childrenByNodeId), o = n ? Ct(t.sections, n, t.childrenByNodeId) ?? void 0 : void 0;
|
|
2762
2762
|
if (!i || n && !o) return;
|
|
2763
2763
|
const r = Y(t.workbench);
|
|
@@ -2768,7 +2768,7 @@ const ja = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2768
2768
|
refresh: () => r.refresh(t.renderer.id),
|
|
2769
2769
|
setSelectedNode: (s) => r.setSelectedNode(t.renderer.id, s)
|
|
2770
2770
|
})).catch(t.onError);
|
|
2771
|
-
} : void 0,
|
|
2771
|
+
} : void 0, ja = (t) => (t.kind === "compound" ? t.targets : [t]).some((n) => n.kind === "page" || n.kind === "panel"), Ga = (t) => {
|
|
2772
2772
|
const e = k(7), {
|
|
2773
2773
|
visible: n,
|
|
2774
2774
|
placeholder: i,
|
|
@@ -2782,8 +2782,8 @@ const ja = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2782
2782
|
let d;
|
|
2783
2783
|
e[1] !== r ? (d = (c) => r(c.target.value), e[1] = r, e[2] = d) : d = e[2];
|
|
2784
2784
|
let a;
|
|
2785
|
-
return e[3] !== s || e[4] !== d || e[5] !== o ? (a = /* @__PURE__ */ u(De, { flexShrink: 0, borderBottomWidth: "1px", borderColor: "border.subtle", bg: "bg", children: /* @__PURE__ */ u(
|
|
2786
|
-
},
|
|
2785
|
+
return e[3] !== s || e[4] !== d || e[5] !== o ? (a = /* @__PURE__ */ u(De, { flexShrink: 0, borderBottomWidth: "1px", borderColor: "border.subtle", bg: "bg", children: /* @__PURE__ */ u(Zo, { 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;
|
|
2786
|
+
}, Ua = (t, e, n) => n instanceof Error && n.message === `Tree renderer not registered: ${e}` && !t.getTreeRenderer(e), Za = (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
2787
|
const r = new Set(i), s = /* @__PURE__ */ new Set(), l = {}, d = async (a) => {
|
|
2788
2788
|
await Promise.all(a.map(async (c) => {
|
|
2789
2789
|
if (!r.has(c.id) || s.has(c.id)) return;
|
|
@@ -2792,13 +2792,13 @@ const ja = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2792
2792
|
c.children || (l[c.id] = m), await d(m);
|
|
2793
2793
|
}));
|
|
2794
2794
|
};
|
|
2795
|
-
return await d(
|
|
2796
|
-
},
|
|
2795
|
+
return await d(Za(n)), l;
|
|
2796
|
+
}, Xa = (t, e) => t !== e, Ya = (t, e) => {
|
|
2797
2797
|
const n = t.getTreeRenderer(e);
|
|
2798
2798
|
if (n)
|
|
2799
2799
|
for (const i of n.defaultExpandedSectionIds ?? [])
|
|
2800
2800
|
t.setSectionExpanded(e, i, !0);
|
|
2801
|
-
},
|
|
2801
|
+
}, Ja = async (t, e, n = {}) => {
|
|
2802
2802
|
if (!t.getTreeRenderer(e)) return null;
|
|
2803
2803
|
try {
|
|
2804
2804
|
const [i, o, r] = await Promise.all([t.getHeader(e, n), t.getBody(e, n), t.getFooter(e, n)]);
|
|
@@ -2808,10 +2808,10 @@ const ja = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2808
2808
|
footer: r
|
|
2809
2809
|
};
|
|
2810
2810
|
} catch (i) {
|
|
2811
|
-
if (
|
|
2811
|
+
if (Ua(t, e, i)) return null;
|
|
2812
2812
|
throw i;
|
|
2813
2813
|
}
|
|
2814
|
-
},
|
|
2814
|
+
}, ec = (t, e, n, i, o) => {
|
|
2815
2815
|
const r = k(18);
|
|
2816
2816
|
let s;
|
|
2817
2817
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = [], r[0] = s) : s = r[0];
|
|
@@ -2828,32 +2828,32 @@ const ja = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2828
2828
|
let C, R;
|
|
2829
2829
|
r[4] !== o || r[5] !== n || r[6] !== e || r[7] !== i || r[8] !== t ? (C = () => {
|
|
2830
2830
|
let T = !1;
|
|
2831
|
-
|
|
2831
|
+
Ya(Y(t), e);
|
|
2832
2832
|
const _ = () => {
|
|
2833
2833
|
const A = x.current = x.current + 1;
|
|
2834
|
-
|
|
2834
|
+
Xa(P.current, e) && I(!0), v(null), Ja(Y(t), e, {
|
|
2835
2835
|
resource: n,
|
|
2836
2836
|
viewId: i,
|
|
2837
2837
|
filter: o
|
|
2838
|
-
}).then(async (
|
|
2838
|
+
}).then(async ($) => {
|
|
2839
2839
|
if (T || A !== x.current)
|
|
2840
2840
|
return;
|
|
2841
|
-
const B = Y(t).getTreeRenderer(e),
|
|
2841
|
+
const B = Y(t).getTreeRenderer(e), z = $ && B ? await Qa(Y(t), e, $, Y(t).getTreeState(e).expandedNodeIds, {
|
|
2842
2842
|
resource: n,
|
|
2843
2843
|
viewId: i,
|
|
2844
2844
|
filter: o
|
|
2845
2845
|
}) : {};
|
|
2846
|
-
T || A !== x.current || (P.current = e, d(
|
|
2847
|
-
}).catch((
|
|
2848
|
-
T || A !== x.current || (v(
|
|
2846
|
+
T || A !== x.current || (P.current = e, d($?.header ?? []), m($?.body ?? []), p($?.footer ?? []), y(z), I(!1));
|
|
2847
|
+
}).catch(($) => {
|
|
2848
|
+
T || A !== x.current || (v($ instanceof Error ? $.message : "The file tree could not be loaded."), I(!1));
|
|
2849
2849
|
});
|
|
2850
2850
|
};
|
|
2851
2851
|
_();
|
|
2852
|
-
const
|
|
2852
|
+
const N = Y(t).onDidRefresh((A) => {
|
|
2853
2853
|
A.treeId === e && _();
|
|
2854
2854
|
});
|
|
2855
2855
|
return () => {
|
|
2856
|
-
T = !0,
|
|
2856
|
+
T = !0, N.dispose();
|
|
2857
2857
|
};
|
|
2858
2858
|
}, R = [o, n, i, t, e], r[4] = o, r[5] = n, r[6] = e, r[7] = i, r[8] = t, r[9] = C, r[10] = R) : (C = r[9], R = r[10]), ue(C, R);
|
|
2859
2859
|
let W;
|
|
@@ -2866,23 +2866,23 @@ const ja = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2866
2866
|
loading: S,
|
|
2867
2867
|
setChildrenByNodeId: y
|
|
2868
2868
|
}, 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
|
-
}, Le = (t, e) => typeof t == "string" ? t : e,
|
|
2870
|
-
if (!
|
|
2871
|
-
const o = t.hiddenByDefault === !0, r =
|
|
2869
|
+
}, Le = (t, e) => typeof t == "string" ? t : e, tc = (t) => t.canHide === !0 || t.hiddenByDefault === !0, nc = (t, e) => t === "shown" ? e.hiddenIcon : e.visibleIcon, oc = (t, e, n, i) => {
|
|
2870
|
+
if (!tc(t)) return;
|
|
2871
|
+
const o = t.hiddenByDefault === !0, r = ci(e[t.id], o), s = Le(t.label, t.id), l = t.contextMenuItems ?? [];
|
|
2872
2872
|
return {
|
|
2873
2873
|
id: `tree-visibility:${t.id}`,
|
|
2874
2874
|
label: r === "shown" ? `Hide ${s}` : `Show ${s}`,
|
|
2875
|
-
icon:
|
|
2875
|
+
icon: nc(r, i),
|
|
2876
2876
|
...l.length > 0 ? {
|
|
2877
2877
|
separatorBefore: !0
|
|
2878
2878
|
} : {},
|
|
2879
2879
|
onAction: () => n.onToggleNode(t.id, o)
|
|
2880
2880
|
};
|
|
2881
|
-
},
|
|
2881
|
+
}, ic = (t, e, n, i, o = !0) => {
|
|
2882
2882
|
if (!o) return t;
|
|
2883
2883
|
let r = !1;
|
|
2884
2884
|
const s = t.map((l) => {
|
|
2885
|
-
const d =
|
|
2885
|
+
const d = oc(l, e, n, i);
|
|
2886
2886
|
return d ? (r = !0, {
|
|
2887
2887
|
...l,
|
|
2888
2888
|
contextMenuItems: [...l.contextMenuItems ?? [], d]
|
|
@@ -2892,50 +2892,50 @@ const ja = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2892
2892
|
}, qt = (t, e, n, i, o) => {
|
|
2893
2893
|
let r = !1;
|
|
2894
2894
|
const s = t.map((l) => {
|
|
2895
|
-
const d =
|
|
2895
|
+
const d = ic(l.nodes, e, n, i, o);
|
|
2896
2896
|
return d === l.nodes ? l : (r = !0, {
|
|
2897
2897
|
...l,
|
|
2898
2898
|
nodes: d
|
|
2899
2899
|
});
|
|
2900
2900
|
});
|
|
2901
2901
|
return r ? s : t;
|
|
2902
|
-
},
|
|
2902
|
+
}, rc = (t, e, n, i) => {
|
|
2903
2903
|
const o = k(50);
|
|
2904
2904
|
let r;
|
|
2905
2905
|
o[0] !== i ? (r = i === void 0 ? {} : i, o[0] = i, o[1] = r) : r = o[1];
|
|
2906
|
-
const s = r, l = rt(t,
|
|
2906
|
+
const s = r, l = rt(t, sc), d = rt(t, lc), a = rt(t, ac), c = rt(t, cc), m = rt(t, dc), f = ze(t, uc), h = ze(t, mc), p = ze(t, fc), g = ze(t, hc), w = ze(t, pc), y = ze(t, gc), b = ze(t, bc);
|
|
2907
2907
|
let v;
|
|
2908
2908
|
o[2] !== b || o[3] !== m ? (v = () => {
|
|
2909
2909
|
m(), b();
|
|
2910
2910
|
}, o[2] = b, o[3] = m, o[4] = v) : v = o[4];
|
|
2911
2911
|
let S, I, P, x, C, R, W, T, _;
|
|
2912
2912
|
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
|
-
const
|
|
2913
|
+
const z = {
|
|
2914
2914
|
onToggleSection: a,
|
|
2915
2915
|
onToggleNode: c,
|
|
2916
2916
|
onResetAll: v
|
|
2917
2917
|
};
|
|
2918
2918
|
let M;
|
|
2919
|
-
o[27] !== e.footerSections || o[28] !== e.headerSections || o[29] !== e.sections ? (M = new Map([...e.headerSections.map(
|
|
2920
|
-
const
|
|
2919
|
+
o[27] !== e.footerSections || o[28] !== e.headerSections || o[29] !== e.sections ? (M = new Map([...e.headerSections.map(yc), ...e.sections.map(vc), ...e.footerSections.map(Sc)]), o[27] = e.footerSections, o[28] = e.headerSections, o[29] = e.sections, o[30] = M) : M = o[30], I = M;
|
|
2920
|
+
const O = {
|
|
2921
2921
|
header: [],
|
|
2922
2922
|
content: [],
|
|
2923
2923
|
footer: []
|
|
2924
|
-
}, D =
|
|
2925
|
-
for (const
|
|
2926
|
-
const ae = p[
|
|
2927
|
-
|
|
2924
|
+
}, D = li([...e.headerSections, ...e.sections, ...e.footerSections], f, h);
|
|
2925
|
+
for (const j of D) {
|
|
2926
|
+
const ae = p[j.id] ?? I.get(j.id) ?? "content";
|
|
2927
|
+
O[ae].push(j);
|
|
2928
2928
|
}
|
|
2929
|
-
x =
|
|
2930
|
-
const
|
|
2931
|
-
T = Ht(
|
|
2929
|
+
x = O.header, C = O.content, P = O.footer;
|
|
2930
|
+
const q = s.suppressNodeContextMenus !== !0, re = qt(x, d, z, n, q), se = qt(C, d, z, n, q), U = qt(P, d, z, n, q);
|
|
2931
|
+
T = Ht(re, l, d), _ = Ht(se, l, d), W = Ht(U, l, d), S = ai({
|
|
2932
2932
|
headerSections: x,
|
|
2933
2933
|
sections: C,
|
|
2934
2934
|
footerSections: P
|
|
2935
|
-
}, l, d,
|
|
2936
|
-
header: x.map(
|
|
2937
|
-
main: C.map(
|
|
2938
|
-
footer: P.map(
|
|
2935
|
+
}, l, d, z, n), R = JSON.stringify({
|
|
2936
|
+
header: x.map(Pc),
|
|
2937
|
+
main: C.map(xc),
|
|
2938
|
+
footer: P.map(kc),
|
|
2939
2939
|
sectionOverrides: l,
|
|
2940
2940
|
nodeOverrides: d,
|
|
2941
2941
|
sectionOrder: f,
|
|
@@ -2944,95 +2944,98 @@ const ja = (t) => t.renderer.moveNode ? (e, n) => {
|
|
|
2944
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] = I, o[20] = P, o[21] = x, o[22] = C, o[23] = R, o[24] = W, o[25] = T, o[26] = _;
|
|
2945
2945
|
} else
|
|
2946
2946
|
S = o[18], I = o[19], P = o[20], x = o[21], C = o[22], R = o[23], W = o[24], T = o[25], _ = o[26];
|
|
2947
|
-
const
|
|
2947
|
+
const N = R;
|
|
2948
2948
|
let A;
|
|
2949
|
-
o[31] !== P || o[32] !== x || o[33] !== C || o[34] !== g ? (A = (
|
|
2950
|
-
const
|
|
2951
|
-
header: x.map(
|
|
2952
|
-
content: C.map(
|
|
2953
|
-
footer: P.map(
|
|
2949
|
+
o[31] !== P || o[32] !== x || o[33] !== C || o[34] !== g ? (A = (z, M) => {
|
|
2950
|
+
const O = {
|
|
2951
|
+
header: x.map(Rc),
|
|
2952
|
+
content: C.map(Wc),
|
|
2953
|
+
footer: P.map(Tc)
|
|
2954
2954
|
};
|
|
2955
|
-
|
|
2955
|
+
O[z] = M, g([...O.header, ...O.content, ...O.footer]);
|
|
2956
2956
|
}, o[31] = P, o[32] = x, o[33] = C, o[34] = g, o[35] = A) : A = o[35];
|
|
2957
|
-
let
|
|
2958
|
-
o[36] !== I || o[37] !== p || o[38] !== g || o[39] !== y ? (
|
|
2959
|
-
const D = p[
|
|
2960
|
-
y(M, D), g(
|
|
2961
|
-
}, o[36] = I, o[37] = p, o[38] = g, o[39] = y, o[40] =
|
|
2957
|
+
let $;
|
|
2958
|
+
o[36] !== I || o[37] !== p || o[38] !== g || o[39] !== y ? ($ = (z, M, O) => {
|
|
2959
|
+
const D = p[O] ?? I.get(O) ?? "content";
|
|
2960
|
+
y(M, D), g(z);
|
|
2961
|
+
}, o[36] = I, o[37] = p, o[38] = g, o[39] = y, o[40] = $) : $ = o[40];
|
|
2962
2962
|
let B;
|
|
2963
|
-
return o[41] !== S || o[42] !==
|
|
2963
|
+
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
2964
|
visibleHeaderSections: T,
|
|
2965
2965
|
visibleSections: _,
|
|
2966
2966
|
visibleFooterSections: W,
|
|
2967
2967
|
backgroundContextActions: S,
|
|
2968
|
-
customizationRevision:
|
|
2968
|
+
customizationRevision: N,
|
|
2969
2969
|
onReorderSections: A,
|
|
2970
|
-
onMoveSection:
|
|
2970
|
+
onMoveSection: $,
|
|
2971
2971
|
onReorderNodes: w
|
|
2972
|
-
}, o[41] = S, o[42] =
|
|
2972
|
+
}, 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
2973
|
};
|
|
2974
|
-
function
|
|
2974
|
+
function sc(t) {
|
|
2975
2975
|
return t.sectionOverrides;
|
|
2976
2976
|
}
|
|
2977
|
-
function
|
|
2977
|
+
function lc(t) {
|
|
2978
2978
|
return t.nodeOverrides;
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function ac(t) {
|
|
2981
2981
|
return t.toggleSection;
|
|
2982
2982
|
}
|
|
2983
|
-
function
|
|
2983
|
+
function cc(t) {
|
|
2984
2984
|
return t.toggleNode;
|
|
2985
2985
|
}
|
|
2986
|
-
function
|
|
2986
|
+
function dc(t) {
|
|
2987
2987
|
return t.reset;
|
|
2988
2988
|
}
|
|
2989
|
-
function
|
|
2989
|
+
function uc(t) {
|
|
2990
2990
|
return t.sectionOrder;
|
|
2991
2991
|
}
|
|
2992
|
-
function
|
|
2992
|
+
function mc(t) {
|
|
2993
2993
|
return t.nodeOrderBySection;
|
|
2994
2994
|
}
|
|
2995
|
-
function
|
|
2995
|
+
function fc(t) {
|
|
2996
2996
|
return t.sectionSlotById;
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2998
|
+
function hc(t) {
|
|
2999
2999
|
return t.setSectionOrder;
|
|
3000
3000
|
}
|
|
3001
|
-
function
|
|
3001
|
+
function pc(t) {
|
|
3002
3002
|
return t.setNodeOrder;
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3004
|
+
function gc(t) {
|
|
3005
3005
|
return t.setSectionSlot;
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function bc(t) {
|
|
3008
3008
|
return t.reset;
|
|
3009
3009
|
}
|
|
3010
|
-
function
|
|
3010
|
+
function yc(t) {
|
|
3011
3011
|
return [t.id, "header"];
|
|
3012
3012
|
}
|
|
3013
|
-
function
|
|
3013
|
+
function vc(t) {
|
|
3014
3014
|
return [t.id, "content"];
|
|
3015
3015
|
}
|
|
3016
|
-
function
|
|
3016
|
+
function Sc(t) {
|
|
3017
3017
|
return [t.id, "footer"];
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3019
|
+
function wc(t) {
|
|
3020
3020
|
return [t.id, Le(t.label, t.id)];
|
|
3021
3021
|
}
|
|
3022
|
+
function Pc(t) {
|
|
3023
|
+
return [t.id, Le(t.label, t.id), t.nodes.map(wc)];
|
|
3024
|
+
}
|
|
3022
3025
|
function Ic(t) {
|
|
3023
|
-
return [t.id, Le(t.label, t.id)
|
|
3026
|
+
return [t.id, Le(t.label, t.id)];
|
|
3024
3027
|
}
|
|
3025
3028
|
function xc(t) {
|
|
3026
|
-
return [t.id, Le(t.label, t.id)];
|
|
3029
|
+
return [t.id, Le(t.label, t.id), t.nodes.map(Ic)];
|
|
3027
3030
|
}
|
|
3028
3031
|
function Cc(t) {
|
|
3029
|
-
return [t.id, Le(t.label, t.id)
|
|
3032
|
+
return [t.id, Le(t.label, t.id)];
|
|
3030
3033
|
}
|
|
3031
3034
|
function kc(t) {
|
|
3032
|
-
return [t.id, Le(t.label, t.id)];
|
|
3035
|
+
return [t.id, Le(t.label, t.id), t.nodes.map(Cc)];
|
|
3033
3036
|
}
|
|
3034
3037
|
function Rc(t) {
|
|
3035
|
-
return
|
|
3038
|
+
return t.id;
|
|
3036
3039
|
}
|
|
3037
3040
|
function Wc(t) {
|
|
3038
3041
|
return t.id;
|
|
@@ -3040,13 +3043,10 @@ function Wc(t) {
|
|
|
3040
3043
|
function Tc(t) {
|
|
3041
3044
|
return t.id;
|
|
3042
3045
|
}
|
|
3043
|
-
|
|
3044
|
-
return t.id;
|
|
3045
|
-
}
|
|
3046
|
-
const Ac = {
|
|
3046
|
+
const _c = {
|
|
3047
3047
|
expandedNodeIds: [],
|
|
3048
3048
|
expandedSectionIds: []
|
|
3049
|
-
},
|
|
3049
|
+
}, Ac = (t, e) => t.find((n) => n.widgetId === e) ?? t[0], Mc = (t) => Ac(t.regions.overlay.widgets, t.regions.overlay.activeWidgetId)?.resource ?? eo(t, "primary"), $c = (t, e, n) => {
|
|
3050
3050
|
const i = pe(t);
|
|
3051
3051
|
i.current = t, ue(() => {
|
|
3052
3052
|
n?.(i.current);
|
|
@@ -3056,10 +3056,10 @@ const Ac = {
|
|
|
3056
3056
|
}, jt = (t, e, n) => {
|
|
3057
3057
|
if (n?.id === "target") {
|
|
3058
3058
|
const i = n.payload;
|
|
3059
|
-
|
|
3059
|
+
ja(i) && Y(t.workbench).setSelectedNode(t.treeViewId, e), t.workbench.navigation.openTarget(i).catch(t.onOpenResourceError);
|
|
3060
3060
|
return;
|
|
3061
3061
|
}
|
|
3062
|
-
},
|
|
3062
|
+
}, Ec = (t) => (e) => {
|
|
3063
3063
|
const n = Ct(t.body, e, t.childrenByNodeId) ?? Ct([...t.header, ...t.footer], e, t.childrenByNodeId);
|
|
3064
3064
|
if (!n) return;
|
|
3065
3065
|
const i = t.expandedNodeIds.includes(e);
|
|
@@ -3082,7 +3082,7 @@ const Ac = {
|
|
|
3082
3082
|
renderParamField: l,
|
|
3083
3083
|
onOpenResourceError: d,
|
|
3084
3084
|
onSidenavContextActionsChange: a
|
|
3085
|
-
} = t, c = pe(null), m = Y(n).getTreeRenderer(i), [f, h] = Q(""), p =
|
|
3085
|
+
} = t, c = pe(null), m = Y(n).getTreeRenderer(i), [f, h] = Q(""), p = E(Y(n).treeStore, (X) => X.statesByTreeId[i]) ?? _c, g = E(n.pages.store, Nc), w = E(n.pages.store, Oc), y = E(n.layout.store, zc), {
|
|
3086
3086
|
body: b,
|
|
3087
3087
|
childrenByNodeId: v,
|
|
3088
3088
|
error: S,
|
|
@@ -3090,51 +3090,51 @@ const Ac = {
|
|
|
3090
3090
|
header: P,
|
|
3091
3091
|
loading: x,
|
|
3092
3092
|
setChildrenByNodeId: C
|
|
3093
|
-
} =
|
|
3094
|
-
let T, _,
|
|
3093
|
+
} = ec(n, i, r, s, m?.searchable && f.trim() || void 0), [R, W] = Q(null);
|
|
3094
|
+
let T, _, N;
|
|
3095
3095
|
if (e[0] !== b || e[1] !== v || e[2] !== I || e[3] !== P || e[4] !== d || e[5] !== W || e[6] !== n) {
|
|
3096
3096
|
const X = {
|
|
3097
3097
|
workbench: n,
|
|
3098
3098
|
onCommandError: d,
|
|
3099
3099
|
onRequestParams: W
|
|
3100
3100
|
};
|
|
3101
|
-
_ = b.map((Oe) => Kt(Oe, v, X)), T = P.map((Oe) => Kt(Oe, v, X)),
|
|
3101
|
+
_ = b.map((Oe) => Kt(Oe, v, X)), T = P.map((Oe) => Kt(Oe, v, X)), N = I.map((Oe) => Kt(Oe, v, X)), e[0] = b, e[1] = v, e[2] = I, e[3] = P, e[4] = d, e[5] = W, e[6] = n, e[7] = T, e[8] = _, e[9] = N;
|
|
3102
3102
|
} else
|
|
3103
|
-
T = e[7], _ = e[8],
|
|
3104
|
-
const A =
|
|
3105
|
-
let
|
|
3106
|
-
e[10] !== A || e[11] !== T || e[12] !== _ ? (
|
|
3103
|
+
T = e[7], _ = e[8], N = e[9];
|
|
3104
|
+
const A = N;
|
|
3105
|
+
let $;
|
|
3106
|
+
e[10] !== A || e[11] !== T || e[12] !== _ ? ($ = {
|
|
3107
3107
|
headerSections: T,
|
|
3108
3108
|
sections: _,
|
|
3109
3109
|
footerSections: A
|
|
3110
|
-
}, e[10] = A, e[11] = T, e[12] = _, e[13] =
|
|
3110
|
+
}, e[10] = A, e[11] = T, e[12] = _, e[13] = $) : $ = e[13];
|
|
3111
3111
|
let B;
|
|
3112
3112
|
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
|
|
3113
3113
|
visibleIcon: /* @__PURE__ */ u(L, { name: "eye", size: 14 }),
|
|
3114
3114
|
hiddenIcon: /* @__PURE__ */ u(L, { name: "eye-off", size: 14 }),
|
|
3115
3115
|
resetIcon: /* @__PURE__ */ u(L, { name: "rotate-ccw", size: 14 })
|
|
3116
3116
|
}, e[14] = B) : B = e[14];
|
|
3117
|
-
const
|
|
3117
|
+
const z = !!a;
|
|
3118
3118
|
let M;
|
|
3119
|
-
e[15] !==
|
|
3120
|
-
suppressNodeContextMenus:
|
|
3121
|
-
}, e[15] =
|
|
3119
|
+
e[15] !== z ? (M = {
|
|
3120
|
+
suppressNodeContextMenus: z
|
|
3121
|
+
}, e[15] = z, e[16] = M) : M = e[16];
|
|
3122
3122
|
const {
|
|
3123
|
-
visibleHeaderSections:
|
|
3123
|
+
visibleHeaderSections: O,
|
|
3124
3124
|
visibleSections: D,
|
|
3125
|
-
visibleFooterSections:
|
|
3126
|
-
backgroundContextActions:
|
|
3127
|
-
customizationRevision:
|
|
3125
|
+
visibleFooterSections: q,
|
|
3126
|
+
backgroundContextActions: re,
|
|
3127
|
+
customizationRevision: se,
|
|
3128
3128
|
onReorderSections: U,
|
|
3129
|
-
onReorderNodes:
|
|
3129
|
+
onReorderNodes: j,
|
|
3130
3130
|
onMoveSection: ae
|
|
3131
|
-
} =
|
|
3132
|
-
if (
|
|
3131
|
+
} = rc(`${i}:${g ?? "global"}`, $, B, M);
|
|
3132
|
+
if ($c(re, se, a), !m) {
|
|
3133
3133
|
let X;
|
|
3134
3134
|
return e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ u(me, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Tree renderer is no longer registered." }), e[17] = X) : X = e[17], X;
|
|
3135
3135
|
}
|
|
3136
|
-
let
|
|
3137
|
-
e[18] !== b || e[19] !== v || e[20] !== I || e[21] !== P || e[22] !== r || e[23] !== C || e[24] !== p.expandedNodeIds || e[25] !== i || e[26] !== s || e[27] !== n ? (
|
|
3136
|
+
let le;
|
|
3137
|
+
e[18] !== b || e[19] !== v || e[20] !== I || e[21] !== P || e[22] !== r || e[23] !== C || e[24] !== p.expandedNodeIds || e[25] !== i || e[26] !== s || e[27] !== n ? (le = Ec({
|
|
3138
3138
|
workbench: n,
|
|
3139
3139
|
treeViewId: i,
|
|
3140
3140
|
resource: r,
|
|
@@ -3145,14 +3145,14 @@ const Ac = {
|
|
|
3145
3145
|
childrenByNodeId: v,
|
|
3146
3146
|
expandedNodeIds: p.expandedNodeIds,
|
|
3147
3147
|
setChildrenByNodeId: C
|
|
3148
|
-
}), e[18] = b, e[19] = v, e[20] = I, e[21] = P, e[22] = r, e[23] = C, e[24] = p.expandedNodeIds, e[25] = i, e[26] = s, e[27] = n, e[28] =
|
|
3149
|
-
const
|
|
3148
|
+
}), e[18] = b, e[19] = v, e[20] = I, e[21] = P, 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
|
+
const V = le;
|
|
3150
3150
|
let ce;
|
|
3151
3151
|
e[29] !== p.expandedSectionIds || e[30] !== i || e[31] !== n ? (ce = (X) => {
|
|
3152
3152
|
const Oe = p.expandedSectionIds.includes(X);
|
|
3153
3153
|
Y(n).setSectionExpanded(i, X, !Oe);
|
|
3154
3154
|
}, e[29] = p.expandedSectionIds, e[30] = i, e[31] = n, e[32] = ce) : ce = e[32];
|
|
3155
|
-
const de = ce, K =
|
|
3155
|
+
const de = ce, K = qa({
|
|
3156
3156
|
workbench: n,
|
|
3157
3157
|
renderer: m,
|
|
3158
3158
|
resource: r,
|
|
@@ -3168,9 +3168,9 @@ const Ac = {
|
|
|
3168
3168
|
onOpenResourceError: d
|
|
3169
3169
|
}, e[33] = d, e[34] = i, e[35] = n, e[36] = J) : J = e[36];
|
|
3170
3170
|
const te = J;
|
|
3171
|
-
let ne, fe,
|
|
3171
|
+
let ne, fe, ie;
|
|
3172
3172
|
if (e[37] !== w || e[38] !== o || e[39] !== y || e[40] !== b || e[41] !== v || e[42] !== I || e[43] !== P || e[44] !== p.selectedNodeId) {
|
|
3173
|
-
const X =
|
|
3173
|
+
const X = _a({
|
|
3174
3174
|
sections: [...P, ...b, ...I],
|
|
3175
3175
|
childrenByNodeId: v,
|
|
3176
3176
|
activeNodeId: o,
|
|
@@ -3178,18 +3178,18 @@ const Ac = {
|
|
|
3178
3178
|
activeResource: y,
|
|
3179
3179
|
selectedNodeId: p.selectedNodeId
|
|
3180
3180
|
});
|
|
3181
|
-
fe = Ft(P, v, X), ne = Ft(b, v, X),
|
|
3181
|
+
fe = Ft(P, v, X), ne = Ft(b, v, X), ie = Ft(I, v, X), e[37] = w, e[38] = o, e[39] = y, e[40] = b, e[41] = v, e[42] = I, e[43] = P, e[44] = p.selectedNodeId, e[45] = ne, e[46] = fe, e[47] = ie;
|
|
3182
3182
|
} else
|
|
3183
|
-
ne = e[45], fe = e[46],
|
|
3184
|
-
const xe =
|
|
3183
|
+
ne = e[45], fe = e[46], ie = e[47];
|
|
3184
|
+
const xe = ie;
|
|
3185
3185
|
let Ae;
|
|
3186
|
-
e[48] !==
|
|
3186
|
+
e[48] !== q || e[49] !== O || e[50] !== D ? (Ae = [...O, ...D, ...q], e[48] = q, e[49] = O, e[50] = D, e[51] = Ae) : Ae = e[51];
|
|
3187
3187
|
const Ot = m.canMove, zt = m.title;
|
|
3188
3188
|
let Ce;
|
|
3189
|
-
e[52] !== fe || e[53] !== x || e[54] !== te || e[55] !==
|
|
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: Z.sidenav, flexShrink: 0, children: /* @__PURE__ */ u(Qt, { sections: O, draggable: !!a, expandedNodeIds: p.expandedNodeIds, expandedSectionIds: p.expandedSectionIds, activeNodeId: fe, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", onToggleSection: de, onToggleNode: V, onReorderSections: (X) => U("header", X), onReorderNodes: j, canMove: m.canMove, onNavigate: (X) => jt(te, X.nodeId, X.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];
|
|
3190
3190
|
const Me = !x && !!m.searchable;
|
|
3191
3191
|
let be;
|
|
3192
|
-
e[65] !== f || e[66] !== h || e[67] !== Me || e[68] !== m.searchPlaceholder ? (be = /* @__PURE__ */ u(
|
|
3192
|
+
e[65] !== f || e[66] !== h || e[67] !== Me || e[68] !== m.searchPlaceholder ? (be = /* @__PURE__ */ u(Ga, { visible: Me, placeholder: m.searchPlaceholder, value: f, onChange: h }), e[65] = f, e[66] = h, e[67] = Me, e[68] = m.searchPlaceholder, e[69] = be) : be = e[69];
|
|
3193
3193
|
let $e, Te;
|
|
3194
3194
|
e[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($e = {
|
|
3195
3195
|
display: "block",
|
|
@@ -3205,19 +3205,19 @@ const Ac = {
|
|
|
3205
3205
|
flexDirection: "column"
|
|
3206
3206
|
}
|
|
3207
3207
|
}, e[70] = $e, e[71] = Te) : ($e = e[70], Te = e[71]);
|
|
3208
|
-
const
|
|
3208
|
+
const G = p.loading, ee = a ? void 0 : re, ve = !!a, Bt = !!a;
|
|
3209
3209
|
let Fe;
|
|
3210
3210
|
e[72] !== U ? (Fe = (X) => U("content", X), e[72] = U, e[73] = Fe) : Fe = e[73];
|
|
3211
3211
|
let Ke;
|
|
3212
3212
|
e[74] !== te ? (Ke = (X) => jt(te, X.nodeId, X.intent), e[74] = te, e[75] = Ke) : Ke = e[75];
|
|
3213
3213
|
let qe;
|
|
3214
|
-
e[76] !== ne || e[77] !== S || e[78] !== x || e[79] !== K || e[80] !==
|
|
3214
|
+
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] !== Fe || e[85] !== Ke || 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 ? (qe = /* @__PURE__ */ u(Ne, { flex: "1", minH: "0", w: "full", viewportRef: c, viewportProps: $e, contentProps: Te, children: /* @__PURE__ */ u(F, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: /* @__PURE__ */ u(Fa, { 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: Fe, onReorderNodes: j, canMove: m.canMove, onMoveNode: K, onNavigate: Ke }) }) }), 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] = Fe, e[85] = Ke, 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] = qe) : qe = e[93];
|
|
3215
3215
|
let je;
|
|
3216
|
-
e[94] !== xe || e[95] !== x || e[96] !== te || e[97] !==
|
|
3216
|
+
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 ? (je = !x && q.length > 0 ? /* @__PURE__ */ u(he, { bg: Z.sidenav, flexShrink: 0, children: /* @__PURE__ */ u(Qt, { sections: q, draggable: !!a, expandedNodeIds: p.expandedNodeIds, expandedSectionIds: p.expandedSectionIds, activeNodeId: xe, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", onToggleSection: de, onToggleNode: V, onReorderSections: (X) => U("footer", X), onReorderNodes: j, canMove: m.canMove, onNavigate: (X) => jt(te, X.nodeId, X.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] = je) : je = e[106];
|
|
3217
3217
|
let Ge;
|
|
3218
3218
|
e[107] !== W ? (Ge = () => W(null), e[107] = W, e[108] = Ge) : Ge = e[108];
|
|
3219
3219
|
let Ue;
|
|
3220
|
-
e[109] !== R || e[110] !== l || e[111] !== Ge || e[112] !== n ? (Ue = /* @__PURE__ */ u(
|
|
3220
|
+
e[109] !== R || e[110] !== l || e[111] !== Ge || e[112] !== n ? (Ue = /* @__PURE__ */ u(Da, { request: R, renderParamField: l, workbench: n, onClose: Ge }), e[109] = R, e[110] = l, e[111] = Ge, e[112] = n, e[113] = Ue) : Ue = e[113];
|
|
3221
3221
|
let Ze;
|
|
3222
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: [
|
|
3223
3223
|
Ce,
|
|
@@ -3227,26 +3227,26 @@ const Ac = {
|
|
|
3227
3227
|
Ue
|
|
3228
3228
|
] }), e[114] = Ce, e[115] = be, e[116] = qe, e[117] = je, e[118] = Ue, e[119] = m.title, e[120] = Ze) : Ze = e[120];
|
|
3229
3229
|
let St;
|
|
3230
|
-
return e[121] !== ae || e[122] !==
|
|
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;
|
|
3231
3231
|
};
|
|
3232
|
-
function
|
|
3232
|
+
function Nc(t) {
|
|
3233
3233
|
return t.projectId;
|
|
3234
3234
|
}
|
|
3235
|
-
function
|
|
3235
|
+
function Oc(t) {
|
|
3236
3236
|
return t.location;
|
|
3237
3237
|
}
|
|
3238
|
-
function
|
|
3239
|
-
return
|
|
3238
|
+
function zc(t) {
|
|
3239
|
+
return Mc(t.layout);
|
|
3240
3240
|
}
|
|
3241
3241
|
const To = (t) => {
|
|
3242
3242
|
const e = k(4);
|
|
3243
3243
|
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]),
|
|
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]), Qn(n, i, o);
|
|
3245
3245
|
}, ut = (t) => {
|
|
3246
3246
|
const e = k(2);
|
|
3247
3247
|
let n;
|
|
3248
3248
|
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
|
-
},
|
|
3249
|
+
}, Bc = (t) => {
|
|
3250
3250
|
const e = k(3);
|
|
3251
3251
|
let n;
|
|
3252
3252
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
@@ -3265,11 +3265,11 @@ const To = (t) => {
|
|
|
3265
3265
|
e[0] !== n.workbench ? (r = Y(n.workbench), e[0] = n.workbench, e[1] = r) : r = e[1];
|
|
3266
3266
|
let s;
|
|
3267
3267
|
e[2] !== o ? (s = (h) => h.renderers[o], e[2] = o, e[3] = s) : s = e[3];
|
|
3268
|
-
const l =
|
|
3268
|
+
const l = E(r.store, s);
|
|
3269
3269
|
let d;
|
|
3270
3270
|
e[4] !== n.workbench ? (d = Y(n.workbench), e[4] = n.workbench, e[5] = d) : d = e[5];
|
|
3271
3271
|
let a;
|
|
3272
|
-
if (e[6] !== o ? (a = (h) => h.refreshKeys[o] ?? 0, e[6] = o, e[7] = a) : a = e[7],
|
|
3272
|
+
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
3273
|
let h;
|
|
3274
3274
|
return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ u(ut, { children: /* @__PURE__ */ u(He, { title: "Settings View not found" }) }), e[8] = h) : h = e[8], h;
|
|
3275
3275
|
}
|
|
@@ -3284,8 +3284,8 @@ const To = (t) => {
|
|
|
3284
3284
|
}), e[9] = n, e[10] = i, e[11] = l, e[12] = o, e[13] = c) : c = e[13];
|
|
3285
3285
|
const m = c;
|
|
3286
3286
|
let f;
|
|
3287
|
-
return e[14] !== m ? (f = /* @__PURE__ */ u(
|
|
3288
|
-
},
|
|
3287
|
+
return e[14] !== m ? (f = /* @__PURE__ */ u(Bc, { children: m }), e[14] = m, e[15] = f) : f = e[15], f;
|
|
3288
|
+
}, Hc = (t) => {
|
|
3289
3289
|
const e = k(15), {
|
|
3290
3290
|
panel: n,
|
|
3291
3291
|
itemId: i,
|
|
@@ -3314,7 +3314,7 @@ const To = (t) => {
|
|
|
3314
3314
|
let c;
|
|
3315
3315
|
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
3316
|
let f;
|
|
3317
|
-
return e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ u(ut, { children: /* @__PURE__ */ u(
|
|
3317
|
+
return e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ u(ut, { children: /* @__PURE__ */ u(Xo, { size: "sm" }) }), e[9] = f) : f = e[9], f;
|
|
3318
3318
|
}
|
|
3319
3319
|
if (l.status === "missing") {
|
|
3320
3320
|
let f;
|
|
@@ -3348,7 +3348,7 @@ const To = (t) => {
|
|
|
3348
3348
|
e[10] !== d || e[11] !== s ? (b = ge(s) ?? d, e[10] = d, e[11] = s, e[12] = b) : b = e[12];
|
|
3349
3349
|
const v = `${b}:${r}`;
|
|
3350
3350
|
let S;
|
|
3351
|
-
return e[13] !== n || e[14] !== d || e[15] !== c || e[16] !== v ? (S = /* @__PURE__ */ u(
|
|
3351
|
+
return e[13] !== n || e[14] !== d || e[15] !== c || e[16] !== v ? (S = /* @__PURE__ */ u(Hc, { 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
3352
|
}
|
|
3353
3353
|
let m;
|
|
3354
3354
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
@@ -3368,13 +3368,13 @@ const To = (t) => {
|
|
|
3368
3368
|
] }), e[23] = f, e[24] = h, e[25] = p) : p = e[25];
|
|
3369
3369
|
const g = c.save ?? "live";
|
|
3370
3370
|
let w;
|
|
3371
|
-
e[26] !== n.workbench.preferences || e[27] !== c.preferences || e[28] !== o || e[29] !== g ? (w = /* @__PURE__ */ u(
|
|
3371
|
+
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
3372
|
let y;
|
|
3373
3373
|
return e[31] !== p || e[32] !== w ? (y = /* @__PURE__ */ H(Ne, { h: "full", minH: "0", contentProps: m, children: [
|
|
3374
3374
|
p,
|
|
3375
3375
|
w
|
|
3376
3376
|
] }), e[31] = p, e[32] = w, e[33] = y) : y = e[33], y;
|
|
3377
|
-
},
|
|
3377
|
+
}, Dc = (t) => {
|
|
3378
3378
|
const e = k(20), {
|
|
3379
3379
|
input: n,
|
|
3380
3380
|
settings: i,
|
|
@@ -3448,13 +3448,13 @@ const To = (t) => {
|
|
|
3448
3448
|
}
|
|
3449
3449
|
}
|
|
3450
3450
|
};
|
|
3451
|
-
},
|
|
3451
|
+
}, Vc = (t, e) => {
|
|
3452
3452
|
const n = (i) => {
|
|
3453
3453
|
const o = e?.indexOf(i) ?? -1;
|
|
3454
3454
|
return o === -1 ? Number.POSITIVE_INFINITY : o;
|
|
3455
3455
|
};
|
|
3456
3456
|
return [...t].sort((i, o) => n(i) - n(o));
|
|
3457
|
-
},
|
|
3457
|
+
}, Lc = async (t) => {
|
|
3458
3458
|
const e = await Promise.resolve(t.items()).catch(() => []);
|
|
3459
3459
|
if (!t.groupBy) return e.map((o) => An(t, o));
|
|
3460
3460
|
const n = t.groupBy, i = /* @__PURE__ */ new Map();
|
|
@@ -3462,14 +3462,14 @@ const To = (t) => {
|
|
|
3462
3462
|
const r = n.key(o), s = i.get(r) ?? [];
|
|
3463
3463
|
s.push(o), i.set(r, s);
|
|
3464
3464
|
}
|
|
3465
|
-
return
|
|
3465
|
+
return Vc([...i.keys()], n.order).map((o) => ({
|
|
3466
3466
|
id: `${t.id}:group:${o}`,
|
|
3467
3467
|
label: n.label(o),
|
|
3468
3468
|
icon: n.icon?.(o),
|
|
3469
3469
|
collapsible: !0,
|
|
3470
3470
|
children: (i.get(o) ?? []).map((r) => An(t, r))
|
|
3471
3471
|
}));
|
|
3472
|
-
},
|
|
3472
|
+
}, Fc = async (t) => {
|
|
3473
3473
|
if (t.kind === "collection")
|
|
3474
3474
|
return {
|
|
3475
3475
|
id: `settings-collection:${t.id}`,
|
|
@@ -3477,7 +3477,7 @@ const To = (t) => {
|
|
|
3477
3477
|
icon: t.icon,
|
|
3478
3478
|
collapsible: !0,
|
|
3479
3479
|
actions: Oo(t.actions),
|
|
3480
|
-
children: await
|
|
3480
|
+
children: await Lc(t)
|
|
3481
3481
|
};
|
|
3482
3482
|
const e = $o(t);
|
|
3483
3483
|
return {
|
|
@@ -3493,7 +3493,7 @@ const To = (t) => {
|
|
|
3493
3493
|
}
|
|
3494
3494
|
}
|
|
3495
3495
|
};
|
|
3496
|
-
},
|
|
3496
|
+
}, Kc = async (t) => {
|
|
3497
3497
|
const {
|
|
3498
3498
|
settings: e,
|
|
3499
3499
|
hasProjectScope: n,
|
|
@@ -3512,7 +3512,7 @@ const To = (t) => {
|
|
|
3512
3512
|
const f = l.get(c) ?? [], h = Oo(m?.actions);
|
|
3513
3513
|
if (f.length === 0 && !h) continue;
|
|
3514
3514
|
const p = [];
|
|
3515
|
-
for (const g of f) p.push(await
|
|
3515
|
+
for (const g of f) p.push(await Fc(g));
|
|
3516
3516
|
a.push({
|
|
3517
3517
|
id: c,
|
|
3518
3518
|
label: m?.title,
|
|
@@ -3522,7 +3522,7 @@ const To = (t) => {
|
|
|
3522
3522
|
});
|
|
3523
3523
|
}
|
|
3524
3524
|
return a;
|
|
3525
|
-
},
|
|
3525
|
+
}, qc = "workbench.settings", Pt = "workbench.settings.nav", jc = "workbench.settings.panel", It = qc, Gc = (t) => {
|
|
3526
3526
|
const {
|
|
3527
3527
|
args: e,
|
|
3528
3528
|
ctx: n,
|
|
@@ -3537,7 +3537,7 @@ const To = (t) => {
|
|
|
3537
3537
|
resource: c,
|
|
3538
3538
|
title: c.label
|
|
3539
3539
|
}), c;
|
|
3540
|
-
},
|
|
3540
|
+
}, Rm = (t = {}) => {
|
|
3541
3541
|
const e = t.title ?? "Settings", n = () => t.resolveScopeId?.("project") !== void 0;
|
|
3542
3542
|
return {
|
|
3543
3543
|
id: "workbench.settings.surface",
|
|
@@ -3549,7 +3549,7 @@ const To = (t) => {
|
|
|
3549
3549
|
kind: "tree",
|
|
3550
3550
|
// Settings sections read as a single scannable list, so every section starts expanded.
|
|
3551
3551
|
defaultExpandedSectionIds: [...i.settings.listSections().map((l) => l.id), at],
|
|
3552
|
-
getBody: () =>
|
|
3552
|
+
getBody: () => Kc({
|
|
3553
3553
|
settings: i.settings,
|
|
3554
3554
|
hasProjectScope: n(),
|
|
3555
3555
|
matchesWhen: (l) => i.context.matches(l)
|
|
@@ -3557,7 +3557,7 @@ const To = (t) => {
|
|
|
3557
3557
|
getChildren: () => []
|
|
3558
3558
|
}
|
|
3559
3559
|
}), i.views.registerView({
|
|
3560
|
-
id:
|
|
3560
|
+
id: jc,
|
|
3561
3561
|
title: e,
|
|
3562
3562
|
body: {
|
|
3563
3563
|
kind: "react",
|
|
@@ -3568,7 +3568,7 @@ const To = (t) => {
|
|
|
3568
3568
|
title: e,
|
|
3569
3569
|
body: {
|
|
3570
3570
|
kind: "react",
|
|
3571
|
-
render: (l) => /* @__PURE__ */ u(
|
|
3571
|
+
render: (l) => /* @__PURE__ */ u(Dc, { input: l, settings: i.settings, navTreeId: Pt, title: e, resolveScopeId: t.resolveScopeId })
|
|
3572
3572
|
}
|
|
3573
3573
|
}), i.overlays.registerOverlay({
|
|
3574
3574
|
id: It,
|
|
@@ -3589,9 +3589,9 @@ const To = (t) => {
|
|
|
3589
3589
|
id: gn,
|
|
3590
3590
|
label: "Open settings",
|
|
3591
3591
|
category: "Settings",
|
|
3592
|
-
icon:
|
|
3592
|
+
icon: Hi.settings
|
|
3593
3593
|
}, {
|
|
3594
|
-
execute: (l) =>
|
|
3594
|
+
execute: (l) => Gc({
|
|
3595
3595
|
args: l,
|
|
3596
3596
|
ctx: i,
|
|
3597
3597
|
hasProjectScope: n
|
|
@@ -3607,36 +3607,36 @@ const To = (t) => {
|
|
|
3607
3607
|
};
|
|
3608
3608
|
}
|
|
3609
3609
|
};
|
|
3610
|
-
}, bn = (t, ...e) => e.every((n) => t.layout.getRegionCollapsible(n)), zo = 120, Bo = 4,
|
|
3610
|
+
}, bn = (t, ...e) => e.every((n) => t.layout.getRegionCollapsible(n)), zo = 120, Bo = 4, Uc = 480, Ho = (t) => t > 0 && t <= Uc, Zc = (t) => {
|
|
3611
3611
|
const e = [...t.attachedMenuMinSizes, t.targetMenuMinSize], n = zo + e.reduce((i, o) => i + o, 0) + e.length * Bo;
|
|
3612
3612
|
return t.panelWidth >= n;
|
|
3613
3613
|
}, Gt = {
|
|
3614
3614
|
defaultPx: 280,
|
|
3615
3615
|
minPx: 144,
|
|
3616
3616
|
maxPx: 320
|
|
3617
|
-
},
|
|
3617
|
+
}, Qc = {
|
|
3618
3618
|
main: "Main",
|
|
3619
3619
|
secondary: "Secondary",
|
|
3620
3620
|
side: "Side"
|
|
3621
|
-
},
|
|
3621
|
+
}, Xc = (t) => ({
|
|
3622
3622
|
defaultPx: t?.defaultPx ?? Gt.defaultPx,
|
|
3623
3623
|
minPx: t?.minPx ?? Gt.minPx,
|
|
3624
3624
|
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 = bt(t), d = it(t), a =
|
|
3625
|
+
}), Mn = (t, e) => `${Qc[t]} ${e} menu`, kt = (t, e, n, i) => {
|
|
3626
|
+
const o = k(47), r = i === void 0 ? !1 : i, s = ln[e][n], l = bt(t), d = it(t), a = E(t.layout.store, ed), c = E(t.layout.store, td), m = a.regions[s];
|
|
3627
3627
|
let f, h;
|
|
3628
3628
|
if (o[0] !== m || o[1] !== a || o[2] !== l || o[3] !== d || o[4] !== e || o[5] !== c) {
|
|
3629
3629
|
const A = on(a, e, l, {
|
|
3630
3630
|
ignoreOwnerResourceKey: e === "side"
|
|
3631
|
-
}),
|
|
3631
|
+
}), $ = pt(a);
|
|
3632
3632
|
f = {
|
|
3633
3633
|
...m,
|
|
3634
3634
|
widgets: m.widgets.filter((B) => {
|
|
3635
|
-
const
|
|
3636
|
-
return
|
|
3637
|
-
location:
|
|
3638
|
-
})) && sn(
|
|
3639
|
-
locationPanel:
|
|
3635
|
+
const z = c[B.contributionId];
|
|
3636
|
+
return z ? (e === "side" ? rn(z, d) : _t(z, l, d, B, {
|
|
3637
|
+
location: $
|
|
3638
|
+
})) && sn(z, {
|
|
3639
|
+
locationPanel: $,
|
|
3640
3640
|
subPanel: A
|
|
3641
3641
|
}) : !1;
|
|
3642
3642
|
})
|
|
@@ -3646,10 +3646,10 @@ const To = (t) => {
|
|
|
3646
3646
|
const p = h, g = p ? c[p.contributionId] : void 0;
|
|
3647
3647
|
let w;
|
|
3648
3648
|
o[8] !== s || o[9] !== t ? (w = () => bn(t, s), o[8] = s, o[9] = t, o[10] = w) : w = o[10];
|
|
3649
|
-
const y =
|
|
3649
|
+
const y = E(t.layout.store, w), b = p ? `panel-menu:${p.widgetId}` : s;
|
|
3650
3650
|
let v;
|
|
3651
3651
|
o[11] !== b ? (v = (A) => A.openByMenuId[b] ?? !0, o[11] = b, o[12] = v) : v = o[12];
|
|
3652
|
-
const S =
|
|
3652
|
+
const S = E(t.panelMenuState.store, v);
|
|
3653
3653
|
let I;
|
|
3654
3654
|
o[13] !== e || o[14] !== n ? (I = Mn(e, n), o[13] = e, o[14] = n, o[15] = I) : I = o[15];
|
|
3655
3655
|
let P;
|
|
@@ -3659,15 +3659,15 @@ const To = (t) => {
|
|
|
3659
3659
|
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
3660
|
const R = (!S || r) && y;
|
|
3661
3661
|
let W;
|
|
3662
|
-
o[24] !== s || o[25] !== t.layout ? (W =
|
|
3662
|
+
o[24] !== s || o[25] !== t.layout ? (W = Xc(t.layout.getRegionSize(s)), o[24] = s, o[25] = t.layout, o[26] = W) : W = o[26];
|
|
3663
3663
|
let T;
|
|
3664
3664
|
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
3665
|
let _;
|
|
3666
3666
|
o[30] !== y || o[31] !== b || o[32] !== t.panelMenuState ? (_ = (A) => {
|
|
3667
3667
|
(!A || y) && t.panelMenuState.setOpen(b, !A);
|
|
3668
3668
|
}, o[30] = y, o[31] = b, o[32] = t.panelMenuState, o[33] = _) : _ = o[33];
|
|
3669
|
-
let
|
|
3670
|
-
return o[34] !== y || o[35] !== s || o[36] !== r || o[37] !== n || o[38] !== T || o[39] !== _ || o[40] !== I || o[41] !== P || o[42] !== x || o[43] !== C || o[44] !== R || o[45] !== W ? (
|
|
3669
|
+
let N;
|
|
3670
|
+
return o[34] !== y || o[35] !== s || o[36] !== r || o[37] !== n || o[38] !== T || o[39] !== _ || o[40] !== I || o[41] !== P || o[42] !== x || o[43] !== C || o[44] !== R || o[45] !== W ? (N = {
|
|
3671
3671
|
region: s,
|
|
3672
3672
|
side: n,
|
|
3673
3673
|
label: I,
|
|
@@ -3680,8 +3680,8 @@ const To = (t) => {
|
|
|
3680
3680
|
size: W,
|
|
3681
3681
|
onOpen: T,
|
|
3682
3682
|
onCollapsedChange: _
|
|
3683
|
-
}, o[34] = y, o[35] = s, o[36] = r, o[37] = n, o[38] = T, o[39] = _, o[40] = I, o[41] = P, o[42] = x, o[43] = C, o[44] = R, o[45] = W, o[46] =
|
|
3684
|
-
},
|
|
3683
|
+
}, o[34] = y, o[35] = s, o[36] = r, o[37] = n, o[38] = T, o[39] = _, o[40] = I, o[41] = P, o[42] = x, o[43] = C, o[44] = R, o[45] = W, o[46] = N) : N = o[46], N;
|
|
3684
|
+
}, Yc = (t) => {
|
|
3685
3685
|
const e = k(11), {
|
|
3686
3686
|
view: n,
|
|
3687
3687
|
workbench: i
|
|
@@ -3692,14 +3692,14 @@ const To = (t) => {
|
|
|
3692
3692
|
let d;
|
|
3693
3693
|
e[2] !== n.label || e[3] !== n.region || e[4] !== i ? (d = /* @__PURE__ */ u(Ie, { 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
3694
|
let a;
|
|
3695
|
-
return e[6] !== s || e[7] !== l || e[8] !== d || e[9] !== n.region ? (a = /* @__PURE__ */ u(
|
|
3695
|
+
return e[6] !== s || e[7] !== l || e[8] !== d || e[9] !== n.region ? (a = /* @__PURE__ */ u(ui, { "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
3696
|
}, $n = (t) => {
|
|
3697
3697
|
const {
|
|
3698
3698
|
content: e,
|
|
3699
3699
|
view: n,
|
|
3700
3700
|
workbench: i
|
|
3701
3701
|
} = t;
|
|
3702
|
-
return n.has ? /* @__PURE__ */ u(ht, { minH: "0", minW: "0", resizableSide: n.side, resizablePanel: /* @__PURE__ */ u(
|
|
3702
|
+
return n.has ? /* @__PURE__ */ u(ht, { minH: "0", minW: "0", resizableSide: n.side, resizablePanel: /* @__PURE__ */ u(Yc, { 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, resizeHandleSizePx: Bo, resizeLabel: `Resize ${n.label}`, showResizeSeparator: !0, onSizeChange: (o) => i.layout.setRegionSize(n.region, o), onCollapsedChange: n.onCollapsedChange }) : e;
|
|
3703
3703
|
}, yn = (t) => {
|
|
3704
3704
|
const e = k(7), {
|
|
3705
3705
|
children: n,
|
|
@@ -3736,7 +3736,7 @@ const To = (t) => {
|
|
|
3736
3736
|
const d = new ResizeObserver(l);
|
|
3737
3737
|
return d.observe(s), () => d.disconnect();
|
|
3738
3738
|
}, r = [t], e[0] = t, e[1] = o, e[2] = r) : (o = e[1], r = e[2]), ue(o, r), n;
|
|
3739
|
-
},
|
|
3739
|
+
}, Jc = (t) => {
|
|
3740
3740
|
const e = k(40), {
|
|
3741
3741
|
canAttach: n,
|
|
3742
3742
|
view: i,
|
|
@@ -3799,18 +3799,18 @@ const To = (t) => {
|
|
|
3799
3799
|
if (e[2] !== l || e[3] !== o || e[4] !== d || e[5] !== i) {
|
|
3800
3800
|
c = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
3801
3801
|
e: {
|
|
3802
|
-
const m = [l, d], f = [l, d].filter(
|
|
3802
|
+
const m = [l, d], f = [l, d].filter(nd);
|
|
3803
3803
|
if (f.length === 0) {
|
|
3804
3804
|
c = null;
|
|
3805
3805
|
break e;
|
|
3806
3806
|
}
|
|
3807
3807
|
a = /* @__PURE__ */ u(We, { flexShrink: 0, gap: "2xs", minW: "0", children: f.map((h) => {
|
|
3808
|
-
const p = m.filter(
|
|
3808
|
+
const p = m.filter(od).map(id), g = !h.responsiveCollapsed && Zc({
|
|
3809
3809
|
panelWidth: o,
|
|
3810
3810
|
targetMenuMinSize: h.size.minPx,
|
|
3811
3811
|
attachedMenuMinSizes: p
|
|
3812
3812
|
});
|
|
3813
|
-
return /* @__PURE__ */ u(
|
|
3813
|
+
return /* @__PURE__ */ u(Jc, { view: h, workbench: i, canAttach: g }, h.region);
|
|
3814
3814
|
}) });
|
|
3815
3815
|
}
|
|
3816
3816
|
e[2] = l, e[3] = o, e[4] = d, e[5] = i, e[6] = a, e[7] = c;
|
|
@@ -3818,26 +3818,26 @@ const To = (t) => {
|
|
|
3818
3818
|
a = e[6], c = e[7];
|
|
3819
3819
|
return c !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? c : a;
|
|
3820
3820
|
};
|
|
3821
|
-
function
|
|
3821
|
+
function ed(t) {
|
|
3822
3822
|
return t.layout;
|
|
3823
3823
|
}
|
|
3824
|
-
function
|
|
3824
|
+
function td(t) {
|
|
3825
3825
|
return t.widgets;
|
|
3826
3826
|
}
|
|
3827
|
-
function
|
|
3827
|
+
function nd(t) {
|
|
3828
3828
|
return t.has && t.collapsed;
|
|
3829
3829
|
}
|
|
3830
|
-
function
|
|
3830
|
+
function od(t) {
|
|
3831
3831
|
return t.has && !t.collapsed;
|
|
3832
3832
|
}
|
|
3833
|
-
function
|
|
3833
|
+
function id(t) {
|
|
3834
3834
|
return t.size.minPx;
|
|
3835
3835
|
}
|
|
3836
3836
|
const vt = (t, e) => {
|
|
3837
3837
|
const n = k(3);
|
|
3838
3838
|
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],
|
|
3840
|
-
},
|
|
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, sr(i));
|
|
3840
|
+
}, rd = (t) => t ? `calc(${t} + 0.75rem)` : "3", sd = (t) => t ? `calc(${t} + 1.5rem)` : "6", ld = () => {
|
|
3841
3841
|
const t = k(1);
|
|
3842
3842
|
let e;
|
|
3843
3843
|
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;
|
|
@@ -3846,8 +3846,8 @@ const vt = (t, e) => {
|
|
|
3846
3846
|
header: n
|
|
3847
3847
|
} = t;
|
|
3848
3848
|
let i;
|
|
3849
|
-
return e[0] !== n ? (i = n ?? /* @__PURE__ */ u(
|
|
3850
|
-
},
|
|
3849
|
+
return e[0] !== n ? (i = n ?? /* @__PURE__ */ u(ld, {}), e[0] = n, e[1] = i) : i = e[1], i;
|
|
3850
|
+
}, ad = (t) => {
|
|
3851
3851
|
const e = k(18), {
|
|
3852
3852
|
workbench: n,
|
|
3853
3853
|
contentSlotRef: i,
|
|
@@ -3855,22 +3855,22 @@ const vt = (t, e) => {
|
|
|
3855
3855
|
} = t, r = vt(n, "side");
|
|
3856
3856
|
let s;
|
|
3857
3857
|
e[0] !== n.sidePanel ? (s = () => n.sidePanel.canFloat(), e[0] = n.sidePanel, e[1] = s) : s = e[1];
|
|
3858
|
-
const l =
|
|
3858
|
+
const l = E(n.modes.store, s);
|
|
3859
3859
|
let d;
|
|
3860
3860
|
e[2] !== l || e[3] !== o || e[4] !== r?.showHeader || e[5] !== n ? (d = r?.showHeader !== !1 && (o || l) ? /* @__PURE__ */ H(De, { "data-workbench-panel-header": "side", variant: "main", flexShrink: 0, gap: "sm", children: [
|
|
3861
3861
|
/* @__PURE__ */ u(Vo, { header: o }),
|
|
3862
3862
|
/* @__PURE__ */ u(vn, { workbench: n, panel: "side" }),
|
|
3863
|
-
l ? /* @__PURE__ */ u(Pe, { content: "Float Side Panel", children: /* @__PURE__ */ u(we, { size: et, variant: "ghost", "aria-label": "Float Side Panel", onClick: () => n.sidePanel.setMode("floating"), children: /* @__PURE__ */ u(
|
|
3863
|
+
l ? /* @__PURE__ */ u(Pe, { content: "Float Side Panel", children: /* @__PURE__ */ u(we, { size: et, variant: "ghost", "aria-label": "Float Side Panel", onClick: () => n.sidePanel.setMode("floating"), children: /* @__PURE__ */ u(_i, { size: 16 }) }) }) : null
|
|
3864
3864
|
] }) : void 0, e[2] = l, e[3] = o, e[4] = r?.showHeader, e[5] = n, e[6] = d) : d = e[6];
|
|
3865
3865
|
let a;
|
|
3866
3866
|
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
3867
|
let c;
|
|
3868
3868
|
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
3869
|
let m;
|
|
3870
|
-
e[12] !== d || e[13] !== c ? (m = /* @__PURE__ */ u(
|
|
3870
|
+
e[12] !== d || e[13] !== c ? (m = /* @__PURE__ */ u(mi, { "data-testid": "workbench-side-panel-attached", "data-workbench-panel": "side", "data-workbench-region": "side", width: "full", minWidth: "0", bg: Z.widget, header: d, children: c }), e[12] = d, e[13] = c, e[14] = m) : m = e[14];
|
|
3871
3871
|
let f;
|
|
3872
3872
|
return e[15] !== m || e[16] !== n ? (f = /* @__PURE__ */ u(ot, { 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
|
-
},
|
|
3873
|
+
}, cd = (t) => {
|
|
3874
3874
|
const e = k(30), {
|
|
3875
3875
|
workbench: n,
|
|
3876
3876
|
contentSlotRef: i,
|
|
@@ -3883,7 +3883,7 @@ const vt = (t, e) => {
|
|
|
3883
3883
|
return null;
|
|
3884
3884
|
if (d === "closed") {
|
|
3885
3885
|
let w;
|
|
3886
|
-
e[0] !== o ? (w =
|
|
3886
|
+
e[0] !== o ? (w = sd(o), e[0] = o, e[1] = w) : w = e[1];
|
|
3887
3887
|
let y;
|
|
3888
3888
|
e[2] !== w ? (y = {
|
|
3889
3889
|
bottom: w
|
|
@@ -3891,12 +3891,12 @@ const vt = (t, e) => {
|
|
|
3891
3891
|
let b;
|
|
3892
3892
|
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
3893
|
let v;
|
|
3894
|
-
e[7] !== s ? (v = s ?? /* @__PURE__ */ u(
|
|
3894
|
+
e[7] !== s ? (v = s ?? /* @__PURE__ */ u(Ai, { size: 20, strokeWidth: 2 }), e[7] = s, e[8] = v) : v = e[8];
|
|
3895
3895
|
let S;
|
|
3896
|
-
return e[9] !== y || e[10] !== b || e[11] !== v ? (S = /* @__PURE__ */ u(
|
|
3896
|
+
return e[9] !== y || e[10] !== b || e[11] !== v ? (S = /* @__PURE__ */ u(fi, { "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
3897
|
}
|
|
3898
3898
|
let a;
|
|
3899
|
-
e[13] !== o ? (a =
|
|
3899
|
+
e[13] !== o ? (a = rd(o), e[13] = o, e[14] = a) : a = e[14];
|
|
3900
3900
|
let c;
|
|
3901
3901
|
e[15] !== a ? (c = {
|
|
3902
3902
|
bottom: a,
|
|
@@ -3909,23 +3909,23 @@ const vt = (t, e) => {
|
|
|
3909
3909
|
let p;
|
|
3910
3910
|
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
3911
|
let g;
|
|
3912
|
-
return e[24] !== c || e[25] !== m || e[26] !== f || e[27] !== h || e[28] !== p ? (g = /* @__PURE__ */ u(
|
|
3913
|
-
}, en = (t, e) => JSON.stringify([t, e]),
|
|
3912
|
+
return e[24] !== c || e[25] !== m || e[26] !== f || e[27] !== h || e[28] !== p ? (g = /* @__PURE__ */ u(hi, { 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
|
+
}, en = (t, e) => JSON.stringify([t, e]), dd = (t) => {
|
|
3914
3914
|
const e = t?.metadata?.workspacePath;
|
|
3915
3915
|
return typeof e == "string" && e.length > 0 ? e : void 0;
|
|
3916
|
-
},
|
|
3917
|
-
const n =
|
|
3916
|
+
}, ud = (t, e) => {
|
|
3917
|
+
const n = dd(e);
|
|
3918
3918
|
return n && !t.cwd ? {
|
|
3919
3919
|
...t,
|
|
3920
3920
|
cwd: n
|
|
3921
3921
|
} : t;
|
|
3922
|
-
},
|
|
3922
|
+
}, md = (t, e = {}) => ({
|
|
3923
3923
|
async openSession(n) {
|
|
3924
3924
|
const {
|
|
3925
3925
|
sessionId: i
|
|
3926
3926
|
} = await t.open({
|
|
3927
3927
|
bindingId: e.getBindingId?.(),
|
|
3928
|
-
request:
|
|
3928
|
+
request: ud(n, e.getResource?.()),
|
|
3929
3929
|
title: e.getTitle?.()
|
|
3930
3930
|
});
|
|
3931
3931
|
return {
|
|
@@ -3954,19 +3954,19 @@ const vt = (t, e) => {
|
|
|
3954
3954
|
})
|
|
3955
3955
|
};
|
|
3956
3956
|
}
|
|
3957
|
-
}),
|
|
3957
|
+
}), fd = (t) => {
|
|
3958
3958
|
const {
|
|
3959
3959
|
placement: e,
|
|
3960
3960
|
workbench: n
|
|
3961
3961
|
} = t, {
|
|
3962
3962
|
themePreference: i
|
|
3963
|
-
} =
|
|
3963
|
+
} = Gn(), o = pe(e);
|
|
3964
3964
|
o.current = e;
|
|
3965
|
-
const [r] = Q(() =>
|
|
3965
|
+
const [r] = Q(() => md(n.terminal, {
|
|
3966
3966
|
getBindingId: () => en(n.layout.getPersistenceScope(), o.current.instanceId),
|
|
3967
3967
|
getResource: () => o.current.resource,
|
|
3968
3968
|
getTitle: () => o.current.title
|
|
3969
|
-
})), [s, l] = Q(), d =
|
|
3969
|
+
})), [s, l] = Q(), d = E(n.terminal.store, (m) => s ? m.sessionsById[s]?.title : void 0), a = E(n.layout.store, (m) => {
|
|
3970
3970
|
const f = m.layout.regions.secondary;
|
|
3971
3971
|
return (f.activeWidgetId ?? f.widgets[0]?.widgetId) === e.instanceId;
|
|
3972
3972
|
}), c = n.shellPlacements.updatePlacement;
|
|
@@ -3979,11 +3979,11 @@ const vt = (t, e) => {
|
|
|
3979
3979
|
label: d
|
|
3980
3980
|
}
|
|
3981
3981
|
});
|
|
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
|
-
}, Ee = "workbench.terminal", En = "workbench.terminal.open",
|
|
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(lr, { 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." }) });
|
|
3983
|
+
}, Ee = "workbench.terminal", En = "workbench.terminal.open", Wm = {
|
|
3984
3984
|
defaultPx: 240,
|
|
3985
3985
|
minPx: 128
|
|
3986
|
-
},
|
|
3986
|
+
}, hd = (t) => new Set(t.layout.listPanelInstances("secondary").filter((e) => e.viewId === Ee).map((e) => e.instanceId)), pd = (t) => {
|
|
3987
3987
|
let e = !1;
|
|
3988
3988
|
const n = t.layout.onWillChangePersistenceScope(() => {
|
|
3989
3989
|
e = !0;
|
|
@@ -3999,23 +3999,23 @@ const vt = (t, e) => {
|
|
|
3999
3999
|
dispose() {
|
|
4000
4000
|
o(), n.dispose(), i.dispose();
|
|
4001
4001
|
const r = t.layout.getPersistenceScope();
|
|
4002
|
-
for (const s of
|
|
4002
|
+
for (const s of hd(t))
|
|
4003
4003
|
t.terminal.killBinding(en(r, s));
|
|
4004
4004
|
}
|
|
4005
4005
|
};
|
|
4006
|
-
}, Lo = /^Terminal (\d+)$/, Nn = /* @__PURE__ */ new WeakMap(),
|
|
4006
|
+
}, Lo = /^Terminal (\d+)$/, Nn = /* @__PURE__ */ new WeakMap(), gd = (t) => {
|
|
4007
4007
|
const e = t.layout.getLayout().regions.secondary.widgets.filter((i) => i.viewId === Ee), n = e.map((i) => Lo.exec(i.title ?? "")?.[1]).filter((i) => i !== void 0).map((i) => Number.parseInt(i, 10));
|
|
4008
4008
|
return Math.max(e.length, ...n) + 1;
|
|
4009
|
-
},
|
|
4010
|
-
const e = Math.max(Nn.get(t.layout.store) ?? 1,
|
|
4009
|
+
}, bd = (t) => {
|
|
4010
|
+
const e = Math.max(Nn.get(t.layout.store) ?? 1, gd(t));
|
|
4011
4011
|
return Nn.set(t.layout.store, e + 1), `Terminal ${e}`;
|
|
4012
|
-
}, Ut = (t) => typeof t?.metadata?.workspacePath == "string" && t.metadata.workspacePath.length > 0,
|
|
4012
|
+
}, Ut = (t) => typeof t?.metadata?.workspacePath == "string" && t.metadata.workspacePath.length > 0, yd = (t, e) => {
|
|
4013
4013
|
const n = t.getActiveResource(), i = t.getPrimaryResource();
|
|
4014
4014
|
return (Ut(e) ? e : void 0) ?? (Ut(n) ? n : void 0) ?? (Ut(i) ? i : void 0) ?? e ?? i;
|
|
4015
|
-
},
|
|
4015
|
+
}, vd = (t, e = {}) => {
|
|
4016
4016
|
const {
|
|
4017
4017
|
reveal: n = !0
|
|
4018
|
-
} = e, i =
|
|
4018
|
+
} = e, i = yd(t, e.resource), o = bd(t), r = Number.parseInt(Lo.exec(o)?.[1] ?? "1", 10), l = {
|
|
4019
4019
|
type: "terminal",
|
|
4020
4020
|
id: `${String(r).padStart(8, "0")}-${globalThis.crypto.randomUUID()}`,
|
|
4021
4021
|
label: o,
|
|
@@ -4032,7 +4032,7 @@ const vt = (t, e) => {
|
|
|
4032
4032
|
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
4033
|
if (!a) throw new Error(`Terminal placement did not open: ${d.instanceKey}`);
|
|
4034
4034
|
return Tt(a);
|
|
4035
|
-
},
|
|
4035
|
+
}, Tm = () => ({
|
|
4036
4036
|
id: "workbench.terminal.surface",
|
|
4037
4037
|
activate(t) {
|
|
4038
4038
|
return [t.views.registerView({
|
|
@@ -4040,7 +4040,7 @@ const vt = (t, e) => {
|
|
|
4040
4040
|
title: "Terminal",
|
|
4041
4041
|
body: {
|
|
4042
4042
|
kind: "react",
|
|
4043
|
-
render: (n) => /* @__PURE__ */ u(
|
|
4043
|
+
render: (n) => /* @__PURE__ */ u(fd, { placement: n.instance, workbench: n.workbench })
|
|
4044
4044
|
}
|
|
4045
4045
|
}), t.shellPlacements.registerPlacement({
|
|
4046
4046
|
id: Ee,
|
|
@@ -4072,41 +4072,41 @@ const vt = (t, e) => {
|
|
|
4072
4072
|
// Background flows mint terminals without user intent; a closed Secondary
|
|
4073
4073
|
// Panel must stay closed until an explicit open reveals it.
|
|
4074
4074
|
hiddenByDefault: !0
|
|
4075
|
-
}),
|
|
4075
|
+
}), pd(t), t.commands.registerCommand({
|
|
4076
4076
|
id: En,
|
|
4077
4077
|
label: "Open terminal",
|
|
4078
4078
|
category: "Terminal",
|
|
4079
4079
|
icon: "SquareTerminal"
|
|
4080
4080
|
}, {
|
|
4081
|
-
execute: (n, i) =>
|
|
4081
|
+
execute: (n, i) => vd(t, {
|
|
4082
4082
|
resource: i?.resource
|
|
4083
4083
|
})
|
|
4084
4084
|
})];
|
|
4085
4085
|
}
|
|
4086
|
-
}),
|
|
4087
|
-
const e = k(2), n =
|
|
4086
|
+
}), Sd = (t) => {
|
|
4087
|
+
const e = k(2), n = E(t.themes.store, wd);
|
|
4088
4088
|
let i;
|
|
4089
|
-
return e[0] !== n ? (i = [...
|
|
4089
|
+
return e[0] !== n ? (i = [...pi, ...n], e[0] = n, e[1] = i) : i = e[1], i;
|
|
4090
4090
|
};
|
|
4091
|
-
function
|
|
4091
|
+
function wd(t) {
|
|
4092
4092
|
return t.themes;
|
|
4093
4093
|
}
|
|
4094
|
-
const On =
|
|
4094
|
+
const On = Ci(!1), Pd = (t) => {
|
|
4095
4095
|
const e = k(11), {
|
|
4096
4096
|
children: n,
|
|
4097
4097
|
initialThemePreference: i,
|
|
4098
4098
|
themePreferences: o,
|
|
4099
4099
|
fileIconThemePreferences: r
|
|
4100
4100
|
} = t;
|
|
4101
|
-
if (
|
|
4101
|
+
if (xi(On))
|
|
4102
4102
|
return n;
|
|
4103
4103
|
let l;
|
|
4104
|
-
e[0] !== n ? (l = /* @__PURE__ */ u(
|
|
4104
|
+
e[0] !== n ? (l = /* @__PURE__ */ u(bi, { value: yi, children: n }), e[0] = n, e[1] = l) : l = e[1];
|
|
4105
4105
|
let d;
|
|
4106
|
-
e[2] !== r || e[3] !== l ? (d = /* @__PURE__ */ u(
|
|
4106
|
+
e[2] !== r || e[3] !== l ? (d = /* @__PURE__ */ u(vi, { themePreferences: r, children: l }), e[2] = r, e[3] = l, e[4] = d) : d = e[4];
|
|
4107
4107
|
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
|
-
},
|
|
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(gi, { 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;
|
|
4109
|
+
}, Id = (t) => {
|
|
4110
4110
|
const e = k(6);
|
|
4111
4111
|
let n, i;
|
|
4112
4112
|
e[0] !== t ? ({
|
|
@@ -4115,18 +4115,18 @@ const On = ki(!1), Id = (t) => {
|
|
|
4115
4115
|
} = t, e[0] = t, e[1] = n, e[2] = i) : (n = e[1], i = e[2]);
|
|
4116
4116
|
let o;
|
|
4117
4117
|
return e[3] !== n || e[4] !== i ? (o = /* @__PURE__ */ u(F, { ...n, children: i }), e[3] = n, e[4] = i, e[5] = o) : o = e[5], o;
|
|
4118
|
-
},
|
|
4118
|
+
}, xd = (t) => typeof t == "object" && t !== null && !Array.isArray(t), Se = (t, e) => {
|
|
4119
4119
|
const n = t[e];
|
|
4120
4120
|
return typeof n == "string" ? n : void 0;
|
|
4121
4121
|
}, lt = (t, e) => {
|
|
4122
4122
|
const n = t[e];
|
|
4123
4123
|
return typeof n == "boolean" ? n : void 0;
|
|
4124
|
-
},
|
|
4125
|
-
if (!
|
|
4124
|
+
}, Cd = (t) => {
|
|
4125
|
+
if (!xd(t)) return {};
|
|
4126
4126
|
const e = {}, n = Se(t, "size"), i = Se(t, "placement"), o = Se(t, "scrollBehavior"), r = lt(t, "closeOnEscape"), s = lt(t, "closeOnInteractOutside"), l = lt(t, "modal"), d = lt(t, "preventScroll"), a = lt(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
4127
|
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
|
-
},
|
|
4129
|
-
const n = t.closable === !0, i =
|
|
4128
|
+
}, kd = (t, e) => {
|
|
4129
|
+
const n = t.closable === !0, i = Cd(e);
|
|
4130
4130
|
return {
|
|
4131
4131
|
size: "xl",
|
|
4132
4132
|
scrollBehavior: "inside",
|
|
@@ -4137,7 +4137,7 @@ const On = ki(!1), Id = (t) => {
|
|
|
4137
4137
|
closeOnEscape: n && (i.closeOnEscape ?? !0),
|
|
4138
4138
|
closeOnInteractOutside: n && (i.closeOnInteractOutside ?? !0)
|
|
4139
4139
|
};
|
|
4140
|
-
},
|
|
4140
|
+
}, Rd = (t, e) => t.find((n) => n.widgetId === e) ?? t[0], Wd = (t, e) => {
|
|
4141
4141
|
if (t) return {
|
|
4142
4142
|
open: !0,
|
|
4143
4143
|
placement: t
|
|
@@ -4146,22 +4146,22 @@ const On = ki(!1), Id = (t) => {
|
|
|
4146
4146
|
open: !1,
|
|
4147
4147
|
placement: e
|
|
4148
4148
|
};
|
|
4149
|
-
},
|
|
4149
|
+
}, Td = (t) => {
|
|
4150
4150
|
const e = k(3);
|
|
4151
4151
|
let n;
|
|
4152
4152
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ u(L, { name: "circle-alert", size: 20 }), e[0] = n) : n = e[0];
|
|
4153
4153
|
let i;
|
|
4154
4154
|
return e[1] !== t.label ? (i = /* @__PURE__ */ u(tn, { h: "full", w: "full", color: "fg.muted", p: "md", "aria-label": t.label, children: n }), e[1] = t.label, e[2] = i) : i = e[2], i;
|
|
4155
|
-
},
|
|
4155
|
+
}, _d = (t) => {
|
|
4156
4156
|
const e = k(32), {
|
|
4157
4157
|
workbench: n
|
|
4158
|
-
} = t, i =
|
|
4158
|
+
} = t, i = E(n.layout.store, Ad);
|
|
4159
4159
|
let o;
|
|
4160
4160
|
e[0] !== n ? (o = Y(n), e[0] = n, e[1] = o) : o = e[1];
|
|
4161
|
-
const r =
|
|
4161
|
+
const r = E(o.store, Md);
|
|
4162
4162
|
let s;
|
|
4163
|
-
e[2] !== n ? (s = Y(n), e[2] = n, e[3] = s) : s = e[3],
|
|
4164
|
-
const [l, d] = Q(), a =
|
|
4163
|
+
e[2] !== n ? (s = Y(n), e[2] = n, e[3] = s) : s = e[3], E(s.store, $d);
|
|
4164
|
+
const [l, d] = Q(), a = Rd(i.widgets, i.activeWidgetId), c = Wd(a, l);
|
|
4165
4165
|
if (ue(() => {
|
|
4166
4166
|
a && d(void 0);
|
|
4167
4167
|
}, [a]), !c)
|
|
@@ -4169,7 +4169,7 @@ const On = ki(!1), Id = (t) => {
|
|
|
4169
4169
|
const {
|
|
4170
4170
|
open: m,
|
|
4171
4171
|
placement: f
|
|
4172
|
-
} = c, h = n.layout.getWidget(f.contributionId), p =
|
|
4172
|
+
} = c, h = n.layout.getWidget(f.contributionId), p = kd(f, h?.config), {
|
|
4173
4173
|
contentHeight: g,
|
|
4174
4174
|
contentMaxHeight: w,
|
|
4175
4175
|
contentMinHeight: y,
|
|
@@ -4179,60 +4179,60 @@ const On = ki(!1), Id = (t) => {
|
|
|
4179
4179
|
...I
|
|
4180
4180
|
} = p, P = h ? r[h.rendererId] : void 0, x = m && f.closable === !0, C = f.title ?? h?.title ?? "overlay", R = h && P ? P.render({
|
|
4181
4181
|
workbench: n,
|
|
4182
|
-
panel:
|
|
4182
|
+
panel: to(h),
|
|
4183
4183
|
instance: Tt(f),
|
|
4184
|
-
refresh:
|
|
4185
|
-
}) : /* @__PURE__ */ u(
|
|
4184
|
+
refresh: Ed
|
|
4185
|
+
}) : /* @__PURE__ */ u(Td, { label: h ? `No renderer registered for ${h.rendererId}.` : "Widget contribution is no longer registered." });
|
|
4186
4186
|
let W;
|
|
4187
|
-
e[4] !== x || e[5] !== f || e[6] !== n.layout ? (W = (
|
|
4188
|
-
!
|
|
4187
|
+
e[4] !== x || e[5] !== f || e[6] !== n.layout ? (W = (q) => {
|
|
4188
|
+
!q.open && x && (d(f), n.layout.closePanel(f.widgetId));
|
|
4189
4189
|
}, e[4] = x, e[5] = f, e[6] = n.layout, e[7] = W) : W = e[7];
|
|
4190
4190
|
const T = W;
|
|
4191
4191
|
let _;
|
|
4192
4192
|
e[8] !== f ? (_ = () => {
|
|
4193
|
-
d((
|
|
4193
|
+
d((q) => q?.widgetId === f.widgetId ? void 0 : q);
|
|
4194
4194
|
}, e[8] = f, e[9] = _) : _ = e[9];
|
|
4195
|
-
const
|
|
4196
|
-
let
|
|
4197
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
4195
|
+
const N = _, A = Nd;
|
|
4196
|
+
let $;
|
|
4197
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ u(ye.Backdrop, { position: "fixed", inset: "0", pointerEvents: "auto" }), e[10] = $) : $ = e[10];
|
|
4198
4198
|
const B = I.scrollBehavior === "outside" ? "auto" : "hidden";
|
|
4199
|
-
let
|
|
4200
|
-
e[11] !== x || e[12] !== C || e[13] !== S ? (
|
|
4199
|
+
let z;
|
|
4200
|
+
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
4201
|
bg: "bg.subtle",
|
|
4202
4202
|
color: "fg"
|
|
4203
|
-
}, children: /* @__PURE__ */ u(L, { name: "x", size: 16 }) }) : null, e[11] = x, e[12] = C, e[13] = S, e[14] =
|
|
4203
|
+
}, children: /* @__PURE__ */ u(L, { name: "x", size: 16 }) }) : null, e[11] = x, e[12] = C, e[13] = S, e[14] = z) : z = e[14];
|
|
4204
4204
|
let M;
|
|
4205
|
-
e[15] !== R || e[16] !== g || e[17] !== w || e[18] !== v || e[19] !== y || e[20] !== b || e[21] !==
|
|
4205
|
+
e[15] !== R || e[16] !== g || e[17] !== w || e[18] !== v || e[19] !== y || e[20] !== b || e[21] !== z ? (M = /* @__PURE__ */ H(ye.Content, { position: "relative", overflow: "hidden", borderWidth: "1px", borderColor: "border.subtle", h: g, maxH: w, minH: y, w: b, maxW: v, children: [
|
|
4206
4206
|
R,
|
|
4207
|
-
|
|
4208
|
-
] }), e[15] = R, e[16] = g, e[17] = w, e[18] = v, e[19] = y, e[20] = b, e[21] =
|
|
4209
|
-
let
|
|
4210
|
-
e[23] !== B || e[24] !== M ? (
|
|
4211
|
-
|
|
4207
|
+
z
|
|
4208
|
+
] }), 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
|
+
let O;
|
|
4210
|
+
e[23] !== B || e[24] !== M ? (O = /* @__PURE__ */ H(Je, { children: [
|
|
4211
|
+
$,
|
|
4212
4212
|
/* @__PURE__ */ u(ye.Positioner, { position: "fixed", inset: "0", overflow: B, pointerEvents: "auto", children: M })
|
|
4213
|
-
] }), e[23] = B, e[24] = M, e[25] =
|
|
4213
|
+
] }), e[23] = B, e[24] = M, e[25] = O) : O = e[25];
|
|
4214
4214
|
let D;
|
|
4215
|
-
return e[26] !== I || e[27] !==
|
|
4215
|
+
return e[26] !== I || e[27] !== N || e[28] !== T || e[29] !== m || e[30] !== O ? (D = /* @__PURE__ */ u(ye.Root, { ...I, open: m, onExitComplete: N, onOpenChange: T, onInteractOutside: A, children: O }), e[26] = I, e[27] = N, e[28] = T, e[29] = m, e[30] = O, e[31] = D) : D = e[31], D;
|
|
4216
4216
|
};
|
|
4217
|
-
function
|
|
4217
|
+
function Ad(t) {
|
|
4218
4218
|
return t.layout.regions.overlay;
|
|
4219
4219
|
}
|
|
4220
|
-
function
|
|
4220
|
+
function Md(t) {
|
|
4221
4221
|
return t.renderers;
|
|
4222
4222
|
}
|
|
4223
|
-
function
|
|
4223
|
+
function $d(t) {
|
|
4224
4224
|
return t.refreshKeys;
|
|
4225
4225
|
}
|
|
4226
|
-
function
|
|
4226
|
+
function Ed() {
|
|
4227
4227
|
}
|
|
4228
|
-
function
|
|
4228
|
+
function Nd(t) {
|
|
4229
4229
|
const e = t.detail.originalEvent?.target;
|
|
4230
4230
|
e instanceof Element && e.closest('[data-part="content"]') && t.preventDefault();
|
|
4231
4231
|
}
|
|
4232
|
-
const
|
|
4232
|
+
const Od = (t) => {
|
|
4233
4233
|
const e = k(7), {
|
|
4234
4234
|
workbench: n
|
|
4235
|
-
} = t, i =
|
|
4235
|
+
} = t, i = E(n.breadcrumbs.store, zd) ?? [], o = mn(n), r = i.at(-1)?.resource, s = r ? o(r) : [];
|
|
4236
4236
|
if (!r || s.length === 0)
|
|
4237
4237
|
return null;
|
|
4238
4238
|
const l = r.label ?? r.id ?? r.type;
|
|
@@ -4246,9 +4246,9 @@ const zd = (t) => {
|
|
|
4246
4246
|
let m;
|
|
4247
4247
|
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
4248
|
let f;
|
|
4249
|
-
return e[4] !== s || e[5] !== m ? (f = /* @__PURE__ */ u(
|
|
4249
|
+
return e[4] !== s || e[5] !== m ? (f = /* @__PURE__ */ u(Si, { actions: s, positioning: d, children: m }), e[4] = s, e[5] = m, e[6] = f) : f = e[6], f;
|
|
4250
4250
|
};
|
|
4251
|
-
function
|
|
4251
|
+
function zd(t) {
|
|
4252
4252
|
return t.items;
|
|
4253
4253
|
}
|
|
4254
4254
|
const Fo = (t) => {
|
|
@@ -4261,13 +4261,13 @@ const Fo = (t) => {
|
|
|
4261
4261
|
e[2] !== n.label || e[3] !== n.onToggle || e[4] !== n.open || e[5] !== i ? (o = /* @__PURE__ */ u(we, { size: et, 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
4262
|
let r;
|
|
4263
4263
|
return e[7] !== n.label || e[8] !== o ? (r = /* @__PURE__ */ u(Pe, { content: n.label, children: o }), e[7] = n.label, e[8] = o, e[9] = r) : r = e[9], r;
|
|
4264
|
-
},
|
|
4264
|
+
}, Bd = (t) => {
|
|
4265
4265
|
const e = k(18), {
|
|
4266
4266
|
workbench: n,
|
|
4267
4267
|
regionControls: i
|
|
4268
|
-
} = t, o =
|
|
4268
|
+
} = t, o = E(n.pageLocations.historyStore, Dd);
|
|
4269
4269
|
let r;
|
|
4270
|
-
e[0] !== i ? (r = i.map(
|
|
4270
|
+
e[0] !== i ? (r = i.map(Vd), e[0] = i, e[1] = r) : r = e[1];
|
|
4271
4271
|
const s = !o.canGoBack;
|
|
4272
4272
|
let l;
|
|
4273
4273
|
e[2] !== n.pageLocations ? (l = () => n.pageLocations.goBack(), e[2] = n.pageLocations, e[3] = l) : l = e[3];
|
|
@@ -4293,20 +4293,20 @@ const Fo = (t) => {
|
|
|
4293
4293
|
controls: n
|
|
4294
4294
|
} = t;
|
|
4295
4295
|
let i;
|
|
4296
|
-
e[0] !== n ? (i = n.map(
|
|
4296
|
+
e[0] !== n ? (i = n.map(Ld), e[0] = n, e[1] = i) : i = e[1];
|
|
4297
4297
|
let o;
|
|
4298
4298
|
return e[2] !== i ? (o = /* @__PURE__ */ u(We, { gap: "2xs", flexShrink: 0, children: i }), e[2] = i, e[3] = o) : o = e[3], o;
|
|
4299
|
-
},
|
|
4299
|
+
}, Hd = (t) => {
|
|
4300
4300
|
const e = k(34), {
|
|
4301
4301
|
workbench: n,
|
|
4302
4302
|
hasNav: i,
|
|
4303
4303
|
regionControls: o
|
|
4304
4304
|
} = t, r = yt(n, "nav");
|
|
4305
4305
|
let s;
|
|
4306
|
-
e[0] !== o ? (s = o.filter(
|
|
4306
|
+
e[0] !== o ? (s = o.filter(Fd), e[0] = o, e[1] = s) : s = e[1];
|
|
4307
4307
|
const l = s;
|
|
4308
4308
|
let d;
|
|
4309
|
-
e[2] !== o ? (d = o.filter(
|
|
4309
|
+
e[2] !== o ? (d = o.filter(Kd), e[2] = o, e[3] = d) : d = e[3];
|
|
4310
4310
|
const a = d;
|
|
4311
4311
|
if (r === !1)
|
|
4312
4312
|
return null;
|
|
@@ -4322,17 +4322,17 @@ const Fo = (t) => {
|
|
|
4322
4322
|
] }), e[9] = b, e[10] = v, e[11] = S) : S = e[11], S;
|
|
4323
4323
|
}
|
|
4324
4324
|
let c;
|
|
4325
|
-
e[12] !== n ? (c = /* @__PURE__ */ u(Jt, { workbench: n, menuPath:
|
|
4325
|
+
e[12] !== n ? (c = /* @__PURE__ */ u(Jt, { workbench: n, menuPath: Ki }), e[12] = n, e[13] = c) : c = e[13];
|
|
4326
4326
|
let m;
|
|
4327
|
-
e[14] !== l || e[15] !== n ? (m = /* @__PURE__ */ u(
|
|
4327
|
+
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
4328
|
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(Ie, { workbench: n, region: "nav", title: "Nav Chrome" }) : /* @__PURE__ */ u(
|
|
4329
|
+
e[17] !== i || e[18] !== n ? (f = /* @__PURE__ */ u(F, { h: "full", minW: "0", maxW: "60%", overflow: "hidden", children: i ? /* @__PURE__ */ u(Ie, { workbench: n, region: "nav", title: "Nav Chrome" }) : /* @__PURE__ */ u(pr, { workbench: n }) }), e[17] = i, e[18] = n, e[19] = f) : f = e[19];
|
|
4330
4330
|
let h;
|
|
4331
|
-
e[20] !== n ? (h = /* @__PURE__ */ u(We, { "data-workbench-breadcrumb-action-slot": "", flexShrink: 0, gap: "2xs", h: "6", justifyContent: "center", minW: "6", children: /* @__PURE__ */ u(
|
|
4331
|
+
e[20] !== n ? (h = /* @__PURE__ */ u(We, { "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
4332
|
let p;
|
|
4333
4333
|
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ u(F, { flex: "1", minW: "0" }), e[22] = p) : p = e[22];
|
|
4334
4334
|
let g;
|
|
4335
|
-
e[23] !== n ? (g = /* @__PURE__ */ u(Jt, { workbench: n, menuPath:
|
|
4335
|
+
e[23] !== n ? (g = /* @__PURE__ */ u(Jt, { workbench: n, menuPath: qi }), e[23] = n, e[24] = g) : g = e[24];
|
|
4336
4336
|
let w;
|
|
4337
4337
|
e[25] !== a ? (w = /* @__PURE__ */ u(zn, { controls: a }), e[25] = a, e[26] = w) : w = e[26];
|
|
4338
4338
|
let y;
|
|
@@ -4346,19 +4346,19 @@ const Fo = (t) => {
|
|
|
4346
4346
|
w
|
|
4347
4347
|
] }), e[27] = c, e[28] = m, e[29] = f, e[30] = h, e[31] = g, e[32] = w, e[33] = y) : y = e[33], y;
|
|
4348
4348
|
};
|
|
4349
|
-
function
|
|
4349
|
+
function Dd(t) {
|
|
4350
4350
|
return t;
|
|
4351
4351
|
}
|
|
4352
|
-
function
|
|
4352
|
+
function Vd(t) {
|
|
4353
4353
|
return /* @__PURE__ */ u(Fo, { control: t }, t.id);
|
|
4354
4354
|
}
|
|
4355
|
-
function
|
|
4355
|
+
function Ld(t) {
|
|
4356
4356
|
return /* @__PURE__ */ u(Fo, { control: t }, t.id);
|
|
4357
4357
|
}
|
|
4358
|
-
function
|
|
4358
|
+
function Fd(t) {
|
|
4359
4359
|
return t.id === "sidenav";
|
|
4360
4360
|
}
|
|
4361
|
-
function
|
|
4361
|
+
function Kd(t) {
|
|
4362
4362
|
return t.id !== "sidenav";
|
|
4363
4363
|
}
|
|
4364
4364
|
const Zt = {
|
|
@@ -4367,7 +4367,7 @@ const Zt = {
|
|
|
4367
4367
|
values: {},
|
|
4368
4368
|
readOnly: !1,
|
|
4369
4369
|
loading: !0
|
|
4370
|
-
},
|
|
4370
|
+
}, qd = (t) => {
|
|
4371
4371
|
const e = k(22), {
|
|
4372
4372
|
workbench: n,
|
|
4373
4373
|
contribution: i,
|
|
@@ -4413,7 +4413,7 @@ const Zt = {
|
|
|
4413
4413
|
const m = s.readOnly || !i.updateValue && !i.apply, f = !m && (!!i.apply || !!i.reset);
|
|
4414
4414
|
let h;
|
|
4415
4415
|
e[5] !== i || e[6] !== r || e[7] !== s.values ? (h = (b, v) => {
|
|
4416
|
-
const S =
|
|
4416
|
+
const S = Ii.parse(v), I = {
|
|
4417
4417
|
...s.values,
|
|
4418
4418
|
[b]: S
|
|
4419
4419
|
};
|
|
@@ -4432,7 +4432,7 @@ const Zt = {
|
|
|
4432
4432
|
}, e[5] = i, e[6] = r, e[7] = s.values, e[8] = h) : h = e[8];
|
|
4433
4433
|
const p = h;
|
|
4434
4434
|
let g;
|
|
4435
|
-
e[9] !== i || e[10] !== p || e[11] !== m || e[12] !== s ? (g = /* @__PURE__ */ u(Ne, { flex: "1", minH: "0", minW: "0", w: "full", size: "xs", children: /* @__PURE__ */ u(
|
|
4435
|
+
e[9] !== i || e[10] !== p || e[11] !== m || e[12] !== s ? (g = /* @__PURE__ */ u(Ne, { 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
4436
|
let w;
|
|
4437
4437
|
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
4438
|
i.reset ? /* @__PURE__ */ u(Be, { size: "xs", variant: "ghost", onClick: () => {
|
|
@@ -4452,7 +4452,7 @@ const Zt = {
|
|
|
4452
4452
|
g,
|
|
4453
4453
|
w
|
|
4454
4454
|
] }), e[19] = g, e[20] = w, e[21] = y) : y = e[21], y;
|
|
4455
|
-
},
|
|
4455
|
+
}, jd = (t) => {
|
|
4456
4456
|
const e = k(16), {
|
|
4457
4457
|
state: n,
|
|
4458
4458
|
contribution: i,
|
|
@@ -4469,7 +4469,7 @@ const Zt = {
|
|
|
4469
4469
|
}
|
|
4470
4470
|
if (n.params.length || n.groups.length) {
|
|
4471
4471
|
let c;
|
|
4472
|
-
return e[3] !== r || e[4] !== o || e[5] !== n.groups || e[6] !== n.params || e[7] !== n.values ? (c = /* @__PURE__ */ u(
|
|
4472
|
+
return e[3] !== r || e[4] !== o || e[5] !== n.groups || e[6] !== n.params || e[7] !== n.values ? (c = /* @__PURE__ */ u(Un, { variant: "small", params: n.params, groups: n.groups, defaultValues: n.values, readOnly: o, onChange: r }), e[3] = r, e[4] = o, e[5] = n.groups, e[6] = n.params, e[7] = n.values, e[8] = c) : c = e[8], c;
|
|
4473
4473
|
}
|
|
4474
4474
|
const s = i.emptyTitle || "No controls";
|
|
4475
4475
|
let l;
|
|
@@ -4481,69 +4481,62 @@ const Zt = {
|
|
|
4481
4481
|
l,
|
|
4482
4482
|
d
|
|
4483
4483
|
] }), e[13] = l, e[14] = d, e[15] = a) : a = e[15], a;
|
|
4484
|
-
}, Bn = /* @__PURE__ */ new WeakSet(),
|
|
4484
|
+
}, Bn = /* @__PURE__ */ new WeakSet(), Gd = (t) => {
|
|
4485
4485
|
Bn.has(t) || (Bn.add(t), Y(t).setControlsRendererImplementation(({
|
|
4486
4486
|
workbench: e,
|
|
4487
4487
|
instance: n,
|
|
4488
4488
|
controlsRendererId: i
|
|
4489
4489
|
}) => {
|
|
4490
4490
|
const o = Y(e).getControlsRenderer(i);
|
|
4491
|
-
return o ? Ye(
|
|
4491
|
+
return o ? Ye(qd, {
|
|
4492
4492
|
workbench: e,
|
|
4493
4493
|
contribution: o,
|
|
4494
4494
|
placement: n
|
|
4495
4495
|
}) : null;
|
|
4496
4496
|
}));
|
|
4497
|
-
}, Hn = /* @__PURE__ */ new WeakSet(),
|
|
4497
|
+
}, Hn = /* @__PURE__ */ new WeakSet(), Ud = (t) => {
|
|
4498
4498
|
Hn.has(t) || (Hn.add(t), Y(t).setDataTableRendererImplementation(({
|
|
4499
4499
|
workbench: e,
|
|
4500
4500
|
instance: n,
|
|
4501
4501
|
dataTableRendererId: i
|
|
4502
4502
|
}) => {
|
|
4503
4503
|
const o = Y(e).getDataTableRenderer(i);
|
|
4504
|
-
return o ? Ye(
|
|
4504
|
+
return o ? Ye(na, {
|
|
4505
4505
|
workbench: e,
|
|
4506
4506
|
contribution: o,
|
|
4507
4507
|
placement: n
|
|
4508
4508
|
}) : null;
|
|
4509
4509
|
}));
|
|
4510
|
-
},
|
|
4510
|
+
}, Zd = () => import("./file-renderer-view-kfJRY3yR.js").then((t) => ({
|
|
4511
4511
|
default: t.WorkbenchFileRendererView
|
|
4512
|
-
})), Qd =
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
}
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
placement: o
|
|
4529
|
-
})) : null;
|
|
4530
|
-
}));
|
|
4531
|
-
};
|
|
4532
|
-
}, Yd = Xd(() => {
|
|
4533
|
-
typeof window < "u" && no(), Ko();
|
|
4534
|
-
}), Jd = (t) => t, eu = () => {
|
|
4512
|
+
})), Qd = Ri(Zd), Dn = /* @__PURE__ */ new WeakSet(), Xd = (t) => {
|
|
4513
|
+
Dn.has(t) || (Dn.add(t), Y(t).setFileRendererImplementation(({
|
|
4514
|
+
workbench: e,
|
|
4515
|
+
instance: n,
|
|
4516
|
+
fileRendererId: i
|
|
4517
|
+
}) => {
|
|
4518
|
+
const o = Y(e).getFileRenderer(i);
|
|
4519
|
+
return o ? Ye(ki, {
|
|
4520
|
+
fallback: null
|
|
4521
|
+
}, Ye(Qd, {
|
|
4522
|
+
workbench: e,
|
|
4523
|
+
contribution: o,
|
|
4524
|
+
placement: n
|
|
4525
|
+
})) : null;
|
|
4526
|
+
}));
|
|
4527
|
+
}, Yd = (t) => t, Jd = () => {
|
|
4535
4528
|
let t = 0;
|
|
4536
4529
|
return {
|
|
4537
4530
|
next: () => (t += 1, t),
|
|
4538
4531
|
isLatest: (e) => e === t
|
|
4539
4532
|
};
|
|
4540
|
-
},
|
|
4533
|
+
}, eu = async (t) => {
|
|
4541
4534
|
try {
|
|
4542
4535
|
return await t();
|
|
4543
4536
|
} catch {
|
|
4544
4537
|
return [];
|
|
4545
4538
|
}
|
|
4546
|
-
},
|
|
4539
|
+
}, tu = (t, e) => {
|
|
4547
4540
|
const n = t.resource?.metadata, i = n?.projectId;
|
|
4548
4541
|
if (typeof i == "string") return i;
|
|
4549
4542
|
const o = n?.favoriteScope;
|
|
@@ -4551,37 +4544,37 @@ const Xd = (t) => {
|
|
|
4551
4544
|
return e;
|
|
4552
4545
|
const r = o;
|
|
4553
4546
|
return r.scope === "project" && typeof r.projectId == "string" ? r.projectId : void 0;
|
|
4554
|
-
},
|
|
4555
|
-
const i = `pstdio:workbench:kanbanRenderer:${t}:${e.instanceId}`, o =
|
|
4547
|
+
}, nu = (t, e, n) => {
|
|
4548
|
+
const i = `pstdio:workbench:kanbanRenderer:${t}:${e.instanceId}`, o = tu(e, n);
|
|
4556
4549
|
return o ? `${i}:project:${o}` : i;
|
|
4557
|
-
},
|
|
4550
|
+
}, ou = {
|
|
4558
4551
|
display: "flex",
|
|
4559
4552
|
flexDirection: "column",
|
|
4560
4553
|
minH: "100%"
|
|
4561
|
-
},
|
|
4554
|
+
}, iu = (t) => {
|
|
4562
4555
|
const e = k(6), {
|
|
4563
4556
|
children: n,
|
|
4564
4557
|
usesInternalScroll: i
|
|
4565
4558
|
} = t, o = i ? "relative" : void 0;
|
|
4566
4559
|
let r;
|
|
4567
|
-
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(Ne, { flex: "1", minH: "0", minW: "0", w: "full", size: "xs", contentProps:
|
|
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(Ne, { 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];
|
|
4568
4561
|
let s;
|
|
4569
4562
|
return e[3] !== o || e[4] !== r ? (s = /* @__PURE__ */ u(_e, { 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;
|
|
4570
|
-
},
|
|
4571
|
-
},
|
|
4572
|
-
const e = k(3), n =
|
|
4563
|
+
}, ru = () => () => {
|
|
4564
|
+
}, 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 = cr(t) ? t : void 0, i = n ? void 0 : t, o = n ? n.subscribe : ru;
|
|
4573
4566
|
let r;
|
|
4574
4567
|
e[0] !== i || e[1] !== n ? (r = n ? n.getSnapshot : () => i, e[0] = i, e[1] = n, e[2] = r) : r = e[2];
|
|
4575
4568
|
const s = r;
|
|
4576
|
-
return
|
|
4577
|
-
},
|
|
4569
|
+
return Qn(o, s, s);
|
|
4570
|
+
}, au = (t, e) => {
|
|
4578
4571
|
const n = new Set(t.map((o) => o.key)), i = new Set(t.flatMap((o) => o.commandId ? [o.commandId] : []));
|
|
4579
4572
|
return [...t, ...e.filter((o) => !n.has(o.key) && (!o.commandId || !i.has(o.commandId)))];
|
|
4580
|
-
},
|
|
4573
|
+
}, cu = (t) => {
|
|
4581
4574
|
const e = k(40), {
|
|
4582
4575
|
workbench: n,
|
|
4583
4576
|
placement: i
|
|
4584
|
-
} = t, o =
|
|
4577
|
+
} = t, o = Yd(t.contribution), r = mn(n), s = lu(o.attributes), l = nu(o.id, i, o.storageScope);
|
|
4585
4578
|
let d;
|
|
4586
4579
|
e[0] !== o.defaultActiveViewId || e[1] !== o.defaultFilters || e[2] !== o.defaultSettings || e[3] !== o.defaultViews ? (d = {
|
|
4587
4580
|
settings: o.defaultSettings,
|
|
@@ -4589,79 +4582,79 @@ const Xd = (t) => {
|
|
|
4589
4582
|
views: o.defaultViews,
|
|
4590
4583
|
activeViewId: o.defaultActiveViewId
|
|
4591
4584
|
}, e[0] = o.defaultActiveViewId, e[1] = o.defaultFilters, e[2] = o.defaultSettings, e[3] = o.defaultViews, e[4] = d) : d = e[4];
|
|
4592
|
-
const a = d, c = wn(l,
|
|
4585
|
+
const a = d, c = wn(l, du, a), m = wn(l, uu, a);
|
|
4593
4586
|
let f;
|
|
4594
4587
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = [], e[5] = f) : f = e[5];
|
|
4595
4588
|
const [h, p] = Q(f);
|
|
4596
4589
|
let g;
|
|
4597
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g =
|
|
4590
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = Jd(), e[6] = g) : g = e[6];
|
|
4598
4591
|
const w = pe(g);
|
|
4599
4592
|
let y, b;
|
|
4600
4593
|
e[7] !== o || e[8] !== m || e[9] !== c || e[10] !== n ? (y = () => {
|
|
4601
4594
|
let T = !1;
|
|
4602
4595
|
const _ = () => {
|
|
4603
|
-
const
|
|
4596
|
+
const $ = w.current.next(), B = {
|
|
4604
4597
|
settings: c,
|
|
4605
4598
|
filters: m
|
|
4606
4599
|
};
|
|
4607
|
-
|
|
4608
|
-
T || !w.current.isLatest(
|
|
4600
|
+
eu(() => o.executeQuery(B)).then((z) => {
|
|
4601
|
+
T || !w.current.isLatest($) || p(z);
|
|
4609
4602
|
});
|
|
4610
4603
|
};
|
|
4611
4604
|
_();
|
|
4612
|
-
const
|
|
4613
|
-
|
|
4605
|
+
const N = o.subscribe?.(_), A = Y(n).onDidRefreshKanbanRenderer(($) => {
|
|
4606
|
+
$.kanbanRendererId === o.id && _();
|
|
4614
4607
|
});
|
|
4615
4608
|
return () => {
|
|
4616
|
-
T = !0, typeof
|
|
4609
|
+
T = !0, typeof N == "function" ? N() : N?.dispose(), A.dispose();
|
|
4617
4610
|
};
|
|
4618
4611
|
}, b = [o, m, c, n], e[7] = o, e[8] = m, e[9] = c, e[10] = n, e[11] = y, e[12] = b) : (y = e[11], b = e[12]), ue(y, b);
|
|
4619
4612
|
let v;
|
|
4620
4613
|
e[13] !== o ? (v = (T) => {
|
|
4621
|
-
o.onRowActivate && Promise.resolve(o.onRowActivate(T)).catch(
|
|
4614
|
+
o.onRowActivate && Promise.resolve(o.onRowActivate(T)).catch(mu);
|
|
4622
4615
|
}, e[13] = o, e[14] = v) : v = e[14];
|
|
4623
4616
|
const S = v;
|
|
4624
4617
|
let I;
|
|
4625
4618
|
e[15] !== o || e[16] !== r ? (I = (T) => {
|
|
4626
|
-
const _ =
|
|
4627
|
-
return
|
|
4619
|
+
const _ = su(T.resource) ? r(T.resource) : [], N = o.getRowContextMenuActions?.(T) ?? [];
|
|
4620
|
+
return au(_, N);
|
|
4628
4621
|
}, e[15] = o, e[16] = r, e[17] = I) : I = e[17];
|
|
4629
4622
|
const P = I, x = c.viewMode === "board", C = o.onRowActivate ? S : void 0;
|
|
4630
4623
|
let R;
|
|
4631
|
-
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] !== P || e[33] !== h || e[34] !== l || e[35] !== C ? (R = /* @__PURE__ */ u(
|
|
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] !== P || e[33] !== h || e[34] !== l || e[35] !== C ? (R = /* @__PURE__ */ u(ar, { 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: P }), 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] = P, e[33] = h, e[34] = l, e[35] = C, e[36] = R) : R = e[36];
|
|
4632
4625
|
let W;
|
|
4633
|
-
return e[37] !== x || e[38] !== R ? (W = /* @__PURE__ */ u(
|
|
4626
|
+
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;
|
|
4634
4627
|
};
|
|
4635
|
-
function
|
|
4628
|
+
function du(t) {
|
|
4636
4629
|
return t.settings;
|
|
4637
4630
|
}
|
|
4638
|
-
function
|
|
4631
|
+
function uu(t) {
|
|
4639
4632
|
return t.filters;
|
|
4640
4633
|
}
|
|
4641
|
-
function
|
|
4634
|
+
function mu() {
|
|
4642
4635
|
}
|
|
4643
|
-
const
|
|
4644
|
-
|
|
4636
|
+
const Vn = /* @__PURE__ */ new WeakSet(), fu = (t) => {
|
|
4637
|
+
Vn.has(t) || (Vn.add(t), Y(t).setKanbanRendererImplementation(({
|
|
4645
4638
|
workbench: e,
|
|
4646
4639
|
instance: n,
|
|
4647
4640
|
kanbanRendererId: i
|
|
4648
4641
|
}) => {
|
|
4649
4642
|
const o = Y(e).getKanbanRenderer(i);
|
|
4650
|
-
return o ? Ye(
|
|
4643
|
+
return o ? Ye(cu, {
|
|
4651
4644
|
workbench: e,
|
|
4652
4645
|
contribution: o,
|
|
4653
4646
|
placement: n
|
|
4654
4647
|
}) : null;
|
|
4655
4648
|
}));
|
|
4656
|
-
},
|
|
4649
|
+
}, Ln = /* @__PURE__ */ new WeakMap(), hu = (t, e) => t.layout.getLayout().regions.sidenav.widgets.some((n) => n.widgetId === e), pu = (t, e, n) => {
|
|
4657
4650
|
const i = t.layout.getPanel(e)?.config;
|
|
4658
4651
|
if (i && typeof i == "object" && "viewContextId" in i) {
|
|
4659
4652
|
const o = i.viewContextId;
|
|
4660
4653
|
if (typeof o == "string") return o;
|
|
4661
4654
|
}
|
|
4662
4655
|
return n;
|
|
4663
|
-
},
|
|
4664
|
-
const n =
|
|
4656
|
+
}, gu = (t, e = {}) => {
|
|
4657
|
+
const n = Ln.get(t);
|
|
4665
4658
|
if (n) {
|
|
4666
4659
|
n.renderParamField = e.renderParamField, n.onSidenavContextActionsChange = e.onSidenavContextActionsChange;
|
|
4667
4660
|
return;
|
|
@@ -4670,7 +4663,7 @@ const Dn = /* @__PURE__ */ new WeakSet(), hu = (t) => {
|
|
|
4670
4663
|
renderParamField: e.renderParamField,
|
|
4671
4664
|
onSidenavContextActionsChange: e.onSidenavContextActionsChange
|
|
4672
4665
|
};
|
|
4673
|
-
|
|
4666
|
+
Ln.set(t, i), Y(t).setTreeRendererImplementation(({
|
|
4674
4667
|
workbench: o,
|
|
4675
4668
|
instance: r,
|
|
4676
4669
|
treeId: s
|
|
@@ -4678,12 +4671,12 @@ const Dn = /* @__PURE__ */ new WeakSet(), hu = (t) => {
|
|
|
4678
4671
|
workbench: o,
|
|
4679
4672
|
treeViewId: s,
|
|
4680
4673
|
resource: r.resource,
|
|
4681
|
-
viewId:
|
|
4674
|
+
viewId: pu(o, r.panelId, r.viewId),
|
|
4682
4675
|
renderParamField: i.renderParamField,
|
|
4683
|
-
onSidenavContextActionsChange:
|
|
4676
|
+
onSidenavContextActionsChange: hu(o, r.instanceId) ? i.onSidenavContextActionsChange : void 0
|
|
4684
4677
|
}));
|
|
4685
|
-
},
|
|
4686
|
-
function
|
|
4678
|
+
}, bu = (t) => E(t.fileIconThemes.store, yu);
|
|
4679
|
+
function yu(t) {
|
|
4687
4680
|
return t.themes;
|
|
4688
4681
|
}
|
|
4689
4682
|
const Re = (t, e, n) => {
|
|
@@ -4693,8 +4686,8 @@ const Re = (t, e, n) => {
|
|
|
4693
4686
|
const r = o, s = yt(t, e), l = bt(t), d = it(t);
|
|
4694
4687
|
let a;
|
|
4695
4688
|
if (i[2] !== d || i[3] !== e || i[4] !== t.modes) {
|
|
4696
|
-
const f =
|
|
4697
|
-
a = !f ||
|
|
4689
|
+
const f = Di(e);
|
|
4690
|
+
a = !f || Vi(d ? t.modes.getMode(d) : void 0, f), i[2] = d, i[3] = e, i[4] = t.modes, i[5] = a;
|
|
4698
4691
|
} else
|
|
4699
4692
|
a = i[5];
|
|
4700
4693
|
const c = a;
|
|
@@ -4704,8 +4697,8 @@ const Re = (t, e, n) => {
|
|
|
4704
4697
|
return p ? e === "side" ? rn(p, d) : _t(p, l, d, h, {
|
|
4705
4698
|
location: pt(f.layout)
|
|
4706
4699
|
}) : !1;
|
|
4707
|
-
}) : 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],
|
|
4708
|
-
},
|
|
4700
|
+
}) : 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
|
+
}, Ko = (t) => {
|
|
4709
4702
|
const e = k(1), {
|
|
4710
4703
|
workbench: n,
|
|
4711
4704
|
region: i
|
|
@@ -4714,7 +4707,7 @@ const Re = (t, e, n) => {
|
|
|
4714
4707
|
return null;
|
|
4715
4708
|
let o;
|
|
4716
4709
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ u(F, { position: "absolute", insetInline: "0", bottom: "0", h: "1px", bg: "border.subtle", pointerEvents: "none", zIndex: "0" }), e[0] = o) : o = e[0], o;
|
|
4717
|
-
},
|
|
4710
|
+
}, vu = (t) => {
|
|
4718
4711
|
const e = k(12);
|
|
4719
4712
|
let n;
|
|
4720
4713
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
@@ -4723,7 +4716,7 @@ const Re = (t, e, n) => {
|
|
|
4723
4716
|
const i = Re(t, "secondary", n), o = Re(t, "secondary-header"), r = dt(t, "secondary");
|
|
4724
4717
|
let s;
|
|
4725
4718
|
e[1] !== t ? (s = () => bn(t, "secondary-header", "secondary"), e[1] = t, e[2] = s) : s = e[2];
|
|
4726
|
-
const l =
|
|
4719
|
+
const l = E(t.layout.store, s), d = E(t.layout.store, wu), a = i || o || r, c = !d;
|
|
4727
4720
|
let m;
|
|
4728
4721
|
e[3] !== l || e[4] !== t.shell ? (m = (h) => {
|
|
4729
4722
|
(!h || l) && t.shell.setRegionOpen("secondary", !h);
|
|
@@ -4736,18 +4729,18 @@ const Re = (t, e, n) => {
|
|
|
4736
4729
|
collapsed: c,
|
|
4737
4730
|
onCollapsedChange: m
|
|
4738
4731
|
}, e[6] = l, e[7] = o, e[8] = a, e[9] = c, e[10] = m, e[11] = f) : f = e[11], f;
|
|
4739
|
-
},
|
|
4740
|
-
const e = k(3), n = Re(t, "main-header"), i =
|
|
4732
|
+
}, Su = (t) => {
|
|
4733
|
+
const e = k(3), n = Re(t, "main-header"), i = vu(t);
|
|
4741
4734
|
let o;
|
|
4742
4735
|
return e[0] !== n || e[1] !== i ? (o = {
|
|
4743
4736
|
hasMainHeader: n,
|
|
4744
4737
|
secondaryPanel: i
|
|
4745
4738
|
}, e[0] = n, e[1] = i, e[2] = o) : o = e[2], o;
|
|
4746
4739
|
};
|
|
4747
|
-
function
|
|
4740
|
+
function wu(t) {
|
|
4748
4741
|
return t.layout.regions.secondary.visible;
|
|
4749
4742
|
}
|
|
4750
|
-
const
|
|
4743
|
+
const Pu = (t) => {
|
|
4751
4744
|
const e = k(14), {
|
|
4752
4745
|
workbench: n,
|
|
4753
4746
|
hasSecondaryHeader: i
|
|
@@ -4757,7 +4750,7 @@ const Iu = (t) => {
|
|
|
4757
4750
|
/* @__PURE__ */ u(pn, { workbench: n, region: "secondary" }),
|
|
4758
4751
|
i ? /* @__PURE__ */ u(F, { flex: "1", h: "full", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(Ie, { workbench: n, region: "secondary-header", title: "Secondary Panel header" }) }) : null,
|
|
4759
4752
|
/* @__PURE__ */ u(vn, { workbench: n, panel: "secondary" }),
|
|
4760
|
-
/* @__PURE__ */ u(
|
|
4753
|
+
/* @__PURE__ */ u(Ko, { workbench: n, region: "secondary-header" })
|
|
4761
4754
|
] }) : null, e[0] = o, e[1] = i, e[2] = r?.showHeader, e[3] = n, e[4] = s) : s = e[4];
|
|
4762
4755
|
let l;
|
|
4763
4756
|
e[5] !== n ? (l = /* @__PURE__ */ u(Ie, { workbench: n, region: "secondary", title: "Secondary Panel" }), e[5] = n, e[6] = l) : l = e[6];
|
|
@@ -4768,19 +4761,19 @@ const Iu = (t) => {
|
|
|
4768
4761
|
s,
|
|
4769
4762
|
d
|
|
4770
4763
|
] }), e[10] = s, e[11] = d, e[12] = n, e[13] = a) : a = e[13], a;
|
|
4771
|
-
},
|
|
4764
|
+
}, Iu = {
|
|
4772
4765
|
defaultPx: 240,
|
|
4773
4766
|
minPx: 128,
|
|
4774
4767
|
maxPx: 420
|
|
4775
|
-
},
|
|
4768
|
+
}, xu = 240, Cu = 4, ku = ji("main"), Ru = (t, e, n) => ({
|
|
4776
4769
|
defaultPx: e ?? t?.defaultPx ?? n.defaultPx,
|
|
4777
4770
|
minPx: t?.minPx ?? n.minPx,
|
|
4778
4771
|
maxPx: t ? t.maxPx : n.maxPx
|
|
4779
|
-
}),
|
|
4772
|
+
}), Wu = (t) => {
|
|
4780
4773
|
const e = k(18), {
|
|
4781
4774
|
workbench: n,
|
|
4782
4775
|
hasMainHeader: i
|
|
4783
|
-
} = t, o =
|
|
4776
|
+
} = t, o = Il(n, "main"), r = dt(n, "main");
|
|
4784
4777
|
if (vt(n, "main")?.showHeader === !1 || !i && !r)
|
|
4785
4778
|
return null;
|
|
4786
4779
|
let l;
|
|
@@ -4791,7 +4784,7 @@ const Iu = (t) => {
|
|
|
4791
4784
|
let c;
|
|
4792
4785
|
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];
|
|
4793
4786
|
let m, f, h;
|
|
4794
|
-
e[8] !== n ? (m = /* @__PURE__ */ u(Jt, { workbench: n, menuPath:
|
|
4787
|
+
e[8] !== n ? (m = /* @__PURE__ */ u(Jt, { workbench: n, menuPath: ku, controlSize: et }), f = /* @__PURE__ */ u(vn, { workbench: n, panel: "main" }), h = /* @__PURE__ */ u(Ko, { 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]);
|
|
4795
4788
|
let p;
|
|
4796
4789
|
return e[12] !== l || e[13] !== c || e[14] !== m || e[15] !== f || e[16] !== h ? (p = /* @__PURE__ */ H(De, { "data-workbench-panel-header": "main", variant: "main", bg: Z.main, position: "relative", flexShrink: 0, gap: "xs", overflow: "hidden", overflowY: "hidden", children: [
|
|
4797
4790
|
l,
|
|
@@ -4800,17 +4793,17 @@ const Iu = (t) => {
|
|
|
4800
4793
|
f,
|
|
4801
4794
|
h
|
|
4802
4795
|
] }), e[12] = l, e[13] = c, e[14] = m, e[15] = f, e[16] = h, e[17] = p) : p = e[17], p;
|
|
4803
|
-
},
|
|
4796
|
+
}, Tu = (t) => {
|
|
4804
4797
|
const e = k(39), {
|
|
4805
4798
|
workbench: n
|
|
4806
|
-
} = t, i = vt(n, "secondary"), o =
|
|
4799
|
+
} = t, i = vt(n, "secondary"), o = Su(n), {
|
|
4807
4800
|
hasMainHeader: r,
|
|
4808
4801
|
secondaryPanel: s
|
|
4809
|
-
} = o, l =
|
|
4802
|
+
} = o, l = E(n.layout.store, _u);
|
|
4810
4803
|
let d;
|
|
4811
4804
|
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];
|
|
4812
4805
|
let a;
|
|
4813
|
-
e[3] !== l || e[4] !== d ? (a =
|
|
4806
|
+
e[3] !== l || e[4] !== d ? (a = Ru(d, l, Iu), e[3] = l, e[4] = d, e[5] = a) : a = e[5];
|
|
4814
4807
|
const c = a;
|
|
4815
4808
|
let m;
|
|
4816
4809
|
e[6] !== n ? (m = /* @__PURE__ */ u(Ie, { workbench: n, region: "main", title: "Main" }), e[6] = n, e[7] = m) : m = e[7];
|
|
@@ -4821,7 +4814,7 @@ const Iu = (t) => {
|
|
|
4821
4814
|
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];
|
|
4822
4815
|
const g = p;
|
|
4823
4816
|
let w;
|
|
4824
|
-
e[14] !== r || e[15] !== n ? (w = /* @__PURE__ */ u(
|
|
4817
|
+
e[14] !== r || e[15] !== n ? (w = /* @__PURE__ */ u(Wu, { workbench: n, hasMainHeader: r }), e[14] = r, e[15] = n, e[16] = w) : w = e[16];
|
|
4825
4818
|
let y;
|
|
4826
4819
|
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];
|
|
4827
4820
|
let b;
|
|
@@ -4835,16 +4828,16 @@ const Iu = (t) => {
|
|
|
4835
4828
|
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;
|
|
4836
4829
|
}
|
|
4837
4830
|
let S;
|
|
4838
|
-
e[24] !== s.hasHeader || e[25] !== n ? (S = /* @__PURE__ */ u(
|
|
4831
|
+
e[24] !== s.hasHeader || e[25] !== n ? (S = /* @__PURE__ */ u(Pu, { workbench: n, hasSecondaryHeader: s.hasHeader }), e[24] = s.hasHeader, e[25] = n, e[26] = S) : S = e[26];
|
|
4839
4832
|
let I;
|
|
4840
4833
|
e[27] !== n.layout ? (I = (x) => n.layout.setRegionSize("secondary", x), e[27] = n.layout, e[28] = I) : I = e[28];
|
|
4841
4834
|
let P;
|
|
4842
|
-
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] !== I ? (P = /* @__PURE__ */ u(ht, { 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:
|
|
4835
|
+
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] !== I ? (P = /* @__PURE__ */ u(ht, { 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, resizeHandleSizePx: Cu, resizeLabel: "Resize Secondary Panel", showResizeSeparator: !0, onSizeChange: I, 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] = I, e[38] = P) : P = e[38], P;
|
|
4843
4836
|
};
|
|
4844
|
-
function
|
|
4837
|
+
function _u(t) {
|
|
4845
4838
|
return t.layout.regions.secondary.size;
|
|
4846
4839
|
}
|
|
4847
|
-
const
|
|
4840
|
+
const Au = (t) => {
|
|
4848
4841
|
const e = k(8), {
|
|
4849
4842
|
workbench: n,
|
|
4850
4843
|
contextActions: i
|
|
@@ -4854,8 +4847,8 @@ const Mu = (t) => {
|
|
|
4854
4847
|
let r;
|
|
4855
4848
|
e[2] !== o || e[3] !== n ? (r = /* @__PURE__ */ u(F, { h: "full", minH: "0", minW: "0", w: "full", children: /* @__PURE__ */ u(ot, { workbench: n, region: "sidenav", "data-workbench-region": "sidenav", as: "aside", bg: Z.sidenav, 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];
|
|
4856
4849
|
let s;
|
|
4857
|
-
return e[5] !== i || e[6] !== r ? (s = /* @__PURE__ */ u(
|
|
4858
|
-
},
|
|
4850
|
+
return e[5] !== i || e[6] !== r ? (s = /* @__PURE__ */ u(wi, { actions: i, closeOnSelect: !1, keepMountedWhenEmpty: !0, children: r }), e[5] = i, e[6] = r, e[7] = s) : s = e[7], s;
|
|
4851
|
+
}, qo = "2rem", Fn = (t) => {
|
|
4859
4852
|
const e = k(6), {
|
|
4860
4853
|
slot: n,
|
|
4861
4854
|
workbench: i
|
|
@@ -4877,7 +4870,7 @@ const Mu = (t) => {
|
|
|
4877
4870
|
} else
|
|
4878
4871
|
r = e[3];
|
|
4879
4872
|
return r;
|
|
4880
|
-
},
|
|
4873
|
+
}, Mu = (t) => {
|
|
4881
4874
|
const e = k(5), {
|
|
4882
4875
|
workbench: n
|
|
4883
4876
|
} = t;
|
|
@@ -4885,24 +4878,24 @@ const Mu = (t) => {
|
|
|
4885
4878
|
e[0] !== n ? (i = /* @__PURE__ */ u(Ie, { workbench: n, region: "activity", title: "Activity bar" }), e[0] = n, e[1] = i) : i = e[1];
|
|
4886
4879
|
let o;
|
|
4887
4880
|
return e[2] !== i || e[3] !== n ? (o = /* @__PURE__ */ u(ot, { workbench: n, region: "activity", "data-workbench-region": "activity", as: "nav", bg: Z.activityBar, borderRightWidth: "1px", borderColor: "border.subtle", 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;
|
|
4888
|
-
},
|
|
4881
|
+
}, $u = (t) => {
|
|
4889
4882
|
const e = k(6), {
|
|
4890
4883
|
workbench: n
|
|
4891
4884
|
} = t;
|
|
4892
|
-
|
|
4885
|
+
E(n.statusBar.store, Eu);
|
|
4893
4886
|
const i = yt(n, "status");
|
|
4894
4887
|
let o;
|
|
4895
4888
|
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: [
|
|
4896
|
-
/* @__PURE__ */ u(F, { display: "flex", alignItems: "stretch", minW: "0", h: "full", children: /* @__PURE__ */ u(
|
|
4897
|
-
/* @__PURE__ */ u(F, { display: "flex", alignItems: "stretch", minW: "0", h: "full", children: /* @__PURE__ */ u(
|
|
4889
|
+
/* @__PURE__ */ u(F, { display: "flex", alignItems: "stretch", minW: "0", h: "full", children: /* @__PURE__ */ u(Fn, { workbench: n, slot: "leading" }) }),
|
|
4890
|
+
/* @__PURE__ */ u(F, { display: "flex", alignItems: "stretch", minW: "0", h: "full", children: /* @__PURE__ */ u(Fn, { workbench: n, slot: "trailing" }) })
|
|
4898
4891
|
] }), e[0] = i, e[1] = n, e[2] = o) : o = e[2];
|
|
4899
4892
|
let r;
|
|
4900
|
-
return e[3] !== o || e[4] !== n ? (r = /* @__PURE__ */ u(ot, { workbench: n, region: "status", "data-workbench-region": "status", as: "footer", bg: Z.statusBar, borderTopWidth: "1px", borderColor: "border.subtle", flexShrink: 0, h:
|
|
4893
|
+
return e[3] !== o || e[4] !== n ? (r = /* @__PURE__ */ u(ot, { workbench: n, region: "status", "data-workbench-region": "status", as: "footer", bg: Z.statusBar, borderTopWidth: "1px", borderColor: "border.subtle", flexShrink: 0, h: qo, minH: "0", minW: "0", overflow: "hidden", children: o }), e[3] = o, e[4] = n, e[5] = r) : r = e[5], r;
|
|
4901
4894
|
};
|
|
4902
|
-
function
|
|
4895
|
+
function Eu(t) {
|
|
4903
4896
|
return t.items;
|
|
4904
4897
|
}
|
|
4905
|
-
const
|
|
4898
|
+
const Nu = 420, Ou = 320, zu = (t) => {
|
|
4906
4899
|
const e = k(5), {
|
|
4907
4900
|
workbench: n,
|
|
4908
4901
|
hasSidePanel: i,
|
|
@@ -4914,8 +4907,8 @@ const Ou = 420, zu = 320, Bu = (t) => {
|
|
|
4914
4907
|
let s;
|
|
4915
4908
|
e[0] !== n ? (s = /* @__PURE__ */ u(Ie, { workbench: n, region: "side", title: "Side Panel", transparent: !0 }), e[0] = n, e[1] = s) : s = e[1];
|
|
4916
4909
|
let l;
|
|
4917
|
-
return e[2] !== r || e[3] !== s ? (l =
|
|
4918
|
-
},
|
|
4910
|
+
return e[2] !== r || e[3] !== s ? (l = dr(s, r), e[2] = r, e[3] = s, e[4] = l) : l = e[4], l;
|
|
4911
|
+
}, Bu = (t) => {
|
|
4919
4912
|
const e = k(8), {
|
|
4920
4913
|
workbench: n,
|
|
4921
4914
|
hasSideHeader: i
|
|
@@ -4929,7 +4922,7 @@ const Ou = 420, zu = 320, Bu = (t) => {
|
|
|
4929
4922
|
o,
|
|
4930
4923
|
r
|
|
4931
4924
|
] }), e[5] = o, e[6] = r, e[7] = s) : s = e[7], s;
|
|
4932
|
-
},
|
|
4925
|
+
}, Hu = (t) => {
|
|
4933
4926
|
const e = k(26), {
|
|
4934
4927
|
workbench: n,
|
|
4935
4928
|
attached: i,
|
|
@@ -4938,7 +4931,7 @@ const Ou = 420, zu = 320, Bu = (t) => {
|
|
|
4938
4931
|
header: s,
|
|
4939
4932
|
onAttachedSlotChange: l,
|
|
4940
4933
|
onCollapse: d
|
|
4941
|
-
} = t, a =
|
|
4934
|
+
} = t, a = E(n.layout.store, Du), c = vt(n, "side");
|
|
4942
4935
|
let m;
|
|
4943
4936
|
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];
|
|
4944
4937
|
const f = m;
|
|
@@ -4946,8 +4939,8 @@ const Ou = 420, zu = 320, Bu = (t) => {
|
|
|
4946
4939
|
e[3] !== c?.collapsible || e[4] !== n.layout ? (h = c?.collapsible ?? n.layout.getRegionCollapsible("side"), e[3] = c?.collapsible, e[4] = n.layout, e[5] = h) : h = e[5];
|
|
4947
4940
|
const p = h;
|
|
4948
4941
|
let g;
|
|
4949
|
-
e[6] !== s || e[7] !== l || e[8] !== n ? (g = /* @__PURE__ */ u(
|
|
4950
|
-
const w = !i, y = a ?? f?.defaultPx ??
|
|
4942
|
+
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 ?? Nu, b = f?.minPx ?? Ou, v = f?.maxPx;
|
|
4951
4944
|
let S;
|
|
4952
4945
|
e[10] !== n.layout ? (S = (x) => n.layout.setRegionSize("side", x), e[10] = n.layout, e[11] = S) : S = e[11];
|
|
4953
4946
|
let I;
|
|
@@ -4957,24 +4950,24 @@ const Ou = 420, zu = 320, Bu = (t) => {
|
|
|
4957
4950
|
let P;
|
|
4958
4951
|
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] !== I ? (P = /* @__PURE__ */ u(ht, { 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", showResizeSeparator: !0, onCollapsedChange: I }), 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] = I, e[25] = P) : P = e[25], P;
|
|
4959
4952
|
};
|
|
4960
|
-
function
|
|
4953
|
+
function Du(t) {
|
|
4961
4954
|
return t.layout.regions.side.size;
|
|
4962
4955
|
}
|
|
4963
|
-
const
|
|
4956
|
+
const Vu = ["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(","), Lu = (t) => typeof t?.closest == "function", Fu = (t, e) => t === e ? !0 : Lu(t) ? !t.closest(Vu) : !1, jo = (t) => {
|
|
4964
4957
|
t?.focus({
|
|
4965
4958
|
preventScroll: !0
|
|
4966
4959
|
});
|
|
4967
|
-
},
|
|
4960
|
+
}, Ku = (t) => {
|
|
4968
4961
|
const e = k(4), {
|
|
4969
4962
|
children: n
|
|
4970
4963
|
} = t, i = pe(null);
|
|
4971
4964
|
let o, r;
|
|
4972
4965
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = () => {
|
|
4973
|
-
|
|
4974
|
-
}, r = [], e[0] = o, e[1] = r) : (o = e[0], r = e[1]),
|
|
4966
|
+
jo(i.current);
|
|
4967
|
+
}, r = [], e[0] = o, e[1] = r) : (o = e[0], r = e[1]), Xn(o, r);
|
|
4975
4968
|
let s;
|
|
4976
|
-
return e[2] !== n ? (s = /* @__PURE__ */ u(he, { ref: i, h: "full", minH: "0", minW: "0", w: "full", tabIndex: -1, outline: "none", onPointerDown:
|
|
4977
|
-
},
|
|
4969
|
+
return e[2] !== n ? (s = /* @__PURE__ */ u(he, { ref: i, h: "full", minH: "0", minW: "0", w: "full", tabIndex: -1, outline: "none", onPointerDown: ju, children: n }), e[2] = n, e[3] = s) : s = e[3], s;
|
|
4970
|
+
}, qu = (t) => {
|
|
4978
4971
|
const e = k(10), {
|
|
4979
4972
|
workbench: n,
|
|
4980
4973
|
showAttachedSidePanel: i,
|
|
@@ -4986,26 +4979,26 @@ const Lu = ["a[href]", "button", "input", "select", "textarea", "[contenteditabl
|
|
|
4986
4979
|
let d;
|
|
4987
4980
|
e[0] !== n.sidePanel ? (d = () => n.sidePanel.setMode("closed"), e[0] = n.sidePanel, e[1] = d) : d = e[1];
|
|
4988
4981
|
let a;
|
|
4989
|
-
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(
|
|
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(Ku, { children: /* @__PURE__ */ u(Hu, { 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;
|
|
4990
4983
|
};
|
|
4991
|
-
function
|
|
4992
|
-
|
|
4984
|
+
function ju(t) {
|
|
4985
|
+
Fu(t.target, t.currentTarget) && jo(t.currentTarget);
|
|
4993
4986
|
}
|
|
4994
|
-
const
|
|
4987
|
+
const Gu = 250, Uu = 200, Kn = 320, Zu = (t, e) => {
|
|
4995
4988
|
const n = t.layout.getRegionSize("sidenav");
|
|
4996
4989
|
return {
|
|
4997
|
-
defaultPx: e ?? n?.defaultPx ??
|
|
4998
|
-
minPx: n?.minPx ??
|
|
4990
|
+
defaultPx: e ?? n?.defaultPx ?? Gu,
|
|
4991
|
+
minPx: n?.minPx ?? Uu,
|
|
4999
4992
|
maxPx: n?.maxPx
|
|
5000
4993
|
};
|
|
5001
|
-
},
|
|
4994
|
+
}, Qu = () => {
|
|
5002
4995
|
if (typeof document > "u") return null;
|
|
5003
4996
|
const t = document.createElement("div");
|
|
5004
4997
|
return t.style.display = "contents", t.dataset.workbenchSidePanelHost = "", t;
|
|
5005
|
-
},
|
|
5006
|
-
const e = k(17), n = yt(t, "status"), i =
|
|
5007
|
-
|
|
5008
|
-
const o =
|
|
4998
|
+
}, Xu = (t) => t.mounted ? t.mode === "floating" ? t.floatingSlot : t.attachedSlot : null, Yu = (t) => {
|
|
4999
|
+
const e = k(17), n = yt(t, "status"), i = E(t.statusBar.store, tm);
|
|
5000
|
+
E(t.context.store, nm);
|
|
5001
|
+
const o = E(t.modes.store, om), r = Re(t, "nav"), s = Re(t, "activity"), l = Re(t, "sidenav"), d = Re(t, "secondary-header");
|
|
5009
5002
|
let a;
|
|
5010
5003
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
5011
5004
|
locationScoped: !0
|
|
@@ -5029,7 +5022,7 @@ const Uu = 250, Zu = 200, Fn = 320, Qu = (t, e) => {
|
|
|
5029
5022
|
hasSideWidgets: h,
|
|
5030
5023
|
hasStatusWidgets: p
|
|
5031
5024
|
}, 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;
|
|
5032
|
-
},
|
|
5025
|
+
}, Ju = (t) => {
|
|
5033
5026
|
const e = [];
|
|
5034
5027
|
if (t.showSidenav && !t.sidenavOpen && e.push({
|
|
5035
5028
|
id: "sidenav",
|
|
@@ -5054,95 +5047,97 @@ const Uu = 250, Zu = 200, Fn = 320, Qu = (t, e) => {
|
|
|
5054
5047
|
});
|
|
5055
5048
|
}
|
|
5056
5049
|
return e;
|
|
5057
|
-
},
|
|
5050
|
+
}, em = (t) => {
|
|
5058
5051
|
const {
|
|
5059
5052
|
workbench: e,
|
|
5060
5053
|
renderParamField: n,
|
|
5061
5054
|
sidePanelBubbleIcon: i,
|
|
5062
|
-
onOpenSidePanel: o
|
|
5063
|
-
|
|
5064
|
-
|
|
5055
|
+
onOpenSidePanel: o,
|
|
5056
|
+
titleBar: r
|
|
5057
|
+
} = t, [s, l] = Q([]);
|
|
5058
|
+
gu(e, {
|
|
5065
5059
|
renderParamField: n,
|
|
5066
|
-
onSidenavContextActionsChange:
|
|
5067
|
-
}),
|
|
5068
|
-
const [
|
|
5069
|
-
|
|
5070
|
-
const
|
|
5071
|
-
hasActivityBarWidgets:
|
|
5072
|
-
hasNavWidgets:
|
|
5073
|
-
hasSideHeaderWidgets:
|
|
5074
|
-
hasSideWidgets:
|
|
5075
|
-
hasSidenavWidgets:
|
|
5076
|
-
hasSecondaryHeaderWidgets:
|
|
5077
|
-
hasSecondaryWidgets:
|
|
5078
|
-
hasStatusWidgets:
|
|
5079
|
-
} =
|
|
5080
|
-
showSidenav:
|
|
5081
|
-
sidenavOpen:
|
|
5082
|
-
showSecondaryPanel:
|
|
5083
|
-
secondaryPanelOpen:
|
|
5084
|
-
hasSidePanel:
|
|
5085
|
-
sidePanelMode:
|
|
5086
|
-
setPanelOpen:
|
|
5087
|
-
}), se =
|
|
5088
|
-
mounted:
|
|
5089
|
-
mode:
|
|
5090
|
-
attachedSlot:
|
|
5091
|
-
floatingSlot:
|
|
5060
|
+
onSidenavContextActionsChange: l
|
|
5061
|
+
}), fu(e), Ud(e), Xd(e), Gd(e);
|
|
5062
|
+
const [d, a] = Q(null), [c, m] = Q(null), f = pe(null);
|
|
5063
|
+
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 = dt(e, "secondary"), v = dt(e, "side"), S = E(e.modes.store, () => e.sidePanel.canFloat()), {
|
|
5065
|
+
hasActivityBarWidgets: I,
|
|
5066
|
+
hasNavWidgets: P,
|
|
5067
|
+
hasSideHeaderWidgets: x,
|
|
5068
|
+
hasSideWidgets: C,
|
|
5069
|
+
hasSidenavWidgets: R,
|
|
5070
|
+
hasSecondaryHeaderWidgets: W,
|
|
5071
|
+
hasSecondaryWidgets: T,
|
|
5072
|
+
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 = Zu(e, z), O = N && h === "attached", D = N, q = e.shell.setRegionOpen, re = Ju({
|
|
5074
|
+
showSidenav: A,
|
|
5075
|
+
sidenavOpen: w,
|
|
5076
|
+
showSecondaryPanel: B,
|
|
5077
|
+
secondaryPanelOpen: y,
|
|
5078
|
+
hasSidePanel: N,
|
|
5079
|
+
sidePanelMode: h,
|
|
5080
|
+
setPanelOpen: q
|
|
5081
|
+
}), se = x || v ? /* @__PURE__ */ u(Bu, { workbench: e, hasSideHeader: x }) : void 0, U = Xu({
|
|
5082
|
+
mounted: D,
|
|
5083
|
+
mode: h,
|
|
5084
|
+
attachedSlot: d,
|
|
5085
|
+
floatingSlot: c
|
|
5092
5086
|
});
|
|
5093
|
-
|
|
5094
|
-
const V =
|
|
5095
|
-
V && (
|
|
5096
|
-
}, [
|
|
5097
|
-
const
|
|
5098
|
-
/* @__PURE__ */ u(
|
|
5099
|
-
/* @__PURE__ */ u(he, { flex: "1", minH: "0", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(
|
|
5100
|
-
] }),
|
|
5101
|
-
(!V ||
|
|
5102
|
-
} }) :
|
|
5103
|
-
|
|
5104
|
-
/* @__PURE__ */ u(he, { flex: "1", minH: "0", minW: "0", overflow: "hidden", position: "relative", children:
|
|
5105
|
-
/* @__PURE__ */ u(
|
|
5087
|
+
Xn(() => {
|
|
5088
|
+
const V = f.current;
|
|
5089
|
+
V && (U ? V.parentNode !== U && U.appendChild(V) : !D && V.parentNode && V.parentNode.removeChild(V));
|
|
5090
|
+
}, [U, D]);
|
|
5091
|
+
const j = /* @__PURE__ */ H(he, { direction: "column", h: "full", minH: "0", minW: "0", w: "full", children: [
|
|
5092
|
+
/* @__PURE__ */ u(Hd, { workbench: e, hasNav: P, regionControls: re }),
|
|
5093
|
+
/* @__PURE__ */ u(he, { flex: "1", minH: "0", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(Tu, { workbench: e }) })
|
|
5094
|
+
] }), ae = A ? /* @__PURE__ */ u(ht, { flex: "1", minH: "0", minW: "0", resizablePanel: /* @__PURE__ */ u(Au, { workbench: e, contextActions: s }), contentPanel: j, collapsed: !w, collapsible: $, defaultSizePx: M.defaultPx, minSizePx: M.minPx, maxSizePx: M.maxPx, contentMinSizePx: Kn, resizeLabel: "Resize sidenav", showResizeSeparator: !0, onSizeChange: (V) => e.layout.setRegionSize("sidenav", V), onCollapsedChange: (V) => {
|
|
5095
|
+
(!V || $) && q("sidenav", !V);
|
|
5096
|
+
} }) : j, le = /* @__PURE__ */ H(he, { position: "relative", h: "full", minH: "0", minW: "0", w: "full", bg: Z.main, color: "fg", children: [
|
|
5097
|
+
I ? /* @__PURE__ */ u(Mu, { workbench: e }) : null,
|
|
5098
|
+
/* @__PURE__ */ u(he, { flex: "1", minH: "0", minW: "0", overflow: "hidden", position: "relative", children: ae }),
|
|
5099
|
+
/* @__PURE__ */ u(_d, { workbench: e })
|
|
5106
5100
|
] });
|
|
5107
|
-
return /* @__PURE__ */ H(
|
|
5101
|
+
return /* @__PURE__ */ H(Id, { h: "full", minH: "0", minW: "0", w: "full", children: [
|
|
5108
5102
|
/* @__PURE__ */ H(he, { direction: "column", h: "full", minH: "0", minW: "0", position: "relative", w: "full", children: [
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
_
|
|
5112
|
-
/* @__PURE__ */ u(
|
|
5113
|
-
/* @__PURE__ */ u(
|
|
5114
|
-
/* @__PURE__ */ u(
|
|
5103
|
+
r,
|
|
5104
|
+
/* @__PURE__ */ u(he, { flex: "1", minH: "0", minW: "0", overflow: "hidden", children: /* @__PURE__ */ u(qu, { workbench: e, showAttachedSidePanel: O, contentFrame: le, sideHeader: se, contentMinSizePx: Kn, onAttachedSlotChange: a }) }),
|
|
5105
|
+
_ ? /* @__PURE__ */ u($u, { workbench: e }) : null,
|
|
5106
|
+
N && S ? /* @__PURE__ */ u(cd, { workbench: e, bubbleIcon: i, onOpen: o, contentSlotRef: m, bottomOffset: _ ? qo : void 0, header: se }) : null,
|
|
5107
|
+
/* @__PURE__ */ u(ps, { workbench: e, open: p, initialQuery: g, renderParamField: n, onClose: () => e.commandPalette.close() }),
|
|
5108
|
+
/* @__PURE__ */ u(Bs, { workbench: e }),
|
|
5109
|
+
/* @__PURE__ */ u(tl, { workbench: e })
|
|
5115
5110
|
] }),
|
|
5116
|
-
/* @__PURE__ */ u(
|
|
5111
|
+
/* @__PURE__ */ u(zu, { workbench: e, hasSidePanel: N, mounted: D, sidePanelHost: f.current })
|
|
5117
5112
|
] });
|
|
5118
|
-
},
|
|
5119
|
-
const e = k(9), n =
|
|
5113
|
+
}, _m = (t) => {
|
|
5114
|
+
const e = k(9), n = Sd(t.workbench), i = E(t.workbench.modes.store, im), o = bu(t.workbench), r = i?.defaultTheme, s = i?.defaultTheme ? i.id : void 0;
|
|
5120
5115
|
let l;
|
|
5121
|
-
e[0] !== t ? (l = /* @__PURE__ */ u(
|
|
5116
|
+
e[0] !== t ? (l = /* @__PURE__ */ u(em, { ...t }), e[0] = t, e[1] = l) : l = e[1];
|
|
5122
5117
|
let d;
|
|
5123
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ u(
|
|
5118
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ u(Pi, {}), e[2] = d) : d = e[2];
|
|
5124
5119
|
let a;
|
|
5125
|
-
return e[3] !== o || e[4] !== r || e[5] !== s || e[6] !== l || e[7] !== n ? (a = /* @__PURE__ */ H(
|
|
5120
|
+
return e[3] !== o || e[4] !== r || e[5] !== s || e[6] !== l || e[7] !== n ? (a = /* @__PURE__ */ H(Pd, { themePreferences: n, fileIconThemePreferences: o, defaultThemePreference: r, preferenceScope: s, children: [
|
|
5126
5121
|
l,
|
|
5127
5122
|
d
|
|
5128
5123
|
] }), e[3] = o, e[4] = r, e[5] = s, e[6] = l, e[7] = n, e[8] = a) : a = e[8], a;
|
|
5129
5124
|
};
|
|
5130
|
-
function
|
|
5125
|
+
function tm(t) {
|
|
5131
5126
|
return t.items;
|
|
5132
5127
|
}
|
|
5133
|
-
function
|
|
5128
|
+
function nm(t) {
|
|
5134
5129
|
return t.values;
|
|
5135
5130
|
}
|
|
5136
|
-
function
|
|
5131
|
+
function om(t) {
|
|
5137
5132
|
return t.activeModeId;
|
|
5138
5133
|
}
|
|
5139
|
-
function
|
|
5134
|
+
function im(t) {
|
|
5140
5135
|
return t.activeModeId ? t.modes[t.activeModeId] : void 0;
|
|
5141
5136
|
}
|
|
5142
|
-
const
|
|
5137
|
+
const qn = (t) => {
|
|
5143
5138
|
for (const e of t.values()) e.disposable.dispose();
|
|
5144
5139
|
t.clear();
|
|
5145
|
-
},
|
|
5140
|
+
}, rm = (t, e, n) => {
|
|
5146
5141
|
const i = new Set(n.map((o) => o.id));
|
|
5147
5142
|
for (const [o, r] of e)
|
|
5148
5143
|
i.has(o) || (r.disposable.dispose(), e.delete(o));
|
|
@@ -5150,7 +5145,7 @@ const Kn = (t) => {
|
|
|
5150
5145
|
e.has(o.id) || e.set(o.id, {
|
|
5151
5146
|
disposable: t.registerModule(o)
|
|
5152
5147
|
});
|
|
5153
|
-
},
|
|
5148
|
+
}, Am = (t) => {
|
|
5154
5149
|
const e = k(7), {
|
|
5155
5150
|
workbench: n,
|
|
5156
5151
|
modules: i
|
|
@@ -5160,60 +5155,60 @@ const Kn = (t) => {
|
|
|
5160
5155
|
const s = pe(r);
|
|
5161
5156
|
let l, d;
|
|
5162
5157
|
e[1] !== i || e[2] !== n ? (l = () => {
|
|
5163
|
-
o.current !== n && (
|
|
5158
|
+
o.current !== n && (qn(s.current), o.current = n), rm(n, s.current, i);
|
|
5164
5159
|
}, d = [i, n], e[1] = i, e[2] = n, e[3] = l, e[4] = d) : (l = e[3], d = e[4]), ue(l, d);
|
|
5165
5160
|
let a, c;
|
|
5166
|
-
return e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = () => () =>
|
|
5161
|
+
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;
|
|
5167
5162
|
};
|
|
5168
5163
|
export {
|
|
5169
5164
|
Pt as WORKBENCH_SETTINGS_NAV_WIDGET_ID,
|
|
5170
5165
|
gn as WORKBENCH_SETTINGS_OPEN_COMMAND_ID,
|
|
5171
|
-
|
|
5172
|
-
|
|
5166
|
+
jc as WORKBENCH_SETTINGS_PANEL_WIDGET_ID,
|
|
5167
|
+
qc as WORKBENCH_SETTINGS_WIDGET_ID,
|
|
5173
5168
|
En as WORKBENCH_TERMINAL_OPEN_COMMAND_ID,
|
|
5174
|
-
|
|
5169
|
+
Wm as WORKBENCH_TERMINAL_PANEL_SIZE,
|
|
5175
5170
|
Ee as WORKBENCH_TERMINAL_WIDGET_ID,
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5171
|
+
_m as Workbench,
|
|
5172
|
+
ad as WorkbenchAttachedSidePanel,
|
|
5173
|
+
pr as WorkbenchBreadcrumbView,
|
|
5174
|
+
ps as WorkbenchCommandPalette,
|
|
5175
|
+
na as WorkbenchDataTableView,
|
|
5176
|
+
cd as WorkbenchFloatingSidePanel,
|
|
5182
5177
|
ot as WorkbenchFocusRegion,
|
|
5183
5178
|
Jt as WorkbenchHeaderActions,
|
|
5184
5179
|
L as WorkbenchIcon,
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5180
|
+
Bs as WorkbenchKeybindingDispatcher,
|
|
5181
|
+
Am as WorkbenchModuleHost,
|
|
5182
|
+
tl as WorkbenchNotificationHost,
|
|
5183
|
+
_d as WorkbenchOverlayLayer,
|
|
5184
|
+
Ia as WorkbenchPreferencesForm,
|
|
5190
5185
|
Ie as WorkbenchRegion,
|
|
5191
5186
|
pn as WorkbenchRegionTabs,
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5187
|
+
fd as WorkbenchTerminalPanel,
|
|
5188
|
+
Pd as WorkbenchThemeProvider,
|
|
5189
|
+
Id as WorkbenchThemeScope,
|
|
5195
5190
|
Wo as WorkbenchTreeView,
|
|
5196
5191
|
$t as WorkbenchWidgetHost,
|
|
5197
|
-
|
|
5198
|
-
|
|
5192
|
+
Em as WorkflowStatusSettings,
|
|
5193
|
+
Kr as commandParamName,
|
|
5199
5194
|
Xe as createCommandFilesParamValue,
|
|
5200
|
-
|
|
5195
|
+
md as createControllerTerminalBridge,
|
|
5201
5196
|
fo as createTreeContextMenuItems,
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5197
|
+
zs as createWorkbenchHotkeyRegistrations,
|
|
5198
|
+
Qs as createWorkbenchResourceActions,
|
|
5199
|
+
Rm as createWorkbenchSettingsModule,
|
|
5200
|
+
Tm as createWorkbenchTerminalModule,
|
|
5201
|
+
qn as disposeWorkbenchModuleHostRegistrations,
|
|
5207
5202
|
Ve as isCommandFilesParamValue,
|
|
5208
|
-
|
|
5203
|
+
km as listWorkbenchMenuItems,
|
|
5209
5204
|
Rn as normalizeWorkbenchKeybinding,
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5205
|
+
vd as openWorkbenchTerminal,
|
|
5206
|
+
wa as paramValueToPreference,
|
|
5207
|
+
Sa as preferenceSchemaToParams,
|
|
5208
|
+
Gr as readCommandParamValue,
|
|
5209
|
+
rm as syncWorkbenchModuleHostRegistrations,
|
|
5215
5210
|
mn as useWorkbenchResourceActionResolver,
|
|
5216
|
-
|
|
5217
|
-
|
|
5211
|
+
E as useWorkbenchStore,
|
|
5212
|
+
Sd as useWorkbenchThemePreferences
|
|
5218
5213
|
};
|
|
5219
5214
|
//# sourceMappingURL=react.js.map
|