@kong-ui-public/entities-shared 3.38.1-pr.2814.03d73ded9.0 → 3.38.1-pr.2814.6ceb2112b.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.
- package/dist/entities-shared.es.js +109 -109
- package/dist/entities-shared.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as at, ref as M, computed as
|
|
1
|
+
import { inject as at, ref as M, computed as _, unref as C, toValue as ye, watch as Ce, toRef as ei, provide as Vt, defineComponent as Q, createBlock as B, openBlock as g, resolveDynamicComponent as qe, normalizeClass as pe, withCtx as x, createElementBlock as S, createCommentVNode as D, createElementVNode as L, toDisplayString as I, Fragment as fe, renderList as de, resolveComponent as U, createVNode as N, createTextVNode as q, useCssVars as Wt, useId as ti, useSlots as He, renderSlot as j, createSlots as xe, normalizeProps as ni, guardReactiveProps as ii, mergeProps as Jt, onMounted as ot, onBeforeMount as lt, withModifiers as Ne, Teleport as Gt, onUnmounted as ri, withDirectives as Ae, vShow as we, withKeys as ai, warn as oi } from "vue";
|
|
2
2
|
import yt from "axios";
|
|
3
3
|
import { createI18n as li, i18nTComponent as si } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as ci, KExternalLink as ui, KButton as vt, KTruncate as di, KBadge as fi } from "@kong/kongponents";
|
|
@@ -288,7 +288,7 @@ function ji(e, t, n, i = {
|
|
|
288
288
|
n || (n = "1000");
|
|
289
289
|
const { axiosInstance: r } = st(e.axiosRequestConfig), { i18n: { t: o } } = Ve(), { debounce: a } = _i(), l = a(async (w) => {
|
|
290
290
|
await k(w);
|
|
291
|
-
}, 200), s = M(!1), d = M(""), c = M(""), u = M([]), m = M([]), f = M(void 0), h =
|
|
291
|
+
}, 200), s = M(!1), d = M(""), c = M(""), u = M([]), m = M([]), f = M(void 0), h = _(() => {
|
|
292
292
|
const w = `${e.apiBaseUrl}${C(t)}`;
|
|
293
293
|
return e.app === "konnect" ? w.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? w.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : w;
|
|
294
294
|
}), { isValidUuid: b } = Xt(), y = async () => {
|
|
@@ -360,7 +360,7 @@ function ji(e, t, n, i = {
|
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
362
|
function Ui(e, t) {
|
|
363
|
-
const n = C(t), i =
|
|
363
|
+
const n = C(t), i = _(
|
|
364
364
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
365
365
|
);
|
|
366
366
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
@@ -449,10 +449,10 @@ function Hi(e) {
|
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
function en(e, t) {
|
|
452
|
-
const n =
|
|
452
|
+
const n = _(() => {
|
|
453
453
|
const r = ye(e);
|
|
454
454
|
return r.app === "konnect" || !!r.isExactMatch;
|
|
455
|
-
}), i =
|
|
455
|
+
}), i = _(() => {
|
|
456
456
|
const r = ye(t);
|
|
457
457
|
return r.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r);
|
|
458
458
|
});
|
|
@@ -593,7 +593,7 @@ function Xi(e) {
|
|
|
593
593
|
return Ce(e, (o) => {
|
|
594
594
|
o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
|
|
595
595
|
}), {
|
|
596
|
-
isTruncated:
|
|
596
|
+
isTruncated: _(() => t.value < n.value)
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
599
|
function er() {
|
|
@@ -611,7 +611,7 @@ const Xe = Symbol("schema"), tr = (e) => {
|
|
|
611
611
|
};
|
|
612
612
|
function ir(e) {
|
|
613
613
|
let t = "";
|
|
614
|
-
const n = M(!1), i = M(null), r =
|
|
614
|
+
const n = M(!1), i = M(null), r = _(() => {
|
|
615
615
|
let a;
|
|
616
616
|
return n.value ? a = !0 : i.value ? a = i.value.hasData || e && ye(e) : a = !1, !a;
|
|
617
617
|
});
|
|
@@ -662,10 +662,10 @@ const z = {
|
|
|
662
662
|
}
|
|
663
663
|
},
|
|
664
664
|
setup(e) {
|
|
665
|
-
const t = e, { i18n: { t: n } } = z.useI18n(), { convertKeyToTitle: i } = z.useStringHelpers(), r =
|
|
665
|
+
const t = e, { i18n: { t: n } } = z.useI18n(), { convertKeyToTitle: i } = z.useStringHelpers(), r = _(() => t.item.key ?? "json-array-item"), o = _(() => t.item.value ?? t.item), a = _(() => {
|
|
666
666
|
const s = JSON.parse(JSON.stringify(o.value));
|
|
667
667
|
return t.isArrayItem && delete s.name, s;
|
|
668
|
-
}), l =
|
|
668
|
+
}), l = _(() => {
|
|
669
669
|
var s;
|
|
670
670
|
return t.isArrayItem ? (s = o.value) != null && s.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
671
671
|
});
|
|
@@ -673,10 +673,10 @@ const z = {
|
|
|
673
673
|
class: pe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
674
674
|
}, {
|
|
675
675
|
default: x(() => [
|
|
676
|
-
e.isArrayItem ? (g(),
|
|
676
|
+
e.isArrayItem ? (g(), S("legend", rr, [
|
|
677
677
|
L("b", null, I(l.value), 1)
|
|
678
678
|
])) : D("", !0),
|
|
679
|
-
(g(!0),
|
|
679
|
+
(g(!0), S(fe, null, de(Object.keys(a.value), (c, u) => (g(), B(on, {
|
|
680
680
|
key: `${r.value}-property-${u}`,
|
|
681
681
|
item: {
|
|
682
682
|
key: c,
|
|
@@ -706,7 +706,7 @@ const z = {
|
|
|
706
706
|
const { i18n: { t } } = z.useI18n();
|
|
707
707
|
return (n, i) => {
|
|
708
708
|
const r = U("KButton");
|
|
709
|
-
return g(),
|
|
709
|
+
return g(), S("div", null, [
|
|
710
710
|
N(r, {
|
|
711
711
|
appearance: "tertiary",
|
|
712
712
|
class: "navigation-button",
|
|
@@ -792,10 +792,10 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
792
792
|
v77ca94df: u.value && d.value ? "100%" : n.slim ? "50%" : "25%",
|
|
793
793
|
v77ccdaba: u.value && d.value ? "100%" : n.slim ? "50%" : "75%"
|
|
794
794
|
}));
|
|
795
|
-
const n = e, i = t, r = ti(), o = He(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = z.useI18n(), d =
|
|
795
|
+
const n = e, i = t, r = ti(), o = He(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = z.useI18n(), d = _(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), c = _(() => !!(n.item.tooltip || o["label-tooltip"])), u = _(() => n.item.type === G.Json || n.item.type === G.JsonArray), m = _(() => n.item.type === G.JsonArray), f = z.useSubSchema(n.item.key), h = _(() => {
|
|
796
796
|
var Y;
|
|
797
797
|
return n.item.type ? n.item.type : (Y = f == null ? void 0 : f.value) != null && Y.encrypted ? G.Redacted : void 0;
|
|
798
|
-
}), b =
|
|
798
|
+
}), b = _(() => {
|
|
799
799
|
switch (h.value) {
|
|
800
800
|
case G.ID:
|
|
801
801
|
return {
|
|
@@ -930,7 +930,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
930
930
|
}), y = M(), $ = M(), { isTruncated: k } = z.useTruncationDetector(y), { isTruncated: w } = z.useTruncationDetector($);
|
|
931
931
|
return (Y, J) => {
|
|
932
932
|
const R = U("KTooltip"), F = U("KLabel"), E = U("KBadge"), v = U("KCopy");
|
|
933
|
-
return g(),
|
|
933
|
+
return g(), S("div", vr, [
|
|
934
934
|
L("div", {
|
|
935
935
|
class: "config-card-details-label",
|
|
936
936
|
"data-testid": `${e.item.key}-label`
|
|
@@ -976,14 +976,14 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
976
976
|
j(Y.$slots, e.item.key, {
|
|
977
977
|
rowValue: e.item.value
|
|
978
978
|
}, () => [
|
|
979
|
-
d.value ? (g(),
|
|
979
|
+
d.value ? (g(), S("div", Ar, [
|
|
980
980
|
(g(), B(qe(b.value.tag), ni(ii(b.value.attrs)), {
|
|
981
981
|
default: x(() => [
|
|
982
|
-
b.value.additionalComponent === "KBadge" ? (g(),
|
|
982
|
+
b.value.additionalComponent === "KBadge" ? (g(), S("div", {
|
|
983
983
|
key: 0,
|
|
984
984
|
"data-testid": `${e.item.key}-badge-tags`
|
|
985
985
|
}, [
|
|
986
|
-
(g(!0),
|
|
986
|
+
(g(!0), S(fe, null, de(e.item.value, (A, p) => (g(), B(E, {
|
|
987
987
|
key: `${e.item.key}-badge-tag-${p}`,
|
|
988
988
|
class: "config-badge",
|
|
989
989
|
"data-testid": `${e.item.key}-badge-tag-${p}`,
|
|
@@ -995,22 +995,22 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
995
995
|
]),
|
|
996
996
|
_: 2
|
|
997
997
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
998
|
-
], 8, wr)) : b.value.additionalComponent === "KCopy" ? (g(),
|
|
998
|
+
], 8, wr)) : b.value.additionalComponent === "KCopy" ? (g(), S("div", {
|
|
999
999
|
key: 1,
|
|
1000
1000
|
class: "copy-uuid-array",
|
|
1001
1001
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1002
1002
|
}, [
|
|
1003
|
-
(g(!0),
|
|
1003
|
+
(g(!0), S(fe, null, de(e.item.value, (A, p) => (g(), B(v, Jt({ ref_for: !0 }, b.value.childAttrs, {
|
|
1004
1004
|
key: `${e.item.key}-copy-uuid-${p}`,
|
|
1005
1005
|
"data-testid": `${e.item.key}-copy-uuid-${p}`,
|
|
1006
1006
|
text: A
|
|
1007
1007
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1008
|
-
], 8, _r)) : b.value.additionalComponent === "KMethodBadge" ? (g(),
|
|
1008
|
+
], 8, _r)) : b.value.additionalComponent === "KMethodBadge" ? (g(), S("div", {
|
|
1009
1009
|
key: 2,
|
|
1010
1010
|
class: "method-badge-array",
|
|
1011
1011
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1012
1012
|
}, [
|
|
1013
|
-
(g(!0),
|
|
1013
|
+
(g(!0), S(fe, null, de(e.item.value, (A, p) => (g(), B(E, {
|
|
1014
1014
|
key: `${e.item.key}-badge-method-${p}`,
|
|
1015
1015
|
appearance: Object.values(C(ci)).includes(A.toLowerCase()) ? A.toLowerCase() : "custom",
|
|
1016
1016
|
class: "config-badge",
|
|
@@ -1021,11 +1021,11 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
1021
1021
|
]),
|
|
1022
1022
|
_: 2
|
|
1023
1023
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1024
|
-
], 8, Sr)) : b.value.additionalComponent === "JsonCardItem" ? (g(),
|
|
1024
|
+
], 8, Sr)) : b.value.additionalComponent === "JsonCardItem" ? (g(), S("div", {
|
|
1025
1025
|
key: 3,
|
|
1026
1026
|
"data-testid": `${n.item.key}-json-array-content`
|
|
1027
1027
|
}, [
|
|
1028
|
-
(g(!0),
|
|
1028
|
+
(g(!0), S(fe, null, de(e.item.value, (A, p) => (g(), B(an, {
|
|
1029
1029
|
key: `json-array-item-${p}`,
|
|
1030
1030
|
index: Number(p),
|
|
1031
1031
|
"is-array-item": "",
|
|
@@ -1047,7 +1047,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
1047
1047
|
]),
|
|
1048
1048
|
_: 1
|
|
1049
1049
|
}, 16))
|
|
1050
|
-
])) : (g(),
|
|
1050
|
+
])) : (g(), S("div", {
|
|
1051
1051
|
key: 0,
|
|
1052
1052
|
"data-testid": `${e.item.key}-no-value`
|
|
1053
1053
|
}, " – ", 8, xr))
|
|
@@ -1090,7 +1090,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
1090
1090
|
Wt((r) => ({
|
|
1091
1091
|
v58418ff6: `${i.value}ch`
|
|
1092
1092
|
}));
|
|
1093
|
-
const t = e, n =
|
|
1093
|
+
const t = e, n = _(() => t.entityRecord), i = _(() => {
|
|
1094
1094
|
var a;
|
|
1095
1095
|
if (!t.fetcherUrl)
|
|
1096
1096
|
return 0;
|
|
@@ -1099,8 +1099,8 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
|
|
|
1099
1099
|
});
|
|
1100
1100
|
return (r, o) => {
|
|
1101
1101
|
const a = U("KBadge"), l = U("KCodeBlock");
|
|
1102
|
-
return g(),
|
|
1103
|
-
t.fetcherUrl ? (g(),
|
|
1102
|
+
return g(), S("div", Ir, [
|
|
1103
|
+
t.fetcherUrl ? (g(), S("div", Fr, [
|
|
1104
1104
|
N(a, {
|
|
1105
1105
|
appearance: t.requestMethod
|
|
1106
1106
|
}, {
|
|
@@ -2472,13 +2472,13 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
|
|
|
2472
2472
|
}
|
|
2473
2473
|
},
|
|
2474
2474
|
setup(e) {
|
|
2475
|
-
const t = e, n =
|
|
2475
|
+
const t = e, n = _(() => {
|
|
2476
2476
|
const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
|
|
2477
2477
|
return Object.keys(i).length === 0 && i.constructor === Object ? "" : zn.dump(i).trim();
|
|
2478
2478
|
});
|
|
2479
2479
|
return (i, r) => {
|
|
2480
2480
|
const o = U("KCodeBlock");
|
|
2481
|
-
return g(),
|
|
2481
|
+
return g(), S("div", Zo, [
|
|
2482
2482
|
t.entityRecord ? (g(), B(o, {
|
|
2483
2483
|
key: 0,
|
|
2484
2484
|
id: "yaml-codeblock",
|
|
@@ -2514,7 +2514,7 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
|
|
|
2514
2514
|
}
|
|
2515
2515
|
},
|
|
2516
2516
|
setup(e) {
|
|
2517
|
-
const t = e, n =
|
|
2517
|
+
const t = e, n = _(() => xi.includes(t.entityType)), i = _(() => Ai.includes(t.entityType)), r = (c, u) => {
|
|
2518
2518
|
const m = ie;
|
|
2519
2519
|
let f = "";
|
|
2520
2520
|
return typeof c == "string" ? f += `${m}${u} = "${c}"
|
|
@@ -2558,7 +2558,7 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
|
|
|
2558
2558
|
for (const [m, f] of Object.entries(c))
|
|
2559
2559
|
Array.isArray(f) ? u += a(f, m) : typeof f == "object" ? u += o(f, m) : u += r(f, m);
|
|
2560
2560
|
return l(u);
|
|
2561
|
-
}, d =
|
|
2561
|
+
}, d = _(() => {
|
|
2562
2562
|
var h, b, y, $, k, w, Y;
|
|
2563
2563
|
const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, J]) => J != null)), u = t.entityRecord.config ? Object.fromEntries(Object.entries((h = t.entityRecord) == null ? void 0 : h.config).filter(([, J]) => J != null)) : void 0;
|
|
2564
2564
|
if (u && (c.config = u), Object.keys(c).length === 0)
|
|
@@ -2587,7 +2587,7 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
|
|
|
2587
2587
|
});
|
|
2588
2588
|
return (c, u) => {
|
|
2589
2589
|
const m = U("KCodeBlock");
|
|
2590
|
-
return g(),
|
|
2590
|
+
return g(), S("div", Xo, [
|
|
2591
2591
|
t.entityRecord ? (g(), B(m, {
|
|
2592
2592
|
key: 0,
|
|
2593
2593
|
id: "terraform-codeblock",
|
|
@@ -2614,14 +2614,14 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
|
|
|
2614
2614
|
const t = e, { i18n: n, i18nT: i } = z.useI18n(), r = [
|
|
2615
2615
|
{ value: "bash", label: "Linux / macOS Bash" },
|
|
2616
2616
|
{ value: "powershell", label: "Windows PowerShell" }
|
|
2617
|
-
], o = M(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), a =
|
|
2617
|
+
], o = M(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), a = _(() => {
|
|
2618
2618
|
const c = {
|
|
2619
2619
|
_format_version: "3.0"
|
|
2620
2620
|
};
|
|
2621
2621
|
return t.controlPlaneName ? c._konnect = {
|
|
2622
2622
|
control_plane_name: t.controlPlaneName
|
|
2623
2623
|
} : t.workspace && (c._workspace = t.workspace), c;
|
|
2624
|
-
}), l =
|
|
2624
|
+
}), l = _(() => {
|
|
2625
2625
|
var f, h, b, y, $;
|
|
2626
2626
|
const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, k]) => k !== null && k !== "" && (Array.isArray(k) ? k.length !== 0 : !0)));
|
|
2627
2627
|
t.entityType === Ee.Plugin ? ((f = c.service) != null && f.id && (c.service = c.service.id), (h = c.route) != null && h.id && (c.route = c.route.id), (b = c.consumer) != null && b.id && (c.consumer = c.consumer.id), (y = c.consumer_group) != null && y.id && (c.consumer_group = c.consumer_group.id)) : t.entityType === Ee.Key && ($ = c.key_set) != null && $.id && (c.key_set = c.key_set.id);
|
|
@@ -2630,7 +2630,7 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
|
|
|
2630
2630
|
[u]: [c]
|
|
2631
2631
|
};
|
|
2632
2632
|
return zn.dump(m, { quotingType: '"' }).trim();
|
|
2633
|
-
}), s =
|
|
2633
|
+
}), s = _(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), d = _(() => {
|
|
2634
2634
|
let c = "deck gateway apply -";
|
|
2635
2635
|
return t.geoApiServerUrl ? c += ` --konnect-addr ${t.geoApiServerUrl}` : t.kongAdminApiUrl && (c += ` --kong-addr ${t.kongAdminApiUrl}`), o.value === "bash" ? `echo '
|
|
2636
2636
|
${l.value}
|
|
@@ -2640,7 +2640,7 @@ ${l.value}
|
|
|
2640
2640
|
});
|
|
2641
2641
|
return (c, u) => {
|
|
2642
2642
|
const m = U("KSelect"), f = U("KBadge"), h = U("KCodeBlock");
|
|
2643
|
-
return g(),
|
|
2643
|
+
return g(), S("div", el, [
|
|
2644
2644
|
N(m, {
|
|
2645
2645
|
modelValue: o.value,
|
|
2646
2646
|
"onUpdate:modelValue": u[0] || (u[0] = (b) => o.value = b),
|
|
@@ -2769,23 +2769,23 @@ ${l.value}
|
|
|
2769
2769
|
}
|
|
2770
2770
|
},
|
|
2771
2771
|
setup(e) {
|
|
2772
|
-
const t = e, n = He(), { i18n: { t: i } } = z.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), o =
|
|
2772
|
+
const t = e, n = He(), { i18n: { t: i } } = z.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), o = _(() => {
|
|
2773
2773
|
if (!t.record)
|
|
2774
2774
|
return t.record;
|
|
2775
2775
|
let l = t.record;
|
|
2776
2776
|
t.codeBlockRecordFormatter && (l = t.codeBlockRecordFormatter(l, t.format));
|
|
2777
2777
|
const s = JSON.parse(JSON.stringify(l));
|
|
2778
2778
|
return delete s.created_at, delete s.updated_at, s;
|
|
2779
|
-
}), a =
|
|
2780
|
-
return (l, s) => (g(),
|
|
2781
|
-
e.format === "structured" ? (g(),
|
|
2782
|
-
(g(!0),
|
|
2779
|
+
}), a = _(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
|
|
2780
|
+
return (l, s) => (g(), S(fe, null, [
|
|
2781
|
+
e.format === "structured" ? (g(), S("div", nl, [
|
|
2782
|
+
(g(!0), S(fe, null, de(e.propListTypes, (d) => (g(), S("div", {
|
|
2783
2783
|
key: `config-card-details-${d}-props`,
|
|
2784
2784
|
class: pe(`config-card-details-${d}-props`),
|
|
2785
2785
|
"data-testid": `config-card-details-${d}-props`
|
|
2786
2786
|
}, [
|
|
2787
|
-
d !== "basic" ? (g(),
|
|
2788
|
-
(g(!0),
|
|
2787
|
+
d !== "basic" ? (g(), S("div", rl, I(d === "advanced" ? C(i)("baseConfigCard.sections.advanced") : d === "plugin" ? C(i)("baseConfigCard.sections.plugin") : C(i)("baseConfigCard.sections.policy")), 1)) : D("", !0),
|
|
2788
|
+
(g(!0), S(fe, null, de(e.propertyCollections[d], (c) => j(l.$slots, `config-card-item-${c.key}`, { row: c }, () => [
|
|
2789
2789
|
(g(), B(on, {
|
|
2790
2790
|
key: c.key,
|
|
2791
2791
|
item: c
|
|
@@ -3050,7 +3050,7 @@ ${l.value}
|
|
|
3050
3050
|
// the last property displayed
|
|
3051
3051
|
section: le.Basic
|
|
3052
3052
|
}
|
|
3053
|
-
}, y = M(!1), $ = M(!1), k = M(""), w = M({}), Y =
|
|
3053
|
+
}, y = M(!1), $ = M(!1), k = M(""), w = M({}), Y = _(() => {
|
|
3054
3054
|
var H, V, ne;
|
|
3055
3055
|
if (!w.value)
|
|
3056
3056
|
return [];
|
|
@@ -3076,7 +3076,7 @@ ${l.value}
|
|
|
3076
3076
|
section: W.section ?? ((X == null ? void 0 : X.section) || le.Advanced)
|
|
3077
3077
|
};
|
|
3078
3078
|
}).filter((P) => !P.hidden && P.key !== i.pluginConfigKey);
|
|
3079
|
-
}), J =
|
|
3079
|
+
}), J = _(() => {
|
|
3080
3080
|
var V, ne;
|
|
3081
3081
|
if (!w.value || !i.pluginConfigKey)
|
|
3082
3082
|
return [];
|
|
@@ -3101,7 +3101,7 @@ ${l.value}
|
|
|
3101
3101
|
section: le.Plugin
|
|
3102
3102
|
};
|
|
3103
3103
|
}).filter((P) => !P.hidden);
|
|
3104
|
-
}), R =
|
|
3104
|
+
}), R = _(() => {
|
|
3105
3105
|
var V, ne;
|
|
3106
3106
|
if (!w.value || !i.policyConfigKey)
|
|
3107
3107
|
return [];
|
|
@@ -3126,7 +3126,7 @@ ${l.value}
|
|
|
3126
3126
|
section: le.Policy
|
|
3127
3127
|
};
|
|
3128
3128
|
}).filter((P) => !P.hidden);
|
|
3129
|
-
}), F =
|
|
3129
|
+
}), F = _(() => {
|
|
3130
3130
|
var p, K, H, V, ne, P;
|
|
3131
3131
|
return {
|
|
3132
3132
|
basic: (p = Y.value) == null ? void 0 : p.filter((O) => O.section === le.Basic),
|
|
@@ -3134,10 +3134,10 @@ ${l.value}
|
|
|
3134
3134
|
plugin: (V = J.value) == null ? void 0 : V.concat((H = Y.value) == null ? void 0 : H.filter((O) => O.section === le.Plugin)),
|
|
3135
3135
|
policy: (P = R.value) == null ? void 0 : P.concat((ne = Y.value) == null ? void 0 : ne.filter((O) => O.section === le.Policy))
|
|
3136
3136
|
};
|
|
3137
|
-
}), E =
|
|
3137
|
+
}), E = _(() => {
|
|
3138
3138
|
const p = [];
|
|
3139
3139
|
return F.value.basic.length && p.push("basic"), F.value.advanced.length && p.push("advanced"), F.value.plugin.length && p.push("plugin"), F.value.policy.length && p.push("policy"), p;
|
|
3140
|
-
}), v =
|
|
3140
|
+
}), v = _(() => {
|
|
3141
3141
|
var K, H;
|
|
3142
3142
|
let p = `${i.config.apiBaseUrl}${i.fetchUrl}`;
|
|
3143
3143
|
return i.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((K = i.config) == null ? void 0 : K.controlPlaneId) || "") : i.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (H = i.config) != null && H.workspace ? `/${i.config.workspace}` : "")), p = p.replace(/{id}/gi, i.config.entityId), p;
|
|
@@ -3222,7 +3222,7 @@ ${l.value}
|
|
|
3222
3222
|
L("h3", null, I(k.value), 1)
|
|
3223
3223
|
]),
|
|
3224
3224
|
_: 1
|
|
3225
|
-
})) : (g(),
|
|
3225
|
+
})) : (g(), S("div", ul, [
|
|
3226
3226
|
N(ol, {
|
|
3227
3227
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
3228
3228
|
config: e.config,
|
|
@@ -3386,7 +3386,7 @@ ${l.value}
|
|
|
3386
3386
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3387
3387
|
setup(e, { expose: t, emit: n }) {
|
|
3388
3388
|
var E;
|
|
3389
|
-
const i = at(fl.KM_1948_PLUGIN_FORM_LAYOUT, !1), r = n, o = e, a = bi(), { i18n: { t: l } } = z.useI18n(), { getMessageFromError: s } = z.useErrors(), { axiosInstance: d } = z.useAxios((E = o.config) == null ? void 0 : E.axiosRequestConfig), c = M(!1), u =
|
|
3389
|
+
const i = at(fl.KM_1948_PLUGIN_FORM_LAYOUT, _(() => !1)), r = n, o = e, a = bi(), { i18n: { t: l } } = z.useI18n(), { getMessageFromError: s } = z.useErrors(), { axiosInstance: d } = z.useAxios((E = o.config) == null ? void 0 : E.axiosRequestConfig), c = M(!1), u = _(() => !!o.editId), m = M(!1), f = M(""), h = _(() => o.canSubmit === !1 || o.isReadonly), b = M(!1), y = _(() => {
|
|
3390
3390
|
var A, p;
|
|
3391
3391
|
let v = `${o.config.apiBaseUrl}${o.fetchUrl}`;
|
|
3392
3392
|
return o.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((A = o.config) == null ? void 0 : A.controlPlaneId) || "") : o.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (p = o.config) != null && p.workspace ? `/${o.config.workspace}` : "")), o.editId ? (v = v.replace(/{id}/gi, o.editId), v) : (v = v.replace(/\/{id}/gi, ""), v);
|
|
@@ -3456,7 +3456,7 @@ ${l.value}
|
|
|
3456
3456
|
L("h3", null, I(f.value), 1)
|
|
3457
3457
|
]),
|
|
3458
3458
|
_: 1
|
|
3459
|
-
}, 8, ["action-button-text"])) : (g(),
|
|
3459
|
+
}, 8, ["action-button-text"])) : (g(), S("form", {
|
|
3460
3460
|
key: 2,
|
|
3461
3461
|
"data-testid": "form-content",
|
|
3462
3462
|
novalidate: o.noValidate,
|
|
@@ -3579,7 +3579,7 @@ ${l.value}
|
|
|
3579
3579
|
}, 8, ["class"]);
|
|
3580
3580
|
};
|
|
3581
3581
|
}
|
|
3582
|
-
}), Rs = /* @__PURE__ */ ce(ml, [["__scopeId", "data-v-
|
|
3582
|
+
}), Rs = /* @__PURE__ */ ce(ml, [["__scopeId", "data-v-463136e3"]]), gl = ["data-truncate"], hl = /* @__PURE__ */ Q({
|
|
3583
3583
|
__name: "EntityBaseTableCell",
|
|
3584
3584
|
props: {
|
|
3585
3585
|
keyName: {
|
|
@@ -3596,17 +3596,17 @@ ${l.value}
|
|
|
3596
3596
|
}
|
|
3597
3597
|
},
|
|
3598
3598
|
setup(e) {
|
|
3599
|
-
const t = e, n =
|
|
3599
|
+
const t = e, n = _(() => {
|
|
3600
3600
|
var y;
|
|
3601
3601
|
return ((y = t.rowEl) == null ? void 0 : y.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3602
|
-
}), i =
|
|
3602
|
+
}), i = _(() => {
|
|
3603
3603
|
var y;
|
|
3604
3604
|
return ((y = n.value) == null ? void 0 : y.querySelector('[data-truncate="true"]')) || null;
|
|
3605
|
-
}), r =
|
|
3605
|
+
}), r = _(() => {
|
|
3606
3606
|
var $, k;
|
|
3607
3607
|
const y = ($ = t.rowEl) == null ? void 0 : $.querySelectorAll("td");
|
|
3608
3608
|
return y ? ((k = y[0]) == null ? void 0 : k.getAttribute("data-testid")) === t.keyName : !0;
|
|
3609
|
-
}), o =
|
|
3609
|
+
}), o = _(() => r.value || t.tooltip);
|
|
3610
3610
|
let a;
|
|
3611
3611
|
const l = () => {
|
|
3612
3612
|
a && (a.disconnect(), a = void 0);
|
|
@@ -3618,7 +3618,7 @@ ${l.value}
|
|
|
3618
3618
|
y -= (parseFloat(Y.paddingLeft) || 0) + (parseFloat(Y.paddingRight) || 0);
|
|
3619
3619
|
}
|
|
3620
3620
|
c.value = ((k = i.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, u.value = y, m.value = ((w = d.value) == null ? void 0 : w.innerText) || "";
|
|
3621
|
-
}, d = M({}), c = M(0), u = M(0), m = M(""), f =
|
|
3621
|
+
}, d = M({}), c = M(0), u = M(0), m = M(""), f = _(() => [i.value, n.value]), h = Ce(
|
|
3622
3622
|
f,
|
|
3623
3623
|
(y) => {
|
|
3624
3624
|
if (o.value && (l(), "ResizeObserver" in window && window)) {
|
|
@@ -3632,19 +3632,19 @@ ${l.value}
|
|
|
3632
3632
|
}
|
|
3633
3633
|
},
|
|
3634
3634
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3635
|
-
), b =
|
|
3635
|
+
), b = _(() => o.value ? c.value > u.value : !1);
|
|
3636
3636
|
return ot(() => {
|
|
3637
3637
|
s();
|
|
3638
3638
|
}), ri(() => {
|
|
3639
3639
|
h();
|
|
3640
3640
|
}), (y, $) => {
|
|
3641
3641
|
const k = U("KTooltip");
|
|
3642
|
-
return g(),
|
|
3642
|
+
return g(), S("span", {
|
|
3643
3643
|
ref_key: "contentRef",
|
|
3644
3644
|
ref: d,
|
|
3645
3645
|
class: "content-wrapper"
|
|
3646
3646
|
}, [
|
|
3647
|
-
o.value ? (g(),
|
|
3647
|
+
o.value ? (g(), S("span", {
|
|
3648
3648
|
key: 0,
|
|
3649
3649
|
"data-truncate": o.value || void 0
|
|
3650
3650
|
}, [
|
|
@@ -3813,7 +3813,7 @@ ${l.value}
|
|
|
3813
3813
|
},
|
|
3814
3814
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
|
|
3815
3815
|
setup(e, { emit: t }) {
|
|
3816
|
-
const n = e, i = t, { i18n: { t: r } } = z.useI18n(), o =
|
|
3816
|
+
const n = e, i = t, { i18n: { t: r } } = z.useI18n(), o = _(() => {
|
|
3817
3817
|
var v, A;
|
|
3818
3818
|
return typeof n.errorMessage == "string" ? {
|
|
3819
3819
|
hasError: !!n.errorMessage,
|
|
@@ -3824,7 +3824,7 @@ ${l.value}
|
|
|
3824
3824
|
title: (v = n.errorMessage) == null ? void 0 : v.title,
|
|
3825
3825
|
message: (A = n.errorMessage) == null ? void 0 : A.message
|
|
3826
3826
|
};
|
|
3827
|
-
}), a =
|
|
3827
|
+
}), a = _(() => n.cacheIdentifier || n.preferencesStorageKey), l = _(() => {
|
|
3828
3828
|
const v = [];
|
|
3829
3829
|
return Object.keys(n.tableHeaders).forEach((p) => {
|
|
3830
3830
|
const K = n.tableHeaders[p];
|
|
@@ -3861,11 +3861,11 @@ ${l.value}
|
|
|
3861
3861
|
i("empty-state-cta-clicked"), h();
|
|
3862
3862
|
}, h = () => {
|
|
3863
3863
|
i("clear-search-input");
|
|
3864
|
-
}, b =
|
|
3864
|
+
}, b = _(() => n.disableRowClick ? void 0 : (v, A) => {
|
|
3865
3865
|
i("click:row", A);
|
|
3866
3866
|
}), y = (v) => {
|
|
3867
3867
|
i("sort", v);
|
|
3868
|
-
}, { hideTableToolbar: $, handleStateChange: k } = z.useTableState(() => n.query), { setTablePreferences: w, getTablePreferences: Y } = $i(), J = M(Y(a.value, n.defaultTablePreferences)), R =
|
|
3868
|
+
}, { hideTableToolbar: $, handleStateChange: k } = z.useTableState(() => n.query), { setTablePreferences: w, getTablePreferences: Y } = $i(), J = M(Y(a.value, n.defaultTablePreferences)), R = _(() => {
|
|
3869
3869
|
const v = Y(a.value);
|
|
3870
3870
|
return {
|
|
3871
3871
|
...n.initialFetcherParams,
|
|
@@ -3875,7 +3875,7 @@ ${l.value}
|
|
|
3875
3875
|
J.value = v, l.value.forEach((A) => {
|
|
3876
3876
|
!("hidable" in A) || !J.value.columnVisibility || A.hidable === !1 && (J.value.columnVisibility[A.key] = !0);
|
|
3877
3877
|
}), a.value && w(a.value, v);
|
|
3878
|
-
}, E =
|
|
3878
|
+
}, E = _(() => ({
|
|
3879
3879
|
disablePageJump: n.disablePaginationPageJump,
|
|
3880
3880
|
offset: n.paginationType === "offset",
|
|
3881
3881
|
...n.paginationAttributes
|
|
@@ -3927,7 +3927,7 @@ ${l.value}
|
|
|
3927
3927
|
toolbar: x(() => [
|
|
3928
3928
|
L("div", vl, [
|
|
3929
3929
|
j(v.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3930
|
-
v.$slots["toolbar-button"] ? (g(),
|
|
3930
|
+
v.$slots["toolbar-button"] ? (g(), S("div", bl, [
|
|
3931
3931
|
j(v.$slots, "toolbar-button", {}, void 0, !0)
|
|
3932
3932
|
])) : D("", !0)
|
|
3933
3933
|
])
|
|
@@ -3973,7 +3973,7 @@ ${l.value}
|
|
|
3973
3973
|
key: "1"
|
|
3974
3974
|
}
|
|
3975
3975
|
]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
|
|
3976
|
-
v.$slots["outside-actions"] && C($) ? (g(),
|
|
3976
|
+
v.$slots["outside-actions"] && C($) ? (g(), S("div", kl, [
|
|
3977
3977
|
j(v.$slots, "outside-actions", {}, void 0, !0)
|
|
3978
3978
|
])) : D("", !0)
|
|
3979
3979
|
]),
|
|
@@ -4026,7 +4026,7 @@ ${l.value}
|
|
|
4026
4026
|
},
|
|
4027
4027
|
emits: ["cancel", "proceed"],
|
|
4028
4028
|
setup(e, { emit: t }) {
|
|
4029
|
-
const { i18nT: n } = z.useI18n(), i = e, r = t, o =
|
|
4029
|
+
const { i18nT: n } = z.useI18n(), i = e, r = t, o = _(() => i.needConfirm ? i.entityName : ""), a = () => {
|
|
4030
4030
|
r("cancel");
|
|
4031
4031
|
}, l = () => {
|
|
4032
4032
|
r("proceed");
|
|
@@ -4045,7 +4045,7 @@ ${l.value}
|
|
|
4045
4045
|
onProceed: l
|
|
4046
4046
|
}, {
|
|
4047
4047
|
default: x(() => [
|
|
4048
|
-
e.error ? (g(),
|
|
4048
|
+
e.error ? (g(), S("div", xl, [
|
|
4049
4049
|
N(c, { appearance: "danger" }, {
|
|
4050
4050
|
default: x(() => [
|
|
4051
4051
|
q(I(e.error), 1)
|
|
@@ -4071,7 +4071,7 @@ ${l.value}
|
|
|
4071
4071
|
key: "0"
|
|
4072
4072
|
} : void 0
|
|
4073
4073
|
]), 1032, ["keypath"]),
|
|
4074
|
-
i.description || s.$slots.description ? (g(),
|
|
4074
|
+
i.description || s.$slots.description ? (g(), S("div", Al, [
|
|
4075
4075
|
j(s.$slots, "description", {}, () => [
|
|
4076
4076
|
L("p", null, I(i.description), 1)
|
|
4077
4077
|
], !0)
|
|
@@ -4104,7 +4104,7 @@ ${l.value}
|
|
|
4104
4104
|
}
|
|
4105
4105
|
},
|
|
4106
4106
|
setup(e) {
|
|
4107
|
-
return (t, n) => (g(),
|
|
4107
|
+
return (t, n) => (g(), S("svg", _l, [
|
|
4108
4108
|
L("mask", Sl, [
|
|
4109
4109
|
L("rect", {
|
|
4110
4110
|
fill: e.color,
|
|
@@ -4143,12 +4143,12 @@ ${l.value}
|
|
|
4143
4143
|
},
|
|
4144
4144
|
emits: ["update:modelValue"],
|
|
4145
4145
|
setup(e, { emit: t }) {
|
|
4146
|
-
const { i18n: { t: n } } = z.useI18n(), i = e, r = t, o = M(!1), a = M({}), l = M(/* @__PURE__ */ new Set()), s =
|
|
4146
|
+
const { i18n: { t: n } } = z.useI18n(), i = e, r = t, o = M(!1), a = M({}), l = M(/* @__PURE__ */ new Set()), s = _(() => {
|
|
4147
4147
|
const R = [];
|
|
4148
4148
|
return new URLSearchParams(i.modelValue).forEach((F, E) => {
|
|
4149
4149
|
F !== "" && R.push(E);
|
|
4150
4150
|
}), R;
|
|
4151
|
-
}), d =
|
|
4151
|
+
}), d = _(() => {
|
|
4152
4152
|
const R = i.config.fields;
|
|
4153
4153
|
return Object.keys(R).filter((F) => {
|
|
4154
4154
|
var E;
|
|
@@ -4221,7 +4221,7 @@ ${l.value}
|
|
|
4221
4221
|
])
|
|
4222
4222
|
]),
|
|
4223
4223
|
_: 1
|
|
4224
|
-
}, 8, ["model-value", "placeholder"])) : (g(),
|
|
4224
|
+
}, 8, ["model-value", "placeholder"])) : (g(), S("div", Il, [
|
|
4225
4225
|
N(v, {
|
|
4226
4226
|
appearance: "tertiary",
|
|
4227
4227
|
"data-testid": "filter-button",
|
|
@@ -4240,9 +4240,9 @@ ${l.value}
|
|
|
4240
4240
|
[we, o.value]
|
|
4241
4241
|
]),
|
|
4242
4242
|
Ae(L("div", Fl, [
|
|
4243
|
-
(g(!0),
|
|
4243
|
+
(g(!0), S(fe, null, de(d.value, (p) => {
|
|
4244
4244
|
var K, H;
|
|
4245
|
-
return g(),
|
|
4245
|
+
return g(), S("div", {
|
|
4246
4246
|
key: p.value,
|
|
4247
4247
|
class: "kong-ui-entity-filter-menu-item",
|
|
4248
4248
|
"data-testid": p.value
|
|
@@ -4367,9 +4367,9 @@ ${l.value}
|
|
|
4367
4367
|
},
|
|
4368
4368
|
emits: ["cancel", "proceed"],
|
|
4369
4369
|
setup(e, { emit: t }) {
|
|
4370
|
-
const { i18n: { t: n }, i18nT: i } = z.useI18n(), r = e, o = t, a = M(!1), l =
|
|
4370
|
+
const { i18n: { t: n }, i18nT: i } = z.useI18n(), r = e, o = t, a = M(!1), l = _(
|
|
4371
4371
|
() => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
|
|
4372
|
-
), s =
|
|
4372
|
+
), s = _(
|
|
4373
4373
|
() => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
4374
4374
|
), d = () => o("cancel"), c = async () => {
|
|
4375
4375
|
if (r.onConfirm) {
|
|
@@ -4436,7 +4436,7 @@ ${l.value}
|
|
|
4436
4436
|
}
|
|
4437
4437
|
},
|
|
4438
4438
|
setup(e) {
|
|
4439
|
-
const t = e, n = M(void 0), i =
|
|
4439
|
+
const t = e, n = M(void 0), i = _(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4440
4440
|
return Ce(() => t.authFunction, async () => {
|
|
4441
4441
|
n.value = await t.authFunction();
|
|
4442
4442
|
}, { immediate: !0 }), (r, o) => i.value ? j(r.$slots, "default", {
|
|
@@ -4507,13 +4507,13 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4507
4507
|
},
|
|
4508
4508
|
setup(e) {
|
|
4509
4509
|
const t = He(), n = Hl();
|
|
4510
|
-
return (i, r) => (g(),
|
|
4510
|
+
return (i, r) => (g(), S("div", {
|
|
4511
4511
|
"aria-labelledby": e.title ? C(n) : void 0,
|
|
4512
4512
|
class: pe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4513
4513
|
role: "group"
|
|
4514
4514
|
}, [
|
|
4515
4515
|
L("div", Vl, [
|
|
4516
|
-
e.hideInfoHeader ? D("", !0) : (g(),
|
|
4516
|
+
e.hideInfoHeader ? D("", !0) : (g(), S("div", {
|
|
4517
4517
|
key: 0,
|
|
4518
4518
|
class: pe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4519
4519
|
}, [
|
|
@@ -4527,12 +4527,12 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4527
4527
|
]),
|
|
4528
4528
|
_: 1
|
|
4529
4529
|
}, 8, ["id"])) : D("", !0),
|
|
4530
|
-
e.description || C(t).description ? (g(),
|
|
4530
|
+
e.description || C(t).description ? (g(), S("div", Wl, [
|
|
4531
4531
|
j(i.$slots, "description", {}, () => [
|
|
4532
4532
|
L("p", null, I(e.description), 1)
|
|
4533
4533
|
], !0)
|
|
4534
4534
|
])) : D("", !0),
|
|
4535
|
-
C(t).footer ? (g(),
|
|
4535
|
+
C(t).footer ? (g(), S("div", Jl, [
|
|
4536
4536
|
j(i.$slots, "footer", {}, void 0, !0)
|
|
4537
4537
|
])) : D("", !0)
|
|
4538
4538
|
], 2)),
|
|
@@ -4570,9 +4570,9 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4570
4570
|
},
|
|
4571
4571
|
setup(e) {
|
|
4572
4572
|
const t = He();
|
|
4573
|
-
return (n, i) => (g(),
|
|
4573
|
+
return (n, i) => (g(), S("div", Ql, [
|
|
4574
4574
|
L("header", Zl, [
|
|
4575
|
-
e.step !== void 0 || t.step ? (g(),
|
|
4575
|
+
e.step !== void 0 || t.step ? (g(), S("div", Xl, [
|
|
4576
4576
|
j(n.$slots, "step", {}, () => [
|
|
4577
4577
|
q(I(e.step), 1)
|
|
4578
4578
|
], !0)
|
|
@@ -4583,13 +4583,13 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4583
4583
|
q(I(e.title), 1)
|
|
4584
4584
|
], !0)
|
|
4585
4585
|
]),
|
|
4586
|
-
e.description || t.description ? (g(),
|
|
4586
|
+
e.description || t.description ? (g(), S("div", ns, [
|
|
4587
4587
|
j(n.$slots, "description", {}, () => [
|
|
4588
4588
|
q(I(e.description), 1)
|
|
4589
4589
|
], !0)
|
|
4590
4590
|
])) : D("", !0)
|
|
4591
4591
|
]),
|
|
4592
|
-
t.extra ? (g(),
|
|
4592
|
+
t.extra ? (g(), S("div", is, [
|
|
4593
4593
|
j(n.$slots, "extra", {}, void 0, !0)
|
|
4594
4594
|
])) : D("", !0)
|
|
4595
4595
|
]),
|
|
@@ -4628,10 +4628,10 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4628
4628
|
}
|
|
4629
4629
|
},
|
|
4630
4630
|
setup(e) {
|
|
4631
|
-
const t = e, n = M(), { isTruncated: i } = z.useTruncationDetector(n), { i18n: { t: r } } = z.useI18n(), o = r("global.actions.copyId"), a = M(o), l =
|
|
4631
|
+
const t = e, n = M(), { isTruncated: i } = z.useTruncationDetector(n), { i18n: { t: r } } = z.useI18n(), o = r("global.actions.copyId"), a = M(o), l = _(() => t.entityLinkData.deleted ?? !1), s = _(() => {
|
|
4632
4632
|
var u;
|
|
4633
4633
|
return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4634
|
-
}), d =
|
|
4634
|
+
}), d = _(() => {
|
|
4635
4635
|
var u;
|
|
4636
4636
|
return `${(u = s.value) == null ? void 0 : u.toString().slice(0, 5)} (deleted)`;
|
|
4637
4637
|
}), c = async (u) => {
|
|
@@ -4641,8 +4641,8 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4641
4641
|
};
|
|
4642
4642
|
return (u, m) => {
|
|
4643
4643
|
const f = U("KTooltip"), h = U("KExternalLink"), b = U("KClipboardProvider");
|
|
4644
|
-
return g(),
|
|
4645
|
-
l.value ? (g(),
|
|
4644
|
+
return g(), S("div", os, [
|
|
4645
|
+
l.value ? (g(), S("div", ls, I(d.value), 1)) : s.value ? s.value ? (g(), B(h, {
|
|
4646
4646
|
key: 2,
|
|
4647
4647
|
class: "entity-link",
|
|
4648
4648
|
"hide-icon": !e.newWindow,
|
|
@@ -4664,7 +4664,7 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4664
4664
|
}, 8, ["text"])
|
|
4665
4665
|
]),
|
|
4666
4666
|
_: 1
|
|
4667
|
-
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (g(),
|
|
4667
|
+
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (g(), S("div", ss, I(" – "))),
|
|
4668
4668
|
s.value && e.allowCopy ? (g(), B(f, {
|
|
4669
4669
|
key: a.value,
|
|
4670
4670
|
class: "copy-uuid-tooltip",
|
|
@@ -4763,18 +4763,18 @@ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
|
|
|
4763
4763
|
},
|
|
4764
4764
|
emits: ["click:create", "click:learn-more"],
|
|
4765
4765
|
setup(e) {
|
|
4766
|
-
const t = e, { i18n: { t: n } } = z.useI18n(), i = M(!1), r =
|
|
4766
|
+
const t = e, { i18n: { t: n } } = z.useI18n(), i = M(!1), r = _(() => i.value && !!t.actionButtonText), o = _(() => Ct.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4767
4767
|
return lt(async () => {
|
|
4768
4768
|
i.value = await t.canCreate();
|
|
4769
4769
|
}), ot(() => oi(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4770
4770
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) => {
|
|
4771
4771
|
const s = U("KCard");
|
|
4772
|
-
return g(),
|
|
4772
|
+
return g(), S("div", ds, [
|
|
4773
4773
|
L("div", fs, [
|
|
4774
|
-
a.$slots.image ? (g(),
|
|
4774
|
+
a.$slots.image ? (g(), S("div", ps, [
|
|
4775
4775
|
j(a.$slots, "image", {}, void 0, !0)
|
|
4776
4776
|
])) : D("", !0),
|
|
4777
|
-
e.title || a.$slots.title ? (g(),
|
|
4777
|
+
e.title || a.$slots.title ? (g(), S("div", ms, [
|
|
4778
4778
|
L("h1", {
|
|
4779
4779
|
class: pe(o.value)
|
|
4780
4780
|
}, [
|
|
@@ -4783,12 +4783,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4783
4783
|
], !0)
|
|
4784
4784
|
], 2)
|
|
4785
4785
|
])) : D("", !0),
|
|
4786
|
-
e.description || a.$slots.default ? (g(),
|
|
4786
|
+
e.description || a.$slots.default ? (g(), S("div", gs, [
|
|
4787
4787
|
j(a.$slots, "default", {}, () => [
|
|
4788
4788
|
L("p", null, I(e.description), 1)
|
|
4789
4789
|
], !0)
|
|
4790
4790
|
])) : D("", !0),
|
|
4791
|
-
e.pricing || a.$slots.pricing ? (g(),
|
|
4791
|
+
e.pricing || a.$slots.pricing ? (g(), S("div", hs, [
|
|
4792
4792
|
L("p", null, [
|
|
4793
4793
|
L("b", null, I(C(n)("emptyState.pricingTitle")), 1),
|
|
4794
4794
|
l[2] || (l[2] = q()),
|
|
@@ -4798,10 +4798,10 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4798
4798
|
])
|
|
4799
4799
|
])) : D("", !0)
|
|
4800
4800
|
]),
|
|
4801
|
-
a.$slots.message ? (g(),
|
|
4801
|
+
a.$slots.message ? (g(), S("div", ys, [
|
|
4802
4802
|
j(a.$slots, "message", {}, void 0, !0)
|
|
4803
4803
|
])) : D("", !0),
|
|
4804
|
-
r.value || e.learnMore || a.$slots.actions ? (g(),
|
|
4804
|
+
r.value || e.learnMore || a.$slots.actions ? (g(), S("div", vs, [
|
|
4805
4805
|
j(a.$slots, "actions", {}, () => [
|
|
4806
4806
|
r.value ? (g(), B(C(vt), {
|
|
4807
4807
|
key: 0,
|
|
@@ -4831,13 +4831,13 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4831
4831
|
}, 8, ["size"])) : D("", !0)
|
|
4832
4832
|
], !0)
|
|
4833
4833
|
])) : D("", !0),
|
|
4834
|
-
e.features.length ? (g(),
|
|
4835
|
-
(g(!0),
|
|
4834
|
+
e.features.length ? (g(), S("div", bs, [
|
|
4835
|
+
(g(!0), S(fe, null, de(e.features, (d, c) => (g(), B(s, {
|
|
4836
4836
|
key: `feature-${c}-card`,
|
|
4837
4837
|
class: "entity-empty-state-card"
|
|
4838
4838
|
}, {
|
|
4839
4839
|
title: x(() => [
|
|
4840
|
-
a.$slots[`feature-${c}-icon`] ? (g(),
|
|
4840
|
+
a.$slots[`feature-${c}-icon`] ? (g(), S("div", ks, [
|
|
4841
4841
|
j(a.$slots, `feature-${c}-icon`, {}, void 0, !0)
|
|
4842
4842
|
])) : D("", !0),
|
|
4843
4843
|
L("div", Cs, I(d.title), 1)
|
|
@@ -4850,7 +4850,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4850
4850
|
_: 2
|
|
4851
4851
|
}, 1024))), 128))
|
|
4852
4852
|
])) : D("", !0),
|
|
4853
|
-
a.$slots.bottom ? (g(),
|
|
4853
|
+
a.$slots.bottom ? (g(), S("div", As, [
|
|
4854
4854
|
j(a.$slots, "bottom", {}, void 0, !0)
|
|
4855
4855
|
])) : D("", !0)
|
|
4856
4856
|
]);
|
|
@@ -4870,7 +4870,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4870
4870
|
}
|
|
4871
4871
|
},
|
|
4872
4872
|
setup(e) {
|
|
4873
|
-
const t = e, n =
|
|
4873
|
+
const t = e, n = _(() => {
|
|
4874
4874
|
if (Array.isArray(t.tags))
|
|
4875
4875
|
return t.tags;
|
|
4876
4876
|
if (typeof t.tags == "string")
|
|
@@ -4886,7 +4886,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4886
4886
|
var o;
|
|
4887
4887
|
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (g(), B(C(di), { key: 0 }, {
|
|
4888
4888
|
default: x(() => [
|
|
4889
|
-
(g(!0),
|
|
4889
|
+
(g(!0), S(fe, null, de(n.value, (a) => (g(), B(C(fi), {
|
|
4890
4890
|
key: a,
|
|
4891
4891
|
"max-width": e.tagMaxWidth,
|
|
4892
4892
|
onClick: r[0] || (r[0] = Ne(() => {
|
|
@@ -4899,7 +4899,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4899
4899
|
}, 1032, ["max-width"]))), 128))
|
|
4900
4900
|
]),
|
|
4901
4901
|
_: 1
|
|
4902
|
-
})) : (g(),
|
|
4902
|
+
})) : (g(), S("span", _s, "-"));
|
|
4903
4903
|
};
|
|
4904
4904
|
}
|
|
4905
4905
|
}), { useAxios: Vs, useDeleteUrlBuilder: Ws, useErrors: Js, useExternalLinkCreator: Gs, useFetchUrlBuilder: zs, useFetcher: Qs, useFetcherCacheKey: Zs, useDebouncedFilter: Xs, useStringHelpers: ec, useHelpers: tc, useGatewayFeatureSupported: nc, useTruncationDetector: ic, useValidators: rc, useSchemaProvider: ac, useTableState: oc } = z;
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
${c.value}
|
|
57
57
|
' | ${d}`:`@'
|
|
58
58
|
${c.value}
|
|
59
|
-
'@ | ${d}`});return(d,u)=>{const g=t.resolveComponent("KSelect"),p=t.resolveComponent("KBadge"),h=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Wi,[t.createVNode(g,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=b=>l.value=b),items:i},{"item-template":t.withCtx(({item:b})=>[b.value==="powershell"?(t.openBlock(),t.createBlock(t.unref(Z.LanguageShellIcon),{key:0})):(t.openBlock(),t.createBlock(t.unref(Z.LanguageBashIcon),{key:1})),t.createTextVNode(" "+t.toDisplayString(b.label),1)]),"selected-item-template":t.withCtx(({item:b})=>[b.value==="powershell"?(t.openBlock(),t.createBlock(t.unref(Z.LanguageShellIcon),{key:0})):(t.openBlock(),t.createBlock(t.unref(Z.LanguageBashIcon),{key:1})),t.createTextVNode(" "+t.toDisplayString(b.label),1)]),_:1},8,["modelValue"]),t.createVNode(t.unref(o),{"data-testid":`deck-hint-${e.app}`,keypath:`deckCodeBlock.hint.${e.app}`,tag:"p"},t.createSlots({link:t.withCtx(()=>[t.createVNode(t.unref(ae.KExternalLink),{href:e.app==="konnect"?"https://developer.konghq.com/deck/get-started/":"https://developer.konghq.com/deck/gateway/configuration/"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("deckCodeBlock.documentation")),1)]),_:1},8,["href"])]),_:2},[e.app==="konnect"?{name:"token",fn:t.withCtx(()=>[t.createVNode(p,null,{default:t.withCtx(()=>[...u[1]||(u[1]=[t.createTextVNode("DECK_KONNECT_TOKEN",-1)])]),_:1})]),key:"0"}:void 0]),1032,["data-testid","keypath"]),e.app==="konnect"?(t.openBlock(),t.createBlock(h,{key:0,id:"deck-env-codeblock",code:s.value,language:l.value,"single-line":"",theme:"dark",onCodeBlockRender:t.unref(le)},null,8,["code","language","onCodeBlockRender"])):t.createCommentVNode("",!0),n.entityRecord?(t.openBlock(),t.createBlock(h,{key:1,id:"deck-codeblock",code:f.value,language:l.value,theme:"dark",onCodeBlockRender:t.unref(le)},null,8,["code","language","onCodeBlockRender"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-04c956bc"]]),zi={key:0,class:"config-card-display-form"},Gi=["data-testid"],Ji={key:0,class:"config-card-prop-section-title"},Sn=G(t.defineComponent({__name:"ConfigCardDisplay",props:{config:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:e=>pe.includes(e)},subEntityType:{type:String,default:""},propertyCollections:{type:Object,required:!1,default:()=>null},format:{type:String,required:!1,default:"structured",validator:e=>["structured","yaml","json","terraform","deck"].includes(e)},propListTypes:{type:Array,required:!1,default:()=>[]},record:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""},codeBlockRecordFormatter:{type:Function,required:!1,default:e=>e}},setup(e){const n=e,r=t.useSlots(),{i18n:{t:o}}=K.useI18n(),i=c=>!!(c.tooltip||r[`${c.key}-label-tooltip`]),l=t.computed(()=>{if(!n.record)return n.record;let c=n.record;n.codeBlockRecordFormatter&&(c=n.codeBlockRecordFormatter(c,n.format));const s=JSON.parse(JSON.stringify(c));return delete s.created_at,delete s.updated_at,s}),a=t.computed(()=>n.fetcherUrl.replace(/(\?|&)__ui_data=true/,""));return(c,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.format==="structured"?(t.openBlock(),t.createElementBlock("div",zi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.propListTypes,f=>(t.openBlock(),t.createElementBlock("div",{key:`config-card-details-${f}-props`,class:t.normalizeClass(`config-card-details-${f}-props`),"data-testid":`config-card-details-${f}-props`},[f!=="basic"?(t.openBlock(),t.createElementBlock("div",Ji,t.toDisplayString(f==="advanced"?t.unref(o)("baseConfigCard.sections.advanced"):f==="plugin"?t.unref(o)("baseConfigCard.sections.plugin"):t.unref(o)("baseConfigCard.sections.policy")),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.propertyCollections[f],d=>t.renderSlot(c.$slots,`config-card-item-${d.key}`,{row:d},()=>[(t.openBlock(),t.createBlock(Fe,{key:d.key,item:d},t.createSlots({label:t.withCtx(()=>[t.renderSlot(c.$slots,`${d.key}-label`,{row:d},void 0,!0)]),[d.key]:t.withCtx(({rowValue:u})=>[t.renderSlot(c.$slots,d.key,{row:d,rowValue:u},void 0,!0)]),_:2},[i(d)?{name:"label-tooltip",fn:t.withCtx(()=>[t.renderSlot(c.$slots,`${d.key}-label-tooltip`,{row:d},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))],!0)),256))],10,Gi))),128))])):t.createCommentVNode("",!0),e.format==="json"&&l.value?(t.openBlock(),t.createBlock(Ie,{key:1,config:n.config,"entity-record":l.value,"fetcher-url":a.value,"request-method":"get"},null,8,["config","entity-record","fetcher-url"])):t.createCommentVNode("",!0),e.format==="yaml"&&l.value?(t.openBlock(),t.createBlock(We,{key:2,"entity-record":l.value},null,8,["entity-record"])):t.createCommentVNode("",!0),e.format==="terraform"&&l.value?(t.openBlock(),t.createBlock(ze,{key:3,"entity-record":l.value,"entity-type":n.entityType,"sub-entity-type":n.subEntityType},null,8,["entity-record","entity-type","sub-entity-type"])):t.createCommentVNode("",!0),e.format==="deck"&&l.value?(t.openBlock(),t.createBlock(Ge,{key:4,app:e.config.app,"control-plane-name":e.config.app==="konnect"?e.config.controlPlaneName:void 0,"entity-record":l.value,"entity-type":n.entityType,"geo-api-server-url":e.config.app==="konnect"?e.config.geoApiServerUrl:void 0,"kong-admin-api-url":e.config.app==="kongManager"?e.config.apiBaseUrl:void 0,workspace:e.config.app==="kongManager"?e.config.workspace:void 0},null,8,["app","control-plane-name","entity-record","entity-type","geo-api-server-url","kong-admin-api-url","workspace"])):t.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-50ba1af0"]]),Qi={class:"config-card-title","data-testid":"config-card-title"},Zi={class:"config-card-actions"},Xi=["href"],ea={key:2,class:"config-card-details-section"},ta=G(t.defineComponent({__name:"EntityBaseConfigCard",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string"||!e.entityId)},configSchema:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:e=>pe.includes(e)},subEntityType:{type:String,default:""},pluginConfigKey:{type:String,required:!1,default:""},pluginConfigSchema:{type:Object,required:!1,default:()=>({})},policyConfigKey:{type:String,required:!1,default:""},policyConfigSchema:{type:Object,required:!1,default:()=>({})},fetchUrl:{type:String,required:!0},dataKey:{type:String,required:!1,default:""},recordResolver:{type:Function,required:!1,default:e=>e},codeBlockRecordFormatter:{type:Function,required:!1,default:e=>e},hideTitle:{type:Boolean,default:!1},label:{type:String,default:"Format: ",required:!1},configCardDoc:{type:String,default:"",required:!1},titleTag:{type:String,default:"h2"}},emits:["loading","fetch:success","fetch:error","configFormatChange"],setup(e,{emit:n}){var x;const r=n,o=e,{i18n:{t:i}}=K.useI18n(),{getMessageFromError:l}=K.useErrors(),{convertKeyToTitle:a}=K.useStringHelpers();K.useSubSchema(o.pluginConfigKey);const{axiosInstance:c}=K.useAxios((x=o.config)==null?void 0:x.axiosRequestConfig),s=[{label:i("baseConfigCard.general.structuredFormat"),value:"structured",selected:!0},{label:i("baseForm.configuration.json"),value:"json"},{label:i("baseForm.configuration.yaml"),value:"yaml"}];o.config.app==="konnect"&&s.splice(2,0,{label:i("baseForm.configuration.terraform"),value:"terraform"});const f=_e.includes(o.entityType);(o.config.app==="kongManager"||o.config.enableDeckConfig)&&f&&s.push({label:i("baseForm.configuration.deck"),value:"deck"});const u=s[0].value,g=t.ref(u),p=m=>{g.value=m==null?void 0:m.value,r("configFormatChange",g.value)},h=(m,N)=>{localStorage.setItem(m,N)};t.watch(g,m=>{o.config.formatPreferenceKey&&h(o.config.formatPreferenceKey,m)}),t.onMounted(()=>{if(o.config.formatPreferenceKey){const m=localStorage.getItem(o.config.formatPreferenceKey);m&&s.some(N=>N.value===m)?g.value=m:g.value=u,h(o.config.formatPreferenceKey,g.value)}});const b={id:{type:D.ID,label:i("baseConfigCard.commonFields.id_label"),order:0,section:W.Basic},name:{order:1,section:W.Basic},enabled:{type:D.BadgeStatus,order:2,section:W.Basic},updated_at:{type:D.Date,label:i("baseConfigCard.commonFields.updated_at_label"),order:3,section:W.Basic},created_at:{type:D.Date,label:i("baseConfigCard.commonFields.created_at_label"),order:4,section:W.Basic},tags:{type:D.BadgeTag,order:-1,section:W.Basic},partials:{type:D.LinkInternal,label:i("baseConfigCard.commonFields.partial_label"),order:-1,section:W.Basic}},y=t.ref(!1),A=t.ref(!1),C=t.ref(""),w=t.ref({}),O=t.computed(()=>{var I,L,U;if(!w.value)return[];const m=[],N=Object.keys(w.value).length;for(const F in w.value){if(F==="__ui_data")continue;const T=(L=(I=o.configSchema)==null?void 0:I[F])==null?void 0:L.order,v=(U=b[F])==null?void 0:U.order;let V=N;(v||v===0)&&(V=v===-1?N+1:v),T&&(V=T===-1?N+1:T),m.push([F,V])}return m.sort(function(F,T){return F[1]-T[1]}),m.map(F=>{var En,Tn;const T=F[0],v=(En=w.value)==null?void 0:En[T],V=((Tn=o.configSchema)==null?void 0:Tn[T])||{},j=b[T];return{key:T,value:v,hidden:V.hidden||!1,type:V.type??((j==null?void 0:j.type)||D.Text),label:V.label??((j==null?void 0:j.label)||a(T)),tooltip:V.tooltip??((j==null?void 0:j.tooltip)||void 0),section:V.section??((j==null?void 0:j.section)||W.Advanced)}}).filter(F=>!F.hidden&&F.key!==o.pluginConfigKey)}),R=t.computed(()=>{var L,U;if(!w.value||!o.pluginConfigKey)return[];const m=w.value[o.pluginConfigKey]||{},N=Object.keys(m).length,I=[];for(const F in m){const T=(U=(L=o.pluginConfigSchema)==null?void 0:L[F])==null?void 0:U.order,v=m[F];let V=v!=null&&v!==""?N-1:N;T&&(V=T===-1?N+1:T),I.push([F,V])}return I.sort(function(F,T){return F[1]-T[1]}),I.map(F=>{var j;const T=F[0],v=m[T],V=((j=o.pluginConfigSchema)==null?void 0:j[T])||{};return{key:T,value:v,hidden:V.hidden||!1,type:V.type??D.Text,label:V.label??a(T),tooltip:V.tooltip??void 0,section:W.Plugin}}).filter(F=>!F.hidden)}),$=t.computed(()=>{var L,U;if(!w.value||!o.policyConfigKey)return[];const m=w.value[o.policyConfigKey]||{},N=Object.keys(m).length,I=[];for(const F in m){const T=(U=(L=o.policyConfigSchema)==null?void 0:L[F])==null?void 0:U.order,v=m[F];let V=v!=null&&v!==""?N-1:N;T&&(V=T===-1?N+1:T),I.push([F,V])}return I.sort(function(F,T){return F[1]-T[1]}),I.map(F=>{var j;const T=F[0],v=m[T],V=((j=o.policyConfigSchema)==null?void 0:j[T])||{};return{key:T,value:v,hidden:V.hidden||!1,type:V.type??D.Text,label:V.label??a(T),tooltip:V.tooltip??void 0,section:W.Policy}}).filter(F=>!F.hidden)}),E=t.computed(()=>{var m,N,I,L,U,F;return{basic:(m=O.value)==null?void 0:m.filter(T=>T.section===W.Basic),advanced:(N=O.value)==null?void 0:N.filter(T=>T.section===W.Advanced),plugin:(L=R.value)==null?void 0:L.concat((I=O.value)==null?void 0:I.filter(T=>T.section===W.Plugin)),policy:(F=$.value)==null?void 0:F.concat((U=O.value)==null?void 0:U.filter(T=>T.section===W.Policy))}}),_=t.computed(()=>{const m=[];return E.value.basic.length&&m.push("basic"),E.value.advanced.length&&m.push("advanced"),E.value.plugin.length&&m.push("plugin"),E.value.policy.length&&m.push("policy"),m}),k=t.computed(()=>{var N,I;let m=`${o.config.apiBaseUrl}${o.fetchUrl}`;return o.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((N=o.config)==null?void 0:N.controlPlaneId)||""):o.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(I=o.config)!=null&&I.workspace?`/${o.config.workspace}`:"")),m=m.replace(/{id}/gi,o.config.entityId),m});return t.watch(y,m=>{r("loading",m)},{immediate:!0}),t.onBeforeMount(async()=>{A.value=!1,y.value=!0;try{const{data:m}=await c.get(k.value);if(o.dataKey)if(typeof m[o.dataKey]<"u")w.value={...m[o.dataKey]};else throw new Error(i("errors.dataKeyUndefined",{dataKey:o.dataKey}));else o.recordResolver?w.value={...o.recordResolver(m)}:w.value={...m};Object.keys(o.configSchema).filter(I=>o.configSchema[I].forceShow).forEach(I=>{w.value&&typeof w.value[I]>"u"&&(w.value[I]=null)}),r("fetch:success",m)}catch(m){const N=l(m);C.value=N.startsWith("code")?i("baseConfigCard.errors.load"):N,A.value=!0,r("fetch:error",m)}finally{y.value=!1}}),(m,N)=>{const I=t.resolveComponent("KLabel"),L=t.resolveComponent("KSelect"),U=t.resolveComponent("KButton"),F=t.resolveComponent("KSkeleton"),T=t.resolveComponent("KEmptyState"),v=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(v,{class:"kong-ui-entity-base-config-card","title-tag":e.titleTag},t.createSlots({actions:t.withCtx(()=>[t.createElementVNode("div",Zi,[t.renderSlot(m.$slots,"actions",{},void 0,!0),t.createVNode(I,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1}),t.createVNode(L,{modelValue:g.value,"onUpdate:modelValue":N[0]||(N[0]=V=>g.value=V),"data-testid":"select-config-format",items:s,onChange:p},null,8,["modelValue"]),e.configCardDoc?(t.openBlock(),t.createBlock(U,{key:0,appearance:"tertiary",class:"book-icon","data-testid":"book-icon"},{default:t.withCtx(()=>[t.createElementVNode("a",{href:e.configCardDoc,rel:"noopener",target:"_blank"},[t.createVNode(t.unref(Z.BookIcon),{size:t.unref(cr)},null,8,["size"])],8,Xi)]),_:1})):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[y.value?(t.openBlock(),t.createBlock(F,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):A.value?(t.openBlock(),t.createBlock(T,{key:1,"data-testid":"config-card-fetch-error","icon-variant":"error"},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(C.value),1)]),_:1})):(t.openBlock(),t.createElementBlock("div",ea,[t.createVNode(Sn,{"code-block-record-formatter":e.codeBlockRecordFormatter,config:e.config,"entity-type":e.entityType,"fetcher-url":k.value,format:g.value,"prop-list-types":_.value,"property-collections":E.value,record:w.value,"sub-entity-type":e.subEntityType},t.createSlots({_:2},[t.renderList(Object.keys(m.$slots),V=>({name:V,fn:t.withCtx(j=>[t.renderSlot(m.$slots,V,t.mergeProps({record:w.value},j),void 0,!0)])}))]),1032,["code-block-record-formatter","config","entity-type","fetcher-url","format","prop-list-types","property-collections","record","sub-entity-type"])]))]),_:2},[e.hideTitle?void 0:{name:"title",fn:t.withCtx(()=>[t.createElementVNode("span",Qi,[t.renderSlot(m.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),[["__scopeId","data-v-77c89593"]]),An={KM_1948_PLUGIN_FORM_LAYOUT:"KM_1948_PLUGIN_FORM_LAYOUT"},na=["novalidate"],ra=G(t.defineComponent({__name:"EntityBaseForm",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string")},editId:{type:String,required:!1,default:""},entityType:{type:String,required:!0,validator:e=>pe.includes(e)},subEntityType:{type:String,required:!1,default:""},fetchUrl:{type:String,required:!1,default:""},isReadonly:{type:Boolean,required:!1,default:!1},canSubmit:{type:Boolean,required:!1,default:void 0},errorMessage:{type:String,required:!1,default:""},formFields:{type:Object,required:!0},noValidate:{type:Boolean,default:!1},wrapperComponent:{type:String,default:"KCard"},actionTeleportTarget:{type:String,default:void 0},hideActions:{type:Boolean,default:!1},slidoutTopOffset:{type:Number,default:60},alignActionButtonToLeft:{type:Boolean,default:!1},saveButtonText:{type:String,default:void 0},cancelButtonText:{type:String,default:void 0}},emits:["loading","fetch:success","fetch:error","submit","cancel","codeBlockTabChange"],setup(e,{expose:n,emit:r}){var _;const o=t.inject(An.KM_1948_PLUGIN_FORM_LAYOUT,!1),i=r,l=e,a=Nn.useRouter(),{i18n:{t:c}}=K.useI18n(),{getMessageFromError:s}=K.useErrors(),{axiosInstance:f}=K.useAxios((_=l.config)==null?void 0:_.axiosRequestConfig),d=t.ref(!1),u=t.computed(()=>!!l.editId),g=t.ref(!1),p=t.ref(""),h=t.computed(()=>l.canSubmit===!1||l.isReadonly),b=t.ref(!1),y=t.computed(()=>{var x,m;let k=`${l.config.apiBaseUrl}${l.fetchUrl}`;return l.config.app==="konnect"?k=k.replace(/{controlPlaneId}/gi,((x=l.config)==null?void 0:x.controlPlaneId)||""):l.config.app==="kongManager"&&(k=k.replace(/\/{workspace}/gi,(m=l.config)!=null&&m.workspace?`/${l.config.workspace}`:"")),l.editId?(k=k.replace(/{id}/gi,l.editId),k):(k=k.replace(/\/{id}/gi,""),k)}),A=()=>{b.value=!b.value},C=()=>{l.config.cancelRoute?a.push(l.config.cancelRoute):w()},w=()=>{i("cancel")},O=()=>{h.value||i("submit")},R=t.ref([{title:c("baseForm.configuration.json"),hash:"#json"},{title:c("baseForm.configuration.yaml"),hash:"#yaml"}]);l.config.app==="konnect"&&l.entityType!==oe.Other&&R.value.splice(1,0,{title:c("baseForm.configuration.terraform"),hash:"#terraform"});const $=_e.includes(l.entityType);return(l.config.app==="kongManager"||l.config.enableDeckTab)&&$&&R.value.push({title:c("baseForm.configuration.deck"),hash:"#deck"}),t.watch(()=>d.value,k=>{i("loading",k)},{immediate:!0}),t.onBeforeMount(async()=>{if(l.editId)try{g.value=!1,d.value=!0;const{data:k}=await f.get(y.value);i("fetch:success",k)}catch(k){const x=s(k);p.value=x.startsWith("code")?c("baseForm.errors.edit"):x,g.value=!0,i("fetch:error",k)}finally{d.value=!1}}),n({viewConfig:A,formCancel:w,formSubmit:O}),(k,x)=>{const m=t.resolveComponent("KSkeleton"),N=t.resolveComponent("KEmptyState"),I=t.resolveComponent("KAlert"),L=t.resolveComponent("KButton"),U=t.resolveComponent("KTabs"),F=t.resolveComponent("KSlideout");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.wrapperComponent),{class:t.normalizeClass(["kong-ui-entity-base-form",{"new-form-layout":t.unref(o)}])},{default:t.withCtx(()=>[d.value?(t.openBlock(),t.createBlock(m,{key:0,type:"form"})):g.value?(t.openBlock(),t.createBlock(N,{key:1,"action-button-text":t.unref(c)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:C},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(p.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:l.noValidate,onReset:t.withModifiers(w,["prevent"]),onSubmit:t.withModifiers(O,["prevent"])},[t.renderSlot(k.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(I,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),e.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.Teleport,{key:1,disabled:!e.actionTeleportTarget,to:e.actionTeleportTarget},[t.createElementVNode("div",{class:t.normalizeClass(["form-actions",{"form-actions-reverted":e.alignActionButtonToLeft}]),"data-testid":"form-actions"},[t.renderSlot(k.$slots,"form-actions",{},()=>[t.createVNode(L,{appearance:"tertiary","data-testid":`${e.entityType}-${u.value?"edit":"create"}-form-view-configuration`,onClick:x[0]||(x[0]=T=>A())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(b.value?t.unref(c)("baseForm.actions.hideConfiguration"):t.unref(c)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),t.createVNode(L,{appearance:"secondary","data-testid":`${e.entityType}-${u.value?"edit":"create"}-form-cancel`,disabled:e.isReadonly,type:"reset",onClick:x[1]||(x[1]=T=>!!e.actionTeleportTarget&&w())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelButtonText??t.unref(c)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),t.createVNode(L,{appearance:"primary","data-testid":`${e.entityType}-${u.value?"edit":"create"}-form-submit`,disabled:h.value,type:"submit",onClick:x[2]||(x[2]=T=>!!e.actionTeleportTarget&&O())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.saveButtonText??t.unref(c)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)],2)],8,["disabled","to"]))],40,na)),t.createVNode(F,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":e.slidoutTopOffset,title:t.unref(c)("baseForm.configuration.title"),visible:b.value,onClose:x[4]||(x[4]=T=>A())},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.renderSlot(k.$slots,"configuration-slideout-message",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(c)("baseForm.configuration.message")),1)],!0)]),t.createVNode(U,{"data-testid":"form-view-configuration-slideout-tabs",tabs:R.value,onChange:x[3]||(x[3]=T=>i("codeBlockTabChange",T.replace("#","")))},{json:t.withCtx(()=>[t.createVNode(Ie,{config:e.config,"entity-record":l.formFields,"fetcher-url":y.value,"request-method":l.editId?"put":"post"},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(We,{"entity-record":l.formFields},null,8,["entity-record"])]),terraform:t.withCtx(()=>[t.createVNode(ze,{"entity-record":l.formFields,"entity-type":e.entityType,"sub-entity-type":e.subEntityType},null,8,["entity-record","entity-type","sub-entity-type"])]),deck:t.withCtx(()=>[t.createVNode(Ge,{app:e.config.app,"control-plane-name":e.config.app==="konnect"?e.config.controlPlaneName:void 0,"entity-record":l.formFields,"entity-type":e.entityType,"geo-api-server-url":e.config.app==="konnect"?e.config.geoApiServerUrl:void 0,"kong-admin-api-url":e.config.app==="kongManager"?e.config.apiBaseUrl:void 0,workspace:e.config.app==="kongManager"?e.config.workspace:void 0},null,8,["app","control-plane-name","entity-record","entity-type","geo-api-server-url","kong-admin-api-url","workspace"])]),_:1},8,["tabs"])]),_:3},8,["offset-top","title","visible"])]),_:3},8,["class"])}}}),[["__scopeId","data-v-3733896a"]]),oa=["data-truncate"],ia=G(t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0},tooltip:{type:Boolean,default:!1}},setup(e){const n=e,r=t.computed(()=>{var y;return((y=n.rowEl)==null?void 0:y.querySelector(`[data-testid="${n.keyName}"]`))||null}),o=t.computed(()=>{var y;return((y=r.value)==null?void 0:y.querySelector('[data-truncate="true"]'))||null}),i=t.computed(()=>{var A,C;const y=(A=n.rowEl)==null?void 0:A.querySelectorAll("td");return y?((C=y[0])==null?void 0:C.getAttribute("data-testid"))===n.keyName:!0}),l=t.computed(()=>i.value||n.tooltip);let a;const c=()=>{a&&(a.disconnect(),a=void 0)},s=()=>{var A,C,w;let y=((A=r.value)==null?void 0:A.clientWidth)||0;if(r.value&&"getComputedStyle"in window){const O=window.getComputedStyle(r.value);y-=(parseFloat(O.paddingLeft)||0)+(parseFloat(O.paddingRight)||0)}d.value=((C=o.value)==null?void 0:C.getBoundingClientRect().width)||0,u.value=y,g.value=((w=f.value)==null?void 0:w.innerText)||""},f=t.ref({}),d=t.ref(0),u=t.ref(0),g=t.ref(""),p=t.computed(()=>[o.value,r.value]),h=t.watch(p,y=>{if(l.value&&(c(),"ResizeObserver"in window&&window)){a=new ResizeObserver(A=>{window.requestAnimationFrame(()=>{!Array.isArray(A)||!A.length||s()})});for(const A of y)A&&a.observe(A)}},{immediate:!0,flush:"post",deep:!0}),b=t.computed(()=>l.value?d.value>u.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{h()}),(y,A)=>{const C=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:f,class:"content-wrapper"},[l.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":l.value||void 0},[t.createVNode(C,{"max-width":"300",placement:"bottom-start",text:b.value?g.value:""},{default:t.withCtx(()=>[t.renderSlot(y.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,oa)):t.renderSlot(y.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-a3a65cac"]]),aa={class:"toolbar-container"},la={key:0,class:"toolbar-button-container"},ca={key:0,class:"hidden"},sa=G(t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},rowKey:{type:[String,Function],default:"id"},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:null},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},paginationAttributes:{type:Object,default:()=>({})},hidePaginationWhenOptional:{type:Boolean,default:!0},disableSorting:{type:Boolean,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:""},defaultTablePreferences:{type:Object,default:null,required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:void 0},disablePaginationPageJump:{type:Boolean,default:void 0,validator:e=>(e&&console.warn("EntityBaseTable: `disablePaginationPageJump` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),typeof e=="boolean")},paginationType:{type:String,default:void 0,validator:e=>(e&&console.warn("EntityBaseTable: `paginationType` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),["default","offset"].includes(e))}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked","state"],setup(e,{emit:n}){const r=e,o=n,{i18n:{t:i}}=K.useI18n(),l=t.computed(()=>{var k,x;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(k=r.errorMessage)==null?void 0:k.title,message:(x=r.errorMessage)==null?void 0:x.message}}),a=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=t.computed(()=>{const k=[];return Object.keys(r.tableHeaders).forEach(m=>{const N=r.tableHeaders[m];k.push({label:N.label??m,key:m,sortable:N.sortable??!1,hidable:N.hidable??!0})}),r.enableEntityActions&&k.push({key:"actions",hideLabel:!0}),k}),s=k=>({"data-rowid":k.id,"data-testid":k.name,...r.rowAttributes(k)}),f=t.ref({}),d=k=>{var x;return(x=f.value)==null?void 0:x.$el.querySelector(`[data-rowid="${k.id}"]`)},u=k=>{const x={"data-testid":k.headerKey,...r.cellAttributes(k)};return k.colIndex===0&&(x.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),x},g=k=>{C(k),o("state",k)},p=()=>{o("empty-state-cta-clicked"),h()},h=()=>{o("clear-search-input")},b=t.computed(()=>r.disableRowClick?void 0:(k,x)=>{o("click:row",x)}),y=k=>{o("sort",k)},{hideTableToolbar:A,handleStateChange:C}=K.useTableState(()=>r.query),{setTablePreferences:w,getTablePreferences:O}=Ln(),R=t.ref(O(a.value,r.defaultTablePreferences)),$=t.computed(()=>{const k=O(a.value);return{...r.initialFetcherParams,...k}}),E=k=>{R.value=k,c.value.forEach(x=>{!("hidable"in x)||!R.value.columnVisibility||x.hidable===!1&&(R.value.columnVisibility[x.key]=!0)}),a.value&&w(a.value,k)},_=t.computed(()=>({disablePageJump:r.disablePaginationPageJump,offset:r.paginationType==="offset",...r.paginationAttributes}));return(k,x)=>{const m=t.resolveComponent("KTableData"),N=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(N,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(m,{ref_key:"tableRefs",ref:f,"cache-identifier":a.value,"cell-attrs":u,"client-sort":e.enableClientSort,"empty-state-action-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?void 0:e.emptyStateOptions.ctaPath,"empty-state-icon-variant":e.query?"search":"kong","empty-state-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,error:l.value.hasError,"error-state-message":l.value.message,"error-state-title":l.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),headers:c.value,"hide-pagination":e.hidePagination,"hide-pagination-when-optional":e.hidePaginationWhenOptional,"hide-toolbar":e.hideToolbar??t.unref(A),"initial-fetcher-params":$.value,loading:e.isLoading,"pagination-attributes":_.value,"resize-columns":"","row-attrs":s,"row-key":e.rowKey,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":R.value,onEmptyStateActionClick:p,"onRow:click":b.value,onSort:x[0]||(x[0]=I=>y(I)),onState:g,"onUpdate:tablePreferences":E},t.createSlots({toolbar:t.withCtx(()=>[t.createElementVNode("div",aa,[t.renderSlot(k.$slots,"toolbar-filter",{},void 0,!0),k.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",la,[t.renderSlot(k.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)])]),"action-items":t.withCtx(({row:I})=>[t.renderSlot(k.$slots,"actions",{row:I},void 0,!0)]),_:2},[k.$slots["empty-state"]?{name:"empty-state",fn:t.withCtx(()=>[t.renderSlot(k.$slots,"empty-state",{},void 0,!0)]),key:"0"}:void 0,t.renderList(e.tableHeaders,(I,L)=>({name:L,fn:t.withCtx(({row:U,rowValue:F})=>[t.createVNode(ia,{"key-name":String(L),"row-el":d(U),tooltip:I.tooltip},{default:t.withCtx(()=>[t.renderSlot(k.$slots,L,{row:U,rowKey:e.rowKey,rowValue:F},()=>[t.createTextVNode(t.toDisplayString(F),1)],!0)]),_:2},1032,["key-name","row-el","tooltip"])])})),e.query?void 0:{name:"empty-state-action-icon",fn:t.withCtx(()=>[t.createVNode(t.unref(Z.AddIcon))]),key:"1"}]),1032,["cache-identifier","client-sort","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","error","error-state-message","error-state-title","fetcher","fetcher-cache-key","headers","hide-pagination","hide-pagination-when-optional","hide-toolbar","initial-fetcher-params","loading","pagination-attributes","row-key","search-input","sort-handler-function","sortable","table-preferences","onRow:click"]),k.$slots["outside-actions"]&&t.unref(A)?(t.openBlock(),t.createElementBlock("div",ca,[t.renderSlot(k.$slots,"outside-actions",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-09e101d4"]]),da={key:0,class:"kong-ui-entity-delete-error"},ua={key:1,class:"description"},fa=G(t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18nT:r}=K.useI18n(),o=e,i=n,l=t.computed(()=>o.needConfirm?o.entityName:""),a=()=>{i("cancel")},c=()=>{i("proceed")};return(s,f)=>{const d=t.resolveComponent("KAlert"),u=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(u,{"action-button-appearance":"danger","action-button-disabled":e.actionPending,"action-button-text":"Yes, delete",class:"kong-ui-entity-delete-modal","confirmation-text":l.value,title:e.title,visible:e.visible,onCancel:a,onProceed:c},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",da,[t.createVNode(d,{appearance:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(r),{class:"message",keypath:o.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.entityType),1)]),_:2},[o.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(o.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),o.description||s.$slots.description?(t.openBlock(),t.createElementBlock("div",ua,[t.renderSlot(s.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(o.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-button-disabled","confirmation-text","title","visible"])}}}),[["__scopeId","data-v-4361d622"]]),pa={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},ma={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},ga=["fill"],ha={mask:"url(#mask0_180_20349)"},ya=["fill"],Bn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${nr})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",pa,[t.createElementVNode("mask",ma,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,ga)]),t.createElementVNode("g",ha,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,ya)])]))}}),ka={key:1,class:"kong-ui-entity-filter"},ba={class:"kong-ui-entity-filter-menu"},Ca=["data-testid"],xa=["onClick","onKeydown"],wa={class:"menu-item-indicator"},Sa={class:"menu-item-body"},Aa=["for"],Ba={class:"menu-item-buttons"},_a={class:"filter-clear-button-container"},Ea=G(t.defineComponent({__name:"EntityFilter",props:{config:{type:Object,required:!0,default:()=>({isExactMatch:!0,placeholder:""})},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:n}){const{i18n:{t:r}}=K.useI18n(),o=e,i=n,l=t.ref(!1),a=t.ref({}),c=t.ref(new Set),s=t.computed(()=>{const $=[];return new URLSearchParams(o.modelValue).forEach((E,_)=>{E!==""&&$.push(_)}),$}),f=t.computed(()=>{const $=o.config.fields;return Object.keys($).filter(E=>{var _;return(_=$==null?void 0:$[E])==null?void 0:_.searchable}).map(E=>({label:$[E].label||E,value:E,expanded:!1}))});t.watch(()=>o.modelValue,$=>{a.value={},new URLSearchParams($).forEach((E,_)=>{a.value[_]=E})});const d=()=>{l.value=!l.value},u=$=>{c.value.has($)?c.value.delete($):c.value.add($)},g=$=>{i("update:modelValue",$)},p=()=>{g("")},h=$=>`filter-${$}`,b=$=>{var E,_;return(((_=(E=o.config.schema)==null?void 0:E[$])==null?void 0:_.values)??[]).map(k=>typeof k=="string"?{value:k,label:k}:k)},y=$=>{var E,_;return((_=(E=o.config.schema)==null?void 0:E[$])==null?void 0:_.type)??"text"},A=$=>{a.value={...a.value,[$]:""},w()},C=()=>{a.value={},w(!0)},w=($=!1)=>{const E=Object.keys(a.value).reduce((_,k)=>(a.value[k]&&(_[k]=`${a.value[k]}`),_),{});$&&(l.value=!1),i("update:modelValue",new URLSearchParams(E).toString())},O=$=>{var E,_;return!!((_=(E=o.config.schema)==null?void 0:E[$])!=null&&_.filterFunction)},R=($,E)=>{var k;const _=(k=o.config.schema)==null?void 0:k[$];return(_==null?void 0:_.filterFunction)===void 0?!0:_.filterFunction(E)};return($,E)=>{const _=t.resolveComponent("KInput"),k=t.resolveComponent("KButton"),x=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(_,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":g},{before:t.withCtx(()=>[t.createVNode(Bn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(Z.CloseIcon),{class:"kong-ui-entity-filter-clear",role:"button",tabindex:"0",onClick:p},null,512),[[t.vShow,e.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(t.openBlock(),t.createElementBlock("div",ka,[t.createVNode(k,{appearance:"tertiary","data-testid":"filter-button",onClick:d},{default:t.withCtx(()=>[t.createVNode(Bn),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("filter.filterButtonText"))+" "+t.toDisplayString(s.value.length>0?`(${s.value.length})`:""),1)]),_:1}),t.withDirectives(t.createElementVNode("div",{class:"kong-ui-entity-filter-backdrop",onClick:d},null,512),[[t.vShow,l.value]]),t.withDirectives(t.createElementVNode("div",ba,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,m=>{var N,I;return t.openBlock(),t.createElementBlock("div",{key:m.value,class:"kong-ui-entity-filter-menu-item","data-testid":m.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(m.value)}]),role:"button",tabindex:"0",onClick:L=>u(m.value),onKeydown:t.withKeys(L=>u(m.value),["enter"])},[t.createTextVNode(t.toDisplayString(m.label)+" ",1),t.withDirectives(t.createElementVNode("span",wa,null,512),[[t.vShow,s.value.includes(m.value)]]),t.createVNode(t.unref(Z.ChevronDownIcon),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(m.value)}]),color:t.unref(or)},null,8,["class","color"])],42,xa),t.withDirectives(t.createElementVNode("div",Sa,[t.createElementVNode("label",{class:"menu-item-label",for:h(m.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,Aa),((I=(N=e.config.schema)==null?void 0:N[m.value])==null?void 0:I.type)==="select"?(t.openBlock(),t.createBlock(x,{key:0,id:h(m.value),modelValue:a.value[m.value],"onUpdate:modelValue":L=>a.value[m.value]=L,"enable-filtering":O(m.value),"filter-function":L=>R(m.value,L),items:b(m.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","enable-filtering","filter-function","items","placeholder"])):(t.openBlock(),t.createBlock(_,{key:1,id:h(m.value),modelValue:a.value[m.value],"onUpdate:modelValue":L=>a.value[m.value]=L,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:y(m.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(m.value)]]),t.withDirectives(t.createElementVNode("div",Ba,[t.createVNode(k,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:E[0]||(E[0]=L=>w(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(k,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:L=>A(m.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:1},8,["onClick"])],512),[[t.vShow,c.value.has(m.value)]])],8,Ca)}),128)),t.createElementVNode("div",_a,[t.createVNode(k,{appearance:"tertiary",size:"small",onClick:C},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,l.value]])]))}}}),[["__scopeId","data-v-084f7978"]]),Ta=t.defineComponent({__name:"EntityToggleModal",props:{visible:{type:Boolean,required:!0},action:{type:String,required:!0},entityId:{type:String,required:!0},entityType:{type:String,required:!0},entityName:{type:String,required:!0},onConfirm:{type:Function,required:!1,default:null}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18n:{t:r},i18nT:o}=K.useI18n(),i=e,l=n,a=t.ref(!1),c=t.computed(()=>i.action==="enable"?r("toggleModal.enable.title",{entityType:i.entityType}):r("toggleModal.disable.title",{entityType:i.entityType})),s=t.computed(()=>i.action==="enable"?r("toggleModal.enable.confirmText"):r("toggleModal.disable.confirmText")),f=()=>l("cancel"),d=async()=>{if(i.onConfirm){a.value=!0;try{await i.onConfirm(),l("proceed")}catch(u){console.error(u)}finally{a.value=!1}}};return(u,g)=>{const p=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(p,{"action-button-disabled":a.value,"action-button-text":s.value,"data-testid":`${e.entityType}-${e.entityId}-toggle-prompt`,title:c.value,visible:e.visible,onCancel:f,onProceed:d},{default:t.withCtx(()=>[t.createVNode(t.unref(o),{keypath:`toggleModal.${i.action}.message`,scope:"global"},{entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.entityType),1)]),entityName:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(e.entityName),1)]),_:1},8,["keypath"])]),_:1},8,["action-button-disabled","action-button-text","data-testid","title","visible"])])}}}),$a=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const n=e,r=t.ref(void 0),o=t.computed(()=>r.value===!0||r.value!==void 0&&n.forceShow===!0);return t.watch(()=>n.authFunction,async()=>{r.value=await n.authFunction()},{immediate:!0}),(i,l)=>o.value?t.renderSlot(i.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}}),Y=[];for(let e=0;e<256;++e)Y.push((e+256).toString(16).slice(1));function Na(e,n=0){return(Y[e[n+0]]+Y[e[n+1]]+Y[e[n+2]]+Y[e[n+3]]+"-"+Y[e[n+4]]+Y[e[n+5]]+"-"+Y[e[n+6]]+Y[e[n+7]]+"-"+Y[e[n+8]]+Y[e[n+9]]+"-"+Y[e[n+10]]+Y[e[n+11]]+Y[e[n+12]]+Y[e[n+13]]+Y[e[n+14]]+Y[e[n+15]]).toLowerCase()}let Je;const Fa=new Uint8Array(16);function Ia(){if(!Je){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Je=crypto.getRandomValues.bind(crypto)}return Je(Fa)}const _n={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Oa(e,n,r){var i;if(_n.randomUUID&&!e)return _n.randomUUID();e=e||{};const o=e.random??((i=e.rng)==null?void 0:i.call(e))??Ia();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Na(o)}const La=["aria-labelledby"],Va={class:"form-section-wrapper"},Da={key:1,class:"form-section-description"},Ra={key:2,class:"form-section-footer"},Ka={class:"form-section-content"},Ma=G(t.defineComponent({__name:"EntityFormSection",props:{title:{type:String,default:""},description:{type:String,default:""},hasDivider:{type:Boolean,default:!1},stickyInfoHeader:{type:Boolean,default:!0},hideInfoHeader:{type:Boolean,default:!1},titleTag:{type:String,default:"h2"}},setup(e){const n=t.useSlots(),r=Oa();return(o,i)=>(t.openBlock(),t.createElementBlock("div",{"aria-labelledby":e.title?t.unref(r):void 0,class:t.normalizeClass(["kong-ui-entity-form-section",{"has-divider":e.hasDivider}]),role:"group"},[t.createElementVNode("div",Va,[e.hideInfoHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-section-info",{sticky:e.stickyInfoHeader}])},[e.title?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.titleTag),{key:0,id:t.unref(r),class:"form-section-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["id"])):t.createCommentVNode("",!0),e.description||t.unref(n).description?(t.openBlock(),t.createElementBlock("div",Da,[t.renderSlot(o.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),t.unref(n).footer?(t.openBlock(),t.createElementBlock("div",Ra,[t.renderSlot(o.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",Ka,[t.renderSlot(o.$slots,"default",{},void 0,!0)])])],10,La))}}),[["__scopeId","data-v-b1f74200"]]),va={class:"ff-form-section"},ja={class:"header"},Pa={key:0,class:"step","data-testid":"form-section-step"},Ua={class:"header-content"},qa={class:"header-title","data-testid":"header-title"},Ha={key:0,class:"header-description","data-testid":"header-description"},Ya={key:1,class:"header-extra","data-testid":"header-extra"},Wa={class:"content","data-testid":"form-section-content"},za=G(t.defineComponent({__name:"EntityFormBlock",props:{step:{default:()=>{}},title:{default:""},description:{default:""}},setup(e){const n=t.useSlots();return(r,o)=>(t.openBlock(),t.createElementBlock("div",va,[t.createElementVNode("header",ja,[e.step!==void 0||n.step?(t.openBlock(),t.createElementBlock("div",Pa,[t.renderSlot(r.$slots,"step",{},()=>[t.createTextVNode(t.toDisplayString(e.step),1)],!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Ua,[t.createElementVNode("h2",qa,[t.renderSlot(r.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)]),e.description||n.description?(t.openBlock(),t.createElementBlock("div",Ha,[t.renderSlot(r.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0)]),n.extra?(t.openBlock(),t.createElementBlock("div",Ya,[t.renderSlot(r.$slots,"extra",{},void 0,!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Wa,[t.renderSlot(r.$slots,"default",{},void 0,!0)])]))}}),[["__scopeId","data-v-cfc1bef0"]]),Ga={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Ja={key:0,class:"deleted-entity"},Qa={key:1},Za=["onClick"],Xa=G(t.defineComponent({__name:"EntityLink",props:{entityLinkData:{type:Object,required:!0},externalLink:{type:String,required:!1,default:""},newWindow:{type:Boolean,required:!1,default:!1},allowCopy:{type:Boolean,required:!1,default:!1}},setup(e){const n=e,r=t.ref(),{isTruncated:o}=K.useTruncationDetector(r),{i18n:{t:i}}=K.useI18n(),l=i("global.actions.copyId"),a=t.ref(l),c=t.computed(()=>n.entityLinkData.deleted??!1),s=t.computed(()=>{var u;return(u=n.entityLinkData.id)!=null&&u.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id}),f=t.computed(()=>{var u;return`${(u=s.value)==null?void 0:u.toString().slice(0,5)} (deleted)`}),d=async u=>{await u(s.value||"")&&(a.value=i("global.actions.copyToClipboard"),setTimeout(()=>{a.value=l},1800))};return(u,g)=>{const p=t.resolveComponent("KTooltip"),h=t.resolveComponent("KExternalLink"),b=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Ga,[c.value?(t.openBlock(),t.createElementBlock("div",Ja,t.toDisplayString(f.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(h,{key:2,class:"entity-link","hide-icon":!e.newWindow,href:e.externalLink,target:e.newWindow?"_blank":"_self"},{default:t.withCtx(()=>[t.createVNode(p,{text:t.unref(o)&&e.entityLinkData.label||""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:r,class:"entity-link-label"},t.toDisplayString(e.entityLinkData.label),513)]),_:1},8,["text"])]),_:1},8,["hide-icon","href","target"])):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Qa,t.toDisplayString(" – "))),s.value&&e.allowCopy?(t.openBlock(),t.createBlock(p,{key:a.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:a.value},{default:t.withCtx(()=>[t.createVNode(b,null,{default:t.withCtx(({copyToClipboard:y})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(A=>d(y),["stop"])},[t.createVNode(t.unref(Z.CopyIcon),{class:"copy-icon",color:t.unref(ir),"data-testid":"copy-id",size:t.unref(lr)},null,8,["color","size"])],8,Za)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-96efdfa5"]]),el={class:"kong-ui-public-entity-empty-state"},tl={class:"entity-empty-state-content"},nl={key:0,class:"empty-state-image"},rl={key:1,class:"entity-empty-state-title"},ol={key:2,class:"entity-empty-state-description"},il={key:3,class:"entity-empty-state-pricing"},al={key:0,class:"entity-empty-state-message"},ll={key:1,class:"entity-empty-state-action"},cl={key:2,class:"entity-empty-state-card-container"},sl={key:0,class:"feature-icon"},dl={class:"card-header"},ul=["title"],fl={key:3,class:"entity-empty-state-bottom-container"},pl=G(t.defineComponent({__name:"EntityEmptyState",props:{appearance:{type:String,default:()=>"primary",validator:e=>Ee.includes(e)},title:{type:String,default:""},description:{type:String,default:""},pricing:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},actionButtonText:{type:String,default:""},learnMore:{type:Boolean,default:!1},features:{type:Array,default:()=>[]}},emits:["click:create","click:learn-more"],setup(e){const n=e,{i18n:{t:r}}=K.useI18n(),o=t.ref(!1),i=t.computed(()=>o.value&&!!n.actionButtonText),l=t.computed(()=>Ee.includes(n.appearance)?n.appearance:["primary",n.appearance]);return t.onBeforeMount(async()=>{o.value=await n.canCreate()}),t.onMounted(()=>t.warn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
59
|
+
'@ | ${d}`});return(d,u)=>{const g=t.resolveComponent("KSelect"),p=t.resolveComponent("KBadge"),h=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Wi,[t.createVNode(g,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=b=>l.value=b),items:i},{"item-template":t.withCtx(({item:b})=>[b.value==="powershell"?(t.openBlock(),t.createBlock(t.unref(Z.LanguageShellIcon),{key:0})):(t.openBlock(),t.createBlock(t.unref(Z.LanguageBashIcon),{key:1})),t.createTextVNode(" "+t.toDisplayString(b.label),1)]),"selected-item-template":t.withCtx(({item:b})=>[b.value==="powershell"?(t.openBlock(),t.createBlock(t.unref(Z.LanguageShellIcon),{key:0})):(t.openBlock(),t.createBlock(t.unref(Z.LanguageBashIcon),{key:1})),t.createTextVNode(" "+t.toDisplayString(b.label),1)]),_:1},8,["modelValue"]),t.createVNode(t.unref(o),{"data-testid":`deck-hint-${e.app}`,keypath:`deckCodeBlock.hint.${e.app}`,tag:"p"},t.createSlots({link:t.withCtx(()=>[t.createVNode(t.unref(ae.KExternalLink),{href:e.app==="konnect"?"https://developer.konghq.com/deck/get-started/":"https://developer.konghq.com/deck/gateway/configuration/"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("deckCodeBlock.documentation")),1)]),_:1},8,["href"])]),_:2},[e.app==="konnect"?{name:"token",fn:t.withCtx(()=>[t.createVNode(p,null,{default:t.withCtx(()=>[...u[1]||(u[1]=[t.createTextVNode("DECK_KONNECT_TOKEN",-1)])]),_:1})]),key:"0"}:void 0]),1032,["data-testid","keypath"]),e.app==="konnect"?(t.openBlock(),t.createBlock(h,{key:0,id:"deck-env-codeblock",code:s.value,language:l.value,"single-line":"",theme:"dark",onCodeBlockRender:t.unref(le)},null,8,["code","language","onCodeBlockRender"])):t.createCommentVNode("",!0),n.entityRecord?(t.openBlock(),t.createBlock(h,{key:1,id:"deck-codeblock",code:f.value,language:l.value,theme:"dark",onCodeBlockRender:t.unref(le)},null,8,["code","language","onCodeBlockRender"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-04c956bc"]]),zi={key:0,class:"config-card-display-form"},Gi=["data-testid"],Ji={key:0,class:"config-card-prop-section-title"},Sn=G(t.defineComponent({__name:"ConfigCardDisplay",props:{config:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:e=>pe.includes(e)},subEntityType:{type:String,default:""},propertyCollections:{type:Object,required:!1,default:()=>null},format:{type:String,required:!1,default:"structured",validator:e=>["structured","yaml","json","terraform","deck"].includes(e)},propListTypes:{type:Array,required:!1,default:()=>[]},record:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""},codeBlockRecordFormatter:{type:Function,required:!1,default:e=>e}},setup(e){const n=e,r=t.useSlots(),{i18n:{t:o}}=K.useI18n(),i=c=>!!(c.tooltip||r[`${c.key}-label-tooltip`]),l=t.computed(()=>{if(!n.record)return n.record;let c=n.record;n.codeBlockRecordFormatter&&(c=n.codeBlockRecordFormatter(c,n.format));const s=JSON.parse(JSON.stringify(c));return delete s.created_at,delete s.updated_at,s}),a=t.computed(()=>n.fetcherUrl.replace(/(\?|&)__ui_data=true/,""));return(c,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.format==="structured"?(t.openBlock(),t.createElementBlock("div",zi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.propListTypes,f=>(t.openBlock(),t.createElementBlock("div",{key:`config-card-details-${f}-props`,class:t.normalizeClass(`config-card-details-${f}-props`),"data-testid":`config-card-details-${f}-props`},[f!=="basic"?(t.openBlock(),t.createElementBlock("div",Ji,t.toDisplayString(f==="advanced"?t.unref(o)("baseConfigCard.sections.advanced"):f==="plugin"?t.unref(o)("baseConfigCard.sections.plugin"):t.unref(o)("baseConfigCard.sections.policy")),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.propertyCollections[f],d=>t.renderSlot(c.$slots,`config-card-item-${d.key}`,{row:d},()=>[(t.openBlock(),t.createBlock(Fe,{key:d.key,item:d},t.createSlots({label:t.withCtx(()=>[t.renderSlot(c.$slots,`${d.key}-label`,{row:d},void 0,!0)]),[d.key]:t.withCtx(({rowValue:u})=>[t.renderSlot(c.$slots,d.key,{row:d,rowValue:u},void 0,!0)]),_:2},[i(d)?{name:"label-tooltip",fn:t.withCtx(()=>[t.renderSlot(c.$slots,`${d.key}-label-tooltip`,{row:d},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))],!0)),256))],10,Gi))),128))])):t.createCommentVNode("",!0),e.format==="json"&&l.value?(t.openBlock(),t.createBlock(Ie,{key:1,config:n.config,"entity-record":l.value,"fetcher-url":a.value,"request-method":"get"},null,8,["config","entity-record","fetcher-url"])):t.createCommentVNode("",!0),e.format==="yaml"&&l.value?(t.openBlock(),t.createBlock(We,{key:2,"entity-record":l.value},null,8,["entity-record"])):t.createCommentVNode("",!0),e.format==="terraform"&&l.value?(t.openBlock(),t.createBlock(ze,{key:3,"entity-record":l.value,"entity-type":n.entityType,"sub-entity-type":n.subEntityType},null,8,["entity-record","entity-type","sub-entity-type"])):t.createCommentVNode("",!0),e.format==="deck"&&l.value?(t.openBlock(),t.createBlock(Ge,{key:4,app:e.config.app,"control-plane-name":e.config.app==="konnect"?e.config.controlPlaneName:void 0,"entity-record":l.value,"entity-type":n.entityType,"geo-api-server-url":e.config.app==="konnect"?e.config.geoApiServerUrl:void 0,"kong-admin-api-url":e.config.app==="kongManager"?e.config.apiBaseUrl:void 0,workspace:e.config.app==="kongManager"?e.config.workspace:void 0},null,8,["app","control-plane-name","entity-record","entity-type","geo-api-server-url","kong-admin-api-url","workspace"])):t.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-50ba1af0"]]),Qi={class:"config-card-title","data-testid":"config-card-title"},Zi={class:"config-card-actions"},Xi=["href"],ea={key:2,class:"config-card-details-section"},ta=G(t.defineComponent({__name:"EntityBaseConfigCard",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string"||!e.entityId)},configSchema:{type:Object,required:!1,default:()=>({})},entityType:{type:String,required:!0,validator:e=>pe.includes(e)},subEntityType:{type:String,default:""},pluginConfigKey:{type:String,required:!1,default:""},pluginConfigSchema:{type:Object,required:!1,default:()=>({})},policyConfigKey:{type:String,required:!1,default:""},policyConfigSchema:{type:Object,required:!1,default:()=>({})},fetchUrl:{type:String,required:!0},dataKey:{type:String,required:!1,default:""},recordResolver:{type:Function,required:!1,default:e=>e},codeBlockRecordFormatter:{type:Function,required:!1,default:e=>e},hideTitle:{type:Boolean,default:!1},label:{type:String,default:"Format: ",required:!1},configCardDoc:{type:String,default:"",required:!1},titleTag:{type:String,default:"h2"}},emits:["loading","fetch:success","fetch:error","configFormatChange"],setup(e,{emit:n}){var x;const r=n,o=e,{i18n:{t:i}}=K.useI18n(),{getMessageFromError:l}=K.useErrors(),{convertKeyToTitle:a}=K.useStringHelpers();K.useSubSchema(o.pluginConfigKey);const{axiosInstance:c}=K.useAxios((x=o.config)==null?void 0:x.axiosRequestConfig),s=[{label:i("baseConfigCard.general.structuredFormat"),value:"structured",selected:!0},{label:i("baseForm.configuration.json"),value:"json"},{label:i("baseForm.configuration.yaml"),value:"yaml"}];o.config.app==="konnect"&&s.splice(2,0,{label:i("baseForm.configuration.terraform"),value:"terraform"});const f=_e.includes(o.entityType);(o.config.app==="kongManager"||o.config.enableDeckConfig)&&f&&s.push({label:i("baseForm.configuration.deck"),value:"deck"});const u=s[0].value,g=t.ref(u),p=m=>{g.value=m==null?void 0:m.value,r("configFormatChange",g.value)},h=(m,N)=>{localStorage.setItem(m,N)};t.watch(g,m=>{o.config.formatPreferenceKey&&h(o.config.formatPreferenceKey,m)}),t.onMounted(()=>{if(o.config.formatPreferenceKey){const m=localStorage.getItem(o.config.formatPreferenceKey);m&&s.some(N=>N.value===m)?g.value=m:g.value=u,h(o.config.formatPreferenceKey,g.value)}});const b={id:{type:D.ID,label:i("baseConfigCard.commonFields.id_label"),order:0,section:W.Basic},name:{order:1,section:W.Basic},enabled:{type:D.BadgeStatus,order:2,section:W.Basic},updated_at:{type:D.Date,label:i("baseConfigCard.commonFields.updated_at_label"),order:3,section:W.Basic},created_at:{type:D.Date,label:i("baseConfigCard.commonFields.created_at_label"),order:4,section:W.Basic},tags:{type:D.BadgeTag,order:-1,section:W.Basic},partials:{type:D.LinkInternal,label:i("baseConfigCard.commonFields.partial_label"),order:-1,section:W.Basic}},y=t.ref(!1),A=t.ref(!1),C=t.ref(""),w=t.ref({}),O=t.computed(()=>{var I,L,U;if(!w.value)return[];const m=[],N=Object.keys(w.value).length;for(const F in w.value){if(F==="__ui_data")continue;const T=(L=(I=o.configSchema)==null?void 0:I[F])==null?void 0:L.order,v=(U=b[F])==null?void 0:U.order;let V=N;(v||v===0)&&(V=v===-1?N+1:v),T&&(V=T===-1?N+1:T),m.push([F,V])}return m.sort(function(F,T){return F[1]-T[1]}),m.map(F=>{var En,Tn;const T=F[0],v=(En=w.value)==null?void 0:En[T],V=((Tn=o.configSchema)==null?void 0:Tn[T])||{},j=b[T];return{key:T,value:v,hidden:V.hidden||!1,type:V.type??((j==null?void 0:j.type)||D.Text),label:V.label??((j==null?void 0:j.label)||a(T)),tooltip:V.tooltip??((j==null?void 0:j.tooltip)||void 0),section:V.section??((j==null?void 0:j.section)||W.Advanced)}}).filter(F=>!F.hidden&&F.key!==o.pluginConfigKey)}),R=t.computed(()=>{var L,U;if(!w.value||!o.pluginConfigKey)return[];const m=w.value[o.pluginConfigKey]||{},N=Object.keys(m).length,I=[];for(const F in m){const T=(U=(L=o.pluginConfigSchema)==null?void 0:L[F])==null?void 0:U.order,v=m[F];let V=v!=null&&v!==""?N-1:N;T&&(V=T===-1?N+1:T),I.push([F,V])}return I.sort(function(F,T){return F[1]-T[1]}),I.map(F=>{var j;const T=F[0],v=m[T],V=((j=o.pluginConfigSchema)==null?void 0:j[T])||{};return{key:T,value:v,hidden:V.hidden||!1,type:V.type??D.Text,label:V.label??a(T),tooltip:V.tooltip??void 0,section:W.Plugin}}).filter(F=>!F.hidden)}),$=t.computed(()=>{var L,U;if(!w.value||!o.policyConfigKey)return[];const m=w.value[o.policyConfigKey]||{},N=Object.keys(m).length,I=[];for(const F in m){const T=(U=(L=o.policyConfigSchema)==null?void 0:L[F])==null?void 0:U.order,v=m[F];let V=v!=null&&v!==""?N-1:N;T&&(V=T===-1?N+1:T),I.push([F,V])}return I.sort(function(F,T){return F[1]-T[1]}),I.map(F=>{var j;const T=F[0],v=m[T],V=((j=o.policyConfigSchema)==null?void 0:j[T])||{};return{key:T,value:v,hidden:V.hidden||!1,type:V.type??D.Text,label:V.label??a(T),tooltip:V.tooltip??void 0,section:W.Policy}}).filter(F=>!F.hidden)}),E=t.computed(()=>{var m,N,I,L,U,F;return{basic:(m=O.value)==null?void 0:m.filter(T=>T.section===W.Basic),advanced:(N=O.value)==null?void 0:N.filter(T=>T.section===W.Advanced),plugin:(L=R.value)==null?void 0:L.concat((I=O.value)==null?void 0:I.filter(T=>T.section===W.Plugin)),policy:(F=$.value)==null?void 0:F.concat((U=O.value)==null?void 0:U.filter(T=>T.section===W.Policy))}}),_=t.computed(()=>{const m=[];return E.value.basic.length&&m.push("basic"),E.value.advanced.length&&m.push("advanced"),E.value.plugin.length&&m.push("plugin"),E.value.policy.length&&m.push("policy"),m}),k=t.computed(()=>{var N,I;let m=`${o.config.apiBaseUrl}${o.fetchUrl}`;return o.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((N=o.config)==null?void 0:N.controlPlaneId)||""):o.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(I=o.config)!=null&&I.workspace?`/${o.config.workspace}`:"")),m=m.replace(/{id}/gi,o.config.entityId),m});return t.watch(y,m=>{r("loading",m)},{immediate:!0}),t.onBeforeMount(async()=>{A.value=!1,y.value=!0;try{const{data:m}=await c.get(k.value);if(o.dataKey)if(typeof m[o.dataKey]<"u")w.value={...m[o.dataKey]};else throw new Error(i("errors.dataKeyUndefined",{dataKey:o.dataKey}));else o.recordResolver?w.value={...o.recordResolver(m)}:w.value={...m};Object.keys(o.configSchema).filter(I=>o.configSchema[I].forceShow).forEach(I=>{w.value&&typeof w.value[I]>"u"&&(w.value[I]=null)}),r("fetch:success",m)}catch(m){const N=l(m);C.value=N.startsWith("code")?i("baseConfigCard.errors.load"):N,A.value=!0,r("fetch:error",m)}finally{y.value=!1}}),(m,N)=>{const I=t.resolveComponent("KLabel"),L=t.resolveComponent("KSelect"),U=t.resolveComponent("KButton"),F=t.resolveComponent("KSkeleton"),T=t.resolveComponent("KEmptyState"),v=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(v,{class:"kong-ui-entity-base-config-card","title-tag":e.titleTag},t.createSlots({actions:t.withCtx(()=>[t.createElementVNode("div",Zi,[t.renderSlot(m.$slots,"actions",{},void 0,!0),t.createVNode(I,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1}),t.createVNode(L,{modelValue:g.value,"onUpdate:modelValue":N[0]||(N[0]=V=>g.value=V),"data-testid":"select-config-format",items:s,onChange:p},null,8,["modelValue"]),e.configCardDoc?(t.openBlock(),t.createBlock(U,{key:0,appearance:"tertiary",class:"book-icon","data-testid":"book-icon"},{default:t.withCtx(()=>[t.createElementVNode("a",{href:e.configCardDoc,rel:"noopener",target:"_blank"},[t.createVNode(t.unref(Z.BookIcon),{size:t.unref(cr)},null,8,["size"])],8,Xi)]),_:1})):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[y.value?(t.openBlock(),t.createBlock(F,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):A.value?(t.openBlock(),t.createBlock(T,{key:1,"data-testid":"config-card-fetch-error","icon-variant":"error"},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(C.value),1)]),_:1})):(t.openBlock(),t.createElementBlock("div",ea,[t.createVNode(Sn,{"code-block-record-formatter":e.codeBlockRecordFormatter,config:e.config,"entity-type":e.entityType,"fetcher-url":k.value,format:g.value,"prop-list-types":_.value,"property-collections":E.value,record:w.value,"sub-entity-type":e.subEntityType},t.createSlots({_:2},[t.renderList(Object.keys(m.$slots),V=>({name:V,fn:t.withCtx(j=>[t.renderSlot(m.$slots,V,t.mergeProps({record:w.value},j),void 0,!0)])}))]),1032,["code-block-record-formatter","config","entity-type","fetcher-url","format","prop-list-types","property-collections","record","sub-entity-type"])]))]),_:2},[e.hideTitle?void 0:{name:"title",fn:t.withCtx(()=>[t.createElementVNode("span",Qi,[t.renderSlot(m.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),[["__scopeId","data-v-77c89593"]]),An={KM_1948_PLUGIN_FORM_LAYOUT:"KM_1948_PLUGIN_FORM_LAYOUT"},na=["novalidate"],ra=G(t.defineComponent({__name:"EntityBaseForm",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string")},editId:{type:String,required:!1,default:""},entityType:{type:String,required:!0,validator:e=>pe.includes(e)},subEntityType:{type:String,required:!1,default:""},fetchUrl:{type:String,required:!1,default:""},isReadonly:{type:Boolean,required:!1,default:!1},canSubmit:{type:Boolean,required:!1,default:void 0},errorMessage:{type:String,required:!1,default:""},formFields:{type:Object,required:!0},noValidate:{type:Boolean,default:!1},wrapperComponent:{type:String,default:"KCard"},actionTeleportTarget:{type:String,default:void 0},hideActions:{type:Boolean,default:!1},slidoutTopOffset:{type:Number,default:60},alignActionButtonToLeft:{type:Boolean,default:!1},saveButtonText:{type:String,default:void 0},cancelButtonText:{type:String,default:void 0}},emits:["loading","fetch:success","fetch:error","submit","cancel","codeBlockTabChange"],setup(e,{expose:n,emit:r}){var _;const o=t.inject(An.KM_1948_PLUGIN_FORM_LAYOUT,t.computed(()=>!1)),i=r,l=e,a=Nn.useRouter(),{i18n:{t:c}}=K.useI18n(),{getMessageFromError:s}=K.useErrors(),{axiosInstance:f}=K.useAxios((_=l.config)==null?void 0:_.axiosRequestConfig),d=t.ref(!1),u=t.computed(()=>!!l.editId),g=t.ref(!1),p=t.ref(""),h=t.computed(()=>l.canSubmit===!1||l.isReadonly),b=t.ref(!1),y=t.computed(()=>{var x,m;let k=`${l.config.apiBaseUrl}${l.fetchUrl}`;return l.config.app==="konnect"?k=k.replace(/{controlPlaneId}/gi,((x=l.config)==null?void 0:x.controlPlaneId)||""):l.config.app==="kongManager"&&(k=k.replace(/\/{workspace}/gi,(m=l.config)!=null&&m.workspace?`/${l.config.workspace}`:"")),l.editId?(k=k.replace(/{id}/gi,l.editId),k):(k=k.replace(/\/{id}/gi,""),k)}),A=()=>{b.value=!b.value},C=()=>{l.config.cancelRoute?a.push(l.config.cancelRoute):w()},w=()=>{i("cancel")},O=()=>{h.value||i("submit")},R=t.ref([{title:c("baseForm.configuration.json"),hash:"#json"},{title:c("baseForm.configuration.yaml"),hash:"#yaml"}]);l.config.app==="konnect"&&l.entityType!==oe.Other&&R.value.splice(1,0,{title:c("baseForm.configuration.terraform"),hash:"#terraform"});const $=_e.includes(l.entityType);return(l.config.app==="kongManager"||l.config.enableDeckTab)&&$&&R.value.push({title:c("baseForm.configuration.deck"),hash:"#deck"}),t.watch(()=>d.value,k=>{i("loading",k)},{immediate:!0}),t.onBeforeMount(async()=>{if(l.editId)try{g.value=!1,d.value=!0;const{data:k}=await f.get(y.value);i("fetch:success",k)}catch(k){const x=s(k);p.value=x.startsWith("code")?c("baseForm.errors.edit"):x,g.value=!0,i("fetch:error",k)}finally{d.value=!1}}),n({viewConfig:A,formCancel:w,formSubmit:O}),(k,x)=>{const m=t.resolveComponent("KSkeleton"),N=t.resolveComponent("KEmptyState"),I=t.resolveComponent("KAlert"),L=t.resolveComponent("KButton"),U=t.resolveComponent("KTabs"),F=t.resolveComponent("KSlideout");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.wrapperComponent),{class:t.normalizeClass(["kong-ui-entity-base-form",{"new-form-layout":t.unref(o)}])},{default:t.withCtx(()=>[d.value?(t.openBlock(),t.createBlock(m,{key:0,type:"form"})):g.value?(t.openBlock(),t.createBlock(N,{key:1,"action-button-text":t.unref(c)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:C},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(p.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:l.noValidate,onReset:t.withModifiers(w,["prevent"]),onSubmit:t.withModifiers(O,["prevent"])},[t.renderSlot(k.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(I,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),e.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.Teleport,{key:1,disabled:!e.actionTeleportTarget,to:e.actionTeleportTarget},[t.createElementVNode("div",{class:t.normalizeClass(["form-actions",{"form-actions-reverted":e.alignActionButtonToLeft}]),"data-testid":"form-actions"},[t.renderSlot(k.$slots,"form-actions",{},()=>[t.createVNode(L,{appearance:"tertiary","data-testid":`${e.entityType}-${u.value?"edit":"create"}-form-view-configuration`,onClick:x[0]||(x[0]=T=>A())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(b.value?t.unref(c)("baseForm.actions.hideConfiguration"):t.unref(c)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),t.createVNode(L,{appearance:"secondary","data-testid":`${e.entityType}-${u.value?"edit":"create"}-form-cancel`,disabled:e.isReadonly,type:"reset",onClick:x[1]||(x[1]=T=>!!e.actionTeleportTarget&&w())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelButtonText??t.unref(c)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),t.createVNode(L,{appearance:"primary","data-testid":`${e.entityType}-${u.value?"edit":"create"}-form-submit`,disabled:h.value,type:"submit",onClick:x[2]||(x[2]=T=>!!e.actionTeleportTarget&&O())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.saveButtonText??t.unref(c)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)],2)],8,["disabled","to"]))],40,na)),t.createVNode(F,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":e.slidoutTopOffset,title:t.unref(c)("baseForm.configuration.title"),visible:b.value,onClose:x[4]||(x[4]=T=>A())},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.renderSlot(k.$slots,"configuration-slideout-message",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(c)("baseForm.configuration.message")),1)],!0)]),t.createVNode(U,{"data-testid":"form-view-configuration-slideout-tabs",tabs:R.value,onChange:x[3]||(x[3]=T=>i("codeBlockTabChange",T.replace("#","")))},{json:t.withCtx(()=>[t.createVNode(Ie,{config:e.config,"entity-record":l.formFields,"fetcher-url":y.value,"request-method":l.editId?"put":"post"},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(We,{"entity-record":l.formFields},null,8,["entity-record"])]),terraform:t.withCtx(()=>[t.createVNode(ze,{"entity-record":l.formFields,"entity-type":e.entityType,"sub-entity-type":e.subEntityType},null,8,["entity-record","entity-type","sub-entity-type"])]),deck:t.withCtx(()=>[t.createVNode(Ge,{app:e.config.app,"control-plane-name":e.config.app==="konnect"?e.config.controlPlaneName:void 0,"entity-record":l.formFields,"entity-type":e.entityType,"geo-api-server-url":e.config.app==="konnect"?e.config.geoApiServerUrl:void 0,"kong-admin-api-url":e.config.app==="kongManager"?e.config.apiBaseUrl:void 0,workspace:e.config.app==="kongManager"?e.config.workspace:void 0},null,8,["app","control-plane-name","entity-record","entity-type","geo-api-server-url","kong-admin-api-url","workspace"])]),_:1},8,["tabs"])]),_:3},8,["offset-top","title","visible"])]),_:3},8,["class"])}}}),[["__scopeId","data-v-463136e3"]]),oa=["data-truncate"],ia=G(t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0},tooltip:{type:Boolean,default:!1}},setup(e){const n=e,r=t.computed(()=>{var y;return((y=n.rowEl)==null?void 0:y.querySelector(`[data-testid="${n.keyName}"]`))||null}),o=t.computed(()=>{var y;return((y=r.value)==null?void 0:y.querySelector('[data-truncate="true"]'))||null}),i=t.computed(()=>{var A,C;const y=(A=n.rowEl)==null?void 0:A.querySelectorAll("td");return y?((C=y[0])==null?void 0:C.getAttribute("data-testid"))===n.keyName:!0}),l=t.computed(()=>i.value||n.tooltip);let a;const c=()=>{a&&(a.disconnect(),a=void 0)},s=()=>{var A,C,w;let y=((A=r.value)==null?void 0:A.clientWidth)||0;if(r.value&&"getComputedStyle"in window){const O=window.getComputedStyle(r.value);y-=(parseFloat(O.paddingLeft)||0)+(parseFloat(O.paddingRight)||0)}d.value=((C=o.value)==null?void 0:C.getBoundingClientRect().width)||0,u.value=y,g.value=((w=f.value)==null?void 0:w.innerText)||""},f=t.ref({}),d=t.ref(0),u=t.ref(0),g=t.ref(""),p=t.computed(()=>[o.value,r.value]),h=t.watch(p,y=>{if(l.value&&(c(),"ResizeObserver"in window&&window)){a=new ResizeObserver(A=>{window.requestAnimationFrame(()=>{!Array.isArray(A)||!A.length||s()})});for(const A of y)A&&a.observe(A)}},{immediate:!0,flush:"post",deep:!0}),b=t.computed(()=>l.value?d.value>u.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{h()}),(y,A)=>{const C=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:f,class:"content-wrapper"},[l.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":l.value||void 0},[t.createVNode(C,{"max-width":"300",placement:"bottom-start",text:b.value?g.value:""},{default:t.withCtx(()=>[t.renderSlot(y.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,oa)):t.renderSlot(y.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-a3a65cac"]]),aa={class:"toolbar-container"},la={key:0,class:"toolbar-button-container"},ca={key:0,class:"hidden"},sa=G(t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},rowKey:{type:[String,Function],default:"id"},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:null},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},paginationAttributes:{type:Object,default:()=>({})},hidePaginationWhenOptional:{type:Boolean,default:!0},disableSorting:{type:Boolean,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:""},defaultTablePreferences:{type:Object,default:null,required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:void 0},disablePaginationPageJump:{type:Boolean,default:void 0,validator:e=>(e&&console.warn("EntityBaseTable: `disablePaginationPageJump` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),typeof e=="boolean")},paginationType:{type:String,default:void 0,validator:e=>(e&&console.warn("EntityBaseTable: `paginationType` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),["default","offset"].includes(e))}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked","state"],setup(e,{emit:n}){const r=e,o=n,{i18n:{t:i}}=K.useI18n(),l=t.computed(()=>{var k,x;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(k=r.errorMessage)==null?void 0:k.title,message:(x=r.errorMessage)==null?void 0:x.message}}),a=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=t.computed(()=>{const k=[];return Object.keys(r.tableHeaders).forEach(m=>{const N=r.tableHeaders[m];k.push({label:N.label??m,key:m,sortable:N.sortable??!1,hidable:N.hidable??!0})}),r.enableEntityActions&&k.push({key:"actions",hideLabel:!0}),k}),s=k=>({"data-rowid":k.id,"data-testid":k.name,...r.rowAttributes(k)}),f=t.ref({}),d=k=>{var x;return(x=f.value)==null?void 0:x.$el.querySelector(`[data-rowid="${k.id}"]`)},u=k=>{const x={"data-testid":k.headerKey,...r.cellAttributes(k)};return k.colIndex===0&&(x.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),x},g=k=>{C(k),o("state",k)},p=()=>{o("empty-state-cta-clicked"),h()},h=()=>{o("clear-search-input")},b=t.computed(()=>r.disableRowClick?void 0:(k,x)=>{o("click:row",x)}),y=k=>{o("sort",k)},{hideTableToolbar:A,handleStateChange:C}=K.useTableState(()=>r.query),{setTablePreferences:w,getTablePreferences:O}=Ln(),R=t.ref(O(a.value,r.defaultTablePreferences)),$=t.computed(()=>{const k=O(a.value);return{...r.initialFetcherParams,...k}}),E=k=>{R.value=k,c.value.forEach(x=>{!("hidable"in x)||!R.value.columnVisibility||x.hidable===!1&&(R.value.columnVisibility[x.key]=!0)}),a.value&&w(a.value,k)},_=t.computed(()=>({disablePageJump:r.disablePaginationPageJump,offset:r.paginationType==="offset",...r.paginationAttributes}));return(k,x)=>{const m=t.resolveComponent("KTableData"),N=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(N,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(m,{ref_key:"tableRefs",ref:f,"cache-identifier":a.value,"cell-attrs":u,"client-sort":e.enableClientSort,"empty-state-action-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?void 0:e.emptyStateOptions.ctaPath,"empty-state-icon-variant":e.query?"search":"kong","empty-state-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,error:l.value.hasError,"error-state-message":l.value.message,"error-state-title":l.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),headers:c.value,"hide-pagination":e.hidePagination,"hide-pagination-when-optional":e.hidePaginationWhenOptional,"hide-toolbar":e.hideToolbar??t.unref(A),"initial-fetcher-params":$.value,loading:e.isLoading,"pagination-attributes":_.value,"resize-columns":"","row-attrs":s,"row-key":e.rowKey,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":R.value,onEmptyStateActionClick:p,"onRow:click":b.value,onSort:x[0]||(x[0]=I=>y(I)),onState:g,"onUpdate:tablePreferences":E},t.createSlots({toolbar:t.withCtx(()=>[t.createElementVNode("div",aa,[t.renderSlot(k.$slots,"toolbar-filter",{},void 0,!0),k.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",la,[t.renderSlot(k.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)])]),"action-items":t.withCtx(({row:I})=>[t.renderSlot(k.$slots,"actions",{row:I},void 0,!0)]),_:2},[k.$slots["empty-state"]?{name:"empty-state",fn:t.withCtx(()=>[t.renderSlot(k.$slots,"empty-state",{},void 0,!0)]),key:"0"}:void 0,t.renderList(e.tableHeaders,(I,L)=>({name:L,fn:t.withCtx(({row:U,rowValue:F})=>[t.createVNode(ia,{"key-name":String(L),"row-el":d(U),tooltip:I.tooltip},{default:t.withCtx(()=>[t.renderSlot(k.$slots,L,{row:U,rowKey:e.rowKey,rowValue:F},()=>[t.createTextVNode(t.toDisplayString(F),1)],!0)]),_:2},1032,["key-name","row-el","tooltip"])])})),e.query?void 0:{name:"empty-state-action-icon",fn:t.withCtx(()=>[t.createVNode(t.unref(Z.AddIcon))]),key:"1"}]),1032,["cache-identifier","client-sort","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","error","error-state-message","error-state-title","fetcher","fetcher-cache-key","headers","hide-pagination","hide-pagination-when-optional","hide-toolbar","initial-fetcher-params","loading","pagination-attributes","row-key","search-input","sort-handler-function","sortable","table-preferences","onRow:click"]),k.$slots["outside-actions"]&&t.unref(A)?(t.openBlock(),t.createElementBlock("div",ca,[t.renderSlot(k.$slots,"outside-actions",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-09e101d4"]]),da={key:0,class:"kong-ui-entity-delete-error"},ua={key:1,class:"description"},fa=G(t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18nT:r}=K.useI18n(),o=e,i=n,l=t.computed(()=>o.needConfirm?o.entityName:""),a=()=>{i("cancel")},c=()=>{i("proceed")};return(s,f)=>{const d=t.resolveComponent("KAlert"),u=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(u,{"action-button-appearance":"danger","action-button-disabled":e.actionPending,"action-button-text":"Yes, delete",class:"kong-ui-entity-delete-modal","confirmation-text":l.value,title:e.title,visible:e.visible,onCancel:a,onProceed:c},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",da,[t.createVNode(d,{appearance:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(r),{class:"message",keypath:o.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.entityType),1)]),_:2},[o.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(o.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),o.description||s.$slots.description?(t.openBlock(),t.createElementBlock("div",ua,[t.renderSlot(s.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(o.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-button-disabled","confirmation-text","title","visible"])}}}),[["__scopeId","data-v-4361d622"]]),pa={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},ma={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},ga=["fill"],ha={mask:"url(#mask0_180_20349)"},ya=["fill"],Bn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${nr})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",pa,[t.createElementVNode("mask",ma,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,ga)]),t.createElementVNode("g",ha,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,ya)])]))}}),ka={key:1,class:"kong-ui-entity-filter"},ba={class:"kong-ui-entity-filter-menu"},Ca=["data-testid"],xa=["onClick","onKeydown"],wa={class:"menu-item-indicator"},Sa={class:"menu-item-body"},Aa=["for"],Ba={class:"menu-item-buttons"},_a={class:"filter-clear-button-container"},Ea=G(t.defineComponent({__name:"EntityFilter",props:{config:{type:Object,required:!0,default:()=>({isExactMatch:!0,placeholder:""})},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:n}){const{i18n:{t:r}}=K.useI18n(),o=e,i=n,l=t.ref(!1),a=t.ref({}),c=t.ref(new Set),s=t.computed(()=>{const $=[];return new URLSearchParams(o.modelValue).forEach((E,_)=>{E!==""&&$.push(_)}),$}),f=t.computed(()=>{const $=o.config.fields;return Object.keys($).filter(E=>{var _;return(_=$==null?void 0:$[E])==null?void 0:_.searchable}).map(E=>({label:$[E].label||E,value:E,expanded:!1}))});t.watch(()=>o.modelValue,$=>{a.value={},new URLSearchParams($).forEach((E,_)=>{a.value[_]=E})});const d=()=>{l.value=!l.value},u=$=>{c.value.has($)?c.value.delete($):c.value.add($)},g=$=>{i("update:modelValue",$)},p=()=>{g("")},h=$=>`filter-${$}`,b=$=>{var E,_;return(((_=(E=o.config.schema)==null?void 0:E[$])==null?void 0:_.values)??[]).map(k=>typeof k=="string"?{value:k,label:k}:k)},y=$=>{var E,_;return((_=(E=o.config.schema)==null?void 0:E[$])==null?void 0:_.type)??"text"},A=$=>{a.value={...a.value,[$]:""},w()},C=()=>{a.value={},w(!0)},w=($=!1)=>{const E=Object.keys(a.value).reduce((_,k)=>(a.value[k]&&(_[k]=`${a.value[k]}`),_),{});$&&(l.value=!1),i("update:modelValue",new URLSearchParams(E).toString())},O=$=>{var E,_;return!!((_=(E=o.config.schema)==null?void 0:E[$])!=null&&_.filterFunction)},R=($,E)=>{var k;const _=(k=o.config.schema)==null?void 0:k[$];return(_==null?void 0:_.filterFunction)===void 0?!0:_.filterFunction(E)};return($,E)=>{const _=t.resolveComponent("KInput"),k=t.resolveComponent("KButton"),x=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(_,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":g},{before:t.withCtx(()=>[t.createVNode(Bn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(Z.CloseIcon),{class:"kong-ui-entity-filter-clear",role:"button",tabindex:"0",onClick:p},null,512),[[t.vShow,e.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(t.openBlock(),t.createElementBlock("div",ka,[t.createVNode(k,{appearance:"tertiary","data-testid":"filter-button",onClick:d},{default:t.withCtx(()=>[t.createVNode(Bn),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("filter.filterButtonText"))+" "+t.toDisplayString(s.value.length>0?`(${s.value.length})`:""),1)]),_:1}),t.withDirectives(t.createElementVNode("div",{class:"kong-ui-entity-filter-backdrop",onClick:d},null,512),[[t.vShow,l.value]]),t.withDirectives(t.createElementVNode("div",ba,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,m=>{var N,I;return t.openBlock(),t.createElementBlock("div",{key:m.value,class:"kong-ui-entity-filter-menu-item","data-testid":m.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(m.value)}]),role:"button",tabindex:"0",onClick:L=>u(m.value),onKeydown:t.withKeys(L=>u(m.value),["enter"])},[t.createTextVNode(t.toDisplayString(m.label)+" ",1),t.withDirectives(t.createElementVNode("span",wa,null,512),[[t.vShow,s.value.includes(m.value)]]),t.createVNode(t.unref(Z.ChevronDownIcon),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(m.value)}]),color:t.unref(or)},null,8,["class","color"])],42,xa),t.withDirectives(t.createElementVNode("div",Sa,[t.createElementVNode("label",{class:"menu-item-label",for:h(m.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,Aa),((I=(N=e.config.schema)==null?void 0:N[m.value])==null?void 0:I.type)==="select"?(t.openBlock(),t.createBlock(x,{key:0,id:h(m.value),modelValue:a.value[m.value],"onUpdate:modelValue":L=>a.value[m.value]=L,"enable-filtering":O(m.value),"filter-function":L=>R(m.value,L),items:b(m.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","enable-filtering","filter-function","items","placeholder"])):(t.openBlock(),t.createBlock(_,{key:1,id:h(m.value),modelValue:a.value[m.value],"onUpdate:modelValue":L=>a.value[m.value]=L,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:y(m.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(m.value)]]),t.withDirectives(t.createElementVNode("div",Ba,[t.createVNode(k,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:E[0]||(E[0]=L=>w(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(k,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:L=>A(m.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:1},8,["onClick"])],512),[[t.vShow,c.value.has(m.value)]])],8,Ca)}),128)),t.createElementVNode("div",_a,[t.createVNode(k,{appearance:"tertiary",size:"small",onClick:C},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,l.value]])]))}}}),[["__scopeId","data-v-084f7978"]]),Ta=t.defineComponent({__name:"EntityToggleModal",props:{visible:{type:Boolean,required:!0},action:{type:String,required:!0},entityId:{type:String,required:!0},entityType:{type:String,required:!0},entityName:{type:String,required:!0},onConfirm:{type:Function,required:!1,default:null}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18n:{t:r},i18nT:o}=K.useI18n(),i=e,l=n,a=t.ref(!1),c=t.computed(()=>i.action==="enable"?r("toggleModal.enable.title",{entityType:i.entityType}):r("toggleModal.disable.title",{entityType:i.entityType})),s=t.computed(()=>i.action==="enable"?r("toggleModal.enable.confirmText"):r("toggleModal.disable.confirmText")),f=()=>l("cancel"),d=async()=>{if(i.onConfirm){a.value=!0;try{await i.onConfirm(),l("proceed")}catch(u){console.error(u)}finally{a.value=!1}}};return(u,g)=>{const p=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(p,{"action-button-disabled":a.value,"action-button-text":s.value,"data-testid":`${e.entityType}-${e.entityId}-toggle-prompt`,title:c.value,visible:e.visible,onCancel:f,onProceed:d},{default:t.withCtx(()=>[t.createVNode(t.unref(o),{keypath:`toggleModal.${i.action}.message`,scope:"global"},{entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.entityType),1)]),entityName:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(e.entityName),1)]),_:1},8,["keypath"])]),_:1},8,["action-button-disabled","action-button-text","data-testid","title","visible"])])}}}),$a=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const n=e,r=t.ref(void 0),o=t.computed(()=>r.value===!0||r.value!==void 0&&n.forceShow===!0);return t.watch(()=>n.authFunction,async()=>{r.value=await n.authFunction()},{immediate:!0}),(i,l)=>o.value?t.renderSlot(i.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}}),Y=[];for(let e=0;e<256;++e)Y.push((e+256).toString(16).slice(1));function Na(e,n=0){return(Y[e[n+0]]+Y[e[n+1]]+Y[e[n+2]]+Y[e[n+3]]+"-"+Y[e[n+4]]+Y[e[n+5]]+"-"+Y[e[n+6]]+Y[e[n+7]]+"-"+Y[e[n+8]]+Y[e[n+9]]+"-"+Y[e[n+10]]+Y[e[n+11]]+Y[e[n+12]]+Y[e[n+13]]+Y[e[n+14]]+Y[e[n+15]]).toLowerCase()}let Je;const Fa=new Uint8Array(16);function Ia(){if(!Je){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Je=crypto.getRandomValues.bind(crypto)}return Je(Fa)}const _n={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Oa(e,n,r){var i;if(_n.randomUUID&&!e)return _n.randomUUID();e=e||{};const o=e.random??((i=e.rng)==null?void 0:i.call(e))??Ia();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Na(o)}const La=["aria-labelledby"],Va={class:"form-section-wrapper"},Da={key:1,class:"form-section-description"},Ra={key:2,class:"form-section-footer"},Ka={class:"form-section-content"},Ma=G(t.defineComponent({__name:"EntityFormSection",props:{title:{type:String,default:""},description:{type:String,default:""},hasDivider:{type:Boolean,default:!1},stickyInfoHeader:{type:Boolean,default:!0},hideInfoHeader:{type:Boolean,default:!1},titleTag:{type:String,default:"h2"}},setup(e){const n=t.useSlots(),r=Oa();return(o,i)=>(t.openBlock(),t.createElementBlock("div",{"aria-labelledby":e.title?t.unref(r):void 0,class:t.normalizeClass(["kong-ui-entity-form-section",{"has-divider":e.hasDivider}]),role:"group"},[t.createElementVNode("div",Va,[e.hideInfoHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-section-info",{sticky:e.stickyInfoHeader}])},[e.title?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.titleTag),{key:0,id:t.unref(r),class:"form-section-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["id"])):t.createCommentVNode("",!0),e.description||t.unref(n).description?(t.openBlock(),t.createElementBlock("div",Da,[t.renderSlot(o.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),t.unref(n).footer?(t.openBlock(),t.createElementBlock("div",Ra,[t.renderSlot(o.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",Ka,[t.renderSlot(o.$slots,"default",{},void 0,!0)])])],10,La))}}),[["__scopeId","data-v-b1f74200"]]),va={class:"ff-form-section"},ja={class:"header"},Pa={key:0,class:"step","data-testid":"form-section-step"},Ua={class:"header-content"},qa={class:"header-title","data-testid":"header-title"},Ha={key:0,class:"header-description","data-testid":"header-description"},Ya={key:1,class:"header-extra","data-testid":"header-extra"},Wa={class:"content","data-testid":"form-section-content"},za=G(t.defineComponent({__name:"EntityFormBlock",props:{step:{default:()=>{}},title:{default:""},description:{default:""}},setup(e){const n=t.useSlots();return(r,o)=>(t.openBlock(),t.createElementBlock("div",va,[t.createElementVNode("header",ja,[e.step!==void 0||n.step?(t.openBlock(),t.createElementBlock("div",Pa,[t.renderSlot(r.$slots,"step",{},()=>[t.createTextVNode(t.toDisplayString(e.step),1)],!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Ua,[t.createElementVNode("h2",qa,[t.renderSlot(r.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)]),e.description||n.description?(t.openBlock(),t.createElementBlock("div",Ha,[t.renderSlot(r.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0)]),n.extra?(t.openBlock(),t.createElementBlock("div",Ya,[t.renderSlot(r.$slots,"extra",{},void 0,!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Wa,[t.renderSlot(r.$slots,"default",{},void 0,!0)])]))}}),[["__scopeId","data-v-cfc1bef0"]]),Ga={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Ja={key:0,class:"deleted-entity"},Qa={key:1},Za=["onClick"],Xa=G(t.defineComponent({__name:"EntityLink",props:{entityLinkData:{type:Object,required:!0},externalLink:{type:String,required:!1,default:""},newWindow:{type:Boolean,required:!1,default:!1},allowCopy:{type:Boolean,required:!1,default:!1}},setup(e){const n=e,r=t.ref(),{isTruncated:o}=K.useTruncationDetector(r),{i18n:{t:i}}=K.useI18n(),l=i("global.actions.copyId"),a=t.ref(l),c=t.computed(()=>n.entityLinkData.deleted??!1),s=t.computed(()=>{var u;return(u=n.entityLinkData.id)!=null&&u.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id}),f=t.computed(()=>{var u;return`${(u=s.value)==null?void 0:u.toString().slice(0,5)} (deleted)`}),d=async u=>{await u(s.value||"")&&(a.value=i("global.actions.copyToClipboard"),setTimeout(()=>{a.value=l},1800))};return(u,g)=>{const p=t.resolveComponent("KTooltip"),h=t.resolveComponent("KExternalLink"),b=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Ga,[c.value?(t.openBlock(),t.createElementBlock("div",Ja,t.toDisplayString(f.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(h,{key:2,class:"entity-link","hide-icon":!e.newWindow,href:e.externalLink,target:e.newWindow?"_blank":"_self"},{default:t.withCtx(()=>[t.createVNode(p,{text:t.unref(o)&&e.entityLinkData.label||""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:r,class:"entity-link-label"},t.toDisplayString(e.entityLinkData.label),513)]),_:1},8,["text"])]),_:1},8,["hide-icon","href","target"])):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Qa,t.toDisplayString(" – "))),s.value&&e.allowCopy?(t.openBlock(),t.createBlock(p,{key:a.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:a.value},{default:t.withCtx(()=>[t.createVNode(b,null,{default:t.withCtx(({copyToClipboard:y})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(A=>d(y),["stop"])},[t.createVNode(t.unref(Z.CopyIcon),{class:"copy-icon",color:t.unref(ir),"data-testid":"copy-id",size:t.unref(lr)},null,8,["color","size"])],8,Za)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-96efdfa5"]]),el={class:"kong-ui-public-entity-empty-state"},tl={class:"entity-empty-state-content"},nl={key:0,class:"empty-state-image"},rl={key:1,class:"entity-empty-state-title"},ol={key:2,class:"entity-empty-state-description"},il={key:3,class:"entity-empty-state-pricing"},al={key:0,class:"entity-empty-state-message"},ll={key:1,class:"entity-empty-state-action"},cl={key:2,class:"entity-empty-state-card-container"},sl={key:0,class:"feature-icon"},dl={class:"card-header"},ul=["title"],fl={key:3,class:"entity-empty-state-bottom-container"},pl=G(t.defineComponent({__name:"EntityEmptyState",props:{appearance:{type:String,default:()=>"primary",validator:e=>Ee.includes(e)},title:{type:String,default:""},description:{type:String,default:""},pricing:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},actionButtonText:{type:String,default:""},learnMore:{type:Boolean,default:!1},features:{type:Array,default:()=>[]}},emits:["click:create","click:learn-more"],setup(e){const n=e,{i18n:{t:r}}=K.useI18n(),o=t.ref(!1),i=t.computed(()=>o.value&&!!n.actionButtonText),l=t.computed(()=>Ee.includes(n.appearance)?n.appearance:["primary",n.appearance]);return t.onBeforeMount(async()=>{o.value=await n.canCreate()}),t.onMounted(()=>t.warn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
60
60
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)),(a,c)=>{const s=t.resolveComponent("KCard");return t.openBlock(),t.createElementBlock("div",el,[t.createElementVNode("div",tl,[a.$slots.image?(t.openBlock(),t.createElementBlock("div",nl,[t.renderSlot(a.$slots,"image",{},void 0,!0)])):t.createCommentVNode("",!0),e.title||a.$slots.title?(t.openBlock(),t.createElementBlock("div",rl,[t.createElementVNode("h1",{class:t.normalizeClass(l.value)},[t.renderSlot(a.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)],2)])):t.createCommentVNode("",!0),e.description||a.$slots.default?(t.openBlock(),t.createElementBlock("div",ol,[t.renderSlot(a.$slots,"default",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),e.pricing||a.$slots.pricing?(t.openBlock(),t.createElementBlock("div",il,[t.createElementVNode("p",null,[t.createElementVNode("b",null,t.toDisplayString(t.unref(r)("emptyState.pricingTitle")),1),c[2]||(c[2]=t.createTextVNode()),t.renderSlot(a.$slots,"pricing",{},()=>[t.createTextVNode(t.toDisplayString(e.pricing),1)],!0)])])):t.createCommentVNode("",!0)]),a.$slots.message?(t.openBlock(),t.createElementBlock("div",al,[t.renderSlot(a.$slots,"message",{},void 0,!0)])):t.createCommentVNode("",!0),i.value||e.learnMore||a.$slots.actions?(t.openBlock(),t.createElementBlock("div",ll,[t.renderSlot(a.$slots,"actions",{},()=>[i.value?(t.openBlock(),t.createBlock(t.unref(ae.KButton),{key:0,appearance:"primary","data-testid":"entity-create-button",size:e.appearance==="secondary"?"medium":"large",onClick:c[0]||(c[0]=f=>a.$emit("click:create"))},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.AddIcon)),t.createTextVNode(" "+t.toDisplayString(e.actionButtonText),1)]),_:1},8,["size"])):t.createCommentVNode("",!0),e.learnMore?(t.openBlock(),t.createBlock(t.unref(ae.KButton),{key:1,appearance:"secondary","data-testid":"entity-learn-more-button",size:e.appearance==="secondary"?"medium":"large",onClick:c[1]||(c[1]=f=>a.$emit("click:learn-more"))},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.BookIcon),{decorative:""}),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("emptyState.learnMore")),1)]),_:1},8,["size"])):t.createCommentVNode("",!0)],!0)])):t.createCommentVNode("",!0),e.features.length?(t.openBlock(),t.createElementBlock("div",cl,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.features,(f,d)=>(t.openBlock(),t.createBlock(s,{key:`feature-${d}-card`,class:"entity-empty-state-card"},{title:t.withCtx(()=>[a.$slots[`feature-${d}-icon`]?(t.openBlock(),t.createElementBlock("div",sl,[t.renderSlot(a.$slots,`feature-${d}-icon`,{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",dl,t.toDisplayString(f.title),1)]),default:t.withCtx(()=>[t.createElementVNode("div",{title:f.description},t.toDisplayString(f.description),9,ul)]),_:2},1024))),128))])):t.createCommentVNode("",!0),a.$slots.bottom?(t.openBlock(),t.createElementBlock("div",fl,[t.renderSlot(a.$slots,"bottom",{},void 0,!0)])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-6d4a0f89"]]),ml={key:1},gl=t.defineComponent({__name:"TableTags",props:{tags:{type:[Array,String],default:()=>[]},tagMaxWidth:{type:String,default:void 0}},setup(e){const n=e,r=t.computed(()=>{if(Array.isArray(n.tags))return n.tags;if(typeof n.tags=="string")try{const o=JSON.parse(n.tags);return Array.isArray(o)?o:[]}catch{return[]}return[]});return(o,i)=>{var l;return((l=r.value)==null?void 0:l.length)>0?(t.openBlock(),t.createBlock(t.unref(ae.KTruncate),{key:0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,a=>(t.openBlock(),t.createBlock(t.unref(ae.KBadge),{key:a,"max-width":e.tagMaxWidth,onClick:i[0]||(i[0]=t.withModifiers(()=>{},["stop"]))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a),1)]),_:2},1032,["max-width"]))),128))]),_:1})):(t.openBlock(),t.createElementBlock("span",ml,"-"))}}}),{useAxios:hl,useDeleteUrlBuilder:yl,useErrors:kl,useExternalLinkCreator:bl,useFetchUrlBuilder:Cl,useFetcher:xl,useFetcherCacheKey:wl,useDebouncedFilter:Sl,useStringHelpers:Al,useHelpers:Bl,useGatewayFeatureSupported:_l,useTruncationDetector:El,useValidators:Tl,useSchemaProvider:$l,useTableState:Nl}=K;S.Appearances=Ee,S.ConfigCardDisplay=Sn,S.ConfigCardItem=Fe,S.ConfigurationSchemaSection=W,S.ConfigurationSchemaType=D,S.DeckCodeBlock=Ge,S.EntityBaseConfigCard=ta,S.EntityBaseForm=ra,S.EntityBaseFormType=tt,S.EntityBaseTable=sa,S.EntityDeleteModal=fa,S.EntityEmptyState=pl,S.EntityFilter=Ea,S.EntityFormBlock=za,S.EntityFormSection=Ma,S.EntityLink=Xa,S.EntityToggleModal=Ta,S.EntityTypes=et,S.EventGatewayTypesArray=nt,S.FEATURE_FLAGS=An,S.FetcherStatus=ee,S.IdentityTypesArray=rt,S.InternalLinkItem=yt,S.JsonCodeBlock=Ie,S.PermissionsWrapper=$a,S.SupportedEntityDeckArray=_e,S.SupportedEntityType=oe,S.SupportedEntityTypesArray=pe,S.TableTags=gl,S.TerraformCodeBlock=ze,S.YamlCodeBlock=We,S.useAxios=hl,S.useDebouncedFilter=Sl,S.useDeleteUrlBuilder=yl,S.useErrors=kl,S.useExternalLinkCreator=bl,S.useFetchUrlBuilder=Cl,S.useFetcher=xl,S.useFetcherCacheKey=wl,S.useGatewayFeatureSupported=_l,S.useHelpers=Bl,S.useSchemaProvider=$l,S.useStringHelpers=Al,S.useTableState=Nl,S.useTruncationDetector=El,S.useValidators=Tl,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.config-card-fieldset[data-v-dc1e39a1]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-dc1e39a1]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-cd250044]{align-items:center;border-bottom:var(--v550201a4);box-sizing:border-box;display:var(--v2eeb3c61);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-cd250044]{box-sizing:border-box;padding-right:16px;width:var(--v77ca94df)}.config-card-details-row .config-card-details-label label[data-v-cd250044]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-cd250044]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-cd250044]{min-width:0}.config-card-details-row .config-card-details-value[data-v-cd250044]{box-sizing:border-box;width:var(--v77ccdaba)}.config-card-details-row .config-card-details-value .truncated[data-v-cd250044]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-cd250044]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-cd250044] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-cd250044]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-cd250044]{margin-right:4px}.config-card-details-row[data-v-cd250044] .k-label{margin-bottom:0}.config-card-details-row[data-v-cd250044] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-cd250044] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--v58418ff6);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.deck-config .k-select[data-v-04c956bc]{margin-bottom:16px}.deck-config .k-code-block[data-v-04c956bc]{margin-top:12px}.config-card-prop-section-title[data-v-50ba1af0]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-77c89593]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-77c89593]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-77c89593]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-77c89593] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-77c89593]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-3733896a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-3733896a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-3733896a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-3733896a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-3733896a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.kong-ui-entity-base-form[data-v-3733896a] .slideout-content{overflow-y:unset!important}.kong-ui-entity-base-form.new-form-layout[data-v-3733896a]{border:none;padding:0}.kong-ui-entity-base-form.new-form-layout .form-actions[data-v-3733896a]{justify-content:flex-start;margin-top:20px}.form-actions[data-v-3733896a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-3733896a] .k-button:last-of-type,.form-actions[data-v-3733896a] .k-button:nth-last-of-type(2){margin-inline-start:16px}.form-actions-reverted[data-v-3733896a]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-09e101d4]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-09e101d4]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-09e101d4]{display:none}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-084f7978]{width:100%}.kong-ui-entity-filter-clear[data-v-084f7978]{cursor:pointer}.kong-ui-entity-filter[data-v-084f7978]{display:flex;position:relative}.kong-ui-entity-filter[data-v-084f7978] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-084f7978] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-084f7978]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-084f7978]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-084f7978]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-084f7978]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-084f7978]{color:#232633}.menu-item-expand-icon[data-v-084f7978]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-084f7978]{transform:rotate(180deg)}.menu-item-indicator[data-v-084f7978]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-084f7978]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-084f7978] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-084f7978] .k-input{width:100%}.menu-item-body[data-v-084f7978] .k-select-input .input{font-size:12px}.menu-item-body[data-v-084f7978] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-084f7978]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-084f7978]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-084f7978]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.ff-form-section .header[data-v-cfc1bef0]{align-items:flex-start;display:flex;gap:8px}.ff-form-section .step[data-v-cfc1bef0]{align-items:center;background:#fff;border:1px solid #afb7c5;border-radius:100px;display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;width:32px}.ff-form-section .header-content[data-v-cfc1bef0]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;padding-top:4px}.ff-form-section .header-title[data-v-cfc1bef0]{color:#000933;font-size:18px;font-weight:700;line-height:24px;margin:0}.ff-form-section .header-description[data-v-cfc1bef0]{color:#52596e;font-size:14px;line-height:20px;margin:0}.ff-form-section .header-extra[data-v-cfc1bef0]{align-items:center;display:flex;flex:0 0 auto;gap:8px;justify-content:flex-end}.ff-form-section .content[data-v-cfc1bef0]{background:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;display:flex;flex-direction:column;gap:20px;margin-left:16px;margin-top:20px;padding:20px 24px}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-6d4a0f89]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-6d4a0f89]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-6d4a0f89]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-6d4a0f89]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-6d4a0f89]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-6d4a0f89]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-6d4a0f89],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-6d4a0f89]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-6d4a0f89],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-6d4a0f89]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-6d4a0f89]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-6d4a0f89]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-6d4a0f89]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6d4a0f89]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6d4a0f89]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6d4a0f89]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-6d4a0f89]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-6d4a0f89] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6d4a0f89] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6d4a0f89] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-6d4a0f89]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-6d4a0f89]{width:640px}}
|
|
1
|
+
.config-card-fieldset[data-v-dc1e39a1]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-dc1e39a1]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-cd250044]{align-items:center;border-bottom:var(--v550201a4);box-sizing:border-box;display:var(--v2eeb3c61);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-cd250044]{box-sizing:border-box;padding-right:16px;width:var(--v77ca94df)}.config-card-details-row .config-card-details-label label[data-v-cd250044]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-cd250044]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-cd250044]{min-width:0}.config-card-details-row .config-card-details-value[data-v-cd250044]{box-sizing:border-box;width:var(--v77ccdaba)}.config-card-details-row .config-card-details-value .truncated[data-v-cd250044]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-cd250044]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-cd250044] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-cd250044]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-cd250044]{margin-right:4px}.config-card-details-row[data-v-cd250044] .k-label{margin-bottom:0}.config-card-details-row[data-v-cd250044] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-cd250044] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--v58418ff6);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.deck-config .k-select[data-v-04c956bc]{margin-bottom:16px}.deck-config .k-code-block[data-v-04c956bc]{margin-top:12px}.config-card-prop-section-title[data-v-50ba1af0]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-77c89593]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-77c89593]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-77c89593]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-77c89593] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-77c89593]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-463136e3]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-463136e3] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-463136e3] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-463136e3] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-463136e3] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.kong-ui-entity-base-form[data-v-463136e3] .slideout-content{overflow-y:unset!important}.kong-ui-entity-base-form.new-form-layout[data-v-463136e3]{border:none;padding:0}.kong-ui-entity-base-form.new-form-layout .form-actions[data-v-463136e3]{justify-content:flex-start;margin-top:20px}.form-actions[data-v-463136e3]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-463136e3] .k-button:last-of-type,.form-actions[data-v-463136e3] .k-button:nth-last-of-type(2){margin-inline-start:16px}.form-actions-reverted[data-v-463136e3]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-09e101d4]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-09e101d4]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-09e101d4]{display:none}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-084f7978]{width:100%}.kong-ui-entity-filter-clear[data-v-084f7978]{cursor:pointer}.kong-ui-entity-filter[data-v-084f7978]{display:flex;position:relative}.kong-ui-entity-filter[data-v-084f7978] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-084f7978] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-084f7978]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-084f7978]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-084f7978]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-084f7978]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-084f7978]{color:#232633}.menu-item-expand-icon[data-v-084f7978]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-084f7978]{transform:rotate(180deg)}.menu-item-indicator[data-v-084f7978]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-084f7978]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-084f7978] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-084f7978] .k-input{width:100%}.menu-item-body[data-v-084f7978] .k-select-input .input{font-size:12px}.menu-item-body[data-v-084f7978] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-084f7978]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-084f7978]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-084f7978]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.ff-form-section .header[data-v-cfc1bef0]{align-items:flex-start;display:flex;gap:8px}.ff-form-section .step[data-v-cfc1bef0]{align-items:center;background:#fff;border:1px solid #afb7c5;border-radius:100px;display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;width:32px}.ff-form-section .header-content[data-v-cfc1bef0]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;padding-top:4px}.ff-form-section .header-title[data-v-cfc1bef0]{color:#000933;font-size:18px;font-weight:700;line-height:24px;margin:0}.ff-form-section .header-description[data-v-cfc1bef0]{color:#52596e;font-size:14px;line-height:20px;margin:0}.ff-form-section .header-extra[data-v-cfc1bef0]{align-items:center;display:flex;flex:0 0 auto;gap:8px;justify-content:flex-end}.ff-form-section .content[data-v-cfc1bef0]{background:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;display:flex;flex-direction:column;gap:20px;margin-left:16px;margin-top:20px;padding:20px 24px}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-6d4a0f89]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-6d4a0f89]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-6d4a0f89]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-6d4a0f89]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-6d4a0f89]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-6d4a0f89]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-6d4a0f89],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-6d4a0f89]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-6d4a0f89],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-6d4a0f89]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-6d4a0f89]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-6d4a0f89]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-6d4a0f89]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6d4a0f89]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6d4a0f89]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6d4a0f89]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-6d4a0f89]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-6d4a0f89] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6d4a0f89] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6d4a0f89] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-6d4a0f89]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-6d4a0f89]{width:640px}}
|
package/package.json
CHANGED