@kong-ui-public/entities-keys 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.
package/dist/entities-keys.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as oe, ref as M, computed as j, watch as ke, renderSlot as X, createCommentVNode as H, unref as g, resolveComponent as F, openBlock as y, createElementBlock as T, createVNode as K, withCtx as k, createTextVNode as ee, toDisplayString as E, useCssVars as Xt, useSlots as tt, createElementVNode as L, createSlots as Ae, createBlock as N, resolveDynamicComponent as
|
|
1
|
+
import { defineComponent as oe, ref as M, computed as j, watch as ke, renderSlot as X, createCommentVNode as H, unref as g, resolveComponent as F, openBlock as y, createElementBlock as T, createVNode as K, withCtx as k, createTextVNode as ee, toDisplayString as E, useCssVars as Xt, useSlots as tt, createElementVNode as L, createSlots as Ae, createBlock as N, resolveDynamicComponent as Ke, normalizeProps as ta, guardReactiveProps as na, Fragment as he, renderList as ge, mergeProps as st, normalizeClass as we, onBeforeMount as nt, withModifiers as Ye, withDirectives as De, vShow as Ve, onMounted as aa, onUnmounted as ia, inject as ra, normalizeStyle as en, pushScopeId as tn, popScopeId as nn, reactive as At } from "vue";
|
|
2
2
|
import { useRouter as yt } from "vue-router";
|
|
3
3
|
import { createI18n as mt, i18nTComponent as an } from "@kong-ui-public/i18n";
|
|
4
|
-
import
|
|
5
|
-
import { BadgeMethodAppearances as
|
|
6
|
-
const
|
|
4
|
+
import oa from "axios";
|
|
5
|
+
import { BadgeMethodAppearances as la } from "@kong/kongponents";
|
|
6
|
+
const sa = {
|
|
7
7
|
title: "Keys",
|
|
8
8
|
list: {
|
|
9
9
|
toolbar_actions: {
|
|
@@ -115,11 +115,11 @@ const ca = {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
},
|
|
119
|
-
keys:
|
|
118
|
+
}, ca = {
|
|
119
|
+
keys: sa
|
|
120
120
|
};
|
|
121
|
-
function
|
|
122
|
-
const e = mt("en-us",
|
|
121
|
+
function ua() {
|
|
122
|
+
const e = mt("en-us", ca);
|
|
123
123
|
return {
|
|
124
124
|
i18n: e,
|
|
125
125
|
i18nT: an(e)
|
|
@@ -127,7 +127,7 @@ function da() {
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
const gt = {
|
|
130
|
-
useI18n:
|
|
130
|
+
useI18n: ua
|
|
131
131
|
}, Ie = {
|
|
132
132
|
list: {
|
|
133
133
|
konnect: {
|
|
@@ -169,14 +169,14 @@ const gt = {
|
|
|
169
169
|
var rn = /* @__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))(rn || {}), Le = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Le || {}), Te = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Te || {}), Z = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(Z || {}), ye = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ye || {});
|
|
170
170
|
function ht(e = {}) {
|
|
171
171
|
return {
|
|
172
|
-
axiosInstance:
|
|
172
|
+
axiosInstance: oa.create({
|
|
173
173
|
withCredentials: !0,
|
|
174
174
|
timeout: 3e4,
|
|
175
175
|
...e
|
|
176
176
|
})
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function da() {
|
|
180
180
|
return {
|
|
181
181
|
debounce: (e, n) => {
|
|
182
182
|
let t;
|
|
@@ -188,12 +188,12 @@ function pa() {
|
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
const it = "khcp-user-table-preferences",
|
|
191
|
+
const it = "khcp-user-table-preferences", pa = {
|
|
192
192
|
pageSize: 30,
|
|
193
193
|
sortColumnKey: void 0,
|
|
194
194
|
sortColumnOrder: void 0
|
|
195
195
|
};
|
|
196
|
-
function
|
|
196
|
+
function fa() {
|
|
197
197
|
const e = (t) => {
|
|
198
198
|
if (typeof t == "string")
|
|
199
199
|
try {
|
|
@@ -217,24 +217,24 @@ function ya() {
|
|
|
217
217
|
},
|
|
218
218
|
getTablePreferences: (t) => {
|
|
219
219
|
const a = n();
|
|
220
|
-
return (a == null ? void 0 : a.get(t)) || void 0 ||
|
|
220
|
+
return (a == null ? void 0 : a.get(t)) || void 0 || pa;
|
|
221
221
|
},
|
|
222
222
|
deleteAllTablePreferences: () => {
|
|
223
223
|
localStorage.removeItem(it);
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const
|
|
227
|
+
const ya = {
|
|
228
228
|
actions: {
|
|
229
229
|
copyId: "Copy ID",
|
|
230
230
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
231
231
|
copyToClipboard: "Copied successfully!",
|
|
232
232
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
233
233
|
}
|
|
234
|
-
},
|
|
234
|
+
}, ma = {
|
|
235
235
|
message: "Are you sure you want to delete this {entityType}?",
|
|
236
236
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
237
|
-
},
|
|
237
|
+
}, ga = {
|
|
238
238
|
actions: {
|
|
239
239
|
save: "Save",
|
|
240
240
|
cancel: "Cancel",
|
|
@@ -243,13 +243,13 @@ const ma = {
|
|
|
243
243
|
errors: {
|
|
244
244
|
edit: "The entity could not be edited at this time."
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, ha = {
|
|
247
247
|
emptyState: {
|
|
248
248
|
noSearchResultsTitle: "No results found",
|
|
249
249
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
250
250
|
noSearchResultsCtaText: "Clear"
|
|
251
251
|
}
|
|
252
|
-
},
|
|
252
|
+
}, va = {
|
|
253
253
|
title: "Configuration",
|
|
254
254
|
actions: {
|
|
255
255
|
copy: "Copy JSON"
|
|
@@ -287,7 +287,7 @@ const ma = {
|
|
|
287
287
|
entryTitle: "Entry {index}",
|
|
288
288
|
structuredFormat: "Structured"
|
|
289
289
|
}
|
|
290
|
-
},
|
|
290
|
+
}, ka = {
|
|
291
291
|
filterButtonText: "Filter",
|
|
292
292
|
fieldLabel: "Filter by:",
|
|
293
293
|
inputPlaceholder: "Enter a value",
|
|
@@ -295,15 +295,15 @@ const ma = {
|
|
|
295
295
|
applyButtonText: "Apply",
|
|
296
296
|
clearButtonText: "Clear",
|
|
297
297
|
clearAllButtonText: "Clear all filters"
|
|
298
|
-
},
|
|
298
|
+
}, ba = {
|
|
299
299
|
errors: {
|
|
300
300
|
fetch: "Could not fetch available items",
|
|
301
301
|
invalid: "Please select a valid value"
|
|
302
302
|
}
|
|
303
|
-
},
|
|
303
|
+
}, Ca = {
|
|
304
304
|
unexpected: "An unexpected error has occurred",
|
|
305
305
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
306
|
-
},
|
|
306
|
+
}, wa = {
|
|
307
307
|
enable: {
|
|
308
308
|
title: "Enable {entityType}",
|
|
309
309
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -314,19 +314,19 @@ const ma = {
|
|
|
314
314
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
315
315
|
confirmText: "Yes, disable"
|
|
316
316
|
}
|
|
317
|
-
},
|
|
318
|
-
global:
|
|
319
|
-
deleteModal:
|
|
320
|
-
baseForm:
|
|
321
|
-
baseTable:
|
|
322
|
-
baseConfigCard:
|
|
323
|
-
filter:
|
|
324
|
-
debouncedFilter:
|
|
325
|
-
errors:
|
|
326
|
-
toggleModal:
|
|
317
|
+
}, Sa = {
|
|
318
|
+
global: ya,
|
|
319
|
+
deleteModal: ma,
|
|
320
|
+
baseForm: ga,
|
|
321
|
+
baseTable: ha,
|
|
322
|
+
baseConfigCard: va,
|
|
323
|
+
filter: ka,
|
|
324
|
+
debouncedFilter: ba,
|
|
325
|
+
errors: Ca,
|
|
326
|
+
toggleModal: wa
|
|
327
327
|
};
|
|
328
328
|
function vt() {
|
|
329
|
-
const e = mt("en-us",
|
|
329
|
+
const e = mt("en-us", Sa);
|
|
330
330
|
return {
|
|
331
331
|
i18n: e,
|
|
332
332
|
i18nT: an(e)
|
|
@@ -377,14 +377,14 @@ function on() {
|
|
|
377
377
|
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
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function _a(e, n, t, a = {
|
|
381
381
|
fetchedItemsKey: "data",
|
|
382
382
|
searchKeys: ["id"]
|
|
383
383
|
}) {
|
|
384
384
|
t || (t = "100");
|
|
385
385
|
const { axiosInstance: i } = ht({
|
|
386
386
|
headers: e.requestHeaders
|
|
387
|
-
}), { i18n: { t: r } } = vt(), { debounce: o } =
|
|
387
|
+
}), { i18n: { t: r } } = vt(), { debounce: o } = da(), l = o(async (S) => {
|
|
388
388
|
await A(S);
|
|
389
389
|
}, 200), s = M(!1), u = M(""), c = M(""), d = M([]), h = M([]), f = M(void 0), C = g(n);
|
|
390
390
|
let b = `${e.apiBaseUrl}${C}`;
|
|
@@ -455,13 +455,13 @@ function Ia(e, n, t, a = {
|
|
|
455
455
|
debouncedQueryChange: l
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Ia(e, n) {
|
|
459
459
|
const t = g(n), a = j(
|
|
460
460
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
461
461
|
);
|
|
462
462
|
return a.value.search = "", (i) => `${a.value.href}/${i}`;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Aa() {
|
|
465
465
|
const { i18n: { t: e } } = vt();
|
|
466
466
|
return {
|
|
467
467
|
getMessageFromError: (n) => {
|
|
@@ -489,7 +489,7 @@ function xa() {
|
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function xa(e) {
|
|
493
493
|
const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
|
|
494
494
|
try {
|
|
495
495
|
const a = e.join("/"), i = `${t}${a}`, r = e.some((o) => o.trim() === "");
|
|
@@ -518,7 +518,7 @@ function ln(e, n) {
|
|
|
518
518
|
}
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function ja(e, n, t = "data") {
|
|
522
522
|
const a = g(n), { axiosInstance: i } = ht({
|
|
523
523
|
headers: e.requestHeaders
|
|
524
524
|
}), r = ln(e, a), o = M({
|
|
@@ -562,7 +562,7 @@ function Ta(e, n, t = "data") {
|
|
|
562
562
|
}
|
|
563
563
|
}, fetcherState: o };
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Ta() {
|
|
566
566
|
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;
|
|
567
567
|
return {
|
|
568
568
|
capitalize: (t) => t ? t.replace(n, (a) => a.toUpperCase()) : "",
|
|
@@ -579,24 +579,24 @@ const sn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
579
579
|
}, jt = (e) => e === "*" || e === "x" || e === "X", Tt = (e) => {
|
|
580
580
|
const n = parseInt(e, 10);
|
|
581
581
|
return isNaN(n) ? e : n;
|
|
582
|
-
},
|
|
582
|
+
}, $a = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Ka = (e, n) => {
|
|
583
583
|
if (jt(e) || jt(n))
|
|
584
584
|
return 0;
|
|
585
|
-
const [t, a] =
|
|
585
|
+
const [t, a] = $a(Tt(e), Tt(n));
|
|
586
586
|
return t > a ? 1 : t < a ? -1 : 0;
|
|
587
587
|
}, $t = (e, n) => {
|
|
588
588
|
for (let t = 0; t < Math.max(e.length, n.length); t++) {
|
|
589
|
-
const a =
|
|
589
|
+
const a = Ka(e[t] || "0", n[t] || "0");
|
|
590
590
|
if (a !== 0)
|
|
591
591
|
return a;
|
|
592
592
|
}
|
|
593
593
|
return 0;
|
|
594
|
-
},
|
|
594
|
+
}, Oa = (e, n) => {
|
|
595
595
|
const t = xt(e), a = xt(n), i = t.pop(), r = a.pop(), o = $t(t, a);
|
|
596
596
|
return o !== 0 ? o : i && r ? $t(i.split("."), r.split(".")) : i || r ? i ? -1 : 1 : 0;
|
|
597
597
|
}, Kt = (e, n, t) => {
|
|
598
|
-
|
|
599
|
-
const a =
|
|
598
|
+
Ma(t);
|
|
599
|
+
const a = Oa(e, n);
|
|
600
600
|
return cn[t].includes(a);
|
|
601
601
|
}, cn = {
|
|
602
602
|
">": [1],
|
|
@@ -605,18 +605,18 @@ const sn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
605
605
|
"<=": [-1, 0],
|
|
606
606
|
"<": [-1],
|
|
607
607
|
"!=": [-1, 1]
|
|
608
|
-
}, Ot = Object.keys(cn),
|
|
608
|
+
}, Ot = Object.keys(cn), Ma = (e) => {
|
|
609
609
|
if (typeof e != "string")
|
|
610
610
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
611
611
|
if (Ot.indexOf(e) === -1)
|
|
612
612
|
throw new Error(`Invalid operator, expected one of ${Ot.join("|")}`);
|
|
613
|
-
},
|
|
614
|
-
function
|
|
613
|
+
}, Ea = (e) => typeof e == "string" && /^[v\d]/.test(e) && sn.test(e);
|
|
614
|
+
function Na(e) {
|
|
615
615
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
616
616
|
if (!n)
|
|
617
617
|
return !0;
|
|
618
618
|
const { edition: a, version: i } = n;
|
|
619
|
-
if (!
|
|
619
|
+
if (!Ea(i))
|
|
620
620
|
return console.error("Invalid version"), !1;
|
|
621
621
|
const r = t[a];
|
|
622
622
|
if (!r)
|
|
@@ -624,7 +624,7 @@ function Fa(e) {
|
|
|
624
624
|
const [o, l] = r;
|
|
625
625
|
return !(o && Kt(i, o, "<") || l && Kt(i, l, ">"));
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function Fa(e) {
|
|
628
628
|
const n = M(0), t = M(0), a = M(!1);
|
|
629
629
|
return ke(e, (i) => {
|
|
630
630
|
i && !a.value && (n.value = i.offsetWidth, t.value = i.scrollWidth, a.value = !0);
|
|
@@ -634,38 +634,38 @@ function qa(e) {
|
|
|
634
634
|
}
|
|
635
635
|
const ue = {
|
|
636
636
|
useAxios: ht,
|
|
637
|
-
useDebouncedFilter:
|
|
638
|
-
useDeleteUrlBuilder:
|
|
639
|
-
useErrors:
|
|
640
|
-
useExternalLinkCreator:
|
|
641
|
-
useFetcher:
|
|
637
|
+
useDebouncedFilter: _a,
|
|
638
|
+
useDeleteUrlBuilder: Ia,
|
|
639
|
+
useErrors: Aa,
|
|
640
|
+
useExternalLinkCreator: xa,
|
|
641
|
+
useFetcher: ja,
|
|
642
642
|
useFetchUrlBuilder: ln,
|
|
643
643
|
useHelpers: on,
|
|
644
|
-
useStringHelpers:
|
|
644
|
+
useStringHelpers: Ta,
|
|
645
645
|
useI18n: vt,
|
|
646
|
-
useGatewayFeatureSupported:
|
|
647
|
-
useTruncationDetector:
|
|
648
|
-
},
|
|
646
|
+
useGatewayFeatureSupported: Na,
|
|
647
|
+
useTruncationDetector: Fa
|
|
648
|
+
}, qa = {
|
|
649
649
|
fail: "Failed to copy id to clipboard",
|
|
650
650
|
success: {
|
|
651
651
|
prefix: "Successfully",
|
|
652
652
|
content: " copied to clipboard"
|
|
653
653
|
}
|
|
654
|
-
},
|
|
655
|
-
message:
|
|
656
|
-
iconTitle:
|
|
657
|
-
},
|
|
654
|
+
}, Ba = "Copy to clipboard", La = {
|
|
655
|
+
message: qa,
|
|
656
|
+
iconTitle: Ba
|
|
657
|
+
}, Ua = "kong-ui-copy-uuid-notify", Mt = "24px", Da = (e, n) => {
|
|
658
658
|
const t = e.__vccOpts || e;
|
|
659
659
|
for (const [a, i] of n)
|
|
660
660
|
t[a] = i;
|
|
661
661
|
return t;
|
|
662
|
-
},
|
|
662
|
+
}, Va = (e) => (tn("data-v-ac7fcfb4"), e = e(), nn(), e), Pa = ["aria-hidden"], Ra = {
|
|
663
663
|
key: 0,
|
|
664
664
|
"data-testid": "kui-icon-svg-title"
|
|
665
|
-
},
|
|
665
|
+
}, za = /* @__PURE__ */ Va(() => /* @__PURE__ */ L("path", {
|
|
666
666
|
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",
|
|
667
667
|
fill: "currentColor"
|
|
668
|
-
}, null, -1)),
|
|
668
|
+
}, null, -1)), Ja = /* @__PURE__ */ oe({
|
|
669
669
|
__name: "CopyIcon",
|
|
670
670
|
props: {
|
|
671
671
|
/** The accessibility text provided to screen readers */
|
|
@@ -734,7 +734,7 @@ const ue = {
|
|
|
734
734
|
lineHeight: "0",
|
|
735
735
|
width: t.value
|
|
736
736
|
}));
|
|
737
|
-
return (i, r) => (y(), N(
|
|
737
|
+
return (i, r) => (y(), N(Ke(e.as), {
|
|
738
738
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
739
739
|
class: "kui-icon copy-icon",
|
|
740
740
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
@@ -751,14 +751,14 @@ const ue = {
|
|
|
751
751
|
width: "100%",
|
|
752
752
|
xmlns: "http://www.w3.org/2000/svg"
|
|
753
753
|
}, [
|
|
754
|
-
e.title ? (y(), T("title",
|
|
755
|
-
|
|
756
|
-
], 8,
|
|
754
|
+
e.title ? (y(), T("title", Ra, E(e.title), 1)) : H("", !0),
|
|
755
|
+
za
|
|
756
|
+
], 8, Pa))
|
|
757
757
|
]),
|
|
758
758
|
_: 1
|
|
759
759
|
}, 8, ["aria-hidden", "style"]));
|
|
760
760
|
}
|
|
761
|
-
}),
|
|
761
|
+
}), Ha = /* @__PURE__ */ Da(Ja, [["__scopeId", "data-v-ac7fcfb4"]]), Wa = "16px", Ya = { class: "kong-ui-copy-uuid" }, Za = ["onClick"], Et = 15, Ga = /* @__PURE__ */ oe({
|
|
762
762
|
__name: "CopyUuid",
|
|
763
763
|
props: {
|
|
764
764
|
uuid: {
|
|
@@ -802,7 +802,7 @@ const ue = {
|
|
|
802
802
|
},
|
|
803
803
|
emits: ["success", "error"],
|
|
804
804
|
setup(e, { emit: n }) {
|
|
805
|
-
const { t } = mt("en-us",
|
|
805
|
+
const { t } = mt("en-us", La), a = e, i = n, r = a.notify || ra(Ua, () => {
|
|
806
806
|
}), o = j(() => a.idTooltip ? {
|
|
807
807
|
label: a.idTooltip,
|
|
808
808
|
positionFixed: !0,
|
|
@@ -838,8 +838,8 @@ const ue = {
|
|
|
838
838
|
};
|
|
839
839
|
return (f, C) => {
|
|
840
840
|
const b = F("KClipboardProvider");
|
|
841
|
-
return y(), T("div",
|
|
842
|
-
e.format !== "hidden" ? (y(), N(
|
|
841
|
+
return y(), T("div", Ya, [
|
|
842
|
+
e.format !== "hidden" ? (y(), N(Ke(e.idTooltip ? "KTooltip" : "div"), st({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
|
|
843
843
|
default: k(() => [
|
|
844
844
|
L("div", {
|
|
845
845
|
class: we([
|
|
@@ -851,7 +851,7 @@ const ue = {
|
|
|
851
851
|
]),
|
|
852
852
|
_: 1
|
|
853
853
|
}, 16)) : H("", !0),
|
|
854
|
-
(y(), N(
|
|
854
|
+
(y(), N(Ke(e.tooltip ? "KTooltip" : "div"), st(u.value, { class: "uuid-icon-wrapper" }), {
|
|
855
855
|
default: k(() => [
|
|
856
856
|
K(b, null, {
|
|
857
857
|
default: k(({ copyToClipboard: x }) => [
|
|
@@ -861,14 +861,14 @@ const ue = {
|
|
|
861
861
|
tabindex: "0",
|
|
862
862
|
onClick: Ye((v) => h(x), ["stop"])
|
|
863
863
|
}, [
|
|
864
|
-
K(g(
|
|
864
|
+
K(g(Ha), {
|
|
865
865
|
class: "uuid-icon",
|
|
866
866
|
color: e.iconColor,
|
|
867
867
|
decorative: !!e.tooltip,
|
|
868
|
-
size: g(
|
|
868
|
+
size: g(Wa),
|
|
869
869
|
title: g(t)("iconTitle")
|
|
870
870
|
}, null, 8, ["color", "decorative", "size", "title"])
|
|
871
|
-
], 8,
|
|
871
|
+
], 8, Za)
|
|
872
872
|
]),
|
|
873
873
|
_: 1
|
|
874
874
|
})
|
|
@@ -878,15 +878,15 @@ const ue = {
|
|
|
878
878
|
]);
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
|
-
}),
|
|
881
|
+
}), Qa = (e, n) => {
|
|
882
882
|
const t = e.__vccOpts || e;
|
|
883
883
|
for (const [a, i] of n)
|
|
884
884
|
t[a] = i;
|
|
885
885
|
return t;
|
|
886
|
-
}, un = /* @__PURE__ */
|
|
886
|
+
}, un = /* @__PURE__ */ Qa(Ga, [["__scopeId", "data-v-0c07874b"]]), Xa = {
|
|
887
887
|
key: 0,
|
|
888
888
|
class: "config-card-fieldset-title"
|
|
889
|
-
},
|
|
889
|
+
}, ei = /* @__PURE__ */ oe({
|
|
890
890
|
__name: "JsonCardItem",
|
|
891
891
|
props: {
|
|
892
892
|
item: {
|
|
@@ -910,11 +910,11 @@ const ue = {
|
|
|
910
910
|
var s;
|
|
911
911
|
return n.isArrayItem ? (s = r.value) != null && s.name ? a(r.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
912
912
|
});
|
|
913
|
-
return (s, u) => (y(), N(
|
|
913
|
+
return (s, u) => (y(), N(Ke(e.isArrayItem ? "fieldset" : "div"), {
|
|
914
914
|
class: we(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
915
915
|
}, {
|
|
916
916
|
default: k(() => [
|
|
917
|
-
e.isArrayItem ? (y(), T("legend",
|
|
917
|
+
e.isArrayItem ? (y(), T("legend", Xa, [
|
|
918
918
|
L("b", null, E(l.value), 1)
|
|
919
919
|
])) : H("", !0),
|
|
920
920
|
(y(!0), T(he, null, ge(Object.keys(o.value), (c, d) => (y(), N(Pe, {
|
|
@@ -934,7 +934,7 @@ const ue = {
|
|
|
934
934
|
for (const [a, i] of n)
|
|
935
935
|
t[a] = i;
|
|
936
936
|
return t;
|
|
937
|
-
}, dn = /* @__PURE__ */ be(
|
|
937
|
+
}, dn = /* @__PURE__ */ be(ei, [["__scopeId", "data-v-68ca83ec"]]), ti = /* @__PURE__ */ oe({
|
|
938
938
|
__name: "InternalLinkItem",
|
|
939
939
|
props: {
|
|
940
940
|
item: {
|
|
@@ -961,7 +961,7 @@ const ue = {
|
|
|
961
961
|
]);
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
|
-
}), pn = /* @__PURE__ */ be(
|
|
964
|
+
}), pn = /* @__PURE__ */ be(ti, [["__scopeId", "data-v-c96811e5"]]), ni = /* @__PURE__ */ oe({
|
|
965
965
|
__name: "StatusBadge",
|
|
966
966
|
props: {
|
|
967
967
|
status: {
|
|
@@ -983,11 +983,11 @@ const ue = {
|
|
|
983
983
|
}, 8, ["appearance"]);
|
|
984
984
|
};
|
|
985
985
|
}
|
|
986
|
-
}),
|
|
986
|
+
}), ai = "#0044f4", ii = "#e0e4ea", ri = "#3a3f51", oi = "1px", li = "20px", si = { class: "config-card-details-row" }, ci = ["data-testid"], ui = ["data-testid"], di = ["data-testid"], pi = ["data-testid"], fi = { key: 1 }, yi = ["data-testid"], mi = ["data-testid"], gi = ["data-testid"], hi = ["data-testid"], vi = {
|
|
987
987
|
name: "ConfigCardItem",
|
|
988
|
-
components: { CopyUuid: un, JsonCardItem: dn, StatusBadge:
|
|
989
|
-
},
|
|
990
|
-
...
|
|
988
|
+
components: { CopyUuid: un, JsonCardItem: dn, StatusBadge: ni, InternalLinkItem: pn }
|
|
989
|
+
}, ki = /* @__PURE__ */ oe({
|
|
990
|
+
...vi,
|
|
991
991
|
props: {
|
|
992
992
|
item: {
|
|
993
993
|
type: Object,
|
|
@@ -1007,7 +1007,7 @@ const ue = {
|
|
|
1007
1007
|
emits: ["navigation-click"],
|
|
1008
1008
|
setup(e, { emit: n }) {
|
|
1009
1009
|
Xt((C) => ({
|
|
1010
|
-
"0da74440": c.value ? "none" : `solid ${g(
|
|
1010
|
+
"0da74440": c.value ? "none" : `solid ${g(oi)} ${g(ii)}`,
|
|
1011
1011
|
"02a039da": u.value && l.value ? "block" : "flex",
|
|
1012
1012
|
"690f3ced": u.value && l.value ? "100%" : t.slim ? "50%" : "25%",
|
|
1013
1013
|
"691182c8": u.value && l.value ? "100%" : t.slim ? "50%" : "75%"
|
|
@@ -1141,7 +1141,7 @@ const ue = {
|
|
|
1141
1141
|
}), h = M(), { isTruncated: f } = ue.useTruncationDetector(h);
|
|
1142
1142
|
return (C, b) => {
|
|
1143
1143
|
const x = F("KLabel"), v = F("KBadge"), p = F("KTooltip");
|
|
1144
|
-
return y(), T("div",
|
|
1144
|
+
return y(), T("div", si, [
|
|
1145
1145
|
L("div", {
|
|
1146
1146
|
class: "config-card-details-label",
|
|
1147
1147
|
"data-testid": `${e.item.key}-label`
|
|
@@ -1162,13 +1162,13 @@ const ue = {
|
|
|
1162
1162
|
X(C.$slots, "label-tooltip", {}, () => [
|
|
1163
1163
|
ee(E(e.item.tooltip), 1)
|
|
1164
1164
|
], !0)
|
|
1165
|
-
], 8,
|
|
1165
|
+
], 8, ui)
|
|
1166
1166
|
]),
|
|
1167
1167
|
key: "0"
|
|
1168
1168
|
} : void 0
|
|
1169
1169
|
]), 1024)
|
|
1170
1170
|
], !0)
|
|
1171
|
-
], 8,
|
|
1171
|
+
], 8, ci),
|
|
1172
1172
|
L("div", {
|
|
1173
1173
|
class: "config-card-details-value",
|
|
1174
1174
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -1176,8 +1176,8 @@ const ue = {
|
|
|
1176
1176
|
X(C.$slots, e.item.key, {
|
|
1177
1177
|
rowValue: e.item.value
|
|
1178
1178
|
}, () => [
|
|
1179
|
-
l.value ? (y(), T("div",
|
|
1180
|
-
(y(), N(
|
|
1179
|
+
l.value ? (y(), T("div", fi, [
|
|
1180
|
+
(y(), N(Ke(d.value.tag), ta(na(d.value.attrs)), {
|
|
1181
1181
|
default: k(() => [
|
|
1182
1182
|
d.value.additionalComponent === "KBadge" ? (y(), T("div", {
|
|
1183
1183
|
key: 0,
|
|
@@ -1195,7 +1195,7 @@ const ue = {
|
|
|
1195
1195
|
]),
|
|
1196
1196
|
_: 2
|
|
1197
1197
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1198
|
-
], 8,
|
|
1198
|
+
], 8, yi)) : H("", !0),
|
|
1199
1199
|
d.value.additionalComponent === "CopyUuid" ? (y(), T("div", {
|
|
1200
1200
|
key: 1,
|
|
1201
1201
|
class: "copy-uuid-array",
|
|
@@ -1206,14 +1206,14 @@ const ue = {
|
|
|
1206
1206
|
"data-testid": `${e.item.key}-copy-uuid-${S}`,
|
|
1207
1207
|
uuid: A
|
|
1208
1208
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1209
|
-
], 8,
|
|
1209
|
+
], 8, mi)) : d.value.additionalComponent === "KMethodBadge" ? (y(), T("div", {
|
|
1210
1210
|
key: 2,
|
|
1211
1211
|
class: "method-badge-array",
|
|
1212
1212
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1213
1213
|
}, [
|
|
1214
1214
|
(y(!0), T(he, null, ge(e.item.value, (A, S) => (y(), N(v, {
|
|
1215
1215
|
key: `${e.item.key}-badge-method-${S}`,
|
|
1216
|
-
appearance: Object.values(g(
|
|
1216
|
+
appearance: Object.values(g(la)).includes(A.toLowerCase()) ? A.toLowerCase() : "custom",
|
|
1217
1217
|
class: "config-badge",
|
|
1218
1218
|
"data-testid": `${e.item.key}-badge-method-${S}`
|
|
1219
1219
|
}, {
|
|
@@ -1222,7 +1222,7 @@ const ue = {
|
|
|
1222
1222
|
]),
|
|
1223
1223
|
_: 2
|
|
1224
1224
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1225
|
-
], 8,
|
|
1225
|
+
], 8, gi)) : H("", !0),
|
|
1226
1226
|
d.value.additionalComponent === "JsonCardItem" ? (y(), T("div", {
|
|
1227
1227
|
key: 3,
|
|
1228
1228
|
"data-testid": `${t.item.key}-json-array-content`
|
|
@@ -1233,7 +1233,7 @@ const ue = {
|
|
|
1233
1233
|
"is-array-item": "",
|
|
1234
1234
|
item: A
|
|
1235
1235
|
}, null, 8, ["index", "item"]))), 128))
|
|
1236
|
-
], 8,
|
|
1236
|
+
], 8, hi)) : (y(), N(p, {
|
|
1237
1237
|
key: 4,
|
|
1238
1238
|
label: g(f) ? e.item.value : ""
|
|
1239
1239
|
}, {
|
|
@@ -1252,46 +1252,46 @@ const ue = {
|
|
|
1252
1252
|
])) : (y(), T("div", {
|
|
1253
1253
|
key: 0,
|
|
1254
1254
|
"data-testid": `${e.item.key}-no-value`
|
|
1255
|
-
}, " – ", 8,
|
|
1255
|
+
}, " – ", 8, pi))
|
|
1256
1256
|
], !0)
|
|
1257
|
-
], 8,
|
|
1257
|
+
], 8, di)
|
|
1258
1258
|
]);
|
|
1259
1259
|
};
|
|
1260
1260
|
}
|
|
1261
|
-
}), Pe = /* @__PURE__ */ be(
|
|
1261
|
+
}), Pe = /* @__PURE__ */ be(ki, [["__scopeId", "data-v-9c87856b"]]);
|
|
1262
1262
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1263
1263
|
function fn(e) {
|
|
1264
1264
|
return typeof e > "u" || e === null;
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function bi(e) {
|
|
1267
1267
|
return typeof e == "object" && e !== null;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function Ci(e) {
|
|
1270
1270
|
return Array.isArray(e) ? e : fn(e) ? [] : [e];
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function wi(e, n) {
|
|
1273
1273
|
var t, a, i, r;
|
|
1274
1274
|
if (n)
|
|
1275
1275
|
for (r = Object.keys(n), t = 0, a = r.length; t < a; t += 1)
|
|
1276
1276
|
i = r[t], e[i] = n[i];
|
|
1277
1277
|
return e;
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function Si(e, n) {
|
|
1280
1280
|
var t = "", a;
|
|
1281
1281
|
for (a = 0; a < n; a += 1)
|
|
1282
1282
|
t += e;
|
|
1283
1283
|
return t;
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function _i(e) {
|
|
1286
1286
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1287
1287
|
}
|
|
1288
|
-
var
|
|
1289
|
-
isNothing:
|
|
1290
|
-
isObject:
|
|
1291
|
-
toArray:
|
|
1292
|
-
repeat:
|
|
1293
|
-
isNegativeZero:
|
|
1294
|
-
extend:
|
|
1288
|
+
var Ii = fn, Ai = bi, xi = Ci, ji = Si, Ti = _i, $i = wi, se = {
|
|
1289
|
+
isNothing: Ii,
|
|
1290
|
+
isObject: Ai,
|
|
1291
|
+
toArray: xi,
|
|
1292
|
+
repeat: ji,
|
|
1293
|
+
isNegativeZero: Ti,
|
|
1294
|
+
extend: $i
|
|
1295
1295
|
};
|
|
1296
1296
|
function yn(e, n) {
|
|
1297
1297
|
var t = "", a = e.reason || "(unknown reason)";
|
|
@@ -1319,7 +1319,7 @@ function rt(e, n, t, a, i) {
|
|
|
1319
1319
|
function ot(e, n) {
|
|
1320
1320
|
return se.repeat(" ", n - e.length) + e;
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function Ki(e, n) {
|
|
1323
1323
|
if (n = Object.create(n || null), !e.buffer)
|
|
1324
1324
|
return null;
|
|
1325
1325
|
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);
|
|
@@ -1349,7 +1349,7 @@ function Oi(e, n) {
|
|
|
1349
1349
|
`;
|
|
1350
1350
|
return l.replace(/\n$/, "");
|
|
1351
1351
|
}
|
|
1352
|
-
var
|
|
1352
|
+
var Oi = Ki, Mi = [
|
|
1353
1353
|
"kind",
|
|
1354
1354
|
"multi",
|
|
1355
1355
|
"resolve",
|
|
@@ -1360,12 +1360,12 @@ var Mi = Oi, Ei = [
|
|
|
1360
1360
|
"representName",
|
|
1361
1361
|
"defaultStyle",
|
|
1362
1362
|
"styleAliases"
|
|
1363
|
-
],
|
|
1363
|
+
], Ei = [
|
|
1364
1364
|
"scalar",
|
|
1365
1365
|
"sequence",
|
|
1366
1366
|
"mapping"
|
|
1367
1367
|
];
|
|
1368
|
-
function
|
|
1368
|
+
function Ni(e) {
|
|
1369
1369
|
var n = {};
|
|
1370
1370
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1371
1371
|
e[t].forEach(function(a) {
|
|
@@ -1373,18 +1373,18 @@ function Fi(e) {
|
|
|
1373
1373
|
});
|
|
1374
1374
|
}), n;
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function Fi(e, n) {
|
|
1377
1377
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1378
|
-
if (
|
|
1378
|
+
if (Mi.indexOf(t) === -1)
|
|
1379
1379
|
throw new me('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1380
1380
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1381
1381
|
return !0;
|
|
1382
1382
|
}, this.construct = n.construct || function(t) {
|
|
1383
1383
|
return t;
|
|
1384
|
-
}, 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 =
|
|
1384
|
+
}, 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)
|
|
1385
1385
|
throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1386
1386
|
}
|
|
1387
|
-
var pe =
|
|
1387
|
+
var pe = Fi;
|
|
1388
1388
|
function Nt(e, n) {
|
|
1389
1389
|
var t = [];
|
|
1390
1390
|
return e[n].forEach(function(a) {
|
|
@@ -1394,7 +1394,7 @@ function Nt(e, n) {
|
|
|
1394
1394
|
}), t[i] = a;
|
|
1395
1395
|
}), t;
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function qi() {
|
|
1398
1398
|
var e = {
|
|
1399
1399
|
scalar: {},
|
|
1400
1400
|
sequence: {},
|
|
@@ -1439,7 +1439,7 @@ ct.prototype.extend = function(e) {
|
|
|
1439
1439
|
throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1440
1440
|
});
|
|
1441
1441
|
var a = Object.create(ct.prototype);
|
|
1442
|
-
return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Nt(a, "implicit"), a.compiledExplicit = Nt(a, "explicit"), a.compiledTypeMap =
|
|
1442
|
+
return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Nt(a, "implicit"), a.compiledExplicit = Nt(a, "explicit"), a.compiledTypeMap = qi(a.compiledImplicit, a.compiledExplicit), a;
|
|
1443
1443
|
};
|
|
1444
1444
|
var mn = ct, gn = new pe("tag:yaml.org,2002:str", {
|
|
1445
1445
|
kind: "scalar",
|
|
@@ -1463,23 +1463,23 @@ var mn = ct, gn = new pe("tag:yaml.org,2002:str", {
|
|
|
1463
1463
|
vn
|
|
1464
1464
|
]
|
|
1465
1465
|
});
|
|
1466
|
-
function
|
|
1466
|
+
function Bi(e) {
|
|
1467
1467
|
if (e === null)
|
|
1468
1468
|
return !0;
|
|
1469
1469
|
var n = e.length;
|
|
1470
1470
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function Li() {
|
|
1473
1473
|
return null;
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function Ui(e) {
|
|
1476
1476
|
return e === null;
|
|
1477
1477
|
}
|
|
1478
1478
|
var bn = new pe("tag:yaml.org,2002:null", {
|
|
1479
1479
|
kind: "scalar",
|
|
1480
|
-
resolve:
|
|
1481
|
-
construct:
|
|
1482
|
-
predicate:
|
|
1480
|
+
resolve: Bi,
|
|
1481
|
+
construct: Li,
|
|
1482
|
+
predicate: Ui,
|
|
1483
1483
|
represent: {
|
|
1484
1484
|
canonical: function() {
|
|
1485
1485
|
return "~";
|
|
@@ -1499,23 +1499,23 @@ var bn = new pe("tag:yaml.org,2002:null", {
|
|
|
1499
1499
|
},
|
|
1500
1500
|
defaultStyle: "lowercase"
|
|
1501
1501
|
});
|
|
1502
|
-
function
|
|
1502
|
+
function Di(e) {
|
|
1503
1503
|
if (e === null)
|
|
1504
1504
|
return !1;
|
|
1505
1505
|
var n = e.length;
|
|
1506
1506
|
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function Vi(e) {
|
|
1509
1509
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function Pi(e) {
|
|
1512
1512
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1513
1513
|
}
|
|
1514
1514
|
var Cn = new pe("tag:yaml.org,2002:bool", {
|
|
1515
1515
|
kind: "scalar",
|
|
1516
|
-
resolve:
|
|
1517
|
-
construct:
|
|
1518
|
-
predicate:
|
|
1516
|
+
resolve: Di,
|
|
1517
|
+
construct: Vi,
|
|
1518
|
+
predicate: Pi,
|
|
1519
1519
|
represent: {
|
|
1520
1520
|
lowercase: function(e) {
|
|
1521
1521
|
return e ? "true" : "false";
|
|
@@ -1529,16 +1529,16 @@ var Cn = new pe("tag:yaml.org,2002:bool", {
|
|
|
1529
1529
|
},
|
|
1530
1530
|
defaultStyle: "lowercase"
|
|
1531
1531
|
});
|
|
1532
|
-
function
|
|
1532
|
+
function Ri(e) {
|
|
1533
1533
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function zi(e) {
|
|
1536
1536
|
return 48 <= e && e <= 55;
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function Ji(e) {
|
|
1539
1539
|
return 48 <= e && e <= 57;
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function Hi(e) {
|
|
1542
1542
|
if (e === null)
|
|
1543
1543
|
return !1;
|
|
1544
1544
|
var n = e.length, t = 0, a = !1, i;
|
|
@@ -1559,7 +1559,7 @@ function Wi(e) {
|
|
|
1559
1559
|
if (i === "x") {
|
|
1560
1560
|
for (t++; t < n; t++)
|
|
1561
1561
|
if (i = e[t], i !== "_") {
|
|
1562
|
-
if (!
|
|
1562
|
+
if (!Ri(e.charCodeAt(t)))
|
|
1563
1563
|
return !1;
|
|
1564
1564
|
a = !0;
|
|
1565
1565
|
}
|
|
@@ -1568,7 +1568,7 @@ function Wi(e) {
|
|
|
1568
1568
|
if (i === "o") {
|
|
1569
1569
|
for (t++; t < n; t++)
|
|
1570
1570
|
if (i = e[t], i !== "_") {
|
|
1571
|
-
if (!
|
|
1571
|
+
if (!zi(e.charCodeAt(t)))
|
|
1572
1572
|
return !1;
|
|
1573
1573
|
a = !0;
|
|
1574
1574
|
}
|
|
@@ -1579,13 +1579,13 @@ function Wi(e) {
|
|
|
1579
1579
|
return !1;
|
|
1580
1580
|
for (; t < n; t++)
|
|
1581
1581
|
if (i = e[t], i !== "_") {
|
|
1582
|
-
if (!
|
|
1582
|
+
if (!Ji(e.charCodeAt(t)))
|
|
1583
1583
|
return !1;
|
|
1584
1584
|
a = !0;
|
|
1585
1585
|
}
|
|
1586
1586
|
return !(!a || i === "_");
|
|
1587
1587
|
}
|
|
1588
|
-
function
|
|
1588
|
+
function Wi(e) {
|
|
1589
1589
|
var n = e, t = 1, a;
|
|
1590
1590
|
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")
|
|
1591
1591
|
return 0;
|
|
@@ -1599,14 +1599,14 @@ function Yi(e) {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
return t * parseInt(n, 10);
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1602
|
+
function Yi(e) {
|
|
1603
1603
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
|
|
1604
1604
|
}
|
|
1605
1605
|
var wn = new pe("tag:yaml.org,2002:int", {
|
|
1606
1606
|
kind: "scalar",
|
|
1607
|
-
resolve:
|
|
1608
|
-
construct:
|
|
1609
|
-
predicate:
|
|
1607
|
+
resolve: Hi,
|
|
1608
|
+
construct: Wi,
|
|
1609
|
+
predicate: Yi,
|
|
1610
1610
|
represent: {
|
|
1611
1611
|
binary: function(e) {
|
|
1612
1612
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1629,21 +1629,21 @@ var wn = new pe("tag:yaml.org,2002:int", {
|
|
|
1629
1629
|
decimal: [10, "dec"],
|
|
1630
1630
|
hexadecimal: [16, "hex"]
|
|
1631
1631
|
}
|
|
1632
|
-
}),
|
|
1632
|
+
}), Zi = new RegExp(
|
|
1633
1633
|
// 2.5e4, 2.5 and integers
|
|
1634
1634
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1635
1635
|
);
|
|
1636
|
-
function
|
|
1637
|
-
return !(e === null || !
|
|
1636
|
+
function Gi(e) {
|
|
1637
|
+
return !(e === null || !Zi.test(e) || // Quick hack to not allow integers end with `_`
|
|
1638
1638
|
// Probably should update regexp & check speed
|
|
1639
1639
|
e[e.length - 1] === "_");
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1641
|
+
function Qi(e) {
|
|
1642
1642
|
var n, t;
|
|
1643
1643
|
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);
|
|
1644
1644
|
}
|
|
1645
|
-
var
|
|
1646
|
-
function
|
|
1645
|
+
var Xi = /^[-+]?[0-9]+e/;
|
|
1646
|
+
function er(e, n) {
|
|
1647
1647
|
var t;
|
|
1648
1648
|
if (isNaN(e))
|
|
1649
1649
|
switch (n) {
|
|
@@ -1674,17 +1674,17 @@ function tr(e, n) {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
else if (se.isNegativeZero(e))
|
|
1676
1676
|
return "-0.0";
|
|
1677
|
-
return t = e.toString(10),
|
|
1677
|
+
return t = e.toString(10), Xi.test(t) ? t.replace("e", ".e") : t;
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function tr(e) {
|
|
1680
1680
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || se.isNegativeZero(e));
|
|
1681
1681
|
}
|
|
1682
1682
|
var Sn = new pe("tag:yaml.org,2002:float", {
|
|
1683
1683
|
kind: "scalar",
|
|
1684
|
-
resolve:
|
|
1685
|
-
construct:
|
|
1686
|
-
predicate:
|
|
1687
|
-
represent:
|
|
1684
|
+
resolve: Gi,
|
|
1685
|
+
construct: Qi,
|
|
1686
|
+
predicate: tr,
|
|
1687
|
+
represent: er,
|
|
1688
1688
|
defaultStyle: "lowercase"
|
|
1689
1689
|
}), _n = kn.extend({
|
|
1690
1690
|
implicit: [
|
|
@@ -1698,10 +1698,10 @@ var Sn = new pe("tag:yaml.org,2002:float", {
|
|
|
1698
1698
|
), xn = new RegExp(
|
|
1699
1699
|
"^([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]))?))?$"
|
|
1700
1700
|
);
|
|
1701
|
-
function
|
|
1701
|
+
function nr(e) {
|
|
1702
1702
|
return e === null ? !1 : An.exec(e) !== null || xn.exec(e) !== null;
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function ar(e) {
|
|
1705
1705
|
var n, t, a, i, r, o, l, s = 0, u = null, c, d, h;
|
|
1706
1706
|
if (n = An.exec(e), n === null && (n = xn.exec(e)), n === null)
|
|
1707
1707
|
throw new Error("Date resolve error");
|
|
@@ -1714,25 +1714,25 @@ function ir(e) {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
return n[9] && (c = +n[10], d = +(n[11] || 0), u = (c * 60 + d) * 6e4, n[9] === "-" && (u = -u)), h = new Date(Date.UTC(t, a, i, r, o, l, s)), u && h.setTime(h.getTime() - u), h;
|
|
1716
1716
|
}
|
|
1717
|
-
function
|
|
1717
|
+
function ir(e) {
|
|
1718
1718
|
return e.toISOString();
|
|
1719
1719
|
}
|
|
1720
1720
|
var jn = new pe("tag:yaml.org,2002:timestamp", {
|
|
1721
1721
|
kind: "scalar",
|
|
1722
|
-
resolve:
|
|
1723
|
-
construct:
|
|
1722
|
+
resolve: nr,
|
|
1723
|
+
construct: ar,
|
|
1724
1724
|
instanceOf: Date,
|
|
1725
|
-
represent:
|
|
1725
|
+
represent: ir
|
|
1726
1726
|
});
|
|
1727
|
-
function
|
|
1727
|
+
function rr(e) {
|
|
1728
1728
|
return e === "<<" || e === null;
|
|
1729
1729
|
}
|
|
1730
1730
|
var Tn = new pe("tag:yaml.org,2002:merge", {
|
|
1731
1731
|
kind: "scalar",
|
|
1732
|
-
resolve:
|
|
1732
|
+
resolve: rr
|
|
1733
1733
|
}), kt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1734
1734
|
\r`;
|
|
1735
|
-
function
|
|
1735
|
+
function or(e) {
|
|
1736
1736
|
if (e === null)
|
|
1737
1737
|
return !1;
|
|
1738
1738
|
var n, t, a = 0, i = e.length, r = kt;
|
|
@@ -1744,37 +1744,37 @@ function lr(e) {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
return a % 8 === 0;
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1747
|
+
function lr(e) {
|
|
1748
1748
|
var n, t, a = e.replace(/[\r\n=]/g, ""), i = a.length, r = kt, o = 0, l = [];
|
|
1749
1749
|
for (n = 0; n < i; n++)
|
|
1750
1750
|
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));
|
|
1751
1751
|
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);
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function sr(e) {
|
|
1754
1754
|
var n = "", t = 0, a, i, r = e.length, o = kt;
|
|
1755
1755
|
for (a = 0; a < r; a++)
|
|
1756
1756
|
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];
|
|
1757
1757
|
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;
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function cr(e) {
|
|
1760
1760
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1761
1761
|
}
|
|
1762
1762
|
var $n = new pe("tag:yaml.org,2002:binary", {
|
|
1763
1763
|
kind: "scalar",
|
|
1764
|
-
resolve:
|
|
1765
|
-
construct:
|
|
1766
|
-
predicate:
|
|
1767
|
-
represent:
|
|
1768
|
-
}),
|
|
1769
|
-
function
|
|
1764
|
+
resolve: or,
|
|
1765
|
+
construct: lr,
|
|
1766
|
+
predicate: cr,
|
|
1767
|
+
represent: sr
|
|
1768
|
+
}), ur = Object.prototype.hasOwnProperty, dr = Object.prototype.toString;
|
|
1769
|
+
function pr(e) {
|
|
1770
1770
|
if (e === null)
|
|
1771
1771
|
return !0;
|
|
1772
1772
|
var n = [], t, a, i, r, o, l = e;
|
|
1773
1773
|
for (t = 0, a = l.length; t < a; t += 1) {
|
|
1774
|
-
if (i = l[t], o = !1,
|
|
1774
|
+
if (i = l[t], o = !1, dr.call(i) !== "[object Object]")
|
|
1775
1775
|
return !1;
|
|
1776
1776
|
for (r in i)
|
|
1777
|
-
if (
|
|
1777
|
+
if (ur.call(i, r))
|
|
1778
1778
|
if (!o)
|
|
1779
1779
|
o = !0;
|
|
1780
1780
|
else
|
|
@@ -1788,26 +1788,26 @@ function fr(e) {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
return !0;
|
|
1790
1790
|
}
|
|
1791
|
-
function
|
|
1791
|
+
function fr(e) {
|
|
1792
1792
|
return e !== null ? e : [];
|
|
1793
1793
|
}
|
|
1794
1794
|
var Kn = new pe("tag:yaml.org,2002:omap", {
|
|
1795
1795
|
kind: "sequence",
|
|
1796
|
-
resolve:
|
|
1797
|
-
construct:
|
|
1798
|
-
}),
|
|
1799
|
-
function
|
|
1796
|
+
resolve: pr,
|
|
1797
|
+
construct: fr
|
|
1798
|
+
}), yr = Object.prototype.toString;
|
|
1799
|
+
function mr(e) {
|
|
1800
1800
|
if (e === null)
|
|
1801
1801
|
return !0;
|
|
1802
1802
|
var n, t, a, i, r, o = e;
|
|
1803
1803
|
for (r = new Array(o.length), n = 0, t = o.length; n < t; n += 1) {
|
|
1804
|
-
if (a = o[n],
|
|
1804
|
+
if (a = o[n], yr.call(a) !== "[object Object]" || (i = Object.keys(a), i.length !== 1))
|
|
1805
1805
|
return !1;
|
|
1806
1806
|
r[n] = [i[0], a[i[0]]];
|
|
1807
1807
|
}
|
|
1808
1808
|
return !0;
|
|
1809
1809
|
}
|
|
1810
|
-
function
|
|
1810
|
+
function gr(e) {
|
|
1811
1811
|
if (e === null)
|
|
1812
1812
|
return [];
|
|
1813
1813
|
var n, t, a, i, r, o = e;
|
|
@@ -1817,25 +1817,25 @@ function hr(e) {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
var On = new pe("tag:yaml.org,2002:pairs", {
|
|
1819
1819
|
kind: "sequence",
|
|
1820
|
-
resolve:
|
|
1821
|
-
construct:
|
|
1822
|
-
}),
|
|
1823
|
-
function
|
|
1820
|
+
resolve: mr,
|
|
1821
|
+
construct: gr
|
|
1822
|
+
}), hr = Object.prototype.hasOwnProperty;
|
|
1823
|
+
function vr(e) {
|
|
1824
1824
|
if (e === null)
|
|
1825
1825
|
return !0;
|
|
1826
1826
|
var n, t = e;
|
|
1827
1827
|
for (n in t)
|
|
1828
|
-
if (
|
|
1828
|
+
if (hr.call(t, n) && t[n] !== null)
|
|
1829
1829
|
return !1;
|
|
1830
1830
|
return !0;
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1832
|
+
function kr(e) {
|
|
1833
1833
|
return e !== null ? e : {};
|
|
1834
1834
|
}
|
|
1835
1835
|
var Mn = new pe("tag:yaml.org,2002:set", {
|
|
1836
1836
|
kind: "mapping",
|
|
1837
|
-
resolve:
|
|
1838
|
-
construct:
|
|
1837
|
+
resolve: vr,
|
|
1838
|
+
construct: kr
|
|
1839
1839
|
}), bt = In.extend({
|
|
1840
1840
|
implicit: [
|
|
1841
1841
|
jn,
|
|
@@ -1847,7 +1847,7 @@ var Mn = new pe("tag:yaml.org,2002:set", {
|
|
|
1847
1847
|
On,
|
|
1848
1848
|
Mn
|
|
1849
1849
|
]
|
|
1850
|
-
}), je = Object.prototype.hasOwnProperty, Ze = 1, En = 2, Nn = 3, Ge = 4, lt = 1,
|
|
1850
|
+
}), je = Object.prototype.hasOwnProperty, Ze = 1, En = 2, Nn = 3, Ge = 4, lt = 1, br = 2, Ft = 3, Cr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, wr = /[\x85\u2028\u2029]/, Sr = /[,\[\]\{\}]/, Fn = /^(?:!|!!|![a-z\-]+!)$/i, qn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1851
1851
|
function qt(e) {
|
|
1852
1852
|
return Object.prototype.toString.call(e);
|
|
1853
1853
|
}
|
|
@@ -1860,33 +1860,33 @@ function $e(e) {
|
|
|
1860
1860
|
function ve(e) {
|
|
1861
1861
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function Ee(e) {
|
|
1864
1864
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1866
|
+
function _r(e) {
|
|
1867
1867
|
var n;
|
|
1868
1868
|
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1870
|
+
function Ir(e) {
|
|
1871
1871
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function Ar(e) {
|
|
1874
1874
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1875
1875
|
}
|
|
1876
1876
|
function Bt(e) {
|
|
1877
1877
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1878
1878
|
` : 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" : "";
|
|
1879
1879
|
}
|
|
1880
|
-
function
|
|
1880
|
+
function xr(e) {
|
|
1881
1881
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1882
1882
|
(e - 65536 >> 10) + 55296,
|
|
1883
1883
|
(e - 65536 & 1023) + 56320
|
|
1884
1884
|
);
|
|
1885
1885
|
}
|
|
1886
1886
|
var Bn = new Array(256), Ln = new Array(256);
|
|
1887
|
-
for (var
|
|
1888
|
-
Bn[
|
|
1889
|
-
function
|
|
1887
|
+
for (var Oe = 0; Oe < 256; Oe++)
|
|
1888
|
+
Bn[Oe] = Bt(Oe) ? 1 : 0, Ln[Oe] = Bt(Oe);
|
|
1889
|
+
function jr(e, n) {
|
|
1890
1890
|
this.input = e, this.filename = n.filename || null, this.schema = n.schema || bt, 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 = [];
|
|
1891
1891
|
}
|
|
1892
1892
|
function Un(e, n) {
|
|
@@ -1898,7 +1898,7 @@ function Un(e, n) {
|
|
|
1898
1898
|
line: e.line,
|
|
1899
1899
|
column: e.position - e.lineStart
|
|
1900
1900
|
};
|
|
1901
|
-
return t.snippet =
|
|
1901
|
+
return t.snippet = Oi(t), new me(n, t);
|
|
1902
1902
|
}
|
|
1903
1903
|
function $(e, n) {
|
|
1904
1904
|
throw Un(e, n);
|
|
@@ -1929,7 +1929,7 @@ function xe(e, n, t, a) {
|
|
|
1929
1929
|
for (i = 0, r = l.length; i < r; i += 1)
|
|
1930
1930
|
o = l.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || $(e, "expected valid JSON character");
|
|
1931
1931
|
else
|
|
1932
|
-
|
|
1932
|
+
Cr.test(l) && $(e, "the stream contains non-printable characters");
|
|
1933
1933
|
e.result += l;
|
|
1934
1934
|
}
|
|
1935
1935
|
}
|
|
@@ -1938,7 +1938,7 @@ function Ut(e, n, t, a) {
|
|
|
1938
1938
|
for (se.isObject(t) || $(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(t), o = 0, l = i.length; o < l; o += 1)
|
|
1939
1939
|
r = i[o], je.call(n, r) || (n[r] = t[r], a[r] = !0);
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1941
|
+
function Ne(e, n, t, a, i, r, o, l, s) {
|
|
1942
1942
|
var u, c;
|
|
1943
1943
|
if (Array.isArray(i))
|
|
1944
1944
|
for (i = Array.prototype.slice.call(i), u = 0, c = i.length; u < c; u += 1)
|
|
@@ -1986,19 +1986,19 @@ function wt(e, n) {
|
|
|
1986
1986
|
n === 1 ? e.result += " " : n > 1 && (e.result += se.repeat(`
|
|
1987
1987
|
`, n - 1));
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function Tr(e, n, t) {
|
|
1990
1990
|
var a, i, r, o, l, s, u, c, d = e.kind, h = e.result, f;
|
|
1991
|
-
if (f = e.input.charCodeAt(e.position), ve(f) ||
|
|
1991
|
+
if (f = e.input.charCodeAt(e.position), ve(f) || Ee(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), ve(i) || t && Ee(i)))
|
|
1992
1992
|
return !1;
|
|
1993
1993
|
for (e.kind = "scalar", e.result = "", r = o = e.position, l = !1; f !== 0; ) {
|
|
1994
1994
|
if (f === 58) {
|
|
1995
|
-
if (i = e.input.charCodeAt(e.position + 1), ve(i) || t &&
|
|
1995
|
+
if (i = e.input.charCodeAt(e.position + 1), ve(i) || t && Ee(i))
|
|
1996
1996
|
break;
|
|
1997
1997
|
} else if (f === 35) {
|
|
1998
1998
|
if (a = e.input.charCodeAt(e.position - 1), ve(a))
|
|
1999
1999
|
break;
|
|
2000
2000
|
} else {
|
|
2001
|
-
if (e.position === e.lineStart && at(e) || t &&
|
|
2001
|
+
if (e.position === e.lineStart && at(e) || t && Ee(f))
|
|
2002
2002
|
break;
|
|
2003
2003
|
if (Ce(f))
|
|
2004
2004
|
if (s = e.line, u = e.lineStart, c = e.lineIndent, re(e, !1, -1), e.lineIndent >= n) {
|
|
@@ -2013,7 +2013,7 @@ function $r(e, n, t) {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
return xe(e, r, o, !1), e.result ? !0 : (e.kind = d, e.result = h, !1);
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function $r(e, n) {
|
|
2017
2017
|
var t, a, i;
|
|
2018
2018
|
if (t = e.input.charCodeAt(e.position), t !== 39)
|
|
2019
2019
|
return !1;
|
|
@@ -2027,7 +2027,7 @@ function Kr(e, n) {
|
|
|
2027
2027
|
Ce(t) ? (xe(e, a, i, !0), wt(e, re(e, !1, n)), a = i = e.position) : e.position === e.lineStart && at(e) ? $(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
2028
2028
|
$(e, "unexpected end of the stream within a single quoted scalar");
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function Kr(e, n) {
|
|
2031
2031
|
var t, a, i, r, o, l;
|
|
2032
2032
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
2033
2033
|
return !1;
|
|
@@ -2039,10 +2039,10 @@ function Or(e, n) {
|
|
|
2039
2039
|
re(e, !1, n);
|
|
2040
2040
|
else if (l < 256 && Bn[l])
|
|
2041
2041
|
e.result += Ln[l], e.position++;
|
|
2042
|
-
else if ((o =
|
|
2042
|
+
else if ((o = Ir(l)) > 0) {
|
|
2043
2043
|
for (i = o, r = 0; i > 0; i--)
|
|
2044
|
-
l = e.input.charCodeAt(++e.position), (o =
|
|
2045
|
-
e.result +=
|
|
2044
|
+
l = e.input.charCodeAt(++e.position), (o = _r(l)) >= 0 ? r = (r << 4) + o : $(e, "expected hexadecimal character");
|
|
2045
|
+
e.result += xr(r), e.position++;
|
|
2046
2046
|
} else
|
|
2047
2047
|
$(e, "unknown escape sequence");
|
|
2048
2048
|
t = a = e.position;
|
|
@@ -2051,7 +2051,7 @@ function Or(e, n) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
$(e, "unexpected end of the stream within a double quoted scalar");
|
|
2053
2053
|
}
|
|
2054
|
-
function
|
|
2054
|
+
function Or(e, n) {
|
|
2055
2055
|
var t = !0, a, i, r, o = e.tag, l, s = e.anchor, u, c, d, h, f, C = /* @__PURE__ */ Object.create(null), b, x, v, p;
|
|
2056
2056
|
if (p = e.input.charCodeAt(e.position), p === 91)
|
|
2057
2057
|
c = 93, f = !1, l = [];
|
|
@@ -2062,11 +2062,11 @@ function Mr(e, n) {
|
|
|
2062
2062
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), p = e.input.charCodeAt(++e.position); p !== 0; ) {
|
|
2063
2063
|
if (re(e, !0, n), p = e.input.charCodeAt(e.position), p === c)
|
|
2064
2064
|
return e.position++, e.tag = o, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
2065
|
-
t ? p === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), x = b = v = null, d = h = !1, p === 63 && (u = e.input.charCodeAt(e.position + 1), ve(u) && (d = h = !0, e.position++, re(e, !0, n))), a = e.line, i = e.lineStart, r = e.position, Fe(e, n, Ze, !1, !0), x = e.tag, b = e.result, re(e, !0, n), p = e.input.charCodeAt(e.position), (h || e.line === a) && p === 58 && (d = !0, p = e.input.charCodeAt(++e.position), re(e, !0, n), Fe(e, n, Ze, !1, !0), v = e.result), f ?
|
|
2065
|
+
t ? p === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), x = b = v = null, d = h = !1, p === 63 && (u = e.input.charCodeAt(e.position + 1), ve(u) && (d = h = !0, e.position++, re(e, !0, n))), a = e.line, i = e.lineStart, r = e.position, Fe(e, n, Ze, !1, !0), x = e.tag, b = e.result, re(e, !0, n), p = e.input.charCodeAt(e.position), (h || e.line === a) && p === 58 && (d = !0, p = e.input.charCodeAt(++e.position), re(e, !0, n), Fe(e, n, Ze, !1, !0), v = e.result), f ? Ne(e, l, C, x, b, v, a, i, r) : d ? l.push(Ne(e, null, C, x, b, v, a, i, r)) : l.push(b), re(e, !0, n), p = e.input.charCodeAt(e.position), p === 44 ? (t = !0, p = e.input.charCodeAt(++e.position)) : t = !1;
|
|
2066
2066
|
}
|
|
2067
2067
|
$(e, "unexpected end of the stream within a flow collection");
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2069
|
+
function Mr(e, n) {
|
|
2070
2070
|
var t, a, i = lt, r = !1, o = !1, l = n, s = 0, u = !1, c, d;
|
|
2071
2071
|
if (d = e.input.charCodeAt(e.position), d === 124)
|
|
2072
2072
|
a = !1;
|
|
@@ -2076,8 +2076,8 @@ function Er(e, n) {
|
|
|
2076
2076
|
return !1;
|
|
2077
2077
|
for (e.kind = "scalar", e.result = ""; d !== 0; )
|
|
2078
2078
|
if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
|
|
2079
|
-
lt === i ? i = d === 43 ? Ft :
|
|
2080
|
-
else if ((c =
|
|
2079
|
+
lt === i ? i = d === 43 ? Ft : br : $(e, "repeat of a chomping mode identifier");
|
|
2080
|
+
else if ((c = Ar(d)) >= 0)
|
|
2081
2081
|
c === 0 ? $(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? $(e, "repeat of an indentation width identifier") : (l = n + c - 1, o = !0);
|
|
2082
2082
|
else
|
|
2083
2083
|
break;
|
|
@@ -2129,13 +2129,13 @@ function Dt(e, n) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
return l ? (e.tag = a, e.anchor = i, e.kind = "sequence", e.result = r, !0) : !1;
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function Er(e, n, t) {
|
|
2133
2133
|
var a, i, r, o, l, s, u = e.tag, c = e.anchor, d = {}, h = /* @__PURE__ */ Object.create(null), f = null, C = null, b = null, x = !1, v = !1, p;
|
|
2134
2134
|
if (e.firstTabInLine !== -1)
|
|
2135
2135
|
return !1;
|
|
2136
2136
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), p = e.input.charCodeAt(e.position); p !== 0; ) {
|
|
2137
2137
|
if (!x && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), r = e.line, (p === 63 || p === 58) && ve(a))
|
|
2138
|
-
p === 63 ? (x && (
|
|
2138
|
+
p === 63 ? (x && (Ne(e, d, h, f, C, null, o, l, s), f = C = b = null), v = !0, x = !0, i = !0) : x ? (x = !1, i = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, p = a;
|
|
2139
2139
|
else {
|
|
2140
2140
|
if (o = e.line, l = e.lineStart, s = e.position, !Fe(e, t, En, !1, !0))
|
|
2141
2141
|
break;
|
|
@@ -2143,7 +2143,7 @@ function Nr(e, n, t) {
|
|
|
2143
2143
|
for (p = e.input.charCodeAt(e.position); $e(p); )
|
|
2144
2144
|
p = e.input.charCodeAt(++e.position);
|
|
2145
2145
|
if (p === 58)
|
|
2146
|
-
p = e.input.charCodeAt(++e.position), ve(p) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), x && (
|
|
2146
|
+
p = e.input.charCodeAt(++e.position), ve(p) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), x && (Ne(e, d, h, f, C, null, o, l, s), f = C = b = null), v = !0, x = !1, i = !1, f = e.tag, C = e.result;
|
|
2147
2147
|
else if (v)
|
|
2148
2148
|
$(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2149
2149
|
else
|
|
@@ -2153,14 +2153,14 @@ function Nr(e, n, t) {
|
|
|
2153
2153
|
else
|
|
2154
2154
|
return e.tag = u, e.anchor = c, !0;
|
|
2155
2155
|
}
|
|
2156
|
-
if ((e.line === r || e.lineIndent > n) && (x && (o = e.line, l = e.lineStart, s = e.position), Fe(e, n, Ge, !0, i) && (x ? C = e.result : b = e.result), x || (
|
|
2156
|
+
if ((e.line === r || e.lineIndent > n) && (x && (o = e.line, l = e.lineStart, s = e.position), Fe(e, n, Ge, !0, i) && (x ? C = e.result : b = e.result), x || (Ne(e, d, h, f, C, b, o, l, s), f = C = b = null), re(e, !0, -1), p = e.input.charCodeAt(e.position)), (e.line === r || e.lineIndent > n) && p !== 0)
|
|
2157
2157
|
$(e, "bad indentation of a mapping entry");
|
|
2158
2158
|
else if (e.lineIndent < n)
|
|
2159
2159
|
break;
|
|
2160
2160
|
}
|
|
2161
|
-
return x &&
|
|
2161
|
+
return x && Ne(e, d, h, f, C, null, o, l, s), v && (e.tag = u, e.anchor = c, e.kind = "mapping", e.result = d), v;
|
|
2162
2162
|
}
|
|
2163
|
-
function
|
|
2163
|
+
function Nr(e) {
|
|
2164
2164
|
var n, t = !1, a = !1, i, r, o;
|
|
2165
2165
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
2166
2166
|
return !1;
|
|
@@ -2172,7 +2172,7 @@ function Fr(e) {
|
|
|
2172
2172
|
} else {
|
|
2173
2173
|
for (; o !== 0 && !ve(o); )
|
|
2174
2174
|
o === 33 && (a ? $(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(n - 1, e.position + 1), Fn.test(i) || $(e, "named tag handle cannot contain such characters"), a = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2175
|
-
r = e.input.slice(n, e.position),
|
|
2175
|
+
r = e.input.slice(n, e.position), Sr.test(r) && $(e, "tag suffix cannot contain flow indicator characters");
|
|
2176
2176
|
}
|
|
2177
2177
|
r && !qn.test(r) && $(e, "tag name cannot contain such characters: " + r);
|
|
2178
2178
|
try {
|
|
@@ -2182,28 +2182,28 @@ function Fr(e) {
|
|
|
2182
2182
|
}
|
|
2183
2183
|
return t ? e.tag = r : je.call(e.tagMap, i) ? e.tag = e.tagMap[i] + r : i === "!" ? e.tag = "!" + r : i === "!!" ? e.tag = "tag:yaml.org,2002:" + r : $(e, 'undeclared tag handle "' + i + '"'), !0;
|
|
2184
2184
|
}
|
|
2185
|
-
function
|
|
2185
|
+
function Fr(e) {
|
|
2186
2186
|
var n, t;
|
|
2187
2187
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2188
2188
|
return !1;
|
|
2189
|
-
for (e.anchor !== null && $(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !ve(t) && !
|
|
2189
|
+
for (e.anchor !== null && $(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !ve(t) && !Ee(t); )
|
|
2190
2190
|
t = e.input.charCodeAt(++e.position);
|
|
2191
2191
|
return e.position === n && $(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function qr(e) {
|
|
2194
2194
|
var n, t, a;
|
|
2195
2195
|
if (a = e.input.charCodeAt(e.position), a !== 42)
|
|
2196
2196
|
return !1;
|
|
2197
|
-
for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !ve(a) && !
|
|
2197
|
+
for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !ve(a) && !Ee(a); )
|
|
2198
2198
|
a = e.input.charCodeAt(++e.position);
|
|
2199
2199
|
return e.position === n && $(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), je.call(e.anchorMap, t) || $(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], re(e, !0, -1), !0;
|
|
2200
2200
|
}
|
|
2201
2201
|
function Fe(e, n, t, a, i) {
|
|
2202
2202
|
var r, o, l, s = 1, u = !1, c = !1, d, h, f, C, b, x;
|
|
2203
2203
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = o = l = Ge === t || Nn === t, a && re(e, !0, -1) && (u = !0, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)), s === 1)
|
|
2204
|
-
for (;
|
|
2204
|
+
for (; Nr(e) || Fr(e); )
|
|
2205
2205
|
re(e, !0, -1) ? (u = !0, l = r, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)) : l = !1;
|
|
2206
|
-
if (l && (l = u || i), (s === 1 || Ge === t) && (Ze === t || En === t ? b = n : b = n + 1, x = e.position - e.lineStart, s === 1 ? l && (Dt(e, x) ||
|
|
2206
|
+
if (l && (l = u || i), (s === 1 || Ge === t) && (Ze === t || En === t ? b = n : b = n + 1, x = e.position - e.lineStart, s === 1 ? l && (Dt(e, x) || Er(e, x, b)) || Or(e, b) ? c = !0 : (o && Mr(e, b) || $r(e, b) || Kr(e, b) ? c = !0 : qr(e) ? (c = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Tr(e, b, Ze === t) && (c = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (c = l && Dt(e, x))), e.tag === null)
|
|
2207
2207
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2208
2208
|
else if (e.tag === "?") {
|
|
2209
2209
|
for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), d = 0, h = e.implicitTypes.length; d < h; d += 1)
|
|
@@ -2224,7 +2224,7 @@ function Fe(e, n, t, a, i) {
|
|
|
2224
2224
|
}
|
|
2225
2225
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || c;
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2227
|
+
function Br(e) {
|
|
2228
2228
|
var n = e.position, t, a, i, r = !1, o;
|
|
2229
2229
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (re(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
2230
2230
|
for (r = !0, o = e.input.charCodeAt(++e.position), t = e.position; o !== 0 && !ve(o); )
|
|
@@ -2246,7 +2246,7 @@ function Lr(e) {
|
|
|
2246
2246
|
}
|
|
2247
2247
|
o !== 0 && Ct(e), je.call(Lt, a) ? Lt[a](e, a, i) : Qe(e, 'unknown document directive "' + a + '"');
|
|
2248
2248
|
}
|
|
2249
|
-
if (re(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, re(e, !0, -1)) : r && $(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, Ge, !1, !0), re(e, !0, -1), e.checkLineBreaks &&
|
|
2249
|
+
if (re(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, re(e, !0, -1)) : r && $(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, Ge, !1, !0), re(e, !0, -1), e.checkLineBreaks && wr.test(e.input.slice(n, e.position)) && Qe(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && at(e)) {
|
|
2250
2250
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, re(e, !0, -1));
|
|
2251
2251
|
return;
|
|
2252
2252
|
}
|
|
@@ -2258,14 +2258,14 @@ function Lr(e) {
|
|
|
2258
2258
|
function Dn(e, n) {
|
|
2259
2259
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2260
2260
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2261
|
-
var t = new
|
|
2261
|
+
var t = new jr(e, n), a = e.indexOf("\0");
|
|
2262
2262
|
for (a !== -1 && (t.position = a, $(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2263
2263
|
t.lineIndent += 1, t.position += 1;
|
|
2264
2264
|
for (; t.position < t.length - 1; )
|
|
2265
|
-
|
|
2265
|
+
Br(t);
|
|
2266
2266
|
return t.documents;
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function Lr(e, n, t) {
|
|
2269
2269
|
n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
|
|
2270
2270
|
var a = Dn(e, t);
|
|
2271
2271
|
if (typeof n != "function")
|
|
@@ -2273,7 +2273,7 @@ function Ur(e, n, t) {
|
|
|
2273
2273
|
for (var i = 0, r = a.length; i < r; i += 1)
|
|
2274
2274
|
n(a[i]);
|
|
2275
2275
|
}
|
|
2276
|
-
function
|
|
2276
|
+
function Ur(e, n) {
|
|
2277
2277
|
var t = Dn(e, n);
|
|
2278
2278
|
if (t.length !== 0) {
|
|
2279
2279
|
if (t.length === 1)
|
|
@@ -2281,10 +2281,10 @@ function Dr(e, n) {
|
|
|
2281
2281
|
throw new me("expected a single document in the stream, but found more");
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
|
-
var
|
|
2285
|
-
loadAll:
|
|
2286
|
-
load:
|
|
2287
|
-
}, Pn = Object.prototype.toString, Rn = Object.prototype.hasOwnProperty, St = 65279,
|
|
2284
|
+
var Dr = Lr, Vr = Ur, Vn = {
|
|
2285
|
+
loadAll: Dr,
|
|
2286
|
+
load: Vr
|
|
2287
|
+
}, Pn = Object.prototype.toString, Rn = Object.prototype.hasOwnProperty, St = 65279, Pr = 9, ze = 10, Rr = 13, zr = 32, Jr = 33, Hr = 34, ut = 35, Wr = 37, Yr = 38, Zr = 39, Gr = 42, zn = 44, Qr = 45, Xe = 58, Xr = 61, eo = 62, to = 63, no = 64, Jn = 91, Hn = 93, ao = 96, Wn = 123, io = 124, Yn = 125, fe = {};
|
|
2288
2288
|
fe[0] = "\\0";
|
|
2289
2289
|
fe[7] = "\\a";
|
|
2290
2290
|
fe[8] = "\\b";
|
|
@@ -2300,7 +2300,7 @@ fe[133] = "\\N";
|
|
|
2300
2300
|
fe[160] = "\\_";
|
|
2301
2301
|
fe[8232] = "\\L";
|
|
2302
2302
|
fe[8233] = "\\P";
|
|
2303
|
-
var
|
|
2303
|
+
var ro = [
|
|
2304
2304
|
"y",
|
|
2305
2305
|
"Y",
|
|
2306
2306
|
"yes",
|
|
@@ -2317,8 +2317,8 @@ var oo = [
|
|
|
2317
2317
|
"off",
|
|
2318
2318
|
"Off",
|
|
2319
2319
|
"OFF"
|
|
2320
|
-
],
|
|
2321
|
-
function
|
|
2320
|
+
], oo = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2321
|
+
function lo(e, n) {
|
|
2322
2322
|
var t, a, i, r, o, l, s;
|
|
2323
2323
|
if (n === null)
|
|
2324
2324
|
return {};
|
|
@@ -2326,7 +2326,7 @@ function so(e, n) {
|
|
|
2326
2326
|
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 && Rn.call(s.styleAliases, l) && (l = s.styleAliases[l]), t[o] = l;
|
|
2327
2327
|
return t;
|
|
2328
2328
|
}
|
|
2329
|
-
function
|
|
2329
|
+
function so(e) {
|
|
2330
2330
|
var n, t, a;
|
|
2331
2331
|
if (n = e.toString(16).toUpperCase(), e <= 255)
|
|
2332
2332
|
t = "x", a = 2;
|
|
@@ -2338,9 +2338,9 @@ function co(e) {
|
|
|
2338
2338
|
throw new me("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2339
2339
|
return "\\" + t + se.repeat("0", a - n.length) + n;
|
|
2340
2340
|
}
|
|
2341
|
-
var
|
|
2342
|
-
function
|
|
2343
|
-
this.schema = e.schema || bt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2341
|
+
var co = 1, Je = 2;
|
|
2342
|
+
function uo(e) {
|
|
2343
|
+
this.schema = e.schema || bt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = lo(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 === '"' ? Je : co, 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;
|
|
2344
2344
|
}
|
|
2345
2345
|
function Vt(e, n) {
|
|
2346
2346
|
for (var t = se.repeat(" ", n), a = 0, i = -1, r = "", o, l = e.length; a < l; )
|
|
@@ -2353,7 +2353,7 @@ function dt(e, n) {
|
|
|
2353
2353
|
return `
|
|
2354
2354
|
` + se.repeat(" ", e.indent * n);
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function po(e, n) {
|
|
2357
2357
|
var t, a, i;
|
|
2358
2358
|
for (t = 0, a = e.implicitTypes.length; t < a; t += 1)
|
|
2359
2359
|
if (i = e.implicitTypes[t], i.resolve(n))
|
|
@@ -2361,13 +2361,13 @@ function fo(e, n) {
|
|
|
2361
2361
|
return !1;
|
|
2362
2362
|
}
|
|
2363
2363
|
function et(e) {
|
|
2364
|
-
return e ===
|
|
2364
|
+
return e === zr || e === Pr;
|
|
2365
2365
|
}
|
|
2366
2366
|
function He(e) {
|
|
2367
2367
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== St || 65536 <= e && e <= 1114111;
|
|
2368
2368
|
}
|
|
2369
2369
|
function Pt(e) {
|
|
2370
|
-
return He(e) && e !== St && e !==
|
|
2370
|
+
return He(e) && e !== St && e !== Rr && e !== ze;
|
|
2371
2371
|
}
|
|
2372
2372
|
function Rt(e, n, t) {
|
|
2373
2373
|
var a = Pt(e), i = a && !et(e);
|
|
@@ -2379,10 +2379,10 @@ function Rt(e, n, t) {
|
|
|
2379
2379
|
) : a && e !== zn && e !== Jn && e !== Hn && e !== Wn && e !== Yn) && e !== ut && !(n === Xe && !i) || Pt(n) && !et(n) && e === ut || n === Xe && i
|
|
2380
2380
|
);
|
|
2381
2381
|
}
|
|
2382
|
-
function
|
|
2383
|
-
return He(e) && e !== St && !et(e) && e !==
|
|
2382
|
+
function fo(e) {
|
|
2383
|
+
return He(e) && e !== St && !et(e) && e !== Qr && e !== to && e !== Xe && e !== zn && e !== Jn && e !== Hn && e !== Wn && e !== Yn && e !== ut && e !== Yr && e !== Gr && e !== Jr && e !== io && e !== Xr && e !== eo && e !== Zr && e !== Hr && e !== Wr && e !== no && e !== ao;
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2385
|
+
function yo(e) {
|
|
2386
2386
|
return !et(e) && e !== Xe;
|
|
2387
2387
|
}
|
|
2388
2388
|
function Ue(e, n) {
|
|
@@ -2393,13 +2393,13 @@ function Zn(e) {
|
|
|
2393
2393
|
var n = /^\n* /;
|
|
2394
2394
|
return n.test(e);
|
|
2395
2395
|
}
|
|
2396
|
-
var Gn = 1, pt = 2, Qn = 3, Xn = 4,
|
|
2397
|
-
function
|
|
2398
|
-
var s, u = 0, c = null, d = !1, h = !1, f = a !== -1, C = -1, b =
|
|
2396
|
+
var Gn = 1, pt = 2, Qn = 3, Xn = 4, Me = 5;
|
|
2397
|
+
function mo(e, n, t, a, i, r, o, l) {
|
|
2398
|
+
var s, u = 0, c = null, d = !1, h = !1, f = a !== -1, C = -1, b = fo(Ue(e, 0)) && yo(Ue(e, e.length - 1));
|
|
2399
2399
|
if (n || o)
|
|
2400
2400
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
2401
2401
|
if (u = Ue(e, s), !He(u))
|
|
2402
|
-
return
|
|
2402
|
+
return Me;
|
|
2403
2403
|
b = b && Rt(u, c, l), c = u;
|
|
2404
2404
|
}
|
|
2405
2405
|
else {
|
|
@@ -2408,24 +2408,24 @@ function go(e, n, t, a, i, r, o, l) {
|
|
|
2408
2408
|
d = !0, f && (h = h || // Foldable line = too long, and not more-indented.
|
|
2409
2409
|
s - C - 1 > a && e[C + 1] !== " ", C = s);
|
|
2410
2410
|
else if (!He(u))
|
|
2411
|
-
return
|
|
2411
|
+
return Me;
|
|
2412
2412
|
b = b && Rt(u, c, l), c = u;
|
|
2413
2413
|
}
|
|
2414
2414
|
h = h || f && s - C - 1 > a && e[C + 1] !== " ";
|
|
2415
2415
|
}
|
|
2416
|
-
return !d && !h ? b && !o && !i(e) ? Gn : r === Je ?
|
|
2416
|
+
return !d && !h ? b && !o && !i(e) ? Gn : r === Je ? Me : pt : t > 9 && Zn(e) ? Me : o ? r === Je ? Me : pt : h ? Xn : Qn;
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2418
|
+
function go(e, n, t, a, i) {
|
|
2419
2419
|
e.dump = function() {
|
|
2420
2420
|
if (n.length === 0)
|
|
2421
2421
|
return e.quotingType === Je ? '""' : "''";
|
|
2422
|
-
if (!e.noCompatMode && (
|
|
2422
|
+
if (!e.noCompatMode && (ro.indexOf(n) !== -1 || oo.test(n)))
|
|
2423
2423
|
return e.quotingType === Je ? '"' + n + '"' : "'" + n + "'";
|
|
2424
2424
|
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;
|
|
2425
2425
|
function s(u) {
|
|
2426
|
-
return
|
|
2426
|
+
return po(e, u);
|
|
2427
2427
|
}
|
|
2428
|
-
switch (
|
|
2428
|
+
switch (mo(
|
|
2429
2429
|
n,
|
|
2430
2430
|
l,
|
|
2431
2431
|
e.indent,
|
|
@@ -2442,9 +2442,9 @@ function ho(e, n, t, a, i) {
|
|
|
2442
2442
|
case Qn:
|
|
2443
2443
|
return "|" + zt(n, e.indent) + Jt(Vt(n, r));
|
|
2444
2444
|
case Xn:
|
|
2445
|
-
return ">" + zt(n, e.indent) + Jt(Vt(
|
|
2446
|
-
case
|
|
2447
|
-
return '"' +
|
|
2445
|
+
return ">" + zt(n, e.indent) + Jt(Vt(ho(n, o), r));
|
|
2446
|
+
case Me:
|
|
2447
|
+
return '"' + vo(n) + '"';
|
|
2448
2448
|
default:
|
|
2449
2449
|
throw new me("impossible error: invalid scalar style");
|
|
2450
2450
|
}
|
|
@@ -2462,7 +2462,7 @@ function Jt(e) {
|
|
|
2462
2462
|
return e[e.length - 1] === `
|
|
2463
2463
|
` ? e.slice(0, -1) : e;
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2465
|
+
function ho(e, n) {
|
|
2466
2466
|
for (var t = /(\n+)([^\n]*)/g, a = function() {
|
|
2467
2467
|
var u = e.indexOf(`
|
|
2468
2468
|
`);
|
|
@@ -2485,12 +2485,12 @@ function Ht(e, n) {
|
|
|
2485
2485
|
`, e.length - i > n && o > i ? s += e.slice(i, o) + `
|
|
2486
2486
|
` + e.slice(o + 1) : s += e.slice(i), s.slice(1);
|
|
2487
2487
|
}
|
|
2488
|
-
function
|
|
2488
|
+
function vo(e) {
|
|
2489
2489
|
for (var n = "", t = 0, a, i = 0; i < e.length; t >= 65536 ? i += 2 : i++)
|
|
2490
|
-
t = Ue(e, i), a = fe[t], !a && He(t) ? (n += e[i], t >= 65536 && (n += e[i + 1])) : n += a ||
|
|
2490
|
+
t = Ue(e, i), a = fe[t], !a && He(t) ? (n += e[i], t >= 65536 && (n += e[i + 1])) : n += a || so(t);
|
|
2491
2491
|
return n;
|
|
2492
2492
|
}
|
|
2493
|
-
function
|
|
2493
|
+
function ko(e, n, t) {
|
|
2494
2494
|
var a = "", i = e.tag, r, o, l;
|
|
2495
2495
|
for (r = 0, o = t.length; r < o; r += 1)
|
|
2496
2496
|
l = t[r], e.replacer && (l = e.replacer.call(t, String(r), l)), (Se(e, n, l, !1, !1) || typeof l > "u" && Se(e, n, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
|
|
@@ -2502,13 +2502,13 @@ function Wt(e, n, t, a) {
|
|
|
2502
2502
|
s = t[o], e.replacer && (s = e.replacer.call(t, String(o), s)), (Se(e, n + 1, s, !0, !0, !1, !0) || typeof s > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!a || i !== "") && (i += dt(e, n)), e.dump && ze === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2503
2503
|
e.tag = r, e.dump = i || "[]";
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function bo(e, n, t) {
|
|
2506
2506
|
var a = "", i = e.tag, r = Object.keys(t), o, l, s, u, c;
|
|
2507
2507
|
for (o = 0, l = r.length; o < l; o += 1)
|
|
2508
2508
|
c = "", a !== "" && (c += ", "), e.condenseFlow && (c += '"'), s = r[o], u = t[s], e.replacer && (u = e.replacer.call(t, s, u)), Se(e, n, s, !1, !1) && (e.dump.length > 1024 && (c += "? "), c += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Se(e, n, u, !1, !1) && (c += e.dump, a += c));
|
|
2509
2509
|
e.tag = i, e.dump = "{" + a + "}";
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function Co(e, n, t, a) {
|
|
2512
2512
|
var i = "", r = e.tag, o = Object.keys(t), l, s, u, c, d, h;
|
|
2513
2513
|
if (e.sortKeys === !0)
|
|
2514
2514
|
o.sort();
|
|
@@ -2546,11 +2546,11 @@ function Se(e, n, t, a, i, r, o) {
|
|
|
2546
2546
|
e.dump = "*ref_" + d;
|
|
2547
2547
|
else {
|
|
2548
2548
|
if (c && h && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), l === "[object Object]")
|
|
2549
|
-
a && Object.keys(e.dump).length !== 0 ? (
|
|
2549
|
+
a && Object.keys(e.dump).length !== 0 ? (Co(e, n, e.dump, i), h && (e.dump = "&ref_" + d + e.dump)) : (bo(e, n, e.dump), h && (e.dump = "&ref_" + d + " " + e.dump));
|
|
2550
2550
|
else if (l === "[object Array]")
|
|
2551
|
-
a && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? Wt(e, n - 1, e.dump, i) : Wt(e, n, e.dump, i), h && (e.dump = "&ref_" + d + e.dump)) : (
|
|
2551
|
+
a && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? Wt(e, n - 1, e.dump, i) : Wt(e, n, e.dump, i), h && (e.dump = "&ref_" + d + e.dump)) : (ko(e, n, e.dump), h && (e.dump = "&ref_" + d + " " + e.dump));
|
|
2552
2552
|
else if (l === "[object String]")
|
|
2553
|
-
e.tag !== "?" &&
|
|
2553
|
+
e.tag !== "?" && go(e, e.dump, n, r, s);
|
|
2554
2554
|
else {
|
|
2555
2555
|
if (l === "[object Undefined]" || e.skipInvalid)
|
|
2556
2556
|
return !1;
|
|
@@ -2562,7 +2562,7 @@ function Se(e, n, t, a, i, r, o) {
|
|
|
2562
2562
|
}
|
|
2563
2563
|
return !0;
|
|
2564
2564
|
}
|
|
2565
|
-
function
|
|
2565
|
+
function wo(e, n) {
|
|
2566
2566
|
var t = [], a = [], i, r;
|
|
2567
2567
|
for (ft(e, t, a), i = 0, r = a.length; i < r; i += 1)
|
|
2568
2568
|
n.duplicates.push(t[a[i]]);
|
|
@@ -2580,23 +2580,23 @@ function ft(e, n, t) {
|
|
|
2580
2580
|
for (a = Object.keys(e), i = 0, r = a.length; i < r; i += 1)
|
|
2581
2581
|
ft(e[a[i]], n, t);
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2583
|
+
function So(e, n) {
|
|
2584
2584
|
n = n || {};
|
|
2585
|
-
var t = new
|
|
2586
|
-
t.noRefs ||
|
|
2585
|
+
var t = new uo(n);
|
|
2586
|
+
t.noRefs || wo(e, t);
|
|
2587
2587
|
var a = e;
|
|
2588
2588
|
return t.replacer && (a = t.replacer.call({ "": a }, "", a)), Se(t, 0, a, !0, !0) ? t.dump + `
|
|
2589
2589
|
` : "";
|
|
2590
2590
|
}
|
|
2591
|
-
var
|
|
2592
|
-
dump:
|
|
2591
|
+
var _o = So, Io = {
|
|
2592
|
+
dump: _o
|
|
2593
2593
|
};
|
|
2594
2594
|
function _t(e, n) {
|
|
2595
2595
|
return function() {
|
|
2596
2596
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2597
2597
|
};
|
|
2598
2598
|
}
|
|
2599
|
-
var
|
|
2599
|
+
var Ao = pe, xo = mn, jo = kn, To = _n, $o = In, Ko = bt, Oo = Vn.load, Mo = Vn.loadAll, Eo = Io.dump, No = me, Fo = {
|
|
2600
2600
|
binary: $n,
|
|
2601
2601
|
float: Sn,
|
|
2602
2602
|
map: vn,
|
|
@@ -2610,38 +2610,38 @@ var xo = pe, jo = mn, To = kn, $o = _n, Ko = In, Oo = bt, Mo = Vn.load, Eo = Vn.
|
|
|
2610
2610
|
omap: Kn,
|
|
2611
2611
|
seq: hn,
|
|
2612
2612
|
str: gn
|
|
2613
|
-
},
|
|
2614
|
-
Type:
|
|
2615
|
-
Schema:
|
|
2616
|
-
FAILSAFE_SCHEMA:
|
|
2617
|
-
JSON_SCHEMA:
|
|
2618
|
-
CORE_SCHEMA:
|
|
2619
|
-
DEFAULT_SCHEMA:
|
|
2620
|
-
load:
|
|
2621
|
-
loadAll:
|
|
2622
|
-
dump:
|
|
2623
|
-
YAMLException:
|
|
2624
|
-
types:
|
|
2625
|
-
safeLoad:
|
|
2626
|
-
safeLoadAll:
|
|
2627
|
-
safeDump:
|
|
2613
|
+
}, qo = _t("safeLoad", "load"), Bo = _t("safeLoadAll", "loadAll"), Lo = _t("safeDump", "dump"), Uo = {
|
|
2614
|
+
Type: Ao,
|
|
2615
|
+
Schema: xo,
|
|
2616
|
+
FAILSAFE_SCHEMA: jo,
|
|
2617
|
+
JSON_SCHEMA: To,
|
|
2618
|
+
CORE_SCHEMA: $o,
|
|
2619
|
+
DEFAULT_SCHEMA: Ko,
|
|
2620
|
+
load: Oo,
|
|
2621
|
+
loadAll: Mo,
|
|
2622
|
+
dump: Eo,
|
|
2623
|
+
YAMLException: No,
|
|
2624
|
+
types: Fo,
|
|
2625
|
+
safeLoad: qo,
|
|
2626
|
+
safeLoadAll: Bo,
|
|
2627
|
+
safeDump: Lo
|
|
2628
2628
|
};
|
|
2629
|
-
const
|
|
2629
|
+
const Do = {
|
|
2630
2630
|
key: 0,
|
|
2631
2631
|
class: "config-card-display-form"
|
|
2632
|
-
},
|
|
2632
|
+
}, Vo = ["data-testid"], Po = {
|
|
2633
2633
|
key: 0,
|
|
2634
2634
|
class: "config-card-prop-section-title"
|
|
2635
|
-
},
|
|
2635
|
+
}, Ro = {
|
|
2636
2636
|
key: 1,
|
|
2637
2637
|
class: "config-card-display-json"
|
|
2638
|
-
},
|
|
2638
|
+
}, zo = {
|
|
2639
2639
|
key: 0,
|
|
2640
2640
|
class: "config-card-display-json-endpoint"
|
|
2641
|
-
},
|
|
2641
|
+
}, Jo = {
|
|
2642
2642
|
key: 2,
|
|
2643
2643
|
class: "config-card-display-yaml"
|
|
2644
|
-
},
|
|
2644
|
+
}, Ho = /* @__PURE__ */ oe({
|
|
2645
2645
|
__name: "ConfigCardDisplay",
|
|
2646
2646
|
props: {
|
|
2647
2647
|
propertyCollections: {
|
|
@@ -2684,18 +2684,18 @@ const Vo = {
|
|
|
2684
2684
|
return ke(() => n.format, (s) => {
|
|
2685
2685
|
if (s !== "structured") {
|
|
2686
2686
|
const u = JSON.parse(JSON.stringify(n.record));
|
|
2687
|
-
delete u.created_at, delete u.updated_at, s === "json" ? r.value = JSON.stringify(u, null, 2) : s === "yaml" && (o.value =
|
|
2687
|
+
delete u.created_at, delete u.updated_at, s === "json" ? r.value = JSON.stringify(u, null, 2) : s === "yaml" && (o.value = Uo.dump(u));
|
|
2688
2688
|
}
|
|
2689
2689
|
}, { immediate: !0 }), (s, u) => {
|
|
2690
2690
|
const c = F("KBadge"), d = F("KCodeBlock");
|
|
2691
2691
|
return y(), T(he, null, [
|
|
2692
|
-
e.format === "structured" ? (y(), T("div",
|
|
2692
|
+
e.format === "structured" ? (y(), T("div", Do, [
|
|
2693
2693
|
(y(!0), T(he, null, ge(e.propListTypes, (h) => (y(), T("div", {
|
|
2694
2694
|
key: `config-card-details-${h}-props`,
|
|
2695
2695
|
class: we(`config-card-details-${h}-props`),
|
|
2696
2696
|
"data-testid": `config-card-details-${h}-props`
|
|
2697
2697
|
}, [
|
|
2698
|
-
h !== "basic" ? (y(), T("div",
|
|
2698
|
+
h !== "basic" ? (y(), T("div", Po, E(h === "advanced" ? g(a)("baseConfigCard.sections.advanced") : g(a)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
|
|
2699
2699
|
(y(!0), T(he, null, ge(e.propertyCollections[h], (f) => (y(), N(Pe, {
|
|
2700
2700
|
key: f.key,
|
|
2701
2701
|
item: f
|
|
@@ -2719,10 +2719,10 @@ const Vo = {
|
|
|
2719
2719
|
key: "0"
|
|
2720
2720
|
} : void 0
|
|
2721
2721
|
]), 1032, ["item"]))), 128))
|
|
2722
|
-
], 10,
|
|
2722
|
+
], 10, Vo))), 128))
|
|
2723
2723
|
])) : H("", !0),
|
|
2724
|
-
e.format === "json" ? (y(), T("div",
|
|
2725
|
-
n.fetcherUrl ? (y(), T("div",
|
|
2724
|
+
e.format === "json" ? (y(), T("div", Ro, [
|
|
2725
|
+
n.fetcherUrl ? (y(), T("div", zo, [
|
|
2726
2726
|
K(c, { appearance: "get" }, {
|
|
2727
2727
|
default: k(() => [
|
|
2728
2728
|
ee(E(g(a)("baseConfigCard.endpoints.get")), 1)
|
|
@@ -2745,7 +2745,7 @@ const Vo = {
|
|
|
2745
2745
|
theme: "dark"
|
|
2746
2746
|
}, null, 8, ["class", "code"])
|
|
2747
2747
|
])) : H("", !0),
|
|
2748
|
-
e.format === "yaml" ? (y(), T("div",
|
|
2748
|
+
e.format === "yaml" ? (y(), T("div", Jo, [
|
|
2749
2749
|
K(d, {
|
|
2750
2750
|
id: "config-card-codeblock",
|
|
2751
2751
|
code: o.value,
|
|
@@ -2756,18 +2756,18 @@ const Vo = {
|
|
|
2756
2756
|
], 64);
|
|
2757
2757
|
};
|
|
2758
2758
|
}
|
|
2759
|
-
}),
|
|
2759
|
+
}), Wo = /* @__PURE__ */ be(Ho, [["__scopeId", "data-v-27f85338"]]), Zt = "24px", Yo = (e, n) => {
|
|
2760
2760
|
const t = e.__vccOpts || e;
|
|
2761
2761
|
for (const [a, i] of n)
|
|
2762
2762
|
t[a] = i;
|
|
2763
2763
|
return t;
|
|
2764
|
-
},
|
|
2764
|
+
}, Zo = (e) => (tn("data-v-84d5ee61"), e = e(), nn(), e), Go = ["aria-hidden"], Qo = {
|
|
2765
2765
|
key: 0,
|
|
2766
2766
|
"data-testid": "kui-icon-svg-title"
|
|
2767
|
-
},
|
|
2767
|
+
}, Xo = /* @__PURE__ */ Zo(() => /* @__PURE__ */ L("path", {
|
|
2768
2768
|
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",
|
|
2769
2769
|
fill: "currentColor"
|
|
2770
|
-
}, null, -1)),
|
|
2770
|
+
}, null, -1)), el = /* @__PURE__ */ oe({
|
|
2771
2771
|
__name: "BookIcon",
|
|
2772
2772
|
props: {
|
|
2773
2773
|
/** The accessibility text provided to screen readers */
|
|
@@ -2836,7 +2836,7 @@ const Vo = {
|
|
|
2836
2836
|
lineHeight: "0",
|
|
2837
2837
|
width: t.value
|
|
2838
2838
|
}));
|
|
2839
|
-
return (i, r) => (y(), N(
|
|
2839
|
+
return (i, r) => (y(), N(Ke(e.as), {
|
|
2840
2840
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2841
2841
|
class: "kui-icon book-icon",
|
|
2842
2842
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -2853,23 +2853,23 @@ const Vo = {
|
|
|
2853
2853
|
width: "100%",
|
|
2854
2854
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2855
2855
|
}, [
|
|
2856
|
-
e.title ? (y(), T("title",
|
|
2857
|
-
|
|
2858
|
-
], 8,
|
|
2856
|
+
e.title ? (y(), T("title", Qo, E(e.title), 1)) : H("", !0),
|
|
2857
|
+
Xo
|
|
2858
|
+
], 8, Go))
|
|
2859
2859
|
]),
|
|
2860
2860
|
_: 1
|
|
2861
2861
|
}, 8, ["aria-hidden", "style"]));
|
|
2862
2862
|
}
|
|
2863
|
-
}),
|
|
2863
|
+
}), tl = /* @__PURE__ */ Yo(el, [["__scopeId", "data-v-84d5ee61"]]), nl = { "data-testid": "config-card-title" }, al = { class: "config-card-actions" }, il = ["href"], rl = {
|
|
2864
2864
|
key: 2,
|
|
2865
2865
|
class: "config-card-details-section"
|
|
2866
|
-
},
|
|
2866
|
+
}, ol = {
|
|
2867
2867
|
key: 3,
|
|
2868
2868
|
class: "config-card-details-section"
|
|
2869
|
-
},
|
|
2869
|
+
}, ll = ["data-testid"], sl = {
|
|
2870
2870
|
key: 0,
|
|
2871
2871
|
class: "config-card-prop-section-title"
|
|
2872
|
-
},
|
|
2872
|
+
}, cl = /* @__PURE__ */ oe({
|
|
2873
2873
|
__name: "EntityBaseConfigCard",
|
|
2874
2874
|
props: {
|
|
2875
2875
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3089,7 +3089,7 @@ const Vo = {
|
|
|
3089
3089
|
const O = F("KLabel"), B = F("KSelect"), R = F("KButton"), z = F("KClipboardProvider"), G = F("KSkeleton"), te = F("KEmptyState"), ie = F("KCard");
|
|
3090
3090
|
return y(), N(ie, { class: "kong-ui-entity-base-config-card" }, Ae({
|
|
3091
3091
|
actions: k(() => [
|
|
3092
|
-
L("div",
|
|
3092
|
+
L("div", al, [
|
|
3093
3093
|
X(I.$slots, "actions", {}, void 0, !0),
|
|
3094
3094
|
e.config.jsonYamlEnabled ? (y(), N(O, {
|
|
3095
3095
|
key: 0,
|
|
@@ -3120,8 +3120,8 @@ const Vo = {
|
|
|
3120
3120
|
rel: "noopener",
|
|
3121
3121
|
target: "_blank"
|
|
3122
3122
|
}, [
|
|
3123
|
-
K(g(
|
|
3124
|
-
], 8,
|
|
3123
|
+
K(g(tl), { size: g(li) }, null, 8, ["size"])
|
|
3124
|
+
], 8, il)
|
|
3125
3125
|
]),
|
|
3126
3126
|
_: 1
|
|
3127
3127
|
})) : H("", !0),
|
|
@@ -3159,8 +3159,8 @@ const Vo = {
|
|
|
3159
3159
|
]),
|
|
3160
3160
|
_: 1
|
|
3161
3161
|
})) : H("", !0),
|
|
3162
|
-
e.config.jsonYamlEnabled ? (y(), T("div",
|
|
3163
|
-
K(
|
|
3162
|
+
e.config.jsonYamlEnabled ? (y(), T("div", rl, [
|
|
3163
|
+
K(Wo, {
|
|
3164
3164
|
"fetcher-url": q.value,
|
|
3165
3165
|
format: d.value,
|
|
3166
3166
|
"prop-list-types": _.value,
|
|
@@ -3177,13 +3177,13 @@ const Vo = {
|
|
|
3177
3177
|
])
|
|
3178
3178
|
}))
|
|
3179
3179
|
]), 1032, ["fetcher-url", "format", "prop-list-types", "property-collections", "record"])
|
|
3180
|
-
])) : (y(), T("div",
|
|
3180
|
+
])) : (y(), T("div", ol, [
|
|
3181
3181
|
(y(!0), T(he, null, ge(_.value, (ne) => (y(), T("div", {
|
|
3182
3182
|
key: `config-card-details-${ne}-props`,
|
|
3183
3183
|
class: we(`config-card-details-${ne}-props`),
|
|
3184
3184
|
"data-testid": `config-card-details-${ne}-props`
|
|
3185
3185
|
}, [
|
|
3186
|
-
ne !== "basic" ? (y(), T("div",
|
|
3186
|
+
ne !== "basic" ? (y(), T("div", sl, E(ne === "advanced" ? g(o)("baseConfigCard.sections.advanced") : g(o)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
|
|
3187
3187
|
(y(!0), T(he, null, ge(S.value[ne], (Q) => (y(), N(Pe, {
|
|
3188
3188
|
key: Q.key,
|
|
3189
3189
|
item: Q
|
|
@@ -3207,7 +3207,7 @@ const Vo = {
|
|
|
3207
3207
|
key: "0"
|
|
3208
3208
|
} : void 0
|
|
3209
3209
|
]), 1032, ["item"]))), 128))
|
|
3210
|
-
], 10,
|
|
3210
|
+
], 10, ll))), 128))
|
|
3211
3211
|
]))
|
|
3212
3212
|
]),
|
|
3213
3213
|
_: 2
|
|
@@ -3215,7 +3215,7 @@ const Vo = {
|
|
|
3215
3215
|
e.hideTitle ? void 0 : {
|
|
3216
3216
|
name: "title",
|
|
3217
3217
|
fn: k(() => [
|
|
3218
|
-
L("div",
|
|
3218
|
+
L("div", nl, [
|
|
3219
3219
|
X(I.$slots, "title", {}, () => [
|
|
3220
3220
|
ee(E(g(o)("baseConfigCard.title")), 1)
|
|
3221
3221
|
], !0)
|
|
@@ -3226,10 +3226,10 @@ const Vo = {
|
|
|
3226
3226
|
]), 1024);
|
|
3227
3227
|
};
|
|
3228
3228
|
}
|
|
3229
|
-
}),
|
|
3229
|
+
}), ul = /* @__PURE__ */ be(cl, [["__scopeId", "data-v-4f47d6ad"]]), dl = {
|
|
3230
3230
|
class: "form-actions",
|
|
3231
3231
|
"data-testid": "form-actions"
|
|
3232
|
-
},
|
|
3232
|
+
}, pl = /* @__PURE__ */ oe({
|
|
3233
3233
|
__name: "EntityBaseForm",
|
|
3234
3234
|
props: {
|
|
3235
3235
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3339,7 +3339,7 @@ const Vo = {
|
|
|
3339
3339
|
appearance: "danger",
|
|
3340
3340
|
"data-testid": "form-error"
|
|
3341
3341
|
}, null, 8, ["alert-message"])) : H("", !0),
|
|
3342
|
-
L("div",
|
|
3342
|
+
L("div", dl, [
|
|
3343
3343
|
X(v.$slots, "form-actions", {}, () => [
|
|
3344
3344
|
K(U, {
|
|
3345
3345
|
appearance: "secondary",
|
|
@@ -3371,10 +3371,10 @@ const Vo = {
|
|
|
3371
3371
|
});
|
|
3372
3372
|
};
|
|
3373
3373
|
}
|
|
3374
|
-
}),
|
|
3374
|
+
}), fl = /* @__PURE__ */ be(pl, [["__scopeId", "data-v-448d8512"]]), yl = {
|
|
3375
3375
|
key: 0,
|
|
3376
3376
|
"data-testid": "first-col"
|
|
3377
|
-
},
|
|
3377
|
+
}, ml = /* @__PURE__ */ oe({
|
|
3378
3378
|
__name: "EntityBaseTableCell",
|
|
3379
3379
|
props: {
|
|
3380
3380
|
keyName: {
|
|
@@ -3430,7 +3430,7 @@ const Vo = {
|
|
|
3430
3430
|
ref: s,
|
|
3431
3431
|
class: "content-wrapper"
|
|
3432
3432
|
}, [
|
|
3433
|
-
i.value ? (y(), T("span",
|
|
3433
|
+
i.value ? (y(), T("span", yl, [
|
|
3434
3434
|
K(v, {
|
|
3435
3435
|
label: C.value ? d.value : "",
|
|
3436
3436
|
"max-width": "300",
|
|
@@ -3445,10 +3445,10 @@ const Vo = {
|
|
|
3445
3445
|
], 512);
|
|
3446
3446
|
};
|
|
3447
3447
|
}
|
|
3448
|
-
}),
|
|
3448
|
+
}), gl = /* @__PURE__ */ be(ml, [["__scopeId", "data-v-e42a20c9"]]), hl = { class: "toolbar-container" }, vl = {
|
|
3449
3449
|
key: 0,
|
|
3450
3450
|
class: "toolbar-button-container"
|
|
3451
|
-
},
|
|
3451
|
+
}, kl = ["data-testid"], bl = /* @__PURE__ */ oe({
|
|
3452
3452
|
__name: "EntityBaseTable",
|
|
3453
3453
|
props: {
|
|
3454
3454
|
// table header configuration
|
|
@@ -3607,7 +3607,7 @@ const Vo = {
|
|
|
3607
3607
|
a("click:row", U);
|
|
3608
3608
|
}), x = (_) => {
|
|
3609
3609
|
a("sort", _);
|
|
3610
|
-
}, { setTablePreferences: v, getTablePreferences: p } =
|
|
3610
|
+
}, { setTablePreferences: v, getTablePreferences: p } = fa(), A = j(() => {
|
|
3611
3611
|
const _ = p(t.preferencesStorageKey);
|
|
3612
3612
|
return {
|
|
3613
3613
|
...t.initialFetcherParams,
|
|
@@ -3656,9 +3656,9 @@ const Vo = {
|
|
|
3656
3656
|
"onUpdate:tablePreferences": S
|
|
3657
3657
|
}, Ae({
|
|
3658
3658
|
toolbar: k(({ state: B }) => [
|
|
3659
|
-
De(L("div",
|
|
3659
|
+
De(L("div", hl, [
|
|
3660
3660
|
X(_.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3661
|
-
_.$slots["toolbar-button"] ? (y(), T("div",
|
|
3661
|
+
_.$slots["toolbar-button"] ? (y(), T("div", vl, [
|
|
3662
3662
|
X(_.$slots, "toolbar-button", {}, void 0, !0)
|
|
3663
3663
|
])) : H("", !0)
|
|
3664
3664
|
], 512), [
|
|
@@ -3689,7 +3689,7 @@ const Vo = {
|
|
|
3689
3689
|
}, {
|
|
3690
3690
|
icon: k(() => [
|
|
3691
3691
|
K(q, {
|
|
3692
|
-
color: g(
|
|
3692
|
+
color: g(ri),
|
|
3693
3693
|
icon: "more",
|
|
3694
3694
|
size: "16"
|
|
3695
3695
|
}, null, 8, ["color"])
|
|
@@ -3699,14 +3699,14 @@ const Vo = {
|
|
|
3699
3699
|
]),
|
|
3700
3700
|
_: 2
|
|
3701
3701
|
}, 1032, ["width"])
|
|
3702
|
-
], 8,
|
|
3702
|
+
], 8, kl)
|
|
3703
3703
|
]),
|
|
3704
3704
|
_: 2
|
|
3705
3705
|
}, [
|
|
3706
3706
|
ge(e.tableHeaders, (B, R) => ({
|
|
3707
3707
|
name: R,
|
|
3708
3708
|
fn: k(({ row: z, rowKey: G, rowValue: te }) => [
|
|
3709
|
-
K(
|
|
3709
|
+
K(gl, {
|
|
3710
3710
|
"key-name": String(R),
|
|
3711
3711
|
"row-el": d(z)
|
|
3712
3712
|
}, {
|
|
@@ -3729,13 +3729,13 @@ const Vo = {
|
|
|
3729
3729
|
}, 8, ["title"]);
|
|
3730
3730
|
};
|
|
3731
3731
|
}
|
|
3732
|
-
}),
|
|
3732
|
+
}), Cl = /* @__PURE__ */ be(bl, [["__scopeId", "data-v-57b5a97b"]]), wl = {
|
|
3733
3733
|
key: 0,
|
|
3734
3734
|
class: "kong-ui-entity-delete-error"
|
|
3735
|
-
},
|
|
3735
|
+
}, Sl = {
|
|
3736
3736
|
key: 1,
|
|
3737
3737
|
class: "description"
|
|
3738
|
-
},
|
|
3738
|
+
}, _l = /* @__PURE__ */ oe({
|
|
3739
3739
|
__name: "EntityDeleteModal",
|
|
3740
3740
|
props: {
|
|
3741
3741
|
visible: {
|
|
@@ -3793,7 +3793,7 @@ const Vo = {
|
|
|
3793
3793
|
onProceed: l
|
|
3794
3794
|
}, {
|
|
3795
3795
|
"body-content": k(() => [
|
|
3796
|
-
e.error ? (y(), T("div",
|
|
3796
|
+
e.error ? (y(), T("div", wl, [
|
|
3797
3797
|
K(c, { appearance: "danger" }, {
|
|
3798
3798
|
alertMessage: k(() => [
|
|
3799
3799
|
ee(E(e.error), 1)
|
|
@@ -3819,7 +3819,7 @@ const Vo = {
|
|
|
3819
3819
|
key: "0"
|
|
3820
3820
|
} : void 0
|
|
3821
3821
|
]), 1032, ["keypath"]),
|
|
3822
|
-
a.description || s.$slots.description ? (y(), T("div",
|
|
3822
|
+
a.description || s.$slots.description ? (y(), T("div", Sl, [
|
|
3823
3823
|
X(s.$slots, "description", {}, () => [
|
|
3824
3824
|
L("p", null, E(a.description), 1)
|
|
3825
3825
|
], !0)
|
|
@@ -3829,13 +3829,13 @@ const Vo = {
|
|
|
3829
3829
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3830
3830
|
};
|
|
3831
3831
|
}
|
|
3832
|
-
}),
|
|
3832
|
+
}), Il = /* @__PURE__ */ be(_l, [["__scopeId", "data-v-1c9a2a07"]]), Al = {
|
|
3833
3833
|
fill: "none",
|
|
3834
3834
|
height: "20",
|
|
3835
3835
|
viewBox: "0 0 20 20",
|
|
3836
3836
|
width: "20",
|
|
3837
3837
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3838
|
-
},
|
|
3838
|
+
}, xl = {
|
|
3839
3839
|
id: "mask0_180_20349",
|
|
3840
3840
|
height: "20",
|
|
3841
3841
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3843,35 +3843,35 @@ const Vo = {
|
|
|
3843
3843
|
width: "20",
|
|
3844
3844
|
x: "0",
|
|
3845
3845
|
y: "0"
|
|
3846
|
-
},
|
|
3846
|
+
}, jl = ["fill"], Tl = { mask: "url(#mask0_180_20349)" }, $l = ["fill"], Gt = /* @__PURE__ */ oe({
|
|
3847
3847
|
__name: "IconFilter",
|
|
3848
3848
|
props: {
|
|
3849
3849
|
color: {
|
|
3850
3850
|
type: String,
|
|
3851
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3851
|
+
default: `var(--kong-ui-entity-filter-color, ${ai})`
|
|
3852
3852
|
}
|
|
3853
3853
|
},
|
|
3854
3854
|
setup(e) {
|
|
3855
|
-
return (n, t) => (y(), T("svg",
|
|
3856
|
-
L("mask",
|
|
3855
|
+
return (n, t) => (y(), T("svg", Al, [
|
|
3856
|
+
L("mask", xl, [
|
|
3857
3857
|
L("rect", {
|
|
3858
3858
|
fill: e.color,
|
|
3859
3859
|
height: "20",
|
|
3860
3860
|
width: "20"
|
|
3861
|
-
}, null, 8,
|
|
3861
|
+
}, null, 8, jl)
|
|
3862
3862
|
]),
|
|
3863
|
-
L("g",
|
|
3863
|
+
L("g", Tl, [
|
|
3864
3864
|
L("path", {
|
|
3865
3865
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3866
3866
|
fill: e.color
|
|
3867
|
-
}, null, 8,
|
|
3867
|
+
}, null, 8, $l)
|
|
3868
3868
|
])
|
|
3869
3869
|
]));
|
|
3870
3870
|
}
|
|
3871
|
-
}),
|
|
3871
|
+
}), Kl = {
|
|
3872
3872
|
key: 1,
|
|
3873
3873
|
class: "kong-ui-entity-filter"
|
|
3874
|
-
},
|
|
3874
|
+
}, Ol = { class: "menu-item-title" }, Ml = { class: "menu-item-indicator" }, El = { class: "menu-item-body" }, Nl = ["for"], Fl = { class: "menu-item-buttons" }, ql = { class: "filter-clear-button-container" }, Bl = /* @__PURE__ */ oe({
|
|
3875
3875
|
__name: "EntityFilter",
|
|
3876
3876
|
props: {
|
|
3877
3877
|
// filter config, either exact match or fuzzy match
|
|
@@ -3947,7 +3947,7 @@ const Vo = {
|
|
|
3947
3947
|
K(Gt)
|
|
3948
3948
|
]),
|
|
3949
3949
|
_: 1
|
|
3950
|
-
}, 8, ["model-value", "placeholder"])) : (y(), T("div",
|
|
3950
|
+
}, 8, ["model-value", "placeholder"])) : (y(), T("div", Kl, [
|
|
3951
3951
|
K(S, {
|
|
3952
3952
|
appearance: "tertiary",
|
|
3953
3953
|
"data-testid": "filter-button",
|
|
@@ -3974,9 +3974,9 @@ const Vo = {
|
|
|
3974
3974
|
"last-menu-item": I === s.value.length - 1
|
|
3975
3975
|
}, {
|
|
3976
3976
|
itemTitle: k(() => [
|
|
3977
|
-
L("span",
|
|
3977
|
+
L("span", Ol, [
|
|
3978
3978
|
ee(E(D.label) + " ", 1),
|
|
3979
|
-
De(L("span",
|
|
3979
|
+
De(L("span", Ml, null, 512), [
|
|
3980
3980
|
[Ve, l.value.includes(D.value)]
|
|
3981
3981
|
])
|
|
3982
3982
|
])
|
|
@@ -3984,11 +3984,11 @@ const Vo = {
|
|
|
3984
3984
|
itemBody: k(() => {
|
|
3985
3985
|
var V, O;
|
|
3986
3986
|
return [
|
|
3987
|
-
L("div",
|
|
3987
|
+
L("div", El, [
|
|
3988
3988
|
L("label", {
|
|
3989
3989
|
class: "menu-item-label",
|
|
3990
3990
|
for: d(D.value)
|
|
3991
|
-
}, E(g(t)("filter.fieldLabel")), 9,
|
|
3991
|
+
}, E(g(t)("filter.fieldLabel")), 9, Nl),
|
|
3992
3992
|
((O = (V = e.config.schema) == null ? void 0 : V[D.value]) == null ? void 0 : O.type) === "select" ? (y(), N(_, {
|
|
3993
3993
|
key: 0,
|
|
3994
3994
|
id: d(D.value),
|
|
@@ -4007,7 +4007,7 @@ const Vo = {
|
|
|
4007
4007
|
type: f(D.value)
|
|
4008
4008
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4009
4009
|
]),
|
|
4010
|
-
L("div",
|
|
4010
|
+
L("div", Fl, [
|
|
4011
4011
|
K(S, {
|
|
4012
4012
|
appearance: "tertiary",
|
|
4013
4013
|
"data-testid": "apply-filter",
|
|
@@ -4037,7 +4037,7 @@ const Vo = {
|
|
|
4037
4037
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
4038
4038
|
]),
|
|
4039
4039
|
actionButton: k(() => [
|
|
4040
|
-
L("div",
|
|
4040
|
+
L("div", ql, [
|
|
4041
4041
|
K(S, {
|
|
4042
4042
|
appearance: "tertiary",
|
|
4043
4043
|
size: "small",
|
|
@@ -4057,7 +4057,7 @@ const Vo = {
|
|
|
4057
4057
|
]));
|
|
4058
4058
|
};
|
|
4059
4059
|
}
|
|
4060
|
-
}),
|
|
4060
|
+
}), Ll = /* @__PURE__ */ be(Bl, [["__scopeId", "data-v-15962ee2"]]), We = /* @__PURE__ */ oe({
|
|
4061
4061
|
__name: "PermissionsWrapper",
|
|
4062
4062
|
props: {
|
|
4063
4063
|
/**
|
|
@@ -4087,16 +4087,16 @@ const Vo = {
|
|
|
4087
4087
|
isAllowed: t.value
|
|
4088
4088
|
}) : H("", !0);
|
|
4089
4089
|
}
|
|
4090
|
-
}),
|
|
4090
|
+
}), Ul = { class: "form-section-wrapper" }, Dl = {
|
|
4091
4091
|
key: 0,
|
|
4092
4092
|
class: "form-section-title"
|
|
4093
|
-
},
|
|
4093
|
+
}, Vl = {
|
|
4094
4094
|
key: 1,
|
|
4095
4095
|
class: "form-section-description"
|
|
4096
|
-
},
|
|
4096
|
+
}, Pl = {
|
|
4097
4097
|
key: 2,
|
|
4098
4098
|
class: "form-section-footer"
|
|
4099
|
-
},
|
|
4099
|
+
}, Rl = { class: "form-section-content" }, zl = /* @__PURE__ */ oe({
|
|
4100
4100
|
__name: "EntityFormSection",
|
|
4101
4101
|
props: {
|
|
4102
4102
|
title: {
|
|
@@ -4125,28 +4125,28 @@ const Vo = {
|
|
|
4125
4125
|
return (t, a) => (y(), T("fieldset", {
|
|
4126
4126
|
class: we(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4127
4127
|
}, [
|
|
4128
|
-
L("div",
|
|
4128
|
+
L("div", Ul, [
|
|
4129
4129
|
e.hideInfoHeader ? H("", !0) : (y(), T("div", {
|
|
4130
4130
|
key: 0,
|
|
4131
4131
|
class: we(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4132
4132
|
}, [
|
|
4133
|
-
e.title ? (y(), T("h4",
|
|
4134
|
-
e.description || g(n).description ? (y(), T("div",
|
|
4133
|
+
e.title ? (y(), T("h4", Dl, E(e.title), 1)) : H("", !0),
|
|
4134
|
+
e.description || g(n).description ? (y(), T("div", Vl, [
|
|
4135
4135
|
X(t.$slots, "description", {}, () => [
|
|
4136
4136
|
L("p", null, E(e.description), 1)
|
|
4137
4137
|
], !0)
|
|
4138
4138
|
])) : H("", !0),
|
|
4139
|
-
g(n).footer ? (y(), T("div",
|
|
4139
|
+
g(n).footer ? (y(), T("div", Pl, [
|
|
4140
4140
|
X(t.$slots, "footer", {}, void 0, !0)
|
|
4141
4141
|
])) : H("", !0)
|
|
4142
4142
|
], 2)),
|
|
4143
|
-
L("div",
|
|
4143
|
+
L("div", Rl, [
|
|
4144
4144
|
X(t.$slots, "default", {}, void 0, !0)
|
|
4145
4145
|
])
|
|
4146
4146
|
])
|
|
4147
4147
|
], 2));
|
|
4148
4148
|
}
|
|
4149
|
-
}), Qt = /* @__PURE__ */ be(
|
|
4149
|
+
}), Qt = /* @__PURE__ */ be(zl, [["__scopeId", "data-v-3565daa7"]]), { useAxios: It, useDeleteUrlBuilder: Jl, useErrors: Hl, useExternalLinkCreator: ys, useFetchUrlBuilder: ms, useFetcher: Wl, useDebouncedFilter: Yl, useStringHelpers: Zl, useHelpers: gs, useGatewayFeatureSupported: hs, useTruncationDetector: vs } = ue, Gl = { class: "kong-ui-entities-keys-list" }, Ql = { key: 1 }, Xl = /* @__PURE__ */ oe({
|
|
4150
4150
|
__name: "KeyList",
|
|
4151
4151
|
props: {
|
|
4152
4152
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4217,7 +4217,7 @@ const Vo = {
|
|
|
4217
4217
|
fields: w,
|
|
4218
4218
|
schema: a.config.filterSchema
|
|
4219
4219
|
};
|
|
4220
|
-
}), { fetcher: C, fetcherState: b } =
|
|
4220
|
+
}), { fetcher: C, fetcherState: b } = Wl(a.config, d.value), x = () => {
|
|
4221
4221
|
h.value = "";
|
|
4222
4222
|
}, v = () => {
|
|
4223
4223
|
l.value++;
|
|
@@ -4265,7 +4265,7 @@ const Vo = {
|
|
|
4265
4265
|
}), V = (m) => ({
|
|
4266
4266
|
label: i("keys.actions.edit"),
|
|
4267
4267
|
to: a.config.getEditRoute(m)
|
|
4268
|
-
}), O = M(void 0), B = M(!1), R = M(!1), z = M(""), G =
|
|
4268
|
+
}), O = M(void 0), B = M(!1), R = M(!1), z = M(""), G = Jl(a.config, d.value), te = (m) => {
|
|
4269
4269
|
O.value = m, B.value = !0;
|
|
4270
4270
|
}, ie = () => {
|
|
4271
4271
|
B.value = !1;
|
|
@@ -4302,8 +4302,8 @@ const Vo = {
|
|
|
4302
4302
|
await a.canCreate() && (ce.value.title = i("keys.list.empty_state.title"), ce.value.ctaText = i("keys.actions.create"));
|
|
4303
4303
|
}), (m, w) => {
|
|
4304
4304
|
const J = F("KButton"), ae = F("CopyUuid"), de = F("KBadge"), Y = F("KTruncate"), _e = F("KDropdownItem"), Be = F("KClipboardProvider");
|
|
4305
|
-
return y(), T("div",
|
|
4306
|
-
K(g(
|
|
4305
|
+
return y(), T("div", Gl, [
|
|
4306
|
+
K(g(Cl), {
|
|
4307
4307
|
"cache-identifier": e.cacheIdentifier,
|
|
4308
4308
|
"disable-pagination-page-jump": "",
|
|
4309
4309
|
"disable-sorting": s.value,
|
|
@@ -4322,38 +4322,40 @@ const Vo = {
|
|
|
4322
4322
|
onSort: v
|
|
4323
4323
|
}, {
|
|
4324
4324
|
"toolbar-filter": k(() => [
|
|
4325
|
-
K(g(
|
|
4325
|
+
K(g(Ll), {
|
|
4326
4326
|
modelValue: h.value,
|
|
4327
4327
|
"onUpdate:modelValue": w[0] || (w[0] = (W) => h.value = W),
|
|
4328
4328
|
config: f.value
|
|
4329
4329
|
}, null, 8, ["modelValue", "config"])
|
|
4330
4330
|
]),
|
|
4331
4331
|
"toolbar-button": k(() => [
|
|
4332
|
-
(y(), N(
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4332
|
+
(y(), N(Ke(e.useActionOutside ? "Teleport" : "div"), {
|
|
4333
|
+
to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
|
|
4334
|
+
}, {
|
|
4335
|
+
default: k(() => [
|
|
4336
|
+
K(g(We), {
|
|
4337
|
+
"auth-function": () => e.canCreate()
|
|
4338
|
+
}, {
|
|
4339
|
+
default: k(() => [
|
|
4340
|
+
De(K(J, {
|
|
4341
|
+
appearance: "primary",
|
|
4342
|
+
"data-testid": "toolbar-add-key",
|
|
4343
|
+
icon: "plus",
|
|
4344
|
+
to: e.config.createRoute
|
|
4345
|
+
}, {
|
|
4346
|
+
default: k(() => [
|
|
4347
|
+
ee(E(g(i)("keys.list.toolbar_actions.new_key")), 1)
|
|
4348
|
+
]),
|
|
4349
|
+
_: 1
|
|
4350
|
+
}, 8, ["to"]), [
|
|
4351
|
+
[Ve, Q.value]
|
|
4352
|
+
])
|
|
4353
|
+
]),
|
|
4354
|
+
_: 1
|
|
4355
|
+
}, 8, ["auth-function"])
|
|
4356
|
+
]),
|
|
4357
|
+
_: 1
|
|
4358
|
+
}, 8, ["to"]))
|
|
4357
4359
|
]),
|
|
4358
4360
|
name: k(({ rowValue: W }) => [
|
|
4359
4361
|
L("b", null, E(W ?? "-"), 1)
|
|
@@ -4379,7 +4381,7 @@ const Vo = {
|
|
|
4379
4381
|
}, 1024))), 128))
|
|
4380
4382
|
]),
|
|
4381
4383
|
_: 2
|
|
4382
|
-
}, 1024)) : (y(), T("span",
|
|
4384
|
+
}, 1024)) : (y(), T("span", Ql, "-"))
|
|
4383
4385
|
]),
|
|
4384
4386
|
id: k(({ row: W, rowValue: le }) => [
|
|
4385
4387
|
K(ae, {
|
|
@@ -4460,7 +4462,7 @@ const Vo = {
|
|
|
4460
4462
|
]),
|
|
4461
4463
|
_: 1
|
|
4462
4464
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
4463
|
-
K(g(
|
|
4465
|
+
K(g(Il), {
|
|
4464
4466
|
"action-pending": R.value,
|
|
4465
4467
|
description: g(i)("keys.delete.description"),
|
|
4466
4468
|
"entity-name": O.value && (O.value.name || O.value.id),
|
|
@@ -4480,11 +4482,11 @@ const Vo = {
|
|
|
4480
4482
|
for (const [a, i] of n)
|
|
4481
4483
|
t[a] = i;
|
|
4482
4484
|
return t;
|
|
4483
|
-
},
|
|
4485
|
+
}, ks = /* @__PURE__ */ ea(Xl, [["__scopeId", "data-v-0d47ab80"]]), es = { class: "kong-ui-entities-keys-form" }, ts = { "data-testid": "no-search-results" }, ns = { class: "select-item-label" }, as = { class: "select-item-desc" }, is = {
|
|
4484
4486
|
key: 0,
|
|
4485
4487
|
class: "invalid-key-set-message",
|
|
4486
4488
|
"data-testid": "invalid-key-set-message"
|
|
4487
|
-
},
|
|
4489
|
+
}, rs = { "data-testid": "key-format-container" }, os = /* @__PURE__ */ oe({
|
|
4488
4490
|
__name: "KeyForm",
|
|
4489
4491
|
props: {
|
|
4490
4492
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4515,7 +4517,7 @@ const Vo = {
|
|
|
4515
4517
|
emits: ["update", "error", "loading"],
|
|
4516
4518
|
setup(e, { emit: n }) {
|
|
4517
4519
|
var qe;
|
|
4518
|
-
const t = n, a = e, i = yt(), { i18n: { t: r } } = gt.useI18n(), { getMessageFromError: o } =
|
|
4520
|
+
const t = n, a = e, i = yt(), { i18n: { t: r } } = gt.useI18n(), { getMessageFromError: o } = Hl(), { axiosInstance: l } = It({
|
|
4519
4521
|
headers: (qe = a.config) == null ? void 0 : qe.requestHeaders
|
|
4520
4522
|
}), s = j(() => a.keySetId ? Ie.form[a.config.app].edit.forKeySet.replace(/{keySetId}/gi, a.keySetId) : Ie.form[a.config.app].edit.all), u = j(() => a.keyId ? Le.Edit : Le.Create), c = At({
|
|
4521
4523
|
fields: {
|
|
@@ -4591,7 +4593,7 @@ const Vo = {
|
|
|
4591
4593
|
validationError: D,
|
|
4592
4594
|
loadItems: I,
|
|
4593
4595
|
results: V
|
|
4594
|
-
} =
|
|
4596
|
+
} = Yl(a.config, Ie.form[a.config.app].keySets, void 0, {
|
|
4595
4597
|
fetchedItemsKey: "data",
|
|
4596
4598
|
searchKeys: ["id", "name"]
|
|
4597
4599
|
}), O = M(!0), B = (m) => {
|
|
@@ -4620,8 +4622,8 @@ const Vo = {
|
|
|
4620
4622
|
await I();
|
|
4621
4623
|
}), (m, w) => {
|
|
4622
4624
|
const J = F("KInput"), ae = F("KSelect"), de = F("KTextArea");
|
|
4623
|
-
return y(), T("div",
|
|
4624
|
-
K(g(
|
|
4625
|
+
return y(), T("div", es, [
|
|
4626
|
+
K(g(fl), {
|
|
4625
4627
|
"can-submit": b.value,
|
|
4626
4628
|
config: e.config,
|
|
4627
4629
|
"edit-id": e.keyId,
|
|
@@ -4687,18 +4689,18 @@ const Vo = {
|
|
|
4687
4689
|
L("div", null, E(g(r)("keys.actions.loading")), 1)
|
|
4688
4690
|
]),
|
|
4689
4691
|
empty: k(() => [
|
|
4690
|
-
L("div",
|
|
4692
|
+
L("div", ts, E(g(r)("keys.search.no_results")), 1)
|
|
4691
4693
|
]),
|
|
4692
4694
|
"selected-item-template": k(({ item: Y }) => [
|
|
4693
4695
|
L("div", null, E(Y.name), 1)
|
|
4694
4696
|
]),
|
|
4695
4697
|
"item-template": k(({ item: Y }) => [
|
|
4696
|
-
L("div",
|
|
4697
|
-
L("div",
|
|
4698
|
+
L("div", ns, E(Y.name), 1),
|
|
4699
|
+
L("div", as, E(Y.value), 1)
|
|
4698
4700
|
]),
|
|
4699
4701
|
_: 1
|
|
4700
4702
|
}, 8, ["modelValue", "class", "clearable", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"]),
|
|
4701
|
-
z.value ? (y(), T("p",
|
|
4703
|
+
z.value ? (y(), T("p", is, E(z.value), 1)) : H("", !0),
|
|
4702
4704
|
K(J, {
|
|
4703
4705
|
modelValue: c.fields.tags,
|
|
4704
4706
|
"onUpdate:modelValue": w[3] || (w[3] = (Y) => c.fields.tags = Y),
|
|
@@ -4721,7 +4723,7 @@ const Vo = {
|
|
|
4721
4723
|
title: g(r)("keys.form.sections.keys.title")
|
|
4722
4724
|
}, {
|
|
4723
4725
|
default: k(() => [
|
|
4724
|
-
L("div",
|
|
4726
|
+
L("div", rs, [
|
|
4725
4727
|
K(ae, {
|
|
4726
4728
|
modelValue: c.fields.key_format,
|
|
4727
4729
|
"onUpdate:modelValue": w[4] || (w[4] = (Y) => c.fields.key_format = Y),
|
|
@@ -4780,7 +4782,7 @@ const Vo = {
|
|
|
4780
4782
|
]);
|
|
4781
4783
|
};
|
|
4782
4784
|
}
|
|
4783
|
-
}),
|
|
4785
|
+
}), bs = /* @__PURE__ */ ea(os, [["__scopeId", "data-v-3cb3e371"]]), ls = { class: "kong-ui-entities-keys-entity-config-card" }, ss = { key: 2 }, Cs = /* @__PURE__ */ oe({
|
|
4784
4786
|
__name: "KeyConfigCard",
|
|
4785
4787
|
props: {
|
|
4786
4788
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4817,7 +4819,7 @@ const Vo = {
|
|
|
4817
4819
|
var v;
|
|
4818
4820
|
const t = n, a = e, { axiosInstance: i } = It({
|
|
4819
4821
|
headers: (v = a.config) == null ? void 0 : v.requestHeaders
|
|
4820
|
-
}), { convertKeyToTitle: r } =
|
|
4822
|
+
}), { convertKeyToTitle: r } = Zl(), { i18n: { t: o } } = gt.useI18n(), l = j(() => a.keySetId ? `${Ie.form[a.config.app].edit.forKeySet}`.replace(/{keySetId}/gi, a.keySetId) : Ie.form[a.config.app].edit.all), s = j(() => {
|
|
4821
4823
|
var p;
|
|
4822
4824
|
return (p = Ie.form[a.config.app]) == null ? void 0 : p.getKeySet;
|
|
4823
4825
|
}), u = M(), c = M({}), d = M(a.keySetId || ""), h = M(""), f = M(!1), C = async (p) => {
|
|
@@ -4895,8 +4897,8 @@ const Vo = {
|
|
|
4895
4897
|
return (p, A) => {
|
|
4896
4898
|
var _, U;
|
|
4897
4899
|
const S = F("KSkeleton");
|
|
4898
|
-
return y(), T("div",
|
|
4899
|
-
K(g(
|
|
4900
|
+
return y(), T("div", ls, [
|
|
4901
|
+
K(g(ul), {
|
|
4900
4902
|
config: e.config,
|
|
4901
4903
|
"config-card-doc": e.configCardDoc,
|
|
4902
4904
|
"config-schema": x.value,
|
|
@@ -4920,7 +4922,7 @@ const Vo = {
|
|
|
4920
4922
|
type: g(Z).LinkInternal
|
|
4921
4923
|
},
|
|
4922
4924
|
onClick: (D) => p.$emit("navigation-click", q.value.id, "key-sets")
|
|
4923
|
-
}, null, 8, ["item", "onClick"])) : (y(), T("div",
|
|
4925
|
+
}, null, 8, ["item", "onClick"])) : (y(), T("div", ss, E("–")))
|
|
4924
4926
|
]),
|
|
4925
4927
|
_: 2
|
|
4926
4928
|
}, [
|
|
@@ -4960,7 +4962,7 @@ const Vo = {
|
|
|
4960
4962
|
}
|
|
4961
4963
|
});
|
|
4962
4964
|
export {
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4965
|
+
Cs as KeyConfigCard,
|
|
4966
|
+
bs as KeyForm,
|
|
4967
|
+
ks as KeyList
|
|
4966
4968
|
};
|