@kong-ui-public/entities-key-sets 3.1.11 → 3.1.12
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,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as H, computed as S, openBlock as y, createBlock as U, resolveDynamicComponent as
|
|
1
|
+
import { defineComponent as H, computed as S, openBlock as y, createBlock as U, resolveDynamicComponent as me, normalizeStyle as Me, withCtx as h, createElementBlock as j, toDisplayString as K, createCommentVNode as P, pushScopeId as Ee, popScopeId as Fe, createElementVNode as B, ref as q, watch as Ie, renderSlot as W, unref as b, onBeforeMount as gt, resolveComponent as L, createSlots as $e, createVNode as N, createTextVNode as z, renderList as ce, withModifiers as lt, withDirectives as ve, vShow as be, Fragment as pe, normalizeClass as Ce, withKeys as ia, useSlots as yt, useCssVars as en, inject as ra, onMounted as oa, onUnmounted as la, normalizeProps as sa, guardReactiveProps as ca, mergeProps as ua, Teleport as da, reactive as Nt } from "vue";
|
|
2
2
|
import { useRouter as mt } from "vue-router";
|
|
3
3
|
import { createI18n as tn, i18nTComponent as nn } from "@kong-ui-public/i18n";
|
|
4
4
|
import jt from "axios";
|
|
5
|
-
import { BadgeMethodAppearances as
|
|
6
|
-
const Tt = "24px",
|
|
5
|
+
import { BadgeMethodAppearances as pa } from "@kong/kongponents";
|
|
6
|
+
const Tt = "24px", fa = (e, t) => {
|
|
7
7
|
const n = e.__vccOpts || e;
|
|
8
8
|
for (const [i, a] of t)
|
|
9
9
|
n[i] = a;
|
|
10
10
|
return n;
|
|
11
|
-
},
|
|
11
|
+
}, ga = (e) => (Ee("data-v-1d2a8d30"), e = e(), Fe(), e), ya = ["aria-hidden"], ma = {
|
|
12
12
|
key: 0,
|
|
13
13
|
"data-testid": "kui-icon-svg-title"
|
|
14
|
-
},
|
|
14
|
+
}, ha = /* @__PURE__ */ ga(() => /* @__PURE__ */ B("path", {
|
|
15
15
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
16
16
|
fill: "currentColor"
|
|
17
|
-
}, null, -1)),
|
|
17
|
+
}, null, -1)), va = /* @__PURE__ */ H({
|
|
18
18
|
__name: "AddIcon",
|
|
19
19
|
props: {
|
|
20
20
|
/** The accessibility text provided to screen readers */
|
|
@@ -83,7 +83,7 @@ const Tt = "24px", pa = (e, t) => {
|
|
|
83
83
|
lineHeight: "0",
|
|
84
84
|
width: n.value
|
|
85
85
|
}));
|
|
86
|
-
return (a, o) => (y(), U(
|
|
86
|
+
return (a, o) => (y(), U(me(e.as), {
|
|
87
87
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
88
88
|
class: "kui-icon add-icon",
|
|
89
89
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
@@ -100,14 +100,14 @@ const Tt = "24px", pa = (e, t) => {
|
|
|
100
100
|
width: "100%",
|
|
101
101
|
xmlns: "http://www.w3.org/2000/svg"
|
|
102
102
|
}, [
|
|
103
|
-
e.title ? (y(), j("title",
|
|
104
|
-
|
|
105
|
-
], 8,
|
|
103
|
+
e.title ? (y(), j("title", ma, K(e.title), 1)) : P("", !0),
|
|
104
|
+
ha
|
|
105
|
+
], 8, ya))
|
|
106
106
|
]),
|
|
107
107
|
_: 1
|
|
108
108
|
}, 8, ["aria-hidden", "style"]));
|
|
109
109
|
}
|
|
110
|
-
}),
|
|
110
|
+
}), ba = /* @__PURE__ */ fa(va, [["__scopeId", "data-v-1d2a8d30"]]), ka = {
|
|
111
111
|
title: "Key Sets",
|
|
112
112
|
list: {
|
|
113
113
|
toolbar_actions: {
|
|
@@ -168,11 +168,11 @@ const Tt = "24px", pa = (e, t) => {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
},
|
|
172
|
-
keySets:
|
|
171
|
+
}, Ca = {
|
|
172
|
+
keySets: ka
|
|
173
173
|
};
|
|
174
|
-
function
|
|
175
|
-
const e = tn("en-us",
|
|
174
|
+
function wa() {
|
|
175
|
+
const e = tn("en-us", Ca);
|
|
176
176
|
return {
|
|
177
177
|
i18n: e,
|
|
178
178
|
i18nT: nn(e)
|
|
@@ -180,7 +180,7 @@ function Ca() {
|
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
182
|
const ht = {
|
|
183
|
-
useI18n:
|
|
183
|
+
useI18n: wa
|
|
184
184
|
}, tt = "/v2/control-planes/{controlPlaneId}/core-entities", nt = "/{workspace}", He = {
|
|
185
185
|
list: {
|
|
186
186
|
konnect: `${tt}/key-sets`,
|
|
@@ -198,7 +198,7 @@ const ht = {
|
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
var an = /* @__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))(an || {}), st = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(st || {}), Ae = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ae || {}), Z = /* @__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))(Z || {}), se = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(se || {});
|
|
201
|
-
function
|
|
201
|
+
function Sa() {
|
|
202
202
|
return {
|
|
203
203
|
getAxiosInstance: (e = {}) => {
|
|
204
204
|
try {
|
|
@@ -222,7 +222,7 @@ function wa() {
|
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Aa() {
|
|
226
226
|
return {
|
|
227
227
|
debounce: (e, t) => {
|
|
228
228
|
let n;
|
|
@@ -234,14 +234,14 @@ function Sa() {
|
|
|
234
234
|
}
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
|
-
const at = "khcp-user-table-preferences",
|
|
237
|
+
const at = "khcp-user-table-preferences", xa = {
|
|
238
238
|
pageSize: 30,
|
|
239
239
|
sortColumnKey: void 0,
|
|
240
240
|
sortColumnOrder: void 0,
|
|
241
241
|
columnWidths: {},
|
|
242
242
|
columnVisibility: {}
|
|
243
243
|
};
|
|
244
|
-
function
|
|
244
|
+
function Ia() {
|
|
245
245
|
const e = (n) => {
|
|
246
246
|
if (typeof n == "string")
|
|
247
247
|
try {
|
|
@@ -265,7 +265,7 @@ function xa() {
|
|
|
265
265
|
},
|
|
266
266
|
getTablePreferences: (n) => {
|
|
267
267
|
const i = t();
|
|
268
|
-
return (i == null ? void 0 : i.get(n)) || void 0 ||
|
|
268
|
+
return (i == null ? void 0 : i.get(n)) || void 0 || xa;
|
|
269
269
|
},
|
|
270
270
|
deleteAllTablePreferences: () => {
|
|
271
271
|
localStorage.removeItem(at);
|
|
@@ -273,22 +273,22 @@ function xa() {
|
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
function vt(e = {}) {
|
|
276
|
-
const { getAxiosInstance: t } =
|
|
276
|
+
const { getAxiosInstance: t } = Sa();
|
|
277
277
|
return {
|
|
278
278
|
axiosInstance: t(e)
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
const
|
|
281
|
+
const _a = {
|
|
282
282
|
actions: {
|
|
283
283
|
copyId: "Copy ID",
|
|
284
284
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
285
285
|
copyToClipboard: "Copied successfully!",
|
|
286
286
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
287
287
|
}
|
|
288
|
-
},
|
|
288
|
+
}, Na = {
|
|
289
289
|
message: "Are you sure you want to delete this {entityType}?",
|
|
290
290
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
291
|
-
},
|
|
291
|
+
}, ja = {
|
|
292
292
|
actions: {
|
|
293
293
|
viewConfiguration: "View Configuration",
|
|
294
294
|
save: "Save",
|
|
@@ -304,13 +304,13 @@ const Ia = {
|
|
|
304
304
|
errors: {
|
|
305
305
|
edit: "The entity could not be edited at this time."
|
|
306
306
|
}
|
|
307
|
-
},
|
|
307
|
+
}, Ta = {
|
|
308
308
|
emptyState: {
|
|
309
309
|
noSearchResultsTitle: "No results found",
|
|
310
310
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
311
311
|
noSearchResultsCtaText: "Clear"
|
|
312
312
|
}
|
|
313
|
-
},
|
|
313
|
+
}, $a = {
|
|
314
314
|
title: "Configuration",
|
|
315
315
|
actions: {
|
|
316
316
|
copy: "Copy JSON"
|
|
@@ -345,7 +345,7 @@ const Ia = {
|
|
|
345
345
|
entryTitle: "Entry {index}",
|
|
346
346
|
structuredFormat: "Structured"
|
|
347
347
|
}
|
|
348
|
-
},
|
|
348
|
+
}, Oa = {
|
|
349
349
|
filterButtonText: "Filter",
|
|
350
350
|
fieldLabel: "Filter by:",
|
|
351
351
|
inputPlaceholder: "Enter a value",
|
|
@@ -353,17 +353,17 @@ const Ia = {
|
|
|
353
353
|
applyButtonText: "Apply",
|
|
354
354
|
clearButtonText: "Clear",
|
|
355
355
|
clearAllButtonText: "Clear all filters"
|
|
356
|
-
},
|
|
356
|
+
}, Ma = {
|
|
357
357
|
errors: {
|
|
358
358
|
fetch: "Could not fetch available items",
|
|
359
359
|
invalid: "Please select a valid value"
|
|
360
360
|
}
|
|
361
|
-
},
|
|
361
|
+
}, Ea = {
|
|
362
362
|
unexpected: "An unexpected error has occurred",
|
|
363
363
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
364
|
-
}, Ea = {
|
|
365
|
-
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
366
364
|
}, Fa = {
|
|
365
|
+
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
366
|
+
}, qa = {
|
|
367
367
|
enable: {
|
|
368
368
|
title: "Enable {entityType}",
|
|
369
369
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -374,20 +374,20 @@ const Ia = {
|
|
|
374
374
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
375
375
|
confirmText: "Yes, disable"
|
|
376
376
|
}
|
|
377
|
-
},
|
|
378
|
-
global:
|
|
379
|
-
deleteModal:
|
|
380
|
-
baseForm:
|
|
381
|
-
baseTable:
|
|
382
|
-
baseConfigCard:
|
|
383
|
-
filter:
|
|
384
|
-
debouncedFilter:
|
|
385
|
-
errors:
|
|
386
|
-
validationErrors:
|
|
387
|
-
toggleModal:
|
|
377
|
+
}, Ka = {
|
|
378
|
+
global: _a,
|
|
379
|
+
deleteModal: Na,
|
|
380
|
+
baseForm: ja,
|
|
381
|
+
baseTable: Ta,
|
|
382
|
+
baseConfigCard: $a,
|
|
383
|
+
filter: Oa,
|
|
384
|
+
debouncedFilter: Ma,
|
|
385
|
+
errors: Ea,
|
|
386
|
+
validationErrors: Fa,
|
|
387
|
+
toggleModal: qa
|
|
388
388
|
};
|
|
389
389
|
function Qe() {
|
|
390
|
-
const e = tn("en-us",
|
|
390
|
+
const e = tn("en-us", Ka);
|
|
391
391
|
return {
|
|
392
392
|
i18n: e,
|
|
393
393
|
i18nT: nn(e)
|
|
@@ -438,12 +438,12 @@ function rn() {
|
|
|
438
438
|
isValidUuid: (n) => n ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(n) : !1
|
|
439
439
|
};
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Ba(e, t, n, i = {
|
|
442
442
|
fetchedItemsKey: "data",
|
|
443
443
|
searchKeys: ["id"]
|
|
444
444
|
}) {
|
|
445
445
|
n || (n = "1000");
|
|
446
|
-
const { axiosInstance: a } = vt(e.axiosRequestConfig), { i18n: { t: o } } = Qe(), { debounce: r } =
|
|
446
|
+
const { axiosInstance: a } = vt(e.axiosRequestConfig), { i18n: { t: o } } = Qe(), { debounce: r } = Aa(), l = r(async (f) => {
|
|
447
447
|
await O(f);
|
|
448
448
|
}, 200), s = q(!1), c = q(""), d = q(""), u = q([]), m = q([]), g = q(void 0), C = b(t);
|
|
449
449
|
let x = `${e.apiBaseUrl}${C}`;
|
|
@@ -514,13 +514,13 @@ function Ka(e, t, n, i = {
|
|
|
514
514
|
debouncedQueryChange: l
|
|
515
515
|
};
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function La(e, t) {
|
|
518
518
|
const n = b(t), i = S(
|
|
519
519
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
520
520
|
);
|
|
521
521
|
return i.value.search = "", (a) => `${i.value.href}/${a}`;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Ua() {
|
|
524
524
|
const { i18n: { t: e } } = Qe();
|
|
525
525
|
return {
|
|
526
526
|
getMessageFromError: (t) => {
|
|
@@ -550,7 +550,7 @@ function La() {
|
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function Ra(e) {
|
|
554
554
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
555
555
|
try {
|
|
556
556
|
const i = e.join("/"), a = `${n}${i}`, o = e.some((r) => r.trim() === "");
|
|
@@ -579,7 +579,7 @@ function on(e, t) {
|
|
|
579
579
|
}
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Va(e, t, n = "data") {
|
|
583
583
|
const i = b(t), { axiosInstance: a } = vt(e.axiosRequestConfig), o = on(e, i), r = q({
|
|
584
584
|
status: Ae.Idle
|
|
585
585
|
});
|
|
@@ -625,7 +625,7 @@ function Ra(e, t, n = "data") {
|
|
|
625
625
|
}
|
|
626
626
|
}, fetcherState: r };
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function Da() {
|
|
629
629
|
const e = (n, i = "_") => n ? n.split(i).map((a) => a.toLowerCase() === "id" ? a.toUpperCase() : a.charAt(0).toUpperCase() + a.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
630
630
|
return {
|
|
631
631
|
capitalize: (n) => n ? n.replace(t, (i) => i.toUpperCase()) : "",
|
|
@@ -642,24 +642,24 @@ const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
642
642
|
}, Ot = (e) => e === "*" || e === "x" || e === "X", Mt = (e) => {
|
|
643
643
|
const t = parseInt(e, 10);
|
|
644
644
|
return isNaN(t) ? e : t;
|
|
645
|
-
},
|
|
645
|
+
}, Pa = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], za = (e, t) => {
|
|
646
646
|
if (Ot(e) || Ot(t))
|
|
647
647
|
return 0;
|
|
648
|
-
const [n, i] =
|
|
648
|
+
const [n, i] = Pa(Mt(e), Mt(t));
|
|
649
649
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
650
650
|
}, Et = (e, t) => {
|
|
651
651
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
652
|
-
const i =
|
|
652
|
+
const i = za(e[n] || "0", t[n] || "0");
|
|
653
653
|
if (i !== 0)
|
|
654
654
|
return i;
|
|
655
655
|
}
|
|
656
656
|
return 0;
|
|
657
|
-
},
|
|
657
|
+
}, Ha = (e, t) => {
|
|
658
658
|
const n = $t(e), i = $t(t), a = n.pop(), o = i.pop(), r = Et(n, i);
|
|
659
659
|
return r !== 0 ? r : a && o ? Et(a.split("."), o.split(".")) : a || o ? a ? -1 : 1 : 0;
|
|
660
660
|
}, Ft = (e, t, n) => {
|
|
661
|
-
|
|
662
|
-
const i =
|
|
661
|
+
Ja(n);
|
|
662
|
+
const i = Ha(e, t);
|
|
663
663
|
return sn[n].includes(i);
|
|
664
664
|
}, sn = {
|
|
665
665
|
">": [1],
|
|
@@ -668,18 +668,18 @@ const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
668
668
|
"<=": [-1, 0],
|
|
669
669
|
"<": [-1],
|
|
670
670
|
"!=": [-1, 1]
|
|
671
|
-
}, qt = Object.keys(sn),
|
|
671
|
+
}, qt = Object.keys(sn), Ja = (e) => {
|
|
672
672
|
if (typeof e != "string")
|
|
673
673
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
674
674
|
if (qt.indexOf(e) === -1)
|
|
675
675
|
throw new Error(`Invalid operator, expected one of ${qt.join("|")}`);
|
|
676
|
-
},
|
|
677
|
-
function
|
|
676
|
+
}, Za = (e) => typeof e == "string" && /^[v\d]/.test(e) && ln.test(e);
|
|
677
|
+
function Wa(e) {
|
|
678
678
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
679
679
|
if (!t)
|
|
680
680
|
return !0;
|
|
681
681
|
const { edition: i, version: a } = t;
|
|
682
|
-
if (!
|
|
682
|
+
if (!Za(a))
|
|
683
683
|
return console.error("Invalid version"), !1;
|
|
684
684
|
const o = n[i];
|
|
685
685
|
if (!o)
|
|
@@ -687,7 +687,7 @@ function Za(e) {
|
|
|
687
687
|
const [r, l] = o;
|
|
688
688
|
return !(r && Ft(a, r, "<") || l && Ft(a, l, ">"));
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function Ya(e) {
|
|
691
691
|
const t = q(0), n = q(0), i = q(!1);
|
|
692
692
|
return Ie(e, (a) => {
|
|
693
693
|
a && !i.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, i.value = !0);
|
|
@@ -695,7 +695,7 @@ function Wa(e) {
|
|
|
695
695
|
isTruncated: S(() => t.value < n.value)
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Ga() {
|
|
699
699
|
const { i18n: { t: e } } = Qe();
|
|
700
700
|
return {
|
|
701
701
|
utf8Name: (t) => /^[\p{N}\p{L}.\-_~]*$/u.test(t) ? "" : e("validationErrors.utf8Name")
|
|
@@ -703,22 +703,22 @@ function Ya() {
|
|
|
703
703
|
}
|
|
704
704
|
const X = {
|
|
705
705
|
useAxios: vt,
|
|
706
|
-
useDebouncedFilter:
|
|
707
|
-
useDeleteUrlBuilder:
|
|
708
|
-
useErrors:
|
|
709
|
-
useExternalLinkCreator:
|
|
710
|
-
useFetcher:
|
|
706
|
+
useDebouncedFilter: Ba,
|
|
707
|
+
useDeleteUrlBuilder: La,
|
|
708
|
+
useErrors: Ua,
|
|
709
|
+
useExternalLinkCreator: Ra,
|
|
710
|
+
useFetcher: Va,
|
|
711
711
|
useFetchUrlBuilder: on,
|
|
712
712
|
useHelpers: rn,
|
|
713
|
-
useStringHelpers:
|
|
713
|
+
useStringHelpers: Da,
|
|
714
714
|
useI18n: Qe,
|
|
715
|
-
useGatewayFeatureSupported:
|
|
716
|
-
useTruncationDetector:
|
|
717
|
-
useValidators:
|
|
718
|
-
},
|
|
715
|
+
useGatewayFeatureSupported: Wa,
|
|
716
|
+
useTruncationDetector: Ya,
|
|
717
|
+
useValidators: Ga
|
|
718
|
+
}, Qa = {
|
|
719
719
|
key: 0,
|
|
720
720
|
class: "config-card-fieldset-title"
|
|
721
|
-
},
|
|
721
|
+
}, Xa = /* @__PURE__ */ H({
|
|
722
722
|
__name: "JsonCardItem",
|
|
723
723
|
props: {
|
|
724
724
|
item: {
|
|
@@ -742,11 +742,11 @@ const X = {
|
|
|
742
742
|
var s;
|
|
743
743
|
return t.isArrayItem ? (s = o.value) != null && s.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
744
744
|
});
|
|
745
|
-
return (s, c) => (y(), U(
|
|
745
|
+
return (s, c) => (y(), U(me(e.isArrayItem ? "fieldset" : "div"), {
|
|
746
746
|
class: Ce(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
747
747
|
}, {
|
|
748
748
|
default: h(() => [
|
|
749
|
-
e.isArrayItem ? (y(), j("legend",
|
|
749
|
+
e.isArrayItem ? (y(), j("legend", Qa, [
|
|
750
750
|
B("b", null, K(l.value), 1)
|
|
751
751
|
])) : P("", !0),
|
|
752
752
|
(y(!0), j(pe, null, ce(Object.keys(r.value), (d, u) => (y(), U(un, {
|
|
@@ -766,7 +766,7 @@ const X = {
|
|
|
766
766
|
for (const [i, a] of t)
|
|
767
767
|
n[i] = a;
|
|
768
768
|
return n;
|
|
769
|
-
}, cn = /* @__PURE__ */ ue(
|
|
769
|
+
}, cn = /* @__PURE__ */ ue(Xa, [["__scopeId", "data-v-68ca83ec"]]), ei = /* @__PURE__ */ H({
|
|
770
770
|
__name: "InternalLinkItem",
|
|
771
771
|
props: {
|
|
772
772
|
item: {
|
|
@@ -793,7 +793,7 @@ const X = {
|
|
|
793
793
|
]);
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
}),
|
|
796
|
+
}), ti = /* @__PURE__ */ ue(ei, [["__scopeId", "data-v-c96811e5"]]), ni = /* @__PURE__ */ H({
|
|
797
797
|
__name: "StatusBadge",
|
|
798
798
|
props: {
|
|
799
799
|
status: {
|
|
@@ -815,11 +815,11 @@ const X = {
|
|
|
815
815
|
}, 8, ["appearance"]);
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
|
-
}),
|
|
818
|
+
}), ai = "#0044f4", ii = "#e0e4ea", ri = "#afb7c5", oi = "1px", li = "20px", si = { class: "config-card-details-row" }, ci = ["data-testid"], ui = ["data-testid"], di = ["data-testid"], pi = ["data-testid"], fi = { key: 1 }, gi = ["data-testid"], yi = ["data-testid"], mi = ["data-testid"], hi = ["data-testid"], vi = {
|
|
819
819
|
name: "ConfigCardItem",
|
|
820
|
-
components: { JsonCardItem: cn, StatusBadge:
|
|
821
|
-
},
|
|
822
|
-
...
|
|
820
|
+
components: { JsonCardItem: cn, StatusBadge: ni, InternalLinkItem: ti }
|
|
821
|
+
}, bi = /* @__PURE__ */ H({
|
|
822
|
+
...vi,
|
|
823
823
|
props: {
|
|
824
824
|
item: {
|
|
825
825
|
type: Object,
|
|
@@ -839,7 +839,7 @@ const X = {
|
|
|
839
839
|
emits: ["navigation-click"],
|
|
840
840
|
setup(e, { emit: t }) {
|
|
841
841
|
en((C) => ({
|
|
842
|
-
"07753575": d.value ? "none" : `solid ${b(
|
|
842
|
+
"07753575": d.value ? "none" : `solid ${b(oi)} ${b(ii)}`,
|
|
843
843
|
"32d44ea8": c.value && l.value ? "block" : "flex",
|
|
844
844
|
"5036b738": c.value && l.value ? "100%" : n.slim ? "50%" : "25%",
|
|
845
845
|
"5038fd13": c.value && l.value ? "100%" : n.slim ? "50%" : "75%"
|
|
@@ -957,7 +957,7 @@ const X = {
|
|
|
957
957
|
}), m = q(), { isTruncated: g } = X.useTruncationDetector(m);
|
|
958
958
|
return (C, x) => {
|
|
959
959
|
const k = L("KLabel"), F = L("KBadge"), w = L("KCopy"), O = L("KTooltip");
|
|
960
|
-
return y(), j("div",
|
|
960
|
+
return y(), j("div", si, [
|
|
961
961
|
B("div", {
|
|
962
962
|
class: "config-card-details-label",
|
|
963
963
|
"data-testid": `${e.item.key}-label`
|
|
@@ -978,13 +978,13 @@ const X = {
|
|
|
978
978
|
W(C.$slots, "label-tooltip", {}, () => [
|
|
979
979
|
z(K(e.item.tooltip), 1)
|
|
980
980
|
], !0)
|
|
981
|
-
], 8,
|
|
981
|
+
], 8, ui)
|
|
982
982
|
]),
|
|
983
983
|
key: "0"
|
|
984
984
|
} : void 0
|
|
985
985
|
]), 1024)
|
|
986
986
|
], !0)
|
|
987
|
-
], 8,
|
|
987
|
+
], 8, ci),
|
|
988
988
|
B("div", {
|
|
989
989
|
class: "config-card-details-value",
|
|
990
990
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -992,8 +992,8 @@ const X = {
|
|
|
992
992
|
W(C.$slots, e.item.key, {
|
|
993
993
|
rowValue: e.item.value
|
|
994
994
|
}, () => [
|
|
995
|
-
l.value ? (y(), j("div",
|
|
996
|
-
(y(), U(
|
|
995
|
+
l.value ? (y(), j("div", fi, [
|
|
996
|
+
(y(), U(me(u.value.tag), sa(ca(u.value.attrs)), {
|
|
997
997
|
default: h(() => [
|
|
998
998
|
u.value.additionalComponent === "KBadge" ? (y(), j("div", {
|
|
999
999
|
key: 0,
|
|
@@ -1011,7 +1011,7 @@ const X = {
|
|
|
1011
1011
|
]),
|
|
1012
1012
|
_: 2
|
|
1013
1013
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1014
|
-
], 8,
|
|
1014
|
+
], 8, gi)) : P("", !0),
|
|
1015
1015
|
u.value.additionalComponent === "KCopy" ? (y(), j("div", {
|
|
1016
1016
|
key: 1,
|
|
1017
1017
|
class: "copy-uuid-array",
|
|
@@ -1022,14 +1022,14 @@ const X = {
|
|
|
1022
1022
|
"data-testid": `${e.item.key}-copy-uuid-${v}`,
|
|
1023
1023
|
text: f
|
|
1024
1024
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1025
|
-
], 8,
|
|
1025
|
+
], 8, yi)) : u.value.additionalComponent === "KMethodBadge" ? (y(), j("div", {
|
|
1026
1026
|
key: 2,
|
|
1027
1027
|
class: "method-badge-array",
|
|
1028
1028
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1029
1029
|
}, [
|
|
1030
1030
|
(y(!0), j(pe, null, ce(e.item.value, (f, v) => (y(), U(F, {
|
|
1031
1031
|
key: `${e.item.key}-badge-method-${v}`,
|
|
1032
|
-
appearance: Object.values(b(
|
|
1032
|
+
appearance: Object.values(b(pa)).includes(f.toLowerCase()) ? f.toLowerCase() : "custom",
|
|
1033
1033
|
class: "config-badge",
|
|
1034
1034
|
"data-testid": `${e.item.key}-badge-method-${v}`
|
|
1035
1035
|
}, {
|
|
@@ -1038,7 +1038,7 @@ const X = {
|
|
|
1038
1038
|
]),
|
|
1039
1039
|
_: 2
|
|
1040
1040
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1041
|
-
], 8,
|
|
1041
|
+
], 8, mi)) : P("", !0),
|
|
1042
1042
|
u.value.additionalComponent === "JsonCardItem" ? (y(), j("div", {
|
|
1043
1043
|
key: 3,
|
|
1044
1044
|
"data-testid": `${n.item.key}-json-array-content`
|
|
@@ -1049,7 +1049,7 @@ const X = {
|
|
|
1049
1049
|
"is-array-item": "",
|
|
1050
1050
|
item: f
|
|
1051
1051
|
}, null, 8, ["index", "item"]))), 128))
|
|
1052
|
-
], 8,
|
|
1052
|
+
], 8, hi)) : (y(), U(O, {
|
|
1053
1053
|
key: 4,
|
|
1054
1054
|
text: b(g) ? e.item.value : ""
|
|
1055
1055
|
}, {
|
|
@@ -1068,13 +1068,13 @@ const X = {
|
|
|
1068
1068
|
])) : (y(), j("div", {
|
|
1069
1069
|
key: 0,
|
|
1070
1070
|
"data-testid": `${e.item.key}-no-value`
|
|
1071
|
-
}, " – ", 8,
|
|
1071
|
+
}, " – ", 8, pi))
|
|
1072
1072
|
], !0)
|
|
1073
|
-
], 8,
|
|
1073
|
+
], 8, di)
|
|
1074
1074
|
]);
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
|
-
}), un = /* @__PURE__ */ ue(
|
|
1077
|
+
}), un = /* @__PURE__ */ ue(bi, [["__scopeId", "data-v-d056663c"]]), ki = { class: "json-config" }, Ci = {
|
|
1078
1078
|
key: 0,
|
|
1079
1079
|
class: "json-endpoint"
|
|
1080
1080
|
}, dn = /* @__PURE__ */ H({
|
|
@@ -1117,8 +1117,8 @@ const X = {
|
|
|
1117
1117
|
});
|
|
1118
1118
|
return (a, o) => {
|
|
1119
1119
|
const r = L("KBadge"), l = L("KCodeBlock");
|
|
1120
|
-
return y(), j("div",
|
|
1121
|
-
t.fetcherUrl ? (y(), j("div",
|
|
1120
|
+
return y(), j("div", ki, [
|
|
1121
|
+
t.fetcherUrl ? (y(), j("div", Ci, [
|
|
1122
1122
|
N(r, {
|
|
1123
1123
|
appearance: t.requestMethod
|
|
1124
1124
|
}, {
|
|
@@ -1151,35 +1151,35 @@ const X = {
|
|
|
1151
1151
|
function pn(e) {
|
|
1152
1152
|
return typeof e > "u" || e === null;
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function wi(e) {
|
|
1155
1155
|
return typeof e == "object" && e !== null;
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function Si(e) {
|
|
1158
1158
|
return Array.isArray(e) ? e : pn(e) ? [] : [e];
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function Ai(e, t) {
|
|
1161
1161
|
var n, i, a, o;
|
|
1162
1162
|
if (t)
|
|
1163
1163
|
for (o = Object.keys(t), n = 0, i = o.length; n < i; n += 1)
|
|
1164
1164
|
a = o[n], e[a] = t[a];
|
|
1165
1165
|
return e;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function xi(e, t) {
|
|
1168
1168
|
var n = "", i;
|
|
1169
1169
|
for (i = 0; i < t; i += 1)
|
|
1170
1170
|
n += e;
|
|
1171
1171
|
return n;
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function Ii(e) {
|
|
1174
1174
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1175
1175
|
}
|
|
1176
|
-
var
|
|
1177
|
-
isNothing:
|
|
1178
|
-
isObject:
|
|
1179
|
-
toArray:
|
|
1180
|
-
repeat:
|
|
1181
|
-
isNegativeZero:
|
|
1182
|
-
extend:
|
|
1176
|
+
var _i = pn, Ni = wi, ji = Si, Ti = xi, $i = Ii, Oi = Ai, Q = {
|
|
1177
|
+
isNothing: _i,
|
|
1178
|
+
isObject: Ni,
|
|
1179
|
+
toArray: ji,
|
|
1180
|
+
repeat: Ti,
|
|
1181
|
+
isNegativeZero: $i,
|
|
1182
|
+
extend: Oi
|
|
1183
1183
|
};
|
|
1184
1184
|
function fn(e, t) {
|
|
1185
1185
|
var n = "", i = e.reason || "(unknown reason)";
|
|
@@ -1207,7 +1207,7 @@ function it(e, t, n, i, a) {
|
|
|
1207
1207
|
function rt(e, t) {
|
|
1208
1208
|
return Q.repeat(" ", t - e.length) + e;
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function Mi(e, t) {
|
|
1211
1211
|
if (t = Object.create(t || null), !e.buffer)
|
|
1212
1212
|
return null;
|
|
1213
1213
|
t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
@@ -1237,7 +1237,7 @@ function Oi(e, t) {
|
|
|
1237
1237
|
`;
|
|
1238
1238
|
return l.replace(/\n$/, "");
|
|
1239
1239
|
}
|
|
1240
|
-
var
|
|
1240
|
+
var Ei = Mi, Fi = [
|
|
1241
1241
|
"kind",
|
|
1242
1242
|
"multi",
|
|
1243
1243
|
"resolve",
|
|
@@ -1248,12 +1248,12 @@ var Mi = Oi, Ei = [
|
|
|
1248
1248
|
"representName",
|
|
1249
1249
|
"defaultStyle",
|
|
1250
1250
|
"styleAliases"
|
|
1251
|
-
],
|
|
1251
|
+
], qi = [
|
|
1252
1252
|
"scalar",
|
|
1253
1253
|
"sequence",
|
|
1254
1254
|
"mapping"
|
|
1255
1255
|
];
|
|
1256
|
-
function
|
|
1256
|
+
function Ki(e) {
|
|
1257
1257
|
var t = {};
|
|
1258
1258
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1259
1259
|
e[n].forEach(function(i) {
|
|
@@ -1261,18 +1261,18 @@ function qi(e) {
|
|
|
1261
1261
|
});
|
|
1262
1262
|
}), t;
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Bi(e, t) {
|
|
1265
1265
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1266
|
-
if (
|
|
1266
|
+
if (Fi.indexOf(n) === -1)
|
|
1267
1267
|
throw new ie('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1268
1268
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1269
1269
|
return !0;
|
|
1270
1270
|
}, this.construct = t.construct || function(n) {
|
|
1271
1271
|
return n;
|
|
1272
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
1272
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Ki(t.styleAliases || null), qi.indexOf(this.kind) === -1)
|
|
1273
1273
|
throw new ie('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1274
1274
|
}
|
|
1275
|
-
var ne =
|
|
1275
|
+
var ne = Bi;
|
|
1276
1276
|
function Kt(e, t) {
|
|
1277
1277
|
var n = [];
|
|
1278
1278
|
return e[t].forEach(function(i) {
|
|
@@ -1282,7 +1282,7 @@ function Kt(e, t) {
|
|
|
1282
1282
|
}), n[a] = i;
|
|
1283
1283
|
}), n;
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function Li() {
|
|
1286
1286
|
var e = {
|
|
1287
1287
|
scalar: {},
|
|
1288
1288
|
sequence: {},
|
|
@@ -1327,7 +1327,7 @@ ct.prototype.extend = function(e) {
|
|
|
1327
1327
|
throw new ie("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1328
1328
|
});
|
|
1329
1329
|
var i = Object.create(ct.prototype);
|
|
1330
|
-
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = Kt(i, "implicit"), i.compiledExplicit = Kt(i, "explicit"), i.compiledTypeMap =
|
|
1330
|
+
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = Kt(i, "implicit"), i.compiledExplicit = Kt(i, "explicit"), i.compiledTypeMap = Li(i.compiledImplicit, i.compiledExplicit), i;
|
|
1331
1331
|
};
|
|
1332
1332
|
var gn = ct, yn = new ne("tag:yaml.org,2002:str", {
|
|
1333
1333
|
kind: "scalar",
|
|
@@ -1351,23 +1351,23 @@ var gn = ct, yn = new ne("tag:yaml.org,2002:str", {
|
|
|
1351
1351
|
hn
|
|
1352
1352
|
]
|
|
1353
1353
|
});
|
|
1354
|
-
function
|
|
1354
|
+
function Ui(e) {
|
|
1355
1355
|
if (e === null)
|
|
1356
1356
|
return !0;
|
|
1357
1357
|
var t = e.length;
|
|
1358
1358
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function Ri() {
|
|
1361
1361
|
return null;
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function Vi(e) {
|
|
1364
1364
|
return e === null;
|
|
1365
1365
|
}
|
|
1366
1366
|
var bn = new ne("tag:yaml.org,2002:null", {
|
|
1367
1367
|
kind: "scalar",
|
|
1368
|
-
resolve:
|
|
1369
|
-
construct:
|
|
1370
|
-
predicate:
|
|
1368
|
+
resolve: Ui,
|
|
1369
|
+
construct: Ri,
|
|
1370
|
+
predicate: Vi,
|
|
1371
1371
|
represent: {
|
|
1372
1372
|
canonical: function() {
|
|
1373
1373
|
return "~";
|
|
@@ -1387,23 +1387,23 @@ var bn = new ne("tag:yaml.org,2002:null", {
|
|
|
1387
1387
|
},
|
|
1388
1388
|
defaultStyle: "lowercase"
|
|
1389
1389
|
});
|
|
1390
|
-
function
|
|
1390
|
+
function Di(e) {
|
|
1391
1391
|
if (e === null)
|
|
1392
1392
|
return !1;
|
|
1393
1393
|
var t = e.length;
|
|
1394
1394
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function Pi(e) {
|
|
1397
1397
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function zi(e) {
|
|
1400
1400
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1401
1401
|
}
|
|
1402
1402
|
var kn = new ne("tag:yaml.org,2002:bool", {
|
|
1403
1403
|
kind: "scalar",
|
|
1404
|
-
resolve:
|
|
1405
|
-
construct:
|
|
1406
|
-
predicate:
|
|
1404
|
+
resolve: Di,
|
|
1405
|
+
construct: Pi,
|
|
1406
|
+
predicate: zi,
|
|
1407
1407
|
represent: {
|
|
1408
1408
|
lowercase: function(e) {
|
|
1409
1409
|
return e ? "true" : "false";
|
|
@@ -1417,16 +1417,16 @@ var kn = new ne("tag:yaml.org,2002:bool", {
|
|
|
1417
1417
|
},
|
|
1418
1418
|
defaultStyle: "lowercase"
|
|
1419
1419
|
});
|
|
1420
|
-
function
|
|
1420
|
+
function Hi(e) {
|
|
1421
1421
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1423
|
+
function Ji(e) {
|
|
1424
1424
|
return 48 <= e && e <= 55;
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function Zi(e) {
|
|
1427
1427
|
return 48 <= e && e <= 57;
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function Wi(e) {
|
|
1430
1430
|
if (e === null)
|
|
1431
1431
|
return !1;
|
|
1432
1432
|
var t = e.length, n = 0, i = !1, a;
|
|
@@ -1447,7 +1447,7 @@ function Zi(e) {
|
|
|
1447
1447
|
if (a === "x") {
|
|
1448
1448
|
for (n++; n < t; n++)
|
|
1449
1449
|
if (a = e[n], a !== "_") {
|
|
1450
|
-
if (!
|
|
1450
|
+
if (!Hi(e.charCodeAt(n)))
|
|
1451
1451
|
return !1;
|
|
1452
1452
|
i = !0;
|
|
1453
1453
|
}
|
|
@@ -1456,7 +1456,7 @@ function Zi(e) {
|
|
|
1456
1456
|
if (a === "o") {
|
|
1457
1457
|
for (n++; n < t; n++)
|
|
1458
1458
|
if (a = e[n], a !== "_") {
|
|
1459
|
-
if (!
|
|
1459
|
+
if (!Ji(e.charCodeAt(n)))
|
|
1460
1460
|
return !1;
|
|
1461
1461
|
i = !0;
|
|
1462
1462
|
}
|
|
@@ -1467,13 +1467,13 @@ function Zi(e) {
|
|
|
1467
1467
|
return !1;
|
|
1468
1468
|
for (; n < t; n++)
|
|
1469
1469
|
if (a = e[n], a !== "_") {
|
|
1470
|
-
if (!
|
|
1470
|
+
if (!Zi(e.charCodeAt(n)))
|
|
1471
1471
|
return !1;
|
|
1472
1472
|
i = !0;
|
|
1473
1473
|
}
|
|
1474
1474
|
return !(!i || a === "_");
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function Yi(e) {
|
|
1477
1477
|
var t = e, n = 1, i;
|
|
1478
1478
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), i = t[0], (i === "-" || i === "+") && (i === "-" && (n = -1), t = t.slice(1), i = t[0]), t === "0")
|
|
1479
1479
|
return 0;
|
|
@@ -1487,14 +1487,14 @@ function Wi(e) {
|
|
|
1487
1487
|
}
|
|
1488
1488
|
return n * parseInt(t, 10);
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function Gi(e) {
|
|
1491
1491
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Q.isNegativeZero(e);
|
|
1492
1492
|
}
|
|
1493
1493
|
var Cn = new ne("tag:yaml.org,2002:int", {
|
|
1494
1494
|
kind: "scalar",
|
|
1495
|
-
resolve:
|
|
1496
|
-
construct:
|
|
1497
|
-
predicate:
|
|
1495
|
+
resolve: Wi,
|
|
1496
|
+
construct: Yi,
|
|
1497
|
+
predicate: Gi,
|
|
1498
1498
|
represent: {
|
|
1499
1499
|
binary: function(e) {
|
|
1500
1500
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1517,21 +1517,21 @@ var Cn = new ne("tag:yaml.org,2002:int", {
|
|
|
1517
1517
|
decimal: [10, "dec"],
|
|
1518
1518
|
hexadecimal: [16, "hex"]
|
|
1519
1519
|
}
|
|
1520
|
-
}),
|
|
1520
|
+
}), Qi = new RegExp(
|
|
1521
1521
|
// 2.5e4, 2.5 and integers
|
|
1522
1522
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1523
1523
|
);
|
|
1524
|
-
function
|
|
1525
|
-
return !(e === null || !
|
|
1524
|
+
function Xi(e) {
|
|
1525
|
+
return !(e === null || !Qi.test(e) || // Quick hack to not allow integers end with `_`
|
|
1526
1526
|
// Probably should update regexp & check speed
|
|
1527
1527
|
e[e.length - 1] === "_");
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1529
|
+
function er(e) {
|
|
1530
1530
|
var t, n;
|
|
1531
1531
|
return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
1532
1532
|
}
|
|
1533
|
-
var
|
|
1534
|
-
function
|
|
1533
|
+
var tr = /^[-+]?[0-9]+e/;
|
|
1534
|
+
function nr(e, t) {
|
|
1535
1535
|
var n;
|
|
1536
1536
|
if (isNaN(e))
|
|
1537
1537
|
switch (t) {
|
|
@@ -1562,17 +1562,17 @@ function tr(e, t) {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
else if (Q.isNegativeZero(e))
|
|
1564
1564
|
return "-0.0";
|
|
1565
|
-
return n = e.toString(10),
|
|
1565
|
+
return n = e.toString(10), tr.test(n) ? n.replace("e", ".e") : n;
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1567
|
+
function ar(e) {
|
|
1568
1568
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Q.isNegativeZero(e));
|
|
1569
1569
|
}
|
|
1570
1570
|
var wn = new ne("tag:yaml.org,2002:float", {
|
|
1571
1571
|
kind: "scalar",
|
|
1572
|
-
resolve:
|
|
1573
|
-
construct:
|
|
1574
|
-
predicate:
|
|
1575
|
-
represent:
|
|
1572
|
+
resolve: Xi,
|
|
1573
|
+
construct: er,
|
|
1574
|
+
predicate: ar,
|
|
1575
|
+
represent: nr,
|
|
1576
1576
|
defaultStyle: "lowercase"
|
|
1577
1577
|
}), Sn = vn.extend({
|
|
1578
1578
|
implicit: [
|
|
@@ -1586,10 +1586,10 @@ var wn = new ne("tag:yaml.org,2002:float", {
|
|
|
1586
1586
|
), In = new RegExp(
|
|
1587
1587
|
"^([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]))?))?$"
|
|
1588
1588
|
);
|
|
1589
|
-
function
|
|
1589
|
+
function ir(e) {
|
|
1590
1590
|
return e === null ? !1 : xn.exec(e) !== null || In.exec(e) !== null;
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1592
|
+
function rr(e) {
|
|
1593
1593
|
var t, n, i, a, o, r, l, s = 0, c = null, d, u, m;
|
|
1594
1594
|
if (t = xn.exec(e), t === null && (t = In.exec(e)), t === null)
|
|
1595
1595
|
throw new Error("Date resolve error");
|
|
@@ -1602,25 +1602,25 @@ function ir(e) {
|
|
|
1602
1602
|
}
|
|
1603
1603
|
return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), m = new Date(Date.UTC(n, i, a, o, r, l, s)), c && m.setTime(m.getTime() - c), m;
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function or(e) {
|
|
1606
1606
|
return e.toISOString();
|
|
1607
1607
|
}
|
|
1608
1608
|
var _n = new ne("tag:yaml.org,2002:timestamp", {
|
|
1609
1609
|
kind: "scalar",
|
|
1610
|
-
resolve:
|
|
1611
|
-
construct:
|
|
1610
|
+
resolve: ir,
|
|
1611
|
+
construct: rr,
|
|
1612
1612
|
instanceOf: Date,
|
|
1613
|
-
represent:
|
|
1613
|
+
represent: or
|
|
1614
1614
|
});
|
|
1615
|
-
function
|
|
1615
|
+
function lr(e) {
|
|
1616
1616
|
return e === "<<" || e === null;
|
|
1617
1617
|
}
|
|
1618
1618
|
var Nn = new ne("tag:yaml.org,2002:merge", {
|
|
1619
1619
|
kind: "scalar",
|
|
1620
|
-
resolve:
|
|
1620
|
+
resolve: lr
|
|
1621
1621
|
}), bt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1622
1622
|
\r`;
|
|
1623
|
-
function
|
|
1623
|
+
function sr(e) {
|
|
1624
1624
|
if (e === null)
|
|
1625
1625
|
return !1;
|
|
1626
1626
|
var t, n, i = 0, a = e.length, o = bt;
|
|
@@ -1632,37 +1632,37 @@ function lr(e) {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
return i % 8 === 0;
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1635
|
+
function cr(e) {
|
|
1636
1636
|
var t, n, i = e.replace(/[\r\n=]/g, ""), a = i.length, o = bt, r = 0, l = [];
|
|
1637
1637
|
for (t = 0; t < a; t++)
|
|
1638
1638
|
t % 4 === 0 && t && (l.push(r >> 16 & 255), l.push(r >> 8 & 255), l.push(r & 255)), r = r << 6 | o.indexOf(i.charAt(t));
|
|
1639
1639
|
return n = a % 4 * 6, n === 0 ? (l.push(r >> 16 & 255), l.push(r >> 8 & 255), l.push(r & 255)) : n === 18 ? (l.push(r >> 10 & 255), l.push(r >> 2 & 255)) : n === 12 && l.push(r >> 4 & 255), new Uint8Array(l);
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1641
|
+
function ur(e) {
|
|
1642
1642
|
var t = "", n = 0, i, a, o = e.length, r = bt;
|
|
1643
1643
|
for (i = 0; i < o; i++)
|
|
1644
1644
|
i % 3 === 0 && i && (t += r[n >> 18 & 63], t += r[n >> 12 & 63], t += r[n >> 6 & 63], t += r[n & 63]), n = (n << 8) + e[i];
|
|
1645
1645
|
return a = o % 3, a === 0 ? (t += r[n >> 18 & 63], t += r[n >> 12 & 63], t += r[n >> 6 & 63], t += r[n & 63]) : a === 2 ? (t += r[n >> 10 & 63], t += r[n >> 4 & 63], t += r[n << 2 & 63], t += r[64]) : a === 1 && (t += r[n >> 2 & 63], t += r[n << 4 & 63], t += r[64], t += r[64]), t;
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1647
|
+
function dr(e) {
|
|
1648
1648
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1649
1649
|
}
|
|
1650
1650
|
var jn = new ne("tag:yaml.org,2002:binary", {
|
|
1651
1651
|
kind: "scalar",
|
|
1652
|
-
resolve:
|
|
1653
|
-
construct:
|
|
1654
|
-
predicate:
|
|
1655
|
-
represent:
|
|
1656
|
-
}),
|
|
1657
|
-
function
|
|
1652
|
+
resolve: sr,
|
|
1653
|
+
construct: cr,
|
|
1654
|
+
predicate: dr,
|
|
1655
|
+
represent: ur
|
|
1656
|
+
}), pr = Object.prototype.hasOwnProperty, fr = Object.prototype.toString;
|
|
1657
|
+
function gr(e) {
|
|
1658
1658
|
if (e === null)
|
|
1659
1659
|
return !0;
|
|
1660
1660
|
var t = [], n, i, a, o, r, l = e;
|
|
1661
1661
|
for (n = 0, i = l.length; n < i; n += 1) {
|
|
1662
|
-
if (a = l[n], r = !1,
|
|
1662
|
+
if (a = l[n], r = !1, fr.call(a) !== "[object Object]")
|
|
1663
1663
|
return !1;
|
|
1664
1664
|
for (o in a)
|
|
1665
|
-
if (
|
|
1665
|
+
if (pr.call(a, o))
|
|
1666
1666
|
if (!r)
|
|
1667
1667
|
r = !0;
|
|
1668
1668
|
else
|
|
@@ -1676,26 +1676,26 @@ function fr(e) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
return !0;
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function yr(e) {
|
|
1680
1680
|
return e !== null ? e : [];
|
|
1681
1681
|
}
|
|
1682
1682
|
var Tn = new ne("tag:yaml.org,2002:omap", {
|
|
1683
1683
|
kind: "sequence",
|
|
1684
|
-
resolve:
|
|
1685
|
-
construct:
|
|
1686
|
-
}),
|
|
1687
|
-
function
|
|
1684
|
+
resolve: gr,
|
|
1685
|
+
construct: yr
|
|
1686
|
+
}), mr = Object.prototype.toString;
|
|
1687
|
+
function hr(e) {
|
|
1688
1688
|
if (e === null)
|
|
1689
1689
|
return !0;
|
|
1690
1690
|
var t, n, i, a, o, r = e;
|
|
1691
1691
|
for (o = new Array(r.length), t = 0, n = r.length; t < n; t += 1) {
|
|
1692
|
-
if (i = r[t],
|
|
1692
|
+
if (i = r[t], mr.call(i) !== "[object Object]" || (a = Object.keys(i), a.length !== 1))
|
|
1693
1693
|
return !1;
|
|
1694
1694
|
o[t] = [a[0], i[a[0]]];
|
|
1695
1695
|
}
|
|
1696
1696
|
return !0;
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function vr(e) {
|
|
1699
1699
|
if (e === null)
|
|
1700
1700
|
return [];
|
|
1701
1701
|
var t, n, i, a, o, r = e;
|
|
@@ -1705,25 +1705,25 @@ function hr(e) {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
var $n = new ne("tag:yaml.org,2002:pairs", {
|
|
1707
1707
|
kind: "sequence",
|
|
1708
|
-
resolve:
|
|
1709
|
-
construct:
|
|
1710
|
-
}),
|
|
1711
|
-
function
|
|
1708
|
+
resolve: hr,
|
|
1709
|
+
construct: vr
|
|
1710
|
+
}), br = Object.prototype.hasOwnProperty;
|
|
1711
|
+
function kr(e) {
|
|
1712
1712
|
if (e === null)
|
|
1713
1713
|
return !0;
|
|
1714
1714
|
var t, n = e;
|
|
1715
1715
|
for (t in n)
|
|
1716
|
-
if (
|
|
1716
|
+
if (br.call(n, t) && n[t] !== null)
|
|
1717
1717
|
return !1;
|
|
1718
1718
|
return !0;
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function Cr(e) {
|
|
1721
1721
|
return e !== null ? e : {};
|
|
1722
1722
|
}
|
|
1723
1723
|
var On = new ne("tag:yaml.org,2002:set", {
|
|
1724
1724
|
kind: "mapping",
|
|
1725
|
-
resolve:
|
|
1726
|
-
construct:
|
|
1725
|
+
resolve: kr,
|
|
1726
|
+
construct: Cr
|
|
1727
1727
|
}), kt = An.extend({
|
|
1728
1728
|
implicit: [
|
|
1729
1729
|
_n,
|
|
@@ -1735,7 +1735,7 @@ var On = new ne("tag:yaml.org,2002:set", {
|
|
|
1735
1735
|
$n,
|
|
1736
1736
|
On
|
|
1737
1737
|
]
|
|
1738
|
-
}), we = Object.prototype.hasOwnProperty, Je = 1, Mn = 2, En = 3, Ze = 4, ot = 1,
|
|
1738
|
+
}), we = Object.prototype.hasOwnProperty, Je = 1, Mn = 2, En = 3, Ze = 4, ot = 1, wr = 2, Bt = 3, Sr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ar = /[\x85\u2028\u2029]/, xr = /[,\[\]\{\}]/, Fn = /^(?:!|!!|![a-z\-]+!)$/i, qn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1739
1739
|
function Lt(e) {
|
|
1740
1740
|
return Object.prototype.toString.call(e);
|
|
1741
1741
|
}
|
|
@@ -1751,21 +1751,21 @@ function re(e) {
|
|
|
1751
1751
|
function je(e) {
|
|
1752
1752
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function Ir(e) {
|
|
1755
1755
|
var t;
|
|
1756
1756
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function _r(e) {
|
|
1759
1759
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function Nr(e) {
|
|
1762
1762
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1763
1763
|
}
|
|
1764
1764
|
function Ut(e) {
|
|
1765
1765
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1766
1766
|
` : 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" : "";
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function jr(e) {
|
|
1769
1769
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1770
1770
|
(e - 65536 >> 10) + 55296,
|
|
1771
1771
|
(e - 65536 & 1023) + 56320
|
|
@@ -1774,7 +1774,7 @@ function Nr(e) {
|
|
|
1774
1774
|
var Kn = new Array(256), Bn = new Array(256);
|
|
1775
1775
|
for (var _e = 0; _e < 256; _e++)
|
|
1776
1776
|
Kn[_e] = Ut(_e) ? 1 : 0, Bn[_e] = Ut(_e);
|
|
1777
|
-
function
|
|
1777
|
+
function Tr(e, t) {
|
|
1778
1778
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || kt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1779
1779
|
}
|
|
1780
1780
|
function Ln(e, t) {
|
|
@@ -1786,7 +1786,7 @@ function Ln(e, t) {
|
|
|
1786
1786
|
line: e.line,
|
|
1787
1787
|
column: e.position - e.lineStart
|
|
1788
1788
|
};
|
|
1789
|
-
return n.snippet =
|
|
1789
|
+
return n.snippet = Ei(n), new ie(t, n);
|
|
1790
1790
|
}
|
|
1791
1791
|
function I(e, t) {
|
|
1792
1792
|
throw Ln(e, t);
|
|
@@ -1817,7 +1817,7 @@ function ke(e, t, n, i) {
|
|
|
1817
1817
|
for (a = 0, o = l.length; a < o; a += 1)
|
|
1818
1818
|
r = l.charCodeAt(a), r === 9 || 32 <= r && r <= 1114111 || I(e, "expected valid JSON character");
|
|
1819
1819
|
else
|
|
1820
|
-
|
|
1820
|
+
Sr.test(l) && I(e, "the stream contains non-printable characters");
|
|
1821
1821
|
e.result += l;
|
|
1822
1822
|
}
|
|
1823
1823
|
}
|
|
@@ -1874,7 +1874,7 @@ function wt(e, t) {
|
|
|
1874
1874
|
t === 1 ? e.result += " " : t > 1 && (e.result += Q.repeat(`
|
|
1875
1875
|
`, t - 1));
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function $r(e, t, n) {
|
|
1878
1878
|
var i, a, o, r, l, s, c, d, u = e.kind, m = e.result, g;
|
|
1879
1879
|
if (g = e.input.charCodeAt(e.position), re(g) || je(g) || g === 35 || g === 38 || g === 42 || g === 33 || g === 124 || g === 62 || g === 39 || g === 34 || g === 37 || g === 64 || g === 96 || (g === 63 || g === 45) && (a = e.input.charCodeAt(e.position + 1), re(a) || n && je(a)))
|
|
1880
1880
|
return !1;
|
|
@@ -1901,7 +1901,7 @@ function Tr(e, t, n) {
|
|
|
1901
1901
|
}
|
|
1902
1902
|
return ke(e, o, r, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1904
|
+
function Or(e, t) {
|
|
1905
1905
|
var n, i, a;
|
|
1906
1906
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1907
1907
|
return !1;
|
|
@@ -1915,7 +1915,7 @@ function $r(e, t) {
|
|
|
1915
1915
|
fe(n) ? (ke(e, i, a, !0), wt(e, G(e, !1, t)), i = a = e.position) : e.position === e.lineStart && Xe(e) ? I(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
|
|
1916
1916
|
I(e, "unexpected end of the stream within a single quoted scalar");
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function Mr(e, t) {
|
|
1919
1919
|
var n, i, a, o, r, l;
|
|
1920
1920
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1921
1921
|
return !1;
|
|
@@ -1927,10 +1927,10 @@ function Or(e, t) {
|
|
|
1927
1927
|
G(e, !1, t);
|
|
1928
1928
|
else if (l < 256 && Kn[l])
|
|
1929
1929
|
e.result += Bn[l], e.position++;
|
|
1930
|
-
else if ((r =
|
|
1930
|
+
else if ((r = _r(l)) > 0) {
|
|
1931
1931
|
for (a = r, o = 0; a > 0; a--)
|
|
1932
|
-
l = e.input.charCodeAt(++e.position), (r =
|
|
1933
|
-
e.result +=
|
|
1932
|
+
l = e.input.charCodeAt(++e.position), (r = Ir(l)) >= 0 ? o = (o << 4) + r : I(e, "expected hexadecimal character");
|
|
1933
|
+
e.result += jr(o), e.position++;
|
|
1934
1934
|
} else
|
|
1935
1935
|
I(e, "unknown escape sequence");
|
|
1936
1936
|
n = i = e.position;
|
|
@@ -1939,7 +1939,7 @@ function Or(e, t) {
|
|
|
1939
1939
|
}
|
|
1940
1940
|
I(e, "unexpected end of the stream within a double quoted scalar");
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function Er(e, t) {
|
|
1943
1943
|
var n = !0, i, a, o, r = e.tag, l, s = e.anchor, c, d, u, m, g, C = /* @__PURE__ */ Object.create(null), x, k, F, w;
|
|
1944
1944
|
if (w = e.input.charCodeAt(e.position), w === 91)
|
|
1945
1945
|
d = 93, g = !1, l = [];
|
|
@@ -1954,7 +1954,7 @@ function Mr(e, t) {
|
|
|
1954
1954
|
}
|
|
1955
1955
|
I(e, "unexpected end of the stream within a flow collection");
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1957
|
+
function Fr(e, t) {
|
|
1958
1958
|
var n, i, a = ot, o = !1, r = !1, l = t, s = 0, c = !1, d, u;
|
|
1959
1959
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1960
1960
|
i = !1;
|
|
@@ -1964,8 +1964,8 @@ function Er(e, t) {
|
|
|
1964
1964
|
return !1;
|
|
1965
1965
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1966
1966
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1967
|
-
ot === a ? a = u === 43 ? Bt :
|
|
1968
|
-
else if ((d =
|
|
1967
|
+
ot === a ? a = u === 43 ? Bt : wr : I(e, "repeat of a chomping mode identifier");
|
|
1968
|
+
else if ((d = Nr(u)) >= 0)
|
|
1969
1969
|
d === 0 ? I(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : r ? I(e, "repeat of an indentation width identifier") : (l = t + d - 1, r = !0);
|
|
1970
1970
|
else
|
|
1971
1971
|
break;
|
|
@@ -2017,7 +2017,7 @@ function Dt(e, t) {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
return l ? (e.tag = i, e.anchor = a, e.kind = "sequence", e.result = o, !0) : !1;
|
|
2019
2019
|
}
|
|
2020
|
-
function
|
|
2020
|
+
function qr(e, t, n) {
|
|
2021
2021
|
var i, a, o, r, l, s, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), g = null, C = null, x = null, k = !1, F = !1, w;
|
|
2022
2022
|
if (e.firstTabInLine !== -1)
|
|
2023
2023
|
return !1;
|
|
@@ -2048,7 +2048,7 @@ function Fr(e, t, n) {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
return k && Te(e, u, m, g, C, null, r, l, s), F && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), F;
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2051
|
+
function Kr(e) {
|
|
2052
2052
|
var t, n = !1, i = !1, a, o, r;
|
|
2053
2053
|
if (r = e.input.charCodeAt(e.position), r !== 33)
|
|
2054
2054
|
return !1;
|
|
@@ -2060,7 +2060,7 @@ function qr(e) {
|
|
|
2060
2060
|
} else {
|
|
2061
2061
|
for (; r !== 0 && !re(r); )
|
|
2062
2062
|
r === 33 && (i ? I(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(t - 1, e.position + 1), Fn.test(a) || I(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), r = e.input.charCodeAt(++e.position);
|
|
2063
|
-
o = e.input.slice(t, e.position),
|
|
2063
|
+
o = e.input.slice(t, e.position), xr.test(o) && I(e, "tag suffix cannot contain flow indicator characters");
|
|
2064
2064
|
}
|
|
2065
2065
|
o && !qn.test(o) && I(e, "tag name cannot contain such characters: " + o);
|
|
2066
2066
|
try {
|
|
@@ -2070,7 +2070,7 @@ function qr(e) {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
return n ? e.tag = o : we.call(e.tagMap, a) ? e.tag = e.tagMap[a] + o : a === "!" ? e.tag = "!" + o : a === "!!" ? e.tag = "tag:yaml.org,2002:" + o : I(e, 'undeclared tag handle "' + a + '"'), !0;
|
|
2072
2072
|
}
|
|
2073
|
-
function
|
|
2073
|
+
function Br(e) {
|
|
2074
2074
|
var t, n;
|
|
2075
2075
|
if (n = e.input.charCodeAt(e.position), n !== 38)
|
|
2076
2076
|
return !1;
|
|
@@ -2078,7 +2078,7 @@ function Kr(e) {
|
|
|
2078
2078
|
n = e.input.charCodeAt(++e.position);
|
|
2079
2079
|
return e.position === t && I(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
2080
2080
|
}
|
|
2081
|
-
function
|
|
2081
|
+
function Lr(e) {
|
|
2082
2082
|
var t, n, i;
|
|
2083
2083
|
if (i = e.input.charCodeAt(e.position), i !== 42)
|
|
2084
2084
|
return !1;
|
|
@@ -2089,9 +2089,9 @@ function Br(e) {
|
|
|
2089
2089
|
function Oe(e, t, n, i, a) {
|
|
2090
2090
|
var o, r, l, s = 1, c = !1, d = !1, u, m, g, C, x, k;
|
|
2091
2091
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = r = l = Ze === n || En === n, i && G(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
2092
|
-
for (;
|
|
2092
|
+
for (; Kr(e) || Br(e); )
|
|
2093
2093
|
G(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
2094
|
-
if (l && (l = c || a), (s === 1 || Ze === n) && (Je === n || Mn === n ? x = t : x = t + 1, k = e.position - e.lineStart, s === 1 ? l && (Dt(e, k) ||
|
|
2094
|
+
if (l && (l = c || a), (s === 1 || Ze === n) && (Je === n || Mn === n ? x = t : x = t + 1, k = e.position - e.lineStart, s === 1 ? l && (Dt(e, k) || qr(e, k, x)) || Er(e, x) ? d = !0 : (r && Fr(e, x) || Or(e, x) || Mr(e, x) ? d = !0 : Lr(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : $r(e, x, Je === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Dt(e, k))), e.tag === null)
|
|
2095
2095
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2096
2096
|
else if (e.tag === "?") {
|
|
2097
2097
|
for (e.result !== null && e.kind !== "scalar" && I(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
|
|
@@ -2112,7 +2112,7 @@ function Oe(e, t, n, i, a) {
|
|
|
2112
2112
|
}
|
|
2113
2113
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2114
2114
|
}
|
|
2115
|
-
function
|
|
2115
|
+
function Ur(e) {
|
|
2116
2116
|
var t = e.position, n, i, a, o = !1, r;
|
|
2117
2117
|
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 && (G(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37)); ) {
|
|
2118
2118
|
for (o = !0, r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !re(r); )
|
|
@@ -2134,7 +2134,7 @@ function Lr(e) {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
r !== 0 && Ct(e), we.call(Rt, i) ? Rt[i](e, i, a) : We(e, 'unknown document directive "' + i + '"');
|
|
2136
2136
|
}
|
|
2137
|
-
if (G(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, G(e, !0, -1)) : o && I(e, "directives end mark is expected"), Oe(e, e.lineIndent - 1, Ze, !1, !0), G(e, !0, -1), e.checkLineBreaks &&
|
|
2137
|
+
if (G(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, G(e, !0, -1)) : o && I(e, "directives end mark is expected"), Oe(e, e.lineIndent - 1, Ze, !1, !0), G(e, !0, -1), e.checkLineBreaks && Ar.test(e.input.slice(t, e.position)) && We(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Xe(e)) {
|
|
2138
2138
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, G(e, !0, -1));
|
|
2139
2139
|
return;
|
|
2140
2140
|
}
|
|
@@ -2146,14 +2146,14 @@ function Lr(e) {
|
|
|
2146
2146
|
function Un(e, t) {
|
|
2147
2147
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2148
2148
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2149
|
-
var n = new
|
|
2149
|
+
var n = new Tr(e, t), i = e.indexOf("\0");
|
|
2150
2150
|
for (i !== -1 && (n.position = i, I(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
2151
2151
|
n.lineIndent += 1, n.position += 1;
|
|
2152
2152
|
for (; n.position < n.length - 1; )
|
|
2153
|
-
|
|
2153
|
+
Ur(n);
|
|
2154
2154
|
return n.documents;
|
|
2155
2155
|
}
|
|
2156
|
-
function
|
|
2156
|
+
function Rr(e, t, n) {
|
|
2157
2157
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
2158
2158
|
var i = Un(e, n);
|
|
2159
2159
|
if (typeof t != "function")
|
|
@@ -2161,7 +2161,7 @@ function Ur(e, t, n) {
|
|
|
2161
2161
|
for (var a = 0, o = i.length; a < o; a += 1)
|
|
2162
2162
|
t(i[a]);
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2164
|
+
function Vr(e, t) {
|
|
2165
2165
|
var n = Un(e, t);
|
|
2166
2166
|
if (n.length !== 0) {
|
|
2167
2167
|
if (n.length === 1)
|
|
@@ -2169,10 +2169,10 @@ function Rr(e, t) {
|
|
|
2169
2169
|
throw new ie("expected a single document in the stream, but found more");
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
|
-
var
|
|
2173
|
-
loadAll:
|
|
2174
|
-
load:
|
|
2175
|
-
}, Vn = Object.prototype.toString, Dn = Object.prototype.hasOwnProperty, St = 65279,
|
|
2172
|
+
var Dr = Rr, Pr = Vr, Rn = {
|
|
2173
|
+
loadAll: Dr,
|
|
2174
|
+
load: Pr
|
|
2175
|
+
}, Vn = Object.prototype.toString, Dn = Object.prototype.hasOwnProperty, St = 65279, zr = 9, Le = 10, Hr = 13, Jr = 32, Zr = 33, Wr = 34, ut = 35, Yr = 37, Gr = 38, Qr = 39, Xr = 42, Pn = 44, eo = 45, Ye = 58, to = 61, no = 62, ao = 63, io = 64, zn = 91, Hn = 93, ro = 96, Jn = 123, oo = 124, Zn = 125, ae = {};
|
|
2176
2176
|
ae[0] = "\\0";
|
|
2177
2177
|
ae[7] = "\\a";
|
|
2178
2178
|
ae[8] = "\\b";
|
|
@@ -2188,7 +2188,7 @@ ae[133] = "\\N";
|
|
|
2188
2188
|
ae[160] = "\\_";
|
|
2189
2189
|
ae[8232] = "\\L";
|
|
2190
2190
|
ae[8233] = "\\P";
|
|
2191
|
-
var
|
|
2191
|
+
var lo = [
|
|
2192
2192
|
"y",
|
|
2193
2193
|
"Y",
|
|
2194
2194
|
"yes",
|
|
@@ -2205,8 +2205,8 @@ var oo = [
|
|
|
2205
2205
|
"off",
|
|
2206
2206
|
"Off",
|
|
2207
2207
|
"OFF"
|
|
2208
|
-
],
|
|
2209
|
-
function
|
|
2208
|
+
], so = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2209
|
+
function co(e, t) {
|
|
2210
2210
|
var n, i, a, o, r, l, s;
|
|
2211
2211
|
if (t === null)
|
|
2212
2212
|
return {};
|
|
@@ -2214,7 +2214,7 @@ function so(e, t) {
|
|
|
2214
2214
|
r = i[a], l = String(t[r]), r.slice(0, 2) === "!!" && (r = "tag:yaml.org,2002:" + r.slice(2)), s = e.compiledTypeMap.fallback[r], s && Dn.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[r] = l;
|
|
2215
2215
|
return n;
|
|
2216
2216
|
}
|
|
2217
|
-
function
|
|
2217
|
+
function uo(e) {
|
|
2218
2218
|
var t, n, i;
|
|
2219
2219
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
2220
2220
|
n = "x", i = 2;
|
|
@@ -2226,9 +2226,9 @@ function co(e) {
|
|
|
2226
2226
|
throw new ie("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2227
2227
|
return "\\" + n + Q.repeat("0", i - t.length) + t;
|
|
2228
2228
|
}
|
|
2229
|
-
var
|
|
2230
|
-
function
|
|
2231
|
-
this.schema = e.schema || kt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Q.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2229
|
+
var po = 1, Ue = 2;
|
|
2230
|
+
function fo(e) {
|
|
2231
|
+
this.schema = e.schema || kt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Q.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = co(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 === '"' ? Ue : po, 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;
|
|
2232
2232
|
}
|
|
2233
2233
|
function Pt(e, t) {
|
|
2234
2234
|
for (var n = Q.repeat(" ", t), i = 0, a = -1, o = "", r, l = e.length; i < l; )
|
|
@@ -2241,7 +2241,7 @@ function dt(e, t) {
|
|
|
2241
2241
|
return `
|
|
2242
2242
|
` + Q.repeat(" ", e.indent * t);
|
|
2243
2243
|
}
|
|
2244
|
-
function
|
|
2244
|
+
function go(e, t) {
|
|
2245
2245
|
var n, i, a;
|
|
2246
2246
|
for (n = 0, i = e.implicitTypes.length; n < i; n += 1)
|
|
2247
2247
|
if (a = e.implicitTypes[n], a.resolve(t))
|
|
@@ -2249,13 +2249,13 @@ function fo(e, t) {
|
|
|
2249
2249
|
return !1;
|
|
2250
2250
|
}
|
|
2251
2251
|
function Ge(e) {
|
|
2252
|
-
return e ===
|
|
2252
|
+
return e === Jr || e === zr;
|
|
2253
2253
|
}
|
|
2254
2254
|
function Re(e) {
|
|
2255
2255
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== St || 65536 <= e && e <= 1114111;
|
|
2256
2256
|
}
|
|
2257
2257
|
function zt(e) {
|
|
2258
|
-
return Re(e) && e !== St && e !==
|
|
2258
|
+
return Re(e) && e !== St && e !== Hr && e !== Le;
|
|
2259
2259
|
}
|
|
2260
2260
|
function Ht(e, t, n) {
|
|
2261
2261
|
var i = zt(e), a = i && !Ge(e);
|
|
@@ -2267,10 +2267,10 @@ function Ht(e, t, n) {
|
|
|
2267
2267
|
) : i && e !== Pn && e !== zn && e !== Hn && e !== Jn && e !== Zn) && e !== ut && !(t === Ye && !a) || zt(t) && !Ge(t) && e === ut || t === Ye && a
|
|
2268
2268
|
);
|
|
2269
2269
|
}
|
|
2270
|
-
function go(e) {
|
|
2271
|
-
return Re(e) && e !== St && !Ge(e) && e !== Xr && e !== no && e !== Ye && e !== Pn && e !== zn && e !== Hn && e !== Jn && e !== Zn && e !== ut && e !== Yr && e !== Qr && e !== Jr && e !== ro && e !== eo && e !== to && e !== Gr && e !== Zr && e !== Wr && e !== ao && e !== io;
|
|
2272
|
-
}
|
|
2273
2270
|
function yo(e) {
|
|
2271
|
+
return Re(e) && e !== St && !Ge(e) && e !== eo && e !== ao && e !== Ye && e !== Pn && e !== zn && e !== Hn && e !== Jn && e !== Zn && e !== ut && e !== Gr && e !== Xr && e !== Zr && e !== oo && e !== to && e !== no && e !== Qr && e !== Wr && e !== Yr && e !== io && e !== ro;
|
|
2272
|
+
}
|
|
2273
|
+
function mo(e) {
|
|
2274
2274
|
return !Ge(e) && e !== Ye;
|
|
2275
2275
|
}
|
|
2276
2276
|
function Ke(e, t) {
|
|
@@ -2282,8 +2282,8 @@ function Wn(e) {
|
|
|
2282
2282
|
return t.test(e);
|
|
2283
2283
|
}
|
|
2284
2284
|
var Yn = 1, pt = 2, Gn = 3, Qn = 4, Ne = 5;
|
|
2285
|
-
function
|
|
2286
|
-
var s, c = 0, d = null, u = !1, m = !1, g = i !== -1, C = -1, x =
|
|
2285
|
+
function ho(e, t, n, i, a, o, r, l) {
|
|
2286
|
+
var s, c = 0, d = null, u = !1, m = !1, g = i !== -1, C = -1, x = yo(Ke(e, 0)) && mo(Ke(e, e.length - 1));
|
|
2287
2287
|
if (t || r)
|
|
2288
2288
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2289
2289
|
if (c = Ke(e, s), !Re(c))
|
|
@@ -2303,17 +2303,17 @@ function mo(e, t, n, i, a, o, r, l) {
|
|
|
2303
2303
|
}
|
|
2304
2304
|
return !u && !m ? x && !r && !a(e) ? Yn : o === Ue ? Ne : pt : n > 9 && Wn(e) ? Ne : r ? o === Ue ? Ne : pt : m ? Qn : Gn;
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2306
|
+
function vo(e, t, n, i, a) {
|
|
2307
2307
|
e.dump = function() {
|
|
2308
2308
|
if (t.length === 0)
|
|
2309
2309
|
return e.quotingType === Ue ? '""' : "''";
|
|
2310
|
-
if (!e.noCompatMode && (
|
|
2310
|
+
if (!e.noCompatMode && (lo.indexOf(t) !== -1 || so.test(t)))
|
|
2311
2311
|
return e.quotingType === Ue ? '"' + t + '"' : "'" + t + "'";
|
|
2312
2312
|
var o = e.indent * Math.max(1, n), r = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = i || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2313
2313
|
function s(c) {
|
|
2314
|
-
return
|
|
2314
|
+
return go(e, c);
|
|
2315
2315
|
}
|
|
2316
|
-
switch (
|
|
2316
|
+
switch (ho(
|
|
2317
2317
|
t,
|
|
2318
2318
|
l,
|
|
2319
2319
|
e.indent,
|
|
@@ -2330,9 +2330,9 @@ function ho(e, t, n, i, a) {
|
|
|
2330
2330
|
case Gn:
|
|
2331
2331
|
return "|" + Jt(t, e.indent) + Zt(Pt(t, o));
|
|
2332
2332
|
case Qn:
|
|
2333
|
-
return ">" + Jt(t, e.indent) + Zt(Pt(
|
|
2333
|
+
return ">" + Jt(t, e.indent) + Zt(Pt(bo(t, r), o));
|
|
2334
2334
|
case Ne:
|
|
2335
|
-
return '"' +
|
|
2335
|
+
return '"' + ko(t) + '"';
|
|
2336
2336
|
default:
|
|
2337
2337
|
throw new ie("impossible error: invalid scalar style");
|
|
2338
2338
|
}
|
|
@@ -2350,7 +2350,7 @@ function Zt(e) {
|
|
|
2350
2350
|
return e[e.length - 1] === `
|
|
2351
2351
|
` ? e.slice(0, -1) : e;
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function bo(e, t) {
|
|
2354
2354
|
for (var n = /(\n+)([^\n]*)/g, i = function() {
|
|
2355
2355
|
var c = e.indexOf(`
|
|
2356
2356
|
`);
|
|
@@ -2373,30 +2373,30 @@ function Wt(e, t) {
|
|
|
2373
2373
|
`, e.length - a > t && r > a ? s += e.slice(a, r) + `
|
|
2374
2374
|
` + e.slice(r + 1) : s += e.slice(a), s.slice(1);
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2376
|
+
function ko(e) {
|
|
2377
2377
|
for (var t = "", n = 0, i, a = 0; a < e.length; n >= 65536 ? a += 2 : a++)
|
|
2378
|
-
n = Ke(e, a), i = ae[n], !i && Re(n) ? (t += e[a], n >= 65536 && (t += e[a + 1])) : t += i ||
|
|
2378
|
+
n = Ke(e, a), i = ae[n], !i && Re(n) ? (t += e[a], n >= 65536 && (t += e[a + 1])) : t += i || uo(n);
|
|
2379
2379
|
return t;
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2381
|
+
function Co(e, t, n) {
|
|
2382
2382
|
var i = "", a = e.tag, o, r, l;
|
|
2383
2383
|
for (o = 0, r = n.length; o < r; o += 1)
|
|
2384
|
-
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (
|
|
2384
|
+
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (ye(e, t, l, !1, !1) || typeof l > "u" && ye(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
2385
2385
|
e.tag = a, e.dump = "[" + i + "]";
|
|
2386
2386
|
}
|
|
2387
2387
|
function Yt(e, t, n, i) {
|
|
2388
2388
|
var a = "", o = e.tag, r, l, s;
|
|
2389
2389
|
for (r = 0, l = n.length; r < l; r += 1)
|
|
2390
|
-
s = n[r], e.replacer && (s = e.replacer.call(n, String(r), s)), (
|
|
2390
|
+
s = n[r], e.replacer && (s = e.replacer.call(n, String(r), s)), (ye(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ye(e, t + 1, null, !0, !0, !1, !0)) && ((!i || a !== "") && (a += dt(e, t)), e.dump && Le === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
|
|
2391
2391
|
e.tag = o, e.dump = a || "[]";
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2393
|
+
function wo(e, t, n) {
|
|
2394
2394
|
var i = "", a = e.tag, o = Object.keys(n), r, l, s, c, d;
|
|
2395
2395
|
for (r = 0, l = o.length; r < l; r += 1)
|
|
2396
|
-
d = "", i !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[r], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)),
|
|
2396
|
+
d = "", i !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[r], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)), ye(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ye(e, t, c, !1, !1) && (d += e.dump, i += d));
|
|
2397
2397
|
e.tag = a, e.dump = "{" + i + "}";
|
|
2398
2398
|
}
|
|
2399
|
-
function
|
|
2399
|
+
function So(e, t, n, i) {
|
|
2400
2400
|
var a = "", o = e.tag, r = Object.keys(n), l, s, c, d, u, m;
|
|
2401
2401
|
if (e.sortKeys === !0)
|
|
2402
2402
|
r.sort();
|
|
@@ -2405,7 +2405,7 @@ function wo(e, t, n, i) {
|
|
|
2405
2405
|
else if (e.sortKeys)
|
|
2406
2406
|
throw new ie("sortKeys must be a boolean or a function");
|
|
2407
2407
|
for (l = 0, s = r.length; l < s; l += 1)
|
|
2408
|
-
m = "", (!i || a !== "") && (m += dt(e, t)), c = r[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)),
|
|
2408
|
+
m = "", (!i || a !== "") && (m += dt(e, t)), c = r[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), ye(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Le === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += dt(e, t)), ye(e, t + 1, d, !0, u) && (e.dump && Le === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, a += m));
|
|
2409
2409
|
e.tag = o, e.dump = a || "{}";
|
|
2410
2410
|
}
|
|
2411
2411
|
function Gt(e, t, n) {
|
|
@@ -2425,7 +2425,7 @@ function Gt(e, t, n) {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
return !1;
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2428
|
+
function ye(e, t, n, i, a, o, r) {
|
|
2429
2429
|
e.tag = null, e.dump = n, Gt(e, n, !1) || Gt(e, n, !0);
|
|
2430
2430
|
var l = Vn.call(e.dump), s = i, c;
|
|
2431
2431
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
@@ -2434,11 +2434,11 @@ function me(e, t, n, i, a, o, r) {
|
|
|
2434
2434
|
e.dump = "*ref_" + u;
|
|
2435
2435
|
else {
|
|
2436
2436
|
if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2437
|
-
i && Object.keys(e.dump).length !== 0 ? (
|
|
2437
|
+
i && Object.keys(e.dump).length !== 0 ? (So(e, t, e.dump, a), m && (e.dump = "&ref_" + u + e.dump)) : (wo(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2438
2438
|
else if (l === "[object Array]")
|
|
2439
|
-
i && e.dump.length !== 0 ? (e.noArrayIndent && !r && t > 0 ? Yt(e, t - 1, e.dump, a) : Yt(e, t, e.dump, a), m && (e.dump = "&ref_" + u + e.dump)) : (
|
|
2439
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !r && t > 0 ? Yt(e, t - 1, e.dump, a) : Yt(e, t, e.dump, a), m && (e.dump = "&ref_" + u + e.dump)) : (Co(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2440
2440
|
else if (l === "[object String]")
|
|
2441
|
-
e.tag !== "?" &&
|
|
2441
|
+
e.tag !== "?" && vo(e, e.dump, t, o, s);
|
|
2442
2442
|
else {
|
|
2443
2443
|
if (l === "[object Undefined]" || e.skipInvalid)
|
|
2444
2444
|
return !1;
|
|
@@ -2450,7 +2450,7 @@ function me(e, t, n, i, a, o, r) {
|
|
|
2450
2450
|
}
|
|
2451
2451
|
return !0;
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2453
|
+
function Ao(e, t) {
|
|
2454
2454
|
var n = [], i = [], a, o;
|
|
2455
2455
|
for (ft(e, n, i), a = 0, o = i.length; a < o; a += 1)
|
|
2456
2456
|
t.duplicates.push(n[i[a]]);
|
|
@@ -2468,23 +2468,23 @@ function ft(e, t, n) {
|
|
|
2468
2468
|
for (i = Object.keys(e), a = 0, o = i.length; a < o; a += 1)
|
|
2469
2469
|
ft(e[i[a]], t, n);
|
|
2470
2470
|
}
|
|
2471
|
-
function
|
|
2471
|
+
function xo(e, t) {
|
|
2472
2472
|
t = t || {};
|
|
2473
|
-
var n = new
|
|
2474
|
-
n.noRefs ||
|
|
2473
|
+
var n = new fo(t);
|
|
2474
|
+
n.noRefs || Ao(e, n);
|
|
2475
2475
|
var i = e;
|
|
2476
|
-
return n.replacer && (i = n.replacer.call({ "": i }, "", i)),
|
|
2476
|
+
return n.replacer && (i = n.replacer.call({ "": i }, "", i)), ye(n, 0, i, !0, !0) ? n.dump + `
|
|
2477
2477
|
` : "";
|
|
2478
2478
|
}
|
|
2479
|
-
var
|
|
2480
|
-
dump:
|
|
2479
|
+
var Io = xo, _o = {
|
|
2480
|
+
dump: Io
|
|
2481
2481
|
};
|
|
2482
2482
|
function At(e, t) {
|
|
2483
2483
|
return function() {
|
|
2484
2484
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2485
2485
|
};
|
|
2486
2486
|
}
|
|
2487
|
-
var
|
|
2487
|
+
var No = ne, jo = gn, To = vn, $o = Sn, Oo = An, Mo = kt, Eo = Rn.load, Fo = Rn.loadAll, qo = _o.dump, Ko = ie, Bo = {
|
|
2488
2488
|
binary: jn,
|
|
2489
2489
|
float: wn,
|
|
2490
2490
|
map: hn,
|
|
@@ -2498,23 +2498,23 @@ var _o = ne, No = gn, jo = vn, To = Sn, $o = An, Oo = kt, Mo = Rn.load, Eo = Rn.
|
|
|
2498
2498
|
omap: Tn,
|
|
2499
2499
|
seq: mn,
|
|
2500
2500
|
str: yn
|
|
2501
|
-
},
|
|
2502
|
-
Type:
|
|
2503
|
-
Schema:
|
|
2504
|
-
FAILSAFE_SCHEMA:
|
|
2505
|
-
JSON_SCHEMA:
|
|
2506
|
-
CORE_SCHEMA:
|
|
2507
|
-
DEFAULT_SCHEMA:
|
|
2508
|
-
load:
|
|
2509
|
-
loadAll:
|
|
2510
|
-
dump:
|
|
2511
|
-
YAMLException:
|
|
2512
|
-
types:
|
|
2513
|
-
safeLoad:
|
|
2514
|
-
safeLoadAll:
|
|
2515
|
-
safeDump:
|
|
2501
|
+
}, Lo = At("safeLoad", "load"), Uo = At("safeLoadAll", "loadAll"), Ro = At("safeDump", "dump"), Vo = {
|
|
2502
|
+
Type: No,
|
|
2503
|
+
Schema: jo,
|
|
2504
|
+
FAILSAFE_SCHEMA: To,
|
|
2505
|
+
JSON_SCHEMA: $o,
|
|
2506
|
+
CORE_SCHEMA: Oo,
|
|
2507
|
+
DEFAULT_SCHEMA: Mo,
|
|
2508
|
+
load: Eo,
|
|
2509
|
+
loadAll: Fo,
|
|
2510
|
+
dump: qo,
|
|
2511
|
+
YAMLException: Ko,
|
|
2512
|
+
types: Bo,
|
|
2513
|
+
safeLoad: Lo,
|
|
2514
|
+
safeLoadAll: Uo,
|
|
2515
|
+
safeDump: Ro
|
|
2516
2516
|
};
|
|
2517
|
-
const
|
|
2517
|
+
const Do = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
2518
2518
|
__name: "YamlCodeBlock",
|
|
2519
2519
|
props: {
|
|
2520
2520
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2526,11 +2526,11 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2526
2526
|
setup(e) {
|
|
2527
2527
|
const t = e, n = S(() => {
|
|
2528
2528
|
const i = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, a]) => a !== null && a !== "" && (Array.isArray(a) ? a.length !== 0 : !0)));
|
|
2529
|
-
return Object.keys(i).length === 0 && i.constructor === Object ? "" :
|
|
2529
|
+
return Object.keys(i).length === 0 && i.constructor === Object ? "" : Vo.dump(i).trim();
|
|
2530
2530
|
});
|
|
2531
2531
|
return (i, a) => {
|
|
2532
2532
|
const o = L("KCodeBlock");
|
|
2533
|
-
return y(), j("div",
|
|
2533
|
+
return y(), j("div", Do, [
|
|
2534
2534
|
t.yamlRecord ? (y(), U(o, {
|
|
2535
2535
|
key: 0,
|
|
2536
2536
|
id: "yaml-codeblock",
|
|
@@ -2541,13 +2541,13 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2541
2541
|
]);
|
|
2542
2542
|
};
|
|
2543
2543
|
}
|
|
2544
|
-
}),
|
|
2544
|
+
}), Po = {
|
|
2545
2545
|
key: 0,
|
|
2546
2546
|
class: "config-card-display-form"
|
|
2547
|
-
},
|
|
2547
|
+
}, zo = ["data-testid"], Ho = {
|
|
2548
2548
|
key: 0,
|
|
2549
2549
|
class: "config-card-prop-section-title"
|
|
2550
|
-
},
|
|
2550
|
+
}, Jo = /* @__PURE__ */ H({
|
|
2551
2551
|
__name: "ConfigCardDisplay",
|
|
2552
2552
|
props: {
|
|
2553
2553
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2593,13 +2593,13 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2593
2593
|
return delete r.created_at, delete r.updated_at, r;
|
|
2594
2594
|
});
|
|
2595
2595
|
return (r, l) => (y(), j(pe, null, [
|
|
2596
|
-
e.format === "structured" ? (y(), j("div",
|
|
2596
|
+
e.format === "structured" ? (y(), j("div", Po, [
|
|
2597
2597
|
(y(!0), j(pe, null, ce(e.propListTypes, (s) => (y(), j("div", {
|
|
2598
2598
|
key: `config-card-details-${s}-props`,
|
|
2599
2599
|
class: Ce(`config-card-details-${s}-props`),
|
|
2600
2600
|
"data-testid": `config-card-details-${s}-props`
|
|
2601
2601
|
}, [
|
|
2602
|
-
s !== "basic" ? (y(), j("div",
|
|
2602
|
+
s !== "basic" ? (y(), j("div", Ho, K(s === "advanced" ? b(i)("baseConfigCard.sections.advanced") : b(i)("baseConfigCard.sections.plugin")), 1)) : P("", !0),
|
|
2603
2603
|
(y(!0), j(pe, null, ce(e.propertyCollections[s], (c) => (y(), U(un, {
|
|
2604
2604
|
key: c.key,
|
|
2605
2605
|
item: c
|
|
@@ -2623,7 +2623,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2623
2623
|
key: "0"
|
|
2624
2624
|
} : void 0
|
|
2625
2625
|
]), 1032, ["item"]))), 128))
|
|
2626
|
-
], 10,
|
|
2626
|
+
], 10, zo))), 128))
|
|
2627
2627
|
])) : P("", !0),
|
|
2628
2628
|
e.format === "json" && t.record ? (y(), U(dn, {
|
|
2629
2629
|
key: 1,
|
|
@@ -2638,18 +2638,18 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2638
2638
|
}, null, 8, ["yaml-record"])) : P("", !0)
|
|
2639
2639
|
], 64));
|
|
2640
2640
|
}
|
|
2641
|
-
}),
|
|
2641
|
+
}), Zo = /* @__PURE__ */ ue(Jo, [["__scopeId", "data-v-147a2f70"]]), ge = "24px", Ve = (e, t) => {
|
|
2642
2642
|
const n = e.__vccOpts || e;
|
|
2643
2643
|
for (const [i, a] of t)
|
|
2644
2644
|
n[i] = a;
|
|
2645
2645
|
return n;
|
|
2646
|
-
},
|
|
2646
|
+
}, Wo = (e) => (Ee("data-v-1d2a8d30"), e = e(), Fe(), e), Yo = ["aria-hidden"], Go = {
|
|
2647
2647
|
key: 0,
|
|
2648
2648
|
"data-testid": "kui-icon-svg-title"
|
|
2649
|
-
},
|
|
2649
|
+
}, Qo = /* @__PURE__ */ Wo(() => /* @__PURE__ */ B("path", {
|
|
2650
2650
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2651
2651
|
fill: "currentColor"
|
|
2652
|
-
}, null, -1)),
|
|
2652
|
+
}, null, -1)), Xo = /* @__PURE__ */ H({
|
|
2653
2653
|
__name: "AddIcon",
|
|
2654
2654
|
props: {
|
|
2655
2655
|
/** The accessibility text provided to screen readers */
|
|
@@ -2718,7 +2718,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2718
2718
|
lineHeight: "0",
|
|
2719
2719
|
width: n.value
|
|
2720
2720
|
}));
|
|
2721
|
-
return (a, o) => (y(), U(
|
|
2721
|
+
return (a, o) => (y(), U(me(e.as), {
|
|
2722
2722
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2723
2723
|
class: "kui-icon add-icon",
|
|
2724
2724
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
@@ -2735,20 +2735,20 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2735
2735
|
width: "100%",
|
|
2736
2736
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2737
2737
|
}, [
|
|
2738
|
-
e.title ? (y(), j("title",
|
|
2739
|
-
|
|
2740
|
-
], 8,
|
|
2738
|
+
e.title ? (y(), j("title", Go, K(e.title), 1)) : P("", !0),
|
|
2739
|
+
Qo
|
|
2740
|
+
], 8, Yo))
|
|
2741
2741
|
]),
|
|
2742
2742
|
_: 1
|
|
2743
2743
|
}, 8, ["aria-hidden", "style"]));
|
|
2744
2744
|
}
|
|
2745
|
-
}),
|
|
2745
|
+
}), el = /* @__PURE__ */ Ve(Xo, [["__scopeId", "data-v-1d2a8d30"]]), tl = (e) => (Ee("data-v-929b4762"), e = e(), Fe(), e), nl = ["aria-hidden"], al = {
|
|
2746
2746
|
key: 0,
|
|
2747
2747
|
"data-testid": "kui-icon-svg-title"
|
|
2748
|
-
},
|
|
2748
|
+
}, il = /* @__PURE__ */ tl(() => /* @__PURE__ */ B("path", {
|
|
2749
2749
|
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",
|
|
2750
2750
|
fill: "currentColor"
|
|
2751
|
-
}, null, -1)),
|
|
2751
|
+
}, null, -1)), rl = /* @__PURE__ */ H({
|
|
2752
2752
|
__name: "BookIcon",
|
|
2753
2753
|
props: {
|
|
2754
2754
|
/** The accessibility text provided to screen readers */
|
|
@@ -2817,7 +2817,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2817
2817
|
lineHeight: "0",
|
|
2818
2818
|
width: n.value
|
|
2819
2819
|
}));
|
|
2820
|
-
return (a, o) => (y(), U(
|
|
2820
|
+
return (a, o) => (y(), U(me(e.as), {
|
|
2821
2821
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2822
2822
|
class: "kui-icon book-icon",
|
|
2823
2823
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -2834,20 +2834,20 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2834
2834
|
width: "100%",
|
|
2835
2835
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2836
2836
|
}, [
|
|
2837
|
-
e.title ? (y(), j("title",
|
|
2838
|
-
|
|
2839
|
-
], 8,
|
|
2837
|
+
e.title ? (y(), j("title", al, K(e.title), 1)) : P("", !0),
|
|
2838
|
+
il
|
|
2839
|
+
], 8, nl))
|
|
2840
2840
|
]),
|
|
2841
2841
|
_: 1
|
|
2842
2842
|
}, 8, ["aria-hidden", "style"]));
|
|
2843
2843
|
}
|
|
2844
|
-
}),
|
|
2844
|
+
}), ol = /* @__PURE__ */ Ve(rl, [["__scopeId", "data-v-929b4762"]]), ll = (e) => (Ee("data-v-219f8484"), e = e(), Fe(), e), sl = ["aria-hidden"], cl = {
|
|
2845
2845
|
key: 0,
|
|
2846
2846
|
"data-testid": "kui-icon-svg-title"
|
|
2847
|
-
},
|
|
2847
|
+
}, ul = /* @__PURE__ */ ll(() => /* @__PURE__ */ B("path", {
|
|
2848
2848
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2849
2849
|
fill: "currentColor"
|
|
2850
|
-
}, null, -1)),
|
|
2850
|
+
}, null, -1)), dl = /* @__PURE__ */ H({
|
|
2851
2851
|
__name: "ChevronDownIcon",
|
|
2852
2852
|
props: {
|
|
2853
2853
|
/** The accessibility text provided to screen readers */
|
|
@@ -2916,7 +2916,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2916
2916
|
lineHeight: "0",
|
|
2917
2917
|
width: n.value
|
|
2918
2918
|
}));
|
|
2919
|
-
return (a, o) => (y(), U(
|
|
2919
|
+
return (a, o) => (y(), U(me(e.as), {
|
|
2920
2920
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2921
2921
|
class: "kui-icon chevron-down-icon",
|
|
2922
2922
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
@@ -2933,20 +2933,20 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
2933
2933
|
width: "100%",
|
|
2934
2934
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2935
2935
|
}, [
|
|
2936
|
-
e.title ? (y(), j("title",
|
|
2937
|
-
|
|
2938
|
-
], 8,
|
|
2936
|
+
e.title ? (y(), j("title", cl, K(e.title), 1)) : P("", !0),
|
|
2937
|
+
ul
|
|
2938
|
+
], 8, sl))
|
|
2939
2939
|
]),
|
|
2940
2940
|
_: 1
|
|
2941
2941
|
}, 8, ["aria-hidden", "style"]));
|
|
2942
2942
|
}
|
|
2943
|
-
}),
|
|
2943
|
+
}), pl = /* @__PURE__ */ Ve(dl, [["__scopeId", "data-v-219f8484"]]), fl = (e) => (Ee("data-v-ed11facd"), e = e(), Fe(), e), gl = ["aria-hidden"], yl = {
|
|
2944
2944
|
key: 0,
|
|
2945
2945
|
"data-testid": "kui-icon-svg-title"
|
|
2946
|
-
},
|
|
2946
|
+
}, ml = /* @__PURE__ */ fl(() => /* @__PURE__ */ B("path", {
|
|
2947
2947
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
2948
2948
|
fill: "currentColor"
|
|
2949
|
-
}, null, -1)),
|
|
2949
|
+
}, null, -1)), hl = /* @__PURE__ */ H({
|
|
2950
2950
|
__name: "CloseIcon",
|
|
2951
2951
|
props: {
|
|
2952
2952
|
/** The accessibility text provided to screen readers */
|
|
@@ -3015,7 +3015,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3015
3015
|
lineHeight: "0",
|
|
3016
3016
|
width: n.value
|
|
3017
3017
|
}));
|
|
3018
|
-
return (a, o) => (y(), U(
|
|
3018
|
+
return (a, o) => (y(), U(me(e.as), {
|
|
3019
3019
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3020
3020
|
class: "kui-icon close-icon",
|
|
3021
3021
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
@@ -3032,20 +3032,20 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3032
3032
|
width: "100%",
|
|
3033
3033
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3034
3034
|
}, [
|
|
3035
|
-
e.title ? (y(), j("title",
|
|
3036
|
-
|
|
3037
|
-
], 8,
|
|
3035
|
+
e.title ? (y(), j("title", yl, K(e.title), 1)) : P("", !0),
|
|
3036
|
+
ml
|
|
3037
|
+
], 8, gl))
|
|
3038
3038
|
]),
|
|
3039
3039
|
_: 1
|
|
3040
3040
|
}, 8, ["aria-hidden", "style"]));
|
|
3041
3041
|
}
|
|
3042
|
-
}),
|
|
3042
|
+
}), vl = /* @__PURE__ */ Ve(hl, [["__scopeId", "data-v-ed11facd"]]), bl = (e) => (Ee("data-v-cf4e7d0b"), e = e(), Fe(), e), kl = ["aria-hidden"], Cl = {
|
|
3043
3043
|
key: 0,
|
|
3044
3044
|
"data-testid": "kui-icon-svg-title"
|
|
3045
|
-
},
|
|
3045
|
+
}, wl = /* @__PURE__ */ bl(() => /* @__PURE__ */ B("path", {
|
|
3046
3046
|
d: "M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",
|
|
3047
3047
|
fill: "currentColor"
|
|
3048
|
-
}, null, -1)),
|
|
3048
|
+
}, null, -1)), Sl = /* @__PURE__ */ H({
|
|
3049
3049
|
__name: "MoreIcon",
|
|
3050
3050
|
props: {
|
|
3051
3051
|
/** The accessibility text provided to screen readers */
|
|
@@ -3114,7 +3114,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3114
3114
|
lineHeight: "0",
|
|
3115
3115
|
width: n.value
|
|
3116
3116
|
}));
|
|
3117
|
-
return (a, o) => (y(), U(
|
|
3117
|
+
return (a, o) => (y(), U(me(e.as), {
|
|
3118
3118
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3119
3119
|
class: "kui-icon more-icon",
|
|
3120
3120
|
"data-testid": "kui-icon-wrapper-more-icon",
|
|
@@ -3131,17 +3131,17 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3131
3131
|
width: "100%",
|
|
3132
3132
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3133
3133
|
}, [
|
|
3134
|
-
e.title ? (y(), j("title",
|
|
3135
|
-
|
|
3136
|
-
], 8,
|
|
3134
|
+
e.title ? (y(), j("title", Cl, K(e.title), 1)) : P("", !0),
|
|
3135
|
+
wl
|
|
3136
|
+
], 8, kl))
|
|
3137
3137
|
]),
|
|
3138
3138
|
_: 1
|
|
3139
3139
|
}, 8, ["aria-hidden", "style"]));
|
|
3140
3140
|
}
|
|
3141
|
-
}),
|
|
3141
|
+
}), Al = /* @__PURE__ */ Ve(Sl, [["__scopeId", "data-v-cf4e7d0b"]]), xl = {
|
|
3142
3142
|
class: "config-card-title",
|
|
3143
3143
|
"data-testid": "config-card-title"
|
|
3144
|
-
},
|
|
3144
|
+
}, Il = { class: "config-card-actions" }, _l = ["href"], Nl = { class: "config-card-details-section" }, jl = /* @__PURE__ */ H({
|
|
3145
3145
|
__name: "EntityBaseConfigCard",
|
|
3146
3146
|
props: {
|
|
3147
3147
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3364,7 +3364,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3364
3364
|
"title-tag": e.titleTag
|
|
3365
3365
|
}, $e({
|
|
3366
3366
|
actions: h(() => [
|
|
3367
|
-
B("div",
|
|
3367
|
+
B("div", Il, [
|
|
3368
3368
|
W(p.$slots, "actions", {}, void 0, !0),
|
|
3369
3369
|
N(M, {
|
|
3370
3370
|
class: "config-format-select-label",
|
|
@@ -3392,8 +3392,8 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3392
3392
|
rel: "noopener",
|
|
3393
3393
|
target: "_blank"
|
|
3394
3394
|
}, [
|
|
3395
|
-
N(b(
|
|
3396
|
-
], 8,
|
|
3395
|
+
N(b(ol), { size: b(li) }, null, 8, ["size"])
|
|
3396
|
+
], 8, _l)
|
|
3397
3397
|
]),
|
|
3398
3398
|
_: 1
|
|
3399
3399
|
})) : P("", !0)
|
|
@@ -3415,8 +3415,8 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3415
3415
|
]),
|
|
3416
3416
|
_: 1
|
|
3417
3417
|
})) : P("", !0),
|
|
3418
|
-
B("div",
|
|
3419
|
-
N(
|
|
3418
|
+
B("div", Nl, [
|
|
3419
|
+
N(Zo, {
|
|
3420
3420
|
config: e.config,
|
|
3421
3421
|
"fetcher-url": v.value,
|
|
3422
3422
|
format: d.value,
|
|
@@ -3441,7 +3441,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3441
3441
|
e.hideTitle ? void 0 : {
|
|
3442
3442
|
name: "title",
|
|
3443
3443
|
fn: h(() => [
|
|
3444
|
-
B("span",
|
|
3444
|
+
B("span", xl, [
|
|
3445
3445
|
W(p.$slots, "title", {}, () => [
|
|
3446
3446
|
z(K(b(o)("baseConfigCard.title")), 1)
|
|
3447
3447
|
], !0)
|
|
@@ -3452,10 +3452,10 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3452
3452
|
]), 1032, ["title-tag"]);
|
|
3453
3453
|
};
|
|
3454
3454
|
}
|
|
3455
|
-
}),
|
|
3455
|
+
}), Tl = /* @__PURE__ */ ue(jl, [["__scopeId", "data-v-f40a683b"]]), $l = ["novalidate"], Ol = {
|
|
3456
3456
|
class: "form-actions",
|
|
3457
3457
|
"data-testid": "form-actions"
|
|
3458
|
-
},
|
|
3458
|
+
}, Ml = /* @__PURE__ */ H({
|
|
3459
3459
|
__name: "EntityBaseForm",
|
|
3460
3460
|
props: {
|
|
3461
3461
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3585,7 +3585,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3585
3585
|
"data-testid": "form-error",
|
|
3586
3586
|
message: e.errorMessage
|
|
3587
3587
|
}, null, 8, ["message"])) : P("", !0),
|
|
3588
|
-
B("div",
|
|
3588
|
+
B("div", Ol, [
|
|
3589
3589
|
W(f.$slots, "form-actions", {}, () => [
|
|
3590
3590
|
N(_, {
|
|
3591
3591
|
appearance: "tertiary",
|
|
@@ -3621,7 +3621,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3621
3621
|
}, 8, ["disabled"])
|
|
3622
3622
|
], !0)
|
|
3623
3623
|
])
|
|
3624
|
-
], 40,
|
|
3624
|
+
], 40, $l)),
|
|
3625
3625
|
N($, {
|
|
3626
3626
|
"close-on-blur": !1,
|
|
3627
3627
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -3660,7 +3660,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3660
3660
|
});
|
|
3661
3661
|
};
|
|
3662
3662
|
}
|
|
3663
|
-
}),
|
|
3663
|
+
}), El = /* @__PURE__ */ ue(Ml, [["__scopeId", "data-v-3def74fe"]]), Fl = ["data-truncate"], ql = /* @__PURE__ */ H({
|
|
3664
3664
|
__name: "EntityBaseTableCell",
|
|
3665
3665
|
props: {
|
|
3666
3666
|
keyName: {
|
|
@@ -3739,14 +3739,14 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3739
3739
|
]),
|
|
3740
3740
|
_: 3
|
|
3741
3741
|
}, 8, ["text"])
|
|
3742
|
-
], 8,
|
|
3742
|
+
], 8, Fl)) : W(k.$slots, "default", { key: 1 }, void 0, !0)
|
|
3743
3743
|
], 512);
|
|
3744
3744
|
};
|
|
3745
3745
|
}
|
|
3746
|
-
}),
|
|
3746
|
+
}), Kl = /* @__PURE__ */ ue(ql, [["__scopeId", "data-v-471ce76e"]]), Bl = { class: "toolbar-container" }, Ll = {
|
|
3747
3747
|
key: 0,
|
|
3748
3748
|
class: "toolbar-button-container"
|
|
3749
|
-
},
|
|
3749
|
+
}, Ul = ["data-testid"], Rl = /* @__PURE__ */ H({
|
|
3750
3750
|
__name: "EntityBaseTable",
|
|
3751
3751
|
props: {
|
|
3752
3752
|
// table header configuration
|
|
@@ -3914,7 +3914,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3914
3914
|
i("click:row", A);
|
|
3915
3915
|
}), k = (p) => {
|
|
3916
3916
|
i("sort", p);
|
|
3917
|
-
}, { setTablePreferences: F, getTablePreferences: w } =
|
|
3917
|
+
}, { setTablePreferences: F, getTablePreferences: w } = Ia(), O = q(w(r.value)), f = S(() => {
|
|
3918
3918
|
const p = w(r.value);
|
|
3919
3919
|
return {
|
|
3920
3920
|
...n.initialFetcherParams,
|
|
@@ -3965,9 +3965,9 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3965
3965
|
"onUpdate:tablePreferences": v
|
|
3966
3966
|
}, $e({
|
|
3967
3967
|
toolbar: h(({ state: T }) => [
|
|
3968
|
-
ve(B("div",
|
|
3968
|
+
ve(B("div", Bl, [
|
|
3969
3969
|
W(p.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3970
|
-
p.$slots["toolbar-button"] ? (y(), j("div",
|
|
3970
|
+
p.$slots["toolbar-button"] ? (y(), j("div", Ll, [
|
|
3971
3971
|
W(p.$slots, "toolbar-button", {}, void 0, !0)
|
|
3972
3972
|
])) : P("", !0)
|
|
3973
3973
|
], 512), [
|
|
@@ -3999,21 +3999,21 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
3999
3999
|
size: "small"
|
|
4000
4000
|
}, {
|
|
4001
4001
|
default: h(() => [
|
|
4002
|
-
N(b(
|
|
4002
|
+
N(b(Al))
|
|
4003
4003
|
]),
|
|
4004
4004
|
_: 1
|
|
4005
4005
|
})
|
|
4006
4006
|
]),
|
|
4007
4007
|
_: 2
|
|
4008
4008
|
}, 1032, ["width"])
|
|
4009
|
-
], 8,
|
|
4009
|
+
], 8, Ul)
|
|
4010
4010
|
]),
|
|
4011
4011
|
_: 2
|
|
4012
4012
|
}, [
|
|
4013
4013
|
ce(e.tableHeaders, (T, V) => ({
|
|
4014
4014
|
name: V,
|
|
4015
4015
|
fn: h(({ row: J, rowKey: oe, rowValue: le }) => [
|
|
4016
|
-
N(
|
|
4016
|
+
N(Kl, {
|
|
4017
4017
|
"key-name": String(V),
|
|
4018
4018
|
"row-el": u(J),
|
|
4019
4019
|
tooltip: T.tooltip
|
|
@@ -4034,7 +4034,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4034
4034
|
e.query ? void 0 : {
|
|
4035
4035
|
name: "empty-state-action-icon",
|
|
4036
4036
|
fn: h(() => [
|
|
4037
|
-
N(b(
|
|
4037
|
+
N(b(el))
|
|
4038
4038
|
]),
|
|
4039
4039
|
key: "0"
|
|
4040
4040
|
}
|
|
@@ -4044,13 +4044,13 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4044
4044
|
}, 8, ["title", "title-tag"]);
|
|
4045
4045
|
};
|
|
4046
4046
|
}
|
|
4047
|
-
}),
|
|
4047
|
+
}), Vl = /* @__PURE__ */ ue(Rl, [["__scopeId", "data-v-0496d9a7"]]), Dl = {
|
|
4048
4048
|
key: 0,
|
|
4049
4049
|
class: "kong-ui-entity-delete-error"
|
|
4050
|
-
},
|
|
4050
|
+
}, Pl = {
|
|
4051
4051
|
key: 1,
|
|
4052
4052
|
class: "description"
|
|
4053
|
-
},
|
|
4053
|
+
}, zl = /* @__PURE__ */ H({
|
|
4054
4054
|
__name: "EntityDeleteModal",
|
|
4055
4055
|
props: {
|
|
4056
4056
|
visible: {
|
|
@@ -4108,7 +4108,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4108
4108
|
onProceed: l
|
|
4109
4109
|
}, {
|
|
4110
4110
|
default: h(() => [
|
|
4111
|
-
e.error ? (y(), j("div",
|
|
4111
|
+
e.error ? (y(), j("div", Dl, [
|
|
4112
4112
|
N(d, { appearance: "danger" }, {
|
|
4113
4113
|
default: h(() => [
|
|
4114
4114
|
z(K(e.error), 1)
|
|
@@ -4134,7 +4134,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4134
4134
|
key: "0"
|
|
4135
4135
|
} : void 0
|
|
4136
4136
|
]), 1032, ["keypath"]),
|
|
4137
|
-
i.description || s.$slots.description ? (y(), j("div",
|
|
4137
|
+
i.description || s.$slots.description ? (y(), j("div", Pl, [
|
|
4138
4138
|
W(s.$slots, "description", {}, () => [
|
|
4139
4139
|
B("p", null, K(i.description), 1)
|
|
4140
4140
|
], !0)
|
|
@@ -4144,13 +4144,13 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4144
4144
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
4145
4145
|
};
|
|
4146
4146
|
}
|
|
4147
|
-
}),
|
|
4147
|
+
}), Hl = /* @__PURE__ */ ue(zl, [["__scopeId", "data-v-4361d622"]]), Jl = {
|
|
4148
4148
|
fill: "none",
|
|
4149
4149
|
height: "20",
|
|
4150
4150
|
viewBox: "0 0 20 20",
|
|
4151
4151
|
width: "20",
|
|
4152
4152
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4153
|
-
},
|
|
4153
|
+
}, Zl = {
|
|
4154
4154
|
id: "mask0_180_20349",
|
|
4155
4155
|
height: "20",
|
|
4156
4156
|
maskUnits: "userSpaceOnUse",
|
|
@@ -4158,35 +4158,35 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4158
4158
|
width: "20",
|
|
4159
4159
|
x: "0",
|
|
4160
4160
|
y: "0"
|
|
4161
|
-
},
|
|
4161
|
+
}, Wl = ["fill"], Yl = { mask: "url(#mask0_180_20349)" }, Gl = ["fill"], Qt = /* @__PURE__ */ H({
|
|
4162
4162
|
__name: "IconFilter",
|
|
4163
4163
|
props: {
|
|
4164
4164
|
color: {
|
|
4165
4165
|
type: String,
|
|
4166
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
4166
|
+
default: `var(--kong-ui-entity-filter-color, ${ai})`
|
|
4167
4167
|
}
|
|
4168
4168
|
},
|
|
4169
4169
|
setup(e) {
|
|
4170
|
-
return (t, n) => (y(), j("svg",
|
|
4171
|
-
B("mask",
|
|
4170
|
+
return (t, n) => (y(), j("svg", Jl, [
|
|
4171
|
+
B("mask", Zl, [
|
|
4172
4172
|
B("rect", {
|
|
4173
4173
|
fill: e.color,
|
|
4174
4174
|
height: "20",
|
|
4175
4175
|
width: "20"
|
|
4176
|
-
}, null, 8,
|
|
4176
|
+
}, null, 8, Wl)
|
|
4177
4177
|
]),
|
|
4178
|
-
B("g",
|
|
4178
|
+
B("g", Yl, [
|
|
4179
4179
|
B("path", {
|
|
4180
4180
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
4181
4181
|
fill: e.color
|
|
4182
|
-
}, null, 8,
|
|
4182
|
+
}, null, 8, Gl)
|
|
4183
4183
|
])
|
|
4184
4184
|
]));
|
|
4185
4185
|
}
|
|
4186
|
-
}),
|
|
4186
|
+
}), Ql = {
|
|
4187
4187
|
key: 1,
|
|
4188
4188
|
class: "kong-ui-entity-filter"
|
|
4189
|
-
},
|
|
4189
|
+
}, Xl = { class: "kong-ui-entity-filter-menu" }, es = ["data-testid"], ts = ["onClick", "onKeydown"], ns = { class: "menu-item-indicator" }, as = { class: "menu-item-body" }, is = ["for"], rs = { class: "menu-item-buttons" }, os = { class: "filter-clear-button-container" }, ls = /* @__PURE__ */ H({
|
|
4190
4190
|
__name: "EntityFilter",
|
|
4191
4191
|
props: {
|
|
4192
4192
|
// filter config, either exact match or fuzzy match
|
|
@@ -4270,7 +4270,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4270
4270
|
N(Qt)
|
|
4271
4271
|
]),
|
|
4272
4272
|
after: h(() => [
|
|
4273
|
-
ve(N(b(
|
|
4273
|
+
ve(N(b(vl), {
|
|
4274
4274
|
class: "kong-ui-entity-filter-clear",
|
|
4275
4275
|
onClick: g
|
|
4276
4276
|
}, null, 512), [
|
|
@@ -4278,7 +4278,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4278
4278
|
])
|
|
4279
4279
|
]),
|
|
4280
4280
|
_: 1
|
|
4281
|
-
}, 8, ["model-value", "placeholder"])) : (y(), j("div",
|
|
4281
|
+
}, 8, ["model-value", "placeholder"])) : (y(), j("div", Ql, [
|
|
4282
4282
|
N(A, {
|
|
4283
4283
|
appearance: "tertiary",
|
|
4284
4284
|
"data-testid": "filter-button",
|
|
@@ -4296,7 +4296,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4296
4296
|
}, null, 512), [
|
|
4297
4297
|
[be, o.value]
|
|
4298
4298
|
]),
|
|
4299
|
-
ve(B("div",
|
|
4299
|
+
ve(B("div", Xl, [
|
|
4300
4300
|
(y(!0), j(pe, null, ce(c.value, (_) => {
|
|
4301
4301
|
var R, $;
|
|
4302
4302
|
return y(), j("div", {
|
|
@@ -4312,19 +4312,19 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4312
4312
|
onKeydown: ia((T) => u(_.value), ["enter"])
|
|
4313
4313
|
}, [
|
|
4314
4314
|
z(K(_.label) + " ", 1),
|
|
4315
|
-
ve(B("span",
|
|
4315
|
+
ve(B("span", ns, null, 512), [
|
|
4316
4316
|
[be, s.value.includes(_.value)]
|
|
4317
4317
|
]),
|
|
4318
|
-
N(b(
|
|
4318
|
+
N(b(pl), {
|
|
4319
4319
|
class: Ce(["menu-item-expand-icon", { expanded: l.value.has(_.value) }]),
|
|
4320
|
-
color: b(
|
|
4320
|
+
color: b(ri)
|
|
4321
4321
|
}, null, 8, ["class", "color"])
|
|
4322
|
-
], 42,
|
|
4323
|
-
ve(B("div",
|
|
4322
|
+
], 42, ts),
|
|
4323
|
+
ve(B("div", as, [
|
|
4324
4324
|
B("label", {
|
|
4325
4325
|
class: "menu-item-label",
|
|
4326
4326
|
for: C(_.value)
|
|
4327
|
-
}, K(b(n)("filter.fieldLabel")), 9,
|
|
4327
|
+
}, K(b(n)("filter.fieldLabel")), 9, is),
|
|
4328
4328
|
(($ = (R = e.config.schema) == null ? void 0 : R[_.value]) == null ? void 0 : $.type) === "select" ? (y(), U(M, {
|
|
4329
4329
|
key: 0,
|
|
4330
4330
|
id: C(_.value),
|
|
@@ -4344,7 +4344,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4344
4344
|
], 512), [
|
|
4345
4345
|
[be, l.value.has(_.value)]
|
|
4346
4346
|
]),
|
|
4347
|
-
ve(B("div",
|
|
4347
|
+
ve(B("div", rs, [
|
|
4348
4348
|
N(A, {
|
|
4349
4349
|
appearance: "tertiary",
|
|
4350
4350
|
"data-testid": "apply-filter",
|
|
@@ -4370,9 +4370,9 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4370
4370
|
], 512), [
|
|
4371
4371
|
[be, l.value.has(_.value)]
|
|
4372
4372
|
])
|
|
4373
|
-
], 8,
|
|
4373
|
+
], 8, es);
|
|
4374
4374
|
}), 128)),
|
|
4375
|
-
B("div",
|
|
4375
|
+
B("div", os, [
|
|
4376
4376
|
N(A, {
|
|
4377
4377
|
appearance: "tertiary",
|
|
4378
4378
|
size: "small",
|
|
@@ -4390,7 +4390,7 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4390
4390
|
]));
|
|
4391
4391
|
};
|
|
4392
4392
|
}
|
|
4393
|
-
}),
|
|
4393
|
+
}), ss = /* @__PURE__ */ ue(ls, [["__scopeId", "data-v-94990087"]]), Pe = /* @__PURE__ */ H({
|
|
4394
4394
|
__name: "PermissionsWrapper",
|
|
4395
4395
|
props: {
|
|
4396
4396
|
/**
|
|
@@ -4422,41 +4422,41 @@ const Vo = { class: "yaml-config" }, Xn = /* @__PURE__ */ H({
|
|
|
4422
4422
|
}
|
|
4423
4423
|
});
|
|
4424
4424
|
let ze;
|
|
4425
|
-
const
|
|
4426
|
-
function
|
|
4425
|
+
const cs = new Uint8Array(16);
|
|
4426
|
+
function us() {
|
|
4427
4427
|
if (!ze && (ze = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ze))
|
|
4428
4428
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4429
|
-
return ze(
|
|
4429
|
+
return ze(cs);
|
|
4430
4430
|
}
|
|
4431
4431
|
const te = [];
|
|
4432
4432
|
for (let e = 0; e < 256; ++e)
|
|
4433
4433
|
te.push((e + 256).toString(16).slice(1));
|
|
4434
|
-
function
|
|
4434
|
+
function ds(e, t = 0) {
|
|
4435
4435
|
return te[e[t + 0]] + te[e[t + 1]] + te[e[t + 2]] + te[e[t + 3]] + "-" + te[e[t + 4]] + te[e[t + 5]] + "-" + te[e[t + 6]] + te[e[t + 7]] + "-" + te[e[t + 8]] + te[e[t + 9]] + "-" + te[e[t + 10]] + te[e[t + 11]] + te[e[t + 12]] + te[e[t + 13]] + te[e[t + 14]] + te[e[t + 15]];
|
|
4436
4436
|
}
|
|
4437
|
-
const
|
|
4438
|
-
randomUUID:
|
|
4437
|
+
const ps = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Xt = {
|
|
4438
|
+
randomUUID: ps
|
|
4439
4439
|
};
|
|
4440
|
-
function
|
|
4440
|
+
function fs(e, t, n) {
|
|
4441
4441
|
if (Xt.randomUUID && !t && !e)
|
|
4442
4442
|
return Xt.randomUUID();
|
|
4443
4443
|
e = e || {};
|
|
4444
|
-
const i = e.random || (e.rng ||
|
|
4444
|
+
const i = e.random || (e.rng || us)();
|
|
4445
4445
|
if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, t) {
|
|
4446
4446
|
n = n || 0;
|
|
4447
4447
|
for (let a = 0; a < 16; ++a)
|
|
4448
4448
|
t[n + a] = i[a];
|
|
4449
4449
|
return t;
|
|
4450
4450
|
}
|
|
4451
|
-
return
|
|
4451
|
+
return ds(i);
|
|
4452
4452
|
}
|
|
4453
|
-
const
|
|
4453
|
+
const gs = ["aria-labelledby"], ys = { class: "form-section-wrapper" }, ms = {
|
|
4454
4454
|
key: 1,
|
|
4455
4455
|
class: "form-section-description"
|
|
4456
|
-
},
|
|
4456
|
+
}, hs = {
|
|
4457
4457
|
key: 2,
|
|
4458
4458
|
class: "form-section-footer"
|
|
4459
|
-
},
|
|
4459
|
+
}, vs = { class: "form-section-content" }, bs = /* @__PURE__ */ H({
|
|
4460
4460
|
__name: "EntityFormSection",
|
|
4461
4461
|
props: {
|
|
4462
4462
|
title: {
|
|
@@ -4485,18 +4485,18 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4485
4485
|
}
|
|
4486
4486
|
},
|
|
4487
4487
|
setup(e) {
|
|
4488
|
-
const t = yt(), n =
|
|
4488
|
+
const t = yt(), n = fs();
|
|
4489
4489
|
return (i, a) => (y(), j("div", {
|
|
4490
4490
|
"aria-labelledby": e.title ? b(n) : void 0,
|
|
4491
4491
|
class: Ce(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4492
4492
|
role: "group"
|
|
4493
4493
|
}, [
|
|
4494
|
-
B("div",
|
|
4494
|
+
B("div", ys, [
|
|
4495
4495
|
e.hideInfoHeader ? P("", !0) : (y(), j("div", {
|
|
4496
4496
|
key: 0,
|
|
4497
4497
|
class: Ce(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4498
4498
|
}, [
|
|
4499
|
-
e.title ? (y(), U(
|
|
4499
|
+
e.title ? (y(), U(me(e.titleTag), {
|
|
4500
4500
|
key: 0,
|
|
4501
4501
|
id: b(n),
|
|
4502
4502
|
class: "form-section-title"
|
|
@@ -4506,22 +4506,22 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4506
4506
|
]),
|
|
4507
4507
|
_: 1
|
|
4508
4508
|
}, 8, ["id"])) : P("", !0),
|
|
4509
|
-
e.description || b(t).description ? (y(), j("div",
|
|
4509
|
+
e.description || b(t).description ? (y(), j("div", ms, [
|
|
4510
4510
|
W(i.$slots, "description", {}, () => [
|
|
4511
4511
|
B("p", null, K(e.description), 1)
|
|
4512
4512
|
], !0)
|
|
4513
4513
|
])) : P("", !0),
|
|
4514
|
-
b(t).footer ? (y(), j("div",
|
|
4514
|
+
b(t).footer ? (y(), j("div", hs, [
|
|
4515
4515
|
W(i.$slots, "footer", {}, void 0, !0)
|
|
4516
4516
|
])) : P("", !0)
|
|
4517
4517
|
], 2)),
|
|
4518
|
-
B("div",
|
|
4518
|
+
B("div", vs, [
|
|
4519
4519
|
W(i.$slots, "default", {}, void 0, !0)
|
|
4520
4520
|
])
|
|
4521
4521
|
])
|
|
4522
|
-
], 10,
|
|
4522
|
+
], 10, gs));
|
|
4523
4523
|
}
|
|
4524
|
-
}),
|
|
4524
|
+
}), ks = /* @__PURE__ */ ue(bs, [["__scopeId", "data-v-b1f74200"]]), { useAxios: ea, useDeleteUrlBuilder: Cs, useErrors: ws, useExternalLinkCreator: Fs, useFetchUrlBuilder: qs, useFetcher: Ss, useDebouncedFilter: Ks, useStringHelpers: Bs, useHelpers: Ls, useGatewayFeatureSupported: Us, useTruncationDetector: Rs, useValidators: Vs } = X, As = { class: "kong-ui-entities-key-sets-list" }, xs = { key: 1 }, Is = /* @__PURE__ */ H({
|
|
4525
4525
|
__name: "KeySetList",
|
|
4526
4526
|
props: {
|
|
4527
4527
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4589,7 +4589,7 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4589
4589
|
fields: D,
|
|
4590
4590
|
schema: i.config.filterSchema
|
|
4591
4591
|
};
|
|
4592
|
-
}), { fetcher: C, fetcherState: x } =
|
|
4592
|
+
}), { fetcher: C, fetcherState: x } = Ss(i.config, u.value), k = () => {
|
|
4593
4593
|
m.value = "";
|
|
4594
4594
|
}, F = () => {
|
|
4595
4595
|
l.value++;
|
|
@@ -4634,7 +4634,7 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4634
4634
|
}), _ = (E) => ({
|
|
4635
4635
|
label: a("keySets.actions.edit"),
|
|
4636
4636
|
to: i.config.getEditRoute(E)
|
|
4637
|
-
}), R = q(void 0), $ = q(!1), T = q(!1), V = q(""), J =
|
|
4637
|
+
}), R = q(void 0), $ = q(!1), T = q(!1), V = q(""), J = Cs(i.config, u.value), oe = (E) => {
|
|
4638
4638
|
R.value = E, $.value = !0;
|
|
4639
4639
|
}, le = () => {
|
|
4640
4640
|
$.value = !1;
|
|
@@ -4671,8 +4671,8 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4671
4671
|
await i.canCreate() && (et.value.title = a("keySets.list.empty_state.title"), et.value.ctaText = a("keySets.actions.create"));
|
|
4672
4672
|
}), (E, D) => {
|
|
4673
4673
|
const ee = L("KButton"), he = L("KBadge"), De = L("KTruncate"), na = L("KCopy"), qe = L("KDropdownItem"), _t = L("KClipboardProvider");
|
|
4674
|
-
return y(), j("div",
|
|
4675
|
-
N(b(
|
|
4674
|
+
return y(), j("div", As, [
|
|
4675
|
+
N(b(Vl), {
|
|
4676
4676
|
"cache-identifier": e.cacheIdentifier,
|
|
4677
4677
|
"disable-pagination-page-jump": "",
|
|
4678
4678
|
"disable-sorting": s.value,
|
|
@@ -4691,41 +4691,39 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4691
4691
|
onSort: F
|
|
4692
4692
|
}, {
|
|
4693
4693
|
"toolbar-filter": h(() => [
|
|
4694
|
-
N(b(
|
|
4694
|
+
N(b(ss), {
|
|
4695
4695
|
modelValue: m.value,
|
|
4696
4696
|
"onUpdate:modelValue": D[0] || (D[0] = (Y) => m.value = Y),
|
|
4697
4697
|
config: g.value
|
|
4698
4698
|
}, null, 8, ["modelValue", "config"])
|
|
4699
4699
|
]),
|
|
4700
4700
|
"toolbar-button": h(() => [
|
|
4701
|
-
(y(), U(
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
_: 1
|
|
4728
|
-
}, 8, ["to"]))
|
|
4701
|
+
(y(), U(da, {
|
|
4702
|
+
disabled: !e.useActionOutside,
|
|
4703
|
+
to: "#kong-ui-app-page-header-action-button"
|
|
4704
|
+
}, [
|
|
4705
|
+
N(b(Pe), {
|
|
4706
|
+
"auth-function": () => e.canCreate()
|
|
4707
|
+
}, {
|
|
4708
|
+
default: h(() => [
|
|
4709
|
+
ve(N(ee, {
|
|
4710
|
+
appearance: "primary",
|
|
4711
|
+
"data-testid": "toolbar-add-key-set",
|
|
4712
|
+
size: "large",
|
|
4713
|
+
to: e.config.createRoute
|
|
4714
|
+
}, {
|
|
4715
|
+
default: h(() => [
|
|
4716
|
+
N(b(ba)),
|
|
4717
|
+
z(" " + K(b(a)("keySets.list.toolbar_actions.new_key_set")), 1)
|
|
4718
|
+
]),
|
|
4719
|
+
_: 1
|
|
4720
|
+
}, 8, ["to"]), [
|
|
4721
|
+
[be, xt.value]
|
|
4722
|
+
])
|
|
4723
|
+
]),
|
|
4724
|
+
_: 1
|
|
4725
|
+
}, 8, ["auth-function"])
|
|
4726
|
+
], 8, ["disabled"]))
|
|
4729
4727
|
]),
|
|
4730
4728
|
name: h(({ rowValue: Y }) => [
|
|
4731
4729
|
B("b", null, K(Y ?? "-"), 1)
|
|
@@ -4745,7 +4743,7 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4745
4743
|
}, 1024))), 128))
|
|
4746
4744
|
]),
|
|
4747
4745
|
_: 2
|
|
4748
|
-
}, 1024)) : (y(), j("span",
|
|
4746
|
+
}, 1024)) : (y(), j("span", xs, "-"))
|
|
4749
4747
|
]),
|
|
4750
4748
|
id: h(({ rowValue: Y }) => [
|
|
4751
4749
|
N(na, {
|
|
@@ -4826,7 +4824,7 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4826
4824
|
]),
|
|
4827
4825
|
_: 1
|
|
4828
4826
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
4829
|
-
N(b(
|
|
4827
|
+
N(b(Hl), {
|
|
4830
4828
|
"action-pending": T.value,
|
|
4831
4829
|
description: b(a)("keySets.delete.description"),
|
|
4832
4830
|
"entity-name": R.value && (R.value.name || R.value.id),
|
|
@@ -4845,7 +4843,7 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4845
4843
|
for (const [i, a] of t)
|
|
4846
4844
|
n[i] = a;
|
|
4847
4845
|
return n;
|
|
4848
|
-
},
|
|
4846
|
+
}, Ds = /* @__PURE__ */ ta(Is, [["__scopeId", "data-v-1bcf55d8"]]), _s = { class: "kong-ui-entities-key-sets-form" }, Ns = /* @__PURE__ */ H({
|
|
4849
4847
|
__name: "KeySetForm",
|
|
4850
4848
|
props: {
|
|
4851
4849
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4864,7 +4862,7 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4864
4862
|
emits: ["update", "error", "loading"],
|
|
4865
4863
|
setup(e, { emit: t }) {
|
|
4866
4864
|
var w;
|
|
4867
|
-
const n = t, i = e, a = mt(), { i18n: { t: o } } = ht.useI18n(), { getMessageFromError: r } =
|
|
4865
|
+
const n = t, i = e, a = mt(), { i18n: { t: o } } = ht.useI18n(), { getMessageFromError: r } = ws(), { axiosInstance: l } = ea((w = i.config) == null ? void 0 : w.axiosRequestConfig), s = S(() => He.form[i.config.app].edit), c = S(() => i.keySetId ? st.Edit : st.Create), d = Nt({
|
|
4868
4866
|
fields: {
|
|
4869
4867
|
name: "",
|
|
4870
4868
|
tags: ""
|
|
@@ -4906,8 +4904,8 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4906
4904
|
};
|
|
4907
4905
|
return (O, f) => {
|
|
4908
4906
|
const v = L("KInput");
|
|
4909
|
-
return y(), j("div",
|
|
4910
|
-
N(b(
|
|
4907
|
+
return y(), j("div", _s, [
|
|
4908
|
+
N(b(El), {
|
|
4911
4909
|
"can-submit": m.value,
|
|
4912
4910
|
config: e.config,
|
|
4913
4911
|
"edit-id": e.keySetId,
|
|
@@ -4922,7 +4920,7 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4922
4920
|
onSubmit: F
|
|
4923
4921
|
}, {
|
|
4924
4922
|
default: h(() => [
|
|
4925
|
-
N(b(
|
|
4923
|
+
N(b(ks), {
|
|
4926
4924
|
description: b(o)("keySets.form.sections.general.description"),
|
|
4927
4925
|
"has-divider": "",
|
|
4928
4926
|
title: b(o)("keySets.form.sections.general.title")
|
|
@@ -4961,7 +4959,7 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4961
4959
|
]);
|
|
4962
4960
|
};
|
|
4963
4961
|
}
|
|
4964
|
-
}),
|
|
4962
|
+
}), Ps = /* @__PURE__ */ ta(Ns, [["__scopeId", "data-v-1eb23ee1"]]), js = { class: "kong-ui-entities-keys-entity-config-card" }, zs = /* @__PURE__ */ H({
|
|
4965
4963
|
__name: "KeySetConfigCard",
|
|
4966
4964
|
props: {
|
|
4967
4965
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4997,8 +4995,8 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
4997
4995
|
tooltip: n("keySets.form.fields.tags.tooltip")
|
|
4998
4996
|
}
|
|
4999
4997
|
});
|
|
5000
|
-
return (o, r) => (y(), j("div",
|
|
5001
|
-
N(b(
|
|
4998
|
+
return (o, r) => (y(), j("div", js, [
|
|
4999
|
+
N(b(Tl), {
|
|
5002
5000
|
config: e.config,
|
|
5003
5001
|
"config-card-doc": e.configCardDoc,
|
|
5004
5002
|
"config-schema": a.value,
|
|
@@ -5012,7 +5010,7 @@ const fs = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, ys = {
|
|
|
5012
5010
|
}
|
|
5013
5011
|
});
|
|
5014
5012
|
export {
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5013
|
+
zs as KeySetConfigCard,
|
|
5014
|
+
Ps as KeySetForm,
|
|
5015
|
+
Ds as KeySetList
|
|
5018
5016
|
};
|