@kong-ui-public/entities-consumer-groups 1.2.2 → 1.2.3-pr.841.0d6b7c5f.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -95,11 +95,11 @@ const br = {
|
|
|
95
95
|
name: "The name can be any string containing letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
},
|
|
98
|
+
}, kr = {
|
|
99
99
|
consumer_groups: br
|
|
100
100
|
};
|
|
101
|
-
function
|
|
102
|
-
const e = It("en-us",
|
|
101
|
+
function Cr() {
|
|
102
|
+
const e = It("en-us", kr);
|
|
103
103
|
return {
|
|
104
104
|
i18n: e,
|
|
105
105
|
i18nT: cn(e)
|
|
@@ -107,7 +107,7 @@ function kr() {
|
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
const ct = {
|
|
110
|
-
useI18n:
|
|
110
|
+
useI18n: Cr
|
|
111
111
|
}, Ie = "/api/runtime_groups/{controlPlaneId}", xe = "/{workspace}", Te = {
|
|
112
112
|
list: {
|
|
113
113
|
konnect: {
|
|
@@ -304,27 +304,27 @@ function Fr(e, n, t, r = {
|
|
|
304
304
|
const { axiosInstance: o } = xt({
|
|
305
305
|
headers: e.requestHeaders
|
|
306
306
|
}), { i18n: { t: a } } = At(), { debounce: i } = _r(), s = i(async (y) => {
|
|
307
|
-
await
|
|
307
|
+
await k(y);
|
|
308
308
|
}, 200), l = F(!1), c = F(""), d = F(""), u = F([]), m = F(void 0), g = h(n);
|
|
309
|
-
let
|
|
310
|
-
e.app === "konnect" ?
|
|
309
|
+
let C = `${e.apiBaseUrl}${g}`;
|
|
310
|
+
e.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
311
311
|
const _ = async () => {
|
|
312
312
|
try {
|
|
313
313
|
l.value = !0;
|
|
314
|
-
const { data: y } = await o.get(`${
|
|
314
|
+
const { data: y } = await o.get(`${C}?size=${t}`);
|
|
315
315
|
y != null && y.next || (m.value = r.fetchedItemsKey in y ? y[r.fetchedItemsKey] : []), u.value = r.fetchedItemsKey in y ? y[r.fetchedItemsKey] : [];
|
|
316
316
|
} catch {
|
|
317
317
|
u.value = [], c.value = a("debouncedFilter.errors.fetch");
|
|
318
318
|
} finally {
|
|
319
319
|
l.value = !1;
|
|
320
320
|
}
|
|
321
|
-
}, p = F(""),
|
|
322
|
-
var w,
|
|
321
|
+
}, p = F(""), k = async (y) => {
|
|
322
|
+
var w, R;
|
|
323
323
|
if (p.value !== y)
|
|
324
324
|
if (p.value = y || "", m.value === void 0)
|
|
325
325
|
try {
|
|
326
326
|
l.value = !0, c.value = "", d.value = "";
|
|
327
|
-
let H =
|
|
327
|
+
let H = C + "";
|
|
328
328
|
y && (H += `/${y}`);
|
|
329
329
|
const { data: re } = await o.get(`${H}?size=${t}`);
|
|
330
330
|
r.fetchedItemsKey in re ? u.value = re[r.fetchedItemsKey] : re != null && re.id ? u.value = [re] : u.value = [];
|
|
@@ -334,12 +334,12 @@ function Fr(e, n, t, r = {
|
|
|
334
334
|
l.value = !1;
|
|
335
335
|
}
|
|
336
336
|
else
|
|
337
|
-
l.value = !0, d.value = "", y ? (u.value = (
|
|
337
|
+
l.value = !0, d.value = "", y ? (u.value = (R = m.value) == null ? void 0 : R.filter((H) => {
|
|
338
338
|
var re;
|
|
339
339
|
let z = !1;
|
|
340
340
|
for (const I of r.searchKeys) {
|
|
341
|
-
const
|
|
342
|
-
|
|
341
|
+
const V = typeof H[I] == "string" ? (re = H[I]) == null ? void 0 : re.toLowerCase() : H[I];
|
|
342
|
+
V != null && V.includes(y.toLowerCase()) && (z = !0);
|
|
343
343
|
}
|
|
344
344
|
return z;
|
|
345
345
|
}), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = m.value, l.value = !1;
|
|
@@ -398,8 +398,8 @@ function pn(e, n) {
|
|
|
398
398
|
const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: m } = i;
|
|
399
399
|
try {
|
|
400
400
|
let g = new URL(a.value.href);
|
|
401
|
-
return o.value && m ? (g.search = "", g = new URL(`${g.href}/${m}/`)) : (o.value || new URLSearchParams(m).forEach((
|
|
402
|
-
g.searchParams.append(_,
|
|
401
|
+
return o.value && m ? (g.search = "", g = new URL(`${g.href}/${m}/`)) : (o.value || new URLSearchParams(m).forEach((C, _) => {
|
|
402
|
+
g.searchParams.append(_, C);
|
|
403
403
|
}), d && g.searchParams.append("sort_by", d), u === "desc" && g.searchParams.append("sort_desc", "1"), g.searchParams.append("size", String(l))), c && s !== 1 && g.searchParams.append("offset", String(c)), g.href;
|
|
404
404
|
} catch (g) {
|
|
405
405
|
return console.error("RouteList(fetcher)", g), r.value;
|
|
@@ -473,19 +473,19 @@ const fn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
473
473
|
return 0;
|
|
474
474
|
const [t, r] = Pr(Ut(e), Ut(n));
|
|
475
475
|
return t > r ? 1 : t < r ? -1 : 0;
|
|
476
|
-
},
|
|
476
|
+
}, Rt = (e, n) => {
|
|
477
477
|
for (let t = 0; t < Math.max(e.length, n.length); t++) {
|
|
478
478
|
const r = Ur(e[t] || "0", n[t] || "0");
|
|
479
479
|
if (r !== 0)
|
|
480
480
|
return r;
|
|
481
481
|
}
|
|
482
482
|
return 0;
|
|
483
|
-
},
|
|
484
|
-
const t = qt(e), r = qt(n), o = t.pop(), a = r.pop(), i =
|
|
485
|
-
return i !== 0 ? i : o && a ?
|
|
486
|
-
},
|
|
487
|
-
|
|
488
|
-
const r =
|
|
483
|
+
}, Rr = (e, n) => {
|
|
484
|
+
const t = qt(e), r = qt(n), o = t.pop(), a = r.pop(), i = Rt(t, r);
|
|
485
|
+
return i !== 0 ? i : o && a ? Rt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
|
|
486
|
+
}, Vt = (e, n, t) => {
|
|
487
|
+
Vr(t);
|
|
488
|
+
const r = Rr(e, n);
|
|
489
489
|
return mn[t].includes(r);
|
|
490
490
|
}, mn = {
|
|
491
491
|
">": [1],
|
|
@@ -494,24 +494,24 @@ const fn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
494
494
|
"<=": [-1, 0],
|
|
495
495
|
"<": [-1],
|
|
496
496
|
"!=": [-1, 1]
|
|
497
|
-
},
|
|
497
|
+
}, Dt = Object.keys(mn), Vr = (e) => {
|
|
498
498
|
if (typeof e != "string")
|
|
499
499
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
500
|
-
if (
|
|
501
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
502
|
-
},
|
|
500
|
+
if (Dt.indexOf(e) === -1)
|
|
501
|
+
throw new Error(`Invalid operator, expected one of ${Dt.join("|")}`);
|
|
502
|
+
}, Dr = (e) => typeof e == "string" && /^[v\d]/.test(e) && fn.test(e);
|
|
503
503
|
function Gr(e) {
|
|
504
504
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
505
505
|
if (!n)
|
|
506
506
|
return !0;
|
|
507
507
|
const { edition: r, version: o } = n;
|
|
508
|
-
if (!
|
|
508
|
+
if (!Dr(o))
|
|
509
509
|
return console.error("Invalid version"), !1;
|
|
510
510
|
const a = t[r];
|
|
511
511
|
if (!a)
|
|
512
512
|
return !1;
|
|
513
513
|
const [i, s] = a;
|
|
514
|
-
return !(i &&
|
|
514
|
+
return !(i && Vt(o, i, "<") || s && Vt(o, s, ">"));
|
|
515
515
|
}
|
|
516
516
|
const de = {
|
|
517
517
|
useAxios: xt,
|
|
@@ -601,14 +601,14 @@ const de = {
|
|
|
601
601
|
}), i.value ? d(r("message.fail")) : n("error", t.uuid);
|
|
602
602
|
return;
|
|
603
603
|
}
|
|
604
|
-
const g = t.uuid.length > Gt,
|
|
604
|
+
const g = t.uuid.length > Gt, C = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${t.uuid.substring(0, Gt) + (g ? "..." : "")}"`;
|
|
605
605
|
typeof o == "function" && o({
|
|
606
606
|
type: "success",
|
|
607
|
-
message: `${
|
|
607
|
+
message: `${C}${r("message.success.content")}`
|
|
608
608
|
}), i.value ? d(t.successTooltip) : n("success", t.uuid);
|
|
609
609
|
};
|
|
610
610
|
return (m, g) => {
|
|
611
|
-
const
|
|
611
|
+
const C = N("KIcon"), _ = N("KClipboardProvider");
|
|
612
612
|
return f(), A("div", Wr, [
|
|
613
613
|
e.format !== "hidden" ? (f(), U(ze(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
614
614
|
default: v(() => [
|
|
@@ -630,9 +630,9 @@ const de = {
|
|
|
630
630
|
"data-testid": "copy-to-clipboard",
|
|
631
631
|
role: "button",
|
|
632
632
|
tabindex: "0",
|
|
633
|
-
onClick: rt((
|
|
633
|
+
onClick: rt((k) => u(p), ["stop"])
|
|
634
634
|
}, [
|
|
635
|
-
j(
|
|
635
|
+
j(C, {
|
|
636
636
|
class: "uuid-icon",
|
|
637
637
|
color: e.iconColor,
|
|
638
638
|
"hide-title": !!e.tooltip || void 0,
|
|
@@ -701,12 +701,12 @@ const de = {
|
|
|
701
701
|
_: 1
|
|
702
702
|
}, 8, ["class"]));
|
|
703
703
|
}
|
|
704
|
-
}),
|
|
704
|
+
}), Ce = (e, n) => {
|
|
705
705
|
const t = e.__vccOpts || e;
|
|
706
706
|
for (const [r, o] of n)
|
|
707
707
|
t[r] = o;
|
|
708
708
|
return t;
|
|
709
|
-
}, yn = /* @__PURE__ */
|
|
709
|
+
}, yn = /* @__PURE__ */ Ce(to, [["__scopeId", "data-v-68ca83ec"]]), no = /* @__PURE__ */ ie({
|
|
710
710
|
__name: "InternalLinkItem",
|
|
711
711
|
props: {
|
|
712
712
|
item: {
|
|
@@ -733,7 +733,7 @@ const de = {
|
|
|
733
733
|
]);
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
|
-
}), ro = /* @__PURE__ */
|
|
736
|
+
}), ro = /* @__PURE__ */ Ce(no, [["__scopeId", "data-v-7410504d"]]), oo = /* @__PURE__ */ ie({
|
|
737
737
|
__name: "StatusBadge",
|
|
738
738
|
props: {
|
|
739
739
|
status: {
|
|
@@ -755,7 +755,7 @@ const de = {
|
|
|
755
755
|
}, 8, ["appearance"]);
|
|
756
756
|
};
|
|
757
757
|
}
|
|
758
|
-
}), ao = "#0044f4", io = "#e0e4ea", so = "#3a3f51", lo = "1px", uo = "20px", co = { class: "config-card-details-row" }, po = ["data-testid"], fo = ["data-testid"], mo = ["data-testid"], go = ["data-testid"], yo = { key: 1 }, ho = ["data-testid"], vo = ["data-testid"], bo = ["data-testid"],
|
|
758
|
+
}), ao = "#0044f4", io = "#e0e4ea", so = "#3a3f51", lo = "1px", uo = "20px", co = { class: "config-card-details-row" }, po = ["data-testid"], fo = ["data-testid"], mo = ["data-testid"], go = ["data-testid"], yo = { key: 1 }, ho = ["data-testid"], vo = ["data-testid"], bo = ["data-testid"], ko = ["data-testid"], Co = ["title"], _o = {
|
|
759
759
|
name: "ConfigCardItem",
|
|
760
760
|
components: { CopyUuid: gn, JsonCardItem: yn, StatusBadge: oo, InternalLinkItem: ro }
|
|
761
761
|
}, wo = /* @__PURE__ */ ie({
|
|
@@ -913,7 +913,7 @@ const de = {
|
|
|
913
913
|
}
|
|
914
914
|
});
|
|
915
915
|
return (u, m) => {
|
|
916
|
-
const g = N("KLabel"),
|
|
916
|
+
const g = N("KLabel"), C = N("KBadge"), _ = N("KMethodBadge");
|
|
917
917
|
return f(), A("div", co, [
|
|
918
918
|
P("div", {
|
|
919
919
|
class: "config-card-details-label",
|
|
@@ -956,10 +956,10 @@ const de = {
|
|
|
956
956
|
key: 0,
|
|
957
957
|
"data-testid": `${e.item.key}-badge-tags`
|
|
958
958
|
}, [
|
|
959
|
-
(f(!0), A(ve, null, ye(e.item.value, (p,
|
|
960
|
-
key: `${e.item.key}-badge-tag-${
|
|
959
|
+
(f(!0), A(ve, null, ye(e.item.value, (p, k) => (f(), U(C, {
|
|
960
|
+
key: `${e.item.key}-badge-tag-${k}`,
|
|
961
961
|
class: "config-badge",
|
|
962
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
962
|
+
"data-testid": `${e.item.key}-badge-tag-${k}`,
|
|
963
963
|
"truncation-tooltip": p
|
|
964
964
|
}, {
|
|
965
965
|
default: v(() => [
|
|
@@ -973,9 +973,9 @@ const de = {
|
|
|
973
973
|
class: "copy-uuid-array",
|
|
974
974
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
975
975
|
}, [
|
|
976
|
-
(f(!0), A(ve, null, ye(e.item.value, (p,
|
|
977
|
-
key: `${e.item.key}-copy-uuid-${
|
|
978
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
976
|
+
(f(!0), A(ve, null, ye(e.item.value, (p, k) => (f(), U(h(gn), ht(d.value.childAttrs, {
|
|
977
|
+
key: `${e.item.key}-copy-uuid-${k}`,
|
|
978
|
+
"data-testid": `${e.item.key}-copy-uuid-${k}`,
|
|
979
979
|
uuid: p
|
|
980
980
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
981
981
|
], 8, vo)) : d.value.additionalComponent === "KMethodBadge" ? (f(), A("div", {
|
|
@@ -983,10 +983,10 @@ const de = {
|
|
|
983
983
|
class: "method-badge-array",
|
|
984
984
|
"data-testid": `${e.item.key}-badge-methods`
|
|
985
985
|
}, [
|
|
986
|
-
(f(!0), A(ve, null, ye(e.item.value, (p,
|
|
987
|
-
key: `${e.item.key}-badge-method-${
|
|
986
|
+
(f(!0), A(ve, null, ye(e.item.value, (p, k) => (f(), U(_, {
|
|
987
|
+
key: `${e.item.key}-badge-method-${k}`,
|
|
988
988
|
class: "config-badge",
|
|
989
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
989
|
+
"data-testid": `${e.item.key}-badge-method-${k}`,
|
|
990
990
|
"is-rounded": "",
|
|
991
991
|
label: p,
|
|
992
992
|
method: h(vr).includes(p.toLowerCase()) ? p.toLowerCase() : "custom"
|
|
@@ -1001,17 +1001,17 @@ const de = {
|
|
|
1001
1001
|
key: 3,
|
|
1002
1002
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1003
1003
|
}, [
|
|
1004
|
-
(f(!0), A(ve, null, ye(e.item.value, (p,
|
|
1005
|
-
key: `json-array-item-${
|
|
1006
|
-
index:
|
|
1004
|
+
(f(!0), A(ve, null, ye(e.item.value, (p, k) => (f(), U(yn, {
|
|
1005
|
+
key: `json-array-item-${k}`,
|
|
1006
|
+
index: k,
|
|
1007
1007
|
"is-array-item": "",
|
|
1008
1008
|
item: p
|
|
1009
1009
|
}, null, 8, ["index", "item"]))), 128))
|
|
1010
|
-
], 8,
|
|
1010
|
+
], 8, ko)) : (f(), A("span", {
|
|
1011
1011
|
key: 4,
|
|
1012
1012
|
class: Ke(["attrs-data-text", { truncated: e.truncated }]),
|
|
1013
1013
|
title: e.truncated ? e.item.value : void 0
|
|
1014
|
-
}, E(d.value.text), 11,
|
|
1014
|
+
}, E(d.value.text), 11, Co))
|
|
1015
1015
|
]),
|
|
1016
1016
|
_: 1
|
|
1017
1017
|
}, 16))
|
|
@@ -1024,7 +1024,7 @@ const de = {
|
|
|
1024
1024
|
]);
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
}), St = /* @__PURE__ */
|
|
1027
|
+
}), St = /* @__PURE__ */ Ce(wo, [["__scopeId", "data-v-a3c5ab01"]]);
|
|
1028
1028
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1029
1029
|
function hn(e) {
|
|
1030
1030
|
return typeof e > "u" || e === null;
|
|
@@ -1207,12 +1207,12 @@ vt.prototype.extend = function(e) {
|
|
|
1207
1207
|
var r = Object.create(vt.prototype);
|
|
1208
1208
|
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 = Uo(r.compiledImplicit, r.compiledExplicit), r;
|
|
1209
1209
|
};
|
|
1210
|
-
var bn = vt,
|
|
1210
|
+
var bn = vt, kn = new pe("tag:yaml.org,2002:str", {
|
|
1211
1211
|
kind: "scalar",
|
|
1212
1212
|
construct: function(e) {
|
|
1213
1213
|
return e !== null ? e : "";
|
|
1214
1214
|
}
|
|
1215
|
-
}),
|
|
1215
|
+
}), Cn = new pe("tag:yaml.org,2002:seq", {
|
|
1216
1216
|
kind: "sequence",
|
|
1217
1217
|
construct: function(e) {
|
|
1218
1218
|
return e !== null ? e : [];
|
|
@@ -1224,28 +1224,28 @@ var bn = vt, Cn = new pe("tag:yaml.org,2002:str", {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
}), wn = new bn({
|
|
1226
1226
|
explicit: [
|
|
1227
|
-
Cn,
|
|
1228
1227
|
kn,
|
|
1228
|
+
Cn,
|
|
1229
1229
|
_n
|
|
1230
1230
|
]
|
|
1231
1231
|
});
|
|
1232
|
-
function
|
|
1232
|
+
function Ro(e) {
|
|
1233
1233
|
if (e === null)
|
|
1234
1234
|
return !0;
|
|
1235
1235
|
var n = e.length;
|
|
1236
1236
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function Vo() {
|
|
1239
1239
|
return null;
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function Do(e) {
|
|
1242
1242
|
return e === null;
|
|
1243
1243
|
}
|
|
1244
1244
|
var In = new pe("tag:yaml.org,2002:null", {
|
|
1245
1245
|
kind: "scalar",
|
|
1246
|
-
resolve:
|
|
1247
|
-
construct:
|
|
1248
|
-
predicate:
|
|
1246
|
+
resolve: Ro,
|
|
1247
|
+
construct: Vo,
|
|
1248
|
+
predicate: Do,
|
|
1249
1249
|
represent: {
|
|
1250
1250
|
canonical: function() {
|
|
1251
1251
|
return "~";
|
|
@@ -1573,7 +1573,7 @@ function ba(e) {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
return !0;
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function ka(e) {
|
|
1577
1577
|
if (e === null)
|
|
1578
1578
|
return [];
|
|
1579
1579
|
var n, t, r, o, a, i = e;
|
|
@@ -1584,14 +1584,14 @@ function Ca(e) {
|
|
|
1584
1584
|
var Bn = new pe("tag:yaml.org,2002:pairs", {
|
|
1585
1585
|
kind: "sequence",
|
|
1586
1586
|
resolve: ba,
|
|
1587
|
-
construct:
|
|
1588
|
-
}),
|
|
1587
|
+
construct: ka
|
|
1588
|
+
}), Ca = Object.prototype.hasOwnProperty;
|
|
1589
1589
|
function _a(e) {
|
|
1590
1590
|
if (e === null)
|
|
1591
1591
|
return !0;
|
|
1592
1592
|
var n, t = e;
|
|
1593
1593
|
for (n in t)
|
|
1594
|
-
if (
|
|
1594
|
+
if (Ca.call(t, n) && t[n] !== null)
|
|
1595
1595
|
return !1;
|
|
1596
1596
|
return !0;
|
|
1597
1597
|
}
|
|
@@ -1649,13 +1649,13 @@ function Oa(e) {
|
|
|
1649
1649
|
(e - 65536 & 1023) + 56320
|
|
1650
1650
|
);
|
|
1651
1651
|
}
|
|
1652
|
-
var
|
|
1652
|
+
var Rn = new Array(256), Vn = new Array(256);
|
|
1653
1653
|
for (var Le = 0; Le < 256; Le++)
|
|
1654
|
-
|
|
1654
|
+
Rn[Le] = Jt(Le) ? 1 : 0, Vn[Le] = Jt(Le);
|
|
1655
1655
|
function Ea(e, n) {
|
|
1656
1656
|
this.input = e, this.filename = n.filename || null, this.schema = n.schema || $t, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function Dn(e, n) {
|
|
1659
1659
|
var t = {
|
|
1660
1660
|
name: e.filename,
|
|
1661
1661
|
buffer: e.input.slice(0, -1),
|
|
@@ -1667,10 +1667,10 @@ function Rn(e, n) {
|
|
|
1667
1667
|
return t.snippet = Bo(t), new me(n, t);
|
|
1668
1668
|
}
|
|
1669
1669
|
function S(e, n) {
|
|
1670
|
-
throw
|
|
1670
|
+
throw Dn(e, n);
|
|
1671
1671
|
}
|
|
1672
1672
|
function it(e, n) {
|
|
1673
|
-
e.onWarning && e.onWarning.call(null,
|
|
1673
|
+
e.onWarning && e.onWarning.call(null, Dn(e, n));
|
|
1674
1674
|
}
|
|
1675
1675
|
var Wt = {
|
|
1676
1676
|
YAML: function(e, n, t) {
|
|
@@ -1803,8 +1803,8 @@ function Ka(e, n) {
|
|
|
1803
1803
|
if (s === 92) {
|
|
1804
1804
|
if ($e(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), we(s))
|
|
1805
1805
|
ae(e, !1, n);
|
|
1806
|
-
else if (s < 256 &&
|
|
1807
|
-
e.result +=
|
|
1806
|
+
else if (s < 256 && Rn[s])
|
|
1807
|
+
e.result += Vn[s], e.position++;
|
|
1808
1808
|
else if ((i = $a(s)) > 0) {
|
|
1809
1809
|
for (o = i, a = 0; o > 0; o--)
|
|
1810
1810
|
s = e.input.charCodeAt(++e.position), (i = Ta(s)) >= 0 ? a = (a << 4) + i : S(e, "expected hexadecimal character");
|
|
@@ -1818,7 +1818,7 @@ function Ka(e, n) {
|
|
|
1818
1818
|
S(e, "unexpected end of the stream within a double quoted scalar");
|
|
1819
1819
|
}
|
|
1820
1820
|
function Ba(e, n) {
|
|
1821
|
-
var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, g,
|
|
1821
|
+
var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, g, C = /* @__PURE__ */ Object.create(null), _, p, k, y;
|
|
1822
1822
|
if (y = e.input.charCodeAt(e.position), y === 91)
|
|
1823
1823
|
d = 93, g = !1, s = [];
|
|
1824
1824
|
else if (y === 123)
|
|
@@ -1828,7 +1828,7 @@ function Ba(e, n) {
|
|
|
1828
1828
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), y = e.input.charCodeAt(++e.position); y !== 0; ) {
|
|
1829
1829
|
if (ae(e, !0, n), y = e.input.charCodeAt(e.position), y === d)
|
|
1830
1830
|
return e.position++, e.tag = i, e.anchor = l, e.kind = g ? "mapping" : "sequence", e.result = s, !0;
|
|
1831
|
-
t ? y === 44 && S(e, "expected the node content, but found ','") : S(e, "missed comma between flow collection entries"), p = _ =
|
|
1831
|
+
t ? y === 44 && S(e, "expected the node content, but found ','") : S(e, "missed comma between flow collection entries"), p = _ = k = null, u = m = !1, y === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = m = !0, e.position++, ae(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, _ = e.result, ae(e, !0, n), y = e.input.charCodeAt(e.position), (m || e.line === r) && y === 58 && (u = !0, y = e.input.charCodeAt(++e.position), ae(e, !0, n), Re(e, n, ot, !1, !0), k = e.result), g ? Ue(e, s, C, p, _, k, r, o, a) : u ? s.push(Ue(e, null, C, p, _, k, r, o, a)) : s.push(_), ae(e, !0, n), y = e.input.charCodeAt(e.position), y === 44 ? (t = !0, y = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1832
1832
|
}
|
|
1833
1833
|
S(e, "unexpected end of the stream within a flow collection");
|
|
1834
1834
|
}
|
|
@@ -1888,7 +1888,7 @@ function Qt(e, n) {
|
|
|
1888
1888
|
a.push(null), l = e.input.charCodeAt(e.position);
|
|
1889
1889
|
continue;
|
|
1890
1890
|
}
|
|
1891
|
-
if (t = e.line,
|
|
1891
|
+
if (t = e.line, Re(e, n, qn, !1, !0), a.push(e.result), ae(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
|
|
1892
1892
|
S(e, "bad indentation of a sequence entry");
|
|
1893
1893
|
else if (e.lineIndent < n)
|
|
1894
1894
|
break;
|
|
@@ -1896,35 +1896,35 @@ function Qt(e, n) {
|
|
|
1896
1896
|
return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1897
1897
|
}
|
|
1898
1898
|
function La(e, n, t) {
|
|
1899
|
-
var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), g = null,
|
|
1899
|
+
var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), g = null, C = null, _ = null, p = !1, k = !1, y;
|
|
1900
1900
|
if (e.firstTabInLine !== -1)
|
|
1901
1901
|
return !1;
|
|
1902
1902
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), y = e.input.charCodeAt(e.position); y !== 0; ) {
|
|
1903
1903
|
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, S(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (y === 63 || y === 58) && he(r))
|
|
1904
|
-
y === 63 ? (p && (Ue(e, u, m, g,
|
|
1904
|
+
y === 63 ? (p && (Ue(e, u, m, g, C, null, i, s, l), g = C = _ = null), k = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : S(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, y = r;
|
|
1905
1905
|
else {
|
|
1906
|
-
if (i = e.line, s = e.lineStart, l = e.position, !
|
|
1906
|
+
if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Ln, !1, !0))
|
|
1907
1907
|
break;
|
|
1908
1908
|
if (e.line === a) {
|
|
1909
1909
|
for (y = e.input.charCodeAt(e.position); Fe(y); )
|
|
1910
1910
|
y = e.input.charCodeAt(++e.position);
|
|
1911
1911
|
if (y === 58)
|
|
1912
|
-
y = e.input.charCodeAt(++e.position), he(y) || S(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, m, g,
|
|
1913
|
-
else if (
|
|
1912
|
+
y = e.input.charCodeAt(++e.position), he(y) || S(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, m, g, C, null, i, s, l), g = C = _ = null), k = !0, p = !1, o = !1, g = e.tag, C = e.result;
|
|
1913
|
+
else if (k)
|
|
1914
1914
|
S(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1915
1915
|
else
|
|
1916
1916
|
return e.tag = c, e.anchor = d, !0;
|
|
1917
|
-
} else if (
|
|
1917
|
+
} else if (k)
|
|
1918
1918
|
S(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1919
1919
|
else
|
|
1920
1920
|
return e.tag = c, e.anchor = d, !0;
|
|
1921
1921
|
}
|
|
1922
|
-
if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position),
|
|
1922
|
+
if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ? C = e.result : _ = e.result), p || (Ue(e, u, m, g, C, _, i, s, l), g = C = _ = null), ae(e, !0, -1), y = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && y !== 0)
|
|
1923
1923
|
S(e, "bad indentation of a mapping entry");
|
|
1924
1924
|
else if (e.lineIndent < n)
|
|
1925
1925
|
break;
|
|
1926
1926
|
}
|
|
1927
|
-
return p && Ue(e, u, m, g,
|
|
1927
|
+
return p && Ue(e, u, m, g, C, null, i, s, l), k && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), k;
|
|
1928
1928
|
}
|
|
1929
1929
|
function qa(e) {
|
|
1930
1930
|
var n, t = !1, r = !1, o, a, i;
|
|
@@ -1964,8 +1964,8 @@ function Ua(e) {
|
|
|
1964
1964
|
r = e.input.charCodeAt(++e.position);
|
|
1965
1965
|
return e.position === n && S(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Me.call(e.anchorMap, t) || S(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ae(e, !0, -1), !0;
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1968
|
-
var a, i, s, l = 1, c = !1, d = !1, u, m, g,
|
|
1967
|
+
function Re(e, n, t, r, o) {
|
|
1968
|
+
var a, i, s, l = 1, c = !1, d = !1, u, m, g, C, _, p;
|
|
1969
1969
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || qn === t, r && ae(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
1970
1970
|
for (; qa(e) || Pa(e); )
|
|
1971
1971
|
ae(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
@@ -1973,24 +1973,24 @@ function Ve(e, n, t, r, o) {
|
|
|
1973
1973
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1974
1974
|
else if (e.tag === "?") {
|
|
1975
1975
|
for (e.result !== null && e.kind !== "scalar" && S(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
|
|
1976
|
-
if (
|
|
1977
|
-
e.result =
|
|
1976
|
+
if (C = e.implicitTypes[u], C.resolve(e.result)) {
|
|
1977
|
+
e.result = C.construct(e.result), e.tag = C.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1978
1978
|
break;
|
|
1979
1979
|
}
|
|
1980
1980
|
} else if (e.tag !== "!") {
|
|
1981
1981
|
if (Me.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
1982
|
-
|
|
1982
|
+
C = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1983
1983
|
else
|
|
1984
|
-
for (
|
|
1984
|
+
for (C = null, g = e.typeMap.multi[e.kind || "fallback"], u = 0, m = g.length; u < m; u += 1)
|
|
1985
1985
|
if (e.tag.slice(0, g[u].tag.length) === g[u].tag) {
|
|
1986
|
-
|
|
1986
|
+
C = g[u];
|
|
1987
1987
|
break;
|
|
1988
1988
|
}
|
|
1989
|
-
|
|
1989
|
+
C || S(e, "unknown tag !<" + e.tag + ">"), e.result !== null && C.kind !== e.kind && S(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + C.kind + '", not "' + e.kind + '"'), C.resolve(e.result, e.tag) ? (e.result = C.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : S(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1990
1990
|
}
|
|
1991
1991
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
1992
1992
|
}
|
|
1993
|
-
function
|
|
1993
|
+
function Ra(e) {
|
|
1994
1994
|
var n = e.position, t, r, o, a = !1, i;
|
|
1995
1995
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (ae(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
|
|
1996
1996
|
for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !he(i); )
|
|
@@ -2012,7 +2012,7 @@ function Va(e) {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
i !== 0 && Mt(e), Me.call(Wt, r) ? Wt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
|
|
2014
2014
|
}
|
|
2015
|
-
if (ae(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ae(e, !0, -1)) : a && S(e, "directives end mark is expected"),
|
|
2015
|
+
if (ae(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ae(e, !0, -1)) : a && S(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), ae(e, !0, -1), e.checkLineBreaks && Aa.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
|
|
2016
2016
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, ae(e, !0, -1));
|
|
2017
2017
|
return;
|
|
2018
2018
|
}
|
|
@@ -2028,10 +2028,10 @@ function Gn(e, n) {
|
|
|
2028
2028
|
for (r !== -1 && (t.position = r, S(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2029
2029
|
t.lineIndent += 1, t.position += 1;
|
|
2030
2030
|
for (; t.position < t.length - 1; )
|
|
2031
|
-
|
|
2031
|
+
Ra(t);
|
|
2032
2032
|
return t.documents;
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2034
|
+
function Va(e, n, t) {
|
|
2035
2035
|
n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
|
|
2036
2036
|
var r = Gn(e, t);
|
|
2037
2037
|
if (typeof n != "function")
|
|
@@ -2039,7 +2039,7 @@ function Da(e, n, t) {
|
|
|
2039
2039
|
for (var o = 0, a = r.length; o < a; o += 1)
|
|
2040
2040
|
n(r[o]);
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function Da(e, n) {
|
|
2043
2043
|
var t = Gn(e, n);
|
|
2044
2044
|
if (t.length !== 0) {
|
|
2045
2045
|
if (t.length === 1)
|
|
@@ -2047,7 +2047,7 @@ function Ra(e, n) {
|
|
|
2047
2047
|
throw new me("expected a single document in the stream, but found more");
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
|
-
var Ga =
|
|
2050
|
+
var Ga = Va, Ha = Da, Hn = {
|
|
2051
2051
|
loadAll: Ga,
|
|
2052
2052
|
load: Ha
|
|
2053
2053
|
}, zn = Object.prototype.toString, Yn = Object.prototype.hasOwnProperty, Et = 65279, za = 9, Je = 10, Ya = 13, Ja = 32, Wa = 33, Za = 34, bt = 35, Qa = 37, Xa = 38, ei = 39, ti = 42, Jn = 44, ni = 45, st = 58, ri = 61, oi = 62, ai = 63, ii = 64, Wn = 91, Zn = 93, si = 96, Qn = 123, li = 124, Xn = 125, fe = {};
|
|
@@ -2115,7 +2115,7 @@ function Xt(e, n) {
|
|
|
2115
2115
|
` && (a += t), a += i;
|
|
2116
2116
|
return a;
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2118
|
+
function kt(e, n) {
|
|
2119
2119
|
return `
|
|
2120
2120
|
` + le.repeat(" ", e.indent * n);
|
|
2121
2121
|
}
|
|
@@ -2159,9 +2159,9 @@ function er(e) {
|
|
|
2159
2159
|
var n = /^\n* /;
|
|
2160
2160
|
return n.test(e);
|
|
2161
2161
|
}
|
|
2162
|
-
var tr = 1,
|
|
2162
|
+
var tr = 1, Ct = 2, nr = 3, rr = 4, qe = 5;
|
|
2163
2163
|
function vi(e, n, t, r, o, a, i, s) {
|
|
2164
|
-
var l, c = 0, d = null, u = !1, m = !1, g = r !== -1,
|
|
2164
|
+
var l, c = 0, d = null, u = !1, m = !1, g = r !== -1, C = -1, _ = yi(He(e, 0)) && hi(He(e, e.length - 1));
|
|
2165
2165
|
if (n || i)
|
|
2166
2166
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2167
2167
|
if (c = He(e, l), !Ze(c))
|
|
@@ -2172,14 +2172,14 @@ function vi(e, n, t, r, o, a, i, s) {
|
|
|
2172
2172
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2173
2173
|
if (c = He(e, l), c === Je)
|
|
2174
2174
|
u = !0, g && (m = m || // Foldable line = too long, and not more-indented.
|
|
2175
|
-
l -
|
|
2175
|
+
l - C - 1 > r && e[C + 1] !== " ", C = l);
|
|
2176
2176
|
else if (!Ze(c))
|
|
2177
2177
|
return qe;
|
|
2178
2178
|
_ = _ && tn(c, d, s), d = c;
|
|
2179
2179
|
}
|
|
2180
|
-
m = m || g && l -
|
|
2180
|
+
m = m || g && l - C - 1 > r && e[C + 1] !== " ";
|
|
2181
2181
|
}
|
|
2182
|
-
return !u && !m ? _ && !i && !o(e) ? tr : a === We ? qe :
|
|
2182
|
+
return !u && !m ? _ && !i && !o(e) ? tr : a === We ? qe : Ct : t > 9 && er(e) ? qe : i ? a === We ? qe : Ct : m ? rr : nr;
|
|
2183
2183
|
}
|
|
2184
2184
|
function bi(e, n, t, r, o) {
|
|
2185
2185
|
e.dump = function() {
|
|
@@ -2203,14 +2203,14 @@ function bi(e, n, t, r, o) {
|
|
|
2203
2203
|
)) {
|
|
2204
2204
|
case tr:
|
|
2205
2205
|
return n;
|
|
2206
|
-
case
|
|
2206
|
+
case Ct:
|
|
2207
2207
|
return "'" + n.replace(/'/g, "''") + "'";
|
|
2208
2208
|
case nr:
|
|
2209
2209
|
return "|" + nn(n, e.indent) + rn(Xt(n, a));
|
|
2210
2210
|
case rr:
|
|
2211
|
-
return ">" + nn(n, e.indent) + rn(Xt(
|
|
2211
|
+
return ">" + nn(n, e.indent) + rn(Xt(ki(n, i), a));
|
|
2212
2212
|
case qe:
|
|
2213
|
-
return '"' +
|
|
2213
|
+
return '"' + Ci(n) + '"';
|
|
2214
2214
|
default:
|
|
2215
2215
|
throw new me("impossible error: invalid scalar style");
|
|
2216
2216
|
}
|
|
@@ -2228,7 +2228,7 @@ function rn(e) {
|
|
|
2228
2228
|
return e[e.length - 1] === `
|
|
2229
2229
|
` ? e.slice(0, -1) : e;
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2231
|
+
function ki(e, n) {
|
|
2232
2232
|
for (var t = /(\n+)([^\n]*)/g, r = function() {
|
|
2233
2233
|
var c = e.indexOf(`
|
|
2234
2234
|
`);
|
|
@@ -2251,7 +2251,7 @@ function on(e, n) {
|
|
|
2251
2251
|
`, e.length - o > n && i > o ? l += e.slice(o, i) + `
|
|
2252
2252
|
` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2254
|
+
function Ci(e) {
|
|
2255
2255
|
for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
|
|
2256
2256
|
t = He(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || pi(t);
|
|
2257
2257
|
return n;
|
|
@@ -2265,7 +2265,7 @@ function _i(e, n, t) {
|
|
|
2265
2265
|
function an(e, n, t, r) {
|
|
2266
2266
|
var o = "", a = e.tag, i, s, l;
|
|
2267
2267
|
for (i = 0, s = t.length; i < s; i += 1)
|
|
2268
|
-
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Ae(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Ae(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o +=
|
|
2268
|
+
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Ae(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Ae(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += kt(e, n)), e.dump && Je === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
|
|
2269
2269
|
e.tag = a, e.dump = o || "[]";
|
|
2270
2270
|
}
|
|
2271
2271
|
function wi(e, n, t) {
|
|
@@ -2283,7 +2283,7 @@ function Ii(e, n, t, r) {
|
|
|
2283
2283
|
else if (e.sortKeys)
|
|
2284
2284
|
throw new me("sortKeys must be a boolean or a function");
|
|
2285
2285
|
for (s = 0, l = i.length; s < l; s += 1)
|
|
2286
|
-
m = "", (!r || o !== "") && (m +=
|
|
2286
|
+
m = "", (!r || o !== "") && (m += kt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Ae(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Je === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += kt(e, n)), Ae(e, n + 1, d, !0, u) && (e.dump && Je === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
|
|
2287
2287
|
e.tag = a, e.dump = o || "{}";
|
|
2288
2288
|
}
|
|
2289
2289
|
function sn(e, n, t) {
|
|
@@ -2374,9 +2374,9 @@ var $i = pe, Mi = bn, Oi = wn, Ei = Tn, ji = $n, Fi = $t, Ki = Hn.load, Bi = Hn.
|
|
|
2374
2374
|
int: An,
|
|
2375
2375
|
merge: jn,
|
|
2376
2376
|
omap: Kn,
|
|
2377
|
-
seq:
|
|
2378
|
-
str:
|
|
2379
|
-
}, Pi = jt("safeLoad", "load"), Ui = jt("safeLoadAll", "loadAll"),
|
|
2377
|
+
seq: Cn,
|
|
2378
|
+
str: kn
|
|
2379
|
+
}, Pi = jt("safeLoad", "load"), Ui = jt("safeLoadAll", "loadAll"), Ri = jt("safeDump", "dump"), Vi = {
|
|
2380
2380
|
Type: $i,
|
|
2381
2381
|
Schema: Mi,
|
|
2382
2382
|
FAILSAFE_SCHEMA: Oi,
|
|
@@ -2390,9 +2390,9 @@ var $i = pe, Mi = bn, Oi = wn, Ei = Tn, ji = $n, Fi = $t, Ki = Hn.load, Bi = Hn.
|
|
|
2390
2390
|
types: qi,
|
|
2391
2391
|
safeLoad: Pi,
|
|
2392
2392
|
safeLoadAll: Ui,
|
|
2393
|
-
safeDump:
|
|
2393
|
+
safeDump: Ri
|
|
2394
2394
|
};
|
|
2395
|
-
const
|
|
2395
|
+
const Di = {
|
|
2396
2396
|
key: 0,
|
|
2397
2397
|
class: "config-card-display-form"
|
|
2398
2398
|
}, Gi = ["data-testid"], Hi = {
|
|
@@ -2432,11 +2432,11 @@ const Ri = {
|
|
|
2432
2432
|
setup(e) {
|
|
2433
2433
|
const n = e, t = ut(), { i18n: { t: r } } = de.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = F(""), i = F("");
|
|
2434
2434
|
return Oe(() => n.format, (s) => {
|
|
2435
|
-
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value =
|
|
2435
|
+
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Vi.dump(n.record));
|
|
2436
2436
|
}, { immediate: !0 }), (s, l) => {
|
|
2437
2437
|
const c = N("KCodeBlock");
|
|
2438
2438
|
return f(), A(ve, null, [
|
|
2439
|
-
e.format === "structured" ? (f(), A("div",
|
|
2439
|
+
e.format === "structured" ? (f(), A("div", Di, [
|
|
2440
2440
|
(f(!0), A(ve, null, ye(e.propListTypes, (d) => (f(), A("div", {
|
|
2441
2441
|
key: `config-card-details-${d}-props`,
|
|
2442
2442
|
class: Ke(`config-card-details-${d}-props`),
|
|
@@ -2488,7 +2488,7 @@ const Ri = {
|
|
|
2488
2488
|
], 64);
|
|
2489
2489
|
};
|
|
2490
2490
|
}
|
|
2491
|
-
}), Wi = /* @__PURE__ */
|
|
2491
|
+
}), Wi = /* @__PURE__ */ Ce(Ji, [["__scopeId", "data-v-a58d7adb"]]), ln = "24px", Zi = (e, n) => {
|
|
2492
2492
|
const t = e.__vccOpts || e;
|
|
2493
2493
|
for (const [r, o] of n)
|
|
2494
2494
|
t[r] = o;
|
|
@@ -2728,13 +2728,13 @@ const Ri = {
|
|
|
2728
2728
|
// the last property displayed
|
|
2729
2729
|
section: be.Basic
|
|
2730
2730
|
}
|
|
2731
|
-
}, g = F(!1),
|
|
2732
|
-
var I,
|
|
2731
|
+
}, g = F(!1), C = F(!1), _ = F(""), p = F(), k = T(() => {
|
|
2732
|
+
var I, V, q;
|
|
2733
2733
|
if (!p.value)
|
|
2734
2734
|
return [];
|
|
2735
2735
|
const x = [], O = Object.keys(p.value).length;
|
|
2736
2736
|
for (const M in p.value) {
|
|
2737
|
-
const K = (
|
|
2737
|
+
const K = (V = (I = r.configSchema) == null ? void 0 : I[M]) == null ? void 0 : V.order, J = (q = m[M]) == null ? void 0 : q.order;
|
|
2738
2738
|
let X = O;
|
|
2739
2739
|
(J || J === 0) && (X = J === -1 ? O + 1 : J), K && (X = K === -1 ? O + 1 : K), x.push([M, X]);
|
|
2740
2740
|
}
|
|
@@ -2754,12 +2754,12 @@ const Ri = {
|
|
|
2754
2754
|
};
|
|
2755
2755
|
}).filter((M) => !M.hidden && M.key !== r.pluginConfigKey);
|
|
2756
2756
|
}), y = T(() => {
|
|
2757
|
-
var I,
|
|
2757
|
+
var I, V;
|
|
2758
2758
|
if (!p.value || !r.pluginConfigKey)
|
|
2759
2759
|
return [];
|
|
2760
2760
|
const q = p.value[r.pluginConfigKey] || {}, x = Object.keys(q).length, O = [];
|
|
2761
2761
|
for (const M in q) {
|
|
2762
|
-
const K = (
|
|
2762
|
+
const K = (V = (I = r.pluginConfigSchema) == null ? void 0 : I[M]) == null ? void 0 : V.order, J = q[M];
|
|
2763
2763
|
let X = J != null && J !== "" ? x - 1 : x;
|
|
2764
2764
|
K && (X = K === -1 ? x + 1 : K), O.push([M, X]);
|
|
2765
2765
|
}
|
|
@@ -2779,26 +2779,26 @@ const Ri = {
|
|
|
2779
2779
|
};
|
|
2780
2780
|
}).filter((M) => !M.hidden);
|
|
2781
2781
|
}), w = T(() => {
|
|
2782
|
-
var I,
|
|
2782
|
+
var I, V, q, x;
|
|
2783
2783
|
return {
|
|
2784
|
-
basic: (I =
|
|
2785
|
-
advanced: (
|
|
2786
|
-
plugin: (x = y.value) == null ? void 0 : x.concat((q =
|
|
2784
|
+
basic: (I = k.value) == null ? void 0 : I.filter((O) => O.section === be.Basic),
|
|
2785
|
+
advanced: (V = k.value) == null ? void 0 : V.filter((O) => O.section === be.Advanced),
|
|
2786
|
+
plugin: (x = y.value) == null ? void 0 : x.concat((q = k.value) == null ? void 0 : q.filter((O) => O.section === be.Plugin))
|
|
2787
2787
|
};
|
|
2788
|
-
}),
|
|
2788
|
+
}), R = T(() => {
|
|
2789
2789
|
const I = [];
|
|
2790
2790
|
return w.value.basic.length && I.push("basic"), w.value.advanced.length && I.push("advanced"), w.value.plugin.length && I.push("plugin"), I;
|
|
2791
2791
|
}), H = (I) => !!(I.tooltip || o[`${I.key}-label-tooltip`]), re = T(() => {
|
|
2792
|
-
var I,
|
|
2792
|
+
var I, V;
|
|
2793
2793
|
let q = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
2794
|
-
return r.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, (
|
|
2794
|
+
return r.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, (V = r.config) != null && V.workspace ? `/${r.config.workspace}` : "")), q = q.replace(/{id}/gi, r.config.entityId), q;
|
|
2795
2795
|
}), z = (I) => {
|
|
2796
2796
|
p.value && I(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
|
|
2797
2797
|
};
|
|
2798
2798
|
return Oe(g, (I) => {
|
|
2799
2799
|
n("loading", I);
|
|
2800
2800
|
}, { immediate: !0 }), Qe(async () => {
|
|
2801
|
-
|
|
2801
|
+
C.value = !1, g.value = !0;
|
|
2802
2802
|
try {
|
|
2803
2803
|
const { data: I } = await l.get(re.value);
|
|
2804
2804
|
if (r.dataKey)
|
|
@@ -2808,16 +2808,16 @@ const Ri = {
|
|
|
2808
2808
|
throw new Error(a("errors.dataKeyUndefined", { dataKey: r.dataKey }));
|
|
2809
2809
|
else
|
|
2810
2810
|
p.value = { ...I };
|
|
2811
|
-
Object.keys(r.configSchema).filter((
|
|
2812
|
-
p.value && typeof p.value[
|
|
2811
|
+
Object.keys(r.configSchema).filter((V) => r.configSchema[V].forceShow).forEach((V) => {
|
|
2812
|
+
p.value && typeof p.value[V] > "u" && (p.value[V] = null);
|
|
2813
2813
|
}), n("fetch:success", I);
|
|
2814
2814
|
} catch (I) {
|
|
2815
|
-
const
|
|
2816
|
-
_.value =
|
|
2815
|
+
const V = i(I);
|
|
2816
|
+
_.value = V.startsWith("code") ? a("baseConfigCard.errors.load") : V, C.value = !0, n("fetch:error", I);
|
|
2817
2817
|
} finally {
|
|
2818
2818
|
g.value = !1;
|
|
2819
2819
|
}
|
|
2820
|
-
}), (I,
|
|
2820
|
+
}), (I, V) => {
|
|
2821
2821
|
const q = N("KLabel"), x = N("KSelect"), O = N("KButton"), M = N("KClipboardProvider"), K = N("KSkeleton"), J = N("KEmptyState"), X = N("KCard");
|
|
2822
2822
|
return f(), U(X, { class: "kong-ui-entity-base-config-card" }, Se({
|
|
2823
2823
|
actions: v(() => [
|
|
@@ -2859,7 +2859,7 @@ const Ri = {
|
|
|
2859
2859
|
})) : G("", !0),
|
|
2860
2860
|
e.config.jsonYamlEnabled ? G("", !0) : (f(), U(M, { key: 3 }, {
|
|
2861
2861
|
default: v(({ copyToClipboard: ee }) => [
|
|
2862
|
-
!g.value && !
|
|
2862
|
+
!g.value && !C.value ? (f(), U(O, {
|
|
2863
2863
|
key: 0,
|
|
2864
2864
|
appearance: "btn-link",
|
|
2865
2865
|
"data-testid": "json-copy-button",
|
|
@@ -2881,7 +2881,7 @@ const Ri = {
|
|
|
2881
2881
|
"data-testid": "config-card-loader",
|
|
2882
2882
|
"table-columns": 2,
|
|
2883
2883
|
type: "table"
|
|
2884
|
-
})) :
|
|
2884
|
+
})) : C.value ? (f(), U(J, {
|
|
2885
2885
|
key: 1,
|
|
2886
2886
|
"data-testid": "config-card-fetch-error",
|
|
2887
2887
|
"is-error": ""
|
|
@@ -2894,7 +2894,7 @@ const Ri = {
|
|
|
2894
2894
|
e.config.jsonYamlEnabled ? (f(), A("div", ss, [
|
|
2895
2895
|
j(Wi, {
|
|
2896
2896
|
format: d.value,
|
|
2897
|
-
"prop-list-types":
|
|
2897
|
+
"prop-list-types": R.value,
|
|
2898
2898
|
"property-collections": w.value,
|
|
2899
2899
|
record: p.value
|
|
2900
2900
|
}, Se({ _: 2 }, [
|
|
@@ -2909,7 +2909,7 @@ const Ri = {
|
|
|
2909
2909
|
}))
|
|
2910
2910
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
2911
2911
|
])) : (f(), A("div", ls, [
|
|
2912
|
-
(f(!0), A(ve, null, ye(
|
|
2912
|
+
(f(!0), A(ve, null, ye(R.value, (ee) => (f(), A("div", {
|
|
2913
2913
|
key: `config-card-details-${ee}-props`,
|
|
2914
2914
|
class: Ke(`config-card-details-${ee}-props`),
|
|
2915
2915
|
"data-testid": `config-card-details-${ee}-props`
|
|
@@ -2957,7 +2957,7 @@ const Ri = {
|
|
|
2957
2957
|
]), 1024);
|
|
2958
2958
|
};
|
|
2959
2959
|
}
|
|
2960
|
-
}), ps = /* @__PURE__ */
|
|
2960
|
+
}), ps = /* @__PURE__ */ Ce(ds, [["__scopeId", "data-v-64349aa2"]]), fs = ["onReset", "onSubmit"], ms = {
|
|
2961
2961
|
class: "form-actions",
|
|
2962
2962
|
"data-testid": "form-actions"
|
|
2963
2963
|
}, gs = /* @__PURE__ */ ie({
|
|
@@ -3013,14 +3013,14 @@ const Ri = {
|
|
|
3013
3013
|
const r = e, o = wt(), { i18n: { t: a } } = de.useI18n(), { getMessageFromError: i } = de.useErrors(), { axiosInstance: s } = de.useAxios({
|
|
3014
3014
|
headers: (t = r.config) == null ? void 0 : t.requestHeaders
|
|
3015
3015
|
}), l = F(!1), c = F(!1), d = F(""), u = T(() => r.canSubmit === !1 || r.isReadonly), m = T(() => {
|
|
3016
|
-
var p,
|
|
3016
|
+
var p, k;
|
|
3017
3017
|
if (!r.editId)
|
|
3018
3018
|
return "";
|
|
3019
3019
|
let y = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3020
|
-
return r.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (
|
|
3020
|
+
return r.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (k = r.config) != null && k.workspace ? `/${r.config.workspace}` : "")), y = y.replace(/{id}/gi, r.editId), y;
|
|
3021
3021
|
}), g = () => {
|
|
3022
|
-
r.config.cancelRoute ? o.push(r.config.cancelRoute) :
|
|
3023
|
-
},
|
|
3022
|
+
r.config.cancelRoute ? o.push(r.config.cancelRoute) : C();
|
|
3023
|
+
}, C = () => {
|
|
3024
3024
|
n("cancel");
|
|
3025
3025
|
}, _ = () => {
|
|
3026
3026
|
u.value || n("submit");
|
|
@@ -3034,13 +3034,13 @@ const Ri = {
|
|
|
3034
3034
|
const { data: p } = await s.get(m.value);
|
|
3035
3035
|
n("fetch:success", p);
|
|
3036
3036
|
} catch (p) {
|
|
3037
|
-
const
|
|
3038
|
-
d.value =
|
|
3037
|
+
const k = i(p);
|
|
3038
|
+
d.value = k.startsWith("code") ? a("baseForm.errors.edit") : k, c.value = !0, n("fetch:error", p);
|
|
3039
3039
|
} finally {
|
|
3040
3040
|
l.value = !1;
|
|
3041
3041
|
}
|
|
3042
|
-
}), (p,
|
|
3043
|
-
const y = N("KSkeleton"), w = N("KEmptyState"),
|
|
3042
|
+
}), (p, k) => {
|
|
3043
|
+
const y = N("KSkeleton"), w = N("KEmptyState"), R = N("KAlert"), H = N("KButton"), re = N("KCard");
|
|
3044
3044
|
return f(), U(re, { class: "kong-ui-entity-base-form" }, {
|
|
3045
3045
|
body: v(() => [
|
|
3046
3046
|
l.value ? (f(), U(y, {
|
|
@@ -3060,11 +3060,11 @@ const Ri = {
|
|
|
3060
3060
|
}, 8, ["cta-text"])) : (f(), A("form", {
|
|
3061
3061
|
key: 2,
|
|
3062
3062
|
"data-testid": "form-content",
|
|
3063
|
-
onReset: rt(
|
|
3063
|
+
onReset: rt(C, ["prevent"]),
|
|
3064
3064
|
onSubmit: rt(_, ["prevent"])
|
|
3065
3065
|
}, [
|
|
3066
3066
|
Z(p.$slots, "default", {}, void 0, !0),
|
|
3067
|
-
e.errorMessage ? (f(), U(
|
|
3067
|
+
e.errorMessage ? (f(), U(R, {
|
|
3068
3068
|
key: 0,
|
|
3069
3069
|
"alert-message": e.errorMessage,
|
|
3070
3070
|
appearance: "danger",
|
|
@@ -3102,7 +3102,7 @@ const Ri = {
|
|
|
3102
3102
|
});
|
|
3103
3103
|
};
|
|
3104
3104
|
}
|
|
3105
|
-
}), ys = /* @__PURE__ */
|
|
3105
|
+
}), ys = /* @__PURE__ */ Ce(gs, [["__scopeId", "data-v-44a90aae"]]), hs = { key: 0 }, vs = /* @__PURE__ */ ie({
|
|
3106
3106
|
__name: "EntityBaseTableCell",
|
|
3107
3107
|
props: {
|
|
3108
3108
|
keyName: {
|
|
@@ -3123,15 +3123,15 @@ const Ri = {
|
|
|
3123
3123
|
return ((_ = t.value) == null ? void 0 : _.querySelector('[role="button"]')) || null;
|
|
3124
3124
|
}), o = T(() => {
|
|
3125
3125
|
var _, p;
|
|
3126
|
-
const
|
|
3127
|
-
return
|
|
3126
|
+
const k = (_ = n.rowEl) == null ? void 0 : _.querySelectorAll("td");
|
|
3127
|
+
return k ? ((p = k[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
|
|
3128
3128
|
});
|
|
3129
3129
|
let a;
|
|
3130
3130
|
const i = () => {
|
|
3131
3131
|
a && (a.disconnect(), a = void 0);
|
|
3132
3132
|
}, s = () => {
|
|
3133
|
-
var _, p,
|
|
3134
|
-
c.value = ((_ = r.value) == null ? void 0 : _.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((
|
|
3133
|
+
var _, p, k;
|
|
3134
|
+
c.value = ((_ = r.value) == null ? void 0 : _.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((k = l.value) == null ? void 0 : k.innerText) || "";
|
|
3135
3135
|
}, l = F({}), c = F(0), d = F(0), u = F(""), m = T(() => [r.value, t.value]), g = Oe(
|
|
3136
3136
|
m,
|
|
3137
3137
|
(_) => {
|
|
@@ -3146,21 +3146,21 @@ const Ri = {
|
|
|
3146
3146
|
}
|
|
3147
3147
|
},
|
|
3148
3148
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3149
|
-
),
|
|
3149
|
+
), C = T(() => o.value ? c.value > d.value : !1);
|
|
3150
3150
|
return dr(() => {
|
|
3151
3151
|
s();
|
|
3152
3152
|
}), pr(() => {
|
|
3153
3153
|
g();
|
|
3154
3154
|
}), (_, p) => {
|
|
3155
|
-
const
|
|
3155
|
+
const k = N("KTooltip");
|
|
3156
3156
|
return f(), A("span", {
|
|
3157
3157
|
ref_key: "contentRef",
|
|
3158
3158
|
ref: l,
|
|
3159
3159
|
class: "content-wrapper"
|
|
3160
3160
|
}, [
|
|
3161
3161
|
o.value ? (f(), A("span", hs, [
|
|
3162
|
-
j(
|
|
3163
|
-
disabled: !
|
|
3162
|
+
j(k, {
|
|
3163
|
+
disabled: !C.value,
|
|
3164
3164
|
label: u.value,
|
|
3165
3165
|
"max-width": "300",
|
|
3166
3166
|
placement: "bottomStart"
|
|
@@ -3174,7 +3174,7 @@ const Ri = {
|
|
|
3174
3174
|
], 512);
|
|
3175
3175
|
};
|
|
3176
3176
|
}
|
|
3177
|
-
}), bs = /* @__PURE__ */
|
|
3177
|
+
}), bs = /* @__PURE__ */ Ce(vs, [["__scopeId", "data-v-f8a220e9"]]), ks = { class: "toolbar-container" }, Cs = {
|
|
3178
3178
|
key: 0,
|
|
3179
3179
|
class: "toolbar-button-container"
|
|
3180
3180
|
}, _s = ["data-testid"], ws = /* @__PURE__ */ ie({
|
|
@@ -3277,17 +3277,22 @@ const Ri = {
|
|
|
3277
3277
|
title: {
|
|
3278
3278
|
type: String,
|
|
3279
3279
|
default: ""
|
|
3280
|
+
},
|
|
3281
|
+
/** default to false, setting to true will suppress the row click event even if "@click:row" is attached */
|
|
3282
|
+
disableRowClick: {
|
|
3283
|
+
type: Boolean,
|
|
3284
|
+
default: !1
|
|
3280
3285
|
}
|
|
3281
3286
|
},
|
|
3282
3287
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3283
3288
|
setup(e, { emit: n }) {
|
|
3284
3289
|
const t = e, { i18n: { t: r } } = de.useI18n(), o = T(() => t.cacheIdentifier || t.preferencesStorageKey), a = (w) => w.hasData || !!t.query, i = T(() => {
|
|
3285
3290
|
const w = [];
|
|
3286
|
-
return Object.keys(t.tableHeaders).forEach((
|
|
3287
|
-
const H = t.tableHeaders[
|
|
3291
|
+
return Object.keys(t.tableHeaders).forEach((R) => {
|
|
3292
|
+
const H = t.tableHeaders[R];
|
|
3288
3293
|
w.push({
|
|
3289
|
-
label: H.label ??
|
|
3290
|
-
key:
|
|
3294
|
+
label: H.label ?? R,
|
|
3295
|
+
key: R,
|
|
3291
3296
|
sortable: H.sortable ?? !1
|
|
3292
3297
|
});
|
|
3293
3298
|
}), t.enableEntityActions && w.push({
|
|
@@ -3299,27 +3304,27 @@ const Ri = {
|
|
|
3299
3304
|
"data-testid": w.name,
|
|
3300
3305
|
...t.rowAttributes(w)
|
|
3301
3306
|
}), l = F({}), c = (w) => {
|
|
3302
|
-
var
|
|
3303
|
-
return (
|
|
3307
|
+
var R;
|
|
3308
|
+
return (R = l.value) == null ? void 0 : R.$el.querySelector(`[data-rowid="${w.id}"]`);
|
|
3304
3309
|
}, d = (w) => {
|
|
3305
|
-
const
|
|
3310
|
+
const R = {
|
|
3306
3311
|
"data-testid": w.headerKey,
|
|
3307
3312
|
...t.cellAttributes(w)
|
|
3308
3313
|
};
|
|
3309
|
-
return w.colIndex === 0 && (
|
|
3314
|
+
return w.colIndex === 0 && (R.style = {
|
|
3310
3315
|
maxWidth: "250px",
|
|
3311
3316
|
overflowX: "hidden",
|
|
3312
3317
|
textOverflow: "ellipsis"
|
|
3313
|
-
}),
|
|
3318
|
+
}), R;
|
|
3314
3319
|
}, u = () => {
|
|
3315
3320
|
n("empty-state-cta-clicked"), m();
|
|
3316
3321
|
}, m = () => {
|
|
3317
3322
|
n("clear-search-input");
|
|
3318
|
-
}, g = (w,
|
|
3319
|
-
n("click:row",
|
|
3320
|
-
},
|
|
3323
|
+
}, g = T(() => t.disableRowClick ? void 0 : (w, R) => {
|
|
3324
|
+
n("click:row", R);
|
|
3325
|
+
}), C = (w) => {
|
|
3321
3326
|
n("sort", w);
|
|
3322
|
-
}, { setTablePreferences: _, getTablePreferences: p } = Ir(),
|
|
3327
|
+
}, { setTablePreferences: _, getTablePreferences: p } = Ir(), k = T(() => {
|
|
3323
3328
|
const w = p(t.preferencesStorageKey);
|
|
3324
3329
|
return {
|
|
3325
3330
|
...t.initialFetcherParams,
|
|
@@ -3328,9 +3333,9 @@ const Ri = {
|
|
|
3328
3333
|
}), y = (w) => {
|
|
3329
3334
|
t.preferencesStorageKey && _(t.preferencesStorageKey, w);
|
|
3330
3335
|
};
|
|
3331
|
-
return (w,
|
|
3332
|
-
const H = N("KIcon"), re = N("KButton"), z = N("KDropdownMenu"), I = N("KTable"),
|
|
3333
|
-
return f(), U(
|
|
3336
|
+
return (w, R) => {
|
|
3337
|
+
const H = N("KIcon"), re = N("KButton"), z = N("KDropdownMenu"), I = N("KTable"), V = N("KCard");
|
|
3338
|
+
return f(), U(V, {
|
|
3334
3339
|
class: "kong-ui-entity-base-table",
|
|
3335
3340
|
title: e.title
|
|
3336
3341
|
}, {
|
|
@@ -3356,20 +3361,20 @@ const Ri = {
|
|
|
3356
3361
|
"has-error": !!e.errorMessage,
|
|
3357
3362
|
headers: i.value,
|
|
3358
3363
|
"hide-pagination-when-optional": "",
|
|
3359
|
-
"initial-fetcher-params":
|
|
3364
|
+
"initial-fetcher-params": k.value,
|
|
3360
3365
|
"is-loading": e.isLoading,
|
|
3361
3366
|
"pagination-type": e.paginationType,
|
|
3362
3367
|
"row-attrs": s,
|
|
3363
3368
|
"search-input": e.query,
|
|
3364
3369
|
onKtableEmptyStateCtaClicked: u,
|
|
3365
|
-
"onRow:click": g,
|
|
3366
|
-
onSort:
|
|
3370
|
+
"onRow:click": g.value,
|
|
3371
|
+
onSort: R[0] || (R[0] = (q) => C(q)),
|
|
3367
3372
|
"onUpdate:tablePreferences": y
|
|
3368
3373
|
}, Se({
|
|
3369
3374
|
toolbar: v(({ state: q }) => [
|
|
3370
|
-
et(P("div",
|
|
3375
|
+
et(P("div", ks, [
|
|
3371
3376
|
Z(w.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3372
|
-
w.$slots["toolbar-button"] ? (f(), A("div",
|
|
3377
|
+
w.$slots["toolbar-button"] ? (f(), A("div", Cs, [
|
|
3373
3378
|
Z(w.$slots, "toolbar-button", {}, void 0, !0)
|
|
3374
3379
|
])) : G("", !0)
|
|
3375
3380
|
], 512), [
|
|
@@ -3434,13 +3439,13 @@ const Ri = {
|
|
|
3434
3439
|
}, 1032, ["key-name", "row-el"])
|
|
3435
3440
|
])
|
|
3436
3441
|
}))
|
|
3437
|
-
]), 1032, ["cache-identifier", "disable-pagination-page-jump", "disable-sorting", "empty-state-action-button-icon", "empty-state-action-message", "empty-state-action-route", "empty-state-icon", "empty-state-message", "empty-state-title", "enable-client-sort", "error-state-title", "fetcher", "fetcher-cache-key", "has-error", "headers", "initial-fetcher-params", "is-loading", "pagination-type", "search-input"])
|
|
3442
|
+
]), 1032, ["cache-identifier", "disable-pagination-page-jump", "disable-sorting", "empty-state-action-button-icon", "empty-state-action-message", "empty-state-action-route", "empty-state-icon", "empty-state-message", "empty-state-title", "enable-client-sort", "error-state-title", "fetcher", "fetcher-cache-key", "has-error", "headers", "initial-fetcher-params", "is-loading", "pagination-type", "search-input", "onRow:click"])
|
|
3438
3443
|
]),
|
|
3439
3444
|
_: 3
|
|
3440
3445
|
}, 8, ["title"]);
|
|
3441
3446
|
};
|
|
3442
3447
|
}
|
|
3443
|
-
}), Is = /* @__PURE__ */
|
|
3448
|
+
}), Is = /* @__PURE__ */ Ce(ws, [["__scopeId", "data-v-6bf92df6"]]), xs = {
|
|
3444
3449
|
key: 0,
|
|
3445
3450
|
class: "kong-ui-entity-delete-error"
|
|
3446
3451
|
}, As = {
|
|
@@ -3540,7 +3545,7 @@ const Ri = {
|
|
|
3540
3545
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3541
3546
|
};
|
|
3542
3547
|
}
|
|
3543
|
-
}), Ts = /* @__PURE__ */
|
|
3548
|
+
}), Ts = /* @__PURE__ */ Ce(Ss, [["__scopeId", "data-v-1c9a2a07"]]), $s = {
|
|
3544
3549
|
fill: "none",
|
|
3545
3550
|
height: "20",
|
|
3546
3551
|
viewBox: "0 0 20 20",
|
|
@@ -3604,19 +3609,19 @@ const Ri = {
|
|
|
3604
3609
|
setup(e, { emit: n }) {
|
|
3605
3610
|
const t = e, { i18n: { t: r } } = de.useI18n(), o = F(!1), a = F({}), i = T(() => {
|
|
3606
3611
|
const p = [];
|
|
3607
|
-
return new URLSearchParams(t.modelValue).forEach((
|
|
3608
|
-
|
|
3612
|
+
return new URLSearchParams(t.modelValue).forEach((k, y) => {
|
|
3613
|
+
k !== "" && p.push(y);
|
|
3609
3614
|
}), p;
|
|
3610
3615
|
}), s = T(() => {
|
|
3611
3616
|
const p = t.config.fields;
|
|
3612
|
-
return Object.keys(p).filter((
|
|
3613
|
-
label: p[
|
|
3614
|
-
value:
|
|
3617
|
+
return Object.keys(p).filter((k) => p[k].searchable).map((k) => ({
|
|
3618
|
+
label: p[k].label || k,
|
|
3619
|
+
value: k
|
|
3615
3620
|
}));
|
|
3616
3621
|
});
|
|
3617
3622
|
Oe(() => t.modelValue, (p) => {
|
|
3618
|
-
a.value = {}, new URLSearchParams(p).forEach((
|
|
3619
|
-
a.value[y] =
|
|
3623
|
+
a.value = {}, new URLSearchParams(p).forEach((k, y) => {
|
|
3624
|
+
a.value[y] = k;
|
|
3620
3625
|
});
|
|
3621
3626
|
});
|
|
3622
3627
|
const l = () => {
|
|
@@ -3624,27 +3629,27 @@ const Ri = {
|
|
|
3624
3629
|
}, c = (p) => {
|
|
3625
3630
|
n("update:modelValue", p);
|
|
3626
3631
|
}, d = (p) => `filter-${p}`, u = (p) => {
|
|
3627
|
-
var
|
|
3628
|
-
return (((y = (
|
|
3632
|
+
var k, y;
|
|
3633
|
+
return (((y = (k = t.config.schema) == null ? void 0 : k[p]) == null ? void 0 : y.values) ?? []).map((w) => ({
|
|
3629
3634
|
value: w,
|
|
3630
3635
|
label: w
|
|
3631
3636
|
}));
|
|
3632
3637
|
}, m = (p) => {
|
|
3633
|
-
var
|
|
3634
|
-
return ((y = (
|
|
3638
|
+
var k, y;
|
|
3639
|
+
return ((y = (k = t.config.schema) == null ? void 0 : k[p]) == null ? void 0 : y.type) ?? "text";
|
|
3635
3640
|
}, g = (p) => {
|
|
3636
3641
|
a.value = {
|
|
3637
3642
|
...a.value,
|
|
3638
3643
|
[p]: ""
|
|
3639
3644
|
}, _();
|
|
3640
|
-
},
|
|
3645
|
+
}, C = () => {
|
|
3641
3646
|
a.value = {}, _(!0);
|
|
3642
3647
|
}, _ = (p = !1) => {
|
|
3643
|
-
const
|
|
3644
|
-
p && (o.value = !1), n("update:modelValue", new URLSearchParams(
|
|
3648
|
+
const k = Object.keys(a.value).reduce((y, w) => (a.value[w] && (y[w] = `${a.value[w]}`), y), {});
|
|
3649
|
+
p && (o.value = !1), n("update:modelValue", new URLSearchParams(k).toString());
|
|
3645
3650
|
};
|
|
3646
|
-
return (p,
|
|
3647
|
-
const y = N("KInput"), w = N("KButton"),
|
|
3651
|
+
return (p, k) => {
|
|
3652
|
+
const y = N("KInput"), w = N("KButton"), R = N("KSelect"), H = N("KMenuItem"), re = N("KMenu");
|
|
3648
3653
|
return e.config.isExactMatch ? (f(), U(y, {
|
|
3649
3654
|
key: 0,
|
|
3650
3655
|
autocomplete: "off",
|
|
@@ -3693,14 +3698,14 @@ const Ri = {
|
|
|
3693
3698
|
])
|
|
3694
3699
|
]),
|
|
3695
3700
|
itemBody: v(() => {
|
|
3696
|
-
var
|
|
3701
|
+
var V, q;
|
|
3697
3702
|
return [
|
|
3698
3703
|
P("div", Ls, [
|
|
3699
3704
|
P("label", {
|
|
3700
3705
|
class: "menu-item-label",
|
|
3701
3706
|
for: d(z.value)
|
|
3702
3707
|
}, E(h(r)("filter.fieldLabel")), 9, qs),
|
|
3703
|
-
((q = (
|
|
3708
|
+
((q = (V = e.config.schema) == null ? void 0 : V[z.value]) == null ? void 0 : q.type) === "select" ? (f(), U(R, {
|
|
3704
3709
|
key: 0,
|
|
3705
3710
|
id: d(z.value),
|
|
3706
3711
|
modelValue: a.value[z.value],
|
|
@@ -3724,7 +3729,7 @@ const Ri = {
|
|
|
3724
3729
|
appearance: "btn-link",
|
|
3725
3730
|
"data-testid": "apply-filter",
|
|
3726
3731
|
size: "small",
|
|
3727
|
-
onClick:
|
|
3732
|
+
onClick: k[0] || (k[0] = (x) => _(!0))
|
|
3728
3733
|
}, {
|
|
3729
3734
|
default: v(() => [
|
|
3730
3735
|
Q(E(h(r)("filter.applyButtonText")), 1)
|
|
@@ -3749,7 +3754,7 @@ const Ri = {
|
|
|
3749
3754
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3750
3755
|
]),
|
|
3751
3756
|
actionButton: v(() => [
|
|
3752
|
-
j(w, { onClick:
|
|
3757
|
+
j(w, { onClick: C }, {
|
|
3753
3758
|
default: v(() => [
|
|
3754
3759
|
Q(E(h(r)("filter.clearAllButtonText")), 1)
|
|
3755
3760
|
]),
|
|
@@ -3763,7 +3768,7 @@ const Ri = {
|
|
|
3763
3768
|
]));
|
|
3764
3769
|
};
|
|
3765
3770
|
}
|
|
3766
|
-
}),
|
|
3771
|
+
}), Rs = /* @__PURE__ */ Ce(Us, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ie({
|
|
3767
3772
|
__name: "PermissionsWrapper",
|
|
3768
3773
|
props: {
|
|
3769
3774
|
/**
|
|
@@ -3793,7 +3798,7 @@ const Ri = {
|
|
|
3793
3798
|
isAllowed: t.value
|
|
3794
3799
|
}) : G("", !0);
|
|
3795
3800
|
}
|
|
3796
|
-
}),
|
|
3801
|
+
}), Vs = { class: "form-section-wrapper" }, Ds = {
|
|
3797
3802
|
key: 0,
|
|
3798
3803
|
class: "form-section-title"
|
|
3799
3804
|
}, Gs = {
|
|
@@ -3831,12 +3836,12 @@ const Ri = {
|
|
|
3831
3836
|
return (t, r) => (f(), A("fieldset", {
|
|
3832
3837
|
class: Ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
3833
3838
|
}, [
|
|
3834
|
-
P("div",
|
|
3839
|
+
P("div", Vs, [
|
|
3835
3840
|
e.hideInfoHeader ? G("", !0) : (f(), A("div", {
|
|
3836
3841
|
key: 0,
|
|
3837
3842
|
class: Ke(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3838
3843
|
}, [
|
|
3839
|
-
e.title ? (f(), A("h4",
|
|
3844
|
+
e.title ? (f(), A("h4", Ds, E(e.title), 1)) : G("", !0),
|
|
3840
3845
|
e.description || h(n).description ? (f(), A("div", Gs, [
|
|
3841
3846
|
Z(t.$slots, "description", {}, () => [
|
|
3842
3847
|
P("p", null, E(e.description), 1)
|
|
@@ -3852,7 +3857,7 @@ const Ri = {
|
|
|
3852
3857
|
])
|
|
3853
3858
|
], 2));
|
|
3854
3859
|
}
|
|
3855
|
-
}), un = /* @__PURE__ */
|
|
3860
|
+
}), un = /* @__PURE__ */ Ce(Ys, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Ft, useDeleteUrlBuilder: Js, useErrors: Ws, useFetchUrlBuilder: hl, useFetcher: Zs, useDebouncedFilter: or, useStringHelpers: vl, useHelpers: bl, useGatewayFeatureSupported: kl } = de;
|
|
3856
3861
|
const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group-cta-text" }, el = {
|
|
3857
3862
|
key: 0,
|
|
3858
3863
|
class: "kong-ui-entity-add-to-groups-error"
|
|
@@ -3891,7 +3896,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3891
3896
|
fetchedItemsKey: "data",
|
|
3892
3897
|
searchKeys: ["name", "id"]
|
|
3893
3898
|
}
|
|
3894
|
-
), m = T(() => c.value ? r("consumer_groups.errors.general") : ""), g = F(0),
|
|
3899
|
+
), m = T(() => c.value ? r("consumer_groups.errors.general") : ""), g = F(0), C = T(() => l.value === void 0), _ = T(() => u.value.map((x) => ({
|
|
3895
3900
|
label: x.name,
|
|
3896
3901
|
value: x.id,
|
|
3897
3902
|
selected: a.value.includes(x.id),
|
|
@@ -3899,24 +3904,24 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3899
3904
|
// we need this to determine whether or not to show the description text
|
|
3900
3905
|
}))), p = (x) => {
|
|
3901
3906
|
var M;
|
|
3902
|
-
const O =
|
|
3907
|
+
const O = C.value ? u.value.find((K) => K.id === x) : (M = l.value) == null ? void 0 : M.find((K) => K.id === x);
|
|
3903
3908
|
return O ? O.name : x;
|
|
3904
|
-
},
|
|
3905
|
-
|
|
3906
|
-
}, y = F([]), w = F(!1),
|
|
3909
|
+
}, k = () => {
|
|
3910
|
+
R.value = "", y.value = [], I.value = [], n("cancel");
|
|
3911
|
+
}, y = F([]), w = F(!1), R = F(""), H = async () => {
|
|
3907
3912
|
if (!a.value.length) {
|
|
3908
|
-
|
|
3913
|
+
R.value = "", I.value = [], n("cancel");
|
|
3909
3914
|
return;
|
|
3910
3915
|
}
|
|
3911
|
-
w.value = !0,
|
|
3916
|
+
w.value = !0, R.value = "", y.value = [], I.value = [];
|
|
3912
3917
|
try {
|
|
3913
3918
|
const x = a.value.map((K) => z(K)), O = await Promise.allSettled(x);
|
|
3914
3919
|
let M = !0;
|
|
3915
3920
|
O.forEach((K) => {
|
|
3916
3921
|
K.status !== "fulfilled" && (M = !1);
|
|
3917
|
-
}), M ? (y.value = [], I.value = [], n("add:success", a.value), a.value = []) : (y.value.length && n("add:partial-success", y.value), a.value = [],
|
|
3922
|
+
}), M ? (y.value = [], I.value = [], n("add:success", a.value), a.value = []) : (y.value.length && n("add:partial-success", y.value), a.value = [], V(O));
|
|
3918
3923
|
} catch {
|
|
3919
|
-
|
|
3924
|
+
R.value = r("consumer_groups.errors.add"), n("error", R.value);
|
|
3920
3925
|
} finally {
|
|
3921
3926
|
w.value = !1;
|
|
3922
3927
|
}
|
|
@@ -3935,7 +3940,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3935
3940
|
let K = `${p(x)} - ${M.message}`;
|
|
3936
3941
|
return M.response.status === 409 && (K = `${p(x)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(K));
|
|
3937
3942
|
}
|
|
3938
|
-
}, I = F([]),
|
|
3943
|
+
}, I = F([]), V = (x) => {
|
|
3939
3944
|
I.value = x.map((O) => {
|
|
3940
3945
|
var M;
|
|
3941
3946
|
return (M = O.reason) == null ? void 0 : M.message;
|
|
@@ -3953,7 +3958,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3953
3958
|
"data-testid": "add-to-group-modal",
|
|
3954
3959
|
"is-visible": e.visible,
|
|
3955
3960
|
title: h(r)("consumer_groups.consumers.add.title"),
|
|
3956
|
-
onCanceled:
|
|
3961
|
+
onCanceled: k,
|
|
3957
3962
|
onProceed: H
|
|
3958
3963
|
}, {
|
|
3959
3964
|
"body-content": v(() => [
|
|
@@ -3964,7 +3969,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3964
3969
|
"onUpdate:modelValue": O[0] || (O[0] = (X) => a.value = X),
|
|
3965
3970
|
autosuggest: "",
|
|
3966
3971
|
"data-testid": "add-to-groups-multiselect",
|
|
3967
|
-
"dropdown-footer-text":
|
|
3972
|
+
"dropdown-footer-text": C.value ? h(r)("consumer_groups.consumers.add.footer") : void 0,
|
|
3968
3973
|
items: _.value,
|
|
3969
3974
|
label: h(r)("consumer_groups.consumers.add.consumer_groups_label"),
|
|
3970
3975
|
loading: h(s),
|
|
@@ -3974,14 +3979,14 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3974
3979
|
width: "100%",
|
|
3975
3980
|
onQueryChange: h(i)
|
|
3976
3981
|
}, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
3977
|
-
|
|
3982
|
+
R.value || m.value || I.value.length ? (f(), A("div", el, [
|
|
3978
3983
|
j(K, { appearance: "danger" }, {
|
|
3979
3984
|
alertMessage: v(() => [
|
|
3980
3985
|
P("p", null, E(h(r)("consumer_groups.errors.add")), 1),
|
|
3981
3986
|
I.value.length ? (f(), A("ul", tl, [
|
|
3982
3987
|
(f(!0), A(ve, null, ye(I.value, (X, ee) => (f(), A("li", { key: ee }, E(X), 1))), 128))
|
|
3983
3988
|
])) : G("", !0),
|
|
3984
|
-
P("div", null, E(
|
|
3989
|
+
P("div", null, E(R.value || m.value), 1)
|
|
3985
3990
|
]),
|
|
3986
3991
|
_: 1
|
|
3987
3992
|
})
|
|
@@ -4049,10 +4054,10 @@ const Kt = (e, n) => {
|
|
|
4049
4054
|
const u = d, m = ($) => ({
|
|
4050
4055
|
"data-testid": $.username ?? $.custom_id ?? $.id
|
|
4051
4056
|
}), g = T(() => {
|
|
4052
|
-
var Y, ue,
|
|
4057
|
+
var Y, ue, ke, Ee;
|
|
4053
4058
|
let $ = `${t.config.apiBaseUrl}${Te.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
|
|
4054
|
-
return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((Y = t.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((ue = t.config) == null ? void 0 : ue.consumerId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (
|
|
4055
|
-
}),
|
|
4059
|
+
return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((Y = t.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((ue = t.config) == null ? void 0 : ue.consumerId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), $;
|
|
4060
|
+
}), C = F(""), _ = T(() => {
|
|
4056
4061
|
const $ = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4057
4062
|
return $ ? {
|
|
4058
4063
|
isExactMatch: $,
|
|
@@ -4068,9 +4073,9 @@ const Kt = (e, n) => {
|
|
|
4068
4073
|
},
|
|
4069
4074
|
schema: t.config.filterSchema
|
|
4070
4075
|
};
|
|
4071
|
-
}), p = T(() => l.value ? "consumer_groups" : void 0), { fetcher:
|
|
4072
|
-
|
|
4073
|
-
},
|
|
4076
|
+
}), p = T(() => l.value ? "consumer_groups" : void 0), { fetcher: k, fetcherState: y } = Zs(t.config, g.value, p.value), w = () => {
|
|
4077
|
+
C.value = "";
|
|
4078
|
+
}, R = () => {
|
|
4074
4079
|
s.value++;
|
|
4075
4080
|
}, H = F(""), re = ($, Y) => {
|
|
4076
4081
|
const ue = $.id;
|
|
@@ -4103,7 +4108,7 @@ const Kt = (e, n) => {
|
|
|
4103
4108
|
}, I = async ($) => {
|
|
4104
4109
|
var ue;
|
|
4105
4110
|
await ((ue = t.canRetrieve) == null ? void 0 : ue.call(t, $)) && a.push(t.config.getViewRoute($.id));
|
|
4106
|
-
},
|
|
4111
|
+
}, V = ($) => ({
|
|
4107
4112
|
label: o("consumer_groups.actions.view"),
|
|
4108
4113
|
to: t.config.getViewRoute($)
|
|
4109
4114
|
}), q = ($) => ({
|
|
@@ -4119,38 +4124,38 @@ const Kt = (e, n) => {
|
|
|
4119
4124
|
M.value = !0;
|
|
4120
4125
|
try {
|
|
4121
4126
|
await i.delete(J(x.value.id)), M.value = !1, O.value = !1, s.value++, n("delete:success", x.value);
|
|
4122
|
-
} catch (
|
|
4123
|
-
K.value = ((ue = (Y =
|
|
4127
|
+
} catch (ke) {
|
|
4128
|
+
K.value = ((ue = (Y = ke.response) == null ? void 0 : Y.data) == null ? void 0 : ue.message) || ke.message || o("consumer_groups.errors.delete"), n("error", ke);
|
|
4124
4129
|
} finally {
|
|
4125
4130
|
M.value = !1;
|
|
4126
4131
|
}
|
|
4127
4132
|
}
|
|
4128
|
-
}, se = F(!1),
|
|
4133
|
+
}, se = F(!1), Ve = () => {
|
|
4129
4134
|
se.value = !0;
|
|
4130
4135
|
}, b = () => {
|
|
4131
4136
|
se.value = !1;
|
|
4132
4137
|
}, B = ($, Y) => {
|
|
4133
4138
|
Y || b(), s.value++, n("add:success", $);
|
|
4134
4139
|
}, oe = () => {
|
|
4135
|
-
l.value &&
|
|
4136
|
-
}, L = F(void 0),
|
|
4137
|
-
L.value = $,
|
|
4140
|
+
l.value && Ve();
|
|
4141
|
+
}, L = F(void 0), D = F(!1), ge = F(""), _e = ($) => {
|
|
4142
|
+
L.value = $, D.value = !0;
|
|
4138
4143
|
}, ce = () => {
|
|
4139
|
-
|
|
4144
|
+
D.value = !1, L.value = void 0;
|
|
4140
4145
|
}, Be = T(() => {
|
|
4141
|
-
var Y, ue,
|
|
4146
|
+
var Y, ue, ke, Ee;
|
|
4142
4147
|
let $ = `${t.config.apiBaseUrl}${Te.list[t.config.app].oneForConsumer}`;
|
|
4143
|
-
return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((Y = t.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((ue = t.config) == null ? void 0 : ue.consumerId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (
|
|
4144
|
-
}),
|
|
4148
|
+
return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((Y = t.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((ue = t.config) == null ? void 0 : ue.consumerId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), $;
|
|
4149
|
+
}), De = F(!1), ar = async () => {
|
|
4145
4150
|
if (L.value) {
|
|
4146
|
-
|
|
4151
|
+
De.value = !0;
|
|
4147
4152
|
try {
|
|
4148
4153
|
const $ = Be.value.replace(/{consumerGroupId}/gi, L.value.id);
|
|
4149
4154
|
await i.delete($), n("remove:success", L.value), ce(), s.value++;
|
|
4150
4155
|
} catch ($) {
|
|
4151
4156
|
ge.value = $.message || o("consumer_groups.errors.delete"), n("error", $);
|
|
4152
4157
|
} finally {
|
|
4153
|
-
|
|
4158
|
+
De.value = !1;
|
|
4154
4159
|
}
|
|
4155
4160
|
}
|
|
4156
4161
|
};
|
|
@@ -4170,7 +4175,7 @@ const Kt = (e, n) => {
|
|
|
4170
4175
|
return Qe(async () => {
|
|
4171
4176
|
await t.canCreate() && (pt.value.title = l.value ? o("consumer_groups.list.empty_state.title_for_consumer") : o("consumer_groups.list.empty_state.title"), pt.value.ctaText = l.value ? o("consumer_groups.actions.add_to_group") : o("consumer_groups.actions.create"));
|
|
4172
4177
|
}), ($, Y) => {
|
|
4173
|
-
const ue = N("KButton"),
|
|
4178
|
+
const ue = N("KButton"), ke = N("KBadge"), Ee = N("KTruncate"), Ge = N("KDropdownItem"), Nt = N("KClipboardProvider"), ir = N("KPrompt");
|
|
4174
4179
|
return f(), A("div", ol, [
|
|
4175
4180
|
j(h(Is), {
|
|
4176
4181
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -4180,23 +4185,23 @@ const Kt = (e, n) => {
|
|
|
4180
4185
|
"empty-state-options": pt.value,
|
|
4181
4186
|
"enable-entity-actions": "",
|
|
4182
4187
|
"error-message": H.value,
|
|
4183
|
-
fetcher: h(
|
|
4188
|
+
fetcher: h(k),
|
|
4184
4189
|
"fetcher-cache-key": s.value,
|
|
4185
4190
|
"pagination-type": "offset",
|
|
4186
4191
|
"preferences-storage-key": "kong-ui-entities-consumer-groups-list",
|
|
4187
|
-
query:
|
|
4192
|
+
query: C.value,
|
|
4188
4193
|
"row-attributes": m,
|
|
4189
4194
|
"table-headers": h(u),
|
|
4190
4195
|
onClearSearchInput: w,
|
|
4191
4196
|
"onClick:row": Y[3] || (Y[3] = (W) => I(W)),
|
|
4192
4197
|
onEmptyStateCtaClicked: oe,
|
|
4193
|
-
onSort:
|
|
4198
|
+
onSort: R
|
|
4194
4199
|
}, {
|
|
4195
4200
|
"toolbar-filter": v(() => [
|
|
4196
|
-
l.value ? G("", !0) : (f(), U(h(
|
|
4201
|
+
l.value ? G("", !0) : (f(), U(h(Rs), {
|
|
4197
4202
|
key: 0,
|
|
4198
|
-
modelValue:
|
|
4199
|
-
"onUpdate:modelValue": Y[0] || (Y[0] = (W) =>
|
|
4203
|
+
modelValue: C.value,
|
|
4204
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (W) => C.value = W),
|
|
4200
4205
|
config: _.value
|
|
4201
4206
|
}, null, 8, ["modelValue", "config"]))
|
|
4202
4207
|
]),
|
|
@@ -4210,7 +4215,7 @@ const Kt = (e, n) => {
|
|
|
4210
4215
|
"data-testid": "toolbar-add-consumer-group",
|
|
4211
4216
|
icon: "plus",
|
|
4212
4217
|
to: e.config.consumerId ? void 0 : e.config.createRoute,
|
|
4213
|
-
onClick: Y[1] || (Y[1] = () => e.config.consumerId ?
|
|
4218
|
+
onClick: Y[1] || (Y[1] = () => e.config.consumerId ? Ve() : void 0)
|
|
4214
4219
|
}, {
|
|
4215
4220
|
default: v(() => [
|
|
4216
4221
|
Q(E(e.config.consumerId ? h(o)("consumer_groups.actions.add_to_group") : h(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
|
|
@@ -4230,7 +4235,7 @@ const Kt = (e, n) => {
|
|
|
4230
4235
|
tags: v(({ rowValue: W }) => [
|
|
4231
4236
|
(W == null ? void 0 : W.length) > 0 ? (f(), U(Ee, { key: 0 }, {
|
|
4232
4237
|
default: v(() => [
|
|
4233
|
-
(f(!0), A(ve, null, ye(W, (Ne) => (f(), U(
|
|
4238
|
+
(f(!0), A(ve, null, ye(W, (Ne) => (f(), U(ke, {
|
|
4234
4239
|
key: Ne,
|
|
4235
4240
|
onClick: Y[2] || (Y[2] = rt(() => {
|
|
4236
4241
|
}, ["stop"]))
|
|
@@ -4280,7 +4285,7 @@ const Kt = (e, n) => {
|
|
|
4280
4285
|
j(Ge, {
|
|
4281
4286
|
"data-testid": "action-entity-view",
|
|
4282
4287
|
"has-divider": "",
|
|
4283
|
-
item:
|
|
4288
|
+
item: V(W.id)
|
|
4284
4289
|
}, null, 8, ["item"])
|
|
4285
4290
|
]),
|
|
4286
4291
|
_: 2
|
|
@@ -4341,7 +4346,7 @@ const Kt = (e, n) => {
|
|
|
4341
4346
|
e.config.consumerId && L.value ? (f(), U(ir, {
|
|
4342
4347
|
key: 1,
|
|
4343
4348
|
"data-testid": "exit-group-modal",
|
|
4344
|
-
"is-visible":
|
|
4349
|
+
"is-visible": D.value,
|
|
4345
4350
|
title: h(o)("consumer_groups.consumers.exit.title"),
|
|
4346
4351
|
type: "danger",
|
|
4347
4352
|
onCanceled: ce,
|
|
@@ -4374,7 +4379,7 @@ const Kt = (e, n) => {
|
|
|
4374
4379
|
};
|
|
4375
4380
|
}
|
|
4376
4381
|
});
|
|
4377
|
-
const
|
|
4382
|
+
const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { class: "kong-ui-entities-consumer-group-form" }, ll = { class: "select-item-label" }, ul = {
|
|
4378
4383
|
key: 0,
|
|
4379
4384
|
class: "select-item-desc"
|
|
4380
4385
|
}, cl = /* @__PURE__ */ ie({
|
|
@@ -4395,7 +4400,7 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4395
4400
|
},
|
|
4396
4401
|
emits: ["update", "error", "loading"],
|
|
4397
4402
|
setup(e, { emit: n }) {
|
|
4398
|
-
var te, se,
|
|
4403
|
+
var te, se, Ve;
|
|
4399
4404
|
const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Lt({
|
|
4400
4405
|
fields: {
|
|
4401
4406
|
name: "",
|
|
@@ -4418,8 +4423,8 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4418
4423
|
fetchedItemsKey: "data",
|
|
4419
4424
|
searchKeys: ["username", "custom_id"]
|
|
4420
4425
|
}), { axiosInstance: m } = Ft({
|
|
4421
|
-
headers: (
|
|
4422
|
-
}), { getMessageFromError: g } = Ws(),
|
|
4426
|
+
headers: (Ve = t.config) == null ? void 0 : Ve.requestHeaders
|
|
4427
|
+
}), { getMessageFromError: g } = Ws(), C = T(() => u.value.map((b) => ({
|
|
4423
4428
|
label: b.username || b.custom_id,
|
|
4424
4429
|
value: b.id,
|
|
4425
4430
|
selected: a.fields.consumers.includes(b.id),
|
|
@@ -4428,11 +4433,11 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4428
4433
|
}))), _ = T(() => {
|
|
4429
4434
|
var b, B;
|
|
4430
4435
|
return (B = Te.form[(b = t.config) == null ? void 0 : b.app]) == null ? void 0 : B.edit;
|
|
4431
|
-
}), p = T(() => t.consumerGroupId ? nt.Edit : nt.Create),
|
|
4432
|
-
var
|
|
4433
|
-
let L = `${(
|
|
4434
|
-
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? L = L.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Be = t.config) == null ? void 0 : Be.app) === "kongManager" && (L = L.replace(/\/{workspace}/gi, (
|
|
4435
|
-
},
|
|
4436
|
+
}), p = T(() => t.consumerGroupId ? nt.Edit : nt.Create), k = T(() => !!a.fields.name && !I.value), y = T(() => JSON.stringify(a.fields) !== JSON.stringify(i)), w = (b, B = "", oe = "") => {
|
|
4437
|
+
var D, ge, _e, ce, Be, De;
|
|
4438
|
+
let L = `${(D = t.config) == null ? void 0 : D.apiBaseUrl}${Te.form[(ge = t.config) == null ? void 0 : ge.app][b]}`;
|
|
4439
|
+
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? L = L.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Be = t.config) == null ? void 0 : Be.app) === "kongManager" && (L = L.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), L = L.replace(/{id}/gi, B || t.consumerGroupId), (b === "addConsumer" || b === "removeConsumer") && (L = L.replace(/{consumerId}/gi, oe)), L;
|
|
4440
|
+
}, R = () => {
|
|
4436
4441
|
var b;
|
|
4437
4442
|
o.push(((b = t.config) == null ? void 0 : b.cancelRoute) || { name: "consumer-group-list" });
|
|
4438
4443
|
}, H = (b) => {
|
|
@@ -4440,9 +4445,9 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4440
4445
|
}, re = (b) => {
|
|
4441
4446
|
n("loading", b);
|
|
4442
4447
|
}, z = async (b) => {
|
|
4443
|
-
var oe, L,
|
|
4448
|
+
var oe, L, D, ge, _e;
|
|
4444
4449
|
a.fields.name = ((oe = b == null ? void 0 : b.item) == null ? void 0 : oe.name) || ((L = b == null ? void 0 : b.consumer_group) == null ? void 0 : L.name) || (b == null ? void 0 : b.name) || "";
|
|
4445
|
-
const B = ((
|
|
4450
|
+
const B = ((D = b == null ? void 0 : b.item) == null ? void 0 : D.tags) || (b == null ? void 0 : b.consumer_group.tags) || (b == null ? void 0 : b.tags) || [];
|
|
4446
4451
|
if (a.fields.tags = (B == null ? void 0 : B.join(", ")) || "", "consumers" in b)
|
|
4447
4452
|
a.fields.consumers = ((ge = b == null ? void 0 : b.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
|
|
4448
4453
|
else
|
|
@@ -4453,7 +4458,7 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4453
4458
|
O(ce);
|
|
4454
4459
|
}
|
|
4455
4460
|
Object.assign(i, a.fields);
|
|
4456
|
-
}, I = T(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")),
|
|
4461
|
+
}, I = T(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), V = () => {
|
|
4457
4462
|
var b, B;
|
|
4458
4463
|
return {
|
|
4459
4464
|
name: a.fields.name,
|
|
@@ -4464,7 +4469,7 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4464
4469
|
}, M = (b = t.consumerGroupId) => {
|
|
4465
4470
|
Object.assign(i, a.fields), n("update", { ...a.fields, id: b });
|
|
4466
4471
|
}, K = (b, B, oe = t.consumerGroupId) => {
|
|
4467
|
-
const L = b == null ? void 0 : b.find((
|
|
4472
|
+
const L = b == null ? void 0 : b.find((D) => D.status !== "fulfilled");
|
|
4468
4473
|
L ? O({
|
|
4469
4474
|
code: L.status,
|
|
4470
4475
|
message: B
|
|
@@ -4472,7 +4477,7 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4472
4477
|
}, J = async () => {
|
|
4473
4478
|
let b = "";
|
|
4474
4479
|
try {
|
|
4475
|
-
const { data: B } = await m.post(w("create"),
|
|
4480
|
+
const { data: B } = await m.post(w("create"), V());
|
|
4476
4481
|
b = "item" in B ? B.item.id : B.id;
|
|
4477
4482
|
} catch (B) {
|
|
4478
4483
|
O(B);
|
|
@@ -4489,7 +4494,7 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4489
4494
|
}, X = async () => {
|
|
4490
4495
|
var oe;
|
|
4491
4496
|
try {
|
|
4492
|
-
((oe = t.config) == null ? void 0 : oe.app) === "konnect" ? await m.put(w("edit"),
|
|
4497
|
+
((oe = t.config) == null ? void 0 : oe.app) === "konnect" ? await m.put(w("edit"), V()) : await m.patch(w("edit"), V());
|
|
4493
4498
|
} catch (L) {
|
|
4494
4499
|
O(L);
|
|
4495
4500
|
}
|
|
@@ -4499,15 +4504,15 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4499
4504
|
else {
|
|
4500
4505
|
if (B.length > 0)
|
|
4501
4506
|
try {
|
|
4502
|
-
const L = B.map((ge) => x(ge)),
|
|
4503
|
-
K(
|
|
4507
|
+
const L = B.map((ge) => x(ge)), D = await Promise.allSettled(L);
|
|
4508
|
+
K(D, r("consumer_groups.errors.remove_consumer"));
|
|
4504
4509
|
} catch (L) {
|
|
4505
4510
|
O(L);
|
|
4506
4511
|
}
|
|
4507
4512
|
if (b.length > 0)
|
|
4508
4513
|
try {
|
|
4509
|
-
const L = b.map((ge) => q(ge)),
|
|
4510
|
-
K(
|
|
4514
|
+
const L = b.map((ge) => q(ge)), D = await Promise.allSettled(L);
|
|
4515
|
+
K(D, r("consumer_groups.errors.add_consumer"));
|
|
4511
4516
|
} catch (L) {
|
|
4512
4517
|
O(L);
|
|
4513
4518
|
}
|
|
@@ -4525,16 +4530,16 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4525
4530
|
const oe = N("KInput"), L = N("KMultiselect");
|
|
4526
4531
|
return f(), A("div", sl, [
|
|
4527
4532
|
j(h(ys), {
|
|
4528
|
-
"can-submit":
|
|
4533
|
+
"can-submit": k.value && y.value,
|
|
4529
4534
|
config: e.config,
|
|
4530
4535
|
"edit-id": e.consumerGroupId,
|
|
4531
4536
|
"error-message": a.errorMessage || h(c) || I.value,
|
|
4532
4537
|
"fetch-url": _.value,
|
|
4533
4538
|
"is-readonly": a.readonly,
|
|
4534
|
-
onCancel:
|
|
4535
|
-
"onFetch:error": B[3] || (B[3] = (
|
|
4539
|
+
onCancel: R,
|
|
4540
|
+
"onFetch:error": B[3] || (B[3] = (D) => H(D)),
|
|
4536
4541
|
"onFetch:success": z,
|
|
4537
|
-
onLoading: B[4] || (B[4] = (
|
|
4542
|
+
onLoading: B[4] || (B[4] = (D) => re(D)),
|
|
4538
4543
|
onSubmit: ee
|
|
4539
4544
|
}, {
|
|
4540
4545
|
default: v(() => [
|
|
@@ -4545,7 +4550,7 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4545
4550
|
default: v(() => [
|
|
4546
4551
|
j(oe, {
|
|
4547
4552
|
modelValue: a.fields.name,
|
|
4548
|
-
"onUpdate:modelValue": B[0] || (B[0] = (
|
|
4553
|
+
"onUpdate:modelValue": B[0] || (B[0] = (D) => a.fields.name = D),
|
|
4549
4554
|
modelModifiers: { trim: !0 },
|
|
4550
4555
|
autocomplete: "off",
|
|
4551
4556
|
"data-testid": "consumer-group-form-name",
|
|
@@ -4556,7 +4561,7 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4556
4561
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
4557
4562
|
j(oe, {
|
|
4558
4563
|
modelValue: a.fields.tags,
|
|
4559
|
-
"onUpdate:modelValue": B[1] || (B[1] = (
|
|
4564
|
+
"onUpdate:modelValue": B[1] || (B[1] = (D) => a.fields.tags = D),
|
|
4560
4565
|
modelModifiers: { trim: !0 },
|
|
4561
4566
|
autocomplete: "off",
|
|
4562
4567
|
"data-testid": "consumer-group-form-tags",
|
|
@@ -4580,22 +4585,22 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4580
4585
|
default: v(() => [
|
|
4581
4586
|
j(L, {
|
|
4582
4587
|
modelValue: a.fields.consumers,
|
|
4583
|
-
"onUpdate:modelValue": B[2] || (B[2] = (
|
|
4588
|
+
"onUpdate:modelValue": B[2] || (B[2] = (D) => a.fields.consumers = D),
|
|
4584
4589
|
appearance: "select",
|
|
4585
4590
|
autosuggest: "",
|
|
4586
4591
|
"expand-selected": "",
|
|
4587
|
-
items:
|
|
4592
|
+
items: C.value,
|
|
4588
4593
|
label: h(r)("consumer_groups.form.fields.consumers.label"),
|
|
4589
4594
|
loading: h(l),
|
|
4590
4595
|
placeholder: h(r)("consumer_groups.form.fields.consumers.placeholder"),
|
|
4591
4596
|
width: "auto",
|
|
4592
4597
|
onQueryChange: h(s)
|
|
4593
4598
|
}, {
|
|
4594
|
-
"item-template": v(({ item:
|
|
4599
|
+
"item-template": v(({ item: D }) => {
|
|
4595
4600
|
var ge, _e, ce;
|
|
4596
4601
|
return [
|
|
4597
|
-
P("div", ll, E(
|
|
4598
|
-
(ge =
|
|
4602
|
+
P("div", ll, E(D.label), 1),
|
|
4603
|
+
(ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (f(), A("div", ul, E((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
|
|
4599
4604
|
];
|
|
4600
4605
|
}),
|
|
4601
4606
|
_: 1
|
|
@@ -4665,5 +4670,5 @@ const _l = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-2da12897"]]), dl = { cl
|
|
|
4665
4670
|
export {
|
|
4666
4671
|
wl as ConsumerGroupConfigCard,
|
|
4667
4672
|
_l as ConsumerGroupForm,
|
|
4668
|
-
|
|
4673
|
+
Cl as ConsumerGroupList
|
|
4669
4674
|
};
|