@kong-ui-public/entities-data-plane-nodes 0.2.38 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import {
|
|
5
|
-
import { createI18n as
|
|
6
|
-
import
|
|
7
|
-
import "@kong/
|
|
8
|
-
|
|
9
|
-
const Ve = {
|
|
1
|
+
var ne = Object.defineProperty;
|
|
2
|
+
var oe = (n, e, t) => e in n ? ne(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var N = (n, e, t) => oe(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { computed as p, toValue as D, ref as L, watch as ae, defineComponent as O, resolveComponent as x, openBlock as g, createElementBlock as $, createElementVNode as i, toDisplayString as d, unref as l, createBlock as k, Fragment as j, createTextVNode as A, createCommentVNode as q, withCtx as w, createVNode as B, resolveDynamicComponent as Q, mergeModels as le, useModel as se, renderList as re } from "vue";
|
|
5
|
+
import { createI18n as ie, i18nTComponent as ce } from "@kong-ui-public/i18n";
|
|
6
|
+
import { useErrors as ue } from "@kong-ui-public/entities-shared";
|
|
7
|
+
import { EqualIcon as de, ProgressIcon as ge, ClearIcon as ve, CheckCircleIcon as me } from "@kong/icons";
|
|
8
|
+
const _e = {
|
|
10
9
|
action_button: {
|
|
11
10
|
confirm: "Confirm",
|
|
12
11
|
submitting: "Submitting...",
|
|
@@ -47,7 +46,7 @@ const Ve = {
|
|
|
47
46
|
seconds: "seconds"
|
|
48
47
|
},
|
|
49
48
|
select_log_level_title: "Select Log Level"
|
|
50
|
-
},
|
|
49
|
+
}, he = {
|
|
51
50
|
debug: "Debug",
|
|
52
51
|
info: "Info",
|
|
53
52
|
notice: "Notice",
|
|
@@ -55,1597 +54,165 @@ const Ve = {
|
|
|
55
54
|
error: "Error",
|
|
56
55
|
crit: "Critical",
|
|
57
56
|
not_applicable: "N/A"
|
|
58
|
-
},
|
|
59
|
-
modal:
|
|
60
|
-
log_level:
|
|
57
|
+
}, pe = {
|
|
58
|
+
modal: _e,
|
|
59
|
+
log_level: he
|
|
61
60
|
};
|
|
62
|
-
function
|
|
63
|
-
const
|
|
61
|
+
function P() {
|
|
62
|
+
const n = ie("en-us", pe);
|
|
64
63
|
return {
|
|
65
|
-
i18n:
|
|
66
|
-
i18nT:
|
|
64
|
+
i18n: n,
|
|
65
|
+
i18nT: ce(n)
|
|
67
66
|
// Translation component <i18n-t>
|
|
68
67
|
};
|
|
69
68
|
}
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return typeof t == "function" ? t(e) : fe.create({
|
|
78
|
-
withCredentials: !0,
|
|
79
|
-
timeout: 3e4,
|
|
80
|
-
...e
|
|
81
|
-
});
|
|
82
|
-
} catch (t) {
|
|
83
|
-
return console.warn("getAxiosInstance:", t.message || t), fe.create({
|
|
84
|
-
withCredentials: !0,
|
|
85
|
-
timeout: 3e4,
|
|
86
|
-
...e
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
getTraceIdFromError: (e) => {
|
|
91
|
-
var t;
|
|
92
|
-
return ((t = e == null ? void 0 : e.response) == null ? void 0 : t.headers["x-datadog-trace-id"]) || "";
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
function We() {
|
|
97
|
-
return {
|
|
98
|
-
debounce: (e, t) => {
|
|
99
|
-
let r;
|
|
100
|
-
return (...n) => {
|
|
101
|
-
clearTimeout(r), r = window == null ? void 0 : window.setTimeout(() => {
|
|
102
|
-
e(...n);
|
|
103
|
-
}, t);
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function le(e = {}) {
|
|
109
|
-
const { getAxiosInstance: t } = Ze();
|
|
110
|
-
return {
|
|
111
|
-
axiosInstance: t(e)
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
const Ge = {
|
|
115
|
-
actions: {
|
|
116
|
-
copyId: "Copy ID",
|
|
117
|
-
copied_id: 'Copied "{id}" to the clipboard',
|
|
118
|
-
copyToClipboard: "Copied successfully!",
|
|
119
|
-
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
120
|
-
}
|
|
121
|
-
}, Qe = {
|
|
122
|
-
message: "Are you sure you want to delete this {entityType}?",
|
|
123
|
-
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
124
|
-
}, Je = {
|
|
125
|
-
actions: {
|
|
126
|
-
viewConfiguration: "View Configuration",
|
|
127
|
-
save: "Save",
|
|
128
|
-
cancel: "Cancel",
|
|
129
|
-
back: "Back"
|
|
130
|
-
},
|
|
131
|
-
configuration: {
|
|
132
|
-
title: "Configuration",
|
|
133
|
-
message: "Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",
|
|
134
|
-
yaml: "YAML",
|
|
135
|
-
json: "JSON",
|
|
136
|
-
terraform: "Terraform"
|
|
137
|
-
},
|
|
138
|
-
errors: {
|
|
139
|
-
edit: "The entity could not be edited at this time."
|
|
140
|
-
}
|
|
141
|
-
}, Xe = {
|
|
142
|
-
emptyState: {
|
|
143
|
-
noSearchResultsTitle: "No results found",
|
|
144
|
-
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
145
|
-
noSearchResultsCtaText: "Clear"
|
|
146
|
-
}
|
|
147
|
-
}, et = {
|
|
148
|
-
title: "Configuration",
|
|
149
|
-
actions: {
|
|
150
|
-
copy: "Copy JSON"
|
|
151
|
-
},
|
|
152
|
-
sections: {
|
|
153
|
-
advanced: "Advanced",
|
|
154
|
-
plugin: "Plugin Specific Configuration"
|
|
155
|
-
},
|
|
156
|
-
commonFields: {
|
|
157
|
-
id_label: "ID",
|
|
158
|
-
name_label: "Name",
|
|
159
|
-
enabled_label: "Enabled",
|
|
160
|
-
enabled_tooltip: "Enabled is FTW",
|
|
161
|
-
updated_at_label: "Last Updated",
|
|
162
|
-
created_at_label: "Created",
|
|
163
|
-
tags_label: "Tags",
|
|
164
|
-
link: "Link"
|
|
165
|
-
},
|
|
166
|
-
statusBadge: {
|
|
167
|
-
enabledLabel: "Enabled",
|
|
168
|
-
disabledLabel: "Disabled"
|
|
169
|
-
},
|
|
170
|
-
copy: {
|
|
171
|
-
tooltip: "Copy {label}",
|
|
172
|
-
success: "Copied!"
|
|
173
|
-
},
|
|
174
|
-
errors: {
|
|
175
|
-
load: "The entity configuration data could not be loaded at this time.",
|
|
176
|
-
copy: "Failed to copy to clipboard"
|
|
177
|
-
},
|
|
178
|
-
general: {
|
|
179
|
-
entryTitle: "Entry {index}",
|
|
180
|
-
structuredFormat: "Structured"
|
|
181
|
-
}
|
|
182
|
-
}, tt = {
|
|
183
|
-
filterButtonText: "Filter",
|
|
184
|
-
fieldLabel: "Filter by:",
|
|
185
|
-
inputPlaceholder: "Enter a value",
|
|
186
|
-
selectPlaceholder: "Select an item",
|
|
187
|
-
applyButtonText: "Apply",
|
|
188
|
-
clearButtonText: "Clear",
|
|
189
|
-
clearAllButtonText: "Clear all filters"
|
|
190
|
-
}, rt = {
|
|
191
|
-
errors: {
|
|
192
|
-
fetch: "Could not fetch available items",
|
|
193
|
-
invalid: "Please select a valid value"
|
|
194
|
-
}
|
|
195
|
-
}, nt = {
|
|
196
|
-
unexpected: "An unexpected error has occurred",
|
|
197
|
-
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
198
|
-
}, at = {
|
|
199
|
-
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
200
|
-
}, it = {
|
|
201
|
-
enable: {
|
|
202
|
-
title: "Enable {entityType}",
|
|
203
|
-
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
204
|
-
confirmText: "Yes, enable"
|
|
205
|
-
},
|
|
206
|
-
disable: {
|
|
207
|
-
title: "Disable {entityType}",
|
|
208
|
-
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
209
|
-
confirmText: "Yes, disable"
|
|
210
|
-
}
|
|
211
|
-
}, ot = {
|
|
212
|
-
global: Ge,
|
|
213
|
-
deleteModal: Qe,
|
|
214
|
-
baseForm: Je,
|
|
215
|
-
baseTable: Xe,
|
|
216
|
-
baseConfigCard: et,
|
|
217
|
-
filter: tt,
|
|
218
|
-
debouncedFilter: rt,
|
|
219
|
-
errors: nt,
|
|
220
|
-
validationErrors: at,
|
|
221
|
-
toggleModal: it
|
|
222
|
-
};
|
|
223
|
-
function ne() {
|
|
224
|
-
const e = Ce("en-us", ot);
|
|
225
|
-
return {
|
|
226
|
-
i18n: e,
|
|
227
|
-
i18nT: Le(e)
|
|
228
|
-
// Translation component <i18n-t>
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
function Ne() {
|
|
232
|
-
const e = (r, n) => (n == null ? void 0 : n[r]) ?? void 0, t = (r, n) => {
|
|
233
|
-
if (r.length !== n.length) return !1;
|
|
234
|
-
const a = /* @__PURE__ */ new Set([...r, ...n]);
|
|
235
|
-
for (const i of a) {
|
|
236
|
-
const o = r.filter((l) => l === i).length, s = n.filter((l) => l === i).length;
|
|
237
|
-
if (o !== s) return !1;
|
|
238
|
-
}
|
|
239
|
-
return !0;
|
|
240
|
-
};
|
|
241
|
-
return {
|
|
242
|
-
getPropValue: e,
|
|
243
|
-
objectsAreEqual: (r, n, a) => {
|
|
244
|
-
if (a) {
|
|
245
|
-
if (Object.keys(r).length === Object.keys(n).length)
|
|
246
|
-
for (const i in r)
|
|
247
|
-
if (Array.isArray(r[i]) && Array.isArray(n[i])) {
|
|
248
|
-
if (t(r[i], n[i]))
|
|
249
|
-
continue;
|
|
250
|
-
return !1;
|
|
251
|
-
} else {
|
|
252
|
-
if (r[i] === n[i])
|
|
253
|
-
continue;
|
|
254
|
-
return !1;
|
|
255
|
-
}
|
|
256
|
-
else
|
|
257
|
-
return !1;
|
|
258
|
-
return !0;
|
|
259
|
-
}
|
|
260
|
-
try {
|
|
261
|
-
return JSON.stringify(r) === JSON.stringify(n);
|
|
262
|
-
} catch {
|
|
263
|
-
return !1;
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
sortAlpha: (r) => (n, a) => {
|
|
267
|
-
let i = n[r] === void 0 || n[r] === null ? "" : n[r], o = a[r] === void 0 || a[r] === null ? "" : a[r];
|
|
268
|
-
return Array.isArray(n[r]) && (i = n[r][0]), Array.isArray(a[r]) && (o = a[r][0]), i.localeCompare(o);
|
|
269
|
-
},
|
|
270
|
-
isValidUuid: (r) => r ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(r) : !1
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
function st(e, t, r, n = {
|
|
274
|
-
fetchedItemsKey: "data",
|
|
275
|
-
searchKeys: ["id"]
|
|
276
|
-
}) {
|
|
277
|
-
r || (r = "1000");
|
|
278
|
-
const { axiosInstance: a } = le(e.axiosRequestConfig), { i18n: { t: i } } = ne(), { debounce: o } = We(), s = o(async (y) => {
|
|
279
|
-
await oe(y);
|
|
280
|
-
}, 200), l = w(!1), f = w(""), c = w(""), d = w([]), u = w([]), p = w(void 0), _ = m(() => {
|
|
281
|
-
const y = `${e.apiBaseUrl}${g(t)}`;
|
|
282
|
-
return e.app === "konnect" ? y.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? y.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : y;
|
|
283
|
-
}), { isValidUuid: $ } = Ne(), ie = async () => {
|
|
284
|
-
try {
|
|
285
|
-
l.value = !0;
|
|
286
|
-
const { data: y } = await a.get(`${_.value}?size=${r}`);
|
|
287
|
-
y != null && y.next || (p.value = n.fetchedItemsKey in y ? y[n.fetchedItemsKey] : []), u.value = n.fetchedItemsKey in y ? y[n.fetchedItemsKey] : [], d.value = u.value;
|
|
288
|
-
} catch {
|
|
289
|
-
d.value = [], f.value = i("debouncedFilter.errors.fetch");
|
|
290
|
-
} finally {
|
|
291
|
-
l.value = !1;
|
|
292
|
-
}
|
|
293
|
-
}, B = w(""), oe = async (y) => {
|
|
294
|
-
var Y, G, I;
|
|
295
|
-
if (B.value !== y) {
|
|
296
|
-
if (B.value = y ?? "", !y) {
|
|
297
|
-
d.value = u.value;
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
if (p.value === void 0)
|
|
301
|
-
try {
|
|
302
|
-
if (l.value = !0, f.value = "", c.value = "", e.app === "konnect") {
|
|
303
|
-
const v = `${_.value}/${y}`, { data: S } = await a.get(`${v}?size=${r}`);
|
|
304
|
-
n.fetchedItemsKey in S ? d.value = S[n.fetchedItemsKey] : S != null && S[n.exactMatchKey ?? "id"] ? d.value = [S] : d.value = [];
|
|
305
|
-
} else {
|
|
306
|
-
const v = [];
|
|
307
|
-
$(y) && n.searchKeys.includes("id") ? v.push((async () => {
|
|
308
|
-
const { data: x } = await a.get(`${_.value}/${y}`);
|
|
309
|
-
return [x[n.fetchedItemsKey] ?? x];
|
|
310
|
-
})()) : v.push(
|
|
311
|
-
...n.searchKeys.filter((x) => x !== "id").map(async (x) => {
|
|
312
|
-
const { data: E } = await a.get(`${_.value}?${x}=${y}`);
|
|
313
|
-
return E[n.fetchedItemsKey];
|
|
314
|
-
})
|
|
315
|
-
);
|
|
316
|
-
const S = await Promise.all(v), j = /* @__PURE__ */ new Set();
|
|
317
|
-
d.value = [], (Y = S == null ? void 0 : S.forEach) == null || Y.call(S, (x) => {
|
|
318
|
-
var E;
|
|
319
|
-
(E = x == null ? void 0 : x.forEach) == null || E.call(x, (L) => {
|
|
320
|
-
j.has(L.id) || (j.add(L.id), d.value.push(L));
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
} catch (v) {
|
|
325
|
-
((G = v == null ? void 0 : v.response) == null ? void 0 : G.status) === 404 ? c.value = i("debouncedFilter.errors.invalid") : (d.value = [], f.value = i("debouncedFilter.errors.fetch"));
|
|
326
|
-
} finally {
|
|
327
|
-
l.value = !1;
|
|
328
|
-
}
|
|
329
|
-
else
|
|
330
|
-
l.value = !0, c.value = "", d.value = (I = p.value) == null ? void 0 : I.filter((v) => {
|
|
331
|
-
var S;
|
|
332
|
-
let j = !1;
|
|
333
|
-
for (const x of n.searchKeys) {
|
|
334
|
-
const E = typeof v[x] == "string" ? (S = v[x]) == null ? void 0 : S.toLowerCase() : v[x];
|
|
335
|
-
E != null && E.includes(y.toLowerCase()) && (j = !0);
|
|
336
|
-
}
|
|
337
|
-
return j;
|
|
338
|
-
}), (!d.value || !d.value.length) && (c.value = i("debouncedFilter.errors.invalid")), l.value = !1;
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
return {
|
|
342
|
-
loading: l,
|
|
343
|
-
error: f,
|
|
344
|
-
validationError: c,
|
|
345
|
-
results: d,
|
|
346
|
-
allRecords: p,
|
|
347
|
-
loadItems: ie,
|
|
348
|
-
debouncedQueryChange: s
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
function lt(e, t) {
|
|
352
|
-
const r = g(t), n = m(
|
|
353
|
-
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r)
|
|
354
|
-
);
|
|
355
|
-
return n.value.search = "", (a) => `${n.value.href}/${a}`;
|
|
356
|
-
}
|
|
357
|
-
function ut() {
|
|
358
|
-
const { i18n: { t: e } } = ne();
|
|
359
|
-
return {
|
|
360
|
-
getMessageFromError: (t) => {
|
|
361
|
-
var r, n, a, i;
|
|
362
|
-
if (!t)
|
|
363
|
-
return e("errors.unexpected");
|
|
364
|
-
if (((r = t == null ? void 0 : t.response) == null ? void 0 : r.status) === 401)
|
|
365
|
-
return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."), "";
|
|
366
|
-
if ((n = t == null ? void 0 : t.response) != null && n.data) {
|
|
367
|
-
if (t.response.data.detail)
|
|
368
|
-
return t.response.data.detail;
|
|
369
|
-
if ((a = t.response.data.details) != null && a.length)
|
|
370
|
-
return t.response.data.details.map((o) => {
|
|
371
|
-
let s = e("errors.unexpected");
|
|
372
|
-
return o.messages && typeof o.messages == "object" && o.messages.length && (s = o.messages.join(", ")), o.field ? `${o.field} - ${s}` : s;
|
|
373
|
-
}).join("; ");
|
|
374
|
-
if (t.response.data.message) {
|
|
375
|
-
const { message: o } = t.response.data;
|
|
376
|
-
return Array.isArray(o) ? (i = o[0]) != null && i.constraints ? Object.values(o[0].constraints)[0] : o[0] : o;
|
|
377
|
-
}
|
|
378
|
-
if (typeof t.response.data == "string")
|
|
379
|
-
return t.response.data;
|
|
380
|
-
if (typeof t.response.data == "object")
|
|
381
|
-
return Object.keys(t.response.data).map((o) => `${o} ${t.response.data[o]}`).join(", ");
|
|
382
|
-
}
|
|
383
|
-
return t.message || e("errors.unexpected");
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
function ct(e) {
|
|
388
|
-
const t = window.location.origin, r = t.endsWith("/") ? t : `${t}/`;
|
|
389
|
-
try {
|
|
390
|
-
const n = e.join("/"), a = `${r}${n}`, i = e.some((o) => o.trim() === "");
|
|
391
|
-
if (/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(a) && !i && new URL(a))
|
|
392
|
-
return `${r}${n}`;
|
|
393
|
-
throw new Error("Invalid url");
|
|
394
|
-
} catch (n) {
|
|
395
|
-
return console.warn("Failed to build valid URL:", n), "";
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
function Ie(e, t) {
|
|
399
|
-
const r = w(g(e)), n = w(g(t)), a = m(
|
|
400
|
-
() => !!(r.value.app === "konnect" || r.value.isExactMatch)
|
|
401
|
-
), i = m(
|
|
402
|
-
() => n.value.startsWith("/") ? new URL(`${window.location.origin}${n.value}`) : new URL(n.value)
|
|
403
|
-
);
|
|
404
|
-
return (o) => {
|
|
405
|
-
const { page: s, pageSize: l, offset: f, sortColumnKey: c, sortColumnOrder: d, query: u } = o;
|
|
406
|
-
try {
|
|
407
|
-
let p = new URL(i.value.href);
|
|
408
|
-
return a.value && u ? (p.search = "", p = r.value.isExactMatch ? new URL(`${p.href}/${u}/`) : new URL(`${p.href}?filter[name][contains]=${u}`)) : (a.value || new URLSearchParams(u).forEach((_, $) => {
|
|
409
|
-
p.searchParams.append($, _);
|
|
410
|
-
}), c && p.searchParams.append("sort_by", c), d === "desc" && p.searchParams.append("sort_desc", "1"), p.searchParams.append("size", String(l))), f && s !== 1 && p.searchParams.append("offset", String(f)), p.href;
|
|
411
|
-
} catch (p) {
|
|
412
|
-
return console.error("RouteList(fetcher)", p), n.value;
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
}
|
|
416
|
-
function dt(e, t, r) {
|
|
417
|
-
const n = g(t), { axiosInstance: a } = le(e.axiosRequestConfig), i = Ie(e, n), o = w({
|
|
418
|
-
status: K.Idle
|
|
419
|
-
});
|
|
420
|
-
return { fetcher: async (s) => {
|
|
421
|
-
var l;
|
|
422
|
-
const f = R(r) || "data";
|
|
423
|
-
try {
|
|
424
|
-
o.value = { status: K.Loading };
|
|
425
|
-
let c = i(s);
|
|
426
|
-
c.includes("filter[name]") && (c = `${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);
|
|
427
|
-
const d = await a.get(c);
|
|
428
|
-
if (d.status >= 400)
|
|
429
|
-
throw d;
|
|
430
|
-
const u = d.data, p = f && f.replace(/[^\w-_]/gi, "");
|
|
431
|
-
let _;
|
|
432
|
-
u[p] ? _ = Array.isArray(u[p]) ? u[p] : [u[p]] : Array.isArray(u) ? _ = u : _ = Object.keys(u).length ? [u] : [];
|
|
433
|
-
const $ = {
|
|
434
|
-
data: _,
|
|
435
|
-
total: _.length,
|
|
436
|
-
...u.offset ? {
|
|
437
|
-
pagination: {
|
|
438
|
-
offset: u.offset
|
|
439
|
-
}
|
|
440
|
-
} : null
|
|
441
|
-
};
|
|
442
|
-
return o.value = {
|
|
443
|
-
status: K.Idle,
|
|
444
|
-
response: $
|
|
445
|
-
}, $;
|
|
446
|
-
} catch (c) {
|
|
447
|
-
const d = {
|
|
448
|
-
data: [],
|
|
449
|
-
total: 0
|
|
450
|
-
};
|
|
451
|
-
return s.query && (((l = c.response) == null ? void 0 : l.status) === 404 || c.status === 404) ? (o.value = {
|
|
452
|
-
status: K.NoResults,
|
|
453
|
-
response: d,
|
|
454
|
-
error: c.response ? c : { response: c }
|
|
455
|
-
}, d) : (o.value = {
|
|
456
|
-
status: K.Error,
|
|
457
|
-
response: d,
|
|
458
|
-
error: c.response ? c : { response: c }
|
|
459
|
-
}, d);
|
|
460
|
-
}
|
|
461
|
-
}, fetcherState: o };
|
|
462
|
-
}
|
|
463
|
-
function pt() {
|
|
464
|
-
const e = (r, n = "_") => r ? r.split(n).map((a) => a.toLowerCase() === "id" ? a.toUpperCase() : a.charAt(0).toUpperCase() + a.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
465
|
-
return {
|
|
466
|
-
capitalize: (r) => r ? r.replace(t, (n) => n.toUpperCase()) : "",
|
|
467
|
-
convertKeyToTitle: e
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
const Te = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ge = (e) => {
|
|
471
|
-
if (typeof e != "string")
|
|
472
|
-
throw new TypeError("Invalid argument expected string");
|
|
473
|
-
const t = e.match(Te);
|
|
474
|
-
if (!t)
|
|
475
|
-
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
476
|
-
return t.shift(), t;
|
|
477
|
-
}, he = (e) => e === "*" || e === "x" || e === "X", ve = (e) => {
|
|
478
|
-
const t = parseInt(e, 10);
|
|
479
|
-
return isNaN(t) ? e : t;
|
|
480
|
-
}, ft = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], gt = (e, t) => {
|
|
481
|
-
if (he(e) || he(t))
|
|
482
|
-
return 0;
|
|
483
|
-
const [r, n] = ft(ve(e), ve(t));
|
|
484
|
-
return r > n ? 1 : r < n ? -1 : 0;
|
|
485
|
-
}, me = (e, t) => {
|
|
486
|
-
for (let r = 0; r < Math.max(e.length, t.length); r++) {
|
|
487
|
-
const n = gt(e[r] || "0", t[r] || "0");
|
|
488
|
-
if (n !== 0)
|
|
489
|
-
return n;
|
|
490
|
-
}
|
|
491
|
-
return 0;
|
|
492
|
-
}, ht = (e, t) => {
|
|
493
|
-
const r = ge(e), n = ge(t), a = r.pop(), i = n.pop(), o = me(r, n);
|
|
494
|
-
return o !== 0 ? o : a && i ? me(a.split("."), i.split(".")) : a || i ? a ? -1 : 1 : 0;
|
|
495
|
-
}, ye = (e, t, r) => {
|
|
496
|
-
vt(r);
|
|
497
|
-
const n = ht(e, t);
|
|
498
|
-
return Ae[r].includes(n);
|
|
499
|
-
}, Ae = {
|
|
500
|
-
">": [1],
|
|
501
|
-
">=": [0, 1],
|
|
502
|
-
"=": [0],
|
|
503
|
-
"<=": [-1, 0],
|
|
504
|
-
"<": [-1],
|
|
505
|
-
"!=": [-1, 1]
|
|
506
|
-
}, be = Object.keys(Ae), vt = (e) => {
|
|
507
|
-
if (typeof e != "string")
|
|
508
|
-
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
509
|
-
if (be.indexOf(e) === -1)
|
|
510
|
-
throw new Error(`Invalid operator, expected one of ${be.join("|")}`);
|
|
511
|
-
}, mt = (e) => typeof e == "string" && /^[v\d]/.test(e) && Te.test(e);
|
|
512
|
-
function yt(e) {
|
|
513
|
-
const { gatewayInfo: t, supportedRange: r } = e;
|
|
514
|
-
if (!t)
|
|
515
|
-
return !0;
|
|
516
|
-
const { edition: n, version: a } = t;
|
|
517
|
-
if (!mt(a))
|
|
518
|
-
return console.error("Invalid version"), !1;
|
|
519
|
-
const i = r[n];
|
|
520
|
-
if (!i)
|
|
521
|
-
return !1;
|
|
522
|
-
const [o, s] = i;
|
|
523
|
-
return !(o && ye(a, o, "<") || s && ye(a, s, ">"));
|
|
524
|
-
}
|
|
525
|
-
function bt(e) {
|
|
526
|
-
const t = w(0), r = w(0), n = w(!1);
|
|
527
|
-
return ke(e, (a) => {
|
|
528
|
-
a && !n.value && (t.value = a.offsetWidth, r.value = a.scrollWidth, n.value = !0);
|
|
529
|
-
}), {
|
|
530
|
-
isTruncated: m(() => t.value < r.value)
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
function wt() {
|
|
534
|
-
const { i18n: { t: e } } = ne();
|
|
535
|
-
return {
|
|
536
|
-
utf8Name: (t) => /^[\p{N}\p{L}.\-_~]*$/u.test(t) ? "" : e("validationErrors.utf8Name")
|
|
537
|
-
};
|
|
538
|
-
}
|
|
539
|
-
const _t = {
|
|
540
|
-
useAxios: le,
|
|
541
|
-
useDebouncedFilter: st,
|
|
542
|
-
useDeleteUrlBuilder: lt,
|
|
543
|
-
useErrors: ut,
|
|
544
|
-
useExternalLinkCreator: ct,
|
|
545
|
-
useFetcher: dt,
|
|
546
|
-
useFetchUrlBuilder: Ie,
|
|
547
|
-
useHelpers: Ne,
|
|
548
|
-
useStringHelpers: pt,
|
|
549
|
-
useI18n: ne,
|
|
550
|
-
useGatewayFeatureSupported: yt,
|
|
551
|
-
useTruncationDetector: bt,
|
|
552
|
-
useValidators: wt
|
|
553
|
-
};
|
|
554
|
-
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
555
|
-
function $e(e) {
|
|
556
|
-
return typeof e > "u" || e === null;
|
|
557
|
-
}
|
|
558
|
-
function kt(e) {
|
|
559
|
-
return typeof e == "object" && e !== null;
|
|
560
|
-
}
|
|
561
|
-
function xt(e) {
|
|
562
|
-
return Array.isArray(e) ? e : $e(e) ? [] : [e];
|
|
563
|
-
}
|
|
564
|
-
function Ct(e, t) {
|
|
565
|
-
var r, n, a, i;
|
|
566
|
-
if (t)
|
|
567
|
-
for (i = Object.keys(t), r = 0, n = i.length; r < n; r += 1)
|
|
568
|
-
a = i[r], e[a] = t[a];
|
|
569
|
-
return e;
|
|
570
|
-
}
|
|
571
|
-
function Lt(e, t) {
|
|
572
|
-
var r = "", n;
|
|
573
|
-
for (n = 0; n < t; n += 1)
|
|
574
|
-
r += e;
|
|
575
|
-
return r;
|
|
576
|
-
}
|
|
577
|
-
function St(e) {
|
|
578
|
-
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
579
|
-
}
|
|
580
|
-
var Nt = $e, It = kt, Tt = xt, At = Lt, $t = St, Et = Ct, ue = {
|
|
581
|
-
isNothing: Nt,
|
|
582
|
-
isObject: It,
|
|
583
|
-
toArray: Tt,
|
|
584
|
-
repeat: At,
|
|
585
|
-
isNegativeZero: $t,
|
|
586
|
-
extend: Et
|
|
587
|
-
};
|
|
588
|
-
function Ee(e, t) {
|
|
589
|
-
var r = "", n = e.reason || "(unknown reason)";
|
|
590
|
-
return e.mark ? (e.mark.name && (r += 'in "' + e.mark.name + '" '), r += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (r += `
|
|
591
|
-
|
|
592
|
-
` + e.mark.snippet), n + " " + r) : n;
|
|
593
|
-
}
|
|
594
|
-
function W(e, t) {
|
|
595
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = Ee(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
596
|
-
}
|
|
597
|
-
W.prototype = Object.create(Error.prototype);
|
|
598
|
-
W.prototype.constructor = W;
|
|
599
|
-
W.prototype.toString = function(e) {
|
|
600
|
-
return this.name + ": " + Ee(this, e);
|
|
601
|
-
};
|
|
602
|
-
var z = W, Ot = [
|
|
603
|
-
"kind",
|
|
604
|
-
"multi",
|
|
605
|
-
"resolve",
|
|
606
|
-
"construct",
|
|
607
|
-
"instanceOf",
|
|
608
|
-
"predicate",
|
|
609
|
-
"represent",
|
|
610
|
-
"representName",
|
|
611
|
-
"defaultStyle",
|
|
612
|
-
"styleAliases"
|
|
613
|
-
], jt = [
|
|
614
|
-
"scalar",
|
|
615
|
-
"sequence",
|
|
616
|
-
"mapping"
|
|
617
|
-
];
|
|
618
|
-
function qt(e) {
|
|
619
|
-
var t = {};
|
|
620
|
-
return e !== null && Object.keys(e).forEach(function(r) {
|
|
621
|
-
e[r].forEach(function(n) {
|
|
622
|
-
t[String(n)] = r;
|
|
623
|
-
});
|
|
624
|
-
}), t;
|
|
625
|
-
}
|
|
626
|
-
function Mt(e, t) {
|
|
627
|
-
if (t = t || {}, Object.keys(t).forEach(function(r) {
|
|
628
|
-
if (Ot.indexOf(r) === -1)
|
|
629
|
-
throw new z('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
|
|
630
|
-
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
631
|
-
return !0;
|
|
632
|
-
}, this.construct = t.construct || function(r) {
|
|
633
|
-
return r;
|
|
634
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = qt(t.styleAliases || null), jt.indexOf(this.kind) === -1)
|
|
635
|
-
throw new z('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
636
|
-
}
|
|
637
|
-
var C = Mt;
|
|
638
|
-
function we(e, t) {
|
|
639
|
-
var r = [];
|
|
640
|
-
return e[t].forEach(function(n) {
|
|
641
|
-
var a = r.length;
|
|
642
|
-
r.forEach(function(i, o) {
|
|
643
|
-
i.tag === n.tag && i.kind === n.kind && i.multi === n.multi && (a = o);
|
|
644
|
-
}), r[a] = n;
|
|
645
|
-
}), r;
|
|
646
|
-
}
|
|
647
|
-
function zt() {
|
|
648
|
-
var e = {
|
|
649
|
-
scalar: {},
|
|
650
|
-
sequence: {},
|
|
651
|
-
mapping: {},
|
|
652
|
-
fallback: {},
|
|
653
|
-
multi: {
|
|
654
|
-
scalar: [],
|
|
655
|
-
sequence: [],
|
|
656
|
-
mapping: [],
|
|
657
|
-
fallback: []
|
|
658
|
-
}
|
|
659
|
-
}, t, r;
|
|
660
|
-
function n(a) {
|
|
661
|
-
a.multi ? (e.multi[a.kind].push(a), e.multi.fallback.push(a)) : e[a.kind][a.tag] = e.fallback[a.tag] = a;
|
|
662
|
-
}
|
|
663
|
-
for (t = 0, r = arguments.length; t < r; t += 1)
|
|
664
|
-
arguments[t].forEach(n);
|
|
665
|
-
return e;
|
|
666
|
-
}
|
|
667
|
-
function se(e) {
|
|
668
|
-
return this.extend(e);
|
|
669
|
-
}
|
|
670
|
-
se.prototype.extend = function(e) {
|
|
671
|
-
var t = [], r = [];
|
|
672
|
-
if (e instanceof C)
|
|
673
|
-
r.push(e);
|
|
674
|
-
else if (Array.isArray(e))
|
|
675
|
-
r = r.concat(e);
|
|
676
|
-
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
|
|
677
|
-
e.implicit && (t = t.concat(e.implicit)), e.explicit && (r = r.concat(e.explicit));
|
|
678
|
-
else
|
|
679
|
-
throw new z("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
680
|
-
t.forEach(function(a) {
|
|
681
|
-
if (!(a instanceof C))
|
|
682
|
-
throw new z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
683
|
-
if (a.loadKind && a.loadKind !== "scalar")
|
|
684
|
-
throw new z("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
685
|
-
if (a.multi)
|
|
686
|
-
throw new z("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
687
|
-
}), r.forEach(function(a) {
|
|
688
|
-
if (!(a instanceof C))
|
|
689
|
-
throw new z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
690
|
-
});
|
|
691
|
-
var n = Object.create(se.prototype);
|
|
692
|
-
return n.implicit = (this.implicit || []).concat(t), n.explicit = (this.explicit || []).concat(r), n.compiledImplicit = we(n, "implicit"), n.compiledExplicit = we(n, "explicit"), n.compiledTypeMap = zt(n.compiledImplicit, n.compiledExplicit), n;
|
|
693
|
-
};
|
|
694
|
-
var Ft = se, Ut = new C("tag:yaml.org,2002:str", {
|
|
695
|
-
kind: "scalar",
|
|
696
|
-
construct: function(e) {
|
|
697
|
-
return e !== null ? e : "";
|
|
698
|
-
}
|
|
699
|
-
}), Bt = new C("tag:yaml.org,2002:seq", {
|
|
700
|
-
kind: "sequence",
|
|
701
|
-
construct: function(e) {
|
|
702
|
-
return e !== null ? e : [];
|
|
703
|
-
}
|
|
704
|
-
}), Pt = new C("tag:yaml.org,2002:map", {
|
|
705
|
-
kind: "mapping",
|
|
706
|
-
construct: function(e) {
|
|
707
|
-
return e !== null ? e : {};
|
|
708
|
-
}
|
|
709
|
-
}), Dt = new Ft({
|
|
710
|
-
explicit: [
|
|
711
|
-
Ut,
|
|
712
|
-
Bt,
|
|
713
|
-
Pt
|
|
714
|
-
]
|
|
715
|
-
});
|
|
716
|
-
function Kt(e) {
|
|
717
|
-
if (e === null) return !0;
|
|
718
|
-
var t = e.length;
|
|
719
|
-
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
720
|
-
}
|
|
721
|
-
function Rt() {
|
|
722
|
-
return null;
|
|
723
|
-
}
|
|
724
|
-
function Vt(e) {
|
|
725
|
-
return e === null;
|
|
726
|
-
}
|
|
727
|
-
var Ht = new C("tag:yaml.org,2002:null", {
|
|
728
|
-
kind: "scalar",
|
|
729
|
-
resolve: Kt,
|
|
730
|
-
construct: Rt,
|
|
731
|
-
predicate: Vt,
|
|
732
|
-
represent: {
|
|
733
|
-
canonical: function() {
|
|
734
|
-
return "~";
|
|
735
|
-
},
|
|
736
|
-
lowercase: function() {
|
|
737
|
-
return "null";
|
|
738
|
-
},
|
|
739
|
-
uppercase: function() {
|
|
740
|
-
return "NULL";
|
|
741
|
-
},
|
|
742
|
-
camelcase: function() {
|
|
743
|
-
return "Null";
|
|
744
|
-
},
|
|
745
|
-
empty: function() {
|
|
746
|
-
return "";
|
|
747
|
-
}
|
|
748
|
-
},
|
|
749
|
-
defaultStyle: "lowercase"
|
|
750
|
-
});
|
|
751
|
-
function Yt(e) {
|
|
752
|
-
if (e === null) return !1;
|
|
753
|
-
var t = e.length;
|
|
754
|
-
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
755
|
-
}
|
|
756
|
-
function Zt(e) {
|
|
757
|
-
return e === "true" || e === "True" || e === "TRUE";
|
|
758
|
-
}
|
|
759
|
-
function Wt(e) {
|
|
760
|
-
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
761
|
-
}
|
|
762
|
-
var Gt = new C("tag:yaml.org,2002:bool", {
|
|
763
|
-
kind: "scalar",
|
|
764
|
-
resolve: Yt,
|
|
765
|
-
construct: Zt,
|
|
766
|
-
predicate: Wt,
|
|
767
|
-
represent: {
|
|
768
|
-
lowercase: function(e) {
|
|
769
|
-
return e ? "true" : "false";
|
|
770
|
-
},
|
|
771
|
-
uppercase: function(e) {
|
|
772
|
-
return e ? "TRUE" : "FALSE";
|
|
773
|
-
},
|
|
774
|
-
camelcase: function(e) {
|
|
775
|
-
return e ? "True" : "False";
|
|
776
|
-
}
|
|
777
|
-
},
|
|
778
|
-
defaultStyle: "lowercase"
|
|
779
|
-
});
|
|
780
|
-
function Qt(e) {
|
|
781
|
-
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
782
|
-
}
|
|
783
|
-
function Jt(e) {
|
|
784
|
-
return 48 <= e && e <= 55;
|
|
785
|
-
}
|
|
786
|
-
function Xt(e) {
|
|
787
|
-
return 48 <= e && e <= 57;
|
|
788
|
-
}
|
|
789
|
-
function er(e) {
|
|
790
|
-
if (e === null) return !1;
|
|
791
|
-
var t = e.length, r = 0, n = !1, a;
|
|
792
|
-
if (!t) return !1;
|
|
793
|
-
if (a = e[r], (a === "-" || a === "+") && (a = e[++r]), a === "0") {
|
|
794
|
-
if (r + 1 === t) return !0;
|
|
795
|
-
if (a = e[++r], a === "b") {
|
|
796
|
-
for (r++; r < t; r++)
|
|
797
|
-
if (a = e[r], a !== "_") {
|
|
798
|
-
if (a !== "0" && a !== "1") return !1;
|
|
799
|
-
n = !0;
|
|
800
|
-
}
|
|
801
|
-
return n && a !== "_";
|
|
802
|
-
}
|
|
803
|
-
if (a === "x") {
|
|
804
|
-
for (r++; r < t; r++)
|
|
805
|
-
if (a = e[r], a !== "_") {
|
|
806
|
-
if (!Qt(e.charCodeAt(r))) return !1;
|
|
807
|
-
n = !0;
|
|
808
|
-
}
|
|
809
|
-
return n && a !== "_";
|
|
810
|
-
}
|
|
811
|
-
if (a === "o") {
|
|
812
|
-
for (r++; r < t; r++)
|
|
813
|
-
if (a = e[r], a !== "_") {
|
|
814
|
-
if (!Jt(e.charCodeAt(r))) return !1;
|
|
815
|
-
n = !0;
|
|
816
|
-
}
|
|
817
|
-
return n && a !== "_";
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
if (a === "_") return !1;
|
|
821
|
-
for (; r < t; r++)
|
|
822
|
-
if (a = e[r], a !== "_") {
|
|
823
|
-
if (!Xt(e.charCodeAt(r)))
|
|
824
|
-
return !1;
|
|
825
|
-
n = !0;
|
|
826
|
-
}
|
|
827
|
-
return !(!n || a === "_");
|
|
828
|
-
}
|
|
829
|
-
function tr(e) {
|
|
830
|
-
var t = e, r = 1, n;
|
|
831
|
-
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), n = t[0], (n === "-" || n === "+") && (n === "-" && (r = -1), t = t.slice(1), n = t[0]), t === "0") return 0;
|
|
832
|
-
if (n === "0") {
|
|
833
|
-
if (t[1] === "b") return r * parseInt(t.slice(2), 2);
|
|
834
|
-
if (t[1] === "x") return r * parseInt(t.slice(2), 16);
|
|
835
|
-
if (t[1] === "o") return r * parseInt(t.slice(2), 8);
|
|
836
|
-
}
|
|
837
|
-
return r * parseInt(t, 10);
|
|
838
|
-
}
|
|
839
|
-
function rr(e) {
|
|
840
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ue.isNegativeZero(e);
|
|
841
|
-
}
|
|
842
|
-
var nr = new C("tag:yaml.org,2002:int", {
|
|
843
|
-
kind: "scalar",
|
|
844
|
-
resolve: er,
|
|
845
|
-
construct: tr,
|
|
846
|
-
predicate: rr,
|
|
847
|
-
represent: {
|
|
848
|
-
binary: function(e) {
|
|
849
|
-
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
850
|
-
},
|
|
851
|
-
octal: function(e) {
|
|
852
|
-
return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
|
|
853
|
-
},
|
|
854
|
-
decimal: function(e) {
|
|
855
|
-
return e.toString(10);
|
|
856
|
-
},
|
|
857
|
-
/* eslint-disable max-len */
|
|
858
|
-
hexadecimal: function(e) {
|
|
859
|
-
return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
|
|
860
|
-
}
|
|
861
|
-
},
|
|
862
|
-
defaultStyle: "decimal",
|
|
863
|
-
styleAliases: {
|
|
864
|
-
binary: [2, "bin"],
|
|
865
|
-
octal: [8, "oct"],
|
|
866
|
-
decimal: [10, "dec"],
|
|
867
|
-
hexadecimal: [16, "hex"]
|
|
868
|
-
}
|
|
869
|
-
}), ar = new RegExp(
|
|
870
|
-
// 2.5e4, 2.5 and integers
|
|
871
|
-
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
872
|
-
);
|
|
873
|
-
function ir(e) {
|
|
874
|
-
return !(e === null || !ar.test(e) || // Quick hack to not allow integers end with `_`
|
|
875
|
-
// Probably should update regexp & check speed
|
|
876
|
-
e[e.length - 1] === "_");
|
|
877
|
-
}
|
|
878
|
-
function or(e) {
|
|
879
|
-
var t, r;
|
|
880
|
-
return t = e.replace(/_/g, "").toLowerCase(), r = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : r * parseFloat(t, 10);
|
|
881
|
-
}
|
|
882
|
-
var sr = /^[-+]?[0-9]+e/;
|
|
883
|
-
function lr(e, t) {
|
|
884
|
-
var r;
|
|
885
|
-
if (isNaN(e))
|
|
886
|
-
switch (t) {
|
|
887
|
-
case "lowercase":
|
|
888
|
-
return ".nan";
|
|
889
|
-
case "uppercase":
|
|
890
|
-
return ".NAN";
|
|
891
|
-
case "camelcase":
|
|
892
|
-
return ".NaN";
|
|
893
|
-
}
|
|
894
|
-
else if (Number.POSITIVE_INFINITY === e)
|
|
895
|
-
switch (t) {
|
|
896
|
-
case "lowercase":
|
|
897
|
-
return ".inf";
|
|
898
|
-
case "uppercase":
|
|
899
|
-
return ".INF";
|
|
900
|
-
case "camelcase":
|
|
901
|
-
return ".Inf";
|
|
902
|
-
}
|
|
903
|
-
else if (Number.NEGATIVE_INFINITY === e)
|
|
904
|
-
switch (t) {
|
|
905
|
-
case "lowercase":
|
|
906
|
-
return "-.inf";
|
|
907
|
-
case "uppercase":
|
|
908
|
-
return "-.INF";
|
|
909
|
-
case "camelcase":
|
|
910
|
-
return "-.Inf";
|
|
911
|
-
}
|
|
912
|
-
else if (ue.isNegativeZero(e))
|
|
913
|
-
return "-0.0";
|
|
914
|
-
return r = e.toString(10), sr.test(r) ? r.replace("e", ".e") : r;
|
|
915
|
-
}
|
|
916
|
-
function ur(e) {
|
|
917
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ue.isNegativeZero(e));
|
|
918
|
-
}
|
|
919
|
-
var cr = new C("tag:yaml.org,2002:float", {
|
|
920
|
-
kind: "scalar",
|
|
921
|
-
resolve: ir,
|
|
922
|
-
construct: or,
|
|
923
|
-
predicate: ur,
|
|
924
|
-
represent: lr,
|
|
925
|
-
defaultStyle: "lowercase"
|
|
926
|
-
}), dr = Dt.extend({
|
|
927
|
-
implicit: [
|
|
928
|
-
Ht,
|
|
929
|
-
Gt,
|
|
930
|
-
nr,
|
|
931
|
-
cr
|
|
932
|
-
]
|
|
933
|
-
}), pr = dr, Oe = new RegExp(
|
|
934
|
-
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
935
|
-
), je = new RegExp(
|
|
936
|
-
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
937
|
-
);
|
|
938
|
-
function fr(e) {
|
|
939
|
-
return e === null ? !1 : Oe.exec(e) !== null || je.exec(e) !== null;
|
|
940
|
-
}
|
|
941
|
-
function gr(e) {
|
|
942
|
-
var t, r, n, a, i, o, s, l = 0, f = null, c, d, u;
|
|
943
|
-
if (t = Oe.exec(e), t === null && (t = je.exec(e)), t === null) throw new Error("Date resolve error");
|
|
944
|
-
if (r = +t[1], n = +t[2] - 1, a = +t[3], !t[4])
|
|
945
|
-
return new Date(Date.UTC(r, n, a));
|
|
946
|
-
if (i = +t[4], o = +t[5], s = +t[6], t[7]) {
|
|
947
|
-
for (l = t[7].slice(0, 3); l.length < 3; )
|
|
948
|
-
l += "0";
|
|
949
|
-
l = +l;
|
|
950
|
-
}
|
|
951
|
-
return t[9] && (c = +t[10], d = +(t[11] || 0), f = (c * 60 + d) * 6e4, t[9] === "-" && (f = -f)), u = new Date(Date.UTC(r, n, a, i, o, s, l)), f && u.setTime(u.getTime() - f), u;
|
|
952
|
-
}
|
|
953
|
-
function hr(e) {
|
|
954
|
-
return e.toISOString();
|
|
955
|
-
}
|
|
956
|
-
var vr = new C("tag:yaml.org,2002:timestamp", {
|
|
957
|
-
kind: "scalar",
|
|
958
|
-
resolve: fr,
|
|
959
|
-
construct: gr,
|
|
960
|
-
instanceOf: Date,
|
|
961
|
-
represent: hr
|
|
962
|
-
});
|
|
963
|
-
function mr(e) {
|
|
964
|
-
return e === "<<" || e === null;
|
|
965
|
-
}
|
|
966
|
-
var yr = new C("tag:yaml.org,2002:merge", {
|
|
967
|
-
kind: "scalar",
|
|
968
|
-
resolve: mr
|
|
969
|
-
}), ce = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
970
|
-
\r`;
|
|
971
|
-
function br(e) {
|
|
972
|
-
if (e === null) return !1;
|
|
973
|
-
var t, r, n = 0, a = e.length, i = ce;
|
|
974
|
-
for (r = 0; r < a; r++)
|
|
975
|
-
if (t = i.indexOf(e.charAt(r)), !(t > 64)) {
|
|
976
|
-
if (t < 0) return !1;
|
|
977
|
-
n += 6;
|
|
978
|
-
}
|
|
979
|
-
return n % 8 === 0;
|
|
980
|
-
}
|
|
981
|
-
function wr(e) {
|
|
982
|
-
var t, r, n = e.replace(/[\r\n=]/g, ""), a = n.length, i = ce, o = 0, s = [];
|
|
983
|
-
for (t = 0; t < a; t++)
|
|
984
|
-
t % 4 === 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | i.indexOf(n.charAt(t));
|
|
985
|
-
return r = a % 4 * 6, r === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : r === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : r === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
|
|
986
|
-
}
|
|
987
|
-
function _r(e) {
|
|
988
|
-
var t = "", r = 0, n, a, i = e.length, o = ce;
|
|
989
|
-
for (n = 0; n < i; n++)
|
|
990
|
-
n % 3 === 0 && n && (t += o[r >> 18 & 63], t += o[r >> 12 & 63], t += o[r >> 6 & 63], t += o[r & 63]), r = (r << 8) + e[n];
|
|
991
|
-
return a = i % 3, a === 0 ? (t += o[r >> 18 & 63], t += o[r >> 12 & 63], t += o[r >> 6 & 63], t += o[r & 63]) : a === 2 ? (t += o[r >> 10 & 63], t += o[r >> 4 & 63], t += o[r << 2 & 63], t += o[64]) : a === 1 && (t += o[r >> 2 & 63], t += o[r << 4 & 63], t += o[64], t += o[64]), t;
|
|
992
|
-
}
|
|
993
|
-
function kr(e) {
|
|
994
|
-
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
995
|
-
}
|
|
996
|
-
var xr = new C("tag:yaml.org,2002:binary", {
|
|
997
|
-
kind: "scalar",
|
|
998
|
-
resolve: br,
|
|
999
|
-
construct: wr,
|
|
1000
|
-
predicate: kr,
|
|
1001
|
-
represent: _r
|
|
1002
|
-
}), Cr = Object.prototype.hasOwnProperty, Lr = Object.prototype.toString;
|
|
1003
|
-
function Sr(e) {
|
|
1004
|
-
if (e === null) return !0;
|
|
1005
|
-
var t = [], r, n, a, i, o, s = e;
|
|
1006
|
-
for (r = 0, n = s.length; r < n; r += 1) {
|
|
1007
|
-
if (a = s[r], o = !1, Lr.call(a) !== "[object Object]") return !1;
|
|
1008
|
-
for (i in a)
|
|
1009
|
-
if (Cr.call(a, i))
|
|
1010
|
-
if (!o) o = !0;
|
|
1011
|
-
else return !1;
|
|
1012
|
-
if (!o) return !1;
|
|
1013
|
-
if (t.indexOf(i) === -1) t.push(i);
|
|
1014
|
-
else return !1;
|
|
1015
|
-
}
|
|
1016
|
-
return !0;
|
|
1017
|
-
}
|
|
1018
|
-
function Nr(e) {
|
|
1019
|
-
return e !== null ? e : [];
|
|
1020
|
-
}
|
|
1021
|
-
var Ir = new C("tag:yaml.org,2002:omap", {
|
|
1022
|
-
kind: "sequence",
|
|
1023
|
-
resolve: Sr,
|
|
1024
|
-
construct: Nr
|
|
1025
|
-
}), Tr = Object.prototype.toString;
|
|
1026
|
-
function Ar(e) {
|
|
1027
|
-
if (e === null) return !0;
|
|
1028
|
-
var t, r, n, a, i, o = e;
|
|
1029
|
-
for (i = new Array(o.length), t = 0, r = o.length; t < r; t += 1) {
|
|
1030
|
-
if (n = o[t], Tr.call(n) !== "[object Object]" || (a = Object.keys(n), a.length !== 1)) return !1;
|
|
1031
|
-
i[t] = [a[0], n[a[0]]];
|
|
1032
|
-
}
|
|
1033
|
-
return !0;
|
|
1034
|
-
}
|
|
1035
|
-
function $r(e) {
|
|
1036
|
-
if (e === null) return [];
|
|
1037
|
-
var t, r, n, a, i, o = e;
|
|
1038
|
-
for (i = new Array(o.length), t = 0, r = o.length; t < r; t += 1)
|
|
1039
|
-
n = o[t], a = Object.keys(n), i[t] = [a[0], n[a[0]]];
|
|
1040
|
-
return i;
|
|
1041
|
-
}
|
|
1042
|
-
var Er = new C("tag:yaml.org,2002:pairs", {
|
|
1043
|
-
kind: "sequence",
|
|
1044
|
-
resolve: Ar,
|
|
1045
|
-
construct: $r
|
|
1046
|
-
}), Or = Object.prototype.hasOwnProperty;
|
|
1047
|
-
function jr(e) {
|
|
1048
|
-
if (e === null) return !0;
|
|
1049
|
-
var t, r = e;
|
|
1050
|
-
for (t in r)
|
|
1051
|
-
if (Or.call(r, t) && r[t] !== null)
|
|
1052
|
-
return !1;
|
|
1053
|
-
return !0;
|
|
1054
|
-
}
|
|
1055
|
-
function qr(e) {
|
|
1056
|
-
return e !== null ? e : {};
|
|
1057
|
-
}
|
|
1058
|
-
var Mr = new C("tag:yaml.org,2002:set", {
|
|
1059
|
-
kind: "mapping",
|
|
1060
|
-
resolve: jr,
|
|
1061
|
-
construct: qr
|
|
1062
|
-
});
|
|
1063
|
-
pr.extend({
|
|
1064
|
-
implicit: [
|
|
1065
|
-
vr,
|
|
1066
|
-
yr
|
|
1067
|
-
],
|
|
1068
|
-
explicit: [
|
|
1069
|
-
xr,
|
|
1070
|
-
Ir,
|
|
1071
|
-
Er,
|
|
1072
|
-
Mr
|
|
1073
|
-
]
|
|
1074
|
-
});
|
|
1075
|
-
function _e(e) {
|
|
1076
|
-
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1077
|
-
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1078
|
-
}
|
|
1079
|
-
var zr = new Array(256), Fr = new Array(256);
|
|
1080
|
-
for (var D = 0; D < 256; D++)
|
|
1081
|
-
zr[D] = _e(D) ? 1 : 0, Fr[D] = _e(D);
|
|
1082
|
-
const Ur = [];
|
|
1083
|
-
for (let e = 0; e < 256; ++e)
|
|
1084
|
-
Ur.push((e + 256).toString(16).slice(1));
|
|
1085
|
-
typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
1086
|
-
const { useAxios: Rn, useDeleteUrlBuilder: Vn, useErrors: Br, useExternalLinkCreator: Hn, useFetchUrlBuilder: Yn, useFetcher: Zn, useDebouncedFilter: Wn, useStringHelpers: Gn, useHelpers: Qn, useGatewayFeatureSupported: Jn, useTruncationDetector: Xn, useValidators: ea } = _t;
|
|
1087
|
-
var O = /* @__PURE__ */ ((e) => (e.Debug = "debug", e.Info = "info", e.Notice = "notice", e.Warn = "warn", e.Error = "error", e.Critical = "crit", e))(O || {});
|
|
1088
|
-
class Pr {
|
|
1089
|
-
constructor(t) {
|
|
1090
|
-
P(this, "concurrentTokenSet", /* @__PURE__ */ new Set());
|
|
1091
|
-
P(this, "concurrentTokenBorrowQueue", []);
|
|
1092
|
-
for (let r = 0; r < t; ++r)
|
|
1093
|
-
this.concurrentTokenSet.add(Symbol(`token-${r}`));
|
|
69
|
+
var b = /* @__PURE__ */ ((n) => (n.Debug = "debug", n.Info = "info", n.Notice = "notice", n.Warn = "warn", n.Error = "error", n.Critical = "crit", n))(b || {});
|
|
70
|
+
class fe {
|
|
71
|
+
constructor(e) {
|
|
72
|
+
N(this, "concurrentTokenSet", /* @__PURE__ */ new Set());
|
|
73
|
+
N(this, "concurrentTokenBorrowQueue", []);
|
|
74
|
+
for (let t = 0; t < e; ++t)
|
|
75
|
+
this.concurrentTokenSet.add(Symbol(`token-${t}`));
|
|
1094
76
|
}
|
|
1095
77
|
hasAvailableConcurrentToken() {
|
|
1096
78
|
return this.concurrentTokenSet.size > 0;
|
|
1097
79
|
}
|
|
1098
80
|
borrowConcurrentToken() {
|
|
1099
81
|
if (this.concurrentTokenSet.size > 0) {
|
|
1100
|
-
const
|
|
1101
|
-
return this.concurrentTokenSet.delete(
|
|
1102
|
-
this.returnConcurrentToken(
|
|
82
|
+
const e = this.concurrentTokenSet.values().next().value;
|
|
83
|
+
return this.concurrentTokenSet.delete(e), () => {
|
|
84
|
+
this.returnConcurrentToken(e);
|
|
1103
85
|
};
|
|
1104
86
|
}
|
|
1105
87
|
throw new Error("BUG: No available token to borrow");
|
|
1106
88
|
}
|
|
1107
|
-
returnConcurrentToken(
|
|
1108
|
-
if (this.concurrentTokenSet.has(
|
|
89
|
+
returnConcurrentToken(e) {
|
|
90
|
+
if (this.concurrentTokenSet.has(e))
|
|
1109
91
|
throw new Error("Token already returned");
|
|
1110
|
-
const
|
|
1111
|
-
|
|
92
|
+
const t = this.concurrentTokenBorrowQueue.shift();
|
|
93
|
+
t ? t[0](() => this.returnConcurrentToken(e)) : this.concurrentTokenSet.add(e);
|
|
1112
94
|
}
|
|
1113
95
|
async borrowToken() {
|
|
1114
|
-
return this.hasAvailableConcurrentToken() ? this.borrowConcurrentToken() : new Promise((
|
|
1115
|
-
this.concurrentTokenBorrowQueue.push([
|
|
96
|
+
return this.hasAvailableConcurrentToken() ? this.borrowConcurrentToken() : new Promise((e, t) => {
|
|
97
|
+
this.concurrentTokenBorrowQueue.push([e, t]);
|
|
1116
98
|
});
|
|
1117
99
|
}
|
|
1118
|
-
clearWaitingQueue(
|
|
100
|
+
clearWaitingQueue(e) {
|
|
1119
101
|
for (; this.concurrentTokenBorrowQueue.length > 0; ) {
|
|
1120
|
-
const [,
|
|
1121
|
-
|
|
102
|
+
const [, t] = this.concurrentTokenBorrowQueue.shift();
|
|
103
|
+
t(e);
|
|
1122
104
|
}
|
|
1123
105
|
}
|
|
1124
106
|
}
|
|
1125
|
-
class
|
|
1126
|
-
constructor(
|
|
1127
|
-
super(
|
|
107
|
+
class V extends Error {
|
|
108
|
+
constructor(e, t) {
|
|
109
|
+
super(e, t), this.name = "AsyncAbortException";
|
|
1128
110
|
}
|
|
1129
111
|
}
|
|
1130
|
-
class
|
|
1131
|
-
constructor(
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
let
|
|
1135
|
-
this.tokenBucket && (
|
|
112
|
+
class E {
|
|
113
|
+
constructor(e) {
|
|
114
|
+
N(this, "tokenBucket", null);
|
|
115
|
+
N(this, "schedule", async (e) => {
|
|
116
|
+
let t;
|
|
117
|
+
this.tokenBucket && (t = await this.tokenBucket.borrowToken());
|
|
1136
118
|
try {
|
|
1137
|
-
const
|
|
1138
|
-
return
|
|
1139
|
-
} catch (
|
|
1140
|
-
throw
|
|
119
|
+
const o = await e();
|
|
120
|
+
return t == null || t(), o;
|
|
121
|
+
} catch (o) {
|
|
122
|
+
throw t == null || t(), o;
|
|
1141
123
|
}
|
|
1142
124
|
});
|
|
1143
|
-
|
|
1144
|
-
var
|
|
1145
|
-
(
|
|
125
|
+
N(this, "cancelAll", (e, t) => {
|
|
126
|
+
var o;
|
|
127
|
+
(o = this.tokenBucket) == null || o.clearWaitingQueue(new V(e, t));
|
|
1146
128
|
});
|
|
1147
|
-
|
|
129
|
+
e.maxConcurrentAsyncs > 0 && (this.tokenBucket = new fe(e.maxConcurrentAsyncs));
|
|
1148
130
|
}
|
|
1149
131
|
}
|
|
1150
|
-
const
|
|
132
|
+
const be = (n) => n instanceof E ? n : n === null ? new E({ maxConcurrentAsyncs: 0 }) : new E(n), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1151
133
|
__proto__: null,
|
|
1152
|
-
AsyncAbortException:
|
|
1153
|
-
AsyncScheduler:
|
|
1154
|
-
useAsyncScheduler:
|
|
1155
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
],
|
|
1163
|
-
const { i18n:
|
|
1164
|
-
return
|
|
1165
|
-
const
|
|
1166
|
-
return
|
|
1167
|
-
label:
|
|
1168
|
-
value:
|
|
1169
|
-
selected: (
|
|
1170
|
-
disabled:
|
|
134
|
+
AsyncAbortException: V,
|
|
135
|
+
AsyncScheduler: E,
|
|
136
|
+
useAsyncScheduler: be
|
|
137
|
+
}, Symbol.toStringTag, { value: "Module" })), W = [
|
|
138
|
+
b.Debug,
|
|
139
|
+
b.Info,
|
|
140
|
+
b.Notice,
|
|
141
|
+
b.Warn,
|
|
142
|
+
b.Error,
|
|
143
|
+
b.Critical
|
|
144
|
+
], ye = (n) => {
|
|
145
|
+
const { i18n: e } = P();
|
|
146
|
+
return p(() => {
|
|
147
|
+
const t = D(n == null ? void 0 : n.disabled) ?? [];
|
|
148
|
+
return W.map((o) => ({
|
|
149
|
+
label: e.t(`log_level.${o}`),
|
|
150
|
+
value: o,
|
|
151
|
+
selected: (n == null ? void 0 : n.initialSelected) === o,
|
|
152
|
+
disabled: t.includes(o)
|
|
1171
153
|
}));
|
|
1172
154
|
});
|
|
1173
|
-
},
|
|
1174
|
-
const
|
|
1175
|
-
return
|
|
1176
|
-
const
|
|
155
|
+
}, ke = (n) => {
|
|
156
|
+
const e = [b.Debug], { i18n: t } = P();
|
|
157
|
+
return p(() => {
|
|
158
|
+
const o = D(n);
|
|
1177
159
|
return {
|
|
1178
|
-
explanation:
|
|
1179
|
-
warning:
|
|
160
|
+
explanation: t.t(`modal.log_level_explanation.${o}`),
|
|
161
|
+
warning: e.includes(o) ? t.t("modal.log_level_disk_space_warning") : void 0
|
|
1180
162
|
};
|
|
1181
163
|
});
|
|
1182
|
-
},
|
|
1183
|
-
const { i18n:
|
|
1184
|
-
return
|
|
1185
|
-
const
|
|
1186
|
-
if (isNaN(
|
|
164
|
+
}, we = (n) => {
|
|
165
|
+
const { i18n: e } = P();
|
|
166
|
+
return p(() => {
|
|
167
|
+
const t = D(n);
|
|
168
|
+
if (isNaN(t) || t <= 0)
|
|
1187
169
|
return "";
|
|
1188
|
-
let
|
|
1189
|
-
const a =
|
|
1190
|
-
a !== 0 && (
|
|
1191
|
-
const
|
|
1192
|
-
|
|
1193
|
-
const
|
|
1194
|
-
return
|
|
170
|
+
let o = "";
|
|
171
|
+
const a = t % 60;
|
|
172
|
+
a !== 0 && (o += `${a} ${e.t("modal.revert_to_default_after.seconds")}`);
|
|
173
|
+
const r = Math.floor(t / 60) % 60;
|
|
174
|
+
r !== 0 && (o = `${r} ${e.t("modal.revert_to_default_after.minutes")} ${o}`);
|
|
175
|
+
const s = Math.floor(t / 3600);
|
|
176
|
+
return s !== 0 && (o = `${s} ${e.t("modal.revert_to_default_after.hours")} ${o}`), o;
|
|
1195
177
|
});
|
|
1196
|
-
},
|
|
1197
|
-
const
|
|
1198
|
-
return { checkDataPlaneLogLevel: (
|
|
1199
|
-
const
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
}).catch((
|
|
1203
|
-
|
|
1204
|
-
}),
|
|
1205
|
-
|
|
178
|
+
}, Ce = (n) => {
|
|
179
|
+
const e = n.requestExecutor ?? ((s) => s()), { getDataPlaneLogLevel: t, setDataPlaneLogLevel: o } = n, { getMessageFromError: a } = ue();
|
|
180
|
+
return { checkDataPlaneLogLevel: (s, c) => {
|
|
181
|
+
const u = L(D(c == null ? void 0 : c.currentLogLevelHint) ?? null);
|
|
182
|
+
u.value === null && e(async () => {
|
|
183
|
+
u.value = await t(s);
|
|
184
|
+
}).catch((m) => {
|
|
185
|
+
m instanceof V || console.error("Failed to get data plane log level", m);
|
|
186
|
+
}), c != null && c.currentLogLevelHint && ae(() => D(c.currentLogLevelHint), (m) => {
|
|
187
|
+
m && (u.value = m);
|
|
1206
188
|
});
|
|
1207
|
-
const
|
|
189
|
+
const v = L("pending"), y = L(null);
|
|
1208
190
|
return {
|
|
1209
|
-
currentLogLevel:
|
|
1210
|
-
updateStatus:
|
|
1211
|
-
updateErrorMessage:
|
|
1212
|
-
updateLogLevel: async (
|
|
1213
|
-
|
|
191
|
+
currentLogLevel: u,
|
|
192
|
+
updateStatus: v,
|
|
193
|
+
updateErrorMessage: y,
|
|
194
|
+
updateLogLevel: async (m, C) => {
|
|
195
|
+
v.value = "loading", y.value = null;
|
|
1214
196
|
try {
|
|
1215
|
-
await
|
|
1216
|
-
} catch (
|
|
1217
|
-
|
|
197
|
+
await e(() => o(s, m, C)), u.value = m, v.value = "success";
|
|
198
|
+
} catch (I) {
|
|
199
|
+
y.value = a(I), v.value = "error";
|
|
1218
200
|
}
|
|
1219
201
|
}
|
|
1220
202
|
};
|
|
1221
203
|
} };
|
|
1222
|
-
},
|
|
204
|
+
}, Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1223
205
|
__proto__: null,
|
|
1224
|
-
supportedLevels:
|
|
1225
|
-
useDataPlaneLogLevelChecker:
|
|
1226
|
-
useFriendlyRevertTime:
|
|
1227
|
-
useLogLevelCandidateSelectItems:
|
|
1228
|
-
useLogLevelExplanation:
|
|
1229
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1230
|
-
useI18n:
|
|
1231
|
-
...
|
|
1232
|
-
...
|
|
1233
|
-
},
|
|
1234
|
-
const r = e.__vccOpts || e;
|
|
1235
|
-
for (const [n, a] of t)
|
|
1236
|
-
r[n] = a;
|
|
1237
|
-
return r;
|
|
1238
|
-
}, Wr = (e) => (ee("data-v-6921da37"), e = e(), te(), e), Gr = ["aria-hidden"], Qr = {
|
|
1239
|
-
key: 0,
|
|
1240
|
-
"data-testid": "kui-icon-svg-title"
|
|
1241
|
-
}, Jr = /* @__PURE__ */ Wr(() => /* @__PURE__ */ b("path", {
|
|
1242
|
-
d: "M10.6 16.6L17.65 9.55L16.25 8.15L10.6 13.8L7.75 10.95L6.35 12.35L10.6 16.6ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",
|
|
1243
|
-
fill: "currentColor"
|
|
1244
|
-
}, null, -1)), Xr = /* @__PURE__ */ H({
|
|
1245
|
-
__name: "CheckCircleIcon",
|
|
1246
|
-
props: {
|
|
1247
|
-
/** The accessibility text provided to screen readers */
|
|
1248
|
-
title: {
|
|
1249
|
-
type: String,
|
|
1250
|
-
required: !1,
|
|
1251
|
-
default: ""
|
|
1252
|
-
},
|
|
1253
|
-
/** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
|
|
1254
|
-
color: {
|
|
1255
|
-
type: String,
|
|
1256
|
-
required: !1,
|
|
1257
|
-
default: "currentColor"
|
|
1258
|
-
},
|
|
1259
|
-
/** The CSS display property for the icon. Defaults to `block` */
|
|
1260
|
-
display: {
|
|
1261
|
-
type: String,
|
|
1262
|
-
required: !1,
|
|
1263
|
-
default: "block"
|
|
1264
|
-
},
|
|
1265
|
-
/** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
|
|
1266
|
-
decorative: {
|
|
1267
|
-
type: Boolean,
|
|
1268
|
-
required: !1,
|
|
1269
|
-
default: !1
|
|
1270
|
-
},
|
|
1271
|
-
/** The icon size */
|
|
1272
|
-
size: {
|
|
1273
|
-
type: [Number, String],
|
|
1274
|
-
required: !1,
|
|
1275
|
-
default: q,
|
|
1276
|
-
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
1277
|
-
validator: (e) => {
|
|
1278
|
-
if (typeof e == "number" && e > 0)
|
|
1279
|
-
return !0;
|
|
1280
|
-
if (typeof e == "string") {
|
|
1281
|
-
const t = String(e).replace(/px/gi, ""), r = Number(t);
|
|
1282
|
-
if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
|
|
1283
|
-
return !0;
|
|
1284
|
-
}
|
|
1285
|
-
return !1;
|
|
1286
|
-
}
|
|
1287
|
-
},
|
|
1288
|
-
/** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
|
|
1289
|
-
as: {
|
|
1290
|
-
type: String,
|
|
1291
|
-
required: !1,
|
|
1292
|
-
default: "span"
|
|
1293
|
-
}
|
|
1294
|
-
},
|
|
1295
|
-
setup(e) {
|
|
1296
|
-
const t = e, r = m(() => {
|
|
1297
|
-
if (typeof t.size == "number" && t.size > 0)
|
|
1298
|
-
return `${t.size}px`;
|
|
1299
|
-
if (typeof t.size == "string") {
|
|
1300
|
-
const a = String(t.size).replace(/px/gi, ""), i = Number(a);
|
|
1301
|
-
if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
|
|
1302
|
-
return `${i}px`;
|
|
1303
|
-
}
|
|
1304
|
-
return q;
|
|
1305
|
-
}), n = m(() => ({
|
|
1306
|
-
boxSizing: "border-box",
|
|
1307
|
-
color: t.color,
|
|
1308
|
-
display: t.display,
|
|
1309
|
-
flexShrink: "0",
|
|
1310
|
-
height: r.value,
|
|
1311
|
-
lineHeight: "0",
|
|
1312
|
-
width: r.value
|
|
1313
|
-
}));
|
|
1314
|
-
return (a, i) => (h(), T(V(e.as), {
|
|
1315
|
-
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1316
|
-
class: "kui-icon check-circle-icon",
|
|
1317
|
-
"data-testid": "kui-icon-wrapper-check-circle-icon",
|
|
1318
|
-
style: X(n.value)
|
|
1319
|
-
}, {
|
|
1320
|
-
default: A(() => [
|
|
1321
|
-
(h(), N("svg", {
|
|
1322
|
-
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1323
|
-
"data-testid": "kui-icon-svg-check-circle-icon",
|
|
1324
|
-
fill: "none",
|
|
1325
|
-
height: "100%",
|
|
1326
|
-
role: "img",
|
|
1327
|
-
viewBox: "0 0 24 24",
|
|
1328
|
-
width: "100%",
|
|
1329
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1330
|
-
}, [
|
|
1331
|
-
e.title ? (h(), N("title", Qr, k(e.title), 1)) : U("", !0),
|
|
1332
|
-
Jr
|
|
1333
|
-
], 8, Gr))
|
|
1334
|
-
]),
|
|
1335
|
-
_: 1
|
|
1336
|
-
}, 8, ["aria-hidden", "style"]));
|
|
1337
|
-
}
|
|
1338
|
-
}), en = /* @__PURE__ */ ae(Xr, [["__scopeId", "data-v-6921da37"]]), tn = (e) => (ee("data-v-c4cddd09"), e = e(), te(), e), rn = ["aria-hidden"], nn = {
|
|
1339
|
-
key: 0,
|
|
1340
|
-
"data-testid": "kui-icon-svg-title"
|
|
1341
|
-
}, an = /* @__PURE__ */ tn(() => /* @__PURE__ */ b("path", {
|
|
1342
|
-
d: "M8.4 17L12 13.4L15.6 17L17 15.6L13.4 12L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4L10.6 12L7 15.6L8.4 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",
|
|
1343
|
-
fill: "currentColor"
|
|
1344
|
-
}, null, -1)), on = /* @__PURE__ */ H({
|
|
1345
|
-
__name: "ClearIcon",
|
|
1346
|
-
props: {
|
|
1347
|
-
/** The accessibility text provided to screen readers */
|
|
1348
|
-
title: {
|
|
1349
|
-
type: String,
|
|
1350
|
-
required: !1,
|
|
1351
|
-
default: ""
|
|
1352
|
-
},
|
|
1353
|
-
/** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
|
|
1354
|
-
color: {
|
|
1355
|
-
type: String,
|
|
1356
|
-
required: !1,
|
|
1357
|
-
default: "currentColor"
|
|
1358
|
-
},
|
|
1359
|
-
/** The CSS display property for the icon. Defaults to `block` */
|
|
1360
|
-
display: {
|
|
1361
|
-
type: String,
|
|
1362
|
-
required: !1,
|
|
1363
|
-
default: "block"
|
|
1364
|
-
},
|
|
1365
|
-
/** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
|
|
1366
|
-
decorative: {
|
|
1367
|
-
type: Boolean,
|
|
1368
|
-
required: !1,
|
|
1369
|
-
default: !1
|
|
1370
|
-
},
|
|
1371
|
-
/** The icon size */
|
|
1372
|
-
size: {
|
|
1373
|
-
type: [Number, String],
|
|
1374
|
-
required: !1,
|
|
1375
|
-
default: q,
|
|
1376
|
-
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
1377
|
-
validator: (e) => {
|
|
1378
|
-
if (typeof e == "number" && e > 0)
|
|
1379
|
-
return !0;
|
|
1380
|
-
if (typeof e == "string") {
|
|
1381
|
-
const t = String(e).replace(/px/gi, ""), r = Number(t);
|
|
1382
|
-
if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
|
|
1383
|
-
return !0;
|
|
1384
|
-
}
|
|
1385
|
-
return !1;
|
|
1386
|
-
}
|
|
1387
|
-
},
|
|
1388
|
-
/** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
|
|
1389
|
-
as: {
|
|
1390
|
-
type: String,
|
|
1391
|
-
required: !1,
|
|
1392
|
-
default: "span"
|
|
1393
|
-
}
|
|
1394
|
-
},
|
|
1395
|
-
setup(e) {
|
|
1396
|
-
const t = e, r = m(() => {
|
|
1397
|
-
if (typeof t.size == "number" && t.size > 0)
|
|
1398
|
-
return `${t.size}px`;
|
|
1399
|
-
if (typeof t.size == "string") {
|
|
1400
|
-
const a = String(t.size).replace(/px/gi, ""), i = Number(a);
|
|
1401
|
-
if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
|
|
1402
|
-
return `${i}px`;
|
|
1403
|
-
}
|
|
1404
|
-
return q;
|
|
1405
|
-
}), n = m(() => ({
|
|
1406
|
-
boxSizing: "border-box",
|
|
1407
|
-
color: t.color,
|
|
1408
|
-
display: t.display,
|
|
1409
|
-
flexShrink: "0",
|
|
1410
|
-
height: r.value,
|
|
1411
|
-
lineHeight: "0",
|
|
1412
|
-
width: r.value
|
|
1413
|
-
}));
|
|
1414
|
-
return (a, i) => (h(), T(V(e.as), {
|
|
1415
|
-
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1416
|
-
class: "kui-icon clear-icon",
|
|
1417
|
-
"data-testid": "kui-icon-wrapper-clear-icon",
|
|
1418
|
-
style: X(n.value)
|
|
1419
|
-
}, {
|
|
1420
|
-
default: A(() => [
|
|
1421
|
-
(h(), N("svg", {
|
|
1422
|
-
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1423
|
-
"data-testid": "kui-icon-svg-clear-icon",
|
|
1424
|
-
fill: "none",
|
|
1425
|
-
height: "100%",
|
|
1426
|
-
role: "img",
|
|
1427
|
-
viewBox: "0 0 24 24",
|
|
1428
|
-
width: "100%",
|
|
1429
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1430
|
-
}, [
|
|
1431
|
-
e.title ? (h(), N("title", nn, k(e.title), 1)) : U("", !0),
|
|
1432
|
-
an
|
|
1433
|
-
], 8, rn))
|
|
1434
|
-
]),
|
|
1435
|
-
_: 1
|
|
1436
|
-
}, 8, ["aria-hidden", "style"]));
|
|
1437
|
-
}
|
|
1438
|
-
}), sn = /* @__PURE__ */ ae(on, [["__scopeId", "data-v-c4cddd09"]]), ln = (e) => (ee("data-v-68742da1"), e = e(), te(), e), un = ["aria-hidden"], cn = {
|
|
1439
|
-
key: 0,
|
|
1440
|
-
"data-testid": "kui-icon-svg-title"
|
|
1441
|
-
}, dn = /* @__PURE__ */ ln(() => /* @__PURE__ */ b("path", {
|
|
1442
|
-
d: "M4 17V14H20V17H4ZM4 10V7H20V10H4Z",
|
|
1443
|
-
fill: "currentColor"
|
|
1444
|
-
}, null, -1)), pn = /* @__PURE__ */ H({
|
|
1445
|
-
__name: "EqualIcon",
|
|
1446
|
-
props: {
|
|
1447
|
-
/** The accessibility text provided to screen readers */
|
|
1448
|
-
title: {
|
|
1449
|
-
type: String,
|
|
1450
|
-
required: !1,
|
|
1451
|
-
default: ""
|
|
1452
|
-
},
|
|
1453
|
-
/** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
|
|
1454
|
-
color: {
|
|
1455
|
-
type: String,
|
|
1456
|
-
required: !1,
|
|
1457
|
-
default: "currentColor"
|
|
1458
|
-
},
|
|
1459
|
-
/** The CSS display property for the icon. Defaults to `block` */
|
|
1460
|
-
display: {
|
|
1461
|
-
type: String,
|
|
1462
|
-
required: !1,
|
|
1463
|
-
default: "block"
|
|
1464
|
-
},
|
|
1465
|
-
/** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
|
|
1466
|
-
decorative: {
|
|
1467
|
-
type: Boolean,
|
|
1468
|
-
required: !1,
|
|
1469
|
-
default: !1
|
|
1470
|
-
},
|
|
1471
|
-
/** The icon size */
|
|
1472
|
-
size: {
|
|
1473
|
-
type: [Number, String],
|
|
1474
|
-
required: !1,
|
|
1475
|
-
default: q,
|
|
1476
|
-
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
1477
|
-
validator: (e) => {
|
|
1478
|
-
if (typeof e == "number" && e > 0)
|
|
1479
|
-
return !0;
|
|
1480
|
-
if (typeof e == "string") {
|
|
1481
|
-
const t = String(e).replace(/px/gi, ""), r = Number(t);
|
|
1482
|
-
if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
|
|
1483
|
-
return !0;
|
|
1484
|
-
}
|
|
1485
|
-
return !1;
|
|
1486
|
-
}
|
|
1487
|
-
},
|
|
1488
|
-
/** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
|
|
1489
|
-
as: {
|
|
1490
|
-
type: String,
|
|
1491
|
-
required: !1,
|
|
1492
|
-
default: "span"
|
|
1493
|
-
}
|
|
1494
|
-
},
|
|
1495
|
-
setup(e) {
|
|
1496
|
-
const t = e, r = m(() => {
|
|
1497
|
-
if (typeof t.size == "number" && t.size > 0)
|
|
1498
|
-
return `${t.size}px`;
|
|
1499
|
-
if (typeof t.size == "string") {
|
|
1500
|
-
const a = String(t.size).replace(/px/gi, ""), i = Number(a);
|
|
1501
|
-
if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
|
|
1502
|
-
return `${i}px`;
|
|
1503
|
-
}
|
|
1504
|
-
return q;
|
|
1505
|
-
}), n = m(() => ({
|
|
1506
|
-
boxSizing: "border-box",
|
|
1507
|
-
color: t.color,
|
|
1508
|
-
display: t.display,
|
|
1509
|
-
flexShrink: "0",
|
|
1510
|
-
height: r.value,
|
|
1511
|
-
lineHeight: "0",
|
|
1512
|
-
width: r.value
|
|
1513
|
-
}));
|
|
1514
|
-
return (a, i) => (h(), T(V(e.as), {
|
|
1515
|
-
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1516
|
-
class: "kui-icon equal-icon",
|
|
1517
|
-
"data-testid": "kui-icon-wrapper-equal-icon",
|
|
1518
|
-
style: X(n.value)
|
|
1519
|
-
}, {
|
|
1520
|
-
default: A(() => [
|
|
1521
|
-
(h(), N("svg", {
|
|
1522
|
-
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1523
|
-
"data-testid": "kui-icon-svg-equal-icon",
|
|
1524
|
-
fill: "none",
|
|
1525
|
-
height: "100%",
|
|
1526
|
-
role: "img",
|
|
1527
|
-
viewBox: "0 0 24 24",
|
|
1528
|
-
width: "100%",
|
|
1529
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1530
|
-
}, [
|
|
1531
|
-
e.title ? (h(), N("title", cn, k(e.title), 1)) : U("", !0),
|
|
1532
|
-
dn
|
|
1533
|
-
], 8, un))
|
|
1534
|
-
]),
|
|
1535
|
-
_: 1
|
|
1536
|
-
}, 8, ["aria-hidden", "style"]));
|
|
1537
|
-
}
|
|
1538
|
-
}), fn = /* @__PURE__ */ ae(pn, [["__scopeId", "data-v-68742da1"]]), Me = (e) => (ee("data-v-ae02d9ee"), e = e(), te(), e), gn = ["aria-hidden"], hn = {
|
|
1539
|
-
key: 0,
|
|
1540
|
-
"data-testid": "kui-icon-svg-title"
|
|
1541
|
-
}, vn = /* @__PURE__ */ Me(() => /* @__PURE__ */ b("path", {
|
|
1542
|
-
d: "M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",
|
|
1543
|
-
fill: "currentColor",
|
|
1544
|
-
"transform-origin": "center"
|
|
1545
|
-
}, null, -1)), mn = /* @__PURE__ */ Me(() => /* @__PURE__ */ b("animateTransform", {
|
|
1546
|
-
attributeName: "transform",
|
|
1547
|
-
attributeType: "XML",
|
|
1548
|
-
dur: "1.5s",
|
|
1549
|
-
from: "0",
|
|
1550
|
-
repeatCount: "indefinite",
|
|
1551
|
-
to: "360",
|
|
1552
|
-
type: "rotate"
|
|
1553
|
-
}, null, -1)), yn = /* @__PURE__ */ H({
|
|
1554
|
-
__name: "ProgressIcon",
|
|
1555
|
-
props: {
|
|
1556
|
-
/** The accessibility text provided to screen readers */
|
|
1557
|
-
title: {
|
|
1558
|
-
type: String,
|
|
1559
|
-
required: !1,
|
|
1560
|
-
default: ""
|
|
1561
|
-
},
|
|
1562
|
-
/** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
|
|
1563
|
-
color: {
|
|
1564
|
-
type: String,
|
|
1565
|
-
required: !1,
|
|
1566
|
-
default: "currentColor"
|
|
1567
|
-
},
|
|
1568
|
-
/** The CSS display property for the icon. Defaults to `block` */
|
|
1569
|
-
display: {
|
|
1570
|
-
type: String,
|
|
1571
|
-
required: !1,
|
|
1572
|
-
default: "block"
|
|
1573
|
-
},
|
|
1574
|
-
/** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
|
|
1575
|
-
decorative: {
|
|
1576
|
-
type: Boolean,
|
|
1577
|
-
required: !1,
|
|
1578
|
-
default: !1
|
|
1579
|
-
},
|
|
1580
|
-
/** The icon size */
|
|
1581
|
-
size: {
|
|
1582
|
-
type: [Number, String],
|
|
1583
|
-
required: !1,
|
|
1584
|
-
default: q,
|
|
1585
|
-
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
1586
|
-
validator: (e) => {
|
|
1587
|
-
if (typeof e == "number" && e > 0)
|
|
1588
|
-
return !0;
|
|
1589
|
-
if (typeof e == "string") {
|
|
1590
|
-
const t = String(e).replace(/px/gi, ""), r = Number(t);
|
|
1591
|
-
if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
|
|
1592
|
-
return !0;
|
|
1593
|
-
}
|
|
1594
|
-
return !1;
|
|
1595
|
-
}
|
|
1596
|
-
},
|
|
1597
|
-
/** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
|
|
1598
|
-
as: {
|
|
1599
|
-
type: String,
|
|
1600
|
-
required: !1,
|
|
1601
|
-
default: "span"
|
|
1602
|
-
}
|
|
1603
|
-
},
|
|
1604
|
-
setup(e) {
|
|
1605
|
-
const t = e, r = m(() => {
|
|
1606
|
-
if (typeof t.size == "number" && t.size > 0)
|
|
1607
|
-
return `${t.size}px`;
|
|
1608
|
-
if (typeof t.size == "string") {
|
|
1609
|
-
const a = String(t.size).replace(/px/gi, ""), i = Number(a);
|
|
1610
|
-
if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
|
|
1611
|
-
return `${i}px`;
|
|
1612
|
-
}
|
|
1613
|
-
return q;
|
|
1614
|
-
}), n = m(() => ({
|
|
1615
|
-
boxSizing: "border-box",
|
|
1616
|
-
color: t.color,
|
|
1617
|
-
display: t.display,
|
|
1618
|
-
flexShrink: "0",
|
|
1619
|
-
height: r.value,
|
|
1620
|
-
lineHeight: "0",
|
|
1621
|
-
width: r.value
|
|
1622
|
-
}));
|
|
1623
|
-
return (a, i) => (h(), T(V(e.as), {
|
|
1624
|
-
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1625
|
-
class: "kui-icon progress-icon",
|
|
1626
|
-
"data-testid": "kui-icon-wrapper-progress-icon",
|
|
1627
|
-
style: X(n.value)
|
|
1628
|
-
}, {
|
|
1629
|
-
default: A(() => [
|
|
1630
|
-
(h(), N("svg", {
|
|
1631
|
-
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1632
|
-
"data-testid": "kui-icon-svg-progress-icon",
|
|
1633
|
-
fill: "none",
|
|
1634
|
-
height: "100%",
|
|
1635
|
-
role: "img",
|
|
1636
|
-
viewBox: "0 0 24 24",
|
|
1637
|
-
width: "100%",
|
|
1638
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1639
|
-
}, [
|
|
1640
|
-
e.title ? (h(), N("title", hn, k(e.title), 1)) : U("", !0),
|
|
1641
|
-
vn,
|
|
1642
|
-
mn
|
|
1643
|
-
], 8, gn))
|
|
1644
|
-
]),
|
|
1645
|
-
_: 1
|
|
1646
|
-
}, 8, ["aria-hidden", "style"]));
|
|
1647
|
-
}
|
|
1648
|
-
}), bn = /* @__PURE__ */ ae(yn, [["__scopeId", "data-v-ae02d9ee"]]), wn = { "data-testid": "log-change-action" }, _n = { key: 0 }, kn = { "data-testid": "log-change-action-current-level" }, xn = { key: 0 }, Cn = { "data-testid": "log-change-action-target-level" }, Ln = { "data-testid": "log-change-status" }, Sn = /* @__PURE__ */ H({
|
|
206
|
+
supportedLevels: W,
|
|
207
|
+
useDataPlaneLogLevelChecker: Ce,
|
|
208
|
+
useFriendlyRevertTime: we,
|
|
209
|
+
useLogLevelCandidateSelectItems: ye,
|
|
210
|
+
useLogLevelExplanation: ke
|
|
211
|
+
}, Symbol.toStringTag, { value: "Module" })), S = {
|
|
212
|
+
useI18n: P,
|
|
213
|
+
...Se,
|
|
214
|
+
...Le
|
|
215
|
+
}, xe = { "data-testid": "log-change-action" }, Te = { key: 0 }, Ie = { "data-testid": "log-change-action-current-level" }, Ne = { key: 0 }, $e = { "data-testid": "log-change-action-target-level" }, Ae = { "data-testid": "log-change-status" }, De = /* @__PURE__ */ O({
|
|
1649
216
|
__name: "CLLModalNodeRow",
|
|
1650
217
|
props: {
|
|
1651
218
|
dataPlaneId: {},
|
|
@@ -1655,22 +222,22 @@ const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
|
|
|
1655
222
|
checkLogLevel: {},
|
|
1656
223
|
logLevelHint: {}
|
|
1657
224
|
},
|
|
1658
|
-
setup(
|
|
1659
|
-
const
|
|
1660
|
-
let a =
|
|
225
|
+
setup(n, { expose: e }) {
|
|
226
|
+
const t = n, { i18n: o } = S.useI18n();
|
|
227
|
+
let a = L("not_supported"), r = L("not_supported"), s = L(null), c = async () => {
|
|
1661
228
|
};
|
|
1662
|
-
|
|
229
|
+
t.hasDllCapability && ({
|
|
1663
230
|
currentLogLevel: a,
|
|
1664
|
-
updateStatus:
|
|
1665
|
-
updateErrorMessage:
|
|
1666
|
-
updateLogLevel:
|
|
1667
|
-
} =
|
|
1668
|
-
currentLogLevelHint: () =>
|
|
1669
|
-
})),
|
|
1670
|
-
updateLogLevel:
|
|
231
|
+
updateStatus: r,
|
|
232
|
+
updateErrorMessage: s,
|
|
233
|
+
updateLogLevel: c
|
|
234
|
+
} = t.checkLogLevel(t.dataPlaneId, {
|
|
235
|
+
currentLogLevelHint: () => t.logLevelHint ?? null
|
|
236
|
+
})), e({
|
|
237
|
+
updateLogLevel: c
|
|
1671
238
|
});
|
|
1672
|
-
const
|
|
1673
|
-
switch (
|
|
239
|
+
const u = p(() => {
|
|
240
|
+
switch (r.value) {
|
|
1674
241
|
case "success":
|
|
1675
242
|
return "success";
|
|
1676
243
|
case "error":
|
|
@@ -1681,78 +248,78 @@ const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
|
|
|
1681
248
|
default:
|
|
1682
249
|
return "neutral";
|
|
1683
250
|
}
|
|
1684
|
-
}),
|
|
1685
|
-
switch (
|
|
251
|
+
}), v = p(() => {
|
|
252
|
+
switch (r.value) {
|
|
1686
253
|
case "success":
|
|
1687
|
-
return
|
|
254
|
+
return o.t("modal.dp_list.status.succeed");
|
|
1688
255
|
case "error":
|
|
1689
|
-
return
|
|
256
|
+
return o.t("modal.dp_list.status.failed");
|
|
1690
257
|
case "pending":
|
|
1691
|
-
return
|
|
258
|
+
return o.t("modal.dp_list.status.pending");
|
|
1692
259
|
case "loading":
|
|
1693
|
-
return
|
|
260
|
+
return o.t("modal.dp_list.status.loading");
|
|
1694
261
|
default:
|
|
1695
|
-
return
|
|
262
|
+
return o.t("modal.dp_list.status.not_supported");
|
|
1696
263
|
}
|
|
1697
|
-
}),
|
|
1698
|
-
switch (
|
|
264
|
+
}), y = p(() => {
|
|
265
|
+
switch (r.value) {
|
|
1699
266
|
case "success":
|
|
1700
|
-
return
|
|
267
|
+
return me;
|
|
1701
268
|
case "error":
|
|
1702
269
|
case "not_supported":
|
|
1703
|
-
return
|
|
270
|
+
return ve;
|
|
1704
271
|
case "loading":
|
|
1705
|
-
return
|
|
272
|
+
return ge;
|
|
1706
273
|
default:
|
|
1707
|
-
return
|
|
274
|
+
return de;
|
|
1708
275
|
}
|
|
1709
276
|
});
|
|
1710
|
-
return (
|
|
1711
|
-
const
|
|
1712
|
-
return
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
])) :
|
|
1721
|
-
], 64)) : (
|
|
277
|
+
return (T, m) => {
|
|
278
|
+
const C = x("KSkeleton"), I = x("KBadge"), M = x("KTooltip");
|
|
279
|
+
return g(), $("tr", null, [
|
|
280
|
+
i("td", null, d(T.hostname), 1),
|
|
281
|
+
i("td", xe, [
|
|
282
|
+
l(a) === "not_supported" ? (g(), $("span", Te, d(l(o).t("log_level.not_applicable")), 1)) : l(a) ? (g(), $(j, { key: 2 }, [
|
|
283
|
+
i("span", Ie, d(l(o).t(`log_level.${l(a)}`)), 1),
|
|
284
|
+
l(a) !== T.targetLogLevel ? (g(), $("span", Ne, [
|
|
285
|
+
A(" → "),
|
|
286
|
+
i("span", $e, d(l(o).t(`log_level.${T.targetLogLevel}`)), 1)
|
|
287
|
+
])) : q("", !0)
|
|
288
|
+
], 64)) : (g(), k(C, {
|
|
1722
289
|
key: 1,
|
|
1723
290
|
type: "spinner"
|
|
1724
291
|
}))
|
|
1725
292
|
]),
|
|
1726
|
-
|
|
1727
|
-
|
|
293
|
+
i("td", Ae, [
|
|
294
|
+
l(s) ? (g(), k(M, {
|
|
1728
295
|
key: 0,
|
|
1729
|
-
text:
|
|
296
|
+
text: l(s)
|
|
1730
297
|
}, {
|
|
1731
|
-
default:
|
|
1732
|
-
|
|
1733
|
-
appearance:
|
|
298
|
+
default: w(() => [
|
|
299
|
+
B(I, {
|
|
300
|
+
appearance: u.value,
|
|
1734
301
|
class: "badge-cell"
|
|
1735
302
|
}, {
|
|
1736
|
-
icon:
|
|
1737
|
-
(
|
|
303
|
+
icon: w(() => [
|
|
304
|
+
(g(), k(Q(y.value)))
|
|
1738
305
|
]),
|
|
1739
|
-
default:
|
|
1740
|
-
|
|
306
|
+
default: w(() => [
|
|
307
|
+
A(" " + d(v.value), 1)
|
|
1741
308
|
]),
|
|
1742
309
|
_: 1
|
|
1743
310
|
}, 8, ["appearance"])
|
|
1744
311
|
]),
|
|
1745
312
|
_: 1
|
|
1746
|
-
}, 8, ["text"])) : (
|
|
313
|
+
}, 8, ["text"])) : (g(), k(I, {
|
|
1747
314
|
key: 1,
|
|
1748
|
-
appearance:
|
|
315
|
+
appearance: u.value,
|
|
1749
316
|
class: "badge-cell"
|
|
1750
317
|
}, {
|
|
1751
|
-
icon:
|
|
1752
|
-
(
|
|
318
|
+
icon: w(() => [
|
|
319
|
+
(g(), k(Q(y.value)))
|
|
1753
320
|
]),
|
|
1754
|
-
default:
|
|
1755
|
-
|
|
321
|
+
default: w(() => [
|
|
322
|
+
A(" " + d(v.value), 1)
|
|
1756
323
|
]),
|
|
1757
324
|
_: 1
|
|
1758
325
|
}, 8, ["appearance"]))
|
|
@@ -1760,25 +327,25 @@ const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
|
|
|
1760
327
|
]);
|
|
1761
328
|
};
|
|
1762
329
|
}
|
|
1763
|
-
}),
|
|
1764
|
-
const
|
|
1765
|
-
for (const [
|
|
1766
|
-
|
|
1767
|
-
return
|
|
1768
|
-
},
|
|
330
|
+
}), z = (n, e) => {
|
|
331
|
+
const t = n.__vccOpts || n;
|
|
332
|
+
for (const [o, a] of e)
|
|
333
|
+
t[o] = a;
|
|
334
|
+
return t;
|
|
335
|
+
}, Be = /* @__PURE__ */ z(De, [["__scopeId", "data-v-ac7205dd"]]), Ee = { class: "explanation-wrapper" }, Pe = {
|
|
1769
336
|
key: 0,
|
|
1770
337
|
class: "warning-message",
|
|
1771
338
|
"data-testid": "log-level-warning-message"
|
|
1772
|
-
},
|
|
339
|
+
}, Me = { class: "revert-after-wrapper" }, Ke = { class: "time" }, qe = { class: "seconds" }, Ve = {
|
|
1773
340
|
class: "formatted-time",
|
|
1774
341
|
"data-testid": "log-level-timeout-formatted"
|
|
1775
|
-
},
|
|
342
|
+
}, He = {
|
|
1776
343
|
class: "data-plane-node-list",
|
|
1777
344
|
"data-testid": "data-plane-node-list"
|
|
1778
|
-
},
|
|
345
|
+
}, Re = { style: { width: "40%" } }, Fe = { style: { width: "40%" } }, Qe = /* @__PURE__ */ O({
|
|
1779
346
|
name: "ChangeLogLevelModal",
|
|
1780
347
|
__name: "ChangeLogLevelModal",
|
|
1781
|
-
props: /* @__PURE__ */
|
|
348
|
+
props: /* @__PURE__ */ le({
|
|
1782
349
|
instanceList: {},
|
|
1783
350
|
instanceLogLevel: {},
|
|
1784
351
|
requests: {}
|
|
@@ -1787,38 +354,38 @@ const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
|
|
|
1787
354
|
visibleModifiers: {}
|
|
1788
355
|
}),
|
|
1789
356
|
emits: ["update:visible"],
|
|
1790
|
-
setup(
|
|
1791
|
-
const
|
|
1792
|
-
const
|
|
1793
|
-
return a.t("modal.change_log_level.title", { summary:
|
|
1794
|
-
}),
|
|
1795
|
-
initialSelected:
|
|
1796
|
-
}),
|
|
1797
|
-
|
|
1798
|
-
), { checkDataPlaneLogLevel:
|
|
1799
|
-
getDataPlaneLogLevel:
|
|
1800
|
-
setDataPlaneLogLevel:
|
|
1801
|
-
requestExecutor:
|
|
1802
|
-
}),
|
|
1803
|
-
|
|
1804
|
-
},
|
|
1805
|
-
if (
|
|
1806
|
-
|
|
357
|
+
setup(n) {
|
|
358
|
+
const e = n, t = se(n, "visible"), o = b.Notice, { i18n: a } = S.useI18n(), r = L("edit"), s = L(o), c = L("60"), u = p(() => Math.floor(Number(c.value))), v = p(() => e.instanceList.filter((f) => f.hasDLLCapability !== !1)), y = p(() => {
|
|
359
|
+
const f = v.value.length === 1 ? a.t("modal.change_log_level.summary_with_name", { name: v.value[0].hostname }) : a.t("modal.change_log_level.summary_with_number", { number: `${v.value.length}` });
|
|
360
|
+
return a.t("modal.change_log_level.title", { summary: f });
|
|
361
|
+
}), T = p(() => r.value === "submitting" || isNaN(u.value) || u.value <= 0 || v.value.length === 0), m = S.useLogLevelCandidateSelectItems({
|
|
362
|
+
initialSelected: o
|
|
363
|
+
}), C = S.useLogLevelExplanation(s), I = S.useFriendlyRevertTime(u), M = S.useAsyncScheduler(
|
|
364
|
+
e.requests.scheduler === void 0 ? { maxConcurrentAsyncs: 10 } : e.requests.scheduler
|
|
365
|
+
), { checkDataPlaneLogLevel: U } = S.useDataPlaneLogLevelChecker({
|
|
366
|
+
getDataPlaneLogLevel: e.requests.getDataPlaneLogLevel,
|
|
367
|
+
setDataPlaneLogLevel: e.requests.setDataPlaneLogLevel,
|
|
368
|
+
requestExecutor: M.schedule
|
|
369
|
+
}), K = /* @__PURE__ */ new Map(), G = (f, _) => {
|
|
370
|
+
_ === null ? K.delete(f) : K.set(f, _);
|
|
371
|
+
}, J = async () => {
|
|
372
|
+
if (r.value !== "edit") {
|
|
373
|
+
H();
|
|
1807
374
|
return;
|
|
1808
375
|
}
|
|
1809
|
-
|
|
1810
|
-
const
|
|
376
|
+
r.value = "submitting";
|
|
377
|
+
const f = Array.from(K.values()).map((_) => _.updateLogLevel(s.value, u.value));
|
|
1811
378
|
try {
|
|
1812
|
-
await Promise.all(
|
|
1813
|
-
} catch (
|
|
1814
|
-
console.error("Failed to update log level",
|
|
379
|
+
await Promise.all(f);
|
|
380
|
+
} catch (_) {
|
|
381
|
+
console.error("Failed to update log level", _);
|
|
1815
382
|
} finally {
|
|
1816
|
-
|
|
383
|
+
r.value = "submitted";
|
|
1817
384
|
}
|
|
1818
|
-
},
|
|
1819
|
-
|
|
1820
|
-
},
|
|
1821
|
-
switch (
|
|
385
|
+
}, H = () => {
|
|
386
|
+
t.value = !1, c.value = "60", r.value = "edit", s.value = o;
|
|
387
|
+
}, X = p(() => {
|
|
388
|
+
switch (r.value) {
|
|
1822
389
|
case "submitting":
|
|
1823
390
|
return a.t("modal.action_button.submitting");
|
|
1824
391
|
case "submitted":
|
|
@@ -1827,82 +394,82 @@ const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
|
|
|
1827
394
|
return a.t("modal.action_button.confirm");
|
|
1828
395
|
}
|
|
1829
396
|
});
|
|
1830
|
-
return (
|
|
1831
|
-
const
|
|
1832
|
-
return
|
|
1833
|
-
"action-button-disabled":
|
|
1834
|
-
"action-button-text":
|
|
397
|
+
return (f, _) => {
|
|
398
|
+
const Y = x("KSelect"), R = x("KLabel"), Z = x("KInput"), ee = x("KModal");
|
|
399
|
+
return g(), k(ee, {
|
|
400
|
+
"action-button-disabled": T.value,
|
|
401
|
+
"action-button-text": X.value,
|
|
1835
402
|
"data-testid": "change-log-level-modal",
|
|
1836
403
|
"hide-cancel-button": !0,
|
|
1837
|
-
"hide-close-icon":
|
|
404
|
+
"hide-close-icon": r.value === "submitting",
|
|
1838
405
|
"max-width": "640px",
|
|
1839
|
-
title:
|
|
1840
|
-
visible:
|
|
1841
|
-
onCancel:
|
|
1842
|
-
onProceed:
|
|
406
|
+
title: y.value,
|
|
407
|
+
visible: t.value,
|
|
408
|
+
onCancel: H,
|
|
409
|
+
onProceed: J
|
|
1843
410
|
}, {
|
|
1844
|
-
default:
|
|
1845
|
-
|
|
411
|
+
default: w(() => [
|
|
412
|
+
r.value === "edit" ? (g(), k(Y, {
|
|
1846
413
|
key: 0,
|
|
1847
|
-
modelValue:
|
|
1848
|
-
"onUpdate:modelValue":
|
|
414
|
+
modelValue: s.value,
|
|
415
|
+
"onUpdate:modelValue": _[0] || (_[0] = (h) => s.value = h),
|
|
1849
416
|
class: "log-level-select",
|
|
1850
417
|
"data-testid": "log-level-select",
|
|
1851
|
-
items:
|
|
1852
|
-
label:
|
|
1853
|
-
}, null, 8, ["modelValue", "items", "label"])) :
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
default:
|
|
1857
|
-
|
|
418
|
+
items: l(m),
|
|
419
|
+
label: l(a).t("modal.select_log_level_title")
|
|
420
|
+
}, null, 8, ["modelValue", "items", "label"])) : q("", !0),
|
|
421
|
+
i("div", Ee, [
|
|
422
|
+
B(R, null, {
|
|
423
|
+
default: w(() => [
|
|
424
|
+
A(d(l(a).t(`log_level.${s.value}`)), 1)
|
|
1858
425
|
]),
|
|
1859
426
|
_: 1
|
|
1860
427
|
}),
|
|
1861
|
-
|
|
1862
|
-
|
|
428
|
+
i("div", null, d(l(C).explanation), 1),
|
|
429
|
+
l(C).warning ? (g(), $("div", Pe, d(l(C).warning), 1)) : q("", !0)
|
|
1863
430
|
]),
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
default:
|
|
1867
|
-
|
|
431
|
+
i("div", Me, [
|
|
432
|
+
B(R, null, {
|
|
433
|
+
default: w(() => [
|
|
434
|
+
A(d(l(a).t("modal.revert_to_default_after.label")), 1)
|
|
1868
435
|
]),
|
|
1869
436
|
_: 1
|
|
1870
437
|
}),
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
modelValue:
|
|
1874
|
-
"onUpdate:modelValue":
|
|
438
|
+
i("div", Ke, [
|
|
439
|
+
B(Z, {
|
|
440
|
+
modelValue: c.value,
|
|
441
|
+
"onUpdate:modelValue": _[1] || (_[1] = (h) => c.value = h),
|
|
1875
442
|
class: "time-input",
|
|
1876
443
|
"data-testid": "log-level-timeout",
|
|
1877
|
-
disabled:
|
|
1878
|
-
error:
|
|
444
|
+
disabled: r.value !== "edit",
|
|
445
|
+
error: u.value <= 0 || isNaN(u.value),
|
|
1879
446
|
min: "1",
|
|
1880
447
|
type: "number"
|
|
1881
448
|
}, null, 8, ["modelValue", "disabled", "error"]),
|
|
1882
|
-
|
|
1883
|
-
|
|
449
|
+
i("span", qe, d(l(a).t("modal.revert_to_default_after.seconds")), 1),
|
|
450
|
+
i("span", Ve, d(l(I)), 1)
|
|
1884
451
|
])
|
|
1885
452
|
]),
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
453
|
+
i("table", He, [
|
|
454
|
+
i("thead", null, [
|
|
455
|
+
i("th", Re, d(l(a).t("modal.dp_list.header.host")), 1),
|
|
456
|
+
i("th", Fe, d(l(a).t("modal.dp_list.header.action")), 1),
|
|
457
|
+
i("th", null, d(l(a).t("modal.dp_list.header.status")), 1)
|
|
1891
458
|
]),
|
|
1892
|
-
|
|
1893
|
-
(
|
|
1894
|
-
var
|
|
1895
|
-
return
|
|
1896
|
-
key:
|
|
459
|
+
i("tbody", null, [
|
|
460
|
+
(g(!0), $(j, null, re(e.instanceList, (h) => {
|
|
461
|
+
var F;
|
|
462
|
+
return g(), k(Be, {
|
|
463
|
+
key: h.id,
|
|
1897
464
|
ref_for: !0,
|
|
1898
|
-
ref: (
|
|
1899
|
-
"check-log-level":
|
|
1900
|
-
"data-plane-id":
|
|
1901
|
-
"data-testid": `data-plane-node-list-row-${
|
|
1902
|
-
"has-dll-capability":
|
|
1903
|
-
hostname:
|
|
1904
|
-
"log-level-hint": (
|
|
1905
|
-
"target-log-level":
|
|
465
|
+
ref: (te) => G(h.id, te),
|
|
466
|
+
"check-log-level": l(U),
|
|
467
|
+
"data-plane-id": h.id,
|
|
468
|
+
"data-testid": `data-plane-node-list-row-${h.id}`,
|
|
469
|
+
"has-dll-capability": h.hasDLLCapability ?? !0,
|
|
470
|
+
hostname: h.hostname,
|
|
471
|
+
"log-level-hint": (F = e.instanceLogLevel) == null ? void 0 : F.get(h.id),
|
|
472
|
+
"target-log-level": s.value
|
|
1906
473
|
}, null, 8, ["check-log-level", "data-plane-id", "data-testid", "has-dll-capability", "hostname", "log-level-hint", "target-log-level"]);
|
|
1907
474
|
}), 128))
|
|
1908
475
|
])
|
|
@@ -1912,9 +479,9 @@ const Dr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
|
|
|
1912
479
|
}, 8, ["action-button-disabled", "action-button-text", "hide-close-icon", "title", "visible"]);
|
|
1913
480
|
};
|
|
1914
481
|
}
|
|
1915
|
-
}),
|
|
482
|
+
}), Ge = /* @__PURE__ */ z(Qe, [["__scopeId", "data-v-983a59ac"]]);
|
|
1916
483
|
export {
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
484
|
+
Ge as ChangeLogLevelModal,
|
|
485
|
+
b as LogLevel,
|
|
486
|
+
S as composables
|
|
1920
487
|
};
|