@kong-ui-public/entities-upstreams-targets 2.1.19 → 2.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as le, ref as P, computed as q, watch as be, renderSlot as ae, createCommentVNode as Q, unref as u, useSlots as dt, onBeforeMount as tt, resolveComponent as M, openBlock as k, createBlock as L, createSlots as Oe, withCtx as f, createElementVNode as x, createTextVNode as Y, toDisplayString as S, createVNode as y, createElementBlock as E, renderList as ve, Fragment as de, normalizeClass as Ie, withModifiers as Ct, withDirectives as
|
|
2
|
-
import
|
|
3
|
-
import { createI18n as Mt, i18nTComponent as
|
|
4
|
-
import { BadgeMethodAppearances as
|
|
1
|
+
import { defineComponent as le, ref as P, computed as q, watch as be, renderSlot as ae, createCommentVNode as Q, unref as u, useSlots as dt, onBeforeMount as tt, resolveComponent as M, openBlock as k, createBlock as L, createSlots as Oe, withCtx as f, createElementVNode as x, createTextVNode as Y, toDisplayString as S, createVNode as y, createElementBlock as E, renderList as ve, Fragment as de, normalizeClass as Ie, withModifiers as Ct, withDirectives as Le, vShow as Re, useCssVars as $t, resolveDynamicComponent as Ue, normalizeProps as Ls, guardReactiveProps as Rs, mergeProps as _t, onMounted as Ds, onUnmounted as zs, normalizeStyle as Nl, inject as Js, pushScopeId as Kl, popScopeId as El, reactive as st } from "vue";
|
|
2
|
+
import Ws from "axios";
|
|
3
|
+
import { createI18n as Mt, i18nTComponent as Pl } from "@kong-ui-public/i18n";
|
|
4
|
+
import { BadgeMethodAppearances as Qs } from "@kong/kongponents";
|
|
5
5
|
import { useRouter as jt } from "vue-router";
|
|
6
6
|
var Nt = /* @__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))(Nt || {}), _e = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(_e || {}), Te = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Te || {}), re = /* @__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))(re || {}), oe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(oe || {});
|
|
7
7
|
function Kt(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 Ys() {
|
|
17
17
|
return {
|
|
18
18
|
debounce: (e, l) => {
|
|
19
19
|
let t;
|
|
@@ -25,12 +25,12 @@ function Zs() {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
const yt = "khcp-user-table-preferences",
|
|
28
|
+
const yt = "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 Gs() {
|
|
34
34
|
const e = (t) => {
|
|
35
35
|
if (typeof t == "string")
|
|
36
36
|
try {
|
|
@@ -54,24 +54,24 @@ function Xs() {
|
|
|
54
54
|
},
|
|
55
55
|
getTablePreferences: (t) => {
|
|
56
56
|
const a = l();
|
|
57
|
-
return (a == null ? void 0 : a.get(t)) || void 0 ||
|
|
57
|
+
return (a == null ? void 0 : a.get(t)) || void 0 || Zs;
|
|
58
58
|
},
|
|
59
59
|
deleteAllTablePreferences: () => {
|
|
60
60
|
localStorage.removeItem(yt);
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
const
|
|
64
|
+
const Xs = {
|
|
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
|
+
}, er = {
|
|
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
|
+
}, tr = {
|
|
75
75
|
actions: {
|
|
76
76
|
save: "Save",
|
|
77
77
|
cancel: "Cancel",
|
|
@@ -80,13 +80,13 @@ const er = {
|
|
|
80
80
|
errors: {
|
|
81
81
|
edit: "The entity could not be edited at this time."
|
|
82
82
|
}
|
|
83
|
-
},
|
|
83
|
+
}, ar = {
|
|
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
|
+
}, lr = {
|
|
90
90
|
title: "Configuration",
|
|
91
91
|
actions: {
|
|
92
92
|
copy: "Copy JSON"
|
|
@@ -124,7 +124,7 @@ const er = {
|
|
|
124
124
|
entryTitle: "Entry {index}",
|
|
125
125
|
structuredFormat: "Structured"
|
|
126
126
|
}
|
|
127
|
-
},
|
|
127
|
+
}, sr = {
|
|
128
128
|
filterButtonText: "Filter",
|
|
129
129
|
fieldLabel: "Filter by:",
|
|
130
130
|
inputPlaceholder: "Enter a value",
|
|
@@ -132,15 +132,15 @@ const er = {
|
|
|
132
132
|
applyButtonText: "Apply",
|
|
133
133
|
clearButtonText: "Clear",
|
|
134
134
|
clearAllButtonText: "Clear all filters"
|
|
135
|
-
},
|
|
135
|
+
}, rr = {
|
|
136
136
|
errors: {
|
|
137
137
|
fetch: "Could not fetch available items",
|
|
138
138
|
invalid: "Please select a valid value"
|
|
139
139
|
}
|
|
140
|
-
},
|
|
140
|
+
}, ir = {
|
|
141
141
|
unexpected: "An unexpected error has occurred",
|
|
142
142
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
143
|
-
},
|
|
143
|
+
}, nr = {
|
|
144
144
|
enable: {
|
|
145
145
|
title: "Enable {entityType}",
|
|
146
146
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -151,26 +151,26 @@ const er = {
|
|
|
151
151
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
152
152
|
confirmText: "Yes, disable"
|
|
153
153
|
}
|
|
154
|
-
},
|
|
155
|
-
global:
|
|
156
|
-
deleteModal:
|
|
157
|
-
baseForm:
|
|
158
|
-
baseTable:
|
|
159
|
-
baseConfigCard:
|
|
160
|
-
filter:
|
|
161
|
-
debouncedFilter:
|
|
162
|
-
errors:
|
|
163
|
-
toggleModal:
|
|
154
|
+
}, or = {
|
|
155
|
+
global: Xs,
|
|
156
|
+
deleteModal: er,
|
|
157
|
+
baseForm: tr,
|
|
158
|
+
baseTable: ar,
|
|
159
|
+
baseConfigCard: lr,
|
|
160
|
+
filter: sr,
|
|
161
|
+
debouncedFilter: rr,
|
|
162
|
+
errors: ir,
|
|
163
|
+
toggleModal: nr
|
|
164
164
|
};
|
|
165
165
|
function Et() {
|
|
166
|
-
const e = Mt("en-us",
|
|
166
|
+
const e = Mt("en-us", or);
|
|
167
167
|
return {
|
|
168
168
|
i18n: e,
|
|
169
|
-
i18nT:
|
|
169
|
+
i18nT: Pl(e)
|
|
170
170
|
// Translation component <i18n-t>
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Bl() {
|
|
174
174
|
const e = (t, a) => (a == null ? void 0 : a[t]) ?? void 0, l = (t, a) => {
|
|
175
175
|
if (t.length !== a.length)
|
|
176
176
|
return !1;
|
|
@@ -214,19 +214,19 @@ function Vl() {
|
|
|
214
214
|
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
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function ur(e, l, t, a = {
|
|
218
218
|
fetchedItemsKey: "data",
|
|
219
219
|
searchKeys: ["id"]
|
|
220
220
|
}) {
|
|
221
221
|
t || (t = "100");
|
|
222
222
|
const { axiosInstance: s } = Kt({
|
|
223
223
|
headers: e.requestHeaders
|
|
224
|
-
}), { i18n: { t: i } } = Et(), { debounce: r } =
|
|
224
|
+
}), { i18n: { t: i } } = Et(), { debounce: r } = Ys(), c = r(async ($) => {
|
|
225
225
|
await F($);
|
|
226
226
|
}, 200), o = P(!1), d = P(""), h = P(""), p = P([]), m = P([]), n = P(void 0), A = u(l);
|
|
227
227
|
let _ = `${e.apiBaseUrl}${A}`;
|
|
228
228
|
e.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
229
|
-
const { isValidUuid: g } =
|
|
229
|
+
const { isValidUuid: g } = Bl(), b = async () => {
|
|
230
230
|
try {
|
|
231
231
|
o.value = !0;
|
|
232
232
|
const { data: $ } = await s.get(`${_}?size=${t}`);
|
|
@@ -292,13 +292,13 @@ function cr(e, l, t, a = {
|
|
|
292
292
|
debouncedQueryChange: c
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function cr(e, l) {
|
|
296
296
|
const t = u(l), a = q(
|
|
297
297
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
298
298
|
);
|
|
299
299
|
return a.value.search = "", (s) => `${a.value.href}/${s}`;
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function dr() {
|
|
302
302
|
const { i18n: { t: e } } = Et();
|
|
303
303
|
return {
|
|
304
304
|
getMessageFromError: (l) => {
|
|
@@ -326,7 +326,7 @@ function hr() {
|
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function hr(e) {
|
|
330
330
|
const l = window.location.origin, t = l.endsWith("/") ? l : `${l}/`;
|
|
331
331
|
try {
|
|
332
332
|
const a = e.join("/"), s = `${t}${a}`, i = e.some((r) => r.trim() === "");
|
|
@@ -337,7 +337,7 @@ function pr(e) {
|
|
|
337
337
|
return console.warn("Failed to build valid URL:", a), "";
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function Vl(e, l) {
|
|
341
341
|
const t = P(u(e)), a = P(u(l)), s = q(
|
|
342
342
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
343
343
|
), i = q(
|
|
@@ -355,10 +355,10 @@ function Ll(e, l) {
|
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function pr(e, l, t = "data") {
|
|
359
359
|
const a = u(l), { axiosInstance: s } = Kt({
|
|
360
360
|
headers: e.requestHeaders
|
|
361
|
-
}), i =
|
|
361
|
+
}), i = Vl(e, a), r = P({
|
|
362
362
|
status: Te.Idle
|
|
363
363
|
});
|
|
364
364
|
return { fetcher: async (c) => {
|
|
@@ -399,61 +399,61 @@ function fr(e, l, t = "data") {
|
|
|
399
399
|
}
|
|
400
400
|
}, fetcherState: r };
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function fr() {
|
|
403
403
|
const e = (t, a = "_") => t ? t.split(a).map((s) => s.toLowerCase() === "id" ? s.toUpperCase() : s.charAt(0).toUpperCase() + s.substring(1)).join(" ") : "", l = /(?:^|[\s-:'"])\w/g;
|
|
404
404
|
return {
|
|
405
405
|
capitalize: (t) => t ? t.replace(l, (a) => a.toUpperCase()) : "",
|
|
406
406
|
convertKeyToTitle: e
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
const
|
|
409
|
+
const Ll = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ul = (e) => {
|
|
410
410
|
if (typeof e != "string")
|
|
411
411
|
throw new TypeError("Invalid argument expected string");
|
|
412
|
-
const l = e.match(
|
|
412
|
+
const l = e.match(Ll);
|
|
413
413
|
if (!l)
|
|
414
414
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
415
415
|
return l.shift(), l;
|
|
416
416
|
}, cl = (e) => e === "*" || e === "x" || e === "X", dl = (e) => {
|
|
417
417
|
const l = parseInt(e, 10);
|
|
418
418
|
return isNaN(l) ? e : l;
|
|
419
|
-
},
|
|
419
|
+
}, mr = (e, l) => typeof e != typeof l ? [String(e), String(l)] : [e, l], gr = (e, l) => {
|
|
420
420
|
if (cl(e) || cl(l))
|
|
421
421
|
return 0;
|
|
422
|
-
const [t, a] =
|
|
422
|
+
const [t, a] = mr(dl(e), dl(l));
|
|
423
423
|
return t > a ? 1 : t < a ? -1 : 0;
|
|
424
424
|
}, hl = (e, l) => {
|
|
425
425
|
for (let t = 0; t < Math.max(e.length, l.length); t++) {
|
|
426
|
-
const a =
|
|
426
|
+
const a = gr(e[t] || "0", l[t] || "0");
|
|
427
427
|
if (a !== 0)
|
|
428
428
|
return a;
|
|
429
429
|
}
|
|
430
430
|
return 0;
|
|
431
|
-
},
|
|
431
|
+
}, yr = (e, l) => {
|
|
432
432
|
const t = ul(e), a = ul(l), s = t.pop(), i = a.pop(), r = hl(t, a);
|
|
433
433
|
return r !== 0 ? r : s && i ? hl(s.split("."), i.split(".")) : s || i ? s ? -1 : 1 : 0;
|
|
434
434
|
}, pl = (e, l, t) => {
|
|
435
|
-
|
|
436
|
-
const a =
|
|
437
|
-
return
|
|
438
|
-
},
|
|
435
|
+
vr(t);
|
|
436
|
+
const a = yr(e, l);
|
|
437
|
+
return Rl[t].includes(a);
|
|
438
|
+
}, Rl = {
|
|
439
439
|
">": [1],
|
|
440
440
|
">=": [0, 1],
|
|
441
441
|
"=": [0],
|
|
442
442
|
"<=": [-1, 0],
|
|
443
443
|
"<": [-1],
|
|
444
444
|
"!=": [-1, 1]
|
|
445
|
-
}, fl = Object.keys(
|
|
445
|
+
}, fl = Object.keys(Rl), vr = (e) => {
|
|
446
446
|
if (typeof e != "string")
|
|
447
447
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
448
448
|
if (fl.indexOf(e) === -1)
|
|
449
449
|
throw new Error(`Invalid operator, expected one of ${fl.join("|")}`);
|
|
450
|
-
},
|
|
451
|
-
function
|
|
450
|
+
}, br = (e) => typeof e == "string" && /^[v\d]/.test(e) && Ll.test(e);
|
|
451
|
+
function kr(e) {
|
|
452
452
|
const { gatewayInfo: l, supportedRange: t } = e;
|
|
453
453
|
if (!l)
|
|
454
454
|
return !0;
|
|
455
455
|
const { edition: a, version: s } = l;
|
|
456
|
-
if (!
|
|
456
|
+
if (!br(s))
|
|
457
457
|
return console.error("Invalid version"), !1;
|
|
458
458
|
const i = t[a];
|
|
459
459
|
if (!i)
|
|
@@ -461,7 +461,7 @@ function Cr(e) {
|
|
|
461
461
|
const [r, c] = i;
|
|
462
462
|
return !(r && pl(s, r, "<") || c && pl(s, c, ">"));
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Cr(e) {
|
|
465
465
|
const l = P(0), t = P(0), a = P(!1);
|
|
466
466
|
return be(e, (s) => {
|
|
467
467
|
s && !a.value && (l.value = s.offsetWidth, t.value = s.scrollWidth, a.value = !0);
|
|
@@ -471,38 +471,38 @@ function _r(e) {
|
|
|
471
471
|
}
|
|
472
472
|
const he = {
|
|
473
473
|
useAxios: Kt,
|
|
474
|
-
useDebouncedFilter:
|
|
475
|
-
useDeleteUrlBuilder:
|
|
476
|
-
useErrors:
|
|
477
|
-
useExternalLinkCreator:
|
|
478
|
-
useFetcher:
|
|
479
|
-
useFetchUrlBuilder:
|
|
480
|
-
useHelpers:
|
|
481
|
-
useStringHelpers:
|
|
474
|
+
useDebouncedFilter: ur,
|
|
475
|
+
useDeleteUrlBuilder: cr,
|
|
476
|
+
useErrors: dr,
|
|
477
|
+
useExternalLinkCreator: hr,
|
|
478
|
+
useFetcher: pr,
|
|
479
|
+
useFetchUrlBuilder: Vl,
|
|
480
|
+
useHelpers: Bl,
|
|
481
|
+
useStringHelpers: fr,
|
|
482
482
|
useI18n: Et,
|
|
483
|
-
useGatewayFeatureSupported:
|
|
484
|
-
useTruncationDetector:
|
|
485
|
-
},
|
|
483
|
+
useGatewayFeatureSupported: kr,
|
|
484
|
+
useTruncationDetector: Cr
|
|
485
|
+
}, _r = {
|
|
486
486
|
fail: "Failed to copy id to clipboard",
|
|
487
487
|
success: {
|
|
488
488
|
prefix: "Successfully",
|
|
489
489
|
content: " copied to clipboard"
|
|
490
490
|
}
|
|
491
|
-
},
|
|
492
|
-
message:
|
|
493
|
-
iconTitle:
|
|
494
|
-
},
|
|
491
|
+
}, wr = "Copy to clipboard", Sr = {
|
|
492
|
+
message: _r,
|
|
493
|
+
iconTitle: wr
|
|
494
|
+
}, Ir = "kong-ui-copy-uuid-notify", ml = "24px", xr = (e, l) => {
|
|
495
495
|
const t = e.__vccOpts || e;
|
|
496
496
|
for (const [a, s] of l)
|
|
497
497
|
t[a] = s;
|
|
498
498
|
return t;
|
|
499
|
-
},
|
|
499
|
+
}, Hr = (e) => (Kl("data-v-ac7fcfb4"), e = e(), El(), e), Ar = ["aria-hidden"], Tr = {
|
|
500
500
|
key: 0,
|
|
501
501
|
"data-testid": "kui-icon-svg-title"
|
|
502
|
-
},
|
|
502
|
+
}, Or = /* @__PURE__ */ Hr(() => /* @__PURE__ */ x("path", {
|
|
503
503
|
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",
|
|
504
504
|
fill: "currentColor"
|
|
505
|
-
}, null, -1)),
|
|
505
|
+
}, null, -1)), qr = /* @__PURE__ */ le({
|
|
506
506
|
__name: "CopyIcon",
|
|
507
507
|
props: {
|
|
508
508
|
/** The accessibility text provided to screen readers */
|
|
@@ -571,7 +571,7 @@ const he = {
|
|
|
571
571
|
lineHeight: "0",
|
|
572
572
|
width: t.value
|
|
573
573
|
}));
|
|
574
|
-
return (s, i) => (k(), L(
|
|
574
|
+
return (s, i) => (k(), L(Ue(e.as), {
|
|
575
575
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
576
576
|
class: "kui-icon copy-icon",
|
|
577
577
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
@@ -588,14 +588,14 @@ const he = {
|
|
|
588
588
|
width: "100%",
|
|
589
589
|
xmlns: "http://www.w3.org/2000/svg"
|
|
590
590
|
}, [
|
|
591
|
-
e.title ? (k(), E("title",
|
|
592
|
-
|
|
593
|
-
], 8,
|
|
591
|
+
e.title ? (k(), E("title", Tr, S(e.title), 1)) : Q("", !0),
|
|
592
|
+
Or
|
|
593
|
+
], 8, Ar))
|
|
594
594
|
]),
|
|
595
595
|
_: 1
|
|
596
596
|
}, 8, ["aria-hidden", "style"]));
|
|
597
597
|
}
|
|
598
|
-
}),
|
|
598
|
+
}), Ur = /* @__PURE__ */ xr(qr, [["__scopeId", "data-v-ac7fcfb4"]]), Fr = "16px", $r = { class: "kong-ui-copy-uuid" }, Mr = ["onClick"], gl = 15, jr = /* @__PURE__ */ le({
|
|
599
599
|
__name: "CopyUuid",
|
|
600
600
|
props: {
|
|
601
601
|
uuid: {
|
|
@@ -639,7 +639,7 @@ const he = {
|
|
|
639
639
|
},
|
|
640
640
|
emits: ["success", "error"],
|
|
641
641
|
setup(e, { emit: l }) {
|
|
642
|
-
const { t } = Mt("en-us",
|
|
642
|
+
const { t } = Mt("en-us", Sr), a = e, s = l, i = a.notify || Js(Ir, () => {
|
|
643
643
|
}), r = q(() => a.idTooltip ? {
|
|
644
644
|
label: a.idTooltip,
|
|
645
645
|
positionFixed: !0,
|
|
@@ -675,8 +675,8 @@ const he = {
|
|
|
675
675
|
};
|
|
676
676
|
return (n, A) => {
|
|
677
677
|
const _ = M("KClipboardProvider");
|
|
678
|
-
return k(), E("div",
|
|
679
|
-
e.format !== "hidden" ? (k(), L(
|
|
678
|
+
return k(), E("div", $r, [
|
|
679
|
+
e.format !== "hidden" ? (k(), L(Ue(e.idTooltip ? "KTooltip" : "div"), _t({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
|
|
680
680
|
default: f(() => [
|
|
681
681
|
x("div", {
|
|
682
682
|
class: Ie([
|
|
@@ -688,7 +688,7 @@ const he = {
|
|
|
688
688
|
]),
|
|
689
689
|
_: 1
|
|
690
690
|
}, 16)) : Q("", !0),
|
|
691
|
-
(k(), L(
|
|
691
|
+
(k(), L(Ue(e.tooltip ? "KTooltip" : "div"), _t(d.value, { class: "uuid-icon-wrapper" }), {
|
|
692
692
|
default: f(() => [
|
|
693
693
|
y(_, null, {
|
|
694
694
|
default: f(({ copyToClipboard: g }) => [
|
|
@@ -698,14 +698,14 @@ const he = {
|
|
|
698
698
|
tabindex: "0",
|
|
699
699
|
onClick: Ct((b) => m(g), ["stop"])
|
|
700
700
|
}, [
|
|
701
|
-
y(u(
|
|
701
|
+
y(u(Ur), {
|
|
702
702
|
class: "uuid-icon",
|
|
703
703
|
color: e.iconColor,
|
|
704
704
|
decorative: !!e.tooltip,
|
|
705
|
-
size: u(
|
|
705
|
+
size: u(Fr),
|
|
706
706
|
title: u(t)("iconTitle")
|
|
707
707
|
}, null, 8, ["color", "decorative", "size", "title"])
|
|
708
|
-
], 8,
|
|
708
|
+
], 8, Mr)
|
|
709
709
|
]),
|
|
710
710
|
_: 1
|
|
711
711
|
})
|
|
@@ -715,15 +715,15 @@ const he = {
|
|
|
715
715
|
]);
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
|
-
}),
|
|
718
|
+
}), Nr = (e, l) => {
|
|
719
719
|
const t = e.__vccOpts || e;
|
|
720
720
|
for (const [a, s] of l)
|
|
721
721
|
t[a] = s;
|
|
722
722
|
return t;
|
|
723
|
-
},
|
|
723
|
+
}, Dl = /* @__PURE__ */ Nr(jr, [["__scopeId", "data-v-0c07874b"]]), Kr = {
|
|
724
724
|
key: 0,
|
|
725
725
|
class: "config-card-fieldset-title"
|
|
726
|
-
},
|
|
726
|
+
}, Er = /* @__PURE__ */ le({
|
|
727
727
|
__name: "JsonCardItem",
|
|
728
728
|
props: {
|
|
729
729
|
item: {
|
|
@@ -747,11 +747,11 @@ const he = {
|
|
|
747
747
|
var o;
|
|
748
748
|
return l.isArrayItem ? (o = i.value) != null && o.name ? a(i.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: l.index }) : "";
|
|
749
749
|
});
|
|
750
|
-
return (o, d) => (k(), L(
|
|
750
|
+
return (o, d) => (k(), L(Ue(e.isArrayItem ? "fieldset" : "div"), {
|
|
751
751
|
class: Ie(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
752
752
|
}, {
|
|
753
753
|
default: f(() => [
|
|
754
|
-
e.isArrayItem ? (k(), E("legend",
|
|
754
|
+
e.isArrayItem ? (k(), E("legend", Kr, [
|
|
755
755
|
x("b", null, S(c.value), 1)
|
|
756
756
|
])) : Q("", !0),
|
|
757
757
|
(k(!0), E(de, null, ve(Object.keys(r.value), (h, p) => (k(), L(Pt, {
|
|
@@ -771,7 +771,7 @@ const he = {
|
|
|
771
771
|
for (const [a, s] of l)
|
|
772
772
|
t[a] = s;
|
|
773
773
|
return t;
|
|
774
|
-
},
|
|
774
|
+
}, zl = /* @__PURE__ */ Ce(Er, [["__scopeId", "data-v-68ca83ec"]]), Pr = /* @__PURE__ */ le({
|
|
775
775
|
__name: "InternalLinkItem",
|
|
776
776
|
props: {
|
|
777
777
|
item: {
|
|
@@ -798,7 +798,7 @@ const he = {
|
|
|
798
798
|
]);
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
|
-
}),
|
|
801
|
+
}), Br = /* @__PURE__ */ Ce(Pr, [["__scopeId", "data-v-c96811e5"]]), Vr = /* @__PURE__ */ le({
|
|
802
802
|
__name: "StatusBadge",
|
|
803
803
|
props: {
|
|
804
804
|
status: {
|
|
@@ -820,11 +820,11 @@ const he = {
|
|
|
820
820
|
}, 8, ["appearance"]);
|
|
821
821
|
};
|
|
822
822
|
}
|
|
823
|
-
}),
|
|
823
|
+
}), Lr = "#0044f4", Rr = "#e0e4ea", Dr = "#3a3f51", zr = "1px", Jr = "20px", Wr = { class: "config-card-details-row" }, Qr = ["data-testid"], Yr = ["data-testid"], Zr = ["data-testid"], Gr = ["data-testid"], Xr = { key: 1 }, ei = ["data-testid"], ti = ["data-testid"], ai = ["data-testid"], li = ["data-testid"], si = {
|
|
824
824
|
name: "ConfigCardItem",
|
|
825
|
-
components: { CopyUuid:
|
|
826
|
-
},
|
|
827
|
-
...
|
|
825
|
+
components: { CopyUuid: Dl, JsonCardItem: zl, StatusBadge: Vr, InternalLinkItem: Br }
|
|
826
|
+
}, ri = /* @__PURE__ */ le({
|
|
827
|
+
...si,
|
|
828
828
|
props: {
|
|
829
829
|
item: {
|
|
830
830
|
type: Object,
|
|
@@ -844,7 +844,7 @@ const he = {
|
|
|
844
844
|
emits: ["navigation-click"],
|
|
845
845
|
setup(e, { emit: l }) {
|
|
846
846
|
$t((A) => ({
|
|
847
|
-
"0da74440": h.value ? "none" : `solid ${u(
|
|
847
|
+
"0da74440": h.value ? "none" : `solid ${u(zr)} ${u(Rr)}`,
|
|
848
848
|
"02a039da": d.value && c.value ? "block" : "flex",
|
|
849
849
|
"690f3ced": d.value && c.value ? "100%" : t.slim ? "50%" : "25%",
|
|
850
850
|
"691182c8": d.value && c.value ? "100%" : t.slim ? "50%" : "75%"
|
|
@@ -978,7 +978,7 @@ const he = {
|
|
|
978
978
|
}), m = P(), { isTruncated: n } = he.useTruncationDetector(m);
|
|
979
979
|
return (A, _) => {
|
|
980
980
|
const g = M("KLabel"), b = M("KBadge"), H = M("KTooltip");
|
|
981
|
-
return k(), E("div",
|
|
981
|
+
return k(), E("div", Wr, [
|
|
982
982
|
x("div", {
|
|
983
983
|
class: "config-card-details-label",
|
|
984
984
|
"data-testid": `${e.item.key}-label`
|
|
@@ -999,13 +999,13 @@ const he = {
|
|
|
999
999
|
ae(A.$slots, "label-tooltip", {}, () => [
|
|
1000
1000
|
Y(S(e.item.tooltip), 1)
|
|
1001
1001
|
], !0)
|
|
1002
|
-
], 8,
|
|
1002
|
+
], 8, Yr)
|
|
1003
1003
|
]),
|
|
1004
1004
|
key: "0"
|
|
1005
1005
|
} : void 0
|
|
1006
1006
|
]), 1024)
|
|
1007
1007
|
], !0)
|
|
1008
|
-
], 8,
|
|
1008
|
+
], 8, Qr),
|
|
1009
1009
|
x("div", {
|
|
1010
1010
|
class: "config-card-details-value",
|
|
1011
1011
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -1013,8 +1013,8 @@ const he = {
|
|
|
1013
1013
|
ae(A.$slots, e.item.key, {
|
|
1014
1014
|
rowValue: e.item.value
|
|
1015
1015
|
}, () => [
|
|
1016
|
-
c.value ? (k(), E("div",
|
|
1017
|
-
(k(), L(
|
|
1016
|
+
c.value ? (k(), E("div", Xr, [
|
|
1017
|
+
(k(), L(Ue(p.value.tag), Ls(Rs(p.value.attrs)), {
|
|
1018
1018
|
default: f(() => [
|
|
1019
1019
|
p.value.additionalComponent === "KBadge" ? (k(), E("div", {
|
|
1020
1020
|
key: 0,
|
|
@@ -1032,25 +1032,25 @@ const he = {
|
|
|
1032
1032
|
]),
|
|
1033
1033
|
_: 2
|
|
1034
1034
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1035
|
-
], 8,
|
|
1035
|
+
], 8, ei)) : Q("", !0),
|
|
1036
1036
|
p.value.additionalComponent === "CopyUuid" ? (k(), E("div", {
|
|
1037
1037
|
key: 1,
|
|
1038
1038
|
class: "copy-uuid-array",
|
|
1039
1039
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1040
1040
|
}, [
|
|
1041
|
-
(k(!0), E(de, null, ve(e.item.value, (F, $) => (k(), L(u(
|
|
1041
|
+
(k(!0), E(de, null, ve(e.item.value, (F, $) => (k(), L(u(Dl), _t(p.value.childAttrs, {
|
|
1042
1042
|
key: `${e.item.key}-copy-uuid-${$}`,
|
|
1043
1043
|
"data-testid": `${e.item.key}-copy-uuid-${$}`,
|
|
1044
1044
|
uuid: F
|
|
1045
1045
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1046
|
-
], 8,
|
|
1046
|
+
], 8, ti)) : p.value.additionalComponent === "KMethodBadge" ? (k(), E("div", {
|
|
1047
1047
|
key: 2,
|
|
1048
1048
|
class: "method-badge-array",
|
|
1049
1049
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1050
1050
|
}, [
|
|
1051
1051
|
(k(!0), E(de, null, ve(e.item.value, (F, $) => (k(), L(b, {
|
|
1052
1052
|
key: `${e.item.key}-badge-method-${$}`,
|
|
1053
|
-
appearance: Object.values(u(
|
|
1053
|
+
appearance: Object.values(u(Qs)).includes(F.toLowerCase()) ? F.toLowerCase() : "custom",
|
|
1054
1054
|
class: "config-badge",
|
|
1055
1055
|
"data-testid": `${e.item.key}-badge-method-${$}`
|
|
1056
1056
|
}, {
|
|
@@ -1059,18 +1059,18 @@ const he = {
|
|
|
1059
1059
|
]),
|
|
1060
1060
|
_: 2
|
|
1061
1061
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1062
|
-
], 8,
|
|
1062
|
+
], 8, ai)) : Q("", !0),
|
|
1063
1063
|
p.value.additionalComponent === "JsonCardItem" ? (k(), E("div", {
|
|
1064
1064
|
key: 3,
|
|
1065
1065
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1066
1066
|
}, [
|
|
1067
|
-
(k(!0), E(de, null, ve(e.item.value, (F, $) => (k(), L(
|
|
1067
|
+
(k(!0), E(de, null, ve(e.item.value, (F, $) => (k(), L(zl, {
|
|
1068
1068
|
key: `json-array-item-${$}`,
|
|
1069
1069
|
index: $,
|
|
1070
1070
|
"is-array-item": "",
|
|
1071
1071
|
item: F
|
|
1072
1072
|
}, null, 8, ["index", "item"]))), 128))
|
|
1073
|
-
], 8,
|
|
1073
|
+
], 8, li)) : (k(), L(H, {
|
|
1074
1074
|
key: 4,
|
|
1075
1075
|
label: u(n) ? e.item.value : ""
|
|
1076
1076
|
}, {
|
|
@@ -1089,60 +1089,60 @@ const he = {
|
|
|
1089
1089
|
])) : (k(), E("div", {
|
|
1090
1090
|
key: 0,
|
|
1091
1091
|
"data-testid": `${e.item.key}-no-value`
|
|
1092
|
-
}, " – ", 8,
|
|
1092
|
+
}, " – ", 8, Gr))
|
|
1093
1093
|
], !0)
|
|
1094
|
-
], 8,
|
|
1094
|
+
], 8, Zr)
|
|
1095
1095
|
]);
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
|
-
}), Pt = /* @__PURE__ */ Ce(
|
|
1098
|
+
}), Pt = /* @__PURE__ */ Ce(ri, [["__scopeId", "data-v-9c87856b"]]);
|
|
1099
1099
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1100
|
-
function
|
|
1100
|
+
function Jl(e) {
|
|
1101
1101
|
return typeof e > "u" || e === null;
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function ii(e) {
|
|
1104
1104
|
return typeof e == "object" && e !== null;
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1107
|
-
return Array.isArray(e) ? e :
|
|
1106
|
+
function ni(e) {
|
|
1107
|
+
return Array.isArray(e) ? e : Jl(e) ? [] : [e];
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function oi(e, l) {
|
|
1110
1110
|
var t, a, s, i;
|
|
1111
1111
|
if (l)
|
|
1112
1112
|
for (i = Object.keys(l), t = 0, a = i.length; t < a; t += 1)
|
|
1113
1113
|
s = i[t], e[s] = l[s];
|
|
1114
1114
|
return e;
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function ui(e, l) {
|
|
1117
1117
|
var t = "", a;
|
|
1118
1118
|
for (a = 0; a < l; a += 1)
|
|
1119
1119
|
t += e;
|
|
1120
1120
|
return t;
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1122
|
+
function ci(e) {
|
|
1123
1123
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1124
1124
|
}
|
|
1125
|
-
var hi =
|
|
1126
|
-
isNothing:
|
|
1127
|
-
isObject:
|
|
1128
|
-
toArray:
|
|
1129
|
-
repeat:
|
|
1130
|
-
isNegativeZero:
|
|
1131
|
-
extend:
|
|
1125
|
+
var di = Jl, hi = ii, pi = ni, fi = ui, mi = ci, gi = oi, ce = {
|
|
1126
|
+
isNothing: di,
|
|
1127
|
+
isObject: hi,
|
|
1128
|
+
toArray: pi,
|
|
1129
|
+
repeat: fi,
|
|
1130
|
+
isNegativeZero: mi,
|
|
1131
|
+
extend: gi
|
|
1132
1132
|
};
|
|
1133
|
-
function
|
|
1133
|
+
function Wl(e, l) {
|
|
1134
1134
|
var t = "", a = e.reason || "(unknown reason)";
|
|
1135
1135
|
return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !l && e.mark.snippet && (t += `
|
|
1136
1136
|
|
|
1137
1137
|
` + e.mark.snippet), a + " " + t) : a;
|
|
1138
1138
|
}
|
|
1139
1139
|
function Ye(e, l) {
|
|
1140
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = l, this.message =
|
|
1140
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = l, this.message = Wl(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1141
1141
|
}
|
|
1142
1142
|
Ye.prototype = Object.create(Error.prototype);
|
|
1143
1143
|
Ye.prototype.constructor = Ye;
|
|
1144
1144
|
Ye.prototype.toString = function(e) {
|
|
1145
|
-
return this.name + ": " +
|
|
1145
|
+
return this.name + ": " + Wl(this, e);
|
|
1146
1146
|
};
|
|
1147
1147
|
var ye = Ye;
|
|
1148
1148
|
function vt(e, l, t, a, s) {
|
|
@@ -1156,7 +1156,7 @@ function vt(e, l, t, a, s) {
|
|
|
1156
1156
|
function bt(e, l) {
|
|
1157
1157
|
return ce.repeat(" ", l - e.length) + e;
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1159
|
+
function yi(e, l) {
|
|
1160
1160
|
if (l = Object.create(l || null), !e.buffer)
|
|
1161
1161
|
return null;
|
|
1162
1162
|
l.maxLength || (l.maxLength = 79), typeof l.indent != "number" && (l.indent = 1), typeof l.linesBefore != "number" && (l.linesBefore = 3), typeof l.linesAfter != "number" && (l.linesAfter = 2);
|
|
@@ -1186,7 +1186,7 @@ function vi(e, l) {
|
|
|
1186
1186
|
`;
|
|
1187
1187
|
return c.replace(/\n$/, "");
|
|
1188
1188
|
}
|
|
1189
|
-
var
|
|
1189
|
+
var vi = yi, bi = [
|
|
1190
1190
|
"kind",
|
|
1191
1191
|
"multi",
|
|
1192
1192
|
"resolve",
|
|
@@ -1197,12 +1197,12 @@ var bi = vi, ki = [
|
|
|
1197
1197
|
"representName",
|
|
1198
1198
|
"defaultStyle",
|
|
1199
1199
|
"styleAliases"
|
|
1200
|
-
],
|
|
1200
|
+
], ki = [
|
|
1201
1201
|
"scalar",
|
|
1202
1202
|
"sequence",
|
|
1203
1203
|
"mapping"
|
|
1204
1204
|
];
|
|
1205
|
-
function
|
|
1205
|
+
function Ci(e) {
|
|
1206
1206
|
var l = {};
|
|
1207
1207
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1208
1208
|
e[t].forEach(function(a) {
|
|
@@ -1210,18 +1210,18 @@ function _i(e) {
|
|
|
1210
1210
|
});
|
|
1211
1211
|
}), l;
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function _i(e, l) {
|
|
1214
1214
|
if (l = l || {}, Object.keys(l).forEach(function(t) {
|
|
1215
|
-
if (
|
|
1215
|
+
if (bi.indexOf(t) === -1)
|
|
1216
1216
|
throw new ye('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1217
1217
|
}), this.options = l, this.tag = e, this.kind = l.kind || null, this.resolve = l.resolve || function() {
|
|
1218
1218
|
return !0;
|
|
1219
1219
|
}, this.construct = l.construct || function(t) {
|
|
1220
1220
|
return t;
|
|
1221
|
-
}, this.instanceOf = l.instanceOf || null, this.predicate = l.predicate || null, this.represent = l.represent || null, this.representName = l.representName || null, this.defaultStyle = l.defaultStyle || null, this.multi = l.multi || !1, this.styleAliases =
|
|
1221
|
+
}, this.instanceOf = l.instanceOf || null, this.predicate = l.predicate || null, this.represent = l.represent || null, this.representName = l.representName || null, this.defaultStyle = l.defaultStyle || null, this.multi = l.multi || !1, this.styleAliases = Ci(l.styleAliases || null), ki.indexOf(this.kind) === -1)
|
|
1222
1222
|
throw new ye('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1223
1223
|
}
|
|
1224
|
-
var fe =
|
|
1224
|
+
var fe = _i;
|
|
1225
1225
|
function yl(e, l) {
|
|
1226
1226
|
var t = [];
|
|
1227
1227
|
return e[l].forEach(function(a) {
|
|
@@ -1231,7 +1231,7 @@ function yl(e, l) {
|
|
|
1231
1231
|
}), t[s] = a;
|
|
1232
1232
|
}), t;
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function wi() {
|
|
1235
1235
|
var e = {
|
|
1236
1236
|
scalar: {},
|
|
1237
1237
|
sequence: {},
|
|
@@ -1276,47 +1276,47 @@ wt.prototype.extend = function(e) {
|
|
|
1276
1276
|
throw new ye("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1277
1277
|
});
|
|
1278
1278
|
var a = Object.create(wt.prototype);
|
|
1279
|
-
return a.implicit = (this.implicit || []).concat(l), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = yl(a, "implicit"), a.compiledExplicit = yl(a, "explicit"), a.compiledTypeMap =
|
|
1279
|
+
return a.implicit = (this.implicit || []).concat(l), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = yl(a, "implicit"), a.compiledExplicit = yl(a, "explicit"), a.compiledTypeMap = wi(a.compiledImplicit, a.compiledExplicit), a;
|
|
1280
1280
|
};
|
|
1281
|
-
var
|
|
1281
|
+
var Ql = wt, Yl = new fe("tag:yaml.org,2002:str", {
|
|
1282
1282
|
kind: "scalar",
|
|
1283
1283
|
construct: function(e) {
|
|
1284
1284
|
return e !== null ? e : "";
|
|
1285
1285
|
}
|
|
1286
|
-
}),
|
|
1286
|
+
}), Zl = new fe("tag:yaml.org,2002:seq", {
|
|
1287
1287
|
kind: "sequence",
|
|
1288
1288
|
construct: function(e) {
|
|
1289
1289
|
return e !== null ? e : [];
|
|
1290
1290
|
}
|
|
1291
|
-
}),
|
|
1291
|
+
}), Gl = new fe("tag:yaml.org,2002:map", {
|
|
1292
1292
|
kind: "mapping",
|
|
1293
1293
|
construct: function(e) {
|
|
1294
1294
|
return e !== null ? e : {};
|
|
1295
1295
|
}
|
|
1296
|
-
}),
|
|
1296
|
+
}), Xl = new Ql({
|
|
1297
1297
|
explicit: [
|
|
1298
|
+
Yl,
|
|
1298
1299
|
Zl,
|
|
1299
|
-
Gl
|
|
1300
|
-
Xl
|
|
1300
|
+
Gl
|
|
1301
1301
|
]
|
|
1302
1302
|
});
|
|
1303
|
-
function
|
|
1303
|
+
function Si(e) {
|
|
1304
1304
|
if (e === null)
|
|
1305
1305
|
return !0;
|
|
1306
1306
|
var l = e.length;
|
|
1307
1307
|
return l === 1 && e === "~" || l === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function Ii() {
|
|
1310
1310
|
return null;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function xi(e) {
|
|
1313
1313
|
return e === null;
|
|
1314
1314
|
}
|
|
1315
|
-
var
|
|
1315
|
+
var es = new fe("tag:yaml.org,2002:null", {
|
|
1316
1316
|
kind: "scalar",
|
|
1317
|
-
resolve:
|
|
1318
|
-
construct:
|
|
1319
|
-
predicate:
|
|
1317
|
+
resolve: Si,
|
|
1318
|
+
construct: Ii,
|
|
1319
|
+
predicate: xi,
|
|
1320
1320
|
represent: {
|
|
1321
1321
|
canonical: function() {
|
|
1322
1322
|
return "~";
|
|
@@ -1336,23 +1336,23 @@ var ts = new fe("tag:yaml.org,2002:null", {
|
|
|
1336
1336
|
},
|
|
1337
1337
|
defaultStyle: "lowercase"
|
|
1338
1338
|
});
|
|
1339
|
-
function
|
|
1339
|
+
function Hi(e) {
|
|
1340
1340
|
if (e === null)
|
|
1341
1341
|
return !1;
|
|
1342
1342
|
var l = e.length;
|
|
1343
1343
|
return l === 4 && (e === "true" || e === "True" || e === "TRUE") || l === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1345
|
+
function Ai(e) {
|
|
1346
1346
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function Ti(e) {
|
|
1349
1349
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1350
1350
|
}
|
|
1351
|
-
var
|
|
1351
|
+
var ts = new fe("tag:yaml.org,2002:bool", {
|
|
1352
1352
|
kind: "scalar",
|
|
1353
|
-
resolve:
|
|
1354
|
-
construct:
|
|
1355
|
-
predicate:
|
|
1353
|
+
resolve: Hi,
|
|
1354
|
+
construct: Ai,
|
|
1355
|
+
predicate: Ti,
|
|
1356
1356
|
represent: {
|
|
1357
1357
|
lowercase: function(e) {
|
|
1358
1358
|
return e ? "true" : "false";
|
|
@@ -1366,16 +1366,16 @@ var as = new fe("tag:yaml.org,2002:bool", {
|
|
|
1366
1366
|
},
|
|
1367
1367
|
defaultStyle: "lowercase"
|
|
1368
1368
|
});
|
|
1369
|
-
function
|
|
1369
|
+
function Oi(e) {
|
|
1370
1370
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function qi(e) {
|
|
1373
1373
|
return 48 <= e && e <= 55;
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function Ui(e) {
|
|
1376
1376
|
return 48 <= e && e <= 57;
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function Fi(e) {
|
|
1379
1379
|
if (e === null)
|
|
1380
1380
|
return !1;
|
|
1381
1381
|
var l = e.length, t = 0, a = !1, s;
|
|
@@ -1396,7 +1396,7 @@ function $i(e) {
|
|
|
1396
1396
|
if (s === "x") {
|
|
1397
1397
|
for (t++; t < l; t++)
|
|
1398
1398
|
if (s = e[t], s !== "_") {
|
|
1399
|
-
if (!
|
|
1399
|
+
if (!Oi(e.charCodeAt(t)))
|
|
1400
1400
|
return !1;
|
|
1401
1401
|
a = !0;
|
|
1402
1402
|
}
|
|
@@ -1405,7 +1405,7 @@ function $i(e) {
|
|
|
1405
1405
|
if (s === "o") {
|
|
1406
1406
|
for (t++; t < l; t++)
|
|
1407
1407
|
if (s = e[t], s !== "_") {
|
|
1408
|
-
if (!
|
|
1408
|
+
if (!qi(e.charCodeAt(t)))
|
|
1409
1409
|
return !1;
|
|
1410
1410
|
a = !0;
|
|
1411
1411
|
}
|
|
@@ -1416,13 +1416,13 @@ function $i(e) {
|
|
|
1416
1416
|
return !1;
|
|
1417
1417
|
for (; t < l; t++)
|
|
1418
1418
|
if (s = e[t], s !== "_") {
|
|
1419
|
-
if (!
|
|
1419
|
+
if (!Ui(e.charCodeAt(t)))
|
|
1420
1420
|
return !1;
|
|
1421
1421
|
a = !0;
|
|
1422
1422
|
}
|
|
1423
1423
|
return !(!a || s === "_");
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function $i(e) {
|
|
1426
1426
|
var l = e, t = 1, a;
|
|
1427
1427
|
if (l.indexOf("_") !== -1 && (l = l.replace(/_/g, "")), a = l[0], (a === "-" || a === "+") && (a === "-" && (t = -1), l = l.slice(1), a = l[0]), l === "0")
|
|
1428
1428
|
return 0;
|
|
@@ -1436,14 +1436,14 @@ function Mi(e) {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
return t * parseInt(l, 10);
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function Mi(e) {
|
|
1440
1440
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ce.isNegativeZero(e);
|
|
1441
1441
|
}
|
|
1442
|
-
var
|
|
1442
|
+
var as = new fe("tag:yaml.org,2002:int", {
|
|
1443
1443
|
kind: "scalar",
|
|
1444
|
-
resolve:
|
|
1445
|
-
construct:
|
|
1446
|
-
predicate:
|
|
1444
|
+
resolve: Fi,
|
|
1445
|
+
construct: $i,
|
|
1446
|
+
predicate: Mi,
|
|
1447
1447
|
represent: {
|
|
1448
1448
|
binary: function(e) {
|
|
1449
1449
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1466,21 +1466,21 @@ var ls = new fe("tag:yaml.org,2002:int", {
|
|
|
1466
1466
|
decimal: [10, "dec"],
|
|
1467
1467
|
hexadecimal: [16, "hex"]
|
|
1468
1468
|
}
|
|
1469
|
-
}),
|
|
1469
|
+
}), ji = new RegExp(
|
|
1470
1470
|
// 2.5e4, 2.5 and integers
|
|
1471
1471
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1472
1472
|
);
|
|
1473
|
-
function
|
|
1474
|
-
return !(e === null || !
|
|
1473
|
+
function Ni(e) {
|
|
1474
|
+
return !(e === null || !ji.test(e) || // Quick hack to not allow integers end with `_`
|
|
1475
1475
|
// Probably should update regexp & check speed
|
|
1476
1476
|
e[e.length - 1] === "_");
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function Ki(e) {
|
|
1479
1479
|
var l, t;
|
|
1480
1480
|
return l = e.replace(/_/g, "").toLowerCase(), t = l[0] === "-" ? -1 : 1, "+-".indexOf(l[0]) >= 0 && (l = l.slice(1)), l === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : l === ".nan" ? NaN : t * parseFloat(l, 10);
|
|
1481
1481
|
}
|
|
1482
|
-
var
|
|
1483
|
-
function
|
|
1482
|
+
var Ei = /^[-+]?[0-9]+e/;
|
|
1483
|
+
function Pi(e, l) {
|
|
1484
1484
|
var t;
|
|
1485
1485
|
if (isNaN(e))
|
|
1486
1486
|
switch (l) {
|
|
@@ -1511,36 +1511,36 @@ function Bi(e, l) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
else if (ce.isNegativeZero(e))
|
|
1513
1513
|
return "-0.0";
|
|
1514
|
-
return t = e.toString(10),
|
|
1514
|
+
return t = e.toString(10), Ei.test(t) ? t.replace("e", ".e") : t;
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function Bi(e) {
|
|
1517
1517
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ce.isNegativeZero(e));
|
|
1518
1518
|
}
|
|
1519
|
-
var
|
|
1519
|
+
var ls = new fe("tag:yaml.org,2002:float", {
|
|
1520
1520
|
kind: "scalar",
|
|
1521
|
-
resolve:
|
|
1522
|
-
construct:
|
|
1523
|
-
predicate:
|
|
1524
|
-
represent:
|
|
1521
|
+
resolve: Ni,
|
|
1522
|
+
construct: Ki,
|
|
1523
|
+
predicate: Bi,
|
|
1524
|
+
represent: Pi,
|
|
1525
1525
|
defaultStyle: "lowercase"
|
|
1526
|
-
}),
|
|
1526
|
+
}), ss = Xl.extend({
|
|
1527
1527
|
implicit: [
|
|
1528
|
+
es,
|
|
1528
1529
|
ts,
|
|
1529
1530
|
as,
|
|
1530
|
-
ls
|
|
1531
|
-
ss
|
|
1531
|
+
ls
|
|
1532
1532
|
]
|
|
1533
|
-
}),
|
|
1533
|
+
}), rs = ss, is = new RegExp(
|
|
1534
1534
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1535
|
-
),
|
|
1535
|
+
), ns = new RegExp(
|
|
1536
1536
|
"^([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]))?))?$"
|
|
1537
1537
|
);
|
|
1538
|
-
function
|
|
1539
|
-
return e === null ? !1 :
|
|
1538
|
+
function Vi(e) {
|
|
1539
|
+
return e === null ? !1 : is.exec(e) !== null || ns.exec(e) !== null;
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function Li(e) {
|
|
1542
1542
|
var l, t, a, s, i, r, c, o = 0, d = null, h, p, m;
|
|
1543
|
-
if (l =
|
|
1543
|
+
if (l = is.exec(e), l === null && (l = ns.exec(e)), l === null)
|
|
1544
1544
|
throw new Error("Date resolve error");
|
|
1545
1545
|
if (t = +l[1], a = +l[2] - 1, s = +l[3], !l[4])
|
|
1546
1546
|
return new Date(Date.UTC(t, a, s));
|
|
@@ -1551,25 +1551,25 @@ function Ri(e) {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
return l[9] && (h = +l[10], p = +(l[11] || 0), d = (h * 60 + p) * 6e4, l[9] === "-" && (d = -d)), m = new Date(Date.UTC(t, a, s, i, r, c, o)), d && m.setTime(m.getTime() - d), m;
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function Ri(e) {
|
|
1555
1555
|
return e.toISOString();
|
|
1556
1556
|
}
|
|
1557
|
-
var
|
|
1557
|
+
var os = new fe("tag:yaml.org,2002:timestamp", {
|
|
1558
1558
|
kind: "scalar",
|
|
1559
|
-
resolve:
|
|
1560
|
-
construct:
|
|
1559
|
+
resolve: Vi,
|
|
1560
|
+
construct: Li,
|
|
1561
1561
|
instanceOf: Date,
|
|
1562
|
-
represent:
|
|
1562
|
+
represent: Ri
|
|
1563
1563
|
});
|
|
1564
|
-
function
|
|
1564
|
+
function Di(e) {
|
|
1565
1565
|
return e === "<<" || e === null;
|
|
1566
1566
|
}
|
|
1567
|
-
var
|
|
1567
|
+
var us = new fe("tag:yaml.org,2002:merge", {
|
|
1568
1568
|
kind: "scalar",
|
|
1569
|
-
resolve:
|
|
1569
|
+
resolve: Di
|
|
1570
1570
|
}), Bt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1571
1571
|
\r`;
|
|
1572
|
-
function
|
|
1572
|
+
function zi(e) {
|
|
1573
1573
|
if (e === null)
|
|
1574
1574
|
return !1;
|
|
1575
1575
|
var l, t, a = 0, s = e.length, i = Bt;
|
|
@@ -1581,37 +1581,37 @@ function Ji(e) {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
return a % 8 === 0;
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Ji(e) {
|
|
1585
1585
|
var l, t, a = e.replace(/[\r\n=]/g, ""), s = a.length, i = Bt, r = 0, c = [];
|
|
1586
1586
|
for (l = 0; l < s; l++)
|
|
1587
1587
|
l % 4 === 0 && l && (c.push(r >> 16 & 255), c.push(r >> 8 & 255), c.push(r & 255)), r = r << 6 | i.indexOf(a.charAt(l));
|
|
1588
1588
|
return t = s % 4 * 6, t === 0 ? (c.push(r >> 16 & 255), c.push(r >> 8 & 255), c.push(r & 255)) : t === 18 ? (c.push(r >> 10 & 255), c.push(r >> 2 & 255)) : t === 12 && c.push(r >> 4 & 255), new Uint8Array(c);
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1590
|
+
function Wi(e) {
|
|
1591
1591
|
var l = "", t = 0, a, s, i = e.length, r = Bt;
|
|
1592
1592
|
for (a = 0; a < i; a++)
|
|
1593
1593
|
a % 3 === 0 && a && (l += r[t >> 18 & 63], l += r[t >> 12 & 63], l += r[t >> 6 & 63], l += r[t & 63]), t = (t << 8) + e[a];
|
|
1594
1594
|
return s = i % 3, s === 0 ? (l += r[t >> 18 & 63], l += r[t >> 12 & 63], l += r[t >> 6 & 63], l += r[t & 63]) : s === 2 ? (l += r[t >> 10 & 63], l += r[t >> 4 & 63], l += r[t << 2 & 63], l += r[64]) : s === 1 && (l += r[t >> 2 & 63], l += r[t << 4 & 63], l += r[64], l += r[64]), l;
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1596
|
+
function Qi(e) {
|
|
1597
1597
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1598
1598
|
}
|
|
1599
|
-
var
|
|
1599
|
+
var cs = new fe("tag:yaml.org,2002:binary", {
|
|
1600
1600
|
kind: "scalar",
|
|
1601
|
-
resolve:
|
|
1602
|
-
construct:
|
|
1603
|
-
predicate:
|
|
1604
|
-
represent:
|
|
1605
|
-
}),
|
|
1606
|
-
function
|
|
1601
|
+
resolve: zi,
|
|
1602
|
+
construct: Ji,
|
|
1603
|
+
predicate: Qi,
|
|
1604
|
+
represent: Wi
|
|
1605
|
+
}), Yi = Object.prototype.hasOwnProperty, Zi = Object.prototype.toString;
|
|
1606
|
+
function Gi(e) {
|
|
1607
1607
|
if (e === null)
|
|
1608
1608
|
return !0;
|
|
1609
1609
|
var l = [], t, a, s, i, r, c = e;
|
|
1610
1610
|
for (t = 0, a = c.length; t < a; t += 1) {
|
|
1611
|
-
if (s = c[t], r = !1,
|
|
1611
|
+
if (s = c[t], r = !1, Zi.call(s) !== "[object Object]")
|
|
1612
1612
|
return !1;
|
|
1613
1613
|
for (i in s)
|
|
1614
|
-
if (
|
|
1614
|
+
if (Yi.call(s, i))
|
|
1615
1615
|
if (!r)
|
|
1616
1616
|
r = !0;
|
|
1617
1617
|
else
|
|
@@ -1625,26 +1625,26 @@ function Xi(e) {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
return !0;
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1628
|
+
function Xi(e) {
|
|
1629
1629
|
return e !== null ? e : [];
|
|
1630
1630
|
}
|
|
1631
|
-
var
|
|
1631
|
+
var ds = new fe("tag:yaml.org,2002:omap", {
|
|
1632
1632
|
kind: "sequence",
|
|
1633
|
-
resolve:
|
|
1634
|
-
construct:
|
|
1635
|
-
}),
|
|
1636
|
-
function
|
|
1633
|
+
resolve: Gi,
|
|
1634
|
+
construct: Xi
|
|
1635
|
+
}), en = Object.prototype.toString;
|
|
1636
|
+
function tn(e) {
|
|
1637
1637
|
if (e === null)
|
|
1638
1638
|
return !0;
|
|
1639
1639
|
var l, t, a, s, i, r = e;
|
|
1640
1640
|
for (i = new Array(r.length), l = 0, t = r.length; l < t; l += 1) {
|
|
1641
|
-
if (a = r[l],
|
|
1641
|
+
if (a = r[l], en.call(a) !== "[object Object]" || (s = Object.keys(a), s.length !== 1))
|
|
1642
1642
|
return !1;
|
|
1643
1643
|
i[l] = [s[0], a[s[0]]];
|
|
1644
1644
|
}
|
|
1645
1645
|
return !0;
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1647
|
+
function an(e) {
|
|
1648
1648
|
if (e === null)
|
|
1649
1649
|
return [];
|
|
1650
1650
|
var l, t, a, s, i, r = e;
|
|
@@ -1652,81 +1652,81 @@ function ln(e) {
|
|
|
1652
1652
|
a = r[l], s = Object.keys(a), i[l] = [s[0], a[s[0]]];
|
|
1653
1653
|
return i;
|
|
1654
1654
|
}
|
|
1655
|
-
var
|
|
1655
|
+
var hs = new fe("tag:yaml.org,2002:pairs", {
|
|
1656
1656
|
kind: "sequence",
|
|
1657
|
-
resolve:
|
|
1658
|
-
construct:
|
|
1659
|
-
}),
|
|
1660
|
-
function
|
|
1657
|
+
resolve: tn,
|
|
1658
|
+
construct: an
|
|
1659
|
+
}), ln = Object.prototype.hasOwnProperty;
|
|
1660
|
+
function sn(e) {
|
|
1661
1661
|
if (e === null)
|
|
1662
1662
|
return !0;
|
|
1663
1663
|
var l, t = e;
|
|
1664
1664
|
for (l in t)
|
|
1665
|
-
if (
|
|
1665
|
+
if (ln.call(t, l) && t[l] !== null)
|
|
1666
1666
|
return !1;
|
|
1667
1667
|
return !0;
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function rn(e) {
|
|
1670
1670
|
return e !== null ? e : {};
|
|
1671
1671
|
}
|
|
1672
|
-
var
|
|
1672
|
+
var ps = new fe("tag:yaml.org,2002:set", {
|
|
1673
1673
|
kind: "mapping",
|
|
1674
|
-
resolve:
|
|
1675
|
-
construct:
|
|
1676
|
-
}), Vt =
|
|
1674
|
+
resolve: sn,
|
|
1675
|
+
construct: rn
|
|
1676
|
+
}), Vt = rs.extend({
|
|
1677
1677
|
implicit: [
|
|
1678
|
-
|
|
1679
|
-
|
|
1678
|
+
os,
|
|
1679
|
+
us
|
|
1680
1680
|
],
|
|
1681
1681
|
explicit: [
|
|
1682
|
+
cs,
|
|
1682
1683
|
ds,
|
|
1683
1684
|
hs,
|
|
1684
|
-
ps
|
|
1685
|
-
fs
|
|
1685
|
+
ps
|
|
1686
1686
|
]
|
|
1687
|
-
}),
|
|
1687
|
+
}), Fe = Object.prototype.hasOwnProperty, rt = 1, fs = 2, ms = 3, it = 4, kt = 1, nn = 2, vl = 3, on = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, un = /[\x85\u2028\u2029]/, cn = /[,\[\]\{\}]/, gs = /^(?:!|!!|![a-z\-]+!)$/i, ys = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1688
1688
|
function bl(e) {
|
|
1689
1689
|
return Object.prototype.toString.call(e);
|
|
1690
1690
|
}
|
|
1691
1691
|
function we(e) {
|
|
1692
1692
|
return e === 10 || e === 13;
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1694
|
+
function Me(e) {
|
|
1695
1695
|
return e === 9 || e === 32;
|
|
1696
1696
|
}
|
|
1697
1697
|
function ke(e) {
|
|
1698
1698
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function Be(e) {
|
|
1701
1701
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function dn(e) {
|
|
1704
1704
|
var l;
|
|
1705
1705
|
return 48 <= e && e <= 57 ? e - 48 : (l = e | 32, 97 <= l && l <= 102 ? l - 97 + 10 : -1);
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1707
|
+
function hn(e) {
|
|
1708
1708
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function pn(e) {
|
|
1711
1711
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1712
1712
|
}
|
|
1713
1713
|
function kl(e) {
|
|
1714
1714
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1715
1715
|
` : 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" : "";
|
|
1716
1716
|
}
|
|
1717
|
-
function
|
|
1717
|
+
function fn(e) {
|
|
1718
1718
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1719
1719
|
(e - 65536 >> 10) + 55296,
|
|
1720
1720
|
(e - 65536 & 1023) + 56320
|
|
1721
1721
|
);
|
|
1722
1722
|
}
|
|
1723
|
-
var
|
|
1724
|
-
for (var
|
|
1725
|
-
|
|
1726
|
-
function
|
|
1723
|
+
var vs = new Array(256), bs = new Array(256);
|
|
1724
|
+
for (var Ne = 0; Ne < 256; Ne++)
|
|
1725
|
+
vs[Ne] = kl(Ne) ? 1 : 0, bs[Ne] = kl(Ne);
|
|
1726
|
+
function mn(e, l) {
|
|
1727
1727
|
this.input = e, this.filename = l.filename || null, this.schema = l.schema || Vt, this.onWarning = l.onWarning || null, this.legacy = l.legacy || !1, this.json = l.json || !1, this.listener = l.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 = [];
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function ks(e, l) {
|
|
1730
1730
|
var t = {
|
|
1731
1731
|
name: e.filename,
|
|
1732
1732
|
buffer: e.input.slice(0, -1),
|
|
@@ -1735,13 +1735,13 @@ function Cs(e, l) {
|
|
|
1735
1735
|
line: e.line,
|
|
1736
1736
|
column: e.position - e.lineStart
|
|
1737
1737
|
};
|
|
1738
|
-
return t.snippet =
|
|
1738
|
+
return t.snippet = vi(t), new ye(l, t);
|
|
1739
1739
|
}
|
|
1740
1740
|
function R(e, l) {
|
|
1741
|
-
throw
|
|
1741
|
+
throw ks(e, l);
|
|
1742
1742
|
}
|
|
1743
1743
|
function nt(e, l) {
|
|
1744
|
-
e.onWarning && e.onWarning.call(null,
|
|
1744
|
+
e.onWarning && e.onWarning.call(null, ks(e, l));
|
|
1745
1745
|
}
|
|
1746
1746
|
var Cl = {
|
|
1747
1747
|
YAML: function(e, l, t) {
|
|
@@ -1750,7 +1750,7 @@ var Cl = {
|
|
|
1750
1750
|
},
|
|
1751
1751
|
TAG: function(e, l, t) {
|
|
1752
1752
|
var a, s;
|
|
1753
|
-
t.length !== 2 && R(e, "TAG directive accepts exactly two arguments"), a = t[0], s = t[1],
|
|
1753
|
+
t.length !== 2 && R(e, "TAG directive accepts exactly two arguments"), a = t[0], s = t[1], gs.test(a) || R(e, "ill-formed tag handle (first argument) of the TAG directive"), Fe.call(e.tagMap, a) && R(e, 'there is a previously declared suffix for "' + a + '" tag handle'), ys.test(s) || R(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1754
1754
|
try {
|
|
1755
1755
|
s = decodeURIComponent(s);
|
|
1756
1756
|
} catch {
|
|
@@ -1766,16 +1766,16 @@ function qe(e, l, t, a) {
|
|
|
1766
1766
|
for (s = 0, i = c.length; s < i; s += 1)
|
|
1767
1767
|
r = c.charCodeAt(s), r === 9 || 32 <= r && r <= 1114111 || R(e, "expected valid JSON character");
|
|
1768
1768
|
else
|
|
1769
|
-
|
|
1769
|
+
on.test(c) && R(e, "the stream contains non-printable characters");
|
|
1770
1770
|
e.result += c;
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
1773
1773
|
function _l(e, l, t, a) {
|
|
1774
1774
|
var s, i, r, c;
|
|
1775
1775
|
for (ce.isObject(t) || R(e, "cannot merge mappings; the provided source object is unacceptable"), s = Object.keys(t), r = 0, c = s.length; r < c; r += 1)
|
|
1776
|
-
i = s[r],
|
|
1776
|
+
i = s[r], Fe.call(l, i) || (l[i] = t[i], a[i] = !0);
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function Ve(e, l, t, a, s, i, r, c, o) {
|
|
1779
1779
|
var d, h;
|
|
1780
1780
|
if (Array.isArray(s))
|
|
1781
1781
|
for (s = Array.prototype.slice.call(s), d = 0, h = s.length; d < h; d += 1)
|
|
@@ -1787,7 +1787,7 @@ function Be(e, l, t, a, s, i, r, c, o) {
|
|
|
1787
1787
|
else
|
|
1788
1788
|
_l(e, l, i, t);
|
|
1789
1789
|
else
|
|
1790
|
-
!e.json && !
|
|
1790
|
+
!e.json && !Fe.call(t, s) && Fe.call(l, s) && (e.line = r || e.line, e.lineStart = c || e.lineStart, e.position = o || e.position, R(e, "duplicated mapping key")), s === "__proto__" ? Object.defineProperty(l, s, {
|
|
1791
1791
|
configurable: !0,
|
|
1792
1792
|
enumerable: !0,
|
|
1793
1793
|
writable: !0,
|
|
@@ -1801,7 +1801,7 @@ function Lt(e) {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
function ue(e, l, t) {
|
|
1803
1803
|
for (var a = 0, s = e.input.charCodeAt(e.position); s !== 0; ) {
|
|
1804
|
-
for (;
|
|
1804
|
+
for (; Me(s); )
|
|
1805
1805
|
s === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), s = e.input.charCodeAt(++e.position);
|
|
1806
1806
|
if (l && s === 35)
|
|
1807
1807
|
do
|
|
@@ -1823,19 +1823,19 @@ function Rt(e, l) {
|
|
|
1823
1823
|
l === 1 ? e.result += " " : l > 1 && (e.result += ce.repeat(`
|
|
1824
1824
|
`, l - 1));
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1826
|
+
function gn(e, l, t) {
|
|
1827
1827
|
var a, s, i, r, c, o, d, h, p = e.kind, m = e.result, n;
|
|
1828
|
-
if (n = e.input.charCodeAt(e.position), ke(n) ||
|
|
1828
|
+
if (n = e.input.charCodeAt(e.position), ke(n) || Be(n) || n === 35 || n === 38 || n === 42 || n === 33 || n === 124 || n === 62 || n === 39 || n === 34 || n === 37 || n === 64 || n === 96 || (n === 63 || n === 45) && (s = e.input.charCodeAt(e.position + 1), ke(s) || t && Be(s)))
|
|
1829
1829
|
return !1;
|
|
1830
1830
|
for (e.kind = "scalar", e.result = "", i = r = e.position, c = !1; n !== 0; ) {
|
|
1831
1831
|
if (n === 58) {
|
|
1832
|
-
if (s = e.input.charCodeAt(e.position + 1), ke(s) || t &&
|
|
1832
|
+
if (s = e.input.charCodeAt(e.position + 1), ke(s) || t && Be(s))
|
|
1833
1833
|
break;
|
|
1834
1834
|
} else if (n === 35) {
|
|
1835
1835
|
if (a = e.input.charCodeAt(e.position - 1), ke(a))
|
|
1836
1836
|
break;
|
|
1837
1837
|
} else {
|
|
1838
|
-
if (e.position === e.lineStart && ht(e) || t &&
|
|
1838
|
+
if (e.position === e.lineStart && ht(e) || t && Be(n))
|
|
1839
1839
|
break;
|
|
1840
1840
|
if (we(n))
|
|
1841
1841
|
if (o = e.line, d = e.lineStart, h = e.lineIndent, ue(e, !1, -1), e.lineIndent >= l) {
|
|
@@ -1846,11 +1846,11 @@ function yn(e, l, t) {
|
|
|
1846
1846
|
break;
|
|
1847
1847
|
}
|
|
1848
1848
|
}
|
|
1849
|
-
c && (qe(e, i, r, !1), Rt(e, e.line - o), i = r = e.position, c = !1),
|
|
1849
|
+
c && (qe(e, i, r, !1), Rt(e, e.line - o), i = r = e.position, c = !1), Me(n) || (r = e.position + 1), n = e.input.charCodeAt(++e.position);
|
|
1850
1850
|
}
|
|
1851
1851
|
return qe(e, i, r, !1), e.result ? !0 : (e.kind = p, e.result = m, !1);
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1853
|
+
function yn(e, l) {
|
|
1854
1854
|
var t, a, s;
|
|
1855
1855
|
if (t = e.input.charCodeAt(e.position), t !== 39)
|
|
1856
1856
|
return !1;
|
|
@@ -1864,7 +1864,7 @@ function vn(e, l) {
|
|
|
1864
1864
|
we(t) ? (qe(e, a, s, !0), Rt(e, ue(e, !1, l)), a = s = e.position) : e.position === e.lineStart && ht(e) ? R(e, "unexpected end of the document within a single quoted scalar") : (e.position++, s = e.position);
|
|
1865
1865
|
R(e, "unexpected end of the stream within a single quoted scalar");
|
|
1866
1866
|
}
|
|
1867
|
-
function
|
|
1867
|
+
function vn(e, l) {
|
|
1868
1868
|
var t, a, s, i, r, c;
|
|
1869
1869
|
if (c = e.input.charCodeAt(e.position), c !== 34)
|
|
1870
1870
|
return !1;
|
|
@@ -1874,12 +1874,12 @@ function bn(e, l) {
|
|
|
1874
1874
|
if (c === 92) {
|
|
1875
1875
|
if (qe(e, t, e.position, !0), c = e.input.charCodeAt(++e.position), we(c))
|
|
1876
1876
|
ue(e, !1, l);
|
|
1877
|
-
else if (c < 256 &&
|
|
1878
|
-
e.result +=
|
|
1879
|
-
else if ((r =
|
|
1877
|
+
else if (c < 256 && vs[c])
|
|
1878
|
+
e.result += bs[c], e.position++;
|
|
1879
|
+
else if ((r = hn(c)) > 0) {
|
|
1880
1880
|
for (s = r, i = 0; s > 0; s--)
|
|
1881
|
-
c = e.input.charCodeAt(++e.position), (r =
|
|
1882
|
-
e.result +=
|
|
1881
|
+
c = e.input.charCodeAt(++e.position), (r = dn(c)) >= 0 ? i = (i << 4) + r : R(e, "expected hexadecimal character");
|
|
1882
|
+
e.result += fn(i), e.position++;
|
|
1883
1883
|
} else
|
|
1884
1884
|
R(e, "unknown escape sequence");
|
|
1885
1885
|
t = a = e.position;
|
|
@@ -1888,7 +1888,7 @@ function bn(e, l) {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
R(e, "unexpected end of the stream within a double quoted scalar");
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function bn(e, l) {
|
|
1892
1892
|
var t = !0, a, s, i, r = e.tag, c, o = e.anchor, d, h, p, m, n, A = /* @__PURE__ */ Object.create(null), _, g, b, H;
|
|
1893
1893
|
if (H = e.input.charCodeAt(e.position), H === 91)
|
|
1894
1894
|
h = 93, n = !1, c = [];
|
|
@@ -1899,11 +1899,11 @@ function kn(e, l) {
|
|
|
1899
1899
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), H = e.input.charCodeAt(++e.position); H !== 0; ) {
|
|
1900
1900
|
if (ue(e, !0, l), H = e.input.charCodeAt(e.position), H === h)
|
|
1901
1901
|
return e.position++, e.tag = r, e.anchor = o, e.kind = n ? "mapping" : "sequence", e.result = c, !0;
|
|
1902
|
-
t ? H === 44 && R(e, "expected the node content, but found ','") : R(e, "missed comma between flow collection entries"), g = _ = b = null, p = m = !1, H === 63 && (d = e.input.charCodeAt(e.position + 1), ke(d) && (p = m = !0, e.position++, ue(e, !0, l))), a = e.line, s = e.lineStart, i = e.position, Je(e, l, rt, !1, !0), g = e.tag, _ = e.result, ue(e, !0, l), H = e.input.charCodeAt(e.position), (m || e.line === a) && H === 58 && (p = !0, H = e.input.charCodeAt(++e.position), ue(e, !0, l), Je(e, l, rt, !1, !0), b = e.result), n ?
|
|
1902
|
+
t ? H === 44 && R(e, "expected the node content, but found ','") : R(e, "missed comma between flow collection entries"), g = _ = b = null, p = m = !1, H === 63 && (d = e.input.charCodeAt(e.position + 1), ke(d) && (p = m = !0, e.position++, ue(e, !0, l))), a = e.line, s = e.lineStart, i = e.position, Je(e, l, rt, !1, !0), g = e.tag, _ = e.result, ue(e, !0, l), H = e.input.charCodeAt(e.position), (m || e.line === a) && H === 58 && (p = !0, H = e.input.charCodeAt(++e.position), ue(e, !0, l), Je(e, l, rt, !1, !0), b = e.result), n ? Ve(e, c, A, g, _, b, a, s, i) : p ? c.push(Ve(e, null, A, g, _, b, a, s, i)) : c.push(_), ue(e, !0, l), H = e.input.charCodeAt(e.position), H === 44 ? (t = !0, H = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1903
1903
|
}
|
|
1904
1904
|
R(e, "unexpected end of the stream within a flow collection");
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function kn(e, l) {
|
|
1907
1907
|
var t, a, s = kt, i = !1, r = !1, c = l, o = 0, d = !1, h, p;
|
|
1908
1908
|
if (p = e.input.charCodeAt(e.position), p === 124)
|
|
1909
1909
|
a = !1;
|
|
@@ -1913,15 +1913,15 @@ function Cn(e, l) {
|
|
|
1913
1913
|
return !1;
|
|
1914
1914
|
for (e.kind = "scalar", e.result = ""; p !== 0; )
|
|
1915
1915
|
if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45)
|
|
1916
|
-
kt === s ? s = p === 43 ? vl :
|
|
1917
|
-
else if ((h =
|
|
1916
|
+
kt === s ? s = p === 43 ? vl : nn : R(e, "repeat of a chomping mode identifier");
|
|
1917
|
+
else if ((h = pn(p)) >= 0)
|
|
1918
1918
|
h === 0 ? R(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : r ? R(e, "repeat of an indentation width identifier") : (c = l + h - 1, r = !0);
|
|
1919
1919
|
else
|
|
1920
1920
|
break;
|
|
1921
|
-
if (
|
|
1921
|
+
if (Me(p)) {
|
|
1922
1922
|
do
|
|
1923
1923
|
p = e.input.charCodeAt(++e.position);
|
|
1924
|
-
while (
|
|
1924
|
+
while (Me(p));
|
|
1925
1925
|
if (p === 35)
|
|
1926
1926
|
do
|
|
1927
1927
|
p = e.input.charCodeAt(++e.position);
|
|
@@ -1940,7 +1940,7 @@ function Cn(e, l) {
|
|
|
1940
1940
|
`);
|
|
1941
1941
|
break;
|
|
1942
1942
|
}
|
|
1943
|
-
for (a ?
|
|
1943
|
+
for (a ? Me(p) ? (d = !0, e.result += ce.repeat(`
|
|
1944
1944
|
`, i ? 1 + o : o)) : d ? (d = !1, e.result += ce.repeat(`
|
|
1945
1945
|
`, o + 1)) : o === 0 ? i && (e.result += " ") : e.result += ce.repeat(`
|
|
1946
1946
|
`, o) : e.result += ce.repeat(`
|
|
@@ -1959,28 +1959,28 @@ function wl(e, l) {
|
|
|
1959
1959
|
i.push(null), o = e.input.charCodeAt(e.position);
|
|
1960
1960
|
continue;
|
|
1961
1961
|
}
|
|
1962
|
-
if (t = e.line, Je(e, l,
|
|
1962
|
+
if (t = e.line, Je(e, l, ms, !1, !0), i.push(e.result), ue(e, !0, -1), o = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > l) && o !== 0)
|
|
1963
1963
|
R(e, "bad indentation of a sequence entry");
|
|
1964
1964
|
else if (e.lineIndent < l)
|
|
1965
1965
|
break;
|
|
1966
1966
|
}
|
|
1967
1967
|
return c ? (e.tag = a, e.anchor = s, e.kind = "sequence", e.result = i, !0) : !1;
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function Cn(e, l, t) {
|
|
1970
1970
|
var a, s, i, r, c, o, d = e.tag, h = e.anchor, p = {}, m = /* @__PURE__ */ Object.create(null), n = null, A = null, _ = null, g = !1, b = !1, H;
|
|
1971
1971
|
if (e.firstTabInLine !== -1)
|
|
1972
1972
|
return !1;
|
|
1973
1973
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), H = e.input.charCodeAt(e.position); H !== 0; ) {
|
|
1974
1974
|
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, R(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), i = e.line, (H === 63 || H === 58) && ke(a))
|
|
1975
|
-
H === 63 ? (g && (
|
|
1975
|
+
H === 63 ? (g && (Ve(e, p, m, n, A, null, r, c, o), n = A = _ = null), b = !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, H = a;
|
|
1976
1976
|
else {
|
|
1977
|
-
if (r = e.line, c = e.lineStart, o = e.position, !Je(e, t,
|
|
1977
|
+
if (r = e.line, c = e.lineStart, o = e.position, !Je(e, t, fs, !1, !0))
|
|
1978
1978
|
break;
|
|
1979
1979
|
if (e.line === i) {
|
|
1980
|
-
for (H = e.input.charCodeAt(e.position);
|
|
1980
|
+
for (H = e.input.charCodeAt(e.position); Me(H); )
|
|
1981
1981
|
H = e.input.charCodeAt(++e.position);
|
|
1982
1982
|
if (H === 58)
|
|
1983
|
-
H = e.input.charCodeAt(++e.position), ke(H) || R(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (
|
|
1983
|
+
H = e.input.charCodeAt(++e.position), ke(H) || R(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (Ve(e, p, m, n, A, null, r, c, o), n = A = _ = null), b = !0, g = !1, s = !1, n = e.tag, A = e.result;
|
|
1984
1984
|
else if (b)
|
|
1985
1985
|
R(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1986
1986
|
else
|
|
@@ -1990,14 +1990,14 @@ function _n(e, l, t) {
|
|
|
1990
1990
|
else
|
|
1991
1991
|
return e.tag = d, e.anchor = h, !0;
|
|
1992
1992
|
}
|
|
1993
|
-
if ((e.line === i || e.lineIndent > l) && (g && (r = e.line, c = e.lineStart, o = e.position), Je(e, l, it, !0, s) && (g ? A = e.result : _ = e.result), g || (
|
|
1993
|
+
if ((e.line === i || e.lineIndent > l) && (g && (r = e.line, c = e.lineStart, o = e.position), Je(e, l, it, !0, s) && (g ? A = e.result : _ = e.result), g || (Ve(e, p, m, n, A, _, r, c, o), n = A = _ = null), ue(e, !0, -1), H = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > l) && H !== 0)
|
|
1994
1994
|
R(e, "bad indentation of a mapping entry");
|
|
1995
1995
|
else if (e.lineIndent < l)
|
|
1996
1996
|
break;
|
|
1997
1997
|
}
|
|
1998
|
-
return g &&
|
|
1998
|
+
return g && Ve(e, p, m, n, A, null, r, c, o), b && (e.tag = d, e.anchor = h, e.kind = "mapping", e.result = p), b;
|
|
1999
1999
|
}
|
|
2000
|
-
function
|
|
2000
|
+
function _n(e) {
|
|
2001
2001
|
var l, t = !1, a = !1, s, i, r;
|
|
2002
2002
|
if (r = e.input.charCodeAt(e.position), r !== 33)
|
|
2003
2003
|
return !1;
|
|
@@ -2008,39 +2008,39 @@ function wn(e) {
|
|
|
2008
2008
|
e.position < e.length ? (i = e.input.slice(l, e.position), r = e.input.charCodeAt(++e.position)) : R(e, "unexpected end of the stream within a verbatim tag");
|
|
2009
2009
|
} else {
|
|
2010
2010
|
for (; r !== 0 && !ke(r); )
|
|
2011
|
-
r === 33 && (a ? R(e, "tag suffix cannot contain exclamation marks") : (s = e.input.slice(l - 1, e.position + 1),
|
|
2012
|
-
i = e.input.slice(l, e.position),
|
|
2011
|
+
r === 33 && (a ? R(e, "tag suffix cannot contain exclamation marks") : (s = e.input.slice(l - 1, e.position + 1), gs.test(s) || R(e, "named tag handle cannot contain such characters"), a = !0, l = e.position + 1)), r = e.input.charCodeAt(++e.position);
|
|
2012
|
+
i = e.input.slice(l, e.position), cn.test(i) && R(e, "tag suffix cannot contain flow indicator characters");
|
|
2013
2013
|
}
|
|
2014
|
-
i && !
|
|
2014
|
+
i && !ys.test(i) && R(e, "tag name cannot contain such characters: " + i);
|
|
2015
2015
|
try {
|
|
2016
2016
|
i = decodeURIComponent(i);
|
|
2017
2017
|
} catch {
|
|
2018
2018
|
R(e, "tag name is malformed: " + i);
|
|
2019
2019
|
}
|
|
2020
|
-
return t ? e.tag = i :
|
|
2020
|
+
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;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function wn(e) {
|
|
2023
2023
|
var l, t;
|
|
2024
2024
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2025
2025
|
return !1;
|
|
2026
|
-
for (e.anchor !== null && R(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), l = e.position; t !== 0 && !ke(t) && !
|
|
2026
|
+
for (e.anchor !== null && R(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), l = e.position; t !== 0 && !ke(t) && !Be(t); )
|
|
2027
2027
|
t = e.input.charCodeAt(++e.position);
|
|
2028
2028
|
return e.position === l && R(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(l, e.position), !0;
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function Sn(e) {
|
|
2031
2031
|
var l, t, a;
|
|
2032
2032
|
if (a = e.input.charCodeAt(e.position), a !== 42)
|
|
2033
2033
|
return !1;
|
|
2034
|
-
for (a = e.input.charCodeAt(++e.position), l = e.position; a !== 0 && !ke(a) && !
|
|
2034
|
+
for (a = e.input.charCodeAt(++e.position), l = e.position; a !== 0 && !ke(a) && !Be(a); )
|
|
2035
2035
|
a = e.input.charCodeAt(++e.position);
|
|
2036
|
-
return e.position === l && R(e, "name of an alias node must contain at least one character"), t = e.input.slice(l, e.position),
|
|
2036
|
+
return e.position === l && R(e, "name of an alias node must contain at least one character"), t = e.input.slice(l, e.position), Fe.call(e.anchorMap, t) || R(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ue(e, !0, -1), !0;
|
|
2037
2037
|
}
|
|
2038
2038
|
function Je(e, l, t, a, s) {
|
|
2039
2039
|
var i, r, c, o = 1, d = !1, h = !1, p, m, n, A, _, g;
|
|
2040
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = r = c = it === t ||
|
|
2041
|
-
for (;
|
|
2040
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = r = c = it === t || ms === t, a && ue(e, !0, -1) && (d = !0, e.lineIndent > l ? o = 1 : e.lineIndent === l ? o = 0 : e.lineIndent < l && (o = -1)), o === 1)
|
|
2041
|
+
for (; _n(e) || wn(e); )
|
|
2042
2042
|
ue(e, !0, -1) ? (d = !0, c = i, e.lineIndent > l ? o = 1 : e.lineIndent === l ? o = 0 : e.lineIndent < l && (o = -1)) : c = !1;
|
|
2043
|
-
if (c && (c = d || s), (o === 1 || it === t) && (rt === t ||
|
|
2043
|
+
if (c && (c = d || s), (o === 1 || it === t) && (rt === t || fs === t ? _ = l : _ = l + 1, g = e.position - e.lineStart, o === 1 ? c && (wl(e, g) || Cn(e, g, _)) || bn(e, _) ? h = !0 : (r && kn(e, _) || yn(e, _) || vn(e, _) ? h = !0 : Sn(e) ? (h = !0, (e.tag !== null || e.anchor !== null) && R(e, "alias node should not have any properties")) : gn(e, _, rt === t) && (h = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : o === 0 && (h = c && wl(e, g))), e.tag === null)
|
|
2044
2044
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2045
2045
|
else if (e.tag === "?") {
|
|
2046
2046
|
for (e.result !== null && e.kind !== "scalar" && R(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, m = e.implicitTypes.length; p < m; p += 1)
|
|
@@ -2049,7 +2049,7 @@ function Je(e, l, t, a, s) {
|
|
|
2049
2049
|
break;
|
|
2050
2050
|
}
|
|
2051
2051
|
} else if (e.tag !== "!") {
|
|
2052
|
-
if (
|
|
2052
|
+
if (Fe.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2053
2053
|
A = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2054
2054
|
else
|
|
2055
2055
|
for (A = null, n = e.typeMap.multi[e.kind || "fallback"], p = 0, m = n.length; p < m; p += 1)
|
|
@@ -2061,13 +2061,13 @@ function Je(e, l, t, a, s) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || h;
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function In(e) {
|
|
2065
2065
|
var l = e.position, t, a, s, i = !1, r;
|
|
2066
2066
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (ue(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37)); ) {
|
|
2067
2067
|
for (i = !0, r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ke(r); )
|
|
2068
2068
|
r = e.input.charCodeAt(++e.position);
|
|
2069
2069
|
for (a = e.input.slice(t, e.position), s = [], a.length < 1 && R(e, "directive name must not be less than one character in length"); r !== 0; ) {
|
|
2070
|
-
for (;
|
|
2070
|
+
for (; Me(r); )
|
|
2071
2071
|
r = e.input.charCodeAt(++e.position);
|
|
2072
2072
|
if (r === 35) {
|
|
2073
2073
|
do
|
|
@@ -2081,9 +2081,9 @@ function xn(e) {
|
|
|
2081
2081
|
r = e.input.charCodeAt(++e.position);
|
|
2082
2082
|
s.push(e.input.slice(t, e.position));
|
|
2083
2083
|
}
|
|
2084
|
-
r !== 0 && Lt(e),
|
|
2084
|
+
r !== 0 && Lt(e), Fe.call(Cl, a) ? Cl[a](e, a, s) : nt(e, 'unknown document directive "' + a + '"');
|
|
2085
2085
|
}
|
|
2086
|
-
if (ue(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, ue(e, !0, -1)) : i && R(e, "directives end mark is expected"), Je(e, e.lineIndent - 1, it, !1, !0), ue(e, !0, -1), e.checkLineBreaks &&
|
|
2086
|
+
if (ue(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, ue(e, !0, -1)) : i && R(e, "directives end mark is expected"), Je(e, e.lineIndent - 1, it, !1, !0), ue(e, !0, -1), e.checkLineBreaks && un.test(e.input.slice(l, e.position)) && nt(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ht(e)) {
|
|
2087
2087
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, ue(e, !0, -1));
|
|
2088
2088
|
return;
|
|
2089
2089
|
}
|
|
@@ -2092,36 +2092,36 @@ function xn(e) {
|
|
|
2092
2092
|
else
|
|
2093
2093
|
return;
|
|
2094
2094
|
}
|
|
2095
|
-
function
|
|
2095
|
+
function Cs(e, l) {
|
|
2096
2096
|
e = String(e), l = l || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2097
2097
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2098
|
-
var t = new
|
|
2098
|
+
var t = new mn(e, l), a = e.indexOf("\0");
|
|
2099
2099
|
for (a !== -1 && (t.position = a, R(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2100
2100
|
t.lineIndent += 1, t.position += 1;
|
|
2101
2101
|
for (; t.position < t.length - 1; )
|
|
2102
|
-
|
|
2102
|
+
In(t);
|
|
2103
2103
|
return t.documents;
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2105
|
+
function xn(e, l, t) {
|
|
2106
2106
|
l !== null && typeof l == "object" && typeof t > "u" && (t = l, l = null);
|
|
2107
|
-
var a =
|
|
2107
|
+
var a = Cs(e, t);
|
|
2108
2108
|
if (typeof l != "function")
|
|
2109
2109
|
return a;
|
|
2110
2110
|
for (var s = 0, i = a.length; s < i; s += 1)
|
|
2111
2111
|
l(a[s]);
|
|
2112
2112
|
}
|
|
2113
|
-
function
|
|
2114
|
-
var t =
|
|
2113
|
+
function Hn(e, l) {
|
|
2114
|
+
var t = Cs(e, l);
|
|
2115
2115
|
if (t.length !== 0) {
|
|
2116
2116
|
if (t.length === 1)
|
|
2117
2117
|
return t[0];
|
|
2118
2118
|
throw new ye("expected a single document in the stream, but found more");
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
2121
|
-
var
|
|
2122
|
-
loadAll:
|
|
2123
|
-
load:
|
|
2124
|
-
},
|
|
2121
|
+
var An = xn, Tn = Hn, _s = {
|
|
2122
|
+
loadAll: An,
|
|
2123
|
+
load: Tn
|
|
2124
|
+
}, ws = Object.prototype.toString, Ss = Object.prototype.hasOwnProperty, Dt = 65279, On = 9, Ze = 10, qn = 13, Un = 32, Fn = 33, $n = 34, St = 35, Mn = 37, jn = 38, Nn = 39, Kn = 42, Is = 44, En = 45, ot = 58, Pn = 61, Bn = 62, Vn = 63, Ln = 64, xs = 91, Hs = 93, Rn = 96, As = 123, Dn = 124, Ts = 125, ge = {};
|
|
2125
2125
|
ge[0] = "\\0";
|
|
2126
2126
|
ge[7] = "\\a";
|
|
2127
2127
|
ge[8] = "\\b";
|
|
@@ -2137,7 +2137,7 @@ ge[133] = "\\N";
|
|
|
2137
2137
|
ge[160] = "\\_";
|
|
2138
2138
|
ge[8232] = "\\L";
|
|
2139
2139
|
ge[8233] = "\\P";
|
|
2140
|
-
var
|
|
2140
|
+
var zn = [
|
|
2141
2141
|
"y",
|
|
2142
2142
|
"Y",
|
|
2143
2143
|
"yes",
|
|
@@ -2154,16 +2154,16 @@ var Jn = [
|
|
|
2154
2154
|
"off",
|
|
2155
2155
|
"Off",
|
|
2156
2156
|
"OFF"
|
|
2157
|
-
],
|
|
2158
|
-
function
|
|
2157
|
+
], Jn = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2158
|
+
function Wn(e, l) {
|
|
2159
2159
|
var t, a, s, i, r, c, o;
|
|
2160
2160
|
if (l === null)
|
|
2161
2161
|
return {};
|
|
2162
2162
|
for (t = {}, a = Object.keys(l), s = 0, i = a.length; s < i; s += 1)
|
|
2163
|
-
r = a[s], c = String(l[r]), r.slice(0, 2) === "!!" && (r = "tag:yaml.org,2002:" + r.slice(2)), o = e.compiledTypeMap.fallback[r], o &&
|
|
2163
|
+
r = a[s], c = String(l[r]), r.slice(0, 2) === "!!" && (r = "tag:yaml.org,2002:" + r.slice(2)), o = e.compiledTypeMap.fallback[r], o && Ss.call(o.styleAliases, c) && (c = o.styleAliases[c]), t[r] = c;
|
|
2164
2164
|
return t;
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2166
|
+
function Qn(e) {
|
|
2167
2167
|
var l, t, a;
|
|
2168
2168
|
if (l = e.toString(16).toUpperCase(), e <= 255)
|
|
2169
2169
|
t = "x", a = 2;
|
|
@@ -2175,9 +2175,9 @@ function Yn(e) {
|
|
|
2175
2175
|
throw new ye("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2176
2176
|
return "\\" + t + ce.repeat("0", a - l.length) + l;
|
|
2177
2177
|
}
|
|
2178
|
-
var
|
|
2179
|
-
function
|
|
2180
|
-
this.schema = e.schema || Vt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ce.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2178
|
+
var Yn = 1, Ge = 2;
|
|
2179
|
+
function Zn(e) {
|
|
2180
|
+
this.schema = e.schema || Vt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ce.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Wn(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 === '"' ? Ge : Yn, 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;
|
|
2181
2181
|
}
|
|
2182
2182
|
function Sl(e, l) {
|
|
2183
2183
|
for (var t = ce.repeat(" ", l), a = 0, s = -1, i = "", r, c = e.length; a < c; )
|
|
@@ -2190,7 +2190,7 @@ function It(e, l) {
|
|
|
2190
2190
|
return `
|
|
2191
2191
|
` + ce.repeat(" ", e.indent * l);
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function Gn(e, l) {
|
|
2194
2194
|
var t, a, s;
|
|
2195
2195
|
for (t = 0, a = e.implicitTypes.length; t < a; t += 1)
|
|
2196
2196
|
if (s = e.implicitTypes[t], s.resolve(l))
|
|
@@ -2198,13 +2198,13 @@ function Xn(e, l) {
|
|
|
2198
2198
|
return !1;
|
|
2199
2199
|
}
|
|
2200
2200
|
function ut(e) {
|
|
2201
|
-
return e ===
|
|
2201
|
+
return e === Un || e === On;
|
|
2202
2202
|
}
|
|
2203
2203
|
function Xe(e) {
|
|
2204
2204
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Dt || 65536 <= e && e <= 1114111;
|
|
2205
2205
|
}
|
|
2206
2206
|
function Il(e) {
|
|
2207
|
-
return Xe(e) && e !== Dt && e !==
|
|
2207
|
+
return Xe(e) && e !== Dt && e !== qn && e !== Ze;
|
|
2208
2208
|
}
|
|
2209
2209
|
function xl(e, l, t) {
|
|
2210
2210
|
var a = Il(e), s = a && !ut(e);
|
|
@@ -2213,30 +2213,30 @@ function xl(e, l, t) {
|
|
|
2213
2213
|
(t ? (
|
|
2214
2214
|
// c = flow-in
|
|
2215
2215
|
a
|
|
2216
|
-
) : a && e !==
|
|
2216
|
+
) : a && e !== Is && e !== xs && e !== Hs && e !== As && e !== Ts) && e !== St && !(l === ot && !s) || Il(l) && !ut(l) && e === St || l === ot && s
|
|
2217
2217
|
);
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2220
|
-
return Xe(e) && e !== Dt && !ut(e) && e !==
|
|
2219
|
+
function Xn(e) {
|
|
2220
|
+
return Xe(e) && e !== Dt && !ut(e) && e !== En && e !== Vn && e !== ot && e !== Is && e !== xs && e !== Hs && e !== As && e !== Ts && e !== St && e !== jn && e !== Kn && e !== Fn && e !== Dn && e !== Pn && e !== Bn && e !== Nn && e !== $n && e !== Mn && e !== Ln && e !== Rn;
|
|
2221
2221
|
}
|
|
2222
|
-
function
|
|
2222
|
+
function eo(e) {
|
|
2223
2223
|
return !ut(e) && e !== ot;
|
|
2224
2224
|
}
|
|
2225
2225
|
function Qe(e, l) {
|
|
2226
2226
|
var t = e.charCodeAt(l), a;
|
|
2227
2227
|
return t >= 55296 && t <= 56319 && l + 1 < e.length && (a = e.charCodeAt(l + 1), a >= 56320 && a <= 57343) ? (t - 55296) * 1024 + a - 56320 + 65536 : t;
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function Os(e) {
|
|
2230
2230
|
var l = /^\n* /;
|
|
2231
2231
|
return l.test(e);
|
|
2232
2232
|
}
|
|
2233
|
-
var
|
|
2234
|
-
function
|
|
2235
|
-
var o, d = 0, h = null, p = !1, m = !1, n = a !== -1, A = -1, _ =
|
|
2233
|
+
var qs = 1, xt = 2, Us = 3, Fs = 4, Pe = 5;
|
|
2234
|
+
function to(e, l, t, a, s, i, r, c) {
|
|
2235
|
+
var o, d = 0, h = null, p = !1, m = !1, n = a !== -1, A = -1, _ = Xn(Qe(e, 0)) && eo(Qe(e, e.length - 1));
|
|
2236
2236
|
if (l || r)
|
|
2237
2237
|
for (o = 0; o < e.length; d >= 65536 ? o += 2 : o++) {
|
|
2238
2238
|
if (d = Qe(e, o), !Xe(d))
|
|
2239
|
-
return
|
|
2239
|
+
return Pe;
|
|
2240
2240
|
_ = _ && xl(d, h, c), h = d;
|
|
2241
2241
|
}
|
|
2242
2242
|
else {
|
|
@@ -2245,24 +2245,24 @@ function ao(e, l, t, a, s, i, r, c) {
|
|
|
2245
2245
|
p = !0, n && (m = m || // Foldable line = too long, and not more-indented.
|
|
2246
2246
|
o - A - 1 > a && e[A + 1] !== " ", A = o);
|
|
2247
2247
|
else if (!Xe(d))
|
|
2248
|
-
return
|
|
2248
|
+
return Pe;
|
|
2249
2249
|
_ = _ && xl(d, h, c), h = d;
|
|
2250
2250
|
}
|
|
2251
2251
|
m = m || n && o - A - 1 > a && e[A + 1] !== " ";
|
|
2252
2252
|
}
|
|
2253
|
-
return !p && !m ? _ && !r && !s(e) ?
|
|
2253
|
+
return !p && !m ? _ && !r && !s(e) ? qs : i === Ge ? Pe : xt : t > 9 && Os(e) ? Pe : r ? i === Ge ? Pe : xt : m ? Fs : Us;
|
|
2254
2254
|
}
|
|
2255
|
-
function
|
|
2255
|
+
function ao(e, l, t, a, s) {
|
|
2256
2256
|
e.dump = function() {
|
|
2257
2257
|
if (l.length === 0)
|
|
2258
2258
|
return e.quotingType === Ge ? '""' : "''";
|
|
2259
|
-
if (!e.noCompatMode && (
|
|
2259
|
+
if (!e.noCompatMode && (zn.indexOf(l) !== -1 || Jn.test(l)))
|
|
2260
2260
|
return e.quotingType === Ge ? '"' + l + '"' : "'" + l + "'";
|
|
2261
2261
|
var i = e.indent * Math.max(1, t), r = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - i), c = a || e.flowLevel > -1 && t >= e.flowLevel;
|
|
2262
2262
|
function o(d) {
|
|
2263
|
-
return
|
|
2263
|
+
return Gn(e, d);
|
|
2264
2264
|
}
|
|
2265
|
-
switch (
|
|
2265
|
+
switch (to(
|
|
2266
2266
|
l,
|
|
2267
2267
|
c,
|
|
2268
2268
|
e.indent,
|
|
@@ -2272,23 +2272,23 @@ function lo(e, l, t, a, s) {
|
|
|
2272
2272
|
e.forceQuotes && !a,
|
|
2273
2273
|
s
|
|
2274
2274
|
)) {
|
|
2275
|
-
case
|
|
2275
|
+
case qs:
|
|
2276
2276
|
return l;
|
|
2277
2277
|
case xt:
|
|
2278
2278
|
return "'" + l.replace(/'/g, "''") + "'";
|
|
2279
|
-
case
|
|
2279
|
+
case Us:
|
|
2280
2280
|
return "|" + Hl(l, e.indent) + Al(Sl(l, i));
|
|
2281
|
-
case
|
|
2282
|
-
return ">" + Hl(l, e.indent) + Al(Sl(
|
|
2283
|
-
case
|
|
2284
|
-
return '"' +
|
|
2281
|
+
case Fs:
|
|
2282
|
+
return ">" + Hl(l, e.indent) + Al(Sl(lo(l, r), i));
|
|
2283
|
+
case Pe:
|
|
2284
|
+
return '"' + so(l) + '"';
|
|
2285
2285
|
default:
|
|
2286
2286
|
throw new ye("impossible error: invalid scalar style");
|
|
2287
2287
|
}
|
|
2288
2288
|
}();
|
|
2289
2289
|
}
|
|
2290
2290
|
function Hl(e, l) {
|
|
2291
|
-
var t =
|
|
2291
|
+
var t = Os(e) ? String(l) : "", a = e[e.length - 1] === `
|
|
2292
2292
|
`, s = a && (e[e.length - 2] === `
|
|
2293
2293
|
` || e === `
|
|
2294
2294
|
`), i = s ? "+" : a ? "" : "-";
|
|
@@ -2299,7 +2299,7 @@ function Al(e) {
|
|
|
2299
2299
|
return e[e.length - 1] === `
|
|
2300
2300
|
` ? e.slice(0, -1) : e;
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2302
|
+
function lo(e, l) {
|
|
2303
2303
|
for (var t = /(\n+)([^\n]*)/g, a = function() {
|
|
2304
2304
|
var d = e.indexOf(`
|
|
2305
2305
|
`);
|
|
@@ -2322,12 +2322,12 @@ function Tl(e, l) {
|
|
|
2322
2322
|
`, e.length - s > l && r > s ? o += e.slice(s, r) + `
|
|
2323
2323
|
` + e.slice(r + 1) : o += e.slice(s), o.slice(1);
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function so(e) {
|
|
2326
2326
|
for (var l = "", t = 0, a, s = 0; s < e.length; t >= 65536 ? s += 2 : s++)
|
|
2327
|
-
t = Qe(e, s), a = ge[t], !a && Xe(t) ? (l += e[s], t >= 65536 && (l += e[s + 1])) : l += a ||
|
|
2327
|
+
t = Qe(e, s), a = ge[t], !a && Xe(t) ? (l += e[s], t >= 65536 && (l += e[s + 1])) : l += a || Qn(t);
|
|
2328
2328
|
return l;
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2330
|
+
function ro(e, l, t) {
|
|
2331
2331
|
var a = "", s = e.tag, i, r, c;
|
|
2332
2332
|
for (i = 0, r = t.length; i < r; i += 1)
|
|
2333
2333
|
c = t[i], e.replacer && (c = e.replacer.call(t, String(i), c)), (xe(e, l, c, !1, !1) || typeof c > "u" && xe(e, l, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
|
|
@@ -2339,13 +2339,13 @@ function Ol(e, l, t, a) {
|
|
|
2339
2339
|
o = t[r], e.replacer && (o = e.replacer.call(t, String(r), o)), (xe(e, l + 1, o, !0, !0, !1, !0) || typeof o > "u" && xe(e, l + 1, null, !0, !0, !1, !0)) && ((!a || s !== "") && (s += It(e, l)), e.dump && Ze === e.dump.charCodeAt(0) ? s += "-" : s += "- ", s += e.dump);
|
|
2340
2340
|
e.tag = i, e.dump = s || "[]";
|
|
2341
2341
|
}
|
|
2342
|
-
function
|
|
2342
|
+
function io(e, l, t) {
|
|
2343
2343
|
var a = "", s = e.tag, i = Object.keys(t), r, c, o, d, h;
|
|
2344
2344
|
for (r = 0, c = i.length; r < c; r += 1)
|
|
2345
2345
|
h = "", a !== "" && (h += ", "), e.condenseFlow && (h += '"'), o = i[r], d = t[o], e.replacer && (d = e.replacer.call(t, o, d)), xe(e, l, o, !1, !1) && (e.dump.length > 1024 && (h += "? "), h += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), xe(e, l, d, !1, !1) && (h += e.dump, a += h));
|
|
2346
2346
|
e.tag = s, e.dump = "{" + a + "}";
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2348
|
+
function no(e, l, t, a) {
|
|
2349
2349
|
var s = "", i = e.tag, r = Object.keys(t), c, o, d, h, p, m;
|
|
2350
2350
|
if (e.sortKeys === !0)
|
|
2351
2351
|
r.sort();
|
|
@@ -2362,9 +2362,9 @@ function ql(e, l, t) {
|
|
|
2362
2362
|
for (s = t ? e.explicitTypes : e.implicitTypes, i = 0, r = s.length; i < r; i += 1)
|
|
2363
2363
|
if (c = s[i], (c.instanceOf || c.predicate) && (!c.instanceOf || typeof l == "object" && l instanceof c.instanceOf) && (!c.predicate || c.predicate(l))) {
|
|
2364
2364
|
if (t ? c.multi && c.representName ? e.tag = c.representName(l) : e.tag = c.tag : e.tag = "?", c.represent) {
|
|
2365
|
-
if (o = e.styleMap[c.tag] || c.defaultStyle,
|
|
2365
|
+
if (o = e.styleMap[c.tag] || c.defaultStyle, ws.call(c.represent) === "[object Function]")
|
|
2366
2366
|
a = c.represent(l, o);
|
|
2367
|
-
else if (
|
|
2367
|
+
else if (Ss.call(c.represent, o))
|
|
2368
2368
|
a = c.represent[o](l, o);
|
|
2369
2369
|
else
|
|
2370
2370
|
throw new ye("!<" + c.tag + '> tag resolver accepts not "' + o + '" style');
|
|
@@ -2376,18 +2376,18 @@ function ql(e, l, t) {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
function xe(e, l, t, a, s, i, r) {
|
|
2378
2378
|
e.tag = null, e.dump = t, ql(e, t, !1) || ql(e, t, !0);
|
|
2379
|
-
var c =
|
|
2379
|
+
var c = ws.call(e.dump), o = a, d;
|
|
2380
2380
|
a && (a = e.flowLevel < 0 || e.flowLevel > l);
|
|
2381
2381
|
var h = c === "[object Object]" || c === "[object Array]", p, m;
|
|
2382
2382
|
if (h && (p = e.duplicates.indexOf(t), m = p !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && l > 0) && (s = !1), m && e.usedDuplicates[p])
|
|
2383
2383
|
e.dump = "*ref_" + p;
|
|
2384
2384
|
else {
|
|
2385
2385
|
if (h && m && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), c === "[object Object]")
|
|
2386
|
-
a && Object.keys(e.dump).length !== 0 ? (
|
|
2386
|
+
a && Object.keys(e.dump).length !== 0 ? (no(e, l, e.dump, s), m && (e.dump = "&ref_" + p + e.dump)) : (io(e, l, e.dump), m && (e.dump = "&ref_" + p + " " + e.dump));
|
|
2387
2387
|
else if (c === "[object Array]")
|
|
2388
|
-
a && e.dump.length !== 0 ? (e.noArrayIndent && !r && l > 0 ? Ol(e, l - 1, e.dump, s) : Ol(e, l, e.dump, s), m && (e.dump = "&ref_" + p + e.dump)) : (
|
|
2388
|
+
a && e.dump.length !== 0 ? (e.noArrayIndent && !r && l > 0 ? Ol(e, l - 1, e.dump, s) : Ol(e, l, e.dump, s), m && (e.dump = "&ref_" + p + e.dump)) : (ro(e, l, e.dump), m && (e.dump = "&ref_" + p + " " + e.dump));
|
|
2389
2389
|
else if (c === "[object String]")
|
|
2390
|
-
e.tag !== "?" &&
|
|
2390
|
+
e.tag !== "?" && ao(e, e.dump, l, i, o);
|
|
2391
2391
|
else {
|
|
2392
2392
|
if (c === "[object Undefined]" || e.skipInvalid)
|
|
2393
2393
|
return !1;
|
|
@@ -2399,7 +2399,7 @@ function xe(e, l, t, a, s, i, r) {
|
|
|
2399
2399
|
}
|
|
2400
2400
|
return !0;
|
|
2401
2401
|
}
|
|
2402
|
-
function
|
|
2402
|
+
function oo(e, l) {
|
|
2403
2403
|
var t = [], a = [], s, i;
|
|
2404
2404
|
for (Ht(e, t, a), s = 0, i = a.length; s < i; s += 1)
|
|
2405
2405
|
l.duplicates.push(t[a[s]]);
|
|
@@ -2417,68 +2417,68 @@ function Ht(e, l, t) {
|
|
|
2417
2417
|
for (a = Object.keys(e), s = 0, i = a.length; s < i; s += 1)
|
|
2418
2418
|
Ht(e[a[s]], l, t);
|
|
2419
2419
|
}
|
|
2420
|
-
function
|
|
2420
|
+
function uo(e, l) {
|
|
2421
2421
|
l = l || {};
|
|
2422
|
-
var t = new
|
|
2423
|
-
t.noRefs ||
|
|
2422
|
+
var t = new Zn(l);
|
|
2423
|
+
t.noRefs || oo(e, t);
|
|
2424
2424
|
var a = e;
|
|
2425
2425
|
return t.replacer && (a = t.replacer.call({ "": a }, "", a)), xe(t, 0, a, !0, !0) ? t.dump + `
|
|
2426
2426
|
` : "";
|
|
2427
2427
|
}
|
|
2428
|
-
var
|
|
2429
|
-
dump:
|
|
2428
|
+
var co = uo, ho = {
|
|
2429
|
+
dump: co
|
|
2430
2430
|
};
|
|
2431
2431
|
function zt(e, l) {
|
|
2432
2432
|
return function() {
|
|
2433
2433
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + l + " instead, which is now safe by default.");
|
|
2434
2434
|
};
|
|
2435
2435
|
}
|
|
2436
|
-
var
|
|
2437
|
-
binary:
|
|
2438
|
-
float:
|
|
2439
|
-
map:
|
|
2440
|
-
null:
|
|
2441
|
-
pairs:
|
|
2442
|
-
set:
|
|
2443
|
-
timestamp:
|
|
2444
|
-
bool:
|
|
2445
|
-
int:
|
|
2446
|
-
merge:
|
|
2447
|
-
omap:
|
|
2448
|
-
seq:
|
|
2449
|
-
str:
|
|
2450
|
-
},
|
|
2451
|
-
Type:
|
|
2452
|
-
Schema:
|
|
2453
|
-
FAILSAFE_SCHEMA:
|
|
2454
|
-
JSON_SCHEMA:
|
|
2455
|
-
CORE_SCHEMA:
|
|
2456
|
-
DEFAULT_SCHEMA:
|
|
2457
|
-
load:
|
|
2458
|
-
loadAll:
|
|
2459
|
-
dump:
|
|
2460
|
-
YAMLException:
|
|
2461
|
-
types:
|
|
2462
|
-
safeLoad:
|
|
2463
|
-
safeLoadAll:
|
|
2464
|
-
safeDump:
|
|
2436
|
+
var po = fe, fo = Ql, mo = Xl, go = ss, yo = rs, vo = Vt, bo = _s.load, ko = _s.loadAll, Co = ho.dump, _o = ye, wo = {
|
|
2437
|
+
binary: cs,
|
|
2438
|
+
float: ls,
|
|
2439
|
+
map: Gl,
|
|
2440
|
+
null: es,
|
|
2441
|
+
pairs: hs,
|
|
2442
|
+
set: ps,
|
|
2443
|
+
timestamp: os,
|
|
2444
|
+
bool: ts,
|
|
2445
|
+
int: as,
|
|
2446
|
+
merge: us,
|
|
2447
|
+
omap: ds,
|
|
2448
|
+
seq: Zl,
|
|
2449
|
+
str: Yl
|
|
2450
|
+
}, So = zt("safeLoad", "load"), Io = zt("safeLoadAll", "loadAll"), xo = zt("safeDump", "dump"), Ho = {
|
|
2451
|
+
Type: po,
|
|
2452
|
+
Schema: fo,
|
|
2453
|
+
FAILSAFE_SCHEMA: mo,
|
|
2454
|
+
JSON_SCHEMA: go,
|
|
2455
|
+
CORE_SCHEMA: yo,
|
|
2456
|
+
DEFAULT_SCHEMA: vo,
|
|
2457
|
+
load: bo,
|
|
2458
|
+
loadAll: ko,
|
|
2459
|
+
dump: Co,
|
|
2460
|
+
YAMLException: _o,
|
|
2461
|
+
types: wo,
|
|
2462
|
+
safeLoad: So,
|
|
2463
|
+
safeLoadAll: Io,
|
|
2464
|
+
safeDump: xo
|
|
2465
2465
|
};
|
|
2466
|
-
const
|
|
2466
|
+
const Ao = {
|
|
2467
2467
|
key: 0,
|
|
2468
2468
|
class: "config-card-display-form"
|
|
2469
|
-
},
|
|
2469
|
+
}, To = ["data-testid"], Oo = {
|
|
2470
2470
|
key: 0,
|
|
2471
2471
|
class: "config-card-prop-section-title"
|
|
2472
|
-
},
|
|
2472
|
+
}, qo = {
|
|
2473
2473
|
key: 1,
|
|
2474
2474
|
class: "config-card-display-json"
|
|
2475
|
-
},
|
|
2475
|
+
}, Uo = {
|
|
2476
2476
|
key: 0,
|
|
2477
2477
|
class: "config-card-display-json-endpoint"
|
|
2478
|
-
},
|
|
2478
|
+
}, Fo = {
|
|
2479
2479
|
key: 2,
|
|
2480
2480
|
class: "config-card-display-yaml"
|
|
2481
|
-
},
|
|
2481
|
+
}, $o = /* @__PURE__ */ le({
|
|
2482
2482
|
__name: "ConfigCardDisplay",
|
|
2483
2483
|
props: {
|
|
2484
2484
|
propertyCollections: {
|
|
@@ -2521,18 +2521,18 @@ const To = {
|
|
|
2521
2521
|
return be(() => l.format, (o) => {
|
|
2522
2522
|
if (o !== "structured") {
|
|
2523
2523
|
const d = JSON.parse(JSON.stringify(l.record));
|
|
2524
|
-
delete d.created_at, delete d.updated_at, o === "json" ? i.value = JSON.stringify(d, null, 2) : o === "yaml" && (r.value =
|
|
2524
|
+
delete d.created_at, delete d.updated_at, o === "json" ? i.value = JSON.stringify(d, null, 2) : o === "yaml" && (r.value = Ho.dump(d));
|
|
2525
2525
|
}
|
|
2526
2526
|
}, { immediate: !0 }), (o, d) => {
|
|
2527
2527
|
const h = M("KBadge"), p = M("KCodeBlock");
|
|
2528
2528
|
return k(), E(de, null, [
|
|
2529
|
-
e.format === "structured" ? (k(), E("div",
|
|
2529
|
+
e.format === "structured" ? (k(), E("div", Ao, [
|
|
2530
2530
|
(k(!0), E(de, null, ve(e.propListTypes, (m) => (k(), E("div", {
|
|
2531
2531
|
key: `config-card-details-${m}-props`,
|
|
2532
2532
|
class: Ie(`config-card-details-${m}-props`),
|
|
2533
2533
|
"data-testid": `config-card-details-${m}-props`
|
|
2534
2534
|
}, [
|
|
2535
|
-
m !== "basic" ? (k(), E("div",
|
|
2535
|
+
m !== "basic" ? (k(), E("div", Oo, S(m === "advanced" ? u(a)("baseConfigCard.sections.advanced") : u(a)("baseConfigCard.sections.plugin")), 1)) : Q("", !0),
|
|
2536
2536
|
(k(!0), E(de, null, ve(e.propertyCollections[m], (n) => (k(), L(Pt, {
|
|
2537
2537
|
key: n.key,
|
|
2538
2538
|
item: n
|
|
@@ -2556,10 +2556,10 @@ const To = {
|
|
|
2556
2556
|
key: "0"
|
|
2557
2557
|
} : void 0
|
|
2558
2558
|
]), 1032, ["item"]))), 128))
|
|
2559
|
-
], 10,
|
|
2559
|
+
], 10, To))), 128))
|
|
2560
2560
|
])) : Q("", !0),
|
|
2561
|
-
e.format === "json" ? (k(), E("div",
|
|
2562
|
-
l.fetcherUrl ? (k(), E("div",
|
|
2561
|
+
e.format === "json" ? (k(), E("div", qo, [
|
|
2562
|
+
l.fetcherUrl ? (k(), E("div", Uo, [
|
|
2563
2563
|
y(h, { appearance: "get" }, {
|
|
2564
2564
|
default: f(() => [
|
|
2565
2565
|
Y(S(u(a)("baseConfigCard.endpoints.get")), 1)
|
|
@@ -2582,7 +2582,7 @@ const To = {
|
|
|
2582
2582
|
theme: "dark"
|
|
2583
2583
|
}, null, 8, ["class", "code"])
|
|
2584
2584
|
])) : Q("", !0),
|
|
2585
|
-
e.format === "yaml" ? (k(), E("div",
|
|
2585
|
+
e.format === "yaml" ? (k(), E("div", Fo, [
|
|
2586
2586
|
y(p, {
|
|
2587
2587
|
id: "config-card-codeblock",
|
|
2588
2588
|
code: r.value,
|
|
@@ -2593,18 +2593,18 @@ const To = {
|
|
|
2593
2593
|
], 64);
|
|
2594
2594
|
};
|
|
2595
2595
|
}
|
|
2596
|
-
}),
|
|
2596
|
+
}), Mo = /* @__PURE__ */ Ce($o, [["__scopeId", "data-v-27f85338"]]), Ul = "24px", jo = (e, l) => {
|
|
2597
2597
|
const t = e.__vccOpts || e;
|
|
2598
2598
|
for (const [a, s] of l)
|
|
2599
2599
|
t[a] = s;
|
|
2600
2600
|
return t;
|
|
2601
|
-
},
|
|
2601
|
+
}, No = (e) => (Kl("data-v-84d5ee61"), e = e(), El(), e), Ko = ["aria-hidden"], Eo = {
|
|
2602
2602
|
key: 0,
|
|
2603
2603
|
"data-testid": "kui-icon-svg-title"
|
|
2604
|
-
},
|
|
2604
|
+
}, Po = /* @__PURE__ */ No(() => /* @__PURE__ */ x("path", {
|
|
2605
2605
|
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",
|
|
2606
2606
|
fill: "currentColor"
|
|
2607
|
-
}, null, -1)),
|
|
2607
|
+
}, null, -1)), Bo = /* @__PURE__ */ le({
|
|
2608
2608
|
__name: "BookIcon",
|
|
2609
2609
|
props: {
|
|
2610
2610
|
/** The accessibility text provided to screen readers */
|
|
@@ -2673,7 +2673,7 @@ const To = {
|
|
|
2673
2673
|
lineHeight: "0",
|
|
2674
2674
|
width: t.value
|
|
2675
2675
|
}));
|
|
2676
|
-
return (s, i) => (k(), L(
|
|
2676
|
+
return (s, i) => (k(), L(Ue(e.as), {
|
|
2677
2677
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2678
2678
|
class: "kui-icon book-icon",
|
|
2679
2679
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -2690,23 +2690,23 @@ const To = {
|
|
|
2690
2690
|
width: "100%",
|
|
2691
2691
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2692
2692
|
}, [
|
|
2693
|
-
e.title ? (k(), E("title",
|
|
2694
|
-
|
|
2695
|
-
], 8,
|
|
2693
|
+
e.title ? (k(), E("title", Eo, S(e.title), 1)) : Q("", !0),
|
|
2694
|
+
Po
|
|
2695
|
+
], 8, Ko))
|
|
2696
2696
|
]),
|
|
2697
2697
|
_: 1
|
|
2698
2698
|
}, 8, ["aria-hidden", "style"]));
|
|
2699
2699
|
}
|
|
2700
|
-
}),
|
|
2700
|
+
}), Vo = /* @__PURE__ */ jo(Bo, [["__scopeId", "data-v-84d5ee61"]]), Lo = { "data-testid": "config-card-title" }, Ro = { class: "config-card-actions" }, Do = ["href"], zo = {
|
|
2701
2701
|
key: 2,
|
|
2702
2702
|
class: "config-card-details-section"
|
|
2703
|
-
},
|
|
2703
|
+
}, Jo = {
|
|
2704
2704
|
key: 3,
|
|
2705
2705
|
class: "config-card-details-section"
|
|
2706
|
-
},
|
|
2706
|
+
}, Wo = ["data-testid"], Qo = {
|
|
2707
2707
|
key: 0,
|
|
2708
2708
|
class: "config-card-prop-section-title"
|
|
2709
|
-
},
|
|
2709
|
+
}, Yo = /* @__PURE__ */ le({
|
|
2710
2710
|
__name: "EntityBaseConfigCard",
|
|
2711
2711
|
props: {
|
|
2712
2712
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2926,7 +2926,7 @@ const To = {
|
|
|
2926
2926
|
const I = M("KLabel"), K = M("KSelect"), V = M("KButton"), Z = M("KClipboardProvider"), J = M("KSkeleton"), z = M("KEmptyState"), G = M("KCard");
|
|
2927
2927
|
return k(), L(G, { class: "kong-ui-entity-base-config-card" }, Oe({
|
|
2928
2928
|
actions: f(() => [
|
|
2929
|
-
x("div",
|
|
2929
|
+
x("div", Ro, [
|
|
2930
2930
|
ae(O.$slots, "actions", {}, void 0, !0),
|
|
2931
2931
|
e.config.jsonYamlEnabled ? (k(), L(I, {
|
|
2932
2932
|
key: 0,
|
|
@@ -2957,8 +2957,8 @@ const To = {
|
|
|
2957
2957
|
rel: "noopener",
|
|
2958
2958
|
target: "_blank"
|
|
2959
2959
|
}, [
|
|
2960
|
-
y(u(
|
|
2961
|
-
], 8,
|
|
2960
|
+
y(u(Vo), { size: u(Jr) }, null, 8, ["size"])
|
|
2961
|
+
], 8, Do)
|
|
2962
2962
|
]),
|
|
2963
2963
|
_: 1
|
|
2964
2964
|
})) : Q("", !0),
|
|
@@ -2996,8 +2996,8 @@ const To = {
|
|
|
2996
2996
|
]),
|
|
2997
2997
|
_: 1
|
|
2998
2998
|
})) : Q("", !0),
|
|
2999
|
-
e.config.jsonYamlEnabled ? (k(), E("div",
|
|
3000
|
-
y(
|
|
2999
|
+
e.config.jsonYamlEnabled ? (k(), E("div", zo, [
|
|
3000
|
+
y(Mo, {
|
|
3001
3001
|
"fetcher-url": D.value,
|
|
3002
3002
|
format: p.value,
|
|
3003
3003
|
"prop-list-types": B.value,
|
|
@@ -3014,13 +3014,13 @@ const To = {
|
|
|
3014
3014
|
])
|
|
3015
3015
|
}))
|
|
3016
3016
|
]), 1032, ["fetcher-url", "format", "prop-list-types", "property-collections", "record"])
|
|
3017
|
-
])) : (k(), E("div",
|
|
3017
|
+
])) : (k(), E("div", Jo, [
|
|
3018
3018
|
(k(!0), E(de, null, ve(B.value, (X) => (k(), E("div", {
|
|
3019
3019
|
key: `config-card-details-${X}-props`,
|
|
3020
3020
|
class: Ie(`config-card-details-${X}-props`),
|
|
3021
3021
|
"data-testid": `config-card-details-${X}-props`
|
|
3022
3022
|
}, [
|
|
3023
|
-
X !== "basic" ? (k(), E("div",
|
|
3023
|
+
X !== "basic" ? (k(), E("div", Qo, S(X === "advanced" ? u(r)("baseConfigCard.sections.advanced") : u(r)("baseConfigCard.sections.plugin")), 1)) : Q("", !0),
|
|
3024
3024
|
(k(!0), E(de, null, ve($.value[X], (U) => (k(), L(Pt, {
|
|
3025
3025
|
key: U.key,
|
|
3026
3026
|
item: U
|
|
@@ -3044,7 +3044,7 @@ const To = {
|
|
|
3044
3044
|
key: "0"
|
|
3045
3045
|
} : void 0
|
|
3046
3046
|
]), 1032, ["item"]))), 128))
|
|
3047
|
-
], 10,
|
|
3047
|
+
], 10, Wo))), 128))
|
|
3048
3048
|
]))
|
|
3049
3049
|
]),
|
|
3050
3050
|
_: 2
|
|
@@ -3052,7 +3052,7 @@ const To = {
|
|
|
3052
3052
|
e.hideTitle ? void 0 : {
|
|
3053
3053
|
name: "title",
|
|
3054
3054
|
fn: f(() => [
|
|
3055
|
-
x("div",
|
|
3055
|
+
x("div", Lo, [
|
|
3056
3056
|
ae(O.$slots, "title", {}, () => [
|
|
3057
3057
|
Y(S(u(r)("baseConfigCard.title")), 1)
|
|
3058
3058
|
], !0)
|
|
@@ -3063,10 +3063,10 @@ const To = {
|
|
|
3063
3063
|
]), 1024);
|
|
3064
3064
|
};
|
|
3065
3065
|
}
|
|
3066
|
-
}),
|
|
3066
|
+
}), Zo = /* @__PURE__ */ Ce(Yo, [["__scopeId", "data-v-4f47d6ad"]]), Go = {
|
|
3067
3067
|
class: "form-actions",
|
|
3068
3068
|
"data-testid": "form-actions"
|
|
3069
|
-
},
|
|
3069
|
+
}, Xo = /* @__PURE__ */ le({
|
|
3070
3070
|
__name: "EntityBaseForm",
|
|
3071
3071
|
props: {
|
|
3072
3072
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3176,7 +3176,7 @@ const To = {
|
|
|
3176
3176
|
appearance: "danger",
|
|
3177
3177
|
"data-testid": "form-error"
|
|
3178
3178
|
}, null, 8, ["alert-message"])) : Q("", !0),
|
|
3179
|
-
x("div",
|
|
3179
|
+
x("div", Go, [
|
|
3180
3180
|
ae(b.$slots, "form-actions", {}, () => [
|
|
3181
3181
|
y(T, {
|
|
3182
3182
|
appearance: "secondary",
|
|
@@ -3208,10 +3208,10 @@ const To = {
|
|
|
3208
3208
|
});
|
|
3209
3209
|
};
|
|
3210
3210
|
}
|
|
3211
|
-
}),
|
|
3211
|
+
}), $s = /* @__PURE__ */ Ce(Xo, [["__scopeId", "data-v-448d8512"]]), eu = {
|
|
3212
3212
|
key: 0,
|
|
3213
3213
|
"data-testid": "first-col"
|
|
3214
|
-
},
|
|
3214
|
+
}, tu = /* @__PURE__ */ le({
|
|
3215
3215
|
__name: "EntityBaseTableCell",
|
|
3216
3216
|
props: {
|
|
3217
3217
|
keyName: {
|
|
@@ -3256,9 +3256,9 @@ const To = {
|
|
|
3256
3256
|
},
|
|
3257
3257
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3258
3258
|
), A = q(() => s.value ? d.value > h.value : !1);
|
|
3259
|
-
return
|
|
3259
|
+
return Ds(() => {
|
|
3260
3260
|
c();
|
|
3261
|
-
}),
|
|
3261
|
+
}), zs(() => {
|
|
3262
3262
|
n();
|
|
3263
3263
|
}), (_, g) => {
|
|
3264
3264
|
const b = M("KTooltip");
|
|
@@ -3267,7 +3267,7 @@ const To = {
|
|
|
3267
3267
|
ref: o,
|
|
3268
3268
|
class: "content-wrapper"
|
|
3269
3269
|
}, [
|
|
3270
|
-
s.value ? (k(), E("span",
|
|
3270
|
+
s.value ? (k(), E("span", eu, [
|
|
3271
3271
|
y(b, {
|
|
3272
3272
|
label: A.value ? p.value : "",
|
|
3273
3273
|
"max-width": "300",
|
|
@@ -3282,10 +3282,10 @@ const To = {
|
|
|
3282
3282
|
], 512);
|
|
3283
3283
|
};
|
|
3284
3284
|
}
|
|
3285
|
-
}),
|
|
3285
|
+
}), au = /* @__PURE__ */ Ce(tu, [["__scopeId", "data-v-e42a20c9"]]), lu = { class: "toolbar-container" }, su = {
|
|
3286
3286
|
key: 0,
|
|
3287
3287
|
class: "toolbar-button-container"
|
|
3288
|
-
},
|
|
3288
|
+
}, ru = ["data-testid"], iu = /* @__PURE__ */ le({
|
|
3289
3289
|
__name: "EntityBaseTable",
|
|
3290
3290
|
props: {
|
|
3291
3291
|
// table header configuration
|
|
@@ -3444,7 +3444,7 @@ const To = {
|
|
|
3444
3444
|
a("click:row", T);
|
|
3445
3445
|
}), g = (B) => {
|
|
3446
3446
|
a("sort", B);
|
|
3447
|
-
}, { setTablePreferences: b, getTablePreferences: H } =
|
|
3447
|
+
}, { setTablePreferences: b, getTablePreferences: H } = Gs(), F = q(() => {
|
|
3448
3448
|
const B = H(t.preferencesStorageKey);
|
|
3449
3449
|
return {
|
|
3450
3450
|
...t.initialFetcherParams,
|
|
@@ -3493,13 +3493,13 @@ const To = {
|
|
|
3493
3493
|
"onUpdate:tablePreferences": $
|
|
3494
3494
|
}, Oe({
|
|
3495
3495
|
toolbar: f(({ state: K }) => [
|
|
3496
|
-
|
|
3496
|
+
Le(x("div", lu, [
|
|
3497
3497
|
ae(B.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3498
|
-
B.$slots["toolbar-button"] ? (k(), E("div",
|
|
3498
|
+
B.$slots["toolbar-button"] ? (k(), E("div", su, [
|
|
3499
3499
|
ae(B.$slots, "toolbar-button", {}, void 0, !0)
|
|
3500
3500
|
])) : Q("", !0)
|
|
3501
3501
|
], 512), [
|
|
3502
|
-
[
|
|
3502
|
+
[Re, c(K)]
|
|
3503
3503
|
])
|
|
3504
3504
|
]),
|
|
3505
3505
|
actions: f(({ row: K, rowKey: V, rowValue: Z }) => [
|
|
@@ -3526,7 +3526,7 @@ const To = {
|
|
|
3526
3526
|
}, {
|
|
3527
3527
|
icon: f(() => [
|
|
3528
3528
|
y(D, {
|
|
3529
|
-
color: u(
|
|
3529
|
+
color: u(Dr),
|
|
3530
3530
|
icon: "more",
|
|
3531
3531
|
size: "16"
|
|
3532
3532
|
}, null, 8, ["color"])
|
|
@@ -3536,14 +3536,14 @@ const To = {
|
|
|
3536
3536
|
]),
|
|
3537
3537
|
_: 2
|
|
3538
3538
|
}, 1032, ["width"])
|
|
3539
|
-
], 8,
|
|
3539
|
+
], 8, ru)
|
|
3540
3540
|
]),
|
|
3541
3541
|
_: 2
|
|
3542
3542
|
}, [
|
|
3543
3543
|
ve(e.tableHeaders, (K, V) => ({
|
|
3544
3544
|
name: V,
|
|
3545
3545
|
fn: f(({ row: Z, rowKey: J, rowValue: z }) => [
|
|
3546
|
-
y(
|
|
3546
|
+
y(au, {
|
|
3547
3547
|
"key-name": String(V),
|
|
3548
3548
|
"row-el": p(Z)
|
|
3549
3549
|
}, {
|
|
@@ -3566,13 +3566,13 @@ const To = {
|
|
|
3566
3566
|
}, 8, ["title"]);
|
|
3567
3567
|
};
|
|
3568
3568
|
}
|
|
3569
|
-
}),
|
|
3569
|
+
}), Ms = /* @__PURE__ */ Ce(iu, [["__scopeId", "data-v-57b5a97b"]]), nu = {
|
|
3570
3570
|
key: 0,
|
|
3571
3571
|
class: "kong-ui-entity-delete-error"
|
|
3572
|
-
},
|
|
3572
|
+
}, ou = {
|
|
3573
3573
|
key: 1,
|
|
3574
3574
|
class: "description"
|
|
3575
|
-
},
|
|
3575
|
+
}, uu = /* @__PURE__ */ le({
|
|
3576
3576
|
__name: "EntityDeleteModal",
|
|
3577
3577
|
props: {
|
|
3578
3578
|
visible: {
|
|
@@ -3630,7 +3630,7 @@ const To = {
|
|
|
3630
3630
|
onProceed: c
|
|
3631
3631
|
}, {
|
|
3632
3632
|
"body-content": f(() => [
|
|
3633
|
-
e.error ? (k(), E("div",
|
|
3633
|
+
e.error ? (k(), E("div", nu, [
|
|
3634
3634
|
y(h, { appearance: "danger" }, {
|
|
3635
3635
|
alertMessage: f(() => [
|
|
3636
3636
|
Y(S(e.error), 1)
|
|
@@ -3656,7 +3656,7 @@ const To = {
|
|
|
3656
3656
|
key: "0"
|
|
3657
3657
|
} : void 0
|
|
3658
3658
|
]), 1032, ["keypath"]),
|
|
3659
|
-
a.description || o.$slots.description ? (k(), E("div",
|
|
3659
|
+
a.description || o.$slots.description ? (k(), E("div", ou, [
|
|
3660
3660
|
ae(o.$slots, "description", {}, () => [
|
|
3661
3661
|
x("p", null, S(a.description), 1)
|
|
3662
3662
|
], !0)
|
|
@@ -3666,13 +3666,13 @@ const To = {
|
|
|
3666
3666
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3667
3667
|
};
|
|
3668
3668
|
}
|
|
3669
|
-
}),
|
|
3669
|
+
}), js = /* @__PURE__ */ Ce(uu, [["__scopeId", "data-v-1c9a2a07"]]), cu = {
|
|
3670
3670
|
fill: "none",
|
|
3671
3671
|
height: "20",
|
|
3672
3672
|
viewBox: "0 0 20 20",
|
|
3673
3673
|
width: "20",
|
|
3674
3674
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3675
|
-
},
|
|
3675
|
+
}, du = {
|
|
3676
3676
|
id: "mask0_180_20349",
|
|
3677
3677
|
height: "20",
|
|
3678
3678
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3680,35 +3680,35 @@ const To = {
|
|
|
3680
3680
|
width: "20",
|
|
3681
3681
|
x: "0",
|
|
3682
3682
|
y: "0"
|
|
3683
|
-
},
|
|
3683
|
+
}, hu = ["fill"], pu = { mask: "url(#mask0_180_20349)" }, fu = ["fill"], Fl = /* @__PURE__ */ le({
|
|
3684
3684
|
__name: "IconFilter",
|
|
3685
3685
|
props: {
|
|
3686
3686
|
color: {
|
|
3687
3687
|
type: String,
|
|
3688
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3688
|
+
default: `var(--kong-ui-entity-filter-color, ${Lr})`
|
|
3689
3689
|
}
|
|
3690
3690
|
},
|
|
3691
3691
|
setup(e) {
|
|
3692
|
-
return (l, t) => (k(), E("svg",
|
|
3693
|
-
x("mask",
|
|
3692
|
+
return (l, t) => (k(), E("svg", cu, [
|
|
3693
|
+
x("mask", du, [
|
|
3694
3694
|
x("rect", {
|
|
3695
3695
|
fill: e.color,
|
|
3696
3696
|
height: "20",
|
|
3697
3697
|
width: "20"
|
|
3698
|
-
}, null, 8,
|
|
3698
|
+
}, null, 8, hu)
|
|
3699
3699
|
]),
|
|
3700
|
-
x("g",
|
|
3700
|
+
x("g", pu, [
|
|
3701
3701
|
x("path", {
|
|
3702
3702
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3703
3703
|
fill: e.color
|
|
3704
|
-
}, null, 8,
|
|
3704
|
+
}, null, 8, fu)
|
|
3705
3705
|
])
|
|
3706
3706
|
]));
|
|
3707
3707
|
}
|
|
3708
|
-
}),
|
|
3708
|
+
}), mu = {
|
|
3709
3709
|
key: 1,
|
|
3710
3710
|
class: "kong-ui-entity-filter"
|
|
3711
|
-
},
|
|
3711
|
+
}, gu = { class: "menu-item-title" }, yu = { class: "menu-item-indicator" }, vu = { class: "menu-item-body" }, bu = ["for"], ku = { class: "menu-item-buttons" }, Cu = { class: "filter-clear-button-container" }, _u = /* @__PURE__ */ le({
|
|
3712
3712
|
__name: "EntityFilter",
|
|
3713
3713
|
props: {
|
|
3714
3714
|
// filter config, either exact match or fuzzy match
|
|
@@ -3784,7 +3784,7 @@ const To = {
|
|
|
3784
3784
|
y(Fl)
|
|
3785
3785
|
]),
|
|
3786
3786
|
_: 1
|
|
3787
|
-
}, 8, ["model-value", "placeholder"])) : (k(), E("div",
|
|
3787
|
+
}, 8, ["model-value", "placeholder"])) : (k(), E("div", mu, [
|
|
3788
3788
|
y($, {
|
|
3789
3789
|
appearance: "tertiary",
|
|
3790
3790
|
"data-testid": "filter-button",
|
|
@@ -3796,13 +3796,13 @@ const To = {
|
|
|
3796
3796
|
]),
|
|
3797
3797
|
_: 1
|
|
3798
3798
|
}),
|
|
3799
|
-
|
|
3799
|
+
Le(x("div", {
|
|
3800
3800
|
class: "kong-ui-entity-filter-backdrop",
|
|
3801
3801
|
onClick: d
|
|
3802
3802
|
}, null, 512), [
|
|
3803
|
-
[
|
|
3803
|
+
[Re, i.value]
|
|
3804
3804
|
]),
|
|
3805
|
-
|
|
3805
|
+
Le(y(D, { class: "kong-ui-entity-filter-menu" }, {
|
|
3806
3806
|
body: f(() => [
|
|
3807
3807
|
(k(!0), E(de, null, ve(o.value, (j, O) => (k(), L(T, {
|
|
3808
3808
|
key: j.value,
|
|
@@ -3811,21 +3811,21 @@ const To = {
|
|
|
3811
3811
|
"last-menu-item": O === o.value.length - 1
|
|
3812
3812
|
}, {
|
|
3813
3813
|
itemTitle: f(() => [
|
|
3814
|
-
x("span",
|
|
3814
|
+
x("span", gu, [
|
|
3815
3815
|
Y(S(j.label) + " ", 1),
|
|
3816
|
-
|
|
3817
|
-
[
|
|
3816
|
+
Le(x("span", yu, null, 512), [
|
|
3817
|
+
[Re, c.value.includes(j.value)]
|
|
3818
3818
|
])
|
|
3819
3819
|
])
|
|
3820
3820
|
]),
|
|
3821
3821
|
itemBody: f(() => {
|
|
3822
3822
|
var N, I;
|
|
3823
3823
|
return [
|
|
3824
|
-
x("div",
|
|
3824
|
+
x("div", vu, [
|
|
3825
3825
|
x("label", {
|
|
3826
3826
|
class: "menu-item-label",
|
|
3827
3827
|
for: p(j.value)
|
|
3828
|
-
}, S(u(t)("filter.fieldLabel")), 9,
|
|
3828
|
+
}, S(u(t)("filter.fieldLabel")), 9, bu),
|
|
3829
3829
|
((I = (N = e.config.schema) == null ? void 0 : N[j.value]) == null ? void 0 : I.type) === "select" ? (k(), L(B, {
|
|
3830
3830
|
key: 0,
|
|
3831
3831
|
id: p(j.value),
|
|
@@ -3844,7 +3844,7 @@ const To = {
|
|
|
3844
3844
|
type: n(j.value)
|
|
3845
3845
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3846
3846
|
]),
|
|
3847
|
-
x("div",
|
|
3847
|
+
x("div", ku, [
|
|
3848
3848
|
y($, {
|
|
3849
3849
|
appearance: "tertiary",
|
|
3850
3850
|
"data-testid": "apply-filter",
|
|
@@ -3874,7 +3874,7 @@ const To = {
|
|
|
3874
3874
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3875
3875
|
]),
|
|
3876
3876
|
actionButton: f(() => [
|
|
3877
|
-
x("div",
|
|
3877
|
+
x("div", Cu, [
|
|
3878
3878
|
y($, {
|
|
3879
3879
|
appearance: "tertiary",
|
|
3880
3880
|
size: "small",
|
|
@@ -3889,12 +3889,12 @@ const To = {
|
|
|
3889
3889
|
]),
|
|
3890
3890
|
_: 1
|
|
3891
3891
|
}, 512), [
|
|
3892
|
-
[
|
|
3892
|
+
[Re, i.value]
|
|
3893
3893
|
])
|
|
3894
3894
|
]));
|
|
3895
3895
|
};
|
|
3896
3896
|
}
|
|
3897
|
-
}),
|
|
3897
|
+
}), wu = /* @__PURE__ */ Ce(_u, [["__scopeId", "data-v-15962ee2"]]), Se = /* @__PURE__ */ le({
|
|
3898
3898
|
__name: "PermissionsWrapper",
|
|
3899
3899
|
props: {
|
|
3900
3900
|
/**
|
|
@@ -3924,16 +3924,16 @@ const To = {
|
|
|
3924
3924
|
isAllowed: t.value
|
|
3925
3925
|
}) : Q("", !0);
|
|
3926
3926
|
}
|
|
3927
|
-
}),
|
|
3927
|
+
}), Su = { class: "form-section-wrapper" }, Iu = {
|
|
3928
3928
|
key: 0,
|
|
3929
3929
|
class: "form-section-title"
|
|
3930
|
-
},
|
|
3930
|
+
}, xu = {
|
|
3931
3931
|
key: 1,
|
|
3932
3932
|
class: "form-section-description"
|
|
3933
|
-
},
|
|
3933
|
+
}, Hu = {
|
|
3934
3934
|
key: 2,
|
|
3935
3935
|
class: "form-section-footer"
|
|
3936
|
-
},
|
|
3936
|
+
}, Au = { class: "form-section-content" }, Tu = /* @__PURE__ */ le({
|
|
3937
3937
|
__name: "EntityFormSection",
|
|
3938
3938
|
props: {
|
|
3939
3939
|
title: {
|
|
@@ -3962,28 +3962,28 @@ const To = {
|
|
|
3962
3962
|
return (t, a) => (k(), E("fieldset", {
|
|
3963
3963
|
class: Ie(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
3964
3964
|
}, [
|
|
3965
|
-
x("div",
|
|
3965
|
+
x("div", Su, [
|
|
3966
3966
|
e.hideInfoHeader ? Q("", !0) : (k(), E("div", {
|
|
3967
3967
|
key: 0,
|
|
3968
3968
|
class: Ie(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3969
3969
|
}, [
|
|
3970
|
-
e.title ? (k(), E("h4",
|
|
3971
|
-
e.description || u(l).description ? (k(), E("div",
|
|
3970
|
+
e.title ? (k(), E("h4", Iu, S(e.title), 1)) : Q("", !0),
|
|
3971
|
+
e.description || u(l).description ? (k(), E("div", xu, [
|
|
3972
3972
|
ae(t.$slots, "description", {}, () => [
|
|
3973
3973
|
x("p", null, S(e.description), 1)
|
|
3974
3974
|
], !0)
|
|
3975
3975
|
])) : Q("", !0),
|
|
3976
|
-
u(l).footer ? (k(), E("div",
|
|
3976
|
+
u(l).footer ? (k(), E("div", Hu, [
|
|
3977
3977
|
ae(t.$slots, "footer", {}, void 0, !0)
|
|
3978
3978
|
])) : Q("", !0)
|
|
3979
3979
|
], 2)),
|
|
3980
|
-
x("div",
|
|
3980
|
+
x("div", Au, [
|
|
3981
3981
|
ae(t.$slots, "default", {}, void 0, !0)
|
|
3982
3982
|
])
|
|
3983
3983
|
])
|
|
3984
3984
|
], 2));
|
|
3985
3985
|
}
|
|
3986
|
-
}), at = /* @__PURE__ */ Ce(
|
|
3986
|
+
}), at = /* @__PURE__ */ Ce(Tu, [["__scopeId", "data-v-3565daa7"]]), { useAxios: pt, useDeleteUrlBuilder: Ns, useErrors: Ks, useExternalLinkCreator: jc, useFetchUrlBuilder: Nc, useFetcher: Es, useDebouncedFilter: $l, useStringHelpers: Kc, useHelpers: Ou, useGatewayFeatureSupported: Ec, useTruncationDetector: Pc } = he, qu = {
|
|
3987
3987
|
list: {
|
|
3988
3988
|
table_headers: {
|
|
3989
3989
|
id: "ID",
|
|
@@ -4269,7 +4269,7 @@ const To = {
|
|
|
4269
4269
|
labels: {
|
|
4270
4270
|
created_at: "Created at"
|
|
4271
4271
|
}
|
|
4272
|
-
},
|
|
4272
|
+
}, Uu = {
|
|
4273
4273
|
list: {
|
|
4274
4274
|
table_headers: {
|
|
4275
4275
|
id: "ID",
|
|
@@ -4337,15 +4337,15 @@ const To = {
|
|
|
4337
4337
|
}
|
|
4338
4338
|
}
|
|
4339
4339
|
}
|
|
4340
|
-
},
|
|
4341
|
-
upstreams:
|
|
4342
|
-
targets:
|
|
4340
|
+
}, Fu = {
|
|
4341
|
+
upstreams: qu,
|
|
4342
|
+
targets: Uu
|
|
4343
4343
|
};
|
|
4344
|
-
function
|
|
4345
|
-
const e = Mt("en-us",
|
|
4344
|
+
function $u() {
|
|
4345
|
+
const e = Mt("en-us", Fu);
|
|
4346
4346
|
return {
|
|
4347
4347
|
i18n: e,
|
|
4348
|
-
i18nT:
|
|
4348
|
+
i18nT: Pl(e)
|
|
4349
4349
|
// Translation component <i18n-t>
|
|
4350
4350
|
};
|
|
4351
4351
|
}
|
|
@@ -4731,7 +4731,7 @@ const ct = [
|
|
|
4731
4731
|
label: "599",
|
|
4732
4732
|
value: "599"
|
|
4733
4733
|
}
|
|
4734
|
-
], At = 10, Tt = 65536,
|
|
4734
|
+
], At = 10, Tt = 65536, Mu = 0, ju = 65535, De = 0, ze = 255, Ps = 0, Bs = 255, Nu = 0, Ku = 65535, Ml = 0, jl = 65535, Eu = 0, Pu = 2 ** 31, Ot = ["200", "302"], qt = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "306", "307", "308"], Ut = ["429", "404", "500", "501", "502", "503", "504", "505"], Ft = ["429", "500", "503"];
|
|
4735
4735
|
function ft() {
|
|
4736
4736
|
const e = (o) => /^\d+$/.test(o), l = (o, d, h) => {
|
|
4737
4737
|
if (e(o)) {
|
|
@@ -4792,9 +4792,9 @@ function ft() {
|
|
|
4792
4792
|
stringToNumberArray: t,
|
|
4793
4793
|
numberToStringArray: a,
|
|
4794
4794
|
upstreamsResponseToFields: (o) => {
|
|
4795
|
-
var h, p, m, n, A, _, g, b, H, F, $, B, T, D, j, O, N, I, K, V, Z, J, z, G, X, U, W, te, C, v, w, ie, ee, ne, pe, se, me,
|
|
4795
|
+
var h, p, m, n, A, _, g, b, H, F, $, B, T, D, j, O, N, I, K, V, Z, J, z, G, X, U, W, te, C, v, w, ie, ee, ne, pe, se, me, $e, je, Jt, Wt, Qt, Yt, Zt, Gt, 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, Aa, Ta, Oa, qa, Ua, Fa, $a, Ma, ja, Na, Ka, Ea, Pa, Ba, Va, La, Ra, Da, za, Ja, Wa, Qa, Ya, Za, Ga, Xa, el, tl, al, ll, sl, rl, il, nl, ol;
|
|
4796
4796
|
const d = s();
|
|
4797
|
-
return d.name = o.name || "", d.algorithm = o.algorithm || "round-robin", d.hostHeader = o.host_header || "", d.clientCertificate = o.client_certificate ? (h = o.client_certificate) == null ? void 0 : h.id : "", d.tags = ((p = o.tags) == null ? void 0 : p.join(", ")) || "", d.slots = o.slots !== null && o.slots !== void 0 ? o.slots.toString() : "10000", d.hashOn = o.hash_on || "none", d.hashFallback = o.hash_fallback || "none", d.hashOnHeader = o.hash_on_header || "", d.hashOnCookie = o.hash_on_cookie || "", d.hashOnCookiePath = o.hash_on_cookie_path || "/", d.hashOnQueryArgument = o.hash_on_query_arg || "", d.hashOnUriCapture = o.hash_on_uri_capture || "", d.hashFallbackHeader = o.hash_fallback_header || "", d.hashFallbackQueryArgument = o.hash_fallback_query_arg || "", d.hashFallbackUriCapture = o.hash_fallback_uri_capture || "", d.healthchecksThreshold = o.healthchecks.threshold !== null && o.healthchecks.threshold !== void 0 ? o.healthchecks.threshold.toString() : "", d.activeHealthSwitch = ((n = (m = o.healthchecks.active) == null ? void 0 : m.healthy) == null ? void 0 : n.interval) !== 0 || ((_ = (A = o.healthchecks.active) == null ? void 0 : A.unhealthy) == null ? void 0 : _.interval) !== 0, d.activeHealthCheck.type = ((g = o.healthchecks.active) == null ? void 0 : g.type) || "http", d.activeHealthCheck.httpPath = ((b = o.healthchecks.active) == null ? void 0 : b.http_path) || "/", d.activeHealthCheck.timeout = ((H = o.healthchecks.active) == null ? void 0 : H.timeout) !== null && ((F = o.healthchecks.active) == null ? void 0 : F.timeout) !== void 0 ? (B = ($ = o.healthchecks.active) == null ? void 0 : $.timeout) == null ? void 0 : B.toString() : "", d.activeHealthCheck.concurrency = ((T = o.healthchecks.active) == null ? void 0 : T.concurrency) !== null && ((D = o.healthchecks.active) == null ? void 0 : D.concurrency) !== void 0 ? (O = (j = o.healthchecks.active) == null ? void 0 : j.concurrency) == null ? void 0 : O.toString() : "", d.activeHealthCheck.httpsSni = ((N = o.healthchecks.active) == null ? void 0 : N.https_sni) || "", d.activeHealthCheck.verifySsl = ((I = o.healthchecks.active) == null ? void 0 : I.https_verify_certificate) || !1, d.activeHealthCheck.headers = (K = o.healthchecks.active) != null && K.headers && Object.entries((V = o.healthchecks.active) == null ? void 0 : V.headers).length > 0 ? Object.entries((Z = o.healthchecks.active) == null ? void 0 : Z.headers).map(([
|
|
4797
|
+
return d.name = o.name || "", d.algorithm = o.algorithm || "round-robin", d.hostHeader = o.host_header || "", d.clientCertificate = o.client_certificate ? (h = o.client_certificate) == null ? void 0 : h.id : "", d.tags = ((p = o.tags) == null ? void 0 : p.join(", ")) || "", d.slots = o.slots !== null && o.slots !== void 0 ? o.slots.toString() : "10000", d.hashOn = o.hash_on || "none", d.hashFallback = o.hash_fallback || "none", d.hashOnHeader = o.hash_on_header || "", d.hashOnCookie = o.hash_on_cookie || "", d.hashOnCookiePath = o.hash_on_cookie_path || "/", d.hashOnQueryArgument = o.hash_on_query_arg || "", d.hashOnUriCapture = o.hash_on_uri_capture || "", d.hashFallbackHeader = o.hash_fallback_header || "", d.hashFallbackQueryArgument = o.hash_fallback_query_arg || "", d.hashFallbackUriCapture = o.hash_fallback_uri_capture || "", d.healthchecksThreshold = o.healthchecks.threshold !== null && o.healthchecks.threshold !== void 0 ? o.healthchecks.threshold.toString() : "", d.activeHealthSwitch = ((n = (m = o.healthchecks.active) == null ? void 0 : m.healthy) == null ? void 0 : n.interval) !== 0 || ((_ = (A = o.healthchecks.active) == null ? void 0 : A.unhealthy) == null ? void 0 : _.interval) !== 0, d.activeHealthCheck.type = ((g = o.healthchecks.active) == null ? void 0 : g.type) || "http", d.activeHealthCheck.httpPath = ((b = o.healthchecks.active) == null ? void 0 : b.http_path) || "/", d.activeHealthCheck.timeout = ((H = o.healthchecks.active) == null ? void 0 : H.timeout) !== null && ((F = o.healthchecks.active) == null ? void 0 : F.timeout) !== void 0 ? (B = ($ = o.healthchecks.active) == null ? void 0 : $.timeout) == null ? void 0 : B.toString() : "", d.activeHealthCheck.concurrency = ((T = o.healthchecks.active) == null ? void 0 : T.concurrency) !== null && ((D = o.healthchecks.active) == null ? void 0 : D.concurrency) !== void 0 ? (O = (j = o.healthchecks.active) == null ? void 0 : j.concurrency) == null ? void 0 : O.toString() : "", d.activeHealthCheck.httpsSni = ((N = o.healthchecks.active) == null ? void 0 : N.https_sni) || "", d.activeHealthCheck.verifySsl = ((I = o.healthchecks.active) == null ? void 0 : I.https_verify_certificate) || !1, d.activeHealthCheck.headers = (K = o.healthchecks.active) != null && K.headers && Object.entries((V = o.healthchecks.active) == null ? void 0 : V.headers).length > 0 ? Object.entries((Z = o.healthchecks.active) == null ? void 0 : Z.headers).map(([Vs, gt]) => ({ key: Vs, values: gt == null ? void 0 : gt.join(", ") })) : [{ key: "", values: "" }], d.activeHealthCheck.interval = ((z = (J = o.healthchecks.active) == null ? void 0 : J.healthy) == null ? void 0 : z.interval) !== null && ((X = (G = o.healthchecks.active) == null ? void 0 : G.healthy) == null ? void 0 : X.interval) !== void 0 ? (te = (W = (U = o.healthchecks.active) == null ? void 0 : U.healthy) == null ? void 0 : W.interval) == null ? void 0 : te.toString() : "0", d.activeHealthCheck.interval = ((v = (C = o.healthchecks.active) == null ? void 0 : C.healthy) == null ? void 0 : v.interval) !== null && ((ie = (w = o.healthchecks.active) == null ? void 0 : w.healthy) == null ? void 0 : ie.interval) !== void 0 ? (pe = (ne = (ee = o.healthchecks.active) == null ? void 0 : ee.healthy) == null ? void 0 : ne.interval) == null ? void 0 : pe.toString() : "0", d.activeHealthCheck.successes = ((me = (se = o.healthchecks.active) == null ? void 0 : se.healthy) == null ? void 0 : me.successes) !== null && ((je = ($e = o.healthchecks.active) == null ? void 0 : $e.healthy) == null ? void 0 : je.successes) !== void 0 ? (Qt = (Wt = (Jt = o.healthchecks.active) == null ? void 0 : Jt.healthy) == null ? void 0 : Wt.successes) == null ? void 0 : Qt.toString() : "0", d.activeHealthCheck.httpStatuses = (Zt = (Yt = o.healthchecks.active) == null ? void 0 : Yt.healthy) != null && Zt.http_statuses ? a(((Xt = (Gt = o.healthchecks.active) == null ? void 0 : Gt.healthy) == null ? void 0 : Xt.http_statuses) || []) : Ot, d.activeHealthCheck.unhealthyInterval = ((ta = (ea = o.healthchecks.active) == null ? void 0 : ea.unhealthy) == null ? void 0 : ta.interval) !== null && ((la = (aa = o.healthchecks.active) == null ? void 0 : aa.unhealthy) == null ? void 0 : la.interval) !== void 0 ? (ia = (ra = (sa = o.healthchecks.active) == null ? void 0 : sa.unhealthy) == null ? void 0 : ra.interval) == null ? void 0 : ia.toString() : "0", d.activeHealthCheck.httpFailures = ((oa = (na = o.healthchecks.active) == null ? void 0 : na.unhealthy) == null ? void 0 : oa.http_failures) !== null && ((ca = (ua = o.healthchecks.active) == null ? void 0 : ua.unhealthy) == null ? void 0 : ca.http_failures) !== void 0 ? (pa = (ha = (da = o.healthchecks.active) == null ? void 0 : da.unhealthy) == null ? void 0 : ha.http_failures) == null ? void 0 : pa.toString() : "0", d.activeHealthCheck.unhealthyTimeouts = ((ma = (fa = o.healthchecks.active) == null ? void 0 : fa.unhealthy) == null ? void 0 : ma.timeouts) !== null && ((ya = (ga = o.healthchecks.active) == null ? void 0 : ga.unhealthy) == null ? void 0 : ya.timeouts) !== void 0 ? (ka = (ba = (va = o.healthchecks.active) == null ? void 0 : va.unhealthy) == null ? void 0 : ba.timeouts) == null ? void 0 : ka.toString() : "0", d.activeHealthCheck.unhealthyHttpStatuses = (_a = (Ca = o.healthchecks.active) == null ? void 0 : Ca.unhealthy) != null && _a.http_statuses ? a(((Sa = (wa = o.healthchecks.active) == null ? void 0 : wa.unhealthy) == null ? void 0 : Sa.http_statuses) || []) : Ut, d.passiveHealthSwitch = ((xa = (Ia = o.healthchecks.passive) == null ? void 0 : Ia.healthy) == null ? void 0 : xa.successes) !== 0 || ((Aa = (Ha = o.healthchecks.passive) == null ? void 0 : Ha.unhealthy) == null ? void 0 : Aa.timeouts) !== 0 || ((Oa = (Ta = o.healthchecks.passive) == null ? void 0 : Ta.unhealthy) == null ? void 0 : Oa.tcp_failures) !== 0 || ((Ua = (qa = o.healthchecks.passive) == null ? void 0 : qa.unhealthy) == null ? void 0 : Ua.http_failures) !== 0, d.passiveHealthCheck.type = ((Fa = o.healthchecks.passive) == null ? void 0 : Fa.type) || "http", d.passiveHealthCheck.successes = ((Ma = ($a = o.healthchecks.passive) == null ? void 0 : $a.healthy) == null ? void 0 : Ma.successes) !== null && ((Na = (ja = o.healthchecks.passive) == null ? void 0 : ja.healthy) == null ? void 0 : Na.successes) !== void 0 ? (Pa = (Ea = (Ka = o.healthchecks.passive) == null ? void 0 : Ka.healthy) == null ? void 0 : Ea.successes) == null ? void 0 : Pa.toString() : "0", d.passiveHealthCheck.httpStatuses = (Va = (Ba = o.healthchecks.passive) == null ? void 0 : Ba.healthy) != null && Va.http_statuses ? a(((Ra = (La = o.healthchecks.passive) == null ? void 0 : La.healthy) == null ? void 0 : Ra.http_statuses) || []) : qt, d.passiveHealthCheck.timeouts = ((za = (Da = o.healthchecks.passive) == null ? void 0 : Da.unhealthy) == null ? void 0 : za.timeouts) !== null && ((Wa = (Ja = o.healthchecks.passive) == null ? void 0 : Ja.unhealthy) == null ? void 0 : Wa.timeouts) !== void 0 ? (Za = (Ya = (Qa = o.healthchecks.passive) == null ? void 0 : Qa.unhealthy) == null ? void 0 : Ya.timeouts) == null ? void 0 : Za.toString() : "0", d.passiveHealthCheck.tcpFailures = ((Xa = (Ga = o.healthchecks.passive) == null ? void 0 : Ga.unhealthy) == null ? void 0 : Xa.tcp_failures) !== null && ((tl = (el = o.healthchecks.passive) == null ? void 0 : el.unhealthy) == null ? void 0 : tl.tcp_failures) !== void 0 ? (sl = (ll = (al = o.healthchecks.passive) == null ? void 0 : al.unhealthy) == null ? void 0 : ll.tcp_failures) == null ? void 0 : sl.toString() : "", d.passiveHealthCheck.unhealthyHttpStatuses = (il = (rl = o.healthchecks.passive) == null ? void 0 : rl.unhealthy) != null && il.http_statuses ? a(((ol = (nl = o.healthchecks.passive) == null ? void 0 : nl.unhealthy) == null ? void 0 : ol.http_statuses) || []) : Ft, d;
|
|
4798
4798
|
},
|
|
4799
4799
|
getDefaultUpstreamFields: s,
|
|
4800
4800
|
objectsAreEqual: (o, d) => {
|
|
@@ -4808,31 +4808,31 @@ function ft() {
|
|
|
4808
4808
|
};
|
|
4809
4809
|
}
|
|
4810
4810
|
const He = {
|
|
4811
|
-
useI18n:
|
|
4811
|
+
useI18n: $u,
|
|
4812
4812
|
useMultiselectCreation: et,
|
|
4813
4813
|
useHelpers: ft
|
|
4814
|
-
},
|
|
4814
|
+
}, Ke = "/api/runtime_groups/{controlPlaneId}", Ee = "/{workspace}", We = {
|
|
4815
4815
|
list: {
|
|
4816
|
-
konnect: `${
|
|
4817
|
-
kongManager: `${
|
|
4816
|
+
konnect: `${Ke}/upstreams`,
|
|
4817
|
+
kongManager: `${Ee}/upstreams`
|
|
4818
4818
|
},
|
|
4819
4819
|
form: {
|
|
4820
4820
|
konnect: {
|
|
4821
|
-
getServices: `${Ne}/services`,
|
|
4822
|
-
getCertificates: `${Ne}/certificates`,
|
|
4823
|
-
validate: `${Ne}/v1/schemas/json/upstream/validate`,
|
|
4824
|
-
create: `${Ne}/upstreams`,
|
|
4825
|
-
edit: `${Ne}/upstreams/{id}`
|
|
4826
|
-
},
|
|
4827
|
-
kongManager: {
|
|
4828
4821
|
getServices: `${Ke}/services`,
|
|
4829
4822
|
getCertificates: `${Ke}/certificates`,
|
|
4830
|
-
validate: `${Ke}/schemas/
|
|
4823
|
+
validate: `${Ke}/v1/schemas/json/upstream/validate`,
|
|
4831
4824
|
create: `${Ke}/upstreams`,
|
|
4832
4825
|
edit: `${Ke}/upstreams/{id}`
|
|
4826
|
+
},
|
|
4827
|
+
kongManager: {
|
|
4828
|
+
getServices: `${Ee}/services`,
|
|
4829
|
+
getCertificates: `${Ee}/certificates`,
|
|
4830
|
+
validate: `${Ee}/schemas/upstreams/validate`,
|
|
4831
|
+
create: `${Ee}/upstreams`,
|
|
4832
|
+
edit: `${Ee}/upstreams/{id}`
|
|
4833
4833
|
}
|
|
4834
4834
|
}
|
|
4835
|
-
},
|
|
4835
|
+
}, Bu = { class: "kong-ui-entities-upstreams-list" }, Vu = { class: "upstream-name" }, Lu = /* @__PURE__ */ le({
|
|
4836
4836
|
__name: "UpstreamsList",
|
|
4837
4837
|
props: {
|
|
4838
4838
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4902,7 +4902,7 @@ const He = {
|
|
|
4902
4902
|
fields: { name: W, slots: te },
|
|
4903
4903
|
schema: a.config.filterSchema
|
|
4904
4904
|
};
|
|
4905
|
-
}), { fetcher: A, fetcherState: _ } =
|
|
4905
|
+
}), { fetcher: A, fetcherState: _ } = Es(a.config, p.value), g = () => {
|
|
4906
4906
|
m.value = "";
|
|
4907
4907
|
}, b = () => {
|
|
4908
4908
|
c.value++;
|
|
@@ -4943,7 +4943,7 @@ const He = {
|
|
|
4943
4943
|
}), D = (U) => ({
|
|
4944
4944
|
label: s("upstreams.actions.edit"),
|
|
4945
4945
|
to: a.config.getEditRoute(U)
|
|
4946
|
-
}), j = P(void 0), O = P(!1), N = P(!1), I = P(""), K =
|
|
4946
|
+
}), j = P(void 0), O = P(!1), N = P(!1), I = P(""), K = Ns(a.config, p.value), V = (U) => {
|
|
4947
4947
|
j.value = U, O.value = !0;
|
|
4948
4948
|
}, Z = () => {
|
|
4949
4949
|
O.value = !1;
|
|
@@ -4980,8 +4980,8 @@ const He = {
|
|
|
4980
4980
|
await a.canCreate() && (G.value.title = s("upstreams.list.empty_state.title"), G.value.ctaText = s("upstreams.actions.create"));
|
|
4981
4981
|
}), (U, W) => {
|
|
4982
4982
|
const te = M("KButton"), C = M("KBadge"), v = M("KTruncate"), w = M("KDropdownItem"), ie = M("KClipboardProvider");
|
|
4983
|
-
return k(), E("div",
|
|
4984
|
-
y(u(
|
|
4983
|
+
return k(), E("div", Bu, [
|
|
4984
|
+
y(u(Ms), {
|
|
4985
4985
|
"cache-identifier": e.cacheIdentifier,
|
|
4986
4986
|
"disable-pagination-page-jump": "",
|
|
4987
4987
|
"disable-sorting": o.value,
|
|
@@ -5000,41 +5000,43 @@ const He = {
|
|
|
5000
5000
|
onSort: b
|
|
5001
5001
|
}, {
|
|
5002
5002
|
"toolbar-filter": f(() => [
|
|
5003
|
-
y(u(
|
|
5003
|
+
y(u(wu), {
|
|
5004
5004
|
modelValue: m.value,
|
|
5005
5005
|
"onUpdate:modelValue": W[0] || (W[0] = (ee) => m.value = ee),
|
|
5006
5006
|
config: n.value
|
|
5007
5007
|
}, null, 8, ["modelValue", "config"])
|
|
5008
5008
|
]),
|
|
5009
5009
|
"toolbar-button": f(() => [
|
|
5010
|
-
(k(), L(
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5010
|
+
(k(), L(Ue(e.useActionOutside ? "Teleport" : "div"), {
|
|
5011
|
+
to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
|
|
5012
|
+
}, {
|
|
5013
|
+
default: f(() => [
|
|
5014
|
+
y(u(Se), {
|
|
5015
|
+
"auth-function": () => e.canCreate()
|
|
5016
|
+
}, {
|
|
5017
|
+
default: f(() => [
|
|
5018
|
+
Le(y(te, {
|
|
5019
|
+
appearance: "primary",
|
|
5020
|
+
"data-testid": "toolbar-add-upstream",
|
|
5021
|
+
icon: "plus",
|
|
5022
|
+
to: e.config.createRoute
|
|
5023
|
+
}, {
|
|
5024
|
+
default: f(() => [
|
|
5025
|
+
Y(S(u(s)("upstreams.list.toolbar_actions.new_upstream")), 1)
|
|
5026
|
+
]),
|
|
5027
|
+
_: 1
|
|
5028
|
+
}, 8, ["to"]), [
|
|
5029
|
+
[Re, z.value]
|
|
5030
|
+
])
|
|
5031
|
+
]),
|
|
5032
|
+
_: 1
|
|
5033
|
+
}, 8, ["auth-function"])
|
|
5034
|
+
]),
|
|
5035
|
+
_: 1
|
|
5036
|
+
}, 8, ["to"]))
|
|
5035
5037
|
]),
|
|
5036
5038
|
name: f(({ rowValue: ee }) => [
|
|
5037
|
-
x("span",
|
|
5039
|
+
x("span", Vu, S(ee), 1)
|
|
5038
5040
|
]),
|
|
5039
5041
|
tags: f(({ rowValue: ee }) => [
|
|
5040
5042
|
y(v, null, {
|
|
@@ -5125,7 +5127,7 @@ const He = {
|
|
|
5125
5127
|
]),
|
|
5126
5128
|
_: 1
|
|
5127
5129
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
5128
|
-
y(u(
|
|
5130
|
+
y(u(js), {
|
|
5129
5131
|
"action-pending": N.value,
|
|
5130
5132
|
description: u(s)("upstreams.delete.description"),
|
|
5131
5133
|
"entity-name": j.value && (j.value.name || j.value.id),
|
|
@@ -5144,7 +5146,7 @@ const He = {
|
|
|
5144
5146
|
for (const [a, s] of l)
|
|
5145
5147
|
t[a] = s;
|
|
5146
5148
|
return t;
|
|
5147
|
-
},
|
|
5149
|
+
}, Bc = /* @__PURE__ */ Ae(Lu, [["__scopeId", "data-v-40e65380"]]), lt = {
|
|
5148
5150
|
list: {
|
|
5149
5151
|
konnect: "/api/runtime_groups/{controlPlaneId}/upstreams/{upstreamId}/targets",
|
|
5150
5152
|
kongManager: "/{workspace}/upstreams/{upstreamId}/targets"
|
|
@@ -5161,10 +5163,10 @@ const He = {
|
|
|
5161
5163
|
validate: "/{workspace}/schemas/targets/validate"
|
|
5162
5164
|
}
|
|
5163
5165
|
}
|
|
5164
|
-
},
|
|
5166
|
+
}, Ru = { class: "kong-ui-entities-target-form" }, Du = { class: "target-form-container" }, zu = {
|
|
5165
5167
|
key: 0,
|
|
5166
5168
|
class: "target-form-info"
|
|
5167
|
-
},
|
|
5169
|
+
}, Ju = /* @__PURE__ */ le({
|
|
5168
5170
|
__name: "TargetForm",
|
|
5169
5171
|
props: {
|
|
5170
5172
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5192,7 +5194,7 @@ const He = {
|
|
|
5192
5194
|
$t((T) => ({
|
|
5193
5195
|
"11012f77": $.value
|
|
5194
5196
|
}));
|
|
5195
|
-
const t = l, a = e, { i18n: { t: s } } = He.useI18n(), { getMessageFromError: i } =
|
|
5197
|
+
const t = l, a = e, { i18n: { t: s } } = He.useI18n(), { getMessageFromError: i } = Ks(), { axiosInstance: r } = pt({
|
|
5196
5198
|
headers: (B = a.config) == null ? void 0 : B.requestHeaders
|
|
5197
5199
|
}), c = q(() => {
|
|
5198
5200
|
var T;
|
|
@@ -5266,8 +5268,8 @@ const He = {
|
|
|
5266
5268
|
onProceed: F
|
|
5267
5269
|
}, {
|
|
5268
5270
|
"body-content": f(() => [
|
|
5269
|
-
x("div",
|
|
5270
|
-
y(u(
|
|
5271
|
+
x("div", Ru, [
|
|
5272
|
+
y(u($s), {
|
|
5271
5273
|
config: e.config,
|
|
5272
5274
|
"edit-id": e.targetId,
|
|
5273
5275
|
"error-message": h.errorMessage,
|
|
@@ -5279,8 +5281,8 @@ const He = {
|
|
|
5279
5281
|
onLoading: D[4] || (D[4] = (N) => T.$emit("loading", N))
|
|
5280
5282
|
}, {
|
|
5281
5283
|
default: f(() => [
|
|
5282
|
-
x("div",
|
|
5283
|
-
T.$slots.info ? (k(), E("div",
|
|
5284
|
+
x("div", Du, [
|
|
5285
|
+
T.$slots.info ? (k(), E("div", zu, [
|
|
5284
5286
|
ae(T.$slots, "info", {}, void 0, !0)
|
|
5285
5287
|
])) : Q("", !0),
|
|
5286
5288
|
y(j, {
|
|
@@ -5336,7 +5338,7 @@ const He = {
|
|
|
5336
5338
|
}, 8, ["action-button-text", "action-pending", "cancel-button-text", "is-visible", "title"]);
|
|
5337
5339
|
};
|
|
5338
5340
|
}
|
|
5339
|
-
}),
|
|
5341
|
+
}), Wu = /* @__PURE__ */ Ae(Ju, [["__scopeId", "data-v-33755362"]]), Qu = { class: "kong-ui-entities-targets-list" }, Yu = { class: "target-address" }, Zu = /* @__PURE__ */ le({
|
|
5340
5342
|
__name: "TargetsList",
|
|
5341
5343
|
props: {
|
|
5342
5344
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5387,7 +5389,7 @@ const He = {
|
|
|
5387
5389
|
var v, w, ie, ee;
|
|
5388
5390
|
let C = `${a.config.apiBaseUrl}${lt.list[a.config.app]}`;
|
|
5389
5391
|
return a.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((v = a.config) == null ? void 0 : v.controlPlaneId) || "").replace(/{upstreamId}/gi, ((w = a.config) == null ? void 0 : w.upstreamId) || "") : a.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (ie = a.config) != null && ie.workspace ? `/${a.config.workspace}` : "").replace(/{upstreamId}/gi, ((ee = a.config) == null ? void 0 : ee.upstreamId) || "")), C;
|
|
5390
|
-
}), { fetcher: p, fetcherState: m } =
|
|
5392
|
+
}), { fetcher: p, fetcherState: m } = Es(a.config, h.value), n = () => {
|
|
5391
5393
|
r.value++;
|
|
5392
5394
|
}, A = P(null), _ = () => {
|
|
5393
5395
|
G.value = !0;
|
|
@@ -5421,7 +5423,7 @@ const He = {
|
|
|
5421
5423
|
});
|
|
5422
5424
|
}, H = (C) => {
|
|
5423
5425
|
z.value = C, G.value = !0;
|
|
5424
|
-
}, F = (C) => a.config.app === "konnect" ? !1 : a.config.canMarkHealthy(C), $ = (C) => a.config.app === "konnect" ? !1 : a.config.canMarkUnhealthy(C), B = P(void 0), T = P(!1), D = P(!1), j = P(""), O =
|
|
5426
|
+
}, F = (C) => a.config.app === "konnect" ? !1 : a.config.canMarkHealthy(C), $ = (C) => a.config.app === "konnect" ? !1 : a.config.canMarkUnhealthy(C), B = P(void 0), T = P(!1), D = P(!1), j = P(""), O = Ns(a.config, h.value), N = (C) => {
|
|
5425
5427
|
B.value = C, T.value = !0;
|
|
5426
5428
|
}, I = () => {
|
|
5427
5429
|
T.value = !1;
|
|
@@ -5482,8 +5484,8 @@ const He = {
|
|
|
5482
5484
|
};
|
|
5483
5485
|
return (C, v) => {
|
|
5484
5486
|
const w = M("KButton"), ie = M("KBadge"), ee = M("KTruncate"), ne = M("KDropdownItem"), pe = M("KClipboardProvider");
|
|
5485
|
-
return k(), E("div",
|
|
5486
|
-
y(u(
|
|
5487
|
+
return k(), E("div", Qu, [
|
|
5488
|
+
y(u(Ms), {
|
|
5487
5489
|
"cache-identifier": e.cacheIdentifier,
|
|
5488
5490
|
"disable-pagination-page-jump": "",
|
|
5489
5491
|
"disable-sorting": c.value,
|
|
@@ -5500,35 +5502,37 @@ const He = {
|
|
|
5500
5502
|
onSort: n
|
|
5501
5503
|
}, {
|
|
5502
5504
|
"toolbar-button": f(() => [
|
|
5503
|
-
(k(), L(
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5505
|
+
(k(), L(Ue(e.useActionOutside ? "Teleport" : "div"), {
|
|
5506
|
+
to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
|
|
5507
|
+
}, {
|
|
5508
|
+
default: f(() => [
|
|
5509
|
+
y(u(Se), {
|
|
5510
|
+
"auth-function": () => e.canCreate()
|
|
5511
|
+
}, {
|
|
5512
|
+
default: f(() => [
|
|
5513
|
+
Le(y(w, {
|
|
5514
|
+
appearance: "primary",
|
|
5515
|
+
"data-testid": "toolbar-new-target",
|
|
5516
|
+
icon: "plus",
|
|
5517
|
+
to: a.config.createRoute ? a.config.createRoute : void 0,
|
|
5518
|
+
onClick: v[0] || (v[0] = () => a.config.createRoute ? void 0 : _())
|
|
5519
|
+
}, {
|
|
5520
|
+
default: f(() => [
|
|
5521
|
+
Y(S(u(s)("targets.list.toolbar_actions.new_target")), 1)
|
|
5522
|
+
]),
|
|
5523
|
+
_: 1
|
|
5524
|
+
}, 8, ["to"]), [
|
|
5525
|
+
[Re, V.value]
|
|
5526
|
+
])
|
|
5527
|
+
]),
|
|
5528
|
+
_: 1
|
|
5529
|
+
}, 8, ["auth-function"])
|
|
5530
|
+
]),
|
|
5531
|
+
_: 1
|
|
5532
|
+
}, 8, ["to"]))
|
|
5529
5533
|
]),
|
|
5530
5534
|
target: f(({ rowValue: se }) => [
|
|
5531
|
-
x("span",
|
|
5535
|
+
x("span", Yu, S(se), 1)
|
|
5532
5536
|
]),
|
|
5533
5537
|
tags: f(({ rowValue: se }) => [
|
|
5534
5538
|
y(ee, null, {
|
|
@@ -5551,7 +5555,7 @@ const He = {
|
|
|
5551
5555
|
default: f(({ copyToClipboard: me }) => [
|
|
5552
5556
|
y(ne, {
|
|
5553
5557
|
"data-testid": "action-entity-copy-id",
|
|
5554
|
-
onClick: (
|
|
5558
|
+
onClick: ($e) => g(se, me)
|
|
5555
5559
|
}, {
|
|
5556
5560
|
default: f(() => [
|
|
5557
5561
|
Y(S(u(s)("targets.actions.copy_id")), 1)
|
|
@@ -5565,7 +5569,7 @@ const He = {
|
|
|
5565
5569
|
default: f(({ copyToClipboard: me }) => [
|
|
5566
5570
|
y(ne, {
|
|
5567
5571
|
"data-testid": "action-entity-copy-json",
|
|
5568
|
-
onClick: (
|
|
5572
|
+
onClick: ($e) => b(se, me)
|
|
5569
5573
|
}, {
|
|
5570
5574
|
default: f(() => [
|
|
5571
5575
|
Y(S(u(s)("targets.actions.copy_json")), 1)
|
|
@@ -5645,7 +5649,7 @@ const He = {
|
|
|
5645
5649
|
]),
|
|
5646
5650
|
_: 1
|
|
5647
5651
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "table-headers", "use-action-outside"]),
|
|
5648
|
-
y(u(
|
|
5652
|
+
y(u(js), {
|
|
5649
5653
|
"action-pending": D.value,
|
|
5650
5654
|
description: u(s)("targets.delete.description"),
|
|
5651
5655
|
"entity-type": u(Nt).Target,
|
|
@@ -5656,7 +5660,7 @@ const He = {
|
|
|
5656
5660
|
onCancel: I,
|
|
5657
5661
|
onProceed: K
|
|
5658
5662
|
}, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"]),
|
|
5659
|
-
y(
|
|
5663
|
+
y(Wu, {
|
|
5660
5664
|
config: J.value,
|
|
5661
5665
|
"is-visible": G.value,
|
|
5662
5666
|
"target-id": z.value,
|
|
@@ -5674,7 +5678,7 @@ const He = {
|
|
|
5674
5678
|
]);
|
|
5675
5679
|
};
|
|
5676
5680
|
}
|
|
5677
|
-
}),
|
|
5681
|
+
}), Vc = /* @__PURE__ */ Ae(Zu, [["__scopeId", "data-v-6e346906"]]), Gu = { key: 1 }, Xu = /* @__PURE__ */ le({
|
|
5678
5682
|
__name: "UpstreamsFormGeneralInfo",
|
|
5679
5683
|
props: {
|
|
5680
5684
|
config: {
|
|
@@ -5762,7 +5766,7 @@ const He = {
|
|
|
5762
5766
|
N.value ? (k(), L(G, {
|
|
5763
5767
|
key: 0,
|
|
5764
5768
|
type: "form"
|
|
5765
|
-
})) : (k(), E("div",
|
|
5769
|
+
})) : (k(), E("div", Gu, [
|
|
5766
5770
|
y(X, {
|
|
5767
5771
|
appearance: "select",
|
|
5768
5772
|
autosuggest: "",
|
|
@@ -5844,10 +5848,10 @@ const He = {
|
|
|
5844
5848
|
}, 8, ["description", "title"]);
|
|
5845
5849
|
};
|
|
5846
5850
|
}
|
|
5847
|
-
}),
|
|
5851
|
+
}), ec = /* @__PURE__ */ Ae(Xu, [["__scopeId", "data-v-02065a3d"]]), mt = {
|
|
5848
5852
|
upstreamObject: "https://docs.konghq.com/gateway/latest/admin-api/#upstream-object",
|
|
5849
5853
|
loadBalancing: "https://docs.konghq.com/gateway/latest/how-kong-works/load-balancing/#main"
|
|
5850
|
-
},
|
|
5854
|
+
}, tc = { class: "fields-group-title" }, ac = { class: "fields-group-text" }, lc = { class: "fields-group-title" }, sc = { class: "fields-group-text" }, rc = /* @__PURE__ */ le({
|
|
5851
5855
|
__name: "UpstreamsFormLoadBalancing",
|
|
5852
5856
|
props: {
|
|
5853
5857
|
algorithm: {
|
|
@@ -6022,8 +6026,8 @@ const He = {
|
|
|
6022
6026
|
}, null, 8, ["error", "error-message", "help", "label", "max", "min", "model-value", "readonly"]),
|
|
6023
6027
|
y(g, null, {
|
|
6024
6028
|
default: f(() => [
|
|
6025
|
-
x("h5",
|
|
6026
|
-
x("p",
|
|
6029
|
+
x("h5", tc, S(u(a)("upstreams.form.fields.hash_on.label")), 1),
|
|
6030
|
+
x("p", ac, S(u(a)("upstreams.form.fields.hash_on.help")), 1),
|
|
6027
6031
|
y(A, {
|
|
6028
6032
|
appearance: "select",
|
|
6029
6033
|
class: "hash-on-select",
|
|
@@ -6099,8 +6103,8 @@ const He = {
|
|
|
6099
6103
|
}),
|
|
6100
6104
|
y(g, null, {
|
|
6101
6105
|
default: f(() => [
|
|
6102
|
-
x("h5",
|
|
6103
|
-
x("p",
|
|
6106
|
+
x("h5", lc, S(u(a)("upstreams.form.fields.hash_fallback.label")), 1),
|
|
6107
|
+
x("p", sc, S(u(a)("upstreams.form.fields.hash_fallback.help")), 1),
|
|
6104
6108
|
y(A, {
|
|
6105
6109
|
appearance: "select",
|
|
6106
6110
|
class: "hash-fallback-select",
|
|
@@ -6197,7 +6201,7 @@ const He = {
|
|
|
6197
6201
|
}, 8, ["title"]);
|
|
6198
6202
|
};
|
|
6199
6203
|
}
|
|
6200
|
-
}),
|
|
6204
|
+
}), ic = /* @__PURE__ */ Ae(rc, [["__scopeId", "data-v-3a210772"]]), nc = { class: "fields-group-title" }, oc = { class: "fields-group-text" }, uc = { class: "fields-group-title" }, cc = { class: "fields-group-text" }, dc = /* @__PURE__ */ le({
|
|
6201
6205
|
__name: "UpstreamsFormHealthChecks",
|
|
6202
6206
|
props: {
|
|
6203
6207
|
activeHealthSwitch: {
|
|
@@ -6244,8 +6248,8 @@ const He = {
|
|
|
6244
6248
|
default: f(() => [
|
|
6245
6249
|
y(o, null, {
|
|
6246
6250
|
default: f(() => [
|
|
6247
|
-
x("h5",
|
|
6248
|
-
x("p",
|
|
6251
|
+
x("h5", nc, S(u(t)("upstreams.form.fields.active_health_checks.label")), 1),
|
|
6252
|
+
x("p", oc, S(u(t)("upstreams.form.fields.active_health_checks.help")), 1),
|
|
6249
6253
|
y(c, {
|
|
6250
6254
|
class: "active-health-switch",
|
|
6251
6255
|
"data-testid": "active-health-switch",
|
|
@@ -6258,8 +6262,8 @@ const He = {
|
|
|
6258
6262
|
}),
|
|
6259
6263
|
y(o, null, {
|
|
6260
6264
|
default: f(() => [
|
|
6261
|
-
x("h5",
|
|
6262
|
-
x("p",
|
|
6265
|
+
x("h5", uc, S(u(t)("upstreams.form.fields.passive_health_checks.label")), 1),
|
|
6266
|
+
x("p", cc, S(u(t)("upstreams.form.fields.passive_health_checks.help")), 1),
|
|
6263
6267
|
y(c, {
|
|
6264
6268
|
class: "passive-health-switch",
|
|
6265
6269
|
"data-testid": "passive-health-switch",
|
|
@@ -6274,8 +6278,8 @@ const He = {
|
|
|
6274
6278
|
autocomplete: "off",
|
|
6275
6279
|
"data-testid": "upstreams-form-healthchecks-threshold",
|
|
6276
6280
|
label: u(t)("upstreams.form.fields.healthchecks_threshold.label"),
|
|
6277
|
-
max: u(
|
|
6278
|
-
min: u(
|
|
6281
|
+
max: u(ju),
|
|
6282
|
+
min: u(Mu),
|
|
6279
6283
|
"model-value": e.healthchecksThreshold,
|
|
6280
6284
|
readonly: e.readonly,
|
|
6281
6285
|
type: "number",
|
|
@@ -6286,7 +6290,7 @@ const He = {
|
|
|
6286
6290
|
}, 8, ["title"]);
|
|
6287
6291
|
};
|
|
6288
6292
|
}
|
|
6289
|
-
}),
|
|
6293
|
+
}), hc = /* @__PURE__ */ Ae(dc, [["__scopeId", "data-v-bfdc5a59"]]), pc = { key: 2 }, fc = { class: "fields-group-title" }, mc = { class: "fields-group-text" }, gc = { class: "fields-group-title" }, yc = { class: "fields-group-text" }, vc = /* @__PURE__ */ le({
|
|
6290
6294
|
__name: "UpstreamsFormActiveHealthCheck",
|
|
6291
6295
|
props: {
|
|
6292
6296
|
config: {
|
|
@@ -6456,8 +6460,8 @@ const He = {
|
|
|
6456
6460
|
autocomplete: "off",
|
|
6457
6461
|
"data-testid": "active-healthcheck-timeout",
|
|
6458
6462
|
label: u(t)("upstreams.form.fields.timeout.label"),
|
|
6459
|
-
max: u(
|
|
6460
|
-
min: u(
|
|
6463
|
+
max: u(Ku),
|
|
6464
|
+
min: u(Nu),
|
|
6461
6465
|
"model-value": e.timeout,
|
|
6462
6466
|
readonly: e.readonly,
|
|
6463
6467
|
type: "number",
|
|
@@ -6467,8 +6471,8 @@ const He = {
|
|
|
6467
6471
|
autocomplete: "off",
|
|
6468
6472
|
"data-testid": "active-healthcheck-concurrency",
|
|
6469
6473
|
label: u(t)("upstreams.form.fields.concurrency.label"),
|
|
6470
|
-
max: u(
|
|
6471
|
-
min: u(
|
|
6474
|
+
max: u(Pu),
|
|
6475
|
+
min: u(Eu),
|
|
6472
6476
|
"model-value": e.concurrency,
|
|
6473
6477
|
readonly: e.readonly,
|
|
6474
6478
|
type: "number",
|
|
@@ -6493,7 +6497,7 @@ const He = {
|
|
|
6493
6497
|
"onUpdate:modelValue": g[5] || (g[5] = (I) => i("update:verify-ssl", I))
|
|
6494
6498
|
}, null, 8, ["disabled", "label", "model-value"])
|
|
6495
6499
|
], 64)) : Q("", !0),
|
|
6496
|
-
((N = e.config) == null ? void 0 : N.app) === "kongManager" ? (k(), E("div",
|
|
6500
|
+
((N = e.config) == null ? void 0 : N.app) === "kongManager" ? (k(), E("div", pc, [
|
|
6497
6501
|
y(B, {
|
|
6498
6502
|
info: u(t)("upstreams.form.fields.headers.tooltip_active"),
|
|
6499
6503
|
"tooltip-attributes": { maxWidth: "250px" }
|
|
@@ -6561,8 +6565,8 @@ const He = {
|
|
|
6561
6565
|
])) : Q("", !0),
|
|
6562
6566
|
y(O, null, {
|
|
6563
6567
|
default: f(() => [
|
|
6564
|
-
x("h5",
|
|
6565
|
-
x("p",
|
|
6568
|
+
x("h5", fc, S(u(t)("upstreams.form.healthy.label")), 1),
|
|
6569
|
+
x("p", mc, S(u(t)("upstreams.form.healthy.help")), 1),
|
|
6566
6570
|
y(F, {
|
|
6567
6571
|
autocomplete: "off",
|
|
6568
6572
|
class: "margin-bottom-6",
|
|
@@ -6580,8 +6584,8 @@ const He = {
|
|
|
6580
6584
|
autocomplete: "off",
|
|
6581
6585
|
"data-testid": "active-healthcheck-successes",
|
|
6582
6586
|
label: u(t)("upstreams.form.fields.successes.label"),
|
|
6583
|
-
max: u(
|
|
6584
|
-
min: u(
|
|
6587
|
+
max: u(ze),
|
|
6588
|
+
min: u(De),
|
|
6585
6589
|
"model-value": e.successes,
|
|
6586
6590
|
readonly: e.readonly,
|
|
6587
6591
|
type: "number",
|
|
@@ -6606,8 +6610,8 @@ const He = {
|
|
|
6606
6610
|
}),
|
|
6607
6611
|
y(O, null, {
|
|
6608
6612
|
default: f(() => [
|
|
6609
|
-
x("h5",
|
|
6610
|
-
x("p",
|
|
6613
|
+
x("h5", gc, S(u(t)("upstreams.form.unhealthy.label")), 1),
|
|
6614
|
+
x("p", yc, S(u(t)("upstreams.form.unhealthy.help")), 1),
|
|
6611
6615
|
y(F, {
|
|
6612
6616
|
autocomplete: "off",
|
|
6613
6617
|
class: "margin-bottom-6",
|
|
@@ -6627,8 +6631,8 @@ const He = {
|
|
|
6627
6631
|
class: "margin-bottom-6",
|
|
6628
6632
|
"data-testid": "active-healthcheck-tcp-failures",
|
|
6629
6633
|
label: u(t)("upstreams.form.fields.tcp_failures.label"),
|
|
6630
|
-
max: u(
|
|
6631
|
-
min: u(
|
|
6634
|
+
max: u(ze),
|
|
6635
|
+
min: u(De),
|
|
6632
6636
|
"model-value": e.tcpFailures,
|
|
6633
6637
|
readonly: e.readonly,
|
|
6634
6638
|
type: "number",
|
|
@@ -6639,8 +6643,8 @@ const He = {
|
|
|
6639
6643
|
class: "margin-bottom-6",
|
|
6640
6644
|
"data-testid": "active-healthcheck-http-failures",
|
|
6641
6645
|
label: u(t)("upstreams.form.fields.http_failures.label"),
|
|
6642
|
-
max: u(
|
|
6643
|
-
min: u(
|
|
6646
|
+
max: u(ze),
|
|
6647
|
+
min: u(De),
|
|
6644
6648
|
"model-value": e.httpFailures,
|
|
6645
6649
|
readonly: e.readonly,
|
|
6646
6650
|
type: "number",
|
|
@@ -6664,8 +6668,8 @@ const He = {
|
|
|
6664
6668
|
autocomplete: "off",
|
|
6665
6669
|
"data-testid": "active-healthcheck-unhealthy-timeouts",
|
|
6666
6670
|
label: u(t)("upstreams.form.fields.timeouts.label"),
|
|
6667
|
-
max: u(
|
|
6668
|
-
min: u(
|
|
6671
|
+
max: u(Bs),
|
|
6672
|
+
min: u(Ps),
|
|
6669
6673
|
"model-value": e.unhealthyTimeouts,
|
|
6670
6674
|
readonly: e.readonly,
|
|
6671
6675
|
type: "number",
|
|
@@ -6680,7 +6684,7 @@ const He = {
|
|
|
6680
6684
|
}, 8, ["title"]);
|
|
6681
6685
|
};
|
|
6682
6686
|
}
|
|
6683
|
-
}),
|
|
6687
|
+
}), bc = /* @__PURE__ */ Ae(vc, [["__scopeId", "data-v-305fcec9"]]), kc = { class: "fields-group-title" }, Cc = { class: "fields-group-text" }, _c = { class: "fields-group-title" }, wc = { class: "fields-group-text" }, Sc = /* @__PURE__ */ le({
|
|
6684
6688
|
__name: "UpstreamsFormPassiveHealthCheck",
|
|
6685
6689
|
props: {
|
|
6686
6690
|
type: {
|
|
@@ -6785,14 +6789,14 @@ const He = {
|
|
|
6785
6789
|
}, null, 8, ["items", "label", "model-value", "readonly"]),
|
|
6786
6790
|
y(_, null, {
|
|
6787
6791
|
default: f(() => [
|
|
6788
|
-
x("h5",
|
|
6789
|
-
x("p",
|
|
6792
|
+
x("h5", kc, S(u(t)("upstreams.form.passive_healthy.label")), 1),
|
|
6793
|
+
x("p", Cc, S(u(t)("upstreams.form.passive_healthy.help")), 1),
|
|
6790
6794
|
y(n, {
|
|
6791
6795
|
autocomplete: "off",
|
|
6792
6796
|
"data-testid": "passive-healthcheck-successes",
|
|
6793
6797
|
label: u(t)("upstreams.form.fields.successes.label"),
|
|
6794
|
-
max: u(
|
|
6795
|
-
min: u(
|
|
6798
|
+
max: u(ze),
|
|
6799
|
+
min: u(De),
|
|
6796
6800
|
"model-value": e.successes,
|
|
6797
6801
|
readonly: e.readonly,
|
|
6798
6802
|
type: "number",
|
|
@@ -6816,14 +6820,14 @@ const He = {
|
|
|
6816
6820
|
}),
|
|
6817
6821
|
y(_, null, {
|
|
6818
6822
|
default: f(() => [
|
|
6819
|
-
x("h5",
|
|
6820
|
-
x("p",
|
|
6823
|
+
x("h5", _c, S(u(t)("upstreams.form.passive_unhealthy.label")), 1),
|
|
6824
|
+
x("p", wc, S(u(t)("upstreams.form.passive_unhealthy.help")), 1),
|
|
6821
6825
|
y(n, {
|
|
6822
6826
|
autocomplete: "off",
|
|
6823
6827
|
"data-testid": "passive-healthcheck-timeouts",
|
|
6824
6828
|
label: u(t)("upstreams.form.fields.timeouts.label"),
|
|
6825
|
-
max: u(
|
|
6826
|
-
min: u(
|
|
6829
|
+
max: u(Bs),
|
|
6830
|
+
min: u(Ps),
|
|
6827
6831
|
"model-value": e.timeouts,
|
|
6828
6832
|
readonly: e.readonly,
|
|
6829
6833
|
type: "number",
|
|
@@ -6835,8 +6839,8 @@ const He = {
|
|
|
6835
6839
|
class: "margin-top-6",
|
|
6836
6840
|
"data-testid": "passive-healthcheck-tcp-failures",
|
|
6837
6841
|
label: u(t)("upstreams.form.fields.tcp_failures.label"),
|
|
6838
|
-
max: u(
|
|
6839
|
-
min: u(
|
|
6842
|
+
max: u(ze),
|
|
6843
|
+
min: u(De),
|
|
6840
6844
|
"model-value": e.tcpFailures,
|
|
6841
6845
|
readonly: e.readonly,
|
|
6842
6846
|
type: "number",
|
|
@@ -6847,8 +6851,8 @@ const He = {
|
|
|
6847
6851
|
class: "margin-top-6",
|
|
6848
6852
|
"data-testid": "passive-healthcheck-http-failures",
|
|
6849
6853
|
label: u(t)("upstreams.form.fields.http_failures.label"),
|
|
6850
|
-
max: u(
|
|
6851
|
-
min: u(
|
|
6854
|
+
max: u(ze),
|
|
6855
|
+
min: u(De),
|
|
6852
6856
|
"model-value": e.httpFailures,
|
|
6853
6857
|
readonly: e.readonly,
|
|
6854
6858
|
type: "number",
|
|
@@ -6876,7 +6880,7 @@ const He = {
|
|
|
6876
6880
|
}, 8, ["title"]);
|
|
6877
6881
|
};
|
|
6878
6882
|
}
|
|
6879
|
-
}),
|
|
6883
|
+
}), Ic = /* @__PURE__ */ Ae(Sc, [["__scopeId", "data-v-43c4e55e"]]), xc = { class: "kong-ui-entities-upstreams-form" }, Hc = /* @__PURE__ */ le({
|
|
6880
6884
|
__name: "UpstreamsForm",
|
|
6881
6885
|
props: {
|
|
6882
6886
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -6897,7 +6901,7 @@ const He = {
|
|
|
6897
6901
|
var te;
|
|
6898
6902
|
const t = e, a = l, { inRange: s, stringToNumberArray: i, upstreamsResponseToFields: r, getDefaultUpstreamFields: c, objectsAreEqual: o, cloneDeep: d } = ft(), { axiosInstance: h } = pt({
|
|
6899
6903
|
headers: (te = t.config) == null ? void 0 : te.requestHeaders
|
|
6900
|
-
}), { getMessageFromError: p } =
|
|
6904
|
+
}), { getMessageFromError: p } = Ks(), m = jt(), n = st({
|
|
6901
6905
|
fields: c(),
|
|
6902
6906
|
readonly: !1,
|
|
6903
6907
|
errorMessage: ""
|
|
@@ -6932,10 +6936,10 @@ const He = {
|
|
|
6932
6936
|
healthy: {},
|
|
6933
6937
|
unhealthy: {}
|
|
6934
6938
|
}, n.fields.activeHealthCheck.timeout && (C.healthchecks.active.timeout = Number(n.fields.activeHealthCheck.timeout)), n.fields.activeHealthCheck.concurrency && (C.healthchecks.active.concurrency = Number(n.fields.activeHealthCheck.concurrency)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.httpPath && (C.healthchecks.active.http_path = n.fields.activeHealthCheck.httpPath), ((ie = t.config) == null ? void 0 : ie.app) === "kongManager" && (n.fields.activeHealthCheck.headers.length === 0 ? C.healthchecks.active.headers = [] : C.healthchecks.active.headers = n.fields.activeHealthCheck.headers.reduce((pe, se) => {
|
|
6935
|
-
var me,
|
|
6939
|
+
var me, $e;
|
|
6936
6940
|
return se.key ? {
|
|
6937
6941
|
...pe,
|
|
6938
|
-
[se.key]: (
|
|
6942
|
+
[se.key]: ($e = (me = se.values.split(",")) == null ? void 0 : me.map((je) => String(je || "").trim())) == null ? void 0 : $e.filter((je) => je !== "")
|
|
6939
6943
|
} : {
|
|
6940
6944
|
...pe
|
|
6941
6945
|
};
|
|
@@ -6979,8 +6983,8 @@ const He = {
|
|
|
6979
6983
|
n.readonly = !1;
|
|
6980
6984
|
}
|
|
6981
6985
|
};
|
|
6982
|
-
return (C, v) => (k(), E("div",
|
|
6983
|
-
y(u(
|
|
6986
|
+
return (C, v) => (k(), E("div", xc, [
|
|
6987
|
+
y(u($s), {
|
|
6984
6988
|
"can-submit": I.value && _.value,
|
|
6985
6989
|
config: e.config,
|
|
6986
6990
|
"edit-id": e.upstreamId,
|
|
@@ -6994,7 +6998,7 @@ const He = {
|
|
|
6994
6998
|
onSubmit: W
|
|
6995
6999
|
}, {
|
|
6996
7000
|
default: f(() => [
|
|
6997
|
-
y(
|
|
7001
|
+
y(ec, {
|
|
6998
7002
|
"client-certificate": n.fields.clientCertificate,
|
|
6999
7003
|
"onUpdate:clientCertificate": v[0] || (v[0] = (w) => n.fields.clientCertificate = w),
|
|
7000
7004
|
"host-header": n.fields.hostHeader,
|
|
@@ -7006,7 +7010,7 @@ const He = {
|
|
|
7006
7010
|
config: e.config,
|
|
7007
7011
|
readonly: n.readonly
|
|
7008
7012
|
}, null, 8, ["client-certificate", "host-header", "name", "tags", "config", "readonly"]),
|
|
7009
|
-
y(
|
|
7013
|
+
y(ic, {
|
|
7010
7014
|
algorithm: n.fields.algorithm,
|
|
7011
7015
|
"onUpdate:algorithm": v[4] || (v[4] = (w) => n.fields.algorithm = w),
|
|
7012
7016
|
"hash-fallback": n.fields.hashFallback,
|
|
@@ -7033,7 +7037,7 @@ const He = {
|
|
|
7033
7037
|
"onUpdate:slots": v[15] || (v[15] = (w) => n.fields.slots = w),
|
|
7034
7038
|
readonly: n.readonly
|
|
7035
7039
|
}, 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"]),
|
|
7036
|
-
y(
|
|
7040
|
+
y(hc, {
|
|
7037
7041
|
"active-health-switch": n.fields.activeHealthSwitch,
|
|
7038
7042
|
"onUpdate:activeHealthSwitch": [
|
|
7039
7043
|
v[16] || (v[16] = (w) => n.fields.activeHealthSwitch = w),
|
|
@@ -7048,7 +7052,7 @@ const He = {
|
|
|
7048
7052
|
],
|
|
7049
7053
|
readonly: n.readonly
|
|
7050
7054
|
}, null, 8, ["active-health-switch", "healthchecks-threshold", "passive-health-switch", "readonly"]),
|
|
7051
|
-
n.fields.activeHealthSwitch ? (k(), L(
|
|
7055
|
+
n.fields.activeHealthSwitch ? (k(), L(bc, {
|
|
7052
7056
|
key: 0,
|
|
7053
7057
|
concurrency: n.fields.activeHealthCheck.concurrency,
|
|
7054
7058
|
"onUpdate:concurrency": v[19] || (v[19] = (w) => n.fields.activeHealthCheck.concurrency = w),
|
|
@@ -7083,7 +7087,7 @@ const He = {
|
|
|
7083
7087
|
config: e.config,
|
|
7084
7088
|
readonly: n.readonly
|
|
7085
7089
|
}, 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),
|
|
7086
|
-
n.fields.passiveHealthSwitch ? (k(), L(
|
|
7090
|
+
n.fields.passiveHealthSwitch ? (k(), L(Ic, {
|
|
7087
7091
|
key: 1,
|
|
7088
7092
|
"http-failures": n.fields.passiveHealthCheck.httpFailures,
|
|
7089
7093
|
"onUpdate:httpFailures": v[34] || (v[34] = (w) => n.fields.passiveHealthCheck.httpFailures = w),
|
|
@@ -7106,7 +7110,7 @@ const He = {
|
|
|
7106
7110
|
}, 8, ["can-submit", "config", "edit-id", "error-message", "fetch-url", "is-readonly"])
|
|
7107
7111
|
]));
|
|
7108
7112
|
}
|
|
7109
|
-
}),
|
|
7113
|
+
}), Lc = /* @__PURE__ */ Ae(Hc, [["__scopeId", "data-v-810fb7b7"]]), Ac = /* @__PURE__ */ x("code", null, "10", -1), Tc = /* @__PURE__ */ x("code", null, "65536", -1), Oc = { "data-testid": "client_certificate-plain-text" }, Rc = /* @__PURE__ */ le({
|
|
7110
7114
|
__name: "UpstreamsConfigCard",
|
|
7111
7115
|
props: {
|
|
7112
7116
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -7133,7 +7137,7 @@ const He = {
|
|
|
7133
7137
|
},
|
|
7134
7138
|
emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
|
|
7135
7139
|
setup(e) {
|
|
7136
|
-
const l = e, { i18n: { t }, i18nT: a } = He.useI18n(), { getPropValue: s } =
|
|
7140
|
+
const l = e, { i18n: { t }, i18nT: a } = He.useI18n(), { getPropValue: s } = Ou(), i = q(() => We.form[l.config.app].edit), r = P({
|
|
7137
7141
|
id: {},
|
|
7138
7142
|
name: {},
|
|
7139
7143
|
created_at: {},
|
|
@@ -7208,7 +7212,7 @@ const He = {
|
|
|
7208
7212
|
}
|
|
7209
7213
|
});
|
|
7210
7214
|
return (c, o) => (k(), E("div", null, [
|
|
7211
|
-
y(u(
|
|
7215
|
+
y(u(Zo), {
|
|
7212
7216
|
config: e.config,
|
|
7213
7217
|
"config-card-doc": e.configCardDoc,
|
|
7214
7218
|
"config-schema": r.value,
|
|
@@ -7332,10 +7336,10 @@ const He = {
|
|
|
7332
7336
|
x("code", null, S(u(t)("upstreams.form.hash_tooltips.slots.consistent_hashing")), 1)
|
|
7333
7337
|
]),
|
|
7334
7338
|
min: f(() => [
|
|
7335
|
-
|
|
7339
|
+
Ac
|
|
7336
7340
|
]),
|
|
7337
7341
|
max: f(() => [
|
|
7338
|
-
|
|
7342
|
+
Tc
|
|
7339
7343
|
]),
|
|
7340
7344
|
_: 1
|
|
7341
7345
|
})
|
|
@@ -7411,7 +7415,7 @@ const He = {
|
|
|
7411
7415
|
var h;
|
|
7412
7416
|
return [
|
|
7413
7417
|
x("div", null, [
|
|
7414
|
-
x("div",
|
|
7418
|
+
x("div", Oc, [
|
|
7415
7419
|
x("span", null, S((h = u(s)("rowValue", d)) == null ? void 0 : h.id), 1)
|
|
7416
7420
|
])
|
|
7417
7421
|
])
|
|
@@ -7423,9 +7427,9 @@ const He = {
|
|
|
7423
7427
|
}
|
|
7424
7428
|
});
|
|
7425
7429
|
export {
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7430
|
+
Wu as TargetForm,
|
|
7431
|
+
Vc as TargetsList,
|
|
7432
|
+
Rc as UpstreamsConfigCard,
|
|
7433
|
+
Lc as UpstreamsForm,
|
|
7434
|
+
Bc as UpstreamsList
|
|
7431
7435
|
};
|