@kong-ui-public/entities-key-sets 2.1.4 → 2.1.5
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-key-sets.es.js +370 -370
- package/dist/entities-key-sets.umd.js +19 -19
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as te, ref as O, computed as x, watch as ke, renderSlot as U, createCommentVNode as D, unref as w, useSlots as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { createI18n as
|
|
1
|
+
import { defineComponent as te, ref as O, computed as x, watch as ke, renderSlot as U, createCommentVNode as D, unref as w, useSlots as Ye, onBeforeMount as st, resolveComponent as E, openBlock as y, createBlock as N, createSlots as we, withCtx as k, createElementVNode as L, createTextVNode as H, toDisplayString as K, createVNode as $, createElementBlock as I, renderList as ue, Fragment as pe, normalizeClass as Ae, withModifiers as Pe, withDirectives as Ee, vShow as Ke, useCssVars as Ga, resolveDynamicComponent as je, normalizeProps as Za, guardReactiveProps as Qa, mergeProps as tt, onMounted as Xa, onUnmounted as en, normalizeStyle as Wt, inject as tn, pushScopeId as Gt, popScopeId as Zt, Teleport as an, reactive as St } from "vue";
|
|
2
|
+
import { useRouter as ct } from "vue-router";
|
|
3
|
+
import { createI18n as ut, i18nTComponent as Qt } from "@kong-ui-public/i18n";
|
|
4
4
|
import nn from "axios";
|
|
5
5
|
import { MethodsArray as rn } from "@kong/kongponents";
|
|
6
6
|
const on = {
|
|
@@ -68,16 +68,16 @@ const on = {
|
|
|
68
68
|
keySets: on
|
|
69
69
|
};
|
|
70
70
|
function sn() {
|
|
71
|
-
const e =
|
|
71
|
+
const e = ut("en-us", ln);
|
|
72
72
|
return {
|
|
73
73
|
i18n: e,
|
|
74
|
-
i18nT:
|
|
74
|
+
i18nT: Qt(e)
|
|
75
75
|
// Translation component <i18n-t>
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const dt = {
|
|
79
79
|
useI18n: sn
|
|
80
|
-
},
|
|
80
|
+
}, Ve = {
|
|
81
81
|
list: {
|
|
82
82
|
konnect: "/api/runtime_groups/{controlPlaneId}/key-sets",
|
|
83
83
|
kongManager: "/{workspace}/key-sets"
|
|
@@ -93,8 +93,8 @@ const pt = {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
-
var
|
|
97
|
-
function
|
|
96
|
+
var Xt = /* @__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))(Xt || {}), at = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(at || {}), Ce = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ce || {}), Y = /* @__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))(Y || {}), de = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(de || {});
|
|
97
|
+
function pt(e = {}) {
|
|
98
98
|
return {
|
|
99
99
|
axiosInstance: nn.create({
|
|
100
100
|
withCredentials: !0,
|
|
@@ -115,7 +115,7 @@ function cn() {
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const Ze = "khcp-user-table-preferences", un = {
|
|
119
119
|
pageSize: 30,
|
|
120
120
|
sortColumnKey: void 0,
|
|
121
121
|
sortColumnOrder: void 0
|
|
@@ -130,14 +130,14 @@ function dn() {
|
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
132
|
}, a = () => {
|
|
133
|
-
const t = e(localStorage.getItem(
|
|
133
|
+
const t = e(localStorage.getItem(Ze));
|
|
134
134
|
return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
|
|
135
135
|
};
|
|
136
136
|
return {
|
|
137
137
|
setTablePreferences: (t, n) => {
|
|
138
138
|
try {
|
|
139
139
|
const i = a();
|
|
140
|
-
i.set(t, n), localStorage.setItem(
|
|
140
|
+
i.set(t, n), localStorage.setItem(Ze, JSON.stringify(Object.fromEntries(i.entries())));
|
|
141
141
|
} catch (i) {
|
|
142
142
|
console.error("useTablePreferences(setTablePreferences)", i);
|
|
143
143
|
}
|
|
@@ -147,7 +147,7 @@ function dn() {
|
|
|
147
147
|
return (n == null ? void 0 : n.get(t)) || void 0 || un;
|
|
148
148
|
},
|
|
149
149
|
deleteAllTablePreferences: () => {
|
|
150
|
-
localStorage.removeItem(
|
|
150
|
+
localStorage.removeItem(Ze);
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
@@ -249,15 +249,15 @@ const pn = {
|
|
|
249
249
|
errors: bn,
|
|
250
250
|
toggleModal: kn
|
|
251
251
|
};
|
|
252
|
-
function
|
|
253
|
-
const e =
|
|
252
|
+
function ft() {
|
|
253
|
+
const e = ut("en-us", Cn);
|
|
254
254
|
return {
|
|
255
255
|
i18n: e,
|
|
256
|
-
i18nT:
|
|
256
|
+
i18nT: Qt(e)
|
|
257
257
|
// Translation component <i18n-t>
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function ea() {
|
|
261
261
|
const e = (t, n) => (n == null ? void 0 : n[t]) ?? void 0, a = (t, n) => {
|
|
262
262
|
if (t.length !== n.length)
|
|
263
263
|
return !1;
|
|
@@ -306,14 +306,14 @@ function wn(e, a, t, n = {
|
|
|
306
306
|
searchKeys: ["id"]
|
|
307
307
|
}) {
|
|
308
308
|
t || (t = "100");
|
|
309
|
-
const { axiosInstance: i } =
|
|
309
|
+
const { axiosInstance: i } = pt({
|
|
310
310
|
headers: e.requestHeaders
|
|
311
|
-
}), { i18n: { t: r } } =
|
|
312
|
-
await
|
|
311
|
+
}), { i18n: { t: r } } = ft(), { debounce: o } = cn(), l = o(async (v) => {
|
|
312
|
+
await T(v);
|
|
313
313
|
}, 200), s = O(!1), c = O(""), d = O(""), u = O([]), g = O([]), f = O(void 0), S = w(a);
|
|
314
314
|
let b = `${e.apiBaseUrl}${S}`;
|
|
315
315
|
e.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
316
|
-
const { isValidUuid: p } =
|
|
316
|
+
const { isValidUuid: p } = ea(), h = async () => {
|
|
317
317
|
try {
|
|
318
318
|
s.value = !0;
|
|
319
319
|
const { data: v } = await i.get(`${b}?size=${t}`);
|
|
@@ -323,7 +323,7 @@ function wn(e, a, t, n = {
|
|
|
323
323
|
} finally {
|
|
324
324
|
s.value = !1;
|
|
325
325
|
}
|
|
326
|
-
}, m = O(""),
|
|
326
|
+
}, m = O(""), T = async (v) => {
|
|
327
327
|
var R, z, P;
|
|
328
328
|
if (m.value !== v)
|
|
329
329
|
if (m.value = v || "", f.value === void 0)
|
|
@@ -336,18 +336,18 @@ function wn(e, a, t, n = {
|
|
|
336
336
|
} else if (v) {
|
|
337
337
|
const C = [];
|
|
338
338
|
p(v) && n.searchKeys.includes("id") ? C.push((async () => {
|
|
339
|
-
const { data:
|
|
340
|
-
return [
|
|
339
|
+
const { data: j } = await i.get(`${b}/${v}`);
|
|
340
|
+
return [j[n.fetchedItemsKey] ?? j];
|
|
341
341
|
})()) : C.push(
|
|
342
|
-
...n.searchKeys.filter((
|
|
343
|
-
const { data: B } = await i.get(`${b}?${
|
|
342
|
+
...n.searchKeys.filter((j) => j !== "id").map(async (j) => {
|
|
343
|
+
const { data: B } = await i.get(`${b}?${j}=${v}`);
|
|
344
344
|
return B[n.fetchedItemsKey];
|
|
345
345
|
})
|
|
346
346
|
);
|
|
347
347
|
const M = await Promise.all(C), F = /* @__PURE__ */ new Set();
|
|
348
|
-
u.value = [], (R = M == null ? void 0 : M.forEach) == null || R.call(M, (
|
|
348
|
+
u.value = [], (R = M == null ? void 0 : M.forEach) == null || R.call(M, (j) => {
|
|
349
349
|
var B;
|
|
350
|
-
(B =
|
|
350
|
+
(B = j == null ? void 0 : j.forEach) == null || B.call(j, (q) => {
|
|
351
351
|
F.has(q.id) || (F.add(q.id), u.value.push(q));
|
|
352
352
|
});
|
|
353
353
|
});
|
|
@@ -362,8 +362,8 @@ function wn(e, a, t, n = {
|
|
|
362
362
|
s.value = !0, d.value = "", v ? (u.value = (P = f.value) == null ? void 0 : P.filter((C) => {
|
|
363
363
|
var M;
|
|
364
364
|
let F = !1;
|
|
365
|
-
for (const
|
|
366
|
-
const B = typeof C[
|
|
365
|
+
for (const j of n.searchKeys) {
|
|
366
|
+
const B = typeof C[j] == "string" ? (M = C[j]) == null ? void 0 : M.toLowerCase() : C[j];
|
|
367
367
|
B != null && B.includes(v.toLowerCase()) && (F = !0);
|
|
368
368
|
}
|
|
369
369
|
return F;
|
|
@@ -386,7 +386,7 @@ function Sn(e, a) {
|
|
|
386
386
|
return n.value.search = "", (i) => `${n.value.href}/${i}`;
|
|
387
387
|
}
|
|
388
388
|
function An() {
|
|
389
|
-
const { i18n: { t: e } } =
|
|
389
|
+
const { i18n: { t: e } } = ft();
|
|
390
390
|
return {
|
|
391
391
|
getMessageFromError: (a) => {
|
|
392
392
|
var t, n, i;
|
|
@@ -424,7 +424,7 @@ function In(e) {
|
|
|
424
424
|
return console.warn("Failed to build valid URL:", n), "";
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function ta(e, a) {
|
|
428
428
|
const t = O(w(e)), n = O(w(a)), i = x(
|
|
429
429
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
430
430
|
), r = x(
|
|
@@ -443,9 +443,9 @@ function aa(e, a) {
|
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
445
|
function xn(e, a, t = "data") {
|
|
446
|
-
const n = w(a), { axiosInstance: i } =
|
|
446
|
+
const n = w(a), { axiosInstance: i } = pt({
|
|
447
447
|
headers: e.requestHeaders
|
|
448
|
-
}), r =
|
|
448
|
+
}), r = ta(e, n), o = O({
|
|
449
449
|
status: Ce.Idle
|
|
450
450
|
});
|
|
451
451
|
return { fetcher: async (l) => {
|
|
@@ -491,22 +491,22 @@ function _n() {
|
|
|
491
491
|
convertKeyToTitle: e
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
const
|
|
494
|
+
const aa = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, At = (e) => {
|
|
495
495
|
if (typeof e != "string")
|
|
496
496
|
throw new TypeError("Invalid argument expected string");
|
|
497
|
-
const a = e.match(
|
|
497
|
+
const a = e.match(aa);
|
|
498
498
|
if (!a)
|
|
499
499
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
500
500
|
return a.shift(), a;
|
|
501
|
-
},
|
|
501
|
+
}, It = (e) => e === "*" || e === "x" || e === "X", xt = (e) => {
|
|
502
502
|
const a = parseInt(e, 10);
|
|
503
503
|
return isNaN(a) ? e : a;
|
|
504
504
|
}, Tn = (e, a) => typeof e != typeof a ? [String(e), String(a)] : [e, a], jn = (e, a) => {
|
|
505
|
-
if (
|
|
505
|
+
if (It(e) || It(a))
|
|
506
506
|
return 0;
|
|
507
|
-
const [t, n] = Tn(
|
|
507
|
+
const [t, n] = Tn(xt(e), xt(a));
|
|
508
508
|
return t > n ? 1 : t < n ? -1 : 0;
|
|
509
|
-
},
|
|
509
|
+
}, _t = (e, a) => {
|
|
510
510
|
for (let t = 0; t < Math.max(e.length, a.length); t++) {
|
|
511
511
|
const n = jn(e[t] || "0", a[t] || "0");
|
|
512
512
|
if (n !== 0)
|
|
@@ -514,25 +514,25 @@ const na = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
514
514
|
}
|
|
515
515
|
return 0;
|
|
516
516
|
}, $n = (e, a) => {
|
|
517
|
-
const t =
|
|
518
|
-
return o !== 0 ? o : i && r ?
|
|
519
|
-
},
|
|
517
|
+
const t = At(e), n = At(a), i = t.pop(), r = n.pop(), o = _t(t, n);
|
|
518
|
+
return o !== 0 ? o : i && r ? _t(i.split("."), r.split(".")) : i || r ? i ? -1 : 1 : 0;
|
|
519
|
+
}, Tt = (e, a, t) => {
|
|
520
520
|
On(t);
|
|
521
521
|
const n = $n(e, a);
|
|
522
|
-
return
|
|
523
|
-
},
|
|
522
|
+
return na[t].includes(n);
|
|
523
|
+
}, na = {
|
|
524
524
|
">": [1],
|
|
525
525
|
">=": [0, 1],
|
|
526
526
|
"=": [0],
|
|
527
527
|
"<=": [-1, 0],
|
|
528
528
|
"<": [-1],
|
|
529
529
|
"!=": [-1, 1]
|
|
530
|
-
},
|
|
530
|
+
}, jt = Object.keys(na), On = (e) => {
|
|
531
531
|
if (typeof e != "string")
|
|
532
532
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
533
|
-
if (
|
|
534
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
535
|
-
}, Mn = (e) => typeof e == "string" && /^[v\d]/.test(e) &&
|
|
533
|
+
if (jt.indexOf(e) === -1)
|
|
534
|
+
throw new Error(`Invalid operator, expected one of ${jt.join("|")}`);
|
|
535
|
+
}, Mn = (e) => typeof e == "string" && /^[v\d]/.test(e) && aa.test(e);
|
|
536
536
|
function En(e) {
|
|
537
537
|
const { gatewayInfo: a, supportedRange: t } = e;
|
|
538
538
|
if (!a)
|
|
@@ -544,7 +544,7 @@ function En(e) {
|
|
|
544
544
|
if (!r)
|
|
545
545
|
return !1;
|
|
546
546
|
const [o, l] = r;
|
|
547
|
-
return !(o &&
|
|
547
|
+
return !(o && Tt(i, o, "<") || l && Tt(i, l, ">"));
|
|
548
548
|
}
|
|
549
549
|
function Kn(e) {
|
|
550
550
|
const a = O(0), t = O(0), n = O(!1);
|
|
@@ -555,16 +555,16 @@ function Kn(e) {
|
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
557
|
const ie = {
|
|
558
|
-
useAxios:
|
|
558
|
+
useAxios: pt,
|
|
559
559
|
useDebouncedFilter: wn,
|
|
560
560
|
useDeleteUrlBuilder: Sn,
|
|
561
561
|
useErrors: An,
|
|
562
562
|
useExternalLinkCreator: In,
|
|
563
563
|
useFetcher: xn,
|
|
564
|
-
useFetchUrlBuilder:
|
|
565
|
-
useHelpers:
|
|
564
|
+
useFetchUrlBuilder: ta,
|
|
565
|
+
useHelpers: ea,
|
|
566
566
|
useStringHelpers: _n,
|
|
567
|
-
useI18n:
|
|
567
|
+
useI18n: ft,
|
|
568
568
|
useGatewayFeatureSupported: En,
|
|
569
569
|
useTruncationDetector: Kn
|
|
570
570
|
}, Fn = {
|
|
@@ -576,12 +576,12 @@ const ie = {
|
|
|
576
576
|
}, Nn = "Copy to clipboard", Bn = {
|
|
577
577
|
message: Fn,
|
|
578
578
|
iconTitle: Nn
|
|
579
|
-
}, qn = "kong-ui-copy-uuid-notify",
|
|
579
|
+
}, qn = "kong-ui-copy-uuid-notify", $t = "24px", Ln = (e, a) => {
|
|
580
580
|
const t = e.__vccOpts || e;
|
|
581
581
|
for (const [n, i] of a)
|
|
582
582
|
t[n] = i;
|
|
583
583
|
return t;
|
|
584
|
-
}, Rn = (e) => (
|
|
584
|
+
}, Rn = (e) => (Gt("data-v-77afb926"), e = e(), Zt(), e), Pn = ["aria-hidden"], Vn = {
|
|
585
585
|
key: 0,
|
|
586
586
|
"data-testid": "kui-icon-svg-title"
|
|
587
587
|
}, Dn = /* @__PURE__ */ Rn(() => /* @__PURE__ */ L("path", {
|
|
@@ -618,7 +618,7 @@ const ie = {
|
|
|
618
618
|
size: {
|
|
619
619
|
type: [Number, String],
|
|
620
620
|
required: !1,
|
|
621
|
-
default:
|
|
621
|
+
default: $t,
|
|
622
622
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
623
623
|
validator: (e) => {
|
|
624
624
|
if (typeof e == "number" && e > 0)
|
|
@@ -647,7 +647,7 @@ const ie = {
|
|
|
647
647
|
if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
|
|
648
648
|
return `${r}px`;
|
|
649
649
|
}
|
|
650
|
-
return
|
|
650
|
+
return $t;
|
|
651
651
|
}), n = x(() => ({
|
|
652
652
|
boxSizing: "border-box",
|
|
653
653
|
color: a.color,
|
|
@@ -660,7 +660,7 @@ const ie = {
|
|
|
660
660
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
661
661
|
class: "kui-icon copy-icon",
|
|
662
662
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
663
|
-
style:
|
|
663
|
+
style: Wt(n.value)
|
|
664
664
|
}, {
|
|
665
665
|
default: k(() => [
|
|
666
666
|
(y(), I("svg", {
|
|
@@ -680,7 +680,7 @@ const ie = {
|
|
|
680
680
|
_: 1
|
|
681
681
|
}, 8, ["aria-hidden", "style"]));
|
|
682
682
|
}
|
|
683
|
-
}), Hn = /* @__PURE__ */ Ln(Un, [["__scopeId", "data-v-
|
|
683
|
+
}), Hn = /* @__PURE__ */ Ln(Un, [["__scopeId", "data-v-77afb926"]]), zn = "16px", Jn = { class: "kong-ui-copy-uuid" }, Yn = ["onClick"], Ot = 15, Wn = /* @__PURE__ */ te({
|
|
684
684
|
__name: "CopyUuid",
|
|
685
685
|
props: {
|
|
686
686
|
uuid: {
|
|
@@ -724,7 +724,7 @@ const ie = {
|
|
|
724
724
|
},
|
|
725
725
|
emits: ["success", "error"],
|
|
726
726
|
setup(e, { emit: a }) {
|
|
727
|
-
const t = e, { t: n } =
|
|
727
|
+
const t = e, { t: n } = ut("en-us", Bn), i = t.notify || tn(qn, () => {
|
|
728
728
|
}), r = x(() => t.idTooltip ? {
|
|
729
729
|
label: t.idTooltip,
|
|
730
730
|
positionFixed: !0,
|
|
@@ -752,7 +752,7 @@ const ie = {
|
|
|
752
752
|
}), o.value ? d(n("message.fail")) : a("error", t.uuid);
|
|
753
753
|
return;
|
|
754
754
|
}
|
|
755
|
-
const b = ((f = t.uuid) == null ? void 0 : f.length) >
|
|
755
|
+
const b = ((f = t.uuid) == null ? void 0 : f.length) > Ot, p = t.format === "hidden" || t.format === "redacted" ? n("message.success.prefix") : `"${((S = t.uuid) == null ? void 0 : S.substring(0, Ot)) + (b ? "..." : "")}"`;
|
|
756
756
|
typeof i == "function" && i({
|
|
757
757
|
type: "success",
|
|
758
758
|
message: `${p}${n("message.success.content")}`
|
|
@@ -761,7 +761,7 @@ const ie = {
|
|
|
761
761
|
return (g, f) => {
|
|
762
762
|
const S = E("KClipboardProvider");
|
|
763
763
|
return y(), I("div", Jn, [
|
|
764
|
-
e.format !== "hidden" ? (y(), N(je(e.idTooltip ? "KTooltip" : "div"),
|
|
764
|
+
e.format !== "hidden" ? (y(), N(je(e.idTooltip ? "KTooltip" : "div"), tt({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
|
|
765
765
|
default: k(() => [
|
|
766
766
|
L("div", {
|
|
767
767
|
class: Ae([
|
|
@@ -773,7 +773,7 @@ const ie = {
|
|
|
773
773
|
]),
|
|
774
774
|
_: 1
|
|
775
775
|
}, 16)) : D("", !0),
|
|
776
|
-
(y(), N(je(e.tooltip ? "KTooltip" : "div"),
|
|
776
|
+
(y(), N(je(e.tooltip ? "KTooltip" : "div"), tt(s.value, { class: "uuid-icon-wrapper" }), {
|
|
777
777
|
default: k(() => [
|
|
778
778
|
$(S, null, {
|
|
779
779
|
default: k(({ copyToClipboard: b }) => [
|
|
@@ -781,7 +781,7 @@ const ie = {
|
|
|
781
781
|
"data-testid": "copy-to-clipboard",
|
|
782
782
|
role: "button",
|
|
783
783
|
tabindex: "0",
|
|
784
|
-
onClick:
|
|
784
|
+
onClick: Pe((p) => u(b), ["stop"])
|
|
785
785
|
}, [
|
|
786
786
|
$(w(Hn), {
|
|
787
787
|
class: "uuid-icon",
|
|
@@ -805,7 +805,7 @@ const ie = {
|
|
|
805
805
|
for (const [n, i] of a)
|
|
806
806
|
t[n] = i;
|
|
807
807
|
return t;
|
|
808
|
-
},
|
|
808
|
+
}, ia = /* @__PURE__ */ Gn(Wn, [["__scopeId", "data-v-0c07874b"]]), Zn = {
|
|
809
809
|
key: 0,
|
|
810
810
|
class: "config-card-fieldset-title"
|
|
811
811
|
}, Qn = /* @__PURE__ */ te({
|
|
@@ -839,7 +839,7 @@ const ie = {
|
|
|
839
839
|
e.isArrayItem ? (y(), I("legend", Zn, [
|
|
840
840
|
L("b", null, K(l.value), 1)
|
|
841
841
|
])) : D("", !0),
|
|
842
|
-
(y(!0), I(pe, null, ue(Object.keys(o.value), (d, u) => (y(), N(
|
|
842
|
+
(y(!0), I(pe, null, ue(Object.keys(o.value), (d, u) => (y(), N(yt, {
|
|
843
843
|
key: `${i.value}-property-${u}`,
|
|
844
844
|
item: {
|
|
845
845
|
key: d,
|
|
@@ -856,7 +856,7 @@ const ie = {
|
|
|
856
856
|
for (const [n, i] of a)
|
|
857
857
|
t[n] = i;
|
|
858
858
|
return t;
|
|
859
|
-
},
|
|
859
|
+
}, ra = /* @__PURE__ */ fe(Qn, [["__scopeId", "data-v-68ca83ec"]]), Xn = /* @__PURE__ */ te({
|
|
860
860
|
__name: "InternalLinkItem",
|
|
861
861
|
props: {
|
|
862
862
|
item: {
|
|
@@ -907,7 +907,7 @@ const ie = {
|
|
|
907
907
|
}
|
|
908
908
|
}), ai = "#0044f4", ni = "#e0e4ea", ii = "#3a3f51", ri = "1px", oi = "20px", li = { class: "config-card-details-row" }, si = ["data-testid"], ci = ["data-testid"], ui = ["data-testid"], di = ["data-testid"], pi = { key: 1 }, fi = ["data-testid"], yi = ["data-testid"], gi = ["data-testid"], mi = ["data-testid"], hi = {
|
|
909
909
|
name: "ConfigCardItem",
|
|
910
|
-
components: { CopyUuid:
|
|
910
|
+
components: { CopyUuid: ia, JsonCardItem: ra, StatusBadge: ti, InternalLinkItem: ei }
|
|
911
911
|
}, vi = /* @__PURE__ */ te({
|
|
912
912
|
...hi,
|
|
913
913
|
props: {
|
|
@@ -935,7 +935,7 @@ const ie = {
|
|
|
935
935
|
"1957f153": s.value && o.value ? "100%" : t.slim ? "50%" : "25%",
|
|
936
936
|
"195a372e": s.value && o.value ? "100%" : t.slim ? "50%" : "75%"
|
|
937
937
|
}));
|
|
938
|
-
const n =
|
|
938
|
+
const n = Ye(), { i18n: { t: i, formatUnixTimeStamp: r } } = ie.useI18n(), o = x(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), l = x(() => !!(t.item.tooltip || n["label-tooltip"])), s = x(() => t.item.type === Y.Json || t.item.type === Y.JsonArray), c = x(() => t.item.type === Y.JsonArray), d = x(() => {
|
|
939
939
|
switch (t.item.type) {
|
|
940
940
|
case Y.ID:
|
|
941
941
|
return {
|
|
@@ -1106,14 +1106,14 @@ const ie = {
|
|
|
1106
1106
|
key: 0,
|
|
1107
1107
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1108
1108
|
}, [
|
|
1109
|
-
(y(!0), I(pe, null, ue(e.item.value, (
|
|
1109
|
+
(y(!0), I(pe, null, ue(e.item.value, (T, v) => (y(), N(p, {
|
|
1110
1110
|
key: `${e.item.key}-badge-tag-${v}`,
|
|
1111
1111
|
class: "config-badge",
|
|
1112
1112
|
"data-testid": `${e.item.key}-badge-tag-${v}`,
|
|
1113
|
-
"truncation-tooltip":
|
|
1113
|
+
"truncation-tooltip": T
|
|
1114
1114
|
}, {
|
|
1115
1115
|
default: k(() => [
|
|
1116
|
-
H(K(
|
|
1116
|
+
H(K(T), 1)
|
|
1117
1117
|
]),
|
|
1118
1118
|
_: 2
|
|
1119
1119
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
@@ -1123,26 +1123,26 @@ const ie = {
|
|
|
1123
1123
|
class: "copy-uuid-array",
|
|
1124
1124
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1125
1125
|
}, [
|
|
1126
|
-
(y(!0), I(pe, null, ue(e.item.value, (
|
|
1126
|
+
(y(!0), I(pe, null, ue(e.item.value, (T, v) => (y(), N(w(ia), tt(d.value.childAttrs, {
|
|
1127
1127
|
key: `${e.item.key}-copy-uuid-${v}`,
|
|
1128
1128
|
"data-testid": `${e.item.key}-copy-uuid-${v}`,
|
|
1129
|
-
uuid:
|
|
1129
|
+
uuid: T
|
|
1130
1130
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1131
1131
|
], 8, yi)) : d.value.additionalComponent === "KMethodBadge" ? (y(), I("div", {
|
|
1132
1132
|
key: 2,
|
|
1133
1133
|
class: "method-badge-array",
|
|
1134
1134
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1135
1135
|
}, [
|
|
1136
|
-
(y(!0), I(pe, null, ue(e.item.value, (
|
|
1136
|
+
(y(!0), I(pe, null, ue(e.item.value, (T, v) => (y(), N(h, {
|
|
1137
1137
|
key: `${e.item.key}-badge-method-${v}`,
|
|
1138
1138
|
class: "config-badge",
|
|
1139
1139
|
"data-testid": `${e.item.key}-badge-method-${v}`,
|
|
1140
1140
|
"is-rounded": "",
|
|
1141
|
-
label:
|
|
1142
|
-
method: w(rn).includes(
|
|
1141
|
+
label: T,
|
|
1142
|
+
method: w(rn).includes(T.toLowerCase()) ? T.toLowerCase() : "custom"
|
|
1143
1143
|
}, {
|
|
1144
1144
|
default: k(() => [
|
|
1145
|
-
H(K(
|
|
1145
|
+
H(K(T), 1)
|
|
1146
1146
|
]),
|
|
1147
1147
|
_: 2
|
|
1148
1148
|
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
@@ -1151,11 +1151,11 @@ const ie = {
|
|
|
1151
1151
|
key: 3,
|
|
1152
1152
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1153
1153
|
}, [
|
|
1154
|
-
(y(!0), I(pe, null, ue(e.item.value, (
|
|
1154
|
+
(y(!0), I(pe, null, ue(e.item.value, (T, v) => (y(), N(ra, {
|
|
1155
1155
|
key: `json-array-item-${v}`,
|
|
1156
1156
|
index: v,
|
|
1157
1157
|
"is-array-item": "",
|
|
1158
|
-
item:
|
|
1158
|
+
item: T
|
|
1159
1159
|
}, null, 8, ["index", "item"]))), 128))
|
|
1160
1160
|
], 8, mi)) : (y(), N(m, {
|
|
1161
1161
|
key: 4,
|
|
@@ -1182,16 +1182,16 @@ const ie = {
|
|
|
1182
1182
|
]);
|
|
1183
1183
|
};
|
|
1184
1184
|
}
|
|
1185
|
-
}),
|
|
1185
|
+
}), yt = /* @__PURE__ */ fe(vi, [["__scopeId", "data-v-e851fc7c"]]);
|
|
1186
1186
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1187
|
-
function
|
|
1187
|
+
function oa(e) {
|
|
1188
1188
|
return typeof e > "u" || e === null;
|
|
1189
1189
|
}
|
|
1190
1190
|
function bi(e) {
|
|
1191
1191
|
return typeof e == "object" && e !== null;
|
|
1192
1192
|
}
|
|
1193
1193
|
function ki(e) {
|
|
1194
|
-
return Array.isArray(e) ? e :
|
|
1194
|
+
return Array.isArray(e) ? e : oa(e) ? [] : [e];
|
|
1195
1195
|
}
|
|
1196
1196
|
function Ci(e, a) {
|
|
1197
1197
|
var t, n, i, r;
|
|
@@ -1209,7 +1209,7 @@ function wi(e, a) {
|
|
|
1209
1209
|
function Si(e) {
|
|
1210
1210
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1211
1211
|
}
|
|
1212
|
-
var Ai =
|
|
1212
|
+
var Ai = oa, Ii = bi, xi = ki, _i = wi, Ti = Si, ji = Ci, ae = {
|
|
1213
1213
|
isNothing: Ai,
|
|
1214
1214
|
isObject: Ii,
|
|
1215
1215
|
toArray: xi,
|
|
@@ -1217,22 +1217,22 @@ var Ai = la, Ii = bi, xi = ki, _i = wi, Ti = Si, ji = Ci, ae = {
|
|
|
1217
1217
|
isNegativeZero: Ti,
|
|
1218
1218
|
extend: ji
|
|
1219
1219
|
};
|
|
1220
|
-
function
|
|
1220
|
+
function la(e, a) {
|
|
1221
1221
|
var t = "", n = e.reason || "(unknown reason)";
|
|
1222
1222
|
return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !a && e.mark.snippet && (t += `
|
|
1223
1223
|
|
|
1224
1224
|
` + e.mark.snippet), n + " " + t) : n;
|
|
1225
1225
|
}
|
|
1226
1226
|
function Fe(e, a) {
|
|
1227
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = a, this.message =
|
|
1227
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = a, this.message = la(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1228
1228
|
}
|
|
1229
1229
|
Fe.prototype = Object.create(Error.prototype);
|
|
1230
1230
|
Fe.prototype.constructor = Fe;
|
|
1231
1231
|
Fe.prototype.toString = function(e) {
|
|
1232
|
-
return this.name + ": " +
|
|
1232
|
+
return this.name + ": " + la(this, e);
|
|
1233
1233
|
};
|
|
1234
1234
|
var se = Fe;
|
|
1235
|
-
function
|
|
1235
|
+
function Qe(e, a, t, n, i) {
|
|
1236
1236
|
var r = "", o = "", l = Math.floor(i / 2) - 1;
|
|
1237
1237
|
return n - a > l && (r = " ... ", a = n - l + r.length), t - n > l && (o = " ...", t = n + l - o.length), {
|
|
1238
1238
|
str: r + e.slice(a, t).replace(/\t/g, "→") + o,
|
|
@@ -1240,7 +1240,7 @@ function Xe(e, a, t, n, i) {
|
|
|
1240
1240
|
// relative position
|
|
1241
1241
|
};
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function Xe(e, a) {
|
|
1244
1244
|
return ae.repeat(" ", a - e.length) + e;
|
|
1245
1245
|
}
|
|
1246
1246
|
function $i(e, a) {
|
|
@@ -1252,24 +1252,24 @@ function $i(e, a) {
|
|
|
1252
1252
|
o < 0 && (o = n.length - 1);
|
|
1253
1253
|
var l = "", s, c, d = Math.min(e.line + a.linesAfter, i.length).toString().length, u = a.maxLength - (a.indent + d + 3);
|
|
1254
1254
|
for (s = 1; s <= a.linesBefore && !(o - s < 0); s++)
|
|
1255
|
-
c =
|
|
1255
|
+
c = Qe(
|
|
1256
1256
|
e.buffer,
|
|
1257
1257
|
n[o - s],
|
|
1258
1258
|
i[o - s],
|
|
1259
1259
|
e.position - (n[o] - n[o - s]),
|
|
1260
1260
|
u
|
|
1261
|
-
), l = ae.repeat(" ", a.indent) +
|
|
1261
|
+
), l = ae.repeat(" ", a.indent) + Xe((e.line - s + 1).toString(), d) + " | " + c.str + `
|
|
1262
1262
|
` + l;
|
|
1263
|
-
for (c =
|
|
1263
|
+
for (c = Qe(e.buffer, n[o], i[o], e.position, u), l += ae.repeat(" ", a.indent) + Xe((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1264
1264
|
`, l += ae.repeat("-", a.indent + d + 3 + c.pos) + `^
|
|
1265
1265
|
`, s = 1; s <= a.linesAfter && !(o + s >= i.length); s++)
|
|
1266
|
-
c =
|
|
1266
|
+
c = Qe(
|
|
1267
1267
|
e.buffer,
|
|
1268
1268
|
n[o + s],
|
|
1269
1269
|
i[o + s],
|
|
1270
1270
|
e.position - (n[o] - n[o + s]),
|
|
1271
1271
|
u
|
|
1272
|
-
), l += ae.repeat(" ", a.indent) +
|
|
1272
|
+
), l += ae.repeat(" ", a.indent) + Xe((e.line + s + 1).toString(), d) + " | " + c.str + `
|
|
1273
1273
|
`;
|
|
1274
1274
|
return l.replace(/\n$/, "");
|
|
1275
1275
|
}
|
|
@@ -1309,7 +1309,7 @@ function Fi(e, a) {
|
|
|
1309
1309
|
throw new se('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1310
1310
|
}
|
|
1311
1311
|
var re = Fi;
|
|
1312
|
-
function
|
|
1312
|
+
function Mt(e, a) {
|
|
1313
1313
|
var t = [];
|
|
1314
1314
|
return e[a].forEach(function(n) {
|
|
1315
1315
|
var i = t.length;
|
|
@@ -1338,10 +1338,10 @@ function Ni() {
|
|
|
1338
1338
|
arguments[a].forEach(n);
|
|
1339
1339
|
return e;
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1341
|
+
function nt(e) {
|
|
1342
1342
|
return this.extend(e);
|
|
1343
1343
|
}
|
|
1344
|
-
|
|
1344
|
+
nt.prototype.extend = function(e) {
|
|
1345
1345
|
var a = [], t = [];
|
|
1346
1346
|
if (e instanceof re)
|
|
1347
1347
|
t.push(e);
|
|
@@ -1362,29 +1362,29 @@ it.prototype.extend = function(e) {
|
|
|
1362
1362
|
if (!(i instanceof re))
|
|
1363
1363
|
throw new se("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1364
1364
|
});
|
|
1365
|
-
var n = Object.create(
|
|
1366
|
-
return n.implicit = (this.implicit || []).concat(a), n.explicit = (this.explicit || []).concat(t), n.compiledImplicit =
|
|
1365
|
+
var n = Object.create(nt.prototype);
|
|
1366
|
+
return n.implicit = (this.implicit || []).concat(a), n.explicit = (this.explicit || []).concat(t), n.compiledImplicit = Mt(n, "implicit"), n.compiledExplicit = Mt(n, "explicit"), n.compiledTypeMap = Ni(n.compiledImplicit, n.compiledExplicit), n;
|
|
1367
1367
|
};
|
|
1368
|
-
var
|
|
1368
|
+
var sa = nt, ca = new re("tag:yaml.org,2002:str", {
|
|
1369
1369
|
kind: "scalar",
|
|
1370
1370
|
construct: function(e) {
|
|
1371
1371
|
return e !== null ? e : "";
|
|
1372
1372
|
}
|
|
1373
|
-
}),
|
|
1373
|
+
}), ua = new re("tag:yaml.org,2002:seq", {
|
|
1374
1374
|
kind: "sequence",
|
|
1375
1375
|
construct: function(e) {
|
|
1376
1376
|
return e !== null ? e : [];
|
|
1377
1377
|
}
|
|
1378
|
-
}),
|
|
1378
|
+
}), da = new re("tag:yaml.org,2002:map", {
|
|
1379
1379
|
kind: "mapping",
|
|
1380
1380
|
construct: function(e) {
|
|
1381
1381
|
return e !== null ? e : {};
|
|
1382
1382
|
}
|
|
1383
|
-
}),
|
|
1383
|
+
}), pa = new sa({
|
|
1384
1384
|
explicit: [
|
|
1385
|
+
ca,
|
|
1385
1386
|
ua,
|
|
1386
|
-
da
|
|
1387
|
-
pa
|
|
1387
|
+
da
|
|
1388
1388
|
]
|
|
1389
1389
|
});
|
|
1390
1390
|
function Bi(e) {
|
|
@@ -1399,7 +1399,7 @@ function qi() {
|
|
|
1399
1399
|
function Li(e) {
|
|
1400
1400
|
return e === null;
|
|
1401
1401
|
}
|
|
1402
|
-
var
|
|
1402
|
+
var fa = new re("tag:yaml.org,2002:null", {
|
|
1403
1403
|
kind: "scalar",
|
|
1404
1404
|
resolve: Bi,
|
|
1405
1405
|
construct: qi,
|
|
@@ -1435,7 +1435,7 @@ function Pi(e) {
|
|
|
1435
1435
|
function Vi(e) {
|
|
1436
1436
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1437
1437
|
}
|
|
1438
|
-
var
|
|
1438
|
+
var ya = new re("tag:yaml.org,2002:bool", {
|
|
1439
1439
|
kind: "scalar",
|
|
1440
1440
|
resolve: Ri,
|
|
1441
1441
|
construct: Pi,
|
|
@@ -1526,7 +1526,7 @@ function Ji(e) {
|
|
|
1526
1526
|
function Yi(e) {
|
|
1527
1527
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ae.isNegativeZero(e);
|
|
1528
1528
|
}
|
|
1529
|
-
var
|
|
1529
|
+
var ga = new re("tag:yaml.org,2002:int", {
|
|
1530
1530
|
kind: "scalar",
|
|
1531
1531
|
resolve: zi,
|
|
1532
1532
|
construct: Ji,
|
|
@@ -1603,31 +1603,31 @@ function Xi(e, a) {
|
|
|
1603
1603
|
function er(e) {
|
|
1604
1604
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ae.isNegativeZero(e));
|
|
1605
1605
|
}
|
|
1606
|
-
var
|
|
1606
|
+
var ma = new re("tag:yaml.org,2002:float", {
|
|
1607
1607
|
kind: "scalar",
|
|
1608
1608
|
resolve: Gi,
|
|
1609
1609
|
construct: Zi,
|
|
1610
1610
|
predicate: er,
|
|
1611
1611
|
represent: Xi,
|
|
1612
1612
|
defaultStyle: "lowercase"
|
|
1613
|
-
}),
|
|
1613
|
+
}), ha = pa.extend({
|
|
1614
1614
|
implicit: [
|
|
1615
|
+
fa,
|
|
1615
1616
|
ya,
|
|
1616
1617
|
ga,
|
|
1617
|
-
ma
|
|
1618
|
-
ha
|
|
1618
|
+
ma
|
|
1619
1619
|
]
|
|
1620
|
-
}),
|
|
1620
|
+
}), va = ha, ba = new RegExp(
|
|
1621
1621
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1622
|
-
),
|
|
1622
|
+
), ka = new RegExp(
|
|
1623
1623
|
"^([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]))?))?$"
|
|
1624
1624
|
);
|
|
1625
1625
|
function tr(e) {
|
|
1626
|
-
return e === null ? !1 :
|
|
1626
|
+
return e === null ? !1 : ba.exec(e) !== null || ka.exec(e) !== null;
|
|
1627
1627
|
}
|
|
1628
1628
|
function ar(e) {
|
|
1629
1629
|
var a, t, n, i, r, o, l, s = 0, c = null, d, u, g;
|
|
1630
|
-
if (a =
|
|
1630
|
+
if (a = ba.exec(e), a === null && (a = ka.exec(e)), a === null)
|
|
1631
1631
|
throw new Error("Date resolve error");
|
|
1632
1632
|
if (t = +a[1], n = +a[2] - 1, i = +a[3], !a[4])
|
|
1633
1633
|
return new Date(Date.UTC(t, n, i));
|
|
@@ -1641,7 +1641,7 @@ function ar(e) {
|
|
|
1641
1641
|
function nr(e) {
|
|
1642
1642
|
return e.toISOString();
|
|
1643
1643
|
}
|
|
1644
|
-
var
|
|
1644
|
+
var Ca = new re("tag:yaml.org,2002:timestamp", {
|
|
1645
1645
|
kind: "scalar",
|
|
1646
1646
|
resolve: tr,
|
|
1647
1647
|
construct: ar,
|
|
@@ -1651,15 +1651,15 @@ var wa = new re("tag:yaml.org,2002:timestamp", {
|
|
|
1651
1651
|
function ir(e) {
|
|
1652
1652
|
return e === "<<" || e === null;
|
|
1653
1653
|
}
|
|
1654
|
-
var
|
|
1654
|
+
var wa = new re("tag:yaml.org,2002:merge", {
|
|
1655
1655
|
kind: "scalar",
|
|
1656
1656
|
resolve: ir
|
|
1657
|
-
}),
|
|
1657
|
+
}), gt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1658
1658
|
\r`;
|
|
1659
1659
|
function rr(e) {
|
|
1660
1660
|
if (e === null)
|
|
1661
1661
|
return !1;
|
|
1662
|
-
var a, t, n = 0, i = e.length, r =
|
|
1662
|
+
var a, t, n = 0, i = e.length, r = gt;
|
|
1663
1663
|
for (t = 0; t < i; t++)
|
|
1664
1664
|
if (a = r.indexOf(e.charAt(t)), !(a > 64)) {
|
|
1665
1665
|
if (a < 0)
|
|
@@ -1669,13 +1669,13 @@ function rr(e) {
|
|
|
1669
1669
|
return n % 8 === 0;
|
|
1670
1670
|
}
|
|
1671
1671
|
function or(e) {
|
|
1672
|
-
var a, t, n = e.replace(/[\r\n=]/g, ""), i = n.length, r =
|
|
1672
|
+
var a, t, n = e.replace(/[\r\n=]/g, ""), i = n.length, r = gt, o = 0, l = [];
|
|
1673
1673
|
for (a = 0; a < i; a++)
|
|
1674
1674
|
a % 4 === 0 && a && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)), o = o << 6 | r.indexOf(n.charAt(a));
|
|
1675
1675
|
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);
|
|
1676
1676
|
}
|
|
1677
1677
|
function lr(e) {
|
|
1678
|
-
var a = "", t = 0, n, i, r = e.length, o =
|
|
1678
|
+
var a = "", t = 0, n, i, r = e.length, o = gt;
|
|
1679
1679
|
for (n = 0; n < r; n++)
|
|
1680
1680
|
n % 3 === 0 && n && (a += o[t >> 18 & 63], a += o[t >> 12 & 63], a += o[t >> 6 & 63], a += o[t & 63]), t = (t << 8) + e[n];
|
|
1681
1681
|
return i = r % 3, i === 0 ? (a += o[t >> 18 & 63], a += o[t >> 12 & 63], a += o[t >> 6 & 63], a += o[t & 63]) : i === 2 ? (a += o[t >> 10 & 63], a += o[t >> 4 & 63], a += o[t << 2 & 63], a += o[64]) : i === 1 && (a += o[t >> 2 & 63], a += o[t << 4 & 63], a += o[64], a += o[64]), a;
|
|
@@ -1683,7 +1683,7 @@ function lr(e) {
|
|
|
1683
1683
|
function sr(e) {
|
|
1684
1684
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1685
1685
|
}
|
|
1686
|
-
var
|
|
1686
|
+
var Sa = new re("tag:yaml.org,2002:binary", {
|
|
1687
1687
|
kind: "scalar",
|
|
1688
1688
|
resolve: rr,
|
|
1689
1689
|
construct: or,
|
|
@@ -1715,7 +1715,7 @@ function dr(e) {
|
|
|
1715
1715
|
function pr(e) {
|
|
1716
1716
|
return e !== null ? e : [];
|
|
1717
1717
|
}
|
|
1718
|
-
var
|
|
1718
|
+
var Aa = new re("tag:yaml.org,2002:omap", {
|
|
1719
1719
|
kind: "sequence",
|
|
1720
1720
|
resolve: dr,
|
|
1721
1721
|
construct: pr
|
|
@@ -1739,7 +1739,7 @@ function gr(e) {
|
|
|
1739
1739
|
n = o[a], i = Object.keys(n), r[a] = [i[0], n[i[0]]];
|
|
1740
1740
|
return r;
|
|
1741
1741
|
}
|
|
1742
|
-
var
|
|
1742
|
+
var Ia = new re("tag:yaml.org,2002:pairs", {
|
|
1743
1743
|
kind: "sequence",
|
|
1744
1744
|
resolve: yr,
|
|
1745
1745
|
construct: gr
|
|
@@ -1756,23 +1756,23 @@ function hr(e) {
|
|
|
1756
1756
|
function vr(e) {
|
|
1757
1757
|
return e !== null ? e : {};
|
|
1758
1758
|
}
|
|
1759
|
-
var
|
|
1759
|
+
var xa = new re("tag:yaml.org,2002:set", {
|
|
1760
1760
|
kind: "mapping",
|
|
1761
1761
|
resolve: hr,
|
|
1762
1762
|
construct: vr
|
|
1763
|
-
}),
|
|
1763
|
+
}), mt = va.extend({
|
|
1764
1764
|
implicit: [
|
|
1765
|
-
|
|
1766
|
-
|
|
1765
|
+
Ca,
|
|
1766
|
+
wa
|
|
1767
1767
|
],
|
|
1768
1768
|
explicit: [
|
|
1769
|
+
Sa,
|
|
1769
1770
|
Aa,
|
|
1770
1771
|
Ia,
|
|
1771
|
-
xa
|
|
1772
|
-
_a
|
|
1772
|
+
xa
|
|
1773
1773
|
]
|
|
1774
|
-
}), be = Object.prototype.hasOwnProperty,
|
|
1775
|
-
function
|
|
1774
|
+
}), be = Object.prototype.hasOwnProperty, De = 1, _a = 2, Ta = 3, Ue = 4, et = 1, br = 2, Et = 3, kr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Cr = /[\x85\u2028\u2029]/, wr = /[,\[\]\{\}]/, ja = /^(?:!|!!|![a-z\-]+!)$/i, $a = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1775
|
+
function Kt(e) {
|
|
1776
1776
|
return Object.prototype.toString.call(e);
|
|
1777
1777
|
}
|
|
1778
1778
|
function ge(e) {
|
|
@@ -1797,7 +1797,7 @@ function Ar(e) {
|
|
|
1797
1797
|
function Ir(e) {
|
|
1798
1798
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1800
|
+
function Ft(e) {
|
|
1801
1801
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1802
1802
|
` : 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" : "";
|
|
1803
1803
|
}
|
|
@@ -1807,13 +1807,13 @@ function xr(e) {
|
|
|
1807
1807
|
(e - 65536 & 1023) + 56320
|
|
1808
1808
|
);
|
|
1809
1809
|
}
|
|
1810
|
-
var
|
|
1810
|
+
var Oa = new Array(256), Ma = new Array(256);
|
|
1811
1811
|
for (var Ie = 0; Ie < 256; Ie++)
|
|
1812
|
-
|
|
1812
|
+
Oa[Ie] = Ft(Ie) ? 1 : 0, Ma[Ie] = Ft(Ie);
|
|
1813
1813
|
function _r(e, a) {
|
|
1814
|
-
this.input = e, this.filename = a.filename || null, this.schema = a.schema ||
|
|
1814
|
+
this.input = e, this.filename = a.filename || null, this.schema = a.schema || mt, this.onWarning = a.onWarning || null, this.legacy = a.legacy || !1, this.json = a.json || !1, this.listener = a.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1815
1815
|
}
|
|
1816
|
-
function
|
|
1816
|
+
function Ea(e, a) {
|
|
1817
1817
|
var t = {
|
|
1818
1818
|
name: e.filename,
|
|
1819
1819
|
buffer: e.input.slice(0, -1),
|
|
@@ -1825,19 +1825,19 @@ function Ka(e, a) {
|
|
|
1825
1825
|
return t.snippet = Oi(t), new se(a, t);
|
|
1826
1826
|
}
|
|
1827
1827
|
function A(e, a) {
|
|
1828
|
-
throw
|
|
1828
|
+
throw Ea(e, a);
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1831
|
-
e.onWarning && e.onWarning.call(null,
|
|
1830
|
+
function He(e, a) {
|
|
1831
|
+
e.onWarning && e.onWarning.call(null, Ea(e, a));
|
|
1832
1832
|
}
|
|
1833
|
-
var
|
|
1833
|
+
var Nt = {
|
|
1834
1834
|
YAML: function(e, a, t) {
|
|
1835
1835
|
var n, i, r;
|
|
1836
|
-
e.version !== null && A(e, "duplication of %YAML directive"), t.length !== 1 && A(e, "YAML directive accepts exactly one argument"), n = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), n === null && A(e, "ill-formed argument of the YAML directive"), i = parseInt(n[1], 10), r = parseInt(n[2], 10), i !== 1 && A(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = r < 2, r !== 1 && r !== 2 &&
|
|
1836
|
+
e.version !== null && A(e, "duplication of %YAML directive"), t.length !== 1 && A(e, "YAML directive accepts exactly one argument"), n = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), n === null && A(e, "ill-formed argument of the YAML directive"), i = parseInt(n[1], 10), r = parseInt(n[2], 10), i !== 1 && A(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = r < 2, r !== 1 && r !== 2 && He(e, "unsupported YAML version of the document");
|
|
1837
1837
|
},
|
|
1838
1838
|
TAG: function(e, a, t) {
|
|
1839
1839
|
var n, i;
|
|
1840
|
-
t.length !== 2 && A(e, "TAG directive accepts exactly two arguments"), n = t[0], i = t[1],
|
|
1840
|
+
t.length !== 2 && A(e, "TAG directive accepts exactly two arguments"), n = t[0], i = t[1], ja.test(n) || A(e, "ill-formed tag handle (first argument) of the TAG directive"), be.call(e.tagMap, n) && A(e, 'there is a previously declared suffix for "' + n + '" tag handle'), $a.test(i) || A(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1841
1841
|
try {
|
|
1842
1842
|
i = decodeURIComponent(i);
|
|
1843
1843
|
} catch {
|
|
@@ -1857,7 +1857,7 @@ function ve(e, a, t, n) {
|
|
|
1857
1857
|
e.result += l;
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function Bt(e, a, t, n) {
|
|
1861
1861
|
var i, r, o, l;
|
|
1862
1862
|
for (ae.isObject(t) || A(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(t), o = 0, l = i.length; o < l; o += 1)
|
|
1863
1863
|
r = i[o], be.call(a, r) || (a[r] = t[r], n[r] = !0);
|
|
@@ -1866,13 +1866,13 @@ function Te(e, a, t, n, i, r, o, l, s) {
|
|
|
1866
1866
|
var c, d;
|
|
1867
1867
|
if (Array.isArray(i))
|
|
1868
1868
|
for (i = Array.prototype.slice.call(i), c = 0, d = i.length; c < d; c += 1)
|
|
1869
|
-
Array.isArray(i[c]) && A(e, "nested arrays are not supported inside keys"), typeof i == "object" &&
|
|
1870
|
-
if (typeof i == "object" &&
|
|
1869
|
+
Array.isArray(i[c]) && A(e, "nested arrays are not supported inside keys"), typeof i == "object" && Kt(i[c]) === "[object Object]" && (i[c] = "[object Object]");
|
|
1870
|
+
if (typeof i == "object" && Kt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), a === null && (a = {}), n === "tag:yaml.org,2002:merge")
|
|
1871
1871
|
if (Array.isArray(r))
|
|
1872
1872
|
for (c = 0, d = r.length; c < d; c += 1)
|
|
1873
|
-
|
|
1873
|
+
Bt(e, a, r[c], t);
|
|
1874
1874
|
else
|
|
1875
|
-
|
|
1875
|
+
Bt(e, a, r, t);
|
|
1876
1876
|
else
|
|
1877
1877
|
!e.json && !be.call(t, i) && be.call(a, i) && (e.line = o || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, A(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(a, i, {
|
|
1878
1878
|
configurable: !0,
|
|
@@ -1882,7 +1882,7 @@ function Te(e, a, t, n, i, r, o, l, s) {
|
|
|
1882
1882
|
}) : a[i] = r, delete t[i];
|
|
1883
1883
|
return a;
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function ht(e) {
|
|
1886
1886
|
var a;
|
|
1887
1887
|
a = e.input.charCodeAt(e.position), a === 10 ? e.position++ : a === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : A(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1888
1888
|
}
|
|
@@ -1895,18 +1895,18 @@ function ee(e, a, t) {
|
|
|
1895
1895
|
i = e.input.charCodeAt(++e.position);
|
|
1896
1896
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
1897
1897
|
if (ge(i))
|
|
1898
|
-
for (
|
|
1898
|
+
for (ht(e), i = e.input.charCodeAt(e.position), n++, e.lineIndent = 0; i === 32; )
|
|
1899
1899
|
e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1900
1900
|
else
|
|
1901
1901
|
break;
|
|
1902
1902
|
}
|
|
1903
|
-
return t !== -1 && n !== 0 && e.lineIndent < t &&
|
|
1903
|
+
return t !== -1 && n !== 0 && e.lineIndent < t && He(e, "deficient indentation"), n;
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function We(e) {
|
|
1906
1906
|
var a = e.position, t;
|
|
1907
1907
|
return t = e.input.charCodeAt(a), !!((t === 45 || t === 46) && t === e.input.charCodeAt(a + 1) && t === e.input.charCodeAt(a + 2) && (a += 3, t = e.input.charCodeAt(a), t === 0 || ce(t)));
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1909
|
+
function vt(e, a) {
|
|
1910
1910
|
a === 1 ? e.result += " " : a > 1 && (e.result += ae.repeat(`
|
|
1911
1911
|
`, a - 1));
|
|
1912
1912
|
}
|
|
@@ -1922,7 +1922,7 @@ function Tr(e, a, t) {
|
|
|
1922
1922
|
if (n = e.input.charCodeAt(e.position - 1), ce(n))
|
|
1923
1923
|
break;
|
|
1924
1924
|
} else {
|
|
1925
|
-
if (e.position === e.lineStart &&
|
|
1925
|
+
if (e.position === e.lineStart && We(e) || t && _e(f))
|
|
1926
1926
|
break;
|
|
1927
1927
|
if (ge(f))
|
|
1928
1928
|
if (s = e.line, c = e.lineStart, d = e.lineIndent, ee(e, !1, -1), e.lineIndent >= a) {
|
|
@@ -1933,7 +1933,7 @@ function Tr(e, a, t) {
|
|
|
1933
1933
|
break;
|
|
1934
1934
|
}
|
|
1935
1935
|
}
|
|
1936
|
-
l && (ve(e, r, o, !1),
|
|
1936
|
+
l && (ve(e, r, o, !1), vt(e, e.line - s), r = o = e.position, l = !1), Se(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1937
1937
|
}
|
|
1938
1938
|
return ve(e, r, o, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
|
|
1939
1939
|
}
|
|
@@ -1948,7 +1948,7 @@ function jr(e, a) {
|
|
|
1948
1948
|
else
|
|
1949
1949
|
return !0;
|
|
1950
1950
|
else
|
|
1951
|
-
ge(t) ? (ve(e, n, i, !0),
|
|
1951
|
+
ge(t) ? (ve(e, n, i, !0), vt(e, ee(e, !1, a)), n = i = e.position) : e.position === e.lineStart && We(e) ? A(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1952
1952
|
A(e, "unexpected end of the stream within a single quoted scalar");
|
|
1953
1953
|
}
|
|
1954
1954
|
function $r(e, a) {
|
|
@@ -1961,8 +1961,8 @@ function $r(e, a) {
|
|
|
1961
1961
|
if (l === 92) {
|
|
1962
1962
|
if (ve(e, t, e.position, !0), l = e.input.charCodeAt(++e.position), ge(l))
|
|
1963
1963
|
ee(e, !1, a);
|
|
1964
|
-
else if (l < 256 &&
|
|
1965
|
-
e.result +=
|
|
1964
|
+
else if (l < 256 && Oa[l])
|
|
1965
|
+
e.result += Ma[l], e.position++;
|
|
1966
1966
|
else if ((o = Ar(l)) > 0) {
|
|
1967
1967
|
for (i = o, r = 0; i > 0; i--)
|
|
1968
1968
|
l = e.input.charCodeAt(++e.position), (o = Sr(l)) >= 0 ? r = (r << 4) + o : A(e, "expected hexadecimal character");
|
|
@@ -1971,7 +1971,7 @@ function $r(e, a) {
|
|
|
1971
1971
|
A(e, "unknown escape sequence");
|
|
1972
1972
|
t = n = e.position;
|
|
1973
1973
|
} else
|
|
1974
|
-
ge(l) ? (ve(e, t, n, !0),
|
|
1974
|
+
ge(l) ? (ve(e, t, n, !0), vt(e, ee(e, !1, a)), t = n = e.position) : e.position === e.lineStart && We(e) ? A(e, "unexpected end of the document within a double quoted scalar") : (e.position++, n = e.position);
|
|
1975
1975
|
}
|
|
1976
1976
|
A(e, "unexpected end of the stream within a double quoted scalar");
|
|
1977
1977
|
}
|
|
@@ -1986,12 +1986,12 @@ function Or(e, a) {
|
|
|
1986
1986
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), m = e.input.charCodeAt(++e.position); m !== 0; ) {
|
|
1987
1987
|
if (ee(e, !0, a), m = e.input.charCodeAt(e.position), m === d)
|
|
1988
1988
|
return e.position++, e.tag = o, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
1989
|
-
t ? m === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), p = b = h = null, u = g = !1, m === 63 && (c = e.input.charCodeAt(e.position + 1), ce(c) && (u = g = !0, e.position++, ee(e, !0, a))), n = e.line, i = e.lineStart, r = e.position, $e(e, a,
|
|
1989
|
+
t ? m === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), p = b = h = null, u = g = !1, m === 63 && (c = e.input.charCodeAt(e.position + 1), ce(c) && (u = g = !0, e.position++, ee(e, !0, a))), n = e.line, i = e.lineStart, r = e.position, $e(e, a, De, !1, !0), p = e.tag, b = e.result, ee(e, !0, a), m = e.input.charCodeAt(e.position), (g || e.line === n) && m === 58 && (u = !0, m = e.input.charCodeAt(++e.position), ee(e, !0, a), $e(e, a, De, !1, !0), h = e.result), f ? Te(e, l, S, p, b, h, n, i, r) : u ? l.push(Te(e, null, S, p, b, h, n, i, r)) : l.push(b), ee(e, !0, a), m = e.input.charCodeAt(e.position), m === 44 ? (t = !0, m = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1990
1990
|
}
|
|
1991
1991
|
A(e, "unexpected end of the stream within a flow collection");
|
|
1992
1992
|
}
|
|
1993
1993
|
function Mr(e, a) {
|
|
1994
|
-
var t, n, i =
|
|
1994
|
+
var t, n, i = et, r = !1, o = !1, l = a, s = 0, c = !1, d, u;
|
|
1995
1995
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1996
1996
|
n = !1;
|
|
1997
1997
|
else if (u === 62)
|
|
@@ -2000,7 +2000,7 @@ function Mr(e, a) {
|
|
|
2000
2000
|
return !1;
|
|
2001
2001
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
2002
2002
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
2003
|
-
|
|
2003
|
+
et === i ? i = u === 43 ? Et : br : A(e, "repeat of a chomping mode identifier");
|
|
2004
2004
|
else if ((d = Ir(u)) >= 0)
|
|
2005
2005
|
d === 0 ? A(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? A(e, "repeat of an indentation width identifier") : (l = a + d - 1, o = !0);
|
|
2006
2006
|
else
|
|
@@ -2015,15 +2015,15 @@ function Mr(e, a) {
|
|
|
2015
2015
|
while (!ge(u) && u !== 0);
|
|
2016
2016
|
}
|
|
2017
2017
|
for (; u !== 0; ) {
|
|
2018
|
-
for (
|
|
2018
|
+
for (ht(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && u === 32; )
|
|
2019
2019
|
e.lineIndent++, u = e.input.charCodeAt(++e.position);
|
|
2020
2020
|
if (!o && e.lineIndent > l && (l = e.lineIndent), ge(u)) {
|
|
2021
2021
|
s++;
|
|
2022
2022
|
continue;
|
|
2023
2023
|
}
|
|
2024
2024
|
if (e.lineIndent < l) {
|
|
2025
|
-
i ===
|
|
2026
|
-
`, r ? 1 + s : s) : i ===
|
|
2025
|
+
i === Et ? e.result += ae.repeat(`
|
|
2026
|
+
`, r ? 1 + s : s) : i === et && r && (e.result += `
|
|
2027
2027
|
`);
|
|
2028
2028
|
break;
|
|
2029
2029
|
}
|
|
@@ -2037,7 +2037,7 @@ function Mr(e, a) {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
return !0;
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function qt(e, a) {
|
|
2041
2041
|
var t, n = e.tag, i = e.anchor, r = [], o, l = !1, s;
|
|
2042
2042
|
if (e.firstTabInLine !== -1)
|
|
2043
2043
|
return !1;
|
|
@@ -2046,7 +2046,7 @@ function Lt(e, a) {
|
|
|
2046
2046
|
r.push(null), s = e.input.charCodeAt(e.position);
|
|
2047
2047
|
continue;
|
|
2048
2048
|
}
|
|
2049
|
-
if (t = e.line, $e(e, a,
|
|
2049
|
+
if (t = e.line, $e(e, a, Ta, !1, !0), r.push(e.result), ee(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > a) && s !== 0)
|
|
2050
2050
|
A(e, "bad indentation of a sequence entry");
|
|
2051
2051
|
else if (e.lineIndent < a)
|
|
2052
2052
|
break;
|
|
@@ -2061,7 +2061,7 @@ function Er(e, a, t) {
|
|
|
2061
2061
|
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation")), n = e.input.charCodeAt(e.position + 1), r = e.line, (m === 63 || m === 58) && ce(n))
|
|
2062
2062
|
m === 63 ? (p && (Te(e, u, g, f, S, null, o, l, s), f = S = b = null), h = !0, p = !0, i = !0) : p ? (p = !1, i = !0) : A(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, m = n;
|
|
2063
2063
|
else {
|
|
2064
|
-
if (o = e.line, l = e.lineStart, s = e.position, !$e(e, t,
|
|
2064
|
+
if (o = e.line, l = e.lineStart, s = e.position, !$e(e, t, _a, !1, !0))
|
|
2065
2065
|
break;
|
|
2066
2066
|
if (e.line === r) {
|
|
2067
2067
|
for (m = e.input.charCodeAt(e.position); Se(m); )
|
|
@@ -2077,7 +2077,7 @@ function Er(e, a, t) {
|
|
|
2077
2077
|
else
|
|
2078
2078
|
return e.tag = c, e.anchor = d, !0;
|
|
2079
2079
|
}
|
|
2080
|
-
if ((e.line === r || e.lineIndent > a) && (p && (o = e.line, l = e.lineStart, s = e.position), $e(e, a,
|
|
2080
|
+
if ((e.line === r || e.lineIndent > a) && (p && (o = e.line, l = e.lineStart, s = e.position), $e(e, a, Ue, !0, i) && (p ? S = e.result : b = e.result), p || (Te(e, u, g, f, S, b, o, l, s), f = S = b = null), ee(e, !0, -1), m = e.input.charCodeAt(e.position)), (e.line === r || e.lineIndent > a) && m !== 0)
|
|
2081
2081
|
A(e, "bad indentation of a mapping entry");
|
|
2082
2082
|
else if (e.lineIndent < a)
|
|
2083
2083
|
break;
|
|
@@ -2095,10 +2095,10 @@ function Kr(e) {
|
|
|
2095
2095
|
e.position < e.length ? (r = e.input.slice(a, e.position), o = e.input.charCodeAt(++e.position)) : A(e, "unexpected end of the stream within a verbatim tag");
|
|
2096
2096
|
} else {
|
|
2097
2097
|
for (; o !== 0 && !ce(o); )
|
|
2098
|
-
o === 33 && (n ? A(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(a - 1, e.position + 1),
|
|
2098
|
+
o === 33 && (n ? A(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(a - 1, e.position + 1), ja.test(i) || A(e, "named tag handle cannot contain such characters"), n = !0, a = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2099
2099
|
r = e.input.slice(a, e.position), wr.test(r) && A(e, "tag suffix cannot contain flow indicator characters");
|
|
2100
2100
|
}
|
|
2101
|
-
r &&
|
|
2101
|
+
r && !$a.test(r) && A(e, "tag name cannot contain such characters: " + r);
|
|
2102
2102
|
try {
|
|
2103
2103
|
r = decodeURIComponent(r);
|
|
2104
2104
|
} catch {
|
|
@@ -2124,10 +2124,10 @@ function Nr(e) {
|
|
|
2124
2124
|
}
|
|
2125
2125
|
function $e(e, a, t, n, i) {
|
|
2126
2126
|
var r, o, l, s = 1, c = !1, d = !1, u, g, f, S, b, p;
|
|
2127
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = o = l =
|
|
2127
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = o = l = Ue === t || Ta === t, n && ee(e, !0, -1) && (c = !0, e.lineIndent > a ? s = 1 : e.lineIndent === a ? s = 0 : e.lineIndent < a && (s = -1)), s === 1)
|
|
2128
2128
|
for (; Kr(e) || Fr(e); )
|
|
2129
2129
|
ee(e, !0, -1) ? (c = !0, l = r, e.lineIndent > a ? s = 1 : e.lineIndent === a ? s = 0 : e.lineIndent < a && (s = -1)) : l = !1;
|
|
2130
|
-
if (l && (l = c || i), (s === 1 ||
|
|
2130
|
+
if (l && (l = c || i), (s === 1 || Ue === t) && (De === t || _a === t ? b = a : b = a + 1, p = e.position - e.lineStart, s === 1 ? l && (qt(e, p) || Er(e, p, b)) || Or(e, b) ? d = !0 : (o && Mr(e, b) || jr(e, b) || $r(e, b) ? d = !0 : Nr(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && A(e, "alias node should not have any properties")) : Tr(e, b, De === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && qt(e, p))), e.tag === null)
|
|
2131
2131
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2132
2132
|
else if (e.tag === "?") {
|
|
2133
2133
|
for (e.result !== null && e.kind !== "scalar" && A(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
|
|
@@ -2168,9 +2168,9 @@ function Br(e) {
|
|
|
2168
2168
|
o = e.input.charCodeAt(++e.position);
|
|
2169
2169
|
i.push(e.input.slice(t, e.position));
|
|
2170
2170
|
}
|
|
2171
|
-
o !== 0 &&
|
|
2171
|
+
o !== 0 && ht(e), be.call(Nt, n) ? Nt[n](e, n, i) : He(e, 'unknown document directive "' + n + '"');
|
|
2172
2172
|
}
|
|
2173
|
-
if (ee(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, ee(e, !0, -1)) : r && A(e, "directives end mark is expected"), $e(e, e.lineIndent - 1,
|
|
2173
|
+
if (ee(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, ee(e, !0, -1)) : r && A(e, "directives end mark is expected"), $e(e, e.lineIndent - 1, Ue, !1, !0), ee(e, !0, -1), e.checkLineBreaks && Cr.test(e.input.slice(a, e.position)) && He(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && We(e)) {
|
|
2174
2174
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, ee(e, !0, -1));
|
|
2175
2175
|
return;
|
|
2176
2176
|
}
|
|
@@ -2179,7 +2179,7 @@ function Br(e) {
|
|
|
2179
2179
|
else
|
|
2180
2180
|
return;
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2182
|
+
function Ka(e, a) {
|
|
2183
2183
|
e = String(e), a = a || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2184
2184
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2185
2185
|
var t = new _r(e, a), n = e.indexOf("\0");
|
|
@@ -2191,24 +2191,24 @@ function Fa(e, a) {
|
|
|
2191
2191
|
}
|
|
2192
2192
|
function qr(e, a, t) {
|
|
2193
2193
|
a !== null && typeof a == "object" && typeof t > "u" && (t = a, a = null);
|
|
2194
|
-
var n =
|
|
2194
|
+
var n = Ka(e, t);
|
|
2195
2195
|
if (typeof a != "function")
|
|
2196
2196
|
return n;
|
|
2197
2197
|
for (var i = 0, r = n.length; i < r; i += 1)
|
|
2198
2198
|
a(n[i]);
|
|
2199
2199
|
}
|
|
2200
2200
|
function Lr(e, a) {
|
|
2201
|
-
var t =
|
|
2201
|
+
var t = Ka(e, a);
|
|
2202
2202
|
if (t.length !== 0) {
|
|
2203
2203
|
if (t.length === 1)
|
|
2204
2204
|
return t[0];
|
|
2205
2205
|
throw new se("expected a single document in the stream, but found more");
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
|
-
var Rr = qr, Pr = Lr,
|
|
2208
|
+
var Rr = qr, Pr = Lr, Fa = {
|
|
2209
2209
|
loadAll: Rr,
|
|
2210
2210
|
load: Pr
|
|
2211
|
-
},
|
|
2211
|
+
}, Na = Object.prototype.toString, Ba = Object.prototype.hasOwnProperty, bt = 65279, Vr = 9, Ne = 10, Dr = 13, Ur = 32, Hr = 33, zr = 34, it = 35, Jr = 37, Yr = 38, Wr = 39, Gr = 42, qa = 44, Zr = 45, ze = 58, Qr = 61, Xr = 62, eo = 63, to = 64, La = 91, Ra = 93, ao = 96, Pa = 123, no = 124, Va = 125, le = {};
|
|
2212
2212
|
le[0] = "\\0";
|
|
2213
2213
|
le[7] = "\\a";
|
|
2214
2214
|
le[8] = "\\b";
|
|
@@ -2247,7 +2247,7 @@ function oo(e, a) {
|
|
|
2247
2247
|
if (a === null)
|
|
2248
2248
|
return {};
|
|
2249
2249
|
for (t = {}, n = Object.keys(a), i = 0, r = n.length; i < r; i += 1)
|
|
2250
|
-
o = n[i], l = String(a[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), s = e.compiledTypeMap.fallback[o], s &&
|
|
2250
|
+
o = n[i], l = String(a[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), s = e.compiledTypeMap.fallback[o], s && Ba.call(s.styleAliases, l) && (l = s.styleAliases[l]), t[o] = l;
|
|
2251
2251
|
return t;
|
|
2252
2252
|
}
|
|
2253
2253
|
function lo(e) {
|
|
@@ -2264,16 +2264,16 @@ function lo(e) {
|
|
|
2264
2264
|
}
|
|
2265
2265
|
var so = 1, Be = 2;
|
|
2266
2266
|
function co(e) {
|
|
2267
|
-
this.schema = e.schema ||
|
|
2267
|
+
this.schema = e.schema || mt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ae.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = oo(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Be : so, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function Lt(e, a) {
|
|
2270
2270
|
for (var t = ae.repeat(" ", a), n = 0, i = -1, r = "", o, l = e.length; n < l; )
|
|
2271
2271
|
i = e.indexOf(`
|
|
2272
2272
|
`, n), i === -1 ? (o = e.slice(n), n = l) : (o = e.slice(n, i + 1), n = i + 1), o.length && o !== `
|
|
2273
2273
|
` && (r += t), r += o;
|
|
2274
2274
|
return r;
|
|
2275
2275
|
}
|
|
2276
|
-
function
|
|
2276
|
+
function rt(e, a) {
|
|
2277
2277
|
return `
|
|
2278
2278
|
` + ae.repeat(" ", e.indent * a);
|
|
2279
2279
|
}
|
|
@@ -2284,47 +2284,47 @@ function uo(e, a) {
|
|
|
2284
2284
|
return !0;
|
|
2285
2285
|
return !1;
|
|
2286
2286
|
}
|
|
2287
|
-
function
|
|
2287
|
+
function Je(e) {
|
|
2288
2288
|
return e === Ur || e === Vr;
|
|
2289
2289
|
}
|
|
2290
2290
|
function qe(e) {
|
|
2291
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2291
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== bt || 65536 <= e && e <= 1114111;
|
|
2292
2292
|
}
|
|
2293
|
-
function
|
|
2294
|
-
return qe(e) && e !==
|
|
2293
|
+
function Rt(e) {
|
|
2294
|
+
return qe(e) && e !== bt && e !== Dr && e !== Ne;
|
|
2295
2295
|
}
|
|
2296
|
-
function
|
|
2297
|
-
var n =
|
|
2296
|
+
function Pt(e, a, t) {
|
|
2297
|
+
var n = Rt(e), i = n && !Je(e);
|
|
2298
2298
|
return (
|
|
2299
2299
|
// ns-plain-safe
|
|
2300
2300
|
(t ? (
|
|
2301
2301
|
// c = flow-in
|
|
2302
2302
|
n
|
|
2303
|
-
) : n && e !==
|
|
2303
|
+
) : n && e !== qa && e !== La && e !== Ra && e !== Pa && e !== Va) && e !== it && !(a === ze && !i) || Rt(a) && !Je(a) && e === it || a === ze && i
|
|
2304
2304
|
);
|
|
2305
2305
|
}
|
|
2306
2306
|
function po(e) {
|
|
2307
|
-
return qe(e) && e !==
|
|
2307
|
+
return qe(e) && e !== bt && !Je(e) && e !== Zr && e !== eo && e !== ze && e !== qa && e !== La && e !== Ra && e !== Pa && e !== Va && e !== it && e !== Yr && e !== Gr && e !== Hr && e !== no && e !== Qr && e !== Xr && e !== Wr && e !== zr && e !== Jr && e !== to && e !== ao;
|
|
2308
2308
|
}
|
|
2309
2309
|
function fo(e) {
|
|
2310
|
-
return !
|
|
2310
|
+
return !Je(e) && e !== ze;
|
|
2311
2311
|
}
|
|
2312
2312
|
function Me(e, a) {
|
|
2313
2313
|
var t = e.charCodeAt(a), n;
|
|
2314
2314
|
return t >= 55296 && t <= 56319 && a + 1 < e.length && (n = e.charCodeAt(a + 1), n >= 56320 && n <= 57343) ? (t - 55296) * 1024 + n - 56320 + 65536 : t;
|
|
2315
2315
|
}
|
|
2316
|
-
function
|
|
2316
|
+
function Da(e) {
|
|
2317
2317
|
var a = /^\n* /;
|
|
2318
2318
|
return a.test(e);
|
|
2319
2319
|
}
|
|
2320
|
-
var
|
|
2320
|
+
var Ua = 1, ot = 2, Ha = 3, za = 4, xe = 5;
|
|
2321
2321
|
function yo(e, a, t, n, i, r, o, l) {
|
|
2322
2322
|
var s, c = 0, d = null, u = !1, g = !1, f = n !== -1, S = -1, b = po(Me(e, 0)) && fo(Me(e, e.length - 1));
|
|
2323
2323
|
if (a || o)
|
|
2324
2324
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2325
2325
|
if (c = Me(e, s), !qe(c))
|
|
2326
2326
|
return xe;
|
|
2327
|
-
b = b &&
|
|
2327
|
+
b = b && Pt(c, d, l), d = c;
|
|
2328
2328
|
}
|
|
2329
2329
|
else {
|
|
2330
2330
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
@@ -2333,11 +2333,11 @@ function yo(e, a, t, n, i, r, o, l) {
|
|
|
2333
2333
|
s - S - 1 > n && e[S + 1] !== " ", S = s);
|
|
2334
2334
|
else if (!qe(c))
|
|
2335
2335
|
return xe;
|
|
2336
|
-
b = b &&
|
|
2336
|
+
b = b && Pt(c, d, l), d = c;
|
|
2337
2337
|
}
|
|
2338
2338
|
g = g || f && s - S - 1 > n && e[S + 1] !== " ";
|
|
2339
2339
|
}
|
|
2340
|
-
return !u && !g ? b && !o && !i(e) ?
|
|
2340
|
+
return !u && !g ? b && !o && !i(e) ? Ua : r === Be ? xe : ot : t > 9 && Da(e) ? xe : o ? r === Be ? xe : ot : g ? za : Ha;
|
|
2341
2341
|
}
|
|
2342
2342
|
function go(e, a, t, n, i) {
|
|
2343
2343
|
e.dump = function() {
|
|
@@ -2359,14 +2359,14 @@ function go(e, a, t, n, i) {
|
|
|
2359
2359
|
e.forceQuotes && !n,
|
|
2360
2360
|
i
|
|
2361
2361
|
)) {
|
|
2362
|
-
case
|
|
2362
|
+
case Ua:
|
|
2363
2363
|
return a;
|
|
2364
|
-
case
|
|
2364
|
+
case ot:
|
|
2365
2365
|
return "'" + a.replace(/'/g, "''") + "'";
|
|
2366
|
+
case Ha:
|
|
2367
|
+
return "|" + Vt(a, e.indent) + Dt(Lt(a, r));
|
|
2366
2368
|
case za:
|
|
2367
|
-
return "
|
|
2368
|
-
case Ja:
|
|
2369
|
-
return ">" + Dt(a, e.indent) + Ut(Rt(mo(a, o), r));
|
|
2369
|
+
return ">" + Vt(a, e.indent) + Dt(Lt(mo(a, o), r));
|
|
2370
2370
|
case xe:
|
|
2371
2371
|
return '"' + ho(a) + '"';
|
|
2372
2372
|
default:
|
|
@@ -2374,15 +2374,15 @@ function go(e, a, t, n, i) {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
}();
|
|
2376
2376
|
}
|
|
2377
|
-
function
|
|
2378
|
-
var t =
|
|
2377
|
+
function Vt(e, a) {
|
|
2378
|
+
var t = Da(e) ? String(a) : "", n = e[e.length - 1] === `
|
|
2379
2379
|
`, i = n && (e[e.length - 2] === `
|
|
2380
2380
|
` || e === `
|
|
2381
2381
|
`), r = i ? "+" : n ? "" : "-";
|
|
2382
2382
|
return t + r + `
|
|
2383
2383
|
`;
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2385
|
+
function Dt(e) {
|
|
2386
2386
|
return e[e.length - 1] === `
|
|
2387
2387
|
` ? e.slice(0, -1) : e;
|
|
2388
2388
|
}
|
|
@@ -2390,16 +2390,16 @@ function mo(e, a) {
|
|
|
2390
2390
|
for (var t = /(\n+)([^\n]*)/g, n = function() {
|
|
2391
2391
|
var c = e.indexOf(`
|
|
2392
2392
|
`);
|
|
2393
|
-
return c = c !== -1 ? c : e.length, t.lastIndex = c,
|
|
2393
|
+
return c = c !== -1 ? c : e.length, t.lastIndex = c, Ut(e.slice(0, c), a);
|
|
2394
2394
|
}(), i = e[0] === `
|
|
2395
2395
|
` || e[0] === " ", r, o; o = t.exec(e); ) {
|
|
2396
2396
|
var l = o[1], s = o[2];
|
|
2397
2397
|
r = s[0] === " ", n += l + (!i && !r && s !== "" ? `
|
|
2398
|
-
` : "") +
|
|
2398
|
+
` : "") + Ut(s, a), i = r;
|
|
2399
2399
|
}
|
|
2400
2400
|
return n;
|
|
2401
2401
|
}
|
|
2402
|
-
function
|
|
2402
|
+
function Ut(e, a) {
|
|
2403
2403
|
if (e === "" || e[0] === " ")
|
|
2404
2404
|
return e;
|
|
2405
2405
|
for (var t = / [^ ]/g, n, i = 0, r, o = 0, l = 0, s = ""; n = t.exec(e); )
|
|
@@ -2420,10 +2420,10 @@ function vo(e, a, t) {
|
|
|
2420
2420
|
l = t[r], e.replacer && (l = e.replacer.call(t, String(r), l)), (he(e, a, l, !1, !1) || typeof l > "u" && he(e, a, null, !1, !1)) && (n !== "" && (n += "," + (e.condenseFlow ? "" : " ")), n += e.dump);
|
|
2421
2421
|
e.tag = i, e.dump = "[" + n + "]";
|
|
2422
2422
|
}
|
|
2423
|
-
function
|
|
2423
|
+
function Ht(e, a, t, n) {
|
|
2424
2424
|
var i = "", r = e.tag, o, l, s;
|
|
2425
2425
|
for (o = 0, l = t.length; o < l; o += 1)
|
|
2426
|
-
s = t[o], e.replacer && (s = e.replacer.call(t, String(o), s)), (he(e, a + 1, s, !0, !0, !1, !0) || typeof s > "u" && he(e, a + 1, null, !0, !0, !1, !0)) && ((!n || i !== "") && (i +=
|
|
2426
|
+
s = t[o], e.replacer && (s = e.replacer.call(t, String(o), s)), (he(e, a + 1, s, !0, !0, !1, !0) || typeof s > "u" && he(e, a + 1, null, !0, !0, !1, !0)) && ((!n || i !== "") && (i += rt(e, a)), e.dump && Ne === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2427
2427
|
e.tag = r, e.dump = i || "[]";
|
|
2428
2428
|
}
|
|
2429
2429
|
function bo(e, a, t) {
|
|
@@ -2441,17 +2441,17 @@ function ko(e, a, t, n) {
|
|
|
2441
2441
|
else if (e.sortKeys)
|
|
2442
2442
|
throw new se("sortKeys must be a boolean or a function");
|
|
2443
2443
|
for (l = 0, s = o.length; l < s; l += 1)
|
|
2444
|
-
g = "", (!n || i !== "") && (g +=
|
|
2444
|
+
g = "", (!n || i !== "") && (g += rt(e, a)), c = o[l], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), he(e, a + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ne === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += rt(e, a)), he(e, a + 1, d, !0, u) && (e.dump && Ne === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, i += g));
|
|
2445
2445
|
e.tag = r, e.dump = i || "{}";
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2447
|
+
function zt(e, a, t) {
|
|
2448
2448
|
var n, i, r, o, l, s;
|
|
2449
2449
|
for (i = t ? e.explicitTypes : e.implicitTypes, r = 0, o = i.length; r < o; r += 1)
|
|
2450
2450
|
if (l = i[r], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof a == "object" && a instanceof l.instanceOf) && (!l.predicate || l.predicate(a))) {
|
|
2451
2451
|
if (t ? l.multi && l.representName ? e.tag = l.representName(a) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
2452
|
-
if (s = e.styleMap[l.tag] || l.defaultStyle,
|
|
2452
|
+
if (s = e.styleMap[l.tag] || l.defaultStyle, Na.call(l.represent) === "[object Function]")
|
|
2453
2453
|
n = l.represent(a, s);
|
|
2454
|
-
else if (
|
|
2454
|
+
else if (Ba.call(l.represent, s))
|
|
2455
2455
|
n = l.represent[s](a, s);
|
|
2456
2456
|
else
|
|
2457
2457
|
throw new se("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
@@ -2462,8 +2462,8 @@ function Jt(e, a, t) {
|
|
|
2462
2462
|
return !1;
|
|
2463
2463
|
}
|
|
2464
2464
|
function he(e, a, t, n, i, r, o) {
|
|
2465
|
-
e.tag = null, e.dump = t,
|
|
2466
|
-
var l =
|
|
2465
|
+
e.tag = null, e.dump = t, zt(e, t, !1) || zt(e, t, !0);
|
|
2466
|
+
var l = Na.call(e.dump), s = n, c;
|
|
2467
2467
|
n && (n = e.flowLevel < 0 || e.flowLevel > a);
|
|
2468
2468
|
var d = l === "[object Object]" || l === "[object Array]", u, g;
|
|
2469
2469
|
if (d && (u = e.duplicates.indexOf(t), g = u !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && a > 0) && (i = !1), g && e.usedDuplicates[u])
|
|
@@ -2472,7 +2472,7 @@ function he(e, a, t, n, i, r, o) {
|
|
|
2472
2472
|
if (d && g && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2473
2473
|
n && Object.keys(e.dump).length !== 0 ? (ko(e, a, e.dump, i), g && (e.dump = "&ref_" + u + e.dump)) : (bo(e, a, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2474
2474
|
else if (l === "[object Array]")
|
|
2475
|
-
n && e.dump.length !== 0 ? (e.noArrayIndent && !o && a > 0 ?
|
|
2475
|
+
n && e.dump.length !== 0 ? (e.noArrayIndent && !o && a > 0 ? Ht(e, a - 1, e.dump, i) : Ht(e, a, e.dump, i), g && (e.dump = "&ref_" + u + e.dump)) : (vo(e, a, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2476
2476
|
else if (l === "[object String]")
|
|
2477
2477
|
e.tag !== "?" && go(e, e.dump, a, r, s);
|
|
2478
2478
|
else {
|
|
@@ -2488,21 +2488,21 @@ function he(e, a, t, n, i, r, o) {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
function Co(e, a) {
|
|
2490
2490
|
var t = [], n = [], i, r;
|
|
2491
|
-
for (
|
|
2491
|
+
for (lt(e, t, n), i = 0, r = n.length; i < r; i += 1)
|
|
2492
2492
|
a.duplicates.push(t[n[i]]);
|
|
2493
2493
|
a.usedDuplicates = new Array(r);
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2495
|
+
function lt(e, a, t) {
|
|
2496
2496
|
var n, i, r;
|
|
2497
2497
|
if (e !== null && typeof e == "object")
|
|
2498
2498
|
if (i = a.indexOf(e), i !== -1)
|
|
2499
2499
|
t.indexOf(i) === -1 && t.push(i);
|
|
2500
2500
|
else if (a.push(e), Array.isArray(e))
|
|
2501
2501
|
for (i = 0, r = e.length; i < r; i += 1)
|
|
2502
|
-
|
|
2502
|
+
lt(e[i], a, t);
|
|
2503
2503
|
else
|
|
2504
2504
|
for (n = Object.keys(e), i = 0, r = n.length; i < r; i += 1)
|
|
2505
|
-
|
|
2505
|
+
lt(e[n[i]], a, t);
|
|
2506
2506
|
}
|
|
2507
2507
|
function wo(e, a) {
|
|
2508
2508
|
a = a || {};
|
|
@@ -2515,26 +2515,26 @@ function wo(e, a) {
|
|
|
2515
2515
|
var So = wo, Ao = {
|
|
2516
2516
|
dump: So
|
|
2517
2517
|
};
|
|
2518
|
-
function
|
|
2518
|
+
function kt(e, a) {
|
|
2519
2519
|
return function() {
|
|
2520
2520
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + a + " instead, which is now safe by default.");
|
|
2521
2521
|
};
|
|
2522
2522
|
}
|
|
2523
|
-
var Io = re, xo =
|
|
2524
|
-
binary:
|
|
2525
|
-
float:
|
|
2526
|
-
map:
|
|
2527
|
-
null:
|
|
2528
|
-
pairs:
|
|
2529
|
-
set:
|
|
2530
|
-
timestamp:
|
|
2531
|
-
bool:
|
|
2532
|
-
int:
|
|
2533
|
-
merge:
|
|
2534
|
-
omap:
|
|
2535
|
-
seq:
|
|
2536
|
-
str:
|
|
2537
|
-
}, No =
|
|
2523
|
+
var Io = re, xo = sa, _o = pa, To = ha, jo = va, $o = mt, Oo = Fa.load, Mo = Fa.loadAll, Eo = Ao.dump, Ko = se, Fo = {
|
|
2524
|
+
binary: Sa,
|
|
2525
|
+
float: ma,
|
|
2526
|
+
map: da,
|
|
2527
|
+
null: fa,
|
|
2528
|
+
pairs: Ia,
|
|
2529
|
+
set: xa,
|
|
2530
|
+
timestamp: Ca,
|
|
2531
|
+
bool: ya,
|
|
2532
|
+
int: ga,
|
|
2533
|
+
merge: wa,
|
|
2534
|
+
omap: Aa,
|
|
2535
|
+
seq: ua,
|
|
2536
|
+
str: ca
|
|
2537
|
+
}, No = kt("safeLoad", "load"), Bo = kt("safeLoadAll", "loadAll"), qo = kt("safeDump", "dump"), Lo = {
|
|
2538
2538
|
Type: Io,
|
|
2539
2539
|
Schema: xo,
|
|
2540
2540
|
FAILSAFE_SCHEMA: _o,
|
|
@@ -2588,7 +2588,7 @@ const Ro = {
|
|
|
2588
2588
|
}
|
|
2589
2589
|
},
|
|
2590
2590
|
setup(e) {
|
|
2591
|
-
const a = e, t =
|
|
2591
|
+
const a = e, t = Ye(), { i18n: { t: n } } = ie.useI18n(), i = (l) => !!(l.tooltip || t[`${l.key}-label-tooltip`]), r = O(""), o = O("");
|
|
2592
2592
|
return ke(() => a.format, (l) => {
|
|
2593
2593
|
if (l !== "structured") {
|
|
2594
2594
|
const s = JSON.parse(JSON.stringify(a.record));
|
|
@@ -2604,7 +2604,7 @@ const Ro = {
|
|
|
2604
2604
|
"data-testid": `config-card-details-${d}-props`
|
|
2605
2605
|
}, [
|
|
2606
2606
|
d !== "basic" ? (y(), I("div", Vo, K(d === "advanced" ? w(n)("baseConfigCard.sections.advanced") : w(n)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
|
|
2607
|
-
(y(!0), I(pe, null, ue(e.propertyCollections[d], (u) => (y(), N(
|
|
2607
|
+
(y(!0), I(pe, null, ue(e.propertyCollections[d], (u) => (y(), N(yt, {
|
|
2608
2608
|
key: u.key,
|
|
2609
2609
|
item: u
|
|
2610
2610
|
}, we({
|
|
@@ -2648,12 +2648,12 @@ const Ro = {
|
|
|
2648
2648
|
], 64);
|
|
2649
2649
|
};
|
|
2650
2650
|
}
|
|
2651
|
-
}), zo = /* @__PURE__ */ fe(Ho, [["__scopeId", "data-v-c914c7e4"]]),
|
|
2651
|
+
}), zo = /* @__PURE__ */ fe(Ho, [["__scopeId", "data-v-c914c7e4"]]), Jt = "24px", Jo = (e, a) => {
|
|
2652
2652
|
const t = e.__vccOpts || e;
|
|
2653
2653
|
for (const [n, i] of a)
|
|
2654
2654
|
t[n] = i;
|
|
2655
2655
|
return t;
|
|
2656
|
-
}, Yo = (e) => (
|
|
2656
|
+
}, Yo = (e) => (Gt("data-v-4c9d405a"), e = e(), Zt(), e), Wo = ["aria-hidden"], Go = {
|
|
2657
2657
|
key: 0,
|
|
2658
2658
|
"data-testid": "kui-icon-svg-title"
|
|
2659
2659
|
}, Zo = /* @__PURE__ */ Yo(() => /* @__PURE__ */ L("path", {
|
|
@@ -2690,7 +2690,7 @@ const Ro = {
|
|
|
2690
2690
|
size: {
|
|
2691
2691
|
type: [Number, String],
|
|
2692
2692
|
required: !1,
|
|
2693
|
-
default:
|
|
2693
|
+
default: Jt,
|
|
2694
2694
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2695
2695
|
validator: (e) => {
|
|
2696
2696
|
if (typeof e == "number" && e > 0)
|
|
@@ -2719,7 +2719,7 @@ const Ro = {
|
|
|
2719
2719
|
if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
|
|
2720
2720
|
return `${r}px`;
|
|
2721
2721
|
}
|
|
2722
|
-
return
|
|
2722
|
+
return Jt;
|
|
2723
2723
|
}), n = x(() => ({
|
|
2724
2724
|
boxSizing: "border-box",
|
|
2725
2725
|
color: a.color,
|
|
@@ -2732,7 +2732,7 @@ const Ro = {
|
|
|
2732
2732
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2733
2733
|
class: "kui-icon book-icon",
|
|
2734
2734
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2735
|
-
style:
|
|
2735
|
+
style: Wt(n.value)
|
|
2736
2736
|
}, {
|
|
2737
2737
|
default: k(() => [
|
|
2738
2738
|
(y(), I("svg", {
|
|
@@ -2752,7 +2752,7 @@ const Ro = {
|
|
|
2752
2752
|
_: 1
|
|
2753
2753
|
}, 8, ["aria-hidden", "style"]));
|
|
2754
2754
|
}
|
|
2755
|
-
}), Xo = /* @__PURE__ */ Jo(Qo, [["__scopeId", "data-v-
|
|
2755
|
+
}), Xo = /* @__PURE__ */ Jo(Qo, [["__scopeId", "data-v-4c9d405a"]]), el = { "data-testid": "config-card-title" }, tl = { class: "config-card-actions" }, al = ["href"], nl = {
|
|
2756
2756
|
key: 2,
|
|
2757
2757
|
class: "config-card-details-section"
|
|
2758
2758
|
}, il = {
|
|
@@ -2836,7 +2836,7 @@ const Ro = {
|
|
|
2836
2836
|
emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
|
|
2837
2837
|
setup(e, { emit: a }) {
|
|
2838
2838
|
var t;
|
|
2839
|
-
const n = e, i =
|
|
2839
|
+
const n = e, i = Ye(), { i18n: { t: r } } = ie.useI18n(), { getMessageFromError: o } = ie.useErrors(), { convertKeyToTitle: l } = ie.useStringHelpers(), { axiosInstance: s } = ie.useAxios({
|
|
2840
2840
|
headers: (t = n.config) == null ? void 0 : t.requestHeaders
|
|
2841
2841
|
}), c = [
|
|
2842
2842
|
{
|
|
@@ -2892,15 +2892,15 @@ const Ro = {
|
|
|
2892
2892
|
var C, M, F;
|
|
2893
2893
|
if (!p.value)
|
|
2894
2894
|
return [];
|
|
2895
|
-
const
|
|
2895
|
+
const j = [], B = Object.keys(p.value).length;
|
|
2896
2896
|
for (const q in p.value) {
|
|
2897
2897
|
const J = (M = (C = n.configSchema) == null ? void 0 : C[q]) == null ? void 0 : M.order, W = (F = g[q]) == null ? void 0 : F.order;
|
|
2898
2898
|
let ne = B;
|
|
2899
|
-
(W || W === 0) && (ne = W === -1 ? B + 1 : W), J && (ne = J === -1 ? B + 1 : J),
|
|
2899
|
+
(W || W === 0) && (ne = W === -1 ? B + 1 : W), J && (ne = J === -1 ? B + 1 : J), j.push([q, ne]);
|
|
2900
2900
|
}
|
|
2901
|
-
return
|
|
2901
|
+
return j.sort(function(q, J) {
|
|
2902
2902
|
return q[1] - J[1];
|
|
2903
|
-
}),
|
|
2903
|
+
}), j.map((q) => {
|
|
2904
2904
|
var J, W;
|
|
2905
2905
|
const ne = q[0], Q = (J = p.value) == null ? void 0 : J[ne], G = ((W = n.configSchema) == null ? void 0 : W[ne]) || {}, oe = g[ne];
|
|
2906
2906
|
return {
|
|
@@ -2917,11 +2917,11 @@ const Ro = {
|
|
|
2917
2917
|
var C, M;
|
|
2918
2918
|
if (!p.value || !n.pluginConfigKey)
|
|
2919
2919
|
return [];
|
|
2920
|
-
const F = p.value[n.pluginConfigKey] || {},
|
|
2920
|
+
const F = p.value[n.pluginConfigKey] || {}, j = Object.keys(F).length, B = [];
|
|
2921
2921
|
for (const q in F) {
|
|
2922
2922
|
const J = (M = (C = n.pluginConfigSchema) == null ? void 0 : C[q]) == null ? void 0 : M.order, W = F[q];
|
|
2923
|
-
let ne = W != null && W !== "" ?
|
|
2924
|
-
J && (ne = J === -1 ?
|
|
2923
|
+
let ne = W != null && W !== "" ? j - 1 : j;
|
|
2924
|
+
J && (ne = J === -1 ? j + 1 : J), B.push([q, ne]);
|
|
2925
2925
|
}
|
|
2926
2926
|
return B.sort(function(q, J) {
|
|
2927
2927
|
return q[1] - J[1];
|
|
@@ -2938,16 +2938,16 @@ const Ro = {
|
|
|
2938
2938
|
section: de.Plugin
|
|
2939
2939
|
};
|
|
2940
2940
|
}).filter((q) => !q.hidden);
|
|
2941
|
-
}),
|
|
2942
|
-
var C, M, F,
|
|
2941
|
+
}), T = x(() => {
|
|
2942
|
+
var C, M, F, j;
|
|
2943
2943
|
return {
|
|
2944
2944
|
basic: (C = h.value) == null ? void 0 : C.filter((B) => B.section === de.Basic),
|
|
2945
2945
|
advanced: (M = h.value) == null ? void 0 : M.filter((B) => B.section === de.Advanced),
|
|
2946
|
-
plugin: (
|
|
2946
|
+
plugin: (j = m.value) == null ? void 0 : j.concat((F = h.value) == null ? void 0 : F.filter((B) => B.section === de.Plugin))
|
|
2947
2947
|
};
|
|
2948
2948
|
}), v = x(() => {
|
|
2949
2949
|
const C = [];
|
|
2950
|
-
return
|
|
2950
|
+
return T.value.basic.length && C.push("basic"), T.value.advanced.length && C.push("advanced"), T.value.plugin.length && C.push("plugin"), C;
|
|
2951
2951
|
}), R = (C) => !!(C.tooltip || i[`${C.key}-label-tooltip`]), z = x(() => {
|
|
2952
2952
|
var C, M;
|
|
2953
2953
|
let F = `${n.config.apiBaseUrl}${n.fetchUrl}`;
|
|
@@ -2957,7 +2957,7 @@ const Ro = {
|
|
|
2957
2957
|
};
|
|
2958
2958
|
return ke(f, (C) => {
|
|
2959
2959
|
a("loading", C);
|
|
2960
|
-
}, { immediate: !0 }),
|
|
2960
|
+
}, { immediate: !0 }), st(async () => {
|
|
2961
2961
|
S.value = !1, f.value = !0;
|
|
2962
2962
|
try {
|
|
2963
2963
|
const { data: C } = await s.get(z.value);
|
|
@@ -2978,7 +2978,7 @@ const Ro = {
|
|
|
2978
2978
|
f.value = !1;
|
|
2979
2979
|
}
|
|
2980
2980
|
}), (C, M) => {
|
|
2981
|
-
const F = E("KLabel"),
|
|
2981
|
+
const F = E("KLabel"), j = E("KSelect"), B = E("KButton"), q = E("KClipboardProvider"), J = E("KSkeleton"), W = E("KEmptyState"), ne = E("KCard");
|
|
2982
2982
|
return y(), N(ne, { class: "kong-ui-entity-base-config-card" }, we({
|
|
2983
2983
|
actions: k(() => [
|
|
2984
2984
|
L("div", tl, [
|
|
@@ -2993,7 +2993,7 @@ const Ro = {
|
|
|
2993
2993
|
]),
|
|
2994
2994
|
_: 1
|
|
2995
2995
|
})) : D("", !0),
|
|
2996
|
-
e.config.jsonYamlEnabled ? (y(), N(
|
|
2996
|
+
e.config.jsonYamlEnabled ? (y(), N(j, {
|
|
2997
2997
|
key: 1,
|
|
2998
2998
|
appearance: "select",
|
|
2999
2999
|
"data-testid": "select-config-format",
|
|
@@ -3055,7 +3055,7 @@ const Ro = {
|
|
|
3055
3055
|
$(zo, {
|
|
3056
3056
|
format: d.value,
|
|
3057
3057
|
"prop-list-types": v.value,
|
|
3058
|
-
"property-collections":
|
|
3058
|
+
"property-collections": T.value,
|
|
3059
3059
|
record: p.value
|
|
3060
3060
|
}, we({ _: 2 }, [
|
|
3061
3061
|
ue(Object.keys(C.$slots), (Q) => ({
|
|
@@ -3075,7 +3075,7 @@ const Ro = {
|
|
|
3075
3075
|
"data-testid": `config-card-details-${Q}-props`
|
|
3076
3076
|
}, [
|
|
3077
3077
|
Q !== "basic" ? (y(), I("div", ol, K(Q === "advanced" ? w(r)("baseConfigCard.sections.advanced") : w(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
|
|
3078
|
-
(y(!0), I(pe, null, ue(
|
|
3078
|
+
(y(!0), I(pe, null, ue(T.value[Q], (G) => (y(), N(yt, {
|
|
3079
3079
|
key: G.key,
|
|
3080
3080
|
item: G
|
|
3081
3081
|
}, we({
|
|
@@ -3170,7 +3170,7 @@ const Ro = {
|
|
|
3170
3170
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3171
3171
|
setup(e, { emit: a }) {
|
|
3172
3172
|
var t;
|
|
3173
|
-
const n = e, i =
|
|
3173
|
+
const n = e, i = ct(), { i18n: { t: r } } = ie.useI18n(), { getMessageFromError: o } = ie.useErrors(), { axiosInstance: l } = ie.useAxios({
|
|
3174
3174
|
headers: (t = n.config) == null ? void 0 : t.requestHeaders
|
|
3175
3175
|
}), s = O(!1), c = O(!1), d = O(""), u = x(() => n.canSubmit === !1 || n.isReadonly), g = x(() => {
|
|
3176
3176
|
var p, h;
|
|
@@ -3187,7 +3187,7 @@ const Ro = {
|
|
|
3187
3187
|
};
|
|
3188
3188
|
return ke(() => s.value, (p) => {
|
|
3189
3189
|
a("loading", p);
|
|
3190
|
-
}, { immediate: !0 }),
|
|
3190
|
+
}, { immediate: !0 }), st(async () => {
|
|
3191
3191
|
if (n.editId)
|
|
3192
3192
|
try {
|
|
3193
3193
|
c.value = !1, s.value = !0;
|
|
@@ -3200,13 +3200,13 @@ const Ro = {
|
|
|
3200
3200
|
s.value = !1;
|
|
3201
3201
|
}
|
|
3202
3202
|
}), (p, h) => {
|
|
3203
|
-
const m = E("KSkeleton"),
|
|
3203
|
+
const m = E("KSkeleton"), T = E("KEmptyState"), v = E("KAlert"), R = E("KButton"), z = E("KCard");
|
|
3204
3204
|
return y(), N(z, { class: "kong-ui-entity-base-form" }, {
|
|
3205
3205
|
body: k(() => [
|
|
3206
3206
|
s.value ? (y(), N(m, {
|
|
3207
3207
|
key: 0,
|
|
3208
3208
|
type: "form"
|
|
3209
|
-
})) : c.value ? (y(), N(
|
|
3209
|
+
})) : c.value ? (y(), N(T, {
|
|
3210
3210
|
key: 1,
|
|
3211
3211
|
"cta-text": w(r)("baseForm.actions.back"),
|
|
3212
3212
|
"data-testid": "form-fetch-error",
|
|
@@ -3220,8 +3220,8 @@ const Ro = {
|
|
|
3220
3220
|
}, 8, ["cta-text"])) : (y(), I("form", {
|
|
3221
3221
|
key: 2,
|
|
3222
3222
|
"data-testid": "form-content",
|
|
3223
|
-
onReset:
|
|
3224
|
-
onSubmit:
|
|
3223
|
+
onReset: Pe(S, ["prevent"]),
|
|
3224
|
+
onSubmit: Pe(b, ["prevent"])
|
|
3225
3225
|
}, [
|
|
3226
3226
|
U(p.$slots, "default", {}, void 0, !0),
|
|
3227
3227
|
e.errorMessage ? (y(), N(v, {
|
|
@@ -3504,7 +3504,7 @@ const Ro = {
|
|
|
3504
3504
|
...t.initialFetcherParams,
|
|
3505
3505
|
...v
|
|
3506
3506
|
};
|
|
3507
|
-
}),
|
|
3507
|
+
}), T = (v) => {
|
|
3508
3508
|
t.preferencesStorageKey && p(t.preferencesStorageKey, v);
|
|
3509
3509
|
};
|
|
3510
3510
|
return (v, R) => {
|
|
@@ -3543,23 +3543,23 @@ const Ro = {
|
|
|
3543
3543
|
"search-input": e.query,
|
|
3544
3544
|
onKtableEmptyStateCtaClicked: g,
|
|
3545
3545
|
"onRow:click": S.value,
|
|
3546
|
-
onSort: R[0] || (R[0] = (
|
|
3547
|
-
"onUpdate:tablePreferences":
|
|
3546
|
+
onSort: R[0] || (R[0] = (j) => b(j)),
|
|
3547
|
+
"onUpdate:tablePreferences": T
|
|
3548
3548
|
}, we({
|
|
3549
|
-
toolbar: k(({ state:
|
|
3549
|
+
toolbar: k(({ state: j }) => [
|
|
3550
3550
|
Ee(L("div", ml, [
|
|
3551
3551
|
U(v.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3552
3552
|
v.$slots["toolbar-button"] ? (y(), I("div", hl, [
|
|
3553
3553
|
U(v.$slots, "toolbar-button", {}, void 0, !0)
|
|
3554
3554
|
])) : D("", !0)
|
|
3555
3555
|
], 512), [
|
|
3556
|
-
[Ke, o(
|
|
3556
|
+
[Ke, o(j)]
|
|
3557
3557
|
])
|
|
3558
3558
|
]),
|
|
3559
|
-
actions: k(({ row:
|
|
3559
|
+
actions: k(({ row: j, rowKey: B, rowValue: q }) => [
|
|
3560
3560
|
L("div", {
|
|
3561
3561
|
class: "actions-container",
|
|
3562
|
-
"data-testid":
|
|
3562
|
+
"data-testid": j.name
|
|
3563
3563
|
}, [
|
|
3564
3564
|
$(C, {
|
|
3565
3565
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
@@ -3567,7 +3567,7 @@ const Ro = {
|
|
|
3567
3567
|
}, {
|
|
3568
3568
|
items: k(() => [
|
|
3569
3569
|
U(v.$slots, "actions", {
|
|
3570
|
-
row:
|
|
3570
|
+
row: j,
|
|
3571
3571
|
rowKey: B,
|
|
3572
3572
|
rowValue: q
|
|
3573
3573
|
}, void 0, !0)
|
|
@@ -3594,7 +3594,7 @@ const Ro = {
|
|
|
3594
3594
|
]),
|
|
3595
3595
|
_: 2
|
|
3596
3596
|
}, [
|
|
3597
|
-
ue(e.tableHeaders, (
|
|
3597
|
+
ue(e.tableHeaders, (j, B) => ({
|
|
3598
3598
|
name: B,
|
|
3599
3599
|
fn: k(({ row: q, rowKey: J, rowValue: W }) => [
|
|
3600
3600
|
$(gl, {
|
|
@@ -3734,7 +3734,7 @@ const Ro = {
|
|
|
3734
3734
|
width: "20",
|
|
3735
3735
|
x: "0",
|
|
3736
3736
|
y: "0"
|
|
3737
|
-
}, _l = ["fill"], Tl = { mask: "url(#mask0_180_20349)" }, jl = ["fill"],
|
|
3737
|
+
}, _l = ["fill"], Tl = { mask: "url(#mask0_180_20349)" }, jl = ["fill"], Yt = /* @__PURE__ */ te({
|
|
3738
3738
|
__name: "IconFilter",
|
|
3739
3739
|
props: {
|
|
3740
3740
|
color: {
|
|
@@ -3805,9 +3805,9 @@ const Ro = {
|
|
|
3805
3805
|
a("update:modelValue", p);
|
|
3806
3806
|
}, d = (p) => `filter-${p}`, u = (p) => {
|
|
3807
3807
|
var h, m;
|
|
3808
|
-
return (((m = (h = t.config.schema) == null ? void 0 : h[p]) == null ? void 0 : m.values) ?? []).map((
|
|
3809
|
-
value:
|
|
3810
|
-
label:
|
|
3808
|
+
return (((m = (h = t.config.schema) == null ? void 0 : h[p]) == null ? void 0 : m.values) ?? []).map((T) => ({
|
|
3809
|
+
value: T,
|
|
3810
|
+
label: T
|
|
3811
3811
|
}));
|
|
3812
3812
|
}, g = (p) => {
|
|
3813
3813
|
var h, m;
|
|
@@ -3820,11 +3820,11 @@ const Ro = {
|
|
|
3820
3820
|
}, S = () => {
|
|
3821
3821
|
r.value = {}, b(!0);
|
|
3822
3822
|
}, b = (p = !1) => {
|
|
3823
|
-
const h = Object.keys(r.value).reduce((m,
|
|
3823
|
+
const h = Object.keys(r.value).reduce((m, T) => (r.value[T] && (m[T] = `${r.value[T]}`), m), {});
|
|
3824
3824
|
p && (i.value = !1), a("update:modelValue", new URLSearchParams(h).toString());
|
|
3825
3825
|
};
|
|
3826
3826
|
return (p, h) => {
|
|
3827
|
-
const m = E("KInput"),
|
|
3827
|
+
const m = E("KInput"), T = E("KButton"), v = E("KSelect"), R = E("KMenuItem"), z = E("KMenu");
|
|
3828
3828
|
return e.config.isExactMatch ? (y(), N(m, {
|
|
3829
3829
|
key: 0,
|
|
3830
3830
|
autocomplete: "off",
|
|
@@ -3835,17 +3835,17 @@ const Ro = {
|
|
|
3835
3835
|
"onUpdate:modelValue": c
|
|
3836
3836
|
}, {
|
|
3837
3837
|
before: k(() => [
|
|
3838
|
-
$(
|
|
3838
|
+
$(Yt)
|
|
3839
3839
|
]),
|
|
3840
3840
|
_: 1
|
|
3841
3841
|
}, 8, ["model-value", "placeholder"])) : (y(), I("div", $l, [
|
|
3842
|
-
$(
|
|
3842
|
+
$(T, {
|
|
3843
3843
|
appearance: "tertiary",
|
|
3844
3844
|
"data-testid": "filter-button",
|
|
3845
3845
|
onClick: s
|
|
3846
3846
|
}, {
|
|
3847
3847
|
default: k(() => [
|
|
3848
|
-
$(
|
|
3848
|
+
$(Yt),
|
|
3849
3849
|
H(" " + K(w(n)("filter.filterButtonText")) + " " + K(o.value.length > 0 ? `(${o.value.length})` : ""), 1)
|
|
3850
3850
|
]),
|
|
3851
3851
|
_: 1
|
|
@@ -3884,7 +3884,7 @@ const Ro = {
|
|
|
3884
3884
|
key: 0,
|
|
3885
3885
|
id: d(P.value),
|
|
3886
3886
|
modelValue: r.value[P.value],
|
|
3887
|
-
"onUpdate:modelValue": (
|
|
3887
|
+
"onUpdate:modelValue": (j) => r.value[P.value] = j,
|
|
3888
3888
|
appearance: "select",
|
|
3889
3889
|
items: u(P.value),
|
|
3890
3890
|
placeholder: w(n)("filter.selectPlaceholder")
|
|
@@ -3892,29 +3892,29 @@ const Ro = {
|
|
|
3892
3892
|
key: 1,
|
|
3893
3893
|
id: d(P.value),
|
|
3894
3894
|
modelValue: r.value[P.value],
|
|
3895
|
-
"onUpdate:modelValue": (
|
|
3895
|
+
"onUpdate:modelValue": (j) => r.value[P.value] = j,
|
|
3896
3896
|
autocomplete: "off",
|
|
3897
3897
|
placeholder: w(n)("filter.inputPlaceholder"),
|
|
3898
3898
|
type: g(P.value)
|
|
3899
3899
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3900
3900
|
]),
|
|
3901
3901
|
L("div", Fl, [
|
|
3902
|
-
$(
|
|
3902
|
+
$(T, {
|
|
3903
3903
|
appearance: "tertiary",
|
|
3904
3904
|
"data-testid": "apply-filter",
|
|
3905
3905
|
size: "small",
|
|
3906
|
-
onClick: h[0] || (h[0] = (
|
|
3906
|
+
onClick: h[0] || (h[0] = (j) => b(!0))
|
|
3907
3907
|
}, {
|
|
3908
3908
|
default: k(() => [
|
|
3909
3909
|
H(K(w(n)("filter.applyButtonText")), 1)
|
|
3910
3910
|
]),
|
|
3911
3911
|
_: 1
|
|
3912
3912
|
}),
|
|
3913
|
-
$(
|
|
3913
|
+
$(T, {
|
|
3914
3914
|
appearance: "tertiary",
|
|
3915
3915
|
"data-testid": "clear-filter",
|
|
3916
3916
|
size: "small",
|
|
3917
|
-
onClick: (
|
|
3917
|
+
onClick: (j) => f(P.value)
|
|
3918
3918
|
}, {
|
|
3919
3919
|
default: k(() => [
|
|
3920
3920
|
H(K(w(n)("filter.clearButtonText")), 1)
|
|
@@ -3929,7 +3929,7 @@ const Ro = {
|
|
|
3929
3929
|
]),
|
|
3930
3930
|
actionButton: k(() => [
|
|
3931
3931
|
L("div", Nl, [
|
|
3932
|
-
$(
|
|
3932
|
+
$(T, {
|
|
3933
3933
|
appearance: "tertiary",
|
|
3934
3934
|
size: "small",
|
|
3935
3935
|
onClick: S
|
|
@@ -3948,7 +3948,7 @@ const Ro = {
|
|
|
3948
3948
|
]));
|
|
3949
3949
|
};
|
|
3950
3950
|
}
|
|
3951
|
-
}), ql = /* @__PURE__ */ fe(Bl, [["__scopeId", "data-v-15962ee2"]]),
|
|
3951
|
+
}), ql = /* @__PURE__ */ fe(Bl, [["__scopeId", "data-v-15962ee2"]]), Re = /* @__PURE__ */ te({
|
|
3952
3952
|
__name: "PermissionsWrapper",
|
|
3953
3953
|
props: {
|
|
3954
3954
|
/**
|
|
@@ -4012,7 +4012,7 @@ const Ro = {
|
|
|
4012
4012
|
}
|
|
4013
4013
|
},
|
|
4014
4014
|
setup(e) {
|
|
4015
|
-
const a =
|
|
4015
|
+
const a = Ye();
|
|
4016
4016
|
return (t, n) => (y(), I("fieldset", {
|
|
4017
4017
|
class: Ae(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4018
4018
|
}, [
|
|
@@ -4037,7 +4037,7 @@ const Ro = {
|
|
|
4037
4037
|
])
|
|
4038
4038
|
], 2));
|
|
4039
4039
|
}
|
|
4040
|
-
}), Hl = /* @__PURE__ */ fe(Ul, [["__scopeId", "data-v-8b6dc312"]]), { useAxios:
|
|
4040
|
+
}), Hl = /* @__PURE__ */ fe(Ul, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Ja, useDeleteUrlBuilder: zl, useErrors: Jl, useExternalLinkCreator: os, useFetchUrlBuilder: ls, useFetcher: Yl, useDebouncedFilter: ss, useStringHelpers: cs, useHelpers: us, useGatewayFeatureSupported: ds, useTruncationDetector: ps } = ie;
|
|
4041
4041
|
const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /* @__PURE__ */ te({
|
|
4042
4042
|
__name: "KeySetList",
|
|
4043
4043
|
props: {
|
|
@@ -4084,27 +4084,27 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4084
4084
|
},
|
|
4085
4085
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
4086
4086
|
setup(e, { emit: a }) {
|
|
4087
|
-
var
|
|
4088
|
-
const t = e, { i18n: { t: n } } =
|
|
4089
|
-
headers: (
|
|
4087
|
+
var Ct;
|
|
4088
|
+
const t = e, { i18n: { t: n } } = dt.useI18n(), i = ct(), { axiosInstance: r } = Ja({
|
|
4089
|
+
headers: (Ct = t.config) == null ? void 0 : Ct.requestHeaders
|
|
4090
4090
|
}), o = O(1), l = x(() => t.config.app !== "kongManager" || !!t.config.disableSorting), s = {
|
|
4091
4091
|
name: { label: n("keySets.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
4092
4092
|
tags: { label: n("keySets.list.table_headers.tags") },
|
|
4093
4093
|
id: { label: n("keySets.list.table_headers.id"), sortable: !0 }
|
|
4094
4094
|
}, c = s, d = x(() => {
|
|
4095
4095
|
var V, X;
|
|
4096
|
-
let
|
|
4097
|
-
return t.config.app === "konnect" ?
|
|
4096
|
+
let _ = `${t.config.apiBaseUrl}${Ve.list[t.config.app]}`;
|
|
4097
|
+
return t.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((V = t.config) == null ? void 0 : V.controlPlaneId) || "") : t.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (X = t.config) != null && X.workspace ? `/${t.config.workspace}` : "")), _;
|
|
4098
4098
|
}), u = O(""), g = x(() => {
|
|
4099
|
-
const
|
|
4100
|
-
if (
|
|
4099
|
+
const _ = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4100
|
+
if (_)
|
|
4101
4101
|
return {
|
|
4102
|
-
isExactMatch:
|
|
4102
|
+
isExactMatch: _,
|
|
4103
4103
|
placeholder: n("keySets.search.placeholder")
|
|
4104
4104
|
};
|
|
4105
4105
|
const V = { name: s.name };
|
|
4106
4106
|
return {
|
|
4107
|
-
isExactMatch:
|
|
4107
|
+
isExactMatch: _,
|
|
4108
4108
|
fields: V,
|
|
4109
4109
|
schema: t.config.filterSchema
|
|
4110
4110
|
};
|
|
@@ -4112,60 +4112,60 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4112
4112
|
u.value = "";
|
|
4113
4113
|
}, p = () => {
|
|
4114
4114
|
o.value++;
|
|
4115
|
-
}, h = O(null), m = (
|
|
4116
|
-
const X =
|
|
4115
|
+
}, h = O(null), m = (_, V) => {
|
|
4116
|
+
const X = _.id;
|
|
4117
4117
|
if (!V(X)) {
|
|
4118
|
-
z(
|
|
4118
|
+
z(_, "id");
|
|
4119
4119
|
return;
|
|
4120
4120
|
}
|
|
4121
|
-
R(
|
|
4122
|
-
},
|
|
4123
|
-
const X = JSON.stringify(
|
|
4121
|
+
R(_, "id");
|
|
4122
|
+
}, T = (_, V) => {
|
|
4123
|
+
const X = JSON.stringify(_);
|
|
4124
4124
|
if (!V(X)) {
|
|
4125
4125
|
a("copy:error", {
|
|
4126
|
-
entity:
|
|
4126
|
+
entity: _,
|
|
4127
4127
|
message: n("keySets.errors.copy")
|
|
4128
4128
|
});
|
|
4129
4129
|
return;
|
|
4130
4130
|
}
|
|
4131
4131
|
a("copy:success", {
|
|
4132
|
-
entity:
|
|
4132
|
+
entity: _,
|
|
4133
4133
|
message: n("keySets.copy.success_brief")
|
|
4134
4134
|
});
|
|
4135
|
-
}, v = (
|
|
4136
|
-
const { type: ye } =
|
|
4135
|
+
}, v = (_, V, X) => {
|
|
4136
|
+
const { type: ye } = _;
|
|
4137
4137
|
ye === "success" ? R(V, X) : z(V, X);
|
|
4138
|
-
}, R = (
|
|
4138
|
+
}, R = (_, V) => {
|
|
4139
4139
|
a("copy:success", {
|
|
4140
|
-
entity:
|
|
4140
|
+
entity: _,
|
|
4141
4141
|
field: V,
|
|
4142
|
-
message: n("keySets.copy.success", { val:
|
|
4142
|
+
message: n("keySets.copy.success", { val: _[V] })
|
|
4143
4143
|
});
|
|
4144
|
-
}, z = (
|
|
4144
|
+
}, z = (_, V) => {
|
|
4145
4145
|
a("copy:error", {
|
|
4146
|
-
entity:
|
|
4146
|
+
entity: _,
|
|
4147
4147
|
field: V,
|
|
4148
4148
|
message: n("keySets.errors.copy")
|
|
4149
4149
|
});
|
|
4150
|
-
}, P = async (
|
|
4150
|
+
}, P = async (_) => {
|
|
4151
4151
|
var X;
|
|
4152
|
-
await ((X = t.canRetrieve) == null ? void 0 : X.call(t,
|
|
4153
|
-
}, C = (
|
|
4152
|
+
await ((X = t.canRetrieve) == null ? void 0 : X.call(t, _)) && i.push(t.config.getViewRoute(_.id));
|
|
4153
|
+
}, C = (_) => ({
|
|
4154
4154
|
label: n("keySets.actions.view"),
|
|
4155
|
-
to: t.config.getViewRoute(
|
|
4156
|
-
}), M = (
|
|
4155
|
+
to: t.config.getViewRoute(_)
|
|
4156
|
+
}), M = (_) => ({
|
|
4157
4157
|
label: n("keySets.actions.edit"),
|
|
4158
|
-
to: t.config.getEditRoute(
|
|
4159
|
-
}), F = O(void 0),
|
|
4160
|
-
F.value =
|
|
4158
|
+
to: t.config.getEditRoute(_)
|
|
4159
|
+
}), F = O(void 0), j = O(!1), B = O(!1), q = O(""), J = zl(t.config, d.value), W = (_) => {
|
|
4160
|
+
F.value = _, j.value = !0;
|
|
4161
4161
|
}, ne = () => {
|
|
4162
|
-
|
|
4162
|
+
j.value = !1;
|
|
4163
4163
|
}, Q = async () => {
|
|
4164
|
-
var
|
|
4165
|
-
if ((
|
|
4164
|
+
var _, V, X;
|
|
4165
|
+
if ((_ = F.value) != null && _.id) {
|
|
4166
4166
|
B.value = !0;
|
|
4167
4167
|
try {
|
|
4168
|
-
await r.delete(J(F.value.id)), B.value = !1,
|
|
4168
|
+
await r.delete(J(F.value.id)), B.value = !1, j.value = !1, o.value++, a("delete:success", F.value);
|
|
4169
4169
|
} catch (ye) {
|
|
4170
4170
|
q.value = ((X = (V = ye.response) == null ? void 0 : V.data) == null ? void 0 : X.message) || ye.message || n("keySets.errors.delete"), a("error", ye);
|
|
4171
4171
|
} finally {
|
|
@@ -4173,12 +4173,12 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4173
4173
|
}
|
|
4174
4174
|
}
|
|
4175
4175
|
}, G = O(!0);
|
|
4176
|
-
ke(S, (
|
|
4177
|
-
var V, X, ye, Le
|
|
4178
|
-
if (((
|
|
4176
|
+
ke(S, (_) => {
|
|
4177
|
+
var V, X, ye, Le;
|
|
4178
|
+
if (Array.isArray((V = _ == null ? void 0 : _.response) == null ? void 0 : V.data) && (G.value = _.response.data.length > 0), _.status === Ce.Error) {
|
|
4179
4179
|
h.value = {
|
|
4180
4180
|
title: n("keySets.errors.general")
|
|
4181
|
-
}, (
|
|
4181
|
+
}, (Le = (ye = (X = _.error) == null ? void 0 : X.response) == null ? void 0 : ye.data) != null && Le.message && (h.value.message = _.error.response.data.message), a("error", _.error);
|
|
4182
4182
|
return;
|
|
4183
4183
|
}
|
|
4184
4184
|
h.value = null;
|
|
@@ -4189,10 +4189,10 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4189
4189
|
message: n("keySets.list.empty_state.description"),
|
|
4190
4190
|
title: n("keySets.title")
|
|
4191
4191
|
});
|
|
4192
|
-
return
|
|
4192
|
+
return st(async () => {
|
|
4193
4193
|
await t.canCreate() && (oe.value.title = n("keySets.list.empty_state.title"), oe.value.ctaText = n("keySets.actions.create"));
|
|
4194
|
-
}), (
|
|
4195
|
-
const X = E("KButton"), ye = E("KBadge"), Le = E("KTruncate"),
|
|
4194
|
+
}), (_, V) => {
|
|
4195
|
+
const X = E("KButton"), ye = E("KBadge"), Le = E("KTruncate"), Wa = E("CopyUuid"), Oe = E("KDropdownItem"), wt = E("KClipboardProvider");
|
|
4196
4196
|
return y(), I("div", Wl, [
|
|
4197
4197
|
$(w(kl), {
|
|
4198
4198
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -4224,7 +4224,7 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4224
4224
|
disabled: !e.useActionOutside,
|
|
4225
4225
|
to: "#kong-ui-app-page-header-action-button"
|
|
4226
4226
|
}, [
|
|
4227
|
-
$(w(
|
|
4227
|
+
$(w(Re), {
|
|
4228
4228
|
"auth-function": () => e.canCreate()
|
|
4229
4229
|
}, {
|
|
4230
4230
|
default: k(() => [
|
|
@@ -4254,7 +4254,7 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4254
4254
|
default: k(() => [
|
|
4255
4255
|
(y(!0), I(pe, null, ue(Z, (me) => (y(), N(ye, {
|
|
4256
4256
|
key: me,
|
|
4257
|
-
onClick: V[1] || (V[1] =
|
|
4257
|
+
onClick: V[1] || (V[1] = Pe(() => {
|
|
4258
4258
|
}, ["stop"]))
|
|
4259
4259
|
}, {
|
|
4260
4260
|
default: k(() => [
|
|
@@ -4267,18 +4267,18 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4267
4267
|
}, 1024)) : (y(), I("span", Gl, "-"))
|
|
4268
4268
|
]),
|
|
4269
4269
|
id: k(({ row: Z, rowValue: me }) => [
|
|
4270
|
-
$(
|
|
4271
|
-
notify: (
|
|
4270
|
+
$(Wa, {
|
|
4271
|
+
notify: (Ge) => v(Ge, Z, "id"),
|
|
4272
4272
|
truncated: !1,
|
|
4273
4273
|
uuid: me
|
|
4274
4274
|
}, null, 8, ["notify", "uuid"])
|
|
4275
4275
|
]),
|
|
4276
4276
|
actions: k(({ row: Z }) => [
|
|
4277
|
-
$(
|
|
4277
|
+
$(wt, null, {
|
|
4278
4278
|
default: k(({ copyToClipboard: me }) => [
|
|
4279
4279
|
$(Oe, {
|
|
4280
4280
|
"data-testid": "action-entity-copy-id",
|
|
4281
|
-
onClick: (
|
|
4281
|
+
onClick: (Ge) => m(Z, me)
|
|
4282
4282
|
}, {
|
|
4283
4283
|
default: k(() => [
|
|
4284
4284
|
H(K(w(n)("keySets.actions.copy_id")), 1)
|
|
@@ -4288,11 +4288,11 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4288
4288
|
]),
|
|
4289
4289
|
_: 2
|
|
4290
4290
|
}, 1024),
|
|
4291
|
-
$(
|
|
4291
|
+
$(wt, null, {
|
|
4292
4292
|
default: k(({ copyToClipboard: me }) => [
|
|
4293
4293
|
$(Oe, {
|
|
4294
4294
|
"data-testid": "action-entity-copy-json",
|
|
4295
|
-
onClick: (
|
|
4295
|
+
onClick: (Ge) => T(Z, me)
|
|
4296
4296
|
}, {
|
|
4297
4297
|
default: k(() => [
|
|
4298
4298
|
H(K(w(n)("keySets.actions.copy_json")), 1)
|
|
@@ -4302,7 +4302,7 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4302
4302
|
]),
|
|
4303
4303
|
_: 2
|
|
4304
4304
|
}, 1024),
|
|
4305
|
-
$(w(
|
|
4305
|
+
$(w(Re), {
|
|
4306
4306
|
"auth-function": () => e.canRetrieve(Z)
|
|
4307
4307
|
}, {
|
|
4308
4308
|
default: k(() => [
|
|
@@ -4314,7 +4314,7 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4314
4314
|
]),
|
|
4315
4315
|
_: 2
|
|
4316
4316
|
}, 1032, ["auth-function"]),
|
|
4317
|
-
$(w(
|
|
4317
|
+
$(w(Re), {
|
|
4318
4318
|
"auth-function": () => e.canEdit(Z)
|
|
4319
4319
|
}, {
|
|
4320
4320
|
default: k(() => [
|
|
@@ -4325,7 +4325,7 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4325
4325
|
]),
|
|
4326
4326
|
_: 2
|
|
4327
4327
|
}, 1032, ["auth-function"]),
|
|
4328
|
-
$(w(
|
|
4328
|
+
$(w(Re), {
|
|
4329
4329
|
"auth-function": () => e.canDelete(Z)
|
|
4330
4330
|
}, {
|
|
4331
4331
|
default: k(() => [
|
|
@@ -4350,10 +4350,10 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4350
4350
|
"action-pending": B.value,
|
|
4351
4351
|
description: w(n)("keySets.delete.description"),
|
|
4352
4352
|
"entity-name": F.value && (F.value.name || F.value.id),
|
|
4353
|
-
"entity-type": w(
|
|
4353
|
+
"entity-type": w(Xt).KeySet,
|
|
4354
4354
|
error: q.value,
|
|
4355
4355
|
title: w(n)("keySets.delete.title"),
|
|
4356
|
-
visible:
|
|
4356
|
+
visible: j.value,
|
|
4357
4357
|
onCancel: ne,
|
|
4358
4358
|
onProceed: Q
|
|
4359
4359
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
@@ -4361,12 +4361,12 @@ const Wl = { class: "kong-ui-entities-key-sets-list" }, Gl = { key: 1 }, Zl = /*
|
|
|
4361
4361
|
};
|
|
4362
4362
|
}
|
|
4363
4363
|
});
|
|
4364
|
-
const
|
|
4364
|
+
const Ya = (e, a) => {
|
|
4365
4365
|
const t = e.__vccOpts || e;
|
|
4366
4366
|
for (const [n, i] of a)
|
|
4367
4367
|
t[n] = i;
|
|
4368
4368
|
return t;
|
|
4369
|
-
}, fs = /* @__PURE__ */
|
|
4369
|
+
}, fs = /* @__PURE__ */ Ya(Zl, [["__scopeId", "data-v-ae13b9e1"]]), Ql = { class: "kong-ui-entities-key-sets-form" }, Xl = /* @__PURE__ */ te({
|
|
4370
4370
|
__name: "KeySetForm",
|
|
4371
4371
|
props: {
|
|
4372
4372
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4385,16 +4385,16 @@ const Wa = (e, a) => {
|
|
|
4385
4385
|
emits: ["update", "error", "loading"],
|
|
4386
4386
|
setup(e, { emit: a }) {
|
|
4387
4387
|
var p;
|
|
4388
|
-
const t = e, n =
|
|
4388
|
+
const t = e, n = ct(), { i18n: { t: i } } = dt.useI18n(), { getMessageFromError: r } = Jl(), { axiosInstance: o } = Ja({
|
|
4389
4389
|
headers: (p = t.config) == null ? void 0 : p.requestHeaders
|
|
4390
|
-
}), l = x(() =>
|
|
4390
|
+
}), l = x(() => Ve.form[t.config.app].edit), s = x(() => t.keySetId ? at.Edit : at.Create), c = St({
|
|
4391
4391
|
fields: {
|
|
4392
4392
|
name: "",
|
|
4393
4393
|
tags: ""
|
|
4394
4394
|
},
|
|
4395
4395
|
isReadonly: !1,
|
|
4396
4396
|
errorMessage: ""
|
|
4397
|
-
}), d =
|
|
4397
|
+
}), d = St({
|
|
4398
4398
|
name: "",
|
|
4399
4399
|
tags: ""
|
|
4400
4400
|
}), u = x(() => JSON.stringify(c.fields) !== JSON.stringify(d) && !!c.fields.name), g = (h) => {
|
|
@@ -4403,16 +4403,16 @@ const Wa = (e, a) => {
|
|
|
4403
4403
|
}, f = () => {
|
|
4404
4404
|
n.push(t.config.cancelRoute);
|
|
4405
4405
|
}, S = x(() => {
|
|
4406
|
-
var m,
|
|
4407
|
-
let h = `${t.config.apiBaseUrl}${
|
|
4408
|
-
return t.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((m = t.config) == null ? void 0 : m.controlPlaneId) || "") : t.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (
|
|
4406
|
+
var m, T;
|
|
4407
|
+
let h = `${t.config.apiBaseUrl}${Ve.form[t.config.app][s.value]}`;
|
|
4408
|
+
return t.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((m = t.config) == null ? void 0 : m.controlPlaneId) || "") : t.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (T = t.config) != null && T.workspace ? `/${t.config.workspace}` : "")), h = h.replace(/{id}/gi, t.keySetId), h;
|
|
4409
4409
|
}), b = async () => {
|
|
4410
|
-
var h, m,
|
|
4410
|
+
var h, m, T, v, R;
|
|
4411
4411
|
try {
|
|
4412
4412
|
c.isReadonly = !0;
|
|
4413
4413
|
const z = {
|
|
4414
4414
|
name: c.fields.name,
|
|
4415
|
-
tags: ((
|
|
4415
|
+
tags: ((T = (m = (h = c.fields.tags) == null ? void 0 : h.split(",")) == null ? void 0 : m.map((C) => String(C || "").trim())) == null ? void 0 : T.filter((C) => C !== "")) || ""
|
|
4416
4416
|
};
|
|
4417
4417
|
let P;
|
|
4418
4418
|
if (s.value === "create" ? P = await o.post(S.value, z) : s.value === "edit" && (P = ((v = t.config) == null ? void 0 : v.app) === "konnect" ? await o.put(S.value, z) : await o.patch(S.value, z)), P) {
|
|
@@ -4426,7 +4426,7 @@ const Wa = (e, a) => {
|
|
|
4426
4426
|
}
|
|
4427
4427
|
};
|
|
4428
4428
|
return (h, m) => {
|
|
4429
|
-
const
|
|
4429
|
+
const T = E("KInput");
|
|
4430
4430
|
return y(), I("div", Ql, [
|
|
4431
4431
|
$(w(pl), {
|
|
4432
4432
|
"can-submit": u.value,
|
|
@@ -4448,7 +4448,7 @@ const Wa = (e, a) => {
|
|
|
4448
4448
|
title: w(i)("keySets.form.sections.general.title")
|
|
4449
4449
|
}, {
|
|
4450
4450
|
default: k(() => [
|
|
4451
|
-
$(
|
|
4451
|
+
$(T, {
|
|
4452
4452
|
modelValue: c.fields.name,
|
|
4453
4453
|
"onUpdate:modelValue": m[0] || (m[0] = (v) => c.fields.name = v),
|
|
4454
4454
|
modelModifiers: { trim: !0 },
|
|
@@ -4459,7 +4459,7 @@ const Wa = (e, a) => {
|
|
|
4459
4459
|
readonly: c.isReadonly,
|
|
4460
4460
|
type: "text"
|
|
4461
4461
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
4462
|
-
$(
|
|
4462
|
+
$(T, {
|
|
4463
4463
|
modelValue: c.fields.tags,
|
|
4464
4464
|
"onUpdate:modelValue": m[1] || (m[1] = (v) => c.fields.tags = v),
|
|
4465
4465
|
modelModifiers: { trim: !0 },
|
|
@@ -4482,7 +4482,7 @@ const Wa = (e, a) => {
|
|
|
4482
4482
|
};
|
|
4483
4483
|
}
|
|
4484
4484
|
});
|
|
4485
|
-
const ys = /* @__PURE__ */
|
|
4485
|
+
const ys = /* @__PURE__ */ Ya(Xl, [["__scopeId", "data-v-29df09d7"]]), es = { class: "kong-ui-entities-keys-entity-config-card" }, gs = /* @__PURE__ */ te({
|
|
4486
4486
|
__name: "KeySetConfigCard",
|
|
4487
4487
|
props: {
|
|
4488
4488
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4509,7 +4509,7 @@ const ys = /* @__PURE__ */ Wa(Xl, [["__scopeId", "data-v-29df09d7"]]), es = { cl
|
|
|
4509
4509
|
},
|
|
4510
4510
|
emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
|
|
4511
4511
|
setup(e) {
|
|
4512
|
-
const a = e, { i18n: { t } } =
|
|
4512
|
+
const a = e, { i18n: { t } } = dt.useI18n(), n = x(() => Ve.form[a.config.app].edit), i = O({
|
|
4513
4513
|
id: {},
|
|
4514
4514
|
name: {},
|
|
4515
4515
|
last_updated: {},
|