@kong-ui-public/entities-shared 3.2.6 → 3.2.7-pr.1412.dbd831de.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,4 +1,4 @@
|
|
|
1
|
-
import { inject as Fn, ref as B, unref as E, computed as
|
|
1
|
+
import { inject as Fn, ref as B, unref as E, computed as A, watch as Ae, defineComponent as H, openBlock as m, createBlock as M, resolveDynamicComponent as pe, normalizeClass as de, withCtx as x, createElementBlock as I, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as se, renderList as ae, resolveComponent as K, createVNode as R, createTextVNode as V, useCssVars as $t, useSlots as Xe, renderSlot as Y, createSlots as ke, normalizeProps as On, guardReactiveProps as $n, mergeProps as Ln, normalizeStyle as Oe, pushScopeId as $e, popScopeId as Le, onBeforeMount as Lt, withModifiers as ze, onMounted as Nn, onUnmounted as Rn, withDirectives as me, vShow as ge, withKeys as Bn, Teleport as Kn } from "vue";
|
|
2
2
|
import st from "axios";
|
|
3
3
|
import { createI18n as Mn, i18nTComponent as Dn } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as Un } from "@kong/kongponents";
|
|
@@ -40,7 +40,7 @@ function Vn() {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const Pe = "khcp-user-table-preferences", Yn = {
|
|
44
44
|
pageSize: 30,
|
|
45
45
|
sortColumnKey: void 0,
|
|
46
46
|
sortColumnOrder: void 0,
|
|
@@ -57,14 +57,14 @@ function zn() {
|
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
}, t = () => {
|
|
60
|
-
const n = e(localStorage.getItem(
|
|
60
|
+
const n = e(localStorage.getItem(Pe));
|
|
61
61
|
return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
|
|
62
62
|
};
|
|
63
63
|
return {
|
|
64
64
|
setTablePreferences: (n, r) => {
|
|
65
65
|
try {
|
|
66
66
|
const i = t();
|
|
67
|
-
i.set(n, r), localStorage.setItem(
|
|
67
|
+
i.set(n, r), localStorage.setItem(Pe, JSON.stringify(Object.fromEntries(i.entries())));
|
|
68
68
|
} catch (i) {
|
|
69
69
|
console.error("useTablePreferences(setTablePreferences)", i);
|
|
70
70
|
}
|
|
@@ -74,11 +74,11 @@ function zn() {
|
|
|
74
74
|
return (r == null ? void 0 : r.get(n)) || void 0 || Yn;
|
|
75
75
|
},
|
|
76
76
|
deleteAllTablePreferences: () => {
|
|
77
|
-
localStorage.removeItem(
|
|
77
|
+
localStorage.removeItem(Pe);
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function et(e = {}) {
|
|
82
82
|
const { getAxiosInstance: t } = Hn();
|
|
83
83
|
return {
|
|
84
84
|
axiosInstance: t(e)
|
|
@@ -192,7 +192,7 @@ const Wn = {
|
|
|
192
192
|
validationErrors: nr,
|
|
193
193
|
toggleModal: rr
|
|
194
194
|
};
|
|
195
|
-
function
|
|
195
|
+
function je() {
|
|
196
196
|
const e = Mn("en-us", ir);
|
|
197
197
|
return {
|
|
198
198
|
i18n: e,
|
|
@@ -249,85 +249,85 @@ function ar(e, t, n, r = {
|
|
|
249
249
|
searchKeys: ["id"]
|
|
250
250
|
}) {
|
|
251
251
|
n || (n = "1000");
|
|
252
|
-
const { axiosInstance: i } =
|
|
253
|
-
await Z(
|
|
254
|
-
}, 200), s = B(!1), u = B(""), d = B(""), c = B([]),
|
|
255
|
-
let
|
|
256
|
-
e.app === "konnect" ?
|
|
252
|
+
const { axiosInstance: i } = et(e.axiosRequestConfig), { i18n: { t: a } } = je(), { debounce: o } = Vn(), l = o(async (p) => {
|
|
253
|
+
await Z(p);
|
|
254
|
+
}, 200), s = B(!1), u = B(""), d = B(""), c = B([]), h = B([]), f = B(void 0), v = E(t);
|
|
255
|
+
let b = `${e.apiBaseUrl}${v}`;
|
|
256
|
+
e.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
257
257
|
const { isValidUuid: _ } = Nt(), N = async () => {
|
|
258
258
|
try {
|
|
259
259
|
s.value = !0;
|
|
260
|
-
const { data:
|
|
261
|
-
|
|
260
|
+
const { data: p } = await i.get(`${b}?size=${n}`);
|
|
261
|
+
p != null && p.next || (f.value = r.fetchedItemsKey in p ? p[r.fetchedItemsKey] : []), h.value = r.fetchedItemsKey in p ? p[r.fetchedItemsKey] : [], c.value = h.value;
|
|
262
262
|
} catch {
|
|
263
263
|
c.value = [], u.value = a("debouncedFilter.errors.fetch");
|
|
264
264
|
} finally {
|
|
265
265
|
s.value = !1;
|
|
266
266
|
}
|
|
267
|
-
}, k = B(""), Z = async (
|
|
268
|
-
var
|
|
269
|
-
if (k.value !==
|
|
270
|
-
if (k.value =
|
|
267
|
+
}, k = B(""), Z = async (p) => {
|
|
268
|
+
var y, g, $;
|
|
269
|
+
if (k.value !== p)
|
|
270
|
+
if (k.value = p || "", f.value === void 0)
|
|
271
271
|
try {
|
|
272
272
|
if (s.value = !0, u.value = "", d.value = "", e.app === "konnect") {
|
|
273
|
-
let
|
|
274
|
-
|
|
275
|
-
const { data:
|
|
276
|
-
r.fetchedItemsKey in
|
|
277
|
-
} else if (
|
|
278
|
-
const
|
|
279
|
-
_(
|
|
280
|
-
const { data: T } = await i.get(`${
|
|
273
|
+
let F = b + "";
|
|
274
|
+
p && (F += `/${p}`);
|
|
275
|
+
const { data: w } = await i.get(`${F}?size=${n}`);
|
|
276
|
+
r.fetchedItemsKey in w ? c.value = w[r.fetchedItemsKey] : w != null && w.id ? c.value = [w] : c.value = [];
|
|
277
|
+
} else if (p) {
|
|
278
|
+
const F = [];
|
|
279
|
+
_(p) && r.searchKeys.includes("id") ? F.push((async () => {
|
|
280
|
+
const { data: T } = await i.get(`${b}/${p}`);
|
|
281
281
|
return [T[r.fetchedItemsKey] ?? T];
|
|
282
|
-
})()) :
|
|
282
|
+
})()) : F.push(
|
|
283
283
|
...r.searchKeys.filter((T) => T !== "id").map(async (T) => {
|
|
284
|
-
const { data:
|
|
285
|
-
return
|
|
284
|
+
const { data: S } = await i.get(`${b}?${T}=${p}`);
|
|
285
|
+
return S[r.fetchedItemsKey];
|
|
286
286
|
})
|
|
287
287
|
);
|
|
288
|
-
const
|
|
289
|
-
c.value = [], (
|
|
290
|
-
var
|
|
291
|
-
(
|
|
292
|
-
|
|
288
|
+
const w = await Promise.all(F), U = /* @__PURE__ */ new Set();
|
|
289
|
+
c.value = [], (y = w == null ? void 0 : w.forEach) == null || y.call(w, (T) => {
|
|
290
|
+
var S;
|
|
291
|
+
(S = T == null ? void 0 : T.forEach) == null || S.call(T, (j) => {
|
|
292
|
+
U.has(j.id) || (U.add(j.id), c.value.push(j));
|
|
293
293
|
});
|
|
294
294
|
});
|
|
295
295
|
} else
|
|
296
|
-
c.value =
|
|
297
|
-
} catch (
|
|
298
|
-
((
|
|
296
|
+
c.value = h.value;
|
|
297
|
+
} catch (F) {
|
|
298
|
+
((g = F == null ? void 0 : F.response) == null ? void 0 : g.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (c.value = [], u.value = a("debouncedFilter.errors.fetch"));
|
|
299
299
|
} finally {
|
|
300
300
|
s.value = !1;
|
|
301
301
|
}
|
|
302
302
|
else
|
|
303
|
-
s.value = !0, d.value = "",
|
|
304
|
-
var
|
|
305
|
-
let
|
|
303
|
+
s.value = !0, d.value = "", p ? (c.value = ($ = f.value) == null ? void 0 : $.filter((F) => {
|
|
304
|
+
var U;
|
|
305
|
+
let w = !1;
|
|
306
306
|
for (const T of r.searchKeys) {
|
|
307
|
-
const
|
|
308
|
-
|
|
307
|
+
const S = typeof F[T] == "string" ? (U = F[T]) == null ? void 0 : U.toLowerCase() : F[T];
|
|
308
|
+
S != null && S.includes(p.toLowerCase()) && (w = !0);
|
|
309
309
|
}
|
|
310
|
-
return
|
|
311
|
-
}), (!c.value || !c.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : c.value =
|
|
310
|
+
return w;
|
|
311
|
+
}), (!c.value || !c.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : c.value = f.value, s.value = !1;
|
|
312
312
|
};
|
|
313
313
|
return {
|
|
314
314
|
loading: s,
|
|
315
315
|
error: u,
|
|
316
316
|
validationError: d,
|
|
317
317
|
results: c,
|
|
318
|
-
allRecords:
|
|
318
|
+
allRecords: f,
|
|
319
319
|
loadItems: N,
|
|
320
320
|
debouncedQueryChange: l
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
function or(e, t) {
|
|
324
|
-
const n = E(t), r =
|
|
324
|
+
const n = E(t), r = A(
|
|
325
325
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
326
326
|
);
|
|
327
327
|
return r.value.search = "", (i) => `${r.value.href}/${i}`;
|
|
328
328
|
}
|
|
329
329
|
function lr() {
|
|
330
|
-
const { i18n: { t: e } } =
|
|
330
|
+
const { i18n: { t: e } } = je();
|
|
331
331
|
return {
|
|
332
332
|
getMessageFromError: (n) => {
|
|
333
333
|
var r, i, a, o;
|
|
@@ -368,25 +368,25 @@ function sr(e) {
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
function Rt(e, t) {
|
|
371
|
-
const n = B(E(e)), r = B(E(t)), i =
|
|
371
|
+
const n = B(E(e)), r = B(E(t)), i = A(
|
|
372
372
|
() => !!(n.value.app === "konnect" || n.value.isExactMatch)
|
|
373
|
-
), a =
|
|
373
|
+
), a = A(
|
|
374
374
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
375
375
|
);
|
|
376
376
|
return (o) => {
|
|
377
|
-
const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query:
|
|
377
|
+
const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query: h } = o;
|
|
378
378
|
try {
|
|
379
|
-
let
|
|
380
|
-
return i.value &&
|
|
381
|
-
|
|
382
|
-
}), d &&
|
|
383
|
-
} catch (
|
|
384
|
-
return console.error("RouteList(fetcher)",
|
|
379
|
+
let f = new URL(a.value.href);
|
|
380
|
+
return i.value && h ? (f.search = "", f = n.value.isExactMatch ? new URL(`${f.href}/${h}/`) : new URL(`${f.href}?filter[name][contains]=${h}`)) : (i.value || new URLSearchParams(h).forEach((v, b) => {
|
|
381
|
+
f.searchParams.append(b, v);
|
|
382
|
+
}), d && f.searchParams.append("sort_by", d), c === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(s))), u && l !== 1 && f.searchParams.append("offset", String(u)), f.href;
|
|
383
|
+
} catch (f) {
|
|
384
|
+
return console.error("RouteList(fetcher)", f), r.value;
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
function cr(e, t, n = "data") {
|
|
389
|
-
const r = E(t), { axiosInstance: i } =
|
|
389
|
+
const r = E(t), { axiosInstance: i } = et(e.axiosRequestConfig), a = Rt(e, r), o = B({
|
|
390
390
|
status: be.Idle
|
|
391
391
|
});
|
|
392
392
|
return { fetcher: async (s) => {
|
|
@@ -398,22 +398,22 @@ function cr(e, t, n = "data") {
|
|
|
398
398
|
const c = await i.get(d);
|
|
399
399
|
if (c.status >= 400)
|
|
400
400
|
throw c;
|
|
401
|
-
const
|
|
402
|
-
let
|
|
403
|
-
|
|
404
|
-
const
|
|
405
|
-
data:
|
|
406
|
-
total:
|
|
407
|
-
...
|
|
401
|
+
const h = c.data, f = n && n.replace(/[^\w-_]/gi, "");
|
|
402
|
+
let v;
|
|
403
|
+
h[f] && Array.isArray(h[f]) ? v = h[f] : Array.isArray(h) ? v = h : v = Object.keys(h).length ? [h] : [];
|
|
404
|
+
const b = {
|
|
405
|
+
data: v,
|
|
406
|
+
total: v.length,
|
|
407
|
+
...h.offset ? {
|
|
408
408
|
pagination: {
|
|
409
|
-
offset:
|
|
409
|
+
offset: h.offset
|
|
410
410
|
}
|
|
411
411
|
} : null
|
|
412
412
|
};
|
|
413
413
|
return o.value = {
|
|
414
414
|
status: be.Idle,
|
|
415
|
-
response:
|
|
416
|
-
},
|
|
415
|
+
response: b
|
|
416
|
+
}, b;
|
|
417
417
|
} catch (d) {
|
|
418
418
|
const c = {
|
|
419
419
|
data: [],
|
|
@@ -498,17 +498,17 @@ function yr(e) {
|
|
|
498
498
|
return Ae(e, (a) => {
|
|
499
499
|
a && !r.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, r.value = !0);
|
|
500
500
|
}), {
|
|
501
|
-
isTruncated:
|
|
501
|
+
isTruncated: A(() => t.value < n.value)
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
504
|
function vr() {
|
|
505
|
-
const { i18n: { t: e } } =
|
|
505
|
+
const { i18n: { t: e } } = je();
|
|
506
506
|
return {
|
|
507
507
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
const
|
|
511
|
-
useAxios:
|
|
510
|
+
const z = {
|
|
511
|
+
useAxios: et,
|
|
512
512
|
useDebouncedFilter: ar,
|
|
513
513
|
useDeleteUrlBuilder: or,
|
|
514
514
|
useErrors: lr,
|
|
@@ -517,7 +517,7 @@ const W = {
|
|
|
517
517
|
useFetchUrlBuilder: Rt,
|
|
518
518
|
useHelpers: Nt,
|
|
519
519
|
useStringHelpers: ur,
|
|
520
|
-
useI18n:
|
|
520
|
+
useI18n: je,
|
|
521
521
|
useGatewayFeatureSupported: gr,
|
|
522
522
|
useTruncationDetector: yr,
|
|
523
523
|
useValidators: vr
|
|
@@ -541,21 +541,21 @@ const W = {
|
|
|
541
541
|
}
|
|
542
542
|
},
|
|
543
543
|
setup(e) {
|
|
544
|
-
const t = e, { i18n: { t: n } } =
|
|
544
|
+
const t = e, { i18n: { t: n } } = z.useI18n(), { convertKeyToTitle: r } = z.useStringHelpers(), i = A(() => t.item.key ?? "json-array-item"), a = A(() => t.item.value ?? t.item), o = A(() => {
|
|
545
545
|
const s = JSON.parse(JSON.stringify(a.value));
|
|
546
546
|
return t.isArrayItem && delete s.name, s;
|
|
547
|
-
}), l =
|
|
547
|
+
}), l = A(() => {
|
|
548
548
|
var s;
|
|
549
549
|
return t.isArrayItem ? (s = a.value) != null && s.name ? r(a.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
550
550
|
});
|
|
551
|
-
return (s, u) => (
|
|
551
|
+
return (s, u) => (m(), M(pe(e.isArrayItem ? "fieldset" : "div"), {
|
|
552
552
|
class: de(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
553
553
|
}, {
|
|
554
|
-
default:
|
|
555
|
-
e.isArrayItem ? (
|
|
556
|
-
L("b", null,
|
|
557
|
-
])) :
|
|
558
|
-
(
|
|
554
|
+
default: x(() => [
|
|
555
|
+
e.isArrayItem ? (m(), I("legend", br, [
|
|
556
|
+
L("b", null, O(l.value), 1)
|
|
557
|
+
])) : D("", !0),
|
|
558
|
+
(m(!0), I(se, null, ae(Object.keys(o.value), (d, c) => (m(), M(Dt, {
|
|
559
559
|
key: `${i.value}-property-${c}`,
|
|
560
560
|
item: {
|
|
561
561
|
key: d,
|
|
@@ -582,17 +582,17 @@ const W = {
|
|
|
582
582
|
},
|
|
583
583
|
emits: ["navigation-click"],
|
|
584
584
|
setup(e) {
|
|
585
|
-
const { i18n: { t } } =
|
|
585
|
+
const { i18n: { t } } = z.useI18n();
|
|
586
586
|
return (n, r) => {
|
|
587
587
|
const i = K("KButton");
|
|
588
|
-
return
|
|
588
|
+
return m(), I("div", null, [
|
|
589
589
|
R(i, {
|
|
590
590
|
appearance: "tertiary",
|
|
591
591
|
class: "navigation-button",
|
|
592
592
|
onClick: r[0] || (r[0] = (a) => n.$emit("navigation-click", e.item))
|
|
593
593
|
}, {
|
|
594
|
-
default:
|
|
595
|
-
|
|
594
|
+
default: x(() => [
|
|
595
|
+
V(O(e.item.value || E(t)("baseConfigCard.commonFields.link")), 1)
|
|
596
596
|
]),
|
|
597
597
|
_: 1
|
|
598
598
|
})
|
|
@@ -608,14 +608,14 @@ const W = {
|
|
|
608
608
|
}
|
|
609
609
|
},
|
|
610
610
|
setup(e) {
|
|
611
|
-
const { i18n: { t } } =
|
|
611
|
+
const { i18n: { t } } = z.useI18n();
|
|
612
612
|
return (n, r) => {
|
|
613
613
|
const i = K("KBadge");
|
|
614
|
-
return
|
|
614
|
+
return m(), M(i, {
|
|
615
615
|
appearance: e.status ? "success" : "neutral"
|
|
616
616
|
}, {
|
|
617
|
-
default:
|
|
618
|
-
|
|
617
|
+
default: x(() => [
|
|
618
|
+
V(O(e.status ? E(t)("baseConfigCard.statusBadge.enabledLabel") : E(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
619
619
|
]),
|
|
620
620
|
_: 1
|
|
621
621
|
}, 8, ["appearance"]);
|
|
@@ -644,13 +644,13 @@ const W = {
|
|
|
644
644
|
},
|
|
645
645
|
emits: ["navigation-click"],
|
|
646
646
|
setup(e, { emit: t }) {
|
|
647
|
-
$t((
|
|
647
|
+
$t((v) => ({
|
|
648
648
|
"07753575": d.value ? "none" : `solid ${E(Tr)} ${E(Ar)}`,
|
|
649
649
|
"32d44ea8": u.value && l.value ? "block" : "flex",
|
|
650
650
|
"5036b738": u.value && l.value ? "100%" : n.slim ? "50%" : "25%",
|
|
651
651
|
"5038fd13": u.value && l.value ? "100%" : n.slim ? "50%" : "75%"
|
|
652
652
|
}));
|
|
653
|
-
const n = e, r = t, i =
|
|
653
|
+
const n = e, r = t, i = Xe(), { i18n: { t: a, formatUnixTimeStamp: o } } = z.useI18n(), l = A(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = A(() => !!(n.item.tooltip || i["label-tooltip"])), u = A(() => n.item.type === P.Json || n.item.type === P.JsonArray), d = A(() => n.item.type === P.JsonArray), c = A(() => {
|
|
654
654
|
switch (n.item.type) {
|
|
655
655
|
case P.ID:
|
|
656
656
|
return {
|
|
@@ -720,8 +720,8 @@ const W = {
|
|
|
720
720
|
attrs: {
|
|
721
721
|
"data-testid": `${n.item.key}-internal-link`,
|
|
722
722
|
item: n.item,
|
|
723
|
-
onNavigationClick: (
|
|
724
|
-
r("navigation-click",
|
|
723
|
+
onNavigationClick: (v) => {
|
|
724
|
+
r("navigation-click", v);
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
};
|
|
@@ -760,29 +760,29 @@ const W = {
|
|
|
760
760
|
text: n.item.value
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
|
-
}),
|
|
764
|
-
return (
|
|
763
|
+
}), h = B(), { isTruncated: f } = z.useTruncationDetector(h);
|
|
764
|
+
return (v, b) => {
|
|
765
765
|
const _ = K("KLabel"), N = K("KBadge"), k = K("KCopy"), Z = K("KTooltip");
|
|
766
|
-
return
|
|
766
|
+
return m(), I("div", $r, [
|
|
767
767
|
L("div", {
|
|
768
768
|
class: "config-card-details-label",
|
|
769
769
|
"data-testid": `${e.item.key}-label`
|
|
770
770
|
}, [
|
|
771
|
-
|
|
771
|
+
Y(v.$slots, "label", { item: e.item }, () => [
|
|
772
772
|
R(_, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
|
|
773
|
-
default:
|
|
774
|
-
|
|
773
|
+
default: x(() => [
|
|
774
|
+
V(O(e.item.label) + " ", 1)
|
|
775
775
|
]),
|
|
776
776
|
_: 2
|
|
777
777
|
}, [
|
|
778
778
|
s.value ? {
|
|
779
779
|
name: "tooltip",
|
|
780
|
-
fn:
|
|
780
|
+
fn: x(() => [
|
|
781
781
|
L("div", {
|
|
782
782
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
783
783
|
}, [
|
|
784
|
-
|
|
785
|
-
|
|
784
|
+
Y(v.$slots, "label-tooltip", {}, () => [
|
|
785
|
+
V(O(e.item.tooltip), 1)
|
|
786
786
|
], !0)
|
|
787
787
|
], 8, Nr)
|
|
788
788
|
]),
|
|
@@ -795,83 +795,83 @@ const W = {
|
|
|
795
795
|
class: "config-card-details-value",
|
|
796
796
|
"data-testid": `${e.item.key}-property-value`
|
|
797
797
|
}, [
|
|
798
|
-
|
|
798
|
+
Y(v.$slots, e.item.key, {
|
|
799
799
|
rowValue: e.item.value
|
|
800
800
|
}, () => [
|
|
801
|
-
l.value ? (
|
|
802
|
-
(
|
|
803
|
-
default:
|
|
804
|
-
c.value.additionalComponent === "KBadge" ? (
|
|
801
|
+
l.value ? (m(), I("div", Kr, [
|
|
802
|
+
(m(), M(pe(c.value.tag), On($n(c.value.attrs)), {
|
|
803
|
+
default: x(() => [
|
|
804
|
+
c.value.additionalComponent === "KBadge" ? (m(), I("div", {
|
|
805
805
|
key: 0,
|
|
806
806
|
"data-testid": `${e.item.key}-badge-tags`
|
|
807
807
|
}, [
|
|
808
|
-
(
|
|
809
|
-
key: `${e.item.key}-badge-tag-${
|
|
808
|
+
(m(!0), I(se, null, ae(e.item.value, (p, y) => (m(), M(N, {
|
|
809
|
+
key: `${e.item.key}-badge-tag-${y}`,
|
|
810
810
|
class: "config-badge",
|
|
811
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
812
|
-
tooltip:
|
|
811
|
+
"data-testid": `${e.item.key}-badge-tag-${y}`,
|
|
812
|
+
tooltip: p,
|
|
813
813
|
"truncation-tooltip": ""
|
|
814
814
|
}, {
|
|
815
|
-
default:
|
|
816
|
-
|
|
815
|
+
default: x(() => [
|
|
816
|
+
V(O(p), 1)
|
|
817
817
|
]),
|
|
818
818
|
_: 2
|
|
819
819
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
820
|
-
], 8, Mr)) :
|
|
821
|
-
c.value.additionalComponent === "KCopy" ? (
|
|
820
|
+
], 8, Mr)) : D("", !0),
|
|
821
|
+
c.value.additionalComponent === "KCopy" ? (m(), I("div", {
|
|
822
822
|
key: 1,
|
|
823
823
|
class: "copy-uuid-array",
|
|
824
824
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
825
825
|
}, [
|
|
826
|
-
(
|
|
827
|
-
key: `${e.item.key}-copy-uuid-${
|
|
828
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
829
|
-
text:
|
|
826
|
+
(m(!0), I(se, null, ae(e.item.value, (p, y) => (m(), M(k, Ln({ ref_for: !0 }, c.value.childAttrs, {
|
|
827
|
+
key: `${e.item.key}-copy-uuid-${y}`,
|
|
828
|
+
"data-testid": `${e.item.key}-copy-uuid-${y}`,
|
|
829
|
+
text: p
|
|
830
830
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
831
|
-
], 8, Dr)) : c.value.additionalComponent === "KMethodBadge" ? (
|
|
831
|
+
], 8, Dr)) : c.value.additionalComponent === "KMethodBadge" ? (m(), I("div", {
|
|
832
832
|
key: 2,
|
|
833
833
|
class: "method-badge-array",
|
|
834
834
|
"data-testid": `${e.item.key}-badge-methods`
|
|
835
835
|
}, [
|
|
836
|
-
(
|
|
837
|
-
key: `${e.item.key}-badge-method-${
|
|
838
|
-
appearance: Object.values(E(Un)).includes(
|
|
836
|
+
(m(!0), I(se, null, ae(e.item.value, (p, y) => (m(), M(N, {
|
|
837
|
+
key: `${e.item.key}-badge-method-${y}`,
|
|
838
|
+
appearance: Object.values(E(Un)).includes(p.toLowerCase()) ? p.toLowerCase() : "custom",
|
|
839
839
|
class: "config-badge",
|
|
840
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
840
|
+
"data-testid": `${e.item.key}-badge-method-${y}`
|
|
841
841
|
}, {
|
|
842
|
-
default:
|
|
843
|
-
|
|
842
|
+
default: x(() => [
|
|
843
|
+
V(O(p), 1)
|
|
844
844
|
]),
|
|
845
845
|
_: 2
|
|
846
846
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
847
|
-
], 8, Ur)) :
|
|
848
|
-
c.value.additionalComponent === "JsonCardItem" ? (
|
|
847
|
+
], 8, Ur)) : D("", !0),
|
|
848
|
+
c.value.additionalComponent === "JsonCardItem" ? (m(), I("div", {
|
|
849
849
|
key: 3,
|
|
850
850
|
"data-testid": `${n.item.key}-json-array-content`
|
|
851
851
|
}, [
|
|
852
|
-
(
|
|
853
|
-
key: `json-array-item-${
|
|
854
|
-
index:
|
|
852
|
+
(m(!0), I(se, null, ae(e.item.value, (p, y) => (m(), M(Mt, {
|
|
853
|
+
key: `json-array-item-${y}`,
|
|
854
|
+
index: y,
|
|
855
855
|
"is-array-item": "",
|
|
856
|
-
item:
|
|
856
|
+
item: p
|
|
857
857
|
}, null, 8, ["index", "item"]))), 128))
|
|
858
|
-
], 8, jr)) : (
|
|
858
|
+
], 8, jr)) : (m(), M(Z, {
|
|
859
859
|
key: 4,
|
|
860
|
-
text: E(
|
|
860
|
+
text: E(f) ? e.item.value : ""
|
|
861
861
|
}, {
|
|
862
|
-
default:
|
|
862
|
+
default: x(() => [
|
|
863
863
|
L("span", {
|
|
864
864
|
ref_key: "textContent",
|
|
865
|
-
ref:
|
|
865
|
+
ref: h,
|
|
866
866
|
class: de(["attrs-data-text", { truncated: e.truncated }])
|
|
867
|
-
},
|
|
867
|
+
}, O(c.value.text), 3)
|
|
868
868
|
]),
|
|
869
869
|
_: 1
|
|
870
870
|
}, 8, ["text"]))
|
|
871
871
|
]),
|
|
872
872
|
_: 1
|
|
873
873
|
}, 16))
|
|
874
|
-
])) : (
|
|
874
|
+
])) : (m(), I("div", {
|
|
875
875
|
key: 0,
|
|
876
876
|
"data-testid": `${e.item.key}-no-value`
|
|
877
877
|
}, " – ", 8, Br))
|
|
@@ -914,7 +914,7 @@ const W = {
|
|
|
914
914
|
$t((i) => ({
|
|
915
915
|
"4520e3ec": `${r.value}ch`
|
|
916
916
|
}));
|
|
917
|
-
const t = e, n =
|
|
917
|
+
const t = e, n = A(() => t.jsonRecord), r = A(() => {
|
|
918
918
|
var o;
|
|
919
919
|
if (!t.fetcherUrl)
|
|
920
920
|
return 0;
|
|
@@ -923,13 +923,13 @@ const W = {
|
|
|
923
923
|
});
|
|
924
924
|
return (i, a) => {
|
|
925
925
|
const o = K("KBadge"), l = K("KCodeBlock");
|
|
926
|
-
return
|
|
927
|
-
t.fetcherUrl ? (
|
|
926
|
+
return m(), I("div", Hr, [
|
|
927
|
+
t.fetcherUrl ? (m(), I("div", Vr, [
|
|
928
928
|
R(o, {
|
|
929
929
|
appearance: t.requestMethod
|
|
930
930
|
}, {
|
|
931
|
-
default:
|
|
932
|
-
|
|
931
|
+
default: x(() => [
|
|
932
|
+
V(O(t.requestMethod), 1)
|
|
933
933
|
]),
|
|
934
934
|
_: 1
|
|
935
935
|
}, 8, ["appearance"]),
|
|
@@ -940,15 +940,15 @@ const W = {
|
|
|
940
940
|
"single-line": "",
|
|
941
941
|
theme: "dark"
|
|
942
942
|
}, null, 8, ["code"])
|
|
943
|
-
])) :
|
|
944
|
-
t.jsonRecord ? (
|
|
943
|
+
])) : D("", !0),
|
|
944
|
+
t.jsonRecord ? (m(), M(l, {
|
|
945
945
|
key: 1,
|
|
946
946
|
id: "json-codeblock",
|
|
947
947
|
class: de({ "json-content": t.fetcherUrl }),
|
|
948
948
|
code: JSON.stringify(n.value, null, 2),
|
|
949
949
|
language: "json",
|
|
950
950
|
theme: "dark"
|
|
951
|
-
}, null, 8, ["class", "code"])) :
|
|
951
|
+
}, null, 8, ["class", "code"])) : D("", !0)
|
|
952
952
|
]);
|
|
953
953
|
};
|
|
954
954
|
}
|
|
@@ -993,16 +993,16 @@ function qt(e, t) {
|
|
|
993
993
|
|
|
994
994
|
` + e.mark.snippet), r + " " + n) : r;
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function Ie(e, t) {
|
|
997
997
|
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = qt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
998
998
|
}
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
999
|
+
Ie.prototype = Object.create(Error.prototype);
|
|
1000
|
+
Ie.prototype.constructor = Ie;
|
|
1001
|
+
Ie.prototype.toString = function(t) {
|
|
1002
1002
|
return this.name + ": " + qt(this, t);
|
|
1003
1003
|
};
|
|
1004
|
-
var te =
|
|
1005
|
-
function
|
|
1004
|
+
var te = Ie;
|
|
1005
|
+
function He(e, t, n, r, i) {
|
|
1006
1006
|
var a = "", o = "", l = Math.floor(i / 2) - 1;
|
|
1007
1007
|
return r - t > l && (a = " ... ", t = r - l + a.length), n - r > l && (o = " ...", n = r + l - o.length), {
|
|
1008
1008
|
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
@@ -1010,7 +1010,7 @@ function Ve(e, t, n, r, i) {
|
|
|
1010
1010
|
// relative position
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function Ve(e, t) {
|
|
1014
1014
|
return G.repeat(" ", t - e.length) + e;
|
|
1015
1015
|
}
|
|
1016
1016
|
function ri(e, t) {
|
|
@@ -1022,24 +1022,24 @@ function ri(e, t) {
|
|
|
1022
1022
|
o < 0 && (o = r.length - 1);
|
|
1023
1023
|
var l = "", s, u, d = Math.min(e.line + t.linesAfter, i.length).toString().length, c = t.maxLength - (t.indent + d + 3);
|
|
1024
1024
|
for (s = 1; s <= t.linesBefore && !(o - s < 0); s++)
|
|
1025
|
-
u =
|
|
1025
|
+
u = He(
|
|
1026
1026
|
e.buffer,
|
|
1027
1027
|
r[o - s],
|
|
1028
1028
|
i[o - s],
|
|
1029
1029
|
e.position - (r[o] - r[o - s]),
|
|
1030
1030
|
c
|
|
1031
|
-
), l = G.repeat(" ", t.indent) +
|
|
1031
|
+
), l = G.repeat(" ", t.indent) + Ve((e.line - s + 1).toString(), d) + " | " + u.str + `
|
|
1032
1032
|
` + l;
|
|
1033
|
-
for (u =
|
|
1033
|
+
for (u = He(e.buffer, r[o], i[o], e.position, c), l += G.repeat(" ", t.indent) + Ve((e.line + 1).toString(), d) + " | " + u.str + `
|
|
1034
1034
|
`, l += G.repeat("-", t.indent + d + 3 + u.pos) + `^
|
|
1035
1035
|
`, s = 1; s <= t.linesAfter && !(o + s >= i.length); s++)
|
|
1036
|
-
u =
|
|
1036
|
+
u = He(
|
|
1037
1037
|
e.buffer,
|
|
1038
1038
|
r[o + s],
|
|
1039
1039
|
i[o + s],
|
|
1040
1040
|
e.position - (r[o] - r[o + s]),
|
|
1041
1041
|
c
|
|
1042
|
-
), l += G.repeat(" ", t.indent) +
|
|
1042
|
+
), l += G.repeat(" ", t.indent) + Ve((e.line + s + 1).toString(), d) + " | " + u.str + `
|
|
1043
1043
|
`;
|
|
1044
1044
|
return l.replace(/\n$/, "");
|
|
1045
1045
|
}
|
|
@@ -1108,10 +1108,10 @@ function ci() {
|
|
|
1108
1108
|
arguments[t].forEach(r);
|
|
1109
1109
|
return e;
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function We(e) {
|
|
1112
1112
|
return this.extend(e);
|
|
1113
1113
|
}
|
|
1114
|
-
|
|
1114
|
+
We.prototype.extend = function(t) {
|
|
1115
1115
|
var n = [], r = [];
|
|
1116
1116
|
if (t instanceof X)
|
|
1117
1117
|
r.push(t);
|
|
@@ -1132,10 +1132,10 @@ Je.prototype.extend = function(t) {
|
|
|
1132
1132
|
if (!(a instanceof X))
|
|
1133
1133
|
throw new te("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1134
1134
|
});
|
|
1135
|
-
var i = Object.create(
|
|
1135
|
+
var i = Object.create(We.prototype);
|
|
1136
1136
|
return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = mt(i, "implicit"), i.compiledExplicit = mt(i, "explicit"), i.compiledTypeMap = ci(i.compiledImplicit, i.compiledExplicit), i;
|
|
1137
1137
|
};
|
|
1138
|
-
var Pt =
|
|
1138
|
+
var Pt = We, Ht = new X("tag:yaml.org,2002:str", {
|
|
1139
1139
|
kind: "scalar",
|
|
1140
1140
|
construct: function(e) {
|
|
1141
1141
|
return e !== null ? e : "";
|
|
@@ -1396,7 +1396,7 @@ function Ei(e) {
|
|
|
1396
1396
|
return e === null ? !1 : en.exec(e) !== null || tn.exec(e) !== null;
|
|
1397
1397
|
}
|
|
1398
1398
|
function Ti(e) {
|
|
1399
|
-
var t, n, r, i, a, o, l, s = 0, u = null, d, c,
|
|
1399
|
+
var t, n, r, i, a, o, l, s = 0, u = null, d, c, h;
|
|
1400
1400
|
if (t = en.exec(e), t === null && (t = tn.exec(e)), t === null)
|
|
1401
1401
|
throw new Error("Date resolve error");
|
|
1402
1402
|
if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])
|
|
@@ -1406,7 +1406,7 @@ function Ti(e) {
|
|
|
1406
1406
|
s += "0";
|
|
1407
1407
|
s = +s;
|
|
1408
1408
|
}
|
|
1409
|
-
return t[9] && (d = +t[10], c = +(t[11] || 0), u = (d * 60 + c) * 6e4, t[9] === "-" && (u = -u)),
|
|
1409
|
+
return t[9] && (d = +t[10], c = +(t[11] || 0), u = (d * 60 + c) * 6e4, t[9] === "-" && (u = -u)), h = new Date(Date.UTC(n, r, i, a, o, l, s)), u && h.setTime(h.getTime() - u), h;
|
|
1410
1410
|
}
|
|
1411
1411
|
function Fi(e) {
|
|
1412
1412
|
return e.toISOString();
|
|
@@ -1424,12 +1424,12 @@ function Oi(e) {
|
|
|
1424
1424
|
var rn = new X("tag:yaml.org,2002:merge", {
|
|
1425
1425
|
kind: "scalar",
|
|
1426
1426
|
resolve: Oi
|
|
1427
|
-
}),
|
|
1427
|
+
}), tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1428
1428
|
\r`;
|
|
1429
1429
|
function $i(e) {
|
|
1430
1430
|
if (e === null)
|
|
1431
1431
|
return !1;
|
|
1432
|
-
var t, n, r = 0, i = e.length, a =
|
|
1432
|
+
var t, n, r = 0, i = e.length, a = tt;
|
|
1433
1433
|
for (n = 0; n < i; n++)
|
|
1434
1434
|
if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1435
1435
|
if (t < 0)
|
|
@@ -1439,13 +1439,13 @@ function $i(e) {
|
|
|
1439
1439
|
return r % 8 === 0;
|
|
1440
1440
|
}
|
|
1441
1441
|
function Li(e) {
|
|
1442
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a =
|
|
1442
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = tt, o = 0, l = [];
|
|
1443
1443
|
for (t = 0; t < i; t++)
|
|
1444
1444
|
t % 4 === 0 && t && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
|
|
1445
1445
|
return n = i % 4 * 6, n === 0 ? (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)) : n === 18 ? (l.push(o >> 10 & 255), l.push(o >> 2 & 255)) : n === 12 && l.push(o >> 4 & 255), new Uint8Array(l);
|
|
1446
1446
|
}
|
|
1447
1447
|
function Ni(e) {
|
|
1448
|
-
var t = "", n = 0, r, i, a = e.length, o =
|
|
1448
|
+
var t = "", n = 0, r, i, a = e.length, o = tt;
|
|
1449
1449
|
for (r = 0; r < a; r++)
|
|
1450
1450
|
r % 3 === 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
|
|
1451
1451
|
return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
|
|
@@ -1530,7 +1530,7 @@ var sn = new X("tag:yaml.org,2002:set", {
|
|
|
1530
1530
|
kind: "mapping",
|
|
1531
1531
|
resolve: Hi,
|
|
1532
1532
|
construct: Vi
|
|
1533
|
-
}),
|
|
1533
|
+
}), nt = Xt.extend({
|
|
1534
1534
|
implicit: [
|
|
1535
1535
|
nn,
|
|
1536
1536
|
rn
|
|
@@ -1541,14 +1541,14 @@ var sn = new X("tag:yaml.org,2002:set", {
|
|
|
1541
1541
|
ln,
|
|
1542
1542
|
sn
|
|
1543
1543
|
]
|
|
1544
|
-
}), fe = Object.prototype.hasOwnProperty,
|
|
1544
|
+
}), fe = Object.prototype.hasOwnProperty, Be = 1, cn = 2, un = 3, Ke = 4, Ye = 1, Yi = 2, gt = 3, zi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Wi = /[\x85\u2028\u2029]/, Ji = /[,\[\]\{\}]/, dn = /^(?:!|!!|![a-z\-]+!)$/i, fn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1545
1545
|
function yt(e) {
|
|
1546
1546
|
return Object.prototype.toString.call(e);
|
|
1547
1547
|
}
|
|
1548
1548
|
function oe(e) {
|
|
1549
1549
|
return e === 10 || e === 13;
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1551
|
+
function ye(e) {
|
|
1552
1552
|
return e === 9 || e === 32;
|
|
1553
1553
|
}
|
|
1554
1554
|
function ne(e) {
|
|
@@ -1581,7 +1581,7 @@ var pn = new Array(256), hn = new Array(256);
|
|
|
1581
1581
|
for (var ve = 0; ve < 256; ve++)
|
|
1582
1582
|
pn[ve] = vt(ve) ? 1 : 0, hn[ve] = vt(ve);
|
|
1583
1583
|
function ea(e, t) {
|
|
1584
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1584
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || nt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1585
1585
|
}
|
|
1586
1586
|
function mn(e, t) {
|
|
1587
1587
|
var n = {
|
|
@@ -1597,13 +1597,13 @@ function mn(e, t) {
|
|
|
1597
1597
|
function C(e, t) {
|
|
1598
1598
|
throw mn(e, t);
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1600
|
+
function Me(e, t) {
|
|
1601
1601
|
e.onWarning && e.onWarning.call(null, mn(e, t));
|
|
1602
1602
|
}
|
|
1603
1603
|
var bt = {
|
|
1604
1604
|
YAML: function(t, n, r) {
|
|
1605
1605
|
var i, a, o;
|
|
1606
|
-
t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 &&
|
|
1606
|
+
t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Me(t, "unsupported YAML version of the document");
|
|
1607
1607
|
},
|
|
1608
1608
|
TAG: function(t, n, r) {
|
|
1609
1609
|
var i, a;
|
|
@@ -1652,60 +1652,60 @@ function _e(e, t, n, r, i, a, o, l, s) {
|
|
|
1652
1652
|
}) : t[i] = a, delete n[i];
|
|
1653
1653
|
return t;
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function rt(e) {
|
|
1656
1656
|
var t;
|
|
1657
1657
|
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : C(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1659
|
+
function W(e, t, n) {
|
|
1660
1660
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
|
|
1661
|
-
for (;
|
|
1661
|
+
for (; ye(i); )
|
|
1662
1662
|
i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
1663
1663
|
if (t && i === 35)
|
|
1664
1664
|
do
|
|
1665
1665
|
i = e.input.charCodeAt(++e.position);
|
|
1666
1666
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
1667
1667
|
if (oe(i))
|
|
1668
|
-
for (
|
|
1668
|
+
for (rt(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32; )
|
|
1669
1669
|
e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1670
1670
|
else
|
|
1671
1671
|
break;
|
|
1672
1672
|
}
|
|
1673
|
-
return n !== -1 && r !== 0 && e.lineIndent < n &&
|
|
1673
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && Me(e, "deficient indentation"), r;
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1675
|
+
function qe(e) {
|
|
1676
1676
|
var t = e.position, n;
|
|
1677
1677
|
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || ne(n)));
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function it(e, t) {
|
|
1680
1680
|
t === 1 ? e.result += " " : t > 1 && (e.result += G.repeat(`
|
|
1681
1681
|
`, t - 1));
|
|
1682
1682
|
}
|
|
1683
1683
|
function ta(e, t, n) {
|
|
1684
|
-
var r, i, a, o, l, s, u, d, c = e.kind,
|
|
1685
|
-
if (
|
|
1684
|
+
var r, i, a, o, l, s, u, d, c = e.kind, h = e.result, f;
|
|
1685
|
+
if (f = e.input.charCodeAt(e.position), ne(f) || Ce(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), ne(i) || n && Ce(i)))
|
|
1686
1686
|
return !1;
|
|
1687
|
-
for (e.kind = "scalar", e.result = "", a = o = e.position, l = !1;
|
|
1688
|
-
if (
|
|
1687
|
+
for (e.kind = "scalar", e.result = "", a = o = e.position, l = !1; f !== 0; ) {
|
|
1688
|
+
if (f === 58) {
|
|
1689
1689
|
if (i = e.input.charCodeAt(e.position + 1), ne(i) || n && Ce(i))
|
|
1690
1690
|
break;
|
|
1691
|
-
} else if (
|
|
1691
|
+
} else if (f === 35) {
|
|
1692
1692
|
if (r = e.input.charCodeAt(e.position - 1), ne(r))
|
|
1693
1693
|
break;
|
|
1694
1694
|
} else {
|
|
1695
|
-
if (e.position === e.lineStart &&
|
|
1695
|
+
if (e.position === e.lineStart && qe(e) || n && Ce(f))
|
|
1696
1696
|
break;
|
|
1697
|
-
if (oe(
|
|
1698
|
-
if (s = e.line, u = e.lineStart, d = e.lineIndent,
|
|
1699
|
-
l = !0,
|
|
1697
|
+
if (oe(f))
|
|
1698
|
+
if (s = e.line, u = e.lineStart, d = e.lineIndent, W(e, !1, -1), e.lineIndent >= t) {
|
|
1699
|
+
l = !0, f = e.input.charCodeAt(e.position);
|
|
1700
1700
|
continue;
|
|
1701
1701
|
} else {
|
|
1702
1702
|
e.position = o, e.line = s, e.lineStart = u, e.lineIndent = d;
|
|
1703
1703
|
break;
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
|
-
l && (ue(e, a, o, !1),
|
|
1706
|
+
l && (ue(e, a, o, !1), it(e, e.line - s), a = o = e.position, l = !1), ye(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1707
1707
|
}
|
|
1708
|
-
return ue(e, a, o, !1), e.result ? !0 : (e.kind = c, e.result =
|
|
1708
|
+
return ue(e, a, o, !1), e.result ? !0 : (e.kind = c, e.result = h, !1);
|
|
1709
1709
|
}
|
|
1710
1710
|
function na(e, t) {
|
|
1711
1711
|
var n, r, i;
|
|
@@ -1718,7 +1718,7 @@ function na(e, t) {
|
|
|
1718
1718
|
else
|
|
1719
1719
|
return !0;
|
|
1720
1720
|
else
|
|
1721
|
-
oe(n) ? (ue(e, r, i, !0),
|
|
1721
|
+
oe(n) ? (ue(e, r, i, !0), it(e, W(e, !1, t)), r = i = e.position) : e.position === e.lineStart && qe(e) ? C(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1722
1722
|
C(e, "unexpected end of the stream within a single quoted scalar");
|
|
1723
1723
|
}
|
|
1724
1724
|
function ra(e, t) {
|
|
@@ -1730,7 +1730,7 @@ function ra(e, t) {
|
|
|
1730
1730
|
return ue(e, n, e.position, !0), e.position++, !0;
|
|
1731
1731
|
if (l === 92) {
|
|
1732
1732
|
if (ue(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), oe(l))
|
|
1733
|
-
|
|
1733
|
+
W(e, !1, t);
|
|
1734
1734
|
else if (l < 256 && pn[l])
|
|
1735
1735
|
e.result += hn[l], e.position++;
|
|
1736
1736
|
else if ((o = Zi(l)) > 0) {
|
|
@@ -1741,27 +1741,27 @@ function ra(e, t) {
|
|
|
1741
1741
|
C(e, "unknown escape sequence");
|
|
1742
1742
|
n = r = e.position;
|
|
1743
1743
|
} else
|
|
1744
|
-
oe(l) ? (ue(e, n, r, !0),
|
|
1744
|
+
oe(l) ? (ue(e, n, r, !0), it(e, W(e, !1, t)), n = r = e.position) : e.position === e.lineStart && qe(e) ? C(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
1745
1745
|
}
|
|
1746
1746
|
C(e, "unexpected end of the stream within a double quoted scalar");
|
|
1747
1747
|
}
|
|
1748
1748
|
function ia(e, t) {
|
|
1749
|
-
var n = !0, r, i, a, o = e.tag, l, s = e.anchor, u, d, c,
|
|
1749
|
+
var n = !0, r, i, a, o = e.tag, l, s = e.anchor, u, d, c, h, f, v = /* @__PURE__ */ Object.create(null), b, _, N, k;
|
|
1750
1750
|
if (k = e.input.charCodeAt(e.position), k === 91)
|
|
1751
|
-
d = 93,
|
|
1751
|
+
d = 93, f = !1, l = [];
|
|
1752
1752
|
else if (k === 123)
|
|
1753
|
-
d = 125,
|
|
1753
|
+
d = 125, f = !0, l = {};
|
|
1754
1754
|
else
|
|
1755
1755
|
return !1;
|
|
1756
1756
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), k = e.input.charCodeAt(++e.position); k !== 0; ) {
|
|
1757
|
-
if (
|
|
1758
|
-
return e.position++, e.tag = o, e.anchor = s, e.kind =
|
|
1759
|
-
n ? k === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), _ =
|
|
1757
|
+
if (W(e, !0, t), k = e.input.charCodeAt(e.position), k === d)
|
|
1758
|
+
return e.position++, e.tag = o, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
1759
|
+
n ? k === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), _ = b = N = null, c = h = !1, k === 63 && (u = e.input.charCodeAt(e.position + 1), ne(u) && (c = h = !0, e.position++, W(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, we(e, t, Be, !1, !0), _ = e.tag, b = e.result, W(e, !0, t), k = e.input.charCodeAt(e.position), (h || e.line === r) && k === 58 && (c = !0, k = e.input.charCodeAt(++e.position), W(e, !0, t), we(e, t, Be, !1, !0), N = e.result), f ? _e(e, l, v, _, b, N, r, i, a) : c ? l.push(_e(e, null, v, _, b, N, r, i, a)) : l.push(b), W(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1760
1760
|
}
|
|
1761
1761
|
C(e, "unexpected end of the stream within a flow collection");
|
|
1762
1762
|
}
|
|
1763
1763
|
function aa(e, t) {
|
|
1764
|
-
var n, r, i =
|
|
1764
|
+
var n, r, i = Ye, a = !1, o = !1, l = t, s = 0, u = !1, d, c;
|
|
1765
1765
|
if (c = e.input.charCodeAt(e.position), c === 124)
|
|
1766
1766
|
r = !1;
|
|
1767
1767
|
else if (c === 62)
|
|
@@ -1770,22 +1770,22 @@ function aa(e, t) {
|
|
|
1770
1770
|
return !1;
|
|
1771
1771
|
for (e.kind = "scalar", e.result = ""; c !== 0; )
|
|
1772
1772
|
if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
|
|
1773
|
-
|
|
1773
|
+
Ye === i ? i = c === 43 ? gt : Yi : C(e, "repeat of a chomping mode identifier");
|
|
1774
1774
|
else if ((d = Qi(c)) >= 0)
|
|
1775
1775
|
d === 0 ? C(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? C(e, "repeat of an indentation width identifier") : (l = t + d - 1, o = !0);
|
|
1776
1776
|
else
|
|
1777
1777
|
break;
|
|
1778
|
-
if (
|
|
1778
|
+
if (ye(c)) {
|
|
1779
1779
|
do
|
|
1780
1780
|
c = e.input.charCodeAt(++e.position);
|
|
1781
|
-
while (
|
|
1781
|
+
while (ye(c));
|
|
1782
1782
|
if (c === 35)
|
|
1783
1783
|
do
|
|
1784
1784
|
c = e.input.charCodeAt(++e.position);
|
|
1785
1785
|
while (!oe(c) && c !== 0);
|
|
1786
1786
|
}
|
|
1787
1787
|
for (; c !== 0; ) {
|
|
1788
|
-
for (
|
|
1788
|
+
for (rt(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && c === 32; )
|
|
1789
1789
|
e.lineIndent++, c = e.input.charCodeAt(++e.position);
|
|
1790
1790
|
if (!o && e.lineIndent > l && (l = e.lineIndent), oe(c)) {
|
|
1791
1791
|
s++;
|
|
@@ -1793,11 +1793,11 @@ function aa(e, t) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
if (e.lineIndent < l) {
|
|
1795
1795
|
i === gt ? e.result += G.repeat(`
|
|
1796
|
-
`, a ? 1 + s : s) : i ===
|
|
1796
|
+
`, a ? 1 + s : s) : i === Ye && a && (e.result += `
|
|
1797
1797
|
`);
|
|
1798
1798
|
break;
|
|
1799
1799
|
}
|
|
1800
|
-
for (r ?
|
|
1800
|
+
for (r ? ye(c) ? (u = !0, e.result += G.repeat(`
|
|
1801
1801
|
`, a ? 1 + s : s)) : u ? (u = !1, e.result += G.repeat(`
|
|
1802
1802
|
`, s + 1)) : s === 0 ? a && (e.result += " ") : e.result += G.repeat(`
|
|
1803
1803
|
`, s) : e.result += G.repeat(`
|
|
@@ -1812,11 +1812,11 @@ function Ct(e, t) {
|
|
|
1812
1812
|
if (e.firstTabInLine !== -1)
|
|
1813
1813
|
return !1;
|
|
1814
1814
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), !(s !== 45 || (o = e.input.charCodeAt(e.position + 1), !ne(o)))); ) {
|
|
1815
|
-
if (l = !0, e.position++,
|
|
1815
|
+
if (l = !0, e.position++, W(e, !0, -1) && e.lineIndent <= t) {
|
|
1816
1816
|
a.push(null), s = e.input.charCodeAt(e.position);
|
|
1817
1817
|
continue;
|
|
1818
1818
|
}
|
|
1819
|
-
if (n = e.line, we(e, t, un, !1, !0), a.push(e.result),
|
|
1819
|
+
if (n = e.line, we(e, t, un, !1, !0), a.push(e.result), W(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1820
1820
|
C(e, "bad indentation of a sequence entry");
|
|
1821
1821
|
else if (e.lineIndent < t)
|
|
1822
1822
|
break;
|
|
@@ -1824,20 +1824,20 @@ function Ct(e, t) {
|
|
|
1824
1824
|
return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1825
1825
|
}
|
|
1826
1826
|
function oa(e, t, n) {
|
|
1827
|
-
var r, i, a, o, l, s, u = e.tag, d = e.anchor, c = {},
|
|
1827
|
+
var r, i, a, o, l, s, u = e.tag, d = e.anchor, c = {}, h = /* @__PURE__ */ Object.create(null), f = null, v = null, b = null, _ = !1, N = !1, k;
|
|
1828
1828
|
if (e.firstTabInLine !== -1)
|
|
1829
1829
|
return !1;
|
|
1830
1830
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), k = e.input.charCodeAt(e.position); k !== 0; ) {
|
|
1831
1831
|
if (!_ && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (k === 63 || k === 58) && ne(r))
|
|
1832
|
-
k === 63 ? (_ && (_e(e, c,
|
|
1832
|
+
k === 63 ? (_ && (_e(e, c, h, f, v, null, o, l, s), f = v = b = null), N = !0, _ = !0, i = !0) : _ ? (_ = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = r;
|
|
1833
1833
|
else {
|
|
1834
1834
|
if (o = e.line, l = e.lineStart, s = e.position, !we(e, n, cn, !1, !0))
|
|
1835
1835
|
break;
|
|
1836
1836
|
if (e.line === a) {
|
|
1837
|
-
for (k = e.input.charCodeAt(e.position);
|
|
1837
|
+
for (k = e.input.charCodeAt(e.position); ye(k); )
|
|
1838
1838
|
k = e.input.charCodeAt(++e.position);
|
|
1839
1839
|
if (k === 58)
|
|
1840
|
-
k = e.input.charCodeAt(++e.position), ne(k) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (_e(e, c,
|
|
1840
|
+
k = e.input.charCodeAt(++e.position), ne(k) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (_e(e, c, h, f, v, null, o, l, s), f = v = b = null), N = !0, _ = !1, i = !1, f = e.tag, v = e.result;
|
|
1841
1841
|
else if (N)
|
|
1842
1842
|
C(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1843
1843
|
else
|
|
@@ -1847,12 +1847,12 @@ function oa(e, t, n) {
|
|
|
1847
1847
|
else
|
|
1848
1848
|
return e.tag = u, e.anchor = d, !0;
|
|
1849
1849
|
}
|
|
1850
|
-
if ((e.line === a || e.lineIndent > t) && (_ && (o = e.line, l = e.lineStart, s = e.position), we(e, t,
|
|
1850
|
+
if ((e.line === a || e.lineIndent > t) && (_ && (o = e.line, l = e.lineStart, s = e.position), we(e, t, Ke, !0, i) && (_ ? v = e.result : b = e.result), _ || (_e(e, c, h, f, v, b, o, l, s), f = v = b = null), W(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && k !== 0)
|
|
1851
1851
|
C(e, "bad indentation of a mapping entry");
|
|
1852
1852
|
else if (e.lineIndent < t)
|
|
1853
1853
|
break;
|
|
1854
1854
|
}
|
|
1855
|
-
return _ && _e(e, c,
|
|
1855
|
+
return _ && _e(e, c, h, f, v, null, o, l, s), N && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), N;
|
|
1856
1856
|
}
|
|
1857
1857
|
function la(e) {
|
|
1858
1858
|
var t, n = !1, r = !1, i, a, o;
|
|
@@ -1890,41 +1890,41 @@ function ca(e) {
|
|
|
1890
1890
|
return !1;
|
|
1891
1891
|
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ne(r) && !Ce(r); )
|
|
1892
1892
|
r = e.input.charCodeAt(++e.position);
|
|
1893
|
-
return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), fe.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n],
|
|
1893
|
+
return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), fe.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], W(e, !0, -1), !0;
|
|
1894
1894
|
}
|
|
1895
1895
|
function we(e, t, n, r, i) {
|
|
1896
|
-
var a, o, l, s = 1, u = !1, d = !1, c,
|
|
1897
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l =
|
|
1896
|
+
var a, o, l, s = 1, u = !1, d = !1, c, h, f, v, b, _;
|
|
1897
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Ke === n || un === n, r && W(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1898
1898
|
for (; la(e) || sa(e); )
|
|
1899
|
-
|
|
1900
|
-
if (l && (l = u || i), (s === 1 ||
|
|
1899
|
+
W(e, !0, -1) ? (u = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1900
|
+
if (l && (l = u || i), (s === 1 || Ke === n) && (Be === n || cn === n ? b = t : b = t + 1, _ = e.position - e.lineStart, s === 1 ? l && (Ct(e, _) || oa(e, _, b)) || ia(e, b) ? d = !0 : (o && aa(e, b) || na(e, b) || ra(e, b) ? d = !0 : ca(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : ta(e, b, Be === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ct(e, _))), e.tag === null)
|
|
1901
1901
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1902
1902
|
else if (e.tag === "?") {
|
|
1903
|
-
for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0,
|
|
1904
|
-
if (
|
|
1905
|
-
e.result =
|
|
1903
|
+
for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, h = e.implicitTypes.length; c < h; c += 1)
|
|
1904
|
+
if (v = e.implicitTypes[c], v.resolve(e.result)) {
|
|
1905
|
+
e.result = v.construct(e.result), e.tag = v.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1906
1906
|
break;
|
|
1907
1907
|
}
|
|
1908
1908
|
} else if (e.tag !== "!") {
|
|
1909
1909
|
if (fe.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
1910
|
-
|
|
1910
|
+
v = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1911
1911
|
else
|
|
1912
|
-
for (
|
|
1913
|
-
if (e.tag.slice(0,
|
|
1914
|
-
|
|
1912
|
+
for (v = null, f = e.typeMap.multi[e.kind || "fallback"], c = 0, h = f.length; c < h; c += 1)
|
|
1913
|
+
if (e.tag.slice(0, f[c].tag.length) === f[c].tag) {
|
|
1914
|
+
v = f[c];
|
|
1915
1915
|
break;
|
|
1916
1916
|
}
|
|
1917
|
-
|
|
1917
|
+
v || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && v.kind !== e.kind && C(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + v.kind + '", not "' + e.kind + '"'), v.resolve(e.result, e.tag) ? (e.result = v.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1918
1918
|
}
|
|
1919
1919
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
1920
1920
|
}
|
|
1921
1921
|
function ua(e) {
|
|
1922
1922
|
var t = e.position, n, r, i, a = !1, o;
|
|
1923
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (
|
|
1923
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (W(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
1924
1924
|
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !ne(o); )
|
|
1925
1925
|
o = e.input.charCodeAt(++e.position);
|
|
1926
1926
|
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && C(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
1927
|
-
for (;
|
|
1927
|
+
for (; ye(o); )
|
|
1928
1928
|
o = e.input.charCodeAt(++e.position);
|
|
1929
1929
|
if (o === 35) {
|
|
1930
1930
|
do
|
|
@@ -1938,10 +1938,10 @@ function ua(e) {
|
|
|
1938
1938
|
o = e.input.charCodeAt(++e.position);
|
|
1939
1939
|
i.push(e.input.slice(n, e.position));
|
|
1940
1940
|
}
|
|
1941
|
-
o !== 0 &&
|
|
1941
|
+
o !== 0 && rt(e), fe.call(bt, r) ? bt[r](e, r, i) : Me(e, 'unknown document directive "' + r + '"');
|
|
1942
1942
|
}
|
|
1943
|
-
if (
|
|
1944
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
1943
|
+
if (W(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, W(e, !0, -1)) : a && C(e, "directives end mark is expected"), we(e, e.lineIndent - 1, Ke, !1, !0), W(e, !0, -1), e.checkLineBreaks && Wi.test(e.input.slice(t, e.position)) && Me(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && qe(e)) {
|
|
1944
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, W(e, !0, -1));
|
|
1945
1945
|
return;
|
|
1946
1946
|
}
|
|
1947
1947
|
if (e.position < e.length - 1)
|
|
@@ -1978,7 +1978,7 @@ function fa(e, t) {
|
|
|
1978
1978
|
var pa = da, ha = fa, yn = {
|
|
1979
1979
|
loadAll: pa,
|
|
1980
1980
|
load: ha
|
|
1981
|
-
}, vn = Object.prototype.toString, bn = Object.prototype.hasOwnProperty,
|
|
1981
|
+
}, vn = Object.prototype.toString, bn = Object.prototype.hasOwnProperty, at = 65279, ma = 9, Ee = 10, ga = 13, ya = 32, va = 33, ba = 34, Je = 35, xa = 37, Ca = 38, _a = 39, ka = 42, xn = 44, wa = 45, De = 58, Aa = 61, Sa = 62, Ia = 63, Ea = 64, Cn = 91, _n = 93, Ta = 96, kn = 123, Fa = 124, wn = 125, ee = {};
|
|
1982
1982
|
ee[0] = "\\0";
|
|
1983
1983
|
ee[7] = "\\a";
|
|
1984
1984
|
ee[8] = "\\b";
|
|
@@ -2032,9 +2032,9 @@ function Na(e) {
|
|
|
2032
2032
|
throw new te("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2033
2033
|
return "\\" + n + G.repeat("0", r - t.length) + t;
|
|
2034
2034
|
}
|
|
2035
|
-
var Ra = 1,
|
|
2035
|
+
var Ra = 1, Te = 2;
|
|
2036
2036
|
function Ba(e) {
|
|
2037
|
-
this.schema = e.schema ||
|
|
2037
|
+
this.schema = e.schema || nt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = G.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = La(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Te : Ra, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2038
2038
|
}
|
|
2039
2039
|
function _t(e, t) {
|
|
2040
2040
|
for (var n = G.repeat(" ", t), r = 0, i = -1, a = "", o, l = e.length; r < l; )
|
|
@@ -2043,7 +2043,7 @@ function _t(e, t) {
|
|
|
2043
2043
|
` && (a += n), a += o;
|
|
2044
2044
|
return a;
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function Ge(e, t) {
|
|
2047
2047
|
return `
|
|
2048
2048
|
` + G.repeat(" ", e.indent * t);
|
|
2049
2049
|
}
|
|
@@ -2054,32 +2054,32 @@ function Ka(e, t) {
|
|
|
2054
2054
|
return !0;
|
|
2055
2055
|
return !1;
|
|
2056
2056
|
}
|
|
2057
|
-
function
|
|
2057
|
+
function Ue(e) {
|
|
2058
2058
|
return e === ya || e === ma;
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2061
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2060
|
+
function Fe(e) {
|
|
2061
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== at || 65536 <= e && e <= 1114111;
|
|
2062
2062
|
}
|
|
2063
2063
|
function kt(e) {
|
|
2064
|
-
return
|
|
2064
|
+
return Fe(e) && e !== at && e !== ga && e !== Ee;
|
|
2065
2065
|
}
|
|
2066
2066
|
function wt(e, t, n) {
|
|
2067
|
-
var r = kt(e), i = r && !
|
|
2067
|
+
var r = kt(e), i = r && !Ue(e);
|
|
2068
2068
|
return (
|
|
2069
2069
|
// ns-plain-safe
|
|
2070
2070
|
(n ? (
|
|
2071
2071
|
// c = flow-in
|
|
2072
2072
|
r
|
|
2073
|
-
) : r && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn) && e !==
|
|
2073
|
+
) : r && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn) && e !== Je && !(t === De && !i) || kt(t) && !Ue(t) && e === Je || t === De && i
|
|
2074
2074
|
);
|
|
2075
2075
|
}
|
|
2076
2076
|
function Ma(e) {
|
|
2077
|
-
return
|
|
2077
|
+
return Fe(e) && e !== at && !Ue(e) && e !== wa && e !== Ia && e !== De && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn && e !== Je && e !== Ca && e !== ka && e !== va && e !== Fa && e !== Aa && e !== Sa && e !== _a && e !== ba && e !== xa && e !== Ea && e !== Ta;
|
|
2078
2078
|
}
|
|
2079
2079
|
function Da(e) {
|
|
2080
|
-
return !
|
|
2080
|
+
return !Ue(e) && e !== De;
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2082
|
+
function Se(e, t) {
|
|
2083
2083
|
var n = e.charCodeAt(t), r;
|
|
2084
2084
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
2085
2085
|
}
|
|
@@ -2087,34 +2087,34 @@ function An(e) {
|
|
|
2087
2087
|
var t = /^\n* /;
|
|
2088
2088
|
return t.test(e);
|
|
2089
2089
|
}
|
|
2090
|
-
var Sn = 1,
|
|
2090
|
+
var Sn = 1, Ze = 2, In = 3, En = 4, xe = 5;
|
|
2091
2091
|
function Ua(e, t, n, r, i, a, o, l) {
|
|
2092
|
-
var s, u = 0, d = null, c = !1,
|
|
2092
|
+
var s, u = 0, d = null, c = !1, h = !1, f = r !== -1, v = -1, b = Ma(Se(e, 0)) && Da(Se(e, e.length - 1));
|
|
2093
2093
|
if (t || o)
|
|
2094
2094
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
2095
|
-
if (u =
|
|
2095
|
+
if (u = Se(e, s), !Fe(u))
|
|
2096
2096
|
return xe;
|
|
2097
|
-
|
|
2097
|
+
b = b && wt(u, d, l), d = u;
|
|
2098
2098
|
}
|
|
2099
2099
|
else {
|
|
2100
2100
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
2101
|
-
if (u =
|
|
2102
|
-
c = !0,
|
|
2103
|
-
s -
|
|
2104
|
-
else if (!
|
|
2101
|
+
if (u = Se(e, s), u === Ee)
|
|
2102
|
+
c = !0, f && (h = h || // Foldable line = too long, and not more-indented.
|
|
2103
|
+
s - v - 1 > r && e[v + 1] !== " ", v = s);
|
|
2104
|
+
else if (!Fe(u))
|
|
2105
2105
|
return xe;
|
|
2106
|
-
|
|
2106
|
+
b = b && wt(u, d, l), d = u;
|
|
2107
2107
|
}
|
|
2108
|
-
|
|
2108
|
+
h = h || f && s - v - 1 > r && e[v + 1] !== " ";
|
|
2109
2109
|
}
|
|
2110
|
-
return !c && !
|
|
2110
|
+
return !c && !h ? b && !o && !i(e) ? Sn : a === Te ? xe : Ze : n > 9 && An(e) ? xe : o ? a === Te ? xe : Ze : h ? En : In;
|
|
2111
2111
|
}
|
|
2112
2112
|
function ja(e, t, n, r, i) {
|
|
2113
2113
|
e.dump = function() {
|
|
2114
2114
|
if (t.length === 0)
|
|
2115
|
-
return e.quotingType ===
|
|
2115
|
+
return e.quotingType === Te ? '""' : "''";
|
|
2116
2116
|
if (!e.noCompatMode && (Oa.indexOf(t) !== -1 || $a.test(t)))
|
|
2117
|
-
return e.quotingType ===
|
|
2117
|
+
return e.quotingType === Te ? '"' + t + '"' : "'" + t + "'";
|
|
2118
2118
|
var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), l = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2119
2119
|
function s(u) {
|
|
2120
2120
|
return Ka(e, u);
|
|
@@ -2131,7 +2131,7 @@ function ja(e, t, n, r, i) {
|
|
|
2131
2131
|
)) {
|
|
2132
2132
|
case Sn:
|
|
2133
2133
|
return t;
|
|
2134
|
-
case
|
|
2134
|
+
case Ze:
|
|
2135
2135
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2136
2136
|
case In:
|
|
2137
2137
|
return "|" + At(t, e.indent) + St(_t(t, a));
|
|
@@ -2181,7 +2181,7 @@ function It(e, t) {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
function Pa(e) {
|
|
2183
2183
|
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
|
|
2184
|
-
n =
|
|
2184
|
+
n = Se(e, i), r = ee[n], !r && Fe(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Na(n);
|
|
2185
2185
|
return t;
|
|
2186
2186
|
}
|
|
2187
2187
|
function Ha(e, t, n) {
|
|
@@ -2193,7 +2193,7 @@ function Ha(e, t, n) {
|
|
|
2193
2193
|
function Et(e, t, n, r) {
|
|
2194
2194
|
var i = "", a = e.tag, o, l, s;
|
|
2195
2195
|
for (o = 0, l = n.length; o < l; o += 1)
|
|
2196
|
-
s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (ce(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ce(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i +=
|
|
2196
|
+
s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (ce(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ce(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Ge(e, t)), e.dump && Ee === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2197
2197
|
e.tag = a, e.dump = i || "[]";
|
|
2198
2198
|
}
|
|
2199
2199
|
function Va(e, t, n) {
|
|
@@ -2203,7 +2203,7 @@ function Va(e, t, n) {
|
|
|
2203
2203
|
e.tag = i, e.dump = "{" + r + "}";
|
|
2204
2204
|
}
|
|
2205
2205
|
function Ya(e, t, n, r) {
|
|
2206
|
-
var i = "", a = e.tag, o = Object.keys(n), l, s, u, d, c,
|
|
2206
|
+
var i = "", a = e.tag, o = Object.keys(n), l, s, u, d, c, h;
|
|
2207
2207
|
if (e.sortKeys === !0)
|
|
2208
2208
|
o.sort();
|
|
2209
2209
|
else if (typeof e.sortKeys == "function")
|
|
@@ -2211,7 +2211,7 @@ function Ya(e, t, n, r) {
|
|
|
2211
2211
|
else if (e.sortKeys)
|
|
2212
2212
|
throw new te("sortKeys must be a boolean or a function");
|
|
2213
2213
|
for (l = 0, s = o.length; l < s; l += 1)
|
|
2214
|
-
|
|
2214
|
+
h = "", (!r || i !== "") && (h += Ge(e, t)), u = o[l], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), ce(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Ee === e.dump.charCodeAt(0) ? h += "?" : h += "? "), h += e.dump, c && (h += Ge(e, t)), ce(e, t + 1, d, !0, c) && (e.dump && Ee === e.dump.charCodeAt(0) ? h += ":" : h += ": ", h += e.dump, i += h));
|
|
2215
2215
|
e.tag = a, e.dump = i || "{}";
|
|
2216
2216
|
}
|
|
2217
2217
|
function Tt(e, t, n) {
|
|
@@ -2235,14 +2235,14 @@ function ce(e, t, n, r, i, a, o) {
|
|
|
2235
2235
|
e.tag = null, e.dump = n, Tt(e, n, !1) || Tt(e, n, !0);
|
|
2236
2236
|
var l = vn.call(e.dump), s = r, u;
|
|
2237
2237
|
r && (r = e.flowLevel < 0 || e.flowLevel > t);
|
|
2238
|
-
var d = l === "[object Object]" || l === "[object Array]", c,
|
|
2239
|
-
if (d && (c = e.duplicates.indexOf(n),
|
|
2238
|
+
var d = l === "[object Object]" || l === "[object Array]", c, h;
|
|
2239
|
+
if (d && (c = e.duplicates.indexOf(n), h = c !== -1), (e.tag !== null && e.tag !== "?" || h || e.indent !== 2 && t > 0) && (i = !1), h && e.usedDuplicates[c])
|
|
2240
2240
|
e.dump = "*ref_" + c;
|
|
2241
2241
|
else {
|
|
2242
|
-
if (d &&
|
|
2243
|
-
r && Object.keys(e.dump).length !== 0 ? (Ya(e, t, e.dump, i),
|
|
2242
|
+
if (d && h && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
|
|
2243
|
+
r && Object.keys(e.dump).length !== 0 ? (Ya(e, t, e.dump, i), h && (e.dump = "&ref_" + c + e.dump)) : (Va(e, t, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2244
2244
|
else if (l === "[object Array]")
|
|
2245
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Et(e, t - 1, e.dump, i) : Et(e, t, e.dump, i),
|
|
2245
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Et(e, t - 1, e.dump, i) : Et(e, t, e.dump, i), h && (e.dump = "&ref_" + c + e.dump)) : (Ha(e, t, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2246
2246
|
else if (l === "[object String]")
|
|
2247
2247
|
e.tag !== "?" && ja(e, e.dump, t, a, s);
|
|
2248
2248
|
else {
|
|
@@ -2260,21 +2260,21 @@ function ce(e, t, n, r, i, a, o) {
|
|
|
2260
2260
|
}
|
|
2261
2261
|
function za(e, t) {
|
|
2262
2262
|
var n = [], r = [], i, a;
|
|
2263
|
-
for (
|
|
2263
|
+
for (Qe(e, n, r), i = 0, a = r.length; i < a; i += 1)
|
|
2264
2264
|
t.duplicates.push(n[r[i]]);
|
|
2265
2265
|
t.usedDuplicates = new Array(a);
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function Qe(e, t, n) {
|
|
2268
2268
|
var r, i, a;
|
|
2269
2269
|
if (e !== null && typeof e == "object")
|
|
2270
2270
|
if (i = t.indexOf(e), i !== -1)
|
|
2271
2271
|
n.indexOf(i) === -1 && n.push(i);
|
|
2272
2272
|
else if (t.push(e), Array.isArray(e))
|
|
2273
2273
|
for (i = 0, a = e.length; i < a; i += 1)
|
|
2274
|
-
|
|
2274
|
+
Qe(e[i], t, n);
|
|
2275
2275
|
else
|
|
2276
2276
|
for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1)
|
|
2277
|
-
|
|
2277
|
+
Qe(e[r[i]], t, n);
|
|
2278
2278
|
}
|
|
2279
2279
|
function Wa(e, t) {
|
|
2280
2280
|
t = t || {};
|
|
@@ -2287,12 +2287,12 @@ function Wa(e, t) {
|
|
|
2287
2287
|
var Ja = Wa, Ga = {
|
|
2288
2288
|
dump: Ja
|
|
2289
2289
|
};
|
|
2290
|
-
function
|
|
2290
|
+
function ot(e, t) {
|
|
2291
2291
|
return function() {
|
|
2292
2292
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2293
2293
|
};
|
|
2294
2294
|
}
|
|
2295
|
-
var Za = X, Qa = Pt, Xa = zt, eo = Qt, to = Xt, no =
|
|
2295
|
+
var Za = X, Qa = Pt, Xa = zt, eo = Qt, to = Xt, no = nt, ro = yn.load, io = yn.loadAll, ao = Ga.dump, oo = te, lo = {
|
|
2296
2296
|
binary: an,
|
|
2297
2297
|
float: Zt,
|
|
2298
2298
|
map: Yt,
|
|
@@ -2306,7 +2306,7 @@ var Za = X, Qa = Pt, Xa = zt, eo = Qt, to = Xt, no = rt, ro = yn.load, io = yn.l
|
|
|
2306
2306
|
omap: on,
|
|
2307
2307
|
seq: Vt,
|
|
2308
2308
|
str: Ht
|
|
2309
|
-
}, so =
|
|
2309
|
+
}, so = ot("safeLoad", "load"), co = ot("safeLoadAll", "loadAll"), uo = ot("safeDump", "dump"), fo = {
|
|
2310
2310
|
Type: Za,
|
|
2311
2311
|
Schema: Qa,
|
|
2312
2312
|
FAILSAFE_SCHEMA: Xa,
|
|
@@ -2332,20 +2332,20 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2332
2332
|
}
|
|
2333
2333
|
},
|
|
2334
2334
|
setup(e) {
|
|
2335
|
-
const t = e, n =
|
|
2335
|
+
const t = e, n = A(() => {
|
|
2336
2336
|
const r = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, i]) => i !== null && i !== "" && (Array.isArray(i) ? i.length !== 0 : !0)));
|
|
2337
2337
|
return Object.keys(r).length === 0 && r.constructor === Object ? "" : fo.dump(r).trim();
|
|
2338
2338
|
});
|
|
2339
2339
|
return (r, i) => {
|
|
2340
2340
|
const a = K("KCodeBlock");
|
|
2341
|
-
return
|
|
2342
|
-
t.yamlRecord ? (
|
|
2341
|
+
return m(), I("div", po, [
|
|
2342
|
+
t.yamlRecord ? (m(), M(a, {
|
|
2343
2343
|
key: 0,
|
|
2344
2344
|
id: "yaml-codeblock",
|
|
2345
2345
|
code: n.value,
|
|
2346
2346
|
language: "yaml",
|
|
2347
2347
|
theme: "dark"
|
|
2348
|
-
}, null, 8, ["code"])) :
|
|
2348
|
+
}, null, 8, ["code"])) : D("", !0)
|
|
2349
2349
|
]);
|
|
2350
2350
|
};
|
|
2351
2351
|
}
|
|
@@ -2394,29 +2394,29 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2394
2394
|
}
|
|
2395
2395
|
},
|
|
2396
2396
|
setup(e) {
|
|
2397
|
-
const t = e, n =
|
|
2397
|
+
const t = e, n = Xe(), { i18n: { t: r } } = z.useI18n(), i = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), a = A(() => {
|
|
2398
2398
|
if (!t.record)
|
|
2399
2399
|
return t.record;
|
|
2400
2400
|
const o = JSON.parse(JSON.stringify(t.record));
|
|
2401
2401
|
return delete o.created_at, delete o.updated_at, o;
|
|
2402
2402
|
});
|
|
2403
|
-
return (o, l) => (
|
|
2404
|
-
e.format === "structured" ? (
|
|
2405
|
-
(
|
|
2403
|
+
return (o, l) => (m(), I(se, null, [
|
|
2404
|
+
e.format === "structured" ? (m(), I("div", ho, [
|
|
2405
|
+
(m(!0), I(se, null, ae(e.propListTypes, (s) => (m(), I("div", {
|
|
2406
2406
|
key: `config-card-details-${s}-props`,
|
|
2407
2407
|
class: de(`config-card-details-${s}-props`),
|
|
2408
2408
|
"data-testid": `config-card-details-${s}-props`
|
|
2409
2409
|
}, [
|
|
2410
|
-
s !== "basic" ? (
|
|
2411
|
-
(
|
|
2410
|
+
s !== "basic" ? (m(), I("div", go, O(s === "advanced" ? E(r)("baseConfigCard.sections.advanced") : E(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
|
|
2411
|
+
(m(!0), I(se, null, ae(e.propertyCollections[s], (u) => (m(), M(Dt, {
|
|
2412
2412
|
key: u.key,
|
|
2413
2413
|
item: u
|
|
2414
2414
|
}, ke({
|
|
2415
|
-
label:
|
|
2416
|
-
|
|
2415
|
+
label: x(() => [
|
|
2416
|
+
Y(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2417
2417
|
]),
|
|
2418
|
-
[u.key]:
|
|
2419
|
-
|
|
2418
|
+
[u.key]: x(({ rowValue: d }) => [
|
|
2419
|
+
Y(o.$slots, u.key, {
|
|
2420
2420
|
row: u,
|
|
2421
2421
|
rowValue: d
|
|
2422
2422
|
}, void 0, !0)
|
|
@@ -2425,33 +2425,33 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2425
2425
|
}, [
|
|
2426
2426
|
i(u) ? {
|
|
2427
2427
|
name: "label-tooltip",
|
|
2428
|
-
fn:
|
|
2429
|
-
|
|
2428
|
+
fn: x(() => [
|
|
2429
|
+
Y(o.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
|
|
2430
2430
|
]),
|
|
2431
2431
|
key: "0"
|
|
2432
2432
|
} : void 0
|
|
2433
2433
|
]), 1032, ["item"]))), 128))
|
|
2434
2434
|
], 10, mo))), 128))
|
|
2435
|
-
])) :
|
|
2436
|
-
e.format === "json" && t.record ? (
|
|
2435
|
+
])) : D("", !0),
|
|
2436
|
+
e.format === "json" && t.record ? (m(), M(Ut, {
|
|
2437
2437
|
key: 1,
|
|
2438
2438
|
config: t.config,
|
|
2439
2439
|
"fetcher-url": t.fetcherUrl,
|
|
2440
2440
|
"json-record": a.value,
|
|
2441
2441
|
"request-method": "get"
|
|
2442
|
-
}, null, 8, ["config", "fetcher-url", "json-record"])) :
|
|
2443
|
-
e.format === "yaml" && t.record ? (
|
|
2442
|
+
}, null, 8, ["config", "fetcher-url", "json-record"])) : D("", !0),
|
|
2443
|
+
e.format === "yaml" && t.record ? (m(), M(Tn, {
|
|
2444
2444
|
key: 2,
|
|
2445
2445
|
"yaml-record": a.value
|
|
2446
|
-
}, null, 8, ["yaml-record"])) :
|
|
2446
|
+
}, null, 8, ["yaml-record"])) : D("", !0)
|
|
2447
2447
|
], 64));
|
|
2448
2448
|
}
|
|
2449
|
-
}), vo = /* @__PURE__ */ ie(yo, [["__scopeId", "data-v-147a2f70"]]), le = "24px",
|
|
2449
|
+
}), vo = /* @__PURE__ */ ie(yo, [["__scopeId", "data-v-147a2f70"]]), le = "24px", Ne = (e, t) => {
|
|
2450
2450
|
const n = e.__vccOpts || e;
|
|
2451
2451
|
for (const [r, i] of t)
|
|
2452
2452
|
n[r] = i;
|
|
2453
2453
|
return n;
|
|
2454
|
-
}, bo = (e) => (
|
|
2454
|
+
}, bo = (e) => ($e("data-v-1d2a8d30"), e = e(), Le(), e), xo = ["aria-hidden"], Co = {
|
|
2455
2455
|
key: 0,
|
|
2456
2456
|
"data-testid": "kui-icon-svg-title"
|
|
2457
2457
|
}, _o = /* @__PURE__ */ bo(() => /* @__PURE__ */ L("path", {
|
|
@@ -2509,7 +2509,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2509
2509
|
}
|
|
2510
2510
|
},
|
|
2511
2511
|
setup(e) {
|
|
2512
|
-
const t = e, n =
|
|
2512
|
+
const t = e, n = A(() => {
|
|
2513
2513
|
if (typeof t.size == "number" && t.size > 0)
|
|
2514
2514
|
return `${t.size}px`;
|
|
2515
2515
|
if (typeof t.size == "string") {
|
|
@@ -2518,7 +2518,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2518
2518
|
return `${a}px`;
|
|
2519
2519
|
}
|
|
2520
2520
|
return le;
|
|
2521
|
-
}), r =
|
|
2521
|
+
}), r = A(() => ({
|
|
2522
2522
|
boxSizing: "border-box",
|
|
2523
2523
|
color: t.color,
|
|
2524
2524
|
display: t.display,
|
|
@@ -2526,14 +2526,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2526
2526
|
lineHeight: "0",
|
|
2527
2527
|
width: n.value
|
|
2528
2528
|
}));
|
|
2529
|
-
return (i, a) => (
|
|
2529
|
+
return (i, a) => (m(), M(pe(e.as), {
|
|
2530
2530
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2531
2531
|
class: "kui-icon add-icon",
|
|
2532
2532
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2533
|
-
style:
|
|
2533
|
+
style: Oe(r.value)
|
|
2534
2534
|
}, {
|
|
2535
|
-
default:
|
|
2536
|
-
(
|
|
2535
|
+
default: x(() => [
|
|
2536
|
+
(m(), I("svg", {
|
|
2537
2537
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2538
2538
|
"data-testid": "kui-icon-svg-add-icon",
|
|
2539
2539
|
fill: "none",
|
|
@@ -2543,14 +2543,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2543
2543
|
width: "100%",
|
|
2544
2544
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2545
2545
|
}, [
|
|
2546
|
-
e.title ? (
|
|
2546
|
+
e.title ? (m(), I("title", Co, O(e.title), 1)) : D("", !0),
|
|
2547
2547
|
_o
|
|
2548
2548
|
], 8, xo))
|
|
2549
2549
|
]),
|
|
2550
2550
|
_: 1
|
|
2551
2551
|
}, 8, ["aria-hidden", "style"]));
|
|
2552
2552
|
}
|
|
2553
|
-
}), wo = /* @__PURE__ */
|
|
2553
|
+
}), wo = /* @__PURE__ */ Ne(ko, [["__scopeId", "data-v-1d2a8d30"]]), Ao = (e) => ($e("data-v-929b4762"), e = e(), Le(), e), So = ["aria-hidden"], Io = {
|
|
2554
2554
|
key: 0,
|
|
2555
2555
|
"data-testid": "kui-icon-svg-title"
|
|
2556
2556
|
}, Eo = /* @__PURE__ */ Ao(() => /* @__PURE__ */ L("path", {
|
|
@@ -2608,7 +2608,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2608
2608
|
}
|
|
2609
2609
|
},
|
|
2610
2610
|
setup(e) {
|
|
2611
|
-
const t = e, n =
|
|
2611
|
+
const t = e, n = A(() => {
|
|
2612
2612
|
if (typeof t.size == "number" && t.size > 0)
|
|
2613
2613
|
return `${t.size}px`;
|
|
2614
2614
|
if (typeof t.size == "string") {
|
|
@@ -2617,7 +2617,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2617
2617
|
return `${a}px`;
|
|
2618
2618
|
}
|
|
2619
2619
|
return le;
|
|
2620
|
-
}), r =
|
|
2620
|
+
}), r = A(() => ({
|
|
2621
2621
|
boxSizing: "border-box",
|
|
2622
2622
|
color: t.color,
|
|
2623
2623
|
display: t.display,
|
|
@@ -2625,14 +2625,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2625
2625
|
lineHeight: "0",
|
|
2626
2626
|
width: n.value
|
|
2627
2627
|
}));
|
|
2628
|
-
return (i, a) => (
|
|
2628
|
+
return (i, a) => (m(), M(pe(e.as), {
|
|
2629
2629
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2630
2630
|
class: "kui-icon book-icon",
|
|
2631
2631
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2632
|
-
style:
|
|
2632
|
+
style: Oe(r.value)
|
|
2633
2633
|
}, {
|
|
2634
|
-
default:
|
|
2635
|
-
(
|
|
2634
|
+
default: x(() => [
|
|
2635
|
+
(m(), I("svg", {
|
|
2636
2636
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2637
2637
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2638
2638
|
fill: "none",
|
|
@@ -2642,14 +2642,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2642
2642
|
width: "100%",
|
|
2643
2643
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2644
2644
|
}, [
|
|
2645
|
-
e.title ? (
|
|
2645
|
+
e.title ? (m(), I("title", Io, O(e.title), 1)) : D("", !0),
|
|
2646
2646
|
Eo
|
|
2647
2647
|
], 8, So))
|
|
2648
2648
|
]),
|
|
2649
2649
|
_: 1
|
|
2650
2650
|
}, 8, ["aria-hidden", "style"]));
|
|
2651
2651
|
}
|
|
2652
|
-
}), Fo = /* @__PURE__ */
|
|
2652
|
+
}), Fo = /* @__PURE__ */ Ne(To, [["__scopeId", "data-v-929b4762"]]), Oo = (e) => ($e("data-v-219f8484"), e = e(), Le(), e), $o = ["aria-hidden"], Lo = {
|
|
2653
2653
|
key: 0,
|
|
2654
2654
|
"data-testid": "kui-icon-svg-title"
|
|
2655
2655
|
}, No = /* @__PURE__ */ Oo(() => /* @__PURE__ */ L("path", {
|
|
@@ -2707,7 +2707,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2707
2707
|
}
|
|
2708
2708
|
},
|
|
2709
2709
|
setup(e) {
|
|
2710
|
-
const t = e, n =
|
|
2710
|
+
const t = e, n = A(() => {
|
|
2711
2711
|
if (typeof t.size == "number" && t.size > 0)
|
|
2712
2712
|
return `${t.size}px`;
|
|
2713
2713
|
if (typeof t.size == "string") {
|
|
@@ -2716,7 +2716,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2716
2716
|
return `${a}px`;
|
|
2717
2717
|
}
|
|
2718
2718
|
return le;
|
|
2719
|
-
}), r =
|
|
2719
|
+
}), r = A(() => ({
|
|
2720
2720
|
boxSizing: "border-box",
|
|
2721
2721
|
color: t.color,
|
|
2722
2722
|
display: t.display,
|
|
@@ -2724,14 +2724,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2724
2724
|
lineHeight: "0",
|
|
2725
2725
|
width: n.value
|
|
2726
2726
|
}));
|
|
2727
|
-
return (i, a) => (
|
|
2727
|
+
return (i, a) => (m(), M(pe(e.as), {
|
|
2728
2728
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2729
2729
|
class: "kui-icon chevron-down-icon",
|
|
2730
2730
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
2731
|
-
style:
|
|
2731
|
+
style: Oe(r.value)
|
|
2732
2732
|
}, {
|
|
2733
|
-
default:
|
|
2734
|
-
(
|
|
2733
|
+
default: x(() => [
|
|
2734
|
+
(m(), I("svg", {
|
|
2735
2735
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2736
2736
|
"data-testid": "kui-icon-svg-chevron-down-icon",
|
|
2737
2737
|
fill: "none",
|
|
@@ -2741,14 +2741,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2741
2741
|
width: "100%",
|
|
2742
2742
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2743
2743
|
}, [
|
|
2744
|
-
e.title ? (
|
|
2744
|
+
e.title ? (m(), I("title", Lo, O(e.title), 1)) : D("", !0),
|
|
2745
2745
|
No
|
|
2746
2746
|
], 8, $o))
|
|
2747
2747
|
]),
|
|
2748
2748
|
_: 1
|
|
2749
2749
|
}, 8, ["aria-hidden", "style"]));
|
|
2750
2750
|
}
|
|
2751
|
-
}), Bo = /* @__PURE__ */
|
|
2751
|
+
}), Bo = /* @__PURE__ */ Ne(Ro, [["__scopeId", "data-v-219f8484"]]), Ko = (e) => ($e("data-v-ed11facd"), e = e(), Le(), e), Mo = ["aria-hidden"], Do = {
|
|
2752
2752
|
key: 0,
|
|
2753
2753
|
"data-testid": "kui-icon-svg-title"
|
|
2754
2754
|
}, Uo = /* @__PURE__ */ Ko(() => /* @__PURE__ */ L("path", {
|
|
@@ -2806,7 +2806,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2806
2806
|
}
|
|
2807
2807
|
},
|
|
2808
2808
|
setup(e) {
|
|
2809
|
-
const t = e, n =
|
|
2809
|
+
const t = e, n = A(() => {
|
|
2810
2810
|
if (typeof t.size == "number" && t.size > 0)
|
|
2811
2811
|
return `${t.size}px`;
|
|
2812
2812
|
if (typeof t.size == "string") {
|
|
@@ -2815,7 +2815,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2815
2815
|
return `${a}px`;
|
|
2816
2816
|
}
|
|
2817
2817
|
return le;
|
|
2818
|
-
}), r =
|
|
2818
|
+
}), r = A(() => ({
|
|
2819
2819
|
boxSizing: "border-box",
|
|
2820
2820
|
color: t.color,
|
|
2821
2821
|
display: t.display,
|
|
@@ -2823,14 +2823,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2823
2823
|
lineHeight: "0",
|
|
2824
2824
|
width: n.value
|
|
2825
2825
|
}));
|
|
2826
|
-
return (i, a) => (
|
|
2826
|
+
return (i, a) => (m(), M(pe(e.as), {
|
|
2827
2827
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2828
2828
|
class: "kui-icon close-icon",
|
|
2829
2829
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
2830
|
-
style:
|
|
2830
|
+
style: Oe(r.value)
|
|
2831
2831
|
}, {
|
|
2832
|
-
default:
|
|
2833
|
-
(
|
|
2832
|
+
default: x(() => [
|
|
2833
|
+
(m(), I("svg", {
|
|
2834
2834
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2835
2835
|
"data-testid": "kui-icon-svg-close-icon",
|
|
2836
2836
|
fill: "none",
|
|
@@ -2840,14 +2840,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2840
2840
|
width: "100%",
|
|
2841
2841
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2842
2842
|
}, [
|
|
2843
|
-
e.title ? (
|
|
2843
|
+
e.title ? (m(), I("title", Do, O(e.title), 1)) : D("", !0),
|
|
2844
2844
|
Uo
|
|
2845
2845
|
], 8, Mo))
|
|
2846
2846
|
]),
|
|
2847
2847
|
_: 1
|
|
2848
2848
|
}, 8, ["aria-hidden", "style"]));
|
|
2849
2849
|
}
|
|
2850
|
-
}), qo = /* @__PURE__ */
|
|
2850
|
+
}), qo = /* @__PURE__ */ Ne(jo, [["__scopeId", "data-v-ed11facd"]]), Po = (e) => ($e("data-v-4399d24a"), e = e(), Le(), e), Ho = ["aria-hidden"], Vo = {
|
|
2851
2851
|
key: 0,
|
|
2852
2852
|
"data-testid": "kui-icon-svg-title"
|
|
2853
2853
|
}, Yo = /* @__PURE__ */ Po(() => /* @__PURE__ */ L("path", {
|
|
@@ -2905,7 +2905,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2905
2905
|
}
|
|
2906
2906
|
},
|
|
2907
2907
|
setup(e) {
|
|
2908
|
-
const t = e, n =
|
|
2908
|
+
const t = e, n = A(() => {
|
|
2909
2909
|
if (typeof t.size == "number" && t.size > 0)
|
|
2910
2910
|
return `${t.size}px`;
|
|
2911
2911
|
if (typeof t.size == "string") {
|
|
@@ -2914,7 +2914,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2914
2914
|
return `${a}px`;
|
|
2915
2915
|
}
|
|
2916
2916
|
return le;
|
|
2917
|
-
}), r =
|
|
2917
|
+
}), r = A(() => ({
|
|
2918
2918
|
boxSizing: "border-box",
|
|
2919
2919
|
color: t.color,
|
|
2920
2920
|
display: t.display,
|
|
@@ -2922,14 +2922,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2922
2922
|
lineHeight: "0",
|
|
2923
2923
|
width: n.value
|
|
2924
2924
|
}));
|
|
2925
|
-
return (i, a) => (
|
|
2925
|
+
return (i, a) => (m(), M(pe(e.as), {
|
|
2926
2926
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2927
2927
|
class: "kui-icon copy-icon",
|
|
2928
2928
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
2929
|
-
style:
|
|
2929
|
+
style: Oe(r.value)
|
|
2930
2930
|
}, {
|
|
2931
|
-
default:
|
|
2932
|
-
(
|
|
2931
|
+
default: x(() => [
|
|
2932
|
+
(m(), I("svg", {
|
|
2933
2933
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2934
2934
|
"data-testid": "kui-icon-svg-copy-icon",
|
|
2935
2935
|
fill: "none",
|
|
@@ -2939,14 +2939,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2939
2939
|
width: "100%",
|
|
2940
2940
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2941
2941
|
}, [
|
|
2942
|
-
e.title ? (
|
|
2942
|
+
e.title ? (m(), I("title", Vo, O(e.title), 1)) : D("", !0),
|
|
2943
2943
|
Yo
|
|
2944
2944
|
], 8, Ho))
|
|
2945
2945
|
]),
|
|
2946
2946
|
_: 1
|
|
2947
2947
|
}, 8, ["aria-hidden", "style"]));
|
|
2948
2948
|
}
|
|
2949
|
-
}), Wo = /* @__PURE__ */
|
|
2949
|
+
}), Wo = /* @__PURE__ */ Ne(zo, [["__scopeId", "data-v-4399d24a"]]), Jo = {
|
|
2950
2950
|
class: "config-card-title",
|
|
2951
2951
|
"data-testid": "config-card-title"
|
|
2952
2952
|
}, Go = { class: "config-card-actions" }, Zo = ["href"], Qo = { class: "config-card-details-section" }, Xo = /* @__PURE__ */ H({
|
|
@@ -3027,8 +3027,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3027
3027
|
},
|
|
3028
3028
|
emits: ["loading", "fetch:success", "fetch:error"],
|
|
3029
3029
|
setup(e, { emit: t }) {
|
|
3030
|
-
var
|
|
3031
|
-
const n = t, r = e, { i18n: { t: i } } =
|
|
3030
|
+
var y;
|
|
3031
|
+
const n = t, r = e, { i18n: { t: i } } = z.useI18n(), { getMessageFromError: a } = z.useErrors(), { convertKeyToTitle: o } = z.useStringHelpers(), { axiosInstance: l } = z.useAxios((y = r.config) == null ? void 0 : y.axiosRequestConfig), s = [
|
|
3032
3032
|
{
|
|
3033
3033
|
label: i("baseConfigCard.general.structuredFormat"),
|
|
3034
3034
|
value: "structured",
|
|
@@ -3042,8 +3042,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3042
3042
|
label: "YAML",
|
|
3043
3043
|
value: "yaml"
|
|
3044
3044
|
}
|
|
3045
|
-
], u = B("structured"), d = (
|
|
3046
|
-
u.value =
|
|
3045
|
+
], u = B("structured"), d = (g) => {
|
|
3046
|
+
u.value = g == null ? void 0 : g.value;
|
|
3047
3047
|
}, c = {
|
|
3048
3048
|
id: {
|
|
3049
3049
|
type: P.ID,
|
|
@@ -3078,123 +3078,123 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3078
3078
|
// the last property displayed
|
|
3079
3079
|
section: re.Basic
|
|
3080
3080
|
}
|
|
3081
|
-
},
|
|
3082
|
-
var
|
|
3083
|
-
if (!
|
|
3081
|
+
}, h = B(!1), f = B(!1), v = B(""), b = B({}), _ = A(() => {
|
|
3082
|
+
var F, w, U;
|
|
3083
|
+
if (!b.value)
|
|
3084
3084
|
return [];
|
|
3085
|
-
const
|
|
3086
|
-
for (const T in
|
|
3087
|
-
const
|
|
3088
|
-
let q =
|
|
3089
|
-
(
|
|
3085
|
+
const g = [], $ = Object.keys(b.value).length;
|
|
3086
|
+
for (const T in b.value) {
|
|
3087
|
+
const S = (w = (F = r.configSchema) == null ? void 0 : F[T]) == null ? void 0 : w.order, j = (U = c[T]) == null ? void 0 : U.order;
|
|
3088
|
+
let q = $;
|
|
3089
|
+
(j || j === 0) && (q = j === -1 ? $ + 1 : j), S && (q = S === -1 ? $ + 1 : S), g.push([T, q]);
|
|
3090
3090
|
}
|
|
3091
|
-
return
|
|
3092
|
-
return T[1] -
|
|
3093
|
-
}),
|
|
3094
|
-
var
|
|
3095
|
-
const
|
|
3091
|
+
return g.sort(function(T, S) {
|
|
3092
|
+
return T[1] - S[1];
|
|
3093
|
+
}), g.map((T) => {
|
|
3094
|
+
var he, lt;
|
|
3095
|
+
const S = T[0], j = (he = b.value) == null ? void 0 : he[S], q = ((lt = r.configSchema) == null ? void 0 : lt[S]) || {}, J = c[S];
|
|
3096
3096
|
return {
|
|
3097
|
-
key:
|
|
3098
|
-
value:
|
|
3097
|
+
key: S,
|
|
3098
|
+
value: j,
|
|
3099
3099
|
hidden: q.hidden || !1,
|
|
3100
|
-
type: q.type ?? ((
|
|
3101
|
-
label: q.label ?? ((
|
|
3102
|
-
tooltip: q.tooltip ?? ((
|
|
3103
|
-
section: q.section ?? ((
|
|
3100
|
+
type: q.type ?? ((J == null ? void 0 : J.type) || P.Text),
|
|
3101
|
+
label: q.label ?? ((J == null ? void 0 : J.label) || o(S)),
|
|
3102
|
+
tooltip: q.tooltip ?? ((J == null ? void 0 : J.tooltip) || void 0),
|
|
3103
|
+
section: q.section ?? ((J == null ? void 0 : J.section) || re.Advanced)
|
|
3104
3104
|
};
|
|
3105
3105
|
}).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
|
|
3106
|
-
}), N =
|
|
3107
|
-
var
|
|
3108
|
-
if (!
|
|
3106
|
+
}), N = A(() => {
|
|
3107
|
+
var w, U;
|
|
3108
|
+
if (!b.value || !r.pluginConfigKey)
|
|
3109
3109
|
return [];
|
|
3110
|
-
const
|
|
3111
|
-
for (const T in
|
|
3112
|
-
const
|
|
3113
|
-
let q =
|
|
3114
|
-
|
|
3110
|
+
const g = b.value[r.pluginConfigKey] || {}, $ = Object.keys(g).length, F = [];
|
|
3111
|
+
for (const T in g) {
|
|
3112
|
+
const S = (U = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : U.order, j = g[T];
|
|
3113
|
+
let q = j != null && j !== "" ? $ - 1 : $;
|
|
3114
|
+
S && (q = S === -1 ? $ + 1 : S), F.push([T, q]);
|
|
3115
3115
|
}
|
|
3116
|
-
return
|
|
3117
|
-
return T[1] -
|
|
3118
|
-
}),
|
|
3119
|
-
var
|
|
3120
|
-
const
|
|
3116
|
+
return F.sort(function(T, S) {
|
|
3117
|
+
return T[1] - S[1];
|
|
3118
|
+
}), F.map((T) => {
|
|
3119
|
+
var J;
|
|
3120
|
+
const S = T[0], j = g[S], q = ((J = r.pluginConfigSchema) == null ? void 0 : J[S]) || {};
|
|
3121
3121
|
return {
|
|
3122
|
-
key:
|
|
3123
|
-
value:
|
|
3122
|
+
key: S,
|
|
3123
|
+
value: j,
|
|
3124
3124
|
hidden: q.hidden || !1,
|
|
3125
3125
|
type: q.type ?? P.Text,
|
|
3126
|
-
label: q.label ?? o(
|
|
3126
|
+
label: q.label ?? o(S),
|
|
3127
3127
|
tooltip: q.tooltip ?? void 0,
|
|
3128
3128
|
section: re.Plugin
|
|
3129
3129
|
};
|
|
3130
3130
|
}).filter((T) => !T.hidden);
|
|
3131
|
-
}), k =
|
|
3132
|
-
var
|
|
3131
|
+
}), k = A(() => {
|
|
3132
|
+
var g, $, F, w;
|
|
3133
3133
|
return {
|
|
3134
|
-
basic: (
|
|
3135
|
-
advanced: (
|
|
3136
|
-
plugin: (
|
|
3134
|
+
basic: (g = _.value) == null ? void 0 : g.filter((U) => U.section === re.Basic),
|
|
3135
|
+
advanced: ($ = _.value) == null ? void 0 : $.filter((U) => U.section === re.Advanced),
|
|
3136
|
+
plugin: (w = N.value) == null ? void 0 : w.concat((F = _.value) == null ? void 0 : F.filter((U) => U.section === re.Plugin))
|
|
3137
3137
|
};
|
|
3138
|
-
}), Z =
|
|
3139
|
-
const
|
|
3140
|
-
return k.value.basic.length &&
|
|
3141
|
-
}),
|
|
3142
|
-
var
|
|
3143
|
-
let
|
|
3144
|
-
return r.config.app === "konnect" ?
|
|
3138
|
+
}), Z = A(() => {
|
|
3139
|
+
const g = [];
|
|
3140
|
+
return k.value.basic.length && g.push("basic"), k.value.advanced.length && g.push("advanced"), k.value.plugin.length && g.push("plugin"), g;
|
|
3141
|
+
}), p = A(() => {
|
|
3142
|
+
var $, F;
|
|
3143
|
+
let g = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3144
|
+
return r.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, (($ = r.config) == null ? void 0 : $.controlPlaneId) || "") : r.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), g = g.replace(/{id}/gi, r.config.entityId), g;
|
|
3145
3145
|
});
|
|
3146
|
-
return Ae(
|
|
3147
|
-
n("loading",
|
|
3146
|
+
return Ae(h, (g) => {
|
|
3147
|
+
n("loading", g);
|
|
3148
3148
|
}, { immediate: !0 }), Lt(async () => {
|
|
3149
|
-
|
|
3149
|
+
f.value = !1, h.value = !0;
|
|
3150
3150
|
try {
|
|
3151
|
-
const { data:
|
|
3151
|
+
const { data: g } = await l.get(p.value);
|
|
3152
3152
|
if (r.dataKey)
|
|
3153
|
-
if (typeof
|
|
3154
|
-
|
|
3153
|
+
if (typeof g[r.dataKey] < "u")
|
|
3154
|
+
b.value = { ...g[r.dataKey] };
|
|
3155
3155
|
else
|
|
3156
3156
|
throw new Error(i("errors.dataKeyUndefined", { dataKey: r.dataKey }));
|
|
3157
3157
|
else
|
|
3158
|
-
|
|
3159
|
-
Object.keys(r.configSchema).filter((
|
|
3160
|
-
|
|
3161
|
-
}), n("fetch:success",
|
|
3162
|
-
} catch (
|
|
3163
|
-
const
|
|
3164
|
-
|
|
3158
|
+
b.value = { ...g };
|
|
3159
|
+
Object.keys(r.configSchema).filter((F) => r.configSchema[F].forceShow).forEach((F) => {
|
|
3160
|
+
b.value && typeof b.value[F] > "u" && (b.value[F] = null);
|
|
3161
|
+
}), n("fetch:success", g);
|
|
3162
|
+
} catch (g) {
|
|
3163
|
+
const $ = a(g);
|
|
3164
|
+
v.value = $.startsWith("code") ? i("baseConfigCard.errors.load") : $, f.value = !0, n("fetch:error", g);
|
|
3165
3165
|
} finally {
|
|
3166
|
-
|
|
3166
|
+
h.value = !1;
|
|
3167
3167
|
}
|
|
3168
|
-
}), (
|
|
3169
|
-
const
|
|
3170
|
-
return
|
|
3168
|
+
}), (g, $) => {
|
|
3169
|
+
const F = K("KLabel"), w = K("KSelect"), U = K("KButton"), T = K("KSkeleton"), S = K("KEmptyState"), j = K("KCard");
|
|
3170
|
+
return m(), M(j, {
|
|
3171
3171
|
class: "kong-ui-entity-base-config-card",
|
|
3172
3172
|
"title-tag": e.titleTag
|
|
3173
3173
|
}, ke({
|
|
3174
|
-
actions:
|
|
3174
|
+
actions: x(() => [
|
|
3175
3175
|
L("div", Go, [
|
|
3176
|
-
|
|
3177
|
-
R(
|
|
3176
|
+
Y(g.$slots, "actions", {}, void 0, !0),
|
|
3177
|
+
R(F, {
|
|
3178
3178
|
class: "config-format-select-label",
|
|
3179
3179
|
"data-testid": "config-format-select-label"
|
|
3180
3180
|
}, {
|
|
3181
|
-
default:
|
|
3182
|
-
|
|
3181
|
+
default: x(() => [
|
|
3182
|
+
V(O(e.label), 1)
|
|
3183
3183
|
]),
|
|
3184
3184
|
_: 1
|
|
3185
3185
|
}),
|
|
3186
|
-
R(
|
|
3186
|
+
R(w, {
|
|
3187
3187
|
"data-testid": "select-config-format",
|
|
3188
3188
|
items: s,
|
|
3189
3189
|
onChange: d
|
|
3190
3190
|
}),
|
|
3191
|
-
e.configCardDoc ? (
|
|
3191
|
+
e.configCardDoc ? (m(), M(U, {
|
|
3192
3192
|
key: 0,
|
|
3193
3193
|
appearance: "tertiary",
|
|
3194
3194
|
class: "book-icon",
|
|
3195
3195
|
"data-testid": "book-icon"
|
|
3196
3196
|
}, {
|
|
3197
|
-
default:
|
|
3197
|
+
default: x(() => [
|
|
3198
3198
|
L("a", {
|
|
3199
3199
|
href: e.configCardDoc,
|
|
3200
3200
|
rel: "noopener",
|
|
@@ -3204,40 +3204,40 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3204
3204
|
], 8, Zo)
|
|
3205
3205
|
]),
|
|
3206
3206
|
_: 1
|
|
3207
|
-
})) :
|
|
3207
|
+
})) : D("", !0)
|
|
3208
3208
|
])
|
|
3209
3209
|
]),
|
|
3210
|
-
default:
|
|
3211
|
-
|
|
3210
|
+
default: x(() => [
|
|
3211
|
+
h.value ? (m(), M(T, {
|
|
3212
3212
|
key: 0,
|
|
3213
3213
|
"data-testid": "config-card-loader",
|
|
3214
3214
|
"table-columns": 2,
|
|
3215
3215
|
type: "table"
|
|
3216
|
-
})) :
|
|
3216
|
+
})) : f.value ? (m(), M(S, {
|
|
3217
3217
|
key: 1,
|
|
3218
3218
|
"data-testid": "config-card-fetch-error",
|
|
3219
3219
|
"icon-variant": "error"
|
|
3220
3220
|
}, {
|
|
3221
|
-
default:
|
|
3222
|
-
L("h3", null,
|
|
3221
|
+
default: x(() => [
|
|
3222
|
+
L("h3", null, O(v.value), 1)
|
|
3223
3223
|
]),
|
|
3224
3224
|
_: 1
|
|
3225
|
-
})) :
|
|
3225
|
+
})) : D("", !0),
|
|
3226
3226
|
L("div", Qo, [
|
|
3227
3227
|
R(vo, {
|
|
3228
3228
|
config: e.config,
|
|
3229
|
-
"fetcher-url":
|
|
3229
|
+
"fetcher-url": p.value,
|
|
3230
3230
|
format: u.value,
|
|
3231
3231
|
"prop-list-types": Z.value,
|
|
3232
3232
|
"property-collections": k.value,
|
|
3233
|
-
record:
|
|
3233
|
+
record: b.value
|
|
3234
3234
|
}, ke({ _: 2 }, [
|
|
3235
|
-
ae(Object.keys(
|
|
3235
|
+
ae(Object.keys(g.$slots), (q) => ({
|
|
3236
3236
|
name: q,
|
|
3237
|
-
fn:
|
|
3238
|
-
|
|
3239
|
-
row:
|
|
3240
|
-
rowValue:
|
|
3237
|
+
fn: x(({ row: J, rowValue: he }) => [
|
|
3238
|
+
Y(g.$slots, q, {
|
|
3239
|
+
row: J,
|
|
3240
|
+
rowValue: he
|
|
3241
3241
|
}, void 0, !0)
|
|
3242
3242
|
])
|
|
3243
3243
|
}))
|
|
@@ -3248,10 +3248,10 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3248
3248
|
}, [
|
|
3249
3249
|
e.hideTitle ? void 0 : {
|
|
3250
3250
|
name: "title",
|
|
3251
|
-
fn:
|
|
3251
|
+
fn: x(() => [
|
|
3252
3252
|
L("span", Jo, [
|
|
3253
|
-
|
|
3254
|
-
|
|
3253
|
+
Y(g.$slots, "title", {}, () => [
|
|
3254
|
+
V(O(E(i)("baseConfigCard.title")), 1)
|
|
3255
3255
|
], !0)
|
|
3256
3256
|
])
|
|
3257
3257
|
]),
|
|
@@ -3325,13 +3325,13 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3325
3325
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3326
3326
|
setup(e, { emit: t }) {
|
|
3327
3327
|
var Z;
|
|
3328
|
-
const n = t, r = e, i = jn(), { i18n: { t: a } } =
|
|
3329
|
-
var
|
|
3330
|
-
let
|
|
3331
|
-
return r.config.app === "konnect" ?
|
|
3332
|
-
}),
|
|
3333
|
-
|
|
3334
|
-
},
|
|
3328
|
+
const n = t, r = e, i = jn(), { i18n: { t: a } } = z.useI18n(), { getMessageFromError: o } = z.useErrors(), { axiosInstance: l } = z.useAxios((Z = r.config) == null ? void 0 : Z.axiosRequestConfig), s = B(!1), u = B(!1), d = B(""), c = A(() => r.canSubmit === !1 || r.isReadonly), h = B(!1), f = A(() => {
|
|
3329
|
+
var y, g;
|
|
3330
|
+
let p = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3331
|
+
return r.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (g = r.config) != null && g.workspace ? `/${r.config.workspace}` : "")), r.editId ? (p = p.replace(/{id}/gi, r.editId), p) : (p = p.replace(/\/{id}/gi, ""), p);
|
|
3332
|
+
}), v = () => {
|
|
3333
|
+
h.value = !h.value;
|
|
3334
|
+
}, b = () => {
|
|
3335
3335
|
r.config.cancelRoute ? i.push(r.config.cancelRoute) : _();
|
|
3336
3336
|
}, _ = () => {
|
|
3337
3337
|
n("cancel");
|
|
@@ -3347,83 +3347,83 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3347
3347
|
hash: "#json"
|
|
3348
3348
|
}
|
|
3349
3349
|
]);
|
|
3350
|
-
return Ae(() => s.value, (
|
|
3351
|
-
n("loading",
|
|
3350
|
+
return Ae(() => s.value, (p) => {
|
|
3351
|
+
n("loading", p);
|
|
3352
3352
|
}, { immediate: !0 }), Lt(async () => {
|
|
3353
3353
|
if (r.editId)
|
|
3354
3354
|
try {
|
|
3355
3355
|
u.value = !1, s.value = !0;
|
|
3356
|
-
const { data:
|
|
3357
|
-
n("fetch:success",
|
|
3358
|
-
} catch (
|
|
3359
|
-
const
|
|
3360
|
-
d.value =
|
|
3356
|
+
const { data: p } = await l.get(f.value);
|
|
3357
|
+
n("fetch:success", p);
|
|
3358
|
+
} catch (p) {
|
|
3359
|
+
const y = o(p);
|
|
3360
|
+
d.value = y.startsWith("code") ? a("baseForm.errors.edit") : y, u.value = !0, n("fetch:error", p);
|
|
3361
3361
|
} finally {
|
|
3362
3362
|
s.value = !1;
|
|
3363
3363
|
}
|
|
3364
|
-
}), (
|
|
3365
|
-
const
|
|
3366
|
-
return
|
|
3367
|
-
default:
|
|
3368
|
-
s.value ? (
|
|
3364
|
+
}), (p, y) => {
|
|
3365
|
+
const g = K("KSkeleton"), $ = K("KEmptyState"), F = K("KAlert"), w = K("KButton"), U = K("KTabs"), T = K("KSlideout"), S = K("KCard");
|
|
3366
|
+
return m(), M(S, { class: "kong-ui-entity-base-form" }, {
|
|
3367
|
+
default: x(() => [
|
|
3368
|
+
s.value ? (m(), M(g, {
|
|
3369
3369
|
key: 0,
|
|
3370
3370
|
type: "form"
|
|
3371
|
-
})) : u.value ? (
|
|
3371
|
+
})) : u.value ? (m(), M($, {
|
|
3372
3372
|
key: 1,
|
|
3373
3373
|
"action-button-text": E(a)("baseForm.actions.back"),
|
|
3374
3374
|
"data-testid": "form-fetch-error",
|
|
3375
3375
|
"icon-variant": "error",
|
|
3376
|
-
onClickAction:
|
|
3376
|
+
onClickAction: b
|
|
3377
3377
|
}, {
|
|
3378
|
-
default:
|
|
3379
|
-
L("h3", null,
|
|
3378
|
+
default: x(() => [
|
|
3379
|
+
L("h3", null, O(d.value), 1)
|
|
3380
3380
|
]),
|
|
3381
3381
|
_: 1
|
|
3382
|
-
}, 8, ["action-button-text"])) : (
|
|
3382
|
+
}, 8, ["action-button-text"])) : (m(), I("form", {
|
|
3383
3383
|
key: 2,
|
|
3384
3384
|
"data-testid": "form-content",
|
|
3385
3385
|
novalidate: r.noValidate,
|
|
3386
|
-
onReset:
|
|
3387
|
-
onSubmit:
|
|
3386
|
+
onReset: ze(_, ["prevent"]),
|
|
3387
|
+
onSubmit: ze(N, ["prevent"])
|
|
3388
3388
|
}, [
|
|
3389
|
-
|
|
3390
|
-
e.errorMessage ? (
|
|
3389
|
+
Y(p.$slots, "default", {}, void 0, !0),
|
|
3390
|
+
e.errorMessage ? (m(), M(F, {
|
|
3391
3391
|
key: 0,
|
|
3392
3392
|
appearance: "danger",
|
|
3393
3393
|
"data-testid": "form-error",
|
|
3394
3394
|
message: e.errorMessage
|
|
3395
|
-
}, null, 8, ["message"])) :
|
|
3395
|
+
}, null, 8, ["message"])) : D("", !0),
|
|
3396
3396
|
L("div", tl, [
|
|
3397
|
-
|
|
3398
|
-
R(
|
|
3397
|
+
Y(p.$slots, "form-actions", {}, () => [
|
|
3398
|
+
R(w, {
|
|
3399
3399
|
appearance: "tertiary",
|
|
3400
3400
|
"data-testid": "form-view-configuration",
|
|
3401
|
-
onClick:
|
|
3401
|
+
onClick: y[0] || (y[0] = (j) => v())
|
|
3402
3402
|
}, {
|
|
3403
|
-
default:
|
|
3404
|
-
|
|
3403
|
+
default: x(() => [
|
|
3404
|
+
V(O(E(a)("baseForm.actions.viewConfiguration")), 1)
|
|
3405
3405
|
]),
|
|
3406
3406
|
_: 1
|
|
3407
3407
|
}),
|
|
3408
|
-
R(
|
|
3408
|
+
R(w, {
|
|
3409
3409
|
appearance: "secondary",
|
|
3410
3410
|
"data-testid": "form-cancel",
|
|
3411
3411
|
disabled: e.isReadonly,
|
|
3412
3412
|
type: "reset"
|
|
3413
3413
|
}, {
|
|
3414
|
-
default:
|
|
3415
|
-
|
|
3414
|
+
default: x(() => [
|
|
3415
|
+
V(O(E(a)("baseForm.actions.cancel")), 1)
|
|
3416
3416
|
]),
|
|
3417
3417
|
_: 1
|
|
3418
3418
|
}, 8, ["disabled"]),
|
|
3419
|
-
R(
|
|
3419
|
+
R(w, {
|
|
3420
3420
|
appearance: "primary",
|
|
3421
3421
|
"data-testid": "form-submit",
|
|
3422
3422
|
disabled: c.value,
|
|
3423
3423
|
type: "submit"
|
|
3424
3424
|
}, {
|
|
3425
|
-
default:
|
|
3426
|
-
|
|
3425
|
+
default: x(() => [
|
|
3426
|
+
V(O(E(a)("baseForm.actions.save")), 1)
|
|
3427
3427
|
]),
|
|
3428
3428
|
_: 1
|
|
3429
3429
|
}, 8, ["disabled"])
|
|
@@ -3436,24 +3436,24 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3436
3436
|
"has-overlay": !1,
|
|
3437
3437
|
"offset-top": 60,
|
|
3438
3438
|
title: E(a)("baseForm.configuration.title"),
|
|
3439
|
-
visible:
|
|
3440
|
-
onClose:
|
|
3439
|
+
visible: h.value,
|
|
3440
|
+
onClose: y[1] || (y[1] = (j) => v())
|
|
3441
3441
|
}, {
|
|
3442
|
-
default:
|
|
3443
|
-
L("div", null,
|
|
3444
|
-
R(
|
|
3442
|
+
default: x(() => [
|
|
3443
|
+
L("div", null, O(E(a)("baseForm.configuration.message")), 1),
|
|
3444
|
+
R(U, {
|
|
3445
3445
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3446
3446
|
tabs: k.value
|
|
3447
3447
|
}, {
|
|
3448
|
-
json:
|
|
3448
|
+
json: x(() => [
|
|
3449
3449
|
R(Ut, {
|
|
3450
3450
|
config: e.config,
|
|
3451
|
-
"fetcher-url":
|
|
3451
|
+
"fetcher-url": f.value,
|
|
3452
3452
|
"json-record": r.formFields,
|
|
3453
3453
|
"request-method": r.editId ? "put" : "post"
|
|
3454
3454
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
3455
3455
|
]),
|
|
3456
|
-
yaml:
|
|
3456
|
+
yaml: x(() => [
|
|
3457
3457
|
R(Tn, {
|
|
3458
3458
|
"yaml-record": r.formFields
|
|
3459
3459
|
}, null, 8, ["yaml-record"])
|
|
@@ -3485,17 +3485,17 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3485
3485
|
}
|
|
3486
3486
|
},
|
|
3487
3487
|
setup(e) {
|
|
3488
|
-
const t = e, n =
|
|
3488
|
+
const t = e, n = A(() => {
|
|
3489
3489
|
var _;
|
|
3490
3490
|
return ((_ = t.rowEl) == null ? void 0 : _.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3491
|
-
}), r =
|
|
3491
|
+
}), r = A(() => {
|
|
3492
3492
|
var _;
|
|
3493
3493
|
return ((_ = n.value) == null ? void 0 : _.querySelector('[data-truncate="true"]')) || null;
|
|
3494
|
-
}), i =
|
|
3494
|
+
}), i = A(() => {
|
|
3495
3495
|
var N, k;
|
|
3496
3496
|
const _ = (N = t.rowEl) == null ? void 0 : N.querySelectorAll("td");
|
|
3497
3497
|
return _ ? ((k = _[0]) == null ? void 0 : k.getAttribute("data-testid")) === t.keyName : !1;
|
|
3498
|
-
}), a =
|
|
3498
|
+
}), a = A(() => i.value || t.tooltip);
|
|
3499
3499
|
let o;
|
|
3500
3500
|
const l = () => {
|
|
3501
3501
|
o && (o.disconnect(), o = void 0);
|
|
@@ -3503,12 +3503,12 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3503
3503
|
var N, k, Z;
|
|
3504
3504
|
let _ = ((N = n.value) == null ? void 0 : N.clientWidth) || 0;
|
|
3505
3505
|
if (n.value && "getComputedStyle" in window) {
|
|
3506
|
-
const
|
|
3507
|
-
_ -= (parseFloat(
|
|
3506
|
+
const p = window.getComputedStyle(n.value);
|
|
3507
|
+
_ -= (parseFloat(p.paddingLeft) || 0) + (parseFloat(p.paddingRight) || 0);
|
|
3508
3508
|
}
|
|
3509
|
-
d.value = ((k = r.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, c.value = _,
|
|
3510
|
-
}, u = B({}), d = B(0), c = B(0),
|
|
3511
|
-
|
|
3509
|
+
d.value = ((k = r.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, c.value = _, h.value = ((Z = u.value) == null ? void 0 : Z.innerText) || "";
|
|
3510
|
+
}, u = B({}), d = B(0), c = B(0), h = B(""), f = A(() => [r.value, n.value]), v = Ae(
|
|
3511
|
+
f,
|
|
3512
3512
|
(_) => {
|
|
3513
3513
|
if (a.value && (l(), "ResizeObserver" in window && window)) {
|
|
3514
3514
|
o = new ResizeObserver((N) => {
|
|
@@ -3521,33 +3521,33 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3521
3521
|
}
|
|
3522
3522
|
},
|
|
3523
3523
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3524
|
-
),
|
|
3524
|
+
), b = A(() => a.value ? d.value > c.value : !1);
|
|
3525
3525
|
return Nn(() => {
|
|
3526
3526
|
s();
|
|
3527
3527
|
}), Rn(() => {
|
|
3528
|
-
|
|
3528
|
+
v();
|
|
3529
3529
|
}), (_, N) => {
|
|
3530
3530
|
const k = K("KTooltip");
|
|
3531
|
-
return
|
|
3531
|
+
return m(), I("span", {
|
|
3532
3532
|
ref_key: "contentRef",
|
|
3533
3533
|
ref: u,
|
|
3534
3534
|
class: "content-wrapper"
|
|
3535
3535
|
}, [
|
|
3536
|
-
a.value ? (
|
|
3536
|
+
a.value ? (m(), I("span", {
|
|
3537
3537
|
key: 0,
|
|
3538
3538
|
"data-truncate": a.value || void 0
|
|
3539
3539
|
}, [
|
|
3540
3540
|
R(k, {
|
|
3541
3541
|
"max-width": "300",
|
|
3542
3542
|
placement: "bottomStart",
|
|
3543
|
-
text:
|
|
3543
|
+
text: b.value ? h.value : ""
|
|
3544
3544
|
}, {
|
|
3545
|
-
default:
|
|
3546
|
-
|
|
3545
|
+
default: x(() => [
|
|
3546
|
+
Y(_.$slots, "default", {}, void 0, !0)
|
|
3547
3547
|
]),
|
|
3548
3548
|
_: 3
|
|
3549
3549
|
}, 8, ["text"])
|
|
3550
|
-
], 8, rl)) :
|
|
3550
|
+
], 8, rl)) : Y(_.$slots, "default", { key: 1 }, void 0, !0)
|
|
3551
3551
|
], 512);
|
|
3552
3552
|
};
|
|
3553
3553
|
}
|
|
@@ -3672,78 +3672,72 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3672
3672
|
},
|
|
3673
3673
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3674
3674
|
setup(e, { emit: t }) {
|
|
3675
|
-
const n = e, r = t, { i18n: { t: i } } =
|
|
3676
|
-
var
|
|
3675
|
+
const n = e, r = t, { i18n: { t: i } } = z.useI18n(), a = A(() => {
|
|
3676
|
+
var y, g;
|
|
3677
3677
|
return typeof n.errorMessage == "string" ? {
|
|
3678
3678
|
hasError: !!n.errorMessage,
|
|
3679
3679
|
title: n.errorMessage,
|
|
3680
3680
|
message: void 0
|
|
3681
3681
|
} : {
|
|
3682
3682
|
hasError: !!n.errorMessage,
|
|
3683
|
-
title: (
|
|
3684
|
-
message: (
|
|
3683
|
+
title: (y = n.errorMessage) == null ? void 0 : y.title,
|
|
3684
|
+
message: (g = n.errorMessage) == null ? void 0 : g.message
|
|
3685
3685
|
};
|
|
3686
|
-
}), o =
|
|
3687
|
-
const
|
|
3688
|
-
return Object.keys(n.tableHeaders).forEach((
|
|
3689
|
-
const
|
|
3690
|
-
|
|
3691
|
-
label:
|
|
3692
|
-
key:
|
|
3693
|
-
sortable:
|
|
3686
|
+
}), o = A(() => n.cacheIdentifier || n.preferencesStorageKey), l = (y) => y.hasData || !!n.query, s = A(() => {
|
|
3687
|
+
const y = [];
|
|
3688
|
+
return Object.keys(n.tableHeaders).forEach(($) => {
|
|
3689
|
+
const F = n.tableHeaders[$];
|
|
3690
|
+
y.push({
|
|
3691
|
+
label: F.label ?? $,
|
|
3692
|
+
key: $,
|
|
3693
|
+
sortable: F.sortable ?? !1,
|
|
3694
3694
|
hidable: !0
|
|
3695
3695
|
});
|
|
3696
|
-
}), n.enableEntityActions &&
|
|
3696
|
+
}), n.enableEntityActions && y.push({
|
|
3697
3697
|
key: "actions",
|
|
3698
3698
|
hideLabel: !0
|
|
3699
|
-
}),
|
|
3700
|
-
}), u = (
|
|
3701
|
-
"data-rowid":
|
|
3702
|
-
"data-testid":
|
|
3703
|
-
...n.rowAttributes(
|
|
3704
|
-
}), d = B({}), c = (
|
|
3705
|
-
var
|
|
3706
|
-
return (
|
|
3707
|
-
},
|
|
3708
|
-
const
|
|
3709
|
-
"data-testid":
|
|
3710
|
-
...n.cellAttributes(
|
|
3699
|
+
}), y;
|
|
3700
|
+
}), u = (y) => ({
|
|
3701
|
+
"data-rowid": y.id,
|
|
3702
|
+
"data-testid": y.name,
|
|
3703
|
+
...n.rowAttributes(y)
|
|
3704
|
+
}), d = B({}), c = (y) => {
|
|
3705
|
+
var g;
|
|
3706
|
+
return (g = d.value) == null ? void 0 : g.$el.querySelector(`[data-rowid="${y.id}"]`);
|
|
3707
|
+
}, h = (y) => {
|
|
3708
|
+
const g = {
|
|
3709
|
+
"data-testid": y.headerKey,
|
|
3710
|
+
...n.cellAttributes(y)
|
|
3711
3711
|
};
|
|
3712
|
-
return
|
|
3712
|
+
return y.colIndex === 0 && (g.style = {
|
|
3713
3713
|
maxWidth: "250px",
|
|
3714
3714
|
overflowX: "hidden",
|
|
3715
3715
|
textOverflow: "ellipsis"
|
|
3716
|
-
}),
|
|
3717
|
-
},
|
|
3718
|
-
r("empty-state-cta-clicked"),
|
|
3719
|
-
},
|
|
3716
|
+
}), g;
|
|
3717
|
+
}, f = () => {
|
|
3718
|
+
r("empty-state-cta-clicked"), v();
|
|
3719
|
+
}, v = () => {
|
|
3720
3720
|
r("clear-search-input");
|
|
3721
|
-
},
|
|
3722
|
-
r("click:row",
|
|
3723
|
-
}), _ = (
|
|
3724
|
-
r("sort",
|
|
3725
|
-
}, { setTablePreferences: N, getTablePreferences: k } = zn(), Z = B(k(o.value)),
|
|
3726
|
-
|
|
3727
|
-
return {
|
|
3728
|
-
...n.initialFetcherParams,
|
|
3729
|
-
...f
|
|
3730
|
-
};
|
|
3731
|
-
}), A = (f) => {
|
|
3732
|
-
Z.value = f, o.value && N(o.value, f);
|
|
3721
|
+
}, b = A(() => n.disableRowClick ? void 0 : (y, g) => {
|
|
3722
|
+
r("click:row", g);
|
|
3723
|
+
}), _ = (y) => {
|
|
3724
|
+
r("sort", y);
|
|
3725
|
+
}, { setTablePreferences: N, getTablePreferences: k } = zn(), Z = B(k(o.value)), p = (y) => {
|
|
3726
|
+
Z.value = y, o.value && N(o.value, y);
|
|
3733
3727
|
};
|
|
3734
|
-
return (
|
|
3735
|
-
const
|
|
3736
|
-
return
|
|
3728
|
+
return (y, g) => {
|
|
3729
|
+
const $ = K("KIcon"), F = K("KButton"), w = K("KDropdown"), U = K("KTable"), T = K("KCard");
|
|
3730
|
+
return m(), M(T, {
|
|
3737
3731
|
class: "kong-ui-entity-base-table",
|
|
3738
3732
|
title: e.title,
|
|
3739
3733
|
"title-tag": e.titleTag
|
|
3740
3734
|
}, {
|
|
3741
|
-
default:
|
|
3742
|
-
R(
|
|
3735
|
+
default: x(() => [
|
|
3736
|
+
R(U, {
|
|
3743
3737
|
ref_key: "tableRefs",
|
|
3744
3738
|
ref: d,
|
|
3745
3739
|
"cache-identifier": o.value,
|
|
3746
|
-
"cell-attrs":
|
|
3740
|
+
"cell-attrs": h,
|
|
3747
3741
|
"client-sort": e.enableClientSort,
|
|
3748
3742
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
3749
3743
|
"empty-state-action-message": e.query ? E(i)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
@@ -3758,7 +3752,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3758
3752
|
"fetcher-cache-key": String(e.fetcherCacheKey),
|
|
3759
3753
|
headers: s.value,
|
|
3760
3754
|
"hide-pagination-when-optional": "",
|
|
3761
|
-
"initial-fetcher-params":
|
|
3755
|
+
"initial-fetcher-params": e.initialFetcherParams,
|
|
3762
3756
|
loading: e.isLoading,
|
|
3763
3757
|
"pagination-offset": e.paginationType === "offset",
|
|
3764
3758
|
"resize-columns": "",
|
|
@@ -3767,46 +3761,45 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3767
3761
|
"sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
|
|
3768
3762
|
sortable: !e.disableSorting,
|
|
3769
3763
|
"table-preferences": Z.value,
|
|
3770
|
-
onEmptyStateActionClick:
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
"onUpdate:tablePreferences": A
|
|
3764
|
+
onEmptyStateActionClick: f,
|
|
3765
|
+
"onRow:click": b.value,
|
|
3766
|
+
onSort: g[0] || (g[0] = (S) => _(S)),
|
|
3767
|
+
"onUpdate:tablePreferences": p
|
|
3775
3768
|
}, ke({
|
|
3776
|
-
toolbar:
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
])) :
|
|
3769
|
+
toolbar: x(({ state: S }) => [
|
|
3770
|
+
me(L("div", ol, [
|
|
3771
|
+
Y(y.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3772
|
+
y.$slots["toolbar-button"] ? (m(), I("div", ll, [
|
|
3773
|
+
Y(y.$slots, "toolbar-button", {}, void 0, !0)
|
|
3774
|
+
])) : D("", !0)
|
|
3782
3775
|
], 512), [
|
|
3783
|
-
[
|
|
3776
|
+
[ge, l(S)]
|
|
3784
3777
|
])
|
|
3785
3778
|
]),
|
|
3786
|
-
actions:
|
|
3779
|
+
actions: x(({ row: S, rowKey: j, rowValue: q }) => [
|
|
3787
3780
|
L("div", {
|
|
3788
3781
|
class: "actions-container",
|
|
3789
|
-
"data-testid":
|
|
3782
|
+
"data-testid": S.name
|
|
3790
3783
|
}, [
|
|
3791
|
-
R(
|
|
3784
|
+
R(w, {
|
|
3792
3785
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3793
3786
|
width: e.dropdownMenuWidth
|
|
3794
3787
|
}, {
|
|
3795
|
-
items:
|
|
3796
|
-
|
|
3797
|
-
row:
|
|
3798
|
-
rowKey:
|
|
3799
|
-
rowValue:
|
|
3788
|
+
items: x(() => [
|
|
3789
|
+
Y(y.$slots, "actions", {
|
|
3790
|
+
row: S,
|
|
3791
|
+
rowKey: j,
|
|
3792
|
+
rowValue: q
|
|
3800
3793
|
}, void 0, !0)
|
|
3801
3794
|
]),
|
|
3802
|
-
default:
|
|
3803
|
-
R(
|
|
3795
|
+
default: x(() => [
|
|
3796
|
+
R(F, {
|
|
3804
3797
|
class: "actions-trigger",
|
|
3805
3798
|
"data-testid": "overflow-actions-button",
|
|
3806
3799
|
size: "small"
|
|
3807
3800
|
}, {
|
|
3808
|
-
icon:
|
|
3809
|
-
R(
|
|
3801
|
+
icon: x(() => [
|
|
3802
|
+
R($, {
|
|
3810
3803
|
color: E(Sr),
|
|
3811
3804
|
icon: "more",
|
|
3812
3805
|
size: "16"
|
|
@@ -3821,21 +3814,21 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3821
3814
|
]),
|
|
3822
3815
|
_: 2
|
|
3823
3816
|
}, [
|
|
3824
|
-
ae(e.tableHeaders, (
|
|
3825
|
-
name:
|
|
3826
|
-
fn:
|
|
3817
|
+
ae(e.tableHeaders, (S, j) => ({
|
|
3818
|
+
name: j,
|
|
3819
|
+
fn: x(({ row: q, rowKey: J, rowValue: he }) => [
|
|
3827
3820
|
R(al, {
|
|
3828
|
-
"key-name": String(
|
|
3829
|
-
"row-el": c(
|
|
3830
|
-
tooltip:
|
|
3821
|
+
"key-name": String(j),
|
|
3822
|
+
"row-el": c(q),
|
|
3823
|
+
tooltip: S.tooltip
|
|
3831
3824
|
}, {
|
|
3832
|
-
default:
|
|
3833
|
-
|
|
3834
|
-
row:
|
|
3835
|
-
rowKey:
|
|
3836
|
-
rowValue:
|
|
3825
|
+
default: x(() => [
|
|
3826
|
+
Y(y.$slots, j, {
|
|
3827
|
+
row: q,
|
|
3828
|
+
rowKey: J,
|
|
3829
|
+
rowValue: he
|
|
3837
3830
|
}, () => [
|
|
3838
|
-
|
|
3831
|
+
V(O(he), 1)
|
|
3839
3832
|
], !0)
|
|
3840
3833
|
]),
|
|
3841
3834
|
_: 2
|
|
@@ -3844,7 +3837,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3844
3837
|
})),
|
|
3845
3838
|
e.query ? void 0 : {
|
|
3846
3839
|
name: "empty-state-action-icon",
|
|
3847
|
-
fn:
|
|
3840
|
+
fn: x(() => [
|
|
3848
3841
|
R(E(wo))
|
|
3849
3842
|
]),
|
|
3850
3843
|
key: "0"
|
|
@@ -3855,7 +3848,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3855
3848
|
}, 8, ["title", "title-tag"]);
|
|
3856
3849
|
};
|
|
3857
3850
|
}
|
|
3858
|
-
}), Zl = /* @__PURE__ */ ie(cl, [["__scopeId", "data-v-
|
|
3851
|
+
}), Zl = /* @__PURE__ */ ie(cl, [["__scopeId", "data-v-bdd5b9be"]]), ul = {
|
|
3859
3852
|
key: 0,
|
|
3860
3853
|
class: "kong-ui-entity-delete-error"
|
|
3861
3854
|
}, dl = {
|
|
@@ -3900,14 +3893,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3900
3893
|
},
|
|
3901
3894
|
emits: ["cancel", "proceed"],
|
|
3902
3895
|
setup(e, { emit: t }) {
|
|
3903
|
-
const { i18nT: n } =
|
|
3896
|
+
const { i18nT: n } = z.useI18n(), r = e, i = t, a = A(() => r.needConfirm ? r.entityName : ""), o = () => {
|
|
3904
3897
|
i("cancel");
|
|
3905
3898
|
}, l = () => {
|
|
3906
3899
|
i("proceed");
|
|
3907
3900
|
};
|
|
3908
3901
|
return (s, u) => {
|
|
3909
3902
|
const d = K("KAlert"), c = K("KPrompt");
|
|
3910
|
-
return
|
|
3903
|
+
return m(), M(c, {
|
|
3911
3904
|
"action-button-appearance": "danger",
|
|
3912
3905
|
"action-button-disabled": e.actionPending,
|
|
3913
3906
|
"action-button-text": "Yes, delete",
|
|
@@ -3918,38 +3911,38 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3918
3911
|
onCancel: o,
|
|
3919
3912
|
onProceed: l
|
|
3920
3913
|
}, {
|
|
3921
|
-
default:
|
|
3922
|
-
e.error ? (
|
|
3914
|
+
default: x(() => [
|
|
3915
|
+
e.error ? (m(), I("div", ul, [
|
|
3923
3916
|
R(d, { appearance: "danger" }, {
|
|
3924
|
-
default:
|
|
3925
|
-
|
|
3917
|
+
default: x(() => [
|
|
3918
|
+
V(O(e.error), 1)
|
|
3926
3919
|
]),
|
|
3927
3920
|
_: 1
|
|
3928
3921
|
})
|
|
3929
|
-
])) :
|
|
3922
|
+
])) : D("", !0),
|
|
3930
3923
|
R(E(n), {
|
|
3931
3924
|
class: "message",
|
|
3932
3925
|
keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3933
3926
|
tag: "p"
|
|
3934
3927
|
}, ke({
|
|
3935
|
-
entityType:
|
|
3936
|
-
|
|
3928
|
+
entityType: x(() => [
|
|
3929
|
+
V(O(r.entityType), 1)
|
|
3937
3930
|
]),
|
|
3938
3931
|
_: 2
|
|
3939
3932
|
}, [
|
|
3940
3933
|
r.entityName ? {
|
|
3941
3934
|
name: "entityName",
|
|
3942
|
-
fn:
|
|
3943
|
-
L("strong", null,
|
|
3935
|
+
fn: x(() => [
|
|
3936
|
+
L("strong", null, O(r.entityName), 1)
|
|
3944
3937
|
]),
|
|
3945
3938
|
key: "0"
|
|
3946
3939
|
} : void 0
|
|
3947
3940
|
]), 1032, ["keypath"]),
|
|
3948
|
-
r.description || s.$slots.description ? (
|
|
3949
|
-
|
|
3950
|
-
L("p", null,
|
|
3941
|
+
r.description || s.$slots.description ? (m(), I("div", dl, [
|
|
3942
|
+
Y(s.$slots, "description", {}, () => [
|
|
3943
|
+
L("p", null, O(r.description), 1)
|
|
3951
3944
|
], !0)
|
|
3952
|
-
])) :
|
|
3945
|
+
])) : D("", !0)
|
|
3953
3946
|
]),
|
|
3954
3947
|
_: 3
|
|
3955
3948
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
@@ -3978,7 +3971,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3978
3971
|
}
|
|
3979
3972
|
},
|
|
3980
3973
|
setup(e) {
|
|
3981
|
-
return (t, n) => (
|
|
3974
|
+
return (t, n) => (m(), I("svg", pl, [
|
|
3982
3975
|
L("mask", hl, [
|
|
3983
3976
|
L("rect", {
|
|
3984
3977
|
fill: e.color,
|
|
@@ -4017,186 +4010,186 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
4017
4010
|
},
|
|
4018
4011
|
emits: ["update:modelValue"],
|
|
4019
4012
|
setup(e, { emit: t }) {
|
|
4020
|
-
const { i18n: { t: n } } =
|
|
4021
|
-
const
|
|
4022
|
-
return new URLSearchParams(r.modelValue).forEach((
|
|
4023
|
-
|
|
4024
|
-
}),
|
|
4025
|
-
}), u =
|
|
4026
|
-
const
|
|
4027
|
-
return Object.keys(
|
|
4028
|
-
var
|
|
4029
|
-
return (
|
|
4030
|
-
}).map((
|
|
4031
|
-
label:
|
|
4032
|
-
value:
|
|
4013
|
+
const { i18n: { t: n } } = z.useI18n(), r = e, i = t, a = B(!1), o = B({}), l = B(/* @__PURE__ */ new Set()), s = A(() => {
|
|
4014
|
+
const p = [];
|
|
4015
|
+
return new URLSearchParams(r.modelValue).forEach((y, g) => {
|
|
4016
|
+
y !== "" && p.push(g);
|
|
4017
|
+
}), p;
|
|
4018
|
+
}), u = A(() => {
|
|
4019
|
+
const p = r.config.fields;
|
|
4020
|
+
return Object.keys(p).filter((y) => {
|
|
4021
|
+
var g;
|
|
4022
|
+
return (g = p == null ? void 0 : p[y]) == null ? void 0 : g.searchable;
|
|
4023
|
+
}).map((y) => ({
|
|
4024
|
+
label: p[y].label || y,
|
|
4025
|
+
value: y,
|
|
4033
4026
|
expanded: !1
|
|
4034
4027
|
}));
|
|
4035
4028
|
});
|
|
4036
|
-
Ae(() => r.modelValue, (
|
|
4037
|
-
o.value = {}, new URLSearchParams(
|
|
4038
|
-
o.value[
|
|
4029
|
+
Ae(() => r.modelValue, (p) => {
|
|
4030
|
+
o.value = {}, new URLSearchParams(p).forEach((y, g) => {
|
|
4031
|
+
o.value[g] = y;
|
|
4039
4032
|
});
|
|
4040
4033
|
});
|
|
4041
4034
|
const d = () => {
|
|
4042
4035
|
a.value = !a.value;
|
|
4043
|
-
}, c = (
|
|
4044
|
-
l.value.has(
|
|
4045
|
-
},
|
|
4046
|
-
i("update:modelValue",
|
|
4047
|
-
},
|
|
4048
|
-
|
|
4049
|
-
},
|
|
4050
|
-
var
|
|
4051
|
-
return (((
|
|
4052
|
-
value:
|
|
4053
|
-
label:
|
|
4036
|
+
}, c = (p) => {
|
|
4037
|
+
l.value.has(p) ? l.value.delete(p) : l.value.add(p);
|
|
4038
|
+
}, h = (p) => {
|
|
4039
|
+
i("update:modelValue", p);
|
|
4040
|
+
}, f = () => {
|
|
4041
|
+
h("");
|
|
4042
|
+
}, v = (p) => `filter-${p}`, b = (p) => {
|
|
4043
|
+
var y, g;
|
|
4044
|
+
return (((g = (y = r.config.schema) == null ? void 0 : y[p]) == null ? void 0 : g.values) ?? []).map(($) => ({
|
|
4045
|
+
value: $,
|
|
4046
|
+
label: $
|
|
4054
4047
|
}));
|
|
4055
|
-
}, _ = (
|
|
4056
|
-
var
|
|
4057
|
-
return ((
|
|
4058
|
-
}, N = (
|
|
4048
|
+
}, _ = (p) => {
|
|
4049
|
+
var y, g;
|
|
4050
|
+
return ((g = (y = r.config.schema) == null ? void 0 : y[p]) == null ? void 0 : g.type) ?? "text";
|
|
4051
|
+
}, N = (p) => {
|
|
4059
4052
|
o.value = {
|
|
4060
4053
|
...o.value,
|
|
4061
|
-
[
|
|
4054
|
+
[p]: ""
|
|
4062
4055
|
}, Z();
|
|
4063
4056
|
}, k = () => {
|
|
4064
4057
|
o.value = {}, Z(!0);
|
|
4065
|
-
}, Z = (
|
|
4066
|
-
const
|
|
4067
|
-
|
|
4058
|
+
}, Z = (p = !1) => {
|
|
4059
|
+
const y = Object.keys(o.value).reduce((g, $) => (o.value[$] && (g[$] = `${o.value[$]}`), g), {});
|
|
4060
|
+
p && (a.value = !1), i("update:modelValue", new URLSearchParams(y).toString());
|
|
4068
4061
|
};
|
|
4069
|
-
return (
|
|
4070
|
-
const
|
|
4071
|
-
return e.config.isExactMatch ? (
|
|
4062
|
+
return (p, y) => {
|
|
4063
|
+
const g = K("KInput"), $ = K("KButton"), F = K("KSelect");
|
|
4064
|
+
return e.config.isExactMatch ? (m(), M(g, {
|
|
4072
4065
|
key: 0,
|
|
4073
4066
|
autocomplete: "off",
|
|
4074
4067
|
class: "kong-ui-entity-filter-input",
|
|
4075
4068
|
"data-testid": "search-input",
|
|
4076
4069
|
"model-value": e.modelValue,
|
|
4077
4070
|
placeholder: e.config.placeholder,
|
|
4078
|
-
"onUpdate:modelValue":
|
|
4071
|
+
"onUpdate:modelValue": h
|
|
4079
4072
|
}, {
|
|
4080
|
-
before:
|
|
4073
|
+
before: x(() => [
|
|
4081
4074
|
R(Ft)
|
|
4082
4075
|
]),
|
|
4083
|
-
after:
|
|
4084
|
-
|
|
4076
|
+
after: x(() => [
|
|
4077
|
+
me(R(E(qo), {
|
|
4085
4078
|
class: "kong-ui-entity-filter-clear",
|
|
4086
|
-
onClick:
|
|
4079
|
+
onClick: f
|
|
4087
4080
|
}, null, 512), [
|
|
4088
|
-
[
|
|
4081
|
+
[ge, e.modelValue !== ""]
|
|
4089
4082
|
])
|
|
4090
4083
|
]),
|
|
4091
4084
|
_: 1
|
|
4092
|
-
}, 8, ["model-value", "placeholder"])) : (
|
|
4093
|
-
R(
|
|
4085
|
+
}, 8, ["model-value", "placeholder"])) : (m(), I("div", vl, [
|
|
4086
|
+
R($, {
|
|
4094
4087
|
appearance: "tertiary",
|
|
4095
4088
|
"data-testid": "filter-button",
|
|
4096
4089
|
onClick: d
|
|
4097
4090
|
}, {
|
|
4098
|
-
default:
|
|
4091
|
+
default: x(() => [
|
|
4099
4092
|
R(Ft),
|
|
4100
|
-
|
|
4093
|
+
V(" " + O(E(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
4101
4094
|
]),
|
|
4102
4095
|
_: 1
|
|
4103
4096
|
}),
|
|
4104
|
-
|
|
4097
|
+
me(L("div", {
|
|
4105
4098
|
class: "kong-ui-entity-filter-backdrop",
|
|
4106
4099
|
onClick: d
|
|
4107
4100
|
}, null, 512), [
|
|
4108
|
-
[
|
|
4101
|
+
[ge, a.value]
|
|
4109
4102
|
]),
|
|
4110
|
-
|
|
4111
|
-
(
|
|
4112
|
-
var
|
|
4113
|
-
return
|
|
4114
|
-
key:
|
|
4103
|
+
me(L("div", bl, [
|
|
4104
|
+
(m(!0), I(se, null, ae(u.value, (w) => {
|
|
4105
|
+
var U, T;
|
|
4106
|
+
return m(), I("div", {
|
|
4107
|
+
key: w.value,
|
|
4115
4108
|
class: "kong-ui-entity-filter-menu-item",
|
|
4116
|
-
"data-testid":
|
|
4109
|
+
"data-testid": w.value
|
|
4117
4110
|
}, [
|
|
4118
4111
|
L("span", {
|
|
4119
|
-
class: de(["menu-item-title", { expanded: l.value.has(
|
|
4112
|
+
class: de(["menu-item-title", { expanded: l.value.has(w.value) }]),
|
|
4120
4113
|
role: "button",
|
|
4121
4114
|
tabindex: "0",
|
|
4122
|
-
onClick: (
|
|
4123
|
-
onKeydown: Bn((
|
|
4115
|
+
onClick: (S) => c(w.value),
|
|
4116
|
+
onKeydown: Bn((S) => c(w.value), ["enter"])
|
|
4124
4117
|
}, [
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
[
|
|
4118
|
+
V(O(w.label) + " ", 1),
|
|
4119
|
+
me(L("span", _l, null, 512), [
|
|
4120
|
+
[ge, s.value.includes(w.value)]
|
|
4128
4121
|
]),
|
|
4129
4122
|
R(E(Bo), {
|
|
4130
|
-
class: de(["menu-item-expand-icon", { expanded: l.value.has(
|
|
4123
|
+
class: de(["menu-item-expand-icon", { expanded: l.value.has(w.value) }]),
|
|
4131
4124
|
color: E(Ir)
|
|
4132
4125
|
}, null, 8, ["class", "color"])
|
|
4133
4126
|
], 42, Cl),
|
|
4134
|
-
|
|
4127
|
+
me(L("div", kl, [
|
|
4135
4128
|
L("label", {
|
|
4136
4129
|
class: "menu-item-label",
|
|
4137
|
-
for:
|
|
4138
|
-
},
|
|
4139
|
-
((T = (
|
|
4130
|
+
for: v(w.value)
|
|
4131
|
+
}, O(E(n)("filter.fieldLabel")), 9, wl),
|
|
4132
|
+
((T = (U = e.config.schema) == null ? void 0 : U[w.value]) == null ? void 0 : T.type) === "select" ? (m(), M(F, {
|
|
4140
4133
|
key: 0,
|
|
4141
|
-
id:
|
|
4142
|
-
modelValue: o.value[
|
|
4143
|
-
"onUpdate:modelValue": (
|
|
4144
|
-
items:
|
|
4134
|
+
id: v(w.value),
|
|
4135
|
+
modelValue: o.value[w.value],
|
|
4136
|
+
"onUpdate:modelValue": (S) => o.value[w.value] = S,
|
|
4137
|
+
items: b(w.value),
|
|
4145
4138
|
placeholder: E(n)("filter.selectPlaceholder")
|
|
4146
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (
|
|
4139
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), M(g, {
|
|
4147
4140
|
key: 1,
|
|
4148
|
-
id:
|
|
4149
|
-
modelValue: o.value[
|
|
4150
|
-
"onUpdate:modelValue": (
|
|
4141
|
+
id: v(w.value),
|
|
4142
|
+
modelValue: o.value[w.value],
|
|
4143
|
+
"onUpdate:modelValue": (S) => o.value[w.value] = S,
|
|
4151
4144
|
autocomplete: "off",
|
|
4152
4145
|
placeholder: E(n)("filter.inputPlaceholder"),
|
|
4153
|
-
type: _(
|
|
4146
|
+
type: _(w.value)
|
|
4154
4147
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4155
4148
|
], 512), [
|
|
4156
|
-
[
|
|
4149
|
+
[ge, l.value.has(w.value)]
|
|
4157
4150
|
]),
|
|
4158
|
-
|
|
4159
|
-
R(
|
|
4151
|
+
me(L("div", Al, [
|
|
4152
|
+
R($, {
|
|
4160
4153
|
appearance: "tertiary",
|
|
4161
4154
|
"data-testid": "apply-filter",
|
|
4162
4155
|
size: "small",
|
|
4163
|
-
onClick:
|
|
4156
|
+
onClick: y[0] || (y[0] = (S) => Z(!0))
|
|
4164
4157
|
}, {
|
|
4165
|
-
default:
|
|
4166
|
-
|
|
4158
|
+
default: x(() => [
|
|
4159
|
+
V(O(E(n)("filter.applyButtonText")), 1)
|
|
4167
4160
|
]),
|
|
4168
4161
|
_: 1
|
|
4169
4162
|
}),
|
|
4170
|
-
R(
|
|
4163
|
+
R($, {
|
|
4171
4164
|
appearance: "tertiary",
|
|
4172
4165
|
"data-testid": "clear-filter",
|
|
4173
4166
|
size: "small",
|
|
4174
|
-
onClick: (
|
|
4167
|
+
onClick: (S) => N(w.value)
|
|
4175
4168
|
}, {
|
|
4176
|
-
default:
|
|
4177
|
-
|
|
4169
|
+
default: x(() => [
|
|
4170
|
+
V(O(E(n)("filter.clearButtonText")), 1)
|
|
4178
4171
|
]),
|
|
4179
4172
|
_: 2
|
|
4180
4173
|
}, 1032, ["onClick"])
|
|
4181
4174
|
], 512), [
|
|
4182
|
-
[
|
|
4175
|
+
[ge, l.value.has(w.value)]
|
|
4183
4176
|
])
|
|
4184
4177
|
], 8, xl);
|
|
4185
4178
|
}), 128)),
|
|
4186
4179
|
L("div", Sl, [
|
|
4187
|
-
R(
|
|
4180
|
+
R($, {
|
|
4188
4181
|
appearance: "tertiary",
|
|
4189
4182
|
size: "small",
|
|
4190
4183
|
onClick: k
|
|
4191
4184
|
}, {
|
|
4192
|
-
default:
|
|
4193
|
-
|
|
4185
|
+
default: x(() => [
|
|
4186
|
+
V(O(E(n)("filter.clearAllButtonText")), 1)
|
|
4194
4187
|
]),
|
|
4195
4188
|
_: 1
|
|
4196
4189
|
})
|
|
4197
4190
|
])
|
|
4198
4191
|
], 512), [
|
|
4199
|
-
[
|
|
4192
|
+
[ge, a.value]
|
|
4200
4193
|
])
|
|
4201
4194
|
]));
|
|
4202
4195
|
};
|
|
@@ -4233,9 +4226,9 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
4233
4226
|
},
|
|
4234
4227
|
emits: ["cancel", "proceed"],
|
|
4235
4228
|
setup(e, { emit: t }) {
|
|
4236
|
-
const { i18n: { t: n }, i18nT: r } =
|
|
4229
|
+
const { i18n: { t: n }, i18nT: r } = z.useI18n(), i = e, a = t, o = B(!1), l = A(
|
|
4237
4230
|
() => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
|
|
4238
|
-
), s =
|
|
4231
|
+
), s = A(
|
|
4239
4232
|
() => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
4240
4233
|
), u = () => a("cancel"), d = async () => {
|
|
4241
4234
|
if (i.onConfirm) {
|
|
@@ -4249,10 +4242,10 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
4249
4242
|
}
|
|
4250
4243
|
}
|
|
4251
4244
|
};
|
|
4252
|
-
return (c,
|
|
4253
|
-
const
|
|
4254
|
-
return
|
|
4255
|
-
R(
|
|
4245
|
+
return (c, h) => {
|
|
4246
|
+
const f = K("KPrompt");
|
|
4247
|
+
return m(), M(Kn, { to: "body" }, [
|
|
4248
|
+
R(f, {
|
|
4256
4249
|
"action-button-disabled": o.value,
|
|
4257
4250
|
"action-button-text": s.value,
|
|
4258
4251
|
"data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
|
|
@@ -4261,16 +4254,16 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
4261
4254
|
onCancel: u,
|
|
4262
4255
|
onProceed: d
|
|
4263
4256
|
}, {
|
|
4264
|
-
default:
|
|
4257
|
+
default: x(() => [
|
|
4265
4258
|
R(E(r), {
|
|
4266
4259
|
keypath: `toggleModal.${i.action}.message`,
|
|
4267
4260
|
scope: "global"
|
|
4268
4261
|
}, {
|
|
4269
|
-
entityType:
|
|
4270
|
-
|
|
4262
|
+
entityType: x(() => [
|
|
4263
|
+
V(O(e.entityType), 1)
|
|
4271
4264
|
]),
|
|
4272
|
-
entityName:
|
|
4273
|
-
L("strong", null,
|
|
4265
|
+
entityName: x(() => [
|
|
4266
|
+
L("strong", null, O(e.entityName), 1)
|
|
4274
4267
|
]),
|
|
4275
4268
|
_: 1
|
|
4276
4269
|
}, 8, ["keypath"])
|
|
@@ -4302,21 +4295,21 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
4302
4295
|
}
|
|
4303
4296
|
},
|
|
4304
4297
|
setup(e) {
|
|
4305
|
-
const t = e, n = B(void 0), r =
|
|
4298
|
+
const t = e, n = B(void 0), r = A(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4306
4299
|
return Ae(() => t.authFunction, async () => {
|
|
4307
4300
|
n.value = await t.authFunction();
|
|
4308
|
-
}, { immediate: !0 }), (i, a) => r.value ?
|
|
4301
|
+
}, { immediate: !0 }), (i, a) => r.value ? Y(i.$slots, "default", {
|
|
4309
4302
|
key: 0,
|
|
4310
4303
|
isAllowed: n.value
|
|
4311
|
-
}) :
|
|
4304
|
+
}) : D("", !0);
|
|
4312
4305
|
}
|
|
4313
4306
|
});
|
|
4314
|
-
let
|
|
4307
|
+
let Re;
|
|
4315
4308
|
const El = new Uint8Array(16);
|
|
4316
4309
|
function Tl() {
|
|
4317
|
-
if (!
|
|
4310
|
+
if (!Re && (Re = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Re))
|
|
4318
4311
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4319
|
-
return
|
|
4312
|
+
return Re(El);
|
|
4320
4313
|
}
|
|
4321
4314
|
const Q = [];
|
|
4322
4315
|
for (let e = 0; e < 256; ++e)
|
|
@@ -4375,38 +4368,38 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
|
|
|
4375
4368
|
}
|
|
4376
4369
|
},
|
|
4377
4370
|
setup(e) {
|
|
4378
|
-
const t =
|
|
4379
|
-
return (r, i) => (
|
|
4371
|
+
const t = Xe(), n = $l();
|
|
4372
|
+
return (r, i) => (m(), I("div", {
|
|
4380
4373
|
"aria-labelledby": e.title ? E(n) : void 0,
|
|
4381
4374
|
class: de(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4382
4375
|
role: "group"
|
|
4383
4376
|
}, [
|
|
4384
4377
|
L("div", Nl, [
|
|
4385
|
-
e.hideInfoHeader ?
|
|
4378
|
+
e.hideInfoHeader ? D("", !0) : (m(), I("div", {
|
|
4386
4379
|
key: 0,
|
|
4387
4380
|
class: de(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4388
4381
|
}, [
|
|
4389
|
-
e.title ? (
|
|
4382
|
+
e.title ? (m(), M(pe(e.titleTag), {
|
|
4390
4383
|
key: 0,
|
|
4391
4384
|
id: E(n),
|
|
4392
4385
|
class: "form-section-title"
|
|
4393
4386
|
}, {
|
|
4394
|
-
default:
|
|
4395
|
-
|
|
4387
|
+
default: x(() => [
|
|
4388
|
+
V(O(e.title), 1)
|
|
4396
4389
|
]),
|
|
4397
4390
|
_: 1
|
|
4398
|
-
}, 8, ["id"])) :
|
|
4399
|
-
e.description || E(t).description ? (
|
|
4400
|
-
|
|
4401
|
-
L("p", null,
|
|
4391
|
+
}, 8, ["id"])) : D("", !0),
|
|
4392
|
+
e.description || E(t).description ? (m(), I("div", Rl, [
|
|
4393
|
+
Y(r.$slots, "description", {}, () => [
|
|
4394
|
+
L("p", null, O(e.description), 1)
|
|
4402
4395
|
], !0)
|
|
4403
|
-
])) :
|
|
4404
|
-
E(t).footer ? (
|
|
4405
|
-
|
|
4406
|
-
])) :
|
|
4396
|
+
])) : D("", !0),
|
|
4397
|
+
E(t).footer ? (m(), I("div", Bl, [
|
|
4398
|
+
Y(r.$slots, "footer", {}, void 0, !0)
|
|
4399
|
+
])) : D("", !0)
|
|
4407
4400
|
], 2)),
|
|
4408
4401
|
L("div", Kl, [
|
|
4409
|
-
|
|
4402
|
+
Y(r.$slots, "default", {}, void 0, !0)
|
|
4410
4403
|
])
|
|
4411
4404
|
])
|
|
4412
4405
|
], 10, Ll));
|
|
@@ -4441,10 +4434,10 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
|
|
|
4441
4434
|
}
|
|
4442
4435
|
},
|
|
4443
4436
|
setup(e) {
|
|
4444
|
-
const t = e, n = B(), { isTruncated: r } =
|
|
4437
|
+
const t = e, n = B(), { isTruncated: r } = z.useTruncationDetector(n), { i18n: { t: i } } = z.useI18n(), a = i("global.actions.copyId"), o = B(a), l = A(() => t.entityLinkData.deleted ?? !1), s = A(() => {
|
|
4445
4438
|
var c;
|
|
4446
4439
|
return (c = t.entityLinkData.id) != null && c.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4447
|
-
}), u =
|
|
4440
|
+
}), u = A(() => {
|
|
4448
4441
|
var c;
|
|
4449
4442
|
return `${(c = s.value) == null ? void 0 : c.toString().slice(0, 5)} (deleted)`;
|
|
4450
4443
|
}), d = async (c) => {
|
|
@@ -4452,45 +4445,45 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
|
|
|
4452
4445
|
o.value = a;
|
|
4453
4446
|
}, 1800));
|
|
4454
4447
|
};
|
|
4455
|
-
return (c,
|
|
4456
|
-
const
|
|
4457
|
-
return
|
|
4458
|
-
l.value ? (
|
|
4448
|
+
return (c, h) => {
|
|
4449
|
+
const f = K("KTooltip"), v = K("KExternalLink"), b = K("KClipboardProvider");
|
|
4450
|
+
return m(), I("div", Dl, [
|
|
4451
|
+
l.value ? (m(), I("div", Ul, O(u.value), 1)) : s.value ? s.value ? (m(), M(v, {
|
|
4459
4452
|
key: 2,
|
|
4460
4453
|
class: "entity-link",
|
|
4461
4454
|
"hide-icon": !e.newWindow,
|
|
4462
4455
|
href: e.externalLink,
|
|
4463
4456
|
target: e.newWindow ? "_blank" : "_self"
|
|
4464
4457
|
}, {
|
|
4465
|
-
default:
|
|
4466
|
-
R(
|
|
4458
|
+
default: x(() => [
|
|
4459
|
+
R(f, {
|
|
4467
4460
|
text: E(r) && e.entityLinkData.label || ""
|
|
4468
4461
|
}, {
|
|
4469
|
-
default:
|
|
4462
|
+
default: x(() => [
|
|
4470
4463
|
L("span", {
|
|
4471
4464
|
ref_key: "textContent",
|
|
4472
4465
|
ref: n,
|
|
4473
4466
|
class: "entity-link-label"
|
|
4474
|
-
},
|
|
4467
|
+
}, O(e.entityLinkData.label), 513)
|
|
4475
4468
|
]),
|
|
4476
4469
|
_: 1
|
|
4477
4470
|
}, 8, ["text"])
|
|
4478
4471
|
]),
|
|
4479
4472
|
_: 1
|
|
4480
|
-
}, 8, ["hide-icon", "href", "target"])) :
|
|
4481
|
-
s.value && e.allowCopy ? (
|
|
4473
|
+
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (m(), I("div", jl, O(" – "))),
|
|
4474
|
+
s.value && e.allowCopy ? (m(), M(f, {
|
|
4482
4475
|
key: o.value,
|
|
4483
4476
|
class: "copy-uuid-tooltip",
|
|
4484
4477
|
"max-width": "160",
|
|
4485
4478
|
placement: "bottomEnd",
|
|
4486
4479
|
text: o.value
|
|
4487
4480
|
}, {
|
|
4488
|
-
default:
|
|
4489
|
-
R(
|
|
4490
|
-
default:
|
|
4481
|
+
default: x(() => [
|
|
4482
|
+
R(b, null, {
|
|
4483
|
+
default: x(({ copyToClipboard: _ }) => [
|
|
4491
4484
|
L("span", {
|
|
4492
4485
|
class: "entity-link-copy-id",
|
|
4493
|
-
onClick:
|
|
4486
|
+
onClick: ze((N) => d(_), ["stop"])
|
|
4494
4487
|
}, [
|
|
4495
4488
|
R(E(Wo), {
|
|
4496
4489
|
class: "copy-icon",
|
|
@@ -4504,11 +4497,11 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
|
|
|
4504
4497
|
})
|
|
4505
4498
|
]),
|
|
4506
4499
|
_: 1
|
|
4507
|
-
}, 8, ["text"])) :
|
|
4500
|
+
}, 8, ["text"])) : D("", !0)
|
|
4508
4501
|
]);
|
|
4509
4502
|
};
|
|
4510
4503
|
}
|
|
4511
|
-
}), rs = /* @__PURE__ */ ie(Pl, [["__scopeId", "data-v-be5bda4c"]]), { useAxios: is, useDeleteUrlBuilder: as, useErrors: os, useExternalLinkCreator: ls, useFetchUrlBuilder: ss, useFetcher: cs, useDebouncedFilter: us, useStringHelpers: ds, useHelpers: fs, useGatewayFeatureSupported: ps, useTruncationDetector: hs, useValidators: ms } =
|
|
4504
|
+
}), rs = /* @__PURE__ */ ie(Pl, [["__scopeId", "data-v-be5bda4c"]]), { useAxios: is, useDeleteUrlBuilder: as, useErrors: os, useExternalLinkCreator: ls, useFetchUrlBuilder: ss, useFetcher: cs, useDebouncedFilter: us, useStringHelpers: ds, useHelpers: fs, useGatewayFeatureSupported: ps, useTruncationDetector: hs, useValidators: ms } = z;
|
|
4512
4505
|
export {
|
|
4513
4506
|
vo as ConfigCardDisplay,
|
|
4514
4507
|
Dt as ConfigCardItem,
|