@kong-ui-public/entities-upstreams-targets 1.3.28 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-upstreams-targets.es.js +1006 -899
- package/dist/entities-upstreams-targets.umd.js +15 -15
- package/dist/style.css +1 -1
- package/package.json +6 -6
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as le, ref as E, computed as F, watch as ge, renderSlot as ae, createCommentVNode as Q, unref as c, useSlots as ct, onBeforeMount as Ze, resolveComponent as
|
|
2
|
-
import
|
|
3
|
-
import { createI18n as qt, i18nTComponent as
|
|
4
|
-
import { ToastManager as
|
|
1
|
+
import { defineComponent as le, ref as E, computed as F, watch as ge, renderSlot as ae, createCommentVNode as Q, unref as c, useSlots as ct, onBeforeMount as Ze, resolveComponent as N, openBlock as b, createBlock as L, createSlots as He, withCtx as p, createElementVNode as x, createTextVNode as G, toDisplayString as C, createVNode as y, createElementBlock as P, renderList as me, Fragment as ce, normalizeClass as Ae, withModifiers as kt, withDirectives as et, vShow as tt, useCssVars as Nl, resolveDynamicComponent as Ve, normalizeProps as Ls, guardReactiveProps as Rs, mergeProps as Ct, onMounted as Ds, onUnmounted as zs, normalizeStyle as Kl, inject as Js, pushScopeId as jl, popScopeId as Pl, reactive as lt } from "vue";
|
|
2
|
+
import Ws from "axios";
|
|
3
|
+
import { createI18n as qt, i18nTComponent as El } from "@kong-ui-public/i18n";
|
|
4
|
+
import { ToastManager as Ys, MethodsArray as Qs } from "@kong/kongponents";
|
|
5
5
|
import { useRouter as $t } from "vue-router";
|
|
6
6
|
var Mt = /* @__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))(Mt || {}), ke = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ke || {}), xe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(xe || {}), se = /* @__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))(se || {}), ie = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ie || {});
|
|
7
|
-
function
|
|
7
|
+
function Nt(e = {}) {
|
|
8
8
|
return {
|
|
9
|
-
axiosInstance:
|
|
9
|
+
axiosInstance: Ws.create({
|
|
10
10
|
withCredentials: !0,
|
|
11
11
|
timeout: 3e4,
|
|
12
12
|
...e
|
|
13
13
|
})
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Gs() {
|
|
17
17
|
return {
|
|
18
18
|
debounce: (e, a) => {
|
|
19
19
|
let t;
|
|
@@ -25,12 +25,12 @@ function Ys() {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
const gt = "khcp-user-table-preferences",
|
|
28
|
+
const gt = "khcp-user-table-preferences", Zs = {
|
|
29
29
|
pageSize: 30,
|
|
30
30
|
sortColumnKey: void 0,
|
|
31
31
|
sortColumnOrder: void 0
|
|
32
32
|
};
|
|
33
|
-
function
|
|
33
|
+
function Xs() {
|
|
34
34
|
const e = (t) => {
|
|
35
35
|
if (typeof t == "string")
|
|
36
36
|
try {
|
|
@@ -54,24 +54,24 @@ function Gs() {
|
|
|
54
54
|
},
|
|
55
55
|
getTablePreferences: (t) => {
|
|
56
56
|
const l = a();
|
|
57
|
-
return (l == null ? void 0 : l.get(t)) || void 0 ||
|
|
57
|
+
return (l == null ? void 0 : l.get(t)) || void 0 || Zs;
|
|
58
58
|
},
|
|
59
59
|
deleteAllTablePreferences: () => {
|
|
60
60
|
localStorage.removeItem(gt);
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
const
|
|
64
|
+
const er = {
|
|
65
65
|
actions: {
|
|
66
66
|
copyId: "Copy ID",
|
|
67
67
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
68
68
|
copyToClipboard: "Copied successfully!",
|
|
69
69
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
70
70
|
}
|
|
71
|
-
},
|
|
71
|
+
}, tr = {
|
|
72
72
|
message: "Are you sure you want to delete this {entityType}?",
|
|
73
73
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
74
|
-
},
|
|
74
|
+
}, ar = {
|
|
75
75
|
actions: {
|
|
76
76
|
save: "Save",
|
|
77
77
|
cancel: "Cancel",
|
|
@@ -80,13 +80,13 @@ const Zs = {
|
|
|
80
80
|
errors: {
|
|
81
81
|
edit: "The entity could not be edited at this time."
|
|
82
82
|
}
|
|
83
|
-
},
|
|
83
|
+
}, lr = {
|
|
84
84
|
emptyState: {
|
|
85
85
|
noSearchResultsTitle: "No results found",
|
|
86
86
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
87
87
|
noSearchResultsCtaText: "Clear"
|
|
88
88
|
}
|
|
89
|
-
},
|
|
89
|
+
}, sr = {
|
|
90
90
|
title: "Configuration",
|
|
91
91
|
actions: {
|
|
92
92
|
copy: "Copy JSON"
|
|
@@ -121,7 +121,7 @@ const Zs = {
|
|
|
121
121
|
entryTitle: "Entry {index}",
|
|
122
122
|
structuredFormat: "Structured"
|
|
123
123
|
}
|
|
124
|
-
},
|
|
124
|
+
}, rr = {
|
|
125
125
|
filterButtonText: "Filter",
|
|
126
126
|
fieldLabel: "Filter by:",
|
|
127
127
|
inputPlaceholder: "Enter a value",
|
|
@@ -129,15 +129,15 @@ const Zs = {
|
|
|
129
129
|
applyButtonText: "Apply",
|
|
130
130
|
clearButtonText: "Clear",
|
|
131
131
|
clearAllButtonText: "Clear all filters"
|
|
132
|
-
},
|
|
132
|
+
}, ir = {
|
|
133
133
|
errors: {
|
|
134
134
|
fetch: "Could not fetch available items",
|
|
135
135
|
invalid: "Please select a valid value"
|
|
136
136
|
}
|
|
137
|
-
},
|
|
137
|
+
}, nr = {
|
|
138
138
|
unexpected: "An unexpected error has occurred",
|
|
139
139
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
140
|
-
},
|
|
140
|
+
}, or = {
|
|
141
141
|
enable: {
|
|
142
142
|
title: "Enable {entityType}",
|
|
143
143
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -148,26 +148,26 @@ const Zs = {
|
|
|
148
148
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
149
149
|
confirmText: "Yes, disable"
|
|
150
150
|
}
|
|
151
|
-
},
|
|
152
|
-
global:
|
|
153
|
-
deleteModal:
|
|
154
|
-
baseForm:
|
|
155
|
-
baseTable:
|
|
156
|
-
baseConfigCard:
|
|
157
|
-
filter:
|
|
158
|
-
debouncedFilter:
|
|
159
|
-
errors:
|
|
160
|
-
toggleModal:
|
|
151
|
+
}, ur = {
|
|
152
|
+
global: er,
|
|
153
|
+
deleteModal: tr,
|
|
154
|
+
baseForm: ar,
|
|
155
|
+
baseTable: lr,
|
|
156
|
+
baseConfigCard: sr,
|
|
157
|
+
filter: rr,
|
|
158
|
+
debouncedFilter: ir,
|
|
159
|
+
errors: nr,
|
|
160
|
+
toggleModal: or
|
|
161
161
|
};
|
|
162
|
-
function
|
|
163
|
-
const e = qt("en-us",
|
|
162
|
+
function Kt() {
|
|
163
|
+
const e = qt("en-us", ur);
|
|
164
164
|
return {
|
|
165
165
|
i18n: e,
|
|
166
|
-
i18nT:
|
|
166
|
+
i18nT: El(e)
|
|
167
167
|
// Translation component <i18n-t>
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Bl() {
|
|
171
171
|
const e = (t, l) => (l == null ? void 0 : l[t]) ?? void 0, a = (t, l) => {
|
|
172
172
|
if (t.length !== l.length)
|
|
173
173
|
return !1;
|
|
@@ -211,19 +211,19 @@ function Kl() {
|
|
|
211
211
|
isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function cr(e, a, t, l = {
|
|
215
215
|
fetchedItemsKey: "data",
|
|
216
216
|
searchKeys: ["id"]
|
|
217
217
|
}) {
|
|
218
218
|
t || (t = "100");
|
|
219
|
-
const { axiosInstance: s } =
|
|
219
|
+
const { axiosInstance: s } = Nt({
|
|
220
220
|
headers: e.requestHeaders
|
|
221
|
-
}), { i18n: { t: i } } =
|
|
221
|
+
}), { i18n: { t: i } } = Kt(), { debounce: o } = Gs(), d = o(async (q) => {
|
|
222
222
|
await A(q);
|
|
223
223
|
}, 200), n = E(!1), u = E(""), f = E(""), h = E([]), r = E([]), k = E(void 0), w = c(a);
|
|
224
224
|
let m = `${e.apiBaseUrl}${w}`;
|
|
225
225
|
e.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
226
|
-
const { isValidUuid: g } =
|
|
226
|
+
const { isValidUuid: g } = Bl(), O = async () => {
|
|
227
227
|
try {
|
|
228
228
|
n.value = !0;
|
|
229
229
|
const { data: q } = await s.get(`${m}?size=${t}`);
|
|
@@ -246,18 +246,18 @@ function or(e, a, t, l = {
|
|
|
246
246
|
} else if (q) {
|
|
247
247
|
const H = [];
|
|
248
248
|
g(q) && l.searchKeys.includes("id") ? H.push((async () => {
|
|
249
|
-
const { data:
|
|
250
|
-
return [
|
|
249
|
+
const { data: M } = await s.get(`${m}/${q}`);
|
|
250
|
+
return [M[l.fetchedItemsKey] ?? M];
|
|
251
251
|
})()) : H.push(
|
|
252
|
-
...l.searchKeys.filter((
|
|
253
|
-
const { data:
|
|
254
|
-
return
|
|
252
|
+
...l.searchKeys.filter((M) => M !== "id").map(async (M) => {
|
|
253
|
+
const { data: j } = await s.get(`${m}?${M}=${q}`);
|
|
254
|
+
return j[l.fetchedItemsKey];
|
|
255
255
|
})
|
|
256
256
|
);
|
|
257
257
|
const U = await Promise.all(H), S = /* @__PURE__ */ new Set();
|
|
258
|
-
h.value = [], ($ = U == null ? void 0 : U.forEach) == null || $.call(U, (
|
|
259
|
-
var
|
|
260
|
-
(
|
|
258
|
+
h.value = [], ($ = U == null ? void 0 : U.forEach) == null || $.call(U, (M) => {
|
|
259
|
+
var j;
|
|
260
|
+
(j = M == null ? void 0 : M.forEach) == null || j.call(M, (Z) => {
|
|
261
261
|
S.has(Z.id) || (S.add(Z.id), h.value.push(Z));
|
|
262
262
|
});
|
|
263
263
|
});
|
|
@@ -272,9 +272,9 @@ function or(e, a, t, l = {
|
|
|
272
272
|
n.value = !0, f.value = "", q ? (h.value = (B = k.value) == null ? void 0 : B.filter((H) => {
|
|
273
273
|
var U;
|
|
274
274
|
let S = !1;
|
|
275
|
-
for (const
|
|
276
|
-
const
|
|
277
|
-
|
|
275
|
+
for (const M of l.searchKeys) {
|
|
276
|
+
const j = typeof H[M] == "string" ? (U = H[M]) == null ? void 0 : U.toLowerCase() : H[M];
|
|
277
|
+
j != null && j.includes(q.toLowerCase()) && (S = !0);
|
|
278
278
|
}
|
|
279
279
|
return S;
|
|
280
280
|
}), (!h.value || !h.value.length) && (f.value = i("debouncedFilter.errors.invalid"))) : h.value = k.value, n.value = !1;
|
|
@@ -289,14 +289,14 @@ function or(e, a, t, l = {
|
|
|
289
289
|
debouncedQueryChange: d
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function dr(e, a) {
|
|
293
293
|
const t = c(a), l = F(
|
|
294
294
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
295
295
|
);
|
|
296
296
|
return l.value.search = "", (s) => `${l.value.href}/${s}`;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
const { i18n: { t: e } } =
|
|
298
|
+
function hr() {
|
|
299
|
+
const { i18n: { t: e } } = Kt();
|
|
300
300
|
return {
|
|
301
301
|
getMessageFromError: (a) => {
|
|
302
302
|
var t, l, s;
|
|
@@ -323,7 +323,7 @@ function cr() {
|
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function pr(e) {
|
|
327
327
|
const a = window.location.origin, t = a.endsWith("/") ? a : `${a}/`;
|
|
328
328
|
try {
|
|
329
329
|
const l = e.join("/"), s = `${t}${l}`, i = e.some((o) => o.trim() === "");
|
|
@@ -334,7 +334,7 @@ function dr(e) {
|
|
|
334
334
|
return console.warn("Failed to build valid URL:", l), "";
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Vl(e, a) {
|
|
338
338
|
const t = E(c(e)), l = E(c(a)), s = F(
|
|
339
339
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
340
340
|
), i = F(
|
|
@@ -352,10 +352,10 @@ function jl(e, a) {
|
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
const l = c(a), { axiosInstance: s } =
|
|
355
|
+
function fr(e, a, t = "data") {
|
|
356
|
+
const l = c(a), { axiosInstance: s } = Nt({
|
|
357
357
|
headers: e.requestHeaders
|
|
358
|
-
}), i =
|
|
358
|
+
}), i = Vl(e, l), o = E({
|
|
359
359
|
status: xe.Idle
|
|
360
360
|
});
|
|
361
361
|
return { fetcher: async (d) => {
|
|
@@ -394,61 +394,61 @@ function hr(e, a, t = "data") {
|
|
|
394
394
|
}
|
|
395
395
|
}, fetcherState: o };
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function mr() {
|
|
398
398
|
const e = (t, l = "_") => t ? t.split(l).map((s) => s.toLowerCase() === "id" ? s.toUpperCase() : s.charAt(0).toUpperCase() + s.substring(1)).join(" ") : "", a = /(?:^|[\s-:'"])\w/g;
|
|
399
399
|
return {
|
|
400
400
|
capitalize: (t) => t ? t.replace(a, (l) => l.toUpperCase()) : "",
|
|
401
401
|
convertKeyToTitle: e
|
|
402
402
|
};
|
|
403
403
|
}
|
|
404
|
-
const
|
|
404
|
+
const Ll = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ol = (e) => {
|
|
405
405
|
if (typeof e != "string")
|
|
406
406
|
throw new TypeError("Invalid argument expected string");
|
|
407
|
-
const a = e.match(
|
|
407
|
+
const a = e.match(Ll);
|
|
408
408
|
if (!a)
|
|
409
409
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
410
410
|
return a.shift(), a;
|
|
411
411
|
}, ul = (e) => e === "*" || e === "x" || e === "X", cl = (e) => {
|
|
412
412
|
const a = parseInt(e, 10);
|
|
413
413
|
return isNaN(a) ? e : a;
|
|
414
|
-
},
|
|
414
|
+
}, gr = (e, a) => typeof e != typeof a ? [String(e), String(a)] : [e, a], yr = (e, a) => {
|
|
415
415
|
if (ul(e) || ul(a))
|
|
416
416
|
return 0;
|
|
417
|
-
const [t, l] =
|
|
417
|
+
const [t, l] = gr(cl(e), cl(a));
|
|
418
418
|
return t > l ? 1 : t < l ? -1 : 0;
|
|
419
419
|
}, dl = (e, a) => {
|
|
420
420
|
for (let t = 0; t < Math.max(e.length, a.length); t++) {
|
|
421
|
-
const l =
|
|
421
|
+
const l = yr(e[t] || "0", a[t] || "0");
|
|
422
422
|
if (l !== 0)
|
|
423
423
|
return l;
|
|
424
424
|
}
|
|
425
425
|
return 0;
|
|
426
|
-
},
|
|
426
|
+
}, vr = (e, a) => {
|
|
427
427
|
const t = ol(e), l = ol(a), s = t.pop(), i = l.pop(), o = dl(t, l);
|
|
428
428
|
return o !== 0 ? o : s && i ? dl(s.split("."), i.split(".")) : s || i ? s ? -1 : 1 : 0;
|
|
429
429
|
}, hl = (e, a, t) => {
|
|
430
|
-
|
|
431
|
-
const l =
|
|
432
|
-
return
|
|
433
|
-
},
|
|
430
|
+
br(t);
|
|
431
|
+
const l = vr(e, a);
|
|
432
|
+
return Rl[t].includes(l);
|
|
433
|
+
}, Rl = {
|
|
434
434
|
">": [1],
|
|
435
435
|
">=": [0, 1],
|
|
436
436
|
"=": [0],
|
|
437
437
|
"<=": [-1, 0],
|
|
438
438
|
"<": [-1],
|
|
439
439
|
"!=": [-1, 1]
|
|
440
|
-
}, pl = Object.keys(
|
|
440
|
+
}, pl = Object.keys(Rl), br = (e) => {
|
|
441
441
|
if (typeof e != "string")
|
|
442
442
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
443
443
|
if (pl.indexOf(e) === -1)
|
|
444
444
|
throw new Error(`Invalid operator, expected one of ${pl.join("|")}`);
|
|
445
|
-
},
|
|
446
|
-
function
|
|
445
|
+
}, kr = (e) => typeof e == "string" && /^[v\d]/.test(e) && Ll.test(e);
|
|
446
|
+
function Cr(e) {
|
|
447
447
|
const { gatewayInfo: a, supportedRange: t } = e;
|
|
448
448
|
if (!a)
|
|
449
449
|
return !0;
|
|
450
450
|
const { edition: l, version: s } = a;
|
|
451
|
-
if (!
|
|
451
|
+
if (!kr(s))
|
|
452
452
|
return console.error("Invalid version"), !1;
|
|
453
453
|
const i = t[l];
|
|
454
454
|
if (!i)
|
|
@@ -456,7 +456,7 @@ function br(e) {
|
|
|
456
456
|
const [o, d] = i;
|
|
457
457
|
return !(o && hl(s, o, "<") || d && hl(s, d, ">"));
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function _r(e) {
|
|
460
460
|
const a = E(0), t = E(0), l = E(!1);
|
|
461
461
|
return ge(e, (s) => {
|
|
462
462
|
s && !l.value && (a.value = s.offsetWidth, t.value = s.scrollWidth, l.value = !0);
|
|
@@ -464,8 +464,8 @@ function kr(e) {
|
|
|
464
464
|
isTruncated: F(() => a.value < t.value)
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
const
|
|
468
|
-
function
|
|
467
|
+
const wr = new Ys();
|
|
468
|
+
function Sr() {
|
|
469
469
|
return {
|
|
470
470
|
notify: async (e) => {
|
|
471
471
|
const a = {
|
|
@@ -473,7 +473,7 @@ function _r() {
|
|
|
473
473
|
message: "Success",
|
|
474
474
|
timeoutMilliseconds: 3e3
|
|
475
475
|
};
|
|
476
|
-
|
|
476
|
+
wr.open({
|
|
477
477
|
...a,
|
|
478
478
|
...e
|
|
479
479
|
});
|
|
@@ -481,29 +481,133 @@ function _r() {
|
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
const de = {
|
|
484
|
-
useAxios:
|
|
485
|
-
useDebouncedFilter:
|
|
486
|
-
useDeleteUrlBuilder:
|
|
487
|
-
useErrors:
|
|
488
|
-
useExternalLinkCreator:
|
|
489
|
-
useFetcher:
|
|
490
|
-
useFetchUrlBuilder:
|
|
491
|
-
useHelpers:
|
|
492
|
-
useStringHelpers:
|
|
493
|
-
useI18n:
|
|
494
|
-
useGatewayFeatureSupported:
|
|
495
|
-
useTruncationDetector:
|
|
496
|
-
useToaster:
|
|
497
|
-
},
|
|
484
|
+
useAxios: Nt,
|
|
485
|
+
useDebouncedFilter: cr,
|
|
486
|
+
useDeleteUrlBuilder: dr,
|
|
487
|
+
useErrors: hr,
|
|
488
|
+
useExternalLinkCreator: pr,
|
|
489
|
+
useFetcher: fr,
|
|
490
|
+
useFetchUrlBuilder: Vl,
|
|
491
|
+
useHelpers: Bl,
|
|
492
|
+
useStringHelpers: mr,
|
|
493
|
+
useI18n: Kt,
|
|
494
|
+
useGatewayFeatureSupported: Cr,
|
|
495
|
+
useTruncationDetector: _r,
|
|
496
|
+
useToaster: Sr
|
|
497
|
+
}, Ir = {
|
|
498
498
|
fail: "Failed to copy id to clipboard",
|
|
499
499
|
success: {
|
|
500
500
|
prefix: "Successfully",
|
|
501
501
|
content: " copied to clipboard"
|
|
502
502
|
}
|
|
503
|
-
},
|
|
504
|
-
message:
|
|
505
|
-
iconTitle:
|
|
506
|
-
},
|
|
503
|
+
}, xr = "Copy to clipboard", Hr = {
|
|
504
|
+
message: Ir,
|
|
505
|
+
iconTitle: xr
|
|
506
|
+
}, Tr = "kong-ui-copy-uuid-notify", fl = "24px", Ar = (e, a) => {
|
|
507
|
+
const t = e.__vccOpts || e;
|
|
508
|
+
for (const [l, s] of a)
|
|
509
|
+
t[l] = s;
|
|
510
|
+
return t;
|
|
511
|
+
}, Fr = (e) => (jl("data-v-9971cc79"), e = e(), Pl(), e), Or = ["aria-hidden"], Ur = {
|
|
512
|
+
key: 0,
|
|
513
|
+
"data-testid": "kui-icon-svg-title"
|
|
514
|
+
}, qr = /* @__PURE__ */ Fr(() => /* @__PURE__ */ x("path", {
|
|
515
|
+
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
516
|
+
fill: "currentColor"
|
|
517
|
+
}, null, -1)), $r = /* @__PURE__ */ le({
|
|
518
|
+
__name: "CopyIcon",
|
|
519
|
+
props: {
|
|
520
|
+
/** The accessibility text provided to screen readers */
|
|
521
|
+
title: {
|
|
522
|
+
type: String,
|
|
523
|
+
required: !1,
|
|
524
|
+
default: ""
|
|
525
|
+
},
|
|
526
|
+
/** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
|
|
527
|
+
color: {
|
|
528
|
+
type: String,
|
|
529
|
+
required: !1,
|
|
530
|
+
default: "currentColor"
|
|
531
|
+
},
|
|
532
|
+
/** The CSS display property for the icon. Defaults to `block` */
|
|
533
|
+
display: {
|
|
534
|
+
type: String,
|
|
535
|
+
required: !1,
|
|
536
|
+
default: "block"
|
|
537
|
+
},
|
|
538
|
+
/** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
|
|
539
|
+
decorative: {
|
|
540
|
+
type: Boolean,
|
|
541
|
+
required: !1,
|
|
542
|
+
default: !1
|
|
543
|
+
},
|
|
544
|
+
/** The icon size */
|
|
545
|
+
size: {
|
|
546
|
+
type: [Number, String],
|
|
547
|
+
required: !1,
|
|
548
|
+
default: fl,
|
|
549
|
+
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
550
|
+
validator: (e) => {
|
|
551
|
+
if (typeof e == "number" && e > 0)
|
|
552
|
+
return !0;
|
|
553
|
+
if (typeof e == "string") {
|
|
554
|
+
const a = String(e).replace(/px/gi, ""), t = Number(a);
|
|
555
|
+
if (t && !isNaN(t) && Number.isInteger(t) && t > 0)
|
|
556
|
+
return !0;
|
|
557
|
+
}
|
|
558
|
+
return !1;
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
/** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
|
|
562
|
+
as: {
|
|
563
|
+
type: String,
|
|
564
|
+
required: !1,
|
|
565
|
+
default: "span"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
setup(e) {
|
|
569
|
+
const a = e, t = F(() => {
|
|
570
|
+
if (typeof a.size == "number" && a.size > 0)
|
|
571
|
+
return `${a.size}px`;
|
|
572
|
+
if (typeof a.size == "string") {
|
|
573
|
+
const s = String(a.size).replace(/px/gi, ""), i = Number(s);
|
|
574
|
+
if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
|
|
575
|
+
return `${i}px`;
|
|
576
|
+
}
|
|
577
|
+
return fl;
|
|
578
|
+
}), l = F(() => ({
|
|
579
|
+
boxSizing: "border-box",
|
|
580
|
+
color: a.color,
|
|
581
|
+
display: a.display,
|
|
582
|
+
height: t.value,
|
|
583
|
+
lineHeight: "0",
|
|
584
|
+
width: t.value
|
|
585
|
+
}));
|
|
586
|
+
return (s, i) => (b(), L(Ve(e.as), {
|
|
587
|
+
"aria-hidden": e.decorative ? "true" : void 0,
|
|
588
|
+
class: "kui-icon copy-icon",
|
|
589
|
+
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
590
|
+
style: Kl(l.value)
|
|
591
|
+
}, {
|
|
592
|
+
default: p(() => [
|
|
593
|
+
(b(), P("svg", {
|
|
594
|
+
"aria-hidden": e.decorative ? "true" : void 0,
|
|
595
|
+
"data-testid": "kui-icon-svg-copy-icon",
|
|
596
|
+
fill: "none",
|
|
597
|
+
height: "100%",
|
|
598
|
+
role: "img",
|
|
599
|
+
viewBox: "0 0 24 24",
|
|
600
|
+
width: "100%",
|
|
601
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
602
|
+
}, [
|
|
603
|
+
e.title ? (b(), P("title", Ur, C(e.title), 1)) : Q("", !0),
|
|
604
|
+
qr
|
|
605
|
+
], 8, Or))
|
|
606
|
+
]),
|
|
607
|
+
_: 1
|
|
608
|
+
}, 8, ["aria-hidden", "style"]));
|
|
609
|
+
}
|
|
610
|
+
}), Mr = /* @__PURE__ */ Ar($r, [["__scopeId", "data-v-9971cc79"]]), Nr = "16px", Kr = { class: "kong-ui-copy-uuid" }, jr = ["onClick"], ml = 15, Pr = /* @__PURE__ */ le({
|
|
507
611
|
__name: "CopyUuid",
|
|
508
612
|
props: {
|
|
509
613
|
uuid: {
|
|
@@ -547,7 +651,7 @@ const de = {
|
|
|
547
651
|
},
|
|
548
652
|
emits: ["success", "error"],
|
|
549
653
|
setup(e, { emit: a }) {
|
|
550
|
-
const t = e, { t: l } = qt("en-us",
|
|
654
|
+
const t = e, { t: l } = qt("en-us", Hr), s = t.notify || Js(Tr, () => {
|
|
551
655
|
}), i = F(() => t.idTooltip ? {
|
|
552
656
|
label: t.idTooltip,
|
|
553
657
|
positionFixed: !0,
|
|
@@ -575,16 +679,16 @@ const de = {
|
|
|
575
679
|
}), o.value ? f(l("message.fail")) : a("error", t.uuid);
|
|
576
680
|
return;
|
|
577
681
|
}
|
|
578
|
-
const m = ((k = t.uuid) == null ? void 0 : k.length) >
|
|
682
|
+
const m = ((k = t.uuid) == null ? void 0 : k.length) > ml, g = t.format === "hidden" || t.format === "redacted" ? l("message.success.prefix") : `"${((w = t.uuid) == null ? void 0 : w.substring(0, ml)) + (m ? "..." : "")}"`;
|
|
579
683
|
typeof s == "function" && s({
|
|
580
684
|
type: "success",
|
|
581
685
|
message: `${g}${l("message.success.content")}`
|
|
582
686
|
}), o.value ? f(t.successTooltip) : a("success", t.uuid);
|
|
583
687
|
};
|
|
584
688
|
return (r, k) => {
|
|
585
|
-
const w =
|
|
586
|
-
return b(), P("div",
|
|
587
|
-
e.format !== "hidden" ? (b(),
|
|
689
|
+
const w = N("KClipboardProvider");
|
|
690
|
+
return b(), P("div", Kr, [
|
|
691
|
+
e.format !== "hidden" ? (b(), L(Ve(e.idTooltip ? "KTooltip" : "div"), Ct({ key: 0 }, i.value, { "data-testid": "copy-id" }), {
|
|
588
692
|
default: p(() => [
|
|
589
693
|
x("div", {
|
|
590
694
|
class: Ae([
|
|
@@ -596,25 +700,24 @@ const de = {
|
|
|
596
700
|
]),
|
|
597
701
|
_: 1
|
|
598
702
|
}, 16)) : Q("", !0),
|
|
599
|
-
(b(),
|
|
703
|
+
(b(), L(Ve(e.tooltip ? "KTooltip" : "div"), Ct(n.value, { class: "uuid-icon-wrapper" }), {
|
|
600
704
|
default: p(() => [
|
|
601
|
-
y(
|
|
602
|
-
default: p(({ copyToClipboard:
|
|
705
|
+
y(w, null, {
|
|
706
|
+
default: p(({ copyToClipboard: m }) => [
|
|
603
707
|
x("span", {
|
|
604
708
|
"data-testid": "copy-to-clipboard",
|
|
605
709
|
role: "button",
|
|
606
710
|
tabindex: "0",
|
|
607
|
-
onClick: kt((
|
|
711
|
+
onClick: kt((g) => h(m), ["stop"])
|
|
608
712
|
}, [
|
|
609
|
-
y(
|
|
713
|
+
y(c(Mr), {
|
|
610
714
|
class: "uuid-icon",
|
|
611
715
|
color: e.iconColor,
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
size: "16",
|
|
716
|
+
decorative: !!e.tooltip,
|
|
717
|
+
size: c(Nr),
|
|
615
718
|
title: c(l)("iconTitle")
|
|
616
|
-
}, null, 8, ["color", "
|
|
617
|
-
], 8,
|
|
719
|
+
}, null, 8, ["color", "decorative", "size", "title"])
|
|
720
|
+
], 8, jr)
|
|
618
721
|
]),
|
|
619
722
|
_: 1
|
|
620
723
|
})
|
|
@@ -624,15 +727,15 @@ const de = {
|
|
|
624
727
|
]);
|
|
625
728
|
};
|
|
626
729
|
}
|
|
627
|
-
}),
|
|
730
|
+
}), Er = (e, a) => {
|
|
628
731
|
const t = e.__vccOpts || e;
|
|
629
732
|
for (const [l, s] of a)
|
|
630
733
|
t[l] = s;
|
|
631
734
|
return t;
|
|
632
|
-
},
|
|
735
|
+
}, Dl = /* @__PURE__ */ Er(Pr, [["__scopeId", "data-v-0c07874b"]]), Br = {
|
|
633
736
|
key: 0,
|
|
634
737
|
class: "config-card-fieldset-title"
|
|
635
|
-
},
|
|
738
|
+
}, Vr = /* @__PURE__ */ le({
|
|
636
739
|
__name: "JsonCardItem",
|
|
637
740
|
props: {
|
|
638
741
|
item: {
|
|
@@ -656,14 +759,14 @@ const de = {
|
|
|
656
759
|
var n;
|
|
657
760
|
return a.isArrayItem ? (n = i.value) != null && n.name ? l(i.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: a.index }) : "";
|
|
658
761
|
});
|
|
659
|
-
return (n, u) => (b(),
|
|
762
|
+
return (n, u) => (b(), L(Ve(e.isArrayItem ? "fieldset" : "div"), {
|
|
660
763
|
class: Ae(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
661
764
|
}, {
|
|
662
765
|
default: p(() => [
|
|
663
|
-
e.isArrayItem ? (b(), P("legend",
|
|
766
|
+
e.isArrayItem ? (b(), P("legend", Br, [
|
|
664
767
|
x("b", null, C(d.value), 1)
|
|
665
768
|
])) : Q("", !0),
|
|
666
|
-
(b(!0), P(ce, null, me(Object.keys(o.value), (f, h) => (b(),
|
|
769
|
+
(b(!0), P(ce, null, me(Object.keys(o.value), (f, h) => (b(), L(jt, {
|
|
667
770
|
key: `${s.value}-property-${h}`,
|
|
668
771
|
item: {
|
|
669
772
|
key: f,
|
|
@@ -680,7 +783,7 @@ const de = {
|
|
|
680
783
|
for (const [l, s] of a)
|
|
681
784
|
t[l] = s;
|
|
682
785
|
return t;
|
|
683
|
-
},
|
|
786
|
+
}, zl = /* @__PURE__ */ be(Vr, [["__scopeId", "data-v-68ca83ec"]]), Lr = /* @__PURE__ */ le({
|
|
684
787
|
__name: "InternalLinkItem",
|
|
685
788
|
props: {
|
|
686
789
|
item: {
|
|
@@ -692,10 +795,10 @@ const de = {
|
|
|
692
795
|
setup(e) {
|
|
693
796
|
const { i18n: { t: a } } = de.useI18n();
|
|
694
797
|
return (t, l) => {
|
|
695
|
-
const s =
|
|
798
|
+
const s = N("KButton");
|
|
696
799
|
return b(), P("div", null, [
|
|
697
800
|
y(s, {
|
|
698
|
-
appearance: "
|
|
801
|
+
appearance: "tertiary",
|
|
699
802
|
class: "navigation-button",
|
|
700
803
|
onClick: l[0] || (l[0] = (i) => t.$emit("navigation-click", e.item))
|
|
701
804
|
}, {
|
|
@@ -707,7 +810,7 @@ const de = {
|
|
|
707
810
|
]);
|
|
708
811
|
};
|
|
709
812
|
}
|
|
710
|
-
}),
|
|
813
|
+
}), Rr = /* @__PURE__ */ be(Lr, [["__scopeId", "data-v-c96811e5"]]), Dr = /* @__PURE__ */ le({
|
|
711
814
|
__name: "StatusBadge",
|
|
712
815
|
props: {
|
|
713
816
|
status: {
|
|
@@ -718,8 +821,8 @@ const de = {
|
|
|
718
821
|
setup(e) {
|
|
719
822
|
const { i18n: { t: a } } = de.useI18n();
|
|
720
823
|
return (t, l) => {
|
|
721
|
-
const s =
|
|
722
|
-
return b(),
|
|
824
|
+
const s = N("KBadge");
|
|
825
|
+
return b(), L(s, {
|
|
723
826
|
appearance: e.status ? "success" : "neutral"
|
|
724
827
|
}, {
|
|
725
828
|
default: p(() => [
|
|
@@ -729,11 +832,11 @@ const de = {
|
|
|
729
832
|
}, 8, ["appearance"]);
|
|
730
833
|
};
|
|
731
834
|
}
|
|
732
|
-
}),
|
|
835
|
+
}), zr = "#0044f4", Jr = "#e0e4ea", Wr = "#3a3f51", Yr = "1px", Qr = "20px", Gr = { class: "config-card-details-row" }, Zr = ["data-testid"], Xr = ["data-testid"], ei = ["data-testid"], ti = ["data-testid"], ai = { key: 1 }, li = ["data-testid"], si = ["data-testid"], ri = ["data-testid"], ii = ["data-testid"], ni = {
|
|
733
836
|
name: "ConfigCardItem",
|
|
734
|
-
components: { CopyUuid:
|
|
735
|
-
},
|
|
736
|
-
...
|
|
837
|
+
components: { CopyUuid: Dl, JsonCardItem: zl, StatusBadge: Dr, InternalLinkItem: Rr }
|
|
838
|
+
}, oi = /* @__PURE__ */ le({
|
|
839
|
+
...ni,
|
|
737
840
|
props: {
|
|
738
841
|
item: {
|
|
739
842
|
type: Object,
|
|
@@ -753,8 +856,8 @@ const de = {
|
|
|
753
856
|
emits: ["navigation-click"],
|
|
754
857
|
setup(e, { emit: a }) {
|
|
755
858
|
const t = e;
|
|
756
|
-
|
|
757
|
-
"1df60db4": u.value ? "none" : `solid ${c(
|
|
859
|
+
Nl((k) => ({
|
|
860
|
+
"1df60db4": u.value ? "none" : `solid ${c(Yr)} ${c(Jr)}`,
|
|
758
861
|
"21d1d34e": n.value && o.value ? "block" : "flex",
|
|
759
862
|
"4d3dc7e7": n.value && o.value ? "100%" : t.slim ? "50%" : "25%",
|
|
760
863
|
"4d400dc2": n.value && o.value ? "100%" : t.slim ? "50%" : "75%"
|
|
@@ -887,8 +990,8 @@ const de = {
|
|
|
887
990
|
}
|
|
888
991
|
}), h = E(), { isTruncated: r } = de.useTruncationDetector(h);
|
|
889
992
|
return (k, w) => {
|
|
890
|
-
const m =
|
|
891
|
-
return b(), P("div",
|
|
993
|
+
const m = N("KLabel"), g = N("KBadge"), O = N("KMethodBadge"), I = N("KTooltip");
|
|
994
|
+
return b(), P("div", Gr, [
|
|
892
995
|
x("div", {
|
|
893
996
|
class: "config-card-details-label",
|
|
894
997
|
"data-testid": `${e.item.key}-label`
|
|
@@ -909,13 +1012,13 @@ const de = {
|
|
|
909
1012
|
ae(k.$slots, "label-tooltip", {}, () => [
|
|
910
1013
|
G(C(e.item.tooltip), 1)
|
|
911
1014
|
], !0)
|
|
912
|
-
], 8,
|
|
1015
|
+
], 8, Xr)
|
|
913
1016
|
]),
|
|
914
1017
|
key: "0"
|
|
915
1018
|
} : void 0
|
|
916
1019
|
]), 1024)
|
|
917
1020
|
], !0)
|
|
918
|
-
], 8,
|
|
1021
|
+
], 8, Zr),
|
|
919
1022
|
x("div", {
|
|
920
1023
|
class: "config-card-details-value",
|
|
921
1024
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -923,14 +1026,14 @@ const de = {
|
|
|
923
1026
|
ae(k.$slots, e.item.key, {
|
|
924
1027
|
rowValue: e.item.value
|
|
925
1028
|
}, () => [
|
|
926
|
-
o.value ? (b(), P("div",
|
|
927
|
-
(b(),
|
|
1029
|
+
o.value ? (b(), P("div", ai, [
|
|
1030
|
+
(b(), L(Ve(f.value.tag), Ls(Rs(f.value.attrs)), {
|
|
928
1031
|
default: p(() => [
|
|
929
1032
|
f.value.additionalComponent === "KBadge" ? (b(), P("div", {
|
|
930
1033
|
key: 0,
|
|
931
1034
|
"data-testid": `${e.item.key}-badge-tags`
|
|
932
1035
|
}, [
|
|
933
|
-
(b(!0), P(ce, null, me(e.item.value, (A, q) => (b(),
|
|
1036
|
+
(b(!0), P(ce, null, me(e.item.value, (A, q) => (b(), L(g, {
|
|
934
1037
|
key: `${e.item.key}-badge-tag-${q}`,
|
|
935
1038
|
class: "config-badge",
|
|
936
1039
|
"data-testid": `${e.item.key}-badge-tag-${q}`,
|
|
@@ -941,47 +1044,47 @@ const de = {
|
|
|
941
1044
|
]),
|
|
942
1045
|
_: 2
|
|
943
1046
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
944
|
-
], 8,
|
|
1047
|
+
], 8, li)) : Q("", !0),
|
|
945
1048
|
f.value.additionalComponent === "CopyUuid" ? (b(), P("div", {
|
|
946
1049
|
key: 1,
|
|
947
1050
|
class: "copy-uuid-array",
|
|
948
1051
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
949
1052
|
}, [
|
|
950
|
-
(b(!0), P(ce, null, me(e.item.value, (A, q) => (b(),
|
|
1053
|
+
(b(!0), P(ce, null, me(e.item.value, (A, q) => (b(), L(c(Dl), Ct(f.value.childAttrs, {
|
|
951
1054
|
key: `${e.item.key}-copy-uuid-${q}`,
|
|
952
1055
|
"data-testid": `${e.item.key}-copy-uuid-${q}`,
|
|
953
1056
|
uuid: A
|
|
954
1057
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
955
|
-
], 8,
|
|
1058
|
+
], 8, si)) : f.value.additionalComponent === "KMethodBadge" ? (b(), P("div", {
|
|
956
1059
|
key: 2,
|
|
957
1060
|
class: "method-badge-array",
|
|
958
1061
|
"data-testid": `${e.item.key}-badge-methods`
|
|
959
1062
|
}, [
|
|
960
|
-
(b(!0), P(ce, null, me(e.item.value, (A, q) => (b(),
|
|
1063
|
+
(b(!0), P(ce, null, me(e.item.value, (A, q) => (b(), L(O, {
|
|
961
1064
|
key: `${e.item.key}-badge-method-${q}`,
|
|
962
1065
|
class: "config-badge",
|
|
963
1066
|
"data-testid": `${e.item.key}-badge-method-${q}`,
|
|
964
1067
|
"is-rounded": "",
|
|
965
1068
|
label: A,
|
|
966
|
-
method: c(
|
|
1069
|
+
method: c(Qs).includes(A.toLowerCase()) ? A.toLowerCase() : "custom"
|
|
967
1070
|
}, {
|
|
968
1071
|
default: p(() => [
|
|
969
1072
|
G(C(A), 1)
|
|
970
1073
|
]),
|
|
971
1074
|
_: 2
|
|
972
1075
|
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
973
|
-
], 8,
|
|
1076
|
+
], 8, ri)) : Q("", !0),
|
|
974
1077
|
f.value.additionalComponent === "JsonCardItem" ? (b(), P("div", {
|
|
975
1078
|
key: 3,
|
|
976
1079
|
"data-testid": `${t.item.key}-json-array-content`
|
|
977
1080
|
}, [
|
|
978
|
-
(b(!0), P(ce, null, me(e.item.value, (A, q) => (b(),
|
|
1081
|
+
(b(!0), P(ce, null, me(e.item.value, (A, q) => (b(), L(zl, {
|
|
979
1082
|
key: `json-array-item-${q}`,
|
|
980
1083
|
index: q,
|
|
981
1084
|
"is-array-item": "",
|
|
982
1085
|
item: A
|
|
983
1086
|
}, null, 8, ["index", "item"]))), 128))
|
|
984
|
-
], 8,
|
|
1087
|
+
], 8, ii)) : (b(), L(I, {
|
|
985
1088
|
key: 4,
|
|
986
1089
|
label: c(r) ? e.item.value : ""
|
|
987
1090
|
}, {
|
|
@@ -1000,60 +1103,60 @@ const de = {
|
|
|
1000
1103
|
])) : (b(), P("div", {
|
|
1001
1104
|
key: 0,
|
|
1002
1105
|
"data-testid": `${e.item.key}-no-value`
|
|
1003
|
-
}, " – ", 8,
|
|
1106
|
+
}, " – ", 8, ti))
|
|
1004
1107
|
], !0)
|
|
1005
|
-
], 8,
|
|
1108
|
+
], 8, ei)
|
|
1006
1109
|
]);
|
|
1007
1110
|
};
|
|
1008
1111
|
}
|
|
1009
|
-
}),
|
|
1112
|
+
}), jt = /* @__PURE__ */ be(oi, [["__scopeId", "data-v-307ab96d"]]);
|
|
1010
1113
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1011
|
-
function
|
|
1114
|
+
function Jl(e) {
|
|
1012
1115
|
return typeof e > "u" || e === null;
|
|
1013
1116
|
}
|
|
1014
|
-
function
|
|
1117
|
+
function ui(e) {
|
|
1015
1118
|
return typeof e == "object" && e !== null;
|
|
1016
1119
|
}
|
|
1017
|
-
function
|
|
1018
|
-
return Array.isArray(e) ? e :
|
|
1120
|
+
function ci(e) {
|
|
1121
|
+
return Array.isArray(e) ? e : Jl(e) ? [] : [e];
|
|
1019
1122
|
}
|
|
1020
|
-
function
|
|
1123
|
+
function di(e, a) {
|
|
1021
1124
|
var t, l, s, i;
|
|
1022
1125
|
if (a)
|
|
1023
1126
|
for (i = Object.keys(a), t = 0, l = i.length; t < l; t += 1)
|
|
1024
1127
|
s = i[t], e[s] = a[s];
|
|
1025
1128
|
return e;
|
|
1026
1129
|
}
|
|
1027
|
-
function
|
|
1130
|
+
function hi(e, a) {
|
|
1028
1131
|
var t = "", l;
|
|
1029
1132
|
for (l = 0; l < a; l += 1)
|
|
1030
1133
|
t += e;
|
|
1031
1134
|
return t;
|
|
1032
1135
|
}
|
|
1033
|
-
function
|
|
1136
|
+
function pi(e) {
|
|
1034
1137
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1035
1138
|
}
|
|
1036
|
-
var
|
|
1037
|
-
isNothing:
|
|
1038
|
-
isObject:
|
|
1039
|
-
toArray:
|
|
1040
|
-
repeat:
|
|
1041
|
-
isNegativeZero:
|
|
1042
|
-
extend:
|
|
1139
|
+
var fi = Jl, mi = ui, gi = ci, yi = hi, vi = pi, bi = di, ue = {
|
|
1140
|
+
isNothing: fi,
|
|
1141
|
+
isObject: mi,
|
|
1142
|
+
toArray: gi,
|
|
1143
|
+
repeat: yi,
|
|
1144
|
+
isNegativeZero: vi,
|
|
1145
|
+
extend: bi
|
|
1043
1146
|
};
|
|
1044
|
-
function
|
|
1147
|
+
function Wl(e, a) {
|
|
1045
1148
|
var t = "", l = e.reason || "(unknown reason)";
|
|
1046
1149
|
return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !a && e.mark.snippet && (t += `
|
|
1047
1150
|
|
|
1048
1151
|
` + e.mark.snippet), l + " " + t) : l;
|
|
1049
1152
|
}
|
|
1050
1153
|
function Je(e, a) {
|
|
1051
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = a, this.message =
|
|
1154
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = a, this.message = Wl(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1052
1155
|
}
|
|
1053
1156
|
Je.prototype = Object.create(Error.prototype);
|
|
1054
1157
|
Je.prototype.constructor = Je;
|
|
1055
1158
|
Je.prototype.toString = function(e) {
|
|
1056
|
-
return this.name + ": " +
|
|
1159
|
+
return this.name + ": " + Wl(this, e);
|
|
1057
1160
|
};
|
|
1058
1161
|
var fe = Je;
|
|
1059
1162
|
function yt(e, a, t, l, s) {
|
|
@@ -1067,7 +1170,7 @@ function yt(e, a, t, l, s) {
|
|
|
1067
1170
|
function vt(e, a) {
|
|
1068
1171
|
return ue.repeat(" ", a - e.length) + e;
|
|
1069
1172
|
}
|
|
1070
|
-
function
|
|
1173
|
+
function ki(e, a) {
|
|
1071
1174
|
if (a = Object.create(a || null), !e.buffer)
|
|
1072
1175
|
return null;
|
|
1073
1176
|
a.maxLength || (a.maxLength = 79), typeof a.indent != "number" && (a.indent = 1), typeof a.linesBefore != "number" && (a.linesBefore = 3), typeof a.linesAfter != "number" && (a.linesAfter = 2);
|
|
@@ -1097,7 +1200,7 @@ function ci(e, a) {
|
|
|
1097
1200
|
`;
|
|
1098
1201
|
return d.replace(/\n$/, "");
|
|
1099
1202
|
}
|
|
1100
|
-
var
|
|
1203
|
+
var Ci = ki, _i = [
|
|
1101
1204
|
"kind",
|
|
1102
1205
|
"multi",
|
|
1103
1206
|
"resolve",
|
|
@@ -1108,12 +1211,12 @@ var di = ci, hi = [
|
|
|
1108
1211
|
"representName",
|
|
1109
1212
|
"defaultStyle",
|
|
1110
1213
|
"styleAliases"
|
|
1111
|
-
],
|
|
1214
|
+
], wi = [
|
|
1112
1215
|
"scalar",
|
|
1113
1216
|
"sequence",
|
|
1114
1217
|
"mapping"
|
|
1115
1218
|
];
|
|
1116
|
-
function
|
|
1219
|
+
function Si(e) {
|
|
1117
1220
|
var a = {};
|
|
1118
1221
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1119
1222
|
e[t].forEach(function(l) {
|
|
@@ -1121,19 +1224,19 @@ function fi(e) {
|
|
|
1121
1224
|
});
|
|
1122
1225
|
}), a;
|
|
1123
1226
|
}
|
|
1124
|
-
function
|
|
1227
|
+
function Ii(e, a) {
|
|
1125
1228
|
if (a = a || {}, Object.keys(a).forEach(function(t) {
|
|
1126
|
-
if (
|
|
1229
|
+
if (_i.indexOf(t) === -1)
|
|
1127
1230
|
throw new fe('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1128
1231
|
}), this.options = a, this.tag = e, this.kind = a.kind || null, this.resolve = a.resolve || function() {
|
|
1129
1232
|
return !0;
|
|
1130
1233
|
}, this.construct = a.construct || function(t) {
|
|
1131
1234
|
return t;
|
|
1132
|
-
}, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases =
|
|
1235
|
+
}, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases = Si(a.styleAliases || null), wi.indexOf(this.kind) === -1)
|
|
1133
1236
|
throw new fe('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1134
1237
|
}
|
|
1135
|
-
var he =
|
|
1136
|
-
function
|
|
1238
|
+
var he = Ii;
|
|
1239
|
+
function gl(e, a) {
|
|
1137
1240
|
var t = [];
|
|
1138
1241
|
return e[a].forEach(function(l) {
|
|
1139
1242
|
var s = t.length;
|
|
@@ -1142,7 +1245,7 @@ function ml(e, a) {
|
|
|
1142
1245
|
}), t[s] = l;
|
|
1143
1246
|
}), t;
|
|
1144
1247
|
}
|
|
1145
|
-
function
|
|
1248
|
+
function xi() {
|
|
1146
1249
|
var e = {
|
|
1147
1250
|
scalar: {},
|
|
1148
1251
|
sequence: {},
|
|
@@ -1187,47 +1290,47 @@ _t.prototype.extend = function(e) {
|
|
|
1187
1290
|
throw new fe("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1188
1291
|
});
|
|
1189
1292
|
var l = Object.create(_t.prototype);
|
|
1190
|
-
return l.implicit = (this.implicit || []).concat(a), l.explicit = (this.explicit || []).concat(t), l.compiledImplicit =
|
|
1293
|
+
return l.implicit = (this.implicit || []).concat(a), l.explicit = (this.explicit || []).concat(t), l.compiledImplicit = gl(l, "implicit"), l.compiledExplicit = gl(l, "explicit"), l.compiledTypeMap = xi(l.compiledImplicit, l.compiledExplicit), l;
|
|
1191
1294
|
};
|
|
1192
|
-
var
|
|
1295
|
+
var Yl = _t, Ql = new he("tag:yaml.org,2002:str", {
|
|
1193
1296
|
kind: "scalar",
|
|
1194
1297
|
construct: function(e) {
|
|
1195
1298
|
return e !== null ? e : "";
|
|
1196
1299
|
}
|
|
1197
|
-
}),
|
|
1300
|
+
}), Gl = new he("tag:yaml.org,2002:seq", {
|
|
1198
1301
|
kind: "sequence",
|
|
1199
1302
|
construct: function(e) {
|
|
1200
1303
|
return e !== null ? e : [];
|
|
1201
1304
|
}
|
|
1202
|
-
}),
|
|
1305
|
+
}), Zl = new he("tag:yaml.org,2002:map", {
|
|
1203
1306
|
kind: "mapping",
|
|
1204
1307
|
construct: function(e) {
|
|
1205
1308
|
return e !== null ? e : {};
|
|
1206
1309
|
}
|
|
1207
|
-
}),
|
|
1310
|
+
}), Xl = new Yl({
|
|
1208
1311
|
explicit: [
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1312
|
+
Ql,
|
|
1313
|
+
Gl,
|
|
1314
|
+
Zl
|
|
1212
1315
|
]
|
|
1213
1316
|
});
|
|
1214
|
-
function
|
|
1317
|
+
function Hi(e) {
|
|
1215
1318
|
if (e === null)
|
|
1216
1319
|
return !0;
|
|
1217
1320
|
var a = e.length;
|
|
1218
1321
|
return a === 1 && e === "~" || a === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1219
1322
|
}
|
|
1220
|
-
function
|
|
1323
|
+
function Ti() {
|
|
1221
1324
|
return null;
|
|
1222
1325
|
}
|
|
1223
|
-
function
|
|
1326
|
+
function Ai(e) {
|
|
1224
1327
|
return e === null;
|
|
1225
1328
|
}
|
|
1226
|
-
var
|
|
1329
|
+
var es = new he("tag:yaml.org,2002:null", {
|
|
1227
1330
|
kind: "scalar",
|
|
1228
|
-
resolve:
|
|
1229
|
-
construct:
|
|
1230
|
-
predicate:
|
|
1331
|
+
resolve: Hi,
|
|
1332
|
+
construct: Ti,
|
|
1333
|
+
predicate: Ai,
|
|
1231
1334
|
represent: {
|
|
1232
1335
|
canonical: function() {
|
|
1233
1336
|
return "~";
|
|
@@ -1247,23 +1350,23 @@ var Yl = new he("tag:yaml.org,2002:null", {
|
|
|
1247
1350
|
},
|
|
1248
1351
|
defaultStyle: "lowercase"
|
|
1249
1352
|
});
|
|
1250
|
-
function
|
|
1353
|
+
function Fi(e) {
|
|
1251
1354
|
if (e === null)
|
|
1252
1355
|
return !1;
|
|
1253
1356
|
var a = e.length;
|
|
1254
1357
|
return a === 4 && (e === "true" || e === "True" || e === "TRUE") || a === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1255
1358
|
}
|
|
1256
|
-
function
|
|
1359
|
+
function Oi(e) {
|
|
1257
1360
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1258
1361
|
}
|
|
1259
|
-
function
|
|
1362
|
+
function Ui(e) {
|
|
1260
1363
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1261
1364
|
}
|
|
1262
|
-
var
|
|
1365
|
+
var ts = new he("tag:yaml.org,2002:bool", {
|
|
1263
1366
|
kind: "scalar",
|
|
1264
|
-
resolve:
|
|
1265
|
-
construct:
|
|
1266
|
-
predicate:
|
|
1367
|
+
resolve: Fi,
|
|
1368
|
+
construct: Oi,
|
|
1369
|
+
predicate: Ui,
|
|
1267
1370
|
represent: {
|
|
1268
1371
|
lowercase: function(e) {
|
|
1269
1372
|
return e ? "true" : "false";
|
|
@@ -1277,16 +1380,16 @@ var Ql = new he("tag:yaml.org,2002:bool", {
|
|
|
1277
1380
|
},
|
|
1278
1381
|
defaultStyle: "lowercase"
|
|
1279
1382
|
});
|
|
1280
|
-
function
|
|
1383
|
+
function qi(e) {
|
|
1281
1384
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1282
1385
|
}
|
|
1283
|
-
function
|
|
1386
|
+
function $i(e) {
|
|
1284
1387
|
return 48 <= e && e <= 55;
|
|
1285
1388
|
}
|
|
1286
|
-
function
|
|
1389
|
+
function Mi(e) {
|
|
1287
1390
|
return 48 <= e && e <= 57;
|
|
1288
1391
|
}
|
|
1289
|
-
function
|
|
1392
|
+
function Ni(e) {
|
|
1290
1393
|
if (e === null)
|
|
1291
1394
|
return !1;
|
|
1292
1395
|
var a = e.length, t = 0, l = !1, s;
|
|
@@ -1307,7 +1410,7 @@ function xi(e) {
|
|
|
1307
1410
|
if (s === "x") {
|
|
1308
1411
|
for (t++; t < a; t++)
|
|
1309
1412
|
if (s = e[t], s !== "_") {
|
|
1310
|
-
if (!
|
|
1413
|
+
if (!qi(e.charCodeAt(t)))
|
|
1311
1414
|
return !1;
|
|
1312
1415
|
l = !0;
|
|
1313
1416
|
}
|
|
@@ -1316,7 +1419,7 @@ function xi(e) {
|
|
|
1316
1419
|
if (s === "o") {
|
|
1317
1420
|
for (t++; t < a; t++)
|
|
1318
1421
|
if (s = e[t], s !== "_") {
|
|
1319
|
-
if (
|
|
1422
|
+
if (!$i(e.charCodeAt(t)))
|
|
1320
1423
|
return !1;
|
|
1321
1424
|
l = !0;
|
|
1322
1425
|
}
|
|
@@ -1327,13 +1430,13 @@ function xi(e) {
|
|
|
1327
1430
|
return !1;
|
|
1328
1431
|
for (; t < a; t++)
|
|
1329
1432
|
if (s = e[t], s !== "_") {
|
|
1330
|
-
if (!
|
|
1433
|
+
if (!Mi(e.charCodeAt(t)))
|
|
1331
1434
|
return !1;
|
|
1332
1435
|
l = !0;
|
|
1333
1436
|
}
|
|
1334
1437
|
return !(!l || s === "_");
|
|
1335
1438
|
}
|
|
1336
|
-
function
|
|
1439
|
+
function Ki(e) {
|
|
1337
1440
|
var a = e, t = 1, l;
|
|
1338
1441
|
if (a.indexOf("_") !== -1 && (a = a.replace(/_/g, "")), l = a[0], (l === "-" || l === "+") && (l === "-" && (t = -1), a = a.slice(1), l = a[0]), a === "0")
|
|
1339
1442
|
return 0;
|
|
@@ -1347,14 +1450,14 @@ function Hi(e) {
|
|
|
1347
1450
|
}
|
|
1348
1451
|
return t * parseInt(a, 10);
|
|
1349
1452
|
}
|
|
1350
|
-
function
|
|
1453
|
+
function ji(e) {
|
|
1351
1454
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ue.isNegativeZero(e);
|
|
1352
1455
|
}
|
|
1353
|
-
var
|
|
1456
|
+
var as = new he("tag:yaml.org,2002:int", {
|
|
1354
1457
|
kind: "scalar",
|
|
1355
|
-
resolve:
|
|
1356
|
-
construct:
|
|
1357
|
-
predicate:
|
|
1458
|
+
resolve: Ni,
|
|
1459
|
+
construct: Ki,
|
|
1460
|
+
predicate: ji,
|
|
1358
1461
|
represent: {
|
|
1359
1462
|
binary: function(e) {
|
|
1360
1463
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1377,21 +1480,21 @@ var Gl = new he("tag:yaml.org,2002:int", {
|
|
|
1377
1480
|
decimal: [10, "dec"],
|
|
1378
1481
|
hexadecimal: [16, "hex"]
|
|
1379
1482
|
}
|
|
1380
|
-
}),
|
|
1483
|
+
}), Pi = new RegExp(
|
|
1381
1484
|
// 2.5e4, 2.5 and integers
|
|
1382
1485
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1383
1486
|
);
|
|
1384
|
-
function
|
|
1385
|
-
return !(e === null || !
|
|
1487
|
+
function Ei(e) {
|
|
1488
|
+
return !(e === null || !Pi.test(e) || // Quick hack to not allow integers end with `_`
|
|
1386
1489
|
// Probably should update regexp & check speed
|
|
1387
1490
|
e[e.length - 1] === "_");
|
|
1388
1491
|
}
|
|
1389
|
-
function
|
|
1492
|
+
function Bi(e) {
|
|
1390
1493
|
var a, t;
|
|
1391
1494
|
return a = e.replace(/_/g, "").toLowerCase(), t = a[0] === "-" ? -1 : 1, "+-".indexOf(a[0]) >= 0 && (a = a.slice(1)), a === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : a === ".nan" ? NaN : t * parseFloat(a, 10);
|
|
1392
1495
|
}
|
|
1393
|
-
var
|
|
1394
|
-
function
|
|
1496
|
+
var Vi = /^[-+]?[0-9]+e/;
|
|
1497
|
+
function Li(e, a) {
|
|
1395
1498
|
var t;
|
|
1396
1499
|
if (isNaN(e))
|
|
1397
1500
|
switch (a) {
|
|
@@ -1422,36 +1525,36 @@ function qi(e, a) {
|
|
|
1422
1525
|
}
|
|
1423
1526
|
else if (ue.isNegativeZero(e))
|
|
1424
1527
|
return "-0.0";
|
|
1425
|
-
return t = e.toString(10),
|
|
1528
|
+
return t = e.toString(10), Vi.test(t) ? t.replace("e", ".e") : t;
|
|
1426
1529
|
}
|
|
1427
|
-
function
|
|
1530
|
+
function Ri(e) {
|
|
1428
1531
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ue.isNegativeZero(e));
|
|
1429
1532
|
}
|
|
1430
|
-
var
|
|
1533
|
+
var ls = new he("tag:yaml.org,2002:float", {
|
|
1431
1534
|
kind: "scalar",
|
|
1432
|
-
resolve:
|
|
1433
|
-
construct:
|
|
1434
|
-
predicate:
|
|
1435
|
-
represent:
|
|
1535
|
+
resolve: Ei,
|
|
1536
|
+
construct: Bi,
|
|
1537
|
+
predicate: Ri,
|
|
1538
|
+
represent: Li,
|
|
1436
1539
|
defaultStyle: "lowercase"
|
|
1437
|
-
}),
|
|
1540
|
+
}), ss = Xl.extend({
|
|
1438
1541
|
implicit: [
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1542
|
+
es,
|
|
1543
|
+
ts,
|
|
1544
|
+
as,
|
|
1545
|
+
ls
|
|
1443
1546
|
]
|
|
1444
|
-
}),
|
|
1547
|
+
}), rs = ss, is = new RegExp(
|
|
1445
1548
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1446
|
-
),
|
|
1549
|
+
), ns = new RegExp(
|
|
1447
1550
|
"^([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]))?))?$"
|
|
1448
1551
|
);
|
|
1449
|
-
function
|
|
1450
|
-
return e === null ? !1 :
|
|
1552
|
+
function Di(e) {
|
|
1553
|
+
return e === null ? !1 : is.exec(e) !== null || ns.exec(e) !== null;
|
|
1451
1554
|
}
|
|
1452
|
-
function
|
|
1555
|
+
function zi(e) {
|
|
1453
1556
|
var a, t, l, s, i, o, d, n = 0, u = null, f, h, r;
|
|
1454
|
-
if (a =
|
|
1557
|
+
if (a = is.exec(e), a === null && (a = ns.exec(e)), a === null)
|
|
1455
1558
|
throw new Error("Date resolve error");
|
|
1456
1559
|
if (t = +a[1], l = +a[2] - 1, s = +a[3], !a[4])
|
|
1457
1560
|
return new Date(Date.UTC(t, l, s));
|
|
@@ -1462,25 +1565,25 @@ function Ki(e) {
|
|
|
1462
1565
|
}
|
|
1463
1566
|
return a[9] && (f = +a[10], h = +(a[11] || 0), u = (f * 60 + h) * 6e4, a[9] === "-" && (u = -u)), r = new Date(Date.UTC(t, l, s, i, o, d, n)), u && r.setTime(r.getTime() - u), r;
|
|
1464
1567
|
}
|
|
1465
|
-
function
|
|
1568
|
+
function Ji(e) {
|
|
1466
1569
|
return e.toISOString();
|
|
1467
1570
|
}
|
|
1468
|
-
var
|
|
1571
|
+
var os = new he("tag:yaml.org,2002:timestamp", {
|
|
1469
1572
|
kind: "scalar",
|
|
1470
|
-
resolve:
|
|
1471
|
-
construct:
|
|
1573
|
+
resolve: Di,
|
|
1574
|
+
construct: zi,
|
|
1472
1575
|
instanceOf: Date,
|
|
1473
|
-
represent:
|
|
1576
|
+
represent: Ji
|
|
1474
1577
|
});
|
|
1475
|
-
function
|
|
1578
|
+
function Wi(e) {
|
|
1476
1579
|
return e === "<<" || e === null;
|
|
1477
1580
|
}
|
|
1478
|
-
var
|
|
1581
|
+
var us = new he("tag:yaml.org,2002:merge", {
|
|
1479
1582
|
kind: "scalar",
|
|
1480
|
-
resolve:
|
|
1583
|
+
resolve: Wi
|
|
1481
1584
|
}), Pt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1482
1585
|
\r`;
|
|
1483
|
-
function
|
|
1586
|
+
function Yi(e) {
|
|
1484
1587
|
if (e === null)
|
|
1485
1588
|
return !1;
|
|
1486
1589
|
var a, t, l = 0, s = e.length, i = Pt;
|
|
@@ -1492,37 +1595,37 @@ function Pi(e) {
|
|
|
1492
1595
|
}
|
|
1493
1596
|
return l % 8 === 0;
|
|
1494
1597
|
}
|
|
1495
|
-
function
|
|
1598
|
+
function Qi(e) {
|
|
1496
1599
|
var a, t, l = e.replace(/[\r\n=]/g, ""), s = l.length, i = Pt, o = 0, d = [];
|
|
1497
1600
|
for (a = 0; a < s; a++)
|
|
1498
1601
|
a % 4 === 0 && a && (d.push(o >> 16 & 255), d.push(o >> 8 & 255), d.push(o & 255)), o = o << 6 | i.indexOf(l.charAt(a));
|
|
1499
1602
|
return t = s % 4 * 6, t === 0 ? (d.push(o >> 16 & 255), d.push(o >> 8 & 255), d.push(o & 255)) : t === 18 ? (d.push(o >> 10 & 255), d.push(o >> 2 & 255)) : t === 12 && d.push(o >> 4 & 255), new Uint8Array(d);
|
|
1500
1603
|
}
|
|
1501
|
-
function
|
|
1604
|
+
function Gi(e) {
|
|
1502
1605
|
var a = "", t = 0, l, s, i = e.length, o = Pt;
|
|
1503
1606
|
for (l = 0; l < i; l++)
|
|
1504
1607
|
l % 3 === 0 && l && (a += o[t >> 18 & 63], a += o[t >> 12 & 63], a += o[t >> 6 & 63], a += o[t & 63]), t = (t << 8) + e[l];
|
|
1505
1608
|
return s = i % 3, s === 0 ? (a += o[t >> 18 & 63], a += o[t >> 12 & 63], a += o[t >> 6 & 63], a += o[t & 63]) : s === 2 ? (a += o[t >> 10 & 63], a += o[t >> 4 & 63], a += o[t << 2 & 63], a += o[64]) : s === 1 && (a += o[t >> 2 & 63], a += o[t << 4 & 63], a += o[64], a += o[64]), a;
|
|
1506
1609
|
}
|
|
1507
|
-
function
|
|
1610
|
+
function Zi(e) {
|
|
1508
1611
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1509
1612
|
}
|
|
1510
|
-
var
|
|
1613
|
+
var cs = new he("tag:yaml.org,2002:binary", {
|
|
1511
1614
|
kind: "scalar",
|
|
1512
|
-
resolve:
|
|
1513
|
-
construct:
|
|
1514
|
-
predicate:
|
|
1515
|
-
represent:
|
|
1516
|
-
}),
|
|
1517
|
-
function
|
|
1615
|
+
resolve: Yi,
|
|
1616
|
+
construct: Qi,
|
|
1617
|
+
predicate: Zi,
|
|
1618
|
+
represent: Gi
|
|
1619
|
+
}), Xi = Object.prototype.hasOwnProperty, en = Object.prototype.toString;
|
|
1620
|
+
function tn(e) {
|
|
1518
1621
|
if (e === null)
|
|
1519
1622
|
return !0;
|
|
1520
1623
|
var a = [], t, l, s, i, o, d = e;
|
|
1521
1624
|
for (t = 0, l = d.length; t < l; t += 1) {
|
|
1522
|
-
if (s = d[t], o = !1,
|
|
1625
|
+
if (s = d[t], o = !1, en.call(s) !== "[object Object]")
|
|
1523
1626
|
return !1;
|
|
1524
1627
|
for (i in s)
|
|
1525
|
-
if (
|
|
1628
|
+
if (Xi.call(s, i))
|
|
1526
1629
|
if (!o)
|
|
1527
1630
|
o = !0;
|
|
1528
1631
|
else
|
|
@@ -1536,26 +1639,26 @@ function Di(e) {
|
|
|
1536
1639
|
}
|
|
1537
1640
|
return !0;
|
|
1538
1641
|
}
|
|
1539
|
-
function
|
|
1642
|
+
function an(e) {
|
|
1540
1643
|
return e !== null ? e : [];
|
|
1541
1644
|
}
|
|
1542
|
-
var
|
|
1645
|
+
var ds = new he("tag:yaml.org,2002:omap", {
|
|
1543
1646
|
kind: "sequence",
|
|
1544
|
-
resolve:
|
|
1545
|
-
construct:
|
|
1546
|
-
}),
|
|
1547
|
-
function
|
|
1647
|
+
resolve: tn,
|
|
1648
|
+
construct: an
|
|
1649
|
+
}), ln = Object.prototype.toString;
|
|
1650
|
+
function sn(e) {
|
|
1548
1651
|
if (e === null)
|
|
1549
1652
|
return !0;
|
|
1550
1653
|
var a, t, l, s, i, o = e;
|
|
1551
1654
|
for (i = new Array(o.length), a = 0, t = o.length; a < t; a += 1) {
|
|
1552
|
-
if (l = o[a],
|
|
1655
|
+
if (l = o[a], ln.call(l) !== "[object Object]" || (s = Object.keys(l), s.length !== 1))
|
|
1553
1656
|
return !1;
|
|
1554
1657
|
i[a] = [s[0], l[s[0]]];
|
|
1555
1658
|
}
|
|
1556
1659
|
return !0;
|
|
1557
1660
|
}
|
|
1558
|
-
function
|
|
1661
|
+
function rn(e) {
|
|
1559
1662
|
if (e === null)
|
|
1560
1663
|
return [];
|
|
1561
1664
|
var a, t, l, s, i, o = e;
|
|
@@ -1563,40 +1666,40 @@ function Yi(e) {
|
|
|
1563
1666
|
l = o[a], s = Object.keys(l), i[a] = [s[0], l[s[0]]];
|
|
1564
1667
|
return i;
|
|
1565
1668
|
}
|
|
1566
|
-
var
|
|
1669
|
+
var hs = new he("tag:yaml.org,2002:pairs", {
|
|
1567
1670
|
kind: "sequence",
|
|
1568
|
-
resolve:
|
|
1569
|
-
construct:
|
|
1570
|
-
}),
|
|
1571
|
-
function
|
|
1671
|
+
resolve: sn,
|
|
1672
|
+
construct: rn
|
|
1673
|
+
}), nn = Object.prototype.hasOwnProperty;
|
|
1674
|
+
function on(e) {
|
|
1572
1675
|
if (e === null)
|
|
1573
1676
|
return !0;
|
|
1574
1677
|
var a, t = e;
|
|
1575
1678
|
for (a in t)
|
|
1576
|
-
if (
|
|
1679
|
+
if (nn.call(t, a) && t[a] !== null)
|
|
1577
1680
|
return !1;
|
|
1578
1681
|
return !0;
|
|
1579
1682
|
}
|
|
1580
|
-
function
|
|
1683
|
+
function un(e) {
|
|
1581
1684
|
return e !== null ? e : {};
|
|
1582
1685
|
}
|
|
1583
|
-
var
|
|
1686
|
+
var ps = new he("tag:yaml.org,2002:set", {
|
|
1584
1687
|
kind: "mapping",
|
|
1585
|
-
resolve:
|
|
1586
|
-
construct:
|
|
1587
|
-
}), Et =
|
|
1688
|
+
resolve: on,
|
|
1689
|
+
construct: un
|
|
1690
|
+
}), Et = rs.extend({
|
|
1588
1691
|
implicit: [
|
|
1589
|
-
|
|
1590
|
-
|
|
1692
|
+
os,
|
|
1693
|
+
us
|
|
1591
1694
|
],
|
|
1592
1695
|
explicit: [
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1696
|
+
cs,
|
|
1697
|
+
ds,
|
|
1698
|
+
hs,
|
|
1699
|
+
ps
|
|
1597
1700
|
]
|
|
1598
|
-
}),
|
|
1599
|
-
function
|
|
1701
|
+
}), Fe = Object.prototype.hasOwnProperty, st = 1, fs = 2, ms = 3, rt = 4, bt = 1, cn = 2, yl = 3, dn = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, hn = /[\x85\u2028\u2029]/, pn = /[,\[\]\{\}]/, gs = /^(?:!|!!|![a-z\-]+!)$/i, ys = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1702
|
+
function vl(e) {
|
|
1600
1703
|
return Object.prototype.toString.call(e);
|
|
1601
1704
|
}
|
|
1602
1705
|
function Ce(e) {
|
|
@@ -1608,36 +1711,36 @@ function Ue(e) {
|
|
|
1608
1711
|
function ye(e) {
|
|
1609
1712
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1610
1713
|
}
|
|
1611
|
-
function
|
|
1714
|
+
function je(e) {
|
|
1612
1715
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1613
1716
|
}
|
|
1614
|
-
function
|
|
1717
|
+
function fn(e) {
|
|
1615
1718
|
var a;
|
|
1616
1719
|
return 48 <= e && e <= 57 ? e - 48 : (a = e | 32, 97 <= a && a <= 102 ? a - 97 + 10 : -1);
|
|
1617
1720
|
}
|
|
1618
|
-
function
|
|
1721
|
+
function mn(e) {
|
|
1619
1722
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1620
1723
|
}
|
|
1621
|
-
function
|
|
1724
|
+
function gn(e) {
|
|
1622
1725
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1623
1726
|
}
|
|
1624
|
-
function
|
|
1727
|
+
function bl(e) {
|
|
1625
1728
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1626
1729
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1627
1730
|
}
|
|
1628
|
-
function
|
|
1731
|
+
function yn(e) {
|
|
1629
1732
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1630
1733
|
(e - 65536 >> 10) + 55296,
|
|
1631
1734
|
(e - 65536 & 1023) + 56320
|
|
1632
1735
|
);
|
|
1633
1736
|
}
|
|
1634
|
-
var
|
|
1737
|
+
var vs = new Array(256), bs = new Array(256);
|
|
1635
1738
|
for (var $e = 0; $e < 256; $e++)
|
|
1636
|
-
|
|
1637
|
-
function
|
|
1739
|
+
vs[$e] = bl($e) ? 1 : 0, bs[$e] = bl($e);
|
|
1740
|
+
function vn(e, a) {
|
|
1638
1741
|
this.input = e, this.filename = a.filename || null, this.schema = a.schema || Et, this.onWarning = a.onWarning || null, this.legacy = a.legacy || !1, this.json = a.json || !1, this.listener = a.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 = [];
|
|
1639
1742
|
}
|
|
1640
|
-
function
|
|
1743
|
+
function ks(e, a) {
|
|
1641
1744
|
var t = {
|
|
1642
1745
|
name: e.filename,
|
|
1643
1746
|
buffer: e.input.slice(0, -1),
|
|
@@ -1646,26 +1749,26 @@ function ms(e, a) {
|
|
|
1646
1749
|
line: e.line,
|
|
1647
1750
|
column: e.position - e.lineStart
|
|
1648
1751
|
};
|
|
1649
|
-
return t.snippet =
|
|
1752
|
+
return t.snippet = Ci(t), new fe(a, t);
|
|
1650
1753
|
}
|
|
1651
|
-
function
|
|
1652
|
-
throw
|
|
1754
|
+
function R(e, a) {
|
|
1755
|
+
throw ks(e, a);
|
|
1653
1756
|
}
|
|
1654
1757
|
function it(e, a) {
|
|
1655
|
-
e.onWarning && e.onWarning.call(null,
|
|
1758
|
+
e.onWarning && e.onWarning.call(null, ks(e, a));
|
|
1656
1759
|
}
|
|
1657
|
-
var
|
|
1760
|
+
var kl = {
|
|
1658
1761
|
YAML: function(e, a, t) {
|
|
1659
1762
|
var l, s, i;
|
|
1660
|
-
e.version !== null &&
|
|
1763
|
+
e.version !== null && R(e, "duplication of %YAML directive"), t.length !== 1 && R(e, "YAML directive accepts exactly one argument"), l = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), l === null && R(e, "ill-formed argument of the YAML directive"), s = parseInt(l[1], 10), i = parseInt(l[2], 10), s !== 1 && R(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = i < 2, i !== 1 && i !== 2 && it(e, "unsupported YAML version of the document");
|
|
1661
1764
|
},
|
|
1662
1765
|
TAG: function(e, a, t) {
|
|
1663
1766
|
var l, s;
|
|
1664
|
-
t.length !== 2 &&
|
|
1767
|
+
t.length !== 2 && R(e, "TAG directive accepts exactly two arguments"), l = t[0], s = t[1], gs.test(l) || R(e, "ill-formed tag handle (first argument) of the TAG directive"), Fe.call(e.tagMap, l) && R(e, 'there is a previously declared suffix for "' + l + '" tag handle'), ys.test(s) || R(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1665
1768
|
try {
|
|
1666
1769
|
s = decodeURIComponent(s);
|
|
1667
1770
|
} catch {
|
|
1668
|
-
|
|
1771
|
+
R(e, "tag prefix is malformed: " + s);
|
|
1669
1772
|
}
|
|
1670
1773
|
e.tagMap[l] = s;
|
|
1671
1774
|
}
|
|
@@ -1675,30 +1778,30 @@ function Te(e, a, t, l) {
|
|
|
1675
1778
|
if (a < t) {
|
|
1676
1779
|
if (d = e.input.slice(a, t), l)
|
|
1677
1780
|
for (s = 0, i = d.length; s < i; s += 1)
|
|
1678
|
-
o = d.charCodeAt(s), o === 9 || 32 <= o && o <= 1114111 ||
|
|
1781
|
+
o = d.charCodeAt(s), o === 9 || 32 <= o && o <= 1114111 || R(e, "expected valid JSON character");
|
|
1679
1782
|
else
|
|
1680
|
-
|
|
1783
|
+
dn.test(d) && R(e, "the stream contains non-printable characters");
|
|
1681
1784
|
e.result += d;
|
|
1682
1785
|
}
|
|
1683
1786
|
}
|
|
1684
|
-
function
|
|
1787
|
+
function Cl(e, a, t, l) {
|
|
1685
1788
|
var s, i, o, d;
|
|
1686
|
-
for (ue.isObject(t) ||
|
|
1687
|
-
i = s[o],
|
|
1789
|
+
for (ue.isObject(t) || R(e, "cannot merge mappings; the provided source object is unacceptable"), s = Object.keys(t), o = 0, d = s.length; o < d; o += 1)
|
|
1790
|
+
i = s[o], Fe.call(a, i) || (a[i] = t[i], l[i] = !0);
|
|
1688
1791
|
}
|
|
1689
1792
|
function Pe(e, a, t, l, s, i, o, d, n) {
|
|
1690
1793
|
var u, f;
|
|
1691
1794
|
if (Array.isArray(s))
|
|
1692
1795
|
for (s = Array.prototype.slice.call(s), u = 0, f = s.length; u < f; u += 1)
|
|
1693
|
-
Array.isArray(s[u]) &&
|
|
1694
|
-
if (typeof s == "object" &&
|
|
1796
|
+
Array.isArray(s[u]) && R(e, "nested arrays are not supported inside keys"), typeof s == "object" && vl(s[u]) === "[object Object]" && (s[u] = "[object Object]");
|
|
1797
|
+
if (typeof s == "object" && vl(s) === "[object Object]" && (s = "[object Object]"), s = String(s), a === null && (a = {}), l === "tag:yaml.org,2002:merge")
|
|
1695
1798
|
if (Array.isArray(i))
|
|
1696
1799
|
for (u = 0, f = i.length; u < f; u += 1)
|
|
1697
|
-
|
|
1800
|
+
Cl(e, a, i[u], t);
|
|
1698
1801
|
else
|
|
1699
|
-
|
|
1802
|
+
Cl(e, a, i, t);
|
|
1700
1803
|
else
|
|
1701
|
-
!e.json && !
|
|
1804
|
+
!e.json && !Fe.call(t, s) && Fe.call(a, s) && (e.line = o || e.line, e.lineStart = d || e.lineStart, e.position = n || e.position, R(e, "duplicated mapping key")), s === "__proto__" ? Object.defineProperty(a, s, {
|
|
1702
1805
|
configurable: !0,
|
|
1703
1806
|
enumerable: !0,
|
|
1704
1807
|
writable: !0,
|
|
@@ -1708,7 +1811,7 @@ function Pe(e, a, t, l, s, i, o, d, n) {
|
|
|
1708
1811
|
}
|
|
1709
1812
|
function Bt(e) {
|
|
1710
1813
|
var a;
|
|
1711
|
-
a = e.input.charCodeAt(e.position), a === 10 ? e.position++ : a === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1814
|
+
a = e.input.charCodeAt(e.position), a === 10 ? e.position++ : a === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : R(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1712
1815
|
}
|
|
1713
1816
|
function oe(e, a, t) {
|
|
1714
1817
|
for (var l = 0, s = e.input.charCodeAt(e.position); s !== 0; ) {
|
|
@@ -1730,23 +1833,23 @@ function dt(e) {
|
|
|
1730
1833
|
var a = e.position, t;
|
|
1731
1834
|
return t = e.input.charCodeAt(a), !!((t === 45 || t === 46) && t === e.input.charCodeAt(a + 1) && t === e.input.charCodeAt(a + 2) && (a += 3, t = e.input.charCodeAt(a), t === 0 || ye(t)));
|
|
1732
1835
|
}
|
|
1733
|
-
function
|
|
1836
|
+
function Vt(e, a) {
|
|
1734
1837
|
a === 1 ? e.result += " " : a > 1 && (e.result += ue.repeat(`
|
|
1735
1838
|
`, a - 1));
|
|
1736
1839
|
}
|
|
1737
|
-
function
|
|
1840
|
+
function bn(e, a, t) {
|
|
1738
1841
|
var l, s, i, o, d, n, u, f, h = e.kind, r = e.result, k;
|
|
1739
|
-
if (k = e.input.charCodeAt(e.position), ye(k) ||
|
|
1842
|
+
if (k = e.input.charCodeAt(e.position), ye(k) || je(k) || k === 35 || k === 38 || k === 42 || k === 33 || k === 124 || k === 62 || k === 39 || k === 34 || k === 37 || k === 64 || k === 96 || (k === 63 || k === 45) && (s = e.input.charCodeAt(e.position + 1), ye(s) || t && je(s)))
|
|
1740
1843
|
return !1;
|
|
1741
1844
|
for (e.kind = "scalar", e.result = "", i = o = e.position, d = !1; k !== 0; ) {
|
|
1742
1845
|
if (k === 58) {
|
|
1743
|
-
if (s = e.input.charCodeAt(e.position + 1), ye(s) || t &&
|
|
1846
|
+
if (s = e.input.charCodeAt(e.position + 1), ye(s) || t && je(s))
|
|
1744
1847
|
break;
|
|
1745
1848
|
} else if (k === 35) {
|
|
1746
1849
|
if (l = e.input.charCodeAt(e.position - 1), ye(l))
|
|
1747
1850
|
break;
|
|
1748
1851
|
} else {
|
|
1749
|
-
if (e.position === e.lineStart && dt(e) || t &&
|
|
1852
|
+
if (e.position === e.lineStart && dt(e) || t && je(k))
|
|
1750
1853
|
break;
|
|
1751
1854
|
if (Ce(k))
|
|
1752
1855
|
if (n = e.line, u = e.lineStart, f = e.lineIndent, oe(e, !1, -1), e.lineIndent >= a) {
|
|
@@ -1757,11 +1860,11 @@ function un(e, a, t) {
|
|
|
1757
1860
|
break;
|
|
1758
1861
|
}
|
|
1759
1862
|
}
|
|
1760
|
-
d && (Te(e, i, o, !1),
|
|
1863
|
+
d && (Te(e, i, o, !1), Vt(e, e.line - n), i = o = e.position, d = !1), Ue(k) || (o = e.position + 1), k = e.input.charCodeAt(++e.position);
|
|
1761
1864
|
}
|
|
1762
1865
|
return Te(e, i, o, !1), e.result ? !0 : (e.kind = h, e.result = r, !1);
|
|
1763
1866
|
}
|
|
1764
|
-
function
|
|
1867
|
+
function kn(e, a) {
|
|
1765
1868
|
var t, l, s;
|
|
1766
1869
|
if (t = e.input.charCodeAt(e.position), t !== 39)
|
|
1767
1870
|
return !1;
|
|
@@ -1772,10 +1875,10 @@ function cn(e, a) {
|
|
|
1772
1875
|
else
|
|
1773
1876
|
return !0;
|
|
1774
1877
|
else
|
|
1775
|
-
Ce(t) ? (Te(e, l, s, !0),
|
|
1776
|
-
|
|
1878
|
+
Ce(t) ? (Te(e, l, s, !0), Vt(e, oe(e, !1, a)), l = s = e.position) : e.position === e.lineStart && dt(e) ? R(e, "unexpected end of the document within a single quoted scalar") : (e.position++, s = e.position);
|
|
1879
|
+
R(e, "unexpected end of the stream within a single quoted scalar");
|
|
1777
1880
|
}
|
|
1778
|
-
function
|
|
1881
|
+
function Cn(e, a) {
|
|
1779
1882
|
var t, l, s, i, o, d;
|
|
1780
1883
|
if (d = e.input.charCodeAt(e.position), d !== 34)
|
|
1781
1884
|
return !1;
|
|
@@ -1785,21 +1888,21 @@ function dn(e, a) {
|
|
|
1785
1888
|
if (d === 92) {
|
|
1786
1889
|
if (Te(e, t, e.position, !0), d = e.input.charCodeAt(++e.position), Ce(d))
|
|
1787
1890
|
oe(e, !1, a);
|
|
1788
|
-
else if (d < 256 &&
|
|
1789
|
-
e.result +=
|
|
1790
|
-
else if ((o =
|
|
1891
|
+
else if (d < 256 && vs[d])
|
|
1892
|
+
e.result += bs[d], e.position++;
|
|
1893
|
+
else if ((o = mn(d)) > 0) {
|
|
1791
1894
|
for (s = o, i = 0; s > 0; s--)
|
|
1792
|
-
d = e.input.charCodeAt(++e.position), (o =
|
|
1793
|
-
e.result +=
|
|
1895
|
+
d = e.input.charCodeAt(++e.position), (o = fn(d)) >= 0 ? i = (i << 4) + o : R(e, "expected hexadecimal character");
|
|
1896
|
+
e.result += yn(i), e.position++;
|
|
1794
1897
|
} else
|
|
1795
|
-
|
|
1898
|
+
R(e, "unknown escape sequence");
|
|
1796
1899
|
t = l = e.position;
|
|
1797
1900
|
} else
|
|
1798
|
-
Ce(d) ? (Te(e, t, l, !0),
|
|
1901
|
+
Ce(d) ? (Te(e, t, l, !0), Vt(e, oe(e, !1, a)), t = l = e.position) : e.position === e.lineStart && dt(e) ? R(e, "unexpected end of the document within a double quoted scalar") : (e.position++, l = e.position);
|
|
1799
1902
|
}
|
|
1800
|
-
|
|
1903
|
+
R(e, "unexpected end of the stream within a double quoted scalar");
|
|
1801
1904
|
}
|
|
1802
|
-
function
|
|
1905
|
+
function _n(e, a) {
|
|
1803
1906
|
var t = !0, l, s, i, o = e.tag, d, n = e.anchor, u, f, h, r, k, w = /* @__PURE__ */ Object.create(null), m, g, O, I;
|
|
1804
1907
|
if (I = e.input.charCodeAt(e.position), I === 91)
|
|
1805
1908
|
f = 93, k = !1, d = [];
|
|
@@ -1810,11 +1913,11 @@ function hn(e, a) {
|
|
|
1810
1913
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), I = e.input.charCodeAt(++e.position); I !== 0; ) {
|
|
1811
1914
|
if (oe(e, !0, a), I = e.input.charCodeAt(e.position), I === f)
|
|
1812
1915
|
return e.position++, e.tag = o, e.anchor = n, e.kind = k ? "mapping" : "sequence", e.result = d, !0;
|
|
1813
|
-
t ? I === 44 &&
|
|
1916
|
+
t ? I === 44 && R(e, "expected the node content, but found ','") : R(e, "missed comma between flow collection entries"), g = m = O = null, h = r = !1, I === 63 && (u = e.input.charCodeAt(e.position + 1), ye(u) && (h = r = !0, e.position++, oe(e, !0, a))), l = e.line, s = e.lineStart, i = e.position, Le(e, a, st, !1, !0), g = e.tag, m = e.result, oe(e, !0, a), I = e.input.charCodeAt(e.position), (r || e.line === l) && I === 58 && (h = !0, I = e.input.charCodeAt(++e.position), oe(e, !0, a), Le(e, a, st, !1, !0), O = e.result), k ? Pe(e, d, w, g, m, O, l, s, i) : h ? d.push(Pe(e, null, w, g, m, O, l, s, i)) : d.push(m), oe(e, !0, a), I = e.input.charCodeAt(e.position), I === 44 ? (t = !0, I = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1814
1917
|
}
|
|
1815
|
-
|
|
1918
|
+
R(e, "unexpected end of the stream within a flow collection");
|
|
1816
1919
|
}
|
|
1817
|
-
function
|
|
1920
|
+
function wn(e, a) {
|
|
1818
1921
|
var t, l, s = bt, i = !1, o = !1, d = a, n = 0, u = !1, f, h;
|
|
1819
1922
|
if (h = e.input.charCodeAt(e.position), h === 124)
|
|
1820
1923
|
l = !1;
|
|
@@ -1824,9 +1927,9 @@ function pn(e, a) {
|
|
|
1824
1927
|
return !1;
|
|
1825
1928
|
for (e.kind = "scalar", e.result = ""; h !== 0; )
|
|
1826
1929
|
if (h = e.input.charCodeAt(++e.position), h === 43 || h === 45)
|
|
1827
|
-
bt === s ? s = h === 43 ?
|
|
1828
|
-
else if ((f =
|
|
1829
|
-
f === 0 ?
|
|
1930
|
+
bt === s ? s = h === 43 ? yl : cn : R(e, "repeat of a chomping mode identifier");
|
|
1931
|
+
else if ((f = gn(h)) >= 0)
|
|
1932
|
+
f === 0 ? R(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? R(e, "repeat of an indentation width identifier") : (d = a + f - 1, o = !0);
|
|
1830
1933
|
else
|
|
1831
1934
|
break;
|
|
1832
1935
|
if (Ue(h)) {
|
|
@@ -1846,7 +1949,7 @@ function pn(e, a) {
|
|
|
1846
1949
|
continue;
|
|
1847
1950
|
}
|
|
1848
1951
|
if (e.lineIndent < d) {
|
|
1849
|
-
s ===
|
|
1952
|
+
s === yl ? e.result += ue.repeat(`
|
|
1850
1953
|
`, i ? 1 + n : n) : s === bt && i && (e.result += `
|
|
1851
1954
|
`);
|
|
1852
1955
|
break;
|
|
@@ -1861,106 +1964,106 @@ function pn(e, a) {
|
|
|
1861
1964
|
}
|
|
1862
1965
|
return !0;
|
|
1863
1966
|
}
|
|
1864
|
-
function
|
|
1967
|
+
function _l(e, a) {
|
|
1865
1968
|
var t, l = e.tag, s = e.anchor, i = [], o, d = !1, n;
|
|
1866
1969
|
if (e.firstTabInLine !== -1)
|
|
1867
1970
|
return !1;
|
|
1868
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = i), n = e.input.charCodeAt(e.position); n !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1971
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = i), n = e.input.charCodeAt(e.position); n !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, R(e, "tab characters must not be used in indentation")), !(n !== 45 || (o = e.input.charCodeAt(e.position + 1), !ye(o)))); ) {
|
|
1869
1972
|
if (d = !0, e.position++, oe(e, !0, -1) && e.lineIndent <= a) {
|
|
1870
1973
|
i.push(null), n = e.input.charCodeAt(e.position);
|
|
1871
1974
|
continue;
|
|
1872
1975
|
}
|
|
1873
|
-
if (t = e.line, Le(e, a,
|
|
1874
|
-
|
|
1976
|
+
if (t = e.line, Le(e, a, ms, !1, !0), i.push(e.result), oe(e, !0, -1), n = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > a) && n !== 0)
|
|
1977
|
+
R(e, "bad indentation of a sequence entry");
|
|
1875
1978
|
else if (e.lineIndent < a)
|
|
1876
1979
|
break;
|
|
1877
1980
|
}
|
|
1878
1981
|
return d ? (e.tag = l, e.anchor = s, e.kind = "sequence", e.result = i, !0) : !1;
|
|
1879
1982
|
}
|
|
1880
|
-
function
|
|
1983
|
+
function Sn(e, a, t) {
|
|
1881
1984
|
var l, s, i, o, d, n, u = e.tag, f = e.anchor, h = {}, r = /* @__PURE__ */ Object.create(null), k = null, w = null, m = null, g = !1, O = !1, I;
|
|
1882
1985
|
if (e.firstTabInLine !== -1)
|
|
1883
1986
|
return !1;
|
|
1884
1987
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = h), I = e.input.charCodeAt(e.position); I !== 0; ) {
|
|
1885
|
-
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1886
|
-
I === 63 ? (g && (Pe(e, h, r, k, w, null, o, d, n), k = w = m = null), O = !0, g = !0, s = !0) : g ? (g = !1, s = !0) :
|
|
1988
|
+
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, R(e, "tab characters must not be used in indentation")), l = e.input.charCodeAt(e.position + 1), i = e.line, (I === 63 || I === 58) && ye(l))
|
|
1989
|
+
I === 63 ? (g && (Pe(e, h, r, k, w, null, o, d, n), k = w = m = null), O = !0, g = !0, s = !0) : g ? (g = !1, s = !0) : R(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, I = l;
|
|
1887
1990
|
else {
|
|
1888
|
-
if (o = e.line, d = e.lineStart, n = e.position, !Le(e, t,
|
|
1991
|
+
if (o = e.line, d = e.lineStart, n = e.position, !Le(e, t, fs, !1, !0))
|
|
1889
1992
|
break;
|
|
1890
1993
|
if (e.line === i) {
|
|
1891
1994
|
for (I = e.input.charCodeAt(e.position); Ue(I); )
|
|
1892
1995
|
I = e.input.charCodeAt(++e.position);
|
|
1893
1996
|
if (I === 58)
|
|
1894
|
-
I = e.input.charCodeAt(++e.position), ye(I) ||
|
|
1997
|
+
I = e.input.charCodeAt(++e.position), ye(I) || R(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (Pe(e, h, r, k, w, null, o, d, n), k = w = m = null), O = !0, g = !1, s = !1, k = e.tag, w = e.result;
|
|
1895
1998
|
else if (O)
|
|
1896
|
-
|
|
1999
|
+
R(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1897
2000
|
else
|
|
1898
2001
|
return e.tag = u, e.anchor = f, !0;
|
|
1899
2002
|
} else if (O)
|
|
1900
|
-
|
|
2003
|
+
R(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1901
2004
|
else
|
|
1902
2005
|
return e.tag = u, e.anchor = f, !0;
|
|
1903
2006
|
}
|
|
1904
2007
|
if ((e.line === i || e.lineIndent > a) && (g && (o = e.line, d = e.lineStart, n = e.position), Le(e, a, rt, !0, s) && (g ? w = e.result : m = e.result), g || (Pe(e, h, r, k, w, m, o, d, n), k = w = m = null), oe(e, !0, -1), I = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > a) && I !== 0)
|
|
1905
|
-
|
|
2008
|
+
R(e, "bad indentation of a mapping entry");
|
|
1906
2009
|
else if (e.lineIndent < a)
|
|
1907
2010
|
break;
|
|
1908
2011
|
}
|
|
1909
2012
|
return g && Pe(e, h, r, k, w, null, o, d, n), O && (e.tag = u, e.anchor = f, e.kind = "mapping", e.result = h), O;
|
|
1910
2013
|
}
|
|
1911
|
-
function
|
|
2014
|
+
function In(e) {
|
|
1912
2015
|
var a, t = !1, l = !1, s, i, o;
|
|
1913
2016
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
1914
2017
|
return !1;
|
|
1915
|
-
if (e.tag !== null &&
|
|
2018
|
+
if (e.tag !== null && R(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (t = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (l = !0, s = "!!", o = e.input.charCodeAt(++e.position)) : s = "!", a = e.position, t) {
|
|
1916
2019
|
do
|
|
1917
2020
|
o = e.input.charCodeAt(++e.position);
|
|
1918
2021
|
while (o !== 0 && o !== 62);
|
|
1919
|
-
e.position < e.length ? (i = e.input.slice(a, e.position), o = e.input.charCodeAt(++e.position)) :
|
|
2022
|
+
e.position < e.length ? (i = e.input.slice(a, e.position), o = e.input.charCodeAt(++e.position)) : R(e, "unexpected end of the stream within a verbatim tag");
|
|
1920
2023
|
} else {
|
|
1921
2024
|
for (; o !== 0 && !ye(o); )
|
|
1922
|
-
o === 33 && (l ?
|
|
1923
|
-
i = e.input.slice(a, e.position),
|
|
2025
|
+
o === 33 && (l ? R(e, "tag suffix cannot contain exclamation marks") : (s = e.input.slice(a - 1, e.position + 1), gs.test(s) || R(e, "named tag handle cannot contain such characters"), l = !0, a = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2026
|
+
i = e.input.slice(a, e.position), pn.test(i) && R(e, "tag suffix cannot contain flow indicator characters");
|
|
1924
2027
|
}
|
|
1925
|
-
i && !
|
|
2028
|
+
i && !ys.test(i) && R(e, "tag name cannot contain such characters: " + i);
|
|
1926
2029
|
try {
|
|
1927
2030
|
i = decodeURIComponent(i);
|
|
1928
2031
|
} catch {
|
|
1929
|
-
|
|
2032
|
+
R(e, "tag name is malformed: " + i);
|
|
1930
2033
|
}
|
|
1931
|
-
return t ? e.tag = i :
|
|
2034
|
+
return t ? e.tag = i : Fe.call(e.tagMap, s) ? e.tag = e.tagMap[s] + i : s === "!" ? e.tag = "!" + i : s === "!!" ? e.tag = "tag:yaml.org,2002:" + i : R(e, 'undeclared tag handle "' + s + '"'), !0;
|
|
1932
2035
|
}
|
|
1933
|
-
function
|
|
2036
|
+
function xn(e) {
|
|
1934
2037
|
var a, t;
|
|
1935
2038
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
1936
2039
|
return !1;
|
|
1937
|
-
for (e.anchor !== null &&
|
|
2040
|
+
for (e.anchor !== null && R(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), a = e.position; t !== 0 && !ye(t) && !je(t); )
|
|
1938
2041
|
t = e.input.charCodeAt(++e.position);
|
|
1939
|
-
return e.position === a &&
|
|
2042
|
+
return e.position === a && R(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(a, e.position), !0;
|
|
1940
2043
|
}
|
|
1941
|
-
function
|
|
2044
|
+
function Hn(e) {
|
|
1942
2045
|
var a, t, l;
|
|
1943
2046
|
if (l = e.input.charCodeAt(e.position), l !== 42)
|
|
1944
2047
|
return !1;
|
|
1945
|
-
for (l = e.input.charCodeAt(++e.position), a = e.position; l !== 0 && !ye(l) && !
|
|
2048
|
+
for (l = e.input.charCodeAt(++e.position), a = e.position; l !== 0 && !ye(l) && !je(l); )
|
|
1946
2049
|
l = e.input.charCodeAt(++e.position);
|
|
1947
|
-
return e.position === a &&
|
|
2050
|
+
return e.position === a && R(e, "name of an alias node must contain at least one character"), t = e.input.slice(a, e.position), Fe.call(e.anchorMap, t) || R(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
|
|
1948
2051
|
}
|
|
1949
2052
|
function Le(e, a, t, l, s) {
|
|
1950
2053
|
var i, o, d, n = 1, u = !1, f = !1, h, r, k, w, m, g;
|
|
1951
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = d = rt === t ||
|
|
1952
|
-
for (;
|
|
2054
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = d = rt === t || ms === t, l && oe(e, !0, -1) && (u = !0, e.lineIndent > a ? n = 1 : e.lineIndent === a ? n = 0 : e.lineIndent < a && (n = -1)), n === 1)
|
|
2055
|
+
for (; In(e) || xn(e); )
|
|
1953
2056
|
oe(e, !0, -1) ? (u = !0, d = i, e.lineIndent > a ? n = 1 : e.lineIndent === a ? n = 0 : e.lineIndent < a && (n = -1)) : d = !1;
|
|
1954
|
-
if (d && (d = u || s), (n === 1 || rt === t) && (st === t ||
|
|
2057
|
+
if (d && (d = u || s), (n === 1 || rt === t) && (st === t || fs === t ? m = a : m = a + 1, g = e.position - e.lineStart, n === 1 ? d && (_l(e, g) || Sn(e, g, m)) || _n(e, m) ? f = !0 : (o && wn(e, m) || kn(e, m) || Cn(e, m) ? f = !0 : Hn(e) ? (f = !0, (e.tag !== null || e.anchor !== null) && R(e, "alias node should not have any properties")) : bn(e, m, st === t) && (f = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : n === 0 && (f = d && _l(e, g))), e.tag === null)
|
|
1955
2058
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1956
2059
|
else if (e.tag === "?") {
|
|
1957
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
2060
|
+
for (e.result !== null && e.kind !== "scalar" && R(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), h = 0, r = e.implicitTypes.length; h < r; h += 1)
|
|
1958
2061
|
if (w = e.implicitTypes[h], w.resolve(e.result)) {
|
|
1959
2062
|
e.result = w.construct(e.result), e.tag = w.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1960
2063
|
break;
|
|
1961
2064
|
}
|
|
1962
2065
|
} else if (e.tag !== "!") {
|
|
1963
|
-
if (
|
|
2066
|
+
if (Fe.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
1964
2067
|
w = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1965
2068
|
else
|
|
1966
2069
|
for (w = null, k = e.typeMap.multi[e.kind || "fallback"], h = 0, r = k.length; h < r; h += 1)
|
|
@@ -1968,16 +2071,16 @@ function Le(e, a, t, l, s) {
|
|
|
1968
2071
|
w = k[h];
|
|
1969
2072
|
break;
|
|
1970
2073
|
}
|
|
1971
|
-
w ||
|
|
2074
|
+
w || R(e, "unknown tag !<" + e.tag + ">"), e.result !== null && w.kind !== e.kind && R(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + w.kind + '", not "' + e.kind + '"'), w.resolve(e.result, e.tag) ? (e.result = w.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : R(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1972
2075
|
}
|
|
1973
2076
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || f;
|
|
1974
2077
|
}
|
|
1975
|
-
function
|
|
2078
|
+
function Tn(e) {
|
|
1976
2079
|
var a = e.position, t, l, s, i = !1, o;
|
|
1977
2080
|
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 && (oe(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
1978
2081
|
for (i = !0, o = e.input.charCodeAt(++e.position), t = e.position; o !== 0 && !ye(o); )
|
|
1979
2082
|
o = e.input.charCodeAt(++e.position);
|
|
1980
|
-
for (l = e.input.slice(t, e.position), s = [], l.length < 1 &&
|
|
2083
|
+
for (l = e.input.slice(t, e.position), s = [], l.length < 1 && R(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
1981
2084
|
for (; Ue(o); )
|
|
1982
2085
|
o = e.input.charCodeAt(++e.position);
|
|
1983
2086
|
if (o === 35) {
|
|
@@ -1992,47 +2095,47 @@ function vn(e) {
|
|
|
1992
2095
|
o = e.input.charCodeAt(++e.position);
|
|
1993
2096
|
s.push(e.input.slice(t, e.position));
|
|
1994
2097
|
}
|
|
1995
|
-
o !== 0 && Bt(e),
|
|
2098
|
+
o !== 0 && Bt(e), Fe.call(kl, l) ? kl[l](e, l, s) : it(e, 'unknown document directive "' + l + '"');
|
|
1996
2099
|
}
|
|
1997
|
-
if (oe(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, oe(e, !0, -1)) : i &&
|
|
2100
|
+
if (oe(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, oe(e, !0, -1)) : i && R(e, "directives end mark is expected"), Le(e, e.lineIndent - 1, rt, !1, !0), oe(e, !0, -1), e.checkLineBreaks && hn.test(e.input.slice(a, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
|
|
1998
2101
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
|
|
1999
2102
|
return;
|
|
2000
2103
|
}
|
|
2001
2104
|
if (e.position < e.length - 1)
|
|
2002
|
-
|
|
2105
|
+
R(e, "end of the stream or a document separator is expected");
|
|
2003
2106
|
else
|
|
2004
2107
|
return;
|
|
2005
2108
|
}
|
|
2006
|
-
function
|
|
2109
|
+
function Cs(e, a) {
|
|
2007
2110
|
e = String(e), a = a || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2008
2111
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2009
|
-
var t = new
|
|
2010
|
-
for (l !== -1 && (t.position = l,
|
|
2112
|
+
var t = new vn(e, a), l = e.indexOf("\0");
|
|
2113
|
+
for (l !== -1 && (t.position = l, R(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2011
2114
|
t.lineIndent += 1, t.position += 1;
|
|
2012
2115
|
for (; t.position < t.length - 1; )
|
|
2013
|
-
|
|
2116
|
+
Tn(t);
|
|
2014
2117
|
return t.documents;
|
|
2015
2118
|
}
|
|
2016
|
-
function
|
|
2119
|
+
function An(e, a, t) {
|
|
2017
2120
|
a !== null && typeof a == "object" && typeof t > "u" && (t = a, a = null);
|
|
2018
|
-
var l =
|
|
2121
|
+
var l = Cs(e, t);
|
|
2019
2122
|
if (typeof a != "function")
|
|
2020
2123
|
return l;
|
|
2021
2124
|
for (var s = 0, i = l.length; s < i; s += 1)
|
|
2022
2125
|
a(l[s]);
|
|
2023
2126
|
}
|
|
2024
|
-
function
|
|
2025
|
-
var t =
|
|
2127
|
+
function Fn(e, a) {
|
|
2128
|
+
var t = Cs(e, a);
|
|
2026
2129
|
if (t.length !== 0) {
|
|
2027
2130
|
if (t.length === 1)
|
|
2028
2131
|
return t[0];
|
|
2029
2132
|
throw new fe("expected a single document in the stream, but found more");
|
|
2030
2133
|
}
|
|
2031
2134
|
}
|
|
2032
|
-
var
|
|
2033
|
-
loadAll:
|
|
2034
|
-
load:
|
|
2035
|
-
},
|
|
2135
|
+
var On = An, Un = Fn, _s = {
|
|
2136
|
+
loadAll: On,
|
|
2137
|
+
load: Un
|
|
2138
|
+
}, ws = Object.prototype.toString, Ss = Object.prototype.hasOwnProperty, Lt = 65279, qn = 9, We = 10, $n = 13, Mn = 32, Nn = 33, Kn = 34, wt = 35, jn = 37, Pn = 38, En = 39, Bn = 42, Is = 44, Vn = 45, nt = 58, Ln = 61, Rn = 62, Dn = 63, zn = 64, xs = 91, Hs = 93, Jn = 96, Ts = 123, Wn = 124, As = 125, pe = {};
|
|
2036
2139
|
pe[0] = "\\0";
|
|
2037
2140
|
pe[7] = "\\a";
|
|
2038
2141
|
pe[8] = "\\b";
|
|
@@ -2048,7 +2151,7 @@ pe[133] = "\\N";
|
|
|
2048
2151
|
pe[160] = "\\_";
|
|
2049
2152
|
pe[8232] = "\\L";
|
|
2050
2153
|
pe[8233] = "\\P";
|
|
2051
|
-
var
|
|
2154
|
+
var Yn = [
|
|
2052
2155
|
"y",
|
|
2053
2156
|
"Y",
|
|
2054
2157
|
"yes",
|
|
@@ -2065,16 +2168,16 @@ var Pn = [
|
|
|
2065
2168
|
"off",
|
|
2066
2169
|
"Off",
|
|
2067
2170
|
"OFF"
|
|
2068
|
-
],
|
|
2069
|
-
function
|
|
2171
|
+
], Qn = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2172
|
+
function Gn(e, a) {
|
|
2070
2173
|
var t, l, s, i, o, d, n;
|
|
2071
2174
|
if (a === null)
|
|
2072
2175
|
return {};
|
|
2073
2176
|
for (t = {}, l = Object.keys(a), s = 0, i = l.length; s < i; s += 1)
|
|
2074
|
-
o = l[s], d = String(a[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), n = e.compiledTypeMap.fallback[o], n &&
|
|
2177
|
+
o = l[s], d = String(a[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), n = e.compiledTypeMap.fallback[o], n && Ss.call(n.styleAliases, d) && (d = n.styleAliases[d]), t[o] = d;
|
|
2075
2178
|
return t;
|
|
2076
2179
|
}
|
|
2077
|
-
function
|
|
2180
|
+
function Zn(e) {
|
|
2078
2181
|
var a, t, l;
|
|
2079
2182
|
if (a = e.toString(16).toUpperCase(), e <= 255)
|
|
2080
2183
|
t = "x", l = 2;
|
|
@@ -2086,11 +2189,11 @@ function Ln(e) {
|
|
|
2086
2189
|
throw new fe("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2087
2190
|
return "\\" + t + ue.repeat("0", l - a.length) + a;
|
|
2088
2191
|
}
|
|
2089
|
-
var
|
|
2090
|
-
function
|
|
2091
|
-
this.schema = e.schema || Et, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ue.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2192
|
+
var Xn = 1, Ye = 2;
|
|
2193
|
+
function eo(e) {
|
|
2194
|
+
this.schema = e.schema || Et, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ue.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Gn(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 === '"' ? Ye : Xn, 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;
|
|
2092
2195
|
}
|
|
2093
|
-
function
|
|
2196
|
+
function wl(e, a) {
|
|
2094
2197
|
for (var t = ue.repeat(" ", a), l = 0, s = -1, i = "", o, d = e.length; l < d; )
|
|
2095
2198
|
s = e.indexOf(`
|
|
2096
2199
|
`, l), s === -1 ? (o = e.slice(l), l = d) : (o = e.slice(l, s + 1), l = s + 1), o.length && o !== `
|
|
@@ -2101,7 +2204,7 @@ function St(e, a) {
|
|
|
2101
2204
|
return `
|
|
2102
2205
|
` + ue.repeat(" ", e.indent * a);
|
|
2103
2206
|
}
|
|
2104
|
-
function
|
|
2207
|
+
function to(e, a) {
|
|
2105
2208
|
var t, l, s;
|
|
2106
2209
|
for (t = 0, l = e.implicitTypes.length; t < l; t += 1)
|
|
2107
2210
|
if (s = e.implicitTypes[t], s.resolve(a))
|
|
@@ -2109,71 +2212,71 @@ function Dn(e, a) {
|
|
|
2109
2212
|
return !1;
|
|
2110
2213
|
}
|
|
2111
2214
|
function ot(e) {
|
|
2112
|
-
return e ===
|
|
2215
|
+
return e === Mn || e === qn;
|
|
2113
2216
|
}
|
|
2114
2217
|
function Qe(e) {
|
|
2115
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2218
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Lt || 65536 <= e && e <= 1114111;
|
|
2116
2219
|
}
|
|
2117
|
-
function
|
|
2118
|
-
return Qe(e) && e !==
|
|
2220
|
+
function Sl(e) {
|
|
2221
|
+
return Qe(e) && e !== Lt && e !== $n && e !== We;
|
|
2119
2222
|
}
|
|
2120
|
-
function
|
|
2121
|
-
var l =
|
|
2223
|
+
function Il(e, a, t) {
|
|
2224
|
+
var l = Sl(e), s = l && !ot(e);
|
|
2122
2225
|
return (
|
|
2123
2226
|
// ns-plain-safe
|
|
2124
2227
|
(t ? (
|
|
2125
2228
|
// c = flow-in
|
|
2126
2229
|
l
|
|
2127
|
-
) : l && e !==
|
|
2230
|
+
) : l && e !== Is && e !== xs && e !== Hs && e !== Ts && e !== As) && e !== wt && !(a === nt && !s) || Sl(a) && !ot(a) && e === wt || a === nt && s
|
|
2128
2231
|
);
|
|
2129
2232
|
}
|
|
2130
|
-
function
|
|
2131
|
-
return Qe(e) && e !==
|
|
2233
|
+
function ao(e) {
|
|
2234
|
+
return Qe(e) && e !== Lt && !ot(e) && e !== Vn && e !== Dn && e !== nt && e !== Is && e !== xs && e !== Hs && e !== Ts && e !== As && e !== wt && e !== Pn && e !== Bn && e !== Nn && e !== Wn && e !== Ln && e !== Rn && e !== En && e !== Kn && e !== jn && e !== zn && e !== Jn;
|
|
2132
2235
|
}
|
|
2133
|
-
function
|
|
2236
|
+
function lo(e) {
|
|
2134
2237
|
return !ot(e) && e !== nt;
|
|
2135
2238
|
}
|
|
2136
|
-
function
|
|
2239
|
+
function ze(e, a) {
|
|
2137
2240
|
var t = e.charCodeAt(a), l;
|
|
2138
2241
|
return t >= 55296 && t <= 56319 && a + 1 < e.length && (l = e.charCodeAt(a + 1), l >= 56320 && l <= 57343) ? (t - 55296) * 1024 + l - 56320 + 65536 : t;
|
|
2139
2242
|
}
|
|
2140
|
-
function
|
|
2243
|
+
function Fs(e) {
|
|
2141
2244
|
var a = /^\n* /;
|
|
2142
2245
|
return a.test(e);
|
|
2143
2246
|
}
|
|
2144
|
-
var
|
|
2145
|
-
function
|
|
2146
|
-
var n, u = 0, f = null, h = !1, r = !1, k = l !== -1, w = -1, m =
|
|
2247
|
+
var Os = 1, It = 2, Us = 3, qs = 4, Ke = 5;
|
|
2248
|
+
function so(e, a, t, l, s, i, o, d) {
|
|
2249
|
+
var n, u = 0, f = null, h = !1, r = !1, k = l !== -1, w = -1, m = ao(ze(e, 0)) && lo(ze(e, e.length - 1));
|
|
2147
2250
|
if (a || o)
|
|
2148
2251
|
for (n = 0; n < e.length; u >= 65536 ? n += 2 : n++) {
|
|
2149
|
-
if (u =
|
|
2150
|
-
return
|
|
2151
|
-
m = m &&
|
|
2252
|
+
if (u = ze(e, n), !Qe(u))
|
|
2253
|
+
return Ke;
|
|
2254
|
+
m = m && Il(u, f, d), f = u;
|
|
2152
2255
|
}
|
|
2153
2256
|
else {
|
|
2154
2257
|
for (n = 0; n < e.length; u >= 65536 ? n += 2 : n++) {
|
|
2155
|
-
if (u =
|
|
2258
|
+
if (u = ze(e, n), u === We)
|
|
2156
2259
|
h = !0, k && (r = r || // Foldable line = too long, and not more-indented.
|
|
2157
2260
|
n - w - 1 > l && e[w + 1] !== " ", w = n);
|
|
2158
2261
|
else if (!Qe(u))
|
|
2159
|
-
return
|
|
2160
|
-
m = m &&
|
|
2262
|
+
return Ke;
|
|
2263
|
+
m = m && Il(u, f, d), f = u;
|
|
2161
2264
|
}
|
|
2162
2265
|
r = r || k && n - w - 1 > l && e[w + 1] !== " ";
|
|
2163
2266
|
}
|
|
2164
|
-
return !h && !r ? m && !o && !s(e) ?
|
|
2267
|
+
return !h && !r ? m && !o && !s(e) ? Os : i === Ye ? Ke : It : t > 9 && Fs(e) ? Ke : o ? i === Ye ? Ke : It : r ? qs : Us;
|
|
2165
2268
|
}
|
|
2166
|
-
function
|
|
2269
|
+
function ro(e, a, t, l, s) {
|
|
2167
2270
|
e.dump = function() {
|
|
2168
2271
|
if (a.length === 0)
|
|
2169
2272
|
return e.quotingType === Ye ? '""' : "''";
|
|
2170
|
-
if (!e.noCompatMode && (
|
|
2273
|
+
if (!e.noCompatMode && (Yn.indexOf(a) !== -1 || Qn.test(a)))
|
|
2171
2274
|
return e.quotingType === Ye ? '"' + a + '"' : "'" + a + "'";
|
|
2172
2275
|
var i = e.indent * Math.max(1, t), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - i), d = l || e.flowLevel > -1 && t >= e.flowLevel;
|
|
2173
2276
|
function n(u) {
|
|
2174
|
-
return
|
|
2277
|
+
return to(e, u);
|
|
2175
2278
|
}
|
|
2176
|
-
switch (
|
|
2279
|
+
switch (so(
|
|
2177
2280
|
a,
|
|
2178
2281
|
d,
|
|
2179
2282
|
e.indent,
|
|
@@ -2183,47 +2286,47 @@ function Yn(e, a, t, l, s) {
|
|
|
2183
2286
|
e.forceQuotes && !l,
|
|
2184
2287
|
s
|
|
2185
2288
|
)) {
|
|
2186
|
-
case
|
|
2289
|
+
case Os:
|
|
2187
2290
|
return a;
|
|
2188
2291
|
case It:
|
|
2189
2292
|
return "'" + a.replace(/'/g, "''") + "'";
|
|
2190
|
-
case
|
|
2191
|
-
return "|" +
|
|
2192
|
-
case
|
|
2193
|
-
return ">" +
|
|
2194
|
-
case
|
|
2195
|
-
return '"' +
|
|
2293
|
+
case Us:
|
|
2294
|
+
return "|" + xl(a, e.indent) + Hl(wl(a, i));
|
|
2295
|
+
case qs:
|
|
2296
|
+
return ">" + xl(a, e.indent) + Hl(wl(io(a, o), i));
|
|
2297
|
+
case Ke:
|
|
2298
|
+
return '"' + no(a) + '"';
|
|
2196
2299
|
default:
|
|
2197
2300
|
throw new fe("impossible error: invalid scalar style");
|
|
2198
2301
|
}
|
|
2199
2302
|
}();
|
|
2200
2303
|
}
|
|
2201
|
-
function
|
|
2202
|
-
var t =
|
|
2304
|
+
function xl(e, a) {
|
|
2305
|
+
var t = Fs(e) ? String(a) : "", l = e[e.length - 1] === `
|
|
2203
2306
|
`, s = l && (e[e.length - 2] === `
|
|
2204
2307
|
` || e === `
|
|
2205
2308
|
`), i = s ? "+" : l ? "" : "-";
|
|
2206
2309
|
return t + i + `
|
|
2207
2310
|
`;
|
|
2208
2311
|
}
|
|
2209
|
-
function
|
|
2312
|
+
function Hl(e) {
|
|
2210
2313
|
return e[e.length - 1] === `
|
|
2211
2314
|
` ? e.slice(0, -1) : e;
|
|
2212
2315
|
}
|
|
2213
|
-
function
|
|
2316
|
+
function io(e, a) {
|
|
2214
2317
|
for (var t = /(\n+)([^\n]*)/g, l = function() {
|
|
2215
2318
|
var u = e.indexOf(`
|
|
2216
2319
|
`);
|
|
2217
|
-
return u = u !== -1 ? u : e.length, t.lastIndex = u,
|
|
2320
|
+
return u = u !== -1 ? u : e.length, t.lastIndex = u, Tl(e.slice(0, u), a);
|
|
2218
2321
|
}(), s = e[0] === `
|
|
2219
2322
|
` || e[0] === " ", i, o; o = t.exec(e); ) {
|
|
2220
2323
|
var d = o[1], n = o[2];
|
|
2221
2324
|
i = n[0] === " ", l += d + (!s && !i && n !== "" ? `
|
|
2222
|
-
` : "") +
|
|
2325
|
+
` : "") + Tl(n, a), s = i;
|
|
2223
2326
|
}
|
|
2224
2327
|
return l;
|
|
2225
2328
|
}
|
|
2226
|
-
function
|
|
2329
|
+
function Tl(e, a) {
|
|
2227
2330
|
if (e === "" || e[0] === " ")
|
|
2228
2331
|
return e;
|
|
2229
2332
|
for (var t = / [^ ]/g, l, s = 0, i, o = 0, d = 0, n = ""; l = t.exec(e); )
|
|
@@ -2233,30 +2336,30 @@ function Hl(e, a) {
|
|
|
2233
2336
|
`, e.length - s > a && o > s ? n += e.slice(s, o) + `
|
|
2234
2337
|
` + e.slice(o + 1) : n += e.slice(s), n.slice(1);
|
|
2235
2338
|
}
|
|
2236
|
-
function
|
|
2339
|
+
function no(e) {
|
|
2237
2340
|
for (var a = "", t = 0, l, s = 0; s < e.length; t >= 65536 ? s += 2 : s++)
|
|
2238
|
-
t =
|
|
2341
|
+
t = ze(e, s), l = pe[t], !l && Qe(t) ? (a += e[s], t >= 65536 && (a += e[s + 1])) : a += l || Zn(t);
|
|
2239
2342
|
return a;
|
|
2240
2343
|
}
|
|
2241
|
-
function
|
|
2344
|
+
function oo(e, a, t) {
|
|
2242
2345
|
var l = "", s = e.tag, i, o, d;
|
|
2243
2346
|
for (i = 0, o = t.length; i < o; i += 1)
|
|
2244
2347
|
d = t[i], e.replacer && (d = e.replacer.call(t, String(i), d)), (we(e, a, d, !1, !1) || typeof d > "u" && we(e, a, null, !1, !1)) && (l !== "" && (l += "," + (e.condenseFlow ? "" : " ")), l += e.dump);
|
|
2245
2348
|
e.tag = s, e.dump = "[" + l + "]";
|
|
2246
2349
|
}
|
|
2247
|
-
function
|
|
2350
|
+
function Al(e, a, t, l) {
|
|
2248
2351
|
var s = "", i = e.tag, o, d, n;
|
|
2249
2352
|
for (o = 0, d = t.length; o < d; o += 1)
|
|
2250
2353
|
n = t[o], e.replacer && (n = e.replacer.call(t, String(o), n)), (we(e, a + 1, n, !0, !0, !1, !0) || typeof n > "u" && we(e, a + 1, null, !0, !0, !1, !0)) && ((!l || s !== "") && (s += St(e, a)), e.dump && We === e.dump.charCodeAt(0) ? s += "-" : s += "- ", s += e.dump);
|
|
2251
2354
|
e.tag = i, e.dump = s || "[]";
|
|
2252
2355
|
}
|
|
2253
|
-
function
|
|
2356
|
+
function uo(e, a, t) {
|
|
2254
2357
|
var l = "", s = e.tag, i = Object.keys(t), o, d, n, u, f;
|
|
2255
2358
|
for (o = 0, d = i.length; o < d; o += 1)
|
|
2256
2359
|
f = "", l !== "" && (f += ", "), e.condenseFlow && (f += '"'), n = i[o], u = t[n], e.replacer && (u = e.replacer.call(t, n, u)), we(e, a, n, !1, !1) && (e.dump.length > 1024 && (f += "? "), f += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), we(e, a, u, !1, !1) && (f += e.dump, l += f));
|
|
2257
2360
|
e.tag = s, e.dump = "{" + l + "}";
|
|
2258
2361
|
}
|
|
2259
|
-
function
|
|
2362
|
+
function co(e, a, t, l) {
|
|
2260
2363
|
var s = "", i = e.tag, o = Object.keys(t), d, n, u, f, h, r;
|
|
2261
2364
|
if (e.sortKeys === !0)
|
|
2262
2365
|
o.sort();
|
|
@@ -2268,14 +2371,14 @@ function eo(e, a, t, l) {
|
|
|
2268
2371
|
r = "", (!l || s !== "") && (r += St(e, a)), u = o[d], f = t[u], e.replacer && (f = e.replacer.call(t, u, f)), we(e, a + 1, u, !0, !0, !0) && (h = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, h && (e.dump && We === e.dump.charCodeAt(0) ? r += "?" : r += "? "), r += e.dump, h && (r += St(e, a)), we(e, a + 1, f, !0, h) && (e.dump && We === e.dump.charCodeAt(0) ? r += ":" : r += ": ", r += e.dump, s += r));
|
|
2269
2372
|
e.tag = i, e.dump = s || "{}";
|
|
2270
2373
|
}
|
|
2271
|
-
function
|
|
2374
|
+
function Fl(e, a, t) {
|
|
2272
2375
|
var l, s, i, o, d, n;
|
|
2273
2376
|
for (s = t ? e.explicitTypes : e.implicitTypes, i = 0, o = s.length; i < o; i += 1)
|
|
2274
2377
|
if (d = s[i], (d.instanceOf || d.predicate) && (!d.instanceOf || typeof a == "object" && a instanceof d.instanceOf) && (!d.predicate || d.predicate(a))) {
|
|
2275
2378
|
if (t ? d.multi && d.representName ? e.tag = d.representName(a) : e.tag = d.tag : e.tag = "?", d.represent) {
|
|
2276
|
-
if (n = e.styleMap[d.tag] || d.defaultStyle,
|
|
2379
|
+
if (n = e.styleMap[d.tag] || d.defaultStyle, ws.call(d.represent) === "[object Function]")
|
|
2277
2380
|
l = d.represent(a, n);
|
|
2278
|
-
else if (
|
|
2381
|
+
else if (Ss.call(d.represent, n))
|
|
2279
2382
|
l = d.represent[n](a, n);
|
|
2280
2383
|
else
|
|
2281
2384
|
throw new fe("!<" + d.tag + '> tag resolver accepts not "' + n + '" style');
|
|
@@ -2286,19 +2389,19 @@ function Al(e, a, t) {
|
|
|
2286
2389
|
return !1;
|
|
2287
2390
|
}
|
|
2288
2391
|
function we(e, a, t, l, s, i, o) {
|
|
2289
|
-
e.tag = null, e.dump = t,
|
|
2290
|
-
var d =
|
|
2392
|
+
e.tag = null, e.dump = t, Fl(e, t, !1) || Fl(e, t, !0);
|
|
2393
|
+
var d = ws.call(e.dump), n = l, u;
|
|
2291
2394
|
l && (l = e.flowLevel < 0 || e.flowLevel > a);
|
|
2292
2395
|
var f = d === "[object Object]" || d === "[object Array]", h, r;
|
|
2293
2396
|
if (f && (h = e.duplicates.indexOf(t), r = h !== -1), (e.tag !== null && e.tag !== "?" || r || e.indent !== 2 && a > 0) && (s = !1), r && e.usedDuplicates[h])
|
|
2294
2397
|
e.dump = "*ref_" + h;
|
|
2295
2398
|
else {
|
|
2296
2399
|
if (f && r && !e.usedDuplicates[h] && (e.usedDuplicates[h] = !0), d === "[object Object]")
|
|
2297
|
-
l && Object.keys(e.dump).length !== 0 ? (
|
|
2400
|
+
l && Object.keys(e.dump).length !== 0 ? (co(e, a, e.dump, s), r && (e.dump = "&ref_" + h + e.dump)) : (uo(e, a, e.dump), r && (e.dump = "&ref_" + h + " " + e.dump));
|
|
2298
2401
|
else if (d === "[object Array]")
|
|
2299
|
-
l && e.dump.length !== 0 ? (e.noArrayIndent && !o && a > 0 ?
|
|
2402
|
+
l && e.dump.length !== 0 ? (e.noArrayIndent && !o && a > 0 ? Al(e, a - 1, e.dump, s) : Al(e, a, e.dump, s), r && (e.dump = "&ref_" + h + e.dump)) : (oo(e, a, e.dump), r && (e.dump = "&ref_" + h + " " + e.dump));
|
|
2300
2403
|
else if (d === "[object String]")
|
|
2301
|
-
e.tag !== "?" &&
|
|
2404
|
+
e.tag !== "?" && ro(e, e.dump, a, i, n);
|
|
2302
2405
|
else {
|
|
2303
2406
|
if (d === "[object Undefined]" || e.skipInvalid)
|
|
2304
2407
|
return !1;
|
|
@@ -2310,7 +2413,7 @@ function we(e, a, t, l, s, i, o) {
|
|
|
2310
2413
|
}
|
|
2311
2414
|
return !0;
|
|
2312
2415
|
}
|
|
2313
|
-
function
|
|
2416
|
+
function ho(e, a) {
|
|
2314
2417
|
var t = [], l = [], s, i;
|
|
2315
2418
|
for (xt(e, t, l), s = 0, i = l.length; s < i; s += 1)
|
|
2316
2419
|
a.duplicates.push(t[l[s]]);
|
|
@@ -2328,65 +2431,65 @@ function xt(e, a, t) {
|
|
|
2328
2431
|
for (l = Object.keys(e), s = 0, i = l.length; s < i; s += 1)
|
|
2329
2432
|
xt(e[l[s]], a, t);
|
|
2330
2433
|
}
|
|
2331
|
-
function
|
|
2434
|
+
function po(e, a) {
|
|
2332
2435
|
a = a || {};
|
|
2333
|
-
var t = new
|
|
2334
|
-
t.noRefs ||
|
|
2436
|
+
var t = new eo(a);
|
|
2437
|
+
t.noRefs || ho(e, t);
|
|
2335
2438
|
var l = e;
|
|
2336
2439
|
return t.replacer && (l = t.replacer.call({ "": l }, "", l)), we(t, 0, l, !0, !0) ? t.dump + `
|
|
2337
2440
|
` : "";
|
|
2338
2441
|
}
|
|
2339
|
-
var
|
|
2340
|
-
dump:
|
|
2442
|
+
var fo = po, mo = {
|
|
2443
|
+
dump: fo
|
|
2341
2444
|
};
|
|
2342
2445
|
function Rt(e, a) {
|
|
2343
2446
|
return function() {
|
|
2344
2447
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + a + " instead, which is now safe by default.");
|
|
2345
2448
|
};
|
|
2346
2449
|
}
|
|
2347
|
-
var
|
|
2348
|
-
binary:
|
|
2349
|
-
float:
|
|
2350
|
-
map:
|
|
2351
|
-
null:
|
|
2352
|
-
pairs:
|
|
2353
|
-
set:
|
|
2354
|
-
timestamp:
|
|
2355
|
-
bool:
|
|
2356
|
-
int:
|
|
2357
|
-
merge:
|
|
2358
|
-
omap:
|
|
2359
|
-
seq:
|
|
2360
|
-
str:
|
|
2361
|
-
},
|
|
2362
|
-
Type:
|
|
2363
|
-
Schema:
|
|
2364
|
-
FAILSAFE_SCHEMA:
|
|
2365
|
-
JSON_SCHEMA:
|
|
2366
|
-
CORE_SCHEMA:
|
|
2367
|
-
DEFAULT_SCHEMA:
|
|
2368
|
-
load:
|
|
2369
|
-
loadAll:
|
|
2370
|
-
dump:
|
|
2371
|
-
YAMLException:
|
|
2372
|
-
types:
|
|
2373
|
-
safeLoad:
|
|
2374
|
-
safeLoadAll:
|
|
2375
|
-
safeDump:
|
|
2450
|
+
var go = he, yo = Yl, vo = Xl, bo = ss, ko = rs, Co = Et, _o = _s.load, wo = _s.loadAll, So = mo.dump, Io = fe, xo = {
|
|
2451
|
+
binary: cs,
|
|
2452
|
+
float: ls,
|
|
2453
|
+
map: Zl,
|
|
2454
|
+
null: es,
|
|
2455
|
+
pairs: hs,
|
|
2456
|
+
set: ps,
|
|
2457
|
+
timestamp: os,
|
|
2458
|
+
bool: ts,
|
|
2459
|
+
int: as,
|
|
2460
|
+
merge: us,
|
|
2461
|
+
omap: ds,
|
|
2462
|
+
seq: Gl,
|
|
2463
|
+
str: Ql
|
|
2464
|
+
}, Ho = Rt("safeLoad", "load"), To = Rt("safeLoadAll", "loadAll"), Ao = Rt("safeDump", "dump"), Fo = {
|
|
2465
|
+
Type: go,
|
|
2466
|
+
Schema: yo,
|
|
2467
|
+
FAILSAFE_SCHEMA: vo,
|
|
2468
|
+
JSON_SCHEMA: bo,
|
|
2469
|
+
CORE_SCHEMA: ko,
|
|
2470
|
+
DEFAULT_SCHEMA: Co,
|
|
2471
|
+
load: _o,
|
|
2472
|
+
loadAll: wo,
|
|
2473
|
+
dump: So,
|
|
2474
|
+
YAMLException: Io,
|
|
2475
|
+
types: xo,
|
|
2476
|
+
safeLoad: Ho,
|
|
2477
|
+
safeLoadAll: To,
|
|
2478
|
+
safeDump: Ao
|
|
2376
2479
|
};
|
|
2377
|
-
const
|
|
2480
|
+
const Oo = {
|
|
2378
2481
|
key: 0,
|
|
2379
2482
|
class: "config-card-display-form"
|
|
2380
|
-
},
|
|
2483
|
+
}, Uo = ["data-testid"], qo = {
|
|
2381
2484
|
key: 0,
|
|
2382
2485
|
class: "config-card-prop-section-title"
|
|
2383
|
-
},
|
|
2486
|
+
}, $o = {
|
|
2384
2487
|
key: 1,
|
|
2385
2488
|
class: "config-card-display-json"
|
|
2386
|
-
},
|
|
2489
|
+
}, Mo = {
|
|
2387
2490
|
key: 2,
|
|
2388
2491
|
class: "config-card-display-yaml"
|
|
2389
|
-
},
|
|
2492
|
+
}, No = /* @__PURE__ */ le({
|
|
2390
2493
|
__name: "ConfigCardDisplay",
|
|
2391
2494
|
props: {
|
|
2392
2495
|
propertyCollections: {
|
|
@@ -2414,18 +2517,18 @@ const Co = {
|
|
|
2414
2517
|
setup(e) {
|
|
2415
2518
|
const a = e, t = ct(), { i18n: { t: l } } = de.useI18n(), s = (d) => !!(d.tooltip || t[`${d.key}-label-tooltip`]), i = E(""), o = E("");
|
|
2416
2519
|
return ge(() => a.format, (d) => {
|
|
2417
|
-
d === "json" ? i.value = JSON.stringify(a.record, null, 2) : d === "yaml" && (o.value =
|
|
2520
|
+
d === "json" ? i.value = JSON.stringify(a.record, null, 2) : d === "yaml" && (o.value = Fo.dump(a.record));
|
|
2418
2521
|
}, { immediate: !0 }), (d, n) => {
|
|
2419
|
-
const u =
|
|
2522
|
+
const u = N("KCodeBlock");
|
|
2420
2523
|
return b(), P(ce, null, [
|
|
2421
|
-
e.format === "structured" ? (b(), P("div",
|
|
2524
|
+
e.format === "structured" ? (b(), P("div", Oo, [
|
|
2422
2525
|
(b(!0), P(ce, null, me(e.propListTypes, (f) => (b(), P("div", {
|
|
2423
2526
|
key: `config-card-details-${f}-props`,
|
|
2424
2527
|
class: Ae(`config-card-details-${f}-props`),
|
|
2425
2528
|
"data-testid": `config-card-details-${f}-props`
|
|
2426
2529
|
}, [
|
|
2427
|
-
f !== "basic" ? (b(), P("div",
|
|
2428
|
-
(b(!0), P(ce, null, me(e.propertyCollections[f], (h) => (b(),
|
|
2530
|
+
f !== "basic" ? (b(), P("div", qo, C(f === "advanced" ? c(l)("baseConfigCard.sections.advanced") : c(l)("baseConfigCard.sections.plugin")), 1)) : Q("", !0),
|
|
2531
|
+
(b(!0), P(ce, null, me(e.propertyCollections[f], (h) => (b(), L(jt, {
|
|
2429
2532
|
key: h.key,
|
|
2430
2533
|
item: h
|
|
2431
2534
|
}, He({
|
|
@@ -2448,9 +2551,9 @@ const Co = {
|
|
|
2448
2551
|
key: "0"
|
|
2449
2552
|
} : void 0
|
|
2450
2553
|
]), 1032, ["item"]))), 128))
|
|
2451
|
-
], 10,
|
|
2554
|
+
], 10, Uo))), 128))
|
|
2452
2555
|
])) : Q("", !0),
|
|
2453
|
-
e.format === "json" ? (b(), P("div",
|
|
2556
|
+
e.format === "json" ? (b(), P("div", $o, [
|
|
2454
2557
|
y(u, {
|
|
2455
2558
|
id: "config-card-codeblock",
|
|
2456
2559
|
code: i.value,
|
|
@@ -2458,7 +2561,7 @@ const Co = {
|
|
|
2458
2561
|
theme: "dark"
|
|
2459
2562
|
}, null, 8, ["code"])
|
|
2460
2563
|
])) : Q("", !0),
|
|
2461
|
-
e.format === "yaml" ? (b(), P("div",
|
|
2564
|
+
e.format === "yaml" ? (b(), P("div", Mo, [
|
|
2462
2565
|
y(u, {
|
|
2463
2566
|
id: "config-card-codeblock",
|
|
2464
2567
|
code: o.value,
|
|
@@ -2469,18 +2572,18 @@ const Co = {
|
|
|
2469
2572
|
], 64);
|
|
2470
2573
|
};
|
|
2471
2574
|
}
|
|
2472
|
-
}),
|
|
2575
|
+
}), Ko = /* @__PURE__ */ be(No, [["__scopeId", "data-v-6c45e9e4"]]), Ol = "24px", jo = (e, a) => {
|
|
2473
2576
|
const t = e.__vccOpts || e;
|
|
2474
2577
|
for (const [l, s] of a)
|
|
2475
2578
|
t[l] = s;
|
|
2476
2579
|
return t;
|
|
2477
|
-
},
|
|
2580
|
+
}, Po = (e) => (jl("data-v-dd88a2bb"), e = e(), Pl(), e), Eo = ["aria-hidden"], Bo = {
|
|
2478
2581
|
key: 0,
|
|
2479
2582
|
"data-testid": "kui-icon-svg-title"
|
|
2480
|
-
},
|
|
2583
|
+
}, Vo = /* @__PURE__ */ Po(() => /* @__PURE__ */ x("path", {
|
|
2481
2584
|
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",
|
|
2482
2585
|
fill: "currentColor"
|
|
2483
|
-
}, null, -1)),
|
|
2586
|
+
}, null, -1)), Lo = /* @__PURE__ */ le({
|
|
2484
2587
|
__name: "BookIcon",
|
|
2485
2588
|
props: {
|
|
2486
2589
|
/** The accessibility text provided to screen readers */
|
|
@@ -2549,11 +2652,11 @@ const Co = {
|
|
|
2549
2652
|
lineHeight: "0",
|
|
2550
2653
|
width: t.value
|
|
2551
2654
|
}));
|
|
2552
|
-
return (s, i) => (b(),
|
|
2655
|
+
return (s, i) => (b(), L(Ve(e.as), {
|
|
2553
2656
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2554
2657
|
class: "kui-icon book-icon",
|
|
2555
2658
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2556
|
-
style:
|
|
2659
|
+
style: Kl(l.value)
|
|
2557
2660
|
}, {
|
|
2558
2661
|
default: p(() => [
|
|
2559
2662
|
(b(), P("svg", {
|
|
@@ -2566,23 +2669,23 @@ const Co = {
|
|
|
2566
2669
|
width: "100%",
|
|
2567
2670
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2568
2671
|
}, [
|
|
2569
|
-
e.title ? (b(), P("title",
|
|
2570
|
-
|
|
2571
|
-
], 8,
|
|
2672
|
+
e.title ? (b(), P("title", Bo, C(e.title), 1)) : Q("", !0),
|
|
2673
|
+
Vo
|
|
2674
|
+
], 8, Eo))
|
|
2572
2675
|
]),
|
|
2573
2676
|
_: 1
|
|
2574
2677
|
}, 8, ["aria-hidden", "style"]));
|
|
2575
2678
|
}
|
|
2576
|
-
}),
|
|
2679
|
+
}), Ro = /* @__PURE__ */ jo(Lo, [["__scopeId", "data-v-dd88a2bb"]]), Do = { "data-testid": "config-card-title" }, zo = { class: "config-card-actions" }, Jo = ["href"], Wo = {
|
|
2577
2680
|
key: 2,
|
|
2578
2681
|
class: "config-card-details-section"
|
|
2579
|
-
},
|
|
2682
|
+
}, Yo = {
|
|
2580
2683
|
key: 3,
|
|
2581
2684
|
class: "config-card-details-section"
|
|
2582
|
-
},
|
|
2685
|
+
}, Qo = ["data-testid"], Go = {
|
|
2583
2686
|
key: 0,
|
|
2584
2687
|
class: "config-card-prop-section-title"
|
|
2585
|
-
},
|
|
2688
|
+
}, Zo = /* @__PURE__ */ le({
|
|
2586
2689
|
__name: "EntityBaseConfigCard",
|
|
2587
2690
|
props: {
|
|
2588
2691
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2713,20 +2816,20 @@ const Co = {
|
|
|
2713
2816
|
var H, U, S;
|
|
2714
2817
|
if (!g.value)
|
|
2715
2818
|
return [];
|
|
2716
|
-
const
|
|
2819
|
+
const M = [], j = Object.keys(g.value).length;
|
|
2717
2820
|
for (const Z in g.value) {
|
|
2718
|
-
const
|
|
2719
|
-
let X =
|
|
2720
|
-
(z || z === 0) && (X = z === -1 ?
|
|
2821
|
+
const V = (U = (H = l.configSchema) == null ? void 0 : H[Z]) == null ? void 0 : U.order, z = (S = r[Z]) == null ? void 0 : S.order;
|
|
2822
|
+
let X = j;
|
|
2823
|
+
(z || z === 0) && (X = z === -1 ? j + 1 : z), V && (X = V === -1 ? j + 1 : V), M.push([Z, X]);
|
|
2721
2824
|
}
|
|
2722
|
-
return
|
|
2723
|
-
return Z[1] -
|
|
2724
|
-
}),
|
|
2725
|
-
var
|
|
2726
|
-
const X = Z[0],
|
|
2825
|
+
return M.sort(function(Z, V) {
|
|
2826
|
+
return Z[1] - V[1];
|
|
2827
|
+
}), M.map((Z) => {
|
|
2828
|
+
var V, z;
|
|
2829
|
+
const X = Z[0], K = (V = g.value) == null ? void 0 : V[X], D = ((z = l.configSchema) == null ? void 0 : z[X]) || {}, Y = r[X];
|
|
2727
2830
|
return {
|
|
2728
2831
|
key: X,
|
|
2729
|
-
value:
|
|
2832
|
+
value: K,
|
|
2730
2833
|
hidden: D.hidden || !1,
|
|
2731
2834
|
type: D.type ?? ((Y == null ? void 0 : Y.type) || se.Text),
|
|
2732
2835
|
label: D.label ?? ((Y == null ? void 0 : Y.label) || d(X)),
|
|
@@ -2738,33 +2841,33 @@ const Co = {
|
|
|
2738
2841
|
var H, U;
|
|
2739
2842
|
if (!g.value || !l.pluginConfigKey)
|
|
2740
2843
|
return [];
|
|
2741
|
-
const S = g.value[l.pluginConfigKey] || {},
|
|
2844
|
+
const S = g.value[l.pluginConfigKey] || {}, M = Object.keys(S).length, j = [];
|
|
2742
2845
|
for (const Z in S) {
|
|
2743
|
-
const
|
|
2744
|
-
let X = z != null && z !== "" ?
|
|
2745
|
-
|
|
2846
|
+
const V = (U = (H = l.pluginConfigSchema) == null ? void 0 : H[Z]) == null ? void 0 : U.order, z = S[Z];
|
|
2847
|
+
let X = z != null && z !== "" ? M - 1 : M;
|
|
2848
|
+
V && (X = V === -1 ? M + 1 : V), j.push([Z, X]);
|
|
2746
2849
|
}
|
|
2747
|
-
return
|
|
2748
|
-
return Z[1] -
|
|
2749
|
-
}),
|
|
2750
|
-
var
|
|
2751
|
-
const z = Z[0], X = S[z],
|
|
2850
|
+
return j.sort(function(Z, V) {
|
|
2851
|
+
return Z[1] - V[1];
|
|
2852
|
+
}), j.map((Z) => {
|
|
2853
|
+
var V;
|
|
2854
|
+
const z = Z[0], X = S[z], K = ((V = l.pluginConfigSchema) == null ? void 0 : V[z]) || {};
|
|
2752
2855
|
return {
|
|
2753
2856
|
key: z,
|
|
2754
2857
|
value: X,
|
|
2755
|
-
hidden:
|
|
2756
|
-
type:
|
|
2757
|
-
label:
|
|
2758
|
-
tooltip:
|
|
2858
|
+
hidden: K.hidden || !1,
|
|
2859
|
+
type: K.type ?? se.Text,
|
|
2860
|
+
label: K.label ?? d(z),
|
|
2861
|
+
tooltip: K.tooltip ?? void 0,
|
|
2759
2862
|
section: ie.Plugin
|
|
2760
2863
|
};
|
|
2761
2864
|
}).filter((Z) => !Z.hidden);
|
|
2762
2865
|
}), A = F(() => {
|
|
2763
|
-
var H, U, S,
|
|
2866
|
+
var H, U, S, M;
|
|
2764
2867
|
return {
|
|
2765
|
-
basic: (H = O.value) == null ? void 0 : H.filter((
|
|
2766
|
-
advanced: (U = O.value) == null ? void 0 : U.filter((
|
|
2767
|
-
plugin: (
|
|
2868
|
+
basic: (H = O.value) == null ? void 0 : H.filter((j) => j.section === ie.Basic),
|
|
2869
|
+
advanced: (U = O.value) == null ? void 0 : U.filter((j) => j.section === ie.Advanced),
|
|
2870
|
+
plugin: (M = I.value) == null ? void 0 : M.concat((S = O.value) == null ? void 0 : S.filter((j) => j.section === ie.Plugin))
|
|
2768
2871
|
};
|
|
2769
2872
|
}), q = F(() => {
|
|
2770
2873
|
const H = [];
|
|
@@ -2799,12 +2902,12 @@ const Co = {
|
|
|
2799
2902
|
k.value = !1;
|
|
2800
2903
|
}
|
|
2801
2904
|
}), (H, U) => {
|
|
2802
|
-
const S =
|
|
2803
|
-
return b(),
|
|
2905
|
+
const S = N("KLabel"), M = N("KSelect"), j = N("KButton"), Z = N("KClipboardProvider"), V = N("KSkeleton"), z = N("KEmptyState"), X = N("KCard");
|
|
2906
|
+
return b(), L(X, { class: "kong-ui-entity-base-config-card" }, He({
|
|
2804
2907
|
actions: p(() => [
|
|
2805
|
-
x("div",
|
|
2908
|
+
x("div", zo, [
|
|
2806
2909
|
ae(H.$slots, "actions", {}, void 0, !0),
|
|
2807
|
-
e.config.jsonYamlEnabled ? (b(),
|
|
2910
|
+
e.config.jsonYamlEnabled ? (b(), L(S, {
|
|
2808
2911
|
key: 0,
|
|
2809
2912
|
class: "config-format-select-label",
|
|
2810
2913
|
"data-testid": "config-format-select-label"
|
|
@@ -2814,16 +2917,16 @@ const Co = {
|
|
|
2814
2917
|
]),
|
|
2815
2918
|
_: 1
|
|
2816
2919
|
})) : Q("", !0),
|
|
2817
|
-
e.config.jsonYamlEnabled ? (b(),
|
|
2920
|
+
e.config.jsonYamlEnabled ? (b(), L(M, {
|
|
2818
2921
|
key: 1,
|
|
2819
2922
|
appearance: "select",
|
|
2820
2923
|
"data-testid": "select-config-format",
|
|
2821
2924
|
items: u,
|
|
2822
2925
|
onChange: h
|
|
2823
2926
|
})) : Q("", !0),
|
|
2824
|
-
l.config.jsonYamlEnabled && e.configCardDoc ? (b(),
|
|
2927
|
+
l.config.jsonYamlEnabled && e.configCardDoc ? (b(), L(j, {
|
|
2825
2928
|
key: 2,
|
|
2826
|
-
appearance: "
|
|
2929
|
+
appearance: "tertiary",
|
|
2827
2930
|
class: "book-icon",
|
|
2828
2931
|
"data-testid": "book-icon"
|
|
2829
2932
|
}, {
|
|
@@ -2833,18 +2936,18 @@ const Co = {
|
|
|
2833
2936
|
rel: "noopener",
|
|
2834
2937
|
target: "_blank"
|
|
2835
2938
|
}, [
|
|
2836
|
-
y(c(
|
|
2837
|
-
], 8,
|
|
2939
|
+
y(c(Ro), { size: c(Qr) }, null, 8, ["size"])
|
|
2940
|
+
], 8, Jo)
|
|
2838
2941
|
]),
|
|
2839
2942
|
_: 1
|
|
2840
2943
|
})) : Q("", !0),
|
|
2841
|
-
e.config.jsonYamlEnabled ? Q("", !0) : (b(),
|
|
2842
|
-
default: p(({ copyToClipboard:
|
|
2843
|
-
!k.value && !w.value ? (b(),
|
|
2944
|
+
e.config.jsonYamlEnabled ? Q("", !0) : (b(), L(Z, { key: 3 }, {
|
|
2945
|
+
default: p(({ copyToClipboard: K }) => [
|
|
2946
|
+
!k.value && !w.value ? (b(), L(j, {
|
|
2844
2947
|
key: 0,
|
|
2845
|
-
appearance: "
|
|
2948
|
+
appearance: "tertiary",
|
|
2846
2949
|
"data-testid": "json-copy-button",
|
|
2847
|
-
onClick: (D) => B(
|
|
2950
|
+
onClick: (D) => B(K)
|
|
2848
2951
|
}, {
|
|
2849
2952
|
default: p(() => [
|
|
2850
2953
|
G(C(c(i)("baseConfigCard.actions.copy")), 1)
|
|
@@ -2857,12 +2960,12 @@ const Co = {
|
|
|
2857
2960
|
])
|
|
2858
2961
|
]),
|
|
2859
2962
|
body: p(() => [
|
|
2860
|
-
k.value ? (b(),
|
|
2963
|
+
k.value ? (b(), L(V, {
|
|
2861
2964
|
key: 0,
|
|
2862
2965
|
"data-testid": "config-card-loader",
|
|
2863
2966
|
"table-columns": 2,
|
|
2864
2967
|
type: "table"
|
|
2865
|
-
})) : w.value ? (b(),
|
|
2968
|
+
})) : w.value ? (b(), L(z, {
|
|
2866
2969
|
key: 1,
|
|
2867
2970
|
"data-testid": "config-card-fetch-error",
|
|
2868
2971
|
"is-error": ""
|
|
@@ -2872,31 +2975,31 @@ const Co = {
|
|
|
2872
2975
|
]),
|
|
2873
2976
|
_: 1
|
|
2874
2977
|
})) : Q("", !0),
|
|
2875
|
-
e.config.jsonYamlEnabled ? (b(), P("div",
|
|
2876
|
-
y(
|
|
2978
|
+
e.config.jsonYamlEnabled ? (b(), P("div", Wo, [
|
|
2979
|
+
y(Ko, {
|
|
2877
2980
|
format: f.value,
|
|
2878
2981
|
"prop-list-types": q.value,
|
|
2879
2982
|
"property-collections": A.value,
|
|
2880
2983
|
record: g.value
|
|
2881
2984
|
}, He({ _: 2 }, [
|
|
2882
|
-
me(Object.keys(H.$slots), (
|
|
2883
|
-
name:
|
|
2985
|
+
me(Object.keys(H.$slots), (K) => ({
|
|
2986
|
+
name: K,
|
|
2884
2987
|
fn: p(({ row: D, rowValue: Y }) => [
|
|
2885
|
-
ae(H.$slots,
|
|
2988
|
+
ae(H.$slots, K, {
|
|
2886
2989
|
row: D,
|
|
2887
2990
|
rowValue: Y
|
|
2888
2991
|
}, void 0, !0)
|
|
2889
2992
|
])
|
|
2890
2993
|
}))
|
|
2891
2994
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
2892
|
-
])) : (b(), P("div",
|
|
2893
|
-
(b(!0), P(ce, null, me(q.value, (
|
|
2894
|
-
key: `config-card-details-${
|
|
2895
|
-
class: Ae(`config-card-details-${
|
|
2896
|
-
"data-testid": `config-card-details-${
|
|
2995
|
+
])) : (b(), P("div", Yo, [
|
|
2996
|
+
(b(!0), P(ce, null, me(q.value, (K) => (b(), P("div", {
|
|
2997
|
+
key: `config-card-details-${K}-props`,
|
|
2998
|
+
class: Ae(`config-card-details-${K}-props`),
|
|
2999
|
+
"data-testid": `config-card-details-${K}-props`
|
|
2897
3000
|
}, [
|
|
2898
|
-
|
|
2899
|
-
(b(!0), P(ce, null, me(A.value[
|
|
3001
|
+
K !== "basic" ? (b(), P("div", Go, C(K === "advanced" ? c(i)("baseConfigCard.sections.advanced") : c(i)("baseConfigCard.sections.plugin")), 1)) : Q("", !0),
|
|
3002
|
+
(b(!0), P(ce, null, me(A.value[K], (D) => (b(), L(jt, {
|
|
2900
3003
|
key: D.key,
|
|
2901
3004
|
item: D
|
|
2902
3005
|
}, He({
|
|
@@ -2919,7 +3022,7 @@ const Co = {
|
|
|
2919
3022
|
key: "0"
|
|
2920
3023
|
} : void 0
|
|
2921
3024
|
]), 1032, ["item"]))), 128))
|
|
2922
|
-
], 10,
|
|
3025
|
+
], 10, Qo))), 128))
|
|
2923
3026
|
]))
|
|
2924
3027
|
]),
|
|
2925
3028
|
_: 2
|
|
@@ -2927,7 +3030,7 @@ const Co = {
|
|
|
2927
3030
|
e.hideTitle ? void 0 : {
|
|
2928
3031
|
name: "title",
|
|
2929
3032
|
fn: p(() => [
|
|
2930
|
-
x("div",
|
|
3033
|
+
x("div", Do, [
|
|
2931
3034
|
ae(H.$slots, "title", {}, () => [
|
|
2932
3035
|
G(C(c(i)("baseConfigCard.title")), 1)
|
|
2933
3036
|
], !0)
|
|
@@ -2938,10 +3041,10 @@ const Co = {
|
|
|
2938
3041
|
]), 1024);
|
|
2939
3042
|
};
|
|
2940
3043
|
}
|
|
2941
|
-
}),
|
|
3044
|
+
}), Xo = /* @__PURE__ */ be(Zo, [["__scopeId", "data-v-24515123"]]), eu = ["onReset", "onSubmit"], tu = {
|
|
2942
3045
|
class: "form-actions",
|
|
2943
3046
|
"data-testid": "form-actions"
|
|
2944
|
-
},
|
|
3047
|
+
}, au = /* @__PURE__ */ le({
|
|
2945
3048
|
__name: "EntityBaseForm",
|
|
2946
3049
|
props: {
|
|
2947
3050
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3021,13 +3124,13 @@ const Co = {
|
|
|
3021
3124
|
n.value = !1;
|
|
3022
3125
|
}
|
|
3023
3126
|
}), (g, O) => {
|
|
3024
|
-
const I =
|
|
3025
|
-
return b(),
|
|
3127
|
+
const I = N("KSkeleton"), A = N("KEmptyState"), q = N("KAlert"), $ = N("KButton"), J = N("KCard");
|
|
3128
|
+
return b(), L(J, { class: "kong-ui-entity-base-form" }, {
|
|
3026
3129
|
body: p(() => [
|
|
3027
|
-
n.value ? (b(),
|
|
3130
|
+
n.value ? (b(), L(I, {
|
|
3028
3131
|
key: 0,
|
|
3029
3132
|
type: "form"
|
|
3030
|
-
})) : u.value ? (b(),
|
|
3133
|
+
})) : u.value ? (b(), L(A, {
|
|
3031
3134
|
key: 1,
|
|
3032
3135
|
"cta-text": c(i)("baseForm.actions.back"),
|
|
3033
3136
|
"data-testid": "form-fetch-error",
|
|
@@ -3045,16 +3148,16 @@ const Co = {
|
|
|
3045
3148
|
onSubmit: kt(m, ["prevent"])
|
|
3046
3149
|
}, [
|
|
3047
3150
|
ae(g.$slots, "default", {}, void 0, !0),
|
|
3048
|
-
e.errorMessage ? (b(),
|
|
3151
|
+
e.errorMessage ? (b(), L(q, {
|
|
3049
3152
|
key: 0,
|
|
3050
3153
|
"alert-message": e.errorMessage,
|
|
3051
3154
|
appearance: "danger",
|
|
3052
3155
|
"data-testid": "form-error"
|
|
3053
3156
|
}, null, 8, ["alert-message"])) : Q("", !0),
|
|
3054
|
-
x("div",
|
|
3157
|
+
x("div", tu, [
|
|
3055
3158
|
ae(g.$slots, "form-actions", {}, () => [
|
|
3056
3159
|
y($, {
|
|
3057
|
-
appearance: "
|
|
3160
|
+
appearance: "secondary",
|
|
3058
3161
|
"data-testid": "form-cancel",
|
|
3059
3162
|
disabled: e.isReadonly,
|
|
3060
3163
|
type: "reset"
|
|
@@ -3077,16 +3180,16 @@ const Co = {
|
|
|
3077
3180
|
}, 8, ["disabled"])
|
|
3078
3181
|
], !0)
|
|
3079
3182
|
])
|
|
3080
|
-
], 40,
|
|
3183
|
+
], 40, eu))
|
|
3081
3184
|
]),
|
|
3082
3185
|
_: 3
|
|
3083
3186
|
});
|
|
3084
3187
|
};
|
|
3085
3188
|
}
|
|
3086
|
-
}),
|
|
3189
|
+
}), $s = /* @__PURE__ */ be(au, [["__scopeId", "data-v-81612aef"]]), lu = {
|
|
3087
3190
|
key: 0,
|
|
3088
3191
|
"data-testid": "first-col"
|
|
3089
|
-
},
|
|
3192
|
+
}, su = /* @__PURE__ */ le({
|
|
3090
3193
|
__name: "EntityBaseTableCell",
|
|
3091
3194
|
props: {
|
|
3092
3195
|
keyName: {
|
|
@@ -3131,18 +3234,18 @@ const Co = {
|
|
|
3131
3234
|
},
|
|
3132
3235
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3133
3236
|
), w = F(() => s.value ? u.value > f.value : !1);
|
|
3134
|
-
return
|
|
3237
|
+
return Ds(() => {
|
|
3135
3238
|
d();
|
|
3136
|
-
}),
|
|
3239
|
+
}), zs(() => {
|
|
3137
3240
|
k();
|
|
3138
3241
|
}), (m, g) => {
|
|
3139
|
-
const O =
|
|
3242
|
+
const O = N("KTooltip");
|
|
3140
3243
|
return b(), P("span", {
|
|
3141
3244
|
ref_key: "contentRef",
|
|
3142
3245
|
ref: n,
|
|
3143
3246
|
class: "content-wrapper"
|
|
3144
3247
|
}, [
|
|
3145
|
-
s.value ? (b(), P("span",
|
|
3248
|
+
s.value ? (b(), P("span", lu, [
|
|
3146
3249
|
y(O, {
|
|
3147
3250
|
label: w.value ? h.value : "",
|
|
3148
3251
|
"max-width": "300",
|
|
@@ -3157,10 +3260,10 @@ const Co = {
|
|
|
3157
3260
|
], 512);
|
|
3158
3261
|
};
|
|
3159
3262
|
}
|
|
3160
|
-
}),
|
|
3263
|
+
}), ru = /* @__PURE__ */ be(su, [["__scopeId", "data-v-e42a20c9"]]), iu = { class: "toolbar-container" }, nu = {
|
|
3161
3264
|
key: 0,
|
|
3162
3265
|
class: "toolbar-button-container"
|
|
3163
|
-
},
|
|
3266
|
+
}, ou = ["data-testid"], uu = /* @__PURE__ */ le({
|
|
3164
3267
|
__name: "EntityBaseTable",
|
|
3165
3268
|
props: {
|
|
3166
3269
|
// table header configuration
|
|
@@ -3307,7 +3410,7 @@ const Co = {
|
|
|
3307
3410
|
a("click:row", q);
|
|
3308
3411
|
}), w = (A) => {
|
|
3309
3412
|
a("sort", A);
|
|
3310
|
-
}, { setTablePreferences: m, getTablePreferences: g } =
|
|
3413
|
+
}, { setTablePreferences: m, getTablePreferences: g } = Xs(), O = F(() => {
|
|
3311
3414
|
const A = g(t.preferencesStorageKey);
|
|
3312
3415
|
return {
|
|
3313
3416
|
...t.initialFetcherParams,
|
|
@@ -3317,8 +3420,8 @@ const Co = {
|
|
|
3317
3420
|
t.preferencesStorageKey && m(t.preferencesStorageKey, A);
|
|
3318
3421
|
};
|
|
3319
3422
|
return (A, q) => {
|
|
3320
|
-
const $ =
|
|
3321
|
-
return b(),
|
|
3423
|
+
const $ = N("KIcon"), J = N("KButton"), B = N("KDropdown"), H = N("KTable"), U = N("KCard");
|
|
3424
|
+
return b(), L(U, {
|
|
3322
3425
|
class: "kong-ui-entity-base-table",
|
|
3323
3426
|
title: e.title
|
|
3324
3427
|
}, {
|
|
@@ -3355,16 +3458,16 @@ const Co = {
|
|
|
3355
3458
|
"onUpdate:tablePreferences": I
|
|
3356
3459
|
}, He({
|
|
3357
3460
|
toolbar: p(({ state: S }) => [
|
|
3358
|
-
et(x("div",
|
|
3461
|
+
et(x("div", iu, [
|
|
3359
3462
|
ae(A.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3360
|
-
A.$slots["toolbar-button"] ? (b(), P("div",
|
|
3463
|
+
A.$slots["toolbar-button"] ? (b(), P("div", nu, [
|
|
3361
3464
|
ae(A.$slots, "toolbar-button", {}, void 0, !0)
|
|
3362
3465
|
])) : Q("", !0)
|
|
3363
3466
|
], 512), [
|
|
3364
3467
|
[tt, i(S)]
|
|
3365
3468
|
])
|
|
3366
3469
|
]),
|
|
3367
|
-
actions: p(({ row: S, rowKey:
|
|
3470
|
+
actions: p(({ row: S, rowKey: M, rowValue: j }) => [
|
|
3368
3471
|
x("div", {
|
|
3369
3472
|
class: "actions-container",
|
|
3370
3473
|
"data-testid": S.name
|
|
@@ -3376,8 +3479,8 @@ const Co = {
|
|
|
3376
3479
|
items: p(() => [
|
|
3377
3480
|
ae(A.$slots, "actions", {
|
|
3378
3481
|
row: S,
|
|
3379
|
-
rowKey:
|
|
3380
|
-
rowValue:
|
|
3482
|
+
rowKey: M,
|
|
3483
|
+
rowValue: j
|
|
3381
3484
|
}, void 0, !0)
|
|
3382
3485
|
]),
|
|
3383
3486
|
default: p(() => [
|
|
@@ -3388,7 +3491,7 @@ const Co = {
|
|
|
3388
3491
|
}, {
|
|
3389
3492
|
icon: p(() => [
|
|
3390
3493
|
y($, {
|
|
3391
|
-
color: c(
|
|
3494
|
+
color: c(Wr),
|
|
3392
3495
|
icon: "more",
|
|
3393
3496
|
size: "16"
|
|
3394
3497
|
}, null, 8, ["color"])
|
|
@@ -3398,24 +3501,24 @@ const Co = {
|
|
|
3398
3501
|
]),
|
|
3399
3502
|
_: 2
|
|
3400
3503
|
}, 1032, ["width"])
|
|
3401
|
-
], 8,
|
|
3504
|
+
], 8, ou)
|
|
3402
3505
|
]),
|
|
3403
3506
|
_: 2
|
|
3404
3507
|
}, [
|
|
3405
|
-
me(e.tableHeaders, (S,
|
|
3406
|
-
name:
|
|
3407
|
-
fn: p(({ row:
|
|
3408
|
-
y(
|
|
3409
|
-
"key-name": String(
|
|
3410
|
-
"row-el": u(
|
|
3508
|
+
me(e.tableHeaders, (S, M) => ({
|
|
3509
|
+
name: M,
|
|
3510
|
+
fn: p(({ row: j, rowKey: Z, rowValue: V }) => [
|
|
3511
|
+
y(ru, {
|
|
3512
|
+
"key-name": String(M),
|
|
3513
|
+
"row-el": u(j)
|
|
3411
3514
|
}, {
|
|
3412
3515
|
default: p(() => [
|
|
3413
|
-
ae(A.$slots,
|
|
3414
|
-
row:
|
|
3516
|
+
ae(A.$slots, M, {
|
|
3517
|
+
row: j,
|
|
3415
3518
|
rowKey: Z,
|
|
3416
|
-
rowValue:
|
|
3519
|
+
rowValue: V
|
|
3417
3520
|
}, () => [
|
|
3418
|
-
G(C(
|
|
3521
|
+
G(C(V), 1)
|
|
3419
3522
|
], !0)
|
|
3420
3523
|
]),
|
|
3421
3524
|
_: 2
|
|
@@ -3428,13 +3531,13 @@ const Co = {
|
|
|
3428
3531
|
}, 8, ["title"]);
|
|
3429
3532
|
};
|
|
3430
3533
|
}
|
|
3431
|
-
}),
|
|
3534
|
+
}), Ms = /* @__PURE__ */ be(uu, [["__scopeId", "data-v-86d2d2a3"]]), cu = {
|
|
3432
3535
|
key: 0,
|
|
3433
3536
|
class: "kong-ui-entity-delete-error"
|
|
3434
|
-
},
|
|
3537
|
+
}, du = {
|
|
3435
3538
|
key: 1,
|
|
3436
3539
|
class: "description"
|
|
3437
|
-
},
|
|
3540
|
+
}, hu = /* @__PURE__ */ le({
|
|
3438
3541
|
__name: "EntityDeleteModal",
|
|
3439
3542
|
props: {
|
|
3440
3543
|
visible: {
|
|
@@ -3479,8 +3582,8 @@ const Co = {
|
|
|
3479
3582
|
a("proceed");
|
|
3480
3583
|
};
|
|
3481
3584
|
return (d, n) => {
|
|
3482
|
-
const u =
|
|
3483
|
-
return b(),
|
|
3585
|
+
const u = N("KAlert"), f = N("KPrompt");
|
|
3586
|
+
return b(), L(f, {
|
|
3484
3587
|
"action-button-text": "Yes, delete",
|
|
3485
3588
|
"action-pending": e.actionPending,
|
|
3486
3589
|
class: "kong-ui-entity-delete-modal",
|
|
@@ -3492,7 +3595,7 @@ const Co = {
|
|
|
3492
3595
|
onProceed: o
|
|
3493
3596
|
}, {
|
|
3494
3597
|
"body-content": p(() => [
|
|
3495
|
-
e.error ? (b(), P("div",
|
|
3598
|
+
e.error ? (b(), P("div", cu, [
|
|
3496
3599
|
y(u, { appearance: "danger" }, {
|
|
3497
3600
|
alertMessage: p(() => [
|
|
3498
3601
|
G(C(e.error), 1)
|
|
@@ -3518,7 +3621,7 @@ const Co = {
|
|
|
3518
3621
|
key: "0"
|
|
3519
3622
|
} : void 0
|
|
3520
3623
|
]), 1032, ["keypath"]),
|
|
3521
|
-
t.description || d.$slots.description ? (b(), P("div",
|
|
3624
|
+
t.description || d.$slots.description ? (b(), P("div", du, [
|
|
3522
3625
|
ae(d.$slots, "description", {}, () => [
|
|
3523
3626
|
x("p", null, C(t.description), 1)
|
|
3524
3627
|
], !0)
|
|
@@ -3528,13 +3631,13 @@ const Co = {
|
|
|
3528
3631
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3529
3632
|
};
|
|
3530
3633
|
}
|
|
3531
|
-
}),
|
|
3634
|
+
}), Ns = /* @__PURE__ */ be(hu, [["__scopeId", "data-v-1c9a2a07"]]), pu = {
|
|
3532
3635
|
fill: "none",
|
|
3533
3636
|
height: "20",
|
|
3534
3637
|
viewBox: "0 0 20 20",
|
|
3535
3638
|
width: "20",
|
|
3536
3639
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3537
|
-
},
|
|
3640
|
+
}, fu = {
|
|
3538
3641
|
id: "mask0_180_20349",
|
|
3539
3642
|
height: "20",
|
|
3540
3643
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3542,35 +3645,35 @@ const Co = {
|
|
|
3542
3645
|
width: "20",
|
|
3543
3646
|
x: "0",
|
|
3544
3647
|
y: "0"
|
|
3545
|
-
},
|
|
3648
|
+
}, mu = ["fill"], gu = { mask: "url(#mask0_180_20349)" }, yu = ["fill"], Ul = /* @__PURE__ */ le({
|
|
3546
3649
|
__name: "IconFilter",
|
|
3547
3650
|
props: {
|
|
3548
3651
|
color: {
|
|
3549
3652
|
type: String,
|
|
3550
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3653
|
+
default: `var(--kong-ui-entity-filter-color, ${zr})`
|
|
3551
3654
|
}
|
|
3552
3655
|
},
|
|
3553
3656
|
setup(e) {
|
|
3554
|
-
return (a, t) => (b(), P("svg",
|
|
3555
|
-
x("mask",
|
|
3657
|
+
return (a, t) => (b(), P("svg", pu, [
|
|
3658
|
+
x("mask", fu, [
|
|
3556
3659
|
x("rect", {
|
|
3557
3660
|
fill: e.color,
|
|
3558
3661
|
height: "20",
|
|
3559
3662
|
width: "20"
|
|
3560
|
-
}, null, 8,
|
|
3663
|
+
}, null, 8, mu)
|
|
3561
3664
|
]),
|
|
3562
|
-
x("g",
|
|
3665
|
+
x("g", gu, [
|
|
3563
3666
|
x("path", {
|
|
3564
3667
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3565
3668
|
fill: e.color
|
|
3566
|
-
}, null, 8,
|
|
3669
|
+
}, null, 8, yu)
|
|
3567
3670
|
])
|
|
3568
3671
|
]));
|
|
3569
3672
|
}
|
|
3570
|
-
}),
|
|
3673
|
+
}), vu = {
|
|
3571
3674
|
key: 1,
|
|
3572
3675
|
class: "kong-ui-entity-filter"
|
|
3573
|
-
},
|
|
3676
|
+
}, bu = { class: "menu-item-title" }, ku = { class: "menu-item-indicator" }, Cu = { class: "menu-item-body" }, _u = ["for"], wu = { class: "menu-item-buttons" }, Su = { class: "filter-clear-button-container" }, Iu = /* @__PURE__ */ le({
|
|
3574
3677
|
__name: "EntityFilter",
|
|
3575
3678
|
props: {
|
|
3576
3679
|
// filter config, either exact match or fuzzy match
|
|
@@ -3632,8 +3735,8 @@ const Co = {
|
|
|
3632
3735
|
g && (s.value = !1), a("update:modelValue", new URLSearchParams(O).toString());
|
|
3633
3736
|
};
|
|
3634
3737
|
return (g, O) => {
|
|
3635
|
-
const I =
|
|
3636
|
-
return e.config.isExactMatch ? (b(),
|
|
3738
|
+
const I = N("KInput"), A = N("KButton"), q = N("KSelect"), $ = N("KMenuItem"), J = N("KMenu");
|
|
3739
|
+
return e.config.isExactMatch ? (b(), L(I, {
|
|
3637
3740
|
key: 0,
|
|
3638
3741
|
autocomplete: "off",
|
|
3639
3742
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3642,19 +3745,19 @@ const Co = {
|
|
|
3642
3745
|
placeholder: e.config.placeholder,
|
|
3643
3746
|
"onUpdate:modelValue": u
|
|
3644
3747
|
}, {
|
|
3645
|
-
|
|
3646
|
-
y(
|
|
3748
|
+
before: p(() => [
|
|
3749
|
+
y(Ul)
|
|
3647
3750
|
]),
|
|
3648
3751
|
_: 1
|
|
3649
|
-
}, 8, ["model-value", "placeholder"])) : (b(), P("div",
|
|
3752
|
+
}, 8, ["model-value", "placeholder"])) : (b(), P("div", vu, [
|
|
3650
3753
|
y(A, {
|
|
3651
|
-
appearance: "
|
|
3754
|
+
appearance: "tertiary",
|
|
3652
3755
|
"data-testid": "filter-button",
|
|
3653
|
-
icon: "filter",
|
|
3654
3756
|
onClick: n
|
|
3655
3757
|
}, {
|
|
3656
3758
|
default: p(() => [
|
|
3657
|
-
|
|
3759
|
+
y(Ul),
|
|
3760
|
+
G(" " + C(c(l)("filter.filterButtonText")) + " " + C(o.value.length > 0 ? `(${o.value.length})` : ""), 1)
|
|
3658
3761
|
]),
|
|
3659
3762
|
_: 1
|
|
3660
3763
|
}),
|
|
@@ -3666,16 +3769,16 @@ const Co = {
|
|
|
3666
3769
|
]),
|
|
3667
3770
|
et(y(J, { class: "kong-ui-entity-filter-menu" }, {
|
|
3668
3771
|
body: p(() => [
|
|
3669
|
-
(b(!0), P(ce, null, me(d.value, (B, H) => (b(),
|
|
3772
|
+
(b(!0), P(ce, null, me(d.value, (B, H) => (b(), L($, {
|
|
3670
3773
|
key: B.value,
|
|
3671
3774
|
"data-testid": B.value,
|
|
3672
3775
|
expandable: "",
|
|
3673
3776
|
"last-menu-item": H === d.value.length - 1
|
|
3674
3777
|
}, {
|
|
3675
3778
|
itemTitle: p(() => [
|
|
3676
|
-
x("span",
|
|
3779
|
+
x("span", bu, [
|
|
3677
3780
|
G(C(B.label) + " ", 1),
|
|
3678
|
-
et(x("span",
|
|
3781
|
+
et(x("span", ku, null, 512), [
|
|
3679
3782
|
[tt, o.value.includes(B.value)]
|
|
3680
3783
|
])
|
|
3681
3784
|
])
|
|
@@ -3683,36 +3786,35 @@ const Co = {
|
|
|
3683
3786
|
itemBody: p(() => {
|
|
3684
3787
|
var U, S;
|
|
3685
3788
|
return [
|
|
3686
|
-
x("div",
|
|
3789
|
+
x("div", Cu, [
|
|
3687
3790
|
x("label", {
|
|
3688
3791
|
class: "menu-item-label",
|
|
3689
3792
|
for: f(B.value)
|
|
3690
|
-
}, C(c(l)("filter.fieldLabel")), 9,
|
|
3691
|
-
((S = (U = e.config.schema) == null ? void 0 : U[B.value]) == null ? void 0 : S.type) === "select" ? (b(),
|
|
3793
|
+
}, C(c(l)("filter.fieldLabel")), 9, _u),
|
|
3794
|
+
((S = (U = e.config.schema) == null ? void 0 : U[B.value]) == null ? void 0 : S.type) === "select" ? (b(), L(q, {
|
|
3692
3795
|
key: 0,
|
|
3693
3796
|
id: f(B.value),
|
|
3694
3797
|
modelValue: i.value[B.value],
|
|
3695
|
-
"onUpdate:modelValue": (
|
|
3798
|
+
"onUpdate:modelValue": (M) => i.value[B.value] = M,
|
|
3696
3799
|
appearance: "select",
|
|
3697
3800
|
items: h(B.value),
|
|
3698
3801
|
placeholder: c(l)("filter.selectPlaceholder")
|
|
3699
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (b(),
|
|
3802
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (b(), L(I, {
|
|
3700
3803
|
key: 1,
|
|
3701
3804
|
id: f(B.value),
|
|
3702
3805
|
modelValue: i.value[B.value],
|
|
3703
|
-
"onUpdate:modelValue": (
|
|
3806
|
+
"onUpdate:modelValue": (M) => i.value[B.value] = M,
|
|
3704
3807
|
autocomplete: "off",
|
|
3705
3808
|
placeholder: c(l)("filter.inputPlaceholder"),
|
|
3706
|
-
size: "small",
|
|
3707
3809
|
type: r(B.value)
|
|
3708
3810
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3709
3811
|
]),
|
|
3710
|
-
x("div",
|
|
3812
|
+
x("div", wu, [
|
|
3711
3813
|
y(A, {
|
|
3712
|
-
appearance: "
|
|
3814
|
+
appearance: "tertiary",
|
|
3713
3815
|
"data-testid": "apply-filter",
|
|
3714
3816
|
size: "small",
|
|
3715
|
-
onClick: O[0] || (O[0] = (
|
|
3817
|
+
onClick: O[0] || (O[0] = (M) => m(!0))
|
|
3716
3818
|
}, {
|
|
3717
3819
|
default: p(() => [
|
|
3718
3820
|
G(C(c(l)("filter.applyButtonText")), 1)
|
|
@@ -3720,10 +3822,10 @@ const Co = {
|
|
|
3720
3822
|
_: 1
|
|
3721
3823
|
}),
|
|
3722
3824
|
y(A, {
|
|
3723
|
-
appearance: "
|
|
3825
|
+
appearance: "tertiary",
|
|
3724
3826
|
"data-testid": "clear-filter",
|
|
3725
3827
|
size: "small",
|
|
3726
|
-
onClick: (
|
|
3828
|
+
onClick: (M) => k(B.value)
|
|
3727
3829
|
}, {
|
|
3728
3830
|
default: p(() => [
|
|
3729
3831
|
G(C(c(l)("filter.clearButtonText")), 1)
|
|
@@ -3737,12 +3839,17 @@ const Co = {
|
|
|
3737
3839
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3738
3840
|
]),
|
|
3739
3841
|
actionButton: p(() => [
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3842
|
+
x("div", Su, [
|
|
3843
|
+
y(A, {
|
|
3844
|
+
size: "small",
|
|
3845
|
+
onClick: w
|
|
3846
|
+
}, {
|
|
3847
|
+
default: p(() => [
|
|
3848
|
+
G(C(c(l)("filter.clearAllButtonText")), 1)
|
|
3849
|
+
]),
|
|
3850
|
+
_: 1
|
|
3851
|
+
})
|
|
3852
|
+
])
|
|
3746
3853
|
]),
|
|
3747
3854
|
_: 1
|
|
3748
3855
|
}, 512), [
|
|
@@ -3751,7 +3858,7 @@ const Co = {
|
|
|
3751
3858
|
]));
|
|
3752
3859
|
};
|
|
3753
3860
|
}
|
|
3754
|
-
}),
|
|
3861
|
+
}), xu = /* @__PURE__ */ be(Iu, [["__scopeId", "data-v-4ea260f0"]]), _e = /* @__PURE__ */ le({
|
|
3755
3862
|
__name: "PermissionsWrapper",
|
|
3756
3863
|
props: {
|
|
3757
3864
|
/**
|
|
@@ -3781,16 +3888,16 @@ const Co = {
|
|
|
3781
3888
|
isAllowed: t.value
|
|
3782
3889
|
}) : Q("", !0);
|
|
3783
3890
|
}
|
|
3784
|
-
}),
|
|
3891
|
+
}), Hu = { class: "form-section-wrapper" }, Tu = {
|
|
3785
3892
|
key: 0,
|
|
3786
3893
|
class: "form-section-title"
|
|
3787
|
-
},
|
|
3894
|
+
}, Au = {
|
|
3788
3895
|
key: 1,
|
|
3789
3896
|
class: "form-section-description"
|
|
3790
|
-
},
|
|
3897
|
+
}, Fu = {
|
|
3791
3898
|
key: 2,
|
|
3792
3899
|
class: "form-section-footer"
|
|
3793
|
-
},
|
|
3900
|
+
}, Ou = { class: "form-section-content" }, Uu = /* @__PURE__ */ le({
|
|
3794
3901
|
__name: "EntityFormSection",
|
|
3795
3902
|
props: {
|
|
3796
3903
|
title: {
|
|
@@ -3819,28 +3926,28 @@ const Co = {
|
|
|
3819
3926
|
return (t, l) => (b(), P("fieldset", {
|
|
3820
3927
|
class: Ae(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
3821
3928
|
}, [
|
|
3822
|
-
x("div",
|
|
3929
|
+
x("div", Hu, [
|
|
3823
3930
|
e.hideInfoHeader ? Q("", !0) : (b(), P("div", {
|
|
3824
3931
|
key: 0,
|
|
3825
3932
|
class: Ae(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3826
3933
|
}, [
|
|
3827
|
-
e.title ? (b(), P("h4",
|
|
3828
|
-
e.description || c(a).description ? (b(), P("div",
|
|
3934
|
+
e.title ? (b(), P("h4", Tu, C(e.title), 1)) : Q("", !0),
|
|
3935
|
+
e.description || c(a).description ? (b(), P("div", Au, [
|
|
3829
3936
|
ae(t.$slots, "description", {}, () => [
|
|
3830
3937
|
x("p", null, C(e.description), 1)
|
|
3831
3938
|
], !0)
|
|
3832
3939
|
])) : Q("", !0),
|
|
3833
|
-
c(a).footer ? (b(), P("div",
|
|
3940
|
+
c(a).footer ? (b(), P("div", Fu, [
|
|
3834
3941
|
ae(t.$slots, "footer", {}, void 0, !0)
|
|
3835
3942
|
])) : Q("", !0)
|
|
3836
3943
|
], 2)),
|
|
3837
|
-
x("div",
|
|
3944
|
+
x("div", Ou, [
|
|
3838
3945
|
ae(t.$slots, "default", {}, void 0, !0)
|
|
3839
3946
|
])
|
|
3840
3947
|
])
|
|
3841
3948
|
], 2));
|
|
3842
3949
|
}
|
|
3843
|
-
}), Xe = /* @__PURE__ */ be(
|
|
3950
|
+
}), Xe = /* @__PURE__ */ be(Uu, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: ht, useDeleteUrlBuilder: Ks, useErrors: js, useExternalLinkCreator: Pc, useFetchUrlBuilder: Ec, useFetcher: Ps, useDebouncedFilter: ql, useStringHelpers: Bc, useHelpers: qu, useGatewayFeatureSupported: Vc, useTruncationDetector: Lc } = de, $u = {
|
|
3844
3951
|
list: {
|
|
3845
3952
|
table_headers: {
|
|
3846
3953
|
id: "ID",
|
|
@@ -4126,7 +4233,7 @@ const Co = {
|
|
|
4126
4233
|
labels: {
|
|
4127
4234
|
created_at: "Created at"
|
|
4128
4235
|
}
|
|
4129
|
-
},
|
|
4236
|
+
}, Mu = {
|
|
4130
4237
|
list: {
|
|
4131
4238
|
table_headers: {
|
|
4132
4239
|
id: "ID",
|
|
@@ -4194,15 +4301,15 @@ const Co = {
|
|
|
4194
4301
|
}
|
|
4195
4302
|
}
|
|
4196
4303
|
}
|
|
4197
|
-
},
|
|
4198
|
-
upstreams:
|
|
4199
|
-
targets:
|
|
4304
|
+
}, Nu = {
|
|
4305
|
+
upstreams: $u,
|
|
4306
|
+
targets: Mu
|
|
4200
4307
|
};
|
|
4201
|
-
function
|
|
4202
|
-
const e = qt("en-us",
|
|
4308
|
+
function Ku() {
|
|
4309
|
+
const e = qt("en-us", Nu);
|
|
4203
4310
|
return {
|
|
4204
4311
|
i18n: e,
|
|
4205
|
-
i18nT:
|
|
4312
|
+
i18nT: El(e)
|
|
4206
4313
|
// Translation component <i18n-t>
|
|
4207
4314
|
};
|
|
4208
4315
|
}
|
|
@@ -4588,7 +4695,7 @@ const ut = [
|
|
|
4588
4695
|
label: "599",
|
|
4589
4696
|
value: "599"
|
|
4590
4697
|
}
|
|
4591
|
-
], Ht = 10, Tt = 65536,
|
|
4698
|
+
], Ht = 10, Tt = 65536, ju = 0, Pu = 65535, Ee = 0, Be = 255, Es = 0, Bs = 255, Eu = 0, Bu = 65535, $l = 0, Ml = 65535, Vu = 0, Lu = 2 ** 31, At = ["200", "302"], Ft = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "306", "307", "308"], Ot = ["429", "404", "500", "501", "502", "503", "504", "505"], Ut = ["429", "500", "503"];
|
|
4592
4699
|
function pt() {
|
|
4593
4700
|
const e = (n) => /^\d+$/.test(n), a = (n, u, f) => {
|
|
4594
4701
|
if (e(n)) {
|
|
@@ -4630,13 +4737,13 @@ function pt() {
|
|
|
4630
4737
|
unhealthyInterval: "0",
|
|
4631
4738
|
httpFailures: "5",
|
|
4632
4739
|
tcpFailures: "5",
|
|
4633
|
-
unhealthyHttpStatuses:
|
|
4740
|
+
unhealthyHttpStatuses: Ot,
|
|
4634
4741
|
unhealthyTimeouts: "0"
|
|
4635
4742
|
},
|
|
4636
4743
|
passiveHealthCheck: {
|
|
4637
4744
|
type: "http",
|
|
4638
4745
|
successes: "0",
|
|
4639
|
-
httpStatuses:
|
|
4746
|
+
httpStatuses: Ft,
|
|
4640
4747
|
timeouts: "0",
|
|
4641
4748
|
httpFailures: "5",
|
|
4642
4749
|
unhealthyHttpStatuses: Ut,
|
|
@@ -4649,9 +4756,9 @@ function pt() {
|
|
|
4649
4756
|
stringToNumberArray: t,
|
|
4650
4757
|
numberToStringArray: l,
|
|
4651
4758
|
upstreamsResponseToFields: (n) => {
|
|
4652
|
-
var f, h, r, k, w, m, g, O, I, A, q, $, J, B, H, U, S,
|
|
4759
|
+
var f, h, r, k, w, m, g, O, I, A, q, $, J, B, H, U, S, M, j, Z, V, z, X, K, D, Y, W, T, v, _, ee, re, ve, te, ne, Oe, De, qe, Dt, zt, Jt, Wt, Yt, Qt, Gt, Zt, Xt, ea, ta, aa, la, sa, ra, ia, na, oa, ua, ca, da, ha, pa, fa, ma, ga, ya, va, ba, ka, Ca, _a, wa, Sa, Ia, xa, Ha, Ta, Aa, Fa, Oa, Ua, qa, $a, Ma, Na, Ka, ja, Pa, Ea, Ba, Va, La, Ra, Da, za, Ja, Wa, Ya, Qa, Ga, Za, Xa, el, tl, al, ll, sl, rl, il, nl;
|
|
4653
4760
|
const u = s();
|
|
4654
|
-
return u.name = n.name || "", u.algorithm = n.algorithm || "round-robin", u.hostHeader = n.host_header || "", u.clientCertificate = n.client_certificate ? (f = n.client_certificate) == null ? void 0 : f.id : "", u.tags = ((h = n.tags) == null ? void 0 : h.join(", ")) || "", u.slots = n.slots !== null && n.slots !== void 0 ? n.slots.toString() : "10000", u.hashOn = n.hash_on || "none", u.hashFallback = n.hash_fallback || "none", u.hashOnHeader = n.hash_on_header || "", u.hashOnCookie = n.hash_on_cookie || "", u.hashOnCookiePath = n.hash_on_cookie_path || "/", u.hashOnQueryArgument = n.hash_on_query_arg || "", u.hashOnUriCapture = n.hash_on_uri_capture || "", u.hashFallbackHeader = n.hash_fallback_header || "", u.hashFallbackQueryArgument = n.hash_fallback_query_arg || "", u.hashFallbackUriCapture = n.hash_fallback_uri_capture || "", u.healthchecksThreshold = n.healthchecks.threshold !== null && n.healthchecks.threshold !== void 0 ? n.healthchecks.threshold.toString() : "", u.activeHealthSwitch = ((k = (r = n.healthchecks.active) == null ? void 0 : r.healthy) == null ? void 0 : k.interval) !== 0 || ((m = (w = n.healthchecks.active) == null ? void 0 : w.unhealthy) == null ? void 0 : m.interval) !== 0, u.activeHealthCheck.type = ((g = n.healthchecks.active) == null ? void 0 : g.type) || "http", u.activeHealthCheck.httpPath = ((O = n.healthchecks.active) == null ? void 0 : O.http_path) || "/", u.activeHealthCheck.timeout = ((I = n.healthchecks.active) == null ? void 0 : I.timeout) !== null && ((A = n.healthchecks.active) == null ? void 0 : A.timeout) !== void 0 ? ($ = (q = n.healthchecks.active) == null ? void 0 : q.timeout) == null ? void 0 : $.toString() : "", u.activeHealthCheck.concurrency = ((J = n.healthchecks.active) == null ? void 0 : J.concurrency) !== null && ((B = n.healthchecks.active) == null ? void 0 : B.concurrency) !== void 0 ? (U = (H = n.healthchecks.active) == null ? void 0 : H.concurrency) == null ? void 0 : U.toString() : "", u.activeHealthCheck.httpsSni = ((S = n.healthchecks.active) == null ? void 0 : S.https_sni) || "", u.activeHealthCheck.verifySsl = ((
|
|
4761
|
+
return u.name = n.name || "", u.algorithm = n.algorithm || "round-robin", u.hostHeader = n.host_header || "", u.clientCertificate = n.client_certificate ? (f = n.client_certificate) == null ? void 0 : f.id : "", u.tags = ((h = n.tags) == null ? void 0 : h.join(", ")) || "", u.slots = n.slots !== null && n.slots !== void 0 ? n.slots.toString() : "10000", u.hashOn = n.hash_on || "none", u.hashFallback = n.hash_fallback || "none", u.hashOnHeader = n.hash_on_header || "", u.hashOnCookie = n.hash_on_cookie || "", u.hashOnCookiePath = n.hash_on_cookie_path || "/", u.hashOnQueryArgument = n.hash_on_query_arg || "", u.hashOnUriCapture = n.hash_on_uri_capture || "", u.hashFallbackHeader = n.hash_fallback_header || "", u.hashFallbackQueryArgument = n.hash_fallback_query_arg || "", u.hashFallbackUriCapture = n.hash_fallback_uri_capture || "", u.healthchecksThreshold = n.healthchecks.threshold !== null && n.healthchecks.threshold !== void 0 ? n.healthchecks.threshold.toString() : "", u.activeHealthSwitch = ((k = (r = n.healthchecks.active) == null ? void 0 : r.healthy) == null ? void 0 : k.interval) !== 0 || ((m = (w = n.healthchecks.active) == null ? void 0 : w.unhealthy) == null ? void 0 : m.interval) !== 0, u.activeHealthCheck.type = ((g = n.healthchecks.active) == null ? void 0 : g.type) || "http", u.activeHealthCheck.httpPath = ((O = n.healthchecks.active) == null ? void 0 : O.http_path) || "/", u.activeHealthCheck.timeout = ((I = n.healthchecks.active) == null ? void 0 : I.timeout) !== null && ((A = n.healthchecks.active) == null ? void 0 : A.timeout) !== void 0 ? ($ = (q = n.healthchecks.active) == null ? void 0 : q.timeout) == null ? void 0 : $.toString() : "", u.activeHealthCheck.concurrency = ((J = n.healthchecks.active) == null ? void 0 : J.concurrency) !== null && ((B = n.healthchecks.active) == null ? void 0 : B.concurrency) !== void 0 ? (U = (H = n.healthchecks.active) == null ? void 0 : H.concurrency) == null ? void 0 : U.toString() : "", u.activeHealthCheck.httpsSni = ((S = n.healthchecks.active) == null ? void 0 : S.https_sni) || "", u.activeHealthCheck.verifySsl = ((M = n.healthchecks.active) == null ? void 0 : M.https_verify_certificate) || !1, u.activeHealthCheck.headers = (j = n.healthchecks.active) != null && j.headers && Object.entries((Z = n.healthchecks.active) == null ? void 0 : Z.headers).length > 0 ? Object.entries((V = n.healthchecks.active) == null ? void 0 : V.headers).map(([Vs, mt]) => ({ key: Vs, values: mt == null ? void 0 : mt.join(", ") })) : [{ key: "", values: "" }], u.activeHealthCheck.interval = ((X = (z = n.healthchecks.active) == null ? void 0 : z.healthy) == null ? void 0 : X.interval) !== null && ((D = (K = n.healthchecks.active) == null ? void 0 : K.healthy) == null ? void 0 : D.interval) !== void 0 ? (T = (W = (Y = n.healthchecks.active) == null ? void 0 : Y.healthy) == null ? void 0 : W.interval) == null ? void 0 : T.toString() : "0", u.activeHealthCheck.interval = ((_ = (v = n.healthchecks.active) == null ? void 0 : v.healthy) == null ? void 0 : _.interval) !== null && ((re = (ee = n.healthchecks.active) == null ? void 0 : ee.healthy) == null ? void 0 : re.interval) !== void 0 ? (ne = (te = (ve = n.healthchecks.active) == null ? void 0 : ve.healthy) == null ? void 0 : te.interval) == null ? void 0 : ne.toString() : "0", u.activeHealthCheck.successes = ((De = (Oe = n.healthchecks.active) == null ? void 0 : Oe.healthy) == null ? void 0 : De.successes) !== null && ((Dt = (qe = n.healthchecks.active) == null ? void 0 : qe.healthy) == null ? void 0 : Dt.successes) !== void 0 ? (Wt = (Jt = (zt = n.healthchecks.active) == null ? void 0 : zt.healthy) == null ? void 0 : Jt.successes) == null ? void 0 : Wt.toString() : "0", u.activeHealthCheck.httpStatuses = (Qt = (Yt = n.healthchecks.active) == null ? void 0 : Yt.healthy) != null && Qt.http_statuses ? l(((Zt = (Gt = n.healthchecks.active) == null ? void 0 : Gt.healthy) == null ? void 0 : Zt.http_statuses) || []) : At, u.activeHealthCheck.unhealthyInterval = ((ea = (Xt = n.healthchecks.active) == null ? void 0 : Xt.unhealthy) == null ? void 0 : ea.interval) !== null && ((aa = (ta = n.healthchecks.active) == null ? void 0 : ta.unhealthy) == null ? void 0 : aa.interval) !== void 0 ? (ra = (sa = (la = n.healthchecks.active) == null ? void 0 : la.unhealthy) == null ? void 0 : sa.interval) == null ? void 0 : ra.toString() : "0", u.activeHealthCheck.httpFailures = ((na = (ia = n.healthchecks.active) == null ? void 0 : ia.unhealthy) == null ? void 0 : na.http_failures) !== null && ((ua = (oa = n.healthchecks.active) == null ? void 0 : oa.unhealthy) == null ? void 0 : ua.http_failures) !== void 0 ? (ha = (da = (ca = n.healthchecks.active) == null ? void 0 : ca.unhealthy) == null ? void 0 : da.http_failures) == null ? void 0 : ha.toString() : "0", u.activeHealthCheck.unhealthyTimeouts = ((fa = (pa = n.healthchecks.active) == null ? void 0 : pa.unhealthy) == null ? void 0 : fa.timeouts) !== null && ((ga = (ma = n.healthchecks.active) == null ? void 0 : ma.unhealthy) == null ? void 0 : ga.timeouts) !== void 0 ? (ba = (va = (ya = n.healthchecks.active) == null ? void 0 : ya.unhealthy) == null ? void 0 : va.timeouts) == null ? void 0 : ba.toString() : "0", u.activeHealthCheck.unhealthyHttpStatuses = (Ca = (ka = n.healthchecks.active) == null ? void 0 : ka.unhealthy) != null && Ca.http_statuses ? l(((wa = (_a = n.healthchecks.active) == null ? void 0 : _a.unhealthy) == null ? void 0 : wa.http_statuses) || []) : Ot, u.passiveHealthSwitch = ((Ia = (Sa = n.healthchecks.passive) == null ? void 0 : Sa.healthy) == null ? void 0 : Ia.successes) !== 0 || ((Ha = (xa = n.healthchecks.passive) == null ? void 0 : xa.unhealthy) == null ? void 0 : Ha.timeouts) !== 0 || ((Aa = (Ta = n.healthchecks.passive) == null ? void 0 : Ta.unhealthy) == null ? void 0 : Aa.tcp_failures) !== 0 || ((Oa = (Fa = n.healthchecks.passive) == null ? void 0 : Fa.unhealthy) == null ? void 0 : Oa.http_failures) !== 0, u.passiveHealthCheck.type = ((Ua = n.healthchecks.passive) == null ? void 0 : Ua.type) || "http", u.passiveHealthCheck.successes = (($a = (qa = n.healthchecks.passive) == null ? void 0 : qa.healthy) == null ? void 0 : $a.successes) !== null && ((Na = (Ma = n.healthchecks.passive) == null ? void 0 : Ma.healthy) == null ? void 0 : Na.successes) !== void 0 ? (Pa = (ja = (Ka = n.healthchecks.passive) == null ? void 0 : Ka.healthy) == null ? void 0 : ja.successes) == null ? void 0 : Pa.toString() : "0", u.passiveHealthCheck.httpStatuses = (Ba = (Ea = n.healthchecks.passive) == null ? void 0 : Ea.healthy) != null && Ba.http_statuses ? l(((La = (Va = n.healthchecks.passive) == null ? void 0 : Va.healthy) == null ? void 0 : La.http_statuses) || []) : Ft, u.passiveHealthCheck.timeouts = ((Da = (Ra = n.healthchecks.passive) == null ? void 0 : Ra.unhealthy) == null ? void 0 : Da.timeouts) !== null && ((Ja = (za = n.healthchecks.passive) == null ? void 0 : za.unhealthy) == null ? void 0 : Ja.timeouts) !== void 0 ? (Qa = (Ya = (Wa = n.healthchecks.passive) == null ? void 0 : Wa.unhealthy) == null ? void 0 : Ya.timeouts) == null ? void 0 : Qa.toString() : "0", u.passiveHealthCheck.tcpFailures = ((Za = (Ga = n.healthchecks.passive) == null ? void 0 : Ga.unhealthy) == null ? void 0 : Za.tcp_failures) !== null && ((el = (Xa = n.healthchecks.passive) == null ? void 0 : Xa.unhealthy) == null ? void 0 : el.tcp_failures) !== void 0 ? (ll = (al = (tl = n.healthchecks.passive) == null ? void 0 : tl.unhealthy) == null ? void 0 : al.tcp_failures) == null ? void 0 : ll.toString() : "", u.passiveHealthCheck.unhealthyHttpStatuses = (rl = (sl = n.healthchecks.passive) == null ? void 0 : sl.unhealthy) != null && rl.http_statuses ? l(((nl = (il = n.healthchecks.passive) == null ? void 0 : il.unhealthy) == null ? void 0 : nl.http_statuses) || []) : Ut, u;
|
|
4655
4762
|
},
|
|
4656
4763
|
getDefaultUpstreamFields: s,
|
|
4657
4764
|
objectsAreEqual: (n, u) => {
|
|
@@ -4665,13 +4772,13 @@ function pt() {
|
|
|
4665
4772
|
};
|
|
4666
4773
|
}
|
|
4667
4774
|
const Se = {
|
|
4668
|
-
useI18n:
|
|
4775
|
+
useI18n: Ku,
|
|
4669
4776
|
useMultiselectCreation: Ge,
|
|
4670
4777
|
useHelpers: pt
|
|
4671
|
-
}, Me = "/api/runtime_groups/{controlPlaneId}",
|
|
4778
|
+
}, Me = "/api/runtime_groups/{controlPlaneId}", Ne = "/{workspace}", Re = {
|
|
4672
4779
|
list: {
|
|
4673
4780
|
konnect: `${Me}/upstreams`,
|
|
4674
|
-
kongManager: `${
|
|
4781
|
+
kongManager: `${Ne}/upstreams`
|
|
4675
4782
|
},
|
|
4676
4783
|
form: {
|
|
4677
4784
|
konnect: {
|
|
@@ -4682,15 +4789,15 @@ const Se = {
|
|
|
4682
4789
|
edit: `${Me}/upstreams/{id}`
|
|
4683
4790
|
},
|
|
4684
4791
|
kongManager: {
|
|
4685
|
-
getServices: `${
|
|
4686
|
-
getCertificates: `${
|
|
4687
|
-
validate: `${
|
|
4688
|
-
create: `${
|
|
4689
|
-
edit: `${
|
|
4792
|
+
getServices: `${Ne}/services`,
|
|
4793
|
+
getCertificates: `${Ne}/certificates`,
|
|
4794
|
+
validate: `${Ne}/schemas/upstreams/validate`,
|
|
4795
|
+
create: `${Ne}/upstreams`,
|
|
4796
|
+
edit: `${Ne}/upstreams/{id}`
|
|
4690
4797
|
}
|
|
4691
4798
|
}
|
|
4692
4799
|
};
|
|
4693
|
-
const
|
|
4800
|
+
const Ru = { class: "kong-ui-entities-upstreams-list" }, Du = { class: "upstream-name" }, zu = /* @__PURE__ */ le({
|
|
4694
4801
|
__name: "UpstreamsList",
|
|
4695
4802
|
props: {
|
|
4696
4803
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4740,72 +4847,72 @@ const $u = { class: "kong-ui-entities-upstreams-list" }, Mu = { class: "upstream
|
|
|
4740
4847
|
tags: { label: l("upstreams.list.table_headers.tags"), sortable: !1 }
|
|
4741
4848
|
}, u = n, f = F(() => {
|
|
4742
4849
|
var D, Y;
|
|
4743
|
-
let
|
|
4744
|
-
return t.config.app === "konnect" ?
|
|
4850
|
+
let K = `${t.config.apiBaseUrl}${Re.list[t.config.app]}`;
|
|
4851
|
+
return t.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, ((D = t.config) == null ? void 0 : D.controlPlaneId) || "") : t.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, (Y = t.config) != null && Y.workspace ? `/${t.config.workspace}` : "")), K;
|
|
4745
4852
|
}), h = E(""), r = F(() => {
|
|
4746
|
-
const
|
|
4747
|
-
if (
|
|
4853
|
+
const K = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4854
|
+
if (K)
|
|
4748
4855
|
return {
|
|
4749
|
-
isExactMatch:
|
|
4856
|
+
isExactMatch: K,
|
|
4750
4857
|
placeholder: l("upstreams.search.placeholder")
|
|
4751
4858
|
};
|
|
4752
4859
|
const { name: D, slots: Y } = n;
|
|
4753
4860
|
return {
|
|
4754
|
-
isExactMatch:
|
|
4861
|
+
isExactMatch: K,
|
|
4755
4862
|
fields: { name: D, slots: Y },
|
|
4756
4863
|
schema: t.config.filterSchema
|
|
4757
4864
|
};
|
|
4758
|
-
}), { fetcher: k, fetcherState: w } =
|
|
4865
|
+
}), { fetcher: k, fetcherState: w } = Ps(t.config, f.value), m = () => {
|
|
4759
4866
|
h.value = "";
|
|
4760
4867
|
}, g = () => {
|
|
4761
4868
|
o.value++;
|
|
4762
|
-
}, O = E(""), I = (
|
|
4763
|
-
const Y =
|
|
4869
|
+
}, O = E(""), I = (K, D) => {
|
|
4870
|
+
const Y = K.id;
|
|
4764
4871
|
if (!D(Y)) {
|
|
4765
4872
|
a("copy:error", {
|
|
4766
|
-
entity:
|
|
4873
|
+
entity: K,
|
|
4767
4874
|
field: "id",
|
|
4768
4875
|
message: l("upstreams.errors.copy")
|
|
4769
4876
|
});
|
|
4770
4877
|
return;
|
|
4771
4878
|
}
|
|
4772
4879
|
a("copy:success", {
|
|
4773
|
-
entity:
|
|
4880
|
+
entity: K,
|
|
4774
4881
|
field: "id",
|
|
4775
4882
|
message: l("upstreams.copy.success", { val: Y })
|
|
4776
4883
|
});
|
|
4777
|
-
}, A = (
|
|
4778
|
-
const Y = JSON.stringify(
|
|
4884
|
+
}, A = (K, D) => {
|
|
4885
|
+
const Y = JSON.stringify(K);
|
|
4779
4886
|
if (!D(Y)) {
|
|
4780
4887
|
a("copy:error", {
|
|
4781
|
-
entity:
|
|
4888
|
+
entity: K,
|
|
4782
4889
|
message: l("upstreams.errors.copy")
|
|
4783
4890
|
});
|
|
4784
4891
|
return;
|
|
4785
4892
|
}
|
|
4786
4893
|
a("copy:success", {
|
|
4787
|
-
entity:
|
|
4894
|
+
entity: K,
|
|
4788
4895
|
message: l("upstreams.copy.success_brief")
|
|
4789
4896
|
});
|
|
4790
|
-
}, q = async (
|
|
4897
|
+
}, q = async (K) => {
|
|
4791
4898
|
var Y;
|
|
4792
|
-
await ((Y = t.canRetrieve) == null ? void 0 : Y.call(t,
|
|
4793
|
-
}, $ = (
|
|
4899
|
+
await ((Y = t.canRetrieve) == null ? void 0 : Y.call(t, K)) && s.push(t.config.getViewRoute(K.id));
|
|
4900
|
+
}, $ = (K) => ({
|
|
4794
4901
|
label: l("upstreams.actions.view"),
|
|
4795
|
-
to: t.config.getViewRoute(
|
|
4796
|
-
}), J = (
|
|
4902
|
+
to: t.config.getViewRoute(K)
|
|
4903
|
+
}), J = (K) => ({
|
|
4797
4904
|
label: l("upstreams.actions.edit"),
|
|
4798
|
-
to: t.config.getEditRoute(
|
|
4799
|
-
}), B = E(void 0), H = E(!1), U = E(!1), S = E(""),
|
|
4800
|
-
B.value =
|
|
4905
|
+
to: t.config.getEditRoute(K)
|
|
4906
|
+
}), B = E(void 0), H = E(!1), U = E(!1), S = E(""), M = Ks(t.config, f.value), j = (K) => {
|
|
4907
|
+
B.value = K, H.value = !0;
|
|
4801
4908
|
}, Z = () => {
|
|
4802
4909
|
H.value = !1;
|
|
4803
|
-
},
|
|
4804
|
-
var
|
|
4805
|
-
if ((
|
|
4910
|
+
}, V = async () => {
|
|
4911
|
+
var K, D, Y;
|
|
4912
|
+
if ((K = B.value) != null && K.id) {
|
|
4806
4913
|
U.value = !0;
|
|
4807
4914
|
try {
|
|
4808
|
-
await i.delete(
|
|
4915
|
+
await i.delete(M(B.value.id)), U.value = !1, H.value = !1, o.value++, a("delete:success", B.value);
|
|
4809
4916
|
} catch (W) {
|
|
4810
4917
|
S.value = ((Y = (D = W.response) == null ? void 0 : D.data) == null ? void 0 : Y.message) || W.message || l("upstreams.errors.delete"), a("error", W);
|
|
4811
4918
|
} finally {
|
|
@@ -4813,9 +4920,9 @@ const $u = { class: "kong-ui-entities-upstreams-list" }, Mu = { class: "upstream
|
|
|
4813
4920
|
}
|
|
4814
4921
|
}
|
|
4815
4922
|
};
|
|
4816
|
-
ge(w, (
|
|
4817
|
-
if (
|
|
4818
|
-
O.value = l("upstreams.errors.general"), a("error",
|
|
4923
|
+
ge(w, (K) => {
|
|
4924
|
+
if (K.status === xe.Error) {
|
|
4925
|
+
O.value = l("upstreams.errors.general"), a("error", K.error);
|
|
4819
4926
|
return;
|
|
4820
4927
|
}
|
|
4821
4928
|
O.value = "";
|
|
@@ -4828,10 +4935,10 @@ const $u = { class: "kong-ui-entities-upstreams-list" }, Mu = { class: "upstream
|
|
|
4828
4935
|
});
|
|
4829
4936
|
return Ze(async () => {
|
|
4830
4937
|
await t.canCreate() && (z.value.title = l("upstreams.list.empty_state.title"), z.value.ctaText = l("upstreams.actions.create"));
|
|
4831
|
-
}), (
|
|
4832
|
-
const Y =
|
|
4833
|
-
return b(), P("div",
|
|
4834
|
-
y(c(
|
|
4938
|
+
}), (K, D) => {
|
|
4939
|
+
const Y = N("KButton"), W = N("KBadge"), T = N("KTruncate"), v = N("KDropdownItem"), _ = N("KClipboardProvider");
|
|
4940
|
+
return b(), P("div", Ru, [
|
|
4941
|
+
y(c(Ms), {
|
|
4835
4942
|
"cache-identifier": e.cacheIdentifier,
|
|
4836
4943
|
"disable-pagination-page-jump": "",
|
|
4837
4944
|
"disable-sorting": d.value,
|
|
@@ -4849,7 +4956,7 @@ const $u = { class: "kong-ui-entities-upstreams-list" }, Mu = { class: "upstream
|
|
|
4849
4956
|
onSort: g
|
|
4850
4957
|
}, {
|
|
4851
4958
|
"toolbar-filter": p(() => [
|
|
4852
|
-
y(c(
|
|
4959
|
+
y(c(xu), {
|
|
4853
4960
|
modelValue: h.value,
|
|
4854
4961
|
"onUpdate:modelValue": D[0] || (D[0] = (ee) => h.value = ee),
|
|
4855
4962
|
config: r.value
|
|
@@ -4876,12 +4983,12 @@ const $u = { class: "kong-ui-entities-upstreams-list" }, Mu = { class: "upstream
|
|
|
4876
4983
|
}, 8, ["auth-function"])
|
|
4877
4984
|
]),
|
|
4878
4985
|
name: p(({ rowValue: ee }) => [
|
|
4879
|
-
x("span",
|
|
4986
|
+
x("span", Du, C(ee), 1)
|
|
4880
4987
|
]),
|
|
4881
4988
|
tags: p(({ rowValue: ee }) => [
|
|
4882
4989
|
y(T, null, {
|
|
4883
4990
|
default: p(() => [
|
|
4884
|
-
(b(!0), P(ce, null, me(ee, (re) => (b(),
|
|
4991
|
+
(b(!0), P(ce, null, me(ee, (re) => (b(), L(W, {
|
|
4885
4992
|
key: re,
|
|
4886
4993
|
"max-width": "auto"
|
|
4887
4994
|
}, {
|
|
@@ -4951,10 +5058,10 @@ const $u = { class: "kong-ui-entities-upstreams-list" }, Mu = { class: "upstream
|
|
|
4951
5058
|
}, {
|
|
4952
5059
|
default: p(() => [
|
|
4953
5060
|
y(v, {
|
|
5061
|
+
danger: "",
|
|
4954
5062
|
"data-testid": "action-entity-delete",
|
|
4955
5063
|
"has-divider": "",
|
|
4956
|
-
|
|
4957
|
-
onClick: (re) => N(ee)
|
|
5064
|
+
onClick: (re) => j(ee)
|
|
4958
5065
|
}, {
|
|
4959
5066
|
default: p(() => [
|
|
4960
5067
|
G(C(c(l)("upstreams.actions.delete")), 1)
|
|
@@ -4967,7 +5074,7 @@ const $u = { class: "kong-ui-entities-upstreams-list" }, Mu = { class: "upstream
|
|
|
4967
5074
|
]),
|
|
4968
5075
|
_: 1
|
|
4969
5076
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
4970
|
-
y(c(
|
|
5077
|
+
y(c(Ns), {
|
|
4971
5078
|
"action-pending": U.value,
|
|
4972
5079
|
description: c(l)("upstreams.delete.description"),
|
|
4973
5080
|
"entity-name": B.value && (B.value.name || B.value.id),
|
|
@@ -4976,7 +5083,7 @@ const $u = { class: "kong-ui-entities-upstreams-list" }, Mu = { class: "upstream
|
|
|
4976
5083
|
title: c(l)("upstreams.delete.title"),
|
|
4977
5084
|
visible: H.value,
|
|
4978
5085
|
onCancel: Z,
|
|
4979
|
-
onProceed:
|
|
5086
|
+
onProceed: V
|
|
4980
5087
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
4981
5088
|
]);
|
|
4982
5089
|
};
|
|
@@ -4987,7 +5094,7 @@ const Ie = (e, a) => {
|
|
|
4987
5094
|
for (const [l, s] of a)
|
|
4988
5095
|
t[l] = s;
|
|
4989
5096
|
return t;
|
|
4990
|
-
},
|
|
5097
|
+
}, Rc = /* @__PURE__ */ Ie(zu, [["__scopeId", "data-v-17a73d62"]]), at = {
|
|
4991
5098
|
list: {
|
|
4992
5099
|
konnect: "/api/runtime_groups/{controlPlaneId}/upstreams/{upstreamId}/targets",
|
|
4993
5100
|
kongManager: "/{workspace}/upstreams/{upstreamId}/targets"
|
|
@@ -5004,10 +5111,10 @@ const Ie = (e, a) => {
|
|
|
5004
5111
|
validate: "/{workspace}/schemas/targets/validate"
|
|
5005
5112
|
}
|
|
5006
5113
|
}
|
|
5007
|
-
},
|
|
5114
|
+
}, Ju = { class: "kong-ui-entities-target-form" }, Wu = { class: "target-form-container" }, Yu = {
|
|
5008
5115
|
key: 0,
|
|
5009
5116
|
class: "target-form-info"
|
|
5010
|
-
},
|
|
5117
|
+
}, Qu = /* @__PURE__ */ le({
|
|
5011
5118
|
__name: "TargetForm",
|
|
5012
5119
|
props: {
|
|
5013
5120
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5033,10 +5140,10 @@ const Ie = (e, a) => {
|
|
|
5033
5140
|
setup(e, { emit: a }) {
|
|
5034
5141
|
var q;
|
|
5035
5142
|
const t = e;
|
|
5036
|
-
|
|
5037
|
-
"
|
|
5143
|
+
Nl(($) => ({
|
|
5144
|
+
"36f73404": A.value
|
|
5038
5145
|
}));
|
|
5039
|
-
const { i18n: { t: l } } = Se.useI18n(), { getMessageFromError: s } =
|
|
5146
|
+
const { i18n: { t: l } } = Se.useI18n(), { getMessageFromError: s } = js(), { axiosInstance: i } = ht({
|
|
5040
5147
|
headers: (q = t.config) == null ? void 0 : q.requestHeaders
|
|
5041
5148
|
}), o = F(() => {
|
|
5042
5149
|
var $;
|
|
@@ -5082,13 +5189,13 @@ const Ie = (e, a) => {
|
|
|
5082
5189
|
const S = {
|
|
5083
5190
|
target: u.fields.target,
|
|
5084
5191
|
weight: parseInt(u.fields.weight),
|
|
5085
|
-
tags: (B = (J = ($ = u.fields.tags) == null ? void 0 : $.split(",")) == null ? void 0 : J.map((
|
|
5192
|
+
tags: (B = (J = ($ = u.fields.tags) == null ? void 0 : $.split(",")) == null ? void 0 : J.map((j) => String(j || "").trim())) == null ? void 0 : B.filter((j) => j !== ""),
|
|
5086
5193
|
upstream: { id: t.config.upstreamId }
|
|
5087
5194
|
};
|
|
5088
|
-
let
|
|
5089
|
-
if (await i.post(g.value, S), d.value === "create" ?
|
|
5090
|
-
const { data:
|
|
5091
|
-
u.fields.target = (
|
|
5195
|
+
let M;
|
|
5196
|
+
if (await i.post(g.value, S), d.value === "create" ? M = await i.post(O.value, S) : d.value === "edit" && (M = ((H = t.config) == null ? void 0 : H.app) === "konnect" ? await i.put(O.value, S) : await i.patch(O.value, S)), M) {
|
|
5197
|
+
const { data: j } = M;
|
|
5198
|
+
u.fields.target = (j == null ? void 0 : j.name) || "", u.fields.weight = (j == null ? void 0 : j.weight) ?? 100, u.fields.tags = ((U = j == null ? void 0 : j.tags) == null ? void 0 : U.join(", ")) || "", a("update", j), Object.assign(u.fields, h);
|
|
5092
5199
|
}
|
|
5093
5200
|
} catch (S) {
|
|
5094
5201
|
u.errorMessage = s(S), a("error", S);
|
|
@@ -5099,8 +5206,8 @@ const Ie = (e, a) => {
|
|
|
5099
5206
|
return ge(() => t.targetId, () => {
|
|
5100
5207
|
Object.assign(u.fields, h);
|
|
5101
5208
|
}), ($, J) => {
|
|
5102
|
-
const B =
|
|
5103
|
-
return b(),
|
|
5209
|
+
const B = N("KInput"), H = N("KPrompt");
|
|
5210
|
+
return b(), L(H, {
|
|
5104
5211
|
"action-button-text": c(l)("targets.form.buttons.save"),
|
|
5105
5212
|
"action-pending": !k.value || u.isReadonly,
|
|
5106
5213
|
"cancel-button-text": c(l)("targets.form.buttons.cancel"),
|
|
@@ -5110,8 +5217,8 @@ const Ie = (e, a) => {
|
|
|
5110
5217
|
onProceed: I
|
|
5111
5218
|
}, {
|
|
5112
5219
|
"body-content": p(() => [
|
|
5113
|
-
x("div",
|
|
5114
|
-
y(c(
|
|
5220
|
+
x("div", Ju, [
|
|
5221
|
+
y(c($s), {
|
|
5115
5222
|
config: e.config,
|
|
5116
5223
|
"edit-id": e.targetId,
|
|
5117
5224
|
"error-message": u.errorMessage,
|
|
@@ -5123,8 +5230,8 @@ const Ie = (e, a) => {
|
|
|
5123
5230
|
onLoading: J[4] || (J[4] = (U) => $.$emit("loading", U))
|
|
5124
5231
|
}, {
|
|
5125
5232
|
default: p(() => [
|
|
5126
|
-
x("div",
|
|
5127
|
-
$.$slots.info ? (b(), P("div",
|
|
5233
|
+
x("div", Wu, [
|
|
5234
|
+
$.$slots.info ? (b(), P("div", Yu, [
|
|
5128
5235
|
ae($.$slots, "info", {}, void 0, !0)
|
|
5129
5236
|
])) : Q("", !0),
|
|
5130
5237
|
y(B, {
|
|
@@ -5147,8 +5254,8 @@ const Ie = (e, a) => {
|
|
|
5147
5254
|
autocomplete: "off",
|
|
5148
5255
|
class: "target-form-input",
|
|
5149
5256
|
"data-testid": "target-form-weight",
|
|
5257
|
+
error: r.value,
|
|
5150
5258
|
"error-message": c(l)("targets.errors.weight"),
|
|
5151
|
-
"has-error": r.value,
|
|
5152
5259
|
label: c(l)("targets.form.fields.weight.label"),
|
|
5153
5260
|
"label-attributes": { info: c(l)("targets.form.fields.weight.tooltip") },
|
|
5154
5261
|
max: "65535",
|
|
@@ -5156,7 +5263,7 @@ const Ie = (e, a) => {
|
|
|
5156
5263
|
readonly: u.isReadonly,
|
|
5157
5264
|
required: "",
|
|
5158
5265
|
type: "number"
|
|
5159
|
-
}, null, 8, ["modelValue", "error
|
|
5266
|
+
}, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "readonly"]),
|
|
5160
5267
|
y(B, {
|
|
5161
5268
|
modelValue: u.fields.tags,
|
|
5162
5269
|
"onUpdate:modelValue": J[2] || (J[2] = (U) => u.fields.tags = U),
|
|
@@ -5181,7 +5288,7 @@ const Ie = (e, a) => {
|
|
|
5181
5288
|
};
|
|
5182
5289
|
}
|
|
5183
5290
|
});
|
|
5184
|
-
const
|
|
5291
|
+
const Gu = /* @__PURE__ */ Ie(Qu, [["__scopeId", "data-v-d291c3d9"]]), Zu = { class: "kong-ui-entities-targets-list" }, Xu = { class: "target-address" }, ec = /* @__PURE__ */ le({
|
|
5185
5292
|
__name: "TargetsList",
|
|
5186
5293
|
props: {
|
|
5187
5294
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5227,7 +5334,7 @@ const Bu = /* @__PURE__ */ Ie(Eu, [["__scopeId", "data-v-77134304"]]), Lu = { cl
|
|
|
5227
5334
|
var T, v, _, ee;
|
|
5228
5335
|
let W = `${t.config.apiBaseUrl}${at.list[t.config.app]}`;
|
|
5229
5336
|
return t.config.app === "konnect" ? W = W.replace(/{controlPlaneId}/gi, ((T = t.config) == null ? void 0 : T.controlPlaneId) || "").replace(/{upstreamId}/gi, ((v = t.config) == null ? void 0 : v.upstreamId) || "") : t.config.app === "kongManager" && (W = W.replace(/\/{workspace}/gi, (_ = t.config) != null && _.workspace ? `/${t.config.workspace}` : "").replace(/{upstreamId}/gi, ((ee = t.config) == null ? void 0 : ee.upstreamId) || "")), W;
|
|
5230
|
-
}), { fetcher: f, fetcherState: h } =
|
|
5337
|
+
}), { fetcher: f, fetcherState: h } = Ps(t.config, u.value), r = () => {
|
|
5231
5338
|
i.value++;
|
|
5232
5339
|
}, k = E(""), w = () => {
|
|
5233
5340
|
z.value = !0;
|
|
@@ -5260,12 +5367,12 @@ const Bu = /* @__PURE__ */ Ie(Eu, [["__scopeId", "data-v-77134304"]]), Lu = { cl
|
|
|
5260
5367
|
message: l("targets.copy.success_brief")
|
|
5261
5368
|
});
|
|
5262
5369
|
}, O = (W) => {
|
|
5263
|
-
|
|
5264
|
-
}, I = (W) => t.config.app === "konnect" ? !1 : t.config.canMarkHealthy(W), A = (W) => t.config.app === "konnect" ? !1 : t.config.canMarkUnhealthy(W), q = E(void 0), $ = E(!1), J = E(!1), B = E(""), H =
|
|
5370
|
+
V.value = W, z.value = !0;
|
|
5371
|
+
}, I = (W) => t.config.app === "konnect" ? !1 : t.config.canMarkHealthy(W), A = (W) => t.config.app === "konnect" ? !1 : t.config.canMarkUnhealthy(W), q = E(void 0), $ = E(!1), J = E(!1), B = E(""), H = Ks(t.config, u.value), U = (W) => {
|
|
5265
5372
|
q.value = W, $.value = !0;
|
|
5266
5373
|
}, S = () => {
|
|
5267
5374
|
$.value = !1;
|
|
5268
|
-
},
|
|
5375
|
+
}, M = async () => {
|
|
5269
5376
|
var W, T, v;
|
|
5270
5377
|
if ((W = q.value) != null && W.id) {
|
|
5271
5378
|
J.value = !0;
|
|
@@ -5285,7 +5392,7 @@ const Bu = /* @__PURE__ */ Ie(Eu, [["__scopeId", "data-v-77134304"]]), Lu = { cl
|
|
|
5285
5392
|
}
|
|
5286
5393
|
k.value = "";
|
|
5287
5394
|
});
|
|
5288
|
-
const
|
|
5395
|
+
const j = E({
|
|
5289
5396
|
ctaText: void 0,
|
|
5290
5397
|
message: l("targets.list.empty_state.description"),
|
|
5291
5398
|
title: l("targets.title"),
|
|
@@ -5295,7 +5402,7 @@ const Bu = /* @__PURE__ */ Ie(Eu, [["__scopeId", "data-v-77134304"]]), Lu = { cl
|
|
|
5295
5402
|
}
|
|
5296
5403
|
});
|
|
5297
5404
|
Ze(async () => {
|
|
5298
|
-
await t.canCreate() && (
|
|
5405
|
+
await t.canCreate() && (j.value.title = l("targets.list.empty_state.title"), j.value.ctaText = l("targets.actions.create"));
|
|
5299
5406
|
});
|
|
5300
5407
|
const Z = F(() => ({
|
|
5301
5408
|
app: t.config.app,
|
|
@@ -5310,21 +5417,21 @@ const Bu = /* @__PURE__ */ Ie(Eu, [["__scopeId", "data-v-77134304"]]), Lu = { cl
|
|
|
5310
5417
|
workspace: t.config.workspace,
|
|
5311
5418
|
requestHeaders: t.config.requestHeaders
|
|
5312
5419
|
}
|
|
5313
|
-
})),
|
|
5314
|
-
|
|
5315
|
-
},
|
|
5420
|
+
})), V = E(""), z = E(!1), X = (W) => {
|
|
5421
|
+
V.value ? a("update:target", W) : a("create:target", W), K();
|
|
5422
|
+
}, K = () => {
|
|
5316
5423
|
D(), i.value++;
|
|
5317
5424
|
}, D = () => {
|
|
5318
|
-
z.value = !1,
|
|
5425
|
+
z.value = !1, V.value = "";
|
|
5319
5426
|
};
|
|
5320
5427
|
return (W, T) => {
|
|
5321
|
-
const v =
|
|
5322
|
-
return b(), P("div",
|
|
5323
|
-
y(c(
|
|
5428
|
+
const v = N("KButton"), _ = N("KBadge"), ee = N("KTruncate"), re = N("KDropdownItem"), ve = N("KClipboardProvider");
|
|
5429
|
+
return b(), P("div", Zu, [
|
|
5430
|
+
y(c(Ms), {
|
|
5324
5431
|
"cache-identifier": e.cacheIdentifier,
|
|
5325
5432
|
"disable-pagination-page-jump": "",
|
|
5326
5433
|
"disable-sorting": o.value,
|
|
5327
|
-
"empty-state-options":
|
|
5434
|
+
"empty-state-options": j.value,
|
|
5328
5435
|
"enable-entity-actions": "",
|
|
5329
5436
|
"error-message": k.value,
|
|
5330
5437
|
fetcher: c(f),
|
|
@@ -5357,12 +5464,12 @@ const Bu = /* @__PURE__ */ Ie(Eu, [["__scopeId", "data-v-77134304"]]), Lu = { cl
|
|
|
5357
5464
|
}, 8, ["auth-function"])
|
|
5358
5465
|
]),
|
|
5359
5466
|
target: p(({ rowValue: te }) => [
|
|
5360
|
-
x("span",
|
|
5467
|
+
x("span", Xu, C(te), 1)
|
|
5361
5468
|
]),
|
|
5362
5469
|
tags: p(({ rowValue: te }) => [
|
|
5363
5470
|
y(ee, null, {
|
|
5364
5471
|
default: p(() => [
|
|
5365
|
-
(b(!0), P(ce, null, me(te, (ne) => (b(),
|
|
5472
|
+
(b(!0), P(ce, null, me(te, (ne) => (b(), L(_, {
|
|
5366
5473
|
key: ne,
|
|
5367
5474
|
"max-width": "auto"
|
|
5368
5475
|
}, {
|
|
@@ -5380,7 +5487,7 @@ const Bu = /* @__PURE__ */ Ie(Eu, [["__scopeId", "data-v-77134304"]]), Lu = { cl
|
|
|
5380
5487
|
default: p(({ copyToClipboard: ne }) => [
|
|
5381
5488
|
y(re, {
|
|
5382
5489
|
"data-testid": "action-entity-copy-id",
|
|
5383
|
-
onClick: (
|
|
5490
|
+
onClick: (Oe) => m(te, ne)
|
|
5384
5491
|
}, {
|
|
5385
5492
|
default: p(() => [
|
|
5386
5493
|
G(C(c(l)("targets.actions.copy_id")), 1)
|
|
@@ -5394,7 +5501,7 @@ const Bu = /* @__PURE__ */ Ie(Eu, [["__scopeId", "data-v-77134304"]]), Lu = { cl
|
|
|
5394
5501
|
default: p(({ copyToClipboard: ne }) => [
|
|
5395
5502
|
y(re, {
|
|
5396
5503
|
"data-testid": "action-entity-copy-json",
|
|
5397
|
-
onClick: (
|
|
5504
|
+
onClick: (Oe) => g(te, ne)
|
|
5398
5505
|
}, {
|
|
5399
5506
|
default: p(() => [
|
|
5400
5507
|
G(C(c(l)("targets.actions.copy_json")), 1)
|
|
@@ -5458,9 +5565,9 @@ const Bu = /* @__PURE__ */ Ie(Eu, [["__scopeId", "data-v-77134304"]]), Lu = { cl
|
|
|
5458
5565
|
}, {
|
|
5459
5566
|
default: p(() => [
|
|
5460
5567
|
y(re, {
|
|
5568
|
+
danger: "",
|
|
5461
5569
|
"data-testid": "action-entity-delete",
|
|
5462
5570
|
"has-divider": "",
|
|
5463
|
-
"is-dangerous": "",
|
|
5464
5571
|
onClick: (ne) => U(te)
|
|
5465
5572
|
}, {
|
|
5466
5573
|
default: p(() => [
|
|
@@ -5474,7 +5581,7 @@ const Bu = /* @__PURE__ */ Ie(Eu, [["__scopeId", "data-v-77134304"]]), Lu = { cl
|
|
|
5474
5581
|
]),
|
|
5475
5582
|
_: 1
|
|
5476
5583
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "table-headers"]),
|
|
5477
|
-
y(c(
|
|
5584
|
+
y(c(Ns), {
|
|
5478
5585
|
"action-pending": J.value,
|
|
5479
5586
|
description: c(l)("targets.delete.description"),
|
|
5480
5587
|
"entity-type": c(Mt).Target,
|
|
@@ -5483,12 +5590,12 @@ const Bu = /* @__PURE__ */ Ie(Eu, [["__scopeId", "data-v-77134304"]]), Lu = { cl
|
|
|
5483
5590
|
title: c(l)("targets.delete.title"),
|
|
5484
5591
|
visible: $.value,
|
|
5485
5592
|
onCancel: S,
|
|
5486
|
-
onProceed:
|
|
5593
|
+
onProceed: M
|
|
5487
5594
|
}, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"]),
|
|
5488
|
-
y(
|
|
5595
|
+
y(Gu, {
|
|
5489
5596
|
config: Z.value,
|
|
5490
5597
|
"is-visible": z.value,
|
|
5491
|
-
"target-id":
|
|
5598
|
+
"target-id": V.value,
|
|
5492
5599
|
onCancel: D,
|
|
5493
5600
|
onUpdate: X
|
|
5494
5601
|
}, He({ _: 2 }, [
|
|
@@ -5504,7 +5611,7 @@ const Bu = /* @__PURE__ */ Ie(Eu, [["__scopeId", "data-v-77134304"]]), Lu = { cl
|
|
|
5504
5611
|
};
|
|
5505
5612
|
}
|
|
5506
5613
|
});
|
|
5507
|
-
const
|
|
5614
|
+
const Dc = /* @__PURE__ */ Ie(ec, [["__scopeId", "data-v-45474b4f"]]), tc = { key: 1 }, ac = /* @__PURE__ */ le({
|
|
5508
5615
|
__name: "UpstreamsFormGeneralInfo",
|
|
5509
5616
|
props: {
|
|
5510
5617
|
config: {
|
|
@@ -5535,14 +5642,14 @@ const Mc = /* @__PURE__ */ Ie(Ru, [["__scopeId", "data-v-aba40390"]]), Du = { ke
|
|
|
5535
5642
|
},
|
|
5536
5643
|
emits: ["update:name", "update:host-header", "update:client-certificate", "update:tags"],
|
|
5537
5644
|
setup(e, { emit: a }) {
|
|
5538
|
-
var S,
|
|
5645
|
+
var S, M, j, Z;
|
|
5539
5646
|
const t = e, { i18nT: l, i18n: { t: s } } = Se.useI18n(), {
|
|
5540
5647
|
debouncedQueryChange: i,
|
|
5541
5648
|
loading: o,
|
|
5542
5649
|
loadItems: d,
|
|
5543
5650
|
results: n,
|
|
5544
5651
|
allRecords: u
|
|
5545
|
-
} =
|
|
5652
|
+
} = ql(t.config, (M = Re.form[(S = t.config) == null ? void 0 : S.app]) == null ? void 0 : M.getServices, "", {
|
|
5546
5653
|
fetchedItemsKey: "data",
|
|
5547
5654
|
searchKeys: ["host"]
|
|
5548
5655
|
}), {
|
|
@@ -5550,50 +5657,50 @@ const Mc = /* @__PURE__ */ Ie(Ru, [["__scopeId", "data-v-aba40390"]]), Du = { ke
|
|
|
5550
5657
|
loading: h,
|
|
5551
5658
|
loadItems: r,
|
|
5552
5659
|
results: k
|
|
5553
|
-
} =
|
|
5554
|
-
var
|
|
5555
|
-
return !!t.name && !((
|
|
5660
|
+
} = ql(t.config, (Z = Re.form[(j = t.config) == null ? void 0 : j.app]) == null ? void 0 : Z.getCertificates), w = E(""), m = F(() => {
|
|
5661
|
+
var V;
|
|
5662
|
+
return !!t.name && !((V = u.value) != null && V.some((z) => z.host === t.name));
|
|
5556
5663
|
}), g = F(() => {
|
|
5557
|
-
var z, X,
|
|
5558
|
-
const
|
|
5559
|
-
return (
|
|
5560
|
-
|
|
5664
|
+
var z, X, K;
|
|
5665
|
+
const V = m.value && t.name.includes((z = w.value) == null ? void 0 : z.toLowerCase());
|
|
5666
|
+
return (K = n.value) == null ? void 0 : K.map((D) => ({ label: D.host, value: D.id })).concat(
|
|
5667
|
+
V ? [{ label: t.name, value: ((X = A.value) == null ? void 0 : X.value) || t.name }] : []
|
|
5561
5668
|
);
|
|
5562
5669
|
}), O = F(() => {
|
|
5563
|
-
var
|
|
5564
|
-
return (
|
|
5670
|
+
var V;
|
|
5671
|
+
return (V = k.value) == null ? void 0 : V.map((z) => ({ label: z.id, value: z.id }));
|
|
5565
5672
|
}), I = E(""), A = E({ value: "", label: "" }), q = F(() => {
|
|
5566
|
-
var
|
|
5567
|
-
return ((
|
|
5568
|
-
}), $ = (
|
|
5569
|
-
w.value =
|
|
5570
|
-
}, J = (
|
|
5571
|
-
A.value =
|
|
5673
|
+
var V, z;
|
|
5674
|
+
return ((V = g.value.find((X) => X.value === I.value)) == null ? void 0 : V.label) || ((z = A.value) == null ? void 0 : z.label);
|
|
5675
|
+
}), $ = (V) => {
|
|
5676
|
+
w.value = V, i(V);
|
|
5677
|
+
}, J = (V) => {
|
|
5678
|
+
A.value = V;
|
|
5572
5679
|
}, B = () => {
|
|
5573
5680
|
A.value = { value: "", label: "" };
|
|
5574
|
-
}, H = (
|
|
5575
|
-
I.value =
|
|
5681
|
+
}, H = (V) => {
|
|
5682
|
+
I.value = V, a("update:name", q.value);
|
|
5576
5683
|
}, U = E(!1);
|
|
5577
5684
|
return Ze(async () => {
|
|
5578
|
-
var
|
|
5685
|
+
var V, z;
|
|
5579
5686
|
try {
|
|
5580
|
-
U.value = !0, await d(), t.name && (I.value = ((z = (
|
|
5687
|
+
U.value = !0, await d(), t.name && (I.value = ((z = (V = g.value.find((X) => X.label === t.name)) == null ? void 0 : V.value) == null ? void 0 : z.toString()) || t.name), await r();
|
|
5581
5688
|
} finally {
|
|
5582
5689
|
U.value = !1;
|
|
5583
5690
|
}
|
|
5584
|
-
}), (
|
|
5585
|
-
const X =
|
|
5586
|
-
return b(),
|
|
5691
|
+
}), (V, z) => {
|
|
5692
|
+
const X = N("KSkeleton"), K = N("KSelect"), D = N("KInput");
|
|
5693
|
+
return b(), L(c(Xe), {
|
|
5587
5694
|
class: "kong-ui-entities-upstreams-general-info",
|
|
5588
5695
|
description: c(s)("upstreams.form.general_info.help"),
|
|
5589
5696
|
title: c(s)("upstreams.form.general_info.title")
|
|
5590
5697
|
}, {
|
|
5591
5698
|
default: p(() => [
|
|
5592
|
-
U.value ? (b(),
|
|
5699
|
+
U.value ? (b(), L(X, {
|
|
5593
5700
|
key: 0,
|
|
5594
5701
|
type: "form"
|
|
5595
|
-
})) : (b(), P("div",
|
|
5596
|
-
y(
|
|
5702
|
+
})) : (b(), P("div", tc, [
|
|
5703
|
+
y(K, {
|
|
5597
5704
|
appearance: "select",
|
|
5598
5705
|
autosuggest: "",
|
|
5599
5706
|
class: "name-select margin-bottom-6",
|
|
@@ -5638,7 +5745,7 @@ const Mc = /* @__PURE__ */ Ie(Ru, [["__scopeId", "data-v-aba40390"]]), Du = { ke
|
|
|
5638
5745
|
type: "text",
|
|
5639
5746
|
"onUpdate:modelValue": z[0] || (z[0] = (Y) => a("update:host-header", Y))
|
|
5640
5747
|
}, null, 8, ["label", "model-value", "readonly"]),
|
|
5641
|
-
y(
|
|
5748
|
+
y(K, {
|
|
5642
5749
|
appearance: "select",
|
|
5643
5750
|
autosuggest: "",
|
|
5644
5751
|
class: "certificate-select margin-bottom-6",
|
|
@@ -5675,10 +5782,10 @@ const Mc = /* @__PURE__ */ Ie(Ru, [["__scopeId", "data-v-aba40390"]]), Du = { ke
|
|
|
5675
5782
|
};
|
|
5676
5783
|
}
|
|
5677
5784
|
});
|
|
5678
|
-
const
|
|
5785
|
+
const lc = /* @__PURE__ */ Ie(ac, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
5679
5786
|
upstreamObject: "https://docs.konghq.com/gateway/latest/admin-api/#upstream-object",
|
|
5680
5787
|
loadBalancing: "https://docs.konghq.com/gateway/latest/how-kong-works/load-balancing/#main"
|
|
5681
|
-
},
|
|
5788
|
+
}, sc = { class: "fields-group-title" }, rc = { class: "fields-group-text" }, ic = { class: "fields-group-title" }, nc = { class: "fields-group-text" }, oc = /* @__PURE__ */ le({
|
|
5682
5789
|
__name: "UpstreamsFormLoadBalancing",
|
|
5683
5790
|
props: {
|
|
5684
5791
|
algorithm: {
|
|
@@ -5807,8 +5914,8 @@ const Ju = /* @__PURE__ */ Ie(zu, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
5807
5914
|
});
|
|
5808
5915
|
const n = F(() => t.hashOn === "cookie" || t.hashOn === "none"), u = F(() => t.slots ? i(t.slots, Ht, Tt) ? "" : s("upstreams.form.errors.in_range") : "");
|
|
5809
5916
|
return (f, h) => {
|
|
5810
|
-
const r =
|
|
5811
|
-
return b(),
|
|
5917
|
+
const r = N("KExternalLink"), k = N("KSelect"), w = N("KInput"), m = N("KCard");
|
|
5918
|
+
return b(), L(c(Xe), {
|
|
5812
5919
|
class: "kong-ui-entities-upstreams-load-balancing",
|
|
5813
5920
|
title: c(s)("upstreams.form.load_balancing.title")
|
|
5814
5921
|
}, {
|
|
@@ -5840,8 +5947,8 @@ const Ju = /* @__PURE__ */ Ie(zu, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
5840
5947
|
y(w, {
|
|
5841
5948
|
autocomplete: "off",
|
|
5842
5949
|
"data-testid": "upstreams-form-slots",
|
|
5950
|
+
error: !!u.value,
|
|
5843
5951
|
"error-message": u.value,
|
|
5844
|
-
"has-error": !!u.value,
|
|
5845
5952
|
help: c(s)("upstreams.form.fields.slots.help"),
|
|
5846
5953
|
label: c(s)("upstreams.form.fields.slots.label"),
|
|
5847
5954
|
max: c(Tt),
|
|
@@ -5850,11 +5957,11 @@ const Ju = /* @__PURE__ */ Ie(zu, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
5850
5957
|
readonly: e.readonly,
|
|
5851
5958
|
type: "number",
|
|
5852
5959
|
"onUpdate:modelValue": h[1] || (h[1] = (g) => a("update:slots", g))
|
|
5853
|
-
}, null, 8, ["error
|
|
5960
|
+
}, null, 8, ["error", "error-message", "help", "label", "max", "min", "model-value", "readonly"]),
|
|
5854
5961
|
y(m, null, {
|
|
5855
5962
|
body: p(() => [
|
|
5856
|
-
x("h5",
|
|
5857
|
-
x("p",
|
|
5963
|
+
x("h5", sc, C(c(s)("upstreams.form.fields.hash_on.label")), 1),
|
|
5964
|
+
x("p", rc, C(c(s)("upstreams.form.fields.hash_on.help")), 1),
|
|
5858
5965
|
y(k, {
|
|
5859
5966
|
appearance: "select",
|
|
5860
5967
|
class: "hash-on-select",
|
|
@@ -5865,7 +5972,7 @@ const Ju = /* @__PURE__ */ Ie(zu, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
5865
5972
|
width: "100%",
|
|
5866
5973
|
"onUpdate:modelValue": h[2] || (h[2] = (g) => a("update:hash-on", g))
|
|
5867
5974
|
}, null, 8, ["items", "label", "model-value", "readonly"]),
|
|
5868
|
-
e.hashOn === "header" ? (b(),
|
|
5975
|
+
e.hashOn === "header" ? (b(), L(w, {
|
|
5869
5976
|
key: 0,
|
|
5870
5977
|
autocomplete: "off",
|
|
5871
5978
|
class: "margin-top-6",
|
|
@@ -5901,7 +6008,7 @@ const Ju = /* @__PURE__ */ Ie(zu, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
5901
6008
|
"onUpdate:modelValue": h[5] || (h[5] = (g) => a("update:hash-on-cookie-path", g))
|
|
5902
6009
|
}, null, 8, ["label", "model-value", "readonly"])
|
|
5903
6010
|
], 64)) : Q("", !0),
|
|
5904
|
-
e.hashOn === "query_arg" ? (b(),
|
|
6011
|
+
e.hashOn === "query_arg" ? (b(), L(w, {
|
|
5905
6012
|
key: 2,
|
|
5906
6013
|
autocomplete: "off",
|
|
5907
6014
|
class: "margin-top-6",
|
|
@@ -5913,7 +6020,7 @@ const Ju = /* @__PURE__ */ Ie(zu, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
5913
6020
|
type: "text",
|
|
5914
6021
|
"onUpdate:modelValue": h[6] || (h[6] = (g) => a("update:hash-on-query-argument", g))
|
|
5915
6022
|
}, null, 8, ["label", "model-value", "readonly"])) : Q("", !0),
|
|
5916
|
-
e.hashOn === "uri_capture" ? (b(),
|
|
6023
|
+
e.hashOn === "uri_capture" ? (b(), L(w, {
|
|
5917
6024
|
key: 3,
|
|
5918
6025
|
autocomplete: "off",
|
|
5919
6026
|
class: "margin-top-6",
|
|
@@ -5930,8 +6037,8 @@ const Ju = /* @__PURE__ */ Ie(zu, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
5930
6037
|
}),
|
|
5931
6038
|
y(m, null, {
|
|
5932
6039
|
body: p(() => [
|
|
5933
|
-
x("h5",
|
|
5934
|
-
x("p",
|
|
6040
|
+
x("h5", ic, C(c(s)("upstreams.form.fields.hash_fallback.label")), 1),
|
|
6041
|
+
x("p", nc, C(c(s)("upstreams.form.fields.hash_fallback.help")), 1),
|
|
5935
6042
|
y(k, {
|
|
5936
6043
|
appearance: "select",
|
|
5937
6044
|
class: "hash-fallback-select",
|
|
@@ -5960,7 +6067,7 @@ const Ju = /* @__PURE__ */ Ie(zu, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
5960
6067
|
]),
|
|
5961
6068
|
_: 1
|
|
5962
6069
|
}, 8, ["disabled", "items", "label", "model-value", "readonly"]),
|
|
5963
|
-
e.hashFallback === "header" ? (b(),
|
|
6070
|
+
e.hashFallback === "header" ? (b(), L(w, {
|
|
5964
6071
|
key: 0,
|
|
5965
6072
|
autocomplete: "off",
|
|
5966
6073
|
class: "margin-top-6",
|
|
@@ -5996,7 +6103,7 @@ const Ju = /* @__PURE__ */ Ie(zu, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
5996
6103
|
"onUpdate:modelValue": h[11] || (h[11] = (g) => a("update:hash-on-cookie-path", g))
|
|
5997
6104
|
}, null, 8, ["label", "model-value", "readonly"])
|
|
5998
6105
|
], 64)) : Q("", !0),
|
|
5999
|
-
e.hashFallback === "query_arg" ? (b(),
|
|
6106
|
+
e.hashFallback === "query_arg" ? (b(), L(w, {
|
|
6000
6107
|
key: 2,
|
|
6001
6108
|
autocomplete: "off",
|
|
6002
6109
|
class: "margin-top-6",
|
|
@@ -6008,7 +6115,7 @@ const Ju = /* @__PURE__ */ Ie(zu, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
6008
6115
|
type: "text",
|
|
6009
6116
|
"onUpdate:modelValue": h[12] || (h[12] = (g) => a("update:hash-fallback-query-argument", g))
|
|
6010
6117
|
}, null, 8, ["label", "model-value", "readonly"])) : Q("", !0),
|
|
6011
|
-
e.hashFallback === "uri_capture" ? (b(),
|
|
6118
|
+
e.hashFallback === "uri_capture" ? (b(), L(w, {
|
|
6012
6119
|
key: 3,
|
|
6013
6120
|
autocomplete: "off",
|
|
6014
6121
|
class: "margin-top-6",
|
|
@@ -6029,7 +6136,7 @@ const Ju = /* @__PURE__ */ Ie(zu, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
6029
6136
|
};
|
|
6030
6137
|
}
|
|
6031
6138
|
});
|
|
6032
|
-
const
|
|
6139
|
+
const uc = /* @__PURE__ */ Ie(oc, [["__scopeId", "data-v-678db4c1"]]), cc = { class: "fields-group-title" }, dc = { class: "fields-group-text" }, hc = { class: "fields-group-title" }, pc = { class: "fields-group-text" }, fc = /* @__PURE__ */ le({
|
|
6033
6140
|
__name: "UpstreamsFormHealthChecks",
|
|
6034
6141
|
props: {
|
|
6035
6142
|
activeHealthSwitch: {
|
|
@@ -6054,8 +6161,8 @@ const Xu = /* @__PURE__ */ Ie(Zu, [["__scopeId", "data-v-522adce0"]]), ec = { cl
|
|
|
6054
6161
|
setup(e, { emit: a }) {
|
|
6055
6162
|
const { i18n: { t } } = Se.useI18n();
|
|
6056
6163
|
return (l, s) => {
|
|
6057
|
-
const i =
|
|
6058
|
-
return b(),
|
|
6164
|
+
const i = N("KExternalLink"), o = N("KInputSwitch"), d = N("KCard"), n = N("KInput");
|
|
6165
|
+
return b(), L(c(Xe), {
|
|
6059
6166
|
class: "kong-ui-entities-upstreams-healthchecks",
|
|
6060
6167
|
title: c(t)("upstreams.form.health_check.title")
|
|
6061
6168
|
}, {
|
|
@@ -6076,8 +6183,8 @@ const Xu = /* @__PURE__ */ Ie(Zu, [["__scopeId", "data-v-522adce0"]]), ec = { cl
|
|
|
6076
6183
|
default: p(() => [
|
|
6077
6184
|
y(d, null, {
|
|
6078
6185
|
body: p(() => [
|
|
6079
|
-
x("h5",
|
|
6080
|
-
x("p",
|
|
6186
|
+
x("h5", cc, C(c(t)("upstreams.form.fields.active_health_checks.label")), 1),
|
|
6187
|
+
x("p", dc, C(c(t)("upstreams.form.fields.active_health_checks.help")), 1),
|
|
6081
6188
|
y(o, {
|
|
6082
6189
|
class: "active-health-switch",
|
|
6083
6190
|
"data-testid": "active-health-switch",
|
|
@@ -6090,8 +6197,8 @@ const Xu = /* @__PURE__ */ Ie(Zu, [["__scopeId", "data-v-522adce0"]]), ec = { cl
|
|
|
6090
6197
|
}),
|
|
6091
6198
|
y(d, null, {
|
|
6092
6199
|
body: p(() => [
|
|
6093
|
-
x("h5",
|
|
6094
|
-
x("p",
|
|
6200
|
+
x("h5", hc, C(c(t)("upstreams.form.fields.passive_health_checks.label")), 1),
|
|
6201
|
+
x("p", pc, C(c(t)("upstreams.form.fields.passive_health_checks.help")), 1),
|
|
6095
6202
|
y(o, {
|
|
6096
6203
|
class: "passive-health-switch",
|
|
6097
6204
|
"data-testid": "passive-health-switch",
|
|
@@ -6106,8 +6213,8 @@ const Xu = /* @__PURE__ */ Ie(Zu, [["__scopeId", "data-v-522adce0"]]), ec = { cl
|
|
|
6106
6213
|
autocomplete: "off",
|
|
6107
6214
|
"data-testid": "upstreams-form-healthchecks-threshold",
|
|
6108
6215
|
label: c(t)("upstreams.form.fields.healthchecks_threshold.label"),
|
|
6109
|
-
max: c(
|
|
6110
|
-
min: c(
|
|
6216
|
+
max: c(Pu),
|
|
6217
|
+
min: c(ju),
|
|
6111
6218
|
"model-value": e.healthchecksThreshold,
|
|
6112
6219
|
readonly: e.readonly,
|
|
6113
6220
|
type: "number",
|
|
@@ -6119,7 +6226,7 @@ const Xu = /* @__PURE__ */ Ie(Zu, [["__scopeId", "data-v-522adce0"]]), ec = { cl
|
|
|
6119
6226
|
};
|
|
6120
6227
|
}
|
|
6121
6228
|
});
|
|
6122
|
-
const
|
|
6229
|
+
const mc = /* @__PURE__ */ Ie(fc, [["__scopeId", "data-v-7fda4841"]]), gc = { key: 2 }, yc = { class: "fields-group-title" }, vc = { class: "fields-group-text" }, bc = { class: "fields-group-title" }, kc = { class: "fields-group-text" }, Cc = /* @__PURE__ */ le({
|
|
6123
6230
|
__name: "UpstreamsFormActiveHealthCheck",
|
|
6124
6231
|
props: {
|
|
6125
6232
|
config: {
|
|
@@ -6226,7 +6333,7 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6226
6333
|
trackNewItems: u
|
|
6227
6334
|
} = Ge({ replaceId: !0 });
|
|
6228
6335
|
ge(() => t.type, (w, m) => {
|
|
6229
|
-
m === "tcp" && w !== m && a("update:tcp-failures", "5"), (m === "https" || m === "grpcs") && w !== m && (a("update:https-sni", ""), a("update:verify-ssl", !1)), m !== "tcp" && w === "tcp" && (a("update:http-path", "/"), a("update:http-statuses", At), a("update:unhealthy-http-statuses",
|
|
6336
|
+
m === "tcp" && w !== m && a("update:tcp-failures", "5"), (m === "https" || m === "grpcs") && w !== m && (a("update:https-sni", ""), a("update:verify-ssl", !1)), m !== "tcp" && w === "tcp" && (a("update:http-path", "/"), a("update:http-statuses", At), a("update:unhealthy-http-statuses", Ot));
|
|
6230
6337
|
});
|
|
6231
6338
|
const f = E([{ key: "", values: "" }]);
|
|
6232
6339
|
ge(() => t.headers, (w) => {
|
|
@@ -6243,8 +6350,8 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6243
6350
|
w === 0 && f.value.length === 1 ? f.value[0] = { key: "", values: "" } : f.value.splice(w, 1), h();
|
|
6244
6351
|
};
|
|
6245
6352
|
return (w, m) => {
|
|
6246
|
-
const g =
|
|
6247
|
-
return b(),
|
|
6353
|
+
const g = N("KExternalLink"), O = N("KSelect"), I = N("KInput"), A = N("KCheckbox"), q = N("KLabel"), $ = N("KIcon"), J = N("KButton"), B = N("KMultiselect"), H = N("KCard");
|
|
6354
|
+
return b(), L(c(Xe), {
|
|
6248
6355
|
class: "kong-ui-entities-upstreams-active-healthcheck",
|
|
6249
6356
|
title: c(l)("upstreams.form.active_health_check.title")
|
|
6250
6357
|
}, {
|
|
@@ -6275,7 +6382,7 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6275
6382
|
width: "100%",
|
|
6276
6383
|
"onUpdate:modelValue": m[0] || (m[0] = (S) => a("update:type", S))
|
|
6277
6384
|
}, null, 8, ["items", "label", "model-value", "readonly"]),
|
|
6278
|
-
d.value ? Q("", !0) : (b(),
|
|
6385
|
+
d.value ? Q("", !0) : (b(), L(I, {
|
|
6279
6386
|
key: 0,
|
|
6280
6387
|
autocomplete: "off",
|
|
6281
6388
|
"data-testid": "active-healthcheck-http-path",
|
|
@@ -6289,8 +6396,8 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6289
6396
|
autocomplete: "off",
|
|
6290
6397
|
"data-testid": "active-healthcheck-timeout",
|
|
6291
6398
|
label: c(l)("upstreams.form.fields.timeout.label"),
|
|
6292
|
-
max: c(
|
|
6293
|
-
min: c(
|
|
6399
|
+
max: c(Bu),
|
|
6400
|
+
min: c(Eu),
|
|
6294
6401
|
"model-value": e.timeout,
|
|
6295
6402
|
readonly: e.readonly,
|
|
6296
6403
|
type: "number",
|
|
@@ -6300,8 +6407,8 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6300
6407
|
autocomplete: "off",
|
|
6301
6408
|
"data-testid": "active-healthcheck-concurrency",
|
|
6302
6409
|
label: c(l)("upstreams.form.fields.concurrency.label"),
|
|
6303
|
-
max: c(
|
|
6304
|
-
min: c(
|
|
6410
|
+
max: c(Lu),
|
|
6411
|
+
min: c(Vu),
|
|
6305
6412
|
"model-value": e.concurrency,
|
|
6306
6413
|
readonly: e.readonly,
|
|
6307
6414
|
type: "number",
|
|
@@ -6326,7 +6433,7 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6326
6433
|
"onUpdate:modelValue": m[5] || (m[5] = (S) => a("update:verify-ssl", S))
|
|
6327
6434
|
}, null, 8, ["disabled", "label", "model-value"])
|
|
6328
6435
|
], 64)) : Q("", !0),
|
|
6329
|
-
((U = e.config) == null ? void 0 : U.app) === "kongManager" ? (b(), P("div",
|
|
6436
|
+
((U = e.config) == null ? void 0 : U.app) === "kongManager" ? (b(), P("div", gc, [
|
|
6330
6437
|
y(q, {
|
|
6331
6438
|
info: c(l)("upstreams.form.fields.headers.tooltip_active"),
|
|
6332
6439
|
"tooltip-attributes": { maxWidth: "250px" }
|
|
@@ -6337,33 +6444,33 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6337
6444
|
_: 1
|
|
6338
6445
|
}, 8, ["info"]),
|
|
6339
6446
|
x("div", null, [
|
|
6340
|
-
(b(!0), P(ce, null, me(f.value, (S,
|
|
6341
|
-
key: `${S.header}_${
|
|
6342
|
-
class: Ae(["headers-row", { "margin-top-6":
|
|
6447
|
+
(b(!0), P(ce, null, me(f.value, (S, M) => (b(), P("div", {
|
|
6448
|
+
key: `${S.header}_${M}`,
|
|
6449
|
+
class: Ae(["headers-row", { "margin-top-6": M > 0 }])
|
|
6343
6450
|
}, [
|
|
6344
6451
|
y(I, {
|
|
6345
|
-
modelValue: f.value[
|
|
6346
|
-
"onUpdate:modelValue": (
|
|
6452
|
+
modelValue: f.value[M].key,
|
|
6453
|
+
"onUpdate:modelValue": (j) => f.value[M].key = j,
|
|
6347
6454
|
autocomplete: "off",
|
|
6348
|
-
"data-testid": `active-healthcheck-headers-header-${
|
|
6455
|
+
"data-testid": `active-healthcheck-headers-header-${M + 1}`,
|
|
6349
6456
|
readonly: e.readonly,
|
|
6350
6457
|
type: "text",
|
|
6351
6458
|
onBlur: h
|
|
6352
6459
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "readonly"]),
|
|
6353
6460
|
y(I, {
|
|
6354
|
-
modelValue: f.value[
|
|
6355
|
-
"onUpdate:modelValue": (
|
|
6461
|
+
modelValue: f.value[M].values,
|
|
6462
|
+
"onUpdate:modelValue": (j) => f.value[M].values = j,
|
|
6356
6463
|
autocomplete: "off",
|
|
6357
|
-
"data-testid": `active-healthcheck-headers-value-${
|
|
6464
|
+
"data-testid": `active-healthcheck-headers-value-${M + 1}`,
|
|
6358
6465
|
readonly: e.readonly,
|
|
6359
6466
|
type: "text",
|
|
6360
6467
|
onBlur: h
|
|
6361
6468
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "readonly"]),
|
|
6362
6469
|
y(J, {
|
|
6363
|
-
appearance: "
|
|
6470
|
+
appearance: "tertiary",
|
|
6364
6471
|
class: "btn-remove",
|
|
6365
6472
|
"data-testid": "btn-remove-header",
|
|
6366
|
-
onClick: (
|
|
6473
|
+
onClick: (j) => k(M)
|
|
6367
6474
|
}, {
|
|
6368
6475
|
icon: p(() => [
|
|
6369
6476
|
y($, {
|
|
@@ -6373,9 +6480,9 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6373
6480
|
]),
|
|
6374
6481
|
_: 2
|
|
6375
6482
|
}, 1032, ["onClick"]),
|
|
6376
|
-
f.value &&
|
|
6483
|
+
f.value && M === f.value.length - 1 ? (b(), L(J, {
|
|
6377
6484
|
key: 0,
|
|
6378
|
-
appearance: "
|
|
6485
|
+
appearance: "tertiary",
|
|
6379
6486
|
class: "btn-add-header",
|
|
6380
6487
|
"data-testid": "btn-add-header",
|
|
6381
6488
|
onClick: r
|
|
@@ -6394,16 +6501,16 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6394
6501
|
])) : Q("", !0),
|
|
6395
6502
|
y(H, null, {
|
|
6396
6503
|
body: p(() => [
|
|
6397
|
-
x("h5",
|
|
6398
|
-
x("p",
|
|
6504
|
+
x("h5", yc, C(c(l)("upstreams.form.healthy.label")), 1),
|
|
6505
|
+
x("p", vc, C(c(l)("upstreams.form.healthy.help")), 1),
|
|
6399
6506
|
y(I, {
|
|
6400
6507
|
autocomplete: "off",
|
|
6401
6508
|
class: "margin-bottom-6",
|
|
6402
6509
|
"data-testid": "active-healthcheck-interval",
|
|
6403
6510
|
help: c(l)("upstreams.form.fields.interval.help"),
|
|
6404
6511
|
label: c(l)("upstreams.form.fields.interval.label"),
|
|
6405
|
-
max: c(
|
|
6406
|
-
min: c(
|
|
6512
|
+
max: c(Ml),
|
|
6513
|
+
min: c($l),
|
|
6407
6514
|
"model-value": e.interval,
|
|
6408
6515
|
readonly: e.readonly,
|
|
6409
6516
|
type: "number",
|
|
@@ -6420,7 +6527,7 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6420
6527
|
type: "number",
|
|
6421
6528
|
"onUpdate:modelValue": m[7] || (m[7] = (S) => a("update:successes", S))
|
|
6422
6529
|
}, null, 8, ["label", "max", "min", "model-value", "readonly"]),
|
|
6423
|
-
d.value ? Q("", !0) : (b(),
|
|
6530
|
+
d.value ? Q("", !0) : (b(), L(B, {
|
|
6424
6531
|
key: 0,
|
|
6425
6532
|
autocomplete: "off",
|
|
6426
6533
|
class: "margin-top-6 active-healthcheck-http-statuses",
|
|
@@ -6439,22 +6546,22 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6439
6546
|
}),
|
|
6440
6547
|
y(H, null, {
|
|
6441
6548
|
body: p(() => [
|
|
6442
|
-
x("h5",
|
|
6443
|
-
x("p",
|
|
6549
|
+
x("h5", bc, C(c(l)("upstreams.form.unhealthy.label")), 1),
|
|
6550
|
+
x("p", kc, C(c(l)("upstreams.form.unhealthy.help")), 1),
|
|
6444
6551
|
y(I, {
|
|
6445
6552
|
autocomplete: "off",
|
|
6446
6553
|
class: "margin-bottom-6",
|
|
6447
6554
|
"data-testid": "active-healthcheck-unhealthy-interval",
|
|
6448
6555
|
help: c(l)("upstreams.form.fields.interval.help"),
|
|
6449
6556
|
label: c(l)("upstreams.form.fields.interval.label"),
|
|
6450
|
-
max: c(
|
|
6451
|
-
min: c(
|
|
6557
|
+
max: c(Ml),
|
|
6558
|
+
min: c($l),
|
|
6452
6559
|
"model-value": e.unhealthyInterval,
|
|
6453
6560
|
readonly: e.readonly,
|
|
6454
6561
|
type: "number",
|
|
6455
6562
|
"onUpdate:modelValue": m[11] || (m[11] = (S) => a("update:unhealthy-interval", S))
|
|
6456
6563
|
}, null, 8, ["help", "label", "max", "min", "model-value", "readonly"]),
|
|
6457
|
-
d.value ? (b(),
|
|
6564
|
+
d.value ? (b(), L(I, {
|
|
6458
6565
|
key: 0,
|
|
6459
6566
|
autocomplete: "off",
|
|
6460
6567
|
class: "margin-bottom-6",
|
|
@@ -6497,8 +6604,8 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6497
6604
|
autocomplete: "off",
|
|
6498
6605
|
"data-testid": "active-healthcheck-unhealthy-timeouts",
|
|
6499
6606
|
label: c(l)("upstreams.form.fields.timeouts.label"),
|
|
6500
|
-
max: c(
|
|
6501
|
-
min: c(
|
|
6607
|
+
max: c(Bs),
|
|
6608
|
+
min: c(Es),
|
|
6502
6609
|
"model-value": e.unhealthyTimeouts,
|
|
6503
6610
|
readonly: e.readonly,
|
|
6504
6611
|
type: "number",
|
|
@@ -6514,7 +6621,7 @@ const rc = /* @__PURE__ */ Ie(sc, [["__scopeId", "data-v-7fda4841"]]), ic = { ke
|
|
|
6514
6621
|
};
|
|
6515
6622
|
}
|
|
6516
6623
|
});
|
|
6517
|
-
const
|
|
6624
|
+
const _c = /* @__PURE__ */ Ie(Cc, [["__scopeId", "data-v-0a7d6cda"]]), wc = { class: "fields-group-title" }, Sc = { class: "fields-group-text" }, Ic = { class: "fields-group-title" }, xc = { class: "fields-group-text" }, Hc = /* @__PURE__ */ le({
|
|
6518
6625
|
__name: "UpstreamsFormPassiveHealthCheck",
|
|
6519
6626
|
props: {
|
|
6520
6627
|
type: {
|
|
@@ -6585,10 +6692,10 @@ const hc = /* @__PURE__ */ Ie(dc, [["__scopeId", "data-v-18b80e62"]]), pc = { cl
|
|
|
6585
6692
|
trackNewItems: d
|
|
6586
6693
|
} = Ge({ replaceId: !0 });
|
|
6587
6694
|
return ge(() => t.type, (n, u) => {
|
|
6588
|
-
u === "tcp" && n !== u && a("update:tcp-failures", "5"), u !== "tcp" && n === "tcp" && (a("update:http-statuses",
|
|
6695
|
+
u === "tcp" && n !== u && a("update:tcp-failures", "5"), u !== "tcp" && n === "tcp" && (a("update:http-statuses", Ft), a("update:unhealthy-http-statuses", Ut));
|
|
6589
6696
|
}), (n, u) => {
|
|
6590
|
-
const f =
|
|
6591
|
-
return b(),
|
|
6697
|
+
const f = N("KExternalLink"), h = N("KSelect"), r = N("KInput"), k = N("KMultiselect"), w = N("KCard");
|
|
6698
|
+
return b(), L(c(Xe), {
|
|
6592
6699
|
class: "kong-ui-entities-upstreams-passive-healthcheck",
|
|
6593
6700
|
title: c(l)("upstreams.form.passive_health_check.title")
|
|
6594
6701
|
}, {
|
|
@@ -6619,8 +6726,8 @@ const hc = /* @__PURE__ */ Ie(dc, [["__scopeId", "data-v-18b80e62"]]), pc = { cl
|
|
|
6619
6726
|
}, null, 8, ["items", "label", "model-value", "readonly"]),
|
|
6620
6727
|
y(w, null, {
|
|
6621
6728
|
body: p(() => [
|
|
6622
|
-
x("h5",
|
|
6623
|
-
x("p",
|
|
6729
|
+
x("h5", wc, C(c(l)("upstreams.form.passive_healthy.label")), 1),
|
|
6730
|
+
x("p", Sc, C(c(l)("upstreams.form.passive_healthy.help")), 1),
|
|
6624
6731
|
y(r, {
|
|
6625
6732
|
autocomplete: "off",
|
|
6626
6733
|
"data-testid": "passive-healthcheck-successes",
|
|
@@ -6632,7 +6739,7 @@ const hc = /* @__PURE__ */ Ie(dc, [["__scopeId", "data-v-18b80e62"]]), pc = { cl
|
|
|
6632
6739
|
type: "number",
|
|
6633
6740
|
"onUpdate:modelValue": u[1] || (u[1] = (m) => a("update:successes", m))
|
|
6634
6741
|
}, null, 8, ["label", "max", "min", "model-value", "readonly"]),
|
|
6635
|
-
i.value ? Q("", !0) : (b(),
|
|
6742
|
+
i.value ? Q("", !0) : (b(), L(k, {
|
|
6636
6743
|
key: 0,
|
|
6637
6744
|
class: "margin-top-6 passive-healthcheck-http-statuses",
|
|
6638
6745
|
"enable-item-creation": "",
|
|
@@ -6650,20 +6757,20 @@ const hc = /* @__PURE__ */ Ie(dc, [["__scopeId", "data-v-18b80e62"]]), pc = { cl
|
|
|
6650
6757
|
}),
|
|
6651
6758
|
y(w, null, {
|
|
6652
6759
|
body: p(() => [
|
|
6653
|
-
x("h5",
|
|
6654
|
-
x("p",
|
|
6760
|
+
x("h5", Ic, C(c(l)("upstreams.form.passive_unhealthy.label")), 1),
|
|
6761
|
+
x("p", xc, C(c(l)("upstreams.form.passive_unhealthy.help")), 1),
|
|
6655
6762
|
y(r, {
|
|
6656
6763
|
autocomplete: "off",
|
|
6657
6764
|
"data-testid": "passive-healthcheck-timeouts",
|
|
6658
6765
|
label: c(l)("upstreams.form.fields.timeouts.label"),
|
|
6659
|
-
max: c(
|
|
6660
|
-
min: c(
|
|
6766
|
+
max: c(Bs),
|
|
6767
|
+
min: c(Es),
|
|
6661
6768
|
"model-value": e.timeouts,
|
|
6662
6769
|
readonly: e.readonly,
|
|
6663
6770
|
type: "number",
|
|
6664
6771
|
"onUpdate:modelValue": u[5] || (u[5] = (m) => a("update:timeouts", m))
|
|
6665
6772
|
}, null, 8, ["label", "max", "min", "model-value", "readonly"]),
|
|
6666
|
-
i.value ? (b(),
|
|
6773
|
+
i.value ? (b(), L(r, {
|
|
6667
6774
|
key: 0,
|
|
6668
6775
|
autocomplete: "off",
|
|
6669
6776
|
class: "margin-top-6",
|
|
@@ -6711,7 +6818,7 @@ const hc = /* @__PURE__ */ Ie(dc, [["__scopeId", "data-v-18b80e62"]]), pc = { cl
|
|
|
6711
6818
|
};
|
|
6712
6819
|
}
|
|
6713
6820
|
});
|
|
6714
|
-
const
|
|
6821
|
+
const Tc = /* @__PURE__ */ Ie(Hc, [["__scopeId", "data-v-6d6854e3"]]), Ac = { class: "kong-ui-entities-upstreams-form" }, Fc = /* @__PURE__ */ le({
|
|
6715
6822
|
__name: "UpstreamsForm",
|
|
6716
6823
|
props: {
|
|
6717
6824
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -6732,7 +6839,7 @@ const vc = /* @__PURE__ */ Ie(yc, [["__scopeId", "data-v-6d6854e3"]]), bc = { cl
|
|
|
6732
6839
|
var W;
|
|
6733
6840
|
const t = e, { inRange: l, stringToNumberArray: s, upstreamsResponseToFields: i, getDefaultUpstreamFields: o, objectsAreEqual: d, cloneDeep: n } = pt(), { axiosInstance: u } = ht({
|
|
6734
6841
|
headers: (W = t.config) == null ? void 0 : W.requestHeaders
|
|
6735
|
-
}), { getMessageFromError: f } =
|
|
6842
|
+
}), { getMessageFromError: f } = js(), h = $t(), r = lt({
|
|
6736
6843
|
fields: o(),
|
|
6737
6844
|
readonly: !1,
|
|
6738
6845
|
errorMessage: ""
|
|
@@ -6740,19 +6847,19 @@ const vc = /* @__PURE__ */ Ie(yc, [["__scopeId", "data-v-6d6854e3"]]), bc = { cl
|
|
|
6740
6847
|
r.fields.activeHealthCheck.interval = T ? "5" : "0", r.fields.activeHealthCheck.successes = T ? "5" : "0", r.fields.activeHealthCheck.httpFailures = T ? "5" : "0", r.fields.activeHealthCheck.unhealthyInterval = T ? "5" : "0";
|
|
6741
6848
|
}, g = (T) => {
|
|
6742
6849
|
r.fields.passiveHealthCheck.timeouts = T ? "5" : "0", r.fields.passiveHealthCheck.successes = T ? "80" : "0";
|
|
6743
|
-
}, O = F(() => r.fields.slots ? l(r.fields.slots, Ht, Tt) : !0), I = F(() => r.fields.hashOn === "header" ? !!r.fields.hashOnHeader : !0), A = F(() => r.fields.hashOn === "cookie" || r.fields.hashFallback === "cookie" ? !!r.fields.hashOnCookie : !0), q = F(() => r.fields.hashOn === "cookie" || r.fields.hashFallback === "cookie" ? !!r.fields.hashOnCookiePath : !0), $ = F(() => r.fields.hashOn === "query_arg" ? !!r.fields.hashOnQueryArgument : !0), J = F(() => r.fields.hashOn === "uri_capture" ? !!r.fields.hashOnUriCapture : !0), B = F(() => r.fields.hashFallback === "header" ? !!r.fields.hashFallbackHeader : !0), H = F(() => r.fields.hashFallback === "query_arg" ? !!r.fields.hashFallbackQueryArgument : !0), U = F(() => r.fields.hashFallback === "uri_capture" ? !!r.fields.hashFallbackUriCapture : !0), S = F(() => !!r.fields.name && O.value && I.value && A.value && q.value && $.value && J.value && B.value && H.value && U.value),
|
|
6850
|
+
}, O = F(() => r.fields.slots ? l(r.fields.slots, Ht, Tt) : !0), I = F(() => r.fields.hashOn === "header" ? !!r.fields.hashOnHeader : !0), A = F(() => r.fields.hashOn === "cookie" || r.fields.hashFallback === "cookie" ? !!r.fields.hashOnCookie : !0), q = F(() => r.fields.hashOn === "cookie" || r.fields.hashFallback === "cookie" ? !!r.fields.hashOnCookiePath : !0), $ = F(() => r.fields.hashOn === "query_arg" ? !!r.fields.hashOnQueryArgument : !0), J = F(() => r.fields.hashOn === "uri_capture" ? !!r.fields.hashOnUriCapture : !0), B = F(() => r.fields.hashFallback === "header" ? !!r.fields.hashFallbackHeader : !0), H = F(() => r.fields.hashFallback === "query_arg" ? !!r.fields.hashFallbackQueryArgument : !0), U = F(() => r.fields.hashFallback === "uri_capture" ? !!r.fields.hashFallbackUriCapture : !0), S = F(() => !!r.fields.name && O.value && I.value && A.value && q.value && $.value && J.value && B.value && H.value && U.value), M = F(() => t.upstreamId ? ke.Edit : ke.Create), j = F(() => {
|
|
6744
6851
|
var T, v;
|
|
6745
|
-
return (v =
|
|
6852
|
+
return (v = Re.form[(T = t.config) == null ? void 0 : T.app]) == null ? void 0 : v.edit;
|
|
6746
6853
|
}), Z = (T) => {
|
|
6747
6854
|
Object.assign(r.fields, i(T)), Object.assign(k, n(r.fields));
|
|
6748
|
-
},
|
|
6855
|
+
}, V = () => {
|
|
6749
6856
|
var T;
|
|
6750
6857
|
h.push(((T = t.config) == null ? void 0 : T.cancelRoute) || { name: "upstreams-list" });
|
|
6751
6858
|
}, z = (T) => {
|
|
6752
6859
|
a("loading", T);
|
|
6753
6860
|
}, X = (T) => {
|
|
6754
6861
|
a("error", T);
|
|
6755
|
-
},
|
|
6862
|
+
}, K = () => {
|
|
6756
6863
|
var v, _, ee, re, ve;
|
|
6757
6864
|
const T = {
|
|
6758
6865
|
name: r.fields.name,
|
|
@@ -6767,14 +6874,14 @@ const vc = /* @__PURE__ */ Ie(yc, [["__scopeId", "data-v-6d6854e3"]]), bc = { cl
|
|
|
6767
6874
|
healthy: {},
|
|
6768
6875
|
unhealthy: {}
|
|
6769
6876
|
}, r.fields.activeHealthCheck.timeout && (T.healthchecks.active.timeout = Number(r.fields.activeHealthCheck.timeout)), r.fields.activeHealthCheck.concurrency && (T.healthchecks.active.concurrency = Number(r.fields.activeHealthCheck.concurrency)), r.fields.activeHealthCheck.type !== "tcp" && r.fields.activeHealthCheck.httpPath && (T.healthchecks.active.http_path = r.fields.activeHealthCheck.httpPath), ((ee = t.config) == null ? void 0 : ee.app) === "kongManager" && (r.fields.activeHealthCheck.headers.length === 0 ? T.healthchecks.active.headers = [] : T.healthchecks.active.headers = r.fields.activeHealthCheck.headers.reduce((te, ne) => {
|
|
6770
|
-
var
|
|
6877
|
+
var Oe, De;
|
|
6771
6878
|
return ne.key ? {
|
|
6772
6879
|
...te,
|
|
6773
|
-
[ne.key]: (
|
|
6880
|
+
[ne.key]: (De = (Oe = ne.values.split(",")) == null ? void 0 : Oe.map((qe) => String(qe || "").trim())) == null ? void 0 : De.filter((qe) => qe !== "")
|
|
6774
6881
|
} : {
|
|
6775
6882
|
...te
|
|
6776
6883
|
};
|
|
6777
|
-
}, {})), (r.fields.activeHealthCheck.type === "https" || r.fields.activeHealthCheck.type === "grpcs") && r.fields.activeHealthCheck.httpsSni && (T.healthchecks.active.https_sni = r.fields.activeHealthCheck.httpsSni), (r.fields.activeHealthCheck.type === "https" || r.fields.activeHealthCheck.type === "grpcs") && (T.healthchecks.active.https_verify_certificate = r.fields.activeHealthCheck.verifySsl), r.fields.activeHealthCheck.interval && (T.healthchecks.active.healthy.interval = Number(r.fields.activeHealthCheck.interval)), r.fields.activeHealthCheck.successes && (T.healthchecks.active.healthy.successes = Number(r.fields.activeHealthCheck.successes)), r.fields.activeHealthCheck.type !== "tcp" && r.fields.activeHealthCheck.httpStatuses && (T.healthchecks.active.healthy.http_statuses = s(r.fields.activeHealthCheck.httpStatuses)), r.fields.activeHealthCheck.unhealthyInterval && (T.healthchecks.active.unhealthy.interval = Number(r.fields.activeHealthCheck.unhealthyInterval)), r.fields.activeHealthCheck.unhealthyTimeouts && (T.healthchecks.active.unhealthy.timeouts = Number(r.fields.activeHealthCheck.unhealthyTimeouts)), r.fields.activeHealthCheck.type !== "tcp" && r.fields.activeHealthCheck.unhealthyHttpStatuses && (T.healthchecks.active.unhealthy.http_statuses = s(r.fields.activeHealthCheck.unhealthyHttpStatuses)), r.fields.activeHealthCheck.type !== "tcp" && r.fields.activeHealthCheck.httpFailures && (T.healthchecks.active.unhealthy.http_failures = Number(r.fields.activeHealthCheck.httpFailures)), r.fields.activeHealthCheck.type === "tcp" && r.fields.activeHealthCheck.tcpFailures && (T.healthchecks.active.unhealthy.tcp_failures = Number(r.fields.activeHealthCheck.tcpFailures))) : ((re = t.config) == null ? void 0 : re.app) === "kongManager" &&
|
|
6884
|
+
}, {})), (r.fields.activeHealthCheck.type === "https" || r.fields.activeHealthCheck.type === "grpcs") && r.fields.activeHealthCheck.httpsSni && (T.healthchecks.active.https_sni = r.fields.activeHealthCheck.httpsSni), (r.fields.activeHealthCheck.type === "https" || r.fields.activeHealthCheck.type === "grpcs") && (T.healthchecks.active.https_verify_certificate = r.fields.activeHealthCheck.verifySsl), r.fields.activeHealthCheck.interval && (T.healthchecks.active.healthy.interval = Number(r.fields.activeHealthCheck.interval)), r.fields.activeHealthCheck.successes && (T.healthchecks.active.healthy.successes = Number(r.fields.activeHealthCheck.successes)), r.fields.activeHealthCheck.type !== "tcp" && r.fields.activeHealthCheck.httpStatuses && (T.healthchecks.active.healthy.http_statuses = s(r.fields.activeHealthCheck.httpStatuses)), r.fields.activeHealthCheck.unhealthyInterval && (T.healthchecks.active.unhealthy.interval = Number(r.fields.activeHealthCheck.unhealthyInterval)), r.fields.activeHealthCheck.unhealthyTimeouts && (T.healthchecks.active.unhealthy.timeouts = Number(r.fields.activeHealthCheck.unhealthyTimeouts)), r.fields.activeHealthCheck.type !== "tcp" && r.fields.activeHealthCheck.unhealthyHttpStatuses && (T.healthchecks.active.unhealthy.http_statuses = s(r.fields.activeHealthCheck.unhealthyHttpStatuses)), r.fields.activeHealthCheck.type !== "tcp" && r.fields.activeHealthCheck.httpFailures && (T.healthchecks.active.unhealthy.http_failures = Number(r.fields.activeHealthCheck.httpFailures)), r.fields.activeHealthCheck.type === "tcp" && r.fields.activeHealthCheck.tcpFailures && (T.healthchecks.active.unhealthy.tcp_failures = Number(r.fields.activeHealthCheck.tcpFailures))) : ((re = t.config) == null ? void 0 : re.app) === "kongManager" && M.value === ke.Edit && (T.healthchecks.active = {
|
|
6778
6885
|
type: r.fields.activeHealthCheck.type,
|
|
6779
6886
|
headers: {},
|
|
6780
6887
|
healthy: {
|
|
@@ -6787,7 +6894,7 @@ const vc = /* @__PURE__ */ Ie(yc, [["__scopeId", "data-v-6d6854e3"]]), bc = { cl
|
|
|
6787
6894
|
type: r.fields.passiveHealthCheck.type,
|
|
6788
6895
|
healthy: {},
|
|
6789
6896
|
unhealthy: {}
|
|
6790
|
-
}, r.fields.passiveHealthCheck.successes && (T.healthchecks.passive.healthy.successes = Number(r.fields.passiveHealthCheck.successes)), r.fields.passiveHealthCheck.type !== "tcp" && r.fields.passiveHealthCheck.httpStatuses && (T.healthchecks.passive.healthy.http_statuses = s(r.fields.passiveHealthCheck.httpStatuses)), r.fields.passiveHealthCheck.timeouts && (T.healthchecks.passive.unhealthy.timeouts = Number(r.fields.passiveHealthCheck.timeouts)), r.fields.passiveHealthCheck.type !== "tcp" && r.fields.passiveHealthCheck.unhealthyHttpStatuses && (T.healthchecks.passive.unhealthy.http_statuses = s(r.fields.passiveHealthCheck.unhealthyHttpStatuses)), r.fields.passiveHealthCheck.type !== "tcp" && r.fields.passiveHealthCheck.httpFailures && (T.healthchecks.passive.unhealthy.http_failures = Number(r.fields.passiveHealthCheck.httpFailures)), r.fields.passiveHealthCheck.type === "tcp" && r.fields.passiveHealthCheck.tcpFailures && (T.healthchecks.passive.unhealthy.tcp_failures = Number(r.fields.passiveHealthCheck.tcpFailures))) : ((ve = t.config) == null ? void 0 : ve.app) === "kongManager" &&
|
|
6897
|
+
}, r.fields.passiveHealthCheck.successes && (T.healthchecks.passive.healthy.successes = Number(r.fields.passiveHealthCheck.successes)), r.fields.passiveHealthCheck.type !== "tcp" && r.fields.passiveHealthCheck.httpStatuses && (T.healthchecks.passive.healthy.http_statuses = s(r.fields.passiveHealthCheck.httpStatuses)), r.fields.passiveHealthCheck.timeouts && (T.healthchecks.passive.unhealthy.timeouts = Number(r.fields.passiveHealthCheck.timeouts)), r.fields.passiveHealthCheck.type !== "tcp" && r.fields.passiveHealthCheck.unhealthyHttpStatuses && (T.healthchecks.passive.unhealthy.http_statuses = s(r.fields.passiveHealthCheck.unhealthyHttpStatuses)), r.fields.passiveHealthCheck.type !== "tcp" && r.fields.passiveHealthCheck.httpFailures && (T.healthchecks.passive.unhealthy.http_failures = Number(r.fields.passiveHealthCheck.httpFailures)), r.fields.passiveHealthCheck.type === "tcp" && r.fields.passiveHealthCheck.tcpFailures && (T.healthchecks.passive.unhealthy.tcp_failures = Number(r.fields.passiveHealthCheck.tcpFailures))) : ((ve = t.config) == null ? void 0 : ve.app) === "kongManager" && M.value === ke.Edit && (T.healthchecks.passive = {
|
|
6791
6898
|
type: r.fields.passiveHealthCheck.type,
|
|
6792
6899
|
healthy: {
|
|
6793
6900
|
successes: 0
|
|
@@ -6800,36 +6907,36 @@ const vc = /* @__PURE__ */ Ie(yc, [["__scopeId", "data-v-6d6854e3"]]), bc = { cl
|
|
|
6800
6907
|
}), T;
|
|
6801
6908
|
}, D = (T) => {
|
|
6802
6909
|
var _, ee, re, ve, te, ne;
|
|
6803
|
-
let v = `${(_ = t.config) == null ? void 0 : _.apiBaseUrl}${
|
|
6910
|
+
let v = `${(_ = t.config) == null ? void 0 : _.apiBaseUrl}${Re.form[(ee = t.config) == null ? void 0 : ee.app][T]}`;
|
|
6804
6911
|
return ((re = t.config) == null ? void 0 : re.app) === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((ve = t.config) == null ? void 0 : ve.controlPlaneId) || "") : ((te = t.config) == null ? void 0 : te.app) === "kongManager" && (v = v.replace(/\/{workspace}/gi, (ne = t.config) != null && ne.workspace ? `/${t.config.workspace}` : "")), v = v.replace(/{id}/gi, t.upstreamId), v;
|
|
6805
6912
|
}, Y = async () => {
|
|
6806
6913
|
var T;
|
|
6807
6914
|
try {
|
|
6808
|
-
r.readonly = !0, await u.post(D("validate"),
|
|
6915
|
+
r.readonly = !0, await u.post(D("validate"), K());
|
|
6809
6916
|
let v;
|
|
6810
|
-
|
|
6917
|
+
M.value === ke.Create ? v = await u.post(D("create"), K()) : M.value === ke.Edit && (v = ((T = t.config) == null ? void 0 : T.app) === "konnect" ? await u.put(D("edit"), K()) : await u.patch(D("edit"), K())), a("update", v == null ? void 0 : v.data);
|
|
6811
6918
|
} catch (v) {
|
|
6812
6919
|
r.errorMessage = f(v), a("error", v);
|
|
6813
6920
|
} finally {
|
|
6814
6921
|
r.readonly = !1;
|
|
6815
6922
|
}
|
|
6816
6923
|
};
|
|
6817
|
-
return (T, v) => (b(), P("div",
|
|
6818
|
-
y(c(
|
|
6924
|
+
return (T, v) => (b(), P("div", Ac, [
|
|
6925
|
+
y(c($s), {
|
|
6819
6926
|
"can-submit": S.value && w.value,
|
|
6820
6927
|
config: e.config,
|
|
6821
6928
|
"edit-id": e.upstreamId,
|
|
6822
6929
|
"error-message": r.errorMessage,
|
|
6823
|
-
"fetch-url":
|
|
6930
|
+
"fetch-url": j.value,
|
|
6824
6931
|
"is-readonly": r.readonly,
|
|
6825
|
-
onCancel:
|
|
6932
|
+
onCancel: V,
|
|
6826
6933
|
"onFetch:error": X,
|
|
6827
6934
|
"onFetch:success": Z,
|
|
6828
6935
|
onLoading: z,
|
|
6829
6936
|
onSubmit: Y
|
|
6830
6937
|
}, {
|
|
6831
6938
|
default: p(() => [
|
|
6832
|
-
y(
|
|
6939
|
+
y(lc, {
|
|
6833
6940
|
"client-certificate": r.fields.clientCertificate,
|
|
6834
6941
|
"onUpdate:clientCertificate": v[0] || (v[0] = (_) => r.fields.clientCertificate = _),
|
|
6835
6942
|
"host-header": r.fields.hostHeader,
|
|
@@ -6841,7 +6948,7 @@ const vc = /* @__PURE__ */ Ie(yc, [["__scopeId", "data-v-6d6854e3"]]), bc = { cl
|
|
|
6841
6948
|
config: e.config,
|
|
6842
6949
|
readonly: r.readonly
|
|
6843
6950
|
}, null, 8, ["client-certificate", "host-header", "name", "tags", "config", "readonly"]),
|
|
6844
|
-
y(
|
|
6951
|
+
y(uc, {
|
|
6845
6952
|
algorithm: r.fields.algorithm,
|
|
6846
6953
|
"onUpdate:algorithm": v[4] || (v[4] = (_) => r.fields.algorithm = _),
|
|
6847
6954
|
"hash-fallback": r.fields.hashFallback,
|
|
@@ -6868,7 +6975,7 @@ const vc = /* @__PURE__ */ Ie(yc, [["__scopeId", "data-v-6d6854e3"]]), bc = { cl
|
|
|
6868
6975
|
"onUpdate:slots": v[15] || (v[15] = (_) => r.fields.slots = _),
|
|
6869
6976
|
readonly: r.readonly
|
|
6870
6977
|
}, null, 8, ["algorithm", "hash-fallback", "hash-fallback-header", "hash-fallback-query-argument", "hash-fallback-uri-capture", "hash-on", "hash-on-cookie", "hash-on-cookie-path", "hash-on-header", "hash-on-query-argument", "hash-on-uri-capture", "slots", "readonly"]),
|
|
6871
|
-
y(
|
|
6978
|
+
y(mc, {
|
|
6872
6979
|
"active-health-switch": r.fields.activeHealthSwitch,
|
|
6873
6980
|
"onUpdate:activeHealthSwitch": [
|
|
6874
6981
|
v[16] || (v[16] = (_) => r.fields.activeHealthSwitch = _),
|
|
@@ -6883,7 +6990,7 @@ const vc = /* @__PURE__ */ Ie(yc, [["__scopeId", "data-v-6d6854e3"]]), bc = { cl
|
|
|
6883
6990
|
],
|
|
6884
6991
|
readonly: r.readonly
|
|
6885
6992
|
}, null, 8, ["active-health-switch", "healthchecks-threshold", "passive-health-switch", "readonly"]),
|
|
6886
|
-
r.fields.activeHealthSwitch ? (b(),
|
|
6993
|
+
r.fields.activeHealthSwitch ? (b(), L(_c, {
|
|
6887
6994
|
key: 0,
|
|
6888
6995
|
concurrency: r.fields.activeHealthCheck.concurrency,
|
|
6889
6996
|
"onUpdate:concurrency": v[19] || (v[19] = (_) => r.fields.activeHealthCheck.concurrency = _),
|
|
@@ -6918,7 +7025,7 @@ const vc = /* @__PURE__ */ Ie(yc, [["__scopeId", "data-v-6d6854e3"]]), bc = { cl
|
|
|
6918
7025
|
config: e.config,
|
|
6919
7026
|
readonly: r.readonly
|
|
6920
7027
|
}, null, 8, ["concurrency", "headers", "http-failures", "http-path", "http-statuses", "https-sni", "interval", "successes", "tcp-failures", "timeout", "type", "unhealthy-http-statuses", "unhealthy-interval", "unhealthy-timeouts", "verify-ssl", "config", "readonly"])) : Q("", !0),
|
|
6921
|
-
r.fields.passiveHealthSwitch ? (b(),
|
|
7028
|
+
r.fields.passiveHealthSwitch ? (b(), L(Tc, {
|
|
6922
7029
|
key: 1,
|
|
6923
7030
|
"http-failures": r.fields.passiveHealthCheck.httpFailures,
|
|
6924
7031
|
"onUpdate:httpFailures": v[34] || (v[34] = (_) => r.fields.passiveHealthCheck.httpFailures = _),
|
|
@@ -6942,7 +7049,7 @@ const vc = /* @__PURE__ */ Ie(yc, [["__scopeId", "data-v-6d6854e3"]]), bc = { cl
|
|
|
6942
7049
|
]));
|
|
6943
7050
|
}
|
|
6944
7051
|
});
|
|
6945
|
-
const
|
|
7052
|
+
const zc = /* @__PURE__ */ Ie(Fc, [["__scopeId", "data-v-810fb7b7"]]), Oc = /* @__PURE__ */ x("code", null, "10", -1), Uc = /* @__PURE__ */ x("code", null, "65536", -1), qc = { "data-testid": "client_certificate-plain-text" }, Jc = /* @__PURE__ */ le({
|
|
6946
7053
|
__name: "UpstreamsConfigCard",
|
|
6947
7054
|
props: {
|
|
6948
7055
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -6969,7 +7076,7 @@ const Kc = /* @__PURE__ */ Ie(kc, [["__scopeId", "data-v-810fb7b7"]]), Cc = /* @
|
|
|
6969
7076
|
},
|
|
6970
7077
|
emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
|
|
6971
7078
|
setup(e) {
|
|
6972
|
-
const a = e, { i18n: { t }, i18nT: l } = Se.useI18n(), { getPropValue: s } =
|
|
7079
|
+
const a = e, { i18n: { t }, i18nT: l } = Se.useI18n(), { getPropValue: s } = qu(), i = F(() => Re.form[a.config.app].edit), o = E({
|
|
6973
7080
|
id: {},
|
|
6974
7081
|
name: {},
|
|
6975
7082
|
created_at: {},
|
|
@@ -7044,7 +7151,7 @@ const Kc = /* @__PURE__ */ Ie(kc, [["__scopeId", "data-v-810fb7b7"]]), Cc = /* @
|
|
|
7044
7151
|
}
|
|
7045
7152
|
});
|
|
7046
7153
|
return (d, n) => (b(), P("div", null, [
|
|
7047
|
-
y(c(
|
|
7154
|
+
y(c(Xo), {
|
|
7048
7155
|
config: e.config,
|
|
7049
7156
|
"config-card-doc": e.configCardDoc,
|
|
7050
7157
|
"config-schema": o.value,
|
|
@@ -7168,10 +7275,10 @@ const Kc = /* @__PURE__ */ Ie(kc, [["__scopeId", "data-v-810fb7b7"]]), Cc = /* @
|
|
|
7168
7275
|
x("code", null, C(c(t)("upstreams.form.hash_tooltips.slots.consistent_hashing")), 1)
|
|
7169
7276
|
]),
|
|
7170
7277
|
min: p(() => [
|
|
7171
|
-
|
|
7278
|
+
Oc
|
|
7172
7279
|
]),
|
|
7173
7280
|
max: p(() => [
|
|
7174
|
-
|
|
7281
|
+
Uc
|
|
7175
7282
|
]),
|
|
7176
7283
|
_: 1
|
|
7177
7284
|
})
|
|
@@ -7247,7 +7354,7 @@ const Kc = /* @__PURE__ */ Ie(kc, [["__scopeId", "data-v-810fb7b7"]]), Cc = /* @
|
|
|
7247
7354
|
var f;
|
|
7248
7355
|
return [
|
|
7249
7356
|
x("div", null, [
|
|
7250
|
-
x("div",
|
|
7357
|
+
x("div", qc, [
|
|
7251
7358
|
x("span", null, C((f = c(s)("rowValue", u)) == null ? void 0 : f.id), 1)
|
|
7252
7359
|
])
|
|
7253
7360
|
])
|
|
@@ -7259,9 +7366,9 @@ const Kc = /* @__PURE__ */ Ie(kc, [["__scopeId", "data-v-810fb7b7"]]), Cc = /* @
|
|
|
7259
7366
|
}
|
|
7260
7367
|
});
|
|
7261
7368
|
export {
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7369
|
+
Gu as TargetForm,
|
|
7370
|
+
Dc as TargetsList,
|
|
7371
|
+
Jc as UpstreamsConfigCard,
|
|
7372
|
+
zc as UpstreamsForm,
|
|
7373
|
+
Rc as UpstreamsList
|
|
7267
7374
|
};
|