@kong-ui-public/entities-gateway-services 3.3.2-pr.1436.e4eeb147.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-gateway-services.es.js +688 -688
- package/dist/entities-gateway-services.umd.js +14 -14
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
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 J, 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";
|
|
5
5
|
import { BadgeMethodAppearances as br } from "@kong/kongponents";
|
|
6
|
-
const
|
|
6
|
+
const Ut = "24px", wr = (e, t) => {
|
|
7
7
|
const i = e.__vccOpts || e;
|
|
8
8
|
for (const [a, r] of t)
|
|
9
9
|
i[a] = r;
|
|
@@ -11,7 +11,7 @@ const Bt = "24px", wr = (e, t) => {
|
|
|
11
11
|
}, _r = (e) => (De("data-v-1d2a8d30"), e = e(), ze(), e), kr = ["aria-hidden"], Cr = {
|
|
12
12
|
key: 0,
|
|
13
13
|
"data-testid": "kui-icon-svg-title"
|
|
14
|
-
}, Sr = /* @__PURE__ */ _r(() => /* @__PURE__ */
|
|
14
|
+
}, Sr = /* @__PURE__ */ _r(() => /* @__PURE__ */ E("path", {
|
|
15
15
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
16
16
|
fill: "currentColor"
|
|
17
17
|
}, null, -1)), xr = /* @__PURE__ */ ee({
|
|
@@ -45,7 +45,7 @@ const Bt = "24px", wr = (e, t) => {
|
|
|
45
45
|
size: {
|
|
46
46
|
type: [Number, String],
|
|
47
47
|
required: !1,
|
|
48
|
-
default:
|
|
48
|
+
default: Ut,
|
|
49
49
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
50
50
|
validator: (e) => {
|
|
51
51
|
if (typeof e == "number" && e > 0)
|
|
@@ -74,7 +74,7 @@ const Bt = "24px", wr = (e, t) => {
|
|
|
74
74
|
if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
|
|
75
75
|
return `${n}px`;
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return Ut;
|
|
78
78
|
}), a = x(() => ({
|
|
79
79
|
boxSizing: "border-box",
|
|
80
80
|
color: t.color,
|
|
@@ -90,7 +90,7 @@ const Bt = "24px", wr = (e, t) => {
|
|
|
90
90
|
style: Pe(a.value)
|
|
91
91
|
}, {
|
|
92
92
|
default: b(() => [
|
|
93
|
-
(v(),
|
|
93
|
+
(v(), I("svg", {
|
|
94
94
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
95
95
|
"data-testid": "kui-icon-svg-add-icon",
|
|
96
96
|
fill: "none",
|
|
@@ -100,14 +100,14 @@ const Bt = "24px", wr = (e, t) => {
|
|
|
100
100
|
width: "100%",
|
|
101
101
|
xmlns: "http://www.w3.org/2000/svg"
|
|
102
102
|
}, [
|
|
103
|
-
e.title ? (v(),
|
|
103
|
+
e.title ? (v(), I("title", Cr, $(e.title), 1)) : H("", !0),
|
|
104
104
|
Sr
|
|
105
105
|
], 8, kr))
|
|
106
106
|
]),
|
|
107
107
|
_: 1
|
|
108
108
|
}, 8, ["aria-hidden", "style"]));
|
|
109
109
|
}
|
|
110
|
-
}),
|
|
110
|
+
}), Ar = /* @__PURE__ */ wr(xr, [["__scopeId", "data-v-1d2a8d30"]]), Ir = {
|
|
111
111
|
create: "New Gateway Service",
|
|
112
112
|
serverless_create: "Add a Service",
|
|
113
113
|
copy_id: "Copy ID",
|
|
@@ -266,25 +266,25 @@ const Bt = "24px", wr = (e, t) => {
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
},
|
|
269
|
+
}, Nr = {
|
|
270
270
|
general: "Gateway Services could not be retrieved",
|
|
271
271
|
delete: "The gateway service could not be deleted at this time.",
|
|
272
272
|
copy: "Failed to copy to clipboard",
|
|
273
273
|
urlErrorMessage: "Error: invalid URL"
|
|
274
|
-
},
|
|
274
|
+
}, jr = {
|
|
275
275
|
success: "Copied {val} to clipboard",
|
|
276
276
|
success_brief: "Successfully copied to clipboard"
|
|
277
277
|
}, Or = {
|
|
278
278
|
gateway_services: "gateway services"
|
|
279
279
|
}, Mr = {
|
|
280
|
-
actions:
|
|
280
|
+
actions: Ir,
|
|
281
281
|
search: Tr,
|
|
282
282
|
gateway_services: $r,
|
|
283
|
-
errors:
|
|
284
|
-
copy:
|
|
283
|
+
errors: Nr,
|
|
284
|
+
copy: jr,
|
|
285
285
|
glossary: Or
|
|
286
286
|
};
|
|
287
|
-
function
|
|
287
|
+
function Er() {
|
|
288
288
|
const e = fi("en-us", Mr);
|
|
289
289
|
return {
|
|
290
290
|
i18n: e,
|
|
@@ -292,7 +292,7 @@ function Fr() {
|
|
|
292
292
|
// Translation component <i18n-t>
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Fr() {
|
|
296
296
|
return {
|
|
297
297
|
getPortFromProtocol: (t, i) => {
|
|
298
298
|
const a = [80, 443], r = Number(i);
|
|
@@ -315,8 +315,8 @@ function Vr() {
|
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
const st = {
|
|
318
|
-
useI18n:
|
|
319
|
-
usePortFromProtocol:
|
|
318
|
+
useI18n: Er,
|
|
319
|
+
usePortFromProtocol: Fr
|
|
320
320
|
}, ot = "/v2/control-planes/{controlPlaneId}/core-entities", nt = "/{workspace}", Qe = {
|
|
321
321
|
list: {
|
|
322
322
|
konnect: {
|
|
@@ -340,7 +340,7 @@ const st = {
|
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
342
|
var mi = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(mi || {}), _t = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(_t || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), te = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), ce = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ce || {});
|
|
343
|
-
function
|
|
343
|
+
function Vr() {
|
|
344
344
|
return {
|
|
345
345
|
getAxiosInstance: (e = {}) => {
|
|
346
346
|
try {
|
|
@@ -364,7 +364,7 @@ function qr() {
|
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function qr() {
|
|
368
368
|
return {
|
|
369
369
|
debounce: (e, t) => {
|
|
370
370
|
let i;
|
|
@@ -383,7 +383,7 @@ const vt = "khcp-user-table-preferences", Lr = {
|
|
|
383
383
|
columnWidths: {},
|
|
384
384
|
columnVisibility: {}
|
|
385
385
|
};
|
|
386
|
-
function
|
|
386
|
+
function Ur() {
|
|
387
387
|
const e = (i) => {
|
|
388
388
|
if (typeof i == "string")
|
|
389
389
|
try {
|
|
@@ -414,23 +414,23 @@ function Br() {
|
|
|
414
414
|
}
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
const { getAxiosInstance: t } =
|
|
417
|
+
function Nt(e = {}) {
|
|
418
|
+
const { getAxiosInstance: t } = Vr();
|
|
419
419
|
return {
|
|
420
420
|
axiosInstance: t(e)
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
|
-
const
|
|
423
|
+
const Br = {
|
|
424
424
|
actions: {
|
|
425
425
|
copyId: "Copy ID",
|
|
426
426
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
427
427
|
copyToClipboard: "Copied successfully!",
|
|
428
428
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
429
429
|
}
|
|
430
|
-
},
|
|
430
|
+
}, Kr = {
|
|
431
431
|
message: "Are you sure you want to delete this {entityType}?",
|
|
432
432
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
433
|
-
},
|
|
433
|
+
}, Rr = {
|
|
434
434
|
actions: {
|
|
435
435
|
viewConfiguration: "View Configuration",
|
|
436
436
|
save: "Save",
|
|
@@ -516,10 +516,10 @@ const Ur = {
|
|
|
516
516
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
517
517
|
confirmText: "Yes, disable"
|
|
518
518
|
}
|
|
519
|
-
},
|
|
520
|
-
global:
|
|
521
|
-
deleteModal:
|
|
522
|
-
baseForm:
|
|
519
|
+
}, Zr = {
|
|
520
|
+
global: Br,
|
|
521
|
+
deleteModal: Kr,
|
|
522
|
+
baseForm: Rr,
|
|
523
523
|
baseTable: Pr,
|
|
524
524
|
baseConfigCard: Dr,
|
|
525
525
|
filter: zr,
|
|
@@ -529,7 +529,7 @@ const Ur = {
|
|
|
529
529
|
toggleModal: Wr
|
|
530
530
|
};
|
|
531
531
|
function gt() {
|
|
532
|
-
const e = fi("en-us",
|
|
532
|
+
const e = fi("en-us", Zr);
|
|
533
533
|
return {
|
|
534
534
|
i18n: e,
|
|
535
535
|
i18nT: gi(e)
|
|
@@ -580,17 +580,17 @@ function yi() {
|
|
|
580
580
|
isValidUuid: (i) => i ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(i) : !1
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function Yr(e, t, i, a = {
|
|
584
584
|
fetchedItemsKey: "data",
|
|
585
585
|
searchKeys: ["id"]
|
|
586
586
|
}) {
|
|
587
587
|
i || (i = "1000");
|
|
588
|
-
const { axiosInstance: r } =
|
|
589
|
-
await
|
|
590
|
-
}, 200), l =
|
|
591
|
-
let O = `${e.apiBaseUrl}${
|
|
588
|
+
const { axiosInstance: r } = Nt(e.axiosRequestConfig), { i18n: { t: n } } = gt(), { debounce: o } = qr(), c = o(async (s) => {
|
|
589
|
+
await Y(s);
|
|
590
|
+
}, 200), l = q(!1), u = q(""), m = q(""), p = q([]), _ = q([]), h = q(void 0), A = f(t);
|
|
591
|
+
let O = `${e.apiBaseUrl}${A}`;
|
|
592
592
|
e.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
593
|
-
const { isValidUuid: C } = yi(),
|
|
593
|
+
const { isValidUuid: C } = yi(), K = async () => {
|
|
594
594
|
try {
|
|
595
595
|
l.value = !0;
|
|
596
596
|
const { data: s } = await r.get(`${O}?size=${i}`);
|
|
@@ -600,48 +600,48 @@ function Zr(e, t, i, a = {
|
|
|
600
600
|
} finally {
|
|
601
601
|
l.value = !1;
|
|
602
602
|
}
|
|
603
|
-
},
|
|
603
|
+
}, N = q(""), Y = async (s) => {
|
|
604
604
|
var S, y, T;
|
|
605
|
-
if (
|
|
606
|
-
if (
|
|
605
|
+
if (N.value !== s)
|
|
606
|
+
if (N.value = s || "", h.value === void 0)
|
|
607
607
|
try {
|
|
608
608
|
if (l.value = !0, u.value = "", m.value = "", e.app === "konnect") {
|
|
609
|
-
let
|
|
610
|
-
s && (
|
|
611
|
-
const { data:
|
|
612
|
-
a.fetchedItemsKey in
|
|
609
|
+
let U = O + "";
|
|
610
|
+
s && (U += `/${s}`);
|
|
611
|
+
const { data: j } = await r.get(`${U}?size=${i}`);
|
|
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
|
-
const
|
|
615
|
-
C(s) && a.searchKeys.includes("id") ?
|
|
614
|
+
const U = [];
|
|
615
|
+
C(s) && a.searchKeys.includes("id") ? U.push((async () => {
|
|
616
616
|
const { data: L } = await r.get(`${O}/${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:
|
|
621
|
-
return
|
|
620
|
+
const { data: V } = await r.get(`${O}?${L}=${s}`);
|
|
621
|
+
return V[a.fetchedItemsKey];
|
|
622
622
|
})
|
|
623
623
|
);
|
|
624
|
-
const
|
|
625
|
-
p.value = [], (S =
|
|
626
|
-
var
|
|
627
|
-
(
|
|
624
|
+
const j = await Promise.all(U), z = /* @__PURE__ */ new Set();
|
|
625
|
+
p.value = [], (S = j == null ? void 0 : j.forEach) == null || S.call(j, (L) => {
|
|
626
|
+
var V;
|
|
627
|
+
(V = L == null ? void 0 : L.forEach) == null || V.call(L, (W) => {
|
|
628
628
|
z.has(W.id) || (z.add(W.id), p.value.push(W));
|
|
629
629
|
});
|
|
630
630
|
});
|
|
631
631
|
} else
|
|
632
632
|
p.value = _.value;
|
|
633
|
-
} catch (
|
|
634
|
-
((y =
|
|
633
|
+
} catch (U) {
|
|
634
|
+
((y = U == null ? void 0 : U.response) == null ? void 0 : y.status) === 404 ? m.value = n("debouncedFilter.errors.invalid") : (p.value = [], u.value = n("debouncedFilter.errors.fetch"));
|
|
635
635
|
} finally {
|
|
636
636
|
l.value = !1;
|
|
637
637
|
}
|
|
638
638
|
else
|
|
639
|
-
l.value = !0, m.value = "", s ? (p.value = (T = h.value) == null ? void 0 : T.filter((
|
|
640
|
-
var
|
|
639
|
+
l.value = !0, m.value = "", s ? (p.value = (T = h.value) == null ? void 0 : T.filter((U) => {
|
|
640
|
+
var j;
|
|
641
641
|
let z = !1;
|
|
642
642
|
for (const L of a.searchKeys) {
|
|
643
|
-
const
|
|
644
|
-
|
|
643
|
+
const V = typeof U[L] == "string" ? (j = U[L]) == null ? void 0 : j.toLowerCase() : U[L];
|
|
644
|
+
V != null && V.includes(s.toLowerCase()) && (z = !0);
|
|
645
645
|
}
|
|
646
646
|
return z;
|
|
647
647
|
}), (!p.value || !p.value.length) && (m.value = n("debouncedFilter.errors.invalid"))) : p.value = h.value, l.value = !1;
|
|
@@ -652,7 +652,7 @@ function Zr(e, t, i, a = {
|
|
|
652
652
|
validationError: m,
|
|
653
653
|
results: p,
|
|
654
654
|
allRecords: h,
|
|
655
|
-
loadItems:
|
|
655
|
+
loadItems: K,
|
|
656
656
|
debouncedQueryChange: c
|
|
657
657
|
};
|
|
658
658
|
}
|
|
@@ -704,7 +704,7 @@ function ea(e) {
|
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
function vi(e, t) {
|
|
707
|
-
const i =
|
|
707
|
+
const i = q(f(e)), a = q(f(t)), r = x(
|
|
708
708
|
() => !!(i.value.app === "konnect" || i.value.isExactMatch)
|
|
709
709
|
), n = x(
|
|
710
710
|
() => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
|
|
@@ -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((
|
|
717
|
-
h.searchParams.append(O,
|
|
716
|
+
return r.value && _ ? (h.search = "", h = i.value.isExactMatch ? new URL(`${h.href}/${_}/`) : new URL(`${h.href}?filter[name][contains]=${_}`)) : (r.value || new URLSearchParams(_).forEach((A, O) => {
|
|
717
|
+
h.searchParams.append(O, A);
|
|
718
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;
|
|
@@ -722,7 +722,7 @@ function vi(e, t) {
|
|
|
722
722
|
};
|
|
723
723
|
}
|
|
724
724
|
function ta(e, t, i = "data") {
|
|
725
|
-
const a = f(t), { axiosInstance: r } =
|
|
725
|
+
const a = f(t), { axiosInstance: r } = Nt(e.axiosRequestConfig), n = vi(e, a), o = q({
|
|
726
726
|
status: Oe.Idle
|
|
727
727
|
});
|
|
728
728
|
return { fetcher: async (c) => {
|
|
@@ -737,7 +737,7 @@ function ta(e, t, i = "data") {
|
|
|
737
737
|
const p = m.data, _ = i && i.replace(/[^\w-_]/gi, "");
|
|
738
738
|
let h;
|
|
739
739
|
p[_] && Array.isArray(p[_]) ? h = p[_] : Array.isArray(p) ? h = p : h = Object.keys(p).length ? [p] : [];
|
|
740
|
-
const
|
|
740
|
+
const A = {
|
|
741
741
|
data: h,
|
|
742
742
|
total: h.length,
|
|
743
743
|
...p.offset ? {
|
|
@@ -748,8 +748,8 @@ function ta(e, t, i = "data") {
|
|
|
748
748
|
};
|
|
749
749
|
return o.value = {
|
|
750
750
|
status: Oe.Idle,
|
|
751
|
-
response:
|
|
752
|
-
},
|
|
751
|
+
response: A
|
|
752
|
+
}, A;
|
|
753
753
|
} catch (u) {
|
|
754
754
|
const m = {
|
|
755
755
|
data: [],
|
|
@@ -774,20 +774,20 @@ function ia() {
|
|
|
774
774
|
convertKeyToTitle: e
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
const hi = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,
|
|
777
|
+
const hi = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Bt = (e) => {
|
|
778
778
|
if (typeof e != "string")
|
|
779
779
|
throw new TypeError("Invalid argument expected string");
|
|
780
780
|
const t = e.match(hi);
|
|
781
781
|
if (!t)
|
|
782
782
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
783
783
|
return t.shift(), t;
|
|
784
|
-
},
|
|
784
|
+
}, Kt = (e) => e === "*" || e === "x" || e === "X", Rt = (e) => {
|
|
785
785
|
const t = parseInt(e, 10);
|
|
786
786
|
return isNaN(t) ? e : t;
|
|
787
787
|
}, ra = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], aa = (e, t) => {
|
|
788
|
-
if (
|
|
788
|
+
if (Kt(e) || Kt(t))
|
|
789
789
|
return 0;
|
|
790
|
-
const [i, a] = ra(
|
|
790
|
+
const [i, a] = ra(Rt(e), Rt(t));
|
|
791
791
|
return i > a ? 1 : i < a ? -1 : 0;
|
|
792
792
|
}, Pt = (e, t) => {
|
|
793
793
|
for (let i = 0; i < Math.max(e.length, t.length); i++) {
|
|
@@ -797,7 +797,7 @@ const hi = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
797
797
|
}
|
|
798
798
|
return 0;
|
|
799
799
|
}, oa = (e, t) => {
|
|
800
|
-
const i =
|
|
800
|
+
const i = Bt(e), a = Bt(t), r = i.pop(), n = a.pop(), o = Pt(i, a);
|
|
801
801
|
return o !== 0 ? o : r && n ? Pt(r.split("."), n.split(".")) : r || n ? r ? -1 : 1 : 0;
|
|
802
802
|
}, Dt = (e, t, i) => {
|
|
803
803
|
na(i);
|
|
@@ -830,7 +830,7 @@ function sa(e) {
|
|
|
830
830
|
return !(o && Dt(r, o, "<") || c && Dt(r, c, ">"));
|
|
831
831
|
}
|
|
832
832
|
function ca(e) {
|
|
833
|
-
const t =
|
|
833
|
+
const t = q(0), i = q(0), a = q(!1);
|
|
834
834
|
return Ce(e, (r) => {
|
|
835
835
|
r && !a.value && (t.value = r.offsetWidth, i.value = r.scrollWidth, a.value = !0);
|
|
836
836
|
}), {
|
|
@@ -844,8 +844,8 @@ function ua() {
|
|
|
844
844
|
};
|
|
845
845
|
}
|
|
846
846
|
const ne = {
|
|
847
|
-
useAxios:
|
|
848
|
-
useDebouncedFilter:
|
|
847
|
+
useAxios: Nt,
|
|
848
|
+
useDebouncedFilter: Yr,
|
|
849
849
|
useDeleteUrlBuilder: Qr,
|
|
850
850
|
useErrors: Xr,
|
|
851
851
|
useExternalLinkCreator: ea,
|
|
@@ -888,10 +888,10 @@ const ne = {
|
|
|
888
888
|
class: Te(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
889
889
|
}, {
|
|
890
890
|
default: b(() => [
|
|
891
|
-
e.isArrayItem ? (v(),
|
|
892
|
-
|
|
891
|
+
e.isArrayItem ? (v(), I("legend", da, [
|
|
892
|
+
E("b", null, $(c.value), 1)
|
|
893
893
|
])) : H("", !0),
|
|
894
|
-
(v(!0),
|
|
894
|
+
(v(!0), I(he, null, ye(Object.keys(o.value), (m, p) => (v(), P(_i, {
|
|
895
895
|
key: `${r.value}-property-${p}`,
|
|
896
896
|
item: {
|
|
897
897
|
key: m,
|
|
@@ -920,8 +920,8 @@ const ne = {
|
|
|
920
920
|
setup(e) {
|
|
921
921
|
const { i18n: { t } } = ne.useI18n();
|
|
922
922
|
return (i, a) => {
|
|
923
|
-
const r =
|
|
924
|
-
return v(),
|
|
923
|
+
const r = R("KButton");
|
|
924
|
+
return v(), I("div", null, [
|
|
925
925
|
k(r, {
|
|
926
926
|
appearance: "tertiary",
|
|
927
927
|
class: "navigation-button",
|
|
@@ -946,7 +946,7 @@ const ne = {
|
|
|
946
946
|
setup(e) {
|
|
947
947
|
const { i18n: { t } } = ne.useI18n();
|
|
948
948
|
return (i, a) => {
|
|
949
|
-
const r =
|
|
949
|
+
const r = R("KBadge");
|
|
950
950
|
return v(), P(r, {
|
|
951
951
|
appearance: e.status ? "success" : "neutral"
|
|
952
952
|
}, {
|
|
@@ -957,11 +957,11 @@ const ne = {
|
|
|
957
957
|
}, 8, ["appearance"]);
|
|
958
958
|
};
|
|
959
959
|
}
|
|
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"],
|
|
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
|
}, Oa = /* @__PURE__ */ ee({
|
|
964
|
-
...
|
|
964
|
+
...ja,
|
|
965
965
|
props: {
|
|
966
966
|
item: {
|
|
967
967
|
type: Object,
|
|
@@ -980,7 +980,7 @@ const ne = {
|
|
|
980
980
|
},
|
|
981
981
|
emits: ["navigation-click"],
|
|
982
982
|
setup(e, { emit: t }) {
|
|
983
|
-
di((
|
|
983
|
+
di((A) => ({
|
|
984
984
|
dc1d91a8: m.value ? "none" : `solid ${f(ba)} ${f(va)}`,
|
|
985
985
|
"59ccec5f": u.value && c.value ? "block" : "flex",
|
|
986
986
|
"29318fbe": u.value && c.value ? "100%" : i.slim ? "50%" : "25%",
|
|
@@ -1056,8 +1056,8 @@ const ne = {
|
|
|
1056
1056
|
attrs: {
|
|
1057
1057
|
"data-testid": `${i.item.key}-internal-link`,
|
|
1058
1058
|
item: i.item,
|
|
1059
|
-
onNavigationClick: (
|
|
1060
|
-
a("navigation-click",
|
|
1059
|
+
onNavigationClick: (A) => {
|
|
1060
|
+
a("navigation-click", A);
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
1063
|
};
|
|
@@ -1096,16 +1096,16 @@ const ne = {
|
|
|
1096
1096
|
text: i.item.value
|
|
1097
1097
|
};
|
|
1098
1098
|
}
|
|
1099
|
-
}), _ =
|
|
1100
|
-
return (
|
|
1101
|
-
const C =
|
|
1102
|
-
return v(),
|
|
1103
|
-
|
|
1099
|
+
}), _ = q(), { isTruncated: h } = ne.useTruncationDetector(_);
|
|
1100
|
+
return (A, O) => {
|
|
1101
|
+
const C = R("KLabel"), K = R("KBadge"), N = R("KCopy"), Y = R("KTooltip");
|
|
1102
|
+
return v(), I("div", _a, [
|
|
1103
|
+
E("div", {
|
|
1104
1104
|
class: "config-card-details-label",
|
|
1105
1105
|
"data-testid": `${e.item.key}-label`
|
|
1106
1106
|
}, [
|
|
1107
|
-
ie(
|
|
1108
|
-
k(C, { "tooltip-attributes": { maxWidth: "500px" } },
|
|
1107
|
+
ie(A.$slots, "label", { item: e.item }, () => [
|
|
1108
|
+
k(C, { "tooltip-attributes": { maxWidth: "500px" } }, Ke({
|
|
1109
1109
|
default: b(() => [
|
|
1110
1110
|
J($(e.item.label) + " ", 1)
|
|
1111
1111
|
]),
|
|
@@ -1114,10 +1114,10 @@ const ne = {
|
|
|
1114
1114
|
l.value ? {
|
|
1115
1115
|
name: "tooltip",
|
|
1116
1116
|
fn: b(() => [
|
|
1117
|
-
|
|
1117
|
+
E("div", {
|
|
1118
1118
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1119
1119
|
}, [
|
|
1120
|
-
ie(
|
|
1120
|
+
ie(A.$slots, "label-tooltip", {}, () => [
|
|
1121
1121
|
J($(e.item.tooltip), 1)
|
|
1122
1122
|
], !0)
|
|
1123
1123
|
], 8, Ca)
|
|
@@ -1127,21 +1127,21 @@ const ne = {
|
|
|
1127
1127
|
]), 1024)
|
|
1128
1128
|
], !0)
|
|
1129
1129
|
], 8, ka),
|
|
1130
|
-
|
|
1130
|
+
E("div", {
|
|
1131
1131
|
class: "config-card-details-value",
|
|
1132
1132
|
"data-testid": `${e.item.key}-property-value`
|
|
1133
1133
|
}, [
|
|
1134
|
-
ie(
|
|
1134
|
+
ie(A.$slots, e.item.key, {
|
|
1135
1135
|
rowValue: e.item.value
|
|
1136
1136
|
}, () => [
|
|
1137
|
-
c.value ? (v(),
|
|
1137
|
+
c.value ? (v(), I("div", Aa, [
|
|
1138
1138
|
(v(), P(_e(p.value.tag), yr(vr(p.value.attrs)), {
|
|
1139
1139
|
default: b(() => [
|
|
1140
|
-
p.value.additionalComponent === "KBadge" ? (v(),
|
|
1140
|
+
p.value.additionalComponent === "KBadge" ? (v(), I("div", {
|
|
1141
1141
|
key: 0,
|
|
1142
1142
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1143
1143
|
}, [
|
|
1144
|
-
(v(!0),
|
|
1144
|
+
(v(!0), I(he, null, ye(e.item.value, (s, S) => (v(), P(K, {
|
|
1145
1145
|
key: `${e.item.key}-badge-tag-${S}`,
|
|
1146
1146
|
class: "config-badge",
|
|
1147
1147
|
"data-testid": `${e.item.key}-badge-tag-${S}`,
|
|
@@ -1153,23 +1153,23 @@ const ne = {
|
|
|
1153
1153
|
]),
|
|
1154
1154
|
_: 2
|
|
1155
1155
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1156
|
-
], 8,
|
|
1157
|
-
p.value.additionalComponent === "KCopy" ? (v(),
|
|
1156
|
+
], 8, Ia)) : H("", !0),
|
|
1157
|
+
p.value.additionalComponent === "KCopy" ? (v(), I("div", {
|
|
1158
1158
|
key: 1,
|
|
1159
1159
|
class: "copy-uuid-array",
|
|
1160
1160
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1161
1161
|
}, [
|
|
1162
|
-
(v(!0),
|
|
1162
|
+
(v(!0), I(he, null, ye(e.item.value, (s, S) => (v(), P(N, hr({ ref_for: !0 }, p.value.childAttrs, {
|
|
1163
1163
|
key: `${e.item.key}-copy-uuid-${S}`,
|
|
1164
1164
|
"data-testid": `${e.item.key}-copy-uuid-${S}`,
|
|
1165
1165
|
text: s
|
|
1166
1166
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1167
|
-
], 8, Ta)) : p.value.additionalComponent === "KMethodBadge" ? (v(),
|
|
1167
|
+
], 8, Ta)) : p.value.additionalComponent === "KMethodBadge" ? (v(), I("div", {
|
|
1168
1168
|
key: 2,
|
|
1169
1169
|
class: "method-badge-array",
|
|
1170
1170
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1171
1171
|
}, [
|
|
1172
|
-
(v(!0),
|
|
1172
|
+
(v(!0), I(he, null, ye(e.item.value, (s, S) => (v(), P(K, {
|
|
1173
1173
|
key: `${e.item.key}-badge-method-${S}`,
|
|
1174
1174
|
appearance: Object.values(f(br)).includes(s.toLowerCase()) ? s.toLowerCase() : "custom",
|
|
1175
1175
|
class: "config-badge",
|
|
@@ -1181,22 +1181,22 @@ const ne = {
|
|
|
1181
1181
|
_: 2
|
|
1182
1182
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1183
1183
|
], 8, $a)) : H("", !0),
|
|
1184
|
-
p.value.additionalComponent === "JsonCardItem" ? (v(),
|
|
1184
|
+
p.value.additionalComponent === "JsonCardItem" ? (v(), I("div", {
|
|
1185
1185
|
key: 3,
|
|
1186
1186
|
"data-testid": `${i.item.key}-json-array-content`
|
|
1187
1187
|
}, [
|
|
1188
|
-
(v(!0),
|
|
1188
|
+
(v(!0), I(he, null, ye(e.item.value, (s, S) => (v(), P(wi, {
|
|
1189
1189
|
key: `json-array-item-${S}`,
|
|
1190
1190
|
index: S,
|
|
1191
1191
|
"is-array-item": "",
|
|
1192
1192
|
item: s
|
|
1193
1193
|
}, null, 8, ["index", "item"]))), 128))
|
|
1194
|
-
], 8,
|
|
1194
|
+
], 8, Na)) : (v(), P(Y, {
|
|
1195
1195
|
key: 4,
|
|
1196
1196
|
text: f(h) ? e.item.value : ""
|
|
1197
1197
|
}, {
|
|
1198
1198
|
default: b(() => [
|
|
1199
|
-
|
|
1199
|
+
E("span", {
|
|
1200
1200
|
ref_key: "textContent",
|
|
1201
1201
|
ref: _,
|
|
1202
1202
|
class: Te(["attrs-data-text", { truncated: e.truncated }])
|
|
@@ -1207,7 +1207,7 @@ const ne = {
|
|
|
1207
1207
|
]),
|
|
1208
1208
|
_: 1
|
|
1209
1209
|
}, 16))
|
|
1210
|
-
])) : (v(),
|
|
1210
|
+
])) : (v(), I("div", {
|
|
1211
1211
|
key: 0,
|
|
1212
1212
|
"data-testid": `${e.item.key}-no-value`
|
|
1213
1213
|
}, " – ", 8, xa))
|
|
@@ -1216,7 +1216,7 @@ const ne = {
|
|
|
1216
1216
|
]);
|
|
1217
1217
|
};
|
|
1218
1218
|
}
|
|
1219
|
-
}), _i = /* @__PURE__ */ ve(Oa, [["__scopeId", "data-v-d268261c"]]), Ma = { class: "json-config" },
|
|
1219
|
+
}), _i = /* @__PURE__ */ ve(Oa, [["__scopeId", "data-v-d268261c"]]), Ma = { class: "json-config" }, Ea = {
|
|
1220
1220
|
key: 0,
|
|
1221
1221
|
class: "json-endpoint"
|
|
1222
1222
|
}, ki = /* @__PURE__ */ ee({
|
|
@@ -1258,9 +1258,9 @@ const ne = {
|
|
|
1258
1258
|
return n.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? n[n.length - 1] : n[n.length - 2]).length;
|
|
1259
1259
|
});
|
|
1260
1260
|
return (r, n) => {
|
|
1261
|
-
const o =
|
|
1262
|
-
return v(),
|
|
1263
|
-
t.fetcherUrl ? (v(),
|
|
1261
|
+
const o = R("KBadge"), c = R("KCodeBlock");
|
|
1262
|
+
return v(), I("div", Ma, [
|
|
1263
|
+
t.fetcherUrl ? (v(), I("div", Ea, [
|
|
1264
1264
|
k(o, {
|
|
1265
1265
|
appearance: t.requestMethod
|
|
1266
1266
|
}, {
|
|
@@ -1293,13 +1293,13 @@ const ne = {
|
|
|
1293
1293
|
function Ci(e) {
|
|
1294
1294
|
return typeof e > "u" || e === null;
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function Fa(e) {
|
|
1297
1297
|
return typeof e == "object" && e !== null;
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function Va(e) {
|
|
1300
1300
|
return Array.isArray(e) ? e : Ci(e) ? [] : [e];
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function qa(e, t) {
|
|
1303
1303
|
var i, a, r, n;
|
|
1304
1304
|
if (t)
|
|
1305
1305
|
for (n = Object.keys(t), i = 0, a = n.length; i < a; i += 1)
|
|
@@ -1312,13 +1312,13 @@ function La(e, t) {
|
|
|
1312
1312
|
i += e;
|
|
1313
1313
|
return i;
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function Ua(e) {
|
|
1316
1316
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1317
1317
|
}
|
|
1318
|
-
var
|
|
1319
|
-
isNothing:
|
|
1320
|
-
isObject:
|
|
1321
|
-
toArray:
|
|
1318
|
+
var Ba = Ci, Ka = Fa, Ra = Va, Pa = La, Da = Ua, za = qa, oe = {
|
|
1319
|
+
isNothing: Ba,
|
|
1320
|
+
isObject: Ka,
|
|
1321
|
+
toArray: Ra,
|
|
1322
1322
|
repeat: Pa,
|
|
1323
1323
|
isNegativeZero: Da,
|
|
1324
1324
|
extend: za
|
|
@@ -1395,7 +1395,7 @@ var Ga = Ha, Ja = [
|
|
|
1395
1395
|
"sequence",
|
|
1396
1396
|
"mapping"
|
|
1397
1397
|
];
|
|
1398
|
-
function
|
|
1398
|
+
function Za(e) {
|
|
1399
1399
|
var t = {};
|
|
1400
1400
|
return e !== null && Object.keys(e).forEach(function(i) {
|
|
1401
1401
|
e[i].forEach(function(a) {
|
|
@@ -1403,7 +1403,7 @@ function Ya(e) {
|
|
|
1403
1403
|
});
|
|
1404
1404
|
}), t;
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function Ya(e, t) {
|
|
1407
1407
|
if (t = t || {}, Object.keys(t).forEach(function(i) {
|
|
1408
1408
|
if (Ja.indexOf(i) === -1)
|
|
1409
1409
|
throw new de('Unknown option "' + i + '" is met in definition of "' + e + '" YAML type.');
|
|
@@ -1411,10 +1411,10 @@ function Za(e, t) {
|
|
|
1411
1411
|
return !0;
|
|
1412
1412
|
}, this.construct = t.construct || function(i) {
|
|
1413
1413
|
return i;
|
|
1414
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
1414
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Za(t.styleAliases || null), Wa.indexOf(this.kind) === -1)
|
|
1415
1415
|
throw new de('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1416
1416
|
}
|
|
1417
|
-
var se =
|
|
1417
|
+
var se = Ya;
|
|
1418
1418
|
function Ht(e, t) {
|
|
1419
1419
|
var i = [];
|
|
1420
1420
|
return e[t].forEach(function(a) {
|
|
@@ -1471,12 +1471,12 @@ kt.prototype.extend = function(e) {
|
|
|
1471
1471
|
var a = Object.create(kt.prototype);
|
|
1472
1472
|
return a.implicit = (this.implicit || []).concat(t), a.explicit = (this.explicit || []).concat(i), a.compiledImplicit = Ht(a, "implicit"), a.compiledExplicit = Ht(a, "explicit"), a.compiledTypeMap = Qa(a.compiledImplicit, a.compiledExplicit), a;
|
|
1473
1473
|
};
|
|
1474
|
-
var xi = kt,
|
|
1474
|
+
var xi = kt, Ai = new se("tag:yaml.org,2002:str", {
|
|
1475
1475
|
kind: "scalar",
|
|
1476
1476
|
construct: function(e) {
|
|
1477
1477
|
return e !== null ? e : "";
|
|
1478
1478
|
}
|
|
1479
|
-
}),
|
|
1479
|
+
}), Ii = new se("tag:yaml.org,2002:seq", {
|
|
1480
1480
|
kind: "sequence",
|
|
1481
1481
|
construct: function(e) {
|
|
1482
1482
|
return e !== null ? e : [];
|
|
@@ -1488,8 +1488,8 @@ var xi = kt, Ii = new se("tag:yaml.org,2002:str", {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
}), $i = new xi({
|
|
1490
1490
|
explicit: [
|
|
1491
|
-
Ii,
|
|
1492
1491
|
Ai,
|
|
1492
|
+
Ii,
|
|
1493
1493
|
Ti
|
|
1494
1494
|
]
|
|
1495
1495
|
});
|
|
@@ -1505,7 +1505,7 @@ function eo() {
|
|
|
1505
1505
|
function to(e) {
|
|
1506
1506
|
return e === null;
|
|
1507
1507
|
}
|
|
1508
|
-
var
|
|
1508
|
+
var Ni = new se("tag:yaml.org,2002:null", {
|
|
1509
1509
|
kind: "scalar",
|
|
1510
1510
|
resolve: Xa,
|
|
1511
1511
|
construct: eo,
|
|
@@ -1541,7 +1541,7 @@ function ro(e) {
|
|
|
1541
1541
|
function ao(e) {
|
|
1542
1542
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1543
1543
|
}
|
|
1544
|
-
var
|
|
1544
|
+
var ji = new se("tag:yaml.org,2002:bool", {
|
|
1545
1545
|
kind: "scalar",
|
|
1546
1546
|
resolve: io,
|
|
1547
1547
|
construct: ro,
|
|
@@ -1716,24 +1716,24 @@ var Mi = new se("tag:yaml.org,2002:float", {
|
|
|
1716
1716
|
predicate: vo,
|
|
1717
1717
|
represent: yo,
|
|
1718
1718
|
defaultStyle: "lowercase"
|
|
1719
|
-
}),
|
|
1719
|
+
}), Ei = $i.extend({
|
|
1720
1720
|
implicit: [
|
|
1721
|
-
ji,
|
|
1722
1721
|
Ni,
|
|
1722
|
+
ji,
|
|
1723
1723
|
Oi,
|
|
1724
1724
|
Mi
|
|
1725
1725
|
]
|
|
1726
|
-
}),
|
|
1726
|
+
}), Fi = Ei, Vi = new RegExp(
|
|
1727
1727
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1728
|
-
),
|
|
1728
|
+
), qi = new RegExp(
|
|
1729
1729
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
1730
1730
|
);
|
|
1731
1731
|
function ho(e) {
|
|
1732
|
-
return e === null ? !1 :
|
|
1732
|
+
return e === null ? !1 : Vi.exec(e) !== null || qi.exec(e) !== null;
|
|
1733
1733
|
}
|
|
1734
1734
|
function bo(e) {
|
|
1735
1735
|
var t, i, a, r, n, o, c, l = 0, u = null, m, p, _;
|
|
1736
|
-
if (t =
|
|
1736
|
+
if (t = Vi.exec(e), t === null && (t = qi.exec(e)), t === null)
|
|
1737
1737
|
throw new Error("Date resolve error");
|
|
1738
1738
|
if (i = +t[1], a = +t[2] - 1, r = +t[3], !t[4])
|
|
1739
1739
|
return new Date(Date.UTC(i, a, r));
|
|
@@ -1757,15 +1757,15 @@ var Li = new se("tag:yaml.org,2002:timestamp", {
|
|
|
1757
1757
|
function _o(e) {
|
|
1758
1758
|
return e === "<<" || e === null;
|
|
1759
1759
|
}
|
|
1760
|
-
var
|
|
1760
|
+
var Ui = new se("tag:yaml.org,2002:merge", {
|
|
1761
1761
|
kind: "scalar",
|
|
1762
1762
|
resolve: _o
|
|
1763
|
-
}),
|
|
1763
|
+
}), jt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1764
1764
|
\r`;
|
|
1765
1765
|
function ko(e) {
|
|
1766
1766
|
if (e === null)
|
|
1767
1767
|
return !1;
|
|
1768
|
-
var t, i, a = 0, r = e.length, n =
|
|
1768
|
+
var t, i, a = 0, r = e.length, n = jt;
|
|
1769
1769
|
for (i = 0; i < r; i++)
|
|
1770
1770
|
if (t = n.indexOf(e.charAt(i)), !(t > 64)) {
|
|
1771
1771
|
if (t < 0)
|
|
@@ -1775,13 +1775,13 @@ function ko(e) {
|
|
|
1775
1775
|
return a % 8 === 0;
|
|
1776
1776
|
}
|
|
1777
1777
|
function Co(e) {
|
|
1778
|
-
var t, i, a = e.replace(/[\r\n=]/g, ""), r = a.length, n =
|
|
1778
|
+
var t, i, a = e.replace(/[\r\n=]/g, ""), r = a.length, n = jt, o = 0, c = [];
|
|
1779
1779
|
for (t = 0; t < r; t++)
|
|
1780
1780
|
t % 4 === 0 && t && (c.push(o >> 16 & 255), c.push(o >> 8 & 255), c.push(o & 255)), o = o << 6 | n.indexOf(a.charAt(t));
|
|
1781
1781
|
return i = r % 4 * 6, i === 0 ? (c.push(o >> 16 & 255), c.push(o >> 8 & 255), c.push(o & 255)) : i === 18 ? (c.push(o >> 10 & 255), c.push(o >> 2 & 255)) : i === 12 && c.push(o >> 4 & 255), new Uint8Array(c);
|
|
1782
1782
|
}
|
|
1783
1783
|
function So(e) {
|
|
1784
|
-
var t = "", i = 0, a, r, n = e.length, o =
|
|
1784
|
+
var t = "", i = 0, a, r, n = e.length, o = jt;
|
|
1785
1785
|
for (a = 0; a < n; a++)
|
|
1786
1786
|
a % 3 === 0 && a && (t += o[i >> 18 & 63], t += o[i >> 12 & 63], t += o[i >> 6 & 63], t += o[i & 63]), i = (i << 8) + e[a];
|
|
1787
1787
|
return r = n % 3, r === 0 ? (t += o[i >> 18 & 63], t += o[i >> 12 & 63], t += o[i >> 6 & 63], t += o[i & 63]) : r === 2 ? (t += o[i >> 10 & 63], t += o[i >> 4 & 63], t += o[i << 2 & 63], t += o[64]) : r === 1 && (t += o[i >> 2 & 63], t += o[i << 4 & 63], t += o[64], t += o[64]), t;
|
|
@@ -1789,22 +1789,22 @@ function So(e) {
|
|
|
1789
1789
|
function xo(e) {
|
|
1790
1790
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1791
1791
|
}
|
|
1792
|
-
var
|
|
1792
|
+
var Bi = new se("tag:yaml.org,2002:binary", {
|
|
1793
1793
|
kind: "scalar",
|
|
1794
1794
|
resolve: ko,
|
|
1795
1795
|
construct: Co,
|
|
1796
1796
|
predicate: xo,
|
|
1797
1797
|
represent: So
|
|
1798
|
-
}),
|
|
1798
|
+
}), Ao = Object.prototype.hasOwnProperty, Io = Object.prototype.toString;
|
|
1799
1799
|
function To(e) {
|
|
1800
1800
|
if (e === null)
|
|
1801
1801
|
return !0;
|
|
1802
1802
|
var t = [], i, a, r, n, o, c = e;
|
|
1803
1803
|
for (i = 0, a = c.length; i < a; i += 1) {
|
|
1804
|
-
if (r = c[i], o = !1,
|
|
1804
|
+
if (r = c[i], o = !1, Io.call(r) !== "[object Object]")
|
|
1805
1805
|
return !1;
|
|
1806
1806
|
for (n in r)
|
|
1807
|
-
if (
|
|
1807
|
+
if (Ao.call(r, n))
|
|
1808
1808
|
if (!o)
|
|
1809
1809
|
o = !0;
|
|
1810
1810
|
else
|
|
@@ -1821,17 +1821,17 @@ function To(e) {
|
|
|
1821
1821
|
function $o(e) {
|
|
1822
1822
|
return e !== null ? e : [];
|
|
1823
1823
|
}
|
|
1824
|
-
var
|
|
1824
|
+
var Ki = new se("tag:yaml.org,2002:omap", {
|
|
1825
1825
|
kind: "sequence",
|
|
1826
1826
|
resolve: To,
|
|
1827
1827
|
construct: $o
|
|
1828
|
-
}),
|
|
1829
|
-
function
|
|
1828
|
+
}), No = Object.prototype.toString;
|
|
1829
|
+
function jo(e) {
|
|
1830
1830
|
if (e === null)
|
|
1831
1831
|
return !0;
|
|
1832
1832
|
var t, i, a, r, n, o = e;
|
|
1833
1833
|
for (n = new Array(o.length), t = 0, i = o.length; t < i; t += 1) {
|
|
1834
|
-
if (a = o[t],
|
|
1834
|
+
if (a = o[t], No.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
|
|
1835
1835
|
return !1;
|
|
1836
1836
|
n[t] = [r[0], a[r[0]]];
|
|
1837
1837
|
}
|
|
@@ -1845,12 +1845,12 @@ function Oo(e) {
|
|
|
1845
1845
|
a = o[t], r = Object.keys(a), n[t] = [r[0], a[r[0]]];
|
|
1846
1846
|
return n;
|
|
1847
1847
|
}
|
|
1848
|
-
var
|
|
1848
|
+
var Ri = new se("tag:yaml.org,2002:pairs", {
|
|
1849
1849
|
kind: "sequence",
|
|
1850
|
-
resolve:
|
|
1850
|
+
resolve: jo,
|
|
1851
1851
|
construct: Oo
|
|
1852
1852
|
}), Mo = Object.prototype.hasOwnProperty;
|
|
1853
|
-
function
|
|
1853
|
+
function Eo(e) {
|
|
1854
1854
|
if (e === null)
|
|
1855
1855
|
return !0;
|
|
1856
1856
|
var t, i = e;
|
|
@@ -1859,25 +1859,25 @@ function Fo(e) {
|
|
|
1859
1859
|
return !1;
|
|
1860
1860
|
return !0;
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1862
|
+
function Fo(e) {
|
|
1863
1863
|
return e !== null ? e : {};
|
|
1864
1864
|
}
|
|
1865
1865
|
var Pi = new se("tag:yaml.org,2002:set", {
|
|
1866
1866
|
kind: "mapping",
|
|
1867
|
-
resolve:
|
|
1868
|
-
construct:
|
|
1869
|
-
}), Ot =
|
|
1867
|
+
resolve: Eo,
|
|
1868
|
+
construct: Fo
|
|
1869
|
+
}), Ot = Fi.extend({
|
|
1870
1870
|
implicit: [
|
|
1871
1871
|
Li,
|
|
1872
|
-
|
|
1872
|
+
Ui
|
|
1873
1873
|
],
|
|
1874
1874
|
explicit: [
|
|
1875
|
-
|
|
1876
|
-
Ri,
|
|
1875
|
+
Bi,
|
|
1877
1876
|
Ki,
|
|
1877
|
+
Ri,
|
|
1878
1878
|
Pi
|
|
1879
1879
|
]
|
|
1880
|
-
}), $e = Object.prototype.hasOwnProperty, ct = 1, Di = 2, zi = 3, ut = 4, wt = 1,
|
|
1880
|
+
}), $e = Object.prototype.hasOwnProperty, ct = 1, Di = 2, zi = 3, ut = 4, wt = 1, Vo = 2, Gt = 3, qo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Lo = /[\x85\u2028\u2029]/, Uo = /[,\[\]\{\}]/, Hi = /^(?:!|!!|![a-z\-]+!)$/i, Gi = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1881
1881
|
function Jt(e) {
|
|
1882
1882
|
return Object.prototype.toString.call(e);
|
|
1883
1883
|
}
|
|
@@ -1890,17 +1890,17 @@ function Me(e) {
|
|
|
1890
1890
|
function ge(e) {
|
|
1891
1891
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function Ue(e) {
|
|
1894
1894
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1896
|
+
function Bo(e) {
|
|
1897
1897
|
var t;
|
|
1898
1898
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function Ko(e) {
|
|
1901
1901
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1902
1902
|
}
|
|
1903
|
-
function
|
|
1903
|
+
function Ro(e) {
|
|
1904
1904
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1905
1905
|
}
|
|
1906
1906
|
function Wt(e) {
|
|
@@ -1914,12 +1914,12 @@ function Po(e) {
|
|
|
1914
1914
|
);
|
|
1915
1915
|
}
|
|
1916
1916
|
var Ji = new Array(256), Wi = new Array(256);
|
|
1917
|
-
for (var
|
|
1918
|
-
Ji[
|
|
1917
|
+
for (var Ve = 0; Ve < 256; Ve++)
|
|
1918
|
+
Ji[Ve] = Wt(Ve) ? 1 : 0, Wi[Ve] = Wt(Ve);
|
|
1919
1919
|
function Do(e, t) {
|
|
1920
1920
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || Ot, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1922
|
+
function Zi(e, t) {
|
|
1923
1923
|
var i = {
|
|
1924
1924
|
name: e.filename,
|
|
1925
1925
|
buffer: e.input.slice(0, -1),
|
|
@@ -1930,57 +1930,57 @@ function Yi(e, t) {
|
|
|
1930
1930
|
};
|
|
1931
1931
|
return i.snippet = Ga(i), new de(t, i);
|
|
1932
1932
|
}
|
|
1933
|
-
function
|
|
1934
|
-
throw
|
|
1933
|
+
function F(e, t) {
|
|
1934
|
+
throw Zi(e, t);
|
|
1935
1935
|
}
|
|
1936
1936
|
function dt(e, t) {
|
|
1937
|
-
e.onWarning && e.onWarning.call(null,
|
|
1937
|
+
e.onWarning && e.onWarning.call(null, Zi(e, t));
|
|
1938
1938
|
}
|
|
1939
|
-
var
|
|
1939
|
+
var Zt = {
|
|
1940
1940
|
YAML: function(e, t, i) {
|
|
1941
1941
|
var a, r, n;
|
|
1942
|
-
e.version !== null &&
|
|
1942
|
+
e.version !== null && F(e, "duplication of %YAML directive"), i.length !== 1 && F(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), a === null && F(e, "ill-formed argument of the YAML directive"), r = parseInt(a[1], 10), n = parseInt(a[2], 10), r !== 1 && F(e, "unacceptable YAML version of the document"), e.version = i[0], e.checkLineBreaks = n < 2, n !== 1 && n !== 2 && dt(e, "unsupported YAML version of the document");
|
|
1943
1943
|
},
|
|
1944
1944
|
TAG: function(e, t, i) {
|
|
1945
1945
|
var a, r;
|
|
1946
|
-
i.length !== 2 &&
|
|
1946
|
+
i.length !== 2 && F(e, "TAG directive accepts exactly two arguments"), a = i[0], r = i[1], Hi.test(a) || F(e, "ill-formed tag handle (first argument) of the TAG directive"), $e.call(e.tagMap, a) && F(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Gi.test(r) || F(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1947
1947
|
try {
|
|
1948
1948
|
r = decodeURIComponent(r);
|
|
1949
1949
|
} catch {
|
|
1950
|
-
|
|
1950
|
+
F(e, "tag prefix is malformed: " + r);
|
|
1951
1951
|
}
|
|
1952
1952
|
e.tagMap[a] = r;
|
|
1953
1953
|
}
|
|
1954
1954
|
};
|
|
1955
|
-
function
|
|
1955
|
+
function Ie(e, t, i, a) {
|
|
1956
1956
|
var r, n, o, c;
|
|
1957
1957
|
if (t < i) {
|
|
1958
1958
|
if (c = e.input.slice(t, i), a)
|
|
1959
1959
|
for (r = 0, n = c.length; r < n; r += 1)
|
|
1960
|
-
o = c.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 ||
|
|
1960
|
+
o = c.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || F(e, "expected valid JSON character");
|
|
1961
1961
|
else
|
|
1962
|
-
|
|
1962
|
+
qo.test(c) && F(e, "the stream contains non-printable characters");
|
|
1963
1963
|
e.result += c;
|
|
1964
1964
|
}
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function Yt(e, t, i, a) {
|
|
1967
1967
|
var r, n, o, c;
|
|
1968
|
-
for (oe.isObject(i) ||
|
|
1968
|
+
for (oe.isObject(i) || F(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(i), o = 0, c = r.length; o < c; o += 1)
|
|
1969
1969
|
n = r[o], $e.call(t, n) || (t[n] = i[n], a[n] = !0);
|
|
1970
1970
|
}
|
|
1971
|
-
function
|
|
1971
|
+
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]) &&
|
|
1975
|
+
Array.isArray(r[u]) && F(e, "nested arrays are not supported inside keys"), typeof r == "object" && Jt(r[u]) === "[object Object]" && (r[u] = "[object Object]");
|
|
1976
1976
|
if (typeof r == "object" && Jt(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);
|
|
1980
1980
|
else
|
|
1981
|
-
|
|
1981
|
+
Yt(e, t, n, i);
|
|
1982
1982
|
else
|
|
1983
|
-
!e.json && !$e.call(i, r) && $e.call(t, r) && (e.line = o || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position,
|
|
1983
|
+
!e.json && !$e.call(i, r) && $e.call(t, r) && (e.line = o || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, F(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(t, r, {
|
|
1984
1984
|
configurable: !0,
|
|
1985
1985
|
enumerable: !0,
|
|
1986
1986
|
writable: !0,
|
|
@@ -1990,7 +1990,7 @@ function Ue(e, t, i, a, r, n, o, c, l) {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
function Mt(e) {
|
|
1992
1992
|
var t;
|
|
1993
|
-
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
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; ) {
|
|
@@ -2012,23 +2012,23 @@ function mt(e) {
|
|
|
2012
2012
|
var t = e.position, i;
|
|
2013
2013
|
return i = e.input.charCodeAt(t), !!((i === 45 || i === 46) && i === e.input.charCodeAt(t + 1) && i === e.input.charCodeAt(t + 2) && (t += 3, i = e.input.charCodeAt(t), i === 0 || ge(i)));
|
|
2014
2014
|
}
|
|
2015
|
-
function
|
|
2015
|
+
function Et(e, t) {
|
|
2016
2016
|
t === 1 ? e.result += " " : t > 1 && (e.result += oe.repeat(`
|
|
2017
2017
|
`, t - 1));
|
|
2018
2018
|
}
|
|
2019
2019
|
function zo(e, t, i) {
|
|
2020
2020
|
var a, r, n, o, c, l, u, m, p = e.kind, _ = e.result, h;
|
|
2021
|
-
if (h = e.input.charCodeAt(e.position), ge(h) ||
|
|
2021
|
+
if (h = e.input.charCodeAt(e.position), ge(h) || Ue(h) || h === 35 || h === 38 || h === 42 || h === 33 || h === 124 || h === 62 || h === 39 || h === 34 || h === 37 || h === 64 || h === 96 || (h === 63 || h === 45) && (r = e.input.charCodeAt(e.position + 1), ge(r) || i && Ue(r)))
|
|
2022
2022
|
return !1;
|
|
2023
2023
|
for (e.kind = "scalar", e.result = "", n = o = e.position, c = !1; h !== 0; ) {
|
|
2024
2024
|
if (h === 58) {
|
|
2025
|
-
if (r = e.input.charCodeAt(e.position + 1), ge(r) || i &&
|
|
2025
|
+
if (r = e.input.charCodeAt(e.position + 1), ge(r) || i && Ue(r))
|
|
2026
2026
|
break;
|
|
2027
2027
|
} else if (h === 35) {
|
|
2028
2028
|
if (a = e.input.charCodeAt(e.position - 1), ge(a))
|
|
2029
2029
|
break;
|
|
2030
2030
|
} else {
|
|
2031
|
-
if (e.position === e.lineStart && mt(e) || i &&
|
|
2031
|
+
if (e.position === e.lineStart && mt(e) || i && Ue(h))
|
|
2032
2032
|
break;
|
|
2033
2033
|
if (be(h))
|
|
2034
2034
|
if (l = e.line, u = e.lineStart, m = e.lineIndent, re(e, !1, -1), e.lineIndent >= t) {
|
|
@@ -2039,9 +2039,9 @@ function zo(e, t, i) {
|
|
|
2039
2039
|
break;
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
|
-
c && (
|
|
2042
|
+
c && (Ie(e, n, o, !1), Et(e, e.line - l), n = o = e.position, c = !1), Me(h) || (o = e.position + 1), h = e.input.charCodeAt(++e.position);
|
|
2043
2043
|
}
|
|
2044
|
-
return
|
|
2044
|
+
return Ie(e, n, o, !1), e.result ? !0 : (e.kind = p, e.result = _, !1);
|
|
2045
2045
|
}
|
|
2046
2046
|
function Ho(e, t) {
|
|
2047
2047
|
var i, a, r;
|
|
@@ -2049,13 +2049,13 @@ function Ho(e, t) {
|
|
|
2049
2049
|
return !1;
|
|
2050
2050
|
for (e.kind = "scalar", e.result = "", e.position++, a = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0; )
|
|
2051
2051
|
if (i === 39)
|
|
2052
|
-
if (
|
|
2052
|
+
if (Ie(e, a, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39)
|
|
2053
2053
|
a = e.position, e.position++, r = e.position;
|
|
2054
2054
|
else
|
|
2055
2055
|
return !0;
|
|
2056
2056
|
else
|
|
2057
|
-
be(i) ? (
|
|
2058
|
-
|
|
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
|
+
F(e, "unexpected end of the stream within a single quoted scalar");
|
|
2059
2059
|
}
|
|
2060
2060
|
function Go(e, t) {
|
|
2061
2061
|
var i, a, r, n, o, c;
|
|
@@ -2063,38 +2063,38 @@ function Go(e, t) {
|
|
|
2063
2063
|
return !1;
|
|
2064
2064
|
for (e.kind = "scalar", e.result = "", e.position++, i = a = e.position; (c = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
2065
2065
|
if (c === 34)
|
|
2066
|
-
return
|
|
2066
|
+
return Ie(e, i, e.position, !0), e.position++, !0;
|
|
2067
2067
|
if (c === 92) {
|
|
2068
|
-
if (
|
|
2068
|
+
if (Ie(e, i, e.position, !0), c = e.input.charCodeAt(++e.position), be(c))
|
|
2069
2069
|
re(e, !1, t);
|
|
2070
2070
|
else if (c < 256 && Ji[c])
|
|
2071
2071
|
e.result += Wi[c], e.position++;
|
|
2072
|
-
else if ((o =
|
|
2072
|
+
else if ((o = Ko(c)) > 0) {
|
|
2073
2073
|
for (r = o, n = 0; r > 0; r--)
|
|
2074
|
-
c = e.input.charCodeAt(++e.position), (o =
|
|
2074
|
+
c = e.input.charCodeAt(++e.position), (o = Bo(c)) >= 0 ? n = (n << 4) + o : F(e, "expected hexadecimal character");
|
|
2075
2075
|
e.result += Po(n), e.position++;
|
|
2076
2076
|
} else
|
|
2077
|
-
|
|
2077
|
+
F(e, "unknown escape sequence");
|
|
2078
2078
|
i = a = e.position;
|
|
2079
2079
|
} else
|
|
2080
|
-
be(c) ? (
|
|
2080
|
+
be(c) ? (Ie(e, i, a, !0), Et(e, re(e, !1, t)), i = a = e.position) : e.position === e.lineStart && mt(e) ? F(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
|
|
2081
2081
|
}
|
|
2082
|
-
|
|
2082
|
+
F(e, "unexpected end of the stream within a double quoted scalar");
|
|
2083
2083
|
}
|
|
2084
2084
|
function Jo(e, t) {
|
|
2085
|
-
var i = !0, a, r, n, o = e.tag, c, l = e.anchor, u, m, p, _, h,
|
|
2086
|
-
if (
|
|
2085
|
+
var i = !0, a, r, n, o = e.tag, c, l = e.anchor, u, m, p, _, h, A = /* @__PURE__ */ Object.create(null), O, C, K, N;
|
|
2086
|
+
if (N = e.input.charCodeAt(e.position), N === 91)
|
|
2087
2087
|
m = 93, h = !1, c = [];
|
|
2088
|
-
else if (
|
|
2088
|
+
else if (N === 123)
|
|
2089
2089
|
m = 125, h = !0, c = {};
|
|
2090
2090
|
else
|
|
2091
2091
|
return !1;
|
|
2092
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = c),
|
|
2093
|
-
if (re(e, !0, t),
|
|
2092
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), N = e.input.charCodeAt(++e.position); N !== 0; ) {
|
|
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 ?
|
|
2095
|
+
i ? N === 44 && F(e, "expected the node content, but found ','") : F(e, "missed comma between flow collection entries"), C = O = K = null, p = _ = !1, N === 63 && (u = e.input.charCodeAt(e.position + 1), ge(u) && (p = _ = !0, e.position++, re(e, !0, t))), a = e.line, r = e.lineStart, n = e.position, Re(e, t, ct, !1, !0), C = e.tag, O = e.result, re(e, !0, t), N = e.input.charCodeAt(e.position), (_ || e.line === a) && N === 58 && (p = !0, N = e.input.charCodeAt(++e.position), re(e, !0, t), Re(e, t, ct, !1, !0), K = e.result), h ? Be(e, c, A, C, O, K, a, r, n) : p ? c.push(Be(e, null, A, C, O, K, a, r, n)) : c.push(O), re(e, !0, t), N = e.input.charCodeAt(e.position), N === 44 ? (i = !0, N = e.input.charCodeAt(++e.position)) : i = !1;
|
|
2096
2096
|
}
|
|
2097
|
-
|
|
2097
|
+
F(e, "unexpected end of the stream within a flow collection");
|
|
2098
2098
|
}
|
|
2099
2099
|
function Wo(e, t) {
|
|
2100
2100
|
var i, a, r = wt, n = !1, o = !1, c = t, l = 0, u = !1, m, p;
|
|
@@ -2106,9 +2106,9 @@ 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 ? Gt :
|
|
2110
|
-
else if ((m =
|
|
2111
|
-
m === 0 ?
|
|
2109
|
+
wt === r ? r = p === 43 ? Gt : Vo : F(e, "repeat of a chomping mode identifier");
|
|
2110
|
+
else if ((m = Ro(p)) >= 0)
|
|
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
2114
|
if (Me(p)) {
|
|
@@ -2139,7 +2139,7 @@ function Wo(e, t) {
|
|
|
2139
2139
|
`, l) : e.result += oe.repeat(`
|
|
2140
2140
|
`, n ? 1 + l : l), n = !0, o = !0, l = 0, i = e.position; !be(p) && p !== 0; )
|
|
2141
2141
|
p = e.input.charCodeAt(++e.position);
|
|
2142
|
-
|
|
2142
|
+
Ie(e, i, e.position, !1);
|
|
2143
2143
|
}
|
|
2144
2144
|
return !0;
|
|
2145
2145
|
}
|
|
@@ -2147,110 +2147,110 @@ function Qt(e, t) {
|
|
|
2147
2147
|
var i, a = e.tag, r = e.anchor, n = [], o, c = !1, l;
|
|
2148
2148
|
if (e.firstTabInLine !== -1)
|
|
2149
2149
|
return !1;
|
|
2150
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = n), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2150
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = n), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, F(e, "tab characters must not be used in indentation")), !(l !== 45 || (o = e.input.charCodeAt(e.position + 1), !ge(o)))); ) {
|
|
2151
2151
|
if (c = !0, e.position++, re(e, !0, -1) && e.lineIndent <= t) {
|
|
2152
2152
|
n.push(null), l = e.input.charCodeAt(e.position);
|
|
2153
2153
|
continue;
|
|
2154
2154
|
}
|
|
2155
|
-
if (i = e.line,
|
|
2156
|
-
|
|
2155
|
+
if (i = e.line, Re(e, t, zi, !1, !0), n.push(e.result), re(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > t) && l !== 0)
|
|
2156
|
+
F(e, "bad indentation of a sequence entry");
|
|
2157
2157
|
else if (e.lineIndent < t)
|
|
2158
2158
|
break;
|
|
2159
2159
|
}
|
|
2160
2160
|
return c ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = n, !0) : !1;
|
|
2161
2161
|
}
|
|
2162
|
-
function
|
|
2163
|
-
var a, r, n, o, c, l, u = e.tag, m = e.anchor, p = {}, _ = /* @__PURE__ */ Object.create(null), h = null,
|
|
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, O = null, C = !1, K = !1, N;
|
|
2164
2164
|
if (e.firstTabInLine !== -1)
|
|
2165
2165
|
return !1;
|
|
2166
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = p),
|
|
2167
|
-
if (!C && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2168
|
-
|
|
2166
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), N = e.input.charCodeAt(e.position); N !== 0; ) {
|
|
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 = O = null), K = !0, C = !0, r = !0) : C ? (C = !1, r = !0) : F(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, N = a;
|
|
2169
2169
|
else {
|
|
2170
|
-
if (o = e.line, c = e.lineStart, l = e.position, !
|
|
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 (
|
|
2174
|
-
|
|
2175
|
-
if (
|
|
2176
|
-
|
|
2177
|
-
else if (
|
|
2178
|
-
|
|
2173
|
+
for (N = e.input.charCodeAt(e.position); Me(N); )
|
|
2174
|
+
N = e.input.charCodeAt(++e.position);
|
|
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 = O = null), K = !0, C = !1, r = !1, h = e.tag, A = e.result;
|
|
2177
|
+
else if (K)
|
|
2178
|
+
F(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2179
2179
|
else
|
|
2180
2180
|
return e.tag = u, e.anchor = m, !0;
|
|
2181
|
-
} else if (
|
|
2182
|
-
|
|
2181
|
+
} else if (K)
|
|
2182
|
+
F(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
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),
|
|
2187
|
-
|
|
2186
|
+
if ((e.line === n || e.lineIndent > t) && (C && (o = e.line, c = e.lineStart, l = e.position), Re(e, t, ut, !0, r) && (C ? A = e.result : O = e.result), C || (Be(e, p, _, h, A, O, o, c, l), h = A = O = null), re(e, !0, -1), N = e.input.charCodeAt(e.position)), (e.line === n || e.lineIndent > t) && N !== 0)
|
|
2187
|
+
F(e, "bad indentation of a mapping entry");
|
|
2188
2188
|
else if (e.lineIndent < t)
|
|
2189
2189
|
break;
|
|
2190
2190
|
}
|
|
2191
|
-
return C &&
|
|
2191
|
+
return C && Be(e, p, _, h, A, null, o, c, l), K && (e.tag = u, e.anchor = m, e.kind = "mapping", e.result = p), K;
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function Yo(e) {
|
|
2194
2194
|
var t, i = !1, a = !1, r, n, o;
|
|
2195
2195
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
2196
2196
|
return !1;
|
|
2197
|
-
if (e.tag !== null &&
|
|
2197
|
+
if (e.tag !== null && F(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (i = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (a = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, i) {
|
|
2198
2198
|
do
|
|
2199
2199
|
o = e.input.charCodeAt(++e.position);
|
|
2200
2200
|
while (o !== 0 && o !== 62);
|
|
2201
|
-
e.position < e.length ? (n = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) :
|
|
2201
|
+
e.position < e.length ? (n = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : F(e, "unexpected end of the stream within a verbatim tag");
|
|
2202
2202
|
} else {
|
|
2203
2203
|
for (; o !== 0 && !ge(o); )
|
|
2204
|
-
o === 33 && (a ?
|
|
2205
|
-
n = e.input.slice(t, e.position),
|
|
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
|
+
n = e.input.slice(t, e.position), Uo.test(n) && F(e, "tag suffix cannot contain flow indicator characters");
|
|
2206
2206
|
}
|
|
2207
|
-
n && !Gi.test(n) &&
|
|
2207
|
+
n && !Gi.test(n) && F(e, "tag name cannot contain such characters: " + n);
|
|
2208
2208
|
try {
|
|
2209
2209
|
n = decodeURIComponent(n);
|
|
2210
2210
|
} catch {
|
|
2211
|
-
|
|
2211
|
+
F(e, "tag name is malformed: " + n);
|
|
2212
2212
|
}
|
|
2213
|
-
return i ? e.tag = n : $e.call(e.tagMap, r) ? e.tag = e.tagMap[r] + n : r === "!" ? e.tag = "!" + n : r === "!!" ? e.tag = "tag:yaml.org,2002:" + n :
|
|
2213
|
+
return i ? e.tag = n : $e.call(e.tagMap, r) ? e.tag = e.tagMap[r] + n : r === "!" ? e.tag = "!" + n : r === "!!" ? e.tag = "tag:yaml.org,2002:" + n : F(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
2214
2214
|
}
|
|
2215
2215
|
function Qo(e) {
|
|
2216
2216
|
var t, i;
|
|
2217
2217
|
if (i = e.input.charCodeAt(e.position), i !== 38)
|
|
2218
2218
|
return !1;
|
|
2219
|
-
for (e.anchor !== null &&
|
|
2219
|
+
for (e.anchor !== null && F(e, "duplication of an anchor property"), i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !ge(i) && !Ue(i); )
|
|
2220
2220
|
i = e.input.charCodeAt(++e.position);
|
|
2221
|
-
return e.position === t &&
|
|
2221
|
+
return e.position === t && F(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
2222
2222
|
}
|
|
2223
2223
|
function Xo(e) {
|
|
2224
2224
|
var t, i, a;
|
|
2225
2225
|
if (a = e.input.charCodeAt(e.position), a !== 42)
|
|
2226
2226
|
return !1;
|
|
2227
|
-
for (a = e.input.charCodeAt(++e.position), t = e.position; a !== 0 && !ge(a) && !
|
|
2227
|
+
for (a = e.input.charCodeAt(++e.position), t = e.position; a !== 0 && !ge(a) && !Ue(a); )
|
|
2228
2228
|
a = e.input.charCodeAt(++e.position);
|
|
2229
|
-
return e.position === t &&
|
|
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
|
-
function
|
|
2232
|
-
var n, o, c, l = 1, u = !1, m = !1, p, _, h,
|
|
2231
|
+
function Re(e, t, i, a, r) {
|
|
2232
|
+
var n, o, c, l = 1, u = !1, m = !1, p, _, h, A, O, 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
|
-
for (;
|
|
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 ? O = t : O = t + 1, C = e.position - e.lineStart, l === 1 ? c && (Qt(e, C) ||
|
|
2236
|
+
if (c && (c = u || r), (l === 1 || ut === i) && (ct === i || Di === i ? O = t : O = t + 1, C = e.position - e.lineStart, l === 1 ? c && (Qt(e, C) || Zo(e, C, O)) || Jo(e, O) ? m = !0 : (o && Wo(e, O) || Ho(e, O) || Go(e, O) ? m = !0 : Xo(e) ? (m = !0, (e.tag !== null || e.anchor !== null) && F(e, "alias node should not have any properties")) : zo(e, O, ct === i) && (m = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (m = c && Qt(e, C))), e.tag === null)
|
|
2237
2237
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2238
2238
|
else if (e.tag === "?") {
|
|
2239
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
2240
|
-
if (
|
|
2241
|
-
e.result =
|
|
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)
|
|
2240
|
+
if (A = e.implicitTypes[p], A.resolve(e.result)) {
|
|
2241
|
+
e.result = A.construct(e.result), e.tag = A.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2242
2242
|
break;
|
|
2243
2243
|
}
|
|
2244
2244
|
} else if (e.tag !== "!") {
|
|
2245
2245
|
if ($e.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2246
|
-
|
|
2246
|
+
A = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2247
2247
|
else
|
|
2248
|
-
for (
|
|
2248
|
+
for (A = null, h = e.typeMap.multi[e.kind || "fallback"], p = 0, _ = h.length; p < _; p += 1)
|
|
2249
2249
|
if (e.tag.slice(0, h[p].tag.length) === h[p].tag) {
|
|
2250
|
-
|
|
2250
|
+
A = h[p];
|
|
2251
2251
|
break;
|
|
2252
2252
|
}
|
|
2253
|
-
|
|
2253
|
+
A || F(e, "unknown tag !<" + e.tag + ">"), e.result !== null && A.kind !== e.kind && F(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + A.kind + '", not "' + e.kind + '"'), A.resolve(e.result, e.tag) ? (e.result = A.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : F(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2254
2254
|
}
|
|
2255
2255
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || m;
|
|
2256
2256
|
}
|
|
@@ -2259,7 +2259,7 @@ function en(e) {
|
|
|
2259
2259
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (re(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
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
|
-
for (a = e.input.slice(i, e.position), r = [], a.length < 1 &&
|
|
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
2263
|
for (; Me(o); )
|
|
2264
2264
|
o = e.input.charCodeAt(++e.position);
|
|
2265
2265
|
if (o === 35) {
|
|
@@ -2274,22 +2274,22 @@ 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 && Mt(e), $e.call(
|
|
2277
|
+
o !== 0 && Mt(e), $e.call(Zt, a) ? Zt[a](e, a, r) : dt(e, 'unknown document directive "' + a + '"');
|
|
2278
2278
|
}
|
|
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 &&
|
|
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));
|
|
2281
2281
|
return;
|
|
2282
2282
|
}
|
|
2283
2283
|
if (e.position < e.length - 1)
|
|
2284
|
-
|
|
2284
|
+
F(e, "end of the stream or a document separator is expected");
|
|
2285
2285
|
else
|
|
2286
2286
|
return;
|
|
2287
2287
|
}
|
|
2288
|
-
function
|
|
2288
|
+
function Yi(e, t) {
|
|
2289
2289
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2290
2290
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2291
2291
|
var i = new Do(e, t), a = e.indexOf("\0");
|
|
2292
|
-
for (a !== -1 && (i.position = a,
|
|
2292
|
+
for (a !== -1 && (i.position = a, F(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32; )
|
|
2293
2293
|
i.lineIndent += 1, i.position += 1;
|
|
2294
2294
|
for (; i.position < i.length - 1; )
|
|
2295
2295
|
en(i);
|
|
@@ -2297,14 +2297,14 @@ function Zi(e, t) {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
function tn(e, t, i) {
|
|
2299
2299
|
t !== null && typeof t == "object" && typeof i > "u" && (i = t, t = null);
|
|
2300
|
-
var a =
|
|
2300
|
+
var a = Yi(e, i);
|
|
2301
2301
|
if (typeof t != "function")
|
|
2302
2302
|
return a;
|
|
2303
2303
|
for (var r = 0, n = a.length; r < n; r += 1)
|
|
2304
2304
|
t(a[r]);
|
|
2305
2305
|
}
|
|
2306
2306
|
function rn(e, t) {
|
|
2307
|
-
var i =
|
|
2307
|
+
var i = Yi(e, t);
|
|
2308
2308
|
if (i.length !== 0) {
|
|
2309
2309
|
if (i.length === 1)
|
|
2310
2310
|
return i[0];
|
|
@@ -2314,7 +2314,7 @@ function rn(e, t) {
|
|
|
2314
2314
|
var an = tn, on = rn, Qi = {
|
|
2315
2315
|
loadAll: an,
|
|
2316
2316
|
load: on
|
|
2317
|
-
}, Xi = Object.prototype.toString, er = Object.prototype.hasOwnProperty,
|
|
2317
|
+
}, Xi = Object.prototype.toString, er = Object.prototype.hasOwnProperty, Ft = 65279, nn = 9, et = 10, ln = 13, sn = 32, cn = 33, un = 34, Ct = 35, dn = 37, pn = 38, fn = 39, gn = 42, tr = 44, mn = 45, pt = 58, yn = 61, vn = 62, hn = 63, bn = 64, ir = 91, rr = 93, wn = 96, ar = 123, _n = 124, or = 125, ue = {};
|
|
2318
2318
|
ue[0] = "\\0";
|
|
2319
2319
|
ue[7] = "\\a";
|
|
2320
2320
|
ue[8] = "\\b";
|
|
@@ -2368,9 +2368,9 @@ function xn(e) {
|
|
|
2368
2368
|
throw new de("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2369
2369
|
return "\\" + i + oe.repeat("0", a - t.length) + t;
|
|
2370
2370
|
}
|
|
2371
|
-
var
|
|
2372
|
-
function
|
|
2373
|
-
this.schema = e.schema || Ot, 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 :
|
|
2371
|
+
var An = 1, tt = 2;
|
|
2372
|
+
function In(e) {
|
|
2373
|
+
this.schema = e.schema || Ot, 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; )
|
|
@@ -2394,10 +2394,10 @@ function ft(e) {
|
|
|
2394
2394
|
return e === sn || e === nn;
|
|
2395
2395
|
}
|
|
2396
2396
|
function it(e) {
|
|
2397
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2397
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Ft || 65536 <= e && e <= 1114111;
|
|
2398
2398
|
}
|
|
2399
2399
|
function ei(e) {
|
|
2400
|
-
return it(e) && e !==
|
|
2400
|
+
return it(e) && e !== Ft && e !== ln && e !== et;
|
|
2401
2401
|
}
|
|
2402
2402
|
function ti(e, t, i) {
|
|
2403
2403
|
var a = ei(e), r = a && !ft(e);
|
|
@@ -2410,12 +2410,12 @@ function ti(e, t, i) {
|
|
|
2410
2410
|
);
|
|
2411
2411
|
}
|
|
2412
2412
|
function $n(e) {
|
|
2413
|
-
return it(e) && e !==
|
|
2413
|
+
return it(e) && e !== Ft && !ft(e) && e !== mn && e !== hn && e !== pt && e !== tr && e !== ir && e !== rr && e !== ar && e !== or && e !== Ct && e !== pn && e !== gn && e !== cn && e !== _n && e !== yn && e !== vn && e !== fn && e !== un && e !== dn && e !== bn && e !== wn;
|
|
2414
2414
|
}
|
|
2415
|
-
function
|
|
2415
|
+
function Nn(e) {
|
|
2416
2416
|
return !ft(e) && e !== pt;
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2418
|
+
function Ye(e, t) {
|
|
2419
2419
|
var i = e.charCodeAt(t), a;
|
|
2420
2420
|
return i >= 55296 && i <= 56319 && t + 1 < e.length && (a = e.charCodeAt(t + 1), a >= 56320 && a <= 57343) ? (i - 55296) * 1024 + a - 56320 + 65536 : i;
|
|
2421
2421
|
}
|
|
@@ -2423,27 +2423,27 @@ function nr(e) {
|
|
|
2423
2423
|
var t = /^\n* /;
|
|
2424
2424
|
return t.test(e);
|
|
2425
2425
|
}
|
|
2426
|
-
var lr = 1, xt = 2, sr = 3, cr = 4,
|
|
2427
|
-
function
|
|
2428
|
-
var l, u = 0, m = null, p = !1, _ = !1, h = a !== -1,
|
|
2426
|
+
var lr = 1, xt = 2, sr = 3, cr = 4, qe = 5;
|
|
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, O = $n(Ye(e, 0)) && Nn(Ye(e, e.length - 1));
|
|
2429
2429
|
if (t || o)
|
|
2430
2430
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2431
|
-
if (u =
|
|
2432
|
-
return
|
|
2431
|
+
if (u = Ye(e, l), !it(u))
|
|
2432
|
+
return qe;
|
|
2433
2433
|
O = O && ti(u, m, c), m = u;
|
|
2434
2434
|
}
|
|
2435
2435
|
else {
|
|
2436
2436
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2437
|
-
if (u =
|
|
2437
|
+
if (u = Ye(e, l), u === et)
|
|
2438
2438
|
p = !0, h && (_ = _ || // Foldable line = too long, and not more-indented.
|
|
2439
|
-
l -
|
|
2439
|
+
l - A - 1 > a && e[A + 1] !== " ", A = l);
|
|
2440
2440
|
else if (!it(u))
|
|
2441
|
-
return
|
|
2441
|
+
return qe;
|
|
2442
2442
|
O = O && ti(u, m, c), m = u;
|
|
2443
2443
|
}
|
|
2444
|
-
_ = _ || h && l -
|
|
2444
|
+
_ = _ || h && l - A - 1 > a && e[A + 1] !== " ";
|
|
2445
2445
|
}
|
|
2446
|
-
return !p && !_ ? O && !o && !r(e) ? lr : n === tt ?
|
|
2446
|
+
return !p && !_ ? O && !o && !r(e) ? lr : n === tt ? qe : xt : i > 9 && nr(e) ? qe : o ? n === tt ? qe : xt : _ ? cr : sr;
|
|
2447
2447
|
}
|
|
2448
2448
|
function On(e, t, i, a, r) {
|
|
2449
2449
|
e.dump = function() {
|
|
@@ -2455,7 +2455,7 @@ function On(e, t, i, a, r) {
|
|
|
2455
2455
|
function l(u) {
|
|
2456
2456
|
return Tn(e, u);
|
|
2457
2457
|
}
|
|
2458
|
-
switch (
|
|
2458
|
+
switch (jn(
|
|
2459
2459
|
t,
|
|
2460
2460
|
c,
|
|
2461
2461
|
e.indent,
|
|
@@ -2473,8 +2473,8 @@ function On(e, t, i, a, r) {
|
|
|
2473
2473
|
return "|" + ii(t, e.indent) + ri(Xt(t, n));
|
|
2474
2474
|
case cr:
|
|
2475
2475
|
return ">" + ii(t, e.indent) + ri(Xt(Mn(t, o), n));
|
|
2476
|
-
case
|
|
2477
|
-
return '"' +
|
|
2476
|
+
case qe:
|
|
2477
|
+
return '"' + En(t) + '"';
|
|
2478
2478
|
default:
|
|
2479
2479
|
throw new de("impossible error: invalid scalar style");
|
|
2480
2480
|
}
|
|
@@ -2515,12 +2515,12 @@ function ai(e, t) {
|
|
|
2515
2515
|
`, e.length - r > t && o > r ? l += e.slice(r, o) + `
|
|
2516
2516
|
` + e.slice(o + 1) : l += e.slice(r), l.slice(1);
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function En(e) {
|
|
2519
2519
|
for (var t = "", i = 0, a, r = 0; r < e.length; i >= 65536 ? r += 2 : r++)
|
|
2520
|
-
i =
|
|
2520
|
+
i = Ye(e, r), a = ue[i], !a && it(i) ? (t += e[r], i >= 65536 && (t += e[r + 1])) : t += a || xn(i);
|
|
2521
2521
|
return t;
|
|
2522
2522
|
}
|
|
2523
|
-
function
|
|
2523
|
+
function Fn(e, t, i) {
|
|
2524
2524
|
var a = "", r = e.tag, n, o, c;
|
|
2525
2525
|
for (n = 0, o = i.length; n < o; n += 1)
|
|
2526
2526
|
c = i[n], e.replacer && (c = e.replacer.call(i, String(n), c)), (Se(e, t, c, !1, !1) || typeof c > "u" && Se(e, t, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
|
|
@@ -2532,13 +2532,13 @@ function oi(e, t, i, a) {
|
|
|
2532
2532
|
l = i[o], e.replacer && (l = e.replacer.call(i, String(o), l)), (Se(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, t + 1, null, !0, !0, !1, !0)) && ((!a || r !== "") && (r += St(e, t)), e.dump && et === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
2533
2533
|
e.tag = n, e.dump = r || "[]";
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function Vn(e, t, i) {
|
|
2536
2536
|
var a = "", r = e.tag, n = Object.keys(i), o, c, l, u, m;
|
|
2537
2537
|
for (o = 0, c = n.length; o < c; o += 1)
|
|
2538
2538
|
m = "", a !== "" && (m += ", "), e.condenseFlow && (m += '"'), l = n[o], u = i[l], e.replacer && (u = e.replacer.call(i, l, u)), Se(e, t, l, !1, !1) && (e.dump.length > 1024 && (m += "? "), m += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Se(e, t, u, !1, !1) && (m += e.dump, a += m));
|
|
2539
2539
|
e.tag = r, e.dump = "{" + a + "}";
|
|
2540
2540
|
}
|
|
2541
|
-
function
|
|
2541
|
+
function qn(e, t, i, a) {
|
|
2542
2542
|
var r = "", n = e.tag, o = Object.keys(i), c, l, u, m, p, _;
|
|
2543
2543
|
if (e.sortKeys === !0)
|
|
2544
2544
|
o.sort();
|
|
@@ -2576,9 +2576,9 @@ function Se(e, t, i, a, r, n, o) {
|
|
|
2576
2576
|
e.dump = "*ref_" + p;
|
|
2577
2577
|
else {
|
|
2578
2578
|
if (m && _ && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), c === "[object Object]")
|
|
2579
|
-
a && Object.keys(e.dump).length !== 0 ? (
|
|
2579
|
+
a && Object.keys(e.dump).length !== 0 ? (qn(e, t, e.dump, r), _ && (e.dump = "&ref_" + p + e.dump)) : (Vn(e, t, e.dump), _ && (e.dump = "&ref_" + p + " " + e.dump));
|
|
2580
2580
|
else if (c === "[object Array]")
|
|
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)) : (
|
|
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
2583
|
e.tag !== "?" && On(e, e.dump, t, n, l);
|
|
2584
2584
|
else {
|
|
@@ -2594,54 +2594,54 @@ function Se(e, t, i, a, r, n, o) {
|
|
|
2594
2594
|
}
|
|
2595
2595
|
function Ln(e, t) {
|
|
2596
2596
|
var i = [], a = [], r, n;
|
|
2597
|
-
for (
|
|
2597
|
+
for (At(e, i, a), r = 0, n = a.length; r < n; r += 1)
|
|
2598
2598
|
t.duplicates.push(i[a[r]]);
|
|
2599
2599
|
t.usedDuplicates = new Array(n);
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2601
|
+
function At(e, t, i) {
|
|
2602
2602
|
var a, r, n;
|
|
2603
2603
|
if (e !== null && typeof e == "object")
|
|
2604
2604
|
if (r = t.indexOf(e), r !== -1)
|
|
2605
2605
|
i.indexOf(r) === -1 && i.push(r);
|
|
2606
2606
|
else if (t.push(e), Array.isArray(e))
|
|
2607
2607
|
for (r = 0, n = e.length; r < n; r += 1)
|
|
2608
|
-
|
|
2608
|
+
At(e[r], t, i);
|
|
2609
2609
|
else
|
|
2610
2610
|
for (a = Object.keys(e), r = 0, n = a.length; r < n; r += 1)
|
|
2611
|
-
|
|
2611
|
+
At(e[a[r]], t, i);
|
|
2612
2612
|
}
|
|
2613
|
-
function
|
|
2613
|
+
function Un(e, t) {
|
|
2614
2614
|
t = t || {};
|
|
2615
|
-
var i = new
|
|
2615
|
+
var i = new In(t);
|
|
2616
2616
|
i.noRefs || Ln(e, i);
|
|
2617
2617
|
var a = e;
|
|
2618
2618
|
return i.replacer && (a = i.replacer.call({ "": a }, "", a)), Se(i, 0, a, !0, !0) ? i.dump + `
|
|
2619
2619
|
` : "";
|
|
2620
2620
|
}
|
|
2621
|
-
var
|
|
2622
|
-
dump:
|
|
2621
|
+
var Bn = Un, Kn = {
|
|
2622
|
+
dump: Bn
|
|
2623
2623
|
};
|
|
2624
|
-
function
|
|
2624
|
+
function Vt(e, t) {
|
|
2625
2625
|
return function() {
|
|
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
|
|
2630
|
-
binary:
|
|
2629
|
+
var Rn = se, Pn = xi, Dn = $i, zn = Ei, Hn = Fi, Gn = Ot, Jn = Qi.load, Wn = Qi.loadAll, Zn = Kn.dump, Yn = de, Qn = {
|
|
2630
|
+
binary: Bi,
|
|
2631
2631
|
float: Mi,
|
|
2632
2632
|
map: Ti,
|
|
2633
|
-
null:
|
|
2634
|
-
pairs:
|
|
2633
|
+
null: Ni,
|
|
2634
|
+
pairs: Ri,
|
|
2635
2635
|
set: Pi,
|
|
2636
2636
|
timestamp: Li,
|
|
2637
|
-
bool:
|
|
2637
|
+
bool: ji,
|
|
2638
2638
|
int: Oi,
|
|
2639
|
-
merge:
|
|
2640
|
-
omap:
|
|
2641
|
-
seq:
|
|
2642
|
-
str:
|
|
2643
|
-
}, Xn =
|
|
2644
|
-
Type:
|
|
2639
|
+
merge: Ui,
|
|
2640
|
+
omap: Ki,
|
|
2641
|
+
seq: Ii,
|
|
2642
|
+
str: Ai
|
|
2643
|
+
}, Xn = Vt("safeLoad", "load"), el = Vt("safeLoadAll", "loadAll"), tl = Vt("safeDump", "dump"), il = {
|
|
2644
|
+
Type: Rn,
|
|
2645
2645
|
Schema: Pn,
|
|
2646
2646
|
FAILSAFE_SCHEMA: Dn,
|
|
2647
2647
|
JSON_SCHEMA: zn,
|
|
@@ -2649,8 +2649,8 @@ var Kn = se, Pn = xi, Dn = $i, zn = Fi, Hn = Vi, Gn = Ot, Jn = Qi.load, Wn = Qi.
|
|
|
2649
2649
|
DEFAULT_SCHEMA: Gn,
|
|
2650
2650
|
load: Jn,
|
|
2651
2651
|
loadAll: Wn,
|
|
2652
|
-
dump:
|
|
2653
|
-
YAMLException:
|
|
2652
|
+
dump: Zn,
|
|
2653
|
+
YAMLException: Yn,
|
|
2654
2654
|
types: Qn,
|
|
2655
2655
|
safeLoad: Xn,
|
|
2656
2656
|
safeLoadAll: el,
|
|
@@ -2671,8 +2671,8 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
2671
2671
|
return Object.keys(a).length === 0 && a.constructor === Object ? "" : il.dump(a).trim();
|
|
2672
2672
|
});
|
|
2673
2673
|
return (a, r) => {
|
|
2674
|
-
const n =
|
|
2675
|
-
return v(),
|
|
2674
|
+
const n = R("KCodeBlock");
|
|
2675
|
+
return v(), I("div", rl, [
|
|
2676
2676
|
t.yamlRecord ? (v(), P(n, {
|
|
2677
2677
|
key: 0,
|
|
2678
2678
|
id: "yaml-codeblock",
|
|
@@ -2734,18 +2734,18 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
2734
2734
|
const o = JSON.parse(JSON.stringify(t.record));
|
|
2735
2735
|
return delete o.created_at, delete o.updated_at, o;
|
|
2736
2736
|
});
|
|
2737
|
-
return (o, c) => (v(),
|
|
2738
|
-
e.format === "structured" ? (v(),
|
|
2739
|
-
(v(!0),
|
|
2737
|
+
return (o, c) => (v(), I(he, null, [
|
|
2738
|
+
e.format === "structured" ? (v(), I("div", al, [
|
|
2739
|
+
(v(!0), I(he, null, ye(e.propListTypes, (l) => (v(), I("div", {
|
|
2740
2740
|
key: `config-card-details-${l}-props`,
|
|
2741
2741
|
class: Te(`config-card-details-${l}-props`),
|
|
2742
2742
|
"data-testid": `config-card-details-${l}-props`
|
|
2743
2743
|
}, [
|
|
2744
|
-
l !== "basic" ? (v(),
|
|
2745
|
-
(v(!0),
|
|
2744
|
+
l !== "basic" ? (v(), I("div", nl, $(l === "advanced" ? f(a)("baseConfigCard.sections.advanced") : f(a)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
|
|
2745
|
+
(v(!0), I(he, null, ye(e.propertyCollections[l], (u) => (v(), P(_i, {
|
|
2746
2746
|
key: u.key,
|
|
2747
2747
|
item: u
|
|
2748
|
-
},
|
|
2748
|
+
}, Ke({
|
|
2749
2749
|
label: b(() => [
|
|
2750
2750
|
ie(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2751
2751
|
]),
|
|
@@ -2788,7 +2788,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
2788
2788
|
}, cl = (e) => (De("data-v-1d2a8d30"), e = e(), ze(), e), ul = ["aria-hidden"], dl = {
|
|
2789
2789
|
key: 0,
|
|
2790
2790
|
"data-testid": "kui-icon-svg-title"
|
|
2791
|
-
}, pl = /* @__PURE__ */ cl(() => /* @__PURE__ */
|
|
2791
|
+
}, pl = /* @__PURE__ */ cl(() => /* @__PURE__ */ E("path", {
|
|
2792
2792
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2793
2793
|
fill: "currentColor"
|
|
2794
2794
|
}, null, -1)), fl = /* @__PURE__ */ ee({
|
|
@@ -2867,7 +2867,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
2867
2867
|
style: Pe(a.value)
|
|
2868
2868
|
}, {
|
|
2869
2869
|
default: b(() => [
|
|
2870
|
-
(v(),
|
|
2870
|
+
(v(), I("svg", {
|
|
2871
2871
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2872
2872
|
"data-testid": "kui-icon-svg-add-icon",
|
|
2873
2873
|
fill: "none",
|
|
@@ -2877,7 +2877,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
2877
2877
|
width: "100%",
|
|
2878
2878
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2879
2879
|
}, [
|
|
2880
|
-
e.title ? (v(),
|
|
2880
|
+
e.title ? (v(), I("title", dl, $(e.title), 1)) : H("", !0),
|
|
2881
2881
|
pl
|
|
2882
2882
|
], 8, ul))
|
|
2883
2883
|
]),
|
|
@@ -2887,7 +2887,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
2887
2887
|
}), gl = /* @__PURE__ */ rt(fl, [["__scopeId", "data-v-1d2a8d30"]]), ml = (e) => (De("data-v-929b4762"), e = e(), ze(), e), yl = ["aria-hidden"], vl = {
|
|
2888
2888
|
key: 0,
|
|
2889
2889
|
"data-testid": "kui-icon-svg-title"
|
|
2890
|
-
}, hl = /* @__PURE__ */ ml(() => /* @__PURE__ */
|
|
2890
|
+
}, hl = /* @__PURE__ */ ml(() => /* @__PURE__ */ E("path", {
|
|
2891
2891
|
d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
|
|
2892
2892
|
fill: "currentColor"
|
|
2893
2893
|
}, null, -1)), bl = /* @__PURE__ */ ee({
|
|
@@ -2966,7 +2966,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
2966
2966
|
style: Pe(a.value)
|
|
2967
2967
|
}, {
|
|
2968
2968
|
default: b(() => [
|
|
2969
|
-
(v(),
|
|
2969
|
+
(v(), I("svg", {
|
|
2970
2970
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2971
2971
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2972
2972
|
fill: "none",
|
|
@@ -2976,7 +2976,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
2976
2976
|
width: "100%",
|
|
2977
2977
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2978
2978
|
}, [
|
|
2979
|
-
e.title ? (v(),
|
|
2979
|
+
e.title ? (v(), I("title", vl, $(e.title), 1)) : H("", !0),
|
|
2980
2980
|
hl
|
|
2981
2981
|
], 8, yl))
|
|
2982
2982
|
]),
|
|
@@ -2986,7 +2986,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
2986
2986
|
}), wl = /* @__PURE__ */ rt(bl, [["__scopeId", "data-v-929b4762"]]), _l = (e) => (De("data-v-219f8484"), e = e(), ze(), e), kl = ["aria-hidden"], Cl = {
|
|
2987
2987
|
key: 0,
|
|
2988
2988
|
"data-testid": "kui-icon-svg-title"
|
|
2989
|
-
}, Sl = /* @__PURE__ */ _l(() => /* @__PURE__ */
|
|
2989
|
+
}, Sl = /* @__PURE__ */ _l(() => /* @__PURE__ */ E("path", {
|
|
2990
2990
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2991
2991
|
fill: "currentColor"
|
|
2992
2992
|
}, null, -1)), xl = /* @__PURE__ */ ee({
|
|
@@ -3065,7 +3065,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3065
3065
|
style: Pe(a.value)
|
|
3066
3066
|
}, {
|
|
3067
3067
|
default: b(() => [
|
|
3068
|
-
(v(),
|
|
3068
|
+
(v(), I("svg", {
|
|
3069
3069
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3070
3070
|
"data-testid": "kui-icon-svg-chevron-down-icon",
|
|
3071
3071
|
fill: "none",
|
|
@@ -3075,20 +3075,20 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3075
3075
|
width: "100%",
|
|
3076
3076
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3077
3077
|
}, [
|
|
3078
|
-
e.title ? (v(),
|
|
3078
|
+
e.title ? (v(), I("title", Cl, $(e.title), 1)) : H("", !0),
|
|
3079
3079
|
Sl
|
|
3080
3080
|
], 8, kl))
|
|
3081
3081
|
]),
|
|
3082
3082
|
_: 1
|
|
3083
3083
|
}, 8, ["aria-hidden", "style"]));
|
|
3084
3084
|
}
|
|
3085
|
-
}),
|
|
3085
|
+
}), Al = /* @__PURE__ */ rt(xl, [["__scopeId", "data-v-219f8484"]]), Il = (e) => (De("data-v-ed11facd"), 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", {
|
|
3089
3089
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
3090
3090
|
fill: "currentColor"
|
|
3091
|
-
}, null, -1)),
|
|
3091
|
+
}, null, -1)), jl = /* @__PURE__ */ ee({
|
|
3092
3092
|
__name: "CloseIcon",
|
|
3093
3093
|
props: {
|
|
3094
3094
|
/** The accessibility text provided to screen readers */
|
|
@@ -3164,7 +3164,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3164
3164
|
style: Pe(a.value)
|
|
3165
3165
|
}, {
|
|
3166
3166
|
default: b(() => [
|
|
3167
|
-
(v(),
|
|
3167
|
+
(v(), I("svg", {
|
|
3168
3168
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3169
3169
|
"data-testid": "kui-icon-svg-close-icon",
|
|
3170
3170
|
fill: "none",
|
|
@@ -3174,20 +3174,20 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3174
3174
|
width: "100%",
|
|
3175
3175
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3176
3176
|
}, [
|
|
3177
|
-
e.title ? (v(),
|
|
3178
|
-
|
|
3177
|
+
e.title ? (v(), I("title", $l, $(e.title), 1)) : H("", !0),
|
|
3178
|
+
Nl
|
|
3179
3179
|
], 8, Tl))
|
|
3180
3180
|
]),
|
|
3181
3181
|
_: 1
|
|
3182
3182
|
}, 8, ["aria-hidden", "style"]));
|
|
3183
3183
|
}
|
|
3184
|
-
}), Ol = /* @__PURE__ */ rt(
|
|
3184
|
+
}), Ol = /* @__PURE__ */ rt(jl, [["__scopeId", "data-v-ed11facd"]]), Ml = (e) => (De("data-v-cf4e7d0b"), e = e(), ze(), e), El = ["aria-hidden"], Fl = {
|
|
3185
3185
|
key: 0,
|
|
3186
3186
|
"data-testid": "kui-icon-svg-title"
|
|
3187
|
-
},
|
|
3187
|
+
}, Vl = /* @__PURE__ */ Ml(() => /* @__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
|
-
}, null, -1)),
|
|
3190
|
+
}, null, -1)), ql = /* @__PURE__ */ ee({
|
|
3191
3191
|
__name: "MoreIcon",
|
|
3192
3192
|
props: {
|
|
3193
3193
|
/** The accessibility text provided to screen readers */
|
|
@@ -3263,7 +3263,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3263
3263
|
style: Pe(a.value)
|
|
3264
3264
|
}, {
|
|
3265
3265
|
default: b(() => [
|
|
3266
|
-
(v(),
|
|
3266
|
+
(v(), I("svg", {
|
|
3267
3267
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3268
3268
|
"data-testid": "kui-icon-svg-more-icon",
|
|
3269
3269
|
fill: "none",
|
|
@@ -3273,17 +3273,17 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3273
3273
|
width: "100%",
|
|
3274
3274
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3275
3275
|
}, [
|
|
3276
|
-
e.title ? (v(),
|
|
3277
|
-
|
|
3278
|
-
], 8,
|
|
3276
|
+
e.title ? (v(), I("title", Fl, $(e.title), 1)) : H("", !0),
|
|
3277
|
+
Vl
|
|
3278
|
+
], 8, El))
|
|
3279
3279
|
]),
|
|
3280
3280
|
_: 1
|
|
3281
3281
|
}, 8, ["aria-hidden", "style"]));
|
|
3282
3282
|
}
|
|
3283
|
-
}), Ll = /* @__PURE__ */ rt(
|
|
3283
|
+
}), Ll = /* @__PURE__ */ rt(ql, [["__scopeId", "data-v-cf4e7d0b"]]), 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({
|
|
3287
3287
|
__name: "EntityBaseConfigCard",
|
|
3288
3288
|
props: {
|
|
3289
3289
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3376,7 +3376,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3376
3376
|
label: "YAML",
|
|
3377
3377
|
value: "yaml"
|
|
3378
3378
|
}
|
|
3379
|
-
], m =
|
|
3379
|
+
], m = q("structured"), p = (y) => {
|
|
3380
3380
|
m.value = y == null ? void 0 : y.value;
|
|
3381
3381
|
}, _ = {
|
|
3382
3382
|
id: {
|
|
@@ -3412,21 +3412,21 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3412
3412
|
// the last property displayed
|
|
3413
3413
|
section: ce.Basic
|
|
3414
3414
|
}
|
|
3415
|
-
}, h =
|
|
3416
|
-
var y, T,
|
|
3415
|
+
}, h = q(!1), A = q(!1), O = q(""), C = q({}), K = x(() => {
|
|
3416
|
+
var y, T, U;
|
|
3417
3417
|
if (!C.value)
|
|
3418
3418
|
return [];
|
|
3419
|
-
const
|
|
3419
|
+
const j = [], z = Object.keys(C.value).length;
|
|
3420
3420
|
for (const L in C.value) {
|
|
3421
|
-
const
|
|
3421
|
+
const V = (T = (y = r.configSchema) == null ? void 0 : y[L]) == null ? void 0 : T.order, W = (U = _[L]) == null ? void 0 : U.order;
|
|
3422
3422
|
let Q = z;
|
|
3423
|
-
(W || W === 0) && (Q = W === -1 ? z + 1 : W),
|
|
3423
|
+
(W || W === 0) && (Q = W === -1 ? z + 1 : W), V && (Q = V === -1 ? z + 1 : V), j.push([L, Q]);
|
|
3424
3424
|
}
|
|
3425
|
-
return
|
|
3426
|
-
return L[1] -
|
|
3427
|
-
}),
|
|
3428
|
-
var
|
|
3429
|
-
const Q = L[0], pe = (
|
|
3425
|
+
return j.sort(function(L, V) {
|
|
3426
|
+
return L[1] - V[1];
|
|
3427
|
+
}), j.map((L) => {
|
|
3428
|
+
var V, W;
|
|
3429
|
+
const Q = L[0], pe = (V = C.value) == null ? void 0 : V[Q], fe = ((W = r.configSchema) == null ? void 0 : W[Q]) || {}, ae = _[Q];
|
|
3430
3430
|
return {
|
|
3431
3431
|
key: Q,
|
|
3432
3432
|
value: pe,
|
|
@@ -3437,21 +3437,21 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3437
3437
|
section: fe.section ?? ((ae == null ? void 0 : ae.section) || ce.Advanced)
|
|
3438
3438
|
};
|
|
3439
3439
|
}).filter((L) => !L.hidden && L.key !== r.pluginConfigKey);
|
|
3440
|
-
}),
|
|
3440
|
+
}), N = x(() => {
|
|
3441
3441
|
var y, T;
|
|
3442
3442
|
if (!C.value || !r.pluginConfigKey)
|
|
3443
3443
|
return [];
|
|
3444
|
-
const
|
|
3445
|
-
for (const L in
|
|
3446
|
-
const
|
|
3447
|
-
let Q = W != null && W !== "" ?
|
|
3448
|
-
|
|
3444
|
+
const U = C.value[r.pluginConfigKey] || {}, j = Object.keys(U).length, z = [];
|
|
3445
|
+
for (const L in U) {
|
|
3446
|
+
const V = (T = (y = r.pluginConfigSchema) == null ? void 0 : y[L]) == null ? void 0 : T.order, W = U[L];
|
|
3447
|
+
let Q = W != null && W !== "" ? j - 1 : j;
|
|
3448
|
+
V && (Q = V === -1 ? j + 1 : V), z.push([L, Q]);
|
|
3449
3449
|
}
|
|
3450
|
-
return z.sort(function(L,
|
|
3451
|
-
return L[1] -
|
|
3450
|
+
return z.sort(function(L, V) {
|
|
3451
|
+
return L[1] - V[1];
|
|
3452
3452
|
}), z.map((L) => {
|
|
3453
|
-
var
|
|
3454
|
-
const W = L[0], Q =
|
|
3453
|
+
var V;
|
|
3454
|
+
const W = L[0], Q = U[W], pe = ((V = r.pluginConfigSchema) == null ? void 0 : V[W]) || {};
|
|
3455
3455
|
return {
|
|
3456
3456
|
key: W,
|
|
3457
3457
|
value: Q,
|
|
@@ -3462,25 +3462,25 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3462
3462
|
section: ce.Plugin
|
|
3463
3463
|
};
|
|
3464
3464
|
}).filter((L) => !L.hidden);
|
|
3465
|
-
}),
|
|
3466
|
-
var y, T,
|
|
3465
|
+
}), Y = x(() => {
|
|
3466
|
+
var y, T, U, j;
|
|
3467
3467
|
return {
|
|
3468
|
-
basic: (y =
|
|
3469
|
-
advanced: (T =
|
|
3470
|
-
plugin: (
|
|
3468
|
+
basic: (y = K.value) == null ? void 0 : y.filter((z) => z.section === ce.Basic),
|
|
3469
|
+
advanced: (T = K.value) == null ? void 0 : T.filter((z) => z.section === ce.Advanced),
|
|
3470
|
+
plugin: (j = N.value) == null ? void 0 : j.concat((U = K.value) == null ? void 0 : U.filter((z) => z.section === ce.Plugin))
|
|
3471
3471
|
};
|
|
3472
3472
|
}), s = x(() => {
|
|
3473
3473
|
const y = [];
|
|
3474
|
-
return
|
|
3474
|
+
return Y.value.basic.length && y.push("basic"), Y.value.advanced.length && y.push("advanced"), Y.value.plugin.length && y.push("plugin"), y;
|
|
3475
3475
|
}), S = x(() => {
|
|
3476
3476
|
var y, T;
|
|
3477
|
-
let
|
|
3478
|
-
return r.config.app === "konnect" ?
|
|
3477
|
+
let U = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3478
|
+
return r.config.app === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (U = U.replace(/\/{workspace}/gi, (T = r.config) != null && T.workspace ? `/${r.config.workspace}` : "")), U = U.replace(/{id}/gi, r.config.entityId), U;
|
|
3479
3479
|
});
|
|
3480
3480
|
return Ce(h, (y) => {
|
|
3481
3481
|
a("loading", y);
|
|
3482
|
-
}, { immediate: !0 }),
|
|
3483
|
-
|
|
3482
|
+
}, { immediate: !0 }), It(async () => {
|
|
3483
|
+
A.value = !1, h.value = !0;
|
|
3484
3484
|
try {
|
|
3485
3485
|
const { data: y } = await l.get(S.value);
|
|
3486
3486
|
if (r.dataKey)
|
|
@@ -3495,20 +3495,20 @@ 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
|
-
O.value = T.startsWith("code") ? n("baseConfigCard.errors.load") : T,
|
|
3498
|
+
O.value = T.startsWith("code") ? n("baseConfigCard.errors.load") : T, A.value = !0, a("fetch:error", y);
|
|
3499
3499
|
} finally {
|
|
3500
3500
|
h.value = !1;
|
|
3501
3501
|
}
|
|
3502
3502
|
}), (y, T) => {
|
|
3503
|
-
const
|
|
3503
|
+
const U = R("KLabel"), j = R("KSelect"), z = R("KButton"), L = R("KSkeleton"), V = R("KEmptyState"), W = R("KCard");
|
|
3504
3504
|
return v(), P(W, {
|
|
3505
3505
|
class: "kong-ui-entity-base-config-card",
|
|
3506
3506
|
"title-tag": e.titleTag
|
|
3507
|
-
},
|
|
3507
|
+
}, Ke({
|
|
3508
3508
|
actions: b(() => [
|
|
3509
|
-
|
|
3509
|
+
E("div", Bl, [
|
|
3510
3510
|
ie(y.$slots, "actions", {}, void 0, !0),
|
|
3511
|
-
k(
|
|
3511
|
+
k(U, {
|
|
3512
3512
|
class: "config-format-select-label",
|
|
3513
3513
|
"data-testid": "config-format-select-label"
|
|
3514
3514
|
}, {
|
|
@@ -3517,7 +3517,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3517
3517
|
]),
|
|
3518
3518
|
_: 1
|
|
3519
3519
|
}),
|
|
3520
|
-
k(
|
|
3520
|
+
k(j, {
|
|
3521
3521
|
"data-testid": "select-config-format",
|
|
3522
3522
|
items: u,
|
|
3523
3523
|
onChange: p
|
|
@@ -3529,13 +3529,13 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3529
3529
|
"data-testid": "book-icon"
|
|
3530
3530
|
}, {
|
|
3531
3531
|
default: b(() => [
|
|
3532
|
-
|
|
3532
|
+
E("a", {
|
|
3533
3533
|
href: e.configCardDoc,
|
|
3534
3534
|
rel: "noopener",
|
|
3535
3535
|
target: "_blank"
|
|
3536
3536
|
}, [
|
|
3537
3537
|
k(f(wl), { size: f(wa) }, null, 8, ["size"])
|
|
3538
|
-
], 8,
|
|
3538
|
+
], 8, Kl)
|
|
3539
3539
|
]),
|
|
3540
3540
|
_: 1
|
|
3541
3541
|
})) : H("", !0)
|
|
@@ -3547,25 +3547,25 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3547
3547
|
"data-testid": "config-card-loader",
|
|
3548
3548
|
"table-columns": 2,
|
|
3549
3549
|
type: "table"
|
|
3550
|
-
})) :
|
|
3550
|
+
})) : A.value ? (v(), P(V, {
|
|
3551
3551
|
key: 1,
|
|
3552
3552
|
"data-testid": "config-card-fetch-error",
|
|
3553
3553
|
"icon-variant": "error"
|
|
3554
3554
|
}, {
|
|
3555
3555
|
default: b(() => [
|
|
3556
|
-
|
|
3556
|
+
E("h3", null, $(O.value), 1)
|
|
3557
3557
|
]),
|
|
3558
3558
|
_: 1
|
|
3559
3559
|
})) : H("", !0),
|
|
3560
|
-
|
|
3560
|
+
E("div", Rl, [
|
|
3561
3561
|
k(sl, {
|
|
3562
3562
|
config: e.config,
|
|
3563
3563
|
"fetcher-url": S.value,
|
|
3564
3564
|
format: m.value,
|
|
3565
3565
|
"prop-list-types": s.value,
|
|
3566
|
-
"property-collections":
|
|
3566
|
+
"property-collections": Y.value,
|
|
3567
3567
|
record: C.value
|
|
3568
|
-
},
|
|
3568
|
+
}, Ke({ _: 2 }, [
|
|
3569
3569
|
ye(Object.keys(y.$slots), (Q) => ({
|
|
3570
3570
|
name: Q,
|
|
3571
3571
|
fn: b(({ row: pe, rowValue: fe }) => [
|
|
@@ -3583,7 +3583,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3583
3583
|
e.hideTitle ? void 0 : {
|
|
3584
3584
|
name: "title",
|
|
3585
3585
|
fn: b(() => [
|
|
3586
|
-
|
|
3586
|
+
E("span", Ul, [
|
|
3587
3587
|
ie(y.$slots, "title", {}, () => [
|
|
3588
3588
|
J($(f(n)("baseConfigCard.title")), 1)
|
|
3589
3589
|
], !0)
|
|
@@ -3666,19 +3666,19 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3666
3666
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3667
3667
|
setup(e, { emit: t }) {
|
|
3668
3668
|
var i;
|
|
3669
|
-
const a = t, r = e, n = $t(), { i18n: { t: o } } = ne.useI18n(), { getMessageFromError: c } = ne.useErrors(), { axiosInstance: l } = ne.useAxios((i = r.config) == null ? void 0 : i.axiosRequestConfig), u =
|
|
3669
|
+
const a = t, r = e, n = $t(), { i18n: { t: o } } = ne.useI18n(), { getMessageFromError: c } = ne.useErrors(), { axiosInstance: l } = ne.useAxios((i = r.config) == null ? void 0 : i.axiosRequestConfig), u = q(!1), m = q(!1), p = q(""), _ = x(() => r.canSubmit === !1 || r.isReadonly), h = q(!1), A = x(() => {
|
|
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
|
}), O = () => {
|
|
3674
3674
|
h.value = !h.value;
|
|
3675
3675
|
}, C = () => {
|
|
3676
|
-
r.config.cancelRoute ? n.push(r.config.cancelRoute) :
|
|
3677
|
-
},
|
|
3676
|
+
r.config.cancelRoute ? n.push(r.config.cancelRoute) : K();
|
|
3677
|
+
}, K = () => {
|
|
3678
3678
|
a("cancel");
|
|
3679
|
-
},
|
|
3679
|
+
}, N = () => {
|
|
3680
3680
|
_.value || a("submit");
|
|
3681
|
-
},
|
|
3681
|
+
}, Y = q([
|
|
3682
3682
|
{
|
|
3683
3683
|
title: o("baseForm.configuration.yaml"),
|
|
3684
3684
|
hash: "#yaml"
|
|
@@ -3690,11 +3690,11 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3690
3690
|
]);
|
|
3691
3691
|
return Ce(() => u.value, (s) => {
|
|
3692
3692
|
a("loading", s);
|
|
3693
|
-
}, { immediate: !0 }),
|
|
3693
|
+
}, { immediate: !0 }), It(async () => {
|
|
3694
3694
|
if (r.editId)
|
|
3695
3695
|
try {
|
|
3696
3696
|
m.value = !1, u.value = !0;
|
|
3697
|
-
const { data: s } = await l.get(
|
|
3697
|
+
const { data: s } = await l.get(A.value);
|
|
3698
3698
|
a("fetch:success", s);
|
|
3699
3699
|
} catch (s) {
|
|
3700
3700
|
const S = c(s);
|
|
@@ -3703,7 +3703,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3703
3703
|
u.value = !1;
|
|
3704
3704
|
}
|
|
3705
3705
|
}), (s, S) => {
|
|
3706
|
-
const y =
|
|
3706
|
+
const y = R("KSkeleton"), T = R("KEmptyState"), U = R("KAlert"), j = R("KButton"), z = R("KTabs"), L = R("KSlideout");
|
|
3707
3707
|
return v(), P(_e(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3708
3708
|
default: b(() => [
|
|
3709
3709
|
u.value ? (v(), P(y, {
|
|
@@ -3717,36 +3717,36 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3717
3717
|
onClickAction: C
|
|
3718
3718
|
}, {
|
|
3719
3719
|
default: b(() => [
|
|
3720
|
-
|
|
3720
|
+
E("h3", null, $(p.value), 1)
|
|
3721
3721
|
]),
|
|
3722
3722
|
_: 1
|
|
3723
|
-
}, 8, ["action-button-text"])) : (v(),
|
|
3723
|
+
}, 8, ["action-button-text"])) : (v(), I("form", {
|
|
3724
3724
|
key: 2,
|
|
3725
3725
|
"data-testid": "form-content",
|
|
3726
3726
|
novalidate: r.noValidate,
|
|
3727
|
-
onReset: Le(
|
|
3728
|
-
onSubmit: Le(
|
|
3727
|
+
onReset: Le(K, ["prevent"]),
|
|
3728
|
+
onSubmit: Le(N, ["prevent"])
|
|
3729
3729
|
}, [
|
|
3730
3730
|
ie(s.$slots, "default", {}, void 0, !0),
|
|
3731
|
-
e.errorMessage ? (v(), P(
|
|
3731
|
+
e.errorMessage ? (v(), P(U, {
|
|
3732
3732
|
key: 0,
|
|
3733
3733
|
appearance: "danger",
|
|
3734
3734
|
"data-testid": "form-error",
|
|
3735
3735
|
message: e.errorMessage
|
|
3736
3736
|
}, null, 8, ["message"])) : H("", !0),
|
|
3737
|
-
|
|
3737
|
+
E("div", Hl, [
|
|
3738
3738
|
ie(s.$slots, "form-actions", {}, () => [
|
|
3739
|
-
k(
|
|
3739
|
+
k(j, {
|
|
3740
3740
|
appearance: "tertiary",
|
|
3741
3741
|
"data-testid": "form-view-configuration",
|
|
3742
|
-
onClick: S[0] || (S[0] = (
|
|
3742
|
+
onClick: S[0] || (S[0] = (V) => O())
|
|
3743
3743
|
}, {
|
|
3744
3744
|
default: b(() => [
|
|
3745
3745
|
J($(f(o)("baseForm.actions.viewConfiguration")), 1)
|
|
3746
3746
|
]),
|
|
3747
3747
|
_: 1
|
|
3748
3748
|
}),
|
|
3749
|
-
k(
|
|
3749
|
+
k(j, {
|
|
3750
3750
|
appearance: "secondary",
|
|
3751
3751
|
"data-testid": "form-cancel",
|
|
3752
3752
|
disabled: e.isReadonly,
|
|
@@ -3757,7 +3757,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3757
3757
|
]),
|
|
3758
3758
|
_: 1
|
|
3759
3759
|
}, 8, ["disabled"]),
|
|
3760
|
-
k(
|
|
3760
|
+
k(j, {
|
|
3761
3761
|
appearance: "primary",
|
|
3762
3762
|
"data-testid": "form-submit",
|
|
3763
3763
|
disabled: _.value,
|
|
@@ -3778,18 +3778,18 @@ 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] = (
|
|
3781
|
+
onClose: S[1] || (S[1] = (V) => O())
|
|
3782
3782
|
}, {
|
|
3783
3783
|
default: b(() => [
|
|
3784
|
-
|
|
3784
|
+
E("div", null, $(f(o)("baseForm.configuration.message")), 1),
|
|
3785
3785
|
k(z, {
|
|
3786
3786
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3787
|
-
tabs:
|
|
3787
|
+
tabs: Y.value
|
|
3788
3788
|
}, {
|
|
3789
3789
|
json: b(() => [
|
|
3790
3790
|
k(ki, {
|
|
3791
3791
|
config: e.config,
|
|
3792
|
-
"fetcher-url":
|
|
3792
|
+
"fetcher-url": A.value,
|
|
3793
3793
|
"json-record": r.formFields,
|
|
3794
3794
|
"request-method": r.editId ? "put" : "post"
|
|
3795
3795
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
@@ -3809,7 +3809,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3809
3809
|
});
|
|
3810
3810
|
};
|
|
3811
3811
|
}
|
|
3812
|
-
}), Jl = /* @__PURE__ */ ve(Gl, [["__scopeId", "data-v-fd05df8e"]]), Wl = ["data-truncate"],
|
|
3812
|
+
}), Jl = /* @__PURE__ */ ve(Gl, [["__scopeId", "data-v-fd05df8e"]]), Wl = ["data-truncate"], Zl = /* @__PURE__ */ ee({
|
|
3813
3813
|
__name: "EntityBaseTableCell",
|
|
3814
3814
|
props: {
|
|
3815
3815
|
keyName: {
|
|
@@ -3833,32 +3833,32 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3833
3833
|
var C;
|
|
3834
3834
|
return ((C = i.value) == null ? void 0 : C.querySelector('[data-truncate="true"]')) || null;
|
|
3835
3835
|
}), r = x(() => {
|
|
3836
|
-
var C,
|
|
3837
|
-
const
|
|
3838
|
-
return
|
|
3836
|
+
var C, K;
|
|
3837
|
+
const N = (C = t.rowEl) == null ? void 0 : C.querySelectorAll("td");
|
|
3838
|
+
return N ? ((K = N[0]) == null ? void 0 : K.getAttribute("data-testid")) === t.keyName : !1;
|
|
3839
3839
|
}), n = x(() => r.value || t.tooltip);
|
|
3840
3840
|
let o;
|
|
3841
3841
|
const c = () => {
|
|
3842
3842
|
o && (o.disconnect(), o = void 0);
|
|
3843
3843
|
}, l = () => {
|
|
3844
|
-
var C,
|
|
3845
|
-
let
|
|
3844
|
+
var C, K, N;
|
|
3845
|
+
let Y = ((C = i.value) == null ? void 0 : C.clientWidth) || 0;
|
|
3846
3846
|
if (i.value && "getComputedStyle" in window) {
|
|
3847
3847
|
const s = window.getComputedStyle(i.value);
|
|
3848
|
-
|
|
3848
|
+
Y -= (parseFloat(s.paddingLeft) || 0) + (parseFloat(s.paddingRight) || 0);
|
|
3849
3849
|
}
|
|
3850
|
-
m.value = ((
|
|
3851
|
-
}, u =
|
|
3850
|
+
m.value = ((K = a.value) == null ? void 0 : K.getBoundingClientRect().width) || 0, p.value = Y, _.value = ((N = u.value) == null ? void 0 : N.innerText) || "";
|
|
3851
|
+
}, u = q({}), m = q(0), p = q(0), _ = q(""), h = x(() => [a.value, i.value]), A = Ce(
|
|
3852
3852
|
h,
|
|
3853
3853
|
(C) => {
|
|
3854
3854
|
if (n.value && (c(), "ResizeObserver" in window && window)) {
|
|
3855
|
-
o = new ResizeObserver((
|
|
3855
|
+
o = new ResizeObserver((K) => {
|
|
3856
3856
|
window.requestAnimationFrame(() => {
|
|
3857
|
-
!Array.isArray(
|
|
3857
|
+
!Array.isArray(K) || !K.length || l();
|
|
3858
3858
|
});
|
|
3859
3859
|
});
|
|
3860
|
-
for (const
|
|
3861
|
-
|
|
3860
|
+
for (const K of C)
|
|
3861
|
+
K && o.observe(K);
|
|
3862
3862
|
}
|
|
3863
3863
|
},
|
|
3864
3864
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
@@ -3866,19 +3866,19 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3866
3866
|
return pi(() => {
|
|
3867
3867
|
l();
|
|
3868
3868
|
}), mr(() => {
|
|
3869
|
-
|
|
3870
|
-
}), (C,
|
|
3871
|
-
const
|
|
3872
|
-
return v(),
|
|
3869
|
+
A();
|
|
3870
|
+
}), (C, K) => {
|
|
3871
|
+
const N = R("KTooltip");
|
|
3872
|
+
return v(), I("span", {
|
|
3873
3873
|
ref_key: "contentRef",
|
|
3874
3874
|
ref: u,
|
|
3875
3875
|
class: "content-wrapper"
|
|
3876
3876
|
}, [
|
|
3877
|
-
n.value ? (v(),
|
|
3877
|
+
n.value ? (v(), I("span", {
|
|
3878
3878
|
key: 0,
|
|
3879
3879
|
"data-truncate": n.value || void 0
|
|
3880
3880
|
}, [
|
|
3881
|
-
k(
|
|
3881
|
+
k(N, {
|
|
3882
3882
|
"max-width": "300",
|
|
3883
3883
|
placement: "bottomStart",
|
|
3884
3884
|
text: O.value ? _.value : ""
|
|
@@ -3892,7 +3892,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
3892
3892
|
], 512);
|
|
3893
3893
|
};
|
|
3894
3894
|
}
|
|
3895
|
-
}),
|
|
3895
|
+
}), Yl = /* @__PURE__ */ ve(Zl, [["__scopeId", "data-v-471ce76e"]]), Ql = { class: "toolbar-container" }, Xl = {
|
|
3896
3896
|
key: 0,
|
|
3897
3897
|
class: "toolbar-button-container"
|
|
3898
3898
|
}, es = ["data-testid"], ts = /* @__PURE__ */ ee({
|
|
@@ -4027,11 +4027,11 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4027
4027
|
}), o = x(() => i.cacheIdentifier || i.preferencesStorageKey), c = (y) => y.hasData || !!i.query, l = x(() => {
|
|
4028
4028
|
const y = [];
|
|
4029
4029
|
return Object.keys(i.tableHeaders).forEach((T) => {
|
|
4030
|
-
const
|
|
4030
|
+
const U = i.tableHeaders[T];
|
|
4031
4031
|
y.push({
|
|
4032
|
-
label:
|
|
4032
|
+
label: U.label ?? T,
|
|
4033
4033
|
key: T,
|
|
4034
|
-
sortable:
|
|
4034
|
+
sortable: U.sortable ?? !1,
|
|
4035
4035
|
hidable: !0
|
|
4036
4036
|
});
|
|
4037
4037
|
}), i.enableEntityActions && y.push({
|
|
@@ -4042,7 +4042,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4042
4042
|
"data-rowid": y.id,
|
|
4043
4043
|
"data-testid": y.name,
|
|
4044
4044
|
...i.rowAttributes(y)
|
|
4045
|
-
}), m =
|
|
4045
|
+
}), m = q({}), p = (y) => {
|
|
4046
4046
|
var T;
|
|
4047
4047
|
return (T = m.value) == null ? void 0 : T.$el.querySelector(`[data-rowid="${y.id}"]`);
|
|
4048
4048
|
}, _ = (y) => {
|
|
@@ -4056,24 +4056,24 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4056
4056
|
textOverflow: "ellipsis"
|
|
4057
4057
|
}), T;
|
|
4058
4058
|
}, h = () => {
|
|
4059
|
-
a("empty-state-cta-clicked"),
|
|
4060
|
-
},
|
|
4059
|
+
a("empty-state-cta-clicked"), A();
|
|
4060
|
+
}, A = () => {
|
|
4061
4061
|
a("clear-search-input");
|
|
4062
4062
|
}, O = x(() => i.disableRowClick ? void 0 : (y, T) => {
|
|
4063
4063
|
a("click:row", T);
|
|
4064
4064
|
}), C = (y) => {
|
|
4065
4065
|
a("sort", y);
|
|
4066
|
-
}, { setTablePreferences:
|
|
4067
|
-
const y =
|
|
4066
|
+
}, { setTablePreferences: K, getTablePreferences: N } = Ur(), Y = q(N(o.value)), s = x(() => {
|
|
4067
|
+
const y = N(o.value);
|
|
4068
4068
|
return {
|
|
4069
4069
|
...i.initialFetcherParams,
|
|
4070
4070
|
...y
|
|
4071
4071
|
};
|
|
4072
4072
|
}), S = (y) => {
|
|
4073
|
-
|
|
4073
|
+
Y.value = y, o.value && K(o.value, y);
|
|
4074
4074
|
};
|
|
4075
4075
|
return (y, T) => {
|
|
4076
|
-
const
|
|
4076
|
+
const U = R("KButton"), j = R("KDropdown"), z = R("KTable"), L = R("KCard");
|
|
4077
4077
|
return v(), P(L, {
|
|
4078
4078
|
class: "kong-ui-entity-base-table",
|
|
4079
4079
|
title: e.title,
|
|
@@ -4107,40 +4107,40 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4107
4107
|
"search-input": e.query,
|
|
4108
4108
|
"sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
|
|
4109
4109
|
sortable: !e.disableSorting,
|
|
4110
|
-
"table-preferences":
|
|
4110
|
+
"table-preferences": Y.value,
|
|
4111
4111
|
onEmptyStateActionClick: h,
|
|
4112
4112
|
"onRow:click": O.value,
|
|
4113
|
-
onSort: T[0] || (T[0] = (
|
|
4113
|
+
onSort: T[0] || (T[0] = (V) => C(V)),
|
|
4114
4114
|
"onUpdate:tablePreferences": S
|
|
4115
|
-
},
|
|
4116
|
-
toolbar: b(({ state:
|
|
4117
|
-
xe(
|
|
4115
|
+
}, Ke({
|
|
4116
|
+
toolbar: b(({ state: V }) => [
|
|
4117
|
+
xe(E("div", Ql, [
|
|
4118
4118
|
ie(y.$slots, "toolbar-filter", {}, void 0, !0),
|
|
4119
|
-
y.$slots["toolbar-button"] ? (v(),
|
|
4119
|
+
y.$slots["toolbar-button"] ? (v(), I("div", Xl, [
|
|
4120
4120
|
ie(y.$slots, "toolbar-button", {}, void 0, !0)
|
|
4121
4121
|
])) : H("", !0)
|
|
4122
4122
|
], 512), [
|
|
4123
|
-
[
|
|
4123
|
+
[Ae, c(V)]
|
|
4124
4124
|
])
|
|
4125
4125
|
]),
|
|
4126
|
-
actions: b(({ row:
|
|
4127
|
-
|
|
4126
|
+
actions: b(({ row: V, rowKey: W, rowValue: Q }) => [
|
|
4127
|
+
E("div", {
|
|
4128
4128
|
class: "actions-container",
|
|
4129
|
-
"data-testid":
|
|
4129
|
+
"data-testid": V.name
|
|
4130
4130
|
}, [
|
|
4131
|
-
k(
|
|
4131
|
+
k(j, {
|
|
4132
4132
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
4133
4133
|
width: e.dropdownMenuWidth
|
|
4134
4134
|
}, {
|
|
4135
4135
|
items: b(() => [
|
|
4136
4136
|
ie(y.$slots, "actions", {
|
|
4137
|
-
row:
|
|
4137
|
+
row: V,
|
|
4138
4138
|
rowKey: W,
|
|
4139
4139
|
rowValue: Q
|
|
4140
4140
|
}, void 0, !0)
|
|
4141
4141
|
]),
|
|
4142
4142
|
default: b(() => [
|
|
4143
|
-
k(
|
|
4143
|
+
k(U, {
|
|
4144
4144
|
appearance: "tertiary",
|
|
4145
4145
|
class: "actions-trigger",
|
|
4146
4146
|
"data-testid": "overflow-actions-button",
|
|
@@ -4159,13 +4159,13 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4159
4159
|
]),
|
|
4160
4160
|
_: 2
|
|
4161
4161
|
}, [
|
|
4162
|
-
ye(e.tableHeaders, (
|
|
4162
|
+
ye(e.tableHeaders, (V, W) => ({
|
|
4163
4163
|
name: W,
|
|
4164
4164
|
fn: b(({ row: Q, rowKey: pe, rowValue: fe }) => [
|
|
4165
|
-
k(
|
|
4165
|
+
k(Yl, {
|
|
4166
4166
|
"key-name": String(W),
|
|
4167
4167
|
"row-el": p(Q),
|
|
4168
|
-
tooltip:
|
|
4168
|
+
tooltip: V.tooltip
|
|
4169
4169
|
}, {
|
|
4170
4170
|
default: b(() => [
|
|
4171
4171
|
ie(y.$slots, W, {
|
|
@@ -4244,7 +4244,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4244
4244
|
r("proceed");
|
|
4245
4245
|
};
|
|
4246
4246
|
return (l, u) => {
|
|
4247
|
-
const m =
|
|
4247
|
+
const m = R("KAlert"), p = R("KPrompt");
|
|
4248
4248
|
return v(), P(p, {
|
|
4249
4249
|
"action-button-appearance": "danger",
|
|
4250
4250
|
"action-button-disabled": e.actionPending,
|
|
@@ -4257,7 +4257,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4257
4257
|
onProceed: c
|
|
4258
4258
|
}, {
|
|
4259
4259
|
default: b(() => [
|
|
4260
|
-
e.error ? (v(),
|
|
4260
|
+
e.error ? (v(), I("div", rs, [
|
|
4261
4261
|
k(m, { appearance: "danger" }, {
|
|
4262
4262
|
default: b(() => [
|
|
4263
4263
|
J($(e.error), 1)
|
|
@@ -4269,7 +4269,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4269
4269
|
class: "message",
|
|
4270
4270
|
keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
4271
4271
|
tag: "p"
|
|
4272
|
-
},
|
|
4272
|
+
}, Ke({
|
|
4273
4273
|
entityType: b(() => [
|
|
4274
4274
|
J($(a.entityType), 1)
|
|
4275
4275
|
]),
|
|
@@ -4278,14 +4278,14 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4278
4278
|
a.entityName ? {
|
|
4279
4279
|
name: "entityName",
|
|
4280
4280
|
fn: b(() => [
|
|
4281
|
-
|
|
4281
|
+
E("strong", null, $(a.entityName), 1)
|
|
4282
4282
|
]),
|
|
4283
4283
|
key: "0"
|
|
4284
4284
|
} : void 0
|
|
4285
4285
|
]), 1032, ["keypath"]),
|
|
4286
|
-
a.description || l.$slots.description ? (v(),
|
|
4286
|
+
a.description || l.$slots.description ? (v(), I("div", as, [
|
|
4287
4287
|
ie(l.$slots, "description", {}, () => [
|
|
4288
|
-
|
|
4288
|
+
E("p", null, $(a.description), 1)
|
|
4289
4289
|
], !0)
|
|
4290
4290
|
])) : H("", !0)
|
|
4291
4291
|
]),
|
|
@@ -4316,16 +4316,16 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4316
4316
|
}
|
|
4317
4317
|
},
|
|
4318
4318
|
setup(e) {
|
|
4319
|
-
return (t, i) => (v(),
|
|
4320
|
-
|
|
4321
|
-
|
|
4319
|
+
return (t, i) => (v(), I("svg", ls, [
|
|
4320
|
+
E("mask", ss, [
|
|
4321
|
+
E("rect", {
|
|
4322
4322
|
fill: e.color,
|
|
4323
4323
|
height: "20",
|
|
4324
4324
|
width: "20"
|
|
4325
4325
|
}, null, 8, cs)
|
|
4326
4326
|
]),
|
|
4327
|
-
|
|
4328
|
-
|
|
4327
|
+
E("g", us, [
|
|
4328
|
+
E("path", {
|
|
4329
4329
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
4330
4330
|
fill: e.color
|
|
4331
4331
|
}, null, 8, ds)
|
|
@@ -4355,7 +4355,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4355
4355
|
},
|
|
4356
4356
|
emits: ["update:modelValue"],
|
|
4357
4357
|
setup(e, { emit: t }) {
|
|
4358
|
-
const { i18n: { t: i } } = ne.useI18n(), a = e, r = t, n =
|
|
4358
|
+
const { i18n: { t: i } } = ne.useI18n(), a = e, r = t, n = q(!1), o = q({}), c = q(/* @__PURE__ */ new Set()), l = x(() => {
|
|
4359
4359
|
const s = [];
|
|
4360
4360
|
return new URLSearchParams(a.modelValue).forEach((S, y) => {
|
|
4361
4361
|
S !== "" && s.push(y);
|
|
@@ -4384,7 +4384,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4384
4384
|
r("update:modelValue", s);
|
|
4385
4385
|
}, h = () => {
|
|
4386
4386
|
_("");
|
|
4387
|
-
},
|
|
4387
|
+
}, A = (s) => `filter-${s}`, O = (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,
|
|
@@ -4393,19 +4393,19 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4393
4393
|
}, C = (s) => {
|
|
4394
4394
|
var S, y;
|
|
4395
4395
|
return ((y = (S = a.config.schema) == null ? void 0 : S[s]) == null ? void 0 : y.type) ?? "text";
|
|
4396
|
-
},
|
|
4396
|
+
}, K = (s) => {
|
|
4397
4397
|
o.value = {
|
|
4398
4398
|
...o.value,
|
|
4399
4399
|
[s]: ""
|
|
4400
|
-
},
|
|
4401
|
-
},
|
|
4402
|
-
o.value = {},
|
|
4403
|
-
},
|
|
4400
|
+
}, Y();
|
|
4401
|
+
}, N = () => {
|
|
4402
|
+
o.value = {}, Y(!0);
|
|
4403
|
+
}, Y = (s = !1) => {
|
|
4404
4404
|
const S = Object.keys(o.value).reduce((y, T) => (o.value[T] && (y[T] = `${o.value[T]}`), y), {});
|
|
4405
4405
|
s && (n.value = !1), r("update:modelValue", new URLSearchParams(S).toString());
|
|
4406
4406
|
};
|
|
4407
4407
|
return (s, S) => {
|
|
4408
|
-
const y =
|
|
4408
|
+
const y = R("KInput"), T = R("KButton"), U = R("KSelect");
|
|
4409
4409
|
return e.config.isExactMatch ? (v(), P(y, {
|
|
4410
4410
|
key: 0,
|
|
4411
4411
|
autocomplete: "off",
|
|
@@ -4423,11 +4423,11 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4423
4423
|
class: "kong-ui-entity-filter-clear",
|
|
4424
4424
|
onClick: h
|
|
4425
4425
|
}, null, 512), [
|
|
4426
|
-
[
|
|
4426
|
+
[Ae, e.modelValue !== ""]
|
|
4427
4427
|
])
|
|
4428
4428
|
]),
|
|
4429
4429
|
_: 1
|
|
4430
|
-
}, 8, ["model-value", "placeholder"])) : (v(),
|
|
4430
|
+
}, 8, ["model-value", "placeholder"])) : (v(), I("div", ps, [
|
|
4431
4431
|
k(T, {
|
|
4432
4432
|
appearance: "tertiary",
|
|
4433
4433
|
"data-testid": "filter-button",
|
|
@@ -4439,66 +4439,66 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4439
4439
|
]),
|
|
4440
4440
|
_: 1
|
|
4441
4441
|
}),
|
|
4442
|
-
xe(
|
|
4442
|
+
xe(E("div", {
|
|
4443
4443
|
class: "kong-ui-entity-filter-backdrop",
|
|
4444
4444
|
onClick: m
|
|
4445
4445
|
}, null, 512), [
|
|
4446
|
-
[
|
|
4446
|
+
[Ae, n.value]
|
|
4447
4447
|
]),
|
|
4448
|
-
xe(
|
|
4449
|
-
(v(!0),
|
|
4448
|
+
xe(E("div", fs, [
|
|
4449
|
+
(v(!0), I(he, null, ye(u.value, (j) => {
|
|
4450
4450
|
var z, L;
|
|
4451
|
-
return v(),
|
|
4452
|
-
key:
|
|
4451
|
+
return v(), I("div", {
|
|
4452
|
+
key: j.value,
|
|
4453
4453
|
class: "kong-ui-entity-filter-menu-item",
|
|
4454
|
-
"data-testid":
|
|
4454
|
+
"data-testid": j.value
|
|
4455
4455
|
}, [
|
|
4456
|
-
|
|
4457
|
-
class: Te(["menu-item-title", { expanded: c.value.has(
|
|
4456
|
+
E("span", {
|
|
4457
|
+
class: Te(["menu-item-title", { expanded: c.value.has(j.value) }]),
|
|
4458
4458
|
role: "button",
|
|
4459
4459
|
tabindex: "0",
|
|
4460
|
-
onClick: (
|
|
4461
|
-
onKeydown: fr((
|
|
4460
|
+
onClick: (V) => p(j.value),
|
|
4461
|
+
onKeydown: fr((V) => p(j.value), ["enter"])
|
|
4462
4462
|
}, [
|
|
4463
|
-
J($(
|
|
4464
|
-
xe(
|
|
4465
|
-
[
|
|
4463
|
+
J($(j.label) + " ", 1),
|
|
4464
|
+
xe(E("span", ys, null, 512), [
|
|
4465
|
+
[Ae, l.value.includes(j.value)]
|
|
4466
4466
|
]),
|
|
4467
|
-
k(f(
|
|
4468
|
-
class: Te(["menu-item-expand-icon", { expanded: c.value.has(
|
|
4467
|
+
k(f(Al), {
|
|
4468
|
+
class: Te(["menu-item-expand-icon", { expanded: c.value.has(j.value) }]),
|
|
4469
4469
|
color: f(ha)
|
|
4470
4470
|
}, null, 8, ["class", "color"])
|
|
4471
4471
|
], 42, ms),
|
|
4472
|
-
xe(
|
|
4473
|
-
|
|
4472
|
+
xe(E("div", vs, [
|
|
4473
|
+
E("label", {
|
|
4474
4474
|
class: "menu-item-label",
|
|
4475
|
-
for:
|
|
4475
|
+
for: A(j.value)
|
|
4476
4476
|
}, $(f(i)("filter.fieldLabel")), 9, hs),
|
|
4477
|
-
((L = (z = e.config.schema) == null ? void 0 : z[
|
|
4477
|
+
((L = (z = e.config.schema) == null ? void 0 : z[j.value]) == null ? void 0 : L.type) === "select" ? (v(), P(U, {
|
|
4478
4478
|
key: 0,
|
|
4479
|
-
id:
|
|
4480
|
-
modelValue: o.value[
|
|
4481
|
-
"onUpdate:modelValue": (
|
|
4482
|
-
items: O(
|
|
4479
|
+
id: A(j.value),
|
|
4480
|
+
modelValue: o.value[j.value],
|
|
4481
|
+
"onUpdate:modelValue": (V) => o.value[j.value] = V,
|
|
4482
|
+
items: O(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,
|
|
4486
|
-
id:
|
|
4487
|
-
modelValue: o.value[
|
|
4488
|
-
"onUpdate:modelValue": (
|
|
4486
|
+
id: A(j.value),
|
|
4487
|
+
modelValue: o.value[j.value],
|
|
4488
|
+
"onUpdate:modelValue": (V) => o.value[j.value] = V,
|
|
4489
4489
|
autocomplete: "off",
|
|
4490
4490
|
placeholder: f(i)("filter.inputPlaceholder"),
|
|
4491
|
-
type: C(
|
|
4491
|
+
type: C(j.value)
|
|
4492
4492
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4493
4493
|
], 512), [
|
|
4494
|
-
[
|
|
4494
|
+
[Ae, c.value.has(j.value)]
|
|
4495
4495
|
]),
|
|
4496
|
-
xe(
|
|
4496
|
+
xe(E("div", bs, [
|
|
4497
4497
|
k(T, {
|
|
4498
4498
|
appearance: "tertiary",
|
|
4499
4499
|
"data-testid": "apply-filter",
|
|
4500
4500
|
size: "small",
|
|
4501
|
-
onClick: S[0] || (S[0] = (
|
|
4501
|
+
onClick: S[0] || (S[0] = (V) => Y(!0))
|
|
4502
4502
|
}, {
|
|
4503
4503
|
default: b(() => [
|
|
4504
4504
|
J($(f(i)("filter.applyButtonText")), 1)
|
|
@@ -4509,7 +4509,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4509
4509
|
appearance: "tertiary",
|
|
4510
4510
|
"data-testid": "clear-filter",
|
|
4511
4511
|
size: "small",
|
|
4512
|
-
onClick: (
|
|
4512
|
+
onClick: (V) => K(j.value)
|
|
4513
4513
|
}, {
|
|
4514
4514
|
default: b(() => [
|
|
4515
4515
|
J($(f(i)("filter.clearButtonText")), 1)
|
|
@@ -4517,15 +4517,15 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4517
4517
|
_: 2
|
|
4518
4518
|
}, 1032, ["onClick"])
|
|
4519
4519
|
], 512), [
|
|
4520
|
-
[
|
|
4520
|
+
[Ae, c.value.has(j.value)]
|
|
4521
4521
|
])
|
|
4522
4522
|
], 8, gs);
|
|
4523
4523
|
}), 128)),
|
|
4524
|
-
|
|
4524
|
+
E("div", ws, [
|
|
4525
4525
|
k(T, {
|
|
4526
4526
|
appearance: "tertiary",
|
|
4527
4527
|
size: "small",
|
|
4528
|
-
onClick:
|
|
4528
|
+
onClick: N
|
|
4529
4529
|
}, {
|
|
4530
4530
|
default: b(() => [
|
|
4531
4531
|
J($(f(i)("filter.clearAllButtonText")), 1)
|
|
@@ -4534,7 +4534,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4534
4534
|
})
|
|
4535
4535
|
])
|
|
4536
4536
|
], 512), [
|
|
4537
|
-
[
|
|
4537
|
+
[Ae, n.value]
|
|
4538
4538
|
])
|
|
4539
4539
|
]));
|
|
4540
4540
|
};
|
|
@@ -4571,7 +4571,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4571
4571
|
},
|
|
4572
4572
|
emits: ["cancel", "proceed"],
|
|
4573
4573
|
setup(e, { emit: t }) {
|
|
4574
|
-
const { i18n: { t: i }, i18nT: a } = ne.useI18n(), r = e, n = t, o =
|
|
4574
|
+
const { i18n: { t: i }, i18nT: a } = ne.useI18n(), r = e, n = t, o = q(!1), c = x(
|
|
4575
4575
|
() => r.action === "enable" ? i("toggleModal.enable.title", { entityType: r.entityType }) : i("toggleModal.disable.title", { entityType: r.entityType })
|
|
4576
4576
|
), l = x(
|
|
4577
4577
|
() => r.action === "enable" ? i("toggleModal.enable.confirmText") : i("toggleModal.disable.confirmText")
|
|
@@ -4588,7 +4588,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4588
4588
|
}
|
|
4589
4589
|
};
|
|
4590
4590
|
return (p, _) => {
|
|
4591
|
-
const h =
|
|
4591
|
+
const h = R("KPrompt");
|
|
4592
4592
|
return v(), P(ui, { to: "body" }, [
|
|
4593
4593
|
k(h, {
|
|
4594
4594
|
"action-button-disabled": o.value,
|
|
@@ -4608,7 +4608,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4608
4608
|
J($(e.entityType), 1)
|
|
4609
4609
|
]),
|
|
4610
4610
|
entityName: b(() => [
|
|
4611
|
-
|
|
4611
|
+
E("strong", null, $(e.entityName), 1)
|
|
4612
4612
|
]),
|
|
4613
4613
|
_: 1
|
|
4614
4614
|
}, 8, ["keypath"])
|
|
@@ -4618,7 +4618,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4618
4618
|
]);
|
|
4619
4619
|
};
|
|
4620
4620
|
}
|
|
4621
|
-
}),
|
|
4621
|
+
}), Ze = /* @__PURE__ */ ee({
|
|
4622
4622
|
__name: "PermissionsWrapper",
|
|
4623
4623
|
props: {
|
|
4624
4624
|
/**
|
|
@@ -4640,7 +4640,7 @@ const rl = { class: "yaml-config" }, ur = /* @__PURE__ */ ee({
|
|
|
4640
4640
|
}
|
|
4641
4641
|
},
|
|
4642
4642
|
setup(e) {
|
|
4643
|
-
const t = e, i =
|
|
4643
|
+
const t = e, i = q(void 0), a = x(() => i.value === !0 || i.value !== void 0 && t.forceShow === !0);
|
|
4644
4644
|
return Ce(() => t.authFunction, async () => {
|
|
4645
4645
|
i.value = await t.authFunction();
|
|
4646
4646
|
}, { immediate: !0 }), (r, n) => a.value ? ie(r.$slots, "default", {
|
|
@@ -4659,11 +4659,11 @@ function xs() {
|
|
|
4659
4659
|
const le = [];
|
|
4660
4660
|
for (let e = 0; e < 256; ++e)
|
|
4661
4661
|
le.push((e + 256).toString(16).slice(1));
|
|
4662
|
-
function
|
|
4662
|
+
function As(e, t = 0) {
|
|
4663
4663
|
return le[e[t + 0]] + le[e[t + 1]] + le[e[t + 2]] + le[e[t + 3]] + "-" + le[e[t + 4]] + le[e[t + 5]] + "-" + le[e[t + 6]] + le[e[t + 7]] + "-" + le[e[t + 8]] + le[e[t + 9]] + "-" + le[e[t + 10]] + le[e[t + 11]] + le[e[t + 12]] + le[e[t + 13]] + le[e[t + 14]] + le[e[t + 15]];
|
|
4664
4664
|
}
|
|
4665
|
-
const
|
|
4666
|
-
randomUUID:
|
|
4665
|
+
const Is = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), si = {
|
|
4666
|
+
randomUUID: Is
|
|
4667
4667
|
};
|
|
4668
4668
|
function Ts(e, t, i) {
|
|
4669
4669
|
if (si.randomUUID && !t && !e)
|
|
@@ -4676,15 +4676,15 @@ function Ts(e, t, i) {
|
|
|
4676
4676
|
t[i + r] = a[r];
|
|
4677
4677
|
return t;
|
|
4678
4678
|
}
|
|
4679
|
-
return
|
|
4679
|
+
return As(a);
|
|
4680
4680
|
}
|
|
4681
|
-
const $s = ["aria-labelledby"],
|
|
4681
|
+
const $s = ["aria-labelledby"], Ns = { class: "form-section-wrapper" }, js = {
|
|
4682
4682
|
key: 1,
|
|
4683
4683
|
class: "form-section-description"
|
|
4684
4684
|
}, Os = {
|
|
4685
4685
|
key: 2,
|
|
4686
4686
|
class: "form-section-footer"
|
|
4687
|
-
}, Ms = { class: "form-section-content" },
|
|
4687
|
+
}, Ms = { class: "form-section-content" }, Es = /* @__PURE__ */ ee({
|
|
4688
4688
|
__name: "EntityFormSection",
|
|
4689
4689
|
props: {
|
|
4690
4690
|
title: {
|
|
@@ -4714,13 +4714,13 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
4714
4714
|
},
|
|
4715
4715
|
setup(e) {
|
|
4716
4716
|
const t = Tt(), i = Ts();
|
|
4717
|
-
return (a, r) => (v(),
|
|
4717
|
+
return (a, r) => (v(), I("div", {
|
|
4718
4718
|
"aria-labelledby": e.title ? f(i) : void 0,
|
|
4719
4719
|
class: Te(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4720
4720
|
role: "group"
|
|
4721
4721
|
}, [
|
|
4722
|
-
|
|
4723
|
-
e.hideInfoHeader ? H("", !0) : (v(),
|
|
4722
|
+
E("div", Ns, [
|
|
4723
|
+
e.hideInfoHeader ? H("", !0) : (v(), I("div", {
|
|
4724
4724
|
key: 0,
|
|
4725
4725
|
class: Te(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4726
4726
|
}, [
|
|
@@ -4734,22 +4734,22 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
4734
4734
|
]),
|
|
4735
4735
|
_: 1
|
|
4736
4736
|
}, 8, ["id"])) : H("", !0),
|
|
4737
|
-
e.description || f(t).description ? (v(),
|
|
4737
|
+
e.description || f(t).description ? (v(), I("div", js, [
|
|
4738
4738
|
ie(a.$slots, "description", {}, () => [
|
|
4739
|
-
|
|
4739
|
+
E("p", null, $(e.description), 1)
|
|
4740
4740
|
], !0)
|
|
4741
4741
|
])) : H("", !0),
|
|
4742
|
-
f(t).footer ? (v(),
|
|
4742
|
+
f(t).footer ? (v(), I("div", Os, [
|
|
4743
4743
|
ie(a.$slots, "footer", {}, void 0, !0)
|
|
4744
4744
|
])) : H("", !0)
|
|
4745
4745
|
], 2)),
|
|
4746
|
-
|
|
4746
|
+
E("div", Ms, [
|
|
4747
4747
|
ie(a.$slots, "default", {}, void 0, !0)
|
|
4748
4748
|
])
|
|
4749
4749
|
])
|
|
4750
4750
|
], 10, $s));
|
|
4751
4751
|
}
|
|
4752
|
-
}), ci = /* @__PURE__ */ ve(
|
|
4752
|
+
}), ci = /* @__PURE__ */ ve(Es, [["__scopeId", "data-v-b1f74200"]]), { useAxios: dr, useDeleteUrlBuilder: Fs, useErrors: Vs, useExternalLinkCreator: mc, useFetchUrlBuilder: yc, useFetcher: qs, useDebouncedFilter: vc, useStringHelpers: hc, useHelpers: Ls, useGatewayFeatureSupported: Us, useTruncationDetector: bc, useValidators: Bs } = ne, Ks = { class: "kong-ui-entities-gateway-services-list" }, Rs = { key: 1 }, Ps = { key: 1 }, Ds = /* @__PURE__ */ ee({
|
|
4753
4753
|
__name: "GatewayServiceList",
|
|
4754
4754
|
props: {
|
|
4755
4755
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4801,7 +4801,7 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
4801
4801
|
emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
|
|
4802
4802
|
setup(e, { emit: t }) {
|
|
4803
4803
|
var d;
|
|
4804
|
-
const i = t, a = e, { i18n: { t: r } } = st.useI18n(), n = $t(), { axiosInstance: o } = dr((d = a.config) == null ? void 0 : d.axiosRequestConfig), c =
|
|
4804
|
+
const i = t, a = e, { i18n: { t: r } } = st.useI18n(), n = $t(), { axiosInstance: o } = dr((d = a.config) == null ? void 0 : d.axiosRequestConfig), c = q(1), l = x(() => a.config.app !== "kongManager" || !!a.config.disableSorting), u = {
|
|
4805
4805
|
name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
4806
4806
|
...a.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
|
|
4807
4807
|
protocol: { label: r("gateway_services.list.table_headers.protocol"), searchable: !0, sortable: !0 },
|
|
@@ -4814,7 +4814,7 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
4814
4814
|
var M, D;
|
|
4815
4815
|
let g = `${a.config.apiBaseUrl}${Qe.list[a.config.app].all}`;
|
|
4816
4816
|
return a.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((M = a.config) == null ? void 0 : M.controlPlaneId) || "") : a.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (D = a.config) != null && D.workspace ? `/${a.config.workspace}` : "")), g;
|
|
4817
|
-
}), _ = x(() => a.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), h =
|
|
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)
|
|
4820
4820
|
return {
|
|
@@ -4827,16 +4827,16 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
4827
4827
|
fields: { name: M, enabled: D, protocol: G, host: X, port: w, path: ke },
|
|
4828
4828
|
schema: a.config.filterSchema
|
|
4829
4829
|
};
|
|
4830
|
-
}), { fetcher: O, fetcherState: C } =
|
|
4830
|
+
}), { fetcher: O, fetcherState: C } = qs(a.config, p.value), K = () => {
|
|
4831
4831
|
h.value = "";
|
|
4832
|
-
},
|
|
4832
|
+
}, N = () => {
|
|
4833
4833
|
c.value++;
|
|
4834
|
-
},
|
|
4834
|
+
}, Y = q(null), s = x(() => ({
|
|
4835
4835
|
ctaPath: a.config.createRoute,
|
|
4836
|
-
ctaText:
|
|
4836
|
+
ctaText: Fe.value ? a.isServerless ? r("actions.serverless_create") : r("actions.create") : void 0,
|
|
4837
4837
|
message: `${r("gateway_services.list.empty_state.description")}${a.config.additionMessageForEmptyState ? ` ${a.config.additionMessageForEmptyState}` : ""}`,
|
|
4838
|
-
title:
|
|
4839
|
-
})), S =
|
|
4838
|
+
title: Fe.value ? a.isServerless ? r("gateway_services.list.empty_state.serverless_title") : r("gateway_services.list.empty_state.title") : r("gateway_services.title")
|
|
4839
|
+
})), S = q(!1), y = q(null), T = x(() => {
|
|
4840
4840
|
const g = {
|
|
4841
4841
|
action: "disable",
|
|
4842
4842
|
id: "",
|
|
@@ -4847,9 +4847,9 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
4847
4847
|
g.action = M ? "disable" : "enable", g.id = D, g.name = G || D;
|
|
4848
4848
|
}
|
|
4849
4849
|
return g;
|
|
4850
|
-
}),
|
|
4850
|
+
}), U = (g) => {
|
|
4851
4851
|
S.value = !0, y.value = g;
|
|
4852
|
-
},
|
|
4852
|
+
}, j = () => {
|
|
4853
4853
|
S.value = !1, y.value = null;
|
|
4854
4854
|
}, z = async () => {
|
|
4855
4855
|
var G, X;
|
|
@@ -4865,7 +4865,7 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
4865
4865
|
y.value.enabled = D;
|
|
4866
4866
|
}, L = (g) => {
|
|
4867
4867
|
a.config.getControlPlaneRoute && n.push(a.config.getControlPlaneRoute(g));
|
|
4868
|
-
},
|
|
4868
|
+
}, V = (g, M) => {
|
|
4869
4869
|
const D = g.id;
|
|
4870
4870
|
if (!M(D)) {
|
|
4871
4871
|
i("copy:error", {
|
|
@@ -4902,11 +4902,11 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
4902
4902
|
}), fe = (g) => ({
|
|
4903
4903
|
label: r("actions.edit"),
|
|
4904
4904
|
to: a.config.getEditRoute(g)
|
|
4905
|
-
}), ae =
|
|
4906
|
-
ae.value = g,
|
|
4905
|
+
}), ae = q(void 0), Ne = q(!1), He = q(!1), Ge = q(""), yt = Fs(a.config, p.value), Je = (g) => {
|
|
4906
|
+
ae.value = g, Ne.value = !0;
|
|
4907
4907
|
}, at = () => {
|
|
4908
|
-
|
|
4909
|
-
},
|
|
4908
|
+
Ne.value = !1, ae.value = void 0;
|
|
4909
|
+
}, je = async () => {
|
|
4910
4910
|
var g, M, D;
|
|
4911
4911
|
if ((g = ae.value) != null && g.id) {
|
|
4912
4912
|
He.value = !0;
|
|
@@ -4918,30 +4918,30 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
4918
4918
|
He.value = !1;
|
|
4919
4919
|
}
|
|
4920
4920
|
}
|
|
4921
|
-
},
|
|
4921
|
+
}, Ee = q(!0);
|
|
4922
4922
|
Ce(C, (g) => {
|
|
4923
4923
|
var M, D, G, X;
|
|
4924
|
-
if (Array.isArray((M = g == null ? void 0 : g.response) == null ? void 0 : M.data) && (
|
|
4925
|
-
|
|
4924
|
+
if (Array.isArray((M = g == null ? void 0 : g.response) == null ? void 0 : M.data) && (Ee.value = g.response.data.length > 0), g.status === Oe.Error) {
|
|
4925
|
+
Y.value = {
|
|
4926
4926
|
title: r("errors.general")
|
|
4927
|
-
}, (X = (G = (D = g.error) == null ? void 0 : D.response) == null ? void 0 : G.data) != null && X.message && (
|
|
4927
|
+
}, (X = (G = (D = g.error) == null ? void 0 : D.response) == null ? void 0 : G.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;
|
|
4931
4931
|
});
|
|
4932
|
-
const
|
|
4933
|
-
return
|
|
4934
|
-
|
|
4932
|
+
const Fe = q(!1);
|
|
4933
|
+
return It(async () => {
|
|
4934
|
+
Fe.value = await a.canCreate();
|
|
4935
4935
|
}), (g, M) => {
|
|
4936
|
-
const D =
|
|
4937
|
-
return v(),
|
|
4936
|
+
const D = R("KButton"), G = R("KBadge"), X = R("KInputSwitch"), w = R("KTruncate"), ke = R("KDropdownItem"), B = R("KClipboardProvider");
|
|
4937
|
+
return v(), I("div", Ks, [
|
|
4938
4938
|
k(f(is), {
|
|
4939
4939
|
"cache-identifier": e.cacheIdentifier,
|
|
4940
4940
|
"disable-pagination-page-jump": "",
|
|
4941
4941
|
"disable-sorting": l.value,
|
|
4942
4942
|
"empty-state-options": s.value,
|
|
4943
4943
|
"enable-entity-actions": "",
|
|
4944
|
-
"error-message":
|
|
4944
|
+
"error-message": Y.value,
|
|
4945
4945
|
fetcher: f(O),
|
|
4946
4946
|
"fetcher-cache-key": c.value,
|
|
4947
4947
|
"pagination-type": "offset",
|
|
@@ -4949,15 +4949,15 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
4949
4949
|
query: h.value,
|
|
4950
4950
|
"table-headers": f(m),
|
|
4951
4951
|
"use-action-outside": e.useActionOutside,
|
|
4952
|
-
onClearSearchInput:
|
|
4953
|
-
"onClick:row": M[3] || (M[3] = (
|
|
4954
|
-
onSort:
|
|
4952
|
+
onClearSearchInput: K,
|
|
4953
|
+
"onClick:row": M[3] || (M[3] = (Z) => Q(Z)),
|
|
4954
|
+
onSort: N
|
|
4955
4955
|
}, {
|
|
4956
4956
|
"toolbar-filter": b(() => [
|
|
4957
4957
|
k(f(ks), {
|
|
4958
4958
|
modelValue: h.value,
|
|
4959
|
-
"onUpdate:modelValue": M[0] || (M[0] = (
|
|
4960
|
-
config:
|
|
4959
|
+
"onUpdate:modelValue": M[0] || (M[0] = (Z) => h.value = Z),
|
|
4960
|
+
config: A.value
|
|
4961
4961
|
}, null, 8, ["modelValue", "config"])
|
|
4962
4962
|
]),
|
|
4963
4963
|
"toolbar-button": b(() => [
|
|
@@ -4965,7 +4965,7 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
4965
4965
|
disabled: !e.useActionOutside,
|
|
4966
4966
|
to: "#kong-ui-app-page-header-action-button"
|
|
4967
4967
|
}, [
|
|
4968
|
-
k(f(
|
|
4968
|
+
k(f(Ze), {
|
|
4969
4969
|
"auth-function": () => e.canCreate()
|
|
4970
4970
|
}, {
|
|
4971
4971
|
default: b(() => [
|
|
@@ -4976,63 +4976,63 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
4976
4976
|
to: e.config.createRoute
|
|
4977
4977
|
}, {
|
|
4978
4978
|
default: b(() => [
|
|
4979
|
-
k(f(
|
|
4979
|
+
k(f(Ar)),
|
|
4980
4980
|
J(" " + $(f(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
4981
4981
|
]),
|
|
4982
4982
|
_: 1
|
|
4983
4983
|
}, 8, ["to"]), [
|
|
4984
|
-
[
|
|
4984
|
+
[Ae, Ee.value]
|
|
4985
4985
|
])
|
|
4986
4986
|
]),
|
|
4987
4987
|
_: 1
|
|
4988
4988
|
}, 8, ["auth-function"])
|
|
4989
4989
|
], 8, ["disabled"]))
|
|
4990
4990
|
]),
|
|
4991
|
-
name: b(({ rowValue:
|
|
4992
|
-
|
|
4991
|
+
name: b(({ rowValue: Z }) => [
|
|
4992
|
+
E("b", null, $(Z ?? "-"), 1)
|
|
4993
4993
|
]),
|
|
4994
|
-
control_plane: b(({ row:
|
|
4994
|
+
control_plane: b(({ row: Z }) => {
|
|
4995
4995
|
var me;
|
|
4996
4996
|
return [
|
|
4997
|
-
(me =
|
|
4997
|
+
(me = Z.x_meta) != null && me.cluster_id ? (v(), P(G, {
|
|
4998
4998
|
key: 0,
|
|
4999
|
-
tooltip:
|
|
4999
|
+
tooltip: Z.x_meta.cluster_id,
|
|
5000
5000
|
"truncation-tooltip": "",
|
|
5001
|
-
onClick: Le((We) => L(
|
|
5001
|
+
onClick: Le((We) => L(Z.x_meta.cluster_id), ["stop"])
|
|
5002
5002
|
}, {
|
|
5003
5003
|
default: b(() => [
|
|
5004
|
-
J($(
|
|
5004
|
+
J($(Z.x_meta.cluster_id), 1)
|
|
5005
5005
|
]),
|
|
5006
5006
|
_: 2
|
|
5007
|
-
}, 1032, ["tooltip", "onClick"])) : (v(),
|
|
5007
|
+
}, 1032, ["tooltip", "onClick"])) : (v(), I("b", Rs, "-"))
|
|
5008
5008
|
];
|
|
5009
5009
|
}),
|
|
5010
|
-
enabled: b(({ row:
|
|
5011
|
-
k(f(
|
|
5012
|
-
"auth-function": () => e.canEdit(
|
|
5010
|
+
enabled: b(({ row: Z }) => [
|
|
5011
|
+
k(f(Ze), {
|
|
5012
|
+
"auth-function": () => e.canEdit(Z),
|
|
5013
5013
|
"force-show": ""
|
|
5014
5014
|
}, {
|
|
5015
5015
|
default: b(({ isAllowed: me }) => [
|
|
5016
|
-
|
|
5016
|
+
E("div", {
|
|
5017
5017
|
onClick: M[1] || (M[1] = Le(() => {
|
|
5018
5018
|
}, ["stop"]))
|
|
5019
5019
|
}, [
|
|
5020
5020
|
k(X, {
|
|
5021
|
-
modelValue:
|
|
5022
|
-
"onUpdate:modelValue": (We) =>
|
|
5023
|
-
"data-testid": `row-${
|
|
5021
|
+
modelValue: Z.enabled,
|
|
5022
|
+
"onUpdate:modelValue": (We) => Z.enabled = We,
|
|
5023
|
+
"data-testid": `row-${Z.id}-toggle-input`,
|
|
5024
5024
|
disabled: !me,
|
|
5025
|
-
onClick: Le((We) =>
|
|
5025
|
+
onClick: Le((We) => U(Z), ["prevent"])
|
|
5026
5026
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "onClick"])
|
|
5027
5027
|
])
|
|
5028
5028
|
]),
|
|
5029
5029
|
_: 2
|
|
5030
5030
|
}, 1032, ["auth-function"])
|
|
5031
5031
|
]),
|
|
5032
|
-
tags: b(({ rowValue:
|
|
5033
|
-
(
|
|
5032
|
+
tags: b(({ rowValue: Z }) => [
|
|
5033
|
+
(Z == null ? void 0 : Z.length) > 0 ? (v(), P(w, { key: 0 }, {
|
|
5034
5034
|
default: b(() => [
|
|
5035
|
-
(v(!0),
|
|
5035
|
+
(v(!0), I(he, null, ye(Z, (me) => (v(), P(G, {
|
|
5036
5036
|
key: me,
|
|
5037
5037
|
onClick: M[2] || (M[2] = Le(() => {
|
|
5038
5038
|
}, ["stop"]))
|
|
@@ -5044,14 +5044,14 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5044
5044
|
}, 1024))), 128))
|
|
5045
5045
|
]),
|
|
5046
5046
|
_: 2
|
|
5047
|
-
}, 1024)) : (v(),
|
|
5047
|
+
}, 1024)) : (v(), I("span", Ps, "-"))
|
|
5048
5048
|
]),
|
|
5049
|
-
actions: b(({ row:
|
|
5050
|
-
k(
|
|
5049
|
+
actions: b(({ row: Z }) => [
|
|
5050
|
+
k(B, null, {
|
|
5051
5051
|
default: b(({ copyToClipboard: me }) => [
|
|
5052
5052
|
k(ke, {
|
|
5053
5053
|
"data-testid": "action-entity-copy-id",
|
|
5054
|
-
onClick: (We) =>
|
|
5054
|
+
onClick: (We) => V(Z, me)
|
|
5055
5055
|
}, {
|
|
5056
5056
|
default: b(() => [
|
|
5057
5057
|
J($(f(r)("actions.copy_id")), 1)
|
|
@@ -5061,11 +5061,11 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5061
5061
|
]),
|
|
5062
5062
|
_: 2
|
|
5063
5063
|
}, 1024),
|
|
5064
|
-
k(
|
|
5064
|
+
k(B, null, {
|
|
5065
5065
|
default: b(({ copyToClipboard: me }) => [
|
|
5066
5066
|
k(ke, {
|
|
5067
5067
|
"data-testid": "action-entity-copy-json",
|
|
5068
|
-
onClick: (We) => W(
|
|
5068
|
+
onClick: (We) => W(Z, me)
|
|
5069
5069
|
}, {
|
|
5070
5070
|
default: b(() => [
|
|
5071
5071
|
J($(f(r)("actions.copy_json")), 1)
|
|
@@ -5075,38 +5075,38 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5075
5075
|
]),
|
|
5076
5076
|
_: 2
|
|
5077
5077
|
}, 1024),
|
|
5078
|
-
k(f(
|
|
5079
|
-
"auth-function": () => e.canRetrieve(
|
|
5078
|
+
k(f(Ze), {
|
|
5079
|
+
"auth-function": () => e.canRetrieve(Z)
|
|
5080
5080
|
}, {
|
|
5081
5081
|
default: b(() => [
|
|
5082
5082
|
k(ke, {
|
|
5083
5083
|
"data-testid": "action-entity-view",
|
|
5084
5084
|
"has-divider": "",
|
|
5085
|
-
item: pe(
|
|
5085
|
+
item: pe(Z.id)
|
|
5086
5086
|
}, null, 8, ["item"])
|
|
5087
5087
|
]),
|
|
5088
5088
|
_: 2
|
|
5089
5089
|
}, 1032, ["auth-function"]),
|
|
5090
|
-
k(f(
|
|
5091
|
-
"auth-function": () => e.canEdit(
|
|
5090
|
+
k(f(Ze), {
|
|
5091
|
+
"auth-function": () => e.canEdit(Z)
|
|
5092
5092
|
}, {
|
|
5093
5093
|
default: b(() => [
|
|
5094
5094
|
k(ke, {
|
|
5095
5095
|
"data-testid": "action-entity-edit",
|
|
5096
|
-
item: fe(
|
|
5096
|
+
item: fe(Z.id)
|
|
5097
5097
|
}, null, 8, ["item"])
|
|
5098
5098
|
]),
|
|
5099
5099
|
_: 2
|
|
5100
5100
|
}, 1032, ["auth-function"]),
|
|
5101
|
-
k(f(
|
|
5102
|
-
"auth-function": () => e.canDelete(
|
|
5101
|
+
k(f(Ze), {
|
|
5102
|
+
"auth-function": () => e.canDelete(Z)
|
|
5103
5103
|
}, {
|
|
5104
5104
|
default: b(() => [
|
|
5105
5105
|
k(ke, {
|
|
5106
5106
|
danger: "",
|
|
5107
5107
|
"data-testid": "action-entity-delete",
|
|
5108
5108
|
"has-divider": "",
|
|
5109
|
-
onClick: (me) => Je(
|
|
5109
|
+
onClick: (me) => Je(Z)
|
|
5110
5110
|
}, {
|
|
5111
5111
|
default: b(() => [
|
|
5112
5112
|
J($(f(r)("actions.delete.menu_label")), 1)
|
|
@@ -5126,8 +5126,8 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5126
5126
|
"entity-type": f(r)("glossary.gateway_services"),
|
|
5127
5127
|
"on-confirm": z,
|
|
5128
5128
|
visible: S.value,
|
|
5129
|
-
onCancel:
|
|
5130
|
-
onProceed:
|
|
5129
|
+
onCancel: j,
|
|
5130
|
+
onProceed: j
|
|
5131
5131
|
}, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
|
|
5132
5132
|
k(f(ns), {
|
|
5133
5133
|
"action-pending": He.value,
|
|
@@ -5136,9 +5136,9 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5136
5136
|
"entity-type": f(mi).GatewayService,
|
|
5137
5137
|
error: Ge.value,
|
|
5138
5138
|
title: f(r)("actions.delete.title"),
|
|
5139
|
-
visible:
|
|
5139
|
+
visible: Ne.value,
|
|
5140
5140
|
onCancel: at,
|
|
5141
|
-
onProceed:
|
|
5141
|
+
onProceed: je
|
|
5142
5142
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
5143
5143
|
]);
|
|
5144
5144
|
};
|
|
@@ -5151,10 +5151,10 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5151
5151
|
}, wc = /* @__PURE__ */ pr(Ds, [["__scopeId", "data-v-34afbc0d"]]), zs = { class: "kong-ui-entities-gateway-service-form" }, Hs = { key: 0 }, Gs = { class: "gateway-service-form-traffic-label" }, Js = { class: "gateway-service-form-margin-bottom" }, Ws = {
|
|
5152
5152
|
key: 0,
|
|
5153
5153
|
class: "gateway-service-form-group-fields"
|
|
5154
|
-
},
|
|
5154
|
+
}, Zs = {
|
|
5155
5155
|
key: 1,
|
|
5156
5156
|
class: "gateway-service-form-group-fields"
|
|
5157
|
-
},
|
|
5157
|
+
}, Ys = { key: 0 }, Qs = { class: "gateway-service-form-margin-top" }, Xs = { class: "gateway-service-form-margin-bottom" }, ec = { class: "gateway-service-form-margin-bottom" }, tc = { class: "gateway-service-form-margin-bottom" }, ic = { class: "gateway-service-form-margin-bottom" }, rc = {
|
|
5158
5158
|
key: 0,
|
|
5159
5159
|
class: "gateway-service-form-margin-bottom"
|
|
5160
5160
|
}, ac = {
|
|
@@ -5193,8 +5193,8 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5193
5193
|
},
|
|
5194
5194
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
5195
5195
|
setup(e, { expose: t, emit: i }) {
|
|
5196
|
-
var
|
|
5197
|
-
const a = i, r = e, n =
|
|
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), O = x(() => !!r.gatewayServiceId), C = q(O.value ? "protocol" : "url"), K = st.usePortFromProtocol(), N = q(""), Y = x(() => !!N.value), s = qt({
|
|
5198
5198
|
fields: {
|
|
5199
5199
|
name: "",
|
|
5200
5200
|
protocol: "http",
|
|
@@ -5214,7 +5214,7 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5214
5214
|
},
|
|
5215
5215
|
isReadonly: !1,
|
|
5216
5216
|
errorMessage: ""
|
|
5217
|
-
}), S =
|
|
5217
|
+
}), S = qt({
|
|
5218
5218
|
name: "",
|
|
5219
5219
|
protocol: "http",
|
|
5220
5220
|
host: "",
|
|
@@ -5230,7 +5230,7 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5230
5230
|
tls_verify_enabled: !1,
|
|
5231
5231
|
tls_verify_value: !1,
|
|
5232
5232
|
tags: ""
|
|
5233
|
-
}), y = r.config.app === "konnect" ||
|
|
5233
|
+
}), y = r.config.app === "konnect" || Us({
|
|
5234
5234
|
gatewayInfo: r.config.gatewayInfo,
|
|
5235
5235
|
// 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
|
|
5236
5236
|
supportedRange: {
|
|
@@ -5289,17 +5289,17 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5289
5289
|
value: "udp",
|
|
5290
5290
|
group: "udp"
|
|
5291
5291
|
}
|
|
5292
|
-
],
|
|
5292
|
+
], U = { url: "url", protocol: "protocol" }, j = (d, g) => {
|
|
5293
5293
|
g.value;
|
|
5294
5294
|
}, z = (d) => d ? parseFloat(d) : 0, L = () => {
|
|
5295
5295
|
n.value = !0, s.errorMessage = "", s.fields.host = S.host, s.fields.path = S.path, s.fields.port = S.port, s.fields.protocol = S.protocol, s.fields.url = S.url, s.fields.retries = S.retries, s.fields.connect_timeout = S.connect_timeout, s.fields.write_timeout = S.write_timeout, s.fields.read_timeout = S.read_timeout, s.fields.client_certificate = S.client_certificate, s.fields.ca_certificates = S.ca_certificates, s.fields.tls_verify_enabled = S.tls_verify_enabled, s.fields.tls_verify_value = S.tls_verify_value;
|
|
5296
|
-
},
|
|
5296
|
+
}, V = () => {
|
|
5297
5297
|
if (s.fields.url && C.value === "url")
|
|
5298
5298
|
try {
|
|
5299
5299
|
const d = new URL(s.fields.url);
|
|
5300
5300
|
s.errorMessage = "", s.fields.protocol = d.protocol.slice(0, -1), s.fields.host = d.hostname, s.fields.path = d.pathname;
|
|
5301
5301
|
const g = Number(d.port);
|
|
5302
|
-
|
|
5302
|
+
A.value = !!g, s.fields.port = g || K.getPortFromProtocol(s.fields.protocol), s.errorMessage = "", a("url-valid:success");
|
|
5303
5303
|
} catch (d) {
|
|
5304
5304
|
s.errorMessage = l("errors.urlErrorMessage"), a("url-valid:error", u(d));
|
|
5305
5305
|
}
|
|
@@ -5321,8 +5321,8 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5321
5321
|
const d = ["https", "wss", "tls"].includes(s.fields.protocol);
|
|
5322
5322
|
return C.value === "protocol" && d;
|
|
5323
5323
|
}), ae = (d) => {
|
|
5324
|
-
|
|
5325
|
-
},
|
|
5324
|
+
N.value = p.utf8Name(d);
|
|
5325
|
+
}, Ne = x(() => O.value && JSON.stringify(s.fields) !== JSON.stringify(S) || C.value === "url" && !!s.fields.url || C.value === "protocol" && !!s.fields.host), He = (d) => {
|
|
5326
5326
|
var g, M, D;
|
|
5327
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 = ((M = d == null ? void 0 : d.ca_certificates) == null ? void 0 : M.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
|
}, Ge = () => {
|
|
@@ -5338,7 +5338,7 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
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
5342
|
var g, M, D, G;
|
|
5343
5343
|
const d = {
|
|
5344
5344
|
name: s.fields.name || null,
|
|
@@ -5358,16 +5358,16 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5358
5358
|
url: s.fields.url
|
|
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
5362
|
var d, g, M, D;
|
|
5363
5363
|
try {
|
|
5364
|
-
s.isReadonly = !0,
|
|
5365
|
-
const G =
|
|
5364
|
+
s.isReadonly = !0, V();
|
|
5365
|
+
const G = je.value;
|
|
5366
5366
|
at(G);
|
|
5367
5367
|
let X;
|
|
5368
5368
|
if (await m.post(yt.value, G), h.value === "create" ? X = await m.post(Je.value, G) : h.value === "edit" && (X = ((d = r.config) == null ? void 0 : d.app) === "konnect" ? await m.put(Je.value, G) : await m.patch(Je.value, G)), X) {
|
|
5369
5369
|
const { data: w } = X;
|
|
5370
|
-
s.fields.name = (w == null ? void 0 : w.name) || "", s.fields.port = w.port ||
|
|
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 = (M = w == null ? void 0 : w.ca_certificates) != null && M.length ? w == null ? void 0 : w.ca_certificates.join(",") : "", s.fields.tls_verify_enabled = (w == null ? void 0 : w.tls_verify) !== "" && (w == null ? void 0 : w.tls_verify) !== null && (w == null ? void 0 : w.tls_verify) !== void 0, s.fields.tls_verify_value = s.fields.tls_verify_enabled && (w == null ? void 0 : w.tls_verify), s.fields.tags = (D = w == null ? void 0 : w.tags) != null && D.length ? w.tags.join(", ") : "", Object.assign(S, s.fields), a("update", X == null ? void 0 : X.data);
|
|
5371
5371
|
}
|
|
5372
5372
|
return X;
|
|
5373
5373
|
} catch (G) {
|
|
@@ -5379,36 +5379,36 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5379
5379
|
return Ce(() => r.gatewayServiceId, () => {
|
|
5380
5380
|
Object.assign(s.fields, S);
|
|
5381
5381
|
}), Ce(s.fields, (d) => {
|
|
5382
|
-
s.fields.port =
|
|
5382
|
+
s.fields.port = K.getPortFromProtocol(d.protocol, String(d.port)), a("model-updated", je.value);
|
|
5383
5383
|
}), pi(() => {
|
|
5384
|
-
a("model-updated",
|
|
5384
|
+
a("model-updated", je.value);
|
|
5385
5385
|
}), t({
|
|
5386
|
-
validateUrl:
|
|
5387
|
-
getPayload:
|
|
5388
|
-
saveFormData:
|
|
5389
|
-
canSubmit:
|
|
5386
|
+
validateUrl: V,
|
|
5387
|
+
getPayload: je,
|
|
5388
|
+
saveFormData: Ee,
|
|
5389
|
+
canSubmit: Ne
|
|
5390
5390
|
}), (d, g) => {
|
|
5391
|
-
const M =
|
|
5392
|
-
return v(),
|
|
5391
|
+
const M = R("KInput"), D = R("KLabel"), G = R("KRadio"), X = R("KSelect"), w = R("KCheckbox"), ke = R("KCollapse");
|
|
5392
|
+
return v(), I("div", zs, [
|
|
5393
5393
|
k(f(Jl), {
|
|
5394
|
-
"can-submit":
|
|
5394
|
+
"can-submit": Ne.value,
|
|
5395
5395
|
config: e.config,
|
|
5396
5396
|
"edit-id": e.gatewayServiceId,
|
|
5397
5397
|
"error-message": s.errorMessage,
|
|
5398
5398
|
"fetch-url": _.value,
|
|
5399
|
-
"form-fields":
|
|
5399
|
+
"form-fields": je.value,
|
|
5400
5400
|
"is-readonly": s.isReadonly,
|
|
5401
5401
|
onCancel: Ge,
|
|
5402
|
-
"onFetch:error": g[25] || (g[25] = (
|
|
5402
|
+
"onFetch:error": g[25] || (g[25] = (B) => d.$emit("error", B)),
|
|
5403
5403
|
"onFetch:success": He,
|
|
5404
|
-
onLoading: g[26] || (g[26] = (
|
|
5405
|
-
onSubmit:
|
|
5404
|
+
onLoading: g[26] || (g[26] = (B) => d.$emit("loading", B)),
|
|
5405
|
+
onSubmit: Ee
|
|
5406
5406
|
}, {
|
|
5407
5407
|
"form-actions": b(() => [
|
|
5408
5408
|
ie(d.$slots, "form-actions", {
|
|
5409
|
-
canSubmit:
|
|
5409
|
+
canSubmit: Ne.value,
|
|
5410
5410
|
cancel: Ge,
|
|
5411
|
-
submit:
|
|
5411
|
+
submit: Ee
|
|
5412
5412
|
}, void 0, !0)
|
|
5413
5413
|
]),
|
|
5414
5414
|
default: b(() => [
|
|
@@ -5420,12 +5420,12 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5420
5420
|
default: b(() => [
|
|
5421
5421
|
k(M, {
|
|
5422
5422
|
modelValue: s.fields.name,
|
|
5423
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
5423
|
+
"onUpdate:modelValue": g[0] || (g[0] = (B) => s.fields.name = B),
|
|
5424
5424
|
modelModifiers: { trim: !0 },
|
|
5425
5425
|
autocomplete: "off",
|
|
5426
5426
|
"data-testid": "gateway-service-name-input",
|
|
5427
|
-
error:
|
|
5428
|
-
"error-message":
|
|
5427
|
+
error: Y.value,
|
|
5428
|
+
"error-message": N.value,
|
|
5429
5429
|
label: f(l)("gateway_services.form.fields.name.label"),
|
|
5430
5430
|
"label-attributes": { info: f(l)("gateway_services.form.fields.name.tooltip") },
|
|
5431
5431
|
name: "name",
|
|
@@ -5436,7 +5436,7 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5436
5436
|
}, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
|
|
5437
5437
|
k(M, {
|
|
5438
5438
|
modelValue: s.fields.tags,
|
|
5439
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
5439
|
+
"onUpdate:modelValue": g[1] || (g[1] = (B) => s.fields.tags = B),
|
|
5440
5440
|
modelModifiers: { trim: !0 },
|
|
5441
5441
|
autocomplete: "off",
|
|
5442
5442
|
"data-testid": "gateway-service-tags-input",
|
|
@@ -5457,8 +5457,8 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5457
5457
|
title: f(l)("gateway_services.form.sections.keys.title")
|
|
5458
5458
|
}, {
|
|
5459
5459
|
default: b(() => [
|
|
5460
|
-
O.value ? H("", !0) : (v(),
|
|
5461
|
-
|
|
5460
|
+
O.value ? H("", !0) : (v(), I("div", Hs, [
|
|
5461
|
+
E("div", Gs, [
|
|
5462
5462
|
k(D, { required: "" }, {
|
|
5463
5463
|
default: b(() => [
|
|
5464
5464
|
J($(f(l)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
@@ -5466,12 +5466,12 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5466
5466
|
_: 1
|
|
5467
5467
|
})
|
|
5468
5468
|
]),
|
|
5469
|
-
|
|
5469
|
+
E("div", Js, [
|
|
5470
5470
|
k(G, {
|
|
5471
5471
|
modelValue: C.value,
|
|
5472
|
-
"onUpdate:modelValue": g[2] || (g[2] = (
|
|
5472
|
+
"onUpdate:modelValue": g[2] || (g[2] = (B) => C.value = B),
|
|
5473
5473
|
"data-testid": "gateway-service-url-radio",
|
|
5474
|
-
"selected-value":
|
|
5474
|
+
"selected-value": U.url,
|
|
5475
5475
|
onChange: L
|
|
5476
5476
|
}, {
|
|
5477
5477
|
default: b(() => [
|
|
@@ -5480,10 +5480,10 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5480
5480
|
_: 1
|
|
5481
5481
|
}, 8, ["modelValue", "selected-value"])
|
|
5482
5482
|
]),
|
|
5483
|
-
C.value === "url" ? (v(),
|
|
5483
|
+
C.value === "url" ? (v(), I("div", Ws, [
|
|
5484
5484
|
k(M, {
|
|
5485
5485
|
modelValue: s.fields.url,
|
|
5486
|
-
"onUpdate:modelValue": g[3] || (g[3] = (
|
|
5486
|
+
"onUpdate:modelValue": g[3] || (g[3] = (B) => s.fields.url = B),
|
|
5487
5487
|
modelModifiers: { trim: !0 },
|
|
5488
5488
|
class: "gateway-service-url-input gateway-service-form-margin-bottom",
|
|
5489
5489
|
"data-testid": "gateway-service-url-input",
|
|
@@ -5498,10 +5498,10 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5498
5498
|
])) : H("", !0),
|
|
5499
5499
|
k(G, {
|
|
5500
5500
|
modelValue: C.value,
|
|
5501
|
-
"onUpdate:modelValue": g[4] || (g[4] = (
|
|
5501
|
+
"onUpdate:modelValue": g[4] || (g[4] = (B) => C.value = B),
|
|
5502
5502
|
"checked-group": "protocol",
|
|
5503
5503
|
"data-testid": "gateway-service-protocol-radio",
|
|
5504
|
-
"selected-value":
|
|
5504
|
+
"selected-value": U.protocol,
|
|
5505
5505
|
onChange: L
|
|
5506
5506
|
}, {
|
|
5507
5507
|
default: b(() => [
|
|
@@ -5510,10 +5510,10 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5510
5510
|
_: 1
|
|
5511
5511
|
}, 8, ["modelValue", "selected-value"])
|
|
5512
5512
|
])),
|
|
5513
|
-
C.value === "protocol" || O.value ? (v(),
|
|
5513
|
+
C.value === "protocol" || O.value ? (v(), I("div", Zs, [
|
|
5514
5514
|
k(X, {
|
|
5515
5515
|
modelValue: s.fields.protocol,
|
|
5516
|
-
"onUpdate:modelValue": g[5] || (g[5] = (
|
|
5516
|
+
"onUpdate:modelValue": g[5] || (g[5] = (B) => s.fields.protocol = B),
|
|
5517
5517
|
"data-testid": "gateway-service-protocol-select",
|
|
5518
5518
|
items: T,
|
|
5519
5519
|
label: f(l)("gateway_services.form.fields.protocol.label"),
|
|
@@ -5523,11 +5523,11 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5523
5523
|
readonly: s.isReadonly,
|
|
5524
5524
|
required: "",
|
|
5525
5525
|
width: "100%",
|
|
5526
|
-
onSelected: g[6] || (g[6] = (
|
|
5526
|
+
onSelected: g[6] || (g[6] = (B) => j(s.fields.protocol, B))
|
|
5527
5527
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
5528
5528
|
k(M, {
|
|
5529
5529
|
modelValue: s.fields.host,
|
|
5530
|
-
"onUpdate:modelValue": g[7] || (g[7] = (
|
|
5530
|
+
"onUpdate:modelValue": g[7] || (g[7] = (B) => s.fields.host = B),
|
|
5531
5531
|
modelModifiers: { trim: !0 },
|
|
5532
5532
|
class: "gateway-service-form-margin-top",
|
|
5533
5533
|
"data-testid": "gateway-service-host-input",
|
|
@@ -5539,10 +5539,10 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5539
5539
|
placeholder: f(l)("gateway_services.form.fields.host.placeholder"),
|
|
5540
5540
|
required: ""
|
|
5541
5541
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
|
|
5542
|
-
W.value ? (v(),
|
|
5542
|
+
W.value ? (v(), I("div", Ys, [
|
|
5543
5543
|
k(M, {
|
|
5544
5544
|
modelValue: s.fields.path,
|
|
5545
|
-
"onUpdate:modelValue": g[8] || (g[8] = (
|
|
5545
|
+
"onUpdate:modelValue": g[8] || (g[8] = (B) => s.fields.path = B),
|
|
5546
5546
|
modelModifiers: { trim: !0 },
|
|
5547
5547
|
class: "gateway-service-form-margin-top",
|
|
5548
5548
|
"data-testid": "gateway-service-path-input",
|
|
@@ -5557,7 +5557,7 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5557
5557
|
k(M, {
|
|
5558
5558
|
modelValue: s.fields.port,
|
|
5559
5559
|
"onUpdate:modelValue": [
|
|
5560
|
-
g[9] || (g[9] = (
|
|
5560
|
+
g[9] || (g[9] = (B) => s.fields.port = B),
|
|
5561
5561
|
g[10] || (g[10] = () => {
|
|
5562
5562
|
s.fields.port = z(s.fields.port + "");
|
|
5563
5563
|
})
|
|
@@ -5574,18 +5574,18 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5574
5574
|
])) : H("", !0),
|
|
5575
5575
|
k(ke, {
|
|
5576
5576
|
modelValue: n.value,
|
|
5577
|
-
"onUpdate:modelValue": g[24] || (g[24] = (
|
|
5577
|
+
"onUpdate:modelValue": g[24] || (g[24] = (B) => n.value = B),
|
|
5578
5578
|
"data-testid": "advanced-fields-collapse",
|
|
5579
5579
|
"trigger-alignment": "leading",
|
|
5580
5580
|
"trigger-label": f(l)("gateway_services.form.sections.keys.viewAdvancedFields")
|
|
5581
5581
|
}, {
|
|
5582
5582
|
default: b(() => [
|
|
5583
|
-
|
|
5584
|
-
|
|
5583
|
+
E("div", Qs, [
|
|
5584
|
+
E("div", Xs, [
|
|
5585
5585
|
k(M, {
|
|
5586
5586
|
modelValue: s.fields.retries,
|
|
5587
5587
|
"onUpdate:modelValue": [
|
|
5588
|
-
g[11] || (g[11] = (
|
|
5588
|
+
g[11] || (g[11] = (B) => s.fields.retries = B),
|
|
5589
5589
|
g[12] || (g[12] = () => {
|
|
5590
5590
|
s.fields.retries = z(s.fields.retries + "");
|
|
5591
5591
|
})
|
|
@@ -5599,11 +5599,11 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5599
5599
|
type: "number"
|
|
5600
5600
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5601
5601
|
]),
|
|
5602
|
-
|
|
5602
|
+
E("div", ec, [
|
|
5603
5603
|
k(M, {
|
|
5604
5604
|
modelValue: s.fields.connect_timeout,
|
|
5605
5605
|
"onUpdate:modelValue": [
|
|
5606
|
-
g[13] || (g[13] = (
|
|
5606
|
+
g[13] || (g[13] = (B) => s.fields.connect_timeout = B),
|
|
5607
5607
|
g[14] || (g[14] = () => {
|
|
5608
5608
|
s.fields.connect_timeout = z(s.fields.connect_timeout + "");
|
|
5609
5609
|
})
|
|
@@ -5617,11 +5617,11 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5617
5617
|
type: "number"
|
|
5618
5618
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5619
5619
|
]),
|
|
5620
|
-
|
|
5620
|
+
E("div", tc, [
|
|
5621
5621
|
k(M, {
|
|
5622
5622
|
modelValue: s.fields.write_timeout,
|
|
5623
5623
|
"onUpdate:modelValue": [
|
|
5624
|
-
g[15] || (g[15] = (
|
|
5624
|
+
g[15] || (g[15] = (B) => s.fields.write_timeout = B),
|
|
5625
5625
|
g[16] || (g[16] = () => {
|
|
5626
5626
|
s.fields.write_timeout = z(s.fields.write_timeout + "");
|
|
5627
5627
|
})
|
|
@@ -5635,11 +5635,11 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5635
5635
|
type: "number"
|
|
5636
5636
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5637
5637
|
]),
|
|
5638
|
-
|
|
5638
|
+
E("div", ic, [
|
|
5639
5639
|
k(M, {
|
|
5640
5640
|
modelValue: s.fields.read_timeout,
|
|
5641
5641
|
"onUpdate:modelValue": [
|
|
5642
|
-
g[17] || (g[17] = (
|
|
5642
|
+
g[17] || (g[17] = (B) => s.fields.read_timeout = B),
|
|
5643
5643
|
g[18] || (g[18] = () => {
|
|
5644
5644
|
s.fields.read_timeout = z(s.fields.read_timeout + "");
|
|
5645
5645
|
})
|
|
@@ -5653,10 +5653,10 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5653
5653
|
type: "number"
|
|
5654
5654
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5655
5655
|
]),
|
|
5656
|
-
Q.value ? (v(),
|
|
5656
|
+
Q.value ? (v(), I("div", rc, [
|
|
5657
5657
|
k(M, {
|
|
5658
5658
|
modelValue: s.fields.client_certificate,
|
|
5659
|
-
"onUpdate:modelValue": g[19] || (g[19] = (
|
|
5659
|
+
"onUpdate:modelValue": g[19] || (g[19] = (B) => s.fields.client_certificate = B),
|
|
5660
5660
|
modelModifiers: { trim: !0 },
|
|
5661
5661
|
autocomplete: "off",
|
|
5662
5662
|
"data-testid": "gateway-service-clientCert-input",
|
|
@@ -5668,10 +5668,10 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5668
5668
|
type: "text"
|
|
5669
5669
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
5670
5670
|
])) : H("", !0),
|
|
5671
|
-
pe.value ? (v(),
|
|
5671
|
+
pe.value ? (v(), I("div", ac, [
|
|
5672
5672
|
k(M, {
|
|
5673
5673
|
modelValue: s.fields.ca_certificates,
|
|
5674
|
-
"onUpdate:modelValue": g[20] || (g[20] = (
|
|
5674
|
+
"onUpdate:modelValue": g[20] || (g[20] = (B) => s.fields.ca_certificates = B),
|
|
5675
5675
|
modelModifiers: { trim: !0 },
|
|
5676
5676
|
autocomplete: "off",
|
|
5677
5677
|
"data-testid": "gateway-service-ca-certs-input",
|
|
@@ -5686,10 +5686,10 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5686
5686
|
scope: "global"
|
|
5687
5687
|
}, {
|
|
5688
5688
|
code1: b(() => [
|
|
5689
|
-
|
|
5689
|
+
E("code", null, $(f(l)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
5690
5690
|
]),
|
|
5691
5691
|
code2: b(() => [
|
|
5692
|
-
|
|
5692
|
+
E("code", null, $(f(l)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
5693
5693
|
]),
|
|
5694
5694
|
_: 1
|
|
5695
5695
|
})
|
|
@@ -5697,10 +5697,10 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5697
5697
|
_: 1
|
|
5698
5698
|
}, 8, ["modelValue", "label", "placeholder", "readonly"])
|
|
5699
5699
|
])) : H("", !0),
|
|
5700
|
-
fe.value ? (v(),
|
|
5700
|
+
fe.value ? (v(), I("div", oc, [
|
|
5701
5701
|
k(w, {
|
|
5702
5702
|
modelValue: s.fields.tls_verify_enabled,
|
|
5703
|
-
"onUpdate:modelValue": g[21] || (g[21] = (
|
|
5703
|
+
"onUpdate:modelValue": g[21] || (g[21] = (B) => s.fields.tls_verify_enabled = B),
|
|
5704
5704
|
"data-testid": "gateway-service-tls-verify-checkbox",
|
|
5705
5705
|
description: f(l)("gateway_services.form.fields.tls_verify_enabled.help"),
|
|
5706
5706
|
label: f(l)("gateway_services.form.fields.tls_verify_enabled.label")
|
|
@@ -5711,26 +5711,26 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5711
5711
|
scope: "global"
|
|
5712
5712
|
}, {
|
|
5713
5713
|
code1: b(() => [
|
|
5714
|
-
|
|
5714
|
+
E("code", null, $(f(l)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
5715
5715
|
]),
|
|
5716
5716
|
_: 1
|
|
5717
5717
|
})
|
|
5718
5718
|
]),
|
|
5719
5719
|
_: 1
|
|
5720
5720
|
}, 8, ["modelValue", "description", "label"]),
|
|
5721
|
-
s.fields.tls_verify_enabled ? (v(),
|
|
5721
|
+
s.fields.tls_verify_enabled ? (v(), I("div", nc, [
|
|
5722
5722
|
k(G, {
|
|
5723
5723
|
modelValue: s.fields.tls_verify_value,
|
|
5724
|
-
"onUpdate:modelValue": g[22] || (g[22] = (
|
|
5724
|
+
"onUpdate:modelValue": g[22] || (g[22] = (B) => s.fields.tls_verify_value = B),
|
|
5725
5725
|
"data-testid": "gateway-service-tls-verify-true-option",
|
|
5726
5726
|
label: f(l)("gateway_services.form.fields.tls_verify_option.true.label"),
|
|
5727
5727
|
"selected-value": !0
|
|
5728
5728
|
}, null, 8, ["modelValue", "label"])
|
|
5729
5729
|
])) : H("", !0),
|
|
5730
|
-
s.fields.tls_verify_enabled ? (v(),
|
|
5730
|
+
s.fields.tls_verify_enabled ? (v(), I("div", lc, [
|
|
5731
5731
|
k(G, {
|
|
5732
5732
|
modelValue: s.fields.tls_verify_value,
|
|
5733
|
-
"onUpdate:modelValue": g[23] || (g[23] = (
|
|
5733
|
+
"onUpdate:modelValue": g[23] || (g[23] = (B) => s.fields.tls_verify_value = B),
|
|
5734
5734
|
"data-testid": "gateway-service-tls-verify-false-option",
|
|
5735
5735
|
label: f(l)("gateway_services.form.fields.tls_verify_option.false.label"),
|
|
5736
5736
|
"selected-value": !1
|
|
@@ -5777,7 +5777,7 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5777
5777
|
},
|
|
5778
5778
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
5779
5779
|
setup(e) {
|
|
5780
|
-
const t = e, { i18n: { t: i }, i18nT: a } = st.useI18n(), r = x(() => Qe.form[t.config.app].edit), { getPropValue: n } = Ls(), o = (l, u) => n(l, u) === !0 ? i("gateway_services.form.fields.tls_verify_option.true.display") : i("gateway_services.form.fields.tls_verify_option.false.display"), c =
|
|
5780
|
+
const t = e, { i18n: { t: i }, i18nT: a } = st.useI18n(), r = x(() => Qe.form[t.config.app].edit), { getPropValue: n } = Ls(), o = (l, u) => n(l, u) === !0 ? i("gateway_services.form.fields.tls_verify_option.true.display") : i("gateway_services.form.fields.tls_verify_option.false.display"), c = q({
|
|
5781
5781
|
id: {},
|
|
5782
5782
|
name: {
|
|
5783
5783
|
tooltip: i("gateway_services.form.fields.name.tooltip")
|
|
@@ -5837,7 +5837,7 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5837
5837
|
hidden: !0
|
|
5838
5838
|
}
|
|
5839
5839
|
});
|
|
5840
|
-
return (l, u) => (v(),
|
|
5840
|
+
return (l, u) => (v(), I("div", cc, [
|
|
5841
5841
|
k(f(Dl), {
|
|
5842
5842
|
config: e.config,
|
|
5843
5843
|
"config-card-doc": e.configCardDoc,
|
|
@@ -5854,10 +5854,10 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5854
5854
|
scope: "global"
|
|
5855
5855
|
}, {
|
|
5856
5856
|
false: b(() => [
|
|
5857
|
-
|
|
5857
|
+
E("code", null, $(f(i)("gateway_services.form.fields.enabled.false")), 1)
|
|
5858
5858
|
]),
|
|
5859
5859
|
true: b(() => [
|
|
5860
|
-
|
|
5860
|
+
E("code", null, $(f(i)("gateway_services.form.fields.enabled.true")), 1)
|
|
5861
5861
|
]),
|
|
5862
5862
|
_: 1
|
|
5863
5863
|
})
|
|
@@ -5868,10 +5868,10 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5868
5868
|
scope: "global"
|
|
5869
5869
|
}, {
|
|
5870
5870
|
code1: b(() => [
|
|
5871
|
-
|
|
5871
|
+
E("code", null, $(f(i)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
5872
5872
|
]),
|
|
5873
5873
|
code2: b(() => [
|
|
5874
|
-
|
|
5874
|
+
E("code", null, $(f(i)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
5875
5875
|
]),
|
|
5876
5876
|
_: 1
|
|
5877
5877
|
})
|
|
@@ -5882,7 +5882,7 @@ const $s = ["aria-labelledby"], js = { class: "form-section-wrapper" }, Ns = {
|
|
|
5882
5882
|
scope: "global"
|
|
5883
5883
|
}, {
|
|
5884
5884
|
code1: b(() => [
|
|
5885
|
-
|
|
5885
|
+
E("code", null, $(f(i)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
5886
5886
|
]),
|
|
5887
5887
|
_: 1
|
|
5888
5888
|
})
|