@kong-ui-public/entities-key-sets 2.1.19 → 2.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ne, ref as E, computed as T, watch as we, renderSlot as z, createCommentVNode as V, unref as k, useSlots as We, onBeforeMount as ct, resolveComponent as K, openBlock as g, createBlock as q, createSlots as Ie, withCtx as v, createElementVNode as B, createTextVNode as H, toDisplayString as N, createVNode as j, createElementBlock as _, renderList as de, Fragment as fe, normalizeClass as ke, withModifiers as Re, withDirectives as Ne, vShow as Ke, useCssVars as Zt, resolveDynamicComponent as
|
|
1
|
+
import { defineComponent as ne, ref as E, computed as T, watch as we, renderSlot as z, createCommentVNode as V, unref as k, useSlots as We, onBeforeMount as ct, resolveComponent as K, openBlock as g, createBlock as q, createSlots as Ie, withCtx as v, createElementVNode as B, createTextVNode as H, toDisplayString as N, createVNode as j, createElementBlock as _, renderList as de, Fragment as fe, normalizeClass as ke, withModifiers as Re, withDirectives as Ne, vShow as Ke, useCssVars as Zt, resolveDynamicComponent as xe, normalizeProps as Xn, guardReactiveProps as ea, mergeProps as nt, onMounted as ta, onUnmounted as na, normalizeStyle as Gt, inject as aa, pushScopeId as Qt, popScopeId as Xt, reactive as It } from "vue";
|
|
2
2
|
import { useRouter as ut } from "vue-router";
|
|
3
3
|
import { createI18n as dt, i18nTComponent as en } from "@kong-ui-public/i18n";
|
|
4
|
-
import
|
|
5
|
-
import { BadgeMethodAppearances as
|
|
6
|
-
const
|
|
4
|
+
import ia from "axios";
|
|
5
|
+
import { BadgeMethodAppearances as ra } from "@kong/kongponents";
|
|
6
|
+
const oa = {
|
|
7
7
|
title: "Key Sets",
|
|
8
8
|
list: {
|
|
9
9
|
toolbar_actions: {
|
|
@@ -64,11 +64,11 @@ const la = {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
},
|
|
68
|
-
keySets:
|
|
67
|
+
}, la = {
|
|
68
|
+
keySets: oa
|
|
69
69
|
};
|
|
70
|
-
function
|
|
71
|
-
const e = dt("en-us",
|
|
70
|
+
function sa() {
|
|
71
|
+
const e = dt("en-us", la);
|
|
72
72
|
return {
|
|
73
73
|
i18n: e,
|
|
74
74
|
i18nT: en(e)
|
|
@@ -76,7 +76,7 @@ function ca() {
|
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
const pt = {
|
|
79
|
-
useI18n:
|
|
79
|
+
useI18n: sa
|
|
80
80
|
}, Pe = {
|
|
81
81
|
list: {
|
|
82
82
|
konnect: "/api/runtime_groups/{controlPlaneId}/key-sets",
|
|
@@ -96,14 +96,14 @@ const pt = {
|
|
|
96
96
|
var tn = /* @__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))(tn || {}), at = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(at || {}), Se = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Se || {}), W = /* @__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))(W || {}), pe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(pe || {});
|
|
97
97
|
function ft(e = {}) {
|
|
98
98
|
return {
|
|
99
|
-
axiosInstance:
|
|
99
|
+
axiosInstance: ia.create({
|
|
100
100
|
withCredentials: !0,
|
|
101
101
|
timeout: 3e4,
|
|
102
102
|
...e
|
|
103
103
|
})
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ca() {
|
|
107
107
|
return {
|
|
108
108
|
debounce: (e, n) => {
|
|
109
109
|
let t;
|
|
@@ -115,12 +115,12 @@ function ua() {
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
const Qe = "khcp-user-table-preferences",
|
|
118
|
+
const Qe = "khcp-user-table-preferences", ua = {
|
|
119
119
|
pageSize: 30,
|
|
120
120
|
sortColumnKey: void 0,
|
|
121
121
|
sortColumnOrder: void 0
|
|
122
122
|
};
|
|
123
|
-
function
|
|
123
|
+
function da() {
|
|
124
124
|
const e = (t) => {
|
|
125
125
|
if (typeof t == "string")
|
|
126
126
|
try {
|
|
@@ -144,24 +144,24 @@ function pa() {
|
|
|
144
144
|
},
|
|
145
145
|
getTablePreferences: (t) => {
|
|
146
146
|
const a = n();
|
|
147
|
-
return (a == null ? void 0 : a.get(t)) || void 0 ||
|
|
147
|
+
return (a == null ? void 0 : a.get(t)) || void 0 || ua;
|
|
148
148
|
},
|
|
149
149
|
deleteAllTablePreferences: () => {
|
|
150
150
|
localStorage.removeItem(Qe);
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const pa = {
|
|
155
155
|
actions: {
|
|
156
156
|
copyId: "Copy ID",
|
|
157
157
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
158
158
|
copyToClipboard: "Copied successfully!",
|
|
159
159
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
160
160
|
}
|
|
161
|
-
},
|
|
161
|
+
}, fa = {
|
|
162
162
|
message: "Are you sure you want to delete this {entityType}?",
|
|
163
163
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
164
|
-
},
|
|
164
|
+
}, ya = {
|
|
165
165
|
actions: {
|
|
166
166
|
save: "Save",
|
|
167
167
|
cancel: "Cancel",
|
|
@@ -170,13 +170,13 @@ const fa = {
|
|
|
170
170
|
errors: {
|
|
171
171
|
edit: "The entity could not be edited at this time."
|
|
172
172
|
}
|
|
173
|
-
},
|
|
173
|
+
}, ga = {
|
|
174
174
|
emptyState: {
|
|
175
175
|
noSearchResultsTitle: "No results found",
|
|
176
176
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
177
177
|
noSearchResultsCtaText: "Clear"
|
|
178
178
|
}
|
|
179
|
-
},
|
|
179
|
+
}, ma = {
|
|
180
180
|
title: "Configuration",
|
|
181
181
|
actions: {
|
|
182
182
|
copy: "Copy JSON"
|
|
@@ -214,7 +214,7 @@ const fa = {
|
|
|
214
214
|
entryTitle: "Entry {index}",
|
|
215
215
|
structuredFormat: "Structured"
|
|
216
216
|
}
|
|
217
|
-
},
|
|
217
|
+
}, ha = {
|
|
218
218
|
filterButtonText: "Filter",
|
|
219
219
|
fieldLabel: "Filter by:",
|
|
220
220
|
inputPlaceholder: "Enter a value",
|
|
@@ -222,15 +222,15 @@ const fa = {
|
|
|
222
222
|
applyButtonText: "Apply",
|
|
223
223
|
clearButtonText: "Clear",
|
|
224
224
|
clearAllButtonText: "Clear all filters"
|
|
225
|
-
},
|
|
225
|
+
}, va = {
|
|
226
226
|
errors: {
|
|
227
227
|
fetch: "Could not fetch available items",
|
|
228
228
|
invalid: "Please select a valid value"
|
|
229
229
|
}
|
|
230
|
-
},
|
|
230
|
+
}, ba = {
|
|
231
231
|
unexpected: "An unexpected error has occurred",
|
|
232
232
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
233
|
-
},
|
|
233
|
+
}, ka = {
|
|
234
234
|
enable: {
|
|
235
235
|
title: "Enable {entityType}",
|
|
236
236
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -241,19 +241,19 @@ const fa = {
|
|
|
241
241
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
242
242
|
confirmText: "Yes, disable"
|
|
243
243
|
}
|
|
244
|
-
},
|
|
245
|
-
global:
|
|
246
|
-
deleteModal:
|
|
247
|
-
baseForm:
|
|
248
|
-
baseTable:
|
|
249
|
-
baseConfigCard:
|
|
250
|
-
filter:
|
|
251
|
-
debouncedFilter:
|
|
252
|
-
errors:
|
|
253
|
-
toggleModal:
|
|
244
|
+
}, Ca = {
|
|
245
|
+
global: pa,
|
|
246
|
+
deleteModal: fa,
|
|
247
|
+
baseForm: ya,
|
|
248
|
+
baseTable: ga,
|
|
249
|
+
baseConfigCard: ma,
|
|
250
|
+
filter: ha,
|
|
251
|
+
debouncedFilter: va,
|
|
252
|
+
errors: ba,
|
|
253
|
+
toggleModal: ka
|
|
254
254
|
};
|
|
255
255
|
function yt() {
|
|
256
|
-
const e = dt("en-us",
|
|
256
|
+
const e = dt("en-us", Ca);
|
|
257
257
|
return {
|
|
258
258
|
i18n: e,
|
|
259
259
|
i18nT: en(e)
|
|
@@ -304,14 +304,14 @@ function nn() {
|
|
|
304
304
|
isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function wa(e, n, t, a = {
|
|
308
308
|
fetchedItemsKey: "data",
|
|
309
309
|
searchKeys: ["id"]
|
|
310
310
|
}) {
|
|
311
311
|
t || (t = "100");
|
|
312
312
|
const { axiosInstance: i } = ft({
|
|
313
313
|
headers: e.requestHeaders
|
|
314
|
-
}), { i18n: { t: r } } = yt(), { debounce: o } =
|
|
314
|
+
}), { i18n: { t: r } } = yt(), { debounce: o } = ca(), l = o(async (w) => {
|
|
315
315
|
await S(w);
|
|
316
316
|
}, 200), s = E(!1), c = E(""), d = E(""), u = E([]), y = E([]), p = E(void 0), C = k(n);
|
|
317
317
|
let h = `${e.apiBaseUrl}${C}`;
|
|
@@ -382,13 +382,13 @@ function Sa(e, n, t, a = {
|
|
|
382
382
|
debouncedQueryChange: l
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function Sa(e, n) {
|
|
386
386
|
const t = k(n), a = T(
|
|
387
387
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
388
388
|
);
|
|
389
389
|
return a.value.search = "", (i) => `${a.value.href}/${i}`;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Ia() {
|
|
392
392
|
const { i18n: { t: e } } = yt();
|
|
393
393
|
return {
|
|
394
394
|
getMessageFromError: (n) => {
|
|
@@ -416,7 +416,7 @@ function Aa() {
|
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Aa(e) {
|
|
420
420
|
const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
|
|
421
421
|
try {
|
|
422
422
|
const a = e.join("/"), i = `${t}${a}`, r = e.some((o) => o.trim() === "");
|
|
@@ -445,7 +445,7 @@ function an(e, n) {
|
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function xa(e, n, t = "data") {
|
|
449
449
|
const a = k(n), { axiosInstance: i } = ft({
|
|
450
450
|
headers: e.requestHeaders
|
|
451
451
|
}), r = an(e, a), o = E({
|
|
@@ -489,7 +489,7 @@ function _a(e, n, t = "data") {
|
|
|
489
489
|
}
|
|
490
490
|
}, fetcherState: o };
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function _a() {
|
|
493
493
|
const e = (t, a = "_") => t ? t.split(a).map((i) => i.toLowerCase() === "id" ? i.toUpperCase() : i.charAt(0).toUpperCase() + i.substring(1)).join(" ") : "", n = /(?:^|[\s-:'"])\w/g;
|
|
494
494
|
return {
|
|
495
495
|
capitalize: (t) => t ? t.replace(n, (a) => a.toUpperCase()) : "",
|
|
@@ -506,24 +506,24 @@ const rn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
506
506
|
}, xt = (e) => e === "*" || e === "x" || e === "X", _t = (e) => {
|
|
507
507
|
const n = parseInt(e, 10);
|
|
508
508
|
return isNaN(n) ? e : n;
|
|
509
|
-
},
|
|
509
|
+
}, Ta = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], $a = (e, n) => {
|
|
510
510
|
if (xt(e) || xt(n))
|
|
511
511
|
return 0;
|
|
512
|
-
const [t, a] =
|
|
512
|
+
const [t, a] = Ta(_t(e), _t(n));
|
|
513
513
|
return t > a ? 1 : t < a ? -1 : 0;
|
|
514
514
|
}, Tt = (e, n) => {
|
|
515
515
|
for (let t = 0; t < Math.max(e.length, n.length); t++) {
|
|
516
|
-
const a =
|
|
516
|
+
const a = $a(e[t] || "0", n[t] || "0");
|
|
517
517
|
if (a !== 0)
|
|
518
518
|
return a;
|
|
519
519
|
}
|
|
520
520
|
return 0;
|
|
521
|
-
},
|
|
521
|
+
}, ja = (e, n) => {
|
|
522
522
|
const t = At(e), a = At(n), i = t.pop(), r = a.pop(), o = Tt(t, a);
|
|
523
523
|
return o !== 0 ? o : i && r ? Tt(i.split("."), r.split(".")) : i || r ? i ? -1 : 1 : 0;
|
|
524
524
|
}, $t = (e, n, t) => {
|
|
525
|
-
|
|
526
|
-
const a =
|
|
525
|
+
Oa(t);
|
|
526
|
+
const a = ja(e, n);
|
|
527
527
|
return on[t].includes(a);
|
|
528
528
|
}, on = {
|
|
529
529
|
">": [1],
|
|
@@ -532,18 +532,18 @@ const rn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
532
532
|
"<=": [-1, 0],
|
|
533
533
|
"<": [-1],
|
|
534
534
|
"!=": [-1, 1]
|
|
535
|
-
}, jt = Object.keys(on),
|
|
535
|
+
}, jt = Object.keys(on), Oa = (e) => {
|
|
536
536
|
if (typeof e != "string")
|
|
537
537
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
538
538
|
if (jt.indexOf(e) === -1)
|
|
539
539
|
throw new Error(`Invalid operator, expected one of ${jt.join("|")}`);
|
|
540
|
-
},
|
|
541
|
-
function
|
|
540
|
+
}, Ma = (e) => typeof e == "string" && /^[v\d]/.test(e) && rn.test(e);
|
|
541
|
+
function Ea(e) {
|
|
542
542
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
543
543
|
if (!n)
|
|
544
544
|
return !0;
|
|
545
545
|
const { edition: a, version: i } = n;
|
|
546
|
-
if (!
|
|
546
|
+
if (!Ma(i))
|
|
547
547
|
return console.error("Invalid version"), !1;
|
|
548
548
|
const r = t[a];
|
|
549
549
|
if (!r)
|
|
@@ -551,7 +551,7 @@ function Na(e) {
|
|
|
551
551
|
const [o, l] = r;
|
|
552
552
|
return !(o && $t(i, o, "<") || l && $t(i, l, ">"));
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Na(e) {
|
|
555
555
|
const n = E(0), t = E(0), a = E(!1);
|
|
556
556
|
return we(e, (i) => {
|
|
557
557
|
i && !a.value && (n.value = i.offsetWidth, t.value = i.scrollWidth, a.value = !0);
|
|
@@ -561,38 +561,38 @@ function Ka(e) {
|
|
|
561
561
|
}
|
|
562
562
|
const re = {
|
|
563
563
|
useAxios: ft,
|
|
564
|
-
useDebouncedFilter:
|
|
565
|
-
useDeleteUrlBuilder:
|
|
566
|
-
useErrors:
|
|
567
|
-
useExternalLinkCreator:
|
|
568
|
-
useFetcher:
|
|
564
|
+
useDebouncedFilter: wa,
|
|
565
|
+
useDeleteUrlBuilder: Sa,
|
|
566
|
+
useErrors: Ia,
|
|
567
|
+
useExternalLinkCreator: Aa,
|
|
568
|
+
useFetcher: xa,
|
|
569
569
|
useFetchUrlBuilder: an,
|
|
570
570
|
useHelpers: nn,
|
|
571
|
-
useStringHelpers:
|
|
571
|
+
useStringHelpers: _a,
|
|
572
572
|
useI18n: yt,
|
|
573
|
-
useGatewayFeatureSupported:
|
|
574
|
-
useTruncationDetector:
|
|
575
|
-
},
|
|
573
|
+
useGatewayFeatureSupported: Ea,
|
|
574
|
+
useTruncationDetector: Na
|
|
575
|
+
}, Ka = {
|
|
576
576
|
fail: "Failed to copy id to clipboard",
|
|
577
577
|
success: {
|
|
578
578
|
prefix: "Successfully",
|
|
579
579
|
content: " copied to clipboard"
|
|
580
580
|
}
|
|
581
|
-
},
|
|
582
|
-
message:
|
|
583
|
-
iconTitle:
|
|
584
|
-
},
|
|
581
|
+
}, Fa = "Copy to clipboard", qa = {
|
|
582
|
+
message: Ka,
|
|
583
|
+
iconTitle: Fa
|
|
584
|
+
}, Ba = "kong-ui-copy-uuid-notify", Ot = "24px", La = (e, n) => {
|
|
585
585
|
const t = e.__vccOpts || e;
|
|
586
586
|
for (const [a, i] of n)
|
|
587
587
|
t[a] = i;
|
|
588
588
|
return t;
|
|
589
|
-
},
|
|
589
|
+
}, Ua = (e) => (Qt("data-v-ac7fcfb4"), e = e(), Xt(), e), Da = ["aria-hidden"], Ra = {
|
|
590
590
|
key: 0,
|
|
591
591
|
"data-testid": "kui-icon-svg-title"
|
|
592
|
-
},
|
|
592
|
+
}, Pa = /* @__PURE__ */ Ua(() => /* @__PURE__ */ B("path", {
|
|
593
593
|
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
594
594
|
fill: "currentColor"
|
|
595
|
-
}, null, -1)),
|
|
595
|
+
}, null, -1)), Va = /* @__PURE__ */ ne({
|
|
596
596
|
__name: "CopyIcon",
|
|
597
597
|
props: {
|
|
598
598
|
/** The accessibility text provided to screen readers */
|
|
@@ -661,7 +661,7 @@ const re = {
|
|
|
661
661
|
lineHeight: "0",
|
|
662
662
|
width: t.value
|
|
663
663
|
}));
|
|
664
|
-
return (i, r) => (g(), q(
|
|
664
|
+
return (i, r) => (g(), q(xe(e.as), {
|
|
665
665
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
666
666
|
class: "kui-icon copy-icon",
|
|
667
667
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
@@ -678,14 +678,14 @@ const re = {
|
|
|
678
678
|
width: "100%",
|
|
679
679
|
xmlns: "http://www.w3.org/2000/svg"
|
|
680
680
|
}, [
|
|
681
|
-
e.title ? (g(), _("title",
|
|
682
|
-
|
|
683
|
-
], 8,
|
|
681
|
+
e.title ? (g(), _("title", Ra, N(e.title), 1)) : V("", !0),
|
|
682
|
+
Pa
|
|
683
|
+
], 8, Da))
|
|
684
684
|
]),
|
|
685
685
|
_: 1
|
|
686
686
|
}, 8, ["aria-hidden", "style"]));
|
|
687
687
|
}
|
|
688
|
-
}),
|
|
688
|
+
}), za = /* @__PURE__ */ La(Va, [["__scopeId", "data-v-ac7fcfb4"]]), Ha = "16px", Ja = { class: "kong-ui-copy-uuid" }, Ya = ["onClick"], Mt = 15, Wa = /* @__PURE__ */ ne({
|
|
689
689
|
__name: "CopyUuid",
|
|
690
690
|
props: {
|
|
691
691
|
uuid: {
|
|
@@ -729,7 +729,7 @@ const re = {
|
|
|
729
729
|
},
|
|
730
730
|
emits: ["success", "error"],
|
|
731
731
|
setup(e, { emit: n }) {
|
|
732
|
-
const { t } = dt("en-us",
|
|
732
|
+
const { t } = dt("en-us", qa), a = e, i = n, r = a.notify || aa(Ba, () => {
|
|
733
733
|
}), o = T(() => a.idTooltip ? {
|
|
734
734
|
label: a.idTooltip,
|
|
735
735
|
positionFixed: !0,
|
|
@@ -765,8 +765,8 @@ const re = {
|
|
|
765
765
|
};
|
|
766
766
|
return (p, C) => {
|
|
767
767
|
const h = K("KClipboardProvider");
|
|
768
|
-
return g(), _("div",
|
|
769
|
-
e.format !== "hidden" ? (g(), q(
|
|
768
|
+
return g(), _("div", Ja, [
|
|
769
|
+
e.format !== "hidden" ? (g(), q(xe(e.idTooltip ? "KTooltip" : "div"), nt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
|
|
770
770
|
default: v(() => [
|
|
771
771
|
B("div", {
|
|
772
772
|
class: ke([
|
|
@@ -778,7 +778,7 @@ const re = {
|
|
|
778
778
|
]),
|
|
779
779
|
_: 1
|
|
780
780
|
}, 16)) : V("", !0),
|
|
781
|
-
(g(), q(
|
|
781
|
+
(g(), q(xe(e.tooltip ? "KTooltip" : "div"), nt(c.value, { class: "uuid-icon-wrapper" }), {
|
|
782
782
|
default: v(() => [
|
|
783
783
|
j(h, null, {
|
|
784
784
|
default: v(({ copyToClipboard: I }) => [
|
|
@@ -788,14 +788,14 @@ const re = {
|
|
|
788
788
|
tabindex: "0",
|
|
789
789
|
onClick: Re((m) => y(I), ["stop"])
|
|
790
790
|
}, [
|
|
791
|
-
j(k(
|
|
791
|
+
j(k(za), {
|
|
792
792
|
class: "uuid-icon",
|
|
793
793
|
color: e.iconColor,
|
|
794
794
|
decorative: !!e.tooltip,
|
|
795
|
-
size: k(
|
|
795
|
+
size: k(Ha),
|
|
796
796
|
title: k(t)("iconTitle")
|
|
797
797
|
}, null, 8, ["color", "decorative", "size", "title"])
|
|
798
|
-
], 8,
|
|
798
|
+
], 8, Ya)
|
|
799
799
|
]),
|
|
800
800
|
_: 1
|
|
801
801
|
})
|
|
@@ -805,15 +805,15 @@ const re = {
|
|
|
805
805
|
]);
|
|
806
806
|
};
|
|
807
807
|
}
|
|
808
|
-
}),
|
|
808
|
+
}), Za = (e, n) => {
|
|
809
809
|
const t = e.__vccOpts || e;
|
|
810
810
|
for (const [a, i] of n)
|
|
811
811
|
t[a] = i;
|
|
812
812
|
return t;
|
|
813
|
-
}, ln = /* @__PURE__ */
|
|
813
|
+
}, ln = /* @__PURE__ */ Za(Wa, [["__scopeId", "data-v-0c07874b"]]), Ga = {
|
|
814
814
|
key: 0,
|
|
815
815
|
class: "config-card-fieldset-title"
|
|
816
|
-
},
|
|
816
|
+
}, Qa = /* @__PURE__ */ ne({
|
|
817
817
|
__name: "JsonCardItem",
|
|
818
818
|
props: {
|
|
819
819
|
item: {
|
|
@@ -837,11 +837,11 @@ const re = {
|
|
|
837
837
|
var s;
|
|
838
838
|
return n.isArrayItem ? (s = r.value) != null && s.name ? a(r.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
839
839
|
});
|
|
840
|
-
return (s, c) => (g(), q(
|
|
840
|
+
return (s, c) => (g(), q(xe(e.isArrayItem ? "fieldset" : "div"), {
|
|
841
841
|
class: ke(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
842
842
|
}, {
|
|
843
843
|
default: v(() => [
|
|
844
|
-
e.isArrayItem ? (g(), _("legend",
|
|
844
|
+
e.isArrayItem ? (g(), _("legend", Ga, [
|
|
845
845
|
B("b", null, N(l.value), 1)
|
|
846
846
|
])) : V("", !0),
|
|
847
847
|
(g(!0), _(fe, null, de(Object.keys(o.value), (d, u) => (g(), q(gt, {
|
|
@@ -861,7 +861,7 @@ const re = {
|
|
|
861
861
|
for (const [a, i] of n)
|
|
862
862
|
t[a] = i;
|
|
863
863
|
return t;
|
|
864
|
-
}, sn = /* @__PURE__ */ ye(
|
|
864
|
+
}, sn = /* @__PURE__ */ ye(Qa, [["__scopeId", "data-v-68ca83ec"]]), Xa = /* @__PURE__ */ ne({
|
|
865
865
|
__name: "InternalLinkItem",
|
|
866
866
|
props: {
|
|
867
867
|
item: {
|
|
@@ -888,7 +888,7 @@ const re = {
|
|
|
888
888
|
]);
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
|
-
}),
|
|
891
|
+
}), ei = /* @__PURE__ */ ye(Xa, [["__scopeId", "data-v-c96811e5"]]), ti = /* @__PURE__ */ ne({
|
|
892
892
|
__name: "StatusBadge",
|
|
893
893
|
props: {
|
|
894
894
|
status: {
|
|
@@ -910,11 +910,11 @@ const re = {
|
|
|
910
910
|
}, 8, ["appearance"]);
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
|
-
}),
|
|
913
|
+
}), ni = "#0044f4", ai = "#e0e4ea", ii = "#3a3f51", ri = "1px", oi = "20px", li = { class: "config-card-details-row" }, si = ["data-testid"], ci = ["data-testid"], ui = ["data-testid"], di = ["data-testid"], pi = { key: 1 }, fi = ["data-testid"], yi = ["data-testid"], gi = ["data-testid"], mi = ["data-testid"], hi = {
|
|
914
914
|
name: "ConfigCardItem",
|
|
915
|
-
components: { CopyUuid: ln, JsonCardItem: sn, StatusBadge:
|
|
916
|
-
},
|
|
917
|
-
...
|
|
915
|
+
components: { CopyUuid: ln, JsonCardItem: sn, StatusBadge: ti, InternalLinkItem: ei }
|
|
916
|
+
}, vi = /* @__PURE__ */ ne({
|
|
917
|
+
...hi,
|
|
918
918
|
props: {
|
|
919
919
|
item: {
|
|
920
920
|
type: Object,
|
|
@@ -934,7 +934,7 @@ const re = {
|
|
|
934
934
|
emits: ["navigation-click"],
|
|
935
935
|
setup(e, { emit: n }) {
|
|
936
936
|
Zt((C) => ({
|
|
937
|
-
"0da74440": d.value ? "none" : `solid ${k(
|
|
937
|
+
"0da74440": d.value ? "none" : `solid ${k(ri)} ${k(ai)}`,
|
|
938
938
|
"02a039da": c.value && l.value ? "block" : "flex",
|
|
939
939
|
"690f3ced": c.value && l.value ? "100%" : t.slim ? "50%" : "25%",
|
|
940
940
|
"691182c8": c.value && l.value ? "100%" : t.slim ? "50%" : "75%"
|
|
@@ -1068,7 +1068,7 @@ const re = {
|
|
|
1068
1068
|
}), y = E(), { isTruncated: p } = re.useTruncationDetector(y);
|
|
1069
1069
|
return (C, h) => {
|
|
1070
1070
|
const I = K("KLabel"), m = K("KBadge"), f = K("KTooltip");
|
|
1071
|
-
return g(), _("div",
|
|
1071
|
+
return g(), _("div", li, [
|
|
1072
1072
|
B("div", {
|
|
1073
1073
|
class: "config-card-details-label",
|
|
1074
1074
|
"data-testid": `${e.item.key}-label`
|
|
@@ -1089,13 +1089,13 @@ const re = {
|
|
|
1089
1089
|
z(C.$slots, "label-tooltip", {}, () => [
|
|
1090
1090
|
H(N(e.item.tooltip), 1)
|
|
1091
1091
|
], !0)
|
|
1092
|
-
], 8,
|
|
1092
|
+
], 8, ci)
|
|
1093
1093
|
]),
|
|
1094
1094
|
key: "0"
|
|
1095
1095
|
} : void 0
|
|
1096
1096
|
]), 1024)
|
|
1097
1097
|
], !0)
|
|
1098
|
-
], 8,
|
|
1098
|
+
], 8, si),
|
|
1099
1099
|
B("div", {
|
|
1100
1100
|
class: "config-card-details-value",
|
|
1101
1101
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -1103,8 +1103,8 @@ const re = {
|
|
|
1103
1103
|
z(C.$slots, e.item.key, {
|
|
1104
1104
|
rowValue: e.item.value
|
|
1105
1105
|
}, () => [
|
|
1106
|
-
l.value ? (g(), _("div",
|
|
1107
|
-
(g(), q(
|
|
1106
|
+
l.value ? (g(), _("div", pi, [
|
|
1107
|
+
(g(), q(xe(u.value.tag), Xn(ea(u.value.attrs)), {
|
|
1108
1108
|
default: v(() => [
|
|
1109
1109
|
u.value.additionalComponent === "KBadge" ? (g(), _("div", {
|
|
1110
1110
|
key: 0,
|
|
@@ -1122,7 +1122,7 @@ const re = {
|
|
|
1122
1122
|
]),
|
|
1123
1123
|
_: 2
|
|
1124
1124
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1125
|
-
], 8,
|
|
1125
|
+
], 8, fi)) : V("", !0),
|
|
1126
1126
|
u.value.additionalComponent === "CopyUuid" ? (g(), _("div", {
|
|
1127
1127
|
key: 1,
|
|
1128
1128
|
class: "copy-uuid-array",
|
|
@@ -1133,14 +1133,14 @@ const re = {
|
|
|
1133
1133
|
"data-testid": `${e.item.key}-copy-uuid-${w}`,
|
|
1134
1134
|
uuid: S
|
|
1135
1135
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1136
|
-
], 8,
|
|
1136
|
+
], 8, yi)) : u.value.additionalComponent === "KMethodBadge" ? (g(), _("div", {
|
|
1137
1137
|
key: 2,
|
|
1138
1138
|
class: "method-badge-array",
|
|
1139
1139
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1140
1140
|
}, [
|
|
1141
1141
|
(g(!0), _(fe, null, de(e.item.value, (S, w) => (g(), q(m, {
|
|
1142
1142
|
key: `${e.item.key}-badge-method-${w}`,
|
|
1143
|
-
appearance: Object.values(k(
|
|
1143
|
+
appearance: Object.values(k(ra)).includes(S.toLowerCase()) ? S.toLowerCase() : "custom",
|
|
1144
1144
|
class: "config-badge",
|
|
1145
1145
|
"data-testid": `${e.item.key}-badge-method-${w}`
|
|
1146
1146
|
}, {
|
|
@@ -1149,7 +1149,7 @@ const re = {
|
|
|
1149
1149
|
]),
|
|
1150
1150
|
_: 2
|
|
1151
1151
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1152
|
-
], 8,
|
|
1152
|
+
], 8, gi)) : V("", !0),
|
|
1153
1153
|
u.value.additionalComponent === "JsonCardItem" ? (g(), _("div", {
|
|
1154
1154
|
key: 3,
|
|
1155
1155
|
"data-testid": `${t.item.key}-json-array-content`
|
|
@@ -1160,7 +1160,7 @@ const re = {
|
|
|
1160
1160
|
"is-array-item": "",
|
|
1161
1161
|
item: S
|
|
1162
1162
|
}, null, 8, ["index", "item"]))), 128))
|
|
1163
|
-
], 8,
|
|
1163
|
+
], 8, mi)) : (g(), q(f, {
|
|
1164
1164
|
key: 4,
|
|
1165
1165
|
label: k(p) ? e.item.value : ""
|
|
1166
1166
|
}, {
|
|
@@ -1179,46 +1179,46 @@ const re = {
|
|
|
1179
1179
|
])) : (g(), _("div", {
|
|
1180
1180
|
key: 0,
|
|
1181
1181
|
"data-testid": `${e.item.key}-no-value`
|
|
1182
|
-
}, " – ", 8,
|
|
1182
|
+
}, " – ", 8, di))
|
|
1183
1183
|
], !0)
|
|
1184
|
-
], 8,
|
|
1184
|
+
], 8, ui)
|
|
1185
1185
|
]);
|
|
1186
1186
|
};
|
|
1187
1187
|
}
|
|
1188
|
-
}), gt = /* @__PURE__ */ ye(
|
|
1188
|
+
}), gt = /* @__PURE__ */ ye(vi, [["__scopeId", "data-v-9c87856b"]]);
|
|
1189
1189
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1190
1190
|
function cn(e) {
|
|
1191
1191
|
return typeof e > "u" || e === null;
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function bi(e) {
|
|
1194
1194
|
return typeof e == "object" && e !== null;
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function ki(e) {
|
|
1197
1197
|
return Array.isArray(e) ? e : cn(e) ? [] : [e];
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function Ci(e, n) {
|
|
1200
1200
|
var t, a, i, r;
|
|
1201
1201
|
if (n)
|
|
1202
1202
|
for (r = Object.keys(n), t = 0, a = r.length; t < a; t += 1)
|
|
1203
1203
|
i = r[t], e[i] = n[i];
|
|
1204
1204
|
return e;
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function wi(e, n) {
|
|
1207
1207
|
var t = "", a;
|
|
1208
1208
|
for (a = 0; a < n; a += 1)
|
|
1209
1209
|
t += e;
|
|
1210
1210
|
return t;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Si(e) {
|
|
1213
1213
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1214
1214
|
}
|
|
1215
|
-
var
|
|
1216
|
-
isNothing:
|
|
1217
|
-
isObject:
|
|
1218
|
-
toArray:
|
|
1219
|
-
repeat:
|
|
1220
|
-
isNegativeZero:
|
|
1221
|
-
extend:
|
|
1215
|
+
var Ii = cn, Ai = bi, xi = ki, _i = wi, Ti = Si, $i = Ci, ae = {
|
|
1216
|
+
isNothing: Ii,
|
|
1217
|
+
isObject: Ai,
|
|
1218
|
+
toArray: xi,
|
|
1219
|
+
repeat: _i,
|
|
1220
|
+
isNegativeZero: Ti,
|
|
1221
|
+
extend: $i
|
|
1222
1222
|
};
|
|
1223
1223
|
function un(e, n) {
|
|
1224
1224
|
var t = "", a = e.reason || "(unknown reason)";
|
|
@@ -1246,7 +1246,7 @@ function Xe(e, n, t, a, i) {
|
|
|
1246
1246
|
function et(e, n) {
|
|
1247
1247
|
return ae.repeat(" ", n - e.length) + e;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function ji(e, n) {
|
|
1250
1250
|
if (n = Object.create(n || null), !e.buffer)
|
|
1251
1251
|
return null;
|
|
1252
1252
|
n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
|
|
@@ -1276,7 +1276,7 @@ function Oi(e, n) {
|
|
|
1276
1276
|
`;
|
|
1277
1277
|
return l.replace(/\n$/, "");
|
|
1278
1278
|
}
|
|
1279
|
-
var
|
|
1279
|
+
var Oi = ji, Mi = [
|
|
1280
1280
|
"kind",
|
|
1281
1281
|
"multi",
|
|
1282
1282
|
"resolve",
|
|
@@ -1287,12 +1287,12 @@ var Mi = Oi, Ei = [
|
|
|
1287
1287
|
"representName",
|
|
1288
1288
|
"defaultStyle",
|
|
1289
1289
|
"styleAliases"
|
|
1290
|
-
],
|
|
1290
|
+
], Ei = [
|
|
1291
1291
|
"scalar",
|
|
1292
1292
|
"sequence",
|
|
1293
1293
|
"mapping"
|
|
1294
1294
|
];
|
|
1295
|
-
function
|
|
1295
|
+
function Ni(e) {
|
|
1296
1296
|
var n = {};
|
|
1297
1297
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1298
1298
|
e[t].forEach(function(a) {
|
|
@@ -1300,18 +1300,18 @@ function Ki(e) {
|
|
|
1300
1300
|
});
|
|
1301
1301
|
}), n;
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function Ki(e, n) {
|
|
1304
1304
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1305
|
-
if (
|
|
1305
|
+
if (Mi.indexOf(t) === -1)
|
|
1306
1306
|
throw new ce('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1307
1307
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1308
1308
|
return !0;
|
|
1309
1309
|
}, this.construct = n.construct || function(t) {
|
|
1310
1310
|
return t;
|
|
1311
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases =
|
|
1311
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Ni(n.styleAliases || null), Ei.indexOf(this.kind) === -1)
|
|
1312
1312
|
throw new ce('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1313
1313
|
}
|
|
1314
|
-
var oe =
|
|
1314
|
+
var oe = Ki;
|
|
1315
1315
|
function Et(e, n) {
|
|
1316
1316
|
var t = [];
|
|
1317
1317
|
return e[n].forEach(function(a) {
|
|
@@ -1321,7 +1321,7 @@ function Et(e, n) {
|
|
|
1321
1321
|
}), t[i] = a;
|
|
1322
1322
|
}), t;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function Fi() {
|
|
1325
1325
|
var e = {
|
|
1326
1326
|
scalar: {},
|
|
1327
1327
|
sequence: {},
|
|
@@ -1366,7 +1366,7 @@ it.prototype.extend = function(e) {
|
|
|
1366
1366
|
throw new ce("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1367
1367
|
});
|
|
1368
1368
|
var a = Object.create(it.prototype);
|
|
1369
|
-
return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Et(a, "implicit"), a.compiledExplicit = Et(a, "explicit"), a.compiledTypeMap =
|
|
1369
|
+
return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Et(a, "implicit"), a.compiledExplicit = Et(a, "explicit"), a.compiledTypeMap = Fi(a.compiledImplicit, a.compiledExplicit), a;
|
|
1370
1370
|
};
|
|
1371
1371
|
var dn = it, pn = new oe("tag:yaml.org,2002:str", {
|
|
1372
1372
|
kind: "scalar",
|
|
@@ -1390,23 +1390,23 @@ var dn = it, pn = new oe("tag:yaml.org,2002:str", {
|
|
|
1390
1390
|
yn
|
|
1391
1391
|
]
|
|
1392
1392
|
});
|
|
1393
|
-
function
|
|
1393
|
+
function qi(e) {
|
|
1394
1394
|
if (e === null)
|
|
1395
1395
|
return !0;
|
|
1396
1396
|
var n = e.length;
|
|
1397
1397
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function Bi() {
|
|
1400
1400
|
return null;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function Li(e) {
|
|
1403
1403
|
return e === null;
|
|
1404
1404
|
}
|
|
1405
1405
|
var mn = new oe("tag:yaml.org,2002:null", {
|
|
1406
1406
|
kind: "scalar",
|
|
1407
|
-
resolve:
|
|
1408
|
-
construct:
|
|
1409
|
-
predicate:
|
|
1407
|
+
resolve: qi,
|
|
1408
|
+
construct: Bi,
|
|
1409
|
+
predicate: Li,
|
|
1410
1410
|
represent: {
|
|
1411
1411
|
canonical: function() {
|
|
1412
1412
|
return "~";
|
|
@@ -1426,23 +1426,23 @@ var mn = new oe("tag:yaml.org,2002:null", {
|
|
|
1426
1426
|
},
|
|
1427
1427
|
defaultStyle: "lowercase"
|
|
1428
1428
|
});
|
|
1429
|
-
function
|
|
1429
|
+
function Ui(e) {
|
|
1430
1430
|
if (e === null)
|
|
1431
1431
|
return !1;
|
|
1432
1432
|
var n = e.length;
|
|
1433
1433
|
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function Di(e) {
|
|
1436
1436
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function Ri(e) {
|
|
1439
1439
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1440
1440
|
}
|
|
1441
1441
|
var hn = new oe("tag:yaml.org,2002:bool", {
|
|
1442
1442
|
kind: "scalar",
|
|
1443
|
-
resolve:
|
|
1444
|
-
construct:
|
|
1445
|
-
predicate:
|
|
1443
|
+
resolve: Ui,
|
|
1444
|
+
construct: Di,
|
|
1445
|
+
predicate: Ri,
|
|
1446
1446
|
represent: {
|
|
1447
1447
|
lowercase: function(e) {
|
|
1448
1448
|
return e ? "true" : "false";
|
|
@@ -1456,16 +1456,16 @@ var hn = new oe("tag:yaml.org,2002:bool", {
|
|
|
1456
1456
|
},
|
|
1457
1457
|
defaultStyle: "lowercase"
|
|
1458
1458
|
});
|
|
1459
|
-
function
|
|
1459
|
+
function Pi(e) {
|
|
1460
1460
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function Vi(e) {
|
|
1463
1463
|
return 48 <= e && e <= 55;
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function zi(e) {
|
|
1466
1466
|
return 48 <= e && e <= 57;
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function Hi(e) {
|
|
1469
1469
|
if (e === null)
|
|
1470
1470
|
return !1;
|
|
1471
1471
|
var n = e.length, t = 0, a = !1, i;
|
|
@@ -1486,7 +1486,7 @@ function Ji(e) {
|
|
|
1486
1486
|
if (i === "x") {
|
|
1487
1487
|
for (t++; t < n; t++)
|
|
1488
1488
|
if (i = e[t], i !== "_") {
|
|
1489
|
-
if (!
|
|
1489
|
+
if (!Pi(e.charCodeAt(t)))
|
|
1490
1490
|
return !1;
|
|
1491
1491
|
a = !0;
|
|
1492
1492
|
}
|
|
@@ -1495,7 +1495,7 @@ function Ji(e) {
|
|
|
1495
1495
|
if (i === "o") {
|
|
1496
1496
|
for (t++; t < n; t++)
|
|
1497
1497
|
if (i = e[t], i !== "_") {
|
|
1498
|
-
if (!
|
|
1498
|
+
if (!Vi(e.charCodeAt(t)))
|
|
1499
1499
|
return !1;
|
|
1500
1500
|
a = !0;
|
|
1501
1501
|
}
|
|
@@ -1506,13 +1506,13 @@ function Ji(e) {
|
|
|
1506
1506
|
return !1;
|
|
1507
1507
|
for (; t < n; t++)
|
|
1508
1508
|
if (i = e[t], i !== "_") {
|
|
1509
|
-
if (!
|
|
1509
|
+
if (!zi(e.charCodeAt(t)))
|
|
1510
1510
|
return !1;
|
|
1511
1511
|
a = !0;
|
|
1512
1512
|
}
|
|
1513
1513
|
return !(!a || i === "_");
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function Ji(e) {
|
|
1516
1516
|
var n = e, t = 1, a;
|
|
1517
1517
|
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), a = n[0], (a === "-" || a === "+") && (a === "-" && (t = -1), n = n.slice(1), a = n[0]), n === "0")
|
|
1518
1518
|
return 0;
|
|
@@ -1526,14 +1526,14 @@ function Yi(e) {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
return t * parseInt(n, 10);
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1529
|
+
function Yi(e) {
|
|
1530
1530
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ae.isNegativeZero(e);
|
|
1531
1531
|
}
|
|
1532
1532
|
var vn = new oe("tag:yaml.org,2002:int", {
|
|
1533
1533
|
kind: "scalar",
|
|
1534
|
-
resolve:
|
|
1535
|
-
construct:
|
|
1536
|
-
predicate:
|
|
1534
|
+
resolve: Hi,
|
|
1535
|
+
construct: Ji,
|
|
1536
|
+
predicate: Yi,
|
|
1537
1537
|
represent: {
|
|
1538
1538
|
binary: function(e) {
|
|
1539
1539
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1556,21 +1556,21 @@ var vn = new oe("tag:yaml.org,2002:int", {
|
|
|
1556
1556
|
decimal: [10, "dec"],
|
|
1557
1557
|
hexadecimal: [16, "hex"]
|
|
1558
1558
|
}
|
|
1559
|
-
}),
|
|
1559
|
+
}), Wi = new RegExp(
|
|
1560
1560
|
// 2.5e4, 2.5 and integers
|
|
1561
1561
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1562
1562
|
);
|
|
1563
|
-
function
|
|
1564
|
-
return !(e === null || !
|
|
1563
|
+
function Zi(e) {
|
|
1564
|
+
return !(e === null || !Wi.test(e) || // Quick hack to not allow integers end with `_`
|
|
1565
1565
|
// Probably should update regexp & check speed
|
|
1566
1566
|
e[e.length - 1] === "_");
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function Gi(e) {
|
|
1569
1569
|
var n, t;
|
|
1570
1570
|
return n = e.replace(/_/g, "").toLowerCase(), t = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : t * parseFloat(n, 10);
|
|
1571
1571
|
}
|
|
1572
|
-
var
|
|
1573
|
-
function
|
|
1572
|
+
var Qi = /^[-+]?[0-9]+e/;
|
|
1573
|
+
function Xi(e, n) {
|
|
1574
1574
|
var t;
|
|
1575
1575
|
if (isNaN(e))
|
|
1576
1576
|
switch (n) {
|
|
@@ -1601,17 +1601,17 @@ function er(e, n) {
|
|
|
1601
1601
|
}
|
|
1602
1602
|
else if (ae.isNegativeZero(e))
|
|
1603
1603
|
return "-0.0";
|
|
1604
|
-
return t = e.toString(10),
|
|
1604
|
+
return t = e.toString(10), Qi.test(t) ? t.replace("e", ".e") : t;
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function er(e) {
|
|
1607
1607
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ae.isNegativeZero(e));
|
|
1608
1608
|
}
|
|
1609
1609
|
var bn = new oe("tag:yaml.org,2002:float", {
|
|
1610
1610
|
kind: "scalar",
|
|
1611
|
-
resolve:
|
|
1612
|
-
construct:
|
|
1613
|
-
predicate:
|
|
1614
|
-
represent:
|
|
1611
|
+
resolve: Zi,
|
|
1612
|
+
construct: Gi,
|
|
1613
|
+
predicate: er,
|
|
1614
|
+
represent: Xi,
|
|
1615
1615
|
defaultStyle: "lowercase"
|
|
1616
1616
|
}), kn = gn.extend({
|
|
1617
1617
|
implicit: [
|
|
@@ -1625,10 +1625,10 @@ var bn = new oe("tag:yaml.org,2002:float", {
|
|
|
1625
1625
|
), Sn = new RegExp(
|
|
1626
1626
|
"^([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]))?))?$"
|
|
1627
1627
|
);
|
|
1628
|
-
function
|
|
1628
|
+
function tr(e) {
|
|
1629
1629
|
return e === null ? !1 : wn.exec(e) !== null || Sn.exec(e) !== null;
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function nr(e) {
|
|
1632
1632
|
var n, t, a, i, r, o, l, s = 0, c = null, d, u, y;
|
|
1633
1633
|
if (n = wn.exec(e), n === null && (n = Sn.exec(e)), n === null)
|
|
1634
1634
|
throw new Error("Date resolve error");
|
|
@@ -1641,25 +1641,25 @@ function ar(e) {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), y = new Date(Date.UTC(t, a, i, r, o, l, s)), c && y.setTime(y.getTime() - c), y;
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1644
|
+
function ar(e) {
|
|
1645
1645
|
return e.toISOString();
|
|
1646
1646
|
}
|
|
1647
1647
|
var In = new oe("tag:yaml.org,2002:timestamp", {
|
|
1648
1648
|
kind: "scalar",
|
|
1649
|
-
resolve:
|
|
1650
|
-
construct:
|
|
1649
|
+
resolve: tr,
|
|
1650
|
+
construct: nr,
|
|
1651
1651
|
instanceOf: Date,
|
|
1652
|
-
represent:
|
|
1652
|
+
represent: ar
|
|
1653
1653
|
});
|
|
1654
|
-
function
|
|
1654
|
+
function ir(e) {
|
|
1655
1655
|
return e === "<<" || e === null;
|
|
1656
1656
|
}
|
|
1657
1657
|
var An = new oe("tag:yaml.org,2002:merge", {
|
|
1658
1658
|
kind: "scalar",
|
|
1659
|
-
resolve:
|
|
1659
|
+
resolve: ir
|
|
1660
1660
|
}), mt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1661
1661
|
\r`;
|
|
1662
|
-
function
|
|
1662
|
+
function rr(e) {
|
|
1663
1663
|
if (e === null)
|
|
1664
1664
|
return !1;
|
|
1665
1665
|
var n, t, a = 0, i = e.length, r = mt;
|
|
@@ -1671,37 +1671,37 @@ function or(e) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
return a % 8 === 0;
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function or(e) {
|
|
1675
1675
|
var n, t, a = e.replace(/[\r\n=]/g, ""), i = a.length, r = mt, o = 0, l = [];
|
|
1676
1676
|
for (n = 0; n < i; n++)
|
|
1677
1677
|
n % 4 === 0 && n && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)), o = o << 6 | r.indexOf(a.charAt(n));
|
|
1678
1678
|
return t = i % 4 * 6, t === 0 ? (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)) : t === 18 ? (l.push(o >> 10 & 255), l.push(o >> 2 & 255)) : t === 12 && l.push(o >> 4 & 255), new Uint8Array(l);
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function lr(e) {
|
|
1681
1681
|
var n = "", t = 0, a, i, r = e.length, o = mt;
|
|
1682
1682
|
for (a = 0; a < r; a++)
|
|
1683
1683
|
a % 3 === 0 && a && (n += o[t >> 18 & 63], n += o[t >> 12 & 63], n += o[t >> 6 & 63], n += o[t & 63]), t = (t << 8) + e[a];
|
|
1684
1684
|
return i = r % 3, i === 0 ? (n += o[t >> 18 & 63], n += o[t >> 12 & 63], n += o[t >> 6 & 63], n += o[t & 63]) : i === 2 ? (n += o[t >> 10 & 63], n += o[t >> 4 & 63], n += o[t << 2 & 63], n += o[64]) : i === 1 && (n += o[t >> 2 & 63], n += o[t << 4 & 63], n += o[64], n += o[64]), n;
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function sr(e) {
|
|
1687
1687
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1688
1688
|
}
|
|
1689
1689
|
var xn = new oe("tag:yaml.org,2002:binary", {
|
|
1690
1690
|
kind: "scalar",
|
|
1691
|
-
resolve:
|
|
1692
|
-
construct:
|
|
1693
|
-
predicate:
|
|
1694
|
-
represent:
|
|
1695
|
-
}),
|
|
1696
|
-
function
|
|
1691
|
+
resolve: rr,
|
|
1692
|
+
construct: or,
|
|
1693
|
+
predicate: sr,
|
|
1694
|
+
represent: lr
|
|
1695
|
+
}), cr = Object.prototype.hasOwnProperty, ur = Object.prototype.toString;
|
|
1696
|
+
function dr(e) {
|
|
1697
1697
|
if (e === null)
|
|
1698
1698
|
return !0;
|
|
1699
1699
|
var n = [], t, a, i, r, o, l = e;
|
|
1700
1700
|
for (t = 0, a = l.length; t < a; t += 1) {
|
|
1701
|
-
if (i = l[t], o = !1,
|
|
1701
|
+
if (i = l[t], o = !1, ur.call(i) !== "[object Object]")
|
|
1702
1702
|
return !1;
|
|
1703
1703
|
for (r in i)
|
|
1704
|
-
if (
|
|
1704
|
+
if (cr.call(i, r))
|
|
1705
1705
|
if (!o)
|
|
1706
1706
|
o = !0;
|
|
1707
1707
|
else
|
|
@@ -1715,26 +1715,26 @@ function pr(e) {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
return !0;
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1718
|
+
function pr(e) {
|
|
1719
1719
|
return e !== null ? e : [];
|
|
1720
1720
|
}
|
|
1721
1721
|
var _n = new oe("tag:yaml.org,2002:omap", {
|
|
1722
1722
|
kind: "sequence",
|
|
1723
|
-
resolve:
|
|
1724
|
-
construct:
|
|
1725
|
-
}),
|
|
1726
|
-
function
|
|
1723
|
+
resolve: dr,
|
|
1724
|
+
construct: pr
|
|
1725
|
+
}), fr = Object.prototype.toString;
|
|
1726
|
+
function yr(e) {
|
|
1727
1727
|
if (e === null)
|
|
1728
1728
|
return !0;
|
|
1729
1729
|
var n, t, a, i, r, o = e;
|
|
1730
1730
|
for (r = new Array(o.length), n = 0, t = o.length; n < t; n += 1) {
|
|
1731
|
-
if (a = o[n],
|
|
1731
|
+
if (a = o[n], fr.call(a) !== "[object Object]" || (i = Object.keys(a), i.length !== 1))
|
|
1732
1732
|
return !1;
|
|
1733
1733
|
r[n] = [i[0], a[i[0]]];
|
|
1734
1734
|
}
|
|
1735
1735
|
return !0;
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function gr(e) {
|
|
1738
1738
|
if (e === null)
|
|
1739
1739
|
return [];
|
|
1740
1740
|
var n, t, a, i, r, o = e;
|
|
@@ -1744,25 +1744,25 @@ function mr(e) {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
var Tn = new oe("tag:yaml.org,2002:pairs", {
|
|
1746
1746
|
kind: "sequence",
|
|
1747
|
-
resolve:
|
|
1748
|
-
construct:
|
|
1749
|
-
}),
|
|
1750
|
-
function
|
|
1747
|
+
resolve: yr,
|
|
1748
|
+
construct: gr
|
|
1749
|
+
}), mr = Object.prototype.hasOwnProperty;
|
|
1750
|
+
function hr(e) {
|
|
1751
1751
|
if (e === null)
|
|
1752
1752
|
return !0;
|
|
1753
1753
|
var n, t = e;
|
|
1754
1754
|
for (n in t)
|
|
1755
|
-
if (
|
|
1755
|
+
if (mr.call(t, n) && t[n] !== null)
|
|
1756
1756
|
return !1;
|
|
1757
1757
|
return !0;
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function vr(e) {
|
|
1760
1760
|
return e !== null ? e : {};
|
|
1761
1761
|
}
|
|
1762
1762
|
var $n = new oe("tag:yaml.org,2002:set", {
|
|
1763
1763
|
kind: "mapping",
|
|
1764
|
-
resolve:
|
|
1765
|
-
construct:
|
|
1764
|
+
resolve: hr,
|
|
1765
|
+
construct: vr
|
|
1766
1766
|
}), ht = Cn.extend({
|
|
1767
1767
|
implicit: [
|
|
1768
1768
|
In,
|
|
@@ -1774,7 +1774,7 @@ var $n = new oe("tag:yaml.org,2002:set", {
|
|
|
1774
1774
|
Tn,
|
|
1775
1775
|
$n
|
|
1776
1776
|
]
|
|
1777
|
-
}), Ce = Object.prototype.hasOwnProperty, Ve = 1, jn = 2, On = 3, ze = 4, tt = 1,
|
|
1777
|
+
}), Ce = Object.prototype.hasOwnProperty, Ve = 1, jn = 2, On = 3, ze = 4, tt = 1, br = 2, Nt = 3, kr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Cr = /[\x85\u2028\u2029]/, wr = /[,\[\]\{\}]/, Mn = /^(?:!|!!|![a-z\-]+!)$/i, En = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1778
1778
|
function Kt(e) {
|
|
1779
1779
|
return Object.prototype.toString.call(e);
|
|
1780
1780
|
}
|
|
@@ -1787,33 +1787,33 @@ function Ae(e) {
|
|
|
1787
1787
|
function ue(e) {
|
|
1788
1788
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1790
|
+
function $e(e) {
|
|
1791
1791
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1793
|
+
function Sr(e) {
|
|
1794
1794
|
var n;
|
|
1795
1795
|
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function Ir(e) {
|
|
1798
1798
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1800
|
+
function Ar(e) {
|
|
1801
1801
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1802
1802
|
}
|
|
1803
1803
|
function Ft(e) {
|
|
1804
1804
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1805
1805
|
` : 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" : "";
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1807
|
+
function xr(e) {
|
|
1808
1808
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1809
1809
|
(e - 65536 >> 10) + 55296,
|
|
1810
1810
|
(e - 65536 & 1023) + 56320
|
|
1811
1811
|
);
|
|
1812
1812
|
}
|
|
1813
1813
|
var Nn = new Array(256), Kn = new Array(256);
|
|
1814
|
-
for (var
|
|
1815
|
-
Nn[
|
|
1816
|
-
function
|
|
1814
|
+
for (var _e = 0; _e < 256; _e++)
|
|
1815
|
+
Nn[_e] = Ft(_e) ? 1 : 0, Kn[_e] = Ft(_e);
|
|
1816
|
+
function _r(e, n) {
|
|
1817
1817
|
this.input = e, this.filename = n.filename || null, this.schema = n.schema || ht, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.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 = [];
|
|
1818
1818
|
}
|
|
1819
1819
|
function Fn(e, n) {
|
|
@@ -1825,7 +1825,7 @@ function Fn(e, n) {
|
|
|
1825
1825
|
line: e.line,
|
|
1826
1826
|
column: e.position - e.lineStart
|
|
1827
1827
|
};
|
|
1828
|
-
return t.snippet =
|
|
1828
|
+
return t.snippet = Oi(t), new ce(n, t);
|
|
1829
1829
|
}
|
|
1830
1830
|
function A(e, n) {
|
|
1831
1831
|
throw Fn(e, n);
|
|
@@ -1856,7 +1856,7 @@ function be(e, n, t, a) {
|
|
|
1856
1856
|
for (i = 0, r = l.length; i < r; i += 1)
|
|
1857
1857
|
o = l.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || A(e, "expected valid JSON character");
|
|
1858
1858
|
else
|
|
1859
|
-
|
|
1859
|
+
kr.test(l) && A(e, "the stream contains non-printable characters");
|
|
1860
1860
|
e.result += l;
|
|
1861
1861
|
}
|
|
1862
1862
|
}
|
|
@@ -1865,7 +1865,7 @@ function Bt(e, n, t, a) {
|
|
|
1865
1865
|
for (ae.isObject(t) || A(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(t), o = 0, l = i.length; o < l; o += 1)
|
|
1866
1866
|
r = i[o], Ce.call(n, r) || (n[r] = t[r], a[r] = !0);
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function je(e, n, t, a, i, r, o, l, s) {
|
|
1869
1869
|
var c, d;
|
|
1870
1870
|
if (Array.isArray(i))
|
|
1871
1871
|
for (i = Array.prototype.slice.call(i), c = 0, d = i.length; c < d; c += 1)
|
|
@@ -1913,19 +1913,19 @@ function bt(e, n) {
|
|
|
1913
1913
|
n === 1 ? e.result += " " : n > 1 && (e.result += ae.repeat(`
|
|
1914
1914
|
`, n - 1));
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function Tr(e, n, t) {
|
|
1917
1917
|
var a, i, r, o, l, s, c, d, u = e.kind, y = e.result, p;
|
|
1918
|
-
if (p = e.input.charCodeAt(e.position), ue(p) ||
|
|
1918
|
+
if (p = e.input.charCodeAt(e.position), ue(p) || $e(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), ue(i) || t && $e(i)))
|
|
1919
1919
|
return !1;
|
|
1920
1920
|
for (e.kind = "scalar", e.result = "", r = o = e.position, l = !1; p !== 0; ) {
|
|
1921
1921
|
if (p === 58) {
|
|
1922
|
-
if (i = e.input.charCodeAt(e.position + 1), ue(i) || t &&
|
|
1922
|
+
if (i = e.input.charCodeAt(e.position + 1), ue(i) || t && $e(i))
|
|
1923
1923
|
break;
|
|
1924
1924
|
} else if (p === 35) {
|
|
1925
1925
|
if (a = e.input.charCodeAt(e.position - 1), ue(a))
|
|
1926
1926
|
break;
|
|
1927
1927
|
} else {
|
|
1928
|
-
if (e.position === e.lineStart && Ze(e) || t &&
|
|
1928
|
+
if (e.position === e.lineStart && Ze(e) || t && $e(p))
|
|
1929
1929
|
break;
|
|
1930
1930
|
if (me(p))
|
|
1931
1931
|
if (s = e.line, c = e.lineStart, d = e.lineIndent, te(e, !1, -1), e.lineIndent >= n) {
|
|
@@ -1940,7 +1940,7 @@ function $r(e, n, t) {
|
|
|
1940
1940
|
}
|
|
1941
1941
|
return be(e, r, o, !1), e.result ? !0 : (e.kind = u, e.result = y, !1);
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function $r(e, n) {
|
|
1944
1944
|
var t, a, i;
|
|
1945
1945
|
if (t = e.input.charCodeAt(e.position), t !== 39)
|
|
1946
1946
|
return !1;
|
|
@@ -1954,7 +1954,7 @@ function jr(e, n) {
|
|
|
1954
1954
|
me(t) ? (be(e, a, i, !0), bt(e, te(e, !1, n)), a = i = e.position) : e.position === e.lineStart && Ze(e) ? A(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1955
1955
|
A(e, "unexpected end of the stream within a single quoted scalar");
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1957
|
+
function jr(e, n) {
|
|
1958
1958
|
var t, a, i, r, o, l;
|
|
1959
1959
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1960
1960
|
return !1;
|
|
@@ -1966,10 +1966,10 @@ function Or(e, n) {
|
|
|
1966
1966
|
te(e, !1, n);
|
|
1967
1967
|
else if (l < 256 && Nn[l])
|
|
1968
1968
|
e.result += Kn[l], e.position++;
|
|
1969
|
-
else if ((o =
|
|
1969
|
+
else if ((o = Ir(l)) > 0) {
|
|
1970
1970
|
for (i = o, r = 0; i > 0; i--)
|
|
1971
|
-
l = e.input.charCodeAt(++e.position), (o =
|
|
1972
|
-
e.result +=
|
|
1971
|
+
l = e.input.charCodeAt(++e.position), (o = Sr(l)) >= 0 ? r = (r << 4) + o : A(e, "expected hexadecimal character");
|
|
1972
|
+
e.result += xr(r), e.position++;
|
|
1973
1973
|
} else
|
|
1974
1974
|
A(e, "unknown escape sequence");
|
|
1975
1975
|
t = a = e.position;
|
|
@@ -1978,7 +1978,7 @@ function Or(e, n) {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
A(e, "unexpected end of the stream within a double quoted scalar");
|
|
1980
1980
|
}
|
|
1981
|
-
function
|
|
1981
|
+
function Or(e, n) {
|
|
1982
1982
|
var t = !0, a, i, r, o = e.tag, l, s = e.anchor, c, d, u, y, p, C = /* @__PURE__ */ Object.create(null), h, I, m, f;
|
|
1983
1983
|
if (f = e.input.charCodeAt(e.position), f === 91)
|
|
1984
1984
|
d = 93, p = !1, l = [];
|
|
@@ -1989,11 +1989,11 @@ function Mr(e, n) {
|
|
|
1989
1989
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), f = e.input.charCodeAt(++e.position); f !== 0; ) {
|
|
1990
1990
|
if (te(e, !0, n), f = e.input.charCodeAt(e.position), f === d)
|
|
1991
1991
|
return e.position++, e.tag = o, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
|
|
1992
|
-
t ? f === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), I = h = m = null, u = y = !1, f === 63 && (c = e.input.charCodeAt(e.position + 1), ue(c) && (u = y = !0, e.position++, te(e, !0, n))), a = e.line, i = e.lineStart, r = e.position, Oe(e, n, Ve, !1, !0), I = e.tag, h = e.result, te(e, !0, n), f = e.input.charCodeAt(e.position), (y || e.line === a) && f === 58 && (u = !0, f = e.input.charCodeAt(++e.position), te(e, !0, n), Oe(e, n, Ve, !1, !0), m = e.result), p ?
|
|
1992
|
+
t ? f === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), I = h = m = null, u = y = !1, f === 63 && (c = e.input.charCodeAt(e.position + 1), ue(c) && (u = y = !0, e.position++, te(e, !0, n))), a = e.line, i = e.lineStart, r = e.position, Oe(e, n, Ve, !1, !0), I = e.tag, h = e.result, te(e, !0, n), f = e.input.charCodeAt(e.position), (y || e.line === a) && f === 58 && (u = !0, f = e.input.charCodeAt(++e.position), te(e, !0, n), Oe(e, n, Ve, !1, !0), m = e.result), p ? je(e, l, C, I, h, m, a, i, r) : u ? l.push(je(e, null, C, I, h, m, a, i, r)) : l.push(h), te(e, !0, n), f = e.input.charCodeAt(e.position), f === 44 ? (t = !0, f = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1993
1993
|
}
|
|
1994
1994
|
A(e, "unexpected end of the stream within a flow collection");
|
|
1995
1995
|
}
|
|
1996
|
-
function
|
|
1996
|
+
function Mr(e, n) {
|
|
1997
1997
|
var t, a, i = tt, r = !1, o = !1, l = n, s = 0, c = !1, d, u;
|
|
1998
1998
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1999
1999
|
a = !1;
|
|
@@ -2003,8 +2003,8 @@ function Er(e, n) {
|
|
|
2003
2003
|
return !1;
|
|
2004
2004
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
2005
2005
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
2006
|
-
tt === i ? i = u === 43 ? Nt :
|
|
2007
|
-
else if ((d =
|
|
2006
|
+
tt === i ? i = u === 43 ? Nt : br : A(e, "repeat of a chomping mode identifier");
|
|
2007
|
+
else if ((d = Ar(u)) >= 0)
|
|
2008
2008
|
d === 0 ? A(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? A(e, "repeat of an indentation width identifier") : (l = n + d - 1, o = !0);
|
|
2009
2009
|
else
|
|
2010
2010
|
break;
|
|
@@ -2056,13 +2056,13 @@ function Lt(e, n) {
|
|
|
2056
2056
|
}
|
|
2057
2057
|
return l ? (e.tag = a, e.anchor = i, e.kind = "sequence", e.result = r, !0) : !1;
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2059
|
+
function Er(e, n, t) {
|
|
2060
2060
|
var a, i, r, o, l, s, c = e.tag, d = e.anchor, u = {}, y = /* @__PURE__ */ Object.create(null), p = null, C = null, h = null, I = !1, m = !1, f;
|
|
2061
2061
|
if (e.firstTabInLine !== -1)
|
|
2062
2062
|
return !1;
|
|
2063
2063
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), f = e.input.charCodeAt(e.position); f !== 0; ) {
|
|
2064
2064
|
if (!I && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), r = e.line, (f === 63 || f === 58) && ue(a))
|
|
2065
|
-
f === 63 ? (I && (
|
|
2065
|
+
f === 63 ? (I && (je(e, u, y, p, C, null, o, l, s), p = C = h = null), m = !0, I = !0, i = !0) : I ? (I = !1, i = !0) : A(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, f = a;
|
|
2066
2066
|
else {
|
|
2067
2067
|
if (o = e.line, l = e.lineStart, s = e.position, !Oe(e, t, jn, !1, !0))
|
|
2068
2068
|
break;
|
|
@@ -2070,7 +2070,7 @@ function Nr(e, n, t) {
|
|
|
2070
2070
|
for (f = e.input.charCodeAt(e.position); Ae(f); )
|
|
2071
2071
|
f = e.input.charCodeAt(++e.position);
|
|
2072
2072
|
if (f === 58)
|
|
2073
|
-
f = e.input.charCodeAt(++e.position), ue(f) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"), I && (
|
|
2073
|
+
f = e.input.charCodeAt(++e.position), ue(f) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"), I && (je(e, u, y, p, C, null, o, l, s), p = C = h = null), m = !0, I = !1, i = !1, p = e.tag, C = e.result;
|
|
2074
2074
|
else if (m)
|
|
2075
2075
|
A(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2076
2076
|
else
|
|
@@ -2080,14 +2080,14 @@ function Nr(e, n, t) {
|
|
|
2080
2080
|
else
|
|
2081
2081
|
return e.tag = c, e.anchor = d, !0;
|
|
2082
2082
|
}
|
|
2083
|
-
if ((e.line === r || e.lineIndent > n) && (I && (o = e.line, l = e.lineStart, s = e.position), Oe(e, n, ze, !0, i) && (I ? C = e.result : h = e.result), I || (
|
|
2083
|
+
if ((e.line === r || e.lineIndent > n) && (I && (o = e.line, l = e.lineStart, s = e.position), Oe(e, n, ze, !0, i) && (I ? C = e.result : h = e.result), I || (je(e, u, y, p, C, h, o, l, s), p = C = h = null), te(e, !0, -1), f = e.input.charCodeAt(e.position)), (e.line === r || e.lineIndent > n) && f !== 0)
|
|
2084
2084
|
A(e, "bad indentation of a mapping entry");
|
|
2085
2085
|
else if (e.lineIndent < n)
|
|
2086
2086
|
break;
|
|
2087
2087
|
}
|
|
2088
|
-
return I &&
|
|
2088
|
+
return I && je(e, u, y, p, C, null, o, l, s), m && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), m;
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2090
|
+
function Nr(e) {
|
|
2091
2091
|
var n, t = !1, a = !1, i, r, o;
|
|
2092
2092
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
2093
2093
|
return !1;
|
|
@@ -2099,7 +2099,7 @@ function Kr(e) {
|
|
|
2099
2099
|
} else {
|
|
2100
2100
|
for (; o !== 0 && !ue(o); )
|
|
2101
2101
|
o === 33 && (a ? A(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(n - 1, e.position + 1), Mn.test(i) || A(e, "named tag handle cannot contain such characters"), a = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2102
|
-
r = e.input.slice(n, e.position),
|
|
2102
|
+
r = e.input.slice(n, e.position), wr.test(r) && A(e, "tag suffix cannot contain flow indicator characters");
|
|
2103
2103
|
}
|
|
2104
2104
|
r && !En.test(r) && A(e, "tag name cannot contain such characters: " + r);
|
|
2105
2105
|
try {
|
|
@@ -2109,28 +2109,28 @@ function Kr(e) {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
return t ? e.tag = r : Ce.call(e.tagMap, i) ? e.tag = e.tagMap[i] + r : i === "!" ? e.tag = "!" + r : i === "!!" ? e.tag = "tag:yaml.org,2002:" + r : A(e, 'undeclared tag handle "' + i + '"'), !0;
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2112
|
+
function Kr(e) {
|
|
2113
2113
|
var n, t;
|
|
2114
2114
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2115
2115
|
return !1;
|
|
2116
|
-
for (e.anchor !== null && A(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !ue(t) &&
|
|
2116
|
+
for (e.anchor !== null && A(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !ue(t) && !$e(t); )
|
|
2117
2117
|
t = e.input.charCodeAt(++e.position);
|
|
2118
2118
|
return e.position === n && A(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function Fr(e) {
|
|
2121
2121
|
var n, t, a;
|
|
2122
2122
|
if (a = e.input.charCodeAt(e.position), a !== 42)
|
|
2123
2123
|
return !1;
|
|
2124
|
-
for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !ue(a) &&
|
|
2124
|
+
for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !ue(a) && !$e(a); )
|
|
2125
2125
|
a = e.input.charCodeAt(++e.position);
|
|
2126
2126
|
return e.position === n && A(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Ce.call(e.anchorMap, t) || A(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], te(e, !0, -1), !0;
|
|
2127
2127
|
}
|
|
2128
2128
|
function Oe(e, n, t, a, i) {
|
|
2129
2129
|
var r, o, l, s = 1, c = !1, d = !1, u, y, p, C, h, I;
|
|
2130
2130
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = o = l = ze === t || On === t, a && te(e, !0, -1) && (c = !0, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)), s === 1)
|
|
2131
|
-
for (;
|
|
2131
|
+
for (; Nr(e) || Kr(e); )
|
|
2132
2132
|
te(e, !0, -1) ? (c = !0, l = r, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)) : l = !1;
|
|
2133
|
-
if (l && (l = c || i), (s === 1 || ze === t) && (Ve === t || jn === t ? h = n : h = n + 1, I = e.position - e.lineStart, s === 1 ? l && (Lt(e, I) ||
|
|
2133
|
+
if (l && (l = c || i), (s === 1 || ze === t) && (Ve === t || jn === t ? h = n : h = n + 1, I = e.position - e.lineStart, s === 1 ? l && (Lt(e, I) || Er(e, I, h)) || Or(e, h) ? d = !0 : (o && Mr(e, h) || $r(e, h) || jr(e, h) ? d = !0 : Fr(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && A(e, "alias node should not have any properties")) : Tr(e, h, Ve === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Lt(e, I))), e.tag === null)
|
|
2134
2134
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2135
2135
|
else if (e.tag === "?") {
|
|
2136
2136
|
for (e.result !== null && e.kind !== "scalar" && A(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, y = e.implicitTypes.length; u < y; u += 1)
|
|
@@ -2151,7 +2151,7 @@ function Oe(e, n, t, a, i) {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2154
|
+
function qr(e) {
|
|
2155
2155
|
var n = e.position, t, a, i, r = !1, o;
|
|
2156
2156
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (te(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
2157
2157
|
for (r = !0, o = e.input.charCodeAt(++e.position), t = e.position; o !== 0 && !ue(o); )
|
|
@@ -2173,7 +2173,7 @@ function Br(e) {
|
|
|
2173
2173
|
}
|
|
2174
2174
|
o !== 0 && vt(e), Ce.call(qt, a) ? qt[a](e, a, i) : He(e, 'unknown document directive "' + a + '"');
|
|
2175
2175
|
}
|
|
2176
|
-
if (te(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, te(e, !0, -1)) : r && A(e, "directives end mark is expected"), Oe(e, e.lineIndent - 1, ze, !1, !0), te(e, !0, -1), e.checkLineBreaks &&
|
|
2176
|
+
if (te(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, te(e, !0, -1)) : r && A(e, "directives end mark is expected"), Oe(e, e.lineIndent - 1, ze, !1, !0), te(e, !0, -1), e.checkLineBreaks && Cr.test(e.input.slice(n, e.position)) && He(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ze(e)) {
|
|
2177
2177
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, te(e, !0, -1));
|
|
2178
2178
|
return;
|
|
2179
2179
|
}
|
|
@@ -2185,14 +2185,14 @@ function Br(e) {
|
|
|
2185
2185
|
function qn(e, n) {
|
|
2186
2186
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2187
2187
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2188
|
-
var t = new
|
|
2188
|
+
var t = new _r(e, n), a = e.indexOf("\0");
|
|
2189
2189
|
for (a !== -1 && (t.position = a, A(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2190
2190
|
t.lineIndent += 1, t.position += 1;
|
|
2191
2191
|
for (; t.position < t.length - 1; )
|
|
2192
|
-
|
|
2192
|
+
qr(t);
|
|
2193
2193
|
return t.documents;
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2195
|
+
function Br(e, n, t) {
|
|
2196
2196
|
n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
|
|
2197
2197
|
var a = qn(e, t);
|
|
2198
2198
|
if (typeof n != "function")
|
|
@@ -2200,7 +2200,7 @@ function Lr(e, n, t) {
|
|
|
2200
2200
|
for (var i = 0, r = a.length; i < r; i += 1)
|
|
2201
2201
|
n(a[i]);
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function Lr(e, n) {
|
|
2204
2204
|
var t = qn(e, n);
|
|
2205
2205
|
if (t.length !== 0) {
|
|
2206
2206
|
if (t.length === 1)
|
|
@@ -2208,10 +2208,10 @@ function Ur(e, n) {
|
|
|
2208
2208
|
throw new ce("expected a single document in the stream, but found more");
|
|
2209
2209
|
}
|
|
2210
2210
|
}
|
|
2211
|
-
var
|
|
2212
|
-
loadAll:
|
|
2213
|
-
load:
|
|
2214
|
-
}, Ln = Object.prototype.toString, Un = Object.prototype.hasOwnProperty, kt = 65279,
|
|
2211
|
+
var Ur = Br, Dr = Lr, Bn = {
|
|
2212
|
+
loadAll: Ur,
|
|
2213
|
+
load: Dr
|
|
2214
|
+
}, Ln = Object.prototype.toString, Un = Object.prototype.hasOwnProperty, kt = 65279, Rr = 9, qe = 10, Pr = 13, Vr = 32, zr = 33, Hr = 34, rt = 35, Jr = 37, Yr = 38, Wr = 39, Zr = 42, Dn = 44, Gr = 45, Je = 58, Qr = 61, Xr = 62, eo = 63, to = 64, Rn = 91, Pn = 93, no = 96, Vn = 123, ao = 124, zn = 125, se = {};
|
|
2215
2215
|
se[0] = "\\0";
|
|
2216
2216
|
se[7] = "\\a";
|
|
2217
2217
|
se[8] = "\\b";
|
|
@@ -2227,7 +2227,7 @@ se[133] = "\\N";
|
|
|
2227
2227
|
se[160] = "\\_";
|
|
2228
2228
|
se[8232] = "\\L";
|
|
2229
2229
|
se[8233] = "\\P";
|
|
2230
|
-
var
|
|
2230
|
+
var io = [
|
|
2231
2231
|
"y",
|
|
2232
2232
|
"Y",
|
|
2233
2233
|
"yes",
|
|
@@ -2244,8 +2244,8 @@ var ro = [
|
|
|
2244
2244
|
"off",
|
|
2245
2245
|
"Off",
|
|
2246
2246
|
"OFF"
|
|
2247
|
-
],
|
|
2248
|
-
function
|
|
2247
|
+
], ro = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2248
|
+
function oo(e, n) {
|
|
2249
2249
|
var t, a, i, r, o, l, s;
|
|
2250
2250
|
if (n === null)
|
|
2251
2251
|
return {};
|
|
@@ -2253,7 +2253,7 @@ function lo(e, n) {
|
|
|
2253
2253
|
o = a[i], l = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), s = e.compiledTypeMap.fallback[o], s && Un.call(s.styleAliases, l) && (l = s.styleAliases[l]), t[o] = l;
|
|
2254
2254
|
return t;
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2256
|
+
function lo(e) {
|
|
2257
2257
|
var n, t, a;
|
|
2258
2258
|
if (n = e.toString(16).toUpperCase(), e <= 255)
|
|
2259
2259
|
t = "x", a = 2;
|
|
@@ -2265,9 +2265,9 @@ function so(e) {
|
|
|
2265
2265
|
throw new ce("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2266
2266
|
return "\\" + t + ae.repeat("0", a - n.length) + n;
|
|
2267
2267
|
}
|
|
2268
|
-
var
|
|
2269
|
-
function
|
|
2270
|
-
this.schema = e.schema || ht, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ae.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2268
|
+
var so = 1, Be = 2;
|
|
2269
|
+
function co(e) {
|
|
2270
|
+
this.schema = e.schema || ht, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ae.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = oo(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 === '"' ? Be : so, 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;
|
|
2271
2271
|
}
|
|
2272
2272
|
function Ut(e, n) {
|
|
2273
2273
|
for (var t = ae.repeat(" ", n), a = 0, i = -1, r = "", o, l = e.length; a < l; )
|
|
@@ -2280,7 +2280,7 @@ function ot(e, n) {
|
|
|
2280
2280
|
return `
|
|
2281
2281
|
` + ae.repeat(" ", e.indent * n);
|
|
2282
2282
|
}
|
|
2283
|
-
function
|
|
2283
|
+
function uo(e, n) {
|
|
2284
2284
|
var t, a, i;
|
|
2285
2285
|
for (t = 0, a = e.implicitTypes.length; t < a; t += 1)
|
|
2286
2286
|
if (i = e.implicitTypes[t], i.resolve(n))
|
|
@@ -2288,13 +2288,13 @@ function po(e, n) {
|
|
|
2288
2288
|
return !1;
|
|
2289
2289
|
}
|
|
2290
2290
|
function Ye(e) {
|
|
2291
|
-
return e ===
|
|
2291
|
+
return e === Vr || e === Rr;
|
|
2292
2292
|
}
|
|
2293
2293
|
function Le(e) {
|
|
2294
2294
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== kt || 65536 <= e && e <= 1114111;
|
|
2295
2295
|
}
|
|
2296
2296
|
function Dt(e) {
|
|
2297
|
-
return Le(e) && e !== kt && e !==
|
|
2297
|
+
return Le(e) && e !== kt && e !== Pr && e !== qe;
|
|
2298
2298
|
}
|
|
2299
2299
|
function Rt(e, n, t) {
|
|
2300
2300
|
var a = Dt(e), i = a && !Ye(e);
|
|
@@ -2306,10 +2306,10 @@ function Rt(e, n, t) {
|
|
|
2306
2306
|
) : a && e !== Dn && e !== Rn && e !== Pn && e !== Vn && e !== zn) && e !== rt && !(n === Je && !i) || Dt(n) && !Ye(n) && e === rt || n === Je && i
|
|
2307
2307
|
);
|
|
2308
2308
|
}
|
|
2309
|
-
function
|
|
2310
|
-
return Le(e) && e !== kt && !Ye(e) && e !==
|
|
2309
|
+
function po(e) {
|
|
2310
|
+
return Le(e) && e !== kt && !Ye(e) && e !== Gr && e !== eo && e !== Je && e !== Dn && e !== Rn && e !== Pn && e !== Vn && e !== zn && e !== rt && e !== Yr && e !== Zr && e !== zr && e !== ao && e !== Qr && e !== Xr && e !== Wr && e !== Hr && e !== Jr && e !== to && e !== no;
|
|
2311
2311
|
}
|
|
2312
|
-
function
|
|
2312
|
+
function fo(e) {
|
|
2313
2313
|
return !Ye(e) && e !== Je;
|
|
2314
2314
|
}
|
|
2315
2315
|
function Ee(e, n) {
|
|
@@ -2320,13 +2320,13 @@ function Hn(e) {
|
|
|
2320
2320
|
var n = /^\n* /;
|
|
2321
2321
|
return n.test(e);
|
|
2322
2322
|
}
|
|
2323
|
-
var Jn = 1, lt = 2, Yn = 3, Wn = 4,
|
|
2324
|
-
function
|
|
2325
|
-
var s, c = 0, d = null, u = !1, y = !1, p = a !== -1, C = -1, h =
|
|
2323
|
+
var Jn = 1, lt = 2, Yn = 3, Wn = 4, Te = 5;
|
|
2324
|
+
function yo(e, n, t, a, i, r, o, l) {
|
|
2325
|
+
var s, c = 0, d = null, u = !1, y = !1, p = a !== -1, C = -1, h = po(Ee(e, 0)) && fo(Ee(e, e.length - 1));
|
|
2326
2326
|
if (n || o)
|
|
2327
2327
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2328
2328
|
if (c = Ee(e, s), !Le(c))
|
|
2329
|
-
return
|
|
2329
|
+
return Te;
|
|
2330
2330
|
h = h && Rt(c, d, l), d = c;
|
|
2331
2331
|
}
|
|
2332
2332
|
else {
|
|
@@ -2335,24 +2335,24 @@ function go(e, n, t, a, i, r, o, l) {
|
|
|
2335
2335
|
u = !0, p && (y = y || // Foldable line = too long, and not more-indented.
|
|
2336
2336
|
s - C - 1 > a && e[C + 1] !== " ", C = s);
|
|
2337
2337
|
else if (!Le(c))
|
|
2338
|
-
return
|
|
2338
|
+
return Te;
|
|
2339
2339
|
h = h && Rt(c, d, l), d = c;
|
|
2340
2340
|
}
|
|
2341
2341
|
y = y || p && s - C - 1 > a && e[C + 1] !== " ";
|
|
2342
2342
|
}
|
|
2343
|
-
return !u && !y ? h && !o && !i(e) ? Jn : r === Be ?
|
|
2343
|
+
return !u && !y ? h && !o && !i(e) ? Jn : r === Be ? Te : lt : t > 9 && Hn(e) ? Te : o ? r === Be ? Te : lt : y ? Wn : Yn;
|
|
2344
2344
|
}
|
|
2345
|
-
function
|
|
2345
|
+
function go(e, n, t, a, i) {
|
|
2346
2346
|
e.dump = function() {
|
|
2347
2347
|
if (n.length === 0)
|
|
2348
2348
|
return e.quotingType === Be ? '""' : "''";
|
|
2349
|
-
if (!e.noCompatMode && (
|
|
2349
|
+
if (!e.noCompatMode && (io.indexOf(n) !== -1 || ro.test(n)))
|
|
2350
2350
|
return e.quotingType === Be ? '"' + n + '"' : "'" + n + "'";
|
|
2351
2351
|
var r = e.indent * Math.max(1, t), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - r), l = a || e.flowLevel > -1 && t >= e.flowLevel;
|
|
2352
2352
|
function s(c) {
|
|
2353
|
-
return
|
|
2353
|
+
return uo(e, c);
|
|
2354
2354
|
}
|
|
2355
|
-
switch (
|
|
2355
|
+
switch (yo(
|
|
2356
2356
|
n,
|
|
2357
2357
|
l,
|
|
2358
2358
|
e.indent,
|
|
@@ -2369,9 +2369,9 @@ function mo(e, n, t, a, i) {
|
|
|
2369
2369
|
case Yn:
|
|
2370
2370
|
return "|" + Pt(n, e.indent) + Vt(Ut(n, r));
|
|
2371
2371
|
case Wn:
|
|
2372
|
-
return ">" + Pt(n, e.indent) + Vt(Ut(
|
|
2373
|
-
case
|
|
2374
|
-
return '"' +
|
|
2372
|
+
return ">" + Pt(n, e.indent) + Vt(Ut(mo(n, o), r));
|
|
2373
|
+
case Te:
|
|
2374
|
+
return '"' + ho(n) + '"';
|
|
2375
2375
|
default:
|
|
2376
2376
|
throw new ce("impossible error: invalid scalar style");
|
|
2377
2377
|
}
|
|
@@ -2389,7 +2389,7 @@ function Vt(e) {
|
|
|
2389
2389
|
return e[e.length - 1] === `
|
|
2390
2390
|
` ? e.slice(0, -1) : e;
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2392
|
+
function mo(e, n) {
|
|
2393
2393
|
for (var t = /(\n+)([^\n]*)/g, a = function() {
|
|
2394
2394
|
var c = e.indexOf(`
|
|
2395
2395
|
`);
|
|
@@ -2412,12 +2412,12 @@ function zt(e, n) {
|
|
|
2412
2412
|
`, e.length - i > n && o > i ? s += e.slice(i, o) + `
|
|
2413
2413
|
` + e.slice(o + 1) : s += e.slice(i), s.slice(1);
|
|
2414
2414
|
}
|
|
2415
|
-
function
|
|
2415
|
+
function ho(e) {
|
|
2416
2416
|
for (var n = "", t = 0, a, i = 0; i < e.length; t >= 65536 ? i += 2 : i++)
|
|
2417
|
-
t = Ee(e, i), a = se[t], !a && Le(t) ? (n += e[i], t >= 65536 && (n += e[i + 1])) : n += a ||
|
|
2417
|
+
t = Ee(e, i), a = se[t], !a && Le(t) ? (n += e[i], t >= 65536 && (n += e[i + 1])) : n += a || lo(t);
|
|
2418
2418
|
return n;
|
|
2419
2419
|
}
|
|
2420
|
-
function
|
|
2420
|
+
function vo(e, n, t) {
|
|
2421
2421
|
var a = "", i = e.tag, r, o, l;
|
|
2422
2422
|
for (r = 0, o = t.length; r < o; r += 1)
|
|
2423
2423
|
l = t[r], e.replacer && (l = e.replacer.call(t, String(r), l)), (ve(e, n, l, !1, !1) || typeof l > "u" && ve(e, n, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
|
|
@@ -2429,13 +2429,13 @@ function Ht(e, n, t, a) {
|
|
|
2429
2429
|
s = t[o], e.replacer && (s = e.replacer.call(t, String(o), s)), (ve(e, n + 1, s, !0, !0, !1, !0) || typeof s > "u" && ve(e, n + 1, null, !0, !0, !1, !0)) && ((!a || i !== "") && (i += ot(e, n)), e.dump && qe === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2430
2430
|
e.tag = r, e.dump = i || "[]";
|
|
2431
2431
|
}
|
|
2432
|
-
function
|
|
2432
|
+
function bo(e, n, t) {
|
|
2433
2433
|
var a = "", i = e.tag, r = Object.keys(t), o, l, s, c, d;
|
|
2434
2434
|
for (o = 0, l = r.length; o < l; o += 1)
|
|
2435
2435
|
d = "", a !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = r[o], c = t[s], e.replacer && (c = e.replacer.call(t, s, c)), ve(e, n, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ve(e, n, c, !1, !1) && (d += e.dump, a += d));
|
|
2436
2436
|
e.tag = i, e.dump = "{" + a + "}";
|
|
2437
2437
|
}
|
|
2438
|
-
function
|
|
2438
|
+
function ko(e, n, t, a) {
|
|
2439
2439
|
var i = "", r = e.tag, o = Object.keys(t), l, s, c, d, u, y;
|
|
2440
2440
|
if (e.sortKeys === !0)
|
|
2441
2441
|
o.sort();
|
|
@@ -2473,11 +2473,11 @@ function ve(e, n, t, a, i, r, o) {
|
|
|
2473
2473
|
e.dump = "*ref_" + u;
|
|
2474
2474
|
else {
|
|
2475
2475
|
if (d && y && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2476
|
-
a && Object.keys(e.dump).length !== 0 ? (
|
|
2476
|
+
a && Object.keys(e.dump).length !== 0 ? (ko(e, n, e.dump, i), y && (e.dump = "&ref_" + u + e.dump)) : (bo(e, n, e.dump), y && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2477
2477
|
else if (l === "[object Array]")
|
|
2478
|
-
a && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? Ht(e, n - 1, e.dump, i) : Ht(e, n, e.dump, i), y && (e.dump = "&ref_" + u + e.dump)) : (
|
|
2478
|
+
a && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? Ht(e, n - 1, e.dump, i) : Ht(e, n, e.dump, i), y && (e.dump = "&ref_" + u + e.dump)) : (vo(e, n, e.dump), y && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2479
2479
|
else if (l === "[object String]")
|
|
2480
|
-
e.tag !== "?" &&
|
|
2480
|
+
e.tag !== "?" && go(e, e.dump, n, r, s);
|
|
2481
2481
|
else {
|
|
2482
2482
|
if (l === "[object Undefined]" || e.skipInvalid)
|
|
2483
2483
|
return !1;
|
|
@@ -2489,7 +2489,7 @@ function ve(e, n, t, a, i, r, o) {
|
|
|
2489
2489
|
}
|
|
2490
2490
|
return !0;
|
|
2491
2491
|
}
|
|
2492
|
-
function
|
|
2492
|
+
function Co(e, n) {
|
|
2493
2493
|
var t = [], a = [], i, r;
|
|
2494
2494
|
for (st(e, t, a), i = 0, r = a.length; i < r; i += 1)
|
|
2495
2495
|
n.duplicates.push(t[a[i]]);
|
|
@@ -2507,23 +2507,23 @@ function st(e, n, t) {
|
|
|
2507
2507
|
for (a = Object.keys(e), i = 0, r = a.length; i < r; i += 1)
|
|
2508
2508
|
st(e[a[i]], n, t);
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2510
|
+
function wo(e, n) {
|
|
2511
2511
|
n = n || {};
|
|
2512
|
-
var t = new
|
|
2513
|
-
t.noRefs ||
|
|
2512
|
+
var t = new co(n);
|
|
2513
|
+
t.noRefs || Co(e, t);
|
|
2514
2514
|
var a = e;
|
|
2515
2515
|
return t.replacer && (a = t.replacer.call({ "": a }, "", a)), ve(t, 0, a, !0, !0) ? t.dump + `
|
|
2516
2516
|
` : "";
|
|
2517
2517
|
}
|
|
2518
|
-
var
|
|
2519
|
-
dump:
|
|
2518
|
+
var So = wo, Io = {
|
|
2519
|
+
dump: So
|
|
2520
2520
|
};
|
|
2521
2521
|
function Ct(e, n) {
|
|
2522
2522
|
return function() {
|
|
2523
2523
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2524
2524
|
};
|
|
2525
2525
|
}
|
|
2526
|
-
var
|
|
2526
|
+
var Ao = oe, xo = dn, _o = gn, To = kn, $o = Cn, jo = ht, Oo = Bn.load, Mo = Bn.loadAll, Eo = Io.dump, No = ce, Ko = {
|
|
2527
2527
|
binary: xn,
|
|
2528
2528
|
float: bn,
|
|
2529
2529
|
map: yn,
|
|
@@ -2537,38 +2537,38 @@ var xo = oe, _o = dn, To = gn, $o = kn, jo = Cn, Oo = ht, Mo = Bn.load, Eo = Bn.
|
|
|
2537
2537
|
omap: _n,
|
|
2538
2538
|
seq: fn,
|
|
2539
2539
|
str: pn
|
|
2540
|
-
},
|
|
2541
|
-
Type:
|
|
2542
|
-
Schema:
|
|
2543
|
-
FAILSAFE_SCHEMA:
|
|
2544
|
-
JSON_SCHEMA:
|
|
2545
|
-
CORE_SCHEMA:
|
|
2546
|
-
DEFAULT_SCHEMA:
|
|
2547
|
-
load:
|
|
2548
|
-
loadAll:
|
|
2549
|
-
dump:
|
|
2550
|
-
YAMLException:
|
|
2551
|
-
types:
|
|
2552
|
-
safeLoad:
|
|
2553
|
-
safeLoadAll:
|
|
2554
|
-
safeDump:
|
|
2540
|
+
}, Fo = Ct("safeLoad", "load"), qo = Ct("safeLoadAll", "loadAll"), Bo = Ct("safeDump", "dump"), Lo = {
|
|
2541
|
+
Type: Ao,
|
|
2542
|
+
Schema: xo,
|
|
2543
|
+
FAILSAFE_SCHEMA: _o,
|
|
2544
|
+
JSON_SCHEMA: To,
|
|
2545
|
+
CORE_SCHEMA: $o,
|
|
2546
|
+
DEFAULT_SCHEMA: jo,
|
|
2547
|
+
load: Oo,
|
|
2548
|
+
loadAll: Mo,
|
|
2549
|
+
dump: Eo,
|
|
2550
|
+
YAMLException: No,
|
|
2551
|
+
types: Ko,
|
|
2552
|
+
safeLoad: Fo,
|
|
2553
|
+
safeLoadAll: qo,
|
|
2554
|
+
safeDump: Bo
|
|
2555
2555
|
};
|
|
2556
|
-
const
|
|
2556
|
+
const Uo = {
|
|
2557
2557
|
key: 0,
|
|
2558
2558
|
class: "config-card-display-form"
|
|
2559
|
-
},
|
|
2559
|
+
}, Do = ["data-testid"], Ro = {
|
|
2560
2560
|
key: 0,
|
|
2561
2561
|
class: "config-card-prop-section-title"
|
|
2562
|
-
},
|
|
2562
|
+
}, Po = {
|
|
2563
2563
|
key: 1,
|
|
2564
2564
|
class: "config-card-display-json"
|
|
2565
|
-
},
|
|
2565
|
+
}, Vo = {
|
|
2566
2566
|
key: 0,
|
|
2567
2567
|
class: "config-card-display-json-endpoint"
|
|
2568
|
-
},
|
|
2568
|
+
}, zo = {
|
|
2569
2569
|
key: 2,
|
|
2570
2570
|
class: "config-card-display-yaml"
|
|
2571
|
-
},
|
|
2571
|
+
}, Ho = /* @__PURE__ */ ne({
|
|
2572
2572
|
__name: "ConfigCardDisplay",
|
|
2573
2573
|
props: {
|
|
2574
2574
|
propertyCollections: {
|
|
@@ -2611,18 +2611,18 @@ const Do = {
|
|
|
2611
2611
|
return we(() => n.format, (s) => {
|
|
2612
2612
|
if (s !== "structured") {
|
|
2613
2613
|
const c = JSON.parse(JSON.stringify(n.record));
|
|
2614
|
-
delete c.created_at, delete c.updated_at, s === "json" ? r.value = JSON.stringify(c, null, 2) : s === "yaml" && (o.value =
|
|
2614
|
+
delete c.created_at, delete c.updated_at, s === "json" ? r.value = JSON.stringify(c, null, 2) : s === "yaml" && (o.value = Lo.dump(c));
|
|
2615
2615
|
}
|
|
2616
2616
|
}, { immediate: !0 }), (s, c) => {
|
|
2617
2617
|
const d = K("KBadge"), u = K("KCodeBlock");
|
|
2618
2618
|
return g(), _(fe, null, [
|
|
2619
|
-
e.format === "structured" ? (g(), _("div",
|
|
2619
|
+
e.format === "structured" ? (g(), _("div", Uo, [
|
|
2620
2620
|
(g(!0), _(fe, null, de(e.propListTypes, (y) => (g(), _("div", {
|
|
2621
2621
|
key: `config-card-details-${y}-props`,
|
|
2622
2622
|
class: ke(`config-card-details-${y}-props`),
|
|
2623
2623
|
"data-testid": `config-card-details-${y}-props`
|
|
2624
2624
|
}, [
|
|
2625
|
-
y !== "basic" ? (g(), _("div",
|
|
2625
|
+
y !== "basic" ? (g(), _("div", Ro, N(y === "advanced" ? k(a)("baseConfigCard.sections.advanced") : k(a)("baseConfigCard.sections.plugin")), 1)) : V("", !0),
|
|
2626
2626
|
(g(!0), _(fe, null, de(e.propertyCollections[y], (p) => (g(), q(gt, {
|
|
2627
2627
|
key: p.key,
|
|
2628
2628
|
item: p
|
|
@@ -2646,10 +2646,10 @@ const Do = {
|
|
|
2646
2646
|
key: "0"
|
|
2647
2647
|
} : void 0
|
|
2648
2648
|
]), 1032, ["item"]))), 128))
|
|
2649
|
-
], 10,
|
|
2649
|
+
], 10, Do))), 128))
|
|
2650
2650
|
])) : V("", !0),
|
|
2651
|
-
e.format === "json" ? (g(), _("div",
|
|
2652
|
-
n.fetcherUrl ? (g(), _("div",
|
|
2651
|
+
e.format === "json" ? (g(), _("div", Po, [
|
|
2652
|
+
n.fetcherUrl ? (g(), _("div", Vo, [
|
|
2653
2653
|
j(d, { appearance: "get" }, {
|
|
2654
2654
|
default: v(() => [
|
|
2655
2655
|
H(N(k(a)("baseConfigCard.endpoints.get")), 1)
|
|
@@ -2672,7 +2672,7 @@ const Do = {
|
|
|
2672
2672
|
theme: "dark"
|
|
2673
2673
|
}, null, 8, ["class", "code"])
|
|
2674
2674
|
])) : V("", !0),
|
|
2675
|
-
e.format === "yaml" ? (g(), _("div",
|
|
2675
|
+
e.format === "yaml" ? (g(), _("div", zo, [
|
|
2676
2676
|
j(u, {
|
|
2677
2677
|
id: "config-card-codeblock",
|
|
2678
2678
|
code: o.value,
|
|
@@ -2683,18 +2683,18 @@ const Do = {
|
|
|
2683
2683
|
], 64);
|
|
2684
2684
|
};
|
|
2685
2685
|
}
|
|
2686
|
-
}),
|
|
2686
|
+
}), Jo = /* @__PURE__ */ ye(Ho, [["__scopeId", "data-v-27f85338"]]), Yt = "24px", Yo = (e, n) => {
|
|
2687
2687
|
const t = e.__vccOpts || e;
|
|
2688
2688
|
for (const [a, i] of n)
|
|
2689
2689
|
t[a] = i;
|
|
2690
2690
|
return t;
|
|
2691
|
-
},
|
|
2691
|
+
}, Wo = (e) => (Qt("data-v-84d5ee61"), e = e(), Xt(), e), Zo = ["aria-hidden"], Go = {
|
|
2692
2692
|
key: 0,
|
|
2693
2693
|
"data-testid": "kui-icon-svg-title"
|
|
2694
|
-
},
|
|
2694
|
+
}, Qo = /* @__PURE__ */ Wo(() => /* @__PURE__ */ B("path", {
|
|
2695
2695
|
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",
|
|
2696
2696
|
fill: "currentColor"
|
|
2697
|
-
}, null, -1)),
|
|
2697
|
+
}, null, -1)), Xo = /* @__PURE__ */ ne({
|
|
2698
2698
|
__name: "BookIcon",
|
|
2699
2699
|
props: {
|
|
2700
2700
|
/** The accessibility text provided to screen readers */
|
|
@@ -2763,7 +2763,7 @@ const Do = {
|
|
|
2763
2763
|
lineHeight: "0",
|
|
2764
2764
|
width: t.value
|
|
2765
2765
|
}));
|
|
2766
|
-
return (i, r) => (g(), q(
|
|
2766
|
+
return (i, r) => (g(), q(xe(e.as), {
|
|
2767
2767
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2768
2768
|
class: "kui-icon book-icon",
|
|
2769
2769
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -2780,23 +2780,23 @@ const Do = {
|
|
|
2780
2780
|
width: "100%",
|
|
2781
2781
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2782
2782
|
}, [
|
|
2783
|
-
e.title ? (g(), _("title",
|
|
2784
|
-
|
|
2785
|
-
], 8,
|
|
2783
|
+
e.title ? (g(), _("title", Go, N(e.title), 1)) : V("", !0),
|
|
2784
|
+
Qo
|
|
2785
|
+
], 8, Zo))
|
|
2786
2786
|
]),
|
|
2787
2787
|
_: 1
|
|
2788
2788
|
}, 8, ["aria-hidden", "style"]));
|
|
2789
2789
|
}
|
|
2790
|
-
}),
|
|
2790
|
+
}), el = /* @__PURE__ */ Yo(Xo, [["__scopeId", "data-v-84d5ee61"]]), tl = { "data-testid": "config-card-title" }, nl = { class: "config-card-actions" }, al = ["href"], il = {
|
|
2791
2791
|
key: 2,
|
|
2792
2792
|
class: "config-card-details-section"
|
|
2793
|
-
},
|
|
2793
|
+
}, rl = {
|
|
2794
2794
|
key: 3,
|
|
2795
2795
|
class: "config-card-details-section"
|
|
2796
|
-
},
|
|
2796
|
+
}, ol = ["data-testid"], ll = {
|
|
2797
2797
|
key: 0,
|
|
2798
2798
|
class: "config-card-prop-section-title"
|
|
2799
|
-
},
|
|
2799
|
+
}, sl = /* @__PURE__ */ ne({
|
|
2800
2800
|
__name: "EntityBaseConfigCard",
|
|
2801
2801
|
props: {
|
|
2802
2802
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3016,7 +3016,7 @@ const Do = {
|
|
|
3016
3016
|
const $ = K("KLabel"), F = K("KSelect"), D = K("KButton"), R = K("KClipboardProvider"), Y = K("KSkeleton"), Z = K("KEmptyState"), ie = K("KCard");
|
|
3017
3017
|
return g(), q(ie, { class: "kong-ui-entity-base-config-card" }, Ie({
|
|
3018
3018
|
actions: v(() => [
|
|
3019
|
-
B("div",
|
|
3019
|
+
B("div", nl, [
|
|
3020
3020
|
z(b.$slots, "actions", {}, void 0, !0),
|
|
3021
3021
|
e.config.jsonYamlEnabled ? (g(), q($, {
|
|
3022
3022
|
key: 0,
|
|
@@ -3047,8 +3047,8 @@ const Do = {
|
|
|
3047
3047
|
rel: "noopener",
|
|
3048
3048
|
target: "_blank"
|
|
3049
3049
|
}, [
|
|
3050
|
-
j(k(
|
|
3051
|
-
], 8,
|
|
3050
|
+
j(k(el), { size: k(oi) }, null, 8, ["size"])
|
|
3051
|
+
], 8, al)
|
|
3052
3052
|
]),
|
|
3053
3053
|
_: 1
|
|
3054
3054
|
})) : V("", !0),
|
|
@@ -3086,8 +3086,8 @@ const Do = {
|
|
|
3086
3086
|
]),
|
|
3087
3087
|
_: 1
|
|
3088
3088
|
})) : V("", !0),
|
|
3089
|
-
e.config.jsonYamlEnabled ? (g(), _("div",
|
|
3090
|
-
j(
|
|
3089
|
+
e.config.jsonYamlEnabled ? (g(), _("div", il, [
|
|
3090
|
+
j(Jo, {
|
|
3091
3091
|
"fetcher-url": J.value,
|
|
3092
3092
|
format: u.value,
|
|
3093
3093
|
"prop-list-types": x.value,
|
|
@@ -3104,13 +3104,13 @@ const Do = {
|
|
|
3104
3104
|
])
|
|
3105
3105
|
}))
|
|
3106
3106
|
]), 1032, ["fetcher-url", "format", "prop-list-types", "property-collections", "record"])
|
|
3107
|
-
])) : (g(), _("div",
|
|
3107
|
+
])) : (g(), _("div", rl, [
|
|
3108
3108
|
(g(!0), _(fe, null, de(x.value, (X) => (g(), _("div", {
|
|
3109
3109
|
key: `config-card-details-${X}-props`,
|
|
3110
3110
|
class: ke(`config-card-details-${X}-props`),
|
|
3111
3111
|
"data-testid": `config-card-details-${X}-props`
|
|
3112
3112
|
}, [
|
|
3113
|
-
X !== "basic" ? (g(), _("div",
|
|
3113
|
+
X !== "basic" ? (g(), _("div", ll, N(X === "advanced" ? k(o)("baseConfigCard.sections.advanced") : k(o)("baseConfigCard.sections.plugin")), 1)) : V("", !0),
|
|
3114
3114
|
(g(!0), _(fe, null, de(w.value[X], (G) => (g(), q(gt, {
|
|
3115
3115
|
key: G.key,
|
|
3116
3116
|
item: G
|
|
@@ -3134,7 +3134,7 @@ const Do = {
|
|
|
3134
3134
|
key: "0"
|
|
3135
3135
|
} : void 0
|
|
3136
3136
|
]), 1032, ["item"]))), 128))
|
|
3137
|
-
], 10,
|
|
3137
|
+
], 10, ol))), 128))
|
|
3138
3138
|
]))
|
|
3139
3139
|
]),
|
|
3140
3140
|
_: 2
|
|
@@ -3142,7 +3142,7 @@ const Do = {
|
|
|
3142
3142
|
e.hideTitle ? void 0 : {
|
|
3143
3143
|
name: "title",
|
|
3144
3144
|
fn: v(() => [
|
|
3145
|
-
B("div",
|
|
3145
|
+
B("div", tl, [
|
|
3146
3146
|
z(b.$slots, "title", {}, () => [
|
|
3147
3147
|
H(N(k(o)("baseConfigCard.title")), 1)
|
|
3148
3148
|
], !0)
|
|
@@ -3153,10 +3153,10 @@ const Do = {
|
|
|
3153
3153
|
]), 1024);
|
|
3154
3154
|
};
|
|
3155
3155
|
}
|
|
3156
|
-
}),
|
|
3156
|
+
}), cl = /* @__PURE__ */ ye(sl, [["__scopeId", "data-v-4f47d6ad"]]), ul = {
|
|
3157
3157
|
class: "form-actions",
|
|
3158
3158
|
"data-testid": "form-actions"
|
|
3159
|
-
},
|
|
3159
|
+
}, dl = /* @__PURE__ */ ne({
|
|
3160
3160
|
__name: "EntityBaseForm",
|
|
3161
3161
|
props: {
|
|
3162
3162
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3266,7 +3266,7 @@ const Do = {
|
|
|
3266
3266
|
appearance: "danger",
|
|
3267
3267
|
"data-testid": "form-error"
|
|
3268
3268
|
}, null, 8, ["alert-message"])) : V("", !0),
|
|
3269
|
-
B("div",
|
|
3269
|
+
B("div", ul, [
|
|
3270
3270
|
z(m.$slots, "form-actions", {}, () => [
|
|
3271
3271
|
j(L, {
|
|
3272
3272
|
appearance: "secondary",
|
|
@@ -3298,10 +3298,10 @@ const Do = {
|
|
|
3298
3298
|
});
|
|
3299
3299
|
};
|
|
3300
3300
|
}
|
|
3301
|
-
}),
|
|
3301
|
+
}), pl = /* @__PURE__ */ ye(dl, [["__scopeId", "data-v-448d8512"]]), fl = {
|
|
3302
3302
|
key: 0,
|
|
3303
3303
|
"data-testid": "first-col"
|
|
3304
|
-
},
|
|
3304
|
+
}, yl = /* @__PURE__ */ ne({
|
|
3305
3305
|
__name: "EntityBaseTableCell",
|
|
3306
3306
|
props: {
|
|
3307
3307
|
keyName: {
|
|
@@ -3357,7 +3357,7 @@ const Do = {
|
|
|
3357
3357
|
ref: s,
|
|
3358
3358
|
class: "content-wrapper"
|
|
3359
3359
|
}, [
|
|
3360
|
-
i.value ? (g(), _("span",
|
|
3360
|
+
i.value ? (g(), _("span", fl, [
|
|
3361
3361
|
j(m, {
|
|
3362
3362
|
label: C.value ? u.value : "",
|
|
3363
3363
|
"max-width": "300",
|
|
@@ -3372,10 +3372,10 @@ const Do = {
|
|
|
3372
3372
|
], 512);
|
|
3373
3373
|
};
|
|
3374
3374
|
}
|
|
3375
|
-
}),
|
|
3375
|
+
}), gl = /* @__PURE__ */ ye(yl, [["__scopeId", "data-v-e42a20c9"]]), ml = { class: "toolbar-container" }, hl = {
|
|
3376
3376
|
key: 0,
|
|
3377
3377
|
class: "toolbar-button-container"
|
|
3378
|
-
},
|
|
3378
|
+
}, vl = ["data-testid"], bl = /* @__PURE__ */ ne({
|
|
3379
3379
|
__name: "EntityBaseTable",
|
|
3380
3380
|
props: {
|
|
3381
3381
|
// table header configuration
|
|
@@ -3534,7 +3534,7 @@ const Do = {
|
|
|
3534
3534
|
a("click:row", L);
|
|
3535
3535
|
}), I = (x) => {
|
|
3536
3536
|
a("sort", x);
|
|
3537
|
-
}, { setTablePreferences: m, getTablePreferences: f } =
|
|
3537
|
+
}, { setTablePreferences: m, getTablePreferences: f } = da(), S = T(() => {
|
|
3538
3538
|
const x = f(t.preferencesStorageKey);
|
|
3539
3539
|
return {
|
|
3540
3540
|
...t.initialFetcherParams,
|
|
@@ -3583,9 +3583,9 @@ const Do = {
|
|
|
3583
3583
|
"onUpdate:tablePreferences": w
|
|
3584
3584
|
}, Ie({
|
|
3585
3585
|
toolbar: v(({ state: F }) => [
|
|
3586
|
-
Ne(B("div",
|
|
3586
|
+
Ne(B("div", ml, [
|
|
3587
3587
|
z(x.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3588
|
-
x.$slots["toolbar-button"] ? (g(), _("div",
|
|
3588
|
+
x.$slots["toolbar-button"] ? (g(), _("div", hl, [
|
|
3589
3589
|
z(x.$slots, "toolbar-button", {}, void 0, !0)
|
|
3590
3590
|
])) : V("", !0)
|
|
3591
3591
|
], 512), [
|
|
@@ -3616,7 +3616,7 @@ const Do = {
|
|
|
3616
3616
|
}, {
|
|
3617
3617
|
icon: v(() => [
|
|
3618
3618
|
j(J, {
|
|
3619
|
-
color: k(
|
|
3619
|
+
color: k(ii),
|
|
3620
3620
|
icon: "more",
|
|
3621
3621
|
size: "16"
|
|
3622
3622
|
}, null, 8, ["color"])
|
|
@@ -3626,14 +3626,14 @@ const Do = {
|
|
|
3626
3626
|
]),
|
|
3627
3627
|
_: 2
|
|
3628
3628
|
}, 1032, ["width"])
|
|
3629
|
-
], 8,
|
|
3629
|
+
], 8, vl)
|
|
3630
3630
|
]),
|
|
3631
3631
|
_: 2
|
|
3632
3632
|
}, [
|
|
3633
3633
|
de(e.tableHeaders, (F, D) => ({
|
|
3634
3634
|
name: D,
|
|
3635
3635
|
fn: v(({ row: R, rowKey: Y, rowValue: Z }) => [
|
|
3636
|
-
j(
|
|
3636
|
+
j(gl, {
|
|
3637
3637
|
"key-name": String(D),
|
|
3638
3638
|
"row-el": u(R)
|
|
3639
3639
|
}, {
|
|
@@ -3656,13 +3656,13 @@ const Do = {
|
|
|
3656
3656
|
}, 8, ["title"]);
|
|
3657
3657
|
};
|
|
3658
3658
|
}
|
|
3659
|
-
}),
|
|
3659
|
+
}), kl = /* @__PURE__ */ ye(bl, [["__scopeId", "data-v-57b5a97b"]]), Cl = {
|
|
3660
3660
|
key: 0,
|
|
3661
3661
|
class: "kong-ui-entity-delete-error"
|
|
3662
|
-
},
|
|
3662
|
+
}, wl = {
|
|
3663
3663
|
key: 1,
|
|
3664
3664
|
class: "description"
|
|
3665
|
-
},
|
|
3665
|
+
}, Sl = /* @__PURE__ */ ne({
|
|
3666
3666
|
__name: "EntityDeleteModal",
|
|
3667
3667
|
props: {
|
|
3668
3668
|
visible: {
|
|
@@ -3720,7 +3720,7 @@ const Do = {
|
|
|
3720
3720
|
onProceed: l
|
|
3721
3721
|
}, {
|
|
3722
3722
|
"body-content": v(() => [
|
|
3723
|
-
e.error ? (g(), _("div",
|
|
3723
|
+
e.error ? (g(), _("div", Cl, [
|
|
3724
3724
|
j(d, { appearance: "danger" }, {
|
|
3725
3725
|
alertMessage: v(() => [
|
|
3726
3726
|
H(N(e.error), 1)
|
|
@@ -3746,7 +3746,7 @@ const Do = {
|
|
|
3746
3746
|
key: "0"
|
|
3747
3747
|
} : void 0
|
|
3748
3748
|
]), 1032, ["keypath"]),
|
|
3749
|
-
a.description || s.$slots.description ? (g(), _("div",
|
|
3749
|
+
a.description || s.$slots.description ? (g(), _("div", wl, [
|
|
3750
3750
|
z(s.$slots, "description", {}, () => [
|
|
3751
3751
|
B("p", null, N(a.description), 1)
|
|
3752
3752
|
], !0)
|
|
@@ -3756,13 +3756,13 @@ const Do = {
|
|
|
3756
3756
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3757
3757
|
};
|
|
3758
3758
|
}
|
|
3759
|
-
}),
|
|
3759
|
+
}), Il = /* @__PURE__ */ ye(Sl, [["__scopeId", "data-v-1c9a2a07"]]), Al = {
|
|
3760
3760
|
fill: "none",
|
|
3761
3761
|
height: "20",
|
|
3762
3762
|
viewBox: "0 0 20 20",
|
|
3763
3763
|
width: "20",
|
|
3764
3764
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3765
|
-
},
|
|
3765
|
+
}, xl = {
|
|
3766
3766
|
id: "mask0_180_20349",
|
|
3767
3767
|
height: "20",
|
|
3768
3768
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3770,35 +3770,35 @@ const Do = {
|
|
|
3770
3770
|
width: "20",
|
|
3771
3771
|
x: "0",
|
|
3772
3772
|
y: "0"
|
|
3773
|
-
},
|
|
3773
|
+
}, _l = ["fill"], Tl = { mask: "url(#mask0_180_20349)" }, $l = ["fill"], Wt = /* @__PURE__ */ ne({
|
|
3774
3774
|
__name: "IconFilter",
|
|
3775
3775
|
props: {
|
|
3776
3776
|
color: {
|
|
3777
3777
|
type: String,
|
|
3778
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3778
|
+
default: `var(--kong-ui-entity-filter-color, ${ni})`
|
|
3779
3779
|
}
|
|
3780
3780
|
},
|
|
3781
3781
|
setup(e) {
|
|
3782
|
-
return (n, t) => (g(), _("svg",
|
|
3783
|
-
B("mask",
|
|
3782
|
+
return (n, t) => (g(), _("svg", Al, [
|
|
3783
|
+
B("mask", xl, [
|
|
3784
3784
|
B("rect", {
|
|
3785
3785
|
fill: e.color,
|
|
3786
3786
|
height: "20",
|
|
3787
3787
|
width: "20"
|
|
3788
|
-
}, null, 8,
|
|
3788
|
+
}, null, 8, _l)
|
|
3789
3789
|
]),
|
|
3790
|
-
B("g",
|
|
3790
|
+
B("g", Tl, [
|
|
3791
3791
|
B("path", {
|
|
3792
3792
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3793
3793
|
fill: e.color
|
|
3794
|
-
}, null, 8,
|
|
3794
|
+
}, null, 8, $l)
|
|
3795
3795
|
])
|
|
3796
3796
|
]));
|
|
3797
3797
|
}
|
|
3798
|
-
}),
|
|
3798
|
+
}), jl = {
|
|
3799
3799
|
key: 1,
|
|
3800
3800
|
class: "kong-ui-entity-filter"
|
|
3801
|
-
},
|
|
3801
|
+
}, Ol = { class: "menu-item-title" }, Ml = { class: "menu-item-indicator" }, El = { class: "menu-item-body" }, Nl = ["for"], Kl = { class: "menu-item-buttons" }, Fl = { class: "filter-clear-button-container" }, ql = /* @__PURE__ */ ne({
|
|
3802
3802
|
__name: "EntityFilter",
|
|
3803
3803
|
props: {
|
|
3804
3804
|
// filter config, either exact match or fuzzy match
|
|
@@ -3874,7 +3874,7 @@ const Do = {
|
|
|
3874
3874
|
j(Wt)
|
|
3875
3875
|
]),
|
|
3876
3876
|
_: 1
|
|
3877
|
-
}, 8, ["model-value", "placeholder"])) : (g(), _("div",
|
|
3877
|
+
}, 8, ["model-value", "placeholder"])) : (g(), _("div", jl, [
|
|
3878
3878
|
j(w, {
|
|
3879
3879
|
appearance: "tertiary",
|
|
3880
3880
|
"data-testid": "filter-button",
|
|
@@ -3901,9 +3901,9 @@ const Do = {
|
|
|
3901
3901
|
"last-menu-item": b === s.value.length - 1
|
|
3902
3902
|
}, {
|
|
3903
3903
|
itemTitle: v(() => [
|
|
3904
|
-
B("span",
|
|
3904
|
+
B("span", Ol, [
|
|
3905
3905
|
H(N(M.label) + " ", 1),
|
|
3906
|
-
Ne(B("span",
|
|
3906
|
+
Ne(B("span", Ml, null, 512), [
|
|
3907
3907
|
[Ke, l.value.includes(M.value)]
|
|
3908
3908
|
])
|
|
3909
3909
|
])
|
|
@@ -3911,11 +3911,11 @@ const Do = {
|
|
|
3911
3911
|
itemBody: v(() => {
|
|
3912
3912
|
var U, $;
|
|
3913
3913
|
return [
|
|
3914
|
-
B("div",
|
|
3914
|
+
B("div", El, [
|
|
3915
3915
|
B("label", {
|
|
3916
3916
|
class: "menu-item-label",
|
|
3917
3917
|
for: u(M.value)
|
|
3918
|
-
}, N(k(t)("filter.fieldLabel")), 9,
|
|
3918
|
+
}, N(k(t)("filter.fieldLabel")), 9, Nl),
|
|
3919
3919
|
(($ = (U = e.config.schema) == null ? void 0 : U[M.value]) == null ? void 0 : $.type) === "select" ? (g(), q(x, {
|
|
3920
3920
|
key: 0,
|
|
3921
3921
|
id: u(M.value),
|
|
@@ -3934,7 +3934,7 @@ const Do = {
|
|
|
3934
3934
|
type: p(M.value)
|
|
3935
3935
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3936
3936
|
]),
|
|
3937
|
-
B("div",
|
|
3937
|
+
B("div", Kl, [
|
|
3938
3938
|
j(w, {
|
|
3939
3939
|
appearance: "tertiary",
|
|
3940
3940
|
"data-testid": "apply-filter",
|
|
@@ -3964,7 +3964,7 @@ const Do = {
|
|
|
3964
3964
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3965
3965
|
]),
|
|
3966
3966
|
actionButton: v(() => [
|
|
3967
|
-
B("div",
|
|
3967
|
+
B("div", Fl, [
|
|
3968
3968
|
j(w, {
|
|
3969
3969
|
appearance: "tertiary",
|
|
3970
3970
|
size: "small",
|
|
@@ -3984,7 +3984,7 @@ const Do = {
|
|
|
3984
3984
|
]));
|
|
3985
3985
|
};
|
|
3986
3986
|
}
|
|
3987
|
-
}),
|
|
3987
|
+
}), Bl = /* @__PURE__ */ ye(ql, [["__scopeId", "data-v-15962ee2"]]), De = /* @__PURE__ */ ne({
|
|
3988
3988
|
__name: "PermissionsWrapper",
|
|
3989
3989
|
props: {
|
|
3990
3990
|
/**
|
|
@@ -4014,16 +4014,16 @@ const Do = {
|
|
|
4014
4014
|
isAllowed: t.value
|
|
4015
4015
|
}) : V("", !0);
|
|
4016
4016
|
}
|
|
4017
|
-
}),
|
|
4017
|
+
}), Ll = { class: "form-section-wrapper" }, Ul = {
|
|
4018
4018
|
key: 0,
|
|
4019
4019
|
class: "form-section-title"
|
|
4020
|
-
},
|
|
4020
|
+
}, Dl = {
|
|
4021
4021
|
key: 1,
|
|
4022
4022
|
class: "form-section-description"
|
|
4023
|
-
},
|
|
4023
|
+
}, Rl = {
|
|
4024
4024
|
key: 2,
|
|
4025
4025
|
class: "form-section-footer"
|
|
4026
|
-
},
|
|
4026
|
+
}, Pl = { class: "form-section-content" }, Vl = /* @__PURE__ */ ne({
|
|
4027
4027
|
__name: "EntityFormSection",
|
|
4028
4028
|
props: {
|
|
4029
4029
|
title: {
|
|
@@ -4052,28 +4052,28 @@ const Do = {
|
|
|
4052
4052
|
return (t, a) => (g(), _("fieldset", {
|
|
4053
4053
|
class: ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4054
4054
|
}, [
|
|
4055
|
-
B("div",
|
|
4055
|
+
B("div", Ll, [
|
|
4056
4056
|
e.hideInfoHeader ? V("", !0) : (g(), _("div", {
|
|
4057
4057
|
key: 0,
|
|
4058
4058
|
class: ke(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4059
4059
|
}, [
|
|
4060
|
-
e.title ? (g(), _("h4",
|
|
4061
|
-
e.description || k(n).description ? (g(), _("div",
|
|
4060
|
+
e.title ? (g(), _("h4", Ul, N(e.title), 1)) : V("", !0),
|
|
4061
|
+
e.description || k(n).description ? (g(), _("div", Dl, [
|
|
4062
4062
|
z(t.$slots, "description", {}, () => [
|
|
4063
4063
|
B("p", null, N(e.description), 1)
|
|
4064
4064
|
], !0)
|
|
4065
4065
|
])) : V("", !0),
|
|
4066
|
-
k(n).footer ? (g(), _("div",
|
|
4066
|
+
k(n).footer ? (g(), _("div", Rl, [
|
|
4067
4067
|
z(t.$slots, "footer", {}, void 0, !0)
|
|
4068
4068
|
])) : V("", !0)
|
|
4069
4069
|
], 2)),
|
|
4070
|
-
B("div",
|
|
4070
|
+
B("div", Pl, [
|
|
4071
4071
|
z(t.$slots, "default", {}, void 0, !0)
|
|
4072
4072
|
])
|
|
4073
4073
|
])
|
|
4074
4074
|
], 2));
|
|
4075
4075
|
}
|
|
4076
|
-
}),
|
|
4076
|
+
}), zl = /* @__PURE__ */ ye(Vl, [["__scopeId", "data-v-3565daa7"]]), { useAxios: Zn, useDeleteUrlBuilder: Hl, useErrors: Jl, useExternalLinkCreator: os, useFetchUrlBuilder: ls, useFetcher: Yl, useDebouncedFilter: ss, useStringHelpers: cs, useHelpers: us, useGatewayFeatureSupported: ds, useTruncationDetector: ps } = re, Wl = { class: "kong-ui-entities-key-sets-list" }, Zl = { key: 1 }, Gl = /* @__PURE__ */ ne({
|
|
4077
4077
|
__name: "KeySetList",
|
|
4078
4078
|
props: {
|
|
4079
4079
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4143,7 +4143,7 @@ const Do = {
|
|
|
4143
4143
|
fields: P,
|
|
4144
4144
|
schema: a.config.filterSchema
|
|
4145
4145
|
};
|
|
4146
|
-
}), { fetcher: C, fetcherState: h } =
|
|
4146
|
+
}), { fetcher: C, fetcherState: h } = Yl(a.config, u.value), I = () => {
|
|
4147
4147
|
y.value = "";
|
|
4148
4148
|
}, m = () => {
|
|
4149
4149
|
l.value++;
|
|
@@ -4191,7 +4191,7 @@ const Do = {
|
|
|
4191
4191
|
}), U = (O) => ({
|
|
4192
4192
|
label: i("keySets.actions.edit"),
|
|
4193
4193
|
to: a.config.getEditRoute(O)
|
|
4194
|
-
}), $ = E(void 0), F = E(!1), D = E(!1), R = E(""), Y =
|
|
4194
|
+
}), $ = E(void 0), F = E(!1), D = E(!1), R = E(""), Y = Hl(a.config, u.value), Z = (O) => {
|
|
4195
4195
|
$.value = O, F.value = !0;
|
|
4196
4196
|
}, ie = () => {
|
|
4197
4197
|
F.value = !1;
|
|
@@ -4228,8 +4228,8 @@ const Do = {
|
|
|
4228
4228
|
await a.canCreate() && (le.value.title = i("keySets.list.empty_state.title"), le.value.ctaText = i("keySets.actions.create"));
|
|
4229
4229
|
}), (O, P) => {
|
|
4230
4230
|
const ee = K("KButton"), ge = K("KBadge"), Ue = K("KTruncate"), Qn = K("CopyUuid"), Me = K("KDropdownItem"), St = K("KClipboardProvider");
|
|
4231
|
-
return g(), _("div",
|
|
4232
|
-
j(k(
|
|
4231
|
+
return g(), _("div", Wl, [
|
|
4232
|
+
j(k(kl), {
|
|
4233
4233
|
"cache-identifier": e.cacheIdentifier,
|
|
4234
4234
|
"disable-pagination-page-jump": "",
|
|
4235
4235
|
"disable-sorting": s.value,
|
|
@@ -4248,38 +4248,40 @@ const Do = {
|
|
|
4248
4248
|
onSort: m
|
|
4249
4249
|
}, {
|
|
4250
4250
|
"toolbar-filter": v(() => [
|
|
4251
|
-
j(k(
|
|
4251
|
+
j(k(Bl), {
|
|
4252
4252
|
modelValue: y.value,
|
|
4253
4253
|
"onUpdate:modelValue": P[0] || (P[0] = (Q) => y.value = Q),
|
|
4254
4254
|
config: p.value
|
|
4255
4255
|
}, null, 8, ["modelValue", "config"])
|
|
4256
4256
|
]),
|
|
4257
4257
|
"toolbar-button": v(() => [
|
|
4258
|
-
(g(), q(
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4258
|
+
(g(), q(xe(e.useActionOutside ? "Teleport" : "div"), {
|
|
4259
|
+
to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
|
|
4260
|
+
}, {
|
|
4261
|
+
default: v(() => [
|
|
4262
|
+
j(k(De), {
|
|
4263
|
+
"auth-function": () => e.canCreate()
|
|
4264
|
+
}, {
|
|
4265
|
+
default: v(() => [
|
|
4266
|
+
Ne(j(ee, {
|
|
4267
|
+
appearance: "primary",
|
|
4268
|
+
"data-testid": "toolbar-add-key-set",
|
|
4269
|
+
icon: "plus",
|
|
4270
|
+
to: e.config.createRoute
|
|
4271
|
+
}, {
|
|
4272
|
+
default: v(() => [
|
|
4273
|
+
H(N(k(i)("keySets.list.toolbar_actions.new_key_set")), 1)
|
|
4274
|
+
]),
|
|
4275
|
+
_: 1
|
|
4276
|
+
}, 8, ["to"]), [
|
|
4277
|
+
[Ke, G.value]
|
|
4278
|
+
])
|
|
4279
|
+
]),
|
|
4280
|
+
_: 1
|
|
4281
|
+
}, 8, ["auth-function"])
|
|
4282
|
+
]),
|
|
4283
|
+
_: 1
|
|
4284
|
+
}, 8, ["to"]))
|
|
4283
4285
|
]),
|
|
4284
4286
|
name: v(({ rowValue: Q }) => [
|
|
4285
4287
|
B("b", null, N(Q ?? "-"), 1)
|
|
@@ -4299,7 +4301,7 @@ const Do = {
|
|
|
4299
4301
|
}, 1024))), 128))
|
|
4300
4302
|
]),
|
|
4301
4303
|
_: 2
|
|
4302
|
-
}, 1024)) : (g(), _("span",
|
|
4304
|
+
}, 1024)) : (g(), _("span", Zl, "-"))
|
|
4303
4305
|
]),
|
|
4304
4306
|
id: v(({ row: Q, rowValue: he }) => [
|
|
4305
4307
|
j(Qn, {
|
|
@@ -4381,7 +4383,7 @@ const Do = {
|
|
|
4381
4383
|
]),
|
|
4382
4384
|
_: 1
|
|
4383
4385
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
4384
|
-
j(k(
|
|
4386
|
+
j(k(Il), {
|
|
4385
4387
|
"action-pending": D.value,
|
|
4386
4388
|
description: k(i)("keySets.delete.description"),
|
|
4387
4389
|
"entity-name": $.value && ($.value.name || $.value.id),
|
|
@@ -4400,7 +4402,7 @@ const Do = {
|
|
|
4400
4402
|
for (const [a, i] of n)
|
|
4401
4403
|
t[a] = i;
|
|
4402
4404
|
return t;
|
|
4403
|
-
},
|
|
4405
|
+
}, fs = /* @__PURE__ */ Gn(Gl, [["__scopeId", "data-v-208f5d08"]]), Ql = { class: "kong-ui-entities-key-sets-form" }, Xl = /* @__PURE__ */ ne({
|
|
4404
4406
|
__name: "KeySetForm",
|
|
4405
4407
|
props: {
|
|
4406
4408
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4419,7 +4421,7 @@ const Do = {
|
|
|
4419
4421
|
emits: ["update", "error", "loading"],
|
|
4420
4422
|
setup(e, { emit: n }) {
|
|
4421
4423
|
var m;
|
|
4422
|
-
const t = n, a = e, i = ut(), { i18n: { t: r } } = pt.useI18n(), { getMessageFromError: o } =
|
|
4424
|
+
const t = n, a = e, i = ut(), { i18n: { t: r } } = pt.useI18n(), { getMessageFromError: o } = Jl(), { axiosInstance: l } = Zn({
|
|
4423
4425
|
headers: (m = a.config) == null ? void 0 : m.requestHeaders
|
|
4424
4426
|
}), s = T(() => Pe.form[a.config.app].edit), c = T(() => a.keySetId ? at.Edit : at.Create), d = It({
|
|
4425
4427
|
fields: {
|
|
@@ -4461,8 +4463,8 @@ const Do = {
|
|
|
4461
4463
|
};
|
|
4462
4464
|
return (f, S) => {
|
|
4463
4465
|
const w = K("KInput");
|
|
4464
|
-
return g(), _("div",
|
|
4465
|
-
j(k(
|
|
4466
|
+
return g(), _("div", Ql, [
|
|
4467
|
+
j(k(pl), {
|
|
4466
4468
|
"can-submit": y.value,
|
|
4467
4469
|
config: e.config,
|
|
4468
4470
|
"edit-id": e.keySetId,
|
|
@@ -4476,7 +4478,7 @@ const Do = {
|
|
|
4476
4478
|
onSubmit: I
|
|
4477
4479
|
}, {
|
|
4478
4480
|
default: v(() => [
|
|
4479
|
-
j(k(
|
|
4481
|
+
j(k(zl), {
|
|
4480
4482
|
description: k(r)("keySets.form.sections.general.description"),
|
|
4481
4483
|
"has-divider": "",
|
|
4482
4484
|
title: k(r)("keySets.form.sections.general.title")
|
|
@@ -4515,7 +4517,7 @@ const Do = {
|
|
|
4515
4517
|
]);
|
|
4516
4518
|
};
|
|
4517
4519
|
}
|
|
4518
|
-
}),
|
|
4520
|
+
}), ys = /* @__PURE__ */ Gn(Xl, [["__scopeId", "data-v-29df09d7"]]), es = { class: "kong-ui-entities-keys-entity-config-card" }, gs = /* @__PURE__ */ ne({
|
|
4519
4521
|
__name: "KeySetConfigCard",
|
|
4520
4522
|
props: {
|
|
4521
4523
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4551,8 +4553,8 @@ const Do = {
|
|
|
4551
4553
|
tooltip: t("keySets.form.fields.tags.tooltip")
|
|
4552
4554
|
}
|
|
4553
4555
|
});
|
|
4554
|
-
return (r, o) => (g(), _("div",
|
|
4555
|
-
j(k(
|
|
4556
|
+
return (r, o) => (g(), _("div", es, [
|
|
4557
|
+
j(k(cl), {
|
|
4556
4558
|
config: e.config,
|
|
4557
4559
|
"config-card-doc": e.configCardDoc,
|
|
4558
4560
|
"config-schema": i.value,
|
|
@@ -4567,7 +4569,7 @@ const Do = {
|
|
|
4567
4569
|
}
|
|
4568
4570
|
});
|
|
4569
4571
|
export {
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4572
|
+
gs as KeySetConfigCard,
|
|
4573
|
+
ys as KeySetForm,
|
|
4574
|
+
fs as KeySetList
|
|
4573
4575
|
};
|