@omniviewdev/runtime 0.18.0 → 0.19.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/api.cjs +1 -1
- package/dist/api.js +2 -2
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +6 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models.d.ts +5 -0
- package/dist/context/drawer/types.d.ts +13 -1
- package/dist/exec.d.ts +3 -1
- package/dist/hooks/exec/index.d.ts +1 -0
- package/dist/hooks/exec/useNativeExec.d.ts +15 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +1245 -1169
- package/dist/{models-ddVn9pLv.js → models-BlRe-e25.js} +1 -1
- package/dist/{models-B8VGD21U.cjs → models-C-3HYV9E.cjs} +1 -1
- package/dist/models-D5pkScnE.cjs +1 -0
- package/dist/{models-BlxGoC2X.js → models-DNQykdGx.js} +6 -1
- package/dist/models.cjs +1 -1
- package/dist/models.js +3 -3
- package/dist/service-CD-hmd9l.cjs +1 -0
- package/dist/service-CiUZ0mis.js +750 -0
- package/package.json +1 -1
- package/dist/models-BJZVpONm.cjs +0 -1
- package/dist/service-DKddH-QF.cjs +0 -1
- package/dist/service-lcq0B7wi.js +0 -739
package/dist/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as P, jsxs as te, Fragment as
|
|
1
|
+
import { jsx as P, jsxs as te, Fragment as It } from "react/jsx-runtime";
|
|
2
2
|
import { c as q } from "react/compiler-runtime";
|
|
3
|
-
import L, { useEffect as
|
|
4
|
-
import { W as
|
|
5
|
-
import { S as
|
|
6
|
-
import { useQueryClient as
|
|
7
|
-
import { G as
|
|
3
|
+
import L, { useEffect as he, useContext as $e, createContext as Ze, useSyncExternalStore as Me, useCallback as we, useState as ge, useRef as ne, createElement as In, useId as Cn, useLayoutEffect as ft, Component as _n } from "react";
|
|
4
|
+
import { W as K, s as Dn } from "./graph-JDqyJC_i.js";
|
|
5
|
+
import { S as Ci } from "./graph-JDqyJC_i.js";
|
|
6
|
+
import { useQueryClient as ie, useQuery as j, useMutation as X, keepPreviousData as Jt, CancelledError as je, skipToken as ce, useIsMutating as Rn, useQueries as Nn, hashKey as pt } from "@tanstack/react-query";
|
|
7
|
+
import { G as kn, C as On, V as Tn, O as An, h as Pn, i as xn, S as Ln, j as Fn, k as qn, I as $n, R as Mn, o as Un, p as Wn, q as Ht, r as Qn, L as Kn, t as jn, u as Gn, v as Ct, w as Vt, x as zn, y as Bn, z as Jn, A as Hn, B as Vn, D as Yn, E as Zn, F as Xn, H as er, J as tr, K as nr, M as rr, N as sr, P as or, Q as ir, T as cr, U as ar, W as Lt, X as lr, Y as Yt, Z as ur, _ as dr, $ as Zt, a0 as fr, a1 as pr, a2 as gr, a3 as hr, a4 as Ft, a5 as Xt, a6 as yr, a7 as mr, a8 as vr, a9 as br, aa as wr, ab as Er, ac as Sr, ad as qt, ae as Ir, af as Cr, ag as _r, ah as Dr, ai as Rr } from "./service-CiUZ0mis.js";
|
|
8
8
|
import "./index-zyAgCXOO.js";
|
|
9
9
|
import { O as W, a as en } from "./events-uBheGmqm.js";
|
|
10
|
-
import { Link as
|
|
11
|
-
import { useToast as
|
|
12
|
-
import { P as
|
|
13
|
-
import { RouterProvider as
|
|
10
|
+
import { Link as Nr, useNavigate as kr, useLocation as Or, createMemoryRouter as Tr } from "react-router";
|
|
11
|
+
import { useToast as Ar, Card as Pr, Toolbar as $t, Text as _e, IconButton as Be, EmptyState as xr, Button as Oe, Code as Lr, Spinner as Fr } from "@omniviewdev/base-ui";
|
|
12
|
+
import { P as qr, S as tn, F as $r } from "./models-DNQykdGx.js";
|
|
13
|
+
import { RouterProvider as Mr } from "react-router/dom";
|
|
14
14
|
const _t = L.createContext(void 0), gt = {
|
|
15
15
|
kind: "host"
|
|
16
|
-
},
|
|
17
|
-
async function
|
|
16
|
+
}, Ur = (t) => ["settings", t.kind, t.kind === "plugin" ? t.pluginId : ""], Wr = {};
|
|
17
|
+
async function nn(t, e) {
|
|
18
18
|
await t.cancelQueries(e), await t.invalidateQueries(e);
|
|
19
19
|
}
|
|
20
20
|
const nt = /* @__PURE__ */ new WeakMap();
|
|
21
|
-
function
|
|
21
|
+
function Qr(t) {
|
|
22
22
|
let e = nt.get(t);
|
|
23
23
|
if (!e) {
|
|
24
24
|
const r = (s) => {
|
|
25
25
|
const i = s ? ["settings", s.kind, s.kind === "plugin" ? s.pluginId : ""] : ["settings", "plugin"];
|
|
26
|
-
|
|
26
|
+
nn(t, {
|
|
27
27
|
queryKey: i
|
|
28
28
|
});
|
|
29
29
|
}, n = [W("settings/changed", (s) => {
|
|
@@ -46,48 +46,48 @@ function $r(t) {
|
|
|
46
46
|
--e.users === 0 && (e.stop(), nt.delete(t));
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Kr(t, e, r) {
|
|
50
50
|
return t.kind === "host" ? `${e}.${r}` : r;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
const e = q(25), r =
|
|
52
|
+
function rn(t) {
|
|
53
|
+
const e = q(25), r = ie(), n = t.kind, s = t.pluginId;
|
|
54
54
|
let i, o;
|
|
55
|
-
e[0] !== r ? (i = () =>
|
|
55
|
+
e[0] !== r ? (i = () => Qr(r), o = [r], e[0] = r, e[1] = i, e[2] = o) : (i = e[1], o = e[2]), he(i, o);
|
|
56
56
|
let c;
|
|
57
|
-
e[3] !== t ? (c =
|
|
58
|
-
let
|
|
59
|
-
e[5] !== t ? (
|
|
57
|
+
e[3] !== t ? (c = Ur(t), e[3] = t, e[4] = c) : c = e[4];
|
|
58
|
+
let l;
|
|
59
|
+
e[5] !== t ? (l = async (y) => {
|
|
60
60
|
const {
|
|
61
61
|
signal: b
|
|
62
|
-
} = y, w = await
|
|
62
|
+
} = y, w = await kn(t);
|
|
63
63
|
return b.throwIfAborted(), w;
|
|
64
|
-
}, e[5] = t, e[6] =
|
|
64
|
+
}, e[5] = t, e[6] = l) : l = e[6];
|
|
65
65
|
let a;
|
|
66
|
-
e[7] !== c || e[8] !==
|
|
66
|
+
e[7] !== c || e[8] !== l ? (a = {
|
|
67
67
|
queryKey: c,
|
|
68
|
-
queryFn:
|
|
68
|
+
queryFn: l,
|
|
69
69
|
staleTime: 1 / 0,
|
|
70
70
|
retry: !1
|
|
71
|
-
}, e[7] = c, e[8] =
|
|
72
|
-
const d =
|
|
73
|
-
let
|
|
74
|
-
e[10] !== r || e[11] !== n || e[12] !== s || e[13] !== t ? (
|
|
71
|
+
}, e[7] = c, e[8] = l, e[9] = a) : a = e[9];
|
|
72
|
+
const d = j(a);
|
|
73
|
+
let u;
|
|
74
|
+
e[10] !== r || e[11] !== n || e[12] !== s || e[13] !== t ? (u = {
|
|
75
75
|
mutationFn: async (y) => {
|
|
76
|
-
const b = await
|
|
77
|
-
return await
|
|
76
|
+
const b = await On(t, y);
|
|
77
|
+
return await nn(r, {
|
|
78
78
|
queryKey: ["settings", n, s ?? ""]
|
|
79
79
|
}), b;
|
|
80
80
|
}
|
|
81
|
-
}, e[10] = r, e[11] = n, e[12] = s, e[13] = t, e[14] =
|
|
81
|
+
}, e[10] = r, e[11] = n, e[12] = s, e[13] = t, e[14] = u) : u = e[14];
|
|
82
82
|
const {
|
|
83
83
|
mutateAsync: f
|
|
84
|
-
} =
|
|
84
|
+
} = X(u);
|
|
85
85
|
let p;
|
|
86
|
-
e[15] !== n || e[16] !== s ? (p = (y, b) =>
|
|
86
|
+
e[15] !== n || e[16] !== s ? (p = (y, b) => Tn(n === "host" ? gt : {
|
|
87
87
|
kind: n,
|
|
88
88
|
pluginId: s
|
|
89
89
|
}, y, b), e[15] = n, e[16] = s, e[17] = p) : p = e[17];
|
|
90
|
-
const v = p, h = d.data?.categories ??
|
|
90
|
+
const v = p, h = d.data?.categories ?? Wr, g = d.error ?? void 0;
|
|
91
91
|
let m;
|
|
92
92
|
return e[18] !== f || e[19] !== d.data || e[20] !== d.isPending || e[21] !== h || e[22] !== g || e[23] !== v ? (m = {
|
|
93
93
|
snapshot: d.data,
|
|
@@ -134,24 +134,24 @@ const Z = {
|
|
|
134
134
|
VALIDATION: "omniview:validation",
|
|
135
135
|
NOT_IMPLEMENTED: "omniview:not-implemented"
|
|
136
136
|
};
|
|
137
|
-
function
|
|
137
|
+
function sn(t) {
|
|
138
138
|
const e = t.startsWith("#") ? t.slice(1) : t;
|
|
139
139
|
return /^\/settings\/?(?:[?#]|$)/.test(e) ? e : null;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
const e = t === "" ? "" :
|
|
143
|
-
return e === null ? Promise.reject(new Error("Settings requires a local settings route.")) :
|
|
141
|
+
function jr(t = "") {
|
|
142
|
+
const e = t === "" ? "" : sn(t);
|
|
143
|
+
return e === null ? Promise.reject(new Error("Settings requires a local settings route.")) : An(e === "/settings" || e === "/settings/" ? "" : e);
|
|
144
144
|
}
|
|
145
145
|
let Ge = null;
|
|
146
|
-
function
|
|
146
|
+
function yo(t) {
|
|
147
147
|
return Ge = t, () => {
|
|
148
148
|
Ge === t && (Ge = null);
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
const e =
|
|
151
|
+
function Gr(t) {
|
|
152
|
+
const e = sn(t);
|
|
153
153
|
if (e !== null) {
|
|
154
|
-
|
|
154
|
+
jr(e).catch((r) => {
|
|
155
155
|
console.error("[settings] opening the settings window failed", r);
|
|
156
156
|
});
|
|
157
157
|
return;
|
|
@@ -183,7 +183,7 @@ const Mt = {
|
|
|
183
183
|
function rt(t) {
|
|
184
184
|
return typeof t == "object" && t !== null ? t : void 0;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function pe(t, e) {
|
|
187
187
|
return typeof t == "string" && t.length > 0 && t.length <= e;
|
|
188
188
|
}
|
|
189
189
|
function st() {
|
|
@@ -211,16 +211,16 @@ function He(t, e) {
|
|
|
211
211
|
const r = rt(t);
|
|
212
212
|
if (r) {
|
|
213
213
|
if (r.name === "AbortError" || r.name === "CancelError") return st();
|
|
214
|
-
if (
|
|
214
|
+
if (pe(r.type, 256) && pe(r.title, 256) && typeof r.status == "number" && Number.isInteger(r.status) && r.status >= 100 && r.status <= 599 && typeof r.detail == "string" && r.detail.length <= 4096) {
|
|
215
215
|
const n = {
|
|
216
216
|
type: r.type,
|
|
217
217
|
title: r.title,
|
|
218
218
|
status: r.status,
|
|
219
219
|
detail: r.detail
|
|
220
220
|
};
|
|
221
|
-
|
|
221
|
+
pe(r.code, 64) && (n.code = r.code), pe(r.requestId, 256) && (n.requestId = r.requestId), pe(r.instance, 512) && (n.instance = r.instance), Array.isArray(r.suggestions) && (n.suggestions = r.suggestions.filter((i) => pe(i, 512)).slice(0, 8)), Array.isArray(r.actions) && (n.actions = r.actions.filter((i) => {
|
|
222
222
|
const o = rt(i);
|
|
223
|
-
return !!o && ["navigate", "retry", "open-url", "copy"].includes(String(o.type)) &&
|
|
223
|
+
return !!o && ["navigate", "retry", "open-url", "copy"].includes(String(o.type)) && pe(o.label, 256) && (o.target === void 0 || pe(o.target, 4096));
|
|
224
224
|
}).slice(0, 8)), ["correctRequest", "refreshContract", "restartQuery", "reconnect", "none"].includes(String(r.recovery)) && (n.recovery = r.recovery);
|
|
225
225
|
const s = rt(r.location);
|
|
226
226
|
return s?.unit === "utf8-byte" && typeof s.start == "number" && typeof s.end == "number" && Number.isSafeInteger(s.start) && Number.isSafeInteger(s.end) && s.start >= 0 && s.end >= s.start && (n.location = {
|
|
@@ -238,17 +238,17 @@ function He(t, e) {
|
|
|
238
238
|
status: i,
|
|
239
239
|
code: n,
|
|
240
240
|
recovery: o,
|
|
241
|
-
title: c ? n === "FORBIDDEN" ? "Access denied" : n === "UNAUTHORIZED" ? "Authentication required" : "Operation failed" :
|
|
242
|
-
detail: c ? "The operation could not be completed." :
|
|
241
|
+
title: c ? n === "FORBIDDEN" ? "Access denied" : n === "UNAUTHORIZED" ? "Authentication required" : "Operation failed" : pe(r.title, 256) ? r.title : "Operation failed",
|
|
242
|
+
detail: c ? "The operation could not be completed." : pe(r.message, 4096) ? r.message : "The operation could not be completed.",
|
|
243
243
|
...!c && Array.isArray(r.suggestions) ? {
|
|
244
|
-
suggestions: r.suggestions.filter((
|
|
244
|
+
suggestions: r.suggestions.filter((l) => pe(l, 512)).slice(0, 8)
|
|
245
245
|
} : {}
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
248
|
return He(r.message, e + 1) ?? He(r.cause, e + 1);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function ye(t) {
|
|
252
252
|
return He(t, 0) ?? {
|
|
253
253
|
type: Z.INTERNAL,
|
|
254
254
|
title: t == null ? "Unknown error" : "Error",
|
|
@@ -257,16 +257,16 @@ function he(t) {
|
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
259
|
function Ve(t) {
|
|
260
|
-
return
|
|
260
|
+
return ye(t).type === Z.CANCELLED;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function zr(t) {
|
|
263
263
|
switch (t.type) {
|
|
264
264
|
case "navigate":
|
|
265
265
|
return {
|
|
266
266
|
label: t.label,
|
|
267
267
|
// Settings targets activate their dedicated window; other routes use the active page.
|
|
268
268
|
onClick: () => {
|
|
269
|
-
|
|
269
|
+
Gr((t.target ?? "/").replace(/^#/, ""));
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
case "open-url":
|
|
@@ -297,34 +297,34 @@ function Qr(t) {
|
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function on(t, e) {
|
|
301
301
|
const r = [t.detail, ...t.suggestions?.map((s) => `• ${s}`) ?? []].join(`
|
|
302
302
|
`);
|
|
303
303
|
return {
|
|
304
304
|
message: e || (t.title !== "Error" ? t.title : "Operation failed"),
|
|
305
305
|
status: "error",
|
|
306
306
|
details: r,
|
|
307
|
-
actions: t.actions?.map(
|
|
307
|
+
actions: t.actions?.map(zr)
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Ae(t, e, r) {
|
|
311
311
|
if (Ve(e)) return;
|
|
312
|
-
const n =
|
|
313
|
-
t(
|
|
312
|
+
const n = ye(e);
|
|
313
|
+
t(on(n, r));
|
|
314
314
|
}
|
|
315
315
|
function se(t, e) {
|
|
316
316
|
return (r) => {
|
|
317
317
|
if (Ve(r)) return;
|
|
318
|
-
const n =
|
|
319
|
-
t(
|
|
318
|
+
const n = ye(r);
|
|
319
|
+
t(on(n, n.title !== "Error" ? n.title : e));
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function mo(t) {
|
|
323
323
|
const e = q(2);
|
|
324
324
|
let r;
|
|
325
|
-
return e[0] !== t ? (r = /* @__PURE__ */ P(
|
|
325
|
+
return e[0] !== t ? (r = /* @__PURE__ */ P(Br, { ...t }, t.pluginId), e[0] = t, e[1] = r) : r = e[1], r;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function Br(t) {
|
|
328
328
|
const e = q(40), {
|
|
329
329
|
children: r,
|
|
330
330
|
pluginId: n,
|
|
@@ -337,16 +337,16 @@ function jr(t) {
|
|
|
337
337
|
}, e[0] = n, e[1] = o) : o = e[1];
|
|
338
338
|
const {
|
|
339
339
|
categories: c
|
|
340
|
-
} =
|
|
341
|
-
let
|
|
342
|
-
e[2] !== c.plugin?.settings || e[3] !== n ? (
|
|
343
|
-
const [A, N] =
|
|
340
|
+
} = rn(o);
|
|
341
|
+
let l;
|
|
342
|
+
e[2] !== c.plugin?.settings || e[3] !== n ? (l = Object.fromEntries(Object.entries(c.plugin?.settings ?? {}).filter(Jr).map((R) => {
|
|
343
|
+
const [A, N] = R;
|
|
344
344
|
return [`${n}.${A}`, N.value];
|
|
345
|
-
})), e[2] = c.plugin?.settings, e[3] = n, e[4] =
|
|
346
|
-
const a =
|
|
345
|
+
})), e[2] = c.plugin?.settings, e[3] = n, e[4] = l) : l = e[4];
|
|
346
|
+
const a = l;
|
|
347
347
|
let d;
|
|
348
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = new
|
|
349
|
-
const [
|
|
348
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = new qr(), e[5] = d) : d = e[5];
|
|
349
|
+
const [u, f] = L.useState(d), [p, v] = L.useState(!1), [h, g] = L.useState(null), m = L.useRef(0);
|
|
350
350
|
console.debug("[PluginContextProvider] render", {
|
|
351
351
|
pluginId: n,
|
|
352
352
|
metaLoaded: p,
|
|
@@ -358,16 +358,16 @@ function jr(t) {
|
|
|
358
358
|
console.debug("[PluginContextProvider] skipping meta fetch — empty pluginId");
|
|
359
359
|
return;
|
|
360
360
|
}
|
|
361
|
-
const
|
|
362
|
-
console.debug(`[PluginContextProvider] fetching meta for "${n}"`),
|
|
363
|
-
|
|
361
|
+
const R = m.current = m.current + 1;
|
|
362
|
+
console.debug(`[PluginContextProvider] fetching meta for "${n}"`), Pn(n).then((A) => {
|
|
363
|
+
R === m.current && (console.debug(`[PluginContextProvider] meta loaded for "${n}"`, {
|
|
364
364
|
name: A?.name,
|
|
365
365
|
version: A?.version
|
|
366
366
|
}), f(A), v(!0));
|
|
367
367
|
}).catch((A) => {
|
|
368
|
-
if (
|
|
368
|
+
if (R !== m.current)
|
|
369
369
|
return;
|
|
370
|
-
const N =
|
|
370
|
+
const N = ye(A);
|
|
371
371
|
console.error(`[PluginContextProvider] error fetching meta for "${n}":`, N.detail), g(N.detail), v(!1);
|
|
372
372
|
});
|
|
373
373
|
}, e[6] = n, e[7] = y) : y = e[7];
|
|
@@ -376,30 +376,30 @@ function jr(t) {
|
|
|
376
376
|
e[8] !== b || e[9] !== p || e[10] !== n ? (w = () => {
|
|
377
377
|
if (p)
|
|
378
378
|
return;
|
|
379
|
-
const
|
|
379
|
+
const R = () => {
|
|
380
380
|
g(null), b();
|
|
381
|
-
}, A = [W("plugin/init_complete",
|
|
382
|
-
N.data?.id === n &&
|
|
383
|
-
}), W("plugin/inventory_changed",
|
|
381
|
+
}, A = [W("plugin/init_complete", R), W("plugin/dev_install_complete", (N) => {
|
|
382
|
+
N.data?.id === n && R();
|
|
383
|
+
}), W("plugin/inventory_changed", R)];
|
|
384
384
|
return () => {
|
|
385
385
|
for (const N of A)
|
|
386
386
|
N();
|
|
387
387
|
};
|
|
388
388
|
}, E = [n, p, b], e[8] = b, e[9] = p, e[10] = n, e[11] = w, e[12] = E) : (w = e[11], E = e[12]), L.useEffect(w, E);
|
|
389
|
-
let _,
|
|
389
|
+
let _, S;
|
|
390
390
|
if (e[13] !== b || e[14] !== n ? (_ = () => (console.debug(`[PluginContextProvider] useEffect — pluginId changed to "${n}"`), b(), () => {
|
|
391
391
|
m.current = m.current + 1;
|
|
392
|
-
}),
|
|
392
|
+
}), S = [n, b], e[13] = b, e[14] = n, e[15] = _, e[16] = S) : (_ = e[15], S = e[16]), L.useEffect(_, S), h) {
|
|
393
393
|
if (i)
|
|
394
394
|
throw new Error(h);
|
|
395
|
-
let
|
|
395
|
+
let R, A, N;
|
|
396
396
|
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = {
|
|
397
397
|
display: "flex",
|
|
398
398
|
flex: 1,
|
|
399
399
|
alignItems: "center",
|
|
400
400
|
justifyContent: "center",
|
|
401
401
|
padding: 24
|
|
402
|
-
},
|
|
402
|
+
}, R = {
|
|
403
403
|
maxWidth: 480,
|
|
404
404
|
width: "100%",
|
|
405
405
|
border: "1px solid #7F1D1D",
|
|
@@ -412,8 +412,8 @@ function jr(t) {
|
|
|
412
412
|
alignItems: "center",
|
|
413
413
|
gap: 8,
|
|
414
414
|
marginBottom: 12
|
|
415
|
-
}, e[17] =
|
|
416
|
-
let $,
|
|
415
|
+
}, e[17] = R, e[18] = A, e[19] = N) : (R = e[17], A = e[18], N = e[19]);
|
|
416
|
+
let $, C;
|
|
417
417
|
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ te("div", { style: A, children: [
|
|
418
418
|
/* @__PURE__ */ te("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "#EF4444", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
419
419
|
/* @__PURE__ */ P("circle", { cx: "12", cy: "12", r: "10" }),
|
|
@@ -425,13 +425,13 @@ function jr(t) {
|
|
|
425
425
|
fontWeight: 600,
|
|
426
426
|
color: "#FECACA"
|
|
427
427
|
}, children: "Plugin failed to load" })
|
|
428
|
-
] }),
|
|
428
|
+
] }), C = {
|
|
429
429
|
fontSize: 13,
|
|
430
430
|
color: "#A1A1AA",
|
|
431
431
|
margin: "0 0 16px"
|
|
432
|
-
}, e[20] = $, e[21] =
|
|
432
|
+
}, e[20] = $, e[21] = C) : ($ = e[20], C = e[21]);
|
|
433
433
|
let k;
|
|
434
|
-
e[22] !== h ? (k = /* @__PURE__ */ P("p", { style:
|
|
434
|
+
e[22] !== h ? (k = /* @__PURE__ */ P("p", { style: C, children: h }), e[22] = h, e[23] = k) : k = e[23];
|
|
435
435
|
let O;
|
|
436
436
|
e[24] !== b ? (O = () => {
|
|
437
437
|
g(null), b();
|
|
@@ -450,7 +450,7 @@ function jr(t) {
|
|
|
450
450
|
let T;
|
|
451
451
|
e[27] !== O ? (T = /* @__PURE__ */ P("button", { onClick: O, style: F, children: "Retry" }), e[27] = O, e[28] = T) : T = e[28];
|
|
452
452
|
let x;
|
|
453
|
-
return e[29] !== k || e[30] !== T ? (x = /* @__PURE__ */ P("div", { style: N, children: /* @__PURE__ */ te("div", { style:
|
|
453
|
+
return e[29] !== k || e[30] !== T ? (x = /* @__PURE__ */ P("div", { style: N, children: /* @__PURE__ */ te("div", { style: R, children: [
|
|
454
454
|
$,
|
|
455
455
|
k,
|
|
456
456
|
T
|
|
@@ -459,8 +459,8 @@ function jr(t) {
|
|
|
459
459
|
if (!p) {
|
|
460
460
|
if (i)
|
|
461
461
|
return null;
|
|
462
|
-
let
|
|
463
|
-
return e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
462
|
+
let R;
|
|
463
|
+
return e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ te("div", { style: {
|
|
464
464
|
display: "flex",
|
|
465
465
|
flex: 1,
|
|
466
466
|
alignItems: "center",
|
|
@@ -475,39 +475,39 @@ function jr(t) {
|
|
|
475
475
|
animation: "plugin-spin 0.8s linear infinite"
|
|
476
476
|
} }),
|
|
477
477
|
/* @__PURE__ */ P("style", { children: "@keyframes plugin-spin { to { transform: rotate(360deg); } }" })
|
|
478
|
-
] }), e[32] =
|
|
478
|
+
] }), e[32] = R) : R = e[32], R;
|
|
479
479
|
}
|
|
480
480
|
let I;
|
|
481
|
-
e[33] !==
|
|
481
|
+
e[33] !== u || e[34] !== n || e[35] !== a ? (I = {
|
|
482
482
|
pluginId: n,
|
|
483
483
|
settings: a,
|
|
484
|
-
meta:
|
|
485
|
-
}, e[33] =
|
|
486
|
-
let
|
|
487
|
-
return e[37] !== r || e[38] !== I ? (
|
|
484
|
+
meta: u
|
|
485
|
+
}, e[33] = u, e[34] = n, e[35] = a, e[36] = I) : I = e[36];
|
|
486
|
+
let D;
|
|
487
|
+
return e[37] !== r || e[38] !== I ? (D = /* @__PURE__ */ P(_t.Provider, { value: I, children: r }), e[37] = r, e[38] = I, e[39] = D) : D = e[39], D;
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Jr(t) {
|
|
490
490
|
const [, e] = t;
|
|
491
491
|
return e !== void 0;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function cn() {
|
|
494
494
|
const t = $e(_t);
|
|
495
495
|
if (!t)
|
|
496
496
|
throw new Error("usePluginContext must be used within a PluginContextProvider");
|
|
497
497
|
return t;
|
|
498
498
|
}
|
|
499
|
-
const
|
|
499
|
+
const an = Ze(void 0), vo = (t) => {
|
|
500
500
|
const e = q(7), {
|
|
501
501
|
children: r
|
|
502
502
|
} = t, {
|
|
503
503
|
categories: n
|
|
504
|
-
} =
|
|
504
|
+
} = rn(gt);
|
|
505
505
|
let s;
|
|
506
506
|
if (e[0] !== n) {
|
|
507
507
|
s = {};
|
|
508
|
-
for (const [
|
|
509
|
-
for (const [d,
|
|
510
|
-
|
|
508
|
+
for (const [l, a] of Object.entries(n))
|
|
509
|
+
for (const [d, u] of Object.entries(a?.settings ?? {}))
|
|
510
|
+
u && (s[Kr(gt, l, d)] = u.value);
|
|
511
511
|
e[0] = n, e[1] = s;
|
|
512
512
|
} else
|
|
513
513
|
s = e[1];
|
|
@@ -517,8 +517,8 @@ const cn = Ze(void 0), go = (t) => {
|
|
|
517
517
|
settings: i
|
|
518
518
|
}, e[2] = i, e[3] = o) : o = e[3];
|
|
519
519
|
let c;
|
|
520
|
-
return e[4] !== r || e[5] !== o ? (c = /* @__PURE__ */ P(
|
|
521
|
-
},
|
|
520
|
+
return e[4] !== r || e[5] !== o ? (c = /* @__PURE__ */ P(an.Provider, { value: o, children: r }), e[4] = r, e[5] = o, e[6] = c) : c = e[6], c;
|
|
521
|
+
}, Hr = {
|
|
522
522
|
height: 32,
|
|
523
523
|
focused: 0,
|
|
524
524
|
tabs: [],
|
|
@@ -542,7 +542,7 @@ const cn = Ze(void 0), go = (t) => {
|
|
|
542
542
|
},
|
|
543
543
|
fullscreenDrawer: () => {
|
|
544
544
|
}
|
|
545
|
-
},
|
|
545
|
+
}, Vr = L.createContext(Hr), Yr = Ze(void 0), Zr = L.createContext(void 0), ln = L.createContext(void 0), Xr = 3e4, bo = (t) => {
|
|
546
546
|
const e = q(12), {
|
|
547
547
|
children: r
|
|
548
548
|
} = t;
|
|
@@ -554,40 +554,40 @@ const cn = Ze(void 0), go = (t) => {
|
|
|
554
554
|
i((y) => [m, ...y]);
|
|
555
555
|
}, e[1] = o) : o = e[1];
|
|
556
556
|
const c = o;
|
|
557
|
-
let
|
|
558
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
557
|
+
let l;
|
|
558
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = (m, y) => {
|
|
559
559
|
i((b) => b.map((w) => w.id === m ? {
|
|
560
560
|
...w,
|
|
561
561
|
...y
|
|
562
562
|
} : w));
|
|
563
|
-
}, e[2] =
|
|
564
|
-
const a =
|
|
563
|
+
}, e[2] = l) : l = e[2];
|
|
564
|
+
const a = l;
|
|
565
565
|
let d;
|
|
566
566
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (m) => {
|
|
567
567
|
i((y) => y.filter((b) => b.id !== m));
|
|
568
568
|
}, e[3] = d) : d = e[3];
|
|
569
|
-
const
|
|
569
|
+
const u = d;
|
|
570
570
|
let f, p;
|
|
571
571
|
e[4] !== s ? (f = () => {
|
|
572
572
|
const m = [];
|
|
573
573
|
for (const y of s)
|
|
574
574
|
if (y.status !== "running") {
|
|
575
|
-
const b = Date.now() - (y.completedAt ?? y.startedAt), w = Math.max(0,
|
|
576
|
-
m.push(setTimeout(() =>
|
|
575
|
+
const b = Date.now() - (y.completedAt ?? y.startedAt), w = Math.max(0, Xr - b);
|
|
576
|
+
m.push(setTimeout(() => u(y.id), w));
|
|
577
577
|
}
|
|
578
578
|
return () => m.forEach(clearTimeout);
|
|
579
|
-
}, p = [s,
|
|
579
|
+
}, p = [s, u], e[4] = s, e[5] = f, e[6] = p) : (f = e[5], p = e[6]), L.useEffect(f, p);
|
|
580
580
|
let v;
|
|
581
581
|
e[7] !== s ? (v = {
|
|
582
582
|
operations: s,
|
|
583
583
|
addOperation: c,
|
|
584
584
|
updateOperation: a,
|
|
585
|
-
removeOperation:
|
|
585
|
+
removeOperation: u
|
|
586
586
|
}, e[7] = s, e[8] = v) : v = e[8];
|
|
587
587
|
const h = v;
|
|
588
588
|
let g;
|
|
589
|
-
return e[9] !== r || e[10] !== h ? (g = /* @__PURE__ */ P(
|
|
590
|
-
}, Dt = L.createContext(null),
|
|
589
|
+
return e[9] !== r || e[10] !== h ? (g = /* @__PURE__ */ P(ln.Provider, { value: h, children: r }), e[9] = r, e[10] = h, e[11] = g) : g = e[11], g;
|
|
590
|
+
}, Dt = L.createContext(null), wo = (t) => {
|
|
591
591
|
const e = q(3), {
|
|
592
592
|
actions: r,
|
|
593
593
|
children: n
|
|
@@ -595,7 +595,7 @@ const cn = Ze(void 0), go = (t) => {
|
|
|
595
595
|
let s;
|
|
596
596
|
return e[0] !== r || e[1] !== n ? (s = /* @__PURE__ */ P(Dt.Provider, { value: r, children: n }), e[0] = r, e[1] = n, e[2] = s) : s = e[2], s;
|
|
597
597
|
};
|
|
598
|
-
function
|
|
598
|
+
function Eo() {
|
|
599
599
|
const t = L.useContext(Dt);
|
|
600
600
|
if (!t)
|
|
601
601
|
throw new Error("useWindowActions must be used inside a workspace window (WindowActionsProvider)");
|
|
@@ -608,7 +608,7 @@ var ht = function(t, e) {
|
|
|
608
608
|
for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (r[s] = n[s]);
|
|
609
609
|
}, ht(t, e);
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function es(t, e) {
|
|
612
612
|
if (typeof e != "function" && e !== null)
|
|
613
613
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
614
614
|
ht(t, e);
|
|
@@ -617,28 +617,28 @@ function Vr(t, e) {
|
|
|
617
617
|
}
|
|
618
618
|
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
|
|
619
619
|
}
|
|
620
|
-
var ot = "Invariant Violation", Ut = Object.setPrototypeOf,
|
|
620
|
+
var ot = "Invariant Violation", Ut = Object.setPrototypeOf, ts = Ut === void 0 ? function(t, e) {
|
|
621
621
|
return t.__proto__ = e, t;
|
|
622
|
-
} : Ut,
|
|
622
|
+
} : Ut, ns = (
|
|
623
623
|
/** @class */
|
|
624
624
|
(function(t) {
|
|
625
|
-
|
|
625
|
+
es(e, t);
|
|
626
626
|
function e(r) {
|
|
627
627
|
r === void 0 && (r = ot);
|
|
628
628
|
var n = t.call(this, typeof r == "number" ? ot + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
|
|
629
|
-
return n.framesToPop = 1, n.name = ot,
|
|
629
|
+
return n.framesToPop = 1, n.name = ot, ts(n, e.prototype), n;
|
|
630
630
|
}
|
|
631
631
|
return e;
|
|
632
632
|
})(Error)
|
|
633
633
|
);
|
|
634
634
|
function yt(t, e) {
|
|
635
635
|
if (!t)
|
|
636
|
-
throw new
|
|
636
|
+
throw new ns(e);
|
|
637
637
|
}
|
|
638
|
-
var
|
|
638
|
+
var un = ["debug", "log", "warn", "error", "silent"], rs = un.indexOf("log");
|
|
639
639
|
function Je(t) {
|
|
640
640
|
return function() {
|
|
641
|
-
if (
|
|
641
|
+
if (un.indexOf(t) >= rs) {
|
|
642
642
|
var e = console[t] || console.log;
|
|
643
643
|
return e.apply(console, arguments);
|
|
644
644
|
}
|
|
@@ -647,40 +647,40 @@ function Je(t) {
|
|
|
647
647
|
(function(t) {
|
|
648
648
|
t.debug = Je("debug"), t.log = Je("log"), t.warn = Je("warn"), t.error = Je("error");
|
|
649
649
|
})(yt || (yt = {}));
|
|
650
|
-
const
|
|
651
|
-
function
|
|
652
|
-
const e = q(6), r =
|
|
650
|
+
const dn = Ze(void 0), ss = () => $e(dn);
|
|
651
|
+
function fn(t) {
|
|
652
|
+
const e = q(6), r = ss(), n = L.useRef(null);
|
|
653
653
|
let s;
|
|
654
|
-
e[0] !== t || e[1] !== r ? (s = (
|
|
655
|
-
let a = r?.getExtensionPoint(t), d = a?.subscribe(
|
|
656
|
-
const
|
|
654
|
+
e[0] !== t || e[1] !== r ? (s = (l) => {
|
|
655
|
+
let a = r?.getExtensionPoint(t), d = a?.subscribe(l);
|
|
656
|
+
const u = r?.subscribe(() => {
|
|
657
657
|
const f = r.getExtensionPoint(t);
|
|
658
|
-
f !== a && (d?.(), a = f, d = a?.subscribe(
|
|
658
|
+
f !== a && (d?.(), a = f, d = a?.subscribe(l)), l();
|
|
659
659
|
});
|
|
660
660
|
return () => {
|
|
661
|
-
d?.(),
|
|
661
|
+
d?.(), u?.();
|
|
662
662
|
};
|
|
663
663
|
}, e[0] = t, e[1] = r, e[2] = s) : s = e[2];
|
|
664
664
|
const i = s;
|
|
665
665
|
let o;
|
|
666
666
|
e[3] !== t || e[4] !== r ? (o = () => {
|
|
667
|
-
const
|
|
668
|
-
if (d && d.store ===
|
|
667
|
+
const l = r?.getExtensionPoint(t), a = l?.version ?? -1, d = n.current;
|
|
668
|
+
if (d && d.store === l && d.version === a)
|
|
669
669
|
return d;
|
|
670
|
-
const
|
|
671
|
-
store:
|
|
670
|
+
const u = {
|
|
671
|
+
store: l,
|
|
672
672
|
version: a,
|
|
673
|
-
contributions:
|
|
673
|
+
contributions: l?.listAll() ?? []
|
|
674
674
|
};
|
|
675
|
-
return n.current =
|
|
675
|
+
return n.current = u, u;
|
|
676
676
|
}, e[3] = t, e[4] = r, e[5] = o) : o = e[5];
|
|
677
677
|
const c = o;
|
|
678
678
|
return Me(i, c, c);
|
|
679
679
|
}
|
|
680
|
-
function
|
|
681
|
-
return
|
|
680
|
+
function So(t) {
|
|
681
|
+
return fn(t).store;
|
|
682
682
|
}
|
|
683
|
-
const
|
|
683
|
+
const Io = (t) => {
|
|
684
684
|
const e = q(5), {
|
|
685
685
|
registry: r,
|
|
686
686
|
children: n
|
|
@@ -690,13 +690,13 @@ const bo = (t) => {
|
|
|
690
690
|
const [i] = L.useState(s);
|
|
691
691
|
yt(i === r, "You can't change the extension registry after it has been rendered");
|
|
692
692
|
let o;
|
|
693
|
-
return e[2] !== n || e[3] !== i ? (o = /* @__PURE__ */ P(
|
|
693
|
+
return e[2] !== n || e[3] !== i ? (o = /* @__PURE__ */ P(dn.Provider, { value: i, children: n }), e[2] = n, e[3] = i, e[4] = o) : o = e[4], o;
|
|
694
694
|
}, it = (t) => {
|
|
695
695
|
if (!t || typeof t != "string")
|
|
696
696
|
throw new TypeError(`extensionName is required to be a string and can't be: "${t}" (${typeof t})`);
|
|
697
697
|
return t.trim();
|
|
698
698
|
};
|
|
699
|
-
class
|
|
699
|
+
class os {
|
|
700
700
|
id;
|
|
701
701
|
mode;
|
|
702
702
|
_pluginId;
|
|
@@ -814,7 +814,7 @@ class ts {
|
|
|
814
814
|
e();
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
|
-
class
|
|
817
|
+
class Co {
|
|
818
818
|
_stores = /* @__PURE__ */ new Map();
|
|
819
819
|
_storeUnsubs = /* @__PURE__ */ new Map();
|
|
820
820
|
_listeners = /* @__PURE__ */ new Set();
|
|
@@ -833,7 +833,7 @@ class wo {
|
|
|
833
833
|
const s = this._stores.get(r);
|
|
834
834
|
throw new Error(`Extension point "${r}" already exists (owned by "${s.pluginId ?? "unknown"}")`);
|
|
835
835
|
}
|
|
836
|
-
const n = new
|
|
836
|
+
const n = new os({
|
|
837
837
|
...e,
|
|
838
838
|
id: r
|
|
839
839
|
});
|
|
@@ -966,18 +966,18 @@ const ae = {
|
|
|
966
966
|
padding: "var(--ov-space-3)",
|
|
967
967
|
borderTop: "1px solid var(--ov-color-border-muted)"
|
|
968
968
|
}
|
|
969
|
-
},
|
|
969
|
+
}, pn = Ze(void 0), is = {
|
|
970
970
|
default: "info",
|
|
971
971
|
info: "info",
|
|
972
972
|
success: "success",
|
|
973
973
|
warning: "warning",
|
|
974
974
|
error: "danger"
|
|
975
|
-
},
|
|
975
|
+
}, _o = ({
|
|
976
976
|
children: t
|
|
977
977
|
}) => {
|
|
978
978
|
const {
|
|
979
979
|
toast: e
|
|
980
|
-
} =
|
|
980
|
+
} = Ar(), [r, n] = L.useState([]), [s, i] = L.useState([]), [o, c] = L.useState(!1), [l, a] = L.useState(), [d, u] = L.useState(""), f = L.useRef(0), p = L.useRef(null);
|
|
981
981
|
L.useEffect(() => {
|
|
982
982
|
if (!o)
|
|
983
983
|
return;
|
|
@@ -994,40 +994,40 @@ const ae = {
|
|
|
994
994
|
n((m) => [...m, g]);
|
|
995
995
|
}, h = (g, m, y) => {
|
|
996
996
|
const b = typeof g == "object";
|
|
997
|
-
let w = "", E = "info", _,
|
|
997
|
+
let w = "", E = "info", _, S = 5e3, I;
|
|
998
998
|
if (b) {
|
|
999
999
|
if (w = g.message, g.showOnce) {
|
|
1000
1000
|
if (r.includes(w))
|
|
1001
1001
|
return;
|
|
1002
1002
|
v(w);
|
|
1003
1003
|
}
|
|
1004
|
-
E = g.status, _ = g.details,
|
|
1004
|
+
E = g.status, _ = g.details, S = g.autoHideDuration ?? 5e3, I = g.actions;
|
|
1005
1005
|
} else
|
|
1006
1006
|
w = g, E = m, _ = y;
|
|
1007
|
-
let
|
|
1007
|
+
let D;
|
|
1008
1008
|
if (E === "error") {
|
|
1009
|
-
const
|
|
1009
|
+
const R = {
|
|
1010
1010
|
id: ++f.current,
|
|
1011
1011
|
message: w,
|
|
1012
1012
|
details: _,
|
|
1013
1013
|
created: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1014
1014
|
actions: I
|
|
1015
1015
|
};
|
|
1016
|
-
i((A) => [...A,
|
|
1016
|
+
i((A) => [...A, R].slice(-20)), D = {
|
|
1017
1017
|
label: "Details",
|
|
1018
1018
|
onClick: () => {
|
|
1019
|
-
a(
|
|
1019
|
+
a(R.id), c(!0);
|
|
1020
1020
|
}
|
|
1021
1021
|
};
|
|
1022
1022
|
}
|
|
1023
1023
|
e(E === "error" ? w : _ ?? w, {
|
|
1024
|
-
severity:
|
|
1024
|
+
severity: is[E] ?? "info",
|
|
1025
1025
|
title: E !== "error" && _ ? w : void 0,
|
|
1026
|
-
duration:
|
|
1027
|
-
action:
|
|
1026
|
+
duration: S,
|
|
1027
|
+
action: D ?? I?.[0]
|
|
1028
1028
|
});
|
|
1029
1029
|
};
|
|
1030
|
-
return /* @__PURE__ */ te(
|
|
1030
|
+
return /* @__PURE__ */ te(pn.Provider, { value: {
|
|
1031
1031
|
showSnackbar: h,
|
|
1032
1032
|
openNotifications: () => {
|
|
1033
1033
|
c(!0);
|
|
@@ -1035,13 +1035,13 @@ const ae = {
|
|
|
1035
1035
|
notificationCount: s.length
|
|
1036
1036
|
}, children: [
|
|
1037
1037
|
t,
|
|
1038
|
-
o && /* @__PURE__ */ te(
|
|
1038
|
+
o && /* @__PURE__ */ te(Pr, { ref: p, style: ae.Panel, size: "sm", variant: "outline", surface: "overlay", elevation: 3, "aria-label": "Notifications", tabIndex: -1, children: [
|
|
1039
1039
|
/* @__PURE__ */ te($t, { size: "sm", style: ae.Header, children: [
|
|
1040
1040
|
/* @__PURE__ */ P(_e, { size: "sm", weight: "semibold", children: "Notifications" }),
|
|
1041
1041
|
/* @__PURE__ */ P(_e, { size: "xs", tone: "muted", children: s.length }),
|
|
1042
1042
|
/* @__PURE__ */ te($t.Group, { style: ae.HeaderActions, children: [
|
|
1043
1043
|
/* @__PURE__ */ P(Be, { size: "sm", variant: "ghost", "aria-label": "Clear history", title: "Clear history", disabled: s.length === 0, onClick: () => {
|
|
1044
|
-
i([]), a(void 0),
|
|
1044
|
+
i([]), a(void 0), u("");
|
|
1045
1045
|
}, children: /* @__PURE__ */ P("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ P("path", { d: "m3 3 6 6m0-6L3 9M13 6h8M3 14h18M3 20h18" }) }) }),
|
|
1046
1046
|
/* @__PURE__ */ P(Be, { size: "sm", variant: "ghost", "aria-label": "Close notifications", title: "Close notifications", onClick: () => {
|
|
1047
1047
|
c(!1);
|
|
@@ -1049,9 +1049,9 @@ const ae = {
|
|
|
1049
1049
|
] })
|
|
1050
1050
|
] }),
|
|
1051
1051
|
/* @__PURE__ */ te("div", { style: ae.List, children: [
|
|
1052
|
-
s.length === 0 && /* @__PURE__ */ P(
|
|
1052
|
+
s.length === 0 && /* @__PURE__ */ P(xr, { size: "sm", title: "No recent errors", description: "Error details will appear here." }),
|
|
1053
1053
|
s.slice().reverse().map((g) => {
|
|
1054
|
-
const m =
|
|
1054
|
+
const m = l === g.id;
|
|
1055
1055
|
return /* @__PURE__ */ te("div", { style: ae.Notice, children: [
|
|
1056
1056
|
/* @__PURE__ */ te("div", { style: ae.Row, children: [
|
|
1057
1057
|
/* @__PURE__ */ te("svg", { style: ae.ErrorIcon, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-label": "Error", role: "img", children: [
|
|
@@ -1059,27 +1059,27 @@ const ae = {
|
|
|
1059
1059
|
/* @__PURE__ */ P("path", { d: "m9 9 6 6m0-6-6 6" })
|
|
1060
1060
|
] }),
|
|
1061
1061
|
/* @__PURE__ */ P(Oe, { size: "sm", variant: "ghost", style: ae.Message, "aria-expanded": m, "aria-controls": `notification-${g.id}`, title: g.message, onClick: () => {
|
|
1062
|
-
a(m ? void 0 : g.id),
|
|
1062
|
+
a(m ? void 0 : g.id), u("");
|
|
1063
1063
|
}, children: /* @__PURE__ */ P(_e, { size: "sm", style: ae.MessageText, truncate: !m, children: g.message }) }),
|
|
1064
1064
|
/* @__PURE__ */ P(Be, { size: "sm", variant: "ghost", "aria-label": m ? "Collapse details" : "Expand details", title: m ? "Collapse details" : "Expand details", "aria-expanded": m, "aria-controls": `notification-${g.id}`, onClick: () => {
|
|
1065
|
-
a(m ? void 0 : g.id),
|
|
1065
|
+
a(m ? void 0 : g.id), u("");
|
|
1066
1066
|
}, children: /* @__PURE__ */ P("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ P("path", { d: m ? "m6 15 6-6 6 6" : "m6 9 6 6 6-6" }) }) }),
|
|
1067
1067
|
/* @__PURE__ */ P(Be, { size: "sm", variant: "ghost", "aria-label": `Dismiss ${g.message}`, title: "Dismiss notification", onClick: () => {
|
|
1068
|
-
i((y) => y.filter((b) => b.id !== g.id)), m && (a(void 0),
|
|
1068
|
+
i((y) => y.filter((b) => b.id !== g.id)), m && (a(void 0), u(""));
|
|
1069
1069
|
}, children: /* @__PURE__ */ P("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ P("path", { d: "m6 6 12 12m0-12L6 18" }) }) })
|
|
1070
1070
|
] }),
|
|
1071
|
-
/* @__PURE__ */ P("div", { id: `notification-${g.id}`, hidden: !m, style: ae.Details, children: m && /* @__PURE__ */ te(
|
|
1071
|
+
/* @__PURE__ */ P("div", { id: `notification-${g.id}`, hidden: !m, style: ae.Details, children: m && /* @__PURE__ */ te(It, { children: [
|
|
1072
1072
|
/* @__PURE__ */ P(_e, { size: "xs", tone: "muted", children: /* @__PURE__ */ P("time", { dateTime: g.created, children: new Date(g.created).toLocaleString() }) }),
|
|
1073
|
-
/* @__PURE__ */ P(
|
|
1073
|
+
/* @__PURE__ */ P(Lr, { size: "sm", style: ae.Code, children: g.details?.length ? g.details : g.message }),
|
|
1074
1074
|
/* @__PURE__ */ te("div", { style: ae.Actions, children: [
|
|
1075
1075
|
/* @__PURE__ */ P(Oe, { size: "sm", variant: "ghost", onClick: async () => {
|
|
1076
|
-
|
|
1076
|
+
u("");
|
|
1077
1077
|
try {
|
|
1078
1078
|
await navigator.clipboard.writeText(`${g.message}
|
|
1079
1079
|
${g.created}
|
|
1080
1080
|
${g.details ?? ""}`);
|
|
1081
1081
|
} catch {
|
|
1082
|
-
|
|
1082
|
+
u("Copy failed. Select the diagnostic text and copy it manually.");
|
|
1083
1083
|
}
|
|
1084
1084
|
}, children: "Copy details" }),
|
|
1085
1085
|
g.actions?.map((y, b) => /* @__PURE__ */ P(Oe, { size: "sm", variant: "outline", onClick: y.onClick, children: y.label }, `${y.label}-${b}`))
|
|
@@ -1091,8 +1091,8 @@ ${g.details ?? ""}`);
|
|
|
1091
1091
|
d && /* @__PURE__ */ P(_e, { as: "p", size: "sm", role: "status", style: ae.CopyError, children: d })
|
|
1092
1092
|
] })
|
|
1093
1093
|
] });
|
|
1094
|
-
},
|
|
1095
|
-
const t = $e(
|
|
1094
|
+
}, fe = () => {
|
|
1095
|
+
const t = $e(pn);
|
|
1096
1096
|
if (t === void 0)
|
|
1097
1097
|
throw new Error("useCustomSnackbar must be used within a CustomSnackbarProvider");
|
|
1098
1098
|
return t;
|
|
@@ -1110,8 +1110,8 @@ function Q(t) {
|
|
|
1110
1110
|
return r;
|
|
1111
1111
|
}
|
|
1112
1112
|
const de = /* @__PURE__ */ new Map(), Ue = /* @__PURE__ */ new Map();
|
|
1113
|
-
let ct = 0,
|
|
1114
|
-
const
|
|
1113
|
+
let ct = 0, xe = [], Rt = 0;
|
|
1114
|
+
const gn = {
|
|
1115
1115
|
phase: "checking"
|
|
1116
1116
|
};
|
|
1117
1117
|
function De(t, e) {
|
|
@@ -1121,7 +1121,7 @@ function De(t, e) {
|
|
|
1121
1121
|
pluginID: t,
|
|
1122
1122
|
connectionID: e,
|
|
1123
1123
|
key: r,
|
|
1124
|
-
snapshot:
|
|
1124
|
+
snapshot: gn,
|
|
1125
1125
|
listeners: /* @__PURE__ */ new Set(),
|
|
1126
1126
|
users: 0,
|
|
1127
1127
|
version: 0,
|
|
@@ -1136,7 +1136,7 @@ function Qe(t, e) {
|
|
|
1136
1136
|
function Re(t, e, r = !1) {
|
|
1137
1137
|
t.generation = ++Rt, t.version++, r || (t.operation = void 0), Qe(t, e);
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function cs(t) {
|
|
1140
1140
|
switch (t) {
|
|
1141
1141
|
case "CONNECTED":
|
|
1142
1142
|
return "connected";
|
|
@@ -1159,16 +1159,16 @@ function Nt(t) {
|
|
|
1159
1159
|
if (e)
|
|
1160
1160
|
return e.startsWith("{") || e.startsWith("[") || e.length > 512 || /[\r\n]|\bgoroutine\b|\bat\s+\S+\s+\(.*:\d+:\d+\)/.test(e) ? "The connection operation could not be completed." : e;
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1163
|
-
const r =
|
|
1162
|
+
function hn(t, e) {
|
|
1163
|
+
const r = cs(t.status);
|
|
1164
1164
|
return {
|
|
1165
1165
|
phase: r,
|
|
1166
1166
|
connection: e,
|
|
1167
1167
|
message: Nt(t.error || t.details) || (r === "error" ? "The connection is not ready." : void 0)
|
|
1168
1168
|
};
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1171
|
-
const r =
|
|
1170
|
+
function yn(t, e) {
|
|
1171
|
+
const r = ye(t);
|
|
1172
1172
|
return {
|
|
1173
1173
|
phase: r.status === 401 ? "unauthorized" : r.status === 403 ? "forbidden" : r.status === 404 ? "not-found" : "error",
|
|
1174
1174
|
connection: e,
|
|
@@ -1193,18 +1193,18 @@ function Wt(t) {
|
|
|
1193
1193
|
}), r.users && Se(r, "check").catch(() => {
|
|
1194
1194
|
})));
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function Pe() {
|
|
1197
1197
|
if (!(typeof document < "u" && document.visibilityState === "hidden"))
|
|
1198
1198
|
for (const t of de.values())
|
|
1199
1199
|
t.users && !Ue.has(t.pluginID) && Se(t, "check", !0).catch(() => {
|
|
1200
1200
|
});
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1203
|
-
|
|
1202
|
+
function as() {
|
|
1203
|
+
xe.length || (xe = [W("connection/status", ({
|
|
1204
1204
|
data: t
|
|
1205
1205
|
}) => {
|
|
1206
1206
|
const e = de.get(JSON.stringify([t.pluginID, t.connectionID]));
|
|
1207
|
-
!e || Ue.has(t.pluginID) || e.stop && t.status !== "DISCONNECTED" || t.status !== "DISCONNECTED" && e.starts.size && e.operation?.kind !== "start" || Re(e,
|
|
1207
|
+
!e || Ue.has(t.pluginID) || e.stop && t.status !== "DISCONNECTED" || t.status !== "DISCONNECTED" && e.starts.size && e.operation?.kind !== "start" || Re(e, hn({
|
|
1208
1208
|
status: t.status,
|
|
1209
1209
|
error: "",
|
|
1210
1210
|
details: ""
|
|
@@ -1219,15 +1219,15 @@ function ss() {
|
|
|
1219
1219
|
data: t
|
|
1220
1220
|
}) => {
|
|
1221
1221
|
t.to === "Running" ? Wt(t.pluginID) : at(t.pluginID, t.reason || `The plugin is ${t.to}.`);
|
|
1222
|
-
})], typeof window < "u" && (window.addEventListener("focus",
|
|
1223
|
-
window.removeEventListener("focus",
|
|
1224
|
-
})), typeof document < "u" && (document.addEventListener("visibilitychange",
|
|
1222
|
+
})], typeof window < "u" && (window.addEventListener("focus", Pe), window.addEventListener("pageshow", Pe), xe.push(() => {
|
|
1223
|
+
window.removeEventListener("focus", Pe), window.removeEventListener("pageshow", Pe);
|
|
1224
|
+
})), typeof document < "u" && (document.addEventListener("visibilitychange", Pe), xe.push(() => document.removeEventListener("visibilitychange", Pe))));
|
|
1225
1225
|
}
|
|
1226
1226
|
function Te(t) {
|
|
1227
|
-
return de.set(t.key, t), t.users++, ct++,
|
|
1228
|
-
if (t.users--, ct--, t.users || (Re(t,
|
|
1229
|
-
for (const e of
|
|
1230
|
-
|
|
1227
|
+
return de.set(t.key, t), t.users++, ct++, as(), () => {
|
|
1228
|
+
if (t.users--, ct--, t.users || (Re(t, gn), de.get(t.key) === t && de.delete(t.key)), !ct) {
|
|
1229
|
+
for (const e of xe) e();
|
|
1230
|
+
xe = [], Ue.clear();
|
|
1231
1231
|
}
|
|
1232
1232
|
};
|
|
1233
1233
|
}
|
|
@@ -1248,9 +1248,9 @@ function Se(t, e, r = !1) {
|
|
|
1248
1248
|
}), e === "start" && t.starts.add(s);
|
|
1249
1249
|
const i = Promise.resolve().then(() => {
|
|
1250
1250
|
if (t.version !== s) throw new Error("Connection readiness changed before the operation began.");
|
|
1251
|
-
return e === "start" ?
|
|
1252
|
-
}).then((o) => (t.version === s && Qe(t,
|
|
1253
|
-
throw t.version === s && Qe(t,
|
|
1251
|
+
return e === "start" ? Fn(t.pluginID, t.connectionID) : xn(t.pluginID, t.connectionID);
|
|
1252
|
+
}).then((o) => (t.version === s && Qe(t, hn(o, o.connection ?? t.snapshot.connection)), o), (o) => {
|
|
1253
|
+
throw t.version === s && Qe(t, yn(o, t.snapshot.connection)), o;
|
|
1254
1254
|
}).finally(() => {
|
|
1255
1255
|
e === "start" && t.starts.delete(s), t.operation?.version === s && (t.operation = void 0);
|
|
1256
1256
|
});
|
|
@@ -1303,7 +1303,7 @@ async function et(t, e) {
|
|
|
1303
1303
|
n();
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
|
-
async function
|
|
1306
|
+
async function Do(t, e, r) {
|
|
1307
1307
|
const n = De(t, e), s = Te(n);
|
|
1308
1308
|
try {
|
|
1309
1309
|
try {
|
|
@@ -1323,11 +1323,11 @@ async function So(t, e, r) {
|
|
|
1323
1323
|
function mt(t, e) {
|
|
1324
1324
|
return de.get(JSON.stringify([t, e]))?.generation;
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function Ke(t, e, r) {
|
|
1327
1327
|
const n = de.get(JSON.stringify([t, e]));
|
|
1328
1328
|
return r !== void 0 && n?.generation === r && n.snapshot.phase === "connected";
|
|
1329
1329
|
}
|
|
1330
|
-
async function
|
|
1330
|
+
async function ls(t, e) {
|
|
1331
1331
|
const r = De(t, e), n = Te(r);
|
|
1332
1332
|
try {
|
|
1333
1333
|
return await Se(r, "start");
|
|
@@ -1335,14 +1335,14 @@ async function os(t, e) {
|
|
|
1335
1335
|
n();
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1338
|
+
function mn(t, e) {
|
|
1339
1339
|
const r = De(t, e);
|
|
1340
1340
|
if (r.stop) return r.stop;
|
|
1341
|
-
const n = Te(r), s = Promise.resolve().then(() =>
|
|
1341
|
+
const n = Te(r), s = Promise.resolve().then(() => Ln(t, e)).then((i) => (Re(r, {
|
|
1342
1342
|
phase: "disconnected",
|
|
1343
1343
|
connection: i
|
|
1344
1344
|
}), i), (i) => {
|
|
1345
|
-
throw Re(r,
|
|
1345
|
+
throw Re(r, yn(i, r.snapshot.connection)), i;
|
|
1346
1346
|
}).finally(() => {
|
|
1347
1347
|
r.stop = void 0, n();
|
|
1348
1348
|
});
|
|
@@ -1364,19 +1364,19 @@ function lt(t) {
|
|
|
1364
1364
|
if (!t.applied) throw new Error("Connection profile was not applied");
|
|
1365
1365
|
return t;
|
|
1366
1366
|
}
|
|
1367
|
-
const
|
|
1367
|
+
const Ro = (t) => {
|
|
1368
1368
|
const e = q(89), {
|
|
1369
1369
|
pluginID: r,
|
|
1370
1370
|
connectionID: n,
|
|
1371
1371
|
enabled: s
|
|
1372
|
-
} = t, i = s === void 0 ? !0 : s, o = Q(r), c =
|
|
1373
|
-
showSnackbar:
|
|
1374
|
-
} =
|
|
1372
|
+
} = t, i = s === void 0 ? !0 : s, o = Q(r), c = ie(), {
|
|
1373
|
+
showSnackbar: l
|
|
1374
|
+
} = fe();
|
|
1375
1375
|
let a;
|
|
1376
1376
|
e[0] !== n || e[1] !== o ? (a = [o, "connection", "detail", n], e[0] = n, e[1] = o, e[2] = a) : a = e[2];
|
|
1377
1377
|
const d = a;
|
|
1378
|
-
let
|
|
1379
|
-
e[3] !== o || e[4] !== c ? (
|
|
1378
|
+
let u;
|
|
1379
|
+
e[3] !== o || e[4] !== c ? (u = async () => {
|
|
1380
1380
|
await Promise.all([c.invalidateQueries({
|
|
1381
1381
|
queryKey: [o, "connection"]
|
|
1382
1382
|
}), c.invalidateQueries({
|
|
@@ -1384,17 +1384,17 @@ const Co = (t) => {
|
|
|
1384
1384
|
}), c.invalidateQueries({
|
|
1385
1385
|
queryKey: [o, "resource-v2", "editor-schemas"]
|
|
1386
1386
|
})]);
|
|
1387
|
-
}, e[3] = o, e[4] = c, e[5] =
|
|
1388
|
-
const f =
|
|
1387
|
+
}, e[3] = o, e[4] = c, e[5] = u) : u = e[5];
|
|
1388
|
+
const f = u;
|
|
1389
1389
|
let p;
|
|
1390
1390
|
e[6] !== n || e[7] !== f || e[8] !== o ? (p = async () => {
|
|
1391
1391
|
Qt(o, n), await f();
|
|
1392
1392
|
}, e[6] = n, e[7] = f, e[8] = o, e[9] = p) : p = e[9];
|
|
1393
1393
|
const v = p;
|
|
1394
1394
|
let h;
|
|
1395
|
-
e[10] !== n || e[11] !== o ? (h = () =>
|
|
1395
|
+
e[10] !== n || e[11] !== o ? (h = () => ls(o, n), e[10] = n, e[11] = o, e[12] = h) : h = e[12];
|
|
1396
1396
|
let g;
|
|
1397
|
-
e[13] !==
|
|
1397
|
+
e[13] !== l ? (g = se(l, "Failed to start connection"), e[13] = l, e[14] = g) : g = e[14];
|
|
1398
1398
|
let m;
|
|
1399
1399
|
e[15] !== f || e[16] !== h || e[17] !== g ? (m = {
|
|
1400
1400
|
mutationFn: h,
|
|
@@ -1403,11 +1403,11 @@ const Co = (t) => {
|
|
|
1403
1403
|
}, e[15] = f, e[16] = h, e[17] = g, e[18] = m) : m = e[18];
|
|
1404
1404
|
const {
|
|
1405
1405
|
mutateAsync: y
|
|
1406
|
-
} =
|
|
1406
|
+
} = X(m);
|
|
1407
1407
|
let b;
|
|
1408
|
-
e[19] !== n || e[20] !== o ? (b = () =>
|
|
1408
|
+
e[19] !== n || e[20] !== o ? (b = () => mn(o, n), e[19] = n, e[20] = o, e[21] = b) : b = e[21];
|
|
1409
1409
|
let w;
|
|
1410
|
-
e[22] !==
|
|
1410
|
+
e[22] !== l ? (w = se(l, "Failed to stop connection"), e[22] = l, e[23] = w) : w = e[23];
|
|
1411
1411
|
let E;
|
|
1412
1412
|
e[24] !== f || e[25] !== b || e[26] !== w ? (E = {
|
|
1413
1413
|
mutationFn: b,
|
|
@@ -1416,45 +1416,45 @@ const Co = (t) => {
|
|
|
1416
1416
|
}, e[24] = f, e[25] = b, e[26] = w, e[27] = E) : E = e[27];
|
|
1417
1417
|
const {
|
|
1418
1418
|
mutateAsync: _
|
|
1419
|
-
} =
|
|
1420
|
-
let
|
|
1421
|
-
e[28] !== o ? (
|
|
1422
|
-
let I,
|
|
1423
|
-
e[30] !==
|
|
1424
|
-
|
|
1425
|
-
},
|
|
1426
|
-
let
|
|
1427
|
-
e[33] !== v || e[34] !==
|
|
1428
|
-
mutationFn:
|
|
1419
|
+
} = X(E);
|
|
1420
|
+
let S;
|
|
1421
|
+
e[28] !== o ? (S = (Ie) => qn(o, Ie).then(lt), e[28] = o, e[29] = S) : S = e[29];
|
|
1422
|
+
let I, D;
|
|
1423
|
+
e[30] !== l ? (I = () => {
|
|
1424
|
+
l("Connection profile saved", "success");
|
|
1425
|
+
}, D = se(l, "Failed to save connection profile"), e[30] = l, e[31] = I, e[32] = D) : (I = e[31], D = e[32]);
|
|
1426
|
+
let R;
|
|
1427
|
+
e[33] !== v || e[34] !== S || e[35] !== I || e[36] !== D ? (R = {
|
|
1428
|
+
mutationFn: S,
|
|
1429
1429
|
onSuccess: I,
|
|
1430
|
-
onError:
|
|
1430
|
+
onError: D,
|
|
1431
1431
|
onSettled: v
|
|
1432
|
-
}, e[33] = v, e[34] =
|
|
1432
|
+
}, e[33] = v, e[34] = S, e[35] = I, e[36] = D, e[37] = R) : R = e[37];
|
|
1433
1433
|
const {
|
|
1434
1434
|
mutateAsync: A
|
|
1435
|
-
} =
|
|
1435
|
+
} = X(R);
|
|
1436
1436
|
let N;
|
|
1437
|
-
e[38] !== n || e[39] !== o ? (N = () =>
|
|
1438
|
-
let $,
|
|
1439
|
-
e[41] !==
|
|
1440
|
-
|
|
1441
|
-
},
|
|
1437
|
+
e[38] !== n || e[39] !== o ? (N = () => $n(o, n).then(lt), e[38] = n, e[39] = o, e[40] = N) : N = e[40];
|
|
1438
|
+
let $, C;
|
|
1439
|
+
e[41] !== l ? ($ = () => {
|
|
1440
|
+
l("Connection profile imported", "success");
|
|
1441
|
+
}, C = se(l, "Failed to import connection profile"), e[41] = l, e[42] = $, e[43] = C) : ($ = e[42], C = e[43]);
|
|
1442
1442
|
let k;
|
|
1443
|
-
e[44] !== v || e[45] !== N || e[46] !== $ || e[47] !==
|
|
1443
|
+
e[44] !== v || e[45] !== N || e[46] !== $ || e[47] !== C ? (k = {
|
|
1444
1444
|
mutationFn: N,
|
|
1445
1445
|
onSuccess: $,
|
|
1446
|
-
onError:
|
|
1446
|
+
onError: C,
|
|
1447
1447
|
onSettled: v
|
|
1448
|
-
}, e[44] = v, e[45] = N, e[46] = $, e[47] =
|
|
1448
|
+
}, e[44] = v, e[45] = N, e[46] = $, e[47] = C, e[48] = k) : k = e[48];
|
|
1449
1449
|
const {
|
|
1450
1450
|
mutateAsync: O
|
|
1451
|
-
} =
|
|
1451
|
+
} = X(k);
|
|
1452
1452
|
let F;
|
|
1453
|
-
e[49] !== n || e[50] !== o ? (F = () =>
|
|
1453
|
+
e[49] !== n || e[50] !== o ? (F = () => Mn(o, n).then(lt), e[49] = n, e[50] = o, e[51] = F) : F = e[51];
|
|
1454
1454
|
let T, x;
|
|
1455
|
-
e[52] !==
|
|
1456
|
-
|
|
1457
|
-
}, x = se(
|
|
1455
|
+
e[52] !== l ? (T = () => {
|
|
1456
|
+
l("Connection profile reset", "success");
|
|
1457
|
+
}, x = se(l, "Failed to reset connection profile"), e[52] = l, e[53] = T, e[54] = x) : (T = e[53], x = e[54]);
|
|
1458
1458
|
let M;
|
|
1459
1459
|
e[55] !== v || e[56] !== F || e[57] !== T || e[58] !== x ? (M = {
|
|
1460
1460
|
mutationFn: F,
|
|
@@ -1464,27 +1464,27 @@ const Co = (t) => {
|
|
|
1464
1464
|
}, e[55] = v, e[56] = F, e[57] = T, e[58] = x, e[59] = M) : M = e[59];
|
|
1465
1465
|
const {
|
|
1466
1466
|
mutateAsync: J
|
|
1467
|
-
} =
|
|
1468
|
-
let
|
|
1469
|
-
e[60] !== n || e[61] !== o ? (
|
|
1467
|
+
} = X(M);
|
|
1468
|
+
let G;
|
|
1469
|
+
e[60] !== n || e[61] !== o ? (G = () => Un(o, n), e[60] = n, e[61] = o, e[62] = G) : G = e[62];
|
|
1470
1470
|
let z;
|
|
1471
|
-
e[63] !== n || e[64] !== o || e[65] !==
|
|
1472
|
-
Qt(o, n, !0),
|
|
1473
|
-
}, e[63] = n, e[64] = o, e[65] =
|
|
1471
|
+
e[63] !== n || e[64] !== o || e[65] !== l ? (z = () => {
|
|
1472
|
+
Qt(o, n, !0), l("Connection disabled", "success");
|
|
1473
|
+
}, e[63] = n, e[64] = o, e[65] = l, e[66] = z) : z = e[66];
|
|
1474
1474
|
let H;
|
|
1475
|
-
e[67] !==
|
|
1475
|
+
e[67] !== l ? (H = se(l, "Failed to disable connection"), e[67] = l, e[68] = H) : H = e[68];
|
|
1476
1476
|
let B;
|
|
1477
|
-
e[69] !== f || e[70] !==
|
|
1478
|
-
mutationFn:
|
|
1477
|
+
e[69] !== f || e[70] !== G || e[71] !== z || e[72] !== H ? (B = {
|
|
1478
|
+
mutationFn: G,
|
|
1479
1479
|
onSuccess: z,
|
|
1480
1480
|
onError: H,
|
|
1481
1481
|
onSettled: f
|
|
1482
|
-
}, e[69] = f, e[70] =
|
|
1482
|
+
}, e[69] = f, e[70] = G, e[71] = z, e[72] = H, e[73] = B) : B = e[73];
|
|
1483
1483
|
const {
|
|
1484
|
-
mutateAsync:
|
|
1485
|
-
} =
|
|
1484
|
+
mutateAsync: ee
|
|
1485
|
+
} = X(B);
|
|
1486
1486
|
let U;
|
|
1487
|
-
e[74] !== n || e[75] !== o ? (U = () =>
|
|
1487
|
+
e[74] !== n || e[75] !== o ? (U = () => Wn(o, n), e[74] = n, e[75] = o, e[76] = U) : U = e[76];
|
|
1488
1488
|
const V = i && !!n;
|
|
1489
1489
|
let me;
|
|
1490
1490
|
e[77] !== d || e[78] !== U || e[79] !== V ? (me = {
|
|
@@ -1492,40 +1492,40 @@ const Co = (t) => {
|
|
|
1492
1492
|
queryFn: U,
|
|
1493
1493
|
enabled: V
|
|
1494
1494
|
}, e[77] = d, e[78] = U, e[79] = V, e[80] = me) : me = e[80];
|
|
1495
|
-
const ve =
|
|
1495
|
+
const ve = j(me);
|
|
1496
1496
|
let be;
|
|
1497
|
-
return e[81] !== ve || e[82] !== O || e[83] !==
|
|
1497
|
+
return e[81] !== ve || e[82] !== O || e[83] !== ee || e[84] !== J || e[85] !== A || e[86] !== y || e[87] !== _ ? (be = {
|
|
1498
1498
|
connection: ve,
|
|
1499
1499
|
startConnection: y,
|
|
1500
1500
|
stopConnection: _,
|
|
1501
1501
|
saveConnectionProfile: A,
|
|
1502
1502
|
importConnectionProfile: O,
|
|
1503
1503
|
resetConnectionProfile: J,
|
|
1504
|
-
removeConnection:
|
|
1505
|
-
}, e[81] = ve, e[82] = O, e[83] =
|
|
1506
|
-
},
|
|
1504
|
+
removeConnection: ee
|
|
1505
|
+
}, e[81] = ve, e[82] = O, e[83] = ee, e[84] = J, e[85] = A, e[86] = y, e[87] = _, e[88] = be) : be = e[88], be;
|
|
1506
|
+
}, us = (t) => [t, "connection", "list"], No = (t) => {
|
|
1507
1507
|
const e = q(33), {
|
|
1508
1508
|
plugin: r
|
|
1509
|
-
} = t, n = Q(r), s =
|
|
1509
|
+
} = t, n = Q(r), s = ie(), {
|
|
1510
1510
|
showSnackbar: i
|
|
1511
|
-
} =
|
|
1511
|
+
} = fe();
|
|
1512
1512
|
let o;
|
|
1513
|
-
e[0] !== n ? (o =
|
|
1513
|
+
e[0] !== n ? (o = us(n), e[0] = n, e[1] = o) : o = e[1];
|
|
1514
1514
|
const c = o;
|
|
1515
|
-
let
|
|
1516
|
-
e[2] !== n ? (
|
|
1515
|
+
let l;
|
|
1516
|
+
e[2] !== n ? (l = (I) => Ht(n, I), e[2] = n, e[3] = l) : l = e[3];
|
|
1517
1517
|
let a;
|
|
1518
1518
|
e[4] !== i ? (a = se(i, "Failed to start connection watch"), e[4] = i, e[5] = a) : a = e[5];
|
|
1519
1519
|
let d;
|
|
1520
|
-
e[6] !==
|
|
1521
|
-
mutationFn:
|
|
1520
|
+
e[6] !== l || e[7] !== a ? (d = {
|
|
1521
|
+
mutationFn: l,
|
|
1522
1522
|
onError: a
|
|
1523
|
-
}, e[6] =
|
|
1523
|
+
}, e[6] = l, e[7] = a, e[8] = d) : d = e[8];
|
|
1524
1524
|
const {
|
|
1525
|
-
mutateAsync:
|
|
1526
|
-
} =
|
|
1525
|
+
mutateAsync: u
|
|
1526
|
+
} = X(d);
|
|
1527
1527
|
let f;
|
|
1528
|
-
e[9] !== n ? (f = (I) =>
|
|
1528
|
+
e[9] !== n ? (f = (I) => Qn(n, I), e[9] = n, e[10] = f) : f = e[10];
|
|
1529
1529
|
let p;
|
|
1530
1530
|
e[11] !== i ? (p = se(i, "Failed to stop connection watch"), e[11] = i, e[12] = p) : p = e[12];
|
|
1531
1531
|
let v;
|
|
@@ -1535,11 +1535,11 @@ const Co = (t) => {
|
|
|
1535
1535
|
}, e[13] = f, e[14] = p, e[15] = v) : v = e[15];
|
|
1536
1536
|
const {
|
|
1537
1537
|
mutateAsync: h
|
|
1538
|
-
} =
|
|
1538
|
+
} = X(v);
|
|
1539
1539
|
let g;
|
|
1540
1540
|
e[16] !== s || e[17] !== c ? (g = (I) => {
|
|
1541
|
-
const
|
|
1542
|
-
console.log("got update to connections",
|
|
1541
|
+
const D = I.data;
|
|
1542
|
+
console.log("got update to connections", D), s.setQueryData(c, D);
|
|
1543
1543
|
}, e[16] = s, e[17] = c, e[18] = g) : g = e[18];
|
|
1544
1544
|
const m = g;
|
|
1545
1545
|
let y, b;
|
|
@@ -1552,10 +1552,10 @@ const Co = (t) => {
|
|
|
1552
1552
|
let w;
|
|
1553
1553
|
e[23] !== n || e[24] !== i ? (w = async () => {
|
|
1554
1554
|
try {
|
|
1555
|
-
return await
|
|
1555
|
+
return await Kn(n);
|
|
1556
1556
|
} catch (I) {
|
|
1557
|
-
const
|
|
1558
|
-
console.log(
|
|
1557
|
+
const D = I;
|
|
1558
|
+
console.log(D), se(i, "Failed to load connections")(D);
|
|
1559
1559
|
}
|
|
1560
1560
|
return [];
|
|
1561
1561
|
}, e[23] = n, e[24] = i, e[25] = w) : w = e[25];
|
|
@@ -1566,17 +1566,17 @@ const Co = (t) => {
|
|
|
1566
1566
|
staleTime: 3e4,
|
|
1567
1567
|
placeholderData: Jt
|
|
1568
1568
|
}, e[26] = c, e[27] = w, e[28] = E) : E = e[28];
|
|
1569
|
-
const _ =
|
|
1570
|
-
let
|
|
1571
|
-
return e[29] !== _ || e[30] !==
|
|
1569
|
+
const _ = j(E);
|
|
1570
|
+
let S;
|
|
1571
|
+
return e[29] !== _ || e[30] !== u || e[31] !== h ? (S = {
|
|
1572
1572
|
connections: _,
|
|
1573
|
-
startWatch:
|
|
1573
|
+
startWatch: u,
|
|
1574
1574
|
stopWatch: h
|
|
1575
|
-
}, e[29] = _, e[30] =
|
|
1576
|
-
},
|
|
1575
|
+
}, e[29] = _, e[30] = u, e[31] = h, e[32] = S) : S = e[32], S;
|
|
1576
|
+
}, ds = {
|
|
1577
1577
|
phase: "checking"
|
|
1578
|
-
},
|
|
1579
|
-
getSnapshot: () =>
|
|
1578
|
+
}, fs = {
|
|
1579
|
+
getSnapshot: () => ds,
|
|
1580
1580
|
subscribe: () => () => {
|
|
1581
1581
|
},
|
|
1582
1582
|
connect: async () => {
|
|
@@ -1591,29 +1591,29 @@ function le(t) {
|
|
|
1591
1591
|
enabled: s
|
|
1592
1592
|
} = t, i = s === void 0 ? !0 : s, o = Q(r);
|
|
1593
1593
|
let c;
|
|
1594
|
-
e[0] !== n || e[1] !== i || e[2] !== o ? (c = i ? Xe(o, n) :
|
|
1595
|
-
const
|
|
1594
|
+
e[0] !== n || e[1] !== i || e[2] !== o ? (c = i ? Xe(o, n) : fs, e[0] = n, e[1] = i, e[2] = o, e[3] = c) : c = e[3];
|
|
1595
|
+
const l = c, a = Me(l.subscribe, l.getSnapshot, l.getSnapshot);
|
|
1596
1596
|
let d;
|
|
1597
|
-
return e[4] !== a || e[5] !==
|
|
1597
|
+
return e[4] !== a || e[5] !== l.connect || e[6] !== l.retry ? (d = {
|
|
1598
1598
|
...a,
|
|
1599
|
-
connect:
|
|
1600
|
-
retry:
|
|
1601
|
-
}, e[4] = a, e[5] =
|
|
1599
|
+
connect: l.connect,
|
|
1600
|
+
retry: l.retry
|
|
1601
|
+
}, e[4] = a, e[5] = l.connect, e[6] = l.retry, e[7] = d) : d = e[7], d;
|
|
1602
1602
|
}
|
|
1603
1603
|
function ue(t, e) {
|
|
1604
|
-
const r =
|
|
1604
|
+
const r = ie();
|
|
1605
1605
|
return we(async (n, s, i, o = e) => {
|
|
1606
|
-
const c = o,
|
|
1607
|
-
if (s.aborted || !a()) throw new
|
|
1606
|
+
const c = o, l = mt(t, c), a = () => l !== void 0 && Ke(t, c, l);
|
|
1607
|
+
if (s.aborted || !a()) throw new je({
|
|
1608
1608
|
revert: !0
|
|
1609
1609
|
});
|
|
1610
|
-
let d,
|
|
1610
|
+
let d, u = !1, f = !1;
|
|
1611
1611
|
const p = () => {
|
|
1612
1612
|
d && "cancel" in d && typeof d.cancel == "function" && Promise.resolve(d.cancel()).catch((g) => {
|
|
1613
1613
|
console.error("Failed to cancel resource query", g);
|
|
1614
1614
|
}), h();
|
|
1615
1615
|
}, v = Xe(t, c).subscribe(() => {
|
|
1616
|
-
a() || (
|
|
1616
|
+
a() || (u = !0, r.cancelQueries({
|
|
1617
1617
|
queryKey: n,
|
|
1618
1618
|
exact: !0
|
|
1619
1619
|
}).catch((g) => {
|
|
@@ -1626,12 +1626,12 @@ function ue(t, e) {
|
|
|
1626
1626
|
once: !0
|
|
1627
1627
|
});
|
|
1628
1628
|
try {
|
|
1629
|
-
if (s.aborted ||
|
|
1629
|
+
if (s.aborted || u || !a()) throw new je({
|
|
1630
1630
|
revert: !0
|
|
1631
1631
|
});
|
|
1632
1632
|
d = i();
|
|
1633
1633
|
const g = await d;
|
|
1634
|
-
if (s.aborted ||
|
|
1634
|
+
if (s.aborted || u || !a()) throw new je({
|
|
1635
1635
|
revert: !0
|
|
1636
1636
|
});
|
|
1637
1637
|
return g;
|
|
@@ -1640,37 +1640,37 @@ function ue(t, e) {
|
|
|
1640
1640
|
}
|
|
1641
1641
|
}, [t, e, r]);
|
|
1642
1642
|
}
|
|
1643
|
-
const
|
|
1643
|
+
const ko = (t) => {
|
|
1644
1644
|
const e = q(20), {
|
|
1645
1645
|
pluginID: r,
|
|
1646
1646
|
route: n,
|
|
1647
1647
|
dimension: s,
|
|
1648
1648
|
enabled: i
|
|
1649
|
-
} = t, o = i === void 0 ? !0 : i, c = Q(r),
|
|
1649
|
+
} = t, o = i === void 0 ? !0 : i, c = Q(r), l = o && !!s;
|
|
1650
1650
|
let a;
|
|
1651
|
-
e[0] !== c || e[1] !== n.connection || e[2] !==
|
|
1651
|
+
e[0] !== c || e[1] !== n.connection || e[2] !== l ? (a = {
|
|
1652
1652
|
pluginID: c,
|
|
1653
1653
|
connectionID: n.connection,
|
|
1654
|
-
enabled:
|
|
1655
|
-
}, e[0] = c, e[1] = n.connection, e[2] =
|
|
1656
|
-
const d = le(a),
|
|
1654
|
+
enabled: l
|
|
1655
|
+
}, e[0] = c, e[1] = n.connection, e[2] = l, e[3] = a) : a = e[3];
|
|
1656
|
+
const d = le(a), u = ue(c, n.connection), f = o && !!c && !!n.connection && !!s && d.phase === "connected";
|
|
1657
1657
|
let p;
|
|
1658
1658
|
e[4] !== s || e[5] !== c || e[6] !== n ? (p = [c, "resource-v2", "scope-values", n, s], e[4] = s, e[5] = c, e[6] = n, e[7] = p) : p = e[7];
|
|
1659
1659
|
let v;
|
|
1660
|
-
e[8] !== s || e[9] !==
|
|
1660
|
+
e[8] !== s || e[9] !== u || e[10] !== c || e[11] !== f || e[12] !== n ? (v = f ? (y) => {
|
|
1661
1661
|
const {
|
|
1662
1662
|
signal: b,
|
|
1663
1663
|
queryKey: w
|
|
1664
1664
|
} = y;
|
|
1665
|
-
return
|
|
1666
|
-
} :
|
|
1665
|
+
return u(w, b, () => jn(c, n, s));
|
|
1666
|
+
} : ce, e[8] = s, e[9] = u, e[10] = c, e[11] = f, e[12] = n, e[13] = v) : v = e[13];
|
|
1667
1667
|
let h;
|
|
1668
1668
|
e[14] !== f || e[15] !== p || e[16] !== v ? (h = {
|
|
1669
1669
|
queryKey: p,
|
|
1670
1670
|
queryFn: v,
|
|
1671
1671
|
enabled: f
|
|
1672
1672
|
}, e[14] = f, e[15] = p, e[16] = v, e[17] = h) : h = e[17];
|
|
1673
|
-
const g =
|
|
1673
|
+
const g = j(h);
|
|
1674
1674
|
let m;
|
|
1675
1675
|
return e[18] !== g ? (m = {
|
|
1676
1676
|
values: g
|
|
@@ -1680,8 +1680,8 @@ function vt(t) {
|
|
|
1680
1680
|
const e = Object.values(t.states), r = e.length;
|
|
1681
1681
|
let n = 0, s = 0, i = 0, o = 0;
|
|
1682
1682
|
for (const d of e)
|
|
1683
|
-
d ===
|
|
1684
|
-
const c = r - o,
|
|
1683
|
+
d === K.WatchStateSynced && n++, (d === K.WatchStateError || d === K.WatchStateFailed) && s++, d === K.WatchStateForbidden && i++, d === K.WatchStateSkipped && o++;
|
|
1684
|
+
const c = r - o, l = e.filter((d) => d === K.WatchStateSynced || d === K.WatchStateError || d === K.WatchStateStopped || d === K.WatchStateFailed || d === K.WatchStateForbidden).length, a = c > 0 ? l / c : 0;
|
|
1685
1685
|
return {
|
|
1686
1686
|
pluginID: t.pluginID,
|
|
1687
1687
|
connectionID: t.connectionID,
|
|
@@ -1691,17 +1691,17 @@ function vt(t) {
|
|
|
1691
1691
|
errorCount: s,
|
|
1692
1692
|
forbiddenCount: i,
|
|
1693
1693
|
skippedCount: o,
|
|
1694
|
-
doneCount:
|
|
1694
|
+
doneCount: l,
|
|
1695
1695
|
progress: a
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
1698
|
function tt(t) {
|
|
1699
1699
|
return t.watchedTotal > 0 && t.doneCount >= t.watchedTotal;
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1701
|
+
function vn(t) {
|
|
1702
1702
|
return t.some((e) => !tt(e));
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function bn(t) {
|
|
1705
1705
|
const e = t.reduce((n, s) => n + s.watchedTotal, 0);
|
|
1706
1706
|
return e === 0 ? 0 : t.reduce((n, s) => n + s.doneCount, 0) / e;
|
|
1707
1707
|
}
|
|
@@ -1718,12 +1718,12 @@ function bt(t, e, r) {
|
|
|
1718
1718
|
const s = t.get(n);
|
|
1719
1719
|
return s.states[r.type] = r.state, s;
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1722
|
-
const [t, e] =
|
|
1721
|
+
function Oo() {
|
|
1722
|
+
const [t, e] = ge(/* @__PURE__ */ new Map()), r = ne(t), n = ne(/* @__PURE__ */ new Map()), s = ne(/* @__PURE__ */ new Map()), [i, o] = ge(!0), [c, l] = ge(), a = ne({
|
|
1723
1723
|
generation: 0
|
|
1724
|
-
}), [d,
|
|
1725
|
-
|
|
1726
|
-
const
|
|
1724
|
+
}), [d, u] = ge({}), [f, p] = ge(/* @__PURE__ */ new Map()), v = ne(/* @__PURE__ */ new Map()), [h, g] = ge(/* @__PURE__ */ new Map());
|
|
1725
|
+
he(() => {
|
|
1726
|
+
const C = W("plugin/crash_recovery_failed", (O) => {
|
|
1727
1727
|
const F = O.data, T = F?.pluginID;
|
|
1728
1728
|
T && g((x) => {
|
|
1729
1729
|
const M = new Map(x);
|
|
@@ -1738,88 +1738,88 @@ function Do() {
|
|
|
1738
1738
|
});
|
|
1739
1739
|
});
|
|
1740
1740
|
return () => {
|
|
1741
|
-
|
|
1741
|
+
C(), k();
|
|
1742
1742
|
};
|
|
1743
1743
|
}, []);
|
|
1744
1744
|
const m = we(async () => {
|
|
1745
|
-
const
|
|
1745
|
+
const C = ++a.current.generation;
|
|
1746
1746
|
n.current.clear(), s.current.clear();
|
|
1747
1747
|
let k;
|
|
1748
1748
|
try {
|
|
1749
|
-
k =
|
|
1749
|
+
k = Gn();
|
|
1750
1750
|
} catch (O) {
|
|
1751
1751
|
k = Promise.reject(O);
|
|
1752
1752
|
}
|
|
1753
1753
|
await k.then((O) => {
|
|
1754
|
-
if (
|
|
1754
|
+
if (C !== a.current.generation || !O) return;
|
|
1755
1755
|
const F = {}, T = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map();
|
|
1756
1756
|
for (const [M, J] of Object.entries(O))
|
|
1757
1757
|
if (J) {
|
|
1758
|
-
F[M] = J.map((
|
|
1759
|
-
for (const
|
|
1760
|
-
const z = JSON.stringify([M,
|
|
1761
|
-
readiness:
|
|
1762
|
-
readinessError:
|
|
1758
|
+
F[M] = J.map((G) => G.connection);
|
|
1759
|
+
for (const G of J) {
|
|
1760
|
+
const z = JSON.stringify([M, G.connection.id]), H = n.current.get(z) ?? {
|
|
1761
|
+
readiness: G.readiness,
|
|
1762
|
+
readinessError: G.readinessError
|
|
1763
1763
|
};
|
|
1764
1764
|
if (T.set(z, H), H.readiness !== "CONNECTED") continue;
|
|
1765
1765
|
const B = {
|
|
1766
1766
|
pluginID: M,
|
|
1767
|
-
connectionID:
|
|
1767
|
+
connectionID: G.connection.id,
|
|
1768
1768
|
states: {}
|
|
1769
1769
|
};
|
|
1770
|
-
if (
|
|
1771
|
-
for (const [
|
|
1772
|
-
B.states[
|
|
1770
|
+
if (G.resources)
|
|
1771
|
+
for (const [ee, U] of Object.entries(G.resources))
|
|
1772
|
+
B.states[ee] = U;
|
|
1773
1773
|
Object.assign(B.states, s.current.get(z)?.states), v.current.set(z, B), x.set(z, vt(B));
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
|
-
|
|
1776
|
+
u(F);
|
|
1777
1777
|
for (const [M, J] of n.current) T.set(M, J);
|
|
1778
1778
|
r.current = T, e(T), p(x);
|
|
1779
1779
|
}).catch((O) => {
|
|
1780
|
-
|
|
1780
|
+
C === a.current.generation && l(ye(O));
|
|
1781
1781
|
}).finally(() => {
|
|
1782
|
-
|
|
1782
|
+
C === a.current.generation && o(!1);
|
|
1783
1783
|
});
|
|
1784
1784
|
}, []), y = we(async () => {
|
|
1785
|
-
o(!0),
|
|
1785
|
+
o(!0), l(void 0), await m();
|
|
1786
1786
|
}, [m]);
|
|
1787
|
-
|
|
1788
|
-
const
|
|
1787
|
+
he(() => {
|
|
1788
|
+
const C = a.current;
|
|
1789
1789
|
return m().catch((k) => {
|
|
1790
1790
|
console.error("Connection status refresh failed:", k);
|
|
1791
1791
|
}), () => {
|
|
1792
|
-
++
|
|
1792
|
+
++C.generation;
|
|
1793
1793
|
};
|
|
1794
|
-
}, [m]),
|
|
1795
|
-
let
|
|
1794
|
+
}, [m]), he(() => {
|
|
1795
|
+
let C = !0, k = 0;
|
|
1796
1796
|
const O = W("connection/status", (F) => {
|
|
1797
1797
|
const T = F.data, x = JSON.stringify([T.pluginID, T.connectionID]), M = T.status === "DISCONNECTED" || T.status === "PENDING" || T.status === "CONNECTED" || T.status === "FAILED" ? T.status : "UNKNOWN", J = {
|
|
1798
1798
|
readiness: M
|
|
1799
1799
|
};
|
|
1800
1800
|
n.current.set(x, J);
|
|
1801
|
-
const
|
|
1802
|
-
|
|
1803
|
-
const
|
|
1804
|
-
return
|
|
1801
|
+
const G = new Map(r.current);
|
|
1802
|
+
G.set(x, J), r.current = G, e(G), M !== "CONNECTED" && (p((B) => {
|
|
1803
|
+
const ee = new Map(B);
|
|
1804
|
+
return ee.delete(x), ee;
|
|
1805
1805
|
}), v.current.delete(x), s.current.delete(x));
|
|
1806
1806
|
const z = ++k, H = a.current.generation;
|
|
1807
|
-
|
|
1808
|
-
if (!
|
|
1809
|
-
const
|
|
1807
|
+
Bn().then((B) => {
|
|
1808
|
+
if (!C || z !== k || H !== a.current.generation || !B) return;
|
|
1809
|
+
const ee = {};
|
|
1810
1810
|
for (const [U, V] of Object.entries(B))
|
|
1811
|
-
V != null && (
|
|
1812
|
-
|
|
1811
|
+
V != null && (ee[U] = V);
|
|
1812
|
+
u(ee);
|
|
1813
1813
|
}).catch((B) => {
|
|
1814
|
-
|
|
1814
|
+
C && z === k && H === a.current.generation && console.error("Connection metadata refresh failed:", B);
|
|
1815
1815
|
});
|
|
1816
1816
|
});
|
|
1817
1817
|
return () => {
|
|
1818
|
-
|
|
1818
|
+
C = !1, O();
|
|
1819
1819
|
};
|
|
1820
1820
|
}, []);
|
|
1821
|
-
const b = we((
|
|
1822
|
-
const k =
|
|
1821
|
+
const b = we((C) => {
|
|
1822
|
+
const k = C.data, O = kt(k.pluginID, k);
|
|
1823
1823
|
if (r.current.get(O)?.readiness !== "CONNECTED") return;
|
|
1824
1824
|
const F = bt(v.current, k.pluginID, k);
|
|
1825
1825
|
bt(s.current, k.pluginID, k);
|
|
@@ -1829,43 +1829,43 @@ function Do() {
|
|
|
1829
1829
|
return M.set(O, T), M;
|
|
1830
1830
|
});
|
|
1831
1831
|
}, []);
|
|
1832
|
-
|
|
1833
|
-
const w = we(async (
|
|
1834
|
-
await
|
|
1835
|
-
}, []), E = we(async (
|
|
1836
|
-
if (r.current.get(JSON.stringify([
|
|
1832
|
+
he(() => W("watch/STATE", b), [b]);
|
|
1833
|
+
const w = we(async (C, k) => {
|
|
1834
|
+
await mn(C, k);
|
|
1835
|
+
}, []), E = we(async (C, k) => {
|
|
1836
|
+
if (r.current.get(JSON.stringify([C, k]))?.readiness !== "CONNECTED") return;
|
|
1837
1837
|
const O = {
|
|
1838
1838
|
connection: k
|
|
1839
|
-
}, F = await
|
|
1839
|
+
}, F = await Ct(C, {
|
|
1840
1840
|
route: O
|
|
1841
|
-
}), T = await Promise.all(F.types.filter((x) => x.capabilities.some((M) => M.operation === "update")).map((x) => Vt(
|
|
1841
|
+
}), T = await Promise.all(F.types.filter((x) => x.capabilities.some((M) => M.operation === "update")).map((x) => Vt(C, {
|
|
1842
1842
|
route: O,
|
|
1843
1843
|
type: x.type
|
|
1844
1844
|
})));
|
|
1845
|
-
await Ht(
|
|
1846
|
-
}, []), _ = we(async (
|
|
1847
|
-
const k = h.get(
|
|
1845
|
+
await Ht(C, T.map((x) => x.target));
|
|
1846
|
+
}, []), _ = we(async (C) => {
|
|
1847
|
+
const k = h.get(C);
|
|
1848
1848
|
g((O) => {
|
|
1849
|
-
if (!O.has(
|
|
1849
|
+
if (!O.has(C)) return O;
|
|
1850
1850
|
const F = new Map(O);
|
|
1851
|
-
return F.delete(
|
|
1851
|
+
return F.delete(C), F;
|
|
1852
1852
|
});
|
|
1853
1853
|
try {
|
|
1854
|
-
await
|
|
1854
|
+
await zn(C);
|
|
1855
1855
|
} catch (O) {
|
|
1856
1856
|
throw g((F) => {
|
|
1857
1857
|
const T = new Map(F);
|
|
1858
|
-
return T.set(
|
|
1858
|
+
return T.set(C, k ?? "Reload failed"), T;
|
|
1859
1859
|
}), O;
|
|
1860
1860
|
}
|
|
1861
|
-
}, [h]),
|
|
1862
|
-
for (const [
|
|
1863
|
-
for (const O of k) I.add(JSON.stringify([
|
|
1864
|
-
for (const
|
|
1865
|
-
const [k, O] = JSON.parse(
|
|
1861
|
+
}, [h]), S = [], I = new Set(t.keys());
|
|
1862
|
+
for (const [C, k] of Object.entries(d))
|
|
1863
|
+
for (const O of k) I.add(JSON.stringify([C, O.id]));
|
|
1864
|
+
for (const C of I) {
|
|
1865
|
+
const [k, O] = JSON.parse(C), T = (d[k] ?? []).find((H) => H.id === O), x = t.get(C) ?? {
|
|
1866
1866
|
readiness: "UNKNOWN"
|
|
1867
|
-
}, M = x.readiness === "CONNECTED" ? f.get(
|
|
1868
|
-
|
|
1867
|
+
}, M = x.readiness === "CONNECTED" ? f.get(C) : void 0, J = M != null && !tt(M), G = M != null && M.errorCount > 0, z = h.get(k);
|
|
1868
|
+
S.push({
|
|
1869
1869
|
pluginID: k,
|
|
1870
1870
|
connectionID: O,
|
|
1871
1871
|
name: T?.name ?? O,
|
|
@@ -1874,50 +1874,50 @@ function Do() {
|
|
|
1874
1874
|
readinessError: x.readinessError,
|
|
1875
1875
|
sync: M,
|
|
1876
1876
|
isSyncing: J,
|
|
1877
|
-
hasErrors:
|
|
1877
|
+
hasErrors: G || z != null || x.readiness === "FAILED" || x.readinessError != null,
|
|
1878
1878
|
pluginFailed: z != null,
|
|
1879
1879
|
pluginError: z
|
|
1880
1880
|
});
|
|
1881
1881
|
}
|
|
1882
|
-
const
|
|
1883
|
-
for (const
|
|
1884
|
-
const k =
|
|
1885
|
-
k.push(
|
|
1882
|
+
const D = /* @__PURE__ */ new Map();
|
|
1883
|
+
for (const C of S) {
|
|
1884
|
+
const k = D.get(C.pluginID) ?? [];
|
|
1885
|
+
k.push(C), D.set(C.pluginID, k);
|
|
1886
1886
|
}
|
|
1887
|
-
const
|
|
1887
|
+
const R = S.flatMap((C) => C.sync ? [C.sync] : []), A = S.filter((C) => C.isSyncing), N = S.filter((C) => C.hasErrors), $ = S.filter((C) => C.pluginFailed);
|
|
1888
1888
|
return {
|
|
1889
1889
|
isLoading: i,
|
|
1890
1890
|
error: c,
|
|
1891
1891
|
refresh: y,
|
|
1892
|
-
entries:
|
|
1893
|
-
grouped:
|
|
1894
|
-
connectedCount:
|
|
1892
|
+
entries: S,
|
|
1893
|
+
grouped: D,
|
|
1894
|
+
connectedCount: S.filter((C) => C.readiness === "CONNECTED").length,
|
|
1895
1895
|
syncingCount: A.length,
|
|
1896
1896
|
errorCount: N.length,
|
|
1897
1897
|
failedCount: $.length,
|
|
1898
|
-
hasSyncing:
|
|
1899
|
-
aggregateProgress:
|
|
1898
|
+
hasSyncing: vn(R),
|
|
1899
|
+
aggregateProgress: bn(R),
|
|
1900
1900
|
disconnect: w,
|
|
1901
1901
|
retryWatch: E,
|
|
1902
1902
|
retryPlugin: _
|
|
1903
1903
|
};
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function To(t) {
|
|
1906
1906
|
const e = q(9), {
|
|
1907
1907
|
pluginID: r
|
|
1908
1908
|
} = t, n = Q(r);
|
|
1909
1909
|
let s, i;
|
|
1910
1910
|
e[0] !== n ? (s = [n, "connection", "profiles"], i = (d) => {
|
|
1911
1911
|
const {
|
|
1912
|
-
signal:
|
|
1912
|
+
signal: u
|
|
1913
1913
|
} = d;
|
|
1914
|
-
|
|
1915
|
-
const f =
|
|
1914
|
+
u.throwIfAborted();
|
|
1915
|
+
const f = Jn(n), p = () => {
|
|
1916
1916
|
f.cancel();
|
|
1917
1917
|
};
|
|
1918
|
-
return
|
|
1918
|
+
return u.addEventListener("abort", p, {
|
|
1919
1919
|
once: !0
|
|
1920
|
-
}), f.finally(() =>
|
|
1920
|
+
}), f.finally(() => u.removeEventListener("abort", p));
|
|
1921
1921
|
}, e[0] = n, e[1] = s, e[2] = i) : (s = e[1], i = e[2]);
|
|
1922
1922
|
const o = !!n;
|
|
1923
1923
|
let c;
|
|
@@ -1927,13 +1927,13 @@ function Ro(t) {
|
|
|
1927
1927
|
enabled: o,
|
|
1928
1928
|
retry: !1
|
|
1929
1929
|
}, e[3] = s, e[4] = i, e[5] = o, e[6] = c) : c = e[6];
|
|
1930
|
-
const
|
|
1930
|
+
const l = j(c);
|
|
1931
1931
|
let a;
|
|
1932
|
-
return e[7] !==
|
|
1933
|
-
profiles:
|
|
1934
|
-
}, e[7] =
|
|
1932
|
+
return e[7] !== l ? (a = {
|
|
1933
|
+
profiles: l
|
|
1934
|
+
}, e[7] = l, e[8] = a) : a = e[8], a;
|
|
1935
1935
|
}
|
|
1936
|
-
const
|
|
1936
|
+
const ps = {
|
|
1937
1937
|
display: "flex",
|
|
1938
1938
|
alignItems: "center",
|
|
1939
1939
|
justifyContent: "center",
|
|
@@ -1942,22 +1942,22 @@ const ls = {
|
|
|
1942
1942
|
padding: 24,
|
|
1943
1943
|
boxSizing: "border-box",
|
|
1944
1944
|
color: "var(--ov-color-fg-default)"
|
|
1945
|
-
},
|
|
1945
|
+
}, gs = {
|
|
1946
1946
|
width: "100%",
|
|
1947
1947
|
maxWidth: 560,
|
|
1948
1948
|
minWidth: 0,
|
|
1949
1949
|
display: "flex",
|
|
1950
1950
|
flexDirection: "column",
|
|
1951
1951
|
gap: 16
|
|
1952
|
-
},
|
|
1952
|
+
}, hs = {
|
|
1953
1953
|
display: "flex",
|
|
1954
1954
|
alignItems: "center",
|
|
1955
1955
|
gap: 12
|
|
1956
|
-
},
|
|
1956
|
+
}, ys = {
|
|
1957
1957
|
margin: 0,
|
|
1958
1958
|
fontSize: "1.125rem",
|
|
1959
1959
|
fontWeight: 600
|
|
1960
|
-
},
|
|
1960
|
+
}, ms = {
|
|
1961
1961
|
display: "flex",
|
|
1962
1962
|
flexWrap: "wrap",
|
|
1963
1963
|
gap: 8
|
|
@@ -1965,11 +1965,11 @@ const ls = {
|
|
|
1965
1965
|
margin: 0,
|
|
1966
1966
|
whiteSpace: "pre-wrap",
|
|
1967
1967
|
overflowWrap: "anywhere"
|
|
1968
|
-
},
|
|
1968
|
+
}, vs = {
|
|
1969
1969
|
width: 20,
|
|
1970
1970
|
height: 20,
|
|
1971
1971
|
flexShrink: 0
|
|
1972
|
-
},
|
|
1972
|
+
}, bs = {
|
|
1973
1973
|
checking: {
|
|
1974
1974
|
title: "Checking connection",
|
|
1975
1975
|
description: "Checking whether this connection is ready before loading resources."
|
|
@@ -1999,7 +1999,7 @@ const ls = {
|
|
|
1999
1999
|
description: "Check the connection settings and network, then connect again or retry the check."
|
|
2000
2000
|
}
|
|
2001
2001
|
};
|
|
2002
|
-
function
|
|
2002
|
+
function ws(t) {
|
|
2003
2003
|
const e = q(44), {
|
|
2004
2004
|
state: r,
|
|
2005
2005
|
connectionName: n,
|
|
@@ -2007,23 +2007,23 @@ function ys(t) {
|
|
|
2007
2007
|
onEditConnection: i,
|
|
2008
2008
|
onBack: o,
|
|
2009
2009
|
backLabel: c
|
|
2010
|
-
} = t,
|
|
2010
|
+
} = t, l = c === void 0 ? "Back to connections" : c, a = Cn();
|
|
2011
2011
|
if (r.phase === "connected")
|
|
2012
2012
|
return null;
|
|
2013
|
-
const d = r.phase === "checking" || r.phase === "connecting",
|
|
2013
|
+
const d = r.phase === "checking" || r.phase === "connecting", u = bs[r.phase], f = n ?? r.connection?.name;
|
|
2014
2014
|
let p;
|
|
2015
2015
|
e[0] !== s || e[1] !== f ? (p = s ?? (f && /* @__PURE__ */ P(_e, { size: "sm", tone: "muted", style: ut, children: f })), e[0] = s, e[1] = f, e[2] = p) : p = e[2];
|
|
2016
2016
|
let v;
|
|
2017
|
-
e[3] !== d ? (v = d && /* @__PURE__ */ P(
|
|
2017
|
+
e[3] !== d ? (v = d && /* @__PURE__ */ P(Fr, { style: vs, "aria-hidden": "true" }), e[3] = d, e[4] = v) : v = e[4];
|
|
2018
2018
|
let h;
|
|
2019
|
-
e[5] !== a || e[6] !==
|
|
2019
|
+
e[5] !== a || e[6] !== u.title ? (h = /* @__PURE__ */ P("h2", { id: a, style: ys, children: u.title }), e[5] = a, e[6] = u.title, e[7] = h) : h = e[7];
|
|
2020
2020
|
let g;
|
|
2021
|
-
e[8] !== v || e[9] !== h ? (g = /* @__PURE__ */ te("div", { style:
|
|
2021
|
+
e[8] !== v || e[9] !== h ? (g = /* @__PURE__ */ te("div", { style: hs, role: "status", "aria-live": "polite", children: [
|
|
2022
2022
|
v,
|
|
2023
2023
|
h
|
|
2024
2024
|
] }), e[8] = v, e[9] = h, e[10] = g) : g = e[10];
|
|
2025
2025
|
let m;
|
|
2026
|
-
e[11] !==
|
|
2026
|
+
e[11] !== u.description ? (m = /* @__PURE__ */ P(_e, { as: "p", size: "sm", tone: "muted", style: ut, children: u.description }), e[11] = u.description, e[12] = m) : m = e[12];
|
|
2027
2027
|
let y;
|
|
2028
2028
|
e[13] !== d || e[14] !== r.message ? (y = r.message && /* @__PURE__ */ P(_e, { as: "p", size: "sm", style: ut, role: d ? "status" : "alert", children: r.message }), e[13] = d, e[14] = r.message, e[15] = y) : y = e[15];
|
|
2029
2029
|
let b;
|
|
@@ -2037,29 +2037,29 @@ function ys(t) {
|
|
|
2037
2037
|
}, e[19] = r, e[20] = E) : E = e[20];
|
|
2038
2038
|
let _;
|
|
2039
2039
|
e[21] !== E || e[22] !== w ? (_ = /* @__PURE__ */ P(Oe, { size: "sm", variant: "outline", color: "neutral", disabled: w, onClick: E, children: "Retry check" }), e[21] = E, e[22] = w, e[23] = _) : _ = e[23];
|
|
2040
|
-
let
|
|
2041
|
-
e[24] !== i ? (
|
|
2040
|
+
let S;
|
|
2041
|
+
e[24] !== i ? (S = i && /* @__PURE__ */ P(Oe, { size: "sm", variant: "outline", color: "neutral", onClick: i, children: "Edit connection" }), e[24] = i, e[25] = S) : S = e[25];
|
|
2042
2042
|
let I;
|
|
2043
|
-
e[26] !==
|
|
2044
|
-
let
|
|
2045
|
-
e[29] !== _ || e[30] !==
|
|
2043
|
+
e[26] !== l || e[27] !== o ? (I = o && /* @__PURE__ */ P(Oe, { size: "sm", variant: "outline", color: "neutral", onClick: o, children: l }), e[26] = l, e[27] = o, e[28] = I) : I = e[28];
|
|
2044
|
+
let D;
|
|
2045
|
+
e[29] !== _ || e[30] !== S || e[31] !== I || e[32] !== b ? (D = /* @__PURE__ */ te("div", { style: ms, children: [
|
|
2046
2046
|
b,
|
|
2047
2047
|
_,
|
|
2048
|
-
|
|
2048
|
+
S,
|
|
2049
2049
|
I
|
|
2050
|
-
] }), e[29] = _, e[30] =
|
|
2051
|
-
let
|
|
2052
|
-
e[34] !==
|
|
2050
|
+
] }), e[29] = _, e[30] = S, e[31] = I, e[32] = b, e[33] = D) : D = e[33];
|
|
2051
|
+
let R;
|
|
2052
|
+
e[34] !== D || e[35] !== p || e[36] !== g || e[37] !== m || e[38] !== y ? (R = /* @__PURE__ */ te("div", { style: gs, children: [
|
|
2053
2053
|
p,
|
|
2054
2054
|
g,
|
|
2055
2055
|
m,
|
|
2056
2056
|
y,
|
|
2057
|
-
|
|
2058
|
-
] }), e[34] =
|
|
2057
|
+
D
|
|
2058
|
+
] }), e[34] = D, e[35] = p, e[36] = g, e[37] = m, e[38] = y, e[39] = R) : R = e[39];
|
|
2059
2059
|
let A;
|
|
2060
|
-
return e[40] !== d || e[41] !== a || e[42] !==
|
|
2060
|
+
return e[40] !== d || e[41] !== a || e[42] !== R ? (A = /* @__PURE__ */ P("section", { style: ps, "aria-labelledby": a, "aria-busy": d, children: R }), e[40] = d, e[41] = a, e[42] = R, e[43] = A) : A = e[43], A;
|
|
2061
2061
|
}
|
|
2062
|
-
function
|
|
2062
|
+
function Es(t) {
|
|
2063
2063
|
const e = q(9), {
|
|
2064
2064
|
pluginID: r,
|
|
2065
2065
|
connectionID: n,
|
|
@@ -2074,24 +2074,24 @@ function ms(t) {
|
|
|
2074
2074
|
const c = le(o);
|
|
2075
2075
|
if (c.phase !== "connected") {
|
|
2076
2076
|
let a;
|
|
2077
|
-
return e[3] !== n || e[4] !== i || e[5] !== c ? (a = i ? i(c) : /* @__PURE__ */ P(
|
|
2077
|
+
return e[3] !== n || e[4] !== i || e[5] !== c ? (a = i ? i(c) : /* @__PURE__ */ P(ws, { state: c, connectionName: c.connection?.name || n }), e[3] = n, e[4] = i, e[5] = c, e[6] = a) : a = e[6], a;
|
|
2078
2078
|
}
|
|
2079
|
-
let
|
|
2080
|
-
return e[7] !== s ? (
|
|
2079
|
+
let l;
|
|
2080
|
+
return e[7] !== s ? (l = /* @__PURE__ */ P(It, { children: s }), e[7] = s, e[8] = l) : l = e[8], l;
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2082
|
+
function Ao(t) {
|
|
2083
2083
|
const e = q(7), r = Q(t.pluginID);
|
|
2084
2084
|
let n;
|
|
2085
2085
|
e[0] !== r || e[1] !== t.connectionID ? (n = JSON.stringify([r, t.connectionID]), e[0] = r, e[1] = t.connectionID, e[2] = n) : n = e[2];
|
|
2086
2086
|
let s;
|
|
2087
|
-
return e[3] !== r || e[4] !== t || e[5] !== n ? (s = /* @__PURE__ */
|
|
2087
|
+
return e[3] !== r || e[4] !== t || e[5] !== n ? (s = /* @__PURE__ */ In(Es, { ...t, pluginID: r, key: n }), e[3] = r, e[4] = t, e[5] = n, e[6] = s) : s = e[6], s;
|
|
2088
2088
|
}
|
|
2089
2089
|
const ze = {
|
|
2090
2090
|
supported: void 0,
|
|
2091
2091
|
transportAvailable: !1,
|
|
2092
2092
|
isLoading: !1
|
|
2093
2093
|
}, Fe = /* @__PURE__ */ new Map();
|
|
2094
|
-
let dt,
|
|
2094
|
+
let dt, Kt = 0;
|
|
2095
2095
|
function Ee(t, e) {
|
|
2096
2096
|
const r = {
|
|
2097
2097
|
...t.state,
|
|
@@ -2115,29 +2115,29 @@ function qe(t, e) {
|
|
|
2115
2115
|
eventVersion: 0
|
|
2116
2116
|
}, r.connections.set(e, n)), n;
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2118
|
+
function Ss(t) {
|
|
2119
2119
|
return t && /^[0-9]+$/.test(t) ? BigInt(t) : void 0;
|
|
2120
2120
|
}
|
|
2121
|
-
function
|
|
2121
|
+
function wn(t, e) {
|
|
2122
2122
|
if (Object.is(t, e)) return !0;
|
|
2123
2123
|
if (t === null || e === null || typeof t != "object" || typeof e != "object" || Array.isArray(t) !== Array.isArray(e)) return !1;
|
|
2124
2124
|
const r = t, n = e, s = Object.keys(r);
|
|
2125
|
-
return s.length !== Object.keys(n).length ? !1 : s.every((i) => Object.prototype.hasOwnProperty.call(n, i) &&
|
|
2125
|
+
return s.length !== Object.keys(n).length ? !1 : s.every((i) => Object.prototype.hasOwnProperty.call(n, i) && wn(r[i], n[i]));
|
|
2126
2126
|
}
|
|
2127
|
-
function
|
|
2127
|
+
function Is(t, e) {
|
|
2128
2128
|
if (!t) return e;
|
|
2129
2129
|
const r = {
|
|
2130
2130
|
...e.entries
|
|
2131
2131
|
};
|
|
2132
2132
|
let n = Object.keys(t.entries).length === Object.keys(r).length;
|
|
2133
2133
|
for (const s of Object.keys(r))
|
|
2134
|
-
|
|
2134
|
+
wn(t.entries[s], r[s]) ? r[s] = t.entries[s] : n = !1;
|
|
2135
2135
|
return {
|
|
2136
2136
|
...e,
|
|
2137
2137
|
entries: n ? t.entries : r
|
|
2138
2138
|
};
|
|
2139
2139
|
}
|
|
2140
|
-
function
|
|
2140
|
+
function En(t, e) {
|
|
2141
2141
|
const r = Fe.get(t.pluginID);
|
|
2142
2142
|
if (!r || r.retired.has(t.registrationID)) return;
|
|
2143
2143
|
if (r.registrationID !== t.registrationID) {
|
|
@@ -2156,9 +2156,9 @@ function wn(t, e) {
|
|
|
2156
2156
|
const n = t.snapshot?.connectionID ?? t.connectionID, s = n === void 0 ? [...r.connections.values()] : [r.connections.get(n)].filter((i) => !!i);
|
|
2157
2157
|
for (const i of s) {
|
|
2158
2158
|
e && i.eventVersion++;
|
|
2159
|
-
const o = i.state.transportAvailable, c =
|
|
2159
|
+
const o = i.state.transportAvailable, c = Ss(t.snapshot?.revision ?? t.revision);
|
|
2160
2160
|
if (c !== void 0 && (i.revision === void 0 || c > i.revision) && (i.revision = c, Ee(i, {
|
|
2161
|
-
snapshot: t.removed ? void 0 : t.snapshot ?
|
|
2161
|
+
snapshot: t.removed ? void 0 : t.snapshot ? Is(i.state.snapshot, t.snapshot) : i.state.snapshot
|
|
2162
2162
|
})), !t.transportAvailable) {
|
|
2163
2163
|
i.epoch++, i.pending = void 0, Ee(i, {
|
|
2164
2164
|
supported: t.supported,
|
|
@@ -2193,13 +2193,13 @@ function Ye(t, e) {
|
|
|
2193
2193
|
isLoading: !0,
|
|
2194
2194
|
error: void 0
|
|
2195
2195
|
});
|
|
2196
|
-
const s = e ?
|
|
2196
|
+
const s = e ? Vn : Hn, i = Promise.resolve().then(() => {
|
|
2197
2197
|
if (!(t.epoch !== r || !t.listeners.size || t.state.supported === !1))
|
|
2198
2198
|
return s(t.pluginID, t.connectionID);
|
|
2199
2199
|
}).then((o) => {
|
|
2200
2200
|
if (!o || t.epoch !== r || !t.listeners.size || o.pluginID !== t.pluginID) return;
|
|
2201
2201
|
const c = o.snapshot?.connectionID ?? o.connectionID;
|
|
2202
|
-
c !== void 0 && c !== t.connectionID ||
|
|
2202
|
+
c !== void 0 && c !== t.connectionID || En({
|
|
2203
2203
|
...o,
|
|
2204
2204
|
connectionID: t.connectionID
|
|
2205
2205
|
}, !1);
|
|
@@ -2216,36 +2216,36 @@ function Ye(t, e) {
|
|
|
2216
2216
|
return e || (t.pending = i), i;
|
|
2217
2217
|
}
|
|
2218
2218
|
function Ot(t, e) {
|
|
2219
|
-
return t.listeners.add(e),
|
|
2220
|
-
t.listeners.delete(e), t.listeners.size || (t.epoch++, t.pending = void 0, Fe.get(t.pluginID)?.connections.delete(t.connectionID)), --
|
|
2219
|
+
return t.listeners.add(e), Kt++ === 0 && (dt = W("resource/connection/metadata", (r) => En(r.data, !0))), t.listeners.size === 1 && Ye(t, !1), () => {
|
|
2220
|
+
t.listeners.delete(e), t.listeners.size || (t.epoch++, t.pending = void 0, Fe.get(t.pluginID)?.connections.delete(t.connectionID)), --Kt === 0 && (dt?.(), dt = void 0, Fe.clear());
|
|
2221
2221
|
};
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2223
|
+
function Po(t, e) {
|
|
2224
2224
|
const r = q(15), n = Q(t), s = n !== void 0 && e !== void 0;
|
|
2225
2225
|
let i;
|
|
2226
|
-
r[0] !== e || r[1] !== s || r[2] !== n ? (i = (p) => s ? Ot(qe(n, e), p) :
|
|
2226
|
+
r[0] !== e || r[1] !== s || r[2] !== n ? (i = (p) => s ? Ot(qe(n, e), p) : _s, r[0] = e, r[1] = s, r[2] = n, r[3] = i) : i = r[3];
|
|
2227
2227
|
const o = i;
|
|
2228
2228
|
let c;
|
|
2229
2229
|
r[4] !== e || r[5] !== s || r[6] !== n ? (c = () => s ? qe(n, e).state : ze, r[4] = e, r[5] = s, r[6] = n, r[7] = c) : c = r[7];
|
|
2230
|
-
const a = Me(o, c,
|
|
2230
|
+
const a = Me(o, c, Cs);
|
|
2231
2231
|
let d;
|
|
2232
2232
|
r[8] !== e || r[9] !== s || r[10] !== n ? (d = () => {
|
|
2233
2233
|
const p = s ? Fe.get(n)?.connections.get(e) : void 0;
|
|
2234
2234
|
return p ? Ye(p, !0) : Promise.resolve();
|
|
2235
2235
|
}, r[8] = e, r[9] = s, r[10] = n, r[11] = d) : d = r[11];
|
|
2236
|
-
const
|
|
2236
|
+
const u = d;
|
|
2237
2237
|
let f;
|
|
2238
|
-
return r[12] !==
|
|
2238
|
+
return r[12] !== u || r[13] !== a ? (f = {
|
|
2239
2239
|
...a,
|
|
2240
|
-
refresh:
|
|
2241
|
-
}, r[12] =
|
|
2240
|
+
refresh: u
|
|
2241
|
+
}, r[12] = u, r[13] = a, r[14] = f) : f = r[14], f;
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2243
|
+
function Cs() {
|
|
2244
2244
|
return ze;
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2246
|
+
function _s() {
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function Ds(t, e) {
|
|
2249
2249
|
const r = JSON.parse(e);
|
|
2250
2250
|
let n = /* @__PURE__ */ new Map();
|
|
2251
2251
|
return {
|
|
@@ -2259,17 +2259,17 @@ function Ss(t, e) {
|
|
|
2259
2259
|
}
|
|
2260
2260
|
};
|
|
2261
2261
|
}
|
|
2262
|
-
function
|
|
2262
|
+
function xo(t, e) {
|
|
2263
2263
|
const r = q(5), n = Q(t);
|
|
2264
2264
|
let s;
|
|
2265
2265
|
r[0] !== e ? (s = JSON.stringify([...new Set(e)]), r[0] = e, r[1] = s) : s = r[1];
|
|
2266
2266
|
const i = s;
|
|
2267
2267
|
let o;
|
|
2268
|
-
r[2] !== i || r[3] !== n ? (o =
|
|
2268
|
+
r[2] !== i || r[3] !== n ? (o = Ds(n, i), r[2] = i, r[3] = n, r[4] = o) : o = r[4];
|
|
2269
2269
|
const c = o;
|
|
2270
2270
|
return Me(c.subscribe, c.read, c.read);
|
|
2271
2271
|
}
|
|
2272
|
-
function
|
|
2272
|
+
function Rs(t, e, r) {
|
|
2273
2273
|
let n, s;
|
|
2274
2274
|
return {
|
|
2275
2275
|
read() {
|
|
@@ -2278,46 +2278,46 @@ function Cs(t, e, r) {
|
|
|
2278
2278
|
}
|
|
2279
2279
|
};
|
|
2280
2280
|
}
|
|
2281
|
-
function
|
|
2281
|
+
function Lo(t, e, r) {
|
|
2282
2282
|
const n = q(7), s = Q(t);
|
|
2283
2283
|
let i;
|
|
2284
|
-
n[0] !== e || n[1] !== s ? (i = (a) => e === void 0 ?
|
|
2284
|
+
n[0] !== e || n[1] !== s ? (i = (a) => e === void 0 ? Ns : Ot(qe(s, e), a), n[0] = e, n[1] = s, n[2] = i) : i = n[2];
|
|
2285
2285
|
const o = i;
|
|
2286
2286
|
let c;
|
|
2287
|
-
n[3] !== e || n[4] !== s || n[5] !== r ? (c =
|
|
2288
|
-
const
|
|
2289
|
-
return Me(o,
|
|
2287
|
+
n[3] !== e || n[4] !== s || n[5] !== r ? (c = Rs(s, e, r), n[3] = e, n[4] = s, n[5] = r, n[6] = c) : c = n[6];
|
|
2288
|
+
const l = c;
|
|
2289
|
+
return Me(o, l.read, l.read);
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2291
|
+
function Ns() {
|
|
2292
2292
|
}
|
|
2293
|
-
function
|
|
2293
|
+
function Fo(t, e, r) {
|
|
2294
2294
|
if (!e || !t?.active) return;
|
|
2295
2295
|
const n = t.entries[r];
|
|
2296
2296
|
return n?.state === "current" && typeof n.value == "string" ? n.value : void 0;
|
|
2297
2297
|
}
|
|
2298
|
-
function
|
|
2298
|
+
function ks(t, e) {
|
|
2299
2299
|
return e === null ? t === null : Array.isArray(e) ? Array.isArray(t) : typeof e == "object" ? typeof t == "object" && t !== null && !Array.isArray(t) : typeof t == typeof e;
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2302
|
-
const n = q(29), s = Q(t), i =
|
|
2301
|
+
function qo(t, e, r) {
|
|
2302
|
+
const n = q(29), s = Q(t), i = ie();
|
|
2303
2303
|
let o;
|
|
2304
2304
|
n[0] !== e || n[1] !== s ? (o = [s, "data", e], n[0] = e, n[1] = s, n[2] = o) : o = n[2];
|
|
2305
2305
|
const c = o;
|
|
2306
|
-
let
|
|
2307
|
-
n[3] !== r || n[4] !== e || n[5] !== s ? (
|
|
2308
|
-
const w = await
|
|
2309
|
-
return w == null ? r :
|
|
2310
|
-
}, n[3] = r, n[4] = e, n[5] = s, n[6] =
|
|
2306
|
+
let l;
|
|
2307
|
+
n[3] !== r || n[4] !== e || n[5] !== s ? (l = async () => {
|
|
2308
|
+
const w = await Yn(s, e);
|
|
2309
|
+
return w == null ? r : ks(w, r) ? w : (console.warn(`[usePluginData] stored value for "${e}" has unexpected type (expected ${Array.isArray(r) ? "array" : typeof r}, got ${Array.isArray(w) ? "array" : typeof w}). Using default.`), r);
|
|
2310
|
+
}, n[3] = r, n[4] = e, n[5] = s, n[6] = l) : l = n[6];
|
|
2311
2311
|
let a;
|
|
2312
|
-
n[7] !== c || n[8] !==
|
|
2312
|
+
n[7] !== c || n[8] !== l ? (a = {
|
|
2313
2313
|
queryKey: c,
|
|
2314
|
-
queryFn:
|
|
2315
|
-
}, n[7] = c, n[8] =
|
|
2316
|
-
const d =
|
|
2317
|
-
let
|
|
2318
|
-
n[10] !== e || n[11] !== s ? (
|
|
2319
|
-
await
|
|
2320
|
-
}, n[10] = e, n[11] = s, n[12] =
|
|
2314
|
+
queryFn: l
|
|
2315
|
+
}, n[7] = c, n[8] = l, n[9] = a) : a = n[9];
|
|
2316
|
+
const d = j(a);
|
|
2317
|
+
let u;
|
|
2318
|
+
n[10] !== e || n[11] !== s ? (u = async (w) => {
|
|
2319
|
+
await Zn(s, e, w);
|
|
2320
|
+
}, n[10] = e, n[11] = s, n[12] = u) : u = n[12];
|
|
2321
2321
|
let f, p, v;
|
|
2322
2322
|
n[13] !== i || n[14] !== c ? (f = async (w) => {
|
|
2323
2323
|
await i.cancelQueries({
|
|
@@ -2335,13 +2335,13 @@ function Po(t, e, r) {
|
|
|
2335
2335
|
});
|
|
2336
2336
|
}, n[13] = i, n[14] = c, n[15] = f, n[16] = p, n[17] = v) : (f = n[15], p = n[16], v = n[17]);
|
|
2337
2337
|
let h;
|
|
2338
|
-
n[18] !==
|
|
2339
|
-
mutationFn:
|
|
2338
|
+
n[18] !== u || n[19] !== f || n[20] !== p || n[21] !== v ? (h = {
|
|
2339
|
+
mutationFn: u,
|
|
2340
2340
|
onMutate: f,
|
|
2341
2341
|
onError: p,
|
|
2342
2342
|
onSettled: v
|
|
2343
|
-
}, n[18] =
|
|
2344
|
-
const g =
|
|
2343
|
+
}, n[18] = u, n[19] = f, n[20] = p, n[21] = v, n[22] = h) : h = n[22];
|
|
2344
|
+
const g = X(h), m = d.data ?? r;
|
|
2345
2345
|
let y;
|
|
2346
2346
|
n[23] !== g ? (y = async (w) => {
|
|
2347
2347
|
await g.mutateAsync(w);
|
|
@@ -2353,38 +2353,38 @@ function Po(t, e, r) {
|
|
|
2353
2353
|
isLoading: d.isLoading
|
|
2354
2354
|
}, n[25] = d.isLoading, n[26] = m, n[27] = y, n[28] = b) : b = n[28], b;
|
|
2355
2355
|
}
|
|
2356
|
-
const
|
|
2357
|
-
const t = $e(
|
|
2356
|
+
const $o = () => {
|
|
2357
|
+
const t = $e(Yr);
|
|
2358
2358
|
if (!t)
|
|
2359
2359
|
throw new Error("useRightDrawer must be used within a RightDrawerProvider");
|
|
2360
2360
|
return t;
|
|
2361
|
-
},
|
|
2362
|
-
const t = $e(
|
|
2361
|
+
}, Sn = () => {
|
|
2362
|
+
const t = $e(Vr);
|
|
2363
2363
|
if (t === void 0)
|
|
2364
2364
|
throw new Error("useBottomDrawer must be used within a BottomDrawerProvider");
|
|
2365
2365
|
return t;
|
|
2366
|
-
},
|
|
2366
|
+
}, Mo = ({
|
|
2367
2367
|
pluginID: t
|
|
2368
2368
|
}) => {
|
|
2369
2369
|
const e = Q(t), {
|
|
2370
2370
|
showSnackbar: r
|
|
2371
|
-
} =
|
|
2371
|
+
} = fe(), {
|
|
2372
2372
|
createTab: n,
|
|
2373
2373
|
updateTab: s
|
|
2374
|
-
} =
|
|
2374
|
+
} = Sn();
|
|
2375
2375
|
return {
|
|
2376
|
-
createSession:
|
|
2376
|
+
createSession: X({
|
|
2377
2377
|
mutationFn: async ({
|
|
2378
2378
|
connectionID: o,
|
|
2379
2379
|
icon: c,
|
|
2380
|
-
label:
|
|
2380
|
+
label: l,
|
|
2381
2381
|
opts: a,
|
|
2382
2382
|
recovery: d
|
|
2383
2383
|
}) => {
|
|
2384
|
-
const
|
|
2384
|
+
const u = `pending-${crypto.randomUUID()}`;
|
|
2385
2385
|
n({
|
|
2386
|
-
id:
|
|
2387
|
-
title:
|
|
2386
|
+
id: u,
|
|
2387
|
+
title: l ?? "Connecting...",
|
|
2388
2388
|
variant: "terminal",
|
|
2389
2389
|
icon: c ?? "LuSquareTerminal",
|
|
2390
2390
|
properties: {
|
|
@@ -2397,19 +2397,19 @@ const xo = () => {
|
|
|
2397
2397
|
recovery: d
|
|
2398
2398
|
}
|
|
2399
2399
|
});
|
|
2400
|
-
const f =
|
|
2400
|
+
const f = tn.createFrom({
|
|
2401
2401
|
command: ["/bin/bash"],
|
|
2402
2402
|
tty: !0,
|
|
2403
2403
|
...a
|
|
2404
2404
|
});
|
|
2405
2405
|
try {
|
|
2406
|
-
const p = await
|
|
2406
|
+
const p = await Xn(e, o, f);
|
|
2407
2407
|
if (!p) throw new Error("Failed to create session: null response");
|
|
2408
2408
|
return s({
|
|
2409
|
-
id:
|
|
2409
|
+
id: u
|
|
2410
2410
|
}, {
|
|
2411
2411
|
id: p.id,
|
|
2412
|
-
title:
|
|
2412
|
+
title: l ?? `Session ${p.id.substring(0, 8)}`,
|
|
2413
2413
|
properties: {
|
|
2414
2414
|
status: "connected",
|
|
2415
2415
|
pluginID: e,
|
|
@@ -2421,9 +2421,9 @@ const xo = () => {
|
|
|
2421
2421
|
}
|
|
2422
2422
|
}), p;
|
|
2423
2423
|
} catch (p) {
|
|
2424
|
-
const v =
|
|
2424
|
+
const v = ye(p);
|
|
2425
2425
|
return s({
|
|
2426
|
-
id:
|
|
2426
|
+
id: u
|
|
2427
2427
|
}, {
|
|
2428
2428
|
properties: {
|
|
2429
2429
|
status: "error",
|
|
@@ -2440,19 +2440,94 @@ const xo = () => {
|
|
|
2440
2440
|
raw: v.detail
|
|
2441
2441
|
}
|
|
2442
2442
|
}
|
|
2443
|
-
}),
|
|
2443
|
+
}), Ae(r, p, "Failed to start session"), null;
|
|
2444
2444
|
}
|
|
2445
2445
|
}
|
|
2446
2446
|
}).mutateAsync
|
|
2447
2447
|
};
|
|
2448
|
-
}
|
|
2448
|
+
};
|
|
2449
|
+
function Uo(t) {
|
|
2450
|
+
const e = q(29), {
|
|
2451
|
+
pluginID: r,
|
|
2452
|
+
resourceKey: n
|
|
2453
|
+
} = t, s = Q(r), {
|
|
2454
|
+
showSnackbar: i
|
|
2455
|
+
} = fe(), o = ie();
|
|
2456
|
+
let c;
|
|
2457
|
+
e[0] !== s || e[1] !== n ? (c = ["exec", "native-launch", s, n], e[0] = s, e[1] = n, e[2] = c) : c = e[2];
|
|
2458
|
+
const l = c;
|
|
2459
|
+
let a;
|
|
2460
|
+
e[3] !== l ? (a = {
|
|
2461
|
+
mutationKey: l,
|
|
2462
|
+
exact: !0
|
|
2463
|
+
}, e[3] = l, e[4] = a) : a = e[4];
|
|
2464
|
+
const d = Rn(a) > 0;
|
|
2465
|
+
let u;
|
|
2466
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
2467
|
+
queryKey: ["exec", "native-terminal-support"],
|
|
2468
|
+
queryFn: er,
|
|
2469
|
+
staleTime: 1 / 0,
|
|
2470
|
+
retry: !1
|
|
2471
|
+
}, e[5] = u) : u = e[5];
|
|
2472
|
+
const f = j(u);
|
|
2473
|
+
let p, v;
|
|
2474
|
+
e[6] !== s || e[7] !== n ? (p = ["executions", s, n, "actions"], v = async () => ({
|
|
2475
|
+
exec: await tr(s, n)
|
|
2476
|
+
}), e[6] = s, e[7] = n, e[8] = p, e[9] = v) : (p = e[8], v = e[9]);
|
|
2477
|
+
const h = !!n && f.data === !0;
|
|
2478
|
+
let g;
|
|
2479
|
+
e[10] !== p || e[11] !== v || e[12] !== h ? (g = {
|
|
2480
|
+
queryKey: p,
|
|
2481
|
+
queryFn: v,
|
|
2482
|
+
enabled: h,
|
|
2483
|
+
retry: !1
|
|
2484
|
+
}, e[10] = p, e[11] = v, e[12] = h, e[13] = g) : g = e[13];
|
|
2485
|
+
const m = j(g), y = f.isSuccess && f.data === !0 && m.isSuccess && m.data.exec?.supports_native_command === !0;
|
|
2486
|
+
let b;
|
|
2487
|
+
e[14] !== s || e[15] !== i ? (b = async (D) => {
|
|
2488
|
+
const {
|
|
2489
|
+
connectionID: R,
|
|
2490
|
+
opts: A
|
|
2491
|
+
} = D;
|
|
2492
|
+
try {
|
|
2493
|
+
return await nr(s, R, tn.createFrom({
|
|
2494
|
+
tty: !0,
|
|
2495
|
+
...A
|
|
2496
|
+
})), !0;
|
|
2497
|
+
} catch (N) {
|
|
2498
|
+
return Ae(i, N, "Failed to open native terminal"), !1;
|
|
2499
|
+
}
|
|
2500
|
+
}, e[14] = s, e[15] = i, e[16] = b) : b = e[16];
|
|
2501
|
+
let w;
|
|
2502
|
+
e[17] !== l || e[18] !== b ? (w = {
|
|
2503
|
+
mutationKey: l,
|
|
2504
|
+
mutationFn: b,
|
|
2505
|
+
retry: !1
|
|
2506
|
+
}, e[17] = l, e[18] = b, e[19] = w) : w = e[19];
|
|
2507
|
+
const {
|
|
2508
|
+
mutateAsync: E
|
|
2509
|
+
} = X(w);
|
|
2510
|
+
let _;
|
|
2511
|
+
e[20] !== y || e[21] !== E || e[22] !== l || e[23] !== o ? (_ = async (D) => !y || o.isMutating({
|
|
2512
|
+
mutationKey: l,
|
|
2513
|
+
exact: !0
|
|
2514
|
+
}) > 0 ? !1 : E(D), e[20] = y, e[21] = E, e[22] = l, e[23] = o, e[24] = _) : _ = e[24];
|
|
2515
|
+
const S = _;
|
|
2516
|
+
let I;
|
|
2517
|
+
return e[25] !== d || e[26] !== y || e[27] !== S ? (I = {
|
|
2518
|
+
openNativeSession: S,
|
|
2519
|
+
isSupported: y,
|
|
2520
|
+
isPending: d
|
|
2521
|
+
}, e[25] = d, e[26] = y, e[27] = S, e[28] = I) : I = e[28], I;
|
|
2522
|
+
}
|
|
2523
|
+
const Wo = (t) => {
|
|
2449
2524
|
const e = q(15), {
|
|
2450
2525
|
pluginID: r
|
|
2451
2526
|
} = t, n = Q(r), {
|
|
2452
2527
|
showSnackbar: s
|
|
2453
|
-
} =
|
|
2528
|
+
} = fe(), {
|
|
2454
2529
|
createTab: i
|
|
2455
|
-
} =
|
|
2530
|
+
} = Sn();
|
|
2456
2531
|
let o;
|
|
2457
2532
|
e[0] !== i || e[1] !== n ? (o = async (v) => {
|
|
2458
2533
|
const {
|
|
@@ -2464,74 +2539,74 @@ const xo = () => {
|
|
|
2464
2539
|
route: w,
|
|
2465
2540
|
icon: E,
|
|
2466
2541
|
label: _,
|
|
2467
|
-
target:
|
|
2542
|
+
target: S,
|
|
2468
2543
|
follow: I,
|
|
2469
|
-
tailLines:
|
|
2470
|
-
params:
|
|
2471
|
-
} = v,
|
|
2544
|
+
tailLines: D,
|
|
2545
|
+
params: R
|
|
2546
|
+
} = v, C = await rr(n, h, {
|
|
2472
2547
|
resource_key: g,
|
|
2473
2548
|
resource_id: m,
|
|
2474
2549
|
resource_data: y,
|
|
2475
2550
|
reference: b,
|
|
2476
2551
|
route: w,
|
|
2477
2552
|
options: {
|
|
2478
|
-
target:
|
|
2553
|
+
target: S ?? "",
|
|
2479
2554
|
follow: I === void 0 ? !0 : I,
|
|
2480
2555
|
include_previous: !1,
|
|
2481
2556
|
include_timestamps: !0,
|
|
2482
|
-
tail_lines:
|
|
2557
|
+
tail_lines: D === void 0 ? 1e3 : D,
|
|
2483
2558
|
since_seconds: 0,
|
|
2484
2559
|
limit_bytes: 0,
|
|
2485
2560
|
include_source_events: !0,
|
|
2486
|
-
params:
|
|
2561
|
+
params: R ?? {}
|
|
2487
2562
|
}
|
|
2488
2563
|
});
|
|
2489
|
-
if (!
|
|
2564
|
+
if (!C)
|
|
2490
2565
|
throw new Error("Failed to create log session: null response");
|
|
2491
2566
|
return i({
|
|
2492
|
-
id:
|
|
2493
|
-
title: _ ?? `Logs ${
|
|
2567
|
+
id: C.id,
|
|
2568
|
+
title: _ ?? `Logs ${C.id.substring(0, 8)}`,
|
|
2494
2569
|
variant: "logs",
|
|
2495
2570
|
icon: E ?? "LuLogs"
|
|
2496
|
-
}),
|
|
2571
|
+
}), C;
|
|
2497
2572
|
}, e[0] = i, e[1] = n, e[2] = o) : o = e[2];
|
|
2498
2573
|
let c;
|
|
2499
2574
|
e[3] !== s ? (c = se(s, "Failed to start log session"), e[3] = s, e[4] = c) : c = e[4];
|
|
2500
|
-
let
|
|
2501
|
-
e[5] !== o || e[6] !== c ? (
|
|
2575
|
+
let l;
|
|
2576
|
+
e[5] !== o || e[6] !== c ? (l = {
|
|
2502
2577
|
mutationFn: o,
|
|
2503
2578
|
onError: c
|
|
2504
|
-
}, e[5] = o, e[6] = c, e[7] =
|
|
2505
|
-
const a =
|
|
2579
|
+
}, e[5] = o, e[6] = c, e[7] = l) : l = e[7];
|
|
2580
|
+
const a = X(l);
|
|
2506
2581
|
let d;
|
|
2507
2582
|
e[8] !== s ? (d = se(s, "Failed to close log session"), e[8] = s, e[9] = d) : d = e[9];
|
|
2508
|
-
let
|
|
2509
|
-
e[10] !== d ? (
|
|
2510
|
-
mutationFn:
|
|
2583
|
+
let u;
|
|
2584
|
+
e[10] !== d ? (u = {
|
|
2585
|
+
mutationFn: Os,
|
|
2511
2586
|
onError: d
|
|
2512
|
-
}, e[10] = d, e[11] =
|
|
2513
|
-
const f =
|
|
2587
|
+
}, e[10] = d, e[11] = u) : u = e[11];
|
|
2588
|
+
const f = X(u);
|
|
2514
2589
|
let p;
|
|
2515
2590
|
return e[12] !== f.mutateAsync || e[13] !== a.mutateAsync ? (p = {
|
|
2516
2591
|
createLogSession: a.mutateAsync,
|
|
2517
2592
|
closeLogSession: f.mutateAsync
|
|
2518
2593
|
}, e[12] = f.mutateAsync, e[13] = a.mutateAsync, e[14] = p) : p = e[14], p;
|
|
2519
2594
|
};
|
|
2520
|
-
async function
|
|
2521
|
-
await
|
|
2595
|
+
async function Os(t) {
|
|
2596
|
+
await sr(t);
|
|
2522
2597
|
}
|
|
2523
|
-
const
|
|
2598
|
+
const Qo = () => {
|
|
2524
2599
|
const t = q(1);
|
|
2525
2600
|
let e;
|
|
2526
2601
|
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = {
|
|
2527
2602
|
queryKey: ["metric", "providers"],
|
|
2528
|
-
queryFn:
|
|
2603
|
+
queryFn: or,
|
|
2529
2604
|
staleTime: 3e4
|
|
2530
|
-
}, t[0] = e) : e = t[0],
|
|
2531
|
-
},
|
|
2605
|
+
}, t[0] = e) : e = t[0], j(e);
|
|
2606
|
+
}, Ts = (t) => {
|
|
2532
2607
|
const e = q(7);
|
|
2533
2608
|
let r, n;
|
|
2534
|
-
e[0] !== t ? (r = ["metric", "providers", t], n = () =>
|
|
2609
|
+
e[0] !== t ? (r = ["metric", "providers", t], n = () => ir(t), e[0] = t, e[1] = r, e[2] = n) : (r = e[1], n = e[2]);
|
|
2535
2610
|
const s = !!t;
|
|
2536
2611
|
let i;
|
|
2537
2612
|
return e[3] !== r || e[4] !== n || e[5] !== s ? (i = {
|
|
@@ -2539,8 +2614,8 @@ const qo = () => {
|
|
|
2539
2614
|
queryFn: n,
|
|
2540
2615
|
enabled: s,
|
|
2541
2616
|
staleTime: 3e4
|
|
2542
|
-
}, e[3] = r, e[4] = n, e[5] = s, e[6] = i) : i = e[6],
|
|
2543
|
-
},
|
|
2617
|
+
}, e[3] = r, e[4] = n, e[5] = s, e[6] = i) : i = e[6], j(i);
|
|
2618
|
+
}, Ko = (t) => {
|
|
2544
2619
|
const e = q(45), {
|
|
2545
2620
|
connectionID: r,
|
|
2546
2621
|
resourceKey: n,
|
|
@@ -2548,60 +2623,60 @@ const qo = () => {
|
|
|
2548
2623
|
resourceNamespace: i,
|
|
2549
2624
|
resourceData: o,
|
|
2550
2625
|
reference: c,
|
|
2551
|
-
route:
|
|
2626
|
+
route: l,
|
|
2552
2627
|
params: a,
|
|
2553
2628
|
metricIDs: d,
|
|
2554
|
-
shape:
|
|
2629
|
+
shape: u,
|
|
2555
2630
|
timeRange: f,
|
|
2556
2631
|
refreshInterval: p,
|
|
2557
2632
|
enabled: v
|
|
2558
2633
|
} = t, h = i === void 0 ? "" : i;
|
|
2559
2634
|
let g;
|
|
2560
2635
|
e[0] !== d ? (g = d === void 0 ? [] : d, e[0] = d, e[1] = g) : g = e[1];
|
|
2561
|
-
const m = g, y =
|
|
2636
|
+
const m = g, y = u === void 0 ? 0 : u, b = p === void 0 ? 0 : p, w = v === void 0 ? !0 : v, {
|
|
2562
2637
|
data: E,
|
|
2563
2638
|
isLoading: _
|
|
2564
|
-
} =
|
|
2565
|
-
let
|
|
2566
|
-
e[2] !== E ? (
|
|
2567
|
-
const I =
|
|
2568
|
-
let
|
|
2569
|
-
e[4] !== f?.start ? (
|
|
2639
|
+
} = Ts(n);
|
|
2640
|
+
let S;
|
|
2641
|
+
e[2] !== E ? (S = E ?? [], e[2] = E, e[3] = S) : S = e[3];
|
|
2642
|
+
const I = S, D = f ? Math.max(Math.floor((f.end.getTime() - f.start.getTime()) / 250), 15e3) * 1e6 : 0;
|
|
2643
|
+
let R;
|
|
2644
|
+
e[4] !== f?.start ? (R = f?.start?.getTime(), e[4] = f?.start, e[5] = R) : R = e[5];
|
|
2570
2645
|
let A;
|
|
2571
2646
|
e[6] !== f?.end ? (A = f?.end?.getTime(), e[6] = f?.end, e[7] = A) : A = e[7];
|
|
2572
2647
|
let N;
|
|
2573
|
-
e[8] !== r || e[9] !== m || e[10] !== a || e[11] !== c || e[12] !== s || e[13] !== n || e[14] !== h || e[15] !==
|
|
2648
|
+
e[8] !== r || e[9] !== m || e[10] !== a || e[11] !== c || e[12] !== s || e[13] !== n || e[14] !== h || e[15] !== l || e[16] !== y || e[17] !== R || e[18] !== A ? (N = ["metric", "query", r, n, s, h, c, l, a, m, y, R, A], e[8] = r, e[9] = m, e[10] = a, e[11] = c, e[12] = s, e[13] = n, e[14] = h, e[15] = l, e[16] = y, e[17] = R, e[18] = A, e[19] = N) : N = e[19];
|
|
2574
2649
|
let $;
|
|
2575
|
-
e[20] !== r || e[21] !== m || e[22] !== a || e[23] !== c || e[24] !== o || e[25] !== s || e[26] !== n || e[27] !== h || e[28] !==
|
|
2576
|
-
const
|
|
2650
|
+
e[20] !== r || e[21] !== m || e[22] !== a || e[23] !== c || e[24] !== o || e[25] !== s || e[26] !== n || e[27] !== h || e[28] !== l || e[29] !== y || e[30] !== D || e[31] !== f?.end || e[32] !== f?.start ? ($ = async () => {
|
|
2651
|
+
const G = await cr(r, {
|
|
2577
2652
|
resource_key: n,
|
|
2578
2653
|
resource_id: s,
|
|
2579
2654
|
resource_namespace: h,
|
|
2580
2655
|
resource_data: o,
|
|
2581
2656
|
reference: c,
|
|
2582
|
-
route:
|
|
2657
|
+
route: l,
|
|
2583
2658
|
params: a,
|
|
2584
2659
|
metric_ids: m,
|
|
2585
2660
|
shape: y,
|
|
2586
2661
|
start_time: (f?.start ?? /* @__PURE__ */ new Date(0)).toISOString(),
|
|
2587
2662
|
end_time: (f?.end ?? /* @__PURE__ */ new Date(0)).toISOString(),
|
|
2588
|
-
step:
|
|
2663
|
+
step: D
|
|
2589
2664
|
}), z = {};
|
|
2590
|
-
for (const [H, B] of Object.entries(
|
|
2665
|
+
for (const [H, B] of Object.entries(G))
|
|
2591
2666
|
B != null && (z[H] = B);
|
|
2592
2667
|
return z;
|
|
2593
|
-
}, e[20] = r, e[21] = m, e[22] = a, e[23] = c, e[24] = o, e[25] = s, e[26] = n, e[27] = h, e[28] =
|
|
2594
|
-
const
|
|
2668
|
+
}, e[20] = r, e[21] = m, e[22] = a, e[23] = c, e[24] = o, e[25] = s, e[26] = n, e[27] = h, e[28] = l, e[29] = y, e[30] = D, e[31] = f?.end, e[32] = f?.start, e[33] = $) : $ = e[33];
|
|
2669
|
+
const C = w && !!r && !!n && I.length > 0, k = b > 0 ? b : void 0;
|
|
2595
2670
|
let O;
|
|
2596
|
-
e[34] !== $ || e[35] !==
|
|
2671
|
+
e[34] !== $ || e[35] !== C || e[36] !== k || e[37] !== N ? (O = {
|
|
2597
2672
|
queryKey: N,
|
|
2598
2673
|
queryFn: $,
|
|
2599
|
-
enabled:
|
|
2674
|
+
enabled: C,
|
|
2600
2675
|
refetchInterval: k,
|
|
2601
2676
|
staleTime: 5e3,
|
|
2602
2677
|
placeholderData: Jt
|
|
2603
|
-
}, e[34] = $, e[35] =
|
|
2604
|
-
const F =
|
|
2678
|
+
}, e[34] = $, e[35] = C, e[36] = k, e[37] = N, e[38] = O) : O = e[38];
|
|
2679
|
+
const F = j(O), T = F.data ?? void 0, x = _ || F.isLoading, M = F.error;
|
|
2605
2680
|
let J;
|
|
2606
2681
|
return e[39] !== F.refetch || e[40] !== I || e[41] !== T || e[42] !== x || e[43] !== M ? (J = {
|
|
2607
2682
|
data: T,
|
|
@@ -2610,7 +2685,7 @@ const qo = () => {
|
|
|
2610
2685
|
error: M,
|
|
2611
2686
|
refetch: F.refetch
|
|
2612
2687
|
}, e[39] = F.refetch, e[40] = I, e[41] = T, e[42] = x, e[43] = M, e[44] = J) : J = e[44], J;
|
|
2613
|
-
},
|
|
2688
|
+
}, jo = (t) => {
|
|
2614
2689
|
const {
|
|
2615
2690
|
pluginID: e,
|
|
2616
2691
|
connectionID: r,
|
|
@@ -2619,42 +2694,42 @@ const qo = () => {
|
|
|
2619
2694
|
resourceNamespace: i = "",
|
|
2620
2695
|
resourceData: o,
|
|
2621
2696
|
reference: c,
|
|
2622
|
-
route:
|
|
2697
|
+
route: l,
|
|
2623
2698
|
params: a,
|
|
2624
2699
|
metricIDs: d = [],
|
|
2625
|
-
interval:
|
|
2700
|
+
interval: u = 1e4,
|
|
2626
2701
|
enabled: f = !0
|
|
2627
|
-
} = t, p = Q(e), [v, h] =
|
|
2702
|
+
} = t, p = Q(e), [v, h] = ge(null), [g, m] = ge(null), [y, b] = ge(!1), [w, E] = ge(null), _ = ne(null), S = we(async () => {
|
|
2628
2703
|
if (!(!f || !p || !r || !n))
|
|
2629
2704
|
try {
|
|
2630
|
-
const
|
|
2705
|
+
const D = await ar(p, r, {
|
|
2631
2706
|
resource_key: n,
|
|
2632
2707
|
resource_id: s,
|
|
2633
2708
|
resource_namespace: i,
|
|
2634
2709
|
resource_data: o,
|
|
2635
2710
|
reference: c,
|
|
2636
|
-
route:
|
|
2711
|
+
route: l,
|
|
2637
2712
|
params: a,
|
|
2638
2713
|
metric_ids: d,
|
|
2639
|
-
interval:
|
|
2714
|
+
interval: u * 1e6
|
|
2640
2715
|
// ms to nanoseconds for Go time.Duration
|
|
2641
2716
|
});
|
|
2642
|
-
m(
|
|
2643
|
-
const
|
|
2717
|
+
m(D), b(!0), E(null);
|
|
2718
|
+
const R = W(`core/metrics/data/${D}`, (N) => {
|
|
2644
2719
|
const $ = N.data;
|
|
2645
2720
|
try {
|
|
2646
|
-
const
|
|
2647
|
-
|
|
2648
|
-
} catch (
|
|
2649
|
-
console.error("Failed to parse metric stream data:",
|
|
2721
|
+
const C = JSON.parse($);
|
|
2722
|
+
C.results && (h(C.results), b(!0), E(null));
|
|
2723
|
+
} catch (C) {
|
|
2724
|
+
console.error("Failed to parse metric stream data:", C);
|
|
2650
2725
|
}
|
|
2651
|
-
}), A = W(`core/metrics/error/${
|
|
2726
|
+
}), A = W(`core/metrics/error/${D}`, (N) => {
|
|
2652
2727
|
const $ = N.data;
|
|
2653
2728
|
try {
|
|
2654
|
-
const
|
|
2729
|
+
const C = JSON.parse($);
|
|
2655
2730
|
let k = "Unknown error";
|
|
2656
|
-
if (
|
|
2657
|
-
const O =
|
|
2731
|
+
if (C && typeof C == "object" && ("error" in C && typeof C.error == "string" && C.error && (k = C.error), "operation_error" in C)) {
|
|
2732
|
+
const O = C.operation_error;
|
|
2658
2733
|
O && typeof O == "object" && "message" in O && typeof O.message == "string" && (k = O.message);
|
|
2659
2734
|
}
|
|
2660
2735
|
E(k), b(!1);
|
|
@@ -2663,98 +2738,98 @@ const qo = () => {
|
|
|
2663
2738
|
}
|
|
2664
2739
|
});
|
|
2665
2740
|
_.current = () => {
|
|
2666
|
-
|
|
2741
|
+
R(), A();
|
|
2667
2742
|
};
|
|
2668
|
-
} catch (
|
|
2669
|
-
E(
|
|
2743
|
+
} catch (D) {
|
|
2744
|
+
E(D instanceof Error ? D.message : String(D));
|
|
2670
2745
|
}
|
|
2671
|
-
}, [p, r, n, s, i, o, c,
|
|
2746
|
+
}, [p, r, n, s, i, o, c, l, a, d, u, f]), I = we(async () => {
|
|
2672
2747
|
if (g)
|
|
2673
2748
|
try {
|
|
2674
2749
|
await Lt(g);
|
|
2675
|
-
} catch (
|
|
2676
|
-
console.error("Failed to unsubscribe:",
|
|
2750
|
+
} catch (D) {
|
|
2751
|
+
console.error("Failed to unsubscribe:", D);
|
|
2677
2752
|
}
|
|
2678
2753
|
_.current && (_.current(), _.current = null), m(null), b(!1);
|
|
2679
2754
|
}, [g]);
|
|
2680
|
-
return
|
|
2755
|
+
return he(() => () => {
|
|
2681
2756
|
g && Lt(g).catch(console.error), _.current && _.current();
|
|
2682
2757
|
}, [g]), {
|
|
2683
2758
|
data: v,
|
|
2684
2759
|
subscriptionID: g,
|
|
2685
2760
|
isStreaming: y,
|
|
2686
2761
|
error: w,
|
|
2687
|
-
start:
|
|
2762
|
+
start: S,
|
|
2688
2763
|
stop: I
|
|
2689
2764
|
};
|
|
2690
|
-
},
|
|
2691
|
-
function
|
|
2765
|
+
}, Le = ["networker", "portforward", "all-sessions"];
|
|
2766
|
+
function Go() {
|
|
2692
2767
|
const t = q(17), {
|
|
2693
2768
|
showSnackbar: e
|
|
2694
|
-
} =
|
|
2769
|
+
} = fe(), r = ie();
|
|
2695
2770
|
let n;
|
|
2696
2771
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
2697
|
-
queryKey: [...
|
|
2698
|
-
queryFn:
|
|
2772
|
+
queryKey: [...Le],
|
|
2773
|
+
queryFn: xs,
|
|
2699
2774
|
retry: !1
|
|
2700
2775
|
}, t[0] = n) : n = t[0];
|
|
2701
|
-
const s =
|
|
2776
|
+
const s = j(n);
|
|
2702
2777
|
let i, o;
|
|
2703
2778
|
t[1] !== r ? (i = () => {
|
|
2704
2779
|
const v = W("core/networker/portforward/created", () => {
|
|
2705
2780
|
r.invalidateQueries({
|
|
2706
|
-
queryKey: [...
|
|
2781
|
+
queryKey: [...Le]
|
|
2707
2782
|
});
|
|
2708
2783
|
}), h = W("core/networker/portforward/closed", () => {
|
|
2709
2784
|
r.invalidateQueries({
|
|
2710
|
-
queryKey: [...
|
|
2785
|
+
queryKey: [...Le]
|
|
2711
2786
|
});
|
|
2712
2787
|
});
|
|
2713
2788
|
return () => {
|
|
2714
2789
|
v(), h();
|
|
2715
2790
|
};
|
|
2716
|
-
}, o = [r], t[1] = r, t[2] = i, t[3] = o) : (i = t[2], o = t[3]),
|
|
2791
|
+
}, o = [r], t[1] = r, t[2] = i, t[3] = o) : (i = t[2], o = t[3]), he(i, o);
|
|
2717
2792
|
let c;
|
|
2718
2793
|
t[4] !== s.data ? (c = s.data ?? [], t[4] = s.data, t[5] = c) : c = t[5];
|
|
2719
|
-
const
|
|
2794
|
+
const l = c;
|
|
2720
2795
|
let a;
|
|
2721
2796
|
t[6] !== e ? (a = se(e, "Failed to close port forwarding session"), t[6] = e, t[7] = a) : a = t[7];
|
|
2722
2797
|
let d;
|
|
2723
2798
|
t[8] !== r ? (d = async () => {
|
|
2724
2799
|
await r.invalidateQueries({
|
|
2725
|
-
queryKey: [...
|
|
2800
|
+
queryKey: [...Le]
|
|
2726
2801
|
});
|
|
2727
2802
|
}, t[8] = r, t[9] = d) : d = t[9];
|
|
2728
|
-
let
|
|
2729
|
-
t[10] !== a || t[11] !== d ? (
|
|
2730
|
-
mutationFn:
|
|
2803
|
+
let u;
|
|
2804
|
+
t[10] !== a || t[11] !== d ? (u = {
|
|
2805
|
+
mutationFn: Ps,
|
|
2731
2806
|
onError: a,
|
|
2732
2807
|
onSuccess: d
|
|
2733
|
-
}, t[10] = a, t[11] = d, t[12] =
|
|
2734
|
-
const f =
|
|
2808
|
+
}, t[10] = a, t[11] = d, t[12] = u) : u = t[12];
|
|
2809
|
+
const f = X(u);
|
|
2735
2810
|
let p;
|
|
2736
|
-
return t[13] !==
|
|
2811
|
+
return t[13] !== l || t[14] !== f.mutateAsync || t[15] !== s ? (p = {
|
|
2737
2812
|
sessions: s,
|
|
2738
|
-
activeSessions:
|
|
2813
|
+
activeSessions: l,
|
|
2739
2814
|
closeSession: f.mutateAsync,
|
|
2740
|
-
openInBrowser:
|
|
2741
|
-
}, t[13] =
|
|
2815
|
+
openInBrowser: As
|
|
2816
|
+
}, t[13] = l, t[14] = f.mutateAsync, t[15] = s, t[16] = p) : p = t[16], p;
|
|
2742
2817
|
}
|
|
2743
|
-
function
|
|
2818
|
+
function As(t) {
|
|
2744
2819
|
return en(`http://localhost:${t}`);
|
|
2745
2820
|
}
|
|
2746
|
-
async function
|
|
2821
|
+
async function Ps(t) {
|
|
2747
2822
|
return Yt(t);
|
|
2748
2823
|
}
|
|
2749
|
-
async function
|
|
2750
|
-
return
|
|
2824
|
+
async function xs() {
|
|
2825
|
+
return lr().catch(Ls);
|
|
2751
2826
|
}
|
|
2752
|
-
function
|
|
2753
|
-
if (
|
|
2827
|
+
function Ls(t) {
|
|
2828
|
+
if (ye(t).detail.includes("not found"))
|
|
2754
2829
|
return [];
|
|
2755
2830
|
throw t;
|
|
2756
2831
|
}
|
|
2757
|
-
function
|
|
2832
|
+
function zo(t) {
|
|
2758
2833
|
const e = q(36), {
|
|
2759
2834
|
pluginID: r,
|
|
2760
2835
|
connectionID: n,
|
|
@@ -2763,32 +2838,32 @@ function Wo(t) {
|
|
|
2763
2838
|
let o;
|
|
2764
2839
|
e[0] !== n || e[1] !== i || e[2] !== s ? (o = ["networker", "portforward", "sessions", i, n, s], e[0] = n, e[1] = i, e[2] = s, e[3] = o) : o = e[3];
|
|
2765
2840
|
const c = o, {
|
|
2766
|
-
showSnackbar:
|
|
2767
|
-
} =
|
|
2841
|
+
showSnackbar: l
|
|
2842
|
+
} = fe(), a = ie();
|
|
2768
2843
|
let d;
|
|
2769
|
-
e[4] !== n || e[5] !== i || e[6] !== s || e[7] !==
|
|
2844
|
+
e[4] !== n || e[5] !== i || e[6] !== s || e[7] !== l ? (d = async () => ur(i, n, $r.createFrom({
|
|
2770
2845
|
resource_id: s,
|
|
2771
2846
|
connection_id: n
|
|
2772
|
-
})).catch((
|
|
2773
|
-
const I =
|
|
2774
|
-
return I.detail.includes("not found") ? [] : (
|
|
2847
|
+
})).catch((S) => {
|
|
2848
|
+
const I = ye(S);
|
|
2849
|
+
return I.detail.includes("not found") ? [] : (l({
|
|
2775
2850
|
message: "Failed to fetch port forward sessions",
|
|
2776
2851
|
status: "error",
|
|
2777
2852
|
details: I.detail
|
|
2778
2853
|
}), []);
|
|
2779
|
-
}), e[4] = n, e[5] = i, e[6] = s, e[7] =
|
|
2780
|
-
let
|
|
2781
|
-
e[9] !== c || e[10] !== d ? (
|
|
2854
|
+
}), e[4] = n, e[5] = i, e[6] = s, e[7] = l, e[8] = d) : d = e[8];
|
|
2855
|
+
let u;
|
|
2856
|
+
e[9] !== c || e[10] !== d ? (u = {
|
|
2782
2857
|
queryKey: c,
|
|
2783
2858
|
queryFn: d,
|
|
2784
2859
|
retry: !1
|
|
2785
|
-
}, e[9] = c, e[10] = d, e[11] =
|
|
2786
|
-
const f =
|
|
2860
|
+
}, e[9] = c, e[10] = d, e[11] = u) : u = e[11];
|
|
2861
|
+
const f = j(u);
|
|
2787
2862
|
let p;
|
|
2788
|
-
e[12] !== n || e[13] !== i ? (p = async (
|
|
2863
|
+
e[12] !== n || e[13] !== i ? (p = async (S) => {
|
|
2789
2864
|
const {
|
|
2790
2865
|
opts: I
|
|
2791
|
-
} =
|
|
2866
|
+
} = S, D = {
|
|
2792
2867
|
local_port: I.localPort || 0,
|
|
2793
2868
|
remote_port: I.remotePort,
|
|
2794
2869
|
protocol: I.protocol || "TCP",
|
|
@@ -2804,19 +2879,19 @@ function Wo(t) {
|
|
|
2804
2879
|
},
|
|
2805
2880
|
labels: I.labels ?? {},
|
|
2806
2881
|
params: I.parameters ?? {}
|
|
2807
|
-
},
|
|
2808
|
-
if (!
|
|
2882
|
+
}, R = await dr(i, n, D);
|
|
2883
|
+
if (!R)
|
|
2809
2884
|
throw new Error("Failed to start port forwarding: null response");
|
|
2810
|
-
return I.openInBrowser && en(`http://localhost:${
|
|
2885
|
+
return I.openInBrowser && en(`http://localhost:${R.local_port}`), R;
|
|
2811
2886
|
}, e[12] = n, e[13] = i, e[14] = p) : p = e[14];
|
|
2812
2887
|
let v;
|
|
2813
|
-
e[15] !==
|
|
2888
|
+
e[15] !== l ? (v = se(l, "Failed to start port forwarding session"), e[15] = l, e[16] = v) : v = e[16];
|
|
2814
2889
|
let h;
|
|
2815
2890
|
e[17] !== a || e[18] !== c ? (h = async () => {
|
|
2816
2891
|
await Promise.all([a.invalidateQueries({
|
|
2817
2892
|
queryKey: c
|
|
2818
2893
|
}), a.invalidateQueries({
|
|
2819
|
-
queryKey: [...
|
|
2894
|
+
queryKey: [...Le]
|
|
2820
2895
|
})]);
|
|
2821
2896
|
}, e[17] = a, e[18] = c, e[19] = h) : h = e[19];
|
|
2822
2897
|
let g;
|
|
@@ -2825,24 +2900,24 @@ function Wo(t) {
|
|
|
2825
2900
|
onError: v,
|
|
2826
2901
|
onSuccess: h
|
|
2827
2902
|
}, e[20] = p, e[21] = v, e[22] = h, e[23] = g) : g = e[23];
|
|
2828
|
-
const m =
|
|
2903
|
+
const m = X(g);
|
|
2829
2904
|
let y;
|
|
2830
|
-
e[24] !==
|
|
2905
|
+
e[24] !== l ? (y = se(l, "Failed to close port forwarding session"), e[24] = l, e[25] = y) : y = e[25];
|
|
2831
2906
|
let b;
|
|
2832
2907
|
e[26] !== a || e[27] !== c ? (b = async () => {
|
|
2833
2908
|
await Promise.all([a.invalidateQueries({
|
|
2834
2909
|
queryKey: c
|
|
2835
2910
|
}), a.invalidateQueries({
|
|
2836
|
-
queryKey: [...
|
|
2911
|
+
queryKey: [...Le]
|
|
2837
2912
|
})]);
|
|
2838
2913
|
}, e[26] = a, e[27] = c, e[28] = b) : b = e[28];
|
|
2839
2914
|
let w;
|
|
2840
2915
|
e[29] !== y || e[30] !== b ? (w = {
|
|
2841
|
-
mutationFn:
|
|
2916
|
+
mutationFn: Fs,
|
|
2842
2917
|
onError: y,
|
|
2843
2918
|
onSuccess: b
|
|
2844
2919
|
}, e[29] = y, e[30] = b, e[31] = w) : w = e[31];
|
|
2845
|
-
const E =
|
|
2920
|
+
const E = X(w);
|
|
2846
2921
|
let _;
|
|
2847
2922
|
return e[32] !== E.mutateAsync || e[33] !== m.mutateAsync || e[34] !== f ? (_ = {
|
|
2848
2923
|
sessions: f,
|
|
@@ -2850,41 +2925,41 @@ function Wo(t) {
|
|
|
2850
2925
|
close: E.mutateAsync
|
|
2851
2926
|
}, e[32] = E.mutateAsync, e[33] = m.mutateAsync, e[34] = f, e[35] = _) : _ = e[35], _;
|
|
2852
2927
|
}
|
|
2853
|
-
async function
|
|
2928
|
+
async function Fs(t) {
|
|
2854
2929
|
const {
|
|
2855
2930
|
opts: e
|
|
2856
2931
|
} = t;
|
|
2857
2932
|
return Yt(e.sessionID);
|
|
2858
2933
|
}
|
|
2859
|
-
const
|
|
2860
|
-
const t = L.useContext(
|
|
2934
|
+
const Bo = () => {
|
|
2935
|
+
const t = L.useContext(Zr);
|
|
2861
2936
|
if (!t)
|
|
2862
2937
|
throw new Error("useConfirmationModal must be used within a ConfirmationModalProvider");
|
|
2863
2938
|
return t;
|
|
2864
|
-
},
|
|
2939
|
+
}, Jo = (t) => {
|
|
2865
2940
|
const e = q(31), {
|
|
2866
2941
|
pluginID: r,
|
|
2867
2942
|
request: n,
|
|
2868
2943
|
enabled: s
|
|
2869
|
-
} = t, i = s === void 0 ? !0 : s, o = Q(r), c = n?.request.route.connection ?? "",
|
|
2944
|
+
} = t, i = s === void 0 ? !0 : s, o = Q(r), c = n?.request.route.connection ?? "", l = i && !!n;
|
|
2870
2945
|
let a;
|
|
2871
|
-
e[0] !== c || e[1] !== o || e[2] !==
|
|
2946
|
+
e[0] !== c || e[1] !== o || e[2] !== l ? (a = {
|
|
2872
2947
|
pluginID: o,
|
|
2873
2948
|
connectionID: c,
|
|
2874
|
-
enabled:
|
|
2875
|
-
}, e[0] = c, e[1] = o, e[2] =
|
|
2876
|
-
const d = le(a),
|
|
2949
|
+
enabled: l
|
|
2950
|
+
}, e[0] = c, e[1] = o, e[2] = l, e[3] = a) : a = e[3];
|
|
2951
|
+
const d = le(a), u = ue(o, c), f = ie(), {
|
|
2877
2952
|
showSnackbar: p
|
|
2878
|
-
} =
|
|
2953
|
+
} = fe();
|
|
2879
2954
|
let v;
|
|
2880
2955
|
e[4] !== o || e[5] !== n ? (v = Ne.resource(o, n), e[4] = o, e[5] = n, e[6] = v) : v = e[6];
|
|
2881
2956
|
const h = v, g = i && !!n && d.phase === "connected";
|
|
2882
2957
|
let m;
|
|
2883
|
-
e[7] !== o || e[8] !== n ? (m = async (
|
|
2958
|
+
e[7] !== o || e[8] !== n ? (m = async (R) => {
|
|
2884
2959
|
if (!n)
|
|
2885
2960
|
throw new Error("Resource target is not resolved");
|
|
2886
2961
|
return await et(o, n.request.route.connection), Zt(o, {
|
|
2887
|
-
...
|
|
2962
|
+
...R,
|
|
2888
2963
|
route: n.request.route,
|
|
2889
2964
|
reference: n.request.reference
|
|
2890
2965
|
});
|
|
@@ -2905,46 +2980,46 @@ const Qo = () => {
|
|
|
2905
2980
|
}, e[15] = m, e[16] = y, e[17] = b, e[18] = w) : w = e[18];
|
|
2906
2981
|
const {
|
|
2907
2982
|
mutateAsync: E
|
|
2908
|
-
} =
|
|
2983
|
+
} = X(w);
|
|
2909
2984
|
let _;
|
|
2910
|
-
e[19] !==
|
|
2985
|
+
e[19] !== u || e[20] !== o || e[21] !== g || e[22] !== n ? (_ = g ? (R) => {
|
|
2911
2986
|
const {
|
|
2912
2987
|
signal: A,
|
|
2913
2988
|
queryKey: N
|
|
2914
|
-
} =
|
|
2915
|
-
return
|
|
2916
|
-
} :
|
|
2917
|
-
let
|
|
2918
|
-
e[24] !== g || e[25] !== h || e[26] !== _ ? (
|
|
2989
|
+
} = R;
|
|
2990
|
+
return u(N, A, () => fr(o, n));
|
|
2991
|
+
} : ce, e[19] = u, e[20] = o, e[21] = g, e[22] = n, e[23] = _) : _ = e[23];
|
|
2992
|
+
let S;
|
|
2993
|
+
e[24] !== g || e[25] !== h || e[26] !== _ ? (S = {
|
|
2919
2994
|
queryKey: h,
|
|
2920
2995
|
queryFn: _,
|
|
2921
2996
|
retry: !1,
|
|
2922
2997
|
enabled: g
|
|
2923
|
-
}, e[24] = g, e[25] = h, e[26] = _, e[27] =
|
|
2924
|
-
const I =
|
|
2925
|
-
let
|
|
2926
|
-
return e[28] !== E || e[29] !== I ? (
|
|
2998
|
+
}, e[24] = g, e[25] = h, e[26] = _, e[27] = S) : S = e[27];
|
|
2999
|
+
const I = j(S);
|
|
3000
|
+
let D;
|
|
3001
|
+
return e[28] !== E || e[29] !== I ? (D = {
|
|
2927
3002
|
resource: I,
|
|
2928
3003
|
mutate: E
|
|
2929
|
-
}, e[28] = E, e[29] = I, e[30] =
|
|
2930
|
-
},
|
|
3004
|
+
}, e[28] = E, e[29] = I, e[30] = D) : D = e[30], D;
|
|
3005
|
+
}, Ho = (t) => {
|
|
2931
3006
|
const e = q(11);
|
|
2932
3007
|
let r;
|
|
2933
3008
|
e[0] !== t.area || e[1] !== t.plugin || e[2] !== t.resource ? (r = ["component", t.plugin, t.resource, t.area], e[0] = t.area, e[1] = t.plugin, e[2] = t.resource, e[3] = r) : r = e[3];
|
|
2934
3009
|
const n = r;
|
|
2935
3010
|
let s;
|
|
2936
|
-
e[4] !== t ? (s = async () =>
|
|
3011
|
+
e[4] !== t ? (s = async () => pr(t), e[4] = t, e[5] = s) : s = e[5];
|
|
2937
3012
|
let i;
|
|
2938
3013
|
e[6] !== n || e[7] !== s ? (i = {
|
|
2939
3014
|
queryKey: n,
|
|
2940
3015
|
queryFn: s
|
|
2941
3016
|
}, e[6] = n, e[7] = s, e[8] = i) : i = e[8];
|
|
2942
|
-
const o =
|
|
3017
|
+
const o = j(i);
|
|
2943
3018
|
let c;
|
|
2944
3019
|
return e[9] !== o ? (c = {
|
|
2945
3020
|
component: o
|
|
2946
3021
|
}, e[9] = o, e[10] = c) : c = e[10], c;
|
|
2947
|
-
},
|
|
3022
|
+
}, Vo = (t) => {
|
|
2948
3023
|
const e = q(18), {
|
|
2949
3024
|
pluginID: r,
|
|
2950
3025
|
route: n,
|
|
@@ -2956,60 +3031,60 @@ const Qo = () => {
|
|
|
2956
3031
|
connectionID: n.connection,
|
|
2957
3032
|
enabled: i
|
|
2958
3033
|
}, e[0] = i, e[1] = o, e[2] = n.connection, e[3] = c) : c = e[3];
|
|
2959
|
-
const
|
|
2960
|
-
let
|
|
2961
|
-
e[4] !== o || e[5] !== n ? (
|
|
3034
|
+
const l = le(c), a = ue(o, n.connection), d = i && !!o && !!n.connection && l.phase === "connected";
|
|
3035
|
+
let u;
|
|
3036
|
+
e[4] !== o || e[5] !== n ? (u = [o, "resource-v2", "groups", n], e[4] = o, e[5] = n, e[6] = u) : u = e[6];
|
|
2962
3037
|
let f;
|
|
2963
3038
|
e[7] !== a || e[8] !== o || e[9] !== d || e[10] !== n ? (f = d ? (g) => {
|
|
2964
3039
|
const {
|
|
2965
3040
|
signal: m,
|
|
2966
3041
|
queryKey: y
|
|
2967
3042
|
} = g;
|
|
2968
|
-
return a(y, m, () =>
|
|
2969
|
-
} :
|
|
3043
|
+
return a(y, m, () => gr(o, n));
|
|
3044
|
+
} : ce, e[7] = a, e[8] = o, e[9] = d, e[10] = n, e[11] = f) : f = e[11];
|
|
2970
3045
|
let p;
|
|
2971
|
-
e[12] !== d || e[13] !==
|
|
2972
|
-
queryKey:
|
|
3046
|
+
e[12] !== d || e[13] !== u || e[14] !== f ? (p = {
|
|
3047
|
+
queryKey: u,
|
|
2973
3048
|
queryFn: f,
|
|
2974
3049
|
enabled: d,
|
|
2975
3050
|
retry: !1
|
|
2976
|
-
}, e[12] = d, e[13] =
|
|
2977
|
-
const v =
|
|
3051
|
+
}, e[12] = d, e[13] = u, e[14] = f, e[15] = p) : p = e[15];
|
|
3052
|
+
const v = j(p);
|
|
2978
3053
|
let h;
|
|
2979
3054
|
return e[16] !== v ? (h = {
|
|
2980
3055
|
groups: v
|
|
2981
3056
|
}, e[16] = v, e[17] = h) : h = e[17], h;
|
|
2982
|
-
},
|
|
3057
|
+
}, Yo = (t) => {
|
|
2983
3058
|
const e = q(28), {
|
|
2984
3059
|
pluginID: r,
|
|
2985
3060
|
searches: n,
|
|
2986
3061
|
enabled: s
|
|
2987
3062
|
} = t, i = s === void 0 ? !0 : s, o = Q(r);
|
|
2988
3063
|
let c;
|
|
2989
|
-
e[0] !== i || e[1] !== n ? (c = JSON.stringify(i ? [...new Set(n.map(
|
|
2990
|
-
const
|
|
3064
|
+
e[0] !== i || e[1] !== n ? (c = JSON.stringify(i ? [...new Set(n.map(qs))].sort() : []), e[0] = i, e[1] = n, e[2] = c) : c = e[2];
|
|
3065
|
+
const l = c;
|
|
2991
3066
|
let a;
|
|
2992
|
-
if (e[3] !==
|
|
2993
|
-
const y = JSON.parse(
|
|
3067
|
+
if (e[3] !== l || e[4] !== o) {
|
|
3068
|
+
const y = JSON.parse(l);
|
|
2994
3069
|
let b;
|
|
2995
|
-
e[6] !== o ? (b = (w) => [w, Xe(o, w)], e[6] = o, e[7] = b) : b = e[7], a = new Map(y.map(b)), e[3] =
|
|
3070
|
+
e[6] !== o ? (b = (w) => [w, Xe(o, w)], e[6] = o, e[7] = b) : b = e[7], a = new Map(y.map(b)), e[3] = l, e[4] = o, e[5] = a;
|
|
2996
3071
|
} else
|
|
2997
3072
|
a = e[5];
|
|
2998
3073
|
const d = a;
|
|
2999
|
-
let
|
|
3000
|
-
e[8] !== d ? (
|
|
3074
|
+
let u, f;
|
|
3075
|
+
e[8] !== d ? (u = () => JSON.stringify([...d.values()].map($s)), f = (y) => {
|
|
3001
3076
|
const b = [...d.values()].map((w) => w.subscribe(y));
|
|
3002
3077
|
return () => {
|
|
3003
3078
|
for (const w of b)
|
|
3004
3079
|
w();
|
|
3005
3080
|
};
|
|
3006
|
-
}, e[8] = d, e[9] =
|
|
3081
|
+
}, e[8] = d, e[9] = u, e[10] = f) : (u = e[9], f = e[10]);
|
|
3007
3082
|
let p;
|
|
3008
|
-
e[11] !== d || e[12] !==
|
|
3083
|
+
e[11] !== d || e[12] !== u || e[13] !== f ? (p = {
|
|
3009
3084
|
stores: d,
|
|
3010
|
-
getSnapshot:
|
|
3085
|
+
getSnapshot: u,
|
|
3011
3086
|
subscribe: f
|
|
3012
|
-
}, e[11] = d, e[12] =
|
|
3087
|
+
}, e[11] = d, e[12] = u, e[13] = f, e[14] = p) : p = e[14];
|
|
3013
3088
|
const v = p;
|
|
3014
3089
|
Me(v.subscribe, v.getSnapshot, v.getSnapshot);
|
|
3015
3090
|
const h = ue(o, "");
|
|
@@ -3022,11 +3097,11 @@ const Qo = () => {
|
|
|
3022
3097
|
queryKey: Ne.nativeQuery(o, b),
|
|
3023
3098
|
queryFn: E ? (_) => {
|
|
3024
3099
|
const {
|
|
3025
|
-
signal:
|
|
3100
|
+
signal: S,
|
|
3026
3101
|
queryKey: I
|
|
3027
3102
|
} = _;
|
|
3028
|
-
return h(I,
|
|
3029
|
-
} :
|
|
3103
|
+
return h(I, S, () => hr(o, b), w);
|
|
3104
|
+
} : ce,
|
|
3030
3105
|
retry: !1,
|
|
3031
3106
|
enabled: E
|
|
3032
3107
|
};
|
|
@@ -3036,15 +3111,15 @@ const Qo = () => {
|
|
|
3036
3111
|
let m;
|
|
3037
3112
|
return e[26] !== g ? (m = {
|
|
3038
3113
|
queries: g
|
|
3039
|
-
}, e[26] = g, e[27] = m) : m = e[27],
|
|
3114
|
+
}, e[26] = g, e[27] = m) : m = e[27], Nn(m);
|
|
3040
3115
|
};
|
|
3041
|
-
function
|
|
3116
|
+
function qs(t) {
|
|
3042
3117
|
return t.request.target.route.connection;
|
|
3043
3118
|
}
|
|
3044
|
-
function
|
|
3119
|
+
function $s(t) {
|
|
3045
3120
|
return t.getSnapshot().phase;
|
|
3046
3121
|
}
|
|
3047
|
-
const
|
|
3122
|
+
const Zo = (t) => {
|
|
3048
3123
|
const e = q(21), {
|
|
3049
3124
|
pluginID: r,
|
|
3050
3125
|
route: n,
|
|
@@ -3056,35 +3131,35 @@ const Bo = (t) => {
|
|
|
3056
3131
|
connectionID: n.connection,
|
|
3057
3132
|
enabled: o
|
|
3058
3133
|
}, e[0] = i, e[1] = n.connection, e[2] = o, e[3] = c) : c = e[3];
|
|
3059
|
-
const
|
|
3060
|
-
let
|
|
3061
|
-
e[4] !== i || e[5] !== n ? (
|
|
3134
|
+
const l = le(c), a = ue(i, n.connection), d = !!i && !!n.connection && !!s && l.phase === "connected";
|
|
3135
|
+
let u;
|
|
3136
|
+
e[4] !== i || e[5] !== n ? (u = [i, "resource-v2", "catalog", n], e[4] = i, e[5] = n, e[6] = u) : u = e[6];
|
|
3062
3137
|
let f;
|
|
3063
3138
|
e[7] !== a || e[8] !== i || e[9] !== d || e[10] !== n ? (f = d ? (m) => {
|
|
3064
3139
|
const {
|
|
3065
3140
|
signal: y,
|
|
3066
3141
|
queryKey: b
|
|
3067
3142
|
} = m;
|
|
3068
|
-
return a(b, y, () =>
|
|
3143
|
+
return a(b, y, () => Ct(i, {
|
|
3069
3144
|
route: n
|
|
3070
3145
|
}));
|
|
3071
|
-
} :
|
|
3146
|
+
} : ce, e[7] = a, e[8] = i, e[9] = d, e[10] = n, e[11] = f) : f = e[11];
|
|
3072
3147
|
let p;
|
|
3073
3148
|
e[12] !== s ? (p = (m) => m.types.find((y) => y.type === s), e[12] = s, e[13] = p) : p = e[13];
|
|
3074
3149
|
let v;
|
|
3075
|
-
e[14] !== d || e[15] !==
|
|
3076
|
-
queryKey:
|
|
3150
|
+
e[14] !== d || e[15] !== u || e[16] !== f || e[17] !== p ? (v = {
|
|
3151
|
+
queryKey: u,
|
|
3077
3152
|
queryFn: f,
|
|
3078
3153
|
select: p,
|
|
3079
3154
|
enabled: d,
|
|
3080
3155
|
retry: !1
|
|
3081
|
-
}, e[14] = d, e[15] =
|
|
3082
|
-
const h =
|
|
3156
|
+
}, e[14] = d, e[15] = u, e[16] = f, e[17] = p, e[18] = v) : v = e[18];
|
|
3157
|
+
const h = j(v);
|
|
3083
3158
|
let g;
|
|
3084
3159
|
return e[19] !== h ? (g = {
|
|
3085
3160
|
resourceType: h
|
|
3086
3161
|
}, e[19] = h, e[20] = g) : g = e[20], g;
|
|
3087
|
-
},
|
|
3162
|
+
}, Xo = (t) => {
|
|
3088
3163
|
const e = q(18), {
|
|
3089
3164
|
pluginID: r,
|
|
3090
3165
|
route: n,
|
|
@@ -3096,37 +3171,37 @@ const Bo = (t) => {
|
|
|
3096
3171
|
connectionID: n.connection,
|
|
3097
3172
|
enabled: i
|
|
3098
3173
|
}, e[0] = i, e[1] = o, e[2] = n.connection, e[3] = c) : c = e[3];
|
|
3099
|
-
const
|
|
3100
|
-
let
|
|
3101
|
-
e[4] !== o || e[5] !== n ? (
|
|
3174
|
+
const l = le(c), a = ue(o, n.connection), d = i && !!o && !!n.connection && l.phase === "connected";
|
|
3175
|
+
let u;
|
|
3176
|
+
e[4] !== o || e[5] !== n ? (u = [o, "resource-v2", "catalog", n], e[4] = o, e[5] = n, e[6] = u) : u = e[6];
|
|
3102
3177
|
let f;
|
|
3103
3178
|
e[7] !== a || e[8] !== o || e[9] !== d || e[10] !== n ? (f = d ? (g) => {
|
|
3104
3179
|
const {
|
|
3105
3180
|
signal: m,
|
|
3106
3181
|
queryKey: y
|
|
3107
3182
|
} = g;
|
|
3108
|
-
return a(y, m, () =>
|
|
3183
|
+
return a(y, m, () => Ct(o, {
|
|
3109
3184
|
route: n
|
|
3110
3185
|
}));
|
|
3111
|
-
} :
|
|
3186
|
+
} : ce, e[7] = a, e[8] = o, e[9] = d, e[10] = n, e[11] = f) : f = e[11];
|
|
3112
3187
|
let p;
|
|
3113
|
-
e[12] !== d || e[13] !==
|
|
3114
|
-
queryKey:
|
|
3188
|
+
e[12] !== d || e[13] !== u || e[14] !== f ? (p = {
|
|
3189
|
+
queryKey: u,
|
|
3115
3190
|
queryFn: f,
|
|
3116
|
-
select:
|
|
3191
|
+
select: Ms,
|
|
3117
3192
|
enabled: d,
|
|
3118
3193
|
retry: !1
|
|
3119
|
-
}, e[12] = d, e[13] =
|
|
3120
|
-
const v =
|
|
3194
|
+
}, e[12] = d, e[13] = u, e[14] = f, e[15] = p) : p = e[15];
|
|
3195
|
+
const v = j(p);
|
|
3121
3196
|
let h;
|
|
3122
3197
|
return e[16] !== v ? (h = {
|
|
3123
3198
|
resourceTypes: v
|
|
3124
3199
|
}, e[16] = v, e[17] = h) : h = e[17], h;
|
|
3125
3200
|
};
|
|
3126
|
-
function
|
|
3201
|
+
function Ms(t) {
|
|
3127
3202
|
return t.types;
|
|
3128
3203
|
}
|
|
3129
|
-
function
|
|
3204
|
+
function jt(t, e, r = !1, n = !1) {
|
|
3130
3205
|
if (!t || !e.length && !r) return t;
|
|
3131
3206
|
if (n) {
|
|
3132
3207
|
const a = new Map(t.records.map((d) => [d.key, d]));
|
|
@@ -3148,13 +3223,13 @@ function Kt(t, e, r = !1, n = !1) {
|
|
|
3148
3223
|
const i = e.length > 1 ? new Map(t.records.map((a, d) => [a.key, d])) : void 0, o = /* @__PURE__ */ new Set();
|
|
3149
3224
|
let c = t.view?.membershipStale === !0 || r;
|
|
3150
3225
|
for (const a of e) {
|
|
3151
|
-
const d = a.type === "DELETE" ? a.payload.key : a.payload.record.key,
|
|
3152
|
-
a.type === "DELETE" ? (
|
|
3226
|
+
const d = a.type === "DELETE" ? a.payload.key : a.payload.record.key, u = i ? i.get(d) ?? -1 : t.records.findIndex((f) => f.key === d);
|
|
3227
|
+
a.type === "DELETE" ? (u !== -1 && o.add(u), c = !0) : u === -1 || o.has(u) ? c = !0 : (s ?? t.records)[u] !== a.payload.record && (s ??= [...t.records], s[u] = a.payload.record);
|
|
3153
3228
|
}
|
|
3154
3229
|
if (!s && !o.size && t.view?.membershipStale === c && t.view.guarantee === "bestEffort" && t.view.count.kind === "unknown" && t.view.sourceRevision === void 0) return t;
|
|
3155
|
-
const
|
|
3230
|
+
const l = s ?? t.records;
|
|
3156
3231
|
return {
|
|
3157
|
-
records: o.size ?
|
|
3232
|
+
records: o.size ? l.filter((a, d) => !o.has(d)) : l,
|
|
3158
3233
|
sourcePage: t.sourcePage,
|
|
3159
3234
|
view: {
|
|
3160
3235
|
guarantee: "bestEffort",
|
|
@@ -3165,22 +3240,22 @@ function Kt(t, e, r = !1, n = !1) {
|
|
|
3165
3240
|
}
|
|
3166
3241
|
};
|
|
3167
3242
|
}
|
|
3168
|
-
function
|
|
3243
|
+
function Us(t, e, r, n) {
|
|
3169
3244
|
const s = q(36);
|
|
3170
3245
|
let i;
|
|
3171
3246
|
s[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ new Map(), s[0] = i) : i = s[0];
|
|
3172
|
-
const o = ne(i), c = ne(!1),
|
|
3247
|
+
const o = ne(i), c = ne(!1), l = ne(void 0), a = ne(void 0), d = ne(r), u = n?.enabled ?? !0, f = n?.isCurrent, p = n?.collection ?? !1;
|
|
3173
3248
|
let v;
|
|
3174
|
-
s[1] !== p || s[2] !==
|
|
3249
|
+
s[1] !== p || s[2] !== u || s[3] !== f || s[4] !== t || s[5] !== e ? (v = {
|
|
3175
3250
|
queryClient: t,
|
|
3176
3251
|
queryKey: e,
|
|
3177
|
-
enabled:
|
|
3252
|
+
enabled: u,
|
|
3178
3253
|
isCurrent: f,
|
|
3179
3254
|
collection: p
|
|
3180
|
-
}, s[1] = p, s[2] =
|
|
3255
|
+
}, s[1] = p, s[2] = u, s[3] = f, s[4] = t, s[5] = e, s[6] = v) : v = s[6];
|
|
3181
3256
|
const h = v, g = ne(void 0);
|
|
3182
3257
|
let m;
|
|
3183
|
-
s[7] !==
|
|
3258
|
+
s[7] !== u || s[8] !== f || s[9] !== h ? (m = () => g.current === h && u && (!f || f()), s[7] = u, s[8] = f, s[9] = h, s[10] = m) : m = s[10];
|
|
3184
3259
|
const y = m;
|
|
3185
3260
|
let b, w;
|
|
3186
3261
|
s[11] !== r ? (b = () => {
|
|
@@ -3191,7 +3266,7 @@ function Fs(t, e, r, n) {
|
|
|
3191
3266
|
s[14] !== p || s[15] !== y || s[16] !== t || s[17] !== e || s[18] !== h ? (_ = () => {
|
|
3192
3267
|
if (g.current !== h)
|
|
3193
3268
|
return;
|
|
3194
|
-
if (window.clearTimeout(
|
|
3269
|
+
if (window.clearTimeout(l.current), a.current !== void 0 && cancelAnimationFrame(a.current), l.current = void 0, a.current = void 0, !y()) {
|
|
3195
3270
|
o.current.clear(), c.current = !1;
|
|
3196
3271
|
return;
|
|
3197
3272
|
}
|
|
@@ -3199,13 +3274,13 @@ function Fs(t, e, r, n) {
|
|
|
3199
3274
|
return;
|
|
3200
3275
|
const N = [...o.current.values()], $ = c.current;
|
|
3201
3276
|
o.current.clear(), c.current = !1;
|
|
3202
|
-
const
|
|
3277
|
+
const C = t.getQueryCache().find({
|
|
3203
3278
|
queryKey: e,
|
|
3204
3279
|
exact: !0
|
|
3205
3280
|
});
|
|
3206
|
-
p &&
|
|
3207
|
-
data: y() ?
|
|
3208
|
-
}) : t.setQueryData(e, (k) => y() ?
|
|
3281
|
+
p && C?.state.status === "error" ? C.setState({
|
|
3282
|
+
data: y() ? jt(C.state.data, N, $, p) : C.state.data
|
|
3283
|
+
}) : t.setQueryData(e, (k) => y() ? jt(k, N, $, p) : k);
|
|
3209
3284
|
for (const k of N) {
|
|
3210
3285
|
if (!y())
|
|
3211
3286
|
return;
|
|
@@ -3217,51 +3292,51 @@ function Fs(t, e, r, n) {
|
|
|
3217
3292
|
}, (O) => y() && O?.key === k.payload.record.key ? k.payload.record : O);
|
|
3218
3293
|
}
|
|
3219
3294
|
}, s[14] = p, s[15] = y, s[16] = t, s[17] = e, s[18] = h, s[19] = _) : _ = s[19];
|
|
3220
|
-
const
|
|
3295
|
+
const S = _;
|
|
3221
3296
|
let I;
|
|
3222
|
-
s[20] !== p || s[21] !== y || s[22] !==
|
|
3297
|
+
s[20] !== p || s[21] !== y || s[22] !== S || s[23] !== t || s[24] !== e || s[25] !== E ? (I = (N) => {
|
|
3223
3298
|
if (!y())
|
|
3224
3299
|
return;
|
|
3225
|
-
const $ = N.type === "DELETE" ? N.payload.key : N.payload.record.key,
|
|
3226
|
-
p ||
|
|
3227
|
-
}, s[20] = p, s[21] = y, s[22] =
|
|
3228
|
-
const
|
|
3229
|
-
let
|
|
3230
|
-
return s[27] !== p || s[28] !== y || s[29] !==
|
|
3231
|
-
if (!
|
|
3300
|
+
const $ = N.type === "DELETE" ? N.payload.key : N.payload.record.key, C = t.getQueryData(e);
|
|
3301
|
+
p || C?.records.some((k) => k.key === $) ? o.current.set($, N) : c.current = !0, !p && N.type === "DELETE" && (c.current = !0), !(l.current !== void 0 || a.current !== void 0) && (l.current = window.setTimeout(S, E), d.current !== K.WatchStateSyncing && (a.current = requestAnimationFrame(S)));
|
|
3302
|
+
}, s[20] = p, s[21] = y, s[22] = S, s[23] = t, s[24] = e, s[25] = E, s[26] = I) : I = s[26];
|
|
3303
|
+
const D = I;
|
|
3304
|
+
let R, A;
|
|
3305
|
+
return s[27] !== p || s[28] !== y || s[29] !== u || s[30] !== S || s[31] !== t || s[32] !== e || s[33] !== h ? (R = () => {
|
|
3306
|
+
if (!u)
|
|
3232
3307
|
return;
|
|
3233
3308
|
g.current = h;
|
|
3234
|
-
const N = o.current, $ = t.getQueryCache().subscribe((
|
|
3235
|
-
!y() ||
|
|
3309
|
+
const N = o.current, $ = t.getQueryCache().subscribe((C) => {
|
|
3310
|
+
!y() || C.type !== "updated" || C.query.queryHash !== pt(e) || (C.action.type === "fetch" ? (N.clear(), c.current = !1) : (C.action.type === "success" || p && C.action.type === "error") && S());
|
|
3236
3311
|
});
|
|
3237
3312
|
return () => {
|
|
3238
|
-
g.current = void 0, $(), window.clearTimeout(
|
|
3313
|
+
g.current = void 0, $(), window.clearTimeout(l.current), a.current !== void 0 && cancelAnimationFrame(a.current), N.clear(), c.current = !1, l.current = void 0, a.current = void 0;
|
|
3239
3314
|
};
|
|
3240
|
-
}, A = [t, e,
|
|
3315
|
+
}, A = [t, e, S, u, h, y, p], s[27] = p, s[28] = y, s[29] = u, s[30] = S, s[31] = t, s[32] = e, s[33] = h, s[34] = R, s[35] = A) : (R = s[34], A = s[35]), ft(R, A), D;
|
|
3241
3316
|
}
|
|
3242
|
-
const
|
|
3317
|
+
const Ws = {
|
|
3243
3318
|
getSnapshot: () => {
|
|
3244
3319
|
},
|
|
3245
3320
|
subscribe: () => () => {
|
|
3246
3321
|
}
|
|
3247
|
-
},
|
|
3322
|
+
}, ei = ({
|
|
3248
3323
|
pluginID: t,
|
|
3249
3324
|
request: e,
|
|
3250
3325
|
enabled: r = !0,
|
|
3251
3326
|
live: n = !0,
|
|
3252
3327
|
collection: s = !1
|
|
3253
3328
|
}) => {
|
|
3254
|
-
const i = Q(t), o =
|
|
3329
|
+
const i = Q(t), o = ie(), {
|
|
3255
3330
|
showSnackbar: c
|
|
3256
|
-
} =
|
|
3331
|
+
} = fe(), l = L.useRef(c);
|
|
3257
3332
|
L.useLayoutEffect(() => {
|
|
3258
|
-
|
|
3333
|
+
l.current = c;
|
|
3259
3334
|
}, [c]);
|
|
3260
|
-
const a = pt([e]), [d,
|
|
3335
|
+
const a = pt([e]), [d, u] = L.useState({
|
|
3261
3336
|
hash: a,
|
|
3262
3337
|
request: e
|
|
3263
3338
|
});
|
|
3264
|
-
d.hash !== a &&
|
|
3339
|
+
d.hash !== a && u({
|
|
3265
3340
|
hash: a,
|
|
3266
3341
|
request: e
|
|
3267
3342
|
});
|
|
@@ -3272,12 +3347,12 @@ const qs = {
|
|
|
3272
3347
|
}), g = L.useMemo(() => v ? {
|
|
3273
3348
|
subscribe: Xe(i, p).subscribe,
|
|
3274
3349
|
getSnapshot: () => mt(i, p)
|
|
3275
|
-
} :
|
|
3350
|
+
} : Ws, [i, p, v]), m = L.useSyncExternalStore(g.subscribe, g.getSnapshot, g.getSnapshot), y = ue(i, p), b = v && h.phase === "connected", w = f ? pt([i, f.targetId, f.request.target, s]) : void 0, E = L.useCallback((U) => s ? [...Ne.list(i, U), "collection"] : Ne.list(i, U), [i, s]), _ = L.useCallback(async (U, V, me) => {
|
|
3276
3351
|
if (!s) return y(me, V, () => Ft(i, U));
|
|
3277
|
-
const ve = mt(i, p), be = /* @__PURE__ */ new Map(),
|
|
3278
|
-
let oe,
|
|
3352
|
+
const ve = mt(i, p), be = /* @__PURE__ */ new Map(), Ie = /* @__PURE__ */ new Set();
|
|
3353
|
+
let oe, Ce;
|
|
3279
3354
|
do {
|
|
3280
|
-
if (V.aborted || ve === void 0 || !
|
|
3355
|
+
if (V.aborted || ve === void 0 || !Ke(i, p, ve)) throw new je({
|
|
3281
3356
|
revert: !0
|
|
3282
3357
|
});
|
|
3283
3358
|
const ke = await y(me, V, () => Ft(i, {
|
|
@@ -3287,23 +3362,23 @@ const qs = {
|
|
|
3287
3362
|
cursor: oe
|
|
3288
3363
|
}
|
|
3289
3364
|
}));
|
|
3290
|
-
if (V.aborted || !
|
|
3365
|
+
if (V.aborted || !Ke(i, p, ve)) throw new je({
|
|
3291
3366
|
revert: !0
|
|
3292
3367
|
});
|
|
3293
|
-
|
|
3368
|
+
Ce ??= ke;
|
|
3294
3369
|
for (const We of ke.records) {
|
|
3295
3370
|
if (We.targetId !== U.targetId) throw new Error("Collection page returned a different resource target");
|
|
3296
3371
|
be.set(We.key, We);
|
|
3297
3372
|
}
|
|
3298
3373
|
if (oe = ke.sourcePage.nextCursor, oe) {
|
|
3299
|
-
if (
|
|
3300
|
-
|
|
3374
|
+
if (Ie.has(oe)) throw new Error("Collection enumeration repeated a source cursor");
|
|
3375
|
+
Ie.add(oe);
|
|
3301
3376
|
}
|
|
3302
3377
|
} while (oe);
|
|
3303
3378
|
return {
|
|
3304
3379
|
records: [...be.values()],
|
|
3305
3380
|
sourcePage: {
|
|
3306
|
-
...
|
|
3381
|
+
...Ce.sourcePage,
|
|
3307
3382
|
nextCursor: void 0,
|
|
3308
3383
|
count: {
|
|
3309
3384
|
kind: "unknown"
|
|
@@ -3318,42 +3393,42 @@ const qs = {
|
|
|
3318
3393
|
membershipStale: !1
|
|
3319
3394
|
}
|
|
3320
3395
|
};
|
|
3321
|
-
}, [s, y, i, p]),
|
|
3322
|
-
queryKey:
|
|
3396
|
+
}, [s, y, i, p]), S = L.useMemo(() => E(f), [E, f]), I = j({
|
|
3397
|
+
queryKey: S,
|
|
3323
3398
|
queryFn: b ? ({
|
|
3324
3399
|
signal: U,
|
|
3325
3400
|
queryKey: V
|
|
3326
|
-
}) => _(f, U, V) :
|
|
3401
|
+
}) => _(f, U, V) : ce,
|
|
3327
3402
|
enabled: b,
|
|
3328
3403
|
retry: !1,
|
|
3329
3404
|
gcTime: 0,
|
|
3330
3405
|
placeholderData: void 0
|
|
3331
|
-
}), [
|
|
3332
|
-
let A =
|
|
3333
|
-
w && f && I.isSuccess && I.data ? (
|
|
3406
|
+
}), [D, R] = L.useState();
|
|
3407
|
+
let A = D;
|
|
3408
|
+
w && f && I.isSuccess && I.data ? (D?.identity !== w || D.requestHash !== a) && (A = {
|
|
3334
3409
|
identity: w,
|
|
3335
3410
|
requestHash: a,
|
|
3336
3411
|
request: f
|
|
3337
|
-
},
|
|
3338
|
-
const N = w && A?.identity === w ? A.request : void 0, $ = L.useMemo(() => E(N), [E, N]),
|
|
3412
|
+
}, R(A)) : D && D.identity !== w && (A = void 0, R(void 0));
|
|
3413
|
+
const N = w && A?.identity === w ? A.request : void 0, $ = L.useMemo(() => E(N), [E, N]), C = j({
|
|
3339
3414
|
queryKey: $,
|
|
3340
3415
|
queryFn: b && N ? ({
|
|
3341
3416
|
signal: U,
|
|
3342
3417
|
queryKey: V
|
|
3343
|
-
}) => _(N, U, V) :
|
|
3418
|
+
}) => _(N, U, V) : ce,
|
|
3344
3419
|
enabled: !1,
|
|
3345
3420
|
retry: !1,
|
|
3346
3421
|
gcTime: 0,
|
|
3347
3422
|
placeholderData: void 0
|
|
3348
|
-
}), k = L.useMemo(() => N &&
|
|
3423
|
+
}), k = L.useMemo(() => N && C.data ? {
|
|
3349
3424
|
request: N,
|
|
3350
|
-
page:
|
|
3351
|
-
} : void 0, [N,
|
|
3425
|
+
page: C.data
|
|
3426
|
+
} : void 0, [N, C.data]), O = b && n && !!N, F = L.useMemo(() => ({
|
|
3352
3427
|
pluginID: i,
|
|
3353
3428
|
acquiredRequest: N,
|
|
3354
3429
|
generation: m,
|
|
3355
3430
|
enabled: O
|
|
3356
|
-
}), [i, N, m, O]), [T, x] = L.useState(), M = O && T?.scope === F ? T.state :
|
|
3431
|
+
}), [i, N, m, O]), [T, x] = L.useState(), M = O && T?.scope === F ? T.state : K.WatchStateIdle, J = O && T?.scope === F ? T.error : void 0, G = O && T?.scope === F && T.live, z = L.useCallback(() => m !== void 0 && Ke(i, p, m), [i, p, m]), H = Us(o, $, M, {
|
|
3357
3432
|
enabled: O,
|
|
3358
3433
|
isCurrent: z,
|
|
3359
3434
|
collection: s
|
|
@@ -3364,10 +3439,10 @@ const qs = {
|
|
|
3364
3439
|
targetId: N.targetId,
|
|
3365
3440
|
target: U
|
|
3366
3441
|
};
|
|
3367
|
-
let me = !0, ve = !1, be = !1,
|
|
3368
|
-
const oe = () => me && m !== void 0 &&
|
|
3442
|
+
let me = !0, ve = !1, be = !1, Ie;
|
|
3443
|
+
const oe = () => me && m !== void 0 && Ke(i, p, m), Ce = (Y) => {
|
|
3369
3444
|
oe() && x((re) => ({
|
|
3370
|
-
state:
|
|
3445
|
+
state: K.WatchStateIdle,
|
|
3371
3446
|
live: !1,
|
|
3372
3447
|
...re?.scope === F ? re : {},
|
|
3373
3448
|
...Y,
|
|
@@ -3393,7 +3468,7 @@ const qs = {
|
|
|
3393
3468
|
});
|
|
3394
3469
|
}), W(`${i}/${U.route.connection}/watch/STATE`, (Y) => {
|
|
3395
3470
|
const re = Y.data;
|
|
3396
|
-
!oe() || re.type !== U.type || re.route.connection !== U.route.connection || (be = !0,
|
|
3471
|
+
!oe() || re.type !== U.type || re.route.connection !== U.route.connection || (be = !0, Ce({
|
|
3397
3472
|
state: re.state,
|
|
3398
3473
|
error: re.error
|
|
3399
3474
|
}));
|
|
@@ -3401,55 +3476,55 @@ const qs = {
|
|
|
3401
3476
|
for (const Y of We) Y();
|
|
3402
3477
|
}, Pt = Xt(i, U.route);
|
|
3403
3478
|
Pt.then((Y) => {
|
|
3404
|
-
!be && Y?.resources[U.type] !== void 0 &&
|
|
3479
|
+
!be && Y?.resources[U.type] !== void 0 && Ce({
|
|
3405
3480
|
state: Y.resources[U.type]
|
|
3406
3481
|
});
|
|
3407
|
-
}).catch((Y) =>
|
|
3482
|
+
}).catch((Y) => Ce({
|
|
3408
3483
|
error: Y
|
|
3409
3484
|
}));
|
|
3410
3485
|
const xt = B.current.then(async () => {
|
|
3411
|
-
oe() && (await
|
|
3486
|
+
oe() && (await yr(i, V), ve = !0, oe() && (Ie = mr(i, U), await Ie, Ce({
|
|
3412
3487
|
live: !0
|
|
3413
3488
|
})));
|
|
3414
3489
|
}).catch((Y) => {
|
|
3415
|
-
At(),
|
|
3490
|
+
At(), Ce({
|
|
3416
3491
|
error: Y,
|
|
3417
|
-
state:
|
|
3492
|
+
state: K.WatchStateError,
|
|
3418
3493
|
live: !1
|
|
3419
|
-
}), oe() &&
|
|
3494
|
+
}), oe() && Ae(l.current, Y, "Failed to subscribe to resource updates");
|
|
3420
3495
|
});
|
|
3421
3496
|
return B.current = xt, () => {
|
|
3422
|
-
me = !1, At(), Pt.cancel(),
|
|
3423
|
-
ve && await
|
|
3497
|
+
me = !1, At(), Pt.cancel(), Ie?.cancel(), B.current = xt.then(async () => {
|
|
3498
|
+
ve && await vr(i, V);
|
|
3424
3499
|
}).catch((Y) => {
|
|
3425
|
-
|
|
3500
|
+
Ae(l.current, Y, "Failed to unsubscribe from resource updates");
|
|
3426
3501
|
});
|
|
3427
3502
|
};
|
|
3428
3503
|
}, [i, p, N, O, m, F, H]);
|
|
3429
|
-
const
|
|
3504
|
+
const ee = k !== void 0;
|
|
3430
3505
|
return {
|
|
3431
3506
|
/** Attempted request state; an error does not rename or replace the acquired page. */
|
|
3432
3507
|
resources: I,
|
|
3433
3508
|
acquired: k,
|
|
3434
3509
|
/** Gate acquired readiness when a consumer chooses to display the attempted page instead. */
|
|
3435
|
-
isAcquiredRequestCurrent:
|
|
3436
|
-
refreshAcquiredPage:
|
|
3510
|
+
isAcquiredRequestCurrent: ee && A?.requestHash === a,
|
|
3511
|
+
refreshAcquiredPage: C.refetch,
|
|
3437
3512
|
view: k?.page.view,
|
|
3438
3513
|
membershipStale: k?.page.view?.membershipStale ?? !1,
|
|
3439
|
-
watchState:
|
|
3440
|
-
isLive:
|
|
3441
|
-
isSyncing:
|
|
3514
|
+
watchState: ee ? M : K.WatchStateIdle,
|
|
3515
|
+
isLive: ee && G,
|
|
3516
|
+
isSyncing: ee && M === K.WatchStateSyncing,
|
|
3442
3517
|
/** Native cache readiness only, not snapshot/update continuity. */
|
|
3443
|
-
isSynced:
|
|
3444
|
-
watchError:
|
|
3445
|
-
guarantee:
|
|
3518
|
+
isSynced: ee && M === K.WatchStateSynced,
|
|
3519
|
+
watchError: ee ? J ?? (M === K.WatchStateError || M === K.WatchStateFailed || M === K.WatchStateForbidden ? !0 : void 0) : void 0,
|
|
3520
|
+
guarantee: ee && G ? "bestEffort" : void 0
|
|
3446
3521
|
};
|
|
3447
|
-
},
|
|
3522
|
+
}, ti = (t) => {
|
|
3448
3523
|
const e = q(13), {
|
|
3449
3524
|
pluginID: r
|
|
3450
|
-
} = t, n = Q(r), s =
|
|
3525
|
+
} = t, n = Q(r), s = ie(), {
|
|
3451
3526
|
showSnackbar: i
|
|
3452
|
-
} =
|
|
3527
|
+
} = fe();
|
|
3453
3528
|
let o;
|
|
3454
3529
|
e[0] !== n ? (o = async (f) => (await et(n, f.route.connection), Zt(n, f)), e[0] = n, e[1] = o) : o = e[1];
|
|
3455
3530
|
let c;
|
|
@@ -3458,45 +3533,45 @@ const qs = {
|
|
|
3458
3533
|
queryKey: Ne.all(n)
|
|
3459
3534
|
});
|
|
3460
3535
|
}, e[2] = n, e[3] = s, e[4] = c) : c = e[4];
|
|
3461
|
-
let
|
|
3462
|
-
e[5] !== i ? (
|
|
3536
|
+
let l;
|
|
3537
|
+
e[5] !== i ? (l = se(i, "Failed to mutate resource"), e[5] = i, e[6] = l) : l = e[6];
|
|
3463
3538
|
let a;
|
|
3464
|
-
e[7] !== o || e[8] !== c || e[9] !==
|
|
3539
|
+
e[7] !== o || e[8] !== c || e[9] !== l ? (a = {
|
|
3465
3540
|
mutationFn: o,
|
|
3466
3541
|
onSuccess: c,
|
|
3467
|
-
onError:
|
|
3468
|
-
}, e[7] = o, e[8] = c, e[9] =
|
|
3469
|
-
const d =
|
|
3470
|
-
let
|
|
3471
|
-
return e[11] !== d ? (
|
|
3542
|
+
onError: l
|
|
3543
|
+
}, e[7] = o, e[8] = c, e[9] = l, e[10] = a) : a = e[10];
|
|
3544
|
+
const d = X(a);
|
|
3545
|
+
let u;
|
|
3546
|
+
return e[11] !== d ? (u = {
|
|
3472
3547
|
mutate: d.mutateAsync,
|
|
3473
3548
|
mutation: d
|
|
3474
|
-
}, e[11] = d, e[12] =
|
|
3475
|
-
},
|
|
3549
|
+
}, e[11] = d, e[12] = u) : u = e[12], u;
|
|
3550
|
+
}, ni = (t) => {
|
|
3476
3551
|
const e = q(25), {
|
|
3477
3552
|
pluginID: r,
|
|
3478
3553
|
route: n,
|
|
3479
3554
|
type: s,
|
|
3480
3555
|
enabled: i
|
|
3481
|
-
} = t, o = i === void 0 ? !0 : i, c = Q(r),
|
|
3556
|
+
} = t, o = i === void 0 ? !0 : i, c = Q(r), l = n.connection, a = o && !!s;
|
|
3482
3557
|
let d;
|
|
3483
|
-
e[0] !==
|
|
3558
|
+
e[0] !== l || e[1] !== c || e[2] !== a ? (d = {
|
|
3484
3559
|
pluginID: c,
|
|
3485
|
-
connectionID:
|
|
3560
|
+
connectionID: l,
|
|
3486
3561
|
enabled: a
|
|
3487
|
-
}, e[0] =
|
|
3488
|
-
const
|
|
3562
|
+
}, e[0] = l, e[1] = c, e[2] = a, e[3] = d) : d = e[3];
|
|
3563
|
+
const u = le(d), f = ue(c, l);
|
|
3489
3564
|
let p;
|
|
3490
3565
|
e[4] !== c || e[5] !== n || e[6] !== s ? (p = [c, "resource-v2", "actions", n, s], e[4] = c, e[5] = n, e[6] = s, e[7] = p) : p = e[7];
|
|
3491
3566
|
let v;
|
|
3492
|
-
e[8] !== o || e[9] !== f || e[10] !== c || e[11] !==
|
|
3567
|
+
e[8] !== o || e[9] !== f || e[10] !== c || e[11] !== u || e[12] !== n || e[13] !== s ? (v = o && s && u.phase === "connected" ? (w) => {
|
|
3493
3568
|
const {
|
|
3494
3569
|
signal: E,
|
|
3495
3570
|
queryKey: _
|
|
3496
3571
|
} = w;
|
|
3497
|
-
return f(_, E, () =>
|
|
3498
|
-
} :
|
|
3499
|
-
const h = o && !!c && !!n.connection && !!s &&
|
|
3572
|
+
return f(_, E, () => br(c, n, s));
|
|
3573
|
+
} : ce, e[8] = o, e[9] = f, e[10] = c, e[11] = u, e[12] = n, e[13] = s, e[14] = v) : v = e[14];
|
|
3574
|
+
const h = o && !!c && !!n.connection && !!s && u.phase === "connected";
|
|
3500
3575
|
let g;
|
|
3501
3576
|
e[15] !== p || e[16] !== v || e[17] !== h ? (g = {
|
|
3502
3577
|
queryKey: p,
|
|
@@ -3504,7 +3579,7 @@ const qs = {
|
|
|
3504
3579
|
enabled: h,
|
|
3505
3580
|
staleTime: 3e5
|
|
3506
3581
|
}, e[15] = p, e[16] = v, e[17] = h, e[18] = g) : g = e[18];
|
|
3507
|
-
const m =
|
|
3582
|
+
const m = j(g);
|
|
3508
3583
|
let y;
|
|
3509
3584
|
e[19] !== m.data ? (y = m.data ?? [], e[19] = m.data, e[20] = y) : y = e[20];
|
|
3510
3585
|
let b;
|
|
@@ -3513,92 +3588,92 @@ const qs = {
|
|
|
3513
3588
|
isLoading: m.isLoading,
|
|
3514
3589
|
error: m.error
|
|
3515
3590
|
}, e[21] = m.error, e[22] = m.isLoading, e[23] = y, e[24] = b) : b = e[24], b;
|
|
3516
|
-
},
|
|
3591
|
+
}, ri = (t) => {
|
|
3517
3592
|
const e = q(15), {
|
|
3518
3593
|
pluginID: r
|
|
3519
|
-
} = t, n = Q(r), s =
|
|
3594
|
+
} = t, n = Q(r), s = ie(), {
|
|
3520
3595
|
showSnackbar: i
|
|
3521
|
-
} =
|
|
3596
|
+
} = fe();
|
|
3522
3597
|
let o;
|
|
3523
|
-
e[0] !== n ? (o = async (f) => (await et(n, f.route.connection),
|
|
3598
|
+
e[0] !== n ? (o = async (f) => (await et(n, f.route.connection), wr(n, f)), e[0] = n, e[1] = o) : o = e[1];
|
|
3524
3599
|
let c;
|
|
3525
3600
|
e[2] !== n || e[3] !== s ? (c = async () => {
|
|
3526
3601
|
await s.invalidateQueries({
|
|
3527
3602
|
queryKey: Ne.all(n)
|
|
3528
3603
|
});
|
|
3529
3604
|
}, e[2] = n, e[3] = s, e[4] = c) : c = e[4];
|
|
3530
|
-
let
|
|
3531
|
-
e[5] !== i ? (
|
|
3532
|
-
|
|
3533
|
-
}, e[5] = i, e[6] =
|
|
3605
|
+
let l;
|
|
3606
|
+
e[5] !== i ? (l = (f, p) => {
|
|
3607
|
+
Ae(i, f, `Failed to execute action "${p.action}"`);
|
|
3608
|
+
}, e[5] = i, e[6] = l) : l = e[6];
|
|
3534
3609
|
let a;
|
|
3535
|
-
e[7] !== o || e[8] !== c || e[9] !==
|
|
3610
|
+
e[7] !== o || e[8] !== c || e[9] !== l ? (a = {
|
|
3536
3611
|
mutationFn: o,
|
|
3537
3612
|
onSuccess: c,
|
|
3538
|
-
onError:
|
|
3539
|
-
}, e[7] = o, e[8] = c, e[9] =
|
|
3540
|
-
const d =
|
|
3541
|
-
let
|
|
3542
|
-
return e[11] !== d.error || e[12] !== d.isPending || e[13] !== d.mutateAsync ? (
|
|
3613
|
+
onError: l
|
|
3614
|
+
}, e[7] = o, e[8] = c, e[9] = l, e[10] = a) : a = e[10];
|
|
3615
|
+
const d = X(a);
|
|
3616
|
+
let u;
|
|
3617
|
+
return e[11] !== d.error || e[12] !== d.isPending || e[13] !== d.mutateAsync ? (u = {
|
|
3543
3618
|
executeAction: d.mutateAsync,
|
|
3544
3619
|
isExecuting: d.isPending,
|
|
3545
3620
|
error: d.error
|
|
3546
|
-
}, e[11] = d.error, e[12] = d.isPending, e[13] = d.mutateAsync, e[14] =
|
|
3547
|
-
},
|
|
3621
|
+
}, e[11] = d.error, e[12] = d.isPending, e[13] = d.mutateAsync, e[14] = u) : u = e[14], u;
|
|
3622
|
+
}, si = (t) => {
|
|
3548
3623
|
const e = q(27), {
|
|
3549
3624
|
pluginID: r,
|
|
3550
3625
|
route: n,
|
|
3551
3626
|
enabled: s
|
|
3552
|
-
} = t, i = s === void 0 ? !0 : s, o = Q(r), c =
|
|
3553
|
-
let
|
|
3554
|
-
e[0] !== i || e[1] !== o || e[2] !== n.connection ? (
|
|
3627
|
+
} = t, i = s === void 0 ? !0 : s, o = Q(r), c = ie();
|
|
3628
|
+
let l;
|
|
3629
|
+
e[0] !== i || e[1] !== o || e[2] !== n.connection ? (l = {
|
|
3555
3630
|
pluginID: o,
|
|
3556
3631
|
connectionID: n.connection,
|
|
3557
3632
|
enabled: i
|
|
3558
|
-
}, e[0] = i, e[1] = o, e[2] = n.connection, e[3] =
|
|
3559
|
-
const a = le(
|
|
3633
|
+
}, e[0] = i, e[1] = o, e[2] = n.connection, e[3] = l) : l = e[3];
|
|
3634
|
+
const a = le(l), d = ue(o, n.connection), u = i && !!o && !!n.connection && a.phase === "connected";
|
|
3560
3635
|
let f;
|
|
3561
3636
|
e[4] !== o || e[5] !== n ? (f = [o, "resource-v2", "editor-schemas", n], e[4] = o, e[5] = n, e[6] = f) : f = e[6];
|
|
3562
3637
|
let p;
|
|
3563
|
-
e[7] !== d || e[8] !== o || e[9] !== c || e[10] !==
|
|
3638
|
+
e[7] !== d || e[8] !== o || e[9] !== c || e[10] !== u || e[11] !== n ? (p = u ? (b) => {
|
|
3564
3639
|
const {
|
|
3565
3640
|
signal: w,
|
|
3566
3641
|
queryKey: E
|
|
3567
3642
|
} = b;
|
|
3568
3643
|
return d(E, w, async () => {
|
|
3569
|
-
const _ = await d(E, w, () =>
|
|
3570
|
-
for (const
|
|
3571
|
-
const
|
|
3572
|
-
if (!
|
|
3644
|
+
const _ = await d(E, w, () => Er(o, n)), S = [], I = /* @__PURE__ */ new Set();
|
|
3645
|
+
for (const D of _) {
|
|
3646
|
+
const R = D.binding.documentRef;
|
|
3647
|
+
if (!R)
|
|
3573
3648
|
continue;
|
|
3574
|
-
const A = JSON.stringify([
|
|
3575
|
-
I.has(A) || (
|
|
3576
|
-
queryKey: [o, "resource-v2", "schema-document", n,
|
|
3649
|
+
const A = JSON.stringify([R.id, R.revision]);
|
|
3650
|
+
I.has(A) || (S.push(await c.fetchQuery({
|
|
3651
|
+
queryKey: [o, "resource-v2", "schema-document", n, R],
|
|
3577
3652
|
queryFn: (N) => {
|
|
3578
3653
|
const {
|
|
3579
3654
|
signal: $,
|
|
3580
|
-
queryKey:
|
|
3655
|
+
queryKey: C
|
|
3581
3656
|
} = N;
|
|
3582
|
-
return d(
|
|
3657
|
+
return d(C, AbortSignal.any([w, $]), () => Sr(o, n, R));
|
|
3583
3658
|
},
|
|
3584
3659
|
staleTime: 1 / 0
|
|
3585
3660
|
})), I.add(A));
|
|
3586
3661
|
}
|
|
3587
3662
|
return {
|
|
3588
3663
|
schemas: _,
|
|
3589
|
-
documents:
|
|
3664
|
+
documents: S
|
|
3590
3665
|
};
|
|
3591
3666
|
});
|
|
3592
|
-
} :
|
|
3667
|
+
} : ce, e[7] = d, e[8] = o, e[9] = c, e[10] = u, e[11] = n, e[12] = p) : p = e[12];
|
|
3593
3668
|
let v;
|
|
3594
|
-
e[13] !==
|
|
3669
|
+
e[13] !== u || e[14] !== f || e[15] !== p ? (v = {
|
|
3595
3670
|
queryKey: f,
|
|
3596
3671
|
queryFn: p,
|
|
3597
|
-
enabled:
|
|
3672
|
+
enabled: u,
|
|
3598
3673
|
staleTime: 6e5,
|
|
3599
3674
|
retry: 1
|
|
3600
|
-
}, e[13] =
|
|
3601
|
-
const h =
|
|
3675
|
+
}, e[13] = u, e[14] = f, e[15] = p, e[16] = v) : v = e[16];
|
|
3676
|
+
const h = j(v);
|
|
3602
3677
|
let g;
|
|
3603
3678
|
e[17] !== h.data?.schemas ? (g = h.data?.schemas ?? [], e[17] = h.data?.schemas, e[18] = g) : g = e[18];
|
|
3604
3679
|
let m;
|
|
@@ -3617,29 +3692,29 @@ function Gt(t) {
|
|
|
3617
3692
|
return {
|
|
3618
3693
|
...t,
|
|
3619
3694
|
totalResources: e.length,
|
|
3620
|
-
syncedCount: e.filter((r) => r ===
|
|
3621
|
-
errorCount: e.filter((r) => r ===
|
|
3695
|
+
syncedCount: e.filter((r) => r === K.WatchStateSynced).length,
|
|
3696
|
+
errorCount: e.filter((r) => r === K.WatchStateError || r === K.WatchStateFailed).length
|
|
3622
3697
|
};
|
|
3623
3698
|
}
|
|
3624
|
-
const
|
|
3699
|
+
const oi = (t) => {
|
|
3625
3700
|
const e = q(38), {
|
|
3626
3701
|
pluginID: r,
|
|
3627
3702
|
route: n,
|
|
3628
3703
|
enabled: s
|
|
3629
|
-
} = t, i = s === void 0 ? !0 : s, o = Q(r), c =
|
|
3704
|
+
} = t, i = s === void 0 ? !0 : s, o = Q(r), c = ie(), l = n.connection;
|
|
3630
3705
|
let a;
|
|
3631
|
-
e[0] !==
|
|
3632
|
-
connection:
|
|
3633
|
-
}, e[0] =
|
|
3706
|
+
e[0] !== l ? (a = {
|
|
3707
|
+
connection: l
|
|
3708
|
+
}, e[0] = l, e[1] = a) : a = e[1];
|
|
3634
3709
|
let d;
|
|
3635
3710
|
e[2] !== o || e[3] !== a ? (d = [o, "resource-v2", "watch-state", a], e[2] = o, e[3] = a, e[4] = d) : d = e[4];
|
|
3636
|
-
const
|
|
3711
|
+
const u = d;
|
|
3637
3712
|
let f;
|
|
3638
3713
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = [], e[5] = f) : f = e[5];
|
|
3639
3714
|
const p = ne(f), v = ne(!1);
|
|
3640
3715
|
let h;
|
|
3641
|
-
e[6] !== c || e[7] !==
|
|
3642
|
-
c.setQueryData(
|
|
3716
|
+
e[6] !== c || e[7] !== u ? (h = (T) => {
|
|
3717
|
+
c.setQueryData(u, (x) => x && Gt({
|
|
3643
3718
|
...x,
|
|
3644
3719
|
resources: {
|
|
3645
3720
|
...x.resources,
|
|
@@ -3650,40 +3725,40 @@ const ei = (t) => {
|
|
|
3650
3725
|
[T.type]: T.count
|
|
3651
3726
|
}
|
|
3652
3727
|
}));
|
|
3653
|
-
}, e[6] = c, e[7] =
|
|
3728
|
+
}, e[6] = c, e[7] = u, e[8] = h) : h = e[8];
|
|
3654
3729
|
const g = h;
|
|
3655
3730
|
let m;
|
|
3656
|
-
e[9] !==
|
|
3731
|
+
e[9] !== l || e[10] !== o ? (m = async () => {
|
|
3657
3732
|
const T = await Xt(o, {
|
|
3658
|
-
connection:
|
|
3733
|
+
connection: l
|
|
3659
3734
|
});
|
|
3660
3735
|
if (!T)
|
|
3661
3736
|
throw new Error("Failed to get watch state: null response");
|
|
3662
3737
|
return Gt(T);
|
|
3663
|
-
}, e[9] =
|
|
3664
|
-
const y = i && !!o && !!
|
|
3738
|
+
}, e[9] = l, e[10] = o, e[11] = m) : m = e[11];
|
|
3739
|
+
const y = i && !!o && !!l;
|
|
3665
3740
|
let b;
|
|
3666
|
-
e[12] !==
|
|
3667
|
-
queryKey:
|
|
3741
|
+
e[12] !== u || e[13] !== m || e[14] !== y ? (b = {
|
|
3742
|
+
queryKey: u,
|
|
3668
3743
|
queryFn: m,
|
|
3669
3744
|
enabled: y,
|
|
3670
|
-
refetchInterval:
|
|
3671
|
-
}, e[12] =
|
|
3672
|
-
const w =
|
|
3745
|
+
refetchInterval: Ks
|
|
3746
|
+
}, e[12] = u, e[13] = m, e[14] = y, e[15] = b) : b = e[15];
|
|
3747
|
+
const w = j(b);
|
|
3673
3748
|
let E, _;
|
|
3674
|
-
e[16] !== g || e[17] !==
|
|
3675
|
-
if (v.current = !1, p.current = [], !i || !
|
|
3749
|
+
e[16] !== g || e[17] !== l || e[18] !== i || e[19] !== o ? (_ = () => {
|
|
3750
|
+
if (v.current = !1, p.current = [], !i || !l)
|
|
3676
3751
|
return;
|
|
3677
|
-
const T = W(`${o}/${
|
|
3752
|
+
const T = W(`${o}/${l}/watch/STATE`, (x) => {
|
|
3678
3753
|
const M = x.data;
|
|
3679
|
-
M.route.connection ===
|
|
3754
|
+
M.route.connection === l && (v.current ? g(M) : p.current.push(M));
|
|
3680
3755
|
});
|
|
3681
3756
|
return () => {
|
|
3682
3757
|
T(), v.current = !1, p.current = [];
|
|
3683
3758
|
};
|
|
3684
|
-
}, E = [o,
|
|
3685
|
-
let
|
|
3686
|
-
e[22] !== g || e[23] !== w.data ? (
|
|
3759
|
+
}, E = [o, l, i, g], e[16] = g, e[17] = l, e[18] = i, e[19] = o, e[20] = E, e[21] = _) : (E = e[20], _ = e[21]), he(_, E);
|
|
3760
|
+
let S, I;
|
|
3761
|
+
e[22] !== g || e[23] !== w.data ? (S = () => {
|
|
3687
3762
|
if (!w.data || v.current)
|
|
3688
3763
|
return;
|
|
3689
3764
|
v.current = !0;
|
|
@@ -3691,65 +3766,65 @@ const ei = (t) => {
|
|
|
3691
3766
|
p.current = [];
|
|
3692
3767
|
for (const x of T)
|
|
3693
3768
|
g(x);
|
|
3694
|
-
}, I = [w.data, g], e[22] = g, e[23] = w.data, e[24] =
|
|
3695
|
-
let
|
|
3696
|
-
e[26] !== w.data?.resources ? (
|
|
3697
|
-
const
|
|
3769
|
+
}, I = [w.data, g], e[22] = g, e[23] = w.data, e[24] = S, e[25] = I) : (S = e[24], I = e[25]), he(S, I);
|
|
3770
|
+
let D;
|
|
3771
|
+
e[26] !== w.data?.resources ? (D = Object.values(w.data?.resources ?? {}), e[26] = w.data?.resources, e[27] = D) : D = e[27];
|
|
3772
|
+
const R = D;
|
|
3698
3773
|
let A;
|
|
3699
|
-
e[28] !==
|
|
3774
|
+
e[28] !== R ? (A = R.filter(js), e[28] = R, e[29] = A) : A = e[29];
|
|
3700
3775
|
const N = A.length;
|
|
3701
3776
|
let $;
|
|
3702
3777
|
e[30] !== w.data?.resources ? ($ = (T) => w.data?.resources[T], e[30] = w.data?.resources, e[31] = $) : $ = e[31];
|
|
3703
|
-
const
|
|
3778
|
+
const C = R.length > 0 && N === R.length, k = R.length ? N / R.length : 0, O = w.data?.errorCount ?? 0;
|
|
3704
3779
|
let F;
|
|
3705
|
-
return e[32] !== w || e[33] !== $ || e[34] !==
|
|
3780
|
+
return e[32] !== w || e[33] !== $ || e[34] !== C || e[35] !== k || e[36] !== O ? (F = {
|
|
3706
3781
|
summary: w,
|
|
3707
3782
|
getResourceState: $,
|
|
3708
|
-
isFullySynced:
|
|
3783
|
+
isFullySynced: C,
|
|
3709
3784
|
syncProgress: k,
|
|
3710
3785
|
errorCount: O,
|
|
3711
3786
|
guarantee: "bestEffort"
|
|
3712
|
-
}, e[32] = w, e[33] = $, e[34] =
|
|
3787
|
+
}, e[32] = w, e[33] = $, e[34] = C, e[35] = k, e[36] = O, e[37] = F) : F = e[37], F;
|
|
3713
3788
|
};
|
|
3714
|
-
function
|
|
3715
|
-
return t !==
|
|
3789
|
+
function Qs(t) {
|
|
3790
|
+
return t !== K.WatchStateIdle && t !== K.WatchStateSyncing;
|
|
3716
3791
|
}
|
|
3717
|
-
function
|
|
3792
|
+
function Ks(t) {
|
|
3718
3793
|
const e = Object.values(t.state.data?.resources ?? {});
|
|
3719
|
-
return e.length && e.every(
|
|
3794
|
+
return e.length && e.every(Qs) ? !1 : 3e3;
|
|
3720
3795
|
}
|
|
3721
|
-
function
|
|
3722
|
-
return t !==
|
|
3796
|
+
function js(t) {
|
|
3797
|
+
return t !== K.WatchStateIdle && t !== K.WatchStateSyncing;
|
|
3723
3798
|
}
|
|
3724
|
-
const
|
|
3799
|
+
const ii = () => {
|
|
3725
3800
|
const t = q(16);
|
|
3726
3801
|
let e;
|
|
3727
3802
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ new Map(), t[0] = e) : e = t[0];
|
|
3728
|
-
const [r, n] =
|
|
3803
|
+
const [r, n] = ge(e);
|
|
3729
3804
|
let s;
|
|
3730
3805
|
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ new Map(), t[1] = s) : s = t[1];
|
|
3731
3806
|
const i = ne(s);
|
|
3732
3807
|
let o;
|
|
3733
3808
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ new Map(), t[2] = o) : o = t[2];
|
|
3734
3809
|
const c = ne(o);
|
|
3735
|
-
let
|
|
3736
|
-
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3810
|
+
let l;
|
|
3811
|
+
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = (y) => {
|
|
3737
3812
|
const b = y.data, w = kt(b.pluginID, b), E = bt(i.current, b.pluginID, b), _ = vt(E);
|
|
3738
|
-
if (n((
|
|
3739
|
-
const I = new Map(
|
|
3813
|
+
if (n((S) => {
|
|
3814
|
+
const I = new Map(S);
|
|
3740
3815
|
return I.set(w, _), I;
|
|
3741
3816
|
}), c.current.has(w) && (clearTimeout(c.current.get(w)), c.current.delete(w)), tt(_)) {
|
|
3742
|
-
const
|
|
3817
|
+
const S = setTimeout(() => {
|
|
3743
3818
|
n((I) => {
|
|
3744
|
-
const
|
|
3745
|
-
return
|
|
3819
|
+
const D = new Map(I);
|
|
3820
|
+
return D.delete(w), D;
|
|
3746
3821
|
}), i.current.delete(w), c.current.delete(w);
|
|
3747
3822
|
}, 5e3);
|
|
3748
|
-
c.current.set(w,
|
|
3823
|
+
c.current.set(w, S);
|
|
3749
3824
|
}
|
|
3750
|
-
}, t[3] =
|
|
3751
|
-
const a =
|
|
3752
|
-
let d,
|
|
3825
|
+
}, t[3] = l) : l = t[3];
|
|
3826
|
+
const a = l;
|
|
3827
|
+
let d, u;
|
|
3753
3828
|
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = () => {
|
|
3754
3829
|
const y = c.current, b = W("watch/STATE", a);
|
|
3755
3830
|
return () => {
|
|
@@ -3758,9 +3833,9 @@ const ti = () => {
|
|
|
3758
3833
|
clearTimeout(w);
|
|
3759
3834
|
y.clear();
|
|
3760
3835
|
};
|
|
3761
|
-
},
|
|
3836
|
+
}, u = [a], t[4] = d, t[5] = u) : (d = t[4], u = t[5]), he(d, u);
|
|
3762
3837
|
let f, p, v, h;
|
|
3763
|
-
t[6] !== r ? (v = Array.from(r.values()), f =
|
|
3838
|
+
t[6] !== r ? (v = Array.from(r.values()), f = vn(v), p = v.find(Gs) ?? v[0] ?? null, h = bn(v), t[6] = r, t[7] = f, t[8] = p, t[9] = v, t[10] = h) : (f = t[7], p = t[8], v = t[9], h = t[10]);
|
|
3764
3839
|
const g = h;
|
|
3765
3840
|
let m;
|
|
3766
3841
|
return t[11] !== g || t[12] !== f || t[13] !== p || t[14] !== v ? (m = {
|
|
@@ -3770,11 +3845,11 @@ const ti = () => {
|
|
|
3770
3845
|
aggregateProgress: g
|
|
3771
3846
|
}, t[11] = g, t[12] = f, t[13] = p, t[14] = v, t[15] = m) : m = t[15], m;
|
|
3772
3847
|
};
|
|
3773
|
-
function
|
|
3848
|
+
function Gs(t) {
|
|
3774
3849
|
return !tt(t);
|
|
3775
3850
|
}
|
|
3776
|
-
const
|
|
3777
|
-
const t = L.useContext(
|
|
3851
|
+
const zs = () => {
|
|
3852
|
+
const t = L.useContext(ln);
|
|
3778
3853
|
if (!t)
|
|
3779
3854
|
throw new Error("useOperations must be used within an OperationsProvider");
|
|
3780
3855
|
return t;
|
|
@@ -3880,7 +3955,7 @@ function Bt(t) {
|
|
|
3880
3955
|
return `{${Object.entries(t.value).map(([e, r]) => `${JSON.stringify(e)}:${Bt(r)}`).join(",")}}`;
|
|
3881
3956
|
}
|
|
3882
3957
|
}
|
|
3883
|
-
function
|
|
3958
|
+
function ci(t) {
|
|
3884
3959
|
let e = 0;
|
|
3885
3960
|
const r = () => {
|
|
3886
3961
|
throw new SyntaxError(`Invalid resource JSON at offset ${e}`);
|
|
@@ -3889,43 +3964,43 @@ function ni(t) {
|
|
|
3889
3964
|
}, s = () => {
|
|
3890
3965
|
const c = e++;
|
|
3891
3966
|
for (; e < t.length; ) {
|
|
3892
|
-
const
|
|
3893
|
-
if (
|
|
3967
|
+
const l = t[e++];
|
|
3968
|
+
if (l === "\\") {
|
|
3894
3969
|
e++;
|
|
3895
3970
|
continue;
|
|
3896
3971
|
}
|
|
3897
|
-
if (
|
|
3972
|
+
if (l === '"') return Et(JSON.parse(t.slice(c, e)));
|
|
3898
3973
|
}
|
|
3899
3974
|
return r();
|
|
3900
3975
|
}, i = (c) => {
|
|
3901
3976
|
if (c > 64) throw new RangeError("Resource JSON exceeds maximum depth");
|
|
3902
3977
|
n();
|
|
3903
|
-
const
|
|
3904
|
-
if (
|
|
3978
|
+
const l = t[e];
|
|
3979
|
+
if (l === '"') return {
|
|
3905
3980
|
kind: "string",
|
|
3906
3981
|
value: s()
|
|
3907
3982
|
};
|
|
3908
|
-
if (
|
|
3983
|
+
if (l === "[") {
|
|
3909
3984
|
e++, n();
|
|
3910
|
-
const
|
|
3985
|
+
const u = [];
|
|
3911
3986
|
if (t[e] === "]")
|
|
3912
3987
|
return e++, {
|
|
3913
3988
|
kind: "list",
|
|
3914
|
-
value:
|
|
3989
|
+
value: u
|
|
3915
3990
|
};
|
|
3916
3991
|
for (; e < t.length; ) {
|
|
3917
|
-
if (
|
|
3992
|
+
if (u.push(i(c + 1)), n(), t[e] === "]")
|
|
3918
3993
|
return e++, {
|
|
3919
3994
|
kind: "list",
|
|
3920
|
-
value:
|
|
3995
|
+
value: u
|
|
3921
3996
|
};
|
|
3922
3997
|
if (t[e++] !== ",") return r();
|
|
3923
3998
|
}
|
|
3924
3999
|
return r();
|
|
3925
4000
|
}
|
|
3926
|
-
if (
|
|
4001
|
+
if (l === "{") {
|
|
3927
4002
|
e++, n();
|
|
3928
|
-
const
|
|
4003
|
+
const u = [], f = /* @__PURE__ */ new Set();
|
|
3929
4004
|
if (t[e] === "}")
|
|
3930
4005
|
return e++, {
|
|
3931
4006
|
kind: "map",
|
|
@@ -3936,16 +4011,16 @@ function ni(t) {
|
|
|
3936
4011
|
const p = s();
|
|
3937
4012
|
if (f.has(p)) throw new SyntaxError(`Duplicate resource JSON key: ${p}`);
|
|
3938
4013
|
if (f.add(p), n(), t[e++] !== ":") return r();
|
|
3939
|
-
if (
|
|
4014
|
+
if (u.push([p, i(c + 1)]), n(), t[e] === "}")
|
|
3940
4015
|
return e++, {
|
|
3941
4016
|
kind: "map",
|
|
3942
|
-
value: Object.fromEntries(
|
|
4017
|
+
value: Object.fromEntries(u)
|
|
3943
4018
|
};
|
|
3944
4019
|
if (t[e++] !== ",") return r();
|
|
3945
4020
|
}
|
|
3946
4021
|
return r();
|
|
3947
4022
|
}
|
|
3948
|
-
for (const [
|
|
4023
|
+
for (const [u, f] of [["null", {
|
|
3949
4024
|
kind: "null"
|
|
3950
4025
|
}], ["true", {
|
|
3951
4026
|
kind: "bool",
|
|
@@ -3954,8 +4029,8 @@ function ni(t) {
|
|
|
3954
4029
|
kind: "bool",
|
|
3955
4030
|
value: !1
|
|
3956
4031
|
}]])
|
|
3957
|
-
if (t.startsWith(
|
|
3958
|
-
return e +=
|
|
4032
|
+
if (t.startsWith(u, e))
|
|
4033
|
+
return e += u.length, f;
|
|
3959
4034
|
const a = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/.exec(t.slice(e));
|
|
3960
4035
|
if (!a) return r();
|
|
3961
4036
|
if (e += a[0].length, !/[.eE]/.test(a[0]) && a[0] !== "-0") return St(a[0]);
|
|
@@ -3968,15 +4043,15 @@ function ni(t) {
|
|
|
3968
4043
|
}, o = i(0);
|
|
3969
4044
|
return n(), e !== t.length ? r() : o;
|
|
3970
4045
|
}
|
|
3971
|
-
const
|
|
4046
|
+
const ai = ({
|
|
3972
4047
|
pluginID: t
|
|
3973
4048
|
}) => {
|
|
3974
4049
|
const e = Q(t), {
|
|
3975
4050
|
showSnackbar: r
|
|
3976
|
-
} =
|
|
4051
|
+
} = fe(), {
|
|
3977
4052
|
addOperation: n,
|
|
3978
4053
|
updateOperation: s
|
|
3979
|
-
} =
|
|
4054
|
+
} = zs(), i = L.useRef(/* @__PURE__ */ new Set()), o = L.useCallback((a, d = !1) => {
|
|
3980
4055
|
a.disposed || (a.disposed = !0, a.unsubscribe?.(), a.open?.cancel(), a.attach?.cancel(), a.handle && (qt(a.handle).catch(() => {
|
|
3981
4056
|
}), d && s(a.handle, {
|
|
3982
4057
|
status: "cancelled",
|
|
@@ -3991,20 +4066,20 @@ const ri = ({
|
|
|
3991
4066
|
request: a,
|
|
3992
4067
|
label: d
|
|
3993
4068
|
}) => {
|
|
3994
|
-
const
|
|
4069
|
+
const u = {
|
|
3995
4070
|
disposed: !1,
|
|
3996
4071
|
terminal: !1,
|
|
3997
4072
|
sequence: 0
|
|
3998
4073
|
};
|
|
3999
|
-
i.current.add(
|
|
4074
|
+
i.current.add(u);
|
|
4000
4075
|
try {
|
|
4001
|
-
if (await et(e, a.route.connection),
|
|
4002
|
-
|
|
4003
|
-
const f = await
|
|
4004
|
-
if (
|
|
4076
|
+
if (await et(e, a.route.connection), u.disposed) throw new Error("Stream action was cancelled before the connection became ready");
|
|
4077
|
+
u.open = Ir(e, a);
|
|
4078
|
+
const f = await u.open;
|
|
4079
|
+
if (u.open = void 0, u.disposed)
|
|
4005
4080
|
return qt(f).catch(() => {
|
|
4006
4081
|
}), f;
|
|
4007
|
-
|
|
4082
|
+
u.handle = f, n({
|
|
4008
4083
|
id: f,
|
|
4009
4084
|
label: d,
|
|
4010
4085
|
resourceKey: a.typeTarget?.type ?? a.reference?.address.type ?? "",
|
|
@@ -4014,25 +4089,25 @@ const ri = ({
|
|
|
4014
4089
|
startedAt: Date.now()
|
|
4015
4090
|
});
|
|
4016
4091
|
const p = (h) => {
|
|
4017
|
-
if (
|
|
4018
|
-
|
|
4092
|
+
if (u.disposed || !Number.isSafeInteger(h.sequence) || h.sequence <= u.sequence) return;
|
|
4093
|
+
u.sequence = h.sequence;
|
|
4019
4094
|
const g = h.event, m = g.data ? wt(g.data) : void 0, y = m && typeof m == "object" && !Array.isArray(m) ? m : {};
|
|
4020
4095
|
if (g.type === "error") {
|
|
4021
|
-
|
|
4022
|
-
const b =
|
|
4096
|
+
u.terminal = !0;
|
|
4097
|
+
const b = ye(g.error);
|
|
4023
4098
|
s(f, {
|
|
4024
4099
|
status: Ve(b) ? "cancelled" : "error",
|
|
4025
4100
|
message: b.title,
|
|
4026
4101
|
completedAt: Date.now()
|
|
4027
|
-
}),
|
|
4102
|
+
}), Ae(r, b, d), o(u);
|
|
4028
4103
|
} else if (g.type === "complete") {
|
|
4029
|
-
|
|
4104
|
+
u.terminal = !0;
|
|
4030
4105
|
const b = typeof y.message == "string" ? y.message : `${d} completed`;
|
|
4031
4106
|
s(f, {
|
|
4032
4107
|
status: "completed",
|
|
4033
4108
|
message: b,
|
|
4034
4109
|
completedAt: Date.now()
|
|
4035
|
-
}), r(b, "success"), o(
|
|
4110
|
+
}), r(b, "success"), o(u);
|
|
4036
4111
|
} else
|
|
4037
4112
|
s(f, {
|
|
4038
4113
|
message: typeof y.message == "string" ? y.message : void 0,
|
|
@@ -4042,18 +4117,18 @@ const ri = ({
|
|
|
4042
4117
|
} : void 0
|
|
4043
4118
|
});
|
|
4044
4119
|
};
|
|
4045
|
-
|
|
4046
|
-
const v = await
|
|
4047
|
-
return
|
|
4120
|
+
u.unsubscribe = W(`action/stream/${f}`, (h) => p(h.data)), u.attach = Cr(f);
|
|
4121
|
+
const v = await u.attach;
|
|
4122
|
+
return u.attach = void 0, p(v), f;
|
|
4048
4123
|
} catch (f) {
|
|
4049
|
-
if (
|
|
4050
|
-
throw
|
|
4124
|
+
if (u.terminal && u.handle) return u.handle;
|
|
4125
|
+
throw u.disposed || (u.handle && s(u.handle, {
|
|
4051
4126
|
status: Ve(f) ? "cancelled" : "error",
|
|
4052
|
-
message:
|
|
4127
|
+
message: ye(f).title,
|
|
4053
4128
|
completedAt: Date.now()
|
|
4054
|
-
}),
|
|
4129
|
+
}), Ae(r, f, `Failed to start "${a.action}"`)), o(u), f;
|
|
4055
4130
|
}
|
|
4056
|
-
}, [e, n, s, r, o]),
|
|
4131
|
+
}, [e, n, s, r, o]), l = L.useCallback((a) => {
|
|
4057
4132
|
for (const d of i.current) if (d.handle === a) {
|
|
4058
4133
|
o(d, !0);
|
|
4059
4134
|
return;
|
|
@@ -4061,26 +4136,26 @@ const ri = ({
|
|
|
4061
4136
|
}, [o]);
|
|
4062
4137
|
return {
|
|
4063
4138
|
startStreamAction: c,
|
|
4064
|
-
cancelStreamAction:
|
|
4139
|
+
cancelStreamAction: l
|
|
4065
4140
|
};
|
|
4066
4141
|
};
|
|
4067
|
-
function
|
|
4142
|
+
function Bs(t, e) {
|
|
4068
4143
|
return `${t}/${e}/graph/CHANGED`;
|
|
4069
4144
|
}
|
|
4070
4145
|
function Tt(t, e, r, n) {
|
|
4071
|
-
const s = q(16), i =
|
|
4072
|
-
let c,
|
|
4146
|
+
const s = q(16), i = ie(), o = ne(r);
|
|
4147
|
+
let c, l;
|
|
4073
4148
|
s[0] !== r ? (c = () => {
|
|
4074
4149
|
o.current = r;
|
|
4075
|
-
},
|
|
4150
|
+
}, l = [r], s[0] = r, s[1] = c, s[2] = l) : (c = s[1], l = s[2]), ft(c, l);
|
|
4076
4151
|
let a;
|
|
4077
4152
|
s[3] !== r ? (a = JSON.stringify(r), s[3] = r, s[4] = a) : a = s[4];
|
|
4078
4153
|
const d = a;
|
|
4079
|
-
let
|
|
4080
|
-
s[5] !== e || s[6] !== n || s[7] !== t || s[8] !== i ? (
|
|
4154
|
+
let u;
|
|
4155
|
+
s[5] !== e || s[6] !== n || s[7] !== t || s[8] !== i ? (u = () => {
|
|
4081
4156
|
if (!n || !t || !e)
|
|
4082
4157
|
return;
|
|
4083
|
-
const p = W(
|
|
4158
|
+
const p = W(Bs(t, e), () => {
|
|
4084
4159
|
i.invalidateQueries({
|
|
4085
4160
|
queryKey: o.current,
|
|
4086
4161
|
exact: !0
|
|
@@ -4089,11 +4164,11 @@ function Tt(t, e, r, n) {
|
|
|
4089
4164
|
return () => {
|
|
4090
4165
|
p();
|
|
4091
4166
|
};
|
|
4092
|
-
}, s[5] = e, s[6] = n, s[7] = t, s[8] = i, s[9] =
|
|
4167
|
+
}, s[5] = e, s[6] = n, s[7] = t, s[8] = i, s[9] = u) : u = s[9];
|
|
4093
4168
|
let f;
|
|
4094
|
-
s[10] !== e || s[11] !== n || s[12] !== d || s[13] !== t || s[14] !== i ? (f = [i, t, e, d, n], s[10] = e, s[11] = n, s[12] = d, s[13] = t, s[14] = i, s[15] = f) : f = s[15],
|
|
4169
|
+
s[10] !== e || s[11] !== n || s[12] !== d || s[13] !== t || s[14] !== i ? (f = [i, t, e, d, n], s[10] = e, s[11] = n, s[12] = d, s[13] = t, s[14] = i, s[15] = f) : f = s[15], he(u, f);
|
|
4095
4170
|
}
|
|
4096
|
-
const
|
|
4171
|
+
const Js = {
|
|
4097
4172
|
owns: {
|
|
4098
4173
|
outgoing: "Owns",
|
|
4099
4174
|
incoming: "Owned by"
|
|
@@ -4123,16 +4198,16 @@ const Ks = {
|
|
|
4123
4198
|
incoming: "Selected by"
|
|
4124
4199
|
}
|
|
4125
4200
|
};
|
|
4126
|
-
function
|
|
4127
|
-
const r =
|
|
4201
|
+
function li(t, e) {
|
|
4202
|
+
const r = Js[t];
|
|
4128
4203
|
if (r)
|
|
4129
4204
|
return r[e];
|
|
4130
4205
|
const n = t.replace(/_/g, " ");
|
|
4131
4206
|
return e === "outgoing" ? n : `${n} (incoming)`;
|
|
4132
4207
|
}
|
|
4133
|
-
function
|
|
4208
|
+
function Hs(t, e) {
|
|
4134
4209
|
return e.map((r) => {
|
|
4135
|
-
const n =
|
|
4210
|
+
const n = Dn(r.source, t);
|
|
4136
4211
|
return {
|
|
4137
4212
|
resource: n ? r.target : r.source,
|
|
4138
4213
|
type: r.type,
|
|
@@ -4141,7 +4216,7 @@ function Gs(t, e) {
|
|
|
4141
4216
|
};
|
|
4142
4217
|
});
|
|
4143
4218
|
}
|
|
4144
|
-
const
|
|
4219
|
+
const ui = (t) => {
|
|
4145
4220
|
const e = q(38), {
|
|
4146
4221
|
pluginID: r,
|
|
4147
4222
|
reference: n,
|
|
@@ -4149,8 +4224,8 @@ const oi = (t) => {
|
|
|
4149
4224
|
direction: i,
|
|
4150
4225
|
relationshipType: o,
|
|
4151
4226
|
enabled: c,
|
|
4152
|
-
refetchInterval:
|
|
4153
|
-
} = t, a = i === void 0 ? "both" : i, d = c === void 0 ? !0 : c,
|
|
4227
|
+
refetchInterval: l
|
|
4228
|
+
} = t, a = i === void 0 ? "both" : i, d = c === void 0 ? !0 : c, u = l === void 0 ? !1 : l, f = Q(r), p = o ?? null;
|
|
4154
4229
|
let v;
|
|
4155
4230
|
e[0] !== a || e[1] !== f || e[2] !== n || e[3] !== s || e[4] !== p ? (v = ["RESOURCE_RELATED", f, n, s, a, p], e[0] = a, e[1] = f, e[2] = n, e[3] = s, e[4] = p, e[5] = v) : v = e[5];
|
|
4156
4231
|
const h = v, g = d && !!n.address.id;
|
|
@@ -4168,36 +4243,36 @@ const oi = (t) => {
|
|
|
4168
4243
|
signal: N,
|
|
4169
4244
|
queryKey: $
|
|
4170
4245
|
} = A;
|
|
4171
|
-
return b($, N, () =>
|
|
4172
|
-
} :
|
|
4246
|
+
return b($, N, () => _r(f, n, s, a, o ?? null));
|
|
4247
|
+
} : ce, e[10] = a, e[11] = b, e[12] = f, e[13] = w, e[14] = n, e[15] = o, e[16] = s, e[17] = E) : E = e[17];
|
|
4173
4248
|
let _;
|
|
4174
|
-
e[18] !== w || e[19] !== h || e[20] !==
|
|
4249
|
+
e[18] !== w || e[19] !== h || e[20] !== u || e[21] !== E ? (_ = {
|
|
4175
4250
|
queryKey: h,
|
|
4176
4251
|
queryFn: E,
|
|
4177
4252
|
enabled: w,
|
|
4178
|
-
refetchInterval:
|
|
4179
|
-
}, e[18] = w, e[19] = h, e[20] =
|
|
4180
|
-
const
|
|
4181
|
-
let I,
|
|
4182
|
-
if (e[23] !== f || e[24] !==
|
|
4253
|
+
refetchInterval: u
|
|
4254
|
+
}, e[18] = w, e[19] = h, e[20] = u, e[21] = E, e[22] = _) : _ = e[22];
|
|
4255
|
+
const S = j(_);
|
|
4256
|
+
let I, D;
|
|
4257
|
+
if (e[23] !== f || e[24] !== S.data || e[25] !== n || e[26] !== s) {
|
|
4183
4258
|
const A = {
|
|
4184
4259
|
pluginId: f,
|
|
4185
4260
|
reference: n
|
|
4186
4261
|
};
|
|
4187
4262
|
let N;
|
|
4188
|
-
e[29] !==
|
|
4263
|
+
e[29] !== S.data ? (N = S.data ?? [], e[29] = S.data, e[30] = N) : N = e[30], I = N, D = Hs(A, I), e[23] = f, e[24] = S.data, e[25] = n, e[26] = s, e[27] = I, e[28] = D;
|
|
4189
4264
|
} else
|
|
4190
|
-
I = e[27],
|
|
4191
|
-
let
|
|
4192
|
-
return e[31] !== I || e[32] !==
|
|
4193
|
-
related:
|
|
4265
|
+
I = e[27], D = e[28];
|
|
4266
|
+
let R;
|
|
4267
|
+
return e[31] !== I || e[32] !== S.error || e[33] !== S.isFetching || e[34] !== S.isLoading || e[35] !== S.refetch || e[36] !== D ? (R = {
|
|
4268
|
+
related: D,
|
|
4194
4269
|
edges: I,
|
|
4195
|
-
isLoading:
|
|
4196
|
-
isFetching:
|
|
4197
|
-
error:
|
|
4198
|
-
refetch:
|
|
4199
|
-
}, e[31] = I, e[32] =
|
|
4200
|
-
},
|
|
4270
|
+
isLoading: S.isLoading,
|
|
4271
|
+
isFetching: S.isFetching,
|
|
4272
|
+
error: S.error,
|
|
4273
|
+
refetch: S.refetch
|
|
4274
|
+
}, e[31] = I, e[32] = S.error, e[33] = S.isFetching, e[34] = S.isLoading, e[35] = S.refetch, e[36] = D, e[37] = R) : R = e[37], R;
|
|
4275
|
+
}, di = (t) => {
|
|
4201
4276
|
const e = q(27), {
|
|
4202
4277
|
pluginID: r,
|
|
4203
4278
|
reference: n,
|
|
@@ -4205,26 +4280,26 @@ const oi = (t) => {
|
|
|
4205
4280
|
maxDepth: i,
|
|
4206
4281
|
enabled: o,
|
|
4207
4282
|
refetchInterval: c
|
|
4208
|
-
} = t,
|
|
4283
|
+
} = t, l = i === void 0 ? 3 : i, a = o === void 0 ? !0 : o, d = c === void 0 ? !1 : c, u = Q(r);
|
|
4209
4284
|
let f;
|
|
4210
|
-
e[0] !==
|
|
4285
|
+
e[0] !== l || e[1] !== u || e[2] !== n || e[3] !== s ? (f = ["RESOURCE_DEPENDENCY_TREE", u, n, s, l], e[0] = l, e[1] = u, e[2] = n, e[3] = s, e[4] = f) : f = e[4];
|
|
4211
4286
|
const p = f, v = a && !!n.address.id;
|
|
4212
4287
|
let h;
|
|
4213
|
-
e[5] !==
|
|
4214
|
-
pluginID:
|
|
4288
|
+
e[5] !== u || e[6] !== s.connection || e[7] !== v ? (h = {
|
|
4289
|
+
pluginID: u,
|
|
4215
4290
|
connectionID: s.connection,
|
|
4216
4291
|
enabled: v
|
|
4217
|
-
}, e[5] =
|
|
4218
|
-
const g = le(h), m = ue(
|
|
4219
|
-
Tt(
|
|
4292
|
+
}, e[5] = u, e[6] = s.connection, e[7] = v, e[8] = h) : h = e[8];
|
|
4293
|
+
const g = le(h), m = ue(u, s.connection), y = a && !!u && !!s.connection && !!n.address.id && g.phase === "connected";
|
|
4294
|
+
Tt(u, s.connection, p, y);
|
|
4220
4295
|
let b;
|
|
4221
|
-
e[9] !== m || e[10] !==
|
|
4296
|
+
e[9] !== m || e[10] !== l || e[11] !== u || e[12] !== y || e[13] !== n || e[14] !== s ? (b = y ? (I) => {
|
|
4222
4297
|
const {
|
|
4223
|
-
signal:
|
|
4224
|
-
queryKey:
|
|
4298
|
+
signal: D,
|
|
4299
|
+
queryKey: R
|
|
4225
4300
|
} = I;
|
|
4226
|
-
return m(
|
|
4227
|
-
} :
|
|
4301
|
+
return m(R, D, () => Dr(u, n, s, l));
|
|
4302
|
+
} : ce, e[9] = m, e[10] = l, e[11] = u, e[12] = y, e[13] = n, e[14] = s, e[15] = b) : b = e[15];
|
|
4228
4303
|
let w;
|
|
4229
4304
|
e[16] !== y || e[17] !== p || e[18] !== d || e[19] !== b ? (w = {
|
|
4230
4305
|
queryKey: p,
|
|
@@ -4232,16 +4307,16 @@ const oi = (t) => {
|
|
|
4232
4307
|
enabled: y,
|
|
4233
4308
|
refetchInterval: d
|
|
4234
4309
|
}, e[16] = y, e[17] = p, e[18] = d, e[19] = b, e[20] = w) : w = e[20];
|
|
4235
|
-
const E =
|
|
4236
|
-
let
|
|
4237
|
-
return e[21] !== E.error || e[22] !== E.isFetching || e[23] !== E.isLoading || e[24] !== E.refetch || e[25] !== _ ? (
|
|
4310
|
+
const E = j(w), _ = E.data ?? null;
|
|
4311
|
+
let S;
|
|
4312
|
+
return e[21] !== E.error || e[22] !== E.isFetching || e[23] !== E.isLoading || e[24] !== E.refetch || e[25] !== _ ? (S = {
|
|
4238
4313
|
tree: _,
|
|
4239
4314
|
isLoading: E.isLoading,
|
|
4240
4315
|
isFetching: E.isFetching,
|
|
4241
4316
|
error: E.error,
|
|
4242
4317
|
refetch: E.refetch
|
|
4243
|
-
}, e[21] = E.error, e[22] = E.isFetching, e[23] = E.isLoading, e[24] = E.refetch, e[25] = _, e[26] =
|
|
4244
|
-
},
|
|
4318
|
+
}, e[21] = E.error, e[22] = E.isFetching, e[23] = E.isLoading, e[24] = E.refetch, e[25] = _, e[26] = S) : S = e[26], S;
|
|
4319
|
+
}, fi = (t) => {
|
|
4245
4320
|
const e = q(28), {
|
|
4246
4321
|
pluginID: r,
|
|
4247
4322
|
reference: n,
|
|
@@ -4249,26 +4324,26 @@ const oi = (t) => {
|
|
|
4249
4324
|
upDepth: i,
|
|
4250
4325
|
downDepth: o,
|
|
4251
4326
|
enabled: c
|
|
4252
|
-
} = t,
|
|
4327
|
+
} = t, l = i === void 0 ? 2 : i, a = o === void 0 ? 3 : o, d = c === void 0 ? !0 : c, u = Q(r);
|
|
4253
4328
|
let f;
|
|
4254
|
-
e[0] !== a || e[1] !==
|
|
4329
|
+
e[0] !== a || e[1] !== u || e[2] !== n || e[3] !== s || e[4] !== l ? (f = ["RESOURCE_GRAPH", u, n, s, l, a], e[0] = a, e[1] = u, e[2] = n, e[3] = s, e[4] = l, e[5] = f) : f = e[5];
|
|
4255
4330
|
const p = f, v = d && !!n.address.id;
|
|
4256
4331
|
let h;
|
|
4257
|
-
e[6] !==
|
|
4258
|
-
pluginID:
|
|
4332
|
+
e[6] !== u || e[7] !== s.connection || e[8] !== v ? (h = {
|
|
4333
|
+
pluginID: u,
|
|
4259
4334
|
connectionID: s.connection,
|
|
4260
4335
|
enabled: v
|
|
4261
|
-
}, e[6] =
|
|
4262
|
-
const g = le(h), m = ue(
|
|
4263
|
-
Tt(
|
|
4336
|
+
}, e[6] = u, e[7] = s.connection, e[8] = v, e[9] = h) : h = e[9];
|
|
4337
|
+
const g = le(h), m = ue(u, s.connection), y = d && !!u && !!s.connection && !!n.address.id && g.phase === "connected";
|
|
4338
|
+
Tt(u, s.connection, p, y);
|
|
4264
4339
|
let b;
|
|
4265
|
-
e[10] !== a || e[11] !== m || e[12] !==
|
|
4340
|
+
e[10] !== a || e[11] !== m || e[12] !== u || e[13] !== y || e[14] !== n || e[15] !== s || e[16] !== l ? (b = y ? (I) => {
|
|
4266
4341
|
const {
|
|
4267
|
-
signal:
|
|
4268
|
-
queryKey:
|
|
4342
|
+
signal: D,
|
|
4343
|
+
queryKey: R
|
|
4269
4344
|
} = I;
|
|
4270
|
-
return m(
|
|
4271
|
-
} :
|
|
4345
|
+
return m(R, D, () => Rr(u, n, s, l, a));
|
|
4346
|
+
} : ce, e[10] = a, e[11] = m, e[12] = u, e[13] = y, e[14] = n, e[15] = s, e[16] = l, e[17] = b) : b = e[17];
|
|
4272
4347
|
let w;
|
|
4273
4348
|
e[18] !== y || e[19] !== p || e[20] !== b ? (w = {
|
|
4274
4349
|
queryKey: p,
|
|
@@ -4276,21 +4351,21 @@ const oi = (t) => {
|
|
|
4276
4351
|
enabled: y,
|
|
4277
4352
|
retry: !1
|
|
4278
4353
|
}, e[18] = y, e[19] = p, e[20] = b, e[21] = w) : w = e[21];
|
|
4279
|
-
const E =
|
|
4280
|
-
let
|
|
4281
|
-
return e[22] !== E.error || e[23] !== E.isFetching || e[24] !== E.isLoading || e[25] !== E.refetch || e[26] !== _ ? (
|
|
4354
|
+
const E = j(w), _ = E.data ?? null;
|
|
4355
|
+
let S;
|
|
4356
|
+
return e[22] !== E.error || e[23] !== E.isFetching || e[24] !== E.isLoading || e[25] !== E.refetch || e[26] !== _ ? (S = {
|
|
4282
4357
|
graph: _,
|
|
4283
4358
|
isLoading: E.isLoading,
|
|
4284
4359
|
isFetching: E.isFetching,
|
|
4285
4360
|
error: E.error,
|
|
4286
4361
|
refetch: E.refetch
|
|
4287
|
-
}, e[22] = E.error, e[23] = E.isFetching, e[24] = E.isLoading, e[25] = E.refetch, e[26] = _, e[27] =
|
|
4288
|
-
},
|
|
4289
|
-
const t = L.useContext(
|
|
4362
|
+
}, e[22] = E.error, e[23] = E.isFetching, e[24] = E.isLoading, e[25] = E.refetch, e[26] = _, e[27] = S) : S = e[27], S;
|
|
4363
|
+
}, pi = () => {
|
|
4364
|
+
const t = L.useContext(an);
|
|
4290
4365
|
if (!t)
|
|
4291
4366
|
throw new Error("useSettings must be used within a SettingsProvider");
|
|
4292
4367
|
return t;
|
|
4293
|
-
},
|
|
4368
|
+
}, Vs = 1, gi = (t) => {
|
|
4294
4369
|
const e = q(19);
|
|
4295
4370
|
let r, n, s, i;
|
|
4296
4371
|
if (e[0] !== t) {
|
|
@@ -4306,58 +4381,58 @@ const oi = (t) => {
|
|
|
4306
4381
|
r = e[1], n = e[2], s = e[3], i = e[4];
|
|
4307
4382
|
const {
|
|
4308
4383
|
pluginId: o
|
|
4309
|
-
} =
|
|
4384
|
+
} = cn(), c = L.useContext(Dt);
|
|
4310
4385
|
o || console.error("Link used outside of a plugin context");
|
|
4311
|
-
const
|
|
4386
|
+
const l = `/_plugin/${o}${i.startsWith("/") ? "" : "/"}${i}`;
|
|
4312
4387
|
let a;
|
|
4313
|
-
e[5] !== n || e[6] !==
|
|
4314
|
-
n?.(h), !(h.defaultPrevented || !c || !(h.ctrlKey || h.metaKey)) && (h.preventDefault(), c.openInNewTab(
|
|
4388
|
+
e[5] !== n || e[6] !== l || e[7] !== c ? (a = (h) => {
|
|
4389
|
+
n?.(h), !(h.defaultPrevented || !c || !(h.ctrlKey || h.metaKey)) && (h.preventDefault(), c.openInNewTab(l, {
|
|
4315
4390
|
background: !0
|
|
4316
4391
|
}));
|
|
4317
|
-
}, e[5] = n, e[6] =
|
|
4392
|
+
}, e[5] = n, e[6] = l, e[7] = c, e[8] = a) : a = e[8];
|
|
4318
4393
|
const d = a;
|
|
4319
|
-
let
|
|
4320
|
-
e[9] !== r || e[10] !==
|
|
4321
|
-
r?.(h), !(h.defaultPrevented || !c || h.button !==
|
|
4394
|
+
let u;
|
|
4395
|
+
e[9] !== r || e[10] !== l || e[11] !== c ? (u = (h) => {
|
|
4396
|
+
r?.(h), !(h.defaultPrevented || !c || h.button !== Vs) && (h.preventDefault(), c.openInNewTab(l, {
|
|
4322
4397
|
background: !0
|
|
4323
4398
|
}));
|
|
4324
|
-
}, e[9] = r, e[10] =
|
|
4325
|
-
const f =
|
|
4399
|
+
}, e[9] = r, e[10] = l, e[11] = c, e[12] = u) : u = e[12];
|
|
4400
|
+
const f = u;
|
|
4326
4401
|
let p;
|
|
4327
4402
|
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
4328
4403
|
textDecoration: "none",
|
|
4329
4404
|
color: "inherit"
|
|
4330
4405
|
}, e[13] = p) : p = e[13];
|
|
4331
4406
|
let v;
|
|
4332
|
-
return e[14] !== f || e[15] !== d || e[16] !== s || e[17] !==
|
|
4407
|
+
return e[14] !== f || e[15] !== d || e[16] !== s || e[17] !== l ? (v = /* @__PURE__ */ P(Nr, { style: p, ...s, to: l, onClick: d, onAuxClick: f }), e[14] = f, e[15] = d, e[16] = s, e[17] = l, e[18] = v) : v = e[18], v;
|
|
4333
4408
|
};
|
|
4334
|
-
function
|
|
4335
|
-
const t = q(10), e =
|
|
4409
|
+
function hi() {
|
|
4410
|
+
const t = q(10), e = kr(), r = Or(), {
|
|
4336
4411
|
pluginId: n
|
|
4337
|
-
} =
|
|
4412
|
+
} = cn();
|
|
4338
4413
|
n || console.error("usePluginRouter used outside of a plugin context");
|
|
4339
4414
|
const s = `/_plugin/${n}`;
|
|
4340
4415
|
let i;
|
|
4341
4416
|
t[0] !== r.pathname || t[1] !== s ? (i = r.pathname.startsWith(s) ? r.pathname.slice(s.length) || "/" : r.pathname, t[0] = r.pathname, t[1] = s, t[2] = i) : i = t[2];
|
|
4342
4417
|
const o = i;
|
|
4343
4418
|
let c;
|
|
4344
|
-
t[3] !== e || t[4] !== s ? (c = (d,
|
|
4419
|
+
t[3] !== e || t[4] !== s ? (c = (d, u) => {
|
|
4345
4420
|
const {
|
|
4346
4421
|
...f
|
|
4347
|
-
} =
|
|
4422
|
+
} = u ?? {};
|
|
4348
4423
|
d.startsWith("/") ? e(`${s}${d}`, f) : e(d, f);
|
|
4349
4424
|
}, t[3] = e, t[4] = s, t[5] = c) : c = t[5];
|
|
4350
|
-
const
|
|
4425
|
+
const l = c;
|
|
4351
4426
|
let a;
|
|
4352
|
-
return t[6] !== r || t[7] !==
|
|
4427
|
+
return t[6] !== r || t[7] !== l || t[8] !== o ? (a = {
|
|
4353
4428
|
location: r,
|
|
4354
|
-
navigate:
|
|
4429
|
+
navigate: l,
|
|
4355
4430
|
pluginPath: o
|
|
4356
|
-
}, t[6] = r, t[7] =
|
|
4431
|
+
}, t[6] = r, t[7] = l, t[8] = o, t[9] = a) : a = t[9], a;
|
|
4357
4432
|
}
|
|
4358
|
-
class
|
|
4433
|
+
class yi {
|
|
4359
4434
|
}
|
|
4360
|
-
class
|
|
4435
|
+
class mi {
|
|
4361
4436
|
_extensions;
|
|
4362
4437
|
/**
|
|
4363
4438
|
* The root component to render for the application window.
|
|
@@ -4414,8 +4489,8 @@ class fi {
|
|
|
4414
4489
|
get Window() {
|
|
4415
4490
|
if (!this._routes && this.root)
|
|
4416
4491
|
return /* @__PURE__ */ P(this.root, {});
|
|
4417
|
-
const e =
|
|
4418
|
-
return /* @__PURE__ */ P(
|
|
4492
|
+
const e = Tr(this._routes || []);
|
|
4493
|
+
return /* @__PURE__ */ P(Mr, { router: e });
|
|
4419
4494
|
}
|
|
4420
4495
|
/**
|
|
4421
4496
|
* Register extension points for other plugins to extend the functionality
|
|
@@ -4445,15 +4520,15 @@ class fi {
|
|
|
4445
4520
|
return this._routes = e, this;
|
|
4446
4521
|
}
|
|
4447
4522
|
}
|
|
4448
|
-
var
|
|
4449
|
-
const
|
|
4450
|
-
function
|
|
4451
|
-
window.dispatchEvent(new CustomEvent(
|
|
4523
|
+
var Ys = /* @__PURE__ */ ((t) => (t.MISSING_MANIFEST = "MISSING_MANIFEST", t.MISSING_PLUGIN = "MISSING_PLUGIN", t.MISSING_ENTRYPOINT = "MISSING_ENTRYPOINT", t))(Ys || {});
|
|
4524
|
+
const Zs = "omniview/global-search/open";
|
|
4525
|
+
function vi(t = {}) {
|
|
4526
|
+
window.dispatchEvent(new CustomEvent(Zs, {
|
|
4452
4527
|
detail: t
|
|
4453
4528
|
}));
|
|
4454
4529
|
}
|
|
4455
|
-
const
|
|
4456
|
-
class
|
|
4530
|
+
const Xs = "omniview/resource/icons";
|
|
4531
|
+
class eo extends _n {
|
|
4457
4532
|
state = {
|
|
4458
4533
|
failed: !1,
|
|
4459
4534
|
resetToken: this.props.resetToken
|
|
@@ -4473,14 +4548,14 @@ class Vs extends In {
|
|
|
4473
4548
|
return this.state.failed ? this.props.fallback : this.props.children;
|
|
4474
4549
|
}
|
|
4475
4550
|
}
|
|
4476
|
-
function
|
|
4551
|
+
function to(t, e) {
|
|
4477
4552
|
try {
|
|
4478
4553
|
return t?.schemaVersion !== 1 || typeof t.resolve != "function" ? void 0 : t.resolve(e);
|
|
4479
4554
|
} catch {
|
|
4480
4555
|
return;
|
|
4481
4556
|
}
|
|
4482
4557
|
}
|
|
4483
|
-
function
|
|
4558
|
+
function no(t) {
|
|
4484
4559
|
const e = q(7);
|
|
4485
4560
|
let r, n;
|
|
4486
4561
|
e[0] !== t ? ({
|
|
@@ -4491,7 +4566,7 @@ function Zs(t) {
|
|
|
4491
4566
|
let i;
|
|
4492
4567
|
return e[3] !== r || e[4] !== n || e[5] !== s ? (i = /* @__PURE__ */ P(r, { ...n, "aria-hidden": s }), e[3] = r, e[4] = n, e[5] = s, e[6] = i) : i = e[6], i;
|
|
4493
4568
|
}
|
|
4494
|
-
function
|
|
4569
|
+
function bi(t) {
|
|
4495
4570
|
const e = q(17);
|
|
4496
4571
|
let r, n, s, i;
|
|
4497
4572
|
e[0] !== t ? ({
|
|
@@ -4503,19 +4578,19 @@ function gi(t) {
|
|
|
4503
4578
|
const {
|
|
4504
4579
|
version: o,
|
|
4505
4580
|
contributions: c
|
|
4506
|
-
} =
|
|
4507
|
-
let
|
|
4508
|
-
e[5] !== r || e[6] !== s ? (
|
|
4509
|
-
const a =
|
|
4581
|
+
} = fn(Xs);
|
|
4582
|
+
let l;
|
|
4583
|
+
e[5] !== r || e[6] !== s ? (l = r === void 0 ? /* @__PURE__ */ P("svg", { width: s.size ?? 16, height: s.size ?? 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", className: s.className, "aria-hidden": s["aria-hidden"] ?? !0, children: /* @__PURE__ */ P("path", { d: "m12 3 9 5v8l-9 5-9-5V8l9-5Zm0 9 9-4M12 12 3 8m9 4v9" }) }) : r, e[5] = r, e[6] = s, e[7] = l) : l = e[7];
|
|
4584
|
+
const a = l;
|
|
4510
4585
|
let d;
|
|
4511
4586
|
if (e[8] !== c || e[9] !== a || e[10] !== n || e[11] !== s || e[12] !== i || e[13] !== o) {
|
|
4512
4587
|
d = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
4513
4588
|
e: for (const f of c) {
|
|
4514
4589
|
if (f.plugin !== n)
|
|
4515
4590
|
continue;
|
|
4516
|
-
const p =
|
|
4591
|
+
const p = to(f.value, i);
|
|
4517
4592
|
if (p) {
|
|
4518
|
-
d = /* @__PURE__ */ P(
|
|
4593
|
+
d = /* @__PURE__ */ P(eo, { resetToken: f, fallback: a, children: /* @__PURE__ */ P(L.Suspense, { fallback: a, children: /* @__PURE__ */ P(no, { icon: p, ...s }) }) }, JSON.stringify([n, i, o, f.id]));
|
|
4519
4594
|
break e;
|
|
4520
4595
|
}
|
|
4521
4596
|
}
|
|
@@ -4524,11 +4599,11 @@ function gi(t) {
|
|
|
4524
4599
|
d = e[14];
|
|
4525
4600
|
if (d !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
4526
4601
|
return d;
|
|
4527
|
-
let
|
|
4528
|
-
return e[15] !== a ? (
|
|
4602
|
+
let u;
|
|
4603
|
+
return e[15] !== a ? (u = /* @__PURE__ */ P(It, { children: a }), e[15] = a, e[16] = u) : u = e[16], u;
|
|
4529
4604
|
}
|
|
4530
|
-
const
|
|
4531
|
-
function
|
|
4605
|
+
const wi = "omniview/settings/editor";
|
|
4606
|
+
function Ei(t) {
|
|
4532
4607
|
const e = q(23);
|
|
4533
4608
|
let r, n, s;
|
|
4534
4609
|
e[0] !== t ? ({
|
|
@@ -4537,32 +4612,32 @@ function yi(t) {
|
|
|
4537
4612
|
...n
|
|
4538
4613
|
} = t, e[0] = t, e[1] = r, e[2] = n, e[3] = s) : (r = e[1], n = e[2], s = e[3]);
|
|
4539
4614
|
const i = s === void 0 ? !0 : s, o = Q(r), c = i && !!n.type;
|
|
4540
|
-
let
|
|
4541
|
-
e[4] !== o || e[5] !== n.route.connection || e[6] !== c ? (
|
|
4615
|
+
let l;
|
|
4616
|
+
e[4] !== o || e[5] !== n.route.connection || e[6] !== c ? (l = {
|
|
4542
4617
|
pluginID: o,
|
|
4543
4618
|
connectionID: n.route.connection,
|
|
4544
4619
|
enabled: c
|
|
4545
|
-
}, e[4] = o, e[5] = n.route.connection, e[6] = c, e[7] =
|
|
4546
|
-
const a = le(
|
|
4620
|
+
}, e[4] = o, e[5] = n.route.connection, e[6] = c, e[7] = l) : l = e[7];
|
|
4621
|
+
const a = le(l), d = ue(o, n.route.connection), u = i && !!o && !!n.route.connection && !!n.type && a.phase === "connected";
|
|
4547
4622
|
let f;
|
|
4548
4623
|
e[8] !== o || e[9] !== n ? (f = [o, "resource-v2", "resolve-target", n], e[8] = o, e[9] = n, e[10] = f) : f = e[10];
|
|
4549
4624
|
let p;
|
|
4550
|
-
e[11] !== d || e[12] !== o || e[13] !==
|
|
4625
|
+
e[11] !== d || e[12] !== o || e[13] !== u || e[14] !== n ? (p = u ? (y) => {
|
|
4551
4626
|
const {
|
|
4552
4627
|
signal: b,
|
|
4553
4628
|
queryKey: w
|
|
4554
4629
|
} = y;
|
|
4555
4630
|
return d(w, b, () => Vt(o, n));
|
|
4556
|
-
} :
|
|
4631
|
+
} : ce, e[11] = d, e[12] = o, e[13] = u, e[14] = n, e[15] = p) : p = e[15];
|
|
4557
4632
|
let v;
|
|
4558
|
-
e[16] !==
|
|
4633
|
+
e[16] !== u || e[17] !== f || e[18] !== p ? (v = {
|
|
4559
4634
|
queryKey: f,
|
|
4560
4635
|
queryFn: p,
|
|
4561
|
-
enabled:
|
|
4636
|
+
enabled: u,
|
|
4562
4637
|
retry: !1,
|
|
4563
4638
|
placeholderData: void 0
|
|
4564
|
-
}, e[16] =
|
|
4565
|
-
const h =
|
|
4639
|
+
}, e[16] = u, e[17] = f, e[18] = p, e[19] = v) : v = e[19];
|
|
4640
|
+
const h = j(v), g = u && h.isSuccess && !h.isFetching ? h.data : void 0;
|
|
4566
4641
|
let m;
|
|
4567
4642
|
return e[20] !== h || e[21] !== g ? (m = {
|
|
4568
4643
|
...h,
|
|
@@ -4570,113 +4645,114 @@ function yi(t) {
|
|
|
4570
4645
|
}, e[20] = h, e[21] = g, e[22] = m) : m = e[22], m;
|
|
4571
4646
|
}
|
|
4572
4647
|
export {
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4648
|
+
Le as ALL_SESSIONS_KEY,
|
|
4649
|
+
Vr as BottomDrawerContext,
|
|
4650
|
+
Zr as ConfirmationModalContext,
|
|
4651
|
+
Ao as ConnectionBoundary,
|
|
4652
|
+
ws as ConnectionBoundaryFallback,
|
|
4578
4653
|
Z as ErrorTypes,
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4654
|
+
Co as ExtensionPointRegistry,
|
|
4655
|
+
os as ExtensionPointStore,
|
|
4656
|
+
Io as ExtensionProvider,
|
|
4657
|
+
Zs as GLOBAL_SEARCH_OPEN_EVENT,
|
|
4583
4658
|
gt as HOST_SETTINGS_SCOPE,
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4659
|
+
gi as Link,
|
|
4660
|
+
ln as OperationsContext,
|
|
4661
|
+
bo as OperationsProvider,
|
|
4587
4662
|
_t as PluginContext,
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4663
|
+
mo as PluginContextProvider,
|
|
4664
|
+
Ys as PluginErrorCode,
|
|
4665
|
+
mi as PluginWindow,
|
|
4666
|
+
yi as PluginWindowRootProps,
|
|
4667
|
+
Xs as RESOURCE_ICON_EXTENSION_POINT_ID,
|
|
4668
|
+
bi as ResourceIcon,
|
|
4669
|
+
Yr as RightDrawerContext,
|
|
4670
|
+
wi as SETTINGS_EDITOR_EXTENSION_POINT_ID,
|
|
4671
|
+
an as SettingsContext,
|
|
4672
|
+
vo as SettingsProvider,
|
|
4673
|
+
_o as SnackbarProvider,
|
|
4674
|
+
Ci as SyncPolicy,
|
|
4675
|
+
K as WatchState,
|
|
4601
4676
|
Dt as WindowActionsContext,
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4677
|
+
wo as WindowActionsProvider,
|
|
4678
|
+
zr as actionToSnackbar,
|
|
4679
|
+
jt as applyBatch,
|
|
4680
|
+
us as connectionListQueryKey,
|
|
4606
4681
|
se as createErrorHandler,
|
|
4607
|
-
|
|
4608
|
-
|
|
4682
|
+
Hr as defaultState,
|
|
4683
|
+
Bs as graphChangedEvent,
|
|
4609
4684
|
Ve as isCancelledError,
|
|
4610
|
-
|
|
4685
|
+
ci as jsonTextToValue,
|
|
4611
4686
|
zt as jsonToValue,
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4687
|
+
Gr as navigateActivePage,
|
|
4688
|
+
vi as openGlobalSearch,
|
|
4689
|
+
jr as openSettings,
|
|
4690
|
+
ye as parseAppError,
|
|
4691
|
+
Fo as readCurrentConnectionMetadataString,
|
|
4692
|
+
yo as registerActivePageNavigator,
|
|
4693
|
+
li as relationshipLabel,
|
|
4619
4694
|
et as requireConnectionReady,
|
|
4620
4695
|
Ne as resourceQueryKeys,
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4696
|
+
Dn as sameGraphNode,
|
|
4697
|
+
Kr as scopedSettingID,
|
|
4698
|
+
Ur as settingsQueryKey,
|
|
4699
|
+
sn as settingsWindowTarget,
|
|
4700
|
+
Ae as showAppError,
|
|
4701
|
+
Hs as toRelatedResources,
|
|
4702
|
+
ii as useActiveSyncs,
|
|
4703
|
+
Sn as useBottomDrawer,
|
|
4704
|
+
Bo as useConfirmationModal,
|
|
4705
|
+
Ro as useConnection,
|
|
4706
|
+
Po as useConnectionMetadata,
|
|
4707
|
+
xo as useConnectionMetadataConnections,
|
|
4708
|
+
Lo as useConnectionMetadataSelector,
|
|
4709
|
+
To as useConnectionProfiles,
|
|
4635
4710
|
le as useConnectionReadiness,
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4711
|
+
Oo as useConnectionStatus,
|
|
4712
|
+
No as useConnections,
|
|
4713
|
+
di as useDependencyTree,
|
|
4714
|
+
si as useEditorSchemas,
|
|
4715
|
+
Us as useEventBatcher,
|
|
4716
|
+
Mo as useExec,
|
|
4717
|
+
ri as useExecuteAction,
|
|
4718
|
+
So as useExtensionPoint,
|
|
4719
|
+
fn as useExtensionPointSnapshot,
|
|
4720
|
+
ss as useExtensionRegistry,
|
|
4721
|
+
Wo as useLogs,
|
|
4722
|
+
Qo as useMetricProviders,
|
|
4723
|
+
Ts as useMetricProvidersForResource,
|
|
4724
|
+
jo as useMetricStream,
|
|
4725
|
+
Uo as useNativeExec,
|
|
4726
|
+
zs as useOperations,
|
|
4727
|
+
cn as usePluginContext,
|
|
4728
|
+
qo as usePluginData,
|
|
4729
|
+
hi as usePluginRouter,
|
|
4730
|
+
Go as usePortForwardSessions,
|
|
4655
4731
|
Tt as useRefetchOnGraphChange,
|
|
4656
|
-
|
|
4732
|
+
ui as useRelatedResources,
|
|
4657
4733
|
Q as useResolvedPluginId,
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4734
|
+
Ei as useResolvedResourceTarget,
|
|
4735
|
+
Jo as useResource,
|
|
4736
|
+
ni as useResourceActions,
|
|
4737
|
+
Ho as useResourceAreaComponent,
|
|
4738
|
+
fi as useResourceGraph,
|
|
4739
|
+
Vo as useResourceGroups,
|
|
4740
|
+
Ko as useResourceMetrics,
|
|
4741
|
+
ti as useResourceMutations,
|
|
4742
|
+
zo as useResourcePortForwarder,
|
|
4743
|
+
Yo as useResourceSearch,
|
|
4744
|
+
Zo as useResourceType,
|
|
4745
|
+
Xo as useResourceTypes,
|
|
4746
|
+
ei as useResources,
|
|
4747
|
+
$o as useRightDrawer,
|
|
4748
|
+
ko as useScopeValues,
|
|
4749
|
+
rn as useScopedSettings,
|
|
4750
|
+
pi as useSettings,
|
|
4751
|
+
fe as useSnackbar,
|
|
4752
|
+
ai as useStreamAction,
|
|
4753
|
+
oi as useWatchState,
|
|
4754
|
+
Eo as useWindowActions,
|
|
4679
4755
|
wt as valueToJSON,
|
|
4680
4756
|
Bt as valueToJSONText,
|
|
4681
|
-
|
|
4757
|
+
Do as withConnectionReady
|
|
4682
4758
|
};
|