@kong-ui-public/entities-upstreams-targets 3.2.2 → 3.2.4
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.
|
@@ -254,7 +254,7 @@ function Ci(e, a, t, l = {
|
|
|
254
254
|
}, 200), o = B(!1), d = B(""), h = B(""), p = B([]), g = B([]), n = B(void 0), O = u(a);
|
|
255
255
|
let H = `${e.apiBaseUrl}${O}`;
|
|
256
256
|
e.app === "konnect" ? H = H.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (H = H.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
257
|
-
const { isValidUuid: v } = Jl(),
|
|
257
|
+
const { isValidUuid: v } = Jl(), F = async () => {
|
|
258
258
|
try {
|
|
259
259
|
o.value = !0;
|
|
260
260
|
const { data: x } = await r.get(`${H}?size=${t}`);
|
|
@@ -270,22 +270,22 @@ function Ci(e, a, t, l = {
|
|
|
270
270
|
if ($.value = x || "", n.value === void 0)
|
|
271
271
|
try {
|
|
272
272
|
if (o.value = !0, d.value = "", h.value = "", e.app === "konnect") {
|
|
273
|
-
let
|
|
274
|
-
x && (
|
|
275
|
-
const { data: q } = await r.get(`${
|
|
273
|
+
let U = H + "";
|
|
274
|
+
x && (U += `/${x}`);
|
|
275
|
+
const { data: q } = await r.get(`${U}?size=${t}`);
|
|
276
276
|
l.fetchedItemsKey in q ? p.value = q[l.fetchedItemsKey] : q != null && q.id ? p.value = [q] : p.value = [];
|
|
277
277
|
} else if (x) {
|
|
278
|
-
const
|
|
279
|
-
v(x) && l.searchKeys.includes("id") ?
|
|
278
|
+
const U = [];
|
|
279
|
+
v(x) && l.searchKeys.includes("id") ? U.push((async () => {
|
|
280
280
|
const { data: M } = await r.get(`${H}/${x}`);
|
|
281
281
|
return [M[l.fetchedItemsKey] ?? M];
|
|
282
|
-
})()) :
|
|
282
|
+
})()) : U.push(
|
|
283
283
|
...l.searchKeys.filter((M) => M !== "id").map(async (M) => {
|
|
284
284
|
const { data: E } = await r.get(`${H}?${M}=${x}`);
|
|
285
285
|
return E[l.fetchedItemsKey];
|
|
286
286
|
})
|
|
287
287
|
);
|
|
288
|
-
const q = await Promise.all(
|
|
288
|
+
const q = await Promise.all(U), A = /* @__PURE__ */ new Set();
|
|
289
289
|
p.value = [], (N = q == null ? void 0 : q.forEach) == null || N.call(q, (M) => {
|
|
290
290
|
var E;
|
|
291
291
|
(E = M == null ? void 0 : M.forEach) == null || E.call(M, (Q) => {
|
|
@@ -294,17 +294,17 @@ function Ci(e, a, t, l = {
|
|
|
294
294
|
});
|
|
295
295
|
} else
|
|
296
296
|
p.value = g.value;
|
|
297
|
-
} catch (
|
|
298
|
-
((m =
|
|
297
|
+
} catch (U) {
|
|
298
|
+
((m = U == null ? void 0 : U.response) == null ? void 0 : m.status) === 404 ? h.value = s("debouncedFilter.errors.invalid") : (p.value = [], d.value = s("debouncedFilter.errors.fetch"));
|
|
299
299
|
} finally {
|
|
300
300
|
o.value = !1;
|
|
301
301
|
}
|
|
302
302
|
else
|
|
303
|
-
o.value = !0, h.value = "", x ? (p.value = (S = n.value) == null ? void 0 : S.filter((
|
|
303
|
+
o.value = !0, h.value = "", x ? (p.value = (S = n.value) == null ? void 0 : S.filter((U) => {
|
|
304
304
|
var q;
|
|
305
305
|
let A = !1;
|
|
306
306
|
for (const M of l.searchKeys) {
|
|
307
|
-
const E = typeof
|
|
307
|
+
const E = typeof U[M] == "string" ? (q = U[M]) == null ? void 0 : q.toLowerCase() : U[M];
|
|
308
308
|
E != null && E.includes(x.toLowerCase()) && (A = !0);
|
|
309
309
|
}
|
|
310
310
|
return A;
|
|
@@ -316,7 +316,7 @@ function Ci(e, a, t, l = {
|
|
|
316
316
|
validationError: h,
|
|
317
317
|
results: p,
|
|
318
318
|
allRecords: n,
|
|
319
|
-
loadItems:
|
|
319
|
+
loadItems: F,
|
|
320
320
|
debouncedQueryChange: c
|
|
321
321
|
};
|
|
322
322
|
}
|
|
@@ -480,7 +480,7 @@ const Ql = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
480
480
|
if (_l.indexOf(e) === -1)
|
|
481
481
|
throw new Error(`Invalid operator, expected one of ${_l.join("|")}`);
|
|
482
482
|
}, Oi = (e) => typeof e == "string" && /^[v\d]/.test(e) && Ql.test(e);
|
|
483
|
-
function
|
|
483
|
+
function Fi(e) {
|
|
484
484
|
const { gatewayInfo: a, supportedRange: t } = e;
|
|
485
485
|
if (!a)
|
|
486
486
|
return !0;
|
|
@@ -493,7 +493,7 @@ function Ui(e) {
|
|
|
493
493
|
const [i, c] = s;
|
|
494
494
|
return !(i && Cl(r, i, "<") || c && Cl(r, c, ">"));
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Ui(e) {
|
|
497
497
|
const a = B(0), t = B(0), l = B(!1);
|
|
498
498
|
return ke(e, (r) => {
|
|
499
499
|
r && !l.value && (a.value = r.offsetWidth, t.value = r.scrollWidth, l.value = !0);
|
|
@@ -518,8 +518,8 @@ const de = {
|
|
|
518
518
|
useHelpers: Jl,
|
|
519
519
|
useStringHelpers: xi,
|
|
520
520
|
useI18n: Ct,
|
|
521
|
-
useGatewayFeatureSupported:
|
|
522
|
-
useTruncationDetector:
|
|
521
|
+
useGatewayFeatureSupported: Fi,
|
|
522
|
+
useTruncationDetector: Ui,
|
|
523
523
|
useValidators: $i
|
|
524
524
|
}, Ni = {
|
|
525
525
|
key: 0,
|
|
@@ -762,7 +762,7 @@ const de = {
|
|
|
762
762
|
}
|
|
763
763
|
}), g = B(), { isTruncated: n } = de.useTruncationDetector(g);
|
|
764
764
|
return (O, H) => {
|
|
765
|
-
const v = K("KLabel"),
|
|
765
|
+
const v = K("KLabel"), F = K("KBadge"), $ = K("KCopy"), R = K("KTooltip");
|
|
766
766
|
return k(), j("div", Di, [
|
|
767
767
|
I("div", {
|
|
768
768
|
class: "config-card-details-label",
|
|
@@ -805,7 +805,7 @@ const de = {
|
|
|
805
805
|
key: 0,
|
|
806
806
|
"data-testid": `${e.item.key}-badge-tags`
|
|
807
807
|
}, [
|
|
808
|
-
(k(!0), j(fe, null, Ce(e.item.value, (x, N) => (k(), P(
|
|
808
|
+
(k(!0), j(fe, null, Ce(e.item.value, (x, N) => (k(), P(F, {
|
|
809
809
|
key: `${e.item.key}-badge-tag-${N}`,
|
|
810
810
|
class: "config-badge",
|
|
811
811
|
"data-testid": `${e.item.key}-badge-tag-${N}`,
|
|
@@ -833,7 +833,7 @@ const de = {
|
|
|
833
833
|
class: "method-badge-array",
|
|
834
834
|
"data-testid": `${e.item.key}-badge-methods`
|
|
835
835
|
}, [
|
|
836
|
-
(k(!0), j(fe, null, Ce(e.item.value, (x, N) => (k(), P(
|
|
836
|
+
(k(!0), j(fe, null, Ce(e.item.value, (x, N) => (k(), P(F, {
|
|
837
837
|
key: `${e.item.key}-badge-method-${N}`,
|
|
838
838
|
appearance: Object.values(u(ii)).includes(x.toLowerCase()) ? x.toLowerCase() : "custom",
|
|
839
839
|
class: "config-badge",
|
|
@@ -1232,7 +1232,7 @@ function qs(e) {
|
|
|
1232
1232
|
function Os(e) {
|
|
1233
1233
|
return 48 <= e && e <= 57;
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function Fs(e) {
|
|
1236
1236
|
if (e === null)
|
|
1237
1237
|
return !1;
|
|
1238
1238
|
var a = e.length, t = 0, l = !1, r;
|
|
@@ -1279,7 +1279,7 @@ function Us(e) {
|
|
|
1279
1279
|
}
|
|
1280
1280
|
return !(!l || r === "_");
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function Us(e) {
|
|
1283
1283
|
var a = e, t = 1, l;
|
|
1284
1284
|
if (a.indexOf("_") !== -1 && (a = a.replace(/_/g, "")), l = a[0], (l === "-" || l === "+") && (l === "-" && (t = -1), a = a.slice(1), l = a[0]), a === "0")
|
|
1285
1285
|
return 0;
|
|
@@ -1298,8 +1298,8 @@ function $s(e) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
var ur = new me("tag:yaml.org,2002:int", {
|
|
1300
1300
|
kind: "scalar",
|
|
1301
|
-
resolve:
|
|
1302
|
-
construct:
|
|
1301
|
+
resolve: Fs,
|
|
1302
|
+
construct: Us,
|
|
1303
1303
|
predicate: $s,
|
|
1304
1304
|
represent: {
|
|
1305
1305
|
binary: function(e) {
|
|
@@ -1746,7 +1746,7 @@ function vn(e, a) {
|
|
|
1746
1746
|
L(e, "unexpected end of the stream within a double quoted scalar");
|
|
1747
1747
|
}
|
|
1748
1748
|
function yn(e, a) {
|
|
1749
|
-
var t = !0, l, r, s, i = e.tag, c, o = e.anchor, d, h, p, g, n, O = /* @__PURE__ */ Object.create(null), H, v,
|
|
1749
|
+
var t = !0, l, r, s, i = e.tag, c, o = e.anchor, d, h, p, g, n, O = /* @__PURE__ */ Object.create(null), H, v, F, $;
|
|
1750
1750
|
if ($ = e.input.charCodeAt(e.position), $ === 91)
|
|
1751
1751
|
h = 93, n = !1, c = [];
|
|
1752
1752
|
else if ($ === 123)
|
|
@@ -1756,7 +1756,7 @@ function yn(e, a) {
|
|
|
1756
1756
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), $ = e.input.charCodeAt(++e.position); $ !== 0; ) {
|
|
1757
1757
|
if (oe(e, !0, a), $ = e.input.charCodeAt(e.position), $ === h)
|
|
1758
1758
|
return e.position++, e.tag = i, e.anchor = o, e.kind = n ? "mapping" : "sequence", e.result = c, !0;
|
|
1759
|
-
t ? $ === 44 && L(e, "expected the node content, but found ','") : L(e, "missed comma between flow collection entries"), v = H =
|
|
1759
|
+
t ? $ === 44 && L(e, "expected the node content, but found ','") : L(e, "missed comma between flow collection entries"), v = H = F = null, p = g = !1, $ === 63 && (d = e.input.charCodeAt(e.position + 1), be(d) && (p = g = !0, e.position++, oe(e, !0, a))), l = e.line, r = e.lineStart, s = e.position, Ge(e, a, ft, !1, !0), v = e.tag, H = e.result, oe(e, !0, a), $ = e.input.charCodeAt(e.position), (g || e.line === l) && $ === 58 && (p = !0, $ = e.input.charCodeAt(++e.position), oe(e, !0, a), Ge(e, a, ft, !1, !0), F = e.result), n ? Qe(e, c, O, v, H, F, l, r, s) : p ? c.push(Qe(e, null, O, v, H, F, l, r, s)) : c.push(H), oe(e, !0, a), $ = e.input.charCodeAt(e.position), $ === 44 ? (t = !0, $ = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1760
1760
|
}
|
|
1761
1761
|
L(e, "unexpected end of the stream within a flow collection");
|
|
1762
1762
|
}
|
|
@@ -1824,12 +1824,12 @@ function Tl(e, a) {
|
|
|
1824
1824
|
return c ? (e.tag = l, e.anchor = r, e.kind = "sequence", e.result = s, !0) : !1;
|
|
1825
1825
|
}
|
|
1826
1826
|
function kn(e, a, t) {
|
|
1827
|
-
var l, r, s, i, c, o, d = e.tag, h = e.anchor, p = {}, g = /* @__PURE__ */ Object.create(null), n = null, O = null, H = null, v = !1,
|
|
1827
|
+
var l, r, s, i, c, o, d = e.tag, h = e.anchor, p = {}, g = /* @__PURE__ */ Object.create(null), n = null, O = null, H = null, v = !1, F = !1, $;
|
|
1828
1828
|
if (e.firstTabInLine !== -1)
|
|
1829
1829
|
return !1;
|
|
1830
1830
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), $ = e.input.charCodeAt(e.position); $ !== 0; ) {
|
|
1831
1831
|
if (!v && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, L(e, "tab characters must not be used in indentation")), l = e.input.charCodeAt(e.position + 1), s = e.line, ($ === 63 || $ === 58) && be(l))
|
|
1832
|
-
$ === 63 ? (v && (Qe(e, p, g, n, O, null, i, c, o), n = O = H = null),
|
|
1832
|
+
$ === 63 ? (v && (Qe(e, p, g, n, O, null, i, c, o), n = O = H = null), F = !0, v = !0, r = !0) : v ? (v = !1, r = !0) : L(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, $ = l;
|
|
1833
1833
|
else {
|
|
1834
1834
|
if (i = e.line, c = e.lineStart, o = e.position, !Ge(e, t, Cr, !1, !0))
|
|
1835
1835
|
break;
|
|
@@ -1837,12 +1837,12 @@ function kn(e, a, t) {
|
|
|
1837
1837
|
for ($ = e.input.charCodeAt(e.position); Ke($); )
|
|
1838
1838
|
$ = e.input.charCodeAt(++e.position);
|
|
1839
1839
|
if ($ === 58)
|
|
1840
|
-
$ = e.input.charCodeAt(++e.position), be($) || L(e, "a whitespace character is expected after the key-value separator within a block mapping"), v && (Qe(e, p, g, n, O, null, i, c, o), n = O = H = null),
|
|
1841
|
-
else if (
|
|
1840
|
+
$ = e.input.charCodeAt(++e.position), be($) || L(e, "a whitespace character is expected after the key-value separator within a block mapping"), v && (Qe(e, p, g, n, O, null, i, c, o), n = O = H = null), F = !0, v = !1, r = !1, n = e.tag, O = e.result;
|
|
1841
|
+
else if (F)
|
|
1842
1842
|
L(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1843
1843
|
else
|
|
1844
1844
|
return e.tag = d, e.anchor = h, !0;
|
|
1845
|
-
} else if (
|
|
1845
|
+
} else if (F)
|
|
1846
1846
|
L(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1847
1847
|
else
|
|
1848
1848
|
return e.tag = d, e.anchor = h, !0;
|
|
@@ -1852,7 +1852,7 @@ function kn(e, a, t) {
|
|
|
1852
1852
|
else if (e.lineIndent < a)
|
|
1853
1853
|
break;
|
|
1854
1854
|
}
|
|
1855
|
-
return v && Qe(e, p, g, n, O, null, i, c, o),
|
|
1855
|
+
return v && Qe(e, p, g, n, O, null, i, c, o), F && (e.tag = d, e.anchor = h, e.kind = "mapping", e.result = p), F;
|
|
1856
1856
|
}
|
|
1857
1857
|
function Cn(e) {
|
|
1858
1858
|
var a, t = !1, l = !1, r, s, i;
|
|
@@ -1978,7 +1978,7 @@ function xn(e, a) {
|
|
|
1978
1978
|
var An = In, Hn = xn, Tr = {
|
|
1979
1979
|
loadAll: An,
|
|
1980
1980
|
load: Hn
|
|
1981
|
-
}, qr = Object.prototype.toString, Or = Object.prototype.hasOwnProperty, Zt = 65279, Tn = 9, at = 10, qn = 13, On = 32,
|
|
1981
|
+
}, qr = Object.prototype.toString, Or = Object.prototype.hasOwnProperty, Zt = 65279, Tn = 9, at = 10, qn = 13, On = 32, Fn = 33, Un = 34, Ft = 35, $n = 37, Nn = 38, Mn = 39, jn = 42, Fr = 44, Kn = 45, vt = 58, En = 61, Bn = 62, Pn = 63, Vn = 64, Ur = 91, $r = 93, Ln = 96, Nr = 123, Rn = 124, Mr = 125, ve = {};
|
|
1982
1982
|
ve[0] = "\\0";
|
|
1983
1983
|
ve[7] = "\\a";
|
|
1984
1984
|
ve[8] = "\\b";
|
|
@@ -2043,7 +2043,7 @@ function ql(e, a) {
|
|
|
2043
2043
|
` && (s += t), s += i;
|
|
2044
2044
|
return s;
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function Ut(e, a) {
|
|
2047
2047
|
return `
|
|
2048
2048
|
` + ce.repeat(" ", e.indent * a);
|
|
2049
2049
|
}
|
|
@@ -2063,18 +2063,18 @@ function rt(e) {
|
|
|
2063
2063
|
function Ol(e) {
|
|
2064
2064
|
return rt(e) && e !== Zt && e !== qn && e !== at;
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2066
|
+
function Fl(e, a, t) {
|
|
2067
2067
|
var l = Ol(e), r = l && !yt(e);
|
|
2068
2068
|
return (
|
|
2069
2069
|
// ns-plain-safe
|
|
2070
2070
|
(t ? (
|
|
2071
2071
|
// c = flow-in
|
|
2072
2072
|
l
|
|
2073
|
-
) : l && e !==
|
|
2073
|
+
) : l && e !== Fr && e !== Ur && e !== $r && e !== Nr && e !== Mr) && e !== Ft && !(a === vt && !r) || Ol(a) && !yt(a) && e === Ft || a === vt && r
|
|
2074
2074
|
);
|
|
2075
2075
|
}
|
|
2076
2076
|
function Gn(e) {
|
|
2077
|
-
return rt(e) && e !== Zt && !yt(e) && e !== Kn && e !== Pn && e !== vt && e !==
|
|
2077
|
+
return rt(e) && e !== Zt && !yt(e) && e !== Kn && e !== Pn && e !== vt && e !== Fr && e !== Ur && e !== $r && e !== Nr && e !== Mr && e !== Ft && e !== Nn && e !== jn && e !== Fn && e !== Rn && e !== En && e !== Bn && e !== Mn && e !== Un && e !== $n && e !== Vn && e !== Ln;
|
|
2078
2078
|
}
|
|
2079
2079
|
function Xn(e) {
|
|
2080
2080
|
return !yt(e) && e !== vt;
|
|
@@ -2094,7 +2094,7 @@ function eo(e, a, t, l, r, s, i, c) {
|
|
|
2094
2094
|
for (o = 0; o < e.length; d >= 65536 ? o += 2 : o++) {
|
|
2095
2095
|
if (d = et(e, o), !rt(d))
|
|
2096
2096
|
return Je;
|
|
2097
|
-
H = H &&
|
|
2097
|
+
H = H && Fl(d, h, c), h = d;
|
|
2098
2098
|
}
|
|
2099
2099
|
else {
|
|
2100
2100
|
for (o = 0; o < e.length; d >= 65536 ? o += 2 : o++) {
|
|
@@ -2103,7 +2103,7 @@ function eo(e, a, t, l, r, s, i, c) {
|
|
|
2103
2103
|
o - O - 1 > l && e[O + 1] !== " ", O = o);
|
|
2104
2104
|
else if (!rt(d))
|
|
2105
2105
|
return Je;
|
|
2106
|
-
H = H &&
|
|
2106
|
+
H = H && Fl(d, h, c), h = d;
|
|
2107
2107
|
}
|
|
2108
2108
|
g = g || n && o - O - 1 > l && e[O + 1] !== " ";
|
|
2109
2109
|
}
|
|
@@ -2134,9 +2134,9 @@ function to(e, a, t, l, r) {
|
|
|
2134
2134
|
case $t:
|
|
2135
2135
|
return "'" + a.replace(/'/g, "''") + "'";
|
|
2136
2136
|
case Er:
|
|
2137
|
-
return "|" +
|
|
2137
|
+
return "|" + Ul(a, e.indent) + $l(ql(a, s));
|
|
2138
2138
|
case Br:
|
|
2139
|
-
return ">" +
|
|
2139
|
+
return ">" + Ul(a, e.indent) + $l(ql(ao(a, i), s));
|
|
2140
2140
|
case Je:
|
|
2141
2141
|
return '"' + lo(a) + '"';
|
|
2142
2142
|
default:
|
|
@@ -2144,7 +2144,7 @@ function to(e, a, t, l, r) {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
}();
|
|
2146
2146
|
}
|
|
2147
|
-
function
|
|
2147
|
+
function Ul(e, a) {
|
|
2148
2148
|
var t = jr(e) ? String(a) : "", l = e[e.length - 1] === `
|
|
2149
2149
|
`, r = l && (e[e.length - 2] === `
|
|
2150
2150
|
` || e === `
|
|
@@ -2193,7 +2193,7 @@ function ro(e, a, t) {
|
|
|
2193
2193
|
function Ml(e, a, t, l) {
|
|
2194
2194
|
var r = "", s = e.tag, i, c, o;
|
|
2195
2195
|
for (i = 0, c = t.length; i < c; i += 1)
|
|
2196
|
-
o = t[i], e.replacer && (o = e.replacer.call(t, String(i), o)), (Oe(e, a + 1, o, !0, !0, !1, !0) || typeof o > "u" && Oe(e, a + 1, null, !0, !0, !1, !0)) && ((!l || r !== "") && (r +=
|
|
2196
|
+
o = t[i], e.replacer && (o = e.replacer.call(t, String(i), o)), (Oe(e, a + 1, o, !0, !0, !1, !0) || typeof o > "u" && Oe(e, a + 1, null, !0, !0, !1, !0)) && ((!l || r !== "") && (r += Ut(e, a)), e.dump && at === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
2197
2197
|
e.tag = s, e.dump = r || "[]";
|
|
2198
2198
|
}
|
|
2199
2199
|
function io(e, a, t) {
|
|
@@ -2211,7 +2211,7 @@ function so(e, a, t, l) {
|
|
|
2211
2211
|
else if (e.sortKeys)
|
|
2212
2212
|
throw new ye("sortKeys must be a boolean or a function");
|
|
2213
2213
|
for (c = 0, o = i.length; c < o; c += 1)
|
|
2214
|
-
g = "", (!l || r !== "") && (g +=
|
|
2214
|
+
g = "", (!l || r !== "") && (g += Ut(e, a)), d = i[c], h = t[d], e.replacer && (h = e.replacer.call(t, d, h)), Oe(e, a + 1, d, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && at === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, p && (g += Ut(e, a)), Oe(e, a + 1, h, !0, p) && (e.dump && at === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, r += g));
|
|
2215
2215
|
e.tag = s, e.dump = r || "{}";
|
|
2216
2216
|
}
|
|
2217
2217
|
function jl(e, a, t) {
|
|
@@ -2444,15 +2444,15 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2444
2444
|
}, null, 8, ["yaml-record"])) : D("", !0)
|
|
2445
2445
|
], 64));
|
|
2446
2446
|
}
|
|
2447
|
-
}),
|
|
2447
|
+
}), Fo = /* @__PURE__ */ we(Oo, [["__scopeId", "data-v-2052238b"]]), xe = "24px", nt = (e, a) => {
|
|
2448
2448
|
const t = e.__vccOpts || e;
|
|
2449
2449
|
for (const [l, r] of a)
|
|
2450
2450
|
t[l] = r;
|
|
2451
2451
|
return t;
|
|
2452
|
-
},
|
|
2452
|
+
}, Uo = (e) => (Pe("data-v-f68c7837"), e = e(), Ve(), e), $o = ["aria-hidden"], No = {
|
|
2453
2453
|
key: 0,
|
|
2454
2454
|
"data-testid": "kui-icon-svg-title"
|
|
2455
|
-
}, Mo = /* @__PURE__ */
|
|
2455
|
+
}, Mo = /* @__PURE__ */ Uo(() => /* @__PURE__ */ I("path", {
|
|
2456
2456
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2457
2457
|
fill: "currentColor"
|
|
2458
2458
|
}, null, -1)), jo = /* @__PURE__ */ X({
|
|
@@ -2548,7 +2548,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2548
2548
|
_: 1
|
|
2549
2549
|
}, 8, ["aria-hidden", "style"]));
|
|
2550
2550
|
}
|
|
2551
|
-
}), Ko = /* @__PURE__ */ nt(jo, [["__scopeId", "data-v-
|
|
2551
|
+
}), Ko = /* @__PURE__ */ nt(jo, [["__scopeId", "data-v-f68c7837"]]), Eo = (e) => (Pe("data-v-9af646cc"), e = e(), Ve(), e), Bo = ["aria-hidden"], Po = {
|
|
2552
2552
|
key: 0,
|
|
2553
2553
|
"data-testid": "kui-icon-svg-title"
|
|
2554
2554
|
}, Vo = /* @__PURE__ */ Eo(() => /* @__PURE__ */ I("path", {
|
|
@@ -2647,7 +2647,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2647
2647
|
_: 1
|
|
2648
2648
|
}, 8, ["aria-hidden", "style"]));
|
|
2649
2649
|
}
|
|
2650
|
-
}), Ro = /* @__PURE__ */ nt(Lo, [["__scopeId", "data-v-
|
|
2650
|
+
}), Ro = /* @__PURE__ */ nt(Lo, [["__scopeId", "data-v-9af646cc"]]), Do = (e) => (Pe("data-v-84c4811e"), e = e(), Ve(), e), zo = ["aria-hidden"], Jo = {
|
|
2651
2651
|
key: 0,
|
|
2652
2652
|
"data-testid": "kui-icon-svg-title"
|
|
2653
2653
|
}, Wo = /* @__PURE__ */ Do(() => /* @__PURE__ */ I("path", {
|
|
@@ -2746,7 +2746,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2746
2746
|
_: 1
|
|
2747
2747
|
}, 8, ["aria-hidden", "style"]));
|
|
2748
2748
|
}
|
|
2749
|
-
}), Zo = /* @__PURE__ */ nt(Qo, [["__scopeId", "data-v-
|
|
2749
|
+
}), Zo = /* @__PURE__ */ nt(Qo, [["__scopeId", "data-v-84c4811e"]]), Yo = (e) => (Pe("data-v-26ad8dc6"), e = e(), Ve(), e), Go = ["aria-hidden"], Xo = {
|
|
2750
2750
|
key: 0,
|
|
2751
2751
|
"data-testid": "kui-icon-svg-title"
|
|
2752
2752
|
}, eu = /* @__PURE__ */ Yo(() => /* @__PURE__ */ I("path", {
|
|
@@ -2845,7 +2845,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2845
2845
|
_: 1
|
|
2846
2846
|
}, 8, ["aria-hidden", "style"]));
|
|
2847
2847
|
}
|
|
2848
|
-
}), au = /* @__PURE__ */ nt(tu, [["__scopeId", "data-v-
|
|
2848
|
+
}), au = /* @__PURE__ */ nt(tu, [["__scopeId", "data-v-26ad8dc6"]]), lu = (e) => (Pe("data-v-d43c21f8"), e = e(), Ve(), e), ru = ["aria-hidden"], iu = {
|
|
2849
2849
|
key: 0,
|
|
2850
2850
|
"data-testid": "kui-icon-svg-title"
|
|
2851
2851
|
}, su = /* @__PURE__ */ lu(() => /* @__PURE__ */ I("path", {
|
|
@@ -2944,7 +2944,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2944
2944
|
_: 1
|
|
2945
2945
|
}, 8, ["aria-hidden", "style"]));
|
|
2946
2946
|
}
|
|
2947
|
-
}), ou = /* @__PURE__ */ nt(nu, [["__scopeId", "data-v-
|
|
2947
|
+
}), ou = /* @__PURE__ */ nt(nu, [["__scopeId", "data-v-d43c21f8"]]), uu = {
|
|
2948
2948
|
class: "config-card-title",
|
|
2949
2949
|
"data-testid": "config-card-title"
|
|
2950
2950
|
}, cu = { class: "config-card-actions" }, du = ["href"], hu = { class: "config-card-details-section" }, pu = /* @__PURE__ */ X({
|
|
@@ -3076,13 +3076,13 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3076
3076
|
// the last property displayed
|
|
3077
3077
|
section: ne.Basic
|
|
3078
3078
|
}
|
|
3079
|
-
}, n = B(!1), O = B(!1), H = B(""), v = B({}),
|
|
3080
|
-
var m, S,
|
|
3079
|
+
}, n = B(!1), O = B(!1), H = B(""), v = B({}), F = T(() => {
|
|
3080
|
+
var m, S, U;
|
|
3081
3081
|
if (!v.value)
|
|
3082
3082
|
return [];
|
|
3083
3083
|
const q = [], A = Object.keys(v.value).length;
|
|
3084
3084
|
for (const M in v.value) {
|
|
3085
|
-
const E = (S = (m = r.configSchema) == null ? void 0 : m[M]) == null ? void 0 : S.order, Q = (
|
|
3085
|
+
const E = (S = (m = r.configSchema) == null ? void 0 : m[M]) == null ? void 0 : S.order, Q = (U = g[M]) == null ? void 0 : U.order;
|
|
3086
3086
|
let Z = A;
|
|
3087
3087
|
(Q || Q === 0) && (Z = Q === -1 ? A + 1 : Q), E && (Z = E === -1 ? A + 1 : E), q.push([M, Z]);
|
|
3088
3088
|
}
|
|
@@ -3105,9 +3105,9 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3105
3105
|
var m, S;
|
|
3106
3106
|
if (!v.value || !r.pluginConfigKey)
|
|
3107
3107
|
return [];
|
|
3108
|
-
const
|
|
3109
|
-
for (const M in
|
|
3110
|
-
const E = (S = (m = r.pluginConfigSchema) == null ? void 0 : m[M]) == null ? void 0 : S.order, Q =
|
|
3108
|
+
const U = v.value[r.pluginConfigKey] || {}, q = Object.keys(U).length, A = [];
|
|
3109
|
+
for (const M in U) {
|
|
3110
|
+
const E = (S = (m = r.pluginConfigSchema) == null ? void 0 : m[M]) == null ? void 0 : S.order, Q = U[M];
|
|
3111
3111
|
let Z = Q != null && Q !== "" ? q - 1 : q;
|
|
3112
3112
|
E && (Z = E === -1 ? q + 1 : E), A.push([M, Z]);
|
|
3113
3113
|
}
|
|
@@ -3115,7 +3115,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3115
3115
|
return M[1] - E[1];
|
|
3116
3116
|
}), A.map((M) => {
|
|
3117
3117
|
var E;
|
|
3118
|
-
const Q = M[0], Z =
|
|
3118
|
+
const Q = M[0], Z = U[Q], W = ((E = r.pluginConfigSchema) == null ? void 0 : E[Q]) || {};
|
|
3119
3119
|
return {
|
|
3120
3120
|
key: Q,
|
|
3121
3121
|
value: Z,
|
|
@@ -3127,19 +3127,19 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3127
3127
|
};
|
|
3128
3128
|
}).filter((M) => !M.hidden);
|
|
3129
3129
|
}), R = T(() => {
|
|
3130
|
-
var m, S,
|
|
3130
|
+
var m, S, U, q;
|
|
3131
3131
|
return {
|
|
3132
|
-
basic: (m =
|
|
3133
|
-
advanced: (S =
|
|
3134
|
-
plugin: (q = $.value) == null ? void 0 : q.concat((
|
|
3132
|
+
basic: (m = F.value) == null ? void 0 : m.filter((A) => A.section === ne.Basic),
|
|
3133
|
+
advanced: (S = F.value) == null ? void 0 : S.filter((A) => A.section === ne.Advanced),
|
|
3134
|
+
plugin: (q = $.value) == null ? void 0 : q.concat((U = F.value) == null ? void 0 : U.filter((A) => A.section === ne.Plugin))
|
|
3135
3135
|
};
|
|
3136
3136
|
}), x = T(() => {
|
|
3137
3137
|
const m = [];
|
|
3138
3138
|
return R.value.basic.length && m.push("basic"), R.value.advanced.length && m.push("advanced"), R.value.plugin.length && m.push("plugin"), m;
|
|
3139
3139
|
}), N = T(() => {
|
|
3140
3140
|
var m, S;
|
|
3141
|
-
let
|
|
3142
|
-
return r.config.app === "konnect" ?
|
|
3141
|
+
let U = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3142
|
+
return r.config.app === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((m = r.config) == null ? void 0 : m.controlPlaneId) || "") : r.config.app === "kongManager" && (U = U.replace(/\/{workspace}/gi, (S = r.config) != null && S.workspace ? `/${r.config.workspace}` : "")), U = U.replace(/{id}/gi, r.config.entityId), U;
|
|
3143
3143
|
});
|
|
3144
3144
|
return ke(n, (m) => {
|
|
3145
3145
|
l("loading", m);
|
|
@@ -3164,7 +3164,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3164
3164
|
n.value = !1;
|
|
3165
3165
|
}
|
|
3166
3166
|
}), (m, S) => {
|
|
3167
|
-
const
|
|
3167
|
+
const U = K("KLabel"), q = K("KSelect"), A = K("KButton"), M = K("KSkeleton"), E = K("KEmptyState"), Q = K("KCard");
|
|
3168
3168
|
return k(), P(Q, {
|
|
3169
3169
|
class: "kong-ui-entity-base-config-card",
|
|
3170
3170
|
"title-tag": e.titleTag
|
|
@@ -3172,7 +3172,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3172
3172
|
actions: f(() => [
|
|
3173
3173
|
I("div", cu, [
|
|
3174
3174
|
re(m.$slots, "actions", {}, void 0, !0),
|
|
3175
|
-
y(
|
|
3175
|
+
y(U, {
|
|
3176
3176
|
class: "config-format-select-label",
|
|
3177
3177
|
"data-testid": "config-format-select-label"
|
|
3178
3178
|
}, {
|
|
@@ -3222,7 +3222,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3222
3222
|
_: 1
|
|
3223
3223
|
})) : D("", !0),
|
|
3224
3224
|
I("div", hu, [
|
|
3225
|
-
y(
|
|
3225
|
+
y(Fo, {
|
|
3226
3226
|
config: e.config,
|
|
3227
3227
|
"fetcher-url": N.value,
|
|
3228
3228
|
format: h.value,
|
|
@@ -3337,8 +3337,8 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3337
3337
|
}), H = () => {
|
|
3338
3338
|
n.value = !n.value;
|
|
3339
3339
|
}, v = () => {
|
|
3340
|
-
r.config.cancelRoute ? s.push(r.config.cancelRoute) :
|
|
3341
|
-
},
|
|
3340
|
+
r.config.cancelRoute ? s.push(r.config.cancelRoute) : F();
|
|
3341
|
+
}, F = () => {
|
|
3342
3342
|
l("cancel");
|
|
3343
3343
|
}, $ = () => {
|
|
3344
3344
|
g.value || l("submit");
|
|
@@ -3367,7 +3367,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3367
3367
|
d.value = !1;
|
|
3368
3368
|
}
|
|
3369
3369
|
}), (x, N) => {
|
|
3370
|
-
const m = K("KSkeleton"), S = K("KEmptyState"),
|
|
3370
|
+
const m = K("KSkeleton"), S = K("KEmptyState"), U = K("KAlert"), q = K("KButton"), A = K("KTabs"), M = K("KSlideout");
|
|
3371
3371
|
return k(), P(_e(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3372
3372
|
default: f(() => [
|
|
3373
3373
|
d.value ? (k(), P(m, {
|
|
@@ -3388,11 +3388,11 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3388
3388
|
key: 2,
|
|
3389
3389
|
"data-testid": "form-content",
|
|
3390
3390
|
novalidate: r.noValidate,
|
|
3391
|
-
onReset: ml(
|
|
3391
|
+
onReset: ml(F, ["prevent"]),
|
|
3392
3392
|
onSubmit: ml($, ["prevent"])
|
|
3393
3393
|
}, [
|
|
3394
3394
|
re(x.$slots, "default", {}, void 0, !0),
|
|
3395
|
-
e.errorMessage ? (k(), P(
|
|
3395
|
+
e.errorMessage ? (k(), P(U, {
|
|
3396
3396
|
key: 0,
|
|
3397
3397
|
appearance: "danger",
|
|
3398
3398
|
"data-testid": "form-error",
|
|
@@ -3497,32 +3497,32 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3497
3497
|
var v;
|
|
3498
3498
|
return ((v = t.value) == null ? void 0 : v.querySelector('[data-truncate="true"]')) || null;
|
|
3499
3499
|
}), r = T(() => {
|
|
3500
|
-
var v,
|
|
3500
|
+
var v, F;
|
|
3501
3501
|
const $ = (v = a.rowEl) == null ? void 0 : v.querySelectorAll("td");
|
|
3502
|
-
return $ ? ((
|
|
3502
|
+
return $ ? ((F = $[0]) == null ? void 0 : F.getAttribute("data-testid")) === a.keyName : !1;
|
|
3503
3503
|
}), s = T(() => r.value || a.tooltip);
|
|
3504
3504
|
let i;
|
|
3505
3505
|
const c = () => {
|
|
3506
3506
|
i && (i.disconnect(), i = void 0);
|
|
3507
3507
|
}, o = () => {
|
|
3508
|
-
var v,
|
|
3508
|
+
var v, F, $;
|
|
3509
3509
|
let R = ((v = t.value) == null ? void 0 : v.clientWidth) || 0;
|
|
3510
3510
|
if (t.value && "getComputedStyle" in window) {
|
|
3511
3511
|
const x = window.getComputedStyle(t.value);
|
|
3512
3512
|
R -= (parseFloat(x.paddingLeft) || 0) + (parseFloat(x.paddingRight) || 0);
|
|
3513
3513
|
}
|
|
3514
|
-
h.value = ((
|
|
3514
|
+
h.value = ((F = l.value) == null ? void 0 : F.getBoundingClientRect().width) || 0, p.value = R, g.value = (($ = d.value) == null ? void 0 : $.innerText) || "";
|
|
3515
3515
|
}, d = B({}), h = B(0), p = B(0), g = B(""), n = T(() => [l.value, t.value]), O = ke(
|
|
3516
3516
|
n,
|
|
3517
3517
|
(v) => {
|
|
3518
3518
|
if (s.value && (c(), "ResizeObserver" in window && window)) {
|
|
3519
|
-
i = new ResizeObserver((
|
|
3519
|
+
i = new ResizeObserver((F) => {
|
|
3520
3520
|
window.requestAnimationFrame(() => {
|
|
3521
|
-
!Array.isArray(
|
|
3521
|
+
!Array.isArray(F) || !F.length || o();
|
|
3522
3522
|
});
|
|
3523
3523
|
});
|
|
3524
|
-
for (const
|
|
3525
|
-
|
|
3524
|
+
for (const F of v)
|
|
3525
|
+
F && i.observe(F);
|
|
3526
3526
|
}
|
|
3527
3527
|
},
|
|
3528
3528
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
@@ -3531,7 +3531,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3531
3531
|
o();
|
|
3532
3532
|
}), ti(() => {
|
|
3533
3533
|
O();
|
|
3534
|
-
}), (v,
|
|
3534
|
+
}), (v, F) => {
|
|
3535
3535
|
const $ = K("KTooltip");
|
|
3536
3536
|
return k(), j("span", {
|
|
3537
3537
|
ref_key: "contentRef",
|
|
@@ -3691,11 +3691,11 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3691
3691
|
}), i = T(() => t.cacheIdentifier || t.preferencesStorageKey), c = (m) => m.hasData || !!t.query, o = T(() => {
|
|
3692
3692
|
const m = [];
|
|
3693
3693
|
return Object.keys(t.tableHeaders).forEach((S) => {
|
|
3694
|
-
const
|
|
3694
|
+
const U = t.tableHeaders[S];
|
|
3695
3695
|
m.push({
|
|
3696
|
-
label:
|
|
3696
|
+
label: U.label ?? S,
|
|
3697
3697
|
key: S,
|
|
3698
|
-
sortable:
|
|
3698
|
+
sortable: U.sortable ?? !1,
|
|
3699
3699
|
hidable: !0
|
|
3700
3700
|
});
|
|
3701
3701
|
}), t.enableEntityActions && m.push({
|
|
@@ -3727,17 +3727,17 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3727
3727
|
l("click:row", S);
|
|
3728
3728
|
}), v = (m) => {
|
|
3729
3729
|
l("sort", m);
|
|
3730
|
-
}, { setTablePreferences:
|
|
3730
|
+
}, { setTablePreferences: F, getTablePreferences: $ } = ui(), R = B($(i.value)), x = T(() => {
|
|
3731
3731
|
const m = $(i.value);
|
|
3732
3732
|
return {
|
|
3733
3733
|
...t.initialFetcherParams,
|
|
3734
3734
|
...m
|
|
3735
3735
|
};
|
|
3736
3736
|
}), N = (m) => {
|
|
3737
|
-
R.value = m, i.value &&
|
|
3737
|
+
R.value = m, i.value && F(i.value, m);
|
|
3738
3738
|
};
|
|
3739
3739
|
return (m, S) => {
|
|
3740
|
-
const
|
|
3740
|
+
const U = K("KButton"), q = K("KDropdown"), A = K("KTable"), M = K("KCard");
|
|
3741
3741
|
return k(), P(M, {
|
|
3742
3742
|
class: "kong-ui-entity-base-table",
|
|
3743
3743
|
title: e.title,
|
|
@@ -3804,7 +3804,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3804
3804
|
}, void 0, !0)
|
|
3805
3805
|
]),
|
|
3806
3806
|
default: f(() => [
|
|
3807
|
-
y(
|
|
3807
|
+
y(U, {
|
|
3808
3808
|
appearance: "tertiary",
|
|
3809
3809
|
class: "actions-trigger",
|
|
3810
3810
|
"data-testid": "overflow-actions-button",
|
|
@@ -3971,7 +3971,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3971
3971
|
width: "20",
|
|
3972
3972
|
x: "0",
|
|
3973
3973
|
y: "0"
|
|
3974
|
-
}, qu = ["fill"], Ou = { mask: "url(#mask0_180_20349)" },
|
|
3974
|
+
}, qu = ["fill"], Ou = { mask: "url(#mask0_180_20349)" }, Fu = ["fill"], Kl = /* @__PURE__ */ X({
|
|
3975
3975
|
__name: "IconFilter",
|
|
3976
3976
|
props: {
|
|
3977
3977
|
color: {
|
|
@@ -3992,11 +3992,11 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3992
3992
|
I("path", {
|
|
3993
3993
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3994
3994
|
fill: e.color
|
|
3995
|
-
}, null, 8,
|
|
3995
|
+
}, null, 8, Fu)
|
|
3996
3996
|
])
|
|
3997
3997
|
]));
|
|
3998
3998
|
}
|
|
3999
|
-
}),
|
|
3999
|
+
}), Uu = {
|
|
4000
4000
|
key: 1,
|
|
4001
4001
|
class: "kong-ui-entity-filter"
|
|
4002
4002
|
}, $u = { class: "kong-ui-entity-filter-menu" }, Nu = ["data-testid"], Mu = ["onClick", "onKeydown"], ju = { class: "menu-item-indicator" }, Ku = { class: "menu-item-body" }, Eu = ["for"], Bu = { class: "menu-item-buttons" }, Pu = { class: "filter-clear-button-container" }, Vu = /* @__PURE__ */ X({
|
|
@@ -4057,7 +4057,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
4057
4057
|
}, v = (x) => {
|
|
4058
4058
|
var N, m;
|
|
4059
4059
|
return ((m = (N = l.config.schema) == null ? void 0 : N[x]) == null ? void 0 : m.type) ?? "text";
|
|
4060
|
-
},
|
|
4060
|
+
}, F = (x) => {
|
|
4061
4061
|
i.value = {
|
|
4062
4062
|
...i.value,
|
|
4063
4063
|
[x]: ""
|
|
@@ -4069,7 +4069,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
4069
4069
|
x && (s.value = !1), r("update:modelValue", new URLSearchParams(N).toString());
|
|
4070
4070
|
};
|
|
4071
4071
|
return (x, N) => {
|
|
4072
|
-
const m = K("KInput"), S = K("KButton"),
|
|
4072
|
+
const m = K("KInput"), S = K("KButton"), U = K("KSelect");
|
|
4073
4073
|
return e.config.isExactMatch ? (k(), P(m, {
|
|
4074
4074
|
key: 0,
|
|
4075
4075
|
autocomplete: "off",
|
|
@@ -4091,7 +4091,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
4091
4091
|
])
|
|
4092
4092
|
]),
|
|
4093
4093
|
_: 1
|
|
4094
|
-
}, 8, ["model-value", "placeholder"])) : (k(), j("div",
|
|
4094
|
+
}, 8, ["model-value", "placeholder"])) : (k(), j("div", Uu, [
|
|
4095
4095
|
y(S, {
|
|
4096
4096
|
appearance: "tertiary",
|
|
4097
4097
|
"data-testid": "filter-button",
|
|
@@ -4138,7 +4138,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
4138
4138
|
class: "menu-item-label",
|
|
4139
4139
|
for: O(q.value)
|
|
4140
4140
|
}, w(u(t)("filter.fieldLabel")), 9, Eu),
|
|
4141
|
-
((M = (A = e.config.schema) == null ? void 0 : A[q.value]) == null ? void 0 : M.type) === "select" ? (k(), P(
|
|
4141
|
+
((M = (A = e.config.schema) == null ? void 0 : A[q.value]) == null ? void 0 : M.type) === "select" ? (k(), P(U, {
|
|
4142
4142
|
key: 0,
|
|
4143
4143
|
id: O(q.value),
|
|
4144
4144
|
modelValue: i.value[q.value],
|
|
@@ -4173,7 +4173,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
4173
4173
|
appearance: "tertiary",
|
|
4174
4174
|
"data-testid": "clear-filter",
|
|
4175
4175
|
size: "small",
|
|
4176
|
-
onClick: (E) =>
|
|
4176
|
+
onClick: (E) => F(q.value)
|
|
4177
4177
|
}, {
|
|
4178
4178
|
default: f(() => [
|
|
4179
4179
|
J(w(u(t)("filter.clearButtonText")), 1)
|
|
@@ -4339,7 +4339,7 @@ const Qu = ["aria-labelledby"], Zu = { class: "form-section-wrapper" }, Yu = {
|
|
|
4339
4339
|
for (const [l, r] of a)
|
|
4340
4340
|
t[l] = r;
|
|
4341
4341
|
return t;
|
|
4342
|
-
}, ac = (e) => (Pe("data-v-
|
|
4342
|
+
}, ac = (e) => (Pe("data-v-f68c7837"), e = e(), Ve(), e), lc = ["aria-hidden"], rc = {
|
|
4343
4343
|
key: 0,
|
|
4344
4344
|
"data-testid": "kui-icon-svg-title"
|
|
4345
4345
|
}, ic = /* @__PURE__ */ ac(() => /* @__PURE__ */ I("path", {
|
|
@@ -4438,7 +4438,7 @@ const Qu = ["aria-labelledby"], Zu = { class: "form-section-wrapper" }, Yu = {
|
|
|
4438
4438
|
_: 1
|
|
4439
4439
|
}, 8, ["aria-hidden", "style"]));
|
|
4440
4440
|
}
|
|
4441
|
-
}), Gt = /* @__PURE__ */ Wr(sc, [["__scopeId", "data-v-
|
|
4441
|
+
}), Gt = /* @__PURE__ */ Wr(sc, [["__scopeId", "data-v-f68c7837"]]), nc = (e) => (Pe("data-v-61f7c481"), e = e(), Ve(), e), oc = ["aria-hidden"], uc = {
|
|
4442
4442
|
key: 0,
|
|
4443
4443
|
"data-testid": "kui-icon-svg-title"
|
|
4444
4444
|
}, cc = /* @__PURE__ */ nc(() => /* @__PURE__ */ I("path", {
|
|
@@ -4537,7 +4537,7 @@ const Qu = ["aria-labelledby"], Zu = { class: "form-section-wrapper" }, Yu = {
|
|
|
4537
4537
|
_: 1
|
|
4538
4538
|
}, 8, ["aria-hidden", "style"]));
|
|
4539
4539
|
}
|
|
4540
|
-
}), hc = /* @__PURE__ */ Wr(dc, [["__scopeId", "data-v-
|
|
4540
|
+
}), hc = /* @__PURE__ */ Wr(dc, [["__scopeId", "data-v-61f7c481"]]), pc = {
|
|
4541
4541
|
list: {
|
|
4542
4542
|
table_headers: {
|
|
4543
4543
|
id: "ID",
|
|
@@ -5346,9 +5346,9 @@ function St() {
|
|
|
5346
5346
|
stringToNumberArray: t,
|
|
5347
5347
|
numberToStringArray: l,
|
|
5348
5348
|
upstreamsResponseToFields: (o) => {
|
|
5349
|
-
var h, p, g, n, O, H, v,
|
|
5349
|
+
var h, p, g, n, O, H, v, F, $, R, x, N, m, S, U, q, A, M, E, Q, Z, W, z, ee, ue, V, Y, te, C, b, _, ie, G, se, he, ae, ge, je, Le, Xt, ea, ta, aa, la, ra, ia, sa, na, oa, ua, ca, da, ha, pa, fa, ma, ga, va, ya, ba, ka, Ca, _a, wa, Sa, Ia, xa, Aa, Ha, Ta, qa, Oa, Fa, Ua, $a, Na, Ma, ja, Ka, Ea, Ba, Pa, Va, La, Ra, Da, za, Ja, Wa, Qa, Za, Ya, Ga, Xa, el, tl, al, ll, rl, il, sl, nl, ol, ul, cl, dl, hl, pl, fl;
|
|
5350
5350
|
const d = r();
|
|
5351
|
-
return d.name = o.name || "", d.algorithm = o.algorithm || "round-robin", d.hostHeader = o.host_header || "", d.clientCertificate = o.client_certificate ? (h = o.client_certificate) == null ? void 0 : h.id : "", d.tags = ((p = o.tags) == null ? void 0 : p.join(", ")) || "", d.slots = o.slots !== null && o.slots !== void 0 ? o.slots.toString() : "10000", d.hashOn = o.hash_on || "none", d.hashFallback = o.hash_fallback || "none", d.hashOnHeader = o.hash_on_header || "", d.hashOnCookie = o.hash_on_cookie || "", d.hashOnCookiePath = o.hash_on_cookie_path || "/", d.hashOnQueryArgument = o.hash_on_query_arg || "", d.hashOnUriCapture = o.hash_on_uri_capture || "", d.hashFallbackHeader = o.hash_fallback_header || "", d.hashFallbackQueryArgument = o.hash_fallback_query_arg || "", d.hashFallbackUriCapture = o.hash_fallback_uri_capture || "", d.healthchecksThreshold = o.healthchecks.threshold !== null && o.healthchecks.threshold !== void 0 ? o.healthchecks.threshold.toString() : "", d.activeHealthSwitch = ((n = (g = o.healthchecks.active) == null ? void 0 : g.healthy) == null ? void 0 : n.interval) !== 0 || ((H = (O = o.healthchecks.active) == null ? void 0 : O.unhealthy) == null ? void 0 : H.interval) !== 0, d.activeHealthCheck.type = ((v = o.healthchecks.active) == null ? void 0 : v.type) || "http", d.activeHealthCheck.httpPath = ((
|
|
5351
|
+
return d.name = o.name || "", d.algorithm = o.algorithm || "round-robin", d.hostHeader = o.host_header || "", d.clientCertificate = o.client_certificate ? (h = o.client_certificate) == null ? void 0 : h.id : "", d.tags = ((p = o.tags) == null ? void 0 : p.join(", ")) || "", d.slots = o.slots !== null && o.slots !== void 0 ? o.slots.toString() : "10000", d.hashOn = o.hash_on || "none", d.hashFallback = o.hash_fallback || "none", d.hashOnHeader = o.hash_on_header || "", d.hashOnCookie = o.hash_on_cookie || "", d.hashOnCookiePath = o.hash_on_cookie_path || "/", d.hashOnQueryArgument = o.hash_on_query_arg || "", d.hashOnUriCapture = o.hash_on_uri_capture || "", d.hashFallbackHeader = o.hash_fallback_header || "", d.hashFallbackQueryArgument = o.hash_fallback_query_arg || "", d.hashFallbackUriCapture = o.hash_fallback_uri_capture || "", d.healthchecksThreshold = o.healthchecks.threshold !== null && o.healthchecks.threshold !== void 0 ? o.healthchecks.threshold.toString() : "", d.activeHealthSwitch = ((n = (g = o.healthchecks.active) == null ? void 0 : g.healthy) == null ? void 0 : n.interval) !== 0 || ((H = (O = o.healthchecks.active) == null ? void 0 : O.unhealthy) == null ? void 0 : H.interval) !== 0, d.activeHealthCheck.type = ((v = o.healthchecks.active) == null ? void 0 : v.type) || "http", d.activeHealthCheck.httpPath = ((F = o.healthchecks.active) == null ? void 0 : F.http_path) || "/", d.activeHealthCheck.timeout = (($ = o.healthchecks.active) == null ? void 0 : $.timeout) !== null && ((R = o.healthchecks.active) == null ? void 0 : R.timeout) !== void 0 ? (N = (x = o.healthchecks.active) == null ? void 0 : x.timeout) == null ? void 0 : N.toString() : "", d.activeHealthCheck.concurrency = ((m = o.healthchecks.active) == null ? void 0 : m.concurrency) !== null && ((S = o.healthchecks.active) == null ? void 0 : S.concurrency) !== void 0 ? (q = (U = o.healthchecks.active) == null ? void 0 : U.concurrency) == null ? void 0 : q.toString() : "", d.activeHealthCheck.httpsSni = ((A = o.healthchecks.active) == null ? void 0 : A.https_sni) || "", d.activeHealthCheck.verifySsl = ((M = o.healthchecks.active) == null ? void 0 : M.https_verify_certificate) || !1, d.activeHealthCheck.headers = (E = o.healthchecks.active) != null && E.headers && Object.entries((Q = o.healthchecks.active) == null ? void 0 : Q.headers).length > 0 ? Object.entries((Z = o.healthchecks.active) == null ? void 0 : Z.headers).map(([Yr, xt]) => ({ key: Yr, values: xt == null ? void 0 : xt.join(", ") })) : [{ key: "", values: "" }], d.activeHealthCheck.interval = ((z = (W = o.healthchecks.active) == null ? void 0 : W.healthy) == null ? void 0 : z.interval) !== null && ((ue = (ee = o.healthchecks.active) == null ? void 0 : ee.healthy) == null ? void 0 : ue.interval) !== void 0 ? (te = (Y = (V = o.healthchecks.active) == null ? void 0 : V.healthy) == null ? void 0 : Y.interval) == null ? void 0 : te.toString() : "0", d.activeHealthCheck.interval = ((b = (C = o.healthchecks.active) == null ? void 0 : C.healthy) == null ? void 0 : b.interval) !== null && ((ie = (_ = o.healthchecks.active) == null ? void 0 : _.healthy) == null ? void 0 : ie.interval) !== void 0 ? (he = (se = (G = o.healthchecks.active) == null ? void 0 : G.healthy) == null ? void 0 : se.interval) == null ? void 0 : he.toString() : "0", d.activeHealthCheck.successes = ((ge = (ae = o.healthchecks.active) == null ? void 0 : ae.healthy) == null ? void 0 : ge.successes) !== null && ((Le = (je = o.healthchecks.active) == null ? void 0 : je.healthy) == null ? void 0 : Le.successes) !== void 0 ? (ta = (ea = (Xt = o.healthchecks.active) == null ? void 0 : Xt.healthy) == null ? void 0 : ea.successes) == null ? void 0 : ta.toString() : "0", d.activeHealthCheck.httpStatuses = (la = (aa = o.healthchecks.active) == null ? void 0 : aa.healthy) != null && la.http_statuses ? l(((ia = (ra = o.healthchecks.active) == null ? void 0 : ra.healthy) == null ? void 0 : ia.http_statuses) || []) : Kt, d.activeHealthCheck.unhealthyInterval = ((na = (sa = o.healthchecks.active) == null ? void 0 : sa.unhealthy) == null ? void 0 : na.interval) !== null && ((ua = (oa = o.healthchecks.active) == null ? void 0 : oa.unhealthy) == null ? void 0 : ua.interval) !== void 0 ? (ha = (da = (ca = o.healthchecks.active) == null ? void 0 : ca.unhealthy) == null ? void 0 : da.interval) == null ? void 0 : ha.toString() : "0", d.activeHealthCheck.httpFailures = ((fa = (pa = o.healthchecks.active) == null ? void 0 : pa.unhealthy) == null ? void 0 : fa.http_failures) !== null && ((ga = (ma = o.healthchecks.active) == null ? void 0 : ma.unhealthy) == null ? void 0 : ga.http_failures) !== void 0 ? (ba = (ya = (va = o.healthchecks.active) == null ? void 0 : va.unhealthy) == null ? void 0 : ya.http_failures) == null ? void 0 : ba.toString() : "0", d.activeHealthCheck.unhealthyTimeouts = ((Ca = (ka = o.healthchecks.active) == null ? void 0 : ka.unhealthy) == null ? void 0 : Ca.timeouts) !== null && ((wa = (_a = o.healthchecks.active) == null ? void 0 : _a.unhealthy) == null ? void 0 : wa.timeouts) !== void 0 ? (xa = (Ia = (Sa = o.healthchecks.active) == null ? void 0 : Sa.unhealthy) == null ? void 0 : Ia.timeouts) == null ? void 0 : xa.toString() : "0", d.activeHealthCheck.unhealthyHttpStatuses = (Ha = (Aa = o.healthchecks.active) == null ? void 0 : Aa.unhealthy) != null && Ha.http_statuses ? l(((qa = (Ta = o.healthchecks.active) == null ? void 0 : Ta.unhealthy) == null ? void 0 : qa.http_statuses) || []) : Bt, d.passiveHealthSwitch = ((Fa = (Oa = o.healthchecks.passive) == null ? void 0 : Oa.healthy) == null ? void 0 : Fa.successes) !== 0 || (($a = (Ua = o.healthchecks.passive) == null ? void 0 : Ua.unhealthy) == null ? void 0 : $a.timeouts) !== 0 || ((Ma = (Na = o.healthchecks.passive) == null ? void 0 : Na.unhealthy) == null ? void 0 : Ma.tcp_failures) !== 0 || ((Ka = (ja = o.healthchecks.passive) == null ? void 0 : ja.unhealthy) == null ? void 0 : Ka.http_failures) !== 0, d.passiveHealthCheck.type = ((Ea = o.healthchecks.passive) == null ? void 0 : Ea.type) || "http", d.passiveHealthCheck.successes = ((Pa = (Ba = o.healthchecks.passive) == null ? void 0 : Ba.healthy) == null ? void 0 : Pa.successes) !== null && ((La = (Va = o.healthchecks.passive) == null ? void 0 : Va.healthy) == null ? void 0 : La.successes) !== void 0 ? (za = (Da = (Ra = o.healthchecks.passive) == null ? void 0 : Ra.healthy) == null ? void 0 : Da.successes) == null ? void 0 : za.toString() : "0", d.passiveHealthCheck.httpStatuses = (Wa = (Ja = o.healthchecks.passive) == null ? void 0 : Ja.healthy) != null && Wa.http_statuses ? l(((Za = (Qa = o.healthchecks.passive) == null ? void 0 : Qa.healthy) == null ? void 0 : Za.http_statuses) || []) : Et, d.passiveHealthCheck.timeouts = ((Ga = (Ya = o.healthchecks.passive) == null ? void 0 : Ya.unhealthy) == null ? void 0 : Ga.timeouts) !== null && ((el = (Xa = o.healthchecks.passive) == null ? void 0 : Xa.unhealthy) == null ? void 0 : el.timeouts) !== void 0 ? (ll = (al = (tl = o.healthchecks.passive) == null ? void 0 : tl.unhealthy) == null ? void 0 : al.timeouts) == null ? void 0 : ll.toString() : "0", d.passiveHealthCheck.tcpFailures = ((il = (rl = o.healthchecks.passive) == null ? void 0 : rl.unhealthy) == null ? void 0 : il.tcp_failures) !== null && ((nl = (sl = o.healthchecks.passive) == null ? void 0 : sl.unhealthy) == null ? void 0 : nl.tcp_failures) !== void 0 ? (cl = (ul = (ol = o.healthchecks.passive) == null ? void 0 : ol.unhealthy) == null ? void 0 : ul.tcp_failures) == null ? void 0 : cl.toString() : "", d.passiveHealthCheck.unhealthyHttpStatuses = (hl = (dl = o.healthchecks.passive) == null ? void 0 : dl.unhealthy) != null && hl.http_statuses ? l(((fl = (pl = o.healthchecks.passive) == null ? void 0 : pl.unhealthy) == null ? void 0 : fl.http_statuses) || []) : Pt, d;
|
|
5352
5352
|
},
|
|
5353
5353
|
getDefaultUpstreamFields: r,
|
|
5354
5354
|
objectsAreEqual: (o, d) => {
|
|
@@ -5361,7 +5361,7 @@ function St() {
|
|
|
5361
5361
|
cloneDeep: (o) => JSON.parse(JSON.stringify(o))
|
|
5362
5362
|
};
|
|
5363
5363
|
}
|
|
5364
|
-
const
|
|
5364
|
+
const Fe = {
|
|
5365
5365
|
useI18n: gc,
|
|
5366
5366
|
useMultiselectCreation: it,
|
|
5367
5367
|
useHelpers: St
|
|
@@ -5433,7 +5433,7 @@ const Ue = {
|
|
|
5433
5433
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
5434
5434
|
setup(e, { emit: a }) {
|
|
5435
5435
|
var ue;
|
|
5436
|
-
const t = a, l = e, { i18n: { t: r } } =
|
|
5436
|
+
const t = a, l = e, { i18n: { t: r } } = Fe.useI18n(), s = Lt(), { axiosInstance: i } = wt((ue = l.config) == null ? void 0 : ue.axiosRequestConfig), c = B(1), o = T(() => l.config.app !== "kongManager" || !!l.config.disableSorting), d = {
|
|
5437
5437
|
name: { label: r("upstreams.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
5438
5438
|
slots: { label: r("upstreams.list.table_headers.slots"), searchable: !0, sortable: !0 },
|
|
5439
5439
|
tags: { label: r("upstreams.list.table_headers.tags"), sortable: !1 }
|
|
@@ -5456,7 +5456,7 @@ const Ue = {
|
|
|
5456
5456
|
};
|
|
5457
5457
|
}), { fetcher: O, fetcherState: H } = Jr(l.config, p.value), v = () => {
|
|
5458
5458
|
g.value = "";
|
|
5459
|
-
},
|
|
5459
|
+
}, F = () => {
|
|
5460
5460
|
c.value++;
|
|
5461
5461
|
}, $ = B(null), R = (V, Y) => {
|
|
5462
5462
|
const te = V.id;
|
|
@@ -5495,16 +5495,16 @@ const Ue = {
|
|
|
5495
5495
|
}), S = (V) => ({
|
|
5496
5496
|
label: r("upstreams.actions.edit"),
|
|
5497
5497
|
to: l.config.getEditRoute(V)
|
|
5498
|
-
}),
|
|
5499
|
-
|
|
5498
|
+
}), U = B(void 0), q = B(!1), A = B(!1), M = B(""), E = Dr(l.config, p.value), Q = (V) => {
|
|
5499
|
+
U.value = V, q.value = !0;
|
|
5500
5500
|
}, Z = () => {
|
|
5501
5501
|
q.value = !1;
|
|
5502
5502
|
}, W = async () => {
|
|
5503
5503
|
var V, Y, te;
|
|
5504
|
-
if ((V =
|
|
5504
|
+
if ((V = U.value) != null && V.id) {
|
|
5505
5505
|
A.value = !0;
|
|
5506
5506
|
try {
|
|
5507
|
-
await i.delete(E(
|
|
5507
|
+
await i.delete(E(U.value.id)), A.value = !1, q.value = !1, c.value++, t("delete:success", U.value);
|
|
5508
5508
|
} catch (C) {
|
|
5509
5509
|
M.value = ((te = (Y = C.response) == null ? void 0 : Y.data) == null ? void 0 : te.message) || C.message || r("upstreams.errors.delete"), t("error", C);
|
|
5510
5510
|
} finally {
|
|
@@ -5549,7 +5549,7 @@ const Ue = {
|
|
|
5549
5549
|
"use-action-outside": e.useActionOutside,
|
|
5550
5550
|
onClearSearchInput: v,
|
|
5551
5551
|
"onClick:row": Y[1] || (Y[1] = (G) => N(G)),
|
|
5552
|
-
onSort:
|
|
5552
|
+
onSort: F
|
|
5553
5553
|
}, {
|
|
5554
5554
|
"toolbar-filter": f(() => [
|
|
5555
5555
|
y(u(Lu), {
|
|
@@ -5681,7 +5681,7 @@ const Ue = {
|
|
|
5681
5681
|
y(u(Rr), {
|
|
5682
5682
|
"action-pending": A.value,
|
|
5683
5683
|
description: u(r)("upstreams.delete.description"),
|
|
5684
|
-
"entity-name":
|
|
5684
|
+
"entity-name": U.value && (U.value.name || U.value.id),
|
|
5685
5685
|
"entity-type": u(Rt).Upstream,
|
|
5686
5686
|
error: M.value,
|
|
5687
5687
|
title: u(r)("upstreams.delete.title"),
|
|
@@ -5692,12 +5692,12 @@ const Ue = {
|
|
|
5692
5692
|
]);
|
|
5693
5693
|
};
|
|
5694
5694
|
}
|
|
5695
|
-
}),
|
|
5695
|
+
}), Ue = (e, a) => {
|
|
5696
5696
|
const t = e.__vccOpts || e;
|
|
5697
5697
|
for (const [l, r] of a)
|
|
5698
5698
|
t[l] = r;
|
|
5699
5699
|
return t;
|
|
5700
|
-
}, Id = /* @__PURE__ */
|
|
5700
|
+
}, Id = /* @__PURE__ */ Ue(Ic, [["__scopeId", "data-v-263b5e04"]]), ct = "/v2/control-planes/{controlPlaneId}/core-entities", dt = "/{workspace}", ht = {
|
|
5701
5701
|
list: {
|
|
5702
5702
|
konnect: `${ct}/upstreams/{upstreamId}/targets`,
|
|
5703
5703
|
kongManager: `${dt}/upstreams/{upstreamId}/targets`
|
|
@@ -5742,7 +5742,7 @@ const Ue = {
|
|
|
5742
5742
|
emits: ["update", "error", "loading", "cancel"],
|
|
5743
5743
|
setup(e, { emit: a }) {
|
|
5744
5744
|
var N;
|
|
5745
|
-
const t = a, l = e, { i18n: { t: r } } =
|
|
5745
|
+
const t = a, l = e, { i18n: { t: r } } = Fe.useI18n(), { getMessageFromError: s } = zr(), { axiosInstance: i } = wt((N = l.config) == null ? void 0 : N.axiosRequestConfig), c = T(() => {
|
|
5746
5746
|
var m;
|
|
5747
5747
|
return ht.form[l.config.app].edit.replace(/{upstreamId}/gi, ((m = l.config) == null ? void 0 : m.upstreamId) || "");
|
|
5748
5748
|
}), o = T(() => l.targetId ? Se.Edit : Se.Create), d = T(() => o.value === Se.Edit ? r("targets.form.edit.title") : r("targets.form.create.title")), h = pt({
|
|
@@ -5771,33 +5771,33 @@ const Ue = {
|
|
|
5771
5771
|
h.fields.target = (m == null ? void 0 : m.target) || "", h.fields.weight = (m == null ? void 0 : m.weight) ?? "", h.fields.tags = ((S = m == null ? void 0 : m.tags) == null ? void 0 : S.join(", ")) || "", Object.assign(p, h.fields);
|
|
5772
5772
|
}, v = () => {
|
|
5773
5773
|
h.errorMessage = "", t("cancel");
|
|
5774
|
-
},
|
|
5775
|
-
var S,
|
|
5774
|
+
}, F = T(() => {
|
|
5775
|
+
var S, U;
|
|
5776
5776
|
let m = `${l.config.apiBaseUrl}${ht.form[l.config.app].validate}`;
|
|
5777
|
-
return l.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((S = l.config) == null ? void 0 : S.controlPlaneId) || "") : l.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (
|
|
5777
|
+
return l.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((S = l.config) == null ? void 0 : S.controlPlaneId) || "") : l.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (U = l.config) != null && U.workspace ? `/${l.config.workspace}` : "")), m = m.replace(/{id}/gi, l.targetId), m;
|
|
5778
5778
|
}), $ = T(() => {
|
|
5779
|
-
var S,
|
|
5779
|
+
var S, U, q, A;
|
|
5780
5780
|
let m = `${l.config.apiBaseUrl}${ht.form[l.config.app][o.value]}`;
|
|
5781
|
-
return l.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((S = l.config) == null ? void 0 : S.controlPlaneId) || "").replace(/{upstreamId}/gi, ((
|
|
5781
|
+
return l.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((S = l.config) == null ? void 0 : S.controlPlaneId) || "").replace(/{upstreamId}/gi, ((U = l.config) == null ? void 0 : U.upstreamId) || "") : l.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (q = l.config) != null && q.workspace ? `/${l.config.workspace}` : "").replace(/{upstreamId}/gi, ((A = l.config) == null ? void 0 : A.upstreamId) || "")), m = m.replace(/{id}/gi, l.targetId), m;
|
|
5782
5782
|
}), R = T(() => {
|
|
5783
|
-
var m, S,
|
|
5783
|
+
var m, S, U;
|
|
5784
5784
|
return {
|
|
5785
5785
|
target: h.fields.target,
|
|
5786
5786
|
weight: parseInt(h.fields.weight),
|
|
5787
|
-
tags: (
|
|
5787
|
+
tags: (U = (S = (m = h.fields.tags) == null ? void 0 : m.split(",")) == null ? void 0 : S.map((q) => String(q || "").trim())) == null ? void 0 : U.filter((q) => q !== ""),
|
|
5788
5788
|
upstream: { id: l.config.upstreamId }
|
|
5789
5789
|
};
|
|
5790
5790
|
}), x = async () => {
|
|
5791
5791
|
var m, S;
|
|
5792
5792
|
try {
|
|
5793
5793
|
h.isReadonly = !0, h.errorMessage = "";
|
|
5794
|
-
let
|
|
5795
|
-
if (await i.post(
|
|
5796
|
-
const { data: q } =
|
|
5794
|
+
let U;
|
|
5795
|
+
if (await i.post(F.value, R.value), o.value === "create" ? U = await i.post($.value, R.value) : o.value === "edit" && (U = ((m = l.config) == null ? void 0 : m.app) === "konnect" ? await i.put($.value, R.value) : await i.patch($.value, R.value)), U) {
|
|
5796
|
+
const { data: q } = U;
|
|
5797
5797
|
h.fields.target = (q == null ? void 0 : q.name) || "", h.fields.weight = (q == null ? void 0 : q.weight) ?? 100, h.fields.tags = ((S = q == null ? void 0 : q.tags) == null ? void 0 : S.join(", ")) || "", t("update", q), Object.assign(h.fields, g);
|
|
5798
5798
|
}
|
|
5799
|
-
} catch (
|
|
5800
|
-
h.errorMessage = s(
|
|
5799
|
+
} catch (U) {
|
|
5800
|
+
h.errorMessage = s(U), t("error", U);
|
|
5801
5801
|
} finally {
|
|
5802
5802
|
h.isReadonly = !1;
|
|
5803
5803
|
}
|
|
@@ -5805,7 +5805,7 @@ const Ue = {
|
|
|
5805
5805
|
return ke(() => l.targetId, () => {
|
|
5806
5806
|
Object.assign(h.fields, g);
|
|
5807
5807
|
}), (m, S) => {
|
|
5808
|
-
const
|
|
5808
|
+
const U = K("KInput"), q = K("KPrompt");
|
|
5809
5809
|
return k(), P(q, {
|
|
5810
5810
|
"action-button-disabled": !O.value || h.isReadonly,
|
|
5811
5811
|
"action-button-text": u(r)("targets.form.buttons.save"),
|
|
@@ -5834,7 +5834,7 @@ const Ue = {
|
|
|
5834
5834
|
m.$slots.info ? (k(), j("div", Hc, [
|
|
5835
5835
|
re(m.$slots, "info", {}, void 0, !0)
|
|
5836
5836
|
])) : D("", !0),
|
|
5837
|
-
y(
|
|
5837
|
+
y(U, {
|
|
5838
5838
|
modelValue: h.fields.target,
|
|
5839
5839
|
"onUpdate:modelValue": S[0] || (S[0] = (A) => h.fields.target = A),
|
|
5840
5840
|
modelModifiers: { trim: !0 },
|
|
@@ -5848,7 +5848,7 @@ const Ue = {
|
|
|
5848
5848
|
required: "",
|
|
5849
5849
|
type: "text"
|
|
5850
5850
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
|
|
5851
|
-
y(
|
|
5851
|
+
y(U, {
|
|
5852
5852
|
modelValue: h.fields.weight,
|
|
5853
5853
|
"onUpdate:modelValue": S[1] || (S[1] = (A) => h.fields.weight = A),
|
|
5854
5854
|
autocomplete: "off",
|
|
@@ -5864,7 +5864,7 @@ const Ue = {
|
|
|
5864
5864
|
required: "",
|
|
5865
5865
|
type: "number"
|
|
5866
5866
|
}, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "readonly"]),
|
|
5867
|
-
y(
|
|
5867
|
+
y(U, {
|
|
5868
5868
|
modelValue: h.fields.tags,
|
|
5869
5869
|
"onUpdate:modelValue": S[2] || (S[2] = (A) => h.fields.tags = A),
|
|
5870
5870
|
modelModifiers: { trim: !0 },
|
|
@@ -5887,7 +5887,7 @@ const Ue = {
|
|
|
5887
5887
|
}, 8, ["action-button-disabled", "action-button-text", "cancel-button-text", "title", "visible"]);
|
|
5888
5888
|
};
|
|
5889
5889
|
}
|
|
5890
|
-
}), qc = /* @__PURE__ */
|
|
5890
|
+
}), qc = /* @__PURE__ */ Ue(Tc, [["__scopeId", "data-v-cfae2d2a"]]), Oc = { class: "kong-ui-entities-targets-list" }, Fc = { class: "target-address" }, Uc = /* @__PURE__ */ X({
|
|
5891
5891
|
__name: "TargetsList",
|
|
5892
5892
|
props: {
|
|
5893
5893
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5928,7 +5928,7 @@ const Ue = {
|
|
|
5928
5928
|
emits: ["error", "copy:success", "copy:error", "delete:success", "health-actions:healthy", "health-actions:unhealthy", "create:target", "update:target"],
|
|
5929
5929
|
setup(e, { emit: a }) {
|
|
5930
5930
|
var te;
|
|
5931
|
-
const t = a, l = e, { i18n: { t: r } } =
|
|
5931
|
+
const t = a, l = e, { i18n: { t: r } } = Fe.useI18n(), { axiosInstance: s } = wt((te = l.config) == null ? void 0 : te.axiosRequestConfig), i = B(1), c = T(() => l.config.app !== "kongManager" || !!l.config.disableSorting), d = {
|
|
5932
5932
|
target: { label: r("targets.list.table_headers.target_address"), sortable: !0 },
|
|
5933
5933
|
weight: { label: r("targets.list.table_headers.weight"), sortable: !0 },
|
|
5934
5934
|
tags: { label: r("targets.list.table_headers.tags"), sortable: !1 }
|
|
@@ -5955,7 +5955,7 @@ const Ue = {
|
|
|
5955
5955
|
field: "id",
|
|
5956
5956
|
message: r("targets.copy.success", { val: _ })
|
|
5957
5957
|
});
|
|
5958
|
-
},
|
|
5958
|
+
}, F = (C, b) => {
|
|
5959
5959
|
const _ = JSON.stringify(C);
|
|
5960
5960
|
if (!b(_)) {
|
|
5961
5961
|
t("copy:error", {
|
|
@@ -5970,7 +5970,7 @@ const Ue = {
|
|
|
5970
5970
|
});
|
|
5971
5971
|
}, $ = (C) => {
|
|
5972
5972
|
z.value = C, ee.value = !0;
|
|
5973
|
-
}, R = (C) => l.config.app === "konnect" ? !1 : l.config.canMarkHealthy(C), x = (C) => l.config.app === "konnect" ? !1 : l.config.canMarkUnhealthy(C), N = B(void 0), m = B(!1), S = B(!1),
|
|
5973
|
+
}, R = (C) => l.config.app === "konnect" ? !1 : l.config.canMarkHealthy(C), x = (C) => l.config.app === "konnect" ? !1 : l.config.canMarkUnhealthy(C), N = B(void 0), m = B(!1), S = B(!1), U = B(""), q = Dr(l.config, h.value), A = (C) => {
|
|
5974
5974
|
N.value = C, m.value = !0;
|
|
5975
5975
|
}, M = () => {
|
|
5976
5976
|
m.value = !1;
|
|
@@ -5981,7 +5981,7 @@ const Ue = {
|
|
|
5981
5981
|
try {
|
|
5982
5982
|
await s.delete(q(N.value.id)), S.value = !1, m.value = !1, i.value++, t("delete:success", N.value);
|
|
5983
5983
|
} catch (ie) {
|
|
5984
|
-
|
|
5984
|
+
U.value = ((_ = (b = ie.response) == null ? void 0 : b.data) == null ? void 0 : _.message) || ie.message || r("targets.errors.delete"), t("error", ie);
|
|
5985
5985
|
} finally {
|
|
5986
5986
|
S.value = !1;
|
|
5987
5987
|
}
|
|
@@ -6077,7 +6077,7 @@ const Ue = {
|
|
|
6077
6077
|
], 8, ["disabled"]))
|
|
6078
6078
|
]),
|
|
6079
6079
|
target: f(({ rowValue: ae }) => [
|
|
6080
|
-
I("span",
|
|
6080
|
+
I("span", Fc, w(ae), 1)
|
|
6081
6081
|
]),
|
|
6082
6082
|
tags: f(({ rowValue: ae }) => [
|
|
6083
6083
|
y(G, null, {
|
|
@@ -6114,7 +6114,7 @@ const Ue = {
|
|
|
6114
6114
|
default: f(({ copyToClipboard: ge }) => [
|
|
6115
6115
|
y(se, {
|
|
6116
6116
|
"data-testid": "action-entity-copy-json",
|
|
6117
|
-
onClick: (je) =>
|
|
6117
|
+
onClick: (je) => F(ae, ge)
|
|
6118
6118
|
}, {
|
|
6119
6119
|
default: f(() => [
|
|
6120
6120
|
J(w(u(r)("targets.actions.copy_json")), 1)
|
|
@@ -6198,7 +6198,7 @@ const Ue = {
|
|
|
6198
6198
|
"action-pending": S.value,
|
|
6199
6199
|
description: u(r)("targets.delete.description"),
|
|
6200
6200
|
"entity-type": u(Rt).Target,
|
|
6201
|
-
error:
|
|
6201
|
+
error: U.value,
|
|
6202
6202
|
"need-confirm": !1,
|
|
6203
6203
|
title: u(r)("targets.delete.title"),
|
|
6204
6204
|
visible: m.value,
|
|
@@ -6223,7 +6223,7 @@ const Ue = {
|
|
|
6223
6223
|
]);
|
|
6224
6224
|
};
|
|
6225
6225
|
}
|
|
6226
|
-
}), xd = /* @__PURE__ */
|
|
6226
|
+
}), xd = /* @__PURE__ */ Ue(Uc, [["__scopeId", "data-v-4b4633ae"]]), $c = { key: 1 }, Nc = /* @__PURE__ */ X({
|
|
6227
6227
|
__name: "UpstreamsFormGeneralInfo",
|
|
6228
6228
|
props: {
|
|
6229
6229
|
config: {
|
|
@@ -6255,7 +6255,7 @@ const Ue = {
|
|
|
6255
6255
|
emits: ["update:name", "update:host-header", "update:client-certificate", "update:tags"],
|
|
6256
6256
|
setup(e, { emit: a }) {
|
|
6257
6257
|
var M, E, Q, Z;
|
|
6258
|
-
const { i18nT: t, i18n: { t: l } } =
|
|
6258
|
+
const { i18nT: t, i18n: { t: l } } = Fe.useI18n(), r = e, s = a, {
|
|
6259
6259
|
debouncedQueryChange: i,
|
|
6260
6260
|
loading: c,
|
|
6261
6261
|
loadItems: o,
|
|
@@ -6272,7 +6272,7 @@ const Ue = {
|
|
|
6272
6272
|
} = Bl(r.config, (Z = Xe.form[(Q = r.config) == null ? void 0 : Q.app]) == null ? void 0 : Z.getCertificates), H = B(""), v = T(() => {
|
|
6273
6273
|
var W;
|
|
6274
6274
|
return !!r.name && !((W = h.value) != null && W.some((z) => z.host === r.name));
|
|
6275
|
-
}),
|
|
6275
|
+
}), F = T(() => {
|
|
6276
6276
|
var z, ee, ue;
|
|
6277
6277
|
const W = v.value && r.name.includes((z = H.value) == null ? void 0 : z.toLowerCase());
|
|
6278
6278
|
return (ue = d.value) == null ? void 0 : ue.map((V) => ({ label: V.host, value: V.id })).concat(
|
|
@@ -6283,12 +6283,12 @@ const Ue = {
|
|
|
6283
6283
|
return (W = O.value) == null ? void 0 : W.map((z) => ({ label: z.id, value: z.id }));
|
|
6284
6284
|
}), R = B(""), x = B({ value: "", label: "" }), N = T(() => {
|
|
6285
6285
|
var W, z;
|
|
6286
|
-
return ((W =
|
|
6286
|
+
return ((W = F.value.find((ee) => ee.value === R.value)) == null ? void 0 : W.label) || ((z = x.value) == null ? void 0 : z.label);
|
|
6287
6287
|
}), m = (W) => {
|
|
6288
6288
|
H.value = W, i(W);
|
|
6289
6289
|
}, S = (W) => {
|
|
6290
6290
|
x.value = W;
|
|
6291
|
-
},
|
|
6291
|
+
}, U = () => {
|
|
6292
6292
|
x.value = { value: "", label: "" };
|
|
6293
6293
|
}, q = (W) => {
|
|
6294
6294
|
R.value = W, s("update:name", N.value);
|
|
@@ -6296,7 +6296,7 @@ const Ue = {
|
|
|
6296
6296
|
return st(async () => {
|
|
6297
6297
|
var W, z;
|
|
6298
6298
|
try {
|
|
6299
|
-
A.value = !0, await o(), r.name && (R.value = ((z = (W =
|
|
6299
|
+
A.value = !0, await o(), r.name && (R.value = ((z = (W = F.value.find((ee) => ee.label === r.name)) == null ? void 0 : W.value) == null ? void 0 : z.toString()) || r.name), await n();
|
|
6300
6300
|
} finally {
|
|
6301
6301
|
A.value = !1;
|
|
6302
6302
|
}
|
|
@@ -6319,7 +6319,7 @@ const Ue = {
|
|
|
6319
6319
|
"enable-filtering": "",
|
|
6320
6320
|
"enable-item-creation": "",
|
|
6321
6321
|
"filter-function": () => !0,
|
|
6322
|
-
items:
|
|
6322
|
+
items: F.value,
|
|
6323
6323
|
label: u(l)("upstreams.form.fields.name.label"),
|
|
6324
6324
|
"label-attributes": { tooltipAttributes: { "max-width": "250px" } },
|
|
6325
6325
|
loading: u(c),
|
|
@@ -6329,7 +6329,7 @@ const Ue = {
|
|
|
6329
6329
|
required: "",
|
|
6330
6330
|
width: "100%",
|
|
6331
6331
|
onItemAdded: S,
|
|
6332
|
-
onItemRemoved:
|
|
6332
|
+
onItemRemoved: U,
|
|
6333
6333
|
onQueryChange: m,
|
|
6334
6334
|
"onUpdate:modelValue": q
|
|
6335
6335
|
}, {
|
|
@@ -6391,7 +6391,7 @@ const Ue = {
|
|
|
6391
6391
|
}, 8, ["description", "title"]);
|
|
6392
6392
|
};
|
|
6393
6393
|
}
|
|
6394
|
-
}), Mc = /* @__PURE__ */
|
|
6394
|
+
}), Mc = /* @__PURE__ */ Ue(Nc, [["__scopeId", "data-v-e33bdb7f"]]), It = {
|
|
6395
6395
|
upstreamObject: "https://docs.konghq.com/gateway/latest/admin-api/#upstream-object",
|
|
6396
6396
|
loadBalancing: "https://docs.konghq.com/gateway/latest/how-kong-works/load-balancing/#main"
|
|
6397
6397
|
}, jc = { class: "fields-group-title" }, Kc = { class: "fields-group-text" }, Ec = { class: "fields-group-title" }, Bc = { class: "fields-group-text" }, Pc = /* @__PURE__ */ X({
|
|
@@ -6453,7 +6453,7 @@ const Ue = {
|
|
|
6453
6453
|
},
|
|
6454
6454
|
emits: ["update:algorithm", "update:slots", "update:hash-on", "update:hash-fallback", "update:hash-on-header", "update:hash-on-cookie", "update:hash-on-cookie-path", "update:hash-on-query-argument", "update:hash-on-uri-capture", "update:hash-fallback-header", "update:hash-fallback-query-argument", "update:hash-fallback-uri-capture"],
|
|
6455
6455
|
setup(e, { emit: a }) {
|
|
6456
|
-
const { i18nT: t, i18n: { t: l } } =
|
|
6456
|
+
const { i18nT: t, i18n: { t: l } } = Fe.useI18n(), { inRange: r } = St(), s = e, i = a, c = B([
|
|
6457
6457
|
{
|
|
6458
6458
|
label: l("upstreams.form.algorithms.round_robin_label"),
|
|
6459
6459
|
value: "round-robin",
|
|
@@ -6550,7 +6550,7 @@ const Ue = {
|
|
|
6550
6550
|
"model-value": e.algorithm,
|
|
6551
6551
|
readonly: e.readonly,
|
|
6552
6552
|
width: "100%",
|
|
6553
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
6553
|
+
"onUpdate:modelValue": g[0] || (g[0] = (F) => i("update:algorithm", F))
|
|
6554
6554
|
}, null, 8, ["items", "label", "model-value", "readonly"]),
|
|
6555
6555
|
y(H, {
|
|
6556
6556
|
autocomplete: "off",
|
|
@@ -6564,7 +6564,7 @@ const Ue = {
|
|
|
6564
6564
|
"model-value": e.slots,
|
|
6565
6565
|
readonly: e.readonly,
|
|
6566
6566
|
type: "number",
|
|
6567
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
6567
|
+
"onUpdate:modelValue": g[1] || (g[1] = (F) => i("update:slots", F))
|
|
6568
6568
|
}, null, 8, ["error", "error-message", "help", "label", "max", "min", "model-value", "readonly"]),
|
|
6569
6569
|
y(v, null, {
|
|
6570
6570
|
default: f(() => [
|
|
@@ -6577,7 +6577,7 @@ const Ue = {
|
|
|
6577
6577
|
"model-value": e.hashOn,
|
|
6578
6578
|
readonly: e.readonly,
|
|
6579
6579
|
width: "100%",
|
|
6580
|
-
"onUpdate:modelValue": g[2] || (g[2] = (
|
|
6580
|
+
"onUpdate:modelValue": g[2] || (g[2] = (F) => i("update:hash-on", F))
|
|
6581
6581
|
}, null, 8, ["items", "label", "model-value", "readonly"]),
|
|
6582
6582
|
e.hashOn === "header" ? (k(), P(H, {
|
|
6583
6583
|
key: 0,
|
|
@@ -6589,7 +6589,7 @@ const Ue = {
|
|
|
6589
6589
|
readonly: e.readonly,
|
|
6590
6590
|
required: "",
|
|
6591
6591
|
type: "text",
|
|
6592
|
-
"onUpdate:modelValue": g[3] || (g[3] = (
|
|
6592
|
+
"onUpdate:modelValue": g[3] || (g[3] = (F) => i("update:hash-on-header", F))
|
|
6593
6593
|
}, null, 8, ["label", "model-value", "readonly"])) : D("", !0),
|
|
6594
6594
|
e.hashOn === "cookie" ? (k(), j(fe, { key: 1 }, [
|
|
6595
6595
|
y(H, {
|
|
@@ -6601,7 +6601,7 @@ const Ue = {
|
|
|
6601
6601
|
readonly: e.readonly,
|
|
6602
6602
|
required: "",
|
|
6603
6603
|
type: "text",
|
|
6604
|
-
"onUpdate:modelValue": g[4] || (g[4] = (
|
|
6604
|
+
"onUpdate:modelValue": g[4] || (g[4] = (F) => i("update:hash-on-cookie", F))
|
|
6605
6605
|
}, null, 8, ["label", "model-value", "readonly"]),
|
|
6606
6606
|
y(H, {
|
|
6607
6607
|
autocomplete: "off",
|
|
@@ -6612,7 +6612,7 @@ const Ue = {
|
|
|
6612
6612
|
readonly: e.readonly,
|
|
6613
6613
|
required: "",
|
|
6614
6614
|
type: "text",
|
|
6615
|
-
"onUpdate:modelValue": g[5] || (g[5] = (
|
|
6615
|
+
"onUpdate:modelValue": g[5] || (g[5] = (F) => i("update:hash-on-cookie-path", F))
|
|
6616
6616
|
}, null, 8, ["label", "model-value", "readonly"])
|
|
6617
6617
|
], 64)) : D("", !0),
|
|
6618
6618
|
e.hashOn === "query_arg" ? (k(), P(H, {
|
|
@@ -6625,7 +6625,7 @@ const Ue = {
|
|
|
6625
6625
|
readonly: e.readonly,
|
|
6626
6626
|
required: "",
|
|
6627
6627
|
type: "text",
|
|
6628
|
-
"onUpdate:modelValue": g[6] || (g[6] = (
|
|
6628
|
+
"onUpdate:modelValue": g[6] || (g[6] = (F) => i("update:hash-on-query-argument", F))
|
|
6629
6629
|
}, null, 8, ["label", "model-value", "readonly"])) : D("", !0),
|
|
6630
6630
|
e.hashOn === "uri_capture" ? (k(), P(H, {
|
|
6631
6631
|
key: 3,
|
|
@@ -6637,7 +6637,7 @@ const Ue = {
|
|
|
6637
6637
|
readonly: e.readonly,
|
|
6638
6638
|
required: "",
|
|
6639
6639
|
type: "text",
|
|
6640
|
-
"onUpdate:modelValue": g[7] || (g[7] = (
|
|
6640
|
+
"onUpdate:modelValue": g[7] || (g[7] = (F) => i("update:hash-on-uri-capture", F))
|
|
6641
6641
|
}, null, 8, ["label", "model-value", "readonly"])) : D("", !0)
|
|
6642
6642
|
]),
|
|
6643
6643
|
_: 1
|
|
@@ -6655,7 +6655,7 @@ const Ue = {
|
|
|
6655
6655
|
"model-value": e.hashFallback,
|
|
6656
6656
|
readonly: e.readonly,
|
|
6657
6657
|
width: "100%",
|
|
6658
|
-
"onUpdate:modelValue": g[8] || (g[8] = (
|
|
6658
|
+
"onUpdate:modelValue": g[8] || (g[8] = (F) => i("update:hash-fallback", F))
|
|
6659
6659
|
}, {
|
|
6660
6660
|
"label-tooltip": f(() => [
|
|
6661
6661
|
y(u(t), {
|
|
@@ -6683,7 +6683,7 @@ const Ue = {
|
|
|
6683
6683
|
readonly: e.readonly,
|
|
6684
6684
|
required: "",
|
|
6685
6685
|
type: "text",
|
|
6686
|
-
"onUpdate:modelValue": g[9] || (g[9] = (
|
|
6686
|
+
"onUpdate:modelValue": g[9] || (g[9] = (F) => i("update:hash-fallback-header", F))
|
|
6687
6687
|
}, null, 8, ["label", "model-value", "readonly"])) : D("", !0),
|
|
6688
6688
|
e.hashFallback === "cookie" ? (k(), j(fe, { key: 1 }, [
|
|
6689
6689
|
y(H, {
|
|
@@ -6695,7 +6695,7 @@ const Ue = {
|
|
|
6695
6695
|
readonly: e.readonly,
|
|
6696
6696
|
required: "",
|
|
6697
6697
|
type: "text",
|
|
6698
|
-
"onUpdate:modelValue": g[10] || (g[10] = (
|
|
6698
|
+
"onUpdate:modelValue": g[10] || (g[10] = (F) => i("update:hash-on-cookie", F))
|
|
6699
6699
|
}, null, 8, ["label", "model-value", "readonly"]),
|
|
6700
6700
|
y(H, {
|
|
6701
6701
|
autocomplete: "off",
|
|
@@ -6706,7 +6706,7 @@ const Ue = {
|
|
|
6706
6706
|
readonly: e.readonly,
|
|
6707
6707
|
required: "",
|
|
6708
6708
|
type: "text",
|
|
6709
|
-
"onUpdate:modelValue": g[11] || (g[11] = (
|
|
6709
|
+
"onUpdate:modelValue": g[11] || (g[11] = (F) => i("update:hash-on-cookie-path", F))
|
|
6710
6710
|
}, null, 8, ["label", "model-value", "readonly"])
|
|
6711
6711
|
], 64)) : D("", !0),
|
|
6712
6712
|
e.hashFallback === "query_arg" ? (k(), P(H, {
|
|
@@ -6719,7 +6719,7 @@ const Ue = {
|
|
|
6719
6719
|
readonly: e.readonly,
|
|
6720
6720
|
required: "",
|
|
6721
6721
|
type: "text",
|
|
6722
|
-
"onUpdate:modelValue": g[12] || (g[12] = (
|
|
6722
|
+
"onUpdate:modelValue": g[12] || (g[12] = (F) => i("update:hash-fallback-query-argument", F))
|
|
6723
6723
|
}, null, 8, ["label", "model-value", "readonly"])) : D("", !0),
|
|
6724
6724
|
e.hashFallback === "uri_capture" ? (k(), P(H, {
|
|
6725
6725
|
key: 3,
|
|
@@ -6731,7 +6731,7 @@ const Ue = {
|
|
|
6731
6731
|
readonly: e.readonly,
|
|
6732
6732
|
required: "",
|
|
6733
6733
|
type: "text",
|
|
6734
|
-
"onUpdate:modelValue": g[13] || (g[13] = (
|
|
6734
|
+
"onUpdate:modelValue": g[13] || (g[13] = (F) => i("update:hash-fallback-uri-capture", F))
|
|
6735
6735
|
}, null, 8, ["label", "model-value", "readonly"])) : D("", !0)
|
|
6736
6736
|
]),
|
|
6737
6737
|
_: 1
|
|
@@ -6741,7 +6741,7 @@ const Ue = {
|
|
|
6741
6741
|
}, 8, ["title"]);
|
|
6742
6742
|
};
|
|
6743
6743
|
}
|
|
6744
|
-
}), Vc = /* @__PURE__ */
|
|
6744
|
+
}), Vc = /* @__PURE__ */ Ue(Pc, [["__scopeId", "data-v-928fd562"]]), Lc = { class: "fields-group-title" }, Rc = { class: "fields-group-text" }, Dc = { class: "fields-group-title" }, zc = { class: "fields-group-text" }, Jc = /* @__PURE__ */ X({
|
|
6745
6745
|
__name: "UpstreamsFormHealthChecks",
|
|
6746
6746
|
props: {
|
|
6747
6747
|
activeHealthSwitch: {
|
|
@@ -6764,7 +6764,7 @@ const Ue = {
|
|
|
6764
6764
|
},
|
|
6765
6765
|
emits: ["update:active-health-switch", "update:passive-health-switch", "update:healthchecks-threshold"],
|
|
6766
6766
|
setup(e, { emit: a }) {
|
|
6767
|
-
const { i18n: { t } } =
|
|
6767
|
+
const { i18n: { t } } = Fe.useI18n(), l = a;
|
|
6768
6768
|
return (r, s) => {
|
|
6769
6769
|
const i = K("KExternalLink"), c = K("KInputSwitch"), o = K("KCard"), d = K("KInput");
|
|
6770
6770
|
return k(), P(u(ot), {
|
|
@@ -6830,7 +6830,7 @@ const Ue = {
|
|
|
6830
6830
|
}, 8, ["title"]);
|
|
6831
6831
|
};
|
|
6832
6832
|
}
|
|
6833
|
-
}), Wc = /* @__PURE__ */
|
|
6833
|
+
}), Wc = /* @__PURE__ */ Ue(Jc, [["__scopeId", "data-v-bfdc5a59"]]), Qc = "#d60027", Zc = { key: 2 }, Yc = { class: "fields-group-title" }, Gc = { class: "fields-group-text" }, Xc = { class: "fields-group-title" }, ed = { class: "fields-group-text" }, td = /* @__PURE__ */ X({
|
|
6834
6834
|
__name: "UpstreamsFormActiveHealthCheck",
|
|
6835
6835
|
props: {
|
|
6836
6836
|
config: {
|
|
@@ -6905,7 +6905,7 @@ const Ue = {
|
|
|
6905
6905
|
},
|
|
6906
6906
|
emits: ["update:type", "update:http-path", "update:timeout", "update:concurrency", "update:https-sni", "update:verify-ssl", "update:headers", "update:interval", "update:successes", "update:http-statuses", "update:unhealthy-interval", "update:http-failures", "update:tcp-failures", "update:unhealthy-http-statuses", "update:unhealthy-timeouts"],
|
|
6907
6907
|
setup(e, { emit: a }) {
|
|
6908
|
-
const { i18n: { t } } =
|
|
6908
|
+
const { i18n: { t } } = Fe.useI18n(), { objectsAreEqual: l } = St(), r = e, s = a, i = B([
|
|
6909
6909
|
{
|
|
6910
6910
|
label: t("upstreams.form.healthcheck_type_labels.http"),
|
|
6911
6911
|
value: "http",
|
|
@@ -6954,7 +6954,7 @@ const Ue = {
|
|
|
6954
6954
|
H === 0 && p.value.length === 1 ? p.value[0] = { key: "", values: "" } : p.value.splice(H, 1), g();
|
|
6955
6955
|
};
|
|
6956
6956
|
return (H, v) => {
|
|
6957
|
-
const
|
|
6957
|
+
const F = K("KExternalLink"), $ = K("KSelect"), R = K("KInput"), x = K("KCheckbox"), N = K("KLabel"), m = K("KButton"), S = K("KMultiselect"), U = K("KCard");
|
|
6958
6958
|
return k(), P(u(ot), {
|
|
6959
6959
|
class: "kong-ui-entities-upstreams-active-healthcheck",
|
|
6960
6960
|
title: u(t)("upstreams.form.active_health_check.title")
|
|
@@ -6962,7 +6962,7 @@ const Ue = {
|
|
|
6962
6962
|
description: f(() => [
|
|
6963
6963
|
I("p", null, [
|
|
6964
6964
|
J(w(u(t)("upstreams.form.active_health_check.help")) + " ", 1),
|
|
6965
|
-
y(
|
|
6965
|
+
y(F, {
|
|
6966
6966
|
"hide-icon": "",
|
|
6967
6967
|
href: u(It).upstreamObject
|
|
6968
6968
|
}, {
|
|
@@ -7101,7 +7101,7 @@ const Ue = {
|
|
|
7101
7101
|
], 2))), 128))
|
|
7102
7102
|
])
|
|
7103
7103
|
])) : D("", !0),
|
|
7104
|
-
y(
|
|
7104
|
+
y(U, null, {
|
|
7105
7105
|
default: f(() => [
|
|
7106
7106
|
I("h5", Yc, w(u(t)("upstreams.form.healthy.label")), 1),
|
|
7107
7107
|
I("p", Gc, w(u(t)("upstreams.form.healthy.help")), 1),
|
|
@@ -7146,7 +7146,7 @@ const Ue = {
|
|
|
7146
7146
|
]),
|
|
7147
7147
|
_: 1
|
|
7148
7148
|
}),
|
|
7149
|
-
y(
|
|
7149
|
+
y(U, null, {
|
|
7150
7150
|
default: f(() => [
|
|
7151
7151
|
I("h5", Xc, w(u(t)("upstreams.form.unhealthy.label")), 1),
|
|
7152
7152
|
I("p", ed, w(u(t)("upstreams.form.unhealthy.help")), 1),
|
|
@@ -7222,7 +7222,7 @@ const Ue = {
|
|
|
7222
7222
|
}, 8, ["title"]);
|
|
7223
7223
|
};
|
|
7224
7224
|
}
|
|
7225
|
-
}), ad = /* @__PURE__ */
|
|
7225
|
+
}), ad = /* @__PURE__ */ Ue(td, [["__scopeId", "data-v-c7496328"]]), ld = { class: "fields-group-title" }, rd = { class: "fields-group-text" }, id = { class: "fields-group-title" }, sd = { class: "fields-group-text" }, nd = /* @__PURE__ */ X({
|
|
7226
7226
|
__name: "UpstreamsFormPassiveHealthCheck",
|
|
7227
7227
|
props: {
|
|
7228
7228
|
type: {
|
|
@@ -7261,7 +7261,7 @@ const Ue = {
|
|
|
7261
7261
|
},
|
|
7262
7262
|
emits: ["update:type", "update:successes", "update:http-statuses", "update:timeouts", "update:http-failures", "update:unhealthy-http-statuses", "update:tcp-failures"],
|
|
7263
7263
|
setup(e, { emit: a }) {
|
|
7264
|
-
const { i18n: { t } } =
|
|
7264
|
+
const { i18n: { t } } = Fe.useI18n(), l = e, r = a, s = B([
|
|
7265
7265
|
{
|
|
7266
7266
|
label: t("upstreams.form.healthcheck_type_labels.http"),
|
|
7267
7267
|
value: "http",
|
|
@@ -7417,7 +7417,7 @@ const Ue = {
|
|
|
7417
7417
|
}, 8, ["title"]);
|
|
7418
7418
|
};
|
|
7419
7419
|
}
|
|
7420
|
-
}), od = /* @__PURE__ */
|
|
7420
|
+
}), od = /* @__PURE__ */ Ue(nd, [["__scopeId", "data-v-b42fd84c"]]), ud = { class: "kong-ui-entities-upstreams-form" }, cd = /* @__PURE__ */ X({
|
|
7421
7421
|
__name: "UpstreamsForm",
|
|
7422
7422
|
props: {
|
|
7423
7423
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -7442,9 +7442,9 @@ const Ue = {
|
|
|
7442
7442
|
errorMessage: ""
|
|
7443
7443
|
}), O = pt(c()), H = T(() => !o(n.fields, O)), v = (C) => {
|
|
7444
7444
|
n.fields.activeHealthCheck.interval = C ? "5" : "0", n.fields.activeHealthCheck.successes = C ? "5" : "0", n.fields.activeHealthCheck.httpFailures = C ? "5" : "0", n.fields.activeHealthCheck.unhealthyInterval = C ? "5" : "0";
|
|
7445
|
-
},
|
|
7445
|
+
}, F = (C) => {
|
|
7446
7446
|
n.fields.passiveHealthCheck.timeouts = C ? "5" : "0", n.fields.passiveHealthCheck.successes = C ? "80" : "0";
|
|
7447
|
-
}, $ = T(() => n.fields.slots ? r(n.fields.slots, Mt, jt) : !0), R = T(() => n.fields.hashOn === "header" ? !!n.fields.hashOnHeader : !0), x = T(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookie : !0), N = T(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookiePath : !0), m = T(() => n.fields.hashOn === "query_arg" ? !!n.fields.hashOnQueryArgument : !0), S = T(() => n.fields.hashOn === "uri_capture" ? !!n.fields.hashOnUriCapture : !0),
|
|
7447
|
+
}, $ = T(() => n.fields.slots ? r(n.fields.slots, Mt, jt) : !0), R = T(() => n.fields.hashOn === "header" ? !!n.fields.hashOnHeader : !0), x = T(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookie : !0), N = T(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookiePath : !0), m = T(() => n.fields.hashOn === "query_arg" ? !!n.fields.hashOnQueryArgument : !0), S = T(() => n.fields.hashOn === "uri_capture" ? !!n.fields.hashOnUriCapture : !0), U = T(() => n.fields.hashFallback === "header" ? !!n.fields.hashFallbackHeader : !0), q = T(() => n.fields.hashFallback === "query_arg" ? !!n.fields.hashFallbackQueryArgument : !0), A = T(() => n.fields.hashFallback === "uri_capture" ? !!n.fields.hashFallbackUriCapture : !0), M = T(() => !!n.fields.name && $.value && R.value && x.value && N.value && m.value && S.value && U.value && q.value && A.value), E = T(() => t.upstreamId ? Se.Edit : Se.Create), Q = T(() => {
|
|
7448
7448
|
var C, b;
|
|
7449
7449
|
return (b = Xe.form[(C = t.config) == null ? void 0 : C.app]) == null ? void 0 : b.edit;
|
|
7450
7450
|
}), Z = (C) => {
|
|
@@ -7584,7 +7584,7 @@ const Ue = {
|
|
|
7584
7584
|
"passive-health-switch": n.fields.passiveHealthSwitch,
|
|
7585
7585
|
"onUpdate:passiveHealthSwitch": [
|
|
7586
7586
|
b[18] || (b[18] = (_) => n.fields.passiveHealthSwitch = _),
|
|
7587
|
-
|
|
7587
|
+
F
|
|
7588
7588
|
],
|
|
7589
7589
|
readonly: n.readonly
|
|
7590
7590
|
}, null, 8, ["active-health-switch", "healthchecks-threshold", "passive-health-switch", "readonly"]),
|
|
@@ -7646,7 +7646,7 @@ const Ue = {
|
|
|
7646
7646
|
}, 8, ["can-submit", "config", "edit-id", "error-message", "fetch-url", "form-fields", "is-readonly"])
|
|
7647
7647
|
]));
|
|
7648
7648
|
}
|
|
7649
|
-
}), Ad = /* @__PURE__ */
|
|
7649
|
+
}), Ad = /* @__PURE__ */ Ue(cd, [["__scopeId", "data-v-48733e0e"]]), dd = /* @__PURE__ */ I("code", null, "10", -1), hd = /* @__PURE__ */ I("code", null, "65536", -1), pd = { "data-testid": "client_certificate-plain-text" }, Hd = /* @__PURE__ */ X({
|
|
7650
7650
|
__name: "UpstreamsConfigCard",
|
|
7651
7651
|
props: {
|
|
7652
7652
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -7673,7 +7673,7 @@ const Ue = {
|
|
|
7673
7673
|
},
|
|
7674
7674
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
7675
7675
|
setup(e) {
|
|
7676
|
-
const a = e, { i18n: { t }, i18nT: l } =
|
|
7676
|
+
const a = e, { i18n: { t }, i18nT: l } = Fe.useI18n(), { getPropValue: r } = tc(), s = T(() => Xe.form[a.config.app].edit), i = B({
|
|
7677
7677
|
id: {},
|
|
7678
7678
|
name: {},
|
|
7679
7679
|
created_at: {},
|