@omniviewdev/runtime 0.9.2 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.cjs +1 -1
- package/dist/api.d.ts +1 -0
- package/dist/api.js +173 -113
- package/dist/bindings/events/index.d.ts +28 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/models.d.ts +190 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/service.d.ts +83 -0
- package/dist/context/index.d.ts +1 -0
- package/dist/context/windows/WindowActionsContext.d.ts +31 -0
- package/dist/context/windows/activePageNavigator.d.ts +13 -0
- package/dist/context/windows/index.d.ts +2 -0
- package/dist/index.cjs +4 -4
- package/dist/index.js +1441 -1394
- package/dist/models-BxypsesT.cjs +1 -0
- package/dist/models-C6jzDokQ.js +347 -0
- package/dist/models.cjs +1 -1
- package/dist/models.d.ts +1 -0
- package/dist/models.js +29 -28
- package/dist/router/Link.d.ts +3 -0
- package/package.json +3 -3
- package/dist/models-DU8pTcoZ.js +0 -142
- package/dist/models-KV9f8Ceh.cjs +0 -1
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as N, jsxs as ce, Fragment as
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import { Link as
|
|
5
|
-
import { useQueryClient as
|
|
6
|
-
import { P as
|
|
1
|
+
import { jsx as N, jsxs as ce, Fragment as bt } from "react/jsx-runtime";
|
|
2
|
+
import { c as q } from "react/compiler-runtime";
|
|
3
|
+
import L, { useContext as Ue, createContext as tt, useState as Ie, useRef as pe, useSyncExternalStore as Mt, useCallback as Xe, useEffect as De, createElement as In, useId as Dn, useLayoutEffect as gt, Component as Rn } from "react";
|
|
4
|
+
import { Link as xn, useNavigate as An, useLocation as Tn, createMemoryRouter as Nn } from "react-router";
|
|
5
|
+
import { useQueryClient as Se, useMutation as oe, useQuery as re, keepPreviousData as Ut, CancelledError as ot, skipToken as Ee, useQueries as Pn } from "@tanstack/react-query";
|
|
6
|
+
import { P as On, G as Fn, V as kn, C as Ln, S as $n, k as qn, U as Mn, R as Un, l as Wn, m as Wt, n as Kn, L as Gn, o as Qn, p as jn, q as zn, r as Bn, t as Hn, u as Jn, v as Vn, w as Yn, x as Zn, y as Xn, z as es, Q as ts, A as ns, B as Nt, D as ss, E as Kt, F as rs, H as os, I as is, J as Gt, K as Qt, M as cs, N as as, O as jt, T as ls, W as us, X as zt, Y as ds, Z as fs, _ as ps, $ as hs, a0 as gs, a1 as ys, a2 as Pt, a3 as ms, a4 as vs, a5 as _s, a6 as bs, a7 as Ss } from "./servicewrapper-C6SURWw1.js";
|
|
7
7
|
import "./index-zyAgCXOO.js";
|
|
8
|
-
import { useToast as
|
|
9
|
-
import { O as Z, a as
|
|
10
|
-
import { P as
|
|
11
|
-
import { RouterProvider as
|
|
12
|
-
import { w as
|
|
13
|
-
const St =
|
|
8
|
+
import { useToast as Es, Card as ws, Toolbar as Ot, Text as Te, IconButton as Je, EmptyState as Cs, Button as Fe, Code as Is, Spinner as Ds } from "@omniviewdev/base-ui";
|
|
9
|
+
import { O as Z, a as Bt } from "./events-uBheGmqm.js";
|
|
10
|
+
import { P as Rs, W as xs, S as As, C as Ts, L as Ns, F as Ps, a as Os, G as Fs, U as Ht, D as Jt, b as Vt, c as Yt, A as Zt } from "./models-CT4kHj47.js";
|
|
11
|
+
import { RouterProvider as ks } from "react-router/dom";
|
|
12
|
+
import { w as Ls } from "./legacyEnum-CKqyRmbX.js";
|
|
13
|
+
const St = L.createContext(void 0), se = {
|
|
14
14
|
// Plugin
|
|
15
15
|
PLUGIN_NOT_FOUND: "omniview:plugin/not-found",
|
|
16
16
|
PLUGIN_NOT_LOADED: "omniview:plugin/not-loaded",
|
|
@@ -45,7 +45,19 @@ const St = q.createContext(void 0), se = {
|
|
|
45
45
|
INTERNAL: "omniview:internal",
|
|
46
46
|
VALIDATION: "omniview:validation",
|
|
47
47
|
NOT_IMPLEMENTED: "omniview:not-implemented"
|
|
48
|
-
}
|
|
48
|
+
};
|
|
49
|
+
let Be = null;
|
|
50
|
+
function lo(t) {
|
|
51
|
+
return Be = t, () => {
|
|
52
|
+
Be === t && (Be = null);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function $s(t) {
|
|
56
|
+
if (!Be)
|
|
57
|
+
throw new Error(`cannot navigate to "${t}": this window has no page navigator`);
|
|
58
|
+
Be(t);
|
|
59
|
+
}
|
|
60
|
+
const Ft = {
|
|
49
61
|
INVALID_REQUEST: [se.VALIDATION, 400, "correctRequest"],
|
|
50
62
|
UNSUPPORTED: [se.NOT_IMPLEMENTED, 501, "refreshContract"],
|
|
51
63
|
FORBIDDEN: [se.RESOURCE_FORBIDDEN, 403, "none"],
|
|
@@ -65,13 +77,13 @@ const St = q.createContext(void 0), se = {
|
|
|
65
77
|
PROVIDER_ERROR: [se.RESOURCE_PROVIDER_ERROR, 502, "none"],
|
|
66
78
|
INTERNAL: [se.INTERNAL, 500, "none"]
|
|
67
79
|
};
|
|
68
|
-
function
|
|
80
|
+
function it(t) {
|
|
69
81
|
return typeof t == "object" && t !== null ? t : void 0;
|
|
70
82
|
}
|
|
71
83
|
function _e(t, e) {
|
|
72
84
|
return typeof t == "string" && t.length > 0 && t.length <= e;
|
|
73
85
|
}
|
|
74
|
-
function
|
|
86
|
+
function ct() {
|
|
75
87
|
return {
|
|
76
88
|
type: se.CANCELLED,
|
|
77
89
|
code: "CANCELLED",
|
|
@@ -81,21 +93,21 @@ function it() {
|
|
|
81
93
|
recovery: "none"
|
|
82
94
|
};
|
|
83
95
|
}
|
|
84
|
-
function
|
|
96
|
+
function Ze(t, e) {
|
|
85
97
|
if (e > 4) return;
|
|
86
|
-
if (t === "cancelled") return
|
|
98
|
+
if (t === "cancelled") return ct();
|
|
87
99
|
if (typeof t == "string") {
|
|
88
100
|
const n = t.trim();
|
|
89
101
|
if (!n.startsWith("{")) return;
|
|
90
102
|
try {
|
|
91
|
-
return
|
|
103
|
+
return Ze(JSON.parse(n), e + 1);
|
|
92
104
|
} catch {
|
|
93
105
|
return;
|
|
94
106
|
}
|
|
95
107
|
}
|
|
96
|
-
const r =
|
|
108
|
+
const r = it(t);
|
|
97
109
|
if (r) {
|
|
98
|
-
if (r.name === "AbortError" || r.name === "CancelError") return
|
|
110
|
+
if (r.name === "AbortError" || r.name === "CancelError") return ct();
|
|
99
111
|
if (_e(r.type, 256) && _e(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) {
|
|
100
112
|
const n = {
|
|
101
113
|
type: r.type,
|
|
@@ -104,10 +116,10 @@ function Ye(t, e) {
|
|
|
104
116
|
detail: r.detail
|
|
105
117
|
};
|
|
106
118
|
_e(r.code, 64) && (n.code = r.code), _e(r.requestId, 256) && (n.requestId = r.requestId), _e(r.instance, 512) && (n.instance = r.instance), Array.isArray(r.suggestions) && (n.suggestions = r.suggestions.filter((i) => _e(i, 512)).slice(0, 8)), Array.isArray(r.actions) && (n.actions = r.actions.filter((i) => {
|
|
107
|
-
const o =
|
|
119
|
+
const o = it(i);
|
|
108
120
|
return !!o && ["navigate", "retry", "open-url", "copy"].includes(String(o.type)) && _e(o.label, 256) && (o.target === void 0 || _e(o.target, 4096));
|
|
109
121
|
}).slice(0, 8)), ["correctRequest", "refreshContract", "restartQuery", "reconnect", "none"].includes(String(r.recovery)) && (n.recovery = r.recovery);
|
|
110
|
-
const s =
|
|
122
|
+
const s = it(r.location);
|
|
111
123
|
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 = {
|
|
112
124
|
start: s.start,
|
|
113
125
|
end: s.end,
|
|
@@ -116,8 +128,8 @@ function Ye(t, e) {
|
|
|
116
128
|
}
|
|
117
129
|
if (typeof r.code == "string" && typeof r.title == "string" && typeof r.message == "string") {
|
|
118
130
|
let n = r.code;
|
|
119
|
-
if (n === "PERMISSION_DENIED" && (n = "FORBIDDEN"), ["INVALID_INPUT", "FILTER_UNKNOWN_FIELD", "FILTER_INVALID_OPERATOR"].includes(n) && (n = "INVALID_REQUEST"), Object.prototype.hasOwnProperty.call(
|
|
120
|
-
const [s, i, o] =
|
|
131
|
+
if (n === "PERMISSION_DENIED" && (n = "FORBIDDEN"), ["INVALID_INPUT", "FILTER_UNKNOWN_FIELD", "FILTER_INVALID_OPERATOR"].includes(n) && (n = "INVALID_REQUEST"), Object.prototype.hasOwnProperty.call(Ft, n) || (n = "INTERNAL"), n === "CANCELLED") return ct();
|
|
132
|
+
const [s, i, o] = Ft[n], u = n === "FORBIDDEN" || n === "UNAUTHORIZED" || n === "INTERNAL" || n === "PROVIDER_ERROR";
|
|
121
133
|
return {
|
|
122
134
|
type: s,
|
|
123
135
|
status: i,
|
|
@@ -130,27 +142,28 @@ function Ye(t, e) {
|
|
|
130
142
|
} : {}
|
|
131
143
|
};
|
|
132
144
|
}
|
|
133
|
-
return
|
|
145
|
+
return Ze(r.message, e + 1) ?? Ze(r.cause, e + 1);
|
|
134
146
|
}
|
|
135
147
|
}
|
|
136
|
-
function
|
|
137
|
-
return
|
|
148
|
+
function be(t) {
|
|
149
|
+
return Ze(t, 0) ?? {
|
|
138
150
|
type: se.INTERNAL,
|
|
139
151
|
title: t == null ? "Unknown error" : "Error",
|
|
140
152
|
status: 500,
|
|
141
153
|
detail: t == null ? "An unknown error occurred." : "The operation could not be completed."
|
|
142
154
|
};
|
|
143
155
|
}
|
|
144
|
-
function
|
|
145
|
-
return
|
|
156
|
+
function et(t) {
|
|
157
|
+
return be(t).type === se.CANCELLED;
|
|
146
158
|
}
|
|
147
|
-
function
|
|
159
|
+
function qs(t) {
|
|
148
160
|
switch (t.type) {
|
|
149
161
|
case "navigate":
|
|
150
162
|
return {
|
|
151
163
|
label: t.label,
|
|
164
|
+
// Backend targets are hash routes (`#/settings?...`); they open in the active page tab.
|
|
152
165
|
onClick: () => {
|
|
153
|
-
|
|
166
|
+
$s((t.target ?? "/").replace(/^#/, ""));
|
|
154
167
|
}
|
|
155
168
|
};
|
|
156
169
|
case "open-url":
|
|
@@ -181,113 +194,113 @@ function ks(t) {
|
|
|
181
194
|
};
|
|
182
195
|
}
|
|
183
196
|
}
|
|
184
|
-
function
|
|
197
|
+
function Xt(t, e) {
|
|
185
198
|
const r = [t.detail, ...t.suggestions?.map((s) => `• ${s}`) ?? []].join(`
|
|
186
199
|
`);
|
|
187
200
|
return {
|
|
188
201
|
message: e || (t.title !== "Error" ? t.title : "Operation failed"),
|
|
189
202
|
status: "error",
|
|
190
203
|
details: r,
|
|
191
|
-
actions: t.actions?.map(
|
|
204
|
+
actions: t.actions?.map(qs)
|
|
192
205
|
};
|
|
193
206
|
}
|
|
194
207
|
function xe(t, e, r) {
|
|
195
|
-
if (
|
|
196
|
-
const n =
|
|
197
|
-
t(
|
|
208
|
+
if (et(e)) return;
|
|
209
|
+
const n = be(e);
|
|
210
|
+
t(Xt(n, r));
|
|
198
211
|
}
|
|
199
212
|
function le(t, e) {
|
|
200
213
|
return (r) => {
|
|
201
|
-
if (
|
|
202
|
-
const n =
|
|
203
|
-
t(
|
|
214
|
+
if (et(r)) return;
|
|
215
|
+
const n = be(r);
|
|
216
|
+
t(Xt(n, n.title !== "Error" ? n.title : e));
|
|
204
217
|
};
|
|
205
218
|
}
|
|
206
|
-
function
|
|
207
|
-
const e =
|
|
219
|
+
function uo(t) {
|
|
220
|
+
const e = q(2);
|
|
208
221
|
let r;
|
|
209
|
-
return e[0] !== t ? (r = /* @__PURE__ */ N(
|
|
222
|
+
return e[0] !== t ? (r = /* @__PURE__ */ N(Ms, { ...t }, t.pluginId), e[0] = t, e[1] = r) : r = e[1], r;
|
|
210
223
|
}
|
|
211
|
-
function
|
|
212
|
-
const e =
|
|
224
|
+
function Ms(t) {
|
|
225
|
+
const e = q(40), {
|
|
213
226
|
children: r,
|
|
214
227
|
pluginId: n,
|
|
215
228
|
headless: s
|
|
216
229
|
} = t, i = s === void 0 ? !1 : s;
|
|
217
230
|
let o;
|
|
218
231
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {}, e[0] = o) : o = e[0];
|
|
219
|
-
const [u, l] =
|
|
232
|
+
const [u, l] = L.useState(o);
|
|
220
233
|
let a;
|
|
221
|
-
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = new
|
|
222
|
-
const [c, p] =
|
|
234
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = new Rs(), e[1] = a) : a = e[1];
|
|
235
|
+
const [c, p] = L.useState(a), [d, g] = L.useState(!1), [h, y] = L.useState(null), f = L.useRef(0), v = L.useRef(0);
|
|
223
236
|
console.debug("[PluginContextProvider] render", {
|
|
224
237
|
pluginId: n,
|
|
225
|
-
metaLoaded:
|
|
238
|
+
metaLoaded: d,
|
|
226
239
|
metaError: !!h
|
|
227
240
|
});
|
|
228
|
-
let
|
|
229
|
-
e[2] !== n ? (
|
|
241
|
+
let m;
|
|
242
|
+
e[2] !== n ? (m = () => {
|
|
230
243
|
if (n === void 0 || n === "")
|
|
231
244
|
return;
|
|
232
|
-
const
|
|
233
|
-
console.debug(`[PluginContextProvider] fetching settings for "${n}"`),
|
|
234
|
-
|
|
235
|
-
}).catch((
|
|
236
|
-
if (
|
|
245
|
+
const T = f.current = f.current + 1;
|
|
246
|
+
console.debug(`[PluginContextProvider] fetching settings for "${n}"`), On(n).then((A) => {
|
|
247
|
+
T === f.current && (console.debug(`[PluginContextProvider] settings loaded for "${n}"`, Object.keys(A)), l(A));
|
|
248
|
+
}).catch((A) => {
|
|
249
|
+
if (T !== f.current)
|
|
237
250
|
return;
|
|
238
|
-
const k =
|
|
251
|
+
const k = be(A);
|
|
239
252
|
console.error(`[PluginContextProvider] error fetching settings for "${n}":`, k.detail);
|
|
240
253
|
});
|
|
241
|
-
}, e[2] = n, e[3] =
|
|
242
|
-
const _ =
|
|
243
|
-
let
|
|
244
|
-
e[4] !== n ? (
|
|
254
|
+
}, e[2] = n, e[3] = m) : m = e[3];
|
|
255
|
+
const _ = m;
|
|
256
|
+
let b;
|
|
257
|
+
e[4] !== n ? (b = () => {
|
|
245
258
|
if (n === void 0 || n === "") {
|
|
246
259
|
console.debug("[PluginContextProvider] skipping meta fetch — empty pluginId");
|
|
247
260
|
return;
|
|
248
261
|
}
|
|
249
|
-
const
|
|
250
|
-
console.debug(`[PluginContextProvider] fetching meta for "${n}"`),
|
|
251
|
-
|
|
252
|
-
name:
|
|
253
|
-
version:
|
|
254
|
-
}), p(
|
|
255
|
-
}).catch((
|
|
256
|
-
if (
|
|
262
|
+
const T = v.current = v.current + 1;
|
|
263
|
+
console.debug(`[PluginContextProvider] fetching meta for "${n}"`), Fn(n).then((A) => {
|
|
264
|
+
T === v.current && (console.debug(`[PluginContextProvider] meta loaded for "${n}"`, {
|
|
265
|
+
name: A?.name,
|
|
266
|
+
version: A?.version
|
|
267
|
+
}), p(A), g(!0));
|
|
268
|
+
}).catch((A) => {
|
|
269
|
+
if (T !== v.current)
|
|
257
270
|
return;
|
|
258
|
-
const k =
|
|
259
|
-
console.error(`[PluginContextProvider] error fetching meta for "${n}":`, k.detail),
|
|
271
|
+
const k = be(A);
|
|
272
|
+
console.error(`[PluginContextProvider] error fetching meta for "${n}":`, k.detail), y(k.detail), g(!1);
|
|
260
273
|
});
|
|
261
|
-
}, e[4] = n, e[5] =
|
|
262
|
-
const C =
|
|
274
|
+
}, e[4] = n, e[5] = b) : b = e[5];
|
|
275
|
+
const C = b;
|
|
263
276
|
let E, I;
|
|
264
|
-
e[6] !== C || e[7] !== _ || e[8] !==
|
|
265
|
-
if (
|
|
277
|
+
e[6] !== C || e[7] !== _ || e[8] !== d || e[9] !== n ? (E = () => {
|
|
278
|
+
if (d)
|
|
266
279
|
return;
|
|
267
|
-
const
|
|
268
|
-
|
|
269
|
-
},
|
|
270
|
-
k.data?.id === n &&
|
|
271
|
-
}), Z("plugin/inventory_changed",
|
|
280
|
+
const T = () => {
|
|
281
|
+
y(null), _(), C();
|
|
282
|
+
}, A = [Z("plugin/init_complete", T), Z("plugin/dev_install_complete", (k) => {
|
|
283
|
+
k.data?.id === n && T();
|
|
284
|
+
}), Z("plugin/inventory_changed", T)];
|
|
272
285
|
return () => {
|
|
273
|
-
for (const k of
|
|
286
|
+
for (const k of A)
|
|
274
287
|
k();
|
|
275
288
|
};
|
|
276
|
-
}, I = [n,
|
|
289
|
+
}, I = [n, d, _, C], e[6] = C, e[7] = _, e[8] = d, e[9] = n, e[10] = E, e[11] = I) : (E = e[10], I = e[11]), L.useEffect(E, I);
|
|
277
290
|
let w, D;
|
|
278
291
|
if (e[12] !== C || e[13] !== _ || e[14] !== n ? (w = () => (console.debug(`[PluginContextProvider] useEffect — pluginId changed to "${n}"`), _(), C(), () => {
|
|
279
|
-
|
|
280
|
-
}), D = [n, _, C], e[12] = C, e[13] = _, e[14] = n, e[15] = w, e[16] = D) : (w = e[15], D = e[16]),
|
|
292
|
+
f.current = f.current + 1, v.current = v.current + 1;
|
|
293
|
+
}), D = [n, _, C], e[12] = C, e[13] = _, e[14] = n, e[15] = w, e[16] = D) : (w = e[15], D = e[16]), L.useEffect(w, D), h) {
|
|
281
294
|
if (i)
|
|
282
295
|
throw new Error(h);
|
|
283
|
-
let
|
|
296
|
+
let T, A, k;
|
|
284
297
|
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = {
|
|
285
298
|
display: "flex",
|
|
286
299
|
flex: 1,
|
|
287
300
|
alignItems: "center",
|
|
288
301
|
justifyContent: "center",
|
|
289
302
|
padding: 24
|
|
290
|
-
},
|
|
303
|
+
}, T = {
|
|
291
304
|
maxWidth: 480,
|
|
292
305
|
width: "100%",
|
|
293
306
|
border: "1px solid #7F1D1D",
|
|
@@ -295,14 +308,14 @@ function Ls(t) {
|
|
|
295
308
|
backgroundColor: "#1C1917",
|
|
296
309
|
padding: 20,
|
|
297
310
|
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
|
|
298
|
-
},
|
|
311
|
+
}, A = {
|
|
299
312
|
display: "flex",
|
|
300
313
|
alignItems: "center",
|
|
301
314
|
gap: 8,
|
|
302
315
|
marginBottom: 12
|
|
303
|
-
}, e[17] =
|
|
316
|
+
}, e[17] = T, e[18] = A, e[19] = k) : (T = e[17], A = e[18], k = e[19]);
|
|
304
317
|
let M, W;
|
|
305
|
-
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ ce("div", { style:
|
|
318
|
+
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ ce("div", { style: A, children: [
|
|
306
319
|
/* @__PURE__ */ ce("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "#EF4444", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
307
320
|
/* @__PURE__ */ N("circle", { cx: "12", cy: "12", r: "10" }),
|
|
308
321
|
/* @__PURE__ */ N("line", { x1: "12", y1: "8", x2: "12", y2: "12" }),
|
|
@@ -322,7 +335,7 @@ function Ls(t) {
|
|
|
322
335
|
e[22] !== h ? (j = /* @__PURE__ */ N("p", { style: W, children: h }), e[22] = h, e[23] = j) : j = e[23];
|
|
323
336
|
let V;
|
|
324
337
|
e[24] !== C ? (V = () => {
|
|
325
|
-
|
|
338
|
+
y(null), C();
|
|
326
339
|
}, e[24] = C, e[25] = V) : V = e[25];
|
|
327
340
|
let Y;
|
|
328
341
|
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = {
|
|
@@ -338,17 +351,17 @@ function Ls(t) {
|
|
|
338
351
|
let G;
|
|
339
352
|
e[27] !== V ? (G = /* @__PURE__ */ N("button", { onClick: V, style: Y, children: "Retry" }), e[27] = V, e[28] = G) : G = e[28];
|
|
340
353
|
let J;
|
|
341
|
-
return e[29] !== j || e[30] !== G ? (J = /* @__PURE__ */ N("div", { style: k, children: /* @__PURE__ */ ce("div", { style:
|
|
354
|
+
return e[29] !== j || e[30] !== G ? (J = /* @__PURE__ */ N("div", { style: k, children: /* @__PURE__ */ ce("div", { style: T, children: [
|
|
342
355
|
M,
|
|
343
356
|
j,
|
|
344
357
|
G
|
|
345
358
|
] }) }), e[29] = j, e[30] = G, e[31] = J) : J = e[31], J;
|
|
346
359
|
}
|
|
347
|
-
if (!
|
|
360
|
+
if (!d) {
|
|
348
361
|
if (i)
|
|
349
362
|
return null;
|
|
350
|
-
let
|
|
351
|
-
return e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
363
|
+
let T;
|
|
364
|
+
return e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ ce("div", { style: {
|
|
352
365
|
display: "flex",
|
|
353
366
|
flex: 1,
|
|
354
367
|
alignItems: "center",
|
|
@@ -363,7 +376,7 @@ function Ls(t) {
|
|
|
363
376
|
animation: "plugin-spin 0.8s linear infinite"
|
|
364
377
|
} }),
|
|
365
378
|
/* @__PURE__ */ N("style", { children: "@keyframes plugin-spin { to { transform: rotate(360deg); } }" })
|
|
366
|
-
] }), e[32] =
|
|
379
|
+
] }), e[32] = T) : T = e[32], T;
|
|
367
380
|
}
|
|
368
381
|
let x;
|
|
369
382
|
e[33] !== c || e[34] !== n || e[35] !== u ? (x = {
|
|
@@ -371,20 +384,20 @@ function Ls(t) {
|
|
|
371
384
|
settings: u,
|
|
372
385
|
meta: c
|
|
373
386
|
}, e[33] = c, e[34] = n, e[35] = u, e[36] = x) : x = e[36];
|
|
374
|
-
let
|
|
375
|
-
return e[37] !== r || e[38] !== x ? (
|
|
387
|
+
let P;
|
|
388
|
+
return e[37] !== r || e[38] !== x ? (P = /* @__PURE__ */ N(St.Provider, { value: x, children: r }), e[37] = r, e[38] = x, e[39] = P) : P = e[39], P;
|
|
376
389
|
}
|
|
377
|
-
function
|
|
390
|
+
function Et() {
|
|
378
391
|
const t = Ue(St);
|
|
379
392
|
if (!t)
|
|
380
393
|
throw new Error("usePluginContext must be used within a PluginContextProvider");
|
|
381
394
|
return t;
|
|
382
395
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
396
|
+
function fo() {
|
|
397
|
+
return Et().settings;
|
|
385
398
|
}
|
|
386
|
-
const
|
|
387
|
-
const e =
|
|
399
|
+
const en = tt(void 0), po = (t) => {
|
|
400
|
+
const e = q(10), {
|
|
388
401
|
children: r
|
|
389
402
|
} = t;
|
|
390
403
|
let n;
|
|
@@ -392,34 +405,34 @@ const Zt = et(void 0), co = (t) => {
|
|
|
392
405
|
const [s, i] = Ie(n), o = pe(0);
|
|
393
406
|
let u;
|
|
394
407
|
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => {
|
|
395
|
-
const
|
|
396
|
-
o.current =
|
|
397
|
-
|
|
398
|
-
}).catch((
|
|
399
|
-
|
|
408
|
+
const y = o.current + 1;
|
|
409
|
+
o.current = y, kn().then((f) => {
|
|
410
|
+
y === o.current && i(f);
|
|
411
|
+
}).catch((f) => {
|
|
412
|
+
y === o.current && console.error("Error fetching settings:", f);
|
|
400
413
|
});
|
|
401
414
|
}, e[1] = u) : u = e[1];
|
|
402
415
|
const l = u;
|
|
403
416
|
let a, c;
|
|
404
417
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = () => {
|
|
405
|
-
const
|
|
418
|
+
const y = Z("settings/changed", () => l());
|
|
406
419
|
return l(), () => {
|
|
407
|
-
o.current = o.current + 1,
|
|
420
|
+
o.current = o.current + 1, y();
|
|
408
421
|
};
|
|
409
|
-
}, c = [l], e[2] = a, e[3] = c) : (a = e[2], c = e[3]),
|
|
422
|
+
}, c = [l], e[2] = a, e[3] = c) : (a = e[2], c = e[3]), L.useEffect(a, c);
|
|
410
423
|
let p;
|
|
411
424
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
|
|
412
425
|
l();
|
|
413
426
|
}, e[4] = p) : p = e[4];
|
|
414
|
-
const
|
|
427
|
+
const d = p;
|
|
415
428
|
let g;
|
|
416
429
|
e[5] !== s ? (g = {
|
|
417
430
|
settings: s,
|
|
418
|
-
reload:
|
|
431
|
+
reload: d
|
|
419
432
|
}, e[5] = s, e[6] = g) : g = e[6];
|
|
420
433
|
let h;
|
|
421
|
-
return e[7] !== r || e[8] !== g ? (h = /* @__PURE__ */ N(
|
|
422
|
-
},
|
|
434
|
+
return e[7] !== r || e[8] !== g ? (h = /* @__PURE__ */ N(en.Provider, { value: g, children: r }), e[7] = r, e[8] = g, e[9] = h) : h = e[9], h;
|
|
435
|
+
}, Us = {
|
|
423
436
|
height: 32,
|
|
424
437
|
focused: 0,
|
|
425
438
|
tabs: [],
|
|
@@ -443,41 +456,41 @@ const Zt = et(void 0), co = (t) => {
|
|
|
443
456
|
},
|
|
444
457
|
fullscreenDrawer: () => {
|
|
445
458
|
}
|
|
446
|
-
},
|
|
447
|
-
const e =
|
|
459
|
+
}, Ws = L.createContext(Us), Ks = tt(void 0), Gs = L.createContext(void 0), tn = L.createContext(void 0), Qs = 3e4, ho = (t) => {
|
|
460
|
+
const e = q(12), {
|
|
448
461
|
children: r
|
|
449
462
|
} = t;
|
|
450
463
|
let n;
|
|
451
464
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [], e[0] = n) : n = e[0];
|
|
452
|
-
const [s, i] =
|
|
465
|
+
const [s, i] = L.useState(n);
|
|
453
466
|
let o;
|
|
454
|
-
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = (
|
|
455
|
-
i((
|
|
467
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = (v) => {
|
|
468
|
+
i((m) => [v, ...m]);
|
|
456
469
|
}, e[1] = o) : o = e[1];
|
|
457
470
|
const u = o;
|
|
458
471
|
let l;
|
|
459
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = (
|
|
460
|
-
i((_) => _.map((
|
|
461
|
-
...
|
|
462
|
-
...
|
|
463
|
-
} :
|
|
472
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = (v, m) => {
|
|
473
|
+
i((_) => _.map((b) => b.id === v ? {
|
|
474
|
+
...b,
|
|
475
|
+
...m
|
|
476
|
+
} : b));
|
|
464
477
|
}, e[2] = l) : l = e[2];
|
|
465
478
|
const a = l;
|
|
466
479
|
let c;
|
|
467
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (
|
|
468
|
-
i((
|
|
480
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (v) => {
|
|
481
|
+
i((m) => m.filter((_) => _.id !== v));
|
|
469
482
|
}, e[3] = c) : c = e[3];
|
|
470
483
|
const p = c;
|
|
471
|
-
let
|
|
472
|
-
e[4] !== s ? (
|
|
473
|
-
const
|
|
474
|
-
for (const
|
|
475
|
-
if (
|
|
476
|
-
const _ = Date.now() - (
|
|
477
|
-
|
|
484
|
+
let d, g;
|
|
485
|
+
e[4] !== s ? (d = () => {
|
|
486
|
+
const v = [];
|
|
487
|
+
for (const m of s)
|
|
488
|
+
if (m.status !== "running") {
|
|
489
|
+
const _ = Date.now() - (m.completedAt ?? m.startedAt), b = Math.max(0, Qs - _);
|
|
490
|
+
v.push(setTimeout(() => p(m.id), b));
|
|
478
491
|
}
|
|
479
|
-
return () =>
|
|
480
|
-
}, g = [s, p], e[4] = s, e[5] =
|
|
492
|
+
return () => v.forEach(clearTimeout);
|
|
493
|
+
}, g = [s, p], e[4] = s, e[5] = d, e[6] = g) : (d = e[5], g = e[6]), L.useEffect(d, g);
|
|
481
494
|
let h;
|
|
482
495
|
e[7] !== s ? (h = {
|
|
483
496
|
operations: s,
|
|
@@ -485,65 +498,78 @@ const Zt = et(void 0), co = (t) => {
|
|
|
485
498
|
updateOperation: a,
|
|
486
499
|
removeOperation: p
|
|
487
500
|
}, e[7] = s, e[8] = h) : h = e[8];
|
|
488
|
-
const
|
|
489
|
-
let
|
|
490
|
-
return e[9] !== r || e[10] !==
|
|
501
|
+
const y = h;
|
|
502
|
+
let f;
|
|
503
|
+
return e[9] !== r || e[10] !== y ? (f = /* @__PURE__ */ N(tn.Provider, { value: y, children: r }), e[9] = r, e[10] = y, e[11] = f) : f = e[11], f;
|
|
504
|
+
}, wt = L.createContext(null), go = (t) => {
|
|
505
|
+
const e = q(3), {
|
|
506
|
+
actions: r,
|
|
507
|
+
children: n
|
|
508
|
+
} = t;
|
|
509
|
+
let s;
|
|
510
|
+
return e[0] !== r || e[1] !== n ? (s = /* @__PURE__ */ N(wt.Provider, { value: r, children: n }), e[0] = r, e[1] = n, e[2] = s) : s = e[2], s;
|
|
491
511
|
};
|
|
492
|
-
|
|
493
|
-
|
|
512
|
+
function yo() {
|
|
513
|
+
const t = L.useContext(wt);
|
|
514
|
+
if (!t)
|
|
515
|
+
throw new Error("useWindowActions must be used inside a workspace window (WindowActionsProvider)");
|
|
516
|
+
return t;
|
|
517
|
+
}
|
|
518
|
+
var yt = function(t, e) {
|
|
519
|
+
return yt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
494
520
|
r.__proto__ = n;
|
|
495
521
|
} || function(r, n) {
|
|
496
522
|
for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (r[s] = n[s]);
|
|
497
|
-
},
|
|
523
|
+
}, yt(t, e);
|
|
498
524
|
};
|
|
499
|
-
function
|
|
525
|
+
function js(t, e) {
|
|
500
526
|
if (typeof e != "function" && e !== null)
|
|
501
527
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
502
|
-
|
|
528
|
+
yt(t, e);
|
|
503
529
|
function r() {
|
|
504
530
|
this.constructor = t;
|
|
505
531
|
}
|
|
506
532
|
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
|
|
507
533
|
}
|
|
508
|
-
var
|
|
534
|
+
var at = "Invariant Violation", kt = Object.setPrototypeOf, zs = kt === void 0 ? function(t, e) {
|
|
509
535
|
return t.__proto__ = e, t;
|
|
510
|
-
} :
|
|
536
|
+
} : kt, Bs = (
|
|
511
537
|
/** @class */
|
|
512
538
|
(function(t) {
|
|
513
|
-
|
|
539
|
+
js(e, t);
|
|
514
540
|
function e(r) {
|
|
515
|
-
r === void 0 && (r =
|
|
516
|
-
var n = t.call(this, typeof r == "number" ?
|
|
517
|
-
return n.framesToPop = 1, n.name =
|
|
541
|
+
r === void 0 && (r = at);
|
|
542
|
+
var n = t.call(this, typeof r == "number" ? at + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
|
|
543
|
+
return n.framesToPop = 1, n.name = at, zs(n, e.prototype), n;
|
|
518
544
|
}
|
|
519
545
|
return e;
|
|
520
546
|
})(Error)
|
|
521
547
|
);
|
|
522
|
-
function
|
|
548
|
+
function mt(t, e) {
|
|
523
549
|
if (!t)
|
|
524
|
-
throw new
|
|
550
|
+
throw new Bs(e);
|
|
525
551
|
}
|
|
526
|
-
var
|
|
527
|
-
function
|
|
552
|
+
var nn = ["debug", "log", "warn", "error", "silent"], Hs = nn.indexOf("log");
|
|
553
|
+
function Ve(t) {
|
|
528
554
|
return function() {
|
|
529
|
-
if (
|
|
555
|
+
if (nn.indexOf(t) >= Hs) {
|
|
530
556
|
var e = console[t] || console.log;
|
|
531
557
|
return e.apply(console, arguments);
|
|
532
558
|
}
|
|
533
559
|
};
|
|
534
560
|
}
|
|
535
561
|
(function(t) {
|
|
536
|
-
t.debug =
|
|
537
|
-
})(
|
|
538
|
-
const
|
|
539
|
-
function
|
|
540
|
-
const e =
|
|
562
|
+
t.debug = Ve("debug"), t.log = Ve("log"), t.warn = Ve("warn"), t.error = Ve("error");
|
|
563
|
+
})(mt || (mt = {}));
|
|
564
|
+
const sn = tt(void 0), Js = () => Ue(sn);
|
|
565
|
+
function rn(t) {
|
|
566
|
+
const e = q(6), r = Js(), n = L.useRef(null);
|
|
541
567
|
let s;
|
|
542
568
|
e[0] !== t || e[1] !== r ? (s = (l) => {
|
|
543
569
|
let a = r?.getExtensionPoint(t), c = a?.subscribe(l);
|
|
544
570
|
const p = r?.subscribe(() => {
|
|
545
|
-
const
|
|
546
|
-
|
|
571
|
+
const d = r.getExtensionPoint(t);
|
|
572
|
+
d !== a && (c?.(), a = d, c = a?.subscribe(l)), l();
|
|
547
573
|
});
|
|
548
574
|
return () => {
|
|
549
575
|
c?.(), p?.();
|
|
@@ -563,28 +589,28 @@ function nn(t) {
|
|
|
563
589
|
return n.current = p, p;
|
|
564
590
|
}, e[3] = t, e[4] = r, e[5] = o) : o = e[5];
|
|
565
591
|
const u = o;
|
|
566
|
-
return
|
|
592
|
+
return Mt(i, u, u);
|
|
567
593
|
}
|
|
568
|
-
function
|
|
569
|
-
return
|
|
594
|
+
function mo(t) {
|
|
595
|
+
return rn(t).store;
|
|
570
596
|
}
|
|
571
|
-
const
|
|
572
|
-
const e =
|
|
597
|
+
const vo = (t) => {
|
|
598
|
+
const e = q(5), {
|
|
573
599
|
registry: r,
|
|
574
600
|
children: n
|
|
575
601
|
} = t;
|
|
576
602
|
let s;
|
|
577
603
|
e[0] !== r ? (s = () => r, e[0] = r, e[1] = s) : s = e[1];
|
|
578
|
-
const [i] =
|
|
579
|
-
|
|
604
|
+
const [i] = L.useState(s);
|
|
605
|
+
mt(i === r, "You can't change the extension registry after it has been rendered");
|
|
580
606
|
let o;
|
|
581
|
-
return e[2] !== n || e[3] !== i ? (o = /* @__PURE__ */ N(
|
|
582
|
-
},
|
|
607
|
+
return e[2] !== n || e[3] !== i ? (o = /* @__PURE__ */ N(sn.Provider, { value: i, children: n }), e[2] = n, e[3] = i, e[4] = o) : o = e[4], o;
|
|
608
|
+
}, lt = (t) => {
|
|
583
609
|
if (!t || typeof t != "string")
|
|
584
610
|
throw new TypeError(`extensionName is required to be a string and can't be: "${t}" (${typeof t})`);
|
|
585
611
|
return t.trim();
|
|
586
612
|
};
|
|
587
|
-
class
|
|
613
|
+
class Vs {
|
|
588
614
|
id;
|
|
589
615
|
mode;
|
|
590
616
|
_pluginId;
|
|
@@ -702,7 +728,7 @@ class Bs {
|
|
|
702
728
|
e();
|
|
703
729
|
}
|
|
704
730
|
}
|
|
705
|
-
class
|
|
731
|
+
class _o {
|
|
706
732
|
_stores = /* @__PURE__ */ new Map();
|
|
707
733
|
_storeUnsubs = /* @__PURE__ */ new Map();
|
|
708
734
|
_listeners = /* @__PURE__ */ new Set();
|
|
@@ -716,12 +742,12 @@ class fo {
|
|
|
716
742
|
* Throws if the extension point ID already exists.
|
|
717
743
|
*/
|
|
718
744
|
addExtensionPoint(e) {
|
|
719
|
-
const r =
|
|
745
|
+
const r = lt(e.id);
|
|
720
746
|
if (this._stores.has(r)) {
|
|
721
747
|
const s = this._stores.get(r);
|
|
722
748
|
throw new Error(`Extension point "${r}" already exists (owned by "${s.pluginId ?? "unknown"}")`);
|
|
723
749
|
}
|
|
724
|
-
const n = new
|
|
750
|
+
const n = new Vs({
|
|
725
751
|
...e,
|
|
726
752
|
id: r
|
|
727
753
|
});
|
|
@@ -731,14 +757,14 @@ class fo {
|
|
|
731
757
|
* Get an extension point store by ID.
|
|
732
758
|
*/
|
|
733
759
|
getExtensionPoint(e) {
|
|
734
|
-
const r =
|
|
760
|
+
const r = lt(e);
|
|
735
761
|
return this._stores.get(r);
|
|
736
762
|
}
|
|
737
763
|
/**
|
|
738
764
|
* Check if an extension point exists.
|
|
739
765
|
*/
|
|
740
766
|
hasExtensionPoint(e) {
|
|
741
|
-
const r =
|
|
767
|
+
const r = lt(e);
|
|
742
768
|
return this._stores.has(r);
|
|
743
769
|
}
|
|
744
770
|
/**
|
|
@@ -854,133 +880,133 @@ const fe = {
|
|
|
854
880
|
padding: "var(--ov-space-3)",
|
|
855
881
|
borderTop: "1px solid var(--ov-color-border-muted)"
|
|
856
882
|
}
|
|
857
|
-
},
|
|
883
|
+
}, on = tt(void 0), Ys = {
|
|
858
884
|
default: "info",
|
|
859
885
|
info: "info",
|
|
860
886
|
success: "success",
|
|
861
887
|
warning: "warning",
|
|
862
888
|
error: "danger"
|
|
863
|
-
},
|
|
889
|
+
}, bo = ({
|
|
864
890
|
children: t
|
|
865
891
|
}) => {
|
|
866
892
|
const {
|
|
867
893
|
toast: e
|
|
868
|
-
} =
|
|
869
|
-
|
|
894
|
+
} = Es(), [r, n] = L.useState([]), [s, i] = L.useState([]), [o, u] = L.useState(!1), [l, a] = L.useState(), [c, p] = L.useState(""), d = L.useRef(0), g = L.useRef(null);
|
|
895
|
+
L.useEffect(() => {
|
|
870
896
|
if (!o)
|
|
871
897
|
return;
|
|
872
|
-
const
|
|
898
|
+
const f = document.activeElement;
|
|
873
899
|
g.current?.focus();
|
|
874
|
-
const
|
|
875
|
-
|
|
900
|
+
const v = (m) => {
|
|
901
|
+
m.key === "Escape" && (m.stopPropagation(), u(!1));
|
|
876
902
|
};
|
|
877
|
-
return document.addEventListener("keydown",
|
|
878
|
-
document.removeEventListener("keydown",
|
|
903
|
+
return document.addEventListener("keydown", v), () => {
|
|
904
|
+
document.removeEventListener("keydown", v), f instanceof HTMLElement && f.isConnected && f.focus();
|
|
879
905
|
};
|
|
880
906
|
}, [o]);
|
|
881
|
-
const h = (
|
|
882
|
-
n((
|
|
883
|
-
},
|
|
884
|
-
const _ = typeof
|
|
885
|
-
let
|
|
907
|
+
const h = (f) => {
|
|
908
|
+
n((v) => [...v, f]);
|
|
909
|
+
}, y = (f, v, m) => {
|
|
910
|
+
const _ = typeof f == "object";
|
|
911
|
+
let b = "", C = "info", E, I = 5e3, w;
|
|
886
912
|
if (_) {
|
|
887
|
-
if (
|
|
888
|
-
if (r.includes(
|
|
913
|
+
if (b = f.message, f.showOnce) {
|
|
914
|
+
if (r.includes(b))
|
|
889
915
|
return;
|
|
890
|
-
h(
|
|
916
|
+
h(b);
|
|
891
917
|
}
|
|
892
|
-
C =
|
|
918
|
+
C = f.status, E = f.details, I = f.autoHideDuration ?? 5e3, w = f.actions;
|
|
893
919
|
} else
|
|
894
|
-
|
|
920
|
+
b = f, C = v, E = m;
|
|
895
921
|
let D;
|
|
896
922
|
if (C === "error") {
|
|
897
923
|
const x = {
|
|
898
|
-
id: ++
|
|
899
|
-
message:
|
|
924
|
+
id: ++d.current,
|
|
925
|
+
message: b,
|
|
900
926
|
details: E,
|
|
901
927
|
created: (/* @__PURE__ */ new Date()).toISOString(),
|
|
902
928
|
actions: w
|
|
903
929
|
};
|
|
904
|
-
i((
|
|
930
|
+
i((P) => [...P, x].slice(-20)), D = {
|
|
905
931
|
label: "Details",
|
|
906
932
|
onClick: () => {
|
|
907
933
|
a(x.id), u(!0);
|
|
908
934
|
}
|
|
909
935
|
};
|
|
910
936
|
}
|
|
911
|
-
e(C === "error" ?
|
|
912
|
-
severity:
|
|
913
|
-
title: C !== "error" && E ?
|
|
937
|
+
e(C === "error" ? b : E ?? b, {
|
|
938
|
+
severity: Ys[C] ?? "info",
|
|
939
|
+
title: C !== "error" && E ? b : void 0,
|
|
914
940
|
duration: I,
|
|
915
941
|
action: D ?? w?.[0]
|
|
916
942
|
});
|
|
917
943
|
};
|
|
918
|
-
return /* @__PURE__ */ ce(
|
|
919
|
-
showSnackbar:
|
|
944
|
+
return /* @__PURE__ */ ce(on.Provider, { value: {
|
|
945
|
+
showSnackbar: y,
|
|
920
946
|
openNotifications: () => {
|
|
921
947
|
u(!0);
|
|
922
948
|
},
|
|
923
949
|
notificationCount: s.length
|
|
924
950
|
}, children: [
|
|
925
951
|
t,
|
|
926
|
-
o && /* @__PURE__ */ ce(
|
|
927
|
-
/* @__PURE__ */ ce(
|
|
928
|
-
/* @__PURE__ */ N(
|
|
929
|
-
/* @__PURE__ */ N(
|
|
930
|
-
/* @__PURE__ */ ce(
|
|
931
|
-
/* @__PURE__ */ N(
|
|
952
|
+
o && /* @__PURE__ */ ce(ws, { ref: g, style: fe.Panel, size: "sm", variant: "outline", surface: "overlay", elevation: 3, "aria-label": "Notifications", tabIndex: -1, children: [
|
|
953
|
+
/* @__PURE__ */ ce(Ot, { size: "sm", style: fe.Header, children: [
|
|
954
|
+
/* @__PURE__ */ N(Te, { size: "sm", weight: "semibold", children: "Notifications" }),
|
|
955
|
+
/* @__PURE__ */ N(Te, { size: "xs", tone: "muted", children: s.length }),
|
|
956
|
+
/* @__PURE__ */ ce(Ot.Group, { style: fe.HeaderActions, children: [
|
|
957
|
+
/* @__PURE__ */ N(Je, { size: "sm", variant: "ghost", "aria-label": "Clear history", title: "Clear history", disabled: s.length === 0, onClick: () => {
|
|
932
958
|
i([]), a(void 0), p("");
|
|
933
959
|
}, children: /* @__PURE__ */ N("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ N("path", { d: "m3 3 6 6m0-6L3 9M13 6h8M3 14h18M3 20h18" }) }) }),
|
|
934
|
-
/* @__PURE__ */ N(
|
|
960
|
+
/* @__PURE__ */ N(Je, { size: "sm", variant: "ghost", "aria-label": "Close notifications", title: "Close notifications", onClick: () => {
|
|
935
961
|
u(!1);
|
|
936
962
|
}, children: /* @__PURE__ */ N("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ N("path", { d: "m6 9 6 6 6-6" }) }) })
|
|
937
963
|
] })
|
|
938
964
|
] }),
|
|
939
965
|
/* @__PURE__ */ ce("div", { style: fe.List, children: [
|
|
940
|
-
s.length === 0 && /* @__PURE__ */ N(
|
|
941
|
-
s.slice().reverse().map((
|
|
942
|
-
const
|
|
966
|
+
s.length === 0 && /* @__PURE__ */ N(Cs, { size: "sm", title: "No recent errors", description: "Error details will appear here." }),
|
|
967
|
+
s.slice().reverse().map((f) => {
|
|
968
|
+
const v = l === f.id;
|
|
943
969
|
return /* @__PURE__ */ ce("div", { style: fe.Notice, children: [
|
|
944
970
|
/* @__PURE__ */ ce("div", { style: fe.Row, children: [
|
|
945
971
|
/* @__PURE__ */ ce("svg", { style: fe.ErrorIcon, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-label": "Error", role: "img", children: [
|
|
946
972
|
/* @__PURE__ */ N("circle", { cx: "12", cy: "12", r: "9" }),
|
|
947
973
|
/* @__PURE__ */ N("path", { d: "m9 9 6 6m0-6-6 6" })
|
|
948
974
|
] }),
|
|
949
|
-
/* @__PURE__ */ N(Fe, { size: "sm", variant: "ghost", style: fe.Message, "aria-expanded":
|
|
950
|
-
a(
|
|
951
|
-
}, children: /* @__PURE__ */ N(
|
|
952
|
-
/* @__PURE__ */ N(
|
|
953
|
-
a(
|
|
954
|
-
}, children: /* @__PURE__ */ N("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ N("path", { d:
|
|
955
|
-
/* @__PURE__ */ N(
|
|
956
|
-
i((
|
|
975
|
+
/* @__PURE__ */ N(Fe, { size: "sm", variant: "ghost", style: fe.Message, "aria-expanded": v, "aria-controls": `notification-${f.id}`, title: f.message, onClick: () => {
|
|
976
|
+
a(v ? void 0 : f.id), p("");
|
|
977
|
+
}, children: /* @__PURE__ */ N(Te, { size: "sm", style: fe.MessageText, truncate: !v, children: f.message }) }),
|
|
978
|
+
/* @__PURE__ */ N(Je, { size: "sm", variant: "ghost", "aria-label": v ? "Collapse details" : "Expand details", title: v ? "Collapse details" : "Expand details", "aria-expanded": v, "aria-controls": `notification-${f.id}`, onClick: () => {
|
|
979
|
+
a(v ? void 0 : f.id), p("");
|
|
980
|
+
}, children: /* @__PURE__ */ N("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ N("path", { d: v ? "m6 15 6-6 6 6" : "m6 9 6 6 6-6" }) }) }),
|
|
981
|
+
/* @__PURE__ */ N(Je, { size: "sm", variant: "ghost", "aria-label": `Dismiss ${f.message}`, title: "Dismiss notification", onClick: () => {
|
|
982
|
+
i((m) => m.filter((_) => _.id !== f.id)), v && (a(void 0), p(""));
|
|
957
983
|
}, children: /* @__PURE__ */ N("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ N("path", { d: "m6 6 12 12m0-12L6 18" }) }) })
|
|
958
984
|
] }),
|
|
959
|
-
/* @__PURE__ */ N("div", { id: `notification-${
|
|
960
|
-
/* @__PURE__ */ N(
|
|
961
|
-
/* @__PURE__ */ N(
|
|
985
|
+
/* @__PURE__ */ N("div", { id: `notification-${f.id}`, hidden: !v, style: fe.Details, children: v && /* @__PURE__ */ ce(bt, { children: [
|
|
986
|
+
/* @__PURE__ */ N(Te, { size: "xs", tone: "muted", children: /* @__PURE__ */ N("time", { dateTime: f.created, children: new Date(f.created).toLocaleString() }) }),
|
|
987
|
+
/* @__PURE__ */ N(Is, { size: "sm", style: fe.Code, children: f.details?.length ? f.details : f.message }),
|
|
962
988
|
/* @__PURE__ */ ce("div", { style: fe.Actions, children: [
|
|
963
989
|
/* @__PURE__ */ N(Fe, { size: "sm", variant: "ghost", onClick: async () => {
|
|
964
990
|
p("");
|
|
965
991
|
try {
|
|
966
|
-
await navigator.clipboard.writeText(`${
|
|
967
|
-
${
|
|
968
|
-
${
|
|
992
|
+
await navigator.clipboard.writeText(`${f.message}
|
|
993
|
+
${f.created}
|
|
994
|
+
${f.details ?? ""}`);
|
|
969
995
|
} catch {
|
|
970
996
|
p("Copy failed. Select the diagnostic text and copy it manually.");
|
|
971
997
|
}
|
|
972
998
|
}, children: "Copy details" }),
|
|
973
|
-
|
|
999
|
+
f.actions?.map((m, _) => /* @__PURE__ */ N(Fe, { size: "sm", variant: "outline", onClick: m.onClick, children: m.label }, `${m.label}-${_}`))
|
|
974
1000
|
] })
|
|
975
1001
|
] }) })
|
|
976
|
-
] },
|
|
1002
|
+
] }, f.id);
|
|
977
1003
|
})
|
|
978
1004
|
] }),
|
|
979
|
-
c && /* @__PURE__ */ N(
|
|
1005
|
+
c && /* @__PURE__ */ N(Te, { as: "p", size: "sm", role: "status", style: fe.CopyError, children: c })
|
|
980
1006
|
] })
|
|
981
1007
|
] });
|
|
982
1008
|
}, we = () => {
|
|
983
|
-
const t = Ue(
|
|
1009
|
+
const t = Ue(on);
|
|
984
1010
|
if (t === void 0)
|
|
985
1011
|
throw new Error("useCustomSnackbar must be used within a CustomSnackbarProvider");
|
|
986
1012
|
return t;
|
|
@@ -992,8 +1018,8 @@ function ee(t) {
|
|
|
992
1018
|
return r;
|
|
993
1019
|
}
|
|
994
1020
|
const he = /* @__PURE__ */ new Map(), We = /* @__PURE__ */ new Map();
|
|
995
|
-
let
|
|
996
|
-
const
|
|
1021
|
+
let ut = 0, qe = [], Ct = 0;
|
|
1022
|
+
const cn = {
|
|
997
1023
|
phase: "checking"
|
|
998
1024
|
};
|
|
999
1025
|
function Ne(t, e) {
|
|
@@ -1003,22 +1029,22 @@ function Ne(t, e) {
|
|
|
1003
1029
|
pluginID: t,
|
|
1004
1030
|
connectionID: e,
|
|
1005
1031
|
key: r,
|
|
1006
|
-
snapshot:
|
|
1032
|
+
snapshot: cn,
|
|
1007
1033
|
listeners: /* @__PURE__ */ new Set(),
|
|
1008
1034
|
users: 0,
|
|
1009
1035
|
version: 0,
|
|
1010
|
-
generation: ++
|
|
1036
|
+
generation: ++Ct,
|
|
1011
1037
|
starts: /* @__PURE__ */ new Set()
|
|
1012
1038
|
}, he.set(r, n)), n;
|
|
1013
1039
|
}
|
|
1014
1040
|
function ze(t, e) {
|
|
1015
|
-
t.snapshot.phase === "connected" && e.phase !== "connected" && (t.generation = ++
|
|
1041
|
+
t.snapshot.phase === "connected" && e.phase !== "connected" && (t.generation = ++Ct), t.snapshot = e;
|
|
1016
1042
|
for (const r of t.listeners) r();
|
|
1017
1043
|
}
|
|
1018
|
-
function
|
|
1019
|
-
t.generation = ++
|
|
1044
|
+
function Pe(t, e, r = !1) {
|
|
1045
|
+
t.generation = ++Ct, t.version++, r || (t.operation = void 0), ze(t, e);
|
|
1020
1046
|
}
|
|
1021
|
-
function
|
|
1047
|
+
function Zs(t) {
|
|
1022
1048
|
switch (t) {
|
|
1023
1049
|
case "CONNECTED":
|
|
1024
1050
|
return "connected";
|
|
@@ -1036,84 +1062,84 @@ function Js(t) {
|
|
|
1036
1062
|
return "error";
|
|
1037
1063
|
}
|
|
1038
1064
|
}
|
|
1039
|
-
function
|
|
1065
|
+
function It(t) {
|
|
1040
1066
|
const e = t?.trim();
|
|
1041
1067
|
if (e)
|
|
1042
1068
|
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;
|
|
1043
1069
|
}
|
|
1044
|
-
function
|
|
1045
|
-
const r =
|
|
1070
|
+
function an(t, e) {
|
|
1071
|
+
const r = Zs(t.status);
|
|
1046
1072
|
return {
|
|
1047
1073
|
phase: r,
|
|
1048
1074
|
connection: e,
|
|
1049
|
-
message:
|
|
1075
|
+
message: It(t.error || t.details) || (r === "error" ? "The connection is not ready." : void 0)
|
|
1050
1076
|
};
|
|
1051
1077
|
}
|
|
1052
|
-
function
|
|
1053
|
-
const r =
|
|
1078
|
+
function ln(t, e) {
|
|
1079
|
+
const r = be(t);
|
|
1054
1080
|
return {
|
|
1055
1081
|
phase: r.status === 401 ? "unauthorized" : r.status === 403 ? "forbidden" : r.status === 404 ? "not-found" : "error",
|
|
1056
1082
|
connection: e,
|
|
1057
|
-
message:
|
|
1083
|
+
message: It(r.detail || r.title)
|
|
1058
1084
|
};
|
|
1059
1085
|
}
|
|
1060
|
-
function
|
|
1061
|
-
e =
|
|
1086
|
+
function dt(t, e) {
|
|
1087
|
+
e = It(e) || "The plugin is unavailable.", We.set(t, e);
|
|
1062
1088
|
for (const r of he.values())
|
|
1063
|
-
r.pluginID === t &&
|
|
1089
|
+
r.pluginID === t && Pe(r, {
|
|
1064
1090
|
phase: "error",
|
|
1065
1091
|
message: e,
|
|
1066
1092
|
connection: r.snapshot.connection
|
|
1067
1093
|
});
|
|
1068
1094
|
}
|
|
1069
|
-
function
|
|
1095
|
+
function Lt(t) {
|
|
1070
1096
|
const e = We.delete(t);
|
|
1071
1097
|
for (const r of he.values())
|
|
1072
|
-
r.pluginID === t && (!e && r.snapshot.phase === "checking" && r.operation?.kind === "check" || (
|
|
1098
|
+
r.pluginID === t && (!e && r.snapshot.phase === "checking" && r.operation?.kind === "check" || (Pe(r, {
|
|
1073
1099
|
phase: "checking",
|
|
1074
1100
|
connection: r.snapshot.connection
|
|
1075
|
-
}), r.users &&
|
|
1101
|
+
}), r.users && Ae(r, "check").catch(() => {
|
|
1076
1102
|
})));
|
|
1077
1103
|
}
|
|
1078
1104
|
function $e() {
|
|
1079
1105
|
if (!(typeof document < "u" && document.visibilityState === "hidden"))
|
|
1080
1106
|
for (const t of he.values())
|
|
1081
|
-
t.users && !We.has(t.pluginID) &&
|
|
1107
|
+
t.users && !We.has(t.pluginID) && Ae(t, "check", !0).catch(() => {
|
|
1082
1108
|
});
|
|
1083
1109
|
}
|
|
1084
|
-
function
|
|
1110
|
+
function Xs() {
|
|
1085
1111
|
qe.length || (qe = [Z("connection/status", ({
|
|
1086
1112
|
data: t
|
|
1087
1113
|
}) => {
|
|
1088
1114
|
const e = he.get(JSON.stringify([t.pluginID, t.connectionID]));
|
|
1089
|
-
!e || We.has(t.pluginID) || e.stop && t.status !== "DISCONNECTED" || t.status !== "DISCONNECTED" && e.starts.size && e.operation?.kind !== "start" ||
|
|
1115
|
+
!e || We.has(t.pluginID) || e.stop && t.status !== "DISCONNECTED" || t.status !== "DISCONNECTED" && e.starts.size && e.operation?.kind !== "start" || Pe(e, an({
|
|
1090
1116
|
status: t.status,
|
|
1091
1117
|
error: "",
|
|
1092
1118
|
details: ""
|
|
1093
1119
|
}, e.snapshot.connection), t.status === "CONNECTED");
|
|
1094
1120
|
}), Z("plugin/crash", ({
|
|
1095
1121
|
data: t
|
|
1096
|
-
}) =>
|
|
1122
|
+
}) => dt(t.pluginID, t.error || "The plugin stopped unexpectedly.")), Z("plugin/crash_recovery_failed", ({
|
|
1097
1123
|
data: t
|
|
1098
|
-
}) =>
|
|
1124
|
+
}) => dt(t.pluginID, t.error || "Plugin recovery failed.")), Z("plugin/recovered", ({
|
|
1099
1125
|
data: t
|
|
1100
|
-
}) =>
|
|
1126
|
+
}) => Lt(t.pluginID)), Z("plugin/state_change", ({
|
|
1101
1127
|
data: t
|
|
1102
1128
|
}) => {
|
|
1103
|
-
t.to === "Running" ?
|
|
1129
|
+
t.to === "Running" ? Lt(t.pluginID) : dt(t.pluginID, t.reason || `The plugin is ${t.to}.`);
|
|
1104
1130
|
})], typeof window < "u" && (window.addEventListener("focus", $e), window.addEventListener("pageshow", $e), qe.push(() => {
|
|
1105
1131
|
window.removeEventListener("focus", $e), window.removeEventListener("pageshow", $e);
|
|
1106
1132
|
})), typeof document < "u" && (document.addEventListener("visibilitychange", $e), qe.push(() => document.removeEventListener("visibilitychange", $e))));
|
|
1107
1133
|
}
|
|
1108
1134
|
function ke(t) {
|
|
1109
|
-
return he.set(t.key, t), t.users++,
|
|
1110
|
-
if (t.users--,
|
|
1135
|
+
return he.set(t.key, t), t.users++, ut++, Xs(), () => {
|
|
1136
|
+
if (t.users--, ut--, t.users || (Pe(t, cn), he.get(t.key) === t && he.delete(t.key)), !ut) {
|
|
1111
1137
|
for (const e of qe) e();
|
|
1112
1138
|
qe = [], We.clear();
|
|
1113
1139
|
}
|
|
1114
1140
|
};
|
|
1115
1141
|
}
|
|
1116
|
-
function
|
|
1142
|
+
function Ae(t, e, r = !1) {
|
|
1117
1143
|
if (t.stop) return Promise.reject(new Error("Connection is disconnecting. Wait for it to stop before connecting."));
|
|
1118
1144
|
const n = We.get(t.pluginID);
|
|
1119
1145
|
if (n)
|
|
@@ -1130,9 +1156,9 @@ function Te(t, e, r = !1) {
|
|
|
1130
1156
|
}), e === "start" && t.starts.add(s);
|
|
1131
1157
|
const i = Promise.resolve().then(() => {
|
|
1132
1158
|
if (t.version !== s) throw new Error("Connection readiness changed before the operation began.");
|
|
1133
|
-
return e === "start" ?
|
|
1134
|
-
}).then((o) => (t.version === s && ze(t,
|
|
1135
|
-
throw t.version === s && ze(t,
|
|
1159
|
+
return e === "start" ? $n(t.pluginID, t.connectionID) : Ln(t.pluginID, t.connectionID);
|
|
1160
|
+
}).then((o) => (t.version === s && ze(t, an(o, o.connection ?? t.snapshot.connection)), o), (o) => {
|
|
1161
|
+
throw t.version === s && ze(t, ln(o, t.snapshot.connection)), o;
|
|
1136
1162
|
}).finally(() => {
|
|
1137
1163
|
e === "start" && t.starts.delete(s), t.operation?.version === s && (t.operation = void 0);
|
|
1138
1164
|
});
|
|
@@ -1142,12 +1168,12 @@ function Te(t, e, r = !1) {
|
|
|
1142
1168
|
version: s
|
|
1143
1169
|
}, i;
|
|
1144
1170
|
}
|
|
1145
|
-
function
|
|
1171
|
+
function un(t, e) {
|
|
1146
1172
|
return {
|
|
1147
1173
|
getSnapshot: () => Ne(t, e).snapshot,
|
|
1148
1174
|
subscribe: (r) => {
|
|
1149
1175
|
const n = Ne(t, e), s = n.users === 0, i = ke(n);
|
|
1150
|
-
return n.listeners.add(r), s &&
|
|
1176
|
+
return n.listeners.add(r), s && Ae(n, "check").catch(() => {
|
|
1151
1177
|
}), () => {
|
|
1152
1178
|
n.listeners.delete(r), i();
|
|
1153
1179
|
};
|
|
@@ -1155,7 +1181,7 @@ function an(t, e) {
|
|
|
1155
1181
|
connect: async () => {
|
|
1156
1182
|
const r = Ne(t, e), n = ke(r);
|
|
1157
1183
|
try {
|
|
1158
|
-
await
|
|
1184
|
+
await Ae(r, "start");
|
|
1159
1185
|
} catch {
|
|
1160
1186
|
} finally {
|
|
1161
1187
|
n();
|
|
@@ -1164,7 +1190,7 @@ function an(t, e) {
|
|
|
1164
1190
|
retry: async () => {
|
|
1165
1191
|
const r = Ne(t, e), n = ke(r);
|
|
1166
1192
|
try {
|
|
1167
|
-
await
|
|
1193
|
+
await Ae(r, "check");
|
|
1168
1194
|
} catch {
|
|
1169
1195
|
} finally {
|
|
1170
1196
|
n();
|
|
@@ -1172,11 +1198,11 @@ function an(t, e) {
|
|
|
1172
1198
|
}
|
|
1173
1199
|
};
|
|
1174
1200
|
}
|
|
1175
|
-
async function
|
|
1201
|
+
async function Oe(t, e) {
|
|
1176
1202
|
const r = Ne(t, e), n = ke(r);
|
|
1177
1203
|
try {
|
|
1178
1204
|
try {
|
|
1179
|
-
await
|
|
1205
|
+
await Ae(r, "check", !0);
|
|
1180
1206
|
} catch {
|
|
1181
1207
|
}
|
|
1182
1208
|
if (r.snapshot.phase !== "connected")
|
|
@@ -1185,11 +1211,11 @@ async function Pe(t, e) {
|
|
|
1185
1211
|
n();
|
|
1186
1212
|
}
|
|
1187
1213
|
}
|
|
1188
|
-
async function
|
|
1214
|
+
async function So(t, e, r) {
|
|
1189
1215
|
const n = Ne(t, e), s = ke(n);
|
|
1190
1216
|
try {
|
|
1191
1217
|
try {
|
|
1192
|
-
await
|
|
1218
|
+
await Ae(n, "check", !0);
|
|
1193
1219
|
} catch {
|
|
1194
1220
|
}
|
|
1195
1221
|
if (n.snapshot.phase !== "connected")
|
|
@@ -1202,58 +1228,58 @@ async function ho(t, e, r) {
|
|
|
1202
1228
|
s();
|
|
1203
1229
|
}
|
|
1204
1230
|
}
|
|
1205
|
-
function
|
|
1231
|
+
function er(t, e) {
|
|
1206
1232
|
return he.get(JSON.stringify([t, e]))?.generation;
|
|
1207
1233
|
}
|
|
1208
|
-
function
|
|
1234
|
+
function tr(t, e, r) {
|
|
1209
1235
|
const n = he.get(JSON.stringify([t, e]));
|
|
1210
1236
|
return r !== void 0 && n?.generation === r && n.snapshot.phase === "connected";
|
|
1211
1237
|
}
|
|
1212
|
-
async function
|
|
1238
|
+
async function nr(t, e) {
|
|
1213
1239
|
const r = Ne(t, e), n = ke(r);
|
|
1214
1240
|
try {
|
|
1215
|
-
return await
|
|
1241
|
+
return await Ae(r, "start");
|
|
1216
1242
|
} finally {
|
|
1217
1243
|
n();
|
|
1218
1244
|
}
|
|
1219
1245
|
}
|
|
1220
|
-
function
|
|
1246
|
+
function dn(t, e) {
|
|
1221
1247
|
const r = Ne(t, e);
|
|
1222
1248
|
if (r.stop) return r.stop;
|
|
1223
|
-
const n = ke(r), s = Promise.resolve().then(() =>
|
|
1249
|
+
const n = ke(r), s = Promise.resolve().then(() => qn(t, e)).then((i) => (Pe(r, {
|
|
1224
1250
|
phase: "disconnected",
|
|
1225
1251
|
connection: i
|
|
1226
1252
|
}), i), (i) => {
|
|
1227
|
-
throw
|
|
1253
|
+
throw Pe(r, ln(i, r.snapshot.connection)), i;
|
|
1228
1254
|
}).finally(() => {
|
|
1229
1255
|
r.stop = void 0, n();
|
|
1230
1256
|
});
|
|
1231
|
-
return r.stop = s,
|
|
1257
|
+
return r.stop = s, Pe(r, {
|
|
1232
1258
|
phase: "disconnected",
|
|
1233
1259
|
message: "Disconnecting. Wait for the connection to stop before reconnecting.",
|
|
1234
1260
|
connection: r.snapshot.connection
|
|
1235
1261
|
}), s;
|
|
1236
1262
|
}
|
|
1237
|
-
function
|
|
1263
|
+
function $t(t, e, r = !1) {
|
|
1238
1264
|
const n = he.get(JSON.stringify([t, e]));
|
|
1239
|
-
n && (
|
|
1265
|
+
n && (Pe(n, {
|
|
1240
1266
|
phase: r ? "not-found" : "checking",
|
|
1241
1267
|
connection: r ? void 0 : n.snapshot.connection
|
|
1242
|
-
}), !r && n.users &&
|
|
1268
|
+
}), !r && n.users && Ae(n, "check").catch(() => {
|
|
1243
1269
|
}));
|
|
1244
1270
|
}
|
|
1245
|
-
const
|
|
1246
|
-
const e =
|
|
1271
|
+
const Eo = (t) => {
|
|
1272
|
+
const e = q(60), {
|
|
1247
1273
|
pluginID: r,
|
|
1248
1274
|
connectionID: n
|
|
1249
|
-
} = t, s = ee(r), i =
|
|
1275
|
+
} = t, s = ee(r), i = Se(), {
|
|
1250
1276
|
showSnackbar: o
|
|
1251
1277
|
} = we();
|
|
1252
1278
|
let u;
|
|
1253
1279
|
e[0] !== n || e[1] !== s ? (u = [s, "connection", "detail", n], e[0] = n, e[1] = s, e[2] = u) : u = e[2];
|
|
1254
1280
|
const l = u;
|
|
1255
1281
|
let a;
|
|
1256
|
-
e[3] !== n || e[4] !== s ? (a = async () =>
|
|
1282
|
+
e[3] !== n || e[4] !== s ? (a = async () => nr(s, n), e[3] = n, e[4] = s, e[5] = a) : a = e[5];
|
|
1257
1283
|
let c;
|
|
1258
1284
|
if (e[6] !== n || e[7] !== s || e[8] !== i || e[9] !== l || e[10] !== o || e[11] !== a) {
|
|
1259
1285
|
let D;
|
|
@@ -1271,72 +1297,72 @@ const go = (t) => {
|
|
|
1271
1297
|
const {
|
|
1272
1298
|
mutateAsync: p
|
|
1273
1299
|
} = oe(c);
|
|
1274
|
-
let
|
|
1275
|
-
e[15] !== n || e[16] !== s ? (
|
|
1300
|
+
let d;
|
|
1301
|
+
e[15] !== n || e[16] !== s ? (d = async () => dn(s, n), e[15] = n, e[16] = s, e[17] = d) : d = e[17];
|
|
1276
1302
|
let g;
|
|
1277
|
-
if (e[18] !== i || e[19] !== l || e[20] !== o || e[21] !==
|
|
1303
|
+
if (e[18] !== i || e[19] !== l || e[20] !== o || e[21] !== d) {
|
|
1278
1304
|
let D;
|
|
1279
1305
|
e[23] !== o ? (D = le(o, "Failed to stop connection"), e[23] = o, e[24] = D) : D = e[24], g = {
|
|
1280
|
-
mutationFn:
|
|
1306
|
+
mutationFn: d,
|
|
1281
1307
|
onSuccess(x) {
|
|
1282
1308
|
i.setQueryData(l, x);
|
|
1283
1309
|
},
|
|
1284
1310
|
onError: D
|
|
1285
|
-
}, e[18] = i, e[19] = l, e[20] = o, e[21] =
|
|
1311
|
+
}, e[18] = i, e[19] = l, e[20] = o, e[21] = d, e[22] = g;
|
|
1286
1312
|
} else
|
|
1287
1313
|
g = e[22];
|
|
1288
1314
|
const {
|
|
1289
1315
|
mutateAsync: h
|
|
1290
1316
|
} = oe(g);
|
|
1291
|
-
let
|
|
1292
|
-
e[25] !== s ? (
|
|
1293
|
-
let
|
|
1294
|
-
if (e[27] !== n || e[28] !== s || e[29] !== i || e[30] !== l || e[31] !== o || e[32] !==
|
|
1317
|
+
let y;
|
|
1318
|
+
e[25] !== s ? (y = async (D) => Mn(s, D), e[25] = s, e[26] = y) : y = e[26];
|
|
1319
|
+
let f;
|
|
1320
|
+
if (e[27] !== n || e[28] !== s || e[29] !== i || e[30] !== l || e[31] !== o || e[32] !== y) {
|
|
1295
1321
|
let D;
|
|
1296
|
-
e[34] !== o ? (D = le(o, "Failed to update connection"), e[34] = o, e[35] = D) : D = e[35],
|
|
1297
|
-
mutationFn:
|
|
1298
|
-
onSuccess(x,
|
|
1322
|
+
e[34] !== o ? (D = le(o, "Failed to update connection"), e[34] = o, e[35] = D) : D = e[35], f = {
|
|
1323
|
+
mutationFn: y,
|
|
1324
|
+
onSuccess(x, P) {
|
|
1299
1325
|
const {
|
|
1300
|
-
name:
|
|
1301
|
-
} =
|
|
1326
|
+
name: T
|
|
1327
|
+
} = P;
|
|
1302
1328
|
o({
|
|
1303
|
-
message: `Connection ${
|
|
1329
|
+
message: `Connection ${T} successfully updated`,
|
|
1304
1330
|
status: "success"
|
|
1305
|
-
}),
|
|
1331
|
+
}), $t(s, n), i.setQueryData(l, x), i.setQueriesData({
|
|
1306
1332
|
queryKey: [s, "connection", "list"]
|
|
1307
|
-
}, (
|
|
1333
|
+
}, (A) => A?.map((k) => k.id === n ? x : k));
|
|
1308
1334
|
},
|
|
1309
1335
|
onError: D
|
|
1310
|
-
}, e[27] = n, e[28] = s, e[29] = i, e[30] = l, e[31] = o, e[32] =
|
|
1336
|
+
}, e[27] = n, e[28] = s, e[29] = i, e[30] = l, e[31] = o, e[32] = y, e[33] = f;
|
|
1311
1337
|
} else
|
|
1312
|
-
|
|
1338
|
+
f = e[33];
|
|
1313
1339
|
const {
|
|
1314
|
-
mutateAsync:
|
|
1315
|
-
} = oe(
|
|
1316
|
-
let
|
|
1317
|
-
e[36] !== n || e[37] !== s ? (
|
|
1340
|
+
mutateAsync: v
|
|
1341
|
+
} = oe(f);
|
|
1342
|
+
let m;
|
|
1343
|
+
e[36] !== n || e[37] !== s ? (m = async () => Un(s, n), e[36] = n, e[37] = s, e[38] = m) : m = e[38];
|
|
1318
1344
|
let _;
|
|
1319
|
-
if (e[39] !== n || e[40] !== s || e[41] !== i || e[42] !== l || e[43] !== o || e[44] !==
|
|
1345
|
+
if (e[39] !== n || e[40] !== s || e[41] !== i || e[42] !== l || e[43] !== o || e[44] !== m) {
|
|
1320
1346
|
let D;
|
|
1321
1347
|
e[46] !== o ? (D = le(o, "Failed to remove connection"), e[46] = o, e[47] = D) : D = e[47], _ = {
|
|
1322
|
-
mutationFn:
|
|
1348
|
+
mutationFn: m,
|
|
1323
1349
|
onSuccess() {
|
|
1324
1350
|
o({
|
|
1325
1351
|
message: "Connection successfully removed",
|
|
1326
1352
|
status: "success"
|
|
1327
|
-
}),
|
|
1353
|
+
}), $t(s, n, !0), i.setQueryData(l, void 0), i.setQueriesData({
|
|
1328
1354
|
queryKey: [s, "connection", "list"]
|
|
1329
|
-
}, (x) => x?.filter((
|
|
1355
|
+
}, (x) => x?.filter((P) => P.id !== n));
|
|
1330
1356
|
},
|
|
1331
1357
|
onError: D
|
|
1332
|
-
}, e[39] = n, e[40] = s, e[41] = i, e[42] = l, e[43] = o, e[44] =
|
|
1358
|
+
}, e[39] = n, e[40] = s, e[41] = i, e[42] = l, e[43] = o, e[44] = m, e[45] = _;
|
|
1333
1359
|
} else
|
|
1334
1360
|
_ = e[45];
|
|
1335
1361
|
const {
|
|
1336
|
-
mutateAsync:
|
|
1362
|
+
mutateAsync: b
|
|
1337
1363
|
} = oe(_);
|
|
1338
1364
|
let C;
|
|
1339
|
-
e[48] !== n || e[49] !== s ? (C = async () =>
|
|
1365
|
+
e[48] !== n || e[49] !== s ? (C = async () => Wn(s, n), e[48] = n, e[49] = s, e[50] = C) : C = e[50];
|
|
1340
1366
|
let E;
|
|
1341
1367
|
e[51] !== l || e[52] !== C ? (E = {
|
|
1342
1368
|
queryKey: l,
|
|
@@ -1344,24 +1370,24 @@ const go = (t) => {
|
|
|
1344
1370
|
}, e[51] = l, e[52] = C, e[53] = E) : E = e[53];
|
|
1345
1371
|
const I = re(E);
|
|
1346
1372
|
let w;
|
|
1347
|
-
return e[54] !== I || e[55] !==
|
|
1373
|
+
return e[54] !== I || e[55] !== b || e[56] !== p || e[57] !== h || e[58] !== v ? (w = {
|
|
1348
1374
|
connection: I,
|
|
1349
1375
|
startConnection: p,
|
|
1350
1376
|
stopConnection: h,
|
|
1351
|
-
updateConnection:
|
|
1352
|
-
deleteConnection:
|
|
1353
|
-
}, e[54] = I, e[55] =
|
|
1354
|
-
},
|
|
1355
|
-
const e =
|
|
1377
|
+
updateConnection: v,
|
|
1378
|
+
deleteConnection: b
|
|
1379
|
+
}, e[54] = I, e[55] = b, e[56] = p, e[57] = h, e[58] = v, e[59] = w) : w = e[59], w;
|
|
1380
|
+
}, sr = (t) => [t, "connection", "list"], wo = (t) => {
|
|
1381
|
+
const e = q(33), {
|
|
1356
1382
|
plugin: r
|
|
1357
|
-
} = t, n = ee(r), s =
|
|
1383
|
+
} = t, n = ee(r), s = Se(), {
|
|
1358
1384
|
showSnackbar: i
|
|
1359
1385
|
} = we();
|
|
1360
1386
|
let o;
|
|
1361
|
-
e[0] !== n ? (o =
|
|
1387
|
+
e[0] !== n ? (o = sr(n), e[0] = n, e[1] = o) : o = e[1];
|
|
1362
1388
|
const u = o;
|
|
1363
1389
|
let l;
|
|
1364
|
-
e[2] !== n ? (l = async (w) =>
|
|
1390
|
+
e[2] !== n ? (l = async (w) => Wt(n, w.id), e[2] = n, e[3] = l) : l = e[3];
|
|
1365
1391
|
let a;
|
|
1366
1392
|
e[4] !== i ? (a = le(i, "Failed to start connection watch"), e[4] = i, e[5] = a) : a = e[5];
|
|
1367
1393
|
let c;
|
|
@@ -1372,59 +1398,59 @@ const go = (t) => {
|
|
|
1372
1398
|
const {
|
|
1373
1399
|
mutateAsync: p
|
|
1374
1400
|
} = oe(c);
|
|
1375
|
-
let
|
|
1376
|
-
e[9] !== n ? (
|
|
1401
|
+
let d;
|
|
1402
|
+
e[9] !== n ? (d = async (w) => Kn(n, w.id), e[9] = n, e[10] = d) : d = e[10];
|
|
1377
1403
|
let g;
|
|
1378
1404
|
e[11] !== i ? (g = le(i, "Failed to stop connection watch"), e[11] = i, e[12] = g) : g = e[12];
|
|
1379
1405
|
let h;
|
|
1380
|
-
e[13] !==
|
|
1381
|
-
mutationFn:
|
|
1406
|
+
e[13] !== d || e[14] !== g ? (h = {
|
|
1407
|
+
mutationFn: d,
|
|
1382
1408
|
onError: g
|
|
1383
|
-
}, e[13] =
|
|
1409
|
+
}, e[13] = d, e[14] = g, e[15] = h) : h = e[15];
|
|
1384
1410
|
const {
|
|
1385
|
-
mutateAsync:
|
|
1411
|
+
mutateAsync: y
|
|
1386
1412
|
} = oe(h);
|
|
1387
|
-
let
|
|
1388
|
-
e[16] !== s || e[17] !== u ? (
|
|
1413
|
+
let f;
|
|
1414
|
+
e[16] !== s || e[17] !== u ? (f = (w) => {
|
|
1389
1415
|
const D = w.data;
|
|
1390
1416
|
console.log("got update to connections", D), s.setQueryData(u, D);
|
|
1391
|
-
}, e[16] = s, e[17] = u, e[18] =
|
|
1392
|
-
const
|
|
1393
|
-
let
|
|
1394
|
-
e[19] !==
|
|
1395
|
-
const w = Z(`${n}/connection/sync`,
|
|
1417
|
+
}, e[16] = s, e[17] = u, e[18] = f) : f = e[18];
|
|
1418
|
+
const v = f;
|
|
1419
|
+
let m, _;
|
|
1420
|
+
e[19] !== v || e[20] !== n ? (_ = () => {
|
|
1421
|
+
const w = Z(`${n}/connection/sync`, v);
|
|
1396
1422
|
return () => {
|
|
1397
1423
|
w();
|
|
1398
1424
|
};
|
|
1399
|
-
},
|
|
1400
|
-
let
|
|
1401
|
-
e[23] !== n || e[24] !== i ? (
|
|
1425
|
+
}, m = [n, v], e[19] = v, e[20] = n, e[21] = m, e[22] = _) : (m = e[21], _ = e[22]), L.useEffect(_, m);
|
|
1426
|
+
let b;
|
|
1427
|
+
e[23] !== n || e[24] !== i ? (b = async () => {
|
|
1402
1428
|
try {
|
|
1403
|
-
return await
|
|
1429
|
+
return await Gn(n);
|
|
1404
1430
|
} catch (w) {
|
|
1405
1431
|
const D = w;
|
|
1406
1432
|
console.log(D), le(i, "Failed to load connections")(D);
|
|
1407
1433
|
}
|
|
1408
1434
|
return [];
|
|
1409
|
-
}, e[23] = n, e[24] = i, e[25] =
|
|
1435
|
+
}, e[23] = n, e[24] = i, e[25] = b) : b = e[25];
|
|
1410
1436
|
let C;
|
|
1411
|
-
e[26] !== u || e[27] !==
|
|
1437
|
+
e[26] !== u || e[27] !== b ? (C = {
|
|
1412
1438
|
queryKey: u,
|
|
1413
|
-
queryFn:
|
|
1439
|
+
queryFn: b,
|
|
1414
1440
|
staleTime: 3e4,
|
|
1415
|
-
placeholderData:
|
|
1416
|
-
}, e[26] = u, e[27] =
|
|
1441
|
+
placeholderData: Ut
|
|
1442
|
+
}, e[26] = u, e[27] = b, e[28] = C) : C = e[28];
|
|
1417
1443
|
const E = re(C);
|
|
1418
1444
|
let I;
|
|
1419
|
-
return e[29] !== E || e[30] !== p || e[31] !==
|
|
1445
|
+
return e[29] !== E || e[30] !== p || e[31] !== y ? (I = {
|
|
1420
1446
|
connections: E,
|
|
1421
1447
|
startWatch: p,
|
|
1422
|
-
stopWatch:
|
|
1423
|
-
}, e[29] = E, e[30] = p, e[31] =
|
|
1424
|
-
},
|
|
1448
|
+
stopWatch: y
|
|
1449
|
+
}, e[29] = E, e[30] = p, e[31] = y, e[32] = I) : I = e[32], I;
|
|
1450
|
+
}, rr = {
|
|
1425
1451
|
phase: "checking"
|
|
1426
|
-
},
|
|
1427
|
-
getSnapshot: () =>
|
|
1452
|
+
}, or = {
|
|
1453
|
+
getSnapshot: () => rr,
|
|
1428
1454
|
subscribe: () => () => {
|
|
1429
1455
|
},
|
|
1430
1456
|
connect: async () => {
|
|
@@ -1433,14 +1459,14 @@ const go = (t) => {
|
|
|
1433
1459
|
}
|
|
1434
1460
|
};
|
|
1435
1461
|
function ge(t) {
|
|
1436
|
-
const e =
|
|
1462
|
+
const e = q(8), {
|
|
1437
1463
|
pluginID: r,
|
|
1438
1464
|
connectionID: n,
|
|
1439
1465
|
enabled: s
|
|
1440
1466
|
} = t, i = s === void 0 ? !0 : s, o = ee(r);
|
|
1441
1467
|
let u;
|
|
1442
|
-
e[0] !== n || e[1] !== i || e[2] !== o ? (u = i ?
|
|
1443
|
-
const l = u, a =
|
|
1468
|
+
e[0] !== n || e[1] !== i || e[2] !== o ? (u = i ? un(o, n) : or, e[0] = n, e[1] = i, e[2] = o, e[3] = u) : u = e[3];
|
|
1469
|
+
const l = u, a = Mt(l.subscribe, l.getSnapshot, l.getSnapshot);
|
|
1444
1470
|
let c;
|
|
1445
1471
|
return e[4] !== a || e[5] !== l.connect || e[6] !== l.retry ? (c = {
|
|
1446
1472
|
...a,
|
|
@@ -1449,10 +1475,10 @@ function ge(t) {
|
|
|
1449
1475
|
}, e[4] = a, e[5] = l.connect, e[6] = l.retry, e[7] = c) : c = e[7], c;
|
|
1450
1476
|
}
|
|
1451
1477
|
function Ce(t, e) {
|
|
1452
|
-
const r =
|
|
1453
|
-
return
|
|
1454
|
-
const o =
|
|
1455
|
-
if (s.aborted || !u()) throw new
|
|
1478
|
+
const r = Se();
|
|
1479
|
+
return Xe(async (n, s, i) => {
|
|
1480
|
+
const o = er(t, e), u = () => o !== void 0 && tr(t, e, o);
|
|
1481
|
+
if (s.aborted || !u()) throw new ot({
|
|
1456
1482
|
revert: !0
|
|
1457
1483
|
});
|
|
1458
1484
|
let l, a = !1, c = !1;
|
|
@@ -1460,7 +1486,7 @@ function Ce(t, e) {
|
|
|
1460
1486
|
l && "cancel" in l && typeof l.cancel == "function" && Promise.resolve(l.cancel()).catch((h) => {
|
|
1461
1487
|
console.error("Failed to cancel resource query", h);
|
|
1462
1488
|
}), g();
|
|
1463
|
-
},
|
|
1489
|
+
}, d = un(t, e).subscribe(() => {
|
|
1464
1490
|
u() || (a = !0, r.cancelQueries({
|
|
1465
1491
|
queryKey: n,
|
|
1466
1492
|
exact: !0
|
|
@@ -1468,18 +1494,18 @@ function Ce(t, e) {
|
|
|
1468
1494
|
console.error("Failed to cancel invalidated resource query", h);
|
|
1469
1495
|
}));
|
|
1470
1496
|
}), g = () => {
|
|
1471
|
-
c || (c = !0,
|
|
1497
|
+
c || (c = !0, d());
|
|
1472
1498
|
};
|
|
1473
1499
|
s.addEventListener("abort", p, {
|
|
1474
1500
|
once: !0
|
|
1475
1501
|
});
|
|
1476
1502
|
try {
|
|
1477
|
-
if (s.aborted || a || !u()) throw new
|
|
1503
|
+
if (s.aborted || a || !u()) throw new ot({
|
|
1478
1504
|
revert: !0
|
|
1479
1505
|
});
|
|
1480
1506
|
l = i();
|
|
1481
1507
|
const h = await l;
|
|
1482
|
-
if (s.aborted || a || !u()) throw new
|
|
1508
|
+
if (s.aborted || a || !u()) throw new ot({
|
|
1483
1509
|
revert: !0
|
|
1484
1510
|
});
|
|
1485
1511
|
return h;
|
|
@@ -1488,8 +1514,8 @@ function Ce(t, e) {
|
|
|
1488
1514
|
}
|
|
1489
1515
|
}, [t, e, r]);
|
|
1490
1516
|
}
|
|
1491
|
-
const
|
|
1492
|
-
const e =
|
|
1517
|
+
const Co = (t) => {
|
|
1518
|
+
const e = q(19), {
|
|
1493
1519
|
pluginID: r,
|
|
1494
1520
|
connectionID: n,
|
|
1495
1521
|
enabled: s
|
|
@@ -1504,28 +1530,28 @@ const mo = (t) => {
|
|
|
1504
1530
|
let c;
|
|
1505
1531
|
e[4] !== n || e[5] !== o ? (c = [o, "connection", "namespaces", n], e[4] = n, e[5] = o, e[6] = c) : c = e[6];
|
|
1506
1532
|
const p = c;
|
|
1507
|
-
let
|
|
1508
|
-
e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (
|
|
1533
|
+
let d;
|
|
1534
|
+
e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (d = i && l.phase === "connected" ? (v) => {
|
|
1509
1535
|
const {
|
|
1510
|
-
signal:
|
|
1536
|
+
signal: m,
|
|
1511
1537
|
queryKey: _
|
|
1512
|
-
} =
|
|
1513
|
-
return a(_,
|
|
1514
|
-
} : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] =
|
|
1538
|
+
} = v;
|
|
1539
|
+
return a(_, m, () => Qn(o, n));
|
|
1540
|
+
} : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] = d) : d = e[12];
|
|
1515
1541
|
const g = i && l.phase === "connected";
|
|
1516
1542
|
let h;
|
|
1517
|
-
e[13] !== p || e[14] !==
|
|
1543
|
+
e[13] !== p || e[14] !== d || e[15] !== g ? (h = {
|
|
1518
1544
|
queryKey: p,
|
|
1519
|
-
queryFn:
|
|
1545
|
+
queryFn: d,
|
|
1520
1546
|
enabled: g
|
|
1521
|
-
}, e[13] = p, e[14] =
|
|
1522
|
-
const
|
|
1523
|
-
let
|
|
1524
|
-
return e[17] !==
|
|
1525
|
-
namespaces:
|
|
1526
|
-
}, e[17] =
|
|
1527
|
-
}, Q =
|
|
1528
|
-
function
|
|
1547
|
+
}, e[13] = p, e[14] = d, e[15] = g, e[16] = h) : h = e[16];
|
|
1548
|
+
const y = re(h);
|
|
1549
|
+
let f;
|
|
1550
|
+
return e[17] !== y ? (f = {
|
|
1551
|
+
namespaces: y
|
|
1552
|
+
}, e[17] = y, e[18] = f) : f = e[18], f;
|
|
1553
|
+
}, Q = Ls(xs, "WatchState");
|
|
1554
|
+
function vt(t) {
|
|
1529
1555
|
const e = Object.values(t.states), r = e.length;
|
|
1530
1556
|
let n = 0, s = 0, i = 0, o = 0;
|
|
1531
1557
|
for (const c of e)
|
|
@@ -1544,21 +1570,21 @@ function mt(t) {
|
|
|
1544
1570
|
progress: a
|
|
1545
1571
|
};
|
|
1546
1572
|
}
|
|
1547
|
-
function
|
|
1573
|
+
function nt(t) {
|
|
1548
1574
|
return t.watchedTotal > 0 && t.doneCount >= t.watchedTotal;
|
|
1549
1575
|
}
|
|
1550
|
-
function
|
|
1551
|
-
return t.some((e) => !
|
|
1576
|
+
function fn(t) {
|
|
1577
|
+
return t.some((e) => !nt(e));
|
|
1552
1578
|
}
|
|
1553
|
-
function
|
|
1579
|
+
function pn(t) {
|
|
1554
1580
|
const e = t.reduce((n, s) => n + s.watchedTotal, 0);
|
|
1555
1581
|
return e === 0 ? 0 : t.reduce((n, s) => n + s.doneCount, 0) / e;
|
|
1556
1582
|
}
|
|
1557
|
-
function
|
|
1583
|
+
function Dt(t) {
|
|
1558
1584
|
return `${t.pluginId}/${t.connection}`;
|
|
1559
1585
|
}
|
|
1560
|
-
function
|
|
1561
|
-
const r =
|
|
1586
|
+
function hn(t, e) {
|
|
1587
|
+
const r = Dt(e);
|
|
1562
1588
|
t.has(r) || t.set(r, {
|
|
1563
1589
|
states: {},
|
|
1564
1590
|
pluginID: e.pluginId,
|
|
@@ -1567,8 +1593,8 @@ function fn(t, e) {
|
|
|
1567
1593
|
const n = t.get(r);
|
|
1568
1594
|
return n.states[e.resourceKey] = e.state, n;
|
|
1569
1595
|
}
|
|
1570
|
-
function
|
|
1571
|
-
const t =
|
|
1596
|
+
function Io() {
|
|
1597
|
+
const t = q(49);
|
|
1572
1598
|
let e;
|
|
1573
1599
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ new Set(), t[0] = e) : e = t[0];
|
|
1574
1600
|
const [r, n] = Ie(e);
|
|
@@ -1581,100 +1607,100 @@ function vo() {
|
|
|
1581
1607
|
let c;
|
|
1582
1608
|
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ new Map(), t[3] = c) : c = t[3];
|
|
1583
1609
|
const p = pe(c);
|
|
1584
|
-
let
|
|
1585
|
-
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1586
|
-
const [g, h] = Ie(
|
|
1587
|
-
let
|
|
1588
|
-
t[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1610
|
+
let d;
|
|
1611
|
+
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ new Map(), t[4] = d) : d = t[4];
|
|
1612
|
+
const [g, h] = Ie(d);
|
|
1613
|
+
let y, f;
|
|
1614
|
+
t[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = () => {
|
|
1589
1615
|
const U = Z("plugin/crash_recovery_failed", (K) => {
|
|
1590
|
-
const z = K.data,
|
|
1591
|
-
|
|
1616
|
+
const z = K.data, $ = z?.pluginID;
|
|
1617
|
+
$ && h((F) => {
|
|
1592
1618
|
const H = new Map(F);
|
|
1593
|
-
return H.set(
|
|
1619
|
+
return H.set($, z.error ?? "Crash recovery failed"), H;
|
|
1594
1620
|
});
|
|
1595
1621
|
}), B = Z("plugin/recovered", (K) => {
|
|
1596
|
-
const
|
|
1597
|
-
|
|
1598
|
-
if (!F.has(
|
|
1622
|
+
const $ = K.data?.pluginID;
|
|
1623
|
+
$ && h((F) => {
|
|
1624
|
+
if (!F.has($))
|
|
1599
1625
|
return F;
|
|
1600
1626
|
const H = new Map(F);
|
|
1601
|
-
return H.delete(
|
|
1627
|
+
return H.delete($), H;
|
|
1602
1628
|
});
|
|
1603
1629
|
});
|
|
1604
1630
|
return () => {
|
|
1605
1631
|
U(), B();
|
|
1606
1632
|
};
|
|
1607
|
-
},
|
|
1608
|
-
let
|
|
1609
|
-
t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1610
|
-
|
|
1633
|
+
}, f = [], t[5] = y, t[6] = f) : (y = t[5], f = t[6]), De(y, f);
|
|
1634
|
+
let v, m;
|
|
1635
|
+
t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = () => {
|
|
1636
|
+
jn().then((U) => {
|
|
1611
1637
|
if (!U)
|
|
1612
1638
|
return;
|
|
1613
1639
|
const B = {}, K = /* @__PURE__ */ new Set(), z = /* @__PURE__ */ new Map();
|
|
1614
|
-
for (const [
|
|
1640
|
+
for (const [$, F] of Object.entries(U))
|
|
1615
1641
|
if (F) {
|
|
1616
|
-
B[
|
|
1642
|
+
B[$] = F.map(pr);
|
|
1617
1643
|
for (const H of F) {
|
|
1618
1644
|
if (!H.started)
|
|
1619
1645
|
continue;
|
|
1620
|
-
const ue = `${
|
|
1646
|
+
const ue = `${$}/${H.connection.id}`;
|
|
1621
1647
|
K.add(ue);
|
|
1622
1648
|
const de = {
|
|
1623
|
-
pluginID:
|
|
1649
|
+
pluginID: $,
|
|
1624
1650
|
connectionID: H.connection.id,
|
|
1625
1651
|
states: {}
|
|
1626
1652
|
};
|
|
1627
1653
|
if (H.resources)
|
|
1628
1654
|
for (const [Re, me] of Object.entries(H.resources))
|
|
1629
1655
|
de.states[Re] = me;
|
|
1630
|
-
p.current.set(ue, de), z.set(ue,
|
|
1656
|
+
p.current.set(ue, de), z.set(ue, vt(de));
|
|
1631
1657
|
}
|
|
1632
1658
|
}
|
|
1633
1659
|
o(B), n(K), a(z);
|
|
1634
|
-
}).catch(
|
|
1635
|
-
},
|
|
1636
|
-
let _,
|
|
1637
|
-
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1660
|
+
}).catch(fr);
|
|
1661
|
+
}, m = [], t[7] = v, t[8] = m) : (v = t[7], m = t[8]), De(v, m);
|
|
1662
|
+
let _, b;
|
|
1663
|
+
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => Z("connection/status", (B) => {
|
|
1638
1664
|
const K = B.data, z = `${K.pluginID}/${K.connectionID}`;
|
|
1639
|
-
K.status === "DISCONNECTED" ? (n((
|
|
1640
|
-
const F = new Set(
|
|
1665
|
+
K.status === "DISCONNECTED" ? (n(($) => {
|
|
1666
|
+
const F = new Set($);
|
|
1641
1667
|
return F.delete(z), F;
|
|
1642
|
-
}), a((
|
|
1643
|
-
const F = new Map(
|
|
1668
|
+
}), a(($) => {
|
|
1669
|
+
const F = new Map($);
|
|
1644
1670
|
return F.delete(z), F;
|
|
1645
|
-
}), p.current.delete(z)) : n((
|
|
1646
|
-
const F = new Set(
|
|
1671
|
+
}), p.current.delete(z)) : n(($) => {
|
|
1672
|
+
const F = new Set($);
|
|
1647
1673
|
return F.add(z), F;
|
|
1648
|
-
}),
|
|
1649
|
-
if (
|
|
1674
|
+
}), zn().then(($) => {
|
|
1675
|
+
if (!$)
|
|
1650
1676
|
return;
|
|
1651
1677
|
const F = {};
|
|
1652
|
-
for (const [H, ue] of Object.entries(
|
|
1678
|
+
for (const [H, ue] of Object.entries($))
|
|
1653
1679
|
ue != null && (F[H] = ue);
|
|
1654
1680
|
o(F);
|
|
1655
|
-
}).catch(
|
|
1656
|
-
}), _ = [], t[9] = _, t[10] =
|
|
1681
|
+
}).catch(dr);
|
|
1682
|
+
}), _ = [], t[9] = _, t[10] = b) : (_ = t[9], b = t[10]), De(b, _);
|
|
1657
1683
|
let C;
|
|
1658
1684
|
t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = (U) => {
|
|
1659
|
-
const B = U.data, K =
|
|
1685
|
+
const B = U.data, K = Dt(B);
|
|
1660
1686
|
n((F) => {
|
|
1661
1687
|
if (F.has(K))
|
|
1662
1688
|
return F;
|
|
1663
1689
|
const H = new Set(F);
|
|
1664
1690
|
return H.add(K), H;
|
|
1665
1691
|
});
|
|
1666
|
-
const z =
|
|
1692
|
+
const z = hn(p.current, B), $ = vt(z);
|
|
1667
1693
|
a((F) => {
|
|
1668
1694
|
const H = new Map(F);
|
|
1669
|
-
return H.set(K,
|
|
1695
|
+
return H.set(K, $), H;
|
|
1670
1696
|
});
|
|
1671
1697
|
}, t[11] = C) : C = t[11];
|
|
1672
1698
|
const E = C;
|
|
1673
1699
|
let I, w;
|
|
1674
1700
|
t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = () => Z("watch/STATE", E), w = [E], t[12] = I, t[13] = w) : (I = t[12], w = t[13]), De(I, w);
|
|
1675
|
-
const D =
|
|
1676
|
-
let
|
|
1677
|
-
t[14] !== g ? (
|
|
1701
|
+
const D = ur, x = lr;
|
|
1702
|
+
let P;
|
|
1703
|
+
t[14] !== g ? (P = async (U) => {
|
|
1678
1704
|
const B = g.get(U);
|
|
1679
1705
|
h((K) => {
|
|
1680
1706
|
if (!K.has(U))
|
|
@@ -1683,26 +1709,26 @@ function vo() {
|
|
|
1683
1709
|
return z.delete(U), z;
|
|
1684
1710
|
});
|
|
1685
1711
|
try {
|
|
1686
|
-
await
|
|
1712
|
+
await Bn(U);
|
|
1687
1713
|
} catch (K) {
|
|
1688
1714
|
const z = K;
|
|
1689
|
-
throw h((
|
|
1690
|
-
const F = new Map(
|
|
1715
|
+
throw h(($) => {
|
|
1716
|
+
const F = new Map($);
|
|
1691
1717
|
return F.set(U, B ?? "Reload failed"), F;
|
|
1692
1718
|
}), z;
|
|
1693
1719
|
}
|
|
1694
|
-
}, t[14] = g, t[15] =
|
|
1695
|
-
const
|
|
1696
|
-
let
|
|
1720
|
+
}, t[14] = g, t[15] = P) : P = t[15];
|
|
1721
|
+
const T = P;
|
|
1722
|
+
let A, k;
|
|
1697
1723
|
if (t[16] !== i || t[17] !== g || t[18] !== r || t[19] !== l) {
|
|
1698
|
-
|
|
1724
|
+
A = [];
|
|
1699
1725
|
for (const U of r) {
|
|
1700
|
-
const [B, K] = U.split("/", 2),
|
|
1701
|
-
|
|
1726
|
+
const [B, K] = U.split("/", 2), $ = (i[B] ?? []).find((Re) => Re.id === K), F = l.get(U), H = F != null && !nt(F), ue = F != null && F.errorCount > 0, de = g.get(B);
|
|
1727
|
+
A.push({
|
|
1702
1728
|
pluginID: B,
|
|
1703
1729
|
connectionID: K,
|
|
1704
|
-
name:
|
|
1705
|
-
avatar:
|
|
1730
|
+
name: $?.name ?? K,
|
|
1731
|
+
avatar: $?.avatar ?? "",
|
|
1706
1732
|
isStarted: !0,
|
|
1707
1733
|
sync: F,
|
|
1708
1734
|
isSyncing: H,
|
|
@@ -1712,30 +1738,30 @@ function vo() {
|
|
|
1712
1738
|
});
|
|
1713
1739
|
}
|
|
1714
1740
|
k = /* @__PURE__ */ new Map();
|
|
1715
|
-
for (const U of
|
|
1741
|
+
for (const U of A) {
|
|
1716
1742
|
const B = k.get(U.pluginID) ?? [];
|
|
1717
1743
|
B.push(U), k.set(U.pluginID, B);
|
|
1718
1744
|
}
|
|
1719
|
-
t[16] = i, t[17] = g, t[18] = r, t[19] = l, t[20] =
|
|
1745
|
+
t[16] = i, t[17] = g, t[18] = r, t[19] = l, t[20] = A, t[21] = k;
|
|
1720
1746
|
} else
|
|
1721
|
-
|
|
1747
|
+
A = t[20], k = t[21];
|
|
1722
1748
|
let M, W, j, V, Y, G, J, te;
|
|
1723
|
-
if (t[22] !==
|
|
1749
|
+
if (t[22] !== A || t[23] !== k || t[24] !== l) {
|
|
1724
1750
|
const U = Array.from(l.values());
|
|
1725
1751
|
let B;
|
|
1726
|
-
t[33] !==
|
|
1752
|
+
t[33] !== A ? (B = A.filter(ar), t[33] = A, t[34] = B) : B = t[34];
|
|
1727
1753
|
const K = B;
|
|
1728
1754
|
let z;
|
|
1729
|
-
t[35] !==
|
|
1730
|
-
const
|
|
1755
|
+
t[35] !== A ? (z = A.filter(cr), t[35] = A, t[36] = z) : z = t[36];
|
|
1756
|
+
const $ = z;
|
|
1731
1757
|
let F;
|
|
1732
|
-
t[37] !==
|
|
1758
|
+
t[37] !== A ? (F = A.filter(ir), t[37] = A, t[38] = F) : F = t[38];
|
|
1733
1759
|
const H = F;
|
|
1734
|
-
M =
|
|
1760
|
+
M = A, W = k, j = A.length, V = K.length, Y = $.length, G = H.length, J = fn(U), te = pn(U), t[22] = A, t[23] = k, t[24] = l, t[25] = M, t[26] = W, t[27] = j, t[28] = V, t[29] = Y, t[30] = G, t[31] = J, t[32] = te;
|
|
1735
1761
|
} else
|
|
1736
1762
|
M = t[25], W = t[26], j = t[27], V = t[28], Y = t[29], G = t[30], J = t[31], te = t[32];
|
|
1737
1763
|
let ye;
|
|
1738
|
-
return t[39] !==
|
|
1764
|
+
return t[39] !== T || t[40] !== M || t[41] !== W || t[42] !== j || t[43] !== V || t[44] !== Y || t[45] !== G || t[46] !== J || t[47] !== te ? (ye = {
|
|
1739
1765
|
entries: M,
|
|
1740
1766
|
grouped: W,
|
|
1741
1767
|
connectedCount: j,
|
|
@@ -1746,32 +1772,32 @@ function vo() {
|
|
|
1746
1772
|
aggregateProgress: te,
|
|
1747
1773
|
disconnect: D,
|
|
1748
1774
|
retryWatch: x,
|
|
1749
|
-
retryPlugin:
|
|
1750
|
-
}, t[39] =
|
|
1775
|
+
retryPlugin: T
|
|
1776
|
+
}, t[39] = T, t[40] = M, t[41] = W, t[42] = j, t[43] = V, t[44] = Y, t[45] = G, t[46] = J, t[47] = te, t[48] = ye) : ye = t[48], ye;
|
|
1751
1777
|
}
|
|
1752
|
-
function
|
|
1778
|
+
function ir(t) {
|
|
1753
1779
|
return t.pluginFailed;
|
|
1754
1780
|
}
|
|
1755
|
-
function
|
|
1781
|
+
function cr(t) {
|
|
1756
1782
|
return t.hasErrors;
|
|
1757
1783
|
}
|
|
1758
|
-
function
|
|
1784
|
+
function ar(t) {
|
|
1759
1785
|
return t.isSyncing;
|
|
1760
1786
|
}
|
|
1761
|
-
async function
|
|
1762
|
-
await
|
|
1787
|
+
async function lr(t, e) {
|
|
1788
|
+
await Wt(t, e);
|
|
1763
1789
|
}
|
|
1764
|
-
async function
|
|
1765
|
-
await
|
|
1790
|
+
async function ur(t, e) {
|
|
1791
|
+
await dn(t, e);
|
|
1766
1792
|
}
|
|
1767
|
-
function
|
|
1793
|
+
function dr() {
|
|
1768
1794
|
}
|
|
1769
|
-
function
|
|
1795
|
+
function fr() {
|
|
1770
1796
|
}
|
|
1771
|
-
function
|
|
1797
|
+
function pr(t) {
|
|
1772
1798
|
return t.connection;
|
|
1773
1799
|
}
|
|
1774
|
-
const
|
|
1800
|
+
const hr = {
|
|
1775
1801
|
display: "flex",
|
|
1776
1802
|
alignItems: "center",
|
|
1777
1803
|
justifyContent: "center",
|
|
@@ -1780,34 +1806,34 @@ const dr = {
|
|
|
1780
1806
|
padding: 24,
|
|
1781
1807
|
boxSizing: "border-box",
|
|
1782
1808
|
color: "var(--ov-color-fg-default)"
|
|
1783
|
-
},
|
|
1809
|
+
}, gr = {
|
|
1784
1810
|
width: "100%",
|
|
1785
1811
|
maxWidth: 560,
|
|
1786
1812
|
minWidth: 0,
|
|
1787
1813
|
display: "flex",
|
|
1788
1814
|
flexDirection: "column",
|
|
1789
1815
|
gap: 16
|
|
1790
|
-
},
|
|
1816
|
+
}, yr = {
|
|
1791
1817
|
display: "flex",
|
|
1792
1818
|
alignItems: "center",
|
|
1793
1819
|
gap: 12
|
|
1794
|
-
},
|
|
1820
|
+
}, mr = {
|
|
1795
1821
|
margin: 0,
|
|
1796
1822
|
fontSize: "1.125rem",
|
|
1797
1823
|
fontWeight: 600
|
|
1798
|
-
},
|
|
1824
|
+
}, vr = {
|
|
1799
1825
|
display: "flex",
|
|
1800
1826
|
flexWrap: "wrap",
|
|
1801
1827
|
gap: 8
|
|
1802
|
-
},
|
|
1828
|
+
}, ft = {
|
|
1803
1829
|
margin: 0,
|
|
1804
1830
|
whiteSpace: "pre-wrap",
|
|
1805
1831
|
overflowWrap: "anywhere"
|
|
1806
|
-
},
|
|
1832
|
+
}, _r = {
|
|
1807
1833
|
width: 20,
|
|
1808
1834
|
height: 20,
|
|
1809
1835
|
flexShrink: 0
|
|
1810
|
-
},
|
|
1836
|
+
}, br = {
|
|
1811
1837
|
checking: {
|
|
1812
1838
|
title: "Checking connection",
|
|
1813
1839
|
description: "Checking whether this connection is ready before loading resources."
|
|
@@ -1837,68 +1863,68 @@ const dr = {
|
|
|
1837
1863
|
description: "Check the connection settings and network, then connect again or retry the check."
|
|
1838
1864
|
}
|
|
1839
1865
|
};
|
|
1840
|
-
function
|
|
1841
|
-
const e =
|
|
1866
|
+
function Sr(t) {
|
|
1867
|
+
const e = q(44), {
|
|
1842
1868
|
state: r,
|
|
1843
1869
|
connectionName: n,
|
|
1844
1870
|
connectionDetails: s,
|
|
1845
1871
|
onEditConnection: i,
|
|
1846
1872
|
onBack: o,
|
|
1847
1873
|
backLabel: u
|
|
1848
|
-
} = t, l = u === void 0 ? "Back to connections" : u, a =
|
|
1874
|
+
} = t, l = u === void 0 ? "Back to connections" : u, a = Dn();
|
|
1849
1875
|
if (r.phase === "connected")
|
|
1850
1876
|
return null;
|
|
1851
|
-
const c = r.phase === "checking" || r.phase === "connecting", p =
|
|
1877
|
+
const c = r.phase === "checking" || r.phase === "connecting", p = br[r.phase], d = n ?? r.connection?.name;
|
|
1852
1878
|
let g;
|
|
1853
|
-
e[0] !== s || e[1] !==
|
|
1879
|
+
e[0] !== s || e[1] !== d ? (g = s ?? (d && /* @__PURE__ */ N(Te, { size: "sm", tone: "muted", style: ft, children: d })), e[0] = s, e[1] = d, e[2] = g) : g = e[2];
|
|
1854
1880
|
let h;
|
|
1855
|
-
e[3] !== c ? (h = c && /* @__PURE__ */ N(
|
|
1856
|
-
let
|
|
1857
|
-
e[5] !== a || e[6] !== p.title ? (
|
|
1858
|
-
let
|
|
1859
|
-
e[8] !== h || e[9] !==
|
|
1881
|
+
e[3] !== c ? (h = c && /* @__PURE__ */ N(Ds, { style: _r, "aria-hidden": "true" }), e[3] = c, e[4] = h) : h = e[4];
|
|
1882
|
+
let y;
|
|
1883
|
+
e[5] !== a || e[6] !== p.title ? (y = /* @__PURE__ */ N("h2", { id: a, style: mr, children: p.title }), e[5] = a, e[6] = p.title, e[7] = y) : y = e[7];
|
|
1884
|
+
let f;
|
|
1885
|
+
e[8] !== h || e[9] !== y ? (f = /* @__PURE__ */ ce("div", { style: yr, role: "status", "aria-live": "polite", children: [
|
|
1860
1886
|
h,
|
|
1861
|
-
|
|
1862
|
-
] }), e[8] = h, e[9] =
|
|
1887
|
+
y
|
|
1888
|
+
] }), e[8] = h, e[9] = y, e[10] = f) : f = e[10];
|
|
1889
|
+
let v;
|
|
1890
|
+
e[11] !== p.description ? (v = /* @__PURE__ */ N(Te, { as: "p", size: "sm", tone: "muted", style: ft, children: p.description }), e[11] = p.description, e[12] = v) : v = e[12];
|
|
1863
1891
|
let m;
|
|
1864
|
-
e[
|
|
1865
|
-
let y;
|
|
1866
|
-
e[13] !== c || e[14] !== r.message ? (y = r.message && /* @__PURE__ */ N(Ae, { as: "p", size: "sm", style: dt, role: c ? "status" : "alert", children: r.message }), e[13] = c, e[14] = r.message, e[15] = y) : y = e[15];
|
|
1892
|
+
e[13] !== c || e[14] !== r.message ? (m = r.message && /* @__PURE__ */ N(Te, { as: "p", size: "sm", style: ft, role: c ? "status" : "alert", children: r.message }), e[13] = c, e[14] = r.message, e[15] = m) : m = e[15];
|
|
1867
1893
|
let _;
|
|
1868
1894
|
e[16] !== c || e[17] !== r ? (_ = r.phase !== "not-found" && /* @__PURE__ */ N(Fe, { size: "sm", variant: "solid", color: "brand", disabled: c, onClick: () => {
|
|
1869
1895
|
r.connect();
|
|
1870
1896
|
}, children: "Connect and continue" }), e[16] = c, e[17] = r, e[18] = _) : _ = e[18];
|
|
1871
|
-
const
|
|
1897
|
+
const b = r.phase === "checking";
|
|
1872
1898
|
let C;
|
|
1873
1899
|
e[19] !== r ? (C = () => {
|
|
1874
1900
|
r.retry();
|
|
1875
1901
|
}, e[19] = r, e[20] = C) : C = e[20];
|
|
1876
1902
|
let E;
|
|
1877
|
-
e[21] !== C || e[22] !==
|
|
1903
|
+
e[21] !== C || e[22] !== b ? (E = /* @__PURE__ */ N(Fe, { size: "sm", variant: "outline", color: "neutral", disabled: b, onClick: C, children: "Retry check" }), e[21] = C, e[22] = b, e[23] = E) : E = e[23];
|
|
1878
1904
|
let I;
|
|
1879
1905
|
e[24] !== i ? (I = i && /* @__PURE__ */ N(Fe, { size: "sm", variant: "outline", color: "neutral", onClick: i, children: "Edit connection" }), e[24] = i, e[25] = I) : I = e[25];
|
|
1880
1906
|
let w;
|
|
1881
1907
|
e[26] !== l || e[27] !== o ? (w = o && /* @__PURE__ */ N(Fe, { size: "sm", variant: "outline", color: "neutral", onClick: o, children: l }), e[26] = l, e[27] = o, e[28] = w) : w = e[28];
|
|
1882
1908
|
let D;
|
|
1883
|
-
e[29] !== E || e[30] !== I || e[31] !== w || e[32] !== _ ? (D = /* @__PURE__ */ ce("div", { style:
|
|
1909
|
+
e[29] !== E || e[30] !== I || e[31] !== w || e[32] !== _ ? (D = /* @__PURE__ */ ce("div", { style: vr, children: [
|
|
1884
1910
|
_,
|
|
1885
1911
|
E,
|
|
1886
1912
|
I,
|
|
1887
1913
|
w
|
|
1888
1914
|
] }), e[29] = E, e[30] = I, e[31] = w, e[32] = _, e[33] = D) : D = e[33];
|
|
1889
1915
|
let x;
|
|
1890
|
-
e[34] !== D || e[35] !== g || e[36] !==
|
|
1916
|
+
e[34] !== D || e[35] !== g || e[36] !== f || e[37] !== v || e[38] !== m ? (x = /* @__PURE__ */ ce("div", { style: gr, children: [
|
|
1891
1917
|
g,
|
|
1892
|
-
|
|
1918
|
+
f,
|
|
1919
|
+
v,
|
|
1893
1920
|
m,
|
|
1894
|
-
y,
|
|
1895
1921
|
D
|
|
1896
|
-
] }), e[34] = D, e[35] = g, e[36] =
|
|
1897
|
-
let
|
|
1898
|
-
return e[40] !== c || e[41] !== a || e[42] !== x ? (
|
|
1922
|
+
] }), e[34] = D, e[35] = g, e[36] = f, e[37] = v, e[38] = m, e[39] = x) : x = e[39];
|
|
1923
|
+
let P;
|
|
1924
|
+
return e[40] !== c || e[41] !== a || e[42] !== x ? (P = /* @__PURE__ */ N("section", { style: hr, "aria-labelledby": a, "aria-busy": c, children: x }), e[40] = c, e[41] = a, e[42] = x, e[43] = P) : P = e[43], P;
|
|
1899
1925
|
}
|
|
1900
|
-
function
|
|
1901
|
-
const e =
|
|
1926
|
+
function Er(t) {
|
|
1927
|
+
const e = q(9), {
|
|
1902
1928
|
pluginID: r,
|
|
1903
1929
|
connectionID: n,
|
|
1904
1930
|
children: s,
|
|
@@ -1912,30 +1938,30 @@ function _r(t) {
|
|
|
1912
1938
|
const u = ge(o);
|
|
1913
1939
|
if (u.phase !== "connected") {
|
|
1914
1940
|
let a;
|
|
1915
|
-
return e[3] !== n || e[4] !== i || e[5] !== u ? (a = i ? i(u) : /* @__PURE__ */ N(
|
|
1941
|
+
return e[3] !== n || e[4] !== i || e[5] !== u ? (a = i ? i(u) : /* @__PURE__ */ N(Sr, { state: u, connectionName: u.connection?.name || n }), e[3] = n, e[4] = i, e[5] = u, e[6] = a) : a = e[6], a;
|
|
1916
1942
|
}
|
|
1917
1943
|
let l;
|
|
1918
|
-
return e[7] !== s ? (l = /* @__PURE__ */ N(
|
|
1944
|
+
return e[7] !== s ? (l = /* @__PURE__ */ N(bt, { children: s }), e[7] = s, e[8] = l) : l = e[8], l;
|
|
1919
1945
|
}
|
|
1920
|
-
function
|
|
1921
|
-
const e =
|
|
1946
|
+
function Do(t) {
|
|
1947
|
+
const e = q(7), r = ee(t.pluginID);
|
|
1922
1948
|
let n;
|
|
1923
1949
|
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];
|
|
1924
1950
|
let s;
|
|
1925
|
-
return e[3] !== r || e[4] !== t || e[5] !== n ? (s = /* @__PURE__ */
|
|
1951
|
+
return e[3] !== r || e[4] !== t || e[5] !== n ? (s = /* @__PURE__ */ In(Er, { ...t, pluginID: r, key: n }), e[3] = r, e[4] = t, e[5] = n, e[6] = s) : s = e[6], s;
|
|
1926
1952
|
}
|
|
1927
|
-
function
|
|
1953
|
+
function wr(t, e) {
|
|
1928
1954
|
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;
|
|
1929
1955
|
}
|
|
1930
|
-
function
|
|
1931
|
-
const n =
|
|
1956
|
+
function Ro(t, e, r) {
|
|
1957
|
+
const n = q(29), s = ee(t), i = Se();
|
|
1932
1958
|
let o;
|
|
1933
1959
|
n[0] !== e || n[1] !== s ? (o = [s, "data", e], n[0] = e, n[1] = s, n[2] = o) : o = n[2];
|
|
1934
1960
|
const u = o;
|
|
1935
1961
|
let l;
|
|
1936
1962
|
n[3] !== r || n[4] !== e || n[5] !== s ? (l = async () => {
|
|
1937
|
-
const
|
|
1938
|
-
return
|
|
1963
|
+
const b = await Hn(s, e);
|
|
1964
|
+
return b == null ? r : wr(b, r) ? b : (console.warn(`[usePluginData] stored value for "${e}" has unexpected type (expected ${Array.isArray(r) ? "array" : typeof r}, got ${Array.isArray(b) ? "array" : typeof b}). Using default.`), r);
|
|
1939
1965
|
}, n[3] = r, n[4] = e, n[5] = s, n[6] = l) : l = n[6];
|
|
1940
1966
|
let a;
|
|
1941
1967
|
n[7] !== u || n[8] !== l ? (a = {
|
|
@@ -1944,55 +1970,55 @@ function So(t, e, r) {
|
|
|
1944
1970
|
}, n[7] = u, n[8] = l, n[9] = a) : a = n[9];
|
|
1945
1971
|
const c = re(a);
|
|
1946
1972
|
let p;
|
|
1947
|
-
n[10] !== e || n[11] !== s ? (p = async (
|
|
1948
|
-
await
|
|
1973
|
+
n[10] !== e || n[11] !== s ? (p = async (b) => {
|
|
1974
|
+
await Jn(s, e, b);
|
|
1949
1975
|
}, n[10] = e, n[11] = s, n[12] = p) : p = n[12];
|
|
1950
|
-
let
|
|
1951
|
-
n[13] !== i || n[14] !== u ? (
|
|
1976
|
+
let d, g, h;
|
|
1977
|
+
n[13] !== i || n[14] !== u ? (d = async (b) => {
|
|
1952
1978
|
await i.cancelQueries({
|
|
1953
1979
|
queryKey: u
|
|
1954
1980
|
});
|
|
1955
1981
|
const C = i.getQueryData(u);
|
|
1956
|
-
return i.setQueryData(u,
|
|
1982
|
+
return i.setQueryData(u, b), {
|
|
1957
1983
|
previous: C
|
|
1958
1984
|
};
|
|
1959
|
-
}, g = (
|
|
1985
|
+
}, g = (b, C, E) => {
|
|
1960
1986
|
E?.previous !== void 0 && i.setQueryData(u, E.previous);
|
|
1961
1987
|
}, h = () => {
|
|
1962
1988
|
i.invalidateQueries({
|
|
1963
1989
|
queryKey: u
|
|
1964
1990
|
});
|
|
1965
|
-
}, n[13] = i, n[14] = u, n[15] =
|
|
1966
|
-
let
|
|
1967
|
-
n[18] !== p || n[19] !==
|
|
1991
|
+
}, n[13] = i, n[14] = u, n[15] = d, n[16] = g, n[17] = h) : (d = n[15], g = n[16], h = n[17]);
|
|
1992
|
+
let y;
|
|
1993
|
+
n[18] !== p || n[19] !== d || n[20] !== g || n[21] !== h ? (y = {
|
|
1968
1994
|
mutationFn: p,
|
|
1969
|
-
onMutate:
|
|
1995
|
+
onMutate: d,
|
|
1970
1996
|
onError: g,
|
|
1971
1997
|
onSettled: h
|
|
1972
|
-
}, n[18] = p, n[19] =
|
|
1973
|
-
const
|
|
1974
|
-
let
|
|
1975
|
-
n[23] !==
|
|
1976
|
-
await
|
|
1977
|
-
}, n[23] =
|
|
1998
|
+
}, n[18] = p, n[19] = d, n[20] = g, n[21] = h, n[22] = y) : y = n[22];
|
|
1999
|
+
const f = oe(y), v = c.data ?? r;
|
|
2000
|
+
let m;
|
|
2001
|
+
n[23] !== f ? (m = async (b) => {
|
|
2002
|
+
await f.mutateAsync(b);
|
|
2003
|
+
}, n[23] = f, n[24] = m) : m = n[24];
|
|
1978
2004
|
let _;
|
|
1979
|
-
return n[25] !== c.isLoading || n[26] !==
|
|
1980
|
-
data:
|
|
1981
|
-
update:
|
|
2005
|
+
return n[25] !== c.isLoading || n[26] !== v || n[27] !== m ? (_ = {
|
|
2006
|
+
data: v,
|
|
2007
|
+
update: m,
|
|
1982
2008
|
isLoading: c.isLoading
|
|
1983
|
-
}, n[25] = c.isLoading, n[26] =
|
|
2009
|
+
}, n[25] = c.isLoading, n[26] = v, n[27] = m, n[28] = _) : _ = n[28], _;
|
|
1984
2010
|
}
|
|
1985
|
-
const
|
|
1986
|
-
const t = Ue(
|
|
2011
|
+
const xo = () => {
|
|
2012
|
+
const t = Ue(Ks);
|
|
1987
2013
|
if (!t)
|
|
1988
2014
|
throw new Error("useRightDrawer must be used within a RightDrawerProvider");
|
|
1989
2015
|
return t;
|
|
1990
|
-
},
|
|
1991
|
-
const t = Ue(
|
|
2016
|
+
}, gn = () => {
|
|
2017
|
+
const t = Ue(Ws);
|
|
1992
2018
|
if (t === void 0)
|
|
1993
2019
|
throw new Error("useBottomDrawer must be used within a BottomDrawerProvider");
|
|
1994
2020
|
return t;
|
|
1995
|
-
},
|
|
2021
|
+
}, Ao = ({
|
|
1996
2022
|
pluginID: t
|
|
1997
2023
|
}) => {
|
|
1998
2024
|
const e = ee(t), {
|
|
@@ -2000,7 +2026,7 @@ const bo = () => {
|
|
|
2000
2026
|
} = we(), {
|
|
2001
2027
|
createTab: n,
|
|
2002
2028
|
updateTab: s
|
|
2003
|
-
} =
|
|
2029
|
+
} = gn();
|
|
2004
2030
|
return {
|
|
2005
2031
|
createSession: oe({
|
|
2006
2032
|
mutationFn: async ({
|
|
@@ -2026,13 +2052,13 @@ const bo = () => {
|
|
|
2026
2052
|
recovery: c
|
|
2027
2053
|
}
|
|
2028
2054
|
});
|
|
2029
|
-
const
|
|
2055
|
+
const d = As.createFrom({
|
|
2030
2056
|
command: ["/bin/bash"],
|
|
2031
2057
|
tty: !0,
|
|
2032
2058
|
...a
|
|
2033
2059
|
});
|
|
2034
2060
|
try {
|
|
2035
|
-
const g = await
|
|
2061
|
+
const g = await Vn(e, o, d);
|
|
2036
2062
|
if (!g) throw new Error("Failed to create session: null response");
|
|
2037
2063
|
return s({
|
|
2038
2064
|
id: p
|
|
@@ -2050,7 +2076,7 @@ const bo = () => {
|
|
|
2050
2076
|
}
|
|
2051
2077
|
}), g;
|
|
2052
2078
|
} catch (g) {
|
|
2053
|
-
const h =
|
|
2079
|
+
const h = be(g);
|
|
2054
2080
|
return s({
|
|
2055
2081
|
id: p
|
|
2056
2082
|
}, {
|
|
@@ -2074,32 +2100,32 @@ const bo = () => {
|
|
|
2074
2100
|
}
|
|
2075
2101
|
}).mutateAsync
|
|
2076
2102
|
};
|
|
2077
|
-
},
|
|
2078
|
-
const e =
|
|
2103
|
+
}, To = (t) => {
|
|
2104
|
+
const e = q(15), {
|
|
2079
2105
|
pluginID: r
|
|
2080
2106
|
} = t, n = ee(r), {
|
|
2081
2107
|
showSnackbar: s
|
|
2082
2108
|
} = we(), {
|
|
2083
2109
|
createTab: i
|
|
2084
|
-
} =
|
|
2110
|
+
} = gn();
|
|
2085
2111
|
let o;
|
|
2086
2112
|
e[0] !== i || e[1] !== n ? (o = async (h) => {
|
|
2087
2113
|
const {
|
|
2088
|
-
connectionID:
|
|
2089
|
-
resourceKey:
|
|
2090
|
-
resourceID:
|
|
2091
|
-
resourceData:
|
|
2114
|
+
connectionID: y,
|
|
2115
|
+
resourceKey: f,
|
|
2116
|
+
resourceID: v,
|
|
2117
|
+
resourceData: m,
|
|
2092
2118
|
icon: _,
|
|
2093
|
-
label:
|
|
2119
|
+
label: b,
|
|
2094
2120
|
target: C,
|
|
2095
2121
|
follow: E,
|
|
2096
2122
|
tailLines: I,
|
|
2097
2123
|
params: w
|
|
2098
|
-
} = h, D = E === void 0 ? !0 : E, x = I === void 0 ? 1e3 : I,
|
|
2099
|
-
resource_key:
|
|
2100
|
-
resource_id:
|
|
2101
|
-
resource_data:
|
|
2102
|
-
options:
|
|
2124
|
+
} = h, D = E === void 0 ? !0 : E, x = I === void 0 ? 1e3 : I, P = Ts.createFrom({
|
|
2125
|
+
resource_key: f,
|
|
2126
|
+
resource_id: v,
|
|
2127
|
+
resource_data: m,
|
|
2128
|
+
options: Ns.createFrom({
|
|
2103
2129
|
target: C ?? "",
|
|
2104
2130
|
follow: D,
|
|
2105
2131
|
include_previous: !1,
|
|
@@ -2110,15 +2136,15 @@ const bo = () => {
|
|
|
2110
2136
|
include_source_events: !0,
|
|
2111
2137
|
params: w ?? {}
|
|
2112
2138
|
})
|
|
2113
|
-
}),
|
|
2114
|
-
if (!
|
|
2139
|
+
}), T = await Yn(n, y, P);
|
|
2140
|
+
if (!T)
|
|
2115
2141
|
throw new Error("Failed to create log session: null response");
|
|
2116
2142
|
return i({
|
|
2117
|
-
id:
|
|
2118
|
-
title:
|
|
2143
|
+
id: T.id,
|
|
2144
|
+
title: b ?? `Logs ${T.id.substring(0, 8)}`,
|
|
2119
2145
|
variant: "logs",
|
|
2120
2146
|
icon: _ ?? "LuLogs"
|
|
2121
|
-
}),
|
|
2147
|
+
}), T;
|
|
2122
2148
|
}, e[0] = i, e[1] = n, e[2] = o) : o = e[2];
|
|
2123
2149
|
let u;
|
|
2124
2150
|
e[3] !== s ? (u = le(s, "Failed to start log session"), e[3] = s, e[4] = u) : u = e[4];
|
|
@@ -2132,31 +2158,31 @@ const bo = () => {
|
|
|
2132
2158
|
e[8] !== s ? (c = le(s, "Failed to close log session"), e[8] = s, e[9] = c) : c = e[9];
|
|
2133
2159
|
let p;
|
|
2134
2160
|
e[10] !== c ? (p = {
|
|
2135
|
-
mutationFn:
|
|
2161
|
+
mutationFn: Cr,
|
|
2136
2162
|
onError: c
|
|
2137
2163
|
}, e[10] = c, e[11] = p) : p = e[11];
|
|
2138
|
-
const
|
|
2164
|
+
const d = oe(p);
|
|
2139
2165
|
let g;
|
|
2140
|
-
return e[12] !==
|
|
2166
|
+
return e[12] !== d.mutateAsync || e[13] !== a.mutateAsync ? (g = {
|
|
2141
2167
|
createLogSession: a.mutateAsync,
|
|
2142
|
-
closeLogSession:
|
|
2143
|
-
}, e[12] =
|
|
2168
|
+
closeLogSession: d.mutateAsync
|
|
2169
|
+
}, e[12] = d.mutateAsync, e[13] = a.mutateAsync, e[14] = g) : g = e[14], g;
|
|
2144
2170
|
};
|
|
2145
|
-
async function
|
|
2146
|
-
await
|
|
2171
|
+
async function Cr(t) {
|
|
2172
|
+
await Zn(t);
|
|
2147
2173
|
}
|
|
2148
|
-
const
|
|
2149
|
-
const t =
|
|
2174
|
+
const No = () => {
|
|
2175
|
+
const t = q(1);
|
|
2150
2176
|
let e;
|
|
2151
2177
|
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = {
|
|
2152
2178
|
queryKey: ["metric", "providers"],
|
|
2153
|
-
queryFn:
|
|
2179
|
+
queryFn: Xn,
|
|
2154
2180
|
staleTime: 3e4
|
|
2155
2181
|
}, t[0] = e) : e = t[0], re(e);
|
|
2156
|
-
},
|
|
2157
|
-
const e =
|
|
2182
|
+
}, Ir = (t) => {
|
|
2183
|
+
const e = q(7);
|
|
2158
2184
|
let r, n;
|
|
2159
|
-
e[0] !== t ? (r = ["metric", "providers", t], n = () =>
|
|
2185
|
+
e[0] !== t ? (r = ["metric", "providers", t], n = () => es(t), e[0] = t, e[1] = r, e[2] = n) : (r = e[1], n = e[2]);
|
|
2160
2186
|
const s = !!t;
|
|
2161
2187
|
let i;
|
|
2162
2188
|
return e[3] !== r || e[4] !== n || e[5] !== s ? (i = {
|
|
@@ -2165,8 +2191,8 @@ const Co = () => {
|
|
|
2165
2191
|
enabled: s,
|
|
2166
2192
|
staleTime: 3e4
|
|
2167
2193
|
}, e[3] = r, e[4] = n, e[5] = s, e[6] = i) : i = e[6], re(i);
|
|
2168
|
-
},
|
|
2169
|
-
const e =
|
|
2194
|
+
}, Po = (t) => {
|
|
2195
|
+
const e = q(47), {
|
|
2170
2196
|
connectionID: r,
|
|
2171
2197
|
resourceKey: n,
|
|
2172
2198
|
resourceID: s,
|
|
@@ -2177,44 +2203,44 @@ const Co = () => {
|
|
|
2177
2203
|
timeRange: a,
|
|
2178
2204
|
refreshInterval: c,
|
|
2179
2205
|
enabled: p
|
|
2180
|
-
} = t,
|
|
2206
|
+
} = t, d = i === void 0 ? "" : i;
|
|
2181
2207
|
let g;
|
|
2182
2208
|
e[0] !== o ? (g = o === void 0 ? {} : o, e[0] = o, e[1] = g) : g = e[1];
|
|
2183
2209
|
const h = g;
|
|
2184
|
-
let
|
|
2185
|
-
e[2] !== u ? (
|
|
2186
|
-
const
|
|
2187
|
-
data:
|
|
2210
|
+
let y;
|
|
2211
|
+
e[2] !== u ? (y = u === void 0 ? [] : u, e[2] = u, e[3] = y) : y = e[3];
|
|
2212
|
+
const f = y, v = l === void 0 ? 0 : l, m = c === void 0 ? 0 : c, _ = p === void 0 ? !0 : p, {
|
|
2213
|
+
data: b,
|
|
2188
2214
|
isLoading: C
|
|
2189
|
-
} =
|
|
2215
|
+
} = Ir(n);
|
|
2190
2216
|
let E;
|
|
2191
|
-
e[4] !==
|
|
2217
|
+
e[4] !== b ? (E = b ?? [], e[4] = b, e[5] = E) : E = e[5];
|
|
2192
2218
|
const I = E, w = a ? Math.max(Math.floor((a.end.getTime() - a.start.getTime()) / 250), 15e3) * 1e6 : 0;
|
|
2193
2219
|
let D;
|
|
2194
2220
|
e[6] !== a?.start ? (D = a?.start?.getTime(), e[6] = a?.start, e[7] = D) : D = e[7];
|
|
2195
2221
|
let x;
|
|
2196
2222
|
e[8] !== a?.end ? (x = a?.end?.getTime(), e[8] = a?.end, e[9] = x) : x = e[9];
|
|
2197
|
-
let
|
|
2198
|
-
e[10] !== r || e[11] !==
|
|
2199
|
-
let
|
|
2200
|
-
e[19] !== r || e[20] !==
|
|
2201
|
-
const J = await
|
|
2223
|
+
let P;
|
|
2224
|
+
e[10] !== r || e[11] !== f || e[12] !== s || e[13] !== n || e[14] !== d || e[15] !== v || e[16] !== x || e[17] !== D ? (P = ["metric", "query", r, n, s, d, f, v, D, x], e[10] = r, e[11] = f, e[12] = s, e[13] = n, e[14] = d, e[15] = v, e[16] = x, e[17] = D, e[18] = P) : P = e[18];
|
|
2225
|
+
let T;
|
|
2226
|
+
e[19] !== r || e[20] !== f || e[21] !== h || e[22] !== s || e[23] !== n || e[24] !== d || e[25] !== v || e[26] !== w || e[27] !== a?.end || e[28] !== a?.start ? (T = async () => {
|
|
2227
|
+
const J = await ts(r, n, s, d, h, f, v, (a?.start ?? /* @__PURE__ */ new Date(0)).toISOString(), (a?.end ?? /* @__PURE__ */ new Date(0)).toISOString(), w), te = {};
|
|
2202
2228
|
for (const [ye, U] of Object.entries(J))
|
|
2203
2229
|
U != null && (te[ye] = U);
|
|
2204
2230
|
return te;
|
|
2205
|
-
}, e[19] = r, e[20] =
|
|
2206
|
-
let
|
|
2207
|
-
e[30] !== r || e[31] !== _ || e[32] !== I || e[33] !== s || e[34] !== n ? (
|
|
2208
|
-
const k =
|
|
2231
|
+
}, e[19] = r, e[20] = f, e[21] = h, e[22] = s, e[23] = n, e[24] = d, e[25] = v, e[26] = w, e[27] = a?.end, e[28] = a?.start, e[29] = T) : T = e[29];
|
|
2232
|
+
let A;
|
|
2233
|
+
e[30] !== r || e[31] !== _ || e[32] !== I || e[33] !== s || e[34] !== n ? (A = _ && !!r && !!n && (n.startsWith("cluster::") || !!s) && I.length > 0, e[30] = r, e[31] = _, e[32] = I, e[33] = s, e[34] = n, e[35] = A) : A = e[35];
|
|
2234
|
+
const k = m > 0 ? m : void 0;
|
|
2209
2235
|
let M;
|
|
2210
|
-
e[36] !==
|
|
2211
|
-
queryKey:
|
|
2212
|
-
queryFn:
|
|
2213
|
-
enabled:
|
|
2236
|
+
e[36] !== P || e[37] !== T || e[38] !== A || e[39] !== k ? (M = {
|
|
2237
|
+
queryKey: P,
|
|
2238
|
+
queryFn: T,
|
|
2239
|
+
enabled: A,
|
|
2214
2240
|
refetchInterval: k,
|
|
2215
2241
|
staleTime: 5e3,
|
|
2216
|
-
placeholderData:
|
|
2217
|
-
}, e[36] =
|
|
2242
|
+
placeholderData: Ut
|
|
2243
|
+
}, e[36] = P, e[37] = T, e[38] = A, e[39] = k, e[40] = M) : M = e[40];
|
|
2218
2244
|
const W = re(M), j = W.data ?? void 0, V = C || W.isLoading, Y = W.error;
|
|
2219
2245
|
let G;
|
|
2220
2246
|
return e[41] !== W.refetch || e[42] !== I || e[43] !== j || e[44] !== V || e[45] !== Y ? (G = {
|
|
@@ -2224,21 +2250,21 @@ const Co = () => {
|
|
|
2224
2250
|
error: Y,
|
|
2225
2251
|
refetch: W.refetch
|
|
2226
2252
|
}, e[41] = W.refetch, e[42] = I, e[43] = j, e[44] = V, e[45] = Y, e[46] = G) : G = e[46], G;
|
|
2227
|
-
},
|
|
2253
|
+
}, Dr = {}, Oo = (t) => {
|
|
2228
2254
|
const {
|
|
2229
2255
|
pluginID: e,
|
|
2230
2256
|
connectionID: r,
|
|
2231
2257
|
resourceKey: n,
|
|
2232
2258
|
resourceID: s,
|
|
2233
2259
|
resourceNamespace: i = "",
|
|
2234
|
-
resourceData: o =
|
|
2260
|
+
resourceData: o = Dr,
|
|
2235
2261
|
metricIDs: u = [],
|
|
2236
2262
|
interval: l = 1e4,
|
|
2237
2263
|
enabled: a = !0
|
|
2238
|
-
} = t, c = ee(e), [p,
|
|
2264
|
+
} = t, c = ee(e), [p, d] = Ie(null), [g, h] = Ie(null), [y, f] = Ie(!1), [v, m] = Ie(null), _ = pe(null), b = Xe(async () => {
|
|
2239
2265
|
if (!(!a || !c || !r || !n || !s))
|
|
2240
2266
|
try {
|
|
2241
|
-
const E = await
|
|
2267
|
+
const E = await ns(c, r, {
|
|
2242
2268
|
resource_key: n,
|
|
2243
2269
|
resource_id: s,
|
|
2244
2270
|
resource_namespace: i,
|
|
@@ -2247,58 +2273,58 @@ const Co = () => {
|
|
|
2247
2273
|
interval: l * 1e6
|
|
2248
2274
|
// ms to nanoseconds for Go time.Duration
|
|
2249
2275
|
});
|
|
2250
|
-
h(E),
|
|
2276
|
+
h(E), f(!0), m(null);
|
|
2251
2277
|
const I = Z(`core/metrics/data/${E}`, (D) => {
|
|
2252
2278
|
const x = D.data;
|
|
2253
2279
|
try {
|
|
2254
|
-
const
|
|
2255
|
-
|
|
2256
|
-
} catch (
|
|
2257
|
-
console.error("Failed to parse metric stream data:",
|
|
2280
|
+
const P = JSON.parse(x);
|
|
2281
|
+
P.results && d(P.results);
|
|
2282
|
+
} catch (P) {
|
|
2283
|
+
console.error("Failed to parse metric stream data:", P);
|
|
2258
2284
|
}
|
|
2259
2285
|
}), w = Z(`core/metrics/error/${E}`, (D) => {
|
|
2260
2286
|
const x = D.data;
|
|
2261
2287
|
try {
|
|
2262
|
-
const
|
|
2263
|
-
|
|
2288
|
+
const P = JSON.parse(x);
|
|
2289
|
+
m(P.error || "Unknown error");
|
|
2264
2290
|
} catch {
|
|
2265
|
-
|
|
2291
|
+
m("Failed to parse metric stream error");
|
|
2266
2292
|
}
|
|
2267
2293
|
});
|
|
2268
2294
|
_.current = () => {
|
|
2269
2295
|
I(), w();
|
|
2270
2296
|
};
|
|
2271
2297
|
} catch (E) {
|
|
2272
|
-
|
|
2298
|
+
m(E instanceof Error ? E.message : String(E));
|
|
2273
2299
|
}
|
|
2274
|
-
}, [c, r, n, s, i, o, u, l, a]), C =
|
|
2300
|
+
}, [c, r, n, s, i, o, u, l, a]), C = Xe(async () => {
|
|
2275
2301
|
if (g)
|
|
2276
2302
|
try {
|
|
2277
|
-
await
|
|
2303
|
+
await Nt(g);
|
|
2278
2304
|
} catch (E) {
|
|
2279
2305
|
console.error("Failed to unsubscribe:", E);
|
|
2280
2306
|
}
|
|
2281
|
-
_.current && (_.current(), _.current = null), h(null),
|
|
2307
|
+
_.current && (_.current(), _.current = null), h(null), f(!1);
|
|
2282
2308
|
}, [g]);
|
|
2283
2309
|
return De(() => () => {
|
|
2284
|
-
g &&
|
|
2310
|
+
g && Nt(g).catch(console.error), _.current && _.current();
|
|
2285
2311
|
}, [g]), {
|
|
2286
2312
|
data: p,
|
|
2287
2313
|
subscriptionID: g,
|
|
2288
|
-
isStreaming:
|
|
2289
|
-
error:
|
|
2290
|
-
start:
|
|
2314
|
+
isStreaming: y,
|
|
2315
|
+
error: v,
|
|
2316
|
+
start: b,
|
|
2291
2317
|
stop: C
|
|
2292
2318
|
};
|
|
2293
2319
|
}, Me = ["networker", "portforward", "all-sessions"];
|
|
2294
|
-
function
|
|
2295
|
-
const t =
|
|
2320
|
+
function Fo() {
|
|
2321
|
+
const t = q(17), {
|
|
2296
2322
|
showSnackbar: e
|
|
2297
|
-
} = we(), r =
|
|
2323
|
+
} = we(), r = Se();
|
|
2298
2324
|
let n;
|
|
2299
2325
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
2300
2326
|
queryKey: [...Me],
|
|
2301
|
-
queryFn:
|
|
2327
|
+
queryFn: Ar,
|
|
2302
2328
|
retry: !1
|
|
2303
2329
|
}, t[0] = n) : n = t[0];
|
|
2304
2330
|
const s = re(n);
|
|
@@ -2308,13 +2334,13 @@ function Ro() {
|
|
|
2308
2334
|
r.invalidateQueries({
|
|
2309
2335
|
queryKey: [...Me]
|
|
2310
2336
|
});
|
|
2311
|
-
}),
|
|
2337
|
+
}), y = Z("core/networker/portforward/closed", () => {
|
|
2312
2338
|
r.invalidateQueries({
|
|
2313
2339
|
queryKey: [...Me]
|
|
2314
2340
|
});
|
|
2315
2341
|
});
|
|
2316
2342
|
return () => {
|
|
2317
|
-
h(),
|
|
2343
|
+
h(), y();
|
|
2318
2344
|
};
|
|
2319
2345
|
}, o = [r], t[1] = r, t[2] = i, t[3] = o) : (i = t[2], o = t[3]), De(i, o);
|
|
2320
2346
|
let u;
|
|
@@ -2330,35 +2356,35 @@ function Ro() {
|
|
|
2330
2356
|
}, t[8] = r, t[9] = c) : c = t[9];
|
|
2331
2357
|
let p;
|
|
2332
2358
|
t[10] !== a || t[11] !== c ? (p = {
|
|
2333
|
-
mutationFn:
|
|
2359
|
+
mutationFn: xr,
|
|
2334
2360
|
onError: a,
|
|
2335
2361
|
onSuccess: c
|
|
2336
2362
|
}, t[10] = a, t[11] = c, t[12] = p) : p = t[12];
|
|
2337
|
-
const
|
|
2363
|
+
const d = oe(p);
|
|
2338
2364
|
let g;
|
|
2339
|
-
return t[13] !== l || t[14] !==
|
|
2365
|
+
return t[13] !== l || t[14] !== d.mutateAsync || t[15] !== s ? (g = {
|
|
2340
2366
|
sessions: s,
|
|
2341
2367
|
activeSessions: l,
|
|
2342
|
-
closeSession:
|
|
2343
|
-
openInBrowser:
|
|
2344
|
-
}, t[13] = l, t[14] =
|
|
2368
|
+
closeSession: d.mutateAsync,
|
|
2369
|
+
openInBrowser: Rr
|
|
2370
|
+
}, t[13] = l, t[14] = d.mutateAsync, t[15] = s, t[16] = g) : g = t[16], g;
|
|
2345
2371
|
}
|
|
2346
|
-
function
|
|
2347
|
-
return
|
|
2372
|
+
function Rr(t) {
|
|
2373
|
+
return Bt(`http://localhost:${t}`);
|
|
2348
2374
|
}
|
|
2349
|
-
async function
|
|
2350
|
-
return
|
|
2375
|
+
async function xr(t) {
|
|
2376
|
+
return Kt(t);
|
|
2351
2377
|
}
|
|
2352
|
-
async function
|
|
2353
|
-
return
|
|
2378
|
+
async function Ar() {
|
|
2379
|
+
return ss().catch(Tr);
|
|
2354
2380
|
}
|
|
2355
|
-
function
|
|
2356
|
-
if (
|
|
2381
|
+
function Tr(t) {
|
|
2382
|
+
if (be(t).detail.includes("not found"))
|
|
2357
2383
|
return [];
|
|
2358
2384
|
throw t;
|
|
2359
2385
|
}
|
|
2360
|
-
function
|
|
2361
|
-
const e =
|
|
2386
|
+
function ko(t) {
|
|
2387
|
+
const e = q(36), {
|
|
2362
2388
|
pluginID: r,
|
|
2363
2389
|
connectionID: n,
|
|
2364
2390
|
resourceID: s
|
|
@@ -2367,13 +2393,13 @@ function xo(t) {
|
|
|
2367
2393
|
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];
|
|
2368
2394
|
const u = o, {
|
|
2369
2395
|
showSnackbar: l
|
|
2370
|
-
} = we(), a =
|
|
2396
|
+
} = we(), a = Se();
|
|
2371
2397
|
let c;
|
|
2372
|
-
e[4] !== n || e[5] !== i || e[6] !== s || e[7] !== l ? (c = async () =>
|
|
2398
|
+
e[4] !== n || e[5] !== i || e[6] !== s || e[7] !== l ? (c = async () => rs(i, n, Ps.createFrom({
|
|
2373
2399
|
resource_id: s,
|
|
2374
2400
|
connection_id: n
|
|
2375
2401
|
})).catch((I) => {
|
|
2376
|
-
const w =
|
|
2402
|
+
const w = be(I);
|
|
2377
2403
|
return w.detail.includes("not found") ? [] : (l({
|
|
2378
2404
|
message: "Failed to fetch port forward sessions",
|
|
2379
2405
|
status: "error",
|
|
@@ -2386,12 +2412,12 @@ function xo(t) {
|
|
|
2386
2412
|
queryFn: c,
|
|
2387
2413
|
retry: !1
|
|
2388
2414
|
}, e[9] = u, e[10] = c, e[11] = p) : p = e[11];
|
|
2389
|
-
const
|
|
2415
|
+
const d = re(p);
|
|
2390
2416
|
let g;
|
|
2391
2417
|
e[12] !== n || e[13] !== i ? (g = async (I) => {
|
|
2392
2418
|
const {
|
|
2393
2419
|
opts: w
|
|
2394
|
-
} = I, D =
|
|
2420
|
+
} = I, D = Os.createFrom({
|
|
2395
2421
|
local_port: w.localPort || 0,
|
|
2396
2422
|
remote_port: w.remotePort,
|
|
2397
2423
|
protocol: w.protocol || "TCP",
|
|
@@ -2405,30 +2431,30 @@ function xo(t) {
|
|
|
2405
2431
|
},
|
|
2406
2432
|
labels: w.labels ?? {},
|
|
2407
2433
|
params: w.parameters ?? {}
|
|
2408
|
-
}), x = await
|
|
2434
|
+
}), x = await os(i, n, D);
|
|
2409
2435
|
if (!x)
|
|
2410
2436
|
throw new Error("Failed to start port forwarding: null response");
|
|
2411
|
-
return w.openInBrowser &&
|
|
2437
|
+
return w.openInBrowser && Bt(`http://localhost:${x.local_port}`), x;
|
|
2412
2438
|
}, e[12] = n, e[13] = i, e[14] = g) : g = e[14];
|
|
2413
2439
|
let h;
|
|
2414
2440
|
e[15] !== l ? (h = le(l, "Failed to start port forwarding session"), e[15] = l, e[16] = h) : h = e[16];
|
|
2415
|
-
let
|
|
2416
|
-
e[17] !== a || e[18] !== u ? (
|
|
2441
|
+
let y;
|
|
2442
|
+
e[17] !== a || e[18] !== u ? (y = async () => {
|
|
2417
2443
|
await Promise.all([a.invalidateQueries({
|
|
2418
2444
|
queryKey: u
|
|
2419
2445
|
}), a.invalidateQueries({
|
|
2420
2446
|
queryKey: [...Me]
|
|
2421
2447
|
})]);
|
|
2422
|
-
}, e[17] = a, e[18] = u, e[19] =
|
|
2423
|
-
let
|
|
2424
|
-
e[20] !== g || e[21] !== h || e[22] !==
|
|
2448
|
+
}, e[17] = a, e[18] = u, e[19] = y) : y = e[19];
|
|
2449
|
+
let f;
|
|
2450
|
+
e[20] !== g || e[21] !== h || e[22] !== y ? (f = {
|
|
2425
2451
|
mutationFn: g,
|
|
2426
2452
|
onError: h,
|
|
2427
|
-
onSuccess:
|
|
2428
|
-
}, e[20] = g, e[21] = h, e[22] =
|
|
2429
|
-
const
|
|
2430
|
-
let
|
|
2431
|
-
e[24] !== l ? (
|
|
2453
|
+
onSuccess: y
|
|
2454
|
+
}, e[20] = g, e[21] = h, e[22] = y, e[23] = f) : f = e[23];
|
|
2455
|
+
const v = oe(f);
|
|
2456
|
+
let m;
|
|
2457
|
+
e[24] !== l ? (m = le(l, "Failed to close port forwarding session"), e[24] = l, e[25] = m) : m = e[25];
|
|
2432
2458
|
let _;
|
|
2433
2459
|
e[26] !== a || e[27] !== u ? (_ = async () => {
|
|
2434
2460
|
await Promise.all([a.invalidateQueries({
|
|
@@ -2437,37 +2463,37 @@ function xo(t) {
|
|
|
2437
2463
|
queryKey: [...Me]
|
|
2438
2464
|
})]);
|
|
2439
2465
|
}, e[26] = a, e[27] = u, e[28] = _) : _ = e[28];
|
|
2440
|
-
let
|
|
2441
|
-
e[29] !==
|
|
2442
|
-
mutationFn:
|
|
2443
|
-
onError:
|
|
2466
|
+
let b;
|
|
2467
|
+
e[29] !== m || e[30] !== _ ? (b = {
|
|
2468
|
+
mutationFn: Nr,
|
|
2469
|
+
onError: m,
|
|
2444
2470
|
onSuccess: _
|
|
2445
|
-
}, e[29] =
|
|
2446
|
-
const C = oe(
|
|
2471
|
+
}, e[29] = m, e[30] = _, e[31] = b) : b = e[31];
|
|
2472
|
+
const C = oe(b);
|
|
2447
2473
|
let E;
|
|
2448
|
-
return e[32] !== C.mutateAsync || e[33] !==
|
|
2449
|
-
sessions:
|
|
2450
|
-
forward:
|
|
2474
|
+
return e[32] !== C.mutateAsync || e[33] !== v.mutateAsync || e[34] !== d ? (E = {
|
|
2475
|
+
sessions: d,
|
|
2476
|
+
forward: v.mutateAsync,
|
|
2451
2477
|
close: C.mutateAsync
|
|
2452
|
-
}, e[32] = C.mutateAsync, e[33] =
|
|
2478
|
+
}, e[32] = C.mutateAsync, e[33] = v.mutateAsync, e[34] = d, e[35] = E) : E = e[35], E;
|
|
2453
2479
|
}
|
|
2454
|
-
async function
|
|
2480
|
+
async function Nr(t) {
|
|
2455
2481
|
const {
|
|
2456
2482
|
opts: e
|
|
2457
2483
|
} = t;
|
|
2458
|
-
return
|
|
2484
|
+
return Kt(e.sessionID);
|
|
2459
2485
|
}
|
|
2460
|
-
const
|
|
2461
|
-
const t =
|
|
2486
|
+
const Lo = () => {
|
|
2487
|
+
const t = L.useContext(Gs);
|
|
2462
2488
|
if (!t)
|
|
2463
2489
|
throw new Error("useConfirmationModal must be used within a ConfirmationModalProvider");
|
|
2464
2490
|
return t;
|
|
2465
|
-
},
|
|
2491
|
+
}, _t = {
|
|
2466
2492
|
scope: (t, e, r) => [t, e, r],
|
|
2467
2493
|
list: (t, e, r, n = []) => [t, e, r, n, "list"],
|
|
2468
2494
|
resource: (t, e, r, n, s = "") => [t, e, r, s, n]
|
|
2469
|
-
},
|
|
2470
|
-
const e =
|
|
2495
|
+
}, $o = (t) => {
|
|
2496
|
+
const e = q(63), {
|
|
2471
2497
|
pluginID: r,
|
|
2472
2498
|
connectionID: n,
|
|
2473
2499
|
resourceKey: s,
|
|
@@ -2475,88 +2501,88 @@ const To = () => {
|
|
|
2475
2501
|
namespace: o,
|
|
2476
2502
|
enabled: u
|
|
2477
2503
|
} = t, l = o === void 0 ? "" : o, a = u === void 0 ? !0 : u, c = ee(r), p = a && !!s && !!i;
|
|
2478
|
-
let
|
|
2479
|
-
e[0] !== n || e[1] !== c || e[2] !== p ? (
|
|
2504
|
+
let d;
|
|
2505
|
+
e[0] !== n || e[1] !== c || e[2] !== p ? (d = {
|
|
2480
2506
|
pluginID: c,
|
|
2481
2507
|
connectionID: n,
|
|
2482
2508
|
enabled: p
|
|
2483
|
-
}, e[0] = n, e[1] = c, e[2] = p, e[3] =
|
|
2484
|
-
const g = ge(
|
|
2485
|
-
showSnackbar:
|
|
2509
|
+
}, e[0] = n, e[1] = c, e[2] = p, e[3] = d) : d = e[3];
|
|
2510
|
+
const g = ge(d), h = Ce(c, n), y = Se(), {
|
|
2511
|
+
showSnackbar: f
|
|
2486
2512
|
} = we();
|
|
2487
|
-
let
|
|
2488
|
-
e[4] !== n || e[5] !== l || e[6] !== c || e[7] !== i || e[8] !== s ? (
|
|
2489
|
-
const
|
|
2513
|
+
let v;
|
|
2514
|
+
e[4] !== n || e[5] !== l || e[6] !== c || e[7] !== i || e[8] !== s ? (v = _t.resource(c, n, s, i, l), e[4] = n, e[5] = l, e[6] = c, e[7] = i, e[8] = s, e[9] = v) : v = e[9];
|
|
2515
|
+
const m = v;
|
|
2490
2516
|
let _;
|
|
2491
|
-
e[10] !== n || e[11] !== l || e[12] !== c || e[13] !== i || e[14] !== s ? (_ = async (G) => (await
|
|
2517
|
+
e[10] !== n || e[11] !== l || e[12] !== c || e[13] !== i || e[14] !== s ? (_ = async (G) => (await Oe(c, n), Gt(c, n, s, Ht.createFrom({
|
|
2492
2518
|
input: G.input,
|
|
2493
2519
|
id: i,
|
|
2494
2520
|
namespace: l
|
|
2495
2521
|
}))), e[10] = n, e[11] = l, e[12] = c, e[13] = i, e[14] = s, e[15] = _) : _ = e[15];
|
|
2496
|
-
let
|
|
2497
|
-
e[16] !==
|
|
2498
|
-
|
|
2499
|
-
queryKey:
|
|
2522
|
+
let b;
|
|
2523
|
+
e[16] !== y || e[17] !== m || e[18] !== i || e[19] !== f ? (b = async () => {
|
|
2524
|
+
f(`Resource ${i} updated`, "success"), await y.invalidateQueries({
|
|
2525
|
+
queryKey: m
|
|
2500
2526
|
});
|
|
2501
|
-
}, e[16] =
|
|
2527
|
+
}, e[16] = y, e[17] = m, e[18] = i, e[19] = f, e[20] = b) : b = e[20];
|
|
2502
2528
|
const C = `Failed to update resource ${i}`;
|
|
2503
2529
|
let E;
|
|
2504
|
-
e[21] !==
|
|
2530
|
+
e[21] !== f || e[22] !== C ? (E = le(f, C), e[21] = f, e[22] = C, e[23] = E) : E = e[23];
|
|
2505
2531
|
let I;
|
|
2506
|
-
e[24] !== _ || e[25] !==
|
|
2532
|
+
e[24] !== _ || e[25] !== b || e[26] !== E ? (I = {
|
|
2507
2533
|
mutationFn: _,
|
|
2508
|
-
onSuccess:
|
|
2534
|
+
onSuccess: b,
|
|
2509
2535
|
onError: E
|
|
2510
|
-
}, e[24] = _, e[25] =
|
|
2536
|
+
}, e[24] = _, e[25] = b, e[26] = E, e[27] = I) : I = e[27];
|
|
2511
2537
|
const {
|
|
2512
2538
|
mutateAsync: w
|
|
2513
2539
|
} = oe(I);
|
|
2514
2540
|
let D;
|
|
2515
2541
|
e[28] !== n || e[29] !== l || e[30] !== c || e[31] !== i || e[32] !== s ? (D = async (G) => {
|
|
2516
2542
|
const J = G === void 0 ? {} : G;
|
|
2517
|
-
return await
|
|
2543
|
+
return await Oe(c, n), Qt(c, n, s, Jt.createFrom({
|
|
2518
2544
|
id: i,
|
|
2519
2545
|
namespace: l,
|
|
2520
2546
|
gracePeriodSeconds: J.gracePeriodSeconds
|
|
2521
2547
|
}));
|
|
2522
2548
|
}, e[28] = n, e[29] = l, e[30] = c, e[31] = i, e[32] = s, e[33] = D) : D = e[33];
|
|
2523
2549
|
let x;
|
|
2524
|
-
e[34] !==
|
|
2525
|
-
|
|
2526
|
-
queryKey:
|
|
2550
|
+
e[34] !== y || e[35] !== m || e[36] !== i || e[37] !== f ? (x = async () => {
|
|
2551
|
+
f(`Resource ${i} deleted`, "success"), await y.invalidateQueries({
|
|
2552
|
+
queryKey: m
|
|
2527
2553
|
});
|
|
2528
|
-
}, e[34] =
|
|
2529
|
-
const
|
|
2530
|
-
let A;
|
|
2531
|
-
e[39] !== d || e[40] !== O ? (A = le(d, O), e[39] = d, e[40] = O, e[41] = A) : A = e[41];
|
|
2554
|
+
}, e[34] = y, e[35] = m, e[36] = i, e[37] = f, e[38] = x) : x = e[38];
|
|
2555
|
+
const P = `Failed to delete resource ${i}`;
|
|
2532
2556
|
let T;
|
|
2533
|
-
e[
|
|
2557
|
+
e[39] !== f || e[40] !== P ? (T = le(f, P), e[39] = f, e[40] = P, e[41] = T) : T = e[41];
|
|
2558
|
+
let A;
|
|
2559
|
+
e[42] !== D || e[43] !== x || e[44] !== T ? (A = {
|
|
2534
2560
|
mutationFn: D,
|
|
2535
2561
|
onSuccess: x,
|
|
2536
|
-
onError:
|
|
2537
|
-
}, e[42] = D, e[43] = x, e[44] =
|
|
2562
|
+
onError: T
|
|
2563
|
+
}, e[42] = D, e[43] = x, e[44] = T, e[45] = A) : A = e[45];
|
|
2538
2564
|
const {
|
|
2539
2565
|
mutateAsync: k
|
|
2540
|
-
} = oe(
|
|
2566
|
+
} = oe(A);
|
|
2541
2567
|
let M;
|
|
2542
2568
|
e[46] !== n || e[47] !== a || e[48] !== h || e[49] !== l || e[50] !== c || e[51] !== g || e[52] !== i || e[53] !== s ? (M = a && s && i && g.phase === "connected" ? (G) => {
|
|
2543
2569
|
const {
|
|
2544
2570
|
signal: J,
|
|
2545
2571
|
queryKey: te
|
|
2546
2572
|
} = G;
|
|
2547
|
-
return h(te, J, () =>
|
|
2573
|
+
return h(te, J, () => is(c, n, s, Fs.createFrom({
|
|
2548
2574
|
id: i,
|
|
2549
2575
|
namespace: l
|
|
2550
2576
|
})));
|
|
2551
2577
|
} : Ee, e[46] = n, e[47] = a, e[48] = h, e[49] = l, e[50] = c, e[51] = g, e[52] = i, e[53] = s, e[54] = M) : M = e[54];
|
|
2552
2578
|
const W = a && !!s && !!i && g.phase === "connected";
|
|
2553
2579
|
let j;
|
|
2554
|
-
e[55] !==
|
|
2555
|
-
queryKey:
|
|
2580
|
+
e[55] !== m || e[56] !== M || e[57] !== W ? (j = {
|
|
2581
|
+
queryKey: m,
|
|
2556
2582
|
queryFn: M,
|
|
2557
2583
|
retry: !1,
|
|
2558
2584
|
enabled: W
|
|
2559
|
-
}, e[55] =
|
|
2585
|
+
}, e[55] = m, e[56] = M, e[57] = W, e[58] = j) : j = e[58];
|
|
2560
2586
|
const V = re(j);
|
|
2561
2587
|
let Y;
|
|
2562
2588
|
return e[59] !== k || e[60] !== V || e[61] !== w ? (Y = {
|
|
@@ -2564,13 +2590,13 @@ const To = () => {
|
|
|
2564
2590
|
update: w,
|
|
2565
2591
|
remove: k
|
|
2566
2592
|
}, e[59] = k, e[60] = V, e[61] = w, e[62] = Y) : Y = e[62], Y;
|
|
2567
|
-
},
|
|
2568
|
-
const e =
|
|
2593
|
+
}, qo = (t) => {
|
|
2594
|
+
const e = q(11);
|
|
2569
2595
|
let r;
|
|
2570
2596
|
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];
|
|
2571
2597
|
const n = r;
|
|
2572
2598
|
let s;
|
|
2573
|
-
e[4] !== t ? (s = async () =>
|
|
2599
|
+
e[4] !== t ? (s = async () => cs(t), e[4] = t, e[5] = s) : s = e[5];
|
|
2574
2600
|
let i;
|
|
2575
2601
|
e[6] !== n || e[7] !== s ? (i = {
|
|
2576
2602
|
queryKey: n,
|
|
@@ -2581,8 +2607,8 @@ const To = () => {
|
|
|
2581
2607
|
return e[9] !== o ? (u = {
|
|
2582
2608
|
component: o
|
|
2583
2609
|
}, e[9] = o, e[10] = u) : u = e[10], u;
|
|
2584
|
-
},
|
|
2585
|
-
const e =
|
|
2610
|
+
}, Mo = (t) => {
|
|
2611
|
+
const e = q(19), {
|
|
2586
2612
|
pluginID: r,
|
|
2587
2613
|
connectionID: n,
|
|
2588
2614
|
enabled: s
|
|
@@ -2597,29 +2623,29 @@ const To = () => {
|
|
|
2597
2623
|
let c;
|
|
2598
2624
|
e[4] !== n || e[5] !== o ? (c = [o, "resource_groups", "list", n], e[4] = n, e[5] = o, e[6] = c) : c = e[6];
|
|
2599
2625
|
const p = c;
|
|
2600
|
-
let
|
|
2601
|
-
e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (
|
|
2626
|
+
let d;
|
|
2627
|
+
e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (d = i && l.phase === "connected" ? (v) => {
|
|
2602
2628
|
const {
|
|
2603
|
-
signal:
|
|
2629
|
+
signal: m,
|
|
2604
2630
|
queryKey: _
|
|
2605
|
-
} =
|
|
2606
|
-
return a(_,
|
|
2607
|
-
} : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] =
|
|
2631
|
+
} = v;
|
|
2632
|
+
return a(_, m, () => as(o, n));
|
|
2633
|
+
} : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] = d) : d = e[12];
|
|
2608
2634
|
const g = i && l.phase === "connected";
|
|
2609
2635
|
let h;
|
|
2610
|
-
e[13] !== p || e[14] !==
|
|
2636
|
+
e[13] !== p || e[14] !== d || e[15] !== g ? (h = {
|
|
2611
2637
|
queryKey: p,
|
|
2612
|
-
queryFn:
|
|
2638
|
+
queryFn: d,
|
|
2613
2639
|
enabled: g,
|
|
2614
2640
|
retry: !1
|
|
2615
|
-
}, e[13] = p, e[14] =
|
|
2616
|
-
const
|
|
2617
|
-
let
|
|
2618
|
-
return e[17] !==
|
|
2619
|
-
groups:
|
|
2620
|
-
}, e[17] =
|
|
2621
|
-
},
|
|
2622
|
-
const e =
|
|
2641
|
+
}, e[13] = p, e[14] = d, e[15] = g, e[16] = h) : h = e[16];
|
|
2642
|
+
const y = re(h);
|
|
2643
|
+
let f;
|
|
2644
|
+
return e[17] !== y ? (f = {
|
|
2645
|
+
groups: y
|
|
2646
|
+
}, e[17] = y, e[18] = f) : f = e[18], f;
|
|
2647
|
+
}, Uo = (t) => {
|
|
2648
|
+
const e = q(24), {
|
|
2623
2649
|
pluginID: r,
|
|
2624
2650
|
connectionID: n,
|
|
2625
2651
|
searches: s,
|
|
@@ -2632,20 +2658,20 @@ const To = () => {
|
|
|
2632
2658
|
enabled: l
|
|
2633
2659
|
}, e[0] = n, e[1] = u, e[2] = l, e[3] = a) : a = e[3];
|
|
2634
2660
|
const c = ge(a), p = Ce(u, n);
|
|
2635
|
-
let
|
|
2636
|
-
e[4] !== n || e[5] !== u ? (
|
|
2637
|
-
const g =
|
|
2661
|
+
let d;
|
|
2662
|
+
e[4] !== n || e[5] !== u ? (d = (v) => [u, n, v.key, v.namespaces, "list"], e[4] = n, e[5] = u, e[6] = d) : d = e[6];
|
|
2663
|
+
const g = d;
|
|
2638
2664
|
let h;
|
|
2639
2665
|
if (e[7] !== n || e[8] !== o || e[9] !== g || e[10] !== p || e[11] !== u || e[12] !== c || e[13] !== s) {
|
|
2640
|
-
let
|
|
2641
|
-
e[15] !== n || e[16] !== o || e[17] !== g || e[18] !== p || e[19] !== u || e[20] !== c ? (
|
|
2642
|
-
queryKey: g(
|
|
2643
|
-
queryFn: o &&
|
|
2666
|
+
let v;
|
|
2667
|
+
e[15] !== n || e[16] !== o || e[17] !== g || e[18] !== p || e[19] !== u || e[20] !== c ? (v = (m) => ({
|
|
2668
|
+
queryKey: g(m),
|
|
2669
|
+
queryFn: o && m.key && c.phase === "connected" ? (_) => {
|
|
2644
2670
|
const {
|
|
2645
|
-
signal:
|
|
2671
|
+
signal: b,
|
|
2646
2672
|
queryKey: C
|
|
2647
2673
|
} = _;
|
|
2648
|
-
return p(C,
|
|
2674
|
+
return p(C, b, () => jt(u, n, m.key, Vt.createFrom({
|
|
2649
2675
|
order: [{
|
|
2650
2676
|
field: "name",
|
|
2651
2677
|
descending: !1
|
|
@@ -2654,20 +2680,20 @@ const To = () => {
|
|
|
2654
2680
|
page: 1,
|
|
2655
2681
|
pageSize: 200
|
|
2656
2682
|
},
|
|
2657
|
-
namespaces:
|
|
2658
|
-
}))).then((E) => E ? (console.log(E.result), E.result &&
|
|
2683
|
+
namespaces: m.namespaces
|
|
2684
|
+
}))).then((E) => E ? (console.log(E.result), E.result && m.postFilter ? Object.values(E.result).filter(m.postFilter) : Object.values(E.result || {})) : []);
|
|
2659
2685
|
} : Ee,
|
|
2660
2686
|
retry: !1,
|
|
2661
|
-
enabled: o && !!
|
|
2662
|
-
}), e[15] = n, e[16] = o, e[17] = g, e[18] = p, e[19] = u, e[20] = c, e[21] =
|
|
2687
|
+
enabled: o && !!m.key && c.phase === "connected"
|
|
2688
|
+
}), e[15] = n, e[16] = o, e[17] = g, e[18] = p, e[19] = u, e[20] = c, e[21] = v) : v = e[21], h = s.map(v), e[7] = n, e[8] = o, e[9] = g, e[10] = p, e[11] = u, e[12] = c, e[13] = s, e[14] = h;
|
|
2663
2689
|
} else
|
|
2664
2690
|
h = e[14];
|
|
2665
|
-
let
|
|
2666
|
-
return e[22] !== h ? (
|
|
2691
|
+
let y;
|
|
2692
|
+
return e[22] !== h ? (y = {
|
|
2667
2693
|
queries: h
|
|
2668
|
-
}, e[22] = h, e[23] =
|
|
2669
|
-
},
|
|
2670
|
-
const e =
|
|
2694
|
+
}, e[22] = h, e[23] = y) : y = e[23], Pn(y);
|
|
2695
|
+
}, Wo = (t) => {
|
|
2696
|
+
const e = q(11), {
|
|
2671
2697
|
pluginID: r,
|
|
2672
2698
|
resourceKey: n
|
|
2673
2699
|
} = t, s = ee(r);
|
|
@@ -2675,7 +2701,7 @@ const To = () => {
|
|
|
2675
2701
|
e[0] !== s || e[1] !== n ? (i = [s, "resources", n], e[0] = s, e[1] = n, e[2] = i) : i = e[2];
|
|
2676
2702
|
const o = i;
|
|
2677
2703
|
let u;
|
|
2678
|
-
e[3] !== s || e[4] !== n ? (u = async () =>
|
|
2704
|
+
e[3] !== s || e[4] !== n ? (u = async () => ls(s, n), e[3] = s, e[4] = n, e[5] = u) : u = e[5];
|
|
2679
2705
|
let l;
|
|
2680
2706
|
e[6] !== o || e[7] !== u ? (l = {
|
|
2681
2707
|
queryKey: o,
|
|
@@ -2687,8 +2713,8 @@ const To = () => {
|
|
|
2687
2713
|
return e[9] !== a ? (c = {
|
|
2688
2714
|
resourceType: a
|
|
2689
2715
|
}, e[9] = a, e[10] = c) : c = e[10], c;
|
|
2690
|
-
},
|
|
2691
|
-
const e =
|
|
2716
|
+
}, Ko = (t) => {
|
|
2717
|
+
const e = q(19), {
|
|
2692
2718
|
pluginID: r,
|
|
2693
2719
|
connectionID: n,
|
|
2694
2720
|
enabled: s
|
|
@@ -2703,260 +2729,260 @@ const To = () => {
|
|
|
2703
2729
|
let c;
|
|
2704
2730
|
e[4] !== n || e[5] !== o ? (c = [o, "resources", "list", n], e[4] = n, e[5] = o, e[6] = c) : c = e[6];
|
|
2705
2731
|
const p = c;
|
|
2706
|
-
let
|
|
2707
|
-
e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (
|
|
2732
|
+
let d;
|
|
2733
|
+
e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (d = i && l.phase === "connected" ? (v) => {
|
|
2708
2734
|
const {
|
|
2709
|
-
signal:
|
|
2735
|
+
signal: m,
|
|
2710
2736
|
queryKey: _
|
|
2711
|
-
} =
|
|
2712
|
-
return a(_,
|
|
2713
|
-
} : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] =
|
|
2737
|
+
} = v;
|
|
2738
|
+
return a(_, m, () => us(o, n));
|
|
2739
|
+
} : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] = d) : d = e[12];
|
|
2714
2740
|
const g = i && l.phase === "connected";
|
|
2715
2741
|
let h;
|
|
2716
|
-
e[13] !== p || e[14] !==
|
|
2742
|
+
e[13] !== p || e[14] !== d || e[15] !== g ? (h = {
|
|
2717
2743
|
queryKey: p,
|
|
2718
|
-
queryFn:
|
|
2744
|
+
queryFn: d,
|
|
2719
2745
|
enabled: g,
|
|
2720
2746
|
retry: !1
|
|
2721
|
-
}, e[13] = p, e[14] =
|
|
2722
|
-
const
|
|
2723
|
-
let
|
|
2724
|
-
return e[17] !==
|
|
2725
|
-
types:
|
|
2726
|
-
}, e[17] =
|
|
2747
|
+
}, e[13] = p, e[14] = d, e[15] = g, e[16] = h) : h = e[16];
|
|
2748
|
+
const y = re(h);
|
|
2749
|
+
let f;
|
|
2750
|
+
return e[17] !== y ? (f = {
|
|
2751
|
+
types: y
|
|
2752
|
+
}, e[17] = y, e[18] = f) : f = e[18], f;
|
|
2727
2753
|
};
|
|
2728
|
-
var
|
|
2729
|
-
function
|
|
2754
|
+
var Ye = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2755
|
+
function Pr(t) {
|
|
2730
2756
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
2731
2757
|
}
|
|
2732
|
-
var
|
|
2733
|
-
function
|
|
2734
|
-
if (
|
|
2735
|
-
|
|
2736
|
-
var t = "Expected a function", e = "__lodash_hash_undefined__", r = "[object Function]", n = "[object GeneratorFunction]", s = "[object Symbol]", i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, o = /^\w*$/, u = /^\./, l = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, a = /[\\^$.*+?()[\]{}|]/g, c = /\\(\\)?/g, p = /^\[object .+?Constructor\]$/,
|
|
2737
|
-
function
|
|
2738
|
-
return
|
|
2758
|
+
var pt, qt;
|
|
2759
|
+
function Or() {
|
|
2760
|
+
if (qt) return pt;
|
|
2761
|
+
qt = 1;
|
|
2762
|
+
var t = "Expected a function", e = "__lodash_hash_undefined__", r = "[object Function]", n = "[object GeneratorFunction]", s = "[object Symbol]", i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, o = /^\w*$/, u = /^\./, l = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, a = /[\\^$.*+?()[\]{}|]/g, c = /\\(\\)?/g, p = /^\[object .+?Constructor\]$/, d = typeof Ye == "object" && Ye && Ye.Object === Object && Ye, g = typeof self == "object" && self && self.Object === Object && self, h = d || g || Function("return this")();
|
|
2763
|
+
function y(S, R) {
|
|
2764
|
+
return S?.[R];
|
|
2739
2765
|
}
|
|
2740
|
-
function
|
|
2766
|
+
function f(S) {
|
|
2741
2767
|
var R = !1;
|
|
2742
|
-
if (
|
|
2768
|
+
if (S != null && typeof S.toString != "function")
|
|
2743
2769
|
try {
|
|
2744
|
-
R = !!(
|
|
2770
|
+
R = !!(S + "");
|
|
2745
2771
|
} catch {
|
|
2746
2772
|
}
|
|
2747
2773
|
return R;
|
|
2748
2774
|
}
|
|
2749
|
-
var
|
|
2750
|
-
var
|
|
2751
|
-
return
|
|
2752
|
-
})(), E =
|
|
2775
|
+
var v = Array.prototype, m = Function.prototype, _ = Object.prototype, b = h["__core-js_shared__"], C = (function() {
|
|
2776
|
+
var S = /[^.]+$/.exec(b && b.keys && b.keys.IE_PROTO || "");
|
|
2777
|
+
return S ? "Symbol(src)_1." + S : "";
|
|
2778
|
+
})(), E = m.toString, I = _.hasOwnProperty, w = _.toString, D = RegExp(
|
|
2753
2779
|
"^" + E.call(I).replace(a, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2754
|
-
), x = h.Symbol,
|
|
2755
|
-
function W(
|
|
2756
|
-
var R = -1,
|
|
2757
|
-
for (this.clear(); ++R <
|
|
2758
|
-
var X =
|
|
2780
|
+
), x = h.Symbol, P = v.splice, T = Ge(h, "Map"), A = Ge(Object, "create"), k = x ? x.prototype : void 0, M = k ? k.toString : void 0;
|
|
2781
|
+
function W(S) {
|
|
2782
|
+
var R = -1, O = S ? S.length : 0;
|
|
2783
|
+
for (this.clear(); ++R < O; ) {
|
|
2784
|
+
var X = S[R];
|
|
2759
2785
|
this.set(X[0], X[1]);
|
|
2760
2786
|
}
|
|
2761
2787
|
}
|
|
2762
2788
|
function j() {
|
|
2763
|
-
this.__data__ =
|
|
2789
|
+
this.__data__ = A ? A(null) : {};
|
|
2764
2790
|
}
|
|
2765
|
-
function V(
|
|
2766
|
-
return this.has(
|
|
2791
|
+
function V(S) {
|
|
2792
|
+
return this.has(S) && delete this.__data__[S];
|
|
2767
2793
|
}
|
|
2768
|
-
function Y(
|
|
2794
|
+
function Y(S) {
|
|
2769
2795
|
var R = this.__data__;
|
|
2770
|
-
if (
|
|
2771
|
-
var
|
|
2772
|
-
return
|
|
2796
|
+
if (A) {
|
|
2797
|
+
var O = R[S];
|
|
2798
|
+
return O === e ? void 0 : O;
|
|
2773
2799
|
}
|
|
2774
|
-
return I.call(R,
|
|
2800
|
+
return I.call(R, S) ? R[S] : void 0;
|
|
2775
2801
|
}
|
|
2776
|
-
function G(
|
|
2802
|
+
function G(S) {
|
|
2777
2803
|
var R = this.__data__;
|
|
2778
|
-
return
|
|
2804
|
+
return A ? R[S] !== void 0 : I.call(R, S);
|
|
2779
2805
|
}
|
|
2780
|
-
function J(
|
|
2781
|
-
var
|
|
2782
|
-
return
|
|
2806
|
+
function J(S, R) {
|
|
2807
|
+
var O = this.__data__;
|
|
2808
|
+
return O[S] = A && R === void 0 ? e : R, this;
|
|
2783
2809
|
}
|
|
2784
2810
|
W.prototype.clear = j, W.prototype.delete = V, W.prototype.get = Y, W.prototype.has = G, W.prototype.set = J;
|
|
2785
|
-
function te(
|
|
2786
|
-
var R = -1,
|
|
2787
|
-
for (this.clear(); ++R <
|
|
2788
|
-
var X =
|
|
2811
|
+
function te(S) {
|
|
2812
|
+
var R = -1, O = S ? S.length : 0;
|
|
2813
|
+
for (this.clear(); ++R < O; ) {
|
|
2814
|
+
var X = S[R];
|
|
2789
2815
|
this.set(X[0], X[1]);
|
|
2790
2816
|
}
|
|
2791
2817
|
}
|
|
2792
2818
|
function ye() {
|
|
2793
2819
|
this.__data__ = [];
|
|
2794
2820
|
}
|
|
2795
|
-
function U(
|
|
2796
|
-
var R = this.__data__,
|
|
2797
|
-
if (
|
|
2821
|
+
function U(S) {
|
|
2822
|
+
var R = this.__data__, O = me(R, S);
|
|
2823
|
+
if (O < 0)
|
|
2798
2824
|
return !1;
|
|
2799
2825
|
var X = R.length - 1;
|
|
2800
|
-
return
|
|
2826
|
+
return O == X ? R.pop() : P.call(R, O, 1), !0;
|
|
2801
2827
|
}
|
|
2802
|
-
function B(
|
|
2803
|
-
var R = this.__data__,
|
|
2804
|
-
return
|
|
2828
|
+
function B(S) {
|
|
2829
|
+
var R = this.__data__, O = me(R, S);
|
|
2830
|
+
return O < 0 ? void 0 : R[O][1];
|
|
2805
2831
|
}
|
|
2806
|
-
function K(
|
|
2807
|
-
return me(this.__data__,
|
|
2832
|
+
function K(S) {
|
|
2833
|
+
return me(this.__data__, S) > -1;
|
|
2808
2834
|
}
|
|
2809
|
-
function z(
|
|
2810
|
-
var
|
|
2811
|
-
return X < 0 ?
|
|
2835
|
+
function z(S, R) {
|
|
2836
|
+
var O = this.__data__, X = me(O, S);
|
|
2837
|
+
return X < 0 ? O.push([S, R]) : O[X][1] = R, this;
|
|
2812
2838
|
}
|
|
2813
2839
|
te.prototype.clear = ye, te.prototype.delete = U, te.prototype.get = B, te.prototype.has = K, te.prototype.set = z;
|
|
2814
|
-
function
|
|
2815
|
-
var R = -1,
|
|
2816
|
-
for (this.clear(); ++R <
|
|
2817
|
-
var X =
|
|
2840
|
+
function $(S) {
|
|
2841
|
+
var R = -1, O = S ? S.length : 0;
|
|
2842
|
+
for (this.clear(); ++R < O; ) {
|
|
2843
|
+
var X = S[R];
|
|
2818
2844
|
this.set(X[0], X[1]);
|
|
2819
2845
|
}
|
|
2820
2846
|
}
|
|
2821
2847
|
function F() {
|
|
2822
2848
|
this.__data__ = {
|
|
2823
2849
|
hash: new W(),
|
|
2824
|
-
map: new (
|
|
2850
|
+
map: new (T || te)(),
|
|
2825
2851
|
string: new W()
|
|
2826
2852
|
};
|
|
2827
2853
|
}
|
|
2828
|
-
function H(
|
|
2829
|
-
return Le(this,
|
|
2854
|
+
function H(S) {
|
|
2855
|
+
return Le(this, S).delete(S);
|
|
2830
2856
|
}
|
|
2831
|
-
function ue(
|
|
2832
|
-
return Le(this,
|
|
2857
|
+
function ue(S) {
|
|
2858
|
+
return Le(this, S).get(S);
|
|
2833
2859
|
}
|
|
2834
|
-
function de(
|
|
2835
|
-
return Le(this,
|
|
2860
|
+
function de(S) {
|
|
2861
|
+
return Le(this, S).has(S);
|
|
2836
2862
|
}
|
|
2837
|
-
function Re(
|
|
2838
|
-
return Le(this,
|
|
2863
|
+
function Re(S, R) {
|
|
2864
|
+
return Le(this, S).set(S, R), this;
|
|
2839
2865
|
}
|
|
2840
|
-
|
|
2841
|
-
function me(
|
|
2842
|
-
for (var
|
|
2843
|
-
if (
|
|
2844
|
-
return
|
|
2866
|
+
$.prototype.clear = F, $.prototype.delete = H, $.prototype.get = ue, $.prototype.has = de, $.prototype.set = Re;
|
|
2867
|
+
function me(S, R) {
|
|
2868
|
+
for (var O = S.length; O--; )
|
|
2869
|
+
if (bn(S[O][0], R))
|
|
2870
|
+
return O;
|
|
2845
2871
|
return -1;
|
|
2846
2872
|
}
|
|
2847
|
-
function ie(
|
|
2848
|
-
R =
|
|
2849
|
-
for (var
|
|
2850
|
-
|
|
2851
|
-
return
|
|
2873
|
+
function ie(S, R) {
|
|
2874
|
+
R = He(R, S) ? [R] : Ke(R);
|
|
2875
|
+
for (var O = 0, X = R.length; S != null && O < X; )
|
|
2876
|
+
S = S[vn(R[O++])];
|
|
2877
|
+
return O && O == X ? S : void 0;
|
|
2852
2878
|
}
|
|
2853
|
-
function ne(
|
|
2854
|
-
if (!
|
|
2879
|
+
function ne(S) {
|
|
2880
|
+
if (!At(S) || yn(S))
|
|
2855
2881
|
return !1;
|
|
2856
|
-
var R =
|
|
2857
|
-
return R.test(
|
|
2882
|
+
var R = Sn(S) || f(S) ? D : p;
|
|
2883
|
+
return R.test(_n(S));
|
|
2858
2884
|
}
|
|
2859
|
-
function ae(
|
|
2860
|
-
if (typeof
|
|
2861
|
-
return
|
|
2862
|
-
if (
|
|
2863
|
-
return M ? M.call(
|
|
2864
|
-
var R =
|
|
2865
|
-
return R == "0" && 1 /
|
|
2885
|
+
function ae(S) {
|
|
2886
|
+
if (typeof S == "string")
|
|
2887
|
+
return S;
|
|
2888
|
+
if (rt(S))
|
|
2889
|
+
return M ? M.call(S) : "";
|
|
2890
|
+
var R = S + "";
|
|
2891
|
+
return R == "0" && 1 / S == -1 / 0 ? "-0" : R;
|
|
2866
2892
|
}
|
|
2867
|
-
function Ke(
|
|
2868
|
-
return
|
|
2893
|
+
function Ke(S) {
|
|
2894
|
+
return xt(S) ? S : mn(S);
|
|
2869
2895
|
}
|
|
2870
|
-
function Le(
|
|
2871
|
-
var
|
|
2872
|
-
return ve(R) ?
|
|
2896
|
+
function Le(S, R) {
|
|
2897
|
+
var O = S.__data__;
|
|
2898
|
+
return ve(R) ? O[typeof R == "string" ? "string" : "hash"] : O.map;
|
|
2873
2899
|
}
|
|
2874
|
-
function Ge(
|
|
2875
|
-
var
|
|
2876
|
-
return ne(
|
|
2900
|
+
function Ge(S, R) {
|
|
2901
|
+
var O = y(S, R);
|
|
2902
|
+
return ne(O) ? O : void 0;
|
|
2877
2903
|
}
|
|
2878
|
-
function
|
|
2879
|
-
if (
|
|
2904
|
+
function He(S, R) {
|
|
2905
|
+
if (xt(S))
|
|
2880
2906
|
return !1;
|
|
2881
|
-
var
|
|
2882
|
-
return
|
|
2907
|
+
var O = typeof S;
|
|
2908
|
+
return O == "number" || O == "symbol" || O == "boolean" || S == null || rt(S) ? !0 : o.test(S) || !i.test(S) || R != null && S in Object(R);
|
|
2883
2909
|
}
|
|
2884
|
-
function ve(
|
|
2885
|
-
var R = typeof
|
|
2886
|
-
return R == "string" || R == "number" || R == "symbol" || R == "boolean" ?
|
|
2910
|
+
function ve(S) {
|
|
2911
|
+
var R = typeof S;
|
|
2912
|
+
return R == "string" || R == "number" || R == "symbol" || R == "boolean" ? S !== "__proto__" : S === null;
|
|
2887
2913
|
}
|
|
2888
|
-
function
|
|
2889
|
-
return !!C && C in
|
|
2914
|
+
function yn(S) {
|
|
2915
|
+
return !!C && C in S;
|
|
2890
2916
|
}
|
|
2891
|
-
var
|
|
2892
|
-
|
|
2917
|
+
var mn = st(function(S) {
|
|
2918
|
+
S = wn(S);
|
|
2893
2919
|
var R = [];
|
|
2894
|
-
return u.test(
|
|
2895
|
-
R.push(Qe ? je.replace(c, "$1") : X ||
|
|
2920
|
+
return u.test(S) && R.push(""), S.replace(l, function(O, X, Qe, je) {
|
|
2921
|
+
R.push(Qe ? je.replace(c, "$1") : X || O);
|
|
2896
2922
|
}), R;
|
|
2897
2923
|
});
|
|
2898
|
-
function
|
|
2899
|
-
if (typeof
|
|
2900
|
-
return
|
|
2901
|
-
var R =
|
|
2902
|
-
return R == "0" && 1 /
|
|
2924
|
+
function vn(S) {
|
|
2925
|
+
if (typeof S == "string" || rt(S))
|
|
2926
|
+
return S;
|
|
2927
|
+
var R = S + "";
|
|
2928
|
+
return R == "0" && 1 / S == -1 / 0 ? "-0" : R;
|
|
2903
2929
|
}
|
|
2904
|
-
function
|
|
2905
|
-
if (
|
|
2930
|
+
function _n(S) {
|
|
2931
|
+
if (S != null) {
|
|
2906
2932
|
try {
|
|
2907
|
-
return E.call(
|
|
2933
|
+
return E.call(S);
|
|
2908
2934
|
} catch {
|
|
2909
2935
|
}
|
|
2910
2936
|
try {
|
|
2911
|
-
return
|
|
2937
|
+
return S + "";
|
|
2912
2938
|
} catch {
|
|
2913
2939
|
}
|
|
2914
2940
|
}
|
|
2915
2941
|
return "";
|
|
2916
2942
|
}
|
|
2917
|
-
function
|
|
2918
|
-
if (typeof
|
|
2943
|
+
function st(S, R) {
|
|
2944
|
+
if (typeof S != "function" || R && typeof R != "function")
|
|
2919
2945
|
throw new TypeError(t);
|
|
2920
|
-
var
|
|
2921
|
-
var X = arguments, Qe = R ? R.apply(this, X) : X[0], je =
|
|
2946
|
+
var O = function() {
|
|
2947
|
+
var X = arguments, Qe = R ? R.apply(this, X) : X[0], je = O.cache;
|
|
2922
2948
|
if (je.has(Qe))
|
|
2923
2949
|
return je.get(Qe);
|
|
2924
|
-
var
|
|
2925
|
-
return
|
|
2950
|
+
var Tt = S.apply(this, X);
|
|
2951
|
+
return O.cache = je.set(Qe, Tt), Tt;
|
|
2926
2952
|
};
|
|
2927
|
-
return
|
|
2953
|
+
return O.cache = new (st.Cache || $)(), O;
|
|
2928
2954
|
}
|
|
2929
|
-
|
|
2930
|
-
function
|
|
2931
|
-
return
|
|
2955
|
+
st.Cache = $;
|
|
2956
|
+
function bn(S, R) {
|
|
2957
|
+
return S === R || S !== S && R !== R;
|
|
2932
2958
|
}
|
|
2933
|
-
var
|
|
2934
|
-
function
|
|
2935
|
-
var R =
|
|
2959
|
+
var xt = Array.isArray;
|
|
2960
|
+
function Sn(S) {
|
|
2961
|
+
var R = At(S) ? w.call(S) : "";
|
|
2936
2962
|
return R == r || R == n;
|
|
2937
2963
|
}
|
|
2938
|
-
function
|
|
2939
|
-
var R = typeof
|
|
2940
|
-
return !!
|
|
2964
|
+
function At(S) {
|
|
2965
|
+
var R = typeof S;
|
|
2966
|
+
return !!S && (R == "object" || R == "function");
|
|
2941
2967
|
}
|
|
2942
|
-
function
|
|
2943
|
-
return !!
|
|
2968
|
+
function En(S) {
|
|
2969
|
+
return !!S && typeof S == "object";
|
|
2944
2970
|
}
|
|
2945
|
-
function
|
|
2946
|
-
return typeof
|
|
2971
|
+
function rt(S) {
|
|
2972
|
+
return typeof S == "symbol" || En(S) && w.call(S) == s;
|
|
2947
2973
|
}
|
|
2948
|
-
function
|
|
2949
|
-
return
|
|
2974
|
+
function wn(S) {
|
|
2975
|
+
return S == null ? "" : ae(S);
|
|
2950
2976
|
}
|
|
2951
|
-
function
|
|
2952
|
-
var X =
|
|
2953
|
-
return X === void 0 ?
|
|
2977
|
+
function Cn(S, R, O) {
|
|
2978
|
+
var X = S == null ? void 0 : ie(S, R);
|
|
2979
|
+
return X === void 0 ? O : X;
|
|
2954
2980
|
}
|
|
2955
|
-
return
|
|
2981
|
+
return pt = Cn, pt;
|
|
2956
2982
|
}
|
|
2957
|
-
var
|
|
2958
|
-
const
|
|
2959
|
-
function
|
|
2983
|
+
var Fr = Or();
|
|
2984
|
+
const ht = /* @__PURE__ */ Pr(Fr);
|
|
2985
|
+
function kr(t, e, r) {
|
|
2960
2986
|
const n = t ?? {
|
|
2961
2987
|
result: [],
|
|
2962
2988
|
success: !0,
|
|
@@ -2966,25 +2992,25 @@ function Or(t, e, r) {
|
|
|
2966
2992
|
const o = e.length > 1 ? /* @__PURE__ */ new Map() : void 0, u = /* @__PURE__ */ new Map();
|
|
2967
2993
|
if (o)
|
|
2968
2994
|
for (let a = s.length - 1; a >= 0; a--) {
|
|
2969
|
-
const c =
|
|
2995
|
+
const c = ht(s[a], r);
|
|
2970
2996
|
if (c !== c) continue;
|
|
2971
2997
|
const p = o.get(c);
|
|
2972
2998
|
p !== void 0 && u.set(a, p), o.set(c, a);
|
|
2973
2999
|
}
|
|
2974
3000
|
const l = /* @__PURE__ */ new Set();
|
|
2975
3001
|
for (const a of e) {
|
|
2976
|
-
const c =
|
|
3002
|
+
const c = ht(a.payload.data, r), p = i ?? s, d = o ? c === c ? o.get(c) ?? -1 : -1 : p.findIndex((g) => ht(g, r) === c);
|
|
2977
3003
|
switch (a.type) {
|
|
2978
3004
|
case "ADD":
|
|
2979
|
-
|
|
3005
|
+
d === -1 && (i ??= s.slice(), c === c && o?.set(c, i.length), i.push(a.payload.data));
|
|
2980
3006
|
break;
|
|
2981
3007
|
case "UPDATE":
|
|
2982
|
-
|
|
3008
|
+
d !== -1 && p[d] !== a.payload.data && (i ??= s.slice(), i[d] = a.payload.data);
|
|
2983
3009
|
break;
|
|
2984
3010
|
case "DELETE":
|
|
2985
|
-
if (
|
|
2986
|
-
i ??= s.slice(), l.add(
|
|
2987
|
-
const g = u.get(
|
|
3011
|
+
if (d !== -1) {
|
|
3012
|
+
i ??= s.slice(), l.add(d);
|
|
3013
|
+
const g = u.get(d);
|
|
2988
3014
|
g === void 0 ? o?.delete(c) : o?.set(c, g);
|
|
2989
3015
|
}
|
|
2990
3016
|
break;
|
|
@@ -2995,81 +3021,81 @@ function Or(t, e, r) {
|
|
|
2995
3021
|
result: i
|
|
2996
3022
|
}) : n;
|
|
2997
3023
|
}
|
|
2998
|
-
function
|
|
2999
|
-
const o =
|
|
3024
|
+
function Lr(t, e, r, n, s, i) {
|
|
3025
|
+
const o = q(17), u = i?.syncWindowMs ?? 500, l = i?.enabled ?? !0;
|
|
3000
3026
|
let a;
|
|
3001
3027
|
o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = [], o[0] = a) : a = o[0];
|
|
3002
|
-
const c = pe(a), p = pe(null),
|
|
3003
|
-
let h,
|
|
3028
|
+
const c = pe(a), p = pe(null), d = pe(null), g = pe(s);
|
|
3029
|
+
let h, y;
|
|
3004
3030
|
o[1] !== s ? (h = () => {
|
|
3005
3031
|
g.current = s;
|
|
3006
|
-
},
|
|
3007
|
-
let
|
|
3008
|
-
o[4] !== r || o[5] !== n || o[6] !== t || o[7] !== e ? (
|
|
3032
|
+
}, y = [s], o[1] = s, o[2] = h, o[3] = y) : (h = o[2], y = o[3]), gt(h, y);
|
|
3033
|
+
let f;
|
|
3034
|
+
o[4] !== r || o[5] !== n || o[6] !== t || o[7] !== e ? (f = () => {
|
|
3009
3035
|
const E = c.current;
|
|
3010
|
-
if (c.current = [], p.current !== null && (clearTimeout(p.current), p.current = null),
|
|
3011
|
-
t.setQueryData(e, (I) =>
|
|
3036
|
+
if (c.current = [], p.current !== null && (clearTimeout(p.current), p.current = null), d.current !== null && (cancelAnimationFrame(d.current), d.current = null), !(E.length === 0 || !n)) {
|
|
3037
|
+
t.setQueryData(e, (I) => kr(I, E, n));
|
|
3012
3038
|
for (const I of E)
|
|
3013
3039
|
(I.type === "ADD" || I.type === "UPDATE") && t.setQueryData(r(I.payload.id, I.payload.namespace), {
|
|
3014
3040
|
success: !0,
|
|
3015
3041
|
result: I.payload.data
|
|
3016
3042
|
});
|
|
3017
3043
|
}
|
|
3018
|
-
}, o[4] = r, o[5] = n, o[6] = t, o[7] = e, o[8] =
|
|
3019
|
-
const
|
|
3020
|
-
let
|
|
3021
|
-
o[9] !== l || o[10] !==
|
|
3022
|
-
l && (c.current.push(E), !(p.current !== null ||
|
|
3023
|
-
}, o[9] = l, o[10] =
|
|
3024
|
-
const _ =
|
|
3025
|
-
let
|
|
3026
|
-
o[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3027
|
-
c.current = [], p.current !== null && (clearTimeout(p.current), p.current = null),
|
|
3028
|
-
}, o[13] =
|
|
3044
|
+
}, o[4] = r, o[5] = n, o[6] = t, o[7] = e, o[8] = f) : f = o[8];
|
|
3045
|
+
const v = f;
|
|
3046
|
+
let m;
|
|
3047
|
+
o[9] !== l || o[10] !== v || o[11] !== u ? (m = (E) => {
|
|
3048
|
+
l && (c.current.push(E), !(p.current !== null || d.current !== null) && (p.current = setTimeout(v, u), g.current !== 1 && (d.current = requestAnimationFrame(v))));
|
|
3049
|
+
}, o[9] = l, o[10] = v, o[11] = u, o[12] = m) : m = o[12];
|
|
3050
|
+
const _ = m;
|
|
3051
|
+
let b;
|
|
3052
|
+
o[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => () => {
|
|
3053
|
+
c.current = [], p.current !== null && (clearTimeout(p.current), p.current = null), d.current !== null && (cancelAnimationFrame(d.current), d.current = null);
|
|
3054
|
+
}, o[13] = b) : b = o[13];
|
|
3029
3055
|
let C;
|
|
3030
|
-
return o[14] !== l || o[15] !==
|
|
3056
|
+
return o[14] !== l || o[15] !== v ? (C = [l, v], o[14] = l, o[15] = v, o[16] = C) : C = o[16], gt(b, C), _;
|
|
3031
3057
|
}
|
|
3032
|
-
const
|
|
3033
|
-
const e =
|
|
3058
|
+
const Go = (t) => {
|
|
3059
|
+
const e = q(75), {
|
|
3034
3060
|
pluginID: r,
|
|
3035
3061
|
connectionID: n,
|
|
3036
3062
|
resourceKey: s,
|
|
3037
3063
|
idAccessor: i,
|
|
3038
3064
|
namespaces: o,
|
|
3039
3065
|
enabled: u
|
|
3040
|
-
} = t, l = u === void 0 ? !0 : u, a = ee(r), c =
|
|
3066
|
+
} = t, l = u === void 0 ? !0 : u, a = ee(r), c = Se(), {
|
|
3041
3067
|
showSnackbar: p
|
|
3042
|
-
} = we(),
|
|
3068
|
+
} = we(), d = l && !!s;
|
|
3043
3069
|
let g;
|
|
3044
|
-
e[0] !== n || e[1] !== a || e[2] !==
|
|
3070
|
+
e[0] !== n || e[1] !== a || e[2] !== d ? (g = {
|
|
3045
3071
|
pluginID: a,
|
|
3046
3072
|
connectionID: n,
|
|
3047
|
-
enabled:
|
|
3048
|
-
}, e[0] = n, e[1] = a, e[2] =
|
|
3049
|
-
const h = ge(g),
|
|
3050
|
-
let
|
|
3051
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3052
|
-
const
|
|
3053
|
-
let
|
|
3054
|
-
e[5] !== p ? (
|
|
3073
|
+
enabled: d
|
|
3074
|
+
}, e[0] = n, e[1] = a, e[2] = d, e[3] = g) : g = e[3];
|
|
3075
|
+
const h = ge(g), y = Ce(a, n), f = l && !!s && h.phase === "connected";
|
|
3076
|
+
let v;
|
|
3077
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = Promise.resolve(), e[4] = v) : v = e[4];
|
|
3078
|
+
const m = L.useRef(v), _ = L.useRef(p);
|
|
3079
|
+
let b, C;
|
|
3080
|
+
e[5] !== p ? (b = () => {
|
|
3055
3081
|
_.current = p;
|
|
3056
|
-
}, C = [p], e[5] = p, e[6] =
|
|
3082
|
+
}, C = [p], e[5] = p, e[6] = b, e[7] = C) : (b = e[6], C = e[7]), L.useLayoutEffect(b, C);
|
|
3057
3083
|
let E;
|
|
3058
3084
|
e[8] !== o ? (E = o ?? [], e[8] = o, e[9] = E) : E = e[9];
|
|
3059
3085
|
const I = E;
|
|
3060
3086
|
let w;
|
|
3061
|
-
e[10] !== n || e[11] !== a || e[12] !== s || e[13] !== I ? (w =
|
|
3087
|
+
e[10] !== n || e[11] !== a || e[12] !== s || e[13] !== I ? (w = _t.list(a, n, s, I), e[10] = n, e[11] = a, e[12] = s, e[13] = I, e[14] = w) : w = e[14];
|
|
3062
3088
|
const D = w;
|
|
3063
3089
|
let x;
|
|
3064
|
-
e[15] !== n || e[16] !== a || e[17] !== s ? (x = (ie, ne) =>
|
|
3065
|
-
const
|
|
3066
|
-
let
|
|
3067
|
-
e[19] !== n || e[20] !== a || e[21] !== s || e[22] !== I ? (
|
|
3090
|
+
e[15] !== n || e[16] !== a || e[17] !== s ? (x = (ie, ne) => _t.resource(a, n, s, ie, ne), e[15] = n, e[16] = a, e[17] = s, e[18] = x) : x = e[18];
|
|
3091
|
+
const P = x;
|
|
3092
|
+
let T;
|
|
3093
|
+
e[19] !== n || e[20] !== a || e[21] !== s || e[22] !== I ? (T = async (ie) => (await Oe(a, n), zt(a, n, s, Yt.createFrom({
|
|
3068
3094
|
input: ie.input,
|
|
3069
3095
|
namespace: ie.namespace ?? (I.length === 1 ? I[0] : "")
|
|
3070
|
-
}))), e[19] = n, e[20] = a, e[21] = s, e[22] = I, e[23] =
|
|
3071
|
-
let
|
|
3072
|
-
e[24] !== c || e[25] !== D || e[26] !== p ? (
|
|
3096
|
+
}))), e[19] = n, e[20] = a, e[21] = s, e[22] = I, e[23] = T) : T = e[23];
|
|
3097
|
+
let A;
|
|
3098
|
+
e[24] !== c || e[25] !== D || e[26] !== p ? (A = async (ie) => {
|
|
3073
3099
|
const ne = ie?.result;
|
|
3074
3100
|
let ae = "";
|
|
3075
3101
|
ne?.metadata?.name ? ae = ne.metadata.name : ne?.id ? ae = ne.id : ne?.name ? ae = ne.name : ne?.ID ? ae = ne.ID : ne?.Name && (ae = ne.Name);
|
|
@@ -3077,25 +3103,25 @@ const Lo = (t) => {
|
|
|
3077
3103
|
p(Ke, "success"), await c.invalidateQueries({
|
|
3078
3104
|
queryKey: D
|
|
3079
3105
|
});
|
|
3080
|
-
}, e[24] = c, e[25] = D, e[26] = p, e[27] =
|
|
3106
|
+
}, e[24] = c, e[25] = D, e[26] = p, e[27] = A) : A = e[27];
|
|
3081
3107
|
let k;
|
|
3082
3108
|
e[28] !== p ? (k = le(p, "Failed to create resource"), e[28] = p, e[29] = k) : k = e[29];
|
|
3083
3109
|
let M;
|
|
3084
|
-
e[30] !==
|
|
3085
|
-
mutationFn:
|
|
3086
|
-
onSuccess:
|
|
3110
|
+
e[30] !== T || e[31] !== A || e[32] !== k ? (M = {
|
|
3111
|
+
mutationFn: T,
|
|
3112
|
+
onSuccess: A,
|
|
3087
3113
|
onError: k
|
|
3088
|
-
}, e[30] =
|
|
3114
|
+
}, e[30] = T, e[31] = A, e[32] = k, e[33] = M) : M = e[33];
|
|
3089
3115
|
const {
|
|
3090
3116
|
mutateAsync: W
|
|
3091
3117
|
} = oe(M);
|
|
3092
3118
|
let j;
|
|
3093
|
-
e[34] !== n || e[35] !==
|
|
3119
|
+
e[34] !== n || e[35] !== y || e[36] !== a || e[37] !== f || e[38] !== s || e[39] !== I ? (j = f ? (ie) => {
|
|
3094
3120
|
const {
|
|
3095
3121
|
signal: ne,
|
|
3096
3122
|
queryKey: ae
|
|
3097
3123
|
} = ie;
|
|
3098
|
-
return
|
|
3124
|
+
return y(ae, ne, () => jt(a, n, s, Vt.createFrom({
|
|
3099
3125
|
order: [{
|
|
3100
3126
|
field: "name",
|
|
3101
3127
|
descending: !1
|
|
@@ -3106,75 +3132,75 @@ const Lo = (t) => {
|
|
|
3106
3132
|
},
|
|
3107
3133
|
namespaces: I
|
|
3108
3134
|
})));
|
|
3109
|
-
} : Ee, e[34] = n, e[35] =
|
|
3135
|
+
} : Ee, e[34] = n, e[35] = y, e[36] = a, e[37] = f, e[38] = s, e[39] = I, e[40] = j) : j = e[40];
|
|
3110
3136
|
let V;
|
|
3111
|
-
e[41] !==
|
|
3137
|
+
e[41] !== f || e[42] !== D || e[43] !== j ? (V = {
|
|
3112
3138
|
queryKey: D,
|
|
3113
3139
|
queryFn: j,
|
|
3114
|
-
placeholderData:
|
|
3140
|
+
placeholderData: $r,
|
|
3115
3141
|
retry: !1,
|
|
3116
|
-
enabled:
|
|
3117
|
-
}, e[41] =
|
|
3142
|
+
enabled: f
|
|
3143
|
+
}, e[41] = f, e[42] = D, e[43] = j, e[44] = V) : V = e[44];
|
|
3118
3144
|
const Y = re(V);
|
|
3119
3145
|
let G;
|
|
3120
|
-
e[45] !== n || e[46] !== a || e[47] !==
|
|
3146
|
+
e[45] !== n || e[46] !== a || e[47] !== f || e[48] !== s ? (G = {
|
|
3121
3147
|
pluginID: a,
|
|
3122
3148
|
connectionID: n,
|
|
3123
3149
|
resourceKey: s,
|
|
3124
|
-
enabled:
|
|
3125
|
-
}, e[45] = n, e[46] = a, e[47] =
|
|
3126
|
-
const J = G, [te, ye] =
|
|
3150
|
+
enabled: f
|
|
3151
|
+
}, e[45] = n, e[46] = a, e[47] = f, e[48] = s, e[49] = G) : G = e[49];
|
|
3152
|
+
const J = G, [te, ye] = L.useState(), U = f && te?.scope === J ? te.state : Q.WatchStateIdle;
|
|
3127
3153
|
let B, K;
|
|
3128
|
-
e[50] !== n || e[51] !== a || e[52] !==
|
|
3154
|
+
e[50] !== n || e[51] !== a || e[52] !== f || e[53] !== s || e[54] !== J ? (B = () => f ? Z(`${a}/${n}/watch/STATE`, (ne) => {
|
|
3129
3155
|
const ae = ne.data;
|
|
3130
3156
|
ae.resourceKey === s && ye({
|
|
3131
3157
|
scope: J,
|
|
3132
3158
|
state: ae.state
|
|
3133
3159
|
});
|
|
3134
|
-
}) : void 0, K = [a, n, s,
|
|
3160
|
+
}) : void 0, K = [a, n, s, f, J], e[50] = n, e[51] = a, e[52] = f, e[53] = s, e[54] = J, e[55] = B, e[56] = K) : (B = e[55], K = e[56]), L.useEffect(B, K);
|
|
3135
3161
|
let z;
|
|
3136
|
-
e[57] !==
|
|
3137
|
-
enabled:
|
|
3138
|
-
}, e[57] =
|
|
3139
|
-
const
|
|
3162
|
+
e[57] !== f ? (z = {
|
|
3163
|
+
enabled: f
|
|
3164
|
+
}, e[57] = f, e[58] = z) : z = e[58];
|
|
3165
|
+
const $ = Lr(c, D, P, i, U, z);
|
|
3140
3166
|
let F, H;
|
|
3141
|
-
e[59] !== n || e[60] !==
|
|
3142
|
-
if (!
|
|
3167
|
+
e[59] !== n || e[60] !== $ || e[61] !== i || e[62] !== a || e[63] !== f || e[64] !== s || e[65] !== J ? (F = () => {
|
|
3168
|
+
if (!f || !i)
|
|
3143
3169
|
return;
|
|
3144
3170
|
let ie = !0, ne = !1;
|
|
3145
3171
|
const ae = Z(`${a}/${n}/${s}/ADD`, (ve) => {
|
|
3146
|
-
ie &&
|
|
3172
|
+
ie && $({
|
|
3147
3173
|
type: "ADD",
|
|
3148
3174
|
payload: ve.data
|
|
3149
3175
|
});
|
|
3150
3176
|
}), Ke = Z(`${a}/${n}/${s}/UPDATE`, (ve) => {
|
|
3151
|
-
ie &&
|
|
3177
|
+
ie && $({
|
|
3152
3178
|
type: "UPDATE",
|
|
3153
3179
|
payload: ve.data
|
|
3154
3180
|
});
|
|
3155
3181
|
}), Le = Z(`${a}/${n}/${s}/DELETE`, (ve) => {
|
|
3156
|
-
ie &&
|
|
3182
|
+
ie && $({
|
|
3157
3183
|
type: "DELETE",
|
|
3158
3184
|
payload: ve.data
|
|
3159
3185
|
});
|
|
3160
3186
|
}), Ge = () => {
|
|
3161
3187
|
ae(), Ke(), Le();
|
|
3162
|
-
},
|
|
3163
|
-
ie && (await
|
|
3188
|
+
}, He = m.current.then(async () => {
|
|
3189
|
+
ie && (await ds(a, n, s), ne = !0);
|
|
3164
3190
|
}).catch((ve) => {
|
|
3165
3191
|
Ge(), ie && ye({
|
|
3166
3192
|
scope: J,
|
|
3167
3193
|
state: Q.WatchStateError
|
|
3168
3194
|
}), xe(_.current, ve, "Failed to subscribe to resource updates");
|
|
3169
3195
|
});
|
|
3170
|
-
return
|
|
3171
|
-
ie = !1, Ge(),
|
|
3172
|
-
ne && await
|
|
3196
|
+
return m.current = He, () => {
|
|
3197
|
+
ie = !1, Ge(), m.current = He.then(async () => {
|
|
3198
|
+
ne && await fs(a, n, s);
|
|
3173
3199
|
}).catch((ve) => {
|
|
3174
3200
|
xe(_.current, ve, "Failed to unsubscribe from resource updates");
|
|
3175
3201
|
});
|
|
3176
3202
|
};
|
|
3177
|
-
}, H = [a, n, s,
|
|
3203
|
+
}, H = [a, n, s, $, i, f, J], e[59] = n, e[60] = $, e[61] = i, e[62] = a, e[63] = f, e[64] = s, e[65] = J, e[66] = F, e[67] = H) : (F = e[66], H = e[67]), L.useEffect(F, H);
|
|
3178
3204
|
const ue = U === Q.WatchStateSyncing, de = U === Q.WatchStateSynced, Re = U === Q.WatchStateError;
|
|
3179
3205
|
let me;
|
|
3180
3206
|
return e[68] !== W || e[69] !== Y || e[70] !== ue || e[71] !== de || e[72] !== Re || e[73] !== U ? (me = {
|
|
@@ -3186,115 +3212,115 @@ const Lo = (t) => {
|
|
|
3186
3212
|
watchError: Re
|
|
3187
3213
|
}, e[68] = W, e[69] = Y, e[70] = ue, e[71] = de, e[72] = Re, e[73] = U, e[74] = me) : me = e[74], me;
|
|
3188
3214
|
};
|
|
3189
|
-
function
|
|
3215
|
+
function $r(t, e) {
|
|
3190
3216
|
return t;
|
|
3191
3217
|
}
|
|
3192
|
-
const
|
|
3193
|
-
const e =
|
|
3218
|
+
const Qo = (t) => {
|
|
3219
|
+
const e = q(28), {
|
|
3194
3220
|
pluginID: r
|
|
3195
3221
|
} = t, n = ee(r), {
|
|
3196
3222
|
showSnackbar: s
|
|
3197
3223
|
} = we();
|
|
3198
3224
|
let i;
|
|
3199
|
-
e[0] !== n ? (i = async (
|
|
3225
|
+
e[0] !== n ? (i = async (m) => {
|
|
3200
3226
|
const {
|
|
3201
3227
|
opts: _,
|
|
3202
|
-
input:
|
|
3203
|
-
} =
|
|
3204
|
-
return await
|
|
3205
|
-
input:
|
|
3206
|
-
namespace:
|
|
3228
|
+
input: b
|
|
3229
|
+
} = m;
|
|
3230
|
+
return await Oe(n, _.connectionID), zt(n, _.connectionID, _.resourceKey, Yt.createFrom({
|
|
3231
|
+
input: b.input,
|
|
3232
|
+
namespace: b.namespace ?? _.namespace ?? ""
|
|
3207
3233
|
}));
|
|
3208
3234
|
}, e[0] = n, e[1] = i) : i = e[1];
|
|
3209
3235
|
let o;
|
|
3210
|
-
e[2] !== s ? (o = (
|
|
3236
|
+
e[2] !== s ? (o = (m, _) => {
|
|
3211
3237
|
const {
|
|
3212
|
-
opts:
|
|
3238
|
+
opts: b
|
|
3213
3239
|
} = _;
|
|
3214
|
-
s(`Resource ${
|
|
3240
|
+
s(`Resource ${b.resourceID} created`, "success");
|
|
3215
3241
|
}, e[2] = s, e[3] = o) : o = e[3];
|
|
3216
3242
|
let u;
|
|
3217
3243
|
e[4] !== s || e[5] !== i || e[6] !== o ? (u = {
|
|
3218
3244
|
mutationFn: i,
|
|
3219
3245
|
onSuccess: o,
|
|
3220
|
-
onError(
|
|
3246
|
+
onError(m, _) {
|
|
3221
3247
|
const {
|
|
3222
|
-
opts:
|
|
3248
|
+
opts: b
|
|
3223
3249
|
} = _;
|
|
3224
|
-
xe(s,
|
|
3250
|
+
xe(s, m, `Failed to create resource ${b.resourceID}`);
|
|
3225
3251
|
}
|
|
3226
3252
|
}, e[4] = s, e[5] = i, e[6] = o, e[7] = u) : u = e[7];
|
|
3227
3253
|
const l = oe(u);
|
|
3228
3254
|
let a;
|
|
3229
|
-
e[8] !== n ? (a = async (
|
|
3255
|
+
e[8] !== n ? (a = async (m) => {
|
|
3230
3256
|
const {
|
|
3231
3257
|
opts: _,
|
|
3232
|
-
input:
|
|
3233
|
-
} =
|
|
3234
|
-
return await
|
|
3235
|
-
input:
|
|
3258
|
+
input: b
|
|
3259
|
+
} = m;
|
|
3260
|
+
return await Oe(n, _.connectionID), Gt(n, _.connectionID, _.resourceKey, Ht.createFrom({
|
|
3261
|
+
input: b.input,
|
|
3236
3262
|
id: _.resourceID,
|
|
3237
3263
|
namespace: _.namespace ?? ""
|
|
3238
3264
|
}));
|
|
3239
3265
|
}, e[8] = n, e[9] = a) : a = e[9];
|
|
3240
3266
|
let c;
|
|
3241
|
-
e[10] !== s ? (c = (
|
|
3267
|
+
e[10] !== s ? (c = (m, _) => {
|
|
3242
3268
|
const {
|
|
3243
|
-
opts:
|
|
3269
|
+
opts: b
|
|
3244
3270
|
} = _;
|
|
3245
|
-
s(`Resource ${
|
|
3271
|
+
s(`Resource ${b.resourceID} updated`, "success");
|
|
3246
3272
|
}, e[10] = s, e[11] = c) : c = e[11];
|
|
3247
3273
|
let p;
|
|
3248
3274
|
e[12] !== s || e[13] !== a || e[14] !== c ? (p = {
|
|
3249
3275
|
mutationFn: a,
|
|
3250
3276
|
onSuccess: c,
|
|
3251
|
-
onError(
|
|
3277
|
+
onError(m, _) {
|
|
3252
3278
|
const {
|
|
3253
|
-
opts:
|
|
3279
|
+
opts: b
|
|
3254
3280
|
} = _;
|
|
3255
|
-
xe(s,
|
|
3281
|
+
xe(s, m, `Failed to update resource ${b.resourceID}`);
|
|
3256
3282
|
}
|
|
3257
3283
|
}, e[12] = s, e[13] = a, e[14] = c, e[15] = p) : p = e[15];
|
|
3258
|
-
const
|
|
3284
|
+
const d = oe(p);
|
|
3259
3285
|
let g;
|
|
3260
|
-
e[16] !== n ? (g = async (
|
|
3286
|
+
e[16] !== n ? (g = async (m) => {
|
|
3261
3287
|
const {
|
|
3262
3288
|
opts: _,
|
|
3263
|
-
input:
|
|
3264
|
-
} =
|
|
3265
|
-
return await
|
|
3289
|
+
input: b
|
|
3290
|
+
} = m;
|
|
3291
|
+
return await Oe(n, _.connectionID), Qt(n, _.connectionID, _.resourceKey, Jt.createFrom({
|
|
3266
3292
|
id: _.resourceID,
|
|
3267
3293
|
namespace: _.namespace ?? "",
|
|
3268
|
-
gracePeriodSeconds:
|
|
3294
|
+
gracePeriodSeconds: b.gracePeriodSeconds
|
|
3269
3295
|
}));
|
|
3270
3296
|
}, e[16] = n, e[17] = g) : g = e[17];
|
|
3271
3297
|
let h;
|
|
3272
|
-
e[18] !== s ? (h = (
|
|
3298
|
+
e[18] !== s ? (h = (m, _) => {
|
|
3273
3299
|
const {
|
|
3274
|
-
opts:
|
|
3300
|
+
opts: b
|
|
3275
3301
|
} = _;
|
|
3276
|
-
s(`Resource ${
|
|
3302
|
+
s(`Resource ${b.resourceID} deleted`, "success");
|
|
3277
3303
|
}, e[18] = s, e[19] = h) : h = e[19];
|
|
3278
|
-
let
|
|
3279
|
-
e[20] !== s || e[21] !== g || e[22] !== h ? (
|
|
3304
|
+
let y;
|
|
3305
|
+
e[20] !== s || e[21] !== g || e[22] !== h ? (y = {
|
|
3280
3306
|
mutationFn: g,
|
|
3281
3307
|
onSuccess: h,
|
|
3282
|
-
onError(
|
|
3308
|
+
onError(m, _) {
|
|
3283
3309
|
const {
|
|
3284
|
-
opts:
|
|
3310
|
+
opts: b
|
|
3285
3311
|
} = _;
|
|
3286
|
-
xe(s,
|
|
3312
|
+
xe(s, m, `Failed to delete resource ${b.resourceID}`);
|
|
3287
3313
|
}
|
|
3288
|
-
}, e[20] = s, e[21] = g, e[22] = h, e[23] =
|
|
3289
|
-
const
|
|
3290
|
-
let
|
|
3291
|
-
return e[24] !== l.mutateAsync || e[25] !==
|
|
3314
|
+
}, e[20] = s, e[21] = g, e[22] = h, e[23] = y) : y = e[23];
|
|
3315
|
+
const f = oe(y);
|
|
3316
|
+
let v;
|
|
3317
|
+
return e[24] !== l.mutateAsync || e[25] !== f.mutateAsync || e[26] !== d.mutateAsync ? (v = {
|
|
3292
3318
|
create: l.mutateAsync,
|
|
3293
|
-
update:
|
|
3294
|
-
remove:
|
|
3295
|
-
}, e[24] = l.mutateAsync, e[25] =
|
|
3296
|
-
},
|
|
3297
|
-
const e =
|
|
3319
|
+
update: d.mutateAsync,
|
|
3320
|
+
remove: f.mutateAsync
|
|
3321
|
+
}, e[24] = l.mutateAsync, e[25] = f.mutateAsync, e[26] = d.mutateAsync, e[27] = v) : v = e[27], v;
|
|
3322
|
+
}, jo = (t) => {
|
|
3323
|
+
const e = q(25), {
|
|
3298
3324
|
pluginID: r,
|
|
3299
3325
|
connectionID: n,
|
|
3300
3326
|
resourceKey: s,
|
|
@@ -3307,52 +3333,52 @@ const $o = (t) => {
|
|
|
3307
3333
|
enabled: l
|
|
3308
3334
|
}, e[0] = n, e[1] = u, e[2] = l, e[3] = a) : a = e[3];
|
|
3309
3335
|
const c = ge(a), p = Ce(u, n);
|
|
3310
|
-
let
|
|
3311
|
-
e[4] !== n || e[5] !== u || e[6] !== s ? (
|
|
3336
|
+
let d;
|
|
3337
|
+
e[4] !== n || e[5] !== u || e[6] !== s ? (d = ["RESOURCE_ACTIONS", u, n, s], e[4] = n, e[5] = u, e[6] = s, e[7] = d) : d = e[7];
|
|
3312
3338
|
let g;
|
|
3313
3339
|
e[8] !== n || e[9] !== o || e[10] !== p || e[11] !== u || e[12] !== c || e[13] !== s ? (g = o && s && c.phase === "connected" ? (_) => {
|
|
3314
3340
|
const {
|
|
3315
|
-
signal:
|
|
3341
|
+
signal: b,
|
|
3316
3342
|
queryKey: C
|
|
3317
3343
|
} = _;
|
|
3318
|
-
return p(C,
|
|
3344
|
+
return p(C, b, () => ps(u, n, s));
|
|
3319
3345
|
} : Ee, e[8] = n, e[9] = o, e[10] = p, e[11] = u, e[12] = c, e[13] = s, e[14] = g) : g = e[14];
|
|
3320
3346
|
const h = o && !!u && !!n && !!s && c.phase === "connected";
|
|
3321
|
-
let
|
|
3322
|
-
e[15] !==
|
|
3323
|
-
queryKey:
|
|
3347
|
+
let y;
|
|
3348
|
+
e[15] !== d || e[16] !== g || e[17] !== h ? (y = {
|
|
3349
|
+
queryKey: d,
|
|
3324
3350
|
queryFn: g,
|
|
3325
3351
|
enabled: h,
|
|
3326
3352
|
staleTime: 3e5
|
|
3327
|
-
}, e[15] =
|
|
3328
|
-
const
|
|
3353
|
+
}, e[15] = d, e[16] = g, e[17] = h, e[18] = y) : y = e[18];
|
|
3354
|
+
const f = re(y);
|
|
3355
|
+
let v;
|
|
3356
|
+
e[19] !== f.data ? (v = f.data ?? [], e[19] = f.data, e[20] = v) : v = e[20];
|
|
3329
3357
|
let m;
|
|
3330
|
-
e[
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
}, Mo = (t) => {
|
|
3338
|
-
const e = $(20), {
|
|
3358
|
+
return e[21] !== f.error || e[22] !== f.isLoading || e[23] !== v ? (m = {
|
|
3359
|
+
actions: v,
|
|
3360
|
+
isLoading: f.isLoading,
|
|
3361
|
+
error: f.error
|
|
3362
|
+
}, e[21] = f.error, e[22] = f.isLoading, e[23] = v, e[24] = m) : m = e[24], m;
|
|
3363
|
+
}, zo = (t) => {
|
|
3364
|
+
const e = q(20), {
|
|
3339
3365
|
pluginID: r,
|
|
3340
3366
|
connectionID: n,
|
|
3341
3367
|
resourceKey: s
|
|
3342
|
-
} = t, i = ee(r), o =
|
|
3368
|
+
} = t, i = ee(r), o = Se(), {
|
|
3343
3369
|
showSnackbar: u
|
|
3344
3370
|
} = we();
|
|
3345
3371
|
let l;
|
|
3346
3372
|
e[0] !== n || e[1] !== i || e[2] !== s ? (l = async (h) => {
|
|
3347
3373
|
const {
|
|
3348
|
-
actionID:
|
|
3349
|
-
id:
|
|
3350
|
-
namespace:
|
|
3351
|
-
params:
|
|
3352
|
-
} = h, _ =
|
|
3353
|
-
return await
|
|
3374
|
+
actionID: y,
|
|
3375
|
+
id: f,
|
|
3376
|
+
namespace: v,
|
|
3377
|
+
params: m
|
|
3378
|
+
} = h, _ = f === void 0 ? "" : f, b = v === void 0 ? "" : v, C = m === void 0 ? {} : m;
|
|
3379
|
+
return await Oe(i, n), hs(i, n, s, y, Zt.createFrom({
|
|
3354
3380
|
id: _,
|
|
3355
|
-
namespace:
|
|
3381
|
+
namespace: b,
|
|
3356
3382
|
params: C
|
|
3357
3383
|
}));
|
|
3358
3384
|
}, e[0] = n, e[1] = i, e[2] = s, e[3] = l) : l = e[3];
|
|
@@ -3363,8 +3389,8 @@ const $o = (t) => {
|
|
|
3363
3389
|
});
|
|
3364
3390
|
}, e[4] = n, e[5] = i, e[6] = o, e[7] = s, e[8] = u, e[9] = a) : a = e[9];
|
|
3365
3391
|
let c;
|
|
3366
|
-
e[10] !== u ? (c = (h,
|
|
3367
|
-
xe(u, h, `Failed to execute action "${
|
|
3392
|
+
e[10] !== u ? (c = (h, y) => {
|
|
3393
|
+
xe(u, h, `Failed to execute action "${y.actionID}"`);
|
|
3368
3394
|
}, e[10] = u, e[11] = c) : c = e[11];
|
|
3369
3395
|
let p;
|
|
3370
3396
|
e[12] !== l || e[13] !== a || e[14] !== c ? (p = {
|
|
@@ -3372,15 +3398,15 @@ const $o = (t) => {
|
|
|
3372
3398
|
onSuccess: a,
|
|
3373
3399
|
onError: c
|
|
3374
3400
|
}, e[12] = l, e[13] = a, e[14] = c, e[15] = p) : p = e[15];
|
|
3375
|
-
const
|
|
3401
|
+
const d = oe(p);
|
|
3376
3402
|
let g;
|
|
3377
|
-
return e[16] !==
|
|
3378
|
-
executeAction:
|
|
3379
|
-
isExecuting:
|
|
3380
|
-
error:
|
|
3381
|
-
}, e[16] =
|
|
3382
|
-
},
|
|
3383
|
-
const e =
|
|
3403
|
+
return e[16] !== d.error || e[17] !== d.isPending || e[18] !== d.mutateAsync ? (g = {
|
|
3404
|
+
executeAction: d.mutateAsync,
|
|
3405
|
+
isExecuting: d.isPending,
|
|
3406
|
+
error: d.error
|
|
3407
|
+
}, e[16] = d.error, e[17] = d.isPending, e[18] = d.mutateAsync, e[19] = g) : g = e[19], g;
|
|
3408
|
+
}, Bo = (t) => {
|
|
3409
|
+
const e = q(24), {
|
|
3384
3410
|
pluginID: r,
|
|
3385
3411
|
connectionID: n,
|
|
3386
3412
|
enabled: s
|
|
@@ -3395,119 +3421,119 @@ const $o = (t) => {
|
|
|
3395
3421
|
let c;
|
|
3396
3422
|
e[4] !== n || e[5] !== o ? (c = ["EDITOR_SCHEMAS", o, n], e[4] = n, e[5] = o, e[6] = c) : c = e[6];
|
|
3397
3423
|
let p;
|
|
3398
|
-
e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (p = i && l.phase === "connected" ? (
|
|
3424
|
+
e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (p = i && l.phase === "connected" ? (v) => {
|
|
3399
3425
|
const {
|
|
3400
|
-
signal:
|
|
3426
|
+
signal: m,
|
|
3401
3427
|
queryKey: _
|
|
3402
|
-
} =
|
|
3403
|
-
return a(_,
|
|
3428
|
+
} = v;
|
|
3429
|
+
return a(_, m, () => gs(o, n));
|
|
3404
3430
|
} : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] = p) : p = e[12];
|
|
3405
|
-
const
|
|
3431
|
+
const d = i && !!o && !!n && l.phase === "connected";
|
|
3406
3432
|
let g;
|
|
3407
|
-
e[13] !== c || e[14] !== p || e[15] !==
|
|
3433
|
+
e[13] !== c || e[14] !== p || e[15] !== d ? (g = {
|
|
3408
3434
|
queryKey: c,
|
|
3409
3435
|
queryFn: p,
|
|
3410
|
-
enabled:
|
|
3436
|
+
enabled: d,
|
|
3411
3437
|
staleTime: 6e5,
|
|
3412
3438
|
retry: 1
|
|
3413
|
-
}, e[13] = c, e[14] = p, e[15] =
|
|
3439
|
+
}, e[13] = c, e[14] = p, e[15] = d, e[16] = g) : g = e[16];
|
|
3414
3440
|
const h = re(g);
|
|
3415
|
-
let
|
|
3416
|
-
e[17] !== h.data ? (
|
|
3417
|
-
let
|
|
3418
|
-
return e[19] !== h.error || e[20] !== h.isLoading || e[21] !== h.refetch || e[22] !==
|
|
3419
|
-
schemas:
|
|
3441
|
+
let y;
|
|
3442
|
+
e[17] !== h.data ? (y = h.data ?? [], e[17] = h.data, e[18] = y) : y = e[18];
|
|
3443
|
+
let f;
|
|
3444
|
+
return e[19] !== h.error || e[20] !== h.isLoading || e[21] !== h.refetch || e[22] !== y ? (f = {
|
|
3445
|
+
schemas: y,
|
|
3420
3446
|
isLoading: h.isLoading,
|
|
3421
3447
|
error: h.error,
|
|
3422
3448
|
refetch: h.refetch
|
|
3423
|
-
}, e[19] = h.error, e[20] = h.isLoading, e[21] = h.refetch, e[22] =
|
|
3424
|
-
},
|
|
3449
|
+
}, e[19] = h.error, e[20] = h.isLoading, e[21] = h.refetch, e[22] = y, e[23] = f) : f = e[23], f;
|
|
3450
|
+
}, Ho = ({
|
|
3425
3451
|
pluginID: t,
|
|
3426
3452
|
connectionID: e,
|
|
3427
3453
|
enabled: r = !0
|
|
3428
3454
|
}) => {
|
|
3429
|
-
const n = ee(t), s =
|
|
3455
|
+
const n = ee(t), s = Se(), i = [n, e, "watch-state"], o = pe([]), u = pe(!1), l = Xe((d) => {
|
|
3430
3456
|
s.setQueryData(i, (g) => {
|
|
3431
3457
|
if (!g) return g;
|
|
3432
3458
|
const h = {
|
|
3433
3459
|
...g.resources,
|
|
3434
|
-
[
|
|
3435
|
-
},
|
|
3460
|
+
[d.resourceKey]: d.state
|
|
3461
|
+
}, y = {
|
|
3436
3462
|
...g.resourceCounts,
|
|
3437
|
-
[
|
|
3463
|
+
[d.resourceKey]: d.resourceCount
|
|
3438
3464
|
};
|
|
3439
|
-
let
|
|
3440
|
-
for (const
|
|
3441
|
-
|
|
3465
|
+
let f = 0, v = 0;
|
|
3466
|
+
for (const m of Object.values(h))
|
|
3467
|
+
m === Q.WatchStateSynced && f++, (m === Q.WatchStateError || m === Q.WatchStateFailed) && v++;
|
|
3442
3468
|
return {
|
|
3443
3469
|
...g,
|
|
3444
3470
|
resources: h,
|
|
3445
|
-
resourceCounts:
|
|
3471
|
+
resourceCounts: y,
|
|
3446
3472
|
totalResources: Object.keys(h).length,
|
|
3447
|
-
syncedCount:
|
|
3448
|
-
errorCount:
|
|
3473
|
+
syncedCount: f,
|
|
3474
|
+
errorCount: v
|
|
3449
3475
|
};
|
|
3450
3476
|
});
|
|
3451
3477
|
}, [s, n, e]), a = re({
|
|
3452
3478
|
queryKey: i,
|
|
3453
3479
|
queryFn: async () => {
|
|
3454
|
-
const
|
|
3455
|
-
if (!
|
|
3480
|
+
const d = await ys(n, e);
|
|
3481
|
+
if (!d) throw new Error("Failed to get watch state: null response");
|
|
3456
3482
|
const g = {};
|
|
3457
|
-
let h = 0,
|
|
3458
|
-
for (const [
|
|
3459
|
-
|
|
3460
|
-
const
|
|
3461
|
-
for (const [
|
|
3462
|
-
|
|
3483
|
+
let h = 0, y = 0;
|
|
3484
|
+
for (const [v, m] of Object.entries(d.resources ?? {}))
|
|
3485
|
+
m != null && (g[v] = m, m === Q.WatchStateSynced && h++, m === Q.WatchStateError && y++);
|
|
3486
|
+
const f = {};
|
|
3487
|
+
for (const [v, m] of Object.entries(d.resourceCounts ?? {}))
|
|
3488
|
+
m != null && (f[v] = m);
|
|
3463
3489
|
return {
|
|
3464
|
-
connection:
|
|
3490
|
+
connection: d.connectionId,
|
|
3465
3491
|
resources: g,
|
|
3466
|
-
resourceCounts:
|
|
3492
|
+
resourceCounts: f,
|
|
3467
3493
|
totalResources: Object.keys(g).length,
|
|
3468
3494
|
syncedCount: h,
|
|
3469
|
-
errorCount:
|
|
3495
|
+
errorCount: y
|
|
3470
3496
|
};
|
|
3471
3497
|
},
|
|
3472
3498
|
enabled: r && !!n && !!e,
|
|
3473
|
-
refetchInterval: (
|
|
3474
|
-
const g =
|
|
3499
|
+
refetchInterval: (d) => {
|
|
3500
|
+
const g = d.state.data;
|
|
3475
3501
|
if (!g || g.totalResources === 0) return 3e3;
|
|
3476
3502
|
let h = 0;
|
|
3477
|
-
for (const
|
|
3478
|
-
(
|
|
3503
|
+
for (const y of Object.values(g.resources))
|
|
3504
|
+
(y === Q.WatchStateSynced || y === Q.WatchStateError || y === Q.WatchStateStopped || y === Q.WatchStateFailed || y === Q.WatchStateForbidden || y === Q.WatchStateSkipped) && h++;
|
|
3479
3505
|
return h >= g.totalResources ? !1 : 3e3;
|
|
3480
3506
|
}
|
|
3481
3507
|
});
|
|
3482
3508
|
De(() => {
|
|
3483
3509
|
if (!a.data || u.current) return;
|
|
3484
3510
|
u.current = !0;
|
|
3485
|
-
const
|
|
3511
|
+
const d = o.current;
|
|
3486
3512
|
o.current = [];
|
|
3487
|
-
for (const g of
|
|
3513
|
+
for (const g of d)
|
|
3488
3514
|
l(g);
|
|
3489
3515
|
}, [a.data, l]), De(() => {
|
|
3490
3516
|
if (!r || !n || !e)
|
|
3491
3517
|
return;
|
|
3492
3518
|
u.current = !1, o.current = [];
|
|
3493
|
-
const
|
|
3519
|
+
const d = Z(`${n}/${e}/watch/STATE`, (g) => {
|
|
3494
3520
|
const h = g.data;
|
|
3495
3521
|
u.current ? l(h) : o.current.push(h);
|
|
3496
3522
|
});
|
|
3497
3523
|
return () => {
|
|
3498
|
-
|
|
3524
|
+
d(), u.current = !1, o.current = [];
|
|
3499
3525
|
};
|
|
3500
3526
|
}, [n, e, r, l]);
|
|
3501
3527
|
const c = a.data;
|
|
3502
3528
|
let p = 0;
|
|
3503
3529
|
if (c?.resources)
|
|
3504
|
-
for (const
|
|
3505
|
-
(
|
|
3530
|
+
for (const d of Object.values(c.resources))
|
|
3531
|
+
(d === Q.WatchStateSynced || d === Q.WatchStateError || d === Q.WatchStateStopped || d === Q.WatchStateFailed || d === Q.WatchStateForbidden || d === Q.WatchStateSkipped) && p++;
|
|
3506
3532
|
return {
|
|
3507
3533
|
/** Full summary query result */
|
|
3508
3534
|
summary: a,
|
|
3509
3535
|
/** Get the state of a specific resource type's watch */
|
|
3510
|
-
getResourceState: (
|
|
3536
|
+
getResourceState: (d) => c?.resources[d],
|
|
3511
3537
|
/** Whether all registered watches have reached a terminal state */
|
|
3512
3538
|
isFullySynced: c ? c.totalResources > 0 && p === c.totalResources : !1,
|
|
3513
3539
|
/** Sync progress as a 0-1 fraction (terminal states / total) */
|
|
@@ -3515,8 +3541,8 @@ const $o = (t) => {
|
|
|
3515
3541
|
/** Number of watches that encountered errors */
|
|
3516
3542
|
errorCount: c?.errorCount ?? 0
|
|
3517
3543
|
};
|
|
3518
|
-
},
|
|
3519
|
-
const t =
|
|
3544
|
+
}, Jo = () => {
|
|
3545
|
+
const t = q(16);
|
|
3520
3546
|
let e;
|
|
3521
3547
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ new Map(), t[0] = e) : e = t[0];
|
|
3522
3548
|
const [r, n] = Ie(e);
|
|
@@ -3527,51 +3553,51 @@ const $o = (t) => {
|
|
|
3527
3553
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ new Map(), t[2] = o) : o = t[2];
|
|
3528
3554
|
const u = pe(o);
|
|
3529
3555
|
let l;
|
|
3530
|
-
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = (
|
|
3531
|
-
const _ =
|
|
3556
|
+
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = (m) => {
|
|
3557
|
+
const _ = m.data, b = Dt(_), C = hn(i.current, _), E = vt(C);
|
|
3532
3558
|
if (n((I) => {
|
|
3533
3559
|
const w = new Map(I);
|
|
3534
|
-
return w.set(
|
|
3535
|
-
}), u.current.has(
|
|
3560
|
+
return w.set(b, E), w;
|
|
3561
|
+
}), u.current.has(b) && (clearTimeout(u.current.get(b)), u.current.delete(b)), nt(E)) {
|
|
3536
3562
|
const I = setTimeout(() => {
|
|
3537
3563
|
n((w) => {
|
|
3538
3564
|
const D = new Map(w);
|
|
3539
|
-
return D.delete(
|
|
3540
|
-
}), i.current.delete(
|
|
3565
|
+
return D.delete(b), D;
|
|
3566
|
+
}), i.current.delete(b), u.current.delete(b);
|
|
3541
3567
|
}, 5e3);
|
|
3542
|
-
u.current.set(
|
|
3568
|
+
u.current.set(b, I);
|
|
3543
3569
|
}
|
|
3544
3570
|
}, t[3] = l) : l = t[3];
|
|
3545
3571
|
const a = l;
|
|
3546
3572
|
let c, p;
|
|
3547
3573
|
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = () => {
|
|
3548
|
-
const
|
|
3574
|
+
const m = Z("watch/STATE", a);
|
|
3549
3575
|
return () => {
|
|
3550
|
-
|
|
3576
|
+
m();
|
|
3551
3577
|
for (const _ of u.current.values())
|
|
3552
3578
|
clearTimeout(_);
|
|
3553
3579
|
};
|
|
3554
3580
|
}, p = [a], t[4] = c, t[5] = p) : (c = t[4], p = t[5]), De(c, p);
|
|
3555
|
-
let
|
|
3556
|
-
t[6] !== r ? (h = Array.from(r.values()),
|
|
3557
|
-
const
|
|
3558
|
-
let
|
|
3559
|
-
return t[11] !==
|
|
3581
|
+
let d, g, h, y;
|
|
3582
|
+
t[6] !== r ? (h = Array.from(r.values()), d = fn(h), g = h.find(qr) ?? h[0] ?? null, y = pn(h), t[6] = r, t[7] = d, t[8] = g, t[9] = h, t[10] = y) : (d = t[7], g = t[8], h = t[9], y = t[10]);
|
|
3583
|
+
const f = y;
|
|
3584
|
+
let v;
|
|
3585
|
+
return t[11] !== f || t[12] !== d || t[13] !== g || t[14] !== h ? (v = {
|
|
3560
3586
|
syncs: h,
|
|
3561
|
-
hasSyncing:
|
|
3587
|
+
hasSyncing: d,
|
|
3562
3588
|
primarySync: g,
|
|
3563
|
-
aggregateProgress:
|
|
3564
|
-
}, t[11] =
|
|
3589
|
+
aggregateProgress: f
|
|
3590
|
+
}, t[11] = f, t[12] = d, t[13] = g, t[14] = h, t[15] = v) : v = t[15], v;
|
|
3565
3591
|
};
|
|
3566
|
-
function
|
|
3567
|
-
return !
|
|
3592
|
+
function qr(t) {
|
|
3593
|
+
return !nt(t);
|
|
3568
3594
|
}
|
|
3569
|
-
const
|
|
3570
|
-
const t =
|
|
3595
|
+
const Mr = () => {
|
|
3596
|
+
const t = L.useContext(tn);
|
|
3571
3597
|
if (!t)
|
|
3572
3598
|
throw new Error("useOperations must be used within an OperationsProvider");
|
|
3573
3599
|
return t;
|
|
3574
|
-
},
|
|
3600
|
+
}, Vo = ({
|
|
3575
3601
|
pluginID: t,
|
|
3576
3602
|
connectionID: e,
|
|
3577
3603
|
resourceKey: r
|
|
@@ -3581,73 +3607,73 @@ const Lr = () => {
|
|
|
3581
3607
|
} = we(), {
|
|
3582
3608
|
addOperation: i,
|
|
3583
3609
|
updateOperation: o
|
|
3584
|
-
} =
|
|
3585
|
-
p.disposed || (p.disposed = !0, p.unsubscribe?.(), p.open?.cancel(), p.attach?.cancel(), p.handle && (
|
|
3586
|
-
}),
|
|
3610
|
+
} = Mr(), u = L.useRef(/* @__PURE__ */ new Set()), l = L.useCallback((p, d = !1) => {
|
|
3611
|
+
p.disposed || (p.disposed = !0, p.unsubscribe?.(), p.open?.cancel(), p.attach?.cancel(), p.handle && (Pt(p.handle).catch(() => {
|
|
3612
|
+
}), d && o(p.handle, {
|
|
3587
3613
|
status: "cancelled",
|
|
3588
3614
|
message: "Cancelled",
|
|
3589
3615
|
completedAt: Date.now()
|
|
3590
3616
|
})), u.current.delete(p));
|
|
3591
3617
|
}, [o]);
|
|
3592
|
-
|
|
3618
|
+
L.useEffect(() => () => {
|
|
3593
3619
|
for (const p of u.current) l(p, !0);
|
|
3594
3620
|
}, [n, e, r, l]);
|
|
3595
|
-
const a =
|
|
3621
|
+
const a = L.useCallback(async ({
|
|
3596
3622
|
actionID: p,
|
|
3597
|
-
id:
|
|
3623
|
+
id: d,
|
|
3598
3624
|
namespace: g,
|
|
3599
3625
|
label: h,
|
|
3600
|
-
params:
|
|
3626
|
+
params: y = {}
|
|
3601
3627
|
}) => {
|
|
3602
|
-
const
|
|
3628
|
+
const f = {
|
|
3603
3629
|
disposed: !1,
|
|
3604
3630
|
terminal: !1,
|
|
3605
3631
|
sequence: 0
|
|
3606
3632
|
};
|
|
3607
|
-
u.current.add(
|
|
3633
|
+
u.current.add(f);
|
|
3608
3634
|
try {
|
|
3609
|
-
if (await
|
|
3610
|
-
|
|
3611
|
-
id:
|
|
3635
|
+
if (await Oe(n, e), f.disposed) throw new Error("Stream action was cancelled before the connection became ready");
|
|
3636
|
+
f.open = ms(n, e, r, p, Zt.createFrom({
|
|
3637
|
+
id: d,
|
|
3612
3638
|
namespace: g,
|
|
3613
|
-
params:
|
|
3639
|
+
params: y
|
|
3614
3640
|
}));
|
|
3615
|
-
const
|
|
3616
|
-
if (
|
|
3617
|
-
return
|
|
3618
|
-
}),
|
|
3619
|
-
|
|
3620
|
-
id:
|
|
3641
|
+
const v = await f.open;
|
|
3642
|
+
if (f.open = void 0, f.disposed)
|
|
3643
|
+
return Pt(v).catch(() => {
|
|
3644
|
+
}), v;
|
|
3645
|
+
f.handle = v, i({
|
|
3646
|
+
id: v,
|
|
3621
3647
|
label: h,
|
|
3622
3648
|
resourceKey: r,
|
|
3623
|
-
resourceName:
|
|
3649
|
+
resourceName: d,
|
|
3624
3650
|
namespace: g,
|
|
3625
3651
|
connectionID: e,
|
|
3626
3652
|
status: "running",
|
|
3627
3653
|
startedAt: Date.now()
|
|
3628
3654
|
});
|
|
3629
|
-
const
|
|
3630
|
-
if (
|
|
3631
|
-
|
|
3632
|
-
const C =
|
|
3655
|
+
const m = (b) => {
|
|
3656
|
+
if (f.disposed || !Number.isSafeInteger(b.sequence) || b.sequence <= f.sequence) return;
|
|
3657
|
+
f.sequence = b.sequence;
|
|
3658
|
+
const C = b.event, E = C.data ?? {};
|
|
3633
3659
|
if (C.type === "error") {
|
|
3634
|
-
|
|
3635
|
-
const I =
|
|
3636
|
-
o(
|
|
3637
|
-
status:
|
|
3660
|
+
f.terminal = !0;
|
|
3661
|
+
const I = be(C.error);
|
|
3662
|
+
o(v, {
|
|
3663
|
+
status: et(I) ? "cancelled" : "error",
|
|
3638
3664
|
message: I.title,
|
|
3639
3665
|
completedAt: Date.now()
|
|
3640
|
-
}), xe(s, I, h), l(
|
|
3666
|
+
}), xe(s, I, h), l(f);
|
|
3641
3667
|
} else if (C.type === "complete") {
|
|
3642
|
-
|
|
3668
|
+
f.terminal = !0;
|
|
3643
3669
|
const I = typeof E.message == "string" ? E.message : `${h} completed`;
|
|
3644
|
-
o(
|
|
3670
|
+
o(v, {
|
|
3645
3671
|
status: "completed",
|
|
3646
3672
|
message: I,
|
|
3647
3673
|
completedAt: Date.now()
|
|
3648
|
-
}), s(I, "success"), l(
|
|
3674
|
+
}), s(I, "success"), l(f);
|
|
3649
3675
|
} else
|
|
3650
|
-
o(
|
|
3676
|
+
o(v, {
|
|
3651
3677
|
message: typeof E.message == "string" ? E.message : void 0,
|
|
3652
3678
|
progress: typeof E.ready == "number" && typeof E.desired == "number" ? {
|
|
3653
3679
|
ready: E.ready,
|
|
@@ -3655,20 +3681,20 @@ const Lr = () => {
|
|
|
3655
3681
|
} : void 0
|
|
3656
3682
|
});
|
|
3657
3683
|
};
|
|
3658
|
-
|
|
3659
|
-
const _ = await
|
|
3660
|
-
return
|
|
3661
|
-
} catch (
|
|
3662
|
-
if (
|
|
3663
|
-
throw
|
|
3664
|
-
status:
|
|
3665
|
-
message:
|
|
3684
|
+
f.unsubscribe = Z(`action/stream/${v}`, (b) => m(b.data)), f.attach = vs(v);
|
|
3685
|
+
const _ = await f.attach;
|
|
3686
|
+
return f.attach = void 0, m(_), v;
|
|
3687
|
+
} catch (v) {
|
|
3688
|
+
if (f.terminal && f.handle) return f.handle;
|
|
3689
|
+
throw f.disposed || (f.handle && o(f.handle, {
|
|
3690
|
+
status: et(v) ? "cancelled" : "error",
|
|
3691
|
+
message: be(v).title,
|
|
3666
3692
|
completedAt: Date.now()
|
|
3667
|
-
}), xe(s,
|
|
3693
|
+
}), xe(s, v, `Failed to start "${p}"`)), l(f), v;
|
|
3668
3694
|
}
|
|
3669
|
-
}, [n, e, r, i, o, s, l]), c =
|
|
3670
|
-
for (const
|
|
3671
|
-
l(
|
|
3695
|
+
}, [n, e, r, i, o, s, l]), c = L.useCallback((p) => {
|
|
3696
|
+
for (const d of u.current) if (d.handle === p) {
|
|
3697
|
+
l(d, !0);
|
|
3672
3698
|
return;
|
|
3673
3699
|
}
|
|
3674
3700
|
}, [l]);
|
|
@@ -3677,15 +3703,15 @@ const Lr = () => {
|
|
|
3677
3703
|
cancelStreamAction: c
|
|
3678
3704
|
};
|
|
3679
3705
|
};
|
|
3680
|
-
function
|
|
3706
|
+
function Ur(t, e) {
|
|
3681
3707
|
return `${t}/${e}/graph/CHANGED`;
|
|
3682
3708
|
}
|
|
3683
|
-
function
|
|
3684
|
-
const s =
|
|
3709
|
+
function Rt(t, e, r, n) {
|
|
3710
|
+
const s = q(16), i = Se(), o = pe(r);
|
|
3685
3711
|
let u, l;
|
|
3686
3712
|
s[0] !== r ? (u = () => {
|
|
3687
3713
|
o.current = r;
|
|
3688
|
-
}, l = [r], s[0] = r, s[1] = u, s[2] = l) : (u = s[1], l = s[2]),
|
|
3714
|
+
}, l = [r], s[0] = r, s[1] = u, s[2] = l) : (u = s[1], l = s[2]), gt(u, l);
|
|
3689
3715
|
let a;
|
|
3690
3716
|
s[3] !== r ? (a = JSON.stringify(r), s[3] = r, s[4] = a) : a = s[4];
|
|
3691
3717
|
const c = a;
|
|
@@ -3693,7 +3719,7 @@ function It(t, e, r, n) {
|
|
|
3693
3719
|
s[5] !== e || s[6] !== n || s[7] !== t || s[8] !== i ? (p = () => {
|
|
3694
3720
|
if (!n || !t || !e)
|
|
3695
3721
|
return;
|
|
3696
|
-
const g = Z(
|
|
3722
|
+
const g = Z(Ur(t, e), () => {
|
|
3697
3723
|
i.invalidateQueries({
|
|
3698
3724
|
queryKey: o.current,
|
|
3699
3725
|
exact: !0
|
|
@@ -3703,10 +3729,10 @@ function It(t, e, r, n) {
|
|
|
3703
3729
|
g();
|
|
3704
3730
|
};
|
|
3705
3731
|
}, s[5] = e, s[6] = n, s[7] = t, s[8] = i, s[9] = p) : p = s[9];
|
|
3706
|
-
let
|
|
3707
|
-
s[10] !== e || s[11] !== n || s[12] !== c || s[13] !== t || s[14] !== i ? (
|
|
3732
|
+
let d;
|
|
3733
|
+
s[10] !== e || s[11] !== n || s[12] !== c || s[13] !== t || s[14] !== i ? (d = [i, t, e, c, n], s[10] = e, s[11] = n, s[12] = c, s[13] = t, s[14] = i, s[15] = d) : d = s[15], De(p, d);
|
|
3708
3734
|
}
|
|
3709
|
-
const
|
|
3735
|
+
const Wr = {
|
|
3710
3736
|
owns: {
|
|
3711
3737
|
outgoing: "Owns",
|
|
3712
3738
|
incoming: "Owned by"
|
|
@@ -3736,19 +3762,19 @@ const qr = {
|
|
|
3736
3762
|
incoming: "Selected by"
|
|
3737
3763
|
}
|
|
3738
3764
|
};
|
|
3739
|
-
function
|
|
3740
|
-
const r =
|
|
3765
|
+
function Yo(t, e) {
|
|
3766
|
+
const r = Wr[t];
|
|
3741
3767
|
if (r)
|
|
3742
3768
|
return r[e];
|
|
3743
3769
|
const n = t.replace(/_/g, " ");
|
|
3744
3770
|
return e === "outgoing" ? n : `${n} (incoming)`;
|
|
3745
3771
|
}
|
|
3746
|
-
function
|
|
3772
|
+
function Kr(t, e) {
|
|
3747
3773
|
return t.pluginId === e.pluginId && t.connectionId === e.connectionId && t.resourceKey === e.resourceKey && t.id === e.id && (t.namespace ?? "") === (e.namespace ?? "");
|
|
3748
3774
|
}
|
|
3749
|
-
function
|
|
3775
|
+
function Gr(t, e) {
|
|
3750
3776
|
return e.map((r) => {
|
|
3751
|
-
const n =
|
|
3777
|
+
const n = Kr(r.source, t);
|
|
3752
3778
|
return {
|
|
3753
3779
|
resource: n ? r.target : r.source,
|
|
3754
3780
|
type: r.type,
|
|
@@ -3757,8 +3783,8 @@ function Ur(t, e) {
|
|
|
3757
3783
|
};
|
|
3758
3784
|
});
|
|
3759
3785
|
}
|
|
3760
|
-
const
|
|
3761
|
-
const e =
|
|
3786
|
+
const Zo = (t) => {
|
|
3787
|
+
const e = q(44), {
|
|
3762
3788
|
pluginID: r,
|
|
3763
3789
|
connectionID: n,
|
|
3764
3790
|
resourceKey: s,
|
|
@@ -3768,58 +3794,58 @@ const jo = (t) => {
|
|
|
3768
3794
|
relationshipType: l,
|
|
3769
3795
|
enabled: a,
|
|
3770
3796
|
refetchInterval: c
|
|
3771
|
-
} = t, p = o === void 0 ? "" : o,
|
|
3772
|
-
let
|
|
3773
|
-
e[0] !== n || e[1] !==
|
|
3774
|
-
const
|
|
3775
|
-
let
|
|
3776
|
-
e[8] !== n || e[9] !==
|
|
3777
|
-
pluginID:
|
|
3797
|
+
} = t, p = o === void 0 ? "" : o, d = u === void 0 ? "both" : u, g = a === void 0 ? !0 : a, h = c === void 0 ? !1 : c, y = ee(r), f = l ?? null;
|
|
3798
|
+
let v;
|
|
3799
|
+
e[0] !== n || e[1] !== d || e[2] !== p || e[3] !== y || e[4] !== i || e[5] !== s || e[6] !== f ? (v = ["RESOURCE_RELATED", y, n, s, p, i, d, f], e[0] = n, e[1] = d, e[2] = p, e[3] = y, e[4] = i, e[5] = s, e[6] = f, e[7] = v) : v = e[7];
|
|
3800
|
+
const m = v, _ = g && !!s && !!i;
|
|
3801
|
+
let b;
|
|
3802
|
+
e[8] !== n || e[9] !== y || e[10] !== _ ? (b = {
|
|
3803
|
+
pluginID: y,
|
|
3778
3804
|
connectionID: n,
|
|
3779
3805
|
enabled: _
|
|
3780
|
-
}, e[8] = n, e[9] =
|
|
3781
|
-
const C = ge(
|
|
3782
|
-
|
|
3806
|
+
}, e[8] = n, e[9] = y, e[10] = _, e[11] = b) : b = e[11];
|
|
3807
|
+
const C = ge(b), E = Ce(y, n), I = g && !!y && !!n && !!s && !!i && C.phase === "connected";
|
|
3808
|
+
Rt(y, n, m, I);
|
|
3783
3809
|
let w;
|
|
3784
|
-
e[12] !== n || e[13] !==
|
|
3810
|
+
e[12] !== n || e[13] !== d || e[14] !== E || e[15] !== p || e[16] !== y || e[17] !== I || e[18] !== l || e[19] !== i || e[20] !== s ? (w = I ? (k) => {
|
|
3785
3811
|
const {
|
|
3786
3812
|
signal: M,
|
|
3787
3813
|
queryKey: W
|
|
3788
3814
|
} = k;
|
|
3789
|
-
return E(W, M, () =>
|
|
3790
|
-
} : Ee, e[12] = n, e[13] =
|
|
3815
|
+
return E(W, M, () => _s(y, n, s, p, i, d, l ?? null));
|
|
3816
|
+
} : Ee, e[12] = n, e[13] = d, e[14] = E, e[15] = p, e[16] = y, e[17] = I, e[18] = l, e[19] = i, e[20] = s, e[21] = w) : w = e[21];
|
|
3791
3817
|
let D;
|
|
3792
|
-
e[22] !== I || e[23] !==
|
|
3793
|
-
queryKey:
|
|
3818
|
+
e[22] !== I || e[23] !== m || e[24] !== h || e[25] !== w ? (D = {
|
|
3819
|
+
queryKey: m,
|
|
3794
3820
|
queryFn: w,
|
|
3795
3821
|
enabled: I,
|
|
3796
3822
|
refetchInterval: h
|
|
3797
|
-
}, e[22] = I, e[23] =
|
|
3823
|
+
}, e[22] = I, e[23] = m, e[24] = h, e[25] = w, e[26] = D) : D = e[26];
|
|
3798
3824
|
const x = re(D);
|
|
3799
|
-
let
|
|
3800
|
-
if (e[27] !== n || e[28] !== p || e[29] !==
|
|
3825
|
+
let P, T;
|
|
3826
|
+
if (e[27] !== n || e[28] !== p || e[29] !== y || e[30] !== x.data || e[31] !== i || e[32] !== s) {
|
|
3801
3827
|
const k = {
|
|
3802
|
-
pluginId:
|
|
3828
|
+
pluginId: y,
|
|
3803
3829
|
connectionId: n,
|
|
3804
3830
|
resourceKey: s,
|
|
3805
3831
|
id: i,
|
|
3806
3832
|
namespace: p
|
|
3807
3833
|
};
|
|
3808
3834
|
let M;
|
|
3809
|
-
e[35] !== x.data ? (M = x.data ?? [], e[35] = x.data, e[36] = M) : M = e[36],
|
|
3835
|
+
e[35] !== x.data ? (M = x.data ?? [], e[35] = x.data, e[36] = M) : M = e[36], P = M, T = Gr(k, P), e[27] = n, e[28] = p, e[29] = y, e[30] = x.data, e[31] = i, e[32] = s, e[33] = P, e[34] = T;
|
|
3810
3836
|
} else
|
|
3811
|
-
|
|
3812
|
-
let
|
|
3813
|
-
return e[37] !==
|
|
3814
|
-
related:
|
|
3815
|
-
edges:
|
|
3837
|
+
P = e[33], T = e[34];
|
|
3838
|
+
let A;
|
|
3839
|
+
return e[37] !== P || e[38] !== x.error || e[39] !== x.isFetching || e[40] !== x.isLoading || e[41] !== x.refetch || e[42] !== T ? (A = {
|
|
3840
|
+
related: T,
|
|
3841
|
+
edges: P,
|
|
3816
3842
|
isLoading: x.isLoading,
|
|
3817
3843
|
isFetching: x.isFetching,
|
|
3818
3844
|
error: x.error,
|
|
3819
3845
|
refetch: x.refetch
|
|
3820
|
-
}, e[37] =
|
|
3821
|
-
},
|
|
3822
|
-
const e =
|
|
3846
|
+
}, e[37] = P, e[38] = x.error, e[39] = x.isFetching, e[40] = x.isLoading, e[41] = x.refetch, e[42] = T, e[43] = A) : A = e[43], A;
|
|
3847
|
+
}, Xo = (t) => {
|
|
3848
|
+
const e = q(31), {
|
|
3823
3849
|
pluginID: r,
|
|
3824
3850
|
connectionID: n,
|
|
3825
3851
|
resourceKey: s,
|
|
@@ -3828,33 +3854,33 @@ const jo = (t) => {
|
|
|
3828
3854
|
maxDepth: u,
|
|
3829
3855
|
enabled: l,
|
|
3830
3856
|
refetchInterval: a
|
|
3831
|
-
} = t, c = o === void 0 ? "" : o, p = u === void 0 ? 3 : u,
|
|
3832
|
-
let v;
|
|
3833
|
-
e[0] !== n || e[1] !== p || e[2] !== c || e[3] !== h || e[4] !== i || e[5] !== s ? (v = ["RESOURCE_DEPENDENCY_TREE", h, n, s, c, i, p], e[0] = n, e[1] = p, e[2] = c, e[3] = h, e[4] = i, e[5] = s, e[6] = v) : v = e[6];
|
|
3834
|
-
const d = v, m = f && !!s && !!i;
|
|
3857
|
+
} = t, c = o === void 0 ? "" : o, p = u === void 0 ? 3 : u, d = l === void 0 ? !0 : l, g = a === void 0 ? !1 : a, h = ee(r);
|
|
3835
3858
|
let y;
|
|
3836
|
-
e[
|
|
3859
|
+
e[0] !== n || e[1] !== p || e[2] !== c || e[3] !== h || e[4] !== i || e[5] !== s ? (y = ["RESOURCE_DEPENDENCY_TREE", h, n, s, c, i, p], e[0] = n, e[1] = p, e[2] = c, e[3] = h, e[4] = i, e[5] = s, e[6] = y) : y = e[6];
|
|
3860
|
+
const f = y, v = d && !!s && !!i;
|
|
3861
|
+
let m;
|
|
3862
|
+
e[7] !== n || e[8] !== h || e[9] !== v ? (m = {
|
|
3837
3863
|
pluginID: h,
|
|
3838
3864
|
connectionID: n,
|
|
3839
|
-
enabled:
|
|
3840
|
-
}, e[7] = n, e[8] = h, e[9] =
|
|
3841
|
-
const _ = ge(
|
|
3842
|
-
|
|
3865
|
+
enabled: v
|
|
3866
|
+
}, e[7] = n, e[8] = h, e[9] = v, e[10] = m) : m = e[10];
|
|
3867
|
+
const _ = ge(m), b = Ce(h, n), C = d && !!h && !!n && !!s && !!i && _.phase === "connected";
|
|
3868
|
+
Rt(h, n, f, C);
|
|
3843
3869
|
let E;
|
|
3844
|
-
e[11] !== n || e[12] !==
|
|
3870
|
+
e[11] !== n || e[12] !== b || e[13] !== p || e[14] !== c || e[15] !== h || e[16] !== C || e[17] !== i || e[18] !== s ? (E = C ? (P) => {
|
|
3845
3871
|
const {
|
|
3846
|
-
signal:
|
|
3847
|
-
queryKey:
|
|
3848
|
-
} =
|
|
3849
|
-
return
|
|
3850
|
-
} : Ee, e[11] = n, e[12] =
|
|
3872
|
+
signal: T,
|
|
3873
|
+
queryKey: A
|
|
3874
|
+
} = P;
|
|
3875
|
+
return b(A, T, () => bs(h, n, s, c, i, p));
|
|
3876
|
+
} : Ee, e[11] = n, e[12] = b, e[13] = p, e[14] = c, e[15] = h, e[16] = C, e[17] = i, e[18] = s, e[19] = E) : E = e[19];
|
|
3851
3877
|
let I;
|
|
3852
|
-
e[20] !== C || e[21] !==
|
|
3853
|
-
queryKey:
|
|
3878
|
+
e[20] !== C || e[21] !== f || e[22] !== g || e[23] !== E ? (I = {
|
|
3879
|
+
queryKey: f,
|
|
3854
3880
|
queryFn: E,
|
|
3855
3881
|
enabled: C,
|
|
3856
3882
|
refetchInterval: g
|
|
3857
|
-
}, e[20] = C, e[21] =
|
|
3883
|
+
}, e[20] = C, e[21] = f, e[22] = g, e[23] = E, e[24] = I) : I = e[24];
|
|
3858
3884
|
const w = re(I), D = w.data ?? null;
|
|
3859
3885
|
let x;
|
|
3860
3886
|
return e[25] !== w.error || e[26] !== w.isFetching || e[27] !== w.isLoading || e[28] !== w.refetch || e[29] !== D ? (x = {
|
|
@@ -3864,8 +3890,8 @@ const jo = (t) => {
|
|
|
3864
3890
|
error: w.error,
|
|
3865
3891
|
refetch: w.refetch
|
|
3866
3892
|
}, e[25] = w.error, e[26] = w.isFetching, e[27] = w.isLoading, e[28] = w.refetch, e[29] = D, e[30] = x) : x = e[30], x;
|
|
3867
|
-
},
|
|
3868
|
-
const e =
|
|
3893
|
+
}, ei = (t) => {
|
|
3894
|
+
const e = q(32), {
|
|
3869
3895
|
pluginID: r,
|
|
3870
3896
|
connectionID: n,
|
|
3871
3897
|
resourceKey: s,
|
|
@@ -3874,32 +3900,32 @@ const jo = (t) => {
|
|
|
3874
3900
|
upDepth: u,
|
|
3875
3901
|
downDepth: l,
|
|
3876
3902
|
enabled: a
|
|
3877
|
-
} = t, c = o === void 0 ? "" : o, p = u === void 0 ? 2 : u,
|
|
3878
|
-
let v;
|
|
3879
|
-
e[0] !== n || e[1] !== f || e[2] !== c || e[3] !== h || e[4] !== i || e[5] !== s || e[6] !== p ? (v = ["RESOURCE_GRAPH", h, n, s, c, i, p, f], e[0] = n, e[1] = f, e[2] = c, e[3] = h, e[4] = i, e[5] = s, e[6] = p, e[7] = v) : v = e[7];
|
|
3880
|
-
const d = v, m = g && !!s && !!i;
|
|
3903
|
+
} = t, c = o === void 0 ? "" : o, p = u === void 0 ? 2 : u, d = l === void 0 ? 3 : l, g = a === void 0 ? !0 : a, h = ee(r);
|
|
3881
3904
|
let y;
|
|
3882
|
-
e[
|
|
3905
|
+
e[0] !== n || e[1] !== d || e[2] !== c || e[3] !== h || e[4] !== i || e[5] !== s || e[6] !== p ? (y = ["RESOURCE_GRAPH", h, n, s, c, i, p, d], e[0] = n, e[1] = d, e[2] = c, e[3] = h, e[4] = i, e[5] = s, e[6] = p, e[7] = y) : y = e[7];
|
|
3906
|
+
const f = y, v = g && !!s && !!i;
|
|
3907
|
+
let m;
|
|
3908
|
+
e[8] !== n || e[9] !== h || e[10] !== v ? (m = {
|
|
3883
3909
|
pluginID: h,
|
|
3884
3910
|
connectionID: n,
|
|
3885
|
-
enabled:
|
|
3886
|
-
}, e[8] = n, e[9] = h, e[10] =
|
|
3887
|
-
const _ = ge(
|
|
3888
|
-
|
|
3911
|
+
enabled: v
|
|
3912
|
+
}, e[8] = n, e[9] = h, e[10] = v, e[11] = m) : m = e[11];
|
|
3913
|
+
const _ = ge(m), b = Ce(h, n), C = g && !!h && !!n && !!s && !!i && _.phase === "connected";
|
|
3914
|
+
Rt(h, n, f, C);
|
|
3889
3915
|
let E;
|
|
3890
|
-
e[12] !== n || e[13] !==
|
|
3916
|
+
e[12] !== n || e[13] !== d || e[14] !== b || e[15] !== c || e[16] !== h || e[17] !== C || e[18] !== i || e[19] !== s || e[20] !== p ? (E = C ? (P) => {
|
|
3891
3917
|
const {
|
|
3892
|
-
signal:
|
|
3893
|
-
queryKey:
|
|
3894
|
-
} =
|
|
3895
|
-
return
|
|
3896
|
-
} : Ee, e[12] = n, e[13] =
|
|
3918
|
+
signal: T,
|
|
3919
|
+
queryKey: A
|
|
3920
|
+
} = P;
|
|
3921
|
+
return b(A, T, () => Ss(h, n, s, c, i, p, d));
|
|
3922
|
+
} : Ee, e[12] = n, e[13] = d, e[14] = b, e[15] = c, e[16] = h, e[17] = C, e[18] = i, e[19] = s, e[20] = p, e[21] = E) : E = e[21];
|
|
3897
3923
|
let I;
|
|
3898
|
-
e[22] !== C || e[23] !==
|
|
3899
|
-
queryKey:
|
|
3924
|
+
e[22] !== C || e[23] !== f || e[24] !== E ? (I = {
|
|
3925
|
+
queryKey: f,
|
|
3900
3926
|
queryFn: E,
|
|
3901
3927
|
enabled: C
|
|
3902
|
-
}, e[22] = C, e[23] =
|
|
3928
|
+
}, e[22] = C, e[23] = f, e[24] = E, e[25] = I) : I = e[25];
|
|
3903
3929
|
const w = re(I), D = w.data ?? null;
|
|
3904
3930
|
let x;
|
|
3905
3931
|
return e[26] !== w.error || e[27] !== w.isFetching || e[28] !== w.isLoading || e[29] !== w.refetch || e[30] !== D ? (x = {
|
|
@@ -3909,40 +3935,56 @@ const jo = (t) => {
|
|
|
3909
3935
|
error: w.error,
|
|
3910
3936
|
refetch: w.refetch
|
|
3911
3937
|
}, e[26] = w.error, e[27] = w.isFetching, e[28] = w.isLoading, e[29] = w.refetch, e[30] = D, e[31] = x) : x = e[31], x;
|
|
3912
|
-
},
|
|
3913
|
-
const t =
|
|
3938
|
+
}, ti = () => {
|
|
3939
|
+
const t = L.useContext(en);
|
|
3914
3940
|
if (!t)
|
|
3915
3941
|
throw new Error("useSettings must be used within a SettingsProvider");
|
|
3916
3942
|
return t;
|
|
3917
|
-
},
|
|
3918
|
-
const e =
|
|
3919
|
-
let r, n;
|
|
3943
|
+
}, Qr = 1, ni = (t) => {
|
|
3944
|
+
const e = q(19);
|
|
3945
|
+
let r, n, s, i;
|
|
3920
3946
|
if (e[0] !== t) {
|
|
3921
3947
|
const {
|
|
3922
|
-
to:
|
|
3923
|
-
withinContext:
|
|
3924
|
-
|
|
3948
|
+
to: y,
|
|
3949
|
+
withinContext: f,
|
|
3950
|
+
onClick: v,
|
|
3951
|
+
onAuxClick: m,
|
|
3952
|
+
..._
|
|
3925
3953
|
} = t;
|
|
3926
|
-
n =
|
|
3954
|
+
i = y, n = v, r = m, s = _, e[0] = t, e[1] = r, e[2] = n, e[3] = s, e[4] = i;
|
|
3927
3955
|
} else
|
|
3928
|
-
r = e[1], n = e[2];
|
|
3956
|
+
r = e[1], n = e[2], s = e[3], i = e[4];
|
|
3929
3957
|
const {
|
|
3930
|
-
pluginId:
|
|
3931
|
-
} =
|
|
3932
|
-
|
|
3933
|
-
const
|
|
3934
|
-
let
|
|
3935
|
-
e[
|
|
3958
|
+
pluginId: o
|
|
3959
|
+
} = Et(), u = L.useContext(wt);
|
|
3960
|
+
o || console.error("Link used outside of a plugin context");
|
|
3961
|
+
const l = `/_plugin/${o}${i.startsWith("/") ? "" : "/"}${i}`;
|
|
3962
|
+
let a;
|
|
3963
|
+
e[5] !== n || e[6] !== l || e[7] !== u ? (a = (y) => {
|
|
3964
|
+
n?.(y), !(y.defaultPrevented || !u || !(y.ctrlKey || y.metaKey)) && (y.preventDefault(), u.openInNewTab(l, {
|
|
3965
|
+
background: !0
|
|
3966
|
+
}));
|
|
3967
|
+
}, e[5] = n, e[6] = l, e[7] = u, e[8] = a) : a = e[8];
|
|
3968
|
+
const c = a;
|
|
3969
|
+
let p;
|
|
3970
|
+
e[9] !== r || e[10] !== l || e[11] !== u ? (p = (y) => {
|
|
3971
|
+
r?.(y), !(y.defaultPrevented || !u || y.button !== Qr) && (y.preventDefault(), u.openInNewTab(l, {
|
|
3972
|
+
background: !0
|
|
3973
|
+
}));
|
|
3974
|
+
}, e[9] = r, e[10] = l, e[11] = u, e[12] = p) : p = e[12];
|
|
3975
|
+
const d = p;
|
|
3976
|
+
let g;
|
|
3977
|
+
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
|
|
3936
3978
|
textDecoration: "none",
|
|
3937
3979
|
color: "inherit"
|
|
3938
|
-
}, e[
|
|
3939
|
-
let
|
|
3940
|
-
return e[
|
|
3980
|
+
}, e[13] = g) : g = e[13];
|
|
3981
|
+
let h;
|
|
3982
|
+
return e[14] !== d || e[15] !== c || e[16] !== s || e[17] !== l ? (h = /* @__PURE__ */ N(xn, { style: g, ...s, to: l, onClick: c, onAuxClick: d }), e[14] = d, e[15] = c, e[16] = s, e[17] = l, e[18] = h) : h = e[18], h;
|
|
3941
3983
|
};
|
|
3942
|
-
function
|
|
3943
|
-
const t =
|
|
3984
|
+
function si() {
|
|
3985
|
+
const t = q(10), e = An(), r = Tn(), {
|
|
3944
3986
|
pluginId: n
|
|
3945
|
-
} =
|
|
3987
|
+
} = Et();
|
|
3946
3988
|
n || console.error("usePluginRouter used outside of a plugin context");
|
|
3947
3989
|
const s = `/_plugin/${n}`;
|
|
3948
3990
|
let i;
|
|
@@ -3951,9 +3993,9 @@ function Vo() {
|
|
|
3951
3993
|
let u;
|
|
3952
3994
|
t[3] !== e || t[4] !== s ? (u = (c, p) => {
|
|
3953
3995
|
const {
|
|
3954
|
-
...
|
|
3996
|
+
...d
|
|
3955
3997
|
} = p ?? {};
|
|
3956
|
-
c.startsWith("/") ? e(`${s}${c}`,
|
|
3998
|
+
c.startsWith("/") ? e(`${s}${c}`, d) : e(c, d);
|
|
3957
3999
|
}, t[3] = e, t[4] = s, t[5] = u) : u = t[5];
|
|
3958
4000
|
const l = u;
|
|
3959
4001
|
let a;
|
|
@@ -3963,9 +4005,9 @@ function Vo() {
|
|
|
3963
4005
|
pluginPath: o
|
|
3964
4006
|
}, t[6] = r, t[7] = l, t[8] = o, t[9] = a) : a = t[9], a;
|
|
3965
4007
|
}
|
|
3966
|
-
class
|
|
4008
|
+
class ri {
|
|
3967
4009
|
}
|
|
3968
|
-
class
|
|
4010
|
+
class oi {
|
|
3969
4011
|
_extensions;
|
|
3970
4012
|
/**
|
|
3971
4013
|
* The root component to render for the application window.
|
|
@@ -4022,8 +4064,8 @@ class Zo {
|
|
|
4022
4064
|
get Window() {
|
|
4023
4065
|
if (!this._routes && this.root)
|
|
4024
4066
|
return /* @__PURE__ */ N(this.root, {});
|
|
4025
|
-
const e =
|
|
4026
|
-
return /* @__PURE__ */ N(
|
|
4067
|
+
const e = Nn(this._routes || []);
|
|
4068
|
+
return /* @__PURE__ */ N(ks, { router: e });
|
|
4027
4069
|
}
|
|
4028
4070
|
/**
|
|
4029
4071
|
* Register extension points for other plugins to extend the functionality
|
|
@@ -4053,8 +4095,8 @@ class Zo {
|
|
|
4053
4095
|
return this._routes = e, this;
|
|
4054
4096
|
}
|
|
4055
4097
|
}
|
|
4056
|
-
var
|
|
4057
|
-
const
|
|
4098
|
+
var jr = /* @__PURE__ */ ((t) => (t.MISSING_MANIFEST = "MISSING_MANIFEST", t.MISSING_PLUGIN = "MISSING_PLUGIN", t.MISSING_ENTRYPOINT = "MISSING_ENTRYPOINT", t))(jr || {});
|
|
4099
|
+
const ii = (t) => {
|
|
4058
4100
|
const e = t.split("::");
|
|
4059
4101
|
return e.length === 1 ? {
|
|
4060
4102
|
group: "core",
|
|
@@ -4065,14 +4107,14 @@ const Xo = (t) => {
|
|
|
4065
4107
|
version: e[1] || "",
|
|
4066
4108
|
kind: e[2] || e[0]
|
|
4067
4109
|
};
|
|
4068
|
-
},
|
|
4069
|
-
function
|
|
4070
|
-
window.dispatchEvent(new CustomEvent(
|
|
4110
|
+
}, ci = (t) => !t || t === "core" ? "Core" : t.charAt(0).toUpperCase() + t.slice(1), zr = "omniview/global-search/open";
|
|
4111
|
+
function ai(t = {}) {
|
|
4112
|
+
window.dispatchEvent(new CustomEvent(zr, {
|
|
4071
4113
|
detail: t
|
|
4072
4114
|
}));
|
|
4073
4115
|
}
|
|
4074
|
-
const
|
|
4075
|
-
class
|
|
4116
|
+
const Br = "omniview/resource/icons";
|
|
4117
|
+
class Hr extends Rn {
|
|
4076
4118
|
state = {
|
|
4077
4119
|
failed: !1,
|
|
4078
4120
|
resetToken: this.props.resetToken
|
|
@@ -4092,15 +4134,15 @@ class Qr extends In {
|
|
|
4092
4134
|
return this.state.failed ? this.props.fallback : this.props.children;
|
|
4093
4135
|
}
|
|
4094
4136
|
}
|
|
4095
|
-
function
|
|
4137
|
+
function Jr(t, e) {
|
|
4096
4138
|
try {
|
|
4097
4139
|
return t?.schemaVersion !== 1 || typeof t.resolve != "function" ? void 0 : t.resolve(e);
|
|
4098
4140
|
} catch {
|
|
4099
4141
|
return;
|
|
4100
4142
|
}
|
|
4101
4143
|
}
|
|
4102
|
-
function
|
|
4103
|
-
const e =
|
|
4144
|
+
function Vr(t) {
|
|
4145
|
+
const e = q(7);
|
|
4104
4146
|
let r, n;
|
|
4105
4147
|
e[0] !== t ? ({
|
|
4106
4148
|
icon: r,
|
|
@@ -4110,8 +4152,8 @@ function zr(t) {
|
|
|
4110
4152
|
let i;
|
|
4111
4153
|
return e[3] !== r || e[4] !== n || e[5] !== s ? (i = /* @__PURE__ */ N(r, { ...n, "aria-hidden": s }), e[3] = r, e[4] = n, e[5] = s, e[6] = i) : i = e[6], i;
|
|
4112
4154
|
}
|
|
4113
|
-
function
|
|
4114
|
-
const e =
|
|
4155
|
+
function li(t) {
|
|
4156
|
+
const e = q(17);
|
|
4115
4157
|
let r, n, s, i;
|
|
4116
4158
|
e[0] !== t ? ({
|
|
4117
4159
|
pluginId: n,
|
|
@@ -4122,19 +4164,19 @@ function ni(t) {
|
|
|
4122
4164
|
const {
|
|
4123
4165
|
version: o,
|
|
4124
4166
|
contributions: u
|
|
4125
|
-
} =
|
|
4167
|
+
} = rn(Br);
|
|
4126
4168
|
let l;
|
|
4127
4169
|
e[5] !== r || e[6] !== s ? (l = r === void 0 ? /* @__PURE__ */ N("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__ */ N("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];
|
|
4128
4170
|
const a = l;
|
|
4129
4171
|
let c;
|
|
4130
4172
|
if (e[8] !== u || e[9] !== a || e[10] !== n || e[11] !== s || e[12] !== i || e[13] !== o) {
|
|
4131
4173
|
c = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
4132
|
-
e: for (const
|
|
4133
|
-
if (
|
|
4174
|
+
e: for (const d of u) {
|
|
4175
|
+
if (d.plugin !== n)
|
|
4134
4176
|
continue;
|
|
4135
|
-
const g =
|
|
4177
|
+
const g = Jr(d.value, i);
|
|
4136
4178
|
if (g) {
|
|
4137
|
-
c = /* @__PURE__ */ N(
|
|
4179
|
+
c = /* @__PURE__ */ N(Hr, { resetToken: d, fallback: a, children: /* @__PURE__ */ N(L.Suspense, { fallback: a, children: /* @__PURE__ */ N(Vr, { icon: g, ...s }) }) }, JSON.stringify([n, i, o, d.id]));
|
|
4138
4180
|
break e;
|
|
4139
4181
|
}
|
|
4140
4182
|
}
|
|
@@ -4144,95 +4186,100 @@ function ni(t) {
|
|
|
4144
4186
|
if (c !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
4145
4187
|
return c;
|
|
4146
4188
|
let p;
|
|
4147
|
-
return e[15] !== a ? (p = /* @__PURE__ */ N(
|
|
4189
|
+
return e[15] !== a ? (p = /* @__PURE__ */ N(bt, { children: a }), e[15] = a, e[16] = p) : p = e[16], p;
|
|
4148
4190
|
}
|
|
4149
4191
|
export {
|
|
4150
4192
|
Me as ALL_SESSIONS_KEY,
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4193
|
+
Ws as BottomDrawerContext,
|
|
4194
|
+
Gs as ConfirmationModalContext,
|
|
4195
|
+
Do as ConnectionBoundary,
|
|
4196
|
+
Sr as ConnectionBoundaryFallback,
|
|
4155
4197
|
se as ErrorTypes,
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4198
|
+
_o as ExtensionPointRegistry,
|
|
4199
|
+
Vs as ExtensionPointStore,
|
|
4200
|
+
vo as ExtensionProvider,
|
|
4201
|
+
zr as GLOBAL_SEARCH_OPEN_EVENT,
|
|
4202
|
+
ni as Link,
|
|
4203
|
+
tn as OperationsContext,
|
|
4204
|
+
ho as OperationsProvider,
|
|
4163
4205
|
St as PluginContext,
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4206
|
+
uo as PluginContextProvider,
|
|
4207
|
+
jr as PluginErrorCode,
|
|
4208
|
+
oi as PluginWindow,
|
|
4209
|
+
ri as PluginWindowRootProps,
|
|
4210
|
+
Br as RESOURCE_ICON_EXTENSION_POINT_ID,
|
|
4211
|
+
li as ResourceIcon,
|
|
4212
|
+
Ks as RightDrawerContext,
|
|
4213
|
+
en as SettingsContext,
|
|
4214
|
+
po as SettingsProvider,
|
|
4215
|
+
bo as SnackbarProvider,
|
|
4174
4216
|
Q as WatchState,
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4217
|
+
wt as WindowActionsContext,
|
|
4218
|
+
go as WindowActionsProvider,
|
|
4219
|
+
qs as actionToSnackbar,
|
|
4220
|
+
kr as applyBatch,
|
|
4221
|
+
sr as connectionListQueryKey,
|
|
4178
4222
|
le as createErrorHandler,
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4223
|
+
Us as defaultState,
|
|
4224
|
+
ci as formatGroup,
|
|
4225
|
+
Ur as graphChangedEvent,
|
|
4226
|
+
et as isCancelledError,
|
|
4227
|
+
$s as navigateActivePage,
|
|
4228
|
+
ai as openGlobalSearch,
|
|
4229
|
+
be as parseAppError,
|
|
4230
|
+
ii as parseResourceKey,
|
|
4231
|
+
lo as registerActivePageNavigator,
|
|
4232
|
+
Yo as relationshipLabel,
|
|
4233
|
+
Oe as requireConnectionReady,
|
|
4234
|
+
_t as resourceQueryKeys,
|
|
4189
4235
|
xe as showAppError,
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4236
|
+
Gr as toRelatedResources,
|
|
4237
|
+
Jo as useActiveSyncs,
|
|
4238
|
+
gn as useBottomDrawer,
|
|
4239
|
+
Lo as useConfirmationModal,
|
|
4240
|
+
Eo as useConnection,
|
|
4241
|
+
Co as useConnectionNamespaces,
|
|
4196
4242
|
ge as useConnectionReadiness,
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4243
|
+
Io as useConnectionStatus,
|
|
4244
|
+
wo as useConnections,
|
|
4245
|
+
Xo as useDependencyTree,
|
|
4246
|
+
Bo as useEditorSchemas,
|
|
4247
|
+
Lr as useEventBatcher,
|
|
4248
|
+
Ao as useExec,
|
|
4249
|
+
zo as useExecuteAction,
|
|
4250
|
+
mo as useExtensionPoint,
|
|
4251
|
+
rn as useExtensionPointSnapshot,
|
|
4252
|
+
Js as useExtensionRegistry,
|
|
4253
|
+
To as useLogs,
|
|
4254
|
+
No as useMetricProviders,
|
|
4255
|
+
Ir as useMetricProvidersForResource,
|
|
4256
|
+
Oo as useMetricStream,
|
|
4257
|
+
Mr as useOperations,
|
|
4258
|
+
Et as usePluginContext,
|
|
4259
|
+
Ro as usePluginData,
|
|
4260
|
+
si as usePluginRouter,
|
|
4261
|
+
fo as usePluginSettings,
|
|
4262
|
+
Fo as usePortForwardSessions,
|
|
4263
|
+
Rt as useRefetchOnGraphChange,
|
|
4264
|
+
Zo as useRelatedResources,
|
|
4219
4265
|
ee as useResolvedPluginId,
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4266
|
+
$o as useResource,
|
|
4267
|
+
jo as useResourceActions,
|
|
4268
|
+
qo as useResourceAreaComponent,
|
|
4269
|
+
ei as useResourceGraph,
|
|
4270
|
+
Mo as useResourceGroups,
|
|
4271
|
+
Po as useResourceMetrics,
|
|
4272
|
+
Qo as useResourceMutations,
|
|
4273
|
+
ko as useResourcePortForwarder,
|
|
4274
|
+
Uo as useResourceSearch,
|
|
4275
|
+
Wo as useResourceType,
|
|
4276
|
+
Ko as useResourceTypes,
|
|
4277
|
+
Go as useResources,
|
|
4278
|
+
xo as useRightDrawer,
|
|
4279
|
+
ti as useSettings,
|
|
4234
4280
|
we as useSnackbar,
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4281
|
+
Vo as useStreamAction,
|
|
4282
|
+
Ho as useWatchState,
|
|
4283
|
+
yo as useWindowActions,
|
|
4284
|
+
So as withConnectionReady
|
|
4238
4285
|
};
|