@omniviewdev/runtime 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.js +1012 -1003
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as F, jsxs as ie, Fragment as at } from "react/jsx-runtime";
|
|
2
2
|
import { c as $ } from "react/compiler-runtime";
|
|
3
|
-
import q, { useContext as Ee, createContext as
|
|
3
|
+
import q, { useContext as Ee, createContext as Oe, useState as pe, useRef as ae, useSyncExternalStore as Vt, useEffect as ue, useCallback as Ge, useLayoutEffect as lt, Component as Yt } from "react";
|
|
4
4
|
import { Link as Jt, useNavigate as Xt, useLocation as Zt, createMemoryRouter as en } from "react-router";
|
|
5
|
-
import { useQueryClient as
|
|
6
|
-
import { P as nn, G as rn, V as sn, S as on, k as dt, U as cn, R as an, l as ln, m as ft, n as un, L as dn, o as fn, p as pn, q as hn, r as
|
|
5
|
+
import { useQueryClient as ge, useMutation as se, useQuery as re, keepPreviousData as ut, useQueries as tn } from "@tanstack/react-query";
|
|
6
|
+
import { P as nn, G as rn, V as sn, S as on, k as dt, U as cn, R as an, l as ln, m as ft, n as un, L as dn, o as fn, p as pn, q as hn, r as gn, t as mn, u as yn, C as _n, v as vn, w as Sn, x as En, y as In, Q as wn, z as bn, A as nt, B as Cn, D as pt, F as Dn, E as Rn, H as ht, I as gt, J as An, K as xn, M as Tn, N as mt, O as Pn, T as On, W as yt, X as Fn, Y as Nn, Z as Ln, _ as $n, $ as kn, a0 as Mn, a1 as rt, a2 as Un, a3 as qn, a4 as Wn, a5 as Kn, a6 as Gn } from "./servicewrapper-Q1ww3DUo.js";
|
|
7
7
|
import "./index-zyAgCXOO.js";
|
|
8
|
-
import { useToast as jn, Card as Qn, Toolbar as st, Text as Ce, IconButton as Re, EmptyState as Bn, Button as
|
|
8
|
+
import { useToast as jn, Card as Qn, Toolbar as st, Text as Ce, IconButton as Re, EmptyState as Bn, Button as $e, Code as Hn } from "@omniviewdev/base-ui";
|
|
9
9
|
import { O as ne, a as _t } from "./events-uBheGmqm.js";
|
|
10
|
-
import { P as zn, W as Vn, S as Yn, C as Jn, L as Xn, F as Zn, a as er, U as vt, D as St, G as tr, b as Et, c as It, A as
|
|
10
|
+
import { P as zn, W as Vn, S as Yn, C as Jn, L as Xn, F as Zn, a as er, U as vt, D as St, G as tr, b as Et, c as It, A as wt } from "./models-CT4kHj47.js";
|
|
11
11
|
import { RouterProvider as nr } from "react-router/dom";
|
|
12
12
|
import { w as rr } from "./legacyEnum-CKqyRmbX.js";
|
|
13
13
|
const ze = q.createContext(void 0), te = {
|
|
@@ -65,13 +65,13 @@ const ze = q.createContext(void 0), te = {
|
|
|
65
65
|
PROVIDER_ERROR: [te.RESOURCE_PROVIDER_ERROR, 502, "none"],
|
|
66
66
|
INTERNAL: [te.INTERNAL, 500, "none"]
|
|
67
67
|
};
|
|
68
|
-
function
|
|
68
|
+
function ke(t) {
|
|
69
69
|
return typeof t == "object" && t !== null ? t : void 0;
|
|
70
70
|
}
|
|
71
71
|
function le(t, e) {
|
|
72
72
|
return typeof t == "string" && t.length > 0 && t.length <= e;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Me() {
|
|
75
75
|
return {
|
|
76
76
|
type: te.CANCELLED,
|
|
77
77
|
code: "CANCELLED",
|
|
@@ -81,21 +81,21 @@ function Ue() {
|
|
|
81
81
|
recovery: "none"
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Te(t, e) {
|
|
85
85
|
if (e > 4) return;
|
|
86
|
-
if (t === "cancelled") return
|
|
86
|
+
if (t === "cancelled") return Me();
|
|
87
87
|
if (typeof t == "string") {
|
|
88
88
|
const n = t.trim();
|
|
89
89
|
if (!n.startsWith("{")) return;
|
|
90
90
|
try {
|
|
91
|
-
return
|
|
91
|
+
return Te(JSON.parse(n), e + 1);
|
|
92
92
|
} catch {
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
const s =
|
|
96
|
+
const s = ke(t);
|
|
97
97
|
if (s) {
|
|
98
|
-
if (s.name === "AbortError" || s.name === "CancelError") return
|
|
98
|
+
if (s.name === "AbortError" || s.name === "CancelError") return Me();
|
|
99
99
|
if (le(s.type, 256) && le(s.title, 256) && typeof s.status == "number" && Number.isInteger(s.status) && s.status >= 100 && s.status <= 599 && typeof s.detail == "string" && s.detail.length <= 4096) {
|
|
100
100
|
const n = {
|
|
101
101
|
type: s.type,
|
|
@@ -104,10 +104,10 @@ function Pe(t, e) {
|
|
|
104
104
|
detail: s.detail
|
|
105
105
|
};
|
|
106
106
|
le(s.code, 64) && (n.code = s.code), le(s.requestId, 256) && (n.requestId = s.requestId), le(s.instance, 512) && (n.instance = s.instance), Array.isArray(s.suggestions) && (n.suggestions = s.suggestions.filter((o) => le(o, 512)).slice(0, 8)), Array.isArray(s.actions) && (n.actions = s.actions.filter((o) => {
|
|
107
|
-
const
|
|
108
|
-
return !!
|
|
107
|
+
const i = ke(o);
|
|
108
|
+
return !!i && ["navigate", "retry", "open-url", "copy"].includes(String(i.type)) && le(i.label, 256) && (i.target === void 0 || le(i.target, 4096));
|
|
109
109
|
}).slice(0, 8)), ["correctRequest", "refreshContract", "restartQuery", "reconnect", "none"].includes(String(s.recovery)) && (n.recovery = s.recovery);
|
|
110
|
-
const r =
|
|
110
|
+
const r = ke(s.location);
|
|
111
111
|
return r?.unit === "utf8-byte" && typeof r.start == "number" && typeof r.end == "number" && Number.isSafeInteger(r.start) && Number.isSafeInteger(r.end) && r.start >= 0 && r.end >= r.start && (n.location = {
|
|
112
112
|
start: r.start,
|
|
113
113
|
end: r.end,
|
|
@@ -116,32 +116,32 @@ function Pe(t, e) {
|
|
|
116
116
|
}
|
|
117
117
|
if (typeof s.code == "string" && typeof s.title == "string" && typeof s.message == "string") {
|
|
118
118
|
let n = s.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(ot, n) || (n = "INTERNAL"), n === "CANCELLED") return
|
|
120
|
-
const [r, o,
|
|
119
|
+
if (n === "PERMISSION_DENIED" && (n = "FORBIDDEN"), ["INVALID_INPUT", "FILTER_UNKNOWN_FIELD", "FILTER_INVALID_OPERATOR"].includes(n) && (n = "INVALID_REQUEST"), Object.prototype.hasOwnProperty.call(ot, n) || (n = "INTERNAL"), n === "CANCELLED") return Me();
|
|
120
|
+
const [r, o, i] = ot[n], c = n === "FORBIDDEN" || n === "UNAUTHORIZED" || n === "INTERNAL" || n === "PROVIDER_ERROR";
|
|
121
121
|
return {
|
|
122
122
|
type: r,
|
|
123
123
|
status: o,
|
|
124
124
|
code: n,
|
|
125
|
-
recovery:
|
|
126
|
-
title:
|
|
127
|
-
detail:
|
|
128
|
-
...!
|
|
129
|
-
suggestions: s.suggestions.filter((
|
|
125
|
+
recovery: i,
|
|
126
|
+
title: c ? n === "FORBIDDEN" ? "Access denied" : n === "UNAUTHORIZED" ? "Authentication required" : "Operation failed" : le(s.title, 256) ? s.title : "Operation failed",
|
|
127
|
+
detail: c ? "The operation could not be completed." : le(s.message, 4096) ? s.message : "The operation could not be completed.",
|
|
128
|
+
...!c && Array.isArray(s.suggestions) ? {
|
|
129
|
+
suggestions: s.suggestions.filter((l) => le(l, 512)).slice(0, 8)
|
|
130
130
|
} : {}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
return
|
|
133
|
+
return Te(s.message, e + 1) ?? Te(s.cause, e + 1);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
function he(t) {
|
|
137
|
-
return
|
|
137
|
+
return Te(t, 0) ?? {
|
|
138
138
|
type: te.INTERNAL,
|
|
139
139
|
title: t == null ? "Unknown error" : "Error",
|
|
140
140
|
status: 500,
|
|
141
141
|
detail: t == null ? "An unknown error occurred." : "The operation could not be completed."
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Pe(t) {
|
|
145
145
|
return he(t).type === te.CANCELLED;
|
|
146
146
|
}
|
|
147
147
|
function sr(t) {
|
|
@@ -181,7 +181,7 @@ function sr(t) {
|
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function bt(t, e) {
|
|
185
185
|
const s = [t.detail, ...t.suggestions?.map((r) => `• ${r}`) ?? []].join(`
|
|
186
186
|
`);
|
|
187
187
|
return {
|
|
@@ -192,18 +192,18 @@ function wt(t, e) {
|
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
function _e(t, e, s) {
|
|
195
|
-
if (
|
|
195
|
+
if (Pe(e)) return;
|
|
196
196
|
const n = he(e);
|
|
197
|
-
t(
|
|
197
|
+
t(bt(n, s));
|
|
198
198
|
}
|
|
199
199
|
function oe(t, e) {
|
|
200
200
|
return (s) => {
|
|
201
|
-
if (
|
|
201
|
+
if (Pe(s)) return;
|
|
202
202
|
const n = he(s);
|
|
203
|
-
t(
|
|
203
|
+
t(bt(n, n.title !== "Error" ? n.title : e));
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function gs(t) {
|
|
207
207
|
const e = $(2);
|
|
208
208
|
let s;
|
|
209
209
|
return e[0] !== t ? (s = /* @__PURE__ */ F(or, { ...t }, t.pluginId), e[0] = t, e[1] = s) : s = e[1], s;
|
|
@@ -214,28 +214,28 @@ function or(t) {
|
|
|
214
214
|
pluginId: n,
|
|
215
215
|
headless: r
|
|
216
216
|
} = t, o = r === void 0 ? !1 : r;
|
|
217
|
-
let
|
|
218
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
219
|
-
const [
|
|
217
|
+
let i;
|
|
218
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {}, e[0] = i) : i = e[0];
|
|
219
|
+
const [c, l] = q.useState(i);
|
|
220
220
|
let d;
|
|
221
221
|
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = new zn(), e[1] = d) : d = e[1];
|
|
222
|
-
const [
|
|
222
|
+
const [a, f] = q.useState(d), [u, p] = q.useState(!1), [g, E] = q.useState(null), m = q.useRef(0), S = q.useRef(0);
|
|
223
223
|
console.debug("[PluginContextProvider] render", {
|
|
224
224
|
pluginId: n,
|
|
225
225
|
metaLoaded: u,
|
|
226
|
-
metaError: !!
|
|
226
|
+
metaError: !!g
|
|
227
227
|
});
|
|
228
228
|
let y;
|
|
229
229
|
e[2] !== n ? (y = () => {
|
|
230
230
|
if (n === void 0 || n === "")
|
|
231
231
|
return;
|
|
232
|
-
const
|
|
233
|
-
console.debug(`[PluginContextProvider] fetching settings for "${n}"`), nn(n).then((
|
|
234
|
-
|
|
235
|
-
}).catch((
|
|
236
|
-
if (
|
|
232
|
+
const x = m.current = m.current + 1;
|
|
233
|
+
console.debug(`[PluginContextProvider] fetching settings for "${n}"`), nn(n).then((A) => {
|
|
234
|
+
x === m.current && (console.debug(`[PluginContextProvider] settings loaded for "${n}"`, Object.keys(A)), l(A));
|
|
235
|
+
}).catch((A) => {
|
|
236
|
+
if (x !== m.current)
|
|
237
237
|
return;
|
|
238
|
-
const L = he(
|
|
238
|
+
const L = he(A);
|
|
239
239
|
console.error(`[PluginContextProvider] error fetching settings for "${n}":`, L.detail);
|
|
240
240
|
});
|
|
241
241
|
}, e[2] = n, e[3] = y) : y = e[3];
|
|
@@ -246,48 +246,48 @@ function or(t) {
|
|
|
246
246
|
console.debug("[PluginContextProvider] skipping meta fetch — empty pluginId");
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
|
-
const
|
|
250
|
-
console.debug(`[PluginContextProvider] fetching meta for "${n}"`), rn(n).then((
|
|
251
|
-
|
|
252
|
-
name:
|
|
253
|
-
version:
|
|
254
|
-
}), f(
|
|
255
|
-
}).catch((
|
|
256
|
-
if (
|
|
249
|
+
const x = S.current = S.current + 1;
|
|
250
|
+
console.debug(`[PluginContextProvider] fetching meta for "${n}"`), rn(n).then((A) => {
|
|
251
|
+
x === S.current && (console.debug(`[PluginContextProvider] meta loaded for "${n}"`, {
|
|
252
|
+
name: A?.name,
|
|
253
|
+
version: A?.version
|
|
254
|
+
}), f(A), p(!0));
|
|
255
|
+
}).catch((A) => {
|
|
256
|
+
if (x !== S.current)
|
|
257
257
|
return;
|
|
258
|
-
const L = he(
|
|
258
|
+
const L = he(A);
|
|
259
259
|
console.error(`[PluginContextProvider] error fetching meta for "${n}":`, L.detail), E(L.detail), p(!1);
|
|
260
260
|
});
|
|
261
261
|
}, e[4] = n, e[5] = h) : h = e[5];
|
|
262
|
-
const
|
|
262
|
+
const w = h;
|
|
263
263
|
let I, T;
|
|
264
|
-
e[6] !==
|
|
264
|
+
e[6] !== w || e[7] !== v || e[8] !== u || e[9] !== n ? (I = () => {
|
|
265
265
|
if (u)
|
|
266
266
|
return;
|
|
267
|
-
const
|
|
268
|
-
E(null), v(),
|
|
269
|
-
},
|
|
270
|
-
L.data?.id === n &&
|
|
271
|
-
}), ne("plugin/inventory_changed",
|
|
267
|
+
const x = () => {
|
|
268
|
+
E(null), v(), w();
|
|
269
|
+
}, A = [ne("plugin/init_complete", x), ne("plugin/dev_install_complete", (L) => {
|
|
270
|
+
L.data?.id === n && x();
|
|
271
|
+
}), ne("plugin/inventory_changed", x)];
|
|
272
272
|
return () => {
|
|
273
|
-
for (const L of
|
|
273
|
+
for (const L of A)
|
|
274
274
|
L();
|
|
275
275
|
};
|
|
276
|
-
}, T = [n, u, v,
|
|
276
|
+
}, T = [n, u, v, w], e[6] = w, e[7] = v, e[8] = u, e[9] = n, e[10] = I, e[11] = T) : (I = e[10], T = e[11]), q.useEffect(I, T);
|
|
277
277
|
let C, D;
|
|
278
|
-
if (e[12] !==
|
|
279
|
-
|
|
280
|
-
}), D = [n, v,
|
|
278
|
+
if (e[12] !== w || e[13] !== v || e[14] !== n ? (C = () => (console.debug(`[PluginContextProvider] useEffect — pluginId changed to "${n}"`), v(), w(), () => {
|
|
279
|
+
m.current = m.current + 1, S.current = S.current + 1;
|
|
280
|
+
}), D = [n, v, w], e[12] = w, e[13] = v, e[14] = n, e[15] = C, e[16] = D) : (C = e[15], D = e[16]), q.useEffect(C, D), g) {
|
|
281
281
|
if (o)
|
|
282
|
-
throw new Error(
|
|
283
|
-
let
|
|
282
|
+
throw new Error(g);
|
|
283
|
+
let x, A, L;
|
|
284
284
|
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = {
|
|
285
285
|
display: "flex",
|
|
286
286
|
flex: 1,
|
|
287
287
|
alignItems: "center",
|
|
288
288
|
justifyContent: "center",
|
|
289
289
|
padding: 24
|
|
290
|
-
},
|
|
290
|
+
}, x = {
|
|
291
291
|
maxWidth: 480,
|
|
292
292
|
width: "100%",
|
|
293
293
|
border: "1px solid #7F1D1D",
|
|
@@ -295,14 +295,14 @@ function or(t) {
|
|
|
295
295
|
backgroundColor: "#1C1917",
|
|
296
296
|
padding: 20,
|
|
297
297
|
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
|
|
298
|
-
},
|
|
298
|
+
}, A = {
|
|
299
299
|
display: "flex",
|
|
300
300
|
alignItems: "center",
|
|
301
301
|
gap: 8,
|
|
302
302
|
marginBottom: 12
|
|
303
|
-
}, e[17] =
|
|
303
|
+
}, e[17] = x, e[18] = A, e[19] = L) : (x = e[17], A = e[18], L = e[19]);
|
|
304
304
|
let j, U;
|
|
305
|
-
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ ie("div", { style:
|
|
305
|
+
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ ie("div", { style: A, children: [
|
|
306
306
|
/* @__PURE__ */ ie("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "#EF4444", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
307
307
|
/* @__PURE__ */ F("circle", { cx: "12", cy: "12", r: "10" }),
|
|
308
308
|
/* @__PURE__ */ F("line", { x1: "12", y1: "8", x2: "12", y2: "12" }),
|
|
@@ -319,11 +319,11 @@ function or(t) {
|
|
|
319
319
|
margin: "0 0 16px"
|
|
320
320
|
}, e[20] = j, e[21] = U) : (j = e[20], U = e[21]);
|
|
321
321
|
let W;
|
|
322
|
-
e[22] !==
|
|
322
|
+
e[22] !== g ? (W = /* @__PURE__ */ F("p", { style: U, children: g }), e[22] = g, e[23] = W) : W = e[23];
|
|
323
323
|
let K;
|
|
324
|
-
e[24] !==
|
|
325
|
-
E(null),
|
|
326
|
-
}, e[24] =
|
|
324
|
+
e[24] !== w ? (K = () => {
|
|
325
|
+
E(null), w();
|
|
326
|
+
}, e[24] = w, e[25] = K) : K = e[25];
|
|
327
327
|
let z;
|
|
328
328
|
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = {
|
|
329
329
|
background: "transparent",
|
|
@@ -338,7 +338,7 @@ function or(t) {
|
|
|
338
338
|
let k;
|
|
339
339
|
e[27] !== K ? (k = /* @__PURE__ */ F("button", { onClick: K, style: z, children: "Retry" }), e[27] = K, e[28] = k) : k = e[28];
|
|
340
340
|
let B;
|
|
341
|
-
return e[29] !== W || e[30] !== k ? (B = /* @__PURE__ */ F("div", { style: L, children: /* @__PURE__ */ ie("div", { style:
|
|
341
|
+
return e[29] !== W || e[30] !== k ? (B = /* @__PURE__ */ F("div", { style: L, children: /* @__PURE__ */ ie("div", { style: x, children: [
|
|
342
342
|
j,
|
|
343
343
|
W,
|
|
344
344
|
k
|
|
@@ -347,8 +347,8 @@ function or(t) {
|
|
|
347
347
|
if (!u) {
|
|
348
348
|
if (o)
|
|
349
349
|
return null;
|
|
350
|
-
let
|
|
351
|
-
return e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
350
|
+
let x;
|
|
351
|
+
return e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ ie("div", { style: {
|
|
352
352
|
display: "flex",
|
|
353
353
|
flex: 1,
|
|
354
354
|
alignItems: "center",
|
|
@@ -363,14 +363,14 @@ function or(t) {
|
|
|
363
363
|
animation: "plugin-spin 0.8s linear infinite"
|
|
364
364
|
} }),
|
|
365
365
|
/* @__PURE__ */ F("style", { children: "@keyframes plugin-spin { to { transform: rotate(360deg); } }" })
|
|
366
|
-
] }), e[32] =
|
|
366
|
+
] }), e[32] = x) : x = e[32], x;
|
|
367
367
|
}
|
|
368
368
|
let P;
|
|
369
|
-
e[33] !==
|
|
369
|
+
e[33] !== a || e[34] !== n || e[35] !== c ? (P = {
|
|
370
370
|
pluginId: n,
|
|
371
|
-
settings:
|
|
372
|
-
meta:
|
|
373
|
-
}, e[33] =
|
|
371
|
+
settings: c,
|
|
372
|
+
meta: a
|
|
373
|
+
}, e[33] = a, e[34] = n, e[35] = c, e[36] = P) : P = e[36];
|
|
374
374
|
let R;
|
|
375
375
|
return e[37] !== s || e[38] !== P ? (R = /* @__PURE__ */ F(ze.Provider, { value: P, children: s }), e[37] = s, e[38] = P, e[39] = R) : R = e[39], R;
|
|
376
376
|
}
|
|
@@ -380,36 +380,36 @@ function Ve() {
|
|
|
380
380
|
throw new Error("usePluginContext must be used within a PluginContextProvider");
|
|
381
381
|
return t;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function ms() {
|
|
384
384
|
return Ve().settings;
|
|
385
385
|
}
|
|
386
|
-
const Ct =
|
|
386
|
+
const Ct = Oe(void 0), ys = (t) => {
|
|
387
387
|
const e = $(10), {
|
|
388
388
|
children: s
|
|
389
389
|
} = t;
|
|
390
390
|
let n;
|
|
391
391
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {}, e[0] = n) : n = e[0];
|
|
392
|
-
const [r, o] = pe(n),
|
|
393
|
-
let
|
|
394
|
-
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
395
|
-
const E =
|
|
396
|
-
|
|
397
|
-
E ===
|
|
398
|
-
}).catch((
|
|
399
|
-
E ===
|
|
392
|
+
const [r, o] = pe(n), i = ae(0);
|
|
393
|
+
let c;
|
|
394
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = () => {
|
|
395
|
+
const E = i.current + 1;
|
|
396
|
+
i.current = E, sn().then((m) => {
|
|
397
|
+
E === i.current && o(m);
|
|
398
|
+
}).catch((m) => {
|
|
399
|
+
E === i.current && console.error("Error fetching settings:", m);
|
|
400
400
|
});
|
|
401
|
-
}, e[1] =
|
|
402
|
-
const
|
|
403
|
-
let d,
|
|
401
|
+
}, e[1] = c) : c = e[1];
|
|
402
|
+
const l = c;
|
|
403
|
+
let d, a;
|
|
404
404
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = () => {
|
|
405
|
-
const E = ne("settings/changed", () =>
|
|
406
|
-
return
|
|
407
|
-
|
|
405
|
+
const E = ne("settings/changed", () => l());
|
|
406
|
+
return l(), () => {
|
|
407
|
+
i.current = i.current + 1, E();
|
|
408
408
|
};
|
|
409
|
-
},
|
|
409
|
+
}, a = [l], e[2] = d, e[3] = a) : (d = e[2], a = e[3]), q.useEffect(d, a);
|
|
410
410
|
let f;
|
|
411
411
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = () => {
|
|
412
|
-
|
|
412
|
+
l();
|
|
413
413
|
}, e[4] = f) : f = e[4];
|
|
414
414
|
const u = f;
|
|
415
415
|
let p;
|
|
@@ -417,8 +417,8 @@ const Ct = Fe(void 0), ys = (t) => {
|
|
|
417
417
|
settings: r,
|
|
418
418
|
reload: u
|
|
419
419
|
}, e[5] = r, e[6] = p) : p = e[6];
|
|
420
|
-
let
|
|
421
|
-
return e[7] !== s || e[8] !== p ? (
|
|
420
|
+
let g;
|
|
421
|
+
return e[7] !== s || e[8] !== p ? (g = /* @__PURE__ */ F(Ct.Provider, { value: p, children: s }), e[7] = s, e[8] = p, e[9] = g) : g = e[9], g;
|
|
422
422
|
}, ir = {
|
|
423
423
|
height: 32,
|
|
424
424
|
focused: 0,
|
|
@@ -443,31 +443,31 @@ const Ct = Fe(void 0), ys = (t) => {
|
|
|
443
443
|
},
|
|
444
444
|
fullscreenDrawer: () => {
|
|
445
445
|
}
|
|
446
|
-
}, cr = q.createContext(ir), ar =
|
|
446
|
+
}, cr = q.createContext(ir), ar = Oe(void 0), lr = q.createContext(void 0), Dt = q.createContext(void 0), ur = 3e4, _s = (t) => {
|
|
447
447
|
const e = $(12), {
|
|
448
448
|
children: s
|
|
449
449
|
} = t;
|
|
450
450
|
let n;
|
|
451
451
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [], e[0] = n) : n = e[0];
|
|
452
452
|
const [r, o] = q.useState(n);
|
|
453
|
-
let
|
|
454
|
-
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
453
|
+
let i;
|
|
454
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = (S) => {
|
|
455
455
|
o((y) => [S, ...y]);
|
|
456
|
-
}, e[1] =
|
|
457
|
-
const
|
|
458
|
-
let
|
|
459
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
456
|
+
}, e[1] = i) : i = e[1];
|
|
457
|
+
const c = i;
|
|
458
|
+
let l;
|
|
459
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = (S, y) => {
|
|
460
460
|
o((v) => v.map((h) => h.id === S ? {
|
|
461
461
|
...h,
|
|
462
462
|
...y
|
|
463
463
|
} : h));
|
|
464
|
-
}, e[2] =
|
|
465
|
-
const d =
|
|
466
|
-
let
|
|
467
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
464
|
+
}, e[2] = l) : l = e[2];
|
|
465
|
+
const d = l;
|
|
466
|
+
let a;
|
|
467
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (S) => {
|
|
468
468
|
o((y) => y.filter((v) => v.id !== S));
|
|
469
|
-
}, e[3] =
|
|
470
|
-
const f =
|
|
469
|
+
}, e[3] = a) : a = e[3];
|
|
470
|
+
const f = a;
|
|
471
471
|
let u, p;
|
|
472
472
|
e[4] !== r ? (u = () => {
|
|
473
473
|
const S = [];
|
|
@@ -478,16 +478,16 @@ const Ct = Fe(void 0), ys = (t) => {
|
|
|
478
478
|
}
|
|
479
479
|
return () => S.forEach(clearTimeout);
|
|
480
480
|
}, p = [r, f], e[4] = r, e[5] = u, e[6] = p) : (u = e[5], p = e[6]), q.useEffect(u, p);
|
|
481
|
-
let
|
|
482
|
-
e[7] !== r ? (
|
|
481
|
+
let g;
|
|
482
|
+
e[7] !== r ? (g = {
|
|
483
483
|
operations: r,
|
|
484
|
-
addOperation:
|
|
484
|
+
addOperation: c,
|
|
485
485
|
updateOperation: d,
|
|
486
486
|
removeOperation: f
|
|
487
|
-
}, e[7] = r, e[8] =
|
|
488
|
-
const E =
|
|
489
|
-
let
|
|
490
|
-
return e[9] !== s || e[10] !== E ? (
|
|
487
|
+
}, e[7] = r, e[8] = g) : g = e[8];
|
|
488
|
+
const E = g;
|
|
489
|
+
let m;
|
|
490
|
+
return e[9] !== s || e[10] !== E ? (m = /* @__PURE__ */ F(Dt.Provider, { value: E, children: s }), e[9] = s, e[10] = E, e[11] = m) : m = e[11], m;
|
|
491
491
|
};
|
|
492
492
|
var je = function(t, e) {
|
|
493
493
|
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(s, n) {
|
|
@@ -505,16 +505,16 @@ function dr(t, e) {
|
|
|
505
505
|
}
|
|
506
506
|
t.prototype = e === null ? Object.create(e) : (s.prototype = e.prototype, new s());
|
|
507
507
|
}
|
|
508
|
-
var
|
|
508
|
+
var Ue = "Invariant Violation", it = Object.setPrototypeOf, fr = it === void 0 ? function(t, e) {
|
|
509
509
|
return t.__proto__ = e, t;
|
|
510
510
|
} : it, pr = (
|
|
511
511
|
/** @class */
|
|
512
512
|
(function(t) {
|
|
513
513
|
dr(e, t);
|
|
514
514
|
function e(s) {
|
|
515
|
-
s === void 0 && (s =
|
|
516
|
-
var n = t.call(this, typeof s == "number" ?
|
|
517
|
-
return n.framesToPop = 1, n.name =
|
|
515
|
+
s === void 0 && (s = Ue);
|
|
516
|
+
var n = t.call(this, typeof s == "number" ? Ue + ": " + s + " (see https://github.com/apollographql/invariant-packages)" : s) || this;
|
|
517
|
+
return n.framesToPop = 1, n.name = Ue, fr(n, e.prototype), n;
|
|
518
518
|
}
|
|
519
519
|
return e;
|
|
520
520
|
})(Error)
|
|
@@ -524,7 +524,7 @@ function Qe(t, e) {
|
|
|
524
524
|
throw new pr(e);
|
|
525
525
|
}
|
|
526
526
|
var Rt = ["debug", "log", "warn", "error", "silent"], hr = Rt.indexOf("log");
|
|
527
|
-
function
|
|
527
|
+
function Ae(t) {
|
|
528
528
|
return function() {
|
|
529
529
|
if (Rt.indexOf(t) >= hr) {
|
|
530
530
|
var e = console[t] || console.log;
|
|
@@ -533,35 +533,35 @@ function xe(t) {
|
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
535
|
(function(t) {
|
|
536
|
-
t.debug =
|
|
536
|
+
t.debug = Ae("debug"), t.log = Ae("log"), t.warn = Ae("warn"), t.error = Ae("error");
|
|
537
537
|
})(Qe || (Qe = {}));
|
|
538
|
-
const
|
|
539
|
-
function
|
|
540
|
-
const e = $(12), s =
|
|
538
|
+
const At = Oe(void 0), gr = () => Ee(At);
|
|
539
|
+
function mr(t) {
|
|
540
|
+
const e = $(12), s = gr(), n = q.useRef(null);
|
|
541
541
|
let r;
|
|
542
542
|
e[0] !== t || e[1] !== s ? (r = s?.getExtensionPoint(t), e[0] = t, e[1] = s, e[2] = r) : r = e[2];
|
|
543
543
|
const o = r;
|
|
544
|
-
let
|
|
545
|
-
e[3] !== s || e[4] !== o ? (
|
|
544
|
+
let i;
|
|
545
|
+
e[3] !== s || e[4] !== o ? (i = (f) => {
|
|
546
546
|
const u = [];
|
|
547
547
|
return s && u.push(s.subscribe(f)), o && u.push(o.subscribe(f)), () => {
|
|
548
548
|
for (const p of u)
|
|
549
549
|
p();
|
|
550
550
|
};
|
|
551
|
-
}, e[3] = s, e[4] = o, e[5] =
|
|
552
|
-
const
|
|
553
|
-
let
|
|
554
|
-
e[6] !== t || e[7] !== s ? (
|
|
551
|
+
}, e[3] = s, e[4] = o, e[5] = i) : i = e[5];
|
|
552
|
+
const c = i;
|
|
553
|
+
let l;
|
|
554
|
+
e[6] !== t || e[7] !== s ? (l = () => {
|
|
555
555
|
const f = s?.getExtensionPoint(t);
|
|
556
556
|
if (!f) {
|
|
557
557
|
if (n.current && n.current.store === void 0)
|
|
558
558
|
return n.current.sentinel;
|
|
559
|
-
const
|
|
559
|
+
const g = {};
|
|
560
560
|
return n.current = {
|
|
561
561
|
store: void 0,
|
|
562
562
|
version: -1,
|
|
563
|
-
sentinel:
|
|
564
|
-
},
|
|
563
|
+
sentinel: g
|
|
564
|
+
}, g;
|
|
565
565
|
}
|
|
566
566
|
const u = n.current;
|
|
567
567
|
if (u && u.store === f && u.version === f.version)
|
|
@@ -572,9 +572,9 @@ function gr(t) {
|
|
|
572
572
|
version: f.version,
|
|
573
573
|
sentinel: p
|
|
574
574
|
}, p;
|
|
575
|
-
}, e[6] = t, e[7] = s, e[8] =
|
|
576
|
-
let
|
|
577
|
-
return e[9] !== t || e[10] !== s ? (
|
|
575
|
+
}, e[6] = t, e[7] = s, e[8] = l) : l = e[8], Vt(c, l);
|
|
576
|
+
let a;
|
|
577
|
+
return e[9] !== t || e[10] !== s ? (a = s?.getExtensionPoint(t), e[9] = t, e[10] = s, e[11] = a) : a = e[11], a;
|
|
578
578
|
}
|
|
579
579
|
const vs = (t) => {
|
|
580
580
|
const e = $(5), {
|
|
@@ -585,9 +585,9 @@ const vs = (t) => {
|
|
|
585
585
|
e[0] !== s ? (r = () => s, e[0] = s, e[1] = r) : r = e[1];
|
|
586
586
|
const [o] = q.useState(r);
|
|
587
587
|
Qe(o === s, "You can't change the extension registry after it has been rendered");
|
|
588
|
-
let
|
|
589
|
-
return e[2] !== n || e[3] !== o ? (
|
|
590
|
-
},
|
|
588
|
+
let i;
|
|
589
|
+
return e[2] !== n || e[3] !== o ? (i = /* @__PURE__ */ F(At.Provider, { value: o, children: n }), e[2] = n, e[3] = o, e[4] = i) : i = e[4], i;
|
|
590
|
+
}, qe = (t) => {
|
|
591
591
|
if (!t || typeof t != "string")
|
|
592
592
|
throw new TypeError(`extensionName is required to be a string and can't be: "${t}" (${typeof t})`);
|
|
593
593
|
return t.trim();
|
|
@@ -668,7 +668,7 @@ class yr {
|
|
|
668
668
|
if (s != null) {
|
|
669
669
|
const r = this._lookupCache.get(s);
|
|
670
670
|
if (r) {
|
|
671
|
-
const o = r.map((
|
|
671
|
+
const o = r.map((i) => this._contributions.get(i)).filter((i) => i != null);
|
|
672
672
|
return this._applyMode(o, e);
|
|
673
673
|
}
|
|
674
674
|
}
|
|
@@ -724,7 +724,7 @@ class Ss {
|
|
|
724
724
|
* Throws if the extension point ID already exists.
|
|
725
725
|
*/
|
|
726
726
|
addExtensionPoint(e) {
|
|
727
|
-
const s =
|
|
727
|
+
const s = qe(e.id);
|
|
728
728
|
if (this._stores.has(s)) {
|
|
729
729
|
const r = this._stores.get(s);
|
|
730
730
|
throw new Error(`Extension point "${s}" already exists (owned by "${r.pluginId ?? "unknown"}")`);
|
|
@@ -739,14 +739,14 @@ class Ss {
|
|
|
739
739
|
* Get an extension point store by ID.
|
|
740
740
|
*/
|
|
741
741
|
getExtensionPoint(e) {
|
|
742
|
-
const s =
|
|
742
|
+
const s = qe(e);
|
|
743
743
|
return this._stores.get(s);
|
|
744
744
|
}
|
|
745
745
|
/**
|
|
746
746
|
* Check if an extension point exists.
|
|
747
747
|
*/
|
|
748
748
|
hasExtensionPoint(e) {
|
|
749
|
-
const s =
|
|
749
|
+
const s = qe(e);
|
|
750
750
|
return this._stores.has(s);
|
|
751
751
|
}
|
|
752
752
|
/**
|
|
@@ -862,7 +862,7 @@ const ce = {
|
|
|
862
862
|
padding: "var(--ov-space-3)",
|
|
863
863
|
borderTop: "1px solid var(--ov-color-border-muted)"
|
|
864
864
|
}
|
|
865
|
-
},
|
|
865
|
+
}, xt = Oe(void 0), _r = {
|
|
866
866
|
default: "info",
|
|
867
867
|
info: "info",
|
|
868
868
|
success: "success",
|
|
@@ -873,35 +873,35 @@ const ce = {
|
|
|
873
873
|
}) => {
|
|
874
874
|
const {
|
|
875
875
|
toast: e
|
|
876
|
-
} = jn(), [s, n] = q.useState([]), [r, o] = q.useState([]), [
|
|
876
|
+
} = jn(), [s, n] = q.useState([]), [r, o] = q.useState([]), [i, c] = q.useState(!1), [l, d] = q.useState(), [a, f] = q.useState(""), u = q.useRef(0), p = q.useRef(null);
|
|
877
877
|
q.useEffect(() => {
|
|
878
|
-
if (!
|
|
878
|
+
if (!i)
|
|
879
879
|
return;
|
|
880
|
-
const
|
|
880
|
+
const m = document.activeElement;
|
|
881
881
|
p.current?.focus();
|
|
882
882
|
const S = (y) => {
|
|
883
|
-
y.key === "Escape" && (y.stopPropagation(),
|
|
883
|
+
y.key === "Escape" && (y.stopPropagation(), c(!1));
|
|
884
884
|
};
|
|
885
885
|
return document.addEventListener("keydown", S), () => {
|
|
886
|
-
document.removeEventListener("keydown", S),
|
|
886
|
+
document.removeEventListener("keydown", S), m instanceof HTMLElement && m.isConnected && m.focus();
|
|
887
887
|
};
|
|
888
|
-
}, [
|
|
889
|
-
const
|
|
890
|
-
n((S) => [...S,
|
|
891
|
-
}, E = (
|
|
892
|
-
const v = typeof
|
|
893
|
-
let h = "",
|
|
888
|
+
}, [i]);
|
|
889
|
+
const g = (m) => {
|
|
890
|
+
n((S) => [...S, m]);
|
|
891
|
+
}, E = (m, S, y) => {
|
|
892
|
+
const v = typeof m == "object";
|
|
893
|
+
let h = "", w = "info", I, T = 5e3, C;
|
|
894
894
|
if (v) {
|
|
895
|
-
if (h =
|
|
895
|
+
if (h = m.message, m.showOnce) {
|
|
896
896
|
if (s.includes(h))
|
|
897
897
|
return;
|
|
898
|
-
|
|
898
|
+
g(h);
|
|
899
899
|
}
|
|
900
|
-
|
|
900
|
+
w = m.status, I = m.details, T = m.autoHideDuration ?? 5e3, C = m.actions;
|
|
901
901
|
} else
|
|
902
|
-
h =
|
|
902
|
+
h = m, w = S, I = y;
|
|
903
903
|
let D;
|
|
904
|
-
if (
|
|
904
|
+
if (w === "error") {
|
|
905
905
|
const P = {
|
|
906
906
|
id: ++u.current,
|
|
907
907
|
message: h,
|
|
@@ -912,26 +912,26 @@ const ce = {
|
|
|
912
912
|
o((R) => [...R, P].slice(-20)), D = {
|
|
913
913
|
label: "Details",
|
|
914
914
|
onClick: () => {
|
|
915
|
-
d(P.id),
|
|
915
|
+
d(P.id), c(!0);
|
|
916
916
|
}
|
|
917
917
|
};
|
|
918
918
|
}
|
|
919
|
-
e(
|
|
920
|
-
severity: _r[
|
|
921
|
-
title:
|
|
919
|
+
e(w === "error" ? h : I ?? h, {
|
|
920
|
+
severity: _r[w] ?? "info",
|
|
921
|
+
title: w !== "error" && I ? h : void 0,
|
|
922
922
|
duration: T,
|
|
923
923
|
action: D ?? C?.[0]
|
|
924
924
|
});
|
|
925
925
|
};
|
|
926
|
-
return /* @__PURE__ */ ie(
|
|
926
|
+
return /* @__PURE__ */ ie(xt.Provider, { value: {
|
|
927
927
|
showSnackbar: E,
|
|
928
928
|
openNotifications: () => {
|
|
929
|
-
|
|
929
|
+
c(!0);
|
|
930
930
|
},
|
|
931
931
|
notificationCount: r.length
|
|
932
932
|
}, children: [
|
|
933
933
|
t,
|
|
934
|
-
|
|
934
|
+
i && /* @__PURE__ */ ie(Qn, { ref: p, style: ce.Panel, size: "sm", variant: "outline", surface: "overlay", elevation: 3, "aria-label": "Notifications", tabIndex: -1, children: [
|
|
935
935
|
/* @__PURE__ */ ie(st, { size: "sm", style: ce.Header, children: [
|
|
936
936
|
/* @__PURE__ */ F(Ce, { size: "sm", weight: "semibold", children: "Notifications" }),
|
|
937
937
|
/* @__PURE__ */ F(Ce, { size: "xs", tone: "muted", children: r.length }),
|
|
@@ -940,55 +940,55 @@ const ce = {
|
|
|
940
940
|
o([]), d(void 0), f("");
|
|
941
941
|
}, children: /* @__PURE__ */ F("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ F("path", { d: "m3 3 6 6m0-6L3 9M13 6h8M3 14h18M3 20h18" }) }) }),
|
|
942
942
|
/* @__PURE__ */ F(Re, { size: "sm", variant: "ghost", "aria-label": "Close notifications", title: "Close notifications", onClick: () => {
|
|
943
|
-
|
|
943
|
+
c(!1);
|
|
944
944
|
}, children: /* @__PURE__ */ F("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ F("path", { d: "m6 9 6 6 6-6" }) }) })
|
|
945
945
|
] })
|
|
946
946
|
] }),
|
|
947
947
|
/* @__PURE__ */ ie("div", { style: ce.List, children: [
|
|
948
948
|
r.length === 0 && /* @__PURE__ */ F(Bn, { size: "sm", title: "No recent errors", description: "Error details will appear here." }),
|
|
949
|
-
r.slice().reverse().map((
|
|
950
|
-
const S =
|
|
949
|
+
r.slice().reverse().map((m) => {
|
|
950
|
+
const S = l === m.id;
|
|
951
951
|
return /* @__PURE__ */ ie("div", { style: ce.Notice, children: [
|
|
952
952
|
/* @__PURE__ */ ie("div", { style: ce.Row, children: [
|
|
953
953
|
/* @__PURE__ */ ie("svg", { style: ce.ErrorIcon, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-label": "Error", role: "img", children: [
|
|
954
954
|
/* @__PURE__ */ F("circle", { cx: "12", cy: "12", r: "9" }),
|
|
955
955
|
/* @__PURE__ */ F("path", { d: "m9 9 6 6m0-6-6 6" })
|
|
956
956
|
] }),
|
|
957
|
-
/* @__PURE__ */ F(
|
|
958
|
-
d(S ? void 0 :
|
|
959
|
-
}, children: /* @__PURE__ */ F(Ce, { size: "sm", style: ce.MessageText, truncate: !S, children:
|
|
960
|
-
/* @__PURE__ */ F(Re, { size: "sm", variant: "ghost", "aria-label": S ? "Collapse details" : "Expand details", title: S ? "Collapse details" : "Expand details", "aria-expanded": S, "aria-controls": `notification-${
|
|
961
|
-
d(S ? void 0 :
|
|
957
|
+
/* @__PURE__ */ F($e, { size: "sm", variant: "ghost", style: ce.Message, "aria-expanded": S, "aria-controls": `notification-${m.id}`, title: m.message, onClick: () => {
|
|
958
|
+
d(S ? void 0 : m.id), f("");
|
|
959
|
+
}, children: /* @__PURE__ */ F(Ce, { size: "sm", style: ce.MessageText, truncate: !S, children: m.message }) }),
|
|
960
|
+
/* @__PURE__ */ F(Re, { size: "sm", variant: "ghost", "aria-label": S ? "Collapse details" : "Expand details", title: S ? "Collapse details" : "Expand details", "aria-expanded": S, "aria-controls": `notification-${m.id}`, onClick: () => {
|
|
961
|
+
d(S ? void 0 : m.id), f("");
|
|
962
962
|
}, children: /* @__PURE__ */ F("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ F("path", { d: S ? "m6 15 6-6 6 6" : "m6 9 6 6 6-6" }) }) }),
|
|
963
|
-
/* @__PURE__ */ F(Re, { size: "sm", variant: "ghost", "aria-label": `Dismiss ${
|
|
964
|
-
o((y) => y.filter((v) => v.id !==
|
|
963
|
+
/* @__PURE__ */ F(Re, { size: "sm", variant: "ghost", "aria-label": `Dismiss ${m.message}`, title: "Dismiss notification", onClick: () => {
|
|
964
|
+
o((y) => y.filter((v) => v.id !== m.id)), S && (d(void 0), f(""));
|
|
965
965
|
}, children: /* @__PURE__ */ F("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ F("path", { d: "m6 6 12 12m0-12L6 18" }) }) })
|
|
966
966
|
] }),
|
|
967
|
-
/* @__PURE__ */ F("div", { id: `notification-${
|
|
968
|
-
/* @__PURE__ */ F(Ce, { size: "xs", tone: "muted", children: /* @__PURE__ */ F("time", { dateTime:
|
|
969
|
-
/* @__PURE__ */ F(Hn, { size: "sm", style: ce.Code, children:
|
|
967
|
+
/* @__PURE__ */ F("div", { id: `notification-${m.id}`, hidden: !S, style: ce.Details, children: S && /* @__PURE__ */ ie(at, { children: [
|
|
968
|
+
/* @__PURE__ */ F(Ce, { size: "xs", tone: "muted", children: /* @__PURE__ */ F("time", { dateTime: m.created, children: new Date(m.created).toLocaleString() }) }),
|
|
969
|
+
/* @__PURE__ */ F(Hn, { size: "sm", style: ce.Code, children: m.details?.length ? m.details : m.message }),
|
|
970
970
|
/* @__PURE__ */ ie("div", { style: ce.Actions, children: [
|
|
971
|
-
/* @__PURE__ */ F(
|
|
971
|
+
/* @__PURE__ */ F($e, { size: "sm", variant: "ghost", onClick: async () => {
|
|
972
972
|
f("");
|
|
973
973
|
try {
|
|
974
|
-
await navigator.clipboard.writeText(`${
|
|
975
|
-
${
|
|
976
|
-
${
|
|
974
|
+
await navigator.clipboard.writeText(`${m.message}
|
|
975
|
+
${m.created}
|
|
976
|
+
${m.details ?? ""}`);
|
|
977
977
|
} catch {
|
|
978
978
|
f("Copy failed. Select the diagnostic text and copy it manually.");
|
|
979
979
|
}
|
|
980
980
|
}, children: "Copy details" }),
|
|
981
|
-
|
|
981
|
+
m.actions?.map((y, v) => /* @__PURE__ */ F($e, { size: "sm", variant: "outline", onClick: y.onClick, children: y.label }, `${y.label}-${v}`))
|
|
982
982
|
] })
|
|
983
983
|
] }) })
|
|
984
|
-
] },
|
|
984
|
+
] }, m.id);
|
|
985
985
|
})
|
|
986
986
|
] }),
|
|
987
|
-
|
|
987
|
+
a && /* @__PURE__ */ F(Ce, { as: "p", size: "sm", role: "status", style: ce.CopyError, children: a })
|
|
988
988
|
] })
|
|
989
989
|
] });
|
|
990
990
|
}, de = () => {
|
|
991
|
-
const t = Ee(
|
|
991
|
+
const t = Ee(xt);
|
|
992
992
|
if (t === void 0)
|
|
993
993
|
throw new Error("useCustomSnackbar must be used within a CustomSnackbarProvider");
|
|
994
994
|
return t;
|
|
@@ -1003,150 +1003,150 @@ const Is = (t) => {
|
|
|
1003
1003
|
const e = $(60), {
|
|
1004
1004
|
pluginID: s,
|
|
1005
1005
|
connectionID: n
|
|
1006
|
-
} = t, r = ee(s), o =
|
|
1007
|
-
showSnackbar:
|
|
1006
|
+
} = t, r = ee(s), o = ge(), {
|
|
1007
|
+
showSnackbar: i
|
|
1008
1008
|
} = de();
|
|
1009
|
-
let
|
|
1010
|
-
e[0] !== n || e[1] !== r ? (
|
|
1011
|
-
const
|
|
1009
|
+
let c;
|
|
1010
|
+
e[0] !== n || e[1] !== r ? (c = [r, "connection", "detail", n], e[0] = n, e[1] = r, e[2] = c) : c = e[2];
|
|
1011
|
+
const l = c;
|
|
1012
1012
|
let d;
|
|
1013
1013
|
e[3] !== n || e[4] !== r ? (d = async () => on(r, n), e[3] = n, e[4] = r, e[5] = d) : d = e[5];
|
|
1014
|
-
let
|
|
1015
|
-
if (e[6] !== n || e[7] !== r || e[8] !== o || e[9] !==
|
|
1014
|
+
let a;
|
|
1015
|
+
if (e[6] !== n || e[7] !== r || e[8] !== o || e[9] !== l || e[10] !== i || e[11] !== d) {
|
|
1016
1016
|
let D;
|
|
1017
|
-
e[13] !==
|
|
1017
|
+
e[13] !== i ? (D = oe(i, "Failed to start connection"), e[13] = i, e[14] = D) : D = e[14], a = {
|
|
1018
1018
|
mutationFn: d,
|
|
1019
1019
|
onSuccess(P) {
|
|
1020
|
-
o.setQueryData(
|
|
1020
|
+
o.setQueryData(l, P), o.invalidateQueries({
|
|
1021
1021
|
queryKey: ["EDITOR_SCHEMAS", r, n]
|
|
1022
1022
|
});
|
|
1023
1023
|
},
|
|
1024
1024
|
onError: D
|
|
1025
|
-
}, e[6] = n, e[7] = r, e[8] = o, e[9] =
|
|
1025
|
+
}, e[6] = n, e[7] = r, e[8] = o, e[9] = l, e[10] = i, e[11] = d, e[12] = a;
|
|
1026
1026
|
} else
|
|
1027
|
-
|
|
1027
|
+
a = e[12];
|
|
1028
1028
|
const {
|
|
1029
1029
|
mutateAsync: f
|
|
1030
|
-
} = se(
|
|
1030
|
+
} = se(a);
|
|
1031
1031
|
let u;
|
|
1032
1032
|
e[15] !== n || e[16] !== r ? (u = async () => dt(r, n), e[15] = n, e[16] = r, e[17] = u) : u = e[17];
|
|
1033
1033
|
let p;
|
|
1034
|
-
if (e[18] !== o || e[19] !==
|
|
1034
|
+
if (e[18] !== o || e[19] !== l || e[20] !== i || e[21] !== u) {
|
|
1035
1035
|
let D;
|
|
1036
|
-
e[23] !==
|
|
1036
|
+
e[23] !== i ? (D = oe(i, "Failed to stop connection"), e[23] = i, e[24] = D) : D = e[24], p = {
|
|
1037
1037
|
mutationFn: u,
|
|
1038
1038
|
onSuccess(P) {
|
|
1039
|
-
o.setQueryData(
|
|
1039
|
+
o.setQueryData(l, P);
|
|
1040
1040
|
},
|
|
1041
1041
|
onError: D
|
|
1042
|
-
}, e[18] = o, e[19] =
|
|
1042
|
+
}, e[18] = o, e[19] = l, e[20] = i, e[21] = u, e[22] = p;
|
|
1043
1043
|
} else
|
|
1044
1044
|
p = e[22];
|
|
1045
1045
|
const {
|
|
1046
|
-
mutateAsync:
|
|
1046
|
+
mutateAsync: g
|
|
1047
1047
|
} = se(p);
|
|
1048
1048
|
let E;
|
|
1049
1049
|
e[25] !== r ? (E = async (D) => cn(r, D), e[25] = r, e[26] = E) : E = e[26];
|
|
1050
|
-
let
|
|
1051
|
-
if (e[27] !== n || e[28] !== r || e[29] !== o || e[30] !==
|
|
1050
|
+
let m;
|
|
1051
|
+
if (e[27] !== n || e[28] !== r || e[29] !== o || e[30] !== l || e[31] !== i || e[32] !== E) {
|
|
1052
1052
|
let D;
|
|
1053
|
-
e[34] !==
|
|
1053
|
+
e[34] !== i ? (D = oe(i, "Failed to update connection"), e[34] = i, e[35] = D) : D = e[35], m = {
|
|
1054
1054
|
mutationFn: E,
|
|
1055
1055
|
onSuccess(P, R) {
|
|
1056
1056
|
const {
|
|
1057
|
-
name:
|
|
1057
|
+
name: x
|
|
1058
1058
|
} = R;
|
|
1059
|
-
|
|
1060
|
-
message: `Connection ${
|
|
1059
|
+
i({
|
|
1060
|
+
message: `Connection ${x} successfully updated`,
|
|
1061
1061
|
status: "success"
|
|
1062
|
-
}), o.setQueryData(
|
|
1062
|
+
}), o.setQueryData(l, P), o.setQueriesData({
|
|
1063
1063
|
queryKey: [r, "connection", "list"]
|
|
1064
|
-
}, (
|
|
1064
|
+
}, (A) => A?.map((L) => L.id === n ? P : L));
|
|
1065
1065
|
},
|
|
1066
1066
|
onError: D
|
|
1067
|
-
}, e[27] = n, e[28] = r, e[29] = o, e[30] =
|
|
1067
|
+
}, e[27] = n, e[28] = r, e[29] = o, e[30] = l, e[31] = i, e[32] = E, e[33] = m;
|
|
1068
1068
|
} else
|
|
1069
|
-
|
|
1069
|
+
m = e[33];
|
|
1070
1070
|
const {
|
|
1071
1071
|
mutateAsync: S
|
|
1072
|
-
} = se(
|
|
1072
|
+
} = se(m);
|
|
1073
1073
|
let y;
|
|
1074
1074
|
e[36] !== n || e[37] !== r ? (y = async () => an(r, n), e[36] = n, e[37] = r, e[38] = y) : y = e[38];
|
|
1075
1075
|
let v;
|
|
1076
|
-
if (e[39] !== n || e[40] !== r || e[41] !== o || e[42] !==
|
|
1076
|
+
if (e[39] !== n || e[40] !== r || e[41] !== o || e[42] !== l || e[43] !== i || e[44] !== y) {
|
|
1077
1077
|
let D;
|
|
1078
|
-
e[46] !==
|
|
1078
|
+
e[46] !== i ? (D = oe(i, "Failed to remove connection"), e[46] = i, e[47] = D) : D = e[47], v = {
|
|
1079
1079
|
mutationFn: y,
|
|
1080
1080
|
onSuccess() {
|
|
1081
|
-
|
|
1081
|
+
i({
|
|
1082
1082
|
message: "Connection successfully removed",
|
|
1083
1083
|
status: "success"
|
|
1084
|
-
}), o.setQueryData(
|
|
1084
|
+
}), o.setQueryData(l, void 0), o.setQueriesData({
|
|
1085
1085
|
queryKey: [r, "connection", "list"]
|
|
1086
1086
|
}, (P) => P?.filter((R) => R.id !== n));
|
|
1087
1087
|
},
|
|
1088
1088
|
onError: D
|
|
1089
|
-
}, e[39] = n, e[40] = r, e[41] = o, e[42] =
|
|
1089
|
+
}, e[39] = n, e[40] = r, e[41] = o, e[42] = l, e[43] = i, e[44] = y, e[45] = v;
|
|
1090
1090
|
} else
|
|
1091
1091
|
v = e[45];
|
|
1092
1092
|
const {
|
|
1093
1093
|
mutateAsync: h
|
|
1094
1094
|
} = se(v);
|
|
1095
|
-
let
|
|
1096
|
-
e[48] !== n || e[49] !== r ? (
|
|
1095
|
+
let w;
|
|
1096
|
+
e[48] !== n || e[49] !== r ? (w = async () => ln(r, n), e[48] = n, e[49] = r, e[50] = w) : w = e[50];
|
|
1097
1097
|
let I;
|
|
1098
|
-
e[51] !==
|
|
1099
|
-
queryKey:
|
|
1100
|
-
queryFn:
|
|
1101
|
-
}, e[51] =
|
|
1098
|
+
e[51] !== l || e[52] !== w ? (I = {
|
|
1099
|
+
queryKey: l,
|
|
1100
|
+
queryFn: w
|
|
1101
|
+
}, e[51] = l, e[52] = w, e[53] = I) : I = e[53];
|
|
1102
1102
|
const T = re(I);
|
|
1103
1103
|
let C;
|
|
1104
|
-
return e[54] !== T || e[55] !== h || e[56] !== f || e[57] !==
|
|
1104
|
+
return e[54] !== T || e[55] !== h || e[56] !== f || e[57] !== g || e[58] !== S ? (C = {
|
|
1105
1105
|
connection: T,
|
|
1106
1106
|
startConnection: f,
|
|
1107
|
-
stopConnection:
|
|
1107
|
+
stopConnection: g,
|
|
1108
1108
|
updateConnection: S,
|
|
1109
1109
|
deleteConnection: h
|
|
1110
|
-
}, e[54] = T, e[55] = h, e[56] = f, e[57] =
|
|
1111
|
-
}, vr = (t) => [t, "connection", "list"],
|
|
1110
|
+
}, e[54] = T, e[55] = h, e[56] = f, e[57] = g, e[58] = S, e[59] = C) : C = e[59], C;
|
|
1111
|
+
}, vr = (t) => [t, "connection", "list"], ws = (t) => {
|
|
1112
1112
|
const e = $(33), {
|
|
1113
1113
|
plugin: s
|
|
1114
|
-
} = t, n = ee(s), r =
|
|
1114
|
+
} = t, n = ee(s), r = ge(), {
|
|
1115
1115
|
showSnackbar: o
|
|
1116
1116
|
} = de();
|
|
1117
|
-
let
|
|
1118
|
-
e[0] !== n ? (
|
|
1119
|
-
const
|
|
1120
|
-
let
|
|
1121
|
-
e[2] !== n ? (
|
|
1117
|
+
let i;
|
|
1118
|
+
e[0] !== n ? (i = vr(n), e[0] = n, e[1] = i) : i = e[1];
|
|
1119
|
+
const c = i;
|
|
1120
|
+
let l;
|
|
1121
|
+
e[2] !== n ? (l = async (C) => ft(n, C.id), e[2] = n, e[3] = l) : l = e[3];
|
|
1122
1122
|
let d;
|
|
1123
1123
|
e[4] !== o ? (d = oe(o, "Failed to start connection watch"), e[4] = o, e[5] = d) : d = e[5];
|
|
1124
|
-
let
|
|
1125
|
-
e[6] !==
|
|
1126
|
-
mutationFn:
|
|
1124
|
+
let a;
|
|
1125
|
+
e[6] !== l || e[7] !== d ? (a = {
|
|
1126
|
+
mutationFn: l,
|
|
1127
1127
|
onError: d
|
|
1128
|
-
}, e[6] =
|
|
1128
|
+
}, e[6] = l, e[7] = d, e[8] = a) : a = e[8];
|
|
1129
1129
|
const {
|
|
1130
1130
|
mutateAsync: f
|
|
1131
|
-
} = se(
|
|
1131
|
+
} = se(a);
|
|
1132
1132
|
let u;
|
|
1133
1133
|
e[9] !== n ? (u = async (C) => un(n, C.id), e[9] = n, e[10] = u) : u = e[10];
|
|
1134
1134
|
let p;
|
|
1135
1135
|
e[11] !== o ? (p = oe(o, "Failed to stop connection watch"), e[11] = o, e[12] = p) : p = e[12];
|
|
1136
|
-
let
|
|
1137
|
-
e[13] !== u || e[14] !== p ? (
|
|
1136
|
+
let g;
|
|
1137
|
+
e[13] !== u || e[14] !== p ? (g = {
|
|
1138
1138
|
mutationFn: u,
|
|
1139
1139
|
onError: p
|
|
1140
|
-
}, e[13] = u, e[14] = p, e[15] =
|
|
1140
|
+
}, e[13] = u, e[14] = p, e[15] = g) : g = e[15];
|
|
1141
1141
|
const {
|
|
1142
1142
|
mutateAsync: E
|
|
1143
|
-
} = se(
|
|
1144
|
-
let
|
|
1145
|
-
e[16] !== r || e[17] !==
|
|
1143
|
+
} = se(g);
|
|
1144
|
+
let m;
|
|
1145
|
+
e[16] !== r || e[17] !== c ? (m = (C) => {
|
|
1146
1146
|
const D = C.data;
|
|
1147
|
-
console.log("got update to connections", D), r.setQueryData(
|
|
1148
|
-
}, e[16] = r, e[17] =
|
|
1149
|
-
const S =
|
|
1147
|
+
console.log("got update to connections", D), r.setQueryData(c, D);
|
|
1148
|
+
}, e[16] = r, e[17] = c, e[18] = m) : m = e[18];
|
|
1149
|
+
const S = m;
|
|
1150
1150
|
let y, v;
|
|
1151
1151
|
e[19] !== S || e[20] !== n ? (v = () => {
|
|
1152
1152
|
const C = ne(`${n}/connection/sync`, S);
|
|
@@ -1164,65 +1164,65 @@ const Is = (t) => {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
return [];
|
|
1166
1166
|
}, e[23] = n, e[24] = o, e[25] = h) : h = e[25];
|
|
1167
|
-
let
|
|
1168
|
-
e[26] !==
|
|
1169
|
-
queryKey:
|
|
1167
|
+
let w;
|
|
1168
|
+
e[26] !== c || e[27] !== h ? (w = {
|
|
1169
|
+
queryKey: c,
|
|
1170
1170
|
queryFn: h,
|
|
1171
1171
|
staleTime: 3e4,
|
|
1172
1172
|
placeholderData: ut
|
|
1173
|
-
}, e[26] =
|
|
1174
|
-
const I = re(
|
|
1173
|
+
}, e[26] = c, e[27] = h, e[28] = w) : w = e[28];
|
|
1174
|
+
const I = re(w);
|
|
1175
1175
|
let T;
|
|
1176
1176
|
return e[29] !== I || e[30] !== f || e[31] !== E ? (T = {
|
|
1177
1177
|
connections: I,
|
|
1178
1178
|
startWatch: f,
|
|
1179
1179
|
stopWatch: E
|
|
1180
1180
|
}, e[29] = I, e[30] = f, e[31] = E, e[32] = T) : T = e[32], T;
|
|
1181
|
-
},
|
|
1181
|
+
}, bs = (t) => {
|
|
1182
1182
|
const e = $(11), {
|
|
1183
1183
|
pluginID: s,
|
|
1184
1184
|
connectionID: n
|
|
1185
1185
|
} = t, r = ee(s);
|
|
1186
1186
|
let o;
|
|
1187
1187
|
e[0] !== n || e[1] !== r ? (o = [r, "connection", "namespaces", n], e[0] = n, e[1] = r, e[2] = o) : o = e[2];
|
|
1188
|
-
const
|
|
1189
|
-
let
|
|
1190
|
-
e[3] !== n || e[4] !== r ? (
|
|
1191
|
-
let a;
|
|
1192
|
-
e[6] !== c || e[7] !== i ? (a = {
|
|
1193
|
-
queryKey: c,
|
|
1194
|
-
queryFn: i
|
|
1195
|
-
}, e[6] = c, e[7] = i, e[8] = a) : a = e[8];
|
|
1196
|
-
const d = re(a);
|
|
1188
|
+
const i = o;
|
|
1189
|
+
let c;
|
|
1190
|
+
e[3] !== n || e[4] !== r ? (c = async () => fn(r, n), e[3] = n, e[4] = r, e[5] = c) : c = e[5];
|
|
1197
1191
|
let l;
|
|
1198
|
-
|
|
1192
|
+
e[6] !== i || e[7] !== c ? (l = {
|
|
1193
|
+
queryKey: i,
|
|
1194
|
+
queryFn: c
|
|
1195
|
+
}, e[6] = i, e[7] = c, e[8] = l) : l = e[8];
|
|
1196
|
+
const d = re(l);
|
|
1197
|
+
let a;
|
|
1198
|
+
return e[9] !== d ? (a = {
|
|
1199
1199
|
namespaces: d
|
|
1200
|
-
}, e[9] = d, e[10] =
|
|
1200
|
+
}, e[9] = d, e[10] = a) : a = e[10], a;
|
|
1201
1201
|
}, G = rr(Vn, "WatchState");
|
|
1202
1202
|
function Be(t) {
|
|
1203
1203
|
const e = Object.values(t.states), s = e.length;
|
|
1204
|
-
let n = 0, r = 0, o = 0,
|
|
1205
|
-
for (const
|
|
1206
|
-
|
|
1207
|
-
const
|
|
1204
|
+
let n = 0, r = 0, o = 0, i = 0;
|
|
1205
|
+
for (const a of e)
|
|
1206
|
+
a === G.WatchStateSynced && n++, (a === G.WatchStateError || a === G.WatchStateFailed) && r++, a === G.WatchStateForbidden && o++, a === G.WatchStateSkipped && i++;
|
|
1207
|
+
const c = s - i, l = e.filter((a) => a === G.WatchStateSynced || a === G.WatchStateError || a === G.WatchStateStopped || a === G.WatchStateFailed || a === G.WatchStateForbidden).length, d = c > 0 ? l / c : 0;
|
|
1208
1208
|
return {
|
|
1209
1209
|
pluginID: t.pluginID,
|
|
1210
1210
|
connectionID: t.connectionID,
|
|
1211
1211
|
totalResources: s,
|
|
1212
|
-
watchedTotal:
|
|
1212
|
+
watchedTotal: c,
|
|
1213
1213
|
syncedCount: n,
|
|
1214
1214
|
errorCount: r,
|
|
1215
1215
|
forbiddenCount: o,
|
|
1216
|
-
skippedCount:
|
|
1217
|
-
doneCount:
|
|
1216
|
+
skippedCount: i,
|
|
1217
|
+
doneCount: l,
|
|
1218
1218
|
progress: d
|
|
1219
1219
|
};
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function Fe(t) {
|
|
1222
1222
|
return t.watchedTotal > 0 && t.doneCount >= t.watchedTotal;
|
|
1223
1223
|
}
|
|
1224
1224
|
function Tt(t) {
|
|
1225
|
-
return t.some((e) => !
|
|
1225
|
+
return t.some((e) => !Fe(e));
|
|
1226
1226
|
}
|
|
1227
1227
|
function Pt(t) {
|
|
1228
1228
|
const e = t.reduce((n, r) => n + r.watchedTotal, 0);
|
|
@@ -1248,27 +1248,27 @@ function Cs() {
|
|
|
1248
1248
|
const [s, n] = pe(e);
|
|
1249
1249
|
let r;
|
|
1250
1250
|
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = {}, t[1] = r) : r = t[1];
|
|
1251
|
-
const [o,
|
|
1252
|
-
let
|
|
1253
|
-
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1254
|
-
const [
|
|
1255
|
-
let
|
|
1256
|
-
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1257
|
-
const f = ae(
|
|
1251
|
+
const [o, i] = pe(r);
|
|
1252
|
+
let c;
|
|
1253
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ new Map(), t[2] = c) : c = t[2];
|
|
1254
|
+
const [l, d] = pe(c);
|
|
1255
|
+
let a;
|
|
1256
|
+
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ new Map(), t[3] = a) : a = t[3];
|
|
1257
|
+
const f = ae(a);
|
|
1258
1258
|
let u;
|
|
1259
1259
|
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ new Map(), t[4] = u) : u = t[4];
|
|
1260
|
-
const [p,
|
|
1261
|
-
let E,
|
|
1260
|
+
const [p, g] = pe(u);
|
|
1261
|
+
let E, m;
|
|
1262
1262
|
t[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = () => {
|
|
1263
1263
|
const Q = ne("plugin/crash_recovery_failed", (H) => {
|
|
1264
1264
|
const V = H.data, M = V?.pluginID;
|
|
1265
|
-
M &&
|
|
1265
|
+
M && g((N) => {
|
|
1266
1266
|
const J = new Map(N);
|
|
1267
1267
|
return J.set(M, V.error ?? "Crash recovery failed"), J;
|
|
1268
1268
|
});
|
|
1269
1269
|
}), Y = ne("plugin/recovered", (H) => {
|
|
1270
1270
|
const M = H.data?.pluginID;
|
|
1271
|
-
M &&
|
|
1271
|
+
M && g((N) => {
|
|
1272
1272
|
if (!N.has(M))
|
|
1273
1273
|
return N;
|
|
1274
1274
|
const J = new Map(N);
|
|
@@ -1278,7 +1278,7 @@ function Cs() {
|
|
|
1278
1278
|
return () => {
|
|
1279
1279
|
Q(), Y();
|
|
1280
1280
|
};
|
|
1281
|
-
},
|
|
1281
|
+
}, m = [], t[5] = E, t[6] = m) : (E = t[5], m = t[6]), ue(E, m);
|
|
1282
1282
|
let S, y;
|
|
1283
1283
|
t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = () => {
|
|
1284
1284
|
pn().then((Q) => {
|
|
@@ -1293,18 +1293,18 @@ function Cs() {
|
|
|
1293
1293
|
continue;
|
|
1294
1294
|
const fe = `${M}/${J.connection.id}`;
|
|
1295
1295
|
H.add(fe);
|
|
1296
|
-
const
|
|
1296
|
+
const me = {
|
|
1297
1297
|
pluginID: M,
|
|
1298
1298
|
connectionID: J.connection.id,
|
|
1299
1299
|
states: {}
|
|
1300
1300
|
};
|
|
1301
1301
|
if (J.resources)
|
|
1302
1302
|
for (const [Ie, ve] of Object.entries(J.resources))
|
|
1303
|
-
|
|
1304
|
-
f.current.set(fe,
|
|
1303
|
+
me.states[Ie] = ve;
|
|
1304
|
+
f.current.set(fe, me), V.set(fe, Be(me));
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
|
-
|
|
1307
|
+
i(Y), n(H), d(V);
|
|
1308
1308
|
}).catch(Dr);
|
|
1309
1309
|
}, y = [], t[7] = S, t[8] = y) : (S = t[7], y = t[8]), ue(S, y);
|
|
1310
1310
|
let v, h;
|
|
@@ -1325,11 +1325,11 @@ function Cs() {
|
|
|
1325
1325
|
const N = {};
|
|
1326
1326
|
for (const [J, fe] of Object.entries(M))
|
|
1327
1327
|
fe != null && (N[J] = fe);
|
|
1328
|
-
|
|
1328
|
+
i(N);
|
|
1329
1329
|
}).catch(Cr);
|
|
1330
1330
|
}), v = [], t[9] = v, t[10] = h) : (v = t[9], h = t[10]), ue(h, v);
|
|
1331
|
-
let
|
|
1332
|
-
t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1331
|
+
let w;
|
|
1332
|
+
t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = (Q) => {
|
|
1333
1333
|
const Y = Q.data, H = Ye(Y);
|
|
1334
1334
|
n((N) => {
|
|
1335
1335
|
if (N.has(H))
|
|
@@ -1342,37 +1342,37 @@ function Cs() {
|
|
|
1342
1342
|
const J = new Map(N);
|
|
1343
1343
|
return J.set(H, M), J;
|
|
1344
1344
|
});
|
|
1345
|
-
}, t[11] =
|
|
1346
|
-
const I =
|
|
1345
|
+
}, t[11] = w) : w = t[11];
|
|
1346
|
+
const I = w;
|
|
1347
1347
|
let T, C;
|
|
1348
1348
|
t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = () => ne("watch/STATE", I), C = [I], t[12] = T, t[13] = C) : (T = t[12], C = t[13]), ue(T, C);
|
|
1349
|
-
const D =
|
|
1349
|
+
const D = br, P = wr;
|
|
1350
1350
|
let R;
|
|
1351
1351
|
t[14] !== p ? (R = async (Q) => {
|
|
1352
1352
|
const Y = p.get(Q);
|
|
1353
|
-
|
|
1353
|
+
g((H) => {
|
|
1354
1354
|
if (!H.has(Q))
|
|
1355
1355
|
return H;
|
|
1356
1356
|
const V = new Map(H);
|
|
1357
1357
|
return V.delete(Q), V;
|
|
1358
1358
|
});
|
|
1359
1359
|
try {
|
|
1360
|
-
await
|
|
1360
|
+
await gn(Q);
|
|
1361
1361
|
} catch (H) {
|
|
1362
1362
|
const V = H;
|
|
1363
|
-
throw
|
|
1363
|
+
throw g((M) => {
|
|
1364
1364
|
const N = new Map(M);
|
|
1365
1365
|
return N.set(Q, Y ?? "Reload failed"), N;
|
|
1366
1366
|
}), V;
|
|
1367
1367
|
}
|
|
1368
1368
|
}, t[14] = p, t[15] = R) : R = t[15];
|
|
1369
|
-
const
|
|
1370
|
-
let
|
|
1371
|
-
if (t[16] !== o || t[17] !== p || t[18] !== s || t[19] !==
|
|
1372
|
-
|
|
1369
|
+
const x = R;
|
|
1370
|
+
let A, L;
|
|
1371
|
+
if (t[16] !== o || t[17] !== p || t[18] !== s || t[19] !== l) {
|
|
1372
|
+
A = [];
|
|
1373
1373
|
for (const Q of s) {
|
|
1374
|
-
const [Y, H] = Q.split("/", 2), M = (o[Y] ?? []).find((Ie) => Ie.id === H), N =
|
|
1375
|
-
|
|
1374
|
+
const [Y, H] = Q.split("/", 2), M = (o[Y] ?? []).find((Ie) => Ie.id === H), N = l.get(Q), J = N != null && !Fe(N), fe = N != null && N.errorCount > 0, me = p.get(Y);
|
|
1375
|
+
A.push({
|
|
1376
1376
|
pluginID: Y,
|
|
1377
1377
|
connectionID: H,
|
|
1378
1378
|
name: M?.name ?? H,
|
|
@@ -1380,36 +1380,36 @@ function Cs() {
|
|
|
1380
1380
|
isStarted: !0,
|
|
1381
1381
|
sync: N,
|
|
1382
1382
|
isSyncing: J,
|
|
1383
|
-
hasErrors: fe ||
|
|
1384
|
-
pluginFailed:
|
|
1385
|
-
pluginError:
|
|
1383
|
+
hasErrors: fe || me != null,
|
|
1384
|
+
pluginFailed: me != null,
|
|
1385
|
+
pluginError: me
|
|
1386
1386
|
});
|
|
1387
1387
|
}
|
|
1388
1388
|
L = /* @__PURE__ */ new Map();
|
|
1389
|
-
for (const Q of
|
|
1389
|
+
for (const Q of A) {
|
|
1390
1390
|
const Y = L.get(Q.pluginID) ?? [];
|
|
1391
1391
|
Y.push(Q), L.set(Q.pluginID, Y);
|
|
1392
1392
|
}
|
|
1393
|
-
t[16] = o, t[17] = p, t[18] = s, t[19] =
|
|
1393
|
+
t[16] = o, t[17] = p, t[18] = s, t[19] = l, t[20] = A, t[21] = L;
|
|
1394
1394
|
} else
|
|
1395
|
-
|
|
1395
|
+
A = t[20], L = t[21];
|
|
1396
1396
|
let j, U, W, K, z, k, B, Z;
|
|
1397
|
-
if (t[22] !==
|
|
1398
|
-
const Q = Array.from(
|
|
1397
|
+
if (t[22] !== A || t[23] !== L || t[24] !== l) {
|
|
1398
|
+
const Q = Array.from(l.values());
|
|
1399
1399
|
let Y;
|
|
1400
|
-
t[33] !==
|
|
1400
|
+
t[33] !== A ? (Y = A.filter(Ir), t[33] = A, t[34] = Y) : Y = t[34];
|
|
1401
1401
|
const H = Y;
|
|
1402
1402
|
let V;
|
|
1403
|
-
t[35] !==
|
|
1403
|
+
t[35] !== A ? (V = A.filter(Er), t[35] = A, t[36] = V) : V = t[36];
|
|
1404
1404
|
const M = V;
|
|
1405
1405
|
let N;
|
|
1406
|
-
t[37] !==
|
|
1406
|
+
t[37] !== A ? (N = A.filter(Sr), t[37] = A, t[38] = N) : N = t[38];
|
|
1407
1407
|
const J = N;
|
|
1408
|
-
j =
|
|
1408
|
+
j = A, U = L, W = A.length, K = H.length, z = M.length, k = J.length, B = Tt(Q), Z = Pt(Q), t[22] = A, t[23] = L, t[24] = l, t[25] = j, t[26] = U, t[27] = W, t[28] = K, t[29] = z, t[30] = k, t[31] = B, t[32] = Z;
|
|
1409
1409
|
} else
|
|
1410
1410
|
j = t[25], U = t[26], W = t[27], K = t[28], z = t[29], k = t[30], B = t[31], Z = t[32];
|
|
1411
1411
|
let ye;
|
|
1412
|
-
return t[39] !==
|
|
1412
|
+
return t[39] !== x || t[40] !== j || t[41] !== U || t[42] !== W || t[43] !== K || t[44] !== z || t[45] !== k || t[46] !== B || t[47] !== Z ? (ye = {
|
|
1413
1413
|
entries: j,
|
|
1414
1414
|
grouped: U,
|
|
1415
1415
|
connectedCount: W,
|
|
@@ -1420,8 +1420,8 @@ function Cs() {
|
|
|
1420
1420
|
aggregateProgress: Z,
|
|
1421
1421
|
disconnect: D,
|
|
1422
1422
|
retryWatch: P,
|
|
1423
|
-
retryPlugin:
|
|
1424
|
-
}, t[39] =
|
|
1423
|
+
retryPlugin: x
|
|
1424
|
+
}, t[39] = x, t[40] = j, t[41] = U, t[42] = W, t[43] = K, t[44] = z, t[45] = k, t[46] = B, t[47] = Z, t[48] = ye) : ye = t[48], ye;
|
|
1425
1425
|
}
|
|
1426
1426
|
function Sr(t) {
|
|
1427
1427
|
return t.pluginFailed;
|
|
@@ -1432,10 +1432,10 @@ function Er(t) {
|
|
|
1432
1432
|
function Ir(t) {
|
|
1433
1433
|
return t.isSyncing;
|
|
1434
1434
|
}
|
|
1435
|
-
async function
|
|
1435
|
+
async function wr(t, e) {
|
|
1436
1436
|
await ft(t, e);
|
|
1437
1437
|
}
|
|
1438
|
-
async function
|
|
1438
|
+
async function br(t, e) {
|
|
1439
1439
|
await dt(t, e);
|
|
1440
1440
|
}
|
|
1441
1441
|
function Cr() {
|
|
@@ -1445,63 +1445,63 @@ function Dr() {
|
|
|
1445
1445
|
function Rr(t) {
|
|
1446
1446
|
return t.connection;
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function Ar(t, e) {
|
|
1449
1449
|
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;
|
|
1450
1450
|
}
|
|
1451
1451
|
function Ds(t, e, s) {
|
|
1452
|
-
const n = $(29), r = ee(t), o =
|
|
1453
|
-
let
|
|
1454
|
-
n[0] !== e || n[1] !== r ? (
|
|
1455
|
-
const
|
|
1456
|
-
let
|
|
1457
|
-
n[3] !== s || n[4] !== e || n[5] !== r ? (
|
|
1458
|
-
const h = await
|
|
1459
|
-
return h == null ? s :
|
|
1460
|
-
}, n[3] = s, n[4] = e, n[5] = r, n[6] =
|
|
1452
|
+
const n = $(29), r = ee(t), o = ge();
|
|
1453
|
+
let i;
|
|
1454
|
+
n[0] !== e || n[1] !== r ? (i = [r, "data", e], n[0] = e, n[1] = r, n[2] = i) : i = n[2];
|
|
1455
|
+
const c = i;
|
|
1456
|
+
let l;
|
|
1457
|
+
n[3] !== s || n[4] !== e || n[5] !== r ? (l = async () => {
|
|
1458
|
+
const h = await mn(r, e);
|
|
1459
|
+
return h == null ? s : Ar(h, s) ? h : (console.warn(`[usePluginData] stored value for "${e}" has unexpected type (expected ${Array.isArray(s) ? "array" : typeof s}, got ${Array.isArray(h) ? "array" : typeof h}). Using default.`), s);
|
|
1460
|
+
}, n[3] = s, n[4] = e, n[5] = r, n[6] = l) : l = n[6];
|
|
1461
1461
|
let d;
|
|
1462
|
-
n[7] !==
|
|
1463
|
-
queryKey:
|
|
1464
|
-
queryFn:
|
|
1465
|
-
}, n[7] =
|
|
1466
|
-
const
|
|
1462
|
+
n[7] !== c || n[8] !== l ? (d = {
|
|
1463
|
+
queryKey: c,
|
|
1464
|
+
queryFn: l
|
|
1465
|
+
}, n[7] = c, n[8] = l, n[9] = d) : d = n[9];
|
|
1466
|
+
const a = re(d);
|
|
1467
1467
|
let f;
|
|
1468
1468
|
n[10] !== e || n[11] !== r ? (f = async (h) => {
|
|
1469
1469
|
await yn(r, e, h);
|
|
1470
1470
|
}, n[10] = e, n[11] = r, n[12] = f) : f = n[12];
|
|
1471
|
-
let u, p,
|
|
1472
|
-
n[13] !== o || n[14] !==
|
|
1471
|
+
let u, p, g;
|
|
1472
|
+
n[13] !== o || n[14] !== c ? (u = async (h) => {
|
|
1473
1473
|
await o.cancelQueries({
|
|
1474
|
-
queryKey:
|
|
1474
|
+
queryKey: c
|
|
1475
1475
|
});
|
|
1476
|
-
const
|
|
1477
|
-
return o.setQueryData(
|
|
1478
|
-
previous:
|
|
1476
|
+
const w = o.getQueryData(c);
|
|
1477
|
+
return o.setQueryData(c, h), {
|
|
1478
|
+
previous: w
|
|
1479
1479
|
};
|
|
1480
|
-
}, p = (h,
|
|
1481
|
-
I?.previous !== void 0 && o.setQueryData(
|
|
1482
|
-
},
|
|
1480
|
+
}, p = (h, w, I) => {
|
|
1481
|
+
I?.previous !== void 0 && o.setQueryData(c, I.previous);
|
|
1482
|
+
}, g = () => {
|
|
1483
1483
|
o.invalidateQueries({
|
|
1484
|
-
queryKey:
|
|
1484
|
+
queryKey: c
|
|
1485
1485
|
});
|
|
1486
|
-
}, n[13] = o, n[14] =
|
|
1486
|
+
}, n[13] = o, n[14] = c, n[15] = u, n[16] = p, n[17] = g) : (u = n[15], p = n[16], g = n[17]);
|
|
1487
1487
|
let E;
|
|
1488
|
-
n[18] !== f || n[19] !== u || n[20] !== p || n[21] !==
|
|
1488
|
+
n[18] !== f || n[19] !== u || n[20] !== p || n[21] !== g ? (E = {
|
|
1489
1489
|
mutationFn: f,
|
|
1490
1490
|
onMutate: u,
|
|
1491
1491
|
onError: p,
|
|
1492
|
-
onSettled:
|
|
1493
|
-
}, n[18] = f, n[19] = u, n[20] = p, n[21] =
|
|
1494
|
-
const
|
|
1492
|
+
onSettled: g
|
|
1493
|
+
}, n[18] = f, n[19] = u, n[20] = p, n[21] = g, n[22] = E) : E = n[22];
|
|
1494
|
+
const m = se(E), S = a.data ?? s;
|
|
1495
1495
|
let y;
|
|
1496
|
-
n[23] !==
|
|
1497
|
-
await
|
|
1498
|
-
}, n[23] =
|
|
1496
|
+
n[23] !== m ? (y = async (h) => {
|
|
1497
|
+
await m.mutateAsync(h);
|
|
1498
|
+
}, n[23] = m, n[24] = y) : y = n[24];
|
|
1499
1499
|
let v;
|
|
1500
|
-
return n[25] !==
|
|
1500
|
+
return n[25] !== a.isLoading || n[26] !== S || n[27] !== y ? (v = {
|
|
1501
1501
|
data: S,
|
|
1502
1502
|
update: y,
|
|
1503
|
-
isLoading:
|
|
1504
|
-
}, n[25] =
|
|
1503
|
+
isLoading: a.isLoading
|
|
1504
|
+
}, n[25] = a.isLoading, n[26] = S, n[27] = y, n[28] = v) : v = n[28], v;
|
|
1505
1505
|
}
|
|
1506
1506
|
const Rs = () => {
|
|
1507
1507
|
const t = Ee(ar);
|
|
@@ -1513,7 +1513,7 @@ const Rs = () => {
|
|
|
1513
1513
|
if (t === void 0)
|
|
1514
1514
|
throw new Error("useBottomDrawer must be used within a BottomDrawerProvider");
|
|
1515
1515
|
return t;
|
|
1516
|
-
},
|
|
1516
|
+
}, As = ({
|
|
1517
1517
|
pluginID: t
|
|
1518
1518
|
}) => {
|
|
1519
1519
|
const e = ee(t), {
|
|
@@ -1525,26 +1525,26 @@ const Rs = () => {
|
|
|
1525
1525
|
return {
|
|
1526
1526
|
createSession: se({
|
|
1527
1527
|
mutationFn: async ({
|
|
1528
|
-
connectionID:
|
|
1529
|
-
icon:
|
|
1530
|
-
label:
|
|
1528
|
+
connectionID: i,
|
|
1529
|
+
icon: c,
|
|
1530
|
+
label: l,
|
|
1531
1531
|
opts: d,
|
|
1532
|
-
recovery:
|
|
1532
|
+
recovery: a
|
|
1533
1533
|
}) => {
|
|
1534
1534
|
const f = `pending-${crypto.randomUUID()}`;
|
|
1535
1535
|
n({
|
|
1536
1536
|
id: f,
|
|
1537
|
-
title:
|
|
1537
|
+
title: l ?? "Connecting...",
|
|
1538
1538
|
variant: "terminal",
|
|
1539
|
-
icon:
|
|
1539
|
+
icon: c ?? "LuSquareTerminal",
|
|
1540
1540
|
properties: {
|
|
1541
1541
|
status: "connecting",
|
|
1542
1542
|
pluginID: e,
|
|
1543
|
-
connectionID:
|
|
1543
|
+
connectionID: i,
|
|
1544
1544
|
opts: {
|
|
1545
1545
|
...d
|
|
1546
1546
|
},
|
|
1547
|
-
recovery:
|
|
1547
|
+
recovery: a
|
|
1548
1548
|
}
|
|
1549
1549
|
});
|
|
1550
1550
|
const u = Yn.createFrom({
|
|
@@ -1553,41 +1553,41 @@ const Rs = () => {
|
|
|
1553
1553
|
...d
|
|
1554
1554
|
});
|
|
1555
1555
|
try {
|
|
1556
|
-
const p = await _n(e,
|
|
1556
|
+
const p = await _n(e, i, u);
|
|
1557
1557
|
if (!p) throw new Error("Failed to create session: null response");
|
|
1558
1558
|
return r({
|
|
1559
1559
|
id: f
|
|
1560
1560
|
}, {
|
|
1561
1561
|
id: p.id,
|
|
1562
|
-
title:
|
|
1562
|
+
title: l ?? `Session ${p.id.substring(0, 8)}`,
|
|
1563
1563
|
properties: {
|
|
1564
1564
|
status: "connected",
|
|
1565
1565
|
pluginID: e,
|
|
1566
|
-
connectionID:
|
|
1566
|
+
connectionID: i,
|
|
1567
1567
|
opts: {
|
|
1568
1568
|
...d
|
|
1569
1569
|
},
|
|
1570
|
-
recovery:
|
|
1570
|
+
recovery: a
|
|
1571
1571
|
}
|
|
1572
1572
|
}), p;
|
|
1573
1573
|
} catch (p) {
|
|
1574
|
-
const
|
|
1574
|
+
const g = he(p);
|
|
1575
1575
|
return r({
|
|
1576
1576
|
id: f
|
|
1577
1577
|
}, {
|
|
1578
1578
|
properties: {
|
|
1579
1579
|
status: "error",
|
|
1580
|
-
error:
|
|
1580
|
+
error: g.detail,
|
|
1581
1581
|
pluginID: e,
|
|
1582
|
-
connectionID:
|
|
1582
|
+
connectionID: i,
|
|
1583
1583
|
opts: {
|
|
1584
1584
|
...d
|
|
1585
1585
|
},
|
|
1586
|
-
recovery:
|
|
1586
|
+
recovery: a,
|
|
1587
1587
|
errorInfo: {
|
|
1588
|
-
title:
|
|
1589
|
-
suggestion:
|
|
1590
|
-
raw:
|
|
1588
|
+
title: g.title || "Session error",
|
|
1589
|
+
suggestion: g.detail,
|
|
1590
|
+
raw: g.detail
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
}), _e(s, p, "Failed to start session"), null;
|
|
@@ -1595,7 +1595,7 @@ const Rs = () => {
|
|
|
1595
1595
|
}
|
|
1596
1596
|
}).mutateAsync
|
|
1597
1597
|
};
|
|
1598
|
-
},
|
|
1598
|
+
}, xs = (t) => {
|
|
1599
1599
|
const e = $(15), {
|
|
1600
1600
|
pluginID: s
|
|
1601
1601
|
} = t, n = ee(s), {
|
|
@@ -1603,25 +1603,25 @@ const Rs = () => {
|
|
|
1603
1603
|
} = de(), {
|
|
1604
1604
|
createTab: o
|
|
1605
1605
|
} = Ft();
|
|
1606
|
-
let
|
|
1607
|
-
e[0] !== o || e[1] !== n ? (
|
|
1606
|
+
let i;
|
|
1607
|
+
e[0] !== o || e[1] !== n ? (i = async (g) => {
|
|
1608
1608
|
const {
|
|
1609
1609
|
connectionID: E,
|
|
1610
|
-
resourceKey:
|
|
1610
|
+
resourceKey: m,
|
|
1611
1611
|
resourceID: S,
|
|
1612
1612
|
resourceData: y,
|
|
1613
1613
|
icon: v,
|
|
1614
1614
|
label: h,
|
|
1615
|
-
target:
|
|
1615
|
+
target: w,
|
|
1616
1616
|
follow: I,
|
|
1617
1617
|
tailLines: T,
|
|
1618
1618
|
params: C
|
|
1619
|
-
} =
|
|
1620
|
-
resource_key:
|
|
1619
|
+
} = g, D = I === void 0 ? !0 : I, P = T === void 0 ? 1e3 : T, R = Jn.createFrom({
|
|
1620
|
+
resource_key: m,
|
|
1621
1621
|
resource_id: S,
|
|
1622
1622
|
resource_data: y,
|
|
1623
1623
|
options: Xn.createFrom({
|
|
1624
|
-
target:
|
|
1624
|
+
target: w ?? "",
|
|
1625
1625
|
follow: D,
|
|
1626
1626
|
include_previous: !1,
|
|
1627
1627
|
include_timestamps: !0,
|
|
@@ -1631,31 +1631,31 @@ const Rs = () => {
|
|
|
1631
1631
|
include_source_events: !0,
|
|
1632
1632
|
params: C ?? {}
|
|
1633
1633
|
})
|
|
1634
|
-
}),
|
|
1635
|
-
if (!
|
|
1634
|
+
}), x = await vn(n, E, R);
|
|
1635
|
+
if (!x)
|
|
1636
1636
|
throw new Error("Failed to create log session: null response");
|
|
1637
1637
|
return o({
|
|
1638
|
-
id:
|
|
1639
|
-
title: h ?? `Logs ${
|
|
1638
|
+
id: x.id,
|
|
1639
|
+
title: h ?? `Logs ${x.id.substring(0, 8)}`,
|
|
1640
1640
|
variant: "logs",
|
|
1641
1641
|
icon: v ?? "LuLogs"
|
|
1642
|
-
}),
|
|
1643
|
-
}, e[0] = o, e[1] = n, e[2] =
|
|
1644
|
-
let
|
|
1645
|
-
e[3] !== r ? (
|
|
1646
|
-
let a;
|
|
1647
|
-
e[5] !== c || e[6] !== i ? (a = {
|
|
1648
|
-
mutationFn: c,
|
|
1649
|
-
onError: i
|
|
1650
|
-
}, e[5] = c, e[6] = i, e[7] = a) : a = e[7];
|
|
1651
|
-
const d = se(a);
|
|
1642
|
+
}), x;
|
|
1643
|
+
}, e[0] = o, e[1] = n, e[2] = i) : i = e[2];
|
|
1644
|
+
let c;
|
|
1645
|
+
e[3] !== r ? (c = oe(r, "Failed to start log session"), e[3] = r, e[4] = c) : c = e[4];
|
|
1652
1646
|
let l;
|
|
1653
|
-
e[
|
|
1647
|
+
e[5] !== i || e[6] !== c ? (l = {
|
|
1648
|
+
mutationFn: i,
|
|
1649
|
+
onError: c
|
|
1650
|
+
}, e[5] = i, e[6] = c, e[7] = l) : l = e[7];
|
|
1651
|
+
const d = se(l);
|
|
1652
|
+
let a;
|
|
1653
|
+
e[8] !== r ? (a = oe(r, "Failed to close log session"), e[8] = r, e[9] = a) : a = e[9];
|
|
1654
1654
|
let f;
|
|
1655
|
-
e[10] !==
|
|
1656
|
-
mutationFn:
|
|
1657
|
-
onError:
|
|
1658
|
-
}, e[10] =
|
|
1655
|
+
e[10] !== a ? (f = {
|
|
1656
|
+
mutationFn: xr,
|
|
1657
|
+
onError: a
|
|
1658
|
+
}, e[10] = a, e[11] = f) : f = e[11];
|
|
1659
1659
|
const u = se(f);
|
|
1660
1660
|
let p;
|
|
1661
1661
|
return e[12] !== u.mutateAsync || e[13] !== d.mutateAsync ? (p = {
|
|
@@ -1663,7 +1663,7 @@ const Rs = () => {
|
|
|
1663
1663
|
closeLogSession: u.mutateAsync
|
|
1664
1664
|
}, e[12] = u.mutateAsync, e[13] = d.mutateAsync, e[14] = p) : p = e[14], p;
|
|
1665
1665
|
};
|
|
1666
|
-
async function
|
|
1666
|
+
async function xr(t) {
|
|
1667
1667
|
await Sn(t);
|
|
1668
1668
|
}
|
|
1669
1669
|
const Ts = () => {
|
|
@@ -1692,21 +1692,21 @@ const Ts = () => {
|
|
|
1692
1692
|
resourceKey: n,
|
|
1693
1693
|
resourceID: r,
|
|
1694
1694
|
resourceNamespace: o,
|
|
1695
|
-
resourceData:
|
|
1696
|
-
metricIDs:
|
|
1697
|
-
shape:
|
|
1695
|
+
resourceData: i,
|
|
1696
|
+
metricIDs: c,
|
|
1697
|
+
shape: l,
|
|
1698
1698
|
timeRange: d,
|
|
1699
|
-
refreshInterval:
|
|
1699
|
+
refreshInterval: a,
|
|
1700
1700
|
enabled: f
|
|
1701
1701
|
} = t, u = o === void 0 ? "" : o;
|
|
1702
1702
|
let p;
|
|
1703
|
-
e[0] !==
|
|
1704
|
-
const
|
|
1703
|
+
e[0] !== i ? (p = i === void 0 ? {} : i, e[0] = i, e[1] = p) : p = e[1];
|
|
1704
|
+
const g = p;
|
|
1705
1705
|
let E;
|
|
1706
|
-
e[2] !==
|
|
1707
|
-
const
|
|
1706
|
+
e[2] !== c ? (E = c === void 0 ? [] : c, e[2] = c, e[3] = E) : E = e[3];
|
|
1707
|
+
const m = E, S = l === void 0 ? 0 : l, y = a === void 0 ? 0 : a, v = f === void 0 ? !0 : f, {
|
|
1708
1708
|
data: h,
|
|
1709
|
-
isLoading:
|
|
1709
|
+
isLoading: w
|
|
1710
1710
|
} = Tr(n);
|
|
1711
1711
|
let I;
|
|
1712
1712
|
e[4] !== h ? (I = h ?? [], e[4] = h, e[5] = I) : I = e[5];
|
|
@@ -1716,27 +1716,27 @@ const Ts = () => {
|
|
|
1716
1716
|
let P;
|
|
1717
1717
|
e[8] !== d?.end ? (P = d?.end?.getTime(), e[8] = d?.end, e[9] = P) : P = e[9];
|
|
1718
1718
|
let R;
|
|
1719
|
-
e[10] !== s || e[11] !==
|
|
1720
|
-
let
|
|
1721
|
-
e[19] !== s || e[20] !==
|
|
1722
|
-
const B = await
|
|
1719
|
+
e[10] !== s || e[11] !== m || e[12] !== r || e[13] !== n || e[14] !== u || e[15] !== S || e[16] !== P || e[17] !== D ? (R = ["metric", "query", s, n, r, u, m, S, D, P], e[10] = s, e[11] = m, e[12] = r, e[13] = n, e[14] = u, e[15] = S, e[16] = P, e[17] = D, e[18] = R) : R = e[18];
|
|
1720
|
+
let x;
|
|
1721
|
+
e[19] !== s || e[20] !== m || e[21] !== g || e[22] !== r || e[23] !== n || e[24] !== u || e[25] !== S || e[26] !== C || e[27] !== d?.end || e[28] !== d?.start ? (x = async () => {
|
|
1722
|
+
const B = await wn(s, n, r, u, g, m, S, (d?.start ?? /* @__PURE__ */ new Date(0)).toISOString(), (d?.end ?? /* @__PURE__ */ new Date(0)).toISOString(), C), Z = {};
|
|
1723
1723
|
for (const [ye, Q] of Object.entries(B))
|
|
1724
1724
|
Q != null && (Z[ye] = Q);
|
|
1725
1725
|
return Z;
|
|
1726
|
-
}, e[19] = s, e[20] =
|
|
1727
|
-
let
|
|
1728
|
-
e[30] !== s || e[31] !== v || e[32] !== T || e[33] !== r || e[34] !== n ? (
|
|
1726
|
+
}, e[19] = s, e[20] = m, e[21] = g, e[22] = r, e[23] = n, e[24] = u, e[25] = S, e[26] = C, e[27] = d?.end, e[28] = d?.start, e[29] = x) : x = e[29];
|
|
1727
|
+
let A;
|
|
1728
|
+
e[30] !== s || e[31] !== v || e[32] !== T || e[33] !== r || e[34] !== n ? (A = v && !!s && !!n && (n.startsWith("cluster::") || !!r) && T.length > 0, e[30] = s, e[31] = v, e[32] = T, e[33] = r, e[34] = n, e[35] = A) : A = e[35];
|
|
1729
1729
|
const L = y > 0 ? y : void 0;
|
|
1730
1730
|
let j;
|
|
1731
|
-
e[36] !== R || e[37] !==
|
|
1731
|
+
e[36] !== R || e[37] !== x || e[38] !== A || e[39] !== L ? (j = {
|
|
1732
1732
|
queryKey: R,
|
|
1733
|
-
queryFn:
|
|
1734
|
-
enabled:
|
|
1733
|
+
queryFn: x,
|
|
1734
|
+
enabled: A,
|
|
1735
1735
|
refetchInterval: L,
|
|
1736
1736
|
staleTime: 5e3,
|
|
1737
1737
|
placeholderData: ut
|
|
1738
|
-
}, e[36] = R, e[37] =
|
|
1739
|
-
const U = re(j), W = U.data ?? void 0, K =
|
|
1738
|
+
}, e[36] = R, e[37] = x, e[38] = A, e[39] = L, e[40] = j) : j = e[40];
|
|
1739
|
+
const U = re(j), W = U.data ?? void 0, K = w || U.isLoading, z = U.error;
|
|
1740
1740
|
let k;
|
|
1741
1741
|
return e[41] !== U.refetch || e[42] !== T || e[43] !== W || e[44] !== K || e[45] !== z ? (k = {
|
|
1742
1742
|
data: W,
|
|
@@ -1752,23 +1752,23 @@ const Ts = () => {
|
|
|
1752
1752
|
resourceKey: n,
|
|
1753
1753
|
resourceID: r,
|
|
1754
1754
|
resourceNamespace: o = "",
|
|
1755
|
-
resourceData:
|
|
1756
|
-
metricIDs:
|
|
1757
|
-
interval:
|
|
1755
|
+
resourceData: i = Pr,
|
|
1756
|
+
metricIDs: c = [],
|
|
1757
|
+
interval: l = 1e4,
|
|
1758
1758
|
enabled: d = !0
|
|
1759
|
-
} = t,
|
|
1760
|
-
if (!(!d || !
|
|
1759
|
+
} = t, a = ee(e), [f, u] = pe(null), [p, g] = pe(null), [E, m] = pe(!1), [S, y] = pe(null), v = ae(null), h = Ge(async () => {
|
|
1760
|
+
if (!(!d || !a || !s || !n || !r))
|
|
1761
1761
|
try {
|
|
1762
|
-
const I = await
|
|
1762
|
+
const I = await bn(a, s, {
|
|
1763
1763
|
resource_key: n,
|
|
1764
1764
|
resource_id: r,
|
|
1765
1765
|
resource_namespace: o,
|
|
1766
|
-
resource_data:
|
|
1767
|
-
metric_ids:
|
|
1768
|
-
interval:
|
|
1766
|
+
resource_data: i,
|
|
1767
|
+
metric_ids: c,
|
|
1768
|
+
interval: l * 1e6
|
|
1769
1769
|
// ms to nanoseconds for Go time.Duration
|
|
1770
1770
|
});
|
|
1771
|
-
|
|
1771
|
+
g(I), m(!0), y(null);
|
|
1772
1772
|
const T = ne(`core/metrics/data/${I}`, (D) => {
|
|
1773
1773
|
const P = D.data;
|
|
1774
1774
|
try {
|
|
@@ -1792,14 +1792,14 @@ const Ts = () => {
|
|
|
1792
1792
|
} catch (I) {
|
|
1793
1793
|
y(I instanceof Error ? I.message : String(I));
|
|
1794
1794
|
}
|
|
1795
|
-
}, [
|
|
1795
|
+
}, [a, s, n, r, o, i, c, l, d]), w = Ge(async () => {
|
|
1796
1796
|
if (p)
|
|
1797
1797
|
try {
|
|
1798
1798
|
await nt(p);
|
|
1799
1799
|
} catch (I) {
|
|
1800
1800
|
console.error("Failed to unsubscribe:", I);
|
|
1801
1801
|
}
|
|
1802
|
-
v.current && (v.current(), v.current = null),
|
|
1802
|
+
v.current && (v.current(), v.current = null), g(null), m(!1);
|
|
1803
1803
|
}, [p]);
|
|
1804
1804
|
return ue(() => () => {
|
|
1805
1805
|
p && nt(p).catch(console.error), v.current && v.current();
|
|
@@ -1809,13 +1809,13 @@ const Ts = () => {
|
|
|
1809
1809
|
isStreaming: E,
|
|
1810
1810
|
error: S,
|
|
1811
1811
|
start: h,
|
|
1812
|
-
stop:
|
|
1812
|
+
stop: w
|
|
1813
1813
|
};
|
|
1814
1814
|
}, Se = ["networker", "portforward", "all-sessions"];
|
|
1815
1815
|
function Fs() {
|
|
1816
1816
|
const t = $(17), {
|
|
1817
1817
|
showSnackbar: e
|
|
1818
|
-
} = de(), s =
|
|
1818
|
+
} = de(), s = ge();
|
|
1819
1819
|
let n;
|
|
1820
1820
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
1821
1821
|
queryKey: [...Se],
|
|
@@ -1823,9 +1823,9 @@ function Fs() {
|
|
|
1823
1823
|
retry: !1
|
|
1824
1824
|
}, t[0] = n) : n = t[0];
|
|
1825
1825
|
const r = re(n);
|
|
1826
|
-
let o,
|
|
1826
|
+
let o, i;
|
|
1827
1827
|
t[1] !== s ? (o = () => {
|
|
1828
|
-
const
|
|
1828
|
+
const g = ne("core/networker/portforward/created", () => {
|
|
1829
1829
|
s.invalidateQueries({
|
|
1830
1830
|
queryKey: [...Se]
|
|
1831
1831
|
});
|
|
@@ -1835,34 +1835,34 @@ function Fs() {
|
|
|
1835
1835
|
});
|
|
1836
1836
|
});
|
|
1837
1837
|
return () => {
|
|
1838
|
-
|
|
1838
|
+
g(), E();
|
|
1839
1839
|
};
|
|
1840
|
-
},
|
|
1841
|
-
let
|
|
1842
|
-
t[4] !== r.data ? (
|
|
1843
|
-
const
|
|
1840
|
+
}, i = [s], t[1] = s, t[2] = o, t[3] = i) : (o = t[2], i = t[3]), ue(o, i);
|
|
1841
|
+
let c;
|
|
1842
|
+
t[4] !== r.data ? (c = r.data ?? [], t[4] = r.data, t[5] = c) : c = t[5];
|
|
1843
|
+
const l = c;
|
|
1844
1844
|
let d;
|
|
1845
1845
|
t[6] !== e ? (d = oe(e, "Failed to close port forwarding session"), t[6] = e, t[7] = d) : d = t[7];
|
|
1846
|
-
let
|
|
1847
|
-
t[8] !== s ? (
|
|
1846
|
+
let a;
|
|
1847
|
+
t[8] !== s ? (a = async () => {
|
|
1848
1848
|
await s.invalidateQueries({
|
|
1849
1849
|
queryKey: [...Se]
|
|
1850
1850
|
});
|
|
1851
|
-
}, t[8] = s, t[9] =
|
|
1851
|
+
}, t[8] = s, t[9] = a) : a = t[9];
|
|
1852
1852
|
let f;
|
|
1853
|
-
t[10] !== d || t[11] !==
|
|
1853
|
+
t[10] !== d || t[11] !== a ? (f = {
|
|
1854
1854
|
mutationFn: Fr,
|
|
1855
1855
|
onError: d,
|
|
1856
|
-
onSuccess:
|
|
1857
|
-
}, t[10] = d, t[11] =
|
|
1856
|
+
onSuccess: a
|
|
1857
|
+
}, t[10] = d, t[11] = a, t[12] = f) : f = t[12];
|
|
1858
1858
|
const u = se(f);
|
|
1859
1859
|
let p;
|
|
1860
|
-
return t[13] !==
|
|
1860
|
+
return t[13] !== l || t[14] !== u.mutateAsync || t[15] !== r ? (p = {
|
|
1861
1861
|
sessions: r,
|
|
1862
|
-
activeSessions:
|
|
1862
|
+
activeSessions: l,
|
|
1863
1863
|
closeSession: u.mutateAsync,
|
|
1864
1864
|
openInBrowser: Or
|
|
1865
|
-
}, t[13] =
|
|
1865
|
+
}, t[13] = l, t[14] = u.mutateAsync, t[15] = r, t[16] = p) : p = t[16], p;
|
|
1866
1866
|
}
|
|
1867
1867
|
function Or(t) {
|
|
1868
1868
|
return _t(`http://localhost:${t}`);
|
|
@@ -1884,29 +1884,29 @@ function Ns(t) {
|
|
|
1884
1884
|
connectionID: n,
|
|
1885
1885
|
resourceID: r
|
|
1886
1886
|
} = t, o = ee(s);
|
|
1887
|
-
let
|
|
1888
|
-
e[0] !== n || e[1] !== o || e[2] !== r ? (
|
|
1889
|
-
const
|
|
1890
|
-
showSnackbar:
|
|
1891
|
-
} = de(), d =
|
|
1892
|
-
let
|
|
1893
|
-
e[4] !== n || e[5] !== o || e[6] !== r || e[7] !==
|
|
1887
|
+
let i;
|
|
1888
|
+
e[0] !== n || e[1] !== o || e[2] !== r ? (i = ["networker", "portforward", "sessions", o, n, r], e[0] = n, e[1] = o, e[2] = r, e[3] = i) : i = e[3];
|
|
1889
|
+
const c = i, {
|
|
1890
|
+
showSnackbar: l
|
|
1891
|
+
} = de(), d = ge();
|
|
1892
|
+
let a;
|
|
1893
|
+
e[4] !== n || e[5] !== o || e[6] !== r || e[7] !== l ? (a = async () => Dn(o, n, Zn.createFrom({
|
|
1894
1894
|
resource_id: r,
|
|
1895
1895
|
connection_id: n
|
|
1896
1896
|
})).catch((T) => {
|
|
1897
1897
|
const C = he(T);
|
|
1898
|
-
return C.detail.includes("not found") ? [] : (
|
|
1898
|
+
return C.detail.includes("not found") ? [] : (l({
|
|
1899
1899
|
message: "Failed to fetch port forward sessions",
|
|
1900
1900
|
status: "error",
|
|
1901
1901
|
details: C.detail
|
|
1902
1902
|
}), []);
|
|
1903
|
-
}), e[4] = n, e[5] = o, e[6] = r, e[7] =
|
|
1903
|
+
}), e[4] = n, e[5] = o, e[6] = r, e[7] = l, e[8] = a) : a = e[8];
|
|
1904
1904
|
let f;
|
|
1905
|
-
e[9] !==
|
|
1906
|
-
queryKey:
|
|
1907
|
-
queryFn:
|
|
1905
|
+
e[9] !== c || e[10] !== a ? (f = {
|
|
1906
|
+
queryKey: c,
|
|
1907
|
+
queryFn: a,
|
|
1908
1908
|
retry: !1
|
|
1909
|
-
}, e[9] =
|
|
1909
|
+
}, e[9] = c, e[10] = a, e[11] = f) : f = e[11];
|
|
1910
1910
|
const u = re(f);
|
|
1911
1911
|
let p;
|
|
1912
1912
|
e[12] !== n || e[13] !== o ? (p = async (T) => {
|
|
@@ -1931,46 +1931,46 @@ function Ns(t) {
|
|
|
1931
1931
|
throw new Error("Failed to start port forwarding: null response");
|
|
1932
1932
|
return C.openInBrowser && _t(`http://localhost:${P.local_port}`), P;
|
|
1933
1933
|
}, e[12] = n, e[13] = o, e[14] = p) : p = e[14];
|
|
1934
|
-
let
|
|
1935
|
-
e[15] !==
|
|
1934
|
+
let g;
|
|
1935
|
+
e[15] !== l ? (g = oe(l, "Failed to start port forwarding session"), e[15] = l, e[16] = g) : g = e[16];
|
|
1936
1936
|
let E;
|
|
1937
|
-
e[17] !== d || e[18] !==
|
|
1937
|
+
e[17] !== d || e[18] !== c ? (E = async () => {
|
|
1938
1938
|
await Promise.all([d.invalidateQueries({
|
|
1939
|
-
queryKey:
|
|
1939
|
+
queryKey: c
|
|
1940
1940
|
}), d.invalidateQueries({
|
|
1941
1941
|
queryKey: [...Se]
|
|
1942
1942
|
})]);
|
|
1943
|
-
}, e[17] = d, e[18] =
|
|
1944
|
-
let
|
|
1945
|
-
e[20] !== p || e[21] !==
|
|
1943
|
+
}, e[17] = d, e[18] = c, e[19] = E) : E = e[19];
|
|
1944
|
+
let m;
|
|
1945
|
+
e[20] !== p || e[21] !== g || e[22] !== E ? (m = {
|
|
1946
1946
|
mutationFn: p,
|
|
1947
|
-
onError:
|
|
1947
|
+
onError: g,
|
|
1948
1948
|
onSuccess: E
|
|
1949
|
-
}, e[20] = p, e[21] =
|
|
1950
|
-
const S = se(
|
|
1949
|
+
}, e[20] = p, e[21] = g, e[22] = E, e[23] = m) : m = e[23];
|
|
1950
|
+
const S = se(m);
|
|
1951
1951
|
let y;
|
|
1952
|
-
e[24] !==
|
|
1952
|
+
e[24] !== l ? (y = oe(l, "Failed to close port forwarding session"), e[24] = l, e[25] = y) : y = e[25];
|
|
1953
1953
|
let v;
|
|
1954
|
-
e[26] !== d || e[27] !==
|
|
1954
|
+
e[26] !== d || e[27] !== c ? (v = async () => {
|
|
1955
1955
|
await Promise.all([d.invalidateQueries({
|
|
1956
|
-
queryKey:
|
|
1956
|
+
queryKey: c
|
|
1957
1957
|
}), d.invalidateQueries({
|
|
1958
1958
|
queryKey: [...Se]
|
|
1959
1959
|
})]);
|
|
1960
|
-
}, e[26] = d, e[27] =
|
|
1960
|
+
}, e[26] = d, e[27] = c, e[28] = v) : v = e[28];
|
|
1961
1961
|
let h;
|
|
1962
1962
|
e[29] !== y || e[30] !== v ? (h = {
|
|
1963
1963
|
mutationFn: $r,
|
|
1964
1964
|
onError: y,
|
|
1965
1965
|
onSuccess: v
|
|
1966
1966
|
}, e[29] = y, e[30] = v, e[31] = h) : h = e[31];
|
|
1967
|
-
const
|
|
1967
|
+
const w = se(h);
|
|
1968
1968
|
let I;
|
|
1969
|
-
return e[32] !==
|
|
1969
|
+
return e[32] !== w.mutateAsync || e[33] !== S.mutateAsync || e[34] !== u ? (I = {
|
|
1970
1970
|
sessions: u,
|
|
1971
1971
|
forward: S.mutateAsync,
|
|
1972
|
-
close:
|
|
1973
|
-
}, e[32] =
|
|
1972
|
+
close: w.mutateAsync
|
|
1973
|
+
}, e[32] = w.mutateAsync, e[33] = S.mutateAsync, e[34] = u, e[35] = I) : I = e[35], I;
|
|
1974
1974
|
}
|
|
1975
1975
|
async function $r(t) {
|
|
1976
1976
|
const {
|
|
@@ -1993,55 +1993,55 @@ const Ls = () => {
|
|
|
1993
1993
|
connectionID: n,
|
|
1994
1994
|
resourceKey: r,
|
|
1995
1995
|
resourceID: o,
|
|
1996
|
-
namespace:
|
|
1997
|
-
} = t,
|
|
1998
|
-
showSnackbar:
|
|
1996
|
+
namespace: i
|
|
1997
|
+
} = t, c = i === void 0 ? "" : i, l = ee(s), d = ge(), {
|
|
1998
|
+
showSnackbar: a
|
|
1999
1999
|
} = de();
|
|
2000
2000
|
let f;
|
|
2001
|
-
e[0] !== n || e[1] !==
|
|
2001
|
+
e[0] !== n || e[1] !== c || e[2] !== l || e[3] !== o || e[4] !== r ? (f = He.resource(l, n, r, o, c), e[0] = n, e[1] = c, e[2] = l, e[3] = o, e[4] = r, e[5] = f) : f = e[5];
|
|
2002
2002
|
const u = f;
|
|
2003
2003
|
let p;
|
|
2004
|
-
e[6] !== n || e[7] !==
|
|
2005
|
-
input:
|
|
2004
|
+
e[6] !== n || e[7] !== c || e[8] !== l || e[9] !== o || e[10] !== r ? (p = async (A) => ht(l, n, r, vt.createFrom({
|
|
2005
|
+
input: A.input,
|
|
2006
2006
|
id: o,
|
|
2007
|
-
namespace:
|
|
2008
|
-
})), e[6] = n, e[7] =
|
|
2009
|
-
let
|
|
2010
|
-
e[12] !== d || e[13] !== u || e[14] !== o || e[15] !==
|
|
2011
|
-
|
|
2007
|
+
namespace: c
|
|
2008
|
+
})), e[6] = n, e[7] = c, e[8] = l, e[9] = o, e[10] = r, e[11] = p) : p = e[11];
|
|
2009
|
+
let g;
|
|
2010
|
+
e[12] !== d || e[13] !== u || e[14] !== o || e[15] !== a ? (g = async () => {
|
|
2011
|
+
a(`Resource ${o} updated`, "success"), await d.invalidateQueries({
|
|
2012
2012
|
queryKey: u
|
|
2013
2013
|
});
|
|
2014
|
-
}, e[12] = d, e[13] = u, e[14] = o, e[15] =
|
|
2014
|
+
}, e[12] = d, e[13] = u, e[14] = o, e[15] = a, e[16] = g) : g = e[16];
|
|
2015
2015
|
const E = `Failed to update resource ${o}`;
|
|
2016
|
-
let
|
|
2017
|
-
e[17] !==
|
|
2016
|
+
let m;
|
|
2017
|
+
e[17] !== a || e[18] !== E ? (m = oe(a, E), e[17] = a, e[18] = E, e[19] = m) : m = e[19];
|
|
2018
2018
|
let S;
|
|
2019
|
-
e[20] !== p || e[21] !==
|
|
2019
|
+
e[20] !== p || e[21] !== g || e[22] !== m ? (S = {
|
|
2020
2020
|
mutationFn: p,
|
|
2021
|
-
onSuccess:
|
|
2022
|
-
onError:
|
|
2023
|
-
}, e[20] = p, e[21] =
|
|
2021
|
+
onSuccess: g,
|
|
2022
|
+
onError: m
|
|
2023
|
+
}, e[20] = p, e[21] = g, e[22] = m, e[23] = S) : S = e[23];
|
|
2024
2024
|
const {
|
|
2025
2025
|
mutateAsync: y
|
|
2026
2026
|
} = se(S);
|
|
2027
2027
|
let v;
|
|
2028
|
-
e[24] !== n || e[25] !==
|
|
2029
|
-
const L =
|
|
2030
|
-
return
|
|
2028
|
+
e[24] !== n || e[25] !== c || e[26] !== l || e[27] !== o || e[28] !== r ? (v = async (A) => {
|
|
2029
|
+
const L = A === void 0 ? {} : A;
|
|
2030
|
+
return gt(l, n, r, St.createFrom({
|
|
2031
2031
|
id: o,
|
|
2032
|
-
namespace:
|
|
2032
|
+
namespace: c,
|
|
2033
2033
|
gracePeriodSeconds: L.gracePeriodSeconds
|
|
2034
2034
|
}));
|
|
2035
|
-
}, e[24] = n, e[25] =
|
|
2035
|
+
}, e[24] = n, e[25] = c, e[26] = l, e[27] = o, e[28] = r, e[29] = v) : v = e[29];
|
|
2036
2036
|
let h;
|
|
2037
|
-
e[30] !== d || e[31] !== u || e[32] !== o || e[33] !==
|
|
2038
|
-
|
|
2037
|
+
e[30] !== d || e[31] !== u || e[32] !== o || e[33] !== a ? (h = async () => {
|
|
2038
|
+
a(`Resource ${o} deleted`, "success"), await d.invalidateQueries({
|
|
2039
2039
|
queryKey: u
|
|
2040
2040
|
});
|
|
2041
|
-
}, e[30] = d, e[31] = u, e[32] = o, e[33] =
|
|
2042
|
-
const
|
|
2041
|
+
}, e[30] = d, e[31] = u, e[32] = o, e[33] = a, e[34] = h) : h = e[34];
|
|
2042
|
+
const w = `Failed to delete resource ${o}`;
|
|
2043
2043
|
let I;
|
|
2044
|
-
e[35] !==
|
|
2044
|
+
e[35] !== a || e[36] !== w ? (I = oe(a, w), e[35] = a, e[36] = w, e[37] = I) : I = e[37];
|
|
2045
2045
|
let T;
|
|
2046
2046
|
e[38] !== I || e[39] !== v || e[40] !== h ? (T = {
|
|
2047
2047
|
mutationFn: v,
|
|
@@ -2052,10 +2052,10 @@ const Ls = () => {
|
|
|
2052
2052
|
mutateAsync: C
|
|
2053
2053
|
} = se(T);
|
|
2054
2054
|
let D;
|
|
2055
|
-
e[42] !== n || e[43] !==
|
|
2055
|
+
e[42] !== n || e[43] !== c || e[44] !== l || e[45] !== o || e[46] !== r ? (D = async () => An(l, n, r, tr.createFrom({
|
|
2056
2056
|
id: o,
|
|
2057
|
-
namespace:
|
|
2058
|
-
})), e[42] = n, e[43] =
|
|
2057
|
+
namespace: c
|
|
2058
|
+
})), e[42] = n, e[43] = c, e[44] = l, e[45] = o, e[46] = r, e[47] = D) : D = e[47];
|
|
2059
2059
|
let P;
|
|
2060
2060
|
e[48] !== u || e[49] !== D ? (P = {
|
|
2061
2061
|
queryKey: u,
|
|
@@ -2063,29 +2063,29 @@ const Ls = () => {
|
|
|
2063
2063
|
retry: !1
|
|
2064
2064
|
}, e[48] = u, e[49] = D, e[50] = P) : P = e[50];
|
|
2065
2065
|
const R = re(P);
|
|
2066
|
-
let
|
|
2067
|
-
return e[51] !== C || e[52] !== R || e[53] !== y ? (
|
|
2066
|
+
let x;
|
|
2067
|
+
return e[51] !== C || e[52] !== R || e[53] !== y ? (x = {
|
|
2068
2068
|
resource: R,
|
|
2069
2069
|
update: y,
|
|
2070
2070
|
remove: C
|
|
2071
|
-
}, e[51] = C, e[52] = R, e[53] = y, e[54] =
|
|
2071
|
+
}, e[51] = C, e[52] = R, e[53] = y, e[54] = x) : x = e[54], x;
|
|
2072
2072
|
}, ks = (t) => {
|
|
2073
2073
|
const e = $(11);
|
|
2074
2074
|
let s;
|
|
2075
2075
|
e[0] !== t.area || e[1] !== t.plugin || e[2] !== t.resource ? (s = ["component", t.plugin, t.resource, t.area], e[0] = t.area, e[1] = t.plugin, e[2] = t.resource, e[3] = s) : s = e[3];
|
|
2076
2076
|
const n = s;
|
|
2077
2077
|
let r;
|
|
2078
|
-
e[4] !== t ? (r = async () =>
|
|
2078
|
+
e[4] !== t ? (r = async () => xn(t), e[4] = t, e[5] = r) : r = e[5];
|
|
2079
2079
|
let o;
|
|
2080
2080
|
e[6] !== n || e[7] !== r ? (o = {
|
|
2081
2081
|
queryKey: n,
|
|
2082
2082
|
queryFn: r
|
|
2083
2083
|
}, e[6] = n, e[7] = r, e[8] = o) : o = e[8];
|
|
2084
|
-
const
|
|
2085
|
-
let
|
|
2086
|
-
return e[9] !==
|
|
2087
|
-
component:
|
|
2088
|
-
}, e[9] =
|
|
2084
|
+
const i = re(o);
|
|
2085
|
+
let c;
|
|
2086
|
+
return e[9] !== i ? (c = {
|
|
2087
|
+
component: i
|
|
2088
|
+
}, e[9] = i, e[10] = c) : c = e[10], c;
|
|
2089
2089
|
}, Ms = (t) => {
|
|
2090
2090
|
const e = $(10), {
|
|
2091
2091
|
pluginID: s,
|
|
@@ -2093,35 +2093,35 @@ const Ls = () => {
|
|
|
2093
2093
|
} = t, r = ee(s);
|
|
2094
2094
|
let o;
|
|
2095
2095
|
e[0] !== r ? (o = [r, "resource_groups", "list"], e[0] = r, e[1] = o) : o = e[1];
|
|
2096
|
-
const
|
|
2097
|
-
let
|
|
2098
|
-
e[2] !== n || e[3] !== r ? (
|
|
2099
|
-
let a;
|
|
2100
|
-
e[5] !== c || e[6] !== i ? (a = {
|
|
2101
|
-
queryKey: c,
|
|
2102
|
-
queryFn: i,
|
|
2103
|
-
retry: !1
|
|
2104
|
-
}, e[5] = c, e[6] = i, e[7] = a) : a = e[7];
|
|
2105
|
-
const d = re(a);
|
|
2096
|
+
const i = o;
|
|
2097
|
+
let c;
|
|
2098
|
+
e[2] !== n || e[3] !== r ? (c = async () => Tn(r, n), e[2] = n, e[3] = r, e[4] = c) : c = e[4];
|
|
2106
2099
|
let l;
|
|
2107
|
-
|
|
2100
|
+
e[5] !== i || e[6] !== c ? (l = {
|
|
2101
|
+
queryKey: i,
|
|
2102
|
+
queryFn: c,
|
|
2103
|
+
retry: !1
|
|
2104
|
+
}, e[5] = i, e[6] = c, e[7] = l) : l = e[7];
|
|
2105
|
+
const d = re(l);
|
|
2106
|
+
let a;
|
|
2107
|
+
return e[8] !== d ? (a = {
|
|
2108
2108
|
groups: d
|
|
2109
|
-
}, e[8] = d, e[9] =
|
|
2109
|
+
}, e[8] = d, e[9] = a) : a = e[9], a;
|
|
2110
2110
|
}, Us = (t) => {
|
|
2111
2111
|
const e = $(14), {
|
|
2112
2112
|
pluginID: s,
|
|
2113
2113
|
connectionID: n,
|
|
2114
2114
|
searches: r
|
|
2115
2115
|
} = t, o = ee(s);
|
|
2116
|
-
let
|
|
2117
|
-
e[0] !== n || e[1] !== o ? (
|
|
2118
|
-
const
|
|
2119
|
-
let
|
|
2120
|
-
if (e[3] !== n || e[4] !==
|
|
2116
|
+
let i;
|
|
2117
|
+
e[0] !== n || e[1] !== o ? (i = (f) => [o, n, f.key, f.namespaces, "list"], e[0] = n, e[1] = o, e[2] = i) : i = e[2];
|
|
2118
|
+
const c = i;
|
|
2119
|
+
let l;
|
|
2120
|
+
if (e[3] !== n || e[4] !== c || e[5] !== o || e[6] !== r) {
|
|
2121
2121
|
let f;
|
|
2122
|
-
e[8] !== n || e[9] !==
|
|
2123
|
-
queryKey:
|
|
2124
|
-
queryFn: async () =>
|
|
2122
|
+
e[8] !== n || e[9] !== c || e[10] !== o ? (f = (u) => ({
|
|
2123
|
+
queryKey: c(u),
|
|
2124
|
+
queryFn: async () => mt(o, n, u.key, Et.createFrom({
|
|
2125
2125
|
order: [{
|
|
2126
2126
|
field: "name",
|
|
2127
2127
|
descending: !1
|
|
@@ -2133,13 +2133,13 @@ const Ls = () => {
|
|
|
2133
2133
|
namespaces: u.namespaces
|
|
2134
2134
|
})).then((p) => p ? (console.log(p.result), p.result && u.postFilter ? Object.values(p.result).filter(u.postFilter) : Object.values(p.result || {})) : []),
|
|
2135
2135
|
retry: !1
|
|
2136
|
-
}), e[8] = n, e[9] =
|
|
2136
|
+
}), e[8] = n, e[9] = c, e[10] = o, e[11] = f) : f = e[11], l = r.map(f), e[3] = n, e[4] = c, e[5] = o, e[6] = r, e[7] = l;
|
|
2137
2137
|
} else
|
|
2138
|
-
|
|
2138
|
+
l = e[7];
|
|
2139
2139
|
let d;
|
|
2140
|
-
return e[12] !==
|
|
2141
|
-
queries:
|
|
2142
|
-
}, e[12] =
|
|
2140
|
+
return e[12] !== l ? (d = {
|
|
2141
|
+
queries: l
|
|
2142
|
+
}, e[12] = l, e[13] = d) : d = e[13], tn(d);
|
|
2143
2143
|
}, qs = (t) => {
|
|
2144
2144
|
const e = $(11), {
|
|
2145
2145
|
pluginID: s,
|
|
@@ -2147,20 +2147,20 @@ const Ls = () => {
|
|
|
2147
2147
|
} = t, r = ee(s);
|
|
2148
2148
|
let o;
|
|
2149
2149
|
e[0] !== r || e[1] !== n ? (o = [r, "resources", n], e[0] = r, e[1] = n, e[2] = o) : o = e[2];
|
|
2150
|
-
const
|
|
2151
|
-
let
|
|
2152
|
-
e[3] !== r || e[4] !== n ? (
|
|
2153
|
-
let a;
|
|
2154
|
-
e[6] !== c || e[7] !== i ? (a = {
|
|
2155
|
-
queryKey: c,
|
|
2156
|
-
queryFn: i,
|
|
2157
|
-
retry: !1
|
|
2158
|
-
}, e[6] = c, e[7] = i, e[8] = a) : a = e[8];
|
|
2159
|
-
const d = re(a);
|
|
2150
|
+
const i = o;
|
|
2151
|
+
let c;
|
|
2152
|
+
e[3] !== r || e[4] !== n ? (c = async () => Pn(r, n), e[3] = r, e[4] = n, e[5] = c) : c = e[5];
|
|
2160
2153
|
let l;
|
|
2161
|
-
|
|
2154
|
+
e[6] !== i || e[7] !== c ? (l = {
|
|
2155
|
+
queryKey: i,
|
|
2156
|
+
queryFn: c,
|
|
2157
|
+
retry: !1
|
|
2158
|
+
}, e[6] = i, e[7] = c, e[8] = l) : l = e[8];
|
|
2159
|
+
const d = re(l);
|
|
2160
|
+
let a;
|
|
2161
|
+
return e[9] !== d ? (a = {
|
|
2162
2162
|
resourceType: d
|
|
2163
|
-
}, e[9] = d, e[10] =
|
|
2163
|
+
}, e[9] = d, e[10] = a) : a = e[10], a;
|
|
2164
2164
|
}, Ws = (t) => {
|
|
2165
2165
|
const e = $(11), {
|
|
2166
2166
|
pluginID: s,
|
|
@@ -2168,82 +2168,82 @@ const Ls = () => {
|
|
|
2168
2168
|
} = t, r = ee(s);
|
|
2169
2169
|
let o;
|
|
2170
2170
|
e[0] !== n || e[1] !== r ? (o = [r, "resources", "list", n], e[0] = n, e[1] = r, e[2] = o) : o = e[2];
|
|
2171
|
-
const
|
|
2172
|
-
let
|
|
2173
|
-
e[3] !== n || e[4] !== r ? (
|
|
2174
|
-
let a;
|
|
2175
|
-
e[6] !== c || e[7] !== i ? (a = {
|
|
2176
|
-
queryKey: c,
|
|
2177
|
-
queryFn: i,
|
|
2178
|
-
retry: !1
|
|
2179
|
-
}, e[6] = c, e[7] = i, e[8] = a) : a = e[8];
|
|
2180
|
-
const d = re(a);
|
|
2171
|
+
const i = o;
|
|
2172
|
+
let c;
|
|
2173
|
+
e[3] !== n || e[4] !== r ? (c = async () => On(r, n), e[3] = n, e[4] = r, e[5] = c) : c = e[5];
|
|
2181
2174
|
let l;
|
|
2182
|
-
|
|
2175
|
+
e[6] !== i || e[7] !== c ? (l = {
|
|
2176
|
+
queryKey: i,
|
|
2177
|
+
queryFn: c,
|
|
2178
|
+
retry: !1
|
|
2179
|
+
}, e[6] = i, e[7] = c, e[8] = l) : l = e[8];
|
|
2180
|
+
const d = re(l);
|
|
2181
|
+
let a;
|
|
2182
|
+
return e[9] !== d ? (a = {
|
|
2183
2183
|
types: d
|
|
2184
|
-
}, e[9] = d, e[10] =
|
|
2184
|
+
}, e[9] = d, e[10] = a) : a = e[10], a;
|
|
2185
2185
|
};
|
|
2186
|
-
var
|
|
2186
|
+
var xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2187
2187
|
function kr(t) {
|
|
2188
2188
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
2189
2189
|
}
|
|
2190
|
-
var
|
|
2190
|
+
var We, ct;
|
|
2191
2191
|
function Mr() {
|
|
2192
|
-
if (ct) return
|
|
2192
|
+
if (ct) return We;
|
|
2193
2193
|
ct = 1;
|
|
2194
|
-
var t = "Expected a function", e = "__lodash_hash_undefined__", s = "[object Function]", n = "[object GeneratorFunction]", r = "[object Symbol]", o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
2195
|
-
function E(_,
|
|
2196
|
-
return _?.[
|
|
2194
|
+
var t = "Expected a function", e = "__lodash_hash_undefined__", s = "[object Function]", n = "[object GeneratorFunction]", r = "[object Symbol]", o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, i = /^\w*$/, c = /^\./, l = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, d = /[\\^$.*+?()[\]{}|]/g, a = /\\(\\)?/g, f = /^\[object .+?Constructor\]$/, u = typeof xe == "object" && xe && xe.Object === Object && xe, p = typeof self == "object" && self && self.Object === Object && self, g = u || p || Function("return this")();
|
|
2195
|
+
function E(_, b) {
|
|
2196
|
+
return _?.[b];
|
|
2197
2197
|
}
|
|
2198
|
-
function
|
|
2199
|
-
var
|
|
2198
|
+
function m(_) {
|
|
2199
|
+
var b = !1;
|
|
2200
2200
|
if (_ != null && typeof _.toString != "function")
|
|
2201
2201
|
try {
|
|
2202
|
-
|
|
2202
|
+
b = !!(_ + "");
|
|
2203
2203
|
} catch {
|
|
2204
2204
|
}
|
|
2205
|
-
return
|
|
2205
|
+
return b;
|
|
2206
2206
|
}
|
|
2207
|
-
var S = Array.prototype, y = Function.prototype, v = Object.prototype, h =
|
|
2207
|
+
var S = Array.prototype, y = Function.prototype, v = Object.prototype, h = g["__core-js_shared__"], w = (function() {
|
|
2208
2208
|
var _ = /[^.]+$/.exec(h && h.keys && h.keys.IE_PROTO || "");
|
|
2209
2209
|
return _ ? "Symbol(src)_1." + _ : "";
|
|
2210
2210
|
})(), I = y.toString, T = v.hasOwnProperty, C = v.toString, D = RegExp(
|
|
2211
2211
|
"^" + I.call(T).replace(d, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2212
|
-
), P =
|
|
2212
|
+
), P = g.Symbol, R = S.splice, x = Xe(g, "Map"), A = Xe(Object, "create"), L = P ? P.prototype : void 0, j = L ? L.toString : void 0;
|
|
2213
2213
|
function U(_) {
|
|
2214
|
-
var
|
|
2215
|
-
for (this.clear(); ++
|
|
2216
|
-
var X = _[
|
|
2214
|
+
var b = -1, O = _ ? _.length : 0;
|
|
2215
|
+
for (this.clear(); ++b < O; ) {
|
|
2216
|
+
var X = _[b];
|
|
2217
2217
|
this.set(X[0], X[1]);
|
|
2218
2218
|
}
|
|
2219
2219
|
}
|
|
2220
2220
|
function W() {
|
|
2221
|
-
this.__data__ =
|
|
2221
|
+
this.__data__ = A ? A(null) : {};
|
|
2222
2222
|
}
|
|
2223
2223
|
function K(_) {
|
|
2224
2224
|
return this.has(_) && delete this.__data__[_];
|
|
2225
2225
|
}
|
|
2226
2226
|
function z(_) {
|
|
2227
|
-
var
|
|
2228
|
-
if (
|
|
2229
|
-
var O =
|
|
2227
|
+
var b = this.__data__;
|
|
2228
|
+
if (A) {
|
|
2229
|
+
var O = b[_];
|
|
2230
2230
|
return O === e ? void 0 : O;
|
|
2231
2231
|
}
|
|
2232
|
-
return T.call(
|
|
2232
|
+
return T.call(b, _) ? b[_] : void 0;
|
|
2233
2233
|
}
|
|
2234
2234
|
function k(_) {
|
|
2235
|
-
var
|
|
2236
|
-
return
|
|
2235
|
+
var b = this.__data__;
|
|
2236
|
+
return A ? b[_] !== void 0 : T.call(b, _);
|
|
2237
2237
|
}
|
|
2238
|
-
function B(_,
|
|
2238
|
+
function B(_, b) {
|
|
2239
2239
|
var O = this.__data__;
|
|
2240
|
-
return O[_] =
|
|
2240
|
+
return O[_] = A && b === void 0 ? e : b, this;
|
|
2241
2241
|
}
|
|
2242
2242
|
U.prototype.clear = W, U.prototype.delete = K, U.prototype.get = z, U.prototype.has = k, U.prototype.set = B;
|
|
2243
2243
|
function Z(_) {
|
|
2244
|
-
var
|
|
2245
|
-
for (this.clear(); ++
|
|
2246
|
-
var X = _[
|
|
2244
|
+
var b = -1, O = _ ? _.length : 0;
|
|
2245
|
+
for (this.clear(); ++b < O; ) {
|
|
2246
|
+
var X = _[b];
|
|
2247
2247
|
this.set(X[0], X[1]);
|
|
2248
2248
|
}
|
|
2249
2249
|
}
|
|
@@ -2251,35 +2251,35 @@ function Mr() {
|
|
|
2251
2251
|
this.__data__ = [];
|
|
2252
2252
|
}
|
|
2253
2253
|
function Q(_) {
|
|
2254
|
-
var
|
|
2254
|
+
var b = this.__data__, O = ve(b, _);
|
|
2255
2255
|
if (O < 0)
|
|
2256
2256
|
return !1;
|
|
2257
|
-
var X =
|
|
2258
|
-
return O == X ?
|
|
2257
|
+
var X = b.length - 1;
|
|
2258
|
+
return O == X ? b.pop() : R.call(b, O, 1), !0;
|
|
2259
2259
|
}
|
|
2260
2260
|
function Y(_) {
|
|
2261
|
-
var
|
|
2262
|
-
return O < 0 ? void 0 :
|
|
2261
|
+
var b = this.__data__, O = ve(b, _);
|
|
2262
|
+
return O < 0 ? void 0 : b[O][1];
|
|
2263
2263
|
}
|
|
2264
2264
|
function H(_) {
|
|
2265
2265
|
return ve(this.__data__, _) > -1;
|
|
2266
2266
|
}
|
|
2267
|
-
function V(_,
|
|
2267
|
+
function V(_, b) {
|
|
2268
2268
|
var O = this.__data__, X = ve(O, _);
|
|
2269
|
-
return X < 0 ? O.push([_,
|
|
2269
|
+
return X < 0 ? O.push([_, b]) : O[X][1] = b, this;
|
|
2270
2270
|
}
|
|
2271
2271
|
Z.prototype.clear = ye, Z.prototype.delete = Q, Z.prototype.get = Y, Z.prototype.has = H, Z.prototype.set = V;
|
|
2272
2272
|
function M(_) {
|
|
2273
|
-
var
|
|
2274
|
-
for (this.clear(); ++
|
|
2275
|
-
var X = _[
|
|
2273
|
+
var b = -1, O = _ ? _.length : 0;
|
|
2274
|
+
for (this.clear(); ++b < O; ) {
|
|
2275
|
+
var X = _[b];
|
|
2276
2276
|
this.set(X[0], X[1]);
|
|
2277
2277
|
}
|
|
2278
2278
|
}
|
|
2279
2279
|
function N() {
|
|
2280
2280
|
this.__data__ = {
|
|
2281
2281
|
hash: new U(),
|
|
2282
|
-
map: new (
|
|
2282
|
+
map: new (x || Z)(),
|
|
2283
2283
|
string: new U()
|
|
2284
2284
|
};
|
|
2285
2285
|
}
|
|
@@ -2289,75 +2289,75 @@ function Mr() {
|
|
|
2289
2289
|
function fe(_) {
|
|
2290
2290
|
return De(this, _).get(_);
|
|
2291
2291
|
}
|
|
2292
|
-
function
|
|
2292
|
+
function me(_) {
|
|
2293
2293
|
return De(this, _).has(_);
|
|
2294
2294
|
}
|
|
2295
|
-
function Ie(_,
|
|
2296
|
-
return De(this, _).set(_,
|
|
2295
|
+
function Ie(_, b) {
|
|
2296
|
+
return De(this, _).set(_, b), this;
|
|
2297
2297
|
}
|
|
2298
|
-
M.prototype.clear = N, M.prototype.delete = J, M.prototype.get = fe, M.prototype.has =
|
|
2299
|
-
function ve(_,
|
|
2298
|
+
M.prototype.clear = N, M.prototype.delete = J, M.prototype.get = fe, M.prototype.has = me, M.prototype.set = Ie;
|
|
2299
|
+
function ve(_, b) {
|
|
2300
2300
|
for (var O = _.length; O--; )
|
|
2301
|
-
if (jt(_[O][0],
|
|
2301
|
+
if (jt(_[O][0], b))
|
|
2302
2302
|
return O;
|
|
2303
2303
|
return -1;
|
|
2304
2304
|
}
|
|
2305
|
-
function Nt(_,
|
|
2306
|
-
|
|
2307
|
-
for (var O = 0, X =
|
|
2308
|
-
_ = _[Kt(
|
|
2305
|
+
function Nt(_, b) {
|
|
2306
|
+
b = Mt(b, _) ? [b] : kt(b);
|
|
2307
|
+
for (var O = 0, X = b.length; _ != null && O < X; )
|
|
2308
|
+
_ = _[Kt(b[O++])];
|
|
2309
2309
|
return O && O == X ? _ : void 0;
|
|
2310
2310
|
}
|
|
2311
2311
|
function Lt(_) {
|
|
2312
2312
|
if (!et(_) || qt(_))
|
|
2313
2313
|
return !1;
|
|
2314
|
-
var
|
|
2315
|
-
return
|
|
2314
|
+
var b = Qt(_) || m(_) ? D : f;
|
|
2315
|
+
return b.test(Gt(_));
|
|
2316
2316
|
}
|
|
2317
2317
|
function $t(_) {
|
|
2318
2318
|
if (typeof _ == "string")
|
|
2319
2319
|
return _;
|
|
2320
|
-
if (
|
|
2320
|
+
if (Le(_))
|
|
2321
2321
|
return j ? j.call(_) : "";
|
|
2322
|
-
var
|
|
2323
|
-
return
|
|
2322
|
+
var b = _ + "";
|
|
2323
|
+
return b == "0" && 1 / _ == -1 / 0 ? "-0" : b;
|
|
2324
2324
|
}
|
|
2325
2325
|
function kt(_) {
|
|
2326
2326
|
return Ze(_) ? _ : Wt(_);
|
|
2327
2327
|
}
|
|
2328
|
-
function De(_,
|
|
2328
|
+
function De(_, b) {
|
|
2329
2329
|
var O = _.__data__;
|
|
2330
|
-
return Ut(
|
|
2330
|
+
return Ut(b) ? O[typeof b == "string" ? "string" : "hash"] : O.map;
|
|
2331
2331
|
}
|
|
2332
|
-
function Xe(_,
|
|
2333
|
-
var O = E(_,
|
|
2332
|
+
function Xe(_, b) {
|
|
2333
|
+
var O = E(_, b);
|
|
2334
2334
|
return Lt(O) ? O : void 0;
|
|
2335
2335
|
}
|
|
2336
|
-
function Mt(_,
|
|
2336
|
+
function Mt(_, b) {
|
|
2337
2337
|
if (Ze(_))
|
|
2338
2338
|
return !1;
|
|
2339
2339
|
var O = typeof _;
|
|
2340
|
-
return O == "number" || O == "symbol" || O == "boolean" || _ == null ||
|
|
2340
|
+
return O == "number" || O == "symbol" || O == "boolean" || _ == null || Le(_) ? !0 : i.test(_) || !o.test(_) || b != null && _ in Object(b);
|
|
2341
2341
|
}
|
|
2342
2342
|
function Ut(_) {
|
|
2343
|
-
var
|
|
2344
|
-
return
|
|
2343
|
+
var b = typeof _;
|
|
2344
|
+
return b == "string" || b == "number" || b == "symbol" || b == "boolean" ? _ !== "__proto__" : _ === null;
|
|
2345
2345
|
}
|
|
2346
2346
|
function qt(_) {
|
|
2347
|
-
return !!
|
|
2347
|
+
return !!w && w in _;
|
|
2348
2348
|
}
|
|
2349
|
-
var Wt =
|
|
2349
|
+
var Wt = Ne(function(_) {
|
|
2350
2350
|
_ = Ht(_);
|
|
2351
|
-
var
|
|
2352
|
-
return
|
|
2353
|
-
|
|
2354
|
-
}),
|
|
2351
|
+
var b = [];
|
|
2352
|
+
return c.test(_) && b.push(""), _.replace(l, function(O, X, we, be) {
|
|
2353
|
+
b.push(we ? be.replace(a, "$1") : X || O);
|
|
2354
|
+
}), b;
|
|
2355
2355
|
});
|
|
2356
2356
|
function Kt(_) {
|
|
2357
|
-
if (typeof _ == "string" ||
|
|
2357
|
+
if (typeof _ == "string" || Le(_))
|
|
2358
2358
|
return _;
|
|
2359
|
-
var
|
|
2360
|
-
return
|
|
2359
|
+
var b = _ + "";
|
|
2360
|
+
return b == "0" && 1 / _ == -1 / 0 ? "-0" : b;
|
|
2361
2361
|
}
|
|
2362
2362
|
function Gt(_) {
|
|
2363
2363
|
if (_ != null) {
|
|
@@ -2372,109 +2372,118 @@ function Mr() {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
return "";
|
|
2374
2374
|
}
|
|
2375
|
-
function
|
|
2376
|
-
if (typeof _ != "function" ||
|
|
2375
|
+
function Ne(_, b) {
|
|
2376
|
+
if (typeof _ != "function" || b && typeof b != "function")
|
|
2377
2377
|
throw new TypeError(t);
|
|
2378
2378
|
var O = function() {
|
|
2379
|
-
var X = arguments,
|
|
2380
|
-
if (
|
|
2381
|
-
return
|
|
2379
|
+
var X = arguments, we = b ? b.apply(this, X) : X[0], be = O.cache;
|
|
2380
|
+
if (be.has(we))
|
|
2381
|
+
return be.get(we);
|
|
2382
2382
|
var tt = _.apply(this, X);
|
|
2383
|
-
return O.cache =
|
|
2383
|
+
return O.cache = be.set(we, tt), tt;
|
|
2384
2384
|
};
|
|
2385
|
-
return O.cache = new (
|
|
2385
|
+
return O.cache = new (Ne.Cache || M)(), O;
|
|
2386
2386
|
}
|
|
2387
|
-
|
|
2388
|
-
function jt(_,
|
|
2389
|
-
return _ ===
|
|
2387
|
+
Ne.Cache = M;
|
|
2388
|
+
function jt(_, b) {
|
|
2389
|
+
return _ === b || _ !== _ && b !== b;
|
|
2390
2390
|
}
|
|
2391
2391
|
var Ze = Array.isArray;
|
|
2392
2392
|
function Qt(_) {
|
|
2393
|
-
var
|
|
2394
|
-
return
|
|
2393
|
+
var b = et(_) ? C.call(_) : "";
|
|
2394
|
+
return b == s || b == n;
|
|
2395
2395
|
}
|
|
2396
2396
|
function et(_) {
|
|
2397
|
-
var
|
|
2398
|
-
return !!_ && (
|
|
2397
|
+
var b = typeof _;
|
|
2398
|
+
return !!_ && (b == "object" || b == "function");
|
|
2399
2399
|
}
|
|
2400
2400
|
function Bt(_) {
|
|
2401
2401
|
return !!_ && typeof _ == "object";
|
|
2402
2402
|
}
|
|
2403
|
-
function
|
|
2403
|
+
function Le(_) {
|
|
2404
2404
|
return typeof _ == "symbol" || Bt(_) && C.call(_) == r;
|
|
2405
2405
|
}
|
|
2406
2406
|
function Ht(_) {
|
|
2407
2407
|
return _ == null ? "" : $t(_);
|
|
2408
2408
|
}
|
|
2409
|
-
function zt(_,
|
|
2410
|
-
var X = _ == null ? void 0 : Nt(_,
|
|
2409
|
+
function zt(_, b, O) {
|
|
2410
|
+
var X = _ == null ? void 0 : Nt(_, b);
|
|
2411
2411
|
return X === void 0 ? O : X;
|
|
2412
2412
|
}
|
|
2413
|
-
return
|
|
2413
|
+
return We = zt, We;
|
|
2414
2414
|
}
|
|
2415
2415
|
var Ur = Mr();
|
|
2416
|
-
const
|
|
2416
|
+
const Ke = /* @__PURE__ */ kr(Ur);
|
|
2417
2417
|
function qr(t, e, s) {
|
|
2418
2418
|
const n = t ?? {
|
|
2419
2419
|
result: [],
|
|
2420
2420
|
success: !0,
|
|
2421
2421
|
totalCount: 0
|
|
2422
|
-
}, r =
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2422
|
+
}, r = n.result ?? [];
|
|
2423
|
+
let o;
|
|
2424
|
+
const i = e.length > 1 ? /* @__PURE__ */ new Map() : void 0, c = /* @__PURE__ */ new Map();
|
|
2425
|
+
if (i)
|
|
2426
|
+
for (let d = r.length - 1; d >= 0; d--) {
|
|
2427
|
+
const a = Ke(r[d], s);
|
|
2428
|
+
if (a !== a) continue;
|
|
2429
|
+
const f = i.get(a);
|
|
2430
|
+
f !== void 0 && c.set(d, f), i.set(a, d);
|
|
2431
|
+
}
|
|
2432
|
+
const l = /* @__PURE__ */ new Set();
|
|
2433
|
+
for (const d of e) {
|
|
2434
|
+
const a = Ke(d.payload.data, s), f = o ?? r, u = i ? a === a ? i.get(a) ?? -1 : -1 : f.findIndex((p) => Ke(p, s) === a);
|
|
2435
|
+
switch (d.type) {
|
|
2436
|
+
case "ADD":
|
|
2437
|
+
u === -1 && (o ??= r.slice(), a === a && i?.set(a, o.length), o.push(d.payload.data));
|
|
2428
2438
|
break;
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
const i = r.findIndex((a) => Te(a, s) === c);
|
|
2432
|
-
i !== -1 && (r[i] = o.payload.data);
|
|
2439
|
+
case "UPDATE":
|
|
2440
|
+
u !== -1 && f[u] !== d.payload.data && (o ??= r.slice(), o[u] = d.payload.data);
|
|
2433
2441
|
break;
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2442
|
+
case "DELETE":
|
|
2443
|
+
if (u !== -1) {
|
|
2444
|
+
o ??= r.slice(), l.add(u);
|
|
2445
|
+
const p = c.get(u);
|
|
2446
|
+
p === void 0 ? i?.delete(a) : i?.set(a, p);
|
|
2447
|
+
}
|
|
2438
2448
|
break;
|
|
2439
|
-
}
|
|
2440
2449
|
}
|
|
2441
2450
|
}
|
|
2442
|
-
return {
|
|
2451
|
+
return o ? (l.size && (o = o.filter((d, a) => !l.has(a))), {
|
|
2443
2452
|
...n,
|
|
2444
|
-
result:
|
|
2445
|
-
};
|
|
2453
|
+
result: o
|
|
2454
|
+
}) : n;
|
|
2446
2455
|
}
|
|
2447
2456
|
function Wr(t, e, s, n, r, o) {
|
|
2448
|
-
const
|
|
2449
|
-
let
|
|
2450
|
-
|
|
2451
|
-
const d = ae(
|
|
2452
|
-
let p,
|
|
2453
|
-
|
|
2457
|
+
const i = $(14), c = o?.syncWindowMs ?? 500;
|
|
2458
|
+
let l;
|
|
2459
|
+
i[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], i[0] = l) : l = i[0];
|
|
2460
|
+
const d = ae(l), a = ae(null), f = ae(null), u = ae(r);
|
|
2461
|
+
let p, g;
|
|
2462
|
+
i[1] !== r ? (p = () => {
|
|
2454
2463
|
u.current = r;
|
|
2455
|
-
},
|
|
2464
|
+
}, g = [r], i[1] = r, i[2] = p, i[3] = g) : (p = i[2], g = i[3]), lt(p, g);
|
|
2456
2465
|
let E;
|
|
2457
|
-
|
|
2458
|
-
const
|
|
2459
|
-
if (d.current = [],
|
|
2460
|
-
t.setQueryData(e, (I) => qr(I,
|
|
2461
|
-
for (const I of
|
|
2466
|
+
i[4] !== s || i[5] !== n || i[6] !== t || i[7] !== e ? (E = () => {
|
|
2467
|
+
const w = d.current;
|
|
2468
|
+
if (d.current = [], a.current !== null && (clearTimeout(a.current), a.current = null), f.current !== null && (cancelAnimationFrame(f.current), f.current = null), !(w.length === 0 || !n)) {
|
|
2469
|
+
t.setQueryData(e, (I) => qr(I, w, n));
|
|
2470
|
+
for (const I of w)
|
|
2462
2471
|
(I.type === "ADD" || I.type === "UPDATE") && t.setQueryData(s(I.payload.id, I.payload.namespace), {
|
|
2463
2472
|
success: !0,
|
|
2464
2473
|
result: I.payload.data
|
|
2465
2474
|
});
|
|
2466
2475
|
}
|
|
2467
|
-
},
|
|
2468
|
-
const
|
|
2476
|
+
}, i[4] = s, i[5] = n, i[6] = t, i[7] = e, i[8] = E) : E = i[8];
|
|
2477
|
+
const m = E;
|
|
2469
2478
|
let S;
|
|
2470
|
-
|
|
2471
|
-
d.current.push(
|
|
2472
|
-
},
|
|
2479
|
+
i[9] !== m || i[10] !== c ? (S = (w) => {
|
|
2480
|
+
d.current.push(w), !(a.current !== null || f.current !== null) && (a.current = setTimeout(m, c), u.current !== 1 && (f.current = requestAnimationFrame(m)));
|
|
2481
|
+
}, i[9] = m, i[10] = c, i[11] = S) : S = i[11];
|
|
2473
2482
|
const y = S;
|
|
2474
2483
|
let v, h;
|
|
2475
|
-
return
|
|
2476
|
-
|
|
2477
|
-
}, h = [],
|
|
2484
|
+
return i[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = () => () => {
|
|
2485
|
+
a.current !== null && (clearTimeout(a.current), a.current = null), f.current !== null && (cancelAnimationFrame(f.current), f.current = null);
|
|
2486
|
+
}, h = [], i[12] = v, i[13] = h) : (v = i[12], h = i[13]), ue(v, h), y;
|
|
2478
2487
|
}
|
|
2479
2488
|
const Ks = (t) => {
|
|
2480
2489
|
const e = $(57), {
|
|
@@ -2482,47 +2491,47 @@ const Ks = (t) => {
|
|
|
2482
2491
|
connectionID: n,
|
|
2483
2492
|
resourceKey: r,
|
|
2484
2493
|
idAccessor: o,
|
|
2485
|
-
namespaces:
|
|
2486
|
-
} = t,
|
|
2494
|
+
namespaces: i
|
|
2495
|
+
} = t, c = ee(s), l = ge(), {
|
|
2487
2496
|
showSnackbar: d
|
|
2488
2497
|
} = de();
|
|
2489
|
-
let
|
|
2490
|
-
e[0] !==
|
|
2491
|
-
const f =
|
|
2498
|
+
let a;
|
|
2499
|
+
e[0] !== i ? (a = i ?? [], e[0] = i, e[1] = a) : a = e[1];
|
|
2500
|
+
const f = a;
|
|
2492
2501
|
let u;
|
|
2493
|
-
e[2] !== n || e[3] !==
|
|
2502
|
+
e[2] !== n || e[3] !== c || e[4] !== r || e[5] !== f ? (u = He.list(c, n, r, f), e[2] = n, e[3] = c, e[4] = r, e[5] = f, e[6] = u) : u = e[6];
|
|
2494
2503
|
const p = u;
|
|
2495
|
-
let m;
|
|
2496
|
-
e[7] !== n || e[8] !== i || e[9] !== r ? (m = (z, k) => He.resource(i, n, r, z, k), e[7] = n, e[8] = i, e[9] = r, e[10] = m) : m = e[10];
|
|
2497
|
-
const E = m;
|
|
2498
2504
|
let g;
|
|
2499
|
-
e[
|
|
2505
|
+
e[7] !== n || e[8] !== c || e[9] !== r ? (g = (z, k) => He.resource(c, n, r, z, k), e[7] = n, e[8] = c, e[9] = r, e[10] = g) : g = e[10];
|
|
2506
|
+
const E = g;
|
|
2507
|
+
let m;
|
|
2508
|
+
e[11] !== n || e[12] !== c || e[13] !== r || e[14] !== f ? (m = async (z) => yt(c, n, r, It.createFrom({
|
|
2500
2509
|
input: z.input,
|
|
2501
2510
|
namespace: z.namespace ?? (f.length === 1 ? f[0] : "")
|
|
2502
|
-
})), e[11] = n, e[12] =
|
|
2511
|
+
})), e[11] = n, e[12] = c, e[13] = r, e[14] = f, e[15] = m) : m = e[15];
|
|
2503
2512
|
let S;
|
|
2504
|
-
e[16] !==
|
|
2513
|
+
e[16] !== l || e[17] !== p || e[18] !== d ? (S = async (z) => {
|
|
2505
2514
|
const k = z?.result;
|
|
2506
2515
|
let B = "";
|
|
2507
2516
|
k?.metadata?.name ? B = k.metadata.name : k?.id ? B = k.id : k?.name ? B = k.name : k?.ID ? B = k.ID : k?.Name && (B = k.Name);
|
|
2508
2517
|
const Z = B ? `Resource ${B} created` : "Resource created";
|
|
2509
|
-
d(Z, "success"), await
|
|
2518
|
+
d(Z, "success"), await l.invalidateQueries({
|
|
2510
2519
|
queryKey: p
|
|
2511
2520
|
});
|
|
2512
|
-
}, e[16] =
|
|
2521
|
+
}, e[16] = l, e[17] = p, e[18] = d, e[19] = S) : S = e[19];
|
|
2513
2522
|
let y;
|
|
2514
2523
|
e[20] !== d ? (y = oe(d, "Failed to create resource"), e[20] = d, e[21] = y) : y = e[21];
|
|
2515
2524
|
let v;
|
|
2516
|
-
e[22] !==
|
|
2517
|
-
mutationFn:
|
|
2525
|
+
e[22] !== m || e[23] !== S || e[24] !== y ? (v = {
|
|
2526
|
+
mutationFn: m,
|
|
2518
2527
|
onSuccess: S,
|
|
2519
2528
|
onError: y
|
|
2520
|
-
}, e[22] =
|
|
2529
|
+
}, e[22] = m, e[23] = S, e[24] = y, e[25] = v) : v = e[25];
|
|
2521
2530
|
const {
|
|
2522
2531
|
mutateAsync: h
|
|
2523
2532
|
} = se(v);
|
|
2524
|
-
let
|
|
2525
|
-
e[26] !== n || e[27] !==
|
|
2533
|
+
let w;
|
|
2534
|
+
e[26] !== n || e[27] !== c || e[28] !== r || e[29] !== f ? (w = async () => mt(c, n, r, Et.createFrom({
|
|
2526
2535
|
order: [{
|
|
2527
2536
|
field: "name",
|
|
2528
2537
|
descending: !1
|
|
@@ -2532,42 +2541,42 @@ const Ks = (t) => {
|
|
|
2532
2541
|
pageSize: 200
|
|
2533
2542
|
},
|
|
2534
2543
|
namespaces: f
|
|
2535
|
-
})), e[26] = n, e[27] =
|
|
2544
|
+
})), e[26] = n, e[27] = c, e[28] = r, e[29] = f, e[30] = w) : w = e[30];
|
|
2536
2545
|
let I;
|
|
2537
|
-
e[31] !== p || e[32] !==
|
|
2546
|
+
e[31] !== p || e[32] !== w ? (I = {
|
|
2538
2547
|
queryKey: p,
|
|
2539
|
-
queryFn:
|
|
2548
|
+
queryFn: w,
|
|
2540
2549
|
placeholderData: Kr,
|
|
2541
2550
|
retry: !1
|
|
2542
|
-
}, e[31] = p, e[32] =
|
|
2551
|
+
}, e[31] = p, e[32] = w, e[33] = I) : I = e[33];
|
|
2543
2552
|
const T = re(I), [C, D] = q.useState(G.WatchStateIdle);
|
|
2544
2553
|
let P, R;
|
|
2545
|
-
e[34] !== n || e[35] !==
|
|
2554
|
+
e[34] !== n || e[35] !== c || e[36] !== r ? (P = () => ne(`${c}/${n}/watch/STATE`, (k) => {
|
|
2546
2555
|
const B = k.data;
|
|
2547
2556
|
B.resourceKey === r && D(B.state);
|
|
2548
|
-
}), R = [
|
|
2549
|
-
const
|
|
2550
|
-
let
|
|
2551
|
-
e[39] !== n || e[40] !==
|
|
2557
|
+
}), R = [c, n, r], e[34] = n, e[35] = c, e[36] = r, e[37] = P, e[38] = R) : (P = e[37], R = e[38]), q.useEffect(P, R);
|
|
2558
|
+
const x = Wr(l, p, E, o, C);
|
|
2559
|
+
let A;
|
|
2560
|
+
e[39] !== n || e[40] !== x || e[41] !== o || e[42] !== c || e[43] !== r ? (A = () => {
|
|
2552
2561
|
if (!o)
|
|
2553
2562
|
return;
|
|
2554
|
-
Fn(
|
|
2555
|
-
const z = ne(`${
|
|
2563
|
+
Fn(c, n, r);
|
|
2564
|
+
const z = ne(`${c}/${n}/${r}/ADD`, (Z) => x({
|
|
2556
2565
|
type: "ADD",
|
|
2557
2566
|
payload: Z.data
|
|
2558
|
-
})), k = ne(`${
|
|
2567
|
+
})), k = ne(`${c}/${n}/${r}/UPDATE`, (Z) => x({
|
|
2559
2568
|
type: "UPDATE",
|
|
2560
2569
|
payload: Z.data
|
|
2561
|
-
})), B = ne(`${
|
|
2570
|
+
})), B = ne(`${c}/${n}/${r}/DELETE`, (Z) => x({
|
|
2562
2571
|
type: "DELETE",
|
|
2563
2572
|
payload: Z.data
|
|
2564
2573
|
}));
|
|
2565
2574
|
return () => {
|
|
2566
|
-
z(), k(), B(), Nn(
|
|
2575
|
+
z(), k(), B(), Nn(c, n, r);
|
|
2567
2576
|
};
|
|
2568
|
-
}, e[39] = n, e[40] =
|
|
2577
|
+
}, e[39] = n, e[40] = x, e[41] = o, e[42] = c, e[43] = r, e[44] = A) : A = e[44];
|
|
2569
2578
|
let L;
|
|
2570
|
-
e[45] !== n || e[46] !==
|
|
2579
|
+
e[45] !== n || e[46] !== x || e[47] !== c || e[48] !== r ? (L = [c, n, r, x], e[45] = n, e[46] = x, e[47] = c, e[48] = r, e[49] = L) : L = e[49], q.useEffect(A, L);
|
|
2571
2580
|
const j = C === G.WatchStateSyncing, U = C === G.WatchStateSynced, W = C === G.WatchStateError;
|
|
2572
2581
|
let K;
|
|
2573
2582
|
return e[50] !== h || e[51] !== T || e[52] !== j || e[53] !== U || e[54] !== W || e[55] !== C ? (K = {
|
|
@@ -2599,25 +2608,25 @@ const Gs = (t) => {
|
|
|
2599
2608
|
namespace: h.namespace ?? v.namespace ?? ""
|
|
2600
2609
|
}));
|
|
2601
2610
|
}, e[0] = n, e[1] = o) : o = e[1];
|
|
2602
|
-
let
|
|
2603
|
-
e[2] !== r ? (
|
|
2611
|
+
let i;
|
|
2612
|
+
e[2] !== r ? (i = (y, v) => {
|
|
2604
2613
|
const {
|
|
2605
2614
|
opts: h
|
|
2606
2615
|
} = v;
|
|
2607
2616
|
r(`Resource ${h.resourceID} created`, "success");
|
|
2608
|
-
}, e[2] = r, e[3] =
|
|
2609
|
-
let
|
|
2610
|
-
e[4] !== r || e[5] !== o || e[6] !==
|
|
2617
|
+
}, e[2] = r, e[3] = i) : i = e[3];
|
|
2618
|
+
let c;
|
|
2619
|
+
e[4] !== r || e[5] !== o || e[6] !== i ? (c = {
|
|
2611
2620
|
mutationFn: o,
|
|
2612
|
-
onSuccess:
|
|
2621
|
+
onSuccess: i,
|
|
2613
2622
|
onError(y, v) {
|
|
2614
2623
|
const {
|
|
2615
2624
|
opts: h
|
|
2616
2625
|
} = v;
|
|
2617
2626
|
_e(r, y, `Failed to create resource ${h.resourceID}`);
|
|
2618
2627
|
}
|
|
2619
|
-
}, e[4] = r, e[5] = o, e[6] =
|
|
2620
|
-
const
|
|
2628
|
+
}, e[4] = r, e[5] = o, e[6] = i, e[7] = c) : c = e[7];
|
|
2629
|
+
const l = se(c);
|
|
2621
2630
|
let d;
|
|
2622
2631
|
e[8] !== n ? (d = async (y) => {
|
|
2623
2632
|
const {
|
|
@@ -2630,24 +2639,24 @@ const Gs = (t) => {
|
|
|
2630
2639
|
namespace: v.namespace ?? ""
|
|
2631
2640
|
}));
|
|
2632
2641
|
}, e[8] = n, e[9] = d) : d = e[9];
|
|
2633
|
-
let
|
|
2634
|
-
e[10] !== r ? (
|
|
2642
|
+
let a;
|
|
2643
|
+
e[10] !== r ? (a = (y, v) => {
|
|
2635
2644
|
const {
|
|
2636
2645
|
opts: h
|
|
2637
2646
|
} = v;
|
|
2638
2647
|
r(`Resource ${h.resourceID} updated`, "success");
|
|
2639
|
-
}, e[10] = r, e[11] =
|
|
2648
|
+
}, e[10] = r, e[11] = a) : a = e[11];
|
|
2640
2649
|
let f;
|
|
2641
|
-
e[12] !== r || e[13] !== d || e[14] !==
|
|
2650
|
+
e[12] !== r || e[13] !== d || e[14] !== a ? (f = {
|
|
2642
2651
|
mutationFn: d,
|
|
2643
|
-
onSuccess:
|
|
2652
|
+
onSuccess: a,
|
|
2644
2653
|
onError(y, v) {
|
|
2645
2654
|
const {
|
|
2646
2655
|
opts: h
|
|
2647
2656
|
} = v;
|
|
2648
2657
|
_e(r, y, `Failed to update resource ${h.resourceID}`);
|
|
2649
2658
|
}
|
|
2650
|
-
}, e[12] = r, e[13] = d, e[14] =
|
|
2659
|
+
}, e[12] = r, e[13] = d, e[14] = a, e[15] = f) : f = e[15];
|
|
2651
2660
|
const u = se(f);
|
|
2652
2661
|
let p;
|
|
2653
2662
|
e[16] !== n ? (p = async (y) => {
|
|
@@ -2655,101 +2664,101 @@ const Gs = (t) => {
|
|
|
2655
2664
|
opts: v,
|
|
2656
2665
|
input: h
|
|
2657
2666
|
} = y;
|
|
2658
|
-
return
|
|
2667
|
+
return gt(n, v.connectionID, v.resourceKey, St.createFrom({
|
|
2659
2668
|
id: v.resourceID,
|
|
2660
2669
|
namespace: v.namespace ?? "",
|
|
2661
2670
|
gracePeriodSeconds: h.gracePeriodSeconds
|
|
2662
2671
|
}));
|
|
2663
2672
|
}, e[16] = n, e[17] = p) : p = e[17];
|
|
2664
|
-
let
|
|
2665
|
-
e[18] !== r ? (
|
|
2673
|
+
let g;
|
|
2674
|
+
e[18] !== r ? (g = (y, v) => {
|
|
2666
2675
|
const {
|
|
2667
2676
|
opts: h
|
|
2668
2677
|
} = v;
|
|
2669
2678
|
r(`Resource ${h.resourceID} deleted`, "success");
|
|
2670
|
-
}, e[18] = r, e[19] =
|
|
2679
|
+
}, e[18] = r, e[19] = g) : g = e[19];
|
|
2671
2680
|
let E;
|
|
2672
|
-
e[20] !== r || e[21] !== p || e[22] !==
|
|
2681
|
+
e[20] !== r || e[21] !== p || e[22] !== g ? (E = {
|
|
2673
2682
|
mutationFn: p,
|
|
2674
|
-
onSuccess:
|
|
2683
|
+
onSuccess: g,
|
|
2675
2684
|
onError(y, v) {
|
|
2676
2685
|
const {
|
|
2677
2686
|
opts: h
|
|
2678
2687
|
} = v;
|
|
2679
2688
|
_e(r, y, `Failed to delete resource ${h.resourceID}`);
|
|
2680
2689
|
}
|
|
2681
|
-
}, e[20] = r, e[21] = p, e[22] =
|
|
2682
|
-
const
|
|
2690
|
+
}, e[20] = r, e[21] = p, e[22] = g, e[23] = E) : E = e[23];
|
|
2691
|
+
const m = se(E);
|
|
2683
2692
|
let S;
|
|
2684
|
-
return e[24] !==
|
|
2685
|
-
create:
|
|
2693
|
+
return e[24] !== l.mutateAsync || e[25] !== m.mutateAsync || e[26] !== u.mutateAsync ? (S = {
|
|
2694
|
+
create: l.mutateAsync,
|
|
2686
2695
|
update: u.mutateAsync,
|
|
2687
|
-
remove:
|
|
2688
|
-
}, e[24] =
|
|
2696
|
+
remove: m.mutateAsync
|
|
2697
|
+
}, e[24] = l.mutateAsync, e[25] = m.mutateAsync, e[26] = u.mutateAsync, e[27] = S) : S = e[27], S;
|
|
2689
2698
|
}, js = (t) => {
|
|
2690
2699
|
const e = $(15), {
|
|
2691
2700
|
pluginID: s,
|
|
2692
2701
|
connectionID: n,
|
|
2693
2702
|
resourceKey: r,
|
|
2694
2703
|
enabled: o
|
|
2695
|
-
} = t,
|
|
2696
|
-
let
|
|
2697
|
-
e[0] !== n || e[1] !==
|
|
2698
|
-
const
|
|
2704
|
+
} = t, i = o === void 0 ? !0 : o, c = ee(s);
|
|
2705
|
+
let l, d;
|
|
2706
|
+
e[0] !== n || e[1] !== c || e[2] !== r ? (l = ["RESOURCE_ACTIONS", c, n, r], d = () => Ln(c, n, r), e[0] = n, e[1] = c, e[2] = r, e[3] = l, e[4] = d) : (l = e[3], d = e[4]);
|
|
2707
|
+
const a = i && !!c && !!n && !!r;
|
|
2699
2708
|
let f;
|
|
2700
|
-
e[5] !==
|
|
2701
|
-
queryKey:
|
|
2709
|
+
e[5] !== l || e[6] !== d || e[7] !== a ? (f = {
|
|
2710
|
+
queryKey: l,
|
|
2702
2711
|
queryFn: d,
|
|
2703
|
-
enabled:
|
|
2712
|
+
enabled: a,
|
|
2704
2713
|
staleTime: 3e5
|
|
2705
|
-
}, e[5] =
|
|
2714
|
+
}, e[5] = l, e[6] = d, e[7] = a, e[8] = f) : f = e[8];
|
|
2706
2715
|
const u = re(f);
|
|
2707
2716
|
let p;
|
|
2708
2717
|
e[9] !== u.data ? (p = u.data ?? [], e[9] = u.data, e[10] = p) : p = e[10];
|
|
2709
|
-
let
|
|
2710
|
-
return e[11] !== u.error || e[12] !== u.isLoading || e[13] !== p ? (
|
|
2718
|
+
let g;
|
|
2719
|
+
return e[11] !== u.error || e[12] !== u.isLoading || e[13] !== p ? (g = {
|
|
2711
2720
|
actions: p,
|
|
2712
2721
|
isLoading: u.isLoading,
|
|
2713
2722
|
error: u.error
|
|
2714
|
-
}, e[11] = u.error, e[12] = u.isLoading, e[13] = p, e[14] =
|
|
2723
|
+
}, e[11] = u.error, e[12] = u.isLoading, e[13] = p, e[14] = g) : g = e[14], g;
|
|
2715
2724
|
}, Qs = (t) => {
|
|
2716
2725
|
const e = $(20), {
|
|
2717
2726
|
pluginID: s,
|
|
2718
2727
|
connectionID: n,
|
|
2719
2728
|
resourceKey: r
|
|
2720
|
-
} = t, o = ee(s),
|
|
2721
|
-
showSnackbar:
|
|
2729
|
+
} = t, o = ee(s), i = ge(), {
|
|
2730
|
+
showSnackbar: c
|
|
2722
2731
|
} = de();
|
|
2723
|
-
let
|
|
2724
|
-
e[0] !== n || e[1] !== o || e[2] !== r ? (
|
|
2732
|
+
let l;
|
|
2733
|
+
e[0] !== n || e[1] !== o || e[2] !== r ? (l = async (g) => {
|
|
2725
2734
|
const {
|
|
2726
2735
|
actionID: E,
|
|
2727
|
-
id:
|
|
2736
|
+
id: m,
|
|
2728
2737
|
namespace: S,
|
|
2729
2738
|
params: y
|
|
2730
|
-
} =
|
|
2731
|
-
return $n(o, n, r, E,
|
|
2739
|
+
} = g, v = m === void 0 ? "" : m, h = S === void 0 ? "" : S, w = y === void 0 ? {} : y;
|
|
2740
|
+
return $n(o, n, r, E, wt.createFrom({
|
|
2732
2741
|
id: v,
|
|
2733
2742
|
namespace: h,
|
|
2734
|
-
params:
|
|
2743
|
+
params: w
|
|
2735
2744
|
}));
|
|
2736
|
-
}, e[0] = n, e[1] = o, e[2] = r, e[3] =
|
|
2745
|
+
}, e[0] = n, e[1] = o, e[2] = r, e[3] = l) : l = e[3];
|
|
2737
2746
|
let d;
|
|
2738
|
-
e[4] !== n || e[5] !== o || e[6] !==
|
|
2739
|
-
|
|
2747
|
+
e[4] !== n || e[5] !== o || e[6] !== i || e[7] !== r || e[8] !== c ? (d = (g) => {
|
|
2748
|
+
g?.message && c(g.message, "success"), i.invalidateQueries({
|
|
2740
2749
|
queryKey: ["RESOURCES", o, n, r]
|
|
2741
2750
|
});
|
|
2742
|
-
}, e[4] = n, e[5] = o, e[6] =
|
|
2743
|
-
let
|
|
2744
|
-
e[10] !==
|
|
2745
|
-
_e(
|
|
2746
|
-
}, e[10] =
|
|
2751
|
+
}, e[4] = n, e[5] = o, e[6] = i, e[7] = r, e[8] = c, e[9] = d) : d = e[9];
|
|
2752
|
+
let a;
|
|
2753
|
+
e[10] !== c ? (a = (g, E) => {
|
|
2754
|
+
_e(c, g, `Failed to execute action "${E.actionID}"`);
|
|
2755
|
+
}, e[10] = c, e[11] = a) : a = e[11];
|
|
2747
2756
|
let f;
|
|
2748
|
-
e[12] !==
|
|
2749
|
-
mutationFn:
|
|
2757
|
+
e[12] !== l || e[13] !== d || e[14] !== a ? (f = {
|
|
2758
|
+
mutationFn: l,
|
|
2750
2759
|
onSuccess: d,
|
|
2751
|
-
onError:
|
|
2752
|
-
}, e[12] =
|
|
2760
|
+
onError: a
|
|
2761
|
+
}, e[12] = l, e[13] = d, e[14] = a, e[15] = f) : f = e[15];
|
|
2753
2762
|
const u = se(f);
|
|
2754
2763
|
let p;
|
|
2755
2764
|
return e[16] !== u.error || e[17] !== u.isPending || e[18] !== u.mutateAsync ? (p = {
|
|
@@ -2762,19 +2771,19 @@ const Gs = (t) => {
|
|
|
2762
2771
|
pluginID: s,
|
|
2763
2772
|
connectionID: n,
|
|
2764
2773
|
enabled: r
|
|
2765
|
-
} = t, o = r === void 0 ? !0 : r,
|
|
2766
|
-
let
|
|
2767
|
-
e[0] !== n || e[1] !==
|
|
2768
|
-
const d = o && !!
|
|
2769
|
-
let
|
|
2770
|
-
e[4] !==
|
|
2771
|
-
queryKey:
|
|
2772
|
-
queryFn:
|
|
2774
|
+
} = t, o = r === void 0 ? !0 : r, i = ee(s);
|
|
2775
|
+
let c, l;
|
|
2776
|
+
e[0] !== n || e[1] !== i ? (c = ["EDITOR_SCHEMAS", i, n], l = () => kn(i, n), e[0] = n, e[1] = i, e[2] = c, e[3] = l) : (c = e[2], l = e[3]);
|
|
2777
|
+
const d = o && !!i && !!n;
|
|
2778
|
+
let a;
|
|
2779
|
+
e[4] !== c || e[5] !== l || e[6] !== d ? (a = {
|
|
2780
|
+
queryKey: c,
|
|
2781
|
+
queryFn: l,
|
|
2773
2782
|
enabled: d,
|
|
2774
2783
|
staleTime: 6e5,
|
|
2775
2784
|
retry: 1
|
|
2776
|
-
}, e[4] =
|
|
2777
|
-
const f = re(
|
|
2785
|
+
}, e[4] = c, e[5] = l, e[6] = d, e[7] = a) : a = e[7];
|
|
2786
|
+
const f = re(a);
|
|
2778
2787
|
let u;
|
|
2779
2788
|
e[8] !== f.data ? (u = f.data ?? [], e[8] = f.data, e[9] = u) : u = e[9];
|
|
2780
2789
|
let p;
|
|
@@ -2789,25 +2798,25 @@ const Gs = (t) => {
|
|
|
2789
2798
|
connectionID: e,
|
|
2790
2799
|
enabled: s = !0
|
|
2791
2800
|
}) => {
|
|
2792
|
-
const n = ee(t), r =
|
|
2801
|
+
const n = ee(t), r = ge(), o = [n, e, "watch-state"], i = ae([]), c = ae(!1), l = Ge((u) => {
|
|
2793
2802
|
r.setQueryData(o, (p) => {
|
|
2794
2803
|
if (!p) return p;
|
|
2795
|
-
const
|
|
2804
|
+
const g = {
|
|
2796
2805
|
...p.resources,
|
|
2797
2806
|
[u.resourceKey]: u.state
|
|
2798
2807
|
}, E = {
|
|
2799
2808
|
...p.resourceCounts,
|
|
2800
2809
|
[u.resourceKey]: u.resourceCount
|
|
2801
2810
|
};
|
|
2802
|
-
let
|
|
2803
|
-
for (const y of Object.values(
|
|
2804
|
-
y === G.WatchStateSynced &&
|
|
2811
|
+
let m = 0, S = 0;
|
|
2812
|
+
for (const y of Object.values(g))
|
|
2813
|
+
y === G.WatchStateSynced && m++, (y === G.WatchStateError || y === G.WatchStateFailed) && S++;
|
|
2805
2814
|
return {
|
|
2806
2815
|
...p,
|
|
2807
|
-
resources:
|
|
2816
|
+
resources: g,
|
|
2808
2817
|
resourceCounts: E,
|
|
2809
|
-
totalResources: Object.keys(
|
|
2810
|
-
syncedCount:
|
|
2818
|
+
totalResources: Object.keys(g).length,
|
|
2819
|
+
syncedCount: m,
|
|
2811
2820
|
errorCount: S
|
|
2812
2821
|
};
|
|
2813
2822
|
});
|
|
@@ -2817,18 +2826,18 @@ const Gs = (t) => {
|
|
|
2817
2826
|
const u = await Mn(n, e);
|
|
2818
2827
|
if (!u) throw new Error("Failed to get watch state: null response");
|
|
2819
2828
|
const p = {};
|
|
2820
|
-
let
|
|
2829
|
+
let g = 0, E = 0;
|
|
2821
2830
|
for (const [S, y] of Object.entries(u.resources ?? {}))
|
|
2822
|
-
y != null && (p[S] = y, y === G.WatchStateSynced &&
|
|
2823
|
-
const
|
|
2831
|
+
y != null && (p[S] = y, y === G.WatchStateSynced && g++, y === G.WatchStateError && E++);
|
|
2832
|
+
const m = {};
|
|
2824
2833
|
for (const [S, y] of Object.entries(u.resourceCounts ?? {}))
|
|
2825
|
-
y != null && (
|
|
2834
|
+
y != null && (m[S] = y);
|
|
2826
2835
|
return {
|
|
2827
2836
|
connection: u.connectionId,
|
|
2828
2837
|
resources: p,
|
|
2829
|
-
resourceCounts:
|
|
2838
|
+
resourceCounts: m,
|
|
2830
2839
|
totalResources: Object.keys(p).length,
|
|
2831
|
-
syncedCount:
|
|
2840
|
+
syncedCount: g,
|
|
2832
2841
|
errorCount: E
|
|
2833
2842
|
};
|
|
2834
2843
|
},
|
|
@@ -2836,47 +2845,47 @@ const Gs = (t) => {
|
|
|
2836
2845
|
refetchInterval: (u) => {
|
|
2837
2846
|
const p = u.state.data;
|
|
2838
2847
|
if (!p || p.totalResources === 0) return 3e3;
|
|
2839
|
-
let
|
|
2848
|
+
let g = 0;
|
|
2840
2849
|
for (const E of Object.values(p.resources))
|
|
2841
|
-
(E === G.WatchStateSynced || E === G.WatchStateError || E === G.WatchStateStopped || E === G.WatchStateFailed || E === G.WatchStateForbidden || E === G.WatchStateSkipped) &&
|
|
2842
|
-
return
|
|
2850
|
+
(E === G.WatchStateSynced || E === G.WatchStateError || E === G.WatchStateStopped || E === G.WatchStateFailed || E === G.WatchStateForbidden || E === G.WatchStateSkipped) && g++;
|
|
2851
|
+
return g >= p.totalResources ? !1 : 3e3;
|
|
2843
2852
|
}
|
|
2844
2853
|
});
|
|
2845
2854
|
ue(() => {
|
|
2846
|
-
if (!d.data ||
|
|
2847
|
-
|
|
2848
|
-
const u =
|
|
2849
|
-
|
|
2855
|
+
if (!d.data || c.current) return;
|
|
2856
|
+
c.current = !0;
|
|
2857
|
+
const u = i.current;
|
|
2858
|
+
i.current = [];
|
|
2850
2859
|
for (const p of u)
|
|
2851
|
-
|
|
2852
|
-
}, [d.data,
|
|
2860
|
+
l(p);
|
|
2861
|
+
}, [d.data, l]), ue(() => {
|
|
2853
2862
|
if (!s || !n || !e)
|
|
2854
2863
|
return;
|
|
2855
|
-
|
|
2864
|
+
c.current = !1, i.current = [];
|
|
2856
2865
|
const u = ne(`${n}/${e}/watch/STATE`, (p) => {
|
|
2857
|
-
const
|
|
2858
|
-
|
|
2866
|
+
const g = p.data;
|
|
2867
|
+
c.current ? l(g) : i.current.push(g);
|
|
2859
2868
|
});
|
|
2860
2869
|
return () => {
|
|
2861
|
-
u(),
|
|
2870
|
+
u(), c.current = !1, i.current = [];
|
|
2862
2871
|
};
|
|
2863
|
-
}, [n, e, s,
|
|
2864
|
-
const
|
|
2872
|
+
}, [n, e, s, l]);
|
|
2873
|
+
const a = d.data;
|
|
2865
2874
|
let f = 0;
|
|
2866
|
-
if (
|
|
2867
|
-
for (const u of Object.values(
|
|
2875
|
+
if (a?.resources)
|
|
2876
|
+
for (const u of Object.values(a.resources))
|
|
2868
2877
|
(u === G.WatchStateSynced || u === G.WatchStateError || u === G.WatchStateStopped || u === G.WatchStateFailed || u === G.WatchStateForbidden || u === G.WatchStateSkipped) && f++;
|
|
2869
2878
|
return {
|
|
2870
2879
|
/** Full summary query result */
|
|
2871
2880
|
summary: d,
|
|
2872
2881
|
/** Get the state of a specific resource type's watch */
|
|
2873
|
-
getResourceState: (u) =>
|
|
2882
|
+
getResourceState: (u) => a?.resources[u],
|
|
2874
2883
|
/** Whether all registered watches have reached a terminal state */
|
|
2875
|
-
isFullySynced:
|
|
2884
|
+
isFullySynced: a ? a.totalResources > 0 && f === a.totalResources : !1,
|
|
2876
2885
|
/** Sync progress as a 0-1 fraction (terminal states / total) */
|
|
2877
|
-
syncProgress:
|
|
2886
|
+
syncProgress: a && a.totalResources > 0 ? f / a.totalResources : 0,
|
|
2878
2887
|
/** Number of watches that encountered errors */
|
|
2879
|
-
errorCount:
|
|
2888
|
+
errorCount: a?.errorCount ?? 0
|
|
2880
2889
|
};
|
|
2881
2890
|
}, zs = () => {
|
|
2882
2891
|
const t = $(16);
|
|
@@ -2886,48 +2895,48 @@ const Gs = (t) => {
|
|
|
2886
2895
|
let r;
|
|
2887
2896
|
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ new Map(), t[1] = r) : r = t[1];
|
|
2888
2897
|
const o = ae(r);
|
|
2889
|
-
let
|
|
2890
|
-
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2891
|
-
const
|
|
2892
|
-
let
|
|
2893
|
-
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2894
|
-
const v = y.data, h = Ye(v),
|
|
2898
|
+
let i;
|
|
2899
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ new Map(), t[2] = i) : i = t[2];
|
|
2900
|
+
const c = ae(i);
|
|
2901
|
+
let l;
|
|
2902
|
+
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = (y) => {
|
|
2903
|
+
const v = y.data, h = Ye(v), w = Ot(o.current, v), I = Be(w);
|
|
2895
2904
|
if (n((T) => {
|
|
2896
2905
|
const C = new Map(T);
|
|
2897
2906
|
return C.set(h, I), C;
|
|
2898
|
-
}),
|
|
2907
|
+
}), c.current.has(h) && (clearTimeout(c.current.get(h)), c.current.delete(h)), Fe(I)) {
|
|
2899
2908
|
const T = setTimeout(() => {
|
|
2900
2909
|
n((C) => {
|
|
2901
2910
|
const D = new Map(C);
|
|
2902
2911
|
return D.delete(h), D;
|
|
2903
|
-
}), o.current.delete(h),
|
|
2912
|
+
}), o.current.delete(h), c.current.delete(h);
|
|
2904
2913
|
}, 5e3);
|
|
2905
|
-
|
|
2914
|
+
c.current.set(h, T);
|
|
2906
2915
|
}
|
|
2907
|
-
}, t[3] =
|
|
2908
|
-
const d =
|
|
2909
|
-
let
|
|
2910
|
-
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2916
|
+
}, t[3] = l) : l = t[3];
|
|
2917
|
+
const d = l;
|
|
2918
|
+
let a, f;
|
|
2919
|
+
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = () => {
|
|
2911
2920
|
const y = ne("watch/STATE", d);
|
|
2912
2921
|
return () => {
|
|
2913
2922
|
y();
|
|
2914
|
-
for (const v of
|
|
2923
|
+
for (const v of c.current.values())
|
|
2915
2924
|
clearTimeout(v);
|
|
2916
2925
|
};
|
|
2917
|
-
}, f = [d], t[4] =
|
|
2918
|
-
let u, p,
|
|
2919
|
-
t[6] !== s ? (
|
|
2920
|
-
const
|
|
2926
|
+
}, f = [d], t[4] = a, t[5] = f) : (a = t[4], f = t[5]), ue(a, f);
|
|
2927
|
+
let u, p, g, E;
|
|
2928
|
+
t[6] !== s ? (g = Array.from(s.values()), u = Tt(g), p = g.find(Gr) ?? g[0] ?? null, E = Pt(g), t[6] = s, t[7] = u, t[8] = p, t[9] = g, t[10] = E) : (u = t[7], p = t[8], g = t[9], E = t[10]);
|
|
2929
|
+
const m = E;
|
|
2921
2930
|
let S;
|
|
2922
|
-
return t[11] !==
|
|
2923
|
-
syncs:
|
|
2931
|
+
return t[11] !== m || t[12] !== u || t[13] !== p || t[14] !== g ? (S = {
|
|
2932
|
+
syncs: g,
|
|
2924
2933
|
hasSyncing: u,
|
|
2925
2934
|
primarySync: p,
|
|
2926
|
-
aggregateProgress:
|
|
2927
|
-
}, t[11] =
|
|
2935
|
+
aggregateProgress: m
|
|
2936
|
+
}, t[11] = m, t[12] = u, t[13] = p, t[14] = g, t[15] = S) : S = t[15], S;
|
|
2928
2937
|
};
|
|
2929
2938
|
function Gr(t) {
|
|
2930
|
-
return !
|
|
2939
|
+
return !Fe(t);
|
|
2931
2940
|
}
|
|
2932
2941
|
const jr = () => {
|
|
2933
2942
|
const t = q.useContext(Dt);
|
|
@@ -2940,35 +2949,35 @@ const jr = () => {
|
|
|
2940
2949
|
connectionID: n,
|
|
2941
2950
|
resourceKey: r
|
|
2942
2951
|
} = t, o = ee(s), {
|
|
2943
|
-
showSnackbar:
|
|
2952
|
+
showSnackbar: i
|
|
2944
2953
|
} = de(), {
|
|
2945
|
-
addOperation:
|
|
2946
|
-
updateOperation:
|
|
2954
|
+
addOperation: c,
|
|
2955
|
+
updateOperation: l
|
|
2947
2956
|
} = jr();
|
|
2948
2957
|
let d;
|
|
2949
2958
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ new Set(), e[0] = d) : d = e[0];
|
|
2950
|
-
const
|
|
2959
|
+
const a = q.useRef(d);
|
|
2951
2960
|
let f;
|
|
2952
|
-
e[1] !==
|
|
2953
|
-
const I =
|
|
2954
|
-
h.disposed || (h.disposed = !0, h.unsubscribe?.(), h.open?.cancel(), h.attach?.cancel(), h.handle && (rt(h.handle).catch(Qr), I &&
|
|
2961
|
+
e[1] !== l ? (f = (h, w) => {
|
|
2962
|
+
const I = w === void 0 ? !1 : w;
|
|
2963
|
+
h.disposed || (h.disposed = !0, h.unsubscribe?.(), h.open?.cancel(), h.attach?.cancel(), h.handle && (rt(h.handle).catch(Qr), I && l(h.handle, {
|
|
2955
2964
|
status: "cancelled",
|
|
2956
2965
|
message: "Cancelled",
|
|
2957
2966
|
completedAt: Date.now()
|
|
2958
|
-
})),
|
|
2959
|
-
}, e[1] =
|
|
2967
|
+
})), a.current.delete(h));
|
|
2968
|
+
}, e[1] = l, e[2] = f) : f = e[2];
|
|
2960
2969
|
const u = f;
|
|
2961
2970
|
let p;
|
|
2962
2971
|
e[3] !== u ? (p = () => () => {
|
|
2963
|
-
for (const h of
|
|
2972
|
+
for (const h of a.current)
|
|
2964
2973
|
u(h, !0);
|
|
2965
2974
|
}, e[3] = u, e[4] = p) : p = e[4];
|
|
2966
|
-
let
|
|
2967
|
-
e[5] !== n || e[6] !== u || e[7] !== o || e[8] !== r ? (
|
|
2975
|
+
let g;
|
|
2976
|
+
e[5] !== n || e[6] !== u || e[7] !== o || e[8] !== r ? (g = [o, n, r, u], e[5] = n, e[6] = u, e[7] = o, e[8] = r, e[9] = g) : g = e[9], q.useEffect(p, g);
|
|
2968
2977
|
let E;
|
|
2969
|
-
e[10] !==
|
|
2978
|
+
e[10] !== c || e[11] !== n || e[12] !== u || e[13] !== o || e[14] !== r || e[15] !== i || e[16] !== l ? (E = async (h) => {
|
|
2970
2979
|
const {
|
|
2971
|
-
actionID:
|
|
2980
|
+
actionID: w,
|
|
2972
2981
|
id: I,
|
|
2973
2982
|
namespace: T,
|
|
2974
2983
|
label: C,
|
|
@@ -2978,18 +2987,18 @@ const jr = () => {
|
|
|
2978
2987
|
terminal: !1,
|
|
2979
2988
|
sequence: 0
|
|
2980
2989
|
};
|
|
2981
|
-
|
|
2990
|
+
a.current.add(R);
|
|
2982
2991
|
try {
|
|
2983
|
-
R.open = Un(o, n, r,
|
|
2992
|
+
R.open = Un(o, n, r, w, wt.createFrom({
|
|
2984
2993
|
id: I,
|
|
2985
2994
|
namespace: T,
|
|
2986
2995
|
params: P
|
|
2987
2996
|
}));
|
|
2988
|
-
const
|
|
2997
|
+
const x = await R.open;
|
|
2989
2998
|
if (R.open = void 0, R.disposed)
|
|
2990
|
-
return rt(
|
|
2991
|
-
R.handle =
|
|
2992
|
-
id:
|
|
2999
|
+
return rt(x).catch(Br), x;
|
|
3000
|
+
R.handle = x, c({
|
|
3001
|
+
id: x,
|
|
2993
3002
|
label: C,
|
|
2994
3003
|
resourceKey: r,
|
|
2995
3004
|
resourceName: I,
|
|
@@ -2998,7 +3007,7 @@ const jr = () => {
|
|
|
2998
3007
|
status: "running",
|
|
2999
3008
|
startedAt: Date.now()
|
|
3000
3009
|
});
|
|
3001
|
-
const
|
|
3010
|
+
const A = (j) => {
|
|
3002
3011
|
if (R.disposed || !Number.isSafeInteger(j.sequence) || j.sequence <= R.sequence)
|
|
3003
3012
|
return;
|
|
3004
3013
|
R.sequence = j.sequence;
|
|
@@ -3006,21 +3015,21 @@ const jr = () => {
|
|
|
3006
3015
|
if (U.type === "error") {
|
|
3007
3016
|
R.terminal = !0;
|
|
3008
3017
|
const K = he(U.error);
|
|
3009
|
-
|
|
3010
|
-
status:
|
|
3018
|
+
l(x, {
|
|
3019
|
+
status: Pe(K) ? "cancelled" : "error",
|
|
3011
3020
|
message: K.title,
|
|
3012
3021
|
completedAt: Date.now()
|
|
3013
|
-
}), _e(
|
|
3022
|
+
}), _e(i, K, C), u(R);
|
|
3014
3023
|
} else if (U.type === "complete") {
|
|
3015
3024
|
R.terminal = !0;
|
|
3016
3025
|
const K = typeof W.message == "string" ? W.message : `${C} completed`;
|
|
3017
|
-
|
|
3026
|
+
l(x, {
|
|
3018
3027
|
status: "completed",
|
|
3019
3028
|
message: K,
|
|
3020
3029
|
completedAt: Date.now()
|
|
3021
|
-
}),
|
|
3030
|
+
}), i(K, "success"), u(R);
|
|
3022
3031
|
} else
|
|
3023
|
-
|
|
3032
|
+
l(x, {
|
|
3024
3033
|
message: typeof W.message == "string" ? W.message : void 0,
|
|
3025
3034
|
progress: typeof W.ready == "number" && typeof W.desired == "number" ? {
|
|
3026
3035
|
ready: W.ready,
|
|
@@ -3028,35 +3037,35 @@ const jr = () => {
|
|
|
3028
3037
|
} : void 0
|
|
3029
3038
|
});
|
|
3030
3039
|
};
|
|
3031
|
-
R.unsubscribe = ne(`action/stream/${
|
|
3040
|
+
R.unsubscribe = ne(`action/stream/${x}`, (j) => A(j.data)), R.attach = qn(x);
|
|
3032
3041
|
const L = await R.attach;
|
|
3033
|
-
return R.attach = void 0,
|
|
3034
|
-
} catch (
|
|
3035
|
-
const
|
|
3042
|
+
return R.attach = void 0, A(L), x;
|
|
3043
|
+
} catch (x) {
|
|
3044
|
+
const A = x;
|
|
3036
3045
|
if (R.terminal && R.handle)
|
|
3037
3046
|
return R.handle;
|
|
3038
|
-
throw R.disposed || (R.handle &&
|
|
3039
|
-
status:
|
|
3040
|
-
message: he(
|
|
3047
|
+
throw R.disposed || (R.handle && l(R.handle, {
|
|
3048
|
+
status: Pe(A) ? "cancelled" : "error",
|
|
3049
|
+
message: he(A).title,
|
|
3041
3050
|
completedAt: Date.now()
|
|
3042
|
-
}), _e(
|
|
3051
|
+
}), _e(i, A, `Failed to start "${w}"`)), u(R), A;
|
|
3043
3052
|
}
|
|
3044
|
-
}, e[10] =
|
|
3045
|
-
const
|
|
3053
|
+
}, e[10] = c, e[11] = n, e[12] = u, e[13] = o, e[14] = r, e[15] = i, e[16] = l, e[17] = E) : E = e[17];
|
|
3054
|
+
const m = E;
|
|
3046
3055
|
let S;
|
|
3047
3056
|
e[18] !== u ? (S = (h) => {
|
|
3048
|
-
for (const
|
|
3049
|
-
if (
|
|
3050
|
-
u(
|
|
3057
|
+
for (const w of a.current)
|
|
3058
|
+
if (w.handle === h) {
|
|
3059
|
+
u(w, !0);
|
|
3051
3060
|
return;
|
|
3052
3061
|
}
|
|
3053
3062
|
}, e[18] = u, e[19] = S) : S = e[19];
|
|
3054
3063
|
const y = S;
|
|
3055
3064
|
let v;
|
|
3056
|
-
return e[20] !== y || e[21] !==
|
|
3057
|
-
startStreamAction:
|
|
3065
|
+
return e[20] !== y || e[21] !== m ? (v = {
|
|
3066
|
+
startStreamAction: m,
|
|
3058
3067
|
cancelStreamAction: y
|
|
3059
|
-
}, e[20] = y, e[21] =
|
|
3068
|
+
}, e[20] = y, e[21] = m, e[22] = v) : v = e[22], v;
|
|
3060
3069
|
};
|
|
3061
3070
|
function Qr() {
|
|
3062
3071
|
}
|
|
@@ -3066,21 +3075,21 @@ function Hr(t, e) {
|
|
|
3066
3075
|
return `${t}/${e}/graph/CHANGED`;
|
|
3067
3076
|
}
|
|
3068
3077
|
function Je(t, e, s, n) {
|
|
3069
|
-
const r = $(16), o =
|
|
3070
|
-
let
|
|
3071
|
-
r[0] !== s ? (
|
|
3072
|
-
|
|
3073
|
-
},
|
|
3078
|
+
const r = $(16), o = ge(), i = ae(s);
|
|
3079
|
+
let c, l;
|
|
3080
|
+
r[0] !== s ? (c = () => {
|
|
3081
|
+
i.current = s;
|
|
3082
|
+
}, l = [s], r[0] = s, r[1] = c, r[2] = l) : (c = r[1], l = r[2]), lt(c, l);
|
|
3074
3083
|
let d;
|
|
3075
3084
|
r[3] !== s ? (d = JSON.stringify(s), r[3] = s, r[4] = d) : d = r[4];
|
|
3076
|
-
const
|
|
3085
|
+
const a = d;
|
|
3077
3086
|
let f;
|
|
3078
3087
|
r[5] !== e || r[6] !== n || r[7] !== t || r[8] !== o ? (f = () => {
|
|
3079
3088
|
if (!n || !t || !e)
|
|
3080
3089
|
return;
|
|
3081
3090
|
const p = ne(Hr(t, e), () => {
|
|
3082
3091
|
o.invalidateQueries({
|
|
3083
|
-
queryKey:
|
|
3092
|
+
queryKey: i.current,
|
|
3084
3093
|
exact: !0
|
|
3085
3094
|
});
|
|
3086
3095
|
});
|
|
@@ -3089,7 +3098,7 @@ function Je(t, e, s, n) {
|
|
|
3089
3098
|
};
|
|
3090
3099
|
}, r[5] = e, r[6] = n, r[7] = t, r[8] = o, r[9] = f) : f = r[9];
|
|
3091
3100
|
let u;
|
|
3092
|
-
r[10] !== e || r[11] !== n || r[12] !==
|
|
3101
|
+
r[10] !== e || r[11] !== n || r[12] !== a || r[13] !== t || r[14] !== o ? (u = [o, t, e, a, n], r[10] = e, r[11] = n, r[12] = a, r[13] = t, r[14] = o, r[15] = u) : u = r[15], ue(f, u);
|
|
3093
3102
|
}
|
|
3094
3103
|
const zr = {
|
|
3095
3104
|
owns: {
|
|
@@ -3148,26 +3157,26 @@ const Js = (t) => {
|
|
|
3148
3157
|
connectionID: n,
|
|
3149
3158
|
resourceKey: r,
|
|
3150
3159
|
resourceID: o,
|
|
3151
|
-
namespace:
|
|
3152
|
-
direction:
|
|
3153
|
-
relationshipType:
|
|
3160
|
+
namespace: i,
|
|
3161
|
+
direction: c,
|
|
3162
|
+
relationshipType: l,
|
|
3154
3163
|
enabled: d,
|
|
3155
|
-
refetchInterval:
|
|
3156
|
-
} = t, f =
|
|
3164
|
+
refetchInterval: a
|
|
3165
|
+
} = t, f = i === void 0 ? "" : i, u = c === void 0 ? "both" : c, p = d === void 0 ? !0 : d, g = a === void 0 ? !1 : a, E = ee(s), m = l ?? null;
|
|
3157
3166
|
let S;
|
|
3158
|
-
e[0] !== n || e[1] !== u || e[2] !== f || e[3] !== E || e[4] !== o || e[5] !== r || e[6] !==
|
|
3167
|
+
e[0] !== n || e[1] !== u || e[2] !== f || e[3] !== E || e[4] !== o || e[5] !== r || e[6] !== m ? (S = ["RESOURCE_RELATED", E, n, r, f, o, u, m], e[0] = n, e[1] = u, e[2] = f, e[3] = E, e[4] = o, e[5] = r, e[6] = m, e[7] = S) : S = e[7];
|
|
3159
3168
|
const y = S, v = p && !!E && !!n && !!r && !!o;
|
|
3160
3169
|
Je(E, n, y, v);
|
|
3161
3170
|
let h;
|
|
3162
|
-
e[8] !== n || e[9] !== u || e[10] !== f || e[11] !== E || e[12] !==
|
|
3163
|
-
let
|
|
3164
|
-
e[16] !== v || e[17] !== y || e[18] !==
|
|
3171
|
+
e[8] !== n || e[9] !== u || e[10] !== f || e[11] !== E || e[12] !== l || e[13] !== o || e[14] !== r ? (h = async () => Wn(E, n, r, f, o, u, l ?? null), e[8] = n, e[9] = u, e[10] = f, e[11] = E, e[12] = l, e[13] = o, e[14] = r, e[15] = h) : h = e[15];
|
|
3172
|
+
let w;
|
|
3173
|
+
e[16] !== v || e[17] !== y || e[18] !== g || e[19] !== h ? (w = {
|
|
3165
3174
|
queryKey: y,
|
|
3166
3175
|
queryFn: h,
|
|
3167
3176
|
enabled: v,
|
|
3168
|
-
refetchInterval:
|
|
3169
|
-
}, e[16] = v, e[17] = y, e[18] =
|
|
3170
|
-
const I = re(
|
|
3177
|
+
refetchInterval: g
|
|
3178
|
+
}, e[16] = v, e[17] = y, e[18] = g, e[19] = h, e[20] = w) : w = e[20];
|
|
3179
|
+
const I = re(w);
|
|
3171
3180
|
let T, C;
|
|
3172
3181
|
if (e[21] !== n || e[22] !== f || e[23] !== E || e[24] !== I.data || e[25] !== o || e[26] !== r) {
|
|
3173
3182
|
const P = {
|
|
@@ -3196,65 +3205,65 @@ const Js = (t) => {
|
|
|
3196
3205
|
connectionID: n,
|
|
3197
3206
|
resourceKey: r,
|
|
3198
3207
|
resourceID: o,
|
|
3199
|
-
namespace:
|
|
3200
|
-
maxDepth:
|
|
3201
|
-
enabled:
|
|
3208
|
+
namespace: i,
|
|
3209
|
+
maxDepth: c,
|
|
3210
|
+
enabled: l,
|
|
3202
3211
|
refetchInterval: d
|
|
3203
|
-
} = t,
|
|
3212
|
+
} = t, a = i === void 0 ? "" : i, f = c === void 0 ? 3 : c, u = l === void 0 ? !0 : l, p = d === void 0 ? !1 : d, g = ee(s);
|
|
3204
3213
|
let E;
|
|
3205
|
-
e[0] !== n || e[1] !== f || e[2] !==
|
|
3206
|
-
const
|
|
3207
|
-
Je(
|
|
3214
|
+
e[0] !== n || e[1] !== f || e[2] !== a || e[3] !== g || e[4] !== o || e[5] !== r ? (E = ["RESOURCE_DEPENDENCY_TREE", g, n, r, a, o, f], e[0] = n, e[1] = f, e[2] = a, e[3] = g, e[4] = o, e[5] = r, e[6] = E) : E = e[6];
|
|
3215
|
+
const m = E, S = u && !!g && !!n && !!r && !!o;
|
|
3216
|
+
Je(g, n, m, S);
|
|
3208
3217
|
let y;
|
|
3209
|
-
e[7] !== n || e[8] !== f || e[9] !==
|
|
3218
|
+
e[7] !== n || e[8] !== f || e[9] !== a || e[10] !== g || e[11] !== o || e[12] !== r ? (y = async () => Kn(g, n, r, a, o, f), e[7] = n, e[8] = f, e[9] = a, e[10] = g, e[11] = o, e[12] = r, e[13] = y) : y = e[13];
|
|
3210
3219
|
let v;
|
|
3211
|
-
e[14] !== S || e[15] !==
|
|
3212
|
-
queryKey:
|
|
3220
|
+
e[14] !== S || e[15] !== m || e[16] !== p || e[17] !== y ? (v = {
|
|
3221
|
+
queryKey: m,
|
|
3213
3222
|
queryFn: y,
|
|
3214
3223
|
enabled: S,
|
|
3215
3224
|
refetchInterval: p
|
|
3216
|
-
}, e[14] = S, e[15] =
|
|
3217
|
-
const h = re(v),
|
|
3225
|
+
}, e[14] = S, e[15] = m, e[16] = p, e[17] = y, e[18] = v) : v = e[18];
|
|
3226
|
+
const h = re(v), w = h.data ?? null;
|
|
3218
3227
|
let I;
|
|
3219
|
-
return e[19] !== h.error || e[20] !== h.isFetching || e[21] !== h.isLoading || e[22] !== h.refetch || e[23] !==
|
|
3220
|
-
tree:
|
|
3228
|
+
return e[19] !== h.error || e[20] !== h.isFetching || e[21] !== h.isLoading || e[22] !== h.refetch || e[23] !== w ? (I = {
|
|
3229
|
+
tree: w,
|
|
3221
3230
|
isLoading: h.isLoading,
|
|
3222
3231
|
isFetching: h.isFetching,
|
|
3223
3232
|
error: h.error,
|
|
3224
3233
|
refetch: h.refetch
|
|
3225
|
-
}, e[19] = h.error, e[20] = h.isFetching, e[21] = h.isLoading, e[22] = h.refetch, e[23] =
|
|
3234
|
+
}, e[19] = h.error, e[20] = h.isFetching, e[21] = h.isLoading, e[22] = h.refetch, e[23] = w, e[24] = I) : I = e[24], I;
|
|
3226
3235
|
}, Zs = (t) => {
|
|
3227
3236
|
const e = $(26), {
|
|
3228
3237
|
pluginID: s,
|
|
3229
3238
|
connectionID: n,
|
|
3230
3239
|
resourceKey: r,
|
|
3231
3240
|
resourceID: o,
|
|
3232
|
-
namespace:
|
|
3233
|
-
upDepth:
|
|
3234
|
-
downDepth:
|
|
3241
|
+
namespace: i,
|
|
3242
|
+
upDepth: c,
|
|
3243
|
+
downDepth: l,
|
|
3235
3244
|
enabled: d
|
|
3236
|
-
} = t,
|
|
3245
|
+
} = t, a = i === void 0 ? "" : i, f = c === void 0 ? 2 : c, u = l === void 0 ? 3 : l, p = d === void 0 ? !0 : d, g = ee(s);
|
|
3237
3246
|
let E;
|
|
3238
|
-
e[0] !== n || e[1] !== u || e[2] !==
|
|
3239
|
-
const
|
|
3240
|
-
Je(
|
|
3247
|
+
e[0] !== n || e[1] !== u || e[2] !== a || e[3] !== g || e[4] !== o || e[5] !== r || e[6] !== f ? (E = ["RESOURCE_GRAPH", g, n, r, a, o, f, u], e[0] = n, e[1] = u, e[2] = a, e[3] = g, e[4] = o, e[5] = r, e[6] = f, e[7] = E) : E = e[7];
|
|
3248
|
+
const m = E, S = p && !!g && !!n && !!r && !!o;
|
|
3249
|
+
Je(g, n, m, S);
|
|
3241
3250
|
let y;
|
|
3242
|
-
e[8] !== n || e[9] !== u || e[10] !==
|
|
3251
|
+
e[8] !== n || e[9] !== u || e[10] !== a || e[11] !== g || e[12] !== o || e[13] !== r || e[14] !== f ? (y = async () => Gn(g, n, r, a, o, f, u), e[8] = n, e[9] = u, e[10] = a, e[11] = g, e[12] = o, e[13] = r, e[14] = f, e[15] = y) : y = e[15];
|
|
3243
3252
|
let v;
|
|
3244
|
-
e[16] !== S || e[17] !==
|
|
3245
|
-
queryKey:
|
|
3253
|
+
e[16] !== S || e[17] !== m || e[18] !== y ? (v = {
|
|
3254
|
+
queryKey: m,
|
|
3246
3255
|
queryFn: y,
|
|
3247
3256
|
enabled: S
|
|
3248
|
-
}, e[16] = S, e[17] =
|
|
3249
|
-
const h = re(v),
|
|
3257
|
+
}, e[16] = S, e[17] = m, e[18] = y, e[19] = v) : v = e[19];
|
|
3258
|
+
const h = re(v), w = h.data ?? null;
|
|
3250
3259
|
let I;
|
|
3251
|
-
return e[20] !== h.error || e[21] !== h.isFetching || e[22] !== h.isLoading || e[23] !== h.refetch || e[24] !==
|
|
3252
|
-
graph:
|
|
3260
|
+
return e[20] !== h.error || e[21] !== h.isFetching || e[22] !== h.isLoading || e[23] !== h.refetch || e[24] !== w ? (I = {
|
|
3261
|
+
graph: w,
|
|
3253
3262
|
isLoading: h.isLoading,
|
|
3254
3263
|
isFetching: h.isFetching,
|
|
3255
3264
|
error: h.error,
|
|
3256
3265
|
refetch: h.refetch
|
|
3257
|
-
}, e[20] = h.error, e[21] = h.isFetching, e[22] = h.isLoading, e[23] = h.refetch, e[24] =
|
|
3266
|
+
}, e[20] = h.error, e[21] = h.isFetching, e[22] = h.isLoading, e[23] = h.refetch, e[24] = w, e[25] = I) : I = e[25], I;
|
|
3258
3267
|
}, eo = () => {
|
|
3259
3268
|
const t = q.useContext(Ct);
|
|
3260
3269
|
if (!t)
|
|
@@ -3265,11 +3274,11 @@ const Js = (t) => {
|
|
|
3265
3274
|
let s, n;
|
|
3266
3275
|
if (e[0] !== t) {
|
|
3267
3276
|
const {
|
|
3268
|
-
to:
|
|
3277
|
+
to: l,
|
|
3269
3278
|
withinContext: d,
|
|
3270
|
-
...
|
|
3279
|
+
...a
|
|
3271
3280
|
} = t;
|
|
3272
|
-
n =
|
|
3281
|
+
n = l, s = a, e[0] = t, e[1] = s, e[2] = n;
|
|
3273
3282
|
} else
|
|
3274
3283
|
s = e[1], n = e[2];
|
|
3275
3284
|
const {
|
|
@@ -3277,13 +3286,13 @@ const Js = (t) => {
|
|
|
3277
3286
|
} = Ve();
|
|
3278
3287
|
r || console.error("Link used outside of a plugin context");
|
|
3279
3288
|
const o = `/_plugin/${r}${n.startsWith("/") ? "" : "/"}${n}`;
|
|
3280
|
-
let
|
|
3281
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3289
|
+
let i;
|
|
3290
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
3282
3291
|
textDecoration: "none",
|
|
3283
3292
|
color: "inherit"
|
|
3284
|
-
}, e[3] =
|
|
3285
|
-
let
|
|
3286
|
-
return e[4] !== s || e[5] !== o ? (
|
|
3293
|
+
}, e[3] = i) : i = e[3];
|
|
3294
|
+
let c;
|
|
3295
|
+
return e[4] !== s || e[5] !== o ? (c = /* @__PURE__ */ F(Jt, { style: i, ...s, to: o }), e[4] = s, e[5] = o, e[6] = c) : c = e[6], c;
|
|
3287
3296
|
};
|
|
3288
3297
|
function no() {
|
|
3289
3298
|
const t = $(10), e = Xt(), s = Zt(), {
|
|
@@ -3293,21 +3302,21 @@ function no() {
|
|
|
3293
3302
|
const r = `/_plugin/${n}`;
|
|
3294
3303
|
let o;
|
|
3295
3304
|
t[0] !== s.pathname || t[1] !== r ? (o = s.pathname.startsWith(r) ? s.pathname.slice(r.length) || "/" : s.pathname, t[0] = s.pathname, t[1] = r, t[2] = o) : o = t[2];
|
|
3296
|
-
const
|
|
3297
|
-
let
|
|
3298
|
-
t[3] !== e || t[4] !== r ? (
|
|
3305
|
+
const i = o;
|
|
3306
|
+
let c;
|
|
3307
|
+
t[3] !== e || t[4] !== r ? (c = (a, f) => {
|
|
3299
3308
|
const {
|
|
3300
3309
|
...u
|
|
3301
3310
|
} = f ?? {};
|
|
3302
|
-
|
|
3303
|
-
}, t[3] = e, t[4] = r, t[5] =
|
|
3304
|
-
const
|
|
3311
|
+
a.startsWith("/") ? e(`${r}${a}`, u) : e(a, u);
|
|
3312
|
+
}, t[3] = e, t[4] = r, t[5] = c) : c = t[5];
|
|
3313
|
+
const l = c;
|
|
3305
3314
|
let d;
|
|
3306
|
-
return t[6] !== s || t[7] !==
|
|
3315
|
+
return t[6] !== s || t[7] !== l || t[8] !== i ? (d = {
|
|
3307
3316
|
location: s,
|
|
3308
|
-
navigate:
|
|
3309
|
-
pluginPath:
|
|
3310
|
-
}, t[6] = s, t[7] =
|
|
3317
|
+
navigate: l,
|
|
3318
|
+
pluginPath: i
|
|
3319
|
+
}, t[6] = s, t[7] = l, t[8] = i, t[9] = d) : d = t[9], d;
|
|
3311
3320
|
}
|
|
3312
3321
|
class ro {
|
|
3313
3322
|
}
|
|
@@ -3465,29 +3474,29 @@ function ao(t) {
|
|
|
3465
3474
|
fallback: s,
|
|
3466
3475
|
...r
|
|
3467
3476
|
} = t, e[0] = t, e[1] = s, e[2] = n, e[3] = r, e[4] = o) : (s = e[1], n = e[2], r = e[3], o = e[4]);
|
|
3468
|
-
const
|
|
3469
|
-
let
|
|
3470
|
-
e[5] !== s || e[6] !== r ? (
|
|
3471
|
-
const
|
|
3477
|
+
const i = mr(Zr);
|
|
3478
|
+
let c;
|
|
3479
|
+
e[5] !== s || e[6] !== r ? (c = s === void 0 ? /* @__PURE__ */ F("svg", { width: r.size ?? 16, height: r.size ?? 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", className: r.className, "aria-hidden": r["aria-hidden"] ?? !0, children: /* @__PURE__ */ F("path", { d: "m12 3 9 5v8l-9 5-9-5V8l9-5Zm0 9 9-4M12 12 3 8m9 4v9" }) }) : s, e[5] = s, e[6] = r, e[7] = c) : c = e[7];
|
|
3480
|
+
const l = c;
|
|
3472
3481
|
let d;
|
|
3473
|
-
if (e[8] !==
|
|
3482
|
+
if (e[8] !== l || e[9] !== n || e[10] !== r || e[11] !== o || e[12] !== i) {
|
|
3474
3483
|
d = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
3475
|
-
e: for (const f of
|
|
3484
|
+
e: for (const f of i?.listAll() ?? []) {
|
|
3476
3485
|
if (f.plugin !== n)
|
|
3477
3486
|
continue;
|
|
3478
3487
|
const u = ts(f.value, o);
|
|
3479
3488
|
if (u) {
|
|
3480
|
-
d = /* @__PURE__ */ F(es, { resetToken: f, fallback:
|
|
3489
|
+
d = /* @__PURE__ */ F(es, { resetToken: f, fallback: l, children: /* @__PURE__ */ F(q.Suspense, { fallback: l, children: /* @__PURE__ */ F(ns, { icon: u, ...r }) }) }, JSON.stringify([n, o, i?.version, f.id]));
|
|
3481
3490
|
break e;
|
|
3482
3491
|
}
|
|
3483
3492
|
}
|
|
3484
|
-
e[8] =
|
|
3493
|
+
e[8] = l, e[9] = n, e[10] = r, e[11] = o, e[12] = i, e[13] = d;
|
|
3485
3494
|
} else
|
|
3486
3495
|
d = e[13];
|
|
3487
3496
|
if (d !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
3488
3497
|
return d;
|
|
3489
|
-
let
|
|
3490
|
-
return e[14] !==
|
|
3498
|
+
let a;
|
|
3499
|
+
return e[14] !== l ? (a = /* @__PURE__ */ F(at, { children: l }), e[14] = l, e[15] = a) : a = e[15], a;
|
|
3491
3500
|
}
|
|
3492
3501
|
export {
|
|
3493
3502
|
Se as ALL_SESSIONS_KEY,
|
|
@@ -3502,7 +3511,7 @@ export {
|
|
|
3502
3511
|
Dt as OperationsContext,
|
|
3503
3512
|
_s as OperationsProvider,
|
|
3504
3513
|
ze as PluginContext,
|
|
3505
|
-
|
|
3514
|
+
gs as PluginContextProvider,
|
|
3506
3515
|
Jr as PluginErrorCode,
|
|
3507
3516
|
so as PluginWindow,
|
|
3508
3517
|
ro as PluginWindowRootProps,
|
|
@@ -3520,7 +3529,7 @@ export {
|
|
|
3520
3529
|
ir as defaultState,
|
|
3521
3530
|
io as formatGroup,
|
|
3522
3531
|
Hr as graphChangedEvent,
|
|
3523
|
-
|
|
3532
|
+
Pe as isCancelledError,
|
|
3524
3533
|
co as openGlobalSearch,
|
|
3525
3534
|
he as parseAppError,
|
|
3526
3535
|
oo as parseResourceKey,
|
|
@@ -3532,17 +3541,17 @@ export {
|
|
|
3532
3541
|
Ft as useBottomDrawer,
|
|
3533
3542
|
Ls as useConfirmationModal,
|
|
3534
3543
|
Is as useConnection,
|
|
3535
|
-
|
|
3544
|
+
bs as useConnectionNamespaces,
|
|
3536
3545
|
Cs as useConnectionStatus,
|
|
3537
|
-
|
|
3546
|
+
ws as useConnections,
|
|
3538
3547
|
Xs as useDependencyTree,
|
|
3539
3548
|
Bs as useEditorSchemas,
|
|
3540
3549
|
Wr as useEventBatcher,
|
|
3541
|
-
|
|
3550
|
+
As as useExec,
|
|
3542
3551
|
Qs as useExecuteAction,
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3552
|
+
mr as useExtensionPoint,
|
|
3553
|
+
gr as useExtensionRegistry,
|
|
3554
|
+
xs as useLogs,
|
|
3546
3555
|
Ts as useMetricProviders,
|
|
3547
3556
|
Tr as useMetricProvidersForResource,
|
|
3548
3557
|
Os as useMetricStream,
|
|
@@ -3550,7 +3559,7 @@ export {
|
|
|
3550
3559
|
Ve as usePluginContext,
|
|
3551
3560
|
Ds as usePluginData,
|
|
3552
3561
|
no as usePluginRouter,
|
|
3553
|
-
|
|
3562
|
+
ms as usePluginSettings,
|
|
3554
3563
|
Fs as usePortForwardSessions,
|
|
3555
3564
|
Je as useRefetchOnGraphChange,
|
|
3556
3565
|
Js as useRelatedResources,
|