@kong-ui-public/entities-consumer-groups 1.2.16 → 1.2.17-pr.870.3e2fd2c4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ie, ref as M, computed as x, watch as xe, renderSlot as Z, createCommentVNode as G, unref as h, useSlots as ut, onBeforeMount as Qe, resolveComponent as L, openBlock as f, createBlock as R, createSlots as Te, withCtx as v, createElementVNode as q, createTextVNode as Q, toDisplayString as
|
|
1
|
+
import { defineComponent as ie, ref as M, computed as x, watch as xe, renderSlot as Z, createCommentVNode as G, unref as h, useSlots as ut, onBeforeMount as Qe, resolveComponent as L, openBlock as f, createBlock as R, createSlots as Te, withCtx as v, createElementVNode as q, createTextVNode as Q, toDisplayString as E, createVNode as F, createElementBlock as T, renderList as ye, Fragment as ve, normalizeClass as Fe, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as lr, resolveDynamicComponent as Je, normalizeProps as ur, guardReactiveProps as cr, mergeProps as ht, onMounted as dr, onUnmounted as pr, normalizeStyle as fr, inject as mr, pushScopeId as gr, popScopeId as yr, reactive as Lt } from "vue";
|
|
2
2
|
import { useRouter as wt } from "vue-router";
|
|
3
3
|
import { createI18n as It, i18nTComponent as cn } from "@kong-ui-public/i18n";
|
|
4
4
|
import hr from "axios";
|
|
@@ -140,7 +140,7 @@ const ct = {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
var dn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}),
|
|
143
|
+
var dn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Ee = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ee || {}), ne = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(ne || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
|
|
144
144
|
function At(e = {}) {
|
|
145
145
|
return {
|
|
146
146
|
axiosInstance: hr.create({
|
|
@@ -267,7 +267,7 @@ const Ar = {
|
|
|
267
267
|
}, Mr = {
|
|
268
268
|
unexpected: "An unexpected error has occurred",
|
|
269
269
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
270
|
-
},
|
|
270
|
+
}, Or = {
|
|
271
271
|
enable: {
|
|
272
272
|
title: "Enable {entityType}",
|
|
273
273
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -278,7 +278,7 @@ const Ar = {
|
|
|
278
278
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
279
279
|
confirmText: "Yes, disable"
|
|
280
280
|
}
|
|
281
|
-
},
|
|
281
|
+
}, Er = {
|
|
282
282
|
deleteModal: Ar,
|
|
283
283
|
baseForm: Sr,
|
|
284
284
|
baseTable: xr,
|
|
@@ -286,10 +286,10 @@ const Ar = {
|
|
|
286
286
|
filter: $r,
|
|
287
287
|
debouncedFilter: jr,
|
|
288
288
|
errors: Mr,
|
|
289
|
-
toggleModal:
|
|
289
|
+
toggleModal: Or
|
|
290
290
|
};
|
|
291
291
|
function St() {
|
|
292
|
-
const e = It("en-us",
|
|
292
|
+
const e = It("en-us", Er);
|
|
293
293
|
return {
|
|
294
294
|
i18n: e,
|
|
295
295
|
i18nT: cn(e)
|
|
@@ -336,12 +336,12 @@ function Br(e, n, t, r = {
|
|
|
336
336
|
else
|
|
337
337
|
l.value = !0, d.value = "", y ? (c.value = (B = m.value) == null ? void 0 : B.filter((H) => {
|
|
338
338
|
var re;
|
|
339
|
-
let
|
|
339
|
+
let J = !1;
|
|
340
340
|
for (const I of r.searchKeys) {
|
|
341
341
|
const V = typeof H[I] == "string" ? (re = H[I]) == null ? void 0 : re.toLowerCase() : H[I];
|
|
342
|
-
V != null && V.includes(y.toLowerCase()) && (
|
|
342
|
+
V != null && V.includes(y.toLowerCase()) && (J = !0);
|
|
343
343
|
}
|
|
344
|
-
return
|
|
344
|
+
return J;
|
|
345
345
|
}), (!c.value || !c.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : c.value = m.value, l.value = !1;
|
|
346
346
|
};
|
|
347
347
|
return {
|
|
@@ -410,11 +410,11 @@ function Nr(e, n, t = "data") {
|
|
|
410
410
|
const r = h(n), { axiosInstance: o } = At({
|
|
411
411
|
headers: e.requestHeaders
|
|
412
412
|
}), a = pn(e, r), i = M({
|
|
413
|
-
status:
|
|
413
|
+
status: Ee.Idle
|
|
414
414
|
});
|
|
415
415
|
return { fetcher: async (s) => {
|
|
416
416
|
try {
|
|
417
|
-
i.value = { status:
|
|
417
|
+
i.value = { status: Ee.Loading };
|
|
418
418
|
const l = a(s), { data: u } = await o.get(l), d = t && t.replace(/[^\w-_]/gi, "");
|
|
419
419
|
let c;
|
|
420
420
|
u[d] && Array.isArray(u[d]) ? c = u[d] : c = Object.keys(u).length ? [u] : [];
|
|
@@ -428,7 +428,7 @@ function Nr(e, n, t = "data") {
|
|
|
428
428
|
} : null
|
|
429
429
|
};
|
|
430
430
|
return i.value = {
|
|
431
|
-
status:
|
|
431
|
+
status: Ee.Idle,
|
|
432
432
|
response: m
|
|
433
433
|
}, m;
|
|
434
434
|
} catch (l) {
|
|
@@ -437,11 +437,11 @@ function Nr(e, n, t = "data") {
|
|
|
437
437
|
total: 0
|
|
438
438
|
};
|
|
439
439
|
return s.query && l.response.status === 404 ? (i.value = {
|
|
440
|
-
status:
|
|
440
|
+
status: Ee.NoResults,
|
|
441
441
|
response: u,
|
|
442
442
|
error: l
|
|
443
443
|
}, u) : (i.value = {
|
|
444
|
-
status:
|
|
444
|
+
status: Ee.Error,
|
|
445
445
|
response: u,
|
|
446
446
|
error: l
|
|
447
447
|
}, u);
|
|
@@ -450,7 +450,18 @@ function Nr(e, n, t = "data") {
|
|
|
450
450
|
}
|
|
451
451
|
function Lr() {
|
|
452
452
|
return {
|
|
453
|
-
getPropValue: (e, n) => (n == null ? void 0 : n[e]) ?? void 0
|
|
453
|
+
getPropValue: (e, n) => (n == null ? void 0 : n[e]) ?? void 0,
|
|
454
|
+
objectsAreEqual: (e, n) => {
|
|
455
|
+
try {
|
|
456
|
+
return JSON.stringify(e) === JSON.stringify(n);
|
|
457
|
+
} catch {
|
|
458
|
+
return !1;
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
sortAlpha: (e) => (n, t) => {
|
|
462
|
+
let r = n[e] === void 0 || n[e] === null ? "" : n[e], o = t[e] === void 0 || t[e] === null ? "" : t[e];
|
|
463
|
+
return Array.isArray(n[e]) && (r = n[e][0]), Array.isArray(t[e]) && (o = t[e][0]), r.localeCompare(o);
|
|
464
|
+
}
|
|
454
465
|
};
|
|
455
466
|
}
|
|
456
467
|
function Pr() {
|
|
@@ -533,14 +544,14 @@ const ce = {
|
|
|
533
544
|
useI18n: St,
|
|
534
545
|
useGatewayFeatureSupported: Gr,
|
|
535
546
|
useTruncationDetector: Hr
|
|
536
|
-
},
|
|
547
|
+
}, Jr = {
|
|
537
548
|
fail: "Failed to copy id to clipboard",
|
|
538
549
|
success: {
|
|
539
550
|
prefix: "Successfully",
|
|
540
551
|
content: " copied to clipboard"
|
|
541
552
|
}
|
|
542
|
-
}, Yr = "Copy to clipboard",
|
|
543
|
-
message:
|
|
553
|
+
}, Yr = "Copy to clipboard", zr = {
|
|
554
|
+
message: Jr,
|
|
544
555
|
iconTitle: Yr
|
|
545
556
|
}, Wr = "kong-ui-copy-uuid-notify", Zr = { class: "kong-ui-copy-uuid" }, Qr = ["onClick"], Gt = 15, Xr = /* @__PURE__ */ ie({
|
|
546
557
|
__name: "CopyUuid",
|
|
@@ -586,7 +597,7 @@ const ce = {
|
|
|
586
597
|
},
|
|
587
598
|
emits: ["success", "error"],
|
|
588
599
|
setup(e, { emit: n }) {
|
|
589
|
-
const t = e, { t: r } = It("en-us",
|
|
600
|
+
const t = e, { t: r } = It("en-us", zr), o = t.notify || mr(Wr, () => {
|
|
590
601
|
}), a = x(() => t.idTooltip ? {
|
|
591
602
|
label: t.idTooltip,
|
|
592
603
|
positionFixed: !0,
|
|
@@ -619,7 +630,7 @@ const ce = {
|
|
|
619
630
|
return (m, g) => {
|
|
620
631
|
const k = L("KIcon"), _ = L("KClipboardProvider");
|
|
621
632
|
return f(), T("div", Zr, [
|
|
622
|
-
e.format !== "hidden" ? (f(), R(
|
|
633
|
+
e.format !== "hidden" ? (f(), R(Je(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
623
634
|
default: v(() => [
|
|
624
635
|
q("div", {
|
|
625
636
|
class: Fe([
|
|
@@ -627,11 +638,11 @@ const ce = {
|
|
|
627
638
|
e.truncated ? "truncated-uuid" : null,
|
|
628
639
|
e.useMono ? "mono" : null
|
|
629
640
|
])
|
|
630
|
-
},
|
|
641
|
+
}, E(u.value), 3)
|
|
631
642
|
]),
|
|
632
643
|
_: 1
|
|
633
644
|
}, 16)) : G("", !0),
|
|
634
|
-
(f(), R(
|
|
645
|
+
(f(), R(Je(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
|
|
635
646
|
default: v(() => [
|
|
636
647
|
F(_, null, {
|
|
637
648
|
default: v(({ copyToClipboard: p }) => [
|
|
@@ -691,12 +702,12 @@ const ce = {
|
|
|
691
702
|
var l;
|
|
692
703
|
return n.isArrayItem ? (l = a.value) != null && l.name ? r(a.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
693
704
|
});
|
|
694
|
-
return (l, u) => (f(), R(
|
|
705
|
+
return (l, u) => (f(), R(Je(e.isArrayItem ? "fieldset" : "div"), {
|
|
695
706
|
class: Fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
696
707
|
}, {
|
|
697
708
|
default: v(() => [
|
|
698
709
|
e.isArrayItem ? (f(), T("legend", to, [
|
|
699
|
-
q("b", null,
|
|
710
|
+
q("b", null, E(s.value), 1)
|
|
700
711
|
])) : G("", !0),
|
|
701
712
|
(f(!0), T(ve, null, ye(Object.keys(i.value), (d, c) => (f(), R(xt, {
|
|
702
713
|
key: `${o.value}-property-${c}`,
|
|
@@ -735,7 +746,7 @@ const ce = {
|
|
|
735
746
|
onClick: r[0] || (r[0] = (a) => t.$emit("navigation-click", e.item))
|
|
736
747
|
}, {
|
|
737
748
|
default: v(() => [
|
|
738
|
-
Q(
|
|
749
|
+
Q(E(e.item.value || h(n)("baseConfigCard.commonFields.link")), 1)
|
|
739
750
|
]),
|
|
740
751
|
_: 1
|
|
741
752
|
})
|
|
@@ -758,7 +769,7 @@ const ce = {
|
|
|
758
769
|
appearance: e.status ? "success" : "neutral"
|
|
759
770
|
}, {
|
|
760
771
|
default: v(() => [
|
|
761
|
-
Q(
|
|
772
|
+
Q(E(e.status ? h(n)("baseConfigCard.statusBadge.enabledLabel") : h(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
762
773
|
]),
|
|
763
774
|
_: 1
|
|
764
775
|
}, 8, ["appearance"]);
|
|
@@ -931,7 +942,7 @@ const ce = {
|
|
|
931
942
|
Z(g.$slots, "label", { item: e.item }, () => [
|
|
932
943
|
F(_, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
|
|
933
944
|
default: v(() => [
|
|
934
|
-
Q(
|
|
945
|
+
Q(E(e.item.label) + " ", 1)
|
|
935
946
|
]),
|
|
936
947
|
_: 2
|
|
937
948
|
}, [
|
|
@@ -942,7 +953,7 @@ const ce = {
|
|
|
942
953
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
943
954
|
}, [
|
|
944
955
|
Z(g.$slots, "label-tooltip", {}, () => [
|
|
945
|
-
Q(
|
|
956
|
+
Q(E(e.item.tooltip), 1)
|
|
946
957
|
], !0)
|
|
947
958
|
], 8, mo)
|
|
948
959
|
]),
|
|
@@ -959,7 +970,7 @@ const ce = {
|
|
|
959
970
|
rowValue: e.item.value
|
|
960
971
|
}, () => [
|
|
961
972
|
i.value ? (f(), T("div", ho, [
|
|
962
|
-
(f(), R(
|
|
973
|
+
(f(), R(Je(d.value.tag), ur(cr(d.value.attrs)), {
|
|
963
974
|
default: v(() => [
|
|
964
975
|
d.value.additionalComponent === "KBadge" ? (f(), T("div", {
|
|
965
976
|
key: 0,
|
|
@@ -972,7 +983,7 @@ const ce = {
|
|
|
972
983
|
"truncation-tooltip": b
|
|
973
984
|
}, {
|
|
974
985
|
default: v(() => [
|
|
975
|
-
Q(
|
|
986
|
+
Q(E(b), 1)
|
|
976
987
|
]),
|
|
977
988
|
_: 2
|
|
978
989
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
@@ -1001,7 +1012,7 @@ const ce = {
|
|
|
1001
1012
|
method: h(vr).includes(b.toLowerCase()) ? b.toLowerCase() : "custom"
|
|
1002
1013
|
}, {
|
|
1003
1014
|
default: v(() => [
|
|
1004
|
-
Q(
|
|
1015
|
+
Q(E(b), 1)
|
|
1005
1016
|
]),
|
|
1006
1017
|
_: 2
|
|
1007
1018
|
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
@@ -1025,7 +1036,7 @@ const ce = {
|
|
|
1025
1036
|
ref_key: "textContent",
|
|
1026
1037
|
ref: c,
|
|
1027
1038
|
class: Fe(["attrs-data-text", { truncated: e.truncated }])
|
|
1028
|
-
},
|
|
1039
|
+
}, E(d.value.text), 3)
|
|
1029
1040
|
]),
|
|
1030
1041
|
_: 1
|
|
1031
1042
|
}, 8, ["label"]))
|
|
@@ -1068,12 +1079,12 @@ function xo(e, n) {
|
|
|
1068
1079
|
function To(e) {
|
|
1069
1080
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1070
1081
|
}
|
|
1071
|
-
var $o = hn, jo = Io, Mo = Ao,
|
|
1082
|
+
var $o = hn, jo = Io, Mo = Ao, Oo = xo, Eo = To, Bo = So, le = {
|
|
1072
1083
|
isNothing: $o,
|
|
1073
1084
|
isObject: jo,
|
|
1074
1085
|
toArray: Mo,
|
|
1075
|
-
repeat:
|
|
1076
|
-
isNegativeZero:
|
|
1086
|
+
repeat: Oo,
|
|
1087
|
+
isNegativeZero: Eo,
|
|
1077
1088
|
extend: Bo
|
|
1078
1089
|
};
|
|
1079
1090
|
function vn(e, n) {
|
|
@@ -1291,14 +1302,14 @@ function Go(e) {
|
|
|
1291
1302
|
function Ho(e) {
|
|
1292
1303
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1293
1304
|
}
|
|
1294
|
-
function
|
|
1305
|
+
function Jo(e) {
|
|
1295
1306
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1296
1307
|
}
|
|
1297
1308
|
var An = new pe("tag:yaml.org,2002:bool", {
|
|
1298
1309
|
kind: "scalar",
|
|
1299
1310
|
resolve: Go,
|
|
1300
1311
|
construct: Ho,
|
|
1301
|
-
predicate:
|
|
1312
|
+
predicate: Jo,
|
|
1302
1313
|
represent: {
|
|
1303
1314
|
lowercase: function(e) {
|
|
1304
1315
|
return e ? "true" : "false";
|
|
@@ -1315,7 +1326,7 @@ var An = new pe("tag:yaml.org,2002:bool", {
|
|
|
1315
1326
|
function Yo(e) {
|
|
1316
1327
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1317
1328
|
}
|
|
1318
|
-
function
|
|
1329
|
+
function zo(e) {
|
|
1319
1330
|
return 48 <= e && e <= 55;
|
|
1320
1331
|
}
|
|
1321
1332
|
function Wo(e) {
|
|
@@ -1351,7 +1362,7 @@ function Zo(e) {
|
|
|
1351
1362
|
if (o === "o") {
|
|
1352
1363
|
for (t++; t < n; t++)
|
|
1353
1364
|
if (o = e[t], o !== "_") {
|
|
1354
|
-
if (!
|
|
1365
|
+
if (!zo(e.charCodeAt(t)))
|
|
1355
1366
|
return !1;
|
|
1356
1367
|
r = !0;
|
|
1357
1368
|
}
|
|
@@ -1500,7 +1511,7 @@ function sa(e) {
|
|
|
1500
1511
|
function la(e) {
|
|
1501
1512
|
return e.toISOString();
|
|
1502
1513
|
}
|
|
1503
|
-
var
|
|
1514
|
+
var On = new pe("tag:yaml.org,2002:timestamp", {
|
|
1504
1515
|
kind: "scalar",
|
|
1505
1516
|
resolve: ia,
|
|
1506
1517
|
construct: sa,
|
|
@@ -1510,7 +1521,7 @@ var En = new pe("tag:yaml.org,2002:timestamp", {
|
|
|
1510
1521
|
function ua(e) {
|
|
1511
1522
|
return e === "<<" || e === null;
|
|
1512
1523
|
}
|
|
1513
|
-
var
|
|
1524
|
+
var En = new pe("tag:yaml.org,2002:merge", {
|
|
1514
1525
|
kind: "scalar",
|
|
1515
1526
|
resolve: ua
|
|
1516
1527
|
}), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
@@ -1621,8 +1632,8 @@ var Nn = new pe("tag:yaml.org,2002:set", {
|
|
|
1621
1632
|
construct: wa
|
|
1622
1633
|
}), $t = $n.extend({
|
|
1623
1634
|
implicit: [
|
|
1624
|
-
|
|
1625
|
-
|
|
1635
|
+
On,
|
|
1636
|
+
En
|
|
1626
1637
|
],
|
|
1627
1638
|
explicit: [
|
|
1628
1639
|
Bn,
|
|
@@ -1630,7 +1641,7 @@ var Nn = new pe("tag:yaml.org,2002:set", {
|
|
|
1630
1641
|
Kn,
|
|
1631
1642
|
Nn
|
|
1632
1643
|
]
|
|
1633
|
-
}), Me = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, Pn = 3, at = 4, yt = 1, Ia = 2,
|
|
1644
|
+
}), Me = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, Pn = 3, at = 4, yt = 1, Ia = 2, Jt = 3, Aa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Sa = /[\x85\u2028\u2029]/, xa = /[,\[\]\{\}]/, qn = /^(?:!|!!|![a-z\-]+!)$/i, Un = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1634
1645
|
function Yt(e) {
|
|
1635
1646
|
return Object.prototype.toString.call(e);
|
|
1636
1647
|
}
|
|
@@ -1656,7 +1667,7 @@ function $a(e) {
|
|
|
1656
1667
|
function ja(e) {
|
|
1657
1668
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1658
1669
|
}
|
|
1659
|
-
function
|
|
1670
|
+
function zt(e) {
|
|
1660
1671
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1661
1672
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1662
1673
|
}
|
|
@@ -1668,8 +1679,8 @@ function Ma(e) {
|
|
|
1668
1679
|
}
|
|
1669
1680
|
var Rn = new Array(256), Vn = new Array(256);
|
|
1670
1681
|
for (var Le = 0; Le < 256; Le++)
|
|
1671
|
-
Rn[Le] =
|
|
1672
|
-
function
|
|
1682
|
+
Rn[Le] = zt(Le) ? 1 : 0, Vn[Le] = zt(Le);
|
|
1683
|
+
function Oa(e, n) {
|
|
1673
1684
|
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 = [];
|
|
1674
1685
|
}
|
|
1675
1686
|
function Dn(e, n) {
|
|
@@ -1769,7 +1780,7 @@ function Mt(e, n) {
|
|
|
1769
1780
|
n === 1 ? e.result += " " : n > 1 && (e.result += le.repeat(`
|
|
1770
1781
|
`, n - 1));
|
|
1771
1782
|
}
|
|
1772
|
-
function
|
|
1783
|
+
function Ea(e, n, t) {
|
|
1773
1784
|
var r, o, a, i, s, l, u, d, c = e.kind, m = e.result, g;
|
|
1774
1785
|
if (g = e.input.charCodeAt(e.position), he(g) || qe(g) || g === 35 || g === 38 || g === 42 || g === 33 || g === 124 || g === 62 || g === 39 || g === 34 || g === 37 || g === 64 || g === 96 || (g === 63 || g === 45) && (o = e.input.charCodeAt(e.position + 1), he(o) || t && qe(o)))
|
|
1775
1786
|
return !1;
|
|
@@ -1859,7 +1870,7 @@ function Na(e, n) {
|
|
|
1859
1870
|
return !1;
|
|
1860
1871
|
for (e.kind = "scalar", e.result = ""; c !== 0; )
|
|
1861
1872
|
if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
|
|
1862
|
-
yt === o ? o = c === 43 ?
|
|
1873
|
+
yt === o ? o = c === 43 ? Jt : Ia : S(e, "repeat of a chomping mode identifier");
|
|
1863
1874
|
else if ((d = ja(c)) >= 0)
|
|
1864
1875
|
d === 0 ? S(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? S(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
|
|
1865
1876
|
else
|
|
@@ -1881,7 +1892,7 @@ function Na(e, n) {
|
|
|
1881
1892
|
continue;
|
|
1882
1893
|
}
|
|
1883
1894
|
if (e.lineIndent < s) {
|
|
1884
|
-
o ===
|
|
1895
|
+
o === Jt ? e.result += le.repeat(`
|
|
1885
1896
|
`, a ? 1 + l : l) : o === yt && a && (e.result += `
|
|
1886
1897
|
`);
|
|
1887
1898
|
break;
|
|
@@ -1986,7 +1997,7 @@ function Re(e, n, t, r, o) {
|
|
|
1986
1997
|
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 || Pn === t, r && ae(e, !0, -1) && (u = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
1987
1998
|
for (; Pa(e) || qa(e); )
|
|
1988
1999
|
ae(e, !0, -1) ? (u = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
1989
|
-
if (s && (s = u || o), (l === 1 || at === t) && (ot === t || Ln === t ? _ = n : _ = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || La(e, p, _)) || Ka(e, _) ? d = !0 : (i && Na(e, _) || Ba(e, _) || Fa(e, _) ? d = !0 : Ua(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && S(e, "alias node should not have any properties")) :
|
|
2000
|
+
if (s && (s = u || o), (l === 1 || at === t) && (ot === t || Ln === t ? _ = n : _ = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || La(e, p, _)) || Ka(e, _) ? d = !0 : (i && Na(e, _) || Ba(e, _) || Fa(e, _) ? d = !0 : Ua(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && S(e, "alias node should not have any properties")) : Ea(e, _, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Qt(e, p))), e.tag === null)
|
|
1990
2001
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1991
2002
|
else if (e.tag === "?") {
|
|
1992
2003
|
for (e.result !== null && e.kind !== "scalar" && S(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, m = e.implicitTypes.length; c < m; c += 1)
|
|
@@ -2041,7 +2052,7 @@ function Ra(e) {
|
|
|
2041
2052
|
function Gn(e, n) {
|
|
2042
2053
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2043
2054
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2044
|
-
var t = new
|
|
2055
|
+
var t = new Oa(e, n), r = e.indexOf("\0");
|
|
2045
2056
|
for (r !== -1 && (t.position = r, S(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2046
2057
|
t.lineIndent += 1, t.position += 1;
|
|
2047
2058
|
for (; t.position < t.length - 1; )
|
|
@@ -2067,7 +2078,7 @@ function Da(e, n) {
|
|
|
2067
2078
|
var Ga = Va, Ha = Da, Hn = {
|
|
2068
2079
|
loadAll: Ga,
|
|
2069
2080
|
load: Ha
|
|
2070
|
-
},
|
|
2081
|
+
}, Jn = Object.prototype.toString, Yn = Object.prototype.hasOwnProperty, Ot = 65279, Ja = 9, ze = 10, Ya = 13, za = 32, Wa = 33, Za = 34, bt = 35, Qa = 37, Xa = 38, ei = 39, ti = 42, zn = 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 = {};
|
|
2071
2082
|
fe[0] = "\\0";
|
|
2072
2083
|
fe[7] = "\\a";
|
|
2073
2084
|
fe[8] = "\\b";
|
|
@@ -2144,13 +2155,13 @@ function gi(e, n) {
|
|
|
2144
2155
|
return !1;
|
|
2145
2156
|
}
|
|
2146
2157
|
function lt(e) {
|
|
2147
|
-
return e ===
|
|
2158
|
+
return e === za || e === Ja;
|
|
2148
2159
|
}
|
|
2149
2160
|
function Ze(e) {
|
|
2150
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2161
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Ot || 65536 <= e && e <= 1114111;
|
|
2151
2162
|
}
|
|
2152
2163
|
function en(e) {
|
|
2153
|
-
return Ze(e) && e !==
|
|
2164
|
+
return Ze(e) && e !== Ot && e !== Ya && e !== ze;
|
|
2154
2165
|
}
|
|
2155
2166
|
function tn(e, n, t) {
|
|
2156
2167
|
var r = en(e), o = r && !lt(e);
|
|
@@ -2159,11 +2170,11 @@ function tn(e, n, t) {
|
|
|
2159
2170
|
(t ? (
|
|
2160
2171
|
// c = flow-in
|
|
2161
2172
|
r
|
|
2162
|
-
) : r && e !==
|
|
2173
|
+
) : r && e !== zn && e !== Wn && e !== Zn && e !== Qn && e !== Xn) && e !== bt && !(n === st && !o) || en(n) && !lt(n) && e === bt || n === st && o
|
|
2163
2174
|
);
|
|
2164
2175
|
}
|
|
2165
2176
|
function yi(e) {
|
|
2166
|
-
return Ze(e) && e !==
|
|
2177
|
+
return Ze(e) && e !== Ot && !lt(e) && e !== ni && e !== ai && e !== st && e !== zn && e !== Wn && e !== Zn && e !== Qn && e !== Xn && e !== bt && e !== Xa && e !== ti && e !== Wa && e !== li && e !== ri && e !== oi && e !== ei && e !== Za && e !== Qa && e !== ii && e !== si;
|
|
2167
2178
|
}
|
|
2168
2179
|
function hi(e) {
|
|
2169
2180
|
return !lt(e) && e !== st;
|
|
@@ -2187,7 +2198,7 @@ function vi(e, n, t, r, o, a, i, s) {
|
|
|
2187
2198
|
}
|
|
2188
2199
|
else {
|
|
2189
2200
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2190
|
-
if (u = He(e, l), u ===
|
|
2201
|
+
if (u = He(e, l), u === ze)
|
|
2191
2202
|
c = !0, g && (m = m || // Foldable line = too long, and not more-indented.
|
|
2192
2203
|
l - k - 1 > r && e[k + 1] !== " ", k = l);
|
|
2193
2204
|
else if (!Ze(u))
|
|
@@ -2282,7 +2293,7 @@ function _i(e, n, t) {
|
|
|
2282
2293
|
function an(e, n, t, r) {
|
|
2283
2294
|
var o = "", a = e.tag, i, s, l;
|
|
2284
2295
|
for (i = 0, s = t.length; i < s; i += 1)
|
|
2285
|
-
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += Ct(e, n)), e.dump &&
|
|
2296
|
+
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += Ct(e, n)), e.dump && ze === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
|
|
2286
2297
|
e.tag = a, e.dump = o || "[]";
|
|
2287
2298
|
}
|
|
2288
2299
|
function wi(e, n, t) {
|
|
@@ -2300,7 +2311,7 @@ function Ii(e, n, t, r) {
|
|
|
2300
2311
|
else if (e.sortKeys)
|
|
2301
2312
|
throw new me("sortKeys must be a boolean or a function");
|
|
2302
2313
|
for (s = 0, l = i.length; s < l; s += 1)
|
|
2303
|
-
m = "", (!r || o !== "") && (m += Ct(e, n)), u = i[s], d = t[u], e.replacer && (d = e.replacer.call(t, u, d)), Se(e, n + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump &&
|
|
2314
|
+
m = "", (!r || o !== "") && (m += Ct(e, n)), u = i[s], d = t[u], e.replacer && (d = e.replacer.call(t, u, d)), Se(e, n + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && ze === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, c && (m += Ct(e, n)), Se(e, n + 1, d, !0, c) && (e.dump && ze === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
|
|
2304
2315
|
e.tag = a, e.dump = o || "{}";
|
|
2305
2316
|
}
|
|
2306
2317
|
function sn(e, n, t) {
|
|
@@ -2308,7 +2319,7 @@ function sn(e, n, t) {
|
|
|
2308
2319
|
for (o = t ? e.explicitTypes : e.implicitTypes, a = 0, i = o.length; a < i; a += 1)
|
|
2309
2320
|
if (s = o[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof n == "object" && n instanceof s.instanceOf) && (!s.predicate || s.predicate(n))) {
|
|
2310
2321
|
if (t ? s.multi && s.representName ? e.tag = s.representName(n) : e.tag = s.tag : e.tag = "?", s.represent) {
|
|
2311
|
-
if (l = e.styleMap[s.tag] || s.defaultStyle,
|
|
2322
|
+
if (l = e.styleMap[s.tag] || s.defaultStyle, Jn.call(s.represent) === "[object Function]")
|
|
2312
2323
|
r = s.represent(n, l);
|
|
2313
2324
|
else if (Yn.call(s.represent, l))
|
|
2314
2325
|
r = s.represent[l](n, l);
|
|
@@ -2322,7 +2333,7 @@ function sn(e, n, t) {
|
|
|
2322
2333
|
}
|
|
2323
2334
|
function Se(e, n, t, r, o, a, i) {
|
|
2324
2335
|
e.tag = null, e.dump = t, sn(e, t, !1) || sn(e, t, !0);
|
|
2325
|
-
var s =
|
|
2336
|
+
var s = Jn.call(e.dump), l = r, u;
|
|
2326
2337
|
r && (r = e.flowLevel < 0 || e.flowLevel > n);
|
|
2327
2338
|
var d = s === "[object Object]" || s === "[object Array]", c, m;
|
|
2328
2339
|
if (d && (c = e.duplicates.indexOf(t), m = c !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && n > 0) && (o = !1), m && e.usedDuplicates[c])
|
|
@@ -2374,31 +2385,31 @@ function Si(e, n) {
|
|
|
2374
2385
|
var xi = Si, Ti = {
|
|
2375
2386
|
dump: xi
|
|
2376
2387
|
};
|
|
2377
|
-
function
|
|
2388
|
+
function Et(e, n) {
|
|
2378
2389
|
return function() {
|
|
2379
2390
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2380
2391
|
};
|
|
2381
2392
|
}
|
|
2382
|
-
var $i = pe, ji = bn, Mi = wn,
|
|
2393
|
+
var $i = pe, ji = bn, Mi = wn, Oi = Tn, Ei = $n, Bi = $t, Fi = Hn.load, Ki = Hn.loadAll, Ni = Ti.dump, Li = me, Pi = {
|
|
2383
2394
|
binary: Bn,
|
|
2384
2395
|
float: xn,
|
|
2385
2396
|
map: _n,
|
|
2386
2397
|
null: In,
|
|
2387
2398
|
pairs: Kn,
|
|
2388
2399
|
set: Nn,
|
|
2389
|
-
timestamp:
|
|
2400
|
+
timestamp: On,
|
|
2390
2401
|
bool: An,
|
|
2391
2402
|
int: Sn,
|
|
2392
|
-
merge:
|
|
2403
|
+
merge: En,
|
|
2393
2404
|
omap: Fn,
|
|
2394
2405
|
seq: kn,
|
|
2395
2406
|
str: Cn
|
|
2396
|
-
}, qi =
|
|
2407
|
+
}, qi = Et("safeLoad", "load"), Ui = Et("safeLoadAll", "loadAll"), Ri = Et("safeDump", "dump"), Vi = {
|
|
2397
2408
|
Type: $i,
|
|
2398
2409
|
Schema: ji,
|
|
2399
2410
|
FAILSAFE_SCHEMA: Mi,
|
|
2400
|
-
JSON_SCHEMA:
|
|
2401
|
-
CORE_SCHEMA:
|
|
2411
|
+
JSON_SCHEMA: Oi,
|
|
2412
|
+
CORE_SCHEMA: Ei,
|
|
2402
2413
|
DEFAULT_SCHEMA: Bi,
|
|
2403
2414
|
load: Fi,
|
|
2404
2415
|
loadAll: Ki,
|
|
@@ -2415,13 +2426,13 @@ const Di = {
|
|
|
2415
2426
|
}, Gi = ["data-testid"], Hi = {
|
|
2416
2427
|
key: 0,
|
|
2417
2428
|
class: "config-card-prop-section-title"
|
|
2418
|
-
},
|
|
2429
|
+
}, Ji = {
|
|
2419
2430
|
key: 1,
|
|
2420
2431
|
class: "config-card-display-json"
|
|
2421
2432
|
}, Yi = {
|
|
2422
2433
|
key: 2,
|
|
2423
2434
|
class: "config-card-display-yaml"
|
|
2424
|
-
},
|
|
2435
|
+
}, zi = /* @__PURE__ */ ie({
|
|
2425
2436
|
__name: "ConfigCardDisplay",
|
|
2426
2437
|
props: {
|
|
2427
2438
|
propertyCollections: {
|
|
@@ -2459,7 +2470,7 @@ const Di = {
|
|
|
2459
2470
|
class: Fe(`config-card-details-${d}-props`),
|
|
2460
2471
|
"data-testid": `config-card-details-${d}-props`
|
|
2461
2472
|
}, [
|
|
2462
|
-
d !== "basic" ? (f(), T("div", Hi,
|
|
2473
|
+
d !== "basic" ? (f(), T("div", Hi, E(d === "advanced" ? h(r)("baseConfigCard.sections.advanced") : h(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2463
2474
|
(f(!0), T(ve, null, ye(e.propertyCollections[d], (c) => (f(), R(xt, {
|
|
2464
2475
|
key: c.key,
|
|
2465
2476
|
item: c
|
|
@@ -2485,7 +2496,7 @@ const Di = {
|
|
|
2485
2496
|
]), 1032, ["item"]))), 128))
|
|
2486
2497
|
], 10, Gi))), 128))
|
|
2487
2498
|
])) : G("", !0),
|
|
2488
|
-
e.format === "json" ? (f(), T("div",
|
|
2499
|
+
e.format === "json" ? (f(), T("div", Ji, [
|
|
2489
2500
|
F(u, {
|
|
2490
2501
|
id: "config-card-codeblock",
|
|
2491
2502
|
code: a.value,
|
|
@@ -2504,7 +2515,7 @@ const Di = {
|
|
|
2504
2515
|
], 64);
|
|
2505
2516
|
};
|
|
2506
2517
|
}
|
|
2507
|
-
}), Wi = /* @__PURE__ */ ke(
|
|
2518
|
+
}), Wi = /* @__PURE__ */ ke(zi, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", Zi = (e, n) => {
|
|
2508
2519
|
const t = e.__vccOpts || e;
|
|
2509
2520
|
for (const [r, o] of n)
|
|
2510
2521
|
t[r] = o;
|
|
@@ -2584,7 +2595,7 @@ const Di = {
|
|
|
2584
2595
|
lineHeight: "0",
|
|
2585
2596
|
width: t.value
|
|
2586
2597
|
}));
|
|
2587
|
-
return (o, a) => (f(), R(
|
|
2598
|
+
return (o, a) => (f(), R(Je(e.as), {
|
|
2588
2599
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2589
2600
|
class: "kui-icon book-icon",
|
|
2590
2601
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -2601,7 +2612,7 @@ const Di = {
|
|
|
2601
2612
|
width: "100%",
|
|
2602
2613
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2603
2614
|
}, [
|
|
2604
|
-
e.title ? (f(), T("title", es,
|
|
2615
|
+
e.title ? (f(), T("title", es, E(e.title), 1)) : G("", !0),
|
|
2605
2616
|
ts
|
|
2606
2617
|
], 8, Xi))
|
|
2607
2618
|
]),
|
|
@@ -2748,17 +2759,17 @@ const Di = {
|
|
|
2748
2759
|
var I, V, U;
|
|
2749
2760
|
if (!p.value)
|
|
2750
2761
|
return [];
|
|
2751
|
-
const A = [],
|
|
2762
|
+
const A = [], O = Object.keys(p.value).length;
|
|
2752
2763
|
for (const j in p.value) {
|
|
2753
|
-
const K = (V = (I = r.configSchema) == null ? void 0 : I[j]) == null ? void 0 : V.order,
|
|
2754
|
-
let X =
|
|
2755
|
-
(
|
|
2764
|
+
const K = (V = (I = r.configSchema) == null ? void 0 : I[j]) == null ? void 0 : V.order, z = (U = m[j]) == null ? void 0 : U.order;
|
|
2765
|
+
let X = O;
|
|
2766
|
+
(z || z === 0) && (X = z === -1 ? O + 1 : z), K && (X = K === -1 ? O + 1 : K), A.push([j, X]);
|
|
2756
2767
|
}
|
|
2757
2768
|
return A.sort(function(j, K) {
|
|
2758
2769
|
return j[1] - K[1];
|
|
2759
2770
|
}), A.map((j) => {
|
|
2760
|
-
var K,
|
|
2761
|
-
const X = j[0], ee = (K = p.value) == null ? void 0 : K[X], te = ((
|
|
2771
|
+
var K, z;
|
|
2772
|
+
const X = j[0], ee = (K = p.value) == null ? void 0 : K[X], te = ((z = r.configSchema) == null ? void 0 : z[X]) || {}, se = m[X];
|
|
2762
2773
|
return {
|
|
2763
2774
|
key: X,
|
|
2764
2775
|
value: ee,
|
|
@@ -2773,23 +2784,23 @@ const Di = {
|
|
|
2773
2784
|
var I, V;
|
|
2774
2785
|
if (!p.value || !r.pluginConfigKey)
|
|
2775
2786
|
return [];
|
|
2776
|
-
const U = p.value[r.pluginConfigKey] || {}, A = Object.keys(U).length,
|
|
2787
|
+
const U = p.value[r.pluginConfigKey] || {}, A = Object.keys(U).length, O = [];
|
|
2777
2788
|
for (const j in U) {
|
|
2778
|
-
const K = (V = (I = r.pluginConfigSchema) == null ? void 0 : I[j]) == null ? void 0 : V.order,
|
|
2779
|
-
let X =
|
|
2780
|
-
K && (X = K === -1 ? A + 1 : K),
|
|
2789
|
+
const K = (V = (I = r.pluginConfigSchema) == null ? void 0 : I[j]) == null ? void 0 : V.order, z = U[j];
|
|
2790
|
+
let X = z != null && z !== "" ? A - 1 : A;
|
|
2791
|
+
K && (X = K === -1 ? A + 1 : K), O.push([j, X]);
|
|
2781
2792
|
}
|
|
2782
|
-
return
|
|
2793
|
+
return O.sort(function(j, K) {
|
|
2783
2794
|
return j[1] - K[1];
|
|
2784
|
-
}),
|
|
2795
|
+
}), O.map((j) => {
|
|
2785
2796
|
var K;
|
|
2786
|
-
const
|
|
2797
|
+
const z = j[0], X = U[z], ee = ((K = r.pluginConfigSchema) == null ? void 0 : K[z]) || {};
|
|
2787
2798
|
return {
|
|
2788
|
-
key:
|
|
2799
|
+
key: z,
|
|
2789
2800
|
value: X,
|
|
2790
2801
|
hidden: ee.hidden || !1,
|
|
2791
2802
|
type: ee.type ?? ne.Text,
|
|
2792
|
-
label: ee.label ?? s(
|
|
2803
|
+
label: ee.label ?? s(z),
|
|
2793
2804
|
tooltip: ee.tooltip ?? void 0,
|
|
2794
2805
|
section: be.Plugin
|
|
2795
2806
|
};
|
|
@@ -2797,9 +2808,9 @@ const Di = {
|
|
|
2797
2808
|
}), b = x(() => {
|
|
2798
2809
|
var I, V, U, A;
|
|
2799
2810
|
return {
|
|
2800
|
-
basic: (I = w.value) == null ? void 0 : I.filter((
|
|
2801
|
-
advanced: (V = w.value) == null ? void 0 : V.filter((
|
|
2802
|
-
plugin: (A = y.value) == null ? void 0 : A.concat((U = w.value) == null ? void 0 : U.filter((
|
|
2811
|
+
basic: (I = w.value) == null ? void 0 : I.filter((O) => O.section === be.Basic),
|
|
2812
|
+
advanced: (V = w.value) == null ? void 0 : V.filter((O) => O.section === be.Advanced),
|
|
2813
|
+
plugin: (A = y.value) == null ? void 0 : A.concat((U = w.value) == null ? void 0 : U.filter((O) => O.section === be.Plugin))
|
|
2803
2814
|
};
|
|
2804
2815
|
}), B = x(() => {
|
|
2805
2816
|
const I = [];
|
|
@@ -2808,7 +2819,7 @@ const Di = {
|
|
|
2808
2819
|
var I, V;
|
|
2809
2820
|
let U = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
2810
2821
|
return r.config.app === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (U = U.replace(/\/{workspace}/gi, (V = r.config) != null && V.workspace ? `/${r.config.workspace}` : "")), U = U.replace(/{id}/gi, r.config.entityId), U;
|
|
2811
|
-
}),
|
|
2822
|
+
}), J = (I) => {
|
|
2812
2823
|
p.value && I(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
|
|
2813
2824
|
};
|
|
2814
2825
|
return xe(g, (I) => {
|
|
@@ -2834,7 +2845,7 @@ const Di = {
|
|
|
2834
2845
|
g.value = !1;
|
|
2835
2846
|
}
|
|
2836
2847
|
}), (I, V) => {
|
|
2837
|
-
const U = L("KLabel"), A = L("KSelect"),
|
|
2848
|
+
const U = L("KLabel"), A = L("KSelect"), O = L("KButton"), j = L("KClipboardProvider"), K = L("KSkeleton"), z = L("KEmptyState"), X = L("KCard");
|
|
2838
2849
|
return f(), R(X, { class: "kong-ui-entity-base-config-card" }, Te({
|
|
2839
2850
|
actions: v(() => [
|
|
2840
2851
|
q("div", as, [
|
|
@@ -2845,7 +2856,7 @@ const Di = {
|
|
|
2845
2856
|
"data-testid": "config-format-select-label"
|
|
2846
2857
|
}, {
|
|
2847
2858
|
default: v(() => [
|
|
2848
|
-
Q(
|
|
2859
|
+
Q(E(e.label), 1)
|
|
2849
2860
|
]),
|
|
2850
2861
|
_: 1
|
|
2851
2862
|
})) : G("", !0),
|
|
@@ -2856,7 +2867,7 @@ const Di = {
|
|
|
2856
2867
|
items: u,
|
|
2857
2868
|
onChange: c
|
|
2858
2869
|
})) : G("", !0),
|
|
2859
|
-
r.config.jsonYamlEnabled && e.configCardDoc ? (f(), R(
|
|
2870
|
+
r.config.jsonYamlEnabled && e.configCardDoc ? (f(), R(O, {
|
|
2860
2871
|
key: 2,
|
|
2861
2872
|
appearance: "btn-link",
|
|
2862
2873
|
class: "book-icon",
|
|
@@ -2875,14 +2886,14 @@ const Di = {
|
|
|
2875
2886
|
})) : G("", !0),
|
|
2876
2887
|
e.config.jsonYamlEnabled ? G("", !0) : (f(), R(j, { key: 3 }, {
|
|
2877
2888
|
default: v(({ copyToClipboard: ee }) => [
|
|
2878
|
-
!g.value && !k.value ? (f(), R(
|
|
2889
|
+
!g.value && !k.value ? (f(), R(O, {
|
|
2879
2890
|
key: 0,
|
|
2880
2891
|
appearance: "btn-link",
|
|
2881
2892
|
"data-testid": "json-copy-button",
|
|
2882
|
-
onClick: (te) =>
|
|
2893
|
+
onClick: (te) => J(ee)
|
|
2883
2894
|
}, {
|
|
2884
2895
|
default: v(() => [
|
|
2885
|
-
Q(
|
|
2896
|
+
Q(E(h(a)("baseConfigCard.actions.copy")), 1)
|
|
2886
2897
|
]),
|
|
2887
2898
|
_: 2
|
|
2888
2899
|
}, 1032, ["onClick"])) : G("", !0)
|
|
@@ -2897,13 +2908,13 @@ const Di = {
|
|
|
2897
2908
|
"data-testid": "config-card-loader",
|
|
2898
2909
|
"table-columns": 2,
|
|
2899
2910
|
type: "table"
|
|
2900
|
-
})) : k.value ? (f(), R(
|
|
2911
|
+
})) : k.value ? (f(), R(z, {
|
|
2901
2912
|
key: 1,
|
|
2902
2913
|
"data-testid": "config-card-fetch-error",
|
|
2903
2914
|
"is-error": ""
|
|
2904
2915
|
}, {
|
|
2905
2916
|
message: v(() => [
|
|
2906
|
-
q("h3", null,
|
|
2917
|
+
q("h3", null, E(_.value), 1)
|
|
2907
2918
|
]),
|
|
2908
2919
|
_: 1
|
|
2909
2920
|
})) : G("", !0),
|
|
@@ -2930,7 +2941,7 @@ const Di = {
|
|
|
2930
2941
|
class: Fe(`config-card-details-${ee}-props`),
|
|
2931
2942
|
"data-testid": `config-card-details-${ee}-props`
|
|
2932
2943
|
}, [
|
|
2933
|
-
ee !== "basic" ? (f(), T("div", cs,
|
|
2944
|
+
ee !== "basic" ? (f(), T("div", cs, E(ee === "advanced" ? h(a)("baseConfigCard.sections.advanced") : h(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2934
2945
|
(f(!0), T(ve, null, ye(b.value[ee], (te) => (f(), R(xt, {
|
|
2935
2946
|
key: te.key,
|
|
2936
2947
|
item: te
|
|
@@ -2964,7 +2975,7 @@ const Di = {
|
|
|
2964
2975
|
fn: v(() => [
|
|
2965
2976
|
q("div", os, [
|
|
2966
2977
|
Z(I.$slots, "title", {}, () => [
|
|
2967
|
-
Q(
|
|
2978
|
+
Q(E(h(a)("baseConfigCard.title")), 1)
|
|
2968
2979
|
], !0)
|
|
2969
2980
|
])
|
|
2970
2981
|
]),
|
|
@@ -3070,7 +3081,7 @@ const Di = {
|
|
|
3070
3081
|
"is-error": !0
|
|
3071
3082
|
}, {
|
|
3072
3083
|
message: v(() => [
|
|
3073
|
-
q("h3", null,
|
|
3084
|
+
q("h3", null, E(d.value), 1)
|
|
3074
3085
|
]),
|
|
3075
3086
|
_: 1
|
|
3076
3087
|
}, 8, ["cta-text"])) : (f(), T("form", {
|
|
@@ -3095,7 +3106,7 @@ const Di = {
|
|
|
3095
3106
|
type: "reset"
|
|
3096
3107
|
}, {
|
|
3097
3108
|
default: v(() => [
|
|
3098
|
-
Q(
|
|
3109
|
+
Q(E(h(a)("baseForm.actions.cancel")), 1)
|
|
3099
3110
|
]),
|
|
3100
3111
|
_: 1
|
|
3101
3112
|
}, 8, ["disabled"]),
|
|
@@ -3106,7 +3117,7 @@ const Di = {
|
|
|
3106
3117
|
type: "submit"
|
|
3107
3118
|
}, {
|
|
3108
3119
|
default: v(() => [
|
|
3109
|
-
Q(
|
|
3120
|
+
Q(E(h(a)("baseForm.actions.save")), 1)
|
|
3110
3121
|
]),
|
|
3111
3122
|
_: 1
|
|
3112
3123
|
}, 8, ["disabled"])
|
|
@@ -3350,7 +3361,7 @@ const Di = {
|
|
|
3350
3361
|
t.preferencesStorageKey && _(t.preferencesStorageKey, b);
|
|
3351
3362
|
};
|
|
3352
3363
|
return (b, B) => {
|
|
3353
|
-
const H = L("KIcon"), re = L("KButton"),
|
|
3364
|
+
const H = L("KIcon"), re = L("KButton"), J = L("KDropdownMenu"), I = L("KTable"), V = L("KCard");
|
|
3354
3365
|
return f(), R(V, {
|
|
3355
3366
|
class: "kong-ui-entity-base-table",
|
|
3356
3367
|
title: e.title
|
|
@@ -3397,12 +3408,12 @@ const Di = {
|
|
|
3397
3408
|
[tt, a(U)]
|
|
3398
3409
|
])
|
|
3399
3410
|
]),
|
|
3400
|
-
actions: v(({ row: U, rowKey: A, rowValue:
|
|
3411
|
+
actions: v(({ row: U, rowKey: A, rowValue: O }) => [
|
|
3401
3412
|
q("div", {
|
|
3402
3413
|
class: "actions-container",
|
|
3403
3414
|
"data-testid": U.name
|
|
3404
3415
|
}, [
|
|
3405
|
-
F(
|
|
3416
|
+
F(J, {
|
|
3406
3417
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3407
3418
|
width: e.dropdownMenuWidth
|
|
3408
3419
|
}, {
|
|
@@ -3410,7 +3421,7 @@ const Di = {
|
|
|
3410
3421
|
Z(b.$slots, "actions", {
|
|
3411
3422
|
row: U,
|
|
3412
3423
|
rowKey: A,
|
|
3413
|
-
rowValue:
|
|
3424
|
+
rowValue: O
|
|
3414
3425
|
}, void 0, !0)
|
|
3415
3426
|
]),
|
|
3416
3427
|
default: v(() => [
|
|
@@ -3437,18 +3448,18 @@ const Di = {
|
|
|
3437
3448
|
}, [
|
|
3438
3449
|
ye(e.tableHeaders, (U, A) => ({
|
|
3439
3450
|
name: A,
|
|
3440
|
-
fn: v(({ row:
|
|
3451
|
+
fn: v(({ row: O, rowKey: j, rowValue: K }) => [
|
|
3441
3452
|
F(bs, {
|
|
3442
3453
|
"key-name": String(A),
|
|
3443
|
-
"row-el": u(
|
|
3454
|
+
"row-el": u(O)
|
|
3444
3455
|
}, {
|
|
3445
3456
|
default: v(() => [
|
|
3446
3457
|
Z(b.$slots, A, {
|
|
3447
|
-
row:
|
|
3458
|
+
row: O,
|
|
3448
3459
|
rowKey: j,
|
|
3449
3460
|
rowValue: K
|
|
3450
3461
|
}, () => [
|
|
3451
|
-
Q(
|
|
3462
|
+
Q(E(K), 1)
|
|
3452
3463
|
], !0)
|
|
3453
3464
|
]),
|
|
3454
3465
|
_: 2
|
|
@@ -3528,7 +3539,7 @@ const Di = {
|
|
|
3528
3539
|
e.error ? (f(), T("div", As, [
|
|
3529
3540
|
F(u, { appearance: "danger" }, {
|
|
3530
3541
|
alertMessage: v(() => [
|
|
3531
|
-
Q(
|
|
3542
|
+
Q(E(e.error), 1)
|
|
3532
3543
|
]),
|
|
3533
3544
|
_: 1
|
|
3534
3545
|
})
|
|
@@ -3539,21 +3550,21 @@ const Di = {
|
|
|
3539
3550
|
tag: "p"
|
|
3540
3551
|
}, Te({
|
|
3541
3552
|
entityType: v(() => [
|
|
3542
|
-
Q(
|
|
3553
|
+
Q(E(t.entityType), 1)
|
|
3543
3554
|
]),
|
|
3544
3555
|
_: 2
|
|
3545
3556
|
}, [
|
|
3546
3557
|
t.entityName ? {
|
|
3547
3558
|
name: "entityName",
|
|
3548
3559
|
fn: v(() => [
|
|
3549
|
-
q("strong", null,
|
|
3560
|
+
q("strong", null, E(t.entityName), 1)
|
|
3550
3561
|
]),
|
|
3551
3562
|
key: "0"
|
|
3552
3563
|
} : void 0
|
|
3553
3564
|
]), 1032, ["keypath"]),
|
|
3554
3565
|
t.description || s.$slots.description ? (f(), T("div", Ss, [
|
|
3555
3566
|
Z(s.$slots, "description", {}, () => [
|
|
3556
|
-
q("p", null,
|
|
3567
|
+
q("p", null, E(t.description), 1)
|
|
3557
3568
|
], !0)
|
|
3558
3569
|
])) : G("", !0)
|
|
3559
3570
|
]),
|
|
@@ -3575,7 +3586,7 @@ const Di = {
|
|
|
3575
3586
|
width: "20",
|
|
3576
3587
|
x: "0",
|
|
3577
3588
|
y: "0"
|
|
3578
|
-
}, Ms = ["fill"],
|
|
3589
|
+
}, Ms = ["fill"], Os = { mask: "url(#mask0_180_20349)" }, Es = ["fill"], Bs = /* @__PURE__ */ ie({
|
|
3579
3590
|
__name: "IconFilter",
|
|
3580
3591
|
props: {
|
|
3581
3592
|
color: {
|
|
@@ -3592,11 +3603,11 @@ const Di = {
|
|
|
3592
3603
|
width: "20"
|
|
3593
3604
|
}, null, 8, Ms)
|
|
3594
3605
|
]),
|
|
3595
|
-
q("g",
|
|
3606
|
+
q("g", Os, [
|
|
3596
3607
|
q("path", {
|
|
3597
3608
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3598
3609
|
fill: e.color
|
|
3599
|
-
}, null, 8,
|
|
3610
|
+
}, null, 8, Es)
|
|
3600
3611
|
])
|
|
3601
3612
|
]));
|
|
3602
3613
|
}
|
|
@@ -3687,7 +3698,7 @@ const Di = {
|
|
|
3687
3698
|
onClick: l
|
|
3688
3699
|
}, {
|
|
3689
3700
|
default: v(() => [
|
|
3690
|
-
Q(
|
|
3701
|
+
Q(E(h(r)("filter.filterButtonText")) + " " + E(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
|
|
3691
3702
|
]),
|
|
3692
3703
|
_: 1
|
|
3693
3704
|
}),
|
|
@@ -3699,17 +3710,17 @@ const Di = {
|
|
|
3699
3710
|
]),
|
|
3700
3711
|
et(F(re, { class: "kong-ui-entity-filter-menu" }, {
|
|
3701
3712
|
body: v(() => [
|
|
3702
|
-
(f(!0), T(ve, null, ye(s.value, (
|
|
3703
|
-
key:
|
|
3704
|
-
"data-testid":
|
|
3713
|
+
(f(!0), T(ve, null, ye(s.value, (J, I) => (f(), R(H, {
|
|
3714
|
+
key: J.value,
|
|
3715
|
+
"data-testid": J.value,
|
|
3705
3716
|
expandable: "",
|
|
3706
3717
|
"last-menu-item": I === s.value.length - 1
|
|
3707
3718
|
}, {
|
|
3708
3719
|
itemTitle: v(() => [
|
|
3709
3720
|
q("span", Ks, [
|
|
3710
|
-
Q(
|
|
3721
|
+
Q(E(J.label) + " ", 1),
|
|
3711
3722
|
et(q("span", Ns, null, 512), [
|
|
3712
|
-
[tt, i.value.includes(
|
|
3723
|
+
[tt, i.value.includes(J.value)]
|
|
3713
3724
|
])
|
|
3714
3725
|
])
|
|
3715
3726
|
]),
|
|
@@ -3719,25 +3730,25 @@ const Di = {
|
|
|
3719
3730
|
q("div", Ls, [
|
|
3720
3731
|
q("label", {
|
|
3721
3732
|
class: "menu-item-label",
|
|
3722
|
-
for: d(
|
|
3723
|
-
},
|
|
3724
|
-
((U = (V = e.config.schema) == null ? void 0 : V[
|
|
3733
|
+
for: d(J.value)
|
|
3734
|
+
}, E(h(r)("filter.fieldLabel")), 9, Ps),
|
|
3735
|
+
((U = (V = e.config.schema) == null ? void 0 : V[J.value]) == null ? void 0 : U.type) === "select" ? (f(), R(B, {
|
|
3725
3736
|
key: 0,
|
|
3726
|
-
id: d(
|
|
3727
|
-
modelValue: a.value[
|
|
3728
|
-
"onUpdate:modelValue": (A) => a.value[
|
|
3737
|
+
id: d(J.value),
|
|
3738
|
+
modelValue: a.value[J.value],
|
|
3739
|
+
"onUpdate:modelValue": (A) => a.value[J.value] = A,
|
|
3729
3740
|
appearance: "select",
|
|
3730
|
-
items: c(
|
|
3741
|
+
items: c(J.value),
|
|
3731
3742
|
placeholder: h(r)("filter.selectPlaceholder")
|
|
3732
3743
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(), R(y, {
|
|
3733
3744
|
key: 1,
|
|
3734
|
-
id: d(
|
|
3735
|
-
modelValue: a.value[
|
|
3736
|
-
"onUpdate:modelValue": (A) => a.value[
|
|
3745
|
+
id: d(J.value),
|
|
3746
|
+
modelValue: a.value[J.value],
|
|
3747
|
+
"onUpdate:modelValue": (A) => a.value[J.value] = A,
|
|
3737
3748
|
autocomplete: "off",
|
|
3738
3749
|
placeholder: h(r)("filter.inputPlaceholder"),
|
|
3739
3750
|
size: "small",
|
|
3740
|
-
type: m(
|
|
3751
|
+
type: m(J.value)
|
|
3741
3752
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3742
3753
|
]),
|
|
3743
3754
|
q("div", qs, [
|
|
@@ -3748,7 +3759,7 @@ const Di = {
|
|
|
3748
3759
|
onClick: w[0] || (w[0] = (A) => _(!0))
|
|
3749
3760
|
}, {
|
|
3750
3761
|
default: v(() => [
|
|
3751
|
-
Q(
|
|
3762
|
+
Q(E(h(r)("filter.applyButtonText")), 1)
|
|
3752
3763
|
]),
|
|
3753
3764
|
_: 1
|
|
3754
3765
|
}),
|
|
@@ -3756,10 +3767,10 @@ const Di = {
|
|
|
3756
3767
|
appearance: "btn-link",
|
|
3757
3768
|
"data-testid": "clear-filter",
|
|
3758
3769
|
size: "small",
|
|
3759
|
-
onClick: (A) => g(
|
|
3770
|
+
onClick: (A) => g(J.value)
|
|
3760
3771
|
}, {
|
|
3761
3772
|
default: v(() => [
|
|
3762
|
-
Q(
|
|
3773
|
+
Q(E(h(r)("filter.clearButtonText")), 1)
|
|
3763
3774
|
]),
|
|
3764
3775
|
_: 2
|
|
3765
3776
|
}, 1032, ["onClick"])
|
|
@@ -3772,7 +3783,7 @@ const Di = {
|
|
|
3772
3783
|
actionButton: v(() => [
|
|
3773
3784
|
F(b, { onClick: k }, {
|
|
3774
3785
|
default: v(() => [
|
|
3775
|
-
Q(
|
|
3786
|
+
Q(E(h(r)("filter.clearAllButtonText")), 1)
|
|
3776
3787
|
]),
|
|
3777
3788
|
_: 1
|
|
3778
3789
|
})
|
|
@@ -3823,7 +3834,7 @@ const Di = {
|
|
|
3823
3834
|
}, Hs = {
|
|
3824
3835
|
key: 2,
|
|
3825
3836
|
class: "form-section-footer"
|
|
3826
|
-
},
|
|
3837
|
+
}, Js = { class: "form-section-content" }, Ys = /* @__PURE__ */ ie({
|
|
3827
3838
|
__name: "EntityFormSection",
|
|
3828
3839
|
props: {
|
|
3829
3840
|
title: {
|
|
@@ -3857,23 +3868,23 @@ const Di = {
|
|
|
3857
3868
|
key: 0,
|
|
3858
3869
|
class: Fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3859
3870
|
}, [
|
|
3860
|
-
e.title ? (f(), T("h4", Ds,
|
|
3871
|
+
e.title ? (f(), T("h4", Ds, E(e.title), 1)) : G("", !0),
|
|
3861
3872
|
e.description || h(n).description ? (f(), T("div", Gs, [
|
|
3862
3873
|
Z(t.$slots, "description", {}, () => [
|
|
3863
|
-
q("p", null,
|
|
3874
|
+
q("p", null, E(e.description), 1)
|
|
3864
3875
|
], !0)
|
|
3865
3876
|
])) : G("", !0),
|
|
3866
3877
|
h(n).footer ? (f(), T("div", Hs, [
|
|
3867
3878
|
Z(t.$slots, "footer", {}, void 0, !0)
|
|
3868
3879
|
])) : G("", !0)
|
|
3869
3880
|
], 2)),
|
|
3870
|
-
q("div",
|
|
3881
|
+
q("div", Js, [
|
|
3871
3882
|
Z(t.$slots, "default", {}, void 0, !0)
|
|
3872
3883
|
])
|
|
3873
3884
|
])
|
|
3874
3885
|
], 2));
|
|
3875
3886
|
}
|
|
3876
|
-
}), un = /* @__PURE__ */ ke(Ys, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Bt, useDeleteUrlBuilder:
|
|
3887
|
+
}), un = /* @__PURE__ */ ke(Ys, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Bt, useDeleteUrlBuilder: zs, useErrors: Ws, useFetchUrlBuilder: hl, useFetcher: Zs, useDebouncedFilter: or, useStringHelpers: vl, useHelpers: bl, useGatewayFeatureSupported: Cl, useTruncationDetector: kl } = ce;
|
|
3877
3888
|
const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group-cta-text" }, el = {
|
|
3878
3889
|
key: 0,
|
|
3879
3890
|
class: "kong-ui-entity-add-to-groups-error"
|
|
@@ -3920,8 +3931,8 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3920
3931
|
// we need this to determine whether or not to show the description text
|
|
3921
3932
|
}))), p = (A) => {
|
|
3922
3933
|
var j;
|
|
3923
|
-
const
|
|
3924
|
-
return
|
|
3934
|
+
const O = k.value ? c.value.find((K) => K.id === A) : (j = l.value) == null ? void 0 : j.find((K) => K.id === A);
|
|
3935
|
+
return O ? O.name : A;
|
|
3925
3936
|
}, w = () => {
|
|
3926
3937
|
B.value = "", y.value = [], I.value = [], n("cancel");
|
|
3927
3938
|
}, y = M([]), b = M(!1), B = M(""), H = async () => {
|
|
@@ -3931,44 +3942,44 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3931
3942
|
}
|
|
3932
3943
|
b.value = !0, B.value = "", y.value = [], I.value = [];
|
|
3933
3944
|
try {
|
|
3934
|
-
const A = a.value.map((K) =>
|
|
3945
|
+
const A = a.value.map((K) => J(K)), O = await Promise.allSettled(A);
|
|
3935
3946
|
let j = !0;
|
|
3936
|
-
|
|
3947
|
+
O.forEach((K) => {
|
|
3937
3948
|
K.status !== "fulfilled" && (j = !1);
|
|
3938
|
-
}), j ? (y.value = [], I.value = [], n("add:success", a.value), a.value = []) : (y.value.length && n("add:partial-success", y.value), a.value = [], V(
|
|
3949
|
+
}), j ? (y.value = [], I.value = [], n("add:success", a.value), a.value = []) : (y.value.length && n("add:partial-success", y.value), a.value = [], V(O));
|
|
3939
3950
|
} catch {
|
|
3940
3951
|
B.value = r("consumer_groups.errors.add"), n("error", B.value);
|
|
3941
3952
|
} finally {
|
|
3942
3953
|
b.value = !1;
|
|
3943
3954
|
}
|
|
3944
3955
|
}, re = x(() => {
|
|
3945
|
-
var
|
|
3956
|
+
var O, j, K, z;
|
|
3946
3957
|
let A = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
|
|
3947
|
-
return t.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((
|
|
3948
|
-
}),
|
|
3949
|
-
const
|
|
3958
|
+
return t.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((O = t.config) == null ? void 0 : O.controlPlaneId) || "").replace(/{consumerId}/gi, ((j = t.config) == null ? void 0 : j.consumerId) || "") : t.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (K = t.config) != null && K.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((z = t.config) == null ? void 0 : z.consumerId) || "")), A;
|
|
3959
|
+
}), J = async (A) => {
|
|
3960
|
+
const O = {
|
|
3950
3961
|
group: A
|
|
3951
3962
|
};
|
|
3952
3963
|
try {
|
|
3953
|
-
const j = await o.post(re.value,
|
|
3964
|
+
const j = await o.post(re.value, O);
|
|
3954
3965
|
return y.value.push(A), j;
|
|
3955
3966
|
} catch (j) {
|
|
3956
3967
|
let K = `${p(A)} - ${j.message}`;
|
|
3957
3968
|
return j.response.status === 409 && (K = `${p(A)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(K));
|
|
3958
3969
|
}
|
|
3959
3970
|
}, I = M([]), V = (A) => {
|
|
3960
|
-
I.value = A.map((
|
|
3971
|
+
I.value = A.map((O) => {
|
|
3961
3972
|
var j;
|
|
3962
|
-
return (j =
|
|
3973
|
+
return (j = O.reason) == null ? void 0 : j.message;
|
|
3963
3974
|
}).filter(Boolean);
|
|
3964
3975
|
};
|
|
3965
3976
|
return xe(_, () => {
|
|
3966
3977
|
g.value++;
|
|
3967
3978
|
}, { immediate: !0, deep: !0 }), Qe(async () => {
|
|
3968
3979
|
await d();
|
|
3969
|
-
}), (A,
|
|
3970
|
-
const j = L("KMultiselect"), K = L("KAlert"),
|
|
3971
|
-
return f(), R(
|
|
3980
|
+
}), (A, O) => {
|
|
3981
|
+
const j = L("KMultiselect"), K = L("KAlert"), z = L("KPrompt");
|
|
3982
|
+
return f(), R(z, {
|
|
3972
3983
|
"action-pending": b.value,
|
|
3973
3984
|
class: "kong-ui-entities-add-to-groups-modal",
|
|
3974
3985
|
"data-testid": "add-to-group-modal",
|
|
@@ -3979,10 +3990,10 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3979
3990
|
}, {
|
|
3980
3991
|
"body-content": v(() => [
|
|
3981
3992
|
q("div", Qs, [
|
|
3982
|
-
q("p", Xs,
|
|
3993
|
+
q("p", Xs, E(h(r)("consumer_groups.consumers.add.ctaText")), 1),
|
|
3983
3994
|
F(j, {
|
|
3984
3995
|
modelValue: a.value,
|
|
3985
|
-
"onUpdate:modelValue":
|
|
3996
|
+
"onUpdate:modelValue": O[0] || (O[0] = (X) => a.value = X),
|
|
3986
3997
|
autosuggest: "",
|
|
3987
3998
|
"data-testid": "add-to-groups-multiselect",
|
|
3988
3999
|
"dropdown-footer-text": k.value ? h(r)("consumer_groups.consumers.add.footer") : void 0,
|
|
@@ -3998,11 +4009,11 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3998
4009
|
B.value || m.value || I.value.length ? (f(), T("div", el, [
|
|
3999
4010
|
F(K, { appearance: "danger" }, {
|
|
4000
4011
|
alertMessage: v(() => [
|
|
4001
|
-
q("p", null,
|
|
4012
|
+
q("p", null, E(h(r)("consumer_groups.errors.add")), 1),
|
|
4002
4013
|
I.value.length ? (f(), T("ul", tl, [
|
|
4003
|
-
(f(!0), T(ve, null, ye(I.value, (X, ee) => (f(), T("li", { key: ee },
|
|
4014
|
+
(f(!0), T(ve, null, ye(I.value, (X, ee) => (f(), T("li", { key: ee }, E(X), 1))), 128))
|
|
4004
4015
|
])) : G("", !0),
|
|
4005
|
-
q("div", null,
|
|
4016
|
+
q("div", null, E(B.value || m.value), 1)
|
|
4006
4017
|
]),
|
|
4007
4018
|
_: 1
|
|
4008
4019
|
})
|
|
@@ -4070,9 +4081,9 @@ const Ft = (e, n) => {
|
|
|
4070
4081
|
const c = d, m = ($) => ({
|
|
4071
4082
|
"data-testid": $.username ?? $.custom_id ?? $.id
|
|
4072
4083
|
}), g = x(() => {
|
|
4073
|
-
var Y, ue, Ce,
|
|
4084
|
+
var Y, ue, Ce, Oe;
|
|
4074
4085
|
let $ = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
|
|
4075
|
-
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, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((
|
|
4086
|
+
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, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Oe = t.config) == null ? void 0 : Oe.consumerId) || "")), $;
|
|
4076
4087
|
}), k = M(""), _ = x(() => {
|
|
4077
4088
|
const $ = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4078
4089
|
return $ ? {
|
|
@@ -4108,7 +4119,7 @@ const Ft = (e, n) => {
|
|
|
4108
4119
|
field: "id",
|
|
4109
4120
|
message: o("consumer_groups.copy.success", { val: ue })
|
|
4110
4121
|
});
|
|
4111
|
-
},
|
|
4122
|
+
}, J = ($, Y) => {
|
|
4112
4123
|
const ue = JSON.stringify($);
|
|
4113
4124
|
if (!Y(ue)) {
|
|
4114
4125
|
n("copy:error", {
|
|
@@ -4130,16 +4141,16 @@ const Ft = (e, n) => {
|
|
|
4130
4141
|
}), U = ($) => ({
|
|
4131
4142
|
label: o("consumer_groups.actions.edit"),
|
|
4132
4143
|
to: t.config.getEditRoute($)
|
|
4133
|
-
}), A = M(void 0),
|
|
4134
|
-
A.value = $,
|
|
4144
|
+
}), A = M(void 0), O = M(!1), j = M(!1), K = M(""), z = zs(t.config, g.value), X = ($) => {
|
|
4145
|
+
A.value = $, O.value = !0;
|
|
4135
4146
|
}, ee = () => {
|
|
4136
|
-
|
|
4147
|
+
O.value = !1;
|
|
4137
4148
|
}, te = async () => {
|
|
4138
4149
|
var $, Y, ue;
|
|
4139
4150
|
if (($ = A.value) != null && $.id) {
|
|
4140
4151
|
j.value = !0;
|
|
4141
4152
|
try {
|
|
4142
|
-
await i.delete(
|
|
4153
|
+
await i.delete(z(A.value.id)), j.value = !1, O.value = !1, s.value++, n("delete:success", A.value);
|
|
4143
4154
|
} catch (Ce) {
|
|
4144
4155
|
K.value = ((ue = (Y = Ce.response) == null ? void 0 : Y.data) == null ? void 0 : ue.message) || Ce.message || o("consumer_groups.errors.delete"), n("error", Ce);
|
|
4145
4156
|
} finally {
|
|
@@ -4159,9 +4170,9 @@ const Ft = (e, n) => {
|
|
|
4159
4170
|
}, de = () => {
|
|
4160
4171
|
D.value = !1, P.value = void 0;
|
|
4161
4172
|
}, Ke = x(() => {
|
|
4162
|
-
var Y, ue, Ce,
|
|
4173
|
+
var Y, ue, Ce, Oe;
|
|
4163
4174
|
let $ = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
|
|
4164
|
-
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, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((
|
|
4175
|
+
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, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Oe = t.config) == null ? void 0 : Oe.consumerId) || "")), $;
|
|
4165
4176
|
}), De = M(!1), ar = async () => {
|
|
4166
4177
|
if (P.value) {
|
|
4167
4178
|
De.value = !0;
|
|
@@ -4176,7 +4187,7 @@ const Ft = (e, n) => {
|
|
|
4176
4187
|
}
|
|
4177
4188
|
};
|
|
4178
4189
|
xe(y, ($) => {
|
|
4179
|
-
if ($.status ===
|
|
4190
|
+
if ($.status === Ee.Error) {
|
|
4180
4191
|
H.value = o("consumer_groups.errors.general"), n("error", $.error);
|
|
4181
4192
|
return;
|
|
4182
4193
|
}
|
|
@@ -4191,7 +4202,7 @@ const Ft = (e, n) => {
|
|
|
4191
4202
|
return Qe(async () => {
|
|
4192
4203
|
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"));
|
|
4193
4204
|
}), ($, Y) => {
|
|
4194
|
-
const ue = L("KButton"), Ce = L("KBadge"),
|
|
4205
|
+
const ue = L("KButton"), Ce = L("KBadge"), Oe = L("KTruncate"), Ge = L("KDropdownItem"), Nt = L("KClipboardProvider"), ir = L("KPrompt");
|
|
4195
4206
|
return f(), T("div", ol, [
|
|
4196
4207
|
F(h(Is), {
|
|
4197
4208
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -4234,7 +4245,7 @@ const Ft = (e, n) => {
|
|
|
4234
4245
|
onClick: Y[1] || (Y[1] = () => e.config.consumerId ? Ve() : void 0)
|
|
4235
4246
|
}, {
|
|
4236
4247
|
default: v(() => [
|
|
4237
|
-
Q(
|
|
4248
|
+
Q(E(e.config.consumerId ? h(o)("consumer_groups.actions.add_to_group") : h(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
|
|
4238
4249
|
]),
|
|
4239
4250
|
_: 1
|
|
4240
4251
|
}, 8, ["to"])
|
|
@@ -4243,13 +4254,13 @@ const Ft = (e, n) => {
|
|
|
4243
4254
|
}, 8, ["auth-function"])
|
|
4244
4255
|
]),
|
|
4245
4256
|
name: v(({ rowValue: W }) => [
|
|
4246
|
-
q("b", null,
|
|
4257
|
+
q("b", null, E(W ?? "-"), 1)
|
|
4247
4258
|
]),
|
|
4248
4259
|
consumers_count: v(({ rowValue: W }) => [
|
|
4249
|
-
Q(
|
|
4260
|
+
Q(E(W ?? "-"), 1)
|
|
4250
4261
|
]),
|
|
4251
4262
|
tags: v(({ rowValue: W }) => [
|
|
4252
|
-
(W == null ? void 0 : W.length) > 0 ? (f(), R(
|
|
4263
|
+
(W == null ? void 0 : W.length) > 0 ? (f(), R(Oe, { key: 0 }, {
|
|
4253
4264
|
default: v(() => [
|
|
4254
4265
|
(f(!0), T(ve, null, ye(W, (Ne) => (f(), R(Ce, {
|
|
4255
4266
|
key: Ne,
|
|
@@ -4257,7 +4268,7 @@ const Ft = (e, n) => {
|
|
|
4257
4268
|
}, ["stop"]))
|
|
4258
4269
|
}, {
|
|
4259
4270
|
default: v(() => [
|
|
4260
|
-
Q(
|
|
4271
|
+
Q(E(Ne), 1)
|
|
4261
4272
|
]),
|
|
4262
4273
|
_: 2
|
|
4263
4274
|
}, 1024))), 128))
|
|
@@ -4273,7 +4284,7 @@ const Ft = (e, n) => {
|
|
|
4273
4284
|
onClick: (sr) => re(W, Ne)
|
|
4274
4285
|
}, {
|
|
4275
4286
|
default: v(() => [
|
|
4276
|
-
Q(
|
|
4287
|
+
Q(E(h(o)("consumer_groups.actions.copy_id")), 1)
|
|
4277
4288
|
]),
|
|
4278
4289
|
_: 2
|
|
4279
4290
|
}, 1032, ["onClick"])
|
|
@@ -4284,10 +4295,10 @@ const Ft = (e, n) => {
|
|
|
4284
4295
|
default: v(({ copyToClipboard: Ne }) => [
|
|
4285
4296
|
F(Ge, {
|
|
4286
4297
|
"data-testid": "action-entity-copy-json",
|
|
4287
|
-
onClick: (sr) =>
|
|
4298
|
+
onClick: (sr) => J(W, Ne)
|
|
4288
4299
|
}, {
|
|
4289
4300
|
default: v(() => [
|
|
4290
|
-
Q(
|
|
4301
|
+
Q(E(h(o)("consumer_groups.actions.copy_json")), 1)
|
|
4291
4302
|
]),
|
|
4292
4303
|
_: 2
|
|
4293
4304
|
}, 1032, ["onClick"])
|
|
@@ -4328,7 +4339,7 @@ const Ft = (e, n) => {
|
|
|
4328
4339
|
onClick: () => e.config.consumerId ? _e(W) : X(W)
|
|
4329
4340
|
}, {
|
|
4330
4341
|
default: v(() => [
|
|
4331
|
-
Q(
|
|
4342
|
+
Q(E(e.config.consumerId ? h(o)("consumer_groups.actions.exit") : h(o)("consumer_groups.actions.delete")), 1)
|
|
4332
4343
|
]),
|
|
4333
4344
|
_: 2
|
|
4334
4345
|
}, 1032, ["onClick"])
|
|
@@ -4346,7 +4357,7 @@ const Ft = (e, n) => {
|
|
|
4346
4357
|
"entity-type": h(dn).ConsumerGroup,
|
|
4347
4358
|
error: K.value,
|
|
4348
4359
|
title: h(o)("consumer_groups.delete.title"),
|
|
4349
|
-
visible:
|
|
4360
|
+
visible: O.value,
|
|
4350
4361
|
onCancel: ee,
|
|
4351
4362
|
onProceed: te
|
|
4352
4363
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
@@ -4375,19 +4386,19 @@ const Ft = (e, n) => {
|
|
|
4375
4386
|
tag: "p"
|
|
4376
4387
|
}, Te({
|
|
4377
4388
|
consumerGroup: v(() => [
|
|
4378
|
-
q("strong", null,
|
|
4389
|
+
q("strong", null, E(P.value.name || P.value.id), 1)
|
|
4379
4390
|
]),
|
|
4380
4391
|
_: 2
|
|
4381
4392
|
}, [
|
|
4382
4393
|
e.config.consumerUsername ? {
|
|
4383
4394
|
name: "consumer",
|
|
4384
4395
|
fn: v(() => [
|
|
4385
|
-
q("strong", null,
|
|
4396
|
+
q("strong", null, E(e.config.consumerUsername), 1)
|
|
4386
4397
|
]),
|
|
4387
4398
|
key: "0"
|
|
4388
4399
|
} : void 0
|
|
4389
4400
|
]), 1032, ["keypath"]),
|
|
4390
|
-
q("p", null,
|
|
4401
|
+
q("p", null, E(h(o)("consumer_groups.consumers.exit.description")), 1)
|
|
4391
4402
|
]),
|
|
4392
4403
|
_: 1
|
|
4393
4404
|
}, 8, ["is-visible", "title"])) : G("", !0)
|
|
@@ -4460,7 +4471,7 @@ const _l = /* @__PURE__ */ Ft(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4460
4471
|
n("error", C);
|
|
4461
4472
|
}, re = (C) => {
|
|
4462
4473
|
n("loading", C);
|
|
4463
|
-
},
|
|
4474
|
+
}, J = async (C) => {
|
|
4464
4475
|
var oe, P, D, ge, _e;
|
|
4465
4476
|
a.fields.name = ((oe = C == null ? void 0 : C.item) == null ? void 0 : oe.name) || ((P = C == null ? void 0 : C.consumer_group) == null ? void 0 : P.name) || (C == null ? void 0 : C.name) || "";
|
|
4466
4477
|
const N = ((D = C == null ? void 0 : C.item) == null ? void 0 : D.tags) || (C == null ? void 0 : C.consumer_group.tags) || (C == null ? void 0 : C.tags) || [];
|
|
@@ -4471,7 +4482,7 @@ const _l = /* @__PURE__ */ Ft(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4471
4482
|
const { data: de } = await m.get(b("getConsumers"));
|
|
4472
4483
|
a.fields.consumers = "consumers" in de ? (_e = de == null ? void 0 : de.consumers) == null ? void 0 : _e.map((Ke) => Ke.id) : [];
|
|
4473
4484
|
} catch (de) {
|
|
4474
|
-
|
|
4485
|
+
O(de);
|
|
4475
4486
|
}
|
|
4476
4487
|
Object.assign(i, a.fields);
|
|
4477
4488
|
}, I = x(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), V = () => {
|
|
@@ -4480,30 +4491,30 @@ const _l = /* @__PURE__ */ Ft(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4480
4491
|
name: a.fields.name,
|
|
4481
4492
|
tags: (N = (C = a.fields.tags.split(",")) == null ? void 0 : C.map((oe) => String(oe || "").trim())) == null ? void 0 : N.filter((oe) => oe !== "")
|
|
4482
4493
|
};
|
|
4483
|
-
}, U = async (C, N = "") => await m.post(b("addConsumer", N, C), { consumer: C }), A = async (C, N = "") => await m.delete(b("removeConsumer", N, C)),
|
|
4494
|
+
}, U = async (C, N = "") => await m.post(b("addConsumer", N, C), { consumer: C }), A = async (C, N = "") => await m.delete(b("removeConsumer", N, C)), O = (C) => {
|
|
4484
4495
|
a.errorMessage = g(C), n("error", C);
|
|
4485
4496
|
}, j = (C = t.consumerGroupId) => {
|
|
4486
4497
|
Object.assign(i, a.fields), n("update", { ...a.fields, id: C });
|
|
4487
4498
|
}, K = (C, N, oe = t.consumerGroupId) => {
|
|
4488
4499
|
const P = C == null ? void 0 : C.find((D) => D.status !== "fulfilled");
|
|
4489
|
-
P ?
|
|
4500
|
+
P ? O({
|
|
4490
4501
|
code: P.status,
|
|
4491
4502
|
message: N
|
|
4492
4503
|
}) : j(oe);
|
|
4493
|
-
},
|
|
4504
|
+
}, z = async () => {
|
|
4494
4505
|
let C = "";
|
|
4495
4506
|
try {
|
|
4496
4507
|
const { data: N } = await m.post(b("create"), V());
|
|
4497
4508
|
C = "item" in N ? N.item.id : N.id;
|
|
4498
4509
|
} catch (N) {
|
|
4499
|
-
|
|
4510
|
+
O(N);
|
|
4500
4511
|
}
|
|
4501
4512
|
if (a.fields.consumers.length > 0 && C)
|
|
4502
4513
|
try {
|
|
4503
4514
|
const N = a.fields.consumers.map((P) => U(P, C)), oe = await Promise.allSettled(N);
|
|
4504
4515
|
K(oe, r("consumer_groups.errors.add_consumer"), C);
|
|
4505
4516
|
} catch (N) {
|
|
4506
|
-
|
|
4517
|
+
O(N);
|
|
4507
4518
|
}
|
|
4508
4519
|
else
|
|
4509
4520
|
a.fields.consumers.length === 0 && C && j(C);
|
|
@@ -4512,7 +4523,7 @@ const _l = /* @__PURE__ */ Ft(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4512
4523
|
try {
|
|
4513
4524
|
((oe = t.config) == null ? void 0 : oe.app) === "konnect" ? await m.put(b("edit"), V()) : await m.patch(b("edit"), V());
|
|
4514
4525
|
} catch (P) {
|
|
4515
|
-
|
|
4526
|
+
O(P);
|
|
4516
4527
|
}
|
|
4517
4528
|
const C = a.fields.consumers.filter((P) => !i.consumers.includes(P)), N = i.consumers.filter((P) => !a.fields.consumers.includes(P));
|
|
4518
4529
|
if (N.length === 0 && C.length === 0)
|
|
@@ -4523,19 +4534,19 @@ const _l = /* @__PURE__ */ Ft(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4523
4534
|
const P = N.map((ge) => A(ge)), D = await Promise.allSettled(P);
|
|
4524
4535
|
K(D, r("consumer_groups.errors.remove_consumer"));
|
|
4525
4536
|
} catch (P) {
|
|
4526
|
-
|
|
4537
|
+
O(P);
|
|
4527
4538
|
}
|
|
4528
4539
|
if (C.length > 0)
|
|
4529
4540
|
try {
|
|
4530
4541
|
const P = C.map((ge) => U(ge)), D = await Promise.allSettled(P);
|
|
4531
4542
|
K(D, r("consumer_groups.errors.add_consumer"));
|
|
4532
4543
|
} catch (P) {
|
|
4533
|
-
|
|
4544
|
+
O(P);
|
|
4534
4545
|
}
|
|
4535
4546
|
}
|
|
4536
4547
|
}, ee = async () => {
|
|
4537
4548
|
try {
|
|
4538
|
-
a.readonly = !0, p.value === nt.Create ? await
|
|
4549
|
+
a.readonly = !0, p.value === nt.Create ? await z() : await X();
|
|
4539
4550
|
} finally {
|
|
4540
4551
|
a.readonly = !1;
|
|
4541
4552
|
}
|
|
@@ -4554,7 +4565,7 @@ const _l = /* @__PURE__ */ Ft(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4554
4565
|
"is-readonly": a.readonly,
|
|
4555
4566
|
onCancel: B,
|
|
4556
4567
|
"onFetch:error": N[3] || (N[3] = (D) => H(D)),
|
|
4557
|
-
"onFetch:success":
|
|
4568
|
+
"onFetch:success": J,
|
|
4558
4569
|
onLoading: N[4] || (N[4] = (D) => re(D)),
|
|
4559
4570
|
onSubmit: ee
|
|
4560
4571
|
}, {
|
|
@@ -4615,8 +4626,8 @@ const _l = /* @__PURE__ */ Ft(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4615
4626
|
"item-template": v(({ item: D }) => {
|
|
4616
4627
|
var ge, _e, de;
|
|
4617
4628
|
return [
|
|
4618
|
-
q("div", ll,
|
|
4619
|
-
(ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (f(), T("div", ul,
|
|
4629
|
+
q("div", ll, E(D.label), 1),
|
|
4630
|
+
(ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (f(), T("div", ul, E((de = D == null ? void 0 : D.data) == null ? void 0 : de.custom_id), 1)) : G("", !0)
|
|
4620
4631
|
];
|
|
4621
4632
|
}),
|
|
4622
4633
|
_: 1
|