@kong-ui-public/entities-gateway-services 3.2.12 → 3.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as ee, computed as x, openBlock as
|
|
1
|
+
import { defineComponent as ee, computed as x, openBlock as v, createBlock as P, resolveDynamicComponent as Se, normalizeStyle as Pe, withCtx as b, createElementBlock as I, toDisplayString as $, createCommentVNode as H, pushScopeId as De, popScopeId as ze, createElementVNode as E, ref as q, resolveComponent as R, Teleport as ui, createVNode as k, unref as f, createTextVNode as W, watch as ke, renderSlot as ie, onBeforeMount as It, createSlots as Ke, renderList as ye, withModifiers as Le, withDirectives as xe, vShow as Ae, Fragment as he, normalizeClass as Te, withKeys as fr, useSlots as Tt, useCssVars as di, inject as gr, onMounted as pi, onUnmounted as mr, normalizeProps as yr, guardReactiveProps as vr, mergeProps as hr, reactive as qt } from "vue";
|
|
2
2
|
import { useRouter as $t } from "vue-router";
|
|
3
|
-
import { createI18n as
|
|
3
|
+
import { createI18n as fi, i18nTComponent as gi } from "@kong-ui-public/i18n";
|
|
4
4
|
import Lt from "axios";
|
|
5
5
|
import { BadgeMethodAppearances as br } from "@kong/kongponents";
|
|
6
6
|
const Ut = "24px", wr = (e, t) => {
|
|
@@ -83,14 +83,14 @@ const Ut = "24px", wr = (e, t) => {
|
|
|
83
83
|
lineHeight: "0",
|
|
84
84
|
width: i.value
|
|
85
85
|
}));
|
|
86
|
-
return (r, n) => (
|
|
86
|
+
return (r, n) => (v(), P(Se(e.as), {
|
|
87
87
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
88
88
|
class: "kui-icon add-icon",
|
|
89
89
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
90
90
|
style: Pe(a.value)
|
|
91
91
|
}, {
|
|
92
|
-
default:
|
|
93
|
-
(
|
|
92
|
+
default: b(() => [
|
|
93
|
+
(v(), I("svg", {
|
|
94
94
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
95
95
|
"data-testid": "kui-icon-svg-add-icon",
|
|
96
96
|
fill: "none",
|
|
@@ -100,7 +100,7 @@ const Ut = "24px", wr = (e, t) => {
|
|
|
100
100
|
width: "100%",
|
|
101
101
|
xmlns: "http://www.w3.org/2000/svg"
|
|
102
102
|
}, [
|
|
103
|
-
e.title ? (
|
|
103
|
+
e.title ? (v(), I("title", Cr, $(e.title), 1)) : H("", !0),
|
|
104
104
|
Sr
|
|
105
105
|
], 8, kr))
|
|
106
106
|
]),
|
|
@@ -285,10 +285,10 @@ const Ut = "24px", wr = (e, t) => {
|
|
|
285
285
|
glossary: Or
|
|
286
286
|
};
|
|
287
287
|
function Er() {
|
|
288
|
-
const e =
|
|
288
|
+
const e = fi("en-us", Mr);
|
|
289
289
|
return {
|
|
290
290
|
i18n: e,
|
|
291
|
-
i18nT:
|
|
291
|
+
i18nT: gi(e)
|
|
292
292
|
// Translation component <i18n-t>
|
|
293
293
|
};
|
|
294
294
|
}
|
|
@@ -339,7 +339,7 @@ const st = {
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
|
-
var
|
|
342
|
+
var mi = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(mi || {}), _t = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(_t || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), te = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), ce = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ce || {});
|
|
343
343
|
function Vr() {
|
|
344
344
|
return {
|
|
345
345
|
getAxiosInstance: (e = {}) => {
|
|
@@ -529,14 +529,14 @@ const Br = {
|
|
|
529
529
|
toggleModal: Wr
|
|
530
530
|
};
|
|
531
531
|
function gt() {
|
|
532
|
-
const e =
|
|
532
|
+
const e = fi("en-us", Zr);
|
|
533
533
|
return {
|
|
534
534
|
i18n: e,
|
|
535
|
-
i18nT:
|
|
535
|
+
i18nT: gi(e)
|
|
536
536
|
// Translation component <i18n-t>
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function yi() {
|
|
540
540
|
const e = (i, a) => (a == null ? void 0 : a[i]) ?? void 0, t = (i, a) => {
|
|
541
541
|
if (i.length !== a.length)
|
|
542
542
|
return !1;
|
|
@@ -587,14 +587,14 @@ function Yr(e, t, i, a = {
|
|
|
587
587
|
i || (i = "1000");
|
|
588
588
|
const { axiosInstance: r } = Nt(e.axiosRequestConfig), { i18n: { t: n } } = gt(), { debounce: o } = qr(), c = o(async (s) => {
|
|
589
589
|
await Y(s);
|
|
590
|
-
}, 200), l = q(!1), u = q(""), m = q(""), p = q([]), _ = q([]),
|
|
590
|
+
}, 200), l = q(!1), u = q(""), m = q(""), p = q([]), _ = q([]), h = q(void 0), A = f(t);
|
|
591
591
|
let O = `${e.apiBaseUrl}${A}`;
|
|
592
592
|
e.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
593
|
-
const { isValidUuid: C } =
|
|
593
|
+
const { isValidUuid: C } = yi(), K = async () => {
|
|
594
594
|
try {
|
|
595
595
|
l.value = !0;
|
|
596
596
|
const { data: s } = await r.get(`${O}?size=${i}`);
|
|
597
|
-
s != null && s.next || (
|
|
597
|
+
s != null && s.next || (h.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : []), _.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : [], p.value = _.value;
|
|
598
598
|
} catch {
|
|
599
599
|
p.value = [], u.value = n("debouncedFilter.errors.fetch");
|
|
600
600
|
} finally {
|
|
@@ -603,7 +603,7 @@ function Yr(e, t, i, a = {
|
|
|
603
603
|
}, N = q(""), Y = async (s) => {
|
|
604
604
|
var S, y, T;
|
|
605
605
|
if (N.value !== s)
|
|
606
|
-
if (N.value = s || "",
|
|
606
|
+
if (N.value = s || "", h.value === void 0)
|
|
607
607
|
try {
|
|
608
608
|
if (l.value = !0, u.value = "", m.value = "", e.app === "konnect") {
|
|
609
609
|
let U = O + "";
|
|
@@ -636,7 +636,7 @@ function Yr(e, t, i, a = {
|
|
|
636
636
|
l.value = !1;
|
|
637
637
|
}
|
|
638
638
|
else
|
|
639
|
-
l.value = !0, m.value = "", s ? (p.value = (T =
|
|
639
|
+
l.value = !0, m.value = "", s ? (p.value = (T = h.value) == null ? void 0 : T.filter((U) => {
|
|
640
640
|
var j;
|
|
641
641
|
let z = !1;
|
|
642
642
|
for (const L of a.searchKeys) {
|
|
@@ -644,14 +644,14 @@ function Yr(e, t, i, a = {
|
|
|
644
644
|
V != null && V.includes(s.toLowerCase()) && (z = !0);
|
|
645
645
|
}
|
|
646
646
|
return z;
|
|
647
|
-
}), (!p.value || !p.value.length) && (m.value = n("debouncedFilter.errors.invalid"))) : p.value =
|
|
647
|
+
}), (!p.value || !p.value.length) && (m.value = n("debouncedFilter.errors.invalid"))) : p.value = h.value, l.value = !1;
|
|
648
648
|
};
|
|
649
649
|
return {
|
|
650
650
|
loading: l,
|
|
651
651
|
error: u,
|
|
652
652
|
validationError: m,
|
|
653
653
|
results: p,
|
|
654
|
-
allRecords:
|
|
654
|
+
allRecords: h,
|
|
655
655
|
loadItems: K,
|
|
656
656
|
debouncedQueryChange: c
|
|
657
657
|
};
|
|
@@ -703,7 +703,7 @@ function ea(e) {
|
|
|
703
703
|
return console.warn("Failed to build valid URL:", a), "";
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function vi(e, t) {
|
|
707
707
|
const i = q(f(e)), a = q(f(t)), r = x(
|
|
708
708
|
() => !!(i.value.app === "konnect" || i.value.isExactMatch)
|
|
709
709
|
), n = x(
|
|
@@ -712,17 +712,17 @@ function yi(e, t) {
|
|
|
712
712
|
return (o) => {
|
|
713
713
|
const { page: c, pageSize: l, offset: u, sortColumnKey: m, sortColumnOrder: p, query: _ } = o;
|
|
714
714
|
try {
|
|
715
|
-
let
|
|
716
|
-
return r.value && _ ? (
|
|
717
|
-
|
|
718
|
-
}), m &&
|
|
719
|
-
} catch (
|
|
720
|
-
return console.error("RouteList(fetcher)",
|
|
715
|
+
let h = new URL(n.value.href);
|
|
716
|
+
return r.value && _ ? (h.search = "", h = i.value.isExactMatch ? new URL(`${h.href}/${_}/`) : new URL(`${h.href}?filter[name][contains]=${_}`)) : (r.value || new URLSearchParams(_).forEach((A, O) => {
|
|
717
|
+
h.searchParams.append(O, A);
|
|
718
|
+
}), m && h.searchParams.append("sort_by", m), p === "desc" && h.searchParams.append("sort_desc", "1"), h.searchParams.append("size", String(l))), u && c !== 1 && h.searchParams.append("offset", String(u)), h.href;
|
|
719
|
+
} catch (h) {
|
|
720
|
+
return console.error("RouteList(fetcher)", h), a.value;
|
|
721
721
|
}
|
|
722
722
|
};
|
|
723
723
|
}
|
|
724
724
|
function ta(e, t, i = "data") {
|
|
725
|
-
const a = f(t), { axiosInstance: r } = Nt(e.axiosRequestConfig), n =
|
|
725
|
+
const a = f(t), { axiosInstance: r } = Nt(e.axiosRequestConfig), n = vi(e, a), o = q({
|
|
726
726
|
status: Oe.Idle
|
|
727
727
|
});
|
|
728
728
|
return { fetcher: async (c) => {
|
|
@@ -735,11 +735,11 @@ function ta(e, t, i = "data") {
|
|
|
735
735
|
if (m.status >= 400)
|
|
736
736
|
throw m;
|
|
737
737
|
const p = m.data, _ = i && i.replace(/[^\w-_]/gi, "");
|
|
738
|
-
let
|
|
739
|
-
p[_] && Array.isArray(p[_]) ?
|
|
738
|
+
let h;
|
|
739
|
+
p[_] && Array.isArray(p[_]) ? h = p[_] : Array.isArray(p) ? h = p : h = Object.keys(p).length ? [p] : [];
|
|
740
740
|
const A = {
|
|
741
|
-
data:
|
|
742
|
-
total:
|
|
741
|
+
data: h,
|
|
742
|
+
total: h.length,
|
|
743
743
|
...p.offset ? {
|
|
744
744
|
pagination: {
|
|
745
745
|
offset: p.offset
|
|
@@ -774,10 +774,10 @@ function ia() {
|
|
|
774
774
|
convertKeyToTitle: e
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
const
|
|
777
|
+
const hi = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Bt = (e) => {
|
|
778
778
|
if (typeof e != "string")
|
|
779
779
|
throw new TypeError("Invalid argument expected string");
|
|
780
|
-
const t = e.match(
|
|
780
|
+
const t = e.match(hi);
|
|
781
781
|
if (!t)
|
|
782
782
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
783
783
|
return t.shift(), t;
|
|
@@ -802,20 +802,20 @@ const vi = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
802
802
|
}, Dt = (e, t, i) => {
|
|
803
803
|
na(i);
|
|
804
804
|
const a = oa(e, t);
|
|
805
|
-
return
|
|
806
|
-
},
|
|
805
|
+
return bi[i].includes(a);
|
|
806
|
+
}, bi = {
|
|
807
807
|
">": [1],
|
|
808
808
|
">=": [0, 1],
|
|
809
809
|
"=": [0],
|
|
810
810
|
"<=": [-1, 0],
|
|
811
811
|
"<": [-1],
|
|
812
812
|
"!=": [-1, 1]
|
|
813
|
-
}, zt = Object.keys(
|
|
813
|
+
}, zt = Object.keys(bi), na = (e) => {
|
|
814
814
|
if (typeof e != "string")
|
|
815
815
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
816
816
|
if (zt.indexOf(e) === -1)
|
|
817
817
|
throw new Error(`Invalid operator, expected one of ${zt.join("|")}`);
|
|
818
|
-
}, la = (e) => typeof e == "string" && /^[v\d]/.test(e) &&
|
|
818
|
+
}, la = (e) => typeof e == "string" && /^[v\d]/.test(e) && hi.test(e);
|
|
819
819
|
function sa(e) {
|
|
820
820
|
const { gatewayInfo: t, supportedRange: i } = e;
|
|
821
821
|
if (!t)
|
|
@@ -831,7 +831,7 @@ function sa(e) {
|
|
|
831
831
|
}
|
|
832
832
|
function ca(e) {
|
|
833
833
|
const t = q(0), i = q(0), a = q(!1);
|
|
834
|
-
return
|
|
834
|
+
return ke(e, (r) => {
|
|
835
835
|
r && !a.value && (t.value = r.offsetWidth, i.value = r.scrollWidth, a.value = !0);
|
|
836
836
|
}), {
|
|
837
837
|
isTruncated: x(() => t.value < i.value)
|
|
@@ -850,8 +850,8 @@ const ne = {
|
|
|
850
850
|
useErrors: Xr,
|
|
851
851
|
useExternalLinkCreator: ea,
|
|
852
852
|
useFetcher: ta,
|
|
853
|
-
useFetchUrlBuilder:
|
|
854
|
-
useHelpers:
|
|
853
|
+
useFetchUrlBuilder: vi,
|
|
854
|
+
useHelpers: yi,
|
|
855
855
|
useStringHelpers: ia,
|
|
856
856
|
useI18n: gt,
|
|
857
857
|
useGatewayFeatureSupported: sa,
|
|
@@ -884,14 +884,14 @@ const ne = {
|
|
|
884
884
|
var l;
|
|
885
885
|
return t.isArrayItem ? (l = n.value) != null && l.name ? a(n.value.name, "_") : i("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
886
886
|
});
|
|
887
|
-
return (l, u) => (
|
|
887
|
+
return (l, u) => (v(), P(Se(e.isArrayItem ? "fieldset" : "div"), {
|
|
888
888
|
class: Te(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
889
889
|
}, {
|
|
890
|
-
default:
|
|
891
|
-
e.isArrayItem ? (
|
|
890
|
+
default: b(() => [
|
|
891
|
+
e.isArrayItem ? (v(), I("legend", da, [
|
|
892
892
|
E("b", null, $(c.value), 1)
|
|
893
893
|
])) : H("", !0),
|
|
894
|
-
(
|
|
894
|
+
(v(!0), I(he, null, ye(Object.keys(o.value), (m, p) => (v(), P(_i, {
|
|
895
895
|
key: `${r.value}-property-${p}`,
|
|
896
896
|
item: {
|
|
897
897
|
key: m,
|
|
@@ -908,7 +908,7 @@ const ne = {
|
|
|
908
908
|
for (const [a, r] of t)
|
|
909
909
|
i[a] = r;
|
|
910
910
|
return i;
|
|
911
|
-
},
|
|
911
|
+
}, wi = /* @__PURE__ */ ve(pa, [["__scopeId", "data-v-68ca83ec"]]), fa = /* @__PURE__ */ ee({
|
|
912
912
|
__name: "InternalLinkItem",
|
|
913
913
|
props: {
|
|
914
914
|
item: {
|
|
@@ -921,13 +921,13 @@ const ne = {
|
|
|
921
921
|
const { i18n: { t } } = ne.useI18n();
|
|
922
922
|
return (i, a) => {
|
|
923
923
|
const r = R("KButton");
|
|
924
|
-
return
|
|
924
|
+
return v(), I("div", null, [
|
|
925
925
|
k(r, {
|
|
926
926
|
appearance: "tertiary",
|
|
927
927
|
class: "navigation-button",
|
|
928
928
|
onClick: a[0] || (a[0] = (n) => i.$emit("navigation-click", e.item))
|
|
929
929
|
}, {
|
|
930
|
-
default:
|
|
930
|
+
default: b(() => [
|
|
931
931
|
W($(e.item.value || f(t)("baseConfigCard.commonFields.link")), 1)
|
|
932
932
|
]),
|
|
933
933
|
_: 1
|
|
@@ -947,10 +947,10 @@ const ne = {
|
|
|
947
947
|
const { i18n: { t } } = ne.useI18n();
|
|
948
948
|
return (i, a) => {
|
|
949
949
|
const r = R("KBadge");
|
|
950
|
-
return
|
|
950
|
+
return v(), P(r, {
|
|
951
951
|
appearance: e.status ? "success" : "neutral"
|
|
952
952
|
}, {
|
|
953
|
-
default:
|
|
953
|
+
default: b(() => [
|
|
954
954
|
W($(e.status ? f(t)("baseConfigCard.statusBadge.enabledLabel") : f(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
955
955
|
]),
|
|
956
956
|
_: 1
|
|
@@ -959,7 +959,7 @@ const ne = {
|
|
|
959
959
|
}
|
|
960
960
|
}), ya = "#0044f4", va = "#e0e4ea", ha = "#afb7c5", ba = "1px", wa = "20px", _a = { class: "config-card-details-row" }, ka = ["data-testid"], Ca = ["data-testid"], Sa = ["data-testid"], xa = ["data-testid"], Aa = { key: 1 }, Ia = ["data-testid"], Ta = ["data-testid"], $a = ["data-testid"], Na = ["data-testid"], ja = {
|
|
961
961
|
name: "ConfigCardItem",
|
|
962
|
-
components: { JsonCardItem:
|
|
962
|
+
components: { JsonCardItem: wi, StatusBadge: ma, InternalLinkItem: ga }
|
|
963
963
|
}, Oa = /* @__PURE__ */ ee({
|
|
964
964
|
...ja,
|
|
965
965
|
props: {
|
|
@@ -980,7 +980,7 @@ const ne = {
|
|
|
980
980
|
},
|
|
981
981
|
emits: ["navigation-click"],
|
|
982
982
|
setup(e, { emit: t }) {
|
|
983
|
-
|
|
983
|
+
di((A) => ({
|
|
984
984
|
"07753575": m.value ? "none" : `solid ${f(ba)} ${f(va)}`,
|
|
985
985
|
"32d44ea8": u.value && c.value ? "block" : "flex",
|
|
986
986
|
"5036b738": u.value && c.value ? "100%" : i.slim ? "50%" : "25%",
|
|
@@ -1096,24 +1096,24 @@ const ne = {
|
|
|
1096
1096
|
text: i.item.value
|
|
1097
1097
|
};
|
|
1098
1098
|
}
|
|
1099
|
-
}), _ = q(), { isTruncated:
|
|
1099
|
+
}), _ = q(), { isTruncated: h } = ne.useTruncationDetector(_);
|
|
1100
1100
|
return (A, O) => {
|
|
1101
1101
|
const C = R("KLabel"), K = R("KBadge"), N = R("KCopy"), Y = R("KTooltip");
|
|
1102
|
-
return
|
|
1102
|
+
return v(), I("div", _a, [
|
|
1103
1103
|
E("div", {
|
|
1104
1104
|
class: "config-card-details-label",
|
|
1105
1105
|
"data-testid": `${e.item.key}-label`
|
|
1106
1106
|
}, [
|
|
1107
1107
|
ie(A.$slots, "label", { item: e.item }, () => [
|
|
1108
1108
|
k(C, { "tooltip-attributes": { maxWidth: "500px" } }, Ke({
|
|
1109
|
-
default:
|
|
1109
|
+
default: b(() => [
|
|
1110
1110
|
W($(e.item.label) + " ", 1)
|
|
1111
1111
|
]),
|
|
1112
1112
|
_: 2
|
|
1113
1113
|
}, [
|
|
1114
1114
|
l.value ? {
|
|
1115
1115
|
name: "tooltip",
|
|
1116
|
-
fn:
|
|
1116
|
+
fn: b(() => [
|
|
1117
1117
|
E("div", {
|
|
1118
1118
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1119
1119
|
}, [
|
|
@@ -1134,68 +1134,68 @@ const ne = {
|
|
|
1134
1134
|
ie(A.$slots, e.item.key, {
|
|
1135
1135
|
rowValue: e.item.value
|
|
1136
1136
|
}, () => [
|
|
1137
|
-
c.value ? (
|
|
1138
|
-
(
|
|
1139
|
-
default:
|
|
1140
|
-
p.value.additionalComponent === "KBadge" ? (
|
|
1137
|
+
c.value ? (v(), I("div", Aa, [
|
|
1138
|
+
(v(), P(Se(p.value.tag), yr(vr(p.value.attrs)), {
|
|
1139
|
+
default: b(() => [
|
|
1140
|
+
p.value.additionalComponent === "KBadge" ? (v(), I("div", {
|
|
1141
1141
|
key: 0,
|
|
1142
1142
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1143
1143
|
}, [
|
|
1144
|
-
(
|
|
1144
|
+
(v(!0), I(he, null, ye(e.item.value, (s, S) => (v(), P(K, {
|
|
1145
1145
|
key: `${e.item.key}-badge-tag-${S}`,
|
|
1146
1146
|
class: "config-badge",
|
|
1147
1147
|
"data-testid": `${e.item.key}-badge-tag-${S}`,
|
|
1148
1148
|
tooltip: s,
|
|
1149
1149
|
"truncation-tooltip": ""
|
|
1150
1150
|
}, {
|
|
1151
|
-
default:
|
|
1151
|
+
default: b(() => [
|
|
1152
1152
|
W($(s), 1)
|
|
1153
1153
|
]),
|
|
1154
1154
|
_: 2
|
|
1155
1155
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1156
1156
|
], 8, Ia)) : H("", !0),
|
|
1157
|
-
p.value.additionalComponent === "KCopy" ? (
|
|
1157
|
+
p.value.additionalComponent === "KCopy" ? (v(), I("div", {
|
|
1158
1158
|
key: 1,
|
|
1159
1159
|
class: "copy-uuid-array",
|
|
1160
1160
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1161
1161
|
}, [
|
|
1162
|
-
(
|
|
1162
|
+
(v(!0), I(he, null, ye(e.item.value, (s, S) => (v(), P(N, hr({ ref_for: !0 }, p.value.childAttrs, {
|
|
1163
1163
|
key: `${e.item.key}-copy-uuid-${S}`,
|
|
1164
1164
|
"data-testid": `${e.item.key}-copy-uuid-${S}`,
|
|
1165
1165
|
text: s
|
|
1166
1166
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1167
|
-
], 8, Ta)) : p.value.additionalComponent === "KMethodBadge" ? (
|
|
1167
|
+
], 8, Ta)) : p.value.additionalComponent === "KMethodBadge" ? (v(), I("div", {
|
|
1168
1168
|
key: 2,
|
|
1169
1169
|
class: "method-badge-array",
|
|
1170
1170
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1171
1171
|
}, [
|
|
1172
|
-
(
|
|
1172
|
+
(v(!0), I(he, null, ye(e.item.value, (s, S) => (v(), P(K, {
|
|
1173
1173
|
key: `${e.item.key}-badge-method-${S}`,
|
|
1174
1174
|
appearance: Object.values(f(br)).includes(s.toLowerCase()) ? s.toLowerCase() : "custom",
|
|
1175
1175
|
class: "config-badge",
|
|
1176
1176
|
"data-testid": `${e.item.key}-badge-method-${S}`
|
|
1177
1177
|
}, {
|
|
1178
|
-
default:
|
|
1178
|
+
default: b(() => [
|
|
1179
1179
|
W($(s), 1)
|
|
1180
1180
|
]),
|
|
1181
1181
|
_: 2
|
|
1182
1182
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1183
1183
|
], 8, $a)) : H("", !0),
|
|
1184
|
-
p.value.additionalComponent === "JsonCardItem" ? (
|
|
1184
|
+
p.value.additionalComponent === "JsonCardItem" ? (v(), I("div", {
|
|
1185
1185
|
key: 3,
|
|
1186
1186
|
"data-testid": `${i.item.key}-json-array-content`
|
|
1187
1187
|
}, [
|
|
1188
|
-
(
|
|
1188
|
+
(v(!0), I(he, null, ye(e.item.value, (s, S) => (v(), P(wi, {
|
|
1189
1189
|
key: `json-array-item-${S}`,
|
|
1190
1190
|
index: S,
|
|
1191
1191
|
"is-array-item": "",
|
|
1192
1192
|
item: s
|
|
1193
1193
|
}, null, 8, ["index", "item"]))), 128))
|
|
1194
|
-
], 8, Na)) : (
|
|
1194
|
+
], 8, Na)) : (v(), P(Y, {
|
|
1195
1195
|
key: 4,
|
|
1196
|
-
text: f(
|
|
1196
|
+
text: f(h) ? e.item.value : ""
|
|
1197
1197
|
}, {
|
|
1198
|
-
default:
|
|
1198
|
+
default: b(() => [
|
|
1199
1199
|
E("span", {
|
|
1200
1200
|
ref_key: "textContent",
|
|
1201
1201
|
ref: _,
|
|
@@ -1207,7 +1207,7 @@ const ne = {
|
|
|
1207
1207
|
]),
|
|
1208
1208
|
_: 1
|
|
1209
1209
|
}, 16))
|
|
1210
|
-
])) : (
|
|
1210
|
+
])) : (v(), I("div", {
|
|
1211
1211
|
key: 0,
|
|
1212
1212
|
"data-testid": `${e.item.key}-no-value`
|
|
1213
1213
|
}, " – ", 8, xa))
|
|
@@ -1216,10 +1216,10 @@ const ne = {
|
|
|
1216
1216
|
]);
|
|
1217
1217
|
};
|
|
1218
1218
|
}
|
|
1219
|
-
}),
|
|
1219
|
+
}), _i = /* @__PURE__ */ ve(Oa, [["__scopeId", "data-v-d056663c"]]), Ma = { class: "json-config" }, Ea = {
|
|
1220
1220
|
key: 0,
|
|
1221
1221
|
class: "json-endpoint"
|
|
1222
|
-
},
|
|
1222
|
+
}, ki = /* @__PURE__ */ ee({
|
|
1223
1223
|
__name: "JsonCodeBlock",
|
|
1224
1224
|
props: {
|
|
1225
1225
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1247,7 +1247,7 @@ const ne = {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
},
|
|
1249
1249
|
setup(e) {
|
|
1250
|
-
|
|
1250
|
+
di((r) => ({
|
|
1251
1251
|
"4520e3ec": `${a.value}ch`
|
|
1252
1252
|
}));
|
|
1253
1253
|
const t = e, i = x(() => t.jsonRecord), a = x(() => {
|
|
@@ -1259,12 +1259,12 @@ const ne = {
|
|
|
1259
1259
|
});
|
|
1260
1260
|
return (r, n) => {
|
|
1261
1261
|
const o = R("KBadge"), c = R("KCodeBlock");
|
|
1262
|
-
return
|
|
1263
|
-
t.fetcherUrl ? (
|
|
1262
|
+
return v(), I("div", Ma, [
|
|
1263
|
+
t.fetcherUrl ? (v(), I("div", Ea, [
|
|
1264
1264
|
k(o, {
|
|
1265
1265
|
appearance: t.requestMethod
|
|
1266
1266
|
}, {
|
|
1267
|
-
default:
|
|
1267
|
+
default: b(() => [
|
|
1268
1268
|
W($(t.requestMethod), 1)
|
|
1269
1269
|
]),
|
|
1270
1270
|
_: 1
|
|
@@ -1277,7 +1277,7 @@ const ne = {
|
|
|
1277
1277
|
theme: "dark"
|
|
1278
1278
|
}, null, 8, ["code"])
|
|
1279
1279
|
])) : H("", !0),
|
|
1280
|
-
t.jsonRecord ? (
|
|
1280
|
+
t.jsonRecord ? (v(), P(c, {
|
|
1281
1281
|
key: 1,
|
|
1282
1282
|
id: "json-codeblock",
|
|
1283
1283
|
class: Te({ "json-content": t.fetcherUrl }),
|
|
@@ -1290,14 +1290,14 @@ const ne = {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
});
|
|
1292
1292
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1293
|
-
function
|
|
1293
|
+
function Ci(e) {
|
|
1294
1294
|
return typeof e > "u" || e === null;
|
|
1295
1295
|
}
|
|
1296
1296
|
function Fa(e) {
|
|
1297
1297
|
return typeof e == "object" && e !== null;
|
|
1298
1298
|
}
|
|
1299
1299
|
function Va(e) {
|
|
1300
|
-
return Array.isArray(e) ? e :
|
|
1300
|
+
return Array.isArray(e) ? e : Ci(e) ? [] : [e];
|
|
1301
1301
|
}
|
|
1302
1302
|
function qa(e, t) {
|
|
1303
1303
|
var i, a, r, n;
|
|
@@ -1315,7 +1315,7 @@ function La(e, t) {
|
|
|
1315
1315
|
function Ua(e) {
|
|
1316
1316
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1317
1317
|
}
|
|
1318
|
-
var Ba =
|
|
1318
|
+
var Ba = Ci, Ka = Fa, Ra = Va, Pa = La, Da = Ua, za = qa, oe = {
|
|
1319
1319
|
isNothing: Ba,
|
|
1320
1320
|
isObject: Ka,
|
|
1321
1321
|
toArray: Ra,
|
|
@@ -1323,19 +1323,19 @@ var Ba = ki, Ka = Fa, Ra = Va, Pa = La, Da = Ua, za = qa, oe = {
|
|
|
1323
1323
|
isNegativeZero: Da,
|
|
1324
1324
|
extend: za
|
|
1325
1325
|
};
|
|
1326
|
-
function
|
|
1326
|
+
function Si(e, t) {
|
|
1327
1327
|
var i = "", a = e.reason || "(unknown reason)";
|
|
1328
1328
|
return e.mark ? (e.mark.name && (i += 'in "' + e.mark.name + '" '), i += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (i += `
|
|
1329
1329
|
|
|
1330
1330
|
` + e.mark.snippet), a + " " + i) : a;
|
|
1331
1331
|
}
|
|
1332
1332
|
function Xe(e, t) {
|
|
1333
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1333
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = Si(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1334
1334
|
}
|
|
1335
1335
|
Xe.prototype = Object.create(Error.prototype);
|
|
1336
1336
|
Xe.prototype.constructor = Xe;
|
|
1337
1337
|
Xe.prototype.toString = function(e) {
|
|
1338
|
-
return this.name + ": " +
|
|
1338
|
+
return this.name + ": " + Si(this, e);
|
|
1339
1339
|
};
|
|
1340
1340
|
var de = Xe;
|
|
1341
1341
|
function ht(e, t, i, a, r) {
|
|
@@ -1471,26 +1471,26 @@ kt.prototype.extend = function(e) {
|
|
|
1471
1471
|
var a = Object.create(kt.prototype);
|
|
1472
1472
|
return a.implicit = (this.implicit || []).concat(t), a.explicit = (this.explicit || []).concat(i), a.compiledImplicit = Ht(a, "implicit"), a.compiledExplicit = Ht(a, "explicit"), a.compiledTypeMap = Qa(a.compiledImplicit, a.compiledExplicit), a;
|
|
1473
1473
|
};
|
|
1474
|
-
var
|
|
1474
|
+
var xi = kt, Ai = new se("tag:yaml.org,2002:str", {
|
|
1475
1475
|
kind: "scalar",
|
|
1476
1476
|
construct: function(e) {
|
|
1477
1477
|
return e !== null ? e : "";
|
|
1478
1478
|
}
|
|
1479
|
-
}),
|
|
1479
|
+
}), Ii = new se("tag:yaml.org,2002:seq", {
|
|
1480
1480
|
kind: "sequence",
|
|
1481
1481
|
construct: function(e) {
|
|
1482
1482
|
return e !== null ? e : [];
|
|
1483
1483
|
}
|
|
1484
|
-
}),
|
|
1484
|
+
}), Ti = new se("tag:yaml.org,2002:map", {
|
|
1485
1485
|
kind: "mapping",
|
|
1486
1486
|
construct: function(e) {
|
|
1487
1487
|
return e !== null ? e : {};
|
|
1488
1488
|
}
|
|
1489
|
-
}),
|
|
1489
|
+
}), $i = new xi({
|
|
1490
1490
|
explicit: [
|
|
1491
|
-
xi,
|
|
1492
1491
|
Ai,
|
|
1493
|
-
Ii
|
|
1492
|
+
Ii,
|
|
1493
|
+
Ti
|
|
1494
1494
|
]
|
|
1495
1495
|
});
|
|
1496
1496
|
function Xa(e) {
|
|
@@ -1505,7 +1505,7 @@ function eo() {
|
|
|
1505
1505
|
function to(e) {
|
|
1506
1506
|
return e === null;
|
|
1507
1507
|
}
|
|
1508
|
-
var
|
|
1508
|
+
var Ni = new se("tag:yaml.org,2002:null", {
|
|
1509
1509
|
kind: "scalar",
|
|
1510
1510
|
resolve: Xa,
|
|
1511
1511
|
construct: eo,
|
|
@@ -1541,7 +1541,7 @@ function ro(e) {
|
|
|
1541
1541
|
function ao(e) {
|
|
1542
1542
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1543
1543
|
}
|
|
1544
|
-
var
|
|
1544
|
+
var ji = new se("tag:yaml.org,2002:bool", {
|
|
1545
1545
|
kind: "scalar",
|
|
1546
1546
|
resolve: io,
|
|
1547
1547
|
construct: ro,
|
|
@@ -1632,7 +1632,7 @@ function co(e) {
|
|
|
1632
1632
|
function uo(e) {
|
|
1633
1633
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !oe.isNegativeZero(e);
|
|
1634
1634
|
}
|
|
1635
|
-
var
|
|
1635
|
+
var Oi = new se("tag:yaml.org,2002:int", {
|
|
1636
1636
|
kind: "scalar",
|
|
1637
1637
|
resolve: so,
|
|
1638
1638
|
construct: co,
|
|
@@ -1709,31 +1709,31 @@ function yo(e, t) {
|
|
|
1709
1709
|
function vo(e) {
|
|
1710
1710
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || oe.isNegativeZero(e));
|
|
1711
1711
|
}
|
|
1712
|
-
var
|
|
1712
|
+
var Mi = new se("tag:yaml.org,2002:float", {
|
|
1713
1713
|
kind: "scalar",
|
|
1714
1714
|
resolve: fo,
|
|
1715
1715
|
construct: go,
|
|
1716
1716
|
predicate: vo,
|
|
1717
1717
|
represent: yo,
|
|
1718
1718
|
defaultStyle: "lowercase"
|
|
1719
|
-
}),
|
|
1719
|
+
}), Ei = $i.extend({
|
|
1720
1720
|
implicit: [
|
|
1721
|
-
$i,
|
|
1722
1721
|
Ni,
|
|
1723
1722
|
ji,
|
|
1724
|
-
Oi
|
|
1723
|
+
Oi,
|
|
1724
|
+
Mi
|
|
1725
1725
|
]
|
|
1726
|
-
}),
|
|
1726
|
+
}), Fi = Ei, Vi = new RegExp(
|
|
1727
1727
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1728
|
-
),
|
|
1728
|
+
), qi = new RegExp(
|
|
1729
1729
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
1730
1730
|
);
|
|
1731
1731
|
function ho(e) {
|
|
1732
|
-
return e === null ? !1 :
|
|
1732
|
+
return e === null ? !1 : Vi.exec(e) !== null || qi.exec(e) !== null;
|
|
1733
1733
|
}
|
|
1734
1734
|
function bo(e) {
|
|
1735
1735
|
var t, i, a, r, n, o, c, l = 0, u = null, m, p, _;
|
|
1736
|
-
if (t =
|
|
1736
|
+
if (t = Vi.exec(e), t === null && (t = qi.exec(e)), t === null)
|
|
1737
1737
|
throw new Error("Date resolve error");
|
|
1738
1738
|
if (i = +t[1], a = +t[2] - 1, r = +t[3], !t[4])
|
|
1739
1739
|
return new Date(Date.UTC(i, a, r));
|
|
@@ -1747,7 +1747,7 @@ function bo(e) {
|
|
|
1747
1747
|
function wo(e) {
|
|
1748
1748
|
return e.toISOString();
|
|
1749
1749
|
}
|
|
1750
|
-
var
|
|
1750
|
+
var Li = new se("tag:yaml.org,2002:timestamp", {
|
|
1751
1751
|
kind: "scalar",
|
|
1752
1752
|
resolve: ho,
|
|
1753
1753
|
construct: bo,
|
|
@@ -1757,7 +1757,7 @@ var qi = new se("tag:yaml.org,2002:timestamp", {
|
|
|
1757
1757
|
function _o(e) {
|
|
1758
1758
|
return e === "<<" || e === null;
|
|
1759
1759
|
}
|
|
1760
|
-
var
|
|
1760
|
+
var Ui = new se("tag:yaml.org,2002:merge", {
|
|
1761
1761
|
kind: "scalar",
|
|
1762
1762
|
resolve: _o
|
|
1763
1763
|
}), jt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
@@ -1789,7 +1789,7 @@ function So(e) {
|
|
|
1789
1789
|
function xo(e) {
|
|
1790
1790
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1791
1791
|
}
|
|
1792
|
-
var
|
|
1792
|
+
var Bi = new se("tag:yaml.org,2002:binary", {
|
|
1793
1793
|
kind: "scalar",
|
|
1794
1794
|
resolve: ko,
|
|
1795
1795
|
construct: Co,
|
|
@@ -1821,7 +1821,7 @@ function To(e) {
|
|
|
1821
1821
|
function $o(e) {
|
|
1822
1822
|
return e !== null ? e : [];
|
|
1823
1823
|
}
|
|
1824
|
-
var
|
|
1824
|
+
var Ki = new se("tag:yaml.org,2002:omap", {
|
|
1825
1825
|
kind: "sequence",
|
|
1826
1826
|
resolve: To,
|
|
1827
1827
|
construct: $o
|
|
@@ -1845,7 +1845,7 @@ function Oo(e) {
|
|
|
1845
1845
|
a = o[t], r = Object.keys(a), n[t] = [r[0], a[r[0]]];
|
|
1846
1846
|
return n;
|
|
1847
1847
|
}
|
|
1848
|
-
var
|
|
1848
|
+
var Ri = new se("tag:yaml.org,2002:pairs", {
|
|
1849
1849
|
kind: "sequence",
|
|
1850
1850
|
resolve: jo,
|
|
1851
1851
|
construct: Oo
|
|
@@ -1862,22 +1862,22 @@ function Eo(e) {
|
|
|
1862
1862
|
function Fo(e) {
|
|
1863
1863
|
return e !== null ? e : {};
|
|
1864
1864
|
}
|
|
1865
|
-
var
|
|
1865
|
+
var Pi = new se("tag:yaml.org,2002:set", {
|
|
1866
1866
|
kind: "mapping",
|
|
1867
1867
|
resolve: Eo,
|
|
1868
1868
|
construct: Fo
|
|
1869
|
-
}), Ot =
|
|
1869
|
+
}), Ot = Fi.extend({
|
|
1870
1870
|
implicit: [
|
|
1871
|
-
|
|
1872
|
-
|
|
1871
|
+
Li,
|
|
1872
|
+
Ui
|
|
1873
1873
|
],
|
|
1874
1874
|
explicit: [
|
|
1875
|
-
Ui,
|
|
1876
1875
|
Bi,
|
|
1877
1876
|
Ki,
|
|
1878
|
-
Ri
|
|
1877
|
+
Ri,
|
|
1878
|
+
Pi
|
|
1879
1879
|
]
|
|
1880
|
-
}), $e = Object.prototype.hasOwnProperty, ct = 1,
|
|
1880
|
+
}), $e = Object.prototype.hasOwnProperty, ct = 1, Di = 2, zi = 3, ut = 4, wt = 1, Vo = 2, Gt = 3, qo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Lo = /[\x85\u2028\u2029]/, Uo = /[,\[\]\{\}]/, Hi = /^(?:!|!!|![a-z\-]+!)$/i, Gi = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1881
1881
|
function Jt(e) {
|
|
1882
1882
|
return Object.prototype.toString.call(e);
|
|
1883
1883
|
}
|
|
@@ -1913,13 +1913,13 @@ function Po(e) {
|
|
|
1913
1913
|
(e - 65536 & 1023) + 56320
|
|
1914
1914
|
);
|
|
1915
1915
|
}
|
|
1916
|
-
var
|
|
1916
|
+
var Ji = new Array(256), Wi = new Array(256);
|
|
1917
1917
|
for (var Ve = 0; Ve < 256; Ve++)
|
|
1918
|
-
|
|
1918
|
+
Ji[Ve] = Wt(Ve) ? 1 : 0, Wi[Ve] = Wt(Ve);
|
|
1919
1919
|
function Do(e, t) {
|
|
1920
1920
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || Ot, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1922
|
+
function Zi(e, t) {
|
|
1923
1923
|
var i = {
|
|
1924
1924
|
name: e.filename,
|
|
1925
1925
|
buffer: e.input.slice(0, -1),
|
|
@@ -1931,10 +1931,10 @@ function Wi(e, t) {
|
|
|
1931
1931
|
return i.snippet = Ga(i), new de(t, i);
|
|
1932
1932
|
}
|
|
1933
1933
|
function F(e, t) {
|
|
1934
|
-
throw
|
|
1934
|
+
throw Zi(e, t);
|
|
1935
1935
|
}
|
|
1936
1936
|
function dt(e, t) {
|
|
1937
|
-
e.onWarning && e.onWarning.call(null,
|
|
1937
|
+
e.onWarning && e.onWarning.call(null, Zi(e, t));
|
|
1938
1938
|
}
|
|
1939
1939
|
var Zt = {
|
|
1940
1940
|
YAML: function(e, t, i) {
|
|
@@ -1943,7 +1943,7 @@ var Zt = {
|
|
|
1943
1943
|
},
|
|
1944
1944
|
TAG: function(e, t, i) {
|
|
1945
1945
|
var a, r;
|
|
1946
|
-
i.length !== 2 && F(e, "TAG directive accepts exactly two arguments"), a = i[0], r = i[1],
|
|
1946
|
+
i.length !== 2 && F(e, "TAG directive accepts exactly two arguments"), a = i[0], r = i[1], Hi.test(a) || F(e, "ill-formed tag handle (first argument) of the TAG directive"), $e.call(e.tagMap, a) && F(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Gi.test(r) || F(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1947
1947
|
try {
|
|
1948
1948
|
r = decodeURIComponent(r);
|
|
1949
1949
|
} catch {
|
|
@@ -2017,29 +2017,29 @@ function Et(e, t) {
|
|
|
2017
2017
|
`, t - 1));
|
|
2018
2018
|
}
|
|
2019
2019
|
function zo(e, t, i) {
|
|
2020
|
-
var a, r, n, o, c, l, u, m, p = e.kind, _ = e.result,
|
|
2021
|
-
if (
|
|
2020
|
+
var a, r, n, o, c, l, u, m, p = e.kind, _ = e.result, h;
|
|
2021
|
+
if (h = e.input.charCodeAt(e.position), ge(h) || Ue(h) || h === 35 || h === 38 || h === 42 || h === 33 || h === 124 || h === 62 || h === 39 || h === 34 || h === 37 || h === 64 || h === 96 || (h === 63 || h === 45) && (r = e.input.charCodeAt(e.position + 1), ge(r) || i && Ue(r)))
|
|
2022
2022
|
return !1;
|
|
2023
|
-
for (e.kind = "scalar", e.result = "", n = o = e.position, c = !1;
|
|
2024
|
-
if (
|
|
2023
|
+
for (e.kind = "scalar", e.result = "", n = o = e.position, c = !1; h !== 0; ) {
|
|
2024
|
+
if (h === 58) {
|
|
2025
2025
|
if (r = e.input.charCodeAt(e.position + 1), ge(r) || i && Ue(r))
|
|
2026
2026
|
break;
|
|
2027
|
-
} else if (
|
|
2027
|
+
} else if (h === 35) {
|
|
2028
2028
|
if (a = e.input.charCodeAt(e.position - 1), ge(a))
|
|
2029
2029
|
break;
|
|
2030
2030
|
} else {
|
|
2031
|
-
if (e.position === e.lineStart && mt(e) || i && Ue(
|
|
2031
|
+
if (e.position === e.lineStart && mt(e) || i && Ue(h))
|
|
2032
2032
|
break;
|
|
2033
|
-
if (be(
|
|
2033
|
+
if (be(h))
|
|
2034
2034
|
if (l = e.line, u = e.lineStart, m = e.lineIndent, re(e, !1, -1), e.lineIndent >= t) {
|
|
2035
|
-
c = !0,
|
|
2035
|
+
c = !0, h = e.input.charCodeAt(e.position);
|
|
2036
2036
|
continue;
|
|
2037
2037
|
} else {
|
|
2038
2038
|
e.position = o, e.line = l, e.lineStart = u, e.lineIndent = m;
|
|
2039
2039
|
break;
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
|
-
c && (Ie(e, n, o, !1), Et(e, e.line - l), n = o = e.position, c = !1), Me(
|
|
2042
|
+
c && (Ie(e, n, o, !1), Et(e, e.line - l), n = o = e.position, c = !1), Me(h) || (o = e.position + 1), h = e.input.charCodeAt(++e.position);
|
|
2043
2043
|
}
|
|
2044
2044
|
return Ie(e, n, o, !1), e.result ? !0 : (e.kind = p, e.result = _, !1);
|
|
2045
2045
|
}
|
|
@@ -2067,8 +2067,8 @@ function Go(e, t) {
|
|
|
2067
2067
|
if (c === 92) {
|
|
2068
2068
|
if (Ie(e, i, e.position, !0), c = e.input.charCodeAt(++e.position), be(c))
|
|
2069
2069
|
re(e, !1, t);
|
|
2070
|
-
else if (c < 256 &&
|
|
2071
|
-
e.result +=
|
|
2070
|
+
else if (c < 256 && Ji[c])
|
|
2071
|
+
e.result += Wi[c], e.position++;
|
|
2072
2072
|
else if ((o = Ko(c)) > 0) {
|
|
2073
2073
|
for (r = o, n = 0; r > 0; r--)
|
|
2074
2074
|
c = e.input.charCodeAt(++e.position), (o = Bo(c)) >= 0 ? n = (n << 4) + o : F(e, "expected hexadecimal character");
|
|
@@ -2082,17 +2082,17 @@ function Go(e, t) {
|
|
|
2082
2082
|
F(e, "unexpected end of the stream within a double quoted scalar");
|
|
2083
2083
|
}
|
|
2084
2084
|
function Jo(e, t) {
|
|
2085
|
-
var i = !0, a, r, n, o = e.tag, c, l = e.anchor, u, m, p, _,
|
|
2085
|
+
var i = !0, a, r, n, o = e.tag, c, l = e.anchor, u, m, p, _, h, A = /* @__PURE__ */ Object.create(null), O, C, K, N;
|
|
2086
2086
|
if (N = e.input.charCodeAt(e.position), N === 91)
|
|
2087
|
-
m = 93,
|
|
2087
|
+
m = 93, h = !1, c = [];
|
|
2088
2088
|
else if (N === 123)
|
|
2089
|
-
m = 125,
|
|
2089
|
+
m = 125, h = !0, c = {};
|
|
2090
2090
|
else
|
|
2091
2091
|
return !1;
|
|
2092
2092
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), N = e.input.charCodeAt(++e.position); N !== 0; ) {
|
|
2093
2093
|
if (re(e, !0, t), N = e.input.charCodeAt(e.position), N === m)
|
|
2094
|
-
return e.position++, e.tag = o, e.anchor = l, e.kind =
|
|
2095
|
-
i ? N === 44 && F(e, "expected the node content, but found ','") : F(e, "missed comma between flow collection entries"), C = O = K = null, p = _ = !1, N === 63 && (u = e.input.charCodeAt(e.position + 1), ge(u) && (p = _ = !0, e.position++, re(e, !0, t))), a = e.line, r = e.lineStart, n = e.position, Re(e, t, ct, !1, !0), C = e.tag, O = e.result, re(e, !0, t), N = e.input.charCodeAt(e.position), (_ || e.line === a) && N === 58 && (p = !0, N = e.input.charCodeAt(++e.position), re(e, !0, t), Re(e, t, ct, !1, !0), K = e.result),
|
|
2094
|
+
return e.position++, e.tag = o, e.anchor = l, e.kind = h ? "mapping" : "sequence", e.result = c, !0;
|
|
2095
|
+
i ? N === 44 && F(e, "expected the node content, but found ','") : F(e, "missed comma between flow collection entries"), C = O = K = null, p = _ = !1, N === 63 && (u = e.input.charCodeAt(e.position + 1), ge(u) && (p = _ = !0, e.position++, re(e, !0, t))), a = e.line, r = e.lineStart, n = e.position, Re(e, t, ct, !1, !0), C = e.tag, O = e.result, re(e, !0, t), N = e.input.charCodeAt(e.position), (_ || e.line === a) && N === 58 && (p = !0, N = e.input.charCodeAt(++e.position), re(e, !0, t), Re(e, t, ct, !1, !0), K = e.result), h ? Be(e, c, A, C, O, K, a, r, n) : p ? c.push(Be(e, null, A, C, O, K, a, r, n)) : c.push(O), re(e, !0, t), N = e.input.charCodeAt(e.position), N === 44 ? (i = !0, N = e.input.charCodeAt(++e.position)) : i = !1;
|
|
2096
2096
|
}
|
|
2097
2097
|
F(e, "unexpected end of the stream within a flow collection");
|
|
2098
2098
|
}
|
|
@@ -2152,7 +2152,7 @@ function Qt(e, t) {
|
|
|
2152
2152
|
n.push(null), l = e.input.charCodeAt(e.position);
|
|
2153
2153
|
continue;
|
|
2154
2154
|
}
|
|
2155
|
-
if (i = e.line, Re(e, t,
|
|
2155
|
+
if (i = e.line, Re(e, t, zi, !1, !0), n.push(e.result), re(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > t) && l !== 0)
|
|
2156
2156
|
F(e, "bad indentation of a sequence entry");
|
|
2157
2157
|
else if (e.lineIndent < t)
|
|
2158
2158
|
break;
|
|
@@ -2160,20 +2160,20 @@ function Qt(e, t) {
|
|
|
2160
2160
|
return c ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = n, !0) : !1;
|
|
2161
2161
|
}
|
|
2162
2162
|
function Zo(e, t, i) {
|
|
2163
|
-
var a, r, n, o, c, l, u = e.tag, m = e.anchor, p = {}, _ = /* @__PURE__ */ Object.create(null),
|
|
2163
|
+
var a, r, n, o, c, l, u = e.tag, m = e.anchor, p = {}, _ = /* @__PURE__ */ Object.create(null), h = null, A = null, O = null, C = !1, K = !1, N;
|
|
2164
2164
|
if (e.firstTabInLine !== -1)
|
|
2165
2165
|
return !1;
|
|
2166
2166
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), N = e.input.charCodeAt(e.position); N !== 0; ) {
|
|
2167
2167
|
if (!C && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, F(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), n = e.line, (N === 63 || N === 58) && ge(a))
|
|
2168
|
-
N === 63 ? (C && (Be(e, p, _,
|
|
2168
|
+
N === 63 ? (C && (Be(e, p, _, h, A, null, o, c, l), h = A = O = null), K = !0, C = !0, r = !0) : C ? (C = !1, r = !0) : F(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, N = a;
|
|
2169
2169
|
else {
|
|
2170
|
-
if (o = e.line, c = e.lineStart, l = e.position, !Re(e, i,
|
|
2170
|
+
if (o = e.line, c = e.lineStart, l = e.position, !Re(e, i, Di, !1, !0))
|
|
2171
2171
|
break;
|
|
2172
2172
|
if (e.line === n) {
|
|
2173
2173
|
for (N = e.input.charCodeAt(e.position); Me(N); )
|
|
2174
2174
|
N = e.input.charCodeAt(++e.position);
|
|
2175
2175
|
if (N === 58)
|
|
2176
|
-
N = e.input.charCodeAt(++e.position), ge(N) || F(e, "a whitespace character is expected after the key-value separator within a block mapping"), C && (Be(e, p, _,
|
|
2176
|
+
N = e.input.charCodeAt(++e.position), ge(N) || F(e, "a whitespace character is expected after the key-value separator within a block mapping"), C && (Be(e, p, _, h, A, null, o, c, l), h = A = O = null), K = !0, C = !1, r = !1, h = e.tag, A = e.result;
|
|
2177
2177
|
else if (K)
|
|
2178
2178
|
F(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2179
2179
|
else
|
|
@@ -2183,12 +2183,12 @@ function Zo(e, t, i) {
|
|
|
2183
2183
|
else
|
|
2184
2184
|
return e.tag = u, e.anchor = m, !0;
|
|
2185
2185
|
}
|
|
2186
|
-
if ((e.line === n || e.lineIndent > t) && (C && (o = e.line, c = e.lineStart, l = e.position), Re(e, t, ut, !0, r) && (C ? A = e.result : O = e.result), C || (Be(e, p, _,
|
|
2186
|
+
if ((e.line === n || e.lineIndent > t) && (C && (o = e.line, c = e.lineStart, l = e.position), Re(e, t, ut, !0, r) && (C ? A = e.result : O = e.result), C || (Be(e, p, _, h, A, O, o, c, l), h = A = O = null), re(e, !0, -1), N = e.input.charCodeAt(e.position)), (e.line === n || e.lineIndent > t) && N !== 0)
|
|
2187
2187
|
F(e, "bad indentation of a mapping entry");
|
|
2188
2188
|
else if (e.lineIndent < t)
|
|
2189
2189
|
break;
|
|
2190
2190
|
}
|
|
2191
|
-
return C && Be(e, p, _,
|
|
2191
|
+
return C && Be(e, p, _, h, A, null, o, c, l), K && (e.tag = u, e.anchor = m, e.kind = "mapping", e.result = p), K;
|
|
2192
2192
|
}
|
|
2193
2193
|
function Yo(e) {
|
|
2194
2194
|
var t, i = !1, a = !1, r, n, o;
|
|
@@ -2201,10 +2201,10 @@ function Yo(e) {
|
|
|
2201
2201
|
e.position < e.length ? (n = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : F(e, "unexpected end of the stream within a verbatim tag");
|
|
2202
2202
|
} else {
|
|
2203
2203
|
for (; o !== 0 && !ge(o); )
|
|
2204
|
-
o === 33 && (a ? F(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1),
|
|
2204
|
+
o === 33 && (a ? F(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), Hi.test(r) || F(e, "named tag handle cannot contain such characters"), a = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2205
2205
|
n = e.input.slice(t, e.position), Uo.test(n) && F(e, "tag suffix cannot contain flow indicator characters");
|
|
2206
2206
|
}
|
|
2207
|
-
n && !
|
|
2207
|
+
n && !Gi.test(n) && F(e, "tag name cannot contain such characters: " + n);
|
|
2208
2208
|
try {
|
|
2209
2209
|
n = decodeURIComponent(n);
|
|
2210
2210
|
} catch {
|
|
@@ -2229,11 +2229,11 @@ function Xo(e) {
|
|
|
2229
2229
|
return e.position === t && F(e, "name of an alias node must contain at least one character"), i = e.input.slice(t, e.position), $e.call(e.anchorMap, i) || F(e, 'unidentified alias "' + i + '"'), e.result = e.anchorMap[i], re(e, !0, -1), !0;
|
|
2230
2230
|
}
|
|
2231
2231
|
function Re(e, t, i, a, r) {
|
|
2232
|
-
var n, o, c, l = 1, u = !1, m = !1, p, _,
|
|
2233
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, n = o = c = ut === i ||
|
|
2232
|
+
var n, o, c, l = 1, u = !1, m = !1, p, _, h, A, O, C;
|
|
2233
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, n = o = c = ut === i || zi === i, a && re(e, !0, -1) && (u = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
|
|
2234
2234
|
for (; Yo(e) || Qo(e); )
|
|
2235
2235
|
re(e, !0, -1) ? (u = !0, c = n, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : c = !1;
|
|
2236
|
-
if (c && (c = u || r), (l === 1 || ut === i) && (ct === i ||
|
|
2236
|
+
if (c && (c = u || r), (l === 1 || ut === i) && (ct === i || Di === i ? O = t : O = t + 1, C = e.position - e.lineStart, l === 1 ? c && (Qt(e, C) || Zo(e, C, O)) || Jo(e, O) ? m = !0 : (o && Wo(e, O) || Ho(e, O) || Go(e, O) ? m = !0 : Xo(e) ? (m = !0, (e.tag !== null || e.anchor !== null) && F(e, "alias node should not have any properties")) : zo(e, O, ct === i) && (m = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (m = c && Qt(e, C))), e.tag === null)
|
|
2237
2237
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2238
2238
|
else if (e.tag === "?") {
|
|
2239
2239
|
for (e.result !== null && e.kind !== "scalar" && F(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, _ = e.implicitTypes.length; p < _; p += 1)
|
|
@@ -2245,9 +2245,9 @@ function Re(e, t, i, a, r) {
|
|
|
2245
2245
|
if ($e.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2246
2246
|
A = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2247
2247
|
else
|
|
2248
|
-
for (A = null,
|
|
2249
|
-
if (e.tag.slice(0,
|
|
2250
|
-
A =
|
|
2248
|
+
for (A = null, h = e.typeMap.multi[e.kind || "fallback"], p = 0, _ = h.length; p < _; p += 1)
|
|
2249
|
+
if (e.tag.slice(0, h[p].tag.length) === h[p].tag) {
|
|
2250
|
+
A = h[p];
|
|
2251
2251
|
break;
|
|
2252
2252
|
}
|
|
2253
2253
|
A || F(e, "unknown tag !<" + e.tag + ">"), e.result !== null && A.kind !== e.kind && F(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + A.kind + '", not "' + e.kind + '"'), A.resolve(e.result, e.tag) ? (e.result = A.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : F(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
@@ -2285,7 +2285,7 @@ function en(e) {
|
|
|
2285
2285
|
else
|
|
2286
2286
|
return;
|
|
2287
2287
|
}
|
|
2288
|
-
function
|
|
2288
|
+
function Yi(e, t) {
|
|
2289
2289
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2290
2290
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2291
2291
|
var i = new Do(e, t), a = e.indexOf("\0");
|
|
@@ -2297,24 +2297,24 @@ function Zi(e, t) {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
function tn(e, t, i) {
|
|
2299
2299
|
t !== null && typeof t == "object" && typeof i > "u" && (i = t, t = null);
|
|
2300
|
-
var a =
|
|
2300
|
+
var a = Yi(e, i);
|
|
2301
2301
|
if (typeof t != "function")
|
|
2302
2302
|
return a;
|
|
2303
2303
|
for (var r = 0, n = a.length; r < n; r += 1)
|
|
2304
2304
|
t(a[r]);
|
|
2305
2305
|
}
|
|
2306
2306
|
function rn(e, t) {
|
|
2307
|
-
var i =
|
|
2307
|
+
var i = Yi(e, t);
|
|
2308
2308
|
if (i.length !== 0) {
|
|
2309
2309
|
if (i.length === 1)
|
|
2310
2310
|
return i[0];
|
|
2311
2311
|
throw new de("expected a single document in the stream, but found more");
|
|
2312
2312
|
}
|
|
2313
2313
|
}
|
|
2314
|
-
var an = tn, on = rn,
|
|
2314
|
+
var an = tn, on = rn, Qi = {
|
|
2315
2315
|
loadAll: an,
|
|
2316
2316
|
load: on
|
|
2317
|
-
},
|
|
2317
|
+
}, Xi = Object.prototype.toString, er = Object.prototype.hasOwnProperty, Ft = 65279, nn = 9, et = 10, ln = 13, sn = 32, cn = 33, un = 34, Ct = 35, dn = 37, pn = 38, fn = 39, gn = 42, tr = 44, mn = 45, pt = 58, yn = 61, vn = 62, hn = 63, bn = 64, ir = 91, rr = 93, wn = 96, ar = 123, _n = 124, or = 125, ue = {};
|
|
2318
2318
|
ue[0] = "\\0";
|
|
2319
2319
|
ue[7] = "\\a";
|
|
2320
2320
|
ue[8] = "\\b";
|
|
@@ -2353,7 +2353,7 @@ function Sn(e, t) {
|
|
|
2353
2353
|
if (t === null)
|
|
2354
2354
|
return {};
|
|
2355
2355
|
for (i = {}, a = Object.keys(t), r = 0, n = a.length; r < n; r += 1)
|
|
2356
|
-
o = a[r], c = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), l = e.compiledTypeMap.fallback[o], l &&
|
|
2356
|
+
o = a[r], c = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), l = e.compiledTypeMap.fallback[o], l && er.call(l.styleAliases, c) && (c = l.styleAliases[c]), i[o] = c;
|
|
2357
2357
|
return i;
|
|
2358
2358
|
}
|
|
2359
2359
|
function xn(e) {
|
|
@@ -2406,11 +2406,11 @@ function ti(e, t, i) {
|
|
|
2406
2406
|
(i ? (
|
|
2407
2407
|
// c = flow-in
|
|
2408
2408
|
a
|
|
2409
|
-
) : a && e !==
|
|
2409
|
+
) : a && e !== tr && e !== ir && e !== rr && e !== ar && e !== or) && e !== Ct && !(t === pt && !r) || ei(t) && !ft(t) && e === Ct || t === pt && r
|
|
2410
2410
|
);
|
|
2411
2411
|
}
|
|
2412
2412
|
function $n(e) {
|
|
2413
|
-
return it(e) && e !== Ft && !ft(e) && e !== mn && e !== hn && e !== pt && e !==
|
|
2413
|
+
return it(e) && e !== Ft && !ft(e) && e !== mn && e !== hn && e !== pt && e !== tr && e !== ir && e !== rr && e !== ar && e !== or && e !== Ct && e !== pn && e !== gn && e !== cn && e !== _n && e !== yn && e !== vn && e !== fn && e !== un && e !== dn && e !== bn && e !== wn;
|
|
2414
2414
|
}
|
|
2415
2415
|
function Nn(e) {
|
|
2416
2416
|
return !ft(e) && e !== pt;
|
|
@@ -2419,13 +2419,13 @@ function Ye(e, t) {
|
|
|
2419
2419
|
var i = e.charCodeAt(t), a;
|
|
2420
2420
|
return i >= 55296 && i <= 56319 && t + 1 < e.length && (a = e.charCodeAt(t + 1), a >= 56320 && a <= 57343) ? (i - 55296) * 1024 + a - 56320 + 65536 : i;
|
|
2421
2421
|
}
|
|
2422
|
-
function
|
|
2422
|
+
function nr(e) {
|
|
2423
2423
|
var t = /^\n* /;
|
|
2424
2424
|
return t.test(e);
|
|
2425
2425
|
}
|
|
2426
|
-
var
|
|
2426
|
+
var lr = 1, xt = 2, sr = 3, cr = 4, qe = 5;
|
|
2427
2427
|
function jn(e, t, i, a, r, n, o, c) {
|
|
2428
|
-
var l, u = 0, m = null, p = !1, _ = !1,
|
|
2428
|
+
var l, u = 0, m = null, p = !1, _ = !1, h = a !== -1, A = -1, O = $n(Ye(e, 0)) && Nn(Ye(e, e.length - 1));
|
|
2429
2429
|
if (t || o)
|
|
2430
2430
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2431
2431
|
if (u = Ye(e, l), !it(u))
|
|
@@ -2435,15 +2435,15 @@ function jn(e, t, i, a, r, n, o, c) {
|
|
|
2435
2435
|
else {
|
|
2436
2436
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2437
2437
|
if (u = Ye(e, l), u === et)
|
|
2438
|
-
p = !0,
|
|
2438
|
+
p = !0, h && (_ = _ || // Foldable line = too long, and not more-indented.
|
|
2439
2439
|
l - A - 1 > a && e[A + 1] !== " ", A = l);
|
|
2440
2440
|
else if (!it(u))
|
|
2441
2441
|
return qe;
|
|
2442
2442
|
O = O && ti(u, m, c), m = u;
|
|
2443
2443
|
}
|
|
2444
|
-
_ = _ ||
|
|
2444
|
+
_ = _ || h && l - A - 1 > a && e[A + 1] !== " ";
|
|
2445
2445
|
}
|
|
2446
|
-
return !p && !_ ? O && !o && !r(e) ?
|
|
2446
|
+
return !p && !_ ? O && !o && !r(e) ? lr : n === tt ? qe : xt : i > 9 && nr(e) ? qe : o ? n === tt ? qe : xt : _ ? cr : sr;
|
|
2447
2447
|
}
|
|
2448
2448
|
function On(e, t, i, a, r) {
|
|
2449
2449
|
e.dump = function() {
|
|
@@ -2465,13 +2465,13 @@ function On(e, t, i, a, r) {
|
|
|
2465
2465
|
e.forceQuotes && !a,
|
|
2466
2466
|
r
|
|
2467
2467
|
)) {
|
|
2468
|
-
case
|
|
2468
|
+
case lr:
|
|
2469
2469
|
return t;
|
|
2470
2470
|
case xt:
|
|
2471
2471
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2472
|
-
case lr:
|
|
2473
|
-
return "|" + ii(t, e.indent) + ri(Xt(t, n));
|
|
2474
2472
|
case sr:
|
|
2473
|
+
return "|" + ii(t, e.indent) + ri(Xt(t, n));
|
|
2474
|
+
case cr:
|
|
2475
2475
|
return ">" + ii(t, e.indent) + ri(Xt(Mn(t, o), n));
|
|
2476
2476
|
case qe:
|
|
2477
2477
|
return '"' + En(t) + '"';
|
|
@@ -2481,7 +2481,7 @@ function On(e, t, i, a, r) {
|
|
|
2481
2481
|
}();
|
|
2482
2482
|
}
|
|
2483
2483
|
function ii(e, t) {
|
|
2484
|
-
var i =
|
|
2484
|
+
var i = nr(e) ? String(t) : "", a = e[e.length - 1] === `
|
|
2485
2485
|
`, r = a && (e[e.length - 2] === `
|
|
2486
2486
|
` || e === `
|
|
2487
2487
|
`), n = r ? "+" : a ? "" : "-";
|
|
@@ -2523,19 +2523,19 @@ function En(e) {
|
|
|
2523
2523
|
function Fn(e, t, i) {
|
|
2524
2524
|
var a = "", r = e.tag, n, o, c;
|
|
2525
2525
|
for (n = 0, o = i.length; n < o; n += 1)
|
|
2526
|
-
c = i[n], e.replacer && (c = e.replacer.call(i, String(n), c)), (
|
|
2526
|
+
c = i[n], e.replacer && (c = e.replacer.call(i, String(n), c)), (Ce(e, t, c, !1, !1) || typeof c > "u" && Ce(e, t, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
|
|
2527
2527
|
e.tag = r, e.dump = "[" + a + "]";
|
|
2528
2528
|
}
|
|
2529
2529
|
function oi(e, t, i, a) {
|
|
2530
2530
|
var r = "", n = e.tag, o, c, l;
|
|
2531
2531
|
for (o = 0, c = i.length; o < c; o += 1)
|
|
2532
|
-
l = i[o], e.replacer && (l = e.replacer.call(i, String(o), l)), (
|
|
2532
|
+
l = i[o], e.replacer && (l = e.replacer.call(i, String(o), l)), (Ce(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && Ce(e, t + 1, null, !0, !0, !1, !0)) && ((!a || r !== "") && (r += St(e, t)), e.dump && et === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
2533
2533
|
e.tag = n, e.dump = r || "[]";
|
|
2534
2534
|
}
|
|
2535
2535
|
function Vn(e, t, i) {
|
|
2536
2536
|
var a = "", r = e.tag, n = Object.keys(i), o, c, l, u, m;
|
|
2537
2537
|
for (o = 0, c = n.length; o < c; o += 1)
|
|
2538
|
-
m = "", a !== "" && (m += ", "), e.condenseFlow && (m += '"'), l = n[o], u = i[l], e.replacer && (u = e.replacer.call(i, l, u)),
|
|
2538
|
+
m = "", a !== "" && (m += ", "), e.condenseFlow && (m += '"'), l = n[o], u = i[l], e.replacer && (u = e.replacer.call(i, l, u)), Ce(e, t, l, !1, !1) && (e.dump.length > 1024 && (m += "? "), m += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Ce(e, t, u, !1, !1) && (m += e.dump, a += m));
|
|
2539
2539
|
e.tag = r, e.dump = "{" + a + "}";
|
|
2540
2540
|
}
|
|
2541
2541
|
function qn(e, t, i, a) {
|
|
@@ -2547,7 +2547,7 @@ function qn(e, t, i, a) {
|
|
|
2547
2547
|
else if (e.sortKeys)
|
|
2548
2548
|
throw new de("sortKeys must be a boolean or a function");
|
|
2549
2549
|
for (c = 0, l = o.length; c < l; c += 1)
|
|
2550
|
-
_ = "", (!a || r !== "") && (_ += St(e, t)), u = o[c], m = i[u], e.replacer && (m = e.replacer.call(i, u, m)),
|
|
2550
|
+
_ = "", (!a || r !== "") && (_ += St(e, t)), u = o[c], m = i[u], e.replacer && (m = e.replacer.call(i, u, m)), Ce(e, t + 1, u, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && et === e.dump.charCodeAt(0) ? _ += "?" : _ += "? "), _ += e.dump, p && (_ += St(e, t)), Ce(e, t + 1, m, !0, p) && (e.dump && et === e.dump.charCodeAt(0) ? _ += ":" : _ += ": ", _ += e.dump, r += _));
|
|
2551
2551
|
e.tag = n, e.dump = r || "{}";
|
|
2552
2552
|
}
|
|
2553
2553
|
function ni(e, t, i) {
|
|
@@ -2555,9 +2555,9 @@ function ni(e, t, i) {
|
|
|
2555
2555
|
for (r = i ? e.explicitTypes : e.implicitTypes, n = 0, o = r.length; n < o; n += 1)
|
|
2556
2556
|
if (c = r[n], (c.instanceOf || c.predicate) && (!c.instanceOf || typeof t == "object" && t instanceof c.instanceOf) && (!c.predicate || c.predicate(t))) {
|
|
2557
2557
|
if (i ? c.multi && c.representName ? e.tag = c.representName(t) : e.tag = c.tag : e.tag = "?", c.represent) {
|
|
2558
|
-
if (l = e.styleMap[c.tag] || c.defaultStyle,
|
|
2558
|
+
if (l = e.styleMap[c.tag] || c.defaultStyle, Xi.call(c.represent) === "[object Function]")
|
|
2559
2559
|
a = c.represent(t, l);
|
|
2560
|
-
else if (
|
|
2560
|
+
else if (er.call(c.represent, l))
|
|
2561
2561
|
a = c.represent[l](t, l);
|
|
2562
2562
|
else
|
|
2563
2563
|
throw new de("!<" + c.tag + '> tag resolver accepts not "' + l + '" style');
|
|
@@ -2567,9 +2567,9 @@ function ni(e, t, i) {
|
|
|
2567
2567
|
}
|
|
2568
2568
|
return !1;
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2570
|
+
function Ce(e, t, i, a, r, n, o) {
|
|
2571
2571
|
e.tag = null, e.dump = i, ni(e, i, !1) || ni(e, i, !0);
|
|
2572
|
-
var c =
|
|
2572
|
+
var c = Xi.call(e.dump), l = a, u;
|
|
2573
2573
|
a && (a = e.flowLevel < 0 || e.flowLevel > t);
|
|
2574
2574
|
var m = c === "[object Object]" || c === "[object Array]", p, _;
|
|
2575
2575
|
if (m && (p = e.duplicates.indexOf(i), _ = p !== -1), (e.tag !== null && e.tag !== "?" || _ || e.indent !== 2 && t > 0) && (r = !1), _ && e.usedDuplicates[p])
|
|
@@ -2615,7 +2615,7 @@ function Un(e, t) {
|
|
|
2615
2615
|
var i = new In(t);
|
|
2616
2616
|
i.noRefs || Ln(e, i);
|
|
2617
2617
|
var a = e;
|
|
2618
|
-
return i.replacer && (a = i.replacer.call({ "": a }, "", a)),
|
|
2618
|
+
return i.replacer && (a = i.replacer.call({ "": a }, "", a)), Ce(i, 0, a, !0, !0) ? i.dump + `
|
|
2619
2619
|
` : "";
|
|
2620
2620
|
}
|
|
2621
2621
|
var Bn = Un, Kn = {
|
|
@@ -2626,20 +2626,20 @@ function Vt(e, t) {
|
|
|
2626
2626
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2627
2627
|
};
|
|
2628
2628
|
}
|
|
2629
|
-
var Rn = se, Pn =
|
|
2630
|
-
binary:
|
|
2631
|
-
float:
|
|
2632
|
-
map:
|
|
2633
|
-
null:
|
|
2634
|
-
pairs:
|
|
2635
|
-
set:
|
|
2636
|
-
timestamp:
|
|
2637
|
-
bool:
|
|
2638
|
-
int:
|
|
2639
|
-
merge:
|
|
2640
|
-
omap:
|
|
2641
|
-
seq:
|
|
2642
|
-
str:
|
|
2629
|
+
var Rn = se, Pn = xi, Dn = $i, zn = Ei, Hn = Fi, Gn = Ot, Jn = Qi.load, Wn = Qi.loadAll, Zn = Kn.dump, Yn = de, Qn = {
|
|
2630
|
+
binary: Bi,
|
|
2631
|
+
float: Mi,
|
|
2632
|
+
map: Ti,
|
|
2633
|
+
null: Ni,
|
|
2634
|
+
pairs: Ri,
|
|
2635
|
+
set: Pi,
|
|
2636
|
+
timestamp: Li,
|
|
2637
|
+
bool: ji,
|
|
2638
|
+
int: Oi,
|
|
2639
|
+
merge: Ui,
|
|
2640
|
+
omap: Ki,
|
|
2641
|
+
seq: Ii,
|
|
2642
|
+
str: Ai
|
|
2643
2643
|
}, Xn = Vt("safeLoad", "load"), el = Vt("safeLoadAll", "loadAll"), tl = Vt("safeDump", "dump"), il = {
|
|
2644
2644
|
Type: Rn,
|
|
2645
2645
|
Schema: Pn,
|
|
@@ -2656,7 +2656,7 @@ var Rn = se, Pn = Si, Dn = Ti, zn = Mi, Hn = Ei, Gn = Ot, Jn = Yi.load, Wn = Yi.
|
|
|
2656
2656
|
safeLoadAll: el,
|
|
2657
2657
|
safeDump: tl
|
|
2658
2658
|
};
|
|
2659
|
-
const rl = { class: "yaml-config" },
|
|
2659
|
+
const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
2660
2660
|
__name: "YamlCodeBlock",
|
|
2661
2661
|
props: {
|
|
2662
2662
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2672,8 +2672,8 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
2672
2672
|
});
|
|
2673
2673
|
return (a, r) => {
|
|
2674
2674
|
const n = R("KCodeBlock");
|
|
2675
|
-
return
|
|
2676
|
-
t.yamlRecord ? (
|
|
2675
|
+
return v(), I("div", rl, [
|
|
2676
|
+
t.yamlRecord ? (v(), P(n, {
|
|
2677
2677
|
key: 0,
|
|
2678
2678
|
id: "yaml-codeblock",
|
|
2679
2679
|
code: i.value,
|
|
@@ -2734,22 +2734,22 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
2734
2734
|
const o = JSON.parse(JSON.stringify(t.record));
|
|
2735
2735
|
return delete o.created_at, delete o.updated_at, o;
|
|
2736
2736
|
});
|
|
2737
|
-
return (o, c) => (
|
|
2738
|
-
e.format === "structured" ? (
|
|
2739
|
-
(
|
|
2737
|
+
return (o, c) => (v(), I(he, null, [
|
|
2738
|
+
e.format === "structured" ? (v(), I("div", al, [
|
|
2739
|
+
(v(!0), I(he, null, ye(e.propListTypes, (l) => (v(), I("div", {
|
|
2740
2740
|
key: `config-card-details-${l}-props`,
|
|
2741
2741
|
class: Te(`config-card-details-${l}-props`),
|
|
2742
2742
|
"data-testid": `config-card-details-${l}-props`
|
|
2743
2743
|
}, [
|
|
2744
|
-
l !== "basic" ? (
|
|
2745
|
-
(
|
|
2744
|
+
l !== "basic" ? (v(), I("div", nl, $(l === "advanced" ? f(a)("baseConfigCard.sections.advanced") : f(a)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
|
|
2745
|
+
(v(!0), I(he, null, ye(e.propertyCollections[l], (u) => (v(), P(_i, {
|
|
2746
2746
|
key: u.key,
|
|
2747
2747
|
item: u
|
|
2748
2748
|
}, Ke({
|
|
2749
|
-
label:
|
|
2749
|
+
label: b(() => [
|
|
2750
2750
|
ie(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2751
2751
|
]),
|
|
2752
|
-
[u.key]:
|
|
2752
|
+
[u.key]: b(({ rowValue: m }) => [
|
|
2753
2753
|
ie(o.$slots, u.key, {
|
|
2754
2754
|
row: u,
|
|
2755
2755
|
rowValue: m
|
|
@@ -2759,7 +2759,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
2759
2759
|
}, [
|
|
2760
2760
|
r(u) ? {
|
|
2761
2761
|
name: "label-tooltip",
|
|
2762
|
-
fn:
|
|
2762
|
+
fn: b(() => [
|
|
2763
2763
|
ie(o.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
|
|
2764
2764
|
]),
|
|
2765
2765
|
key: "0"
|
|
@@ -2767,14 +2767,14 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
2767
2767
|
]), 1032, ["item"]))), 128))
|
|
2768
2768
|
], 10, ol))), 128))
|
|
2769
2769
|
])) : H("", !0),
|
|
2770
|
-
e.format === "json" && t.record ? (
|
|
2770
|
+
e.format === "json" && t.record ? (v(), P(ki, {
|
|
2771
2771
|
key: 1,
|
|
2772
2772
|
config: t.config,
|
|
2773
2773
|
"fetcher-url": t.fetcherUrl,
|
|
2774
2774
|
"json-record": n.value,
|
|
2775
2775
|
"request-method": "get"
|
|
2776
2776
|
}, null, 8, ["config", "fetcher-url", "json-record"])) : H("", !0),
|
|
2777
|
-
e.format === "yaml" && t.record ? (
|
|
2777
|
+
e.format === "yaml" && t.record ? (v(), P(ur, {
|
|
2778
2778
|
key: 2,
|
|
2779
2779
|
"yaml-record": n.value
|
|
2780
2780
|
}, null, 8, ["yaml-record"])) : H("", !0)
|
|
@@ -2860,14 +2860,14 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
2860
2860
|
lineHeight: "0",
|
|
2861
2861
|
width: i.value
|
|
2862
2862
|
}));
|
|
2863
|
-
return (r, n) => (
|
|
2863
|
+
return (r, n) => (v(), P(Se(e.as), {
|
|
2864
2864
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2865
2865
|
class: "kui-icon add-icon",
|
|
2866
2866
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2867
2867
|
style: Pe(a.value)
|
|
2868
2868
|
}, {
|
|
2869
|
-
default:
|
|
2870
|
-
(
|
|
2869
|
+
default: b(() => [
|
|
2870
|
+
(v(), I("svg", {
|
|
2871
2871
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2872
2872
|
"data-testid": "kui-icon-svg-add-icon",
|
|
2873
2873
|
fill: "none",
|
|
@@ -2877,7 +2877,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
2877
2877
|
width: "100%",
|
|
2878
2878
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2879
2879
|
}, [
|
|
2880
|
-
e.title ? (
|
|
2880
|
+
e.title ? (v(), I("title", dl, $(e.title), 1)) : H("", !0),
|
|
2881
2881
|
pl
|
|
2882
2882
|
], 8, ul))
|
|
2883
2883
|
]),
|
|
@@ -2959,14 +2959,14 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
2959
2959
|
lineHeight: "0",
|
|
2960
2960
|
width: i.value
|
|
2961
2961
|
}));
|
|
2962
|
-
return (r, n) => (
|
|
2962
|
+
return (r, n) => (v(), P(Se(e.as), {
|
|
2963
2963
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2964
2964
|
class: "kui-icon book-icon",
|
|
2965
2965
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2966
2966
|
style: Pe(a.value)
|
|
2967
2967
|
}, {
|
|
2968
|
-
default:
|
|
2969
|
-
(
|
|
2968
|
+
default: b(() => [
|
|
2969
|
+
(v(), I("svg", {
|
|
2970
2970
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2971
2971
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2972
2972
|
fill: "none",
|
|
@@ -2976,7 +2976,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
2976
2976
|
width: "100%",
|
|
2977
2977
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2978
2978
|
}, [
|
|
2979
|
-
e.title ? (
|
|
2979
|
+
e.title ? (v(), I("title", vl, $(e.title), 1)) : H("", !0),
|
|
2980
2980
|
hl
|
|
2981
2981
|
], 8, yl))
|
|
2982
2982
|
]),
|
|
@@ -3058,14 +3058,14 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3058
3058
|
lineHeight: "0",
|
|
3059
3059
|
width: i.value
|
|
3060
3060
|
}));
|
|
3061
|
-
return (r, n) => (
|
|
3061
|
+
return (r, n) => (v(), P(Se(e.as), {
|
|
3062
3062
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3063
3063
|
class: "kui-icon chevron-down-icon",
|
|
3064
3064
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
3065
3065
|
style: Pe(a.value)
|
|
3066
3066
|
}, {
|
|
3067
|
-
default:
|
|
3068
|
-
(
|
|
3067
|
+
default: b(() => [
|
|
3068
|
+
(v(), I("svg", {
|
|
3069
3069
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3070
3070
|
"data-testid": "kui-icon-svg-chevron-down-icon",
|
|
3071
3071
|
fill: "none",
|
|
@@ -3075,7 +3075,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3075
3075
|
width: "100%",
|
|
3076
3076
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3077
3077
|
}, [
|
|
3078
|
-
e.title ? (
|
|
3078
|
+
e.title ? (v(), I("title", Cl, $(e.title), 1)) : H("", !0),
|
|
3079
3079
|
Sl
|
|
3080
3080
|
], 8, kl))
|
|
3081
3081
|
]),
|
|
@@ -3157,14 +3157,14 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3157
3157
|
lineHeight: "0",
|
|
3158
3158
|
width: i.value
|
|
3159
3159
|
}));
|
|
3160
|
-
return (r, n) => (
|
|
3160
|
+
return (r, n) => (v(), P(Se(e.as), {
|
|
3161
3161
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3162
3162
|
class: "kui-icon close-icon",
|
|
3163
3163
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
3164
3164
|
style: Pe(a.value)
|
|
3165
3165
|
}, {
|
|
3166
|
-
default:
|
|
3167
|
-
(
|
|
3166
|
+
default: b(() => [
|
|
3167
|
+
(v(), I("svg", {
|
|
3168
3168
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3169
3169
|
"data-testid": "kui-icon-svg-close-icon",
|
|
3170
3170
|
fill: "none",
|
|
@@ -3174,7 +3174,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3174
3174
|
width: "100%",
|
|
3175
3175
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3176
3176
|
}, [
|
|
3177
|
-
e.title ? (
|
|
3177
|
+
e.title ? (v(), I("title", $l, $(e.title), 1)) : H("", !0),
|
|
3178
3178
|
Nl
|
|
3179
3179
|
], 8, Tl))
|
|
3180
3180
|
]),
|
|
@@ -3256,14 +3256,14 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3256
3256
|
lineHeight: "0",
|
|
3257
3257
|
width: i.value
|
|
3258
3258
|
}));
|
|
3259
|
-
return (r, n) => (
|
|
3259
|
+
return (r, n) => (v(), P(Se(e.as), {
|
|
3260
3260
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3261
3261
|
class: "kui-icon more-icon",
|
|
3262
3262
|
"data-testid": "kui-icon-wrapper-more-icon",
|
|
3263
3263
|
style: Pe(a.value)
|
|
3264
3264
|
}, {
|
|
3265
|
-
default:
|
|
3266
|
-
(
|
|
3265
|
+
default: b(() => [
|
|
3266
|
+
(v(), I("svg", {
|
|
3267
3267
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3268
3268
|
"data-testid": "kui-icon-svg-more-icon",
|
|
3269
3269
|
fill: "none",
|
|
@@ -3273,7 +3273,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3273
3273
|
width: "100%",
|
|
3274
3274
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3275
3275
|
}, [
|
|
3276
|
-
e.title ? (
|
|
3276
|
+
e.title ? (v(), I("title", Fl, $(e.title), 1)) : H("", !0),
|
|
3277
3277
|
Vl
|
|
3278
3278
|
], 8, El))
|
|
3279
3279
|
]),
|
|
@@ -3412,7 +3412,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3412
3412
|
// the last property displayed
|
|
3413
3413
|
section: ce.Basic
|
|
3414
3414
|
}
|
|
3415
|
-
},
|
|
3415
|
+
}, h = q(!1), A = q(!1), O = q(""), C = q({}), K = x(() => {
|
|
3416
3416
|
var y, T, U;
|
|
3417
3417
|
if (!C.value)
|
|
3418
3418
|
return [];
|
|
@@ -3477,10 +3477,10 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3477
3477
|
let U = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3478
3478
|
return r.config.app === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (U = U.replace(/\/{workspace}/gi, (T = r.config) != null && T.workspace ? `/${r.config.workspace}` : "")), U = U.replace(/{id}/gi, r.config.entityId), U;
|
|
3479
3479
|
});
|
|
3480
|
-
return
|
|
3480
|
+
return ke(h, (y) => {
|
|
3481
3481
|
a("loading", y);
|
|
3482
3482
|
}, { immediate: !0 }), It(async () => {
|
|
3483
|
-
A.value = !1,
|
|
3483
|
+
A.value = !1, h.value = !0;
|
|
3484
3484
|
try {
|
|
3485
3485
|
const { data: y } = await l.get(S.value);
|
|
3486
3486
|
if (r.dataKey)
|
|
@@ -3497,22 +3497,22 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3497
3497
|
const T = o(y);
|
|
3498
3498
|
O.value = T.startsWith("code") ? n("baseConfigCard.errors.load") : T, A.value = !0, a("fetch:error", y);
|
|
3499
3499
|
} finally {
|
|
3500
|
-
|
|
3500
|
+
h.value = !1;
|
|
3501
3501
|
}
|
|
3502
3502
|
}), (y, T) => {
|
|
3503
3503
|
const U = R("KLabel"), j = R("KSelect"), z = R("KButton"), L = R("KSkeleton"), V = R("KEmptyState"), G = R("KCard");
|
|
3504
|
-
return
|
|
3504
|
+
return v(), P(G, {
|
|
3505
3505
|
class: "kong-ui-entity-base-config-card",
|
|
3506
3506
|
"title-tag": e.titleTag
|
|
3507
3507
|
}, Ke({
|
|
3508
|
-
actions:
|
|
3508
|
+
actions: b(() => [
|
|
3509
3509
|
E("div", Bl, [
|
|
3510
3510
|
ie(y.$slots, "actions", {}, void 0, !0),
|
|
3511
3511
|
k(U, {
|
|
3512
3512
|
class: "config-format-select-label",
|
|
3513
3513
|
"data-testid": "config-format-select-label"
|
|
3514
3514
|
}, {
|
|
3515
|
-
default:
|
|
3515
|
+
default: b(() => [
|
|
3516
3516
|
W($(e.label), 1)
|
|
3517
3517
|
]),
|
|
3518
3518
|
_: 1
|
|
@@ -3522,13 +3522,13 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3522
3522
|
items: u,
|
|
3523
3523
|
onChange: p
|
|
3524
3524
|
}),
|
|
3525
|
-
e.configCardDoc ? (
|
|
3525
|
+
e.configCardDoc ? (v(), P(z, {
|
|
3526
3526
|
key: 0,
|
|
3527
3527
|
appearance: "tertiary",
|
|
3528
3528
|
class: "book-icon",
|
|
3529
3529
|
"data-testid": "book-icon"
|
|
3530
3530
|
}, {
|
|
3531
|
-
default:
|
|
3531
|
+
default: b(() => [
|
|
3532
3532
|
E("a", {
|
|
3533
3533
|
href: e.configCardDoc,
|
|
3534
3534
|
rel: "noopener",
|
|
@@ -3541,18 +3541,18 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3541
3541
|
})) : H("", !0)
|
|
3542
3542
|
])
|
|
3543
3543
|
]),
|
|
3544
|
-
default:
|
|
3545
|
-
|
|
3544
|
+
default: b(() => [
|
|
3545
|
+
h.value ? (v(), P(L, {
|
|
3546
3546
|
key: 0,
|
|
3547
3547
|
"data-testid": "config-card-loader",
|
|
3548
3548
|
"table-columns": 2,
|
|
3549
3549
|
type: "table"
|
|
3550
|
-
})) : A.value ? (
|
|
3550
|
+
})) : A.value ? (v(), P(V, {
|
|
3551
3551
|
key: 1,
|
|
3552
3552
|
"data-testid": "config-card-fetch-error",
|
|
3553
3553
|
"icon-variant": "error"
|
|
3554
3554
|
}, {
|
|
3555
|
-
default:
|
|
3555
|
+
default: b(() => [
|
|
3556
3556
|
E("h3", null, $(O.value), 1)
|
|
3557
3557
|
]),
|
|
3558
3558
|
_: 1
|
|
@@ -3568,7 +3568,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3568
3568
|
}, Ke({ _: 2 }, [
|
|
3569
3569
|
ye(Object.keys(y.$slots), (Q) => ({
|
|
3570
3570
|
name: Q,
|
|
3571
|
-
fn:
|
|
3571
|
+
fn: b(({ row: pe, rowValue: fe }) => [
|
|
3572
3572
|
ie(y.$slots, Q, {
|
|
3573
3573
|
row: pe,
|
|
3574
3574
|
rowValue: fe
|
|
@@ -3582,7 +3582,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3582
3582
|
}, [
|
|
3583
3583
|
e.hideTitle ? void 0 : {
|
|
3584
3584
|
name: "title",
|
|
3585
|
-
fn:
|
|
3585
|
+
fn: b(() => [
|
|
3586
3586
|
E("span", Ul, [
|
|
3587
3587
|
ie(y.$slots, "title", {}, () => [
|
|
3588
3588
|
W($(f(n)("baseConfigCard.title")), 1)
|
|
@@ -3659,12 +3659,12 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3659
3659
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3660
3660
|
setup(e, { emit: t }) {
|
|
3661
3661
|
var i;
|
|
3662
|
-
const a = t, r = e, n = $t(), { i18n: { t: o } } = ne.useI18n(), { getMessageFromError: c } = ne.useErrors(), { axiosInstance: l } = ne.useAxios((i = r.config) == null ? void 0 : i.axiosRequestConfig), u = q(!1), m = q(!1), p = q(""), _ = x(() => r.canSubmit === !1 || r.isReadonly),
|
|
3662
|
+
const a = t, r = e, n = $t(), { i18n: { t: o } } = ne.useI18n(), { getMessageFromError: c } = ne.useErrors(), { axiosInstance: l } = ne.useAxios((i = r.config) == null ? void 0 : i.axiosRequestConfig), u = q(!1), m = q(!1), p = q(""), _ = x(() => r.canSubmit === !1 || r.isReadonly), h = q(!1), A = x(() => {
|
|
3663
3663
|
var s, S;
|
|
3664
3664
|
let y = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3665
3665
|
return r.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((s = r.config) == null ? void 0 : s.controlPlaneId) || "") : r.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (S = r.config) != null && S.workspace ? `/${r.config.workspace}` : "")), r.editId ? (y = y.replace(/{id}/gi, r.editId), y) : (y = y.replace(/\/{id}/gi, ""), y);
|
|
3666
3666
|
}), O = () => {
|
|
3667
|
-
|
|
3667
|
+
h.value = !h.value;
|
|
3668
3668
|
}, C = () => {
|
|
3669
3669
|
r.config.cancelRoute ? n.push(r.config.cancelRoute) : K();
|
|
3670
3670
|
}, K = () => {
|
|
@@ -3681,7 +3681,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3681
3681
|
hash: "#json"
|
|
3682
3682
|
}
|
|
3683
3683
|
]);
|
|
3684
|
-
return
|
|
3684
|
+
return ke(() => u.value, (s) => {
|
|
3685
3685
|
a("loading", s);
|
|
3686
3686
|
}, { immediate: !0 }), It(async () => {
|
|
3687
3687
|
if (r.editId)
|
|
@@ -3697,23 +3697,23 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3697
3697
|
}
|
|
3698
3698
|
}), (s, S) => {
|
|
3699
3699
|
const y = R("KSkeleton"), T = R("KEmptyState"), U = R("KAlert"), j = R("KButton"), z = R("KTabs"), L = R("KSlideout"), V = R("KCard");
|
|
3700
|
-
return
|
|
3701
|
-
default:
|
|
3702
|
-
u.value ? (
|
|
3700
|
+
return v(), P(V, { class: "kong-ui-entity-base-form" }, {
|
|
3701
|
+
default: b(() => [
|
|
3702
|
+
u.value ? (v(), P(y, {
|
|
3703
3703
|
key: 0,
|
|
3704
3704
|
type: "form"
|
|
3705
|
-
})) : m.value ? (
|
|
3705
|
+
})) : m.value ? (v(), P(T, {
|
|
3706
3706
|
key: 1,
|
|
3707
3707
|
"action-button-text": f(o)("baseForm.actions.back"),
|
|
3708
3708
|
"data-testid": "form-fetch-error",
|
|
3709
3709
|
"icon-variant": "error",
|
|
3710
3710
|
onClickAction: C
|
|
3711
3711
|
}, {
|
|
3712
|
-
default:
|
|
3712
|
+
default: b(() => [
|
|
3713
3713
|
E("h3", null, $(p.value), 1)
|
|
3714
3714
|
]),
|
|
3715
3715
|
_: 1
|
|
3716
|
-
}, 8, ["action-button-text"])) : (
|
|
3716
|
+
}, 8, ["action-button-text"])) : (v(), I("form", {
|
|
3717
3717
|
key: 2,
|
|
3718
3718
|
"data-testid": "form-content",
|
|
3719
3719
|
novalidate: r.noValidate,
|
|
@@ -3721,7 +3721,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3721
3721
|
onSubmit: Le(N, ["prevent"])
|
|
3722
3722
|
}, [
|
|
3723
3723
|
ie(s.$slots, "default", {}, void 0, !0),
|
|
3724
|
-
e.errorMessage ? (
|
|
3724
|
+
e.errorMessage ? (v(), P(U, {
|
|
3725
3725
|
key: 0,
|
|
3726
3726
|
appearance: "danger",
|
|
3727
3727
|
"data-testid": "form-error",
|
|
@@ -3734,7 +3734,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3734
3734
|
"data-testid": "form-view-configuration",
|
|
3735
3735
|
onClick: S[0] || (S[0] = (G) => O())
|
|
3736
3736
|
}, {
|
|
3737
|
-
default:
|
|
3737
|
+
default: b(() => [
|
|
3738
3738
|
W($(f(o)("baseForm.actions.viewConfiguration")), 1)
|
|
3739
3739
|
]),
|
|
3740
3740
|
_: 1
|
|
@@ -3745,7 +3745,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3745
3745
|
disabled: e.isReadonly,
|
|
3746
3746
|
type: "reset"
|
|
3747
3747
|
}, {
|
|
3748
|
-
default:
|
|
3748
|
+
default: b(() => [
|
|
3749
3749
|
W($(f(o)("baseForm.actions.cancel")), 1)
|
|
3750
3750
|
]),
|
|
3751
3751
|
_: 1
|
|
@@ -3756,7 +3756,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3756
3756
|
disabled: _.value,
|
|
3757
3757
|
type: "submit"
|
|
3758
3758
|
}, {
|
|
3759
|
-
default:
|
|
3759
|
+
default: b(() => [
|
|
3760
3760
|
W($(f(o)("baseForm.actions.save")), 1)
|
|
3761
3761
|
]),
|
|
3762
3762
|
_: 1
|
|
@@ -3770,25 +3770,25 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3770
3770
|
"has-overlay": !1,
|
|
3771
3771
|
"offset-top": 60,
|
|
3772
3772
|
title: f(o)("baseForm.configuration.title"),
|
|
3773
|
-
visible:
|
|
3773
|
+
visible: h.value,
|
|
3774
3774
|
onClose: S[1] || (S[1] = (G) => O())
|
|
3775
3775
|
}, {
|
|
3776
|
-
default:
|
|
3776
|
+
default: b(() => [
|
|
3777
3777
|
E("div", null, $(f(o)("baseForm.configuration.message")), 1),
|
|
3778
3778
|
k(z, {
|
|
3779
3779
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3780
3780
|
tabs: Y.value
|
|
3781
3781
|
}, {
|
|
3782
|
-
json:
|
|
3783
|
-
k(
|
|
3782
|
+
json: b(() => [
|
|
3783
|
+
k(ki, {
|
|
3784
3784
|
config: e.config,
|
|
3785
3785
|
"fetcher-url": A.value,
|
|
3786
3786
|
"json-record": r.formFields,
|
|
3787
3787
|
"request-method": r.editId ? "put" : "post"
|
|
3788
3788
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
3789
3789
|
]),
|
|
3790
|
-
yaml:
|
|
3791
|
-
k(
|
|
3790
|
+
yaml: b(() => [
|
|
3791
|
+
k(ur, {
|
|
3792
3792
|
"yaml-record": r.formFields
|
|
3793
3793
|
}, null, 8, ["yaml-record"])
|
|
3794
3794
|
]),
|
|
@@ -3841,8 +3841,8 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3841
3841
|
Y -= (parseFloat(s.paddingLeft) || 0) + (parseFloat(s.paddingRight) || 0);
|
|
3842
3842
|
}
|
|
3843
3843
|
m.value = ((K = a.value) == null ? void 0 : K.getBoundingClientRect().width) || 0, p.value = Y, _.value = ((N = u.value) == null ? void 0 : N.innerText) || "";
|
|
3844
|
-
}, u = q({}), m = q(0), p = q(0), _ = q(""),
|
|
3845
|
-
|
|
3844
|
+
}, u = q({}), m = q(0), p = q(0), _ = q(""), h = x(() => [a.value, i.value]), A = ke(
|
|
3845
|
+
h,
|
|
3846
3846
|
(C) => {
|
|
3847
3847
|
if (n.value && (c(), "ResizeObserver" in window && window)) {
|
|
3848
3848
|
o = new ResizeObserver((K) => {
|
|
@@ -3856,18 +3856,18 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3856
3856
|
},
|
|
3857
3857
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3858
3858
|
), O = x(() => n.value ? m.value > p.value : !1);
|
|
3859
|
-
return
|
|
3859
|
+
return pi(() => {
|
|
3860
3860
|
l();
|
|
3861
3861
|
}), mr(() => {
|
|
3862
3862
|
A();
|
|
3863
3863
|
}), (C, K) => {
|
|
3864
3864
|
const N = R("KTooltip");
|
|
3865
|
-
return
|
|
3865
|
+
return v(), I("span", {
|
|
3866
3866
|
ref_key: "contentRef",
|
|
3867
3867
|
ref: u,
|
|
3868
3868
|
class: "content-wrapper"
|
|
3869
3869
|
}, [
|
|
3870
|
-
n.value ? (
|
|
3870
|
+
n.value ? (v(), I("span", {
|
|
3871
3871
|
key: 0,
|
|
3872
3872
|
"data-truncate": n.value || void 0
|
|
3873
3873
|
}, [
|
|
@@ -3876,7 +3876,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
3876
3876
|
placement: "bottomStart",
|
|
3877
3877
|
text: O.value ? _.value : ""
|
|
3878
3878
|
}, {
|
|
3879
|
-
default:
|
|
3879
|
+
default: b(() => [
|
|
3880
3880
|
ie(C.$slots, "default", {}, void 0, !0)
|
|
3881
3881
|
]),
|
|
3882
3882
|
_: 3
|
|
@@ -4048,7 +4048,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4048
4048
|
overflowX: "hidden",
|
|
4049
4049
|
textOverflow: "ellipsis"
|
|
4050
4050
|
}), T;
|
|
4051
|
-
},
|
|
4051
|
+
}, h = () => {
|
|
4052
4052
|
a("empty-state-cta-clicked"), A();
|
|
4053
4053
|
}, A = () => {
|
|
4054
4054
|
a("clear-search-input");
|
|
@@ -4067,12 +4067,12 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4067
4067
|
};
|
|
4068
4068
|
return (y, T) => {
|
|
4069
4069
|
const U = R("KButton"), j = R("KDropdown"), z = R("KTable"), L = R("KCard");
|
|
4070
|
-
return
|
|
4070
|
+
return v(), P(L, {
|
|
4071
4071
|
class: "kong-ui-entity-base-table",
|
|
4072
4072
|
title: e.title,
|
|
4073
4073
|
"title-tag": e.titleTag
|
|
4074
4074
|
}, {
|
|
4075
|
-
default:
|
|
4075
|
+
default: b(() => [
|
|
4076
4076
|
k(z, {
|
|
4077
4077
|
ref_key: "tableRefs",
|
|
4078
4078
|
ref: m,
|
|
@@ -4101,22 +4101,22 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4101
4101
|
"sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
|
|
4102
4102
|
sortable: !e.disableSorting,
|
|
4103
4103
|
"table-preferences": Y.value,
|
|
4104
|
-
onEmptyStateActionClick:
|
|
4104
|
+
onEmptyStateActionClick: h,
|
|
4105
4105
|
"onRow:click": O.value,
|
|
4106
4106
|
onSort: T[0] || (T[0] = (V) => C(V)),
|
|
4107
4107
|
"onUpdate:tablePreferences": S
|
|
4108
4108
|
}, Ke({
|
|
4109
|
-
toolbar:
|
|
4109
|
+
toolbar: b(({ state: V }) => [
|
|
4110
4110
|
xe(E("div", Ql, [
|
|
4111
4111
|
ie(y.$slots, "toolbar-filter", {}, void 0, !0),
|
|
4112
|
-
y.$slots["toolbar-button"] ? (
|
|
4112
|
+
y.$slots["toolbar-button"] ? (v(), I("div", Xl, [
|
|
4113
4113
|
ie(y.$slots, "toolbar-button", {}, void 0, !0)
|
|
4114
4114
|
])) : H("", !0)
|
|
4115
4115
|
], 512), [
|
|
4116
4116
|
[Ae, c(V)]
|
|
4117
4117
|
])
|
|
4118
4118
|
]),
|
|
4119
|
-
actions:
|
|
4119
|
+
actions: b(({ row: V, rowKey: G, rowValue: Q }) => [
|
|
4120
4120
|
E("div", {
|
|
4121
4121
|
class: "actions-container",
|
|
4122
4122
|
"data-testid": V.name
|
|
@@ -4125,14 +4125,14 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4125
4125
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
4126
4126
|
width: e.dropdownMenuWidth
|
|
4127
4127
|
}, {
|
|
4128
|
-
items:
|
|
4128
|
+
items: b(() => [
|
|
4129
4129
|
ie(y.$slots, "actions", {
|
|
4130
4130
|
row: V,
|
|
4131
4131
|
rowKey: G,
|
|
4132
4132
|
rowValue: Q
|
|
4133
4133
|
}, void 0, !0)
|
|
4134
4134
|
]),
|
|
4135
|
-
default:
|
|
4135
|
+
default: b(() => [
|
|
4136
4136
|
k(U, {
|
|
4137
4137
|
appearance: "tertiary",
|
|
4138
4138
|
class: "actions-trigger",
|
|
@@ -4140,7 +4140,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4140
4140
|
icon: "",
|
|
4141
4141
|
size: "small"
|
|
4142
4142
|
}, {
|
|
4143
|
-
default:
|
|
4143
|
+
default: b(() => [
|
|
4144
4144
|
k(f(Ll))
|
|
4145
4145
|
]),
|
|
4146
4146
|
_: 1
|
|
@@ -4154,13 +4154,13 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4154
4154
|
}, [
|
|
4155
4155
|
ye(e.tableHeaders, (V, G) => ({
|
|
4156
4156
|
name: G,
|
|
4157
|
-
fn:
|
|
4157
|
+
fn: b(({ row: Q, rowKey: pe, rowValue: fe }) => [
|
|
4158
4158
|
k(Yl, {
|
|
4159
4159
|
"key-name": String(G),
|
|
4160
4160
|
"row-el": p(Q),
|
|
4161
4161
|
tooltip: V.tooltip
|
|
4162
4162
|
}, {
|
|
4163
|
-
default:
|
|
4163
|
+
default: b(() => [
|
|
4164
4164
|
ie(y.$slots, G, {
|
|
4165
4165
|
row: Q,
|
|
4166
4166
|
rowKey: pe,
|
|
@@ -4175,7 +4175,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4175
4175
|
})),
|
|
4176
4176
|
e.query ? void 0 : {
|
|
4177
4177
|
name: "empty-state-action-icon",
|
|
4178
|
-
fn:
|
|
4178
|
+
fn: b(() => [
|
|
4179
4179
|
k(f(gl))
|
|
4180
4180
|
]),
|
|
4181
4181
|
key: "0"
|
|
@@ -4238,7 +4238,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4238
4238
|
};
|
|
4239
4239
|
return (l, u) => {
|
|
4240
4240
|
const m = R("KAlert"), p = R("KPrompt");
|
|
4241
|
-
return
|
|
4241
|
+
return v(), P(p, {
|
|
4242
4242
|
"action-button-appearance": "danger",
|
|
4243
4243
|
"action-button-disabled": e.actionPending,
|
|
4244
4244
|
"action-button-text": "Yes, delete",
|
|
@@ -4249,10 +4249,10 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4249
4249
|
onCancel: o,
|
|
4250
4250
|
onProceed: c
|
|
4251
4251
|
}, {
|
|
4252
|
-
default:
|
|
4253
|
-
e.error ? (
|
|
4252
|
+
default: b(() => [
|
|
4253
|
+
e.error ? (v(), I("div", rs, [
|
|
4254
4254
|
k(m, { appearance: "danger" }, {
|
|
4255
|
-
default:
|
|
4255
|
+
default: b(() => [
|
|
4256
4256
|
W($(e.error), 1)
|
|
4257
4257
|
]),
|
|
4258
4258
|
_: 1
|
|
@@ -4263,20 +4263,20 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4263
4263
|
keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
4264
4264
|
tag: "p"
|
|
4265
4265
|
}, Ke({
|
|
4266
|
-
entityType:
|
|
4266
|
+
entityType: b(() => [
|
|
4267
4267
|
W($(a.entityType), 1)
|
|
4268
4268
|
]),
|
|
4269
4269
|
_: 2
|
|
4270
4270
|
}, [
|
|
4271
4271
|
a.entityName ? {
|
|
4272
4272
|
name: "entityName",
|
|
4273
|
-
fn:
|
|
4273
|
+
fn: b(() => [
|
|
4274
4274
|
E("strong", null, $(a.entityName), 1)
|
|
4275
4275
|
]),
|
|
4276
4276
|
key: "0"
|
|
4277
4277
|
} : void 0
|
|
4278
4278
|
]), 1032, ["keypath"]),
|
|
4279
|
-
a.description || l.$slots.description ? (
|
|
4279
|
+
a.description || l.$slots.description ? (v(), I("div", as, [
|
|
4280
4280
|
ie(l.$slots, "description", {}, () => [
|
|
4281
4281
|
E("p", null, $(a.description), 1)
|
|
4282
4282
|
], !0)
|
|
@@ -4309,7 +4309,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4309
4309
|
}
|
|
4310
4310
|
},
|
|
4311
4311
|
setup(e) {
|
|
4312
|
-
return (t, i) => (
|
|
4312
|
+
return (t, i) => (v(), I("svg", ls, [
|
|
4313
4313
|
E("mask", ss, [
|
|
4314
4314
|
E("rect", {
|
|
4315
4315
|
fill: e.color,
|
|
@@ -4364,7 +4364,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4364
4364
|
expanded: !1
|
|
4365
4365
|
}));
|
|
4366
4366
|
});
|
|
4367
|
-
|
|
4367
|
+
ke(() => a.modelValue, (s) => {
|
|
4368
4368
|
o.value = {}, new URLSearchParams(s).forEach((S, y) => {
|
|
4369
4369
|
o.value[y] = S;
|
|
4370
4370
|
});
|
|
@@ -4375,7 +4375,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4375
4375
|
c.value.has(s) ? c.value.delete(s) : c.value.add(s);
|
|
4376
4376
|
}, _ = (s) => {
|
|
4377
4377
|
r("update:modelValue", s);
|
|
4378
|
-
},
|
|
4378
|
+
}, h = () => {
|
|
4379
4379
|
_("");
|
|
4380
4380
|
}, A = (s) => `filter-${s}`, O = (s) => {
|
|
4381
4381
|
var S, y;
|
|
@@ -4399,7 +4399,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4399
4399
|
};
|
|
4400
4400
|
return (s, S) => {
|
|
4401
4401
|
const y = R("KInput"), T = R("KButton"), U = R("KSelect");
|
|
4402
|
-
return e.config.isExactMatch ? (
|
|
4402
|
+
return e.config.isExactMatch ? (v(), P(y, {
|
|
4403
4403
|
key: 0,
|
|
4404
4404
|
autocomplete: "off",
|
|
4405
4405
|
class: "kong-ui-entity-filter-input",
|
|
@@ -4408,25 +4408,25 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4408
4408
|
placeholder: e.config.placeholder,
|
|
4409
4409
|
"onUpdate:modelValue": _
|
|
4410
4410
|
}, {
|
|
4411
|
-
before:
|
|
4411
|
+
before: b(() => [
|
|
4412
4412
|
k(li)
|
|
4413
4413
|
]),
|
|
4414
|
-
after:
|
|
4414
|
+
after: b(() => [
|
|
4415
4415
|
xe(k(f(Ol), {
|
|
4416
4416
|
class: "kong-ui-entity-filter-clear",
|
|
4417
|
-
onClick:
|
|
4417
|
+
onClick: h
|
|
4418
4418
|
}, null, 512), [
|
|
4419
4419
|
[Ae, e.modelValue !== ""]
|
|
4420
4420
|
])
|
|
4421
4421
|
]),
|
|
4422
4422
|
_: 1
|
|
4423
|
-
}, 8, ["model-value", "placeholder"])) : (
|
|
4423
|
+
}, 8, ["model-value", "placeholder"])) : (v(), I("div", ps, [
|
|
4424
4424
|
k(T, {
|
|
4425
4425
|
appearance: "tertiary",
|
|
4426
4426
|
"data-testid": "filter-button",
|
|
4427
4427
|
onClick: m
|
|
4428
4428
|
}, {
|
|
4429
|
-
default:
|
|
4429
|
+
default: b(() => [
|
|
4430
4430
|
k(li),
|
|
4431
4431
|
W(" " + $(f(i)("filter.filterButtonText")) + " " + $(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
|
|
4432
4432
|
]),
|
|
@@ -4439,9 +4439,9 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4439
4439
|
[Ae, n.value]
|
|
4440
4440
|
]),
|
|
4441
4441
|
xe(E("div", fs, [
|
|
4442
|
-
(
|
|
4442
|
+
(v(!0), I(he, null, ye(u.value, (j) => {
|
|
4443
4443
|
var z, L;
|
|
4444
|
-
return
|
|
4444
|
+
return v(), I("div", {
|
|
4445
4445
|
key: j.value,
|
|
4446
4446
|
class: "kong-ui-entity-filter-menu-item",
|
|
4447
4447
|
"data-testid": j.value
|
|
@@ -4467,14 +4467,14 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4467
4467
|
class: "menu-item-label",
|
|
4468
4468
|
for: A(j.value)
|
|
4469
4469
|
}, $(f(i)("filter.fieldLabel")), 9, hs),
|
|
4470
|
-
((L = (z = e.config.schema) == null ? void 0 : z[j.value]) == null ? void 0 : L.type) === "select" ? (
|
|
4470
|
+
((L = (z = e.config.schema) == null ? void 0 : z[j.value]) == null ? void 0 : L.type) === "select" ? (v(), P(U, {
|
|
4471
4471
|
key: 0,
|
|
4472
4472
|
id: A(j.value),
|
|
4473
4473
|
modelValue: o.value[j.value],
|
|
4474
4474
|
"onUpdate:modelValue": (V) => o.value[j.value] = V,
|
|
4475
4475
|
items: O(j.value),
|
|
4476
4476
|
placeholder: f(i)("filter.selectPlaceholder")
|
|
4477
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (
|
|
4477
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (v(), P(y, {
|
|
4478
4478
|
key: 1,
|
|
4479
4479
|
id: A(j.value),
|
|
4480
4480
|
modelValue: o.value[j.value],
|
|
@@ -4493,7 +4493,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4493
4493
|
size: "small",
|
|
4494
4494
|
onClick: S[0] || (S[0] = (V) => Y(!0))
|
|
4495
4495
|
}, {
|
|
4496
|
-
default:
|
|
4496
|
+
default: b(() => [
|
|
4497
4497
|
W($(f(i)("filter.applyButtonText")), 1)
|
|
4498
4498
|
]),
|
|
4499
4499
|
_: 1
|
|
@@ -4504,7 +4504,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4504
4504
|
size: "small",
|
|
4505
4505
|
onClick: (V) => K(j.value)
|
|
4506
4506
|
}, {
|
|
4507
|
-
default:
|
|
4507
|
+
default: b(() => [
|
|
4508
4508
|
W($(f(i)("filter.clearButtonText")), 1)
|
|
4509
4509
|
]),
|
|
4510
4510
|
_: 2
|
|
@@ -4520,7 +4520,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4520
4520
|
size: "small",
|
|
4521
4521
|
onClick: N
|
|
4522
4522
|
}, {
|
|
4523
|
-
default:
|
|
4523
|
+
default: b(() => [
|
|
4524
4524
|
W($(f(i)("filter.clearAllButtonText")), 1)
|
|
4525
4525
|
]),
|
|
4526
4526
|
_: 1
|
|
@@ -4581,9 +4581,9 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4581
4581
|
}
|
|
4582
4582
|
};
|
|
4583
4583
|
return (p, _) => {
|
|
4584
|
-
const
|
|
4585
|
-
return
|
|
4586
|
-
k(
|
|
4584
|
+
const h = R("KPrompt");
|
|
4585
|
+
return v(), P(ui, { to: "body" }, [
|
|
4586
|
+
k(h, {
|
|
4587
4587
|
"action-button-disabled": o.value,
|
|
4588
4588
|
"action-button-text": l.value,
|
|
4589
4589
|
"data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
|
|
@@ -4592,15 +4592,15 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4592
4592
|
onCancel: u,
|
|
4593
4593
|
onProceed: m
|
|
4594
4594
|
}, {
|
|
4595
|
-
default:
|
|
4595
|
+
default: b(() => [
|
|
4596
4596
|
k(f(a), {
|
|
4597
4597
|
keypath: `toggleModal.${r.action}.message`,
|
|
4598
4598
|
scope: "global"
|
|
4599
4599
|
}, {
|
|
4600
|
-
entityType:
|
|
4600
|
+
entityType: b(() => [
|
|
4601
4601
|
W($(e.entityType), 1)
|
|
4602
4602
|
]),
|
|
4603
|
-
entityName:
|
|
4603
|
+
entityName: b(() => [
|
|
4604
4604
|
E("strong", null, $(e.entityName), 1)
|
|
4605
4605
|
]),
|
|
4606
4606
|
_: 1
|
|
@@ -4634,7 +4634,7 @@ const rl = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
|
4634
4634
|
},
|
|
4635
4635
|
setup(e) {
|
|
4636
4636
|
const t = e, i = q(void 0), a = x(() => i.value === !0 || i.value !== void 0 && t.forceShow === !0);
|
|
4637
|
-
return
|
|
4637
|
+
return ke(() => t.authFunction, async () => {
|
|
4638
4638
|
i.value = await t.authFunction();
|
|
4639
4639
|
}, { immediate: !0 }), (r, n) => a.value ? ie(r.$slots, "default", {
|
|
4640
4640
|
key: 0,
|
|
@@ -4707,32 +4707,32 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4707
4707
|
},
|
|
4708
4708
|
setup(e) {
|
|
4709
4709
|
const t = Tt(), i = Ts();
|
|
4710
|
-
return (a, r) => (
|
|
4710
|
+
return (a, r) => (v(), I("div", {
|
|
4711
4711
|
"aria-labelledby": e.title ? f(i) : void 0,
|
|
4712
4712
|
class: Te(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4713
4713
|
role: "group"
|
|
4714
4714
|
}, [
|
|
4715
4715
|
E("div", Ns, [
|
|
4716
|
-
e.hideInfoHeader ? H("", !0) : (
|
|
4716
|
+
e.hideInfoHeader ? H("", !0) : (v(), I("div", {
|
|
4717
4717
|
key: 0,
|
|
4718
4718
|
class: Te(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4719
4719
|
}, [
|
|
4720
|
-
e.title ? (
|
|
4720
|
+
e.title ? (v(), P(Se(e.titleTag), {
|
|
4721
4721
|
key: 0,
|
|
4722
4722
|
id: f(i),
|
|
4723
4723
|
class: "form-section-title"
|
|
4724
4724
|
}, {
|
|
4725
|
-
default:
|
|
4725
|
+
default: b(() => [
|
|
4726
4726
|
W($(e.title), 1)
|
|
4727
4727
|
]),
|
|
4728
4728
|
_: 1
|
|
4729
4729
|
}, 8, ["id"])) : H("", !0),
|
|
4730
|
-
e.description || f(t).description ? (
|
|
4730
|
+
e.description || f(t).description ? (v(), I("div", js, [
|
|
4731
4731
|
ie(a.$slots, "description", {}, () => [
|
|
4732
4732
|
E("p", null, $(e.description), 1)
|
|
4733
4733
|
], !0)
|
|
4734
4734
|
])) : H("", !0),
|
|
4735
|
-
f(t).footer ? (
|
|
4735
|
+
f(t).footer ? (v(), I("div", Os, [
|
|
4736
4736
|
ie(a.$slots, "footer", {}, void 0, !0)
|
|
4737
4737
|
])) : H("", !0)
|
|
4738
4738
|
], 2)),
|
|
@@ -4742,7 +4742,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4742
4742
|
])
|
|
4743
4743
|
], 10, $s));
|
|
4744
4744
|
}
|
|
4745
|
-
}), ci = /* @__PURE__ */ ve(Es, [["__scopeId", "data-v-b1f74200"]]), { useAxios:
|
|
4745
|
+
}), ci = /* @__PURE__ */ ve(Es, [["__scopeId", "data-v-b1f74200"]]), { useAxios: dr, useDeleteUrlBuilder: Fs, useErrors: Vs, useExternalLinkCreator: mc, useFetchUrlBuilder: yc, useFetcher: qs, useDebouncedFilter: vc, useStringHelpers: hc, useHelpers: Ls, useGatewayFeatureSupported: Us, useTruncationDetector: bc, useValidators: Bs } = ne, Ks = { class: "kong-ui-entities-gateway-services-list" }, Rs = { key: 1 }, Ps = { key: 1 }, Ds = /* @__PURE__ */ ee({
|
|
4746
4746
|
__name: "GatewayServiceList",
|
|
4747
4747
|
props: {
|
|
4748
4748
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4794,7 +4794,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4794
4794
|
emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
|
|
4795
4795
|
setup(e, { emit: t }) {
|
|
4796
4796
|
var d;
|
|
4797
|
-
const i = t, a = e, { i18n: { t: r } } = st.useI18n(), n = $t(), { axiosInstance: o } =
|
|
4797
|
+
const i = t, a = e, { i18n: { t: r } } = st.useI18n(), n = $t(), { axiosInstance: o } = dr((d = a.config) == null ? void 0 : d.axiosRequestConfig), c = q(1), l = x(() => a.config.app !== "kongManager" || !!a.config.disableSorting), u = {
|
|
4798
4798
|
name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
4799
4799
|
...a.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
|
|
4800
4800
|
protocol: { label: r("gateway_services.list.table_headers.protocol"), searchable: !0, sortable: !0 },
|
|
@@ -4807,21 +4807,21 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4807
4807
|
var M, D;
|
|
4808
4808
|
let g = `${a.config.apiBaseUrl}${Qe.list[a.config.app].all}`;
|
|
4809
4809
|
return a.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((M = a.config) == null ? void 0 : M.controlPlaneId) || "") : a.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (D = a.config) != null && D.workspace ? `/${a.config.workspace}` : "")), g;
|
|
4810
|
-
}), _ = x(() => a.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)),
|
|
4810
|
+
}), _ = x(() => a.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), h = q(""), A = x(() => {
|
|
4811
4811
|
const g = a.config.app === "konnect" || a.config.isExactMatch;
|
|
4812
4812
|
if (g)
|
|
4813
4813
|
return {
|
|
4814
4814
|
isExactMatch: g,
|
|
4815
4815
|
placeholder: r(`search.placeholder.${a.config.app}`)
|
|
4816
4816
|
};
|
|
4817
|
-
const { name: M, enabled: D, protocol: J, host: X, port: w, path:
|
|
4817
|
+
const { name: M, enabled: D, protocol: J, host: X, port: w, path: _e } = u;
|
|
4818
4818
|
return {
|
|
4819
4819
|
isExactMatch: g,
|
|
4820
|
-
fields: { name: M, enabled: D, protocol: J, host: X, port: w, path:
|
|
4820
|
+
fields: { name: M, enabled: D, protocol: J, host: X, port: w, path: _e },
|
|
4821
4821
|
schema: a.config.filterSchema
|
|
4822
4822
|
};
|
|
4823
4823
|
}), { fetcher: O, fetcherState: C } = qs(a.config, p.value), K = () => {
|
|
4824
|
-
|
|
4824
|
+
h.value = "";
|
|
4825
4825
|
}, N = () => {
|
|
4826
4826
|
c.value++;
|
|
4827
4827
|
}, Y = q(null), s = x(() => ({
|
|
@@ -4912,7 +4912,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4912
4912
|
}
|
|
4913
4913
|
}
|
|
4914
4914
|
}, Ee = q(!0);
|
|
4915
|
-
|
|
4915
|
+
ke(C, (g) => {
|
|
4916
4916
|
var M, D, J, X;
|
|
4917
4917
|
if (Array.isArray((M = g == null ? void 0 : g.response) == null ? void 0 : M.data) && (Ee.value = g.response.data.length > 0), g.status === Oe.Error) {
|
|
4918
4918
|
Y.value = {
|
|
@@ -4926,8 +4926,8 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4926
4926
|
return It(async () => {
|
|
4927
4927
|
Fe.value = await a.canCreate();
|
|
4928
4928
|
}), (g, M) => {
|
|
4929
|
-
const D = R("KButton"), J = R("KBadge"), X = R("KInputSwitch"), w = R("KTruncate"),
|
|
4930
|
-
return
|
|
4929
|
+
const D = R("KButton"), J = R("KBadge"), X = R("KInputSwitch"), w = R("KTruncate"), _e = R("KDropdownItem"), B = R("KClipboardProvider");
|
|
4930
|
+
return v(), I("div", Ks, [
|
|
4931
4931
|
k(f(is), {
|
|
4932
4932
|
"cache-identifier": e.cacheIdentifier,
|
|
4933
4933
|
"disable-pagination-page-jump": "",
|
|
@@ -4939,75 +4939,73 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4939
4939
|
"fetcher-cache-key": c.value,
|
|
4940
4940
|
"pagination-type": "offset",
|
|
4941
4941
|
"preferences-storage-key": "kong-ui-entities-gateway-services-list",
|
|
4942
|
-
query:
|
|
4942
|
+
query: h.value,
|
|
4943
4943
|
"table-headers": f(m),
|
|
4944
4944
|
"use-action-outside": e.useActionOutside,
|
|
4945
4945
|
onClearSearchInput: K,
|
|
4946
4946
|
"onClick:row": M[3] || (M[3] = (Z) => Q(Z)),
|
|
4947
4947
|
onSort: N
|
|
4948
4948
|
}, {
|
|
4949
|
-
"toolbar-filter":
|
|
4949
|
+
"toolbar-filter": b(() => [
|
|
4950
4950
|
k(f(ks), {
|
|
4951
|
-
modelValue:
|
|
4952
|
-
"onUpdate:modelValue": M[0] || (M[0] = (Z) =>
|
|
4951
|
+
modelValue: h.value,
|
|
4952
|
+
"onUpdate:modelValue": M[0] || (M[0] = (Z) => h.value = Z),
|
|
4953
4953
|
config: A.value
|
|
4954
4954
|
}, null, 8, ["modelValue", "config"])
|
|
4955
4955
|
]),
|
|
4956
|
-
"toolbar-button":
|
|
4957
|
-
(
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
_: 1
|
|
4984
|
-
}, 8, ["to"]))
|
|
4956
|
+
"toolbar-button": b(() => [
|
|
4957
|
+
(v(), P(ui, {
|
|
4958
|
+
disabled: !e.useActionOutside,
|
|
4959
|
+
to: "#kong-ui-app-page-header-action-button"
|
|
4960
|
+
}, [
|
|
4961
|
+
k(f(Ze), {
|
|
4962
|
+
"auth-function": () => e.canCreate()
|
|
4963
|
+
}, {
|
|
4964
|
+
default: b(() => [
|
|
4965
|
+
xe(k(D, {
|
|
4966
|
+
appearance: "primary",
|
|
4967
|
+
"data-testid": "toolbar-add-gateway-service",
|
|
4968
|
+
size: "large",
|
|
4969
|
+
to: e.config.createRoute
|
|
4970
|
+
}, {
|
|
4971
|
+
default: b(() => [
|
|
4972
|
+
k(f(Ar)),
|
|
4973
|
+
W(" " + $(f(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
4974
|
+
]),
|
|
4975
|
+
_: 1
|
|
4976
|
+
}, 8, ["to"]), [
|
|
4977
|
+
[Ae, Ee.value]
|
|
4978
|
+
])
|
|
4979
|
+
]),
|
|
4980
|
+
_: 1
|
|
4981
|
+
}, 8, ["auth-function"])
|
|
4982
|
+
], 8, ["disabled"]))
|
|
4985
4983
|
]),
|
|
4986
|
-
name:
|
|
4984
|
+
name: b(({ rowValue: Z }) => [
|
|
4987
4985
|
E("b", null, $(Z ?? "-"), 1)
|
|
4988
4986
|
]),
|
|
4989
|
-
control_plane:
|
|
4987
|
+
control_plane: b(({ row: Z }) => {
|
|
4990
4988
|
var me;
|
|
4991
4989
|
return [
|
|
4992
|
-
(me = Z.x_meta) != null && me.cluster_id ? (
|
|
4990
|
+
(me = Z.x_meta) != null && me.cluster_id ? (v(), P(J, {
|
|
4993
4991
|
key: 0,
|
|
4994
4992
|
tooltip: Z.x_meta.cluster_id,
|
|
4995
4993
|
"truncation-tooltip": "",
|
|
4996
4994
|
onClick: Le((We) => L(Z.x_meta.cluster_id), ["stop"])
|
|
4997
4995
|
}, {
|
|
4998
|
-
default:
|
|
4996
|
+
default: b(() => [
|
|
4999
4997
|
W($(Z.x_meta.cluster_id), 1)
|
|
5000
4998
|
]),
|
|
5001
4999
|
_: 2
|
|
5002
|
-
}, 1032, ["tooltip", "onClick"])) : (
|
|
5000
|
+
}, 1032, ["tooltip", "onClick"])) : (v(), I("b", Rs, "-"))
|
|
5003
5001
|
];
|
|
5004
5002
|
}),
|
|
5005
|
-
enabled:
|
|
5003
|
+
enabled: b(({ row: Z }) => [
|
|
5006
5004
|
k(f(Ze), {
|
|
5007
5005
|
"auth-function": () => e.canEdit(Z),
|
|
5008
5006
|
"force-show": ""
|
|
5009
5007
|
}, {
|
|
5010
|
-
default:
|
|
5008
|
+
default: b(({ isAllowed: me }) => [
|
|
5011
5009
|
E("div", {
|
|
5012
5010
|
onClick: M[1] || (M[1] = Le(() => {
|
|
5013
5011
|
}, ["stop"]))
|
|
@@ -5024,31 +5022,31 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5024
5022
|
_: 2
|
|
5025
5023
|
}, 1032, ["auth-function"])
|
|
5026
5024
|
]),
|
|
5027
|
-
tags:
|
|
5028
|
-
(Z == null ? void 0 : Z.length) > 0 ? (
|
|
5029
|
-
default:
|
|
5030
|
-
(
|
|
5025
|
+
tags: b(({ rowValue: Z }) => [
|
|
5026
|
+
(Z == null ? void 0 : Z.length) > 0 ? (v(), P(w, { key: 0 }, {
|
|
5027
|
+
default: b(() => [
|
|
5028
|
+
(v(!0), I(he, null, ye(Z, (me) => (v(), P(J, {
|
|
5031
5029
|
key: me,
|
|
5032
5030
|
onClick: M[2] || (M[2] = Le(() => {
|
|
5033
5031
|
}, ["stop"]))
|
|
5034
5032
|
}, {
|
|
5035
|
-
default:
|
|
5033
|
+
default: b(() => [
|
|
5036
5034
|
W($(me), 1)
|
|
5037
5035
|
]),
|
|
5038
5036
|
_: 2
|
|
5039
5037
|
}, 1024))), 128))
|
|
5040
5038
|
]),
|
|
5041
5039
|
_: 2
|
|
5042
|
-
}, 1024)) : (
|
|
5040
|
+
}, 1024)) : (v(), I("span", Ps, "-"))
|
|
5043
5041
|
]),
|
|
5044
|
-
actions:
|
|
5042
|
+
actions: b(({ row: Z }) => [
|
|
5045
5043
|
k(B, null, {
|
|
5046
|
-
default:
|
|
5047
|
-
k(
|
|
5044
|
+
default: b(({ copyToClipboard: me }) => [
|
|
5045
|
+
k(_e, {
|
|
5048
5046
|
"data-testid": "action-entity-copy-id",
|
|
5049
5047
|
onClick: (We) => V(Z, me)
|
|
5050
5048
|
}, {
|
|
5051
|
-
default:
|
|
5049
|
+
default: b(() => [
|
|
5052
5050
|
W($(f(r)("actions.copy_id")), 1)
|
|
5053
5051
|
]),
|
|
5054
5052
|
_: 2
|
|
@@ -5057,12 +5055,12 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5057
5055
|
_: 2
|
|
5058
5056
|
}, 1024),
|
|
5059
5057
|
k(B, null, {
|
|
5060
|
-
default:
|
|
5061
|
-
k(
|
|
5058
|
+
default: b(({ copyToClipboard: me }) => [
|
|
5059
|
+
k(_e, {
|
|
5062
5060
|
"data-testid": "action-entity-copy-json",
|
|
5063
5061
|
onClick: (We) => G(Z, me)
|
|
5064
5062
|
}, {
|
|
5065
|
-
default:
|
|
5063
|
+
default: b(() => [
|
|
5066
5064
|
W($(f(r)("actions.copy_json")), 1)
|
|
5067
5065
|
]),
|
|
5068
5066
|
_: 2
|
|
@@ -5073,8 +5071,8 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5073
5071
|
k(f(Ze), {
|
|
5074
5072
|
"auth-function": () => e.canRetrieve(Z)
|
|
5075
5073
|
}, {
|
|
5076
|
-
default:
|
|
5077
|
-
k(
|
|
5074
|
+
default: b(() => [
|
|
5075
|
+
k(_e, {
|
|
5078
5076
|
"data-testid": "action-entity-view",
|
|
5079
5077
|
"has-divider": "",
|
|
5080
5078
|
item: pe(Z.id)
|
|
@@ -5085,8 +5083,8 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5085
5083
|
k(f(Ze), {
|
|
5086
5084
|
"auth-function": () => e.canEdit(Z)
|
|
5087
5085
|
}, {
|
|
5088
|
-
default:
|
|
5089
|
-
k(
|
|
5086
|
+
default: b(() => [
|
|
5087
|
+
k(_e, {
|
|
5090
5088
|
"data-testid": "action-entity-edit",
|
|
5091
5089
|
item: fe(Z.id)
|
|
5092
5090
|
}, null, 8, ["item"])
|
|
@@ -5096,14 +5094,14 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5096
5094
|
k(f(Ze), {
|
|
5097
5095
|
"auth-function": () => e.canDelete(Z)
|
|
5098
5096
|
}, {
|
|
5099
|
-
default:
|
|
5100
|
-
k(
|
|
5097
|
+
default: b(() => [
|
|
5098
|
+
k(_e, {
|
|
5101
5099
|
danger: "",
|
|
5102
5100
|
"data-testid": "action-entity-delete",
|
|
5103
5101
|
"has-divider": "",
|
|
5104
5102
|
onClick: (me) => Je(Z)
|
|
5105
5103
|
}, {
|
|
5106
|
-
default:
|
|
5104
|
+
default: b(() => [
|
|
5107
5105
|
W($(f(r)("actions.delete.menu_label")), 1)
|
|
5108
5106
|
]),
|
|
5109
5107
|
_: 2
|
|
@@ -5128,7 +5126,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5128
5126
|
"action-pending": He.value,
|
|
5129
5127
|
description: f(r)("actions.delete.description"),
|
|
5130
5128
|
"entity-name": ae.value && (ae.value.name || ae.value.id),
|
|
5131
|
-
"entity-type": f(
|
|
5129
|
+
"entity-type": f(mi).GatewayService,
|
|
5132
5130
|
error: Ge.value,
|
|
5133
5131
|
title: f(r)("actions.delete.title"),
|
|
5134
5132
|
visible: Ne.value,
|
|
@@ -5138,12 +5136,12 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5138
5136
|
]);
|
|
5139
5137
|
};
|
|
5140
5138
|
}
|
|
5141
|
-
}),
|
|
5139
|
+
}), pr = (e, t) => {
|
|
5142
5140
|
const i = e.__vccOpts || e;
|
|
5143
5141
|
for (const [a, r] of t)
|
|
5144
5142
|
i[a] = r;
|
|
5145
5143
|
return i;
|
|
5146
|
-
}, wc = /* @__PURE__ */
|
|
5144
|
+
}, wc = /* @__PURE__ */ pr(Ds, [["__scopeId", "data-v-34afbc0d"]]), zs = { class: "kong-ui-entities-gateway-service-form" }, Hs = { key: 0 }, Gs = { class: "gateway-service-form-traffic-label" }, Js = { class: "gateway-service-form-margin-bottom" }, Ws = {
|
|
5147
5145
|
key: 0,
|
|
5148
5146
|
class: "gateway-service-form-group-fields"
|
|
5149
5147
|
}, Zs = {
|
|
@@ -5189,7 +5187,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5189
5187
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
5190
5188
|
setup(e, { expose: t, emit: i }) {
|
|
5191
5189
|
var Fe;
|
|
5192
|
-
const a = i, r = e, n = q(!0), o = $t(), { i18nT: c, i18n: { t: l } } = st.useI18n(), { getMessageFromError: u } = Vs(), { axiosInstance: m } =
|
|
5190
|
+
const a = i, r = e, n = q(!0), o = $t(), { i18nT: c, i18n: { t: l } } = st.useI18n(), { getMessageFromError: u } = Vs(), { axiosInstance: m } = dr((Fe = r.config) == null ? void 0 : Fe.axiosRequestConfig), p = Bs(), _ = x(() => Qe.form[r.config.app].edit), h = x(() => r.gatewayServiceId ? _t.Edit : _t.Create), A = q(!1), O = x(() => !!r.gatewayServiceId), C = q(O.value ? "protocol" : "url"), K = st.usePortFromProtocol(), N = q(""), Y = x(() => !!N.value), s = qt({
|
|
5193
5191
|
fields: {
|
|
5194
5192
|
name: "",
|
|
5195
5193
|
protocol: "http",
|
|
@@ -5328,7 +5326,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5328
5326
|
return r.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (M = r.config) != null && M.workspace ? `/${r.config.workspace}` : "")), d = d.replace(/{id}/gi, r.gatewayServiceId), d;
|
|
5329
5327
|
}), Je = x(() => {
|
|
5330
5328
|
var g, M;
|
|
5331
|
-
let d = `${r.config.apiBaseUrl}${Qe.form[r.config.app][
|
|
5329
|
+
let d = `${r.config.apiBaseUrl}${Qe.form[r.config.app][h.value]}`;
|
|
5332
5330
|
return r.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (M = r.config) != null && M.workspace ? `/${r.config.workspace}` : "")), d = d.replace(/{id}/gi, r.gatewayServiceId), d;
|
|
5333
5331
|
}), at = (d) => {
|
|
5334
5332
|
let g = "";
|
|
@@ -5352,7 +5350,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5352
5350
|
port: s.fields.port,
|
|
5353
5351
|
url: s.fields.url
|
|
5354
5352
|
};
|
|
5355
|
-
return s.fields.client_certificate && ["https", "wss", "tls"].includes(s.fields.protocol) && (d.client_certificate = { id: s.fields.client_certificate }), s.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(s.fields.protocol) && (d.tls_verify = s.fields.tls_verify_value), G.value || (d.path = null),
|
|
5353
|
+
return s.fields.client_certificate && ["https", "wss", "tls"].includes(s.fields.protocol) && (d.client_certificate = { id: s.fields.client_certificate }), s.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(s.fields.protocol) && (d.tls_verify = s.fields.tls_verify_value), G.value || (d.path = null), h.value === "create" ? C.value === "url" ? (delete d.protocol, delete d.host, delete d.path, r.config.app === "konnect" && delete d.port) : delete d.url : h.value === "edit" && delete d.url, d;
|
|
5356
5354
|
}), Ee = async () => {
|
|
5357
5355
|
var d, g, M, D;
|
|
5358
5356
|
try {
|
|
@@ -5360,7 +5358,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5360
5358
|
const J = je.value;
|
|
5361
5359
|
at(J);
|
|
5362
5360
|
let X;
|
|
5363
|
-
if (await m.post(yt.value, J),
|
|
5361
|
+
if (await m.post(yt.value, J), h.value === "create" ? X = await m.post(Je.value, J) : h.value === "edit" && (X = ((d = r.config) == null ? void 0 : d.app) === "konnect" ? await m.put(Je.value, J) : await m.patch(Je.value, J)), X) {
|
|
5364
5362
|
const { data: w } = X;
|
|
5365
5363
|
s.fields.name = (w == null ? void 0 : w.name) || "", s.fields.port = w.port || K.getPortFromProtocol(w.protocol), s.fields.protocol = (w == null ? void 0 : w.protocol) || "http", s.fields.host = (w == null ? void 0 : w.host) || "", s.fields.path = (w == null ? void 0 : w.path) || "", s.fields.url = (w == null ? void 0 : w.url) || "", s.fields.retries = w != null && w.retries || (w == null ? void 0 : w.retries) === 0 ? w == null ? void 0 : w.retries : 5, s.fields.connect_timeout = w != null && w.connect_timeout || (w == null ? void 0 : w.connect_timeout) === 0 ? w == null ? void 0 : w.connect_timeout : 6e4, s.fields.write_timeout = w != null && w.write_timeout || (w == null ? void 0 : w.write_timeout) === 0 ? w == null ? void 0 : w.write_timeout : 6e4, s.fields.read_timeout = w != null && w.read_timeout || (w == null ? void 0 : w.read_timeout) === 0 ? w == null ? void 0 : w.read_timeout : 6e4, s.fields.client_certificate = ((g = w == null ? void 0 : w.client_certificate) == null ? void 0 : g.id) || "", s.fields.ca_certificates = (M = w == null ? void 0 : w.ca_certificates) != null && M.length ? w == null ? void 0 : w.ca_certificates.join(",") : "", s.fields.tls_verify_enabled = (w == null ? void 0 : w.tls_verify) !== "" && (w == null ? void 0 : w.tls_verify) !== null && (w == null ? void 0 : w.tls_verify) !== void 0, s.fields.tls_verify_value = s.fields.tls_verify_enabled && (w == null ? void 0 : w.tls_verify), s.fields.tags = (D = w == null ? void 0 : w.tags) != null && D.length ? w.tags.join(", ") : "", Object.assign(S, s.fields), a("update", X == null ? void 0 : X.data);
|
|
5366
5364
|
}
|
|
@@ -5371,11 +5369,11 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5371
5369
|
s.isReadonly = !1;
|
|
5372
5370
|
}
|
|
5373
5371
|
};
|
|
5374
|
-
return
|
|
5372
|
+
return ke(() => r.gatewayServiceId, () => {
|
|
5375
5373
|
Object.assign(s.fields, S);
|
|
5376
|
-
}),
|
|
5374
|
+
}), ke(s.fields, (d) => {
|
|
5377
5375
|
s.fields.port = K.getPortFromProtocol(d.protocol, String(d.port)), a("model-updated", je.value);
|
|
5378
|
-
}),
|
|
5376
|
+
}), pi(() => {
|
|
5379
5377
|
a("model-updated", je.value);
|
|
5380
5378
|
}), t({
|
|
5381
5379
|
validateUrl: V,
|
|
@@ -5383,8 +5381,8 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5383
5381
|
saveFormData: Ee,
|
|
5384
5382
|
canSubmit: Ne
|
|
5385
5383
|
}), (d, g) => {
|
|
5386
|
-
const M = R("KInput"), D = R("KLabel"), J = R("KRadio"), X = R("KSelect"), w = R("KCheckbox"),
|
|
5387
|
-
return
|
|
5384
|
+
const M = R("KInput"), D = R("KLabel"), J = R("KRadio"), X = R("KSelect"), w = R("KCheckbox"), _e = R("KCollapse");
|
|
5385
|
+
return v(), I("div", zs, [
|
|
5388
5386
|
k(f(Jl), {
|
|
5389
5387
|
"can-submit": Ne.value,
|
|
5390
5388
|
config: e.config,
|
|
@@ -5399,20 +5397,20 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5399
5397
|
onLoading: g[26] || (g[26] = (B) => d.$emit("loading", B)),
|
|
5400
5398
|
onSubmit: Ee
|
|
5401
5399
|
}, {
|
|
5402
|
-
"form-actions":
|
|
5400
|
+
"form-actions": b(() => [
|
|
5403
5401
|
ie(d.$slots, "form-actions", {
|
|
5404
5402
|
canSubmit: Ne.value,
|
|
5405
5403
|
cancel: Ge,
|
|
5406
5404
|
submit: Ee
|
|
5407
5405
|
}, void 0, !0)
|
|
5408
5406
|
]),
|
|
5409
|
-
default:
|
|
5407
|
+
default: b(() => [
|
|
5410
5408
|
k(f(ci), {
|
|
5411
5409
|
description: f(l)("gateway_services.form.sections.general.description"),
|
|
5412
5410
|
"hide-info-header": e.hideSectionsInfo,
|
|
5413
5411
|
title: f(l)("gateway_services.form.sections.general.title")
|
|
5414
5412
|
}, {
|
|
5415
|
-
default:
|
|
5413
|
+
default: b(() => [
|
|
5416
5414
|
k(M, {
|
|
5417
5415
|
modelValue: s.fields.name,
|
|
5418
5416
|
"onUpdate:modelValue": g[0] || (g[0] = (B) => s.fields.name = B),
|
|
@@ -5451,11 +5449,11 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5451
5449
|
"hide-info-header": e.hideSectionsInfo,
|
|
5452
5450
|
title: f(l)("gateway_services.form.sections.keys.title")
|
|
5453
5451
|
}, {
|
|
5454
|
-
default:
|
|
5455
|
-
O.value ? H("", !0) : (
|
|
5452
|
+
default: b(() => [
|
|
5453
|
+
O.value ? H("", !0) : (v(), I("div", Hs, [
|
|
5456
5454
|
E("div", Gs, [
|
|
5457
5455
|
k(D, { required: "" }, {
|
|
5458
|
-
default:
|
|
5456
|
+
default: b(() => [
|
|
5459
5457
|
W($(f(l)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
5460
5458
|
]),
|
|
5461
5459
|
_: 1
|
|
@@ -5469,13 +5467,13 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5469
5467
|
"selected-value": U.url,
|
|
5470
5468
|
onChange: L
|
|
5471
5469
|
}, {
|
|
5472
|
-
default:
|
|
5470
|
+
default: b(() => [
|
|
5473
5471
|
W($(f(l)("gateway_services.form.sections.keys.urlLabel")), 1)
|
|
5474
5472
|
]),
|
|
5475
5473
|
_: 1
|
|
5476
5474
|
}, 8, ["modelValue", "selected-value"])
|
|
5477
5475
|
]),
|
|
5478
|
-
C.value === "url" ? (
|
|
5476
|
+
C.value === "url" ? (v(), I("div", Ws, [
|
|
5479
5477
|
k(M, {
|
|
5480
5478
|
modelValue: s.fields.url,
|
|
5481
5479
|
"onUpdate:modelValue": g[3] || (g[3] = (B) => s.fields.url = B),
|
|
@@ -5499,13 +5497,13 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5499
5497
|
"selected-value": U.protocol,
|
|
5500
5498
|
onChange: L
|
|
5501
5499
|
}, {
|
|
5502
|
-
default:
|
|
5500
|
+
default: b(() => [
|
|
5503
5501
|
W($(f(l)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
|
|
5504
5502
|
]),
|
|
5505
5503
|
_: 1
|
|
5506
5504
|
}, 8, ["modelValue", "selected-value"])
|
|
5507
5505
|
])),
|
|
5508
|
-
C.value === "protocol" || O.value ? (
|
|
5506
|
+
C.value === "protocol" || O.value ? (v(), I("div", Zs, [
|
|
5509
5507
|
k(X, {
|
|
5510
5508
|
modelValue: s.fields.protocol,
|
|
5511
5509
|
"onUpdate:modelValue": g[5] || (g[5] = (B) => s.fields.protocol = B),
|
|
@@ -5534,7 +5532,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5534
5532
|
placeholder: f(l)("gateway_services.form.fields.host.placeholder"),
|
|
5535
5533
|
required: ""
|
|
5536
5534
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
|
|
5537
|
-
G.value ? (
|
|
5535
|
+
G.value ? (v(), I("div", Ys, [
|
|
5538
5536
|
k(M, {
|
|
5539
5537
|
modelValue: s.fields.path,
|
|
5540
5538
|
"onUpdate:modelValue": g[8] || (g[8] = (B) => s.fields.path = B),
|
|
@@ -5567,14 +5565,14 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5567
5565
|
type: "number"
|
|
5568
5566
|
}, null, 8, ["modelValue", "label", "label-attributes"])
|
|
5569
5567
|
])) : H("", !0),
|
|
5570
|
-
k(
|
|
5568
|
+
k(_e, {
|
|
5571
5569
|
modelValue: n.value,
|
|
5572
5570
|
"onUpdate:modelValue": g[24] || (g[24] = (B) => n.value = B),
|
|
5573
5571
|
"data-testid": "advanced-fields-collapse",
|
|
5574
5572
|
"trigger-alignment": "leading",
|
|
5575
5573
|
"trigger-label": f(l)("gateway_services.form.sections.keys.viewAdvancedFields")
|
|
5576
5574
|
}, {
|
|
5577
|
-
default:
|
|
5575
|
+
default: b(() => [
|
|
5578
5576
|
E("div", Qs, [
|
|
5579
5577
|
E("div", Xs, [
|
|
5580
5578
|
k(M, {
|
|
@@ -5648,7 +5646,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5648
5646
|
type: "number"
|
|
5649
5647
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5650
5648
|
]),
|
|
5651
|
-
Q.value ? (
|
|
5649
|
+
Q.value ? (v(), I("div", rc, [
|
|
5652
5650
|
k(M, {
|
|
5653
5651
|
modelValue: s.fields.client_certificate,
|
|
5654
5652
|
"onUpdate:modelValue": g[19] || (g[19] = (B) => s.fields.client_certificate = B),
|
|
@@ -5663,7 +5661,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5663
5661
|
type: "text"
|
|
5664
5662
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
5665
5663
|
])) : H("", !0),
|
|
5666
|
-
pe.value ? (
|
|
5664
|
+
pe.value ? (v(), I("div", ac, [
|
|
5667
5665
|
k(M, {
|
|
5668
5666
|
modelValue: s.fields.ca_certificates,
|
|
5669
5667
|
"onUpdate:modelValue": g[20] || (g[20] = (B) => s.fields.ca_certificates = B),
|
|
@@ -5675,15 +5673,15 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5675
5673
|
readonly: s.isReadonly,
|
|
5676
5674
|
type: "text"
|
|
5677
5675
|
}, {
|
|
5678
|
-
"label-tooltip":
|
|
5676
|
+
"label-tooltip": b(() => [
|
|
5679
5677
|
k(f(c), {
|
|
5680
5678
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
5681
5679
|
scope: "global"
|
|
5682
5680
|
}, {
|
|
5683
|
-
code1:
|
|
5681
|
+
code1: b(() => [
|
|
5684
5682
|
E("code", null, $(f(l)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
5685
5683
|
]),
|
|
5686
|
-
code2:
|
|
5684
|
+
code2: b(() => [
|
|
5687
5685
|
E("code", null, $(f(l)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
5688
5686
|
]),
|
|
5689
5687
|
_: 1
|
|
@@ -5692,7 +5690,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5692
5690
|
_: 1
|
|
5693
5691
|
}, 8, ["modelValue", "label", "placeholder", "readonly"])
|
|
5694
5692
|
])) : H("", !0),
|
|
5695
|
-
fe.value ? (
|
|
5693
|
+
fe.value ? (v(), I("div", oc, [
|
|
5696
5694
|
k(w, {
|
|
5697
5695
|
modelValue: s.fields.tls_verify_enabled,
|
|
5698
5696
|
"onUpdate:modelValue": g[21] || (g[21] = (B) => s.fields.tls_verify_enabled = B),
|
|
@@ -5700,12 +5698,12 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5700
5698
|
description: f(l)("gateway_services.form.fields.tls_verify_enabled.help"),
|
|
5701
5699
|
label: f(l)("gateway_services.form.fields.tls_verify_enabled.label")
|
|
5702
5700
|
}, {
|
|
5703
|
-
tooltip:
|
|
5701
|
+
tooltip: b(() => [
|
|
5704
5702
|
k(f(c), {
|
|
5705
5703
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
5706
5704
|
scope: "global"
|
|
5707
5705
|
}, {
|
|
5708
|
-
code1:
|
|
5706
|
+
code1: b(() => [
|
|
5709
5707
|
E("code", null, $(f(l)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
5710
5708
|
]),
|
|
5711
5709
|
_: 1
|
|
@@ -5713,7 +5711,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5713
5711
|
]),
|
|
5714
5712
|
_: 1
|
|
5715
5713
|
}, 8, ["modelValue", "description", "label"]),
|
|
5716
|
-
s.fields.tls_verify_enabled ? (
|
|
5714
|
+
s.fields.tls_verify_enabled ? (v(), I("div", nc, [
|
|
5717
5715
|
k(J, {
|
|
5718
5716
|
modelValue: s.fields.tls_verify_value,
|
|
5719
5717
|
"onUpdate:modelValue": g[22] || (g[22] = (B) => s.fields.tls_verify_value = B),
|
|
@@ -5722,7 +5720,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5722
5720
|
"selected-value": !0
|
|
5723
5721
|
}, null, 8, ["modelValue", "label"])
|
|
5724
5722
|
])) : H("", !0),
|
|
5725
|
-
s.fields.tls_verify_enabled ? (
|
|
5723
|
+
s.fields.tls_verify_enabled ? (v(), I("div", lc, [
|
|
5726
5724
|
k(J, {
|
|
5727
5725
|
modelValue: s.fields.tls_verify_value,
|
|
5728
5726
|
"onUpdate:modelValue": g[23] || (g[23] = (B) => s.fields.tls_verify_value = B),
|
|
@@ -5745,7 +5743,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5745
5743
|
]);
|
|
5746
5744
|
};
|
|
5747
5745
|
}
|
|
5748
|
-
}), _c = /* @__PURE__ */
|
|
5746
|
+
}), _c = /* @__PURE__ */ pr(sc, [["__scopeId", "data-v-54ae3bef"]]), cc = { class: "kong-ui-gateway-service-entity-config-card" }, kc = /* @__PURE__ */ ee({
|
|
5749
5747
|
__name: "GatewayServiceConfigCard",
|
|
5750
5748
|
props: {
|
|
5751
5749
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5832,7 +5830,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5832
5830
|
hidden: !0
|
|
5833
5831
|
}
|
|
5834
5832
|
});
|
|
5835
|
-
return (l, u) => (
|
|
5833
|
+
return (l, u) => (v(), I("div", cc, [
|
|
5836
5834
|
k(f(Dl), {
|
|
5837
5835
|
config: e.config,
|
|
5838
5836
|
"config-card-doc": e.configCardDoc,
|
|
@@ -5843,49 +5841,49 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5843
5841
|
"onFetch:success": u[1] || (u[1] = (m) => l.$emit("fetch:success", m)),
|
|
5844
5842
|
onLoading: u[2] || (u[2] = (m) => l.$emit("loading", m))
|
|
5845
5843
|
}, {
|
|
5846
|
-
"enabled-label-tooltip":
|
|
5844
|
+
"enabled-label-tooltip": b(() => [
|
|
5847
5845
|
k(f(a), {
|
|
5848
5846
|
keypath: "gateway_services.form.fields.enabled.tooltip",
|
|
5849
5847
|
scope: "global"
|
|
5850
5848
|
}, {
|
|
5851
|
-
false:
|
|
5849
|
+
false: b(() => [
|
|
5852
5850
|
E("code", null, $(f(i)("gateway_services.form.fields.enabled.false")), 1)
|
|
5853
5851
|
]),
|
|
5854
|
-
true:
|
|
5852
|
+
true: b(() => [
|
|
5855
5853
|
E("code", null, $(f(i)("gateway_services.form.fields.enabled.true")), 1)
|
|
5856
5854
|
]),
|
|
5857
5855
|
_: 1
|
|
5858
5856
|
})
|
|
5859
5857
|
]),
|
|
5860
|
-
"ca_certificates-label-tooltip":
|
|
5858
|
+
"ca_certificates-label-tooltip": b(() => [
|
|
5861
5859
|
k(f(a), {
|
|
5862
5860
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
5863
5861
|
scope: "global"
|
|
5864
5862
|
}, {
|
|
5865
|
-
code1:
|
|
5863
|
+
code1: b(() => [
|
|
5866
5864
|
E("code", null, $(f(i)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
5867
5865
|
]),
|
|
5868
|
-
code2:
|
|
5866
|
+
code2: b(() => [
|
|
5869
5867
|
E("code", null, $(f(i)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
5870
5868
|
]),
|
|
5871
5869
|
_: 1
|
|
5872
5870
|
})
|
|
5873
5871
|
]),
|
|
5874
|
-
"tls_verify-label-tooltip":
|
|
5872
|
+
"tls_verify-label-tooltip": b(() => [
|
|
5875
5873
|
k(f(a), {
|
|
5876
5874
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
5877
5875
|
scope: "global"
|
|
5878
5876
|
}, {
|
|
5879
|
-
code1:
|
|
5877
|
+
code1: b(() => [
|
|
5880
5878
|
E("code", null, $(f(i)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
5881
5879
|
]),
|
|
5882
5880
|
_: 1
|
|
5883
5881
|
})
|
|
5884
5882
|
]),
|
|
5885
|
-
tls_verify:
|
|
5883
|
+
tls_verify: b((m) => [
|
|
5886
5884
|
W($(typeof f(n)("rowValue", m) == "boolean" ? o("rowValue", m) : f(i)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
|
|
5887
5885
|
]),
|
|
5888
|
-
client_certificate:
|
|
5886
|
+
client_certificate: b((m) => [
|
|
5889
5887
|
W($(f(n)("rowValue", m) ? f(n)("rowValue", m).id : "–"), 1)
|
|
5890
5888
|
]),
|
|
5891
5889
|
_: 1
|