@kong-ui-public/entities-gateway-services 3.3.2 → 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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ee, computed as x, openBlock as v, createBlock as P, resolveDynamicComponent as _e, 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
|
|
1
|
+
import { defineComponent as ee, computed as x, openBlock as v, createBlock as P, resolveDynamicComponent as _e, 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 G, watch as Ce, 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
3
|
import { createI18n as fi, i18nTComponent as gi } from "@kong-ui-public/i18n";
|
|
4
4
|
import Lt from "axios";
|
|
@@ -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 = {}) => {
|
|
@@ -500,10 +500,10 @@ const Br = {
|
|
|
500
500
|
fetch: "Could not fetch available items",
|
|
501
501
|
invalid: "Please select a valid value"
|
|
502
502
|
}
|
|
503
|
-
},
|
|
503
|
+
}, Jr = {
|
|
504
504
|
unexpected: "An unexpected error has occurred",
|
|
505
505
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
506
|
-
},
|
|
506
|
+
}, Gr = {
|
|
507
507
|
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
508
508
|
}, Wr = {
|
|
509
509
|
enable: {
|
|
@@ -524,8 +524,8 @@ const Br = {
|
|
|
524
524
|
baseConfigCard: Dr,
|
|
525
525
|
filter: zr,
|
|
526
526
|
debouncedFilter: Hr,
|
|
527
|
-
errors:
|
|
528
|
-
validationErrors:
|
|
527
|
+
errors: Jr,
|
|
528
|
+
validationErrors: Gr,
|
|
529
529
|
toggleModal: Wr
|
|
530
530
|
};
|
|
531
531
|
function gt() {
|
|
@@ -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);
|
|
@@ -928,7 +928,7 @@ const ne = {
|
|
|
928
928
|
onClick: a[0] || (a[0] = (n) => i.$emit("navigation-click", e.item))
|
|
929
929
|
}, {
|
|
930
930
|
default: b(() => [
|
|
931
|
-
|
|
931
|
+
G($(e.item.value || f(t)("baseConfigCard.commonFields.link")), 1)
|
|
932
932
|
]),
|
|
933
933
|
_: 1
|
|
934
934
|
})
|
|
@@ -951,7 +951,7 @@ const ne = {
|
|
|
951
951
|
appearance: e.status ? "success" : "neutral"
|
|
952
952
|
}, {
|
|
953
953
|
default: b(() => [
|
|
954
|
-
|
|
954
|
+
G($(e.status ? f(t)("baseConfigCard.statusBadge.enabledLabel") : f(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
955
955
|
]),
|
|
956
956
|
_: 1
|
|
957
957
|
}, 8, ["appearance"]);
|
|
@@ -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", {
|
|
@@ -1107,7 +1107,7 @@ const ne = {
|
|
|
1107
1107
|
ie(A.$slots, "label", { item: e.item }, () => [
|
|
1108
1108
|
k(C, { "tooltip-attributes": { maxWidth: "500px" } }, Ke({
|
|
1109
1109
|
default: b(() => [
|
|
1110
|
-
|
|
1110
|
+
G($(e.item.label) + " ", 1)
|
|
1111
1111
|
]),
|
|
1112
1112
|
_: 2
|
|
1113
1113
|
}, [
|
|
@@ -1118,7 +1118,7 @@ const ne = {
|
|
|
1118
1118
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1119
1119
|
}, [
|
|
1120
1120
|
ie(A.$slots, "label-tooltip", {}, () => [
|
|
1121
|
-
|
|
1121
|
+
G($(e.item.tooltip), 1)
|
|
1122
1122
|
], !0)
|
|
1123
1123
|
], 8, Ca)
|
|
1124
1124
|
]),
|
|
@@ -1149,7 +1149,7 @@ const ne = {
|
|
|
1149
1149
|
"truncation-tooltip": ""
|
|
1150
1150
|
}, {
|
|
1151
1151
|
default: b(() => [
|
|
1152
|
-
|
|
1152
|
+
G($(s), 1)
|
|
1153
1153
|
]),
|
|
1154
1154
|
_: 2
|
|
1155
1155
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
@@ -1176,7 +1176,7 @@ const ne = {
|
|
|
1176
1176
|
"data-testid": `${e.item.key}-badge-method-${S}`
|
|
1177
1177
|
}, {
|
|
1178
1178
|
default: b(() => [
|
|
1179
|
-
|
|
1179
|
+
G($(s), 1)
|
|
1180
1180
|
]),
|
|
1181
1181
|
_: 2
|
|
1182
1182
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
@@ -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,13 +1259,13 @@ 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
|
|
1266
1266
|
}, {
|
|
1267
1267
|
default: b(() => [
|
|
1268
|
-
|
|
1268
|
+
G($(t.requestMethod), 1)
|
|
1269
1269
|
]),
|
|
1270
1270
|
_: 1
|
|
1271
1271
|
}, 8, ["appearance"]),
|
|
@@ -1379,7 +1379,7 @@ function Ha(e, t) {
|
|
|
1379
1379
|
`;
|
|
1380
1380
|
return c.replace(/\n$/, "");
|
|
1381
1381
|
}
|
|
1382
|
-
var
|
|
1382
|
+
var Ja = Ha, Ga = [
|
|
1383
1383
|
"kind",
|
|
1384
1384
|
"multi",
|
|
1385
1385
|
"resolve",
|
|
@@ -1405,7 +1405,7 @@ function Za(e) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
function Ya(e, t) {
|
|
1407
1407
|
if (t = t || {}, Object.keys(t).forEach(function(i) {
|
|
1408
|
-
if (
|
|
1408
|
+
if (Ga.indexOf(i) === -1)
|
|
1409
1409
|
throw new de('Unknown option "' + i + '" is met in definition of "' + e + '" YAML type.');
|
|
1410
1410
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1411
1411
|
return !0;
|
|
@@ -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
|
|
@@ -1877,14 +1877,14 @@ var Pi = new se("tag:yaml.org,2002:set", {
|
|
|
1877
1877
|
Ri,
|
|
1878
1878
|
Pi
|
|
1879
1879
|
]
|
|
1880
|
-
}), $e = Object.prototype.hasOwnProperty, ct = 1, Di = 2, zi = 3, ut = 4, wt = 1, Vo = 2,
|
|
1881
|
-
function
|
|
1880
|
+
}), $e = Object.prototype.hasOwnProperty, ct = 1, Di = 2, zi = 3, ut = 4, wt = 1, Vo = 2, Jt = 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, Ji = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1881
|
+
function Gt(e) {
|
|
1882
1882
|
return Object.prototype.toString.call(e);
|
|
1883
1883
|
}
|
|
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) {
|
|
@@ -1913,11 +1913,11 @@ function Po(e) {
|
|
|
1913
1913
|
(e - 65536 & 1023) + 56320
|
|
1914
1914
|
);
|
|
1915
1915
|
}
|
|
1916
|
-
var
|
|
1916
|
+
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 = {
|
|
@@ -1928,7 +1928,7 @@ function Zi(e, t) {
|
|
|
1928
1928
|
line: e.line,
|
|
1929
1929
|
column: e.position - e.lineStart
|
|
1930
1930
|
};
|
|
1931
|
-
return i.snippet =
|
|
1931
|
+
return i.snippet = Ja(i), new de(t, i);
|
|
1932
1932
|
}
|
|
1933
1933
|
function F(e, t) {
|
|
1934
1934
|
throw Zi(e, t);
|
|
@@ -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], 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'),
|
|
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'), Ji.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 {
|
|
@@ -1972,8 +1972,8 @@ function Be(e, t, i, a, r, n, o, c, l) {
|
|
|
1972
1972
|
var u, m;
|
|
1973
1973
|
if (Array.isArray(r))
|
|
1974
1974
|
for (r = Array.prototype.slice.call(r), u = 0, m = r.length; u < m; u += 1)
|
|
1975
|
-
Array.isArray(r[u]) && F(e, "nested arrays are not supported inside keys"), typeof r == "object" &&
|
|
1976
|
-
if (typeof r == "object" &&
|
|
1975
|
+
Array.isArray(r[u]) && F(e, "nested arrays are not supported inside keys"), typeof r == "object" && Gt(r[u]) === "[object Object]" && (r[u] = "[object Object]");
|
|
1976
|
+
if (typeof r == "object" && Gt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), a === "tag:yaml.org,2002:merge")
|
|
1977
1977
|
if (Array.isArray(n))
|
|
1978
1978
|
for (u = 0, m = n.length; u < m; u += 1)
|
|
1979
1979
|
Yt(e, t, n[u], 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
|
}
|
|
@@ -2057,7 +2057,7 @@ function Ho(e, t) {
|
|
|
2057
2057
|
be(i) ? (Ie(e, a, r, !0), Et(e, re(e, !1, t)), a = r = e.position) : e.position === e.lineStart && mt(e) ? F(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
2058
2058
|
F(e, "unexpected end of the stream within a single quoted scalar");
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function Jo(e, t) {
|
|
2061
2061
|
var i, a, r, n, o, c;
|
|
2062
2062
|
if (c = e.input.charCodeAt(e.position), c !== 34)
|
|
2063
2063
|
return !1;
|
|
@@ -2067,7 +2067,7 @@ 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 &&
|
|
2070
|
+
else if (c < 256 && Gi[c])
|
|
2071
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--)
|
|
@@ -2081,8 +2081,8 @@ function Go(e, t) {
|
|
|
2081
2081
|
}
|
|
2082
2082
|
F(e, "unexpected end of the stream within a double quoted scalar");
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2085
|
-
var i = !0, a, r, n, o = e.tag, c, l = e.anchor, u, m, p, _, h, A = /* @__PURE__ */ Object.create(null),
|
|
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), 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 Jo(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
|
}
|
|
@@ -2106,34 +2106,34 @@ function Wo(e, t) {
|
|
|
2106
2106
|
return !1;
|
|
2107
2107
|
for (e.kind = "scalar", e.result = ""; p !== 0; )
|
|
2108
2108
|
if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45)
|
|
2109
|
-
wt === r ? r = p === 43 ?
|
|
2109
|
+
wt === r ? r = p === 43 ? Jt : Vo : F(e, "repeat of a chomping mode identifier");
|
|
2110
2110
|
else if ((m = Ro(p)) >= 0)
|
|
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++;
|
|
2128
2128
|
continue;
|
|
2129
2129
|
}
|
|
2130
2130
|
if (e.lineIndent < c) {
|
|
2131
|
-
r ===
|
|
2131
|
+
r === Jt ? e.result += oe.repeat(`
|
|
2132
2132
|
`, n ? 1 + l : l) : r === wt && n && (e.result += `
|
|
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;
|
|
@@ -2204,7 +2204,7 @@ function Yo(e) {
|
|
|
2204
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 && !Ji.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, _, 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,
|
|
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,
|
|
@@ -2646,8 +2646,8 @@ var Rn = se, Pn = xi, Dn = $i, zn = Ei, Hn = Fi, Gn = Ot, Jn = Qi.load, Wn = Qi.
|
|
|
2646
2646
|
FAILSAFE_SCHEMA: Dn,
|
|
2647
2647
|
JSON_SCHEMA: zn,
|
|
2648
2648
|
CORE_SCHEMA: Hn,
|
|
2649
|
-
DEFAULT_SCHEMA:
|
|
2650
|
-
load:
|
|
2649
|
+
DEFAULT_SCHEMA: Jn,
|
|
2650
|
+
load: Gn,
|
|
2651
2651
|
loadAll: Wn,
|
|
2652
2652
|
dump: Zn,
|
|
2653
2653
|
YAMLException: Yn,
|
|
@@ -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
|
}
|
|
@@ -3513,7 +3513,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3513
3513
|
"data-testid": "config-format-select-label"
|
|
3514
3514
|
}, {
|
|
3515
3515
|
default: b(() => [
|
|
3516
|
-
|
|
3516
|
+
G($(e.label), 1)
|
|
3517
3517
|
]),
|
|
3518
3518
|
_: 1
|
|
3519
3519
|
}),
|
|
@@ -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),
|
|
@@ -3585,7 +3585,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3585
3585
|
fn: b(() => [
|
|
3586
3586
|
E("span", Ul, [
|
|
3587
3587
|
ie(y.$slots, "title", {}, () => [
|
|
3588
|
-
|
|
3588
|
+
G($(f(n)("baseConfigCard.title")), 1)
|
|
3589
3589
|
], !0)
|
|
3590
3590
|
])
|
|
3591
3591
|
]),
|
|
@@ -3597,7 +3597,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3597
3597
|
}), Dl = /* @__PURE__ */ ve(Pl, [["__scopeId", "data-v-f40a683b"]]), zl = ["novalidate"], Hl = {
|
|
3598
3598
|
class: "form-actions",
|
|
3599
3599
|
"data-testid": "form-actions"
|
|
3600
|
-
},
|
|
3600
|
+
}, Jl = /* @__PURE__ */ ee({
|
|
3601
3601
|
__name: "EntityBaseForm",
|
|
3602
3602
|
props: {
|
|
3603
3603
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -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,10 +3739,10 @@ 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)
|
|
3746
3746
|
]),
|
|
3747
3747
|
_: 1
|
|
3748
3748
|
}),
|
|
@@ -3753,7 +3753,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3753
3753
|
type: "reset"
|
|
3754
3754
|
}, {
|
|
3755
3755
|
default: b(() => [
|
|
3756
|
-
|
|
3756
|
+
G($(f(o)("baseForm.actions.cancel")), 1)
|
|
3757
3757
|
]),
|
|
3758
3758
|
_: 1
|
|
3759
3759
|
}, 8, ["disabled"]),
|
|
@@ -3764,7 +3764,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3764
3764
|
type: "submit"
|
|
3765
3765
|
}, {
|
|
3766
3766
|
default: b(() => [
|
|
3767
|
-
|
|
3767
|
+
G($(f(o)("baseForm.actions.save")), 1)
|
|
3768
3768
|
]),
|
|
3769
3769
|
_: 1
|
|
3770
3770
|
}, 8, ["disabled"])
|
|
@@ -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),
|
|
@@ -3809,7 +3809,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3809
3809
|
});
|
|
3810
3810
|
};
|
|
3811
3811
|
}
|
|
3812
|
-
}),
|
|
3812
|
+
}), Gl = /* @__PURE__ */ ve(Jl, [["__scopeId", "data-v-fd05df8e"]]), Wl = ["data-truncate"], Zl = /* @__PURE__ */ ee({
|
|
3813
3813
|
__name: "EntityBaseTableCell",
|
|
3814
3814
|
props: {
|
|
3815
3815
|
keyName: {
|
|
@@ -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({
|
|
@@ -4173,7 +4173,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4173
4173
|
rowKey: pe,
|
|
4174
4174
|
rowValue: fe
|
|
4175
4175
|
}, () => [
|
|
4176
|
-
|
|
4176
|
+
G($(fe), 1)
|
|
4177
4177
|
], !0)
|
|
4178
4178
|
]),
|
|
4179
4179
|
_: 2
|
|
@@ -4260,7 +4260,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4260
4260
|
e.error ? (v(), I("div", rs, [
|
|
4261
4261
|
k(m, { appearance: "danger" }, {
|
|
4262
4262
|
default: b(() => [
|
|
4263
|
-
|
|
4263
|
+
G($(e.error), 1)
|
|
4264
4264
|
]),
|
|
4265
4265
|
_: 1
|
|
4266
4266
|
})
|
|
@@ -4271,7 +4271,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4271
4271
|
tag: "p"
|
|
4272
4272
|
}, Ke({
|
|
4273
4273
|
entityType: b(() => [
|
|
4274
|
-
|
|
4274
|
+
G($(a.entityType), 1)
|
|
4275
4275
|
]),
|
|
4276
4276
|
_: 2
|
|
4277
4277
|
}, [
|
|
@@ -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), [
|
|
@@ -4435,7 +4435,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4435
4435
|
}, {
|
|
4436
4436
|
default: b(() => [
|
|
4437
4437
|
k(li),
|
|
4438
|
-
|
|
4438
|
+
G(" " + $(f(i)("filter.filterButtonText")) + " " + $(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
|
|
4439
4439
|
]),
|
|
4440
4440
|
_: 1
|
|
4441
4441
|
}),
|
|
@@ -4460,7 +4460,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4460
4460
|
onClick: (V) => p(j.value),
|
|
4461
4461
|
onKeydown: fr((V) => p(j.value), ["enter"])
|
|
4462
4462
|
}, [
|
|
4463
|
-
|
|
4463
|
+
G($(j.label) + " ", 1),
|
|
4464
4464
|
xe(E("span", ys, null, 512), [
|
|
4465
4465
|
[Ae, l.value.includes(j.value)]
|
|
4466
4466
|
]),
|
|
@@ -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,
|
|
@@ -4501,7 +4501,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4501
4501
|
onClick: S[0] || (S[0] = (V) => Y(!0))
|
|
4502
4502
|
}, {
|
|
4503
4503
|
default: b(() => [
|
|
4504
|
-
|
|
4504
|
+
G($(f(i)("filter.applyButtonText")), 1)
|
|
4505
4505
|
]),
|
|
4506
4506
|
_: 1
|
|
4507
4507
|
}),
|
|
@@ -4512,7 +4512,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4512
4512
|
onClick: (V) => K(j.value)
|
|
4513
4513
|
}, {
|
|
4514
4514
|
default: b(() => [
|
|
4515
|
-
|
|
4515
|
+
G($(f(i)("filter.clearButtonText")), 1)
|
|
4516
4516
|
]),
|
|
4517
4517
|
_: 2
|
|
4518
4518
|
}, 1032, ["onClick"])
|
|
@@ -4528,7 +4528,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4528
4528
|
onClick: N
|
|
4529
4529
|
}, {
|
|
4530
4530
|
default: b(() => [
|
|
4531
|
-
|
|
4531
|
+
G($(f(i)("filter.clearAllButtonText")), 1)
|
|
4532
4532
|
]),
|
|
4533
4533
|
_: 1
|
|
4534
4534
|
})
|
|
@@ -4605,7 +4605,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4605
4605
|
scope: "global"
|
|
4606
4606
|
}, {
|
|
4607
4607
|
entityType: b(() => [
|
|
4608
|
-
|
|
4608
|
+
G($(e.entityType), 1)
|
|
4609
4609
|
]),
|
|
4610
4610
|
entityName: b(() => [
|
|
4611
4611
|
E("strong", null, $(e.entityName), 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: {
|
|
@@ -4730,7 +4730,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4730
4730
|
class: "form-section-title"
|
|
4731
4731
|
}, {
|
|
4732
4732
|
default: b(() => [
|
|
4733
|
-
|
|
4733
|
+
G($(e.title), 1)
|
|
4734
4734
|
]),
|
|
4735
4735
|
_: 1
|
|
4736
4736
|
}, 8, ["id"])) : H("", !0),
|
|
@@ -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) => {
|
|
@@ -4852,12 +4852,12 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4852
4852
|
}, j = () => {
|
|
4853
4853
|
S.value = !1, y.value = null;
|
|
4854
4854
|
}, z = async () => {
|
|
4855
|
-
var
|
|
4856
|
-
if (!await ((
|
|
4855
|
+
var J, X;
|
|
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")
|
|
@@ -4902,29 +4902,29 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4902
4902
|
}), fe = (g) => ({
|
|
4903
4903
|
label: r("actions.edit"),
|
|
4904
4904
|
to: a.config.getEditRoute(g)
|
|
4905
|
-
}), ae = q(void 0), Ne = q(!1), He = q(!1),
|
|
4905
|
+
}), ae = q(void 0), Ne = q(!1), He = q(!1), Je = q(""), yt = Fs(a.config, p.value), Ge = (g) => {
|
|
4906
4906
|
ae.value = g, Ne.value = !0;
|
|
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
|
-
} catch (
|
|
4916
|
-
|
|
4915
|
+
} catch (J) {
|
|
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
|
-
}, (X = (
|
|
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);
|
|
4928
4928
|
return;
|
|
4929
4929
|
}
|
|
4930
4930
|
Y.value = null;
|
|
@@ -4932,8 +4932,8 @@ 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,
|
|
4936
|
-
const D = R("KButton"),
|
|
4935
|
+
}), (g, O) => {
|
|
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), {
|
|
4939
4939
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -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
|
]),
|
|
@@ -4977,7 +4977,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4977
4977
|
}, {
|
|
4978
4978
|
default: b(() => [
|
|
4979
4979
|
k(f(Ar)),
|
|
4980
|
-
|
|
4980
|
+
G(" " + $(f(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
4981
4981
|
]),
|
|
4982
4982
|
_: 1
|
|
4983
4983
|
}, 8, ["to"]), [
|
|
@@ -4994,14 +4994,14 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
4994
4994
|
control_plane: b(({ row: Z }) => {
|
|
4995
4995
|
var me;
|
|
4996
4996
|
return [
|
|
4997
|
-
(me = Z.x_meta) != null && me.cluster_id ? (v(), P(
|
|
4997
|
+
(me = Z.x_meta) != null && me.cluster_id ? (v(), P(J, {
|
|
4998
4998
|
key: 0,
|
|
4999
4999
|
tooltip: Z.x_meta.cluster_id,
|
|
5000
5000
|
"truncation-tooltip": "",
|
|
5001
5001
|
onClick: Le((We) => L(Z.x_meta.cluster_id), ["stop"])
|
|
5002
5002
|
}, {
|
|
5003
5003
|
default: b(() => [
|
|
5004
|
-
|
|
5004
|
+
G($(Z.x_meta.cluster_id), 1)
|
|
5005
5005
|
]),
|
|
5006
5006
|
_: 2
|
|
5007
5007
|
}, 1032, ["tooltip", "onClick"])) : (v(), I("b", Rs, "-"))
|
|
@@ -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, {
|
|
@@ -5032,13 +5032,13 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5032
5032
|
tags: b(({ rowValue: Z }) => [
|
|
5033
5033
|
(Z == null ? void 0 : Z.length) > 0 ? (v(), P(w, { key: 0 }, {
|
|
5034
5034
|
default: b(() => [
|
|
5035
|
-
(v(!0), I(he, null, ye(Z, (me) => (v(), P(
|
|
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(() => [
|
|
5041
|
-
|
|
5041
|
+
G($(me), 1)
|
|
5042
5042
|
]),
|
|
5043
5043
|
_: 2
|
|
5044
5044
|
}, 1024))), 128))
|
|
@@ -5054,7 +5054,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5054
5054
|
onClick: (We) => V(Z, me)
|
|
5055
5055
|
}, {
|
|
5056
5056
|
default: b(() => [
|
|
5057
|
-
|
|
5057
|
+
G($(f(r)("actions.copy_id")), 1)
|
|
5058
5058
|
]),
|
|
5059
5059
|
_: 2
|
|
5060
5060
|
}, 1032, ["onClick"])
|
|
@@ -5068,7 +5068,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5068
5068
|
onClick: (We) => W(Z, me)
|
|
5069
5069
|
}, {
|
|
5070
5070
|
default: b(() => [
|
|
5071
|
-
|
|
5071
|
+
G($(f(r)("actions.copy_json")), 1)
|
|
5072
5072
|
]),
|
|
5073
5073
|
_: 2
|
|
5074
5074
|
}, 1032, ["onClick"])
|
|
@@ -5106,10 +5106,10 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5106
5106
|
danger: "",
|
|
5107
5107
|
"data-testid": "action-entity-delete",
|
|
5108
5108
|
"has-divider": "",
|
|
5109
|
-
onClick: (me) =>
|
|
5109
|
+
onClick: (me) => Ge(Z)
|
|
5110
5110
|
}, {
|
|
5111
5111
|
default: b(() => [
|
|
5112
|
-
|
|
5112
|
+
G($(f(r)("actions.delete.menu_label")), 1)
|
|
5113
5113
|
]),
|
|
5114
5114
|
_: 2
|
|
5115
5115
|
}, 1032, ["onClick"])
|
|
@@ -5134,7 +5134,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5134
5134
|
description: f(r)("actions.delete.description"),
|
|
5135
5135
|
"entity-name": ae.value && (ae.value.name || ae.value.id),
|
|
5136
5136
|
"entity-type": f(mi).GatewayService,
|
|
5137
|
-
error:
|
|
5137
|
+
error: Je.value,
|
|
5138
5138
|
title: f(r)("actions.delete.title"),
|
|
5139
5139
|
visible: Ne.value,
|
|
5140
5140
|
onCancel: at,
|
|
@@ -5148,7 +5148,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5148
5148
|
for (const [a, r] of t)
|
|
5149
5149
|
i[a] = r;
|
|
5150
5150
|
return i;
|
|
5151
|
-
}, wc = /* @__PURE__ */ pr(Ds, [["__scopeId", "data-v-34afbc0d"]]), zs = { class: "kong-ui-entities-gateway-service-form" }, Hs = { key: 0 },
|
|
5151
|
+
}, wc = /* @__PURE__ */ pr(Ds, [["__scopeId", "data-v-34afbc0d"]]), zs = { class: "kong-ui-entities-gateway-service-form" }, Hs = { key: 0 }, Js = { class: "gateway-service-form-traffic-label" }, Gs = { class: "gateway-service-form-margin-bottom" }, Ws = {
|
|
5152
5152
|
key: 0,
|
|
5153
5153
|
class: "gateway-service-form-group-fields"
|
|
5154
5154
|
}, Zs = {
|
|
@@ -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 = ((
|
|
5328
|
-
},
|
|
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
|
+
}, 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, (
|
|
5334
|
-
}),
|
|
5335
|
-
var g,
|
|
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
|
+
}), Ge = x(() => {
|
|
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,
|
|
@@ -5351,7 +5351,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5351
5351
|
connect_timeout: s.fields.connect_timeout,
|
|
5352
5352
|
tls_verify_value: s.fields.tls_verify_value,
|
|
5353
5353
|
tls_verify_enabled: s.fields.tls_verify_enabled,
|
|
5354
|
-
ca_certificates: s.fields.ca_certificates ? (
|
|
5354
|
+
ca_certificates: s.fields.ca_certificates ? (J = s.fields.ca_certificates) == null ? void 0 : J.split(",").filter((X) => X !== "") : null,
|
|
5355
5355
|
client_certificate: s.fields.client_certificate ? { id: s.fields.client_certificate } : null,
|
|
5356
5356
|
write_timeout: s.fields.write_timeout,
|
|
5357
5357
|
port: s.fields.port,
|
|
@@ -5359,19 +5359,19 @@ 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
|
-
const
|
|
5366
|
-
at(
|
|
5365
|
+
const J = je.value;
|
|
5366
|
+
at(J);
|
|
5367
5367
|
let X;
|
|
5368
|
-
if (await m.post(yt.value,
|
|
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
|
-
} catch (
|
|
5374
|
-
s.errorMessage = u(
|
|
5373
|
+
} catch (J) {
|
|
5374
|
+
s.errorMessage = u(J), a("error", J);
|
|
5375
5375
|
} finally {
|
|
5376
5376
|
s.isReadonly = !1;
|
|
5377
5377
|
}
|
|
@@ -5388,9 +5388,9 @@ 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
|
-
k(f(
|
|
5393
|
+
k(f(Gl), {
|
|
5394
5394
|
"can-submit": Ne.value,
|
|
5395
5395
|
config: e.config,
|
|
5396
5396
|
"edit-id": e.gatewayServiceId,
|
|
@@ -5398,7 +5398,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5398
5398
|
"fetch-url": _.value,
|
|
5399
5399
|
"form-fields": je.value,
|
|
5400
5400
|
"is-readonly": s.isReadonly,
|
|
5401
|
-
onCancel:
|
|
5401
|
+
onCancel: Je,
|
|
5402
5402
|
"onFetch:error": g[25] || (g[25] = (B) => d.$emit("error", B)),
|
|
5403
5403
|
"onFetch:success": He,
|
|
5404
5404
|
onLoading: g[26] || (g[26] = (B) => d.$emit("loading", B)),
|
|
@@ -5407,7 +5407,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5407
5407
|
"form-actions": b(() => [
|
|
5408
5408
|
ie(d.$slots, "form-actions", {
|
|
5409
5409
|
canSubmit: Ne.value,
|
|
5410
|
-
cancel:
|
|
5410
|
+
cancel: Je,
|
|
5411
5411
|
submit: Ee
|
|
5412
5412
|
}, void 0, !0)
|
|
5413
5413
|
]),
|
|
@@ -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,17 +5457,17 @@ 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
|
-
|
|
5461
|
-
E("div",
|
|
5460
|
+
M.value ? H("", !0) : (v(), I("div", Hs, [
|
|
5461
|
+
E("div", Js, [
|
|
5462
5462
|
k(D, { required: "" }, {
|
|
5463
5463
|
default: b(() => [
|
|
5464
|
-
|
|
5464
|
+
G($(f(l)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
5465
5465
|
]),
|
|
5466
5466
|
_: 1
|
|
5467
5467
|
})
|
|
5468
5468
|
]),
|
|
5469
|
-
E("div",
|
|
5470
|
-
k(
|
|
5469
|
+
E("div", Gs, [
|
|
5470
|
+
k(J, {
|
|
5471
5471
|
modelValue: C.value,
|
|
5472
5472
|
"onUpdate:modelValue": g[2] || (g[2] = (B) => C.value = B),
|
|
5473
5473
|
"data-testid": "gateway-service-url-radio",
|
|
@@ -5475,13 +5475,13 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5475
5475
|
onChange: L
|
|
5476
5476
|
}, {
|
|
5477
5477
|
default: b(() => [
|
|
5478
|
-
|
|
5478
|
+
G($(f(l)("gateway_services.form.sections.keys.urlLabel")), 1)
|
|
5479
5479
|
]),
|
|
5480
5480
|
_: 1
|
|
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 },
|
|
@@ -5496,7 +5496,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5496
5496
|
required: ""
|
|
5497
5497
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
5498
5498
|
])) : H("", !0),
|
|
5499
|
-
k(
|
|
5499
|
+
k(J, {
|
|
5500
5500
|
modelValue: C.value,
|
|
5501
5501
|
"onUpdate:modelValue": g[4] || (g[4] = (B) => C.value = B),
|
|
5502
5502
|
"checked-group": "protocol",
|
|
@@ -5505,12 +5505,12 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5505
5505
|
onChange: L
|
|
5506
5506
|
}, {
|
|
5507
5507
|
default: b(() => [
|
|
5508
|
-
|
|
5508
|
+
G($(f(l)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
|
|
5509
5509
|
]),
|
|
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 },
|
|
@@ -5719,7 +5719,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5719
5719
|
_: 1
|
|
5720
5720
|
}, 8, ["modelValue", "description", "label"]),
|
|
5721
5721
|
s.fields.tls_verify_enabled ? (v(), I("div", nc, [
|
|
5722
|
-
k(
|
|
5722
|
+
k(J, {
|
|
5723
5723
|
modelValue: s.fields.tls_verify_value,
|
|
5724
5724
|
"onUpdate:modelValue": g[22] || (g[22] = (B) => s.fields.tls_verify_value = B),
|
|
5725
5725
|
"data-testid": "gateway-service-tls-verify-true-option",
|
|
@@ -5728,7 +5728,7 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5728
5728
|
}, null, 8, ["modelValue", "label"])
|
|
5729
5729
|
])) : H("", !0),
|
|
5730
5730
|
s.fields.tls_verify_enabled ? (v(), I("div", lc, [
|
|
5731
|
-
k(
|
|
5731
|
+
k(J, {
|
|
5732
5732
|
modelValue: s.fields.tls_verify_value,
|
|
5733
5733
|
"onUpdate:modelValue": g[23] || (g[23] = (B) => s.fields.tls_verify_value = B),
|
|
5734
5734
|
"data-testid": "gateway-service-tls-verify-false-option",
|
|
@@ -5888,10 +5888,10 @@ const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
|
5888
5888
|
})
|
|
5889
5889
|
]),
|
|
5890
5890
|
tls_verify: b((m) => [
|
|
5891
|
-
|
|
5891
|
+
G($(typeof f(n)("rowValue", m) == "boolean" ? o("rowValue", m) : f(i)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
|
|
5892
5892
|
]),
|
|
5893
5893
|
client_certificate: b((m) => [
|
|
5894
|
-
|
|
5894
|
+
G($(f(n)("rowValue", m) ? f(n)("rowValue", m).id : "–"), 1)
|
|
5895
5895
|
]),
|
|
5896
5896
|
_: 1
|
|
5897
5897
|
}, 8, ["config", "config-card-doc", "config-schema", "fetch-url", "hide-title"])
|