@kong-ui-public/entities-gateway-services 3.3.3 → 3.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ const Ut = "24px", wr = (e, t) => {
|
|
|
8
8
|
for (const [a, r] of t)
|
|
9
9
|
i[a] = r;
|
|
10
10
|
return i;
|
|
11
|
-
}, _r = (e) => (De("data-v-
|
|
11
|
+
}, _r = (e) => (De("data-v-f68c7837"), e = e(), ze(), e), kr = ["aria-hidden"], Cr = {
|
|
12
12
|
key: 0,
|
|
13
13
|
"data-testid": "kui-icon-svg-title"
|
|
14
14
|
}, Sr = /* @__PURE__ */ _r(() => /* @__PURE__ */ E("path", {
|
|
@@ -107,7 +107,7 @@ const Ut = "24px", wr = (e, t) => {
|
|
|
107
107
|
_: 1
|
|
108
108
|
}, 8, ["aria-hidden", "style"]));
|
|
109
109
|
}
|
|
110
|
-
}), Ar = /* @__PURE__ */ wr(xr, [["__scopeId", "data-v-
|
|
110
|
+
}), Ar = /* @__PURE__ */ wr(xr, [["__scopeId", "data-v-f68c7837"]]), Ir = {
|
|
111
111
|
create: "New Gateway Service",
|
|
112
112
|
serverless_create: "Add a Service",
|
|
113
113
|
copy_id: "Copy ID",
|
|
@@ -274,18 +274,18 @@ const Ut = "24px", wr = (e, t) => {
|
|
|
274
274
|
}, jr = {
|
|
275
275
|
success: "Copied {val} to clipboard",
|
|
276
276
|
success_brief: "Successfully copied to clipboard"
|
|
277
|
-
}, Or = {
|
|
278
|
-
gateway_services: "gateway services"
|
|
279
277
|
}, Mr = {
|
|
278
|
+
gateway_services: "gateway services"
|
|
279
|
+
}, Or = {
|
|
280
280
|
actions: Ir,
|
|
281
281
|
search: Tr,
|
|
282
282
|
gateway_services: $r,
|
|
283
283
|
errors: Nr,
|
|
284
284
|
copy: jr,
|
|
285
|
-
glossary:
|
|
285
|
+
glossary: Mr
|
|
286
286
|
};
|
|
287
287
|
function Er() {
|
|
288
|
-
const e = fi("en-us",
|
|
288
|
+
const e = fi("en-us", Or);
|
|
289
289
|
return {
|
|
290
290
|
i18n: e,
|
|
291
291
|
i18nT: gi(e)
|
|
@@ -339,7 +339,7 @@ const st = {
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
};
|
|
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 || {}),
|
|
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 || {}), Me = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Me || {}), 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 = {}) => {
|
|
@@ -588,12 +588,12 @@ function Yr(e, t, i, a = {
|
|
|
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
590
|
}, 200), l = q(!1), u = q(""), m = q(""), p = q([]), _ = q([]), h = q(void 0), A = f(t);
|
|
591
|
-
let
|
|
592
|
-
e.app === "konnect" ?
|
|
591
|
+
let M = `${e.apiBaseUrl}${A}`;
|
|
592
|
+
e.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
593
593
|
const { isValidUuid: C } = yi(), K = async () => {
|
|
594
594
|
try {
|
|
595
595
|
l.value = !0;
|
|
596
|
-
const { data: s } = await r.get(`${
|
|
596
|
+
const { data: s } = await r.get(`${M}?size=${i}`);
|
|
597
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");
|
|
@@ -606,18 +606,18 @@ function Yr(e, t, i, a = {
|
|
|
606
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
|
-
let U =
|
|
609
|
+
let U = M + "";
|
|
610
610
|
s && (U += `/${s}`);
|
|
611
611
|
const { data: j } = await r.get(`${U}?size=${i}`);
|
|
612
612
|
a.fetchedItemsKey in j ? p.value = j[a.fetchedItemsKey] : j != null && j.id ? p.value = [j] : p.value = [];
|
|
613
613
|
} else if (s) {
|
|
614
614
|
const U = [];
|
|
615
615
|
C(s) && a.searchKeys.includes("id") ? U.push((async () => {
|
|
616
|
-
const { data: L } = await r.get(`${
|
|
616
|
+
const { data: L } = await r.get(`${M}/${s}`);
|
|
617
617
|
return [L[a.fetchedItemsKey] ?? L];
|
|
618
618
|
})()) : U.push(
|
|
619
619
|
...a.searchKeys.filter((L) => L !== "id").map(async (L) => {
|
|
620
|
-
const { data: V } = await r.get(`${
|
|
620
|
+
const { data: V } = await r.get(`${M}?${L}=${s}`);
|
|
621
621
|
return V[a.fetchedItemsKey];
|
|
622
622
|
})
|
|
623
623
|
);
|
|
@@ -713,8 +713,8 @@ function vi(e, t) {
|
|
|
713
713
|
const { page: c, pageSize: l, offset: u, sortColumnKey: m, sortColumnOrder: p, query: _ } = o;
|
|
714
714
|
try {
|
|
715
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,
|
|
717
|
-
h.searchParams.append(
|
|
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, M) => {
|
|
717
|
+
h.searchParams.append(M, A);
|
|
718
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
719
|
} catch (h) {
|
|
720
720
|
return console.error("RouteList(fetcher)", h), a.value;
|
|
@@ -723,12 +723,12 @@ function vi(e, t) {
|
|
|
723
723
|
}
|
|
724
724
|
function ta(e, t, i = "data") {
|
|
725
725
|
const a = f(t), { axiosInstance: r } = Nt(e.axiosRequestConfig), n = vi(e, a), o = q({
|
|
726
|
-
status:
|
|
726
|
+
status: Me.Idle
|
|
727
727
|
});
|
|
728
728
|
return { fetcher: async (c) => {
|
|
729
729
|
var l;
|
|
730
730
|
try {
|
|
731
|
-
o.value = { status:
|
|
731
|
+
o.value = { status: Me.Loading };
|
|
732
732
|
let u = n(c);
|
|
733
733
|
u.includes("filter[name]") && (u = `${u}&page[size]=${c.pageSize}&page[number]=${c.page}`);
|
|
734
734
|
const m = await r.get(u);
|
|
@@ -747,7 +747,7 @@ function ta(e, t, i = "data") {
|
|
|
747
747
|
} : null
|
|
748
748
|
};
|
|
749
749
|
return o.value = {
|
|
750
|
-
status:
|
|
750
|
+
status: Me.Idle,
|
|
751
751
|
response: A
|
|
752
752
|
}, A;
|
|
753
753
|
} catch (u) {
|
|
@@ -756,11 +756,11 @@ function ta(e, t, i = "data") {
|
|
|
756
756
|
total: 0
|
|
757
757
|
};
|
|
758
758
|
return c.query && (((l = u.response) == null ? void 0 : l.status) === 404 || u.status === 404) ? (o.value = {
|
|
759
|
-
status:
|
|
759
|
+
status: Me.NoResults,
|
|
760
760
|
response: m,
|
|
761
761
|
error: u.response ? u : { response: u }
|
|
762
762
|
}, m) : (o.value = {
|
|
763
|
-
status:
|
|
763
|
+
status: Me.Error,
|
|
764
764
|
response: m,
|
|
765
765
|
error: u.response ? u : { response: u }
|
|
766
766
|
}, m);
|
|
@@ -960,7 +960,7 @@ const ne = {
|
|
|
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
962
|
components: { JsonCardItem: wi, StatusBadge: ma, InternalLinkItem: ga }
|
|
963
|
-
},
|
|
963
|
+
}, Ma = /* @__PURE__ */ ee({
|
|
964
964
|
...ja,
|
|
965
965
|
props: {
|
|
966
966
|
item: {
|
|
@@ -1097,7 +1097,7 @@ const ne = {
|
|
|
1097
1097
|
};
|
|
1098
1098
|
}
|
|
1099
1099
|
}), _ = q(), { isTruncated: h } = ne.useTruncationDetector(_);
|
|
1100
|
-
return (A,
|
|
1100
|
+
return (A, M) => {
|
|
1101
1101
|
const C = R("KLabel"), K = R("KBadge"), N = R("KCopy"), Y = R("KTooltip");
|
|
1102
1102
|
return v(), I("div", _a, [
|
|
1103
1103
|
E("div", {
|
|
@@ -1216,7 +1216,7 @@ const ne = {
|
|
|
1216
1216
|
]);
|
|
1217
1217
|
};
|
|
1218
1218
|
}
|
|
1219
|
-
}), _i = /* @__PURE__ */ ve(
|
|
1219
|
+
}), _i = /* @__PURE__ */ ve(Ma, [["__scopeId", "data-v-d268261c"]]), Oa = { class: "json-config" }, Ea = {
|
|
1220
1220
|
key: 0,
|
|
1221
1221
|
class: "json-endpoint"
|
|
1222
1222
|
}, ki = /* @__PURE__ */ ee({
|
|
@@ -1259,7 +1259,7 @@ const ne = {
|
|
|
1259
1259
|
});
|
|
1260
1260
|
return (r, n) => {
|
|
1261
1261
|
const o = R("KBadge"), c = R("KCodeBlock");
|
|
1262
|
-
return v(), I("div",
|
|
1262
|
+
return v(), I("div", Oa, [
|
|
1263
1263
|
t.fetcherUrl ? (v(), I("div", Ea, [
|
|
1264
1264
|
k(o, {
|
|
1265
1265
|
appearance: t.requestMethod
|
|
@@ -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 Mi = new se("tag:yaml.org,2002:int", {
|
|
1636
1636
|
kind: "scalar",
|
|
1637
1637
|
resolve: so,
|
|
1638
1638
|
construct: co,
|
|
@@ -1709,7 +1709,7 @@ 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 Oi = new se("tag:yaml.org,2002:float", {
|
|
1713
1713
|
kind: "scalar",
|
|
1714
1714
|
resolve: fo,
|
|
1715
1715
|
construct: go,
|
|
@@ -1720,8 +1720,8 @@ var Mi = new se("tag:yaml.org,2002:float", {
|
|
|
1720
1720
|
implicit: [
|
|
1721
1721
|
Ni,
|
|
1722
1722
|
ji,
|
|
1723
|
-
|
|
1724
|
-
|
|
1723
|
+
Mi,
|
|
1724
|
+
Oi
|
|
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])$"
|
|
@@ -1837,7 +1837,7 @@ function jo(e) {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
return !0;
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1840
|
+
function Mo(e) {
|
|
1841
1841
|
if (e === null)
|
|
1842
1842
|
return [];
|
|
1843
1843
|
var t, i, a, r, n, o = e;
|
|
@@ -1848,14 +1848,14 @@ function Oo(e) {
|
|
|
1848
1848
|
var Ri = new se("tag:yaml.org,2002:pairs", {
|
|
1849
1849
|
kind: "sequence",
|
|
1850
1850
|
resolve: jo,
|
|
1851
|
-
construct:
|
|
1852
|
-
}),
|
|
1851
|
+
construct: Mo
|
|
1852
|
+
}), Oo = Object.prototype.hasOwnProperty;
|
|
1853
1853
|
function Eo(e) {
|
|
1854
1854
|
if (e === null)
|
|
1855
1855
|
return !0;
|
|
1856
1856
|
var t, i = e;
|
|
1857
1857
|
for (t in i)
|
|
1858
|
-
if (
|
|
1858
|
+
if (Oo.call(i, t) && i[t] !== null)
|
|
1859
1859
|
return !1;
|
|
1860
1860
|
return !0;
|
|
1861
1861
|
}
|
|
@@ -1866,7 +1866,7 @@ var Pi = new se("tag:yaml.org,2002:set", {
|
|
|
1866
1866
|
kind: "mapping",
|
|
1867
1867
|
resolve: Eo,
|
|
1868
1868
|
construct: Fo
|
|
1869
|
-
}),
|
|
1869
|
+
}), Mt = Fi.extend({
|
|
1870
1870
|
implicit: [
|
|
1871
1871
|
Li,
|
|
1872
1872
|
Ui
|
|
@@ -1884,7 +1884,7 @@ function Gt(e) {
|
|
|
1884
1884
|
function be(e) {
|
|
1885
1885
|
return e === 10 || e === 13;
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1887
|
+
function Oe(e) {
|
|
1888
1888
|
return e === 9 || e === 32;
|
|
1889
1889
|
}
|
|
1890
1890
|
function ge(e) {
|
|
@@ -1917,7 +1917,7 @@ var Gi = new Array(256), Wi = new Array(256);
|
|
|
1917
1917
|
for (var Ve = 0; Ve < 256; Ve++)
|
|
1918
1918
|
Gi[Ve] = Wt(Ve) ? 1 : 0, Wi[Ve] = Wt(Ve);
|
|
1919
1919
|
function Do(e, t) {
|
|
1920
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1920
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || Mt, 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
1922
|
function Zi(e, t) {
|
|
1923
1923
|
var i = {
|
|
@@ -1988,20 +1988,20 @@ function Be(e, t, i, a, r, n, o, c, l) {
|
|
|
1988
1988
|
}) : t[r] = n, delete i[r];
|
|
1989
1989
|
return t;
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function Ot(e) {
|
|
1992
1992
|
var t;
|
|
1993
1993
|
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : F(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1994
1994
|
}
|
|
1995
1995
|
function re(e, t, i) {
|
|
1996
1996
|
for (var a = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
1997
|
-
for (;
|
|
1997
|
+
for (; Oe(r); )
|
|
1998
1998
|
r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
1999
1999
|
if (t && r === 35)
|
|
2000
2000
|
do
|
|
2001
2001
|
r = e.input.charCodeAt(++e.position);
|
|
2002
2002
|
while (r !== 10 && r !== 13 && r !== 0);
|
|
2003
2003
|
if (be(r))
|
|
2004
|
-
for (
|
|
2004
|
+
for (Ot(e), r = e.input.charCodeAt(e.position), a++, e.lineIndent = 0; r === 32; )
|
|
2005
2005
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
2006
2006
|
else
|
|
2007
2007
|
break;
|
|
@@ -2039,7 +2039,7 @@ function zo(e, t, i) {
|
|
|
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),
|
|
2042
|
+
c && (Ie(e, n, o, !1), Et(e, e.line - l), n = o = e.position, c = !1), Oe(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
|
}
|
|
@@ -2082,7 +2082,7 @@ function Jo(e, t) {
|
|
|
2082
2082
|
F(e, "unexpected end of the stream within a double quoted scalar");
|
|
2083
2083
|
}
|
|
2084
2084
|
function Go(e, t) {
|
|
2085
|
-
var i = !0, a, r, n, o = e.tag, c, l = e.anchor, u, m, p, _, h, A = /* @__PURE__ */ Object.create(null),
|
|
2085
|
+
var i = !0, a, r, n, o = e.tag, c, l = e.anchor, u, m, p, _, h, A = /* @__PURE__ */ Object.create(null), M, C, K, N;
|
|
2086
2086
|
if (N = e.input.charCodeAt(e.position), N === 91)
|
|
2087
2087
|
m = 93, h = !1, c = [];
|
|
2088
2088
|
else if (N === 123)
|
|
@@ -2092,7 +2092,7 @@ function Go(e, t) {
|
|
|
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
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 =
|
|
2095
|
+
i ? N === 44 && F(e, "expected the node content, but found ','") : F(e, "missed comma between flow collection entries"), C = M = 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, M = 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, M, K, a, r, n) : p ? c.push(Be(e, null, A, C, M, K, a, r, n)) : c.push(M), 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
|
}
|
|
@@ -2111,17 +2111,17 @@ function Wo(e, t) {
|
|
|
2111
2111
|
m === 0 ? F(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? F(e, "repeat of an indentation width identifier") : (c = t + m - 1, o = !0);
|
|
2112
2112
|
else
|
|
2113
2113
|
break;
|
|
2114
|
-
if (
|
|
2114
|
+
if (Oe(p)) {
|
|
2115
2115
|
do
|
|
2116
2116
|
p = e.input.charCodeAt(++e.position);
|
|
2117
|
-
while (
|
|
2117
|
+
while (Oe(p));
|
|
2118
2118
|
if (p === 35)
|
|
2119
2119
|
do
|
|
2120
2120
|
p = e.input.charCodeAt(++e.position);
|
|
2121
2121
|
while (!be(p) && p !== 0);
|
|
2122
2122
|
}
|
|
2123
2123
|
for (; p !== 0; ) {
|
|
2124
|
-
for (
|
|
2124
|
+
for (Ot(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!o || e.lineIndent < c) && p === 32; )
|
|
2125
2125
|
e.lineIndent++, p = e.input.charCodeAt(++e.position);
|
|
2126
2126
|
if (!o && e.lineIndent > c && (c = e.lineIndent), be(p)) {
|
|
2127
2127
|
l++;
|
|
@@ -2133,7 +2133,7 @@ function Wo(e, t) {
|
|
|
2133
2133
|
`);
|
|
2134
2134
|
break;
|
|
2135
2135
|
}
|
|
2136
|
-
for (a ?
|
|
2136
|
+
for (a ? Oe(p) ? (u = !0, e.result += oe.repeat(`
|
|
2137
2137
|
`, n ? 1 + l : l)) : u ? (u = !1, e.result += oe.repeat(`
|
|
2138
2138
|
`, l + 1)) : l === 0 ? n && (e.result += " ") : e.result += oe.repeat(`
|
|
2139
2139
|
`, l) : e.result += oe.repeat(`
|
|
@@ -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), h = null, A = null,
|
|
2163
|
+
var a, r, n, o, c, l, u = e.tag, m = e.anchor, p = {}, _ = /* @__PURE__ */ Object.create(null), h = null, A = null, M = 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, _, h, A, null, o, c, l), h = A =
|
|
2168
|
+
N === 63 ? (C && (Be(e, p, _, h, A, null, o, c, l), h = A = M = 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
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
|
-
for (N = e.input.charCodeAt(e.position);
|
|
2173
|
+
for (N = e.input.charCodeAt(e.position); Oe(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, _, h, A, null, o, c, l), h = A =
|
|
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 = M = 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,7 +2183,7 @@ 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 :
|
|
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 : M = e.result), C || (Be(e, p, _, h, A, M, o, c, l), h = A = M = 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;
|
|
@@ -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, _, h, A,
|
|
2232
|
+
var n, o, c, l = 1, u = !1, m = !1, p, _, h, A, M, C;
|
|
2233
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 || Di === i ?
|
|
2236
|
+
if (c && (c = u || r), (l === 1 || ut === i) && (ct === i || Di === i ? M = t : M = t + 1, C = e.position - e.lineStart, l === 1 ? c && (Qt(e, C) || Zo(e, C, M)) || Go(e, M) ? m = !0 : (o && Wo(e, M) || Ho(e, M) || Jo(e, M) ? m = !0 : Xo(e) ? (m = !0, (e.tag !== null || e.anchor !== null) && F(e, "alias node should not have any properties")) : zo(e, M, 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)
|
|
@@ -2260,7 +2260,7 @@ function en(e) {
|
|
|
2260
2260
|
for (n = !0, o = e.input.charCodeAt(++e.position), i = e.position; o !== 0 && !ge(o); )
|
|
2261
2261
|
o = e.input.charCodeAt(++e.position);
|
|
2262
2262
|
for (a = e.input.slice(i, e.position), r = [], a.length < 1 && F(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
2263
|
-
for (;
|
|
2263
|
+
for (; Oe(o); )
|
|
2264
2264
|
o = e.input.charCodeAt(++e.position);
|
|
2265
2265
|
if (o === 35) {
|
|
2266
2266
|
do
|
|
@@ -2274,7 +2274,7 @@ function en(e) {
|
|
|
2274
2274
|
o = e.input.charCodeAt(++e.position);
|
|
2275
2275
|
r.push(e.input.slice(i, e.position));
|
|
2276
2276
|
}
|
|
2277
|
-
o !== 0 &&
|
|
2277
|
+
o !== 0 && Ot(e), $e.call(Zt, a) ? Zt[a](e, a, r) : dt(e, 'unknown document directive "' + a + '"');
|
|
2278
2278
|
}
|
|
2279
2279
|
if (re(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, re(e, !0, -1)) : n && F(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, ut, !1, !0), re(e, !0, -1), e.checkLineBreaks && Lo.test(e.input.slice(t, e.position)) && dt(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && mt(e)) {
|
|
2280
2280
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, re(e, !0, -1));
|
|
@@ -2370,7 +2370,7 @@ function xn(e) {
|
|
|
2370
2370
|
}
|
|
2371
2371
|
var An = 1, tt = 2;
|
|
2372
2372
|
function In(e) {
|
|
2373
|
-
this.schema = e.schema ||
|
|
2373
|
+
this.schema = e.schema || Mt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = oe.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Sn(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? tt : An, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2374
2374
|
}
|
|
2375
2375
|
function Xt(e, t) {
|
|
2376
2376
|
for (var i = oe.repeat(" ", t), a = 0, r = -1, n = "", o, c = e.length; a < c; )
|
|
@@ -2425,12 +2425,12 @@ function nr(e) {
|
|
|
2425
2425
|
}
|
|
2426
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, h = a !== -1, A = -1,
|
|
2428
|
+
var l, u = 0, m = null, p = !1, _ = !1, h = a !== -1, A = -1, M = $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))
|
|
2432
2432
|
return qe;
|
|
2433
|
-
|
|
2433
|
+
M = M && ti(u, m, c), m = u;
|
|
2434
2434
|
}
|
|
2435
2435
|
else {
|
|
2436
2436
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
@@ -2439,13 +2439,13 @@ function jn(e, t, i, a, r, n, o, c) {
|
|
|
2439
2439
|
l - A - 1 > a && e[A + 1] !== " ", A = l);
|
|
2440
2440
|
else if (!it(u))
|
|
2441
2441
|
return qe;
|
|
2442
|
-
|
|
2442
|
+
M = M && ti(u, m, c), m = u;
|
|
2443
2443
|
}
|
|
2444
2444
|
_ = _ || h && l - A - 1 > a && e[A + 1] !== " ";
|
|
2445
2445
|
}
|
|
2446
|
-
return !p && !_ ?
|
|
2446
|
+
return !p && !_ ? M && !o && !r(e) ? lr : n === tt ? qe : xt : i > 9 && nr(e) ? qe : o ? n === tt ? qe : xt : _ ? cr : sr;
|
|
2447
2447
|
}
|
|
2448
|
-
function
|
|
2448
|
+
function Mn(e, t, i, a, r) {
|
|
2449
2449
|
e.dump = function() {
|
|
2450
2450
|
if (t.length === 0)
|
|
2451
2451
|
return e.quotingType === tt ? '""' : "''";
|
|
@@ -2472,7 +2472,7 @@ function On(e, t, i, a, r) {
|
|
|
2472
2472
|
case sr:
|
|
2473
2473
|
return "|" + ii(t, e.indent) + ri(Xt(t, n));
|
|
2474
2474
|
case cr:
|
|
2475
|
-
return ">" + ii(t, e.indent) + ri(Xt(
|
|
2475
|
+
return ">" + ii(t, e.indent) + ri(Xt(On(t, o), n));
|
|
2476
2476
|
case qe:
|
|
2477
2477
|
return '"' + En(t) + '"';
|
|
2478
2478
|
default:
|
|
@@ -2492,7 +2492,7 @@ function ri(e) {
|
|
|
2492
2492
|
return e[e.length - 1] === `
|
|
2493
2493
|
` ? e.slice(0, -1) : e;
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2495
|
+
function On(e, t) {
|
|
2496
2496
|
for (var i = /(\n+)([^\n]*)/g, a = function() {
|
|
2497
2497
|
var u = e.indexOf(`
|
|
2498
2498
|
`);
|
|
@@ -2580,7 +2580,7 @@ function Se(e, t, i, a, r, n, o) {
|
|
|
2580
2580
|
else if (c === "[object Array]")
|
|
2581
2581
|
a && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? oi(e, t - 1, e.dump, r) : oi(e, t, e.dump, r), _ && (e.dump = "&ref_" + p + e.dump)) : (Fn(e, t, e.dump), _ && (e.dump = "&ref_" + p + " " + e.dump));
|
|
2582
2582
|
else if (c === "[object String]")
|
|
2583
|
-
e.tag !== "?" &&
|
|
2583
|
+
e.tag !== "?" && Mn(e, e.dump, t, n, l);
|
|
2584
2584
|
else {
|
|
2585
2585
|
if (c === "[object Undefined]" || e.skipInvalid)
|
|
2586
2586
|
return !1;
|
|
@@ -2626,16 +2626,16 @@ 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 = xi, Dn = $i, zn = Ei, Hn = Fi, Jn =
|
|
2629
|
+
var Rn = se, Pn = xi, Dn = $i, zn = Ei, Hn = Fi, Jn = Mt, Gn = Qi.load, Wn = Qi.loadAll, Zn = Kn.dump, Yn = de, Qn = {
|
|
2630
2630
|
binary: Bi,
|
|
2631
|
-
float:
|
|
2631
|
+
float: Oi,
|
|
2632
2632
|
map: Ti,
|
|
2633
2633
|
null: Ni,
|
|
2634
2634
|
pairs: Ri,
|
|
2635
2635
|
set: Pi,
|
|
2636
2636
|
timestamp: Li,
|
|
2637
2637
|
bool: ji,
|
|
2638
|
-
int:
|
|
2638
|
+
int: Mi,
|
|
2639
2639
|
merge: Ui,
|
|
2640
2640
|
omap: Ki,
|
|
2641
2641
|
seq: Ii,
|
|
@@ -2785,7 +2785,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
2785
2785
|
for (const [a, r] of t)
|
|
2786
2786
|
i[a] = r;
|
|
2787
2787
|
return i;
|
|
2788
|
-
}, cl = (e) => (De("data-v-
|
|
2788
|
+
}, cl = (e) => (De("data-v-f68c7837"), e = e(), ze(), e), ul = ["aria-hidden"], dl = {
|
|
2789
2789
|
key: 0,
|
|
2790
2790
|
"data-testid": "kui-icon-svg-title"
|
|
2791
2791
|
}, pl = /* @__PURE__ */ cl(() => /* @__PURE__ */ E("path", {
|
|
@@ -2884,7 +2884,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
2884
2884
|
_: 1
|
|
2885
2885
|
}, 8, ["aria-hidden", "style"]));
|
|
2886
2886
|
}
|
|
2887
|
-
}), gl = /* @__PURE__ */ rt(fl, [["__scopeId", "data-v-
|
|
2887
|
+
}), gl = /* @__PURE__ */ rt(fl, [["__scopeId", "data-v-f68c7837"]]), ml = (e) => (De("data-v-9af646cc"), e = e(), ze(), e), yl = ["aria-hidden"], vl = {
|
|
2888
2888
|
key: 0,
|
|
2889
2889
|
"data-testid": "kui-icon-svg-title"
|
|
2890
2890
|
}, hl = /* @__PURE__ */ ml(() => /* @__PURE__ */ E("path", {
|
|
@@ -2983,7 +2983,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
2983
2983
|
_: 1
|
|
2984
2984
|
}, 8, ["aria-hidden", "style"]));
|
|
2985
2985
|
}
|
|
2986
|
-
}), wl = /* @__PURE__ */ rt(bl, [["__scopeId", "data-v-
|
|
2986
|
+
}), wl = /* @__PURE__ */ rt(bl, [["__scopeId", "data-v-9af646cc"]]), _l = (e) => (De("data-v-84c4811e"), e = e(), ze(), e), kl = ["aria-hidden"], Cl = {
|
|
2987
2987
|
key: 0,
|
|
2988
2988
|
"data-testid": "kui-icon-svg-title"
|
|
2989
2989
|
}, Sl = /* @__PURE__ */ _l(() => /* @__PURE__ */ E("path", {
|
|
@@ -3082,7 +3082,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3082
3082
|
_: 1
|
|
3083
3083
|
}, 8, ["aria-hidden", "style"]));
|
|
3084
3084
|
}
|
|
3085
|
-
}), Al = /* @__PURE__ */ rt(xl, [["__scopeId", "data-v-
|
|
3085
|
+
}), Al = /* @__PURE__ */ rt(xl, [["__scopeId", "data-v-84c4811e"]]), Il = (e) => (De("data-v-26ad8dc6"), e = e(), ze(), e), Tl = ["aria-hidden"], $l = {
|
|
3086
3086
|
key: 0,
|
|
3087
3087
|
"data-testid": "kui-icon-svg-title"
|
|
3088
3088
|
}, Nl = /* @__PURE__ */ Il(() => /* @__PURE__ */ E("path", {
|
|
@@ -3181,10 +3181,10 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3181
3181
|
_: 1
|
|
3182
3182
|
}, 8, ["aria-hidden", "style"]));
|
|
3183
3183
|
}
|
|
3184
|
-
}),
|
|
3184
|
+
}), Ml = /* @__PURE__ */ rt(jl, [["__scopeId", "data-v-26ad8dc6"]]), Ol = (e) => (De("data-v-d43c21f8"), e = e(), ze(), e), El = ["aria-hidden"], Fl = {
|
|
3185
3185
|
key: 0,
|
|
3186
3186
|
"data-testid": "kui-icon-svg-title"
|
|
3187
|
-
}, Vl = /* @__PURE__ */
|
|
3187
|
+
}, Vl = /* @__PURE__ */ Ol(() => /* @__PURE__ */ E("path", {
|
|
3188
3188
|
d: "M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",
|
|
3189
3189
|
fill: "currentColor"
|
|
3190
3190
|
}, null, -1)), ql = /* @__PURE__ */ ee({
|
|
@@ -3280,7 +3280,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3280
3280
|
_: 1
|
|
3281
3281
|
}, 8, ["aria-hidden", "style"]));
|
|
3282
3282
|
}
|
|
3283
|
-
}), Ll = /* @__PURE__ */ rt(ql, [["__scopeId", "data-v-
|
|
3283
|
+
}), Ll = /* @__PURE__ */ rt(ql, [["__scopeId", "data-v-d43c21f8"]]), Ul = {
|
|
3284
3284
|
class: "config-card-title",
|
|
3285
3285
|
"data-testid": "config-card-title"
|
|
3286
3286
|
}, Bl = { class: "config-card-actions" }, Kl = ["href"], Rl = { class: "config-card-details-section" }, Pl = /* @__PURE__ */ ee({
|
|
@@ -3412,7 +3412,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3412
3412
|
// the last property displayed
|
|
3413
3413
|
section: ce.Basic
|
|
3414
3414
|
}
|
|
3415
|
-
}, h = q(!1), A = q(!1),
|
|
3415
|
+
}, h = q(!1), A = q(!1), M = q(""), C = q({}), K = x(() => {
|
|
3416
3416
|
var y, T, U;
|
|
3417
3417
|
if (!C.value)
|
|
3418
3418
|
return [];
|
|
@@ -3495,7 +3495,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3495
3495
|
}), a("fetch:success", y);
|
|
3496
3496
|
} catch (y) {
|
|
3497
3497
|
const T = o(y);
|
|
3498
|
-
|
|
3498
|
+
M.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
|
}
|
|
@@ -3553,7 +3553,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3553
3553
|
"icon-variant": "error"
|
|
3554
3554
|
}, {
|
|
3555
3555
|
default: b(() => [
|
|
3556
|
-
E("h3", null, $(
|
|
3556
|
+
E("h3", null, $(M.value), 1)
|
|
3557
3557
|
]),
|
|
3558
3558
|
_: 1
|
|
3559
3559
|
})) : H("", !0),
|
|
@@ -3670,7 +3670,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3670
3670
|
var s, S;
|
|
3671
3671
|
let y = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3672
3672
|
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);
|
|
3673
|
-
}),
|
|
3673
|
+
}), M = () => {
|
|
3674
3674
|
h.value = !h.value;
|
|
3675
3675
|
}, C = () => {
|
|
3676
3676
|
r.config.cancelRoute ? n.push(r.config.cancelRoute) : K();
|
|
@@ -3739,7 +3739,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3739
3739
|
k(j, {
|
|
3740
3740
|
appearance: "tertiary",
|
|
3741
3741
|
"data-testid": "form-view-configuration",
|
|
3742
|
-
onClick: S[0] || (S[0] = (V) =>
|
|
3742
|
+
onClick: S[0] || (S[0] = (V) => M())
|
|
3743
3743
|
}, {
|
|
3744
3744
|
default: b(() => [
|
|
3745
3745
|
G($(f(o)("baseForm.actions.viewConfiguration")), 1)
|
|
@@ -3778,7 +3778,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3778
3778
|
"offset-top": 60,
|
|
3779
3779
|
title: f(o)("baseForm.configuration.title"),
|
|
3780
3780
|
visible: h.value,
|
|
3781
|
-
onClose: S[1] || (S[1] = (V) =>
|
|
3781
|
+
onClose: S[1] || (S[1] = (V) => M())
|
|
3782
3782
|
}, {
|
|
3783
3783
|
default: b(() => [
|
|
3784
3784
|
E("div", null, $(f(o)("baseForm.configuration.message")), 1),
|
|
@@ -3862,7 +3862,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3862
3862
|
}
|
|
3863
3863
|
},
|
|
3864
3864
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3865
|
-
),
|
|
3865
|
+
), M = x(() => n.value ? m.value > p.value : !1);
|
|
3866
3866
|
return pi(() => {
|
|
3867
3867
|
l();
|
|
3868
3868
|
}), mr(() => {
|
|
@@ -3881,7 +3881,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3881
3881
|
k(N, {
|
|
3882
3882
|
"max-width": "300",
|
|
3883
3883
|
placement: "bottomStart",
|
|
3884
|
-
text:
|
|
3884
|
+
text: M.value ? _.value : ""
|
|
3885
3885
|
}, {
|
|
3886
3886
|
default: b(() => [
|
|
3887
3887
|
ie(C.$slots, "default", {}, void 0, !0)
|
|
@@ -4059,7 +4059,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4059
4059
|
a("empty-state-cta-clicked"), A();
|
|
4060
4060
|
}, A = () => {
|
|
4061
4061
|
a("clear-search-input");
|
|
4062
|
-
},
|
|
4062
|
+
}, M = x(() => i.disableRowClick ? void 0 : (y, T) => {
|
|
4063
4063
|
a("click:row", T);
|
|
4064
4064
|
}), C = (y) => {
|
|
4065
4065
|
a("sort", y);
|
|
@@ -4109,7 +4109,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4109
4109
|
sortable: !e.disableSorting,
|
|
4110
4110
|
"table-preferences": Y.value,
|
|
4111
4111
|
onEmptyStateActionClick: h,
|
|
4112
|
-
"onRow:click":
|
|
4112
|
+
"onRow:click": M.value,
|
|
4113
4113
|
onSort: T[0] || (T[0] = (V) => C(V)),
|
|
4114
4114
|
"onUpdate:tablePreferences": S
|
|
4115
4115
|
}, Ke({
|
|
@@ -4384,7 +4384,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4384
4384
|
r("update:modelValue", s);
|
|
4385
4385
|
}, h = () => {
|
|
4386
4386
|
_("");
|
|
4387
|
-
}, A = (s) => `filter-${s}`,
|
|
4387
|
+
}, A = (s) => `filter-${s}`, M = (s) => {
|
|
4388
4388
|
var S, y;
|
|
4389
4389
|
return (((y = (S = a.config.schema) == null ? void 0 : S[s]) == null ? void 0 : y.values) ?? []).map((T) => ({
|
|
4390
4390
|
value: T,
|
|
@@ -4419,7 +4419,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4419
4419
|
k(li)
|
|
4420
4420
|
]),
|
|
4421
4421
|
after: b(() => [
|
|
4422
|
-
xe(k(f(
|
|
4422
|
+
xe(k(f(Ml), {
|
|
4423
4423
|
class: "kong-ui-entity-filter-clear",
|
|
4424
4424
|
onClick: h
|
|
4425
4425
|
}, null, 512), [
|
|
@@ -4479,7 +4479,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4479
4479
|
id: A(j.value),
|
|
4480
4480
|
modelValue: o.value[j.value],
|
|
4481
4481
|
"onUpdate:modelValue": (V) => o.value[j.value] = V,
|
|
4482
|
-
items:
|
|
4482
|
+
items: M(j.value),
|
|
4483
4483
|
placeholder: f(i)("filter.selectPlaceholder")
|
|
4484
4484
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (v(), P(y, {
|
|
4485
4485
|
key: 1,
|
|
@@ -4681,10 +4681,10 @@ function Ts(e, t, i) {
|
|
|
4681
4681
|
const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
4682
4682
|
key: 1,
|
|
4683
4683
|
class: "form-section-description"
|
|
4684
|
-
},
|
|
4684
|
+
}, Ms = {
|
|
4685
4685
|
key: 2,
|
|
4686
4686
|
class: "form-section-footer"
|
|
4687
|
-
},
|
|
4687
|
+
}, Os = { class: "form-section-content" }, Es = /* @__PURE__ */ ee({
|
|
4688
4688
|
__name: "EntityFormSection",
|
|
4689
4689
|
props: {
|
|
4690
4690
|
title: {
|
|
@@ -4739,11 +4739,11 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4739
4739
|
E("p", null, $(e.description), 1)
|
|
4740
4740
|
], !0)
|
|
4741
4741
|
])) : H("", !0),
|
|
4742
|
-
f(t).footer ? (v(), I("div",
|
|
4742
|
+
f(t).footer ? (v(), I("div", Ms, [
|
|
4743
4743
|
ie(a.$slots, "footer", {}, void 0, !0)
|
|
4744
4744
|
])) : H("", !0)
|
|
4745
4745
|
], 2)),
|
|
4746
|
-
E("div",
|
|
4746
|
+
E("div", Os, [
|
|
4747
4747
|
ie(a.$slots, "default", {}, void 0, !0)
|
|
4748
4748
|
])
|
|
4749
4749
|
])
|
|
@@ -4811,9 +4811,9 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4811
4811
|
enabled: { label: r("gateway_services.list.table_headers.enabled"), searchable: !0, sortable: !0 },
|
|
4812
4812
|
tags: { label: r("gateway_services.list.table_headers.tags"), sortable: !1 }
|
|
4813
4813
|
}, m = u, p = x(() => {
|
|
4814
|
-
var
|
|
4814
|
+
var O, D;
|
|
4815
4815
|
let g = `${a.config.apiBaseUrl}${Qe.list[a.config.app].all}`;
|
|
4816
|
-
return a.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((
|
|
4816
|
+
return a.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((O = a.config) == null ? void 0 : O.controlPlaneId) || "") : a.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (D = a.config) != null && D.workspace ? `/${a.config.workspace}` : "")), g;
|
|
4817
4817
|
}), _ = x(() => a.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), h = q(""), A = x(() => {
|
|
4818
4818
|
const g = a.config.app === "konnect" || a.config.isExactMatch;
|
|
4819
4819
|
if (g)
|
|
@@ -4821,13 +4821,13 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4821
4821
|
isExactMatch: g,
|
|
4822
4822
|
placeholder: r(`search.placeholder.${a.config.app}`)
|
|
4823
4823
|
};
|
|
4824
|
-
const { name:
|
|
4824
|
+
const { name: O, enabled: D, protocol: J, host: X, port: w, path: ke } = u;
|
|
4825
4825
|
return {
|
|
4826
4826
|
isExactMatch: g,
|
|
4827
|
-
fields: { name:
|
|
4827
|
+
fields: { name: O, enabled: D, protocol: J, host: X, port: w, path: ke },
|
|
4828
4828
|
schema: a.config.filterSchema
|
|
4829
4829
|
};
|
|
4830
|
-
}), { fetcher:
|
|
4830
|
+
}), { fetcher: M, fetcherState: C } = qs(a.config, p.value), K = () => {
|
|
4831
4831
|
h.value = "";
|
|
4832
4832
|
}, N = () => {
|
|
4833
4833
|
c.value++;
|
|
@@ -4843,8 +4843,8 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4843
4843
|
name: ""
|
|
4844
4844
|
};
|
|
4845
4845
|
if (y.value) {
|
|
4846
|
-
const { enabled:
|
|
4847
|
-
g.action =
|
|
4846
|
+
const { enabled: O, id: D, name: J } = y.value;
|
|
4847
|
+
g.action = O ? "disable" : "enable", g.id = D, g.name = J || D;
|
|
4848
4848
|
}
|
|
4849
4849
|
return g;
|
|
4850
4850
|
}), U = (g) => {
|
|
@@ -4855,9 +4855,9 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4855
4855
|
var J, X;
|
|
4856
4856
|
if (!await ((J = a.canEdit) == null ? void 0 : J.call(a, y.value)) || !y.value)
|
|
4857
4857
|
return;
|
|
4858
|
-
const
|
|
4858
|
+
const O = `${_.value.href}/${y.value.id}`, D = !y.value.enabled;
|
|
4859
4859
|
try {
|
|
4860
|
-
const { data: w } = ((X = a.config) == null ? void 0 : X.app) === "konnect" ? await o.put(
|
|
4860
|
+
const { data: w } = ((X = a.config) == null ? void 0 : X.app) === "konnect" ? await o.put(O, { ...y.value, enabled: D }) : await o.patch(O, { ...y.value, enabled: D });
|
|
4861
4861
|
i("toggle:success", w);
|
|
4862
4862
|
} catch (w) {
|
|
4863
4863
|
i("error", w);
|
|
@@ -4865,9 +4865,9 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4865
4865
|
y.value.enabled = D;
|
|
4866
4866
|
}, L = (g) => {
|
|
4867
4867
|
a.config.getControlPlaneRoute && n.push(a.config.getControlPlaneRoute(g));
|
|
4868
|
-
}, V = (g,
|
|
4868
|
+
}, V = (g, O) => {
|
|
4869
4869
|
const D = g.id;
|
|
4870
|
-
if (!
|
|
4870
|
+
if (!O(D)) {
|
|
4871
4871
|
i("copy:error", {
|
|
4872
4872
|
entity: g,
|
|
4873
4873
|
field: "id",
|
|
@@ -4880,9 +4880,9 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4880
4880
|
field: "id",
|
|
4881
4881
|
message: r("copy.success", { val: D })
|
|
4882
4882
|
});
|
|
4883
|
-
}, W = (g,
|
|
4883
|
+
}, W = (g, O) => {
|
|
4884
4884
|
const D = JSON.stringify(g);
|
|
4885
|
-
if (!
|
|
4885
|
+
if (!O(D)) {
|
|
4886
4886
|
i("copy:error", {
|
|
4887
4887
|
entity: g,
|
|
4888
4888
|
message: r("errors.copy")
|
|
@@ -4907,21 +4907,21 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4907
4907
|
}, at = () => {
|
|
4908
4908
|
Ne.value = !1, ae.value = void 0;
|
|
4909
4909
|
}, je = async () => {
|
|
4910
|
-
var g,
|
|
4910
|
+
var g, O, D;
|
|
4911
4911
|
if ((g = ae.value) != null && g.id) {
|
|
4912
4912
|
He.value = !0;
|
|
4913
4913
|
try {
|
|
4914
4914
|
await o.delete(yt(ae.value.id)), i("delete:success", ae.value), at(), c.value++;
|
|
4915
4915
|
} catch (J) {
|
|
4916
|
-
Je.value = ((D = (
|
|
4916
|
+
Je.value = ((D = (O = J.response) == null ? void 0 : O.data) == null ? void 0 : D.message) || J.message || r("errors.delete"), i("error", J);
|
|
4917
4917
|
} finally {
|
|
4918
4918
|
He.value = !1;
|
|
4919
4919
|
}
|
|
4920
4920
|
}
|
|
4921
4921
|
}, Ee = q(!0);
|
|
4922
4922
|
Ce(C, (g) => {
|
|
4923
|
-
var
|
|
4924
|
-
if (Array.isArray((
|
|
4923
|
+
var O, D, J, X;
|
|
4924
|
+
if (Array.isArray((O = g == null ? void 0 : g.response) == null ? void 0 : O.data) && (Ee.value = g.response.data.length > 0), g.status === Me.Error) {
|
|
4925
4925
|
Y.value = {
|
|
4926
4926
|
title: r("errors.general")
|
|
4927
4927
|
}, (X = (J = (D = g.error) == null ? void 0 : D.response) == null ? void 0 : J.data) != null && X.message && (Y.value.message = g.error.response.data.message), i("error", g.error);
|
|
@@ -4932,7 +4932,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4932
4932
|
const Fe = q(!1);
|
|
4933
4933
|
return It(async () => {
|
|
4934
4934
|
Fe.value = await a.canCreate();
|
|
4935
|
-
}), (g,
|
|
4935
|
+
}), (g, O) => {
|
|
4936
4936
|
const D = R("KButton"), J = R("KBadge"), X = R("KInputSwitch"), w = R("KTruncate"), ke = R("KDropdownItem"), B = R("KClipboardProvider");
|
|
4937
4937
|
return v(), I("div", Ks, [
|
|
4938
4938
|
k(f(is), {
|
|
@@ -4942,7 +4942,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4942
4942
|
"empty-state-options": s.value,
|
|
4943
4943
|
"enable-entity-actions": "",
|
|
4944
4944
|
"error-message": Y.value,
|
|
4945
|
-
fetcher: f(
|
|
4945
|
+
fetcher: f(M),
|
|
4946
4946
|
"fetcher-cache-key": c.value,
|
|
4947
4947
|
"pagination-type": "offset",
|
|
4948
4948
|
"preferences-storage-key": "kong-ui-entities-gateway-services-list",
|
|
@@ -4950,13 +4950,13 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4950
4950
|
"table-headers": f(m),
|
|
4951
4951
|
"use-action-outside": e.useActionOutside,
|
|
4952
4952
|
onClearSearchInput: K,
|
|
4953
|
-
"onClick:row":
|
|
4953
|
+
"onClick:row": O[3] || (O[3] = (Z) => Q(Z)),
|
|
4954
4954
|
onSort: N
|
|
4955
4955
|
}, {
|
|
4956
4956
|
"toolbar-filter": b(() => [
|
|
4957
4957
|
k(f(ks), {
|
|
4958
4958
|
modelValue: h.value,
|
|
4959
|
-
"onUpdate:modelValue":
|
|
4959
|
+
"onUpdate:modelValue": O[0] || (O[0] = (Z) => h.value = Z),
|
|
4960
4960
|
config: A.value
|
|
4961
4961
|
}, null, 8, ["modelValue", "config"])
|
|
4962
4962
|
]),
|
|
@@ -5014,7 +5014,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5014
5014
|
}, {
|
|
5015
5015
|
default: b(({ isAllowed: me }) => [
|
|
5016
5016
|
E("div", {
|
|
5017
|
-
onClick:
|
|
5017
|
+
onClick: O[1] || (O[1] = Le(() => {
|
|
5018
5018
|
}, ["stop"]))
|
|
5019
5019
|
}, [
|
|
5020
5020
|
k(X, {
|
|
@@ -5034,7 +5034,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5034
5034
|
default: b(() => [
|
|
5035
5035
|
(v(!0), I(he, null, ye(Z, (me) => (v(), P(J, {
|
|
5036
5036
|
key: me,
|
|
5037
|
-
onClick:
|
|
5037
|
+
onClick: O[2] || (O[2] = Le(() => {
|
|
5038
5038
|
}, ["stop"]))
|
|
5039
5039
|
}, {
|
|
5040
5040
|
default: b(() => [
|
|
@@ -5194,7 +5194,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5194
5194
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
5195
5195
|
setup(e, { expose: t, emit: i }) {
|
|
5196
5196
|
var Fe;
|
|
5197
|
-
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),
|
|
5197
|
+
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), M = x(() => !!r.gatewayServiceId), C = q(M.value ? "protocol" : "url"), K = st.usePortFromProtocol(), N = q(""), Y = x(() => !!N.value), s = qt({
|
|
5198
5198
|
fields: {
|
|
5199
5199
|
name: "",
|
|
5200
5200
|
protocol: "http",
|
|
@@ -5322,27 +5322,27 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5322
5322
|
return C.value === "protocol" && d;
|
|
5323
5323
|
}), ae = (d) => {
|
|
5324
5324
|
N.value = p.utf8Name(d);
|
|
5325
|
-
}, Ne = x(() =>
|
|
5326
|
-
var g,
|
|
5327
|
-
s.fields.name = (d == null ? void 0 : d.name) || "", s.fields.tags = ((g = d == null ? void 0 : d.tags) == null ? void 0 : g.join(", ")) || "", s.fields.protocol = (d == null ? void 0 : d.protocol) || "http", s.fields.path = (d == null ? void 0 : d.path) || "", s.fields.read_timeout = d != null && d.read_timeout || (d == null ? void 0 : d.read_timeout) === 0 ? d == null ? void 0 : d.read_timeout : 6e4, s.fields.retries = d != null && d.retries || (d == null ? void 0 : d.retries) === 0 ? d == null ? void 0 : d.retries : 5, s.fields.host = (d == null ? void 0 : d.host) || "", s.fields.connect_timeout = d != null && d.connect_timeout || (d == null ? void 0 : d.connect_timeout) === 0 ? d == null ? void 0 : d.connect_timeout : 6e4, s.fields.tls_verify_enabled = (d == null ? void 0 : d.tls_verify) !== "" && (d == null ? void 0 : d.tls_verify) !== null && (d == null ? void 0 : d.tls_verify) !== void 0, s.fields.tls_verify_value = d != null && d.tls_verify ? d == null ? void 0 : d.tls_verify : !1, s.fields.ca_certificates = ((
|
|
5325
|
+
}, Ne = x(() => M.value && JSON.stringify(s.fields) !== JSON.stringify(S) || C.value === "url" && !!s.fields.url || C.value === "protocol" && !!s.fields.host), He = (d) => {
|
|
5326
|
+
var g, O, D;
|
|
5327
|
+
s.fields.name = (d == null ? void 0 : d.name) || "", s.fields.tags = ((g = d == null ? void 0 : d.tags) == null ? void 0 : g.join(", ")) || "", s.fields.protocol = (d == null ? void 0 : d.protocol) || "http", s.fields.path = (d == null ? void 0 : d.path) || "", s.fields.read_timeout = d != null && d.read_timeout || (d == null ? void 0 : d.read_timeout) === 0 ? d == null ? void 0 : d.read_timeout : 6e4, s.fields.retries = d != null && d.retries || (d == null ? void 0 : d.retries) === 0 ? d == null ? void 0 : d.retries : 5, s.fields.host = (d == null ? void 0 : d.host) || "", s.fields.connect_timeout = d != null && d.connect_timeout || (d == null ? void 0 : d.connect_timeout) === 0 ? d == null ? void 0 : d.connect_timeout : 6e4, s.fields.tls_verify_enabled = (d == null ? void 0 : d.tls_verify) !== "" && (d == null ? void 0 : d.tls_verify) !== null && (d == null ? void 0 : d.tls_verify) !== void 0, s.fields.tls_verify_value = d != null && d.tls_verify ? d == null ? void 0 : d.tls_verify : !1, s.fields.ca_certificates = ((O = d == null ? void 0 : d.ca_certificates) == null ? void 0 : O.join(",")) || "", s.fields.client_certificate = ((D = d == null ? void 0 : d.client_certificate) == null ? void 0 : D.id) || "", s.fields.write_timeout = d != null && d.write_timeout || (d == null ? void 0 : d.write_timeout) === 0 ? d == null ? void 0 : d.write_timeout : 6e4, s.fields.port = d != null && d.port || (d == null ? void 0 : d.port) === 0 ? d == null ? void 0 : d.port : 80, Object.assign(S, s.fields);
|
|
5328
5328
|
}, Je = () => {
|
|
5329
5329
|
o.push(r.config.cancelRoute);
|
|
5330
5330
|
}, yt = x(() => {
|
|
5331
|
-
var g,
|
|
5331
|
+
var g, O;
|
|
5332
5332
|
let d = `${r.config.apiBaseUrl}${Qe.form[r.config.app].validate}`;
|
|
5333
|
-
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, (
|
|
5333
|
+
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, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), d = d.replace(/{id}/gi, r.gatewayServiceId), d;
|
|
5334
5334
|
}), Ge = x(() => {
|
|
5335
|
-
var g,
|
|
5335
|
+
var g, O;
|
|
5336
5336
|
let d = `${r.config.apiBaseUrl}${Qe.form[r.config.app][h.value]}`;
|
|
5337
|
-
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, (
|
|
5337
|
+
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, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), d = d.replace(/{id}/gi, r.gatewayServiceId), d;
|
|
5338
5338
|
}), at = (d) => {
|
|
5339
5339
|
let g = "";
|
|
5340
5340
|
d.url && (g = new URL(d.url).protocol), (["https", "wss", "tls"].includes(d.protocol) || ["https", "wss", "tls"].includes(g)) && (d.tls_verify = d.tls_verify_enabled ? d.tls_verify_value : null), delete d.tls_verify_enabled, delete d.tls_verify_value;
|
|
5341
5341
|
}, je = x(() => {
|
|
5342
|
-
var g,
|
|
5342
|
+
var g, O, D, J;
|
|
5343
5343
|
const d = {
|
|
5344
5344
|
name: s.fields.name || null,
|
|
5345
|
-
tags: s.fields.tags ? (D = (
|
|
5345
|
+
tags: s.fields.tags ? (D = (O = (g = s.fields.tags) == null ? void 0 : g.split(",")) == null ? void 0 : O.map((X) => String(X || "").trim())) == null ? void 0 : D.filter((X) => X !== "") : null,
|
|
5346
5346
|
protocol: s.fields.protocol,
|
|
5347
5347
|
path: s.fields.path || null,
|
|
5348
5348
|
read_timeout: s.fields.read_timeout,
|
|
@@ -5359,7 +5359,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5359
5359
|
};
|
|
5360
5360
|
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), W.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;
|
|
5361
5361
|
}), Ee = async () => {
|
|
5362
|
-
var d, g,
|
|
5362
|
+
var d, g, O, D;
|
|
5363
5363
|
try {
|
|
5364
5364
|
s.isReadonly = !0, V();
|
|
5365
5365
|
const J = je.value;
|
|
@@ -5367,7 +5367,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5367
5367
|
let X;
|
|
5368
5368
|
if (await m.post(yt.value, J), h.value === "create" ? X = await m.post(Ge.value, J) : h.value === "edit" && (X = ((d = r.config) == null ? void 0 : d.app) === "konnect" ? await m.put(Ge.value, J) : await m.patch(Ge.value, J)), X) {
|
|
5369
5369
|
const { data: w } = X;
|
|
5370
|
-
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 = (
|
|
5370
|
+
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 = (O = w == null ? void 0 : w.ca_certificates) != null && O.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);
|
|
5371
5371
|
}
|
|
5372
5372
|
return X;
|
|
5373
5373
|
} catch (J) {
|
|
@@ -5388,7 +5388,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5388
5388
|
saveFormData: Ee,
|
|
5389
5389
|
canSubmit: Ne
|
|
5390
5390
|
}), (d, g) => {
|
|
5391
|
-
const
|
|
5391
|
+
const O = R("KInput"), D = R("KLabel"), J = R("KRadio"), X = R("KSelect"), w = R("KCheckbox"), ke = R("KCollapse");
|
|
5392
5392
|
return v(), I("div", zs, [
|
|
5393
5393
|
k(f(Gl), {
|
|
5394
5394
|
"can-submit": Ne.value,
|
|
@@ -5418,7 +5418,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5418
5418
|
title: f(l)("gateway_services.form.sections.general.title")
|
|
5419
5419
|
}, {
|
|
5420
5420
|
default: b(() => [
|
|
5421
|
-
k(
|
|
5421
|
+
k(O, {
|
|
5422
5422
|
modelValue: s.fields.name,
|
|
5423
5423
|
"onUpdate:modelValue": g[0] || (g[0] = (B) => s.fields.name = B),
|
|
5424
5424
|
modelModifiers: { trim: !0 },
|
|
@@ -5434,7 +5434,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5434
5434
|
type: "text",
|
|
5435
5435
|
onInput: ae
|
|
5436
5436
|
}, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
|
|
5437
|
-
k(
|
|
5437
|
+
k(O, {
|
|
5438
5438
|
modelValue: s.fields.tags,
|
|
5439
5439
|
"onUpdate:modelValue": g[1] || (g[1] = (B) => s.fields.tags = B),
|
|
5440
5440
|
modelModifiers: { trim: !0 },
|
|
@@ -5457,7 +5457,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5457
5457
|
title: f(l)("gateway_services.form.sections.keys.title")
|
|
5458
5458
|
}, {
|
|
5459
5459
|
default: b(() => [
|
|
5460
|
-
|
|
5460
|
+
M.value ? H("", !0) : (v(), I("div", Hs, [
|
|
5461
5461
|
E("div", Js, [
|
|
5462
5462
|
k(D, { required: "" }, {
|
|
5463
5463
|
default: b(() => [
|
|
@@ -5481,7 +5481,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5481
5481
|
}, 8, ["modelValue", "selected-value"])
|
|
5482
5482
|
]),
|
|
5483
5483
|
C.value === "url" ? (v(), I("div", Ws, [
|
|
5484
|
-
k(
|
|
5484
|
+
k(O, {
|
|
5485
5485
|
modelValue: s.fields.url,
|
|
5486
5486
|
"onUpdate:modelValue": g[3] || (g[3] = (B) => s.fields.url = B),
|
|
5487
5487
|
modelModifiers: { trim: !0 },
|
|
@@ -5510,7 +5510,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5510
5510
|
_: 1
|
|
5511
5511
|
}, 8, ["modelValue", "selected-value"])
|
|
5512
5512
|
])),
|
|
5513
|
-
C.value === "protocol" ||
|
|
5513
|
+
C.value === "protocol" || M.value ? (v(), I("div", Zs, [
|
|
5514
5514
|
k(X, {
|
|
5515
5515
|
modelValue: s.fields.protocol,
|
|
5516
5516
|
"onUpdate:modelValue": g[5] || (g[5] = (B) => s.fields.protocol = B),
|
|
@@ -5525,7 +5525,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5525
5525
|
width: "100%",
|
|
5526
5526
|
onSelected: g[6] || (g[6] = (B) => j(s.fields.protocol, B))
|
|
5527
5527
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
5528
|
-
k(
|
|
5528
|
+
k(O, {
|
|
5529
5529
|
modelValue: s.fields.host,
|
|
5530
5530
|
"onUpdate:modelValue": g[7] || (g[7] = (B) => s.fields.host = B),
|
|
5531
5531
|
modelModifiers: { trim: !0 },
|
|
@@ -5540,7 +5540,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5540
5540
|
required: ""
|
|
5541
5541
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
|
|
5542
5542
|
W.value ? (v(), I("div", Ys, [
|
|
5543
|
-
k(
|
|
5543
|
+
k(O, {
|
|
5544
5544
|
modelValue: s.fields.path,
|
|
5545
5545
|
"onUpdate:modelValue": g[8] || (g[8] = (B) => s.fields.path = B),
|
|
5546
5546
|
modelModifiers: { trim: !0 },
|
|
@@ -5554,7 +5554,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5554
5554
|
placeholder: f(l)("gateway_services.form.fields.path.placeholder")
|
|
5555
5555
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
5556
5556
|
])) : H("", !0),
|
|
5557
|
-
k(
|
|
5557
|
+
k(O, {
|
|
5558
5558
|
modelValue: s.fields.port,
|
|
5559
5559
|
"onUpdate:modelValue": [
|
|
5560
5560
|
g[9] || (g[9] = (B) => s.fields.port = B),
|
|
@@ -5582,7 +5582,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5582
5582
|
default: b(() => [
|
|
5583
5583
|
E("div", Qs, [
|
|
5584
5584
|
E("div", Xs, [
|
|
5585
|
-
k(
|
|
5585
|
+
k(O, {
|
|
5586
5586
|
modelValue: s.fields.retries,
|
|
5587
5587
|
"onUpdate:modelValue": [
|
|
5588
5588
|
g[11] || (g[11] = (B) => s.fields.retries = B),
|
|
@@ -5600,7 +5600,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5600
5600
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5601
5601
|
]),
|
|
5602
5602
|
E("div", ec, [
|
|
5603
|
-
k(
|
|
5603
|
+
k(O, {
|
|
5604
5604
|
modelValue: s.fields.connect_timeout,
|
|
5605
5605
|
"onUpdate:modelValue": [
|
|
5606
5606
|
g[13] || (g[13] = (B) => s.fields.connect_timeout = B),
|
|
@@ -5618,7 +5618,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5618
5618
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5619
5619
|
]),
|
|
5620
5620
|
E("div", tc, [
|
|
5621
|
-
k(
|
|
5621
|
+
k(O, {
|
|
5622
5622
|
modelValue: s.fields.write_timeout,
|
|
5623
5623
|
"onUpdate:modelValue": [
|
|
5624
5624
|
g[15] || (g[15] = (B) => s.fields.write_timeout = B),
|
|
@@ -5636,7 +5636,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5636
5636
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5637
5637
|
]),
|
|
5638
5638
|
E("div", ic, [
|
|
5639
|
-
k(
|
|
5639
|
+
k(O, {
|
|
5640
5640
|
modelValue: s.fields.read_timeout,
|
|
5641
5641
|
"onUpdate:modelValue": [
|
|
5642
5642
|
g[17] || (g[17] = (B) => s.fields.read_timeout = B),
|
|
@@ -5654,7 +5654,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5654
5654
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5655
5655
|
]),
|
|
5656
5656
|
Q.value ? (v(), I("div", rc, [
|
|
5657
|
-
k(
|
|
5657
|
+
k(O, {
|
|
5658
5658
|
modelValue: s.fields.client_certificate,
|
|
5659
5659
|
"onUpdate:modelValue": g[19] || (g[19] = (B) => s.fields.client_certificate = B),
|
|
5660
5660
|
modelModifiers: { trim: !0 },
|
|
@@ -5669,7 +5669,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5669
5669
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
5670
5670
|
])) : H("", !0),
|
|
5671
5671
|
pe.value ? (v(), I("div", ac, [
|
|
5672
|
-
k(
|
|
5672
|
+
k(O, {
|
|
5673
5673
|
modelValue: s.fields.ca_certificates,
|
|
5674
5674
|
"onUpdate:modelValue": g[20] || (g[20] = (B) => s.fields.ca_certificates = B),
|
|
5675
5675
|
modelModifiers: { trim: !0 },
|