@kong-ui-public/entities-consumers 2.5.17 → 2.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-consumers.es.js +421 -421
- package/dist/entities-consumers.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as te, ref as K, computed as A, watch as be, renderSlot as Z, createCommentVNode as H, unref as f, useSlots as Ze, onBeforeMount as gt, resolveComponent as U, openBlock as d, createBlock as R, createSlots as ke, withCtx as g, createElementVNode as B, createTextVNode as Y, toDisplayString as M, createVNode as O, createElementBlock as $, renderList as pe, Fragment as me, normalizeClass as Ie, withModifiers as Ge, withDirectives as Be, vShow as Le, inject as cn, useCssVars as dn, resolveDynamicComponent as xe, normalizeProps as Cr, guardReactiveProps as kr, mergeProps as
|
|
1
|
+
import { defineComponent as te, ref as K, computed as A, watch as be, renderSlot as Z, createCommentVNode as H, unref as f, useSlots as Ze, onBeforeMount as gt, resolveComponent as U, openBlock as d, createBlock as R, createSlots as ke, withCtx as g, createElementVNode as B, createTextVNode as Y, toDisplayString as M, createVNode as O, createElementBlock as $, renderList as pe, Fragment as me, normalizeClass as Ie, withModifiers as Ge, withDirectives as Be, vShow as Le, inject as cn, useCssVars as dn, resolveDynamicComponent as xe, normalizeProps as Cr, guardReactiveProps as kr, mergeProps as lt, onMounted as wr, onUnmounted as Ir, normalizeStyle as pn, pushScopeId as fn, popScopeId as mn, reactive as qt } from "vue";
|
|
2
2
|
import { useRouter as yt } from "vue-router";
|
|
3
3
|
import { createI18n as ht, i18nTComponent as gn } from "@kong-ui-public/i18n";
|
|
4
4
|
import _r from "axios";
|
|
@@ -324,8 +324,8 @@ function hn() {
|
|
|
324
324
|
return !1;
|
|
325
325
|
const a = /* @__PURE__ */ new Set([...t, ...r]);
|
|
326
326
|
for (const i of a) {
|
|
327
|
-
const o = t.filter((
|
|
328
|
-
if (o !==
|
|
327
|
+
const o = t.filter((l) => l === i).length, s = r.filter((l) => l === i).length;
|
|
328
|
+
if (o !== s)
|
|
329
329
|
return !1;
|
|
330
330
|
}
|
|
331
331
|
return !0;
|
|
@@ -369,27 +369,27 @@ function Rr(e, n, t, r = {
|
|
|
369
369
|
t || (t = "100");
|
|
370
370
|
const { axiosInstance: a } = vt({
|
|
371
371
|
headers: e.requestHeaders
|
|
372
|
-
}), { i18n: { t: i } } = bt(), { debounce: o } = $r(),
|
|
372
|
+
}), { i18n: { t: i } } = bt(), { debounce: o } = $r(), s = o(async (k) => {
|
|
373
373
|
await G(k);
|
|
374
|
-
}, 200),
|
|
374
|
+
}, 200), l = K(!1), u = K(""), p = K(""), c = K([]), y = K([]), m = K(void 0), I = f(n);
|
|
375
375
|
let b = `${e.apiBaseUrl}${I}`;
|
|
376
376
|
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}` : ""));
|
|
377
377
|
const { isValidUuid: _ } = hn(), C = async () => {
|
|
378
378
|
try {
|
|
379
|
-
|
|
379
|
+
l.value = !0;
|
|
380
380
|
const { data: k } = await a.get(`${b}?size=${t}`);
|
|
381
381
|
k != null && k.next || (m.value = r.fetchedItemsKey in k ? k[r.fetchedItemsKey] : []), y.value = r.fetchedItemsKey in k ? k[r.fetchedItemsKey] : [], c.value = y.value;
|
|
382
382
|
} catch {
|
|
383
383
|
c.value = [], u.value = i("debouncedFilter.errors.fetch");
|
|
384
384
|
} finally {
|
|
385
|
-
|
|
385
|
+
l.value = !1;
|
|
386
386
|
}
|
|
387
387
|
}, w = K(""), G = async (k) => {
|
|
388
388
|
var j, L, E;
|
|
389
389
|
if (w.value !== k)
|
|
390
390
|
if (w.value = k || "", m.value === void 0)
|
|
391
391
|
try {
|
|
392
|
-
if (
|
|
392
|
+
if (l.value = !0, u.value = "", p.value = "", e.app === "konnect") {
|
|
393
393
|
let h = b + "";
|
|
394
394
|
k && (h += `/${k}`);
|
|
395
395
|
const { data: v } = await a.get(`${h}?size=${t}`);
|
|
@@ -417,10 +417,10 @@ function Rr(e, n, t, r = {
|
|
|
417
417
|
} catch (h) {
|
|
418
418
|
((L = h == null ? void 0 : h.response) == null ? void 0 : L.status) === 404 ? p.value = i("debouncedFilter.errors.invalid") : (c.value = [], u.value = i("debouncedFilter.errors.fetch"));
|
|
419
419
|
} finally {
|
|
420
|
-
|
|
420
|
+
l.value = !1;
|
|
421
421
|
}
|
|
422
422
|
else
|
|
423
|
-
|
|
423
|
+
l.value = !0, p.value = "", k ? (c.value = (E = m.value) == null ? void 0 : E.filter((h) => {
|
|
424
424
|
var v;
|
|
425
425
|
let q = !1;
|
|
426
426
|
for (const S of r.searchKeys) {
|
|
@@ -428,16 +428,16 @@ function Rr(e, n, t, r = {
|
|
|
428
428
|
D != null && D.includes(k.toLowerCase()) && (q = !0);
|
|
429
429
|
}
|
|
430
430
|
return q;
|
|
431
|
-
}), (!c.value || !c.value.length) && (p.value = i("debouncedFilter.errors.invalid"))) : c.value = m.value,
|
|
431
|
+
}), (!c.value || !c.value.length) && (p.value = i("debouncedFilter.errors.invalid"))) : c.value = m.value, l.value = !1;
|
|
432
432
|
};
|
|
433
433
|
return {
|
|
434
|
-
loading:
|
|
434
|
+
loading: l,
|
|
435
435
|
error: u,
|
|
436
436
|
validationError: p,
|
|
437
437
|
results: c,
|
|
438
438
|
allRecords: m,
|
|
439
439
|
loadItems: C,
|
|
440
|
-
debouncedQueryChange:
|
|
440
|
+
debouncedQueryChange: s
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
443
|
function Vr(e, n) {
|
|
@@ -460,8 +460,8 @@ function Gr() {
|
|
|
460
460
|
return n.response.data.detail;
|
|
461
461
|
if ((a = n.response.data.details) != null && a.length)
|
|
462
462
|
return n.response.data.details.map((o) => {
|
|
463
|
-
let
|
|
464
|
-
return o.messages && typeof o.messages == "object" && o.messages.length && (
|
|
463
|
+
let s = e("errors.unexpected");
|
|
464
|
+
return o.messages && typeof o.messages == "object" && o.messages.length && (s = o.messages.join(", ")), o.field ? `${o.field} - ${s}` : s;
|
|
465
465
|
}).join("; ");
|
|
466
466
|
if (n.response.data.message) {
|
|
467
467
|
const { message: o } = n.response.data;
|
|
@@ -494,12 +494,12 @@ function vn(e, n) {
|
|
|
494
494
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
495
495
|
);
|
|
496
496
|
return (o) => {
|
|
497
|
-
const { page:
|
|
497
|
+
const { page: s, pageSize: l, offset: u, sortColumnKey: p, sortColumnOrder: c, query: y } = o;
|
|
498
498
|
try {
|
|
499
499
|
let m = new URL(i.value.href);
|
|
500
500
|
return a.value && y ? (m.search = "", m = t.value.app === "konnect" ? new URL(`${m.href}?filter[name][contains]=${y}`) : new URL(`${m.href}/${y}/`)) : (a.value || new URLSearchParams(y).forEach((I, b) => {
|
|
501
501
|
m.searchParams.append(b, I);
|
|
502
|
-
}), p && m.searchParams.append("sort_by", p), c === "desc" && m.searchParams.append("sort_desc", "1"), m.searchParams.append("size", String(
|
|
502
|
+
}), p && m.searchParams.append("sort_by", p), c === "desc" && m.searchParams.append("sort_desc", "1"), m.searchParams.append("size", String(l))), u && s !== 1 && m.searchParams.append("offset", String(u)), m.href;
|
|
503
503
|
} catch (m) {
|
|
504
504
|
return console.error("RouteList(fetcher)", m), r.value;
|
|
505
505
|
}
|
|
@@ -511,12 +511,12 @@ function zr(e, n, t = "data") {
|
|
|
511
511
|
}), i = vn(e, r), o = K({
|
|
512
512
|
status: Ae.Idle
|
|
513
513
|
});
|
|
514
|
-
return { fetcher: async (
|
|
514
|
+
return { fetcher: async (s) => {
|
|
515
515
|
try {
|
|
516
516
|
o.value = { status: Ae.Loading };
|
|
517
|
-
let
|
|
518
|
-
|
|
519
|
-
const { data: u } = await a.get(
|
|
517
|
+
let l = i(s);
|
|
518
|
+
l.includes("filter[name]") && (l = `${l}&page[size]=${s.pageSize}&page[number]=${s.page}`);
|
|
519
|
+
const { data: u } = await a.get(l), p = t && t.replace(/[^\w-_]/gi, "");
|
|
520
520
|
let c;
|
|
521
521
|
u[p] && Array.isArray(u[p]) ? c = u[p] : Array.isArray(u) ? c = u : c = Object.keys(u).length ? [u] : [];
|
|
522
522
|
const y = {
|
|
@@ -532,19 +532,19 @@ function zr(e, n, t = "data") {
|
|
|
532
532
|
status: Ae.Idle,
|
|
533
533
|
response: y
|
|
534
534
|
}, y;
|
|
535
|
-
} catch (
|
|
535
|
+
} catch (l) {
|
|
536
536
|
const u = {
|
|
537
537
|
data: [],
|
|
538
538
|
total: 0
|
|
539
539
|
};
|
|
540
|
-
return
|
|
540
|
+
return s.query && l.response.status === 404 ? (o.value = {
|
|
541
541
|
status: Ae.NoResults,
|
|
542
542
|
response: u,
|
|
543
|
-
error:
|
|
543
|
+
error: l
|
|
544
544
|
}, u) : (o.value = {
|
|
545
545
|
status: Ae.Error,
|
|
546
546
|
response: u,
|
|
547
|
-
error:
|
|
547
|
+
error: l
|
|
548
548
|
}, u);
|
|
549
549
|
}
|
|
550
550
|
}, fetcherState: o };
|
|
@@ -608,8 +608,8 @@ function ea(e) {
|
|
|
608
608
|
const i = t[r];
|
|
609
609
|
if (!i)
|
|
610
610
|
return !1;
|
|
611
|
-
const [o,
|
|
612
|
-
return !(o && Dt(a, o, "<") ||
|
|
611
|
+
const [o, s] = i;
|
|
612
|
+
return !(o && Dt(a, o, "<") || s && Dt(a, s, ">"));
|
|
613
613
|
}
|
|
614
614
|
function ta(e) {
|
|
615
615
|
const n = K(0), t = K(0), r = K(!1);
|
|
@@ -646,10 +646,10 @@ const oe = {
|
|
|
646
646
|
for (const [r, a] of n)
|
|
647
647
|
t[r] = a;
|
|
648
648
|
return t;
|
|
649
|
-
},
|
|
649
|
+
}, sa = (e) => (fn("data-v-13f41aa3"), e = e(), mn(), e), la = ["aria-hidden"], ua = {
|
|
650
650
|
key: 0,
|
|
651
651
|
"data-testid": "kui-icon-svg-title"
|
|
652
|
-
}, ca = /* @__PURE__ */
|
|
652
|
+
}, ca = /* @__PURE__ */ sa(() => /* @__PURE__ */ B("path", {
|
|
653
653
|
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
654
654
|
fill: "currentColor"
|
|
655
655
|
}, null, -1)), da = /* @__PURE__ */ te({
|
|
@@ -740,7 +740,7 @@ const oe = {
|
|
|
740
740
|
}, [
|
|
741
741
|
e.title ? (d(), $("title", ua, M(e.title), 1)) : H("", !0),
|
|
742
742
|
ca
|
|
743
|
-
], 8,
|
|
743
|
+
], 8, la))
|
|
744
744
|
]),
|
|
745
745
|
_: 1
|
|
746
746
|
}, 8, ["aria-hidden", "style"]));
|
|
@@ -796,8 +796,8 @@ const oe = {
|
|
|
796
796
|
placement: "bottomStart"
|
|
797
797
|
} : {
|
|
798
798
|
title: r.uuid
|
|
799
|
-
}),
|
|
800
|
-
label:
|
|
799
|
+
}), s = A(() => !!(r.tooltip && r.successTooltip)), l = K(r.tooltip), u = A(() => r.tooltip ? {
|
|
800
|
+
label: l.value,
|
|
801
801
|
positionFixed: !0,
|
|
802
802
|
maxWidth: "500px",
|
|
803
803
|
placement: "bottomStart"
|
|
@@ -805,8 +805,8 @@ const oe = {
|
|
|
805
805
|
var m;
|
|
806
806
|
return r.format === "redacted" ? "*****" : r.format === "deleted" ? `*${(m = r.uuid) == null ? void 0 : m.substring(0, 5)}` : r.uuid;
|
|
807
807
|
}), c = (m) => {
|
|
808
|
-
|
|
809
|
-
|
|
808
|
+
l.value = m, setTimeout(() => {
|
|
809
|
+
l.value = r.tooltip;
|
|
810
810
|
}, 1800);
|
|
811
811
|
}, y = (m) => {
|
|
812
812
|
var I, b;
|
|
@@ -814,19 +814,19 @@ const oe = {
|
|
|
814
814
|
typeof i == "function" && i({
|
|
815
815
|
type: "error",
|
|
816
816
|
message: t("message.fail")
|
|
817
|
-
}),
|
|
817
|
+
}), s.value ? c(t("message.fail")) : a("error", r.uuid);
|
|
818
818
|
return;
|
|
819
819
|
}
|
|
820
820
|
const _ = ((I = r.uuid) == null ? void 0 : I.length) > Gt, C = r.format === "hidden" || r.format === "redacted" ? t("message.success.prefix") : `"${((b = r.uuid) == null ? void 0 : b.substring(0, Gt)) + (_ ? "..." : "")}"`;
|
|
821
821
|
typeof i == "function" && i({
|
|
822
822
|
type: "success",
|
|
823
823
|
message: `${C}${t("message.success.content")}`
|
|
824
|
-
}),
|
|
824
|
+
}), s.value ? c(r.successTooltip) : a("success", r.uuid);
|
|
825
825
|
};
|
|
826
826
|
return (m, I) => {
|
|
827
827
|
const b = U("KClipboardProvider");
|
|
828
828
|
return d(), $("div", ma, [
|
|
829
|
-
e.format !== "hidden" ? (d(), R(xe(e.idTooltip ? "KTooltip" : "div"),
|
|
829
|
+
e.format !== "hidden" ? (d(), R(xe(e.idTooltip ? "KTooltip" : "div"), lt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
|
|
830
830
|
default: g(() => [
|
|
831
831
|
B("div", {
|
|
832
832
|
class: Ie([
|
|
@@ -838,7 +838,7 @@ const oe = {
|
|
|
838
838
|
]),
|
|
839
839
|
_: 1
|
|
840
840
|
}, 16)) : H("", !0),
|
|
841
|
-
(d(), R(xe(e.tooltip ? "KTooltip" : "div"),
|
|
841
|
+
(d(), R(xe(e.tooltip ? "KTooltip" : "div"), lt(u.value, { class: "uuid-icon-wrapper" }), {
|
|
842
842
|
default: g(() => [
|
|
843
843
|
O(b, null, {
|
|
844
844
|
default: g(({ copyToClipboard: _ }) => [
|
|
@@ -891,18 +891,18 @@ const oe = {
|
|
|
891
891
|
},
|
|
892
892
|
setup(e) {
|
|
893
893
|
const n = e, { i18n: { t } } = oe.useI18n(), { convertKeyToTitle: r } = oe.useStringHelpers(), a = A(() => n.item.key ?? "json-array-item"), i = A(() => n.item.value ?? n.item), o = A(() => {
|
|
894
|
-
const
|
|
895
|
-
return n.isArrayItem && delete
|
|
896
|
-
}),
|
|
897
|
-
var
|
|
898
|
-
return n.isArrayItem ? (
|
|
894
|
+
const l = JSON.parse(JSON.stringify(i.value));
|
|
895
|
+
return n.isArrayItem && delete l.name, l;
|
|
896
|
+
}), s = A(() => {
|
|
897
|
+
var l;
|
|
898
|
+
return n.isArrayItem ? (l = i.value) != null && l.name ? r(i.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
899
899
|
});
|
|
900
|
-
return (
|
|
900
|
+
return (l, u) => (d(), R(xe(e.isArrayItem ? "fieldset" : "div"), {
|
|
901
901
|
class: Ie(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
902
902
|
}, {
|
|
903
903
|
default: g(() => [
|
|
904
904
|
e.isArrayItem ? (d(), $("legend", va, [
|
|
905
|
-
B("b", null, M(
|
|
905
|
+
B("b", null, M(s.value), 1)
|
|
906
906
|
])) : H("", !0),
|
|
907
907
|
(d(!0), $(me, null, pe(Object.keys(o.value), (p, c) => (d(), R(Ct, {
|
|
908
908
|
key: `${a.value}-property-${c}`,
|
|
@@ -994,12 +994,12 @@ const oe = {
|
|
|
994
994
|
emits: ["navigation-click"],
|
|
995
995
|
setup(e, { emit: n }) {
|
|
996
996
|
dn((I) => ({
|
|
997
|
-
"
|
|
998
|
-
"
|
|
999
|
-
"
|
|
1000
|
-
"
|
|
997
|
+
"5ae2770e": p.value ? "none" : `solid ${f(Sa)} ${f(_a)}`,
|
|
998
|
+
"4db3977e": u.value && s.value ? "block" : "flex",
|
|
999
|
+
"1a7c5e02": u.value && s.value ? "100%" : t.slim ? "50%" : "25%",
|
|
1000
|
+
"1a77d24c": u.value && s.value ? "100%" : t.slim ? "50%" : "75%"
|
|
1001
1001
|
}));
|
|
1002
|
-
const t = e, r = n, a = Ze(), { i18n: { t: i, formatUnixTimeStamp: o } } = oe.useI18n(),
|
|
1002
|
+
const t = e, r = n, a = Ze(), { i18n: { t: i, formatUnixTimeStamp: o } } = oe.useI18n(), s = A(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), l = A(() => !!(t.item.tooltip || a["label-tooltip"])), u = A(() => t.item.type === ee.Json || t.item.type === ee.JsonArray), p = A(() => t.item.type === ee.JsonArray), c = A(() => {
|
|
1003
1003
|
switch (t.item.type) {
|
|
1004
1004
|
case ee.ID:
|
|
1005
1005
|
return {
|
|
@@ -1140,7 +1140,7 @@ const oe = {
|
|
|
1140
1140
|
]),
|
|
1141
1141
|
_: 2
|
|
1142
1142
|
}, [
|
|
1143
|
-
|
|
1143
|
+
l.value ? {
|
|
1144
1144
|
name: "tooltip",
|
|
1145
1145
|
fn: g(() => [
|
|
1146
1146
|
B("div", {
|
|
@@ -1163,7 +1163,7 @@ const oe = {
|
|
|
1163
1163
|
Z(I.$slots, e.item.key, {
|
|
1164
1164
|
rowValue: e.item.value
|
|
1165
1165
|
}, () => [
|
|
1166
|
-
|
|
1166
|
+
s.value ? (d(), $("div", Ea, [
|
|
1167
1167
|
(d(), R(xe(c.value.tag), Cr(kr(c.value.attrs)), {
|
|
1168
1168
|
default: g(() => [
|
|
1169
1169
|
c.value.additionalComponent === "KBadge" ? (d(), $("div", {
|
|
@@ -1188,7 +1188,7 @@ const oe = {
|
|
|
1188
1188
|
class: "copy-uuid-array",
|
|
1189
1189
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1190
1190
|
}, [
|
|
1191
|
-
(d(!0), $(me, null, pe(e.item.value, (G, k) => (d(), R(f(kn),
|
|
1191
|
+
(d(!0), $(me, null, pe(e.item.value, (G, k) => (d(), R(f(kn), lt(c.value.childAttrs, {
|
|
1192
1192
|
key: `${e.item.key}-copy-uuid-${k}`,
|
|
1193
1193
|
"data-testid": `${e.item.key}-copy-uuid-${k}`,
|
|
1194
1194
|
uuid: G
|
|
@@ -1222,7 +1222,7 @@ const oe = {
|
|
|
1222
1222
|
}, null, 8, ["index", "item"]))), 128))
|
|
1223
1223
|
], 8, qa)) : (d(), R(w, {
|
|
1224
1224
|
key: 4,
|
|
1225
|
-
|
|
1225
|
+
text: f(m) ? e.item.value : ""
|
|
1226
1226
|
}, {
|
|
1227
1227
|
default: g(() => [
|
|
1228
1228
|
B("span", {
|
|
@@ -1232,7 +1232,7 @@ const oe = {
|
|
|
1232
1232
|
}, M(c.value.text), 3)
|
|
1233
1233
|
]),
|
|
1234
1234
|
_: 1
|
|
1235
|
-
}, 8, ["
|
|
1235
|
+
}, 8, ["text"]))
|
|
1236
1236
|
]),
|
|
1237
1237
|
_: 1
|
|
1238
1238
|
}, 16))
|
|
@@ -1245,7 +1245,7 @@ const oe = {
|
|
|
1245
1245
|
]);
|
|
1246
1246
|
};
|
|
1247
1247
|
}
|
|
1248
|
-
}), Ct = /* @__PURE__ */ ge(La, [["__scopeId", "data-v-
|
|
1248
|
+
}), Ct = /* @__PURE__ */ ge(La, [["__scopeId", "data-v-f65fc52c"]]), Ua = { class: "json-config" }, Pa = {
|
|
1249
1249
|
key: 0,
|
|
1250
1250
|
class: "json-endpoint"
|
|
1251
1251
|
}, In = /* @__PURE__ */ te({
|
|
@@ -1288,10 +1288,10 @@ const oe = {
|
|
|
1288
1288
|
});
|
|
1289
1289
|
return (a, i) => {
|
|
1290
1290
|
var o;
|
|
1291
|
-
const
|
|
1291
|
+
const s = U("KBadge"), l = U("KCodeBlock");
|
|
1292
1292
|
return d(), $("div", Ua, [
|
|
1293
1293
|
n.fetcherUrl && (o = n.config) != null && o.jsonYamlFormsEnabled ? (d(), $("div", Pa, [
|
|
1294
|
-
O(
|
|
1294
|
+
O(s, {
|
|
1295
1295
|
appearance: n.requestMethod
|
|
1296
1296
|
}, {
|
|
1297
1297
|
default: g(() => [
|
|
@@ -1299,7 +1299,7 @@ const oe = {
|
|
|
1299
1299
|
]),
|
|
1300
1300
|
_: 1
|
|
1301
1301
|
}, 8, ["appearance"]),
|
|
1302
|
-
O(
|
|
1302
|
+
O(l, {
|
|
1303
1303
|
id: "json-endpoint-codeblock",
|
|
1304
1304
|
code: n.fetcherUrl,
|
|
1305
1305
|
"is-single-line": "",
|
|
@@ -1307,7 +1307,7 @@ const oe = {
|
|
|
1307
1307
|
theme: "dark"
|
|
1308
1308
|
}, null, 8, ["code"])
|
|
1309
1309
|
])) : H("", !0),
|
|
1310
|
-
n.jsonRecord ? (d(), R(
|
|
1310
|
+
n.jsonRecord ? (d(), R(l, {
|
|
1311
1311
|
key: 1,
|
|
1312
1312
|
id: "json-codeblock",
|
|
1313
1313
|
class: Ie({ "json-content": n.fetcherUrl }),
|
|
@@ -1367,10 +1367,10 @@ Ue.prototype.constructor = Ue;
|
|
|
1367
1367
|
Ue.prototype.toString = function(e) {
|
|
1368
1368
|
return this.name + ": " + An(this, e);
|
|
1369
1369
|
};
|
|
1370
|
-
var
|
|
1370
|
+
var le = Ue;
|
|
1371
1371
|
function ot(e, n, t, r, a) {
|
|
1372
|
-
var i = "", o = "",
|
|
1373
|
-
return r - n >
|
|
1372
|
+
var i = "", o = "", s = Math.floor(a / 2) - 1;
|
|
1373
|
+
return r - n > s && (i = " ... ", n = r - s + i.length), t - r > s && (o = " ...", t = r + s - o.length), {
|
|
1374
1374
|
str: i + e.slice(n, t).replace(/\t/g, "→") + o,
|
|
1375
1375
|
pos: r - n + i.length
|
|
1376
1376
|
// relative position
|
|
@@ -1386,28 +1386,28 @@ function Xa(e, n) {
|
|
|
1386
1386
|
for (var t = /\r?\n|\r|\0/g, r = [0], a = [], i, o = -1; i = t.exec(e.buffer); )
|
|
1387
1387
|
a.push(i.index), r.push(i.index + i[0].length), e.position <= i.index && o < 0 && (o = r.length - 2);
|
|
1388
1388
|
o < 0 && (o = r.length - 1);
|
|
1389
|
-
var
|
|
1390
|
-
for (
|
|
1389
|
+
var s = "", l, u, p = Math.min(e.line + n.linesAfter, a.length).toString().length, c = n.maxLength - (n.indent + p + 3);
|
|
1390
|
+
for (l = 1; l <= n.linesBefore && !(o - l < 0); l++)
|
|
1391
1391
|
u = ot(
|
|
1392
1392
|
e.buffer,
|
|
1393
|
-
r[o -
|
|
1394
|
-
a[o -
|
|
1395
|
-
e.position - (r[o] - r[o -
|
|
1393
|
+
r[o - l],
|
|
1394
|
+
a[o - l],
|
|
1395
|
+
e.position - (r[o] - r[o - l]),
|
|
1396
1396
|
c
|
|
1397
|
-
),
|
|
1398
|
-
` +
|
|
1399
|
-
for (u = ot(e.buffer, r[o], a[o], e.position, c),
|
|
1400
|
-
`,
|
|
1401
|
-
`,
|
|
1397
|
+
), s = ae.repeat(" ", n.indent) + it((e.line - l + 1).toString(), p) + " | " + u.str + `
|
|
1398
|
+
` + s;
|
|
1399
|
+
for (u = ot(e.buffer, r[o], a[o], e.position, c), s += ae.repeat(" ", n.indent) + it((e.line + 1).toString(), p) + " | " + u.str + `
|
|
1400
|
+
`, s += ae.repeat("-", n.indent + p + 3 + u.pos) + `^
|
|
1401
|
+
`, l = 1; l <= n.linesAfter && !(o + l >= a.length); l++)
|
|
1402
1402
|
u = ot(
|
|
1403
1403
|
e.buffer,
|
|
1404
|
-
r[o +
|
|
1405
|
-
a[o +
|
|
1406
|
-
e.position - (r[o] - r[o +
|
|
1404
|
+
r[o + l],
|
|
1405
|
+
a[o + l],
|
|
1406
|
+
e.position - (r[o] - r[o + l]),
|
|
1407
1407
|
c
|
|
1408
|
-
),
|
|
1408
|
+
), s += ae.repeat(" ", n.indent) + it((e.line + l + 1).toString(), p) + " | " + u.str + `
|
|
1409
1409
|
`;
|
|
1410
|
-
return
|
|
1410
|
+
return s.replace(/\n$/, "");
|
|
1411
1411
|
}
|
|
1412
1412
|
var eo = Xa, to = [
|
|
1413
1413
|
"kind",
|
|
@@ -1436,13 +1436,13 @@ function ro(e) {
|
|
|
1436
1436
|
function ao(e, n) {
|
|
1437
1437
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1438
1438
|
if (to.indexOf(t) === -1)
|
|
1439
|
-
throw new
|
|
1439
|
+
throw new le('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1440
1440
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1441
1441
|
return !0;
|
|
1442
1442
|
}, this.construct = n.construct || function(t) {
|
|
1443
1443
|
return t;
|
|
1444
1444
|
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = ro(n.styleAliases || null), no.indexOf(this.kind) === -1)
|
|
1445
|
-
throw new
|
|
1445
|
+
throw new le('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1446
1446
|
}
|
|
1447
1447
|
var ie = ao;
|
|
1448
1448
|
function Ht(e, n) {
|
|
@@ -1486,17 +1486,17 @@ ct.prototype.extend = function(e) {
|
|
|
1486
1486
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
|
|
1487
1487
|
e.implicit && (n = n.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
|
|
1488
1488
|
else
|
|
1489
|
-
throw new
|
|
1489
|
+
throw new le("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1490
1490
|
n.forEach(function(a) {
|
|
1491
1491
|
if (!(a instanceof ie))
|
|
1492
|
-
throw new
|
|
1492
|
+
throw new le("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1493
1493
|
if (a.loadKind && a.loadKind !== "scalar")
|
|
1494
|
-
throw new
|
|
1494
|
+
throw new le("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1495
1495
|
if (a.multi)
|
|
1496
|
-
throw new
|
|
1496
|
+
throw new le("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1497
1497
|
}), t.forEach(function(a) {
|
|
1498
1498
|
if (!(a instanceof ie))
|
|
1499
|
-
throw new
|
|
1499
|
+
throw new le("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1500
1500
|
});
|
|
1501
1501
|
var r = Object.create(ct.prototype);
|
|
1502
1502
|
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ht(r, "implicit"), r.compiledExplicit = Ht(r, "explicit"), r.compiledTypeMap = oo(r.compiledImplicit, r.compiledExplicit), r;
|
|
@@ -1529,17 +1529,17 @@ function io(e) {
|
|
|
1529
1529
|
var n = e.length;
|
|
1530
1530
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function so() {
|
|
1533
1533
|
return null;
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function lo(e) {
|
|
1536
1536
|
return e === null;
|
|
1537
1537
|
}
|
|
1538
1538
|
var Mn = new ie("tag:yaml.org,2002:null", {
|
|
1539
1539
|
kind: "scalar",
|
|
1540
1540
|
resolve: io,
|
|
1541
|
-
construct:
|
|
1542
|
-
predicate:
|
|
1541
|
+
construct: so,
|
|
1542
|
+
predicate: lo,
|
|
1543
1543
|
represent: {
|
|
1544
1544
|
canonical: function() {
|
|
1545
1545
|
return "~";
|
|
@@ -1762,17 +1762,17 @@ function Ao(e) {
|
|
|
1762
1762
|
return e === null ? !1 : qn.exec(e) !== null || Bn.exec(e) !== null;
|
|
1763
1763
|
}
|
|
1764
1764
|
function So(e) {
|
|
1765
|
-
var n, t, r, a, i, o,
|
|
1765
|
+
var n, t, r, a, i, o, s, l = 0, u = null, p, c, y;
|
|
1766
1766
|
if (n = qn.exec(e), n === null && (n = Bn.exec(e)), n === null)
|
|
1767
1767
|
throw new Error("Date resolve error");
|
|
1768
1768
|
if (t = +n[1], r = +n[2] - 1, a = +n[3], !n[4])
|
|
1769
1769
|
return new Date(Date.UTC(t, r, a));
|
|
1770
|
-
if (i = +n[4], o = +n[5],
|
|
1771
|
-
for (
|
|
1772
|
-
|
|
1773
|
-
|
|
1770
|
+
if (i = +n[4], o = +n[5], s = +n[6], n[7]) {
|
|
1771
|
+
for (l = n[7].slice(0, 3); l.length < 3; )
|
|
1772
|
+
l += "0";
|
|
1773
|
+
l = +l;
|
|
1774
1774
|
}
|
|
1775
|
-
return n[9] && (p = +n[10], c = +(n[11] || 0), u = (p * 60 + c) * 6e4, n[9] === "-" && (u = -u)), y = new Date(Date.UTC(t, r, a, i, o,
|
|
1775
|
+
return n[9] && (p = +n[10], c = +(n[11] || 0), u = (p * 60 + c) * 6e4, n[9] === "-" && (u = -u)), y = new Date(Date.UTC(t, r, a, i, o, s, l)), u && y.setTime(y.getTime() - u), y;
|
|
1776
1776
|
}
|
|
1777
1777
|
function xo(e) {
|
|
1778
1778
|
return e.toISOString();
|
|
@@ -1805,10 +1805,10 @@ function jo(e) {
|
|
|
1805
1805
|
return r % 8 === 0;
|
|
1806
1806
|
}
|
|
1807
1807
|
function $o(e) {
|
|
1808
|
-
var n, t, r = e.replace(/[\r\n=]/g, ""), a = r.length, i = kt, o = 0,
|
|
1808
|
+
var n, t, r = e.replace(/[\r\n=]/g, ""), a = r.length, i = kt, o = 0, s = [];
|
|
1809
1809
|
for (n = 0; n < a; n++)
|
|
1810
|
-
n % 4 === 0 && n && (
|
|
1811
|
-
return t = a % 4 * 6, t === 0 ? (
|
|
1810
|
+
n % 4 === 0 && n && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | i.indexOf(r.charAt(n));
|
|
1811
|
+
return t = a % 4 * 6, t === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : t === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : t === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
|
|
1812
1812
|
}
|
|
1813
1813
|
function Mo(e) {
|
|
1814
1814
|
var n = "", t = 0, r, a, i = e.length, o = kt;
|
|
@@ -1829,9 +1829,9 @@ var Pn = new ie("tag:yaml.org,2002:binary", {
|
|
|
1829
1829
|
function No(e) {
|
|
1830
1830
|
if (e === null)
|
|
1831
1831
|
return !0;
|
|
1832
|
-
var n = [], t, r, a, i, o,
|
|
1833
|
-
for (t = 0, r =
|
|
1834
|
-
if (a =
|
|
1832
|
+
var n = [], t, r, a, i, o, s = e;
|
|
1833
|
+
for (t = 0, r = s.length; t < r; t += 1) {
|
|
1834
|
+
if (a = s[t], o = !1, Fo.call(a) !== "[object Object]")
|
|
1835
1835
|
return !1;
|
|
1836
1836
|
for (i in a)
|
|
1837
1837
|
if (Eo.call(a, i))
|
|
@@ -1907,7 +1907,7 @@ var Vn = new ie("tag:yaml.org,2002:set", {
|
|
|
1907
1907
|
Rn,
|
|
1908
1908
|
Vn
|
|
1909
1909
|
]
|
|
1910
|
-
}), _e = Object.prototype.hasOwnProperty, He = 1, Gn = 2, Hn = 3, ze = 4,
|
|
1910
|
+
}), _e = Object.prototype.hasOwnProperty, He = 1, Gn = 2, Hn = 3, ze = 4, st = 1, Ro = 2, zt = 3, Vo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Go = /[\x85\u2028\u2029]/, Ho = /[,\[\]\{\}]/, zn = /^(?:!|!!|![a-z\-]+!)$/i, Jn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1911
1911
|
function Jt(e) {
|
|
1912
1912
|
return Object.prototype.toString.call(e);
|
|
1913
1913
|
}
|
|
@@ -1958,7 +1958,7 @@ function Zn(e, n) {
|
|
|
1958
1958
|
line: e.line,
|
|
1959
1959
|
column: e.position - e.lineStart
|
|
1960
1960
|
};
|
|
1961
|
-
return t.snippet = eo(t), new
|
|
1961
|
+
return t.snippet = eo(t), new le(n, t);
|
|
1962
1962
|
}
|
|
1963
1963
|
function N(e, n) {
|
|
1964
1964
|
throw Zn(e, n);
|
|
@@ -1983,22 +1983,22 @@ var Wt = {
|
|
|
1983
1983
|
}
|
|
1984
1984
|
};
|
|
1985
1985
|
function we(e, n, t, r) {
|
|
1986
|
-
var a, i, o,
|
|
1986
|
+
var a, i, o, s;
|
|
1987
1987
|
if (n < t) {
|
|
1988
|
-
if (
|
|
1989
|
-
for (a = 0, i =
|
|
1990
|
-
o =
|
|
1988
|
+
if (s = e.input.slice(n, t), r)
|
|
1989
|
+
for (a = 0, i = s.length; a < i; a += 1)
|
|
1990
|
+
o = s.charCodeAt(a), o === 9 || 32 <= o && o <= 1114111 || N(e, "expected valid JSON character");
|
|
1991
1991
|
else
|
|
1992
|
-
Vo.test(
|
|
1993
|
-
e.result +=
|
|
1992
|
+
Vo.test(s) && N(e, "the stream contains non-printable characters");
|
|
1993
|
+
e.result += s;
|
|
1994
1994
|
}
|
|
1995
1995
|
}
|
|
1996
1996
|
function Zt(e, n, t, r) {
|
|
1997
|
-
var a, i, o,
|
|
1998
|
-
for (ae.isObject(t) || N(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(t), o = 0,
|
|
1997
|
+
var a, i, o, s;
|
|
1998
|
+
for (ae.isObject(t) || N(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(t), o = 0, s = a.length; o < s; o += 1)
|
|
1999
1999
|
i = a[o], _e.call(n, i) || (n[i] = t[i], r[i] = !0);
|
|
2000
2000
|
}
|
|
2001
|
-
function Fe(e, n, t, r, a, i, o,
|
|
2001
|
+
function Fe(e, n, t, r, a, i, o, s, l) {
|
|
2002
2002
|
var u, p;
|
|
2003
2003
|
if (Array.isArray(a))
|
|
2004
2004
|
for (a = Array.prototype.slice.call(a), u = 0, p = a.length; u < p; u += 1)
|
|
@@ -2010,7 +2010,7 @@ function Fe(e, n, t, r, a, i, o, l, s) {
|
|
|
2010
2010
|
else
|
|
2011
2011
|
Zt(e, n, i, t);
|
|
2012
2012
|
else
|
|
2013
|
-
!e.json && !_e.call(t, a) && _e.call(n, a) && (e.line = o || e.line, e.lineStart =
|
|
2013
|
+
!e.json && !_e.call(t, a) && _e.call(n, a) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, N(e, "duplicated mapping key")), a === "__proto__" ? Object.defineProperty(n, a, {
|
|
2014
2014
|
configurable: !0,
|
|
2015
2015
|
enumerable: !0,
|
|
2016
2016
|
writable: !0,
|
|
@@ -2047,10 +2047,10 @@ function _t(e, n) {
|
|
|
2047
2047
|
`, n - 1));
|
|
2048
2048
|
}
|
|
2049
2049
|
function Qo(e, n, t) {
|
|
2050
|
-
var r, a, i, o,
|
|
2050
|
+
var r, a, i, o, s, l, u, p, c = e.kind, y = e.result, m;
|
|
2051
2051
|
if (m = e.input.charCodeAt(e.position), fe(m) || Ee(m) || m === 35 || m === 38 || m === 42 || m === 33 || m === 124 || m === 62 || m === 39 || m === 34 || m === 37 || m === 64 || m === 96 || (m === 63 || m === 45) && (a = e.input.charCodeAt(e.position + 1), fe(a) || t && Ee(a)))
|
|
2052
2052
|
return !1;
|
|
2053
|
-
for (e.kind = "scalar", e.result = "", i = o = e.position,
|
|
2053
|
+
for (e.kind = "scalar", e.result = "", i = o = e.position, s = !1; m !== 0; ) {
|
|
2054
2054
|
if (m === 58) {
|
|
2055
2055
|
if (a = e.input.charCodeAt(e.position + 1), fe(a) || t && Ee(a))
|
|
2056
2056
|
break;
|
|
@@ -2061,15 +2061,15 @@ function Qo(e, n, t) {
|
|
|
2061
2061
|
if (e.position === e.lineStart && Xe(e) || t && Ee(m))
|
|
2062
2062
|
break;
|
|
2063
2063
|
if (he(m))
|
|
2064
|
-
if (
|
|
2065
|
-
|
|
2064
|
+
if (l = e.line, u = e.lineStart, p = e.lineIndent, re(e, !1, -1), e.lineIndent >= n) {
|
|
2065
|
+
s = !0, m = e.input.charCodeAt(e.position);
|
|
2066
2066
|
continue;
|
|
2067
2067
|
} else {
|
|
2068
|
-
e.position = o, e.line =
|
|
2068
|
+
e.position = o, e.line = l, e.lineStart = u, e.lineIndent = p;
|
|
2069
2069
|
break;
|
|
2070
2070
|
}
|
|
2071
2071
|
}
|
|
2072
|
-
|
|
2072
|
+
s && (we(e, i, o, !1), _t(e, e.line - l), i = o = e.position, s = !1), Se(m) || (o = e.position + 1), m = e.input.charCodeAt(++e.position);
|
|
2073
2073
|
}
|
|
2074
2074
|
return we(e, i, o, !1), e.result ? !0 : (e.kind = c, e.result = y, !1);
|
|
2075
2075
|
}
|
|
@@ -2088,46 +2088,46 @@ function Xo(e, n) {
|
|
|
2088
2088
|
N(e, "unexpected end of the stream within a single quoted scalar");
|
|
2089
2089
|
}
|
|
2090
2090
|
function ei(e, n) {
|
|
2091
|
-
var t, r, a, i, o,
|
|
2092
|
-
if (
|
|
2091
|
+
var t, r, a, i, o, s;
|
|
2092
|
+
if (s = e.input.charCodeAt(e.position), s !== 34)
|
|
2093
2093
|
return !1;
|
|
2094
|
-
for (e.kind = "scalar", e.result = "", e.position++, t = r = e.position; (
|
|
2095
|
-
if (
|
|
2094
|
+
for (e.kind = "scalar", e.result = "", e.position++, t = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
2095
|
+
if (s === 34)
|
|
2096
2096
|
return we(e, t, e.position, !0), e.position++, !0;
|
|
2097
|
-
if (
|
|
2098
|
-
if (we(e, t, e.position, !0),
|
|
2097
|
+
if (s === 92) {
|
|
2098
|
+
if (we(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), he(s))
|
|
2099
2099
|
re(e, !1, n);
|
|
2100
|
-
else if (
|
|
2101
|
-
e.result += Wn[
|
|
2102
|
-
else if ((o = Jo(
|
|
2100
|
+
else if (s < 256 && Yn[s])
|
|
2101
|
+
e.result += Wn[s], e.position++;
|
|
2102
|
+
else if ((o = Jo(s)) > 0) {
|
|
2103
2103
|
for (a = o, i = 0; a > 0; a--)
|
|
2104
|
-
|
|
2104
|
+
s = e.input.charCodeAt(++e.position), (o = zo(s)) >= 0 ? i = (i << 4) + o : N(e, "expected hexadecimal character");
|
|
2105
2105
|
e.result += Wo(i), e.position++;
|
|
2106
2106
|
} else
|
|
2107
2107
|
N(e, "unknown escape sequence");
|
|
2108
2108
|
t = r = e.position;
|
|
2109
2109
|
} else
|
|
2110
|
-
he(
|
|
2110
|
+
he(s) ? (we(e, t, r, !0), _t(e, re(e, !1, n)), t = r = e.position) : e.position === e.lineStart && Xe(e) ? N(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
2111
2111
|
}
|
|
2112
2112
|
N(e, "unexpected end of the stream within a double quoted scalar");
|
|
2113
2113
|
}
|
|
2114
2114
|
function ti(e, n) {
|
|
2115
|
-
var t = !0, r, a, i, o = e.tag,
|
|
2115
|
+
var t = !0, r, a, i, o = e.tag, s, l = e.anchor, u, p, c, y, m, I = /* @__PURE__ */ Object.create(null), b, _, C, w;
|
|
2116
2116
|
if (w = e.input.charCodeAt(e.position), w === 91)
|
|
2117
|
-
p = 93, m = !1,
|
|
2117
|
+
p = 93, m = !1, s = [];
|
|
2118
2118
|
else if (w === 123)
|
|
2119
|
-
p = 125, m = !0,
|
|
2119
|
+
p = 125, m = !0, s = {};
|
|
2120
2120
|
else
|
|
2121
2121
|
return !1;
|
|
2122
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] =
|
|
2122
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), w = e.input.charCodeAt(++e.position); w !== 0; ) {
|
|
2123
2123
|
if (re(e, !0, n), w = e.input.charCodeAt(e.position), w === p)
|
|
2124
|
-
return e.position++, e.tag = o, e.anchor =
|
|
2125
|
-
t ? w === 44 && N(e, "expected the node content, but found ','") : N(e, "missed comma between flow collection entries"), _ = b = C = null, c = y = !1, w === 63 && (u = e.input.charCodeAt(e.position + 1), fe(u) && (c = y = !0, e.position++, re(e, !0, n))), r = e.line, a = e.lineStart, i = e.position, Ne(e, n, He, !1, !0), _ = e.tag, b = e.result, re(e, !0, n), w = e.input.charCodeAt(e.position), (y || e.line === r) && w === 58 && (c = !0, w = e.input.charCodeAt(++e.position), re(e, !0, n), Ne(e, n, He, !1, !0), C = e.result), m ? Fe(e,
|
|
2124
|
+
return e.position++, e.tag = o, e.anchor = l, e.kind = m ? "mapping" : "sequence", e.result = s, !0;
|
|
2125
|
+
t ? w === 44 && N(e, "expected the node content, but found ','") : N(e, "missed comma between flow collection entries"), _ = b = C = null, c = y = !1, w === 63 && (u = e.input.charCodeAt(e.position + 1), fe(u) && (c = y = !0, e.position++, re(e, !0, n))), r = e.line, a = e.lineStart, i = e.position, Ne(e, n, He, !1, !0), _ = e.tag, b = e.result, re(e, !0, n), w = e.input.charCodeAt(e.position), (y || e.line === r) && w === 58 && (c = !0, w = e.input.charCodeAt(++e.position), re(e, !0, n), Ne(e, n, He, !1, !0), C = e.result), m ? Fe(e, s, I, _, b, C, r, a, i) : c ? s.push(Fe(e, null, I, _, b, C, r, a, i)) : s.push(b), re(e, !0, n), w = e.input.charCodeAt(e.position), w === 44 ? (t = !0, w = e.input.charCodeAt(++e.position)) : t = !1;
|
|
2126
2126
|
}
|
|
2127
2127
|
N(e, "unexpected end of the stream within a flow collection");
|
|
2128
2128
|
}
|
|
2129
2129
|
function ni(e, n) {
|
|
2130
|
-
var t, r, a =
|
|
2130
|
+
var t, r, a = st, i = !1, o = !1, s = n, l = 0, u = !1, p, c;
|
|
2131
2131
|
if (c = e.input.charCodeAt(e.position), c === 124)
|
|
2132
2132
|
r = !1;
|
|
2133
2133
|
else if (c === 62)
|
|
@@ -2136,9 +2136,9 @@ function ni(e, n) {
|
|
|
2136
2136
|
return !1;
|
|
2137
2137
|
for (e.kind = "scalar", e.result = ""; c !== 0; )
|
|
2138
2138
|
if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
|
|
2139
|
-
|
|
2139
|
+
st === a ? a = c === 43 ? zt : Ro : N(e, "repeat of a chomping mode identifier");
|
|
2140
2140
|
else if ((p = Yo(c)) >= 0)
|
|
2141
|
-
p === 0 ? N(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? N(e, "repeat of an indentation width identifier") : (
|
|
2141
|
+
p === 0 ? N(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? N(e, "repeat of an indentation width identifier") : (s = n + p - 1, o = !0);
|
|
2142
2142
|
else
|
|
2143
2143
|
break;
|
|
2144
2144
|
if (Se(c)) {
|
|
@@ -2151,59 +2151,59 @@ function ni(e, n) {
|
|
|
2151
2151
|
while (!he(c) && c !== 0);
|
|
2152
2152
|
}
|
|
2153
2153
|
for (; c !== 0; ) {
|
|
2154
|
-
for (It(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent <
|
|
2154
|
+
for (It(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && c === 32; )
|
|
2155
2155
|
e.lineIndent++, c = e.input.charCodeAt(++e.position);
|
|
2156
|
-
if (!o && e.lineIndent >
|
|
2157
|
-
|
|
2156
|
+
if (!o && e.lineIndent > s && (s = e.lineIndent), he(c)) {
|
|
2157
|
+
l++;
|
|
2158
2158
|
continue;
|
|
2159
2159
|
}
|
|
2160
|
-
if (e.lineIndent <
|
|
2160
|
+
if (e.lineIndent < s) {
|
|
2161
2161
|
a === zt ? e.result += ae.repeat(`
|
|
2162
|
-
`, i ? 1 +
|
|
2162
|
+
`, i ? 1 + l : l) : a === st && i && (e.result += `
|
|
2163
2163
|
`);
|
|
2164
2164
|
break;
|
|
2165
2165
|
}
|
|
2166
2166
|
for (r ? Se(c) ? (u = !0, e.result += ae.repeat(`
|
|
2167
|
-
`, i ? 1 +
|
|
2168
|
-
`,
|
|
2169
|
-
`,
|
|
2170
|
-
`, i ? 1 +
|
|
2167
|
+
`, i ? 1 + l : l)) : u ? (u = !1, e.result += ae.repeat(`
|
|
2168
|
+
`, l + 1)) : l === 0 ? i && (e.result += " ") : e.result += ae.repeat(`
|
|
2169
|
+
`, l) : e.result += ae.repeat(`
|
|
2170
|
+
`, i ? 1 + l : l), i = !0, o = !0, l = 0, t = e.position; !he(c) && c !== 0; )
|
|
2171
2171
|
c = e.input.charCodeAt(++e.position);
|
|
2172
2172
|
we(e, t, e.position, !1);
|
|
2173
2173
|
}
|
|
2174
2174
|
return !0;
|
|
2175
2175
|
}
|
|
2176
2176
|
function Qt(e, n) {
|
|
2177
|
-
var t, r = e.tag, a = e.anchor, i = [], o,
|
|
2177
|
+
var t, r = e.tag, a = e.anchor, i = [], o, s = !1, l;
|
|
2178
2178
|
if (e.firstTabInLine !== -1)
|
|
2179
2179
|
return !1;
|
|
2180
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = i),
|
|
2181
|
-
if (
|
|
2182
|
-
i.push(null),
|
|
2180
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = i), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, N(e, "tab characters must not be used in indentation")), !(l !== 45 || (o = e.input.charCodeAt(e.position + 1), !fe(o)))); ) {
|
|
2181
|
+
if (s = !0, e.position++, re(e, !0, -1) && e.lineIndent <= n) {
|
|
2182
|
+
i.push(null), l = e.input.charCodeAt(e.position);
|
|
2183
2183
|
continue;
|
|
2184
2184
|
}
|
|
2185
|
-
if (t = e.line, Ne(e, n, Hn, !1, !0), i.push(e.result), re(e, !0, -1),
|
|
2185
|
+
if (t = e.line, Ne(e, n, Hn, !1, !0), i.push(e.result), re(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
|
|
2186
2186
|
N(e, "bad indentation of a sequence entry");
|
|
2187
2187
|
else if (e.lineIndent < n)
|
|
2188
2188
|
break;
|
|
2189
2189
|
}
|
|
2190
|
-
return
|
|
2190
|
+
return s ? (e.tag = r, e.anchor = a, e.kind = "sequence", e.result = i, !0) : !1;
|
|
2191
2191
|
}
|
|
2192
2192
|
function ri(e, n, t) {
|
|
2193
|
-
var r, a, i, o,
|
|
2193
|
+
var r, a, i, o, s, l, u = e.tag, p = e.anchor, c = {}, y = /* @__PURE__ */ Object.create(null), m = null, I = null, b = null, _ = !1, C = !1, w;
|
|
2194
2194
|
if (e.firstTabInLine !== -1)
|
|
2195
2195
|
return !1;
|
|
2196
2196
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), w = e.input.charCodeAt(e.position); w !== 0; ) {
|
|
2197
2197
|
if (!_ && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, N(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), i = e.line, (w === 63 || w === 58) && fe(r))
|
|
2198
|
-
w === 63 ? (_ && (Fe(e, c, y, m, I, null, o,
|
|
2198
|
+
w === 63 ? (_ && (Fe(e, c, y, m, I, null, o, s, l), m = I = b = null), C = !0, _ = !0, a = !0) : _ ? (_ = !1, a = !0) : N(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, w = r;
|
|
2199
2199
|
else {
|
|
2200
|
-
if (o = e.line,
|
|
2200
|
+
if (o = e.line, s = e.lineStart, l = e.position, !Ne(e, t, Gn, !1, !0))
|
|
2201
2201
|
break;
|
|
2202
2202
|
if (e.line === i) {
|
|
2203
2203
|
for (w = e.input.charCodeAt(e.position); Se(w); )
|
|
2204
2204
|
w = e.input.charCodeAt(++e.position);
|
|
2205
2205
|
if (w === 58)
|
|
2206
|
-
w = e.input.charCodeAt(++e.position), fe(w) || N(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (Fe(e, c, y, m, I, null, o,
|
|
2206
|
+
w = e.input.charCodeAt(++e.position), fe(w) || N(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (Fe(e, c, y, m, I, null, o, s, l), m = I = b = null), C = !0, _ = !1, a = !1, m = e.tag, I = e.result;
|
|
2207
2207
|
else if (C)
|
|
2208
2208
|
N(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2209
2209
|
else
|
|
@@ -2213,12 +2213,12 @@ function ri(e, n, t) {
|
|
|
2213
2213
|
else
|
|
2214
2214
|
return e.tag = u, e.anchor = p, !0;
|
|
2215
2215
|
}
|
|
2216
|
-
if ((e.line === i || e.lineIndent > n) && (_ && (o = e.line,
|
|
2216
|
+
if ((e.line === i || e.lineIndent > n) && (_ && (o = e.line, s = e.lineStart, l = e.position), Ne(e, n, ze, !0, a) && (_ ? I = e.result : b = e.result), _ || (Fe(e, c, y, m, I, b, o, s, l), m = I = b = null), re(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > n) && w !== 0)
|
|
2217
2217
|
N(e, "bad indentation of a mapping entry");
|
|
2218
2218
|
else if (e.lineIndent < n)
|
|
2219
2219
|
break;
|
|
2220
2220
|
}
|
|
2221
|
-
return _ && Fe(e, c, y, m, I, null, o,
|
|
2221
|
+
return _ && Fe(e, c, y, m, I, null, o, s, l), C && (e.tag = u, e.anchor = p, e.kind = "mapping", e.result = c), C;
|
|
2222
2222
|
}
|
|
2223
2223
|
function ai(e) {
|
|
2224
2224
|
var n, t = !1, r = !1, a, i, o;
|
|
@@ -2259,11 +2259,11 @@ function ii(e) {
|
|
|
2259
2259
|
return e.position === n && N(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), _e.call(e.anchorMap, t) || N(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], re(e, !0, -1), !0;
|
|
2260
2260
|
}
|
|
2261
2261
|
function Ne(e, n, t, r, a) {
|
|
2262
|
-
var i, o,
|
|
2263
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o =
|
|
2262
|
+
var i, o, s, l = 1, u = !1, p = !1, c, y, m, I, b, _;
|
|
2263
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = s = ze === t || Hn === t, r && re(e, !0, -1) && (u = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
2264
2264
|
for (; ai(e) || oi(e); )
|
|
2265
|
-
re(e, !0, -1) ? (u = !0,
|
|
2266
|
-
if (
|
|
2265
|
+
re(e, !0, -1) ? (u = !0, s = i, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
2266
|
+
if (s && (s = u || a), (l === 1 || ze === t) && (He === t || Gn === t ? b = n : b = n + 1, _ = e.position - e.lineStart, l === 1 ? s && (Qt(e, _) || ri(e, _, b)) || ti(e, b) ? p = !0 : (o && ni(e, b) || Xo(e, b) || ei(e, b) ? p = !0 : ii(e) ? (p = !0, (e.tag !== null || e.anchor !== null) && N(e, "alias node should not have any properties")) : Qo(e, b, He === t) && (p = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (p = s && Qt(e, _))), e.tag === null)
|
|
2267
2267
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2268
2268
|
else if (e.tag === "?") {
|
|
2269
2269
|
for (e.result !== null && e.kind !== "scalar" && N(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, y = e.implicitTypes.length; c < y; c += 1)
|
|
@@ -2284,7 +2284,7 @@ function Ne(e, n, t, r, a) {
|
|
|
2284
2284
|
}
|
|
2285
2285
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || p;
|
|
2286
2286
|
}
|
|
2287
|
-
function
|
|
2287
|
+
function si(e) {
|
|
2288
2288
|
var n = e.position, t, r, a, i = !1, o;
|
|
2289
2289
|
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 && (re(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
2290
2290
|
for (i = !0, o = e.input.charCodeAt(++e.position), t = e.position; o !== 0 && !fe(o); )
|
|
@@ -2322,10 +2322,10 @@ function Qn(e, n) {
|
|
|
2322
2322
|
for (r !== -1 && (t.position = r, N(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2323
2323
|
t.lineIndent += 1, t.position += 1;
|
|
2324
2324
|
for (; t.position < t.length - 1; )
|
|
2325
|
-
|
|
2325
|
+
si(t);
|
|
2326
2326
|
return t.documents;
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function li(e, n, t) {
|
|
2329
2329
|
n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
|
|
2330
2330
|
var r = Qn(e, t);
|
|
2331
2331
|
if (typeof n != "function")
|
|
@@ -2338,28 +2338,28 @@ function ui(e, n) {
|
|
|
2338
2338
|
if (t.length !== 0) {
|
|
2339
2339
|
if (t.length === 1)
|
|
2340
2340
|
return t[0];
|
|
2341
|
-
throw new
|
|
2341
|
+
throw new le("expected a single document in the stream, but found more");
|
|
2342
2342
|
}
|
|
2343
2343
|
}
|
|
2344
|
-
var ci =
|
|
2344
|
+
var ci = li, di = ui, Xn = {
|
|
2345
2345
|
loadAll: ci,
|
|
2346
2346
|
load: di
|
|
2347
|
-
}, er = Object.prototype.toString, tr = Object.prototype.hasOwnProperty, At = 65279, pi = 9, Pe = 10, fi = 13, mi = 32, gi = 33, yi = 34, dt = 35, hi = 37, vi = 38, bi = 39, Ci = 42, nr = 44, ki = 45, Ye = 58, wi = 61, Ii = 62, _i = 63, Ai = 64, rr = 91, ar = 93, Si = 96, or = 123, xi = 124, ir = 125,
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2347
|
+
}, er = Object.prototype.toString, tr = Object.prototype.hasOwnProperty, At = 65279, pi = 9, Pe = 10, fi = 13, mi = 32, gi = 33, yi = 34, dt = 35, hi = 37, vi = 38, bi = 39, Ci = 42, nr = 44, ki = 45, Ye = 58, wi = 61, Ii = 62, _i = 63, Ai = 64, rr = 91, ar = 93, Si = 96, or = 123, xi = 124, ir = 125, se = {};
|
|
2348
|
+
se[0] = "\\0";
|
|
2349
|
+
se[7] = "\\a";
|
|
2350
|
+
se[8] = "\\b";
|
|
2351
|
+
se[9] = "\\t";
|
|
2352
|
+
se[10] = "\\n";
|
|
2353
|
+
se[11] = "\\v";
|
|
2354
|
+
se[12] = "\\f";
|
|
2355
|
+
se[13] = "\\r";
|
|
2356
|
+
se[27] = "\\e";
|
|
2357
|
+
se[34] = '\\"';
|
|
2358
|
+
se[92] = "\\\\";
|
|
2359
|
+
se[133] = "\\N";
|
|
2360
|
+
se[160] = "\\_";
|
|
2361
|
+
se[8232] = "\\L";
|
|
2362
|
+
se[8233] = "\\P";
|
|
2363
2363
|
var Ti = [
|
|
2364
2364
|
"y",
|
|
2365
2365
|
"Y",
|
|
@@ -2379,11 +2379,11 @@ var Ti = [
|
|
|
2379
2379
|
"OFF"
|
|
2380
2380
|
], ji = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2381
2381
|
function $i(e, n) {
|
|
2382
|
-
var t, r, a, i, o,
|
|
2382
|
+
var t, r, a, i, o, s, l;
|
|
2383
2383
|
if (n === null)
|
|
2384
2384
|
return {};
|
|
2385
2385
|
for (t = {}, r = Object.keys(n), a = 0, i = r.length; a < i; a += 1)
|
|
2386
|
-
o = r[a],
|
|
2386
|
+
o = r[a], s = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), l = e.compiledTypeMap.fallback[o], l && tr.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[o] = s;
|
|
2387
2387
|
return t;
|
|
2388
2388
|
}
|
|
2389
2389
|
function Mi(e) {
|
|
@@ -2395,7 +2395,7 @@ function Mi(e) {
|
|
|
2395
2395
|
else if (e <= 4294967295)
|
|
2396
2396
|
t = "U", r = 8;
|
|
2397
2397
|
else
|
|
2398
|
-
throw new
|
|
2398
|
+
throw new le("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2399
2399
|
return "\\" + t + ae.repeat("0", r - n.length) + n;
|
|
2400
2400
|
}
|
|
2401
2401
|
var Oi = 1, De = 2;
|
|
@@ -2403,9 +2403,9 @@ function Ei(e) {
|
|
|
2403
2403
|
this.schema = e.schema || wt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ae.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = $i(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 === '"' ? De : Oi, 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;
|
|
2404
2404
|
}
|
|
2405
2405
|
function Xt(e, n) {
|
|
2406
|
-
for (var t = ae.repeat(" ", n), r = 0, a = -1, i = "", o,
|
|
2406
|
+
for (var t = ae.repeat(" ", n), r = 0, a = -1, i = "", o, s = e.length; r < s; )
|
|
2407
2407
|
a = e.indexOf(`
|
|
2408
|
-
`, r), a === -1 ? (o = e.slice(r), r =
|
|
2408
|
+
`, r), a === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, a + 1), r = a + 1), o.length && o !== `
|
|
2409
2409
|
` && (i += t), i += o;
|
|
2410
2410
|
return i;
|
|
2411
2411
|
}
|
|
@@ -2449,31 +2449,31 @@ function qe(e, n) {
|
|
|
2449
2449
|
var t = e.charCodeAt(n), r;
|
|
2450
2450
|
return t >= 55296 && t <= 56319 && n + 1 < e.length && (r = e.charCodeAt(n + 1), r >= 56320 && r <= 57343) ? (t - 55296) * 1024 + r - 56320 + 65536 : t;
|
|
2451
2451
|
}
|
|
2452
|
-
function
|
|
2452
|
+
function sr(e) {
|
|
2453
2453
|
var n = /^\n* /;
|
|
2454
2454
|
return n.test(e);
|
|
2455
2455
|
}
|
|
2456
|
-
var
|
|
2457
|
-
function qi(e, n, t, r, a, i, o,
|
|
2458
|
-
var
|
|
2456
|
+
var lr = 1, ft = 2, ur = 3, cr = 4, Oe = 5;
|
|
2457
|
+
function qi(e, n, t, r, a, i, o, s) {
|
|
2458
|
+
var l, u = 0, p = null, c = !1, y = !1, m = r !== -1, I = -1, b = Ni(qe(e, 0)) && Ki(qe(e, e.length - 1));
|
|
2459
2459
|
if (n || o)
|
|
2460
|
-
for (
|
|
2461
|
-
if (u = qe(e,
|
|
2460
|
+
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2461
|
+
if (u = qe(e, l), !Re(u))
|
|
2462
2462
|
return Oe;
|
|
2463
|
-
b = b && tn(u, p,
|
|
2463
|
+
b = b && tn(u, p, s), p = u;
|
|
2464
2464
|
}
|
|
2465
2465
|
else {
|
|
2466
|
-
for (
|
|
2467
|
-
if (u = qe(e,
|
|
2466
|
+
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2467
|
+
if (u = qe(e, l), u === Pe)
|
|
2468
2468
|
c = !0, m && (y = y || // Foldable line = too long, and not more-indented.
|
|
2469
|
-
|
|
2469
|
+
l - I - 1 > r && e[I + 1] !== " ", I = l);
|
|
2470
2470
|
else if (!Re(u))
|
|
2471
2471
|
return Oe;
|
|
2472
|
-
b = b && tn(u, p,
|
|
2472
|
+
b = b && tn(u, p, s), p = u;
|
|
2473
2473
|
}
|
|
2474
|
-
y = y || m &&
|
|
2474
|
+
y = y || m && l - I - 1 > r && e[I + 1] !== " ";
|
|
2475
2475
|
}
|
|
2476
|
-
return !c && !y ? b && !o && !a(e) ?
|
|
2476
|
+
return !c && !y ? b && !o && !a(e) ? lr : i === De ? Oe : ft : t > 9 && sr(e) ? Oe : o ? i === De ? Oe : ft : y ? cr : ur;
|
|
2477
2477
|
}
|
|
2478
2478
|
function Bi(e, n, t, r, a) {
|
|
2479
2479
|
e.dump = function() {
|
|
@@ -2481,21 +2481,21 @@ function Bi(e, n, t, r, a) {
|
|
|
2481
2481
|
return e.quotingType === De ? '""' : "''";
|
|
2482
2482
|
if (!e.noCompatMode && (Ti.indexOf(n) !== -1 || ji.test(n)))
|
|
2483
2483
|
return e.quotingType === De ? '"' + n + '"' : "'" + n + "'";
|
|
2484
|
-
var i = e.indent * Math.max(1, t), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - i),
|
|
2485
|
-
function
|
|
2484
|
+
var i = e.indent * Math.max(1, t), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - i), s = r || e.flowLevel > -1 && t >= e.flowLevel;
|
|
2485
|
+
function l(u) {
|
|
2486
2486
|
return Fi(e, u);
|
|
2487
2487
|
}
|
|
2488
2488
|
switch (qi(
|
|
2489
2489
|
n,
|
|
2490
|
-
|
|
2490
|
+
s,
|
|
2491
2491
|
e.indent,
|
|
2492
2492
|
o,
|
|
2493
|
-
|
|
2493
|
+
l,
|
|
2494
2494
|
e.quotingType,
|
|
2495
2495
|
e.forceQuotes && !r,
|
|
2496
2496
|
a
|
|
2497
2497
|
)) {
|
|
2498
|
-
case
|
|
2498
|
+
case lr:
|
|
2499
2499
|
return n;
|
|
2500
2500
|
case ft:
|
|
2501
2501
|
return "'" + n.replace(/'/g, "''") + "'";
|
|
@@ -2506,12 +2506,12 @@ function Bi(e, n, t, r, a) {
|
|
|
2506
2506
|
case Oe:
|
|
2507
2507
|
return '"' + Ui(n) + '"';
|
|
2508
2508
|
default:
|
|
2509
|
-
throw new
|
|
2509
|
+
throw new le("impossible error: invalid scalar style");
|
|
2510
2510
|
}
|
|
2511
2511
|
}();
|
|
2512
2512
|
}
|
|
2513
2513
|
function nn(e, n) {
|
|
2514
|
-
var t =
|
|
2514
|
+
var t = sr(e) ? String(n) : "", r = e[e.length - 1] === `
|
|
2515
2515
|
`, a = r && (e[e.length - 2] === `
|
|
2516
2516
|
` || e === `
|
|
2517
2517
|
`), i = a ? "+" : r ? "" : "-";
|
|
@@ -2529,68 +2529,68 @@ function Li(e, n) {
|
|
|
2529
2529
|
return u = u !== -1 ? u : e.length, t.lastIndex = u, an(e.slice(0, u), n);
|
|
2530
2530
|
}(), a = e[0] === `
|
|
2531
2531
|
` || e[0] === " ", i, o; o = t.exec(e); ) {
|
|
2532
|
-
var
|
|
2533
|
-
i =
|
|
2534
|
-
` : "") + an(
|
|
2532
|
+
var s = o[1], l = o[2];
|
|
2533
|
+
i = l[0] === " ", r += s + (!a && !i && l !== "" ? `
|
|
2534
|
+
` : "") + an(l, n), a = i;
|
|
2535
2535
|
}
|
|
2536
2536
|
return r;
|
|
2537
2537
|
}
|
|
2538
2538
|
function an(e, n) {
|
|
2539
2539
|
if (e === "" || e[0] === " ")
|
|
2540
2540
|
return e;
|
|
2541
|
-
for (var t = / [^ ]/g, r, a = 0, i, o = 0,
|
|
2542
|
-
|
|
2543
|
-
` + e.slice(a, i), a = i + 1), o =
|
|
2544
|
-
return
|
|
2545
|
-
`, e.length - a > n && o > a ?
|
|
2546
|
-
` + e.slice(o + 1) :
|
|
2541
|
+
for (var t = / [^ ]/g, r, a = 0, i, o = 0, s = 0, l = ""; r = t.exec(e); )
|
|
2542
|
+
s = r.index, s - a > n && (i = o > a ? o : s, l += `
|
|
2543
|
+
` + e.slice(a, i), a = i + 1), o = s;
|
|
2544
|
+
return l += `
|
|
2545
|
+
`, e.length - a > n && o > a ? l += e.slice(a, o) + `
|
|
2546
|
+
` + e.slice(o + 1) : l += e.slice(a), l.slice(1);
|
|
2547
2547
|
}
|
|
2548
2548
|
function Ui(e) {
|
|
2549
2549
|
for (var n = "", t = 0, r, a = 0; a < e.length; t >= 65536 ? a += 2 : a++)
|
|
2550
|
-
t = qe(e, a), r =
|
|
2550
|
+
t = qe(e, a), r = se[t], !r && Re(t) ? (n += e[a], t >= 65536 && (n += e[a + 1])) : n += r || Mi(t);
|
|
2551
2551
|
return n;
|
|
2552
2552
|
}
|
|
2553
2553
|
function Pi(e, n, t) {
|
|
2554
|
-
var r = "", a = e.tag, i, o,
|
|
2554
|
+
var r = "", a = e.tag, i, o, s;
|
|
2555
2555
|
for (i = 0, o = t.length; i < o; i += 1)
|
|
2556
|
-
|
|
2556
|
+
s = t[i], e.replacer && (s = e.replacer.call(t, String(i), s)), (Ce(e, n, s, !1, !1) || typeof s > "u" && Ce(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
2557
2557
|
e.tag = a, e.dump = "[" + r + "]";
|
|
2558
2558
|
}
|
|
2559
2559
|
function on(e, n, t, r) {
|
|
2560
|
-
var a = "", i = e.tag, o,
|
|
2561
|
-
for (o = 0,
|
|
2562
|
-
|
|
2560
|
+
var a = "", i = e.tag, o, s, l;
|
|
2561
|
+
for (o = 0, s = t.length; o < s; o += 1)
|
|
2562
|
+
l = t[o], e.replacer && (l = e.replacer.call(t, String(o), l)), (Ce(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Ce(e, n + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a += pt(e, n)), e.dump && Pe === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
|
|
2563
2563
|
e.tag = i, e.dump = a || "[]";
|
|
2564
2564
|
}
|
|
2565
2565
|
function Di(e, n, t) {
|
|
2566
|
-
var r = "", a = e.tag, i = Object.keys(t), o,
|
|
2567
|
-
for (o = 0,
|
|
2568
|
-
p = "", r !== "" && (p += ", "), e.condenseFlow && (p += '"'),
|
|
2566
|
+
var r = "", a = e.tag, i = Object.keys(t), o, s, l, u, p;
|
|
2567
|
+
for (o = 0, s = i.length; o < s; o += 1)
|
|
2568
|
+
p = "", r !== "" && (p += ", "), e.condenseFlow && (p += '"'), l = i[o], u = t[l], e.replacer && (u = e.replacer.call(t, l, u)), Ce(e, n, l, !1, !1) && (e.dump.length > 1024 && (p += "? "), p += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Ce(e, n, u, !1, !1) && (p += e.dump, r += p));
|
|
2569
2569
|
e.tag = a, e.dump = "{" + r + "}";
|
|
2570
2570
|
}
|
|
2571
2571
|
function Ri(e, n, t, r) {
|
|
2572
|
-
var a = "", i = e.tag, o = Object.keys(t),
|
|
2572
|
+
var a = "", i = e.tag, o = Object.keys(t), s, l, u, p, c, y;
|
|
2573
2573
|
if (e.sortKeys === !0)
|
|
2574
2574
|
o.sort();
|
|
2575
2575
|
else if (typeof e.sortKeys == "function")
|
|
2576
2576
|
o.sort(e.sortKeys);
|
|
2577
2577
|
else if (e.sortKeys)
|
|
2578
|
-
throw new
|
|
2579
|
-
for (
|
|
2580
|
-
y = "", (!r || a !== "") && (y += pt(e, n)), u = o[
|
|
2578
|
+
throw new le("sortKeys must be a boolean or a function");
|
|
2579
|
+
for (s = 0, l = o.length; s < l; s += 1)
|
|
2580
|
+
y = "", (!r || a !== "") && (y += pt(e, n)), u = o[s], p = t[u], e.replacer && (p = e.replacer.call(t, u, p)), Ce(e, n + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Pe === e.dump.charCodeAt(0) ? y += "?" : y += "? "), y += e.dump, c && (y += pt(e, n)), Ce(e, n + 1, p, !0, c) && (e.dump && Pe === e.dump.charCodeAt(0) ? y += ":" : y += ": ", y += e.dump, a += y));
|
|
2581
2581
|
e.tag = i, e.dump = a || "{}";
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2584
|
-
var r, a, i, o,
|
|
2583
|
+
function sn(e, n, t) {
|
|
2584
|
+
var r, a, i, o, s, l;
|
|
2585
2585
|
for (a = t ? e.explicitTypes : e.implicitTypes, i = 0, o = a.length; i < o; i += 1)
|
|
2586
|
-
if (
|
|
2587
|
-
if (t ?
|
|
2588
|
-
if (
|
|
2589
|
-
r =
|
|
2590
|
-
else if (tr.call(
|
|
2591
|
-
r =
|
|
2586
|
+
if (s = a[i], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof n == "object" && n instanceof s.instanceOf) && (!s.predicate || s.predicate(n))) {
|
|
2587
|
+
if (t ? s.multi && s.representName ? e.tag = s.representName(n) : e.tag = s.tag : e.tag = "?", s.represent) {
|
|
2588
|
+
if (l = e.styleMap[s.tag] || s.defaultStyle, er.call(s.represent) === "[object Function]")
|
|
2589
|
+
r = s.represent(n, l);
|
|
2590
|
+
else if (tr.call(s.represent, l))
|
|
2591
|
+
r = s.represent[l](n, l);
|
|
2592
2592
|
else
|
|
2593
|
-
throw new
|
|
2593
|
+
throw new le("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
|
|
2594
2594
|
e.dump = r;
|
|
2595
2595
|
}
|
|
2596
2596
|
return !0;
|
|
@@ -2598,23 +2598,23 @@ function ln(e, n, t) {
|
|
|
2598
2598
|
return !1;
|
|
2599
2599
|
}
|
|
2600
2600
|
function Ce(e, n, t, r, a, i, o) {
|
|
2601
|
-
e.tag = null, e.dump = t,
|
|
2602
|
-
var
|
|
2601
|
+
e.tag = null, e.dump = t, sn(e, t, !1) || sn(e, t, !0);
|
|
2602
|
+
var s = er.call(e.dump), l = r, u;
|
|
2603
2603
|
r && (r = e.flowLevel < 0 || e.flowLevel > n);
|
|
2604
|
-
var p =
|
|
2604
|
+
var p = s === "[object Object]" || s === "[object Array]", c, y;
|
|
2605
2605
|
if (p && (c = e.duplicates.indexOf(t), y = c !== -1), (e.tag !== null && e.tag !== "?" || y || e.indent !== 2 && n > 0) && (a = !1), y && e.usedDuplicates[c])
|
|
2606
2606
|
e.dump = "*ref_" + c;
|
|
2607
2607
|
else {
|
|
2608
|
-
if (p && y && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0),
|
|
2608
|
+
if (p && y && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), s === "[object Object]")
|
|
2609
2609
|
r && Object.keys(e.dump).length !== 0 ? (Ri(e, n, e.dump, a), y && (e.dump = "&ref_" + c + e.dump)) : (Di(e, n, e.dump), y && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2610
|
-
else if (
|
|
2610
|
+
else if (s === "[object Array]")
|
|
2611
2611
|
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? on(e, n - 1, e.dump, a) : on(e, n, e.dump, a), y && (e.dump = "&ref_" + c + e.dump)) : (Pi(e, n, e.dump), y && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2612
|
-
else if (
|
|
2613
|
-
e.tag !== "?" && Bi(e, e.dump, n, i,
|
|
2612
|
+
else if (s === "[object String]")
|
|
2613
|
+
e.tag !== "?" && Bi(e, e.dump, n, i, l);
|
|
2614
2614
|
else {
|
|
2615
|
-
if (
|
|
2615
|
+
if (s === "[object Undefined]" || e.skipInvalid)
|
|
2616
2616
|
return !1;
|
|
2617
|
-
throw new
|
|
2617
|
+
throw new le("unacceptable kind of an object to dump " + s);
|
|
2618
2618
|
}
|
|
2619
2619
|
e.tag !== null && e.tag !== "?" && (u = encodeURI(
|
|
2620
2620
|
e.tag[0] === "!" ? e.tag.slice(1) : e.tag
|
|
@@ -2656,7 +2656,7 @@ function St(e, n) {
|
|
|
2656
2656
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2657
2657
|
};
|
|
2658
2658
|
}
|
|
2659
|
-
var Ji = ie, Yi = Sn, Wi = $n, Zi = Nn, Qi = Kn, Xi = wt,
|
|
2659
|
+
var Ji = ie, Yi = Sn, Wi = $n, Zi = Nn, Qi = Kn, Xi = wt, es = Xn.load, ts = Xn.loadAll, ns = zi.dump, rs = le, as = {
|
|
2660
2660
|
binary: Pn,
|
|
2661
2661
|
float: Fn,
|
|
2662
2662
|
map: jn,
|
|
@@ -2670,23 +2670,23 @@ var Ji = ie, Yi = Sn, Wi = $n, Zi = Nn, Qi = Kn, Xi = wt, el = Xn.load, tl = Xn.
|
|
|
2670
2670
|
omap: Dn,
|
|
2671
2671
|
seq: Tn,
|
|
2672
2672
|
str: xn
|
|
2673
|
-
},
|
|
2673
|
+
}, os = St("safeLoad", "load"), is = St("safeLoadAll", "loadAll"), ss = St("safeDump", "dump"), ls = {
|
|
2674
2674
|
Type: Ji,
|
|
2675
2675
|
Schema: Yi,
|
|
2676
2676
|
FAILSAFE_SCHEMA: Wi,
|
|
2677
2677
|
JSON_SCHEMA: Zi,
|
|
2678
2678
|
CORE_SCHEMA: Qi,
|
|
2679
2679
|
DEFAULT_SCHEMA: Xi,
|
|
2680
|
-
load:
|
|
2681
|
-
loadAll:
|
|
2682
|
-
dump:
|
|
2683
|
-
YAMLException:
|
|
2684
|
-
types:
|
|
2685
|
-
safeLoad:
|
|
2686
|
-
safeLoadAll:
|
|
2687
|
-
safeDump:
|
|
2680
|
+
load: es,
|
|
2681
|
+
loadAll: ts,
|
|
2682
|
+
dump: ns,
|
|
2683
|
+
YAMLException: rs,
|
|
2684
|
+
types: as,
|
|
2685
|
+
safeLoad: os,
|
|
2686
|
+
safeLoadAll: is,
|
|
2687
|
+
safeDump: ss
|
|
2688
2688
|
};
|
|
2689
|
-
const
|
|
2689
|
+
const us = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
2690
2690
|
__name: "YamlCodeBlock",
|
|
2691
2691
|
props: {
|
|
2692
2692
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2699,24 +2699,24 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
2699
2699
|
const n = e, t = A(() => n.yamlRecord);
|
|
2700
2700
|
return (r, a) => {
|
|
2701
2701
|
const i = U("KCodeBlock");
|
|
2702
|
-
return d(), $("div",
|
|
2702
|
+
return d(), $("div", us, [
|
|
2703
2703
|
n.yamlRecord ? (d(), R(i, {
|
|
2704
2704
|
key: 0,
|
|
2705
2705
|
id: "yaml-codeblock",
|
|
2706
|
-
code: f(
|
|
2706
|
+
code: f(ls).dump(t.value),
|
|
2707
2707
|
language: "yaml",
|
|
2708
2708
|
theme: "dark"
|
|
2709
2709
|
}, null, 8, ["code"])) : H("", !0)
|
|
2710
2710
|
]);
|
|
2711
2711
|
};
|
|
2712
2712
|
}
|
|
2713
|
-
}),
|
|
2713
|
+
}), cs = {
|
|
2714
2714
|
key: 0,
|
|
2715
2715
|
class: "config-card-display-form"
|
|
2716
|
-
},
|
|
2716
|
+
}, ds = ["data-testid"], ps = {
|
|
2717
2717
|
key: 0,
|
|
2718
2718
|
class: "config-card-prop-section-title"
|
|
2719
|
-
},
|
|
2719
|
+
}, fs = /* @__PURE__ */ te({
|
|
2720
2720
|
__name: "ConfigCardDisplay",
|
|
2721
2721
|
props: {
|
|
2722
2722
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2761,15 +2761,15 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
2761
2761
|
const o = JSON.parse(JSON.stringify(n.record));
|
|
2762
2762
|
return delete o.created_at, delete o.updated_at, o;
|
|
2763
2763
|
});
|
|
2764
|
-
return (o,
|
|
2765
|
-
e.format === "structured" ? (d(), $("div",
|
|
2766
|
-
(d(!0), $(me, null, pe(e.propListTypes, (
|
|
2767
|
-
key: `config-card-details-${
|
|
2768
|
-
class: Ie(`config-card-details-${
|
|
2769
|
-
"data-testid": `config-card-details-${
|
|
2764
|
+
return (o, s) => (d(), $(me, null, [
|
|
2765
|
+
e.format === "structured" ? (d(), $("div", cs, [
|
|
2766
|
+
(d(!0), $(me, null, pe(e.propListTypes, (l) => (d(), $("div", {
|
|
2767
|
+
key: `config-card-details-${l}-props`,
|
|
2768
|
+
class: Ie(`config-card-details-${l}-props`),
|
|
2769
|
+
"data-testid": `config-card-details-${l}-props`
|
|
2770
2770
|
}, [
|
|
2771
|
-
|
|
2772
|
-
(d(!0), $(me, null, pe(e.propertyCollections[
|
|
2771
|
+
l !== "basic" ? (d(), $("div", ps, M(l === "advanced" ? f(r)("baseConfigCard.sections.advanced") : f(r)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
|
|
2772
|
+
(d(!0), $(me, null, pe(e.propertyCollections[l], (u) => (d(), R(Ct, {
|
|
2773
2773
|
key: u.key,
|
|
2774
2774
|
item: u
|
|
2775
2775
|
}, ke({
|
|
@@ -2792,7 +2792,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
2792
2792
|
key: "0"
|
|
2793
2793
|
} : void 0
|
|
2794
2794
|
]), 1032, ["item"]))), 128))
|
|
2795
|
-
], 10,
|
|
2795
|
+
], 10, ds))), 128))
|
|
2796
2796
|
])) : H("", !0),
|
|
2797
2797
|
e.format === "json" && n.record ? (d(), R(In, {
|
|
2798
2798
|
key: 1,
|
|
@@ -2807,18 +2807,18 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
2807
2807
|
}, null, 8, ["yaml-record"])) : H("", !0)
|
|
2808
2808
|
], 64));
|
|
2809
2809
|
}
|
|
2810
|
-
}),
|
|
2810
|
+
}), ms = /* @__PURE__ */ ge(fs, [["__scopeId", "data-v-2b74ac63"]]), ln = "24px", gs = (e, n) => {
|
|
2811
2811
|
const t = e.__vccOpts || e;
|
|
2812
2812
|
for (const [r, a] of n)
|
|
2813
2813
|
t[r] = a;
|
|
2814
2814
|
return t;
|
|
2815
|
-
},
|
|
2815
|
+
}, ys = (e) => (fn("data-v-40a7f387"), e = e(), mn(), e), hs = ["aria-hidden"], vs = {
|
|
2816
2816
|
key: 0,
|
|
2817
2817
|
"data-testid": "kui-icon-svg-title"
|
|
2818
|
-
},
|
|
2818
|
+
}, bs = /* @__PURE__ */ ys(() => /* @__PURE__ */ B("path", {
|
|
2819
2819
|
d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
|
|
2820
2820
|
fill: "currentColor"
|
|
2821
|
-
}, null, -1)),
|
|
2821
|
+
}, null, -1)), Cs = /* @__PURE__ */ te({
|
|
2822
2822
|
__name: "BookIcon",
|
|
2823
2823
|
props: {
|
|
2824
2824
|
/** The accessibility text provided to screen readers */
|
|
@@ -2849,7 +2849,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
2849
2849
|
size: {
|
|
2850
2850
|
type: [Number, String],
|
|
2851
2851
|
required: !1,
|
|
2852
|
-
default:
|
|
2852
|
+
default: ln,
|
|
2853
2853
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2854
2854
|
validator: (e) => {
|
|
2855
2855
|
if (typeof e == "number" && e > 0)
|
|
@@ -2878,7 +2878,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
2878
2878
|
if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
|
|
2879
2879
|
return `${i}px`;
|
|
2880
2880
|
}
|
|
2881
|
-
return
|
|
2881
|
+
return ln;
|
|
2882
2882
|
}), r = A(() => ({
|
|
2883
2883
|
boxSizing: "border-box",
|
|
2884
2884
|
color: n.color,
|
|
@@ -2904,23 +2904,23 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
2904
2904
|
width: "100%",
|
|
2905
2905
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2906
2906
|
}, [
|
|
2907
|
-
e.title ? (d(), $("title",
|
|
2908
|
-
|
|
2909
|
-
], 8,
|
|
2907
|
+
e.title ? (d(), $("title", vs, M(e.title), 1)) : H("", !0),
|
|
2908
|
+
bs
|
|
2909
|
+
], 8, hs))
|
|
2910
2910
|
]),
|
|
2911
2911
|
_: 1
|
|
2912
2912
|
}, 8, ["aria-hidden", "style"]));
|
|
2913
2913
|
}
|
|
2914
|
-
}),
|
|
2914
|
+
}), ks = /* @__PURE__ */ gs(Cs, [["__scopeId", "data-v-40a7f387"]]), ws = { "data-testid": "config-card-title" }, Is = { class: "config-card-actions" }, _s = ["href"], As = {
|
|
2915
2915
|
key: 2,
|
|
2916
2916
|
class: "config-card-details-section"
|
|
2917
|
-
},
|
|
2917
|
+
}, Ss = {
|
|
2918
2918
|
key: 3,
|
|
2919
2919
|
class: "config-card-details-section"
|
|
2920
|
-
},
|
|
2920
|
+
}, xs = ["data-testid"], Ts = {
|
|
2921
2921
|
key: 0,
|
|
2922
2922
|
class: "config-card-prop-section-title"
|
|
2923
|
-
},
|
|
2923
|
+
}, js = /* @__PURE__ */ te({
|
|
2924
2924
|
__name: "EntityBaseConfigCard",
|
|
2925
2925
|
props: {
|
|
2926
2926
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2995,7 +2995,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
2995
2995
|
emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
|
|
2996
2996
|
setup(e, { emit: n }) {
|
|
2997
2997
|
var t;
|
|
2998
|
-
const r = n, a = e, i = Ze(), { i18n: { t: o } } = oe.useI18n(), { getMessageFromError:
|
|
2998
|
+
const r = n, a = e, i = Ze(), { i18n: { t: o } } = oe.useI18n(), { getMessageFromError: s } = oe.useErrors(), { convertKeyToTitle: l } = oe.useStringHelpers(), { axiosInstance: u } = oe.useAxios({
|
|
2999
2999
|
headers: (t = a.config) == null ? void 0 : t.requestHeaders
|
|
3000
3000
|
}), p = [
|
|
3001
3001
|
{
|
|
@@ -3067,7 +3067,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3067
3067
|
value: J,
|
|
3068
3068
|
hidden: X.hidden || !1,
|
|
3069
3069
|
type: X.type ?? ((ue == null ? void 0 : ue.type) || ee.Text),
|
|
3070
|
-
label: X.label ?? ((ue == null ? void 0 : ue.label) ||
|
|
3070
|
+
label: X.label ?? ((ue == null ? void 0 : ue.label) || l(Q)),
|
|
3071
3071
|
tooltip: X.tooltip ?? ((ue == null ? void 0 : ue.tooltip) || void 0),
|
|
3072
3072
|
section: X.section ?? ((ue == null ? void 0 : ue.section) || de.Advanced)
|
|
3073
3073
|
};
|
|
@@ -3092,7 +3092,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3092
3092
|
value: Q,
|
|
3093
3093
|
hidden: J.hidden || !1,
|
|
3094
3094
|
type: J.type ?? ee.Text,
|
|
3095
|
-
label: J.label ??
|
|
3095
|
+
label: J.label ?? l(V),
|
|
3096
3096
|
tooltip: J.tooltip ?? void 0,
|
|
3097
3097
|
section: de.Plugin
|
|
3098
3098
|
};
|
|
@@ -3131,7 +3131,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3131
3131
|
C.value && typeof C.value[q] > "u" && (C.value[q] = null);
|
|
3132
3132
|
}), r("fetch:success", v);
|
|
3133
3133
|
} catch (v) {
|
|
3134
|
-
const q =
|
|
3134
|
+
const q = s(v);
|
|
3135
3135
|
_.value = q.startsWith("code") ? o("baseConfigCard.errors.load") : q, b.value = !0, r("fetch:error", v);
|
|
3136
3136
|
} finally {
|
|
3137
3137
|
I.value = !1;
|
|
@@ -3140,7 +3140,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3140
3140
|
const S = U("KLabel"), D = U("KSelect"), x = U("KButton"), F = U("KClipboardProvider"), P = U("KSkeleton"), V = U("KEmptyState"), Q = U("KCard");
|
|
3141
3141
|
return d(), R(Q, { class: "kong-ui-entity-base-config-card" }, ke({
|
|
3142
3142
|
actions: g(() => [
|
|
3143
|
-
B("div",
|
|
3143
|
+
B("div", Is, [
|
|
3144
3144
|
Z(v.$slots, "actions", {}, void 0, !0),
|
|
3145
3145
|
e.config.jsonYamlEnabled ? (d(), R(S, {
|
|
3146
3146
|
key: 0,
|
|
@@ -3170,8 +3170,8 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3170
3170
|
rel: "noopener",
|
|
3171
3171
|
target: "_blank"
|
|
3172
3172
|
}, [
|
|
3173
|
-
O(f(
|
|
3174
|
-
], 8,
|
|
3173
|
+
O(f(ks), { size: f(xa) }, null, 8, ["size"])
|
|
3174
|
+
], 8, _s)
|
|
3175
3175
|
]),
|
|
3176
3176
|
_: 1
|
|
3177
3177
|
})) : H("", !0),
|
|
@@ -3209,8 +3209,8 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3209
3209
|
]),
|
|
3210
3210
|
_: 1
|
|
3211
3211
|
})) : H("", !0),
|
|
3212
|
-
e.config.jsonYamlEnabled ? (d(), $("div",
|
|
3213
|
-
O(
|
|
3212
|
+
e.config.jsonYamlEnabled ? (d(), $("div", As, [
|
|
3213
|
+
O(ms, {
|
|
3214
3214
|
config: e.config,
|
|
3215
3215
|
"fetcher-url": E.value,
|
|
3216
3216
|
format: c.value,
|
|
@@ -3228,13 +3228,13 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3228
3228
|
])
|
|
3229
3229
|
}))
|
|
3230
3230
|
]), 1032, ["config", "fetcher-url", "format", "prop-list-types", "property-collections", "record"])
|
|
3231
|
-
])) : (d(), $("div",
|
|
3231
|
+
])) : (d(), $("div", Ss, [
|
|
3232
3232
|
(d(!0), $(me, null, pe(j.value, (J) => (d(), $("div", {
|
|
3233
3233
|
key: `config-card-details-${J}-props`,
|
|
3234
3234
|
class: Ie(`config-card-details-${J}-props`),
|
|
3235
3235
|
"data-testid": `config-card-details-${J}-props`
|
|
3236
3236
|
}, [
|
|
3237
|
-
J !== "basic" ? (d(), $("div",
|
|
3237
|
+
J !== "basic" ? (d(), $("div", Ts, M(J === "advanced" ? f(o)("baseConfigCard.sections.advanced") : f(o)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
|
|
3238
3238
|
(d(!0), $(me, null, pe(k.value[J], (X) => (d(), R(Ct, {
|
|
3239
3239
|
key: X.key,
|
|
3240
3240
|
item: X
|
|
@@ -3258,7 +3258,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3258
3258
|
key: "0"
|
|
3259
3259
|
} : void 0
|
|
3260
3260
|
]), 1032, ["item"]))), 128))
|
|
3261
|
-
], 10,
|
|
3261
|
+
], 10, xs))), 128))
|
|
3262
3262
|
]))
|
|
3263
3263
|
]),
|
|
3264
3264
|
_: 2
|
|
@@ -3266,7 +3266,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3266
3266
|
e.hideTitle ? void 0 : {
|
|
3267
3267
|
name: "title",
|
|
3268
3268
|
fn: g(() => [
|
|
3269
|
-
B("div",
|
|
3269
|
+
B("div", ws, [
|
|
3270
3270
|
Z(v.$slots, "title", {}, () => [
|
|
3271
3271
|
Y(M(f(o)("baseConfigCard.title")), 1)
|
|
3272
3272
|
], !0)
|
|
@@ -3277,10 +3277,10 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3277
3277
|
]), 1024);
|
|
3278
3278
|
};
|
|
3279
3279
|
}
|
|
3280
|
-
}), $
|
|
3280
|
+
}), $s = /* @__PURE__ */ ge(js, [["__scopeId", "data-v-3fd4a3a4"]]), Ms = {
|
|
3281
3281
|
class: "form-actions",
|
|
3282
3282
|
"data-testid": "form-actions"
|
|
3283
|
-
},
|
|
3283
|
+
}, Os = { key: 0 }, Es = /* @__PURE__ */ te({
|
|
3284
3284
|
__name: "EntityBaseForm",
|
|
3285
3285
|
props: {
|
|
3286
3286
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3335,7 +3335,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3335
3335
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3336
3336
|
setup(e, { emit: n }) {
|
|
3337
3337
|
var t;
|
|
3338
|
-
const r = n, a = e, i = yt(), { i18n: { t: o } } = oe.useI18n(), { getMessageFromError:
|
|
3338
|
+
const r = n, a = e, i = yt(), { i18n: { t: o } } = oe.useI18n(), { getMessageFromError: s } = oe.useErrors(), { axiosInstance: l } = oe.useAxios({
|
|
3339
3339
|
headers: (t = a.config) == null ? void 0 : t.requestHeaders
|
|
3340
3340
|
}), u = K(!1), p = K(!1), c = K(""), y = A(() => a.canSubmit === !1 || a.isReadonly), m = K(!1), I = A(() => {
|
|
3341
3341
|
var k, j;
|
|
@@ -3365,10 +3365,10 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3365
3365
|
if (a.editId)
|
|
3366
3366
|
try {
|
|
3367
3367
|
p.value = !1, u.value = !0;
|
|
3368
|
-
const { data: k } = await
|
|
3368
|
+
const { data: k } = await l.get(I.value);
|
|
3369
3369
|
r("fetch:success", k);
|
|
3370
3370
|
} catch (k) {
|
|
3371
|
-
const j =
|
|
3371
|
+
const j = s(k);
|
|
3372
3372
|
c.value = j.startsWith("code") ? o("baseForm.errors.edit") : j, p.value = !0, r("fetch:error", k);
|
|
3373
3373
|
} finally {
|
|
3374
3374
|
u.value = !1;
|
|
@@ -3404,9 +3404,9 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3404
3404
|
appearance: "danger",
|
|
3405
3405
|
"data-testid": "form-error"
|
|
3406
3406
|
}, null, 8, ["alert-message"])) : H("", !0),
|
|
3407
|
-
B("div",
|
|
3407
|
+
B("div", Ms, [
|
|
3408
3408
|
Z(k.$slots, "form-actions", {}, () => [
|
|
3409
|
-
e.config.jsonYamlFormsEnabled ? (d(), $("div",
|
|
3409
|
+
e.config.jsonYamlFormsEnabled ? (d(), $("div", Os, [
|
|
3410
3410
|
O(v, {
|
|
3411
3411
|
appearance: "tertiary",
|
|
3412
3412
|
"data-testid": "form-view-configuration",
|
|
@@ -3481,10 +3481,10 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3481
3481
|
});
|
|
3482
3482
|
};
|
|
3483
3483
|
}
|
|
3484
|
-
}),
|
|
3484
|
+
}), Fs = /* @__PURE__ */ ge(Es, [["__scopeId", "data-v-4ef70725"]]), Ns = {
|
|
3485
3485
|
key: 0,
|
|
3486
3486
|
"data-testid": "first-col"
|
|
3487
|
-
},
|
|
3487
|
+
}, Ks = /* @__PURE__ */ te({
|
|
3488
3488
|
__name: "EntityBaseTableCell",
|
|
3489
3489
|
props: {
|
|
3490
3490
|
keyName: {
|
|
@@ -3511,16 +3511,16 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3511
3511
|
let i;
|
|
3512
3512
|
const o = () => {
|
|
3513
3513
|
i && (i.disconnect(), i = void 0);
|
|
3514
|
-
},
|
|
3514
|
+
}, s = () => {
|
|
3515
3515
|
var b, _, C;
|
|
3516
|
-
u.value = ((b = r.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, p.value = ((_ = t.value) == null ? void 0 : _.clientWidth) || 0, c.value = ((C =
|
|
3517
|
-
},
|
|
3516
|
+
u.value = ((b = r.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, p.value = ((_ = t.value) == null ? void 0 : _.clientWidth) || 0, c.value = ((C = l.value) == null ? void 0 : C.innerText) || "";
|
|
3517
|
+
}, l = K({}), u = K(0), p = K(0), c = K(""), y = A(() => [r.value, t.value]), m = be(
|
|
3518
3518
|
y,
|
|
3519
3519
|
(b) => {
|
|
3520
3520
|
if (a.value && (o(), "ResizeObserver" in window && window)) {
|
|
3521
3521
|
i = new ResizeObserver((_) => {
|
|
3522
3522
|
window.requestAnimationFrame(() => {
|
|
3523
|
-
!Array.isArray(_) || !_.length ||
|
|
3523
|
+
!Array.isArray(_) || !_.length || s();
|
|
3524
3524
|
});
|
|
3525
3525
|
});
|
|
3526
3526
|
for (const _ of b)
|
|
@@ -3530,35 +3530,35 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3530
3530
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3531
3531
|
), I = A(() => a.value ? u.value > p.value : !1);
|
|
3532
3532
|
return wr(() => {
|
|
3533
|
-
|
|
3533
|
+
s();
|
|
3534
3534
|
}), Ir(() => {
|
|
3535
3535
|
m();
|
|
3536
3536
|
}), (b, _) => {
|
|
3537
3537
|
const C = U("KTooltip");
|
|
3538
3538
|
return d(), $("span", {
|
|
3539
3539
|
ref_key: "contentRef",
|
|
3540
|
-
ref:
|
|
3540
|
+
ref: l,
|
|
3541
3541
|
class: "content-wrapper"
|
|
3542
3542
|
}, [
|
|
3543
|
-
a.value ? (d(), $("span",
|
|
3543
|
+
a.value ? (d(), $("span", Ns, [
|
|
3544
3544
|
O(C, {
|
|
3545
|
-
label: I.value ? c.value : "",
|
|
3546
3545
|
"max-width": "300",
|
|
3547
|
-
placement: "bottomStart"
|
|
3546
|
+
placement: "bottomStart",
|
|
3547
|
+
text: I.value ? c.value : ""
|
|
3548
3548
|
}, {
|
|
3549
3549
|
default: g(() => [
|
|
3550
3550
|
Z(b.$slots, "default", {}, void 0, !0)
|
|
3551
3551
|
]),
|
|
3552
3552
|
_: 3
|
|
3553
|
-
}, 8, ["
|
|
3553
|
+
}, 8, ["text"])
|
|
3554
3554
|
])) : Z(b.$slots, "default", { key: 1 }, void 0, !0)
|
|
3555
3555
|
], 512);
|
|
3556
3556
|
};
|
|
3557
3557
|
}
|
|
3558
|
-
}),
|
|
3558
|
+
}), qs = /* @__PURE__ */ ge(Ks, [["__scopeId", "data-v-c4379fd4"]]), Bs = { class: "toolbar-container" }, Ls = {
|
|
3559
3559
|
key: 0,
|
|
3560
3560
|
class: "toolbar-button-container"
|
|
3561
|
-
},
|
|
3561
|
+
}, Us = ["data-testid"], Ps = /* @__PURE__ */ te({
|
|
3562
3562
|
__name: "EntityBaseTable",
|
|
3563
3563
|
props: {
|
|
3564
3564
|
// table header configuration
|
|
@@ -3679,7 +3679,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3679
3679
|
title: (j = t.errorMessage) == null ? void 0 : j.title,
|
|
3680
3680
|
message: (L = t.errorMessage) == null ? void 0 : L.message
|
|
3681
3681
|
};
|
|
3682
|
-
}), o = A(() => t.cacheIdentifier || t.preferencesStorageKey),
|
|
3682
|
+
}), o = A(() => t.cacheIdentifier || t.preferencesStorageKey), s = (j) => j.hasData || !!t.query, l = A(() => {
|
|
3683
3683
|
const j = [];
|
|
3684
3684
|
return Object.keys(t.tableHeaders).forEach((L) => {
|
|
3685
3685
|
const E = t.tableHeaders[L];
|
|
@@ -3753,7 +3753,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3753
3753
|
fetcher: e.fetcher,
|
|
3754
3754
|
"fetcher-cache-key": String(e.fetcherCacheKey),
|
|
3755
3755
|
"has-error": i.value.hasError,
|
|
3756
|
-
headers:
|
|
3756
|
+
headers: l.value,
|
|
3757
3757
|
"hide-pagination-when-optional": "",
|
|
3758
3758
|
"initial-fetcher-params": G.value,
|
|
3759
3759
|
"is-loading": e.isLoading,
|
|
@@ -3766,13 +3766,13 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3766
3766
|
"onUpdate:tablePreferences": k
|
|
3767
3767
|
}, ke({
|
|
3768
3768
|
toolbar: g(({ state: D }) => [
|
|
3769
|
-
Be(B("div",
|
|
3769
|
+
Be(B("div", Bs, [
|
|
3770
3770
|
Z(j.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3771
|
-
j.$slots["toolbar-button"] ? (d(), $("div",
|
|
3771
|
+
j.$slots["toolbar-button"] ? (d(), $("div", Ls, [
|
|
3772
3772
|
Z(j.$slots, "toolbar-button", {}, void 0, !0)
|
|
3773
3773
|
])) : H("", !0)
|
|
3774
3774
|
], 512), [
|
|
3775
|
-
[Le,
|
|
3775
|
+
[Le, s(D)]
|
|
3776
3776
|
])
|
|
3777
3777
|
]),
|
|
3778
3778
|
actions: g(({ row: D, rowKey: x, rowValue: F }) => [
|
|
@@ -3809,14 +3809,14 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3809
3809
|
]),
|
|
3810
3810
|
_: 2
|
|
3811
3811
|
}, 1032, ["width"])
|
|
3812
|
-
], 8,
|
|
3812
|
+
], 8, Us)
|
|
3813
3813
|
]),
|
|
3814
3814
|
_: 2
|
|
3815
3815
|
}, [
|
|
3816
3816
|
pe(e.tableHeaders, (D, x) => ({
|
|
3817
3817
|
name: x,
|
|
3818
3818
|
fn: g(({ row: F, rowKey: P, rowValue: V }) => [
|
|
3819
|
-
O(
|
|
3819
|
+
O(qs, {
|
|
3820
3820
|
"key-name": String(x),
|
|
3821
3821
|
"row-el": c(F)
|
|
3822
3822
|
}, {
|
|
@@ -3839,13 +3839,13 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3839
3839
|
}, 8, ["title"]);
|
|
3840
3840
|
};
|
|
3841
3841
|
}
|
|
3842
|
-
}),
|
|
3842
|
+
}), Ds = /* @__PURE__ */ ge(Ps, [["__scopeId", "data-v-ecfaa7cf"]]), Rs = {
|
|
3843
3843
|
key: 0,
|
|
3844
3844
|
class: "kong-ui-entity-delete-error"
|
|
3845
|
-
},
|
|
3845
|
+
}, Vs = {
|
|
3846
3846
|
key: 1,
|
|
3847
3847
|
class: "description"
|
|
3848
|
-
},
|
|
3848
|
+
}, Gs = /* @__PURE__ */ te({
|
|
3849
3849
|
__name: "EntityDeleteModal",
|
|
3850
3850
|
props: {
|
|
3851
3851
|
visible: {
|
|
@@ -3886,10 +3886,10 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3886
3886
|
setup(e, { emit: n }) {
|
|
3887
3887
|
const { i18nT: t } = oe.useI18n(), r = e, a = n, i = A(() => r.needConfirm ? r.entityName : ""), o = () => {
|
|
3888
3888
|
a("cancel");
|
|
3889
|
-
},
|
|
3889
|
+
}, s = () => {
|
|
3890
3890
|
a("proceed");
|
|
3891
3891
|
};
|
|
3892
|
-
return (
|
|
3892
|
+
return (l, u) => {
|
|
3893
3893
|
const p = U("KAlert"), c = U("KPrompt");
|
|
3894
3894
|
return d(), R(c, {
|
|
3895
3895
|
"action-button-appearance": "danger",
|
|
@@ -3900,10 +3900,10 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3900
3900
|
title: e.title,
|
|
3901
3901
|
visible: e.visible,
|
|
3902
3902
|
onCancel: o,
|
|
3903
|
-
onProceed:
|
|
3903
|
+
onProceed: s
|
|
3904
3904
|
}, {
|
|
3905
3905
|
default: g(() => [
|
|
3906
|
-
e.error ? (d(), $("div",
|
|
3906
|
+
e.error ? (d(), $("div", Rs, [
|
|
3907
3907
|
O(p, { appearance: "danger" }, {
|
|
3908
3908
|
alertMessage: g(() => [
|
|
3909
3909
|
Y(M(e.error), 1)
|
|
@@ -3929,8 +3929,8 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3929
3929
|
key: "0"
|
|
3930
3930
|
} : void 0
|
|
3931
3931
|
]), 1032, ["keypath"]),
|
|
3932
|
-
r.description ||
|
|
3933
|
-
Z(
|
|
3932
|
+
r.description || l.$slots.description ? (d(), $("div", Vs, [
|
|
3933
|
+
Z(l.$slots, "description", {}, () => [
|
|
3934
3934
|
B("p", null, M(r.description), 1)
|
|
3935
3935
|
], !0)
|
|
3936
3936
|
])) : H("", !0)
|
|
@@ -3939,13 +3939,13 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3939
3939
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3940
3940
|
};
|
|
3941
3941
|
}
|
|
3942
|
-
}),
|
|
3942
|
+
}), Hs = /* @__PURE__ */ ge(Gs, [["__scopeId", "data-v-efe8f34b"]]), zs = {
|
|
3943
3943
|
fill: "none",
|
|
3944
3944
|
height: "20",
|
|
3945
3945
|
viewBox: "0 0 20 20",
|
|
3946
3946
|
width: "20",
|
|
3947
3947
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3948
|
-
},
|
|
3948
|
+
}, Js = {
|
|
3949
3949
|
id: "mask0_180_20349",
|
|
3950
3950
|
height: "20",
|
|
3951
3951
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3953,7 +3953,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3953
3953
|
width: "20",
|
|
3954
3954
|
x: "0",
|
|
3955
3955
|
y: "0"
|
|
3956
|
-
},
|
|
3956
|
+
}, Ys = ["fill"], Ws = { mask: "url(#mask0_180_20349)" }, Zs = ["fill"], un = /* @__PURE__ */ te({
|
|
3957
3957
|
__name: "IconFilter",
|
|
3958
3958
|
props: {
|
|
3959
3959
|
color: {
|
|
@@ -3962,26 +3962,26 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
3962
3962
|
}
|
|
3963
3963
|
},
|
|
3964
3964
|
setup(e) {
|
|
3965
|
-
return (n, t) => (d(), $("svg",
|
|
3966
|
-
B("mask",
|
|
3965
|
+
return (n, t) => (d(), $("svg", zs, [
|
|
3966
|
+
B("mask", Js, [
|
|
3967
3967
|
B("rect", {
|
|
3968
3968
|
fill: e.color,
|
|
3969
3969
|
height: "20",
|
|
3970
3970
|
width: "20"
|
|
3971
|
-
}, null, 8,
|
|
3971
|
+
}, null, 8, Ys)
|
|
3972
3972
|
]),
|
|
3973
|
-
B("g",
|
|
3973
|
+
B("g", Ws, [
|
|
3974
3974
|
B("path", {
|
|
3975
3975
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3976
3976
|
fill: e.color
|
|
3977
|
-
}, null, 8,
|
|
3977
|
+
}, null, 8, Zs)
|
|
3978
3978
|
])
|
|
3979
3979
|
]));
|
|
3980
3980
|
}
|
|
3981
|
-
}),
|
|
3981
|
+
}), Qs = {
|
|
3982
3982
|
key: 1,
|
|
3983
3983
|
class: "kong-ui-entity-filter"
|
|
3984
|
-
},
|
|
3984
|
+
}, Xs = { class: "menu-item-title" }, el = { class: "menu-item-indicator" }, tl = { class: "menu-item-body" }, nl = ["for"], rl = { class: "menu-item-buttons" }, al = { class: "filter-clear-button-container" }, ol = /* @__PURE__ */ te({
|
|
3985
3985
|
__name: "EntityFilter",
|
|
3986
3986
|
props: {
|
|
3987
3987
|
// filter config, either exact match or fuzzy match
|
|
@@ -4001,12 +4001,12 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4001
4001
|
},
|
|
4002
4002
|
emits: ["update:modelValue"],
|
|
4003
4003
|
setup(e, { emit: n }) {
|
|
4004
|
-
const { i18n: { t } } = oe.useI18n(), r = e, a = n, i = K(!1), o = K({}),
|
|
4004
|
+
const { i18n: { t } } = oe.useI18n(), r = e, a = n, i = K(!1), o = K({}), s = A(() => {
|
|
4005
4005
|
const C = [];
|
|
4006
4006
|
return new URLSearchParams(r.modelValue).forEach((w, G) => {
|
|
4007
4007
|
w !== "" && C.push(G);
|
|
4008
4008
|
}), C;
|
|
4009
|
-
}),
|
|
4009
|
+
}), l = A(() => {
|
|
4010
4010
|
const C = r.config.fields;
|
|
4011
4011
|
return Object.keys(C).filter((w) => C[w].searchable).map((w) => ({
|
|
4012
4012
|
label: C[w].label || w,
|
|
@@ -4057,7 +4057,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4057
4057
|
O(un)
|
|
4058
4058
|
]),
|
|
4059
4059
|
_: 1
|
|
4060
|
-
}, 8, ["model-value", "placeholder"])) : (d(), $("div",
|
|
4060
|
+
}, 8, ["model-value", "placeholder"])) : (d(), $("div", Qs, [
|
|
4061
4061
|
O(k, {
|
|
4062
4062
|
appearance: "tertiary",
|
|
4063
4063
|
"data-testid": "filter-button",
|
|
@@ -4065,7 +4065,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4065
4065
|
}, {
|
|
4066
4066
|
default: g(() => [
|
|
4067
4067
|
O(un),
|
|
4068
|
-
Y(" " + M(f(t)("filter.filterButtonText")) + " " + M(
|
|
4068
|
+
Y(" " + M(f(t)("filter.filterButtonText")) + " " + M(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
4069
4069
|
]),
|
|
4070
4070
|
_: 1
|
|
4071
4071
|
}),
|
|
@@ -4077,28 +4077,28 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4077
4077
|
]),
|
|
4078
4078
|
Be(O(E, { class: "kong-ui-entity-filter-menu" }, {
|
|
4079
4079
|
body: g(() => [
|
|
4080
|
-
(d(!0), $(me, null, pe(
|
|
4080
|
+
(d(!0), $(me, null, pe(l.value, (h, v) => (d(), R(L, {
|
|
4081
4081
|
key: h.value,
|
|
4082
4082
|
"data-testid": h.value,
|
|
4083
4083
|
expandable: "",
|
|
4084
|
-
"last-menu-item": v ===
|
|
4084
|
+
"last-menu-item": v === l.value.length - 1
|
|
4085
4085
|
}, {
|
|
4086
4086
|
itemTitle: g(() => [
|
|
4087
|
-
B("span",
|
|
4087
|
+
B("span", Xs, [
|
|
4088
4088
|
Y(M(h.label) + " ", 1),
|
|
4089
|
-
Be(B("span",
|
|
4090
|
-
[Le,
|
|
4089
|
+
Be(B("span", el, null, 512), [
|
|
4090
|
+
[Le, s.value.includes(h.value)]
|
|
4091
4091
|
])
|
|
4092
4092
|
])
|
|
4093
4093
|
]),
|
|
4094
4094
|
itemBody: g(() => {
|
|
4095
4095
|
var q, S;
|
|
4096
4096
|
return [
|
|
4097
|
-
B("div",
|
|
4097
|
+
B("div", tl, [
|
|
4098
4098
|
B("label", {
|
|
4099
4099
|
class: "menu-item-label",
|
|
4100
4100
|
for: c(h.value)
|
|
4101
|
-
}, M(f(t)("filter.fieldLabel")), 9,
|
|
4101
|
+
}, M(f(t)("filter.fieldLabel")), 9, nl),
|
|
4102
4102
|
((S = (q = e.config.schema) == null ? void 0 : q[h.value]) == null ? void 0 : S.type) === "select" ? (d(), R(j, {
|
|
4103
4103
|
key: 0,
|
|
4104
4104
|
id: c(h.value),
|
|
@@ -4116,7 +4116,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4116
4116
|
type: m(h.value)
|
|
4117
4117
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4118
4118
|
]),
|
|
4119
|
-
B("div",
|
|
4119
|
+
B("div", rl, [
|
|
4120
4120
|
O(k, {
|
|
4121
4121
|
appearance: "tertiary",
|
|
4122
4122
|
"data-testid": "apply-filter",
|
|
@@ -4146,7 +4146,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4146
4146
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
4147
4147
|
]),
|
|
4148
4148
|
actionButton: g(() => [
|
|
4149
|
-
B("div",
|
|
4149
|
+
B("div", al, [
|
|
4150
4150
|
O(k, {
|
|
4151
4151
|
appearance: "tertiary",
|
|
4152
4152
|
size: "small",
|
|
@@ -4166,7 +4166,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4166
4166
|
]));
|
|
4167
4167
|
};
|
|
4168
4168
|
}
|
|
4169
|
-
}),
|
|
4169
|
+
}), il = /* @__PURE__ */ ge(ol, [["__scopeId", "data-v-e9512e8f"]]), Ve = /* @__PURE__ */ te({
|
|
4170
4170
|
__name: "PermissionsWrapper",
|
|
4171
4171
|
props: {
|
|
4172
4172
|
/**
|
|
@@ -4196,16 +4196,16 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4196
4196
|
isAllowed: t.value
|
|
4197
4197
|
}) : H("", !0);
|
|
4198
4198
|
}
|
|
4199
|
-
}),
|
|
4199
|
+
}), sl = { class: "form-section-wrapper" }, ll = {
|
|
4200
4200
|
key: 0,
|
|
4201
4201
|
class: "form-section-title"
|
|
4202
|
-
},
|
|
4202
|
+
}, ul = {
|
|
4203
4203
|
key: 1,
|
|
4204
4204
|
class: "form-section-description"
|
|
4205
|
-
},
|
|
4205
|
+
}, cl = {
|
|
4206
4206
|
key: 2,
|
|
4207
4207
|
class: "form-section-footer"
|
|
4208
|
-
},
|
|
4208
|
+
}, dl = { class: "form-section-content" }, pl = /* @__PURE__ */ te({
|
|
4209
4209
|
__name: "EntityFormSection",
|
|
4210
4210
|
props: {
|
|
4211
4211
|
title: {
|
|
@@ -4234,34 +4234,34 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4234
4234
|
return (t, r) => (d(), $("fieldset", {
|
|
4235
4235
|
class: Ie(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4236
4236
|
}, [
|
|
4237
|
-
B("div",
|
|
4237
|
+
B("div", sl, [
|
|
4238
4238
|
e.hideInfoHeader ? H("", !0) : (d(), $("div", {
|
|
4239
4239
|
key: 0,
|
|
4240
4240
|
class: Ie(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4241
4241
|
}, [
|
|
4242
|
-
e.title ? (d(), $("h4",
|
|
4243
|
-
e.description || f(n).description ? (d(), $("div",
|
|
4242
|
+
e.title ? (d(), $("h4", ll, M(e.title), 1)) : H("", !0),
|
|
4243
|
+
e.description || f(n).description ? (d(), $("div", ul, [
|
|
4244
4244
|
Z(t.$slots, "description", {}, () => [
|
|
4245
4245
|
B("p", null, M(e.description), 1)
|
|
4246
4246
|
], !0)
|
|
4247
4247
|
])) : H("", !0),
|
|
4248
|
-
f(n).footer ? (d(), $("div",
|
|
4248
|
+
f(n).footer ? (d(), $("div", cl, [
|
|
4249
4249
|
Z(t.$slots, "footer", {}, void 0, !0)
|
|
4250
4250
|
])) : H("", !0)
|
|
4251
4251
|
], 2)),
|
|
4252
|
-
B("div",
|
|
4252
|
+
B("div", dl, [
|
|
4253
4253
|
Z(t.$slots, "default", {}, void 0, !0)
|
|
4254
4254
|
])
|
|
4255
4255
|
])
|
|
4256
4256
|
], 2));
|
|
4257
4257
|
}
|
|
4258
|
-
}),
|
|
4258
|
+
}), fl = /* @__PURE__ */ ge(pl, [["__scopeId", "data-v-3565daa7"]]), { useAxios: xt, useDeleteUrlBuilder: ml, useErrors: gl, useExternalLinkCreator: Ll, useFetchUrlBuilder: Ul, useFetcher: yl, useDebouncedFilter: hl, useStringHelpers: Pl, useHelpers: Dl, useGatewayFeatureSupported: Rl, useTruncationDetector: Vl } = oe, vl = { class: "add-consumer-form-container" }, bl = { class: "add-consumer-form-cta" }, Cl = { class: "select-item-label" }, kl = {
|
|
4259
4259
|
key: 0,
|
|
4260
4260
|
class: "select-item-desc"
|
|
4261
|
-
},
|
|
4261
|
+
}, wl = {
|
|
4262
4262
|
key: 0,
|
|
4263
4263
|
class: "kong-ui-entity-add-consumers-error"
|
|
4264
|
-
},
|
|
4264
|
+
}, Il = { key: 0 }, _l = /* @__PURE__ */ te({
|
|
4265
4265
|
__name: "AddConsumerModal",
|
|
4266
4266
|
props: {
|
|
4267
4267
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4282,13 +4282,13 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4282
4282
|
const { i18n: { t } } = Qe.useI18n(), r = e, a = n, { axiosInstance: i } = xt({
|
|
4283
4283
|
headers: (D = r.config) == null ? void 0 : D.requestHeaders
|
|
4284
4284
|
}), o = K([]), {
|
|
4285
|
-
debouncedQueryChange:
|
|
4286
|
-
loading:
|
|
4285
|
+
debouncedQueryChange: s,
|
|
4286
|
+
loading: l,
|
|
4287
4287
|
allRecords: u,
|
|
4288
4288
|
error: p,
|
|
4289
4289
|
loadItems: c,
|
|
4290
4290
|
results: y
|
|
4291
|
-
} =
|
|
4291
|
+
} = hl(
|
|
4292
4292
|
r.config,
|
|
4293
4293
|
Te.list[r.config.app].all,
|
|
4294
4294
|
"",
|
|
@@ -4362,8 +4362,8 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4362
4362
|
onProceed: E
|
|
4363
4363
|
}, {
|
|
4364
4364
|
default: g(() => [
|
|
4365
|
-
B("div",
|
|
4366
|
-
B("p",
|
|
4365
|
+
B("div", vl, [
|
|
4366
|
+
B("p", bl, M(f(t)("consumers.consumer_groups.add.ctaText")), 1),
|
|
4367
4367
|
O(P, {
|
|
4368
4368
|
modelValue: o.value,
|
|
4369
4369
|
"onUpdate:modelValue": F[0] || (F[0] = (J) => o.value = J),
|
|
@@ -4372,24 +4372,24 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4372
4372
|
"dropdown-footer-text": _.value ? f(t)("consumers.consumer_groups.add.footer") : void 0,
|
|
4373
4373
|
items: C.value,
|
|
4374
4374
|
label: f(t)("consumers.consumer_groups.add.consumers_label"),
|
|
4375
|
-
loading: f(
|
|
4375
|
+
loading: f(l),
|
|
4376
4376
|
placeholder: f(t)("consumers.consumer_groups.add.consumer_placeholder"),
|
|
4377
4377
|
readonly: j.value,
|
|
4378
4378
|
required: "",
|
|
4379
4379
|
width: "100%",
|
|
4380
|
-
onQueryChange: f(
|
|
4380
|
+
onQueryChange: f(s)
|
|
4381
4381
|
}, {
|
|
4382
4382
|
"item-template": g(({ item: J }) => [
|
|
4383
|
-
B("div",
|
|
4384
|
-
m(J).data.username && m(J).data.custom_id ? (d(), $("div",
|
|
4383
|
+
B("div", Cl, M(J.label), 1),
|
|
4384
|
+
m(J).data.username && m(J).data.custom_id ? (d(), $("div", kl, M(m(J).data.custom_id), 1)) : H("", !0)
|
|
4385
4385
|
]),
|
|
4386
4386
|
_: 1
|
|
4387
4387
|
}, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4388
|
-
L.value || I.value || q.value.length ? (d(), $("div",
|
|
4388
|
+
L.value || I.value || q.value.length ? (d(), $("div", wl, [
|
|
4389
4389
|
O(V, { appearance: "danger" }, {
|
|
4390
4390
|
alertMessage: g(() => [
|
|
4391
4391
|
B("p", null, M(f(t)("consumers.errors.add")), 1),
|
|
4392
|
-
q.value.length ? (d(), $("ul",
|
|
4392
|
+
q.value.length ? (d(), $("ul", Il, [
|
|
4393
4393
|
(d(!0), $(me, null, pe(q.value, (J, X) => (d(), $("li", { key: X }, M(J), 1))), 128))
|
|
4394
4394
|
])) : H("", !0),
|
|
4395
4395
|
B("div", null, M(L.value || I.value), 1)
|
|
@@ -4408,7 +4408,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4408
4408
|
for (const [r, a] of n)
|
|
4409
4409
|
t[r] = a;
|
|
4410
4410
|
return t;
|
|
4411
|
-
},
|
|
4411
|
+
}, Al = /* @__PURE__ */ Tt(_l, [["__scopeId", "data-v-7f191259"]]), Sl = { class: "kong-ui-entities-consumers-list" }, xl = { key: 1 }, Tl = /* @__PURE__ */ te({
|
|
4412
4412
|
__name: "ConsumerList",
|
|
4413
4413
|
props: {
|
|
4414
4414
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4455,9 +4455,9 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4455
4455
|
emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
|
|
4456
4456
|
setup(e, { emit: n }) {
|
|
4457
4457
|
var Nt;
|
|
4458
|
-
const t = n, r = e, { i18nT: a, i18n: { t: i } } = Qe.useI18n(), o = yt(), { axiosInstance:
|
|
4458
|
+
const t = n, r = e, { i18nT: a, i18n: { t: i } } = Qe.useI18n(), o = yt(), { axiosInstance: s } = xt({
|
|
4459
4459
|
headers: (Nt = r.config) == null ? void 0 : Nt.requestHeaders
|
|
4460
|
-
}),
|
|
4460
|
+
}), l = K(1), u = A(() => !!r.config.consumerGroupId), p = A(
|
|
4461
4461
|
() => u.value ? "kong-ui-entities-consumers-list-in-group-page" : "kong-ui-entities-consumers-list"
|
|
4462
4462
|
), c = A(() => r.config.app !== "kongManager" || !!r.config.disableSorting), y = {
|
|
4463
4463
|
username: { label: i("consumers.list.table_headers.username"), searchable: !0, sortable: !0 },
|
|
@@ -4482,10 +4482,10 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4482
4482
|
},
|
|
4483
4483
|
schema: r.config.filterSchema
|
|
4484
4484
|
};
|
|
4485
|
-
}), w = A(() => u.value && !r.config.paginatedEndpoint ? "consumers" : void 0), { fetcher: G, fetcherState: k } =
|
|
4485
|
+
}), w = A(() => u.value && !r.config.paginatedEndpoint ? "consumers" : void 0), { fetcher: G, fetcherState: k } = yl(r.config, b.value, w.value), j = () => {
|
|
4486
4486
|
_.value = "";
|
|
4487
4487
|
}, L = () => {
|
|
4488
|
-
|
|
4488
|
+
l.value++;
|
|
4489
4489
|
}, E = (T) => T ?? "-", h = K(null), v = (T, z) => {
|
|
4490
4490
|
const ne = T.id;
|
|
4491
4491
|
if (!z(ne)) {
|
|
@@ -4523,7 +4523,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4523
4523
|
}), x = (T) => ({
|
|
4524
4524
|
label: i("consumers.actions.edit"),
|
|
4525
4525
|
to: r.config.getEditRoute(T)
|
|
4526
|
-
}), F = K(void 0), P = K(!1), V = K(!1), Q = K(""), J =
|
|
4526
|
+
}), F = K(void 0), P = K(!1), V = K(!1), Q = K(""), J = ml(r.config, b.value), X = (T) => {
|
|
4527
4527
|
F.value = T, P.value = !0;
|
|
4528
4528
|
}, ue = () => {
|
|
4529
4529
|
P.value = !1;
|
|
@@ -4532,7 +4532,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4532
4532
|
if ((T = F.value) != null && T.id) {
|
|
4533
4533
|
V.value = !0;
|
|
4534
4534
|
try {
|
|
4535
|
-
await
|
|
4535
|
+
await s.delete(J(F.value.id)), V.value = !1, P.value = !1, l.value++, t("delete:success", F.value);
|
|
4536
4536
|
} catch (ce) {
|
|
4537
4537
|
Q.value = ((ne = (z = ce.response) == null ? void 0 : z.data) == null ? void 0 : ne.message) || ce.message || i("consumers.errors.delete"), t("error", ce);
|
|
4538
4538
|
} finally {
|
|
@@ -4544,7 +4544,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4544
4544
|
}, $t = () => {
|
|
4545
4545
|
et.value = !1;
|
|
4546
4546
|
}, Mt = (T, z) => {
|
|
4547
|
-
z || $t(),
|
|
4547
|
+
z || $t(), l.value++, t("add:success", T);
|
|
4548
4548
|
}, fr = () => {
|
|
4549
4549
|
u.value && jt();
|
|
4550
4550
|
}, ve = K(void 0), tt = K(!1), mr = K(""), gr = (T) => {
|
|
@@ -4560,7 +4560,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4560
4560
|
Et.value = !0;
|
|
4561
4561
|
try {
|
|
4562
4562
|
const T = yr.value.replace(/{consumerId}/gi, ve.value.id);
|
|
4563
|
-
await
|
|
4563
|
+
await s.delete(T), t("remove:success", ve.value), Ot(), l.value++;
|
|
4564
4564
|
} catch (T) {
|
|
4565
4565
|
mr.value = T.message || i("consumers.errors.delete"), t("error", T);
|
|
4566
4566
|
} finally {
|
|
@@ -4588,8 +4588,8 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4588
4588
|
await r.canCreate() && (nt.value.title = u.value ? i("consumers.list.empty_state.title_for_consumer_group") : i("consumers.list.empty_state.title"), nt.value.ctaText = u.value ? i("consumers.actions.add_consumer") : i("consumers.actions.create"));
|
|
4589
4589
|
}), (T, z) => {
|
|
4590
4590
|
const ne = U("KButton"), ce = U("KBadge"), ye = U("KTruncate"), Ke = U("KDropdownItem"), Kt = U("KClipboardProvider"), vr = U("KPrompt");
|
|
4591
|
-
return d(), $("div",
|
|
4592
|
-
O(f(
|
|
4591
|
+
return d(), $("div", Sl, [
|
|
4592
|
+
O(f(Ds), {
|
|
4593
4593
|
"cache-identifier": e.cacheIdentifier,
|
|
4594
4594
|
"disable-pagination": u.value && !e.config.paginatedEndpoint,
|
|
4595
4595
|
"disable-pagination-page-jump": "",
|
|
@@ -4598,7 +4598,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4598
4598
|
"enable-entity-actions": "",
|
|
4599
4599
|
"error-message": h.value,
|
|
4600
4600
|
fetcher: f(G),
|
|
4601
|
-
"fetcher-cache-key":
|
|
4601
|
+
"fetcher-cache-key": l.value,
|
|
4602
4602
|
"pagination-type": "offset",
|
|
4603
4603
|
"preferences-storage-key": p.value,
|
|
4604
4604
|
query: _.value,
|
|
@@ -4611,7 +4611,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4611
4611
|
onSort: L
|
|
4612
4612
|
}, {
|
|
4613
4613
|
"toolbar-filter": g(() => [
|
|
4614
|
-
u.value ? H("", !0) : (d(), R(f(
|
|
4614
|
+
u.value ? H("", !0) : (d(), R(f(il), {
|
|
4615
4615
|
key: 0,
|
|
4616
4616
|
modelValue: _.value,
|
|
4617
4617
|
"onUpdate:modelValue": z[0] || (z[0] = (W) => _.value = W),
|
|
@@ -4669,7 +4669,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4669
4669
|
}, 1024))), 128))
|
|
4670
4670
|
]),
|
|
4671
4671
|
_: 2
|
|
4672
|
-
}, 1024)) : (d(), $("span",
|
|
4672
|
+
}, 1024)) : (d(), $("span", xl, "-"))
|
|
4673
4673
|
]),
|
|
4674
4674
|
actions: g(({ row: W }) => [
|
|
4675
4675
|
O(Kt, null, {
|
|
@@ -4744,7 +4744,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4744
4744
|
]),
|
|
4745
4745
|
_: 1
|
|
4746
4746
|
}, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "preferences-storage-key", "query", "table-headers", "use-action-outside"]),
|
|
4747
|
-
O(f(
|
|
4747
|
+
O(f(Hs), {
|
|
4748
4748
|
"action-button-disabled": V.value,
|
|
4749
4749
|
"data-testid": "delete-consumer-modal",
|
|
4750
4750
|
description: f(i)("consumers.delete.description"),
|
|
@@ -4756,7 +4756,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4756
4756
|
onCancel: ue,
|
|
4757
4757
|
onProceed: pr
|
|
4758
4758
|
}, null, 8, ["action-button-disabled", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
4759
|
-
e.config.consumerGroupId ? (d(), R(
|
|
4759
|
+
e.config.consumerGroupId ? (d(), R(Al, {
|
|
4760
4760
|
key: 0,
|
|
4761
4761
|
config: e.config,
|
|
4762
4762
|
"data-testid": "add-consumer-modal",
|
|
@@ -4800,7 +4800,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4800
4800
|
]);
|
|
4801
4801
|
};
|
|
4802
4802
|
}
|
|
4803
|
-
}),
|
|
4803
|
+
}), Gl = /* @__PURE__ */ Tt(Tl, [["__scopeId", "data-v-00095f74"]]), jl = { class: "kong-ui-entities-consumer-form" }, $l = { class: "fields-group-title" }, Ml = { class: "fields-group-text" }, Ol = /* @__PURE__ */ te({
|
|
4804
4804
|
__name: "ConsumerForm",
|
|
4805
4805
|
props: {
|
|
4806
4806
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4819,9 +4819,9 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4819
4819
|
emits: ["update", "error", "loading"],
|
|
4820
4820
|
setup(e, { emit: n }) {
|
|
4821
4821
|
var L;
|
|
4822
|
-
const t = e, r = n, { i18nT: a, i18n: { t: i } } = Qe.useI18n(), o = yt(), { axiosInstance:
|
|
4822
|
+
const t = e, r = n, { i18nT: a, i18n: { t: i } } = Qe.useI18n(), o = yt(), { axiosInstance: s } = xt({
|
|
4823
4823
|
headers: (L = t.config) == null ? void 0 : L.requestHeaders
|
|
4824
|
-
}), { getMessageFromError:
|
|
4824
|
+
}), { getMessageFromError: l } = gl(), u = qt({
|
|
4825
4825
|
fields: {
|
|
4826
4826
|
username: "",
|
|
4827
4827
|
customId: "",
|
|
@@ -4864,17 +4864,17 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4864
4864
|
try {
|
|
4865
4865
|
u.readonly = !0;
|
|
4866
4866
|
let h;
|
|
4867
|
-
await
|
|
4867
|
+
await s.post(C("validate"), k.value), _.value === "create" ? h = await s.post(C("create"), k.value) : _.value === "edit" && (h = ((E = t.config) == null ? void 0 : E.app) === "konnect" ? await s.put(C("edit"), k.value) : await s.patch(C("edit"), k.value)), b(h == null ? void 0 : h.data), r("update", h == null ? void 0 : h.data);
|
|
4868
4868
|
} catch (h) {
|
|
4869
|
-
u.errorMessage =
|
|
4869
|
+
u.errorMessage = l(h), r("error", h);
|
|
4870
4870
|
} finally {
|
|
4871
4871
|
u.readonly = !1;
|
|
4872
4872
|
}
|
|
4873
4873
|
};
|
|
4874
4874
|
return (E, h) => {
|
|
4875
4875
|
const v = U("KInput"), q = U("KCard");
|
|
4876
|
-
return d(), $("div",
|
|
4877
|
-
O(f(
|
|
4876
|
+
return d(), $("div", jl, [
|
|
4877
|
+
O(f(Fs), {
|
|
4878
4878
|
"can-submit": w.value && G.value,
|
|
4879
4879
|
config: e.config,
|
|
4880
4880
|
"edit-id": e.consumerId,
|
|
@@ -4890,15 +4890,15 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4890
4890
|
}, {
|
|
4891
4891
|
default: g(() => [
|
|
4892
4892
|
B("div", null, [
|
|
4893
|
-
O(f(
|
|
4893
|
+
O(f(fl), {
|
|
4894
4894
|
description: f(i)("consumers.form.info.description"),
|
|
4895
4895
|
"has-divider": "",
|
|
4896
4896
|
title: f(i)("consumers.form.info.title")
|
|
4897
4897
|
}, {
|
|
4898
4898
|
default: g(() => [
|
|
4899
4899
|
B("div", null, [
|
|
4900
|
-
B("h5", $
|
|
4901
|
-
B("p",
|
|
4900
|
+
B("h5", $l, M(f(i)("consumers.form.consumer_identification.title")) + "* ", 1),
|
|
4901
|
+
B("p", Ml, M(f(i)("consumers.form.consumer_identification.description")), 1)
|
|
4902
4902
|
]),
|
|
4903
4903
|
O(q, null, {
|
|
4904
4904
|
default: g(() => [
|
|
@@ -4986,7 +4986,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
4986
4986
|
]);
|
|
4987
4987
|
};
|
|
4988
4988
|
}
|
|
4989
|
-
}),
|
|
4989
|
+
}), Hl = /* @__PURE__ */ Tt(Ol, [["__scopeId", "data-v-265f9254"]]), El = { class: "kong-ui-consumer-entity-config-card" }, zl = /* @__PURE__ */ te({
|
|
4990
4990
|
__name: "ConsumerConfigCard",
|
|
4991
4991
|
props: {
|
|
4992
4992
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5038,17 +5038,17 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
5038
5038
|
hidden: !0
|
|
5039
5039
|
}
|
|
5040
5040
|
});
|
|
5041
|
-
return (o,
|
|
5042
|
-
O(f($
|
|
5041
|
+
return (o, s) => (d(), $("div", El, [
|
|
5042
|
+
O(f($s), {
|
|
5043
5043
|
config: e.config,
|
|
5044
5044
|
"config-card-doc": e.configCardDoc,
|
|
5045
5045
|
"config-schema": i.value,
|
|
5046
5046
|
"fetch-url": a.value,
|
|
5047
5047
|
"hide-title": e.hideTitle,
|
|
5048
|
-
"onCopy:success":
|
|
5049
|
-
"onFetch:error":
|
|
5050
|
-
"onFetch:success":
|
|
5051
|
-
onLoading:
|
|
5048
|
+
"onCopy:success": s[0] || (s[0] = (l) => o.$emit("copy:success", l)),
|
|
5049
|
+
"onFetch:error": s[1] || (s[1] = (l) => o.$emit("fetch:error", l)),
|
|
5050
|
+
"onFetch:success": s[2] || (s[2] = (l) => o.$emit("fetch:success", l)),
|
|
5051
|
+
onLoading: s[3] || (s[3] = (l) => o.$emit("loading", l))
|
|
5052
5052
|
}, {
|
|
5053
5053
|
"username-label-tooltip": g(() => [
|
|
5054
5054
|
O(f(r), {
|
|
@@ -5078,7 +5078,7 @@ const ul = { class: "yaml-config" }, dr = /* @__PURE__ */ te({
|
|
|
5078
5078
|
}
|
|
5079
5079
|
});
|
|
5080
5080
|
export {
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5081
|
+
zl as ConsumerConfigCard,
|
|
5082
|
+
Hl as ConsumerForm,
|
|
5083
|
+
Gl as ConsumerList
|
|
5084
5084
|
};
|